From 91fbe22e77e06ad8f647447ce128c0f21b2e0473 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Fri, 29 May 2020 12:25:01 -0700 Subject: [PATCH 01/64] adding sagemaker proto --- protos/flyteidl/plugins/sagemaker.proto | 102 ++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 protos/flyteidl/plugins/sagemaker.proto diff --git a/protos/flyteidl/plugins/sagemaker.proto b/protos/flyteidl/plugins/sagemaker.proto new file mode 100644 index 000000000..04aa5c8c3 --- /dev/null +++ b/protos/flyteidl/plugins/sagemaker.proto @@ -0,0 +1,102 @@ +syntax = "proto3"; + +package flyte.plugins.sagemaker; + +option go_package = "github.com/kumare3/awsflyteplugins/gen/pb-go/proto"; + +enum HyperparameterScalingType { + AUTO = 0; + LINEAR = 1; + LOGARITHMIC = 2; + REVERSELOGARITHMIC = 3; +} + +message ContinuousParameterRange { + string Name = 1; + double MaxValue = 2; + double MinValue = 3; + HyperparameterScalingType ScalingType = 4; +} + +message IntegerParameterRange { + string Name = 1; + float MaxValue = 2; + float MinValue = 3; + HyperparameterScalingType ScalingType = 4; +} + +message CategoricalParameterRange { + string Name = 1; + repeated string Values = 2; +} + +message ParameterRanges { + repeated ContinuousParameterRange ContinuousParameterRanges = 1; + repeated IntegerParameterRange IntegerParameterRanges = 2; + repeated CategoricalParameterRange CategoricalParameterRanges = 3; +} + +message AlgorithmSpecification { + string TrainingImage = 1; + string TrainingInputMode = 2; + string AlgorithmName = 3; + + message MetricDefinition { + string Name = 1; + string Regex = 2; + } + repeated MetricDefinition MetricDefinitions = 4; +} + +message ResourceConfig { + string InstanceType = 1; + int64 InstanceCount = 2; + int64 VolumeSizeInGB = 3; + string VolumeKmsKeyId = 4; +} + +message StoppingCondition { + int64 MaxRuntimeInSeconds = 1; + int64 MaxWaitTimeInSeconds = 2; +} + +message VpcConfig { + repeated string SecurityGroupIds = 1; + repeated string Subnets = 2; +} + +message SagemakerTrainingJob { + string Region = 1; + string RoleArn = 2; + AlgorithmSpecification AlgorithmSpecification = 3; + ResourceConfig ResourceConfig = 4; + StoppingCondition StoppingCondition = 5; + VpcConfig VpcConfig = 6; + bool EnableSpotTraining = 7; +} + +enum HPOJobObjectiveType { + MINIMIZE = 0; + MAXIMIZE = 1; +} + +message HPOJobObjective { + HPOJobObjectiveType Type = 1; + string MetricName = 2; +} + +message HPOJobConfig { + string Strategy = 1; + HPOJobObjective Objective = 2; + int64 MaxNumberOfTrainingJobs = 3; + int64 MaxParallelTrainingJobs = 4; + ParameterRanges ParameterRanges = 5; +} + +message SagemakerHPOJob { + HPOJobConfig = 1; + SagemakerTrainingJob TrainingJob = 2; +} + + + From 1b20f7bc19f66f9f7ac9e625b1195ed7790f2de5 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Fri, 29 May 2020 15:25:43 -0700 Subject: [PATCH 02/64] all settings consistent with other proto files --- .../flyteidl/plugins/sagemaker.grpc.pb.cc | 24 + .../flyteidl/plugins/sagemaker.grpc.pb.h | 47 + gen/pb-cpp/flyteidl/plugins/sagemaker.pb.cc | 5808 ++++++++ gen/pb-cpp/flyteidl/plugins/sagemaker.pb.h | 3644 +++++ gen/pb-go/flyteidl/plugins/sagemaker.pb.go | 871 ++ .../flyteidl/plugins/sagemaker.pb.validate.go | 1017 ++ gen/pb-java/flyte/plugins/Sagemaker.java | 11686 ++++++++++++++++ gen/pb-protodoc/flyteidl/plugins/index.rst | 1 + .../flyteidl/plugins/sagemaker.proto.rst | 482 + .../flyteidl/plugins/sagemaker_pb2.py | 787 ++ .../flyteidl/plugins/sagemaker_pb2_grpc.py | 3 + protos/flyteidl/plugins/sagemaker.proto | 12 +- 12 files changed, 24374 insertions(+), 8 deletions(-) create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.h create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker.pb.h create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker.pb.go create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker.pb.validate.go create mode 100644 gen/pb-java/flyte/plugins/Sagemaker.java create mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker.proto.rst create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker_pb2.py create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker_pb2_grpc.py diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.cc new file mode 100644 index 000000000..e153365cb --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker.proto + +#include "flyteidl/plugins/sagemaker.pb.h" +#include "flyteidl/plugins/sagemaker.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyte { +namespace plugins { + +} // namespace flyte +} // namespace plugins + diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.h new file mode 100644 index 000000000..e895621ac --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2eproto__INCLUDED + +#include "flyteidl/plugins/sagemaker.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyte { +namespace plugins { + +} // namespace plugins +} // namespace flyte + + +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker.pb.cc new file mode 100644 index 000000000..ec3d9aa58 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker.pb.cc @@ -0,0 +1,5808 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker.proto + +#include "flyteidl/plugins/sagemaker.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto; +namespace flyte { +namespace plugins { +class ContinuousParameterRangeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ContinuousParameterRange_default_instance_; +class IntegerParameterRangeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _IntegerParameterRange_default_instance_; +class CategoricalParameterRangeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CategoricalParameterRange_default_instance_; +class ParameterRangesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ParameterRanges_default_instance_; +class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AlgorithmSpecification_MetricDefinition_default_instance_; +class AlgorithmSpecificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AlgorithmSpecification_default_instance_; +class ResourceConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ResourceConfig_default_instance_; +class StoppingConditionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _StoppingCondition_default_instance_; +class VpcConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _VpcConfig_default_instance_; +class SagemakerTrainingJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SagemakerTrainingJob_default_instance_; +class HPOJobObjectiveDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HPOJobObjective_default_instance_; +class SagemakerHPOJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SagemakerHPOJob_default_instance_; +} // namespace plugins +} // namespace flyte +static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyte::plugins::_ContinuousParameterRange_default_instance_; + new (ptr) ::flyte::plugins::ContinuousParameterRange(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyte::plugins::ContinuousParameterRange::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; + +static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyte::plugins::_IntegerParameterRange_default_instance_; + new (ptr) ::flyte::plugins::IntegerParameterRange(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyte::plugins::IntegerParameterRange::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; + +static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyte::plugins::_CategoricalParameterRange_default_instance_; + new (ptr) ::flyte::plugins::CategoricalParameterRange(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyte::plugins::CategoricalParameterRange::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; + +static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyte::plugins::_ParameterRanges_default_instance_; + new (ptr) ::flyte::plugins::ParameterRanges(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyte::plugins::ParameterRanges::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto}, { + &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base, + &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base, + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base,}}; + +static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyte::plugins::_AlgorithmSpecification_MetricDefinition_default_instance_; + new (ptr) ::flyte::plugins::AlgorithmSpecification_MetricDefinition(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyte::plugins::AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; + +static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyte::plugins::_AlgorithmSpecification_default_instance_; + new (ptr) ::flyte::plugins::AlgorithmSpecification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyte::plugins::AlgorithmSpecification::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto}, { + &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto.base,}}; + +static void InitDefaultsResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyte::plugins::_ResourceConfig_default_instance_; + new (ptr) ::flyte::plugins::ResourceConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyte::plugins::ResourceConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; + +static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyte::plugins::_StoppingCondition_default_instance_; + new (ptr) ::flyte::plugins::StoppingCondition(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyte::plugins::StoppingCondition::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; + +static void InitDefaultsVpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyte::plugins::_VpcConfig_default_instance_; + new (ptr) ::flyte::plugins::VpcConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyte::plugins::VpcConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; + +static void InitDefaultsSagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyte::plugins::_SagemakerTrainingJob_default_instance_; + new (ptr) ::flyte::plugins::SagemakerTrainingJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyte::plugins::SagemakerTrainingJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsSagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto}, { + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto.base, + &scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base, + &scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto.base, + &scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base,}}; + +static void InitDefaultsHPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyte::plugins::_HPOJobObjective_default_instance_; + new (ptr) ::flyte::plugins::HPOJobObjective(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyte::plugins::HPOJobObjective::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; + +static void InitDefaultsSagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyte::plugins::_SagemakerHPOJob_default_instance_; + new (ptr) ::flyte::plugins::SagemakerHPOJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyte::plugins::SagemakerHPOJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsSagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2eproto}, { + &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto.base, + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto.base, + &scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[12]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ContinuousParameterRange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ContinuousParameterRange, name_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ContinuousParameterRange, maxvalue_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ContinuousParameterRange, minvalue_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ContinuousParameterRange, scalingtype_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::IntegerParameterRange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::IntegerParameterRange, name_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::IntegerParameterRange, maxvalue_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::IntegerParameterRange, minvalue_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::IntegerParameterRange, scalingtype_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::CategoricalParameterRange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::CategoricalParameterRange, name_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::CategoricalParameterRange, values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ParameterRanges, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ParameterRanges, continuousparameterranges_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ParameterRanges, integerparameterranges_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ParameterRanges, categoricalparameterranges_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification_MetricDefinition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification_MetricDefinition, name_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification_MetricDefinition, regex_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification, trainingimage_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification, traininginputmode_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification, algorithmname_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification, metricdefinitions_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ResourceConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ResourceConfig, instancetype_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ResourceConfig, instancecount_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ResourceConfig, volumesizeingb_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::ResourceConfig, volumekmskeyid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::StoppingCondition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::StoppingCondition, maxruntimeinseconds_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::StoppingCondition, maxwaittimeinseconds_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::VpcConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::VpcConfig, securitygroupids_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::VpcConfig, subnets_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, region_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, rolearn_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, algorithmspecification_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, resourceconfig_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, stoppingcondition_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, vpcconfig_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, enablespottraining_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::HPOJobObjective, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::HPOJobObjective, type_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::HPOJobObjective, metricname_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, strategy_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, objective_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, maxnumberoftrainingjobs_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, maxparalleltrainingjobs_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, parameterranges_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, trainingjob_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyte::plugins::ContinuousParameterRange)}, + { 9, -1, sizeof(::flyte::plugins::IntegerParameterRange)}, + { 18, -1, sizeof(::flyte::plugins::CategoricalParameterRange)}, + { 25, -1, sizeof(::flyte::plugins::ParameterRanges)}, + { 33, -1, sizeof(::flyte::plugins::AlgorithmSpecification_MetricDefinition)}, + { 40, -1, sizeof(::flyte::plugins::AlgorithmSpecification)}, + { 49, -1, sizeof(::flyte::plugins::ResourceConfig)}, + { 58, -1, sizeof(::flyte::plugins::StoppingCondition)}, + { 65, -1, sizeof(::flyte::plugins::VpcConfig)}, + { 72, -1, sizeof(::flyte::plugins::SagemakerTrainingJob)}, + { 84, -1, sizeof(::flyte::plugins::HPOJobObjective)}, + { 91, -1, sizeof(::flyte::plugins::SagemakerHPOJob)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyte::plugins::_ContinuousParameterRange_default_instance_), + reinterpret_cast(&::flyte::plugins::_IntegerParameterRange_default_instance_), + reinterpret_cast(&::flyte::plugins::_CategoricalParameterRange_default_instance_), + reinterpret_cast(&::flyte::plugins::_ParameterRanges_default_instance_), + reinterpret_cast(&::flyte::plugins::_AlgorithmSpecification_MetricDefinition_default_instance_), + reinterpret_cast(&::flyte::plugins::_AlgorithmSpecification_default_instance_), + reinterpret_cast(&::flyte::plugins::_ResourceConfig_default_instance_), + reinterpret_cast(&::flyte::plugins::_StoppingCondition_default_instance_), + reinterpret_cast(&::flyte::plugins::_VpcConfig_default_instance_), + reinterpret_cast(&::flyte::plugins::_SagemakerTrainingJob_default_instance_), + reinterpret_cast(&::flyte::plugins::_HPOJobObjective_default_instance_), + reinterpret_cast(&::flyte::plugins::_SagemakerHPOJob_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2eproto, "flyteidl/plugins/sagemaker.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto, 12, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2eproto[] = + "\n flyteidl/plugins/sagemaker.proto\022\rflyt" + "e.plugins\"\213\001\n\030ContinuousParameterRange\022\014" + "\n\004Name\030\001 \001(\t\022\020\n\010MaxValue\030\002 \001(\001\022\020\n\010MinVal" + "ue\030\003 \001(\001\022=\n\013ScalingType\030\004 \001(\0162(.flyte.pl" + "ugins.HyperparameterScalingType\"\210\001\n\025Inte" + "gerParameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxVa" + "lue\030\002 \001(\002\022\020\n\010MinValue\030\003 \001(\002\022=\n\013ScalingTy" + "pe\030\004 \001(\0162(.flyte.plugins.HyperparameterS" + "calingType\"9\n\031CategoricalParameterRange\022" + "\014\n\004Name\030\001 \001(\t\022\016\n\006Values\030\002 \003(\t\"\361\001\n\017Parame" + "terRanges\022J\n\031ContinuousParameterRanges\030\001" + " \003(\0132\'.flyte.plugins.ContinuousParameter" + "Range\022D\n\026IntegerParameterRanges\030\002 \003(\0132$." + "flyte.plugins.IntegerParameterRange\022L\n\032C" + "ategoricalParameterRanges\030\003 \003(\0132(.flyte." + "plugins.CategoricalParameterRange\"\345\001\n\026Al" + "gorithmSpecification\022\025\n\rTrainingImage\030\001 " + "\001(\t\022\031\n\021TrainingInputMode\030\002 \001(\t\022\025\n\rAlgori" + "thmName\030\003 \001(\t\022Q\n\021MetricDefinitions\030\004 \003(\013" + "26.flyte.plugins.AlgorithmSpecification." + "MetricDefinition\032/\n\020MetricDefinition\022\014\n\004" + "Name\030\001 \001(\t\022\r\n\005Regex\030\002 \001(\t\"m\n\016ResourceCon" + "fig\022\024\n\014InstanceType\030\001 \001(\t\022\025\n\rInstanceCou" + "nt\030\002 \001(\003\022\026\n\016VolumeSizeInGB\030\003 \001(\003\022\026\n\016Volu" + "meKmsKeyId\030\004 \001(\t\"N\n\021StoppingCondition\022\033\n" + "\023MaxRuntimeInSeconds\030\001 \001(\003\022\034\n\024MaxWaitTim" + "eInSeconds\030\002 \001(\003\"6\n\tVpcConfig\022\030\n\020Securit" + "yGroupIds\030\001 \003(\t\022\017\n\007Subnets\030\002 \003(\t\"\273\002\n\024Sag" + "emakerTrainingJob\022\016\n\006Region\030\001 \001(\t\022\017\n\007Rol" + "eArn\030\002 \001(\t\022E\n\026AlgorithmSpecification\030\003 \001" + "(\0132%.flyte.plugins.AlgorithmSpecificatio" + "n\0225\n\016ResourceConfig\030\004 \001(\0132\035.flyte.plugin" + "s.ResourceConfig\022;\n\021StoppingCondition\030\005 " + "\001(\0132 .flyte.plugins.StoppingCondition\022+\n" + "\tVpcConfig\030\006 \001(\0132\030.flyte.plugins.VpcConf" + "ig\022\032\n\022EnableSpotTraining\030\007 \001(\010\"W\n\017HPOJob" + "Objective\0220\n\004Type\030\001 \001(\0162\".flyte.plugins." + "HPOJobObjectiveType\022\022\n\nMetricName\030\002 \001(\t\"" + "\213\002\n\017SagemakerHPOJob\022\020\n\010Strategy\030\001 \001(\t\0221\n" + "\tObjective\030\002 \001(\0132\036.flyte.plugins.HPOJobO" + "bjective\022\037\n\027MaxNumberOfTrainingJobs\030\003 \001(" + "\003\022\037\n\027MaxParallelTrainingJobs\030\004 \001(\003\0227\n\017Pa" + "rameterRanges\030\005 \001(\0132\036.flyte.plugins.Para" + "meterRanges\0228\n\013TrainingJob\030\006 \001(\0132#.flyte" + ".plugins.SagemakerTrainingJob*Z\n\031Hyperpa" + "rameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001" + "\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHMIC\020" + "\003*1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE\020\000\022\014" + "\n\010MAXIMIZE\020\001B5Z3github.com/lyft/flyteidl" + "/gen/pb-go/flyteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2eproto, + "flyteidl/plugins/sagemaker.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto, 1995, +}; + +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2eproto(); return true; }(); +namespace flyte { +namespace plugins { +const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2eproto[0]; +} +bool HyperparameterScalingType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* HPOJobObjectiveType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2eproto[1]; +} +bool HPOJobObjectiveType_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + + +// =================================================================== + +void ContinuousParameterRange::InitAsDefaultInstance() { +} +class ContinuousParameterRange::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ContinuousParameterRange::kNameFieldNumber; +const int ContinuousParameterRange::kMaxValueFieldNumber; +const int ContinuousParameterRange::kMinValueFieldNumber; +const int ContinuousParameterRange::kScalingTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ContinuousParameterRange::ContinuousParameterRange() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyte.plugins.ContinuousParameterRange) +} +ContinuousParameterRange::ContinuousParameterRange(const ContinuousParameterRange& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + ::memcpy(&maxvalue_, &from.maxvalue_, + static_cast(reinterpret_cast(&scalingtype_) - + reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + // @@protoc_insertion_point(copy_constructor:flyte.plugins.ContinuousParameterRange) +} + +void ContinuousParameterRange::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&maxvalue_, 0, static_cast( + reinterpret_cast(&scalingtype_) - + reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); +} + +ContinuousParameterRange::~ContinuousParameterRange() { + // @@protoc_insertion_point(destructor:flyte.plugins.ContinuousParameterRange) + SharedDtor(); +} + +void ContinuousParameterRange::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ContinuousParameterRange::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ContinuousParameterRange& ContinuousParameterRange::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + return *internal_default_instance(); +} + + +void ContinuousParameterRange::Clear() { +// @@protoc_insertion_point(message_clear_start:flyte.plugins.ContinuousParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&maxvalue_, 0, static_cast( + reinterpret_cast(&scalingtype_) - + reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ContinuousParameterRange::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string Name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.ContinuousParameterRange.Name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // double MaxValue = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 17) goto handle_unusual; + msg->set_maxvalue(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(double); + break; + } + // double MinValue = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 25) goto handle_unusual; + msg->set_minvalue(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(double); + break; + } + // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_scalingtype(static_cast<::flyte::plugins::HyperparameterScalingType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ContinuousParameterRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyte.plugins.ContinuousParameterRange) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string Name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.ContinuousParameterRange.Name")); + } else { + goto handle_unusual; + } + break; + } + + // double MaxValue = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (17 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + input, &maxvalue_))); + } else { + goto handle_unusual; + } + break; + } + + // double MinValue = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (25 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + input, &minvalue_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_scalingtype(static_cast< ::flyte::plugins::HyperparameterScalingType >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyte.plugins.ContinuousParameterRange) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyte.plugins.ContinuousParameterRange) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ContinuousParameterRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyte.plugins.ContinuousParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.ContinuousParameterRange.Name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // double MaxValue = 2; + if (this->maxvalue() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->maxvalue(), output); + } + + // double MinValue = 3; + if (this->minvalue() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->minvalue(), output); + } + + // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + if (this->scalingtype() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->scalingtype(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyte.plugins.ContinuousParameterRange) +} + +::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.ContinuousParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.ContinuousParameterRange.Name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // double MaxValue = 2; + if (this->maxvalue() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->maxvalue(), target); + } + + // double MinValue = 3; + if (this->minvalue() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->minvalue(), target); + } + + // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + if (this->scalingtype() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->scalingtype(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.ContinuousParameterRange) + return target; +} + +size_t ContinuousParameterRange::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.ContinuousParameterRange) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // double MaxValue = 2; + if (this->maxvalue() != 0) { + total_size += 1 + 8; + } + + // double MinValue = 3; + if (this->minvalue() != 0) { + total_size += 1 + 8; + } + + // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + if (this->scalingtype() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scalingtype()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ContinuousParameterRange::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.ContinuousParameterRange) + GOOGLE_DCHECK_NE(&from, this); + const ContinuousParameterRange* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.ContinuousParameterRange) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.ContinuousParameterRange) + MergeFrom(*source); + } +} + +void ContinuousParameterRange::MergeFrom(const ContinuousParameterRange& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.ContinuousParameterRange) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.maxvalue() != 0) { + set_maxvalue(from.maxvalue()); + } + if (from.minvalue() != 0) { + set_minvalue(from.minvalue()); + } + if (from.scalingtype() != 0) { + set_scalingtype(from.scalingtype()); + } +} + +void ContinuousParameterRange::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.ContinuousParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ContinuousParameterRange::CopyFrom(const ContinuousParameterRange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.ContinuousParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ContinuousParameterRange::IsInitialized() const { + return true; +} + +void ContinuousParameterRange::Swap(ContinuousParameterRange* other) { + if (other == this) return; + InternalSwap(other); +} +void ContinuousParameterRange::InternalSwap(ContinuousParameterRange* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(maxvalue_, other->maxvalue_); + swap(minvalue_, other->minvalue_); + swap(scalingtype_, other->scalingtype_); +} + +::google::protobuf::Metadata ContinuousParameterRange::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void IntegerParameterRange::InitAsDefaultInstance() { +} +class IntegerParameterRange::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int IntegerParameterRange::kNameFieldNumber; +const int IntegerParameterRange::kMaxValueFieldNumber; +const int IntegerParameterRange::kMinValueFieldNumber; +const int IntegerParameterRange::kScalingTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +IntegerParameterRange::IntegerParameterRange() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyte.plugins.IntegerParameterRange) +} +IntegerParameterRange::IntegerParameterRange(const IntegerParameterRange& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + ::memcpy(&maxvalue_, &from.maxvalue_, + static_cast(reinterpret_cast(&scalingtype_) - + reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + // @@protoc_insertion_point(copy_constructor:flyte.plugins.IntegerParameterRange) +} + +void IntegerParameterRange::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&maxvalue_, 0, static_cast( + reinterpret_cast(&scalingtype_) - + reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); +} + +IntegerParameterRange::~IntegerParameterRange() { + // @@protoc_insertion_point(destructor:flyte.plugins.IntegerParameterRange) + SharedDtor(); +} + +void IntegerParameterRange::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void IntegerParameterRange::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IntegerParameterRange& IntegerParameterRange::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + return *internal_default_instance(); +} + + +void IntegerParameterRange::Clear() { +// @@protoc_insertion_point(message_clear_start:flyte.plugins.IntegerParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&maxvalue_, 0, static_cast( + reinterpret_cast(&scalingtype_) - + reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IntegerParameterRange::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string Name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.IntegerParameterRange.Name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // float MaxValue = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 21) goto handle_unusual; + msg->set_maxvalue(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(float); + break; + } + // float MinValue = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 29) goto handle_unusual; + msg->set_minvalue(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(float); + break; + } + // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_scalingtype(static_cast<::flyte::plugins::HyperparameterScalingType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IntegerParameterRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyte.plugins.IntegerParameterRange) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string Name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.IntegerParameterRange.Name")); + } else { + goto handle_unusual; + } + break; + } + + // float MaxValue = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (21 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &maxvalue_))); + } else { + goto handle_unusual; + } + break; + } + + // float MinValue = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (29 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &minvalue_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_scalingtype(static_cast< ::flyte::plugins::HyperparameterScalingType >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyte.plugins.IntegerParameterRange) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyte.plugins.IntegerParameterRange) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IntegerParameterRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyte.plugins.IntegerParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.IntegerParameterRange.Name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // float MaxValue = 2; + if (this->maxvalue() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->maxvalue(), output); + } + + // float MinValue = 3; + if (this->minvalue() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->minvalue(), output); + } + + // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + if (this->scalingtype() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->scalingtype(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyte.plugins.IntegerParameterRange) +} + +::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.IntegerParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.IntegerParameterRange.Name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // float MaxValue = 2; + if (this->maxvalue() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->maxvalue(), target); + } + + // float MinValue = 3; + if (this->minvalue() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->minvalue(), target); + } + + // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + if (this->scalingtype() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->scalingtype(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.IntegerParameterRange) + return target; +} + +size_t IntegerParameterRange::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.IntegerParameterRange) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // float MaxValue = 2; + if (this->maxvalue() != 0) { + total_size += 1 + 4; + } + + // float MinValue = 3; + if (this->minvalue() != 0) { + total_size += 1 + 4; + } + + // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + if (this->scalingtype() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scalingtype()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IntegerParameterRange::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.IntegerParameterRange) + GOOGLE_DCHECK_NE(&from, this); + const IntegerParameterRange* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.IntegerParameterRange) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.IntegerParameterRange) + MergeFrom(*source); + } +} + +void IntegerParameterRange::MergeFrom(const IntegerParameterRange& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.IntegerParameterRange) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.maxvalue() != 0) { + set_maxvalue(from.maxvalue()); + } + if (from.minvalue() != 0) { + set_minvalue(from.minvalue()); + } + if (from.scalingtype() != 0) { + set_scalingtype(from.scalingtype()); + } +} + +void IntegerParameterRange::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.IntegerParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IntegerParameterRange::CopyFrom(const IntegerParameterRange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.IntegerParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IntegerParameterRange::IsInitialized() const { + return true; +} + +void IntegerParameterRange::Swap(IntegerParameterRange* other) { + if (other == this) return; + InternalSwap(other); +} +void IntegerParameterRange::InternalSwap(IntegerParameterRange* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(maxvalue_, other->maxvalue_); + swap(minvalue_, other->minvalue_); + swap(scalingtype_, other->scalingtype_); +} + +::google::protobuf::Metadata IntegerParameterRange::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CategoricalParameterRange::InitAsDefaultInstance() { +} +class CategoricalParameterRange::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CategoricalParameterRange::kNameFieldNumber; +const int CategoricalParameterRange::kValuesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CategoricalParameterRange::CategoricalParameterRange() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyte.plugins.CategoricalParameterRange) +} +CategoricalParameterRange::CategoricalParameterRange(const CategoricalParameterRange& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + values_(from.values_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + // @@protoc_insertion_point(copy_constructor:flyte.plugins.CategoricalParameterRange) +} + +void CategoricalParameterRange::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +CategoricalParameterRange::~CategoricalParameterRange() { + // @@protoc_insertion_point(destructor:flyte.plugins.CategoricalParameterRange) + SharedDtor(); +} + +void CategoricalParameterRange::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CategoricalParameterRange::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CategoricalParameterRange& CategoricalParameterRange::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + return *internal_default_instance(); +} + + +void CategoricalParameterRange::Clear() { +// @@protoc_insertion_point(message_clear_start:flyte.plugins.CategoricalParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + values_.Clear(); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CategoricalParameterRange::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string Name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.CategoricalParameterRange.Name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated string Values = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.CategoricalParameterRange.Values"); + object = msg->add_values(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CategoricalParameterRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyte.plugins.CategoricalParameterRange) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string Name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.CategoricalParameterRange.Name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string Values = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_values())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(this->values_size() - 1).data(), + static_cast(this->values(this->values_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.CategoricalParameterRange.Values")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyte.plugins.CategoricalParameterRange) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyte.plugins.CategoricalParameterRange) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CategoricalParameterRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyte.plugins.CategoricalParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.CategoricalParameterRange.Name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // repeated string Values = 2; + for (int i = 0, n = this->values_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(i).data(), static_cast(this->values(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.CategoricalParameterRange.Values"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->values(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyte.plugins.CategoricalParameterRange) +} + +::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.CategoricalParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.CategoricalParameterRange.Name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // repeated string Values = 2; + for (int i = 0, n = this->values_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(i).data(), static_cast(this->values(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.CategoricalParameterRange.Values"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(2, this->values(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.CategoricalParameterRange) + return target; +} + +size_t CategoricalParameterRange::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.CategoricalParameterRange) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string Values = 2; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->values_size()); + for (int i = 0, n = this->values_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->values(i)); + } + + // string Name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CategoricalParameterRange::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.CategoricalParameterRange) + GOOGLE_DCHECK_NE(&from, this); + const CategoricalParameterRange* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.CategoricalParameterRange) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.CategoricalParameterRange) + MergeFrom(*source); + } +} + +void CategoricalParameterRange::MergeFrom(const CategoricalParameterRange& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.CategoricalParameterRange) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + values_.MergeFrom(from.values_); + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } +} + +void CategoricalParameterRange::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.CategoricalParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CategoricalParameterRange::CopyFrom(const CategoricalParameterRange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.CategoricalParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CategoricalParameterRange::IsInitialized() const { + return true; +} + +void CategoricalParameterRange::Swap(CategoricalParameterRange* other) { + if (other == this) return; + InternalSwap(other); +} +void CategoricalParameterRange::InternalSwap(CategoricalParameterRange* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + values_.InternalSwap(CastToBase(&other->values_)); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata CategoricalParameterRange::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ParameterRanges::InitAsDefaultInstance() { +} +class ParameterRanges::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParameterRanges::kContinuousParameterRangesFieldNumber; +const int ParameterRanges::kIntegerParameterRangesFieldNumber; +const int ParameterRanges::kCategoricalParameterRangesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParameterRanges::ParameterRanges() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyte.plugins.ParameterRanges) +} +ParameterRanges::ParameterRanges(const ParameterRanges& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + continuousparameterranges_(from.continuousparameterranges_), + integerparameterranges_(from.integerparameterranges_), + categoricalparameterranges_(from.categoricalparameterranges_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyte.plugins.ParameterRanges) +} + +void ParameterRanges::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto.base); +} + +ParameterRanges::~ParameterRanges() { + // @@protoc_insertion_point(destructor:flyte.plugins.ParameterRanges) + SharedDtor(); +} + +void ParameterRanges::SharedDtor() { +} + +void ParameterRanges::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ParameterRanges& ParameterRanges::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto.base); + return *internal_default_instance(); +} + + +void ParameterRanges::Clear() { +// @@protoc_insertion_point(message_clear_start:flyte.plugins.ParameterRanges) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + continuousparameterranges_.Clear(); + integerparameterranges_.Clear(); + categoricalparameterranges_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ParameterRanges::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyte::plugins::ContinuousParameterRange::_InternalParse; + object = msg->add_continuousparameterranges(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyte::plugins::IntegerParameterRange::_InternalParse; + object = msg->add_integerparameterranges(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + // repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyte::plugins::CategoricalParameterRange::_InternalParse; + object = msg->add_categoricalparameterranges(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParameterRanges::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyte.plugins.ParameterRanges) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_continuousparameterranges())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_integerparameterranges())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_categoricalparameterranges())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyte.plugins.ParameterRanges) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyte.plugins.ParameterRanges) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ParameterRanges::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyte.plugins.ParameterRanges) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + for (unsigned int i = 0, + n = static_cast(this->continuousparameterranges_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->continuousparameterranges(static_cast(i)), + output); + } + + // repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + for (unsigned int i = 0, + n = static_cast(this->integerparameterranges_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->integerparameterranges(static_cast(i)), + output); + } + + // repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + for (unsigned int i = 0, + n = static_cast(this->categoricalparameterranges_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->categoricalparameterranges(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyte.plugins.ParameterRanges) +} + +::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.ParameterRanges) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + for (unsigned int i = 0, + n = static_cast(this->continuousparameterranges_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->continuousparameterranges(static_cast(i)), target); + } + + // repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + for (unsigned int i = 0, + n = static_cast(this->integerparameterranges_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->integerparameterranges(static_cast(i)), target); + } + + // repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + for (unsigned int i = 0, + n = static_cast(this->categoricalparameterranges_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->categoricalparameterranges(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.ParameterRanges) + return target; +} + +size_t ParameterRanges::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.ParameterRanges) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + { + unsigned int count = static_cast(this->continuousparameterranges_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->continuousparameterranges(static_cast(i))); + } + } + + // repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + { + unsigned int count = static_cast(this->integerparameterranges_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->integerparameterranges(static_cast(i))); + } + } + + // repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + { + unsigned int count = static_cast(this->categoricalparameterranges_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->categoricalparameterranges(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ParameterRanges::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.ParameterRanges) + GOOGLE_DCHECK_NE(&from, this); + const ParameterRanges* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.ParameterRanges) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.ParameterRanges) + MergeFrom(*source); + } +} + +void ParameterRanges::MergeFrom(const ParameterRanges& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.ParameterRanges) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + continuousparameterranges_.MergeFrom(from.continuousparameterranges_); + integerparameterranges_.MergeFrom(from.integerparameterranges_); + categoricalparameterranges_.MergeFrom(from.categoricalparameterranges_); +} + +void ParameterRanges::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.ParameterRanges) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParameterRanges::CopyFrom(const ParameterRanges& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.ParameterRanges) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParameterRanges::IsInitialized() const { + return true; +} + +void ParameterRanges::Swap(ParameterRanges* other) { + if (other == this) return; + InternalSwap(other); +} +void ParameterRanges::InternalSwap(ParameterRanges* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&continuousparameterranges_)->InternalSwap(CastToBase(&other->continuousparameterranges_)); + CastToBase(&integerparameterranges_)->InternalSwap(CastToBase(&other->integerparameterranges_)); + CastToBase(&categoricalparameterranges_)->InternalSwap(CastToBase(&other->categoricalparameterranges_)); +} + +::google::protobuf::Metadata ParameterRanges::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance() { +} +class AlgorithmSpecification_MetricDefinition::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AlgorithmSpecification_MetricDefinition::kNameFieldNumber; +const int AlgorithmSpecification_MetricDefinition::kRegexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyte.plugins.AlgorithmSpecification.MetricDefinition) +} +AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.regex().size() > 0) { + regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); + } + // @@protoc_insertion_point(copy_constructor:flyte.plugins.AlgorithmSpecification.MetricDefinition) +} + +void AlgorithmSpecification_MetricDefinition::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +AlgorithmSpecification_MetricDefinition::~AlgorithmSpecification_MetricDefinition() { + // @@protoc_insertion_point(destructor:flyte.plugins.AlgorithmSpecification.MetricDefinition) + SharedDtor(); +} + +void AlgorithmSpecification_MetricDefinition::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void AlgorithmSpecification_MetricDefinition::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AlgorithmSpecification_MetricDefinition& AlgorithmSpecification_MetricDefinition::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto.base); + return *internal_default_instance(); +} + + +void AlgorithmSpecification_MetricDefinition::Clear() { +// @@protoc_insertion_point(message_clear_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string Name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.AlgorithmSpecification.MetricDefinition.Name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string Regex = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex"); + object = msg->mutable_regex(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string Name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.AlgorithmSpecification.MetricDefinition.Name")); + } else { + goto handle_unusual; + } + break; + } + + // string Regex = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_regex())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyte.plugins.AlgorithmSpecification.MetricDefinition) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyte.plugins.AlgorithmSpecification.MetricDefinition) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.AlgorithmSpecification.MetricDefinition.Name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // string Regex = 2; + if (this->regex().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->regex(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyte.plugins.AlgorithmSpecification.MetricDefinition) +} + +::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.AlgorithmSpecification.MetricDefinition.Name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // string Regex = 2; + if (this->regex().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->regex(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.AlgorithmSpecification.MetricDefinition) + return target; +} + +size_t AlgorithmSpecification_MetricDefinition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string Regex = 2; + if (this->regex().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->regex()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AlgorithmSpecification_MetricDefinition::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) + GOOGLE_DCHECK_NE(&from, this); + const AlgorithmSpecification_MetricDefinition* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.AlgorithmSpecification.MetricDefinition) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.AlgorithmSpecification.MetricDefinition) + MergeFrom(*source); + } +} + +void AlgorithmSpecification_MetricDefinition::MergeFrom(const AlgorithmSpecification_MetricDefinition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.regex().size() > 0) { + + regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); + } +} + +void AlgorithmSpecification_MetricDefinition::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AlgorithmSpecification_MetricDefinition::CopyFrom(const AlgorithmSpecification_MetricDefinition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AlgorithmSpecification_MetricDefinition::IsInitialized() const { + return true; +} + +void AlgorithmSpecification_MetricDefinition::Swap(AlgorithmSpecification_MetricDefinition* other) { + if (other == this) return; + InternalSwap(other); +} +void AlgorithmSpecification_MetricDefinition::InternalSwap(AlgorithmSpecification_MetricDefinition* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + regex_.Swap(&other->regex_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata AlgorithmSpecification_MetricDefinition::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void AlgorithmSpecification::InitAsDefaultInstance() { +} +class AlgorithmSpecification::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AlgorithmSpecification::kTrainingImageFieldNumber; +const int AlgorithmSpecification::kTrainingInputModeFieldNumber; +const int AlgorithmSpecification::kAlgorithmNameFieldNumber; +const int AlgorithmSpecification::kMetricDefinitionsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AlgorithmSpecification::AlgorithmSpecification() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyte.plugins.AlgorithmSpecification) +} +AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + metricdefinitions_(from.metricdefinitions_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + trainingimage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.trainingimage().size() > 0) { + trainingimage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trainingimage_); + } + traininginputmode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.traininginputmode().size() > 0) { + traininginputmode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.traininginputmode_); + } + algorithmname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.algorithmname().size() > 0) { + algorithmname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithmname_); + } + // @@protoc_insertion_point(copy_constructor:flyte.plugins.AlgorithmSpecification) +} + +void AlgorithmSpecification::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto.base); + trainingimage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + traininginputmode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + algorithmname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +AlgorithmSpecification::~AlgorithmSpecification() { + // @@protoc_insertion_point(destructor:flyte.plugins.AlgorithmSpecification) + SharedDtor(); +} + +void AlgorithmSpecification::SharedDtor() { + trainingimage_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + traininginputmode_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + algorithmname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void AlgorithmSpecification::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AlgorithmSpecification& AlgorithmSpecification::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto.base); + return *internal_default_instance(); +} + + +void AlgorithmSpecification::Clear() { +// @@protoc_insertion_point(message_clear_start:flyte.plugins.AlgorithmSpecification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metricdefinitions_.Clear(); + trainingimage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + traininginputmode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + algorithmname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AlgorithmSpecification::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string TrainingImage = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.AlgorithmSpecification.TrainingImage"); + object = msg->mutable_trainingimage(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string TrainingInputMode = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.AlgorithmSpecification.TrainingInputMode"); + object = msg->mutable_traininginputmode(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string AlgorithmName = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.AlgorithmSpecification.AlgorithmName"); + object = msg->mutable_algorithmname(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyte::plugins::AlgorithmSpecification_MetricDefinition::_InternalParse; + object = msg->add_metricdefinitions(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AlgorithmSpecification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyte.plugins.AlgorithmSpecification) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string TrainingImage = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_trainingimage())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->trainingimage().data(), static_cast(this->trainingimage().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.AlgorithmSpecification.TrainingImage")); + } else { + goto handle_unusual; + } + break; + } + + // string TrainingInputMode = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_traininginputmode())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->traininginputmode().data(), static_cast(this->traininginputmode().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.AlgorithmSpecification.TrainingInputMode")); + } else { + goto handle_unusual; + } + break; + } + + // string AlgorithmName = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_algorithmname())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->algorithmname().data(), static_cast(this->algorithmname().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.AlgorithmSpecification.AlgorithmName")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_metricdefinitions())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyte.plugins.AlgorithmSpecification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyte.plugins.AlgorithmSpecification) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AlgorithmSpecification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyte.plugins.AlgorithmSpecification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string TrainingImage = 1; + if (this->trainingimage().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->trainingimage().data(), static_cast(this->trainingimage().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.AlgorithmSpecification.TrainingImage"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->trainingimage(), output); + } + + // string TrainingInputMode = 2; + if (this->traininginputmode().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->traininginputmode().data(), static_cast(this->traininginputmode().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.AlgorithmSpecification.TrainingInputMode"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->traininginputmode(), output); + } + + // string AlgorithmName = 3; + if (this->algorithmname().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->algorithmname().data(), static_cast(this->algorithmname().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.AlgorithmSpecification.AlgorithmName"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->algorithmname(), output); + } + + // repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + for (unsigned int i = 0, + n = static_cast(this->metricdefinitions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->metricdefinitions(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyte.plugins.AlgorithmSpecification) +} + +::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.AlgorithmSpecification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string TrainingImage = 1; + if (this->trainingimage().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->trainingimage().data(), static_cast(this->trainingimage().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.AlgorithmSpecification.TrainingImage"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->trainingimage(), target); + } + + // string TrainingInputMode = 2; + if (this->traininginputmode().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->traininginputmode().data(), static_cast(this->traininginputmode().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.AlgorithmSpecification.TrainingInputMode"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->traininginputmode(), target); + } + + // string AlgorithmName = 3; + if (this->algorithmname().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->algorithmname().data(), static_cast(this->algorithmname().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.AlgorithmSpecification.AlgorithmName"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->algorithmname(), target); + } + + // repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + for (unsigned int i = 0, + n = static_cast(this->metricdefinitions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->metricdefinitions(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.AlgorithmSpecification) + return target; +} + +size_t AlgorithmSpecification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.AlgorithmSpecification) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + { + unsigned int count = static_cast(this->metricdefinitions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->metricdefinitions(static_cast(i))); + } + } + + // string TrainingImage = 1; + if (this->trainingimage().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->trainingimage()); + } + + // string TrainingInputMode = 2; + if (this->traininginputmode().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->traininginputmode()); + } + + // string AlgorithmName = 3; + if (this->algorithmname().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->algorithmname()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AlgorithmSpecification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.AlgorithmSpecification) + GOOGLE_DCHECK_NE(&from, this); + const AlgorithmSpecification* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.AlgorithmSpecification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.AlgorithmSpecification) + MergeFrom(*source); + } +} + +void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.AlgorithmSpecification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + metricdefinitions_.MergeFrom(from.metricdefinitions_); + if (from.trainingimage().size() > 0) { + + trainingimage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trainingimage_); + } + if (from.traininginputmode().size() > 0) { + + traininginputmode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.traininginputmode_); + } + if (from.algorithmname().size() > 0) { + + algorithmname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithmname_); + } +} + +void AlgorithmSpecification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.AlgorithmSpecification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AlgorithmSpecification::CopyFrom(const AlgorithmSpecification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.AlgorithmSpecification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AlgorithmSpecification::IsInitialized() const { + return true; +} + +void AlgorithmSpecification::Swap(AlgorithmSpecification* other) { + if (other == this) return; + InternalSwap(other); +} +void AlgorithmSpecification::InternalSwap(AlgorithmSpecification* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&metricdefinitions_)->InternalSwap(CastToBase(&other->metricdefinitions_)); + trainingimage_.Swap(&other->trainingimage_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + traininginputmode_.Swap(&other->traininginputmode_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + algorithmname_.Swap(&other->algorithmname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata AlgorithmSpecification::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ResourceConfig::InitAsDefaultInstance() { +} +class ResourceConfig::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ResourceConfig::kInstanceTypeFieldNumber; +const int ResourceConfig::kInstanceCountFieldNumber; +const int ResourceConfig::kVolumeSizeInGBFieldNumber; +const int ResourceConfig::kVolumeKmsKeyIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ResourceConfig::ResourceConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyte.plugins.ResourceConfig) +} +ResourceConfig::ResourceConfig(const ResourceConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + instancetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.instancetype().size() > 0) { + instancetype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instancetype_); + } + volumekmskeyid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.volumekmskeyid().size() > 0) { + volumekmskeyid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volumekmskeyid_); + } + ::memcpy(&instancecount_, &from.instancecount_, + static_cast(reinterpret_cast(&volumesizeingb_) - + reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); + // @@protoc_insertion_point(copy_constructor:flyte.plugins.ResourceConfig) +} + +void ResourceConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base); + instancetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + volumekmskeyid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&instancecount_, 0, static_cast( + reinterpret_cast(&volumesizeingb_) - + reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); +} + +ResourceConfig::~ResourceConfig() { + // @@protoc_insertion_point(destructor:flyte.plugins.ResourceConfig) + SharedDtor(); +} + +void ResourceConfig::SharedDtor() { + instancetype_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + volumekmskeyid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ResourceConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ResourceConfig& ResourceConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base); + return *internal_default_instance(); +} + + +void ResourceConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyte.plugins.ResourceConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + instancetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + volumekmskeyid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&instancecount_, 0, static_cast( + reinterpret_cast(&volumesizeingb_) - + reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ResourceConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string InstanceType = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.ResourceConfig.InstanceType"); + object = msg->mutable_instancetype(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // int64 InstanceCount = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_instancecount(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 VolumeSizeInGB = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_volumesizeingb(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string VolumeKmsKeyId = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.ResourceConfig.VolumeKmsKeyId"); + object = msg->mutable_volumekmskeyid(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ResourceConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyte.plugins.ResourceConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string InstanceType = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_instancetype())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->instancetype().data(), static_cast(this->instancetype().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.ResourceConfig.InstanceType")); + } else { + goto handle_unusual; + } + break; + } + + // int64 InstanceCount = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &instancecount_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 VolumeSizeInGB = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &volumesizeingb_))); + } else { + goto handle_unusual; + } + break; + } + + // string VolumeKmsKeyId = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_volumekmskeyid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.ResourceConfig.VolumeKmsKeyId")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyte.plugins.ResourceConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyte.plugins.ResourceConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ResourceConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyte.plugins.ResourceConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string InstanceType = 1; + if (this->instancetype().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->instancetype().data(), static_cast(this->instancetype().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.ResourceConfig.InstanceType"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->instancetype(), output); + } + + // int64 InstanceCount = 2; + if (this->instancecount() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->instancecount(), output); + } + + // int64 VolumeSizeInGB = 3; + if (this->volumesizeingb() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->volumesizeingb(), output); + } + + // string VolumeKmsKeyId = 4; + if (this->volumekmskeyid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.ResourceConfig.VolumeKmsKeyId"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->volumekmskeyid(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyte.plugins.ResourceConfig) +} + +::google::protobuf::uint8* ResourceConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.ResourceConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string InstanceType = 1; + if (this->instancetype().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->instancetype().data(), static_cast(this->instancetype().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.ResourceConfig.InstanceType"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->instancetype(), target); + } + + // int64 InstanceCount = 2; + if (this->instancecount() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->instancecount(), target); + } + + // int64 VolumeSizeInGB = 3; + if (this->volumesizeingb() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->volumesizeingb(), target); + } + + // string VolumeKmsKeyId = 4; + if (this->volumekmskeyid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.ResourceConfig.VolumeKmsKeyId"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->volumekmskeyid(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.ResourceConfig) + return target; +} + +size_t ResourceConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.ResourceConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string InstanceType = 1; + if (this->instancetype().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->instancetype()); + } + + // string VolumeKmsKeyId = 4; + if (this->volumekmskeyid().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->volumekmskeyid()); + } + + // int64 InstanceCount = 2; + if (this->instancecount() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->instancecount()); + } + + // int64 VolumeSizeInGB = 3; + if (this->volumesizeingb() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->volumesizeingb()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ResourceConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.ResourceConfig) + GOOGLE_DCHECK_NE(&from, this); + const ResourceConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.ResourceConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.ResourceConfig) + MergeFrom(*source); + } +} + +void ResourceConfig::MergeFrom(const ResourceConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.ResourceConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.instancetype().size() > 0) { + + instancetype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instancetype_); + } + if (from.volumekmskeyid().size() > 0) { + + volumekmskeyid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volumekmskeyid_); + } + if (from.instancecount() != 0) { + set_instancecount(from.instancecount()); + } + if (from.volumesizeingb() != 0) { + set_volumesizeingb(from.volumesizeingb()); + } +} + +void ResourceConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.ResourceConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ResourceConfig::CopyFrom(const ResourceConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.ResourceConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourceConfig::IsInitialized() const { + return true; +} + +void ResourceConfig::Swap(ResourceConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void ResourceConfig::InternalSwap(ResourceConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + instancetype_.Swap(&other->instancetype_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + volumekmskeyid_.Swap(&other->volumekmskeyid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(instancecount_, other->instancecount_); + swap(volumesizeingb_, other->volumesizeingb_); +} + +::google::protobuf::Metadata ResourceConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void StoppingCondition::InitAsDefaultInstance() { +} +class StoppingCondition::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StoppingCondition::kMaxRuntimeInSecondsFieldNumber; +const int StoppingCondition::kMaxWaitTimeInSecondsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StoppingCondition::StoppingCondition() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyte.plugins.StoppingCondition) +} +StoppingCondition::StoppingCondition(const StoppingCondition& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&maxruntimeinseconds_, &from.maxruntimeinseconds_, + static_cast(reinterpret_cast(&maxwaittimeinseconds_) - + reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); + // @@protoc_insertion_point(copy_constructor:flyte.plugins.StoppingCondition) +} + +void StoppingCondition::SharedCtor() { + ::memset(&maxruntimeinseconds_, 0, static_cast( + reinterpret_cast(&maxwaittimeinseconds_) - + reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); +} + +StoppingCondition::~StoppingCondition() { + // @@protoc_insertion_point(destructor:flyte.plugins.StoppingCondition) + SharedDtor(); +} + +void StoppingCondition::SharedDtor() { +} + +void StoppingCondition::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StoppingCondition& StoppingCondition::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto.base); + return *internal_default_instance(); +} + + +void StoppingCondition::Clear() { +// @@protoc_insertion_point(message_clear_start:flyte.plugins.StoppingCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&maxruntimeinseconds_, 0, static_cast( + reinterpret_cast(&maxwaittimeinseconds_) - + reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* StoppingCondition::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int64 MaxRuntimeInSeconds = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_maxruntimeinseconds(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 MaxWaitTimeInSeconds = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_maxwaittimeinseconds(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool StoppingCondition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyte.plugins.StoppingCondition) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 MaxRuntimeInSeconds = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &maxruntimeinseconds_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 MaxWaitTimeInSeconds = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &maxwaittimeinseconds_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyte.plugins.StoppingCondition) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyte.plugins.StoppingCondition) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void StoppingCondition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyte.plugins.StoppingCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 MaxRuntimeInSeconds = 1; + if (this->maxruntimeinseconds() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->maxruntimeinseconds(), output); + } + + // int64 MaxWaitTimeInSeconds = 2; + if (this->maxwaittimeinseconds() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->maxwaittimeinseconds(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyte.plugins.StoppingCondition) +} + +::google::protobuf::uint8* StoppingCondition::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.StoppingCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 MaxRuntimeInSeconds = 1; + if (this->maxruntimeinseconds() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->maxruntimeinseconds(), target); + } + + // int64 MaxWaitTimeInSeconds = 2; + if (this->maxwaittimeinseconds() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->maxwaittimeinseconds(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.StoppingCondition) + return target; +} + +size_t StoppingCondition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.StoppingCondition) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 MaxRuntimeInSeconds = 1; + if (this->maxruntimeinseconds() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->maxruntimeinseconds()); + } + + // int64 MaxWaitTimeInSeconds = 2; + if (this->maxwaittimeinseconds() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->maxwaittimeinseconds()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StoppingCondition::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.StoppingCondition) + GOOGLE_DCHECK_NE(&from, this); + const StoppingCondition* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.StoppingCondition) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.StoppingCondition) + MergeFrom(*source); + } +} + +void StoppingCondition::MergeFrom(const StoppingCondition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.StoppingCondition) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.maxruntimeinseconds() != 0) { + set_maxruntimeinseconds(from.maxruntimeinseconds()); + } + if (from.maxwaittimeinseconds() != 0) { + set_maxwaittimeinseconds(from.maxwaittimeinseconds()); + } +} + +void StoppingCondition::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.StoppingCondition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StoppingCondition::CopyFrom(const StoppingCondition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.StoppingCondition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StoppingCondition::IsInitialized() const { + return true; +} + +void StoppingCondition::Swap(StoppingCondition* other) { + if (other == this) return; + InternalSwap(other); +} +void StoppingCondition::InternalSwap(StoppingCondition* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(maxruntimeinseconds_, other->maxruntimeinseconds_); + swap(maxwaittimeinseconds_, other->maxwaittimeinseconds_); +} + +::google::protobuf::Metadata StoppingCondition::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void VpcConfig::InitAsDefaultInstance() { +} +class VpcConfig::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int VpcConfig::kSecurityGroupIdsFieldNumber; +const int VpcConfig::kSubnetsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +VpcConfig::VpcConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyte.plugins.VpcConfig) +} +VpcConfig::VpcConfig(const VpcConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + securitygroupids_(from.securitygroupids_), + subnets_(from.subnets_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyte.plugins.VpcConfig) +} + +void VpcConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base); +} + +VpcConfig::~VpcConfig() { + // @@protoc_insertion_point(destructor:flyte.plugins.VpcConfig) + SharedDtor(); +} + +void VpcConfig::SharedDtor() { +} + +void VpcConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const VpcConfig& VpcConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base); + return *internal_default_instance(); +} + + +void VpcConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyte.plugins.VpcConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + securitygroupids_.Clear(); + subnets_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* VpcConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string SecurityGroupIds = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.VpcConfig.SecurityGroupIds"); + object = msg->add_securitygroupids(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // repeated string Subnets = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.VpcConfig.Subnets"); + object = msg->add_subnets(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool VpcConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyte.plugins.VpcConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string SecurityGroupIds = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_securitygroupids())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->securitygroupids(this->securitygroupids_size() - 1).data(), + static_cast(this->securitygroupids(this->securitygroupids_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.VpcConfig.SecurityGroupIds")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string Subnets = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_subnets())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subnets(this->subnets_size() - 1).data(), + static_cast(this->subnets(this->subnets_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.VpcConfig.Subnets")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyte.plugins.VpcConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyte.plugins.VpcConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void VpcConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyte.plugins.VpcConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string SecurityGroupIds = 1; + for (int i = 0, n = this->securitygroupids_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->securitygroupids(i).data(), static_cast(this->securitygroupids(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.VpcConfig.SecurityGroupIds"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->securitygroupids(i), output); + } + + // repeated string Subnets = 2; + for (int i = 0, n = this->subnets_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subnets(i).data(), static_cast(this->subnets(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.VpcConfig.Subnets"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->subnets(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyte.plugins.VpcConfig) +} + +::google::protobuf::uint8* VpcConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.VpcConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string SecurityGroupIds = 1; + for (int i = 0, n = this->securitygroupids_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->securitygroupids(i).data(), static_cast(this->securitygroupids(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.VpcConfig.SecurityGroupIds"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->securitygroupids(i), target); + } + + // repeated string Subnets = 2; + for (int i = 0, n = this->subnets_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subnets(i).data(), static_cast(this->subnets(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.VpcConfig.Subnets"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(2, this->subnets(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.VpcConfig) + return target; +} + +size_t VpcConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.VpcConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string SecurityGroupIds = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->securitygroupids_size()); + for (int i = 0, n = this->securitygroupids_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->securitygroupids(i)); + } + + // repeated string Subnets = 2; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->subnets_size()); + for (int i = 0, n = this->subnets_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->subnets(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void VpcConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.VpcConfig) + GOOGLE_DCHECK_NE(&from, this); + const VpcConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.VpcConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.VpcConfig) + MergeFrom(*source); + } +} + +void VpcConfig::MergeFrom(const VpcConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.VpcConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + securitygroupids_.MergeFrom(from.securitygroupids_); + subnets_.MergeFrom(from.subnets_); +} + +void VpcConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.VpcConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void VpcConfig::CopyFrom(const VpcConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.VpcConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VpcConfig::IsInitialized() const { + return true; +} + +void VpcConfig::Swap(VpcConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void VpcConfig::InternalSwap(VpcConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + securitygroupids_.InternalSwap(CastToBase(&other->securitygroupids_)); + subnets_.InternalSwap(CastToBase(&other->subnets_)); +} + +::google::protobuf::Metadata VpcConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SagemakerTrainingJob::InitAsDefaultInstance() { + ::flyte::plugins::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->algorithmspecification_ = const_cast< ::flyte::plugins::AlgorithmSpecification*>( + ::flyte::plugins::AlgorithmSpecification::internal_default_instance()); + ::flyte::plugins::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->resourceconfig_ = const_cast< ::flyte::plugins::ResourceConfig*>( + ::flyte::plugins::ResourceConfig::internal_default_instance()); + ::flyte::plugins::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->stoppingcondition_ = const_cast< ::flyte::plugins::StoppingCondition*>( + ::flyte::plugins::StoppingCondition::internal_default_instance()); + ::flyte::plugins::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->vpcconfig_ = const_cast< ::flyte::plugins::VpcConfig*>( + ::flyte::plugins::VpcConfig::internal_default_instance()); +} +class SagemakerTrainingJob::HasBitSetters { + public: + static const ::flyte::plugins::AlgorithmSpecification& algorithmspecification(const SagemakerTrainingJob* msg); + static const ::flyte::plugins::ResourceConfig& resourceconfig(const SagemakerTrainingJob* msg); + static const ::flyte::plugins::StoppingCondition& stoppingcondition(const SagemakerTrainingJob* msg); + static const ::flyte::plugins::VpcConfig& vpcconfig(const SagemakerTrainingJob* msg); +}; + +const ::flyte::plugins::AlgorithmSpecification& +SagemakerTrainingJob::HasBitSetters::algorithmspecification(const SagemakerTrainingJob* msg) { + return *msg->algorithmspecification_; +} +const ::flyte::plugins::ResourceConfig& +SagemakerTrainingJob::HasBitSetters::resourceconfig(const SagemakerTrainingJob* msg) { + return *msg->resourceconfig_; +} +const ::flyte::plugins::StoppingCondition& +SagemakerTrainingJob::HasBitSetters::stoppingcondition(const SagemakerTrainingJob* msg) { + return *msg->stoppingcondition_; +} +const ::flyte::plugins::VpcConfig& +SagemakerTrainingJob::HasBitSetters::vpcconfig(const SagemakerTrainingJob* msg) { + return *msg->vpcconfig_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SagemakerTrainingJob::kRegionFieldNumber; +const int SagemakerTrainingJob::kRoleArnFieldNumber; +const int SagemakerTrainingJob::kAlgorithmSpecificationFieldNumber; +const int SagemakerTrainingJob::kResourceConfigFieldNumber; +const int SagemakerTrainingJob::kStoppingConditionFieldNumber; +const int SagemakerTrainingJob::kVpcConfigFieldNumber; +const int SagemakerTrainingJob::kEnableSpotTrainingFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SagemakerTrainingJob::SagemakerTrainingJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyte.plugins.SagemakerTrainingJob) +} +SagemakerTrainingJob::SagemakerTrainingJob(const SagemakerTrainingJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + region_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.region().size() > 0) { + region_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_); + } + rolearn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.rolearn().size() > 0) { + rolearn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rolearn_); + } + if (from.has_algorithmspecification()) { + algorithmspecification_ = new ::flyte::plugins::AlgorithmSpecification(*from.algorithmspecification_); + } else { + algorithmspecification_ = nullptr; + } + if (from.has_resourceconfig()) { + resourceconfig_ = new ::flyte::plugins::ResourceConfig(*from.resourceconfig_); + } else { + resourceconfig_ = nullptr; + } + if (from.has_stoppingcondition()) { + stoppingcondition_ = new ::flyte::plugins::StoppingCondition(*from.stoppingcondition_); + } else { + stoppingcondition_ = nullptr; + } + if (from.has_vpcconfig()) { + vpcconfig_ = new ::flyte::plugins::VpcConfig(*from.vpcconfig_); + } else { + vpcconfig_ = nullptr; + } + enablespottraining_ = from.enablespottraining_; + // @@protoc_insertion_point(copy_constructor:flyte.plugins.SagemakerTrainingJob) +} + +void SagemakerTrainingJob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto.base); + region_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rolearn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&algorithmspecification_, 0, static_cast( + reinterpret_cast(&enablespottraining_) - + reinterpret_cast(&algorithmspecification_)) + sizeof(enablespottraining_)); +} + +SagemakerTrainingJob::~SagemakerTrainingJob() { + // @@protoc_insertion_point(destructor:flyte.plugins.SagemakerTrainingJob) + SharedDtor(); +} + +void SagemakerTrainingJob::SharedDtor() { + region_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rolearn_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete algorithmspecification_; + if (this != internal_default_instance()) delete resourceconfig_; + if (this != internal_default_instance()) delete stoppingcondition_; + if (this != internal_default_instance()) delete vpcconfig_; +} + +void SagemakerTrainingJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SagemakerTrainingJob& SagemakerTrainingJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto.base); + return *internal_default_instance(); +} + + +void SagemakerTrainingJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyte.plugins.SagemakerTrainingJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rolearn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && algorithmspecification_ != nullptr) { + delete algorithmspecification_; + } + algorithmspecification_ = nullptr; + if (GetArenaNoVirtual() == nullptr && resourceconfig_ != nullptr) { + delete resourceconfig_; + } + resourceconfig_ = nullptr; + if (GetArenaNoVirtual() == nullptr && stoppingcondition_ != nullptr) { + delete stoppingcondition_; + } + stoppingcondition_ = nullptr; + if (GetArenaNoVirtual() == nullptr && vpcconfig_ != nullptr) { + delete vpcconfig_; + } + vpcconfig_ = nullptr; + enablespottraining_ = false; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string Region = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.SagemakerTrainingJob.Region"); + object = msg->mutable_region(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string RoleArn = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.SagemakerTrainingJob.RoleArn"); + object = msg->mutable_rolearn(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyte::plugins::AlgorithmSpecification::_InternalParse; + object = msg->mutable_algorithmspecification(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyte.plugins.ResourceConfig ResourceConfig = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyte::plugins::ResourceConfig::_InternalParse; + object = msg->mutable_resourceconfig(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyte.plugins.StoppingCondition StoppingCondition = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyte::plugins::StoppingCondition::_InternalParse; + object = msg->mutable_stoppingcondition(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyte.plugins.VpcConfig VpcConfig = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyte::plugins::VpcConfig::_InternalParse; + object = msg->mutable_vpcconfig(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // bool EnableSpotTraining = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; + msg->set_enablespottraining(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SagemakerTrainingJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyte.plugins.SagemakerTrainingJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string Region = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_region())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->region().data(), static_cast(this->region().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.SagemakerTrainingJob.Region")); + } else { + goto handle_unusual; + } + break; + } + + // string RoleArn = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_rolearn())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->rolearn().data(), static_cast(this->rolearn().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.SagemakerTrainingJob.RoleArn")); + } else { + goto handle_unusual; + } + break; + } + + // .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_algorithmspecification())); + } else { + goto handle_unusual; + } + break; + } + + // .flyte.plugins.ResourceConfig ResourceConfig = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_resourceconfig())); + } else { + goto handle_unusual; + } + break; + } + + // .flyte.plugins.StoppingCondition StoppingCondition = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_stoppingcondition())); + } else { + goto handle_unusual; + } + break; + } + + // .flyte.plugins.VpcConfig VpcConfig = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_vpcconfig())); + } else { + goto handle_unusual; + } + break; + } + + // bool EnableSpotTraining = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &enablespottraining_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyte.plugins.SagemakerTrainingJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyte.plugins.SagemakerTrainingJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SagemakerTrainingJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyte.plugins.SagemakerTrainingJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Region = 1; + if (this->region().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->region().data(), static_cast(this->region().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.SagemakerTrainingJob.Region"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->region(), output); + } + + // string RoleArn = 2; + if (this->rolearn().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->rolearn().data(), static_cast(this->rolearn().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.SagemakerTrainingJob.RoleArn"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->rolearn(), output); + } + + // .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + if (this->has_algorithmspecification()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::algorithmspecification(this), output); + } + + // .flyte.plugins.ResourceConfig ResourceConfig = 4; + if (this->has_resourceconfig()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::resourceconfig(this), output); + } + + // .flyte.plugins.StoppingCondition StoppingCondition = 5; + if (this->has_stoppingcondition()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::stoppingcondition(this), output); + } + + // .flyte.plugins.VpcConfig VpcConfig = 6; + if (this->has_vpcconfig()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::vpcconfig(this), output); + } + + // bool EnableSpotTraining = 7; + if (this->enablespottraining() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->enablespottraining(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyte.plugins.SagemakerTrainingJob) +} + +::google::protobuf::uint8* SagemakerTrainingJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.SagemakerTrainingJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Region = 1; + if (this->region().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->region().data(), static_cast(this->region().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.SagemakerTrainingJob.Region"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->region(), target); + } + + // string RoleArn = 2; + if (this->rolearn().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->rolearn().data(), static_cast(this->rolearn().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.SagemakerTrainingJob.RoleArn"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->rolearn(), target); + } + + // .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + if (this->has_algorithmspecification()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::algorithmspecification(this), target); + } + + // .flyte.plugins.ResourceConfig ResourceConfig = 4; + if (this->has_resourceconfig()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::resourceconfig(this), target); + } + + // .flyte.plugins.StoppingCondition StoppingCondition = 5; + if (this->has_stoppingcondition()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::stoppingcondition(this), target); + } + + // .flyte.plugins.VpcConfig VpcConfig = 6; + if (this->has_vpcconfig()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::vpcconfig(this), target); + } + + // bool EnableSpotTraining = 7; + if (this->enablespottraining() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->enablespottraining(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.SagemakerTrainingJob) + return target; +} + +size_t SagemakerTrainingJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.SagemakerTrainingJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string Region = 1; + if (this->region().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->region()); + } + + // string RoleArn = 2; + if (this->rolearn().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->rolearn()); + } + + // .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + if (this->has_algorithmspecification()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *algorithmspecification_); + } + + // .flyte.plugins.ResourceConfig ResourceConfig = 4; + if (this->has_resourceconfig()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *resourceconfig_); + } + + // .flyte.plugins.StoppingCondition StoppingCondition = 5; + if (this->has_stoppingcondition()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *stoppingcondition_); + } + + // .flyte.plugins.VpcConfig VpcConfig = 6; + if (this->has_vpcconfig()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *vpcconfig_); + } + + // bool EnableSpotTraining = 7; + if (this->enablespottraining() != 0) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SagemakerTrainingJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.SagemakerTrainingJob) + GOOGLE_DCHECK_NE(&from, this); + const SagemakerTrainingJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.SagemakerTrainingJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.SagemakerTrainingJob) + MergeFrom(*source); + } +} + +void SagemakerTrainingJob::MergeFrom(const SagemakerTrainingJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.SagemakerTrainingJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.region().size() > 0) { + + region_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_); + } + if (from.rolearn().size() > 0) { + + rolearn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rolearn_); + } + if (from.has_algorithmspecification()) { + mutable_algorithmspecification()->::flyte::plugins::AlgorithmSpecification::MergeFrom(from.algorithmspecification()); + } + if (from.has_resourceconfig()) { + mutable_resourceconfig()->::flyte::plugins::ResourceConfig::MergeFrom(from.resourceconfig()); + } + if (from.has_stoppingcondition()) { + mutable_stoppingcondition()->::flyte::plugins::StoppingCondition::MergeFrom(from.stoppingcondition()); + } + if (from.has_vpcconfig()) { + mutable_vpcconfig()->::flyte::plugins::VpcConfig::MergeFrom(from.vpcconfig()); + } + if (from.enablespottraining() != 0) { + set_enablespottraining(from.enablespottraining()); + } +} + +void SagemakerTrainingJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.SagemakerTrainingJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SagemakerTrainingJob::CopyFrom(const SagemakerTrainingJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.SagemakerTrainingJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SagemakerTrainingJob::IsInitialized() const { + return true; +} + +void SagemakerTrainingJob::Swap(SagemakerTrainingJob* other) { + if (other == this) return; + InternalSwap(other); +} +void SagemakerTrainingJob::InternalSwap(SagemakerTrainingJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + region_.Swap(&other->region_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + rolearn_.Swap(&other->rolearn_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(algorithmspecification_, other->algorithmspecification_); + swap(resourceconfig_, other->resourceconfig_); + swap(stoppingcondition_, other->stoppingcondition_); + swap(vpcconfig_, other->vpcconfig_); + swap(enablespottraining_, other->enablespottraining_); +} + +::google::protobuf::Metadata SagemakerTrainingJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void HPOJobObjective::InitAsDefaultInstance() { +} +class HPOJobObjective::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HPOJobObjective::kTypeFieldNumber; +const int HPOJobObjective::kMetricNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HPOJobObjective::HPOJobObjective() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyte.plugins.HPOJobObjective) +} +HPOJobObjective::HPOJobObjective(const HPOJobObjective& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + metricname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.metricname().size() > 0) { + metricname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metricname_); + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:flyte.plugins.HPOJobObjective) +} + +void HPOJobObjective::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto.base); + metricname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 0; +} + +HPOJobObjective::~HPOJobObjective() { + // @@protoc_insertion_point(destructor:flyte.plugins.HPOJobObjective) + SharedDtor(); +} + +void HPOJobObjective::SharedDtor() { + metricname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void HPOJobObjective::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HPOJobObjective& HPOJobObjective::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto.base); + return *internal_default_instance(); +} + + +void HPOJobObjective::Clear() { +// @@protoc_insertion_point(message_clear_start:flyte.plugins.HPOJobObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metricname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HPOJobObjective::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyte.plugins.HPOJobObjectiveType Type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_type(static_cast<::flyte::plugins::HPOJobObjectiveType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string MetricName = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.HPOJobObjective.MetricName"); + object = msg->mutable_metricname(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HPOJobObjective::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyte.plugins.HPOJobObjective) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyte.plugins.HPOJobObjectiveType Type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_type(static_cast< ::flyte::plugins::HPOJobObjectiveType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string MetricName = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_metricname())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metricname().data(), static_cast(this->metricname().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.HPOJobObjective.MetricName")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyte.plugins.HPOJobObjective) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyte.plugins.HPOJobObjective) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HPOJobObjective::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyte.plugins.HPOJobObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyte.plugins.HPOJobObjectiveType Type = 1; + if (this->type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + // string MetricName = 2; + if (this->metricname().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metricname().data(), static_cast(this->metricname().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.HPOJobObjective.MetricName"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->metricname(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyte.plugins.HPOJobObjective) +} + +::google::protobuf::uint8* HPOJobObjective::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.HPOJobObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyte.plugins.HPOJobObjectiveType Type = 1; + if (this->type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + // string MetricName = 2; + if (this->metricname().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metricname().data(), static_cast(this->metricname().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.HPOJobObjective.MetricName"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->metricname(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.HPOJobObjective) + return target; +} + +size_t HPOJobObjective::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.HPOJobObjective) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string MetricName = 2; + if (this->metricname().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->metricname()); + } + + // .flyte.plugins.HPOJobObjectiveType Type = 1; + if (this->type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HPOJobObjective::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.HPOJobObjective) + GOOGLE_DCHECK_NE(&from, this); + const HPOJobObjective* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.HPOJobObjective) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.HPOJobObjective) + MergeFrom(*source); + } +} + +void HPOJobObjective::MergeFrom(const HPOJobObjective& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.HPOJobObjective) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.metricname().size() > 0) { + + metricname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metricname_); + } + if (from.type() != 0) { + set_type(from.type()); + } +} + +void HPOJobObjective::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.HPOJobObjective) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HPOJobObjective::CopyFrom(const HPOJobObjective& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.HPOJobObjective) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HPOJobObjective::IsInitialized() const { + return true; +} + +void HPOJobObjective::Swap(HPOJobObjective* other) { + if (other == this) return; + InternalSwap(other); +} +void HPOJobObjective::InternalSwap(HPOJobObjective* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + metricname_.Swap(&other->metricname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(type_, other->type_); +} + +::google::protobuf::Metadata HPOJobObjective::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SagemakerHPOJob::InitAsDefaultInstance() { + ::flyte::plugins::_SagemakerHPOJob_default_instance_._instance.get_mutable()->objective_ = const_cast< ::flyte::plugins::HPOJobObjective*>( + ::flyte::plugins::HPOJobObjective::internal_default_instance()); + ::flyte::plugins::_SagemakerHPOJob_default_instance_._instance.get_mutable()->parameterranges_ = const_cast< ::flyte::plugins::ParameterRanges*>( + ::flyte::plugins::ParameterRanges::internal_default_instance()); + ::flyte::plugins::_SagemakerHPOJob_default_instance_._instance.get_mutable()->trainingjob_ = const_cast< ::flyte::plugins::SagemakerTrainingJob*>( + ::flyte::plugins::SagemakerTrainingJob::internal_default_instance()); +} +class SagemakerHPOJob::HasBitSetters { + public: + static const ::flyte::plugins::HPOJobObjective& objective(const SagemakerHPOJob* msg); + static const ::flyte::plugins::ParameterRanges& parameterranges(const SagemakerHPOJob* msg); + static const ::flyte::plugins::SagemakerTrainingJob& trainingjob(const SagemakerHPOJob* msg); +}; + +const ::flyte::plugins::HPOJobObjective& +SagemakerHPOJob::HasBitSetters::objective(const SagemakerHPOJob* msg) { + return *msg->objective_; +} +const ::flyte::plugins::ParameterRanges& +SagemakerHPOJob::HasBitSetters::parameterranges(const SagemakerHPOJob* msg) { + return *msg->parameterranges_; +} +const ::flyte::plugins::SagemakerTrainingJob& +SagemakerHPOJob::HasBitSetters::trainingjob(const SagemakerHPOJob* msg) { + return *msg->trainingjob_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SagemakerHPOJob::kStrategyFieldNumber; +const int SagemakerHPOJob::kObjectiveFieldNumber; +const int SagemakerHPOJob::kMaxNumberOfTrainingJobsFieldNumber; +const int SagemakerHPOJob::kMaxParallelTrainingJobsFieldNumber; +const int SagemakerHPOJob::kParameterRangesFieldNumber; +const int SagemakerHPOJob::kTrainingJobFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SagemakerHPOJob::SagemakerHPOJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyte.plugins.SagemakerHPOJob) +} +SagemakerHPOJob::SagemakerHPOJob(const SagemakerHPOJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + strategy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.strategy().size() > 0) { + strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_); + } + if (from.has_objective()) { + objective_ = new ::flyte::plugins::HPOJobObjective(*from.objective_); + } else { + objective_ = nullptr; + } + if (from.has_parameterranges()) { + parameterranges_ = new ::flyte::plugins::ParameterRanges(*from.parameterranges_); + } else { + parameterranges_ = nullptr; + } + if (from.has_trainingjob()) { + trainingjob_ = new ::flyte::plugins::SagemakerTrainingJob(*from.trainingjob_); + } else { + trainingjob_ = nullptr; + } + ::memcpy(&maxnumberoftrainingjobs_, &from.maxnumberoftrainingjobs_, + static_cast(reinterpret_cast(&maxparalleltrainingjobs_) - + reinterpret_cast(&maxnumberoftrainingjobs_)) + sizeof(maxparalleltrainingjobs_)); + // @@protoc_insertion_point(copy_constructor:flyte.plugins.SagemakerHPOJob) +} + +void SagemakerHPOJob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2eproto.base); + strategy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&objective_, 0, static_cast( + reinterpret_cast(&maxparalleltrainingjobs_) - + reinterpret_cast(&objective_)) + sizeof(maxparalleltrainingjobs_)); +} + +SagemakerHPOJob::~SagemakerHPOJob() { + // @@protoc_insertion_point(destructor:flyte.plugins.SagemakerHPOJob) + SharedDtor(); +} + +void SagemakerHPOJob::SharedDtor() { + strategy_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete objective_; + if (this != internal_default_instance()) delete parameterranges_; + if (this != internal_default_instance()) delete trainingjob_; +} + +void SagemakerHPOJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SagemakerHPOJob& SagemakerHPOJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2eproto.base); + return *internal_default_instance(); +} + + +void SagemakerHPOJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyte.plugins.SagemakerHPOJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + strategy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && objective_ != nullptr) { + delete objective_; + } + objective_ = nullptr; + if (GetArenaNoVirtual() == nullptr && parameterranges_ != nullptr) { + delete parameterranges_; + } + parameterranges_ = nullptr; + if (GetArenaNoVirtual() == nullptr && trainingjob_ != nullptr) { + delete trainingjob_; + } + trainingjob_ = nullptr; + ::memset(&maxnumberoftrainingjobs_, 0, static_cast( + reinterpret_cast(&maxparalleltrainingjobs_) - + reinterpret_cast(&maxnumberoftrainingjobs_)) + sizeof(maxparalleltrainingjobs_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SagemakerHPOJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string Strategy = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyte.plugins.SagemakerHPOJob.Strategy"); + object = msg->mutable_strategy(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyte.plugins.HPOJobObjective Objective = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyte::plugins::HPOJobObjective::_InternalParse; + object = msg->mutable_objective(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // int64 MaxNumberOfTrainingJobs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_maxnumberoftrainingjobs(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 MaxParallelTrainingJobs = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_maxparalleltrainingjobs(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyte.plugins.ParameterRanges ParameterRanges = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyte::plugins::ParameterRanges::_InternalParse; + object = msg->mutable_parameterranges(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyte::plugins::SagemakerTrainingJob::_InternalParse; + object = msg->mutable_trainingjob(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SagemakerHPOJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyte.plugins.SagemakerHPOJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string Strategy = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_strategy())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->strategy().data(), static_cast(this->strategy().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyte.plugins.SagemakerHPOJob.Strategy")); + } else { + goto handle_unusual; + } + break; + } + + // .flyte.plugins.HPOJobObjective Objective = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_objective())); + } else { + goto handle_unusual; + } + break; + } + + // int64 MaxNumberOfTrainingJobs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &maxnumberoftrainingjobs_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 MaxParallelTrainingJobs = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &maxparalleltrainingjobs_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyte.plugins.ParameterRanges ParameterRanges = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_parameterranges())); + } else { + goto handle_unusual; + } + break; + } + + // .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_trainingjob())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyte.plugins.SagemakerHPOJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyte.plugins.SagemakerHPOJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SagemakerHPOJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyte.plugins.SagemakerHPOJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Strategy = 1; + if (this->strategy().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->strategy().data(), static_cast(this->strategy().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.SagemakerHPOJob.Strategy"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->strategy(), output); + } + + // .flyte.plugins.HPOJobObjective Objective = 2; + if (this->has_objective()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::objective(this), output); + } + + // int64 MaxNumberOfTrainingJobs = 3; + if (this->maxnumberoftrainingjobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->maxnumberoftrainingjobs(), output); + } + + // int64 MaxParallelTrainingJobs = 4; + if (this->maxparalleltrainingjobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->maxparalleltrainingjobs(), output); + } + + // .flyte.plugins.ParameterRanges ParameterRanges = 5; + if (this->has_parameterranges()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::parameterranges(this), output); + } + + // .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + if (this->has_trainingjob()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::trainingjob(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyte.plugins.SagemakerHPOJob) +} + +::google::protobuf::uint8* SagemakerHPOJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.SagemakerHPOJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Strategy = 1; + if (this->strategy().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->strategy().data(), static_cast(this->strategy().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyte.plugins.SagemakerHPOJob.Strategy"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->strategy(), target); + } + + // .flyte.plugins.HPOJobObjective Objective = 2; + if (this->has_objective()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::objective(this), target); + } + + // int64 MaxNumberOfTrainingJobs = 3; + if (this->maxnumberoftrainingjobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->maxnumberoftrainingjobs(), target); + } + + // int64 MaxParallelTrainingJobs = 4; + if (this->maxparalleltrainingjobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->maxparalleltrainingjobs(), target); + } + + // .flyte.plugins.ParameterRanges ParameterRanges = 5; + if (this->has_parameterranges()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::parameterranges(this), target); + } + + // .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + if (this->has_trainingjob()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::trainingjob(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.SagemakerHPOJob) + return target; +} + +size_t SagemakerHPOJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.SagemakerHPOJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string Strategy = 1; + if (this->strategy().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->strategy()); + } + + // .flyte.plugins.HPOJobObjective Objective = 2; + if (this->has_objective()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *objective_); + } + + // .flyte.plugins.ParameterRanges ParameterRanges = 5; + if (this->has_parameterranges()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *parameterranges_); + } + + // .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + if (this->has_trainingjob()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *trainingjob_); + } + + // int64 MaxNumberOfTrainingJobs = 3; + if (this->maxnumberoftrainingjobs() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->maxnumberoftrainingjobs()); + } + + // int64 MaxParallelTrainingJobs = 4; + if (this->maxparalleltrainingjobs() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->maxparalleltrainingjobs()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SagemakerHPOJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.SagemakerHPOJob) + GOOGLE_DCHECK_NE(&from, this); + const SagemakerHPOJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.SagemakerHPOJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.SagemakerHPOJob) + MergeFrom(*source); + } +} + +void SagemakerHPOJob::MergeFrom(const SagemakerHPOJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.SagemakerHPOJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.strategy().size() > 0) { + + strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_); + } + if (from.has_objective()) { + mutable_objective()->::flyte::plugins::HPOJobObjective::MergeFrom(from.objective()); + } + if (from.has_parameterranges()) { + mutable_parameterranges()->::flyte::plugins::ParameterRanges::MergeFrom(from.parameterranges()); + } + if (from.has_trainingjob()) { + mutable_trainingjob()->::flyte::plugins::SagemakerTrainingJob::MergeFrom(from.trainingjob()); + } + if (from.maxnumberoftrainingjobs() != 0) { + set_maxnumberoftrainingjobs(from.maxnumberoftrainingjobs()); + } + if (from.maxparalleltrainingjobs() != 0) { + set_maxparalleltrainingjobs(from.maxparalleltrainingjobs()); + } +} + +void SagemakerHPOJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.SagemakerHPOJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SagemakerHPOJob::CopyFrom(const SagemakerHPOJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.SagemakerHPOJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SagemakerHPOJob::IsInitialized() const { + return true; +} + +void SagemakerHPOJob::Swap(SagemakerHPOJob* other) { + if (other == this) return; + InternalSwap(other); +} +void SagemakerHPOJob::InternalSwap(SagemakerHPOJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + strategy_.Swap(&other->strategy_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(objective_, other->objective_); + swap(parameterranges_, other->parameterranges_); + swap(trainingjob_, other->trainingjob_); + swap(maxnumberoftrainingjobs_, other->maxnumberoftrainingjobs_); + swap(maxparalleltrainingjobs_, other->maxparalleltrainingjobs_); +} + +::google::protobuf::Metadata SagemakerHPOJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyte +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyte::plugins::ContinuousParameterRange* Arena::CreateMaybeMessage< ::flyte::plugins::ContinuousParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::ContinuousParameterRange >(arena); +} +template<> PROTOBUF_NOINLINE ::flyte::plugins::IntegerParameterRange* Arena::CreateMaybeMessage< ::flyte::plugins::IntegerParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::IntegerParameterRange >(arena); +} +template<> PROTOBUF_NOINLINE ::flyte::plugins::CategoricalParameterRange* Arena::CreateMaybeMessage< ::flyte::plugins::CategoricalParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::CategoricalParameterRange >(arena); +} +template<> PROTOBUF_NOINLINE ::flyte::plugins::ParameterRanges* Arena::CreateMaybeMessage< ::flyte::plugins::ParameterRanges >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::ParameterRanges >(arena); +} +template<> PROTOBUF_NOINLINE ::flyte::plugins::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage< ::flyte::plugins::AlgorithmSpecification_MetricDefinition >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::AlgorithmSpecification_MetricDefinition >(arena); +} +template<> PROTOBUF_NOINLINE ::flyte::plugins::AlgorithmSpecification* Arena::CreateMaybeMessage< ::flyte::plugins::AlgorithmSpecification >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::AlgorithmSpecification >(arena); +} +template<> PROTOBUF_NOINLINE ::flyte::plugins::ResourceConfig* Arena::CreateMaybeMessage< ::flyte::plugins::ResourceConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::ResourceConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::flyte::plugins::StoppingCondition* Arena::CreateMaybeMessage< ::flyte::plugins::StoppingCondition >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::StoppingCondition >(arena); +} +template<> PROTOBUF_NOINLINE ::flyte::plugins::VpcConfig* Arena::CreateMaybeMessage< ::flyte::plugins::VpcConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::VpcConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::flyte::plugins::SagemakerTrainingJob* Arena::CreateMaybeMessage< ::flyte::plugins::SagemakerTrainingJob >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::SagemakerTrainingJob >(arena); +} +template<> PROTOBUF_NOINLINE ::flyte::plugins::HPOJobObjective* Arena::CreateMaybeMessage< ::flyte::plugins::HPOJobObjective >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::HPOJobObjective >(arena); +} +template<> PROTOBUF_NOINLINE ::flyte::plugins::SagemakerHPOJob* Arena::CreateMaybeMessage< ::flyte::plugins::SagemakerHPOJob >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::SagemakerHPOJob >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker.pb.h new file mode 100644 index 000000000..983154505 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker.pb.h @@ -0,0 +1,3644 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[12] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2eproto(); +namespace flyte { +namespace plugins { +class AlgorithmSpecification; +class AlgorithmSpecificationDefaultTypeInternal; +extern AlgorithmSpecificationDefaultTypeInternal _AlgorithmSpecification_default_instance_; +class AlgorithmSpecification_MetricDefinition; +class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal; +extern AlgorithmSpecification_MetricDefinitionDefaultTypeInternal _AlgorithmSpecification_MetricDefinition_default_instance_; +class CategoricalParameterRange; +class CategoricalParameterRangeDefaultTypeInternal; +extern CategoricalParameterRangeDefaultTypeInternal _CategoricalParameterRange_default_instance_; +class ContinuousParameterRange; +class ContinuousParameterRangeDefaultTypeInternal; +extern ContinuousParameterRangeDefaultTypeInternal _ContinuousParameterRange_default_instance_; +class HPOJobObjective; +class HPOJobObjectiveDefaultTypeInternal; +extern HPOJobObjectiveDefaultTypeInternal _HPOJobObjective_default_instance_; +class IntegerParameterRange; +class IntegerParameterRangeDefaultTypeInternal; +extern IntegerParameterRangeDefaultTypeInternal _IntegerParameterRange_default_instance_; +class ParameterRanges; +class ParameterRangesDefaultTypeInternal; +extern ParameterRangesDefaultTypeInternal _ParameterRanges_default_instance_; +class ResourceConfig; +class ResourceConfigDefaultTypeInternal; +extern ResourceConfigDefaultTypeInternal _ResourceConfig_default_instance_; +class SagemakerHPOJob; +class SagemakerHPOJobDefaultTypeInternal; +extern SagemakerHPOJobDefaultTypeInternal _SagemakerHPOJob_default_instance_; +class SagemakerTrainingJob; +class SagemakerTrainingJobDefaultTypeInternal; +extern SagemakerTrainingJobDefaultTypeInternal _SagemakerTrainingJob_default_instance_; +class StoppingCondition; +class StoppingConditionDefaultTypeInternal; +extern StoppingConditionDefaultTypeInternal _StoppingCondition_default_instance_; +class VpcConfig; +class VpcConfigDefaultTypeInternal; +extern VpcConfigDefaultTypeInternal _VpcConfig_default_instance_; +} // namespace plugins +} // namespace flyte +namespace google { +namespace protobuf { +template<> ::flyte::plugins::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyte::plugins::AlgorithmSpecification>(Arena*); +template<> ::flyte::plugins::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage<::flyte::plugins::AlgorithmSpecification_MetricDefinition>(Arena*); +template<> ::flyte::plugins::CategoricalParameterRange* Arena::CreateMaybeMessage<::flyte::plugins::CategoricalParameterRange>(Arena*); +template<> ::flyte::plugins::ContinuousParameterRange* Arena::CreateMaybeMessage<::flyte::plugins::ContinuousParameterRange>(Arena*); +template<> ::flyte::plugins::HPOJobObjective* Arena::CreateMaybeMessage<::flyte::plugins::HPOJobObjective>(Arena*); +template<> ::flyte::plugins::IntegerParameterRange* Arena::CreateMaybeMessage<::flyte::plugins::IntegerParameterRange>(Arena*); +template<> ::flyte::plugins::ParameterRanges* Arena::CreateMaybeMessage<::flyte::plugins::ParameterRanges>(Arena*); +template<> ::flyte::plugins::ResourceConfig* Arena::CreateMaybeMessage<::flyte::plugins::ResourceConfig>(Arena*); +template<> ::flyte::plugins::SagemakerHPOJob* Arena::CreateMaybeMessage<::flyte::plugins::SagemakerHPOJob>(Arena*); +template<> ::flyte::plugins::SagemakerTrainingJob* Arena::CreateMaybeMessage<::flyte::plugins::SagemakerTrainingJob>(Arena*); +template<> ::flyte::plugins::StoppingCondition* Arena::CreateMaybeMessage<::flyte::plugins::StoppingCondition>(Arena*); +template<> ::flyte::plugins::VpcConfig* Arena::CreateMaybeMessage<::flyte::plugins::VpcConfig>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyte { +namespace plugins { + +enum HyperparameterScalingType { + AUTO = 0, + LINEAR = 1, + LOGARITHMIC = 2, + REVERSELOGARITHMIC = 3, + HyperparameterScalingType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HyperparameterScalingType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HyperparameterScalingType_IsValid(int value); +const HyperparameterScalingType HyperparameterScalingType_MIN = AUTO; +const HyperparameterScalingType HyperparameterScalingType_MAX = REVERSELOGARITHMIC; +const int HyperparameterScalingType_ARRAYSIZE = HyperparameterScalingType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor(); +inline const ::std::string& HyperparameterScalingType_Name(HyperparameterScalingType value) { + return ::google::protobuf::internal::NameOfEnum( + HyperparameterScalingType_descriptor(), value); +} +inline bool HyperparameterScalingType_Parse( + const ::std::string& name, HyperparameterScalingType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HyperparameterScalingType_descriptor(), name, value); +} +enum HPOJobObjectiveType { + MINIMIZE = 0, + MAXIMIZE = 1, + HPOJobObjectiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HPOJobObjectiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HPOJobObjectiveType_IsValid(int value); +const HPOJobObjectiveType HPOJobObjectiveType_MIN = MINIMIZE; +const HPOJobObjectiveType HPOJobObjectiveType_MAX = MAXIMIZE; +const int HPOJobObjectiveType_ARRAYSIZE = HPOJobObjectiveType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HPOJobObjectiveType_descriptor(); +inline const ::std::string& HPOJobObjectiveType_Name(HPOJobObjectiveType value) { + return ::google::protobuf::internal::NameOfEnum( + HPOJobObjectiveType_descriptor(), value); +} +inline bool HPOJobObjectiveType_Parse( + const ::std::string& name, HPOJobObjectiveType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HPOJobObjectiveType_descriptor(), name, value); +} +// =================================================================== + +class ContinuousParameterRange final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.ContinuousParameterRange) */ { + public: + ContinuousParameterRange(); + virtual ~ContinuousParameterRange(); + + ContinuousParameterRange(const ContinuousParameterRange& from); + + inline ContinuousParameterRange& operator=(const ContinuousParameterRange& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ContinuousParameterRange(ContinuousParameterRange&& from) noexcept + : ContinuousParameterRange() { + *this = ::std::move(from); + } + + inline ContinuousParameterRange& operator=(ContinuousParameterRange&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ContinuousParameterRange& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ContinuousParameterRange* internal_default_instance() { + return reinterpret_cast( + &_ContinuousParameterRange_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(ContinuousParameterRange* other); + friend void swap(ContinuousParameterRange& a, ContinuousParameterRange& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ContinuousParameterRange* New() const final { + return CreateMaybeMessage(nullptr); + } + + ContinuousParameterRange* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ContinuousParameterRange& from); + void MergeFrom(const ContinuousParameterRange& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ContinuousParameterRange* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string Name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // double MaxValue = 2; + void clear_maxvalue(); + static const int kMaxValueFieldNumber = 2; + double maxvalue() const; + void set_maxvalue(double value); + + // double MinValue = 3; + void clear_minvalue(); + static const int kMinValueFieldNumber = 3; + double minvalue() const; + void set_minvalue(double value); + + // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + void clear_scalingtype(); + static const int kScalingTypeFieldNumber = 4; + ::flyte::plugins::HyperparameterScalingType scalingtype() const; + void set_scalingtype(::flyte::plugins::HyperparameterScalingType value); + + // @@protoc_insertion_point(class_scope:flyte.plugins.ContinuousParameterRange) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + double maxvalue_; + double minvalue_; + int scalingtype_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; +}; +// ------------------------------------------------------------------- + +class IntegerParameterRange final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.IntegerParameterRange) */ { + public: + IntegerParameterRange(); + virtual ~IntegerParameterRange(); + + IntegerParameterRange(const IntegerParameterRange& from); + + inline IntegerParameterRange& operator=(const IntegerParameterRange& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + IntegerParameterRange(IntegerParameterRange&& from) noexcept + : IntegerParameterRange() { + *this = ::std::move(from); + } + + inline IntegerParameterRange& operator=(IntegerParameterRange&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const IntegerParameterRange& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IntegerParameterRange* internal_default_instance() { + return reinterpret_cast( + &_IntegerParameterRange_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(IntegerParameterRange* other); + friend void swap(IntegerParameterRange& a, IntegerParameterRange& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline IntegerParameterRange* New() const final { + return CreateMaybeMessage(nullptr); + } + + IntegerParameterRange* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const IntegerParameterRange& from); + void MergeFrom(const IntegerParameterRange& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IntegerParameterRange* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string Name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // float MaxValue = 2; + void clear_maxvalue(); + static const int kMaxValueFieldNumber = 2; + float maxvalue() const; + void set_maxvalue(float value); + + // float MinValue = 3; + void clear_minvalue(); + static const int kMinValueFieldNumber = 3; + float minvalue() const; + void set_minvalue(float value); + + // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + void clear_scalingtype(); + static const int kScalingTypeFieldNumber = 4; + ::flyte::plugins::HyperparameterScalingType scalingtype() const; + void set_scalingtype(::flyte::plugins::HyperparameterScalingType value); + + // @@protoc_insertion_point(class_scope:flyte.plugins.IntegerParameterRange) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + float maxvalue_; + float minvalue_; + int scalingtype_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; +}; +// ------------------------------------------------------------------- + +class CategoricalParameterRange final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.CategoricalParameterRange) */ { + public: + CategoricalParameterRange(); + virtual ~CategoricalParameterRange(); + + CategoricalParameterRange(const CategoricalParameterRange& from); + + inline CategoricalParameterRange& operator=(const CategoricalParameterRange& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CategoricalParameterRange(CategoricalParameterRange&& from) noexcept + : CategoricalParameterRange() { + *this = ::std::move(from); + } + + inline CategoricalParameterRange& operator=(CategoricalParameterRange&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CategoricalParameterRange& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CategoricalParameterRange* internal_default_instance() { + return reinterpret_cast( + &_CategoricalParameterRange_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(CategoricalParameterRange* other); + friend void swap(CategoricalParameterRange& a, CategoricalParameterRange& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CategoricalParameterRange* New() const final { + return CreateMaybeMessage(nullptr); + } + + CategoricalParameterRange* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CategoricalParameterRange& from); + void MergeFrom(const CategoricalParameterRange& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CategoricalParameterRange* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string Values = 2; + int values_size() const; + void clear_values(); + static const int kValuesFieldNumber = 2; + const ::std::string& values(int index) const; + ::std::string* mutable_values(int index); + void set_values(int index, const ::std::string& value); + #if LANG_CXX11 + void set_values(int index, ::std::string&& value); + #endif + void set_values(int index, const char* value); + void set_values(int index, const char* value, size_t size); + ::std::string* add_values(); + void add_values(const ::std::string& value); + #if LANG_CXX11 + void add_values(::std::string&& value); + #endif + void add_values(const char* value); + void add_values(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& values() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_values(); + + // string Name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // @@protoc_insertion_point(class_scope:flyte.plugins.CategoricalParameterRange) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> values_; + ::google::protobuf::internal::ArenaStringPtr name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; +}; +// ------------------------------------------------------------------- + +class ParameterRanges final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.ParameterRanges) */ { + public: + ParameterRanges(); + virtual ~ParameterRanges(); + + ParameterRanges(const ParameterRanges& from); + + inline ParameterRanges& operator=(const ParameterRanges& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ParameterRanges(ParameterRanges&& from) noexcept + : ParameterRanges() { + *this = ::std::move(from); + } + + inline ParameterRanges& operator=(ParameterRanges&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ParameterRanges& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParameterRanges* internal_default_instance() { + return reinterpret_cast( + &_ParameterRanges_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ParameterRanges* other); + friend void swap(ParameterRanges& a, ParameterRanges& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ParameterRanges* New() const final { + return CreateMaybeMessage(nullptr); + } + + ParameterRanges* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ParameterRanges& from); + void MergeFrom(const ParameterRanges& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParameterRanges* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + int continuousparameterranges_size() const; + void clear_continuousparameterranges(); + static const int kContinuousParameterRangesFieldNumber = 1; + ::flyte::plugins::ContinuousParameterRange* mutable_continuousparameterranges(int index); + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::ContinuousParameterRange >* + mutable_continuousparameterranges(); + const ::flyte::plugins::ContinuousParameterRange& continuousparameterranges(int index) const; + ::flyte::plugins::ContinuousParameterRange* add_continuousparameterranges(); + const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::ContinuousParameterRange >& + continuousparameterranges() const; + + // repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + int integerparameterranges_size() const; + void clear_integerparameterranges(); + static const int kIntegerParameterRangesFieldNumber = 2; + ::flyte::plugins::IntegerParameterRange* mutable_integerparameterranges(int index); + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::IntegerParameterRange >* + mutable_integerparameterranges(); + const ::flyte::plugins::IntegerParameterRange& integerparameterranges(int index) const; + ::flyte::plugins::IntegerParameterRange* add_integerparameterranges(); + const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::IntegerParameterRange >& + integerparameterranges() const; + + // repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + int categoricalparameterranges_size() const; + void clear_categoricalparameterranges(); + static const int kCategoricalParameterRangesFieldNumber = 3; + ::flyte::plugins::CategoricalParameterRange* mutable_categoricalparameterranges(int index); + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::CategoricalParameterRange >* + mutable_categoricalparameterranges(); + const ::flyte::plugins::CategoricalParameterRange& categoricalparameterranges(int index) const; + ::flyte::plugins::CategoricalParameterRange* add_categoricalparameterranges(); + const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::CategoricalParameterRange >& + categoricalparameterranges() const; + + // @@protoc_insertion_point(class_scope:flyte.plugins.ParameterRanges) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::ContinuousParameterRange > continuousparameterranges_; + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::IntegerParameterRange > integerparameterranges_; + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::CategoricalParameterRange > categoricalparameterranges_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; +}; +// ------------------------------------------------------------------- + +class AlgorithmSpecification_MetricDefinition final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.AlgorithmSpecification.MetricDefinition) */ { + public: + AlgorithmSpecification_MetricDefinition(); + virtual ~AlgorithmSpecification_MetricDefinition(); + + AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from); + + inline AlgorithmSpecification_MetricDefinition& operator=(const AlgorithmSpecification_MetricDefinition& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AlgorithmSpecification_MetricDefinition(AlgorithmSpecification_MetricDefinition&& from) noexcept + : AlgorithmSpecification_MetricDefinition() { + *this = ::std::move(from); + } + + inline AlgorithmSpecification_MetricDefinition& operator=(AlgorithmSpecification_MetricDefinition&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AlgorithmSpecification_MetricDefinition& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AlgorithmSpecification_MetricDefinition* internal_default_instance() { + return reinterpret_cast( + &_AlgorithmSpecification_MetricDefinition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(AlgorithmSpecification_MetricDefinition* other); + friend void swap(AlgorithmSpecification_MetricDefinition& a, AlgorithmSpecification_MetricDefinition& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AlgorithmSpecification_MetricDefinition* New() const final { + return CreateMaybeMessage(nullptr); + } + + AlgorithmSpecification_MetricDefinition* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AlgorithmSpecification_MetricDefinition& from); + void MergeFrom(const AlgorithmSpecification_MetricDefinition& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AlgorithmSpecification_MetricDefinition* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string Name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string Regex = 2; + void clear_regex(); + static const int kRegexFieldNumber = 2; + const ::std::string& regex() const; + void set_regex(const ::std::string& value); + #if LANG_CXX11 + void set_regex(::std::string&& value); + #endif + void set_regex(const char* value); + void set_regex(const char* value, size_t size); + ::std::string* mutable_regex(); + ::std::string* release_regex(); + void set_allocated_regex(::std::string* regex); + + // @@protoc_insertion_point(class_scope:flyte.plugins.AlgorithmSpecification.MetricDefinition) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr regex_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; +}; +// ------------------------------------------------------------------- + +class AlgorithmSpecification final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.AlgorithmSpecification) */ { + public: + AlgorithmSpecification(); + virtual ~AlgorithmSpecification(); + + AlgorithmSpecification(const AlgorithmSpecification& from); + + inline AlgorithmSpecification& operator=(const AlgorithmSpecification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AlgorithmSpecification(AlgorithmSpecification&& from) noexcept + : AlgorithmSpecification() { + *this = ::std::move(from); + } + + inline AlgorithmSpecification& operator=(AlgorithmSpecification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AlgorithmSpecification& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AlgorithmSpecification* internal_default_instance() { + return reinterpret_cast( + &_AlgorithmSpecification_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(AlgorithmSpecification* other); + friend void swap(AlgorithmSpecification& a, AlgorithmSpecification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AlgorithmSpecification* New() const final { + return CreateMaybeMessage(nullptr); + } + + AlgorithmSpecification* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AlgorithmSpecification& from); + void MergeFrom(const AlgorithmSpecification& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AlgorithmSpecification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef AlgorithmSpecification_MetricDefinition MetricDefinition; + + // accessors ------------------------------------------------------- + + // repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + int metricdefinitions_size() const; + void clear_metricdefinitions(); + static const int kMetricDefinitionsFieldNumber = 4; + ::flyte::plugins::AlgorithmSpecification_MetricDefinition* mutable_metricdefinitions(int index); + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::AlgorithmSpecification_MetricDefinition >* + mutable_metricdefinitions(); + const ::flyte::plugins::AlgorithmSpecification_MetricDefinition& metricdefinitions(int index) const; + ::flyte::plugins::AlgorithmSpecification_MetricDefinition* add_metricdefinitions(); + const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::AlgorithmSpecification_MetricDefinition >& + metricdefinitions() const; + + // string TrainingImage = 1; + void clear_trainingimage(); + static const int kTrainingImageFieldNumber = 1; + const ::std::string& trainingimage() const; + void set_trainingimage(const ::std::string& value); + #if LANG_CXX11 + void set_trainingimage(::std::string&& value); + #endif + void set_trainingimage(const char* value); + void set_trainingimage(const char* value, size_t size); + ::std::string* mutable_trainingimage(); + ::std::string* release_trainingimage(); + void set_allocated_trainingimage(::std::string* trainingimage); + + // string TrainingInputMode = 2; + void clear_traininginputmode(); + static const int kTrainingInputModeFieldNumber = 2; + const ::std::string& traininginputmode() const; + void set_traininginputmode(const ::std::string& value); + #if LANG_CXX11 + void set_traininginputmode(::std::string&& value); + #endif + void set_traininginputmode(const char* value); + void set_traininginputmode(const char* value, size_t size); + ::std::string* mutable_traininginputmode(); + ::std::string* release_traininginputmode(); + void set_allocated_traininginputmode(::std::string* traininginputmode); + + // string AlgorithmName = 3; + void clear_algorithmname(); + static const int kAlgorithmNameFieldNumber = 3; + const ::std::string& algorithmname() const; + void set_algorithmname(const ::std::string& value); + #if LANG_CXX11 + void set_algorithmname(::std::string&& value); + #endif + void set_algorithmname(const char* value); + void set_algorithmname(const char* value, size_t size); + ::std::string* mutable_algorithmname(); + ::std::string* release_algorithmname(); + void set_allocated_algorithmname(::std::string* algorithmname); + + // @@protoc_insertion_point(class_scope:flyte.plugins.AlgorithmSpecification) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::AlgorithmSpecification_MetricDefinition > metricdefinitions_; + ::google::protobuf::internal::ArenaStringPtr trainingimage_; + ::google::protobuf::internal::ArenaStringPtr traininginputmode_; + ::google::protobuf::internal::ArenaStringPtr algorithmname_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourceConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.ResourceConfig) */ { + public: + ResourceConfig(); + virtual ~ResourceConfig(); + + ResourceConfig(const ResourceConfig& from); + + inline ResourceConfig& operator=(const ResourceConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ResourceConfig(ResourceConfig&& from) noexcept + : ResourceConfig() { + *this = ::std::move(from); + } + + inline ResourceConfig& operator=(ResourceConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ResourceConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ResourceConfig* internal_default_instance() { + return reinterpret_cast( + &_ResourceConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(ResourceConfig* other); + friend void swap(ResourceConfig& a, ResourceConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ResourceConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + ResourceConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ResourceConfig& from); + void MergeFrom(const ResourceConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string InstanceType = 1; + void clear_instancetype(); + static const int kInstanceTypeFieldNumber = 1; + const ::std::string& instancetype() const; + void set_instancetype(const ::std::string& value); + #if LANG_CXX11 + void set_instancetype(::std::string&& value); + #endif + void set_instancetype(const char* value); + void set_instancetype(const char* value, size_t size); + ::std::string* mutable_instancetype(); + ::std::string* release_instancetype(); + void set_allocated_instancetype(::std::string* instancetype); + + // string VolumeKmsKeyId = 4; + void clear_volumekmskeyid(); + static const int kVolumeKmsKeyIdFieldNumber = 4; + const ::std::string& volumekmskeyid() const; + void set_volumekmskeyid(const ::std::string& value); + #if LANG_CXX11 + void set_volumekmskeyid(::std::string&& value); + #endif + void set_volumekmskeyid(const char* value); + void set_volumekmskeyid(const char* value, size_t size); + ::std::string* mutable_volumekmskeyid(); + ::std::string* release_volumekmskeyid(); + void set_allocated_volumekmskeyid(::std::string* volumekmskeyid); + + // int64 InstanceCount = 2; + void clear_instancecount(); + static const int kInstanceCountFieldNumber = 2; + ::google::protobuf::int64 instancecount() const; + void set_instancecount(::google::protobuf::int64 value); + + // int64 VolumeSizeInGB = 3; + void clear_volumesizeingb(); + static const int kVolumeSizeInGBFieldNumber = 3; + ::google::protobuf::int64 volumesizeingb() const; + void set_volumesizeingb(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyte.plugins.ResourceConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr instancetype_; + ::google::protobuf::internal::ArenaStringPtr volumekmskeyid_; + ::google::protobuf::int64 instancecount_; + ::google::protobuf::int64 volumesizeingb_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; +}; +// ------------------------------------------------------------------- + +class StoppingCondition final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.StoppingCondition) */ { + public: + StoppingCondition(); + virtual ~StoppingCondition(); + + StoppingCondition(const StoppingCondition& from); + + inline StoppingCondition& operator=(const StoppingCondition& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StoppingCondition(StoppingCondition&& from) noexcept + : StoppingCondition() { + *this = ::std::move(from); + } + + inline StoppingCondition& operator=(StoppingCondition&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const StoppingCondition& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StoppingCondition* internal_default_instance() { + return reinterpret_cast( + &_StoppingCondition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(StoppingCondition* other); + friend void swap(StoppingCondition& a, StoppingCondition& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StoppingCondition* New() const final { + return CreateMaybeMessage(nullptr); + } + + StoppingCondition* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StoppingCondition& from); + void MergeFrom(const StoppingCondition& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StoppingCondition* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // int64 MaxRuntimeInSeconds = 1; + void clear_maxruntimeinseconds(); + static const int kMaxRuntimeInSecondsFieldNumber = 1; + ::google::protobuf::int64 maxruntimeinseconds() const; + void set_maxruntimeinseconds(::google::protobuf::int64 value); + + // int64 MaxWaitTimeInSeconds = 2; + void clear_maxwaittimeinseconds(); + static const int kMaxWaitTimeInSecondsFieldNumber = 2; + ::google::protobuf::int64 maxwaittimeinseconds() const; + void set_maxwaittimeinseconds(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyte.plugins.StoppingCondition) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int64 maxruntimeinseconds_; + ::google::protobuf::int64 maxwaittimeinseconds_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; +}; +// ------------------------------------------------------------------- + +class VpcConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.VpcConfig) */ { + public: + VpcConfig(); + virtual ~VpcConfig(); + + VpcConfig(const VpcConfig& from); + + inline VpcConfig& operator=(const VpcConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + VpcConfig(VpcConfig&& from) noexcept + : VpcConfig() { + *this = ::std::move(from); + } + + inline VpcConfig& operator=(VpcConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const VpcConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const VpcConfig* internal_default_instance() { + return reinterpret_cast( + &_VpcConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(VpcConfig* other); + friend void swap(VpcConfig& a, VpcConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline VpcConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + VpcConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const VpcConfig& from); + void MergeFrom(const VpcConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(VpcConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string SecurityGroupIds = 1; + int securitygroupids_size() const; + void clear_securitygroupids(); + static const int kSecurityGroupIdsFieldNumber = 1; + const ::std::string& securitygroupids(int index) const; + ::std::string* mutable_securitygroupids(int index); + void set_securitygroupids(int index, const ::std::string& value); + #if LANG_CXX11 + void set_securitygroupids(int index, ::std::string&& value); + #endif + void set_securitygroupids(int index, const char* value); + void set_securitygroupids(int index, const char* value, size_t size); + ::std::string* add_securitygroupids(); + void add_securitygroupids(const ::std::string& value); + #if LANG_CXX11 + void add_securitygroupids(::std::string&& value); + #endif + void add_securitygroupids(const char* value); + void add_securitygroupids(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& securitygroupids() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_securitygroupids(); + + // repeated string Subnets = 2; + int subnets_size() const; + void clear_subnets(); + static const int kSubnetsFieldNumber = 2; + const ::std::string& subnets(int index) const; + ::std::string* mutable_subnets(int index); + void set_subnets(int index, const ::std::string& value); + #if LANG_CXX11 + void set_subnets(int index, ::std::string&& value); + #endif + void set_subnets(int index, const char* value); + void set_subnets(int index, const char* value, size_t size); + ::std::string* add_subnets(); + void add_subnets(const ::std::string& value); + #if LANG_CXX11 + void add_subnets(::std::string&& value); + #endif + void add_subnets(const char* value); + void add_subnets(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& subnets() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_subnets(); + + // @@protoc_insertion_point(class_scope:flyte.plugins.VpcConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> securitygroupids_; + ::google::protobuf::RepeatedPtrField<::std::string> subnets_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; +}; +// ------------------------------------------------------------------- + +class SagemakerTrainingJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.SagemakerTrainingJob) */ { + public: + SagemakerTrainingJob(); + virtual ~SagemakerTrainingJob(); + + SagemakerTrainingJob(const SagemakerTrainingJob& from); + + inline SagemakerTrainingJob& operator=(const SagemakerTrainingJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SagemakerTrainingJob(SagemakerTrainingJob&& from) noexcept + : SagemakerTrainingJob() { + *this = ::std::move(from); + } + + inline SagemakerTrainingJob& operator=(SagemakerTrainingJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SagemakerTrainingJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SagemakerTrainingJob* internal_default_instance() { + return reinterpret_cast( + &_SagemakerTrainingJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(SagemakerTrainingJob* other); + friend void swap(SagemakerTrainingJob& a, SagemakerTrainingJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SagemakerTrainingJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + SagemakerTrainingJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SagemakerTrainingJob& from); + void MergeFrom(const SagemakerTrainingJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SagemakerTrainingJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string Region = 1; + void clear_region(); + static const int kRegionFieldNumber = 1; + const ::std::string& region() const; + void set_region(const ::std::string& value); + #if LANG_CXX11 + void set_region(::std::string&& value); + #endif + void set_region(const char* value); + void set_region(const char* value, size_t size); + ::std::string* mutable_region(); + ::std::string* release_region(); + void set_allocated_region(::std::string* region); + + // string RoleArn = 2; + void clear_rolearn(); + static const int kRoleArnFieldNumber = 2; + const ::std::string& rolearn() const; + void set_rolearn(const ::std::string& value); + #if LANG_CXX11 + void set_rolearn(::std::string&& value); + #endif + void set_rolearn(const char* value); + void set_rolearn(const char* value, size_t size); + ::std::string* mutable_rolearn(); + ::std::string* release_rolearn(); + void set_allocated_rolearn(::std::string* rolearn); + + // .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + bool has_algorithmspecification() const; + void clear_algorithmspecification(); + static const int kAlgorithmSpecificationFieldNumber = 3; + const ::flyte::plugins::AlgorithmSpecification& algorithmspecification() const; + ::flyte::plugins::AlgorithmSpecification* release_algorithmspecification(); + ::flyte::plugins::AlgorithmSpecification* mutable_algorithmspecification(); + void set_allocated_algorithmspecification(::flyte::plugins::AlgorithmSpecification* algorithmspecification); + + // .flyte.plugins.ResourceConfig ResourceConfig = 4; + bool has_resourceconfig() const; + void clear_resourceconfig(); + static const int kResourceConfigFieldNumber = 4; + const ::flyte::plugins::ResourceConfig& resourceconfig() const; + ::flyte::plugins::ResourceConfig* release_resourceconfig(); + ::flyte::plugins::ResourceConfig* mutable_resourceconfig(); + void set_allocated_resourceconfig(::flyte::plugins::ResourceConfig* resourceconfig); + + // .flyte.plugins.StoppingCondition StoppingCondition = 5; + bool has_stoppingcondition() const; + void clear_stoppingcondition(); + static const int kStoppingConditionFieldNumber = 5; + const ::flyte::plugins::StoppingCondition& stoppingcondition() const; + ::flyte::plugins::StoppingCondition* release_stoppingcondition(); + ::flyte::plugins::StoppingCondition* mutable_stoppingcondition(); + void set_allocated_stoppingcondition(::flyte::plugins::StoppingCondition* stoppingcondition); + + // .flyte.plugins.VpcConfig VpcConfig = 6; + bool has_vpcconfig() const; + void clear_vpcconfig(); + static const int kVpcConfigFieldNumber = 6; + const ::flyte::plugins::VpcConfig& vpcconfig() const; + ::flyte::plugins::VpcConfig* release_vpcconfig(); + ::flyte::plugins::VpcConfig* mutable_vpcconfig(); + void set_allocated_vpcconfig(::flyte::plugins::VpcConfig* vpcconfig); + + // bool EnableSpotTraining = 7; + void clear_enablespottraining(); + static const int kEnableSpotTrainingFieldNumber = 7; + bool enablespottraining() const; + void set_enablespottraining(bool value); + + // @@protoc_insertion_point(class_scope:flyte.plugins.SagemakerTrainingJob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr region_; + ::google::protobuf::internal::ArenaStringPtr rolearn_; + ::flyte::plugins::AlgorithmSpecification* algorithmspecification_; + ::flyte::plugins::ResourceConfig* resourceconfig_; + ::flyte::plugins::StoppingCondition* stoppingcondition_; + ::flyte::plugins::VpcConfig* vpcconfig_; + bool enablespottraining_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; +}; +// ------------------------------------------------------------------- + +class HPOJobObjective final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.HPOJobObjective) */ { + public: + HPOJobObjective(); + virtual ~HPOJobObjective(); + + HPOJobObjective(const HPOJobObjective& from); + + inline HPOJobObjective& operator=(const HPOJobObjective& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HPOJobObjective(HPOJobObjective&& from) noexcept + : HPOJobObjective() { + *this = ::std::move(from); + } + + inline HPOJobObjective& operator=(HPOJobObjective&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HPOJobObjective& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HPOJobObjective* internal_default_instance() { + return reinterpret_cast( + &_HPOJobObjective_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(HPOJobObjective* other); + friend void swap(HPOJobObjective& a, HPOJobObjective& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HPOJobObjective* New() const final { + return CreateMaybeMessage(nullptr); + } + + HPOJobObjective* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HPOJobObjective& from); + void MergeFrom(const HPOJobObjective& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HPOJobObjective* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string MetricName = 2; + void clear_metricname(); + static const int kMetricNameFieldNumber = 2; + const ::std::string& metricname() const; + void set_metricname(const ::std::string& value); + #if LANG_CXX11 + void set_metricname(::std::string&& value); + #endif + void set_metricname(const char* value); + void set_metricname(const char* value, size_t size); + ::std::string* mutable_metricname(); + ::std::string* release_metricname(); + void set_allocated_metricname(::std::string* metricname); + + // .flyte.plugins.HPOJobObjectiveType Type = 1; + void clear_type(); + static const int kTypeFieldNumber = 1; + ::flyte::plugins::HPOJobObjectiveType type() const; + void set_type(::flyte::plugins::HPOJobObjectiveType value); + + // @@protoc_insertion_point(class_scope:flyte.plugins.HPOJobObjective) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr metricname_; + int type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; +}; +// ------------------------------------------------------------------- + +class SagemakerHPOJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.SagemakerHPOJob) */ { + public: + SagemakerHPOJob(); + virtual ~SagemakerHPOJob(); + + SagemakerHPOJob(const SagemakerHPOJob& from); + + inline SagemakerHPOJob& operator=(const SagemakerHPOJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SagemakerHPOJob(SagemakerHPOJob&& from) noexcept + : SagemakerHPOJob() { + *this = ::std::move(from); + } + + inline SagemakerHPOJob& operator=(SagemakerHPOJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SagemakerHPOJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SagemakerHPOJob* internal_default_instance() { + return reinterpret_cast( + &_SagemakerHPOJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(SagemakerHPOJob* other); + friend void swap(SagemakerHPOJob& a, SagemakerHPOJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SagemakerHPOJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + SagemakerHPOJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SagemakerHPOJob& from); + void MergeFrom(const SagemakerHPOJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SagemakerHPOJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string Strategy = 1; + void clear_strategy(); + static const int kStrategyFieldNumber = 1; + const ::std::string& strategy() const; + void set_strategy(const ::std::string& value); + #if LANG_CXX11 + void set_strategy(::std::string&& value); + #endif + void set_strategy(const char* value); + void set_strategy(const char* value, size_t size); + ::std::string* mutable_strategy(); + ::std::string* release_strategy(); + void set_allocated_strategy(::std::string* strategy); + + // .flyte.plugins.HPOJobObjective Objective = 2; + bool has_objective() const; + void clear_objective(); + static const int kObjectiveFieldNumber = 2; + const ::flyte::plugins::HPOJobObjective& objective() const; + ::flyte::plugins::HPOJobObjective* release_objective(); + ::flyte::plugins::HPOJobObjective* mutable_objective(); + void set_allocated_objective(::flyte::plugins::HPOJobObjective* objective); + + // .flyte.plugins.ParameterRanges ParameterRanges = 5; + bool has_parameterranges() const; + void clear_parameterranges(); + static const int kParameterRangesFieldNumber = 5; + const ::flyte::plugins::ParameterRanges& parameterranges() const; + ::flyte::plugins::ParameterRanges* release_parameterranges(); + ::flyte::plugins::ParameterRanges* mutable_parameterranges(); + void set_allocated_parameterranges(::flyte::plugins::ParameterRanges* parameterranges); + + // .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + bool has_trainingjob() const; + void clear_trainingjob(); + static const int kTrainingJobFieldNumber = 6; + const ::flyte::plugins::SagemakerTrainingJob& trainingjob() const; + ::flyte::plugins::SagemakerTrainingJob* release_trainingjob(); + ::flyte::plugins::SagemakerTrainingJob* mutable_trainingjob(); + void set_allocated_trainingjob(::flyte::plugins::SagemakerTrainingJob* trainingjob); + + // int64 MaxNumberOfTrainingJobs = 3; + void clear_maxnumberoftrainingjobs(); + static const int kMaxNumberOfTrainingJobsFieldNumber = 3; + ::google::protobuf::int64 maxnumberoftrainingjobs() const; + void set_maxnumberoftrainingjobs(::google::protobuf::int64 value); + + // int64 MaxParallelTrainingJobs = 4; + void clear_maxparalleltrainingjobs(); + static const int kMaxParallelTrainingJobsFieldNumber = 4; + ::google::protobuf::int64 maxparalleltrainingjobs() const; + void set_maxparalleltrainingjobs(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyte.plugins.SagemakerHPOJob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr strategy_; + ::flyte::plugins::HPOJobObjective* objective_; + ::flyte::plugins::ParameterRanges* parameterranges_; + ::flyte::plugins::SagemakerTrainingJob* trainingjob_; + ::google::protobuf::int64 maxnumberoftrainingjobs_; + ::google::protobuf::int64 maxparalleltrainingjobs_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ContinuousParameterRange + +// string Name = 1; +inline void ContinuousParameterRange::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ContinuousParameterRange::name() const { + // @@protoc_insertion_point(field_get:flyte.plugins.ContinuousParameterRange.Name) + return name_.GetNoArena(); +} +inline void ContinuousParameterRange::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.ContinuousParameterRange.Name) +} +#if LANG_CXX11 +inline void ContinuousParameterRange::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.ContinuousParameterRange.Name) +} +#endif +inline void ContinuousParameterRange::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.ContinuousParameterRange.Name) +} +inline void ContinuousParameterRange::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.ContinuousParameterRange.Name) +} +inline ::std::string* ContinuousParameterRange::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.ContinuousParameterRange.Name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ContinuousParameterRange::release_name() { + // @@protoc_insertion_point(field_release:flyte.plugins.ContinuousParameterRange.Name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ContinuousParameterRange::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.ContinuousParameterRange.Name) +} + +// double MaxValue = 2; +inline void ContinuousParameterRange::clear_maxvalue() { + maxvalue_ = 0; +} +inline double ContinuousParameterRange::maxvalue() const { + // @@protoc_insertion_point(field_get:flyte.plugins.ContinuousParameterRange.MaxValue) + return maxvalue_; +} +inline void ContinuousParameterRange::set_maxvalue(double value) { + + maxvalue_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.ContinuousParameterRange.MaxValue) +} + +// double MinValue = 3; +inline void ContinuousParameterRange::clear_minvalue() { + minvalue_ = 0; +} +inline double ContinuousParameterRange::minvalue() const { + // @@protoc_insertion_point(field_get:flyte.plugins.ContinuousParameterRange.MinValue) + return minvalue_; +} +inline void ContinuousParameterRange::set_minvalue(double value) { + + minvalue_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.ContinuousParameterRange.MinValue) +} + +// .flyte.plugins.HyperparameterScalingType ScalingType = 4; +inline void ContinuousParameterRange::clear_scalingtype() { + scalingtype_ = 0; +} +inline ::flyte::plugins::HyperparameterScalingType ContinuousParameterRange::scalingtype() const { + // @@protoc_insertion_point(field_get:flyte.plugins.ContinuousParameterRange.ScalingType) + return static_cast< ::flyte::plugins::HyperparameterScalingType >(scalingtype_); +} +inline void ContinuousParameterRange::set_scalingtype(::flyte::plugins::HyperparameterScalingType value) { + + scalingtype_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.ContinuousParameterRange.ScalingType) +} + +// ------------------------------------------------------------------- + +// IntegerParameterRange + +// string Name = 1; +inline void IntegerParameterRange::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& IntegerParameterRange::name() const { + // @@protoc_insertion_point(field_get:flyte.plugins.IntegerParameterRange.Name) + return name_.GetNoArena(); +} +inline void IntegerParameterRange::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.IntegerParameterRange.Name) +} +#if LANG_CXX11 +inline void IntegerParameterRange::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.IntegerParameterRange.Name) +} +#endif +inline void IntegerParameterRange::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.IntegerParameterRange.Name) +} +inline void IntegerParameterRange::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.IntegerParameterRange.Name) +} +inline ::std::string* IntegerParameterRange::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.IntegerParameterRange.Name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* IntegerParameterRange::release_name() { + // @@protoc_insertion_point(field_release:flyte.plugins.IntegerParameterRange.Name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void IntegerParameterRange::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.IntegerParameterRange.Name) +} + +// float MaxValue = 2; +inline void IntegerParameterRange::clear_maxvalue() { + maxvalue_ = 0; +} +inline float IntegerParameterRange::maxvalue() const { + // @@protoc_insertion_point(field_get:flyte.plugins.IntegerParameterRange.MaxValue) + return maxvalue_; +} +inline void IntegerParameterRange::set_maxvalue(float value) { + + maxvalue_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.IntegerParameterRange.MaxValue) +} + +// float MinValue = 3; +inline void IntegerParameterRange::clear_minvalue() { + minvalue_ = 0; +} +inline float IntegerParameterRange::minvalue() const { + // @@protoc_insertion_point(field_get:flyte.plugins.IntegerParameterRange.MinValue) + return minvalue_; +} +inline void IntegerParameterRange::set_minvalue(float value) { + + minvalue_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.IntegerParameterRange.MinValue) +} + +// .flyte.plugins.HyperparameterScalingType ScalingType = 4; +inline void IntegerParameterRange::clear_scalingtype() { + scalingtype_ = 0; +} +inline ::flyte::plugins::HyperparameterScalingType IntegerParameterRange::scalingtype() const { + // @@protoc_insertion_point(field_get:flyte.plugins.IntegerParameterRange.ScalingType) + return static_cast< ::flyte::plugins::HyperparameterScalingType >(scalingtype_); +} +inline void IntegerParameterRange::set_scalingtype(::flyte::plugins::HyperparameterScalingType value) { + + scalingtype_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.IntegerParameterRange.ScalingType) +} + +// ------------------------------------------------------------------- + +// CategoricalParameterRange + +// string Name = 1; +inline void CategoricalParameterRange::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CategoricalParameterRange::name() const { + // @@protoc_insertion_point(field_get:flyte.plugins.CategoricalParameterRange.Name) + return name_.GetNoArena(); +} +inline void CategoricalParameterRange::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.CategoricalParameterRange.Name) +} +#if LANG_CXX11 +inline void CategoricalParameterRange::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.CategoricalParameterRange.Name) +} +#endif +inline void CategoricalParameterRange::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.CategoricalParameterRange.Name) +} +inline void CategoricalParameterRange::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.CategoricalParameterRange.Name) +} +inline ::std::string* CategoricalParameterRange::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.CategoricalParameterRange.Name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CategoricalParameterRange::release_name() { + // @@protoc_insertion_point(field_release:flyte.plugins.CategoricalParameterRange.Name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CategoricalParameterRange::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.CategoricalParameterRange.Name) +} + +// repeated string Values = 2; +inline int CategoricalParameterRange::values_size() const { + return values_.size(); +} +inline void CategoricalParameterRange::clear_values() { + values_.Clear(); +} +inline const ::std::string& CategoricalParameterRange::values(int index) const { + // @@protoc_insertion_point(field_get:flyte.plugins.CategoricalParameterRange.Values) + return values_.Get(index); +} +inline ::std::string* CategoricalParameterRange::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:flyte.plugins.CategoricalParameterRange.Values) + return values_.Mutable(index); +} +inline void CategoricalParameterRange::set_values(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyte.plugins.CategoricalParameterRange.Values) + values_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void CategoricalParameterRange::set_values(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyte.plugins.CategoricalParameterRange.Values) + values_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void CategoricalParameterRange::set_values(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyte.plugins.CategoricalParameterRange.Values) +} +inline void CategoricalParameterRange::set_values(int index, const char* value, size_t size) { + values_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.CategoricalParameterRange.Values) +} +inline ::std::string* CategoricalParameterRange::add_values() { + // @@protoc_insertion_point(field_add_mutable:flyte.plugins.CategoricalParameterRange.Values) + return values_.Add(); +} +inline void CategoricalParameterRange::add_values(const ::std::string& value) { + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyte.plugins.CategoricalParameterRange.Values) +} +#if LANG_CXX11 +inline void CategoricalParameterRange::add_values(::std::string&& value) { + values_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyte.plugins.CategoricalParameterRange.Values) +} +#endif +inline void CategoricalParameterRange::add_values(const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyte.plugins.CategoricalParameterRange.Values) +} +inline void CategoricalParameterRange::add_values(const char* value, size_t size) { + values_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyte.plugins.CategoricalParameterRange.Values) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +CategoricalParameterRange::values() const { + // @@protoc_insertion_point(field_list:flyte.plugins.CategoricalParameterRange.Values) + return values_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +CategoricalParameterRange::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.CategoricalParameterRange.Values) + return &values_; +} + +// ------------------------------------------------------------------- + +// ParameterRanges + +// repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; +inline int ParameterRanges::continuousparameterranges_size() const { + return continuousparameterranges_.size(); +} +inline void ParameterRanges::clear_continuousparameterranges() { + continuousparameterranges_.Clear(); +} +inline ::flyte::plugins::ContinuousParameterRange* ParameterRanges::mutable_continuousparameterranges(int index) { + // @@protoc_insertion_point(field_mutable:flyte.plugins.ParameterRanges.ContinuousParameterRanges) + return continuousparameterranges_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::ContinuousParameterRange >* +ParameterRanges::mutable_continuousparameterranges() { + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.ParameterRanges.ContinuousParameterRanges) + return &continuousparameterranges_; +} +inline const ::flyte::plugins::ContinuousParameterRange& ParameterRanges::continuousparameterranges(int index) const { + // @@protoc_insertion_point(field_get:flyte.plugins.ParameterRanges.ContinuousParameterRanges) + return continuousparameterranges_.Get(index); +} +inline ::flyte::plugins::ContinuousParameterRange* ParameterRanges::add_continuousparameterranges() { + // @@protoc_insertion_point(field_add:flyte.plugins.ParameterRanges.ContinuousParameterRanges) + return continuousparameterranges_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::ContinuousParameterRange >& +ParameterRanges::continuousparameterranges() const { + // @@protoc_insertion_point(field_list:flyte.plugins.ParameterRanges.ContinuousParameterRanges) + return continuousparameterranges_; +} + +// repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; +inline int ParameterRanges::integerparameterranges_size() const { + return integerparameterranges_.size(); +} +inline void ParameterRanges::clear_integerparameterranges() { + integerparameterranges_.Clear(); +} +inline ::flyte::plugins::IntegerParameterRange* ParameterRanges::mutable_integerparameterranges(int index) { + // @@protoc_insertion_point(field_mutable:flyte.plugins.ParameterRanges.IntegerParameterRanges) + return integerparameterranges_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::IntegerParameterRange >* +ParameterRanges::mutable_integerparameterranges() { + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.ParameterRanges.IntegerParameterRanges) + return &integerparameterranges_; +} +inline const ::flyte::plugins::IntegerParameterRange& ParameterRanges::integerparameterranges(int index) const { + // @@protoc_insertion_point(field_get:flyte.plugins.ParameterRanges.IntegerParameterRanges) + return integerparameterranges_.Get(index); +} +inline ::flyte::plugins::IntegerParameterRange* ParameterRanges::add_integerparameterranges() { + // @@protoc_insertion_point(field_add:flyte.plugins.ParameterRanges.IntegerParameterRanges) + return integerparameterranges_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::IntegerParameterRange >& +ParameterRanges::integerparameterranges() const { + // @@protoc_insertion_point(field_list:flyte.plugins.ParameterRanges.IntegerParameterRanges) + return integerparameterranges_; +} + +// repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; +inline int ParameterRanges::categoricalparameterranges_size() const { + return categoricalparameterranges_.size(); +} +inline void ParameterRanges::clear_categoricalparameterranges() { + categoricalparameterranges_.Clear(); +} +inline ::flyte::plugins::CategoricalParameterRange* ParameterRanges::mutable_categoricalparameterranges(int index) { + // @@protoc_insertion_point(field_mutable:flyte.plugins.ParameterRanges.CategoricalParameterRanges) + return categoricalparameterranges_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::CategoricalParameterRange >* +ParameterRanges::mutable_categoricalparameterranges() { + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.ParameterRanges.CategoricalParameterRanges) + return &categoricalparameterranges_; +} +inline const ::flyte::plugins::CategoricalParameterRange& ParameterRanges::categoricalparameterranges(int index) const { + // @@protoc_insertion_point(field_get:flyte.plugins.ParameterRanges.CategoricalParameterRanges) + return categoricalparameterranges_.Get(index); +} +inline ::flyte::plugins::CategoricalParameterRange* ParameterRanges::add_categoricalparameterranges() { + // @@protoc_insertion_point(field_add:flyte.plugins.ParameterRanges.CategoricalParameterRanges) + return categoricalparameterranges_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::CategoricalParameterRange >& +ParameterRanges::categoricalparameterranges() const { + // @@protoc_insertion_point(field_list:flyte.plugins.ParameterRanges.CategoricalParameterRanges) + return categoricalparameterranges_; +} + +// ------------------------------------------------------------------- + +// AlgorithmSpecification_MetricDefinition + +// string Name = 1; +inline void AlgorithmSpecification_MetricDefinition::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification_MetricDefinition::name() const { + // @@protoc_insertion_point(field_get:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) + return name_.GetNoArena(); +} +inline void AlgorithmSpecification_MetricDefinition::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) +} +#if LANG_CXX11 +inline void AlgorithmSpecification_MetricDefinition::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) +} +#endif +inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) +} +inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) +} +inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification_MetricDefinition::release_name() { + // @@protoc_insertion_point(field_release:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification_MetricDefinition::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) +} + +// string Regex = 2; +inline void AlgorithmSpecification_MetricDefinition::clear_regex() { + regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification_MetricDefinition::regex() const { + // @@protoc_insertion_point(field_get:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) + return regex_.GetNoArena(); +} +inline void AlgorithmSpecification_MetricDefinition::set_regex(const ::std::string& value) { + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) +} +#if LANG_CXX11 +inline void AlgorithmSpecification_MetricDefinition::set_regex(::std::string&& value) { + + regex_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) +} +#endif +inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) +} +inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value, size_t size) { + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) +} +inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_regex() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) + return regex_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification_MetricDefinition::release_regex() { + // @@protoc_insertion_point(field_release:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) + + return regex_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification_MetricDefinition::set_allocated_regex(::std::string* regex) { + if (regex != nullptr) { + + } else { + + } + regex_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), regex); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) +} + +// ------------------------------------------------------------------- + +// AlgorithmSpecification + +// string TrainingImage = 1; +inline void AlgorithmSpecification::clear_trainingimage() { + trainingimage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification::trainingimage() const { + // @@protoc_insertion_point(field_get:flyte.plugins.AlgorithmSpecification.TrainingImage) + return trainingimage_.GetNoArena(); +} +inline void AlgorithmSpecification::set_trainingimage(const ::std::string& value) { + + trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.AlgorithmSpecification.TrainingImage) +} +#if LANG_CXX11 +inline void AlgorithmSpecification::set_trainingimage(::std::string&& value) { + + trainingimage_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.AlgorithmSpecification.TrainingImage) +} +#endif +inline void AlgorithmSpecification::set_trainingimage(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.AlgorithmSpecification.TrainingImage) +} +inline void AlgorithmSpecification::set_trainingimage(const char* value, size_t size) { + + trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.AlgorithmSpecification.TrainingImage) +} +inline ::std::string* AlgorithmSpecification::mutable_trainingimage() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.AlgorithmSpecification.TrainingImage) + return trainingimage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification::release_trainingimage() { + // @@protoc_insertion_point(field_release:flyte.plugins.AlgorithmSpecification.TrainingImage) + + return trainingimage_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification::set_allocated_trainingimage(::std::string* trainingimage) { + if (trainingimage != nullptr) { + + } else { + + } + trainingimage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trainingimage); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.AlgorithmSpecification.TrainingImage) +} + +// string TrainingInputMode = 2; +inline void AlgorithmSpecification::clear_traininginputmode() { + traininginputmode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification::traininginputmode() const { + // @@protoc_insertion_point(field_get:flyte.plugins.AlgorithmSpecification.TrainingInputMode) + return traininginputmode_.GetNoArena(); +} +inline void AlgorithmSpecification::set_traininginputmode(const ::std::string& value) { + + traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.AlgorithmSpecification.TrainingInputMode) +} +#if LANG_CXX11 +inline void AlgorithmSpecification::set_traininginputmode(::std::string&& value) { + + traininginputmode_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.AlgorithmSpecification.TrainingInputMode) +} +#endif +inline void AlgorithmSpecification::set_traininginputmode(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.AlgorithmSpecification.TrainingInputMode) +} +inline void AlgorithmSpecification::set_traininginputmode(const char* value, size_t size) { + + traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.AlgorithmSpecification.TrainingInputMode) +} +inline ::std::string* AlgorithmSpecification::mutable_traininginputmode() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.AlgorithmSpecification.TrainingInputMode) + return traininginputmode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification::release_traininginputmode() { + // @@protoc_insertion_point(field_release:flyte.plugins.AlgorithmSpecification.TrainingInputMode) + + return traininginputmode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification::set_allocated_traininginputmode(::std::string* traininginputmode) { + if (traininginputmode != nullptr) { + + } else { + + } + traininginputmode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), traininginputmode); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.AlgorithmSpecification.TrainingInputMode) +} + +// string AlgorithmName = 3; +inline void AlgorithmSpecification::clear_algorithmname() { + algorithmname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification::algorithmname() const { + // @@protoc_insertion_point(field_get:flyte.plugins.AlgorithmSpecification.AlgorithmName) + return algorithmname_.GetNoArena(); +} +inline void AlgorithmSpecification::set_algorithmname(const ::std::string& value) { + + algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.AlgorithmSpecification.AlgorithmName) +} +#if LANG_CXX11 +inline void AlgorithmSpecification::set_algorithmname(::std::string&& value) { + + algorithmname_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.AlgorithmSpecification.AlgorithmName) +} +#endif +inline void AlgorithmSpecification::set_algorithmname(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.AlgorithmSpecification.AlgorithmName) +} +inline void AlgorithmSpecification::set_algorithmname(const char* value, size_t size) { + + algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.AlgorithmSpecification.AlgorithmName) +} +inline ::std::string* AlgorithmSpecification::mutable_algorithmname() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.AlgorithmSpecification.AlgorithmName) + return algorithmname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification::release_algorithmname() { + // @@protoc_insertion_point(field_release:flyte.plugins.AlgorithmSpecification.AlgorithmName) + + return algorithmname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification::set_allocated_algorithmname(::std::string* algorithmname) { + if (algorithmname != nullptr) { + + } else { + + } + algorithmname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), algorithmname); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.AlgorithmSpecification.AlgorithmName) +} + +// repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; +inline int AlgorithmSpecification::metricdefinitions_size() const { + return metricdefinitions_.size(); +} +inline void AlgorithmSpecification::clear_metricdefinitions() { + metricdefinitions_.Clear(); +} +inline ::flyte::plugins::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::mutable_metricdefinitions(int index) { + // @@protoc_insertion_point(field_mutable:flyte.plugins.AlgorithmSpecification.MetricDefinitions) + return metricdefinitions_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::AlgorithmSpecification_MetricDefinition >* +AlgorithmSpecification::mutable_metricdefinitions() { + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.AlgorithmSpecification.MetricDefinitions) + return &metricdefinitions_; +} +inline const ::flyte::plugins::AlgorithmSpecification_MetricDefinition& AlgorithmSpecification::metricdefinitions(int index) const { + // @@protoc_insertion_point(field_get:flyte.plugins.AlgorithmSpecification.MetricDefinitions) + return metricdefinitions_.Get(index); +} +inline ::flyte::plugins::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::add_metricdefinitions() { + // @@protoc_insertion_point(field_add:flyte.plugins.AlgorithmSpecification.MetricDefinitions) + return metricdefinitions_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::AlgorithmSpecification_MetricDefinition >& +AlgorithmSpecification::metricdefinitions() const { + // @@protoc_insertion_point(field_list:flyte.plugins.AlgorithmSpecification.MetricDefinitions) + return metricdefinitions_; +} + +// ------------------------------------------------------------------- + +// ResourceConfig + +// string InstanceType = 1; +inline void ResourceConfig::clear_instancetype() { + instancetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ResourceConfig::instancetype() const { + // @@protoc_insertion_point(field_get:flyte.plugins.ResourceConfig.InstanceType) + return instancetype_.GetNoArena(); +} +inline void ResourceConfig::set_instancetype(const ::std::string& value) { + + instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.ResourceConfig.InstanceType) +} +#if LANG_CXX11 +inline void ResourceConfig::set_instancetype(::std::string&& value) { + + instancetype_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.ResourceConfig.InstanceType) +} +#endif +inline void ResourceConfig::set_instancetype(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.ResourceConfig.InstanceType) +} +inline void ResourceConfig::set_instancetype(const char* value, size_t size) { + + instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.ResourceConfig.InstanceType) +} +inline ::std::string* ResourceConfig::mutable_instancetype() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.ResourceConfig.InstanceType) + return instancetype_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ResourceConfig::release_instancetype() { + // @@protoc_insertion_point(field_release:flyte.plugins.ResourceConfig.InstanceType) + + return instancetype_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ResourceConfig::set_allocated_instancetype(::std::string* instancetype) { + if (instancetype != nullptr) { + + } else { + + } + instancetype_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instancetype); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.ResourceConfig.InstanceType) +} + +// int64 InstanceCount = 2; +inline void ResourceConfig::clear_instancecount() { + instancecount_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 ResourceConfig::instancecount() const { + // @@protoc_insertion_point(field_get:flyte.plugins.ResourceConfig.InstanceCount) + return instancecount_; +} +inline void ResourceConfig::set_instancecount(::google::protobuf::int64 value) { + + instancecount_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.ResourceConfig.InstanceCount) +} + +// int64 VolumeSizeInGB = 3; +inline void ResourceConfig::clear_volumesizeingb() { + volumesizeingb_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 ResourceConfig::volumesizeingb() const { + // @@protoc_insertion_point(field_get:flyte.plugins.ResourceConfig.VolumeSizeInGB) + return volumesizeingb_; +} +inline void ResourceConfig::set_volumesizeingb(::google::protobuf::int64 value) { + + volumesizeingb_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.ResourceConfig.VolumeSizeInGB) +} + +// string VolumeKmsKeyId = 4; +inline void ResourceConfig::clear_volumekmskeyid() { + volumekmskeyid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ResourceConfig::volumekmskeyid() const { + // @@protoc_insertion_point(field_get:flyte.plugins.ResourceConfig.VolumeKmsKeyId) + return volumekmskeyid_.GetNoArena(); +} +inline void ResourceConfig::set_volumekmskeyid(const ::std::string& value) { + + volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.ResourceConfig.VolumeKmsKeyId) +} +#if LANG_CXX11 +inline void ResourceConfig::set_volumekmskeyid(::std::string&& value) { + + volumekmskeyid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.ResourceConfig.VolumeKmsKeyId) +} +#endif +inline void ResourceConfig::set_volumekmskeyid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.ResourceConfig.VolumeKmsKeyId) +} +inline void ResourceConfig::set_volumekmskeyid(const char* value, size_t size) { + + volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.ResourceConfig.VolumeKmsKeyId) +} +inline ::std::string* ResourceConfig::mutable_volumekmskeyid() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.ResourceConfig.VolumeKmsKeyId) + return volumekmskeyid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ResourceConfig::release_volumekmskeyid() { + // @@protoc_insertion_point(field_release:flyte.plugins.ResourceConfig.VolumeKmsKeyId) + + return volumekmskeyid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ResourceConfig::set_allocated_volumekmskeyid(::std::string* volumekmskeyid) { + if (volumekmskeyid != nullptr) { + + } else { + + } + volumekmskeyid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), volumekmskeyid); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.ResourceConfig.VolumeKmsKeyId) +} + +// ------------------------------------------------------------------- + +// StoppingCondition + +// int64 MaxRuntimeInSeconds = 1; +inline void StoppingCondition::clear_maxruntimeinseconds() { + maxruntimeinseconds_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 StoppingCondition::maxruntimeinseconds() const { + // @@protoc_insertion_point(field_get:flyte.plugins.StoppingCondition.MaxRuntimeInSeconds) + return maxruntimeinseconds_; +} +inline void StoppingCondition::set_maxruntimeinseconds(::google::protobuf::int64 value) { + + maxruntimeinseconds_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.StoppingCondition.MaxRuntimeInSeconds) +} + +// int64 MaxWaitTimeInSeconds = 2; +inline void StoppingCondition::clear_maxwaittimeinseconds() { + maxwaittimeinseconds_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 StoppingCondition::maxwaittimeinseconds() const { + // @@protoc_insertion_point(field_get:flyte.plugins.StoppingCondition.MaxWaitTimeInSeconds) + return maxwaittimeinseconds_; +} +inline void StoppingCondition::set_maxwaittimeinseconds(::google::protobuf::int64 value) { + + maxwaittimeinseconds_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.StoppingCondition.MaxWaitTimeInSeconds) +} + +// ------------------------------------------------------------------- + +// VpcConfig + +// repeated string SecurityGroupIds = 1; +inline int VpcConfig::securitygroupids_size() const { + return securitygroupids_.size(); +} +inline void VpcConfig::clear_securitygroupids() { + securitygroupids_.Clear(); +} +inline const ::std::string& VpcConfig::securitygroupids(int index) const { + // @@protoc_insertion_point(field_get:flyte.plugins.VpcConfig.SecurityGroupIds) + return securitygroupids_.Get(index); +} +inline ::std::string* VpcConfig::mutable_securitygroupids(int index) { + // @@protoc_insertion_point(field_mutable:flyte.plugins.VpcConfig.SecurityGroupIds) + return securitygroupids_.Mutable(index); +} +inline void VpcConfig::set_securitygroupids(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyte.plugins.VpcConfig.SecurityGroupIds) + securitygroupids_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void VpcConfig::set_securitygroupids(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyte.plugins.VpcConfig.SecurityGroupIds) + securitygroupids_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void VpcConfig::set_securitygroupids(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + securitygroupids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyte.plugins.VpcConfig.SecurityGroupIds) +} +inline void VpcConfig::set_securitygroupids(int index, const char* value, size_t size) { + securitygroupids_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.VpcConfig.SecurityGroupIds) +} +inline ::std::string* VpcConfig::add_securitygroupids() { + // @@protoc_insertion_point(field_add_mutable:flyte.plugins.VpcConfig.SecurityGroupIds) + return securitygroupids_.Add(); +} +inline void VpcConfig::add_securitygroupids(const ::std::string& value) { + securitygroupids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyte.plugins.VpcConfig.SecurityGroupIds) +} +#if LANG_CXX11 +inline void VpcConfig::add_securitygroupids(::std::string&& value) { + securitygroupids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyte.plugins.VpcConfig.SecurityGroupIds) +} +#endif +inline void VpcConfig::add_securitygroupids(const char* value) { + GOOGLE_DCHECK(value != nullptr); + securitygroupids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyte.plugins.VpcConfig.SecurityGroupIds) +} +inline void VpcConfig::add_securitygroupids(const char* value, size_t size) { + securitygroupids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyte.plugins.VpcConfig.SecurityGroupIds) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +VpcConfig::securitygroupids() const { + // @@protoc_insertion_point(field_list:flyte.plugins.VpcConfig.SecurityGroupIds) + return securitygroupids_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +VpcConfig::mutable_securitygroupids() { + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.VpcConfig.SecurityGroupIds) + return &securitygroupids_; +} + +// repeated string Subnets = 2; +inline int VpcConfig::subnets_size() const { + return subnets_.size(); +} +inline void VpcConfig::clear_subnets() { + subnets_.Clear(); +} +inline const ::std::string& VpcConfig::subnets(int index) const { + // @@protoc_insertion_point(field_get:flyte.plugins.VpcConfig.Subnets) + return subnets_.Get(index); +} +inline ::std::string* VpcConfig::mutable_subnets(int index) { + // @@protoc_insertion_point(field_mutable:flyte.plugins.VpcConfig.Subnets) + return subnets_.Mutable(index); +} +inline void VpcConfig::set_subnets(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyte.plugins.VpcConfig.Subnets) + subnets_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void VpcConfig::set_subnets(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyte.plugins.VpcConfig.Subnets) + subnets_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void VpcConfig::set_subnets(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + subnets_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyte.plugins.VpcConfig.Subnets) +} +inline void VpcConfig::set_subnets(int index, const char* value, size_t size) { + subnets_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.VpcConfig.Subnets) +} +inline ::std::string* VpcConfig::add_subnets() { + // @@protoc_insertion_point(field_add_mutable:flyte.plugins.VpcConfig.Subnets) + return subnets_.Add(); +} +inline void VpcConfig::add_subnets(const ::std::string& value) { + subnets_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyte.plugins.VpcConfig.Subnets) +} +#if LANG_CXX11 +inline void VpcConfig::add_subnets(::std::string&& value) { + subnets_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyte.plugins.VpcConfig.Subnets) +} +#endif +inline void VpcConfig::add_subnets(const char* value) { + GOOGLE_DCHECK(value != nullptr); + subnets_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyte.plugins.VpcConfig.Subnets) +} +inline void VpcConfig::add_subnets(const char* value, size_t size) { + subnets_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyte.plugins.VpcConfig.Subnets) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +VpcConfig::subnets() const { + // @@protoc_insertion_point(field_list:flyte.plugins.VpcConfig.Subnets) + return subnets_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +VpcConfig::mutable_subnets() { + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.VpcConfig.Subnets) + return &subnets_; +} + +// ------------------------------------------------------------------- + +// SagemakerTrainingJob + +// string Region = 1; +inline void SagemakerTrainingJob::clear_region() { + region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SagemakerTrainingJob::region() const { + // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.Region) + return region_.GetNoArena(); +} +inline void SagemakerTrainingJob::set_region(const ::std::string& value) { + + region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.SagemakerTrainingJob.Region) +} +#if LANG_CXX11 +inline void SagemakerTrainingJob::set_region(::std::string&& value) { + + region_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.SagemakerTrainingJob.Region) +} +#endif +inline void SagemakerTrainingJob::set_region(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.SagemakerTrainingJob.Region) +} +inline void SagemakerTrainingJob::set_region(const char* value, size_t size) { + + region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.SagemakerTrainingJob.Region) +} +inline ::std::string* SagemakerTrainingJob::mutable_region() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerTrainingJob.Region) + return region_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SagemakerTrainingJob::release_region() { + // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerTrainingJob.Region) + + return region_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SagemakerTrainingJob::set_allocated_region(::std::string* region) { + if (region != nullptr) { + + } else { + + } + region_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), region); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerTrainingJob.Region) +} + +// string RoleArn = 2; +inline void SagemakerTrainingJob::clear_rolearn() { + rolearn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SagemakerTrainingJob::rolearn() const { + // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.RoleArn) + return rolearn_.GetNoArena(); +} +inline void SagemakerTrainingJob::set_rolearn(const ::std::string& value) { + + rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.SagemakerTrainingJob.RoleArn) +} +#if LANG_CXX11 +inline void SagemakerTrainingJob::set_rolearn(::std::string&& value) { + + rolearn_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.SagemakerTrainingJob.RoleArn) +} +#endif +inline void SagemakerTrainingJob::set_rolearn(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.SagemakerTrainingJob.RoleArn) +} +inline void SagemakerTrainingJob::set_rolearn(const char* value, size_t size) { + + rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.SagemakerTrainingJob.RoleArn) +} +inline ::std::string* SagemakerTrainingJob::mutable_rolearn() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerTrainingJob.RoleArn) + return rolearn_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SagemakerTrainingJob::release_rolearn() { + // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerTrainingJob.RoleArn) + + return rolearn_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SagemakerTrainingJob::set_allocated_rolearn(::std::string* rolearn) { + if (rolearn != nullptr) { + + } else { + + } + rolearn_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rolearn); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerTrainingJob.RoleArn) +} + +// .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; +inline bool SagemakerTrainingJob::has_algorithmspecification() const { + return this != internal_default_instance() && algorithmspecification_ != nullptr; +} +inline void SagemakerTrainingJob::clear_algorithmspecification() { + if (GetArenaNoVirtual() == nullptr && algorithmspecification_ != nullptr) { + delete algorithmspecification_; + } + algorithmspecification_ = nullptr; +} +inline const ::flyte::plugins::AlgorithmSpecification& SagemakerTrainingJob::algorithmspecification() const { + const ::flyte::plugins::AlgorithmSpecification* p = algorithmspecification_; + // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.AlgorithmSpecification) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::_AlgorithmSpecification_default_instance_); +} +inline ::flyte::plugins::AlgorithmSpecification* SagemakerTrainingJob::release_algorithmspecification() { + // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerTrainingJob.AlgorithmSpecification) + + ::flyte::plugins::AlgorithmSpecification* temp = algorithmspecification_; + algorithmspecification_ = nullptr; + return temp; +} +inline ::flyte::plugins::AlgorithmSpecification* SagemakerTrainingJob::mutable_algorithmspecification() { + + if (algorithmspecification_ == nullptr) { + auto* p = CreateMaybeMessage<::flyte::plugins::AlgorithmSpecification>(GetArenaNoVirtual()); + algorithmspecification_ = p; + } + // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerTrainingJob.AlgorithmSpecification) + return algorithmspecification_; +} +inline void SagemakerTrainingJob::set_allocated_algorithmspecification(::flyte::plugins::AlgorithmSpecification* algorithmspecification) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete algorithmspecification_; + } + if (algorithmspecification) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + algorithmspecification = ::google::protobuf::internal::GetOwnedMessage( + message_arena, algorithmspecification, submessage_arena); + } + + } else { + + } + algorithmspecification_ = algorithmspecification; + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerTrainingJob.AlgorithmSpecification) +} + +// .flyte.plugins.ResourceConfig ResourceConfig = 4; +inline bool SagemakerTrainingJob::has_resourceconfig() const { + return this != internal_default_instance() && resourceconfig_ != nullptr; +} +inline void SagemakerTrainingJob::clear_resourceconfig() { + if (GetArenaNoVirtual() == nullptr && resourceconfig_ != nullptr) { + delete resourceconfig_; + } + resourceconfig_ = nullptr; +} +inline const ::flyte::plugins::ResourceConfig& SagemakerTrainingJob::resourceconfig() const { + const ::flyte::plugins::ResourceConfig* p = resourceconfig_; + // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.ResourceConfig) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::_ResourceConfig_default_instance_); +} +inline ::flyte::plugins::ResourceConfig* SagemakerTrainingJob::release_resourceconfig() { + // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerTrainingJob.ResourceConfig) + + ::flyte::plugins::ResourceConfig* temp = resourceconfig_; + resourceconfig_ = nullptr; + return temp; +} +inline ::flyte::plugins::ResourceConfig* SagemakerTrainingJob::mutable_resourceconfig() { + + if (resourceconfig_ == nullptr) { + auto* p = CreateMaybeMessage<::flyte::plugins::ResourceConfig>(GetArenaNoVirtual()); + resourceconfig_ = p; + } + // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerTrainingJob.ResourceConfig) + return resourceconfig_; +} +inline void SagemakerTrainingJob::set_allocated_resourceconfig(::flyte::plugins::ResourceConfig* resourceconfig) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete resourceconfig_; + } + if (resourceconfig) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + resourceconfig = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resourceconfig, submessage_arena); + } + + } else { + + } + resourceconfig_ = resourceconfig; + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerTrainingJob.ResourceConfig) +} + +// .flyte.plugins.StoppingCondition StoppingCondition = 5; +inline bool SagemakerTrainingJob::has_stoppingcondition() const { + return this != internal_default_instance() && stoppingcondition_ != nullptr; +} +inline void SagemakerTrainingJob::clear_stoppingcondition() { + if (GetArenaNoVirtual() == nullptr && stoppingcondition_ != nullptr) { + delete stoppingcondition_; + } + stoppingcondition_ = nullptr; +} +inline const ::flyte::plugins::StoppingCondition& SagemakerTrainingJob::stoppingcondition() const { + const ::flyte::plugins::StoppingCondition* p = stoppingcondition_; + // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.StoppingCondition) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::_StoppingCondition_default_instance_); +} +inline ::flyte::plugins::StoppingCondition* SagemakerTrainingJob::release_stoppingcondition() { + // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerTrainingJob.StoppingCondition) + + ::flyte::plugins::StoppingCondition* temp = stoppingcondition_; + stoppingcondition_ = nullptr; + return temp; +} +inline ::flyte::plugins::StoppingCondition* SagemakerTrainingJob::mutable_stoppingcondition() { + + if (stoppingcondition_ == nullptr) { + auto* p = CreateMaybeMessage<::flyte::plugins::StoppingCondition>(GetArenaNoVirtual()); + stoppingcondition_ = p; + } + // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerTrainingJob.StoppingCondition) + return stoppingcondition_; +} +inline void SagemakerTrainingJob::set_allocated_stoppingcondition(::flyte::plugins::StoppingCondition* stoppingcondition) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete stoppingcondition_; + } + if (stoppingcondition) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + stoppingcondition = ::google::protobuf::internal::GetOwnedMessage( + message_arena, stoppingcondition, submessage_arena); + } + + } else { + + } + stoppingcondition_ = stoppingcondition; + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerTrainingJob.StoppingCondition) +} + +// .flyte.plugins.VpcConfig VpcConfig = 6; +inline bool SagemakerTrainingJob::has_vpcconfig() const { + return this != internal_default_instance() && vpcconfig_ != nullptr; +} +inline void SagemakerTrainingJob::clear_vpcconfig() { + if (GetArenaNoVirtual() == nullptr && vpcconfig_ != nullptr) { + delete vpcconfig_; + } + vpcconfig_ = nullptr; +} +inline const ::flyte::plugins::VpcConfig& SagemakerTrainingJob::vpcconfig() const { + const ::flyte::plugins::VpcConfig* p = vpcconfig_; + // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.VpcConfig) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::_VpcConfig_default_instance_); +} +inline ::flyte::plugins::VpcConfig* SagemakerTrainingJob::release_vpcconfig() { + // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerTrainingJob.VpcConfig) + + ::flyte::plugins::VpcConfig* temp = vpcconfig_; + vpcconfig_ = nullptr; + return temp; +} +inline ::flyte::plugins::VpcConfig* SagemakerTrainingJob::mutable_vpcconfig() { + + if (vpcconfig_ == nullptr) { + auto* p = CreateMaybeMessage<::flyte::plugins::VpcConfig>(GetArenaNoVirtual()); + vpcconfig_ = p; + } + // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerTrainingJob.VpcConfig) + return vpcconfig_; +} +inline void SagemakerTrainingJob::set_allocated_vpcconfig(::flyte::plugins::VpcConfig* vpcconfig) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete vpcconfig_; + } + if (vpcconfig) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + vpcconfig = ::google::protobuf::internal::GetOwnedMessage( + message_arena, vpcconfig, submessage_arena); + } + + } else { + + } + vpcconfig_ = vpcconfig; + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerTrainingJob.VpcConfig) +} + +// bool EnableSpotTraining = 7; +inline void SagemakerTrainingJob::clear_enablespottraining() { + enablespottraining_ = false; +} +inline bool SagemakerTrainingJob::enablespottraining() const { + // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.EnableSpotTraining) + return enablespottraining_; +} +inline void SagemakerTrainingJob::set_enablespottraining(bool value) { + + enablespottraining_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.SagemakerTrainingJob.EnableSpotTraining) +} + +// ------------------------------------------------------------------- + +// HPOJobObjective + +// .flyte.plugins.HPOJobObjectiveType Type = 1; +inline void HPOJobObjective::clear_type() { + type_ = 0; +} +inline ::flyte::plugins::HPOJobObjectiveType HPOJobObjective::type() const { + // @@protoc_insertion_point(field_get:flyte.plugins.HPOJobObjective.Type) + return static_cast< ::flyte::plugins::HPOJobObjectiveType >(type_); +} +inline void HPOJobObjective::set_type(::flyte::plugins::HPOJobObjectiveType value) { + + type_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.HPOJobObjective.Type) +} + +// string MetricName = 2; +inline void HPOJobObjective::clear_metricname() { + metricname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& HPOJobObjective::metricname() const { + // @@protoc_insertion_point(field_get:flyte.plugins.HPOJobObjective.MetricName) + return metricname_.GetNoArena(); +} +inline void HPOJobObjective::set_metricname(const ::std::string& value) { + + metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.HPOJobObjective.MetricName) +} +#if LANG_CXX11 +inline void HPOJobObjective::set_metricname(::std::string&& value) { + + metricname_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.HPOJobObjective.MetricName) +} +#endif +inline void HPOJobObjective::set_metricname(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.HPOJobObjective.MetricName) +} +inline void HPOJobObjective::set_metricname(const char* value, size_t size) { + + metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.HPOJobObjective.MetricName) +} +inline ::std::string* HPOJobObjective::mutable_metricname() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.HPOJobObjective.MetricName) + return metricname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* HPOJobObjective::release_metricname() { + // @@protoc_insertion_point(field_release:flyte.plugins.HPOJobObjective.MetricName) + + return metricname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void HPOJobObjective::set_allocated_metricname(::std::string* metricname) { + if (metricname != nullptr) { + + } else { + + } + metricname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metricname); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.HPOJobObjective.MetricName) +} + +// ------------------------------------------------------------------- + +// SagemakerHPOJob + +// string Strategy = 1; +inline void SagemakerHPOJob::clear_strategy() { + strategy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SagemakerHPOJob::strategy() const { + // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerHPOJob.Strategy) + return strategy_.GetNoArena(); +} +inline void SagemakerHPOJob::set_strategy(const ::std::string& value) { + + strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyte.plugins.SagemakerHPOJob.Strategy) +} +#if LANG_CXX11 +inline void SagemakerHPOJob::set_strategy(::std::string&& value) { + + strategy_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.SagemakerHPOJob.Strategy) +} +#endif +inline void SagemakerHPOJob::set_strategy(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyte.plugins.SagemakerHPOJob.Strategy) +} +inline void SagemakerHPOJob::set_strategy(const char* value, size_t size) { + + strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.SagemakerHPOJob.Strategy) +} +inline ::std::string* SagemakerHPOJob::mutable_strategy() { + + // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerHPOJob.Strategy) + return strategy_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SagemakerHPOJob::release_strategy() { + // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerHPOJob.Strategy) + + return strategy_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SagemakerHPOJob::set_allocated_strategy(::std::string* strategy) { + if (strategy != nullptr) { + + } else { + + } + strategy_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), strategy); + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerHPOJob.Strategy) +} + +// .flyte.plugins.HPOJobObjective Objective = 2; +inline bool SagemakerHPOJob::has_objective() const { + return this != internal_default_instance() && objective_ != nullptr; +} +inline void SagemakerHPOJob::clear_objective() { + if (GetArenaNoVirtual() == nullptr && objective_ != nullptr) { + delete objective_; + } + objective_ = nullptr; +} +inline const ::flyte::plugins::HPOJobObjective& SagemakerHPOJob::objective() const { + const ::flyte::plugins::HPOJobObjective* p = objective_; + // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerHPOJob.Objective) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::_HPOJobObjective_default_instance_); +} +inline ::flyte::plugins::HPOJobObjective* SagemakerHPOJob::release_objective() { + // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerHPOJob.Objective) + + ::flyte::plugins::HPOJobObjective* temp = objective_; + objective_ = nullptr; + return temp; +} +inline ::flyte::plugins::HPOJobObjective* SagemakerHPOJob::mutable_objective() { + + if (objective_ == nullptr) { + auto* p = CreateMaybeMessage<::flyte::plugins::HPOJobObjective>(GetArenaNoVirtual()); + objective_ = p; + } + // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerHPOJob.Objective) + return objective_; +} +inline void SagemakerHPOJob::set_allocated_objective(::flyte::plugins::HPOJobObjective* objective) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete objective_; + } + if (objective) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + objective = ::google::protobuf::internal::GetOwnedMessage( + message_arena, objective, submessage_arena); + } + + } else { + + } + objective_ = objective; + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerHPOJob.Objective) +} + +// int64 MaxNumberOfTrainingJobs = 3; +inline void SagemakerHPOJob::clear_maxnumberoftrainingjobs() { + maxnumberoftrainingjobs_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 SagemakerHPOJob::maxnumberoftrainingjobs() const { + // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerHPOJob.MaxNumberOfTrainingJobs) + return maxnumberoftrainingjobs_; +} +inline void SagemakerHPOJob::set_maxnumberoftrainingjobs(::google::protobuf::int64 value) { + + maxnumberoftrainingjobs_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.SagemakerHPOJob.MaxNumberOfTrainingJobs) +} + +// int64 MaxParallelTrainingJobs = 4; +inline void SagemakerHPOJob::clear_maxparalleltrainingjobs() { + maxparalleltrainingjobs_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 SagemakerHPOJob::maxparalleltrainingjobs() const { + // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerHPOJob.MaxParallelTrainingJobs) + return maxparalleltrainingjobs_; +} +inline void SagemakerHPOJob::set_maxparalleltrainingjobs(::google::protobuf::int64 value) { + + maxparalleltrainingjobs_ = value; + // @@protoc_insertion_point(field_set:flyte.plugins.SagemakerHPOJob.MaxParallelTrainingJobs) +} + +// .flyte.plugins.ParameterRanges ParameterRanges = 5; +inline bool SagemakerHPOJob::has_parameterranges() const { + return this != internal_default_instance() && parameterranges_ != nullptr; +} +inline void SagemakerHPOJob::clear_parameterranges() { + if (GetArenaNoVirtual() == nullptr && parameterranges_ != nullptr) { + delete parameterranges_; + } + parameterranges_ = nullptr; +} +inline const ::flyte::plugins::ParameterRanges& SagemakerHPOJob::parameterranges() const { + const ::flyte::plugins::ParameterRanges* p = parameterranges_; + // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerHPOJob.ParameterRanges) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::_ParameterRanges_default_instance_); +} +inline ::flyte::plugins::ParameterRanges* SagemakerHPOJob::release_parameterranges() { + // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerHPOJob.ParameterRanges) + + ::flyte::plugins::ParameterRanges* temp = parameterranges_; + parameterranges_ = nullptr; + return temp; +} +inline ::flyte::plugins::ParameterRanges* SagemakerHPOJob::mutable_parameterranges() { + + if (parameterranges_ == nullptr) { + auto* p = CreateMaybeMessage<::flyte::plugins::ParameterRanges>(GetArenaNoVirtual()); + parameterranges_ = p; + } + // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerHPOJob.ParameterRanges) + return parameterranges_; +} +inline void SagemakerHPOJob::set_allocated_parameterranges(::flyte::plugins::ParameterRanges* parameterranges) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete parameterranges_; + } + if (parameterranges) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + parameterranges = ::google::protobuf::internal::GetOwnedMessage( + message_arena, parameterranges, submessage_arena); + } + + } else { + + } + parameterranges_ = parameterranges; + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerHPOJob.ParameterRanges) +} + +// .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; +inline bool SagemakerHPOJob::has_trainingjob() const { + return this != internal_default_instance() && trainingjob_ != nullptr; +} +inline void SagemakerHPOJob::clear_trainingjob() { + if (GetArenaNoVirtual() == nullptr && trainingjob_ != nullptr) { + delete trainingjob_; + } + trainingjob_ = nullptr; +} +inline const ::flyte::plugins::SagemakerTrainingJob& SagemakerHPOJob::trainingjob() const { + const ::flyte::plugins::SagemakerTrainingJob* p = trainingjob_; + // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerHPOJob.TrainingJob) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::_SagemakerTrainingJob_default_instance_); +} +inline ::flyte::plugins::SagemakerTrainingJob* SagemakerHPOJob::release_trainingjob() { + // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerHPOJob.TrainingJob) + + ::flyte::plugins::SagemakerTrainingJob* temp = trainingjob_; + trainingjob_ = nullptr; + return temp; +} +inline ::flyte::plugins::SagemakerTrainingJob* SagemakerHPOJob::mutable_trainingjob() { + + if (trainingjob_ == nullptr) { + auto* p = CreateMaybeMessage<::flyte::plugins::SagemakerTrainingJob>(GetArenaNoVirtual()); + trainingjob_ = p; + } + // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerHPOJob.TrainingJob) + return trainingjob_; +} +inline void SagemakerHPOJob::set_allocated_trainingjob(::flyte::plugins::SagemakerTrainingJob* trainingjob) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete trainingjob_; + } + if (trainingjob) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + trainingjob = ::google::protobuf::internal::GetOwnedMessage( + message_arena, trainingjob, submessage_arena); + } + + } else { + + } + trainingjob_ = trainingjob; + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerHPOJob.TrainingJob) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyte + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyte::plugins::HyperparameterScalingType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyte::plugins::HyperparameterScalingType>() { + return ::flyte::plugins::HyperparameterScalingType_descriptor(); +} +template <> struct is_proto_enum< ::flyte::plugins::HPOJobObjectiveType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyte::plugins::HPOJobObjectiveType>() { + return ::flyte::plugins::HPOJobObjectiveType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2eproto diff --git a/gen/pb-go/flyteidl/plugins/sagemaker.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker.pb.go new file mode 100644 index 000000000..d13b85ecb --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker.pb.go @@ -0,0 +1,871 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HyperparameterScalingType int32 + +const ( + HyperparameterScalingType_AUTO HyperparameterScalingType = 0 + HyperparameterScalingType_LINEAR HyperparameterScalingType = 1 + HyperparameterScalingType_LOGARITHMIC HyperparameterScalingType = 2 + HyperparameterScalingType_REVERSELOGARITHMIC HyperparameterScalingType = 3 +) + +var HyperparameterScalingType_name = map[int32]string{ + 0: "AUTO", + 1: "LINEAR", + 2: "LOGARITHMIC", + 3: "REVERSELOGARITHMIC", +} + +var HyperparameterScalingType_value = map[string]int32{ + "AUTO": 0, + "LINEAR": 1, + "LOGARITHMIC": 2, + "REVERSELOGARITHMIC": 3, +} + +func (x HyperparameterScalingType) String() string { + return proto.EnumName(HyperparameterScalingType_name, int32(x)) +} + +func (HyperparameterScalingType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{0} +} + +type HPOJobObjectiveType int32 + +const ( + HPOJobObjectiveType_MINIMIZE HPOJobObjectiveType = 0 + HPOJobObjectiveType_MAXIMIZE HPOJobObjectiveType = 1 +) + +var HPOJobObjectiveType_name = map[int32]string{ + 0: "MINIMIZE", + 1: "MAXIMIZE", +} + +var HPOJobObjectiveType_value = map[string]int32{ + "MINIMIZE": 0, + "MAXIMIZE": 1, +} + +func (x HPOJobObjectiveType) String() string { + return proto.EnumName(HPOJobObjectiveType_name, int32(x)) +} + +func (HPOJobObjectiveType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{1} +} + +type ContinuousParameterRange struct { + Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` + MaxValue float64 `protobuf:"fixed64,2,opt,name=MaxValue,proto3" json:"MaxValue,omitempty"` + MinValue float64 `protobuf:"fixed64,3,opt,name=MinValue,proto3" json:"MinValue,omitempty"` + ScalingType HyperparameterScalingType `protobuf:"varint,4,opt,name=ScalingType,proto3,enum=flyte.plugins.HyperparameterScalingType" json:"ScalingType,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContinuousParameterRange) Reset() { *m = ContinuousParameterRange{} } +func (m *ContinuousParameterRange) String() string { return proto.CompactTextString(m) } +func (*ContinuousParameterRange) ProtoMessage() {} +func (*ContinuousParameterRange) Descriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{0} +} + +func (m *ContinuousParameterRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContinuousParameterRange.Unmarshal(m, b) +} +func (m *ContinuousParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContinuousParameterRange.Marshal(b, m, deterministic) +} +func (m *ContinuousParameterRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContinuousParameterRange.Merge(m, src) +} +func (m *ContinuousParameterRange) XXX_Size() int { + return xxx_messageInfo_ContinuousParameterRange.Size(m) +} +func (m *ContinuousParameterRange) XXX_DiscardUnknown() { + xxx_messageInfo_ContinuousParameterRange.DiscardUnknown(m) +} + +var xxx_messageInfo_ContinuousParameterRange proto.InternalMessageInfo + +func (m *ContinuousParameterRange) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ContinuousParameterRange) GetMaxValue() float64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func (m *ContinuousParameterRange) GetMinValue() float64 { + if m != nil { + return m.MinValue + } + return 0 +} + +func (m *ContinuousParameterRange) GetScalingType() HyperparameterScalingType { + if m != nil { + return m.ScalingType + } + return HyperparameterScalingType_AUTO +} + +type IntegerParameterRange struct { + Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` + MaxValue float32 `protobuf:"fixed32,2,opt,name=MaxValue,proto3" json:"MaxValue,omitempty"` + MinValue float32 `protobuf:"fixed32,3,opt,name=MinValue,proto3" json:"MinValue,omitempty"` + ScalingType HyperparameterScalingType `protobuf:"varint,4,opt,name=ScalingType,proto3,enum=flyte.plugins.HyperparameterScalingType" json:"ScalingType,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IntegerParameterRange) Reset() { *m = IntegerParameterRange{} } +func (m *IntegerParameterRange) String() string { return proto.CompactTextString(m) } +func (*IntegerParameterRange) ProtoMessage() {} +func (*IntegerParameterRange) Descriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{1} +} + +func (m *IntegerParameterRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IntegerParameterRange.Unmarshal(m, b) +} +func (m *IntegerParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IntegerParameterRange.Marshal(b, m, deterministic) +} +func (m *IntegerParameterRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_IntegerParameterRange.Merge(m, src) +} +func (m *IntegerParameterRange) XXX_Size() int { + return xxx_messageInfo_IntegerParameterRange.Size(m) +} +func (m *IntegerParameterRange) XXX_DiscardUnknown() { + xxx_messageInfo_IntegerParameterRange.DiscardUnknown(m) +} + +var xxx_messageInfo_IntegerParameterRange proto.InternalMessageInfo + +func (m *IntegerParameterRange) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *IntegerParameterRange) GetMaxValue() float32 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func (m *IntegerParameterRange) GetMinValue() float32 { + if m != nil { + return m.MinValue + } + return 0 +} + +func (m *IntegerParameterRange) GetScalingType() HyperparameterScalingType { + if m != nil { + return m.ScalingType + } + return HyperparameterScalingType_AUTO +} + +type CategoricalParameterRange struct { + Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` + Values []string `protobuf:"bytes,2,rep,name=Values,proto3" json:"Values,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CategoricalParameterRange) Reset() { *m = CategoricalParameterRange{} } +func (m *CategoricalParameterRange) String() string { return proto.CompactTextString(m) } +func (*CategoricalParameterRange) ProtoMessage() {} +func (*CategoricalParameterRange) Descriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{2} +} + +func (m *CategoricalParameterRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CategoricalParameterRange.Unmarshal(m, b) +} +func (m *CategoricalParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CategoricalParameterRange.Marshal(b, m, deterministic) +} +func (m *CategoricalParameterRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_CategoricalParameterRange.Merge(m, src) +} +func (m *CategoricalParameterRange) XXX_Size() int { + return xxx_messageInfo_CategoricalParameterRange.Size(m) +} +func (m *CategoricalParameterRange) XXX_DiscardUnknown() { + xxx_messageInfo_CategoricalParameterRange.DiscardUnknown(m) +} + +var xxx_messageInfo_CategoricalParameterRange proto.InternalMessageInfo + +func (m *CategoricalParameterRange) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CategoricalParameterRange) GetValues() []string { + if m != nil { + return m.Values + } + return nil +} + +type ParameterRanges struct { + ContinuousParameterRanges []*ContinuousParameterRange `protobuf:"bytes,1,rep,name=ContinuousParameterRanges,proto3" json:"ContinuousParameterRanges,omitempty"` + IntegerParameterRanges []*IntegerParameterRange `protobuf:"bytes,2,rep,name=IntegerParameterRanges,proto3" json:"IntegerParameterRanges,omitempty"` + CategoricalParameterRanges []*CategoricalParameterRange `protobuf:"bytes,3,rep,name=CategoricalParameterRanges,proto3" json:"CategoricalParameterRanges,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ParameterRanges) Reset() { *m = ParameterRanges{} } +func (m *ParameterRanges) String() string { return proto.CompactTextString(m) } +func (*ParameterRanges) ProtoMessage() {} +func (*ParameterRanges) Descriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{3} +} + +func (m *ParameterRanges) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ParameterRanges.Unmarshal(m, b) +} +func (m *ParameterRanges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ParameterRanges.Marshal(b, m, deterministic) +} +func (m *ParameterRanges) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParameterRanges.Merge(m, src) +} +func (m *ParameterRanges) XXX_Size() int { + return xxx_messageInfo_ParameterRanges.Size(m) +} +func (m *ParameterRanges) XXX_DiscardUnknown() { + xxx_messageInfo_ParameterRanges.DiscardUnknown(m) +} + +var xxx_messageInfo_ParameterRanges proto.InternalMessageInfo + +func (m *ParameterRanges) GetContinuousParameterRanges() []*ContinuousParameterRange { + if m != nil { + return m.ContinuousParameterRanges + } + return nil +} + +func (m *ParameterRanges) GetIntegerParameterRanges() []*IntegerParameterRange { + if m != nil { + return m.IntegerParameterRanges + } + return nil +} + +func (m *ParameterRanges) GetCategoricalParameterRanges() []*CategoricalParameterRange { + if m != nil { + return m.CategoricalParameterRanges + } + return nil +} + +type AlgorithmSpecification struct { + TrainingImage string `protobuf:"bytes,1,opt,name=TrainingImage,proto3" json:"TrainingImage,omitempty"` + TrainingInputMode string `protobuf:"bytes,2,opt,name=TrainingInputMode,proto3" json:"TrainingInputMode,omitempty"` + AlgorithmName string `protobuf:"bytes,3,opt,name=AlgorithmName,proto3" json:"AlgorithmName,omitempty"` + MetricDefinitions []*AlgorithmSpecification_MetricDefinition `protobuf:"bytes,4,rep,name=MetricDefinitions,proto3" json:"MetricDefinitions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AlgorithmSpecification) Reset() { *m = AlgorithmSpecification{} } +func (m *AlgorithmSpecification) String() string { return proto.CompactTextString(m) } +func (*AlgorithmSpecification) ProtoMessage() {} +func (*AlgorithmSpecification) Descriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{4} +} + +func (m *AlgorithmSpecification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AlgorithmSpecification.Unmarshal(m, b) +} +func (m *AlgorithmSpecification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AlgorithmSpecification.Marshal(b, m, deterministic) +} +func (m *AlgorithmSpecification) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlgorithmSpecification.Merge(m, src) +} +func (m *AlgorithmSpecification) XXX_Size() int { + return xxx_messageInfo_AlgorithmSpecification.Size(m) +} +func (m *AlgorithmSpecification) XXX_DiscardUnknown() { + xxx_messageInfo_AlgorithmSpecification.DiscardUnknown(m) +} + +var xxx_messageInfo_AlgorithmSpecification proto.InternalMessageInfo + +func (m *AlgorithmSpecification) GetTrainingImage() string { + if m != nil { + return m.TrainingImage + } + return "" +} + +func (m *AlgorithmSpecification) GetTrainingInputMode() string { + if m != nil { + return m.TrainingInputMode + } + return "" +} + +func (m *AlgorithmSpecification) GetAlgorithmName() string { + if m != nil { + return m.AlgorithmName + } + return "" +} + +func (m *AlgorithmSpecification) GetMetricDefinitions() []*AlgorithmSpecification_MetricDefinition { + if m != nil { + return m.MetricDefinitions + } + return nil +} + +type AlgorithmSpecification_MetricDefinition struct { + Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` + Regex string `protobuf:"bytes,2,opt,name=Regex,proto3" json:"Regex,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AlgorithmSpecification_MetricDefinition) Reset() { + *m = AlgorithmSpecification_MetricDefinition{} +} +func (m *AlgorithmSpecification_MetricDefinition) String() string { return proto.CompactTextString(m) } +func (*AlgorithmSpecification_MetricDefinition) ProtoMessage() {} +func (*AlgorithmSpecification_MetricDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{4, 0} +} + +func (m *AlgorithmSpecification_MetricDefinition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Unmarshal(m, b) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Marshal(b, m, deterministic) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Merge(m, src) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_Size() int { + return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Size(m) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AlgorithmSpecification_MetricDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AlgorithmSpecification_MetricDefinition proto.InternalMessageInfo + +func (m *AlgorithmSpecification_MetricDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AlgorithmSpecification_MetricDefinition) GetRegex() string { + if m != nil { + return m.Regex + } + return "" +} + +type ResourceConfig struct { + InstanceType string `protobuf:"bytes,1,opt,name=InstanceType,proto3" json:"InstanceType,omitempty"` + InstanceCount int64 `protobuf:"varint,2,opt,name=InstanceCount,proto3" json:"InstanceCount,omitempty"` + VolumeSizeInGB int64 `protobuf:"varint,3,opt,name=VolumeSizeInGB,proto3" json:"VolumeSizeInGB,omitempty"` + VolumeKmsKeyId string `protobuf:"bytes,4,opt,name=VolumeKmsKeyId,proto3" json:"VolumeKmsKeyId,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResourceConfig) Reset() { *m = ResourceConfig{} } +func (m *ResourceConfig) String() string { return proto.CompactTextString(m) } +func (*ResourceConfig) ProtoMessage() {} +func (*ResourceConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{5} +} + +func (m *ResourceConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResourceConfig.Unmarshal(m, b) +} +func (m *ResourceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResourceConfig.Marshal(b, m, deterministic) +} +func (m *ResourceConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceConfig.Merge(m, src) +} +func (m *ResourceConfig) XXX_Size() int { + return xxx_messageInfo_ResourceConfig.Size(m) +} +func (m *ResourceConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceConfig proto.InternalMessageInfo + +func (m *ResourceConfig) GetInstanceType() string { + if m != nil { + return m.InstanceType + } + return "" +} + +func (m *ResourceConfig) GetInstanceCount() int64 { + if m != nil { + return m.InstanceCount + } + return 0 +} + +func (m *ResourceConfig) GetVolumeSizeInGB() int64 { + if m != nil { + return m.VolumeSizeInGB + } + return 0 +} + +func (m *ResourceConfig) GetVolumeKmsKeyId() string { + if m != nil { + return m.VolumeKmsKeyId + } + return "" +} + +type StoppingCondition struct { + MaxRuntimeInSeconds int64 `protobuf:"varint,1,opt,name=MaxRuntimeInSeconds,proto3" json:"MaxRuntimeInSeconds,omitempty"` + MaxWaitTimeInSeconds int64 `protobuf:"varint,2,opt,name=MaxWaitTimeInSeconds,proto3" json:"MaxWaitTimeInSeconds,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoppingCondition) Reset() { *m = StoppingCondition{} } +func (m *StoppingCondition) String() string { return proto.CompactTextString(m) } +func (*StoppingCondition) ProtoMessage() {} +func (*StoppingCondition) Descriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{6} +} + +func (m *StoppingCondition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StoppingCondition.Unmarshal(m, b) +} +func (m *StoppingCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StoppingCondition.Marshal(b, m, deterministic) +} +func (m *StoppingCondition) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoppingCondition.Merge(m, src) +} +func (m *StoppingCondition) XXX_Size() int { + return xxx_messageInfo_StoppingCondition.Size(m) +} +func (m *StoppingCondition) XXX_DiscardUnknown() { + xxx_messageInfo_StoppingCondition.DiscardUnknown(m) +} + +var xxx_messageInfo_StoppingCondition proto.InternalMessageInfo + +func (m *StoppingCondition) GetMaxRuntimeInSeconds() int64 { + if m != nil { + return m.MaxRuntimeInSeconds + } + return 0 +} + +func (m *StoppingCondition) GetMaxWaitTimeInSeconds() int64 { + if m != nil { + return m.MaxWaitTimeInSeconds + } + return 0 +} + +type VpcConfig struct { + SecurityGroupIds []string `protobuf:"bytes,1,rep,name=SecurityGroupIds,proto3" json:"SecurityGroupIds,omitempty"` + Subnets []string `protobuf:"bytes,2,rep,name=Subnets,proto3" json:"Subnets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VpcConfig) Reset() { *m = VpcConfig{} } +func (m *VpcConfig) String() string { return proto.CompactTextString(m) } +func (*VpcConfig) ProtoMessage() {} +func (*VpcConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{7} +} + +func (m *VpcConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VpcConfig.Unmarshal(m, b) +} +func (m *VpcConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VpcConfig.Marshal(b, m, deterministic) +} +func (m *VpcConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_VpcConfig.Merge(m, src) +} +func (m *VpcConfig) XXX_Size() int { + return xxx_messageInfo_VpcConfig.Size(m) +} +func (m *VpcConfig) XXX_DiscardUnknown() { + xxx_messageInfo_VpcConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_VpcConfig proto.InternalMessageInfo + +func (m *VpcConfig) GetSecurityGroupIds() []string { + if m != nil { + return m.SecurityGroupIds + } + return nil +} + +func (m *VpcConfig) GetSubnets() []string { + if m != nil { + return m.Subnets + } + return nil +} + +type SagemakerTrainingJob struct { + Region string `protobuf:"bytes,1,opt,name=Region,proto3" json:"Region,omitempty"` + RoleArn string `protobuf:"bytes,2,opt,name=RoleArn,proto3" json:"RoleArn,omitempty"` + AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,3,opt,name=AlgorithmSpecification,proto3" json:"AlgorithmSpecification,omitempty"` + ResourceConfig *ResourceConfig `protobuf:"bytes,4,opt,name=ResourceConfig,proto3" json:"ResourceConfig,omitempty"` + StoppingCondition *StoppingCondition `protobuf:"bytes,5,opt,name=StoppingCondition,proto3" json:"StoppingCondition,omitempty"` + VpcConfig *VpcConfig `protobuf:"bytes,6,opt,name=VpcConfig,proto3" json:"VpcConfig,omitempty"` + EnableSpotTraining bool `protobuf:"varint,7,opt,name=EnableSpotTraining,proto3" json:"EnableSpotTraining,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SagemakerTrainingJob) Reset() { *m = SagemakerTrainingJob{} } +func (m *SagemakerTrainingJob) String() string { return proto.CompactTextString(m) } +func (*SagemakerTrainingJob) ProtoMessage() {} +func (*SagemakerTrainingJob) Descriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{8} +} + +func (m *SagemakerTrainingJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SagemakerTrainingJob.Unmarshal(m, b) +} +func (m *SagemakerTrainingJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SagemakerTrainingJob.Marshal(b, m, deterministic) +} +func (m *SagemakerTrainingJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_SagemakerTrainingJob.Merge(m, src) +} +func (m *SagemakerTrainingJob) XXX_Size() int { + return xxx_messageInfo_SagemakerTrainingJob.Size(m) +} +func (m *SagemakerTrainingJob) XXX_DiscardUnknown() { + xxx_messageInfo_SagemakerTrainingJob.DiscardUnknown(m) +} + +var xxx_messageInfo_SagemakerTrainingJob proto.InternalMessageInfo + +func (m *SagemakerTrainingJob) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *SagemakerTrainingJob) GetRoleArn() string { + if m != nil { + return m.RoleArn + } + return "" +} + +func (m *SagemakerTrainingJob) GetAlgorithmSpecification() *AlgorithmSpecification { + if m != nil { + return m.AlgorithmSpecification + } + return nil +} + +func (m *SagemakerTrainingJob) GetResourceConfig() *ResourceConfig { + if m != nil { + return m.ResourceConfig + } + return nil +} + +func (m *SagemakerTrainingJob) GetStoppingCondition() *StoppingCondition { + if m != nil { + return m.StoppingCondition + } + return nil +} + +func (m *SagemakerTrainingJob) GetVpcConfig() *VpcConfig { + if m != nil { + return m.VpcConfig + } + return nil +} + +func (m *SagemakerTrainingJob) GetEnableSpotTraining() bool { + if m != nil { + return m.EnableSpotTraining + } + return false +} + +type HPOJobObjective struct { + Type HPOJobObjectiveType `protobuf:"varint,1,opt,name=Type,proto3,enum=flyte.plugins.HPOJobObjectiveType" json:"Type,omitempty"` + MetricName string `protobuf:"bytes,2,opt,name=MetricName,proto3" json:"MetricName,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HPOJobObjective) Reset() { *m = HPOJobObjective{} } +func (m *HPOJobObjective) String() string { return proto.CompactTextString(m) } +func (*HPOJobObjective) ProtoMessage() {} +func (*HPOJobObjective) Descriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{9} +} + +func (m *HPOJobObjective) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HPOJobObjective.Unmarshal(m, b) +} +func (m *HPOJobObjective) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HPOJobObjective.Marshal(b, m, deterministic) +} +func (m *HPOJobObjective) XXX_Merge(src proto.Message) { + xxx_messageInfo_HPOJobObjective.Merge(m, src) +} +func (m *HPOJobObjective) XXX_Size() int { + return xxx_messageInfo_HPOJobObjective.Size(m) +} +func (m *HPOJobObjective) XXX_DiscardUnknown() { + xxx_messageInfo_HPOJobObjective.DiscardUnknown(m) +} + +var xxx_messageInfo_HPOJobObjective proto.InternalMessageInfo + +func (m *HPOJobObjective) GetType() HPOJobObjectiveType { + if m != nil { + return m.Type + } + return HPOJobObjectiveType_MINIMIZE +} + +func (m *HPOJobObjective) GetMetricName() string { + if m != nil { + return m.MetricName + } + return "" +} + +type SagemakerHPOJob struct { + Strategy string `protobuf:"bytes,1,opt,name=Strategy,proto3" json:"Strategy,omitempty"` + Objective *HPOJobObjective `protobuf:"bytes,2,opt,name=Objective,proto3" json:"Objective,omitempty"` + MaxNumberOfTrainingJobs int64 `protobuf:"varint,3,opt,name=MaxNumberOfTrainingJobs,proto3" json:"MaxNumberOfTrainingJobs,omitempty"` + MaxParallelTrainingJobs int64 `protobuf:"varint,4,opt,name=MaxParallelTrainingJobs,proto3" json:"MaxParallelTrainingJobs,omitempty"` + ParameterRanges *ParameterRanges `protobuf:"bytes,5,opt,name=ParameterRanges,proto3" json:"ParameterRanges,omitempty"` + TrainingJob *SagemakerTrainingJob `protobuf:"bytes,6,opt,name=TrainingJob,proto3" json:"TrainingJob,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SagemakerHPOJob) Reset() { *m = SagemakerHPOJob{} } +func (m *SagemakerHPOJob) String() string { return proto.CompactTextString(m) } +func (*SagemakerHPOJob) ProtoMessage() {} +func (*SagemakerHPOJob) Descriptor() ([]byte, []int) { + return fileDescriptor_f69b16f47399b37c, []int{10} +} + +func (m *SagemakerHPOJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SagemakerHPOJob.Unmarshal(m, b) +} +func (m *SagemakerHPOJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SagemakerHPOJob.Marshal(b, m, deterministic) +} +func (m *SagemakerHPOJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_SagemakerHPOJob.Merge(m, src) +} +func (m *SagemakerHPOJob) XXX_Size() int { + return xxx_messageInfo_SagemakerHPOJob.Size(m) +} +func (m *SagemakerHPOJob) XXX_DiscardUnknown() { + xxx_messageInfo_SagemakerHPOJob.DiscardUnknown(m) +} + +var xxx_messageInfo_SagemakerHPOJob proto.InternalMessageInfo + +func (m *SagemakerHPOJob) GetStrategy() string { + if m != nil { + return m.Strategy + } + return "" +} + +func (m *SagemakerHPOJob) GetObjective() *HPOJobObjective { + if m != nil { + return m.Objective + } + return nil +} + +func (m *SagemakerHPOJob) GetMaxNumberOfTrainingJobs() int64 { + if m != nil { + return m.MaxNumberOfTrainingJobs + } + return 0 +} + +func (m *SagemakerHPOJob) GetMaxParallelTrainingJobs() int64 { + if m != nil { + return m.MaxParallelTrainingJobs + } + return 0 +} + +func (m *SagemakerHPOJob) GetParameterRanges() *ParameterRanges { + if m != nil { + return m.ParameterRanges + } + return nil +} + +func (m *SagemakerHPOJob) GetTrainingJob() *SagemakerTrainingJob { + if m != nil { + return m.TrainingJob + } + return nil +} + +func init() { + proto.RegisterEnum("flyte.plugins.HyperparameterScalingType", HyperparameterScalingType_name, HyperparameterScalingType_value) + proto.RegisterEnum("flyte.plugins.HPOJobObjectiveType", HPOJobObjectiveType_name, HPOJobObjectiveType_value) + proto.RegisterType((*ContinuousParameterRange)(nil), "flyte.plugins.ContinuousParameterRange") + proto.RegisterType((*IntegerParameterRange)(nil), "flyte.plugins.IntegerParameterRange") + proto.RegisterType((*CategoricalParameterRange)(nil), "flyte.plugins.CategoricalParameterRange") + proto.RegisterType((*ParameterRanges)(nil), "flyte.plugins.ParameterRanges") + proto.RegisterType((*AlgorithmSpecification)(nil), "flyte.plugins.AlgorithmSpecification") + proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyte.plugins.AlgorithmSpecification.MetricDefinition") + proto.RegisterType((*ResourceConfig)(nil), "flyte.plugins.ResourceConfig") + proto.RegisterType((*StoppingCondition)(nil), "flyte.plugins.StoppingCondition") + proto.RegisterType((*VpcConfig)(nil), "flyte.plugins.VpcConfig") + proto.RegisterType((*SagemakerTrainingJob)(nil), "flyte.plugins.SagemakerTrainingJob") + proto.RegisterType((*HPOJobObjective)(nil), "flyte.plugins.HPOJobObjective") + proto.RegisterType((*SagemakerHPOJob)(nil), "flyte.plugins.SagemakerHPOJob") +} + +func init() { proto.RegisterFile("flyteidl/plugins/sagemaker.proto", fileDescriptor_f69b16f47399b37c) } + +var fileDescriptor_f69b16f47399b37c = []byte{ + // 966 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4f, 0x6f, 0xe3, 0x44, + 0x14, 0x5f, 0xc7, 0xd9, 0x6e, 0xf3, 0xb2, 0xdb, 0x66, 0x67, 0x4b, 0x71, 0x2b, 0xb1, 0x8a, 0xcc, + 0x02, 0x51, 0x05, 0x09, 0x64, 0x45, 0xc5, 0x61, 0x2f, 0xd9, 0x10, 0xb5, 0xee, 0x6e, 0xda, 0x65, + 0x1c, 0x0a, 0xaa, 0xe0, 0x30, 0x71, 0x26, 0xee, 0x80, 0x3d, 0x63, 0xd9, 0x63, 0x94, 0xf0, 0x81, + 0x38, 0x70, 0x41, 0xe2, 0xc0, 0x99, 0x8f, 0xc4, 0x47, 0x40, 0x19, 0x3b, 0xde, 0xd8, 0xb1, 0xab, + 0x15, 0x12, 0xb7, 0xbc, 0x7f, 0x3f, 0xff, 0xe6, 0xbd, 0xdf, 0x9b, 0x09, 0xb4, 0xe7, 0xde, 0x52, + 0x52, 0x36, 0xf3, 0x7a, 0x81, 0x17, 0xbb, 0x8c, 0x47, 0xbd, 0x88, 0xb8, 0xd4, 0x27, 0x3f, 0xd3, + 0xb0, 0x1b, 0x84, 0x42, 0x0a, 0xf4, 0x48, 0x65, 0x74, 0xd3, 0xb0, 0xf9, 0xa7, 0x06, 0xc6, 0x50, + 0x70, 0xc9, 0x78, 0x2c, 0xe2, 0xe8, 0x0d, 0x09, 0x89, 0x4f, 0x25, 0x0d, 0x31, 0xe1, 0x2e, 0x45, + 0x08, 0xea, 0x97, 0xc4, 0xa7, 0x86, 0xd6, 0xd6, 0x3a, 0x0d, 0xac, 0x7e, 0xa3, 0x63, 0xd8, 0x1d, + 0x93, 0xc5, 0x35, 0xf1, 0x62, 0x6a, 0xd4, 0xda, 0x5a, 0x47, 0xc3, 0x99, 0xad, 0x62, 0x8c, 0x27, + 0x31, 0x3d, 0x8d, 0xa5, 0x36, 0xba, 0x80, 0xa6, 0xed, 0x10, 0x8f, 0x71, 0x77, 0xb2, 0x0c, 0xa8, + 0x51, 0x6f, 0x6b, 0x9d, 0xbd, 0x7e, 0xa7, 0x9b, 0x63, 0xd3, 0x3d, 0x5f, 0x06, 0x34, 0x0c, 0xd6, + 0x24, 0x36, 0xf2, 0xf1, 0x66, 0xb1, 0xf9, 0x87, 0x06, 0xef, 0x59, 0x5c, 0x52, 0x97, 0x86, 0xff, + 0x81, 0x71, 0xed, 0x0e, 0xc6, 0xb5, 0xff, 0x89, 0xf1, 0x19, 0x1c, 0x0d, 0x89, 0xa4, 0xae, 0x08, + 0x99, 0x43, 0xbc, 0x77, 0x20, 0x7d, 0x08, 0x3b, 0x8a, 0x45, 0x64, 0xd4, 0xda, 0x7a, 0xa7, 0x81, + 0x53, 0xcb, 0xfc, 0xbb, 0x06, 0xfb, 0xf9, 0xf2, 0x08, 0x51, 0x38, 0xaa, 0x1a, 0x61, 0x64, 0x68, + 0x6d, 0xbd, 0xd3, 0xec, 0x7f, 0x52, 0xa0, 0x5d, 0x95, 0x8f, 0xab, 0x91, 0xd0, 0x0f, 0x70, 0x58, + 0xda, 0xf4, 0x84, 0x62, 0xb3, 0xff, 0xac, 0xf0, 0x8d, 0xd2, 0x64, 0x5c, 0x81, 0x81, 0x6e, 0xe1, + 0xb8, 0xb2, 0x43, 0x91, 0xa1, 0xab, 0x2f, 0x14, 0x9b, 0x5f, 0x59, 0x80, 0xef, 0xc0, 0x32, 0xff, + 0xaa, 0xc1, 0xe1, 0xc0, 0x5b, 0x05, 0xe5, 0xad, 0x6f, 0x07, 0xd4, 0x61, 0x73, 0xe6, 0x10, 0xc9, + 0x04, 0x47, 0xcf, 0xe0, 0xd1, 0x24, 0x24, 0x8c, 0x33, 0xee, 0x5a, 0x3e, 0x71, 0xd7, 0x23, 0xc9, + 0x3b, 0xd1, 0xa7, 0xf0, 0x38, 0x73, 0xf0, 0x20, 0x96, 0x63, 0x31, 0x4b, 0x94, 0xd5, 0xc0, 0xdb, + 0x81, 0x15, 0x66, 0xf6, 0x35, 0x35, 0x66, 0x3d, 0xc1, 0xcc, 0x39, 0xd1, 0x0c, 0x1e, 0x8f, 0xa9, + 0x0c, 0x99, 0xf3, 0x35, 0x9d, 0x33, 0xce, 0x56, 0x6c, 0x22, 0xa3, 0xae, 0x4e, 0x7d, 0x5a, 0x38, + 0x75, 0x39, 0xf7, 0x6e, 0xb1, 0x1c, 0x6f, 0x03, 0x1e, 0xbf, 0x80, 0x56, 0xd1, 0x59, 0xaa, 0xbe, + 0x03, 0xb8, 0x8f, 0xa9, 0x4b, 0x17, 0xe9, 0xa9, 0x12, 0xc3, 0xfc, 0x5d, 0x83, 0x3d, 0x4c, 0x23, + 0x11, 0x87, 0x0e, 0x1d, 0x0a, 0x3e, 0x67, 0x2e, 0x32, 0xe1, 0xa1, 0xc5, 0x23, 0x49, 0xb8, 0x43, + 0xd5, 0x92, 0x24, 0x20, 0x39, 0xdf, 0xaa, 0x01, 0x6b, 0x7b, 0x28, 0x62, 0x2e, 0x15, 0xa8, 0x8e, + 0xf3, 0x4e, 0xf4, 0x31, 0xec, 0x5d, 0x0b, 0x2f, 0xf6, 0xa9, 0xcd, 0x7e, 0xa5, 0x16, 0x3f, 0x7b, + 0xa9, 0xfa, 0xa4, 0xe3, 0x82, 0xf7, 0x6d, 0xde, 0x2b, 0x3f, 0x7a, 0x45, 0x97, 0xd6, 0x4c, 0x2d, + 0x66, 0x03, 0x17, 0xbc, 0xe6, 0x12, 0x1e, 0xdb, 0x52, 0x04, 0x01, 0xe3, 0xee, 0x50, 0xf0, 0x59, + 0x72, 0xd6, 0xcf, 0xe1, 0xc9, 0x98, 0x2c, 0x70, 0xcc, 0x25, 0xf3, 0xa9, 0xc5, 0x6d, 0xea, 0x08, + 0x3e, 0x8b, 0x14, 0x6b, 0x1d, 0x97, 0x85, 0x50, 0x1f, 0x0e, 0xc6, 0x64, 0xf1, 0x1d, 0x61, 0x72, + 0x92, 0x2b, 0x49, 0xce, 0x50, 0x1a, 0x33, 0xbf, 0x81, 0xc6, 0x75, 0xe0, 0xa4, 0x1d, 0x3a, 0x81, + 0x96, 0x4d, 0x9d, 0x38, 0x64, 0x72, 0x79, 0x16, 0x8a, 0x38, 0xb0, 0x66, 0xc9, 0x4e, 0x36, 0xf0, + 0x96, 0x1f, 0x19, 0xf0, 0xc0, 0x8e, 0xa7, 0x9c, 0xca, 0xf5, 0xd6, 0xaf, 0x4d, 0xf3, 0x37, 0x1d, + 0x0e, 0xec, 0xf5, 0x4d, 0xbe, 0xd6, 0xd8, 0x85, 0x98, 0xae, 0xee, 0x09, 0x4c, 0x5d, 0x26, 0x78, + 0xda, 0xfa, 0xd4, 0x5a, 0x41, 0x61, 0xe1, 0xd1, 0x41, 0xc8, 0xd3, 0x19, 0xae, 0x4d, 0xf4, 0x63, + 0x95, 0xfa, 0x55, 0xc3, 0x9b, 0xfd, 0x8f, 0xde, 0x49, 0x6e, 0xb8, 0x6a, 0x85, 0x46, 0x45, 0x8d, + 0xa8, 0xf9, 0x34, 0xfb, 0x1f, 0x14, 0x60, 0xf3, 0x49, 0xb8, 0x28, 0xac, 0xcb, 0x92, 0xf1, 0x19, + 0xf7, 0x15, 0x52, 0xbb, 0x80, 0xb4, 0x95, 0x87, 0x4b, 0x26, 0x7f, 0xba, 0x31, 0x13, 0x63, 0x47, + 0xe1, 0x18, 0x05, 0x9c, 0x2c, 0x8e, 0x37, 0xc6, 0xd7, 0x05, 0x34, 0xe2, 0x64, 0xea, 0x51, 0x3b, + 0x10, 0x72, 0xdd, 0x78, 0xe3, 0x41, 0x5b, 0xeb, 0xec, 0xe2, 0x92, 0x88, 0xc9, 0x60, 0xff, 0xfc, + 0xcd, 0xd5, 0x85, 0x98, 0x5e, 0x4d, 0x7f, 0xa2, 0x8e, 0x64, 0xbf, 0x50, 0x74, 0x0a, 0xf5, 0x6c, + 0x37, 0xf6, 0xfa, 0x66, 0xf1, 0x01, 0xc9, 0x67, 0xab, 0xa7, 0x43, 0xe5, 0xa3, 0xa7, 0x00, 0xc9, + 0xb2, 0xaa, 0xf5, 0x4c, 0xa6, 0xb8, 0xe1, 0x31, 0xff, 0xa9, 0xc1, 0x7e, 0xa6, 0x89, 0x04, 0x66, + 0xf5, 0x9e, 0xd9, 0x32, 0x5c, 0xdd, 0x7d, 0xcb, 0x54, 0x10, 0x99, 0x8d, 0x5e, 0x40, 0x23, 0xfb, + 0x8c, 0x82, 0x6b, 0xf6, 0x9f, 0xde, 0x4d, 0x06, 0xbf, 0x2d, 0x40, 0x5f, 0xc1, 0xfb, 0x63, 0xb2, + 0xb8, 0x8c, 0xfd, 0x29, 0x0d, 0xaf, 0xe6, 0x1b, 0x12, 0x8c, 0xd2, 0x45, 0xad, 0x0a, 0xa7, 0x95, + 0xab, 0x5b, 0xd8, 0xf3, 0xa8, 0x97, 0xab, 0xac, 0x67, 0x95, 0x65, 0x61, 0x74, 0xbe, 0xf5, 0xd6, + 0xa5, 0x12, 0x28, 0xf2, 0x2e, 0x64, 0xe1, 0xad, 0x27, 0x72, 0x04, 0xcd, 0x0d, 0xe4, 0x54, 0x00, + 0x1f, 0x16, 0x85, 0x54, 0xb2, 0x60, 0x78, 0xb3, 0xee, 0xe4, 0x06, 0x8e, 0x2a, 0x1f, 0x7c, 0xb4, + 0x0b, 0xf5, 0xc1, 0xb7, 0x93, 0xab, 0xd6, 0x3d, 0x04, 0xb0, 0xf3, 0xda, 0xba, 0x1c, 0x0d, 0x70, + 0x4b, 0x43, 0xfb, 0xd0, 0x7c, 0x7d, 0x75, 0x36, 0xc0, 0xd6, 0xe4, 0x7c, 0x6c, 0x0d, 0x5b, 0x35, + 0x74, 0x08, 0x08, 0x8f, 0xae, 0x47, 0xd8, 0x1e, 0x6d, 0xfa, 0xf5, 0x93, 0x2f, 0xe0, 0x49, 0x89, + 0x16, 0xd0, 0x43, 0xd8, 0x1d, 0x5b, 0x97, 0xd6, 0xd8, 0xba, 0x19, 0xb5, 0xee, 0x29, 0x6b, 0xf0, + 0x7d, 0x62, 0x69, 0x2f, 0xbf, 0xbc, 0x79, 0xee, 0x32, 0x79, 0x1b, 0x4f, 0xbb, 0x8e, 0xf0, 0x7b, + 0xde, 0x72, 0x2e, 0x7b, 0xd9, 0xff, 0x3f, 0x97, 0xf2, 0x5e, 0x30, 0xfd, 0xcc, 0x15, 0xbd, 0xe2, + 0x5f, 0xc2, 0xe9, 0x8e, 0xfa, 0x27, 0xf8, 0xfc, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x17, + 0x58, 0x17, 0x2d, 0x0a, 0x00, 0x00, +} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker.pb.validate.go new file mode 100644 index 000000000..c6fe858f3 --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker.pb.validate.go @@ -0,0 +1,1017 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _sagemaker_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ContinuousParameterRange with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ContinuousParameterRange) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for MaxValue + + // no validation rules for MinValue + + // no validation rules for ScalingType + + return nil +} + +// ContinuousParameterRangeValidationError is the validation error returned by +// ContinuousParameterRange.Validate if the designated constraints aren't met. +type ContinuousParameterRangeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ContinuousParameterRangeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ContinuousParameterRangeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ContinuousParameterRangeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ContinuousParameterRangeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ContinuousParameterRangeValidationError) ErrorName() string { + return "ContinuousParameterRangeValidationError" +} + +// Error satisfies the builtin error interface +func (e ContinuousParameterRangeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sContinuousParameterRange.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ContinuousParameterRangeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ContinuousParameterRangeValidationError{} + +// Validate checks the field values on IntegerParameterRange with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *IntegerParameterRange) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for MaxValue + + // no validation rules for MinValue + + // no validation rules for ScalingType + + return nil +} + +// IntegerParameterRangeValidationError is the validation error returned by +// IntegerParameterRange.Validate if the designated constraints aren't met. +type IntegerParameterRangeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IntegerParameterRangeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IntegerParameterRangeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IntegerParameterRangeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IntegerParameterRangeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IntegerParameterRangeValidationError) ErrorName() string { + return "IntegerParameterRangeValidationError" +} + +// Error satisfies the builtin error interface +func (e IntegerParameterRangeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIntegerParameterRange.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IntegerParameterRangeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IntegerParameterRangeValidationError{} + +// Validate checks the field values on CategoricalParameterRange with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CategoricalParameterRange) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + return nil +} + +// CategoricalParameterRangeValidationError is the validation error returned by +// CategoricalParameterRange.Validate if the designated constraints aren't met. +type CategoricalParameterRangeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CategoricalParameterRangeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CategoricalParameterRangeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CategoricalParameterRangeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CategoricalParameterRangeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CategoricalParameterRangeValidationError) ErrorName() string { + return "CategoricalParameterRangeValidationError" +} + +// Error satisfies the builtin error interface +func (e CategoricalParameterRangeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCategoricalParameterRange.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CategoricalParameterRangeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CategoricalParameterRangeValidationError{} + +// Validate checks the field values on ParameterRanges with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ParameterRanges) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetContinuousParameterRanges() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangesValidationError{ + field: fmt.Sprintf("ContinuousParameterRanges[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetIntegerParameterRanges() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangesValidationError{ + field: fmt.Sprintf("IntegerParameterRanges[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetCategoricalParameterRanges() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangesValidationError{ + field: fmt.Sprintf("CategoricalParameterRanges[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ParameterRangesValidationError is the validation error returned by +// ParameterRanges.Validate if the designated constraints aren't met. +type ParameterRangesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParameterRangesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParameterRangesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParameterRangesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParameterRangesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParameterRangesValidationError) ErrorName() string { return "ParameterRangesValidationError" } + +// Error satisfies the builtin error interface +func (e ParameterRangesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParameterRanges.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParameterRangesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParameterRangesValidationError{} + +// Validate checks the field values on AlgorithmSpecification with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AlgorithmSpecification) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TrainingImage + + // no validation rules for TrainingInputMode + + // no validation rules for AlgorithmName + + for idx, item := range m.GetMetricDefinitions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AlgorithmSpecificationValidationError{ + field: fmt.Sprintf("MetricDefinitions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// AlgorithmSpecificationValidationError is the validation error returned by +// AlgorithmSpecification.Validate if the designated constraints aren't met. +type AlgorithmSpecificationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AlgorithmSpecificationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AlgorithmSpecificationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AlgorithmSpecificationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AlgorithmSpecificationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AlgorithmSpecificationValidationError) ErrorName() string { + return "AlgorithmSpecificationValidationError" +} + +// Error satisfies the builtin error interface +func (e AlgorithmSpecificationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAlgorithmSpecification.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AlgorithmSpecificationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AlgorithmSpecificationValidationError{} + +// Validate checks the field values on ResourceConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ResourceConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for InstanceType + + // no validation rules for InstanceCount + + // no validation rules for VolumeSizeInGB + + // no validation rules for VolumeKmsKeyId + + return nil +} + +// ResourceConfigValidationError is the validation error returned by +// ResourceConfig.Validate if the designated constraints aren't met. +type ResourceConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceConfigValidationError) ErrorName() string { return "ResourceConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ResourceConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResourceConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceConfigValidationError{} + +// Validate checks the field values on StoppingCondition with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *StoppingCondition) Validate() error { + if m == nil { + return nil + } + + // no validation rules for MaxRuntimeInSeconds + + // no validation rules for MaxWaitTimeInSeconds + + return nil +} + +// StoppingConditionValidationError is the validation error returned by +// StoppingCondition.Validate if the designated constraints aren't met. +type StoppingConditionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StoppingConditionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StoppingConditionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StoppingConditionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StoppingConditionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StoppingConditionValidationError) ErrorName() string { + return "StoppingConditionValidationError" +} + +// Error satisfies the builtin error interface +func (e StoppingConditionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sStoppingCondition.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StoppingConditionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StoppingConditionValidationError{} + +// Validate checks the field values on VpcConfig with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *VpcConfig) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// VpcConfigValidationError is the validation error returned by +// VpcConfig.Validate if the designated constraints aren't met. +type VpcConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e VpcConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e VpcConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e VpcConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e VpcConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e VpcConfigValidationError) ErrorName() string { return "VpcConfigValidationError" } + +// Error satisfies the builtin error interface +func (e VpcConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sVpcConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = VpcConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = VpcConfigValidationError{} + +// Validate checks the field values on SagemakerTrainingJob with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SagemakerTrainingJob) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Region + + // no validation rules for RoleArn + + if v, ok := interface{}(m.GetAlgorithmSpecification()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SagemakerTrainingJobValidationError{ + field: "AlgorithmSpecification", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetResourceConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SagemakerTrainingJobValidationError{ + field: "ResourceConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetStoppingCondition()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SagemakerTrainingJobValidationError{ + field: "StoppingCondition", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetVpcConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SagemakerTrainingJobValidationError{ + field: "VpcConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for EnableSpotTraining + + return nil +} + +// SagemakerTrainingJobValidationError is the validation error returned by +// SagemakerTrainingJob.Validate if the designated constraints aren't met. +type SagemakerTrainingJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SagemakerTrainingJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SagemakerTrainingJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SagemakerTrainingJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SagemakerTrainingJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SagemakerTrainingJobValidationError) ErrorName() string { + return "SagemakerTrainingJobValidationError" +} + +// Error satisfies the builtin error interface +func (e SagemakerTrainingJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSagemakerTrainingJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SagemakerTrainingJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SagemakerTrainingJobValidationError{} + +// Validate checks the field values on HPOJobObjective with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *HPOJobObjective) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Type + + // no validation rules for MetricName + + return nil +} + +// HPOJobObjectiveValidationError is the validation error returned by +// HPOJobObjective.Validate if the designated constraints aren't met. +type HPOJobObjectiveValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HPOJobObjectiveValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HPOJobObjectiveValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HPOJobObjectiveValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HPOJobObjectiveValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HPOJobObjectiveValidationError) ErrorName() string { return "HPOJobObjectiveValidationError" } + +// Error satisfies the builtin error interface +func (e HPOJobObjectiveValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHPOJobObjective.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HPOJobObjectiveValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HPOJobObjectiveValidationError{} + +// Validate checks the field values on SagemakerHPOJob with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SagemakerHPOJob) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Strategy + + if v, ok := interface{}(m.GetObjective()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SagemakerHPOJobValidationError{ + field: "Objective", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for MaxNumberOfTrainingJobs + + // no validation rules for MaxParallelTrainingJobs + + if v, ok := interface{}(m.GetParameterRanges()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SagemakerHPOJobValidationError{ + field: "ParameterRanges", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTrainingJob()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SagemakerHPOJobValidationError{ + field: "TrainingJob", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SagemakerHPOJobValidationError is the validation error returned by +// SagemakerHPOJob.Validate if the designated constraints aren't met. +type SagemakerHPOJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SagemakerHPOJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SagemakerHPOJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SagemakerHPOJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SagemakerHPOJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SagemakerHPOJobValidationError) ErrorName() string { return "SagemakerHPOJobValidationError" } + +// Error satisfies the builtin error interface +func (e SagemakerHPOJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSagemakerHPOJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SagemakerHPOJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SagemakerHPOJobValidationError{} + +// Validate checks the field values on AlgorithmSpecification_MetricDefinition +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *AlgorithmSpecification_MetricDefinition) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Regex + + return nil +} + +// AlgorithmSpecification_MetricDefinitionValidationError is the validation +// error returned by AlgorithmSpecification_MetricDefinition.Validate if the +// designated constraints aren't met. +type AlgorithmSpecification_MetricDefinitionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AlgorithmSpecification_MetricDefinitionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AlgorithmSpecification_MetricDefinitionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AlgorithmSpecification_MetricDefinitionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AlgorithmSpecification_MetricDefinitionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AlgorithmSpecification_MetricDefinitionValidationError) ErrorName() string { + return "AlgorithmSpecification_MetricDefinitionValidationError" +} + +// Error satisfies the builtin error interface +func (e AlgorithmSpecification_MetricDefinitionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAlgorithmSpecification_MetricDefinition.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AlgorithmSpecification_MetricDefinitionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AlgorithmSpecification_MetricDefinitionValidationError{} diff --git a/gen/pb-java/flyte/plugins/Sagemaker.java b/gen/pb-java/flyte/plugins/Sagemaker.java new file mode 100644 index 000000000..a0d5e2d52 --- /dev/null +++ b/gen/pb-java/flyte/plugins/Sagemaker.java @@ -0,0 +1,11686 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker.proto + +package flyte.plugins; + +public final class Sagemaker { + private Sagemaker() {} + 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 flyte.plugins.HyperparameterScalingType} + */ + public enum HyperparameterScalingType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * AUTO = 0; + */ + AUTO(0), + /** + * LINEAR = 1; + */ + LINEAR(1), + /** + * LOGARITHMIC = 2; + */ + LOGARITHMIC(2), + /** + * REVERSELOGARITHMIC = 3; + */ + REVERSELOGARITHMIC(3), + UNRECOGNIZED(-1), + ; + + /** + * AUTO = 0; + */ + public static final int AUTO_VALUE = 0; + /** + * LINEAR = 1; + */ + public static final int LINEAR_VALUE = 1; + /** + * LOGARITHMIC = 2; + */ + public static final int LOGARITHMIC_VALUE = 2; + /** + * REVERSELOGARITHMIC = 3; + */ + public static final int REVERSELOGARITHMIC_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HyperparameterScalingType valueOf(int value) { + return forNumber(value); + } + + public static HyperparameterScalingType forNumber(int value) { + switch (value) { + case 0: return AUTO; + case 1: return LINEAR; + case 2: return LOGARITHMIC; + case 3: return REVERSELOGARITHMIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HyperparameterScalingType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HyperparameterScalingType findValueByNumber(int number) { + return HyperparameterScalingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyte.plugins.Sagemaker.getDescriptor().getEnumTypes().get(0); + } + + private static final HyperparameterScalingType[] VALUES = values(); + + public static HyperparameterScalingType 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 HyperparameterScalingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyte.plugins.HyperparameterScalingType) + } + + /** + * Protobuf enum {@code flyte.plugins.HPOJobObjectiveType} + */ + public enum HPOJobObjectiveType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MINIMIZE = 0; + */ + MINIMIZE(0), + /** + * MAXIMIZE = 1; + */ + MAXIMIZE(1), + UNRECOGNIZED(-1), + ; + + /** + * MINIMIZE = 0; + */ + public static final int MINIMIZE_VALUE = 0; + /** + * MAXIMIZE = 1; + */ + public static final int MAXIMIZE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HPOJobObjectiveType valueOf(int value) { + return forNumber(value); + } + + public static HPOJobObjectiveType forNumber(int value) { + switch (value) { + case 0: return MINIMIZE; + case 1: return MAXIMIZE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HPOJobObjectiveType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HPOJobObjectiveType findValueByNumber(int number) { + return HPOJobObjectiveType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyte.plugins.Sagemaker.getDescriptor().getEnumTypes().get(1); + } + + private static final HPOJobObjectiveType[] VALUES = values(); + + public static HPOJobObjectiveType 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 HPOJobObjectiveType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyte.plugins.HPOJobObjectiveType) + } + + public interface ContinuousParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyte.plugins.ContinuousParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * string Name = 1; + */ + java.lang.String getName(); + /** + * string Name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * double MaxValue = 2; + */ + double getMaxValue(); + + /** + * double MinValue = 3; + */ + double getMinValue(); + + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + int getScalingTypeValue(); + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + flyte.plugins.Sagemaker.HyperparameterScalingType getScalingType(); + } + /** + * Protobuf type {@code flyte.plugins.ContinuousParameterRange} + */ + public static final class ContinuousParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyte.plugins.ContinuousParameterRange) + ContinuousParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContinuousParameterRange.newBuilder() to construct. + private ContinuousParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContinuousParameterRange() { + name_ = ""; + scalingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContinuousParameterRange( + 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 17: { + + maxValue_ = input.readDouble(); + break; + } + case 25: { + + minValue_ = input.readDouble(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + scalingType_ = rawValue; + 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 flyte.plugins.Sagemaker.internal_static_flyte_plugins_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ContinuousParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.ContinuousParameterRange.class, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + 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 MAXVALUE_FIELD_NUMBER = 2; + private double maxValue_; + /** + * double MaxValue = 2; + */ + public double getMaxValue() { + return maxValue_; + } + + public static final int MINVALUE_FIELD_NUMBER = 3; + private double minValue_; + /** + * double MinValue = 3; + */ + public double getMinValue() { + return minValue_; + } + + public static final int SCALINGTYPE_FIELD_NUMBER = 4; + private int scalingType_; + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public flyte.plugins.Sagemaker.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyte.plugins.Sagemaker.HyperparameterScalingType result = flyte.plugins.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyte.plugins.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (maxValue_ != 0D) { + output.writeDouble(2, maxValue_); + } + if (minValue_ != 0D) { + output.writeDouble(3, minValue_); + } + if (scalingType_ != flyte.plugins.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { + output.writeEnum(4, scalingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (maxValue_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, maxValue_); + } + if (minValue_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, minValue_); + } + if (scalingType_ != flyte.plugins.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, scalingType_); + } + 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 flyte.plugins.Sagemaker.ContinuousParameterRange)) { + return super.equals(obj); + } + flyte.plugins.Sagemaker.ContinuousParameterRange other = (flyte.plugins.Sagemaker.ContinuousParameterRange) obj; + + if (!getName() + .equals(other.getName())) return false; + if (java.lang.Double.doubleToLongBits(getMaxValue()) + != java.lang.Double.doubleToLongBits( + other.getMaxValue())) return false; + if (java.lang.Double.doubleToLongBits(getMinValue()) + != java.lang.Double.doubleToLongBits( + other.getMinValue())) return false; + if (scalingType_ != other.scalingType_) 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) + MAXVALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaxValue())); + hash = (37 * hash) + MINVALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinValue())); + hash = (37 * hash) + SCALINGTYPE_FIELD_NUMBER; + hash = (53 * hash) + scalingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.ContinuousParameterRange 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 flyte.plugins.Sagemaker.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.ContinuousParameterRange 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 flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.ContinuousParameterRange 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(flyte.plugins.Sagemaker.ContinuousParameterRange 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 flyte.plugins.ContinuousParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyte.plugins.ContinuousParameterRange) + flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ContinuousParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.ContinuousParameterRange.class, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder.class); + } + + // Construct using flyte.plugins.Sagemaker.ContinuousParameterRange.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_ = ""; + + maxValue_ = 0D; + + minValue_ = 0D; + + scalingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.ContinuousParameterRange getDefaultInstanceForType() { + return flyte.plugins.Sagemaker.ContinuousParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyte.plugins.Sagemaker.ContinuousParameterRange build() { + flyte.plugins.Sagemaker.ContinuousParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.ContinuousParameterRange buildPartial() { + flyte.plugins.Sagemaker.ContinuousParameterRange result = new flyte.plugins.Sagemaker.ContinuousParameterRange(this); + result.name_ = name_; + result.maxValue_ = maxValue_; + result.minValue_ = minValue_; + result.scalingType_ = scalingType_; + 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 flyte.plugins.Sagemaker.ContinuousParameterRange) { + return mergeFrom((flyte.plugins.Sagemaker.ContinuousParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyte.plugins.Sagemaker.ContinuousParameterRange other) { + if (other == flyte.plugins.Sagemaker.ContinuousParameterRange.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getMaxValue() != 0D) { + setMaxValue(other.getMaxValue()); + } + if (other.getMinValue() != 0D) { + setMinValue(other.getMinValue()); + } + if (other.scalingType_ != 0) { + setScalingTypeValue(other.getScalingTypeValue()); + } + 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 { + flyte.plugins.Sagemaker.ContinuousParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyte.plugins.Sagemaker.ContinuousParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string Name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string Name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private double maxValue_ ; + /** + * double MaxValue = 2; + */ + public double getMaxValue() { + return maxValue_; + } + /** + * double MaxValue = 2; + */ + public Builder setMaxValue(double value) { + + maxValue_ = value; + onChanged(); + return this; + } + /** + * double MaxValue = 2; + */ + public Builder clearMaxValue() { + + maxValue_ = 0D; + onChanged(); + return this; + } + + private double minValue_ ; + /** + * double MinValue = 3; + */ + public double getMinValue() { + return minValue_; + } + /** + * double MinValue = 3; + */ + public Builder setMinValue(double value) { + + minValue_ = value; + onChanged(); + return this; + } + /** + * double MinValue = 3; + */ + public Builder clearMinValue() { + + minValue_ = 0D; + onChanged(); + return this; + } + + private int scalingType_ = 0; + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public Builder setScalingTypeValue(int value) { + scalingType_ = value; + onChanged(); + return this; + } + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public flyte.plugins.Sagemaker.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyte.plugins.Sagemaker.HyperparameterScalingType result = flyte.plugins.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyte.plugins.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; + } + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public Builder setScalingType(flyte.plugins.Sagemaker.HyperparameterScalingType value) { + if (value == null) { + throw new NullPointerException(); + } + + scalingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public Builder clearScalingType() { + + scalingType_ = 0; + 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:flyte.plugins.ContinuousParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyte.plugins.ContinuousParameterRange) + private static final flyte.plugins.Sagemaker.ContinuousParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.ContinuousParameterRange(); + } + + public static flyte.plugins.Sagemaker.ContinuousParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContinuousParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContinuousParameterRange(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 flyte.plugins.Sagemaker.ContinuousParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IntegerParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyte.plugins.IntegerParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * string Name = 1; + */ + java.lang.String getName(); + /** + * string Name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * float MaxValue = 2; + */ + float getMaxValue(); + + /** + * float MinValue = 3; + */ + float getMinValue(); + + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + int getScalingTypeValue(); + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + flyte.plugins.Sagemaker.HyperparameterScalingType getScalingType(); + } + /** + * Protobuf type {@code flyte.plugins.IntegerParameterRange} + */ + public static final class IntegerParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyte.plugins.IntegerParameterRange) + IntegerParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntegerParameterRange.newBuilder() to construct. + private IntegerParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IntegerParameterRange() { + name_ = ""; + scalingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IntegerParameterRange( + 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 21: { + + maxValue_ = input.readFloat(); + break; + } + case 29: { + + minValue_ = input.readFloat(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + scalingType_ = rawValue; + 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 flyte.plugins.Sagemaker.internal_static_flyte_plugins_IntegerParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_IntegerParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.IntegerParameterRange.class, flyte.plugins.Sagemaker.IntegerParameterRange.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + 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 MAXVALUE_FIELD_NUMBER = 2; + private float maxValue_; + /** + * float MaxValue = 2; + */ + public float getMaxValue() { + return maxValue_; + } + + public static final int MINVALUE_FIELD_NUMBER = 3; + private float minValue_; + /** + * float MinValue = 3; + */ + public float getMinValue() { + return minValue_; + } + + public static final int SCALINGTYPE_FIELD_NUMBER = 4; + private int scalingType_; + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public flyte.plugins.Sagemaker.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyte.plugins.Sagemaker.HyperparameterScalingType result = flyte.plugins.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyte.plugins.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (maxValue_ != 0F) { + output.writeFloat(2, maxValue_); + } + if (minValue_ != 0F) { + output.writeFloat(3, minValue_); + } + if (scalingType_ != flyte.plugins.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { + output.writeEnum(4, scalingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (maxValue_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, maxValue_); + } + if (minValue_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, minValue_); + } + if (scalingType_ != flyte.plugins.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, scalingType_); + } + 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 flyte.plugins.Sagemaker.IntegerParameterRange)) { + return super.equals(obj); + } + flyte.plugins.Sagemaker.IntegerParameterRange other = (flyte.plugins.Sagemaker.IntegerParameterRange) obj; + + if (!getName() + .equals(other.getName())) return false; + if (java.lang.Float.floatToIntBits(getMaxValue()) + != java.lang.Float.floatToIntBits( + other.getMaxValue())) return false; + if (java.lang.Float.floatToIntBits(getMinValue()) + != java.lang.Float.floatToIntBits( + other.getMinValue())) return false; + if (scalingType_ != other.scalingType_) 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) + MAXVALUE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMaxValue()); + hash = (37 * hash) + MINVALUE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMinValue()); + hash = (37 * hash) + SCALINGTYPE_FIELD_NUMBER; + hash = (53 * hash) + scalingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.IntegerParameterRange 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 flyte.plugins.Sagemaker.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.IntegerParameterRange 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 flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.IntegerParameterRange 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(flyte.plugins.Sagemaker.IntegerParameterRange 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 flyte.plugins.IntegerParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyte.plugins.IntegerParameterRange) + flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_IntegerParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_IntegerParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.IntegerParameterRange.class, flyte.plugins.Sagemaker.IntegerParameterRange.Builder.class); + } + + // Construct using flyte.plugins.Sagemaker.IntegerParameterRange.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_ = ""; + + maxValue_ = 0F; + + minValue_ = 0F; + + scalingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_IntegerParameterRange_descriptor; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.IntegerParameterRange getDefaultInstanceForType() { + return flyte.plugins.Sagemaker.IntegerParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyte.plugins.Sagemaker.IntegerParameterRange build() { + flyte.plugins.Sagemaker.IntegerParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.IntegerParameterRange buildPartial() { + flyte.plugins.Sagemaker.IntegerParameterRange result = new flyte.plugins.Sagemaker.IntegerParameterRange(this); + result.name_ = name_; + result.maxValue_ = maxValue_; + result.minValue_ = minValue_; + result.scalingType_ = scalingType_; + 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 flyte.plugins.Sagemaker.IntegerParameterRange) { + return mergeFrom((flyte.plugins.Sagemaker.IntegerParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyte.plugins.Sagemaker.IntegerParameterRange other) { + if (other == flyte.plugins.Sagemaker.IntegerParameterRange.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getMaxValue() != 0F) { + setMaxValue(other.getMaxValue()); + } + if (other.getMinValue() != 0F) { + setMinValue(other.getMinValue()); + } + if (other.scalingType_ != 0) { + setScalingTypeValue(other.getScalingTypeValue()); + } + 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 { + flyte.plugins.Sagemaker.IntegerParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyte.plugins.Sagemaker.IntegerParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string Name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string Name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private float maxValue_ ; + /** + * float MaxValue = 2; + */ + public float getMaxValue() { + return maxValue_; + } + /** + * float MaxValue = 2; + */ + public Builder setMaxValue(float value) { + + maxValue_ = value; + onChanged(); + return this; + } + /** + * float MaxValue = 2; + */ + public Builder clearMaxValue() { + + maxValue_ = 0F; + onChanged(); + return this; + } + + private float minValue_ ; + /** + * float MinValue = 3; + */ + public float getMinValue() { + return minValue_; + } + /** + * float MinValue = 3; + */ + public Builder setMinValue(float value) { + + minValue_ = value; + onChanged(); + return this; + } + /** + * float MinValue = 3; + */ + public Builder clearMinValue() { + + minValue_ = 0F; + onChanged(); + return this; + } + + private int scalingType_ = 0; + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public Builder setScalingTypeValue(int value) { + scalingType_ = value; + onChanged(); + return this; + } + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public flyte.plugins.Sagemaker.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyte.plugins.Sagemaker.HyperparameterScalingType result = flyte.plugins.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyte.plugins.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; + } + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public Builder setScalingType(flyte.plugins.Sagemaker.HyperparameterScalingType value) { + if (value == null) { + throw new NullPointerException(); + } + + scalingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + */ + public Builder clearScalingType() { + + scalingType_ = 0; + 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:flyte.plugins.IntegerParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyte.plugins.IntegerParameterRange) + private static final flyte.plugins.Sagemaker.IntegerParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.IntegerParameterRange(); + } + + public static flyte.plugins.Sagemaker.IntegerParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntegerParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IntegerParameterRange(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 flyte.plugins.Sagemaker.IntegerParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CategoricalParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyte.plugins.CategoricalParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * string Name = 1; + */ + java.lang.String getName(); + /** + * string Name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * repeated string Values = 2; + */ + java.util.List + getValuesList(); + /** + * repeated string Values = 2; + */ + int getValuesCount(); + /** + * repeated string Values = 2; + */ + java.lang.String getValues(int index); + /** + * repeated string Values = 2; + */ + com.google.protobuf.ByteString + getValuesBytes(int index); + } + /** + * Protobuf type {@code flyte.plugins.CategoricalParameterRange} + */ + public static final class CategoricalParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyte.plugins.CategoricalParameterRange) + CategoricalParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CategoricalParameterRange.newBuilder() to construct. + private CategoricalParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CategoricalParameterRange() { + name_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CategoricalParameterRange( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + values_.add(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_ & 0x00000002) != 0)) { + values_ = values_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_CategoricalParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.CategoricalParameterRange.class, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + 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 VALUES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList values_; + /** + * repeated string Values = 2; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_; + } + /** + * repeated string Values = 2; + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string Values = 2; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string Values = 2; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, values_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + 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 flyte.plugins.Sagemaker.CategoricalParameterRange)) { + return super.equals(obj); + } + flyte.plugins.Sagemaker.CategoricalParameterRange other = (flyte.plugins.Sagemaker.CategoricalParameterRange) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getValuesList() + .equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.CategoricalParameterRange 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 flyte.plugins.Sagemaker.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.CategoricalParameterRange 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 flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.CategoricalParameterRange 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(flyte.plugins.Sagemaker.CategoricalParameterRange 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 flyte.plugins.CategoricalParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyte.plugins.CategoricalParameterRange) + flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_CategoricalParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.CategoricalParameterRange.class, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder.class); + } + + // Construct using flyte.plugins.Sagemaker.CategoricalParameterRange.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_ = ""; + + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.CategoricalParameterRange getDefaultInstanceForType() { + return flyte.plugins.Sagemaker.CategoricalParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyte.plugins.Sagemaker.CategoricalParameterRange build() { + flyte.plugins.Sagemaker.CategoricalParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.CategoricalParameterRange buildPartial() { + flyte.plugins.Sagemaker.CategoricalParameterRange result = new flyte.plugins.Sagemaker.CategoricalParameterRange(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + if (((bitField0_ & 0x00000002) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.values_ = values_; + result.bitField0_ = to_bitField0_; + 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 flyte.plugins.Sagemaker.CategoricalParameterRange) { + return mergeFrom((flyte.plugins.Sagemaker.CategoricalParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyte.plugins.Sagemaker.CategoricalParameterRange other) { + if (other == flyte.plugins.Sagemaker.CategoricalParameterRange.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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 { + flyte.plugins.Sagemaker.CategoricalParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyte.plugins.Sagemaker.CategoricalParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string Name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string Name = 1; + */ + 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.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated string Values = 2; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * repeated string Values = 2; + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string Values = 2; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string Values = 2; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * repeated string Values = 2; + */ + public Builder setValues( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string Values = 2; + */ + public Builder addValues( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * repeated string Values = 2; + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + return this; + } + /** + * repeated string Values = 2; + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * repeated string Values = 2; + */ + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(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:flyte.plugins.CategoricalParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyte.plugins.CategoricalParameterRange) + private static final flyte.plugins.Sagemaker.CategoricalParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.CategoricalParameterRange(); + } + + public static flyte.plugins.Sagemaker.CategoricalParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CategoricalParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CategoricalParameterRange(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 flyte.plugins.Sagemaker.CategoricalParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterRangesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyte.plugins.ParameterRanges) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + java.util.List + getContinuousParameterRangesList(); + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + flyte.plugins.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index); + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + int getContinuousParameterRangesCount(); + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + java.util.List + getContinuousParameterRangesOrBuilderList(); + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( + int index); + + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + java.util.List + getIntegerParameterRangesList(); + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + flyte.plugins.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index); + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + int getIntegerParameterRangesCount(); + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + java.util.List + getIntegerParameterRangesOrBuilderList(); + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( + int index); + + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + java.util.List + getCategoricalParameterRangesList(); + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + flyte.plugins.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index); + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + int getCategoricalParameterRangesCount(); + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + java.util.List + getCategoricalParameterRangesOrBuilderList(); + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( + int index); + } + /** + * Protobuf type {@code flyte.plugins.ParameterRanges} + */ + public static final class ParameterRanges extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyte.plugins.ParameterRanges) + ParameterRangesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterRanges.newBuilder() to construct. + private ParameterRanges(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterRanges() { + continuousParameterRanges_ = java.util.Collections.emptyList(); + integerParameterRanges_ = java.util.Collections.emptyList(); + categoricalParameterRanges_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterRanges( + 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)) { + continuousParameterRanges_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + continuousParameterRanges_.add( + input.readMessage(flyte.plugins.Sagemaker.ContinuousParameterRange.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + integerParameterRanges_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + integerParameterRanges_.add( + input.readMessage(flyte.plugins.Sagemaker.IntegerParameterRange.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + categoricalParameterRanges_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + categoricalParameterRanges_.add( + input.readMessage(flyte.plugins.Sagemaker.CategoricalParameterRange.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)) { + continuousParameterRanges_ = java.util.Collections.unmodifiableList(continuousParameterRanges_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + integerParameterRanges_ = java.util.Collections.unmodifiableList(integerParameterRanges_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + categoricalParameterRanges_ = java.util.Collections.unmodifiableList(categoricalParameterRanges_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ParameterRanges_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ParameterRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.ParameterRanges.class, flyte.plugins.Sagemaker.ParameterRanges.Builder.class); + } + + public static final int CONTINUOUSPARAMETERRANGES_FIELD_NUMBER = 1; + private java.util.List continuousParameterRanges_; + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public java.util.List getContinuousParameterRangesList() { + return continuousParameterRanges_; + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public java.util.List + getContinuousParameterRangesOrBuilderList() { + return continuousParameterRanges_; + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public int getContinuousParameterRangesCount() { + return continuousParameterRanges_.size(); + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public flyte.plugins.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index) { + return continuousParameterRanges_.get(index); + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( + int index) { + return continuousParameterRanges_.get(index); + } + + public static final int INTEGERPARAMETERRANGES_FIELD_NUMBER = 2; + private java.util.List integerParameterRanges_; + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public java.util.List getIntegerParameterRangesList() { + return integerParameterRanges_; + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public java.util.List + getIntegerParameterRangesOrBuilderList() { + return integerParameterRanges_; + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public int getIntegerParameterRangesCount() { + return integerParameterRanges_.size(); + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public flyte.plugins.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index) { + return integerParameterRanges_.get(index); + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( + int index) { + return integerParameterRanges_.get(index); + } + + public static final int CATEGORICALPARAMETERRANGES_FIELD_NUMBER = 3; + private java.util.List categoricalParameterRanges_; + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public java.util.List getCategoricalParameterRangesList() { + return categoricalParameterRanges_; + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public java.util.List + getCategoricalParameterRangesOrBuilderList() { + return categoricalParameterRanges_; + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public int getCategoricalParameterRangesCount() { + return categoricalParameterRanges_.size(); + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public flyte.plugins.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index) { + return categoricalParameterRanges_.get(index); + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( + int index) { + return categoricalParameterRanges_.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 < continuousParameterRanges_.size(); i++) { + output.writeMessage(1, continuousParameterRanges_.get(i)); + } + for (int i = 0; i < integerParameterRanges_.size(); i++) { + output.writeMessage(2, integerParameterRanges_.get(i)); + } + for (int i = 0; i < categoricalParameterRanges_.size(); i++) { + output.writeMessage(3, categoricalParameterRanges_.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 < continuousParameterRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, continuousParameterRanges_.get(i)); + } + for (int i = 0; i < integerParameterRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, integerParameterRanges_.get(i)); + } + for (int i = 0; i < categoricalParameterRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, categoricalParameterRanges_.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 flyte.plugins.Sagemaker.ParameterRanges)) { + return super.equals(obj); + } + flyte.plugins.Sagemaker.ParameterRanges other = (flyte.plugins.Sagemaker.ParameterRanges) obj; + + if (!getContinuousParameterRangesList() + .equals(other.getContinuousParameterRangesList())) return false; + if (!getIntegerParameterRangesList() + .equals(other.getIntegerParameterRangesList())) return false; + if (!getCategoricalParameterRangesList() + .equals(other.getCategoricalParameterRangesList())) 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 (getContinuousParameterRangesCount() > 0) { + hash = (37 * hash) + CONTINUOUSPARAMETERRANGES_FIELD_NUMBER; + hash = (53 * hash) + getContinuousParameterRangesList().hashCode(); + } + if (getIntegerParameterRangesCount() > 0) { + hash = (37 * hash) + INTEGERPARAMETERRANGES_FIELD_NUMBER; + hash = (53 * hash) + getIntegerParameterRangesList().hashCode(); + } + if (getCategoricalParameterRangesCount() > 0) { + hash = (37 * hash) + CATEGORICALPARAMETERRANGES_FIELD_NUMBER; + hash = (53 * hash) + getCategoricalParameterRangesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyte.plugins.Sagemaker.ParameterRanges parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.ParameterRanges parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.ParameterRanges parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.ParameterRanges parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.ParameterRanges parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.ParameterRanges parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.ParameterRanges parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.ParameterRanges 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 flyte.plugins.Sagemaker.ParameterRanges parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.ParameterRanges 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 flyte.plugins.Sagemaker.ParameterRanges parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.ParameterRanges 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(flyte.plugins.Sagemaker.ParameterRanges 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 flyte.plugins.ParameterRanges} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyte.plugins.ParameterRanges) + flyte.plugins.Sagemaker.ParameterRangesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ParameterRanges_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ParameterRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.ParameterRanges.class, flyte.plugins.Sagemaker.ParameterRanges.Builder.class); + } + + // Construct using flyte.plugins.Sagemaker.ParameterRanges.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getContinuousParameterRangesFieldBuilder(); + getIntegerParameterRangesFieldBuilder(); + getCategoricalParameterRangesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (continuousParameterRangesBuilder_ == null) { + continuousParameterRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + continuousParameterRangesBuilder_.clear(); + } + if (integerParameterRangesBuilder_ == null) { + integerParameterRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + integerParameterRangesBuilder_.clear(); + } + if (categoricalParameterRangesBuilder_ == null) { + categoricalParameterRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + categoricalParameterRangesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ParameterRanges_descriptor; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.ParameterRanges getDefaultInstanceForType() { + return flyte.plugins.Sagemaker.ParameterRanges.getDefaultInstance(); + } + + @java.lang.Override + public flyte.plugins.Sagemaker.ParameterRanges build() { + flyte.plugins.Sagemaker.ParameterRanges result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.ParameterRanges buildPartial() { + flyte.plugins.Sagemaker.ParameterRanges result = new flyte.plugins.Sagemaker.ParameterRanges(this); + int from_bitField0_ = bitField0_; + if (continuousParameterRangesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + continuousParameterRanges_ = java.util.Collections.unmodifiableList(continuousParameterRanges_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.continuousParameterRanges_ = continuousParameterRanges_; + } else { + result.continuousParameterRanges_ = continuousParameterRangesBuilder_.build(); + } + if (integerParameterRangesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + integerParameterRanges_ = java.util.Collections.unmodifiableList(integerParameterRanges_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.integerParameterRanges_ = integerParameterRanges_; + } else { + result.integerParameterRanges_ = integerParameterRangesBuilder_.build(); + } + if (categoricalParameterRangesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + categoricalParameterRanges_ = java.util.Collections.unmodifiableList(categoricalParameterRanges_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.categoricalParameterRanges_ = categoricalParameterRanges_; + } else { + result.categoricalParameterRanges_ = categoricalParameterRangesBuilder_.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 flyte.plugins.Sagemaker.ParameterRanges) { + return mergeFrom((flyte.plugins.Sagemaker.ParameterRanges)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyte.plugins.Sagemaker.ParameterRanges other) { + if (other == flyte.plugins.Sagemaker.ParameterRanges.getDefaultInstance()) return this; + if (continuousParameterRangesBuilder_ == null) { + if (!other.continuousParameterRanges_.isEmpty()) { + if (continuousParameterRanges_.isEmpty()) { + continuousParameterRanges_ = other.continuousParameterRanges_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContinuousParameterRangesIsMutable(); + continuousParameterRanges_.addAll(other.continuousParameterRanges_); + } + onChanged(); + } + } else { + if (!other.continuousParameterRanges_.isEmpty()) { + if (continuousParameterRangesBuilder_.isEmpty()) { + continuousParameterRangesBuilder_.dispose(); + continuousParameterRangesBuilder_ = null; + continuousParameterRanges_ = other.continuousParameterRanges_; + bitField0_ = (bitField0_ & ~0x00000001); + continuousParameterRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getContinuousParameterRangesFieldBuilder() : null; + } else { + continuousParameterRangesBuilder_.addAllMessages(other.continuousParameterRanges_); + } + } + } + if (integerParameterRangesBuilder_ == null) { + if (!other.integerParameterRanges_.isEmpty()) { + if (integerParameterRanges_.isEmpty()) { + integerParameterRanges_ = other.integerParameterRanges_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIntegerParameterRangesIsMutable(); + integerParameterRanges_.addAll(other.integerParameterRanges_); + } + onChanged(); + } + } else { + if (!other.integerParameterRanges_.isEmpty()) { + if (integerParameterRangesBuilder_.isEmpty()) { + integerParameterRangesBuilder_.dispose(); + integerParameterRangesBuilder_ = null; + integerParameterRanges_ = other.integerParameterRanges_; + bitField0_ = (bitField0_ & ~0x00000002); + integerParameterRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIntegerParameterRangesFieldBuilder() : null; + } else { + integerParameterRangesBuilder_.addAllMessages(other.integerParameterRanges_); + } + } + } + if (categoricalParameterRangesBuilder_ == null) { + if (!other.categoricalParameterRanges_.isEmpty()) { + if (categoricalParameterRanges_.isEmpty()) { + categoricalParameterRanges_ = other.categoricalParameterRanges_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureCategoricalParameterRangesIsMutable(); + categoricalParameterRanges_.addAll(other.categoricalParameterRanges_); + } + onChanged(); + } + } else { + if (!other.categoricalParameterRanges_.isEmpty()) { + if (categoricalParameterRangesBuilder_.isEmpty()) { + categoricalParameterRangesBuilder_.dispose(); + categoricalParameterRangesBuilder_ = null; + categoricalParameterRanges_ = other.categoricalParameterRanges_; + bitField0_ = (bitField0_ & ~0x00000004); + categoricalParameterRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCategoricalParameterRangesFieldBuilder() : null; + } else { + categoricalParameterRangesBuilder_.addAllMessages(other.categoricalParameterRanges_); + } + } + } + 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 { + flyte.plugins.Sagemaker.ParameterRanges parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyte.plugins.Sagemaker.ParameterRanges) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List continuousParameterRanges_ = + java.util.Collections.emptyList(); + private void ensureContinuousParameterRangesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + continuousParameterRanges_ = new java.util.ArrayList(continuousParameterRanges_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyte.plugins.Sagemaker.ContinuousParameterRange, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder, flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder> continuousParameterRangesBuilder_; + + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public java.util.List getContinuousParameterRangesList() { + if (continuousParameterRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(continuousParameterRanges_); + } else { + return continuousParameterRangesBuilder_.getMessageList(); + } + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public int getContinuousParameterRangesCount() { + if (continuousParameterRangesBuilder_ == null) { + return continuousParameterRanges_.size(); + } else { + return continuousParameterRangesBuilder_.getCount(); + } + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public flyte.plugins.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index) { + if (continuousParameterRangesBuilder_ == null) { + return continuousParameterRanges_.get(index); + } else { + return continuousParameterRangesBuilder_.getMessage(index); + } + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public Builder setContinuousParameterRanges( + int index, flyte.plugins.Sagemaker.ContinuousParameterRange value) { + if (continuousParameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContinuousParameterRangesIsMutable(); + continuousParameterRanges_.set(index, value); + onChanged(); + } else { + continuousParameterRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public Builder setContinuousParameterRanges( + int index, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder builderForValue) { + if (continuousParameterRangesBuilder_ == null) { + ensureContinuousParameterRangesIsMutable(); + continuousParameterRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + continuousParameterRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public Builder addContinuousParameterRanges(flyte.plugins.Sagemaker.ContinuousParameterRange value) { + if (continuousParameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContinuousParameterRangesIsMutable(); + continuousParameterRanges_.add(value); + onChanged(); + } else { + continuousParameterRangesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public Builder addContinuousParameterRanges( + int index, flyte.plugins.Sagemaker.ContinuousParameterRange value) { + if (continuousParameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContinuousParameterRangesIsMutable(); + continuousParameterRanges_.add(index, value); + onChanged(); + } else { + continuousParameterRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public Builder addContinuousParameterRanges( + flyte.plugins.Sagemaker.ContinuousParameterRange.Builder builderForValue) { + if (continuousParameterRangesBuilder_ == null) { + ensureContinuousParameterRangesIsMutable(); + continuousParameterRanges_.add(builderForValue.build()); + onChanged(); + } else { + continuousParameterRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public Builder addContinuousParameterRanges( + int index, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder builderForValue) { + if (continuousParameterRangesBuilder_ == null) { + ensureContinuousParameterRangesIsMutable(); + continuousParameterRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + continuousParameterRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public Builder addAllContinuousParameterRanges( + java.lang.Iterable values) { + if (continuousParameterRangesBuilder_ == null) { + ensureContinuousParameterRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, continuousParameterRanges_); + onChanged(); + } else { + continuousParameterRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public Builder clearContinuousParameterRanges() { + if (continuousParameterRangesBuilder_ == null) { + continuousParameterRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + continuousParameterRangesBuilder_.clear(); + } + return this; + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public Builder removeContinuousParameterRanges(int index) { + if (continuousParameterRangesBuilder_ == null) { + ensureContinuousParameterRangesIsMutable(); + continuousParameterRanges_.remove(index); + onChanged(); + } else { + continuousParameterRangesBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public flyte.plugins.Sagemaker.ContinuousParameterRange.Builder getContinuousParameterRangesBuilder( + int index) { + return getContinuousParameterRangesFieldBuilder().getBuilder(index); + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( + int index) { + if (continuousParameterRangesBuilder_ == null) { + return continuousParameterRanges_.get(index); } else { + return continuousParameterRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public java.util.List + getContinuousParameterRangesOrBuilderList() { + if (continuousParameterRangesBuilder_ != null) { + return continuousParameterRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(continuousParameterRanges_); + } + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public flyte.plugins.Sagemaker.ContinuousParameterRange.Builder addContinuousParameterRangesBuilder() { + return getContinuousParameterRangesFieldBuilder().addBuilder( + flyte.plugins.Sagemaker.ContinuousParameterRange.getDefaultInstance()); + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public flyte.plugins.Sagemaker.ContinuousParameterRange.Builder addContinuousParameterRangesBuilder( + int index) { + return getContinuousParameterRangesFieldBuilder().addBuilder( + index, flyte.plugins.Sagemaker.ContinuousParameterRange.getDefaultInstance()); + } + /** + * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + */ + public java.util.List + getContinuousParameterRangesBuilderList() { + return getContinuousParameterRangesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyte.plugins.Sagemaker.ContinuousParameterRange, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder, flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder> + getContinuousParameterRangesFieldBuilder() { + if (continuousParameterRangesBuilder_ == null) { + continuousParameterRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyte.plugins.Sagemaker.ContinuousParameterRange, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder, flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder>( + continuousParameterRanges_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + continuousParameterRanges_ = null; + } + return continuousParameterRangesBuilder_; + } + + private java.util.List integerParameterRanges_ = + java.util.Collections.emptyList(); + private void ensureIntegerParameterRangesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + integerParameterRanges_ = new java.util.ArrayList(integerParameterRanges_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyte.plugins.Sagemaker.IntegerParameterRange, flyte.plugins.Sagemaker.IntegerParameterRange.Builder, flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder> integerParameterRangesBuilder_; + + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public java.util.List getIntegerParameterRangesList() { + if (integerParameterRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(integerParameterRanges_); + } else { + return integerParameterRangesBuilder_.getMessageList(); + } + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public int getIntegerParameterRangesCount() { + if (integerParameterRangesBuilder_ == null) { + return integerParameterRanges_.size(); + } else { + return integerParameterRangesBuilder_.getCount(); + } + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public flyte.plugins.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index) { + if (integerParameterRangesBuilder_ == null) { + return integerParameterRanges_.get(index); + } else { + return integerParameterRangesBuilder_.getMessage(index); + } + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public Builder setIntegerParameterRanges( + int index, flyte.plugins.Sagemaker.IntegerParameterRange value) { + if (integerParameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntegerParameterRangesIsMutable(); + integerParameterRanges_.set(index, value); + onChanged(); + } else { + integerParameterRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public Builder setIntegerParameterRanges( + int index, flyte.plugins.Sagemaker.IntegerParameterRange.Builder builderForValue) { + if (integerParameterRangesBuilder_ == null) { + ensureIntegerParameterRangesIsMutable(); + integerParameterRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + integerParameterRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public Builder addIntegerParameterRanges(flyte.plugins.Sagemaker.IntegerParameterRange value) { + if (integerParameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntegerParameterRangesIsMutable(); + integerParameterRanges_.add(value); + onChanged(); + } else { + integerParameterRangesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public Builder addIntegerParameterRanges( + int index, flyte.plugins.Sagemaker.IntegerParameterRange value) { + if (integerParameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntegerParameterRangesIsMutable(); + integerParameterRanges_.add(index, value); + onChanged(); + } else { + integerParameterRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public Builder addIntegerParameterRanges( + flyte.plugins.Sagemaker.IntegerParameterRange.Builder builderForValue) { + if (integerParameterRangesBuilder_ == null) { + ensureIntegerParameterRangesIsMutable(); + integerParameterRanges_.add(builderForValue.build()); + onChanged(); + } else { + integerParameterRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public Builder addIntegerParameterRanges( + int index, flyte.plugins.Sagemaker.IntegerParameterRange.Builder builderForValue) { + if (integerParameterRangesBuilder_ == null) { + ensureIntegerParameterRangesIsMutable(); + integerParameterRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + integerParameterRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public Builder addAllIntegerParameterRanges( + java.lang.Iterable values) { + if (integerParameterRangesBuilder_ == null) { + ensureIntegerParameterRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, integerParameterRanges_); + onChanged(); + } else { + integerParameterRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public Builder clearIntegerParameterRanges() { + if (integerParameterRangesBuilder_ == null) { + integerParameterRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + integerParameterRangesBuilder_.clear(); + } + return this; + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public Builder removeIntegerParameterRanges(int index) { + if (integerParameterRangesBuilder_ == null) { + ensureIntegerParameterRangesIsMutable(); + integerParameterRanges_.remove(index); + onChanged(); + } else { + integerParameterRangesBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public flyte.plugins.Sagemaker.IntegerParameterRange.Builder getIntegerParameterRangesBuilder( + int index) { + return getIntegerParameterRangesFieldBuilder().getBuilder(index); + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( + int index) { + if (integerParameterRangesBuilder_ == null) { + return integerParameterRanges_.get(index); } else { + return integerParameterRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public java.util.List + getIntegerParameterRangesOrBuilderList() { + if (integerParameterRangesBuilder_ != null) { + return integerParameterRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(integerParameterRanges_); + } + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public flyte.plugins.Sagemaker.IntegerParameterRange.Builder addIntegerParameterRangesBuilder() { + return getIntegerParameterRangesFieldBuilder().addBuilder( + flyte.plugins.Sagemaker.IntegerParameterRange.getDefaultInstance()); + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public flyte.plugins.Sagemaker.IntegerParameterRange.Builder addIntegerParameterRangesBuilder( + int index) { + return getIntegerParameterRangesFieldBuilder().addBuilder( + index, flyte.plugins.Sagemaker.IntegerParameterRange.getDefaultInstance()); + } + /** + * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + */ + public java.util.List + getIntegerParameterRangesBuilderList() { + return getIntegerParameterRangesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyte.plugins.Sagemaker.IntegerParameterRange, flyte.plugins.Sagemaker.IntegerParameterRange.Builder, flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder> + getIntegerParameterRangesFieldBuilder() { + if (integerParameterRangesBuilder_ == null) { + integerParameterRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyte.plugins.Sagemaker.IntegerParameterRange, flyte.plugins.Sagemaker.IntegerParameterRange.Builder, flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder>( + integerParameterRanges_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + integerParameterRanges_ = null; + } + return integerParameterRangesBuilder_; + } + + private java.util.List categoricalParameterRanges_ = + java.util.Collections.emptyList(); + private void ensureCategoricalParameterRangesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + categoricalParameterRanges_ = new java.util.ArrayList(categoricalParameterRanges_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyte.plugins.Sagemaker.CategoricalParameterRange, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder, flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder> categoricalParameterRangesBuilder_; + + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public java.util.List getCategoricalParameterRangesList() { + if (categoricalParameterRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(categoricalParameterRanges_); + } else { + return categoricalParameterRangesBuilder_.getMessageList(); + } + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public int getCategoricalParameterRangesCount() { + if (categoricalParameterRangesBuilder_ == null) { + return categoricalParameterRanges_.size(); + } else { + return categoricalParameterRangesBuilder_.getCount(); + } + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public flyte.plugins.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index) { + if (categoricalParameterRangesBuilder_ == null) { + return categoricalParameterRanges_.get(index); + } else { + return categoricalParameterRangesBuilder_.getMessage(index); + } + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public Builder setCategoricalParameterRanges( + int index, flyte.plugins.Sagemaker.CategoricalParameterRange value) { + if (categoricalParameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoricalParameterRangesIsMutable(); + categoricalParameterRanges_.set(index, value); + onChanged(); + } else { + categoricalParameterRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public Builder setCategoricalParameterRanges( + int index, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder builderForValue) { + if (categoricalParameterRangesBuilder_ == null) { + ensureCategoricalParameterRangesIsMutable(); + categoricalParameterRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + categoricalParameterRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public Builder addCategoricalParameterRanges(flyte.plugins.Sagemaker.CategoricalParameterRange value) { + if (categoricalParameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoricalParameterRangesIsMutable(); + categoricalParameterRanges_.add(value); + onChanged(); + } else { + categoricalParameterRangesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public Builder addCategoricalParameterRanges( + int index, flyte.plugins.Sagemaker.CategoricalParameterRange value) { + if (categoricalParameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoricalParameterRangesIsMutable(); + categoricalParameterRanges_.add(index, value); + onChanged(); + } else { + categoricalParameterRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public Builder addCategoricalParameterRanges( + flyte.plugins.Sagemaker.CategoricalParameterRange.Builder builderForValue) { + if (categoricalParameterRangesBuilder_ == null) { + ensureCategoricalParameterRangesIsMutable(); + categoricalParameterRanges_.add(builderForValue.build()); + onChanged(); + } else { + categoricalParameterRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public Builder addCategoricalParameterRanges( + int index, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder builderForValue) { + if (categoricalParameterRangesBuilder_ == null) { + ensureCategoricalParameterRangesIsMutable(); + categoricalParameterRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + categoricalParameterRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public Builder addAllCategoricalParameterRanges( + java.lang.Iterable values) { + if (categoricalParameterRangesBuilder_ == null) { + ensureCategoricalParameterRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, categoricalParameterRanges_); + onChanged(); + } else { + categoricalParameterRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public Builder clearCategoricalParameterRanges() { + if (categoricalParameterRangesBuilder_ == null) { + categoricalParameterRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + categoricalParameterRangesBuilder_.clear(); + } + return this; + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public Builder removeCategoricalParameterRanges(int index) { + if (categoricalParameterRangesBuilder_ == null) { + ensureCategoricalParameterRangesIsMutable(); + categoricalParameterRanges_.remove(index); + onChanged(); + } else { + categoricalParameterRangesBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public flyte.plugins.Sagemaker.CategoricalParameterRange.Builder getCategoricalParameterRangesBuilder( + int index) { + return getCategoricalParameterRangesFieldBuilder().getBuilder(index); + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( + int index) { + if (categoricalParameterRangesBuilder_ == null) { + return categoricalParameterRanges_.get(index); } else { + return categoricalParameterRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public java.util.List + getCategoricalParameterRangesOrBuilderList() { + if (categoricalParameterRangesBuilder_ != null) { + return categoricalParameterRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(categoricalParameterRanges_); + } + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public flyte.plugins.Sagemaker.CategoricalParameterRange.Builder addCategoricalParameterRangesBuilder() { + return getCategoricalParameterRangesFieldBuilder().addBuilder( + flyte.plugins.Sagemaker.CategoricalParameterRange.getDefaultInstance()); + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public flyte.plugins.Sagemaker.CategoricalParameterRange.Builder addCategoricalParameterRangesBuilder( + int index) { + return getCategoricalParameterRangesFieldBuilder().addBuilder( + index, flyte.plugins.Sagemaker.CategoricalParameterRange.getDefaultInstance()); + } + /** + * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + */ + public java.util.List + getCategoricalParameterRangesBuilderList() { + return getCategoricalParameterRangesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyte.plugins.Sagemaker.CategoricalParameterRange, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder, flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder> + getCategoricalParameterRangesFieldBuilder() { + if (categoricalParameterRangesBuilder_ == null) { + categoricalParameterRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyte.plugins.Sagemaker.CategoricalParameterRange, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder, flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder>( + categoricalParameterRanges_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + categoricalParameterRanges_ = null; + } + return categoricalParameterRangesBuilder_; + } + @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:flyte.plugins.ParameterRanges) + } + + // @@protoc_insertion_point(class_scope:flyte.plugins.ParameterRanges) + private static final flyte.plugins.Sagemaker.ParameterRanges DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.ParameterRanges(); + } + + public static flyte.plugins.Sagemaker.ParameterRanges getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterRanges parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterRanges(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 flyte.plugins.Sagemaker.ParameterRanges getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AlgorithmSpecificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyte.plugins.AlgorithmSpecification) + com.google.protobuf.MessageOrBuilder { + + /** + * string TrainingImage = 1; + */ + java.lang.String getTrainingImage(); + /** + * string TrainingImage = 1; + */ + com.google.protobuf.ByteString + getTrainingImageBytes(); + + /** + * string TrainingInputMode = 2; + */ + java.lang.String getTrainingInputMode(); + /** + * string TrainingInputMode = 2; + */ + com.google.protobuf.ByteString + getTrainingInputModeBytes(); + + /** + * string AlgorithmName = 3; + */ + java.lang.String getAlgorithmName(); + /** + * string AlgorithmName = 3; + */ + com.google.protobuf.ByteString + getAlgorithmNameBytes(); + + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + java.util.List + getMetricDefinitionsList(); + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + int getMetricDefinitionsCount(); + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + java.util.List + getMetricDefinitionsOrBuilderList(); + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyte.plugins.AlgorithmSpecification} + */ + public static final class AlgorithmSpecification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyte.plugins.AlgorithmSpecification) + AlgorithmSpecificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlgorithmSpecification.newBuilder() to construct. + private AlgorithmSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlgorithmSpecification() { + trainingImage_ = ""; + trainingInputMode_ = ""; + algorithmName_ = ""; + metricDefinitions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AlgorithmSpecification( + 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(); + + trainingImage_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + trainingInputMode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + algorithmName_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + metricDefinitions_.add( + input.readMessage(flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.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_ & 0x00000008) != 0)) { + metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.AlgorithmSpecification.class, flyte.plugins.Sagemaker.AlgorithmSpecification.Builder.class); + } + + public interface MetricDefinitionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyte.plugins.AlgorithmSpecification.MetricDefinition) + com.google.protobuf.MessageOrBuilder { + + /** + * string Name = 1; + */ + java.lang.String getName(); + /** + * string Name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string Regex = 2; + */ + java.lang.String getRegex(); + /** + * string Regex = 2; + */ + com.google.protobuf.ByteString + getRegexBytes(); + } + /** + * Protobuf type {@code flyte.plugins.AlgorithmSpecification.MetricDefinition} + */ + public static final class MetricDefinition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyte.plugins.AlgorithmSpecification.MetricDefinition) + MetricDefinitionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricDefinition.newBuilder() to construct. + private MetricDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MetricDefinition() { + name_ = ""; + regex_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MetricDefinition( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + regex_ = 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 flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.class, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + 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 REGEX_FIELD_NUMBER = 2; + private volatile java.lang.Object regex_; + /** + * string Regex = 2; + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + 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(); + regex_ = s; + return s; + } + } + /** + * string Regex = 2; + */ + public com.google.protobuf.ByteString + getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getRegexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regex_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getRegexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regex_); + } + 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 flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition)) { + return super.equals(obj); + } + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition other = (flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getRegex() + .equals(other.getRegex())) 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) + REGEX_FIELD_NUMBER; + hash = (53 * hash) + getRegex().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition 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 flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition 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 flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition 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(flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition 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 flyte.plugins.AlgorithmSpecification.MetricDefinition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyte.plugins.AlgorithmSpecification.MetricDefinition) + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.class, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder.class); + } + + // Construct using flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.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_ = ""; + + regex_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + return flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); + } + + @java.lang.Override + public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition build() { + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition buildPartial() { + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition result = new flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition(this); + result.name_ = name_; + result.regex_ = regex_; + 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 flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition) { + return mergeFrom((flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition other) { + if (other == flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRegex().isEmpty()) { + regex_ = other.regex_; + 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 { + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string Name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string Name = 1; + */ + 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 regex_ = ""; + /** + * string Regex = 2; + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string Regex = 2; + */ + public com.google.protobuf.ByteString + getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string Regex = 2; + */ + public Builder setRegex( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regex_ = value; + onChanged(); + return this; + } + /** + * string Regex = 2; + */ + public Builder clearRegex() { + + regex_ = getDefaultInstance().getRegex(); + onChanged(); + return this; + } + /** + * string Regex = 2; + */ + public Builder setRegexBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regex_ = 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:flyte.plugins.AlgorithmSpecification.MetricDefinition) + } + + // @@protoc_insertion_point(class_scope:flyte.plugins.AlgorithmSpecification.MetricDefinition) + private static final flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition(); + } + + public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricDefinition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MetricDefinition(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 flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int TRAININGIMAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object trainingImage_; + /** + * string TrainingImage = 1; + */ + public java.lang.String getTrainingImage() { + java.lang.Object ref = trainingImage_; + 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(); + trainingImage_ = s; + return s; + } + } + /** + * string TrainingImage = 1; + */ + public com.google.protobuf.ByteString + getTrainingImageBytes() { + java.lang.Object ref = trainingImage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + trainingImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRAININGINPUTMODE_FIELD_NUMBER = 2; + private volatile java.lang.Object trainingInputMode_; + /** + * string TrainingInputMode = 2; + */ + public java.lang.String getTrainingInputMode() { + java.lang.Object ref = trainingInputMode_; + 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(); + trainingInputMode_ = s; + return s; + } + } + /** + * string TrainingInputMode = 2; + */ + public com.google.protobuf.ByteString + getTrainingInputModeBytes() { + java.lang.Object ref = trainingInputMode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + trainingInputMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALGORITHMNAME_FIELD_NUMBER = 3; + private volatile java.lang.Object algorithmName_; + /** + * string AlgorithmName = 3; + */ + public java.lang.String getAlgorithmName() { + java.lang.Object ref = algorithmName_; + 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(); + algorithmName_ = s; + return s; + } + } + /** + * string AlgorithmName = 3; + */ + public com.google.protobuf.ByteString + getAlgorithmNameBytes() { + java.lang.Object ref = algorithmName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METRICDEFINITIONS_FIELD_NUMBER = 4; + private java.util.List metricDefinitions_; + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public java.util.List getMetricDefinitionsList() { + return metricDefinitions_; + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public java.util.List + getMetricDefinitionsOrBuilderList() { + return metricDefinitions_; + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public int getMetricDefinitionsCount() { + return metricDefinitions_.size(); + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + return metricDefinitions_.get(index); + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index) { + return metricDefinitions_.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 (!getTrainingImageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trainingImage_); + } + if (!getTrainingInputModeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, trainingInputMode_); + } + if (!getAlgorithmNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, algorithmName_); + } + for (int i = 0; i < metricDefinitions_.size(); i++) { + output.writeMessage(4, metricDefinitions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTrainingImageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trainingImage_); + } + if (!getTrainingInputModeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, trainingInputMode_); + } + if (!getAlgorithmNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, algorithmName_); + } + for (int i = 0; i < metricDefinitions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, metricDefinitions_.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 flyte.plugins.Sagemaker.AlgorithmSpecification)) { + return super.equals(obj); + } + flyte.plugins.Sagemaker.AlgorithmSpecification other = (flyte.plugins.Sagemaker.AlgorithmSpecification) obj; + + if (!getTrainingImage() + .equals(other.getTrainingImage())) return false; + if (!getTrainingInputMode() + .equals(other.getTrainingInputMode())) return false; + if (!getAlgorithmName() + .equals(other.getAlgorithmName())) return false; + if (!getMetricDefinitionsList() + .equals(other.getMetricDefinitionsList())) 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) + TRAININGIMAGE_FIELD_NUMBER; + hash = (53 * hash) + getTrainingImage().hashCode(); + hash = (37 * hash) + TRAININGINPUTMODE_FIELD_NUMBER; + hash = (53 * hash) + getTrainingInputMode().hashCode(); + hash = (37 * hash) + ALGORITHMNAME_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmName().hashCode(); + if (getMetricDefinitionsCount() > 0) { + hash = (37 * hash) + METRICDEFINITIONS_FIELD_NUMBER; + hash = (53 * hash) + getMetricDefinitionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification 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 flyte.plugins.Sagemaker.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification 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 flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.AlgorithmSpecification 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(flyte.plugins.Sagemaker.AlgorithmSpecification 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 flyte.plugins.AlgorithmSpecification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyte.plugins.AlgorithmSpecification) + flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.AlgorithmSpecification.class, flyte.plugins.Sagemaker.AlgorithmSpecification.Builder.class); + } + + // Construct using flyte.plugins.Sagemaker.AlgorithmSpecification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetricDefinitionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + trainingImage_ = ""; + + trainingInputMode_ = ""; + + algorithmName_ = ""; + + if (metricDefinitionsBuilder_ == null) { + metricDefinitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + metricDefinitionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.AlgorithmSpecification getDefaultInstanceForType() { + return flyte.plugins.Sagemaker.AlgorithmSpecification.getDefaultInstance(); + } + + @java.lang.Override + public flyte.plugins.Sagemaker.AlgorithmSpecification build() { + flyte.plugins.Sagemaker.AlgorithmSpecification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.AlgorithmSpecification buildPartial() { + flyte.plugins.Sagemaker.AlgorithmSpecification result = new flyte.plugins.Sagemaker.AlgorithmSpecification(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.trainingImage_ = trainingImage_; + result.trainingInputMode_ = trainingInputMode_; + result.algorithmName_ = algorithmName_; + if (metricDefinitionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.metricDefinitions_ = metricDefinitions_; + } else { + result.metricDefinitions_ = metricDefinitionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyte.plugins.Sagemaker.AlgorithmSpecification) { + return mergeFrom((flyte.plugins.Sagemaker.AlgorithmSpecification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyte.plugins.Sagemaker.AlgorithmSpecification other) { + if (other == flyte.plugins.Sagemaker.AlgorithmSpecification.getDefaultInstance()) return this; + if (!other.getTrainingImage().isEmpty()) { + trainingImage_ = other.trainingImage_; + onChanged(); + } + if (!other.getTrainingInputMode().isEmpty()) { + trainingInputMode_ = other.trainingInputMode_; + onChanged(); + } + if (!other.getAlgorithmName().isEmpty()) { + algorithmName_ = other.algorithmName_; + onChanged(); + } + if (metricDefinitionsBuilder_ == null) { + if (!other.metricDefinitions_.isEmpty()) { + if (metricDefinitions_.isEmpty()) { + metricDefinitions_ = other.metricDefinitions_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.addAll(other.metricDefinitions_); + } + onChanged(); + } + } else { + if (!other.metricDefinitions_.isEmpty()) { + if (metricDefinitionsBuilder_.isEmpty()) { + metricDefinitionsBuilder_.dispose(); + metricDefinitionsBuilder_ = null; + metricDefinitions_ = other.metricDefinitions_; + bitField0_ = (bitField0_ & ~0x00000008); + metricDefinitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetricDefinitionsFieldBuilder() : null; + } else { + metricDefinitionsBuilder_.addAllMessages(other.metricDefinitions_); + } + } + } + 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 { + flyte.plugins.Sagemaker.AlgorithmSpecification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyte.plugins.Sagemaker.AlgorithmSpecification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object trainingImage_ = ""; + /** + * string TrainingImage = 1; + */ + public java.lang.String getTrainingImage() { + java.lang.Object ref = trainingImage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trainingImage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string TrainingImage = 1; + */ + public com.google.protobuf.ByteString + getTrainingImageBytes() { + java.lang.Object ref = trainingImage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + trainingImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string TrainingImage = 1; + */ + public Builder setTrainingImage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + trainingImage_ = value; + onChanged(); + return this; + } + /** + * string TrainingImage = 1; + */ + public Builder clearTrainingImage() { + + trainingImage_ = getDefaultInstance().getTrainingImage(); + onChanged(); + return this; + } + /** + * string TrainingImage = 1; + */ + public Builder setTrainingImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + trainingImage_ = value; + onChanged(); + return this; + } + + private java.lang.Object trainingInputMode_ = ""; + /** + * string TrainingInputMode = 2; + */ + public java.lang.String getTrainingInputMode() { + java.lang.Object ref = trainingInputMode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trainingInputMode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string TrainingInputMode = 2; + */ + public com.google.protobuf.ByteString + getTrainingInputModeBytes() { + java.lang.Object ref = trainingInputMode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + trainingInputMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string TrainingInputMode = 2; + */ + public Builder setTrainingInputMode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + trainingInputMode_ = value; + onChanged(); + return this; + } + /** + * string TrainingInputMode = 2; + */ + public Builder clearTrainingInputMode() { + + trainingInputMode_ = getDefaultInstance().getTrainingInputMode(); + onChanged(); + return this; + } + /** + * string TrainingInputMode = 2; + */ + public Builder setTrainingInputModeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + trainingInputMode_ = value; + onChanged(); + return this; + } + + private java.lang.Object algorithmName_ = ""; + /** + * string AlgorithmName = 3; + */ + public java.lang.String getAlgorithmName() { + java.lang.Object ref = algorithmName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + algorithmName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string AlgorithmName = 3; + */ + public com.google.protobuf.ByteString + getAlgorithmNameBytes() { + java.lang.Object ref = algorithmName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string AlgorithmName = 3; + */ + public Builder setAlgorithmName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + algorithmName_ = value; + onChanged(); + return this; + } + /** + * string AlgorithmName = 3; + */ + public Builder clearAlgorithmName() { + + algorithmName_ = getDefaultInstance().getAlgorithmName(); + onChanged(); + return this; + } + /** + * string AlgorithmName = 3; + */ + public Builder setAlgorithmNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + algorithmName_ = value; + onChanged(); + return this; + } + + private java.util.List metricDefinitions_ = + java.util.Collections.emptyList(); + private void ensureMetricDefinitionsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; + + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public java.util.List getMetricDefinitionsList() { + if (metricDefinitionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricDefinitions_); + } else { + return metricDefinitionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public int getMetricDefinitionsCount() { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.size(); + } else { + return metricDefinitionsBuilder_.getCount(); + } + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.get(index); + } else { + return metricDefinitionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder setMetricDefinitions( + int index, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.set(index, value); + onChanged(); + } else { + metricDefinitionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder setMetricDefinitions( + int index, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.set(index, builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder addMetricDefinitions(flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(value); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder addMetricDefinitions( + int index, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(index, value); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder addMetricDefinitions( + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder addMetricDefinitions( + int index, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(index, builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder addAllMetricDefinitions( + java.lang.Iterable values) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metricDefinitions_); + onChanged(); + } else { + metricDefinitionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder clearMetricDefinitions() { + if (metricDefinitionsBuilder_ == null) { + metricDefinitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + metricDefinitionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder removeMetricDefinitions(int index) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.remove(index); + onChanged(); + } else { + metricDefinitionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( + int index) { + return getMetricDefinitionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index) { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.get(index); } else { + return metricDefinitionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public java.util.List + getMetricDefinitionsOrBuilderList() { + if (metricDefinitionsBuilder_ != null) { + return metricDefinitionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricDefinitions_); + } + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { + return getMetricDefinitionsFieldBuilder().addBuilder( + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( + int index) { + return getMetricDefinitionsFieldBuilder().addBuilder( + index, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + } + /** + * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public java.util.List + getMetricDefinitionsBuilderList() { + return getMetricDefinitionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder> + getMetricDefinitionsFieldBuilder() { + if (metricDefinitionsBuilder_ == null) { + metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder>( + metricDefinitions_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + metricDefinitions_ = null; + } + return metricDefinitionsBuilder_; + } + @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:flyte.plugins.AlgorithmSpecification) + } + + // @@protoc_insertion_point(class_scope:flyte.plugins.AlgorithmSpecification) + private static final flyte.plugins.Sagemaker.AlgorithmSpecification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.AlgorithmSpecification(); + } + + public static flyte.plugins.Sagemaker.AlgorithmSpecification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlgorithmSpecification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AlgorithmSpecification(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 flyte.plugins.Sagemaker.AlgorithmSpecification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyte.plugins.ResourceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * string InstanceType = 1; + */ + java.lang.String getInstanceType(); + /** + * string InstanceType = 1; + */ + com.google.protobuf.ByteString + getInstanceTypeBytes(); + + /** + * int64 InstanceCount = 2; + */ + long getInstanceCount(); + + /** + * int64 VolumeSizeInGB = 3; + */ + long getVolumeSizeInGB(); + + /** + * string VolumeKmsKeyId = 4; + */ + java.lang.String getVolumeKmsKeyId(); + /** + * string VolumeKmsKeyId = 4; + */ + com.google.protobuf.ByteString + getVolumeKmsKeyIdBytes(); + } + /** + * Protobuf type {@code flyte.plugins.ResourceConfig} + */ + public static final class ResourceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyte.plugins.ResourceConfig) + ResourceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceConfig.newBuilder() to construct. + private ResourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceConfig() { + instanceType_ = ""; + volumeKmsKeyId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceConfig( + 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(); + + instanceType_ = s; + break; + } + case 16: { + + instanceCount_ = input.readInt64(); + break; + } + case 24: { + + volumeSizeInGB_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + volumeKmsKeyId_ = 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 flyte.plugins.Sagemaker.internal_static_flyte_plugins_ResourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ResourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.ResourceConfig.class, flyte.plugins.Sagemaker.ResourceConfig.Builder.class); + } + + public static final int INSTANCETYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object instanceType_; + /** + * string InstanceType = 1; + */ + public java.lang.String getInstanceType() { + java.lang.Object ref = instanceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceType_ = s; + return s; + } + } + /** + * string InstanceType = 1; + */ + public com.google.protobuf.ByteString + getInstanceTypeBytes() { + java.lang.Object ref = instanceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCECOUNT_FIELD_NUMBER = 2; + private long instanceCount_; + /** + * int64 InstanceCount = 2; + */ + public long getInstanceCount() { + return instanceCount_; + } + + public static final int VOLUMESIZEINGB_FIELD_NUMBER = 3; + private long volumeSizeInGB_; + /** + * int64 VolumeSizeInGB = 3; + */ + public long getVolumeSizeInGB() { + return volumeSizeInGB_; + } + + public static final int VOLUMEKMSKEYID_FIELD_NUMBER = 4; + private volatile java.lang.Object volumeKmsKeyId_; + /** + * string VolumeKmsKeyId = 4; + */ + public java.lang.String getVolumeKmsKeyId() { + java.lang.Object ref = volumeKmsKeyId_; + 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(); + volumeKmsKeyId_ = s; + return s; + } + } + /** + * string VolumeKmsKeyId = 4; + */ + public com.google.protobuf.ByteString + getVolumeKmsKeyIdBytes() { + java.lang.Object ref = volumeKmsKeyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + volumeKmsKeyId_ = 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 (!getInstanceTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceType_); + } + if (instanceCount_ != 0L) { + output.writeInt64(2, instanceCount_); + } + if (volumeSizeInGB_ != 0L) { + output.writeInt64(3, volumeSizeInGB_); + } + if (!getVolumeKmsKeyIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, volumeKmsKeyId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getInstanceTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceType_); + } + if (instanceCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, instanceCount_); + } + if (volumeSizeInGB_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, volumeSizeInGB_); + } + if (!getVolumeKmsKeyIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, volumeKmsKeyId_); + } + 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 flyte.plugins.Sagemaker.ResourceConfig)) { + return super.equals(obj); + } + flyte.plugins.Sagemaker.ResourceConfig other = (flyte.plugins.Sagemaker.ResourceConfig) obj; + + if (!getInstanceType() + .equals(other.getInstanceType())) return false; + if (getInstanceCount() + != other.getInstanceCount()) return false; + if (getVolumeSizeInGB() + != other.getVolumeSizeInGB()) return false; + if (!getVolumeKmsKeyId() + .equals(other.getVolumeKmsKeyId())) 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) + INSTANCETYPE_FIELD_NUMBER; + hash = (53 * hash) + getInstanceType().hashCode(); + hash = (37 * hash) + INSTANCECOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInstanceCount()); + hash = (37 * hash) + VOLUMESIZEINGB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVolumeSizeInGB()); + hash = (37 * hash) + VOLUMEKMSKEYID_FIELD_NUMBER; + hash = (53 * hash) + getVolumeKmsKeyId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyte.plugins.Sagemaker.ResourceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.ResourceConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.ResourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.ResourceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.ResourceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.ResourceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.ResourceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.ResourceConfig 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 flyte.plugins.Sagemaker.ResourceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.ResourceConfig 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 flyte.plugins.Sagemaker.ResourceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.ResourceConfig 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(flyte.plugins.Sagemaker.ResourceConfig 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 flyte.plugins.ResourceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyte.plugins.ResourceConfig) + flyte.plugins.Sagemaker.ResourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ResourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ResourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.ResourceConfig.class, flyte.plugins.Sagemaker.ResourceConfig.Builder.class); + } + + // Construct using flyte.plugins.Sagemaker.ResourceConfig.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(); + instanceType_ = ""; + + instanceCount_ = 0L; + + volumeSizeInGB_ = 0L; + + volumeKmsKeyId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ResourceConfig_descriptor; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.ResourceConfig getDefaultInstanceForType() { + return flyte.plugins.Sagemaker.ResourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyte.plugins.Sagemaker.ResourceConfig build() { + flyte.plugins.Sagemaker.ResourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.ResourceConfig buildPartial() { + flyte.plugins.Sagemaker.ResourceConfig result = new flyte.plugins.Sagemaker.ResourceConfig(this); + result.instanceType_ = instanceType_; + result.instanceCount_ = instanceCount_; + result.volumeSizeInGB_ = volumeSizeInGB_; + result.volumeKmsKeyId_ = volumeKmsKeyId_; + 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 flyte.plugins.Sagemaker.ResourceConfig) { + return mergeFrom((flyte.plugins.Sagemaker.ResourceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyte.plugins.Sagemaker.ResourceConfig other) { + if (other == flyte.plugins.Sagemaker.ResourceConfig.getDefaultInstance()) return this; + if (!other.getInstanceType().isEmpty()) { + instanceType_ = other.instanceType_; + onChanged(); + } + if (other.getInstanceCount() != 0L) { + setInstanceCount(other.getInstanceCount()); + } + if (other.getVolumeSizeInGB() != 0L) { + setVolumeSizeInGB(other.getVolumeSizeInGB()); + } + if (!other.getVolumeKmsKeyId().isEmpty()) { + volumeKmsKeyId_ = other.volumeKmsKeyId_; + 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 { + flyte.plugins.Sagemaker.ResourceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyte.plugins.Sagemaker.ResourceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object instanceType_ = ""; + /** + * string InstanceType = 1; + */ + public java.lang.String getInstanceType() { + java.lang.Object ref = instanceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string InstanceType = 1; + */ + public com.google.protobuf.ByteString + getInstanceTypeBytes() { + java.lang.Object ref = instanceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string InstanceType = 1; + */ + public Builder setInstanceType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + instanceType_ = value; + onChanged(); + return this; + } + /** + * string InstanceType = 1; + */ + public Builder clearInstanceType() { + + instanceType_ = getDefaultInstance().getInstanceType(); + onChanged(); + return this; + } + /** + * string InstanceType = 1; + */ + public Builder setInstanceTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + instanceType_ = value; + onChanged(); + return this; + } + + private long instanceCount_ ; + /** + * int64 InstanceCount = 2; + */ + public long getInstanceCount() { + return instanceCount_; + } + /** + * int64 InstanceCount = 2; + */ + public Builder setInstanceCount(long value) { + + instanceCount_ = value; + onChanged(); + return this; + } + /** + * int64 InstanceCount = 2; + */ + public Builder clearInstanceCount() { + + instanceCount_ = 0L; + onChanged(); + return this; + } + + private long volumeSizeInGB_ ; + /** + * int64 VolumeSizeInGB = 3; + */ + public long getVolumeSizeInGB() { + return volumeSizeInGB_; + } + /** + * int64 VolumeSizeInGB = 3; + */ + public Builder setVolumeSizeInGB(long value) { + + volumeSizeInGB_ = value; + onChanged(); + return this; + } + /** + * int64 VolumeSizeInGB = 3; + */ + public Builder clearVolumeSizeInGB() { + + volumeSizeInGB_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object volumeKmsKeyId_ = ""; + /** + * string VolumeKmsKeyId = 4; + */ + public java.lang.String getVolumeKmsKeyId() { + java.lang.Object ref = volumeKmsKeyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volumeKmsKeyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string VolumeKmsKeyId = 4; + */ + public com.google.protobuf.ByteString + getVolumeKmsKeyIdBytes() { + java.lang.Object ref = volumeKmsKeyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + volumeKmsKeyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string VolumeKmsKeyId = 4; + */ + public Builder setVolumeKmsKeyId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + volumeKmsKeyId_ = value; + onChanged(); + return this; + } + /** + * string VolumeKmsKeyId = 4; + */ + public Builder clearVolumeKmsKeyId() { + + volumeKmsKeyId_ = getDefaultInstance().getVolumeKmsKeyId(); + onChanged(); + return this; + } + /** + * string VolumeKmsKeyId = 4; + */ + public Builder setVolumeKmsKeyIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + volumeKmsKeyId_ = 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:flyte.plugins.ResourceConfig) + } + + // @@protoc_insertion_point(class_scope:flyte.plugins.ResourceConfig) + private static final flyte.plugins.Sagemaker.ResourceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.ResourceConfig(); + } + + public static flyte.plugins.Sagemaker.ResourceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceConfig(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 flyte.plugins.Sagemaker.ResourceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StoppingConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyte.plugins.StoppingCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 MaxRuntimeInSeconds = 1; + */ + long getMaxRuntimeInSeconds(); + + /** + * int64 MaxWaitTimeInSeconds = 2; + */ + long getMaxWaitTimeInSeconds(); + } + /** + * Protobuf type {@code flyte.plugins.StoppingCondition} + */ + public static final class StoppingCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyte.plugins.StoppingCondition) + StoppingConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoppingCondition.newBuilder() to construct. + private StoppingCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StoppingCondition() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoppingCondition( + 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 8: { + + maxRuntimeInSeconds_ = input.readInt64(); + break; + } + case 16: { + + maxWaitTimeInSeconds_ = 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 flyte.plugins.Sagemaker.internal_static_flyte_plugins_StoppingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_StoppingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.StoppingCondition.class, flyte.plugins.Sagemaker.StoppingCondition.Builder.class); + } + + public static final int MAXRUNTIMEINSECONDS_FIELD_NUMBER = 1; + private long maxRuntimeInSeconds_; + /** + * int64 MaxRuntimeInSeconds = 1; + */ + public long getMaxRuntimeInSeconds() { + return maxRuntimeInSeconds_; + } + + public static final int MAXWAITTIMEINSECONDS_FIELD_NUMBER = 2; + private long maxWaitTimeInSeconds_; + /** + * int64 MaxWaitTimeInSeconds = 2; + */ + public long getMaxWaitTimeInSeconds() { + return maxWaitTimeInSeconds_; + } + + 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 (maxRuntimeInSeconds_ != 0L) { + output.writeInt64(1, maxRuntimeInSeconds_); + } + if (maxWaitTimeInSeconds_ != 0L) { + output.writeInt64(2, maxWaitTimeInSeconds_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxRuntimeInSeconds_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxRuntimeInSeconds_); + } + if (maxWaitTimeInSeconds_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxWaitTimeInSeconds_); + } + 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 flyte.plugins.Sagemaker.StoppingCondition)) { + return super.equals(obj); + } + flyte.plugins.Sagemaker.StoppingCondition other = (flyte.plugins.Sagemaker.StoppingCondition) obj; + + if (getMaxRuntimeInSeconds() + != other.getMaxRuntimeInSeconds()) return false; + if (getMaxWaitTimeInSeconds() + != other.getMaxWaitTimeInSeconds()) 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) + MAXRUNTIMEINSECONDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxRuntimeInSeconds()); + hash = (37 * hash) + MAXWAITTIMEINSECONDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxWaitTimeInSeconds()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyte.plugins.Sagemaker.StoppingCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.StoppingCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.StoppingCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.StoppingCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.StoppingCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.StoppingCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.StoppingCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.StoppingCondition 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 flyte.plugins.Sagemaker.StoppingCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.StoppingCondition 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 flyte.plugins.Sagemaker.StoppingCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.StoppingCondition 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(flyte.plugins.Sagemaker.StoppingCondition 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 flyte.plugins.StoppingCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyte.plugins.StoppingCondition) + flyte.plugins.Sagemaker.StoppingConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_StoppingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_StoppingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.StoppingCondition.class, flyte.plugins.Sagemaker.StoppingCondition.Builder.class); + } + + // Construct using flyte.plugins.Sagemaker.StoppingCondition.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(); + maxRuntimeInSeconds_ = 0L; + + maxWaitTimeInSeconds_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_StoppingCondition_descriptor; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.StoppingCondition getDefaultInstanceForType() { + return flyte.plugins.Sagemaker.StoppingCondition.getDefaultInstance(); + } + + @java.lang.Override + public flyte.plugins.Sagemaker.StoppingCondition build() { + flyte.plugins.Sagemaker.StoppingCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.StoppingCondition buildPartial() { + flyte.plugins.Sagemaker.StoppingCondition result = new flyte.plugins.Sagemaker.StoppingCondition(this); + result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; + result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; + 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 flyte.plugins.Sagemaker.StoppingCondition) { + return mergeFrom((flyte.plugins.Sagemaker.StoppingCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyte.plugins.Sagemaker.StoppingCondition other) { + if (other == flyte.plugins.Sagemaker.StoppingCondition.getDefaultInstance()) return this; + if (other.getMaxRuntimeInSeconds() != 0L) { + setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); + } + if (other.getMaxWaitTimeInSeconds() != 0L) { + setMaxWaitTimeInSeconds(other.getMaxWaitTimeInSeconds()); + } + 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 { + flyte.plugins.Sagemaker.StoppingCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyte.plugins.Sagemaker.StoppingCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxRuntimeInSeconds_ ; + /** + * int64 MaxRuntimeInSeconds = 1; + */ + public long getMaxRuntimeInSeconds() { + return maxRuntimeInSeconds_; + } + /** + * int64 MaxRuntimeInSeconds = 1; + */ + public Builder setMaxRuntimeInSeconds(long value) { + + maxRuntimeInSeconds_ = value; + onChanged(); + return this; + } + /** + * int64 MaxRuntimeInSeconds = 1; + */ + public Builder clearMaxRuntimeInSeconds() { + + maxRuntimeInSeconds_ = 0L; + onChanged(); + return this; + } + + private long maxWaitTimeInSeconds_ ; + /** + * int64 MaxWaitTimeInSeconds = 2; + */ + public long getMaxWaitTimeInSeconds() { + return maxWaitTimeInSeconds_; + } + /** + * int64 MaxWaitTimeInSeconds = 2; + */ + public Builder setMaxWaitTimeInSeconds(long value) { + + maxWaitTimeInSeconds_ = value; + onChanged(); + return this; + } + /** + * int64 MaxWaitTimeInSeconds = 2; + */ + public Builder clearMaxWaitTimeInSeconds() { + + maxWaitTimeInSeconds_ = 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:flyte.plugins.StoppingCondition) + } + + // @@protoc_insertion_point(class_scope:flyte.plugins.StoppingCondition) + private static final flyte.plugins.Sagemaker.StoppingCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.StoppingCondition(); + } + + public static flyte.plugins.Sagemaker.StoppingCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoppingCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoppingCondition(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 flyte.plugins.Sagemaker.StoppingCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VpcConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyte.plugins.VpcConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string SecurityGroupIds = 1; + */ + java.util.List + getSecurityGroupIdsList(); + /** + * repeated string SecurityGroupIds = 1; + */ + int getSecurityGroupIdsCount(); + /** + * repeated string SecurityGroupIds = 1; + */ + java.lang.String getSecurityGroupIds(int index); + /** + * repeated string SecurityGroupIds = 1; + */ + com.google.protobuf.ByteString + getSecurityGroupIdsBytes(int index); + + /** + * repeated string Subnets = 2; + */ + java.util.List + getSubnetsList(); + /** + * repeated string Subnets = 2; + */ + int getSubnetsCount(); + /** + * repeated string Subnets = 2; + */ + java.lang.String getSubnets(int index); + /** + * repeated string Subnets = 2; + */ + com.google.protobuf.ByteString + getSubnetsBytes(int index); + } + /** + * Protobuf type {@code flyte.plugins.VpcConfig} + */ + public static final class VpcConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyte.plugins.VpcConfig) + VpcConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use VpcConfig.newBuilder() to construct. + private VpcConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VpcConfig() { + securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VpcConfig( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + securityGroupIds_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + subnets_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + subnets_.add(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)) { + securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + subnets_ = subnets_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_VpcConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_VpcConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.VpcConfig.class, flyte.plugins.Sagemaker.VpcConfig.Builder.class); + } + + public static final int SECURITYGROUPIDS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList securityGroupIds_; + /** + * repeated string SecurityGroupIds = 1; + */ + public com.google.protobuf.ProtocolStringList + getSecurityGroupIdsList() { + return securityGroupIds_; + } + /** + * repeated string SecurityGroupIds = 1; + */ + public int getSecurityGroupIdsCount() { + return securityGroupIds_.size(); + } + /** + * repeated string SecurityGroupIds = 1; + */ + public java.lang.String getSecurityGroupIds(int index) { + return securityGroupIds_.get(index); + } + /** + * repeated string SecurityGroupIds = 1; + */ + public com.google.protobuf.ByteString + getSecurityGroupIdsBytes(int index) { + return securityGroupIds_.getByteString(index); + } + + public static final int SUBNETS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList subnets_; + /** + * repeated string Subnets = 2; + */ + public com.google.protobuf.ProtocolStringList + getSubnetsList() { + return subnets_; + } + /** + * repeated string Subnets = 2; + */ + public int getSubnetsCount() { + return subnets_.size(); + } + /** + * repeated string Subnets = 2; + */ + public java.lang.String getSubnets(int index) { + return subnets_.get(index); + } + /** + * repeated string Subnets = 2; + */ + public com.google.protobuf.ByteString + getSubnetsBytes(int index) { + return subnets_.getByteString(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 < securityGroupIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, securityGroupIds_.getRaw(i)); + } + for (int i = 0; i < subnets_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnets_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < securityGroupIds_.size(); i++) { + dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getSecurityGroupIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < subnets_.size(); i++) { + dataSize += computeStringSizeNoTag(subnets_.getRaw(i)); + } + size += dataSize; + size += 1 * getSubnetsList().size(); + } + 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 flyte.plugins.Sagemaker.VpcConfig)) { + return super.equals(obj); + } + flyte.plugins.Sagemaker.VpcConfig other = (flyte.plugins.Sagemaker.VpcConfig) obj; + + if (!getSecurityGroupIdsList() + .equals(other.getSecurityGroupIdsList())) return false; + if (!getSubnetsList() + .equals(other.getSubnetsList())) 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 (getSecurityGroupIdsCount() > 0) { + hash = (37 * hash) + SECURITYGROUPIDS_FIELD_NUMBER; + hash = (53 * hash) + getSecurityGroupIdsList().hashCode(); + } + if (getSubnetsCount() > 0) { + hash = (37 * hash) + SUBNETS_FIELD_NUMBER; + hash = (53 * hash) + getSubnetsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyte.plugins.Sagemaker.VpcConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.VpcConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.VpcConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.VpcConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.VpcConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.VpcConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.VpcConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.VpcConfig 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 flyte.plugins.Sagemaker.VpcConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.VpcConfig 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 flyte.plugins.Sagemaker.VpcConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.VpcConfig 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(flyte.plugins.Sagemaker.VpcConfig 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 flyte.plugins.VpcConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyte.plugins.VpcConfig) + flyte.plugins.Sagemaker.VpcConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_VpcConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_VpcConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.VpcConfig.class, flyte.plugins.Sagemaker.VpcConfig.Builder.class); + } + + // Construct using flyte.plugins.Sagemaker.VpcConfig.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(); + securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_VpcConfig_descriptor; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.VpcConfig getDefaultInstanceForType() { + return flyte.plugins.Sagemaker.VpcConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyte.plugins.Sagemaker.VpcConfig build() { + flyte.plugins.Sagemaker.VpcConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.VpcConfig buildPartial() { + flyte.plugins.Sagemaker.VpcConfig result = new flyte.plugins.Sagemaker.VpcConfig(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.securityGroupIds_ = securityGroupIds_; + if (((bitField0_ & 0x00000002) != 0)) { + subnets_ = subnets_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.subnets_ = subnets_; + 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 flyte.plugins.Sagemaker.VpcConfig) { + return mergeFrom((flyte.plugins.Sagemaker.VpcConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyte.plugins.Sagemaker.VpcConfig other) { + if (other == flyte.plugins.Sagemaker.VpcConfig.getDefaultInstance()) return this; + if (!other.securityGroupIds_.isEmpty()) { + if (securityGroupIds_.isEmpty()) { + securityGroupIds_ = other.securityGroupIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.addAll(other.securityGroupIds_); + } + onChanged(); + } + if (!other.subnets_.isEmpty()) { + if (subnets_.isEmpty()) { + subnets_ = other.subnets_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubnetsIsMutable(); + subnets_.addAll(other.subnets_); + } + 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 { + flyte.plugins.Sagemaker.VpcConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyte.plugins.Sagemaker.VpcConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSecurityGroupIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string SecurityGroupIds = 1; + */ + public com.google.protobuf.ProtocolStringList + getSecurityGroupIdsList() { + return securityGroupIds_.getUnmodifiableView(); + } + /** + * repeated string SecurityGroupIds = 1; + */ + public int getSecurityGroupIdsCount() { + return securityGroupIds_.size(); + } + /** + * repeated string SecurityGroupIds = 1; + */ + public java.lang.String getSecurityGroupIds(int index) { + return securityGroupIds_.get(index); + } + /** + * repeated string SecurityGroupIds = 1; + */ + public com.google.protobuf.ByteString + getSecurityGroupIdsBytes(int index) { + return securityGroupIds_.getByteString(index); + } + /** + * repeated string SecurityGroupIds = 1; + */ + public Builder setSecurityGroupIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string SecurityGroupIds = 1; + */ + public Builder addSecurityGroupIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.add(value); + onChanged(); + return this; + } + /** + * repeated string SecurityGroupIds = 1; + */ + public Builder addAllSecurityGroupIds( + java.lang.Iterable values) { + ensureSecurityGroupIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, securityGroupIds_); + onChanged(); + return this; + } + /** + * repeated string SecurityGroupIds = 1; + */ + public Builder clearSecurityGroupIds() { + securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string SecurityGroupIds = 1; + */ + public Builder addSecurityGroupIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSubnetsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + subnets_ = new com.google.protobuf.LazyStringArrayList(subnets_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated string Subnets = 2; + */ + public com.google.protobuf.ProtocolStringList + getSubnetsList() { + return subnets_.getUnmodifiableView(); + } + /** + * repeated string Subnets = 2; + */ + public int getSubnetsCount() { + return subnets_.size(); + } + /** + * repeated string Subnets = 2; + */ + public java.lang.String getSubnets(int index) { + return subnets_.get(index); + } + /** + * repeated string Subnets = 2; + */ + public com.google.protobuf.ByteString + getSubnetsBytes(int index) { + return subnets_.getByteString(index); + } + /** + * repeated string Subnets = 2; + */ + public Builder setSubnets( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetsIsMutable(); + subnets_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string Subnets = 2; + */ + public Builder addSubnets( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetsIsMutable(); + subnets_.add(value); + onChanged(); + return this; + } + /** + * repeated string Subnets = 2; + */ + public Builder addAllSubnets( + java.lang.Iterable values) { + ensureSubnetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subnets_); + onChanged(); + return this; + } + /** + * repeated string Subnets = 2; + */ + public Builder clearSubnets() { + subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * repeated string Subnets = 2; + */ + public Builder addSubnetsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSubnetsIsMutable(); + subnets_.add(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:flyte.plugins.VpcConfig) + } + + // @@protoc_insertion_point(class_scope:flyte.plugins.VpcConfig) + private static final flyte.plugins.Sagemaker.VpcConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.VpcConfig(); + } + + public static flyte.plugins.Sagemaker.VpcConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VpcConfig(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 flyte.plugins.Sagemaker.VpcConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SagemakerTrainingJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyte.plugins.SagemakerTrainingJob) + com.google.protobuf.MessageOrBuilder { + + /** + * string Region = 1; + */ + java.lang.String getRegion(); + /** + * string Region = 1; + */ + com.google.protobuf.ByteString + getRegionBytes(); + + /** + * string RoleArn = 2; + */ + java.lang.String getRoleArn(); + /** + * string RoleArn = 2; + */ + com.google.protobuf.ByteString + getRoleArnBytes(); + + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + boolean hasAlgorithmSpecification(); + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + flyte.plugins.Sagemaker.AlgorithmSpecification getAlgorithmSpecification(); + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); + + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + boolean hasResourceConfig(); + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + flyte.plugins.Sagemaker.ResourceConfig getResourceConfig(); + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + flyte.plugins.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder(); + + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + boolean hasStoppingCondition(); + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + flyte.plugins.Sagemaker.StoppingCondition getStoppingCondition(); + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + flyte.plugins.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder(); + + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + boolean hasVpcConfig(); + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + flyte.plugins.Sagemaker.VpcConfig getVpcConfig(); + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + flyte.plugins.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder(); + + /** + * bool EnableSpotTraining = 7; + */ + boolean getEnableSpotTraining(); + } + /** + * Protobuf type {@code flyte.plugins.SagemakerTrainingJob} + */ + public static final class SagemakerTrainingJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyte.plugins.SagemakerTrainingJob) + SagemakerTrainingJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use SagemakerTrainingJob.newBuilder() to construct. + private SagemakerTrainingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SagemakerTrainingJob() { + region_ = ""; + roleArn_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SagemakerTrainingJob( + 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(); + + region_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + roleArn_ = s; + break; + } + case 26: { + flyte.plugins.Sagemaker.AlgorithmSpecification.Builder subBuilder = null; + if (algorithmSpecification_ != null) { + subBuilder = algorithmSpecification_.toBuilder(); + } + algorithmSpecification_ = input.readMessage(flyte.plugins.Sagemaker.AlgorithmSpecification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(algorithmSpecification_); + algorithmSpecification_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyte.plugins.Sagemaker.ResourceConfig.Builder subBuilder = null; + if (resourceConfig_ != null) { + subBuilder = resourceConfig_.toBuilder(); + } + resourceConfig_ = input.readMessage(flyte.plugins.Sagemaker.ResourceConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceConfig_); + resourceConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyte.plugins.Sagemaker.StoppingCondition.Builder subBuilder = null; + if (stoppingCondition_ != null) { + subBuilder = stoppingCondition_.toBuilder(); + } + stoppingCondition_ = input.readMessage(flyte.plugins.Sagemaker.StoppingCondition.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stoppingCondition_); + stoppingCondition_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + flyte.plugins.Sagemaker.VpcConfig.Builder subBuilder = null; + if (vpcConfig_ != null) { + subBuilder = vpcConfig_.toBuilder(); + } + vpcConfig_ = input.readMessage(flyte.plugins.Sagemaker.VpcConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(vpcConfig_); + vpcConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 56: { + + enableSpotTraining_ = input.readBool(); + 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 flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerTrainingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerTrainingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.SagemakerTrainingJob.class, flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder.class); + } + + public static final int REGION_FIELD_NUMBER = 1; + private volatile java.lang.Object region_; + /** + * string Region = 1; + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * string Region = 1; + */ + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLEARN_FIELD_NUMBER = 2; + private volatile java.lang.Object roleArn_; + /** + * string RoleArn = 2; + */ + public java.lang.String getRoleArn() { + java.lang.Object ref = roleArn_; + 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(); + roleArn_ = s; + return s; + } + } + /** + * string RoleArn = 2; + */ + public com.google.protobuf.ByteString + getRoleArnBytes() { + java.lang.Object ref = roleArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + roleArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALGORITHMSPECIFICATION_FIELD_NUMBER = 3; + private flyte.plugins.Sagemaker.AlgorithmSpecification algorithmSpecification_; + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public boolean hasAlgorithmSpecification() { + return algorithmSpecification_ != null; + } + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public flyte.plugins.Sagemaker.AlgorithmSpecification getAlgorithmSpecification() { + return algorithmSpecification_ == null ? flyte.plugins.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + return getAlgorithmSpecification(); + } + + public static final int RESOURCECONFIG_FIELD_NUMBER = 4; + private flyte.plugins.Sagemaker.ResourceConfig resourceConfig_; + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + public boolean hasResourceConfig() { + return resourceConfig_ != null; + } + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + public flyte.plugins.Sagemaker.ResourceConfig getResourceConfig() { + return resourceConfig_ == null ? flyte.plugins.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; + } + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + public flyte.plugins.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder() { + return getResourceConfig(); + } + + public static final int STOPPINGCONDITION_FIELD_NUMBER = 5; + private flyte.plugins.Sagemaker.StoppingCondition stoppingCondition_; + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + public boolean hasStoppingCondition() { + return stoppingCondition_ != null; + } + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + public flyte.plugins.Sagemaker.StoppingCondition getStoppingCondition() { + return stoppingCondition_ == null ? flyte.plugins.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; + } + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + public flyte.plugins.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { + return getStoppingCondition(); + } + + public static final int VPCCONFIG_FIELD_NUMBER = 6; + private flyte.plugins.Sagemaker.VpcConfig vpcConfig_; + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + public boolean hasVpcConfig() { + return vpcConfig_ != null; + } + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + public flyte.plugins.Sagemaker.VpcConfig getVpcConfig() { + return vpcConfig_ == null ? flyte.plugins.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; + } + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + public flyte.plugins.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder() { + return getVpcConfig(); + } + + public static final int ENABLESPOTTRAINING_FIELD_NUMBER = 7; + private boolean enableSpotTraining_; + /** + * bool EnableSpotTraining = 7; + */ + public boolean getEnableSpotTraining() { + return enableSpotTraining_; + } + + 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 (!getRegionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, region_); + } + if (!getRoleArnBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roleArn_); + } + if (algorithmSpecification_ != null) { + output.writeMessage(3, getAlgorithmSpecification()); + } + if (resourceConfig_ != null) { + output.writeMessage(4, getResourceConfig()); + } + if (stoppingCondition_ != null) { + output.writeMessage(5, getStoppingCondition()); + } + if (vpcConfig_ != null) { + output.writeMessage(6, getVpcConfig()); + } + if (enableSpotTraining_ != false) { + output.writeBool(7, enableSpotTraining_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRegionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, region_); + } + if (!getRoleArnBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, roleArn_); + } + if (algorithmSpecification_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAlgorithmSpecification()); + } + if (resourceConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResourceConfig()); + } + if (stoppingCondition_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStoppingCondition()); + } + if (vpcConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getVpcConfig()); + } + if (enableSpotTraining_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, enableSpotTraining_); + } + 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 flyte.plugins.Sagemaker.SagemakerTrainingJob)) { + return super.equals(obj); + } + flyte.plugins.Sagemaker.SagemakerTrainingJob other = (flyte.plugins.Sagemaker.SagemakerTrainingJob) obj; + + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getRoleArn() + .equals(other.getRoleArn())) return false; + if (hasAlgorithmSpecification() != other.hasAlgorithmSpecification()) return false; + if (hasAlgorithmSpecification()) { + if (!getAlgorithmSpecification() + .equals(other.getAlgorithmSpecification())) return false; + } + if (hasResourceConfig() != other.hasResourceConfig()) return false; + if (hasResourceConfig()) { + if (!getResourceConfig() + .equals(other.getResourceConfig())) return false; + } + if (hasStoppingCondition() != other.hasStoppingCondition()) return false; + if (hasStoppingCondition()) { + if (!getStoppingCondition() + .equals(other.getStoppingCondition())) return false; + } + if (hasVpcConfig() != other.hasVpcConfig()) return false; + if (hasVpcConfig()) { + if (!getVpcConfig() + .equals(other.getVpcConfig())) return false; + } + if (getEnableSpotTraining() + != other.getEnableSpotTraining()) 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) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + ROLEARN_FIELD_NUMBER; + hash = (53 * hash) + getRoleArn().hashCode(); + if (hasAlgorithmSpecification()) { + hash = (37 * hash) + ALGORITHMSPECIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmSpecification().hashCode(); + } + if (hasResourceConfig()) { + hash = (37 * hash) + RESOURCECONFIG_FIELD_NUMBER; + hash = (53 * hash) + getResourceConfig().hashCode(); + } + if (hasStoppingCondition()) { + hash = (37 * hash) + STOPPINGCONDITION_FIELD_NUMBER; + hash = (53 * hash) + getStoppingCondition().hashCode(); + } + if (hasVpcConfig()) { + hash = (37 * hash) + VPCCONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVpcConfig().hashCode(); + } + hash = (37 * hash) + ENABLESPOTTRAINING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSpotTraining()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.SagemakerTrainingJob 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 flyte.plugins.Sagemaker.SagemakerTrainingJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.SagemakerTrainingJob 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 flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.SagemakerTrainingJob 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(flyte.plugins.Sagemaker.SagemakerTrainingJob 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 flyte.plugins.SagemakerTrainingJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyte.plugins.SagemakerTrainingJob) + flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerTrainingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerTrainingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.SagemakerTrainingJob.class, flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder.class); + } + + // Construct using flyte.plugins.Sagemaker.SagemakerTrainingJob.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(); + region_ = ""; + + roleArn_ = ""; + + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = null; + } else { + algorithmSpecification_ = null; + algorithmSpecificationBuilder_ = null; + } + if (resourceConfigBuilder_ == null) { + resourceConfig_ = null; + } else { + resourceConfig_ = null; + resourceConfigBuilder_ = null; + } + if (stoppingConditionBuilder_ == null) { + stoppingCondition_ = null; + } else { + stoppingCondition_ = null; + stoppingConditionBuilder_ = null; + } + if (vpcConfigBuilder_ == null) { + vpcConfig_ = null; + } else { + vpcConfig_ = null; + vpcConfigBuilder_ = null; + } + enableSpotTraining_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerTrainingJob_descriptor; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.SagemakerTrainingJob getDefaultInstanceForType() { + return flyte.plugins.Sagemaker.SagemakerTrainingJob.getDefaultInstance(); + } + + @java.lang.Override + public flyte.plugins.Sagemaker.SagemakerTrainingJob build() { + flyte.plugins.Sagemaker.SagemakerTrainingJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.SagemakerTrainingJob buildPartial() { + flyte.plugins.Sagemaker.SagemakerTrainingJob result = new flyte.plugins.Sagemaker.SagemakerTrainingJob(this); + result.region_ = region_; + result.roleArn_ = roleArn_; + if (algorithmSpecificationBuilder_ == null) { + result.algorithmSpecification_ = algorithmSpecification_; + } else { + result.algorithmSpecification_ = algorithmSpecificationBuilder_.build(); + } + if (resourceConfigBuilder_ == null) { + result.resourceConfig_ = resourceConfig_; + } else { + result.resourceConfig_ = resourceConfigBuilder_.build(); + } + if (stoppingConditionBuilder_ == null) { + result.stoppingCondition_ = stoppingCondition_; + } else { + result.stoppingCondition_ = stoppingConditionBuilder_.build(); + } + if (vpcConfigBuilder_ == null) { + result.vpcConfig_ = vpcConfig_; + } else { + result.vpcConfig_ = vpcConfigBuilder_.build(); + } + result.enableSpotTraining_ = enableSpotTraining_; + 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 flyte.plugins.Sagemaker.SagemakerTrainingJob) { + return mergeFrom((flyte.plugins.Sagemaker.SagemakerTrainingJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyte.plugins.Sagemaker.SagemakerTrainingJob other) { + if (other == flyte.plugins.Sagemaker.SagemakerTrainingJob.getDefaultInstance()) return this; + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + onChanged(); + } + if (!other.getRoleArn().isEmpty()) { + roleArn_ = other.roleArn_; + onChanged(); + } + if (other.hasAlgorithmSpecification()) { + mergeAlgorithmSpecification(other.getAlgorithmSpecification()); + } + if (other.hasResourceConfig()) { + mergeResourceConfig(other.getResourceConfig()); + } + if (other.hasStoppingCondition()) { + mergeStoppingCondition(other.getStoppingCondition()); + } + if (other.hasVpcConfig()) { + mergeVpcConfig(other.getVpcConfig()); + } + if (other.getEnableSpotTraining() != false) { + setEnableSpotTraining(other.getEnableSpotTraining()); + } + 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 { + flyte.plugins.Sagemaker.SagemakerTrainingJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyte.plugins.Sagemaker.SagemakerTrainingJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object region_ = ""; + /** + * string Region = 1; + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string Region = 1; + */ + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string Region = 1; + */ + public Builder setRegion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + region_ = value; + onChanged(); + return this; + } + /** + * string Region = 1; + */ + public Builder clearRegion() { + + region_ = getDefaultInstance().getRegion(); + onChanged(); + return this; + } + /** + * string Region = 1; + */ + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + region_ = value; + onChanged(); + return this; + } + + private java.lang.Object roleArn_ = ""; + /** + * string RoleArn = 2; + */ + public java.lang.String getRoleArn() { + java.lang.Object ref = roleArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + roleArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string RoleArn = 2; + */ + public com.google.protobuf.ByteString + getRoleArnBytes() { + java.lang.Object ref = roleArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + roleArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string RoleArn = 2; + */ + public Builder setRoleArn( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + roleArn_ = value; + onChanged(); + return this; + } + /** + * string RoleArn = 2; + */ + public Builder clearRoleArn() { + + roleArn_ = getDefaultInstance().getRoleArn(); + onChanged(); + return this; + } + /** + * string RoleArn = 2; + */ + public Builder setRoleArnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + roleArn_ = value; + onChanged(); + return this; + } + + private flyte.plugins.Sagemaker.AlgorithmSpecification algorithmSpecification_; + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.AlgorithmSpecification, flyte.plugins.Sagemaker.AlgorithmSpecification.Builder, flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public boolean hasAlgorithmSpecification() { + return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; + } + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public flyte.plugins.Sagemaker.AlgorithmSpecification getAlgorithmSpecification() { + if (algorithmSpecificationBuilder_ == null) { + return algorithmSpecification_ == null ? flyte.plugins.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } else { + return algorithmSpecificationBuilder_.getMessage(); + } + } + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public Builder setAlgorithmSpecification(flyte.plugins.Sagemaker.AlgorithmSpecification value) { + if (algorithmSpecificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + algorithmSpecification_ = value; + onChanged(); + } else { + algorithmSpecificationBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public Builder setAlgorithmSpecification( + flyte.plugins.Sagemaker.AlgorithmSpecification.Builder builderForValue) { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = builderForValue.build(); + onChanged(); + } else { + algorithmSpecificationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public Builder mergeAlgorithmSpecification(flyte.plugins.Sagemaker.AlgorithmSpecification value) { + if (algorithmSpecificationBuilder_ == null) { + if (algorithmSpecification_ != null) { + algorithmSpecification_ = + flyte.plugins.Sagemaker.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); + } else { + algorithmSpecification_ = value; + } + onChanged(); + } else { + algorithmSpecificationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public Builder clearAlgorithmSpecification() { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = null; + onChanged(); + } else { + algorithmSpecification_ = null; + algorithmSpecificationBuilder_ = null; + } + + return this; + } + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public flyte.plugins.Sagemaker.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { + + onChanged(); + return getAlgorithmSpecificationFieldBuilder().getBuilder(); + } + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + if (algorithmSpecificationBuilder_ != null) { + return algorithmSpecificationBuilder_.getMessageOrBuilder(); + } else { + return algorithmSpecification_ == null ? + flyte.plugins.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } + } + /** + * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.AlgorithmSpecification, flyte.plugins.Sagemaker.AlgorithmSpecification.Builder, flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder> + getAlgorithmSpecificationFieldBuilder() { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.AlgorithmSpecification, flyte.plugins.Sagemaker.AlgorithmSpecification.Builder, flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder>( + getAlgorithmSpecification(), + getParentForChildren(), + isClean()); + algorithmSpecification_ = null; + } + return algorithmSpecificationBuilder_; + } + + private flyte.plugins.Sagemaker.ResourceConfig resourceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.ResourceConfig, flyte.plugins.Sagemaker.ResourceConfig.Builder, flyte.plugins.Sagemaker.ResourceConfigOrBuilder> resourceConfigBuilder_; + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + public boolean hasResourceConfig() { + return resourceConfigBuilder_ != null || resourceConfig_ != null; + } + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + public flyte.plugins.Sagemaker.ResourceConfig getResourceConfig() { + if (resourceConfigBuilder_ == null) { + return resourceConfig_ == null ? flyte.plugins.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; + } else { + return resourceConfigBuilder_.getMessage(); + } + } + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + public Builder setResourceConfig(flyte.plugins.Sagemaker.ResourceConfig value) { + if (resourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceConfig_ = value; + onChanged(); + } else { + resourceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + public Builder setResourceConfig( + flyte.plugins.Sagemaker.ResourceConfig.Builder builderForValue) { + if (resourceConfigBuilder_ == null) { + resourceConfig_ = builderForValue.build(); + onChanged(); + } else { + resourceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + public Builder mergeResourceConfig(flyte.plugins.Sagemaker.ResourceConfig value) { + if (resourceConfigBuilder_ == null) { + if (resourceConfig_ != null) { + resourceConfig_ = + flyte.plugins.Sagemaker.ResourceConfig.newBuilder(resourceConfig_).mergeFrom(value).buildPartial(); + } else { + resourceConfig_ = value; + } + onChanged(); + } else { + resourceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + public Builder clearResourceConfig() { + if (resourceConfigBuilder_ == null) { + resourceConfig_ = null; + onChanged(); + } else { + resourceConfig_ = null; + resourceConfigBuilder_ = null; + } + + return this; + } + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + public flyte.plugins.Sagemaker.ResourceConfig.Builder getResourceConfigBuilder() { + + onChanged(); + return getResourceConfigFieldBuilder().getBuilder(); + } + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + public flyte.plugins.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder() { + if (resourceConfigBuilder_ != null) { + return resourceConfigBuilder_.getMessageOrBuilder(); + } else { + return resourceConfig_ == null ? + flyte.plugins.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; + } + } + /** + * .flyte.plugins.ResourceConfig ResourceConfig = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.ResourceConfig, flyte.plugins.Sagemaker.ResourceConfig.Builder, flyte.plugins.Sagemaker.ResourceConfigOrBuilder> + getResourceConfigFieldBuilder() { + if (resourceConfigBuilder_ == null) { + resourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.ResourceConfig, flyte.plugins.Sagemaker.ResourceConfig.Builder, flyte.plugins.Sagemaker.ResourceConfigOrBuilder>( + getResourceConfig(), + getParentForChildren(), + isClean()); + resourceConfig_ = null; + } + return resourceConfigBuilder_; + } + + private flyte.plugins.Sagemaker.StoppingCondition stoppingCondition_; + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.StoppingCondition, flyte.plugins.Sagemaker.StoppingCondition.Builder, flyte.plugins.Sagemaker.StoppingConditionOrBuilder> stoppingConditionBuilder_; + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + public boolean hasStoppingCondition() { + return stoppingConditionBuilder_ != null || stoppingCondition_ != null; + } + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + public flyte.plugins.Sagemaker.StoppingCondition getStoppingCondition() { + if (stoppingConditionBuilder_ == null) { + return stoppingCondition_ == null ? flyte.plugins.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; + } else { + return stoppingConditionBuilder_.getMessage(); + } + } + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + public Builder setStoppingCondition(flyte.plugins.Sagemaker.StoppingCondition value) { + if (stoppingConditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stoppingCondition_ = value; + onChanged(); + } else { + stoppingConditionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + public Builder setStoppingCondition( + flyte.plugins.Sagemaker.StoppingCondition.Builder builderForValue) { + if (stoppingConditionBuilder_ == null) { + stoppingCondition_ = builderForValue.build(); + onChanged(); + } else { + stoppingConditionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + public Builder mergeStoppingCondition(flyte.plugins.Sagemaker.StoppingCondition value) { + if (stoppingConditionBuilder_ == null) { + if (stoppingCondition_ != null) { + stoppingCondition_ = + flyte.plugins.Sagemaker.StoppingCondition.newBuilder(stoppingCondition_).mergeFrom(value).buildPartial(); + } else { + stoppingCondition_ = value; + } + onChanged(); + } else { + stoppingConditionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + public Builder clearStoppingCondition() { + if (stoppingConditionBuilder_ == null) { + stoppingCondition_ = null; + onChanged(); + } else { + stoppingCondition_ = null; + stoppingConditionBuilder_ = null; + } + + return this; + } + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + public flyte.plugins.Sagemaker.StoppingCondition.Builder getStoppingConditionBuilder() { + + onChanged(); + return getStoppingConditionFieldBuilder().getBuilder(); + } + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + public flyte.plugins.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { + if (stoppingConditionBuilder_ != null) { + return stoppingConditionBuilder_.getMessageOrBuilder(); + } else { + return stoppingCondition_ == null ? + flyte.plugins.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; + } + } + /** + * .flyte.plugins.StoppingCondition StoppingCondition = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.StoppingCondition, flyte.plugins.Sagemaker.StoppingCondition.Builder, flyte.plugins.Sagemaker.StoppingConditionOrBuilder> + getStoppingConditionFieldBuilder() { + if (stoppingConditionBuilder_ == null) { + stoppingConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.StoppingCondition, flyte.plugins.Sagemaker.StoppingCondition.Builder, flyte.plugins.Sagemaker.StoppingConditionOrBuilder>( + getStoppingCondition(), + getParentForChildren(), + isClean()); + stoppingCondition_ = null; + } + return stoppingConditionBuilder_; + } + + private flyte.plugins.Sagemaker.VpcConfig vpcConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.VpcConfig, flyte.plugins.Sagemaker.VpcConfig.Builder, flyte.plugins.Sagemaker.VpcConfigOrBuilder> vpcConfigBuilder_; + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + public boolean hasVpcConfig() { + return vpcConfigBuilder_ != null || vpcConfig_ != null; + } + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + public flyte.plugins.Sagemaker.VpcConfig getVpcConfig() { + if (vpcConfigBuilder_ == null) { + return vpcConfig_ == null ? flyte.plugins.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; + } else { + return vpcConfigBuilder_.getMessage(); + } + } + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + public Builder setVpcConfig(flyte.plugins.Sagemaker.VpcConfig value) { + if (vpcConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vpcConfig_ = value; + onChanged(); + } else { + vpcConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + public Builder setVpcConfig( + flyte.plugins.Sagemaker.VpcConfig.Builder builderForValue) { + if (vpcConfigBuilder_ == null) { + vpcConfig_ = builderForValue.build(); + onChanged(); + } else { + vpcConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + public Builder mergeVpcConfig(flyte.plugins.Sagemaker.VpcConfig value) { + if (vpcConfigBuilder_ == null) { + if (vpcConfig_ != null) { + vpcConfig_ = + flyte.plugins.Sagemaker.VpcConfig.newBuilder(vpcConfig_).mergeFrom(value).buildPartial(); + } else { + vpcConfig_ = value; + } + onChanged(); + } else { + vpcConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + public Builder clearVpcConfig() { + if (vpcConfigBuilder_ == null) { + vpcConfig_ = null; + onChanged(); + } else { + vpcConfig_ = null; + vpcConfigBuilder_ = null; + } + + return this; + } + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + public flyte.plugins.Sagemaker.VpcConfig.Builder getVpcConfigBuilder() { + + onChanged(); + return getVpcConfigFieldBuilder().getBuilder(); + } + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + public flyte.plugins.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder() { + if (vpcConfigBuilder_ != null) { + return vpcConfigBuilder_.getMessageOrBuilder(); + } else { + return vpcConfig_ == null ? + flyte.plugins.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; + } + } + /** + * .flyte.plugins.VpcConfig VpcConfig = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.VpcConfig, flyte.plugins.Sagemaker.VpcConfig.Builder, flyte.plugins.Sagemaker.VpcConfigOrBuilder> + getVpcConfigFieldBuilder() { + if (vpcConfigBuilder_ == null) { + vpcConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.VpcConfig, flyte.plugins.Sagemaker.VpcConfig.Builder, flyte.plugins.Sagemaker.VpcConfigOrBuilder>( + getVpcConfig(), + getParentForChildren(), + isClean()); + vpcConfig_ = null; + } + return vpcConfigBuilder_; + } + + private boolean enableSpotTraining_ ; + /** + * bool EnableSpotTraining = 7; + */ + public boolean getEnableSpotTraining() { + return enableSpotTraining_; + } + /** + * bool EnableSpotTraining = 7; + */ + public Builder setEnableSpotTraining(boolean value) { + + enableSpotTraining_ = value; + onChanged(); + return this; + } + /** + * bool EnableSpotTraining = 7; + */ + public Builder clearEnableSpotTraining() { + + enableSpotTraining_ = false; + 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:flyte.plugins.SagemakerTrainingJob) + } + + // @@protoc_insertion_point(class_scope:flyte.plugins.SagemakerTrainingJob) + private static final flyte.plugins.Sagemaker.SagemakerTrainingJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.SagemakerTrainingJob(); + } + + public static flyte.plugins.Sagemaker.SagemakerTrainingJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SagemakerTrainingJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SagemakerTrainingJob(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 flyte.plugins.Sagemaker.SagemakerTrainingJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HPOJobObjectiveOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyte.plugins.HPOJobObjective) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyte.plugins.HPOJobObjectiveType Type = 1; + */ + int getTypeValue(); + /** + * .flyte.plugins.HPOJobObjectiveType Type = 1; + */ + flyte.plugins.Sagemaker.HPOJobObjectiveType getType(); + + /** + * string MetricName = 2; + */ + java.lang.String getMetricName(); + /** + * string MetricName = 2; + */ + com.google.protobuf.ByteString + getMetricNameBytes(); + } + /** + * Protobuf type {@code flyte.plugins.HPOJobObjective} + */ + public static final class HPOJobObjective extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyte.plugins.HPOJobObjective) + HPOJobObjectiveOrBuilder { + private static final long serialVersionUID = 0L; + // Use HPOJobObjective.newBuilder() to construct. + private HPOJobObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HPOJobObjective() { + type_ = 0; + metricName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HPOJobObjective( + 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 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + metricName_ = 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 flyte.plugins.Sagemaker.internal_static_flyte_plugins_HPOJobObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_HPOJobObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.HPOJobObjective.class, flyte.plugins.Sagemaker.HPOJobObjective.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * .flyte.plugins.HPOJobObjectiveType Type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * .flyte.plugins.HPOJobObjectiveType Type = 1; + */ + public flyte.plugins.Sagemaker.HPOJobObjectiveType getType() { + @SuppressWarnings("deprecation") + flyte.plugins.Sagemaker.HPOJobObjectiveType result = flyte.plugins.Sagemaker.HPOJobObjectiveType.valueOf(type_); + return result == null ? flyte.plugins.Sagemaker.HPOJobObjectiveType.UNRECOGNIZED : result; + } + + public static final int METRICNAME_FIELD_NUMBER = 2; + private volatile java.lang.Object metricName_; + /** + * string MetricName = 2; + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + 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(); + metricName_ = s; + return s; + } + } + /** + * string MetricName = 2; + */ + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = 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 (type_ != flyte.plugins.Sagemaker.HPOJobObjectiveType.MINIMIZE.getNumber()) { + output.writeEnum(1, type_); + } + if (!getMetricNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != flyte.plugins.Sagemaker.HPOJobObjectiveType.MINIMIZE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!getMetricNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricName_); + } + 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 flyte.plugins.Sagemaker.HPOJobObjective)) { + return super.equals(obj); + } + flyte.plugins.Sagemaker.HPOJobObjective other = (flyte.plugins.Sagemaker.HPOJobObjective) obj; + + if (type_ != other.type_) return false; + if (!getMetricName() + .equals(other.getMetricName())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + METRICNAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.HPOJobObjective 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 flyte.plugins.Sagemaker.HPOJobObjective parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.HPOJobObjective 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 flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.HPOJobObjective 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(flyte.plugins.Sagemaker.HPOJobObjective 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 flyte.plugins.HPOJobObjective} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyte.plugins.HPOJobObjective) + flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_HPOJobObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_HPOJobObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.HPOJobObjective.class, flyte.plugins.Sagemaker.HPOJobObjective.Builder.class); + } + + // Construct using flyte.plugins.Sagemaker.HPOJobObjective.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(); + type_ = 0; + + metricName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_HPOJobObjective_descriptor; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.HPOJobObjective getDefaultInstanceForType() { + return flyte.plugins.Sagemaker.HPOJobObjective.getDefaultInstance(); + } + + @java.lang.Override + public flyte.plugins.Sagemaker.HPOJobObjective build() { + flyte.plugins.Sagemaker.HPOJobObjective result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.HPOJobObjective buildPartial() { + flyte.plugins.Sagemaker.HPOJobObjective result = new flyte.plugins.Sagemaker.HPOJobObjective(this); + result.type_ = type_; + result.metricName_ = metricName_; + 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 flyte.plugins.Sagemaker.HPOJobObjective) { + return mergeFrom((flyte.plugins.Sagemaker.HPOJobObjective)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyte.plugins.Sagemaker.HPOJobObjective other) { + if (other == flyte.plugins.Sagemaker.HPOJobObjective.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + 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 { + flyte.plugins.Sagemaker.HPOJobObjective parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyte.plugins.Sagemaker.HPOJobObjective) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + * .flyte.plugins.HPOJobObjectiveType Type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * .flyte.plugins.HPOJobObjectiveType Type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * .flyte.plugins.HPOJobObjectiveType Type = 1; + */ + public flyte.plugins.Sagemaker.HPOJobObjectiveType getType() { + @SuppressWarnings("deprecation") + flyte.plugins.Sagemaker.HPOJobObjectiveType result = flyte.plugins.Sagemaker.HPOJobObjectiveType.valueOf(type_); + return result == null ? flyte.plugins.Sagemaker.HPOJobObjectiveType.UNRECOGNIZED : result; + } + /** + * .flyte.plugins.HPOJobObjectiveType Type = 1; + */ + public Builder setType(flyte.plugins.Sagemaker.HPOJobObjectiveType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyte.plugins.HPOJobObjectiveType Type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object metricName_ = ""; + /** + * string MetricName = 2; + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string MetricName = 2; + */ + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string MetricName = 2; + */ + public Builder setMetricName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metricName_ = value; + onChanged(); + return this; + } + /** + * string MetricName = 2; + */ + public Builder clearMetricName() { + + metricName_ = getDefaultInstance().getMetricName(); + onChanged(); + return this; + } + /** + * string MetricName = 2; + */ + public Builder setMetricNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metricName_ = 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:flyte.plugins.HPOJobObjective) + } + + // @@protoc_insertion_point(class_scope:flyte.plugins.HPOJobObjective) + private static final flyte.plugins.Sagemaker.HPOJobObjective DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.HPOJobObjective(); + } + + public static flyte.plugins.Sagemaker.HPOJobObjective getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HPOJobObjective parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HPOJobObjective(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 flyte.plugins.Sagemaker.HPOJobObjective getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SagemakerHPOJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyte.plugins.SagemakerHPOJob) + com.google.protobuf.MessageOrBuilder { + + /** + * string Strategy = 1; + */ + java.lang.String getStrategy(); + /** + * string Strategy = 1; + */ + com.google.protobuf.ByteString + getStrategyBytes(); + + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + boolean hasObjective(); + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + flyte.plugins.Sagemaker.HPOJobObjective getObjective(); + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder(); + + /** + * int64 MaxNumberOfTrainingJobs = 3; + */ + long getMaxNumberOfTrainingJobs(); + + /** + * int64 MaxParallelTrainingJobs = 4; + */ + long getMaxParallelTrainingJobs(); + + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + boolean hasParameterRanges(); + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + flyte.plugins.Sagemaker.ParameterRanges getParameterRanges(); + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + flyte.plugins.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder(); + + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + boolean hasTrainingJob(); + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + flyte.plugins.Sagemaker.SagemakerTrainingJob getTrainingJob(); + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder(); + } + /** + * Protobuf type {@code flyte.plugins.SagemakerHPOJob} + */ + public static final class SagemakerHPOJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyte.plugins.SagemakerHPOJob) + SagemakerHPOJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use SagemakerHPOJob.newBuilder() to construct. + private SagemakerHPOJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SagemakerHPOJob() { + strategy_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SagemakerHPOJob( + 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(); + + strategy_ = s; + break; + } + case 18: { + flyte.plugins.Sagemaker.HPOJobObjective.Builder subBuilder = null; + if (objective_ != null) { + subBuilder = objective_.toBuilder(); + } + objective_ = input.readMessage(flyte.plugins.Sagemaker.HPOJobObjective.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(objective_); + objective_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + maxNumberOfTrainingJobs_ = input.readInt64(); + break; + } + case 32: { + + maxParallelTrainingJobs_ = input.readInt64(); + break; + } + case 42: { + flyte.plugins.Sagemaker.ParameterRanges.Builder subBuilder = null; + if (parameterRanges_ != null) { + subBuilder = parameterRanges_.toBuilder(); + } + parameterRanges_ = input.readMessage(flyte.plugins.Sagemaker.ParameterRanges.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameterRanges_); + parameterRanges_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder subBuilder = null; + if (trainingJob_ != null) { + subBuilder = trainingJob_.toBuilder(); + } + trainingJob_ = input.readMessage(flyte.plugins.Sagemaker.SagemakerTrainingJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingJob_); + trainingJob_ = 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 flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerHPOJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerHPOJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.SagemakerHPOJob.class, flyte.plugins.Sagemaker.SagemakerHPOJob.Builder.class); + } + + public static final int STRATEGY_FIELD_NUMBER = 1; + private volatile java.lang.Object strategy_; + /** + * string Strategy = 1; + */ + public java.lang.String getStrategy() { + java.lang.Object ref = strategy_; + 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(); + strategy_ = s; + return s; + } + } + /** + * string Strategy = 1; + */ + public com.google.protobuf.ByteString + getStrategyBytes() { + java.lang.Object ref = strategy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + strategy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECTIVE_FIELD_NUMBER = 2; + private flyte.plugins.Sagemaker.HPOJobObjective objective_; + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + public boolean hasObjective() { + return objective_ != null; + } + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + public flyte.plugins.Sagemaker.HPOJobObjective getObjective() { + return objective_ == null ? flyte.plugins.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; + } + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + public flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { + return getObjective(); + } + + public static final int MAXNUMBEROFTRAININGJOBS_FIELD_NUMBER = 3; + private long maxNumberOfTrainingJobs_; + /** + * int64 MaxNumberOfTrainingJobs = 3; + */ + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; + } + + public static final int MAXPARALLELTRAININGJOBS_FIELD_NUMBER = 4; + private long maxParallelTrainingJobs_; + /** + * int64 MaxParallelTrainingJobs = 4; + */ + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; + } + + public static final int PARAMETERRANGES_FIELD_NUMBER = 5; + private flyte.plugins.Sagemaker.ParameterRanges parameterRanges_; + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + public boolean hasParameterRanges() { + return parameterRanges_ != null; + } + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + public flyte.plugins.Sagemaker.ParameterRanges getParameterRanges() { + return parameterRanges_ == null ? flyte.plugins.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; + } + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + public flyte.plugins.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder() { + return getParameterRanges(); + } + + public static final int TRAININGJOB_FIELD_NUMBER = 6; + private flyte.plugins.Sagemaker.SagemakerTrainingJob trainingJob_; + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + public boolean hasTrainingJob() { + return trainingJob_ != null; + } + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + public flyte.plugins.Sagemaker.SagemakerTrainingJob getTrainingJob() { + return trainingJob_ == null ? flyte.plugins.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; + } + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + public flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder() { + return getTrainingJob(); + } + + 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 (!getStrategyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, strategy_); + } + if (objective_ != null) { + output.writeMessage(2, getObjective()); + } + if (maxNumberOfTrainingJobs_ != 0L) { + output.writeInt64(3, maxNumberOfTrainingJobs_); + } + if (maxParallelTrainingJobs_ != 0L) { + output.writeInt64(4, maxParallelTrainingJobs_); + } + if (parameterRanges_ != null) { + output.writeMessage(5, getParameterRanges()); + } + if (trainingJob_ != null) { + output.writeMessage(6, getTrainingJob()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getStrategyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, strategy_); + } + if (objective_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getObjective()); + } + if (maxNumberOfTrainingJobs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, maxNumberOfTrainingJobs_); + } + if (maxParallelTrainingJobs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, maxParallelTrainingJobs_); + } + if (parameterRanges_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getParameterRanges()); + } + if (trainingJob_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getTrainingJob()); + } + 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 flyte.plugins.Sagemaker.SagemakerHPOJob)) { + return super.equals(obj); + } + flyte.plugins.Sagemaker.SagemakerHPOJob other = (flyte.plugins.Sagemaker.SagemakerHPOJob) obj; + + if (!getStrategy() + .equals(other.getStrategy())) return false; + if (hasObjective() != other.hasObjective()) return false; + if (hasObjective()) { + if (!getObjective() + .equals(other.getObjective())) return false; + } + if (getMaxNumberOfTrainingJobs() + != other.getMaxNumberOfTrainingJobs()) return false; + if (getMaxParallelTrainingJobs() + != other.getMaxParallelTrainingJobs()) return false; + if (hasParameterRanges() != other.hasParameterRanges()) return false; + if (hasParameterRanges()) { + if (!getParameterRanges() + .equals(other.getParameterRanges())) return false; + } + if (hasTrainingJob() != other.hasTrainingJob()) return false; + if (hasTrainingJob()) { + if (!getTrainingJob() + .equals(other.getTrainingJob())) 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) + STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getStrategy().hashCode(); + if (hasObjective()) { + hash = (37 * hash) + OBJECTIVE_FIELD_NUMBER; + hash = (53 * hash) + getObjective().hashCode(); + } + hash = (37 * hash) + MAXNUMBEROFTRAININGJOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxNumberOfTrainingJobs()); + hash = (37 * hash) + MAXPARALLELTRAININGJOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxParallelTrainingJobs()); + if (hasParameterRanges()) { + hash = (37 * hash) + PARAMETERRANGES_FIELD_NUMBER; + hash = (53 * hash) + getParameterRanges().hashCode(); + } + if (hasTrainingJob()) { + hash = (37 * hash) + TRAININGJOB_FIELD_NUMBER; + hash = (53 * hash) + getTrainingJob().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.SagemakerHPOJob 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 flyte.plugins.Sagemaker.SagemakerHPOJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.SagemakerHPOJob 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 flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyte.plugins.Sagemaker.SagemakerHPOJob 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(flyte.plugins.Sagemaker.SagemakerHPOJob 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 flyte.plugins.SagemakerHPOJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyte.plugins.SagemakerHPOJob) + flyte.plugins.Sagemaker.SagemakerHPOJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerHPOJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerHPOJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyte.plugins.Sagemaker.SagemakerHPOJob.class, flyte.plugins.Sagemaker.SagemakerHPOJob.Builder.class); + } + + // Construct using flyte.plugins.Sagemaker.SagemakerHPOJob.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(); + strategy_ = ""; + + if (objectiveBuilder_ == null) { + objective_ = null; + } else { + objective_ = null; + objectiveBuilder_ = null; + } + maxNumberOfTrainingJobs_ = 0L; + + maxParallelTrainingJobs_ = 0L; + + if (parameterRangesBuilder_ == null) { + parameterRanges_ = null; + } else { + parameterRanges_ = null; + parameterRangesBuilder_ = null; + } + if (trainingJobBuilder_ == null) { + trainingJob_ = null; + } else { + trainingJob_ = null; + trainingJobBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerHPOJob_descriptor; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { + return flyte.plugins.Sagemaker.SagemakerHPOJob.getDefaultInstance(); + } + + @java.lang.Override + public flyte.plugins.Sagemaker.SagemakerHPOJob build() { + flyte.plugins.Sagemaker.SagemakerHPOJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyte.plugins.Sagemaker.SagemakerHPOJob buildPartial() { + flyte.plugins.Sagemaker.SagemakerHPOJob result = new flyte.plugins.Sagemaker.SagemakerHPOJob(this); + result.strategy_ = strategy_; + if (objectiveBuilder_ == null) { + result.objective_ = objective_; + } else { + result.objective_ = objectiveBuilder_.build(); + } + result.maxNumberOfTrainingJobs_ = maxNumberOfTrainingJobs_; + result.maxParallelTrainingJobs_ = maxParallelTrainingJobs_; + if (parameterRangesBuilder_ == null) { + result.parameterRanges_ = parameterRanges_; + } else { + result.parameterRanges_ = parameterRangesBuilder_.build(); + } + if (trainingJobBuilder_ == null) { + result.trainingJob_ = trainingJob_; + } else { + result.trainingJob_ = trainingJobBuilder_.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 flyte.plugins.Sagemaker.SagemakerHPOJob) { + return mergeFrom((flyte.plugins.Sagemaker.SagemakerHPOJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyte.plugins.Sagemaker.SagemakerHPOJob other) { + if (other == flyte.plugins.Sagemaker.SagemakerHPOJob.getDefaultInstance()) return this; + if (!other.getStrategy().isEmpty()) { + strategy_ = other.strategy_; + onChanged(); + } + if (other.hasObjective()) { + mergeObjective(other.getObjective()); + } + if (other.getMaxNumberOfTrainingJobs() != 0L) { + setMaxNumberOfTrainingJobs(other.getMaxNumberOfTrainingJobs()); + } + if (other.getMaxParallelTrainingJobs() != 0L) { + setMaxParallelTrainingJobs(other.getMaxParallelTrainingJobs()); + } + if (other.hasParameterRanges()) { + mergeParameterRanges(other.getParameterRanges()); + } + if (other.hasTrainingJob()) { + mergeTrainingJob(other.getTrainingJob()); + } + 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 { + flyte.plugins.Sagemaker.SagemakerHPOJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyte.plugins.Sagemaker.SagemakerHPOJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object strategy_ = ""; + /** + * string Strategy = 1; + */ + public java.lang.String getStrategy() { + java.lang.Object ref = strategy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + strategy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string Strategy = 1; + */ + public com.google.protobuf.ByteString + getStrategyBytes() { + java.lang.Object ref = strategy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + strategy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string Strategy = 1; + */ + public Builder setStrategy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + strategy_ = value; + onChanged(); + return this; + } + /** + * string Strategy = 1; + */ + public Builder clearStrategy() { + + strategy_ = getDefaultInstance().getStrategy(); + onChanged(); + return this; + } + /** + * string Strategy = 1; + */ + public Builder setStrategyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + strategy_ = value; + onChanged(); + return this; + } + + private flyte.plugins.Sagemaker.HPOJobObjective objective_; + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.HPOJobObjective, flyte.plugins.Sagemaker.HPOJobObjective.Builder, flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder> objectiveBuilder_; + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + public boolean hasObjective() { + return objectiveBuilder_ != null || objective_ != null; + } + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + public flyte.plugins.Sagemaker.HPOJobObjective getObjective() { + if (objectiveBuilder_ == null) { + return objective_ == null ? flyte.plugins.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; + } else { + return objectiveBuilder_.getMessage(); + } + } + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + public Builder setObjective(flyte.plugins.Sagemaker.HPOJobObjective value) { + if (objectiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + objective_ = value; + onChanged(); + } else { + objectiveBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + public Builder setObjective( + flyte.plugins.Sagemaker.HPOJobObjective.Builder builderForValue) { + if (objectiveBuilder_ == null) { + objective_ = builderForValue.build(); + onChanged(); + } else { + objectiveBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + public Builder mergeObjective(flyte.plugins.Sagemaker.HPOJobObjective value) { + if (objectiveBuilder_ == null) { + if (objective_ != null) { + objective_ = + flyte.plugins.Sagemaker.HPOJobObjective.newBuilder(objective_).mergeFrom(value).buildPartial(); + } else { + objective_ = value; + } + onChanged(); + } else { + objectiveBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + public Builder clearObjective() { + if (objectiveBuilder_ == null) { + objective_ = null; + onChanged(); + } else { + objective_ = null; + objectiveBuilder_ = null; + } + + return this; + } + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + public flyte.plugins.Sagemaker.HPOJobObjective.Builder getObjectiveBuilder() { + + onChanged(); + return getObjectiveFieldBuilder().getBuilder(); + } + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + public flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { + if (objectiveBuilder_ != null) { + return objectiveBuilder_.getMessageOrBuilder(); + } else { + return objective_ == null ? + flyte.plugins.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; + } + } + /** + * .flyte.plugins.HPOJobObjective Objective = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.HPOJobObjective, flyte.plugins.Sagemaker.HPOJobObjective.Builder, flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder> + getObjectiveFieldBuilder() { + if (objectiveBuilder_ == null) { + objectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.HPOJobObjective, flyte.plugins.Sagemaker.HPOJobObjective.Builder, flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder>( + getObjective(), + getParentForChildren(), + isClean()); + objective_ = null; + } + return objectiveBuilder_; + } + + private long maxNumberOfTrainingJobs_ ; + /** + * int64 MaxNumberOfTrainingJobs = 3; + */ + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; + } + /** + * int64 MaxNumberOfTrainingJobs = 3; + */ + public Builder setMaxNumberOfTrainingJobs(long value) { + + maxNumberOfTrainingJobs_ = value; + onChanged(); + return this; + } + /** + * int64 MaxNumberOfTrainingJobs = 3; + */ + public Builder clearMaxNumberOfTrainingJobs() { + + maxNumberOfTrainingJobs_ = 0L; + onChanged(); + return this; + } + + private long maxParallelTrainingJobs_ ; + /** + * int64 MaxParallelTrainingJobs = 4; + */ + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; + } + /** + * int64 MaxParallelTrainingJobs = 4; + */ + public Builder setMaxParallelTrainingJobs(long value) { + + maxParallelTrainingJobs_ = value; + onChanged(); + return this; + } + /** + * int64 MaxParallelTrainingJobs = 4; + */ + public Builder clearMaxParallelTrainingJobs() { + + maxParallelTrainingJobs_ = 0L; + onChanged(); + return this; + } + + private flyte.plugins.Sagemaker.ParameterRanges parameterRanges_; + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.ParameterRanges, flyte.plugins.Sagemaker.ParameterRanges.Builder, flyte.plugins.Sagemaker.ParameterRangesOrBuilder> parameterRangesBuilder_; + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + public boolean hasParameterRanges() { + return parameterRangesBuilder_ != null || parameterRanges_ != null; + } + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + public flyte.plugins.Sagemaker.ParameterRanges getParameterRanges() { + if (parameterRangesBuilder_ == null) { + return parameterRanges_ == null ? flyte.plugins.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; + } else { + return parameterRangesBuilder_.getMessage(); + } + } + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + public Builder setParameterRanges(flyte.plugins.Sagemaker.ParameterRanges value) { + if (parameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRanges_ = value; + onChanged(); + } else { + parameterRangesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + public Builder setParameterRanges( + flyte.plugins.Sagemaker.ParameterRanges.Builder builderForValue) { + if (parameterRangesBuilder_ == null) { + parameterRanges_ = builderForValue.build(); + onChanged(); + } else { + parameterRangesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + public Builder mergeParameterRanges(flyte.plugins.Sagemaker.ParameterRanges value) { + if (parameterRangesBuilder_ == null) { + if (parameterRanges_ != null) { + parameterRanges_ = + flyte.plugins.Sagemaker.ParameterRanges.newBuilder(parameterRanges_).mergeFrom(value).buildPartial(); + } else { + parameterRanges_ = value; + } + onChanged(); + } else { + parameterRangesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + public Builder clearParameterRanges() { + if (parameterRangesBuilder_ == null) { + parameterRanges_ = null; + onChanged(); + } else { + parameterRanges_ = null; + parameterRangesBuilder_ = null; + } + + return this; + } + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + public flyte.plugins.Sagemaker.ParameterRanges.Builder getParameterRangesBuilder() { + + onChanged(); + return getParameterRangesFieldBuilder().getBuilder(); + } + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + public flyte.plugins.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder() { + if (parameterRangesBuilder_ != null) { + return parameterRangesBuilder_.getMessageOrBuilder(); + } else { + return parameterRanges_ == null ? + flyte.plugins.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; + } + } + /** + * .flyte.plugins.ParameterRanges ParameterRanges = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.ParameterRanges, flyte.plugins.Sagemaker.ParameterRanges.Builder, flyte.plugins.Sagemaker.ParameterRangesOrBuilder> + getParameterRangesFieldBuilder() { + if (parameterRangesBuilder_ == null) { + parameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.ParameterRanges, flyte.plugins.Sagemaker.ParameterRanges.Builder, flyte.plugins.Sagemaker.ParameterRangesOrBuilder>( + getParameterRanges(), + getParentForChildren(), + isClean()); + parameterRanges_ = null; + } + return parameterRangesBuilder_; + } + + private flyte.plugins.Sagemaker.SagemakerTrainingJob trainingJob_; + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.SagemakerTrainingJob, flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder, flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder> trainingJobBuilder_; + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + public boolean hasTrainingJob() { + return trainingJobBuilder_ != null || trainingJob_ != null; + } + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + public flyte.plugins.Sagemaker.SagemakerTrainingJob getTrainingJob() { + if (trainingJobBuilder_ == null) { + return trainingJob_ == null ? flyte.plugins.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; + } else { + return trainingJobBuilder_.getMessage(); + } + } + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + public Builder setTrainingJob(flyte.plugins.Sagemaker.SagemakerTrainingJob value) { + if (trainingJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingJob_ = value; + onChanged(); + } else { + trainingJobBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + public Builder setTrainingJob( + flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder builderForValue) { + if (trainingJobBuilder_ == null) { + trainingJob_ = builderForValue.build(); + onChanged(); + } else { + trainingJobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + public Builder mergeTrainingJob(flyte.plugins.Sagemaker.SagemakerTrainingJob value) { + if (trainingJobBuilder_ == null) { + if (trainingJob_ != null) { + trainingJob_ = + flyte.plugins.Sagemaker.SagemakerTrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); + } else { + trainingJob_ = value; + } + onChanged(); + } else { + trainingJobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + public Builder clearTrainingJob() { + if (trainingJobBuilder_ == null) { + trainingJob_ = null; + onChanged(); + } else { + trainingJob_ = null; + trainingJobBuilder_ = null; + } + + return this; + } + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + public flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder getTrainingJobBuilder() { + + onChanged(); + return getTrainingJobFieldBuilder().getBuilder(); + } + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + public flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder() { + if (trainingJobBuilder_ != null) { + return trainingJobBuilder_.getMessageOrBuilder(); + } else { + return trainingJob_ == null ? + flyte.plugins.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; + } + } + /** + * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.SagemakerTrainingJob, flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder, flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder> + getTrainingJobFieldBuilder() { + if (trainingJobBuilder_ == null) { + trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyte.plugins.Sagemaker.SagemakerTrainingJob, flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder, flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder>( + getTrainingJob(), + getParentForChildren(), + isClean()); + trainingJob_ = null; + } + return trainingJobBuilder_; + } + @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:flyte.plugins.SagemakerHPOJob) + } + + // @@protoc_insertion_point(class_scope:flyte.plugins.SagemakerHPOJob) + private static final flyte.plugins.Sagemaker.SagemakerHPOJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.SagemakerHPOJob(); + } + + public static flyte.plugins.Sagemaker.SagemakerHPOJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SagemakerHPOJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SagemakerHPOJob(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 flyte.plugins.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyte_plugins_ContinuousParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyte_plugins_ContinuousParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyte_plugins_IntegerParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyte_plugins_IntegerParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyte_plugins_CategoricalParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyte_plugins_CategoricalParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyte_plugins_ParameterRanges_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyte_plugins_ParameterRanges_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyte_plugins_AlgorithmSpecification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyte_plugins_AlgorithmSpecification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyte_plugins_ResourceConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyte_plugins_ResourceConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyte_plugins_StoppingCondition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyte_plugins_StoppingCondition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyte_plugins_VpcConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyte_plugins_VpcConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyte_plugins_SagemakerTrainingJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyte_plugins_SagemakerTrainingJob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyte_plugins_HPOJobObjective_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyte_plugins_HPOJobObjective_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyte_plugins_SagemakerHPOJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyte_plugins_SagemakerHPOJob_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 flyteidl/plugins/sagemaker.proto\022\rflyt" + + "e.plugins\"\213\001\n\030ContinuousParameterRange\022\014" + + "\n\004Name\030\001 \001(\t\022\020\n\010MaxValue\030\002 \001(\001\022\020\n\010MinVal" + + "ue\030\003 \001(\001\022=\n\013ScalingType\030\004 \001(\0162(.flyte.pl" + + "ugins.HyperparameterScalingType\"\210\001\n\025Inte" + + "gerParameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxVa" + + "lue\030\002 \001(\002\022\020\n\010MinValue\030\003 \001(\002\022=\n\013ScalingTy" + + "pe\030\004 \001(\0162(.flyte.plugins.HyperparameterS" + + "calingType\"9\n\031CategoricalParameterRange\022" + + "\014\n\004Name\030\001 \001(\t\022\016\n\006Values\030\002 \003(\t\"\361\001\n\017Parame" + + "terRanges\022J\n\031ContinuousParameterRanges\030\001" + + " \003(\0132\'.flyte.plugins.ContinuousParameter" + + "Range\022D\n\026IntegerParameterRanges\030\002 \003(\0132$." + + "flyte.plugins.IntegerParameterRange\022L\n\032C" + + "ategoricalParameterRanges\030\003 \003(\0132(.flyte." + + "plugins.CategoricalParameterRange\"\345\001\n\026Al" + + "gorithmSpecification\022\025\n\rTrainingImage\030\001 " + + "\001(\t\022\031\n\021TrainingInputMode\030\002 \001(\t\022\025\n\rAlgori" + + "thmName\030\003 \001(\t\022Q\n\021MetricDefinitions\030\004 \003(\013" + + "26.flyte.plugins.AlgorithmSpecification." + + "MetricDefinition\032/\n\020MetricDefinition\022\014\n\004" + + "Name\030\001 \001(\t\022\r\n\005Regex\030\002 \001(\t\"m\n\016ResourceCon" + + "fig\022\024\n\014InstanceType\030\001 \001(\t\022\025\n\rInstanceCou" + + "nt\030\002 \001(\003\022\026\n\016VolumeSizeInGB\030\003 \001(\003\022\026\n\016Volu" + + "meKmsKeyId\030\004 \001(\t\"N\n\021StoppingCondition\022\033\n" + + "\023MaxRuntimeInSeconds\030\001 \001(\003\022\034\n\024MaxWaitTim" + + "eInSeconds\030\002 \001(\003\"6\n\tVpcConfig\022\030\n\020Securit" + + "yGroupIds\030\001 \003(\t\022\017\n\007Subnets\030\002 \003(\t\"\273\002\n\024Sag" + + "emakerTrainingJob\022\016\n\006Region\030\001 \001(\t\022\017\n\007Rol" + + "eArn\030\002 \001(\t\022E\n\026AlgorithmSpecification\030\003 \001" + + "(\0132%.flyte.plugins.AlgorithmSpecificatio" + + "n\0225\n\016ResourceConfig\030\004 \001(\0132\035.flyte.plugin" + + "s.ResourceConfig\022;\n\021StoppingCondition\030\005 " + + "\001(\0132 .flyte.plugins.StoppingCondition\022+\n" + + "\tVpcConfig\030\006 \001(\0132\030.flyte.plugins.VpcConf" + + "ig\022\032\n\022EnableSpotTraining\030\007 \001(\010\"W\n\017HPOJob" + + "Objective\0220\n\004Type\030\001 \001(\0162\".flyte.plugins." + + "HPOJobObjectiveType\022\022\n\nMetricName\030\002 \001(\t\"" + + "\213\002\n\017SagemakerHPOJob\022\020\n\010Strategy\030\001 \001(\t\0221\n" + + "\tObjective\030\002 \001(\0132\036.flyte.plugins.HPOJobO" + + "bjective\022\037\n\027MaxNumberOfTrainingJobs\030\003 \001(" + + "\003\022\037\n\027MaxParallelTrainingJobs\030\004 \001(\003\0227\n\017Pa" + + "rameterRanges\030\005 \001(\0132\036.flyte.plugins.Para" + + "meterRanges\0228\n\013TrainingJob\030\006 \001(\0132#.flyte" + + ".plugins.SagemakerTrainingJob*Z\n\031Hyperpa" + + "rameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001" + + "\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHMIC\020" + + "\003*1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE\020\000\022\014" + + "\n\010MAXIMIZE\020\001B5Z3github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyte_plugins_ContinuousParameterRange_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyte_plugins_ContinuousParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyte_plugins_ContinuousParameterRange_descriptor, + new java.lang.String[] { "Name", "MaxValue", "MinValue", "ScalingType", }); + internal_static_flyte_plugins_IntegerParameterRange_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyte_plugins_IntegerParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyte_plugins_IntegerParameterRange_descriptor, + new java.lang.String[] { "Name", "MaxValue", "MinValue", "ScalingType", }); + internal_static_flyte_plugins_CategoricalParameterRange_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyte_plugins_CategoricalParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyte_plugins_CategoricalParameterRange_descriptor, + new java.lang.String[] { "Name", "Values", }); + internal_static_flyte_plugins_ParameterRanges_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyte_plugins_ParameterRanges_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyte_plugins_ParameterRanges_descriptor, + new java.lang.String[] { "ContinuousParameterRanges", "IntegerParameterRanges", "CategoricalParameterRanges", }); + internal_static_flyte_plugins_AlgorithmSpecification_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyte_plugins_AlgorithmSpecification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyte_plugins_AlgorithmSpecification_descriptor, + new java.lang.String[] { "TrainingImage", "TrainingInputMode", "AlgorithmName", "MetricDefinitions", }); + internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_descriptor = + internal_static_flyte_plugins_AlgorithmSpecification_descriptor.getNestedTypes().get(0); + internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_descriptor, + new java.lang.String[] { "Name", "Regex", }); + internal_static_flyte_plugins_ResourceConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyte_plugins_ResourceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyte_plugins_ResourceConfig_descriptor, + new java.lang.String[] { "InstanceType", "InstanceCount", "VolumeSizeInGB", "VolumeKmsKeyId", }); + internal_static_flyte_plugins_StoppingCondition_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyte_plugins_StoppingCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyte_plugins_StoppingCondition_descriptor, + new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", }); + internal_static_flyte_plugins_VpcConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyte_plugins_VpcConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyte_plugins_VpcConfig_descriptor, + new java.lang.String[] { "SecurityGroupIds", "Subnets", }); + internal_static_flyte_plugins_SagemakerTrainingJob_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyte_plugins_SagemakerTrainingJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyte_plugins_SagemakerTrainingJob_descriptor, + new java.lang.String[] { "Region", "RoleArn", "AlgorithmSpecification", "ResourceConfig", "StoppingCondition", "VpcConfig", "EnableSpotTraining", }); + internal_static_flyte_plugins_HPOJobObjective_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyte_plugins_HPOJobObjective_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyte_plugins_HPOJobObjective_descriptor, + new java.lang.String[] { "Type", "MetricName", }); + internal_static_flyte_plugins_SagemakerHPOJob_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyte_plugins_SagemakerHPOJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyte_plugins_SagemakerHPOJob_descriptor, + new java.lang.String[] { "Strategy", "Objective", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", "ParameterRanges", "TrainingJob", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-protodoc/flyteidl/plugins/index.rst b/gen/pb-protodoc/flyteidl/plugins/index.rst index 43ca14335..b4678e0c7 100644 --- a/gen/pb-protodoc/flyteidl/plugins/index.rst +++ b/gen/pb-protodoc/flyteidl/plugins/index.rst @@ -14,6 +14,7 @@ Plugins available in the Flyte system. presto.proto pytorch.proto qubole.proto + sagemaker.proto sidecar.proto spark.proto waitable.proto diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker.proto.rst new file mode 100644 index 000000000..c8c2fb1cf --- /dev/null +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker.proto.rst @@ -0,0 +1,482 @@ +.. _api_file_flyteidl/plugins/sagemaker.proto: + +sagemaker.proto +================================ + +.. _api_msg_flyte.plugins.ContinuousParameterRange: + +flyte.plugins.ContinuousParameterRange +-------------------------------------- + +`[flyte.plugins.ContinuousParameterRange proto] `_ + + +.. code-block:: json + + { + "Name": "...", + "MaxValue": "...", + "MinValue": "...", + "ScalingType": "..." + } + +.. _api_field_flyte.plugins.ContinuousParameterRange.Name: + +Name + (`string `_) + +.. _api_field_flyte.plugins.ContinuousParameterRange.MaxValue: + +MaxValue + (`double `_) + +.. _api_field_flyte.plugins.ContinuousParameterRange.MinValue: + +MinValue + (`double `_) + +.. _api_field_flyte.plugins.ContinuousParameterRange.ScalingType: + +ScalingType + (:ref:`flyte.plugins.HyperparameterScalingType `) + + + +.. _api_msg_flyte.plugins.IntegerParameterRange: + +flyte.plugins.IntegerParameterRange +----------------------------------- + +`[flyte.plugins.IntegerParameterRange proto] `_ + + +.. code-block:: json + + { + "Name": "...", + "MaxValue": "...", + "MinValue": "...", + "ScalingType": "..." + } + +.. _api_field_flyte.plugins.IntegerParameterRange.Name: + +Name + (`string `_) + +.. _api_field_flyte.plugins.IntegerParameterRange.MaxValue: + +MaxValue + (`float `_) + +.. _api_field_flyte.plugins.IntegerParameterRange.MinValue: + +MinValue + (`float `_) + +.. _api_field_flyte.plugins.IntegerParameterRange.ScalingType: + +ScalingType + (:ref:`flyte.plugins.HyperparameterScalingType `) + + + +.. _api_msg_flyte.plugins.CategoricalParameterRange: + +flyte.plugins.CategoricalParameterRange +--------------------------------------- + +`[flyte.plugins.CategoricalParameterRange proto] `_ + + +.. code-block:: json + + { + "Name": "...", + "Values": [] + } + +.. _api_field_flyte.plugins.CategoricalParameterRange.Name: + +Name + (`string `_) + +.. _api_field_flyte.plugins.CategoricalParameterRange.Values: + +Values + (`string `_) + + + +.. _api_msg_flyte.plugins.ParameterRanges: + +flyte.plugins.ParameterRanges +----------------------------- + +`[flyte.plugins.ParameterRanges proto] `_ + + +.. code-block:: json + + { + "ContinuousParameterRanges": [], + "IntegerParameterRanges": [], + "CategoricalParameterRanges": [] + } + +.. _api_field_flyte.plugins.ParameterRanges.ContinuousParameterRanges: + +ContinuousParameterRanges + (:ref:`flyte.plugins.ContinuousParameterRange `) + +.. _api_field_flyte.plugins.ParameterRanges.IntegerParameterRanges: + +IntegerParameterRanges + (:ref:`flyte.plugins.IntegerParameterRange `) + +.. _api_field_flyte.plugins.ParameterRanges.CategoricalParameterRanges: + +CategoricalParameterRanges + (:ref:`flyte.plugins.CategoricalParameterRange `) + + + +.. _api_msg_flyte.plugins.AlgorithmSpecification: + +flyte.plugins.AlgorithmSpecification +------------------------------------ + +`[flyte.plugins.AlgorithmSpecification proto] `_ + + +.. code-block:: json + + { + "TrainingImage": "...", + "TrainingInputMode": "...", + "AlgorithmName": "...", + "MetricDefinitions": [] + } + +.. _api_field_flyte.plugins.AlgorithmSpecification.TrainingImage: + +TrainingImage + (`string `_) + +.. _api_field_flyte.plugins.AlgorithmSpecification.TrainingInputMode: + +TrainingInputMode + (`string `_) + +.. _api_field_flyte.plugins.AlgorithmSpecification.AlgorithmName: + +AlgorithmName + (`string `_) + +.. _api_field_flyte.plugins.AlgorithmSpecification.MetricDefinitions: + +MetricDefinitions + (:ref:`flyte.plugins.AlgorithmSpecification.MetricDefinition `) + +.. _api_msg_flyte.plugins.AlgorithmSpecification.MetricDefinition: + +flyte.plugins.AlgorithmSpecification.MetricDefinition +----------------------------------------------------- + +`[flyte.plugins.AlgorithmSpecification.MetricDefinition proto] `_ + + +.. code-block:: json + + { + "Name": "...", + "Regex": "..." + } + +.. _api_field_flyte.plugins.AlgorithmSpecification.MetricDefinition.Name: + +Name + (`string `_) + +.. _api_field_flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex: + +Regex + (`string `_) + + + + +.. _api_msg_flyte.plugins.ResourceConfig: + +flyte.plugins.ResourceConfig +---------------------------- + +`[flyte.plugins.ResourceConfig proto] `_ + + +.. code-block:: json + + { + "InstanceType": "...", + "InstanceCount": "...", + "VolumeSizeInGB": "...", + "VolumeKmsKeyId": "..." + } + +.. _api_field_flyte.plugins.ResourceConfig.InstanceType: + +InstanceType + (`string `_) + +.. _api_field_flyte.plugins.ResourceConfig.InstanceCount: + +InstanceCount + (`int64 `_) + +.. _api_field_flyte.plugins.ResourceConfig.VolumeSizeInGB: + +VolumeSizeInGB + (`int64 `_) + +.. _api_field_flyte.plugins.ResourceConfig.VolumeKmsKeyId: + +VolumeKmsKeyId + (`string `_) + + + +.. _api_msg_flyte.plugins.StoppingCondition: + +flyte.plugins.StoppingCondition +------------------------------- + +`[flyte.plugins.StoppingCondition proto] `_ + + +.. code-block:: json + + { + "MaxRuntimeInSeconds": "...", + "MaxWaitTimeInSeconds": "..." + } + +.. _api_field_flyte.plugins.StoppingCondition.MaxRuntimeInSeconds: + +MaxRuntimeInSeconds + (`int64 `_) + +.. _api_field_flyte.plugins.StoppingCondition.MaxWaitTimeInSeconds: + +MaxWaitTimeInSeconds + (`int64 `_) + + + +.. _api_msg_flyte.plugins.VpcConfig: + +flyte.plugins.VpcConfig +----------------------- + +`[flyte.plugins.VpcConfig proto] `_ + + +.. code-block:: json + + { + "SecurityGroupIds": [], + "Subnets": [] + } + +.. _api_field_flyte.plugins.VpcConfig.SecurityGroupIds: + +SecurityGroupIds + (`string `_) + +.. _api_field_flyte.plugins.VpcConfig.Subnets: + +Subnets + (`string `_) + + + +.. _api_msg_flyte.plugins.SagemakerTrainingJob: + +flyte.plugins.SagemakerTrainingJob +---------------------------------- + +`[flyte.plugins.SagemakerTrainingJob proto] `_ + + +.. code-block:: json + + { + "Region": "...", + "RoleArn": "...", + "AlgorithmSpecification": "{...}", + "ResourceConfig": "{...}", + "StoppingCondition": "{...}", + "VpcConfig": "{...}", + "EnableSpotTraining": "..." + } + +.. _api_field_flyte.plugins.SagemakerTrainingJob.Region: + +Region + (`string `_) + +.. _api_field_flyte.plugins.SagemakerTrainingJob.RoleArn: + +RoleArn + (`string `_) + +.. _api_field_flyte.plugins.SagemakerTrainingJob.AlgorithmSpecification: + +AlgorithmSpecification + (:ref:`flyte.plugins.AlgorithmSpecification `) + +.. _api_field_flyte.plugins.SagemakerTrainingJob.ResourceConfig: + +ResourceConfig + (:ref:`flyte.plugins.ResourceConfig `) + +.. _api_field_flyte.plugins.SagemakerTrainingJob.StoppingCondition: + +StoppingCondition + (:ref:`flyte.plugins.StoppingCondition `) + +.. _api_field_flyte.plugins.SagemakerTrainingJob.VpcConfig: + +VpcConfig + (:ref:`flyte.plugins.VpcConfig `) + +.. _api_field_flyte.plugins.SagemakerTrainingJob.EnableSpotTraining: + +EnableSpotTraining + (`bool `_) + + + +.. _api_msg_flyte.plugins.HPOJobObjective: + +flyte.plugins.HPOJobObjective +----------------------------- + +`[flyte.plugins.HPOJobObjective proto] `_ + + +.. code-block:: json + + { + "Type": "...", + "MetricName": "..." + } + +.. _api_field_flyte.plugins.HPOJobObjective.Type: + +Type + (:ref:`flyte.plugins.HPOJobObjectiveType `) + +.. _api_field_flyte.plugins.HPOJobObjective.MetricName: + +MetricName + (`string `_) + + + +.. _api_msg_flyte.plugins.SagemakerHPOJob: + +flyte.plugins.SagemakerHPOJob +----------------------------- + +`[flyte.plugins.SagemakerHPOJob proto] `_ + + +.. code-block:: json + + { + "Strategy": "...", + "Objective": "{...}", + "MaxNumberOfTrainingJobs": "...", + "MaxParallelTrainingJobs": "...", + "ParameterRanges": "{...}", + "TrainingJob": "{...}" + } + +.. _api_field_flyte.plugins.SagemakerHPOJob.Strategy: + +Strategy + (`string `_) + +.. _api_field_flyte.plugins.SagemakerHPOJob.Objective: + +Objective + (:ref:`flyte.plugins.HPOJobObjective `) + +.. _api_field_flyte.plugins.SagemakerHPOJob.MaxNumberOfTrainingJobs: + +MaxNumberOfTrainingJobs + (`int64 `_) + +.. _api_field_flyte.plugins.SagemakerHPOJob.MaxParallelTrainingJobs: + +MaxParallelTrainingJobs + (`int64 `_) + +.. _api_field_flyte.plugins.SagemakerHPOJob.ParameterRanges: + +ParameterRanges + (:ref:`flyte.plugins.ParameterRanges `) + +.. _api_field_flyte.plugins.SagemakerHPOJob.TrainingJob: + +TrainingJob + (:ref:`flyte.plugins.SagemakerTrainingJob `) + + +.. _api_enum_flyte.plugins.HyperparameterScalingType: + +Enum flyte.plugins.HyperparameterScalingType +-------------------------------------------- + +`[flyte.plugins.HyperparameterScalingType proto] `_ + + +.. _api_enum_value_flyte.plugins.HyperparameterScalingType.AUTO: + +AUTO + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyte.plugins.HyperparameterScalingType.LINEAR: + +LINEAR + ⁣ + +.. _api_enum_value_flyte.plugins.HyperparameterScalingType.LOGARITHMIC: + +LOGARITHMIC + ⁣ + +.. _api_enum_value_flyte.plugins.HyperparameterScalingType.REVERSELOGARITHMIC: + +REVERSELOGARITHMIC + ⁣ + + +.. _api_enum_flyte.plugins.HPOJobObjectiveType: + +Enum flyte.plugins.HPOJobObjectiveType +-------------------------------------- + +`[flyte.plugins.HPOJobObjectiveType proto] `_ + + +.. _api_enum_value_flyte.plugins.HPOJobObjectiveType.MINIMIZE: + +MINIMIZE + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyte.plugins.HPOJobObjectiveType.MAXIMIZE: + +MAXIMIZE + ⁣ + diff --git a/gen/pb_python/flyteidl/plugins/sagemaker_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker_pb2.py new file mode 100644 index 000000000..8cdaaf9c0 --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker_pb2.py @@ -0,0 +1,787 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/sagemaker.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/plugins/sagemaker.proto', + package='flyte.plugins', + syntax='proto3', + serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), + serialized_pb=_b('\n flyteidl/plugins/sagemaker.proto\x12\rflyte.plugins\"\x8b\x01\n\x18\x43ontinuousParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x10\n\x08MaxValue\x18\x02 \x01(\x01\x12\x10\n\x08MinValue\x18\x03 \x01(\x01\x12=\n\x0bScalingType\x18\x04 \x01(\x0e\x32(.flyte.plugins.HyperparameterScalingType\"\x88\x01\n\x15IntegerParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x10\n\x08MaxValue\x18\x02 \x01(\x02\x12\x10\n\x08MinValue\x18\x03 \x01(\x02\x12=\n\x0bScalingType\x18\x04 \x01(\x0e\x32(.flyte.plugins.HyperparameterScalingType\"9\n\x19\x43\x61tegoricalParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x0e\n\x06Values\x18\x02 \x03(\t\"\xf1\x01\n\x0fParameterRanges\x12J\n\x19\x43ontinuousParameterRanges\x18\x01 \x03(\x0b\x32\'.flyte.plugins.ContinuousParameterRange\x12\x44\n\x16IntegerParameterRanges\x18\x02 \x03(\x0b\x32$.flyte.plugins.IntegerParameterRange\x12L\n\x1a\x43\x61tegoricalParameterRanges\x18\x03 \x03(\x0b\x32(.flyte.plugins.CategoricalParameterRange\"\xe5\x01\n\x16\x41lgorithmSpecification\x12\x15\n\rTrainingImage\x18\x01 \x01(\t\x12\x19\n\x11TrainingInputMode\x18\x02 \x01(\t\x12\x15\n\rAlgorithmName\x18\x03 \x01(\t\x12Q\n\x11MetricDefinitions\x18\x04 \x03(\x0b\x32\x36.flyte.plugins.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\r\n\x05Regex\x18\x02 \x01(\t\"m\n\x0eResourceConfig\x12\x14\n\x0cInstanceType\x18\x01 \x01(\t\x12\x15\n\rInstanceCount\x18\x02 \x01(\x03\x12\x16\n\x0eVolumeSizeInGB\x18\x03 \x01(\x03\x12\x16\n\x0eVolumeKmsKeyId\x18\x04 \x01(\t\"N\n\x11StoppingCondition\x12\x1b\n\x13MaxRuntimeInSeconds\x18\x01 \x01(\x03\x12\x1c\n\x14MaxWaitTimeInSeconds\x18\x02 \x01(\x03\"6\n\tVpcConfig\x12\x18\n\x10SecurityGroupIds\x18\x01 \x03(\t\x12\x0f\n\x07Subnets\x18\x02 \x03(\t\"\xbb\x02\n\x14SagemakerTrainingJob\x12\x0e\n\x06Region\x18\x01 \x01(\t\x12\x0f\n\x07RoleArn\x18\x02 \x01(\t\x12\x45\n\x16\x41lgorithmSpecification\x18\x03 \x01(\x0b\x32%.flyte.plugins.AlgorithmSpecification\x12\x35\n\x0eResourceConfig\x18\x04 \x01(\x0b\x32\x1d.flyte.plugins.ResourceConfig\x12;\n\x11StoppingCondition\x18\x05 \x01(\x0b\x32 .flyte.plugins.StoppingCondition\x12+\n\tVpcConfig\x18\x06 \x01(\x0b\x32\x18.flyte.plugins.VpcConfig\x12\x1a\n\x12\x45nableSpotTraining\x18\x07 \x01(\x08\"W\n\x0fHPOJobObjective\x12\x30\n\x04Type\x18\x01 \x01(\x0e\x32\".flyte.plugins.HPOJobObjectiveType\x12\x12\n\nMetricName\x18\x02 \x01(\t\"\x8b\x02\n\x0fSagemakerHPOJob\x12\x10\n\x08Strategy\x18\x01 \x01(\t\x12\x31\n\tObjective\x18\x02 \x01(\x0b\x32\x1e.flyte.plugins.HPOJobObjective\x12\x1f\n\x17MaxNumberOfTrainingJobs\x18\x03 \x01(\x03\x12\x1f\n\x17MaxParallelTrainingJobs\x18\x04 \x01(\x03\x12\x37\n\x0fParameterRanges\x18\x05 \x01(\x0b\x32\x1e.flyte.plugins.ParameterRanges\x12\x38\n\x0bTrainingJob\x18\x06 \x01(\x0b\x32#.flyte.plugins.SagemakerTrainingJob*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03*1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') +) + +_HYPERPARAMETERSCALINGTYPE = _descriptor.EnumDescriptor( + name='HyperparameterScalingType', + full_name='flyte.plugins.HyperparameterScalingType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='AUTO', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LINEAR', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOGARITHMIC', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REVERSELOGARITHMIC', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=1791, + serialized_end=1881, +) +_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERSCALINGTYPE) + +HyperparameterScalingType = enum_type_wrapper.EnumTypeWrapper(_HYPERPARAMETERSCALINGTYPE) +_HPOJOBOBJECTIVETYPE = _descriptor.EnumDescriptor( + name='HPOJobObjectiveType', + full_name='flyte.plugins.HPOJobObjectiveType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='MINIMIZE', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MAXIMIZE', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=1883, + serialized_end=1932, +) +_sym_db.RegisterEnumDescriptor(_HPOJOBOBJECTIVETYPE) + +HPOJobObjectiveType = enum_type_wrapper.EnumTypeWrapper(_HPOJOBOBJECTIVETYPE) +AUTO = 0 +LINEAR = 1 +LOGARITHMIC = 2 +REVERSELOGARITHMIC = 3 +MINIMIZE = 0 +MAXIMIZE = 1 + + + +_CONTINUOUSPARAMETERRANGE = _descriptor.Descriptor( + name='ContinuousParameterRange', + full_name='flyte.plugins.ContinuousParameterRange', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='Name', full_name='flyte.plugins.ContinuousParameterRange.Name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MaxValue', full_name='flyte.plugins.ContinuousParameterRange.MaxValue', index=1, + number=2, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MinValue', full_name='flyte.plugins.ContinuousParameterRange.MinValue', index=2, + number=3, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ScalingType', full_name='flyte.plugins.ContinuousParameterRange.ScalingType', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=52, + serialized_end=191, +) + + +_INTEGERPARAMETERRANGE = _descriptor.Descriptor( + name='IntegerParameterRange', + full_name='flyte.plugins.IntegerParameterRange', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='Name', full_name='flyte.plugins.IntegerParameterRange.Name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MaxValue', full_name='flyte.plugins.IntegerParameterRange.MaxValue', index=1, + number=2, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MinValue', full_name='flyte.plugins.IntegerParameterRange.MinValue', index=2, + number=3, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ScalingType', full_name='flyte.plugins.IntegerParameterRange.ScalingType', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=194, + serialized_end=330, +) + + +_CATEGORICALPARAMETERRANGE = _descriptor.Descriptor( + name='CategoricalParameterRange', + full_name='flyte.plugins.CategoricalParameterRange', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='Name', full_name='flyte.plugins.CategoricalParameterRange.Name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='Values', full_name='flyte.plugins.CategoricalParameterRange.Values', index=1, + number=2, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=332, + serialized_end=389, +) + + +_PARAMETERRANGES = _descriptor.Descriptor( + name='ParameterRanges', + full_name='flyte.plugins.ParameterRanges', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ContinuousParameterRanges', full_name='flyte.plugins.ParameterRanges.ContinuousParameterRanges', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='IntegerParameterRanges', full_name='flyte.plugins.ParameterRanges.IntegerParameterRanges', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='CategoricalParameterRanges', full_name='flyte.plugins.ParameterRanges.CategoricalParameterRanges', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=392, + serialized_end=633, +) + + +_ALGORITHMSPECIFICATION_METRICDEFINITION = _descriptor.Descriptor( + name='MetricDefinition', + full_name='flyte.plugins.AlgorithmSpecification.MetricDefinition', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='Name', full_name='flyte.plugins.AlgorithmSpecification.MetricDefinition.Name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='Regex', full_name='flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=818, + serialized_end=865, +) + +_ALGORITHMSPECIFICATION = _descriptor.Descriptor( + name='AlgorithmSpecification', + full_name='flyte.plugins.AlgorithmSpecification', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='TrainingImage', full_name='flyte.plugins.AlgorithmSpecification.TrainingImage', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='TrainingInputMode', full_name='flyte.plugins.AlgorithmSpecification.TrainingInputMode', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='AlgorithmName', full_name='flyte.plugins.AlgorithmSpecification.AlgorithmName', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MetricDefinitions', full_name='flyte.plugins.AlgorithmSpecification.MetricDefinitions', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_ALGORITHMSPECIFICATION_METRICDEFINITION, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=636, + serialized_end=865, +) + + +_RESOURCECONFIG = _descriptor.Descriptor( + name='ResourceConfig', + full_name='flyte.plugins.ResourceConfig', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='InstanceType', full_name='flyte.plugins.ResourceConfig.InstanceType', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='InstanceCount', full_name='flyte.plugins.ResourceConfig.InstanceCount', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='VolumeSizeInGB', full_name='flyte.plugins.ResourceConfig.VolumeSizeInGB', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='VolumeKmsKeyId', full_name='flyte.plugins.ResourceConfig.VolumeKmsKeyId', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=867, + serialized_end=976, +) + + +_STOPPINGCONDITION = _descriptor.Descriptor( + name='StoppingCondition', + full_name='flyte.plugins.StoppingCondition', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='MaxRuntimeInSeconds', full_name='flyte.plugins.StoppingCondition.MaxRuntimeInSeconds', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MaxWaitTimeInSeconds', full_name='flyte.plugins.StoppingCondition.MaxWaitTimeInSeconds', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=978, + serialized_end=1056, +) + + +_VPCCONFIG = _descriptor.Descriptor( + name='VpcConfig', + full_name='flyte.plugins.VpcConfig', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='SecurityGroupIds', full_name='flyte.plugins.VpcConfig.SecurityGroupIds', index=0, + number=1, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='Subnets', full_name='flyte.plugins.VpcConfig.Subnets', index=1, + number=2, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1058, + serialized_end=1112, +) + + +_SAGEMAKERTRAININGJOB = _descriptor.Descriptor( + name='SagemakerTrainingJob', + full_name='flyte.plugins.SagemakerTrainingJob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='Region', full_name='flyte.plugins.SagemakerTrainingJob.Region', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='RoleArn', full_name='flyte.plugins.SagemakerTrainingJob.RoleArn', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='AlgorithmSpecification', full_name='flyte.plugins.SagemakerTrainingJob.AlgorithmSpecification', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ResourceConfig', full_name='flyte.plugins.SagemakerTrainingJob.ResourceConfig', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='StoppingCondition', full_name='flyte.plugins.SagemakerTrainingJob.StoppingCondition', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='VpcConfig', full_name='flyte.plugins.SagemakerTrainingJob.VpcConfig', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='EnableSpotTraining', full_name='flyte.plugins.SagemakerTrainingJob.EnableSpotTraining', index=6, + number=7, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1115, + serialized_end=1430, +) + + +_HPOJOBOBJECTIVE = _descriptor.Descriptor( + name='HPOJobObjective', + full_name='flyte.plugins.HPOJobObjective', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='Type', full_name='flyte.plugins.HPOJobObjective.Type', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MetricName', full_name='flyte.plugins.HPOJobObjective.MetricName', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1432, + serialized_end=1519, +) + + +_SAGEMAKERHPOJOB = _descriptor.Descriptor( + name='SagemakerHPOJob', + full_name='flyte.plugins.SagemakerHPOJob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='Strategy', full_name='flyte.plugins.SagemakerHPOJob.Strategy', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='Objective', full_name='flyte.plugins.SagemakerHPOJob.Objective', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MaxNumberOfTrainingJobs', full_name='flyte.plugins.SagemakerHPOJob.MaxNumberOfTrainingJobs', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MaxParallelTrainingJobs', full_name='flyte.plugins.SagemakerHPOJob.MaxParallelTrainingJobs', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ParameterRanges', full_name='flyte.plugins.SagemakerHPOJob.ParameterRanges', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='TrainingJob', full_name='flyte.plugins.SagemakerHPOJob.TrainingJob', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1522, + serialized_end=1789, +) + +_CONTINUOUSPARAMETERRANGE.fields_by_name['ScalingType'].enum_type = _HYPERPARAMETERSCALINGTYPE +_INTEGERPARAMETERRANGE.fields_by_name['ScalingType'].enum_type = _HYPERPARAMETERSCALINGTYPE +_PARAMETERRANGES.fields_by_name['ContinuousParameterRanges'].message_type = _CONTINUOUSPARAMETERRANGE +_PARAMETERRANGES.fields_by_name['IntegerParameterRanges'].message_type = _INTEGERPARAMETERRANGE +_PARAMETERRANGES.fields_by_name['CategoricalParameterRanges'].message_type = _CATEGORICALPARAMETERRANGE +_ALGORITHMSPECIFICATION_METRICDEFINITION.containing_type = _ALGORITHMSPECIFICATION +_ALGORITHMSPECIFICATION.fields_by_name['MetricDefinitions'].message_type = _ALGORITHMSPECIFICATION_METRICDEFINITION +_SAGEMAKERTRAININGJOB.fields_by_name['AlgorithmSpecification'].message_type = _ALGORITHMSPECIFICATION +_SAGEMAKERTRAININGJOB.fields_by_name['ResourceConfig'].message_type = _RESOURCECONFIG +_SAGEMAKERTRAININGJOB.fields_by_name['StoppingCondition'].message_type = _STOPPINGCONDITION +_SAGEMAKERTRAININGJOB.fields_by_name['VpcConfig'].message_type = _VPCCONFIG +_HPOJOBOBJECTIVE.fields_by_name['Type'].enum_type = _HPOJOBOBJECTIVETYPE +_SAGEMAKERHPOJOB.fields_by_name['Objective'].message_type = _HPOJOBOBJECTIVE +_SAGEMAKERHPOJOB.fields_by_name['ParameterRanges'].message_type = _PARAMETERRANGES +_SAGEMAKERHPOJOB.fields_by_name['TrainingJob'].message_type = _SAGEMAKERTRAININGJOB +DESCRIPTOR.message_types_by_name['ContinuousParameterRange'] = _CONTINUOUSPARAMETERRANGE +DESCRIPTOR.message_types_by_name['IntegerParameterRange'] = _INTEGERPARAMETERRANGE +DESCRIPTOR.message_types_by_name['CategoricalParameterRange'] = _CATEGORICALPARAMETERRANGE +DESCRIPTOR.message_types_by_name['ParameterRanges'] = _PARAMETERRANGES +DESCRIPTOR.message_types_by_name['AlgorithmSpecification'] = _ALGORITHMSPECIFICATION +DESCRIPTOR.message_types_by_name['ResourceConfig'] = _RESOURCECONFIG +DESCRIPTOR.message_types_by_name['StoppingCondition'] = _STOPPINGCONDITION +DESCRIPTOR.message_types_by_name['VpcConfig'] = _VPCCONFIG +DESCRIPTOR.message_types_by_name['SagemakerTrainingJob'] = _SAGEMAKERTRAININGJOB +DESCRIPTOR.message_types_by_name['HPOJobObjective'] = _HPOJOBOBJECTIVE +DESCRIPTOR.message_types_by_name['SagemakerHPOJob'] = _SAGEMAKERHPOJOB +DESCRIPTOR.enum_types_by_name['HyperparameterScalingType'] = _HYPERPARAMETERSCALINGTYPE +DESCRIPTOR.enum_types_by_name['HPOJobObjectiveType'] = _HPOJOBOBJECTIVETYPE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ContinuousParameterRange = _reflection.GeneratedProtocolMessageType('ContinuousParameterRange', (_message.Message,), dict( + DESCRIPTOR = _CONTINUOUSPARAMETERRANGE, + __module__ = 'flyteidl.plugins.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.ContinuousParameterRange) + )) +_sym_db.RegisterMessage(ContinuousParameterRange) + +IntegerParameterRange = _reflection.GeneratedProtocolMessageType('IntegerParameterRange', (_message.Message,), dict( + DESCRIPTOR = _INTEGERPARAMETERRANGE, + __module__ = 'flyteidl.plugins.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.IntegerParameterRange) + )) +_sym_db.RegisterMessage(IntegerParameterRange) + +CategoricalParameterRange = _reflection.GeneratedProtocolMessageType('CategoricalParameterRange', (_message.Message,), dict( + DESCRIPTOR = _CATEGORICALPARAMETERRANGE, + __module__ = 'flyteidl.plugins.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.CategoricalParameterRange) + )) +_sym_db.RegisterMessage(CategoricalParameterRange) + +ParameterRanges = _reflection.GeneratedProtocolMessageType('ParameterRanges', (_message.Message,), dict( + DESCRIPTOR = _PARAMETERRANGES, + __module__ = 'flyteidl.plugins.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.ParameterRanges) + )) +_sym_db.RegisterMessage(ParameterRanges) + +AlgorithmSpecification = _reflection.GeneratedProtocolMessageType('AlgorithmSpecification', (_message.Message,), dict( + + MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict( + DESCRIPTOR = _ALGORITHMSPECIFICATION_METRICDEFINITION, + __module__ = 'flyteidl.plugins.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.AlgorithmSpecification.MetricDefinition) + )) + , + DESCRIPTOR = _ALGORITHMSPECIFICATION, + __module__ = 'flyteidl.plugins.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.AlgorithmSpecification) + )) +_sym_db.RegisterMessage(AlgorithmSpecification) +_sym_db.RegisterMessage(AlgorithmSpecification.MetricDefinition) + +ResourceConfig = _reflection.GeneratedProtocolMessageType('ResourceConfig', (_message.Message,), dict( + DESCRIPTOR = _RESOURCECONFIG, + __module__ = 'flyteidl.plugins.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.ResourceConfig) + )) +_sym_db.RegisterMessage(ResourceConfig) + +StoppingCondition = _reflection.GeneratedProtocolMessageType('StoppingCondition', (_message.Message,), dict( + DESCRIPTOR = _STOPPINGCONDITION, + __module__ = 'flyteidl.plugins.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.StoppingCondition) + )) +_sym_db.RegisterMessage(StoppingCondition) + +VpcConfig = _reflection.GeneratedProtocolMessageType('VpcConfig', (_message.Message,), dict( + DESCRIPTOR = _VPCCONFIG, + __module__ = 'flyteidl.plugins.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.VpcConfig) + )) +_sym_db.RegisterMessage(VpcConfig) + +SagemakerTrainingJob = _reflection.GeneratedProtocolMessageType('SagemakerTrainingJob', (_message.Message,), dict( + DESCRIPTOR = _SAGEMAKERTRAININGJOB, + __module__ = 'flyteidl.plugins.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.SagemakerTrainingJob) + )) +_sym_db.RegisterMessage(SagemakerTrainingJob) + +HPOJobObjective = _reflection.GeneratedProtocolMessageType('HPOJobObjective', (_message.Message,), dict( + DESCRIPTOR = _HPOJOBOBJECTIVE, + __module__ = 'flyteidl.plugins.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.HPOJobObjective) + )) +_sym_db.RegisterMessage(HPOJobObjective) + +SagemakerHPOJob = _reflection.GeneratedProtocolMessageType('SagemakerHPOJob', (_message.Message,), dict( + DESCRIPTOR = _SAGEMAKERHPOJOB, + __module__ = 'flyteidl.plugins.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.SagemakerHPOJob) + )) +_sym_db.RegisterMessage(SagemakerHPOJob) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/protos/flyteidl/plugins/sagemaker.proto b/protos/flyteidl/plugins/sagemaker.proto index 04aa5c8c3..e9b5c73d7 100644 --- a/protos/flyteidl/plugins/sagemaker.proto +++ b/protos/flyteidl/plugins/sagemaker.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package flyte.plugins.sagemaker; +package flyte.plugins; -option go_package = "github.com/kumare3/awsflyteplugins/gen/pb-go/proto"; +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; enum HyperparameterScalingType { AUTO = 0; @@ -85,17 +85,13 @@ message HPOJobObjective { string MetricName = 2; } -message HPOJobConfig { +message SagemakerHPOJob { string Strategy = 1; HPOJobObjective Objective = 2; int64 MaxNumberOfTrainingJobs = 3; int64 MaxParallelTrainingJobs = 4; ParameterRanges ParameterRanges = 5; -} - -message SagemakerHPOJob { - HPOJobConfig = 1; - SagemakerTrainingJob TrainingJob = 2; + SagemakerTrainingJob TrainingJob = 6; } From cfa31cc7257cb2609883bf4e8d554149528fae60 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Fri, 29 May 2020 16:47:01 -0700 Subject: [PATCH 03/64] adding sagemaker submodule and doing the corresponding change in proto --- .../{ => sagemaker}/sagemaker.grpc.pb.cc | 8 +- .../{ => sagemaker}/sagemaker.grpc.pb.h | 12 +- .../plugins/{ => sagemaker}/sagemaker.pb.cc | 1462 +++++----- .../plugins/{ => sagemaker}/sagemaker.pb.h | 950 +++---- .../flyteidl/core/compiler.pb.validate.go | 34 +- .../flyteidl/core/interface.pb.validate.go | 34 +- .../flyteidl/core/literals.pb.validate.go | 34 +- .../plugins/{ => sagemaker}/sagemaker.pb.go | 200 +- .../{ => sagemaker}/sagemaker.pb.validate.go | 2 +- gen/pb-go/flyteidl/service/openapi.go | 5 +- .../plugins/{ => sagemaker}/Sagemaker.java | 2448 +++++++++-------- gen/pb-protodoc/flyteidl/plugins/index.rst | 2 +- .../flyteidl/plugins/sagemaker.proto.rst | 482 ---- .../flyteidl/plugins/sagemaker/index.rst | 9 + .../plugins/sagemaker/sagemaker.proto.rst | 482 ++++ .../flyteidl/plugins/sagemaker/__init__.py | 0 .../plugins/{ => sagemaker}/sagemaker_pb2.py | 224 +- .../{ => sagemaker}/sagemaker_pb2_grpc.py | 0 generate_protos.sh | 3 +- .../plugins/{ => sagemaker}/sagemaker.proto | 2 +- 20 files changed, 3258 insertions(+), 3135 deletions(-) rename gen/pb-cpp/flyteidl/plugins/{ => sagemaker}/sagemaker.grpc.pb.cc (76%) rename gen/pb-cpp/flyteidl/plugins/{ => sagemaker}/sagemaker.grpc.pb.h (74%) rename gen/pb-cpp/flyteidl/plugins/{ => sagemaker}/sagemaker.pb.cc (77%) rename gen/pb-cpp/flyteidl/plugins/{ => sagemaker}/sagemaker.pb.h (72%) rename gen/pb-go/flyteidl/plugins/{ => sagemaker}/sagemaker.pb.go (76%) rename gen/pb-go/flyteidl/plugins/{ => sagemaker}/sagemaker.pb.validate.go (99%) rename gen/pb-java/flyte/plugins/{ => sagemaker}/Sagemaker.java (73%) delete mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker.proto.rst create mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst create mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/sagemaker.proto.rst create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/__init__.py rename gen/pb_python/flyteidl/plugins/{ => sagemaker}/sagemaker_pb2.py (68%) rename gen/pb_python/flyteidl/plugins/{ => sagemaker}/sagemaker_pb2_grpc.py (100%) rename protos/flyteidl/plugins/{ => sagemaker}/sagemaker.proto (98%) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.cc similarity index 76% rename from gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.cc index e153365cb..fa0cf7ece 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.cc @@ -1,9 +1,9 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker.proto +// source: flyteidl/plugins/sagemaker/sagemaker.proto -#include "flyteidl/plugins/sagemaker.pb.h" -#include "flyteidl/plugins/sagemaker.grpc.pb.h" +#include "flyteidl/plugins/sagemaker/sagemaker.pb.h" +#include "flyteidl/plugins/sagemaker/sagemaker.grpc.pb.h" #include #include @@ -18,7 +18,9 @@ #include namespace flyte { namespace plugins { +namespace sagemaker { } // namespace flyte } // namespace plugins +} // namespace sagemaker diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.h similarity index 74% rename from gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.h index e895621ac..1383e567c 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.h @@ -1,10 +1,10 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker.proto -#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fsagemaker_2eproto__INCLUDED +// source: flyteidl/plugins/sagemaker/sagemaker.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto__INCLUDED -#include "flyteidl/plugins/sagemaker.pb.h" +#include "flyteidl/plugins/sagemaker/sagemaker.pb.h" #include #include @@ -39,9 +39,11 @@ class ServerContext; namespace flyte { namespace plugins { +namespace sagemaker { +} // namespace sagemaker } // namespace plugins } // namespace flyte -#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2eproto__INCLUDED +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.cc similarity index 77% rename from gen/pb-cpp/flyteidl/plugins/sagemaker.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.cc index ec3d9aa58..e6eaa90ca 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker.proto +// source: flyteidl/plugins/sagemaker/sagemaker.proto -#include "flyteidl/plugins/sagemaker.pb.h" +#include "flyteidl/plugins/sagemaker/sagemaker.pb.h" #include @@ -16,19 +16,20 @@ // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; namespace flyte { namespace plugins { +namespace sagemaker { class ContinuousParameterRangeDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -77,367 +78,370 @@ class SagemakerHPOJobDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _SagemakerHPOJob_default_instance_; +} // namespace sagemaker } // namespace plugins } // namespace flyte -static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto() { +static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::_ContinuousParameterRange_default_instance_; - new (ptr) ::flyte::plugins::ContinuousParameterRange(); + void* ptr = &::flyte::plugins::sagemaker::_ContinuousParameterRange_default_instance_; + new (ptr) ::flyte::plugins::sagemaker::ContinuousParameterRange(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::ContinuousParameterRange::InitAsDefaultInstance(); + ::flyte::plugins::sagemaker::ContinuousParameterRange::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; -static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto() { +static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::_IntegerParameterRange_default_instance_; - new (ptr) ::flyte::plugins::IntegerParameterRange(); + void* ptr = &::flyte::plugins::sagemaker::_IntegerParameterRange_default_instance_; + new (ptr) ::flyte::plugins::sagemaker::IntegerParameterRange(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::IntegerParameterRange::InitAsDefaultInstance(); + ::flyte::plugins::sagemaker::IntegerParameterRange::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; -static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto() { +static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::_CategoricalParameterRange_default_instance_; - new (ptr) ::flyte::plugins::CategoricalParameterRange(); + void* ptr = &::flyte::plugins::sagemaker::_CategoricalParameterRange_default_instance_; + new (ptr) ::flyte::plugins::sagemaker::CategoricalParameterRange(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::CategoricalParameterRange::InitAsDefaultInstance(); + ::flyte::plugins::sagemaker::CategoricalParameterRange::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; -static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto() { +static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::_ParameterRanges_default_instance_; - new (ptr) ::flyte::plugins::ParameterRanges(); + void* ptr = &::flyte::plugins::sagemaker::_ParameterRanges_default_instance_; + new (ptr) ::flyte::plugins::sagemaker::ParameterRanges(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::ParameterRanges::InitAsDefaultInstance(); + ::flyte::plugins::sagemaker::ParameterRanges::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto}, { - &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base, - &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base, - &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, { + &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, + &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base,}}; -static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto() { +static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::_AlgorithmSpecification_MetricDefinition_default_instance_; - new (ptr) ::flyte::plugins::AlgorithmSpecification_MetricDefinition(); + void* ptr = &::flyte::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_; + new (ptr) ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance(); + ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; -static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto() { +static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::_AlgorithmSpecification_default_instance_; - new (ptr) ::flyte::plugins::AlgorithmSpecification(); + void* ptr = &::flyte::plugins::sagemaker::_AlgorithmSpecification_default_instance_; + new (ptr) ::flyte::plugins::sagemaker::AlgorithmSpecification(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::AlgorithmSpecification::InitAsDefaultInstance(); + ::flyte::plugins::sagemaker::AlgorithmSpecification::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto}, { - &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, { + &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base,}}; -static void InitDefaultsResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto() { +static void InitDefaultsResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::_ResourceConfig_default_instance_; - new (ptr) ::flyte::plugins::ResourceConfig(); + void* ptr = &::flyte::plugins::sagemaker::_ResourceConfig_default_instance_; + new (ptr) ::flyte::plugins::sagemaker::ResourceConfig(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::ResourceConfig::InitAsDefaultInstance(); + ::flyte::plugins::sagemaker::ResourceConfig::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; -static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto() { +static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::_StoppingCondition_default_instance_; - new (ptr) ::flyte::plugins::StoppingCondition(); + void* ptr = &::flyte::plugins::sagemaker::_StoppingCondition_default_instance_; + new (ptr) ::flyte::plugins::sagemaker::StoppingCondition(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::StoppingCondition::InitAsDefaultInstance(); + ::flyte::plugins::sagemaker::StoppingCondition::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; -static void InitDefaultsVpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto() { +static void InitDefaultsVpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::_VpcConfig_default_instance_; - new (ptr) ::flyte::plugins::VpcConfig(); + void* ptr = &::flyte::plugins::sagemaker::_VpcConfig_default_instance_; + new (ptr) ::flyte::plugins::sagemaker::VpcConfig(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::VpcConfig::InitAsDefaultInstance(); + ::flyte::plugins::sagemaker::VpcConfig::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; -static void InitDefaultsSagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto() { +static void InitDefaultsSagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::_SagemakerTrainingJob_default_instance_; - new (ptr) ::flyte::plugins::SagemakerTrainingJob(); + void* ptr = &::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_; + new (ptr) ::flyte::plugins::sagemaker::SagemakerTrainingJob(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::SagemakerTrainingJob::InitAsDefaultInstance(); + ::flyte::plugins::sagemaker::SagemakerTrainingJob::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<4> scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsSagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto}, { - &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto.base, - &scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base, - &scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto.base, - &scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<4> scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsSagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, { + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, + &scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, + &scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, + &scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base,}}; -static void InitDefaultsHPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto() { +static void InitDefaultsHPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::_HPOJobObjective_default_instance_; - new (ptr) ::flyte::plugins::HPOJobObjective(); + void* ptr = &::flyte::plugins::sagemaker::_HPOJobObjective_default_instance_; + new (ptr) ::flyte::plugins::sagemaker::HPOJobObjective(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::HPOJobObjective::InitAsDefaultInstance(); + ::flyte::plugins::sagemaker::HPOJobObjective::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; -static void InitDefaultsSagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2eproto() { +static void InitDefaultsSagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::_SagemakerHPOJob_default_instance_; - new (ptr) ::flyte::plugins::SagemakerHPOJob(); + void* ptr = &::flyte::plugins::sagemaker::_SagemakerHPOJob_default_instance_; + new (ptr) ::flyte::plugins::sagemaker::SagemakerHPOJob(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::SagemakerHPOJob::InitAsDefaultInstance(); + ::flyte::plugins::sagemaker::SagemakerHPOJob::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<3> scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsSagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2eproto}, { - &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto.base, - &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto.base, - &scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<3> scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsSagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, { + &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, + &scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base,}}; -void InitDefaults_flyteidl_2fplugins_2fsagemaker_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2eproto.base); +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[12]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2eproto[2]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2eproto = nullptr; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[12]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ContinuousParameterRange, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ContinuousParameterRange, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ContinuousParameterRange, name_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ContinuousParameterRange, maxvalue_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ContinuousParameterRange, minvalue_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ContinuousParameterRange, scalingtype_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ContinuousParameterRange, name_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ContinuousParameterRange, maxvalue_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ContinuousParameterRange, minvalue_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ContinuousParameterRange, scalingtype_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::IntegerParameterRange, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::IntegerParameterRange, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::IntegerParameterRange, name_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::IntegerParameterRange, maxvalue_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::IntegerParameterRange, minvalue_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::IntegerParameterRange, scalingtype_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::IntegerParameterRange, name_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::IntegerParameterRange, maxvalue_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::IntegerParameterRange, minvalue_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::IntegerParameterRange, scalingtype_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::CategoricalParameterRange, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::CategoricalParameterRange, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::CategoricalParameterRange, name_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::CategoricalParameterRange, values_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::CategoricalParameterRange, name_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::CategoricalParameterRange, values_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ParameterRanges, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ParameterRanges, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ParameterRanges, continuousparameterranges_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ParameterRanges, integerparameterranges_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ParameterRanges, categoricalparameterranges_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ParameterRanges, continuousparameterranges_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ParameterRanges, integerparameterranges_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ParameterRanges, categoricalparameterranges_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification_MetricDefinition, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification_MetricDefinition, name_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification_MetricDefinition, regex_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, name_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, regex_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification, trainingimage_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification, traininginputmode_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification, algorithmname_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::AlgorithmSpecification, metricdefinitions_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification, trainingimage_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification, traininginputmode_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification, algorithmname_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification, metricdefinitions_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ResourceConfig, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ResourceConfig, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ResourceConfig, instancetype_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ResourceConfig, instancecount_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ResourceConfig, volumesizeingb_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::ResourceConfig, volumekmskeyid_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ResourceConfig, instancetype_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ResourceConfig, instancecount_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ResourceConfig, volumesizeingb_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ResourceConfig, volumekmskeyid_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::StoppingCondition, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::StoppingCondition, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::StoppingCondition, maxruntimeinseconds_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::StoppingCondition, maxwaittimeinseconds_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::StoppingCondition, maxruntimeinseconds_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::StoppingCondition, maxwaittimeinseconds_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::VpcConfig, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::VpcConfig, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::VpcConfig, securitygroupids_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::VpcConfig, subnets_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::VpcConfig, securitygroupids_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::VpcConfig, subnets_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, region_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, rolearn_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, algorithmspecification_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, resourceconfig_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, stoppingcondition_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, vpcconfig_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerTrainingJob, enablespottraining_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, region_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, rolearn_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, algorithmspecification_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, resourceconfig_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, stoppingcondition_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, vpcconfig_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, enablespottraining_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::HPOJobObjective, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::HPOJobObjective, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::HPOJobObjective, type_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::HPOJobObjective, metricname_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::HPOJobObjective, type_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::HPOJobObjective, metricname_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, strategy_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, objective_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, maxnumberoftrainingjobs_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, maxparalleltrainingjobs_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, parameterranges_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::SagemakerHPOJob, trainingjob_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, strategy_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, objective_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, maxnumberoftrainingjobs_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, maxparalleltrainingjobs_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, parameterranges_), + PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, trainingjob_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyte::plugins::ContinuousParameterRange)}, - { 9, -1, sizeof(::flyte::plugins::IntegerParameterRange)}, - { 18, -1, sizeof(::flyte::plugins::CategoricalParameterRange)}, - { 25, -1, sizeof(::flyte::plugins::ParameterRanges)}, - { 33, -1, sizeof(::flyte::plugins::AlgorithmSpecification_MetricDefinition)}, - { 40, -1, sizeof(::flyte::plugins::AlgorithmSpecification)}, - { 49, -1, sizeof(::flyte::plugins::ResourceConfig)}, - { 58, -1, sizeof(::flyte::plugins::StoppingCondition)}, - { 65, -1, sizeof(::flyte::plugins::VpcConfig)}, - { 72, -1, sizeof(::flyte::plugins::SagemakerTrainingJob)}, - { 84, -1, sizeof(::flyte::plugins::HPOJobObjective)}, - { 91, -1, sizeof(::flyte::plugins::SagemakerHPOJob)}, + { 0, -1, sizeof(::flyte::plugins::sagemaker::ContinuousParameterRange)}, + { 9, -1, sizeof(::flyte::plugins::sagemaker::IntegerParameterRange)}, + { 18, -1, sizeof(::flyte::plugins::sagemaker::CategoricalParameterRange)}, + { 25, -1, sizeof(::flyte::plugins::sagemaker::ParameterRanges)}, + { 33, -1, sizeof(::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition)}, + { 40, -1, sizeof(::flyte::plugins::sagemaker::AlgorithmSpecification)}, + { 49, -1, sizeof(::flyte::plugins::sagemaker::ResourceConfig)}, + { 58, -1, sizeof(::flyte::plugins::sagemaker::StoppingCondition)}, + { 65, -1, sizeof(::flyte::plugins::sagemaker::VpcConfig)}, + { 72, -1, sizeof(::flyte::plugins::sagemaker::SagemakerTrainingJob)}, + { 84, -1, sizeof(::flyte::plugins::sagemaker::HPOJobObjective)}, + { 91, -1, sizeof(::flyte::plugins::sagemaker::SagemakerHPOJob)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyte::plugins::_ContinuousParameterRange_default_instance_), - reinterpret_cast(&::flyte::plugins::_IntegerParameterRange_default_instance_), - reinterpret_cast(&::flyte::plugins::_CategoricalParameterRange_default_instance_), - reinterpret_cast(&::flyte::plugins::_ParameterRanges_default_instance_), - reinterpret_cast(&::flyte::plugins::_AlgorithmSpecification_MetricDefinition_default_instance_), - reinterpret_cast(&::flyte::plugins::_AlgorithmSpecification_default_instance_), - reinterpret_cast(&::flyte::plugins::_ResourceConfig_default_instance_), - reinterpret_cast(&::flyte::plugins::_StoppingCondition_default_instance_), - reinterpret_cast(&::flyte::plugins::_VpcConfig_default_instance_), - reinterpret_cast(&::flyte::plugins::_SagemakerTrainingJob_default_instance_), - reinterpret_cast(&::flyte::plugins::_HPOJobObjective_default_instance_), - reinterpret_cast(&::flyte::plugins::_SagemakerHPOJob_default_instance_), + reinterpret_cast(&::flyte::plugins::sagemaker::_ContinuousParameterRange_default_instance_), + reinterpret_cast(&::flyte::plugins::sagemaker::_IntegerParameterRange_default_instance_), + reinterpret_cast(&::flyte::plugins::sagemaker::_CategoricalParameterRange_default_instance_), + reinterpret_cast(&::flyte::plugins::sagemaker::_ParameterRanges_default_instance_), + reinterpret_cast(&::flyte::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_), + reinterpret_cast(&::flyte::plugins::sagemaker::_AlgorithmSpecification_default_instance_), + reinterpret_cast(&::flyte::plugins::sagemaker::_ResourceConfig_default_instance_), + reinterpret_cast(&::flyte::plugins::sagemaker::_StoppingCondition_default_instance_), + reinterpret_cast(&::flyte::plugins::sagemaker::_VpcConfig_default_instance_), + reinterpret_cast(&::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_), + reinterpret_cast(&::flyte::plugins::sagemaker::_HPOJobObjective_default_instance_), + reinterpret_cast(&::flyte::plugins::sagemaker::_SagemakerHPOJob_default_instance_), }; -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2eproto, "flyteidl/plugins/sagemaker.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto, 12, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2eproto, +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, "flyteidl/plugins/sagemaker/sagemaker.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, 12, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, }; -const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2eproto[] = - "\n flyteidl/plugins/sagemaker.proto\022\rflyt" - "e.plugins\"\213\001\n\030ContinuousParameterRange\022\014" - "\n\004Name\030\001 \001(\t\022\020\n\010MaxValue\030\002 \001(\001\022\020\n\010MinVal" - "ue\030\003 \001(\001\022=\n\013ScalingType\030\004 \001(\0162(.flyte.pl" - "ugins.HyperparameterScalingType\"\210\001\n\025Inte" - "gerParameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxVa" - "lue\030\002 \001(\002\022\020\n\010MinValue\030\003 \001(\002\022=\n\013ScalingTy" - "pe\030\004 \001(\0162(.flyte.plugins.HyperparameterS" +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[] = + "\n*flyteidl/plugins/sagemaker/sagemaker.p" + "roto\022\027flyte.plugins.sagemaker\"\225\001\n\030Contin" + "uousParameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxV" + "alue\030\002 \001(\001\022\020\n\010MinValue\030\003 \001(\001\022G\n\013ScalingT" + "ype\030\004 \001(\01622.flyte.plugins.sagemaker.Hype" + "rparameterScalingType\"\222\001\n\025IntegerParamet" + "erRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxValue\030\002 \001(\002\022" + "\020\n\010MinValue\030\003 \001(\002\022G\n\013ScalingType\030\004 \001(\01622" + ".flyte.plugins.sagemaker.HyperparameterS" "calingType\"9\n\031CategoricalParameterRange\022" - "\014\n\004Name\030\001 \001(\t\022\016\n\006Values\030\002 \003(\t\"\361\001\n\017Parame" - "terRanges\022J\n\031ContinuousParameterRanges\030\001" - " \003(\0132\'.flyte.plugins.ContinuousParameter" - "Range\022D\n\026IntegerParameterRanges\030\002 \003(\0132$." - "flyte.plugins.IntegerParameterRange\022L\n\032C" - "ategoricalParameterRanges\030\003 \003(\0132(.flyte." - "plugins.CategoricalParameterRange\"\345\001\n\026Al" - "gorithmSpecification\022\025\n\rTrainingImage\030\001 " - "\001(\t\022\031\n\021TrainingInputMode\030\002 \001(\t\022\025\n\rAlgori" - "thmName\030\003 \001(\t\022Q\n\021MetricDefinitions\030\004 \003(\013" - "26.flyte.plugins.AlgorithmSpecification." + "\014\n\004Name\030\001 \001(\t\022\016\n\006Values\030\002 \003(\t\"\217\002\n\017Parame" + "terRanges\022T\n\031ContinuousParameterRanges\030\001" + " \003(\01321.flyte.plugins.sagemaker.Continuou" + "sParameterRange\022N\n\026IntegerParameterRange" + "s\030\002 \003(\0132..flyte.plugins.sagemaker.Intege" + "rParameterRange\022V\n\032CategoricalParameterR" + "anges\030\003 \003(\01322.flyte.plugins.sagemaker.Ca" + "tegoricalParameterRange\"\357\001\n\026AlgorithmSpe" + "cification\022\025\n\rTrainingImage\030\001 \001(\t\022\031\n\021Tra" + "iningInputMode\030\002 \001(\t\022\025\n\rAlgorithmName\030\003 " + "\001(\t\022[\n\021MetricDefinitions\030\004 \003(\0132@.flyte.p" + "lugins.sagemaker.AlgorithmSpecification." "MetricDefinition\032/\n\020MetricDefinition\022\014\n\004" "Name\030\001 \001(\t\022\r\n\005Regex\030\002 \001(\t\"m\n\016ResourceCon" "fig\022\024\n\014InstanceType\030\001 \001(\t\022\025\n\rInstanceCou" @@ -445,50 +449,53 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2eproto[] = "meKmsKeyId\030\004 \001(\t\"N\n\021StoppingCondition\022\033\n" "\023MaxRuntimeInSeconds\030\001 \001(\003\022\034\n\024MaxWaitTim" "eInSeconds\030\002 \001(\003\"6\n\tVpcConfig\022\030\n\020Securit" - "yGroupIds\030\001 \003(\t\022\017\n\007Subnets\030\002 \003(\t\"\273\002\n\024Sag" + "yGroupIds\030\001 \003(\t\022\017\n\007Subnets\030\002 \003(\t\"\343\002\n\024Sag" "emakerTrainingJob\022\016\n\006Region\030\001 \001(\t\022\017\n\007Rol" - "eArn\030\002 \001(\t\022E\n\026AlgorithmSpecification\030\003 \001" - "(\0132%.flyte.plugins.AlgorithmSpecificatio" - "n\0225\n\016ResourceConfig\030\004 \001(\0132\035.flyte.plugin" - "s.ResourceConfig\022;\n\021StoppingCondition\030\005 " - "\001(\0132 .flyte.plugins.StoppingCondition\022+\n" - "\tVpcConfig\030\006 \001(\0132\030.flyte.plugins.VpcConf" - "ig\022\032\n\022EnableSpotTraining\030\007 \001(\010\"W\n\017HPOJob" - "Objective\0220\n\004Type\030\001 \001(\0162\".flyte.plugins." - "HPOJobObjectiveType\022\022\n\nMetricName\030\002 \001(\t\"" - "\213\002\n\017SagemakerHPOJob\022\020\n\010Strategy\030\001 \001(\t\0221\n" - "\tObjective\030\002 \001(\0132\036.flyte.plugins.HPOJobO" - "bjective\022\037\n\027MaxNumberOfTrainingJobs\030\003 \001(" - "\003\022\037\n\027MaxParallelTrainingJobs\030\004 \001(\003\0227\n\017Pa" - "rameterRanges\030\005 \001(\0132\036.flyte.plugins.Para" - "meterRanges\0228\n\013TrainingJob\030\006 \001(\0132#.flyte" - ".plugins.SagemakerTrainingJob*Z\n\031Hyperpa" + "eArn\030\002 \001(\t\022O\n\026AlgorithmSpecification\030\003 \001" + "(\0132/.flyte.plugins.sagemaker.AlgorithmSp" + "ecification\022\?\n\016ResourceConfig\030\004 \001(\0132\'.fl" + "yte.plugins.sagemaker.ResourceConfig\022E\n\021" + "StoppingCondition\030\005 \001(\0132*.flyte.plugins." + "sagemaker.StoppingCondition\0225\n\tVpcConfig" + "\030\006 \001(\0132\".flyte.plugins.sagemaker.VpcConf" + "ig\022\032\n\022EnableSpotTraining\030\007 \001(\010\"a\n\017HPOJob" + "Objective\022:\n\004Type\030\001 \001(\0162,.flyte.plugins." + "sagemaker.HPOJobObjectiveType\022\022\n\nMetricN" + "ame\030\002 \001(\t\"\251\002\n\017SagemakerHPOJob\022\020\n\010Strateg" + "y\030\001 \001(\t\022;\n\tObjective\030\002 \001(\0132(.flyte.plugi" + "ns.sagemaker.HPOJobObjective\022\037\n\027MaxNumbe" + "rOfTrainingJobs\030\003 \001(\003\022\037\n\027MaxParallelTrai" + "ningJobs\030\004 \001(\003\022A\n\017ParameterRanges\030\005 \001(\0132" + "(.flyte.plugins.sagemaker.ParameterRange" + "s\022B\n\013TrainingJob\030\006 \001(\0132-.flyte.plugins.s" + "agemaker.SagemakerTrainingJob*Z\n\031Hyperpa" "rameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001" "\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHMIC\020" "\003*1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE\020\000\022\014" "\n\010MAXIMIZE\020\001B5Z3github.com/lyft/flyteidl" "/gen/pb-go/flyteidl/pluginsb\006proto3" ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2eproto, - "flyteidl/plugins/sagemaker.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto, 1995, +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, + "flyteidl/plugins/sagemaker/sagemaker.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, 2155, }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2eproto() { +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { static constexpr ::google::protobuf::internal::InitFunc deps[1] = { }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2eproto, deps, 0); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, deps, 0); } // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2eproto(); return true; }(); +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto(); return true; }(); namespace flyte { namespace plugins { +namespace sagemaker { const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2eproto[0]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[0]; } bool HyperparameterScalingType_IsValid(int value) { switch (value) { @@ -503,8 +510,8 @@ bool HyperparameterScalingType_IsValid(int value) { } const ::google::protobuf::EnumDescriptor* HPOJobObjectiveType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2eproto[1]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[1]; } bool HPOJobObjectiveType_IsValid(int value) { switch (value) { @@ -535,7 +542,7 @@ const int ContinuousParameterRange::kScalingTypeFieldNumber; ContinuousParameterRange::ContinuousParameterRange() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.ContinuousParameterRange) } ContinuousParameterRange::ContinuousParameterRange(const ContinuousParameterRange& from) : ::google::protobuf::Message(), @@ -548,12 +555,12 @@ ContinuousParameterRange::ContinuousParameterRange(const ContinuousParameterRang ::memcpy(&maxvalue_, &from.maxvalue_, static_cast(reinterpret_cast(&scalingtype_) - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.ContinuousParameterRange) } void ContinuousParameterRange::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&maxvalue_, 0, static_cast( reinterpret_cast(&scalingtype_) - @@ -561,7 +568,7 @@ void ContinuousParameterRange::SharedCtor() { } ContinuousParameterRange::~ContinuousParameterRange() { - // @@protoc_insertion_point(destructor:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.ContinuousParameterRange) SharedDtor(); } @@ -573,13 +580,13 @@ void ContinuousParameterRange::SetCachedSize(int size) const { _cached_size_.Set(size); } const ContinuousParameterRange& ContinuousParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); return *internal_default_instance(); } void ContinuousParameterRange::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.ContinuousParameterRange) +// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.ContinuousParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -609,7 +616,7 @@ const char* ContinuousParameterRange::_InternalParse(const char* begin, const ch if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.ContinuousParameterRange.Name"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.ContinuousParameterRange.Name"); object = msg->mutable_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -634,11 +641,11 @@ const char* ContinuousParameterRange::_InternalParse(const char* begin, const ch ptr += sizeof(double); break; } - // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_scalingtype(static_cast<::flyte::plugins::HyperparameterScalingType>(val)); + msg->set_scalingtype(static_cast<::flyte::plugins::sagemaker::HyperparameterScalingType>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -670,7 +677,7 @@ bool ContinuousParameterRange::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.ContinuousParameterRange) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -684,7 +691,7 @@ bool ContinuousParameterRange::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.ContinuousParameterRange.Name")); + "flyte.plugins.sagemaker.ContinuousParameterRange.Name")); } else { goto handle_unusual; } @@ -717,14 +724,14 @@ bool ContinuousParameterRange::MergePartialFromCodedStream( break; } - // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - set_scalingtype(static_cast< ::flyte::plugins::HyperparameterScalingType >(value)); + set_scalingtype(static_cast< ::flyte::plugins::sagemaker::HyperparameterScalingType >(value)); } else { goto handle_unusual; } @@ -743,10 +750,10 @@ bool ContinuousParameterRange::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.ContinuousParameterRange) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.ContinuousParameterRange) return false; #undef DO_ } @@ -754,7 +761,7 @@ bool ContinuousParameterRange::MergePartialFromCodedStream( void ContinuousParameterRange::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.ContinuousParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -763,7 +770,7 @@ void ContinuousParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.ContinuousParameterRange.Name"); + "flyte.plugins.sagemaker.ContinuousParameterRange.Name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } @@ -778,7 +785,7 @@ void ContinuousParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->minvalue(), output); } - // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; if (this->scalingtype() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 4, this->scalingtype(), output); @@ -788,12 +795,12 @@ void ContinuousParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.ContinuousParameterRange) } ::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.ContinuousParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -802,7 +809,7 @@ ::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCached ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.ContinuousParameterRange.Name"); + "flyte.plugins.sagemaker.ContinuousParameterRange.Name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); @@ -818,7 +825,7 @@ ::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCached target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->minvalue(), target); } - // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; if (this->scalingtype() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 4, this->scalingtype(), target); @@ -828,12 +835,12 @@ ::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCached target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.ContinuousParameterRange) return target; } size_t ContinuousParameterRange::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.ContinuousParameterRange) +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.ContinuousParameterRange) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -862,7 +869,7 @@ size_t ContinuousParameterRange::ByteSizeLong() const { total_size += 1 + 8; } - // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; if (this->scalingtype() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scalingtype()); @@ -874,22 +881,22 @@ size_t ContinuousParameterRange::ByteSizeLong() const { } void ContinuousParameterRange::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.ContinuousParameterRange) +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.ContinuousParameterRange) GOOGLE_DCHECK_NE(&from, this); const ContinuousParameterRange* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.ContinuousParameterRange) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.ContinuousParameterRange) MergeFrom(*source); } } void ContinuousParameterRange::MergeFrom(const ContinuousParameterRange& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.ContinuousParameterRange) +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.ContinuousParameterRange) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -911,14 +918,14 @@ void ContinuousParameterRange::MergeFrom(const ContinuousParameterRange& from) { } void ContinuousParameterRange::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.ContinuousParameterRange) +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.ContinuousParameterRange) if (&from == this) return; Clear(); MergeFrom(from); } void ContinuousParameterRange::CopyFrom(const ContinuousParameterRange& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.ContinuousParameterRange) +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.ContinuousParameterRange) if (&from == this) return; Clear(); MergeFrom(from); @@ -943,8 +950,8 @@ void ContinuousParameterRange::InternalSwap(ContinuousParameterRange* other) { } ::google::protobuf::Metadata ContinuousParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; } @@ -966,7 +973,7 @@ const int IntegerParameterRange::kScalingTypeFieldNumber; IntegerParameterRange::IntegerParameterRange() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.IntegerParameterRange) } IntegerParameterRange::IntegerParameterRange(const IntegerParameterRange& from) : ::google::protobuf::Message(), @@ -979,12 +986,12 @@ IntegerParameterRange::IntegerParameterRange(const IntegerParameterRange& from) ::memcpy(&maxvalue_, &from.maxvalue_, static_cast(reinterpret_cast(&scalingtype_) - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.IntegerParameterRange) } void IntegerParameterRange::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&maxvalue_, 0, static_cast( reinterpret_cast(&scalingtype_) - @@ -992,7 +999,7 @@ void IntegerParameterRange::SharedCtor() { } IntegerParameterRange::~IntegerParameterRange() { - // @@protoc_insertion_point(destructor:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.IntegerParameterRange) SharedDtor(); } @@ -1004,13 +1011,13 @@ void IntegerParameterRange::SetCachedSize(int size) const { _cached_size_.Set(size); } const IntegerParameterRange& IntegerParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); return *internal_default_instance(); } void IntegerParameterRange::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.IntegerParameterRange) +// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.IntegerParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1040,7 +1047,7 @@ const char* IntegerParameterRange::_InternalParse(const char* begin, const char* if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.IntegerParameterRange.Name"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.IntegerParameterRange.Name"); object = msg->mutable_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -1065,11 +1072,11 @@ const char* IntegerParameterRange::_InternalParse(const char* begin, const char* ptr += sizeof(float); break; } - // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_scalingtype(static_cast<::flyte::plugins::HyperparameterScalingType>(val)); + msg->set_scalingtype(static_cast<::flyte::plugins::sagemaker::HyperparameterScalingType>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -1101,7 +1108,7 @@ bool IntegerParameterRange::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.IntegerParameterRange) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -1115,7 +1122,7 @@ bool IntegerParameterRange::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.IntegerParameterRange.Name")); + "flyte.plugins.sagemaker.IntegerParameterRange.Name")); } else { goto handle_unusual; } @@ -1148,14 +1155,14 @@ bool IntegerParameterRange::MergePartialFromCodedStream( break; } - // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - set_scalingtype(static_cast< ::flyte::plugins::HyperparameterScalingType >(value)); + set_scalingtype(static_cast< ::flyte::plugins::sagemaker::HyperparameterScalingType >(value)); } else { goto handle_unusual; } @@ -1174,10 +1181,10 @@ bool IntegerParameterRange::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.IntegerParameterRange) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.IntegerParameterRange) return false; #undef DO_ } @@ -1185,7 +1192,7 @@ bool IntegerParameterRange::MergePartialFromCodedStream( void IntegerParameterRange::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.IntegerParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1194,7 +1201,7 @@ void IntegerParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.IntegerParameterRange.Name"); + "flyte.plugins.sagemaker.IntegerParameterRange.Name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } @@ -1209,7 +1216,7 @@ void IntegerParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->minvalue(), output); } - // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; if (this->scalingtype() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 4, this->scalingtype(), output); @@ -1219,12 +1226,12 @@ void IntegerParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.IntegerParameterRange) } ::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.IntegerParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1233,7 +1240,7 @@ ::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSiz ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.IntegerParameterRange.Name"); + "flyte.plugins.sagemaker.IntegerParameterRange.Name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); @@ -1249,7 +1256,7 @@ ::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSiz target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->minvalue(), target); } - // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; if (this->scalingtype() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 4, this->scalingtype(), target); @@ -1259,12 +1266,12 @@ ::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSiz target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.IntegerParameterRange) return target; } size_t IntegerParameterRange::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.IntegerParameterRange) +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.IntegerParameterRange) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -1293,7 +1300,7 @@ size_t IntegerParameterRange::ByteSizeLong() const { total_size += 1 + 4; } - // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; if (this->scalingtype() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scalingtype()); @@ -1305,22 +1312,22 @@ size_t IntegerParameterRange::ByteSizeLong() const { } void IntegerParameterRange::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.IntegerParameterRange) +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.IntegerParameterRange) GOOGLE_DCHECK_NE(&from, this); const IntegerParameterRange* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.IntegerParameterRange) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.IntegerParameterRange) MergeFrom(*source); } } void IntegerParameterRange::MergeFrom(const IntegerParameterRange& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.IntegerParameterRange) +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.IntegerParameterRange) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -1342,14 +1349,14 @@ void IntegerParameterRange::MergeFrom(const IntegerParameterRange& from) { } void IntegerParameterRange::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.IntegerParameterRange) +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.IntegerParameterRange) if (&from == this) return; Clear(); MergeFrom(from); } void IntegerParameterRange::CopyFrom(const IntegerParameterRange& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.IntegerParameterRange) +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.IntegerParameterRange) if (&from == this) return; Clear(); MergeFrom(from); @@ -1374,8 +1381,8 @@ void IntegerParameterRange::InternalSwap(IntegerParameterRange* other) { } ::google::protobuf::Metadata IntegerParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; } @@ -1395,7 +1402,7 @@ const int CategoricalParameterRange::kValuesFieldNumber; CategoricalParameterRange::CategoricalParameterRange() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.CategoricalParameterRange) } CategoricalParameterRange::CategoricalParameterRange(const CategoricalParameterRange& from) : ::google::protobuf::Message(), @@ -1406,17 +1413,17 @@ CategoricalParameterRange::CategoricalParameterRange(const CategoricalParameterR if (from.name().size() > 0) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } - // @@protoc_insertion_point(copy_constructor:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.CategoricalParameterRange) } void CategoricalParameterRange::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } CategoricalParameterRange::~CategoricalParameterRange() { - // @@protoc_insertion_point(destructor:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.CategoricalParameterRange) SharedDtor(); } @@ -1428,13 +1435,13 @@ void CategoricalParameterRange::SetCachedSize(int size) const { _cached_size_.Set(size); } const CategoricalParameterRange& CategoricalParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); return *internal_default_instance(); } void CategoricalParameterRange::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.CategoricalParameterRange) +// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.CategoricalParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1462,7 +1469,7 @@ const char* CategoricalParameterRange::_InternalParse(const char* begin, const c if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.CategoricalParameterRange.Name"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.CategoricalParameterRange.Name"); object = msg->mutable_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -1479,7 +1486,7 @@ const char* CategoricalParameterRange::_InternalParse(const char* begin, const c do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.CategoricalParameterRange.Values"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.CategoricalParameterRange.Values"); object = msg->add_values(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -1520,7 +1527,7 @@ bool CategoricalParameterRange::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.CategoricalParameterRange) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -1534,7 +1541,7 @@ bool CategoricalParameterRange::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.CategoricalParameterRange.Name")); + "flyte.plugins.sagemaker.CategoricalParameterRange.Name")); } else { goto handle_unusual; } @@ -1550,7 +1557,7 @@ bool CategoricalParameterRange::MergePartialFromCodedStream( this->values(this->values_size() - 1).data(), static_cast(this->values(this->values_size() - 1).length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.CategoricalParameterRange.Values")); + "flyte.plugins.sagemaker.CategoricalParameterRange.Values")); } else { goto handle_unusual; } @@ -1569,10 +1576,10 @@ bool CategoricalParameterRange::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.CategoricalParameterRange) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.CategoricalParameterRange) return false; #undef DO_ } @@ -1580,7 +1587,7 @@ bool CategoricalParameterRange::MergePartialFromCodedStream( void CategoricalParameterRange::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.CategoricalParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1589,7 +1596,7 @@ void CategoricalParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.CategoricalParameterRange.Name"); + "flyte.plugins.sagemaker.CategoricalParameterRange.Name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } @@ -1599,7 +1606,7 @@ void CategoricalParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->values(i).data(), static_cast(this->values(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.CategoricalParameterRange.Values"); + "flyte.plugins.sagemaker.CategoricalParameterRange.Values"); ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->values(i), output); } @@ -1608,12 +1615,12 @@ void CategoricalParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.CategoricalParameterRange) } ::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.CategoricalParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1622,7 +1629,7 @@ ::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCache ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.CategoricalParameterRange.Name"); + "flyte.plugins.sagemaker.CategoricalParameterRange.Name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); @@ -1633,7 +1640,7 @@ ::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCache ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->values(i).data(), static_cast(this->values(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.CategoricalParameterRange.Values"); + "flyte.plugins.sagemaker.CategoricalParameterRange.Values"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(2, this->values(i), target); } @@ -1642,12 +1649,12 @@ ::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCache target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.CategoricalParameterRange) return target; } size_t CategoricalParameterRange::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.CategoricalParameterRange) +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.CategoricalParameterRange) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -1680,22 +1687,22 @@ size_t CategoricalParameterRange::ByteSizeLong() const { } void CategoricalParameterRange::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.CategoricalParameterRange) +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.CategoricalParameterRange) GOOGLE_DCHECK_NE(&from, this); const CategoricalParameterRange* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.CategoricalParameterRange) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.CategoricalParameterRange) MergeFrom(*source); } } void CategoricalParameterRange::MergeFrom(const CategoricalParameterRange& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.CategoricalParameterRange) +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.CategoricalParameterRange) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -1709,14 +1716,14 @@ void CategoricalParameterRange::MergeFrom(const CategoricalParameterRange& from) } void CategoricalParameterRange::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.CategoricalParameterRange) +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.CategoricalParameterRange) if (&from == this) return; Clear(); MergeFrom(from); } void CategoricalParameterRange::CopyFrom(const CategoricalParameterRange& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.CategoricalParameterRange) +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.CategoricalParameterRange) if (&from == this) return; Clear(); MergeFrom(from); @@ -1739,8 +1746,8 @@ void CategoricalParameterRange::InternalSwap(CategoricalParameterRange* other) { } ::google::protobuf::Metadata CategoricalParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; } @@ -1761,7 +1768,7 @@ const int ParameterRanges::kCategoricalParameterRangesFieldNumber; ParameterRanges::ParameterRanges() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.ParameterRanges) } ParameterRanges::ParameterRanges(const ParameterRanges& from) : ::google::protobuf::Message(), @@ -1770,16 +1777,16 @@ ParameterRanges::ParameterRanges(const ParameterRanges& from) integerparameterranges_(from.integerparameterranges_), categoricalparameterranges_(from.categoricalparameterranges_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.ParameterRanges) } void ParameterRanges::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto.base); + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); } ParameterRanges::~ParameterRanges() { - // @@protoc_insertion_point(destructor:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.ParameterRanges) SharedDtor(); } @@ -1790,13 +1797,13 @@ void ParameterRanges::SetCachedSize(int size) const { _cached_size_.Set(size); } const ParameterRanges& ParameterRanges::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); return *internal_default_instance(); } void ParameterRanges::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.ParameterRanges) +// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.ParameterRanges) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1820,13 +1827,13 @@ const char* ParameterRanges::_InternalParse(const char* begin, const char* end, ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + // repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::ContinuousParameterRange::_InternalParse; + parser_till_end = ::flyte::plugins::sagemaker::ContinuousParameterRange::_InternalParse; object = msg->add_continuousparameterranges(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -1836,13 +1843,13 @@ const char* ParameterRanges::_InternalParse(const char* begin, const char* end, } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); break; } - // repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + // repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::IntegerParameterRange::_InternalParse; + parser_till_end = ::flyte::plugins::sagemaker::IntegerParameterRange::_InternalParse; object = msg->add_integerparameterranges(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -1852,13 +1859,13 @@ const char* ParameterRanges::_InternalParse(const char* begin, const char* end, } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); break; } - // repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + // repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::CategoricalParameterRange::_InternalParse; + parser_till_end = ::flyte::plugins::sagemaker::CategoricalParameterRange::_InternalParse; object = msg->add_categoricalparameterranges(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -1892,13 +1899,13 @@ bool ParameterRanges::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.ParameterRanges) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + // repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -1909,7 +1916,7 @@ bool ParameterRanges::MergePartialFromCodedStream( break; } - // repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + // repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -1920,7 +1927,7 @@ bool ParameterRanges::MergePartialFromCodedStream( break; } - // repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + // repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -1943,10 +1950,10 @@ bool ParameterRanges::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.ParameterRanges) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.ParameterRanges) return false; #undef DO_ } @@ -1954,11 +1961,11 @@ bool ParameterRanges::MergePartialFromCodedStream( void ParameterRanges::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.ParameterRanges) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + // repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; for (unsigned int i = 0, n = static_cast(this->continuousparameterranges_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( @@ -1967,7 +1974,7 @@ void ParameterRanges::SerializeWithCachedSizes( output); } - // repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + // repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; for (unsigned int i = 0, n = static_cast(this->integerparameterranges_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( @@ -1976,7 +1983,7 @@ void ParameterRanges::SerializeWithCachedSizes( output); } - // repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + // repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; for (unsigned int i = 0, n = static_cast(this->categoricalparameterranges_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( @@ -1989,16 +1996,16 @@ void ParameterRanges::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.ParameterRanges) } ::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.ParameterRanges) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + // repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; for (unsigned int i = 0, n = static_cast(this->continuousparameterranges_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: @@ -2006,7 +2013,7 @@ ::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToAr 1, this->continuousparameterranges(static_cast(i)), target); } - // repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + // repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; for (unsigned int i = 0, n = static_cast(this->integerparameterranges_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: @@ -2014,7 +2021,7 @@ ::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToAr 2, this->integerparameterranges(static_cast(i)), target); } - // repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + // repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; for (unsigned int i = 0, n = static_cast(this->categoricalparameterranges_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: @@ -2026,12 +2033,12 @@ ::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToAr target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.ParameterRanges) return target; } size_t ParameterRanges::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.ParameterRanges) +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.ParameterRanges) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2043,7 +2050,7 @@ size_t ParameterRanges::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + // repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; { unsigned int count = static_cast(this->continuousparameterranges_size()); total_size += 1UL * count; @@ -2054,7 +2061,7 @@ size_t ParameterRanges::ByteSizeLong() const { } } - // repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + // repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; { unsigned int count = static_cast(this->integerparameterranges_size()); total_size += 1UL * count; @@ -2065,7 +2072,7 @@ size_t ParameterRanges::ByteSizeLong() const { } } - // repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + // repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; { unsigned int count = static_cast(this->categoricalparameterranges_size()); total_size += 1UL * count; @@ -2082,22 +2089,22 @@ size_t ParameterRanges::ByteSizeLong() const { } void ParameterRanges::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.ParameterRanges) +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.ParameterRanges) GOOGLE_DCHECK_NE(&from, this); const ParameterRanges* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.ParameterRanges) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.ParameterRanges) MergeFrom(*source); } } void ParameterRanges::MergeFrom(const ParameterRanges& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.ParameterRanges) +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.ParameterRanges) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -2109,14 +2116,14 @@ void ParameterRanges::MergeFrom(const ParameterRanges& from) { } void ParameterRanges::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.ParameterRanges) +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.ParameterRanges) if (&from == this) return; Clear(); MergeFrom(from); } void ParameterRanges::CopyFrom(const ParameterRanges& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.ParameterRanges) +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.ParameterRanges) if (&from == this) return; Clear(); MergeFrom(from); @@ -2139,8 +2146,8 @@ void ParameterRanges::InternalSwap(ParameterRanges* other) { } ::google::protobuf::Metadata ParameterRanges::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; } @@ -2160,7 +2167,7 @@ const int AlgorithmSpecification_MetricDefinition::kRegexFieldNumber; AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) } AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from) : ::google::protobuf::Message(), @@ -2174,18 +2181,18 @@ AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition if (from.regex().size() > 0) { regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); } - // @@protoc_insertion_point(copy_constructor:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) } void AlgorithmSpecification_MetricDefinition::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto.base); + &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } AlgorithmSpecification_MetricDefinition::~AlgorithmSpecification_MetricDefinition() { - // @@protoc_insertion_point(destructor:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) SharedDtor(); } @@ -2198,13 +2205,13 @@ void AlgorithmSpecification_MetricDefinition::SetCachedSize(int size) const { _cached_size_.Set(size); } const AlgorithmSpecification_MetricDefinition& AlgorithmSpecification_MetricDefinition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); return *internal_default_instance(); } void AlgorithmSpecification_MetricDefinition::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) +// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2232,7 +2239,7 @@ const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char* if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.AlgorithmSpecification.MetricDefinition.Name"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); object = msg->mutable_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -2248,7 +2255,7 @@ const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char* if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); object = msg->mutable_regex(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -2287,7 +2294,7 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -2301,7 +2308,7 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.AlgorithmSpecification.MetricDefinition.Name")); + "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name")); } else { goto handle_unusual; } @@ -2316,7 +2323,7 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->regex().data(), static_cast(this->regex().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex")); + "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex")); } else { goto handle_unusual; } @@ -2335,10 +2342,10 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) return false; #undef DO_ } @@ -2346,7 +2353,7 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2355,7 +2362,7 @@ void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.AlgorithmSpecification.MetricDefinition.Name"); + "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } @@ -2365,7 +2372,7 @@ void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->regex().data(), static_cast(this->regex().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex"); + "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->regex(), output); } @@ -2374,12 +2381,12 @@ void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) } ::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2388,7 +2395,7 @@ ::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSeri ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.AlgorithmSpecification.MetricDefinition.Name"); + "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); @@ -2399,7 +2406,7 @@ ::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSeri ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->regex().data(), static_cast(this->regex().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex"); + "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->regex(), target); @@ -2409,12 +2416,12 @@ ::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSeri target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) return target; } size_t AlgorithmSpecification_MetricDefinition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2446,22 +2453,22 @@ size_t AlgorithmSpecification_MetricDefinition::ByteSizeLong() const { } void AlgorithmSpecification_MetricDefinition::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) GOOGLE_DCHECK_NE(&from, this); const AlgorithmSpecification_MetricDefinition* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) MergeFrom(*source); } } void AlgorithmSpecification_MetricDefinition::MergeFrom(const AlgorithmSpecification_MetricDefinition& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -2478,14 +2485,14 @@ void AlgorithmSpecification_MetricDefinition::MergeFrom(const AlgorithmSpecifica } void AlgorithmSpecification_MetricDefinition::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) if (&from == this) return; Clear(); MergeFrom(from); } void AlgorithmSpecification_MetricDefinition::CopyFrom(const AlgorithmSpecification_MetricDefinition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.AlgorithmSpecification.MetricDefinition) +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) if (&from == this) return; Clear(); MergeFrom(from); @@ -2509,8 +2516,8 @@ void AlgorithmSpecification_MetricDefinition::InternalSwap(AlgorithmSpecificatio } ::google::protobuf::Metadata AlgorithmSpecification_MetricDefinition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; } @@ -2532,7 +2539,7 @@ const int AlgorithmSpecification::kMetricDefinitionsFieldNumber; AlgorithmSpecification::AlgorithmSpecification() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.AlgorithmSpecification) } AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& from) : ::google::protobuf::Message(), @@ -2551,19 +2558,19 @@ AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& fro if (from.algorithmname().size() > 0) { algorithmname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithmname_); } - // @@protoc_insertion_point(copy_constructor:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.AlgorithmSpecification) } void AlgorithmSpecification::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto.base); + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); trainingimage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); traininginputmode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); algorithmname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } AlgorithmSpecification::~AlgorithmSpecification() { - // @@protoc_insertion_point(destructor:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.AlgorithmSpecification) SharedDtor(); } @@ -2577,13 +2584,13 @@ void AlgorithmSpecification::SetCachedSize(int size) const { _cached_size_.Set(size); } const AlgorithmSpecification& AlgorithmSpecification::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); return *internal_default_instance(); } void AlgorithmSpecification::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.AlgorithmSpecification) +// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.AlgorithmSpecification) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2613,7 +2620,7 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.AlgorithmSpecification.TrainingImage"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); object = msg->mutable_trainingimage(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -2629,7 +2636,7 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.AlgorithmSpecification.TrainingInputMode"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); object = msg->mutable_traininginputmode(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -2645,7 +2652,7 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.AlgorithmSpecification.AlgorithmName"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); object = msg->mutable_algorithmname(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -2656,13 +2663,13 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char ptr += size; break; } - // repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::AlgorithmSpecification_MetricDefinition::_InternalParse; + parser_till_end = ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::_InternalParse; object = msg->add_metricdefinitions(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -2700,7 +2707,7 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.AlgorithmSpecification) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -2714,7 +2721,7 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->trainingimage().data(), static_cast(this->trainingimage().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.AlgorithmSpecification.TrainingImage")); + "flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage")); } else { goto handle_unusual; } @@ -2729,7 +2736,7 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->traininginputmode().data(), static_cast(this->traininginputmode().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.AlgorithmSpecification.TrainingInputMode")); + "flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode")); } else { goto handle_unusual; } @@ -2744,14 +2751,14 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->algorithmname().data(), static_cast(this->algorithmname().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.AlgorithmSpecification.AlgorithmName")); + "flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName")); } else { goto handle_unusual; } break; } - // repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -2774,10 +2781,10 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.AlgorithmSpecification) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.AlgorithmSpecification) return false; #undef DO_ } @@ -2785,7 +2792,7 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( void AlgorithmSpecification::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.AlgorithmSpecification) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2794,7 +2801,7 @@ void AlgorithmSpecification::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->trainingimage().data(), static_cast(this->trainingimage().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.AlgorithmSpecification.TrainingImage"); + "flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->trainingimage(), output); } @@ -2804,7 +2811,7 @@ void AlgorithmSpecification::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->traininginputmode().data(), static_cast(this->traininginputmode().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.AlgorithmSpecification.TrainingInputMode"); + "flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->traininginputmode(), output); } @@ -2814,12 +2821,12 @@ void AlgorithmSpecification::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->algorithmname().data(), static_cast(this->algorithmname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.AlgorithmSpecification.AlgorithmName"); + "flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->algorithmname(), output); } - // repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; for (unsigned int i = 0, n = static_cast(this->metricdefinitions_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( @@ -2832,12 +2839,12 @@ void AlgorithmSpecification::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.AlgorithmSpecification) } ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.AlgorithmSpecification) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2846,7 +2853,7 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->trainingimage().data(), static_cast(this->trainingimage().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.AlgorithmSpecification.TrainingImage"); + "flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->trainingimage(), target); @@ -2857,7 +2864,7 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->traininginputmode().data(), static_cast(this->traininginputmode().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.AlgorithmSpecification.TrainingInputMode"); + "flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->traininginputmode(), target); @@ -2868,13 +2875,13 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->algorithmname().data(), static_cast(this->algorithmname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.AlgorithmSpecification.AlgorithmName"); + "flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->algorithmname(), target); } - // repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; for (unsigned int i = 0, n = static_cast(this->metricdefinitions_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: @@ -2886,12 +2893,12 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.AlgorithmSpecification) return target; } size_t AlgorithmSpecification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.AlgorithmSpecification) +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.AlgorithmSpecification) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2903,7 +2910,7 @@ size_t AlgorithmSpecification::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; { unsigned int count = static_cast(this->metricdefinitions_size()); total_size += 1UL * count; @@ -2941,22 +2948,22 @@ size_t AlgorithmSpecification::ByteSizeLong() const { } void AlgorithmSpecification::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.AlgorithmSpecification) +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.AlgorithmSpecification) GOOGLE_DCHECK_NE(&from, this); const AlgorithmSpecification* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.AlgorithmSpecification) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.AlgorithmSpecification) MergeFrom(*source); } } void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.AlgorithmSpecification) +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.AlgorithmSpecification) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -2978,14 +2985,14 @@ void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { } void AlgorithmSpecification::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.AlgorithmSpecification) +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.AlgorithmSpecification) if (&from == this) return; Clear(); MergeFrom(from); } void AlgorithmSpecification::CopyFrom(const AlgorithmSpecification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.AlgorithmSpecification) +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.AlgorithmSpecification) if (&from == this) return; Clear(); MergeFrom(from); @@ -3012,8 +3019,8 @@ void AlgorithmSpecification::InternalSwap(AlgorithmSpecification* other) { } ::google::protobuf::Metadata AlgorithmSpecification::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; } @@ -3035,7 +3042,7 @@ const int ResourceConfig::kVolumeKmsKeyIdFieldNumber; ResourceConfig::ResourceConfig() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.ResourceConfig) } ResourceConfig::ResourceConfig(const ResourceConfig& from) : ::google::protobuf::Message(), @@ -3052,12 +3059,12 @@ ResourceConfig::ResourceConfig(const ResourceConfig& from) ::memcpy(&instancecount_, &from.instancecount_, static_cast(reinterpret_cast(&volumesizeingb_) - reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.ResourceConfig) } void ResourceConfig::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base); + &scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); instancetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); volumekmskeyid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&instancecount_, 0, static_cast( @@ -3066,7 +3073,7 @@ void ResourceConfig::SharedCtor() { } ResourceConfig::~ResourceConfig() { - // @@protoc_insertion_point(destructor:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.ResourceConfig) SharedDtor(); } @@ -3079,13 +3086,13 @@ void ResourceConfig::SetCachedSize(int size) const { _cached_size_.Set(size); } const ResourceConfig& ResourceConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); return *internal_default_instance(); } void ResourceConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.ResourceConfig) +// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.ResourceConfig) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3116,7 +3123,7 @@ const char* ResourceConfig::_InternalParse(const char* begin, const char* end, v if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.ResourceConfig.InstanceType"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.ResourceConfig.InstanceType"); object = msg->mutable_instancetype(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -3146,7 +3153,7 @@ const char* ResourceConfig::_InternalParse(const char* begin, const char* end, v if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.ResourceConfig.VolumeKmsKeyId"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); object = msg->mutable_volumekmskeyid(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -3185,7 +3192,7 @@ bool ResourceConfig::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.ResourceConfig) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -3199,7 +3206,7 @@ bool ResourceConfig::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->instancetype().data(), static_cast(this->instancetype().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.ResourceConfig.InstanceType")); + "flyte.plugins.sagemaker.ResourceConfig.InstanceType")); } else { goto handle_unusual; } @@ -3240,7 +3247,7 @@ bool ResourceConfig::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.ResourceConfig.VolumeKmsKeyId")); + "flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId")); } else { goto handle_unusual; } @@ -3259,10 +3266,10 @@ bool ResourceConfig::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.ResourceConfig) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.ResourceConfig) return false; #undef DO_ } @@ -3270,7 +3277,7 @@ bool ResourceConfig::MergePartialFromCodedStream( void ResourceConfig::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.ResourceConfig) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -3279,7 +3286,7 @@ void ResourceConfig::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->instancetype().data(), static_cast(this->instancetype().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.ResourceConfig.InstanceType"); + "flyte.plugins.sagemaker.ResourceConfig.InstanceType"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->instancetype(), output); } @@ -3299,7 +3306,7 @@ void ResourceConfig::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.ResourceConfig.VolumeKmsKeyId"); + "flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->volumekmskeyid(), output); } @@ -3308,12 +3315,12 @@ void ResourceConfig::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.ResourceConfig) } ::google::protobuf::uint8* ResourceConfig::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.ResourceConfig) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -3322,7 +3329,7 @@ ::google::protobuf::uint8* ResourceConfig::InternalSerializeWithCachedSizesToArr ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->instancetype().data(), static_cast(this->instancetype().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.ResourceConfig.InstanceType"); + "flyte.plugins.sagemaker.ResourceConfig.InstanceType"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->instancetype(), target); @@ -3343,7 +3350,7 @@ ::google::protobuf::uint8* ResourceConfig::InternalSerializeWithCachedSizesToArr ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.ResourceConfig.VolumeKmsKeyId"); + "flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->volumekmskeyid(), target); @@ -3353,12 +3360,12 @@ ::google::protobuf::uint8* ResourceConfig::InternalSerializeWithCachedSizesToArr target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.ResourceConfig) return target; } size_t ResourceConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.ResourceConfig) +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.ResourceConfig) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -3404,22 +3411,22 @@ size_t ResourceConfig::ByteSizeLong() const { } void ResourceConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.ResourceConfig) +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.ResourceConfig) GOOGLE_DCHECK_NE(&from, this); const ResourceConfig* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.ResourceConfig) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.ResourceConfig) MergeFrom(*source); } } void ResourceConfig::MergeFrom(const ResourceConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.ResourceConfig) +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.ResourceConfig) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -3442,14 +3449,14 @@ void ResourceConfig::MergeFrom(const ResourceConfig& from) { } void ResourceConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.ResourceConfig) +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.ResourceConfig) if (&from == this) return; Clear(); MergeFrom(from); } void ResourceConfig::CopyFrom(const ResourceConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.ResourceConfig) +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.ResourceConfig) if (&from == this) return; Clear(); MergeFrom(from); @@ -3475,8 +3482,8 @@ void ResourceConfig::InternalSwap(ResourceConfig* other) { } ::google::protobuf::Metadata ResourceConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; } @@ -3496,7 +3503,7 @@ const int StoppingCondition::kMaxWaitTimeInSecondsFieldNumber; StoppingCondition::StoppingCondition() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.StoppingCondition) } StoppingCondition::StoppingCondition(const StoppingCondition& from) : ::google::protobuf::Message(), @@ -3505,7 +3512,7 @@ StoppingCondition::StoppingCondition(const StoppingCondition& from) ::memcpy(&maxruntimeinseconds_, &from.maxruntimeinseconds_, static_cast(reinterpret_cast(&maxwaittimeinseconds_) - reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.StoppingCondition) } void StoppingCondition::SharedCtor() { @@ -3515,7 +3522,7 @@ void StoppingCondition::SharedCtor() { } StoppingCondition::~StoppingCondition() { - // @@protoc_insertion_point(destructor:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.StoppingCondition) SharedDtor(); } @@ -3526,13 +3533,13 @@ void StoppingCondition::SetCachedSize(int size) const { _cached_size_.Set(size); } const StoppingCondition& StoppingCondition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); return *internal_default_instance(); } void StoppingCondition::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.StoppingCondition) +// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.StoppingCondition) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3591,7 +3598,7 @@ bool StoppingCondition::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.StoppingCondition) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -3635,10 +3642,10 @@ bool StoppingCondition::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.StoppingCondition) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.StoppingCondition) return false; #undef DO_ } @@ -3646,7 +3653,7 @@ bool StoppingCondition::MergePartialFromCodedStream( void StoppingCondition::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.StoppingCondition) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -3664,12 +3671,12 @@ void StoppingCondition::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.StoppingCondition) } ::google::protobuf::uint8* StoppingCondition::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.StoppingCondition) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -3687,12 +3694,12 @@ ::google::protobuf::uint8* StoppingCondition::InternalSerializeWithCachedSizesTo target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.StoppingCondition) return target; } size_t StoppingCondition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.StoppingCondition) +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.StoppingCondition) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -3724,22 +3731,22 @@ size_t StoppingCondition::ByteSizeLong() const { } void StoppingCondition::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.StoppingCondition) +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.StoppingCondition) GOOGLE_DCHECK_NE(&from, this); const StoppingCondition* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.StoppingCondition) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.StoppingCondition) MergeFrom(*source); } } void StoppingCondition::MergeFrom(const StoppingCondition& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.StoppingCondition) +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.StoppingCondition) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -3754,14 +3761,14 @@ void StoppingCondition::MergeFrom(const StoppingCondition& from) { } void StoppingCondition::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.StoppingCondition) +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.StoppingCondition) if (&from == this) return; Clear(); MergeFrom(from); } void StoppingCondition::CopyFrom(const StoppingCondition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.StoppingCondition) +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.StoppingCondition) if (&from == this) return; Clear(); MergeFrom(from); @@ -3783,8 +3790,8 @@ void StoppingCondition::InternalSwap(StoppingCondition* other) { } ::google::protobuf::Metadata StoppingCondition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; } @@ -3804,7 +3811,7 @@ const int VpcConfig::kSubnetsFieldNumber; VpcConfig::VpcConfig() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.VpcConfig) } VpcConfig::VpcConfig(const VpcConfig& from) : ::google::protobuf::Message(), @@ -3812,16 +3819,16 @@ VpcConfig::VpcConfig(const VpcConfig& from) securitygroupids_(from.securitygroupids_), subnets_(from.subnets_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.VpcConfig) } void VpcConfig::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base); + &scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); } VpcConfig::~VpcConfig() { - // @@protoc_insertion_point(destructor:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.VpcConfig) SharedDtor(); } @@ -3832,13 +3839,13 @@ void VpcConfig::SetCachedSize(int size) const { _cached_size_.Set(size); } const VpcConfig& VpcConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); return *internal_default_instance(); } void VpcConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.VpcConfig) +// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.VpcConfig) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3867,7 +3874,7 @@ const char* VpcConfig::_InternalParse(const char* begin, const char* end, void* do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.VpcConfig.SecurityGroupIds"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds"); object = msg->add_securitygroupids(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -3886,7 +3893,7 @@ const char* VpcConfig::_InternalParse(const char* begin, const char* end, void* do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.VpcConfig.Subnets"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.VpcConfig.Subnets"); object = msg->add_subnets(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -3927,7 +3934,7 @@ bool VpcConfig::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.VpcConfig) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -3942,7 +3949,7 @@ bool VpcConfig::MergePartialFromCodedStream( this->securitygroupids(this->securitygroupids_size() - 1).data(), static_cast(this->securitygroupids(this->securitygroupids_size() - 1).length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.VpcConfig.SecurityGroupIds")); + "flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds")); } else { goto handle_unusual; } @@ -3958,7 +3965,7 @@ bool VpcConfig::MergePartialFromCodedStream( this->subnets(this->subnets_size() - 1).data(), static_cast(this->subnets(this->subnets_size() - 1).length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.VpcConfig.Subnets")); + "flyte.plugins.sagemaker.VpcConfig.Subnets")); } else { goto handle_unusual; } @@ -3977,10 +3984,10 @@ bool VpcConfig::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.VpcConfig) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.VpcConfig) return false; #undef DO_ } @@ -3988,7 +3995,7 @@ bool VpcConfig::MergePartialFromCodedStream( void VpcConfig::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.VpcConfig) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -3997,7 +4004,7 @@ void VpcConfig::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->securitygroupids(i).data(), static_cast(this->securitygroupids(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.VpcConfig.SecurityGroupIds"); + "flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds"); ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->securitygroupids(i), output); } @@ -4007,7 +4014,7 @@ void VpcConfig::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->subnets(i).data(), static_cast(this->subnets(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.VpcConfig.Subnets"); + "flyte.plugins.sagemaker.VpcConfig.Subnets"); ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->subnets(i), output); } @@ -4016,12 +4023,12 @@ void VpcConfig::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.VpcConfig) } ::google::protobuf::uint8* VpcConfig::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.VpcConfig) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -4030,7 +4037,7 @@ ::google::protobuf::uint8* VpcConfig::InternalSerializeWithCachedSizesToArray( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->securitygroupids(i).data(), static_cast(this->securitygroupids(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.VpcConfig.SecurityGroupIds"); + "flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(1, this->securitygroupids(i), target); } @@ -4040,7 +4047,7 @@ ::google::protobuf::uint8* VpcConfig::InternalSerializeWithCachedSizesToArray( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->subnets(i).data(), static_cast(this->subnets(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.VpcConfig.Subnets"); + "flyte.plugins.sagemaker.VpcConfig.Subnets"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(2, this->subnets(i), target); } @@ -4049,12 +4056,12 @@ ::google::protobuf::uint8* VpcConfig::InternalSerializeWithCachedSizesToArray( target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.VpcConfig) return target; } size_t VpcConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.VpcConfig) +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.VpcConfig) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -4088,22 +4095,22 @@ size_t VpcConfig::ByteSizeLong() const { } void VpcConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.VpcConfig) +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.VpcConfig) GOOGLE_DCHECK_NE(&from, this); const VpcConfig* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.VpcConfig) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.VpcConfig) MergeFrom(*source); } } void VpcConfig::MergeFrom(const VpcConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.VpcConfig) +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.VpcConfig) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -4114,14 +4121,14 @@ void VpcConfig::MergeFrom(const VpcConfig& from) { } void VpcConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.VpcConfig) +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.VpcConfig) if (&from == this) return; Clear(); MergeFrom(from); } void VpcConfig::CopyFrom(const VpcConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.VpcConfig) +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.VpcConfig) if (&from == this) return; Clear(); MergeFrom(from); @@ -4143,44 +4150,44 @@ void VpcConfig::InternalSwap(VpcConfig* other) { } ::google::protobuf::Metadata VpcConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; } // =================================================================== void SagemakerTrainingJob::InitAsDefaultInstance() { - ::flyte::plugins::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->algorithmspecification_ = const_cast< ::flyte::plugins::AlgorithmSpecification*>( - ::flyte::plugins::AlgorithmSpecification::internal_default_instance()); - ::flyte::plugins::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->resourceconfig_ = const_cast< ::flyte::plugins::ResourceConfig*>( - ::flyte::plugins::ResourceConfig::internal_default_instance()); - ::flyte::plugins::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->stoppingcondition_ = const_cast< ::flyte::plugins::StoppingCondition*>( - ::flyte::plugins::StoppingCondition::internal_default_instance()); - ::flyte::plugins::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->vpcconfig_ = const_cast< ::flyte::plugins::VpcConfig*>( - ::flyte::plugins::VpcConfig::internal_default_instance()); + ::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->algorithmspecification_ = const_cast< ::flyte::plugins::sagemaker::AlgorithmSpecification*>( + ::flyte::plugins::sagemaker::AlgorithmSpecification::internal_default_instance()); + ::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->resourceconfig_ = const_cast< ::flyte::plugins::sagemaker::ResourceConfig*>( + ::flyte::plugins::sagemaker::ResourceConfig::internal_default_instance()); + ::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->stoppingcondition_ = const_cast< ::flyte::plugins::sagemaker::StoppingCondition*>( + ::flyte::plugins::sagemaker::StoppingCondition::internal_default_instance()); + ::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->vpcconfig_ = const_cast< ::flyte::plugins::sagemaker::VpcConfig*>( + ::flyte::plugins::sagemaker::VpcConfig::internal_default_instance()); } class SagemakerTrainingJob::HasBitSetters { public: - static const ::flyte::plugins::AlgorithmSpecification& algorithmspecification(const SagemakerTrainingJob* msg); - static const ::flyte::plugins::ResourceConfig& resourceconfig(const SagemakerTrainingJob* msg); - static const ::flyte::plugins::StoppingCondition& stoppingcondition(const SagemakerTrainingJob* msg); - static const ::flyte::plugins::VpcConfig& vpcconfig(const SagemakerTrainingJob* msg); + static const ::flyte::plugins::sagemaker::AlgorithmSpecification& algorithmspecification(const SagemakerTrainingJob* msg); + static const ::flyte::plugins::sagemaker::ResourceConfig& resourceconfig(const SagemakerTrainingJob* msg); + static const ::flyte::plugins::sagemaker::StoppingCondition& stoppingcondition(const SagemakerTrainingJob* msg); + static const ::flyte::plugins::sagemaker::VpcConfig& vpcconfig(const SagemakerTrainingJob* msg); }; -const ::flyte::plugins::AlgorithmSpecification& +const ::flyte::plugins::sagemaker::AlgorithmSpecification& SagemakerTrainingJob::HasBitSetters::algorithmspecification(const SagemakerTrainingJob* msg) { return *msg->algorithmspecification_; } -const ::flyte::plugins::ResourceConfig& +const ::flyte::plugins::sagemaker::ResourceConfig& SagemakerTrainingJob::HasBitSetters::resourceconfig(const SagemakerTrainingJob* msg) { return *msg->resourceconfig_; } -const ::flyte::plugins::StoppingCondition& +const ::flyte::plugins::sagemaker::StoppingCondition& SagemakerTrainingJob::HasBitSetters::stoppingcondition(const SagemakerTrainingJob* msg) { return *msg->stoppingcondition_; } -const ::flyte::plugins::VpcConfig& +const ::flyte::plugins::sagemaker::VpcConfig& SagemakerTrainingJob::HasBitSetters::vpcconfig(const SagemakerTrainingJob* msg) { return *msg->vpcconfig_; } @@ -4197,7 +4204,7 @@ const int SagemakerTrainingJob::kEnableSpotTrainingFieldNumber; SagemakerTrainingJob::SagemakerTrainingJob() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.SagemakerTrainingJob) } SagemakerTrainingJob::SagemakerTrainingJob(const SagemakerTrainingJob& from) : ::google::protobuf::Message(), @@ -4212,32 +4219,32 @@ SagemakerTrainingJob::SagemakerTrainingJob(const SagemakerTrainingJob& from) rolearn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rolearn_); } if (from.has_algorithmspecification()) { - algorithmspecification_ = new ::flyte::plugins::AlgorithmSpecification(*from.algorithmspecification_); + algorithmspecification_ = new ::flyte::plugins::sagemaker::AlgorithmSpecification(*from.algorithmspecification_); } else { algorithmspecification_ = nullptr; } if (from.has_resourceconfig()) { - resourceconfig_ = new ::flyte::plugins::ResourceConfig(*from.resourceconfig_); + resourceconfig_ = new ::flyte::plugins::sagemaker::ResourceConfig(*from.resourceconfig_); } else { resourceconfig_ = nullptr; } if (from.has_stoppingcondition()) { - stoppingcondition_ = new ::flyte::plugins::StoppingCondition(*from.stoppingcondition_); + stoppingcondition_ = new ::flyte::plugins::sagemaker::StoppingCondition(*from.stoppingcondition_); } else { stoppingcondition_ = nullptr; } if (from.has_vpcconfig()) { - vpcconfig_ = new ::flyte::plugins::VpcConfig(*from.vpcconfig_); + vpcconfig_ = new ::flyte::plugins::sagemaker::VpcConfig(*from.vpcconfig_); } else { vpcconfig_ = nullptr; } enablespottraining_ = from.enablespottraining_; - // @@protoc_insertion_point(copy_constructor:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.SagemakerTrainingJob) } void SagemakerTrainingJob::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto.base); + &scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); region_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); rolearn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&algorithmspecification_, 0, static_cast( @@ -4246,7 +4253,7 @@ void SagemakerTrainingJob::SharedCtor() { } SagemakerTrainingJob::~SagemakerTrainingJob() { - // @@protoc_insertion_point(destructor:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.SagemakerTrainingJob) SharedDtor(); } @@ -4263,13 +4270,13 @@ void SagemakerTrainingJob::SetCachedSize(int size) const { _cached_size_.Set(size); } const SagemakerTrainingJob& SagemakerTrainingJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); return *internal_default_instance(); } void SagemakerTrainingJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.SagemakerTrainingJob) +// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.SagemakerTrainingJob) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4314,7 +4321,7 @@ const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.SagemakerTrainingJob.Region"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.SagemakerTrainingJob.Region"); object = msg->mutable_region(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -4330,7 +4337,7 @@ const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.SagemakerTrainingJob.RoleArn"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn"); object = msg->mutable_rolearn(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -4341,12 +4348,12 @@ const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* ptr += size; break; } - // .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::AlgorithmSpecification::_InternalParse; + parser_till_end = ::flyte::plugins::sagemaker::AlgorithmSpecification::_InternalParse; object = msg->mutable_algorithmspecification(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -4354,12 +4361,12 @@ const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyte.plugins.ResourceConfig ResourceConfig = 4; + // .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::ResourceConfig::_InternalParse; + parser_till_end = ::flyte::plugins::sagemaker::ResourceConfig::_InternalParse; object = msg->mutable_resourceconfig(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -4367,12 +4374,12 @@ const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyte.plugins.StoppingCondition StoppingCondition = 5; + // .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; case 5: { if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::StoppingCondition::_InternalParse; + parser_till_end = ::flyte::plugins::sagemaker::StoppingCondition::_InternalParse; object = msg->mutable_stoppingcondition(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -4380,12 +4387,12 @@ const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyte.plugins.VpcConfig VpcConfig = 6; + // .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; case 6: { if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::VpcConfig::_InternalParse; + parser_till_end = ::flyte::plugins::sagemaker::VpcConfig::_InternalParse; object = msg->mutable_vpcconfig(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -4428,7 +4435,7 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.SagemakerTrainingJob) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -4442,7 +4449,7 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->region().data(), static_cast(this->region().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.SagemakerTrainingJob.Region")); + "flyte.plugins.sagemaker.SagemakerTrainingJob.Region")); } else { goto handle_unusual; } @@ -4457,14 +4464,14 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->rolearn().data(), static_cast(this->rolearn().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.SagemakerTrainingJob.RoleArn")); + "flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn")); } else { goto handle_unusual; } break; } - // .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -4475,7 +4482,7 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( break; } - // .flyte.plugins.ResourceConfig ResourceConfig = 4; + // .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -4486,7 +4493,7 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( break; } - // .flyte.plugins.StoppingCondition StoppingCondition = 5; + // .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -4497,7 +4504,7 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( break; } - // .flyte.plugins.VpcConfig VpcConfig = 6; + // .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -4533,10 +4540,10 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.SagemakerTrainingJob) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.SagemakerTrainingJob) return false; #undef DO_ } @@ -4544,7 +4551,7 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( void SagemakerTrainingJob::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.SagemakerTrainingJob) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -4553,7 +4560,7 @@ void SagemakerTrainingJob::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->region().data(), static_cast(this->region().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.SagemakerTrainingJob.Region"); + "flyte.plugins.sagemaker.SagemakerTrainingJob.Region"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->region(), output); } @@ -4563,30 +4570,30 @@ void SagemakerTrainingJob::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->rolearn().data(), static_cast(this->rolearn().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.SagemakerTrainingJob.RoleArn"); + "flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->rolearn(), output); } - // .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; if (this->has_algorithmspecification()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, HasBitSetters::algorithmspecification(this), output); } - // .flyte.plugins.ResourceConfig ResourceConfig = 4; + // .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; if (this->has_resourceconfig()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, HasBitSetters::resourceconfig(this), output); } - // .flyte.plugins.StoppingCondition StoppingCondition = 5; + // .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; if (this->has_stoppingcondition()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, HasBitSetters::stoppingcondition(this), output); } - // .flyte.plugins.VpcConfig VpcConfig = 6; + // .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; if (this->has_vpcconfig()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 6, HasBitSetters::vpcconfig(this), output); @@ -4601,12 +4608,12 @@ void SagemakerTrainingJob::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.SagemakerTrainingJob) } ::google::protobuf::uint8* SagemakerTrainingJob::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.SagemakerTrainingJob) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -4615,7 +4622,7 @@ ::google::protobuf::uint8* SagemakerTrainingJob::InternalSerializeWithCachedSize ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->region().data(), static_cast(this->region().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.SagemakerTrainingJob.Region"); + "flyte.plugins.sagemaker.SagemakerTrainingJob.Region"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->region(), target); @@ -4626,34 +4633,34 @@ ::google::protobuf::uint8* SagemakerTrainingJob::InternalSerializeWithCachedSize ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->rolearn().data(), static_cast(this->rolearn().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.SagemakerTrainingJob.RoleArn"); + "flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->rolearn(), target); } - // .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; if (this->has_algorithmspecification()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, HasBitSetters::algorithmspecification(this), target); } - // .flyte.plugins.ResourceConfig ResourceConfig = 4; + // .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; if (this->has_resourceconfig()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, HasBitSetters::resourceconfig(this), target); } - // .flyte.plugins.StoppingCondition StoppingCondition = 5; + // .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; if (this->has_stoppingcondition()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 5, HasBitSetters::stoppingcondition(this), target); } - // .flyte.plugins.VpcConfig VpcConfig = 6; + // .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; if (this->has_vpcconfig()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( @@ -4669,12 +4676,12 @@ ::google::protobuf::uint8* SagemakerTrainingJob::InternalSerializeWithCachedSize target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.SagemakerTrainingJob) return target; } size_t SagemakerTrainingJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.SagemakerTrainingJob) +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.SagemakerTrainingJob) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -4700,28 +4707,28 @@ size_t SagemakerTrainingJob::ByteSizeLong() const { this->rolearn()); } - // .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; if (this->has_algorithmspecification()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *algorithmspecification_); } - // .flyte.plugins.ResourceConfig ResourceConfig = 4; + // .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; if (this->has_resourceconfig()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *resourceconfig_); } - // .flyte.plugins.StoppingCondition StoppingCondition = 5; + // .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; if (this->has_stoppingcondition()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *stoppingcondition_); } - // .flyte.plugins.VpcConfig VpcConfig = 6; + // .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; if (this->has_vpcconfig()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( @@ -4739,22 +4746,22 @@ size_t SagemakerTrainingJob::ByteSizeLong() const { } void SagemakerTrainingJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.SagemakerTrainingJob) +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.SagemakerTrainingJob) GOOGLE_DCHECK_NE(&from, this); const SagemakerTrainingJob* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.SagemakerTrainingJob) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.SagemakerTrainingJob) MergeFrom(*source); } } void SagemakerTrainingJob::MergeFrom(const SagemakerTrainingJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.SagemakerTrainingJob) +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.SagemakerTrainingJob) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -4769,16 +4776,16 @@ void SagemakerTrainingJob::MergeFrom(const SagemakerTrainingJob& from) { rolearn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rolearn_); } if (from.has_algorithmspecification()) { - mutable_algorithmspecification()->::flyte::plugins::AlgorithmSpecification::MergeFrom(from.algorithmspecification()); + mutable_algorithmspecification()->::flyte::plugins::sagemaker::AlgorithmSpecification::MergeFrom(from.algorithmspecification()); } if (from.has_resourceconfig()) { - mutable_resourceconfig()->::flyte::plugins::ResourceConfig::MergeFrom(from.resourceconfig()); + mutable_resourceconfig()->::flyte::plugins::sagemaker::ResourceConfig::MergeFrom(from.resourceconfig()); } if (from.has_stoppingcondition()) { - mutable_stoppingcondition()->::flyte::plugins::StoppingCondition::MergeFrom(from.stoppingcondition()); + mutable_stoppingcondition()->::flyte::plugins::sagemaker::StoppingCondition::MergeFrom(from.stoppingcondition()); } if (from.has_vpcconfig()) { - mutable_vpcconfig()->::flyte::plugins::VpcConfig::MergeFrom(from.vpcconfig()); + mutable_vpcconfig()->::flyte::plugins::sagemaker::VpcConfig::MergeFrom(from.vpcconfig()); } if (from.enablespottraining() != 0) { set_enablespottraining(from.enablespottraining()); @@ -4786,14 +4793,14 @@ void SagemakerTrainingJob::MergeFrom(const SagemakerTrainingJob& from) { } void SagemakerTrainingJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.SagemakerTrainingJob) +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.SagemakerTrainingJob) if (&from == this) return; Clear(); MergeFrom(from); } void SagemakerTrainingJob::CopyFrom(const SagemakerTrainingJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.SagemakerTrainingJob) +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.SagemakerTrainingJob) if (&from == this) return; Clear(); MergeFrom(from); @@ -4822,8 +4829,8 @@ void SagemakerTrainingJob::InternalSwap(SagemakerTrainingJob* other) { } ::google::protobuf::Metadata SagemakerTrainingJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; } @@ -4843,7 +4850,7 @@ const int HPOJobObjective::kMetricNameFieldNumber; HPOJobObjective::HPOJobObjective() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.HPOJobObjective) } HPOJobObjective::HPOJobObjective(const HPOJobObjective& from) : ::google::protobuf::Message(), @@ -4854,18 +4861,18 @@ HPOJobObjective::HPOJobObjective(const HPOJobObjective& from) metricname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metricname_); } type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.HPOJobObjective) } void HPOJobObjective::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto.base); + &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); metricname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); type_ = 0; } HPOJobObjective::~HPOJobObjective() { - // @@protoc_insertion_point(destructor:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.HPOJobObjective) SharedDtor(); } @@ -4877,13 +4884,13 @@ void HPOJobObjective::SetCachedSize(int size) const { _cached_size_.Set(size); } const HPOJobObjective& HPOJobObjective::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); return *internal_default_instance(); } void HPOJobObjective::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.HPOJobObjective) +// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.HPOJobObjective) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4906,11 +4913,11 @@ const char* HPOJobObjective::_InternalParse(const char* begin, const char* end, ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyte.plugins.HPOJobObjectiveType Type = 1; + // .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_type(static_cast<::flyte::plugins::HPOJobObjectiveType>(val)); + msg->set_type(static_cast<::flyte::plugins::sagemaker::HPOJobObjectiveType>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -4919,7 +4926,7 @@ const char* HPOJobObjective::_InternalParse(const char* begin, const char* end, if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.HPOJobObjective.MetricName"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.HPOJobObjective.MetricName"); object = msg->mutable_metricname(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -4958,20 +4965,20 @@ bool HPOJobObjective::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.HPOJobObjective) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyte.plugins.HPOJobObjectiveType Type = 1; + // .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - set_type(static_cast< ::flyte::plugins::HPOJobObjectiveType >(value)); + set_type(static_cast< ::flyte::plugins::sagemaker::HPOJobObjectiveType >(value)); } else { goto handle_unusual; } @@ -4986,7 +4993,7 @@ bool HPOJobObjective::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->metricname().data(), static_cast(this->metricname().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.HPOJobObjective.MetricName")); + "flyte.plugins.sagemaker.HPOJobObjective.MetricName")); } else { goto handle_unusual; } @@ -5005,10 +5012,10 @@ bool HPOJobObjective::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.HPOJobObjective) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.HPOJobObjective) return false; #undef DO_ } @@ -5016,11 +5023,11 @@ bool HPOJobObjective::MergePartialFromCodedStream( void HPOJobObjective::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.HPOJobObjective) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyte.plugins.HPOJobObjectiveType Type = 1; + // .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; if (this->type() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->type(), output); @@ -5031,7 +5038,7 @@ void HPOJobObjective::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->metricname().data(), static_cast(this->metricname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.HPOJobObjective.MetricName"); + "flyte.plugins.sagemaker.HPOJobObjective.MetricName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->metricname(), output); } @@ -5040,16 +5047,16 @@ void HPOJobObjective::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.HPOJobObjective) } ::google::protobuf::uint8* HPOJobObjective::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.HPOJobObjective) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyte.plugins.HPOJobObjectiveType Type = 1; + // .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; if (this->type() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->type(), target); @@ -5060,7 +5067,7 @@ ::google::protobuf::uint8* HPOJobObjective::InternalSerializeWithCachedSizesToAr ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->metricname().data(), static_cast(this->metricname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.HPOJobObjective.MetricName"); + "flyte.plugins.sagemaker.HPOJobObjective.MetricName"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->metricname(), target); @@ -5070,12 +5077,12 @@ ::google::protobuf::uint8* HPOJobObjective::InternalSerializeWithCachedSizesToAr target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.HPOJobObjective) return target; } size_t HPOJobObjective::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.HPOJobObjective) +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.HPOJobObjective) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -5094,7 +5101,7 @@ size_t HPOJobObjective::ByteSizeLong() const { this->metricname()); } - // .flyte.plugins.HPOJobObjectiveType Type = 1; + // .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; if (this->type() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); @@ -5106,22 +5113,22 @@ size_t HPOJobObjective::ByteSizeLong() const { } void HPOJobObjective::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.HPOJobObjective) +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.HPOJobObjective) GOOGLE_DCHECK_NE(&from, this); const HPOJobObjective* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.HPOJobObjective) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.HPOJobObjective) MergeFrom(*source); } } void HPOJobObjective::MergeFrom(const HPOJobObjective& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.HPOJobObjective) +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.HPOJobObjective) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -5137,14 +5144,14 @@ void HPOJobObjective::MergeFrom(const HPOJobObjective& from) { } void HPOJobObjective::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.HPOJobObjective) +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.HPOJobObjective) if (&from == this) return; Clear(); MergeFrom(from); } void HPOJobObjective::CopyFrom(const HPOJobObjective& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.HPOJobObjective) +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.HPOJobObjective) if (&from == this) return; Clear(); MergeFrom(from); @@ -5167,37 +5174,37 @@ void HPOJobObjective::InternalSwap(HPOJobObjective* other) { } ::google::protobuf::Metadata HPOJobObjective::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; } // =================================================================== void SagemakerHPOJob::InitAsDefaultInstance() { - ::flyte::plugins::_SagemakerHPOJob_default_instance_._instance.get_mutable()->objective_ = const_cast< ::flyte::plugins::HPOJobObjective*>( - ::flyte::plugins::HPOJobObjective::internal_default_instance()); - ::flyte::plugins::_SagemakerHPOJob_default_instance_._instance.get_mutable()->parameterranges_ = const_cast< ::flyte::plugins::ParameterRanges*>( - ::flyte::plugins::ParameterRanges::internal_default_instance()); - ::flyte::plugins::_SagemakerHPOJob_default_instance_._instance.get_mutable()->trainingjob_ = const_cast< ::flyte::plugins::SagemakerTrainingJob*>( - ::flyte::plugins::SagemakerTrainingJob::internal_default_instance()); + ::flyte::plugins::sagemaker::_SagemakerHPOJob_default_instance_._instance.get_mutable()->objective_ = const_cast< ::flyte::plugins::sagemaker::HPOJobObjective*>( + ::flyte::plugins::sagemaker::HPOJobObjective::internal_default_instance()); + ::flyte::plugins::sagemaker::_SagemakerHPOJob_default_instance_._instance.get_mutable()->parameterranges_ = const_cast< ::flyte::plugins::sagemaker::ParameterRanges*>( + ::flyte::plugins::sagemaker::ParameterRanges::internal_default_instance()); + ::flyte::plugins::sagemaker::_SagemakerHPOJob_default_instance_._instance.get_mutable()->trainingjob_ = const_cast< ::flyte::plugins::sagemaker::SagemakerTrainingJob*>( + ::flyte::plugins::sagemaker::SagemakerTrainingJob::internal_default_instance()); } class SagemakerHPOJob::HasBitSetters { public: - static const ::flyte::plugins::HPOJobObjective& objective(const SagemakerHPOJob* msg); - static const ::flyte::plugins::ParameterRanges& parameterranges(const SagemakerHPOJob* msg); - static const ::flyte::plugins::SagemakerTrainingJob& trainingjob(const SagemakerHPOJob* msg); + static const ::flyte::plugins::sagemaker::HPOJobObjective& objective(const SagemakerHPOJob* msg); + static const ::flyte::plugins::sagemaker::ParameterRanges& parameterranges(const SagemakerHPOJob* msg); + static const ::flyte::plugins::sagemaker::SagemakerTrainingJob& trainingjob(const SagemakerHPOJob* msg); }; -const ::flyte::plugins::HPOJobObjective& +const ::flyte::plugins::sagemaker::HPOJobObjective& SagemakerHPOJob::HasBitSetters::objective(const SagemakerHPOJob* msg) { return *msg->objective_; } -const ::flyte::plugins::ParameterRanges& +const ::flyte::plugins::sagemaker::ParameterRanges& SagemakerHPOJob::HasBitSetters::parameterranges(const SagemakerHPOJob* msg) { return *msg->parameterranges_; } -const ::flyte::plugins::SagemakerTrainingJob& +const ::flyte::plugins::sagemaker::SagemakerTrainingJob& SagemakerHPOJob::HasBitSetters::trainingjob(const SagemakerHPOJob* msg) { return *msg->trainingjob_; } @@ -5213,7 +5220,7 @@ const int SagemakerHPOJob::kTrainingJobFieldNumber; SagemakerHPOJob::SagemakerHPOJob() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.SagemakerHPOJob) } SagemakerHPOJob::SagemakerHPOJob(const SagemakerHPOJob& from) : ::google::protobuf::Message(), @@ -5224,29 +5231,29 @@ SagemakerHPOJob::SagemakerHPOJob(const SagemakerHPOJob& from) strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_); } if (from.has_objective()) { - objective_ = new ::flyte::plugins::HPOJobObjective(*from.objective_); + objective_ = new ::flyte::plugins::sagemaker::HPOJobObjective(*from.objective_); } else { objective_ = nullptr; } if (from.has_parameterranges()) { - parameterranges_ = new ::flyte::plugins::ParameterRanges(*from.parameterranges_); + parameterranges_ = new ::flyte::plugins::sagemaker::ParameterRanges(*from.parameterranges_); } else { parameterranges_ = nullptr; } if (from.has_trainingjob()) { - trainingjob_ = new ::flyte::plugins::SagemakerTrainingJob(*from.trainingjob_); + trainingjob_ = new ::flyte::plugins::sagemaker::SagemakerTrainingJob(*from.trainingjob_); } else { trainingjob_ = nullptr; } ::memcpy(&maxnumberoftrainingjobs_, &from.maxnumberoftrainingjobs_, static_cast(reinterpret_cast(&maxparalleltrainingjobs_) - reinterpret_cast(&maxnumberoftrainingjobs_)) + sizeof(maxparalleltrainingjobs_)); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.SagemakerHPOJob) } void SagemakerHPOJob::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2eproto.base); + &scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); strategy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&objective_, 0, static_cast( reinterpret_cast(&maxparalleltrainingjobs_) - @@ -5254,7 +5261,7 @@ void SagemakerHPOJob::SharedCtor() { } SagemakerHPOJob::~SagemakerHPOJob() { - // @@protoc_insertion_point(destructor:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.SagemakerHPOJob) SharedDtor(); } @@ -5269,13 +5276,13 @@ void SagemakerHPOJob::SetCachedSize(int size) const { _cached_size_.Set(size); } const SagemakerHPOJob& SagemakerHPOJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); return *internal_default_instance(); } void SagemakerHPOJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.SagemakerHPOJob) +// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.SagemakerHPOJob) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -5317,7 +5324,7 @@ const char* SagemakerHPOJob::_InternalParse(const char* begin, const char* end, if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.SagemakerHPOJob.Strategy"); + ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.SagemakerHPOJob.Strategy"); object = msg->mutable_strategy(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -5328,12 +5335,12 @@ const char* SagemakerHPOJob::_InternalParse(const char* begin, const char* end, ptr += size; break; } - // .flyte.plugins.HPOJobObjective Objective = 2; + // .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::HPOJobObjective::_InternalParse; + parser_till_end = ::flyte::plugins::sagemaker::HPOJobObjective::_InternalParse; object = msg->mutable_objective(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -5355,12 +5362,12 @@ const char* SagemakerHPOJob::_InternalParse(const char* begin, const char* end, GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } - // .flyte.plugins.ParameterRanges ParameterRanges = 5; + // .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; case 5: { if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::ParameterRanges::_InternalParse; + parser_till_end = ::flyte::plugins::sagemaker::ParameterRanges::_InternalParse; object = msg->mutable_parameterranges(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -5368,12 +5375,12 @@ const char* SagemakerHPOJob::_InternalParse(const char* begin, const char* end, {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + // .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; case 6: { if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::SagemakerTrainingJob::_InternalParse; + parser_till_end = ::flyte::plugins::sagemaker::SagemakerTrainingJob::_InternalParse; object = msg->mutable_trainingjob(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -5409,7 +5416,7 @@ bool SagemakerHPOJob::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.SagemakerHPOJob) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -5423,14 +5430,14 @@ bool SagemakerHPOJob::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->strategy().data(), static_cast(this->strategy().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.SagemakerHPOJob.Strategy")); + "flyte.plugins.sagemaker.SagemakerHPOJob.Strategy")); } else { goto handle_unusual; } break; } - // .flyte.plugins.HPOJobObjective Objective = 2; + // .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -5467,7 +5474,7 @@ bool SagemakerHPOJob::MergePartialFromCodedStream( break; } - // .flyte.plugins.ParameterRanges ParameterRanges = 5; + // .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -5478,7 +5485,7 @@ bool SagemakerHPOJob::MergePartialFromCodedStream( break; } - // .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + // .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -5501,10 +5508,10 @@ bool SagemakerHPOJob::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.SagemakerHPOJob) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.SagemakerHPOJob) return false; #undef DO_ } @@ -5512,7 +5519,7 @@ bool SagemakerHPOJob::MergePartialFromCodedStream( void SagemakerHPOJob::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.SagemakerHPOJob) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -5521,12 +5528,12 @@ void SagemakerHPOJob::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->strategy().data(), static_cast(this->strategy().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.SagemakerHPOJob.Strategy"); + "flyte.plugins.sagemaker.SagemakerHPOJob.Strategy"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->strategy(), output); } - // .flyte.plugins.HPOJobObjective Objective = 2; + // .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; if (this->has_objective()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, HasBitSetters::objective(this), output); @@ -5542,13 +5549,13 @@ void SagemakerHPOJob::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->maxparalleltrainingjobs(), output); } - // .flyte.plugins.ParameterRanges ParameterRanges = 5; + // .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; if (this->has_parameterranges()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, HasBitSetters::parameterranges(this), output); } - // .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + // .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; if (this->has_trainingjob()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 6, HasBitSetters::trainingjob(this), output); @@ -5558,12 +5565,12 @@ void SagemakerHPOJob::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.SagemakerHPOJob) } ::google::protobuf::uint8* SagemakerHPOJob::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.SagemakerHPOJob) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -5572,13 +5579,13 @@ ::google::protobuf::uint8* SagemakerHPOJob::InternalSerializeWithCachedSizesToAr ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->strategy().data(), static_cast(this->strategy().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.SagemakerHPOJob.Strategy"); + "flyte.plugins.sagemaker.SagemakerHPOJob.Strategy"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->strategy(), target); } - // .flyte.plugins.HPOJobObjective Objective = 2; + // .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; if (this->has_objective()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( @@ -5595,14 +5602,14 @@ ::google::protobuf::uint8* SagemakerHPOJob::InternalSerializeWithCachedSizesToAr target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->maxparalleltrainingjobs(), target); } - // .flyte.plugins.ParameterRanges ParameterRanges = 5; + // .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; if (this->has_parameterranges()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 5, HasBitSetters::parameterranges(this), target); } - // .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + // .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; if (this->has_trainingjob()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( @@ -5613,12 +5620,12 @@ ::google::protobuf::uint8* SagemakerHPOJob::InternalSerializeWithCachedSizesToAr target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.SagemakerHPOJob) return target; } size_t SagemakerHPOJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.SagemakerHPOJob) +// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.SagemakerHPOJob) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -5637,21 +5644,21 @@ size_t SagemakerHPOJob::ByteSizeLong() const { this->strategy()); } - // .flyte.plugins.HPOJobObjective Objective = 2; + // .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; if (this->has_objective()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *objective_); } - // .flyte.plugins.ParameterRanges ParameterRanges = 5; + // .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; if (this->has_parameterranges()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *parameterranges_); } - // .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + // .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; if (this->has_trainingjob()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( @@ -5678,22 +5685,22 @@ size_t SagemakerHPOJob::ByteSizeLong() const { } void SagemakerHPOJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.SagemakerHPOJob) +// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.SagemakerHPOJob) GOOGLE_DCHECK_NE(&from, this); const SagemakerHPOJob* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.SagemakerHPOJob) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.SagemakerHPOJob) MergeFrom(*source); } } void SagemakerHPOJob::MergeFrom(const SagemakerHPOJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.SagemakerHPOJob) +// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.SagemakerHPOJob) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -5704,13 +5711,13 @@ void SagemakerHPOJob::MergeFrom(const SagemakerHPOJob& from) { strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_); } if (from.has_objective()) { - mutable_objective()->::flyte::plugins::HPOJobObjective::MergeFrom(from.objective()); + mutable_objective()->::flyte::plugins::sagemaker::HPOJobObjective::MergeFrom(from.objective()); } if (from.has_parameterranges()) { - mutable_parameterranges()->::flyte::plugins::ParameterRanges::MergeFrom(from.parameterranges()); + mutable_parameterranges()->::flyte::plugins::sagemaker::ParameterRanges::MergeFrom(from.parameterranges()); } if (from.has_trainingjob()) { - mutable_trainingjob()->::flyte::plugins::SagemakerTrainingJob::MergeFrom(from.trainingjob()); + mutable_trainingjob()->::flyte::plugins::sagemaker::SagemakerTrainingJob::MergeFrom(from.trainingjob()); } if (from.maxnumberoftrainingjobs() != 0) { set_maxnumberoftrainingjobs(from.maxnumberoftrainingjobs()); @@ -5721,14 +5728,14 @@ void SagemakerHPOJob::MergeFrom(const SagemakerHPOJob& from) { } void SagemakerHPOJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.SagemakerHPOJob) +// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.SagemakerHPOJob) if (&from == this) return; Clear(); MergeFrom(from); } void SagemakerHPOJob::CopyFrom(const SagemakerHPOJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.SagemakerHPOJob) +// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.SagemakerHPOJob) if (&from == this) return; Clear(); MergeFrom(from); @@ -5755,51 +5762,52 @@ void SagemakerHPOJob::InternalSwap(SagemakerHPOJob* other) { } ::google::protobuf::Metadata SagemakerHPOJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) +} // namespace sagemaker } // namespace plugins } // namespace flyte namespace google { namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyte::plugins::ContinuousParameterRange* Arena::CreateMaybeMessage< ::flyte::plugins::ContinuousParameterRange >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::ContinuousParameterRange >(arena); +template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::ContinuousParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::sagemaker::ContinuousParameterRange >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::IntegerParameterRange* Arena::CreateMaybeMessage< ::flyte::plugins::IntegerParameterRange >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::IntegerParameterRange >(arena); +template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::IntegerParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::sagemaker::IntegerParameterRange >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::CategoricalParameterRange* Arena::CreateMaybeMessage< ::flyte::plugins::CategoricalParameterRange >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::CategoricalParameterRange >(arena); +template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::CategoricalParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::sagemaker::CategoricalParameterRange >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::ParameterRanges* Arena::CreateMaybeMessage< ::flyte::plugins::ParameterRanges >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::ParameterRanges >(arena); +template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::ParameterRanges >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::sagemaker::ParameterRanges >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage< ::flyte::plugins::AlgorithmSpecification_MetricDefinition >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::AlgorithmSpecification_MetricDefinition >(arena); +template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::AlgorithmSpecification* Arena::CreateMaybeMessage< ::flyte::plugins::AlgorithmSpecification >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::AlgorithmSpecification >(arena); +template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::AlgorithmSpecification >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::sagemaker::AlgorithmSpecification >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::ResourceConfig* Arena::CreateMaybeMessage< ::flyte::plugins::ResourceConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::ResourceConfig >(arena); +template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::ResourceConfig* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::ResourceConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::sagemaker::ResourceConfig >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::StoppingCondition* Arena::CreateMaybeMessage< ::flyte::plugins::StoppingCondition >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::StoppingCondition >(arena); +template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::StoppingCondition >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::sagemaker::StoppingCondition >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::VpcConfig* Arena::CreateMaybeMessage< ::flyte::plugins::VpcConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::VpcConfig >(arena); +template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::VpcConfig* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::VpcConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::sagemaker::VpcConfig >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::SagemakerTrainingJob* Arena::CreateMaybeMessage< ::flyte::plugins::SagemakerTrainingJob >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::SagemakerTrainingJob >(arena); +template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::SagemakerTrainingJob* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::SagemakerTrainingJob >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::sagemaker::SagemakerTrainingJob >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::HPOJobObjective* Arena::CreateMaybeMessage< ::flyte::plugins::HPOJobObjective >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::HPOJobObjective >(arena); +template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::HPOJobObjective* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::HPOJobObjective >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::sagemaker::HPOJobObjective >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::SagemakerHPOJob* Arena::CreateMaybeMessage< ::flyte::plugins::SagemakerHPOJob >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::SagemakerHPOJob >(arena); +template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::SagemakerHPOJob* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::SagemakerHPOJob >(Arena* arena) { + return Arena::CreateInternal< ::flyte::plugins::sagemaker::SagemakerHPOJob >(arena); } } // namespace protobuf } // namespace google diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.h similarity index 72% rename from gen/pb-cpp/flyteidl/plugins/sagemaker.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.h index 983154505..b6d4cb446 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.h @@ -1,8 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker.proto +// source: flyteidl/plugins/sagemaker/sagemaker.proto -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2eproto +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto #include #include @@ -34,10 +34,10 @@ #include // @@protoc_insertion_point(includes) #include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2eproto +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto // Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto { +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto { static const ::google::protobuf::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] @@ -48,9 +48,10 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto { static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2eproto(); +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto(); namespace flyte { namespace plugins { +namespace sagemaker { class AlgorithmSpecification; class AlgorithmSpecificationDefaultTypeInternal; extern AlgorithmSpecificationDefaultTypeInternal _AlgorithmSpecification_default_instance_; @@ -87,26 +88,28 @@ extern StoppingConditionDefaultTypeInternal _StoppingCondition_default_instance_ class VpcConfig; class VpcConfigDefaultTypeInternal; extern VpcConfigDefaultTypeInternal _VpcConfig_default_instance_; +} // namespace sagemaker } // namespace plugins } // namespace flyte namespace google { namespace protobuf { -template<> ::flyte::plugins::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyte::plugins::AlgorithmSpecification>(Arena*); -template<> ::flyte::plugins::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage<::flyte::plugins::AlgorithmSpecification_MetricDefinition>(Arena*); -template<> ::flyte::plugins::CategoricalParameterRange* Arena::CreateMaybeMessage<::flyte::plugins::CategoricalParameterRange>(Arena*); -template<> ::flyte::plugins::ContinuousParameterRange* Arena::CreateMaybeMessage<::flyte::plugins::ContinuousParameterRange>(Arena*); -template<> ::flyte::plugins::HPOJobObjective* Arena::CreateMaybeMessage<::flyte::plugins::HPOJobObjective>(Arena*); -template<> ::flyte::plugins::IntegerParameterRange* Arena::CreateMaybeMessage<::flyte::plugins::IntegerParameterRange>(Arena*); -template<> ::flyte::plugins::ParameterRanges* Arena::CreateMaybeMessage<::flyte::plugins::ParameterRanges>(Arena*); -template<> ::flyte::plugins::ResourceConfig* Arena::CreateMaybeMessage<::flyte::plugins::ResourceConfig>(Arena*); -template<> ::flyte::plugins::SagemakerHPOJob* Arena::CreateMaybeMessage<::flyte::plugins::SagemakerHPOJob>(Arena*); -template<> ::flyte::plugins::SagemakerTrainingJob* Arena::CreateMaybeMessage<::flyte::plugins::SagemakerTrainingJob>(Arena*); -template<> ::flyte::plugins::StoppingCondition* Arena::CreateMaybeMessage<::flyte::plugins::StoppingCondition>(Arena*); -template<> ::flyte::plugins::VpcConfig* Arena::CreateMaybeMessage<::flyte::plugins::VpcConfig>(Arena*); +template<> ::flyte::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::AlgorithmSpecification>(Arena*); +template<> ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition>(Arena*); +template<> ::flyte::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::CategoricalParameterRange>(Arena*); +template<> ::flyte::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::ContinuousParameterRange>(Arena*); +template<> ::flyte::plugins::sagemaker::HPOJobObjective* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::HPOJobObjective>(Arena*); +template<> ::flyte::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::IntegerParameterRange>(Arena*); +template<> ::flyte::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::ParameterRanges>(Arena*); +template<> ::flyte::plugins::sagemaker::ResourceConfig* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::ResourceConfig>(Arena*); +template<> ::flyte::plugins::sagemaker::SagemakerHPOJob* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::SagemakerHPOJob>(Arena*); +template<> ::flyte::plugins::sagemaker::SagemakerTrainingJob* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::SagemakerTrainingJob>(Arena*); +template<> ::flyte::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::StoppingCondition>(Arena*); +template<> ::flyte::plugins::sagemaker::VpcConfig* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::VpcConfig>(Arena*); } // namespace protobuf } // namespace google namespace flyte { namespace plugins { +namespace sagemaker { enum HyperparameterScalingType { AUTO = 0, @@ -155,7 +158,7 @@ inline bool HPOJobObjectiveType_Parse( // =================================================================== class ContinuousParameterRange final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.ContinuousParameterRange) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.ContinuousParameterRange) */ { public: ContinuousParameterRange(); virtual ~ContinuousParameterRange(); @@ -275,13 +278,13 @@ class ContinuousParameterRange final : double minvalue() const; void set_minvalue(double value); - // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; void clear_scalingtype(); static const int kScalingTypeFieldNumber = 4; - ::flyte::plugins::HyperparameterScalingType scalingtype() const; - void set_scalingtype(::flyte::plugins::HyperparameterScalingType value); + ::flyte::plugins::sagemaker::HyperparameterScalingType scalingtype() const; + void set_scalingtype(::flyte::plugins::sagemaker::HyperparameterScalingType value); - // @@protoc_insertion_point(class_scope:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ContinuousParameterRange) private: class HasBitSetters; @@ -291,12 +294,12 @@ class ContinuousParameterRange final : double minvalue_; int scalingtype_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; }; // ------------------------------------------------------------------- class IntegerParameterRange final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.IntegerParameterRange) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.IntegerParameterRange) */ { public: IntegerParameterRange(); virtual ~IntegerParameterRange(); @@ -416,13 +419,13 @@ class IntegerParameterRange final : float minvalue() const; void set_minvalue(float value); - // .flyte.plugins.HyperparameterScalingType ScalingType = 4; + // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; void clear_scalingtype(); static const int kScalingTypeFieldNumber = 4; - ::flyte::plugins::HyperparameterScalingType scalingtype() const; - void set_scalingtype(::flyte::plugins::HyperparameterScalingType value); + ::flyte::plugins::sagemaker::HyperparameterScalingType scalingtype() const; + void set_scalingtype(::flyte::plugins::sagemaker::HyperparameterScalingType value); - // @@protoc_insertion_point(class_scope:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.IntegerParameterRange) private: class HasBitSetters; @@ -432,12 +435,12 @@ class IntegerParameterRange final : float minvalue_; int scalingtype_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; }; // ------------------------------------------------------------------- class CategoricalParameterRange final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.CategoricalParameterRange) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.CategoricalParameterRange) */ { public: CategoricalParameterRange(); virtual ~CategoricalParameterRange(); @@ -567,7 +570,7 @@ class CategoricalParameterRange final : ::std::string* release_name(); void set_allocated_name(::std::string* name); - // @@protoc_insertion_point(class_scope:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.CategoricalParameterRange) private: class HasBitSetters; @@ -575,12 +578,12 @@ class CategoricalParameterRange final : ::google::protobuf::RepeatedPtrField<::std::string> values_; ::google::protobuf::internal::ArenaStringPtr name_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; }; // ------------------------------------------------------------------- class ParameterRanges final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.ParameterRanges) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.ParameterRanges) */ { public: ParameterRanges(); virtual ~ParameterRanges(); @@ -674,57 +677,57 @@ class ParameterRanges final : // accessors ------------------------------------------------------- - // repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + // repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; int continuousparameterranges_size() const; void clear_continuousparameterranges(); static const int kContinuousParameterRangesFieldNumber = 1; - ::flyte::plugins::ContinuousParameterRange* mutable_continuousparameterranges(int index); - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::ContinuousParameterRange >* + ::flyte::plugins::sagemaker::ContinuousParameterRange* mutable_continuousparameterranges(int index); + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::ContinuousParameterRange >* mutable_continuousparameterranges(); - const ::flyte::plugins::ContinuousParameterRange& continuousparameterranges(int index) const; - ::flyte::plugins::ContinuousParameterRange* add_continuousparameterranges(); - const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::ContinuousParameterRange >& + const ::flyte::plugins::sagemaker::ContinuousParameterRange& continuousparameterranges(int index) const; + ::flyte::plugins::sagemaker::ContinuousParameterRange* add_continuousparameterranges(); + const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::ContinuousParameterRange >& continuousparameterranges() const; - // repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + // repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; int integerparameterranges_size() const; void clear_integerparameterranges(); static const int kIntegerParameterRangesFieldNumber = 2; - ::flyte::plugins::IntegerParameterRange* mutable_integerparameterranges(int index); - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::IntegerParameterRange >* + ::flyte::plugins::sagemaker::IntegerParameterRange* mutable_integerparameterranges(int index); + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::IntegerParameterRange >* mutable_integerparameterranges(); - const ::flyte::plugins::IntegerParameterRange& integerparameterranges(int index) const; - ::flyte::plugins::IntegerParameterRange* add_integerparameterranges(); - const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::IntegerParameterRange >& + const ::flyte::plugins::sagemaker::IntegerParameterRange& integerparameterranges(int index) const; + ::flyte::plugins::sagemaker::IntegerParameterRange* add_integerparameterranges(); + const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::IntegerParameterRange >& integerparameterranges() const; - // repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + // repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; int categoricalparameterranges_size() const; void clear_categoricalparameterranges(); static const int kCategoricalParameterRangesFieldNumber = 3; - ::flyte::plugins::CategoricalParameterRange* mutable_categoricalparameterranges(int index); - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::CategoricalParameterRange >* + ::flyte::plugins::sagemaker::CategoricalParameterRange* mutable_categoricalparameterranges(int index); + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::CategoricalParameterRange >* mutable_categoricalparameterranges(); - const ::flyte::plugins::CategoricalParameterRange& categoricalparameterranges(int index) const; - ::flyte::plugins::CategoricalParameterRange* add_categoricalparameterranges(); - const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::CategoricalParameterRange >& + const ::flyte::plugins::sagemaker::CategoricalParameterRange& categoricalparameterranges(int index) const; + ::flyte::plugins::sagemaker::CategoricalParameterRange* add_categoricalparameterranges(); + const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::CategoricalParameterRange >& categoricalparameterranges() const; - // @@protoc_insertion_point(class_scope:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ParameterRanges) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::ContinuousParameterRange > continuousparameterranges_; - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::IntegerParameterRange > integerparameterranges_; - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::CategoricalParameterRange > categoricalparameterranges_; + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::ContinuousParameterRange > continuousparameterranges_; + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::IntegerParameterRange > integerparameterranges_; + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::CategoricalParameterRange > categoricalparameterranges_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; }; // ------------------------------------------------------------------- class AlgorithmSpecification_MetricDefinition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.AlgorithmSpecification.MetricDefinition) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) */ { public: AlgorithmSpecification_MetricDefinition(); virtual ~AlgorithmSpecification_MetricDefinition(); @@ -846,7 +849,7 @@ class AlgorithmSpecification_MetricDefinition final : ::std::string* release_regex(); void set_allocated_regex(::std::string* regex); - // @@protoc_insertion_point(class_scope:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) private: class HasBitSetters; @@ -854,12 +857,12 @@ class AlgorithmSpecification_MetricDefinition final : ::google::protobuf::internal::ArenaStringPtr name_; ::google::protobuf::internal::ArenaStringPtr regex_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; }; // ------------------------------------------------------------------- class AlgorithmSpecification final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.AlgorithmSpecification) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.AlgorithmSpecification) */ { public: AlgorithmSpecification(); virtual ~AlgorithmSpecification(); @@ -955,16 +958,16 @@ class AlgorithmSpecification final : // accessors ------------------------------------------------------- - // repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; int metricdefinitions_size() const; void clear_metricdefinitions(); static const int kMetricDefinitionsFieldNumber = 4; - ::flyte::plugins::AlgorithmSpecification_MetricDefinition* mutable_metricdefinitions(int index); - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::AlgorithmSpecification_MetricDefinition >* + ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* mutable_metricdefinitions(int index); + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* mutable_metricdefinitions(); - const ::flyte::plugins::AlgorithmSpecification_MetricDefinition& metricdefinitions(int index) const; - ::flyte::plugins::AlgorithmSpecification_MetricDefinition* add_metricdefinitions(); - const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::AlgorithmSpecification_MetricDefinition >& + const ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& metricdefinitions(int index) const; + ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* add_metricdefinitions(); + const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& metricdefinitions() const; // string TrainingImage = 1; @@ -1009,22 +1012,22 @@ class AlgorithmSpecification final : ::std::string* release_algorithmname(); void set_allocated_algorithmname(::std::string* algorithmname); - // @@protoc_insertion_point(class_scope:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.AlgorithmSpecification) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::AlgorithmSpecification_MetricDefinition > metricdefinitions_; + ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition > metricdefinitions_; ::google::protobuf::internal::ArenaStringPtr trainingimage_; ::google::protobuf::internal::ArenaStringPtr traininginputmode_; ::google::protobuf::internal::ArenaStringPtr algorithmname_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; }; // ------------------------------------------------------------------- class ResourceConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.ResourceConfig) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.ResourceConfig) */ { public: ResourceConfig(); virtual ~ResourceConfig(); @@ -1158,7 +1161,7 @@ class ResourceConfig final : ::google::protobuf::int64 volumesizeingb() const; void set_volumesizeingb(::google::protobuf::int64 value); - // @@protoc_insertion_point(class_scope:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ResourceConfig) private: class HasBitSetters; @@ -1168,12 +1171,12 @@ class ResourceConfig final : ::google::protobuf::int64 instancecount_; ::google::protobuf::int64 volumesizeingb_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; }; // ------------------------------------------------------------------- class StoppingCondition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.StoppingCondition) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.StoppingCondition) */ { public: StoppingCondition(); virtual ~StoppingCondition(); @@ -1279,7 +1282,7 @@ class StoppingCondition final : ::google::protobuf::int64 maxwaittimeinseconds() const; void set_maxwaittimeinseconds(::google::protobuf::int64 value); - // @@protoc_insertion_point(class_scope:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.StoppingCondition) private: class HasBitSetters; @@ -1287,12 +1290,12 @@ class StoppingCondition final : ::google::protobuf::int64 maxruntimeinseconds_; ::google::protobuf::int64 maxwaittimeinseconds_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; }; // ------------------------------------------------------------------- class VpcConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.VpcConfig) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.VpcConfig) */ { public: VpcConfig(); virtual ~VpcConfig(); @@ -1430,7 +1433,7 @@ class VpcConfig final : const ::google::protobuf::RepeatedPtrField<::std::string>& subnets() const; ::google::protobuf::RepeatedPtrField<::std::string>* mutable_subnets(); - // @@protoc_insertion_point(class_scope:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.VpcConfig) private: class HasBitSetters; @@ -1438,12 +1441,12 @@ class VpcConfig final : ::google::protobuf::RepeatedPtrField<::std::string> securitygroupids_; ::google::protobuf::RepeatedPtrField<::std::string> subnets_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; }; // ------------------------------------------------------------------- class SagemakerTrainingJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.SagemakerTrainingJob) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.SagemakerTrainingJob) */ { public: SagemakerTrainingJob(); virtual ~SagemakerTrainingJob(); @@ -1565,41 +1568,41 @@ class SagemakerTrainingJob final : ::std::string* release_rolearn(); void set_allocated_rolearn(::std::string* rolearn); - // .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; bool has_algorithmspecification() const; void clear_algorithmspecification(); static const int kAlgorithmSpecificationFieldNumber = 3; - const ::flyte::plugins::AlgorithmSpecification& algorithmspecification() const; - ::flyte::plugins::AlgorithmSpecification* release_algorithmspecification(); - ::flyte::plugins::AlgorithmSpecification* mutable_algorithmspecification(); - void set_allocated_algorithmspecification(::flyte::plugins::AlgorithmSpecification* algorithmspecification); + const ::flyte::plugins::sagemaker::AlgorithmSpecification& algorithmspecification() const; + ::flyte::plugins::sagemaker::AlgorithmSpecification* release_algorithmspecification(); + ::flyte::plugins::sagemaker::AlgorithmSpecification* mutable_algorithmspecification(); + void set_allocated_algorithmspecification(::flyte::plugins::sagemaker::AlgorithmSpecification* algorithmspecification); - // .flyte.plugins.ResourceConfig ResourceConfig = 4; + // .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; bool has_resourceconfig() const; void clear_resourceconfig(); static const int kResourceConfigFieldNumber = 4; - const ::flyte::plugins::ResourceConfig& resourceconfig() const; - ::flyte::plugins::ResourceConfig* release_resourceconfig(); - ::flyte::plugins::ResourceConfig* mutable_resourceconfig(); - void set_allocated_resourceconfig(::flyte::plugins::ResourceConfig* resourceconfig); + const ::flyte::plugins::sagemaker::ResourceConfig& resourceconfig() const; + ::flyte::plugins::sagemaker::ResourceConfig* release_resourceconfig(); + ::flyte::plugins::sagemaker::ResourceConfig* mutable_resourceconfig(); + void set_allocated_resourceconfig(::flyte::plugins::sagemaker::ResourceConfig* resourceconfig); - // .flyte.plugins.StoppingCondition StoppingCondition = 5; + // .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; bool has_stoppingcondition() const; void clear_stoppingcondition(); static const int kStoppingConditionFieldNumber = 5; - const ::flyte::plugins::StoppingCondition& stoppingcondition() const; - ::flyte::plugins::StoppingCondition* release_stoppingcondition(); - ::flyte::plugins::StoppingCondition* mutable_stoppingcondition(); - void set_allocated_stoppingcondition(::flyte::plugins::StoppingCondition* stoppingcondition); + const ::flyte::plugins::sagemaker::StoppingCondition& stoppingcondition() const; + ::flyte::plugins::sagemaker::StoppingCondition* release_stoppingcondition(); + ::flyte::plugins::sagemaker::StoppingCondition* mutable_stoppingcondition(); + void set_allocated_stoppingcondition(::flyte::plugins::sagemaker::StoppingCondition* stoppingcondition); - // .flyte.plugins.VpcConfig VpcConfig = 6; + // .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; bool has_vpcconfig() const; void clear_vpcconfig(); static const int kVpcConfigFieldNumber = 6; - const ::flyte::plugins::VpcConfig& vpcconfig() const; - ::flyte::plugins::VpcConfig* release_vpcconfig(); - ::flyte::plugins::VpcConfig* mutable_vpcconfig(); - void set_allocated_vpcconfig(::flyte::plugins::VpcConfig* vpcconfig); + const ::flyte::plugins::sagemaker::VpcConfig& vpcconfig() const; + ::flyte::plugins::sagemaker::VpcConfig* release_vpcconfig(); + ::flyte::plugins::sagemaker::VpcConfig* mutable_vpcconfig(); + void set_allocated_vpcconfig(::flyte::plugins::sagemaker::VpcConfig* vpcconfig); // bool EnableSpotTraining = 7; void clear_enablespottraining(); @@ -1607,25 +1610,25 @@ class SagemakerTrainingJob final : bool enablespottraining() const; void set_enablespottraining(bool value); - // @@protoc_insertion_point(class_scope:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.SagemakerTrainingJob) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr region_; ::google::protobuf::internal::ArenaStringPtr rolearn_; - ::flyte::plugins::AlgorithmSpecification* algorithmspecification_; - ::flyte::plugins::ResourceConfig* resourceconfig_; - ::flyte::plugins::StoppingCondition* stoppingcondition_; - ::flyte::plugins::VpcConfig* vpcconfig_; + ::flyte::plugins::sagemaker::AlgorithmSpecification* algorithmspecification_; + ::flyte::plugins::sagemaker::ResourceConfig* resourceconfig_; + ::flyte::plugins::sagemaker::StoppingCondition* stoppingcondition_; + ::flyte::plugins::sagemaker::VpcConfig* vpcconfig_; bool enablespottraining_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; }; // ------------------------------------------------------------------- class HPOJobObjective final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.HPOJobObjective) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.HPOJobObjective) */ { public: HPOJobObjective(); virtual ~HPOJobObjective(); @@ -1733,13 +1736,13 @@ class HPOJobObjective final : ::std::string* release_metricname(); void set_allocated_metricname(::std::string* metricname); - // .flyte.plugins.HPOJobObjectiveType Type = 1; + // .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; void clear_type(); static const int kTypeFieldNumber = 1; - ::flyte::plugins::HPOJobObjectiveType type() const; - void set_type(::flyte::plugins::HPOJobObjectiveType value); + ::flyte::plugins::sagemaker::HPOJobObjectiveType type() const; + void set_type(::flyte::plugins::sagemaker::HPOJobObjectiveType value); - // @@protoc_insertion_point(class_scope:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.HPOJobObjective) private: class HasBitSetters; @@ -1747,12 +1750,12 @@ class HPOJobObjective final : ::google::protobuf::internal::ArenaStringPtr metricname_; int type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; }; // ------------------------------------------------------------------- class SagemakerHPOJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.SagemakerHPOJob) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.SagemakerHPOJob) */ { public: SagemakerHPOJob(); virtual ~SagemakerHPOJob(); @@ -1860,32 +1863,32 @@ class SagemakerHPOJob final : ::std::string* release_strategy(); void set_allocated_strategy(::std::string* strategy); - // .flyte.plugins.HPOJobObjective Objective = 2; + // .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; bool has_objective() const; void clear_objective(); static const int kObjectiveFieldNumber = 2; - const ::flyte::plugins::HPOJobObjective& objective() const; - ::flyte::plugins::HPOJobObjective* release_objective(); - ::flyte::plugins::HPOJobObjective* mutable_objective(); - void set_allocated_objective(::flyte::plugins::HPOJobObjective* objective); + const ::flyte::plugins::sagemaker::HPOJobObjective& objective() const; + ::flyte::plugins::sagemaker::HPOJobObjective* release_objective(); + ::flyte::plugins::sagemaker::HPOJobObjective* mutable_objective(); + void set_allocated_objective(::flyte::plugins::sagemaker::HPOJobObjective* objective); - // .flyte.plugins.ParameterRanges ParameterRanges = 5; + // .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; bool has_parameterranges() const; void clear_parameterranges(); static const int kParameterRangesFieldNumber = 5; - const ::flyte::plugins::ParameterRanges& parameterranges() const; - ::flyte::plugins::ParameterRanges* release_parameterranges(); - ::flyte::plugins::ParameterRanges* mutable_parameterranges(); - void set_allocated_parameterranges(::flyte::plugins::ParameterRanges* parameterranges); + const ::flyte::plugins::sagemaker::ParameterRanges& parameterranges() const; + ::flyte::plugins::sagemaker::ParameterRanges* release_parameterranges(); + ::flyte::plugins::sagemaker::ParameterRanges* mutable_parameterranges(); + void set_allocated_parameterranges(::flyte::plugins::sagemaker::ParameterRanges* parameterranges); - // .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + // .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; bool has_trainingjob() const; void clear_trainingjob(); static const int kTrainingJobFieldNumber = 6; - const ::flyte::plugins::SagemakerTrainingJob& trainingjob() const; - ::flyte::plugins::SagemakerTrainingJob* release_trainingjob(); - ::flyte::plugins::SagemakerTrainingJob* mutable_trainingjob(); - void set_allocated_trainingjob(::flyte::plugins::SagemakerTrainingJob* trainingjob); + const ::flyte::plugins::sagemaker::SagemakerTrainingJob& trainingjob() const; + ::flyte::plugins::sagemaker::SagemakerTrainingJob* release_trainingjob(); + ::flyte::plugins::sagemaker::SagemakerTrainingJob* mutable_trainingjob(); + void set_allocated_trainingjob(::flyte::plugins::sagemaker::SagemakerTrainingJob* trainingjob); // int64 MaxNumberOfTrainingJobs = 3; void clear_maxnumberoftrainingjobs(); @@ -1899,19 +1902,19 @@ class SagemakerHPOJob final : ::google::protobuf::int64 maxparalleltrainingjobs() const; void set_maxparalleltrainingjobs(::google::protobuf::int64 value); - // @@protoc_insertion_point(class_scope:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.SagemakerHPOJob) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr strategy_; - ::flyte::plugins::HPOJobObjective* objective_; - ::flyte::plugins::ParameterRanges* parameterranges_; - ::flyte::plugins::SagemakerTrainingJob* trainingjob_; + ::flyte::plugins::sagemaker::HPOJobObjective* objective_; + ::flyte::plugins::sagemaker::ParameterRanges* parameterranges_; + ::flyte::plugins::sagemaker::SagemakerTrainingJob* trainingjob_; ::google::protobuf::int64 maxnumberoftrainingjobs_; ::google::protobuf::int64 maxparalleltrainingjobs_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; }; // =================================================================== @@ -1929,41 +1932,41 @@ inline void ContinuousParameterRange::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& ContinuousParameterRange::name() const { - // @@protoc_insertion_point(field_get:flyte.plugins.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ContinuousParameterRange.Name) return name_.GetNoArena(); } inline void ContinuousParameterRange::set_name(const ::std::string& value) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ContinuousParameterRange.Name) } #if LANG_CXX11 inline void ContinuousParameterRange::set_name(::std::string&& value) { name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.ContinuousParameterRange.Name) } #endif inline void ContinuousParameterRange::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.ContinuousParameterRange.Name) } inline void ContinuousParameterRange::set_name(const char* value, size_t size) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.ContinuousParameterRange.Name) } inline ::std::string* ContinuousParameterRange::mutable_name() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.ContinuousParameterRange.Name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* ContinuousParameterRange::release_name() { - // @@protoc_insertion_point(field_release:flyte.plugins.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.ContinuousParameterRange.Name) return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1974,7 +1977,7 @@ inline void ContinuousParameterRange::set_allocated_name(::std::string* name) { } name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.ContinuousParameterRange.Name) } // double MaxValue = 2; @@ -1982,13 +1985,13 @@ inline void ContinuousParameterRange::clear_maxvalue() { maxvalue_ = 0; } inline double ContinuousParameterRange::maxvalue() const { - // @@protoc_insertion_point(field_get:flyte.plugins.ContinuousParameterRange.MaxValue) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ContinuousParameterRange.MaxValue) return maxvalue_; } inline void ContinuousParameterRange::set_maxvalue(double value) { maxvalue_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.ContinuousParameterRange.MaxValue) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ContinuousParameterRange.MaxValue) } // double MinValue = 3; @@ -1996,27 +1999,27 @@ inline void ContinuousParameterRange::clear_minvalue() { minvalue_ = 0; } inline double ContinuousParameterRange::minvalue() const { - // @@protoc_insertion_point(field_get:flyte.plugins.ContinuousParameterRange.MinValue) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ContinuousParameterRange.MinValue) return minvalue_; } inline void ContinuousParameterRange::set_minvalue(double value) { minvalue_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.ContinuousParameterRange.MinValue) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ContinuousParameterRange.MinValue) } -// .flyte.plugins.HyperparameterScalingType ScalingType = 4; +// .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; inline void ContinuousParameterRange::clear_scalingtype() { scalingtype_ = 0; } -inline ::flyte::plugins::HyperparameterScalingType ContinuousParameterRange::scalingtype() const { - // @@protoc_insertion_point(field_get:flyte.plugins.ContinuousParameterRange.ScalingType) - return static_cast< ::flyte::plugins::HyperparameterScalingType >(scalingtype_); +inline ::flyte::plugins::sagemaker::HyperparameterScalingType ContinuousParameterRange::scalingtype() const { + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ContinuousParameterRange.ScalingType) + return static_cast< ::flyte::plugins::sagemaker::HyperparameterScalingType >(scalingtype_); } -inline void ContinuousParameterRange::set_scalingtype(::flyte::plugins::HyperparameterScalingType value) { +inline void ContinuousParameterRange::set_scalingtype(::flyte::plugins::sagemaker::HyperparameterScalingType value) { scalingtype_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.ContinuousParameterRange.ScalingType) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ContinuousParameterRange.ScalingType) } // ------------------------------------------------------------------- @@ -2028,41 +2031,41 @@ inline void IntegerParameterRange::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& IntegerParameterRange::name() const { - // @@protoc_insertion_point(field_get:flyte.plugins.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.IntegerParameterRange.Name) return name_.GetNoArena(); } inline void IntegerParameterRange::set_name(const ::std::string& value) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.IntegerParameterRange.Name) } #if LANG_CXX11 inline void IntegerParameterRange::set_name(::std::string&& value) { name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.IntegerParameterRange.Name) } #endif inline void IntegerParameterRange::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.IntegerParameterRange.Name) } inline void IntegerParameterRange::set_name(const char* value, size_t size) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.IntegerParameterRange.Name) } inline ::std::string* IntegerParameterRange::mutable_name() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.IntegerParameterRange.Name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* IntegerParameterRange::release_name() { - // @@protoc_insertion_point(field_release:flyte.plugins.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.IntegerParameterRange.Name) return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2073,7 +2076,7 @@ inline void IntegerParameterRange::set_allocated_name(::std::string* name) { } name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.IntegerParameterRange.Name) } // float MaxValue = 2; @@ -2081,13 +2084,13 @@ inline void IntegerParameterRange::clear_maxvalue() { maxvalue_ = 0; } inline float IntegerParameterRange::maxvalue() const { - // @@protoc_insertion_point(field_get:flyte.plugins.IntegerParameterRange.MaxValue) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.IntegerParameterRange.MaxValue) return maxvalue_; } inline void IntegerParameterRange::set_maxvalue(float value) { maxvalue_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.IntegerParameterRange.MaxValue) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.IntegerParameterRange.MaxValue) } // float MinValue = 3; @@ -2095,27 +2098,27 @@ inline void IntegerParameterRange::clear_minvalue() { minvalue_ = 0; } inline float IntegerParameterRange::minvalue() const { - // @@protoc_insertion_point(field_get:flyte.plugins.IntegerParameterRange.MinValue) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.IntegerParameterRange.MinValue) return minvalue_; } inline void IntegerParameterRange::set_minvalue(float value) { minvalue_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.IntegerParameterRange.MinValue) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.IntegerParameterRange.MinValue) } -// .flyte.plugins.HyperparameterScalingType ScalingType = 4; +// .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; inline void IntegerParameterRange::clear_scalingtype() { scalingtype_ = 0; } -inline ::flyte::plugins::HyperparameterScalingType IntegerParameterRange::scalingtype() const { - // @@protoc_insertion_point(field_get:flyte.plugins.IntegerParameterRange.ScalingType) - return static_cast< ::flyte::plugins::HyperparameterScalingType >(scalingtype_); +inline ::flyte::plugins::sagemaker::HyperparameterScalingType IntegerParameterRange::scalingtype() const { + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.IntegerParameterRange.ScalingType) + return static_cast< ::flyte::plugins::sagemaker::HyperparameterScalingType >(scalingtype_); } -inline void IntegerParameterRange::set_scalingtype(::flyte::plugins::HyperparameterScalingType value) { +inline void IntegerParameterRange::set_scalingtype(::flyte::plugins::sagemaker::HyperparameterScalingType value) { scalingtype_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.IntegerParameterRange.ScalingType) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.IntegerParameterRange.ScalingType) } // ------------------------------------------------------------------- @@ -2127,41 +2130,41 @@ inline void CategoricalParameterRange::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& CategoricalParameterRange::name() const { - // @@protoc_insertion_point(field_get:flyte.plugins.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.CategoricalParameterRange.Name) return name_.GetNoArena(); } inline void CategoricalParameterRange::set_name(const ::std::string& value) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.CategoricalParameterRange.Name) } #if LANG_CXX11 inline void CategoricalParameterRange::set_name(::std::string&& value) { name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.CategoricalParameterRange.Name) } #endif inline void CategoricalParameterRange::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.CategoricalParameterRange.Name) } inline void CategoricalParameterRange::set_name(const char* value, size_t size) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.CategoricalParameterRange.Name) } inline ::std::string* CategoricalParameterRange::mutable_name() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.CategoricalParameterRange.Name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* CategoricalParameterRange::release_name() { - // @@protoc_insertion_point(field_release:flyte.plugins.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.CategoricalParameterRange.Name) return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2172,7 +2175,7 @@ inline void CategoricalParameterRange::set_allocated_name(::std::string* name) { } name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.CategoricalParameterRange.Name) } // repeated string Values = 2; @@ -2183,64 +2186,64 @@ inline void CategoricalParameterRange::clear_values() { values_.Clear(); } inline const ::std::string& CategoricalParameterRange::values(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.CategoricalParameterRange.Values) return values_.Get(index); } inline ::std::string* CategoricalParameterRange::mutable_values(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.CategoricalParameterRange.Values) return values_.Mutable(index); } inline void CategoricalParameterRange::set_values(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyte.plugins.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.CategoricalParameterRange.Values) values_.Mutable(index)->assign(value); } #if LANG_CXX11 inline void CategoricalParameterRange::set_values(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyte.plugins.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.CategoricalParameterRange.Values) values_.Mutable(index)->assign(std::move(value)); } #endif inline void CategoricalParameterRange::set_values(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); values_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyte.plugins.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.CategoricalParameterRange.Values) } inline void CategoricalParameterRange::set_values(int index, const char* value, size_t size) { values_.Mutable(index)->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.CategoricalParameterRange.Values) } inline ::std::string* CategoricalParameterRange::add_values() { - // @@protoc_insertion_point(field_add_mutable:flyte.plugins.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add_mutable:flyte.plugins.sagemaker.CategoricalParameterRange.Values) return values_.Add(); } inline void CategoricalParameterRange::add_values(const ::std::string& value) { values_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyte.plugins.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.CategoricalParameterRange.Values) } #if LANG_CXX11 inline void CategoricalParameterRange::add_values(::std::string&& value) { values_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyte.plugins.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.CategoricalParameterRange.Values) } #endif inline void CategoricalParameterRange::add_values(const char* value) { GOOGLE_DCHECK(value != nullptr); values_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyte.plugins.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add_char:flyte.plugins.sagemaker.CategoricalParameterRange.Values) } inline void CategoricalParameterRange::add_values(const char* value, size_t size) { values_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyte.plugins.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add_pointer:flyte.plugins.sagemaker.CategoricalParameterRange.Values) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& CategoricalParameterRange::values() const { - // @@protoc_insertion_point(field_list:flyte.plugins.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.CategoricalParameterRange.Values) return values_; } inline ::google::protobuf::RepeatedPtrField<::std::string>* CategoricalParameterRange::mutable_values() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.CategoricalParameterRange.Values) return &values_; } @@ -2248,93 +2251,93 @@ CategoricalParameterRange::mutable_values() { // ParameterRanges -// repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; +// repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; inline int ParameterRanges::continuousparameterranges_size() const { return continuousparameterranges_.size(); } inline void ParameterRanges::clear_continuousparameterranges() { continuousparameterranges_.Clear(); } -inline ::flyte::plugins::ContinuousParameterRange* ParameterRanges::mutable_continuousparameterranges(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.ParameterRanges.ContinuousParameterRanges) +inline ::flyte::plugins::sagemaker::ContinuousParameterRange* ParameterRanges::mutable_continuousparameterranges(int index) { + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) return continuousparameterranges_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::ContinuousParameterRange >* +inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::ContinuousParameterRange >* ParameterRanges::mutable_continuousparameterranges() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.ParameterRanges.ContinuousParameterRanges) + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) return &continuousparameterranges_; } -inline const ::flyte::plugins::ContinuousParameterRange& ParameterRanges::continuousparameterranges(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.ParameterRanges.ContinuousParameterRanges) +inline const ::flyte::plugins::sagemaker::ContinuousParameterRange& ParameterRanges::continuousparameterranges(int index) const { + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) return continuousparameterranges_.Get(index); } -inline ::flyte::plugins::ContinuousParameterRange* ParameterRanges::add_continuousparameterranges() { - // @@protoc_insertion_point(field_add:flyte.plugins.ParameterRanges.ContinuousParameterRanges) +inline ::flyte::plugins::sagemaker::ContinuousParameterRange* ParameterRanges::add_continuousparameterranges() { + // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) return continuousparameterranges_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::ContinuousParameterRange >& +inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::ContinuousParameterRange >& ParameterRanges::continuousparameterranges() const { - // @@protoc_insertion_point(field_list:flyte.plugins.ParameterRanges.ContinuousParameterRanges) + // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) return continuousparameterranges_; } -// repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; +// repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; inline int ParameterRanges::integerparameterranges_size() const { return integerparameterranges_.size(); } inline void ParameterRanges::clear_integerparameterranges() { integerparameterranges_.Clear(); } -inline ::flyte::plugins::IntegerParameterRange* ParameterRanges::mutable_integerparameterranges(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.ParameterRanges.IntegerParameterRanges) +inline ::flyte::plugins::sagemaker::IntegerParameterRange* ParameterRanges::mutable_integerparameterranges(int index) { + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) return integerparameterranges_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::IntegerParameterRange >* +inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::IntegerParameterRange >* ParameterRanges::mutable_integerparameterranges() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.ParameterRanges.IntegerParameterRanges) + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) return &integerparameterranges_; } -inline const ::flyte::plugins::IntegerParameterRange& ParameterRanges::integerparameterranges(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.ParameterRanges.IntegerParameterRanges) +inline const ::flyte::plugins::sagemaker::IntegerParameterRange& ParameterRanges::integerparameterranges(int index) const { + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) return integerparameterranges_.Get(index); } -inline ::flyte::plugins::IntegerParameterRange* ParameterRanges::add_integerparameterranges() { - // @@protoc_insertion_point(field_add:flyte.plugins.ParameterRanges.IntegerParameterRanges) +inline ::flyte::plugins::sagemaker::IntegerParameterRange* ParameterRanges::add_integerparameterranges() { + // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) return integerparameterranges_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::IntegerParameterRange >& +inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::IntegerParameterRange >& ParameterRanges::integerparameterranges() const { - // @@protoc_insertion_point(field_list:flyte.plugins.ParameterRanges.IntegerParameterRanges) + // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) return integerparameterranges_; } -// repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; +// repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; inline int ParameterRanges::categoricalparameterranges_size() const { return categoricalparameterranges_.size(); } inline void ParameterRanges::clear_categoricalparameterranges() { categoricalparameterranges_.Clear(); } -inline ::flyte::plugins::CategoricalParameterRange* ParameterRanges::mutable_categoricalparameterranges(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.ParameterRanges.CategoricalParameterRanges) +inline ::flyte::plugins::sagemaker::CategoricalParameterRange* ParameterRanges::mutable_categoricalparameterranges(int index) { + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) return categoricalparameterranges_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::CategoricalParameterRange >* +inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::CategoricalParameterRange >* ParameterRanges::mutable_categoricalparameterranges() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.ParameterRanges.CategoricalParameterRanges) + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) return &categoricalparameterranges_; } -inline const ::flyte::plugins::CategoricalParameterRange& ParameterRanges::categoricalparameterranges(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.ParameterRanges.CategoricalParameterRanges) +inline const ::flyte::plugins::sagemaker::CategoricalParameterRange& ParameterRanges::categoricalparameterranges(int index) const { + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) return categoricalparameterranges_.Get(index); } -inline ::flyte::plugins::CategoricalParameterRange* ParameterRanges::add_categoricalparameterranges() { - // @@protoc_insertion_point(field_add:flyte.plugins.ParameterRanges.CategoricalParameterRanges) +inline ::flyte::plugins::sagemaker::CategoricalParameterRange* ParameterRanges::add_categoricalparameterranges() { + // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) return categoricalparameterranges_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::CategoricalParameterRange >& +inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::CategoricalParameterRange >& ParameterRanges::categoricalparameterranges() const { - // @@protoc_insertion_point(field_list:flyte.plugins.ParameterRanges.CategoricalParameterRanges) + // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) return categoricalparameterranges_; } @@ -2347,41 +2350,41 @@ inline void AlgorithmSpecification_MetricDefinition::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& AlgorithmSpecification_MetricDefinition::name() const { - // @@protoc_insertion_point(field_get:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) return name_.GetNoArena(); } inline void AlgorithmSpecification_MetricDefinition::set_name(const ::std::string& value) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) } #if LANG_CXX11 inline void AlgorithmSpecification_MetricDefinition::set_name(::std::string&& value) { name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) } #endif inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) } inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value, size_t size) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) } inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_name() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AlgorithmSpecification_MetricDefinition::release_name() { - // @@protoc_insertion_point(field_release:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2392,7 +2395,7 @@ inline void AlgorithmSpecification_MetricDefinition::set_allocated_name(::std::s } name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) } // string Regex = 2; @@ -2400,41 +2403,41 @@ inline void AlgorithmSpecification_MetricDefinition::clear_regex() { regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& AlgorithmSpecification_MetricDefinition::regex() const { - // @@protoc_insertion_point(field_get:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) return regex_.GetNoArena(); } inline void AlgorithmSpecification_MetricDefinition::set_regex(const ::std::string& value) { regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) } #if LANG_CXX11 inline void AlgorithmSpecification_MetricDefinition::set_regex(::std::string&& value) { regex_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) } #endif inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value) { GOOGLE_DCHECK(value != nullptr); regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) } inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value, size_t size) { regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) } inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_regex() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) return regex_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AlgorithmSpecification_MetricDefinition::release_regex() { - // @@protoc_insertion_point(field_release:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) return regex_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2445,7 +2448,7 @@ inline void AlgorithmSpecification_MetricDefinition::set_allocated_regex(::std:: } regex_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), regex); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) } // ------------------------------------------------------------------- @@ -2457,41 +2460,41 @@ inline void AlgorithmSpecification::clear_trainingimage() { trainingimage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& AlgorithmSpecification::trainingimage() const { - // @@protoc_insertion_point(field_get:flyte.plugins.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) return trainingimage_.GetNoArena(); } inline void AlgorithmSpecification::set_trainingimage(const ::std::string& value) { trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) } #if LANG_CXX11 inline void AlgorithmSpecification::set_trainingimage(::std::string&& value) { trainingimage_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) } #endif inline void AlgorithmSpecification::set_trainingimage(const char* value) { GOOGLE_DCHECK(value != nullptr); trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) } inline void AlgorithmSpecification::set_trainingimage(const char* value, size_t size) { trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) } inline ::std::string* AlgorithmSpecification::mutable_trainingimage() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) return trainingimage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AlgorithmSpecification::release_trainingimage() { - // @@protoc_insertion_point(field_release:flyte.plugins.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) return trainingimage_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2502,7 +2505,7 @@ inline void AlgorithmSpecification::set_allocated_trainingimage(::std::string* t } trainingimage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trainingimage); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) } // string TrainingInputMode = 2; @@ -2510,41 +2513,41 @@ inline void AlgorithmSpecification::clear_traininginputmode() { traininginputmode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& AlgorithmSpecification::traininginputmode() const { - // @@protoc_insertion_point(field_get:flyte.plugins.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) return traininginputmode_.GetNoArena(); } inline void AlgorithmSpecification::set_traininginputmode(const ::std::string& value) { traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) } #if LANG_CXX11 inline void AlgorithmSpecification::set_traininginputmode(::std::string&& value) { traininginputmode_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) } #endif inline void AlgorithmSpecification::set_traininginputmode(const char* value) { GOOGLE_DCHECK(value != nullptr); traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) } inline void AlgorithmSpecification::set_traininginputmode(const char* value, size_t size) { traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) } inline ::std::string* AlgorithmSpecification::mutable_traininginputmode() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) return traininginputmode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AlgorithmSpecification::release_traininginputmode() { - // @@protoc_insertion_point(field_release:flyte.plugins.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) return traininginputmode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2555,7 +2558,7 @@ inline void AlgorithmSpecification::set_allocated_traininginputmode(::std::strin } traininginputmode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), traininginputmode); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) } // string AlgorithmName = 3; @@ -2563,41 +2566,41 @@ inline void AlgorithmSpecification::clear_algorithmname() { algorithmname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& AlgorithmSpecification::algorithmname() const { - // @@protoc_insertion_point(field_get:flyte.plugins.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) return algorithmname_.GetNoArena(); } inline void AlgorithmSpecification::set_algorithmname(const ::std::string& value) { algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) } #if LANG_CXX11 inline void AlgorithmSpecification::set_algorithmname(::std::string&& value) { algorithmname_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) } #endif inline void AlgorithmSpecification::set_algorithmname(const char* value) { GOOGLE_DCHECK(value != nullptr); algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) } inline void AlgorithmSpecification::set_algorithmname(const char* value, size_t size) { algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) } inline ::std::string* AlgorithmSpecification::mutable_algorithmname() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) return algorithmname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AlgorithmSpecification::release_algorithmname() { - // @@protoc_insertion_point(field_release:flyte.plugins.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) return algorithmname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2608,36 +2611,36 @@ inline void AlgorithmSpecification::set_allocated_algorithmname(::std::string* a } algorithmname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), algorithmname); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) } -// repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; +// repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; inline int AlgorithmSpecification::metricdefinitions_size() const { return metricdefinitions_.size(); } inline void AlgorithmSpecification::clear_metricdefinitions() { metricdefinitions_.Clear(); } -inline ::flyte::plugins::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::mutable_metricdefinitions(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.AlgorithmSpecification.MetricDefinitions) +inline ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::mutable_metricdefinitions(int index) { + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) return metricdefinitions_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::AlgorithmSpecification_MetricDefinition >* +inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* AlgorithmSpecification::mutable_metricdefinitions() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.AlgorithmSpecification.MetricDefinitions) + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) return &metricdefinitions_; } -inline const ::flyte::plugins::AlgorithmSpecification_MetricDefinition& AlgorithmSpecification::metricdefinitions(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.AlgorithmSpecification.MetricDefinitions) +inline const ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& AlgorithmSpecification::metricdefinitions(int index) const { + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) return metricdefinitions_.Get(index); } -inline ::flyte::plugins::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::add_metricdefinitions() { - // @@protoc_insertion_point(field_add:flyte.plugins.AlgorithmSpecification.MetricDefinitions) +inline ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::add_metricdefinitions() { + // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) return metricdefinitions_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::AlgorithmSpecification_MetricDefinition >& +inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& AlgorithmSpecification::metricdefinitions() const { - // @@protoc_insertion_point(field_list:flyte.plugins.AlgorithmSpecification.MetricDefinitions) + // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) return metricdefinitions_; } @@ -2650,41 +2653,41 @@ inline void ResourceConfig::clear_instancetype() { instancetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& ResourceConfig::instancetype() const { - // @@protoc_insertion_point(field_get:flyte.plugins.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ResourceConfig.InstanceType) return instancetype_.GetNoArena(); } inline void ResourceConfig::set_instancetype(const ::std::string& value) { instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ResourceConfig.InstanceType) } #if LANG_CXX11 inline void ResourceConfig::set_instancetype(::std::string&& value) { instancetype_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.ResourceConfig.InstanceType) } #endif inline void ResourceConfig::set_instancetype(const char* value) { GOOGLE_DCHECK(value != nullptr); instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.ResourceConfig.InstanceType) } inline void ResourceConfig::set_instancetype(const char* value, size_t size) { instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.ResourceConfig.InstanceType) } inline ::std::string* ResourceConfig::mutable_instancetype() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.ResourceConfig.InstanceType) return instancetype_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* ResourceConfig::release_instancetype() { - // @@protoc_insertion_point(field_release:flyte.plugins.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.ResourceConfig.InstanceType) return instancetype_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2695,7 +2698,7 @@ inline void ResourceConfig::set_allocated_instancetype(::std::string* instancety } instancetype_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instancetype); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.ResourceConfig.InstanceType) } // int64 InstanceCount = 2; @@ -2703,13 +2706,13 @@ inline void ResourceConfig::clear_instancecount() { instancecount_ = PROTOBUF_LONGLONG(0); } inline ::google::protobuf::int64 ResourceConfig::instancecount() const { - // @@protoc_insertion_point(field_get:flyte.plugins.ResourceConfig.InstanceCount) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ResourceConfig.InstanceCount) return instancecount_; } inline void ResourceConfig::set_instancecount(::google::protobuf::int64 value) { instancecount_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.ResourceConfig.InstanceCount) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ResourceConfig.InstanceCount) } // int64 VolumeSizeInGB = 3; @@ -2717,13 +2720,13 @@ inline void ResourceConfig::clear_volumesizeingb() { volumesizeingb_ = PROTOBUF_LONGLONG(0); } inline ::google::protobuf::int64 ResourceConfig::volumesizeingb() const { - // @@protoc_insertion_point(field_get:flyte.plugins.ResourceConfig.VolumeSizeInGB) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ResourceConfig.VolumeSizeInGB) return volumesizeingb_; } inline void ResourceConfig::set_volumesizeingb(::google::protobuf::int64 value) { volumesizeingb_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.ResourceConfig.VolumeSizeInGB) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ResourceConfig.VolumeSizeInGB) } // string VolumeKmsKeyId = 4; @@ -2731,41 +2734,41 @@ inline void ResourceConfig::clear_volumekmskeyid() { volumekmskeyid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& ResourceConfig::volumekmskeyid() const { - // @@protoc_insertion_point(field_get:flyte.plugins.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) return volumekmskeyid_.GetNoArena(); } inline void ResourceConfig::set_volumekmskeyid(const ::std::string& value) { volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) } #if LANG_CXX11 inline void ResourceConfig::set_volumekmskeyid(::std::string&& value) { volumekmskeyid_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) } #endif inline void ResourceConfig::set_volumekmskeyid(const char* value) { GOOGLE_DCHECK(value != nullptr); volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) } inline void ResourceConfig::set_volumekmskeyid(const char* value, size_t size) { volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) } inline ::std::string* ResourceConfig::mutable_volumekmskeyid() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) return volumekmskeyid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* ResourceConfig::release_volumekmskeyid() { - // @@protoc_insertion_point(field_release:flyte.plugins.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) return volumekmskeyid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2776,7 +2779,7 @@ inline void ResourceConfig::set_allocated_volumekmskeyid(::std::string* volumekm } volumekmskeyid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), volumekmskeyid); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) } // ------------------------------------------------------------------- @@ -2788,13 +2791,13 @@ inline void StoppingCondition::clear_maxruntimeinseconds() { maxruntimeinseconds_ = PROTOBUF_LONGLONG(0); } inline ::google::protobuf::int64 StoppingCondition::maxruntimeinseconds() const { - // @@protoc_insertion_point(field_get:flyte.plugins.StoppingCondition.MaxRuntimeInSeconds) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds) return maxruntimeinseconds_; } inline void StoppingCondition::set_maxruntimeinseconds(::google::protobuf::int64 value) { maxruntimeinseconds_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.StoppingCondition.MaxRuntimeInSeconds) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds) } // int64 MaxWaitTimeInSeconds = 2; @@ -2802,13 +2805,13 @@ inline void StoppingCondition::clear_maxwaittimeinseconds() { maxwaittimeinseconds_ = PROTOBUF_LONGLONG(0); } inline ::google::protobuf::int64 StoppingCondition::maxwaittimeinseconds() const { - // @@protoc_insertion_point(field_get:flyte.plugins.StoppingCondition.MaxWaitTimeInSeconds) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds) return maxwaittimeinseconds_; } inline void StoppingCondition::set_maxwaittimeinseconds(::google::protobuf::int64 value) { maxwaittimeinseconds_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.StoppingCondition.MaxWaitTimeInSeconds) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds) } // ------------------------------------------------------------------- @@ -2823,64 +2826,64 @@ inline void VpcConfig::clear_securitygroupids() { securitygroupids_.Clear(); } inline const ::std::string& VpcConfig::securitygroupids(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) return securitygroupids_.Get(index); } inline ::std::string* VpcConfig::mutable_securitygroupids(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) return securitygroupids_.Mutable(index); } inline void VpcConfig::set_securitygroupids(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyte.plugins.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) securitygroupids_.Mutable(index)->assign(value); } #if LANG_CXX11 inline void VpcConfig::set_securitygroupids(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyte.plugins.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) securitygroupids_.Mutable(index)->assign(std::move(value)); } #endif inline void VpcConfig::set_securitygroupids(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); securitygroupids_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyte.plugins.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) } inline void VpcConfig::set_securitygroupids(int index, const char* value, size_t size) { securitygroupids_.Mutable(index)->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) } inline ::std::string* VpcConfig::add_securitygroupids() { - // @@protoc_insertion_point(field_add_mutable:flyte.plugins.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_add_mutable:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) return securitygroupids_.Add(); } inline void VpcConfig::add_securitygroupids(const ::std::string& value) { securitygroupids_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyte.plugins.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) } #if LANG_CXX11 inline void VpcConfig::add_securitygroupids(::std::string&& value) { securitygroupids_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyte.plugins.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) } #endif inline void VpcConfig::add_securitygroupids(const char* value) { GOOGLE_DCHECK(value != nullptr); securitygroupids_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyte.plugins.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_add_char:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) } inline void VpcConfig::add_securitygroupids(const char* value, size_t size) { securitygroupids_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyte.plugins.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_add_pointer:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& VpcConfig::securitygroupids() const { - // @@protoc_insertion_point(field_list:flyte.plugins.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) return securitygroupids_; } inline ::google::protobuf::RepeatedPtrField<::std::string>* VpcConfig::mutable_securitygroupids() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) return &securitygroupids_; } @@ -2892,64 +2895,64 @@ inline void VpcConfig::clear_subnets() { subnets_.Clear(); } inline const ::std::string& VpcConfig::subnets(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.VpcConfig.Subnets) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.VpcConfig.Subnets) return subnets_.Get(index); } inline ::std::string* VpcConfig::mutable_subnets(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.VpcConfig.Subnets) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.VpcConfig.Subnets) return subnets_.Mutable(index); } inline void VpcConfig::set_subnets(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyte.plugins.VpcConfig.Subnets) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.VpcConfig.Subnets) subnets_.Mutable(index)->assign(value); } #if LANG_CXX11 inline void VpcConfig::set_subnets(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyte.plugins.VpcConfig.Subnets) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.VpcConfig.Subnets) subnets_.Mutable(index)->assign(std::move(value)); } #endif inline void VpcConfig::set_subnets(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); subnets_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyte.plugins.VpcConfig.Subnets) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.VpcConfig.Subnets) } inline void VpcConfig::set_subnets(int index, const char* value, size_t size) { subnets_.Mutable(index)->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.VpcConfig.Subnets) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.VpcConfig.Subnets) } inline ::std::string* VpcConfig::add_subnets() { - // @@protoc_insertion_point(field_add_mutable:flyte.plugins.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add_mutable:flyte.plugins.sagemaker.VpcConfig.Subnets) return subnets_.Add(); } inline void VpcConfig::add_subnets(const ::std::string& value) { subnets_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyte.plugins.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.VpcConfig.Subnets) } #if LANG_CXX11 inline void VpcConfig::add_subnets(::std::string&& value) { subnets_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyte.plugins.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.VpcConfig.Subnets) } #endif inline void VpcConfig::add_subnets(const char* value) { GOOGLE_DCHECK(value != nullptr); subnets_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyte.plugins.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add_char:flyte.plugins.sagemaker.VpcConfig.Subnets) } inline void VpcConfig::add_subnets(const char* value, size_t size) { subnets_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyte.plugins.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add_pointer:flyte.plugins.sagemaker.VpcConfig.Subnets) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& VpcConfig::subnets() const { - // @@protoc_insertion_point(field_list:flyte.plugins.VpcConfig.Subnets) + // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.VpcConfig.Subnets) return subnets_; } inline ::google::protobuf::RepeatedPtrField<::std::string>* VpcConfig::mutable_subnets() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.VpcConfig.Subnets) + // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.VpcConfig.Subnets) return &subnets_; } @@ -2962,41 +2965,41 @@ inline void SagemakerTrainingJob::clear_region() { region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& SagemakerTrainingJob::region() const { - // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) return region_.GetNoArena(); } inline void SagemakerTrainingJob::set_region(const ::std::string& value) { region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) } #if LANG_CXX11 inline void SagemakerTrainingJob::set_region(::std::string&& value) { region_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) } #endif inline void SagemakerTrainingJob::set_region(const char* value) { GOOGLE_DCHECK(value != nullptr); region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) } inline void SagemakerTrainingJob::set_region(const char* value, size_t size) { region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) } inline ::std::string* SagemakerTrainingJob::mutable_region() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) return region_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* SagemakerTrainingJob::release_region() { - // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) return region_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -3007,7 +3010,7 @@ inline void SagemakerTrainingJob::set_allocated_region(::std::string* region) { } region_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), region); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) } // string RoleArn = 2; @@ -3015,41 +3018,41 @@ inline void SagemakerTrainingJob::clear_rolearn() { rolearn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& SagemakerTrainingJob::rolearn() const { - // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) return rolearn_.GetNoArena(); } inline void SagemakerTrainingJob::set_rolearn(const ::std::string& value) { rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) } #if LANG_CXX11 inline void SagemakerTrainingJob::set_rolearn(::std::string&& value) { rolearn_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) } #endif inline void SagemakerTrainingJob::set_rolearn(const char* value) { GOOGLE_DCHECK(value != nullptr); rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) } inline void SagemakerTrainingJob::set_rolearn(const char* value, size_t size) { rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) } inline ::std::string* SagemakerTrainingJob::mutable_rolearn() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) return rolearn_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* SagemakerTrainingJob::release_rolearn() { - // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) return rolearn_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -3060,10 +3063,10 @@ inline void SagemakerTrainingJob::set_allocated_rolearn(::std::string* rolearn) } rolearn_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rolearn); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) } -// .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; +// .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; inline bool SagemakerTrainingJob::has_algorithmspecification() const { return this != internal_default_instance() && algorithmspecification_ != nullptr; } @@ -3073,29 +3076,29 @@ inline void SagemakerTrainingJob::clear_algorithmspecification() { } algorithmspecification_ = nullptr; } -inline const ::flyte::plugins::AlgorithmSpecification& SagemakerTrainingJob::algorithmspecification() const { - const ::flyte::plugins::AlgorithmSpecification* p = algorithmspecification_; - // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.AlgorithmSpecification) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::_AlgorithmSpecification_default_instance_); +inline const ::flyte::plugins::sagemaker::AlgorithmSpecification& SagemakerTrainingJob::algorithmspecification() const { + const ::flyte::plugins::sagemaker::AlgorithmSpecification* p = algorithmspecification_; + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::sagemaker::_AlgorithmSpecification_default_instance_); } -inline ::flyte::plugins::AlgorithmSpecification* SagemakerTrainingJob::release_algorithmspecification() { - // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerTrainingJob.AlgorithmSpecification) +inline ::flyte::plugins::sagemaker::AlgorithmSpecification* SagemakerTrainingJob::release_algorithmspecification() { + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) - ::flyte::plugins::AlgorithmSpecification* temp = algorithmspecification_; + ::flyte::plugins::sagemaker::AlgorithmSpecification* temp = algorithmspecification_; algorithmspecification_ = nullptr; return temp; } -inline ::flyte::plugins::AlgorithmSpecification* SagemakerTrainingJob::mutable_algorithmspecification() { +inline ::flyte::plugins::sagemaker::AlgorithmSpecification* SagemakerTrainingJob::mutable_algorithmspecification() { if (algorithmspecification_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::AlgorithmSpecification>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::AlgorithmSpecification>(GetArenaNoVirtual()); algorithmspecification_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerTrainingJob.AlgorithmSpecification) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) return algorithmspecification_; } -inline void SagemakerTrainingJob::set_allocated_algorithmspecification(::flyte::plugins::AlgorithmSpecification* algorithmspecification) { +inline void SagemakerTrainingJob::set_allocated_algorithmspecification(::flyte::plugins::sagemaker::AlgorithmSpecification* algorithmspecification) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete algorithmspecification_; @@ -3111,10 +3114,10 @@ inline void SagemakerTrainingJob::set_allocated_algorithmspecification(::flyte:: } algorithmspecification_ = algorithmspecification; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerTrainingJob.AlgorithmSpecification) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) } -// .flyte.plugins.ResourceConfig ResourceConfig = 4; +// .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; inline bool SagemakerTrainingJob::has_resourceconfig() const { return this != internal_default_instance() && resourceconfig_ != nullptr; } @@ -3124,29 +3127,29 @@ inline void SagemakerTrainingJob::clear_resourceconfig() { } resourceconfig_ = nullptr; } -inline const ::flyte::plugins::ResourceConfig& SagemakerTrainingJob::resourceconfig() const { - const ::flyte::plugins::ResourceConfig* p = resourceconfig_; - // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.ResourceConfig) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::_ResourceConfig_default_instance_); +inline const ::flyte::plugins::sagemaker::ResourceConfig& SagemakerTrainingJob::resourceconfig() const { + const ::flyte::plugins::sagemaker::ResourceConfig* p = resourceconfig_; + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::sagemaker::_ResourceConfig_default_instance_); } -inline ::flyte::plugins::ResourceConfig* SagemakerTrainingJob::release_resourceconfig() { - // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerTrainingJob.ResourceConfig) +inline ::flyte::plugins::sagemaker::ResourceConfig* SagemakerTrainingJob::release_resourceconfig() { + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) - ::flyte::plugins::ResourceConfig* temp = resourceconfig_; + ::flyte::plugins::sagemaker::ResourceConfig* temp = resourceconfig_; resourceconfig_ = nullptr; return temp; } -inline ::flyte::plugins::ResourceConfig* SagemakerTrainingJob::mutable_resourceconfig() { +inline ::flyte::plugins::sagemaker::ResourceConfig* SagemakerTrainingJob::mutable_resourceconfig() { if (resourceconfig_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::ResourceConfig>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::ResourceConfig>(GetArenaNoVirtual()); resourceconfig_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerTrainingJob.ResourceConfig) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) return resourceconfig_; } -inline void SagemakerTrainingJob::set_allocated_resourceconfig(::flyte::plugins::ResourceConfig* resourceconfig) { +inline void SagemakerTrainingJob::set_allocated_resourceconfig(::flyte::plugins::sagemaker::ResourceConfig* resourceconfig) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete resourceconfig_; @@ -3162,10 +3165,10 @@ inline void SagemakerTrainingJob::set_allocated_resourceconfig(::flyte::plugins: } resourceconfig_ = resourceconfig; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerTrainingJob.ResourceConfig) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) } -// .flyte.plugins.StoppingCondition StoppingCondition = 5; +// .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; inline bool SagemakerTrainingJob::has_stoppingcondition() const { return this != internal_default_instance() && stoppingcondition_ != nullptr; } @@ -3175,29 +3178,29 @@ inline void SagemakerTrainingJob::clear_stoppingcondition() { } stoppingcondition_ = nullptr; } -inline const ::flyte::plugins::StoppingCondition& SagemakerTrainingJob::stoppingcondition() const { - const ::flyte::plugins::StoppingCondition* p = stoppingcondition_; - // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.StoppingCondition) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::_StoppingCondition_default_instance_); +inline const ::flyte::plugins::sagemaker::StoppingCondition& SagemakerTrainingJob::stoppingcondition() const { + const ::flyte::plugins::sagemaker::StoppingCondition* p = stoppingcondition_; + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::sagemaker::_StoppingCondition_default_instance_); } -inline ::flyte::plugins::StoppingCondition* SagemakerTrainingJob::release_stoppingcondition() { - // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerTrainingJob.StoppingCondition) +inline ::flyte::plugins::sagemaker::StoppingCondition* SagemakerTrainingJob::release_stoppingcondition() { + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) - ::flyte::plugins::StoppingCondition* temp = stoppingcondition_; + ::flyte::plugins::sagemaker::StoppingCondition* temp = stoppingcondition_; stoppingcondition_ = nullptr; return temp; } -inline ::flyte::plugins::StoppingCondition* SagemakerTrainingJob::mutable_stoppingcondition() { +inline ::flyte::plugins::sagemaker::StoppingCondition* SagemakerTrainingJob::mutable_stoppingcondition() { if (stoppingcondition_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::StoppingCondition>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::StoppingCondition>(GetArenaNoVirtual()); stoppingcondition_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerTrainingJob.StoppingCondition) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) return stoppingcondition_; } -inline void SagemakerTrainingJob::set_allocated_stoppingcondition(::flyte::plugins::StoppingCondition* stoppingcondition) { +inline void SagemakerTrainingJob::set_allocated_stoppingcondition(::flyte::plugins::sagemaker::StoppingCondition* stoppingcondition) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete stoppingcondition_; @@ -3213,10 +3216,10 @@ inline void SagemakerTrainingJob::set_allocated_stoppingcondition(::flyte::plugi } stoppingcondition_ = stoppingcondition; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerTrainingJob.StoppingCondition) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) } -// .flyte.plugins.VpcConfig VpcConfig = 6; +// .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; inline bool SagemakerTrainingJob::has_vpcconfig() const { return this != internal_default_instance() && vpcconfig_ != nullptr; } @@ -3226,29 +3229,29 @@ inline void SagemakerTrainingJob::clear_vpcconfig() { } vpcconfig_ = nullptr; } -inline const ::flyte::plugins::VpcConfig& SagemakerTrainingJob::vpcconfig() const { - const ::flyte::plugins::VpcConfig* p = vpcconfig_; - // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.VpcConfig) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::_VpcConfig_default_instance_); +inline const ::flyte::plugins::sagemaker::VpcConfig& SagemakerTrainingJob::vpcconfig() const { + const ::flyte::plugins::sagemaker::VpcConfig* p = vpcconfig_; + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::sagemaker::_VpcConfig_default_instance_); } -inline ::flyte::plugins::VpcConfig* SagemakerTrainingJob::release_vpcconfig() { - // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerTrainingJob.VpcConfig) +inline ::flyte::plugins::sagemaker::VpcConfig* SagemakerTrainingJob::release_vpcconfig() { + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) - ::flyte::plugins::VpcConfig* temp = vpcconfig_; + ::flyte::plugins::sagemaker::VpcConfig* temp = vpcconfig_; vpcconfig_ = nullptr; return temp; } -inline ::flyte::plugins::VpcConfig* SagemakerTrainingJob::mutable_vpcconfig() { +inline ::flyte::plugins::sagemaker::VpcConfig* SagemakerTrainingJob::mutable_vpcconfig() { if (vpcconfig_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::VpcConfig>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::VpcConfig>(GetArenaNoVirtual()); vpcconfig_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerTrainingJob.VpcConfig) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) return vpcconfig_; } -inline void SagemakerTrainingJob::set_allocated_vpcconfig(::flyte::plugins::VpcConfig* vpcconfig) { +inline void SagemakerTrainingJob::set_allocated_vpcconfig(::flyte::plugins::sagemaker::VpcConfig* vpcconfig) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete vpcconfig_; @@ -3264,7 +3267,7 @@ inline void SagemakerTrainingJob::set_allocated_vpcconfig(::flyte::plugins::VpcC } vpcconfig_ = vpcconfig; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerTrainingJob.VpcConfig) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) } // bool EnableSpotTraining = 7; @@ -3272,31 +3275,31 @@ inline void SagemakerTrainingJob::clear_enablespottraining() { enablespottraining_ = false; } inline bool SagemakerTrainingJob::enablespottraining() const { - // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerTrainingJob.EnableSpotTraining) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining) return enablespottraining_; } inline void SagemakerTrainingJob::set_enablespottraining(bool value) { enablespottraining_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.SagemakerTrainingJob.EnableSpotTraining) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining) } // ------------------------------------------------------------------- // HPOJobObjective -// .flyte.plugins.HPOJobObjectiveType Type = 1; +// .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; inline void HPOJobObjective::clear_type() { type_ = 0; } -inline ::flyte::plugins::HPOJobObjectiveType HPOJobObjective::type() const { - // @@protoc_insertion_point(field_get:flyte.plugins.HPOJobObjective.Type) - return static_cast< ::flyte::plugins::HPOJobObjectiveType >(type_); +inline ::flyte::plugins::sagemaker::HPOJobObjectiveType HPOJobObjective::type() const { + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.HPOJobObjective.Type) + return static_cast< ::flyte::plugins::sagemaker::HPOJobObjectiveType >(type_); } -inline void HPOJobObjective::set_type(::flyte::plugins::HPOJobObjectiveType value) { +inline void HPOJobObjective::set_type(::flyte::plugins::sagemaker::HPOJobObjectiveType value) { type_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.HPOJobObjective.Type) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.HPOJobObjective.Type) } // string MetricName = 2; @@ -3304,41 +3307,41 @@ inline void HPOJobObjective::clear_metricname() { metricname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& HPOJobObjective::metricname() const { - // @@protoc_insertion_point(field_get:flyte.plugins.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.HPOJobObjective.MetricName) return metricname_.GetNoArena(); } inline void HPOJobObjective::set_metricname(const ::std::string& value) { metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.HPOJobObjective.MetricName) } #if LANG_CXX11 inline void HPOJobObjective::set_metricname(::std::string&& value) { metricname_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.HPOJobObjective.MetricName) } #endif inline void HPOJobObjective::set_metricname(const char* value) { GOOGLE_DCHECK(value != nullptr); metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.HPOJobObjective.MetricName) } inline void HPOJobObjective::set_metricname(const char* value, size_t size) { metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.HPOJobObjective.MetricName) } inline ::std::string* HPOJobObjective::mutable_metricname() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.HPOJobObjective.MetricName) return metricname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* HPOJobObjective::release_metricname() { - // @@protoc_insertion_point(field_release:flyte.plugins.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.HPOJobObjective.MetricName) return metricname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -3349,7 +3352,7 @@ inline void HPOJobObjective::set_allocated_metricname(::std::string* metricname) } metricname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metricname); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.HPOJobObjective.MetricName) } // ------------------------------------------------------------------- @@ -3361,41 +3364,41 @@ inline void SagemakerHPOJob::clear_strategy() { strategy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& SagemakerHPOJob::strategy() const { - // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) return strategy_.GetNoArena(); } inline void SagemakerHPOJob::set_strategy(const ::std::string& value) { strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) } #if LANG_CXX11 inline void SagemakerHPOJob::set_strategy(::std::string&& value) { strategy_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) } #endif inline void SagemakerHPOJob::set_strategy(const char* value) { GOOGLE_DCHECK(value != nullptr); strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) } inline void SagemakerHPOJob::set_strategy(const char* value, size_t size) { strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) } inline ::std::string* SagemakerHPOJob::mutable_strategy() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) return strategy_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* SagemakerHPOJob::release_strategy() { - // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) return strategy_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -3406,10 +3409,10 @@ inline void SagemakerHPOJob::set_allocated_strategy(::std::string* strategy) { } strategy_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), strategy); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) } -// .flyte.plugins.HPOJobObjective Objective = 2; +// .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; inline bool SagemakerHPOJob::has_objective() const { return this != internal_default_instance() && objective_ != nullptr; } @@ -3419,29 +3422,29 @@ inline void SagemakerHPOJob::clear_objective() { } objective_ = nullptr; } -inline const ::flyte::plugins::HPOJobObjective& SagemakerHPOJob::objective() const { - const ::flyte::plugins::HPOJobObjective* p = objective_; - // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerHPOJob.Objective) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::_HPOJobObjective_default_instance_); +inline const ::flyte::plugins::sagemaker::HPOJobObjective& SagemakerHPOJob::objective() const { + const ::flyte::plugins::sagemaker::HPOJobObjective* p = objective_; + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerHPOJob.Objective) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::sagemaker::_HPOJobObjective_default_instance_); } -inline ::flyte::plugins::HPOJobObjective* SagemakerHPOJob::release_objective() { - // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerHPOJob.Objective) +inline ::flyte::plugins::sagemaker::HPOJobObjective* SagemakerHPOJob::release_objective() { + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerHPOJob.Objective) - ::flyte::plugins::HPOJobObjective* temp = objective_; + ::flyte::plugins::sagemaker::HPOJobObjective* temp = objective_; objective_ = nullptr; return temp; } -inline ::flyte::plugins::HPOJobObjective* SagemakerHPOJob::mutable_objective() { +inline ::flyte::plugins::sagemaker::HPOJobObjective* SagemakerHPOJob::mutable_objective() { if (objective_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::HPOJobObjective>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::HPOJobObjective>(GetArenaNoVirtual()); objective_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerHPOJob.Objective) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerHPOJob.Objective) return objective_; } -inline void SagemakerHPOJob::set_allocated_objective(::flyte::plugins::HPOJobObjective* objective) { +inline void SagemakerHPOJob::set_allocated_objective(::flyte::plugins::sagemaker::HPOJobObjective* objective) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete objective_; @@ -3457,7 +3460,7 @@ inline void SagemakerHPOJob::set_allocated_objective(::flyte::plugins::HPOJobObj } objective_ = objective; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerHPOJob.Objective) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerHPOJob.Objective) } // int64 MaxNumberOfTrainingJobs = 3; @@ -3465,13 +3468,13 @@ inline void SagemakerHPOJob::clear_maxnumberoftrainingjobs() { maxnumberoftrainingjobs_ = PROTOBUF_LONGLONG(0); } inline ::google::protobuf::int64 SagemakerHPOJob::maxnumberoftrainingjobs() const { - // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerHPOJob.MaxNumberOfTrainingJobs) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs) return maxnumberoftrainingjobs_; } inline void SagemakerHPOJob::set_maxnumberoftrainingjobs(::google::protobuf::int64 value) { maxnumberoftrainingjobs_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.SagemakerHPOJob.MaxNumberOfTrainingJobs) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs) } // int64 MaxParallelTrainingJobs = 4; @@ -3479,16 +3482,16 @@ inline void SagemakerHPOJob::clear_maxparalleltrainingjobs() { maxparalleltrainingjobs_ = PROTOBUF_LONGLONG(0); } inline ::google::protobuf::int64 SagemakerHPOJob::maxparalleltrainingjobs() const { - // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerHPOJob.MaxParallelTrainingJobs) + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs) return maxparalleltrainingjobs_; } inline void SagemakerHPOJob::set_maxparalleltrainingjobs(::google::protobuf::int64 value) { maxparalleltrainingjobs_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.SagemakerHPOJob.MaxParallelTrainingJobs) + // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs) } -// .flyte.plugins.ParameterRanges ParameterRanges = 5; +// .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; inline bool SagemakerHPOJob::has_parameterranges() const { return this != internal_default_instance() && parameterranges_ != nullptr; } @@ -3498,29 +3501,29 @@ inline void SagemakerHPOJob::clear_parameterranges() { } parameterranges_ = nullptr; } -inline const ::flyte::plugins::ParameterRanges& SagemakerHPOJob::parameterranges() const { - const ::flyte::plugins::ParameterRanges* p = parameterranges_; - // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerHPOJob.ParameterRanges) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::_ParameterRanges_default_instance_); +inline const ::flyte::plugins::sagemaker::ParameterRanges& SagemakerHPOJob::parameterranges() const { + const ::flyte::plugins::sagemaker::ParameterRanges* p = parameterranges_; + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::sagemaker::_ParameterRanges_default_instance_); } -inline ::flyte::plugins::ParameterRanges* SagemakerHPOJob::release_parameterranges() { - // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerHPOJob.ParameterRanges) +inline ::flyte::plugins::sagemaker::ParameterRanges* SagemakerHPOJob::release_parameterranges() { + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) - ::flyte::plugins::ParameterRanges* temp = parameterranges_; + ::flyte::plugins::sagemaker::ParameterRanges* temp = parameterranges_; parameterranges_ = nullptr; return temp; } -inline ::flyte::plugins::ParameterRanges* SagemakerHPOJob::mutable_parameterranges() { +inline ::flyte::plugins::sagemaker::ParameterRanges* SagemakerHPOJob::mutable_parameterranges() { if (parameterranges_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::ParameterRanges>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::ParameterRanges>(GetArenaNoVirtual()); parameterranges_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerHPOJob.ParameterRanges) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) return parameterranges_; } -inline void SagemakerHPOJob::set_allocated_parameterranges(::flyte::plugins::ParameterRanges* parameterranges) { +inline void SagemakerHPOJob::set_allocated_parameterranges(::flyte::plugins::sagemaker::ParameterRanges* parameterranges) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete parameterranges_; @@ -3536,10 +3539,10 @@ inline void SagemakerHPOJob::set_allocated_parameterranges(::flyte::plugins::Par } parameterranges_ = parameterranges; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerHPOJob.ParameterRanges) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) } -// .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; +// .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; inline bool SagemakerHPOJob::has_trainingjob() const { return this != internal_default_instance() && trainingjob_ != nullptr; } @@ -3549,29 +3552,29 @@ inline void SagemakerHPOJob::clear_trainingjob() { } trainingjob_ = nullptr; } -inline const ::flyte::plugins::SagemakerTrainingJob& SagemakerHPOJob::trainingjob() const { - const ::flyte::plugins::SagemakerTrainingJob* p = trainingjob_; - // @@protoc_insertion_point(field_get:flyte.plugins.SagemakerHPOJob.TrainingJob) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::_SagemakerTrainingJob_default_instance_); +inline const ::flyte::plugins::sagemaker::SagemakerTrainingJob& SagemakerHPOJob::trainingjob() const { + const ::flyte::plugins::sagemaker::SagemakerTrainingJob* p = trainingjob_; + // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerHPOJob.TrainingJob) + return p != nullptr ? *p : *reinterpret_cast( + &::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_); } -inline ::flyte::plugins::SagemakerTrainingJob* SagemakerHPOJob::release_trainingjob() { - // @@protoc_insertion_point(field_release:flyte.plugins.SagemakerHPOJob.TrainingJob) +inline ::flyte::plugins::sagemaker::SagemakerTrainingJob* SagemakerHPOJob::release_trainingjob() { + // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerHPOJob.TrainingJob) - ::flyte::plugins::SagemakerTrainingJob* temp = trainingjob_; + ::flyte::plugins::sagemaker::SagemakerTrainingJob* temp = trainingjob_; trainingjob_ = nullptr; return temp; } -inline ::flyte::plugins::SagemakerTrainingJob* SagemakerHPOJob::mutable_trainingjob() { +inline ::flyte::plugins::sagemaker::SagemakerTrainingJob* SagemakerHPOJob::mutable_trainingjob() { if (trainingjob_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::SagemakerTrainingJob>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::SagemakerTrainingJob>(GetArenaNoVirtual()); trainingjob_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.SagemakerHPOJob.TrainingJob) + // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerHPOJob.TrainingJob) return trainingjob_; } -inline void SagemakerHPOJob::set_allocated_trainingjob(::flyte::plugins::SagemakerTrainingJob* trainingjob) { +inline void SagemakerHPOJob::set_allocated_trainingjob(::flyte::plugins::sagemaker::SagemakerTrainingJob* trainingjob) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete trainingjob_; @@ -3587,7 +3590,7 @@ inline void SagemakerHPOJob::set_allocated_trainingjob(::flyte::plugins::Sagemak } trainingjob_ = trainingjob; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.SagemakerHPOJob.TrainingJob) + // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerHPOJob.TrainingJob) } #ifdef __GNUC__ @@ -3618,21 +3621,22 @@ inline void SagemakerHPOJob::set_allocated_trainingjob(::flyte::plugins::Sagemak // @@protoc_insertion_point(namespace_scope) +} // namespace sagemaker } // namespace plugins } // namespace flyte namespace google { namespace protobuf { -template <> struct is_proto_enum< ::flyte::plugins::HyperparameterScalingType> : ::std::true_type {}; +template <> struct is_proto_enum< ::flyte::plugins::sagemaker::HyperparameterScalingType> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyte::plugins::HyperparameterScalingType>() { - return ::flyte::plugins::HyperparameterScalingType_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::flyte::plugins::sagemaker::HyperparameterScalingType>() { + return ::flyte::plugins::sagemaker::HyperparameterScalingType_descriptor(); } -template <> struct is_proto_enum< ::flyte::plugins::HPOJobObjectiveType> : ::std::true_type {}; +template <> struct is_proto_enum< ::flyte::plugins::sagemaker::HPOJobObjectiveType> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyte::plugins::HPOJobObjectiveType>() { - return ::flyte::plugins::HPOJobObjectiveType_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::flyte::plugins::sagemaker::HPOJobObjectiveType>() { + return ::flyte::plugins::sagemaker::HPOJobObjectiveType_descriptor(); } } // namespace protobuf @@ -3641,4 +3645,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::flyte::plugins::HPOJobObjectiv // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2eproto +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto diff --git a/gen/pb-go/flyteidl/core/compiler.pb.validate.go b/gen/pb-go/flyteidl/core/compiler.pb.validate.go index 7bb0ebff5..5fa2a39c3 100644 --- a/gen/pb-go/flyteidl/core/compiler.pb.validate.go +++ b/gen/pb-go/flyteidl/core/compiler.pb.validate.go @@ -44,9 +44,39 @@ func (m *ConnectionSet) Validate() error { return nil } - // no validation rules for Downstream + for key, val := range m.GetDownstream() { + _ = val - // no validation rules for Upstream + // no validation rules for Downstream[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConnectionSetValidationError{ + field: fmt.Sprintf("Downstream[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for key, val := range m.GetUpstream() { + _ = val + + // no validation rules for Upstream[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConnectionSetValidationError{ + field: fmt.Sprintf("Upstream[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } return nil } diff --git a/gen/pb-go/flyteidl/core/interface.pb.validate.go b/gen/pb-go/flyteidl/core/interface.pb.validate.go index cc5a21288..6e51a5e88 100644 --- a/gen/pb-go/flyteidl/core/interface.pb.validate.go +++ b/gen/pb-go/flyteidl/core/interface.pb.validate.go @@ -120,7 +120,22 @@ func (m *VariableMap) Validate() error { return nil } - // no validation rules for Variables + for key, val := range m.GetVariables() { + _ = val + + // no validation rules for Variables[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return VariableMapValidationError{ + field: fmt.Sprintf("Variables[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } return nil } @@ -365,7 +380,22 @@ func (m *ParameterMap) Validate() error { return nil } - // no validation rules for Parameters + for key, val := range m.GetParameters() { + _ = val + + // no validation rules for Parameters[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterMapValidationError{ + field: fmt.Sprintf("Parameters[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } return nil } diff --git a/gen/pb-go/flyteidl/core/literals.pb.validate.go b/gen/pb-go/flyteidl/core/literals.pb.validate.go index 212ed5d6e..8bf01c495 100644 --- a/gen/pb-go/flyteidl/core/literals.pb.validate.go +++ b/gen/pb-go/flyteidl/core/literals.pb.validate.go @@ -844,7 +844,22 @@ func (m *LiteralMap) Validate() error { return nil } - // no validation rules for Literals + for key, val := range m.GetLiterals() { + _ = val + + // no validation rules for Literals[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralMapValidationError{ + field: fmt.Sprintf("Literals[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } return nil } @@ -993,7 +1008,22 @@ func (m *BindingDataMap) Validate() error { return nil } - // no validation rules for Bindings + for key, val := range m.GetBindings() { + _ = val + + // no validation rules for Bindings[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingDataMapValidationError{ + field: fmt.Sprintf("Bindings[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } return nil } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.go similarity index 76% rename from gen/pb-go/flyteidl/plugins/sagemaker.pb.go rename to gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.go index d13b85ecb..e29f74471 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker.proto +// source: flyteidl/plugins/sagemaker/sagemaker.proto package plugins @@ -48,7 +48,7 @@ func (x HyperparameterScalingType) String() string { } func (HyperparameterScalingType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{0} + return fileDescriptor_21b5a21adfeb46ce, []int{0} } type HPOJobObjectiveType int32 @@ -73,14 +73,14 @@ func (x HPOJobObjectiveType) String() string { } func (HPOJobObjectiveType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{1} + return fileDescriptor_21b5a21adfeb46ce, []int{1} } type ContinuousParameterRange struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` MaxValue float64 `protobuf:"fixed64,2,opt,name=MaxValue,proto3" json:"MaxValue,omitempty"` MinValue float64 `protobuf:"fixed64,3,opt,name=MinValue,proto3" json:"MinValue,omitempty"` - ScalingType HyperparameterScalingType `protobuf:"varint,4,opt,name=ScalingType,proto3,enum=flyte.plugins.HyperparameterScalingType" json:"ScalingType,omitempty"` + ScalingType HyperparameterScalingType `protobuf:"varint,4,opt,name=ScalingType,proto3,enum=flyte.plugins.sagemaker.HyperparameterScalingType" json:"ScalingType,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -90,7 +90,7 @@ func (m *ContinuousParameterRange) Reset() { *m = ContinuousParameterRan func (m *ContinuousParameterRange) String() string { return proto.CompactTextString(m) } func (*ContinuousParameterRange) ProtoMessage() {} func (*ContinuousParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{0} + return fileDescriptor_21b5a21adfeb46ce, []int{0} } func (m *ContinuousParameterRange) XXX_Unmarshal(b []byte) error { @@ -143,7 +143,7 @@ type IntegerParameterRange struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` MaxValue float32 `protobuf:"fixed32,2,opt,name=MaxValue,proto3" json:"MaxValue,omitempty"` MinValue float32 `protobuf:"fixed32,3,opt,name=MinValue,proto3" json:"MinValue,omitempty"` - ScalingType HyperparameterScalingType `protobuf:"varint,4,opt,name=ScalingType,proto3,enum=flyte.plugins.HyperparameterScalingType" json:"ScalingType,omitempty"` + ScalingType HyperparameterScalingType `protobuf:"varint,4,opt,name=ScalingType,proto3,enum=flyte.plugins.sagemaker.HyperparameterScalingType" json:"ScalingType,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -153,7 +153,7 @@ func (m *IntegerParameterRange) Reset() { *m = IntegerParameterRange{} } func (m *IntegerParameterRange) String() string { return proto.CompactTextString(m) } func (*IntegerParameterRange) ProtoMessage() {} func (*IntegerParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{1} + return fileDescriptor_21b5a21adfeb46ce, []int{1} } func (m *IntegerParameterRange) XXX_Unmarshal(b []byte) error { @@ -214,7 +214,7 @@ func (m *CategoricalParameterRange) Reset() { *m = CategoricalParameterR func (m *CategoricalParameterRange) String() string { return proto.CompactTextString(m) } func (*CategoricalParameterRange) ProtoMessage() {} func (*CategoricalParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{2} + return fileDescriptor_21b5a21adfeb46ce, []int{2} } func (m *CategoricalParameterRange) XXX_Unmarshal(b []byte) error { @@ -262,7 +262,7 @@ func (m *ParameterRanges) Reset() { *m = ParameterRanges{} } func (m *ParameterRanges) String() string { return proto.CompactTextString(m) } func (*ParameterRanges) ProtoMessage() {} func (*ParameterRanges) Descriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{3} + return fileDescriptor_21b5a21adfeb46ce, []int{3} } func (m *ParameterRanges) XXX_Unmarshal(b []byte) error { @@ -318,7 +318,7 @@ func (m *AlgorithmSpecification) Reset() { *m = AlgorithmSpecification{} func (m *AlgorithmSpecification) String() string { return proto.CompactTextString(m) } func (*AlgorithmSpecification) ProtoMessage() {} func (*AlgorithmSpecification) Descriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{4} + return fileDescriptor_21b5a21adfeb46ce, []int{4} } func (m *AlgorithmSpecification) XXX_Unmarshal(b []byte) error { @@ -381,7 +381,7 @@ func (m *AlgorithmSpecification_MetricDefinition) Reset() { func (m *AlgorithmSpecification_MetricDefinition) String() string { return proto.CompactTextString(m) } func (*AlgorithmSpecification_MetricDefinition) ProtoMessage() {} func (*AlgorithmSpecification_MetricDefinition) Descriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{4, 0} + return fileDescriptor_21b5a21adfeb46ce, []int{4, 0} } func (m *AlgorithmSpecification_MetricDefinition) XXX_Unmarshal(b []byte) error { @@ -430,7 +430,7 @@ func (m *ResourceConfig) Reset() { *m = ResourceConfig{} } func (m *ResourceConfig) String() string { return proto.CompactTextString(m) } func (*ResourceConfig) ProtoMessage() {} func (*ResourceConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{5} + return fileDescriptor_21b5a21adfeb46ce, []int{5} } func (m *ResourceConfig) XXX_Unmarshal(b []byte) error { @@ -491,7 +491,7 @@ func (m *StoppingCondition) Reset() { *m = StoppingCondition{} } func (m *StoppingCondition) String() string { return proto.CompactTextString(m) } func (*StoppingCondition) ProtoMessage() {} func (*StoppingCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{6} + return fileDescriptor_21b5a21adfeb46ce, []int{6} } func (m *StoppingCondition) XXX_Unmarshal(b []byte) error { @@ -538,7 +538,7 @@ func (m *VpcConfig) Reset() { *m = VpcConfig{} } func (m *VpcConfig) String() string { return proto.CompactTextString(m) } func (*VpcConfig) ProtoMessage() {} func (*VpcConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{7} + return fileDescriptor_21b5a21adfeb46ce, []int{7} } func (m *VpcConfig) XXX_Unmarshal(b []byte) error { @@ -590,7 +590,7 @@ func (m *SagemakerTrainingJob) Reset() { *m = SagemakerTrainingJob{} } func (m *SagemakerTrainingJob) String() string { return proto.CompactTextString(m) } func (*SagemakerTrainingJob) ProtoMessage() {} func (*SagemakerTrainingJob) Descriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{8} + return fileDescriptor_21b5a21adfeb46ce, []int{8} } func (m *SagemakerTrainingJob) XXX_Unmarshal(b []byte) error { @@ -661,7 +661,7 @@ func (m *SagemakerTrainingJob) GetEnableSpotTraining() bool { } type HPOJobObjective struct { - Type HPOJobObjectiveType `protobuf:"varint,1,opt,name=Type,proto3,enum=flyte.plugins.HPOJobObjectiveType" json:"Type,omitempty"` + Type HPOJobObjectiveType `protobuf:"varint,1,opt,name=Type,proto3,enum=flyte.plugins.sagemaker.HPOJobObjectiveType" json:"Type,omitempty"` MetricName string `protobuf:"bytes,2,opt,name=MetricName,proto3" json:"MetricName,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -672,7 +672,7 @@ func (m *HPOJobObjective) Reset() { *m = HPOJobObjective{} } func (m *HPOJobObjective) String() string { return proto.CompactTextString(m) } func (*HPOJobObjective) ProtoMessage() {} func (*HPOJobObjective) Descriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{9} + return fileDescriptor_21b5a21adfeb46ce, []int{9} } func (m *HPOJobObjective) XXX_Unmarshal(b []byte) error { @@ -723,7 +723,7 @@ func (m *SagemakerHPOJob) Reset() { *m = SagemakerHPOJob{} } func (m *SagemakerHPOJob) String() string { return proto.CompactTextString(m) } func (*SagemakerHPOJob) ProtoMessage() {} func (*SagemakerHPOJob) Descriptor() ([]byte, []int) { - return fileDescriptor_f69b16f47399b37c, []int{10} + return fileDescriptor_21b5a21adfeb46ce, []int{10} } func (m *SagemakerHPOJob) XXX_Unmarshal(b []byte) error { @@ -787,85 +787,87 @@ func (m *SagemakerHPOJob) GetTrainingJob() *SagemakerTrainingJob { } func init() { - proto.RegisterEnum("flyte.plugins.HyperparameterScalingType", HyperparameterScalingType_name, HyperparameterScalingType_value) - proto.RegisterEnum("flyte.plugins.HPOJobObjectiveType", HPOJobObjectiveType_name, HPOJobObjectiveType_value) - proto.RegisterType((*ContinuousParameterRange)(nil), "flyte.plugins.ContinuousParameterRange") - proto.RegisterType((*IntegerParameterRange)(nil), "flyte.plugins.IntegerParameterRange") - proto.RegisterType((*CategoricalParameterRange)(nil), "flyte.plugins.CategoricalParameterRange") - proto.RegisterType((*ParameterRanges)(nil), "flyte.plugins.ParameterRanges") - proto.RegisterType((*AlgorithmSpecification)(nil), "flyte.plugins.AlgorithmSpecification") - proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyte.plugins.AlgorithmSpecification.MetricDefinition") - proto.RegisterType((*ResourceConfig)(nil), "flyte.plugins.ResourceConfig") - proto.RegisterType((*StoppingCondition)(nil), "flyte.plugins.StoppingCondition") - proto.RegisterType((*VpcConfig)(nil), "flyte.plugins.VpcConfig") - proto.RegisterType((*SagemakerTrainingJob)(nil), "flyte.plugins.SagemakerTrainingJob") - proto.RegisterType((*HPOJobObjective)(nil), "flyte.plugins.HPOJobObjective") - proto.RegisterType((*SagemakerHPOJob)(nil), "flyte.plugins.SagemakerHPOJob") -} - -func init() { proto.RegisterFile("flyteidl/plugins/sagemaker.proto", fileDescriptor_f69b16f47399b37c) } - -var fileDescriptor_f69b16f47399b37c = []byte{ - // 966 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4f, 0x6f, 0xe3, 0x44, - 0x14, 0x5f, 0xc7, 0xd9, 0x6e, 0xf3, 0xb2, 0xdb, 0x66, 0x67, 0x4b, 0x71, 0x2b, 0xb1, 0x8a, 0xcc, - 0x02, 0x51, 0x05, 0x09, 0x64, 0x45, 0xc5, 0x61, 0x2f, 0xd9, 0x10, 0xb5, 0xee, 0x6e, 0xda, 0x65, - 0x1c, 0x0a, 0xaa, 0xe0, 0x30, 0x71, 0x26, 0xee, 0x80, 0x3d, 0x63, 0xd9, 0x63, 0x94, 0xf0, 0x81, - 0x38, 0x70, 0x41, 0xe2, 0xc0, 0x99, 0x8f, 0xc4, 0x47, 0x40, 0x19, 0x3b, 0xde, 0xd8, 0xb1, 0xab, - 0x15, 0x12, 0xb7, 0xbc, 0x7f, 0x3f, 0xff, 0xe6, 0xbd, 0xdf, 0x9b, 0x09, 0xb4, 0xe7, 0xde, 0x52, - 0x52, 0x36, 0xf3, 0x7a, 0x81, 0x17, 0xbb, 0x8c, 0x47, 0xbd, 0x88, 0xb8, 0xd4, 0x27, 0x3f, 0xd3, - 0xb0, 0x1b, 0x84, 0x42, 0x0a, 0xf4, 0x48, 0x65, 0x74, 0xd3, 0xb0, 0xf9, 0xa7, 0x06, 0xc6, 0x50, - 0x70, 0xc9, 0x78, 0x2c, 0xe2, 0xe8, 0x0d, 0x09, 0x89, 0x4f, 0x25, 0x0d, 0x31, 0xe1, 0x2e, 0x45, - 0x08, 0xea, 0x97, 0xc4, 0xa7, 0x86, 0xd6, 0xd6, 0x3a, 0x0d, 0xac, 0x7e, 0xa3, 0x63, 0xd8, 0x1d, - 0x93, 0xc5, 0x35, 0xf1, 0x62, 0x6a, 0xd4, 0xda, 0x5a, 0x47, 0xc3, 0x99, 0xad, 0x62, 0x8c, 0x27, - 0x31, 0x3d, 0x8d, 0xa5, 0x36, 0xba, 0x80, 0xa6, 0xed, 0x10, 0x8f, 0x71, 0x77, 0xb2, 0x0c, 0xa8, - 0x51, 0x6f, 0x6b, 0x9d, 0xbd, 0x7e, 0xa7, 0x9b, 0x63, 0xd3, 0x3d, 0x5f, 0x06, 0x34, 0x0c, 0xd6, - 0x24, 0x36, 0xf2, 0xf1, 0x66, 0xb1, 0xf9, 0x87, 0x06, 0xef, 0x59, 0x5c, 0x52, 0x97, 0x86, 0xff, - 0x81, 0x71, 0xed, 0x0e, 0xc6, 0xb5, 0xff, 0x89, 0xf1, 0x19, 0x1c, 0x0d, 0x89, 0xa4, 0xae, 0x08, - 0x99, 0x43, 0xbc, 0x77, 0x20, 0x7d, 0x08, 0x3b, 0x8a, 0x45, 0x64, 0xd4, 0xda, 0x7a, 0xa7, 0x81, - 0x53, 0xcb, 0xfc, 0xbb, 0x06, 0xfb, 0xf9, 0xf2, 0x08, 0x51, 0x38, 0xaa, 0x1a, 0x61, 0x64, 0x68, - 0x6d, 0xbd, 0xd3, 0xec, 0x7f, 0x52, 0xa0, 0x5d, 0x95, 0x8f, 0xab, 0x91, 0xd0, 0x0f, 0x70, 0x58, - 0xda, 0xf4, 0x84, 0x62, 0xb3, 0xff, 0xac, 0xf0, 0x8d, 0xd2, 0x64, 0x5c, 0x81, 0x81, 0x6e, 0xe1, - 0xb8, 0xb2, 0x43, 0x91, 0xa1, 0xab, 0x2f, 0x14, 0x9b, 0x5f, 0x59, 0x80, 0xef, 0xc0, 0x32, 0xff, - 0xaa, 0xc1, 0xe1, 0xc0, 0x5b, 0x05, 0xe5, 0xad, 0x6f, 0x07, 0xd4, 0x61, 0x73, 0xe6, 0x10, 0xc9, - 0x04, 0x47, 0xcf, 0xe0, 0xd1, 0x24, 0x24, 0x8c, 0x33, 0xee, 0x5a, 0x3e, 0x71, 0xd7, 0x23, 0xc9, - 0x3b, 0xd1, 0xa7, 0xf0, 0x38, 0x73, 0xf0, 0x20, 0x96, 0x63, 0x31, 0x4b, 0x94, 0xd5, 0xc0, 0xdb, - 0x81, 0x15, 0x66, 0xf6, 0x35, 0x35, 0x66, 0x3d, 0xc1, 0xcc, 0x39, 0xd1, 0x0c, 0x1e, 0x8f, 0xa9, - 0x0c, 0x99, 0xf3, 0x35, 0x9d, 0x33, 0xce, 0x56, 0x6c, 0x22, 0xa3, 0xae, 0x4e, 0x7d, 0x5a, 0x38, - 0x75, 0x39, 0xf7, 0x6e, 0xb1, 0x1c, 0x6f, 0x03, 0x1e, 0xbf, 0x80, 0x56, 0xd1, 0x59, 0xaa, 0xbe, - 0x03, 0xb8, 0x8f, 0xa9, 0x4b, 0x17, 0xe9, 0xa9, 0x12, 0xc3, 0xfc, 0x5d, 0x83, 0x3d, 0x4c, 0x23, - 0x11, 0x87, 0x0e, 0x1d, 0x0a, 0x3e, 0x67, 0x2e, 0x32, 0xe1, 0xa1, 0xc5, 0x23, 0x49, 0xb8, 0x43, - 0xd5, 0x92, 0x24, 0x20, 0x39, 0xdf, 0xaa, 0x01, 0x6b, 0x7b, 0x28, 0x62, 0x2e, 0x15, 0xa8, 0x8e, - 0xf3, 0x4e, 0xf4, 0x31, 0xec, 0x5d, 0x0b, 0x2f, 0xf6, 0xa9, 0xcd, 0x7e, 0xa5, 0x16, 0x3f, 0x7b, - 0xa9, 0xfa, 0xa4, 0xe3, 0x82, 0xf7, 0x6d, 0xde, 0x2b, 0x3f, 0x7a, 0x45, 0x97, 0xd6, 0x4c, 0x2d, - 0x66, 0x03, 0x17, 0xbc, 0xe6, 0x12, 0x1e, 0xdb, 0x52, 0x04, 0x01, 0xe3, 0xee, 0x50, 0xf0, 0x59, - 0x72, 0xd6, 0xcf, 0xe1, 0xc9, 0x98, 0x2c, 0x70, 0xcc, 0x25, 0xf3, 0xa9, 0xc5, 0x6d, 0xea, 0x08, - 0x3e, 0x8b, 0x14, 0x6b, 0x1d, 0x97, 0x85, 0x50, 0x1f, 0x0e, 0xc6, 0x64, 0xf1, 0x1d, 0x61, 0x72, - 0x92, 0x2b, 0x49, 0xce, 0x50, 0x1a, 0x33, 0xbf, 0x81, 0xc6, 0x75, 0xe0, 0xa4, 0x1d, 0x3a, 0x81, - 0x96, 0x4d, 0x9d, 0x38, 0x64, 0x72, 0x79, 0x16, 0x8a, 0x38, 0xb0, 0x66, 0xc9, 0x4e, 0x36, 0xf0, - 0x96, 0x1f, 0x19, 0xf0, 0xc0, 0x8e, 0xa7, 0x9c, 0xca, 0xf5, 0xd6, 0xaf, 0x4d, 0xf3, 0x37, 0x1d, - 0x0e, 0xec, 0xf5, 0x4d, 0xbe, 0xd6, 0xd8, 0x85, 0x98, 0xae, 0xee, 0x09, 0x4c, 0x5d, 0x26, 0x78, - 0xda, 0xfa, 0xd4, 0x5a, 0x41, 0x61, 0xe1, 0xd1, 0x41, 0xc8, 0xd3, 0x19, 0xae, 0x4d, 0xf4, 0x63, - 0x95, 0xfa, 0x55, 0xc3, 0x9b, 0xfd, 0x8f, 0xde, 0x49, 0x6e, 0xb8, 0x6a, 0x85, 0x46, 0x45, 0x8d, - 0xa8, 0xf9, 0x34, 0xfb, 0x1f, 0x14, 0x60, 0xf3, 0x49, 0xb8, 0x28, 0xac, 0xcb, 0x92, 0xf1, 0x19, - 0xf7, 0x15, 0x52, 0xbb, 0x80, 0xb4, 0x95, 0x87, 0x4b, 0x26, 0x7f, 0xba, 0x31, 0x13, 0x63, 0x47, - 0xe1, 0x18, 0x05, 0x9c, 0x2c, 0x8e, 0x37, 0xc6, 0xd7, 0x05, 0x34, 0xe2, 0x64, 0xea, 0x51, 0x3b, - 0x10, 0x72, 0xdd, 0x78, 0xe3, 0x41, 0x5b, 0xeb, 0xec, 0xe2, 0x92, 0x88, 0xc9, 0x60, 0xff, 0xfc, - 0xcd, 0xd5, 0x85, 0x98, 0x5e, 0x4d, 0x7f, 0xa2, 0x8e, 0x64, 0xbf, 0x50, 0x74, 0x0a, 0xf5, 0x6c, - 0x37, 0xf6, 0xfa, 0x66, 0xf1, 0x01, 0xc9, 0x67, 0xab, 0xa7, 0x43, 0xe5, 0xa3, 0xa7, 0x00, 0xc9, - 0xb2, 0xaa, 0xf5, 0x4c, 0xa6, 0xb8, 0xe1, 0x31, 0xff, 0xa9, 0xc1, 0x7e, 0xa6, 0x89, 0x04, 0x66, - 0xf5, 0x9e, 0xd9, 0x32, 0x5c, 0xdd, 0x7d, 0xcb, 0x54, 0x10, 0x99, 0x8d, 0x5e, 0x40, 0x23, 0xfb, - 0x8c, 0x82, 0x6b, 0xf6, 0x9f, 0xde, 0x4d, 0x06, 0xbf, 0x2d, 0x40, 0x5f, 0xc1, 0xfb, 0x63, 0xb2, - 0xb8, 0x8c, 0xfd, 0x29, 0x0d, 0xaf, 0xe6, 0x1b, 0x12, 0x8c, 0xd2, 0x45, 0xad, 0x0a, 0xa7, 0x95, - 0xab, 0x5b, 0xd8, 0xf3, 0xa8, 0x97, 0xab, 0xac, 0x67, 0x95, 0x65, 0x61, 0x74, 0xbe, 0xf5, 0xd6, - 0xa5, 0x12, 0x28, 0xf2, 0x2e, 0x64, 0xe1, 0xad, 0x27, 0x72, 0x04, 0xcd, 0x0d, 0xe4, 0x54, 0x00, - 0x1f, 0x16, 0x85, 0x54, 0xb2, 0x60, 0x78, 0xb3, 0xee, 0xe4, 0x06, 0x8e, 0x2a, 0x1f, 0x7c, 0xb4, - 0x0b, 0xf5, 0xc1, 0xb7, 0x93, 0xab, 0xd6, 0x3d, 0x04, 0xb0, 0xf3, 0xda, 0xba, 0x1c, 0x0d, 0x70, - 0x4b, 0x43, 0xfb, 0xd0, 0x7c, 0x7d, 0x75, 0x36, 0xc0, 0xd6, 0xe4, 0x7c, 0x6c, 0x0d, 0x5b, 0x35, - 0x74, 0x08, 0x08, 0x8f, 0xae, 0x47, 0xd8, 0x1e, 0x6d, 0xfa, 0xf5, 0x93, 0x2f, 0xe0, 0x49, 0x89, - 0x16, 0xd0, 0x43, 0xd8, 0x1d, 0x5b, 0x97, 0xd6, 0xd8, 0xba, 0x19, 0xb5, 0xee, 0x29, 0x6b, 0xf0, - 0x7d, 0x62, 0x69, 0x2f, 0xbf, 0xbc, 0x79, 0xee, 0x32, 0x79, 0x1b, 0x4f, 0xbb, 0x8e, 0xf0, 0x7b, - 0xde, 0x72, 0x2e, 0x7b, 0xd9, 0xff, 0x3f, 0x97, 0xf2, 0x5e, 0x30, 0xfd, 0xcc, 0x15, 0xbd, 0xe2, - 0x5f, 0xc2, 0xe9, 0x8e, 0xfa, 0x27, 0xf8, 0xfc, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x17, - 0x58, 0x17, 0x2d, 0x0a, 0x00, 0x00, + proto.RegisterEnum("flyte.plugins.sagemaker.HyperparameterScalingType", HyperparameterScalingType_name, HyperparameterScalingType_value) + proto.RegisterEnum("flyte.plugins.sagemaker.HPOJobObjectiveType", HPOJobObjectiveType_name, HPOJobObjectiveType_value) + proto.RegisterType((*ContinuousParameterRange)(nil), "flyte.plugins.sagemaker.ContinuousParameterRange") + proto.RegisterType((*IntegerParameterRange)(nil), "flyte.plugins.sagemaker.IntegerParameterRange") + proto.RegisterType((*CategoricalParameterRange)(nil), "flyte.plugins.sagemaker.CategoricalParameterRange") + proto.RegisterType((*ParameterRanges)(nil), "flyte.plugins.sagemaker.ParameterRanges") + proto.RegisterType((*AlgorithmSpecification)(nil), "flyte.plugins.sagemaker.AlgorithmSpecification") + proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition") + proto.RegisterType((*ResourceConfig)(nil), "flyte.plugins.sagemaker.ResourceConfig") + proto.RegisterType((*StoppingCondition)(nil), "flyte.plugins.sagemaker.StoppingCondition") + proto.RegisterType((*VpcConfig)(nil), "flyte.plugins.sagemaker.VpcConfig") + proto.RegisterType((*SagemakerTrainingJob)(nil), "flyte.plugins.sagemaker.SagemakerTrainingJob") + proto.RegisterType((*HPOJobObjective)(nil), "flyte.plugins.sagemaker.HPOJobObjective") + proto.RegisterType((*SagemakerHPOJob)(nil), "flyte.plugins.sagemaker.SagemakerHPOJob") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/sagemaker/sagemaker.proto", fileDescriptor_21b5a21adfeb46ce) +} + +var fileDescriptor_21b5a21adfeb46ce = []byte{ + // 972 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x6e, 0xdb, 0x36, + 0x14, 0xae, 0x2c, 0x37, 0x8d, 0x8f, 0xbb, 0xc4, 0x61, 0xb3, 0x54, 0xc9, 0xc5, 0x60, 0x08, 0xc3, + 0x66, 0x04, 0xad, 0xbd, 0xba, 0x18, 0xb0, 0x8b, 0x5d, 0xc4, 0xf5, 0xbc, 0x44, 0x6d, 0x1d, 0x77, + 0x94, 0x97, 0x15, 0xb9, 0xa3, 0x65, 0x5a, 0xe5, 0x26, 0x91, 0x82, 0x44, 0x0d, 0xf6, 0x1e, 0x62, + 0x0f, 0xb2, 0x37, 0x18, 0xb0, 0x8b, 0x3d, 0xc1, 0x1e, 0x61, 0xcf, 0x32, 0x98, 0x92, 0x15, 0xff, + 0x88, 0x45, 0x37, 0x60, 0x77, 0x3a, 0xe7, 0xf0, 0xfb, 0x78, 0x0e, 0xcf, 0x77, 0x44, 0xc2, 0xf9, + 0x2c, 0x58, 0x48, 0xca, 0xa6, 0x41, 0x27, 0x0a, 0x52, 0x9f, 0xf1, 0xa4, 0x93, 0x10, 0x9f, 0x86, + 0xe4, 0x27, 0x1a, 0xdf, 0x7d, 0xb5, 0xa3, 0x58, 0x48, 0x81, 0x1e, 0xab, 0xb5, 0xed, 0x7c, 0x61, + 0xbb, 0x08, 0xdb, 0x7f, 0x18, 0x60, 0xf5, 0x05, 0x97, 0x8c, 0xa7, 0x22, 0x4d, 0xde, 0x90, 0x98, + 0x84, 0x54, 0xd2, 0x18, 0x13, 0xee, 0x53, 0x84, 0xa0, 0x7a, 0x4d, 0x42, 0x6a, 0x19, 0x4d, 0xa3, + 0x55, 0xc3, 0xea, 0x1b, 0x9d, 0xc1, 0xfe, 0x90, 0xcc, 0x6f, 0x48, 0x90, 0x52, 0xab, 0xd2, 0x34, + 0x5a, 0x06, 0x2e, 0x6c, 0x15, 0x63, 0x3c, 0x8b, 0x99, 0x79, 0x2c, 0xb7, 0xd1, 0x18, 0xea, 0xae, + 0x47, 0x02, 0xc6, 0xfd, 0xf1, 0x22, 0xa2, 0x56, 0xb5, 0x69, 0xb4, 0x0e, 0xba, 0xdd, 0xb6, 0x26, + 0xaf, 0xf6, 0xd5, 0x22, 0xa2, 0x71, 0xb4, 0x4a, 0x67, 0x0d, 0x89, 0xd7, 0x69, 0xec, 0xdf, 0x0d, + 0xf8, 0xd8, 0xe1, 0x92, 0xfa, 0x34, 0xfe, 0x0f, 0xb9, 0x57, 0xde, 0x93, 0x7b, 0xe5, 0x7f, 0xcf, + 0xfd, 0x12, 0x4e, 0xfb, 0x44, 0x52, 0x5f, 0xc4, 0xcc, 0x23, 0xc1, 0x07, 0xa4, 0x7f, 0x02, 0x7b, + 0x2a, 0x9f, 0xc4, 0xaa, 0x34, 0xcd, 0x56, 0x0d, 0xe7, 0x96, 0xfd, 0x77, 0x05, 0x0e, 0x37, 0xe1, + 0x09, 0x12, 0x70, 0xaa, 0x6b, 0x6b, 0x62, 0x19, 0x4d, 0xb3, 0x55, 0xef, 0x3e, 0xd3, 0x16, 0xa0, + 0x43, 0x62, 0x3d, 0x27, 0x9a, 0xc1, 0x49, 0x69, 0x23, 0xb2, 0x64, 0xeb, 0xdd, 0xb6, 0x76, 0xb7, + 0x52, 0x18, 0xd6, 0xb0, 0xa1, 0x18, 0xce, 0xb4, 0xa7, 0x96, 0x58, 0xa6, 0xda, 0x4b, 0xdf, 0x1a, + 0x2d, 0x14, 0xbf, 0x87, 0xd5, 0xfe, 0xb3, 0x02, 0x27, 0xbd, 0x60, 0x19, 0x94, 0xef, 0x42, 0x37, + 0xa2, 0x1e, 0x9b, 0x31, 0x8f, 0x48, 0x26, 0x38, 0xfa, 0x14, 0x3e, 0x1a, 0xc7, 0x84, 0x71, 0xc6, + 0x7d, 0x27, 0x24, 0xfe, 0xaa, 0x61, 0x9b, 0x4e, 0xf4, 0x04, 0x8e, 0x0a, 0x07, 0x8f, 0x52, 0x39, + 0x14, 0xd3, 0x4c, 0x81, 0x35, 0xbc, 0x1b, 0x58, 0x72, 0x16, 0xbb, 0x29, 0x11, 0x98, 0x19, 0xe7, + 0x86, 0x13, 0x71, 0x38, 0x1a, 0x52, 0x19, 0x33, 0xef, 0x1b, 0x3a, 0x63, 0x9c, 0x2d, 0xb3, 0x49, + 0xac, 0xaa, 0xaa, 0xff, 0x42, 0x5b, 0x7f, 0x79, 0x15, 0xed, 0x6d, 0x22, 0xbc, 0x4b, 0x7d, 0xf6, + 0x35, 0x34, 0xb6, 0x9d, 0xa5, 0x2a, 0x3d, 0x86, 0xfb, 0x98, 0xfa, 0x74, 0x9e, 0xd7, 0x97, 0x19, + 0xf6, 0x6f, 0x06, 0x1c, 0x60, 0x9a, 0x88, 0x34, 0xf6, 0x68, 0x5f, 0xf0, 0x19, 0xf3, 0x91, 0x0d, + 0x0f, 0x1d, 0x9e, 0x48, 0xc2, 0x3d, 0xaa, 0xc6, 0x2a, 0x23, 0xd9, 0xf0, 0x2d, 0x8f, 0x62, 0x65, + 0xf7, 0x45, 0xca, 0xa5, 0x22, 0x35, 0xf1, 0xa6, 0x13, 0x7d, 0x06, 0x07, 0x37, 0x22, 0x48, 0x43, + 0xea, 0xb2, 0x5f, 0xa8, 0xc3, 0x2f, 0x5f, 0xa8, 0x13, 0x33, 0xf1, 0x96, 0xf7, 0x6e, 0xdd, 0xab, + 0x30, 0x79, 0x45, 0x17, 0xce, 0x54, 0x8d, 0x72, 0x0d, 0x6f, 0x79, 0xed, 0x05, 0x1c, 0xb9, 0x52, + 0x44, 0x11, 0xe3, 0x7e, 0x5f, 0xf0, 0x69, 0x56, 0xeb, 0x17, 0xf0, 0x68, 0x48, 0xe6, 0x38, 0xe5, + 0x92, 0x85, 0xd4, 0xe1, 0x2e, 0xf5, 0x04, 0x9f, 0x26, 0x2a, 0x6b, 0x13, 0x97, 0x85, 0x50, 0x17, + 0x8e, 0x87, 0x64, 0xfe, 0x03, 0x61, 0x72, 0xbc, 0x01, 0xc9, 0x6a, 0x28, 0x8d, 0xd9, 0xdf, 0x41, + 0xed, 0x26, 0xf2, 0xf2, 0x13, 0x3a, 0x87, 0x86, 0x4b, 0xbd, 0x34, 0x66, 0x72, 0x71, 0x19, 0x8b, + 0x34, 0x72, 0xa6, 0xd9, 0xec, 0xd6, 0xf0, 0x8e, 0x1f, 0x59, 0xf0, 0xc0, 0x4d, 0x27, 0x9c, 0xca, + 0xd5, 0xdf, 0x61, 0x65, 0xda, 0x7f, 0x99, 0x70, 0xec, 0xae, 0x14, 0xb0, 0x52, 0xdb, 0x4b, 0x31, + 0x59, 0xfe, 0x4f, 0x30, 0xf5, 0x99, 0xe0, 0xf9, 0xd1, 0xe7, 0xd6, 0x92, 0x0a, 0x8b, 0x80, 0xf6, + 0x62, 0x9e, 0xf7, 0x70, 0x65, 0x22, 0x5f, 0x37, 0x07, 0xea, 0xc0, 0xeb, 0xdd, 0xce, 0xbf, 0x14, + 0x1e, 0xd6, 0x8d, 0xd5, 0x68, 0x5b, 0x2d, 0xaa, 0x53, 0xf5, 0xee, 0xe7, 0xda, 0x0d, 0x36, 0x97, + 0xe3, 0x6d, 0xb1, 0xbd, 0x2d, 0x69, 0xa9, 0x75, 0x5f, 0x71, 0x9e, 0x6b, 0x39, 0x77, 0x10, 0xb8, + 0x44, 0x17, 0x17, 0x6b, 0x1d, 0xb3, 0xf6, 0x14, 0xa3, 0xad, 0x65, 0x2c, 0x56, 0xe2, 0xb5, 0x36, + 0xb7, 0x01, 0x0d, 0x38, 0x99, 0x04, 0xd4, 0x8d, 0x84, 0x5c, 0x35, 0xc8, 0x7a, 0xd0, 0x34, 0x5a, + 0xfb, 0xb8, 0x24, 0x62, 0x27, 0x70, 0x78, 0xf5, 0x66, 0xf4, 0x52, 0x4c, 0x46, 0x93, 0x1f, 0xa9, + 0x27, 0xd9, 0xcf, 0x14, 0x5d, 0x40, 0xb5, 0x98, 0xa1, 0x83, 0xee, 0x13, 0xfd, 0xd5, 0xb4, 0x89, + 0x53, 0x97, 0x92, 0x42, 0xa2, 0x4f, 0x00, 0xb2, 0xf1, 0x56, 0x03, 0x9d, 0xf5, 0x7d, 0xcd, 0x63, + 0xff, 0x6a, 0xc2, 0x61, 0xa1, 0xa2, 0x8c, 0x66, 0x79, 0x67, 0xba, 0x32, 0x5e, 0xfe, 0x37, 0x17, + 0xb9, 0x84, 0x0a, 0x1b, 0x7d, 0x0b, 0xb5, 0x62, 0x1b, 0x45, 0x57, 0xef, 0xb6, 0x3e, 0x34, 0x2d, + 0x7c, 0x07, 0x45, 0x5f, 0xc1, 0xe3, 0x21, 0x99, 0x5f, 0xa7, 0xe1, 0x84, 0xc6, 0xa3, 0xd9, 0x9a, + 0x7c, 0x93, 0x7c, 0xc8, 0x75, 0xe1, 0x1c, 0xb9, 0xfc, 0x97, 0x07, 0x01, 0x0d, 0x36, 0x90, 0xd5, + 0x02, 0x59, 0x16, 0x46, 0x78, 0xe7, 0x3e, 0xcd, 0xa5, 0xa2, 0xaf, 0x60, 0x6b, 0x3d, 0xde, 0xb9, + 0x90, 0x47, 0x50, 0x5f, 0xdb, 0x23, 0x17, 0xca, 0x53, 0xbd, 0xf4, 0x4a, 0x06, 0x16, 0xaf, 0x33, + 0x9c, 0xdf, 0xc2, 0xa9, 0xf6, 0xa1, 0x81, 0xf6, 0xa1, 0xda, 0xfb, 0x7e, 0x3c, 0x6a, 0xdc, 0x43, + 0x00, 0x7b, 0xaf, 0x9d, 0xeb, 0x41, 0x0f, 0x37, 0x0c, 0x74, 0x08, 0xf5, 0xd7, 0xa3, 0xcb, 0x1e, + 0x76, 0xc6, 0x57, 0x43, 0xa7, 0xdf, 0xa8, 0xa0, 0x13, 0x40, 0x78, 0x70, 0x33, 0xc0, 0xee, 0x60, + 0xdd, 0x6f, 0x9e, 0x3f, 0x83, 0x47, 0x25, 0x4a, 0x41, 0x0f, 0x61, 0x7f, 0xe8, 0x5c, 0x3b, 0x43, + 0xe7, 0x76, 0xd0, 0xb8, 0xa7, 0xac, 0xde, 0xdb, 0xcc, 0x32, 0x5e, 0x7c, 0x79, 0xfb, 0xdc, 0x67, + 0xf2, 0x5d, 0x3a, 0x69, 0x7b, 0x22, 0xec, 0x04, 0x8b, 0x99, 0xec, 0x14, 0xef, 0x53, 0x9f, 0xf2, + 0x4e, 0x34, 0x79, 0xea, 0x8b, 0xce, 0xf6, 0x93, 0x75, 0xb2, 0xa7, 0xde, 0xa7, 0xcf, 0xff, 0x09, + 0x00, 0x00, 0xff, 0xff, 0x08, 0xb0, 0x21, 0x6b, 0xcd, 0x0a, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.validate.go similarity index 99% rename from gen/pb-go/flyteidl/plugins/sagemaker.pb.validate.go rename to gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.validate.go index c6fe858f3..3197f26b5 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.validate.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-validate. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker.proto +// source: flyteidl/plugins/sagemaker/sagemaker.proto package plugins diff --git a/gen/pb-go/flyteidl/service/openapi.go b/gen/pb-go/flyteidl/service/openapi.go index 2aa3fef84..774f1cdf5 100644 --- a/gen/pb-go/flyteidl/service/openapi.go +++ b/gen/pb-go/flyteidl/service/openapi.go @@ -1,5 +1,6 @@ -// Package service Code generated by go-bindata. (@generated) DO NOT EDIT. -// sources: +// Code generated by go-bindata. (@generated) DO NOT EDIT. + + //Package service generated by go-bindata.// sources: // ../service/admin.swagger.json package service diff --git a/gen/pb-java/flyte/plugins/Sagemaker.java b/gen/pb-java/flyte/plugins/sagemaker/Sagemaker.java similarity index 73% rename from gen/pb-java/flyte/plugins/Sagemaker.java rename to gen/pb-java/flyte/plugins/sagemaker/Sagemaker.java index a0d5e2d52..61ef112b6 100644 --- a/gen/pb-java/flyte/plugins/Sagemaker.java +++ b/gen/pb-java/flyte/plugins/sagemaker/Sagemaker.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker.proto +// source: flyteidl/plugins/sagemaker/sagemaker.proto -package flyte.plugins; +package flyte.plugins.sagemaker; public final class Sagemaker { private Sagemaker() {} @@ -15,7 +15,7 @@ public static void registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } /** - * Protobuf enum {@code flyte.plugins.HyperparameterScalingType} + * Protobuf enum {@code flyte.plugins.sagemaker.HyperparameterScalingType} */ public enum HyperparameterScalingType implements com.google.protobuf.ProtocolMessageEnum { @@ -104,7 +104,7 @@ public HyperparameterScalingType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return flyte.plugins.Sagemaker.getDescriptor().getEnumTypes().get(0); + return flyte.plugins.sagemaker.Sagemaker.getDescriptor().getEnumTypes().get(0); } private static final HyperparameterScalingType[] VALUES = values(); @@ -127,11 +127,11 @@ private HyperparameterScalingType(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:flyte.plugins.HyperparameterScalingType) + // @@protoc_insertion_point(enum_scope:flyte.plugins.sagemaker.HyperparameterScalingType) } /** - * Protobuf enum {@code flyte.plugins.HPOJobObjectiveType} + * Protobuf enum {@code flyte.plugins.sagemaker.HPOJobObjectiveType} */ public enum HPOJobObjectiveType implements com.google.protobuf.ProtocolMessageEnum { @@ -202,7 +202,7 @@ public HPOJobObjectiveType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return flyte.plugins.Sagemaker.getDescriptor().getEnumTypes().get(1); + return flyte.plugins.sagemaker.Sagemaker.getDescriptor().getEnumTypes().get(1); } private static final HPOJobObjectiveType[] VALUES = values(); @@ -225,11 +225,11 @@ private HPOJobObjectiveType(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:flyte.plugins.HPOJobObjectiveType) + // @@protoc_insertion_point(enum_scope:flyte.plugins.sagemaker.HPOJobObjectiveType) } public interface ContinuousParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.ContinuousParameterRange) com.google.protobuf.MessageOrBuilder { /** @@ -253,20 +253,20 @@ public interface ContinuousParameterRangeOrBuilder extends double getMinValue(); /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ int getScalingTypeValue(); /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - flyte.plugins.Sagemaker.HyperparameterScalingType getScalingType(); + flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType(); } /** - * Protobuf type {@code flyte.plugins.ContinuousParameterRange} + * Protobuf type {@code flyte.plugins.sagemaker.ContinuousParameterRange} */ public static final class ContinuousParameterRange extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.ContinuousParameterRange) ContinuousParameterRangeOrBuilder { private static final long serialVersionUID = 0L; // Use ContinuousParameterRange.newBuilder() to construct. @@ -345,15 +345,15 @@ private ContinuousParameterRange( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ContinuousParameterRange_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ContinuousParameterRange_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.ContinuousParameterRange.class, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder.class); + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.class, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -411,18 +411,18 @@ public double getMinValue() { public static final int SCALINGTYPE_FIELD_NUMBER = 4; private int scalingType_; /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - public flyte.plugins.Sagemaker.HyperparameterScalingType getScalingType() { + public flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") - flyte.plugins.Sagemaker.HyperparameterScalingType result = flyte.plugins.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyte.plugins.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; + flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -448,7 +448,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (minValue_ != 0D) { output.writeDouble(3, minValue_); } - if (scalingType_ != flyte.plugins.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { output.writeEnum(4, scalingType_); } unknownFields.writeTo(output); @@ -471,7 +471,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, minValue_); } - if (scalingType_ != flyte.plugins.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, scalingType_); } @@ -485,10 +485,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.Sagemaker.ContinuousParameterRange)) { + if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange)) { return super.equals(obj); } - flyte.plugins.Sagemaker.ContinuousParameterRange other = (flyte.plugins.Sagemaker.ContinuousParameterRange) obj; + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange other = (flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange) obj; if (!getName() .equals(other.getName())) return false; @@ -525,69 +525,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom(byte[] data) + public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange 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 flyte.plugins.Sagemaker.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.ContinuousParameterRange parseDelimitedFrom( + public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange 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 flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -600,7 +600,7 @@ public static flyte.plugins.Sagemaker.ContinuousParameterRange parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.Sagemaker.ContinuousParameterRange prototype) { + public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -616,26 +616,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.ContinuousParameterRange} + * Protobuf type {@code flyte.plugins.sagemaker.ContinuousParameterRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.ContinuousParameterRange) - flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder { + // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.ContinuousParameterRange) + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ContinuousParameterRange_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ContinuousParameterRange_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.ContinuousParameterRange.class, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder.class); + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.class, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder.class); } - // Construct using flyte.plugins.Sagemaker.ContinuousParameterRange.newBuilder() + // Construct using flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -667,17 +667,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ContinuousParameterRange_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_descriptor; } @java.lang.Override - public flyte.plugins.Sagemaker.ContinuousParameterRange getDefaultInstanceForType() { - return flyte.plugins.Sagemaker.ContinuousParameterRange.getDefaultInstance(); + public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange getDefaultInstanceForType() { + return flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.Sagemaker.ContinuousParameterRange build() { - flyte.plugins.Sagemaker.ContinuousParameterRange result = buildPartial(); + public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange build() { + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -685,8 +685,8 @@ public flyte.plugins.Sagemaker.ContinuousParameterRange build() { } @java.lang.Override - public flyte.plugins.Sagemaker.ContinuousParameterRange buildPartial() { - flyte.plugins.Sagemaker.ContinuousParameterRange result = new flyte.plugins.Sagemaker.ContinuousParameterRange(this); + public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange buildPartial() { + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange result = new flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange(this); result.name_ = name_; result.maxValue_ = maxValue_; result.minValue_ = minValue_; @@ -729,16 +729,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.Sagemaker.ContinuousParameterRange) { - return mergeFrom((flyte.plugins.Sagemaker.ContinuousParameterRange)other); + if (other instanceof flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange) { + return mergeFrom((flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.Sagemaker.ContinuousParameterRange other) { - if (other == flyte.plugins.Sagemaker.ContinuousParameterRange.getDefaultInstance()) return this; + public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange other) { + if (other == flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -767,11 +767,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.Sagemaker.ContinuousParameterRange parsedMessage = null; + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.Sagemaker.ContinuousParameterRange) e.getUnfinishedMessage(); + parsedMessage = (flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -904,13 +904,13 @@ public Builder clearMinValue() { private int scalingType_ = 0; /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public Builder setScalingTypeValue(int value) { scalingType_ = value; @@ -918,17 +918,17 @@ public Builder setScalingTypeValue(int value) { return this; } /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - public flyte.plugins.Sagemaker.HyperparameterScalingType getScalingType() { + public flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") - flyte.plugins.Sagemaker.HyperparameterScalingType result = flyte.plugins.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyte.plugins.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; + flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; } /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - public Builder setScalingType(flyte.plugins.Sagemaker.HyperparameterScalingType value) { + public Builder setScalingType(flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType value) { if (value == null) { throw new NullPointerException(); } @@ -938,7 +938,7 @@ public Builder setScalingType(flyte.plugins.Sagemaker.HyperparameterScalingType return this; } /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public Builder clearScalingType() { @@ -959,16 +959,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.ContinuousParameterRange) + // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.ContinuousParameterRange) } - // @@protoc_insertion_point(class_scope:flyte.plugins.ContinuousParameterRange) - private static final flyte.plugins.Sagemaker.ContinuousParameterRange DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ContinuousParameterRange) + private static final flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.ContinuousParameterRange(); + DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange(); } - public static flyte.plugins.Sagemaker.ContinuousParameterRange getDefaultInstance() { + public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -993,14 +993,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.Sagemaker.ContinuousParameterRange getDefaultInstanceForType() { + public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IntegerParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.IntegerParameterRange) com.google.protobuf.MessageOrBuilder { /** @@ -1024,20 +1024,20 @@ public interface IntegerParameterRangeOrBuilder extends float getMinValue(); /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ int getScalingTypeValue(); /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - flyte.plugins.Sagemaker.HyperparameterScalingType getScalingType(); + flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType(); } /** - * Protobuf type {@code flyte.plugins.IntegerParameterRange} + * Protobuf type {@code flyte.plugins.sagemaker.IntegerParameterRange} */ public static final class IntegerParameterRange extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.IntegerParameterRange) IntegerParameterRangeOrBuilder { private static final long serialVersionUID = 0L; // Use IntegerParameterRange.newBuilder() to construct. @@ -1116,15 +1116,15 @@ private IntegerParameterRange( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_IntegerParameterRange_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_IntegerParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_IntegerParameterRange_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.IntegerParameterRange.class, flyte.plugins.Sagemaker.IntegerParameterRange.Builder.class); + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.class, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -1182,18 +1182,18 @@ public float getMinValue() { public static final int SCALINGTYPE_FIELD_NUMBER = 4; private int scalingType_; /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - public flyte.plugins.Sagemaker.HyperparameterScalingType getScalingType() { + public flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") - flyte.plugins.Sagemaker.HyperparameterScalingType result = flyte.plugins.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyte.plugins.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; + flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -1219,7 +1219,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (minValue_ != 0F) { output.writeFloat(3, minValue_); } - if (scalingType_ != flyte.plugins.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { output.writeEnum(4, scalingType_); } unknownFields.writeTo(output); @@ -1242,7 +1242,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeFloatSize(3, minValue_); } - if (scalingType_ != flyte.plugins.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, scalingType_); } @@ -1256,10 +1256,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.Sagemaker.IntegerParameterRange)) { + if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange)) { return super.equals(obj); } - flyte.plugins.Sagemaker.IntegerParameterRange other = (flyte.plugins.Sagemaker.IntegerParameterRange) obj; + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange other = (flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange) obj; if (!getName() .equals(other.getName())) return false; @@ -1296,69 +1296,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom(byte[] data) + public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange 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 flyte.plugins.Sagemaker.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.IntegerParameterRange parseDelimitedFrom( + public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange 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 flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1371,7 +1371,7 @@ public static flyte.plugins.Sagemaker.IntegerParameterRange parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.Sagemaker.IntegerParameterRange prototype) { + public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1387,26 +1387,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.IntegerParameterRange} + * Protobuf type {@code flyte.plugins.sagemaker.IntegerParameterRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.IntegerParameterRange) - flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder { + // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.IntegerParameterRange) + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_IntegerParameterRange_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_IntegerParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_IntegerParameterRange_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.IntegerParameterRange.class, flyte.plugins.Sagemaker.IntegerParameterRange.Builder.class); + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.class, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder.class); } - // Construct using flyte.plugins.Sagemaker.IntegerParameterRange.newBuilder() + // Construct using flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1438,17 +1438,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_IntegerParameterRange_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_IntegerParameterRange_descriptor; } @java.lang.Override - public flyte.plugins.Sagemaker.IntegerParameterRange getDefaultInstanceForType() { - return flyte.plugins.Sagemaker.IntegerParameterRange.getDefaultInstance(); + public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange getDefaultInstanceForType() { + return flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.Sagemaker.IntegerParameterRange build() { - flyte.plugins.Sagemaker.IntegerParameterRange result = buildPartial(); + public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange build() { + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1456,8 +1456,8 @@ public flyte.plugins.Sagemaker.IntegerParameterRange build() { } @java.lang.Override - public flyte.plugins.Sagemaker.IntegerParameterRange buildPartial() { - flyte.plugins.Sagemaker.IntegerParameterRange result = new flyte.plugins.Sagemaker.IntegerParameterRange(this); + public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange buildPartial() { + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange result = new flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange(this); result.name_ = name_; result.maxValue_ = maxValue_; result.minValue_ = minValue_; @@ -1500,16 +1500,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.Sagemaker.IntegerParameterRange) { - return mergeFrom((flyte.plugins.Sagemaker.IntegerParameterRange)other); + if (other instanceof flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange) { + return mergeFrom((flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.Sagemaker.IntegerParameterRange other) { - if (other == flyte.plugins.Sagemaker.IntegerParameterRange.getDefaultInstance()) return this; + public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange other) { + if (other == flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1538,11 +1538,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.Sagemaker.IntegerParameterRange parsedMessage = null; + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.Sagemaker.IntegerParameterRange) e.getUnfinishedMessage(); + parsedMessage = (flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1675,13 +1675,13 @@ public Builder clearMinValue() { private int scalingType_ = 0; /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public Builder setScalingTypeValue(int value) { scalingType_ = value; @@ -1689,17 +1689,17 @@ public Builder setScalingTypeValue(int value) { return this; } /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - public flyte.plugins.Sagemaker.HyperparameterScalingType getScalingType() { + public flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") - flyte.plugins.Sagemaker.HyperparameterScalingType result = flyte.plugins.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyte.plugins.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; + flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; } /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - public Builder setScalingType(flyte.plugins.Sagemaker.HyperparameterScalingType value) { + public Builder setScalingType(flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType value) { if (value == null) { throw new NullPointerException(); } @@ -1709,7 +1709,7 @@ public Builder setScalingType(flyte.plugins.Sagemaker.HyperparameterScalingType return this; } /** - * .flyte.plugins.HyperparameterScalingType ScalingType = 4; + * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public Builder clearScalingType() { @@ -1730,16 +1730,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.IntegerParameterRange) + // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.IntegerParameterRange) } - // @@protoc_insertion_point(class_scope:flyte.plugins.IntegerParameterRange) - private static final flyte.plugins.Sagemaker.IntegerParameterRange DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.IntegerParameterRange) + private static final flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.IntegerParameterRange(); + DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange(); } - public static flyte.plugins.Sagemaker.IntegerParameterRange getDefaultInstance() { + public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1764,14 +1764,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.Sagemaker.IntegerParameterRange getDefaultInstanceForType() { + public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CategoricalParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.CategoricalParameterRange) com.google.protobuf.MessageOrBuilder { /** @@ -1804,11 +1804,11 @@ public interface CategoricalParameterRangeOrBuilder extends getValuesBytes(int index); } /** - * Protobuf type {@code flyte.plugins.CategoricalParameterRange} + * Protobuf type {@code flyte.plugins.sagemaker.CategoricalParameterRange} */ public static final class CategoricalParameterRange extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.CategoricalParameterRange) CategoricalParameterRangeOrBuilder { private static final long serialVersionUID = 0L; // Use CategoricalParameterRange.newBuilder() to construct. @@ -1883,15 +1883,15 @@ private CategoricalParameterRange( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_CategoricalParameterRange_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_CategoricalParameterRange_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.CategoricalParameterRange.class, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder.class); + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.class, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder.class); } private int bitField0_; @@ -2008,10 +2008,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.Sagemaker.CategoricalParameterRange)) { + if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange)) { return super.equals(obj); } - flyte.plugins.Sagemaker.CategoricalParameterRange other = (flyte.plugins.Sagemaker.CategoricalParameterRange) obj; + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange other = (flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange) obj; if (!getName() .equals(other.getName())) return false; @@ -2039,69 +2039,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom(byte[] data) + public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange 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 flyte.plugins.Sagemaker.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.CategoricalParameterRange parseDelimitedFrom( + public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange 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 flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2114,7 +2114,7 @@ public static flyte.plugins.Sagemaker.CategoricalParameterRange parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.Sagemaker.CategoricalParameterRange prototype) { + public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2130,26 +2130,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.CategoricalParameterRange} + * Protobuf type {@code flyte.plugins.sagemaker.CategoricalParameterRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.CategoricalParameterRange) - flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder { + // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.CategoricalParameterRange) + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_CategoricalParameterRange_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_CategoricalParameterRange_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.CategoricalParameterRange.class, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder.class); + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.class, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder.class); } - // Construct using flyte.plugins.Sagemaker.CategoricalParameterRange.newBuilder() + // Construct using flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2177,17 +2177,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_CategoricalParameterRange_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_descriptor; } @java.lang.Override - public flyte.plugins.Sagemaker.CategoricalParameterRange getDefaultInstanceForType() { - return flyte.plugins.Sagemaker.CategoricalParameterRange.getDefaultInstance(); + public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange getDefaultInstanceForType() { + return flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.Sagemaker.CategoricalParameterRange build() { - flyte.plugins.Sagemaker.CategoricalParameterRange result = buildPartial(); + public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange build() { + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2195,8 +2195,8 @@ public flyte.plugins.Sagemaker.CategoricalParameterRange build() { } @java.lang.Override - public flyte.plugins.Sagemaker.CategoricalParameterRange buildPartial() { - flyte.plugins.Sagemaker.CategoricalParameterRange result = new flyte.plugins.Sagemaker.CategoricalParameterRange(this); + public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange buildPartial() { + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange result = new flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; @@ -2244,16 +2244,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.Sagemaker.CategoricalParameterRange) { - return mergeFrom((flyte.plugins.Sagemaker.CategoricalParameterRange)other); + if (other instanceof flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange) { + return mergeFrom((flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.Sagemaker.CategoricalParameterRange other) { - if (other == flyte.plugins.Sagemaker.CategoricalParameterRange.getDefaultInstance()) return this; + public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange other) { + if (other == flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -2283,11 +2283,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.Sagemaker.CategoricalParameterRange parsedMessage = null; + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.Sagemaker.CategoricalParameterRange) e.getUnfinishedMessage(); + parsedMessage = (flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2473,16 +2473,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.CategoricalParameterRange) + // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.CategoricalParameterRange) } - // @@protoc_insertion_point(class_scope:flyte.plugins.CategoricalParameterRange) - private static final flyte.plugins.Sagemaker.CategoricalParameterRange DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.CategoricalParameterRange) + private static final flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.CategoricalParameterRange(); + DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange(); } - public static flyte.plugins.Sagemaker.CategoricalParameterRange getDefaultInstance() { + public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2507,94 +2507,94 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public flyte.plugins.Sagemaker.CategoricalParameterRange getDefaultInstanceForType() { + public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ParameterRangesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.ParameterRanges) com.google.protobuf.MessageOrBuilder { /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - java.util.List + java.util.List getContinuousParameterRangesList(); /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - flyte.plugins.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index); + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index); /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ int getContinuousParameterRangesCount(); /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - java.util.List + java.util.List getContinuousParameterRangesOrBuilderList(); /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( int index); /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - java.util.List + java.util.List getIntegerParameterRangesList(); /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - flyte.plugins.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index); + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index); /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ int getIntegerParameterRangesCount(); /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - java.util.List + java.util.List getIntegerParameterRangesOrBuilderList(); /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( int index); /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - java.util.List + java.util.List getCategoricalParameterRangesList(); /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - flyte.plugins.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index); + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index); /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ int getCategoricalParameterRangesCount(); /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - java.util.List + java.util.List getCategoricalParameterRangesOrBuilderList(); /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( int index); } /** - * Protobuf type {@code flyte.plugins.ParameterRanges} + * Protobuf type {@code flyte.plugins.sagemaker.ParameterRanges} */ public static final class ParameterRanges extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.ParameterRanges) ParameterRangesOrBuilder { private static final long serialVersionUID = 0L; // Use ParameterRanges.newBuilder() to construct. @@ -2633,29 +2633,29 @@ private ParameterRanges( break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { - continuousParameterRanges_ = new java.util.ArrayList(); + continuousParameterRanges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } continuousParameterRanges_.add( - input.readMessage(flyte.plugins.Sagemaker.ContinuousParameterRange.parser(), extensionRegistry)); + input.readMessage(flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { - integerParameterRanges_ = new java.util.ArrayList(); + integerParameterRanges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } integerParameterRanges_.add( - input.readMessage(flyte.plugins.Sagemaker.IntegerParameterRange.parser(), extensionRegistry)); + input.readMessage(flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { - categoricalParameterRanges_ = new java.util.ArrayList(); + categoricalParameterRanges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } categoricalParameterRanges_.add( - input.readMessage(flyte.plugins.Sagemaker.CategoricalParameterRange.parser(), extensionRegistry)); + input.readMessage(flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.parser(), extensionRegistry)); break; } default: { @@ -2688,118 +2688,118 @@ private ParameterRanges( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ParameterRanges_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ParameterRanges_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ParameterRanges_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ParameterRanges_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.ParameterRanges.class, flyte.plugins.Sagemaker.ParameterRanges.Builder.class); + flyte.plugins.sagemaker.Sagemaker.ParameterRanges.class, flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder.class); } public static final int CONTINUOUSPARAMETERRANGES_FIELD_NUMBER = 1; - private java.util.List continuousParameterRanges_; + private java.util.List continuousParameterRanges_; /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public java.util.List getContinuousParameterRangesList() { + public java.util.List getContinuousParameterRangesList() { return continuousParameterRanges_; } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public java.util.List + public java.util.List getContinuousParameterRangesOrBuilderList() { return continuousParameterRanges_; } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public int getContinuousParameterRangesCount() { return continuousParameterRanges_.size(); } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index) { + public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index) { return continuousParameterRanges_.get(index); } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( + public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( int index) { return continuousParameterRanges_.get(index); } public static final int INTEGERPARAMETERRANGES_FIELD_NUMBER = 2; - private java.util.List integerParameterRanges_; + private java.util.List integerParameterRanges_; /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public java.util.List getIntegerParameterRangesList() { + public java.util.List getIntegerParameterRangesList() { return integerParameterRanges_; } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public java.util.List + public java.util.List getIntegerParameterRangesOrBuilderList() { return integerParameterRanges_; } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public int getIntegerParameterRangesCount() { return integerParameterRanges_.size(); } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index) { + public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index) { return integerParameterRanges_.get(index); } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( + public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( int index) { return integerParameterRanges_.get(index); } public static final int CATEGORICALPARAMETERRANGES_FIELD_NUMBER = 3; - private java.util.List categoricalParameterRanges_; + private java.util.List categoricalParameterRanges_; /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public java.util.List getCategoricalParameterRangesList() { + public java.util.List getCategoricalParameterRangesList() { return categoricalParameterRanges_; } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public java.util.List + public java.util.List getCategoricalParameterRangesOrBuilderList() { return categoricalParameterRanges_; } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public int getCategoricalParameterRangesCount() { return categoricalParameterRanges_.size(); } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index) { + public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index) { return categoricalParameterRanges_.get(index); } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( + public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( int index) { return categoricalParameterRanges_.get(index); } @@ -2858,10 +2858,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.Sagemaker.ParameterRanges)) { + if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.ParameterRanges)) { return super.equals(obj); } - flyte.plugins.Sagemaker.ParameterRanges other = (flyte.plugins.Sagemaker.ParameterRanges) obj; + flyte.plugins.sagemaker.Sagemaker.ParameterRanges other = (flyte.plugins.sagemaker.Sagemaker.ParameterRanges) obj; if (!getContinuousParameterRangesList() .equals(other.getContinuousParameterRangesList())) return false; @@ -2897,69 +2897,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.Sagemaker.ParameterRanges parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.ParameterRanges parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.ParameterRanges parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.ParameterRanges parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.ParameterRanges parseFrom(byte[] data) + public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.ParameterRanges parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.ParameterRanges parseFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.ParameterRanges parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges 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 flyte.plugins.Sagemaker.ParameterRanges parseDelimitedFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.ParameterRanges parseDelimitedFrom( + public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges 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 flyte.plugins.Sagemaker.ParameterRanges parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.ParameterRanges parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2972,7 +2972,7 @@ public static flyte.plugins.Sagemaker.ParameterRanges parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.Sagemaker.ParameterRanges prototype) { + public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.ParameterRanges prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2988,26 +2988,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.ParameterRanges} + * Protobuf type {@code flyte.plugins.sagemaker.ParameterRanges} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.ParameterRanges) - flyte.plugins.Sagemaker.ParameterRangesOrBuilder { + // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.ParameterRanges) + flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ParameterRanges_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ParameterRanges_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ParameterRanges_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ParameterRanges_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.ParameterRanges.class, flyte.plugins.Sagemaker.ParameterRanges.Builder.class); + flyte.plugins.sagemaker.Sagemaker.ParameterRanges.class, flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder.class); } - // Construct using flyte.plugins.Sagemaker.ParameterRanges.newBuilder() + // Construct using flyte.plugins.sagemaker.Sagemaker.ParameterRanges.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3052,17 +3052,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ParameterRanges_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ParameterRanges_descriptor; } @java.lang.Override - public flyte.plugins.Sagemaker.ParameterRanges getDefaultInstanceForType() { - return flyte.plugins.Sagemaker.ParameterRanges.getDefaultInstance(); + public flyte.plugins.sagemaker.Sagemaker.ParameterRanges getDefaultInstanceForType() { + return flyte.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.Sagemaker.ParameterRanges build() { - flyte.plugins.Sagemaker.ParameterRanges result = buildPartial(); + public flyte.plugins.sagemaker.Sagemaker.ParameterRanges build() { + flyte.plugins.sagemaker.Sagemaker.ParameterRanges result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3070,8 +3070,8 @@ public flyte.plugins.Sagemaker.ParameterRanges build() { } @java.lang.Override - public flyte.plugins.Sagemaker.ParameterRanges buildPartial() { - flyte.plugins.Sagemaker.ParameterRanges result = new flyte.plugins.Sagemaker.ParameterRanges(this); + public flyte.plugins.sagemaker.Sagemaker.ParameterRanges buildPartial() { + flyte.plugins.sagemaker.Sagemaker.ParameterRanges result = new flyte.plugins.sagemaker.Sagemaker.ParameterRanges(this); int from_bitField0_ = bitField0_; if (continuousParameterRangesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -3138,16 +3138,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.Sagemaker.ParameterRanges) { - return mergeFrom((flyte.plugins.Sagemaker.ParameterRanges)other); + if (other instanceof flyte.plugins.sagemaker.Sagemaker.ParameterRanges) { + return mergeFrom((flyte.plugins.sagemaker.Sagemaker.ParameterRanges)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.Sagemaker.ParameterRanges other) { - if (other == flyte.plugins.Sagemaker.ParameterRanges.getDefaultInstance()) return this; + public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.ParameterRanges other) { + if (other == flyte.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance()) return this; if (continuousParameterRangesBuilder_ == null) { if (!other.continuousParameterRanges_.isEmpty()) { if (continuousParameterRanges_.isEmpty()) { @@ -3241,11 +3241,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.Sagemaker.ParameterRanges parsedMessage = null; + flyte.plugins.sagemaker.Sagemaker.ParameterRanges parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.Sagemaker.ParameterRanges) e.getUnfinishedMessage(); + parsedMessage = (flyte.plugins.sagemaker.Sagemaker.ParameterRanges) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3256,22 +3256,22 @@ public Builder mergeFrom( } private int bitField0_; - private java.util.List continuousParameterRanges_ = + private java.util.List continuousParameterRanges_ = java.util.Collections.emptyList(); private void ensureContinuousParameterRangesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - continuousParameterRanges_ = new java.util.ArrayList(continuousParameterRanges_); + continuousParameterRanges_ = new java.util.ArrayList(continuousParameterRanges_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.Sagemaker.ContinuousParameterRange, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder, flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder> continuousParameterRangesBuilder_; + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder> continuousParameterRangesBuilder_; /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public java.util.List getContinuousParameterRangesList() { + public java.util.List getContinuousParameterRangesList() { if (continuousParameterRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(continuousParameterRanges_); } else { @@ -3279,7 +3279,7 @@ public java.util.List getConti } } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public int getContinuousParameterRangesCount() { if (continuousParameterRangesBuilder_ == null) { @@ -3289,9 +3289,9 @@ public int getContinuousParameterRangesCount() { } } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index) { + public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index) { if (continuousParameterRangesBuilder_ == null) { return continuousParameterRanges_.get(index); } else { @@ -3299,10 +3299,10 @@ public flyte.plugins.Sagemaker.ContinuousParameterRange getContinuousParameterRa } } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder setContinuousParameterRanges( - int index, flyte.plugins.Sagemaker.ContinuousParameterRange value) { + int index, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange value) { if (continuousParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3316,10 +3316,10 @@ public Builder setContinuousParameterRanges( return this; } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder setContinuousParameterRanges( - int index, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder builderForValue) { + int index, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder builderForValue) { if (continuousParameterRangesBuilder_ == null) { ensureContinuousParameterRangesIsMutable(); continuousParameterRanges_.set(index, builderForValue.build()); @@ -3330,9 +3330,9 @@ public Builder setContinuousParameterRanges( return this; } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public Builder addContinuousParameterRanges(flyte.plugins.Sagemaker.ContinuousParameterRange value) { + public Builder addContinuousParameterRanges(flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange value) { if (continuousParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3346,10 +3346,10 @@ public Builder addContinuousParameterRanges(flyte.plugins.Sagemaker.ContinuousPa return this; } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder addContinuousParameterRanges( - int index, flyte.plugins.Sagemaker.ContinuousParameterRange value) { + int index, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange value) { if (continuousParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3363,10 +3363,10 @@ public Builder addContinuousParameterRanges( return this; } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder addContinuousParameterRanges( - flyte.plugins.Sagemaker.ContinuousParameterRange.Builder builderForValue) { + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder builderForValue) { if (continuousParameterRangesBuilder_ == null) { ensureContinuousParameterRangesIsMutable(); continuousParameterRanges_.add(builderForValue.build()); @@ -3377,10 +3377,10 @@ public Builder addContinuousParameterRanges( return this; } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder addContinuousParameterRanges( - int index, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder builderForValue) { + int index, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder builderForValue) { if (continuousParameterRangesBuilder_ == null) { ensureContinuousParameterRangesIsMutable(); continuousParameterRanges_.add(index, builderForValue.build()); @@ -3391,10 +3391,10 @@ public Builder addContinuousParameterRanges( return this; } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder addAllContinuousParameterRanges( - java.lang.Iterable values) { + java.lang.Iterable values) { if (continuousParameterRangesBuilder_ == null) { ensureContinuousParameterRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -3406,7 +3406,7 @@ public Builder addAllContinuousParameterRanges( return this; } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder clearContinuousParameterRanges() { if (continuousParameterRangesBuilder_ == null) { @@ -3419,7 +3419,7 @@ public Builder clearContinuousParameterRanges() { return this; } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder removeContinuousParameterRanges(int index) { if (continuousParameterRangesBuilder_ == null) { @@ -3432,16 +3432,16 @@ public Builder removeContinuousParameterRanges(int index) { return this; } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.Sagemaker.ContinuousParameterRange.Builder getContinuousParameterRangesBuilder( + public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder getContinuousParameterRangesBuilder( int index) { return getContinuousParameterRangesFieldBuilder().getBuilder(index); } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( + public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( int index) { if (continuousParameterRangesBuilder_ == null) { return continuousParameterRanges_.get(index); } else { @@ -3449,9 +3449,9 @@ public flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousPa } } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public java.util.List + public java.util.List getContinuousParameterRangesOrBuilderList() { if (continuousParameterRangesBuilder_ != null) { return continuousParameterRangesBuilder_.getMessageOrBuilderList(); @@ -3460,33 +3460,33 @@ public flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousPa } } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.Sagemaker.ContinuousParameterRange.Builder addContinuousParameterRangesBuilder() { + public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder addContinuousParameterRangesBuilder() { return getContinuousParameterRangesFieldBuilder().addBuilder( - flyte.plugins.Sagemaker.ContinuousParameterRange.getDefaultInstance()); + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance()); } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.Sagemaker.ContinuousParameterRange.Builder addContinuousParameterRangesBuilder( + public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder addContinuousParameterRangesBuilder( int index) { return getContinuousParameterRangesFieldBuilder().addBuilder( - index, flyte.plugins.Sagemaker.ContinuousParameterRange.getDefaultInstance()); + index, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance()); } /** - * repeated .flyte.plugins.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public java.util.List + public java.util.List getContinuousParameterRangesBuilderList() { return getContinuousParameterRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.Sagemaker.ContinuousParameterRange, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder, flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder> + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder> getContinuousParameterRangesFieldBuilder() { if (continuousParameterRangesBuilder_ == null) { continuousParameterRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.Sagemaker.ContinuousParameterRange, flyte.plugins.Sagemaker.ContinuousParameterRange.Builder, flyte.plugins.Sagemaker.ContinuousParameterRangeOrBuilder>( + flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder>( continuousParameterRanges_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3496,22 +3496,22 @@ public flyte.plugins.Sagemaker.ContinuousParameterRange.Builder addContinuousPar return continuousParameterRangesBuilder_; } - private java.util.List integerParameterRanges_ = + private java.util.List integerParameterRanges_ = java.util.Collections.emptyList(); private void ensureIntegerParameterRangesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - integerParameterRanges_ = new java.util.ArrayList(integerParameterRanges_); + integerParameterRanges_ = new java.util.ArrayList(integerParameterRanges_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.Sagemaker.IntegerParameterRange, flyte.plugins.Sagemaker.IntegerParameterRange.Builder, flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder> integerParameterRangesBuilder_; + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder> integerParameterRangesBuilder_; /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public java.util.List getIntegerParameterRangesList() { + public java.util.List getIntegerParameterRangesList() { if (integerParameterRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(integerParameterRanges_); } else { @@ -3519,7 +3519,7 @@ public java.util.List getIntegerP } } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public int getIntegerParameterRangesCount() { if (integerParameterRangesBuilder_ == null) { @@ -3529,9 +3529,9 @@ public int getIntegerParameterRangesCount() { } } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index) { + public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index) { if (integerParameterRangesBuilder_ == null) { return integerParameterRanges_.get(index); } else { @@ -3539,10 +3539,10 @@ public flyte.plugins.Sagemaker.IntegerParameterRange getIntegerParameterRanges(i } } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder setIntegerParameterRanges( - int index, flyte.plugins.Sagemaker.IntegerParameterRange value) { + int index, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange value) { if (integerParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3556,10 +3556,10 @@ public Builder setIntegerParameterRanges( return this; } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder setIntegerParameterRanges( - int index, flyte.plugins.Sagemaker.IntegerParameterRange.Builder builderForValue) { + int index, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder builderForValue) { if (integerParameterRangesBuilder_ == null) { ensureIntegerParameterRangesIsMutable(); integerParameterRanges_.set(index, builderForValue.build()); @@ -3570,9 +3570,9 @@ public Builder setIntegerParameterRanges( return this; } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public Builder addIntegerParameterRanges(flyte.plugins.Sagemaker.IntegerParameterRange value) { + public Builder addIntegerParameterRanges(flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange value) { if (integerParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3586,10 +3586,10 @@ public Builder addIntegerParameterRanges(flyte.plugins.Sagemaker.IntegerParamete return this; } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder addIntegerParameterRanges( - int index, flyte.plugins.Sagemaker.IntegerParameterRange value) { + int index, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange value) { if (integerParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3603,10 +3603,10 @@ public Builder addIntegerParameterRanges( return this; } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder addIntegerParameterRanges( - flyte.plugins.Sagemaker.IntegerParameterRange.Builder builderForValue) { + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder builderForValue) { if (integerParameterRangesBuilder_ == null) { ensureIntegerParameterRangesIsMutable(); integerParameterRanges_.add(builderForValue.build()); @@ -3617,10 +3617,10 @@ public Builder addIntegerParameterRanges( return this; } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder addIntegerParameterRanges( - int index, flyte.plugins.Sagemaker.IntegerParameterRange.Builder builderForValue) { + int index, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder builderForValue) { if (integerParameterRangesBuilder_ == null) { ensureIntegerParameterRangesIsMutable(); integerParameterRanges_.add(index, builderForValue.build()); @@ -3631,10 +3631,10 @@ public Builder addIntegerParameterRanges( return this; } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder addAllIntegerParameterRanges( - java.lang.Iterable values) { + java.lang.Iterable values) { if (integerParameterRangesBuilder_ == null) { ensureIntegerParameterRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -3646,7 +3646,7 @@ public Builder addAllIntegerParameterRanges( return this; } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder clearIntegerParameterRanges() { if (integerParameterRangesBuilder_ == null) { @@ -3659,7 +3659,7 @@ public Builder clearIntegerParameterRanges() { return this; } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder removeIntegerParameterRanges(int index) { if (integerParameterRangesBuilder_ == null) { @@ -3672,16 +3672,16 @@ public Builder removeIntegerParameterRanges(int index) { return this; } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.Sagemaker.IntegerParameterRange.Builder getIntegerParameterRangesBuilder( + public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder getIntegerParameterRangesBuilder( int index) { return getIntegerParameterRangesFieldBuilder().getBuilder(index); } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( + public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( int index) { if (integerParameterRangesBuilder_ == null) { return integerParameterRanges_.get(index); } else { @@ -3689,9 +3689,9 @@ public flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParamete } } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public java.util.List + public java.util.List getIntegerParameterRangesOrBuilderList() { if (integerParameterRangesBuilder_ != null) { return integerParameterRangesBuilder_.getMessageOrBuilderList(); @@ -3700,33 +3700,33 @@ public flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParamete } } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.Sagemaker.IntegerParameterRange.Builder addIntegerParameterRangesBuilder() { + public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder addIntegerParameterRangesBuilder() { return getIntegerParameterRangesFieldBuilder().addBuilder( - flyte.plugins.Sagemaker.IntegerParameterRange.getDefaultInstance()); + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance()); } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.Sagemaker.IntegerParameterRange.Builder addIntegerParameterRangesBuilder( + public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder addIntegerParameterRangesBuilder( int index) { return getIntegerParameterRangesFieldBuilder().addBuilder( - index, flyte.plugins.Sagemaker.IntegerParameterRange.getDefaultInstance()); + index, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance()); } /** - * repeated .flyte.plugins.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public java.util.List + public java.util.List getIntegerParameterRangesBuilderList() { return getIntegerParameterRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.Sagemaker.IntegerParameterRange, flyte.plugins.Sagemaker.IntegerParameterRange.Builder, flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder> + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder> getIntegerParameterRangesFieldBuilder() { if (integerParameterRangesBuilder_ == null) { integerParameterRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.Sagemaker.IntegerParameterRange, flyte.plugins.Sagemaker.IntegerParameterRange.Builder, flyte.plugins.Sagemaker.IntegerParameterRangeOrBuilder>( + flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder>( integerParameterRanges_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3736,22 +3736,22 @@ public flyte.plugins.Sagemaker.IntegerParameterRange.Builder addIntegerParameter return integerParameterRangesBuilder_; } - private java.util.List categoricalParameterRanges_ = + private java.util.List categoricalParameterRanges_ = java.util.Collections.emptyList(); private void ensureCategoricalParameterRangesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - categoricalParameterRanges_ = new java.util.ArrayList(categoricalParameterRanges_); + categoricalParameterRanges_ = new java.util.ArrayList(categoricalParameterRanges_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.Sagemaker.CategoricalParameterRange, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder, flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder> categoricalParameterRangesBuilder_; + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder> categoricalParameterRangesBuilder_; /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public java.util.List getCategoricalParameterRangesList() { + public java.util.List getCategoricalParameterRangesList() { if (categoricalParameterRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(categoricalParameterRanges_); } else { @@ -3759,7 +3759,7 @@ public java.util.List getCate } } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public int getCategoricalParameterRangesCount() { if (categoricalParameterRangesBuilder_ == null) { @@ -3769,9 +3769,9 @@ public int getCategoricalParameterRangesCount() { } } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index) { + public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index) { if (categoricalParameterRangesBuilder_ == null) { return categoricalParameterRanges_.get(index); } else { @@ -3779,10 +3779,10 @@ public flyte.plugins.Sagemaker.CategoricalParameterRange getCategoricalParameter } } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder setCategoricalParameterRanges( - int index, flyte.plugins.Sagemaker.CategoricalParameterRange value) { + int index, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange value) { if (categoricalParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3796,10 +3796,10 @@ public Builder setCategoricalParameterRanges( return this; } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder setCategoricalParameterRanges( - int index, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder builderForValue) { + int index, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder builderForValue) { if (categoricalParameterRangesBuilder_ == null) { ensureCategoricalParameterRangesIsMutable(); categoricalParameterRanges_.set(index, builderForValue.build()); @@ -3810,9 +3810,9 @@ public Builder setCategoricalParameterRanges( return this; } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public Builder addCategoricalParameterRanges(flyte.plugins.Sagemaker.CategoricalParameterRange value) { + public Builder addCategoricalParameterRanges(flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange value) { if (categoricalParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3826,10 +3826,10 @@ public Builder addCategoricalParameterRanges(flyte.plugins.Sagemaker.Categorical return this; } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder addCategoricalParameterRanges( - int index, flyte.plugins.Sagemaker.CategoricalParameterRange value) { + int index, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange value) { if (categoricalParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3843,10 +3843,10 @@ public Builder addCategoricalParameterRanges( return this; } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder addCategoricalParameterRanges( - flyte.plugins.Sagemaker.CategoricalParameterRange.Builder builderForValue) { + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder builderForValue) { if (categoricalParameterRangesBuilder_ == null) { ensureCategoricalParameterRangesIsMutable(); categoricalParameterRanges_.add(builderForValue.build()); @@ -3857,10 +3857,10 @@ public Builder addCategoricalParameterRanges( return this; } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder addCategoricalParameterRanges( - int index, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder builderForValue) { + int index, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder builderForValue) { if (categoricalParameterRangesBuilder_ == null) { ensureCategoricalParameterRangesIsMutable(); categoricalParameterRanges_.add(index, builderForValue.build()); @@ -3871,10 +3871,10 @@ public Builder addCategoricalParameterRanges( return this; } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder addAllCategoricalParameterRanges( - java.lang.Iterable values) { + java.lang.Iterable values) { if (categoricalParameterRangesBuilder_ == null) { ensureCategoricalParameterRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -3886,7 +3886,7 @@ public Builder addAllCategoricalParameterRanges( return this; } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder clearCategoricalParameterRanges() { if (categoricalParameterRangesBuilder_ == null) { @@ -3899,7 +3899,7 @@ public Builder clearCategoricalParameterRanges() { return this; } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder removeCategoricalParameterRanges(int index) { if (categoricalParameterRangesBuilder_ == null) { @@ -3912,16 +3912,16 @@ public Builder removeCategoricalParameterRanges(int index) { return this; } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.Sagemaker.CategoricalParameterRange.Builder getCategoricalParameterRangesBuilder( + public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder getCategoricalParameterRangesBuilder( int index) { return getCategoricalParameterRangesFieldBuilder().getBuilder(index); } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( + public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( int index) { if (categoricalParameterRangesBuilder_ == null) { return categoricalParameterRanges_.get(index); } else { @@ -3929,9 +3929,9 @@ public flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder getCategorical } } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public java.util.List + public java.util.List getCategoricalParameterRangesOrBuilderList() { if (categoricalParameterRangesBuilder_ != null) { return categoricalParameterRangesBuilder_.getMessageOrBuilderList(); @@ -3940,33 +3940,33 @@ public flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder getCategorical } } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.Sagemaker.CategoricalParameterRange.Builder addCategoricalParameterRangesBuilder() { + public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder addCategoricalParameterRangesBuilder() { return getCategoricalParameterRangesFieldBuilder().addBuilder( - flyte.plugins.Sagemaker.CategoricalParameterRange.getDefaultInstance()); + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance()); } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.Sagemaker.CategoricalParameterRange.Builder addCategoricalParameterRangesBuilder( + public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder addCategoricalParameterRangesBuilder( int index) { return getCategoricalParameterRangesFieldBuilder().addBuilder( - index, flyte.plugins.Sagemaker.CategoricalParameterRange.getDefaultInstance()); + index, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance()); } /** - * repeated .flyte.plugins.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public java.util.List + public java.util.List getCategoricalParameterRangesBuilderList() { return getCategoricalParameterRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.Sagemaker.CategoricalParameterRange, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder, flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder> + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder> getCategoricalParameterRangesFieldBuilder() { if (categoricalParameterRangesBuilder_ == null) { categoricalParameterRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.Sagemaker.CategoricalParameterRange, flyte.plugins.Sagemaker.CategoricalParameterRange.Builder, flyte.plugins.Sagemaker.CategoricalParameterRangeOrBuilder>( + flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder>( categoricalParameterRanges_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3988,16 +3988,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.ParameterRanges) + // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.ParameterRanges) } - // @@protoc_insertion_point(class_scope:flyte.plugins.ParameterRanges) - private static final flyte.plugins.Sagemaker.ParameterRanges DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ParameterRanges) + private static final flyte.plugins.sagemaker.Sagemaker.ParameterRanges DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.ParameterRanges(); + DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.ParameterRanges(); } - public static flyte.plugins.Sagemaker.ParameterRanges getDefaultInstance() { + public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4022,14 +4022,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.Sagemaker.ParameterRanges getDefaultInstanceForType() { + public flyte.plugins.sagemaker.Sagemaker.ParameterRanges getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AlgorithmSpecificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.AlgorithmSpecification) com.google.protobuf.MessageOrBuilder { /** @@ -4063,35 +4063,35 @@ public interface AlgorithmSpecificationOrBuilder extends getAlgorithmNameBytes(); /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - java.util.List + java.util.List getMetricDefinitionsList(); /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ int getMetricDefinitionsCount(); /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - java.util.List + java.util.List getMetricDefinitionsOrBuilderList(); /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index); } /** - * Protobuf type {@code flyte.plugins.AlgorithmSpecification} + * Protobuf type {@code flyte.plugins.sagemaker.AlgorithmSpecification} */ public static final class AlgorithmSpecification extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.AlgorithmSpecification) AlgorithmSpecificationOrBuilder { private static final long serialVersionUID = 0L; // Use AlgorithmSpecification.newBuilder() to construct. @@ -4149,11 +4149,11 @@ private AlgorithmSpecification( } case 34: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(); + metricDefinitions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } metricDefinitions_.add( - input.readMessage(flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.parser(), extensionRegistry)); + input.readMessage(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.parser(), extensionRegistry)); break; } default: { @@ -4180,19 +4180,19 @@ private AlgorithmSpecification( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.AlgorithmSpecification.class, flyte.plugins.Sagemaker.AlgorithmSpecification.Builder.class); + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.class, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder.class); } public interface MetricDefinitionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) com.google.protobuf.MessageOrBuilder { /** @@ -4216,11 +4216,11 @@ public interface MetricDefinitionOrBuilder extends getRegexBytes(); } /** - * Protobuf type {@code flyte.plugins.AlgorithmSpecification.MetricDefinition} + * Protobuf type {@code flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} */ public static final class MetricDefinition extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) MetricDefinitionOrBuilder { private static final long serialVersionUID = 0L; // Use MetricDefinition.newBuilder() to construct. @@ -4289,15 +4289,15 @@ private MetricDefinition( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.class, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder.class); + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.class, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -4413,10 +4413,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition)) { + if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition)) { return super.equals(obj); } - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition other = (flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition) obj; + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition other = (flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition) obj; if (!getName() .equals(other.getName())) return false; @@ -4442,69 +4442,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition 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 flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseDelimitedFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition 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 flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4517,7 +4517,7 @@ public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition pa public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition prototype) { + public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -4533,26 +4533,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.AlgorithmSpecification.MetricDefinition} + * Protobuf type {@code flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.AlgorithmSpecification.MetricDefinition) - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder { + // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.class, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder.class); + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.class, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder.class); } - // Construct using flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.newBuilder() + // Construct using flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -4580,17 +4580,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; } @java.lang.Override - public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { - return flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + return flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition build() { - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition result = buildPartial(); + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition build() { + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4598,8 +4598,8 @@ public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition build() { } @java.lang.Override - public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition buildPartial() { - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition result = new flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition(this); + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition buildPartial() { + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition result = new flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition(this); result.name_ = name_; result.regex_ = regex_; onBuilt(); @@ -4640,16 +4640,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition) { - return mergeFrom((flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition)other); + if (other instanceof flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition) { + return mergeFrom((flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition other) { - if (other == flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; + public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition other) { + if (other == flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -4673,11 +4673,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition parsedMessage = null; + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); + parsedMessage = (flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4837,16 +4837,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) } - // @@protoc_insertion_point(class_scope:flyte.plugins.AlgorithmSpecification.MetricDefinition) - private static final flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + private static final flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition(); + DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition(); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstance() { + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4871,7 +4871,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4981,36 +4981,36 @@ public java.lang.String getAlgorithmName() { } public static final int METRICDEFINITIONS_FIELD_NUMBER = 4; - private java.util.List metricDefinitions_; + private java.util.List metricDefinitions_; /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public java.util.List getMetricDefinitionsList() { + public java.util.List getMetricDefinitionsList() { return metricDefinitions_; } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public java.util.List + public java.util.List getMetricDefinitionsOrBuilderList() { return metricDefinitions_; } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public int getMetricDefinitionsCount() { return metricDefinitions_.size(); } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { return metricDefinitions_.get(index); } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index) { return metricDefinitions_.get(index); } @@ -5073,10 +5073,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.Sagemaker.AlgorithmSpecification)) { + if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification)) { return super.equals(obj); } - flyte.plugins.Sagemaker.AlgorithmSpecification other = (flyte.plugins.Sagemaker.AlgorithmSpecification) obj; + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification other = (flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification) obj; if (!getTrainingImage() .equals(other.getTrainingImage())) return false; @@ -5112,69 +5112,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom(byte[] data) + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification 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 flyte.plugins.Sagemaker.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification parseDelimitedFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification 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 flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5187,7 +5187,7 @@ public static flyte.plugins.Sagemaker.AlgorithmSpecification parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.Sagemaker.AlgorithmSpecification prototype) { + public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -5203,26 +5203,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.AlgorithmSpecification} + * Protobuf type {@code flyte.plugins.sagemaker.AlgorithmSpecification} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.AlgorithmSpecification) - flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder { + // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.AlgorithmSpecification) + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.AlgorithmSpecification.class, flyte.plugins.Sagemaker.AlgorithmSpecification.Builder.class); + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.class, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder.class); } - // Construct using flyte.plugins.Sagemaker.AlgorithmSpecification.newBuilder() + // Construct using flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -5259,17 +5259,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_AlgorithmSpecification_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor; } @java.lang.Override - public flyte.plugins.Sagemaker.AlgorithmSpecification getDefaultInstanceForType() { - return flyte.plugins.Sagemaker.AlgorithmSpecification.getDefaultInstance(); + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification getDefaultInstanceForType() { + return flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.Sagemaker.AlgorithmSpecification build() { - flyte.plugins.Sagemaker.AlgorithmSpecification result = buildPartial(); + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification build() { + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5277,8 +5277,8 @@ public flyte.plugins.Sagemaker.AlgorithmSpecification build() { } @java.lang.Override - public flyte.plugins.Sagemaker.AlgorithmSpecification buildPartial() { - flyte.plugins.Sagemaker.AlgorithmSpecification result = new flyte.plugins.Sagemaker.AlgorithmSpecification(this); + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification buildPartial() { + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification result = new flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.trainingImage_ = trainingImage_; @@ -5332,16 +5332,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.Sagemaker.AlgorithmSpecification) { - return mergeFrom((flyte.plugins.Sagemaker.AlgorithmSpecification)other); + if (other instanceof flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification) { + return mergeFrom((flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.Sagemaker.AlgorithmSpecification other) { - if (other == flyte.plugins.Sagemaker.AlgorithmSpecification.getDefaultInstance()) return this; + public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification other) { + if (other == flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance()) return this; if (!other.getTrainingImage().isEmpty()) { trainingImage_ = other.trainingImage_; onChanged(); @@ -5395,11 +5395,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.Sagemaker.AlgorithmSpecification parsedMessage = null; + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.Sagemaker.AlgorithmSpecification) e.getUnfinishedMessage(); + parsedMessage = (flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5617,22 +5617,22 @@ public Builder setAlgorithmNameBytes( return this; } - private java.util.List metricDefinitions_ = + private java.util.List metricDefinitions_ = java.util.Collections.emptyList(); private void ensureMetricDefinitionsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); + metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public java.util.List getMetricDefinitionsList() { + public java.util.List getMetricDefinitionsList() { if (metricDefinitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(metricDefinitions_); } else { @@ -5640,7 +5640,7 @@ public java.util.Listrepeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public int getMetricDefinitionsCount() { if (metricDefinitionsBuilder_ == null) { @@ -5650,9 +5650,9 @@ public int getMetricDefinitionsCount() { } } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { if (metricDefinitionsBuilder_ == null) { return metricDefinitions_.get(index); } else { @@ -5660,10 +5660,10 @@ public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition getMetric } } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder setMetricDefinitions( - int index, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition value) { + int index, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition value) { if (metricDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5677,10 +5677,10 @@ public Builder setMetricDefinitions( return this; } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder setMetricDefinitions( - int index, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + int index, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); metricDefinitions_.set(index, builderForValue.build()); @@ -5691,9 +5691,9 @@ public Builder setMetricDefinitions( return this; } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public Builder addMetricDefinitions(flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition value) { + public Builder addMetricDefinitions(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition value) { if (metricDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5707,10 +5707,10 @@ public Builder addMetricDefinitions(flyte.plugins.Sagemaker.AlgorithmSpecificati return this; } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder addMetricDefinitions( - int index, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition value) { + int index, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition value) { if (metricDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5724,10 +5724,10 @@ public Builder addMetricDefinitions( return this; } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder addMetricDefinitions( - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); metricDefinitions_.add(builderForValue.build()); @@ -5738,10 +5738,10 @@ public Builder addMetricDefinitions( return this; } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder addMetricDefinitions( - int index, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + int index, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); metricDefinitions_.add(index, builderForValue.build()); @@ -5752,10 +5752,10 @@ public Builder addMetricDefinitions( return this; } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder addAllMetricDefinitions( - java.lang.Iterable values) { + java.lang.Iterable values) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -5767,7 +5767,7 @@ public Builder addAllMetricDefinitions( return this; } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder clearMetricDefinitions() { if (metricDefinitionsBuilder_ == null) { @@ -5780,7 +5780,7 @@ public Builder clearMetricDefinitions() { return this; } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder removeMetricDefinitions(int index) { if (metricDefinitionsBuilder_ == null) { @@ -5793,16 +5793,16 @@ public Builder removeMetricDefinitions(int index) { return this; } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( int index) { return getMetricDefinitionsFieldBuilder().getBuilder(index); } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index) { if (metricDefinitionsBuilder_ == null) { return metricDefinitions_.get(index); } else { @@ -5810,9 +5810,9 @@ public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder } } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public java.util.List + public java.util.List getMetricDefinitionsOrBuilderList() { if (metricDefinitionsBuilder_ != null) { return metricDefinitionsBuilder_.getMessageOrBuilderList(); @@ -5821,33 +5821,33 @@ public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder } } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { return getMetricDefinitionsFieldBuilder().addBuilder( - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( int index) { return getMetricDefinitionsFieldBuilder().addBuilder( - index, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + index, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); } /** - * repeated .flyte.plugins.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public java.util.List + public java.util.List getMetricDefinitionsBuilderList() { return getMetricDefinitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder> + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder> getMetricDefinitionsFieldBuilder() { if (metricDefinitionsBuilder_ == null) { metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyte.plugins.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder>( + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder>( metricDefinitions_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -5869,16 +5869,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.AlgorithmSpecification) + // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.AlgorithmSpecification) } - // @@protoc_insertion_point(class_scope:flyte.plugins.AlgorithmSpecification) - private static final flyte.plugins.Sagemaker.AlgorithmSpecification DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.AlgorithmSpecification) + private static final flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.AlgorithmSpecification(); + DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification(); } - public static flyte.plugins.Sagemaker.AlgorithmSpecification getDefaultInstance() { + public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -5903,14 +5903,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.Sagemaker.AlgorithmSpecification getDefaultInstanceForType() { + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.ResourceConfig) com.google.protobuf.MessageOrBuilder { /** @@ -5944,11 +5944,11 @@ public interface ResourceConfigOrBuilder extends getVolumeKmsKeyIdBytes(); } /** - * Protobuf type {@code flyte.plugins.ResourceConfig} + * Protobuf type {@code flyte.plugins.sagemaker.ResourceConfig} */ public static final class ResourceConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.ResourceConfig) ResourceConfigOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceConfig.newBuilder() to construct. @@ -6027,15 +6027,15 @@ private ResourceConfig( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ResourceConfig_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ResourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ResourceConfig_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ResourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.ResourceConfig.class, flyte.plugins.Sagemaker.ResourceConfig.Builder.class); + flyte.plugins.sagemaker.Sagemaker.ResourceConfig.class, flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder.class); } public static final int INSTANCETYPE_FIELD_NUMBER = 1; @@ -6183,10 +6183,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.Sagemaker.ResourceConfig)) { + if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.ResourceConfig)) { return super.equals(obj); } - flyte.plugins.Sagemaker.ResourceConfig other = (flyte.plugins.Sagemaker.ResourceConfig) obj; + flyte.plugins.sagemaker.Sagemaker.ResourceConfig other = (flyte.plugins.sagemaker.Sagemaker.ResourceConfig) obj; if (!getInstanceType() .equals(other.getInstanceType())) return false; @@ -6222,69 +6222,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.Sagemaker.ResourceConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.ResourceConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.ResourceConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.ResourceConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.ResourceConfig parseFrom(byte[] data) + public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.ResourceConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.ResourceConfig parseFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.ResourceConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig 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 flyte.plugins.Sagemaker.ResourceConfig parseDelimitedFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.ResourceConfig parseDelimitedFrom( + public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig 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 flyte.plugins.Sagemaker.ResourceConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.ResourceConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6297,7 +6297,7 @@ public static flyte.plugins.Sagemaker.ResourceConfig parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.Sagemaker.ResourceConfig prototype) { + public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.ResourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -6313,26 +6313,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.ResourceConfig} + * Protobuf type {@code flyte.plugins.sagemaker.ResourceConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.ResourceConfig) - flyte.plugins.Sagemaker.ResourceConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.ResourceConfig) + flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ResourceConfig_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ResourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ResourceConfig_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ResourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.ResourceConfig.class, flyte.plugins.Sagemaker.ResourceConfig.Builder.class); + flyte.plugins.sagemaker.Sagemaker.ResourceConfig.class, flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder.class); } - // Construct using flyte.plugins.Sagemaker.ResourceConfig.newBuilder() + // Construct using flyte.plugins.sagemaker.Sagemaker.ResourceConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -6364,17 +6364,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_ResourceConfig_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ResourceConfig_descriptor; } @java.lang.Override - public flyte.plugins.Sagemaker.ResourceConfig getDefaultInstanceForType() { - return flyte.plugins.Sagemaker.ResourceConfig.getDefaultInstance(); + public flyte.plugins.sagemaker.Sagemaker.ResourceConfig getDefaultInstanceForType() { + return flyte.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.Sagemaker.ResourceConfig build() { - flyte.plugins.Sagemaker.ResourceConfig result = buildPartial(); + public flyte.plugins.sagemaker.Sagemaker.ResourceConfig build() { + flyte.plugins.sagemaker.Sagemaker.ResourceConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6382,8 +6382,8 @@ public flyte.plugins.Sagemaker.ResourceConfig build() { } @java.lang.Override - public flyte.plugins.Sagemaker.ResourceConfig buildPartial() { - flyte.plugins.Sagemaker.ResourceConfig result = new flyte.plugins.Sagemaker.ResourceConfig(this); + public flyte.plugins.sagemaker.Sagemaker.ResourceConfig buildPartial() { + flyte.plugins.sagemaker.Sagemaker.ResourceConfig result = new flyte.plugins.sagemaker.Sagemaker.ResourceConfig(this); result.instanceType_ = instanceType_; result.instanceCount_ = instanceCount_; result.volumeSizeInGB_ = volumeSizeInGB_; @@ -6426,16 +6426,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.Sagemaker.ResourceConfig) { - return mergeFrom((flyte.plugins.Sagemaker.ResourceConfig)other); + if (other instanceof flyte.plugins.sagemaker.Sagemaker.ResourceConfig) { + return mergeFrom((flyte.plugins.sagemaker.Sagemaker.ResourceConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.Sagemaker.ResourceConfig other) { - if (other == flyte.plugins.Sagemaker.ResourceConfig.getDefaultInstance()) return this; + public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.ResourceConfig other) { + if (other == flyte.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance()) return this; if (!other.getInstanceType().isEmpty()) { instanceType_ = other.instanceType_; onChanged(); @@ -6465,11 +6465,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.Sagemaker.ResourceConfig parsedMessage = null; + flyte.plugins.sagemaker.Sagemaker.ResourceConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.Sagemaker.ResourceConfig) e.getUnfinishedMessage(); + parsedMessage = (flyte.plugins.sagemaker.Sagemaker.ResourceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6681,16 +6681,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.ResourceConfig) + // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.ResourceConfig) } - // @@protoc_insertion_point(class_scope:flyte.plugins.ResourceConfig) - private static final flyte.plugins.Sagemaker.ResourceConfig DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ResourceConfig) + private static final flyte.plugins.sagemaker.Sagemaker.ResourceConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.ResourceConfig(); + DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.ResourceConfig(); } - public static flyte.plugins.Sagemaker.ResourceConfig getDefaultInstance() { + public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -6715,14 +6715,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.Sagemaker.ResourceConfig getDefaultInstanceForType() { + public flyte.plugins.sagemaker.Sagemaker.ResourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StoppingConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.StoppingCondition) com.google.protobuf.MessageOrBuilder { /** @@ -6736,11 +6736,11 @@ public interface StoppingConditionOrBuilder extends long getMaxWaitTimeInSeconds(); } /** - * Protobuf type {@code flyte.plugins.StoppingCondition} + * Protobuf type {@code flyte.plugins.sagemaker.StoppingCondition} */ public static final class StoppingCondition extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.StoppingCondition) StoppingConditionOrBuilder { private static final long serialVersionUID = 0L; // Use StoppingCondition.newBuilder() to construct. @@ -6805,15 +6805,15 @@ private StoppingCondition( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_StoppingCondition_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_StoppingCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_StoppingCondition_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_StoppingCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.StoppingCondition.class, flyte.plugins.Sagemaker.StoppingCondition.Builder.class); + flyte.plugins.sagemaker.Sagemaker.StoppingCondition.class, flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder.class); } public static final int MAXRUNTIMEINSECONDS_FIELD_NUMBER = 1; @@ -6881,10 +6881,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.Sagemaker.StoppingCondition)) { + if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.StoppingCondition)) { return super.equals(obj); } - flyte.plugins.Sagemaker.StoppingCondition other = (flyte.plugins.Sagemaker.StoppingCondition) obj; + flyte.plugins.sagemaker.Sagemaker.StoppingCondition other = (flyte.plugins.sagemaker.Sagemaker.StoppingCondition) obj; if (getMaxRuntimeInSeconds() != other.getMaxRuntimeInSeconds()) return false; @@ -6912,69 +6912,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.Sagemaker.StoppingCondition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.StoppingCondition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.StoppingCondition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.StoppingCondition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.StoppingCondition parseFrom(byte[] data) + public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.StoppingCondition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.StoppingCondition parseFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.StoppingCondition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition 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 flyte.plugins.Sagemaker.StoppingCondition parseDelimitedFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.StoppingCondition parseDelimitedFrom( + public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition 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 flyte.plugins.Sagemaker.StoppingCondition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.StoppingCondition parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6987,7 +6987,7 @@ public static flyte.plugins.Sagemaker.StoppingCondition parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.Sagemaker.StoppingCondition prototype) { + public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.StoppingCondition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -7003,26 +7003,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.StoppingCondition} + * Protobuf type {@code flyte.plugins.sagemaker.StoppingCondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.StoppingCondition) - flyte.plugins.Sagemaker.StoppingConditionOrBuilder { + // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.StoppingCondition) + flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_StoppingCondition_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_StoppingCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_StoppingCondition_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_StoppingCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.StoppingCondition.class, flyte.plugins.Sagemaker.StoppingCondition.Builder.class); + flyte.plugins.sagemaker.Sagemaker.StoppingCondition.class, flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder.class); } - // Construct using flyte.plugins.Sagemaker.StoppingCondition.newBuilder() + // Construct using flyte.plugins.sagemaker.Sagemaker.StoppingCondition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -7050,17 +7050,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_StoppingCondition_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_StoppingCondition_descriptor; } @java.lang.Override - public flyte.plugins.Sagemaker.StoppingCondition getDefaultInstanceForType() { - return flyte.plugins.Sagemaker.StoppingCondition.getDefaultInstance(); + public flyte.plugins.sagemaker.Sagemaker.StoppingCondition getDefaultInstanceForType() { + return flyte.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.Sagemaker.StoppingCondition build() { - flyte.plugins.Sagemaker.StoppingCondition result = buildPartial(); + public flyte.plugins.sagemaker.Sagemaker.StoppingCondition build() { + flyte.plugins.sagemaker.Sagemaker.StoppingCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7068,8 +7068,8 @@ public flyte.plugins.Sagemaker.StoppingCondition build() { } @java.lang.Override - public flyte.plugins.Sagemaker.StoppingCondition buildPartial() { - flyte.plugins.Sagemaker.StoppingCondition result = new flyte.plugins.Sagemaker.StoppingCondition(this); + public flyte.plugins.sagemaker.Sagemaker.StoppingCondition buildPartial() { + flyte.plugins.sagemaker.Sagemaker.StoppingCondition result = new flyte.plugins.sagemaker.Sagemaker.StoppingCondition(this); result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; onBuilt(); @@ -7110,16 +7110,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.Sagemaker.StoppingCondition) { - return mergeFrom((flyte.plugins.Sagemaker.StoppingCondition)other); + if (other instanceof flyte.plugins.sagemaker.Sagemaker.StoppingCondition) { + return mergeFrom((flyte.plugins.sagemaker.Sagemaker.StoppingCondition)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.Sagemaker.StoppingCondition other) { - if (other == flyte.plugins.Sagemaker.StoppingCondition.getDefaultInstance()) return this; + public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.StoppingCondition other) { + if (other == flyte.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance()) return this; if (other.getMaxRuntimeInSeconds() != 0L) { setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); } @@ -7141,11 +7141,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.Sagemaker.StoppingCondition parsedMessage = null; + flyte.plugins.sagemaker.Sagemaker.StoppingCondition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.Sagemaker.StoppingCondition) e.getUnfinishedMessage(); + parsedMessage = (flyte.plugins.sagemaker.Sagemaker.StoppingCondition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7219,16 +7219,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.StoppingCondition) + // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.StoppingCondition) } - // @@protoc_insertion_point(class_scope:flyte.plugins.StoppingCondition) - private static final flyte.plugins.Sagemaker.StoppingCondition DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.StoppingCondition) + private static final flyte.plugins.sagemaker.Sagemaker.StoppingCondition DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.StoppingCondition(); + DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.StoppingCondition(); } - public static flyte.plugins.Sagemaker.StoppingCondition getDefaultInstance() { + public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -7253,14 +7253,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.Sagemaker.StoppingCondition getDefaultInstanceForType() { + public flyte.plugins.sagemaker.Sagemaker.StoppingCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VpcConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.VpcConfig) com.google.protobuf.MessageOrBuilder { /** @@ -7302,11 +7302,11 @@ public interface VpcConfigOrBuilder extends getSubnetsBytes(int index); } /** - * Protobuf type {@code flyte.plugins.VpcConfig} + * Protobuf type {@code flyte.plugins.sagemaker.VpcConfig} */ public static final class VpcConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.VpcConfig) VpcConfigOrBuilder { private static final long serialVersionUID = 0L; // Use VpcConfig.newBuilder() to construct. @@ -7387,15 +7387,15 @@ private VpcConfig( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_VpcConfig_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_VpcConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_VpcConfig_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_VpcConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.VpcConfig.class, flyte.plugins.Sagemaker.VpcConfig.Builder.class); + flyte.plugins.sagemaker.Sagemaker.VpcConfig.class, flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder.class); } public static final int SECURITYGROUPIDS_FIELD_NUMBER = 1; @@ -7511,10 +7511,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.Sagemaker.VpcConfig)) { + if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.VpcConfig)) { return super.equals(obj); } - flyte.plugins.Sagemaker.VpcConfig other = (flyte.plugins.Sagemaker.VpcConfig) obj; + flyte.plugins.sagemaker.Sagemaker.VpcConfig other = (flyte.plugins.sagemaker.Sagemaker.VpcConfig) obj; if (!getSecurityGroupIdsList() .equals(other.getSecurityGroupIdsList())) return false; @@ -7544,69 +7544,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.Sagemaker.VpcConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.VpcConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.VpcConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.VpcConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.VpcConfig parseFrom(byte[] data) + public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.VpcConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.VpcConfig parseFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.VpcConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.VpcConfig 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 flyte.plugins.Sagemaker.VpcConfig parseDelimitedFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.VpcConfig parseDelimitedFrom( + public static flyte.plugins.sagemaker.Sagemaker.VpcConfig 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 flyte.plugins.Sagemaker.VpcConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.VpcConfig parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -7619,7 +7619,7 @@ public static flyte.plugins.Sagemaker.VpcConfig parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.Sagemaker.VpcConfig prototype) { + public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.VpcConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -7635,26 +7635,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.VpcConfig} + * Protobuf type {@code flyte.plugins.sagemaker.VpcConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.VpcConfig) - flyte.plugins.Sagemaker.VpcConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.VpcConfig) + flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_VpcConfig_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_VpcConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_VpcConfig_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_VpcConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.VpcConfig.class, flyte.plugins.Sagemaker.VpcConfig.Builder.class); + flyte.plugins.sagemaker.Sagemaker.VpcConfig.class, flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder.class); } - // Construct using flyte.plugins.Sagemaker.VpcConfig.newBuilder() + // Construct using flyte.plugins.sagemaker.Sagemaker.VpcConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -7682,17 +7682,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_VpcConfig_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_VpcConfig_descriptor; } @java.lang.Override - public flyte.plugins.Sagemaker.VpcConfig getDefaultInstanceForType() { - return flyte.plugins.Sagemaker.VpcConfig.getDefaultInstance(); + public flyte.plugins.sagemaker.Sagemaker.VpcConfig getDefaultInstanceForType() { + return flyte.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.Sagemaker.VpcConfig build() { - flyte.plugins.Sagemaker.VpcConfig result = buildPartial(); + public flyte.plugins.sagemaker.Sagemaker.VpcConfig build() { + flyte.plugins.sagemaker.Sagemaker.VpcConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7700,8 +7700,8 @@ public flyte.plugins.Sagemaker.VpcConfig build() { } @java.lang.Override - public flyte.plugins.Sagemaker.VpcConfig buildPartial() { - flyte.plugins.Sagemaker.VpcConfig result = new flyte.plugins.Sagemaker.VpcConfig(this); + public flyte.plugins.sagemaker.Sagemaker.VpcConfig buildPartial() { + flyte.plugins.sagemaker.Sagemaker.VpcConfig result = new flyte.plugins.sagemaker.Sagemaker.VpcConfig(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); @@ -7751,16 +7751,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.Sagemaker.VpcConfig) { - return mergeFrom((flyte.plugins.Sagemaker.VpcConfig)other); + if (other instanceof flyte.plugins.sagemaker.Sagemaker.VpcConfig) { + return mergeFrom((flyte.plugins.sagemaker.Sagemaker.VpcConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.Sagemaker.VpcConfig other) { - if (other == flyte.plugins.Sagemaker.VpcConfig.getDefaultInstance()) return this; + public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.VpcConfig other) { + if (other == flyte.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance()) return this; if (!other.securityGroupIds_.isEmpty()) { if (securityGroupIds_.isEmpty()) { securityGroupIds_ = other.securityGroupIds_; @@ -7796,11 +7796,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.Sagemaker.VpcConfig parsedMessage = null; + flyte.plugins.sagemaker.Sagemaker.VpcConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.Sagemaker.VpcConfig) e.getUnfinishedMessage(); + parsedMessage = (flyte.plugins.sagemaker.Sagemaker.VpcConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8011,16 +8011,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.VpcConfig) + // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.VpcConfig) } - // @@protoc_insertion_point(class_scope:flyte.plugins.VpcConfig) - private static final flyte.plugins.Sagemaker.VpcConfig DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.VpcConfig) + private static final flyte.plugins.sagemaker.Sagemaker.VpcConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.VpcConfig(); + DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.VpcConfig(); } - public static flyte.plugins.Sagemaker.VpcConfig getDefaultInstance() { + public static flyte.plugins.sagemaker.Sagemaker.VpcConfig getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -8045,14 +8045,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.Sagemaker.VpcConfig getDefaultInstanceForType() { + public flyte.plugins.sagemaker.Sagemaker.VpcConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SagemakerTrainingJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.SagemakerTrainingJob) com.google.protobuf.MessageOrBuilder { /** @@ -8076,56 +8076,56 @@ public interface SagemakerTrainingJobOrBuilder extends getRoleArnBytes(); /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ boolean hasAlgorithmSpecification(); /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - flyte.plugins.Sagemaker.AlgorithmSpecification getAlgorithmSpecification(); + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification getAlgorithmSpecification(); /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ boolean hasResourceConfig(); /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - flyte.plugins.Sagemaker.ResourceConfig getResourceConfig(); + flyte.plugins.sagemaker.Sagemaker.ResourceConfig getResourceConfig(); /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - flyte.plugins.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder(); + flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder(); /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ boolean hasStoppingCondition(); /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - flyte.plugins.Sagemaker.StoppingCondition getStoppingCondition(); + flyte.plugins.sagemaker.Sagemaker.StoppingCondition getStoppingCondition(); /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - flyte.plugins.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder(); + flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder(); /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ boolean hasVpcConfig(); /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - flyte.plugins.Sagemaker.VpcConfig getVpcConfig(); + flyte.plugins.sagemaker.Sagemaker.VpcConfig getVpcConfig(); /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - flyte.plugins.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder(); + flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder(); /** * bool EnableSpotTraining = 7; @@ -8133,11 +8133,11 @@ public interface SagemakerTrainingJobOrBuilder extends boolean getEnableSpotTraining(); } /** - * Protobuf type {@code flyte.plugins.SagemakerTrainingJob} + * Protobuf type {@code flyte.plugins.sagemaker.SagemakerTrainingJob} */ public static final class SagemakerTrainingJob extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.SagemakerTrainingJob) SagemakerTrainingJobOrBuilder { private static final long serialVersionUID = 0L; // Use SagemakerTrainingJob.newBuilder() to construct. @@ -8186,11 +8186,11 @@ private SagemakerTrainingJob( break; } case 26: { - flyte.plugins.Sagemaker.AlgorithmSpecification.Builder subBuilder = null; + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder subBuilder = null; if (algorithmSpecification_ != null) { subBuilder = algorithmSpecification_.toBuilder(); } - algorithmSpecification_ = input.readMessage(flyte.plugins.Sagemaker.AlgorithmSpecification.parser(), extensionRegistry); + algorithmSpecification_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(algorithmSpecification_); algorithmSpecification_ = subBuilder.buildPartial(); @@ -8199,11 +8199,11 @@ private SagemakerTrainingJob( break; } case 34: { - flyte.plugins.Sagemaker.ResourceConfig.Builder subBuilder = null; + flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder subBuilder = null; if (resourceConfig_ != null) { subBuilder = resourceConfig_.toBuilder(); } - resourceConfig_ = input.readMessage(flyte.plugins.Sagemaker.ResourceConfig.parser(), extensionRegistry); + resourceConfig_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.ResourceConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resourceConfig_); resourceConfig_ = subBuilder.buildPartial(); @@ -8212,11 +8212,11 @@ private SagemakerTrainingJob( break; } case 42: { - flyte.plugins.Sagemaker.StoppingCondition.Builder subBuilder = null; + flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder subBuilder = null; if (stoppingCondition_ != null) { subBuilder = stoppingCondition_.toBuilder(); } - stoppingCondition_ = input.readMessage(flyte.plugins.Sagemaker.StoppingCondition.parser(), extensionRegistry); + stoppingCondition_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.StoppingCondition.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stoppingCondition_); stoppingCondition_ = subBuilder.buildPartial(); @@ -8225,11 +8225,11 @@ private SagemakerTrainingJob( break; } case 50: { - flyte.plugins.Sagemaker.VpcConfig.Builder subBuilder = null; + flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder subBuilder = null; if (vpcConfig_ != null) { subBuilder = vpcConfig_.toBuilder(); } - vpcConfig_ = input.readMessage(flyte.plugins.Sagemaker.VpcConfig.parser(), extensionRegistry); + vpcConfig_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.VpcConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(vpcConfig_); vpcConfig_ = subBuilder.buildPartial(); @@ -8263,15 +8263,15 @@ private SagemakerTrainingJob( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerTrainingJob_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerTrainingJob_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.SagemakerTrainingJob.class, flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder.class); + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.class, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder.class); } public static final int REGION_FIELD_NUMBER = 1; @@ -8343,86 +8343,86 @@ public java.lang.String getRoleArn() { } public static final int ALGORITHMSPECIFICATION_FIELD_NUMBER = 3; - private flyte.plugins.Sagemaker.AlgorithmSpecification algorithmSpecification_; + private flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification algorithmSpecification_; /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ public boolean hasAlgorithmSpecification() { return algorithmSpecification_ != null; } /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public flyte.plugins.Sagemaker.AlgorithmSpecification getAlgorithmSpecification() { - return algorithmSpecification_ == null ? flyte.plugins.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification getAlgorithmSpecification() { + return algorithmSpecification_ == null ? flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; } /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { return getAlgorithmSpecification(); } public static final int RESOURCECONFIG_FIELD_NUMBER = 4; - private flyte.plugins.Sagemaker.ResourceConfig resourceConfig_; + private flyte.plugins.sagemaker.Sagemaker.ResourceConfig resourceConfig_; /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ public boolean hasResourceConfig() { return resourceConfig_ != null; } /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public flyte.plugins.Sagemaker.ResourceConfig getResourceConfig() { - return resourceConfig_ == null ? flyte.plugins.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; + public flyte.plugins.sagemaker.Sagemaker.ResourceConfig getResourceConfig() { + return resourceConfig_ == null ? flyte.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; } /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public flyte.plugins.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder() { return getResourceConfig(); } public static final int STOPPINGCONDITION_FIELD_NUMBER = 5; - private flyte.plugins.Sagemaker.StoppingCondition stoppingCondition_; + private flyte.plugins.sagemaker.Sagemaker.StoppingCondition stoppingCondition_; /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ public boolean hasStoppingCondition() { return stoppingCondition_ != null; } /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public flyte.plugins.Sagemaker.StoppingCondition getStoppingCondition() { - return stoppingCondition_ == null ? flyte.plugins.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; + public flyte.plugins.sagemaker.Sagemaker.StoppingCondition getStoppingCondition() { + return stoppingCondition_ == null ? flyte.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; } /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public flyte.plugins.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { return getStoppingCondition(); } public static final int VPCCONFIG_FIELD_NUMBER = 6; - private flyte.plugins.Sagemaker.VpcConfig vpcConfig_; + private flyte.plugins.sagemaker.Sagemaker.VpcConfig vpcConfig_; /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ public boolean hasVpcConfig() { return vpcConfig_ != null; } /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public flyte.plugins.Sagemaker.VpcConfig getVpcConfig() { - return vpcConfig_ == null ? flyte.plugins.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; + public flyte.plugins.sagemaker.Sagemaker.VpcConfig getVpcConfig() { + return vpcConfig_ == null ? flyte.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; } /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public flyte.plugins.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder() { return getVpcConfig(); } @@ -8515,10 +8515,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.Sagemaker.SagemakerTrainingJob)) { + if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob)) { return super.equals(obj); } - flyte.plugins.Sagemaker.SagemakerTrainingJob other = (flyte.plugins.Sagemaker.SagemakerTrainingJob) obj; + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob other = (flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob) obj; if (!getRegion() .equals(other.getRegion())) return false; @@ -8585,69 +8585,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom(byte[] data) + public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob 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 flyte.plugins.Sagemaker.SagemakerTrainingJob parseDelimitedFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseDelimitedFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob 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 flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -8660,7 +8660,7 @@ public static flyte.plugins.Sagemaker.SagemakerTrainingJob parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.Sagemaker.SagemakerTrainingJob prototype) { + public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -8676,26 +8676,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.SagemakerTrainingJob} + * Protobuf type {@code flyte.plugins.sagemaker.SagemakerTrainingJob} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.SagemakerTrainingJob) - flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder { + // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.SagemakerTrainingJob) + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerTrainingJob_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerTrainingJob_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.SagemakerTrainingJob.class, flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder.class); + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.class, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder.class); } - // Construct using flyte.plugins.Sagemaker.SagemakerTrainingJob.newBuilder() + // Construct using flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -8749,17 +8749,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerTrainingJob_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_descriptor; } @java.lang.Override - public flyte.plugins.Sagemaker.SagemakerTrainingJob getDefaultInstanceForType() { - return flyte.plugins.Sagemaker.SagemakerTrainingJob.getDefaultInstance(); + public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getDefaultInstanceForType() { + return flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.Sagemaker.SagemakerTrainingJob build() { - flyte.plugins.Sagemaker.SagemakerTrainingJob result = buildPartial(); + public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob build() { + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8767,8 +8767,8 @@ public flyte.plugins.Sagemaker.SagemakerTrainingJob build() { } @java.lang.Override - public flyte.plugins.Sagemaker.SagemakerTrainingJob buildPartial() { - flyte.plugins.Sagemaker.SagemakerTrainingJob result = new flyte.plugins.Sagemaker.SagemakerTrainingJob(this); + public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob buildPartial() { + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob result = new flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob(this); result.region_ = region_; result.roleArn_ = roleArn_; if (algorithmSpecificationBuilder_ == null) { @@ -8830,16 +8830,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.Sagemaker.SagemakerTrainingJob) { - return mergeFrom((flyte.plugins.Sagemaker.SagemakerTrainingJob)other); + if (other instanceof flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob) { + return mergeFrom((flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.Sagemaker.SagemakerTrainingJob other) { - if (other == flyte.plugins.Sagemaker.SagemakerTrainingJob.getDefaultInstance()) return this; + public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob other) { + if (other == flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance()) return this; if (!other.getRegion().isEmpty()) { region_ = other.region_; onChanged(); @@ -8878,11 +8878,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.Sagemaker.SagemakerTrainingJob parsedMessage = null; + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.Sagemaker.SagemakerTrainingJob) e.getUnfinishedMessage(); + parsedMessage = (flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -9030,29 +9030,29 @@ public Builder setRoleArnBytes( return this; } - private flyte.plugins.Sagemaker.AlgorithmSpecification algorithmSpecification_; + private flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification algorithmSpecification_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.AlgorithmSpecification, flyte.plugins.Sagemaker.AlgorithmSpecification.Builder, flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ public boolean hasAlgorithmSpecification() { return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; } /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public flyte.plugins.Sagemaker.AlgorithmSpecification getAlgorithmSpecification() { + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification getAlgorithmSpecification() { if (algorithmSpecificationBuilder_ == null) { - return algorithmSpecification_ == null ? flyte.plugins.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + return algorithmSpecification_ == null ? flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; } else { return algorithmSpecificationBuilder_.getMessage(); } } /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public Builder setAlgorithmSpecification(flyte.plugins.Sagemaker.AlgorithmSpecification value) { + public Builder setAlgorithmSpecification(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification value) { if (algorithmSpecificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9066,10 +9066,10 @@ public Builder setAlgorithmSpecification(flyte.plugins.Sagemaker.AlgorithmSpecif return this; } /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ public Builder setAlgorithmSpecification( - flyte.plugins.Sagemaker.AlgorithmSpecification.Builder builderForValue) { + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder builderForValue) { if (algorithmSpecificationBuilder_ == null) { algorithmSpecification_ = builderForValue.build(); onChanged(); @@ -9080,13 +9080,13 @@ public Builder setAlgorithmSpecification( return this; } /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public Builder mergeAlgorithmSpecification(flyte.plugins.Sagemaker.AlgorithmSpecification value) { + public Builder mergeAlgorithmSpecification(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification value) { if (algorithmSpecificationBuilder_ == null) { if (algorithmSpecification_ != null) { algorithmSpecification_ = - flyte.plugins.Sagemaker.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); } else { algorithmSpecification_ = value; } @@ -9098,7 +9098,7 @@ public Builder mergeAlgorithmSpecification(flyte.plugins.Sagemaker.AlgorithmSpec return this; } /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ public Builder clearAlgorithmSpecification() { if (algorithmSpecificationBuilder_ == null) { @@ -9112,33 +9112,33 @@ public Builder clearAlgorithmSpecification() { return this; } /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public flyte.plugins.Sagemaker.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { onChanged(); return getAlgorithmSpecificationFieldBuilder().getBuilder(); } /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { if (algorithmSpecificationBuilder_ != null) { return algorithmSpecificationBuilder_.getMessageOrBuilder(); } else { return algorithmSpecification_ == null ? - flyte.plugins.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; } } /** - * .flyte.plugins.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.AlgorithmSpecification, flyte.plugins.Sagemaker.AlgorithmSpecification.Builder, flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder> + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder> getAlgorithmSpecificationFieldBuilder() { if (algorithmSpecificationBuilder_ == null) { algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.AlgorithmSpecification, flyte.plugins.Sagemaker.AlgorithmSpecification.Builder, flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder>( + flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder>( getAlgorithmSpecification(), getParentForChildren(), isClean()); @@ -9147,29 +9147,29 @@ public flyte.plugins.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpeci return algorithmSpecificationBuilder_; } - private flyte.plugins.Sagemaker.ResourceConfig resourceConfig_; + private flyte.plugins.sagemaker.Sagemaker.ResourceConfig resourceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.ResourceConfig, flyte.plugins.Sagemaker.ResourceConfig.Builder, flyte.plugins.Sagemaker.ResourceConfigOrBuilder> resourceConfigBuilder_; + flyte.plugins.sagemaker.Sagemaker.ResourceConfig, flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder, flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder> resourceConfigBuilder_; /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ public boolean hasResourceConfig() { return resourceConfigBuilder_ != null || resourceConfig_ != null; } /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public flyte.plugins.Sagemaker.ResourceConfig getResourceConfig() { + public flyte.plugins.sagemaker.Sagemaker.ResourceConfig getResourceConfig() { if (resourceConfigBuilder_ == null) { - return resourceConfig_ == null ? flyte.plugins.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; + return resourceConfig_ == null ? flyte.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; } else { return resourceConfigBuilder_.getMessage(); } } /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public Builder setResourceConfig(flyte.plugins.Sagemaker.ResourceConfig value) { + public Builder setResourceConfig(flyte.plugins.sagemaker.Sagemaker.ResourceConfig value) { if (resourceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9183,10 +9183,10 @@ public Builder setResourceConfig(flyte.plugins.Sagemaker.ResourceConfig value) { return this; } /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ public Builder setResourceConfig( - flyte.plugins.Sagemaker.ResourceConfig.Builder builderForValue) { + flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder builderForValue) { if (resourceConfigBuilder_ == null) { resourceConfig_ = builderForValue.build(); onChanged(); @@ -9197,13 +9197,13 @@ public Builder setResourceConfig( return this; } /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public Builder mergeResourceConfig(flyte.plugins.Sagemaker.ResourceConfig value) { + public Builder mergeResourceConfig(flyte.plugins.sagemaker.Sagemaker.ResourceConfig value) { if (resourceConfigBuilder_ == null) { if (resourceConfig_ != null) { resourceConfig_ = - flyte.plugins.Sagemaker.ResourceConfig.newBuilder(resourceConfig_).mergeFrom(value).buildPartial(); + flyte.plugins.sagemaker.Sagemaker.ResourceConfig.newBuilder(resourceConfig_).mergeFrom(value).buildPartial(); } else { resourceConfig_ = value; } @@ -9215,7 +9215,7 @@ public Builder mergeResourceConfig(flyte.plugins.Sagemaker.ResourceConfig value) return this; } /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ public Builder clearResourceConfig() { if (resourceConfigBuilder_ == null) { @@ -9229,33 +9229,33 @@ public Builder clearResourceConfig() { return this; } /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public flyte.plugins.Sagemaker.ResourceConfig.Builder getResourceConfigBuilder() { + public flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder getResourceConfigBuilder() { onChanged(); return getResourceConfigFieldBuilder().getBuilder(); } /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public flyte.plugins.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder() { if (resourceConfigBuilder_ != null) { return resourceConfigBuilder_.getMessageOrBuilder(); } else { return resourceConfig_ == null ? - flyte.plugins.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; + flyte.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; } } /** - * .flyte.plugins.ResourceConfig ResourceConfig = 4; + * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.ResourceConfig, flyte.plugins.Sagemaker.ResourceConfig.Builder, flyte.plugins.Sagemaker.ResourceConfigOrBuilder> + flyte.plugins.sagemaker.Sagemaker.ResourceConfig, flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder, flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder> getResourceConfigFieldBuilder() { if (resourceConfigBuilder_ == null) { resourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.ResourceConfig, flyte.plugins.Sagemaker.ResourceConfig.Builder, flyte.plugins.Sagemaker.ResourceConfigOrBuilder>( + flyte.plugins.sagemaker.Sagemaker.ResourceConfig, flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder, flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder>( getResourceConfig(), getParentForChildren(), isClean()); @@ -9264,29 +9264,29 @@ public flyte.plugins.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilde return resourceConfigBuilder_; } - private flyte.plugins.Sagemaker.StoppingCondition stoppingCondition_; + private flyte.plugins.sagemaker.Sagemaker.StoppingCondition stoppingCondition_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.StoppingCondition, flyte.plugins.Sagemaker.StoppingCondition.Builder, flyte.plugins.Sagemaker.StoppingConditionOrBuilder> stoppingConditionBuilder_; + flyte.plugins.sagemaker.Sagemaker.StoppingCondition, flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder, flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder> stoppingConditionBuilder_; /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ public boolean hasStoppingCondition() { return stoppingConditionBuilder_ != null || stoppingCondition_ != null; } /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public flyte.plugins.Sagemaker.StoppingCondition getStoppingCondition() { + public flyte.plugins.sagemaker.Sagemaker.StoppingCondition getStoppingCondition() { if (stoppingConditionBuilder_ == null) { - return stoppingCondition_ == null ? flyte.plugins.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; + return stoppingCondition_ == null ? flyte.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; } else { return stoppingConditionBuilder_.getMessage(); } } /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public Builder setStoppingCondition(flyte.plugins.Sagemaker.StoppingCondition value) { + public Builder setStoppingCondition(flyte.plugins.sagemaker.Sagemaker.StoppingCondition value) { if (stoppingConditionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9300,10 +9300,10 @@ public Builder setStoppingCondition(flyte.plugins.Sagemaker.StoppingCondition va return this; } /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ public Builder setStoppingCondition( - flyte.plugins.Sagemaker.StoppingCondition.Builder builderForValue) { + flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder builderForValue) { if (stoppingConditionBuilder_ == null) { stoppingCondition_ = builderForValue.build(); onChanged(); @@ -9314,13 +9314,13 @@ public Builder setStoppingCondition( return this; } /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public Builder mergeStoppingCondition(flyte.plugins.Sagemaker.StoppingCondition value) { + public Builder mergeStoppingCondition(flyte.plugins.sagemaker.Sagemaker.StoppingCondition value) { if (stoppingConditionBuilder_ == null) { if (stoppingCondition_ != null) { stoppingCondition_ = - flyte.plugins.Sagemaker.StoppingCondition.newBuilder(stoppingCondition_).mergeFrom(value).buildPartial(); + flyte.plugins.sagemaker.Sagemaker.StoppingCondition.newBuilder(stoppingCondition_).mergeFrom(value).buildPartial(); } else { stoppingCondition_ = value; } @@ -9332,7 +9332,7 @@ public Builder mergeStoppingCondition(flyte.plugins.Sagemaker.StoppingCondition return this; } /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ public Builder clearStoppingCondition() { if (stoppingConditionBuilder_ == null) { @@ -9346,33 +9346,33 @@ public Builder clearStoppingCondition() { return this; } /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public flyte.plugins.Sagemaker.StoppingCondition.Builder getStoppingConditionBuilder() { + public flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder getStoppingConditionBuilder() { onChanged(); return getStoppingConditionFieldBuilder().getBuilder(); } /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public flyte.plugins.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { if (stoppingConditionBuilder_ != null) { return stoppingConditionBuilder_.getMessageOrBuilder(); } else { return stoppingCondition_ == null ? - flyte.plugins.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; + flyte.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; } } /** - * .flyte.plugins.StoppingCondition StoppingCondition = 5; + * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.StoppingCondition, flyte.plugins.Sagemaker.StoppingCondition.Builder, flyte.plugins.Sagemaker.StoppingConditionOrBuilder> + flyte.plugins.sagemaker.Sagemaker.StoppingCondition, flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder, flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder> getStoppingConditionFieldBuilder() { if (stoppingConditionBuilder_ == null) { stoppingConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.StoppingCondition, flyte.plugins.Sagemaker.StoppingCondition.Builder, flyte.plugins.Sagemaker.StoppingConditionOrBuilder>( + flyte.plugins.sagemaker.Sagemaker.StoppingCondition, flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder, flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder>( getStoppingCondition(), getParentForChildren(), isClean()); @@ -9381,29 +9381,29 @@ public flyte.plugins.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOr return stoppingConditionBuilder_; } - private flyte.plugins.Sagemaker.VpcConfig vpcConfig_; + private flyte.plugins.sagemaker.Sagemaker.VpcConfig vpcConfig_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.VpcConfig, flyte.plugins.Sagemaker.VpcConfig.Builder, flyte.plugins.Sagemaker.VpcConfigOrBuilder> vpcConfigBuilder_; + flyte.plugins.sagemaker.Sagemaker.VpcConfig, flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder, flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder> vpcConfigBuilder_; /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ public boolean hasVpcConfig() { return vpcConfigBuilder_ != null || vpcConfig_ != null; } /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public flyte.plugins.Sagemaker.VpcConfig getVpcConfig() { + public flyte.plugins.sagemaker.Sagemaker.VpcConfig getVpcConfig() { if (vpcConfigBuilder_ == null) { - return vpcConfig_ == null ? flyte.plugins.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; + return vpcConfig_ == null ? flyte.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; } else { return vpcConfigBuilder_.getMessage(); } } /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public Builder setVpcConfig(flyte.plugins.Sagemaker.VpcConfig value) { + public Builder setVpcConfig(flyte.plugins.sagemaker.Sagemaker.VpcConfig value) { if (vpcConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9417,10 +9417,10 @@ public Builder setVpcConfig(flyte.plugins.Sagemaker.VpcConfig value) { return this; } /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ public Builder setVpcConfig( - flyte.plugins.Sagemaker.VpcConfig.Builder builderForValue) { + flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder builderForValue) { if (vpcConfigBuilder_ == null) { vpcConfig_ = builderForValue.build(); onChanged(); @@ -9431,13 +9431,13 @@ public Builder setVpcConfig( return this; } /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public Builder mergeVpcConfig(flyte.plugins.Sagemaker.VpcConfig value) { + public Builder mergeVpcConfig(flyte.plugins.sagemaker.Sagemaker.VpcConfig value) { if (vpcConfigBuilder_ == null) { if (vpcConfig_ != null) { vpcConfig_ = - flyte.plugins.Sagemaker.VpcConfig.newBuilder(vpcConfig_).mergeFrom(value).buildPartial(); + flyte.plugins.sagemaker.Sagemaker.VpcConfig.newBuilder(vpcConfig_).mergeFrom(value).buildPartial(); } else { vpcConfig_ = value; } @@ -9449,7 +9449,7 @@ public Builder mergeVpcConfig(flyte.plugins.Sagemaker.VpcConfig value) { return this; } /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ public Builder clearVpcConfig() { if (vpcConfigBuilder_ == null) { @@ -9463,33 +9463,33 @@ public Builder clearVpcConfig() { return this; } /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public flyte.plugins.Sagemaker.VpcConfig.Builder getVpcConfigBuilder() { + public flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder getVpcConfigBuilder() { onChanged(); return getVpcConfigFieldBuilder().getBuilder(); } /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public flyte.plugins.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder() { if (vpcConfigBuilder_ != null) { return vpcConfigBuilder_.getMessageOrBuilder(); } else { return vpcConfig_ == null ? - flyte.plugins.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; + flyte.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; } } /** - * .flyte.plugins.VpcConfig VpcConfig = 6; + * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.VpcConfig, flyte.plugins.Sagemaker.VpcConfig.Builder, flyte.plugins.Sagemaker.VpcConfigOrBuilder> + flyte.plugins.sagemaker.Sagemaker.VpcConfig, flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder, flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder> getVpcConfigFieldBuilder() { if (vpcConfigBuilder_ == null) { vpcConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.VpcConfig, flyte.plugins.Sagemaker.VpcConfig.Builder, flyte.plugins.Sagemaker.VpcConfigOrBuilder>( + flyte.plugins.sagemaker.Sagemaker.VpcConfig, flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder, flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder>( getVpcConfig(), getParentForChildren(), isClean()); @@ -9536,16 +9536,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.SagemakerTrainingJob) + // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.SagemakerTrainingJob) } - // @@protoc_insertion_point(class_scope:flyte.plugins.SagemakerTrainingJob) - private static final flyte.plugins.Sagemaker.SagemakerTrainingJob DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.SagemakerTrainingJob) + private static final flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.SagemakerTrainingJob(); + DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob(); } - public static flyte.plugins.Sagemaker.SagemakerTrainingJob getDefaultInstance() { + public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -9570,24 +9570,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.Sagemaker.SagemakerTrainingJob getDefaultInstanceForType() { + public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HPOJobObjectiveOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.HPOJobObjective) com.google.protobuf.MessageOrBuilder { /** - * .flyte.plugins.HPOJobObjectiveType Type = 1; + * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; */ int getTypeValue(); /** - * .flyte.plugins.HPOJobObjectiveType Type = 1; + * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; */ - flyte.plugins.Sagemaker.HPOJobObjectiveType getType(); + flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType getType(); /** * string MetricName = 2; @@ -9600,11 +9600,11 @@ public interface HPOJobObjectiveOrBuilder extends getMetricNameBytes(); } /** - * Protobuf type {@code flyte.plugins.HPOJobObjective} + * Protobuf type {@code flyte.plugins.sagemaker.HPOJobObjective} */ public static final class HPOJobObjective extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.HPOJobObjective) HPOJobObjectiveOrBuilder { private static final long serialVersionUID = 0L; // Use HPOJobObjective.newBuilder() to construct. @@ -9673,32 +9673,32 @@ private HPOJobObjective( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_HPOJobObjective_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_HPOJobObjective_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_HPOJobObjective_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_HPOJobObjective_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.HPOJobObjective.class, flyte.plugins.Sagemaker.HPOJobObjective.Builder.class); + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.class, flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * .flyte.plugins.HPOJobObjectiveType Type = 1; + * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; */ public int getTypeValue() { return type_; } /** - * .flyte.plugins.HPOJobObjectiveType Type = 1; + * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; */ - public flyte.plugins.Sagemaker.HPOJobObjectiveType getType() { + public flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType getType() { @SuppressWarnings("deprecation") - flyte.plugins.Sagemaker.HPOJobObjectiveType result = flyte.plugins.Sagemaker.HPOJobObjectiveType.valueOf(type_); - return result == null ? flyte.plugins.Sagemaker.HPOJobObjectiveType.UNRECOGNIZED : result; + flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType result = flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType.valueOf(type_); + return result == null ? flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType.UNRECOGNIZED : result; } public static final int METRICNAME_FIELD_NUMBER = 2; @@ -9749,7 +9749,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ != flyte.plugins.Sagemaker.HPOJobObjectiveType.MINIMIZE.getNumber()) { + if (type_ != flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType.MINIMIZE.getNumber()) { output.writeEnum(1, type_); } if (!getMetricNameBytes().isEmpty()) { @@ -9764,7 +9764,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != flyte.plugins.Sagemaker.HPOJobObjectiveType.MINIMIZE.getNumber()) { + if (type_ != flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType.MINIMIZE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } @@ -9781,10 +9781,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.Sagemaker.HPOJobObjective)) { + if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.HPOJobObjective)) { return super.equals(obj); } - flyte.plugins.Sagemaker.HPOJobObjective other = (flyte.plugins.Sagemaker.HPOJobObjective) obj; + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective other = (flyte.plugins.sagemaker.Sagemaker.HPOJobObjective) obj; if (type_ != other.type_) return false; if (!getMetricName() @@ -9809,69 +9809,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom(byte[] data) + public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective 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 flyte.plugins.Sagemaker.HPOJobObjective parseDelimitedFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.HPOJobObjective parseDelimitedFrom( + public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective 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 flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9884,7 +9884,7 @@ public static flyte.plugins.Sagemaker.HPOJobObjective parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.Sagemaker.HPOJobObjective prototype) { + public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.HPOJobObjective prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -9900,26 +9900,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.HPOJobObjective} + * Protobuf type {@code flyte.plugins.sagemaker.HPOJobObjective} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.HPOJobObjective) - flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder { + // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.HPOJobObjective) + flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_HPOJobObjective_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_HPOJobObjective_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_HPOJobObjective_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_HPOJobObjective_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.HPOJobObjective.class, flyte.plugins.Sagemaker.HPOJobObjective.Builder.class); + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.class, flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder.class); } - // Construct using flyte.plugins.Sagemaker.HPOJobObjective.newBuilder() + // Construct using flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -9947,17 +9947,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_HPOJobObjective_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_HPOJobObjective_descriptor; } @java.lang.Override - public flyte.plugins.Sagemaker.HPOJobObjective getDefaultInstanceForType() { - return flyte.plugins.Sagemaker.HPOJobObjective.getDefaultInstance(); + public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective getDefaultInstanceForType() { + return flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.Sagemaker.HPOJobObjective build() { - flyte.plugins.Sagemaker.HPOJobObjective result = buildPartial(); + public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective build() { + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9965,8 +9965,8 @@ public flyte.plugins.Sagemaker.HPOJobObjective build() { } @java.lang.Override - public flyte.plugins.Sagemaker.HPOJobObjective buildPartial() { - flyte.plugins.Sagemaker.HPOJobObjective result = new flyte.plugins.Sagemaker.HPOJobObjective(this); + public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective buildPartial() { + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective result = new flyte.plugins.sagemaker.Sagemaker.HPOJobObjective(this); result.type_ = type_; result.metricName_ = metricName_; onBuilt(); @@ -10007,16 +10007,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.Sagemaker.HPOJobObjective) { - return mergeFrom((flyte.plugins.Sagemaker.HPOJobObjective)other); + if (other instanceof flyte.plugins.sagemaker.Sagemaker.HPOJobObjective) { + return mergeFrom((flyte.plugins.sagemaker.Sagemaker.HPOJobObjective)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.Sagemaker.HPOJobObjective other) { - if (other == flyte.plugins.Sagemaker.HPOJobObjective.getDefaultInstance()) return this; + public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.HPOJobObjective other) { + if (other == flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -10039,11 +10039,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.Sagemaker.HPOJobObjective parsedMessage = null; + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.Sagemaker.HPOJobObjective) e.getUnfinishedMessage(); + parsedMessage = (flyte.plugins.sagemaker.Sagemaker.HPOJobObjective) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -10055,13 +10055,13 @@ public Builder mergeFrom( private int type_ = 0; /** - * .flyte.plugins.HPOJobObjectiveType Type = 1; + * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; */ public int getTypeValue() { return type_; } /** - * .flyte.plugins.HPOJobObjectiveType Type = 1; + * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; */ public Builder setTypeValue(int value) { type_ = value; @@ -10069,17 +10069,17 @@ public Builder setTypeValue(int value) { return this; } /** - * .flyte.plugins.HPOJobObjectiveType Type = 1; + * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; */ - public flyte.plugins.Sagemaker.HPOJobObjectiveType getType() { + public flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType getType() { @SuppressWarnings("deprecation") - flyte.plugins.Sagemaker.HPOJobObjectiveType result = flyte.plugins.Sagemaker.HPOJobObjectiveType.valueOf(type_); - return result == null ? flyte.plugins.Sagemaker.HPOJobObjectiveType.UNRECOGNIZED : result; + flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType result = flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType.valueOf(type_); + return result == null ? flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType.UNRECOGNIZED : result; } /** - * .flyte.plugins.HPOJobObjectiveType Type = 1; + * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; */ - public Builder setType(flyte.plugins.Sagemaker.HPOJobObjectiveType value) { + public Builder setType(flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType value) { if (value == null) { throw new NullPointerException(); } @@ -10089,7 +10089,7 @@ public Builder setType(flyte.plugins.Sagemaker.HPOJobObjectiveType value) { return this; } /** - * .flyte.plugins.HPOJobObjectiveType Type = 1; + * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; */ public Builder clearType() { @@ -10179,16 +10179,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.HPOJobObjective) + // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.HPOJobObjective) } - // @@protoc_insertion_point(class_scope:flyte.plugins.HPOJobObjective) - private static final flyte.plugins.Sagemaker.HPOJobObjective DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.HPOJobObjective) + private static final flyte.plugins.sagemaker.Sagemaker.HPOJobObjective DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.HPOJobObjective(); + DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.HPOJobObjective(); } - public static flyte.plugins.Sagemaker.HPOJobObjective getDefaultInstance() { + public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -10213,14 +10213,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.Sagemaker.HPOJobObjective getDefaultInstanceForType() { + public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SagemakerHPOJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.SagemakerHPOJob) com.google.protobuf.MessageOrBuilder { /** @@ -10234,17 +10234,17 @@ public interface SagemakerHPOJobOrBuilder extends getStrategyBytes(); /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ boolean hasObjective(); /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ - flyte.plugins.Sagemaker.HPOJobObjective getObjective(); + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective getObjective(); /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ - flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder(); + flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder(); /** * int64 MaxNumberOfTrainingJobs = 3; @@ -10257,37 +10257,37 @@ public interface SagemakerHPOJobOrBuilder extends long getMaxParallelTrainingJobs(); /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ boolean hasParameterRanges(); /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - flyte.plugins.Sagemaker.ParameterRanges getParameterRanges(); + flyte.plugins.sagemaker.Sagemaker.ParameterRanges getParameterRanges(); /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - flyte.plugins.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder(); + flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder(); /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ boolean hasTrainingJob(); /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - flyte.plugins.Sagemaker.SagemakerTrainingJob getTrainingJob(); + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getTrainingJob(); /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder(); + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder(); } /** - * Protobuf type {@code flyte.plugins.SagemakerHPOJob} + * Protobuf type {@code flyte.plugins.sagemaker.SagemakerHPOJob} */ public static final class SagemakerHPOJob extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.SagemakerHPOJob) SagemakerHPOJobOrBuilder { private static final long serialVersionUID = 0L; // Use SagemakerHPOJob.newBuilder() to construct. @@ -10329,11 +10329,11 @@ private SagemakerHPOJob( break; } case 18: { - flyte.plugins.Sagemaker.HPOJobObjective.Builder subBuilder = null; + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder subBuilder = null; if (objective_ != null) { subBuilder = objective_.toBuilder(); } - objective_ = input.readMessage(flyte.plugins.Sagemaker.HPOJobObjective.parser(), extensionRegistry); + objective_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(objective_); objective_ = subBuilder.buildPartial(); @@ -10352,11 +10352,11 @@ private SagemakerHPOJob( break; } case 42: { - flyte.plugins.Sagemaker.ParameterRanges.Builder subBuilder = null; + flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder subBuilder = null; if (parameterRanges_ != null) { subBuilder = parameterRanges_.toBuilder(); } - parameterRanges_ = input.readMessage(flyte.plugins.Sagemaker.ParameterRanges.parser(), extensionRegistry); + parameterRanges_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.ParameterRanges.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(parameterRanges_); parameterRanges_ = subBuilder.buildPartial(); @@ -10365,11 +10365,11 @@ private SagemakerHPOJob( break; } case 50: { - flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder subBuilder = null; + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder subBuilder = null; if (trainingJob_ != null) { subBuilder = trainingJob_.toBuilder(); } - trainingJob_ = input.readMessage(flyte.plugins.Sagemaker.SagemakerTrainingJob.parser(), extensionRegistry); + trainingJob_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(trainingJob_); trainingJob_ = subBuilder.buildPartial(); @@ -10398,15 +10398,15 @@ private SagemakerHPOJob( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerHPOJob_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerHPOJob_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.SagemakerHPOJob.class, flyte.plugins.Sagemaker.SagemakerHPOJob.Builder.class); + flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.class, flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.Builder.class); } public static final int STRATEGY_FIELD_NUMBER = 1; @@ -10444,23 +10444,23 @@ public java.lang.String getStrategy() { } public static final int OBJECTIVE_FIELD_NUMBER = 2; - private flyte.plugins.Sagemaker.HPOJobObjective objective_; + private flyte.plugins.sagemaker.Sagemaker.HPOJobObjective objective_; /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ public boolean hasObjective() { return objective_ != null; } /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public flyte.plugins.Sagemaker.HPOJobObjective getObjective() { - return objective_ == null ? flyte.plugins.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; + public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective getObjective() { + return objective_ == null ? flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; } /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { return getObjective(); } @@ -10483,44 +10483,44 @@ public long getMaxParallelTrainingJobs() { } public static final int PARAMETERRANGES_FIELD_NUMBER = 5; - private flyte.plugins.Sagemaker.ParameterRanges parameterRanges_; + private flyte.plugins.sagemaker.Sagemaker.ParameterRanges parameterRanges_; /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ public boolean hasParameterRanges() { return parameterRanges_ != null; } /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public flyte.plugins.Sagemaker.ParameterRanges getParameterRanges() { - return parameterRanges_ == null ? flyte.plugins.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; + public flyte.plugins.sagemaker.Sagemaker.ParameterRanges getParameterRanges() { + return parameterRanges_ == null ? flyte.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; } /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public flyte.plugins.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder() { return getParameterRanges(); } public static final int TRAININGJOB_FIELD_NUMBER = 6; - private flyte.plugins.Sagemaker.SagemakerTrainingJob trainingJob_; + private flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob trainingJob_; /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ public boolean hasTrainingJob() { return trainingJob_ != null; } /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public flyte.plugins.Sagemaker.SagemakerTrainingJob getTrainingJob() { - return trainingJob_ == null ? flyte.plugins.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; + public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getTrainingJob() { + return trainingJob_ == null ? flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; } /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder() { return getTrainingJob(); } @@ -10598,10 +10598,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.Sagemaker.SagemakerHPOJob)) { + if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob)) { return super.equals(obj); } - flyte.plugins.Sagemaker.SagemakerHPOJob other = (flyte.plugins.Sagemaker.SagemakerHPOJob) obj; + flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob other = (flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob) obj; if (!getStrategy() .equals(other.getStrategy())) return false; @@ -10660,69 +10660,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom(byte[] data) + public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob 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 flyte.plugins.Sagemaker.SagemakerHPOJob parseDelimitedFrom(java.io.InputStream input) + public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.SagemakerHPOJob parseDelimitedFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob 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 flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( + public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -10735,7 +10735,7 @@ public static flyte.plugins.Sagemaker.SagemakerHPOJob parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.Sagemaker.SagemakerHPOJob prototype) { + public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -10751,26 +10751,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.SagemakerHPOJob} + * Protobuf type {@code flyte.plugins.sagemaker.SagemakerHPOJob} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.SagemakerHPOJob) - flyte.plugins.Sagemaker.SagemakerHPOJobOrBuilder { + // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.SagemakerHPOJob) + flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJobOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerHPOJob_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerHPOJob_fieldAccessorTable + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.Sagemaker.SagemakerHPOJob.class, flyte.plugins.Sagemaker.SagemakerHPOJob.Builder.class); + flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.class, flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.Builder.class); } - // Construct using flyte.plugins.Sagemaker.SagemakerHPOJob.newBuilder() + // Construct using flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -10818,17 +10818,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.Sagemaker.internal_static_flyte_plugins_SagemakerHPOJob_descriptor; + return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_descriptor; } @java.lang.Override - public flyte.plugins.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { - return flyte.plugins.Sagemaker.SagemakerHPOJob.getDefaultInstance(); + public flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { + return flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.Sagemaker.SagemakerHPOJob build() { - flyte.plugins.Sagemaker.SagemakerHPOJob result = buildPartial(); + public flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob build() { + flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10836,8 +10836,8 @@ public flyte.plugins.Sagemaker.SagemakerHPOJob build() { } @java.lang.Override - public flyte.plugins.Sagemaker.SagemakerHPOJob buildPartial() { - flyte.plugins.Sagemaker.SagemakerHPOJob result = new flyte.plugins.Sagemaker.SagemakerHPOJob(this); + public flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob buildPartial() { + flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob result = new flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob(this); result.strategy_ = strategy_; if (objectiveBuilder_ == null) { result.objective_ = objective_; @@ -10894,16 +10894,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.Sagemaker.SagemakerHPOJob) { - return mergeFrom((flyte.plugins.Sagemaker.SagemakerHPOJob)other); + if (other instanceof flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob) { + return mergeFrom((flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.Sagemaker.SagemakerHPOJob other) { - if (other == flyte.plugins.Sagemaker.SagemakerHPOJob.getDefaultInstance()) return this; + public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob other) { + if (other == flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.getDefaultInstance()) return this; if (!other.getStrategy().isEmpty()) { strategy_ = other.strategy_; onChanged(); @@ -10938,11 +10938,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.Sagemaker.SagemakerHPOJob parsedMessage = null; + flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.Sagemaker.SagemakerHPOJob) e.getUnfinishedMessage(); + parsedMessage = (flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -11021,29 +11021,29 @@ public Builder setStrategyBytes( return this; } - private flyte.plugins.Sagemaker.HPOJobObjective objective_; + private flyte.plugins.sagemaker.Sagemaker.HPOJobObjective objective_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.HPOJobObjective, flyte.plugins.Sagemaker.HPOJobObjective.Builder, flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder> objectiveBuilder_; + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective, flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder, flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder> objectiveBuilder_; /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ public boolean hasObjective() { return objectiveBuilder_ != null || objective_ != null; } /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public flyte.plugins.Sagemaker.HPOJobObjective getObjective() { + public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective getObjective() { if (objectiveBuilder_ == null) { - return objective_ == null ? flyte.plugins.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; + return objective_ == null ? flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; } else { return objectiveBuilder_.getMessage(); } } /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public Builder setObjective(flyte.plugins.Sagemaker.HPOJobObjective value) { + public Builder setObjective(flyte.plugins.sagemaker.Sagemaker.HPOJobObjective value) { if (objectiveBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11057,10 +11057,10 @@ public Builder setObjective(flyte.plugins.Sagemaker.HPOJobObjective value) { return this; } /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ public Builder setObjective( - flyte.plugins.Sagemaker.HPOJobObjective.Builder builderForValue) { + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder builderForValue) { if (objectiveBuilder_ == null) { objective_ = builderForValue.build(); onChanged(); @@ -11071,13 +11071,13 @@ public Builder setObjective( return this; } /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public Builder mergeObjective(flyte.plugins.Sagemaker.HPOJobObjective value) { + public Builder mergeObjective(flyte.plugins.sagemaker.Sagemaker.HPOJobObjective value) { if (objectiveBuilder_ == null) { if (objective_ != null) { objective_ = - flyte.plugins.Sagemaker.HPOJobObjective.newBuilder(objective_).mergeFrom(value).buildPartial(); + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.newBuilder(objective_).mergeFrom(value).buildPartial(); } else { objective_ = value; } @@ -11089,7 +11089,7 @@ public Builder mergeObjective(flyte.plugins.Sagemaker.HPOJobObjective value) { return this; } /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ public Builder clearObjective() { if (objectiveBuilder_ == null) { @@ -11103,33 +11103,33 @@ public Builder clearObjective() { return this; } /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public flyte.plugins.Sagemaker.HPOJobObjective.Builder getObjectiveBuilder() { + public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder getObjectiveBuilder() { onChanged(); return getObjectiveFieldBuilder().getBuilder(); } /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { if (objectiveBuilder_ != null) { return objectiveBuilder_.getMessageOrBuilder(); } else { return objective_ == null ? - flyte.plugins.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; } } /** - * .flyte.plugins.HPOJobObjective Objective = 2; + * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.HPOJobObjective, flyte.plugins.Sagemaker.HPOJobObjective.Builder, flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder> + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective, flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder, flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder> getObjectiveFieldBuilder() { if (objectiveBuilder_ == null) { objectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.HPOJobObjective, flyte.plugins.Sagemaker.HPOJobObjective.Builder, flyte.plugins.Sagemaker.HPOJobObjectiveOrBuilder>( + flyte.plugins.sagemaker.Sagemaker.HPOJobObjective, flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder, flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder>( getObjective(), getParentForChildren(), isClean()); @@ -11190,29 +11190,29 @@ public Builder clearMaxParallelTrainingJobs() { return this; } - private flyte.plugins.Sagemaker.ParameterRanges parameterRanges_; + private flyte.plugins.sagemaker.Sagemaker.ParameterRanges parameterRanges_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.ParameterRanges, flyte.plugins.Sagemaker.ParameterRanges.Builder, flyte.plugins.Sagemaker.ParameterRangesOrBuilder> parameterRangesBuilder_; + flyte.plugins.sagemaker.Sagemaker.ParameterRanges, flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder, flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder> parameterRangesBuilder_; /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ public boolean hasParameterRanges() { return parameterRangesBuilder_ != null || parameterRanges_ != null; } /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public flyte.plugins.Sagemaker.ParameterRanges getParameterRanges() { + public flyte.plugins.sagemaker.Sagemaker.ParameterRanges getParameterRanges() { if (parameterRangesBuilder_ == null) { - return parameterRanges_ == null ? flyte.plugins.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; + return parameterRanges_ == null ? flyte.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; } else { return parameterRangesBuilder_.getMessage(); } } /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public Builder setParameterRanges(flyte.plugins.Sagemaker.ParameterRanges value) { + public Builder setParameterRanges(flyte.plugins.sagemaker.Sagemaker.ParameterRanges value) { if (parameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11226,10 +11226,10 @@ public Builder setParameterRanges(flyte.plugins.Sagemaker.ParameterRanges value) return this; } /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ public Builder setParameterRanges( - flyte.plugins.Sagemaker.ParameterRanges.Builder builderForValue) { + flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder builderForValue) { if (parameterRangesBuilder_ == null) { parameterRanges_ = builderForValue.build(); onChanged(); @@ -11240,13 +11240,13 @@ public Builder setParameterRanges( return this; } /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public Builder mergeParameterRanges(flyte.plugins.Sagemaker.ParameterRanges value) { + public Builder mergeParameterRanges(flyte.plugins.sagemaker.Sagemaker.ParameterRanges value) { if (parameterRangesBuilder_ == null) { if (parameterRanges_ != null) { parameterRanges_ = - flyte.plugins.Sagemaker.ParameterRanges.newBuilder(parameterRanges_).mergeFrom(value).buildPartial(); + flyte.plugins.sagemaker.Sagemaker.ParameterRanges.newBuilder(parameterRanges_).mergeFrom(value).buildPartial(); } else { parameterRanges_ = value; } @@ -11258,7 +11258,7 @@ public Builder mergeParameterRanges(flyte.plugins.Sagemaker.ParameterRanges valu return this; } /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ public Builder clearParameterRanges() { if (parameterRangesBuilder_ == null) { @@ -11272,33 +11272,33 @@ public Builder clearParameterRanges() { return this; } /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public flyte.plugins.Sagemaker.ParameterRanges.Builder getParameterRangesBuilder() { + public flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder getParameterRangesBuilder() { onChanged(); return getParameterRangesFieldBuilder().getBuilder(); } /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public flyte.plugins.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder() { if (parameterRangesBuilder_ != null) { return parameterRangesBuilder_.getMessageOrBuilder(); } else { return parameterRanges_ == null ? - flyte.plugins.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; + flyte.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; } } /** - * .flyte.plugins.ParameterRanges ParameterRanges = 5; + * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.ParameterRanges, flyte.plugins.Sagemaker.ParameterRanges.Builder, flyte.plugins.Sagemaker.ParameterRangesOrBuilder> + flyte.plugins.sagemaker.Sagemaker.ParameterRanges, flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder, flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder> getParameterRangesFieldBuilder() { if (parameterRangesBuilder_ == null) { parameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.ParameterRanges, flyte.plugins.Sagemaker.ParameterRanges.Builder, flyte.plugins.Sagemaker.ParameterRangesOrBuilder>( + flyte.plugins.sagemaker.Sagemaker.ParameterRanges, flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder, flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder>( getParameterRanges(), getParentForChildren(), isClean()); @@ -11307,29 +11307,29 @@ public flyte.plugins.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuil return parameterRangesBuilder_; } - private flyte.plugins.Sagemaker.SagemakerTrainingJob trainingJob_; + private flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob trainingJob_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.SagemakerTrainingJob, flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder, flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder> trainingJobBuilder_; + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder> trainingJobBuilder_; /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ public boolean hasTrainingJob() { return trainingJobBuilder_ != null || trainingJob_ != null; } /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public flyte.plugins.Sagemaker.SagemakerTrainingJob getTrainingJob() { + public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getTrainingJob() { if (trainingJobBuilder_ == null) { - return trainingJob_ == null ? flyte.plugins.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; + return trainingJob_ == null ? flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; } else { return trainingJobBuilder_.getMessage(); } } /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public Builder setTrainingJob(flyte.plugins.Sagemaker.SagemakerTrainingJob value) { + public Builder setTrainingJob(flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob value) { if (trainingJobBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11343,10 +11343,10 @@ public Builder setTrainingJob(flyte.plugins.Sagemaker.SagemakerTrainingJob value return this; } /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ public Builder setTrainingJob( - flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder builderForValue) { + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder builderForValue) { if (trainingJobBuilder_ == null) { trainingJob_ = builderForValue.build(); onChanged(); @@ -11357,13 +11357,13 @@ public Builder setTrainingJob( return this; } /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public Builder mergeTrainingJob(flyte.plugins.Sagemaker.SagemakerTrainingJob value) { + public Builder mergeTrainingJob(flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob value) { if (trainingJobBuilder_ == null) { if (trainingJob_ != null) { trainingJob_ = - flyte.plugins.Sagemaker.SagemakerTrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); } else { trainingJob_ = value; } @@ -11375,7 +11375,7 @@ public Builder mergeTrainingJob(flyte.plugins.Sagemaker.SagemakerTrainingJob val return this; } /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ public Builder clearTrainingJob() { if (trainingJobBuilder_ == null) { @@ -11389,33 +11389,33 @@ public Builder clearTrainingJob() { return this; } /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder getTrainingJobBuilder() { + public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder getTrainingJobBuilder() { onChanged(); return getTrainingJobFieldBuilder().getBuilder(); } /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder() { + public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder() { if (trainingJobBuilder_ != null) { return trainingJobBuilder_.getMessageOrBuilder(); } else { return trainingJob_ == null ? - flyte.plugins.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; } } /** - * .flyte.plugins.SagemakerTrainingJob TrainingJob = 6; + * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.SagemakerTrainingJob, flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder, flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder> + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder> getTrainingJobFieldBuilder() { if (trainingJobBuilder_ == null) { trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.Sagemaker.SagemakerTrainingJob, flyte.plugins.Sagemaker.SagemakerTrainingJob.Builder, flyte.plugins.Sagemaker.SagemakerTrainingJobOrBuilder>( + flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder>( getTrainingJob(), getParentForChildren(), isClean()); @@ -11436,16 +11436,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.SagemakerHPOJob) + // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.SagemakerHPOJob) } - // @@protoc_insertion_point(class_scope:flyte.plugins.SagemakerHPOJob) - private static final flyte.plugins.Sagemaker.SagemakerHPOJob DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.SagemakerHPOJob) + private static final flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.Sagemaker.SagemakerHPOJob(); + DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob(); } - public static flyte.plugins.Sagemaker.SagemakerHPOJob getDefaultInstance() { + public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -11470,72 +11470,72 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { + public flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_ContinuousParameterRange_descriptor; + internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_ContinuousParameterRange_fieldAccessorTable; + internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_IntegerParameterRange_descriptor; + internal_static_flyte_plugins_sagemaker_IntegerParameterRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_IntegerParameterRange_fieldAccessorTable; + internal_static_flyte_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_CategoricalParameterRange_descriptor; + internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_CategoricalParameterRange_fieldAccessorTable; + internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_ParameterRanges_descriptor; + internal_static_flyte_plugins_sagemaker_ParameterRanges_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_ParameterRanges_fieldAccessorTable; + internal_static_flyte_plugins_sagemaker_ParameterRanges_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_AlgorithmSpecification_descriptor; + internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_AlgorithmSpecification_fieldAccessorTable; + internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_descriptor; + internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; + internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_ResourceConfig_descriptor; + internal_static_flyte_plugins_sagemaker_ResourceConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_ResourceConfig_fieldAccessorTable; + internal_static_flyte_plugins_sagemaker_ResourceConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_StoppingCondition_descriptor; + internal_static_flyte_plugins_sagemaker_StoppingCondition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_StoppingCondition_fieldAccessorTable; + internal_static_flyte_plugins_sagemaker_StoppingCondition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_VpcConfig_descriptor; + internal_static_flyte_plugins_sagemaker_VpcConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_VpcConfig_fieldAccessorTable; + internal_static_flyte_plugins_sagemaker_VpcConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_SagemakerTrainingJob_descriptor; + internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_SagemakerTrainingJob_fieldAccessorTable; + internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_HPOJobObjective_descriptor; + internal_static_flyte_plugins_sagemaker_HPOJobObjective_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_HPOJobObjective_fieldAccessorTable; + internal_static_flyte_plugins_sagemaker_HPOJobObjective_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_SagemakerHPOJob_descriptor; + internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_SagemakerHPOJob_fieldAccessorTable; + internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -11545,26 +11545,28 @@ public flyte.plugins.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { descriptor; static { java.lang.String[] descriptorData = { - "\n flyteidl/plugins/sagemaker.proto\022\rflyt" + - "e.plugins\"\213\001\n\030ContinuousParameterRange\022\014" + - "\n\004Name\030\001 \001(\t\022\020\n\010MaxValue\030\002 \001(\001\022\020\n\010MinVal" + - "ue\030\003 \001(\001\022=\n\013ScalingType\030\004 \001(\0162(.flyte.pl" + - "ugins.HyperparameterScalingType\"\210\001\n\025Inte" + - "gerParameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxVa" + - "lue\030\002 \001(\002\022\020\n\010MinValue\030\003 \001(\002\022=\n\013ScalingTy" + - "pe\030\004 \001(\0162(.flyte.plugins.HyperparameterS" + + "\n*flyteidl/plugins/sagemaker/sagemaker.p" + + "roto\022\027flyte.plugins.sagemaker\"\225\001\n\030Contin" + + "uousParameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxV" + + "alue\030\002 \001(\001\022\020\n\010MinValue\030\003 \001(\001\022G\n\013ScalingT" + + "ype\030\004 \001(\01622.flyte.plugins.sagemaker.Hype" + + "rparameterScalingType\"\222\001\n\025IntegerParamet" + + "erRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxValue\030\002 \001(\002\022" + + "\020\n\010MinValue\030\003 \001(\002\022G\n\013ScalingType\030\004 \001(\01622" + + ".flyte.plugins.sagemaker.HyperparameterS" + "calingType\"9\n\031CategoricalParameterRange\022" + - "\014\n\004Name\030\001 \001(\t\022\016\n\006Values\030\002 \003(\t\"\361\001\n\017Parame" + - "terRanges\022J\n\031ContinuousParameterRanges\030\001" + - " \003(\0132\'.flyte.plugins.ContinuousParameter" + - "Range\022D\n\026IntegerParameterRanges\030\002 \003(\0132$." + - "flyte.plugins.IntegerParameterRange\022L\n\032C" + - "ategoricalParameterRanges\030\003 \003(\0132(.flyte." + - "plugins.CategoricalParameterRange\"\345\001\n\026Al" + - "gorithmSpecification\022\025\n\rTrainingImage\030\001 " + - "\001(\t\022\031\n\021TrainingInputMode\030\002 \001(\t\022\025\n\rAlgori" + - "thmName\030\003 \001(\t\022Q\n\021MetricDefinitions\030\004 \003(\013" + - "26.flyte.plugins.AlgorithmSpecification." + + "\014\n\004Name\030\001 \001(\t\022\016\n\006Values\030\002 \003(\t\"\217\002\n\017Parame" + + "terRanges\022T\n\031ContinuousParameterRanges\030\001" + + " \003(\01321.flyte.plugins.sagemaker.Continuou" + + "sParameterRange\022N\n\026IntegerParameterRange" + + "s\030\002 \003(\0132..flyte.plugins.sagemaker.Intege" + + "rParameterRange\022V\n\032CategoricalParameterR" + + "anges\030\003 \003(\01322.flyte.plugins.sagemaker.Ca" + + "tegoricalParameterRange\"\357\001\n\026AlgorithmSpe" + + "cification\022\025\n\rTrainingImage\030\001 \001(\t\022\031\n\021Tra" + + "iningInputMode\030\002 \001(\t\022\025\n\rAlgorithmName\030\003 " + + "\001(\t\022[\n\021MetricDefinitions\030\004 \003(\0132@.flyte.p" + + "lugins.sagemaker.AlgorithmSpecification." + "MetricDefinition\032/\n\020MetricDefinition\022\014\n\004" + "Name\030\001 \001(\t\022\r\n\005Regex\030\002 \001(\t\"m\n\016ResourceCon" + "fig\022\024\n\014InstanceType\030\001 \001(\t\022\025\n\rInstanceCou" + @@ -11572,24 +11574,26 @@ public flyte.plugins.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { "meKmsKeyId\030\004 \001(\t\"N\n\021StoppingCondition\022\033\n" + "\023MaxRuntimeInSeconds\030\001 \001(\003\022\034\n\024MaxWaitTim" + "eInSeconds\030\002 \001(\003\"6\n\tVpcConfig\022\030\n\020Securit" + - "yGroupIds\030\001 \003(\t\022\017\n\007Subnets\030\002 \003(\t\"\273\002\n\024Sag" + + "yGroupIds\030\001 \003(\t\022\017\n\007Subnets\030\002 \003(\t\"\343\002\n\024Sag" + "emakerTrainingJob\022\016\n\006Region\030\001 \001(\t\022\017\n\007Rol" + - "eArn\030\002 \001(\t\022E\n\026AlgorithmSpecification\030\003 \001" + - "(\0132%.flyte.plugins.AlgorithmSpecificatio" + - "n\0225\n\016ResourceConfig\030\004 \001(\0132\035.flyte.plugin" + - "s.ResourceConfig\022;\n\021StoppingCondition\030\005 " + - "\001(\0132 .flyte.plugins.StoppingCondition\022+\n" + - "\tVpcConfig\030\006 \001(\0132\030.flyte.plugins.VpcConf" + - "ig\022\032\n\022EnableSpotTraining\030\007 \001(\010\"W\n\017HPOJob" + - "Objective\0220\n\004Type\030\001 \001(\0162\".flyte.plugins." + - "HPOJobObjectiveType\022\022\n\nMetricName\030\002 \001(\t\"" + - "\213\002\n\017SagemakerHPOJob\022\020\n\010Strategy\030\001 \001(\t\0221\n" + - "\tObjective\030\002 \001(\0132\036.flyte.plugins.HPOJobO" + - "bjective\022\037\n\027MaxNumberOfTrainingJobs\030\003 \001(" + - "\003\022\037\n\027MaxParallelTrainingJobs\030\004 \001(\003\0227\n\017Pa" + - "rameterRanges\030\005 \001(\0132\036.flyte.plugins.Para" + - "meterRanges\0228\n\013TrainingJob\030\006 \001(\0132#.flyte" + - ".plugins.SagemakerTrainingJob*Z\n\031Hyperpa" + + "eArn\030\002 \001(\t\022O\n\026AlgorithmSpecification\030\003 \001" + + "(\0132/.flyte.plugins.sagemaker.AlgorithmSp" + + "ecification\022?\n\016ResourceConfig\030\004 \001(\0132\'.fl" + + "yte.plugins.sagemaker.ResourceConfig\022E\n\021" + + "StoppingCondition\030\005 \001(\0132*.flyte.plugins." + + "sagemaker.StoppingCondition\0225\n\tVpcConfig" + + "\030\006 \001(\0132\".flyte.plugins.sagemaker.VpcConf" + + "ig\022\032\n\022EnableSpotTraining\030\007 \001(\010\"a\n\017HPOJob" + + "Objective\022:\n\004Type\030\001 \001(\0162,.flyte.plugins." + + "sagemaker.HPOJobObjectiveType\022\022\n\nMetricN" + + "ame\030\002 \001(\t\"\251\002\n\017SagemakerHPOJob\022\020\n\010Strateg" + + "y\030\001 \001(\t\022;\n\tObjective\030\002 \001(\0132(.flyte.plugi" + + "ns.sagemaker.HPOJobObjective\022\037\n\027MaxNumbe" + + "rOfTrainingJobs\030\003 \001(\003\022\037\n\027MaxParallelTrai" + + "ningJobs\030\004 \001(\003\022A\n\017ParameterRanges\030\005 \001(\0132" + + "(.flyte.plugins.sagemaker.ParameterRange" + + "s\022B\n\013TrainingJob\030\006 \001(\0132-.flyte.plugins.s" + + "agemaker.SagemakerTrainingJob*Z\n\031Hyperpa" + "rameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001" + "\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHMIC\020" + "\003*1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE\020\000\022\014" + @@ -11608,77 +11612,77 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); - internal_static_flyte_plugins_ContinuousParameterRange_descriptor = + internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_flyte_plugins_ContinuousParameterRange_fieldAccessorTable = new + internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_ContinuousParameterRange_descriptor, + internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_descriptor, new java.lang.String[] { "Name", "MaxValue", "MinValue", "ScalingType", }); - internal_static_flyte_plugins_IntegerParameterRange_descriptor = + internal_static_flyte_plugins_sagemaker_IntegerParameterRange_descriptor = getDescriptor().getMessageTypes().get(1); - internal_static_flyte_plugins_IntegerParameterRange_fieldAccessorTable = new + internal_static_flyte_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_IntegerParameterRange_descriptor, + internal_static_flyte_plugins_sagemaker_IntegerParameterRange_descriptor, new java.lang.String[] { "Name", "MaxValue", "MinValue", "ScalingType", }); - internal_static_flyte_plugins_CategoricalParameterRange_descriptor = + internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_flyte_plugins_CategoricalParameterRange_fieldAccessorTable = new + internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_CategoricalParameterRange_descriptor, + internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_descriptor, new java.lang.String[] { "Name", "Values", }); - internal_static_flyte_plugins_ParameterRanges_descriptor = + internal_static_flyte_plugins_sagemaker_ParameterRanges_descriptor = getDescriptor().getMessageTypes().get(3); - internal_static_flyte_plugins_ParameterRanges_fieldAccessorTable = new + internal_static_flyte_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_ParameterRanges_descriptor, + internal_static_flyte_plugins_sagemaker_ParameterRanges_descriptor, new java.lang.String[] { "ContinuousParameterRanges", "IntegerParameterRanges", "CategoricalParameterRanges", }); - internal_static_flyte_plugins_AlgorithmSpecification_descriptor = + internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor = getDescriptor().getMessageTypes().get(4); - internal_static_flyte_plugins_AlgorithmSpecification_fieldAccessorTable = new + internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_AlgorithmSpecification_descriptor, + internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor, new java.lang.String[] { "TrainingImage", "TrainingInputMode", "AlgorithmName", "MetricDefinitions", }); - internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_descriptor = - internal_static_flyte_plugins_AlgorithmSpecification_descriptor.getNestedTypes().get(0); - internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new + internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor = + internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor.getNestedTypes().get(0); + internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_AlgorithmSpecification_MetricDefinition_descriptor, + internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, new java.lang.String[] { "Name", "Regex", }); - internal_static_flyte_plugins_ResourceConfig_descriptor = + internal_static_flyte_plugins_sagemaker_ResourceConfig_descriptor = getDescriptor().getMessageTypes().get(5); - internal_static_flyte_plugins_ResourceConfig_fieldAccessorTable = new + internal_static_flyte_plugins_sagemaker_ResourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_ResourceConfig_descriptor, + internal_static_flyte_plugins_sagemaker_ResourceConfig_descriptor, new java.lang.String[] { "InstanceType", "InstanceCount", "VolumeSizeInGB", "VolumeKmsKeyId", }); - internal_static_flyte_plugins_StoppingCondition_descriptor = + internal_static_flyte_plugins_sagemaker_StoppingCondition_descriptor = getDescriptor().getMessageTypes().get(6); - internal_static_flyte_plugins_StoppingCondition_fieldAccessorTable = new + internal_static_flyte_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_StoppingCondition_descriptor, + internal_static_flyte_plugins_sagemaker_StoppingCondition_descriptor, new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", }); - internal_static_flyte_plugins_VpcConfig_descriptor = + internal_static_flyte_plugins_sagemaker_VpcConfig_descriptor = getDescriptor().getMessageTypes().get(7); - internal_static_flyte_plugins_VpcConfig_fieldAccessorTable = new + internal_static_flyte_plugins_sagemaker_VpcConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_VpcConfig_descriptor, + internal_static_flyte_plugins_sagemaker_VpcConfig_descriptor, new java.lang.String[] { "SecurityGroupIds", "Subnets", }); - internal_static_flyte_plugins_SagemakerTrainingJob_descriptor = + internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_descriptor = getDescriptor().getMessageTypes().get(8); - internal_static_flyte_plugins_SagemakerTrainingJob_fieldAccessorTable = new + internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_SagemakerTrainingJob_descriptor, + internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_descriptor, new java.lang.String[] { "Region", "RoleArn", "AlgorithmSpecification", "ResourceConfig", "StoppingCondition", "VpcConfig", "EnableSpotTraining", }); - internal_static_flyte_plugins_HPOJobObjective_descriptor = + internal_static_flyte_plugins_sagemaker_HPOJobObjective_descriptor = getDescriptor().getMessageTypes().get(9); - internal_static_flyte_plugins_HPOJobObjective_fieldAccessorTable = new + internal_static_flyte_plugins_sagemaker_HPOJobObjective_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_HPOJobObjective_descriptor, + internal_static_flyte_plugins_sagemaker_HPOJobObjective_descriptor, new java.lang.String[] { "Type", "MetricName", }); - internal_static_flyte_plugins_SagemakerHPOJob_descriptor = + internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_descriptor = getDescriptor().getMessageTypes().get(10); - internal_static_flyte_plugins_SagemakerHPOJob_fieldAccessorTable = new + internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_SagemakerHPOJob_descriptor, + internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_descriptor, new java.lang.String[] { "Strategy", "Objective", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", "ParameterRanges", "TrainingJob", }); } diff --git a/gen/pb-protodoc/flyteidl/plugins/index.rst b/gen/pb-protodoc/flyteidl/plugins/index.rst index b4678e0c7..42ee7929e 100644 --- a/gen/pb-protodoc/flyteidl/plugins/index.rst +++ b/gen/pb-protodoc/flyteidl/plugins/index.rst @@ -10,11 +10,11 @@ Plugins available in the Flyte system. :caption: plugins :name: pluginstoc + sagemaker/index array_job.proto presto.proto pytorch.proto qubole.proto - sagemaker.proto sidecar.proto spark.proto waitable.proto diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker.proto.rst deleted file mode 100644 index c8c2fb1cf..000000000 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker.proto.rst +++ /dev/null @@ -1,482 +0,0 @@ -.. _api_file_flyteidl/plugins/sagemaker.proto: - -sagemaker.proto -================================ - -.. _api_msg_flyte.plugins.ContinuousParameterRange: - -flyte.plugins.ContinuousParameterRange --------------------------------------- - -`[flyte.plugins.ContinuousParameterRange proto] `_ - - -.. code-block:: json - - { - "Name": "...", - "MaxValue": "...", - "MinValue": "...", - "ScalingType": "..." - } - -.. _api_field_flyte.plugins.ContinuousParameterRange.Name: - -Name - (`string `_) - -.. _api_field_flyte.plugins.ContinuousParameterRange.MaxValue: - -MaxValue - (`double `_) - -.. _api_field_flyte.plugins.ContinuousParameterRange.MinValue: - -MinValue - (`double `_) - -.. _api_field_flyte.plugins.ContinuousParameterRange.ScalingType: - -ScalingType - (:ref:`flyte.plugins.HyperparameterScalingType `) - - - -.. _api_msg_flyte.plugins.IntegerParameterRange: - -flyte.plugins.IntegerParameterRange ------------------------------------ - -`[flyte.plugins.IntegerParameterRange proto] `_ - - -.. code-block:: json - - { - "Name": "...", - "MaxValue": "...", - "MinValue": "...", - "ScalingType": "..." - } - -.. _api_field_flyte.plugins.IntegerParameterRange.Name: - -Name - (`string `_) - -.. _api_field_flyte.plugins.IntegerParameterRange.MaxValue: - -MaxValue - (`float `_) - -.. _api_field_flyte.plugins.IntegerParameterRange.MinValue: - -MinValue - (`float `_) - -.. _api_field_flyte.plugins.IntegerParameterRange.ScalingType: - -ScalingType - (:ref:`flyte.plugins.HyperparameterScalingType `) - - - -.. _api_msg_flyte.plugins.CategoricalParameterRange: - -flyte.plugins.CategoricalParameterRange ---------------------------------------- - -`[flyte.plugins.CategoricalParameterRange proto] `_ - - -.. code-block:: json - - { - "Name": "...", - "Values": [] - } - -.. _api_field_flyte.plugins.CategoricalParameterRange.Name: - -Name - (`string `_) - -.. _api_field_flyte.plugins.CategoricalParameterRange.Values: - -Values - (`string `_) - - - -.. _api_msg_flyte.plugins.ParameterRanges: - -flyte.plugins.ParameterRanges ------------------------------ - -`[flyte.plugins.ParameterRanges proto] `_ - - -.. code-block:: json - - { - "ContinuousParameterRanges": [], - "IntegerParameterRanges": [], - "CategoricalParameterRanges": [] - } - -.. _api_field_flyte.plugins.ParameterRanges.ContinuousParameterRanges: - -ContinuousParameterRanges - (:ref:`flyte.plugins.ContinuousParameterRange `) - -.. _api_field_flyte.plugins.ParameterRanges.IntegerParameterRanges: - -IntegerParameterRanges - (:ref:`flyte.plugins.IntegerParameterRange `) - -.. _api_field_flyte.plugins.ParameterRanges.CategoricalParameterRanges: - -CategoricalParameterRanges - (:ref:`flyte.plugins.CategoricalParameterRange `) - - - -.. _api_msg_flyte.plugins.AlgorithmSpecification: - -flyte.plugins.AlgorithmSpecification ------------------------------------- - -`[flyte.plugins.AlgorithmSpecification proto] `_ - - -.. code-block:: json - - { - "TrainingImage": "...", - "TrainingInputMode": "...", - "AlgorithmName": "...", - "MetricDefinitions": [] - } - -.. _api_field_flyte.plugins.AlgorithmSpecification.TrainingImage: - -TrainingImage - (`string `_) - -.. _api_field_flyte.plugins.AlgorithmSpecification.TrainingInputMode: - -TrainingInputMode - (`string `_) - -.. _api_field_flyte.plugins.AlgorithmSpecification.AlgorithmName: - -AlgorithmName - (`string `_) - -.. _api_field_flyte.plugins.AlgorithmSpecification.MetricDefinitions: - -MetricDefinitions - (:ref:`flyte.plugins.AlgorithmSpecification.MetricDefinition `) - -.. _api_msg_flyte.plugins.AlgorithmSpecification.MetricDefinition: - -flyte.plugins.AlgorithmSpecification.MetricDefinition ------------------------------------------------------ - -`[flyte.plugins.AlgorithmSpecification.MetricDefinition proto] `_ - - -.. code-block:: json - - { - "Name": "...", - "Regex": "..." - } - -.. _api_field_flyte.plugins.AlgorithmSpecification.MetricDefinition.Name: - -Name - (`string `_) - -.. _api_field_flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex: - -Regex - (`string `_) - - - - -.. _api_msg_flyte.plugins.ResourceConfig: - -flyte.plugins.ResourceConfig ----------------------------- - -`[flyte.plugins.ResourceConfig proto] `_ - - -.. code-block:: json - - { - "InstanceType": "...", - "InstanceCount": "...", - "VolumeSizeInGB": "...", - "VolumeKmsKeyId": "..." - } - -.. _api_field_flyte.plugins.ResourceConfig.InstanceType: - -InstanceType - (`string `_) - -.. _api_field_flyte.plugins.ResourceConfig.InstanceCount: - -InstanceCount - (`int64 `_) - -.. _api_field_flyte.plugins.ResourceConfig.VolumeSizeInGB: - -VolumeSizeInGB - (`int64 `_) - -.. _api_field_flyte.plugins.ResourceConfig.VolumeKmsKeyId: - -VolumeKmsKeyId - (`string `_) - - - -.. _api_msg_flyte.plugins.StoppingCondition: - -flyte.plugins.StoppingCondition -------------------------------- - -`[flyte.plugins.StoppingCondition proto] `_ - - -.. code-block:: json - - { - "MaxRuntimeInSeconds": "...", - "MaxWaitTimeInSeconds": "..." - } - -.. _api_field_flyte.plugins.StoppingCondition.MaxRuntimeInSeconds: - -MaxRuntimeInSeconds - (`int64 `_) - -.. _api_field_flyte.plugins.StoppingCondition.MaxWaitTimeInSeconds: - -MaxWaitTimeInSeconds - (`int64 `_) - - - -.. _api_msg_flyte.plugins.VpcConfig: - -flyte.plugins.VpcConfig ------------------------ - -`[flyte.plugins.VpcConfig proto] `_ - - -.. code-block:: json - - { - "SecurityGroupIds": [], - "Subnets": [] - } - -.. _api_field_flyte.plugins.VpcConfig.SecurityGroupIds: - -SecurityGroupIds - (`string `_) - -.. _api_field_flyte.plugins.VpcConfig.Subnets: - -Subnets - (`string `_) - - - -.. _api_msg_flyte.plugins.SagemakerTrainingJob: - -flyte.plugins.SagemakerTrainingJob ----------------------------------- - -`[flyte.plugins.SagemakerTrainingJob proto] `_ - - -.. code-block:: json - - { - "Region": "...", - "RoleArn": "...", - "AlgorithmSpecification": "{...}", - "ResourceConfig": "{...}", - "StoppingCondition": "{...}", - "VpcConfig": "{...}", - "EnableSpotTraining": "..." - } - -.. _api_field_flyte.plugins.SagemakerTrainingJob.Region: - -Region - (`string `_) - -.. _api_field_flyte.plugins.SagemakerTrainingJob.RoleArn: - -RoleArn - (`string `_) - -.. _api_field_flyte.plugins.SagemakerTrainingJob.AlgorithmSpecification: - -AlgorithmSpecification - (:ref:`flyte.plugins.AlgorithmSpecification `) - -.. _api_field_flyte.plugins.SagemakerTrainingJob.ResourceConfig: - -ResourceConfig - (:ref:`flyte.plugins.ResourceConfig `) - -.. _api_field_flyte.plugins.SagemakerTrainingJob.StoppingCondition: - -StoppingCondition - (:ref:`flyte.plugins.StoppingCondition `) - -.. _api_field_flyte.plugins.SagemakerTrainingJob.VpcConfig: - -VpcConfig - (:ref:`flyte.plugins.VpcConfig `) - -.. _api_field_flyte.plugins.SagemakerTrainingJob.EnableSpotTraining: - -EnableSpotTraining - (`bool `_) - - - -.. _api_msg_flyte.plugins.HPOJobObjective: - -flyte.plugins.HPOJobObjective ------------------------------ - -`[flyte.plugins.HPOJobObjective proto] `_ - - -.. code-block:: json - - { - "Type": "...", - "MetricName": "..." - } - -.. _api_field_flyte.plugins.HPOJobObjective.Type: - -Type - (:ref:`flyte.plugins.HPOJobObjectiveType `) - -.. _api_field_flyte.plugins.HPOJobObjective.MetricName: - -MetricName - (`string `_) - - - -.. _api_msg_flyte.plugins.SagemakerHPOJob: - -flyte.plugins.SagemakerHPOJob ------------------------------ - -`[flyte.plugins.SagemakerHPOJob proto] `_ - - -.. code-block:: json - - { - "Strategy": "...", - "Objective": "{...}", - "MaxNumberOfTrainingJobs": "...", - "MaxParallelTrainingJobs": "...", - "ParameterRanges": "{...}", - "TrainingJob": "{...}" - } - -.. _api_field_flyte.plugins.SagemakerHPOJob.Strategy: - -Strategy - (`string `_) - -.. _api_field_flyte.plugins.SagemakerHPOJob.Objective: - -Objective - (:ref:`flyte.plugins.HPOJobObjective `) - -.. _api_field_flyte.plugins.SagemakerHPOJob.MaxNumberOfTrainingJobs: - -MaxNumberOfTrainingJobs - (`int64 `_) - -.. _api_field_flyte.plugins.SagemakerHPOJob.MaxParallelTrainingJobs: - -MaxParallelTrainingJobs - (`int64 `_) - -.. _api_field_flyte.plugins.SagemakerHPOJob.ParameterRanges: - -ParameterRanges - (:ref:`flyte.plugins.ParameterRanges `) - -.. _api_field_flyte.plugins.SagemakerHPOJob.TrainingJob: - -TrainingJob - (:ref:`flyte.plugins.SagemakerTrainingJob `) - - -.. _api_enum_flyte.plugins.HyperparameterScalingType: - -Enum flyte.plugins.HyperparameterScalingType --------------------------------------------- - -`[flyte.plugins.HyperparameterScalingType proto] `_ - - -.. _api_enum_value_flyte.plugins.HyperparameterScalingType.AUTO: - -AUTO - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyte.plugins.HyperparameterScalingType.LINEAR: - -LINEAR - ⁣ - -.. _api_enum_value_flyte.plugins.HyperparameterScalingType.LOGARITHMIC: - -LOGARITHMIC - ⁣ - -.. _api_enum_value_flyte.plugins.HyperparameterScalingType.REVERSELOGARITHMIC: - -REVERSELOGARITHMIC - ⁣ - - -.. _api_enum_flyte.plugins.HPOJobObjectiveType: - -Enum flyte.plugins.HPOJobObjectiveType --------------------------------------- - -`[flyte.plugins.HPOJobObjectiveType proto] `_ - - -.. _api_enum_value_flyte.plugins.HPOJobObjectiveType.MINIMIZE: - -MINIMIZE - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyte.plugins.HPOJobObjectiveType.MAXIMIZE: - -MAXIMIZE - ⁣ - diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst new file mode 100644 index 000000000..bccab192f --- /dev/null +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst @@ -0,0 +1,9 @@ +sagemaker +========= + +.. toctree:: + :maxdepth: 1 + :caption: sagemaker + :name: sagemakertoc + + sagemaker.proto diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/sagemaker.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/sagemaker.proto.rst new file mode 100644 index 000000000..dd3ad23bd --- /dev/null +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/sagemaker.proto.rst @@ -0,0 +1,482 @@ +.. _api_file_flyteidl/plugins/sagemaker/sagemaker.proto: + +sagemaker.proto +========================================== + +.. _api_msg_flyte.plugins.sagemaker.ContinuousParameterRange: + +flyte.plugins.sagemaker.ContinuousParameterRange +------------------------------------------------ + +`[flyte.plugins.sagemaker.ContinuousParameterRange proto] `_ + + +.. code-block:: json + + { + "Name": "...", + "MaxValue": "...", + "MinValue": "...", + "ScalingType": "..." + } + +.. _api_field_flyte.plugins.sagemaker.ContinuousParameterRange.Name: + +Name + (`string `_) + +.. _api_field_flyte.plugins.sagemaker.ContinuousParameterRange.MaxValue: + +MaxValue + (`double `_) + +.. _api_field_flyte.plugins.sagemaker.ContinuousParameterRange.MinValue: + +MinValue + (`double `_) + +.. _api_field_flyte.plugins.sagemaker.ContinuousParameterRange.ScalingType: + +ScalingType + (:ref:`flyte.plugins.sagemaker.HyperparameterScalingType `) + + + +.. _api_msg_flyte.plugins.sagemaker.IntegerParameterRange: + +flyte.plugins.sagemaker.IntegerParameterRange +--------------------------------------------- + +`[flyte.plugins.sagemaker.IntegerParameterRange proto] `_ + + +.. code-block:: json + + { + "Name": "...", + "MaxValue": "...", + "MinValue": "...", + "ScalingType": "..." + } + +.. _api_field_flyte.plugins.sagemaker.IntegerParameterRange.Name: + +Name + (`string `_) + +.. _api_field_flyte.plugins.sagemaker.IntegerParameterRange.MaxValue: + +MaxValue + (`float `_) + +.. _api_field_flyte.plugins.sagemaker.IntegerParameterRange.MinValue: + +MinValue + (`float `_) + +.. _api_field_flyte.plugins.sagemaker.IntegerParameterRange.ScalingType: + +ScalingType + (:ref:`flyte.plugins.sagemaker.HyperparameterScalingType `) + + + +.. _api_msg_flyte.plugins.sagemaker.CategoricalParameterRange: + +flyte.plugins.sagemaker.CategoricalParameterRange +------------------------------------------------- + +`[flyte.plugins.sagemaker.CategoricalParameterRange proto] `_ + + +.. code-block:: json + + { + "Name": "...", + "Values": [] + } + +.. _api_field_flyte.plugins.sagemaker.CategoricalParameterRange.Name: + +Name + (`string `_) + +.. _api_field_flyte.plugins.sagemaker.CategoricalParameterRange.Values: + +Values + (`string `_) + + + +.. _api_msg_flyte.plugins.sagemaker.ParameterRanges: + +flyte.plugins.sagemaker.ParameterRanges +--------------------------------------- + +`[flyte.plugins.sagemaker.ParameterRanges proto] `_ + + +.. code-block:: json + + { + "ContinuousParameterRanges": [], + "IntegerParameterRanges": [], + "CategoricalParameterRanges": [] + } + +.. _api_field_flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges: + +ContinuousParameterRanges + (:ref:`flyte.plugins.sagemaker.ContinuousParameterRange `) + +.. _api_field_flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges: + +IntegerParameterRanges + (:ref:`flyte.plugins.sagemaker.IntegerParameterRange `) + +.. _api_field_flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges: + +CategoricalParameterRanges + (:ref:`flyte.plugins.sagemaker.CategoricalParameterRange `) + + + +.. _api_msg_flyte.plugins.sagemaker.AlgorithmSpecification: + +flyte.plugins.sagemaker.AlgorithmSpecification +---------------------------------------------- + +`[flyte.plugins.sagemaker.AlgorithmSpecification proto] `_ + + +.. code-block:: json + + { + "TrainingImage": "...", + "TrainingInputMode": "...", + "AlgorithmName": "...", + "MetricDefinitions": [] + } + +.. _api_field_flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage: + +TrainingImage + (`string `_) + +.. _api_field_flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode: + +TrainingInputMode + (`string `_) + +.. _api_field_flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName: + +AlgorithmName + (`string `_) + +.. _api_field_flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions: + +MetricDefinitions + (:ref:`flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition `) + +.. _api_msg_flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition: + +flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition +--------------------------------------------------------------- + +`[flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ + + +.. code-block:: json + + { + "Name": "...", + "Regex": "..." + } + +.. _api_field_flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name: + +Name + (`string `_) + +.. _api_field_flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex: + +Regex + (`string `_) + + + + +.. _api_msg_flyte.plugins.sagemaker.ResourceConfig: + +flyte.plugins.sagemaker.ResourceConfig +-------------------------------------- + +`[flyte.plugins.sagemaker.ResourceConfig proto] `_ + + +.. code-block:: json + + { + "InstanceType": "...", + "InstanceCount": "...", + "VolumeSizeInGB": "...", + "VolumeKmsKeyId": "..." + } + +.. _api_field_flyte.plugins.sagemaker.ResourceConfig.InstanceType: + +InstanceType + (`string `_) + +.. _api_field_flyte.plugins.sagemaker.ResourceConfig.InstanceCount: + +InstanceCount + (`int64 `_) + +.. _api_field_flyte.plugins.sagemaker.ResourceConfig.VolumeSizeInGB: + +VolumeSizeInGB + (`int64 `_) + +.. _api_field_flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId: + +VolumeKmsKeyId + (`string `_) + + + +.. _api_msg_flyte.plugins.sagemaker.StoppingCondition: + +flyte.plugins.sagemaker.StoppingCondition +----------------------------------------- + +`[flyte.plugins.sagemaker.StoppingCondition proto] `_ + + +.. code-block:: json + + { + "MaxRuntimeInSeconds": "...", + "MaxWaitTimeInSeconds": "..." + } + +.. _api_field_flyte.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds: + +MaxRuntimeInSeconds + (`int64 `_) + +.. _api_field_flyte.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds: + +MaxWaitTimeInSeconds + (`int64 `_) + + + +.. _api_msg_flyte.plugins.sagemaker.VpcConfig: + +flyte.plugins.sagemaker.VpcConfig +--------------------------------- + +`[flyte.plugins.sagemaker.VpcConfig proto] `_ + + +.. code-block:: json + + { + "SecurityGroupIds": [], + "Subnets": [] + } + +.. _api_field_flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds: + +SecurityGroupIds + (`string `_) + +.. _api_field_flyte.plugins.sagemaker.VpcConfig.Subnets: + +Subnets + (`string `_) + + + +.. _api_msg_flyte.plugins.sagemaker.SagemakerTrainingJob: + +flyte.plugins.sagemaker.SagemakerTrainingJob +-------------------------------------------- + +`[flyte.plugins.sagemaker.SagemakerTrainingJob proto] `_ + + +.. code-block:: json + + { + "Region": "...", + "RoleArn": "...", + "AlgorithmSpecification": "{...}", + "ResourceConfig": "{...}", + "StoppingCondition": "{...}", + "VpcConfig": "{...}", + "EnableSpotTraining": "..." + } + +.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.Region: + +Region + (`string `_) + +.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn: + +RoleArn + (`string `_) + +.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification: + +AlgorithmSpecification + (:ref:`flyte.plugins.sagemaker.AlgorithmSpecification `) + +.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig: + +ResourceConfig + (:ref:`flyte.plugins.sagemaker.ResourceConfig `) + +.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition: + +StoppingCondition + (:ref:`flyte.plugins.sagemaker.StoppingCondition `) + +.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.VpcConfig: + +VpcConfig + (:ref:`flyte.plugins.sagemaker.VpcConfig `) + +.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining: + +EnableSpotTraining + (`bool `_) + + + +.. _api_msg_flyte.plugins.sagemaker.HPOJobObjective: + +flyte.plugins.sagemaker.HPOJobObjective +--------------------------------------- + +`[flyte.plugins.sagemaker.HPOJobObjective proto] `_ + + +.. code-block:: json + + { + "Type": "...", + "MetricName": "..." + } + +.. _api_field_flyte.plugins.sagemaker.HPOJobObjective.Type: + +Type + (:ref:`flyte.plugins.sagemaker.HPOJobObjectiveType `) + +.. _api_field_flyte.plugins.sagemaker.HPOJobObjective.MetricName: + +MetricName + (`string `_) + + + +.. _api_msg_flyte.plugins.sagemaker.SagemakerHPOJob: + +flyte.plugins.sagemaker.SagemakerHPOJob +--------------------------------------- + +`[flyte.plugins.sagemaker.SagemakerHPOJob proto] `_ + + +.. code-block:: json + + { + "Strategy": "...", + "Objective": "{...}", + "MaxNumberOfTrainingJobs": "...", + "MaxParallelTrainingJobs": "...", + "ParameterRanges": "{...}", + "TrainingJob": "{...}" + } + +.. _api_field_flyte.plugins.sagemaker.SagemakerHPOJob.Strategy: + +Strategy + (`string `_) + +.. _api_field_flyte.plugins.sagemaker.SagemakerHPOJob.Objective: + +Objective + (:ref:`flyte.plugins.sagemaker.HPOJobObjective `) + +.. _api_field_flyte.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs: + +MaxNumberOfTrainingJobs + (`int64 `_) + +.. _api_field_flyte.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs: + +MaxParallelTrainingJobs + (`int64 `_) + +.. _api_field_flyte.plugins.sagemaker.SagemakerHPOJob.ParameterRanges: + +ParameterRanges + (:ref:`flyte.plugins.sagemaker.ParameterRanges `) + +.. _api_field_flyte.plugins.sagemaker.SagemakerHPOJob.TrainingJob: + +TrainingJob + (:ref:`flyte.plugins.sagemaker.SagemakerTrainingJob `) + + +.. _api_enum_flyte.plugins.sagemaker.HyperparameterScalingType: + +Enum flyte.plugins.sagemaker.HyperparameterScalingType +------------------------------------------------------ + +`[flyte.plugins.sagemaker.HyperparameterScalingType proto] `_ + + +.. _api_enum_value_flyte.plugins.sagemaker.HyperparameterScalingType.AUTO: + +AUTO + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyte.plugins.sagemaker.HyperparameterScalingType.LINEAR: + +LINEAR + ⁣ + +.. _api_enum_value_flyte.plugins.sagemaker.HyperparameterScalingType.LOGARITHMIC: + +LOGARITHMIC + ⁣ + +.. _api_enum_value_flyte.plugins.sagemaker.HyperparameterScalingType.REVERSELOGARITHMIC: + +REVERSELOGARITHMIC + ⁣ + + +.. _api_enum_flyte.plugins.sagemaker.HPOJobObjectiveType: + +Enum flyte.plugins.sagemaker.HPOJobObjectiveType +------------------------------------------------ + +`[flyte.plugins.sagemaker.HPOJobObjectiveType proto] `_ + + +.. _api_enum_value_flyte.plugins.sagemaker.HPOJobObjectiveType.MINIMIZE: + +MINIMIZE + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyte.plugins.sagemaker.HPOJobObjectiveType.MAXIMIZE: + +MAXIMIZE + ⁣ + diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/__init__.py b/gen/pb_python/flyteidl/plugins/sagemaker/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/gen/pb_python/flyteidl/plugins/sagemaker_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2.py similarity index 68% rename from gen/pb_python/flyteidl/plugins/sagemaker_pb2.py rename to gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2.py index 8cdaaf9c0..d50bcf55e 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/sagemaker.proto +# source: flyteidl/plugins/sagemaker/sagemaker.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,16 +17,16 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='flyteidl/plugins/sagemaker.proto', - package='flyte.plugins', + name='flyteidl/plugins/sagemaker/sagemaker.proto', + package='flyte.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n flyteidl/plugins/sagemaker.proto\x12\rflyte.plugins\"\x8b\x01\n\x18\x43ontinuousParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x10\n\x08MaxValue\x18\x02 \x01(\x01\x12\x10\n\x08MinValue\x18\x03 \x01(\x01\x12=\n\x0bScalingType\x18\x04 \x01(\x0e\x32(.flyte.plugins.HyperparameterScalingType\"\x88\x01\n\x15IntegerParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x10\n\x08MaxValue\x18\x02 \x01(\x02\x12\x10\n\x08MinValue\x18\x03 \x01(\x02\x12=\n\x0bScalingType\x18\x04 \x01(\x0e\x32(.flyte.plugins.HyperparameterScalingType\"9\n\x19\x43\x61tegoricalParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x0e\n\x06Values\x18\x02 \x03(\t\"\xf1\x01\n\x0fParameterRanges\x12J\n\x19\x43ontinuousParameterRanges\x18\x01 \x03(\x0b\x32\'.flyte.plugins.ContinuousParameterRange\x12\x44\n\x16IntegerParameterRanges\x18\x02 \x03(\x0b\x32$.flyte.plugins.IntegerParameterRange\x12L\n\x1a\x43\x61tegoricalParameterRanges\x18\x03 \x03(\x0b\x32(.flyte.plugins.CategoricalParameterRange\"\xe5\x01\n\x16\x41lgorithmSpecification\x12\x15\n\rTrainingImage\x18\x01 \x01(\t\x12\x19\n\x11TrainingInputMode\x18\x02 \x01(\t\x12\x15\n\rAlgorithmName\x18\x03 \x01(\t\x12Q\n\x11MetricDefinitions\x18\x04 \x03(\x0b\x32\x36.flyte.plugins.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\r\n\x05Regex\x18\x02 \x01(\t\"m\n\x0eResourceConfig\x12\x14\n\x0cInstanceType\x18\x01 \x01(\t\x12\x15\n\rInstanceCount\x18\x02 \x01(\x03\x12\x16\n\x0eVolumeSizeInGB\x18\x03 \x01(\x03\x12\x16\n\x0eVolumeKmsKeyId\x18\x04 \x01(\t\"N\n\x11StoppingCondition\x12\x1b\n\x13MaxRuntimeInSeconds\x18\x01 \x01(\x03\x12\x1c\n\x14MaxWaitTimeInSeconds\x18\x02 \x01(\x03\"6\n\tVpcConfig\x12\x18\n\x10SecurityGroupIds\x18\x01 \x03(\t\x12\x0f\n\x07Subnets\x18\x02 \x03(\t\"\xbb\x02\n\x14SagemakerTrainingJob\x12\x0e\n\x06Region\x18\x01 \x01(\t\x12\x0f\n\x07RoleArn\x18\x02 \x01(\t\x12\x45\n\x16\x41lgorithmSpecification\x18\x03 \x01(\x0b\x32%.flyte.plugins.AlgorithmSpecification\x12\x35\n\x0eResourceConfig\x18\x04 \x01(\x0b\x32\x1d.flyte.plugins.ResourceConfig\x12;\n\x11StoppingCondition\x18\x05 \x01(\x0b\x32 .flyte.plugins.StoppingCondition\x12+\n\tVpcConfig\x18\x06 \x01(\x0b\x32\x18.flyte.plugins.VpcConfig\x12\x1a\n\x12\x45nableSpotTraining\x18\x07 \x01(\x08\"W\n\x0fHPOJobObjective\x12\x30\n\x04Type\x18\x01 \x01(\x0e\x32\".flyte.plugins.HPOJobObjectiveType\x12\x12\n\nMetricName\x18\x02 \x01(\t\"\x8b\x02\n\x0fSagemakerHPOJob\x12\x10\n\x08Strategy\x18\x01 \x01(\t\x12\x31\n\tObjective\x18\x02 \x01(\x0b\x32\x1e.flyte.plugins.HPOJobObjective\x12\x1f\n\x17MaxNumberOfTrainingJobs\x18\x03 \x01(\x03\x12\x1f\n\x17MaxParallelTrainingJobs\x18\x04 \x01(\x03\x12\x37\n\x0fParameterRanges\x18\x05 \x01(\x0b\x32\x1e.flyte.plugins.ParameterRanges\x12\x38\n\x0bTrainingJob\x18\x06 \x01(\x0b\x32#.flyte.plugins.SagemakerTrainingJob*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03*1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n*flyteidl/plugins/sagemaker/sagemaker.proto\x12\x17\x66lyte.plugins.sagemaker\"\x95\x01\n\x18\x43ontinuousParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x10\n\x08MaxValue\x18\x02 \x01(\x01\x12\x10\n\x08MinValue\x18\x03 \x01(\x01\x12G\n\x0bScalingType\x18\x04 \x01(\x0e\x32\x32.flyte.plugins.sagemaker.HyperparameterScalingType\"\x92\x01\n\x15IntegerParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x10\n\x08MaxValue\x18\x02 \x01(\x02\x12\x10\n\x08MinValue\x18\x03 \x01(\x02\x12G\n\x0bScalingType\x18\x04 \x01(\x0e\x32\x32.flyte.plugins.sagemaker.HyperparameterScalingType\"9\n\x19\x43\x61tegoricalParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x0e\n\x06Values\x18\x02 \x03(\t\"\x8f\x02\n\x0fParameterRanges\x12T\n\x19\x43ontinuousParameterRanges\x18\x01 \x03(\x0b\x32\x31.flyte.plugins.sagemaker.ContinuousParameterRange\x12N\n\x16IntegerParameterRanges\x18\x02 \x03(\x0b\x32..flyte.plugins.sagemaker.IntegerParameterRange\x12V\n\x1a\x43\x61tegoricalParameterRanges\x18\x03 \x03(\x0b\x32\x32.flyte.plugins.sagemaker.CategoricalParameterRange\"\xef\x01\n\x16\x41lgorithmSpecification\x12\x15\n\rTrainingImage\x18\x01 \x01(\t\x12\x19\n\x11TrainingInputMode\x18\x02 \x01(\t\x12\x15\n\rAlgorithmName\x18\x03 \x01(\t\x12[\n\x11MetricDefinitions\x18\x04 \x03(\x0b\x32@.flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\r\n\x05Regex\x18\x02 \x01(\t\"m\n\x0eResourceConfig\x12\x14\n\x0cInstanceType\x18\x01 \x01(\t\x12\x15\n\rInstanceCount\x18\x02 \x01(\x03\x12\x16\n\x0eVolumeSizeInGB\x18\x03 \x01(\x03\x12\x16\n\x0eVolumeKmsKeyId\x18\x04 \x01(\t\"N\n\x11StoppingCondition\x12\x1b\n\x13MaxRuntimeInSeconds\x18\x01 \x01(\x03\x12\x1c\n\x14MaxWaitTimeInSeconds\x18\x02 \x01(\x03\"6\n\tVpcConfig\x12\x18\n\x10SecurityGroupIds\x18\x01 \x03(\t\x12\x0f\n\x07Subnets\x18\x02 \x03(\t\"\xe3\x02\n\x14SagemakerTrainingJob\x12\x0e\n\x06Region\x18\x01 \x01(\t\x12\x0f\n\x07RoleArn\x18\x02 \x01(\t\x12O\n\x16\x41lgorithmSpecification\x18\x03 \x01(\x0b\x32/.flyte.plugins.sagemaker.AlgorithmSpecification\x12?\n\x0eResourceConfig\x18\x04 \x01(\x0b\x32\'.flyte.plugins.sagemaker.ResourceConfig\x12\x45\n\x11StoppingCondition\x18\x05 \x01(\x0b\x32*.flyte.plugins.sagemaker.StoppingCondition\x12\x35\n\tVpcConfig\x18\x06 \x01(\x0b\x32\".flyte.plugins.sagemaker.VpcConfig\x12\x1a\n\x12\x45nableSpotTraining\x18\x07 \x01(\x08\"a\n\x0fHPOJobObjective\x12:\n\x04Type\x18\x01 \x01(\x0e\x32,.flyte.plugins.sagemaker.HPOJobObjectiveType\x12\x12\n\nMetricName\x18\x02 \x01(\t\"\xa9\x02\n\x0fSagemakerHPOJob\x12\x10\n\x08Strategy\x18\x01 \x01(\t\x12;\n\tObjective\x18\x02 \x01(\x0b\x32(.flyte.plugins.sagemaker.HPOJobObjective\x12\x1f\n\x17MaxNumberOfTrainingJobs\x18\x03 \x01(\x03\x12\x1f\n\x17MaxParallelTrainingJobs\x18\x04 \x01(\x03\x12\x41\n\x0fParameterRanges\x18\x05 \x01(\x0b\x32(.flyte.plugins.sagemaker.ParameterRanges\x12\x42\n\x0bTrainingJob\x18\x06 \x01(\x0b\x32-.flyte.plugins.sagemaker.SagemakerTrainingJob*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03*1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') ) _HYPERPARAMETERSCALINGTYPE = _descriptor.EnumDescriptor( name='HyperparameterScalingType', - full_name='flyte.plugins.HyperparameterScalingType', + full_name='flyte.plugins.sagemaker.HyperparameterScalingType', filename=None, file=DESCRIPTOR, values=[ @@ -49,15 +49,15 @@ ], containing_type=None, serialized_options=None, - serialized_start=1791, - serialized_end=1881, + serialized_start=1951, + serialized_end=2041, ) _sym_db.RegisterEnumDescriptor(_HYPERPARAMETERSCALINGTYPE) HyperparameterScalingType = enum_type_wrapper.EnumTypeWrapper(_HYPERPARAMETERSCALINGTYPE) _HPOJOBOBJECTIVETYPE = _descriptor.EnumDescriptor( name='HPOJobObjectiveType', - full_name='flyte.plugins.HPOJobObjectiveType', + full_name='flyte.plugins.sagemaker.HPOJobObjectiveType', filename=None, file=DESCRIPTOR, values=[ @@ -72,8 +72,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1883, - serialized_end=1932, + serialized_start=2043, + serialized_end=2092, ) _sym_db.RegisterEnumDescriptor(_HPOJOBOBJECTIVETYPE) @@ -89,34 +89,34 @@ _CONTINUOUSPARAMETERRANGE = _descriptor.Descriptor( name='ContinuousParameterRange', - full_name='flyte.plugins.ContinuousParameterRange', + full_name='flyte.plugins.sagemaker.ContinuousParameterRange', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Name', full_name='flyte.plugins.ContinuousParameterRange.Name', index=0, + name='Name', full_name='flyte.plugins.sagemaker.ContinuousParameterRange.Name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MaxValue', full_name='flyte.plugins.ContinuousParameterRange.MaxValue', index=1, + name='MaxValue', full_name='flyte.plugins.sagemaker.ContinuousParameterRange.MaxValue', index=1, number=2, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MinValue', full_name='flyte.plugins.ContinuousParameterRange.MinValue', index=2, + name='MinValue', full_name='flyte.plugins.sagemaker.ContinuousParameterRange.MinValue', index=2, number=3, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ScalingType', full_name='flyte.plugins.ContinuousParameterRange.ScalingType', index=3, + name='ScalingType', full_name='flyte.plugins.sagemaker.ContinuousParameterRange.ScalingType', index=3, number=4, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -134,41 +134,41 @@ extension_ranges=[], oneofs=[ ], - serialized_start=52, - serialized_end=191, + serialized_start=72, + serialized_end=221, ) _INTEGERPARAMETERRANGE = _descriptor.Descriptor( name='IntegerParameterRange', - full_name='flyte.plugins.IntegerParameterRange', + full_name='flyte.plugins.sagemaker.IntegerParameterRange', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Name', full_name='flyte.plugins.IntegerParameterRange.Name', index=0, + name='Name', full_name='flyte.plugins.sagemaker.IntegerParameterRange.Name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MaxValue', full_name='flyte.plugins.IntegerParameterRange.MaxValue', index=1, + name='MaxValue', full_name='flyte.plugins.sagemaker.IntegerParameterRange.MaxValue', index=1, number=2, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MinValue', full_name='flyte.plugins.IntegerParameterRange.MinValue', index=2, + name='MinValue', full_name='flyte.plugins.sagemaker.IntegerParameterRange.MinValue', index=2, number=3, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ScalingType', full_name='flyte.plugins.IntegerParameterRange.ScalingType', index=3, + name='ScalingType', full_name='flyte.plugins.sagemaker.IntegerParameterRange.ScalingType', index=3, number=4, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -186,27 +186,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=194, - serialized_end=330, + serialized_start=224, + serialized_end=370, ) _CATEGORICALPARAMETERRANGE = _descriptor.Descriptor( name='CategoricalParameterRange', - full_name='flyte.plugins.CategoricalParameterRange', + full_name='flyte.plugins.sagemaker.CategoricalParameterRange', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Name', full_name='flyte.plugins.CategoricalParameterRange.Name', index=0, + name='Name', full_name='flyte.plugins.sagemaker.CategoricalParameterRange.Name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='Values', full_name='flyte.plugins.CategoricalParameterRange.Values', index=1, + name='Values', full_name='flyte.plugins.sagemaker.CategoricalParameterRange.Values', index=1, number=2, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -224,34 +224,34 @@ extension_ranges=[], oneofs=[ ], - serialized_start=332, - serialized_end=389, + serialized_start=372, + serialized_end=429, ) _PARAMETERRANGES = _descriptor.Descriptor( name='ParameterRanges', - full_name='flyte.plugins.ParameterRanges', + full_name='flyte.plugins.sagemaker.ParameterRanges', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='ContinuousParameterRanges', full_name='flyte.plugins.ParameterRanges.ContinuousParameterRanges', index=0, + name='ContinuousParameterRanges', full_name='flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='IntegerParameterRanges', full_name='flyte.plugins.ParameterRanges.IntegerParameterRanges', index=1, + name='IntegerParameterRanges', full_name='flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='CategoricalParameterRanges', full_name='flyte.plugins.ParameterRanges.CategoricalParameterRanges', index=2, + name='CategoricalParameterRanges', full_name='flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -269,27 +269,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=392, - serialized_end=633, + serialized_start=432, + serialized_end=703, ) _ALGORITHMSPECIFICATION_METRICDEFINITION = _descriptor.Descriptor( name='MetricDefinition', - full_name='flyte.plugins.AlgorithmSpecification.MetricDefinition', + full_name='flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Name', full_name='flyte.plugins.AlgorithmSpecification.MetricDefinition.Name', index=0, + name='Name', full_name='flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='Regex', full_name='flyte.plugins.AlgorithmSpecification.MetricDefinition.Regex', index=1, + name='Regex', full_name='flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -307,40 +307,40 @@ extension_ranges=[], oneofs=[ ], - serialized_start=818, - serialized_end=865, + serialized_start=898, + serialized_end=945, ) _ALGORITHMSPECIFICATION = _descriptor.Descriptor( name='AlgorithmSpecification', - full_name='flyte.plugins.AlgorithmSpecification', + full_name='flyte.plugins.sagemaker.AlgorithmSpecification', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='TrainingImage', full_name='flyte.plugins.AlgorithmSpecification.TrainingImage', index=0, + name='TrainingImage', full_name='flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='TrainingInputMode', full_name='flyte.plugins.AlgorithmSpecification.TrainingInputMode', index=1, + name='TrainingInputMode', full_name='flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='AlgorithmName', full_name='flyte.plugins.AlgorithmSpecification.AlgorithmName', index=2, + name='AlgorithmName', full_name='flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MetricDefinitions', full_name='flyte.plugins.AlgorithmSpecification.MetricDefinitions', index=3, + name='MetricDefinitions', full_name='flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -358,41 +358,41 @@ extension_ranges=[], oneofs=[ ], - serialized_start=636, - serialized_end=865, + serialized_start=706, + serialized_end=945, ) _RESOURCECONFIG = _descriptor.Descriptor( name='ResourceConfig', - full_name='flyte.plugins.ResourceConfig', + full_name='flyte.plugins.sagemaker.ResourceConfig', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='InstanceType', full_name='flyte.plugins.ResourceConfig.InstanceType', index=0, + name='InstanceType', full_name='flyte.plugins.sagemaker.ResourceConfig.InstanceType', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='InstanceCount', full_name='flyte.plugins.ResourceConfig.InstanceCount', index=1, + name='InstanceCount', full_name='flyte.plugins.sagemaker.ResourceConfig.InstanceCount', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='VolumeSizeInGB', full_name='flyte.plugins.ResourceConfig.VolumeSizeInGB', index=2, + name='VolumeSizeInGB', full_name='flyte.plugins.sagemaker.ResourceConfig.VolumeSizeInGB', index=2, number=3, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='VolumeKmsKeyId', full_name='flyte.plugins.ResourceConfig.VolumeKmsKeyId', index=3, + name='VolumeKmsKeyId', full_name='flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -410,27 +410,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=867, - serialized_end=976, + serialized_start=947, + serialized_end=1056, ) _STOPPINGCONDITION = _descriptor.Descriptor( name='StoppingCondition', - full_name='flyte.plugins.StoppingCondition', + full_name='flyte.plugins.sagemaker.StoppingCondition', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='MaxRuntimeInSeconds', full_name='flyte.plugins.StoppingCondition.MaxRuntimeInSeconds', index=0, + name='MaxRuntimeInSeconds', full_name='flyte.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds', index=0, number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MaxWaitTimeInSeconds', full_name='flyte.plugins.StoppingCondition.MaxWaitTimeInSeconds', index=1, + name='MaxWaitTimeInSeconds', full_name='flyte.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -448,27 +448,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=978, - serialized_end=1056, + serialized_start=1058, + serialized_end=1136, ) _VPCCONFIG = _descriptor.Descriptor( name='VpcConfig', - full_name='flyte.plugins.VpcConfig', + full_name='flyte.plugins.sagemaker.VpcConfig', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='SecurityGroupIds', full_name='flyte.plugins.VpcConfig.SecurityGroupIds', index=0, + name='SecurityGroupIds', full_name='flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds', index=0, number=1, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='Subnets', full_name='flyte.plugins.VpcConfig.Subnets', index=1, + name='Subnets', full_name='flyte.plugins.sagemaker.VpcConfig.Subnets', index=1, number=2, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -486,62 +486,62 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1058, - serialized_end=1112, + serialized_start=1138, + serialized_end=1192, ) _SAGEMAKERTRAININGJOB = _descriptor.Descriptor( name='SagemakerTrainingJob', - full_name='flyte.plugins.SagemakerTrainingJob', + full_name='flyte.plugins.sagemaker.SagemakerTrainingJob', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Region', full_name='flyte.plugins.SagemakerTrainingJob.Region', index=0, + name='Region', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.Region', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='RoleArn', full_name='flyte.plugins.SagemakerTrainingJob.RoleArn', index=1, + name='RoleArn', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='AlgorithmSpecification', full_name='flyte.plugins.SagemakerTrainingJob.AlgorithmSpecification', index=2, + name='AlgorithmSpecification', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ResourceConfig', full_name='flyte.plugins.SagemakerTrainingJob.ResourceConfig', index=3, + name='ResourceConfig', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='StoppingCondition', full_name='flyte.plugins.SagemakerTrainingJob.StoppingCondition', index=4, + name='StoppingCondition', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='VpcConfig', full_name='flyte.plugins.SagemakerTrainingJob.VpcConfig', index=5, + name='VpcConfig', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.VpcConfig', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='EnableSpotTraining', full_name='flyte.plugins.SagemakerTrainingJob.EnableSpotTraining', index=6, + name='EnableSpotTraining', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining', index=6, number=7, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, @@ -559,27 +559,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1115, - serialized_end=1430, + serialized_start=1195, + serialized_end=1550, ) _HPOJOBOBJECTIVE = _descriptor.Descriptor( name='HPOJobObjective', - full_name='flyte.plugins.HPOJobObjective', + full_name='flyte.plugins.sagemaker.HPOJobObjective', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Type', full_name='flyte.plugins.HPOJobObjective.Type', index=0, + name='Type', full_name='flyte.plugins.sagemaker.HPOJobObjective.Type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MetricName', full_name='flyte.plugins.HPOJobObjective.MetricName', index=1, + name='MetricName', full_name='flyte.plugins.sagemaker.HPOJobObjective.MetricName', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -597,55 +597,55 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1432, - serialized_end=1519, + serialized_start=1552, + serialized_end=1649, ) _SAGEMAKERHPOJOB = _descriptor.Descriptor( name='SagemakerHPOJob', - full_name='flyte.plugins.SagemakerHPOJob', + full_name='flyte.plugins.sagemaker.SagemakerHPOJob', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Strategy', full_name='flyte.plugins.SagemakerHPOJob.Strategy', index=0, + name='Strategy', full_name='flyte.plugins.sagemaker.SagemakerHPOJob.Strategy', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='Objective', full_name='flyte.plugins.SagemakerHPOJob.Objective', index=1, + name='Objective', full_name='flyte.plugins.sagemaker.SagemakerHPOJob.Objective', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MaxNumberOfTrainingJobs', full_name='flyte.plugins.SagemakerHPOJob.MaxNumberOfTrainingJobs', index=2, + name='MaxNumberOfTrainingJobs', full_name='flyte.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs', index=2, number=3, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MaxParallelTrainingJobs', full_name='flyte.plugins.SagemakerHPOJob.MaxParallelTrainingJobs', index=3, + name='MaxParallelTrainingJobs', full_name='flyte.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs', index=3, number=4, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ParameterRanges', full_name='flyte.plugins.SagemakerHPOJob.ParameterRanges', index=4, + name='ParameterRanges', full_name='flyte.plugins.sagemaker.SagemakerHPOJob.ParameterRanges', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='TrainingJob', full_name='flyte.plugins.SagemakerHPOJob.TrainingJob', index=5, + name='TrainingJob', full_name='flyte.plugins.sagemaker.SagemakerHPOJob.TrainingJob', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -663,8 +663,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1522, - serialized_end=1789, + serialized_start=1652, + serialized_end=1949, ) _CONTINUOUSPARAMETERRANGE.fields_by_name['ScalingType'].enum_type = _HYPERPARAMETERSCALINGTYPE @@ -699,29 +699,29 @@ ContinuousParameterRange = _reflection.GeneratedProtocolMessageType('ContinuousParameterRange', (_message.Message,), dict( DESCRIPTOR = _CONTINUOUSPARAMETERRANGE, - __module__ = 'flyteidl.plugins.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.ContinuousParameterRange) + __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ContinuousParameterRange) )) _sym_db.RegisterMessage(ContinuousParameterRange) IntegerParameterRange = _reflection.GeneratedProtocolMessageType('IntegerParameterRange', (_message.Message,), dict( DESCRIPTOR = _INTEGERPARAMETERRANGE, - __module__ = 'flyteidl.plugins.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.IntegerParameterRange) + __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.IntegerParameterRange) )) _sym_db.RegisterMessage(IntegerParameterRange) CategoricalParameterRange = _reflection.GeneratedProtocolMessageType('CategoricalParameterRange', (_message.Message,), dict( DESCRIPTOR = _CATEGORICALPARAMETERRANGE, - __module__ = 'flyteidl.plugins.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.CategoricalParameterRange) + __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.CategoricalParameterRange) )) _sym_db.RegisterMessage(CategoricalParameterRange) ParameterRanges = _reflection.GeneratedProtocolMessageType('ParameterRanges', (_message.Message,), dict( DESCRIPTOR = _PARAMETERRANGES, - __module__ = 'flyteidl.plugins.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.ParameterRanges) + __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ParameterRanges) )) _sym_db.RegisterMessage(ParameterRanges) @@ -729,56 +729,56 @@ MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict( DESCRIPTOR = _ALGORITHMSPECIFICATION_METRICDEFINITION, - __module__ = 'flyteidl.plugins.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.AlgorithmSpecification.MetricDefinition) + __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) )) , DESCRIPTOR = _ALGORITHMSPECIFICATION, - __module__ = 'flyteidl.plugins.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.AlgorithmSpecification) + __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.AlgorithmSpecification) )) _sym_db.RegisterMessage(AlgorithmSpecification) _sym_db.RegisterMessage(AlgorithmSpecification.MetricDefinition) ResourceConfig = _reflection.GeneratedProtocolMessageType('ResourceConfig', (_message.Message,), dict( DESCRIPTOR = _RESOURCECONFIG, - __module__ = 'flyteidl.plugins.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.ResourceConfig) + __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ResourceConfig) )) _sym_db.RegisterMessage(ResourceConfig) StoppingCondition = _reflection.GeneratedProtocolMessageType('StoppingCondition', (_message.Message,), dict( DESCRIPTOR = _STOPPINGCONDITION, - __module__ = 'flyteidl.plugins.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.StoppingCondition) + __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.StoppingCondition) )) _sym_db.RegisterMessage(StoppingCondition) VpcConfig = _reflection.GeneratedProtocolMessageType('VpcConfig', (_message.Message,), dict( DESCRIPTOR = _VPCCONFIG, - __module__ = 'flyteidl.plugins.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.VpcConfig) + __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.VpcConfig) )) _sym_db.RegisterMessage(VpcConfig) SagemakerTrainingJob = _reflection.GeneratedProtocolMessageType('SagemakerTrainingJob', (_message.Message,), dict( DESCRIPTOR = _SAGEMAKERTRAININGJOB, - __module__ = 'flyteidl.plugins.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.SagemakerTrainingJob) + __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.SagemakerTrainingJob) )) _sym_db.RegisterMessage(SagemakerTrainingJob) HPOJobObjective = _reflection.GeneratedProtocolMessageType('HPOJobObjective', (_message.Message,), dict( DESCRIPTOR = _HPOJOBOBJECTIVE, - __module__ = 'flyteidl.plugins.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.HPOJobObjective) + __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.HPOJobObjective) )) _sym_db.RegisterMessage(HPOJobObjective) SagemakerHPOJob = _reflection.GeneratedProtocolMessageType('SagemakerHPOJob', (_message.Message,), dict( DESCRIPTOR = _SAGEMAKERHPOJOB, - __module__ = 'flyteidl.plugins.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.SagemakerHPOJob) + __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' + # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.SagemakerHPOJob) )) _sym_db.RegisterMessage(SagemakerHPOJob) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2_grpc.py similarity index 100% rename from gen/pb_python/flyteidl/plugins/sagemaker_pb2_grpc.py rename to gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2_grpc.py diff --git a/generate_protos.sh b/generate_protos.sh index 889e93b8f..4b212549e 100755 --- a/generate_protos.sh +++ b/generate_protos.sh @@ -2,7 +2,8 @@ DIR=`pwd` rm -rf $DIR/gen -LYFT_IMAGE="lyft/protocgenerator:5e6a3be18db77a8862365a19711428c2f66284ef" +# LYFT_IMAGE="lyft/protocgenerator:5e6a3be18db77a8862365a19711428c2f66284ef" +LYFT_IMAGE="lyft/protocgenerator:4a198664c889dec4c29350776aa6f0640f1e5f50" SWAGGER_CLI_IMAGE="docker.io/lyft/swagger-codegen-cli:dc5ce6ec6d7d4d980fa882d6bd13a83cba3be3c3" docker run --rm -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/service --with_gateway -l go --go_source_relative diff --git a/protos/flyteidl/plugins/sagemaker.proto b/protos/flyteidl/plugins/sagemaker/sagemaker.proto similarity index 98% rename from protos/flyteidl/plugins/sagemaker.proto rename to protos/flyteidl/plugins/sagemaker/sagemaker.proto index e9b5c73d7..2010c5024 100644 --- a/protos/flyteidl/plugins/sagemaker.proto +++ b/protos/flyteidl/plugins/sagemaker/sagemaker.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package flyte.plugins; +package flyte.plugins.sagemaker; option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; From 47e8db2ba7c77601a27fd2706fc6a594e9b824de Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Fri, 29 May 2020 17:14:58 -0700 Subject: [PATCH 04/64] correcting parent package for sagemaker proto --- .../plugins/sagemaker/sagemaker.grpc.pb.cc | 4 +- .../plugins/sagemaker/sagemaker.grpc.pb.h | 4 +- .../plugins/sagemaker/sagemaker.pb.cc | 1239 ++++---- .../flyteidl/plugins/sagemaker/sagemaker.pb.h | 984 +++--- .../plugins/sagemaker/sagemaker.pb.go | 189 +- .../plugins/sagemaker/Sagemaker.java | 2668 +++++++++-------- .../plugins/sagemaker/sagemaker.proto.rst | 261 +- .../plugins/sagemaker/sagemaker_pb2.py | 220 +- .../plugins/sagemaker/sagemaker.proto | 12 +- 9 files changed, 2808 insertions(+), 2773 deletions(-) rename gen/pb-java/{flyte => flyteidl}/plugins/sagemaker/Sagemaker.java (71%) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.cc index fa0cf7ece..d2bde2ad5 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.cc @@ -16,11 +16,11 @@ #include #include #include -namespace flyte { +namespace flyteidl { namespace plugins { namespace sagemaker { -} // namespace flyte +} // namespace flyteidl } // namespace plugins } // namespace sagemaker diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.h index 1383e567c..e9d72d287 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.h @@ -37,13 +37,13 @@ namespace grpc { class ServerContext; } // namespace grpc -namespace flyte { +namespace flyteidl { namespace plugins { namespace sagemaker { } // namespace sagemaker } // namespace plugins -} // namespace flyte +} // namespace flyteidl #endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.cc index e6eaa90ca..4df4c0c9c 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.cc @@ -27,7 +27,7 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2epro extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -namespace flyte { +namespace flyteidl { namespace plugins { namespace sagemaker { class ContinuousParameterRangeDefaultTypeInternal { @@ -80,16 +80,16 @@ class SagemakerHPOJobDefaultTypeInternal { } _SagemakerHPOJob_default_instance_; } // namespace sagemaker } // namespace plugins -} // namespace flyte +} // namespace flyteidl static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::sagemaker::_ContinuousParameterRange_default_instance_; - new (ptr) ::flyte::plugins::sagemaker::ContinuousParameterRange(); + void* ptr = &::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ContinuousParameterRange(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::sagemaker::ContinuousParameterRange::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::ContinuousParameterRange::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = @@ -99,11 +99,11 @@ static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fs GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::sagemaker::_IntegerParameterRange_default_instance_; - new (ptr) ::flyte::plugins::sagemaker::IntegerParameterRange(); + void* ptr = &::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::IntegerParameterRange(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::sagemaker::IntegerParameterRange::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::IntegerParameterRange::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = @@ -113,11 +113,11 @@ static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::sagemaker::_CategoricalParameterRange_default_instance_; - new (ptr) ::flyte::plugins::sagemaker::CategoricalParameterRange(); + void* ptr = &::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::CategoricalParameterRange(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::sagemaker::CategoricalParameterRange::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::CategoricalParameterRange::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = @@ -127,11 +127,11 @@ static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemak GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::sagemaker::_ParameterRanges_default_instance_; - new (ptr) ::flyte::plugins::sagemaker::ParameterRanges(); + void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ParameterRanges(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::sagemaker::ParameterRanges::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::ParameterRanges::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = @@ -144,11 +144,11 @@ static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugi GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_; - new (ptr) ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition(); + void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = @@ -158,11 +158,11 @@ static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2f GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::sagemaker::_AlgorithmSpecification_default_instance_; - new (ptr) ::flyte::plugins::sagemaker::AlgorithmSpecification(); + void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmSpecification(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::sagemaker::AlgorithmSpecification::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::AlgorithmSpecification::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = @@ -173,11 +173,11 @@ static void InitDefaultsResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemake GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::sagemaker::_ResourceConfig_default_instance_; - new (ptr) ::flyte::plugins::sagemaker::ResourceConfig(); + void* ptr = &::flyteidl::plugins::sagemaker::_ResourceConfig_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ResourceConfig(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::sagemaker::ResourceConfig::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::ResourceConfig::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = @@ -187,11 +187,11 @@ static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagem GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::sagemaker::_StoppingCondition_default_instance_; - new (ptr) ::flyte::plugins::sagemaker::StoppingCondition(); + void* ptr = &::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::StoppingCondition(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::sagemaker::StoppingCondition::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::StoppingCondition::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = @@ -201,11 +201,11 @@ static void InitDefaultsVpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2ep GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::sagemaker::_VpcConfig_default_instance_; - new (ptr) ::flyte::plugins::sagemaker::VpcConfig(); + void* ptr = &::flyteidl::plugins::sagemaker::_VpcConfig_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::VpcConfig(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::sagemaker::VpcConfig::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::VpcConfig::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = @@ -215,11 +215,11 @@ static void InitDefaultsSagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsa GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_; - new (ptr) ::flyte::plugins::sagemaker::SagemakerTrainingJob(); + void* ptr = &::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::SagemakerTrainingJob(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::sagemaker::SagemakerTrainingJob::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::SagemakerTrainingJob::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<4> scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = @@ -233,11 +233,11 @@ static void InitDefaultsHPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemak GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::sagemaker::_HPOJobObjective_default_instance_; - new (ptr) ::flyte::plugins::sagemaker::HPOJobObjective(); + void* ptr = &::flyteidl::plugins::sagemaker::_HPOJobObjective_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HPOJobObjective(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::sagemaker::HPOJobObjective::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::HPOJobObjective::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = @@ -247,11 +247,11 @@ static void InitDefaultsSagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemak GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyte::plugins::sagemaker::_SagemakerHPOJob_default_instance_; - new (ptr) ::flyte::plugins::sagemaker::SagemakerHPOJob(); + void* ptr = &::flyteidl::plugins::sagemaker::_SagemakerHPOJob_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::SagemakerHPOJob(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyte::plugins::sagemaker::SagemakerHPOJob::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::SagemakerHPOJob::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<3> scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = @@ -281,136 +281,136 @@ constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descr const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ContinuousParameterRange, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ContinuousParameterRange, name_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ContinuousParameterRange, maxvalue_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ContinuousParameterRange, minvalue_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ContinuousParameterRange, scalingtype_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, maxvalue_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, minvalue_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, scalingtype_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::IntegerParameterRange, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::IntegerParameterRange, name_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::IntegerParameterRange, maxvalue_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::IntegerParameterRange, minvalue_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::IntegerParameterRange, scalingtype_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, maxvalue_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, minvalue_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, scalingtype_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::CategoricalParameterRange, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::CategoricalParameterRange, name_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::CategoricalParameterRange, values_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, values_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ParameterRanges, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ParameterRanges, continuousparameterranges_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ParameterRanges, integerparameterranges_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ParameterRanges, categoricalparameterranges_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, continuousparameterranges_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, integerparameterranges_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, categoricalparameterranges_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, name_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, regex_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, regex_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification, trainingimage_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification, traininginputmode_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification, algorithmname_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::AlgorithmSpecification, metricdefinitions_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, trainingimage_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, traininginputmode_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithmname_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, metricdefinitions_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ResourceConfig, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ResourceConfig, instancetype_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ResourceConfig, instancecount_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ResourceConfig, volumesizeingb_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::ResourceConfig, volumekmskeyid_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, instancetype_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, instancecount_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, volumesizeingb_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, volumekmskeyid_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::StoppingCondition, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::StoppingCondition, maxruntimeinseconds_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::StoppingCondition, maxwaittimeinseconds_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, maxruntimeinseconds_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, maxwaittimeinseconds_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::VpcConfig, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::VpcConfig, securitygroupids_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::VpcConfig, subnets_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, securitygroupids_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, subnets_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, region_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, rolearn_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, algorithmspecification_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, resourceconfig_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, stoppingcondition_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, vpcconfig_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerTrainingJob, enablespottraining_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, region_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, rolearn_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, algorithmspecification_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, resourceconfig_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, stoppingcondition_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, vpcconfig_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, enablespottraining_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::HPOJobObjective, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::HPOJobObjective, type_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::HPOJobObjective, metricname_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, metricname_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, strategy_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, objective_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, maxnumberoftrainingjobs_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, maxparalleltrainingjobs_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, parameterranges_), - PROTOBUF_FIELD_OFFSET(::flyte::plugins::sagemaker::SagemakerHPOJob, trainingjob_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, strategy_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, objective_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, maxnumberoftrainingjobs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, maxparalleltrainingjobs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, parameterranges_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, trainingjob_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyte::plugins::sagemaker::ContinuousParameterRange)}, - { 9, -1, sizeof(::flyte::plugins::sagemaker::IntegerParameterRange)}, - { 18, -1, sizeof(::flyte::plugins::sagemaker::CategoricalParameterRange)}, - { 25, -1, sizeof(::flyte::plugins::sagemaker::ParameterRanges)}, - { 33, -1, sizeof(::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition)}, - { 40, -1, sizeof(::flyte::plugins::sagemaker::AlgorithmSpecification)}, - { 49, -1, sizeof(::flyte::plugins::sagemaker::ResourceConfig)}, - { 58, -1, sizeof(::flyte::plugins::sagemaker::StoppingCondition)}, - { 65, -1, sizeof(::flyte::plugins::sagemaker::VpcConfig)}, - { 72, -1, sizeof(::flyte::plugins::sagemaker::SagemakerTrainingJob)}, - { 84, -1, sizeof(::flyte::plugins::sagemaker::HPOJobObjective)}, - { 91, -1, sizeof(::flyte::plugins::sagemaker::SagemakerHPOJob)}, + { 0, -1, sizeof(::flyteidl::plugins::sagemaker::ContinuousParameterRange)}, + { 9, -1, sizeof(::flyteidl::plugins::sagemaker::IntegerParameterRange)}, + { 18, -1, sizeof(::flyteidl::plugins::sagemaker::CategoricalParameterRange)}, + { 25, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges)}, + { 33, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition)}, + { 40, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)}, + { 49, -1, sizeof(::flyteidl::plugins::sagemaker::ResourceConfig)}, + { 58, -1, sizeof(::flyteidl::plugins::sagemaker::StoppingCondition)}, + { 65, -1, sizeof(::flyteidl::plugins::sagemaker::VpcConfig)}, + { 72, -1, sizeof(::flyteidl::plugins::sagemaker::SagemakerTrainingJob)}, + { 84, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJobObjective)}, + { 91, -1, sizeof(::flyteidl::plugins::sagemaker::SagemakerHPOJob)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyte::plugins::sagemaker::_ContinuousParameterRange_default_instance_), - reinterpret_cast(&::flyte::plugins::sagemaker::_IntegerParameterRange_default_instance_), - reinterpret_cast(&::flyte::plugins::sagemaker::_CategoricalParameterRange_default_instance_), - reinterpret_cast(&::flyte::plugins::sagemaker::_ParameterRanges_default_instance_), - reinterpret_cast(&::flyte::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_), - reinterpret_cast(&::flyte::plugins::sagemaker::_AlgorithmSpecification_default_instance_), - reinterpret_cast(&::flyte::plugins::sagemaker::_ResourceConfig_default_instance_), - reinterpret_cast(&::flyte::plugins::sagemaker::_StoppingCondition_default_instance_), - reinterpret_cast(&::flyte::plugins::sagemaker::_VpcConfig_default_instance_), - reinterpret_cast(&::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_), - reinterpret_cast(&::flyte::plugins::sagemaker::_HPOJobObjective_default_instance_), - reinterpret_cast(&::flyte::plugins::sagemaker::_SagemakerHPOJob_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ResourceConfig_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_VpcConfig_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJobObjective_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_SagemakerHPOJob_default_instance_), }; ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = { @@ -421,64 +421,66 @@ ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_fl const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[] = "\n*flyteidl/plugins/sagemaker/sagemaker.p" - "roto\022\027flyte.plugins.sagemaker\"\225\001\n\030Contin" - "uousParameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxV" - "alue\030\002 \001(\001\022\020\n\010MinValue\030\003 \001(\001\022G\n\013ScalingT" - "ype\030\004 \001(\01622.flyte.plugins.sagemaker.Hype" - "rparameterScalingType\"\222\001\n\025IntegerParamet" - "erRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxValue\030\002 \001(\002\022" - "\020\n\010MinValue\030\003 \001(\002\022G\n\013ScalingType\030\004 \001(\01622" - ".flyte.plugins.sagemaker.HyperparameterS" - "calingType\"9\n\031CategoricalParameterRange\022" - "\014\n\004Name\030\001 \001(\t\022\016\n\006Values\030\002 \003(\t\"\217\002\n\017Parame" - "terRanges\022T\n\031ContinuousParameterRanges\030\001" - " \003(\01321.flyte.plugins.sagemaker.Continuou" - "sParameterRange\022N\n\026IntegerParameterRange" - "s\030\002 \003(\0132..flyte.plugins.sagemaker.Intege" - "rParameterRange\022V\n\032CategoricalParameterR" - "anges\030\003 \003(\01322.flyte.plugins.sagemaker.Ca" - "tegoricalParameterRange\"\357\001\n\026AlgorithmSpe" - "cification\022\025\n\rTrainingImage\030\001 \001(\t\022\031\n\021Tra" - "iningInputMode\030\002 \001(\t\022\025\n\rAlgorithmName\030\003 " - "\001(\t\022[\n\021MetricDefinitions\030\004 \003(\0132@.flyte.p" - "lugins.sagemaker.AlgorithmSpecification." - "MetricDefinition\032/\n\020MetricDefinition\022\014\n\004" - "Name\030\001 \001(\t\022\r\n\005Regex\030\002 \001(\t\"m\n\016ResourceCon" - "fig\022\024\n\014InstanceType\030\001 \001(\t\022\025\n\rInstanceCou" - "nt\030\002 \001(\003\022\026\n\016VolumeSizeInGB\030\003 \001(\003\022\026\n\016Volu" - "meKmsKeyId\030\004 \001(\t\"N\n\021StoppingCondition\022\033\n" - "\023MaxRuntimeInSeconds\030\001 \001(\003\022\034\n\024MaxWaitTim" - "eInSeconds\030\002 \001(\003\"6\n\tVpcConfig\022\030\n\020Securit" - "yGroupIds\030\001 \003(\t\022\017\n\007Subnets\030\002 \003(\t\"\343\002\n\024Sag" - "emakerTrainingJob\022\016\n\006Region\030\001 \001(\t\022\017\n\007Rol" - "eArn\030\002 \001(\t\022O\n\026AlgorithmSpecification\030\003 \001" - "(\0132/.flyte.plugins.sagemaker.AlgorithmSp" - "ecification\022\?\n\016ResourceConfig\030\004 \001(\0132\'.fl" - "yte.plugins.sagemaker.ResourceConfig\022E\n\021" - "StoppingCondition\030\005 \001(\0132*.flyte.plugins." - "sagemaker.StoppingCondition\0225\n\tVpcConfig" - "\030\006 \001(\0132\".flyte.plugins.sagemaker.VpcConf" - "ig\022\032\n\022EnableSpotTraining\030\007 \001(\010\"a\n\017HPOJob" - "Objective\022:\n\004Type\030\001 \001(\0162,.flyte.plugins." - "sagemaker.HPOJobObjectiveType\022\022\n\nMetricN" - "ame\030\002 \001(\t\"\251\002\n\017SagemakerHPOJob\022\020\n\010Strateg" - "y\030\001 \001(\t\022;\n\tObjective\030\002 \001(\0132(.flyte.plugi" - "ns.sagemaker.HPOJobObjective\022\037\n\027MaxNumbe" - "rOfTrainingJobs\030\003 \001(\003\022\037\n\027MaxParallelTrai" - "ningJobs\030\004 \001(\003\022A\n\017ParameterRanges\030\005 \001(\0132" - "(.flyte.plugins.sagemaker.ParameterRange" - "s\022B\n\013TrainingJob\030\006 \001(\0132-.flyte.plugins.s" - "agemaker.SagemakerTrainingJob*Z\n\031Hyperpa" - "rameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001" - "\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHMIC\020" - "\003*1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE\020\000\022\014" - "\n\010MAXIMIZE\020\001B5Z3github.com/lyft/flyteidl" - "/gen/pb-go/flyteidl/pluginsb\006proto3" + "roto\022\032flyteidl.plugins.sagemaker\"\230\001\n\030Con" + "tinuousParameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010M" + "axValue\030\002 \001(\001\022\020\n\010MinValue\030\003 \001(\001\022J\n\013Scali" + "ngType\030\004 \001(\01625.flyteidl.plugins.sagemake" + "r.HyperparameterScalingType\"\225\001\n\025IntegerP" + "arameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxValue\030" + "\002 \001(\002\022\020\n\010MinValue\030\003 \001(\002\022J\n\013ScalingType\030\004" + " \001(\01625.flyteidl.plugins.sagemaker.Hyperp" + "arameterScalingType\"9\n\031CategoricalParame" + "terRange\022\014\n\004Name\030\001 \001(\t\022\016\n\006Values\030\002 \003(\t\"\230" + "\002\n\017ParameterRanges\022W\n\031ContinuousParamete" + "rRanges\030\001 \003(\01324.flyteidl.plugins.sagemak" + "er.ContinuousParameterRange\022Q\n\026IntegerPa" + "rameterRanges\030\002 \003(\01321.flyteidl.plugins.s" + "agemaker.IntegerParameterRange\022Y\n\032Catego" + "ricalParameterRanges\030\003 \003(\01325.flyteidl.pl" + "ugins.sagemaker.CategoricalParameterRang" + "e\"\362\001\n\026AlgorithmSpecification\022\025\n\rTraining" + "Image\030\001 \001(\t\022\031\n\021TrainingInputMode\030\002 \001(\t\022\025" + "\n\rAlgorithmName\030\003 \001(\t\022^\n\021MetricDefinitio" + "ns\030\004 \003(\0132C.flyteidl.plugins.sagemaker.Al" + "gorithmSpecification.MetricDefinition\032/\n" + "\020MetricDefinition\022\014\n\004Name\030\001 \001(\t\022\r\n\005Regex" + "\030\002 \001(\t\"m\n\016ResourceConfig\022\024\n\014InstanceType" + "\030\001 \001(\t\022\025\n\rInstanceCount\030\002 \001(\003\022\026\n\016VolumeS" + "izeInGB\030\003 \001(\003\022\026\n\016VolumeKmsKeyId\030\004 \001(\t\"N\n" + "\021StoppingCondition\022\033\n\023MaxRuntimeInSecond" + "s\030\001 \001(\003\022\034\n\024MaxWaitTimeInSeconds\030\002 \001(\003\"6\n" + "\tVpcConfig\022\030\n\020SecurityGroupIds\030\001 \003(\t\022\017\n\007" + "Subnets\030\002 \003(\t\"\357\002\n\024SagemakerTrainingJob\022\016" + "\n\006Region\030\001 \001(\t\022\017\n\007RoleArn\030\002 \001(\t\022R\n\026Algor" + "ithmSpecification\030\003 \001(\01322.flyteidl.plugi" + "ns.sagemaker.AlgorithmSpecification\022B\n\016R" + "esourceConfig\030\004 \001(\0132*.flyteidl.plugins.s" + "agemaker.ResourceConfig\022H\n\021StoppingCondi" + "tion\030\005 \001(\0132-.flyteidl.plugins.sagemaker." + "StoppingCondition\0228\n\tVpcConfig\030\006 \001(\0132%.f" + "lyteidl.plugins.sagemaker.VpcConfig\022\032\n\022E" + "nableSpotTraining\030\007 \001(\010\"\247\001\n\017HPOJobObject" + "ive\022M\n\004Type\030\001 \001(\0162\?.flyteidl.plugins.sag" + "emaker.HPOJobObjective.HPOJobObjectiveTy" + "pe\022\022\n\nMetricName\030\002 \001(\t\"1\n\023HPOJobObjectiv" + "eType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\262\002\n\017Sa" + "gemakerHPOJob\022\020\n\010Strategy\030\001 \001(\t\022>\n\tObjec" + "tive\030\002 \001(\0132+.flyteidl.plugins.sagemaker." + "HPOJobObjective\022\037\n\027MaxNumberOfTrainingJo" + "bs\030\003 \001(\003\022\037\n\027MaxParallelTrainingJobs\030\004 \001(" + "\003\022D\n\017ParameterRanges\030\005 \001(\0132+.flyteidl.pl" + "ugins.sagemaker.ParameterRanges\022E\n\013Train" + "ingJob\030\006 \001(\01320.flyteidl.plugins.sagemake" + "r.SagemakerTrainingJob*Z\n\031Hyperparameter" + "ScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001\022\017\n\013LOG" + "ARITHMIC\020\002\022\026\n\022REVERSELOGARITHMIC\020\003B5Z3gi" + "thub.com/lyft/flyteidl/gen/pb-go/flyteid" + "l/pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, - "flyteidl/plugins/sagemaker/sagemaker.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, 2155, + "flyteidl/plugins/sagemaker/sagemaker.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, 2217, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { @@ -490,33 +492,40 @@ void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { // Force running AddDescriptors() at dynamic initialization time. static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto(); return true; }(); -namespace flyte { +namespace flyteidl { namespace plugins { namespace sagemaker { -const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor() { +const ::google::protobuf::EnumDescriptor* HPOJobObjective_HPOJobObjectiveType_descriptor() { ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[0]; } -bool HyperparameterScalingType_IsValid(int value) { +bool HPOJobObjective_HPOJobObjectiveType_IsValid(int value) { switch (value) { case 0: case 1: - case 2: - case 3: return true; default: return false; } } -const ::google::protobuf::EnumDescriptor* HPOJobObjectiveType_descriptor() { +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::MINIMIZE; +const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::MAXIMIZE; +const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::HPOJobObjectiveType_MIN; +const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::HPOJobObjectiveType_MAX; +const int HPOJobObjective::HPOJobObjectiveType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor() { ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[1]; } -bool HPOJobObjectiveType_IsValid(int value) { +bool HyperparameterScalingType_IsValid(int value) { switch (value) { case 0: case 1: + case 2: + case 3: return true; default: return false; @@ -542,7 +551,7 @@ const int ContinuousParameterRange::kScalingTypeFieldNumber; ContinuousParameterRange::ContinuousParameterRange() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) } ContinuousParameterRange::ContinuousParameterRange(const ContinuousParameterRange& from) : ::google::protobuf::Message(), @@ -555,7 +564,7 @@ ContinuousParameterRange::ContinuousParameterRange(const ContinuousParameterRang ::memcpy(&maxvalue_, &from.maxvalue_, static_cast(reinterpret_cast(&scalingtype_) - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) } void ContinuousParameterRange::SharedCtor() { @@ -568,7 +577,7 @@ void ContinuousParameterRange::SharedCtor() { } ContinuousParameterRange::~ContinuousParameterRange() { - // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) SharedDtor(); } @@ -586,7 +595,7 @@ const ContinuousParameterRange& ContinuousParameterRange::default_instance() { void ContinuousParameterRange::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.ContinuousParameterRange) +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -616,7 +625,7 @@ const char* ContinuousParameterRange::_InternalParse(const char* begin, const ch if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.ContinuousParameterRange.Name"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ContinuousParameterRange.Name"); object = msg->mutable_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -641,11 +650,11 @@ const char* ContinuousParameterRange::_InternalParse(const char* begin, const ch ptr += sizeof(double); break; } - // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_scalingtype(static_cast<::flyte::plugins::sagemaker::HyperparameterScalingType>(val)); + msg->set_scalingtype(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -677,7 +686,7 @@ bool ContinuousParameterRange::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -691,7 +700,7 @@ bool ContinuousParameterRange::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.ContinuousParameterRange.Name")); + "flyteidl.plugins.sagemaker.ContinuousParameterRange.Name")); } else { goto handle_unusual; } @@ -724,14 +733,14 @@ bool ContinuousParameterRange::MergePartialFromCodedStream( break; } - // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - set_scalingtype(static_cast< ::flyte::plugins::sagemaker::HyperparameterScalingType >(value)); + set_scalingtype(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); } else { goto handle_unusual; } @@ -750,10 +759,10 @@ bool ContinuousParameterRange::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ContinuousParameterRange) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ContinuousParameterRange) return false; #undef DO_ } @@ -761,7 +770,7 @@ bool ContinuousParameterRange::MergePartialFromCodedStream( void ContinuousParameterRange::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -770,7 +779,7 @@ void ContinuousParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.ContinuousParameterRange.Name"); + "flyteidl.plugins.sagemaker.ContinuousParameterRange.Name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } @@ -785,7 +794,7 @@ void ContinuousParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->minvalue(), output); } - // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; if (this->scalingtype() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 4, this->scalingtype(), output); @@ -795,12 +804,12 @@ void ContinuousParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ContinuousParameterRange) } ::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -809,7 +818,7 @@ ::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCached ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.ContinuousParameterRange.Name"); + "flyteidl.plugins.sagemaker.ContinuousParameterRange.Name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); @@ -825,7 +834,7 @@ ::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCached target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->minvalue(), target); } - // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; if (this->scalingtype() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 4, this->scalingtype(), target); @@ -835,12 +844,12 @@ ::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCached target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ContinuousParameterRange) return target; } size_t ContinuousParameterRange::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.ContinuousParameterRange) +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -869,7 +878,7 @@ size_t ContinuousParameterRange::ByteSizeLong() const { total_size += 1 + 8; } - // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; if (this->scalingtype() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scalingtype()); @@ -881,22 +890,22 @@ size_t ContinuousParameterRange::ByteSizeLong() const { } void ContinuousParameterRange::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.ContinuousParameterRange) +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) GOOGLE_DCHECK_NE(&from, this); const ContinuousParameterRange* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ContinuousParameterRange) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ContinuousParameterRange) MergeFrom(*source); } } void ContinuousParameterRange::MergeFrom(const ContinuousParameterRange& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.ContinuousParameterRange) +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -918,14 +927,14 @@ void ContinuousParameterRange::MergeFrom(const ContinuousParameterRange& from) { } void ContinuousParameterRange::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.ContinuousParameterRange) +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) if (&from == this) return; Clear(); MergeFrom(from); } void ContinuousParameterRange::CopyFrom(const ContinuousParameterRange& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.ContinuousParameterRange) +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) if (&from == this) return; Clear(); MergeFrom(from); @@ -973,7 +982,7 @@ const int IntegerParameterRange::kScalingTypeFieldNumber; IntegerParameterRange::IntegerParameterRange() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.IntegerParameterRange) } IntegerParameterRange::IntegerParameterRange(const IntegerParameterRange& from) : ::google::protobuf::Message(), @@ -986,7 +995,7 @@ IntegerParameterRange::IntegerParameterRange(const IntegerParameterRange& from) ::memcpy(&maxvalue_, &from.maxvalue_, static_cast(reinterpret_cast(&scalingtype_) - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.IntegerParameterRange) } void IntegerParameterRange::SharedCtor() { @@ -999,7 +1008,7 @@ void IntegerParameterRange::SharedCtor() { } IntegerParameterRange::~IntegerParameterRange() { - // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.IntegerParameterRange) SharedDtor(); } @@ -1017,7 +1026,7 @@ const IntegerParameterRange& IntegerParameterRange::default_instance() { void IntegerParameterRange::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.IntegerParameterRange) +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.IntegerParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1047,7 +1056,7 @@ const char* IntegerParameterRange::_InternalParse(const char* begin, const char* if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.IntegerParameterRange.Name"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.IntegerParameterRange.Name"); object = msg->mutable_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -1072,11 +1081,11 @@ const char* IntegerParameterRange::_InternalParse(const char* begin, const char* ptr += sizeof(float); break; } - // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_scalingtype(static_cast<::flyte::plugins::sagemaker::HyperparameterScalingType>(val)); + msg->set_scalingtype(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -1108,7 +1117,7 @@ bool IntegerParameterRange::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.IntegerParameterRange) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -1122,7 +1131,7 @@ bool IntegerParameterRange::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.IntegerParameterRange.Name")); + "flyteidl.plugins.sagemaker.IntegerParameterRange.Name")); } else { goto handle_unusual; } @@ -1155,14 +1164,14 @@ bool IntegerParameterRange::MergePartialFromCodedStream( break; } - // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - set_scalingtype(static_cast< ::flyte::plugins::sagemaker::HyperparameterScalingType >(value)); + set_scalingtype(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); } else { goto handle_unusual; } @@ -1181,10 +1190,10 @@ bool IntegerParameterRange::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.IntegerParameterRange) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.IntegerParameterRange) return false; #undef DO_ } @@ -1192,7 +1201,7 @@ bool IntegerParameterRange::MergePartialFromCodedStream( void IntegerParameterRange::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.IntegerParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1201,7 +1210,7 @@ void IntegerParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.IntegerParameterRange.Name"); + "flyteidl.plugins.sagemaker.IntegerParameterRange.Name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } @@ -1216,7 +1225,7 @@ void IntegerParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->minvalue(), output); } - // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; if (this->scalingtype() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 4, this->scalingtype(), output); @@ -1226,12 +1235,12 @@ void IntegerParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.IntegerParameterRange) } ::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.IntegerParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1240,7 +1249,7 @@ ::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSiz ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.IntegerParameterRange.Name"); + "flyteidl.plugins.sagemaker.IntegerParameterRange.Name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); @@ -1256,7 +1265,7 @@ ::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSiz target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->minvalue(), target); } - // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; if (this->scalingtype() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 4, this->scalingtype(), target); @@ -1266,12 +1275,12 @@ ::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSiz target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.IntegerParameterRange) return target; } size_t IntegerParameterRange::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.IntegerParameterRange) +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.IntegerParameterRange) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -1300,7 +1309,7 @@ size_t IntegerParameterRange::ByteSizeLong() const { total_size += 1 + 4; } - // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; if (this->scalingtype() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scalingtype()); @@ -1312,22 +1321,22 @@ size_t IntegerParameterRange::ByteSizeLong() const { } void IntegerParameterRange::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.IntegerParameterRange) +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) GOOGLE_DCHECK_NE(&from, this); const IntegerParameterRange* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.IntegerParameterRange) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.IntegerParameterRange) MergeFrom(*source); } } void IntegerParameterRange::MergeFrom(const IntegerParameterRange& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.IntegerParameterRange) +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -1349,14 +1358,14 @@ void IntegerParameterRange::MergeFrom(const IntegerParameterRange& from) { } void IntegerParameterRange::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.IntegerParameterRange) +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) if (&from == this) return; Clear(); MergeFrom(from); } void IntegerParameterRange::CopyFrom(const IntegerParameterRange& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.IntegerParameterRange) +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) if (&from == this) return; Clear(); MergeFrom(from); @@ -1402,7 +1411,7 @@ const int CategoricalParameterRange::kValuesFieldNumber; CategoricalParameterRange::CategoricalParameterRange() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) } CategoricalParameterRange::CategoricalParameterRange(const CategoricalParameterRange& from) : ::google::protobuf::Message(), @@ -1413,7 +1422,7 @@ CategoricalParameterRange::CategoricalParameterRange(const CategoricalParameterR if (from.name().size() > 0) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } - // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) } void CategoricalParameterRange::SharedCtor() { @@ -1423,7 +1432,7 @@ void CategoricalParameterRange::SharedCtor() { } CategoricalParameterRange::~CategoricalParameterRange() { - // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) SharedDtor(); } @@ -1441,7 +1450,7 @@ const CategoricalParameterRange& CategoricalParameterRange::default_instance() { void CategoricalParameterRange::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.CategoricalParameterRange) +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1469,7 +1478,7 @@ const char* CategoricalParameterRange::_InternalParse(const char* begin, const c if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.CategoricalParameterRange.Name"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.CategoricalParameterRange.Name"); object = msg->mutable_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -1486,7 +1495,7 @@ const char* CategoricalParameterRange::_InternalParse(const char* begin, const c do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.CategoricalParameterRange.Values"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.CategoricalParameterRange.Values"); object = msg->add_values(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -1527,7 +1536,7 @@ bool CategoricalParameterRange::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -1541,7 +1550,7 @@ bool CategoricalParameterRange::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.CategoricalParameterRange.Name")); + "flyteidl.plugins.sagemaker.CategoricalParameterRange.Name")); } else { goto handle_unusual; } @@ -1557,7 +1566,7 @@ bool CategoricalParameterRange::MergePartialFromCodedStream( this->values(this->values_size() - 1).data(), static_cast(this->values(this->values_size() - 1).length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.CategoricalParameterRange.Values")); + "flyteidl.plugins.sagemaker.CategoricalParameterRange.Values")); } else { goto handle_unusual; } @@ -1576,10 +1585,10 @@ bool CategoricalParameterRange::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.CategoricalParameterRange) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.CategoricalParameterRange) return false; #undef DO_ } @@ -1587,7 +1596,7 @@ bool CategoricalParameterRange::MergePartialFromCodedStream( void CategoricalParameterRange::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1596,7 +1605,7 @@ void CategoricalParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.CategoricalParameterRange.Name"); + "flyteidl.plugins.sagemaker.CategoricalParameterRange.Name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } @@ -1606,7 +1615,7 @@ void CategoricalParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->values(i).data(), static_cast(this->values(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.CategoricalParameterRange.Values"); + "flyteidl.plugins.sagemaker.CategoricalParameterRange.Values"); ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->values(i), output); } @@ -1615,12 +1624,12 @@ void CategoricalParameterRange::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.CategoricalParameterRange) } ::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1629,7 +1638,7 @@ ::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCache ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.CategoricalParameterRange.Name"); + "flyteidl.plugins.sagemaker.CategoricalParameterRange.Name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); @@ -1640,7 +1649,7 @@ ::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCache ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->values(i).data(), static_cast(this->values(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.CategoricalParameterRange.Values"); + "flyteidl.plugins.sagemaker.CategoricalParameterRange.Values"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(2, this->values(i), target); } @@ -1649,12 +1658,12 @@ ::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCache target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.CategoricalParameterRange) return target; } size_t CategoricalParameterRange::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.CategoricalParameterRange) +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -1687,22 +1696,22 @@ size_t CategoricalParameterRange::ByteSizeLong() const { } void CategoricalParameterRange::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.CategoricalParameterRange) +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) GOOGLE_DCHECK_NE(&from, this); const CategoricalParameterRange* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.CategoricalParameterRange) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.CategoricalParameterRange) MergeFrom(*source); } } void CategoricalParameterRange::MergeFrom(const CategoricalParameterRange& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.CategoricalParameterRange) +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -1716,14 +1725,14 @@ void CategoricalParameterRange::MergeFrom(const CategoricalParameterRange& from) } void CategoricalParameterRange::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.CategoricalParameterRange) +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) if (&from == this) return; Clear(); MergeFrom(from); } void CategoricalParameterRange::CopyFrom(const CategoricalParameterRange& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.CategoricalParameterRange) +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) if (&from == this) return; Clear(); MergeFrom(from); @@ -1768,7 +1777,7 @@ const int ParameterRanges::kCategoricalParameterRangesFieldNumber; ParameterRanges::ParameterRanges() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ParameterRanges) } ParameterRanges::ParameterRanges(const ParameterRanges& from) : ::google::protobuf::Message(), @@ -1777,7 +1786,7 @@ ParameterRanges::ParameterRanges(const ParameterRanges& from) integerparameterranges_(from.integerparameterranges_), categoricalparameterranges_(from.categoricalparameterranges_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ParameterRanges) } void ParameterRanges::SharedCtor() { @@ -1786,7 +1795,7 @@ void ParameterRanges::SharedCtor() { } ParameterRanges::~ParameterRanges() { - // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ParameterRanges) SharedDtor(); } @@ -1803,7 +1812,7 @@ const ParameterRanges& ParameterRanges::default_instance() { void ParameterRanges::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.ParameterRanges) +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ParameterRanges) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1827,13 +1836,13 @@ const char* ParameterRanges::_InternalParse(const char* begin, const char* end, ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + // repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::sagemaker::ContinuousParameterRange::_InternalParse; + parser_till_end = ::flyteidl::plugins::sagemaker::ContinuousParameterRange::_InternalParse; object = msg->add_continuousparameterranges(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -1843,13 +1852,13 @@ const char* ParameterRanges::_InternalParse(const char* begin, const char* end, } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); break; } - // repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + // repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::sagemaker::IntegerParameterRange::_InternalParse; + parser_till_end = ::flyteidl::plugins::sagemaker::IntegerParameterRange::_InternalParse; object = msg->add_integerparameterranges(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -1859,13 +1868,13 @@ const char* ParameterRanges::_InternalParse(const char* begin, const char* end, } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); break; } - // repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + // repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::sagemaker::CategoricalParameterRange::_InternalParse; + parser_till_end = ::flyteidl::plugins::sagemaker::CategoricalParameterRange::_InternalParse; object = msg->add_categoricalparameterranges(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -1899,13 +1908,13 @@ bool ParameterRanges::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ParameterRanges) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + // repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -1916,7 +1925,7 @@ bool ParameterRanges::MergePartialFromCodedStream( break; } - // repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + // repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -1927,7 +1936,7 @@ bool ParameterRanges::MergePartialFromCodedStream( break; } - // repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + // repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -1950,10 +1959,10 @@ bool ParameterRanges::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ParameterRanges) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ParameterRanges) return false; #undef DO_ } @@ -1961,11 +1970,11 @@ bool ParameterRanges::MergePartialFromCodedStream( void ParameterRanges::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ParameterRanges) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + // repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; for (unsigned int i = 0, n = static_cast(this->continuousparameterranges_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( @@ -1974,7 +1983,7 @@ void ParameterRanges::SerializeWithCachedSizes( output); } - // repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + // repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; for (unsigned int i = 0, n = static_cast(this->integerparameterranges_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( @@ -1983,7 +1992,7 @@ void ParameterRanges::SerializeWithCachedSizes( output); } - // repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + // repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; for (unsigned int i = 0, n = static_cast(this->categoricalparameterranges_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( @@ -1996,16 +2005,16 @@ void ParameterRanges::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ParameterRanges) } ::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ParameterRanges) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + // repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; for (unsigned int i = 0, n = static_cast(this->continuousparameterranges_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: @@ -2013,7 +2022,7 @@ ::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToAr 1, this->continuousparameterranges(static_cast(i)), target); } - // repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + // repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; for (unsigned int i = 0, n = static_cast(this->integerparameterranges_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: @@ -2021,7 +2030,7 @@ ::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToAr 2, this->integerparameterranges(static_cast(i)), target); } - // repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + // repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; for (unsigned int i = 0, n = static_cast(this->categoricalparameterranges_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: @@ -2033,12 +2042,12 @@ ::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToAr target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ParameterRanges) return target; } size_t ParameterRanges::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.ParameterRanges) +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ParameterRanges) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2050,7 +2059,7 @@ size_t ParameterRanges::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + // repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; { unsigned int count = static_cast(this->continuousparameterranges_size()); total_size += 1UL * count; @@ -2061,7 +2070,7 @@ size_t ParameterRanges::ByteSizeLong() const { } } - // repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + // repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; { unsigned int count = static_cast(this->integerparameterranges_size()); total_size += 1UL * count; @@ -2072,7 +2081,7 @@ size_t ParameterRanges::ByteSizeLong() const { } } - // repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + // repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; { unsigned int count = static_cast(this->categoricalparameterranges_size()); total_size += 1UL * count; @@ -2089,22 +2098,22 @@ size_t ParameterRanges::ByteSizeLong() const { } void ParameterRanges::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.ParameterRanges) +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ParameterRanges) GOOGLE_DCHECK_NE(&from, this); const ParameterRanges* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ParameterRanges) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ParameterRanges) MergeFrom(*source); } } void ParameterRanges::MergeFrom(const ParameterRanges& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.ParameterRanges) +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ParameterRanges) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -2116,14 +2125,14 @@ void ParameterRanges::MergeFrom(const ParameterRanges& from) { } void ParameterRanges::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.ParameterRanges) +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ParameterRanges) if (&from == this) return; Clear(); MergeFrom(from); } void ParameterRanges::CopyFrom(const ParameterRanges& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.ParameterRanges) +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ParameterRanges) if (&from == this) return; Clear(); MergeFrom(from); @@ -2167,7 +2176,7 @@ const int AlgorithmSpecification_MetricDefinition::kRegexFieldNumber; AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) } AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from) : ::google::protobuf::Message(), @@ -2181,7 +2190,7 @@ AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition if (from.regex().size() > 0) { regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); } - // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) } void AlgorithmSpecification_MetricDefinition::SharedCtor() { @@ -2192,7 +2201,7 @@ void AlgorithmSpecification_MetricDefinition::SharedCtor() { } AlgorithmSpecification_MetricDefinition::~AlgorithmSpecification_MetricDefinition() { - // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) SharedDtor(); } @@ -2211,7 +2220,7 @@ const AlgorithmSpecification_MetricDefinition& AlgorithmSpecification_MetricDefi void AlgorithmSpecification_MetricDefinition::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2239,7 +2248,7 @@ const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char* if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); object = msg->mutable_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -2255,7 +2264,7 @@ const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char* if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); object = msg->mutable_regex(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -2294,7 +2303,7 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -2308,7 +2317,7 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name")); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name")); } else { goto handle_unusual; } @@ -2323,7 +2332,7 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->regex().data(), static_cast(this->regex().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex")); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex")); } else { goto handle_unusual; } @@ -2342,10 +2351,10 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) return false; #undef DO_ } @@ -2353,7 +2362,7 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2362,7 +2371,7 @@ void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } @@ -2372,7 +2381,7 @@ void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->regex().data(), static_cast(this->regex().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->regex(), output); } @@ -2381,12 +2390,12 @@ void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) } ::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2395,7 +2404,7 @@ ::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSeri ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); @@ -2406,7 +2415,7 @@ ::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSeri ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->regex().data(), static_cast(this->regex().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->regex(), target); @@ -2416,12 +2425,12 @@ ::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSeri target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) return target; } size_t AlgorithmSpecification_MetricDefinition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2453,22 +2462,22 @@ size_t AlgorithmSpecification_MetricDefinition::ByteSizeLong() const { } void AlgorithmSpecification_MetricDefinition::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) GOOGLE_DCHECK_NE(&from, this); const AlgorithmSpecification_MetricDefinition* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) MergeFrom(*source); } } void AlgorithmSpecification_MetricDefinition::MergeFrom(const AlgorithmSpecification_MetricDefinition& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -2485,14 +2494,14 @@ void AlgorithmSpecification_MetricDefinition::MergeFrom(const AlgorithmSpecifica } void AlgorithmSpecification_MetricDefinition::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) if (&from == this) return; Clear(); MergeFrom(from); } void AlgorithmSpecification_MetricDefinition::CopyFrom(const AlgorithmSpecification_MetricDefinition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) if (&from == this) return; Clear(); MergeFrom(from); @@ -2539,7 +2548,7 @@ const int AlgorithmSpecification::kMetricDefinitionsFieldNumber; AlgorithmSpecification::AlgorithmSpecification() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) } AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& from) : ::google::protobuf::Message(), @@ -2558,7 +2567,7 @@ AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& fro if (from.algorithmname().size() > 0) { algorithmname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithmname_); } - // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) } void AlgorithmSpecification::SharedCtor() { @@ -2570,7 +2579,7 @@ void AlgorithmSpecification::SharedCtor() { } AlgorithmSpecification::~AlgorithmSpecification() { - // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) SharedDtor(); } @@ -2590,7 +2599,7 @@ const AlgorithmSpecification& AlgorithmSpecification::default_instance() { void AlgorithmSpecification::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.AlgorithmSpecification) +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2620,7 +2629,7 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); object = msg->mutable_trainingimage(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -2636,7 +2645,7 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); object = msg->mutable_traininginputmode(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -2652,7 +2661,7 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); object = msg->mutable_algorithmname(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -2663,13 +2672,13 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char ptr += size; break; } - // repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::_InternalParse; + parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::_InternalParse; object = msg->add_metricdefinitions(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -2707,7 +2716,7 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -2721,7 +2730,7 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->trainingimage().data(), static_cast(this->trainingimage().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage")); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage")); } else { goto handle_unusual; } @@ -2736,7 +2745,7 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->traininginputmode().data(), static_cast(this->traininginputmode().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode")); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode")); } else { goto handle_unusual; } @@ -2751,14 +2760,14 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->algorithmname().data(), static_cast(this->algorithmname().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName")); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName")); } else { goto handle_unusual; } break; } - // repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -2781,10 +2790,10 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmSpecification) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmSpecification) return false; #undef DO_ } @@ -2792,7 +2801,7 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( void AlgorithmSpecification::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2801,7 +2810,7 @@ void AlgorithmSpecification::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->trainingimage().data(), static_cast(this->trainingimage().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->trainingimage(), output); } @@ -2811,7 +2820,7 @@ void AlgorithmSpecification::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->traininginputmode().data(), static_cast(this->traininginputmode().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->traininginputmode(), output); } @@ -2821,12 +2830,12 @@ void AlgorithmSpecification::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->algorithmname().data(), static_cast(this->algorithmname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->algorithmname(), output); } - // repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; for (unsigned int i = 0, n = static_cast(this->metricdefinitions_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( @@ -2839,12 +2848,12 @@ void AlgorithmSpecification::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmSpecification) } ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2853,7 +2862,7 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->trainingimage().data(), static_cast(this->trainingimage().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->trainingimage(), target); @@ -2864,7 +2873,7 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->traininginputmode().data(), static_cast(this->traininginputmode().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->traininginputmode(), target); @@ -2875,13 +2884,13 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->algorithmname().data(), static_cast(this->algorithmname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->algorithmname(), target); } - // repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; for (unsigned int i = 0, n = static_cast(this->metricdefinitions_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: @@ -2893,12 +2902,12 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmSpecification) return target; } size_t AlgorithmSpecification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.AlgorithmSpecification) +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2910,7 +2919,7 @@ size_t AlgorithmSpecification::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; { unsigned int count = static_cast(this->metricdefinitions_size()); total_size += 1UL * count; @@ -2948,22 +2957,22 @@ size_t AlgorithmSpecification::ByteSizeLong() const { } void AlgorithmSpecification::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.AlgorithmSpecification) +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) GOOGLE_DCHECK_NE(&from, this); const AlgorithmSpecification* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmSpecification) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmSpecification) MergeFrom(*source); } } void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.AlgorithmSpecification) +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -2985,14 +2994,14 @@ void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { } void AlgorithmSpecification::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.AlgorithmSpecification) +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) if (&from == this) return; Clear(); MergeFrom(from); } void AlgorithmSpecification::CopyFrom(const AlgorithmSpecification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.AlgorithmSpecification) +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) if (&from == this) return; Clear(); MergeFrom(from); @@ -3042,7 +3051,7 @@ const int ResourceConfig::kVolumeKmsKeyIdFieldNumber; ResourceConfig::ResourceConfig() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ResourceConfig) } ResourceConfig::ResourceConfig(const ResourceConfig& from) : ::google::protobuf::Message(), @@ -3059,7 +3068,7 @@ ResourceConfig::ResourceConfig(const ResourceConfig& from) ::memcpy(&instancecount_, &from.instancecount_, static_cast(reinterpret_cast(&volumesizeingb_) - reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ResourceConfig) } void ResourceConfig::SharedCtor() { @@ -3073,7 +3082,7 @@ void ResourceConfig::SharedCtor() { } ResourceConfig::~ResourceConfig() { - // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ResourceConfig) SharedDtor(); } @@ -3092,7 +3101,7 @@ const ResourceConfig& ResourceConfig::default_instance() { void ResourceConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.ResourceConfig) +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ResourceConfig) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3123,7 +3132,7 @@ const char* ResourceConfig::_InternalParse(const char* begin, const char* end, v if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.ResourceConfig.InstanceType"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ResourceConfig.InstanceType"); object = msg->mutable_instancetype(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -3153,7 +3162,7 @@ const char* ResourceConfig::_InternalParse(const char* begin, const char* end, v if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); object = msg->mutable_volumekmskeyid(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -3192,7 +3201,7 @@ bool ResourceConfig::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ResourceConfig) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -3206,7 +3215,7 @@ bool ResourceConfig::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->instancetype().data(), static_cast(this->instancetype().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.ResourceConfig.InstanceType")); + "flyteidl.plugins.sagemaker.ResourceConfig.InstanceType")); } else { goto handle_unusual; } @@ -3247,7 +3256,7 @@ bool ResourceConfig::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId")); + "flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId")); } else { goto handle_unusual; } @@ -3266,10 +3275,10 @@ bool ResourceConfig::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ResourceConfig) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ResourceConfig) return false; #undef DO_ } @@ -3277,7 +3286,7 @@ bool ResourceConfig::MergePartialFromCodedStream( void ResourceConfig::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ResourceConfig) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -3286,7 +3295,7 @@ void ResourceConfig::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->instancetype().data(), static_cast(this->instancetype().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.ResourceConfig.InstanceType"); + "flyteidl.plugins.sagemaker.ResourceConfig.InstanceType"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->instancetype(), output); } @@ -3306,7 +3315,7 @@ void ResourceConfig::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); + "flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->volumekmskeyid(), output); } @@ -3315,12 +3324,12 @@ void ResourceConfig::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ResourceConfig) } ::google::protobuf::uint8* ResourceConfig::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ResourceConfig) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -3329,7 +3338,7 @@ ::google::protobuf::uint8* ResourceConfig::InternalSerializeWithCachedSizesToArr ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->instancetype().data(), static_cast(this->instancetype().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.ResourceConfig.InstanceType"); + "flyteidl.plugins.sagemaker.ResourceConfig.InstanceType"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->instancetype(), target); @@ -3350,7 +3359,7 @@ ::google::protobuf::uint8* ResourceConfig::InternalSerializeWithCachedSizesToArr ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); + "flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->volumekmskeyid(), target); @@ -3360,12 +3369,12 @@ ::google::protobuf::uint8* ResourceConfig::InternalSerializeWithCachedSizesToArr target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ResourceConfig) return target; } size_t ResourceConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.ResourceConfig) +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ResourceConfig) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -3411,22 +3420,22 @@ size_t ResourceConfig::ByteSizeLong() const { } void ResourceConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.ResourceConfig) +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ResourceConfig) GOOGLE_DCHECK_NE(&from, this); const ResourceConfig* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ResourceConfig) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ResourceConfig) MergeFrom(*source); } } void ResourceConfig::MergeFrom(const ResourceConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.ResourceConfig) +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ResourceConfig) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -3449,14 +3458,14 @@ void ResourceConfig::MergeFrom(const ResourceConfig& from) { } void ResourceConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.ResourceConfig) +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ResourceConfig) if (&from == this) return; Clear(); MergeFrom(from); } void ResourceConfig::CopyFrom(const ResourceConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.ResourceConfig) +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ResourceConfig) if (&from == this) return; Clear(); MergeFrom(from); @@ -3503,7 +3512,7 @@ const int StoppingCondition::kMaxWaitTimeInSecondsFieldNumber; StoppingCondition::StoppingCondition() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.StoppingCondition) } StoppingCondition::StoppingCondition(const StoppingCondition& from) : ::google::protobuf::Message(), @@ -3512,7 +3521,7 @@ StoppingCondition::StoppingCondition(const StoppingCondition& from) ::memcpy(&maxruntimeinseconds_, &from.maxruntimeinseconds_, static_cast(reinterpret_cast(&maxwaittimeinseconds_) - reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.StoppingCondition) } void StoppingCondition::SharedCtor() { @@ -3522,7 +3531,7 @@ void StoppingCondition::SharedCtor() { } StoppingCondition::~StoppingCondition() { - // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.StoppingCondition) SharedDtor(); } @@ -3539,7 +3548,7 @@ const StoppingCondition& StoppingCondition::default_instance() { void StoppingCondition::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.StoppingCondition) +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.StoppingCondition) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3598,7 +3607,7 @@ bool StoppingCondition::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.StoppingCondition) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -3642,10 +3651,10 @@ bool StoppingCondition::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.StoppingCondition) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.StoppingCondition) return false; #undef DO_ } @@ -3653,7 +3662,7 @@ bool StoppingCondition::MergePartialFromCodedStream( void StoppingCondition::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.StoppingCondition) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -3671,12 +3680,12 @@ void StoppingCondition::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.StoppingCondition) } ::google::protobuf::uint8* StoppingCondition::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.StoppingCondition) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -3694,12 +3703,12 @@ ::google::protobuf::uint8* StoppingCondition::InternalSerializeWithCachedSizesTo target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.StoppingCondition) return target; } size_t StoppingCondition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.StoppingCondition) +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.StoppingCondition) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -3731,22 +3740,22 @@ size_t StoppingCondition::ByteSizeLong() const { } void StoppingCondition::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.StoppingCondition) +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.StoppingCondition) GOOGLE_DCHECK_NE(&from, this); const StoppingCondition* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.StoppingCondition) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.StoppingCondition) MergeFrom(*source); } } void StoppingCondition::MergeFrom(const StoppingCondition& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.StoppingCondition) +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.StoppingCondition) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -3761,14 +3770,14 @@ void StoppingCondition::MergeFrom(const StoppingCondition& from) { } void StoppingCondition::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.StoppingCondition) +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.StoppingCondition) if (&from == this) return; Clear(); MergeFrom(from); } void StoppingCondition::CopyFrom(const StoppingCondition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.StoppingCondition) +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.StoppingCondition) if (&from == this) return; Clear(); MergeFrom(from); @@ -3811,7 +3820,7 @@ const int VpcConfig::kSubnetsFieldNumber; VpcConfig::VpcConfig() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.VpcConfig) } VpcConfig::VpcConfig(const VpcConfig& from) : ::google::protobuf::Message(), @@ -3819,7 +3828,7 @@ VpcConfig::VpcConfig(const VpcConfig& from) securitygroupids_(from.securitygroupids_), subnets_(from.subnets_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.VpcConfig) } void VpcConfig::SharedCtor() { @@ -3828,7 +3837,7 @@ void VpcConfig::SharedCtor() { } VpcConfig::~VpcConfig() { - // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.VpcConfig) SharedDtor(); } @@ -3845,7 +3854,7 @@ const VpcConfig& VpcConfig::default_instance() { void VpcConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.VpcConfig) +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.VpcConfig) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3874,7 +3883,7 @@ const char* VpcConfig::_InternalParse(const char* begin, const char* end, void* do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds"); object = msg->add_securitygroupids(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -3893,7 +3902,7 @@ const char* VpcConfig::_InternalParse(const char* begin, const char* end, void* do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.VpcConfig.Subnets"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.VpcConfig.Subnets"); object = msg->add_subnets(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -3934,7 +3943,7 @@ bool VpcConfig::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.VpcConfig) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -3949,7 +3958,7 @@ bool VpcConfig::MergePartialFromCodedStream( this->securitygroupids(this->securitygroupids_size() - 1).data(), static_cast(this->securitygroupids(this->securitygroupids_size() - 1).length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds")); + "flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds")); } else { goto handle_unusual; } @@ -3965,7 +3974,7 @@ bool VpcConfig::MergePartialFromCodedStream( this->subnets(this->subnets_size() - 1).data(), static_cast(this->subnets(this->subnets_size() - 1).length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.VpcConfig.Subnets")); + "flyteidl.plugins.sagemaker.VpcConfig.Subnets")); } else { goto handle_unusual; } @@ -3984,10 +3993,10 @@ bool VpcConfig::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.VpcConfig) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.VpcConfig) return false; #undef DO_ } @@ -3995,7 +4004,7 @@ bool VpcConfig::MergePartialFromCodedStream( void VpcConfig::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.VpcConfig) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -4004,7 +4013,7 @@ void VpcConfig::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->securitygroupids(i).data(), static_cast(this->securitygroupids(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds"); + "flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds"); ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->securitygroupids(i), output); } @@ -4014,7 +4023,7 @@ void VpcConfig::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->subnets(i).data(), static_cast(this->subnets(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.VpcConfig.Subnets"); + "flyteidl.plugins.sagemaker.VpcConfig.Subnets"); ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->subnets(i), output); } @@ -4023,12 +4032,12 @@ void VpcConfig::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.VpcConfig) } ::google::protobuf::uint8* VpcConfig::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.VpcConfig) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -4037,7 +4046,7 @@ ::google::protobuf::uint8* VpcConfig::InternalSerializeWithCachedSizesToArray( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->securitygroupids(i).data(), static_cast(this->securitygroupids(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds"); + "flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(1, this->securitygroupids(i), target); } @@ -4047,7 +4056,7 @@ ::google::protobuf::uint8* VpcConfig::InternalSerializeWithCachedSizesToArray( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->subnets(i).data(), static_cast(this->subnets(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.VpcConfig.Subnets"); + "flyteidl.plugins.sagemaker.VpcConfig.Subnets"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(2, this->subnets(i), target); } @@ -4056,12 +4065,12 @@ ::google::protobuf::uint8* VpcConfig::InternalSerializeWithCachedSizesToArray( target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.VpcConfig) return target; } size_t VpcConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.VpcConfig) +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.VpcConfig) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -4095,22 +4104,22 @@ size_t VpcConfig::ByteSizeLong() const { } void VpcConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.VpcConfig) +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.VpcConfig) GOOGLE_DCHECK_NE(&from, this); const VpcConfig* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.VpcConfig) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.VpcConfig) MergeFrom(*source); } } void VpcConfig::MergeFrom(const VpcConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.VpcConfig) +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.VpcConfig) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -4121,14 +4130,14 @@ void VpcConfig::MergeFrom(const VpcConfig& from) { } void VpcConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.VpcConfig) +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.VpcConfig) if (&from == this) return; Clear(); MergeFrom(from); } void VpcConfig::CopyFrom(const VpcConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.VpcConfig) +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.VpcConfig) if (&from == this) return; Clear(); MergeFrom(from); @@ -4158,36 +4167,36 @@ ::google::protobuf::Metadata VpcConfig::GetMetadata() const { // =================================================================== void SagemakerTrainingJob::InitAsDefaultInstance() { - ::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->algorithmspecification_ = const_cast< ::flyte::plugins::sagemaker::AlgorithmSpecification*>( - ::flyte::plugins::sagemaker::AlgorithmSpecification::internal_default_instance()); - ::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->resourceconfig_ = const_cast< ::flyte::plugins::sagemaker::ResourceConfig*>( - ::flyte::plugins::sagemaker::ResourceConfig::internal_default_instance()); - ::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->stoppingcondition_ = const_cast< ::flyte::plugins::sagemaker::StoppingCondition*>( - ::flyte::plugins::sagemaker::StoppingCondition::internal_default_instance()); - ::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->vpcconfig_ = const_cast< ::flyte::plugins::sagemaker::VpcConfig*>( - ::flyte::plugins::sagemaker::VpcConfig::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->algorithmspecification_ = const_cast< ::flyteidl::plugins::sagemaker::AlgorithmSpecification*>( + ::flyteidl::plugins::sagemaker::AlgorithmSpecification::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->resourceconfig_ = const_cast< ::flyteidl::plugins::sagemaker::ResourceConfig*>( + ::flyteidl::plugins::sagemaker::ResourceConfig::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->stoppingcondition_ = const_cast< ::flyteidl::plugins::sagemaker::StoppingCondition*>( + ::flyteidl::plugins::sagemaker::StoppingCondition::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->vpcconfig_ = const_cast< ::flyteidl::plugins::sagemaker::VpcConfig*>( + ::flyteidl::plugins::sagemaker::VpcConfig::internal_default_instance()); } class SagemakerTrainingJob::HasBitSetters { public: - static const ::flyte::plugins::sagemaker::AlgorithmSpecification& algorithmspecification(const SagemakerTrainingJob* msg); - static const ::flyte::plugins::sagemaker::ResourceConfig& resourceconfig(const SagemakerTrainingJob* msg); - static const ::flyte::plugins::sagemaker::StoppingCondition& stoppingcondition(const SagemakerTrainingJob* msg); - static const ::flyte::plugins::sagemaker::VpcConfig& vpcconfig(const SagemakerTrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithmspecification(const SagemakerTrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::ResourceConfig& resourceconfig(const SagemakerTrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::StoppingCondition& stoppingcondition(const SagemakerTrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::VpcConfig& vpcconfig(const SagemakerTrainingJob* msg); }; -const ::flyte::plugins::sagemaker::AlgorithmSpecification& +const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& SagemakerTrainingJob::HasBitSetters::algorithmspecification(const SagemakerTrainingJob* msg) { return *msg->algorithmspecification_; } -const ::flyte::plugins::sagemaker::ResourceConfig& +const ::flyteidl::plugins::sagemaker::ResourceConfig& SagemakerTrainingJob::HasBitSetters::resourceconfig(const SagemakerTrainingJob* msg) { return *msg->resourceconfig_; } -const ::flyte::plugins::sagemaker::StoppingCondition& +const ::flyteidl::plugins::sagemaker::StoppingCondition& SagemakerTrainingJob::HasBitSetters::stoppingcondition(const SagemakerTrainingJob* msg) { return *msg->stoppingcondition_; } -const ::flyte::plugins::sagemaker::VpcConfig& +const ::flyteidl::plugins::sagemaker::VpcConfig& SagemakerTrainingJob::HasBitSetters::vpcconfig(const SagemakerTrainingJob* msg) { return *msg->vpcconfig_; } @@ -4204,7 +4213,7 @@ const int SagemakerTrainingJob::kEnableSpotTrainingFieldNumber; SagemakerTrainingJob::SagemakerTrainingJob() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.SagemakerTrainingJob) } SagemakerTrainingJob::SagemakerTrainingJob(const SagemakerTrainingJob& from) : ::google::protobuf::Message(), @@ -4219,27 +4228,27 @@ SagemakerTrainingJob::SagemakerTrainingJob(const SagemakerTrainingJob& from) rolearn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rolearn_); } if (from.has_algorithmspecification()) { - algorithmspecification_ = new ::flyte::plugins::sagemaker::AlgorithmSpecification(*from.algorithmspecification_); + algorithmspecification_ = new ::flyteidl::plugins::sagemaker::AlgorithmSpecification(*from.algorithmspecification_); } else { algorithmspecification_ = nullptr; } if (from.has_resourceconfig()) { - resourceconfig_ = new ::flyte::plugins::sagemaker::ResourceConfig(*from.resourceconfig_); + resourceconfig_ = new ::flyteidl::plugins::sagemaker::ResourceConfig(*from.resourceconfig_); } else { resourceconfig_ = nullptr; } if (from.has_stoppingcondition()) { - stoppingcondition_ = new ::flyte::plugins::sagemaker::StoppingCondition(*from.stoppingcondition_); + stoppingcondition_ = new ::flyteidl::plugins::sagemaker::StoppingCondition(*from.stoppingcondition_); } else { stoppingcondition_ = nullptr; } if (from.has_vpcconfig()) { - vpcconfig_ = new ::flyte::plugins::sagemaker::VpcConfig(*from.vpcconfig_); + vpcconfig_ = new ::flyteidl::plugins::sagemaker::VpcConfig(*from.vpcconfig_); } else { vpcconfig_ = nullptr; } enablespottraining_ = from.enablespottraining_; - // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.SagemakerTrainingJob) } void SagemakerTrainingJob::SharedCtor() { @@ -4253,7 +4262,7 @@ void SagemakerTrainingJob::SharedCtor() { } SagemakerTrainingJob::~SagemakerTrainingJob() { - // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.SagemakerTrainingJob) SharedDtor(); } @@ -4276,7 +4285,7 @@ const SagemakerTrainingJob& SagemakerTrainingJob::default_instance() { void SagemakerTrainingJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.SagemakerTrainingJob) +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4321,7 +4330,7 @@ const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.SagemakerTrainingJob.Region"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region"); object = msg->mutable_region(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -4337,7 +4346,7 @@ const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn"); object = msg->mutable_rolearn(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -4348,12 +4357,12 @@ const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* ptr += size; break; } - // .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::sagemaker::AlgorithmSpecification::_InternalParse; + parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification::_InternalParse; object = msg->mutable_algorithmspecification(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -4361,12 +4370,12 @@ const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::sagemaker::ResourceConfig::_InternalParse; + parser_till_end = ::flyteidl::plugins::sagemaker::ResourceConfig::_InternalParse; object = msg->mutable_resourceconfig(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -4374,12 +4383,12 @@ const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; case 5: { if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::sagemaker::StoppingCondition::_InternalParse; + parser_till_end = ::flyteidl::plugins::sagemaker::StoppingCondition::_InternalParse; object = msg->mutable_stoppingcondition(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -4387,12 +4396,12 @@ const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; case 6: { if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::sagemaker::VpcConfig::_InternalParse; + parser_till_end = ::flyteidl::plugins::sagemaker::VpcConfig::_InternalParse; object = msg->mutable_vpcconfig(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -4435,7 +4444,7 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -4449,7 +4458,7 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->region().data(), static_cast(this->region().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.SagemakerTrainingJob.Region")); + "flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region")); } else { goto handle_unusual; } @@ -4464,14 +4473,14 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->rolearn().data(), static_cast(this->rolearn().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn")); + "flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn")); } else { goto handle_unusual; } break; } - // .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -4482,7 +4491,7 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( break; } - // .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -4493,7 +4502,7 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( break; } - // .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -4504,7 +4513,7 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( break; } - // .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -4540,10 +4549,10 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.SagemakerTrainingJob) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.SagemakerTrainingJob) return false; #undef DO_ } @@ -4551,7 +4560,7 @@ bool SagemakerTrainingJob::MergePartialFromCodedStream( void SagemakerTrainingJob::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -4560,7 +4569,7 @@ void SagemakerTrainingJob::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->region().data(), static_cast(this->region().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.SagemakerTrainingJob.Region"); + "flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->region(), output); } @@ -4570,30 +4579,30 @@ void SagemakerTrainingJob::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->rolearn().data(), static_cast(this->rolearn().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn"); + "flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->rolearn(), output); } - // .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; if (this->has_algorithmspecification()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, HasBitSetters::algorithmspecification(this), output); } - // .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; if (this->has_resourceconfig()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, HasBitSetters::resourceconfig(this), output); } - // .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; if (this->has_stoppingcondition()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, HasBitSetters::stoppingcondition(this), output); } - // .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; if (this->has_vpcconfig()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 6, HasBitSetters::vpcconfig(this), output); @@ -4608,12 +4617,12 @@ void SagemakerTrainingJob::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.SagemakerTrainingJob) } ::google::protobuf::uint8* SagemakerTrainingJob::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -4622,7 +4631,7 @@ ::google::protobuf::uint8* SagemakerTrainingJob::InternalSerializeWithCachedSize ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->region().data(), static_cast(this->region().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.SagemakerTrainingJob.Region"); + "flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->region(), target); @@ -4633,34 +4642,34 @@ ::google::protobuf::uint8* SagemakerTrainingJob::InternalSerializeWithCachedSize ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->rolearn().data(), static_cast(this->rolearn().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn"); + "flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->rolearn(), target); } - // .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; if (this->has_algorithmspecification()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, HasBitSetters::algorithmspecification(this), target); } - // .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; if (this->has_resourceconfig()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, HasBitSetters::resourceconfig(this), target); } - // .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; if (this->has_stoppingcondition()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 5, HasBitSetters::stoppingcondition(this), target); } - // .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; if (this->has_vpcconfig()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( @@ -4676,12 +4685,12 @@ ::google::protobuf::uint8* SagemakerTrainingJob::InternalSerializeWithCachedSize target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.SagemakerTrainingJob) return target; } size_t SagemakerTrainingJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.SagemakerTrainingJob) +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -4707,28 +4716,28 @@ size_t SagemakerTrainingJob::ByteSizeLong() const { this->rolearn()); } - // .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; if (this->has_algorithmspecification()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *algorithmspecification_); } - // .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; if (this->has_resourceconfig()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *resourceconfig_); } - // .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; if (this->has_stoppingcondition()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *stoppingcondition_); } - // .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; if (this->has_vpcconfig()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( @@ -4746,22 +4755,22 @@ size_t SagemakerTrainingJob::ByteSizeLong() const { } void SagemakerTrainingJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.SagemakerTrainingJob) +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) GOOGLE_DCHECK_NE(&from, this); const SagemakerTrainingJob* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.SagemakerTrainingJob) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.SagemakerTrainingJob) MergeFrom(*source); } } void SagemakerTrainingJob::MergeFrom(const SagemakerTrainingJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.SagemakerTrainingJob) +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -4776,16 +4785,16 @@ void SagemakerTrainingJob::MergeFrom(const SagemakerTrainingJob& from) { rolearn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rolearn_); } if (from.has_algorithmspecification()) { - mutable_algorithmspecification()->::flyte::plugins::sagemaker::AlgorithmSpecification::MergeFrom(from.algorithmspecification()); + mutable_algorithmspecification()->::flyteidl::plugins::sagemaker::AlgorithmSpecification::MergeFrom(from.algorithmspecification()); } if (from.has_resourceconfig()) { - mutable_resourceconfig()->::flyte::plugins::sagemaker::ResourceConfig::MergeFrom(from.resourceconfig()); + mutable_resourceconfig()->::flyteidl::plugins::sagemaker::ResourceConfig::MergeFrom(from.resourceconfig()); } if (from.has_stoppingcondition()) { - mutable_stoppingcondition()->::flyte::plugins::sagemaker::StoppingCondition::MergeFrom(from.stoppingcondition()); + mutable_stoppingcondition()->::flyteidl::plugins::sagemaker::StoppingCondition::MergeFrom(from.stoppingcondition()); } if (from.has_vpcconfig()) { - mutable_vpcconfig()->::flyte::plugins::sagemaker::VpcConfig::MergeFrom(from.vpcconfig()); + mutable_vpcconfig()->::flyteidl::plugins::sagemaker::VpcConfig::MergeFrom(from.vpcconfig()); } if (from.enablespottraining() != 0) { set_enablespottraining(from.enablespottraining()); @@ -4793,14 +4802,14 @@ void SagemakerTrainingJob::MergeFrom(const SagemakerTrainingJob& from) { } void SagemakerTrainingJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.SagemakerTrainingJob) +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) if (&from == this) return; Clear(); MergeFrom(from); } void SagemakerTrainingJob::CopyFrom(const SagemakerTrainingJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.SagemakerTrainingJob) +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) if (&from == this) return; Clear(); MergeFrom(from); @@ -4850,7 +4859,7 @@ const int HPOJobObjective::kMetricNameFieldNumber; HPOJobObjective::HPOJobObjective() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJobObjective) } HPOJobObjective::HPOJobObjective(const HPOJobObjective& from) : ::google::protobuf::Message(), @@ -4861,7 +4870,7 @@ HPOJobObjective::HPOJobObjective(const HPOJobObjective& from) metricname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metricname_); } type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJobObjective) } void HPOJobObjective::SharedCtor() { @@ -4872,7 +4881,7 @@ void HPOJobObjective::SharedCtor() { } HPOJobObjective::~HPOJobObjective() { - // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJobObjective) SharedDtor(); } @@ -4890,7 +4899,7 @@ const HPOJobObjective& HPOJobObjective::default_instance() { void HPOJobObjective::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.HPOJobObjective) +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJobObjective) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4913,11 +4922,11 @@ const char* HPOJobObjective::_InternalParse(const char* begin, const char* end, ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_type(static_cast<::flyte::plugins::sagemaker::HPOJobObjectiveType>(val)); + msg->set_type(static_cast<::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -4926,7 +4935,7 @@ const char* HPOJobObjective::_InternalParse(const char* begin, const char* end, if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.HPOJobObjective.MetricName"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HPOJobObjective.MetricName"); object = msg->mutable_metricname(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -4965,20 +4974,20 @@ bool HPOJobObjective::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJobObjective) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - set_type(static_cast< ::flyte::plugins::sagemaker::HPOJobObjectiveType >(value)); + set_type(static_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType >(value)); } else { goto handle_unusual; } @@ -4993,7 +5002,7 @@ bool HPOJobObjective::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->metricname().data(), static_cast(this->metricname().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.HPOJobObjective.MetricName")); + "flyteidl.plugins.sagemaker.HPOJobObjective.MetricName")); } else { goto handle_unusual; } @@ -5012,10 +5021,10 @@ bool HPOJobObjective::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJobObjective) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJobObjective) return false; #undef DO_ } @@ -5023,11 +5032,11 @@ bool HPOJobObjective::MergePartialFromCodedStream( void HPOJobObjective::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJobObjective) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; if (this->type() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->type(), output); @@ -5038,7 +5047,7 @@ void HPOJobObjective::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->metricname().data(), static_cast(this->metricname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.HPOJobObjective.MetricName"); + "flyteidl.plugins.sagemaker.HPOJobObjective.MetricName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->metricname(), output); } @@ -5047,16 +5056,16 @@ void HPOJobObjective::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJobObjective) } ::google::protobuf::uint8* HPOJobObjective::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJobObjective) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; if (this->type() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->type(), target); @@ -5067,7 +5076,7 @@ ::google::protobuf::uint8* HPOJobObjective::InternalSerializeWithCachedSizesToAr ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->metricname().data(), static_cast(this->metricname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.HPOJobObjective.MetricName"); + "flyteidl.plugins.sagemaker.HPOJobObjective.MetricName"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->metricname(), target); @@ -5077,12 +5086,12 @@ ::google::protobuf::uint8* HPOJobObjective::InternalSerializeWithCachedSizesToAr target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJobObjective) return target; } size_t HPOJobObjective::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.HPOJobObjective) +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJobObjective) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -5101,7 +5110,7 @@ size_t HPOJobObjective::ByteSizeLong() const { this->metricname()); } - // .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; if (this->type() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); @@ -5113,22 +5122,22 @@ size_t HPOJobObjective::ByteSizeLong() const { } void HPOJobObjective::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.HPOJobObjective) +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) GOOGLE_DCHECK_NE(&from, this); const HPOJobObjective* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJobObjective) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJobObjective) MergeFrom(*source); } } void HPOJobObjective::MergeFrom(const HPOJobObjective& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.HPOJobObjective) +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -5144,14 +5153,14 @@ void HPOJobObjective::MergeFrom(const HPOJobObjective& from) { } void HPOJobObjective::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.HPOJobObjective) +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) if (&from == this) return; Clear(); MergeFrom(from); } void HPOJobObjective::CopyFrom(const HPOJobObjective& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.HPOJobObjective) +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) if (&from == this) return; Clear(); MergeFrom(from); @@ -5182,29 +5191,29 @@ ::google::protobuf::Metadata HPOJobObjective::GetMetadata() const { // =================================================================== void SagemakerHPOJob::InitAsDefaultInstance() { - ::flyte::plugins::sagemaker::_SagemakerHPOJob_default_instance_._instance.get_mutable()->objective_ = const_cast< ::flyte::plugins::sagemaker::HPOJobObjective*>( - ::flyte::plugins::sagemaker::HPOJobObjective::internal_default_instance()); - ::flyte::plugins::sagemaker::_SagemakerHPOJob_default_instance_._instance.get_mutable()->parameterranges_ = const_cast< ::flyte::plugins::sagemaker::ParameterRanges*>( - ::flyte::plugins::sagemaker::ParameterRanges::internal_default_instance()); - ::flyte::plugins::sagemaker::_SagemakerHPOJob_default_instance_._instance.get_mutable()->trainingjob_ = const_cast< ::flyte::plugins::sagemaker::SagemakerTrainingJob*>( - ::flyte::plugins::sagemaker::SagemakerTrainingJob::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_SagemakerHPOJob_default_instance_._instance.get_mutable()->objective_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective*>( + ::flyteidl::plugins::sagemaker::HPOJobObjective::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_SagemakerHPOJob_default_instance_._instance.get_mutable()->parameterranges_ = const_cast< ::flyteidl::plugins::sagemaker::ParameterRanges*>( + ::flyteidl::plugins::sagemaker::ParameterRanges::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_SagemakerHPOJob_default_instance_._instance.get_mutable()->trainingjob_ = const_cast< ::flyteidl::plugins::sagemaker::SagemakerTrainingJob*>( + ::flyteidl::plugins::sagemaker::SagemakerTrainingJob::internal_default_instance()); } class SagemakerHPOJob::HasBitSetters { public: - static const ::flyte::plugins::sagemaker::HPOJobObjective& objective(const SagemakerHPOJob* msg); - static const ::flyte::plugins::sagemaker::ParameterRanges& parameterranges(const SagemakerHPOJob* msg); - static const ::flyte::plugins::sagemaker::SagemakerTrainingJob& trainingjob(const SagemakerHPOJob* msg); + static const ::flyteidl::plugins::sagemaker::HPOJobObjective& objective(const SagemakerHPOJob* msg); + static const ::flyteidl::plugins::sagemaker::ParameterRanges& parameterranges(const SagemakerHPOJob* msg); + static const ::flyteidl::plugins::sagemaker::SagemakerTrainingJob& trainingjob(const SagemakerHPOJob* msg); }; -const ::flyte::plugins::sagemaker::HPOJobObjective& +const ::flyteidl::plugins::sagemaker::HPOJobObjective& SagemakerHPOJob::HasBitSetters::objective(const SagemakerHPOJob* msg) { return *msg->objective_; } -const ::flyte::plugins::sagemaker::ParameterRanges& +const ::flyteidl::plugins::sagemaker::ParameterRanges& SagemakerHPOJob::HasBitSetters::parameterranges(const SagemakerHPOJob* msg) { return *msg->parameterranges_; } -const ::flyte::plugins::sagemaker::SagemakerTrainingJob& +const ::flyteidl::plugins::sagemaker::SagemakerTrainingJob& SagemakerHPOJob::HasBitSetters::trainingjob(const SagemakerHPOJob* msg) { return *msg->trainingjob_; } @@ -5220,7 +5229,7 @@ const int SagemakerHPOJob::kTrainingJobFieldNumber; SagemakerHPOJob::SagemakerHPOJob() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.SagemakerHPOJob) } SagemakerHPOJob::SagemakerHPOJob(const SagemakerHPOJob& from) : ::google::protobuf::Message(), @@ -5231,24 +5240,24 @@ SagemakerHPOJob::SagemakerHPOJob(const SagemakerHPOJob& from) strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_); } if (from.has_objective()) { - objective_ = new ::flyte::plugins::sagemaker::HPOJobObjective(*from.objective_); + objective_ = new ::flyteidl::plugins::sagemaker::HPOJobObjective(*from.objective_); } else { objective_ = nullptr; } if (from.has_parameterranges()) { - parameterranges_ = new ::flyte::plugins::sagemaker::ParameterRanges(*from.parameterranges_); + parameterranges_ = new ::flyteidl::plugins::sagemaker::ParameterRanges(*from.parameterranges_); } else { parameterranges_ = nullptr; } if (from.has_trainingjob()) { - trainingjob_ = new ::flyte::plugins::sagemaker::SagemakerTrainingJob(*from.trainingjob_); + trainingjob_ = new ::flyteidl::plugins::sagemaker::SagemakerTrainingJob(*from.trainingjob_); } else { trainingjob_ = nullptr; } ::memcpy(&maxnumberoftrainingjobs_, &from.maxnumberoftrainingjobs_, static_cast(reinterpret_cast(&maxparalleltrainingjobs_) - reinterpret_cast(&maxnumberoftrainingjobs_)) + sizeof(maxparalleltrainingjobs_)); - // @@protoc_insertion_point(copy_constructor:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.SagemakerHPOJob) } void SagemakerHPOJob::SharedCtor() { @@ -5261,7 +5270,7 @@ void SagemakerHPOJob::SharedCtor() { } SagemakerHPOJob::~SagemakerHPOJob() { - // @@protoc_insertion_point(destructor:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.SagemakerHPOJob) SharedDtor(); } @@ -5282,7 +5291,7 @@ const SagemakerHPOJob& SagemakerHPOJob::default_instance() { void SagemakerHPOJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyte.plugins.sagemaker.SagemakerHPOJob) +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -5324,7 +5333,7 @@ const char* SagemakerHPOJob::_InternalParse(const char* begin, const char* end, if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyte.plugins.sagemaker.SagemakerHPOJob.Strategy"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy"); object = msg->mutable_strategy(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -5335,12 +5344,12 @@ const char* SagemakerHPOJob::_InternalParse(const char* begin, const char* end, ptr += size; break; } - // .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::sagemaker::HPOJobObjective::_InternalParse; + parser_till_end = ::flyteidl::plugins::sagemaker::HPOJobObjective::_InternalParse; object = msg->mutable_objective(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -5362,12 +5371,12 @@ const char* SagemakerHPOJob::_InternalParse(const char* begin, const char* end, GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } - // .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; case 5: { if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::sagemaker::ParameterRanges::_InternalParse; + parser_till_end = ::flyteidl::plugins::sagemaker::ParameterRanges::_InternalParse; object = msg->mutable_parameterranges(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -5375,12 +5384,12 @@ const char* SagemakerHPOJob::_InternalParse(const char* begin, const char* end, {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + // .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; case 6: { if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyte::plugins::sagemaker::SagemakerTrainingJob::_InternalParse; + parser_till_end = ::flyteidl::plugins::sagemaker::SagemakerTrainingJob::_InternalParse; object = msg->mutable_trainingjob(); if (size > end - ptr) goto len_delim_till_end; ptr += size; @@ -5416,7 +5425,7 @@ bool SagemakerHPOJob::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -5430,14 +5439,14 @@ bool SagemakerHPOJob::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->strategy().data(), static_cast(this->strategy().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyte.plugins.sagemaker.SagemakerHPOJob.Strategy")); + "flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy")); } else { goto handle_unusual; } break; } - // .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -5474,7 +5483,7 @@ bool SagemakerHPOJob::MergePartialFromCodedStream( break; } - // .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -5485,7 +5494,7 @@ bool SagemakerHPOJob::MergePartialFromCodedStream( break; } - // .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + // .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( @@ -5508,10 +5517,10 @@ bool SagemakerHPOJob::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.SagemakerHPOJob) return true; failure: - // @@protoc_insertion_point(parse_failure:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.SagemakerHPOJob) return false; #undef DO_ } @@ -5519,7 +5528,7 @@ bool SagemakerHPOJob::MergePartialFromCodedStream( void SagemakerHPOJob::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -5528,12 +5537,12 @@ void SagemakerHPOJob::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->strategy().data(), static_cast(this->strategy().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.SagemakerHPOJob.Strategy"); + "flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->strategy(), output); } - // .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; if (this->has_objective()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, HasBitSetters::objective(this), output); @@ -5549,13 +5558,13 @@ void SagemakerHPOJob::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->maxparalleltrainingjobs(), output); } - // .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; if (this->has_parameterranges()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, HasBitSetters::parameterranges(this), output); } - // .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + // .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; if (this->has_trainingjob()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 6, HasBitSetters::trainingjob(this), output); @@ -5565,12 +5574,12 @@ void SagemakerHPOJob::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.SagemakerHPOJob) } ::google::protobuf::uint8* SagemakerHPOJob::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -5579,13 +5588,13 @@ ::google::protobuf::uint8* SagemakerHPOJob::InternalSerializeWithCachedSizesToAr ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->strategy().data(), static_cast(this->strategy().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyte.plugins.sagemaker.SagemakerHPOJob.Strategy"); + "flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->strategy(), target); } - // .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; if (this->has_objective()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( @@ -5602,14 +5611,14 @@ ::google::protobuf::uint8* SagemakerHPOJob::InternalSerializeWithCachedSizesToAr target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->maxparalleltrainingjobs(), target); } - // .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; if (this->has_parameterranges()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 5, HasBitSetters::parameterranges(this), target); } - // .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + // .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; if (this->has_trainingjob()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( @@ -5620,12 +5629,12 @@ ::google::protobuf::uint8* SagemakerHPOJob::InternalSerializeWithCachedSizesToAr target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.SagemakerHPOJob) return target; } size_t SagemakerHPOJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyte.plugins.sagemaker.SagemakerHPOJob) +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -5644,21 +5653,21 @@ size_t SagemakerHPOJob::ByteSizeLong() const { this->strategy()); } - // .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; if (this->has_objective()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *objective_); } - // .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; if (this->has_parameterranges()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *parameterranges_); } - // .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + // .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; if (this->has_trainingjob()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( @@ -5685,22 +5694,22 @@ size_t SagemakerHPOJob::ByteSizeLong() const { } void SagemakerHPOJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyte.plugins.sagemaker.SagemakerHPOJob) +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) GOOGLE_DCHECK_NE(&from, this); const SagemakerHPOJob* source = ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.SagemakerHPOJob) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.SagemakerHPOJob) MergeFrom(*source); } } void SagemakerHPOJob::MergeFrom(const SagemakerHPOJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyte.plugins.sagemaker.SagemakerHPOJob) +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -5711,13 +5720,13 @@ void SagemakerHPOJob::MergeFrom(const SagemakerHPOJob& from) { strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_); } if (from.has_objective()) { - mutable_objective()->::flyte::plugins::sagemaker::HPOJobObjective::MergeFrom(from.objective()); + mutable_objective()->::flyteidl::plugins::sagemaker::HPOJobObjective::MergeFrom(from.objective()); } if (from.has_parameterranges()) { - mutable_parameterranges()->::flyte::plugins::sagemaker::ParameterRanges::MergeFrom(from.parameterranges()); + mutable_parameterranges()->::flyteidl::plugins::sagemaker::ParameterRanges::MergeFrom(from.parameterranges()); } if (from.has_trainingjob()) { - mutable_trainingjob()->::flyte::plugins::sagemaker::SagemakerTrainingJob::MergeFrom(from.trainingjob()); + mutable_trainingjob()->::flyteidl::plugins::sagemaker::SagemakerTrainingJob::MergeFrom(from.trainingjob()); } if (from.maxnumberoftrainingjobs() != 0) { set_maxnumberoftrainingjobs(from.maxnumberoftrainingjobs()); @@ -5728,14 +5737,14 @@ void SagemakerHPOJob::MergeFrom(const SagemakerHPOJob& from) { } void SagemakerHPOJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyte.plugins.sagemaker.SagemakerHPOJob) +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) if (&from == this) return; Clear(); MergeFrom(from); } void SagemakerHPOJob::CopyFrom(const SagemakerHPOJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyte.plugins.sagemaker.SagemakerHPOJob) +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) if (&from == this) return; Clear(); MergeFrom(from); @@ -5770,44 +5779,44 @@ ::google::protobuf::Metadata SagemakerHPOJob::GetMetadata() const { // @@protoc_insertion_point(namespace_scope) } // namespace sagemaker } // namespace plugins -} // namespace flyte +} // namespace flyteidl namespace google { namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::ContinuousParameterRange >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::sagemaker::ContinuousParameterRange >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::IntegerParameterRange >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::sagemaker::IntegerParameterRange >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::IntegerParameterRange >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::CategoricalParameterRange >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::sagemaker::CategoricalParameterRange >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::ParameterRanges >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::sagemaker::ParameterRanges >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRanges >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRanges >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::AlgorithmSpecification >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::sagemaker::AlgorithmSpecification >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::ResourceConfig* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::ResourceConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::sagemaker::ResourceConfig >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ResourceConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ResourceConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ResourceConfig >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::StoppingCondition >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::sagemaker::StoppingCondition >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::StoppingCondition >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::StoppingCondition >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::VpcConfig* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::VpcConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::sagemaker::VpcConfig >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::VpcConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::VpcConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::VpcConfig >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::SagemakerTrainingJob* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::SagemakerTrainingJob >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::sagemaker::SagemakerTrainingJob >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::SagemakerTrainingJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::SagemakerTrainingJob >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::HPOJobObjective* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::HPOJobObjective >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::sagemaker::HPOJobObjective >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJobObjective* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJobObjective >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJobObjective >(arena); } -template<> PROTOBUF_NOINLINE ::flyte::plugins::sagemaker::SagemakerHPOJob* Arena::CreateMaybeMessage< ::flyte::plugins::sagemaker::SagemakerHPOJob >(Arena* arena) { - return Arena::CreateInternal< ::flyte::plugins::sagemaker::SagemakerHPOJob >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::SagemakerHPOJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::SagemakerHPOJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::SagemakerHPOJob >(arena); } } // namespace protobuf } // namespace google diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.h index b6d4cb446..9346d8265 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.h @@ -49,7 +49,7 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto { static const ::google::protobuf::uint32 offsets[]; }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto(); -namespace flyte { +namespace flyteidl { namespace plugins { namespace sagemaker { class AlgorithmSpecification; @@ -90,27 +90,48 @@ class VpcConfigDefaultTypeInternal; extern VpcConfigDefaultTypeInternal _VpcConfig_default_instance_; } // namespace sagemaker } // namespace plugins -} // namespace flyte +} // namespace flyteidl namespace google { namespace protobuf { -template<> ::flyte::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::AlgorithmSpecification>(Arena*); -template<> ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition>(Arena*); -template<> ::flyte::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::CategoricalParameterRange>(Arena*); -template<> ::flyte::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::ContinuousParameterRange>(Arena*); -template<> ::flyte::plugins::sagemaker::HPOJobObjective* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::HPOJobObjective>(Arena*); -template<> ::flyte::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::IntegerParameterRange>(Arena*); -template<> ::flyte::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::ParameterRanges>(Arena*); -template<> ::flyte::plugins::sagemaker::ResourceConfig* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::ResourceConfig>(Arena*); -template<> ::flyte::plugins::sagemaker::SagemakerHPOJob* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::SagemakerHPOJob>(Arena*); -template<> ::flyte::plugins::sagemaker::SagemakerTrainingJob* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::SagemakerTrainingJob>(Arena*); -template<> ::flyte::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::StoppingCondition>(Arena*); -template<> ::flyte::plugins::sagemaker::VpcConfig* Arena::CreateMaybeMessage<::flyte::plugins::sagemaker::VpcConfig>(Arena*); +template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(Arena*); +template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition>(Arena*); +template<> ::flyteidl::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::CategoricalParameterRange>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ContinuousParameterRange>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HPOJobObjective* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobObjective>(Arena*); +template<> ::flyteidl::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::IntegerParameterRange>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ResourceConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ResourceConfig>(Arena*); +template<> ::flyteidl::plugins::sagemaker::SagemakerHPOJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::SagemakerHPOJob>(Arena*); +template<> ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::SagemakerTrainingJob>(Arena*); +template<> ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::StoppingCondition>(Arena*); +template<> ::flyteidl::plugins::sagemaker::VpcConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::VpcConfig>(Arena*); } // namespace protobuf } // namespace google -namespace flyte { +namespace flyteidl { namespace plugins { namespace sagemaker { +enum HPOJobObjective_HPOJobObjectiveType { + HPOJobObjective_HPOJobObjectiveType_MINIMIZE = 0, + HPOJobObjective_HPOJobObjectiveType_MAXIMIZE = 1, + HPOJobObjective_HPOJobObjectiveType_HPOJobObjective_HPOJobObjectiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HPOJobObjective_HPOJobObjectiveType_HPOJobObjective_HPOJobObjectiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HPOJobObjective_HPOJobObjectiveType_IsValid(int value); +const HPOJobObjective_HPOJobObjectiveType HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MIN = HPOJobObjective_HPOJobObjectiveType_MINIMIZE; +const HPOJobObjective_HPOJobObjectiveType HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MAX = HPOJobObjective_HPOJobObjectiveType_MAXIMIZE; +const int HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_ARRAYSIZE = HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HPOJobObjective_HPOJobObjectiveType_descriptor(); +inline const ::std::string& HPOJobObjective_HPOJobObjectiveType_Name(HPOJobObjective_HPOJobObjectiveType value) { + return ::google::protobuf::internal::NameOfEnum( + HPOJobObjective_HPOJobObjectiveType_descriptor(), value); +} +inline bool HPOJobObjective_HPOJobObjectiveType_Parse( + const ::std::string& name, HPOJobObjective_HPOJobObjectiveType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HPOJobObjective_HPOJobObjectiveType_descriptor(), name, value); +} enum HyperparameterScalingType { AUTO = 0, LINEAR = 1, @@ -134,31 +155,10 @@ inline bool HyperparameterScalingType_Parse( return ::google::protobuf::internal::ParseNamedEnum( HyperparameterScalingType_descriptor(), name, value); } -enum HPOJobObjectiveType { - MINIMIZE = 0, - MAXIMIZE = 1, - HPOJobObjectiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - HPOJobObjectiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool HPOJobObjectiveType_IsValid(int value); -const HPOJobObjectiveType HPOJobObjectiveType_MIN = MINIMIZE; -const HPOJobObjectiveType HPOJobObjectiveType_MAX = MAXIMIZE; -const int HPOJobObjectiveType_ARRAYSIZE = HPOJobObjectiveType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* HPOJobObjectiveType_descriptor(); -inline const ::std::string& HPOJobObjectiveType_Name(HPOJobObjectiveType value) { - return ::google::protobuf::internal::NameOfEnum( - HPOJobObjectiveType_descriptor(), value); -} -inline bool HPOJobObjectiveType_Parse( - const ::std::string& name, HPOJobObjectiveType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HPOJobObjectiveType_descriptor(), name, value); -} // =================================================================== class ContinuousParameterRange final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.ContinuousParameterRange) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ContinuousParameterRange) */ { public: ContinuousParameterRange(); virtual ~ContinuousParameterRange(); @@ -278,13 +278,13 @@ class ContinuousParameterRange final : double minvalue() const; void set_minvalue(double value); - // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; void clear_scalingtype(); static const int kScalingTypeFieldNumber = 4; - ::flyte::plugins::sagemaker::HyperparameterScalingType scalingtype() const; - void set_scalingtype(::flyte::plugins::sagemaker::HyperparameterScalingType value); + ::flyteidl::plugins::sagemaker::HyperparameterScalingType scalingtype() const; + void set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) private: class HasBitSetters; @@ -299,7 +299,7 @@ class ContinuousParameterRange final : // ------------------------------------------------------------------- class IntegerParameterRange final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.IntegerParameterRange) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.IntegerParameterRange) */ { public: IntegerParameterRange(); virtual ~IntegerParameterRange(); @@ -419,13 +419,13 @@ class IntegerParameterRange final : float minvalue() const; void set_minvalue(float value); - // .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; void clear_scalingtype(); static const int kScalingTypeFieldNumber = 4; - ::flyte::plugins::sagemaker::HyperparameterScalingType scalingtype() const; - void set_scalingtype(::flyte::plugins::sagemaker::HyperparameterScalingType value); + ::flyteidl::plugins::sagemaker::HyperparameterScalingType scalingtype() const; + void set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) private: class HasBitSetters; @@ -440,7 +440,7 @@ class IntegerParameterRange final : // ------------------------------------------------------------------- class CategoricalParameterRange final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.CategoricalParameterRange) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.CategoricalParameterRange) */ { public: CategoricalParameterRange(); virtual ~CategoricalParameterRange(); @@ -570,7 +570,7 @@ class CategoricalParameterRange final : ::std::string* release_name(); void set_allocated_name(::std::string* name); - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) private: class HasBitSetters; @@ -583,7 +583,7 @@ class CategoricalParameterRange final : // ------------------------------------------------------------------- class ParameterRanges final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.ParameterRanges) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ParameterRanges) */ { public: ParameterRanges(); virtual ~ParameterRanges(); @@ -677,57 +677,57 @@ class ParameterRanges final : // accessors ------------------------------------------------------- - // repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + // repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; int continuousparameterranges_size() const; void clear_continuousparameterranges(); static const int kContinuousParameterRangesFieldNumber = 1; - ::flyte::plugins::sagemaker::ContinuousParameterRange* mutable_continuousparameterranges(int index); - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::ContinuousParameterRange >* + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* mutable_continuousparameterranges(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >* mutable_continuousparameterranges(); - const ::flyte::plugins::sagemaker::ContinuousParameterRange& continuousparameterranges(int index) const; - ::flyte::plugins::sagemaker::ContinuousParameterRange* add_continuousparameterranges(); - const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::ContinuousParameterRange >& + const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuousparameterranges(int index) const; + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* add_continuousparameterranges(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >& continuousparameterranges() const; - // repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + // repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; int integerparameterranges_size() const; void clear_integerparameterranges(); static const int kIntegerParameterRangesFieldNumber = 2; - ::flyte::plugins::sagemaker::IntegerParameterRange* mutable_integerparameterranges(int index); - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::IntegerParameterRange >* + ::flyteidl::plugins::sagemaker::IntegerParameterRange* mutable_integerparameterranges(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::IntegerParameterRange >* mutable_integerparameterranges(); - const ::flyte::plugins::sagemaker::IntegerParameterRange& integerparameterranges(int index) const; - ::flyte::plugins::sagemaker::IntegerParameterRange* add_integerparameterranges(); - const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::IntegerParameterRange >& + const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integerparameterranges(int index) const; + ::flyteidl::plugins::sagemaker::IntegerParameterRange* add_integerparameterranges(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::IntegerParameterRange >& integerparameterranges() const; - // repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + // repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; int categoricalparameterranges_size() const; void clear_categoricalparameterranges(); static const int kCategoricalParameterRangesFieldNumber = 3; - ::flyte::plugins::sagemaker::CategoricalParameterRange* mutable_categoricalparameterranges(int index); - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::CategoricalParameterRange >* + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* mutable_categoricalparameterranges(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >* mutable_categoricalparameterranges(); - const ::flyte::plugins::sagemaker::CategoricalParameterRange& categoricalparameterranges(int index) const; - ::flyte::plugins::sagemaker::CategoricalParameterRange* add_categoricalparameterranges(); - const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::CategoricalParameterRange >& + const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categoricalparameterranges(int index) const; + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* add_categoricalparameterranges(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >& categoricalparameterranges() const; - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::ContinuousParameterRange > continuousparameterranges_; - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::IntegerParameterRange > integerparameterranges_; - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::CategoricalParameterRange > categoricalparameterranges_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::ContinuousParameterRange > continuousparameterranges_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::IntegerParameterRange > integerparameterranges_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::CategoricalParameterRange > categoricalparameterranges_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; }; // ------------------------------------------------------------------- class AlgorithmSpecification_MetricDefinition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) */ { public: AlgorithmSpecification_MetricDefinition(); virtual ~AlgorithmSpecification_MetricDefinition(); @@ -849,7 +849,7 @@ class AlgorithmSpecification_MetricDefinition final : ::std::string* release_regex(); void set_allocated_regex(::std::string* regex); - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) private: class HasBitSetters; @@ -862,7 +862,7 @@ class AlgorithmSpecification_MetricDefinition final : // ------------------------------------------------------------------- class AlgorithmSpecification final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.AlgorithmSpecification) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmSpecification) */ { public: AlgorithmSpecification(); virtual ~AlgorithmSpecification(); @@ -958,16 +958,16 @@ class AlgorithmSpecification final : // accessors ------------------------------------------------------- - // repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; int metricdefinitions_size() const; void clear_metricdefinitions(); static const int kMetricDefinitionsFieldNumber = 4; - ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* mutable_metricdefinitions(int index); - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* + ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* mutable_metricdefinitions(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* mutable_metricdefinitions(); - const ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& metricdefinitions(int index) const; - ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* add_metricdefinitions(); - const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& metricdefinitions(int index) const; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* add_metricdefinitions(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& metricdefinitions() const; // string TrainingImage = 1; @@ -1012,12 +1012,12 @@ class AlgorithmSpecification final : ::std::string* release_algorithmname(); void set_allocated_algorithmname(::std::string* algorithmname); - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition > metricdefinitions_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition > metricdefinitions_; ::google::protobuf::internal::ArenaStringPtr trainingimage_; ::google::protobuf::internal::ArenaStringPtr traininginputmode_; ::google::protobuf::internal::ArenaStringPtr algorithmname_; @@ -1027,7 +1027,7 @@ class AlgorithmSpecification final : // ------------------------------------------------------------------- class ResourceConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.ResourceConfig) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ResourceConfig) */ { public: ResourceConfig(); virtual ~ResourceConfig(); @@ -1161,7 +1161,7 @@ class ResourceConfig final : ::google::protobuf::int64 volumesizeingb() const; void set_volumesizeingb(::google::protobuf::int64 value); - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ResourceConfig) private: class HasBitSetters; @@ -1176,7 +1176,7 @@ class ResourceConfig final : // ------------------------------------------------------------------- class StoppingCondition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.StoppingCondition) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.StoppingCondition) */ { public: StoppingCondition(); virtual ~StoppingCondition(); @@ -1282,7 +1282,7 @@ class StoppingCondition final : ::google::protobuf::int64 maxwaittimeinseconds() const; void set_maxwaittimeinseconds(::google::protobuf::int64 value); - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) private: class HasBitSetters; @@ -1295,7 +1295,7 @@ class StoppingCondition final : // ------------------------------------------------------------------- class VpcConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.VpcConfig) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.VpcConfig) */ { public: VpcConfig(); virtual ~VpcConfig(); @@ -1433,7 +1433,7 @@ class VpcConfig final : const ::google::protobuf::RepeatedPtrField<::std::string>& subnets() const; ::google::protobuf::RepeatedPtrField<::std::string>* mutable_subnets(); - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.VpcConfig) private: class HasBitSetters; @@ -1446,7 +1446,7 @@ class VpcConfig final : // ------------------------------------------------------------------- class SagemakerTrainingJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.SagemakerTrainingJob) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.SagemakerTrainingJob) */ { public: SagemakerTrainingJob(); virtual ~SagemakerTrainingJob(); @@ -1568,41 +1568,41 @@ class SagemakerTrainingJob final : ::std::string* release_rolearn(); void set_allocated_rolearn(::std::string* rolearn); - // .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; bool has_algorithmspecification() const; void clear_algorithmspecification(); static const int kAlgorithmSpecificationFieldNumber = 3; - const ::flyte::plugins::sagemaker::AlgorithmSpecification& algorithmspecification() const; - ::flyte::plugins::sagemaker::AlgorithmSpecification* release_algorithmspecification(); - ::flyte::plugins::sagemaker::AlgorithmSpecification* mutable_algorithmspecification(); - void set_allocated_algorithmspecification(::flyte::plugins::sagemaker::AlgorithmSpecification* algorithmspecification); + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithmspecification() const; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* release_algorithmspecification(); + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* mutable_algorithmspecification(); + void set_allocated_algorithmspecification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithmspecification); - // .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; bool has_resourceconfig() const; void clear_resourceconfig(); static const int kResourceConfigFieldNumber = 4; - const ::flyte::plugins::sagemaker::ResourceConfig& resourceconfig() const; - ::flyte::plugins::sagemaker::ResourceConfig* release_resourceconfig(); - ::flyte::plugins::sagemaker::ResourceConfig* mutable_resourceconfig(); - void set_allocated_resourceconfig(::flyte::plugins::sagemaker::ResourceConfig* resourceconfig); + const ::flyteidl::plugins::sagemaker::ResourceConfig& resourceconfig() const; + ::flyteidl::plugins::sagemaker::ResourceConfig* release_resourceconfig(); + ::flyteidl::plugins::sagemaker::ResourceConfig* mutable_resourceconfig(); + void set_allocated_resourceconfig(::flyteidl::plugins::sagemaker::ResourceConfig* resourceconfig); - // .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; bool has_stoppingcondition() const; void clear_stoppingcondition(); static const int kStoppingConditionFieldNumber = 5; - const ::flyte::plugins::sagemaker::StoppingCondition& stoppingcondition() const; - ::flyte::plugins::sagemaker::StoppingCondition* release_stoppingcondition(); - ::flyte::plugins::sagemaker::StoppingCondition* mutable_stoppingcondition(); - void set_allocated_stoppingcondition(::flyte::plugins::sagemaker::StoppingCondition* stoppingcondition); + const ::flyteidl::plugins::sagemaker::StoppingCondition& stoppingcondition() const; + ::flyteidl::plugins::sagemaker::StoppingCondition* release_stoppingcondition(); + ::flyteidl::plugins::sagemaker::StoppingCondition* mutable_stoppingcondition(); + void set_allocated_stoppingcondition(::flyteidl::plugins::sagemaker::StoppingCondition* stoppingcondition); - // .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; bool has_vpcconfig() const; void clear_vpcconfig(); static const int kVpcConfigFieldNumber = 6; - const ::flyte::plugins::sagemaker::VpcConfig& vpcconfig() const; - ::flyte::plugins::sagemaker::VpcConfig* release_vpcconfig(); - ::flyte::plugins::sagemaker::VpcConfig* mutable_vpcconfig(); - void set_allocated_vpcconfig(::flyte::plugins::sagemaker::VpcConfig* vpcconfig); + const ::flyteidl::plugins::sagemaker::VpcConfig& vpcconfig() const; + ::flyteidl::plugins::sagemaker::VpcConfig* release_vpcconfig(); + ::flyteidl::plugins::sagemaker::VpcConfig* mutable_vpcconfig(); + void set_allocated_vpcconfig(::flyteidl::plugins::sagemaker::VpcConfig* vpcconfig); // bool EnableSpotTraining = 7; void clear_enablespottraining(); @@ -1610,17 +1610,17 @@ class SagemakerTrainingJob final : bool enablespottraining() const; void set_enablespottraining(bool value); - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.SagemakerTrainingJob) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr region_; ::google::protobuf::internal::ArenaStringPtr rolearn_; - ::flyte::plugins::sagemaker::AlgorithmSpecification* algorithmspecification_; - ::flyte::plugins::sagemaker::ResourceConfig* resourceconfig_; - ::flyte::plugins::sagemaker::StoppingCondition* stoppingcondition_; - ::flyte::plugins::sagemaker::VpcConfig* vpcconfig_; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithmspecification_; + ::flyteidl::plugins::sagemaker::ResourceConfig* resourceconfig_; + ::flyteidl::plugins::sagemaker::StoppingCondition* stoppingcondition_; + ::flyteidl::plugins::sagemaker::VpcConfig* vpcconfig_; bool enablespottraining_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; @@ -1628,7 +1628,7 @@ class SagemakerTrainingJob final : // ------------------------------------------------------------------- class HPOJobObjective final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.HPOJobObjective) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJobObjective) */ { public: HPOJobObjective(); virtual ~HPOJobObjective(); @@ -1720,6 +1720,32 @@ class HPOJobObjective final : // nested types ---------------------------------------------------- + typedef HPOJobObjective_HPOJobObjectiveType HPOJobObjectiveType; + static const HPOJobObjectiveType MINIMIZE = + HPOJobObjective_HPOJobObjectiveType_MINIMIZE; + static const HPOJobObjectiveType MAXIMIZE = + HPOJobObjective_HPOJobObjectiveType_MAXIMIZE; + static inline bool HPOJobObjectiveType_IsValid(int value) { + return HPOJobObjective_HPOJobObjectiveType_IsValid(value); + } + static const HPOJobObjectiveType HPOJobObjectiveType_MIN = + HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MIN; + static const HPOJobObjectiveType HPOJobObjectiveType_MAX = + HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MAX; + static const int HPOJobObjectiveType_ARRAYSIZE = + HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + HPOJobObjectiveType_descriptor() { + return HPOJobObjective_HPOJobObjectiveType_descriptor(); + } + static inline const ::std::string& HPOJobObjectiveType_Name(HPOJobObjectiveType value) { + return HPOJobObjective_HPOJobObjectiveType_Name(value); + } + static inline bool HPOJobObjectiveType_Parse(const ::std::string& name, + HPOJobObjectiveType* value) { + return HPOJobObjective_HPOJobObjectiveType_Parse(name, value); + } + // accessors ------------------------------------------------------- // string MetricName = 2; @@ -1736,13 +1762,13 @@ class HPOJobObjective final : ::std::string* release_metricname(); void set_allocated_metricname(::std::string* metricname); - // .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; void clear_type(); static const int kTypeFieldNumber = 1; - ::flyte::plugins::sagemaker::HPOJobObjectiveType type() const; - void set_type(::flyte::plugins::sagemaker::HPOJobObjectiveType value); + ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType type() const; + void set_type(::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType value); - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobObjective) private: class HasBitSetters; @@ -1755,7 +1781,7 @@ class HPOJobObjective final : // ------------------------------------------------------------------- class SagemakerHPOJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyte.plugins.sagemaker.SagemakerHPOJob) */ { + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.SagemakerHPOJob) */ { public: SagemakerHPOJob(); virtual ~SagemakerHPOJob(); @@ -1863,32 +1889,32 @@ class SagemakerHPOJob final : ::std::string* release_strategy(); void set_allocated_strategy(::std::string* strategy); - // .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; bool has_objective() const; void clear_objective(); static const int kObjectiveFieldNumber = 2; - const ::flyte::plugins::sagemaker::HPOJobObjective& objective() const; - ::flyte::plugins::sagemaker::HPOJobObjective* release_objective(); - ::flyte::plugins::sagemaker::HPOJobObjective* mutable_objective(); - void set_allocated_objective(::flyte::plugins::sagemaker::HPOJobObjective* objective); + const ::flyteidl::plugins::sagemaker::HPOJobObjective& objective() const; + ::flyteidl::plugins::sagemaker::HPOJobObjective* release_objective(); + ::flyteidl::plugins::sagemaker::HPOJobObjective* mutable_objective(); + void set_allocated_objective(::flyteidl::plugins::sagemaker::HPOJobObjective* objective); - // .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; bool has_parameterranges() const; void clear_parameterranges(); static const int kParameterRangesFieldNumber = 5; - const ::flyte::plugins::sagemaker::ParameterRanges& parameterranges() const; - ::flyte::plugins::sagemaker::ParameterRanges* release_parameterranges(); - ::flyte::plugins::sagemaker::ParameterRanges* mutable_parameterranges(); - void set_allocated_parameterranges(::flyte::plugins::sagemaker::ParameterRanges* parameterranges); + const ::flyteidl::plugins::sagemaker::ParameterRanges& parameterranges() const; + ::flyteidl::plugins::sagemaker::ParameterRanges* release_parameterranges(); + ::flyteidl::plugins::sagemaker::ParameterRanges* mutable_parameterranges(); + void set_allocated_parameterranges(::flyteidl::plugins::sagemaker::ParameterRanges* parameterranges); - // .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + // .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; bool has_trainingjob() const; void clear_trainingjob(); static const int kTrainingJobFieldNumber = 6; - const ::flyte::plugins::sagemaker::SagemakerTrainingJob& trainingjob() const; - ::flyte::plugins::sagemaker::SagemakerTrainingJob* release_trainingjob(); - ::flyte::plugins::sagemaker::SagemakerTrainingJob* mutable_trainingjob(); - void set_allocated_trainingjob(::flyte::plugins::sagemaker::SagemakerTrainingJob* trainingjob); + const ::flyteidl::plugins::sagemaker::SagemakerTrainingJob& trainingjob() const; + ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* release_trainingjob(); + ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* mutable_trainingjob(); + void set_allocated_trainingjob(::flyteidl::plugins::sagemaker::SagemakerTrainingJob* trainingjob); // int64 MaxNumberOfTrainingJobs = 3; void clear_maxnumberoftrainingjobs(); @@ -1902,15 +1928,15 @@ class SagemakerHPOJob final : ::google::protobuf::int64 maxparalleltrainingjobs() const; void set_maxparalleltrainingjobs(::google::protobuf::int64 value); - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.SagemakerHPOJob) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr strategy_; - ::flyte::plugins::sagemaker::HPOJobObjective* objective_; - ::flyte::plugins::sagemaker::ParameterRanges* parameterranges_; - ::flyte::plugins::sagemaker::SagemakerTrainingJob* trainingjob_; + ::flyteidl::plugins::sagemaker::HPOJobObjective* objective_; + ::flyteidl::plugins::sagemaker::ParameterRanges* parameterranges_; + ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* trainingjob_; ::google::protobuf::int64 maxnumberoftrainingjobs_; ::google::protobuf::int64 maxparalleltrainingjobs_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -1932,41 +1958,41 @@ inline void ContinuousParameterRange::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& ContinuousParameterRange::name() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) return name_.GetNoArena(); } inline void ContinuousParameterRange::set_name(const ::std::string& value) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) } #if LANG_CXX11 inline void ContinuousParameterRange::set_name(::std::string&& value) { name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) } #endif inline void ContinuousParameterRange::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) } inline void ContinuousParameterRange::set_name(const char* value, size_t size) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) } inline ::std::string* ContinuousParameterRange::mutable_name() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* ContinuousParameterRange::release_name() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1977,7 +2003,7 @@ inline void ContinuousParameterRange::set_allocated_name(::std::string* name) { } name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.ContinuousParameterRange.Name) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) } // double MaxValue = 2; @@ -1985,13 +2011,13 @@ inline void ContinuousParameterRange::clear_maxvalue() { maxvalue_ = 0; } inline double ContinuousParameterRange::maxvalue() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ContinuousParameterRange.MaxValue) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue) return maxvalue_; } inline void ContinuousParameterRange::set_maxvalue(double value) { maxvalue_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ContinuousParameterRange.MaxValue) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue) } // double MinValue = 3; @@ -1999,27 +2025,27 @@ inline void ContinuousParameterRange::clear_minvalue() { minvalue_ = 0; } inline double ContinuousParameterRange::minvalue() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ContinuousParameterRange.MinValue) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue) return minvalue_; } inline void ContinuousParameterRange::set_minvalue(double value) { minvalue_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ContinuousParameterRange.MinValue) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue) } -// .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; +// .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; inline void ContinuousParameterRange::clear_scalingtype() { scalingtype_ = 0; } -inline ::flyte::plugins::sagemaker::HyperparameterScalingType ContinuousParameterRange::scalingtype() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ContinuousParameterRange.ScalingType) - return static_cast< ::flyte::plugins::sagemaker::HyperparameterScalingType >(scalingtype_); +inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType ContinuousParameterRange::scalingtype() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scalingtype_); } -inline void ContinuousParameterRange::set_scalingtype(::flyte::plugins::sagemaker::HyperparameterScalingType value) { +inline void ContinuousParameterRange::set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { scalingtype_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ContinuousParameterRange.ScalingType) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType) } // ------------------------------------------------------------------- @@ -2031,41 +2057,41 @@ inline void IntegerParameterRange::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& IntegerParameterRange::name() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) return name_.GetNoArena(); } inline void IntegerParameterRange::set_name(const ::std::string& value) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) } #if LANG_CXX11 inline void IntegerParameterRange::set_name(::std::string&& value) { name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) } #endif inline void IntegerParameterRange::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) } inline void IntegerParameterRange::set_name(const char* value, size_t size) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) } inline ::std::string* IntegerParameterRange::mutable_name() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* IntegerParameterRange::release_name() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2076,7 +2102,7 @@ inline void IntegerParameterRange::set_allocated_name(::std::string* name) { } name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.IntegerParameterRange.Name) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) } // float MaxValue = 2; @@ -2084,13 +2110,13 @@ inline void IntegerParameterRange::clear_maxvalue() { maxvalue_ = 0; } inline float IntegerParameterRange::maxvalue() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.IntegerParameterRange.MaxValue) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue) return maxvalue_; } inline void IntegerParameterRange::set_maxvalue(float value) { maxvalue_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.IntegerParameterRange.MaxValue) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue) } // float MinValue = 3; @@ -2098,27 +2124,27 @@ inline void IntegerParameterRange::clear_minvalue() { minvalue_ = 0; } inline float IntegerParameterRange::minvalue() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.IntegerParameterRange.MinValue) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue) return minvalue_; } inline void IntegerParameterRange::set_minvalue(float value) { minvalue_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.IntegerParameterRange.MinValue) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue) } -// .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; +// .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; inline void IntegerParameterRange::clear_scalingtype() { scalingtype_ = 0; } -inline ::flyte::plugins::sagemaker::HyperparameterScalingType IntegerParameterRange::scalingtype() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.IntegerParameterRange.ScalingType) - return static_cast< ::flyte::plugins::sagemaker::HyperparameterScalingType >(scalingtype_); +inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType IntegerParameterRange::scalingtype() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scalingtype_); } -inline void IntegerParameterRange::set_scalingtype(::flyte::plugins::sagemaker::HyperparameterScalingType value) { +inline void IntegerParameterRange::set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { scalingtype_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.IntegerParameterRange.ScalingType) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType) } // ------------------------------------------------------------------- @@ -2130,41 +2156,41 @@ inline void CategoricalParameterRange::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& CategoricalParameterRange::name() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) return name_.GetNoArena(); } inline void CategoricalParameterRange::set_name(const ::std::string& value) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) } #if LANG_CXX11 inline void CategoricalParameterRange::set_name(::std::string&& value) { name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) } #endif inline void CategoricalParameterRange::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) } inline void CategoricalParameterRange::set_name(const char* value, size_t size) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) } inline ::std::string* CategoricalParameterRange::mutable_name() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* CategoricalParameterRange::release_name() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2175,7 +2201,7 @@ inline void CategoricalParameterRange::set_allocated_name(::std::string* name) { } name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.CategoricalParameterRange.Name) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) } // repeated string Values = 2; @@ -2186,64 +2212,64 @@ inline void CategoricalParameterRange::clear_values() { values_.Clear(); } inline const ::std::string& CategoricalParameterRange::values(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) return values_.Get(index); } inline ::std::string* CategoricalParameterRange::mutable_values(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) return values_.Mutable(index); } inline void CategoricalParameterRange::set_values(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) values_.Mutable(index)->assign(value); } #if LANG_CXX11 inline void CategoricalParameterRange::set_values(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) values_.Mutable(index)->assign(std::move(value)); } #endif inline void CategoricalParameterRange::set_values(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); values_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) } inline void CategoricalParameterRange::set_values(int index, const char* value, size_t size) { values_.Mutable(index)->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) } inline ::std::string* CategoricalParameterRange::add_values() { - // @@protoc_insertion_point(field_add_mutable:flyte.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) return values_.Add(); } inline void CategoricalParameterRange::add_values(const ::std::string& value) { values_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) } #if LANG_CXX11 inline void CategoricalParameterRange::add_values(::std::string&& value) { values_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) } #endif inline void CategoricalParameterRange::add_values(const char* value) { GOOGLE_DCHECK(value != nullptr); values_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyte.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) } inline void CategoricalParameterRange::add_values(const char* value, size_t size) { values_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyte.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& CategoricalParameterRange::values() const { - // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) return values_; } inline ::google::protobuf::RepeatedPtrField<::std::string>* CategoricalParameterRange::mutable_values() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) return &values_; } @@ -2251,93 +2277,93 @@ CategoricalParameterRange::mutable_values() { // ParameterRanges -// repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; +// repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; inline int ParameterRanges::continuousparameterranges_size() const { return continuousparameterranges_.size(); } inline void ParameterRanges::clear_continuousparameterranges() { continuousparameterranges_.Clear(); } -inline ::flyte::plugins::sagemaker::ContinuousParameterRange* ParameterRanges::mutable_continuousparameterranges(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) +inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRanges::mutable_continuousparameterranges(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) return continuousparameterranges_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::ContinuousParameterRange >* +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >* ParameterRanges::mutable_continuousparameterranges() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) return &continuousparameterranges_; } -inline const ::flyte::plugins::sagemaker::ContinuousParameterRange& ParameterRanges::continuousparameterranges(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) +inline const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& ParameterRanges::continuousparameterranges(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) return continuousparameterranges_.Get(index); } -inline ::flyte::plugins::sagemaker::ContinuousParameterRange* ParameterRanges::add_continuousparameterranges() { - // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) +inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRanges::add_continuousparameterranges() { + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) return continuousparameterranges_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::ContinuousParameterRange >& +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >& ParameterRanges::continuousparameterranges() const { - // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) return continuousparameterranges_; } -// repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; +// repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; inline int ParameterRanges::integerparameterranges_size() const { return integerparameterranges_.size(); } inline void ParameterRanges::clear_integerparameterranges() { integerparameterranges_.Clear(); } -inline ::flyte::plugins::sagemaker::IntegerParameterRange* ParameterRanges::mutable_integerparameterranges(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) +inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRanges::mutable_integerparameterranges(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) return integerparameterranges_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::IntegerParameterRange >* +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::IntegerParameterRange >* ParameterRanges::mutable_integerparameterranges() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) return &integerparameterranges_; } -inline const ::flyte::plugins::sagemaker::IntegerParameterRange& ParameterRanges::integerparameterranges(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) +inline const ::flyteidl::plugins::sagemaker::IntegerParameterRange& ParameterRanges::integerparameterranges(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) return integerparameterranges_.Get(index); } -inline ::flyte::plugins::sagemaker::IntegerParameterRange* ParameterRanges::add_integerparameterranges() { - // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) +inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRanges::add_integerparameterranges() { + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) return integerparameterranges_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::IntegerParameterRange >& +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::IntegerParameterRange >& ParameterRanges::integerparameterranges() const { - // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) return integerparameterranges_; } -// repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; +// repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; inline int ParameterRanges::categoricalparameterranges_size() const { return categoricalparameterranges_.size(); } inline void ParameterRanges::clear_categoricalparameterranges() { categoricalparameterranges_.Clear(); } -inline ::flyte::plugins::sagemaker::CategoricalParameterRange* ParameterRanges::mutable_categoricalparameterranges(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) +inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRanges::mutable_categoricalparameterranges(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) return categoricalparameterranges_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::CategoricalParameterRange >* +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >* ParameterRanges::mutable_categoricalparameterranges() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) return &categoricalparameterranges_; } -inline const ::flyte::plugins::sagemaker::CategoricalParameterRange& ParameterRanges::categoricalparameterranges(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) +inline const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& ParameterRanges::categoricalparameterranges(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) return categoricalparameterranges_.Get(index); } -inline ::flyte::plugins::sagemaker::CategoricalParameterRange* ParameterRanges::add_categoricalparameterranges() { - // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) +inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRanges::add_categoricalparameterranges() { + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) return categoricalparameterranges_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::CategoricalParameterRange >& +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >& ParameterRanges::categoricalparameterranges() const { - // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) return categoricalparameterranges_; } @@ -2350,41 +2376,41 @@ inline void AlgorithmSpecification_MetricDefinition::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& AlgorithmSpecification_MetricDefinition::name() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) return name_.GetNoArena(); } inline void AlgorithmSpecification_MetricDefinition::set_name(const ::std::string& value) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) } #if LANG_CXX11 inline void AlgorithmSpecification_MetricDefinition::set_name(::std::string&& value) { name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) } #endif inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) } inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value, size_t size) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) } inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_name() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AlgorithmSpecification_MetricDefinition::release_name() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2395,7 +2421,7 @@ inline void AlgorithmSpecification_MetricDefinition::set_allocated_name(::std::s } name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) } // string Regex = 2; @@ -2403,41 +2429,41 @@ inline void AlgorithmSpecification_MetricDefinition::clear_regex() { regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& AlgorithmSpecification_MetricDefinition::regex() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) return regex_.GetNoArena(); } inline void AlgorithmSpecification_MetricDefinition::set_regex(const ::std::string& value) { regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) } #if LANG_CXX11 inline void AlgorithmSpecification_MetricDefinition::set_regex(::std::string&& value) { regex_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) } #endif inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value) { GOOGLE_DCHECK(value != nullptr); regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) } inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value, size_t size) { regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) } inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_regex() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) return regex_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AlgorithmSpecification_MetricDefinition::release_regex() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) return regex_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2448,7 +2474,7 @@ inline void AlgorithmSpecification_MetricDefinition::set_allocated_regex(::std:: } regex_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), regex); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) } // ------------------------------------------------------------------- @@ -2460,41 +2486,41 @@ inline void AlgorithmSpecification::clear_trainingimage() { trainingimage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& AlgorithmSpecification::trainingimage() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) return trainingimage_.GetNoArena(); } inline void AlgorithmSpecification::set_trainingimage(const ::std::string& value) { trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) } #if LANG_CXX11 inline void AlgorithmSpecification::set_trainingimage(::std::string&& value) { trainingimage_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) } #endif inline void AlgorithmSpecification::set_trainingimage(const char* value) { GOOGLE_DCHECK(value != nullptr); trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) } inline void AlgorithmSpecification::set_trainingimage(const char* value, size_t size) { trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) } inline ::std::string* AlgorithmSpecification::mutable_trainingimage() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) return trainingimage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AlgorithmSpecification::release_trainingimage() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) return trainingimage_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2505,7 +2531,7 @@ inline void AlgorithmSpecification::set_allocated_trainingimage(::std::string* t } trainingimage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trainingimage); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) } // string TrainingInputMode = 2; @@ -2513,41 +2539,41 @@ inline void AlgorithmSpecification::clear_traininginputmode() { traininginputmode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& AlgorithmSpecification::traininginputmode() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) return traininginputmode_.GetNoArena(); } inline void AlgorithmSpecification::set_traininginputmode(const ::std::string& value) { traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) } #if LANG_CXX11 inline void AlgorithmSpecification::set_traininginputmode(::std::string&& value) { traininginputmode_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) } #endif inline void AlgorithmSpecification::set_traininginputmode(const char* value) { GOOGLE_DCHECK(value != nullptr); traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) } inline void AlgorithmSpecification::set_traininginputmode(const char* value, size_t size) { traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) } inline ::std::string* AlgorithmSpecification::mutable_traininginputmode() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) return traininginputmode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AlgorithmSpecification::release_traininginputmode() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) return traininginputmode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2558,7 +2584,7 @@ inline void AlgorithmSpecification::set_allocated_traininginputmode(::std::strin } traininginputmode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), traininginputmode); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) } // string AlgorithmName = 3; @@ -2566,41 +2592,41 @@ inline void AlgorithmSpecification::clear_algorithmname() { algorithmname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& AlgorithmSpecification::algorithmname() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) return algorithmname_.GetNoArena(); } inline void AlgorithmSpecification::set_algorithmname(const ::std::string& value) { algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) } #if LANG_CXX11 inline void AlgorithmSpecification::set_algorithmname(::std::string&& value) { algorithmname_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) } #endif inline void AlgorithmSpecification::set_algorithmname(const char* value) { GOOGLE_DCHECK(value != nullptr); algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) } inline void AlgorithmSpecification::set_algorithmname(const char* value, size_t size) { algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) } inline ::std::string* AlgorithmSpecification::mutable_algorithmname() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) return algorithmname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AlgorithmSpecification::release_algorithmname() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) return algorithmname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2611,36 +2637,36 @@ inline void AlgorithmSpecification::set_allocated_algorithmname(::std::string* a } algorithmname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), algorithmname); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) } -// repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; +// repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; inline int AlgorithmSpecification::metricdefinitions_size() const { return metricdefinitions_.size(); } inline void AlgorithmSpecification::clear_metricdefinitions() { metricdefinitions_.Clear(); } -inline ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::mutable_metricdefinitions(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::mutable_metricdefinitions(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) return metricdefinitions_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* AlgorithmSpecification::mutable_metricdefinitions() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) return &metricdefinitions_; } -inline const ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& AlgorithmSpecification::metricdefinitions(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) +inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& AlgorithmSpecification::metricdefinitions(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) return metricdefinitions_.Get(index); } -inline ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::add_metricdefinitions() { - // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::add_metricdefinitions() { + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) return metricdefinitions_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::flyte::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& AlgorithmSpecification::metricdefinitions() const { - // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) return metricdefinitions_; } @@ -2653,41 +2679,41 @@ inline void ResourceConfig::clear_instancetype() { instancetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& ResourceConfig::instancetype() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) return instancetype_.GetNoArena(); } inline void ResourceConfig::set_instancetype(const ::std::string& value) { instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) } #if LANG_CXX11 inline void ResourceConfig::set_instancetype(::std::string&& value) { instancetype_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) } #endif inline void ResourceConfig::set_instancetype(const char* value) { GOOGLE_DCHECK(value != nullptr); instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) } inline void ResourceConfig::set_instancetype(const char* value, size_t size) { instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) } inline ::std::string* ResourceConfig::mutable_instancetype() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) return instancetype_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* ResourceConfig::release_instancetype() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) return instancetype_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2698,7 +2724,7 @@ inline void ResourceConfig::set_allocated_instancetype(::std::string* instancety } instancetype_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instancetype); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) } // int64 InstanceCount = 2; @@ -2706,13 +2732,13 @@ inline void ResourceConfig::clear_instancecount() { instancecount_ = PROTOBUF_LONGLONG(0); } inline ::google::protobuf::int64 ResourceConfig::instancecount() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ResourceConfig.InstanceCount) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount) return instancecount_; } inline void ResourceConfig::set_instancecount(::google::protobuf::int64 value) { instancecount_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ResourceConfig.InstanceCount) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount) } // int64 VolumeSizeInGB = 3; @@ -2720,13 +2746,13 @@ inline void ResourceConfig::clear_volumesizeingb() { volumesizeingb_ = PROTOBUF_LONGLONG(0); } inline ::google::protobuf::int64 ResourceConfig::volumesizeingb() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ResourceConfig.VolumeSizeInGB) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB) return volumesizeingb_; } inline void ResourceConfig::set_volumesizeingb(::google::protobuf::int64 value) { volumesizeingb_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ResourceConfig.VolumeSizeInGB) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB) } // string VolumeKmsKeyId = 4; @@ -2734,41 +2760,41 @@ inline void ResourceConfig::clear_volumekmskeyid() { volumekmskeyid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& ResourceConfig::volumekmskeyid() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) return volumekmskeyid_.GetNoArena(); } inline void ResourceConfig::set_volumekmskeyid(const ::std::string& value) { volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) } #if LANG_CXX11 inline void ResourceConfig::set_volumekmskeyid(::std::string&& value) { volumekmskeyid_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) } #endif inline void ResourceConfig::set_volumekmskeyid(const char* value) { GOOGLE_DCHECK(value != nullptr); volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) } inline void ResourceConfig::set_volumekmskeyid(const char* value, size_t size) { volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) } inline ::std::string* ResourceConfig::mutable_volumekmskeyid() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) return volumekmskeyid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* ResourceConfig::release_volumekmskeyid() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) return volumekmskeyid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2779,7 +2805,7 @@ inline void ResourceConfig::set_allocated_volumekmskeyid(::std::string* volumekm } volumekmskeyid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), volumekmskeyid); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) } // ------------------------------------------------------------------- @@ -2791,13 +2817,13 @@ inline void StoppingCondition::clear_maxruntimeinseconds() { maxruntimeinseconds_ = PROTOBUF_LONGLONG(0); } inline ::google::protobuf::int64 StoppingCondition::maxruntimeinseconds() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds) return maxruntimeinseconds_; } inline void StoppingCondition::set_maxruntimeinseconds(::google::protobuf::int64 value) { maxruntimeinseconds_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds) } // int64 MaxWaitTimeInSeconds = 2; @@ -2805,13 +2831,13 @@ inline void StoppingCondition::clear_maxwaittimeinseconds() { maxwaittimeinseconds_ = PROTOBUF_LONGLONG(0); } inline ::google::protobuf::int64 StoppingCondition::maxwaittimeinseconds() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds) return maxwaittimeinseconds_; } inline void StoppingCondition::set_maxwaittimeinseconds(::google::protobuf::int64 value) { maxwaittimeinseconds_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds) } // ------------------------------------------------------------------- @@ -2826,64 +2852,64 @@ inline void VpcConfig::clear_securitygroupids() { securitygroupids_.Clear(); } inline const ::std::string& VpcConfig::securitygroupids(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) return securitygroupids_.Get(index); } inline ::std::string* VpcConfig::mutable_securitygroupids(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) return securitygroupids_.Mutable(index); } inline void VpcConfig::set_securitygroupids(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) securitygroupids_.Mutable(index)->assign(value); } #if LANG_CXX11 inline void VpcConfig::set_securitygroupids(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) securitygroupids_.Mutable(index)->assign(std::move(value)); } #endif inline void VpcConfig::set_securitygroupids(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); securitygroupids_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) } inline void VpcConfig::set_securitygroupids(int index, const char* value, size_t size) { securitygroupids_.Mutable(index)->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) } inline ::std::string* VpcConfig::add_securitygroupids() { - // @@protoc_insertion_point(field_add_mutable:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) return securitygroupids_.Add(); } inline void VpcConfig::add_securitygroupids(const ::std::string& value) { securitygroupids_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) } #if LANG_CXX11 inline void VpcConfig::add_securitygroupids(::std::string&& value) { securitygroupids_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) } #endif inline void VpcConfig::add_securitygroupids(const char* value) { GOOGLE_DCHECK(value != nullptr); securitygroupids_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) } inline void VpcConfig::add_securitygroupids(const char* value, size_t size) { securitygroupids_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& VpcConfig::securitygroupids() const { - // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) return securitygroupids_; } inline ::google::protobuf::RepeatedPtrField<::std::string>* VpcConfig::mutable_securitygroupids() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) return &securitygroupids_; } @@ -2895,64 +2921,64 @@ inline void VpcConfig::clear_subnets() { subnets_.Clear(); } inline const ::std::string& VpcConfig::subnets(int index) const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.VpcConfig.Subnets) return subnets_.Get(index); } inline ::std::string* VpcConfig::mutable_subnets(int index) { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.VpcConfig.Subnets) return subnets_.Mutable(index); } inline void VpcConfig::set_subnets(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.Subnets) subnets_.Mutable(index)->assign(value); } #if LANG_CXX11 inline void VpcConfig::set_subnets(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.Subnets) subnets_.Mutable(index)->assign(std::move(value)); } #endif inline void VpcConfig::set_subnets(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); subnets_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.VpcConfig.Subnets) } inline void VpcConfig::set_subnets(int index, const char* value, size_t size) { subnets_.Mutable(index)->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.VpcConfig.Subnets) } inline ::std::string* VpcConfig::add_subnets() { - // @@protoc_insertion_point(field_add_mutable:flyte.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.VpcConfig.Subnets) return subnets_.Add(); } inline void VpcConfig::add_subnets(const ::std::string& value) { subnets_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.Subnets) } #if LANG_CXX11 inline void VpcConfig::add_subnets(::std::string&& value) { subnets_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyte.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.Subnets) } #endif inline void VpcConfig::add_subnets(const char* value) { GOOGLE_DCHECK(value != nullptr); subnets_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyte.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.VpcConfig.Subnets) } inline void VpcConfig::add_subnets(const char* value, size_t size) { subnets_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyte.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.VpcConfig.Subnets) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& VpcConfig::subnets() const { - // @@protoc_insertion_point(field_list:flyte.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.VpcConfig.Subnets) return subnets_; } inline ::google::protobuf::RepeatedPtrField<::std::string>* VpcConfig::mutable_subnets() { - // @@protoc_insertion_point(field_mutable_list:flyte.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.VpcConfig.Subnets) return &subnets_; } @@ -2965,41 +2991,41 @@ inline void SagemakerTrainingJob::clear_region() { region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& SagemakerTrainingJob::region() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) return region_.GetNoArena(); } inline void SagemakerTrainingJob::set_region(const ::std::string& value) { region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) } #if LANG_CXX11 inline void SagemakerTrainingJob::set_region(::std::string&& value) { region_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) } #endif inline void SagemakerTrainingJob::set_region(const char* value) { GOOGLE_DCHECK(value != nullptr); region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) } inline void SagemakerTrainingJob::set_region(const char* value, size_t size) { region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) } inline ::std::string* SagemakerTrainingJob::mutable_region() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) return region_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* SagemakerTrainingJob::release_region() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) return region_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -3010,7 +3036,7 @@ inline void SagemakerTrainingJob::set_allocated_region(::std::string* region) { } region_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), region); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerTrainingJob.Region) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) } // string RoleArn = 2; @@ -3018,41 +3044,41 @@ inline void SagemakerTrainingJob::clear_rolearn() { rolearn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& SagemakerTrainingJob::rolearn() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) return rolearn_.GetNoArena(); } inline void SagemakerTrainingJob::set_rolearn(const ::std::string& value) { rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) } #if LANG_CXX11 inline void SagemakerTrainingJob::set_rolearn(::std::string&& value) { rolearn_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) } #endif inline void SagemakerTrainingJob::set_rolearn(const char* value) { GOOGLE_DCHECK(value != nullptr); rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) } inline void SagemakerTrainingJob::set_rolearn(const char* value, size_t size) { rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) } inline ::std::string* SagemakerTrainingJob::mutable_rolearn() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) return rolearn_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* SagemakerTrainingJob::release_rolearn() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) return rolearn_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -3063,10 +3089,10 @@ inline void SagemakerTrainingJob::set_allocated_rolearn(::std::string* rolearn) } rolearn_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rolearn); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) } -// .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; +// .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; inline bool SagemakerTrainingJob::has_algorithmspecification() const { return this != internal_default_instance() && algorithmspecification_ != nullptr; } @@ -3076,29 +3102,29 @@ inline void SagemakerTrainingJob::clear_algorithmspecification() { } algorithmspecification_ = nullptr; } -inline const ::flyte::plugins::sagemaker::AlgorithmSpecification& SagemakerTrainingJob::algorithmspecification() const { - const ::flyte::plugins::sagemaker::AlgorithmSpecification* p = algorithmspecification_; - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::sagemaker::_AlgorithmSpecification_default_instance_); +inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& SagemakerTrainingJob::algorithmspecification() const { + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification* p = algorithmspecification_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_); } -inline ::flyte::plugins::sagemaker::AlgorithmSpecification* SagemakerTrainingJob::release_algorithmspecification() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* SagemakerTrainingJob::release_algorithmspecification() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) - ::flyte::plugins::sagemaker::AlgorithmSpecification* temp = algorithmspecification_; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* temp = algorithmspecification_; algorithmspecification_ = nullptr; return temp; } -inline ::flyte::plugins::sagemaker::AlgorithmSpecification* SagemakerTrainingJob::mutable_algorithmspecification() { +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* SagemakerTrainingJob::mutable_algorithmspecification() { if (algorithmspecification_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::AlgorithmSpecification>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(GetArenaNoVirtual()); algorithmspecification_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) return algorithmspecification_; } -inline void SagemakerTrainingJob::set_allocated_algorithmspecification(::flyte::plugins::sagemaker::AlgorithmSpecification* algorithmspecification) { +inline void SagemakerTrainingJob::set_allocated_algorithmspecification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithmspecification) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete algorithmspecification_; @@ -3114,10 +3140,10 @@ inline void SagemakerTrainingJob::set_allocated_algorithmspecification(::flyte:: } algorithmspecification_ = algorithmspecification; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) } -// .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; +// .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; inline bool SagemakerTrainingJob::has_resourceconfig() const { return this != internal_default_instance() && resourceconfig_ != nullptr; } @@ -3127,29 +3153,29 @@ inline void SagemakerTrainingJob::clear_resourceconfig() { } resourceconfig_ = nullptr; } -inline const ::flyte::plugins::sagemaker::ResourceConfig& SagemakerTrainingJob::resourceconfig() const { - const ::flyte::plugins::sagemaker::ResourceConfig* p = resourceconfig_; - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::sagemaker::_ResourceConfig_default_instance_); +inline const ::flyteidl::plugins::sagemaker::ResourceConfig& SagemakerTrainingJob::resourceconfig() const { + const ::flyteidl::plugins::sagemaker::ResourceConfig* p = resourceconfig_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_ResourceConfig_default_instance_); } -inline ::flyte::plugins::sagemaker::ResourceConfig* SagemakerTrainingJob::release_resourceconfig() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) +inline ::flyteidl::plugins::sagemaker::ResourceConfig* SagemakerTrainingJob::release_resourceconfig() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) - ::flyte::plugins::sagemaker::ResourceConfig* temp = resourceconfig_; + ::flyteidl::plugins::sagemaker::ResourceConfig* temp = resourceconfig_; resourceconfig_ = nullptr; return temp; } -inline ::flyte::plugins::sagemaker::ResourceConfig* SagemakerTrainingJob::mutable_resourceconfig() { +inline ::flyteidl::plugins::sagemaker::ResourceConfig* SagemakerTrainingJob::mutable_resourceconfig() { if (resourceconfig_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::ResourceConfig>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ResourceConfig>(GetArenaNoVirtual()); resourceconfig_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) return resourceconfig_; } -inline void SagemakerTrainingJob::set_allocated_resourceconfig(::flyte::plugins::sagemaker::ResourceConfig* resourceconfig) { +inline void SagemakerTrainingJob::set_allocated_resourceconfig(::flyteidl::plugins::sagemaker::ResourceConfig* resourceconfig) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete resourceconfig_; @@ -3165,10 +3191,10 @@ inline void SagemakerTrainingJob::set_allocated_resourceconfig(::flyte::plugins: } resourceconfig_ = resourceconfig; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) } -// .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; +// .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; inline bool SagemakerTrainingJob::has_stoppingcondition() const { return this != internal_default_instance() && stoppingcondition_ != nullptr; } @@ -3178,29 +3204,29 @@ inline void SagemakerTrainingJob::clear_stoppingcondition() { } stoppingcondition_ = nullptr; } -inline const ::flyte::plugins::sagemaker::StoppingCondition& SagemakerTrainingJob::stoppingcondition() const { - const ::flyte::plugins::sagemaker::StoppingCondition* p = stoppingcondition_; - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::sagemaker::_StoppingCondition_default_instance_); +inline const ::flyteidl::plugins::sagemaker::StoppingCondition& SagemakerTrainingJob::stoppingcondition() const { + const ::flyteidl::plugins::sagemaker::StoppingCondition* p = stoppingcondition_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_); } -inline ::flyte::plugins::sagemaker::StoppingCondition* SagemakerTrainingJob::release_stoppingcondition() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) +inline ::flyteidl::plugins::sagemaker::StoppingCondition* SagemakerTrainingJob::release_stoppingcondition() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) - ::flyte::plugins::sagemaker::StoppingCondition* temp = stoppingcondition_; + ::flyteidl::plugins::sagemaker::StoppingCondition* temp = stoppingcondition_; stoppingcondition_ = nullptr; return temp; } -inline ::flyte::plugins::sagemaker::StoppingCondition* SagemakerTrainingJob::mutable_stoppingcondition() { +inline ::flyteidl::plugins::sagemaker::StoppingCondition* SagemakerTrainingJob::mutable_stoppingcondition() { if (stoppingcondition_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::StoppingCondition>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::StoppingCondition>(GetArenaNoVirtual()); stoppingcondition_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) return stoppingcondition_; } -inline void SagemakerTrainingJob::set_allocated_stoppingcondition(::flyte::plugins::sagemaker::StoppingCondition* stoppingcondition) { +inline void SagemakerTrainingJob::set_allocated_stoppingcondition(::flyteidl::plugins::sagemaker::StoppingCondition* stoppingcondition) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete stoppingcondition_; @@ -3216,10 +3242,10 @@ inline void SagemakerTrainingJob::set_allocated_stoppingcondition(::flyte::plugi } stoppingcondition_ = stoppingcondition; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) } -// .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; +// .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; inline bool SagemakerTrainingJob::has_vpcconfig() const { return this != internal_default_instance() && vpcconfig_ != nullptr; } @@ -3229,29 +3255,29 @@ inline void SagemakerTrainingJob::clear_vpcconfig() { } vpcconfig_ = nullptr; } -inline const ::flyte::plugins::sagemaker::VpcConfig& SagemakerTrainingJob::vpcconfig() const { - const ::flyte::plugins::sagemaker::VpcConfig* p = vpcconfig_; - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::sagemaker::_VpcConfig_default_instance_); +inline const ::flyteidl::plugins::sagemaker::VpcConfig& SagemakerTrainingJob::vpcconfig() const { + const ::flyteidl::plugins::sagemaker::VpcConfig* p = vpcconfig_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_VpcConfig_default_instance_); } -inline ::flyte::plugins::sagemaker::VpcConfig* SagemakerTrainingJob::release_vpcconfig() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) +inline ::flyteidl::plugins::sagemaker::VpcConfig* SagemakerTrainingJob::release_vpcconfig() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) - ::flyte::plugins::sagemaker::VpcConfig* temp = vpcconfig_; + ::flyteidl::plugins::sagemaker::VpcConfig* temp = vpcconfig_; vpcconfig_ = nullptr; return temp; } -inline ::flyte::plugins::sagemaker::VpcConfig* SagemakerTrainingJob::mutable_vpcconfig() { +inline ::flyteidl::plugins::sagemaker::VpcConfig* SagemakerTrainingJob::mutable_vpcconfig() { if (vpcconfig_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::VpcConfig>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::VpcConfig>(GetArenaNoVirtual()); vpcconfig_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) return vpcconfig_; } -inline void SagemakerTrainingJob::set_allocated_vpcconfig(::flyte::plugins::sagemaker::VpcConfig* vpcconfig) { +inline void SagemakerTrainingJob::set_allocated_vpcconfig(::flyteidl::plugins::sagemaker::VpcConfig* vpcconfig) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete vpcconfig_; @@ -3267,7 +3293,7 @@ inline void SagemakerTrainingJob::set_allocated_vpcconfig(::flyte::plugins::sage } vpcconfig_ = vpcconfig; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) } // bool EnableSpotTraining = 7; @@ -3275,31 +3301,31 @@ inline void SagemakerTrainingJob::clear_enablespottraining() { enablespottraining_ = false; } inline bool SagemakerTrainingJob::enablespottraining() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining) return enablespottraining_; } inline void SagemakerTrainingJob::set_enablespottraining(bool value) { enablespottraining_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining) } // ------------------------------------------------------------------- // HPOJobObjective -// .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; +// .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; inline void HPOJobObjective::clear_type() { type_ = 0; } -inline ::flyte::plugins::sagemaker::HPOJobObjectiveType HPOJobObjective::type() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.HPOJobObjective.Type) - return static_cast< ::flyte::plugins::sagemaker::HPOJobObjectiveType >(type_); +inline ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType HPOJobObjective::type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.Type) + return static_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType >(type_); } -inline void HPOJobObjective::set_type(::flyte::plugins::sagemaker::HPOJobObjectiveType value) { +inline void HPOJobObjective::set_type(::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType value) { type_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.HPOJobObjective.Type) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.Type) } // string MetricName = 2; @@ -3307,41 +3333,41 @@ inline void HPOJobObjective::clear_metricname() { metricname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& HPOJobObjective::metricname() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) return metricname_.GetNoArena(); } inline void HPOJobObjective::set_metricname(const ::std::string& value) { metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) } #if LANG_CXX11 inline void HPOJobObjective::set_metricname(::std::string&& value) { metricname_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) } #endif inline void HPOJobObjective::set_metricname(const char* value) { GOOGLE_DCHECK(value != nullptr); metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) } inline void HPOJobObjective::set_metricname(const char* value, size_t size) { metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) } inline ::std::string* HPOJobObjective::mutable_metricname() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) return metricname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* HPOJobObjective::release_metricname() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) return metricname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -3352,7 +3378,7 @@ inline void HPOJobObjective::set_allocated_metricname(::std::string* metricname) } metricname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metricname); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) } // ------------------------------------------------------------------- @@ -3364,41 +3390,41 @@ inline void SagemakerHPOJob::clear_strategy() { strategy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& SagemakerHPOJob::strategy() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) return strategy_.GetNoArena(); } inline void SagemakerHPOJob::set_strategy(const ::std::string& value) { strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) } #if LANG_CXX11 inline void SagemakerHPOJob::set_strategy(::std::string&& value) { strategy_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) } #endif inline void SagemakerHPOJob::set_strategy(const char* value) { GOOGLE_DCHECK(value != nullptr); strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) } inline void SagemakerHPOJob::set_strategy(const char* value, size_t size) { strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) } inline ::std::string* SagemakerHPOJob::mutable_strategy() { - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) return strategy_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* SagemakerHPOJob::release_strategy() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) return strategy_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -3409,10 +3435,10 @@ inline void SagemakerHPOJob::set_allocated_strategy(::std::string* strategy) { } strategy_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), strategy); - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerHPOJob.Strategy) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) } -// .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; +// .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; inline bool SagemakerHPOJob::has_objective() const { return this != internal_default_instance() && objective_ != nullptr; } @@ -3422,29 +3448,29 @@ inline void SagemakerHPOJob::clear_objective() { } objective_ = nullptr; } -inline const ::flyte::plugins::sagemaker::HPOJobObjective& SagemakerHPOJob::objective() const { - const ::flyte::plugins::sagemaker::HPOJobObjective* p = objective_; - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerHPOJob.Objective) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::sagemaker::_HPOJobObjective_default_instance_); +inline const ::flyteidl::plugins::sagemaker::HPOJobObjective& SagemakerHPOJob::objective() const { + const ::flyteidl::plugins::sagemaker::HPOJobObjective* p = objective_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerHPOJob.Objective) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_HPOJobObjective_default_instance_); } -inline ::flyte::plugins::sagemaker::HPOJobObjective* SagemakerHPOJob::release_objective() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerHPOJob.Objective) +inline ::flyteidl::plugins::sagemaker::HPOJobObjective* SagemakerHPOJob::release_objective() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerHPOJob.Objective) - ::flyte::plugins::sagemaker::HPOJobObjective* temp = objective_; + ::flyteidl::plugins::sagemaker::HPOJobObjective* temp = objective_; objective_ = nullptr; return temp; } -inline ::flyte::plugins::sagemaker::HPOJobObjective* SagemakerHPOJob::mutable_objective() { +inline ::flyteidl::plugins::sagemaker::HPOJobObjective* SagemakerHPOJob::mutable_objective() { if (objective_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::HPOJobObjective>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobObjective>(GetArenaNoVirtual()); objective_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerHPOJob.Objective) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerHPOJob.Objective) return objective_; } -inline void SagemakerHPOJob::set_allocated_objective(::flyte::plugins::sagemaker::HPOJobObjective* objective) { +inline void SagemakerHPOJob::set_allocated_objective(::flyteidl::plugins::sagemaker::HPOJobObjective* objective) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete objective_; @@ -3460,7 +3486,7 @@ inline void SagemakerHPOJob::set_allocated_objective(::flyte::plugins::sagemaker } objective_ = objective; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerHPOJob.Objective) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerHPOJob.Objective) } // int64 MaxNumberOfTrainingJobs = 3; @@ -3468,13 +3494,13 @@ inline void SagemakerHPOJob::clear_maxnumberoftrainingjobs() { maxnumberoftrainingjobs_ = PROTOBUF_LONGLONG(0); } inline ::google::protobuf::int64 SagemakerHPOJob::maxnumberoftrainingjobs() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs) return maxnumberoftrainingjobs_; } inline void SagemakerHPOJob::set_maxnumberoftrainingjobs(::google::protobuf::int64 value) { maxnumberoftrainingjobs_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs) } // int64 MaxParallelTrainingJobs = 4; @@ -3482,16 +3508,16 @@ inline void SagemakerHPOJob::clear_maxparalleltrainingjobs() { maxparalleltrainingjobs_ = PROTOBUF_LONGLONG(0); } inline ::google::protobuf::int64 SagemakerHPOJob::maxparalleltrainingjobs() const { - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs) return maxparalleltrainingjobs_; } inline void SagemakerHPOJob::set_maxparalleltrainingjobs(::google::protobuf::int64 value) { maxparalleltrainingjobs_ = value; - // @@protoc_insertion_point(field_set:flyte.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs) } -// .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; +// .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; inline bool SagemakerHPOJob::has_parameterranges() const { return this != internal_default_instance() && parameterranges_ != nullptr; } @@ -3501,29 +3527,29 @@ inline void SagemakerHPOJob::clear_parameterranges() { } parameterranges_ = nullptr; } -inline const ::flyte::plugins::sagemaker::ParameterRanges& SagemakerHPOJob::parameterranges() const { - const ::flyte::plugins::sagemaker::ParameterRanges* p = parameterranges_; - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::sagemaker::_ParameterRanges_default_instance_); +inline const ::flyteidl::plugins::sagemaker::ParameterRanges& SagemakerHPOJob::parameterranges() const { + const ::flyteidl::plugins::sagemaker::ParameterRanges* p = parameterranges_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_); } -inline ::flyte::plugins::sagemaker::ParameterRanges* SagemakerHPOJob::release_parameterranges() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) +inline ::flyteidl::plugins::sagemaker::ParameterRanges* SagemakerHPOJob::release_parameterranges() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) - ::flyte::plugins::sagemaker::ParameterRanges* temp = parameterranges_; + ::flyteidl::plugins::sagemaker::ParameterRanges* temp = parameterranges_; parameterranges_ = nullptr; return temp; } -inline ::flyte::plugins::sagemaker::ParameterRanges* SagemakerHPOJob::mutable_parameterranges() { +inline ::flyteidl::plugins::sagemaker::ParameterRanges* SagemakerHPOJob::mutable_parameterranges() { if (parameterranges_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::ParameterRanges>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(GetArenaNoVirtual()); parameterranges_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) return parameterranges_; } -inline void SagemakerHPOJob::set_allocated_parameterranges(::flyte::plugins::sagemaker::ParameterRanges* parameterranges) { +inline void SagemakerHPOJob::set_allocated_parameterranges(::flyteidl::plugins::sagemaker::ParameterRanges* parameterranges) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete parameterranges_; @@ -3539,10 +3565,10 @@ inline void SagemakerHPOJob::set_allocated_parameterranges(::flyte::plugins::sag } parameterranges_ = parameterranges; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) } -// .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; +// .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; inline bool SagemakerHPOJob::has_trainingjob() const { return this != internal_default_instance() && trainingjob_ != nullptr; } @@ -3552,29 +3578,29 @@ inline void SagemakerHPOJob::clear_trainingjob() { } trainingjob_ = nullptr; } -inline const ::flyte::plugins::sagemaker::SagemakerTrainingJob& SagemakerHPOJob::trainingjob() const { - const ::flyte::plugins::sagemaker::SagemakerTrainingJob* p = trainingjob_; - // @@protoc_insertion_point(field_get:flyte.plugins.sagemaker.SagemakerHPOJob.TrainingJob) - return p != nullptr ? *p : *reinterpret_cast( - &::flyte::plugins::sagemaker::_SagemakerTrainingJob_default_instance_); +inline const ::flyteidl::plugins::sagemaker::SagemakerTrainingJob& SagemakerHPOJob::trainingjob() const { + const ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* p = trainingjob_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerHPOJob.TrainingJob) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_); } -inline ::flyte::plugins::sagemaker::SagemakerTrainingJob* SagemakerHPOJob::release_trainingjob() { - // @@protoc_insertion_point(field_release:flyte.plugins.sagemaker.SagemakerHPOJob.TrainingJob) +inline ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* SagemakerHPOJob::release_trainingjob() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerHPOJob.TrainingJob) - ::flyte::plugins::sagemaker::SagemakerTrainingJob* temp = trainingjob_; + ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* temp = trainingjob_; trainingjob_ = nullptr; return temp; } -inline ::flyte::plugins::sagemaker::SagemakerTrainingJob* SagemakerHPOJob::mutable_trainingjob() { +inline ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* SagemakerHPOJob::mutable_trainingjob() { if (trainingjob_ == nullptr) { - auto* p = CreateMaybeMessage<::flyte::plugins::sagemaker::SagemakerTrainingJob>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::SagemakerTrainingJob>(GetArenaNoVirtual()); trainingjob_ = p; } - // @@protoc_insertion_point(field_mutable:flyte.plugins.sagemaker.SagemakerHPOJob.TrainingJob) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerHPOJob.TrainingJob) return trainingjob_; } -inline void SagemakerHPOJob::set_allocated_trainingjob(::flyte::plugins::sagemaker::SagemakerTrainingJob* trainingjob) { +inline void SagemakerHPOJob::set_allocated_trainingjob(::flyteidl::plugins::sagemaker::SagemakerTrainingJob* trainingjob) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete trainingjob_; @@ -3590,7 +3616,7 @@ inline void SagemakerHPOJob::set_allocated_trainingjob(::flyte::plugins::sagemak } trainingjob_ = trainingjob; - // @@protoc_insertion_point(field_set_allocated:flyte.plugins.sagemaker.SagemakerHPOJob.TrainingJob) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerHPOJob.TrainingJob) } #ifdef __GNUC__ @@ -3623,20 +3649,20 @@ inline void SagemakerHPOJob::set_allocated_trainingjob(::flyte::plugins::sagemak } // namespace sagemaker } // namespace plugins -} // namespace flyte +} // namespace flyteidl namespace google { namespace protobuf { -template <> struct is_proto_enum< ::flyte::plugins::sagemaker::HyperparameterScalingType> : ::std::true_type {}; +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyte::plugins::sagemaker::HyperparameterScalingType>() { - return ::flyte::plugins::sagemaker::HyperparameterScalingType_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType>() { + return ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType_descriptor(); } -template <> struct is_proto_enum< ::flyte::plugins::sagemaker::HPOJobObjectiveType> : ::std::true_type {}; +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterScalingType> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyte::plugins::sagemaker::HPOJobObjectiveType>() { - return ::flyte::plugins::sagemaker::HPOJobObjectiveType_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterScalingType>() { + return ::flyteidl::plugins::sagemaker::HyperparameterScalingType_descriptor(); } } // namespace protobuf diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.go index e29f74471..da1c88061 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.go @@ -51,36 +51,36 @@ func (HyperparameterScalingType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_21b5a21adfeb46ce, []int{0} } -type HPOJobObjectiveType int32 +type HPOJobObjective_HPOJobObjectiveType int32 const ( - HPOJobObjectiveType_MINIMIZE HPOJobObjectiveType = 0 - HPOJobObjectiveType_MAXIMIZE HPOJobObjectiveType = 1 + HPOJobObjective_MINIMIZE HPOJobObjective_HPOJobObjectiveType = 0 + HPOJobObjective_MAXIMIZE HPOJobObjective_HPOJobObjectiveType = 1 ) -var HPOJobObjectiveType_name = map[int32]string{ +var HPOJobObjective_HPOJobObjectiveType_name = map[int32]string{ 0: "MINIMIZE", 1: "MAXIMIZE", } -var HPOJobObjectiveType_value = map[string]int32{ +var HPOJobObjective_HPOJobObjectiveType_value = map[string]int32{ "MINIMIZE": 0, "MAXIMIZE": 1, } -func (x HPOJobObjectiveType) String() string { - return proto.EnumName(HPOJobObjectiveType_name, int32(x)) +func (x HPOJobObjective_HPOJobObjectiveType) String() string { + return proto.EnumName(HPOJobObjective_HPOJobObjectiveType_name, int32(x)) } -func (HPOJobObjectiveType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{1} +func (HPOJobObjective_HPOJobObjectiveType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_21b5a21adfeb46ce, []int{9, 0} } type ContinuousParameterRange struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` MaxValue float64 `protobuf:"fixed64,2,opt,name=MaxValue,proto3" json:"MaxValue,omitempty"` MinValue float64 `protobuf:"fixed64,3,opt,name=MinValue,proto3" json:"MinValue,omitempty"` - ScalingType HyperparameterScalingType `protobuf:"varint,4,opt,name=ScalingType,proto3,enum=flyte.plugins.sagemaker.HyperparameterScalingType" json:"ScalingType,omitempty"` + ScalingType HyperparameterScalingType `protobuf:"varint,4,opt,name=ScalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"ScalingType,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -143,7 +143,7 @@ type IntegerParameterRange struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` MaxValue float32 `protobuf:"fixed32,2,opt,name=MaxValue,proto3" json:"MaxValue,omitempty"` MinValue float32 `protobuf:"fixed32,3,opt,name=MinValue,proto3" json:"MinValue,omitempty"` - ScalingType HyperparameterScalingType `protobuf:"varint,4,opt,name=ScalingType,proto3,enum=flyte.plugins.sagemaker.HyperparameterScalingType" json:"ScalingType,omitempty"` + ScalingType HyperparameterScalingType `protobuf:"varint,4,opt,name=ScalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"ScalingType,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -661,11 +661,11 @@ func (m *SagemakerTrainingJob) GetEnableSpotTraining() bool { } type HPOJobObjective struct { - Type HPOJobObjectiveType `protobuf:"varint,1,opt,name=Type,proto3,enum=flyte.plugins.sagemaker.HPOJobObjectiveType" json:"Type,omitempty"` - MetricName string `protobuf:"bytes,2,opt,name=MetricName,proto3" json:"MetricName,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Type HPOJobObjective_HPOJobObjectiveType `protobuf:"varint,1,opt,name=Type,proto3,enum=flyteidl.plugins.sagemaker.HPOJobObjective_HPOJobObjectiveType" json:"Type,omitempty"` + MetricName string `protobuf:"bytes,2,opt,name=MetricName,proto3" json:"MetricName,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *HPOJobObjective) Reset() { *m = HPOJobObjective{} } @@ -693,11 +693,11 @@ func (m *HPOJobObjective) XXX_DiscardUnknown() { var xxx_messageInfo_HPOJobObjective proto.InternalMessageInfo -func (m *HPOJobObjective) GetType() HPOJobObjectiveType { +func (m *HPOJobObjective) GetType() HPOJobObjective_HPOJobObjectiveType { if m != nil { return m.Type } - return HPOJobObjectiveType_MINIMIZE + return HPOJobObjective_MINIMIZE } func (m *HPOJobObjective) GetMetricName() string { @@ -787,20 +787,20 @@ func (m *SagemakerHPOJob) GetTrainingJob() *SagemakerTrainingJob { } func init() { - proto.RegisterEnum("flyte.plugins.sagemaker.HyperparameterScalingType", HyperparameterScalingType_name, HyperparameterScalingType_value) - proto.RegisterEnum("flyte.plugins.sagemaker.HPOJobObjectiveType", HPOJobObjectiveType_name, HPOJobObjectiveType_value) - proto.RegisterType((*ContinuousParameterRange)(nil), "flyte.plugins.sagemaker.ContinuousParameterRange") - proto.RegisterType((*IntegerParameterRange)(nil), "flyte.plugins.sagemaker.IntegerParameterRange") - proto.RegisterType((*CategoricalParameterRange)(nil), "flyte.plugins.sagemaker.CategoricalParameterRange") - proto.RegisterType((*ParameterRanges)(nil), "flyte.plugins.sagemaker.ParameterRanges") - proto.RegisterType((*AlgorithmSpecification)(nil), "flyte.plugins.sagemaker.AlgorithmSpecification") - proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition") - proto.RegisterType((*ResourceConfig)(nil), "flyte.plugins.sagemaker.ResourceConfig") - proto.RegisterType((*StoppingCondition)(nil), "flyte.plugins.sagemaker.StoppingCondition") - proto.RegisterType((*VpcConfig)(nil), "flyte.plugins.sagemaker.VpcConfig") - proto.RegisterType((*SagemakerTrainingJob)(nil), "flyte.plugins.sagemaker.SagemakerTrainingJob") - proto.RegisterType((*HPOJobObjective)(nil), "flyte.plugins.sagemaker.HPOJobObjective") - proto.RegisterType((*SagemakerHPOJob)(nil), "flyte.plugins.sagemaker.SagemakerHPOJob") + proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterScalingType", HyperparameterScalingType_name, HyperparameterScalingType_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobObjective_HPOJobObjectiveType", HPOJobObjective_HPOJobObjectiveType_name, HPOJobObjective_HPOJobObjectiveType_value) + proto.RegisterType((*ContinuousParameterRange)(nil), "flyteidl.plugins.sagemaker.ContinuousParameterRange") + proto.RegisterType((*IntegerParameterRange)(nil), "flyteidl.plugins.sagemaker.IntegerParameterRange") + proto.RegisterType((*CategoricalParameterRange)(nil), "flyteidl.plugins.sagemaker.CategoricalParameterRange") + proto.RegisterType((*ParameterRanges)(nil), "flyteidl.plugins.sagemaker.ParameterRanges") + proto.RegisterType((*AlgorithmSpecification)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification") + proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition") + proto.RegisterType((*ResourceConfig)(nil), "flyteidl.plugins.sagemaker.ResourceConfig") + proto.RegisterType((*StoppingCondition)(nil), "flyteidl.plugins.sagemaker.StoppingCondition") + proto.RegisterType((*VpcConfig)(nil), "flyteidl.plugins.sagemaker.VpcConfig") + proto.RegisterType((*SagemakerTrainingJob)(nil), "flyteidl.plugins.sagemaker.SagemakerTrainingJob") + proto.RegisterType((*HPOJobObjective)(nil), "flyteidl.plugins.sagemaker.HPOJobObjective") + proto.RegisterType((*SagemakerHPOJob)(nil), "flyteidl.plugins.sagemaker.SagemakerHPOJob") } func init() { @@ -808,66 +808,67 @@ func init() { } var fileDescriptor_21b5a21adfeb46ce = []byte{ - // 972 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x6e, 0xdb, 0x36, - 0x14, 0xae, 0x2c, 0x37, 0x8d, 0x8f, 0xbb, 0xc4, 0x61, 0xb3, 0x54, 0xc9, 0xc5, 0x60, 0x08, 0xc3, - 0x66, 0x04, 0xad, 0xbd, 0xba, 0x18, 0xb0, 0x8b, 0x5d, 0xc4, 0xf5, 0xbc, 0x44, 0x6d, 0x1d, 0x77, - 0x94, 0x97, 0x15, 0xb9, 0xa3, 0x65, 0x5a, 0xe5, 0x26, 0x91, 0x82, 0x44, 0x0d, 0xf6, 0x1e, 0x62, - 0x0f, 0xb2, 0x37, 0x18, 0xb0, 0x8b, 0x3d, 0xc1, 0x1e, 0x61, 0xcf, 0x32, 0x98, 0x92, 0x15, 0xff, - 0x88, 0x45, 0x37, 0x60, 0x77, 0x3a, 0xe7, 0xf0, 0xfb, 0x78, 0x0e, 0xcf, 0x77, 0x44, 0xc2, 0xf9, - 0x2c, 0x58, 0x48, 0xca, 0xa6, 0x41, 0x27, 0x0a, 0x52, 0x9f, 0xf1, 0xa4, 0x93, 0x10, 0x9f, 0x86, - 0xe4, 0x27, 0x1a, 0xdf, 0x7d, 0xb5, 0xa3, 0x58, 0x48, 0x81, 0x1e, 0xab, 0xb5, 0xed, 0x7c, 0x61, - 0xbb, 0x08, 0xdb, 0x7f, 0x18, 0x60, 0xf5, 0x05, 0x97, 0x8c, 0xa7, 0x22, 0x4d, 0xde, 0x90, 0x98, - 0x84, 0x54, 0xd2, 0x18, 0x13, 0xee, 0x53, 0x84, 0xa0, 0x7a, 0x4d, 0x42, 0x6a, 0x19, 0x4d, 0xa3, - 0x55, 0xc3, 0xea, 0x1b, 0x9d, 0xc1, 0xfe, 0x90, 0xcc, 0x6f, 0x48, 0x90, 0x52, 0xab, 0xd2, 0x34, - 0x5a, 0x06, 0x2e, 0x6c, 0x15, 0x63, 0x3c, 0x8b, 0x99, 0x79, 0x2c, 0xb7, 0xd1, 0x18, 0xea, 0xae, - 0x47, 0x02, 0xc6, 0xfd, 0xf1, 0x22, 0xa2, 0x56, 0xb5, 0x69, 0xb4, 0x0e, 0xba, 0xdd, 0xb6, 0x26, - 0xaf, 0xf6, 0xd5, 0x22, 0xa2, 0x71, 0xb4, 0x4a, 0x67, 0x0d, 0x89, 0xd7, 0x69, 0xec, 0xdf, 0x0d, - 0xf8, 0xd8, 0xe1, 0x92, 0xfa, 0x34, 0xfe, 0x0f, 0xb9, 0x57, 0xde, 0x93, 0x7b, 0xe5, 0x7f, 0xcf, - 0xfd, 0x12, 0x4e, 0xfb, 0x44, 0x52, 0x5f, 0xc4, 0xcc, 0x23, 0xc1, 0x07, 0xa4, 0x7f, 0x02, 0x7b, - 0x2a, 0x9f, 0xc4, 0xaa, 0x34, 0xcd, 0x56, 0x0d, 0xe7, 0x96, 0xfd, 0x77, 0x05, 0x0e, 0x37, 0xe1, - 0x09, 0x12, 0x70, 0xaa, 0x6b, 0x6b, 0x62, 0x19, 0x4d, 0xb3, 0x55, 0xef, 0x3e, 0xd3, 0x16, 0xa0, - 0x43, 0x62, 0x3d, 0x27, 0x9a, 0xc1, 0x49, 0x69, 0x23, 0xb2, 0x64, 0xeb, 0xdd, 0xb6, 0x76, 0xb7, - 0x52, 0x18, 0xd6, 0xb0, 0xa1, 0x18, 0xce, 0xb4, 0xa7, 0x96, 0x58, 0xa6, 0xda, 0x4b, 0xdf, 0x1a, - 0x2d, 0x14, 0xbf, 0x87, 0xd5, 0xfe, 0xb3, 0x02, 0x27, 0xbd, 0x60, 0x19, 0x94, 0xef, 0x42, 0x37, - 0xa2, 0x1e, 0x9b, 0x31, 0x8f, 0x48, 0x26, 0x38, 0xfa, 0x14, 0x3e, 0x1a, 0xc7, 0x84, 0x71, 0xc6, - 0x7d, 0x27, 0x24, 0xfe, 0xaa, 0x61, 0x9b, 0x4e, 0xf4, 0x04, 0x8e, 0x0a, 0x07, 0x8f, 0x52, 0x39, - 0x14, 0xd3, 0x4c, 0x81, 0x35, 0xbc, 0x1b, 0x58, 0x72, 0x16, 0xbb, 0x29, 0x11, 0x98, 0x19, 0xe7, - 0x86, 0x13, 0x71, 0x38, 0x1a, 0x52, 0x19, 0x33, 0xef, 0x1b, 0x3a, 0x63, 0x9c, 0x2d, 0xb3, 0x49, - 0xac, 0xaa, 0xaa, 0xff, 0x42, 0x5b, 0x7f, 0x79, 0x15, 0xed, 0x6d, 0x22, 0xbc, 0x4b, 0x7d, 0xf6, - 0x35, 0x34, 0xb6, 0x9d, 0xa5, 0x2a, 0x3d, 0x86, 0xfb, 0x98, 0xfa, 0x74, 0x9e, 0xd7, 0x97, 0x19, - 0xf6, 0x6f, 0x06, 0x1c, 0x60, 0x9a, 0x88, 0x34, 0xf6, 0x68, 0x5f, 0xf0, 0x19, 0xf3, 0x91, 0x0d, - 0x0f, 0x1d, 0x9e, 0x48, 0xc2, 0x3d, 0xaa, 0xc6, 0x2a, 0x23, 0xd9, 0xf0, 0x2d, 0x8f, 0x62, 0x65, - 0xf7, 0x45, 0xca, 0xa5, 0x22, 0x35, 0xf1, 0xa6, 0x13, 0x7d, 0x06, 0x07, 0x37, 0x22, 0x48, 0x43, - 0xea, 0xb2, 0x5f, 0xa8, 0xc3, 0x2f, 0x5f, 0xa8, 0x13, 0x33, 0xf1, 0x96, 0xf7, 0x6e, 0xdd, 0xab, - 0x30, 0x79, 0x45, 0x17, 0xce, 0x54, 0x8d, 0x72, 0x0d, 0x6f, 0x79, 0xed, 0x05, 0x1c, 0xb9, 0x52, - 0x44, 0x11, 0xe3, 0x7e, 0x5f, 0xf0, 0x69, 0x56, 0xeb, 0x17, 0xf0, 0x68, 0x48, 0xe6, 0x38, 0xe5, - 0x92, 0x85, 0xd4, 0xe1, 0x2e, 0xf5, 0x04, 0x9f, 0x26, 0x2a, 0x6b, 0x13, 0x97, 0x85, 0x50, 0x17, - 0x8e, 0x87, 0x64, 0xfe, 0x03, 0x61, 0x72, 0xbc, 0x01, 0xc9, 0x6a, 0x28, 0x8d, 0xd9, 0xdf, 0x41, - 0xed, 0x26, 0xf2, 0xf2, 0x13, 0x3a, 0x87, 0x86, 0x4b, 0xbd, 0x34, 0x66, 0x72, 0x71, 0x19, 0x8b, - 0x34, 0x72, 0xa6, 0xd9, 0xec, 0xd6, 0xf0, 0x8e, 0x1f, 0x59, 0xf0, 0xc0, 0x4d, 0x27, 0x9c, 0xca, - 0xd5, 0xdf, 0x61, 0x65, 0xda, 0x7f, 0x99, 0x70, 0xec, 0xae, 0x14, 0xb0, 0x52, 0xdb, 0x4b, 0x31, - 0x59, 0xfe, 0x4f, 0x30, 0xf5, 0x99, 0xe0, 0xf9, 0xd1, 0xe7, 0xd6, 0x92, 0x0a, 0x8b, 0x80, 0xf6, - 0x62, 0x9e, 0xf7, 0x70, 0x65, 0x22, 0x5f, 0x37, 0x07, 0xea, 0xc0, 0xeb, 0xdd, 0xce, 0xbf, 0x14, - 0x1e, 0xd6, 0x8d, 0xd5, 0x68, 0x5b, 0x2d, 0xaa, 0x53, 0xf5, 0xee, 0xe7, 0xda, 0x0d, 0x36, 0x97, - 0xe3, 0x6d, 0xb1, 0xbd, 0x2d, 0x69, 0xa9, 0x75, 0x5f, 0x71, 0x9e, 0x6b, 0x39, 0x77, 0x10, 0xb8, - 0x44, 0x17, 0x17, 0x6b, 0x1d, 0xb3, 0xf6, 0x14, 0xa3, 0xad, 0x65, 0x2c, 0x56, 0xe2, 0xb5, 0x36, - 0xb7, 0x01, 0x0d, 0x38, 0x99, 0x04, 0xd4, 0x8d, 0x84, 0x5c, 0x35, 0xc8, 0x7a, 0xd0, 0x34, 0x5a, - 0xfb, 0xb8, 0x24, 0x62, 0x27, 0x70, 0x78, 0xf5, 0x66, 0xf4, 0x52, 0x4c, 0x46, 0x93, 0x1f, 0xa9, - 0x27, 0xd9, 0xcf, 0x14, 0x5d, 0x40, 0xb5, 0x98, 0xa1, 0x83, 0xee, 0x13, 0xfd, 0xd5, 0xb4, 0x89, - 0x53, 0x97, 0x92, 0x42, 0xa2, 0x4f, 0x00, 0xb2, 0xf1, 0x56, 0x03, 0x9d, 0xf5, 0x7d, 0xcd, 0x63, - 0xff, 0x6a, 0xc2, 0x61, 0xa1, 0xa2, 0x8c, 0x66, 0x79, 0x67, 0xba, 0x32, 0x5e, 0xfe, 0x37, 0x17, - 0xb9, 0x84, 0x0a, 0x1b, 0x7d, 0x0b, 0xb5, 0x62, 0x1b, 0x45, 0x57, 0xef, 0xb6, 0x3e, 0x34, 0x2d, - 0x7c, 0x07, 0x45, 0x5f, 0xc1, 0xe3, 0x21, 0x99, 0x5f, 0xa7, 0xe1, 0x84, 0xc6, 0xa3, 0xd9, 0x9a, - 0x7c, 0x93, 0x7c, 0xc8, 0x75, 0xe1, 0x1c, 0xb9, 0xfc, 0x97, 0x07, 0x01, 0x0d, 0x36, 0x90, 0xd5, - 0x02, 0x59, 0x16, 0x46, 0x78, 0xe7, 0x3e, 0xcd, 0xa5, 0xa2, 0xaf, 0x60, 0x6b, 0x3d, 0xde, 0xb9, - 0x90, 0x47, 0x50, 0x5f, 0xdb, 0x23, 0x17, 0xca, 0x53, 0xbd, 0xf4, 0x4a, 0x06, 0x16, 0xaf, 0x33, - 0x9c, 0xdf, 0xc2, 0xa9, 0xf6, 0xa1, 0x81, 0xf6, 0xa1, 0xda, 0xfb, 0x7e, 0x3c, 0x6a, 0xdc, 0x43, - 0x00, 0x7b, 0xaf, 0x9d, 0xeb, 0x41, 0x0f, 0x37, 0x0c, 0x74, 0x08, 0xf5, 0xd7, 0xa3, 0xcb, 0x1e, - 0x76, 0xc6, 0x57, 0x43, 0xa7, 0xdf, 0xa8, 0xa0, 0x13, 0x40, 0x78, 0x70, 0x33, 0xc0, 0xee, 0x60, - 0xdd, 0x6f, 0x9e, 0x3f, 0x83, 0x47, 0x25, 0x4a, 0x41, 0x0f, 0x61, 0x7f, 0xe8, 0x5c, 0x3b, 0x43, - 0xe7, 0x76, 0xd0, 0xb8, 0xa7, 0xac, 0xde, 0xdb, 0xcc, 0x32, 0x5e, 0x7c, 0x79, 0xfb, 0xdc, 0x67, - 0xf2, 0x5d, 0x3a, 0x69, 0x7b, 0x22, 0xec, 0x04, 0x8b, 0x99, 0xec, 0x14, 0xef, 0x53, 0x9f, 0xf2, - 0x4e, 0x34, 0x79, 0xea, 0x8b, 0xce, 0xf6, 0x93, 0x75, 0xb2, 0xa7, 0xde, 0xa7, 0xcf, 0xff, 0x09, - 0x00, 0x00, 0xff, 0xff, 0x08, 0xb0, 0x21, 0x6b, 0xcd, 0x0a, 0x00, 0x00, + // 982 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xdd, 0x6e, 0xdb, 0x46, + 0x13, 0x0d, 0x45, 0xc5, 0xb1, 0x46, 0xf9, 0x6c, 0x79, 0xe3, 0xcf, 0xa5, 0x7d, 0x51, 0x08, 0x44, + 0x5b, 0x08, 0x6e, 0x23, 0x25, 0x4a, 0x03, 0xf4, 0xa2, 0x40, 0xa1, 0xa8, 0x82, 0xcd, 0x24, 0xb2, + 0xd3, 0xa5, 0xe3, 0x14, 0xee, 0xd5, 0x8a, 0x5a, 0x31, 0x9b, 0x92, 0xbb, 0x2c, 0xb9, 0x2c, 0xa4, + 0xbe, 0x48, 0xdf, 0xa1, 0x6f, 0x50, 0xa0, 0x40, 0x2f, 0xfa, 0x16, 0x7d, 0x81, 0xbe, 0x46, 0xa1, + 0xe5, 0x8f, 0xf5, 0x43, 0x12, 0x4d, 0x2f, 0x7a, 0xc7, 0x99, 0xd9, 0x73, 0x76, 0x76, 0xe6, 0xcc, + 0x2e, 0xe1, 0x74, 0xe6, 0x2d, 0x24, 0x65, 0x53, 0xaf, 0x17, 0x78, 0xb1, 0xcb, 0x78, 0xd4, 0x8b, + 0x88, 0x4b, 0x7d, 0xf2, 0x3d, 0x0d, 0x6f, 0xbf, 0xba, 0x41, 0x28, 0xa4, 0x40, 0x27, 0xd9, 0xda, + 0x6e, 0xba, 0xb6, 0x9b, 0xaf, 0x30, 0x7f, 0xd7, 0xc0, 0x18, 0x0a, 0x2e, 0x19, 0x8f, 0x45, 0x1c, + 0xbd, 0x22, 0x21, 0xf1, 0xa9, 0xa4, 0x21, 0x26, 0xdc, 0xa5, 0x08, 0x41, 0xfd, 0x82, 0xf8, 0xd4, + 0xd0, 0xda, 0x5a, 0xa7, 0x81, 0xd5, 0x37, 0x3a, 0x81, 0xdd, 0x31, 0x99, 0x5f, 0x13, 0x2f, 0xa6, + 0x46, 0xad, 0xad, 0x75, 0x34, 0x9c, 0xdb, 0x2a, 0xc6, 0x78, 0x12, 0xd3, 0xd3, 0x58, 0x6a, 0xa3, + 0x37, 0xd0, 0xb4, 0x1d, 0xe2, 0x31, 0xee, 0x5e, 0x2d, 0x02, 0x6a, 0xd4, 0xdb, 0x5a, 0x67, 0xaf, + 0xff, 0xb4, 0x5b, 0x9e, 0x5a, 0xf7, 0x7c, 0x11, 0xd0, 0x30, 0xc8, 0x32, 0x5a, 0x01, 0xe3, 0x55, + 0x26, 0xf3, 0x37, 0x0d, 0xfe, 0x6f, 0x71, 0x49, 0x5d, 0x1a, 0xfe, 0x8b, 0xf4, 0x6b, 0x15, 0xe9, + 0xd7, 0xfe, 0x8b, 0xf4, 0xcf, 0xe0, 0x78, 0x48, 0x24, 0x75, 0x45, 0xc8, 0x1c, 0xe2, 0xfd, 0x83, + 0x13, 0x1c, 0xc1, 0x8e, 0x4a, 0x29, 0x32, 0x6a, 0x6d, 0xbd, 0xd3, 0xc0, 0xa9, 0x65, 0xfe, 0x55, + 0x83, 0xfd, 0x75, 0x78, 0x84, 0x42, 0x38, 0x2e, 0x6b, 0x6e, 0x64, 0x68, 0x6d, 0xbd, 0xd3, 0xec, + 0x7f, 0x5e, 0x75, 0x86, 0x32, 0x30, 0x2e, 0xa7, 0x45, 0x0c, 0x8e, 0x0a, 0xdb, 0x91, 0xe4, 0xdb, + 0xec, 0x3f, 0xae, 0xda, 0xb0, 0x10, 0x89, 0x4b, 0x08, 0x51, 0x0c, 0x27, 0xa5, 0xb5, 0x8b, 0x0c, + 0x5d, 0x6d, 0x57, 0xd9, 0xa3, 0x52, 0x34, 0xae, 0x20, 0x36, 0xff, 0xa8, 0xc1, 0xd1, 0xc0, 0x5b, + 0x06, 0xe5, 0x5b, 0xdf, 0x0e, 0xa8, 0xc3, 0x66, 0xcc, 0x21, 0x92, 0x09, 0x8e, 0x3e, 0x82, 0xff, + 0x5d, 0x85, 0x84, 0x71, 0xc6, 0x5d, 0xcb, 0x27, 0x6e, 0xd6, 0xb9, 0x75, 0x27, 0xfa, 0x0c, 0x0e, + 0x72, 0x07, 0x0f, 0x62, 0x39, 0x16, 0xd3, 0x44, 0x8d, 0x0d, 0xbc, 0x1d, 0x58, 0x72, 0xe6, 0xbb, + 0x29, 0x35, 0xe8, 0x09, 0xe7, 0x9a, 0x13, 0xfd, 0x00, 0x07, 0x63, 0x2a, 0x43, 0xe6, 0x7c, 0x4d, + 0x67, 0x8c, 0xb3, 0x65, 0x36, 0x91, 0x51, 0x57, 0x25, 0x18, 0x56, 0x95, 0xa0, 0xf8, 0x20, 0xdd, + 0x4d, 0x2e, 0xbc, 0xcd, 0x7e, 0xf2, 0x25, 0xb4, 0x36, 0x9d, 0x85, 0x8a, 0x3d, 0x84, 0xbb, 0x98, + 0xba, 0x74, 0x9e, 0x1e, 0x31, 0x31, 0xcc, 0x5f, 0x34, 0xd8, 0xc3, 0x34, 0x12, 0x71, 0xe8, 0xd0, + 0xa1, 0xe0, 0x33, 0xe6, 0x22, 0x13, 0xee, 0x5b, 0x3c, 0x92, 0x84, 0x3b, 0x54, 0x4d, 0x59, 0x42, + 0xb2, 0xe6, 0x5b, 0x56, 0x23, 0xb3, 0x87, 0x22, 0xe6, 0x52, 0x91, 0xea, 0x78, 0xdd, 0x89, 0x3e, + 0x81, 0xbd, 0x6b, 0xe1, 0xc5, 0x3e, 0xb5, 0xd9, 0x4f, 0xd4, 0xe2, 0x67, 0xcf, 0x54, 0xd1, 0x74, + 0xbc, 0xe1, 0xbd, 0x5d, 0xf7, 0xc2, 0x8f, 0x5e, 0xd0, 0x85, 0x35, 0x55, 0x93, 0xdd, 0xc0, 0x1b, + 0x5e, 0x73, 0x01, 0x07, 0xb6, 0x14, 0x41, 0xc0, 0xb8, 0x3b, 0x14, 0x7c, 0x9a, 0x9c, 0xf5, 0x11, + 0x3c, 0x18, 0x93, 0x39, 0x8e, 0xb9, 0x64, 0x3e, 0xb5, 0xb8, 0x4d, 0x1d, 0xc1, 0xa7, 0x91, 0xca, + 0x5a, 0xc7, 0x45, 0x21, 0xd4, 0x87, 0xc3, 0x31, 0x99, 0xbf, 0x21, 0x4c, 0x5e, 0xad, 0x41, 0x92, + 0x33, 0x14, 0xc6, 0xcc, 0x6f, 0xa0, 0x71, 0x1d, 0x38, 0x69, 0x85, 0x4e, 0xa1, 0x65, 0x53, 0x27, + 0x0e, 0x99, 0x5c, 0x9c, 0x85, 0x22, 0x0e, 0xac, 0x69, 0x32, 0xc7, 0x0d, 0xbc, 0xe5, 0x47, 0x06, + 0xdc, 0xb3, 0xe3, 0x09, 0xa7, 0x32, 0xbb, 0x29, 0x32, 0xd3, 0xfc, 0x53, 0x87, 0x43, 0x3b, 0x53, + 0x40, 0x26, 0xb8, 0xe7, 0x62, 0xb2, 0xbc, 0x5b, 0x30, 0x75, 0x99, 0xe0, 0x69, 0xe9, 0x53, 0x6b, + 0x49, 0x85, 0x85, 0x47, 0x07, 0x21, 0x4f, 0x7b, 0x98, 0x99, 0xe8, 0x5d, 0xd9, 0x28, 0xa8, 0x82, + 0x37, 0xfb, 0xfd, 0xf7, 0xd7, 0x1e, 0x2e, 0x1b, 0x2e, 0xbc, 0x29, 0x18, 0xd5, 0xac, 0x66, 0xff, + 0xb4, 0x6a, 0x8f, 0x75, 0x04, 0xde, 0x94, 0xdc, 0x77, 0x05, 0x8d, 0x35, 0xee, 0x2a, 0xda, 0x87, + 0x55, 0xb4, 0x5b, 0x20, 0x5c, 0x20, 0x90, 0xe1, 0x4a, 0xeb, 0x8c, 0x1d, 0x45, 0xfa, 0x71, 0x15, + 0x69, 0xbe, 0x18, 0xaf, 0xb4, 0xbc, 0x0b, 0x68, 0xc4, 0xc9, 0xc4, 0xa3, 0x76, 0x20, 0x64, 0xd6, + 0x2c, 0xe3, 0x5e, 0x5b, 0xeb, 0xec, 0xe2, 0x82, 0x88, 0xf9, 0xab, 0x06, 0xfb, 0xe7, 0xaf, 0x2e, + 0x9f, 0x8b, 0xc9, 0xe5, 0xe4, 0x1d, 0x75, 0x24, 0xfb, 0x91, 0x22, 0x1b, 0xea, 0xf9, 0x40, 0xed, + 0xf5, 0xbf, 0xaa, 0x7c, 0xb6, 0xd6, 0xa1, 0x9b, 0xb6, 0x7a, 0xc0, 0x14, 0x19, 0xfa, 0x10, 0x20, + 0x19, 0x7f, 0x35, 0xf0, 0x89, 0x2e, 0x56, 0x3c, 0xe6, 0x63, 0x78, 0x50, 0x00, 0x46, 0xf7, 0x61, + 0x77, 0x6c, 0x5d, 0x58, 0x63, 0xeb, 0x66, 0xd4, 0xba, 0xa3, 0xac, 0xc1, 0xb7, 0x89, 0xa5, 0x99, + 0x3f, 0xeb, 0xb0, 0x9f, 0x0b, 0x33, 0x01, 0x2f, 0x5f, 0x65, 0x5b, 0x86, 0xcb, 0xdb, 0x78, 0x91, + 0xaa, 0x32, 0xb7, 0x91, 0x05, 0x8d, 0x9c, 0x5c, 0x65, 0xd0, 0xec, 0x7f, 0xfa, 0x1e, 0x87, 0xc3, + 0xb7, 0x68, 0xf4, 0x05, 0x7c, 0x30, 0x26, 0xf3, 0x8b, 0xd8, 0x9f, 0xd0, 0xf0, 0x72, 0xb6, 0x32, + 0x14, 0x51, 0x7a, 0x75, 0x94, 0x85, 0x53, 0xe4, 0xf2, 0x91, 0xf0, 0x3c, 0xea, 0xad, 0x21, 0xeb, + 0x39, 0xb2, 0x28, 0x8c, 0x5e, 0x6f, 0xbd, 0xd8, 0xa9, 0xf4, 0x2a, 0x0f, 0xb1, 0x01, 0xc1, 0x5b, + 0xaf, 0x3e, 0x86, 0xe6, 0xca, 0x36, 0xa9, 0xf0, 0x1e, 0x55, 0xaa, 0xb9, 0xe0, 0x32, 0xc0, 0xab, + 0x24, 0xa7, 0x37, 0x70, 0x5c, 0xfa, 0x43, 0x83, 0x76, 0xa1, 0x3e, 0x78, 0x7d, 0x75, 0xd9, 0xba, + 0x83, 0x00, 0x76, 0x5e, 0x5a, 0x17, 0xa3, 0x01, 0x6e, 0x69, 0x68, 0x1f, 0x9a, 0x2f, 0x2f, 0xcf, + 0x06, 0xd8, 0xba, 0x3a, 0x1f, 0x5b, 0xc3, 0x56, 0x0d, 0x1d, 0x01, 0xc2, 0xa3, 0xeb, 0x11, 0xb6, + 0x47, 0xab, 0x7e, 0xfd, 0xd9, 0xd3, 0x9b, 0x27, 0x2e, 0x93, 0x6f, 0xe3, 0x49, 0xd7, 0x11, 0x7e, + 0xcf, 0x5b, 0xcc, 0x64, 0x2f, 0xff, 0xbb, 0x75, 0x29, 0xef, 0x05, 0x93, 0x87, 0xae, 0xe8, 0x6d, + 0xfe, 0xf0, 0x4e, 0x76, 0xd4, 0xdf, 0xed, 0x93, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x36, 0xb5, + 0x4d, 0x4a, 0x0b, 0x0b, 0x00, 0x00, } diff --git a/gen/pb-java/flyte/plugins/sagemaker/Sagemaker.java b/gen/pb-java/flyteidl/plugins/sagemaker/Sagemaker.java similarity index 71% rename from gen/pb-java/flyte/plugins/sagemaker/Sagemaker.java rename to gen/pb-java/flyteidl/plugins/sagemaker/Sagemaker.java index 61ef112b6..b72d494cd 100644 --- a/gen/pb-java/flyte/plugins/sagemaker/Sagemaker.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Sagemaker.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: flyteidl/plugins/sagemaker/sagemaker.proto -package flyte.plugins.sagemaker; +package flyteidl.plugins.sagemaker; public final class Sagemaker { private Sagemaker() {} @@ -15,7 +15,7 @@ public static void registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } /** - * Protobuf enum {@code flyte.plugins.sagemaker.HyperparameterScalingType} + * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterScalingType} */ public enum HyperparameterScalingType implements com.google.protobuf.ProtocolMessageEnum { @@ -104,7 +104,7 @@ public HyperparameterScalingType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.getDescriptor().getEnumTypes().get(0); + return flyteidl.plugins.sagemaker.Sagemaker.getDescriptor().getEnumTypes().get(0); } private static final HyperparameterScalingType[] VALUES = values(); @@ -127,109 +127,11 @@ private HyperparameterScalingType(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:flyte.plugins.sagemaker.HyperparameterScalingType) - } - - /** - * Protobuf enum {@code flyte.plugins.sagemaker.HPOJobObjectiveType} - */ - public enum HPOJobObjectiveType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * MINIMIZE = 0; - */ - MINIMIZE(0), - /** - * MAXIMIZE = 1; - */ - MAXIMIZE(1), - UNRECOGNIZED(-1), - ; - - /** - * MINIMIZE = 0; - */ - public static final int MINIMIZE_VALUE = 0; - /** - * MAXIMIZE = 1; - */ - public static final int MAXIMIZE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HPOJobObjectiveType valueOf(int value) { - return forNumber(value); - } - - public static HPOJobObjectiveType forNumber(int value) { - switch (value) { - case 0: return MINIMIZE; - case 1: return MAXIMIZE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HPOJobObjectiveType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HPOJobObjectiveType findValueByNumber(int number) { - return HPOJobObjectiveType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyte.plugins.sagemaker.Sagemaker.getDescriptor().getEnumTypes().get(1); - } - - private static final HPOJobObjectiveType[] VALUES = values(); - - public static HPOJobObjectiveType 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 HPOJobObjectiveType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyte.plugins.sagemaker.HPOJobObjectiveType) + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) } public interface ContinuousParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ContinuousParameterRange) com.google.protobuf.MessageOrBuilder { /** @@ -253,20 +155,20 @@ public interface ContinuousParameterRangeOrBuilder extends double getMinValue(); /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ int getScalingTypeValue(); /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType(); + flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType(); } /** - * Protobuf type {@code flyte.plugins.sagemaker.ContinuousParameterRange} + * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} */ public static final class ContinuousParameterRange extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) ContinuousParameterRangeOrBuilder { private static final long serialVersionUID = 0L; // Use ContinuousParameterRange.newBuilder() to construct. @@ -345,15 +247,15 @@ private ContinuousParameterRange( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.class, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -411,18 +313,18 @@ public double getMinValue() { public static final int SCALINGTYPE_FIELD_NUMBER = 4; private int scalingType_; /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - public flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { + public flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") - flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -448,7 +350,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (minValue_ != 0D) { output.writeDouble(3, minValue_); } - if (scalingType_ != flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { output.writeEnum(4, scalingType_); } unknownFields.writeTo(output); @@ -471,7 +373,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, minValue_); } - if (scalingType_ != flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, scalingType_); } @@ -485,10 +387,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange)) { return super.equals(obj); } - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange other = (flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange) obj; + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange) obj; if (!getName() .equals(other.getName())) return false; @@ -525,69 +427,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange 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 flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange 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 flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -600,7 +502,7 @@ public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFr public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -616,26 +518,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.sagemaker.ContinuousParameterRange} + * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.ContinuousParameterRange) - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.class, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder.class); } - // Construct using flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.newBuilder() + // Construct using flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -667,17 +569,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange getDefaultInstanceForType() { - return flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance(); + public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange build() { - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange result = buildPartial(); + public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange build() { + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -685,8 +587,8 @@ public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange build() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange buildPartial() { - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange result = new flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange(this); + public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange buildPartial() { + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange(this); result.name_ = name_; result.maxValue_ = maxValue_; result.minValue_ = minValue_; @@ -729,16 +631,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange) { - return mergeFrom((flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange)other); + if (other instanceof flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange other) { - if (other == flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange other) { + if (other == flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -767,11 +669,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange parsedMessage = null; + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -904,13 +806,13 @@ public Builder clearMinValue() { private int scalingType_ = 0; /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public Builder setScalingTypeValue(int value) { scalingType_ = value; @@ -918,17 +820,17 @@ public Builder setScalingTypeValue(int value) { return this; } /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - public flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { + public flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") - flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; } /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - public Builder setScalingType(flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType value) { + public Builder setScalingType(flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType value) { if (value == null) { throw new NullPointerException(); } @@ -938,7 +840,7 @@ public Builder setScalingType(flyte.plugins.sagemaker.Sagemaker.HyperparameterSc return this; } /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public Builder clearScalingType() { @@ -959,16 +861,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.ContinuousParameterRange) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) } - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ContinuousParameterRange) - private static final flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) + private static final flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange(); } - public static flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange getDefaultInstance() { + public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -993,14 +895,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IntegerParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.IntegerParameterRange) com.google.protobuf.MessageOrBuilder { /** @@ -1024,20 +926,20 @@ public interface IntegerParameterRangeOrBuilder extends float getMinValue(); /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ int getScalingTypeValue(); /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType(); + flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType(); } /** - * Protobuf type {@code flyte.plugins.sagemaker.IntegerParameterRange} + * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} */ public static final class IntegerParameterRange extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) IntegerParameterRangeOrBuilder { private static final long serialVersionUID = 0L; // Use IntegerParameterRange.newBuilder() to construct. @@ -1116,15 +1018,15 @@ private IntegerParameterRange( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_IntegerParameterRange_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.class, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.class, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -1182,18 +1084,18 @@ public float getMinValue() { public static final int SCALINGTYPE_FIELD_NUMBER = 4; private int scalingType_; /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - public flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { + public flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") - flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -1219,7 +1121,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (minValue_ != 0F) { output.writeFloat(3, minValue_); } - if (scalingType_ != flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { output.writeEnum(4, scalingType_); } unknownFields.writeTo(output); @@ -1242,7 +1144,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeFloatSize(3, minValue_); } - if (scalingType_ != flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, scalingType_); } @@ -1256,10 +1158,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange)) { return super.equals(obj); } - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange other = (flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange) obj; + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange other = (flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange) obj; if (!getName() .equals(other.getName())) return false; @@ -1296,69 +1198,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange 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 flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange 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 flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1371,7 +1273,7 @@ public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1387,26 +1289,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.sagemaker.IntegerParameterRange} + * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.IntegerParameterRange) - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_IntegerParameterRange_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.class, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.class, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder.class); } - // Construct using flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.newBuilder() + // Construct using flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1438,17 +1340,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_IntegerParameterRange_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange getDefaultInstanceForType() { - return flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance(); + public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange build() { - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange result = buildPartial(); + public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange build() { + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1456,8 +1358,8 @@ public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange build() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange buildPartial() { - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange result = new flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange(this); + public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange buildPartial() { + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange result = new flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange(this); result.name_ = name_; result.maxValue_ = maxValue_; result.minValue_ = minValue_; @@ -1500,16 +1402,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange) { - return mergeFrom((flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange)other); + if (other instanceof flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange other) { - if (other == flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange other) { + if (other == flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1538,11 +1440,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange parsedMessage = null; + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1675,13 +1577,13 @@ public Builder clearMinValue() { private int scalingType_ = 0; /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public Builder setScalingTypeValue(int value) { scalingType_ = value; @@ -1689,17 +1591,17 @@ public Builder setScalingTypeValue(int value) { return this; } /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - public flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { + public flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") - flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; } /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ - public Builder setScalingType(flyte.plugins.sagemaker.Sagemaker.HyperparameterScalingType value) { + public Builder setScalingType(flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType value) { if (value == null) { throw new NullPointerException(); } @@ -1709,7 +1611,7 @@ public Builder setScalingType(flyte.plugins.sagemaker.Sagemaker.HyperparameterSc return this; } /** - * .flyte.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; */ public Builder clearScalingType() { @@ -1730,16 +1632,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.IntegerParameterRange) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) } - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.IntegerParameterRange) - private static final flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) + private static final flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange(); } - public static flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange getDefaultInstance() { + public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1764,14 +1666,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CategoricalParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.CategoricalParameterRange) com.google.protobuf.MessageOrBuilder { /** @@ -1804,11 +1706,11 @@ public interface CategoricalParameterRangeOrBuilder extends getValuesBytes(int index); } /** - * Protobuf type {@code flyte.plugins.sagemaker.CategoricalParameterRange} + * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} */ public static final class CategoricalParameterRange extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) CategoricalParameterRangeOrBuilder { private static final long serialVersionUID = 0L; // Use CategoricalParameterRange.newBuilder() to construct. @@ -1883,15 +1785,15 @@ private CategoricalParameterRange( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.class, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder.class); } private int bitField0_; @@ -2008,10 +1910,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange)) { return super.equals(obj); } - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange other = (flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange) obj; + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange) obj; if (!getName() .equals(other.getName())) return false; @@ -2039,69 +1941,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange 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 flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange 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 flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2114,7 +2016,7 @@ public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseF public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2130,26 +2032,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.sagemaker.CategoricalParameterRange} + * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.CategoricalParameterRange) - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.class, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder.class); } - // Construct using flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.newBuilder() + // Construct using flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2177,17 +2079,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange getDefaultInstanceForType() { - return flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance(); + public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange build() { - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange result = buildPartial(); + public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange build() { + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2195,8 +2097,8 @@ public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange build() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange buildPartial() { - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange result = new flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange(this); + public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange buildPartial() { + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; @@ -2244,16 +2146,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange) { - return mergeFrom((flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange)other); + if (other instanceof flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange other) { - if (other == flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange other) { + if (other == flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -2283,11 +2185,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange parsedMessage = null; + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2473,16 +2375,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.CategoricalParameterRange) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) } - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.CategoricalParameterRange) - private static final flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) + private static final flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange(); } - public static flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange getDefaultInstance() { + public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2507,94 +2409,94 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ParameterRangesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRanges) com.google.protobuf.MessageOrBuilder { /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - java.util.List + java.util.List getContinuousParameterRangesList(); /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index); + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index); /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ int getContinuousParameterRangesCount(); /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - java.util.List + java.util.List getContinuousParameterRangesOrBuilderList(); /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( int index); /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - java.util.List + java.util.List getIntegerParameterRangesList(); /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index); + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index); /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ int getIntegerParameterRangesCount(); /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - java.util.List + java.util.List getIntegerParameterRangesOrBuilderList(); /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( int index); /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - java.util.List + java.util.List getCategoricalParameterRangesList(); /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index); + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index); /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ int getCategoricalParameterRangesCount(); /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - java.util.List + java.util.List getCategoricalParameterRangesOrBuilderList(); /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( int index); } /** - * Protobuf type {@code flyte.plugins.sagemaker.ParameterRanges} + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} */ public static final class ParameterRanges extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRanges) ParameterRangesOrBuilder { private static final long serialVersionUID = 0L; // Use ParameterRanges.newBuilder() to construct. @@ -2633,29 +2535,29 @@ private ParameterRanges( break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { - continuousParameterRanges_ = new java.util.ArrayList(); + continuousParameterRanges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } continuousParameterRanges_.add( - input.readMessage(flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.parser(), extensionRegistry)); + input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { - integerParameterRanges_ = new java.util.ArrayList(); + integerParameterRanges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } integerParameterRanges_.add( - input.readMessage(flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.parser(), extensionRegistry)); + input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { - categoricalParameterRanges_ = new java.util.ArrayList(); + categoricalParameterRanges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } categoricalParameterRanges_.add( - input.readMessage(flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.parser(), extensionRegistry)); + input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.parser(), extensionRegistry)); break; } default: { @@ -2688,118 +2590,118 @@ private ParameterRanges( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ParameterRanges_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ParameterRanges_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.ParameterRanges.class, flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.class, flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder.class); } public static final int CONTINUOUSPARAMETERRANGES_FIELD_NUMBER = 1; - private java.util.List continuousParameterRanges_; + private java.util.List continuousParameterRanges_; /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public java.util.List getContinuousParameterRangesList() { + public java.util.List getContinuousParameterRangesList() { return continuousParameterRanges_; } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public java.util.List + public java.util.List getContinuousParameterRangesOrBuilderList() { return continuousParameterRanges_; } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public int getContinuousParameterRangesCount() { return continuousParameterRanges_.size(); } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index) { + public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index) { return continuousParameterRanges_.get(index); } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( int index) { return continuousParameterRanges_.get(index); } public static final int INTEGERPARAMETERRANGES_FIELD_NUMBER = 2; - private java.util.List integerParameterRanges_; + private java.util.List integerParameterRanges_; /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public java.util.List getIntegerParameterRangesList() { + public java.util.List getIntegerParameterRangesList() { return integerParameterRanges_; } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public java.util.List + public java.util.List getIntegerParameterRangesOrBuilderList() { return integerParameterRanges_; } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public int getIntegerParameterRangesCount() { return integerParameterRanges_.size(); } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index) { + public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index) { return integerParameterRanges_.get(index); } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( int index) { return integerParameterRanges_.get(index); } public static final int CATEGORICALPARAMETERRANGES_FIELD_NUMBER = 3; - private java.util.List categoricalParameterRanges_; + private java.util.List categoricalParameterRanges_; /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public java.util.List getCategoricalParameterRangesList() { + public java.util.List getCategoricalParameterRangesList() { return categoricalParameterRanges_; } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public java.util.List + public java.util.List getCategoricalParameterRangesOrBuilderList() { return categoricalParameterRanges_; } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public int getCategoricalParameterRangesCount() { return categoricalParameterRanges_.size(); } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index) { + public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index) { return categoricalParameterRanges_.get(index); } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( int index) { return categoricalParameterRanges_.get(index); } @@ -2858,10 +2760,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.ParameterRanges)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges)) { return super.equals(obj); } - flyte.plugins.sagemaker.Sagemaker.ParameterRanges other = (flyte.plugins.sagemaker.Sagemaker.ParameterRanges) obj; + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges other = (flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges) obj; if (!getContinuousParameterRangesList() .equals(other.getContinuousParameterRangesList())) return false; @@ -2897,69 +2799,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges 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 flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges 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 flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2972,7 +2874,7 @@ public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.ParameterRanges prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2988,26 +2890,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.sagemaker.ParameterRanges} + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.ParameterRanges) - flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRanges) + flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ParameterRanges_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ParameterRanges_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.ParameterRanges.class, flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.class, flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder.class); } - // Construct using flyte.plugins.sagemaker.Sagemaker.ParameterRanges.newBuilder() + // Construct using flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3052,17 +2954,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ParameterRanges_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.ParameterRanges getDefaultInstanceForType() { - return flyte.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance(); + public flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.ParameterRanges build() { - flyte.plugins.sagemaker.Sagemaker.ParameterRanges result = buildPartial(); + public flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges build() { + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3070,8 +2972,8 @@ public flyte.plugins.sagemaker.Sagemaker.ParameterRanges build() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.ParameterRanges buildPartial() { - flyte.plugins.sagemaker.Sagemaker.ParameterRanges result = new flyte.plugins.sagemaker.Sagemaker.ParameterRanges(this); + public flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges buildPartial() { + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges result = new flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges(this); int from_bitField0_ = bitField0_; if (continuousParameterRangesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -3138,16 +3040,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.sagemaker.Sagemaker.ParameterRanges) { - return mergeFrom((flyte.plugins.sagemaker.Sagemaker.ParameterRanges)other); + if (other instanceof flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges) { + return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.ParameterRanges other) { - if (other == flyte.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges other) { + if (other == flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance()) return this; if (continuousParameterRangesBuilder_ == null) { if (!other.continuousParameterRanges_.isEmpty()) { if (continuousParameterRanges_.isEmpty()) { @@ -3241,11 +3143,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.sagemaker.Sagemaker.ParameterRanges parsedMessage = null; + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.sagemaker.Sagemaker.ParameterRanges) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3256,22 +3158,22 @@ public Builder mergeFrom( } private int bitField0_; - private java.util.List continuousParameterRanges_ = + private java.util.List continuousParameterRanges_ = java.util.Collections.emptyList(); private void ensureContinuousParameterRangesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - continuousParameterRanges_ = new java.util.ArrayList(continuousParameterRanges_); + continuousParameterRanges_ = new java.util.ArrayList(continuousParameterRanges_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder> continuousParameterRangesBuilder_; + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder> continuousParameterRangesBuilder_; /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public java.util.List getContinuousParameterRangesList() { + public java.util.List getContinuousParameterRangesList() { if (continuousParameterRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(continuousParameterRanges_); } else { @@ -3279,7 +3181,7 @@ public java.util.Listrepeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public int getContinuousParameterRangesCount() { if (continuousParameterRangesBuilder_ == null) { @@ -3289,9 +3191,9 @@ public int getContinuousParameterRangesCount() { } } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index) { + public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index) { if (continuousParameterRangesBuilder_ == null) { return continuousParameterRanges_.get(index); } else { @@ -3299,10 +3201,10 @@ public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange getContinuousP } } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder setContinuousParameterRanges( - int index, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange value) { + int index, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange value) { if (continuousParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3316,10 +3218,10 @@ public Builder setContinuousParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder setContinuousParameterRanges( - int index, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder builderForValue) { + int index, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder builderForValue) { if (continuousParameterRangesBuilder_ == null) { ensureContinuousParameterRangesIsMutable(); continuousParameterRanges_.set(index, builderForValue.build()); @@ -3330,9 +3232,9 @@ public Builder setContinuousParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public Builder addContinuousParameterRanges(flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange value) { + public Builder addContinuousParameterRanges(flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange value) { if (continuousParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3346,10 +3248,10 @@ public Builder addContinuousParameterRanges(flyte.plugins.sagemaker.Sagemaker.Co return this; } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder addContinuousParameterRanges( - int index, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange value) { + int index, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange value) { if (continuousParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3363,10 +3265,10 @@ public Builder addContinuousParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder addContinuousParameterRanges( - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder builderForValue) { + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder builderForValue) { if (continuousParameterRangesBuilder_ == null) { ensureContinuousParameterRangesIsMutable(); continuousParameterRanges_.add(builderForValue.build()); @@ -3377,10 +3279,10 @@ public Builder addContinuousParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder addContinuousParameterRanges( - int index, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder builderForValue) { + int index, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder builderForValue) { if (continuousParameterRangesBuilder_ == null) { ensureContinuousParameterRangesIsMutable(); continuousParameterRanges_.add(index, builderForValue.build()); @@ -3391,10 +3293,10 @@ public Builder addContinuousParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder addAllContinuousParameterRanges( - java.lang.Iterable values) { + java.lang.Iterable values) { if (continuousParameterRangesBuilder_ == null) { ensureContinuousParameterRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -3406,7 +3308,7 @@ public Builder addAllContinuousParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder clearContinuousParameterRanges() { if (continuousParameterRangesBuilder_ == null) { @@ -3419,7 +3321,7 @@ public Builder clearContinuousParameterRanges() { return this; } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ public Builder removeContinuousParameterRanges(int index) { if (continuousParameterRangesBuilder_ == null) { @@ -3432,16 +3334,16 @@ public Builder removeContinuousParameterRanges(int index) { return this; } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder getContinuousParameterRangesBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder getContinuousParameterRangesBuilder( int index) { return getContinuousParameterRangesFieldBuilder().getBuilder(index); } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( int index) { if (continuousParameterRangesBuilder_ == null) { return continuousParameterRanges_.get(index); } else { @@ -3449,9 +3351,9 @@ public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getCo } } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public java.util.List + public java.util.List getContinuousParameterRangesOrBuilderList() { if (continuousParameterRangesBuilder_ != null) { return continuousParameterRangesBuilder_.getMessageOrBuilderList(); @@ -3460,33 +3362,33 @@ public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getCo } } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder addContinuousParameterRangesBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder addContinuousParameterRangesBuilder() { return getContinuousParameterRangesFieldBuilder().addBuilder( - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance()); + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance()); } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder addContinuousParameterRangesBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder addContinuousParameterRangesBuilder( int index) { return getContinuousParameterRangesFieldBuilder().addBuilder( - index, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance()); + index, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance()); } /** - * repeated .flyte.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; + * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; */ - public java.util.List + public java.util.List getContinuousParameterRangesBuilderList() { return getContinuousParameterRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder> + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder> getContinuousParameterRangesFieldBuilder() { if (continuousParameterRangesBuilder_ == null) { continuousParameterRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder>( + flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder>( continuousParameterRanges_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3496,22 +3398,22 @@ public flyte.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder addCon return continuousParameterRangesBuilder_; } - private java.util.List integerParameterRanges_ = + private java.util.List integerParameterRanges_ = java.util.Collections.emptyList(); private void ensureIntegerParameterRangesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - integerParameterRanges_ = new java.util.ArrayList(integerParameterRanges_); + integerParameterRanges_ = new java.util.ArrayList(integerParameterRanges_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder> integerParameterRangesBuilder_; + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder> integerParameterRangesBuilder_; /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public java.util.List getIntegerParameterRangesList() { + public java.util.List getIntegerParameterRangesList() { if (integerParameterRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(integerParameterRanges_); } else { @@ -3519,7 +3421,7 @@ public java.util.List g } } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public int getIntegerParameterRangesCount() { if (integerParameterRangesBuilder_ == null) { @@ -3529,9 +3431,9 @@ public int getIntegerParameterRangesCount() { } } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index) { + public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index) { if (integerParameterRangesBuilder_ == null) { return integerParameterRanges_.get(index); } else { @@ -3539,10 +3441,10 @@ public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange getIntegerParamet } } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder setIntegerParameterRanges( - int index, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange value) { + int index, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange value) { if (integerParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3556,10 +3458,10 @@ public Builder setIntegerParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder setIntegerParameterRanges( - int index, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder builderForValue) { + int index, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder builderForValue) { if (integerParameterRangesBuilder_ == null) { ensureIntegerParameterRangesIsMutable(); integerParameterRanges_.set(index, builderForValue.build()); @@ -3570,9 +3472,9 @@ public Builder setIntegerParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public Builder addIntegerParameterRanges(flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange value) { + public Builder addIntegerParameterRanges(flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange value) { if (integerParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3586,10 +3488,10 @@ public Builder addIntegerParameterRanges(flyte.plugins.sagemaker.Sagemaker.Integ return this; } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder addIntegerParameterRanges( - int index, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange value) { + int index, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange value) { if (integerParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3603,10 +3505,10 @@ public Builder addIntegerParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder addIntegerParameterRanges( - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder builderForValue) { + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder builderForValue) { if (integerParameterRangesBuilder_ == null) { ensureIntegerParameterRangesIsMutable(); integerParameterRanges_.add(builderForValue.build()); @@ -3617,10 +3519,10 @@ public Builder addIntegerParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder addIntegerParameterRanges( - int index, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder builderForValue) { + int index, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder builderForValue) { if (integerParameterRangesBuilder_ == null) { ensureIntegerParameterRangesIsMutable(); integerParameterRanges_.add(index, builderForValue.build()); @@ -3631,10 +3533,10 @@ public Builder addIntegerParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder addAllIntegerParameterRanges( - java.lang.Iterable values) { + java.lang.Iterable values) { if (integerParameterRangesBuilder_ == null) { ensureIntegerParameterRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -3646,7 +3548,7 @@ public Builder addAllIntegerParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder clearIntegerParameterRanges() { if (integerParameterRangesBuilder_ == null) { @@ -3659,7 +3561,7 @@ public Builder clearIntegerParameterRanges() { return this; } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ public Builder removeIntegerParameterRanges(int index) { if (integerParameterRangesBuilder_ == null) { @@ -3672,16 +3574,16 @@ public Builder removeIntegerParameterRanges(int index) { return this; } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder getIntegerParameterRangesBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder getIntegerParameterRangesBuilder( int index) { return getIntegerParameterRangesFieldBuilder().getBuilder(index); } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( int index) { if (integerParameterRangesBuilder_ == null) { return integerParameterRanges_.get(index); } else { @@ -3689,9 +3591,9 @@ public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getInteg } } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public java.util.List + public java.util.List getIntegerParameterRangesOrBuilderList() { if (integerParameterRangesBuilder_ != null) { return integerParameterRangesBuilder_.getMessageOrBuilderList(); @@ -3700,33 +3602,33 @@ public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getInteg } } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder addIntegerParameterRangesBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder addIntegerParameterRangesBuilder() { return getIntegerParameterRangesFieldBuilder().addBuilder( - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance()); + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance()); } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder addIntegerParameterRangesBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder addIntegerParameterRangesBuilder( int index) { return getIntegerParameterRangesFieldBuilder().addBuilder( - index, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance()); + index, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance()); } /** - * repeated .flyte.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; + * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; */ - public java.util.List + public java.util.List getIntegerParameterRangesBuilderList() { return getIntegerParameterRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder> + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder> getIntegerParameterRangesFieldBuilder() { if (integerParameterRangesBuilder_ == null) { integerParameterRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder>( + flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder>( integerParameterRanges_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3736,22 +3638,22 @@ public flyte.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder addIntege return integerParameterRangesBuilder_; } - private java.util.List categoricalParameterRanges_ = + private java.util.List categoricalParameterRanges_ = java.util.Collections.emptyList(); private void ensureCategoricalParameterRangesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - categoricalParameterRanges_ = new java.util.ArrayList(categoricalParameterRanges_); + categoricalParameterRanges_ = new java.util.ArrayList(categoricalParameterRanges_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder> categoricalParameterRangesBuilder_; + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder> categoricalParameterRangesBuilder_; /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public java.util.List getCategoricalParameterRangesList() { + public java.util.List getCategoricalParameterRangesList() { if (categoricalParameterRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(categoricalParameterRanges_); } else { @@ -3759,7 +3661,7 @@ public java.util.Listrepeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public int getCategoricalParameterRangesCount() { if (categoricalParameterRangesBuilder_ == null) { @@ -3769,9 +3671,9 @@ public int getCategoricalParameterRangesCount() { } } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index) { + public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index) { if (categoricalParameterRangesBuilder_ == null) { return categoricalParameterRanges_.get(index); } else { @@ -3779,10 +3681,10 @@ public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange getCategorica } } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder setCategoricalParameterRanges( - int index, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange value) { + int index, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange value) { if (categoricalParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3796,10 +3698,10 @@ public Builder setCategoricalParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder setCategoricalParameterRanges( - int index, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder builderForValue) { + int index, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder builderForValue) { if (categoricalParameterRangesBuilder_ == null) { ensureCategoricalParameterRangesIsMutable(); categoricalParameterRanges_.set(index, builderForValue.build()); @@ -3810,9 +3712,9 @@ public Builder setCategoricalParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public Builder addCategoricalParameterRanges(flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange value) { + public Builder addCategoricalParameterRanges(flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange value) { if (categoricalParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3826,10 +3728,10 @@ public Builder addCategoricalParameterRanges(flyte.plugins.sagemaker.Sagemaker.C return this; } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder addCategoricalParameterRanges( - int index, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange value) { + int index, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange value) { if (categoricalParameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3843,10 +3745,10 @@ public Builder addCategoricalParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder addCategoricalParameterRanges( - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder builderForValue) { + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder builderForValue) { if (categoricalParameterRangesBuilder_ == null) { ensureCategoricalParameterRangesIsMutable(); categoricalParameterRanges_.add(builderForValue.build()); @@ -3857,10 +3759,10 @@ public Builder addCategoricalParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder addCategoricalParameterRanges( - int index, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder builderForValue) { + int index, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder builderForValue) { if (categoricalParameterRangesBuilder_ == null) { ensureCategoricalParameterRangesIsMutable(); categoricalParameterRanges_.add(index, builderForValue.build()); @@ -3871,10 +3773,10 @@ public Builder addCategoricalParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder addAllCategoricalParameterRanges( - java.lang.Iterable values) { + java.lang.Iterable values) { if (categoricalParameterRangesBuilder_ == null) { ensureCategoricalParameterRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -3886,7 +3788,7 @@ public Builder addAllCategoricalParameterRanges( return this; } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder clearCategoricalParameterRanges() { if (categoricalParameterRangesBuilder_ == null) { @@ -3899,7 +3801,7 @@ public Builder clearCategoricalParameterRanges() { return this; } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ public Builder removeCategoricalParameterRanges(int index) { if (categoricalParameterRangesBuilder_ == null) { @@ -3912,16 +3814,16 @@ public Builder removeCategoricalParameterRanges(int index) { return this; } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder getCategoricalParameterRangesBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder getCategoricalParameterRangesBuilder( int index) { return getCategoricalParameterRangesFieldBuilder().getBuilder(index); } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( int index) { if (categoricalParameterRangesBuilder_ == null) { return categoricalParameterRanges_.get(index); } else { @@ -3929,9 +3831,9 @@ public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getC } } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public java.util.List + public java.util.List getCategoricalParameterRangesOrBuilderList() { if (categoricalParameterRangesBuilder_ != null) { return categoricalParameterRangesBuilder_.getMessageOrBuilderList(); @@ -3940,33 +3842,33 @@ public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getC } } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder addCategoricalParameterRangesBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder addCategoricalParameterRangesBuilder() { return getCategoricalParameterRangesFieldBuilder().addBuilder( - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance()); + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance()); } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder addCategoricalParameterRangesBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder addCategoricalParameterRangesBuilder( int index) { return getCategoricalParameterRangesFieldBuilder().addBuilder( - index, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance()); + index, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance()); } /** - * repeated .flyte.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; + * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; */ - public java.util.List + public java.util.List getCategoricalParameterRangesBuilderList() { return getCategoricalParameterRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder> + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder> getCategoricalParameterRangesFieldBuilder() { if (categoricalParameterRangesBuilder_ == null) { categoricalParameterRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder, flyte.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder>( + flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder>( categoricalParameterRanges_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3988,16 +3890,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.ParameterRanges) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.ParameterRanges) } - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ParameterRanges) - private static final flyte.plugins.sagemaker.Sagemaker.ParameterRanges DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) + private static final flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.ParameterRanges(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges(); } - public static flyte.plugins.sagemaker.Sagemaker.ParameterRanges getDefaultInstance() { + public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4022,14 +3924,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.ParameterRanges getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AlgorithmSpecificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification) com.google.protobuf.MessageOrBuilder { /** @@ -4063,35 +3965,35 @@ public interface AlgorithmSpecificationOrBuilder extends getAlgorithmNameBytes(); /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - java.util.List + java.util.List getMetricDefinitionsList(); /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ int getMetricDefinitionsCount(); /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - java.util.List + java.util.List getMetricDefinitionsOrBuilderList(); /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index); } /** - * Protobuf type {@code flyte.plugins.sagemaker.AlgorithmSpecification} + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} */ public static final class AlgorithmSpecification extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) AlgorithmSpecificationOrBuilder { private static final long serialVersionUID = 0L; // Use AlgorithmSpecification.newBuilder() to construct. @@ -4149,11 +4051,11 @@ private AlgorithmSpecification( } case 34: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(); + metricDefinitions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } metricDefinitions_.add( - input.readMessage(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.parser(), extensionRegistry)); + input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.parser(), extensionRegistry)); break; } default: { @@ -4180,19 +4082,19 @@ private AlgorithmSpecification( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.class, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder.class); } public interface MetricDefinitionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) com.google.protobuf.MessageOrBuilder { /** @@ -4216,11 +4118,11 @@ public interface MetricDefinitionOrBuilder extends getRegexBytes(); } /** - * Protobuf type {@code flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} */ public static final class MetricDefinition extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) MetricDefinitionOrBuilder { private static final long serialVersionUID = 0L; // Use MetricDefinition.newBuilder() to construct. @@ -4289,15 +4191,15 @@ private MetricDefinition( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.class, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -4413,10 +4315,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition)) { return super.equals(obj); } - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition other = (flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition) obj; + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition) obj; if (!getName() .equals(other.getName())) return false; @@ -4442,69 +4344,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition 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 flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition 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 flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4517,7 +4419,7 @@ public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDef public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -4533,26 +4435,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.class, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder.class); } - // Construct using flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.newBuilder() + // Construct using flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -4580,17 +4482,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { - return flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition build() { - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition result = buildPartial(); + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition build() { + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4598,8 +4500,8 @@ public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition buildPartial() { - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition result = new flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition(this); + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition buildPartial() { + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition(this); result.name_ = name_; result.regex_ = regex_; onBuilt(); @@ -4640,16 +4542,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition) { - return mergeFrom((flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition)other); + if (other instanceof flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition) { + return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition other) { - if (other == flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition other) { + if (other == flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -4673,11 +4575,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parsedMessage = null; + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4837,16 +4739,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) } - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - private static final flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + private static final flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition(); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstance() { + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4871,7 +4773,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4981,36 +4883,36 @@ public java.lang.String getAlgorithmName() { } public static final int METRICDEFINITIONS_FIELD_NUMBER = 4; - private java.util.List metricDefinitions_; + private java.util.List metricDefinitions_; /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public java.util.List getMetricDefinitionsList() { + public java.util.List getMetricDefinitionsList() { return metricDefinitions_; } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public java.util.List + public java.util.List getMetricDefinitionsOrBuilderList() { return metricDefinitions_; } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public int getMetricDefinitionsCount() { return metricDefinitions_.size(); } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { return metricDefinitions_.get(index); } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index) { return metricDefinitions_.get(index); } @@ -5073,10 +4975,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification)) { return super.equals(obj); } - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification other = (flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification) obj; + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification) obj; if (!getTrainingImage() .equals(other.getTrainingImage())) return false; @@ -5112,69 +5014,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification 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 flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification 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 flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5187,7 +5089,7 @@ public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -5203,26 +5105,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.sagemaker.AlgorithmSpecification} + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.AlgorithmSpecification) - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.class, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder.class); } - // Construct using flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.newBuilder() + // Construct using flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -5259,17 +5161,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification getDefaultInstanceForType() { - return flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance(); + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification build() { - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification result = buildPartial(); + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification build() { + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5277,8 +5179,8 @@ public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification build() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification buildPartial() { - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification result = new flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification(this); + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification buildPartial() { + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.trainingImage_ = trainingImage_; @@ -5332,16 +5234,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification) { - return mergeFrom((flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification)other); + if (other instanceof flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification) { + return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification other) { - if (other == flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification other) { + if (other == flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance()) return this; if (!other.getTrainingImage().isEmpty()) { trainingImage_ = other.trainingImage_; onChanged(); @@ -5395,11 +5297,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification parsedMessage = null; + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5617,22 +5519,22 @@ public Builder setAlgorithmNameBytes( return this; } - private java.util.List metricDefinitions_ = + private java.util.List metricDefinitions_ = java.util.Collections.emptyList(); private void ensureMetricDefinitionsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); + metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public java.util.List getMetricDefinitionsList() { + public java.util.List getMetricDefinitionsList() { if (metricDefinitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(metricDefinitions_); } else { @@ -5640,7 +5542,7 @@ public java.util.Listrepeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public int getMetricDefinitionsCount() { if (metricDefinitionsBuilder_ == null) { @@ -5650,9 +5552,9 @@ public int getMetricDefinitionsCount() { } } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { if (metricDefinitionsBuilder_ == null) { return metricDefinitions_.get(index); } else { @@ -5660,10 +5562,10 @@ public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition } } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder setMetricDefinitions( - int index, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition value) { + int index, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition value) { if (metricDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5677,10 +5579,10 @@ public Builder setMetricDefinitions( return this; } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder setMetricDefinitions( - int index, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + int index, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); metricDefinitions_.set(index, builderForValue.build()); @@ -5691,9 +5593,9 @@ public Builder setMetricDefinitions( return this; } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public Builder addMetricDefinitions(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition value) { + public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition value) { if (metricDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5707,10 +5609,10 @@ public Builder addMetricDefinitions(flyte.plugins.sagemaker.Sagemaker.AlgorithmS return this; } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder addMetricDefinitions( - int index, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition value) { + int index, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition value) { if (metricDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5724,10 +5626,10 @@ public Builder addMetricDefinitions( return this; } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder addMetricDefinitions( - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); metricDefinitions_.add(builderForValue.build()); @@ -5738,10 +5640,10 @@ public Builder addMetricDefinitions( return this; } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder addMetricDefinitions( - int index, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + int index, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); metricDefinitions_.add(index, builderForValue.build()); @@ -5752,10 +5654,10 @@ public Builder addMetricDefinitions( return this; } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder addAllMetricDefinitions( - java.lang.Iterable values) { + java.lang.Iterable values) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -5767,7 +5669,7 @@ public Builder addAllMetricDefinitions( return this; } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder clearMetricDefinitions() { if (metricDefinitionsBuilder_ == null) { @@ -5780,7 +5682,7 @@ public Builder clearMetricDefinitions() { return this; } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ public Builder removeMetricDefinitions(int index) { if (metricDefinitionsBuilder_ == null) { @@ -5793,16 +5695,16 @@ public Builder removeMetricDefinitions(int index) { return this; } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( int index) { return getMetricDefinitionsFieldBuilder().getBuilder(index); } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index) { if (metricDefinitionsBuilder_ == null) { return metricDefinitions_.get(index); } else { @@ -5810,9 +5712,9 @@ public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition } } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public java.util.List + public java.util.List getMetricDefinitionsOrBuilderList() { if (metricDefinitionsBuilder_ != null) { return metricDefinitionsBuilder_.getMessageOrBuilderList(); @@ -5821,33 +5723,33 @@ public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition } } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { return getMetricDefinitionsFieldBuilder().addBuilder( - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( int index) { return getMetricDefinitionsFieldBuilder().addBuilder( - index, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + index, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); } /** - * repeated .flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; */ - public java.util.List + public java.util.List getMetricDefinitionsBuilderList() { return getMetricDefinitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder> + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder> getMetricDefinitionsFieldBuilder() { if (metricDefinitionsBuilder_ == null) { metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder>( + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder>( metricDefinitions_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -5869,16 +5771,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.AlgorithmSpecification) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) } - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.AlgorithmSpecification) - private static final flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) + private static final flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification(); } - public static flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification getDefaultInstance() { + public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -5903,14 +5805,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ResourceConfig) com.google.protobuf.MessageOrBuilder { /** @@ -5944,11 +5846,11 @@ public interface ResourceConfigOrBuilder extends getVolumeKmsKeyIdBytes(); } /** - * Protobuf type {@code flyte.plugins.sagemaker.ResourceConfig} + * Protobuf type {@code flyteidl.plugins.sagemaker.ResourceConfig} */ public static final class ResourceConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ResourceConfig) ResourceConfigOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceConfig.newBuilder() to construct. @@ -6027,15 +5929,15 @@ private ResourceConfig( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ResourceConfig_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ResourceConfig_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.ResourceConfig.class, flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.class, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder.class); } public static final int INSTANCETYPE_FIELD_NUMBER = 1; @@ -6183,10 +6085,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.ResourceConfig)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig)) { return super.equals(obj); } - flyte.plugins.sagemaker.Sagemaker.ResourceConfig other = (flyte.plugins.sagemaker.Sagemaker.ResourceConfig) obj; + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig other = (flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig) obj; if (!getInstanceType() .equals(other.getInstanceType())) return false; @@ -6222,69 +6124,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig 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 flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig 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 flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6297,7 +6199,7 @@ public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.ResourceConfig prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -6313,26 +6215,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.sagemaker.ResourceConfig} + * Protobuf type {@code flyteidl.plugins.sagemaker.ResourceConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.ResourceConfig) - flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ResourceConfig) + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ResourceConfig_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ResourceConfig_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.ResourceConfig.class, flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.class, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder.class); } - // Construct using flyte.plugins.sagemaker.Sagemaker.ResourceConfig.newBuilder() + // Construct using flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -6364,17 +6266,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_ResourceConfig_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.ResourceConfig getDefaultInstanceForType() { - return flyte.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance(); + public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.ResourceConfig build() { - flyte.plugins.sagemaker.Sagemaker.ResourceConfig result = buildPartial(); + public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig build() { + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6382,8 +6284,8 @@ public flyte.plugins.sagemaker.Sagemaker.ResourceConfig build() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.ResourceConfig buildPartial() { - flyte.plugins.sagemaker.Sagemaker.ResourceConfig result = new flyte.plugins.sagemaker.Sagemaker.ResourceConfig(this); + public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig buildPartial() { + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig result = new flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig(this); result.instanceType_ = instanceType_; result.instanceCount_ = instanceCount_; result.volumeSizeInGB_ = volumeSizeInGB_; @@ -6426,16 +6328,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.sagemaker.Sagemaker.ResourceConfig) { - return mergeFrom((flyte.plugins.sagemaker.Sagemaker.ResourceConfig)other); + if (other instanceof flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.ResourceConfig other) { - if (other == flyte.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig other) { + if (other == flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance()) return this; if (!other.getInstanceType().isEmpty()) { instanceType_ = other.instanceType_; onChanged(); @@ -6465,11 +6367,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.sagemaker.Sagemaker.ResourceConfig parsedMessage = null; + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.sagemaker.Sagemaker.ResourceConfig) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6681,16 +6583,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.ResourceConfig) } - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ResourceConfig) - private static final flyte.plugins.sagemaker.Sagemaker.ResourceConfig DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ResourceConfig) + private static final flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.ResourceConfig(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig(); } - public static flyte.plugins.sagemaker.Sagemaker.ResourceConfig getDefaultInstance() { + public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -6715,14 +6617,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.ResourceConfig getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StoppingConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.StoppingCondition) com.google.protobuf.MessageOrBuilder { /** @@ -6736,11 +6638,11 @@ public interface StoppingConditionOrBuilder extends long getMaxWaitTimeInSeconds(); } /** - * Protobuf type {@code flyte.plugins.sagemaker.StoppingCondition} + * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} */ public static final class StoppingCondition extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.StoppingCondition) StoppingConditionOrBuilder { private static final long serialVersionUID = 0L; // Use StoppingCondition.newBuilder() to construct. @@ -6805,15 +6707,15 @@ private StoppingCondition( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_StoppingCondition_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_StoppingCondition_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.StoppingCondition.class, flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.class, flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder.class); } public static final int MAXRUNTIMEINSECONDS_FIELD_NUMBER = 1; @@ -6881,10 +6783,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.StoppingCondition)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition)) { return super.equals(obj); } - flyte.plugins.sagemaker.Sagemaker.StoppingCondition other = (flyte.plugins.sagemaker.Sagemaker.StoppingCondition) obj; + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition other = (flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition) obj; if (getMaxRuntimeInSeconds() != other.getMaxRuntimeInSeconds()) return false; @@ -6912,69 +6814,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition 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 flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition 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 flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6987,7 +6889,7 @@ public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.StoppingCondition prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -7003,26 +6905,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.sagemaker.StoppingCondition} + * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.StoppingCondition) - flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.StoppingCondition) + flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_StoppingCondition_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_StoppingCondition_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.StoppingCondition.class, flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.class, flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder.class); } - // Construct using flyte.plugins.sagemaker.Sagemaker.StoppingCondition.newBuilder() + // Construct using flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -7050,17 +6952,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_StoppingCondition_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.StoppingCondition getDefaultInstanceForType() { - return flyte.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance(); + public flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.StoppingCondition build() { - flyte.plugins.sagemaker.Sagemaker.StoppingCondition result = buildPartial(); + public flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition build() { + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7068,8 +6970,8 @@ public flyte.plugins.sagemaker.Sagemaker.StoppingCondition build() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.StoppingCondition buildPartial() { - flyte.plugins.sagemaker.Sagemaker.StoppingCondition result = new flyte.plugins.sagemaker.Sagemaker.StoppingCondition(this); + public flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition buildPartial() { + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition result = new flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition(this); result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; onBuilt(); @@ -7110,16 +7012,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.sagemaker.Sagemaker.StoppingCondition) { - return mergeFrom((flyte.plugins.sagemaker.Sagemaker.StoppingCondition)other); + if (other instanceof flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition) { + return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.StoppingCondition other) { - if (other == flyte.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition other) { + if (other == flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance()) return this; if (other.getMaxRuntimeInSeconds() != 0L) { setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); } @@ -7141,11 +7043,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.sagemaker.Sagemaker.StoppingCondition parsedMessage = null; + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.sagemaker.Sagemaker.StoppingCondition) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7219,16 +7121,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.StoppingCondition) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.StoppingCondition) } - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.StoppingCondition) - private static final flyte.plugins.sagemaker.Sagemaker.StoppingCondition DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) + private static final flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.StoppingCondition(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition(); } - public static flyte.plugins.sagemaker.Sagemaker.StoppingCondition getDefaultInstance() { + public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -7253,14 +7155,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.StoppingCondition getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VpcConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.VpcConfig) com.google.protobuf.MessageOrBuilder { /** @@ -7302,11 +7204,11 @@ public interface VpcConfigOrBuilder extends getSubnetsBytes(int index); } /** - * Protobuf type {@code flyte.plugins.sagemaker.VpcConfig} + * Protobuf type {@code flyteidl.plugins.sagemaker.VpcConfig} */ public static final class VpcConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.VpcConfig) VpcConfigOrBuilder { private static final long serialVersionUID = 0L; // Use VpcConfig.newBuilder() to construct. @@ -7387,15 +7289,15 @@ private VpcConfig( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_VpcConfig_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_VpcConfig_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.VpcConfig.class, flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.class, flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder.class); } public static final int SECURITYGROUPIDS_FIELD_NUMBER = 1; @@ -7511,10 +7413,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.VpcConfig)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.Sagemaker.VpcConfig)) { return super.equals(obj); } - flyte.plugins.sagemaker.Sagemaker.VpcConfig other = (flyte.plugins.sagemaker.Sagemaker.VpcConfig) obj; + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig other = (flyteidl.plugins.sagemaker.Sagemaker.VpcConfig) obj; if (!getSecurityGroupIdsList() .equals(other.getSecurityGroupIdsList())) return false; @@ -7544,69 +7446,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig 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 flyte.plugins.sagemaker.Sagemaker.VpcConfig parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig 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 flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -7619,7 +7521,7 @@ public static flyte.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.VpcConfig prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.Sagemaker.VpcConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -7635,26 +7537,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.sagemaker.VpcConfig} + * Protobuf type {@code flyteidl.plugins.sagemaker.VpcConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.VpcConfig) - flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.VpcConfig) + flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_VpcConfig_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_VpcConfig_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.VpcConfig.class, flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.class, flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder.class); } - // Construct using flyte.plugins.sagemaker.Sagemaker.VpcConfig.newBuilder() + // Construct using flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -7682,17 +7584,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_VpcConfig_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.VpcConfig getDefaultInstanceForType() { - return flyte.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance(); + public flyteidl.plugins.sagemaker.Sagemaker.VpcConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.VpcConfig build() { - flyte.plugins.sagemaker.Sagemaker.VpcConfig result = buildPartial(); + public flyteidl.plugins.sagemaker.Sagemaker.VpcConfig build() { + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7700,8 +7602,8 @@ public flyte.plugins.sagemaker.Sagemaker.VpcConfig build() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.VpcConfig buildPartial() { - flyte.plugins.sagemaker.Sagemaker.VpcConfig result = new flyte.plugins.sagemaker.Sagemaker.VpcConfig(this); + public flyteidl.plugins.sagemaker.Sagemaker.VpcConfig buildPartial() { + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig result = new flyteidl.plugins.sagemaker.Sagemaker.VpcConfig(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); @@ -7751,16 +7653,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.sagemaker.Sagemaker.VpcConfig) { - return mergeFrom((flyte.plugins.sagemaker.Sagemaker.VpcConfig)other); + if (other instanceof flyteidl.plugins.sagemaker.Sagemaker.VpcConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.VpcConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.VpcConfig other) { - if (other == flyte.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.VpcConfig other) { + if (other == flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance()) return this; if (!other.securityGroupIds_.isEmpty()) { if (securityGroupIds_.isEmpty()) { securityGroupIds_ = other.securityGroupIds_; @@ -7796,11 +7698,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.sagemaker.Sagemaker.VpcConfig parsedMessage = null; + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.sagemaker.Sagemaker.VpcConfig) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.VpcConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8011,16 +7913,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.VpcConfig) } - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.VpcConfig) - private static final flyte.plugins.sagemaker.Sagemaker.VpcConfig DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.VpcConfig) + private static final flyteidl.plugins.sagemaker.Sagemaker.VpcConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.VpcConfig(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.VpcConfig(); } - public static flyte.plugins.sagemaker.Sagemaker.VpcConfig getDefaultInstance() { + public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -8045,14 +7947,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.VpcConfig getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.Sagemaker.VpcConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SagemakerTrainingJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.SagemakerTrainingJob) com.google.protobuf.MessageOrBuilder { /** @@ -8076,56 +7978,56 @@ public interface SagemakerTrainingJobOrBuilder extends getRoleArnBytes(); /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ boolean hasAlgorithmSpecification(); /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification getAlgorithmSpecification(); + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification getAlgorithmSpecification(); /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ boolean hasResourceConfig(); /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - flyte.plugins.sagemaker.Sagemaker.ResourceConfig getResourceConfig(); + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig getResourceConfig(); /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder(); + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder(); /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ boolean hasStoppingCondition(); /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - flyte.plugins.sagemaker.Sagemaker.StoppingCondition getStoppingCondition(); + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition getStoppingCondition(); /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder(); + flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder(); /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ boolean hasVpcConfig(); /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - flyte.plugins.sagemaker.Sagemaker.VpcConfig getVpcConfig(); + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig getVpcConfig(); /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder(); + flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder(); /** * bool EnableSpotTraining = 7; @@ -8133,11 +8035,11 @@ public interface SagemakerTrainingJobOrBuilder extends boolean getEnableSpotTraining(); } /** - * Protobuf type {@code flyte.plugins.sagemaker.SagemakerTrainingJob} + * Protobuf type {@code flyteidl.plugins.sagemaker.SagemakerTrainingJob} */ public static final class SagemakerTrainingJob extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.SagemakerTrainingJob) SagemakerTrainingJobOrBuilder { private static final long serialVersionUID = 0L; // Use SagemakerTrainingJob.newBuilder() to construct. @@ -8186,11 +8088,11 @@ private SagemakerTrainingJob( break; } case 26: { - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder subBuilder = null; + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder subBuilder = null; if (algorithmSpecification_ != null) { subBuilder = algorithmSpecification_.toBuilder(); } - algorithmSpecification_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.parser(), extensionRegistry); + algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(algorithmSpecification_); algorithmSpecification_ = subBuilder.buildPartial(); @@ -8199,11 +8101,11 @@ private SagemakerTrainingJob( break; } case 34: { - flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder subBuilder = null; + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder subBuilder = null; if (resourceConfig_ != null) { subBuilder = resourceConfig_.toBuilder(); } - resourceConfig_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.ResourceConfig.parser(), extensionRegistry); + resourceConfig_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resourceConfig_); resourceConfig_ = subBuilder.buildPartial(); @@ -8212,11 +8114,11 @@ private SagemakerTrainingJob( break; } case 42: { - flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder subBuilder = null; + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder subBuilder = null; if (stoppingCondition_ != null) { subBuilder = stoppingCondition_.toBuilder(); } - stoppingCondition_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.StoppingCondition.parser(), extensionRegistry); + stoppingCondition_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stoppingCondition_); stoppingCondition_ = subBuilder.buildPartial(); @@ -8225,11 +8127,11 @@ private SagemakerTrainingJob( break; } case 50: { - flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder subBuilder = null; + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder subBuilder = null; if (vpcConfig_ != null) { subBuilder = vpcConfig_.toBuilder(); } - vpcConfig_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.VpcConfig.parser(), extensionRegistry); + vpcConfig_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(vpcConfig_); vpcConfig_ = subBuilder.buildPartial(); @@ -8263,15 +8165,15 @@ private SagemakerTrainingJob( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.class, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.class, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder.class); } public static final int REGION_FIELD_NUMBER = 1; @@ -8343,86 +8245,86 @@ public java.lang.String getRoleArn() { } public static final int ALGORITHMSPECIFICATION_FIELD_NUMBER = 3; - private flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification algorithmSpecification_; + private flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification algorithmSpecification_; /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ public boolean hasAlgorithmSpecification() { return algorithmSpecification_ != null; } /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification getAlgorithmSpecification() { - return algorithmSpecification_ == null ? flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification getAlgorithmSpecification() { + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; } /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { return getAlgorithmSpecification(); } public static final int RESOURCECONFIG_FIELD_NUMBER = 4; - private flyte.plugins.sagemaker.Sagemaker.ResourceConfig resourceConfig_; + private flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig resourceConfig_; /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ public boolean hasResourceConfig() { return resourceConfig_ != null; } /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public flyte.plugins.sagemaker.Sagemaker.ResourceConfig getResourceConfig() { - return resourceConfig_ == null ? flyte.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; + public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig getResourceConfig() { + return resourceConfig_ == null ? flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; } /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder() { return getResourceConfig(); } public static final int STOPPINGCONDITION_FIELD_NUMBER = 5; - private flyte.plugins.sagemaker.Sagemaker.StoppingCondition stoppingCondition_; + private flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition stoppingCondition_; /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ public boolean hasStoppingCondition() { return stoppingCondition_ != null; } /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public flyte.plugins.sagemaker.Sagemaker.StoppingCondition getStoppingCondition() { - return stoppingCondition_ == null ? flyte.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; + public flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition getStoppingCondition() { + return stoppingCondition_ == null ? flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; } /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { return getStoppingCondition(); } public static final int VPCCONFIG_FIELD_NUMBER = 6; - private flyte.plugins.sagemaker.Sagemaker.VpcConfig vpcConfig_; + private flyteidl.plugins.sagemaker.Sagemaker.VpcConfig vpcConfig_; /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ public boolean hasVpcConfig() { return vpcConfig_ != null; } /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public flyte.plugins.sagemaker.Sagemaker.VpcConfig getVpcConfig() { - return vpcConfig_ == null ? flyte.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; + public flyteidl.plugins.sagemaker.Sagemaker.VpcConfig getVpcConfig() { + return vpcConfig_ == null ? flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; } /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder() { return getVpcConfig(); } @@ -8515,10 +8417,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob)) { return super.equals(obj); } - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob other = (flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob) obj; + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob other = (flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob) obj; if (!getRegion() .equals(other.getRegion())) return false; @@ -8585,69 +8487,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob 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 flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob 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 flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -8660,7 +8562,7 @@ public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -8676,26 +8578,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.sagemaker.SagemakerTrainingJob} + * Protobuf type {@code flyteidl.plugins.sagemaker.SagemakerTrainingJob} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.SagemakerTrainingJob) - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.SagemakerTrainingJob) + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.class, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.class, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder.class); } - // Construct using flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.newBuilder() + // Construct using flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -8749,17 +8651,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_descriptor; } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getDefaultInstanceForType() { - return flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance(); + public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob build() { - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob result = buildPartial(); + public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob build() { + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8767,8 +8669,8 @@ public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob build() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob buildPartial() { - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob result = new flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob(this); + public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob buildPartial() { + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob result = new flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob(this); result.region_ = region_; result.roleArn_ = roleArn_; if (algorithmSpecificationBuilder_ == null) { @@ -8830,16 +8732,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob) { - return mergeFrom((flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob)other); + if (other instanceof flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob) { + return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob other) { - if (other == flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob other) { + if (other == flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance()) return this; if (!other.getRegion().isEmpty()) { region_ = other.region_; onChanged(); @@ -8878,11 +8780,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parsedMessage = null; + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -9030,29 +8932,29 @@ public Builder setRoleArnBytes( return this; } - private flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification algorithmSpecification_; + private flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification algorithmSpecification_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ public boolean hasAlgorithmSpecification() { return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; } /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification getAlgorithmSpecification() { + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification getAlgorithmSpecification() { if (algorithmSpecificationBuilder_ == null) { - return algorithmSpecification_ == null ? flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; } else { return algorithmSpecificationBuilder_.getMessage(); } } /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public Builder setAlgorithmSpecification(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification value) { + public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification value) { if (algorithmSpecificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9066,10 +8968,10 @@ public Builder setAlgorithmSpecification(flyte.plugins.sagemaker.Sagemaker.Algor return this; } /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ public Builder setAlgorithmSpecification( - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder builderForValue) { + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder builderForValue) { if (algorithmSpecificationBuilder_ == null) { algorithmSpecification_ = builderForValue.build(); onChanged(); @@ -9080,13 +8982,13 @@ public Builder setAlgorithmSpecification( return this; } /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public Builder mergeAlgorithmSpecification(flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification value) { + public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification value) { if (algorithmSpecificationBuilder_ == null) { if (algorithmSpecification_ != null) { algorithmSpecification_ = - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); } else { algorithmSpecification_ = value; } @@ -9098,7 +9000,7 @@ public Builder mergeAlgorithmSpecification(flyte.plugins.sagemaker.Sagemaker.Alg return this; } /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ public Builder clearAlgorithmSpecification() { if (algorithmSpecificationBuilder_ == null) { @@ -9112,33 +9014,33 @@ public Builder clearAlgorithmSpecification() { return this; } /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { onChanged(); return getAlgorithmSpecificationFieldBuilder().getBuilder(); } /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ - public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { if (algorithmSpecificationBuilder_ != null) { return algorithmSpecificationBuilder_.getMessageOrBuilder(); } else { return algorithmSpecification_ == null ? - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; } } /** - * .flyte.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder> + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder> getAlgorithmSpecificationFieldBuilder() { if (algorithmSpecificationBuilder_ == null) { algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder, flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder>( + flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder>( getAlgorithmSpecification(), getParentForChildren(), isClean()); @@ -9147,29 +9049,29 @@ public flyte.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder getAlgo return algorithmSpecificationBuilder_; } - private flyte.plugins.sagemaker.Sagemaker.ResourceConfig resourceConfig_; + private flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig resourceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.ResourceConfig, flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder, flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder> resourceConfigBuilder_; + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder> resourceConfigBuilder_; /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ public boolean hasResourceConfig() { return resourceConfigBuilder_ != null || resourceConfig_ != null; } /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public flyte.plugins.sagemaker.Sagemaker.ResourceConfig getResourceConfig() { + public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig getResourceConfig() { if (resourceConfigBuilder_ == null) { - return resourceConfig_ == null ? flyte.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; + return resourceConfig_ == null ? flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; } else { return resourceConfigBuilder_.getMessage(); } } /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public Builder setResourceConfig(flyte.plugins.sagemaker.Sagemaker.ResourceConfig value) { + public Builder setResourceConfig(flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig value) { if (resourceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9183,10 +9085,10 @@ public Builder setResourceConfig(flyte.plugins.sagemaker.Sagemaker.ResourceConfi return this; } /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ public Builder setResourceConfig( - flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder builderForValue) { + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder builderForValue) { if (resourceConfigBuilder_ == null) { resourceConfig_ = builderForValue.build(); onChanged(); @@ -9197,13 +9099,13 @@ public Builder setResourceConfig( return this; } /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public Builder mergeResourceConfig(flyte.plugins.sagemaker.Sagemaker.ResourceConfig value) { + public Builder mergeResourceConfig(flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig value) { if (resourceConfigBuilder_ == null) { if (resourceConfig_ != null) { resourceConfig_ = - flyte.plugins.sagemaker.Sagemaker.ResourceConfig.newBuilder(resourceConfig_).mergeFrom(value).buildPartial(); + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.newBuilder(resourceConfig_).mergeFrom(value).buildPartial(); } else { resourceConfig_ = value; } @@ -9215,7 +9117,7 @@ public Builder mergeResourceConfig(flyte.plugins.sagemaker.Sagemaker.ResourceCon return this; } /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ public Builder clearResourceConfig() { if (resourceConfigBuilder_ == null) { @@ -9229,33 +9131,33 @@ public Builder clearResourceConfig() { return this; } /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder getResourceConfigBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder getResourceConfigBuilder() { onChanged(); return getResourceConfigFieldBuilder().getBuilder(); } /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ - public flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder() { if (resourceConfigBuilder_ != null) { return resourceConfigBuilder_.getMessageOrBuilder(); } else { return resourceConfig_ == null ? - flyte.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; } } /** - * .flyte.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.ResourceConfig, flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder, flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder> + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder> getResourceConfigFieldBuilder() { if (resourceConfigBuilder_ == null) { resourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.ResourceConfig, flyte.plugins.sagemaker.Sagemaker.ResourceConfig.Builder, flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder>( + flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder>( getResourceConfig(), getParentForChildren(), isClean()); @@ -9264,29 +9166,29 @@ public flyte.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder getResourceConf return resourceConfigBuilder_; } - private flyte.plugins.sagemaker.Sagemaker.StoppingCondition stoppingCondition_; + private flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition stoppingCondition_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.StoppingCondition, flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder, flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder> stoppingConditionBuilder_; + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition, flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder> stoppingConditionBuilder_; /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ public boolean hasStoppingCondition() { return stoppingConditionBuilder_ != null || stoppingCondition_ != null; } /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public flyte.plugins.sagemaker.Sagemaker.StoppingCondition getStoppingCondition() { + public flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition getStoppingCondition() { if (stoppingConditionBuilder_ == null) { - return stoppingCondition_ == null ? flyte.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; + return stoppingCondition_ == null ? flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; } else { return stoppingConditionBuilder_.getMessage(); } } /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public Builder setStoppingCondition(flyte.plugins.sagemaker.Sagemaker.StoppingCondition value) { + public Builder setStoppingCondition(flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition value) { if (stoppingConditionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9300,10 +9202,10 @@ public Builder setStoppingCondition(flyte.plugins.sagemaker.Sagemaker.StoppingCo return this; } /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ public Builder setStoppingCondition( - flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder builderForValue) { + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder builderForValue) { if (stoppingConditionBuilder_ == null) { stoppingCondition_ = builderForValue.build(); onChanged(); @@ -9314,13 +9216,13 @@ public Builder setStoppingCondition( return this; } /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public Builder mergeStoppingCondition(flyte.plugins.sagemaker.Sagemaker.StoppingCondition value) { + public Builder mergeStoppingCondition(flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition value) { if (stoppingConditionBuilder_ == null) { if (stoppingCondition_ != null) { stoppingCondition_ = - flyte.plugins.sagemaker.Sagemaker.StoppingCondition.newBuilder(stoppingCondition_).mergeFrom(value).buildPartial(); + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.newBuilder(stoppingCondition_).mergeFrom(value).buildPartial(); } else { stoppingCondition_ = value; } @@ -9332,7 +9234,7 @@ public Builder mergeStoppingCondition(flyte.plugins.sagemaker.Sagemaker.Stopping return this; } /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ public Builder clearStoppingCondition() { if (stoppingConditionBuilder_ == null) { @@ -9346,33 +9248,33 @@ public Builder clearStoppingCondition() { return this; } /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder getStoppingConditionBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder getStoppingConditionBuilder() { onChanged(); return getStoppingConditionFieldBuilder().getBuilder(); } /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ - public flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { if (stoppingConditionBuilder_ != null) { return stoppingConditionBuilder_.getMessageOrBuilder(); } else { return stoppingCondition_ == null ? - flyte.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; } } /** - * .flyte.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.StoppingCondition, flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder, flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder> + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition, flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder> getStoppingConditionFieldBuilder() { if (stoppingConditionBuilder_ == null) { stoppingConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.StoppingCondition, flyte.plugins.sagemaker.Sagemaker.StoppingCondition.Builder, flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder>( + flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition, flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder>( getStoppingCondition(), getParentForChildren(), isClean()); @@ -9381,29 +9283,29 @@ public flyte.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder getStoppingC return stoppingConditionBuilder_; } - private flyte.plugins.sagemaker.Sagemaker.VpcConfig vpcConfig_; + private flyteidl.plugins.sagemaker.Sagemaker.VpcConfig vpcConfig_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.VpcConfig, flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder, flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder> vpcConfigBuilder_; + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig, flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder, flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder> vpcConfigBuilder_; /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ public boolean hasVpcConfig() { return vpcConfigBuilder_ != null || vpcConfig_ != null; } /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public flyte.plugins.sagemaker.Sagemaker.VpcConfig getVpcConfig() { + public flyteidl.plugins.sagemaker.Sagemaker.VpcConfig getVpcConfig() { if (vpcConfigBuilder_ == null) { - return vpcConfig_ == null ? flyte.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; + return vpcConfig_ == null ? flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; } else { return vpcConfigBuilder_.getMessage(); } } /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public Builder setVpcConfig(flyte.plugins.sagemaker.Sagemaker.VpcConfig value) { + public Builder setVpcConfig(flyteidl.plugins.sagemaker.Sagemaker.VpcConfig value) { if (vpcConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9417,10 +9319,10 @@ public Builder setVpcConfig(flyte.plugins.sagemaker.Sagemaker.VpcConfig value) { return this; } /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ public Builder setVpcConfig( - flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder builderForValue) { + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder builderForValue) { if (vpcConfigBuilder_ == null) { vpcConfig_ = builderForValue.build(); onChanged(); @@ -9431,13 +9333,13 @@ public Builder setVpcConfig( return this; } /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public Builder mergeVpcConfig(flyte.plugins.sagemaker.Sagemaker.VpcConfig value) { + public Builder mergeVpcConfig(flyteidl.plugins.sagemaker.Sagemaker.VpcConfig value) { if (vpcConfigBuilder_ == null) { if (vpcConfig_ != null) { vpcConfig_ = - flyte.plugins.sagemaker.Sagemaker.VpcConfig.newBuilder(vpcConfig_).mergeFrom(value).buildPartial(); + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.newBuilder(vpcConfig_).mergeFrom(value).buildPartial(); } else { vpcConfig_ = value; } @@ -9449,7 +9351,7 @@ public Builder mergeVpcConfig(flyte.plugins.sagemaker.Sagemaker.VpcConfig value) return this; } /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ public Builder clearVpcConfig() { if (vpcConfigBuilder_ == null) { @@ -9463,33 +9365,33 @@ public Builder clearVpcConfig() { return this; } /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder getVpcConfigBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder getVpcConfigBuilder() { onChanged(); return getVpcConfigFieldBuilder().getBuilder(); } /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ - public flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder() { if (vpcConfigBuilder_ != null) { return vpcConfigBuilder_.getMessageOrBuilder(); } else { return vpcConfig_ == null ? - flyte.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; } } /** - * .flyte.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.VpcConfig, flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder, flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder> + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig, flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder, flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder> getVpcConfigFieldBuilder() { if (vpcConfigBuilder_ == null) { vpcConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.VpcConfig, flyte.plugins.sagemaker.Sagemaker.VpcConfig.Builder, flyte.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder>( + flyteidl.plugins.sagemaker.Sagemaker.VpcConfig, flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder, flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder>( getVpcConfig(), getParentForChildren(), isClean()); @@ -9536,16 +9438,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.SagemakerTrainingJob) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.SagemakerTrainingJob) } - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.SagemakerTrainingJob) - private static final flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.SagemakerTrainingJob) + private static final flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob(); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getDefaultInstance() { + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -9570,24 +9472,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HPOJobObjectiveOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJobObjective) com.google.protobuf.MessageOrBuilder { /** - * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; */ int getTypeValue(); /** - * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; */ - flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType getType(); + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType getType(); /** * string MetricName = 2; @@ -9600,11 +9502,11 @@ public interface HPOJobObjectiveOrBuilder extends getMetricNameBytes(); } /** - * Protobuf type {@code flyte.plugins.sagemaker.HPOJobObjective} + * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobObjective} */ public static final class HPOJobObjective extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJobObjective) HPOJobObjectiveOrBuilder { private static final long serialVersionUID = 0L; // Use HPOJobObjective.newBuilder() to construct. @@ -9673,32 +9575,130 @@ private HPOJobObjective( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_HPOJobObjective_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_HPOJobObjective_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.class, flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.class, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType} + */ + public enum HPOJobObjectiveType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MINIMIZE = 0; + */ + MINIMIZE(0), + /** + * MAXIMIZE = 1; + */ + MAXIMIZE(1), + UNRECOGNIZED(-1), + ; + + /** + * MINIMIZE = 0; + */ + public static final int MINIMIZE_VALUE = 0; + /** + * MAXIMIZE = 1; + */ + public static final int MAXIMIZE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HPOJobObjectiveType valueOf(int value) { + return forNumber(value); + } + + public static HPOJobObjectiveType forNumber(int value) { + switch (value) { + case 0: return MINIMIZE; + case 1: return MAXIMIZE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HPOJobObjectiveType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HPOJobObjectiveType findValueByNumber(int number) { + return HPOJobObjectiveType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.getDescriptor().getEnumTypes().get(0); + } + + private static final HPOJobObjectiveType[] VALUES = values(); + + public static HPOJobObjectiveType 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 HPOJobObjectiveType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType) } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; */ public int getTypeValue() { return type_; } /** - * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; */ - public flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType getType() { + public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType getType() { @SuppressWarnings("deprecation") - flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType result = flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType.valueOf(type_); - return result == null ? flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType result = flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType.valueOf(type_); + return result == null ? flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType.UNRECOGNIZED : result; } public static final int METRICNAME_FIELD_NUMBER = 2; @@ -9749,7 +9749,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ != flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType.MINIMIZE.getNumber()) { + if (type_ != flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType.MINIMIZE.getNumber()) { output.writeEnum(1, type_); } if (!getMetricNameBytes().isEmpty()) { @@ -9764,7 +9764,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType.MINIMIZE.getNumber()) { + if (type_ != flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType.MINIMIZE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } @@ -9781,10 +9781,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.HPOJobObjective)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective)) { return super.equals(obj); } - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective other = (flyte.plugins.sagemaker.Sagemaker.HPOJobObjective) obj; + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective other = (flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective) obj; if (type_ != other.type_) return false; if (!getMetricName() @@ -9809,69 +9809,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective 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 flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective 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 flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9884,7 +9884,7 @@ public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.HPOJobObjective prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -9900,26 +9900,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.sagemaker.HPOJobObjective} + * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobObjective} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.HPOJobObjective) - flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobObjective) + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_HPOJobObjective_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_HPOJobObjective_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.class, flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.class, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder.class); } - // Construct using flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.newBuilder() + // Construct using flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -9947,17 +9947,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_HPOJobObjective_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective getDefaultInstanceForType() { - return flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance(); + public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective build() { - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective result = buildPartial(); + public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective build() { + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9965,8 +9965,8 @@ public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective build() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective buildPartial() { - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective result = new flyte.plugins.sagemaker.Sagemaker.HPOJobObjective(this); + public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective buildPartial() { + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective result = new flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective(this); result.type_ = type_; result.metricName_ = metricName_; onBuilt(); @@ -10007,16 +10007,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.sagemaker.Sagemaker.HPOJobObjective) { - return mergeFrom((flyte.plugins.sagemaker.Sagemaker.HPOJobObjective)other); + if (other instanceof flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective) { + return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.HPOJobObjective other) { - if (other == flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective other) { + if (other == flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -10039,11 +10039,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective parsedMessage = null; + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.sagemaker.Sagemaker.HPOJobObjective) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -10055,13 +10055,13 @@ public Builder mergeFrom( private int type_ = 0; /** - * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; */ public int getTypeValue() { return type_; } /** - * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; */ public Builder setTypeValue(int value) { type_ = value; @@ -10069,17 +10069,17 @@ public Builder setTypeValue(int value) { return this; } /** - * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; */ - public flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType getType() { + public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType getType() { @SuppressWarnings("deprecation") - flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType result = flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType.valueOf(type_); - return result == null ? flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType result = flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType.valueOf(type_); + return result == null ? flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType.UNRECOGNIZED : result; } /** - * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; */ - public Builder setType(flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType value) { + public Builder setType(flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType value) { if (value == null) { throw new NullPointerException(); } @@ -10089,7 +10089,7 @@ public Builder setType(flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveType val return this; } /** - * .flyte.plugins.sagemaker.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; */ public Builder clearType() { @@ -10179,16 +10179,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HPOJobObjective) } - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.HPOJobObjective) - private static final flyte.plugins.sagemaker.Sagemaker.HPOJobObjective DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobObjective) + private static final flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.HPOJobObjective(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective(); } - public static flyte.plugins.sagemaker.Sagemaker.HPOJobObjective getDefaultInstance() { + public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -10213,14 +10213,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SagemakerHPOJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.SagemakerHPOJob) com.google.protobuf.MessageOrBuilder { /** @@ -10234,17 +10234,17 @@ public interface SagemakerHPOJobOrBuilder extends getStrategyBytes(); /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ boolean hasObjective(); /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective getObjective(); + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective getObjective(); /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ - flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder(); + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder(); /** * int64 MaxNumberOfTrainingJobs = 3; @@ -10257,37 +10257,37 @@ public interface SagemakerHPOJobOrBuilder extends long getMaxParallelTrainingJobs(); /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ boolean hasParameterRanges(); /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - flyte.plugins.sagemaker.Sagemaker.ParameterRanges getParameterRanges(); + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges getParameterRanges(); /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder(); + flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder(); /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ boolean hasTrainingJob(); /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getTrainingJob(); + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getTrainingJob(); /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder(); + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder(); } /** - * Protobuf type {@code flyte.plugins.sagemaker.SagemakerHPOJob} + * Protobuf type {@code flyteidl.plugins.sagemaker.SagemakerHPOJob} */ public static final class SagemakerHPOJob extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.SagemakerHPOJob) SagemakerHPOJobOrBuilder { private static final long serialVersionUID = 0L; // Use SagemakerHPOJob.newBuilder() to construct. @@ -10329,11 +10329,11 @@ private SagemakerHPOJob( break; } case 18: { - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder subBuilder = null; + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder subBuilder = null; if (objective_ != null) { subBuilder = objective_.toBuilder(); } - objective_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.parser(), extensionRegistry); + objective_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(objective_); objective_ = subBuilder.buildPartial(); @@ -10352,11 +10352,11 @@ private SagemakerHPOJob( break; } case 42: { - flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder subBuilder = null; + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder subBuilder = null; if (parameterRanges_ != null) { subBuilder = parameterRanges_.toBuilder(); } - parameterRanges_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.ParameterRanges.parser(), extensionRegistry); + parameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(parameterRanges_); parameterRanges_ = subBuilder.buildPartial(); @@ -10365,11 +10365,11 @@ private SagemakerHPOJob( break; } case 50: { - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder subBuilder = null; + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder subBuilder = null; if (trainingJob_ != null) { subBuilder = trainingJob_.toBuilder(); } - trainingJob_ = input.readMessage(flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.parser(), extensionRegistry); + trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(trainingJob_); trainingJob_ = subBuilder.buildPartial(); @@ -10398,15 +10398,15 @@ private SagemakerHPOJob( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.class, flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.class, flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.Builder.class); } public static final int STRATEGY_FIELD_NUMBER = 1; @@ -10444,23 +10444,23 @@ public java.lang.String getStrategy() { } public static final int OBJECTIVE_FIELD_NUMBER = 2; - private flyte.plugins.sagemaker.Sagemaker.HPOJobObjective objective_; + private flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective objective_; /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ public boolean hasObjective() { return objective_ != null; } /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective getObjective() { - return objective_ == null ? flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; + public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective getObjective() { + return objective_ == null ? flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; } /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { return getObjective(); } @@ -10483,44 +10483,44 @@ public long getMaxParallelTrainingJobs() { } public static final int PARAMETERRANGES_FIELD_NUMBER = 5; - private flyte.plugins.sagemaker.Sagemaker.ParameterRanges parameterRanges_; + private flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parameterRanges_; /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ public boolean hasParameterRanges() { return parameterRanges_ != null; } /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public flyte.plugins.sagemaker.Sagemaker.ParameterRanges getParameterRanges() { - return parameterRanges_ == null ? flyte.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; + public flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges getParameterRanges() { + return parameterRanges_ == null ? flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; } /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder() { return getParameterRanges(); } public static final int TRAININGJOB_FIELD_NUMBER = 6; - private flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob trainingJob_; + private flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob trainingJob_; /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ public boolean hasTrainingJob() { return trainingJob_ != null; } /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getTrainingJob() { - return trainingJob_ == null ? flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; + public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getTrainingJob() { + return trainingJob_ == null ? flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; } /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder() { return getTrainingJob(); } @@ -10598,10 +10598,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob)) { return super.equals(obj); } - flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob other = (flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob) obj; + flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob other = (flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob) obj; if (!getStrategy() .equals(other.getStrategy())) return false; @@ -10660,69 +10660,69 @@ public int hashCode() { return hash; } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob 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 flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob 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 flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -10735,7 +10735,7 @@ public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -10751,26 +10751,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyte.plugins.sagemaker.SagemakerHPOJob} + * Protobuf type {@code flyteidl.plugins.sagemaker.SagemakerHPOJob} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyte.plugins.sagemaker.SagemakerHPOJob) - flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJobOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.SagemakerHPOJob) + flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJobOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.class, flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.Builder.class); + flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.class, flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.Builder.class); } - // Construct using flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.newBuilder() + // Construct using flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -10818,17 +10818,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyte.plugins.sagemaker.Sagemaker.internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_descriptor; + return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_descriptor; } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { - return flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.getDefaultInstance(); + public flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.getDefaultInstance(); } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob build() { - flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob result = buildPartial(); + public flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob build() { + flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10836,8 +10836,8 @@ public flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob build() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob buildPartial() { - flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob result = new flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob(this); + public flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob buildPartial() { + flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob result = new flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob(this); result.strategy_ = strategy_; if (objectiveBuilder_ == null) { result.objective_ = objective_; @@ -10894,16 +10894,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob) { - return mergeFrom((flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob)other); + if (other instanceof flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob) { + return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob other) { - if (other == flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob other) { + if (other == flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.getDefaultInstance()) return this; if (!other.getStrategy().isEmpty()) { strategy_ = other.strategy_; onChanged(); @@ -10938,11 +10938,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob parsedMessage = null; + flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -11021,29 +11021,29 @@ public Builder setStrategyBytes( return this; } - private flyte.plugins.sagemaker.Sagemaker.HPOJobObjective objective_; + private flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective objective_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective, flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder, flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder> objectiveBuilder_; + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder> objectiveBuilder_; /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ public boolean hasObjective() { return objectiveBuilder_ != null || objective_ != null; } /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective getObjective() { + public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective getObjective() { if (objectiveBuilder_ == null) { - return objective_ == null ? flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; + return objective_ == null ? flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; } else { return objectiveBuilder_.getMessage(); } } /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public Builder setObjective(flyte.plugins.sagemaker.Sagemaker.HPOJobObjective value) { + public Builder setObjective(flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective value) { if (objectiveBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11057,10 +11057,10 @@ public Builder setObjective(flyte.plugins.sagemaker.Sagemaker.HPOJobObjective va return this; } /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ public Builder setObjective( - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder builderForValue) { + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder builderForValue) { if (objectiveBuilder_ == null) { objective_ = builderForValue.build(); onChanged(); @@ -11071,13 +11071,13 @@ public Builder setObjective( return this; } /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public Builder mergeObjective(flyte.plugins.sagemaker.Sagemaker.HPOJobObjective value) { + public Builder mergeObjective(flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective value) { if (objectiveBuilder_ == null) { if (objective_ != null) { objective_ = - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.newBuilder(objective_).mergeFrom(value).buildPartial(); + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.newBuilder(objective_).mergeFrom(value).buildPartial(); } else { objective_ = value; } @@ -11089,7 +11089,7 @@ public Builder mergeObjective(flyte.plugins.sagemaker.Sagemaker.HPOJobObjective return this; } /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ public Builder clearObjective() { if (objectiveBuilder_ == null) { @@ -11103,33 +11103,33 @@ public Builder clearObjective() { return this; } /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder getObjectiveBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder getObjectiveBuilder() { onChanged(); return getObjectiveFieldBuilder().getBuilder(); } /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ - public flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { if (objectiveBuilder_ != null) { return objectiveBuilder_.getMessageOrBuilder(); } else { return objective_ == null ? - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; } } /** - * .flyte.plugins.sagemaker.HPOJobObjective Objective = 2; + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective, flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder, flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder> + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder> getObjectiveFieldBuilder() { if (objectiveBuilder_ == null) { objectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.HPOJobObjective, flyte.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder, flyte.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder>( + flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder>( getObjective(), getParentForChildren(), isClean()); @@ -11190,29 +11190,29 @@ public Builder clearMaxParallelTrainingJobs() { return this; } - private flyte.plugins.sagemaker.Sagemaker.ParameterRanges parameterRanges_; + private flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parameterRanges_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.ParameterRanges, flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder, flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder> parameterRangesBuilder_; + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges, flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder> parameterRangesBuilder_; /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ public boolean hasParameterRanges() { return parameterRangesBuilder_ != null || parameterRanges_ != null; } /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public flyte.plugins.sagemaker.Sagemaker.ParameterRanges getParameterRanges() { + public flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges getParameterRanges() { if (parameterRangesBuilder_ == null) { - return parameterRanges_ == null ? flyte.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; + return parameterRanges_ == null ? flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; } else { return parameterRangesBuilder_.getMessage(); } } /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public Builder setParameterRanges(flyte.plugins.sagemaker.Sagemaker.ParameterRanges value) { + public Builder setParameterRanges(flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges value) { if (parameterRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11226,10 +11226,10 @@ public Builder setParameterRanges(flyte.plugins.sagemaker.Sagemaker.ParameterRan return this; } /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ public Builder setParameterRanges( - flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder builderForValue) { + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder builderForValue) { if (parameterRangesBuilder_ == null) { parameterRanges_ = builderForValue.build(); onChanged(); @@ -11240,13 +11240,13 @@ public Builder setParameterRanges( return this; } /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public Builder mergeParameterRanges(flyte.plugins.sagemaker.Sagemaker.ParameterRanges value) { + public Builder mergeParameterRanges(flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges value) { if (parameterRangesBuilder_ == null) { if (parameterRanges_ != null) { parameterRanges_ = - flyte.plugins.sagemaker.Sagemaker.ParameterRanges.newBuilder(parameterRanges_).mergeFrom(value).buildPartial(); + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.newBuilder(parameterRanges_).mergeFrom(value).buildPartial(); } else { parameterRanges_ = value; } @@ -11258,7 +11258,7 @@ public Builder mergeParameterRanges(flyte.plugins.sagemaker.Sagemaker.ParameterR return this; } /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ public Builder clearParameterRanges() { if (parameterRangesBuilder_ == null) { @@ -11272,33 +11272,33 @@ public Builder clearParameterRanges() { return this; } /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder getParameterRangesBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder getParameterRangesBuilder() { onChanged(); return getParameterRangesFieldBuilder().getBuilder(); } /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ - public flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder() { if (parameterRangesBuilder_ != null) { return parameterRangesBuilder_.getMessageOrBuilder(); } else { return parameterRanges_ == null ? - flyte.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; } } /** - * .flyte.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.ParameterRanges, flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder, flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder> + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges, flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder> getParameterRangesFieldBuilder() { if (parameterRangesBuilder_ == null) { parameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.ParameterRanges, flyte.plugins.sagemaker.Sagemaker.ParameterRanges.Builder, flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder>( + flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges, flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder>( getParameterRanges(), getParentForChildren(), isClean()); @@ -11307,29 +11307,29 @@ public flyte.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder getParameterRa return parameterRangesBuilder_; } - private flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob trainingJob_; + private flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob trainingJob_; private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder> trainingJobBuilder_; + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder> trainingJobBuilder_; /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ public boolean hasTrainingJob() { return trainingJobBuilder_ != null || trainingJob_ != null; } /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getTrainingJob() { + public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getTrainingJob() { if (trainingJobBuilder_ == null) { - return trainingJob_ == null ? flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; + return trainingJob_ == null ? flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; } else { return trainingJobBuilder_.getMessage(); } } /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public Builder setTrainingJob(flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob value) { + public Builder setTrainingJob(flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob value) { if (trainingJobBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11343,10 +11343,10 @@ public Builder setTrainingJob(flyte.plugins.sagemaker.Sagemaker.SagemakerTrainin return this; } /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ public Builder setTrainingJob( - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder builderForValue) { + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder builderForValue) { if (trainingJobBuilder_ == null) { trainingJob_ = builderForValue.build(); onChanged(); @@ -11357,13 +11357,13 @@ public Builder setTrainingJob( return this; } /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public Builder mergeTrainingJob(flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob value) { + public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob value) { if (trainingJobBuilder_ == null) { if (trainingJob_ != null) { trainingJob_ = - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); } else { trainingJob_ = value; } @@ -11375,7 +11375,7 @@ public Builder mergeTrainingJob(flyte.plugins.sagemaker.Sagemaker.SagemakerTrain return this; } /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ public Builder clearTrainingJob() { if (trainingJobBuilder_ == null) { @@ -11389,33 +11389,33 @@ public Builder clearTrainingJob() { return this; } /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder getTrainingJobBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder getTrainingJobBuilder() { onChanged(); return getTrainingJobFieldBuilder().getBuilder(); } /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ - public flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder() { + public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder() { if (trainingJobBuilder_ != null) { return trainingJobBuilder_.getMessageOrBuilder(); } else { return trainingJob_ == null ? - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; } } /** - * .flyte.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder> + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder> getTrainingJobFieldBuilder() { if (trainingJobBuilder_ == null) { trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder, flyte.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder>( + flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder>( getTrainingJob(), getParentForChildren(), isClean()); @@ -11436,16 +11436,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyte.plugins.sagemaker.SagemakerHPOJob) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.SagemakerHPOJob) } - // @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.SagemakerHPOJob) - private static final flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.SagemakerHPOJob) + private static final flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob(); } - public static flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob getDefaultInstance() { + public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -11470,72 +11470,72 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_descriptor; + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_sagemaker_IntegerParameterRange_descriptor; + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_descriptor; + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_sagemaker_ParameterRanges_descriptor; + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_sagemaker_ParameterRanges_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor; + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_sagemaker_ResourceConfig_descriptor; + internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_sagemaker_ResourceConfig_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_sagemaker_StoppingCondition_descriptor; + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_sagemaker_StoppingCondition_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_sagemaker_VpcConfig_descriptor; + internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_sagemaker_VpcConfig_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_descriptor; + internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_sagemaker_HPOJobObjective_descriptor; + internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_sagemaker_HPOJobObjective_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_descriptor; + internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -11546,59 +11546,61 @@ public flyte.plugins.sagemaker.Sagemaker.SagemakerHPOJob getDefaultInstanceForTy static { java.lang.String[] descriptorData = { "\n*flyteidl/plugins/sagemaker/sagemaker.p" + - "roto\022\027flyte.plugins.sagemaker\"\225\001\n\030Contin" + - "uousParameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxV" + - "alue\030\002 \001(\001\022\020\n\010MinValue\030\003 \001(\001\022G\n\013ScalingT" + - "ype\030\004 \001(\01622.flyte.plugins.sagemaker.Hype" + - "rparameterScalingType\"\222\001\n\025IntegerParamet" + - "erRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxValue\030\002 \001(\002\022" + - "\020\n\010MinValue\030\003 \001(\002\022G\n\013ScalingType\030\004 \001(\01622" + - ".flyte.plugins.sagemaker.HyperparameterS" + - "calingType\"9\n\031CategoricalParameterRange\022" + - "\014\n\004Name\030\001 \001(\t\022\016\n\006Values\030\002 \003(\t\"\217\002\n\017Parame" + - "terRanges\022T\n\031ContinuousParameterRanges\030\001" + - " \003(\01321.flyte.plugins.sagemaker.Continuou" + - "sParameterRange\022N\n\026IntegerParameterRange" + - "s\030\002 \003(\0132..flyte.plugins.sagemaker.Intege" + - "rParameterRange\022V\n\032CategoricalParameterR" + - "anges\030\003 \003(\01322.flyte.plugins.sagemaker.Ca" + - "tegoricalParameterRange\"\357\001\n\026AlgorithmSpe" + - "cification\022\025\n\rTrainingImage\030\001 \001(\t\022\031\n\021Tra" + - "iningInputMode\030\002 \001(\t\022\025\n\rAlgorithmName\030\003 " + - "\001(\t\022[\n\021MetricDefinitions\030\004 \003(\0132@.flyte.p" + - "lugins.sagemaker.AlgorithmSpecification." + - "MetricDefinition\032/\n\020MetricDefinition\022\014\n\004" + - "Name\030\001 \001(\t\022\r\n\005Regex\030\002 \001(\t\"m\n\016ResourceCon" + - "fig\022\024\n\014InstanceType\030\001 \001(\t\022\025\n\rInstanceCou" + - "nt\030\002 \001(\003\022\026\n\016VolumeSizeInGB\030\003 \001(\003\022\026\n\016Volu" + - "meKmsKeyId\030\004 \001(\t\"N\n\021StoppingCondition\022\033\n" + - "\023MaxRuntimeInSeconds\030\001 \001(\003\022\034\n\024MaxWaitTim" + - "eInSeconds\030\002 \001(\003\"6\n\tVpcConfig\022\030\n\020Securit" + - "yGroupIds\030\001 \003(\t\022\017\n\007Subnets\030\002 \003(\t\"\343\002\n\024Sag" + - "emakerTrainingJob\022\016\n\006Region\030\001 \001(\t\022\017\n\007Rol" + - "eArn\030\002 \001(\t\022O\n\026AlgorithmSpecification\030\003 \001" + - "(\0132/.flyte.plugins.sagemaker.AlgorithmSp" + - "ecification\022?\n\016ResourceConfig\030\004 \001(\0132\'.fl" + - "yte.plugins.sagemaker.ResourceConfig\022E\n\021" + - "StoppingCondition\030\005 \001(\0132*.flyte.plugins." + - "sagemaker.StoppingCondition\0225\n\tVpcConfig" + - "\030\006 \001(\0132\".flyte.plugins.sagemaker.VpcConf" + - "ig\022\032\n\022EnableSpotTraining\030\007 \001(\010\"a\n\017HPOJob" + - "Objective\022:\n\004Type\030\001 \001(\0162,.flyte.plugins." + - "sagemaker.HPOJobObjectiveType\022\022\n\nMetricN" + - "ame\030\002 \001(\t\"\251\002\n\017SagemakerHPOJob\022\020\n\010Strateg" + - "y\030\001 \001(\t\022;\n\tObjective\030\002 \001(\0132(.flyte.plugi" + - "ns.sagemaker.HPOJobObjective\022\037\n\027MaxNumbe" + - "rOfTrainingJobs\030\003 \001(\003\022\037\n\027MaxParallelTrai" + - "ningJobs\030\004 \001(\003\022A\n\017ParameterRanges\030\005 \001(\0132" + - "(.flyte.plugins.sagemaker.ParameterRange" + - "s\022B\n\013TrainingJob\030\006 \001(\0132-.flyte.plugins.s" + - "agemaker.SagemakerTrainingJob*Z\n\031Hyperpa" + - "rameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001" + - "\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHMIC\020" + - "\003*1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE\020\000\022\014" + - "\n\010MAXIMIZE\020\001B5Z3github.com/lyft/flyteidl" + - "/gen/pb-go/flyteidl/pluginsb\006proto3" + "roto\022\032flyteidl.plugins.sagemaker\"\230\001\n\030Con" + + "tinuousParameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010M" + + "axValue\030\002 \001(\001\022\020\n\010MinValue\030\003 \001(\001\022J\n\013Scali" + + "ngType\030\004 \001(\01625.flyteidl.plugins.sagemake" + + "r.HyperparameterScalingType\"\225\001\n\025IntegerP" + + "arameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxValue\030" + + "\002 \001(\002\022\020\n\010MinValue\030\003 \001(\002\022J\n\013ScalingType\030\004" + + " \001(\01625.flyteidl.plugins.sagemaker.Hyperp" + + "arameterScalingType\"9\n\031CategoricalParame" + + "terRange\022\014\n\004Name\030\001 \001(\t\022\016\n\006Values\030\002 \003(\t\"\230" + + "\002\n\017ParameterRanges\022W\n\031ContinuousParamete" + + "rRanges\030\001 \003(\01324.flyteidl.plugins.sagemak" + + "er.ContinuousParameterRange\022Q\n\026IntegerPa" + + "rameterRanges\030\002 \003(\01321.flyteidl.plugins.s" + + "agemaker.IntegerParameterRange\022Y\n\032Catego" + + "ricalParameterRanges\030\003 \003(\01325.flyteidl.pl" + + "ugins.sagemaker.CategoricalParameterRang" + + "e\"\362\001\n\026AlgorithmSpecification\022\025\n\rTraining" + + "Image\030\001 \001(\t\022\031\n\021TrainingInputMode\030\002 \001(\t\022\025" + + "\n\rAlgorithmName\030\003 \001(\t\022^\n\021MetricDefinitio" + + "ns\030\004 \003(\0132C.flyteidl.plugins.sagemaker.Al" + + "gorithmSpecification.MetricDefinition\032/\n" + + "\020MetricDefinition\022\014\n\004Name\030\001 \001(\t\022\r\n\005Regex" + + "\030\002 \001(\t\"m\n\016ResourceConfig\022\024\n\014InstanceType" + + "\030\001 \001(\t\022\025\n\rInstanceCount\030\002 \001(\003\022\026\n\016VolumeS" + + "izeInGB\030\003 \001(\003\022\026\n\016VolumeKmsKeyId\030\004 \001(\t\"N\n" + + "\021StoppingCondition\022\033\n\023MaxRuntimeInSecond" + + "s\030\001 \001(\003\022\034\n\024MaxWaitTimeInSeconds\030\002 \001(\003\"6\n" + + "\tVpcConfig\022\030\n\020SecurityGroupIds\030\001 \003(\t\022\017\n\007" + + "Subnets\030\002 \003(\t\"\357\002\n\024SagemakerTrainingJob\022\016" + + "\n\006Region\030\001 \001(\t\022\017\n\007RoleArn\030\002 \001(\t\022R\n\026Algor" + + "ithmSpecification\030\003 \001(\01322.flyteidl.plugi" + + "ns.sagemaker.AlgorithmSpecification\022B\n\016R" + + "esourceConfig\030\004 \001(\0132*.flyteidl.plugins.s" + + "agemaker.ResourceConfig\022H\n\021StoppingCondi" + + "tion\030\005 \001(\0132-.flyteidl.plugins.sagemaker." + + "StoppingCondition\0228\n\tVpcConfig\030\006 \001(\0132%.f" + + "lyteidl.plugins.sagemaker.VpcConfig\022\032\n\022E" + + "nableSpotTraining\030\007 \001(\010\"\247\001\n\017HPOJobObject" + + "ive\022M\n\004Type\030\001 \001(\0162?.flyteidl.plugins.sag" + + "emaker.HPOJobObjective.HPOJobObjectiveTy" + + "pe\022\022\n\nMetricName\030\002 \001(\t\"1\n\023HPOJobObjectiv" + + "eType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\262\002\n\017Sa" + + "gemakerHPOJob\022\020\n\010Strategy\030\001 \001(\t\022>\n\tObjec" + + "tive\030\002 \001(\0132+.flyteidl.plugins.sagemaker." + + "HPOJobObjective\022\037\n\027MaxNumberOfTrainingJo" + + "bs\030\003 \001(\003\022\037\n\027MaxParallelTrainingJobs\030\004 \001(" + + "\003\022D\n\017ParameterRanges\030\005 \001(\0132+.flyteidl.pl" + + "ugins.sagemaker.ParameterRanges\022E\n\013Train" + + "ingJob\030\006 \001(\01320.flyteidl.plugins.sagemake" + + "r.SagemakerTrainingJob*Z\n\031Hyperparameter" + + "ScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001\022\017\n\013LOG" + + "ARITHMIC\020\002\022\026\n\022REVERSELOGARITHMIC\020\003B5Z3gi" + + "thub.com/lyft/flyteidl/gen/pb-go/flyteid" + + "l/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -11612,77 +11614,77 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); - internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_descriptor = + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_sagemaker_ContinuousParameterRange_descriptor, + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor, new java.lang.String[] { "Name", "MaxValue", "MinValue", "ScalingType", }); - internal_static_flyte_plugins_sagemaker_IntegerParameterRange_descriptor = + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor = getDescriptor().getMessageTypes().get(1); - internal_static_flyte_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_sagemaker_IntegerParameterRange_descriptor, + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor, new java.lang.String[] { "Name", "MaxValue", "MinValue", "ScalingType", }); - internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_descriptor = + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_sagemaker_CategoricalParameterRange_descriptor, + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor, new java.lang.String[] { "Name", "Values", }); - internal_static_flyte_plugins_sagemaker_ParameterRanges_descriptor = + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor = getDescriptor().getMessageTypes().get(3); - internal_static_flyte_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_sagemaker_ParameterRanges_descriptor, + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor, new java.lang.String[] { "ContinuousParameterRanges", "IntegerParameterRanges", "CategoricalParameterRanges", }); - internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor = + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = getDescriptor().getMessageTypes().get(4); - internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor, + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, new java.lang.String[] { "TrainingImage", "TrainingInputMode", "AlgorithmName", "MetricDefinitions", }); - internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor = - internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_descriptor.getNestedTypes().get(0); - internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor = + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, new java.lang.String[] { "Name", "Regex", }); - internal_static_flyte_plugins_sagemaker_ResourceConfig_descriptor = + internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor = getDescriptor().getMessageTypes().get(5); - internal_static_flyte_plugins_sagemaker_ResourceConfig_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_sagemaker_ResourceConfig_descriptor, + internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor, new java.lang.String[] { "InstanceType", "InstanceCount", "VolumeSizeInGB", "VolumeKmsKeyId", }); - internal_static_flyte_plugins_sagemaker_StoppingCondition_descriptor = + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor = getDescriptor().getMessageTypes().get(6); - internal_static_flyte_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_sagemaker_StoppingCondition_descriptor, + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor, new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", }); - internal_static_flyte_plugins_sagemaker_VpcConfig_descriptor = + internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor = getDescriptor().getMessageTypes().get(7); - internal_static_flyte_plugins_sagemaker_VpcConfig_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_sagemaker_VpcConfig_descriptor, + internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor, new java.lang.String[] { "SecurityGroupIds", "Subnets", }); - internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_descriptor = + internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_descriptor = getDescriptor().getMessageTypes().get(8); - internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_sagemaker_SagemakerTrainingJob_descriptor, + internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_descriptor, new java.lang.String[] { "Region", "RoleArn", "AlgorithmSpecification", "ResourceConfig", "StoppingCondition", "VpcConfig", "EnableSpotTraining", }); - internal_static_flyte_plugins_sagemaker_HPOJobObjective_descriptor = + internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor = getDescriptor().getMessageTypes().get(9); - internal_static_flyte_plugins_sagemaker_HPOJobObjective_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_sagemaker_HPOJobObjective_descriptor, + internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor, new java.lang.String[] { "Type", "MetricName", }); - internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_descriptor = + internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_descriptor = getDescriptor().getMessageTypes().get(10); - internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyte_plugins_sagemaker_SagemakerHPOJob_descriptor, + internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_descriptor, new java.lang.String[] { "Strategy", "Objective", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", "ParameterRanges", "TrainingJob", }); } diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/sagemaker.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/sagemaker.proto.rst index dd3ad23bd..9f44624cc 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/sagemaker.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/sagemaker.proto.rst @@ -3,12 +3,12 @@ sagemaker.proto ========================================== -.. _api_msg_flyte.plugins.sagemaker.ContinuousParameterRange: +.. _api_msg_flyteidl.plugins.sagemaker.ContinuousParameterRange: -flyte.plugins.sagemaker.ContinuousParameterRange ------------------------------------------------- +flyteidl.plugins.sagemaker.ContinuousParameterRange +--------------------------------------------------- -`[flyte.plugins.sagemaker.ContinuousParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_ .. code-block:: json @@ -20,34 +20,34 @@ flyte.plugins.sagemaker.ContinuousParameterRange "ScalingType": "..." } -.. _api_field_flyte.plugins.sagemaker.ContinuousParameterRange.Name: +.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.Name: Name (`string `_) -.. _api_field_flyte.plugins.sagemaker.ContinuousParameterRange.MaxValue: +.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue: MaxValue (`double `_) -.. _api_field_flyte.plugins.sagemaker.ContinuousParameterRange.MinValue: +.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue: MinValue (`double `_) -.. _api_field_flyte.plugins.sagemaker.ContinuousParameterRange.ScalingType: +.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType: ScalingType - (:ref:`flyte.plugins.sagemaker.HyperparameterScalingType `) + (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) -.. _api_msg_flyte.plugins.sagemaker.IntegerParameterRange: +.. _api_msg_flyteidl.plugins.sagemaker.IntegerParameterRange: -flyte.plugins.sagemaker.IntegerParameterRange ---------------------------------------------- +flyteidl.plugins.sagemaker.IntegerParameterRange +------------------------------------------------ -`[flyte.plugins.sagemaker.IntegerParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_ .. code-block:: json @@ -59,34 +59,34 @@ flyte.plugins.sagemaker.IntegerParameterRange "ScalingType": "..." } -.. _api_field_flyte.plugins.sagemaker.IntegerParameterRange.Name: +.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.Name: Name (`string `_) -.. _api_field_flyte.plugins.sagemaker.IntegerParameterRange.MaxValue: +.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue: MaxValue (`float `_) -.. _api_field_flyte.plugins.sagemaker.IntegerParameterRange.MinValue: +.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue: MinValue (`float `_) -.. _api_field_flyte.plugins.sagemaker.IntegerParameterRange.ScalingType: +.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType: ScalingType - (:ref:`flyte.plugins.sagemaker.HyperparameterScalingType `) + (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) -.. _api_msg_flyte.plugins.sagemaker.CategoricalParameterRange: +.. _api_msg_flyteidl.plugins.sagemaker.CategoricalParameterRange: -flyte.plugins.sagemaker.CategoricalParameterRange -------------------------------------------------- +flyteidl.plugins.sagemaker.CategoricalParameterRange +---------------------------------------------------- -`[flyte.plugins.sagemaker.CategoricalParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_ .. code-block:: json @@ -96,24 +96,24 @@ flyte.plugins.sagemaker.CategoricalParameterRange "Values": [] } -.. _api_field_flyte.plugins.sagemaker.CategoricalParameterRange.Name: +.. _api_field_flyteidl.plugins.sagemaker.CategoricalParameterRange.Name: Name (`string `_) -.. _api_field_flyte.plugins.sagemaker.CategoricalParameterRange.Values: +.. _api_field_flyteidl.plugins.sagemaker.CategoricalParameterRange.Values: Values (`string `_) -.. _api_msg_flyte.plugins.sagemaker.ParameterRanges: +.. _api_msg_flyteidl.plugins.sagemaker.ParameterRanges: -flyte.plugins.sagemaker.ParameterRanges ---------------------------------------- +flyteidl.plugins.sagemaker.ParameterRanges +------------------------------------------ -`[flyte.plugins.sagemaker.ParameterRanges proto] `_ +`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ .. code-block:: json @@ -124,29 +124,29 @@ flyte.plugins.sagemaker.ParameterRanges "CategoricalParameterRanges": [] } -.. _api_field_flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges: +.. _api_field_flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges: ContinuousParameterRanges - (:ref:`flyte.plugins.sagemaker.ContinuousParameterRange `) + (:ref:`flyteidl.plugins.sagemaker.ContinuousParameterRange `) -.. _api_field_flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges: +.. _api_field_flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges: IntegerParameterRanges - (:ref:`flyte.plugins.sagemaker.IntegerParameterRange `) + (:ref:`flyteidl.plugins.sagemaker.IntegerParameterRange `) -.. _api_field_flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges: +.. _api_field_flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges: CategoricalParameterRanges - (:ref:`flyte.plugins.sagemaker.CategoricalParameterRange `) + (:ref:`flyteidl.plugins.sagemaker.CategoricalParameterRange `) -.. _api_msg_flyte.plugins.sagemaker.AlgorithmSpecification: +.. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification: -flyte.plugins.sagemaker.AlgorithmSpecification ----------------------------------------------- +flyteidl.plugins.sagemaker.AlgorithmSpecification +------------------------------------------------- -`[flyte.plugins.sagemaker.AlgorithmSpecification proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ .. code-block:: json @@ -158,32 +158,32 @@ flyte.plugins.sagemaker.AlgorithmSpecification "MetricDefinitions": [] } -.. _api_field_flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage: TrainingImage (`string `_) -.. _api_field_flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode: TrainingInputMode (`string `_) -.. _api_field_flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName: AlgorithmName (`string `_) -.. _api_field_flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions: MetricDefinitions - (:ref:`flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition `) + (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition `) -.. _api_msg_flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition: +.. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition: -flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition ---------------------------------------------------------------- +flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition +------------------------------------------------------------------ -`[flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ .. code-block:: json @@ -193,12 +193,12 @@ flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition "Regex": "..." } -.. _api_field_flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name: Name (`string `_) -.. _api_field_flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex: Regex (`string `_) @@ -206,12 +206,12 @@ Regex -.. _api_msg_flyte.plugins.sagemaker.ResourceConfig: +.. _api_msg_flyteidl.plugins.sagemaker.ResourceConfig: -flyte.plugins.sagemaker.ResourceConfig --------------------------------------- +flyteidl.plugins.sagemaker.ResourceConfig +----------------------------------------- -`[flyte.plugins.sagemaker.ResourceConfig proto] `_ +`[flyteidl.plugins.sagemaker.ResourceConfig proto] `_ .. code-block:: json @@ -223,34 +223,34 @@ flyte.plugins.sagemaker.ResourceConfig "VolumeKmsKeyId": "..." } -.. _api_field_flyte.plugins.sagemaker.ResourceConfig.InstanceType: +.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.InstanceType: InstanceType (`string `_) -.. _api_field_flyte.plugins.sagemaker.ResourceConfig.InstanceCount: +.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount: InstanceCount (`int64 `_) -.. _api_field_flyte.plugins.sagemaker.ResourceConfig.VolumeSizeInGB: +.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB: VolumeSizeInGB (`int64 `_) -.. _api_field_flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId: +.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId: VolumeKmsKeyId (`string `_) -.. _api_msg_flyte.plugins.sagemaker.StoppingCondition: +.. _api_msg_flyteidl.plugins.sagemaker.StoppingCondition: -flyte.plugins.sagemaker.StoppingCondition ------------------------------------------ +flyteidl.plugins.sagemaker.StoppingCondition +-------------------------------------------- -`[flyte.plugins.sagemaker.StoppingCondition proto] `_ +`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ .. code-block:: json @@ -260,24 +260,24 @@ flyte.plugins.sagemaker.StoppingCondition "MaxWaitTimeInSeconds": "..." } -.. _api_field_flyte.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds: +.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds: MaxRuntimeInSeconds (`int64 `_) -.. _api_field_flyte.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds: +.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds: MaxWaitTimeInSeconds (`int64 `_) -.. _api_msg_flyte.plugins.sagemaker.VpcConfig: +.. _api_msg_flyteidl.plugins.sagemaker.VpcConfig: -flyte.plugins.sagemaker.VpcConfig ---------------------------------- +flyteidl.plugins.sagemaker.VpcConfig +------------------------------------ -`[flyte.plugins.sagemaker.VpcConfig proto] `_ +`[flyteidl.plugins.sagemaker.VpcConfig proto] `_ .. code-block:: json @@ -287,24 +287,24 @@ flyte.plugins.sagemaker.VpcConfig "Subnets": [] } -.. _api_field_flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds: +.. _api_field_flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds: SecurityGroupIds (`string `_) -.. _api_field_flyte.plugins.sagemaker.VpcConfig.Subnets: +.. _api_field_flyteidl.plugins.sagemaker.VpcConfig.Subnets: Subnets (`string `_) -.. _api_msg_flyte.plugins.sagemaker.SagemakerTrainingJob: +.. _api_msg_flyteidl.plugins.sagemaker.SagemakerTrainingJob: -flyte.plugins.sagemaker.SagemakerTrainingJob --------------------------------------------- +flyteidl.plugins.sagemaker.SagemakerTrainingJob +----------------------------------------------- -`[flyte.plugins.sagemaker.SagemakerTrainingJob proto] `_ +`[flyteidl.plugins.sagemaker.SagemakerTrainingJob proto] `_ .. code-block:: json @@ -319,49 +319,49 @@ flyte.plugins.sagemaker.SagemakerTrainingJob "EnableSpotTraining": "..." } -.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.Region: +.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region: Region (`string `_) -.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn: +.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn: RoleArn (`string `_) -.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification: +.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification: AlgorithmSpecification - (:ref:`flyte.plugins.sagemaker.AlgorithmSpecification `) + (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification `) -.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig: +.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig: ResourceConfig - (:ref:`flyte.plugins.sagemaker.ResourceConfig `) + (:ref:`flyteidl.plugins.sagemaker.ResourceConfig `) -.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition: +.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition: StoppingCondition - (:ref:`flyte.plugins.sagemaker.StoppingCondition `) + (:ref:`flyteidl.plugins.sagemaker.StoppingCondition `) -.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.VpcConfig: +.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.VpcConfig: VpcConfig - (:ref:`flyte.plugins.sagemaker.VpcConfig `) + (:ref:`flyteidl.plugins.sagemaker.VpcConfig `) -.. _api_field_flyte.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining: +.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining: EnableSpotTraining (`bool `_) -.. _api_msg_flyte.plugins.sagemaker.HPOJobObjective: +.. _api_msg_flyteidl.plugins.sagemaker.HPOJobObjective: -flyte.plugins.sagemaker.HPOJobObjective ---------------------------------------- +flyteidl.plugins.sagemaker.HPOJobObjective +------------------------------------------ -`[flyte.plugins.sagemaker.HPOJobObjective proto] `_ +`[flyteidl.plugins.sagemaker.HPOJobObjective proto] `_ .. code-block:: json @@ -371,24 +371,42 @@ flyte.plugins.sagemaker.HPOJobObjective "MetricName": "..." } -.. _api_field_flyte.plugins.sagemaker.HPOJobObjective.Type: +.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.Type: Type - (:ref:`flyte.plugins.sagemaker.HPOJobObjectiveType `) + (:ref:`flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType `) -.. _api_field_flyte.plugins.sagemaker.HPOJobObjective.MetricName: +.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.MetricName: MetricName (`string `_) +.. _api_enum_flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType: + +Enum flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType +------------------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType.MINIMIZE: + +MINIMIZE + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType.MAXIMIZE: + +MAXIMIZE + ⁣ + -.. _api_msg_flyte.plugins.sagemaker.SagemakerHPOJob: +.. _api_msg_flyteidl.plugins.sagemaker.SagemakerHPOJob: -flyte.plugins.sagemaker.SagemakerHPOJob ---------------------------------------- +flyteidl.plugins.sagemaker.SagemakerHPOJob +------------------------------------------ -`[flyte.plugins.sagemaker.SagemakerHPOJob proto] `_ +`[flyteidl.plugins.sagemaker.SagemakerHPOJob proto] `_ .. code-block:: json @@ -402,81 +420,62 @@ flyte.plugins.sagemaker.SagemakerHPOJob "TrainingJob": "{...}" } -.. _api_field_flyte.plugins.sagemaker.SagemakerHPOJob.Strategy: +.. _api_field_flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy: Strategy (`string `_) -.. _api_field_flyte.plugins.sagemaker.SagemakerHPOJob.Objective: +.. _api_field_flyteidl.plugins.sagemaker.SagemakerHPOJob.Objective: Objective - (:ref:`flyte.plugins.sagemaker.HPOJobObjective `) + (:ref:`flyteidl.plugins.sagemaker.HPOJobObjective `) -.. _api_field_flyte.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs: +.. _api_field_flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs: MaxNumberOfTrainingJobs (`int64 `_) -.. _api_field_flyte.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs: +.. _api_field_flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs: MaxParallelTrainingJobs (`int64 `_) -.. _api_field_flyte.plugins.sagemaker.SagemakerHPOJob.ParameterRanges: +.. _api_field_flyteidl.plugins.sagemaker.SagemakerHPOJob.ParameterRanges: ParameterRanges - (:ref:`flyte.plugins.sagemaker.ParameterRanges `) + (:ref:`flyteidl.plugins.sagemaker.ParameterRanges `) -.. _api_field_flyte.plugins.sagemaker.SagemakerHPOJob.TrainingJob: +.. _api_field_flyteidl.plugins.sagemaker.SagemakerHPOJob.TrainingJob: TrainingJob - (:ref:`flyte.plugins.sagemaker.SagemakerTrainingJob `) + (:ref:`flyteidl.plugins.sagemaker.SagemakerTrainingJob `) -.. _api_enum_flyte.plugins.sagemaker.HyperparameterScalingType: +.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterScalingType: -Enum flyte.plugins.sagemaker.HyperparameterScalingType ------------------------------------------------------- +Enum flyteidl.plugins.sagemaker.HyperparameterScalingType +--------------------------------------------------------- -`[flyte.plugins.sagemaker.HyperparameterScalingType proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_ -.. _api_enum_value_flyte.plugins.sagemaker.HyperparameterScalingType.AUTO: +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.AUTO: AUTO *(DEFAULT)* ⁣ -.. _api_enum_value_flyte.plugins.sagemaker.HyperparameterScalingType.LINEAR: +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.LINEAR: LINEAR ⁣ -.. _api_enum_value_flyte.plugins.sagemaker.HyperparameterScalingType.LOGARITHMIC: +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.LOGARITHMIC: LOGARITHMIC ⁣ -.. _api_enum_value_flyte.plugins.sagemaker.HyperparameterScalingType.REVERSELOGARITHMIC: +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.REVERSELOGARITHMIC: REVERSELOGARITHMIC ⁣ - -.. _api_enum_flyte.plugins.sagemaker.HPOJobObjectiveType: - -Enum flyte.plugins.sagemaker.HPOJobObjectiveType ------------------------------------------------- - -`[flyte.plugins.sagemaker.HPOJobObjectiveType proto] `_ - - -.. _api_enum_value_flyte.plugins.sagemaker.HPOJobObjectiveType.MINIMIZE: - -MINIMIZE - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyte.plugins.sagemaker.HPOJobObjectiveType.MAXIMIZE: - -MAXIMIZE - ⁣ - diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2.py index d50bcf55e..27b6ed74b 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2.py @@ -18,15 +18,15 @@ DESCRIPTOR = _descriptor.FileDescriptor( name='flyteidl/plugins/sagemaker/sagemaker.proto', - package='flyte.plugins.sagemaker', + package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n*flyteidl/plugins/sagemaker/sagemaker.proto\x12\x17\x66lyte.plugins.sagemaker\"\x95\x01\n\x18\x43ontinuousParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x10\n\x08MaxValue\x18\x02 \x01(\x01\x12\x10\n\x08MinValue\x18\x03 \x01(\x01\x12G\n\x0bScalingType\x18\x04 \x01(\x0e\x32\x32.flyte.plugins.sagemaker.HyperparameterScalingType\"\x92\x01\n\x15IntegerParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x10\n\x08MaxValue\x18\x02 \x01(\x02\x12\x10\n\x08MinValue\x18\x03 \x01(\x02\x12G\n\x0bScalingType\x18\x04 \x01(\x0e\x32\x32.flyte.plugins.sagemaker.HyperparameterScalingType\"9\n\x19\x43\x61tegoricalParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x0e\n\x06Values\x18\x02 \x03(\t\"\x8f\x02\n\x0fParameterRanges\x12T\n\x19\x43ontinuousParameterRanges\x18\x01 \x03(\x0b\x32\x31.flyte.plugins.sagemaker.ContinuousParameterRange\x12N\n\x16IntegerParameterRanges\x18\x02 \x03(\x0b\x32..flyte.plugins.sagemaker.IntegerParameterRange\x12V\n\x1a\x43\x61tegoricalParameterRanges\x18\x03 \x03(\x0b\x32\x32.flyte.plugins.sagemaker.CategoricalParameterRange\"\xef\x01\n\x16\x41lgorithmSpecification\x12\x15\n\rTrainingImage\x18\x01 \x01(\t\x12\x19\n\x11TrainingInputMode\x18\x02 \x01(\t\x12\x15\n\rAlgorithmName\x18\x03 \x01(\t\x12[\n\x11MetricDefinitions\x18\x04 \x03(\x0b\x32@.flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\r\n\x05Regex\x18\x02 \x01(\t\"m\n\x0eResourceConfig\x12\x14\n\x0cInstanceType\x18\x01 \x01(\t\x12\x15\n\rInstanceCount\x18\x02 \x01(\x03\x12\x16\n\x0eVolumeSizeInGB\x18\x03 \x01(\x03\x12\x16\n\x0eVolumeKmsKeyId\x18\x04 \x01(\t\"N\n\x11StoppingCondition\x12\x1b\n\x13MaxRuntimeInSeconds\x18\x01 \x01(\x03\x12\x1c\n\x14MaxWaitTimeInSeconds\x18\x02 \x01(\x03\"6\n\tVpcConfig\x12\x18\n\x10SecurityGroupIds\x18\x01 \x03(\t\x12\x0f\n\x07Subnets\x18\x02 \x03(\t\"\xe3\x02\n\x14SagemakerTrainingJob\x12\x0e\n\x06Region\x18\x01 \x01(\t\x12\x0f\n\x07RoleArn\x18\x02 \x01(\t\x12O\n\x16\x41lgorithmSpecification\x18\x03 \x01(\x0b\x32/.flyte.plugins.sagemaker.AlgorithmSpecification\x12?\n\x0eResourceConfig\x18\x04 \x01(\x0b\x32\'.flyte.plugins.sagemaker.ResourceConfig\x12\x45\n\x11StoppingCondition\x18\x05 \x01(\x0b\x32*.flyte.plugins.sagemaker.StoppingCondition\x12\x35\n\tVpcConfig\x18\x06 \x01(\x0b\x32\".flyte.plugins.sagemaker.VpcConfig\x12\x1a\n\x12\x45nableSpotTraining\x18\x07 \x01(\x08\"a\n\x0fHPOJobObjective\x12:\n\x04Type\x18\x01 \x01(\x0e\x32,.flyte.plugins.sagemaker.HPOJobObjectiveType\x12\x12\n\nMetricName\x18\x02 \x01(\t\"\xa9\x02\n\x0fSagemakerHPOJob\x12\x10\n\x08Strategy\x18\x01 \x01(\t\x12;\n\tObjective\x18\x02 \x01(\x0b\x32(.flyte.plugins.sagemaker.HPOJobObjective\x12\x1f\n\x17MaxNumberOfTrainingJobs\x18\x03 \x01(\x03\x12\x1f\n\x17MaxParallelTrainingJobs\x18\x04 \x01(\x03\x12\x41\n\x0fParameterRanges\x18\x05 \x01(\x0b\x32(.flyte.plugins.sagemaker.ParameterRanges\x12\x42\n\x0bTrainingJob\x18\x06 \x01(\x0b\x32-.flyte.plugins.sagemaker.SagemakerTrainingJob*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03*1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n*flyteidl/plugins/sagemaker/sagemaker.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x98\x01\n\x18\x43ontinuousParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x10\n\x08MaxValue\x18\x02 \x01(\x01\x12\x10\n\x08MinValue\x18\x03 \x01(\x01\x12J\n\x0bScalingType\x18\x04 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x95\x01\n\x15IntegerParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x10\n\x08MaxValue\x18\x02 \x01(\x02\x12\x10\n\x08MinValue\x18\x03 \x01(\x02\x12J\n\x0bScalingType\x18\x04 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"9\n\x19\x43\x61tegoricalParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x0e\n\x06Values\x18\x02 \x03(\t\"\x98\x02\n\x0fParameterRanges\x12W\n\x19\x43ontinuousParameterRanges\x18\x01 \x03(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRange\x12Q\n\x16IntegerParameterRanges\x18\x02 \x03(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRange\x12Y\n\x1a\x43\x61tegoricalParameterRanges\x18\x03 \x03(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRange\"\xf2\x01\n\x16\x41lgorithmSpecification\x12\x15\n\rTrainingImage\x18\x01 \x01(\t\x12\x19\n\x11TrainingInputMode\x18\x02 \x01(\t\x12\x15\n\rAlgorithmName\x18\x03 \x01(\t\x12^\n\x11MetricDefinitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\r\n\x05Regex\x18\x02 \x01(\t\"m\n\x0eResourceConfig\x12\x14\n\x0cInstanceType\x18\x01 \x01(\t\x12\x15\n\rInstanceCount\x18\x02 \x01(\x03\x12\x16\n\x0eVolumeSizeInGB\x18\x03 \x01(\x03\x12\x16\n\x0eVolumeKmsKeyId\x18\x04 \x01(\t\"N\n\x11StoppingCondition\x12\x1b\n\x13MaxRuntimeInSeconds\x18\x01 \x01(\x03\x12\x1c\n\x14MaxWaitTimeInSeconds\x18\x02 \x01(\x03\"6\n\tVpcConfig\x12\x18\n\x10SecurityGroupIds\x18\x01 \x03(\t\x12\x0f\n\x07Subnets\x18\x02 \x03(\t\"\xef\x02\n\x14SagemakerTrainingJob\x12\x0e\n\x06Region\x18\x01 \x01(\t\x12\x0f\n\x07RoleArn\x18\x02 \x01(\t\x12R\n\x16\x41lgorithmSpecification\x18\x03 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12\x42\n\x0eResourceConfig\x18\x04 \x01(\x0b\x32*.flyteidl.plugins.sagemaker.ResourceConfig\x12H\n\x11StoppingCondition\x18\x05 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.StoppingCondition\x12\x38\n\tVpcConfig\x18\x06 \x01(\x0b\x32%.flyteidl.plugins.sagemaker.VpcConfig\x12\x1a\n\x12\x45nableSpotTraining\x18\x07 \x01(\x08\"\xa7\x01\n\x0fHPOJobObjective\x12M\n\x04Type\x18\x01 \x01(\x0e\x32?.flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType\x12\x12\n\nMetricName\x18\x02 \x01(\t\"1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\xb2\x02\n\x0fSagemakerHPOJob\x12\x10\n\x08Strategy\x18\x01 \x01(\t\x12>\n\tObjective\x18\x02 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.HPOJobObjective\x12\x1f\n\x17MaxNumberOfTrainingJobs\x18\x03 \x01(\x03\x12\x1f\n\x17MaxParallelTrainingJobs\x18\x04 \x01(\x03\x12\x44\n\x0fParameterRanges\x18\x05 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12\x45\n\x0bTrainingJob\x18\x06 \x01(\x0b\x32\x30.flyteidl.plugins.sagemaker.SagemakerTrainingJob*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') ) _HYPERPARAMETERSCALINGTYPE = _descriptor.EnumDescriptor( name='HyperparameterScalingType', - full_name='flyte.plugins.sagemaker.HyperparameterScalingType', + full_name='flyteidl.plugins.sagemaker.HyperparameterScalingType', filename=None, file=DESCRIPTOR, values=[ @@ -49,15 +49,21 @@ ], containing_type=None, serialized_options=None, - serialized_start=1951, - serialized_end=2041, + serialized_start=2064, + serialized_end=2154, ) _sym_db.RegisterEnumDescriptor(_HYPERPARAMETERSCALINGTYPE) HyperparameterScalingType = enum_type_wrapper.EnumTypeWrapper(_HYPERPARAMETERSCALINGTYPE) -_HPOJOBOBJECTIVETYPE = _descriptor.EnumDescriptor( +AUTO = 0 +LINEAR = 1 +LOGARITHMIC = 2 +REVERSELOGARITHMIC = 3 + + +_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE = _descriptor.EnumDescriptor( name='HPOJobObjectiveType', - full_name='flyte.plugins.sagemaker.HPOJobObjectiveType', + full_name='flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType', filename=None, file=DESCRIPTOR, values=[ @@ -72,51 +78,42 @@ ], containing_type=None, serialized_options=None, - serialized_start=2043, - serialized_end=2092, + serialized_start=1704, + serialized_end=1753, ) -_sym_db.RegisterEnumDescriptor(_HPOJOBOBJECTIVETYPE) - -HPOJobObjectiveType = enum_type_wrapper.EnumTypeWrapper(_HPOJOBOBJECTIVETYPE) -AUTO = 0 -LINEAR = 1 -LOGARITHMIC = 2 -REVERSELOGARITHMIC = 3 -MINIMIZE = 0 -MAXIMIZE = 1 - +_sym_db.RegisterEnumDescriptor(_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE) _CONTINUOUSPARAMETERRANGE = _descriptor.Descriptor( name='ContinuousParameterRange', - full_name='flyte.plugins.sagemaker.ContinuousParameterRange', + full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Name', full_name='flyte.plugins.sagemaker.ContinuousParameterRange.Name', index=0, + name='Name', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.Name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MaxValue', full_name='flyte.plugins.sagemaker.ContinuousParameterRange.MaxValue', index=1, + name='MaxValue', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue', index=1, number=2, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MinValue', full_name='flyte.plugins.sagemaker.ContinuousParameterRange.MinValue', index=2, + name='MinValue', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue', index=2, number=3, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ScalingType', full_name='flyte.plugins.sagemaker.ContinuousParameterRange.ScalingType', index=3, + name='ScalingType', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType', index=3, number=4, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -134,41 +131,41 @@ extension_ranges=[], oneofs=[ ], - serialized_start=72, - serialized_end=221, + serialized_start=75, + serialized_end=227, ) _INTEGERPARAMETERRANGE = _descriptor.Descriptor( name='IntegerParameterRange', - full_name='flyte.plugins.sagemaker.IntegerParameterRange', + full_name='flyteidl.plugins.sagemaker.IntegerParameterRange', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Name', full_name='flyte.plugins.sagemaker.IntegerParameterRange.Name', index=0, + name='Name', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.Name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MaxValue', full_name='flyte.plugins.sagemaker.IntegerParameterRange.MaxValue', index=1, + name='MaxValue', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue', index=1, number=2, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MinValue', full_name='flyte.plugins.sagemaker.IntegerParameterRange.MinValue', index=2, + name='MinValue', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue', index=2, number=3, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ScalingType', full_name='flyte.plugins.sagemaker.IntegerParameterRange.ScalingType', index=3, + name='ScalingType', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType', index=3, number=4, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -186,27 +183,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=224, - serialized_end=370, + serialized_start=230, + serialized_end=379, ) _CATEGORICALPARAMETERRANGE = _descriptor.Descriptor( name='CategoricalParameterRange', - full_name='flyte.plugins.sagemaker.CategoricalParameterRange', + full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Name', full_name='flyte.plugins.sagemaker.CategoricalParameterRange.Name', index=0, + name='Name', full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange.Name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='Values', full_name='flyte.plugins.sagemaker.CategoricalParameterRange.Values', index=1, + name='Values', full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange.Values', index=1, number=2, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -224,34 +221,34 @@ extension_ranges=[], oneofs=[ ], - serialized_start=372, - serialized_end=429, + serialized_start=381, + serialized_end=438, ) _PARAMETERRANGES = _descriptor.Descriptor( name='ParameterRanges', - full_name='flyte.plugins.sagemaker.ParameterRanges', + full_name='flyteidl.plugins.sagemaker.ParameterRanges', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='ContinuousParameterRanges', full_name='flyte.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges', index=0, + name='ContinuousParameterRanges', full_name='flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='IntegerParameterRanges', full_name='flyte.plugins.sagemaker.ParameterRanges.IntegerParameterRanges', index=1, + name='IntegerParameterRanges', full_name='flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='CategoricalParameterRanges', full_name='flyte.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges', index=2, + name='CategoricalParameterRanges', full_name='flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -269,27 +266,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=432, - serialized_end=703, + serialized_start=441, + serialized_end=721, ) _ALGORITHMSPECIFICATION_METRICDEFINITION = _descriptor.Descriptor( name='MetricDefinition', - full_name='flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition', + full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Name', full_name='flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name', index=0, + name='Name', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='Regex', full_name='flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex', index=1, + name='Regex', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -307,40 +304,40 @@ extension_ranges=[], oneofs=[ ], - serialized_start=898, - serialized_end=945, + serialized_start=919, + serialized_end=966, ) _ALGORITHMSPECIFICATION = _descriptor.Descriptor( name='AlgorithmSpecification', - full_name='flyte.plugins.sagemaker.AlgorithmSpecification', + full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='TrainingImage', full_name='flyte.plugins.sagemaker.AlgorithmSpecification.TrainingImage', index=0, + name='TrainingImage', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='TrainingInputMode', full_name='flyte.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode', index=1, + name='TrainingInputMode', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='AlgorithmName', full_name='flyte.plugins.sagemaker.AlgorithmSpecification.AlgorithmName', index=2, + name='AlgorithmName', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MetricDefinitions', full_name='flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions', index=3, + name='MetricDefinitions', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -358,41 +355,41 @@ extension_ranges=[], oneofs=[ ], - serialized_start=706, - serialized_end=945, + serialized_start=724, + serialized_end=966, ) _RESOURCECONFIG = _descriptor.Descriptor( name='ResourceConfig', - full_name='flyte.plugins.sagemaker.ResourceConfig', + full_name='flyteidl.plugins.sagemaker.ResourceConfig', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='InstanceType', full_name='flyte.plugins.sagemaker.ResourceConfig.InstanceType', index=0, + name='InstanceType', full_name='flyteidl.plugins.sagemaker.ResourceConfig.InstanceType', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='InstanceCount', full_name='flyte.plugins.sagemaker.ResourceConfig.InstanceCount', index=1, + name='InstanceCount', full_name='flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='VolumeSizeInGB', full_name='flyte.plugins.sagemaker.ResourceConfig.VolumeSizeInGB', index=2, + name='VolumeSizeInGB', full_name='flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB', index=2, number=3, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='VolumeKmsKeyId', full_name='flyte.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId', index=3, + name='VolumeKmsKeyId', full_name='flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -410,27 +407,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=947, - serialized_end=1056, + serialized_start=968, + serialized_end=1077, ) _STOPPINGCONDITION = _descriptor.Descriptor( name='StoppingCondition', - full_name='flyte.plugins.sagemaker.StoppingCondition', + full_name='flyteidl.plugins.sagemaker.StoppingCondition', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='MaxRuntimeInSeconds', full_name='flyte.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds', index=0, + name='MaxRuntimeInSeconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds', index=0, number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MaxWaitTimeInSeconds', full_name='flyte.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds', index=1, + name='MaxWaitTimeInSeconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -448,27 +445,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1058, - serialized_end=1136, + serialized_start=1079, + serialized_end=1157, ) _VPCCONFIG = _descriptor.Descriptor( name='VpcConfig', - full_name='flyte.plugins.sagemaker.VpcConfig', + full_name='flyteidl.plugins.sagemaker.VpcConfig', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='SecurityGroupIds', full_name='flyte.plugins.sagemaker.VpcConfig.SecurityGroupIds', index=0, + name='SecurityGroupIds', full_name='flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds', index=0, number=1, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='Subnets', full_name='flyte.plugins.sagemaker.VpcConfig.Subnets', index=1, + name='Subnets', full_name='flyteidl.plugins.sagemaker.VpcConfig.Subnets', index=1, number=2, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -486,62 +483,62 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1138, - serialized_end=1192, + serialized_start=1159, + serialized_end=1213, ) _SAGEMAKERTRAININGJOB = _descriptor.Descriptor( name='SagemakerTrainingJob', - full_name='flyte.plugins.sagemaker.SagemakerTrainingJob', + full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Region', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.Region', index=0, + name='Region', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='RoleArn', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.RoleArn', index=1, + name='RoleArn', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='AlgorithmSpecification', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification', index=2, + name='AlgorithmSpecification', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ResourceConfig', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig', index=3, + name='ResourceConfig', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='StoppingCondition', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition', index=4, + name='StoppingCondition', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='VpcConfig', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.VpcConfig', index=5, + name='VpcConfig', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.VpcConfig', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='EnableSpotTraining', full_name='flyte.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining', index=6, + name='EnableSpotTraining', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining', index=6, number=7, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, @@ -559,27 +556,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1195, - serialized_end=1550, + serialized_start=1216, + serialized_end=1583, ) _HPOJOBOBJECTIVE = _descriptor.Descriptor( name='HPOJobObjective', - full_name='flyte.plugins.sagemaker.HPOJobObjective', + full_name='flyteidl.plugins.sagemaker.HPOJobObjective', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Type', full_name='flyte.plugins.sagemaker.HPOJobObjective.Type', index=0, + name='Type', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.Type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MetricName', full_name='flyte.plugins.sagemaker.HPOJobObjective.MetricName', index=1, + name='MetricName', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.MetricName', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -590,6 +587,7 @@ ], nested_types=[], enum_types=[ + _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE, ], serialized_options=None, is_extendable=False, @@ -597,55 +595,55 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1552, - serialized_end=1649, + serialized_start=1586, + serialized_end=1753, ) _SAGEMAKERHPOJOB = _descriptor.Descriptor( name='SagemakerHPOJob', - full_name='flyte.plugins.sagemaker.SagemakerHPOJob', + full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Strategy', full_name='flyte.plugins.sagemaker.SagemakerHPOJob.Strategy', index=0, + name='Strategy', full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='Objective', full_name='flyte.plugins.sagemaker.SagemakerHPOJob.Objective', index=1, + name='Objective', full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob.Objective', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MaxNumberOfTrainingJobs', full_name='flyte.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs', index=2, + name='MaxNumberOfTrainingJobs', full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs', index=2, number=3, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MaxParallelTrainingJobs', full_name='flyte.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs', index=3, + name='MaxParallelTrainingJobs', full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs', index=3, number=4, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ParameterRanges', full_name='flyte.plugins.sagemaker.SagemakerHPOJob.ParameterRanges', index=4, + name='ParameterRanges', full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob.ParameterRanges', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='TrainingJob', full_name='flyte.plugins.sagemaker.SagemakerHPOJob.TrainingJob', index=5, + name='TrainingJob', full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob.TrainingJob', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -663,8 +661,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1652, - serialized_end=1949, + serialized_start=1756, + serialized_end=2062, ) _CONTINUOUSPARAMETERRANGE.fields_by_name['ScalingType'].enum_type = _HYPERPARAMETERSCALINGTYPE @@ -678,7 +676,8 @@ _SAGEMAKERTRAININGJOB.fields_by_name['ResourceConfig'].message_type = _RESOURCECONFIG _SAGEMAKERTRAININGJOB.fields_by_name['StoppingCondition'].message_type = _STOPPINGCONDITION _SAGEMAKERTRAININGJOB.fields_by_name['VpcConfig'].message_type = _VPCCONFIG -_HPOJOBOBJECTIVE.fields_by_name['Type'].enum_type = _HPOJOBOBJECTIVETYPE +_HPOJOBOBJECTIVE.fields_by_name['Type'].enum_type = _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE +_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE.containing_type = _HPOJOBOBJECTIVE _SAGEMAKERHPOJOB.fields_by_name['Objective'].message_type = _HPOJOBOBJECTIVE _SAGEMAKERHPOJOB.fields_by_name['ParameterRanges'].message_type = _PARAMETERRANGES _SAGEMAKERHPOJOB.fields_by_name['TrainingJob'].message_type = _SAGEMAKERTRAININGJOB @@ -694,34 +693,33 @@ DESCRIPTOR.message_types_by_name['HPOJobObjective'] = _HPOJOBOBJECTIVE DESCRIPTOR.message_types_by_name['SagemakerHPOJob'] = _SAGEMAKERHPOJOB DESCRIPTOR.enum_types_by_name['HyperparameterScalingType'] = _HYPERPARAMETERSCALINGTYPE -DESCRIPTOR.enum_types_by_name['HPOJobObjectiveType'] = _HPOJOBOBJECTIVETYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) ContinuousParameterRange = _reflection.GeneratedProtocolMessageType('ContinuousParameterRange', (_message.Message,), dict( DESCRIPTOR = _CONTINUOUSPARAMETERRANGE, __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ContinuousParameterRange) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) )) _sym_db.RegisterMessage(ContinuousParameterRange) IntegerParameterRange = _reflection.GeneratedProtocolMessageType('IntegerParameterRange', (_message.Message,), dict( DESCRIPTOR = _INTEGERPARAMETERRANGE, __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.IntegerParameterRange) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) )) _sym_db.RegisterMessage(IntegerParameterRange) CategoricalParameterRange = _reflection.GeneratedProtocolMessageType('CategoricalParameterRange', (_message.Message,), dict( DESCRIPTOR = _CATEGORICALPARAMETERRANGE, __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.CategoricalParameterRange) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) )) _sym_db.RegisterMessage(CategoricalParameterRange) ParameterRanges = _reflection.GeneratedProtocolMessageType('ParameterRanges', (_message.Message,), dict( DESCRIPTOR = _PARAMETERRANGES, __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ParameterRanges) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) )) _sym_db.RegisterMessage(ParameterRanges) @@ -730,12 +728,12 @@ MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict( DESCRIPTOR = _ALGORITHMSPECIFICATION_METRICDEFINITION, __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) )) , DESCRIPTOR = _ALGORITHMSPECIFICATION, __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.AlgorithmSpecification) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) )) _sym_db.RegisterMessage(AlgorithmSpecification) _sym_db.RegisterMessage(AlgorithmSpecification.MetricDefinition) @@ -743,42 +741,42 @@ ResourceConfig = _reflection.GeneratedProtocolMessageType('ResourceConfig', (_message.Message,), dict( DESCRIPTOR = _RESOURCECONFIG, __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.ResourceConfig) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ResourceConfig) )) _sym_db.RegisterMessage(ResourceConfig) StoppingCondition = _reflection.GeneratedProtocolMessageType('StoppingCondition', (_message.Message,), dict( DESCRIPTOR = _STOPPINGCONDITION, __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.StoppingCondition) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) )) _sym_db.RegisterMessage(StoppingCondition) VpcConfig = _reflection.GeneratedProtocolMessageType('VpcConfig', (_message.Message,), dict( DESCRIPTOR = _VPCCONFIG, __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.VpcConfig) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.VpcConfig) )) _sym_db.RegisterMessage(VpcConfig) SagemakerTrainingJob = _reflection.GeneratedProtocolMessageType('SagemakerTrainingJob', (_message.Message,), dict( DESCRIPTOR = _SAGEMAKERTRAININGJOB, __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.SagemakerTrainingJob) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.SagemakerTrainingJob) )) _sym_db.RegisterMessage(SagemakerTrainingJob) HPOJobObjective = _reflection.GeneratedProtocolMessageType('HPOJobObjective', (_message.Message,), dict( DESCRIPTOR = _HPOJOBOBJECTIVE, __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.HPOJobObjective) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobObjective) )) _sym_db.RegisterMessage(HPOJobObjective) SagemakerHPOJob = _reflection.GeneratedProtocolMessageType('SagemakerHPOJob', (_message.Message,), dict( DESCRIPTOR = _SAGEMAKERHPOJOB, __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyte.plugins.sagemaker.SagemakerHPOJob) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.SagemakerHPOJob) )) _sym_db.RegisterMessage(SagemakerHPOJob) diff --git a/protos/flyteidl/plugins/sagemaker/sagemaker.proto b/protos/flyteidl/plugins/sagemaker/sagemaker.proto index 2010c5024..692efff43 100644 --- a/protos/flyteidl/plugins/sagemaker/sagemaker.proto +++ b/protos/flyteidl/plugins/sagemaker/sagemaker.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package flyte.plugins.sagemaker; +package flyteidl.plugins.sagemaker; option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; @@ -75,12 +75,12 @@ message SagemakerTrainingJob { bool EnableSpotTraining = 7; } -enum HPOJobObjectiveType { - MINIMIZE = 0; - MAXIMIZE = 1; -} - message HPOJobObjective { + enum HPOJobObjectiveType { + MINIMIZE = 0; + MAXIMIZE = 1; + } + HPOJobObjectiveType Type = 1; string MetricName = 2; } From 1e676ed265ca0b1db90cfc04d41f5acc26774be3 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Fri, 29 May 2020 18:12:55 -0700 Subject: [PATCH 05/64] separate sagemaker related messages into multiple files --- ...sagemaker.grpc.pb.cc => hpojob.grpc.pb.cc} | 6 +- .../{sagemaker.grpc.pb.h => hpojob.grpc.pb.h} | 10 +- .../flyteidl/plugins/sagemaker/hpojob.pb.cc | 1135 ++ .../flyteidl/plugins/sagemaker/hpojob.pb.h | 745 + .../sagemaker/parameterranges.grpc.pb.cc | 26 + .../sagemaker/parameterranges.grpc.pb.h | 49 + .../plugins/sagemaker/parameterranges.pb.cc | 2208 +++ .../plugins/sagemaker/parameterranges.pb.h | 1163 ++ .../plugins/sagemaker/sagemaker.pb.cc | 5825 -------- .../flyteidl/plugins/sagemaker/sagemaker.pb.h | 3674 ----- .../plugins/sagemaker/trainingjob.grpc.pb.cc | 26 + .../plugins/sagemaker/trainingjob.grpc.pb.h | 49 + .../plugins/sagemaker/trainingjob.pb.cc | 2990 ++++ .../plugins/sagemaker/trainingjob.pb.h | 1963 +++ .../flyteidl/plugins/sagemaker/hpojob.pb.go | 209 + .../plugins/sagemaker/hpojob.pb.validate.go | 206 + .../plugins/sagemaker/parameterranges.pb.go | 383 + .../sagemaker/parameterranges.pb.validate.go | 439 + .../plugins/sagemaker/sagemaker.pb.go | 874 -- .../sagemaker/sagemaker.pb.validate.go | 1017 -- .../plugins/sagemaker/trainingjob.pb.go | 430 + .../sagemaker/trainingjob.pb.validate.go | 516 + .../flyteidl/plugins/sagemaker/Hpojob.java | 2300 +++ .../plugins/sagemaker/Parameterranges.java | 3975 ++++++ .../flyteidl/plugins/sagemaker/Sagemaker.java | 11692 ---------------- .../plugins/sagemaker/Trainingjob.java | 5753 ++++++++ .../plugins/sagemaker/hpojob.proto.rst | 100 + .../flyteidl/plugins/sagemaker/index.rst | 4 +- .../sagemaker/parameterranges.proto.rst | 182 + .../plugins/sagemaker/sagemaker.proto.rst | 481 - .../plugins/sagemaker/trainingjob.proto.rst | 219 + .../flyteidl/plugins/sagemaker/hpojob_pb2.py | 183 + ...gemaker_pb2_grpc.py => hpojob_pb2_grpc.py} | 0 .../plugins/sagemaker/parameterranges_pb2.py | 372 + .../sagemaker/parameterranges_pb2_grpc.py | 3 + .../plugins/sagemaker/sagemaker_pb2.py | 785 -- .../plugins/sagemaker/trainingjob_pb2.py | 376 + .../plugins/sagemaker/trainingjob_pb2_grpc.py | 3 + .../flyteidl/plugins/sagemaker/hpojob.proto | 30 + .../plugins/sagemaker/parameterranges.proto | 40 + .../plugins/sagemaker/sagemaker.proto | 98 - .../plugins/sagemaker/trainingjob.proto | 45 + 42 files changed, 26129 insertions(+), 24455 deletions(-) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{sagemaker.grpc.pb.cc => hpojob.grpc.pb.cc} (81%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{sagemaker.grpc.pb.h => hpojob.grpc.pb.h} (78%) create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.cc delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.h create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go delete mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.go delete mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.validate.go create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go create mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java create mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java delete mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/Sagemaker.java create mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java create mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst create mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst delete mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/sagemaker.proto.rst create mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py rename gen/pb_python/flyteidl/plugins/sagemaker/{sagemaker_pb2_grpc.py => hpojob_pb2_grpc.py} (100%) create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2_grpc.py delete mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2.py create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2_grpc.py create mode 100644 protos/flyteidl/plugins/sagemaker/hpojob.proto create mode 100644 protos/flyteidl/plugins/sagemaker/parameterranges.proto delete mode 100644 protos/flyteidl/plugins/sagemaker/sagemaker.proto create mode 100644 protos/flyteidl/plugins/sagemaker/trainingjob.proto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.cc similarity index 81% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.cc index d2bde2ad5..37c9c99a7 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.cc @@ -1,9 +1,9 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/sagemaker.proto +// source: flyteidl/plugins/sagemaker/hpojob.proto -#include "flyteidl/plugins/sagemaker/sagemaker.pb.h" -#include "flyteidl/plugins/sagemaker/sagemaker.grpc.pb.h" +#include "flyteidl/plugins/sagemaker/hpojob.pb.h" +#include "flyteidl/plugins/sagemaker/hpojob.grpc.pb.h" #include #include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.h similarity index 78% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.h index e9d72d287..a4849ff1f 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.h @@ -1,10 +1,10 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/sagemaker.proto -#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto__INCLUDED +// source: flyteidl/plugins/sagemaker/hpojob.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto__INCLUDED -#include "flyteidl/plugins/sagemaker/sagemaker.pb.h" +#include "flyteidl/plugins/sagemaker/hpojob.pb.h" #include #include @@ -46,4 +46,4 @@ namespace sagemaker { } // namespace flyteidl -#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto__INCLUDED +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc new file mode 100644 index 000000000..cbd559ded --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc @@ -0,0 +1,1135 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/hpojob.proto + +#include "flyteidl/plugins/sagemaker/hpojob.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class HPOJobObjectiveDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HPOJobObjective_default_instance_; +class HPOJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HPOJob_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsHPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HPOJobObjective_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HPOJobObjective(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HPOJobObjective::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto}, {}}; + +static void InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HPOJob_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HPOJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HPOJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto}, { + &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base, + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base, + &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[2]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, metricname_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, strategy_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, objective_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, maxnumberoftrainingjobs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, maxparalleltrainingjobs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, parameterranges_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, trainingjob_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJobObjective)}, + { 7, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJob)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJobObjective_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJob_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, "flyteidl/plugins/sagemaker/hpojob.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 2, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[] = + "\n\'flyteidl/plugins/sagemaker/hpojob.prot" + "o\022\032flyteidl.plugins.sagemaker\0320flyteidl/" + "plugins/sagemaker/parameterranges.proto\032" + ",flyteidl/plugins/sagemaker/trainingjob." + "proto\"\247\001\n\017HPOJobObjective\022M\n\004Type\030\001 \001(\0162" + "\?.flyteidl.plugins.sagemaker.HPOJobObjec" + "tive.HPOJobObjectiveType\022\022\n\nMetricName\030\002" + " \001(\t\"1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE\020" + "\000\022\014\n\010MAXIMIZE\020\001\"\240\002\n\006HPOJob\022\020\n\010Strategy\030\001" + " \001(\t\022>\n\tObjective\030\002 \001(\0132+.flyteidl.plugi" + "ns.sagemaker.HPOJobObjective\022\037\n\027MaxNumbe" + "rOfTrainingJobs\030\003 \001(\003\022\037\n\027MaxParallelTrai" + "ningJobs\030\004 \001(\003\022D\n\017ParameterRanges\030\005 \001(\0132" + "+.flyteidl.plugins.sagemaker.ParameterRa" + "nges\022<\n\013TrainingJob\030\006 \001(\0132\'.flyteidl.plu" + "gins.sagemaker.TrainingJobB5Z3github.com" + "/lyft/flyteidl/gen/pb-go/flyteidl/plugin" + "sb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, + "flyteidl/plugins/sagemaker/hpojob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 689, +}; + +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, + ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +const ::google::protobuf::EnumDescriptor* HPOJobObjective_HPOJobObjectiveType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[0]; +} +bool HPOJobObjective_HPOJobObjectiveType_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::MINIMIZE; +const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::MAXIMIZE; +const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::HPOJobObjectiveType_MIN; +const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::HPOJobObjectiveType_MAX; +const int HPOJobObjective::HPOJobObjectiveType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void HPOJobObjective::InitAsDefaultInstance() { +} +class HPOJobObjective::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HPOJobObjective::kTypeFieldNumber; +const int HPOJobObjective::kMetricNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HPOJobObjective::HPOJobObjective() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJobObjective) +} +HPOJobObjective::HPOJobObjective(const HPOJobObjective& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + metricname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.metricname().size() > 0) { + metricname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metricname_); + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJobObjective) +} + +void HPOJobObjective::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + metricname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 0; +} + +HPOJobObjective::~HPOJobObjective() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJobObjective) + SharedDtor(); +} + +void HPOJobObjective::SharedDtor() { + metricname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void HPOJobObjective::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HPOJobObjective& HPOJobObjective::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + return *internal_default_instance(); +} + + +void HPOJobObjective::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJobObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metricname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HPOJobObjective::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_type(static_cast<::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string MetricName = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HPOJobObjective.MetricName"); + object = msg->mutable_metricname(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HPOJobObjective::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJobObjective) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_type(static_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string MetricName = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_metricname())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metricname().data(), static_cast(this->metricname().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.HPOJobObjective.MetricName")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJobObjective) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJobObjective) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HPOJobObjective::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJobObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + if (this->type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + // string MetricName = 2; + if (this->metricname().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metricname().data(), static_cast(this->metricname().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.HPOJobObjective.MetricName"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->metricname(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJobObjective) +} + +::google::protobuf::uint8* HPOJobObjective::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJobObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + if (this->type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + // string MetricName = 2; + if (this->metricname().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metricname().data(), static_cast(this->metricname().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.HPOJobObjective.MetricName"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->metricname(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJobObjective) + return target; +} + +size_t HPOJobObjective::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJobObjective) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string MetricName = 2; + if (this->metricname().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->metricname()); + } + + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + if (this->type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HPOJobObjective::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) + GOOGLE_DCHECK_NE(&from, this); + const HPOJobObjective* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJobObjective) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJobObjective) + MergeFrom(*source); + } +} + +void HPOJobObjective::MergeFrom(const HPOJobObjective& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.metricname().size() > 0) { + + metricname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metricname_); + } + if (from.type() != 0) { + set_type(from.type()); + } +} + +void HPOJobObjective::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HPOJobObjective::CopyFrom(const HPOJobObjective& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HPOJobObjective::IsInitialized() const { + return true; +} + +void HPOJobObjective::Swap(HPOJobObjective* other) { + if (other == this) return; + InternalSwap(other); +} +void HPOJobObjective::InternalSwap(HPOJobObjective* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + metricname_.Swap(&other->metricname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(type_, other->type_); +} + +::google::protobuf::Metadata HPOJobObjective::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void HPOJob::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_HPOJob_default_instance_._instance.get_mutable()->objective_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective*>( + ::flyteidl::plugins::sagemaker::HPOJobObjective::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_HPOJob_default_instance_._instance.get_mutable()->parameterranges_ = const_cast< ::flyteidl::plugins::sagemaker::ParameterRanges*>( + ::flyteidl::plugins::sagemaker::ParameterRanges::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_HPOJob_default_instance_._instance.get_mutable()->trainingjob_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJob*>( + ::flyteidl::plugins::sagemaker::TrainingJob::internal_default_instance()); +} +class HPOJob::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::HPOJobObjective& objective(const HPOJob* msg); + static const ::flyteidl::plugins::sagemaker::ParameterRanges& parameterranges(const HPOJob* msg); + static const ::flyteidl::plugins::sagemaker::TrainingJob& trainingjob(const HPOJob* msg); +}; + +const ::flyteidl::plugins::sagemaker::HPOJobObjective& +HPOJob::HasBitSetters::objective(const HPOJob* msg) { + return *msg->objective_; +} +const ::flyteidl::plugins::sagemaker::ParameterRanges& +HPOJob::HasBitSetters::parameterranges(const HPOJob* msg) { + return *msg->parameterranges_; +} +const ::flyteidl::plugins::sagemaker::TrainingJob& +HPOJob::HasBitSetters::trainingjob(const HPOJob* msg) { + return *msg->trainingjob_; +} +void HPOJob::clear_parameterranges() { + if (GetArenaNoVirtual() == nullptr && parameterranges_ != nullptr) { + delete parameterranges_; + } + parameterranges_ = nullptr; +} +void HPOJob::clear_trainingjob() { + if (GetArenaNoVirtual() == nullptr && trainingjob_ != nullptr) { + delete trainingjob_; + } + trainingjob_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HPOJob::kStrategyFieldNumber; +const int HPOJob::kObjectiveFieldNumber; +const int HPOJob::kMaxNumberOfTrainingJobsFieldNumber; +const int HPOJob::kMaxParallelTrainingJobsFieldNumber; +const int HPOJob::kParameterRangesFieldNumber; +const int HPOJob::kTrainingJobFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HPOJob::HPOJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJob) +} +HPOJob::HPOJob(const HPOJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + strategy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.strategy().size() > 0) { + strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_); + } + if (from.has_objective()) { + objective_ = new ::flyteidl::plugins::sagemaker::HPOJobObjective(*from.objective_); + } else { + objective_ = nullptr; + } + if (from.has_parameterranges()) { + parameterranges_ = new ::flyteidl::plugins::sagemaker::ParameterRanges(*from.parameterranges_); + } else { + parameterranges_ = nullptr; + } + if (from.has_trainingjob()) { + trainingjob_ = new ::flyteidl::plugins::sagemaker::TrainingJob(*from.trainingjob_); + } else { + trainingjob_ = nullptr; + } + ::memcpy(&maxnumberoftrainingjobs_, &from.maxnumberoftrainingjobs_, + static_cast(reinterpret_cast(&maxparalleltrainingjobs_) - + reinterpret_cast(&maxnumberoftrainingjobs_)) + sizeof(maxparalleltrainingjobs_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJob) +} + +void HPOJob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + strategy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&objective_, 0, static_cast( + reinterpret_cast(&maxparalleltrainingjobs_) - + reinterpret_cast(&objective_)) + sizeof(maxparalleltrainingjobs_)); +} + +HPOJob::~HPOJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJob) + SharedDtor(); +} + +void HPOJob::SharedDtor() { + strategy_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete objective_; + if (this != internal_default_instance()) delete parameterranges_; + if (this != internal_default_instance()) delete trainingjob_; +} + +void HPOJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HPOJob& HPOJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + return *internal_default_instance(); +} + + +void HPOJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + strategy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && objective_ != nullptr) { + delete objective_; + } + objective_ = nullptr; + if (GetArenaNoVirtual() == nullptr && parameterranges_ != nullptr) { + delete parameterranges_; + } + parameterranges_ = nullptr; + if (GetArenaNoVirtual() == nullptr && trainingjob_ != nullptr) { + delete trainingjob_; + } + trainingjob_ = nullptr; + ::memset(&maxnumberoftrainingjobs_, 0, static_cast( + reinterpret_cast(&maxparalleltrainingjobs_) - + reinterpret_cast(&maxnumberoftrainingjobs_)) + sizeof(maxparalleltrainingjobs_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HPOJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string Strategy = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HPOJob.Strategy"); + object = msg->mutable_strategy(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::HPOJobObjective::_InternalParse; + object = msg->mutable_objective(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // int64 MaxNumberOfTrainingJobs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_maxnumberoftrainingjobs(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 MaxParallelTrainingJobs = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_maxparalleltrainingjobs(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::ParameterRanges::_InternalParse; + object = msg->mutable_parameterranges(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJob::_InternalParse; + object = msg->mutable_trainingjob(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HPOJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string Strategy = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_strategy())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->strategy().data(), static_cast(this->strategy().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.HPOJob.Strategy")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_objective())); + } else { + goto handle_unusual; + } + break; + } + + // int64 MaxNumberOfTrainingJobs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &maxnumberoftrainingjobs_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 MaxParallelTrainingJobs = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &maxparalleltrainingjobs_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_parameterranges())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_trainingjob())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HPOJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Strategy = 1; + if (this->strategy().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->strategy().data(), static_cast(this->strategy().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.HPOJob.Strategy"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->strategy(), output); + } + + // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + if (this->has_objective()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::objective(this), output); + } + + // int64 MaxNumberOfTrainingJobs = 3; + if (this->maxnumberoftrainingjobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->maxnumberoftrainingjobs(), output); + } + + // int64 MaxParallelTrainingJobs = 4; + if (this->maxparalleltrainingjobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->maxparalleltrainingjobs(), output); + } + + // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + if (this->has_parameterranges()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::parameterranges(this), output); + } + + // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + if (this->has_trainingjob()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::trainingjob(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJob) +} + +::google::protobuf::uint8* HPOJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Strategy = 1; + if (this->strategy().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->strategy().data(), static_cast(this->strategy().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.HPOJob.Strategy"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->strategy(), target); + } + + // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + if (this->has_objective()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::objective(this), target); + } + + // int64 MaxNumberOfTrainingJobs = 3; + if (this->maxnumberoftrainingjobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->maxnumberoftrainingjobs(), target); + } + + // int64 MaxParallelTrainingJobs = 4; + if (this->maxparalleltrainingjobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->maxparalleltrainingjobs(), target); + } + + // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + if (this->has_parameterranges()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::parameterranges(this), target); + } + + // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + if (this->has_trainingjob()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::trainingjob(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJob) + return target; +} + +size_t HPOJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string Strategy = 1; + if (this->strategy().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->strategy()); + } + + // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + if (this->has_objective()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *objective_); + } + + // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + if (this->has_parameterranges()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *parameterranges_); + } + + // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + if (this->has_trainingjob()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *trainingjob_); + } + + // int64 MaxNumberOfTrainingJobs = 3; + if (this->maxnumberoftrainingjobs() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->maxnumberoftrainingjobs()); + } + + // int64 MaxParallelTrainingJobs = 4; + if (this->maxparalleltrainingjobs() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->maxparalleltrainingjobs()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HPOJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJob) + GOOGLE_DCHECK_NE(&from, this); + const HPOJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJob) + MergeFrom(*source); + } +} + +void HPOJob::MergeFrom(const HPOJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.strategy().size() > 0) { + + strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_); + } + if (from.has_objective()) { + mutable_objective()->::flyteidl::plugins::sagemaker::HPOJobObjective::MergeFrom(from.objective()); + } + if (from.has_parameterranges()) { + mutable_parameterranges()->::flyteidl::plugins::sagemaker::ParameterRanges::MergeFrom(from.parameterranges()); + } + if (from.has_trainingjob()) { + mutable_trainingjob()->::flyteidl::plugins::sagemaker::TrainingJob::MergeFrom(from.trainingjob()); + } + if (from.maxnumberoftrainingjobs() != 0) { + set_maxnumberoftrainingjobs(from.maxnumberoftrainingjobs()); + } + if (from.maxparalleltrainingjobs() != 0) { + set_maxparalleltrainingjobs(from.maxparalleltrainingjobs()); + } +} + +void HPOJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HPOJob::CopyFrom(const HPOJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HPOJob::IsInitialized() const { + return true; +} + +void HPOJob::Swap(HPOJob* other) { + if (other == this) return; + InternalSwap(other); +} +void HPOJob::InternalSwap(HPOJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + strategy_.Swap(&other->strategy_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(objective_, other->objective_); + swap(parameterranges_, other->parameterranges_); + swap(trainingjob_, other->trainingjob_); + swap(maxnumberoftrainingjobs_, other->maxnumberoftrainingjobs_); + swap(maxparalleltrainingjobs_, other->maxparalleltrainingjobs_); +} + +::google::protobuf::Metadata HPOJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJobObjective* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJobObjective >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJobObjective >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJob >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h new file mode 100644 index 000000000..9572d4762 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h @@ -0,0 +1,745 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/hpojob.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" +#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[2] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class HPOJob; +class HPOJobDefaultTypeInternal; +extern HPOJobDefaultTypeInternal _HPOJob_default_instance_; +class HPOJobObjective; +class HPOJobObjectiveDefaultTypeInternal; +extern HPOJobObjectiveDefaultTypeInternal _HPOJobObjective_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJob>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HPOJobObjective* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobObjective>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +enum HPOJobObjective_HPOJobObjectiveType { + HPOJobObjective_HPOJobObjectiveType_MINIMIZE = 0, + HPOJobObjective_HPOJobObjectiveType_MAXIMIZE = 1, + HPOJobObjective_HPOJobObjectiveType_HPOJobObjective_HPOJobObjectiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HPOJobObjective_HPOJobObjectiveType_HPOJobObjective_HPOJobObjectiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HPOJobObjective_HPOJobObjectiveType_IsValid(int value); +const HPOJobObjective_HPOJobObjectiveType HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MIN = HPOJobObjective_HPOJobObjectiveType_MINIMIZE; +const HPOJobObjective_HPOJobObjectiveType HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MAX = HPOJobObjective_HPOJobObjectiveType_MAXIMIZE; +const int HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_ARRAYSIZE = HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HPOJobObjective_HPOJobObjectiveType_descriptor(); +inline const ::std::string& HPOJobObjective_HPOJobObjectiveType_Name(HPOJobObjective_HPOJobObjectiveType value) { + return ::google::protobuf::internal::NameOfEnum( + HPOJobObjective_HPOJobObjectiveType_descriptor(), value); +} +inline bool HPOJobObjective_HPOJobObjectiveType_Parse( + const ::std::string& name, HPOJobObjective_HPOJobObjectiveType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HPOJobObjective_HPOJobObjectiveType_descriptor(), name, value); +} +// =================================================================== + +class HPOJobObjective final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJobObjective) */ { + public: + HPOJobObjective(); + virtual ~HPOJobObjective(); + + HPOJobObjective(const HPOJobObjective& from); + + inline HPOJobObjective& operator=(const HPOJobObjective& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HPOJobObjective(HPOJobObjective&& from) noexcept + : HPOJobObjective() { + *this = ::std::move(from); + } + + inline HPOJobObjective& operator=(HPOJobObjective&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HPOJobObjective& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HPOJobObjective* internal_default_instance() { + return reinterpret_cast( + &_HPOJobObjective_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(HPOJobObjective* other); + friend void swap(HPOJobObjective& a, HPOJobObjective& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HPOJobObjective* New() const final { + return CreateMaybeMessage(nullptr); + } + + HPOJobObjective* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HPOJobObjective& from); + void MergeFrom(const HPOJobObjective& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HPOJobObjective* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef HPOJobObjective_HPOJobObjectiveType HPOJobObjectiveType; + static const HPOJobObjectiveType MINIMIZE = + HPOJobObjective_HPOJobObjectiveType_MINIMIZE; + static const HPOJobObjectiveType MAXIMIZE = + HPOJobObjective_HPOJobObjectiveType_MAXIMIZE; + static inline bool HPOJobObjectiveType_IsValid(int value) { + return HPOJobObjective_HPOJobObjectiveType_IsValid(value); + } + static const HPOJobObjectiveType HPOJobObjectiveType_MIN = + HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MIN; + static const HPOJobObjectiveType HPOJobObjectiveType_MAX = + HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MAX; + static const int HPOJobObjectiveType_ARRAYSIZE = + HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + HPOJobObjectiveType_descriptor() { + return HPOJobObjective_HPOJobObjectiveType_descriptor(); + } + static inline const ::std::string& HPOJobObjectiveType_Name(HPOJobObjectiveType value) { + return HPOJobObjective_HPOJobObjectiveType_Name(value); + } + static inline bool HPOJobObjectiveType_Parse(const ::std::string& name, + HPOJobObjectiveType* value) { + return HPOJobObjective_HPOJobObjectiveType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string MetricName = 2; + void clear_metricname(); + static const int kMetricNameFieldNumber = 2; + const ::std::string& metricname() const; + void set_metricname(const ::std::string& value); + #if LANG_CXX11 + void set_metricname(::std::string&& value); + #endif + void set_metricname(const char* value); + void set_metricname(const char* value, size_t size); + ::std::string* mutable_metricname(); + ::std::string* release_metricname(); + void set_allocated_metricname(::std::string* metricname); + + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + void clear_type(); + static const int kTypeFieldNumber = 1; + ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType type() const; + void set_type(::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobObjective) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr metricname_; + int type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; +}; +// ------------------------------------------------------------------- + +class HPOJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJob) */ { + public: + HPOJob(); + virtual ~HPOJob(); + + HPOJob(const HPOJob& from); + + inline HPOJob& operator=(const HPOJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HPOJob(HPOJob&& from) noexcept + : HPOJob() { + *this = ::std::move(from); + } + + inline HPOJob& operator=(HPOJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HPOJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HPOJob* internal_default_instance() { + return reinterpret_cast( + &_HPOJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(HPOJob* other); + friend void swap(HPOJob& a, HPOJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HPOJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + HPOJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HPOJob& from); + void MergeFrom(const HPOJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HPOJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string Strategy = 1; + void clear_strategy(); + static const int kStrategyFieldNumber = 1; + const ::std::string& strategy() const; + void set_strategy(const ::std::string& value); + #if LANG_CXX11 + void set_strategy(::std::string&& value); + #endif + void set_strategy(const char* value); + void set_strategy(const char* value, size_t size); + ::std::string* mutable_strategy(); + ::std::string* release_strategy(); + void set_allocated_strategy(::std::string* strategy); + + // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + bool has_objective() const; + void clear_objective(); + static const int kObjectiveFieldNumber = 2; + const ::flyteidl::plugins::sagemaker::HPOJobObjective& objective() const; + ::flyteidl::plugins::sagemaker::HPOJobObjective* release_objective(); + ::flyteidl::plugins::sagemaker::HPOJobObjective* mutable_objective(); + void set_allocated_objective(::flyteidl::plugins::sagemaker::HPOJobObjective* objective); + + // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + bool has_parameterranges() const; + void clear_parameterranges(); + static const int kParameterRangesFieldNumber = 5; + const ::flyteidl::plugins::sagemaker::ParameterRanges& parameterranges() const; + ::flyteidl::plugins::sagemaker::ParameterRanges* release_parameterranges(); + ::flyteidl::plugins::sagemaker::ParameterRanges* mutable_parameterranges(); + void set_allocated_parameterranges(::flyteidl::plugins::sagemaker::ParameterRanges* parameterranges); + + // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + bool has_trainingjob() const; + void clear_trainingjob(); + static const int kTrainingJobFieldNumber = 6; + const ::flyteidl::plugins::sagemaker::TrainingJob& trainingjob() const; + ::flyteidl::plugins::sagemaker::TrainingJob* release_trainingjob(); + ::flyteidl::plugins::sagemaker::TrainingJob* mutable_trainingjob(); + void set_allocated_trainingjob(::flyteidl::plugins::sagemaker::TrainingJob* trainingjob); + + // int64 MaxNumberOfTrainingJobs = 3; + void clear_maxnumberoftrainingjobs(); + static const int kMaxNumberOfTrainingJobsFieldNumber = 3; + ::google::protobuf::int64 maxnumberoftrainingjobs() const; + void set_maxnumberoftrainingjobs(::google::protobuf::int64 value); + + // int64 MaxParallelTrainingJobs = 4; + void clear_maxparalleltrainingjobs(); + static const int kMaxParallelTrainingJobsFieldNumber = 4; + ::google::protobuf::int64 maxparalleltrainingjobs() const; + void set_maxparalleltrainingjobs(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr strategy_; + ::flyteidl::plugins::sagemaker::HPOJobObjective* objective_; + ::flyteidl::plugins::sagemaker::ParameterRanges* parameterranges_; + ::flyteidl::plugins::sagemaker::TrainingJob* trainingjob_; + ::google::protobuf::int64 maxnumberoftrainingjobs_; + ::google::protobuf::int64 maxparalleltrainingjobs_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// HPOJobObjective + +// .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; +inline void HPOJobObjective::clear_type() { + type_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType HPOJobObjective::type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.Type) + return static_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType >(type_); +} +inline void HPOJobObjective::set_type(::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType value) { + + type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.Type) +} + +// string MetricName = 2; +inline void HPOJobObjective::clear_metricname() { + metricname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& HPOJobObjective::metricname() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) + return metricname_.GetNoArena(); +} +inline void HPOJobObjective::set_metricname(const ::std::string& value) { + + metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) +} +#if LANG_CXX11 +inline void HPOJobObjective::set_metricname(::std::string&& value) { + + metricname_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) +} +#endif +inline void HPOJobObjective::set_metricname(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) +} +inline void HPOJobObjective::set_metricname(const char* value, size_t size) { + + metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) +} +inline ::std::string* HPOJobObjective::mutable_metricname() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) + return metricname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* HPOJobObjective::release_metricname() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) + + return metricname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void HPOJobObjective::set_allocated_metricname(::std::string* metricname) { + if (metricname != nullptr) { + + } else { + + } + metricname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metricname); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) +} + +// ------------------------------------------------------------------- + +// HPOJob + +// string Strategy = 1; +inline void HPOJob::clear_strategy() { + strategy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& HPOJob::strategy() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.Strategy) + return strategy_.GetNoArena(); +} +inline void HPOJob::set_strategy(const ::std::string& value) { + + strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.Strategy) +} +#if LANG_CXX11 +inline void HPOJob::set_strategy(::std::string&& value) { + + strategy_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.HPOJob.Strategy) +} +#endif +inline void HPOJob::set_strategy(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.HPOJob.Strategy) +} +inline void HPOJob::set_strategy(const char* value, size_t size) { + + strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.HPOJob.Strategy) +} +inline ::std::string* HPOJob::mutable_strategy() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.Strategy) + return strategy_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* HPOJob::release_strategy() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.Strategy) + + return strategy_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void HPOJob::set_allocated_strategy(::std::string* strategy) { + if (strategy != nullptr) { + + } else { + + } + strategy_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), strategy); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.Strategy) +} + +// .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; +inline bool HPOJob::has_objective() const { + return this != internal_default_instance() && objective_ != nullptr; +} +inline void HPOJob::clear_objective() { + if (GetArenaNoVirtual() == nullptr && objective_ != nullptr) { + delete objective_; + } + objective_ = nullptr; +} +inline const ::flyteidl::plugins::sagemaker::HPOJobObjective& HPOJob::objective() const { + const ::flyteidl::plugins::sagemaker::HPOJobObjective* p = objective_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.Objective) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_HPOJobObjective_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::HPOJobObjective* HPOJob::release_objective() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.Objective) + + ::flyteidl::plugins::sagemaker::HPOJobObjective* temp = objective_; + objective_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::HPOJobObjective* HPOJob::mutable_objective() { + + if (objective_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobObjective>(GetArenaNoVirtual()); + objective_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.Objective) + return objective_; +} +inline void HPOJob::set_allocated_objective(::flyteidl::plugins::sagemaker::HPOJobObjective* objective) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete objective_; + } + if (objective) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + objective = ::google::protobuf::internal::GetOwnedMessage( + message_arena, objective, submessage_arena); + } + + } else { + + } + objective_ = objective; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.Objective) +} + +// int64 MaxNumberOfTrainingJobs = 3; +inline void HPOJob::clear_maxnumberoftrainingjobs() { + maxnumberoftrainingjobs_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 HPOJob::maxnumberoftrainingjobs() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.MaxNumberOfTrainingJobs) + return maxnumberoftrainingjobs_; +} +inline void HPOJob::set_maxnumberoftrainingjobs(::google::protobuf::int64 value) { + + maxnumberoftrainingjobs_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.MaxNumberOfTrainingJobs) +} + +// int64 MaxParallelTrainingJobs = 4; +inline void HPOJob::clear_maxparalleltrainingjobs() { + maxparalleltrainingjobs_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 HPOJob::maxparalleltrainingjobs() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.MaxParallelTrainingJobs) + return maxparalleltrainingjobs_; +} +inline void HPOJob::set_maxparalleltrainingjobs(::google::protobuf::int64 value) { + + maxparalleltrainingjobs_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.MaxParallelTrainingJobs) +} + +// .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; +inline bool HPOJob::has_parameterranges() const { + return this != internal_default_instance() && parameterranges_ != nullptr; +} +inline const ::flyteidl::plugins::sagemaker::ParameterRanges& HPOJob::parameterranges() const { + const ::flyteidl::plugins::sagemaker::ParameterRanges* p = parameterranges_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.ParameterRanges) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::ParameterRanges* HPOJob::release_parameterranges() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.ParameterRanges) + + ::flyteidl::plugins::sagemaker::ParameterRanges* temp = parameterranges_; + parameterranges_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::ParameterRanges* HPOJob::mutable_parameterranges() { + + if (parameterranges_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(GetArenaNoVirtual()); + parameterranges_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.ParameterRanges) + return parameterranges_; +} +inline void HPOJob::set_allocated_parameterranges(::flyteidl::plugins::sagemaker::ParameterRanges* parameterranges) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(parameterranges_); + } + if (parameterranges) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + parameterranges = ::google::protobuf::internal::GetOwnedMessage( + message_arena, parameterranges, submessage_arena); + } + + } else { + + } + parameterranges_ = parameterranges; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.ParameterRanges) +} + +// .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; +inline bool HPOJob::has_trainingjob() const { + return this != internal_default_instance() && trainingjob_ != nullptr; +} +inline const ::flyteidl::plugins::sagemaker::TrainingJob& HPOJob::trainingjob() const { + const ::flyteidl::plugins::sagemaker::TrainingJob* p = trainingjob_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.TrainingJob) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::release_trainingjob() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.TrainingJob) + + ::flyteidl::plugins::sagemaker::TrainingJob* temp = trainingjob_; + trainingjob_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::mutable_trainingjob() { + + if (trainingjob_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(GetArenaNoVirtual()); + trainingjob_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.TrainingJob) + return trainingjob_; +} +inline void HPOJob::set_allocated_trainingjob(::flyteidl::plugins::sagemaker::TrainingJob* trainingjob) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(trainingjob_); + } + if (trainingjob) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + trainingjob = ::google::protobuf::internal::GetOwnedMessage( + message_arena, trainingjob, submessage_arena); + } + + } else { + + } + trainingjob_ = trainingjob; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.TrainingJob) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType>() { + return ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc new file mode 100644 index 000000000..b39d9f1f5 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc @@ -0,0 +1,26 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/parameterranges.proto + +#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" +#include "flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace flyteidl +} // namespace plugins +} // namespace sagemaker + diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h new file mode 100644 index 000000000..e7cdeb407 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h @@ -0,0 +1,49 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/parameterranges.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto__INCLUDED + +#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc new file mode 100644 index 000000000..181f169af --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc @@ -0,0 +1,2208 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/parameterranges.proto + +#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class ContinuousParameterRangeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ContinuousParameterRange_default_instance_; +class IntegerParameterRangeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _IntegerParameterRange_default_instance_; +class CategoricalParameterRangeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CategoricalParameterRange_default_instance_; +class ParameterRangeOneOfDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuousparameterrange_; + const ::flyteidl::plugins::sagemaker::IntegerParameterRange* integerparameterrange_; + const ::flyteidl::plugins::sagemaker::CategoricalParameterRange* categoricalparameterrange_; +} _ParameterRangeOneOf_default_instance_; +class ParameterRanges_ParameterRangeMapEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_; +class ParameterRangesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ParameterRanges_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ContinuousParameterRange(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::ContinuousParameterRange::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, {}}; + +static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::IntegerParameterRange(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::IntegerParameterRange::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, {}}; + +static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::CategoricalParameterRange(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::CategoricalParameterRange::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, {}}; + +static void InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ParameterRangeOneOf(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::ParameterRangeOneOf::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, { + &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base, + &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base, + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base,}}; + +static void InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse(); + } + ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, { + &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base,}}; + +static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ParameterRanges(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::ParameterRanges::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, { + &scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[6]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, maxvalue_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, minvalue_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, scalingtype_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, maxvalue_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, minvalue_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, scalingtype_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, continuousparameterrange_), + offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, integerparameterrange_), + offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, categoricalparameterrange_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, ParameterRangeTypes_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, parameterrangemap_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::sagemaker::ContinuousParameterRange)}, + { 8, -1, sizeof(::flyteidl::plugins::sagemaker::IntegerParameterRange)}, + { 16, -1, sizeof(::flyteidl::plugins::sagemaker::CategoricalParameterRange)}, + { 22, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRangeOneOf)}, + { 31, 38, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse)}, + { 40, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, "flyteidl/plugins/sagemaker/parameterranges.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[] = + "\n0flyteidl/plugins/sagemaker/parameterra" + "nges.proto\022\032flyteidl.plugins.sagemaker\"\212" + "\001\n\030ContinuousParameterRange\022\020\n\010MaxValue\030" + "\001 \001(\001\022\020\n\010MinValue\030\002 \001(\001\022J\n\013ScalingType\030\003" + " \001(\01625.flyteidl.plugins.sagemaker.Hyperp" + "arameterScalingType\"\207\001\n\025IntegerParameter" + "Range\022\020\n\010MaxValue\030\001 \001(\002\022\020\n\010MinValue\030\002 \001(" + "\002\022J\n\013ScalingType\030\003 \001(\01625.flyteidl.plugin" + "s.sagemaker.HyperparameterScalingType\"+\n" + "\031CategoricalParameterRange\022\016\n\006Values\030\001 \003" + "(\t\"\266\002\n\023ParameterRangeOneOf\022X\n\030Continuous" + "ParameterRange\030\001 \001(\01324.flyteidl.plugins." + "sagemaker.ContinuousParameterRangeH\000\022R\n\025" + "IntegerParameterRange\030\002 \001(\01321.flyteidl.p" + "lugins.sagemaker.IntegerParameterRangeH\000" + "\022Z\n\031CategoricalParameterRange\030\003 \001(\01325.fl" + "yteidl.plugins.sagemaker.CategoricalPara" + "meterRangeH\000B\025\n\023ParameterRangeTypes\"\333\001\n\017" + "ParameterRanges\022]\n\021ParameterRangeMap\030\001 \003" + "(\0132B.flyteidl.plugins.sagemaker.Paramete" + "rRanges.ParameterRangeMapEntry\032i\n\026Parame" + "terRangeMapEntry\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002" + " \001(\0132/.flyteidl.plugins.sagemaker.Parame" + "terRangeOneOf:\0028\001*Z\n\031HyperparameterScali" + "ngType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001\022\017\n\013LOGARITH" + "MIC\020\002\022\026\n\022REVERSELOGARITHMIC\020\003B5Z3github." + "com/lyft/flyteidl/gen/pb-go/flyteidl/plu" + "ginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, + "flyteidl/plugins/sagemaker/parameterranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, 1092, +}; + +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[0]; +} +bool HyperparameterScalingType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + + +// =================================================================== + +void ContinuousParameterRange::InitAsDefaultInstance() { +} +class ContinuousParameterRange::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ContinuousParameterRange::kMaxValueFieldNumber; +const int ContinuousParameterRange::kMinValueFieldNumber; +const int ContinuousParameterRange::kScalingTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ContinuousParameterRange::ContinuousParameterRange() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) +} +ContinuousParameterRange::ContinuousParameterRange(const ContinuousParameterRange& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&maxvalue_, &from.maxvalue_, + static_cast(reinterpret_cast(&scalingtype_) - + reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) +} + +void ContinuousParameterRange::SharedCtor() { + ::memset(&maxvalue_, 0, static_cast( + reinterpret_cast(&scalingtype_) - + reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); +} + +ContinuousParameterRange::~ContinuousParameterRange() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) + SharedDtor(); +} + +void ContinuousParameterRange::SharedDtor() { +} + +void ContinuousParameterRange::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ContinuousParameterRange& ContinuousParameterRange::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + return *internal_default_instance(); +} + + +void ContinuousParameterRange::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&maxvalue_, 0, static_cast( + reinterpret_cast(&scalingtype_) - + reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ContinuousParameterRange::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // double MaxValue = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 9) goto handle_unusual; + msg->set_maxvalue(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(double); + break; + } + // double MinValue = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 17) goto handle_unusual; + msg->set_minvalue(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(double); + break; + } + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_scalingtype(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ContinuousParameterRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // double MaxValue = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (9 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + input, &maxvalue_))); + } else { + goto handle_unusual; + } + break; + } + + // double MinValue = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (17 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + input, &minvalue_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_scalingtype(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ContinuousParameterRange) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ContinuousParameterRange) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ContinuousParameterRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // double MaxValue = 1; + if (this->maxvalue() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->maxvalue(), output); + } + + // double MinValue = 2; + if (this->minvalue() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->minvalue(), output); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + if (this->scalingtype() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->scalingtype(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ContinuousParameterRange) +} + +::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // double MaxValue = 1; + if (this->maxvalue() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->maxvalue(), target); + } + + // double MinValue = 2; + if (this->minvalue() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->minvalue(), target); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + if (this->scalingtype() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->scalingtype(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ContinuousParameterRange) + return target; +} + +size_t ContinuousParameterRange::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double MaxValue = 1; + if (this->maxvalue() != 0) { + total_size += 1 + 8; + } + + // double MinValue = 2; + if (this->minvalue() != 0) { + total_size += 1 + 8; + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + if (this->scalingtype() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scalingtype()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ContinuousParameterRange::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + GOOGLE_DCHECK_NE(&from, this); + const ContinuousParameterRange* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ContinuousParameterRange) + MergeFrom(*source); + } +} + +void ContinuousParameterRange::MergeFrom(const ContinuousParameterRange& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.maxvalue() != 0) { + set_maxvalue(from.maxvalue()); + } + if (from.minvalue() != 0) { + set_minvalue(from.minvalue()); + } + if (from.scalingtype() != 0) { + set_scalingtype(from.scalingtype()); + } +} + +void ContinuousParameterRange::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ContinuousParameterRange::CopyFrom(const ContinuousParameterRange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ContinuousParameterRange::IsInitialized() const { + return true; +} + +void ContinuousParameterRange::Swap(ContinuousParameterRange* other) { + if (other == this) return; + InternalSwap(other); +} +void ContinuousParameterRange::InternalSwap(ContinuousParameterRange* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(maxvalue_, other->maxvalue_); + swap(minvalue_, other->minvalue_); + swap(scalingtype_, other->scalingtype_); +} + +::google::protobuf::Metadata ContinuousParameterRange::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void IntegerParameterRange::InitAsDefaultInstance() { +} +class IntegerParameterRange::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int IntegerParameterRange::kMaxValueFieldNumber; +const int IntegerParameterRange::kMinValueFieldNumber; +const int IntegerParameterRange::kScalingTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +IntegerParameterRange::IntegerParameterRange() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.IntegerParameterRange) +} +IntegerParameterRange::IntegerParameterRange(const IntegerParameterRange& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&maxvalue_, &from.maxvalue_, + static_cast(reinterpret_cast(&scalingtype_) - + reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.IntegerParameterRange) +} + +void IntegerParameterRange::SharedCtor() { + ::memset(&maxvalue_, 0, static_cast( + reinterpret_cast(&scalingtype_) - + reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); +} + +IntegerParameterRange::~IntegerParameterRange() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.IntegerParameterRange) + SharedDtor(); +} + +void IntegerParameterRange::SharedDtor() { +} + +void IntegerParameterRange::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IntegerParameterRange& IntegerParameterRange::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + return *internal_default_instance(); +} + + +void IntegerParameterRange::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&maxvalue_, 0, static_cast( + reinterpret_cast(&scalingtype_) - + reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IntegerParameterRange::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // float MaxValue = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 13) goto handle_unusual; + msg->set_maxvalue(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(float); + break; + } + // float MinValue = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 21) goto handle_unusual; + msg->set_minvalue(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(float); + break; + } + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_scalingtype(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IntegerParameterRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // float MaxValue = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (13 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &maxvalue_))); + } else { + goto handle_unusual; + } + break; + } + + // float MinValue = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (21 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &minvalue_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_scalingtype(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.IntegerParameterRange) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.IntegerParameterRange) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IntegerParameterRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // float MaxValue = 1; + if (this->maxvalue() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->maxvalue(), output); + } + + // float MinValue = 2; + if (this->minvalue() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->minvalue(), output); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + if (this->scalingtype() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->scalingtype(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.IntegerParameterRange) +} + +::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // float MaxValue = 1; + if (this->maxvalue() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->maxvalue(), target); + } + + // float MinValue = 2; + if (this->minvalue() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->minvalue(), target); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + if (this->scalingtype() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->scalingtype(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.IntegerParameterRange) + return target; +} + +size_t IntegerParameterRange::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // float MaxValue = 1; + if (this->maxvalue() != 0) { + total_size += 1 + 4; + } + + // float MinValue = 2; + if (this->minvalue() != 0) { + total_size += 1 + 4; + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + if (this->scalingtype() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scalingtype()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IntegerParameterRange::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + GOOGLE_DCHECK_NE(&from, this); + const IntegerParameterRange* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.IntegerParameterRange) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.IntegerParameterRange) + MergeFrom(*source); + } +} + +void IntegerParameterRange::MergeFrom(const IntegerParameterRange& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.maxvalue() != 0) { + set_maxvalue(from.maxvalue()); + } + if (from.minvalue() != 0) { + set_minvalue(from.minvalue()); + } + if (from.scalingtype() != 0) { + set_scalingtype(from.scalingtype()); + } +} + +void IntegerParameterRange::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IntegerParameterRange::CopyFrom(const IntegerParameterRange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IntegerParameterRange::IsInitialized() const { + return true; +} + +void IntegerParameterRange::Swap(IntegerParameterRange* other) { + if (other == this) return; + InternalSwap(other); +} +void IntegerParameterRange::InternalSwap(IntegerParameterRange* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(maxvalue_, other->maxvalue_); + swap(minvalue_, other->minvalue_); + swap(scalingtype_, other->scalingtype_); +} + +::google::protobuf::Metadata IntegerParameterRange::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CategoricalParameterRange::InitAsDefaultInstance() { +} +class CategoricalParameterRange::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CategoricalParameterRange::kValuesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CategoricalParameterRange::CategoricalParameterRange() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) +} +CategoricalParameterRange::CategoricalParameterRange(const CategoricalParameterRange& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + values_(from.values_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) +} + +void CategoricalParameterRange::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); +} + +CategoricalParameterRange::~CategoricalParameterRange() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) + SharedDtor(); +} + +void CategoricalParameterRange::SharedDtor() { +} + +void CategoricalParameterRange::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CategoricalParameterRange& CategoricalParameterRange::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + return *internal_default_instance(); +} + + +void CategoricalParameterRange::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + values_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CategoricalParameterRange::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string Values = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.CategoricalParameterRange.Values"); + object = msg->add_values(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CategoricalParameterRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string Values = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_values())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(this->values_size() - 1).data(), + static_cast(this->values(this->values_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.CategoricalParameterRange.Values")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.CategoricalParameterRange) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.CategoricalParameterRange) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CategoricalParameterRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string Values = 1; + for (int i = 0, n = this->values_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(i).data(), static_cast(this->values(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.CategoricalParameterRange.Values"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->values(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.CategoricalParameterRange) +} + +::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string Values = 1; + for (int i = 0, n = this->values_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(i).data(), static_cast(this->values(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.CategoricalParameterRange.Values"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->values(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.CategoricalParameterRange) + return target; +} + +size_t CategoricalParameterRange::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string Values = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->values_size()); + for (int i = 0, n = this->values_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->values(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CategoricalParameterRange::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + GOOGLE_DCHECK_NE(&from, this); + const CategoricalParameterRange* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.CategoricalParameterRange) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.CategoricalParameterRange) + MergeFrom(*source); + } +} + +void CategoricalParameterRange::MergeFrom(const CategoricalParameterRange& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + values_.MergeFrom(from.values_); +} + +void CategoricalParameterRange::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CategoricalParameterRange::CopyFrom(const CategoricalParameterRange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CategoricalParameterRange::IsInitialized() const { + return true; +} + +void CategoricalParameterRange::Swap(CategoricalParameterRange* other) { + if (other == this) return; + InternalSwap(other); +} +void CategoricalParameterRange::InternalSwap(CategoricalParameterRange* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + values_.InternalSwap(CastToBase(&other->values_)); +} + +::google::protobuf::Metadata CategoricalParameterRange::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ParameterRangeOneOf::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.continuousparameterrange_ = const_cast< ::flyteidl::plugins::sagemaker::ContinuousParameterRange*>( + ::flyteidl::plugins::sagemaker::ContinuousParameterRange::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.integerparameterrange_ = const_cast< ::flyteidl::plugins::sagemaker::IntegerParameterRange*>( + ::flyteidl::plugins::sagemaker::IntegerParameterRange::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.categoricalparameterrange_ = const_cast< ::flyteidl::plugins::sagemaker::CategoricalParameterRange*>( + ::flyteidl::plugins::sagemaker::CategoricalParameterRange::internal_default_instance()); +} +class ParameterRangeOneOf::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuousparameterrange(const ParameterRangeOneOf* msg); + static const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integerparameterrange(const ParameterRangeOneOf* msg); + static const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categoricalparameterrange(const ParameterRangeOneOf* msg); +}; + +const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& +ParameterRangeOneOf::HasBitSetters::continuousparameterrange(const ParameterRangeOneOf* msg) { + return *msg->ParameterRangeTypes_.continuousparameterrange_; +} +const ::flyteidl::plugins::sagemaker::IntegerParameterRange& +ParameterRangeOneOf::HasBitSetters::integerparameterrange(const ParameterRangeOneOf* msg) { + return *msg->ParameterRangeTypes_.integerparameterrange_; +} +const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& +ParameterRangeOneOf::HasBitSetters::categoricalparameterrange(const ParameterRangeOneOf* msg) { + return *msg->ParameterRangeTypes_.categoricalparameterrange_; +} +void ParameterRangeOneOf::set_allocated_continuousparameterrange(::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuousparameterrange) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_ParameterRangeTypes(); + if (continuousparameterrange) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + continuousparameterrange = ::google::protobuf::internal::GetOwnedMessage( + message_arena, continuousparameterrange, submessage_arena); + } + set_has_continuousparameterrange(); + ParameterRangeTypes_.continuousparameterrange_ = continuousparameterrange; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.ContinuousParameterRange) +} +void ParameterRangeOneOf::set_allocated_integerparameterrange(::flyteidl::plugins::sagemaker::IntegerParameterRange* integerparameterrange) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_ParameterRangeTypes(); + if (integerparameterrange) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + integerparameterrange = ::google::protobuf::internal::GetOwnedMessage( + message_arena, integerparameterrange, submessage_arena); + } + set_has_integerparameterrange(); + ParameterRangeTypes_.integerparameterrange_ = integerparameterrange; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.IntegerParameterRange) +} +void ParameterRangeOneOf::set_allocated_categoricalparameterrange(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categoricalparameterrange) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_ParameterRangeTypes(); + if (categoricalparameterrange) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + categoricalparameterrange = ::google::protobuf::internal::GetOwnedMessage( + message_arena, categoricalparameterrange, submessage_arena); + } + set_has_categoricalparameterrange(); + ParameterRangeTypes_.categoricalparameterrange_ = categoricalparameterrange; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.CategoricalParameterRange) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParameterRangeOneOf::kContinuousParameterRangeFieldNumber; +const int ParameterRangeOneOf::kIntegerParameterRangeFieldNumber; +const int ParameterRangeOneOf::kCategoricalParameterRangeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParameterRangeOneOf::ParameterRangeOneOf() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ParameterRangeOneOf) +} +ParameterRangeOneOf::ParameterRangeOneOf(const ParameterRangeOneOf& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_ParameterRangeTypes(); + switch (from.ParameterRangeTypes_case()) { + case kContinuousParameterRange: { + mutable_continuousparameterrange()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuousparameterrange()); + break; + } + case kIntegerParameterRange: { + mutable_integerparameterrange()->::flyteidl::plugins::sagemaker::IntegerParameterRange::MergeFrom(from.integerparameterrange()); + break; + } + case kCategoricalParameterRange: { + mutable_categoricalparameterrange()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categoricalparameterrange()); + break; + } + case PARAMETERRANGETYPES_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ParameterRangeOneOf) +} + +void ParameterRangeOneOf::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + clear_has_ParameterRangeTypes(); +} + +ParameterRangeOneOf::~ParameterRangeOneOf() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + SharedDtor(); +} + +void ParameterRangeOneOf::SharedDtor() { + if (has_ParameterRangeTypes()) { + clear_ParameterRangeTypes(); + } +} + +void ParameterRangeOneOf::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ParameterRangeOneOf& ParameterRangeOneOf::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + return *internal_default_instance(); +} + + +void ParameterRangeOneOf::clear_ParameterRangeTypes() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + switch (ParameterRangeTypes_case()) { + case kContinuousParameterRange: { + delete ParameterRangeTypes_.continuousparameterrange_; + break; + } + case kIntegerParameterRange: { + delete ParameterRangeTypes_.integerparameterrange_; + break; + } + case kCategoricalParameterRange: { + delete ParameterRangeTypes_.categoricalparameterrange_; + break; + } + case PARAMETERRANGETYPES_NOT_SET: { + break; + } + } + _oneof_case_[0] = PARAMETERRANGETYPES_NOT_SET; +} + + +void ParameterRangeOneOf::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_ParameterRangeTypes(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ParameterRangeOneOf::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::ContinuousParameterRange::_InternalParse; + object = msg->mutable_continuousparameterrange(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::IntegerParameterRange::_InternalParse; + object = msg->mutable_integerparameterrange(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::CategoricalParameterRange::_InternalParse; + object = msg->mutable_categoricalparameterrange(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParameterRangeOneOf::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_continuousparameterrange())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_integerparameterrange())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_categoricalparameterrange())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ParameterRangeOneOf::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + if (has_continuousparameterrange()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::continuousparameterrange(this), output); + } + + // .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + if (has_integerparameterrange()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::integerparameterrange(this), output); + } + + // .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + if (has_categoricalparameterrange()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::categoricalparameterrange(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ParameterRangeOneOf) +} + +::google::protobuf::uint8* ParameterRangeOneOf::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + if (has_continuousparameterrange()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::continuousparameterrange(this), target); + } + + // .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + if (has_integerparameterrange()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::integerparameterrange(this), target); + } + + // .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + if (has_categoricalparameterrange()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::categoricalparameterrange(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + return target; +} + +size_t ParameterRangeOneOf::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (ParameterRangeTypes_case()) { + // .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + case kContinuousParameterRange: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *ParameterRangeTypes_.continuousparameterrange_); + break; + } + // .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + case kIntegerParameterRange: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *ParameterRangeTypes_.integerparameterrange_); + break; + } + // .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + case kCategoricalParameterRange: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *ParameterRangeTypes_.categoricalparameterrange_); + break; + } + case PARAMETERRANGETYPES_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ParameterRangeOneOf::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + GOOGLE_DCHECK_NE(&from, this); + const ParameterRangeOneOf* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + MergeFrom(*source); + } +} + +void ParameterRangeOneOf::MergeFrom(const ParameterRangeOneOf& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.ParameterRangeTypes_case()) { + case kContinuousParameterRange: { + mutable_continuousparameterrange()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuousparameterrange()); + break; + } + case kIntegerParameterRange: { + mutable_integerparameterrange()->::flyteidl::plugins::sagemaker::IntegerParameterRange::MergeFrom(from.integerparameterrange()); + break; + } + case kCategoricalParameterRange: { + mutable_categoricalparameterrange()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categoricalparameterrange()); + break; + } + case PARAMETERRANGETYPES_NOT_SET: { + break; + } + } +} + +void ParameterRangeOneOf::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParameterRangeOneOf::CopyFrom(const ParameterRangeOneOf& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParameterRangeOneOf::IsInitialized() const { + return true; +} + +void ParameterRangeOneOf::Swap(ParameterRangeOneOf* other) { + if (other == this) return; + InternalSwap(other); +} +void ParameterRangeOneOf::InternalSwap(ParameterRangeOneOf* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(ParameterRangeTypes_, other->ParameterRangeTypes_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata ParameterRangeOneOf::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +ParameterRanges_ParameterRangeMapEntry_DoNotUse::ParameterRanges_ParameterRangeMapEntry_DoNotUse() {} +ParameterRanges_ParameterRangeMapEntry_DoNotUse::ParameterRanges_ParameterRangeMapEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom(const ParameterRanges_ParameterRangeMapEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata ParameterRanges_ParameterRangeMapEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[4]; +} +void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParameterRanges_ParameterRangeMapEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + ParameterRanges_ParameterRangeMapEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void ParameterRanges::InitAsDefaultInstance() { +} +class ParameterRanges::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParameterRanges::kParameterRangeMapFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParameterRanges::ParameterRanges() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ParameterRanges) +} +ParameterRanges::ParameterRanges(const ParameterRanges& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + parameterrangemap_.MergeFrom(from.parameterrangemap_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ParameterRanges) +} + +void ParameterRanges::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); +} + +ParameterRanges::~ParameterRanges() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ParameterRanges) + SharedDtor(); +} + +void ParameterRanges::SharedDtor() { +} + +void ParameterRanges::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ParameterRanges& ParameterRanges::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + return *internal_default_instance(); +} + + +void ParameterRanges::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ParameterRanges) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + parameterrangemap_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ParameterRanges::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map ParameterRangeMap = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->parameterrangemap_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParameterRanges::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ParameterRanges) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map ParameterRangeMap = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + ParameterRanges_ParameterRangeMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + ParameterRanges_ParameterRangeMapEntry_DoNotUse, + ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf > > parser(¶meterrangemap_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ParameterRanges) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ParameterRanges) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ParameterRanges::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ParameterRanges) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map ParameterRangeMap = 1; + if (!this->parameterrangemap().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->parameterrangemap().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->parameterrangemap().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameterrangemap().begin(); + it != this->parameterrangemap().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(parameterrangemap_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameterrangemap().begin(); + it != this->parameterrangemap().end(); ++it) { + entry.reset(parameterrangemap_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ParameterRanges) +} + +::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ParameterRanges) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map ParameterRangeMap = 1; + if (!this->parameterrangemap().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key"); + } + }; + + if (false && + this->parameterrangemap().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->parameterrangemap().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameterrangemap().begin(); + it != this->parameterrangemap().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(parameterrangemap_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameterrangemap().begin(); + it != this->parameterrangemap().end(); ++it) { + entry.reset(parameterrangemap_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ParameterRanges) + return target; +} + +size_t ParameterRanges::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ParameterRanges) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map ParameterRangeMap = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->parameterrangemap_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameterrangemap().begin(); + it != this->parameterrangemap().end(); ++it) { + entry.reset(parameterrangemap_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ParameterRanges::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ParameterRanges) + GOOGLE_DCHECK_NE(&from, this); + const ParameterRanges* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ParameterRanges) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ParameterRanges) + MergeFrom(*source); + } +} + +void ParameterRanges::MergeFrom(const ParameterRanges& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ParameterRanges) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + parameterrangemap_.MergeFrom(from.parameterrangemap_); +} + +void ParameterRanges::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ParameterRanges) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParameterRanges::CopyFrom(const ParameterRanges& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ParameterRanges) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParameterRanges::IsInitialized() const { + return true; +} + +void ParameterRanges::Swap(ParameterRanges* other) { + if (other == this) return; + InternalSwap(other); +} +void ParameterRanges::InternalSwap(ParameterRanges* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + parameterrangemap_.Swap(&other->parameterrangemap_); +} + +::google::protobuf::Metadata ParameterRanges::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::IntegerParameterRange >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRangeOneOf* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRanges >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRanges >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h new file mode 100644 index 000000000..13a089e9e --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h @@ -0,0 +1,1163 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/parameterranges.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[6] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class CategoricalParameterRange; +class CategoricalParameterRangeDefaultTypeInternal; +extern CategoricalParameterRangeDefaultTypeInternal _CategoricalParameterRange_default_instance_; +class ContinuousParameterRange; +class ContinuousParameterRangeDefaultTypeInternal; +extern ContinuousParameterRangeDefaultTypeInternal _ContinuousParameterRange_default_instance_; +class IntegerParameterRange; +class IntegerParameterRangeDefaultTypeInternal; +extern IntegerParameterRangeDefaultTypeInternal _IntegerParameterRange_default_instance_; +class ParameterRangeOneOf; +class ParameterRangeOneOfDefaultTypeInternal; +extern ParameterRangeOneOfDefaultTypeInternal _ParameterRangeOneOf_default_instance_; +class ParameterRanges; +class ParameterRangesDefaultTypeInternal; +extern ParameterRangesDefaultTypeInternal _ParameterRanges_default_instance_; +class ParameterRanges_ParameterRangeMapEntry_DoNotUse; +class ParameterRanges_ParameterRangeMapEntry_DoNotUseDefaultTypeInternal; +extern ParameterRanges_ParameterRangeMapEntry_DoNotUseDefaultTypeInternal _ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::CategoricalParameterRange>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ContinuousParameterRange>(Arena*); +template<> ::flyteidl::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::IntegerParameterRange>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ParameterRangeOneOf* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRangeOneOf>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +enum HyperparameterScalingType { + AUTO = 0, + LINEAR = 1, + LOGARITHMIC = 2, + REVERSELOGARITHMIC = 3, + HyperparameterScalingType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HyperparameterScalingType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HyperparameterScalingType_IsValid(int value); +const HyperparameterScalingType HyperparameterScalingType_MIN = AUTO; +const HyperparameterScalingType HyperparameterScalingType_MAX = REVERSELOGARITHMIC; +const int HyperparameterScalingType_ARRAYSIZE = HyperparameterScalingType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor(); +inline const ::std::string& HyperparameterScalingType_Name(HyperparameterScalingType value) { + return ::google::protobuf::internal::NameOfEnum( + HyperparameterScalingType_descriptor(), value); +} +inline bool HyperparameterScalingType_Parse( + const ::std::string& name, HyperparameterScalingType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HyperparameterScalingType_descriptor(), name, value); +} +// =================================================================== + +class ContinuousParameterRange final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ContinuousParameterRange) */ { + public: + ContinuousParameterRange(); + virtual ~ContinuousParameterRange(); + + ContinuousParameterRange(const ContinuousParameterRange& from); + + inline ContinuousParameterRange& operator=(const ContinuousParameterRange& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ContinuousParameterRange(ContinuousParameterRange&& from) noexcept + : ContinuousParameterRange() { + *this = ::std::move(from); + } + + inline ContinuousParameterRange& operator=(ContinuousParameterRange&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ContinuousParameterRange& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ContinuousParameterRange* internal_default_instance() { + return reinterpret_cast( + &_ContinuousParameterRange_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(ContinuousParameterRange* other); + friend void swap(ContinuousParameterRange& a, ContinuousParameterRange& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ContinuousParameterRange* New() const final { + return CreateMaybeMessage(nullptr); + } + + ContinuousParameterRange* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ContinuousParameterRange& from); + void MergeFrom(const ContinuousParameterRange& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ContinuousParameterRange* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // double MaxValue = 1; + void clear_maxvalue(); + static const int kMaxValueFieldNumber = 1; + double maxvalue() const; + void set_maxvalue(double value); + + // double MinValue = 2; + void clear_minvalue(); + static const int kMinValueFieldNumber = 2; + double minvalue() const; + void set_minvalue(double value); + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + void clear_scalingtype(); + static const int kScalingTypeFieldNumber = 3; + ::flyteidl::plugins::sagemaker::HyperparameterScalingType scalingtype() const; + void set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + double maxvalue_; + double minvalue_; + int scalingtype_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +}; +// ------------------------------------------------------------------- + +class IntegerParameterRange final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.IntegerParameterRange) */ { + public: + IntegerParameterRange(); + virtual ~IntegerParameterRange(); + + IntegerParameterRange(const IntegerParameterRange& from); + + inline IntegerParameterRange& operator=(const IntegerParameterRange& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + IntegerParameterRange(IntegerParameterRange&& from) noexcept + : IntegerParameterRange() { + *this = ::std::move(from); + } + + inline IntegerParameterRange& operator=(IntegerParameterRange&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const IntegerParameterRange& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IntegerParameterRange* internal_default_instance() { + return reinterpret_cast( + &_IntegerParameterRange_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(IntegerParameterRange* other); + friend void swap(IntegerParameterRange& a, IntegerParameterRange& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline IntegerParameterRange* New() const final { + return CreateMaybeMessage(nullptr); + } + + IntegerParameterRange* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const IntegerParameterRange& from); + void MergeFrom(const IntegerParameterRange& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IntegerParameterRange* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // float MaxValue = 1; + void clear_maxvalue(); + static const int kMaxValueFieldNumber = 1; + float maxvalue() const; + void set_maxvalue(float value); + + // float MinValue = 2; + void clear_minvalue(); + static const int kMinValueFieldNumber = 2; + float minvalue() const; + void set_minvalue(float value); + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + void clear_scalingtype(); + static const int kScalingTypeFieldNumber = 3; + ::flyteidl::plugins::sagemaker::HyperparameterScalingType scalingtype() const; + void set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + float maxvalue_; + float minvalue_; + int scalingtype_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +}; +// ------------------------------------------------------------------- + +class CategoricalParameterRange final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.CategoricalParameterRange) */ { + public: + CategoricalParameterRange(); + virtual ~CategoricalParameterRange(); + + CategoricalParameterRange(const CategoricalParameterRange& from); + + inline CategoricalParameterRange& operator=(const CategoricalParameterRange& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CategoricalParameterRange(CategoricalParameterRange&& from) noexcept + : CategoricalParameterRange() { + *this = ::std::move(from); + } + + inline CategoricalParameterRange& operator=(CategoricalParameterRange&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CategoricalParameterRange& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CategoricalParameterRange* internal_default_instance() { + return reinterpret_cast( + &_CategoricalParameterRange_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(CategoricalParameterRange* other); + friend void swap(CategoricalParameterRange& a, CategoricalParameterRange& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CategoricalParameterRange* New() const final { + return CreateMaybeMessage(nullptr); + } + + CategoricalParameterRange* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CategoricalParameterRange& from); + void MergeFrom(const CategoricalParameterRange& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CategoricalParameterRange* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string Values = 1; + int values_size() const; + void clear_values(); + static const int kValuesFieldNumber = 1; + const ::std::string& values(int index) const; + ::std::string* mutable_values(int index); + void set_values(int index, const ::std::string& value); + #if LANG_CXX11 + void set_values(int index, ::std::string&& value); + #endif + void set_values(int index, const char* value); + void set_values(int index, const char* value, size_t size); + ::std::string* add_values(); + void add_values(const ::std::string& value); + #if LANG_CXX11 + void add_values(::std::string&& value); + #endif + void add_values(const char* value); + void add_values(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& values() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_values(); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> values_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +}; +// ------------------------------------------------------------------- + +class ParameterRangeOneOf final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ParameterRangeOneOf) */ { + public: + ParameterRangeOneOf(); + virtual ~ParameterRangeOneOf(); + + ParameterRangeOneOf(const ParameterRangeOneOf& from); + + inline ParameterRangeOneOf& operator=(const ParameterRangeOneOf& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ParameterRangeOneOf(ParameterRangeOneOf&& from) noexcept + : ParameterRangeOneOf() { + *this = ::std::move(from); + } + + inline ParameterRangeOneOf& operator=(ParameterRangeOneOf&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ParameterRangeOneOf& default_instance(); + + enum ParameterRangeTypesCase { + kContinuousParameterRange = 1, + kIntegerParameterRange = 2, + kCategoricalParameterRange = 3, + PARAMETERRANGETYPES_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParameterRangeOneOf* internal_default_instance() { + return reinterpret_cast( + &_ParameterRangeOneOf_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ParameterRangeOneOf* other); + friend void swap(ParameterRangeOneOf& a, ParameterRangeOneOf& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ParameterRangeOneOf* New() const final { + return CreateMaybeMessage(nullptr); + } + + ParameterRangeOneOf* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ParameterRangeOneOf& from); + void MergeFrom(const ParameterRangeOneOf& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParameterRangeOneOf* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + bool has_continuousparameterrange() const; + void clear_continuousparameterrange(); + static const int kContinuousParameterRangeFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuousparameterrange() const; + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* release_continuousparameterrange(); + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* mutable_continuousparameterrange(); + void set_allocated_continuousparameterrange(::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuousparameterrange); + + // .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + bool has_integerparameterrange() const; + void clear_integerparameterrange(); + static const int kIntegerParameterRangeFieldNumber = 2; + const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integerparameterrange() const; + ::flyteidl::plugins::sagemaker::IntegerParameterRange* release_integerparameterrange(); + ::flyteidl::plugins::sagemaker::IntegerParameterRange* mutable_integerparameterrange(); + void set_allocated_integerparameterrange(::flyteidl::plugins::sagemaker::IntegerParameterRange* integerparameterrange); + + // .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + bool has_categoricalparameterrange() const; + void clear_categoricalparameterrange(); + static const int kCategoricalParameterRangeFieldNumber = 3; + const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categoricalparameterrange() const; + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* release_categoricalparameterrange(); + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* mutable_categoricalparameterrange(); + void set_allocated_categoricalparameterrange(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categoricalparameterrange); + + void clear_ParameterRangeTypes(); + ParameterRangeTypesCase ParameterRangeTypes_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + private: + class HasBitSetters; + void set_has_continuousparameterrange(); + void set_has_integerparameterrange(); + void set_has_categoricalparameterrange(); + + inline bool has_ParameterRangeTypes() const; + inline void clear_has_ParameterRangeTypes(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ParameterRangeTypesUnion { + ParameterRangeTypesUnion() {} + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuousparameterrange_; + ::flyteidl::plugins::sagemaker::IntegerParameterRange* integerparameterrange_; + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* categoricalparameterrange_; + } ParameterRangeTypes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +}; +// ------------------------------------------------------------------- + +class ParameterRanges_ParameterRangeMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + ParameterRanges_ParameterRangeMapEntry_DoNotUse(); + ParameterRanges_ParameterRangeMapEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const ParameterRanges_ParameterRangeMapEntry_DoNotUse& other); + static const ParameterRanges_ParameterRangeMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class ParameterRanges final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ParameterRanges) */ { + public: + ParameterRanges(); + virtual ~ParameterRanges(); + + ParameterRanges(const ParameterRanges& from); + + inline ParameterRanges& operator=(const ParameterRanges& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ParameterRanges(ParameterRanges&& from) noexcept + : ParameterRanges() { + *this = ::std::move(from); + } + + inline ParameterRanges& operator=(ParameterRanges&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ParameterRanges& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParameterRanges* internal_default_instance() { + return reinterpret_cast( + &_ParameterRanges_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(ParameterRanges* other); + friend void swap(ParameterRanges& a, ParameterRanges& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ParameterRanges* New() const final { + return CreateMaybeMessage(nullptr); + } + + ParameterRanges* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ParameterRanges& from); + void MergeFrom(const ParameterRanges& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParameterRanges* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map ParameterRangeMap = 1; + int parameterrangemap_size() const; + void clear_parameterrangemap(); + static const int kParameterRangeMapFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >& + parameterrangemap() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >* + mutable_parameterrangemap(); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + ParameterRanges_ParameterRangeMapEntry_DoNotUse, + ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > parameterrangemap_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ContinuousParameterRange + +// double MaxValue = 1; +inline void ContinuousParameterRange::clear_maxvalue() { + maxvalue_ = 0; +} +inline double ContinuousParameterRange::maxvalue() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue) + return maxvalue_; +} +inline void ContinuousParameterRange::set_maxvalue(double value) { + + maxvalue_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue) +} + +// double MinValue = 2; +inline void ContinuousParameterRange::clear_minvalue() { + minvalue_ = 0; +} +inline double ContinuousParameterRange::minvalue() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue) + return minvalue_; +} +inline void ContinuousParameterRange::set_minvalue(double value) { + + minvalue_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue) +} + +// .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; +inline void ContinuousParameterRange::clear_scalingtype() { + scalingtype_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType ContinuousParameterRange::scalingtype() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scalingtype_); +} +inline void ContinuousParameterRange::set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { + + scalingtype_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType) +} + +// ------------------------------------------------------------------- + +// IntegerParameterRange + +// float MaxValue = 1; +inline void IntegerParameterRange::clear_maxvalue() { + maxvalue_ = 0; +} +inline float IntegerParameterRange::maxvalue() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue) + return maxvalue_; +} +inline void IntegerParameterRange::set_maxvalue(float value) { + + maxvalue_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue) +} + +// float MinValue = 2; +inline void IntegerParameterRange::clear_minvalue() { + minvalue_ = 0; +} +inline float IntegerParameterRange::minvalue() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue) + return minvalue_; +} +inline void IntegerParameterRange::set_minvalue(float value) { + + minvalue_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue) +} + +// .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; +inline void IntegerParameterRange::clear_scalingtype() { + scalingtype_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType IntegerParameterRange::scalingtype() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scalingtype_); +} +inline void IntegerParameterRange::set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { + + scalingtype_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType) +} + +// ------------------------------------------------------------------- + +// CategoricalParameterRange + +// repeated string Values = 1; +inline int CategoricalParameterRange::values_size() const { + return values_.size(); +} +inline void CategoricalParameterRange::clear_values() { + values_.Clear(); +} +inline const ::std::string& CategoricalParameterRange::values(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + return values_.Get(index); +} +inline ::std::string* CategoricalParameterRange::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + return values_.Mutable(index); +} +inline void CategoricalParameterRange::set_values(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + values_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void CategoricalParameterRange::set_values(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + values_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void CategoricalParameterRange::set_values(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) +} +inline void CategoricalParameterRange::set_values(int index, const char* value, size_t size) { + values_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) +} +inline ::std::string* CategoricalParameterRange::add_values() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + return values_.Add(); +} +inline void CategoricalParameterRange::add_values(const ::std::string& value) { + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) +} +#if LANG_CXX11 +inline void CategoricalParameterRange::add_values(::std::string&& value) { + values_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) +} +#endif +inline void CategoricalParameterRange::add_values(const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) +} +inline void CategoricalParameterRange::add_values(const char* value, size_t size) { + values_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +CategoricalParameterRange::values() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + return values_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +CategoricalParameterRange::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + return &values_; +} + +// ------------------------------------------------------------------- + +// ParameterRangeOneOf + +// .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; +inline bool ParameterRangeOneOf::has_continuousparameterrange() const { + return ParameterRangeTypes_case() == kContinuousParameterRange; +} +inline void ParameterRangeOneOf::set_has_continuousparameterrange() { + _oneof_case_[0] = kContinuousParameterRange; +} +inline void ParameterRangeOneOf::clear_continuousparameterrange() { + if (has_continuousparameterrange()) { + delete ParameterRangeTypes_.continuousparameterrange_; + clear_has_ParameterRangeTypes(); + } +} +inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::release_continuousparameterrange() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.ContinuousParameterRange) + if (has_continuousparameterrange()) { + clear_has_ParameterRangeTypes(); + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* temp = ParameterRangeTypes_.continuousparameterrange_; + ParameterRangeTypes_.continuousparameterrange_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& ParameterRangeOneOf::continuousparameterrange() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.ContinuousParameterRange) + return has_continuousparameterrange() + ? *ParameterRangeTypes_.continuousparameterrange_ + : *reinterpret_cast< ::flyteidl::plugins::sagemaker::ContinuousParameterRange*>(&::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::mutable_continuousparameterrange() { + if (!has_continuousparameterrange()) { + clear_ParameterRangeTypes(); + set_has_continuousparameterrange(); + ParameterRangeTypes_.continuousparameterrange_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.ContinuousParameterRange) + return ParameterRangeTypes_.continuousparameterrange_; +} + +// .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; +inline bool ParameterRangeOneOf::has_integerparameterrange() const { + return ParameterRangeTypes_case() == kIntegerParameterRange; +} +inline void ParameterRangeOneOf::set_has_integerparameterrange() { + _oneof_case_[0] = kIntegerParameterRange; +} +inline void ParameterRangeOneOf::clear_integerparameterrange() { + if (has_integerparameterrange()) { + delete ParameterRangeTypes_.integerparameterrange_; + clear_has_ParameterRangeTypes(); + } +} +inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::release_integerparameterrange() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.IntegerParameterRange) + if (has_integerparameterrange()) { + clear_has_ParameterRangeTypes(); + ::flyteidl::plugins::sagemaker::IntegerParameterRange* temp = ParameterRangeTypes_.integerparameterrange_; + ParameterRangeTypes_.integerparameterrange_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::plugins::sagemaker::IntegerParameterRange& ParameterRangeOneOf::integerparameterrange() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.IntegerParameterRange) + return has_integerparameterrange() + ? *ParameterRangeTypes_.integerparameterrange_ + : *reinterpret_cast< ::flyteidl::plugins::sagemaker::IntegerParameterRange*>(&::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::mutable_integerparameterrange() { + if (!has_integerparameterrange()) { + clear_ParameterRangeTypes(); + set_has_integerparameterrange(); + ParameterRangeTypes_.integerparameterrange_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.IntegerParameterRange) + return ParameterRangeTypes_.integerparameterrange_; +} + +// .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; +inline bool ParameterRangeOneOf::has_categoricalparameterrange() const { + return ParameterRangeTypes_case() == kCategoricalParameterRange; +} +inline void ParameterRangeOneOf::set_has_categoricalparameterrange() { + _oneof_case_[0] = kCategoricalParameterRange; +} +inline void ParameterRangeOneOf::clear_categoricalparameterrange() { + if (has_categoricalparameterrange()) { + delete ParameterRangeTypes_.categoricalparameterrange_; + clear_has_ParameterRangeTypes(); + } +} +inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::release_categoricalparameterrange() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.CategoricalParameterRange) + if (has_categoricalparameterrange()) { + clear_has_ParameterRangeTypes(); + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* temp = ParameterRangeTypes_.categoricalparameterrange_; + ParameterRangeTypes_.categoricalparameterrange_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& ParameterRangeOneOf::categoricalparameterrange() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.CategoricalParameterRange) + return has_categoricalparameterrange() + ? *ParameterRangeTypes_.categoricalparameterrange_ + : *reinterpret_cast< ::flyteidl::plugins::sagemaker::CategoricalParameterRange*>(&::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::mutable_categoricalparameterrange() { + if (!has_categoricalparameterrange()) { + clear_ParameterRangeTypes(); + set_has_categoricalparameterrange(); + ParameterRangeTypes_.categoricalparameterrange_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.CategoricalParameterRange) + return ParameterRangeTypes_.categoricalparameterrange_; +} + +inline bool ParameterRangeOneOf::has_ParameterRangeTypes() const { + return ParameterRangeTypes_case() != PARAMETERRANGETYPES_NOT_SET; +} +inline void ParameterRangeOneOf::clear_has_ParameterRangeTypes() { + _oneof_case_[0] = PARAMETERRANGETYPES_NOT_SET; +} +inline ParameterRangeOneOf::ParameterRangeTypesCase ParameterRangeOneOf::ParameterRangeTypes_case() const { + return ParameterRangeOneOf::ParameterRangeTypesCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ParameterRanges + +// map ParameterRangeMap = 1; +inline int ParameterRanges::parameterrangemap_size() const { + return parameterrangemap_.size(); +} +inline void ParameterRanges::clear_parameterrangemap() { + parameterrangemap_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >& +ParameterRanges::parameterrangemap() const { + // @@protoc_insertion_point(field_map:flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMap) + return parameterrangemap_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >* +ParameterRanges::mutable_parameterrangemap() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMap) + return parameterrangemap_.MutableMap(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterScalingType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterScalingType>() { + return ::flyteidl::plugins::sagemaker::HyperparameterScalingType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.cc deleted file mode 100644 index 4df4c0c9c..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.cc +++ /dev/null @@ -1,5825 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/sagemaker.proto - -#include "flyteidl/plugins/sagemaker/sagemaker.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -namespace flyteidl { -namespace plugins { -namespace sagemaker { -class ContinuousParameterRangeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ContinuousParameterRange_default_instance_; -class IntegerParameterRangeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _IntegerParameterRange_default_instance_; -class CategoricalParameterRangeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CategoricalParameterRange_default_instance_; -class ParameterRangesDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ParameterRanges_default_instance_; -class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AlgorithmSpecification_MetricDefinition_default_instance_; -class AlgorithmSpecificationDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AlgorithmSpecification_default_instance_; -class ResourceConfigDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ResourceConfig_default_instance_; -class StoppingConditionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _StoppingCondition_default_instance_; -class VpcConfigDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _VpcConfig_default_instance_; -class SagemakerTrainingJobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SagemakerTrainingJob_default_instance_; -class HPOJobObjectiveDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HPOJobObjective_default_instance_; -class SagemakerHPOJobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SagemakerHPOJob_default_instance_; -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::ContinuousParameterRange(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::ContinuousParameterRange::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; - -static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::IntegerParameterRange(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::IntegerParameterRange::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; - -static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::CategoricalParameterRange(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::CategoricalParameterRange::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; - -static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::ParameterRanges(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::ParameterRanges::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, { - &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, - &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, - &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base,}}; - -static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; - -static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmSpecification(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::AlgorithmSpecification::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, { - &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base,}}; - -static void InitDefaultsResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_ResourceConfig_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::ResourceConfig(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::ResourceConfig::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; - -static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::StoppingCondition(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::StoppingCondition::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; - -static void InitDefaultsVpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_VpcConfig_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::VpcConfig(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::VpcConfig::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; - -static void InitDefaultsSagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::SagemakerTrainingJob(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::SagemakerTrainingJob::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<4> scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsSagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, { - &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, - &scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, - &scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, - &scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base,}}; - -static void InitDefaultsHPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_HPOJobObjective_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::HPOJobObjective(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::HPOJobObjective::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, {}}; - -static void InitDefaultsSagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_SagemakerHPOJob_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::SagemakerHPOJob(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::SagemakerHPOJob::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsSagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto}, { - &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, - &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base, - &scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[12]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[2]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, maxvalue_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, minvalue_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, scalingtype_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, maxvalue_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, minvalue_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, scalingtype_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, values_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, continuousparameterranges_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, integerparameterranges_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, categoricalparameterranges_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, regex_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, trainingimage_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, traininginputmode_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithmname_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, metricdefinitions_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, instancetype_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, instancecount_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, volumesizeingb_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, volumekmskeyid_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, maxruntimeinseconds_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, maxwaittimeinseconds_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, securitygroupids_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, subnets_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, region_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, rolearn_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, algorithmspecification_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, resourceconfig_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, stoppingcondition_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, vpcconfig_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerTrainingJob, enablespottraining_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, metricname_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, strategy_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, objective_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, maxnumberoftrainingjobs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, maxparalleltrainingjobs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, parameterranges_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::SagemakerHPOJob, trainingjob_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::sagemaker::ContinuousParameterRange)}, - { 9, -1, sizeof(::flyteidl::plugins::sagemaker::IntegerParameterRange)}, - { 18, -1, sizeof(::flyteidl::plugins::sagemaker::CategoricalParameterRange)}, - { 25, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges)}, - { 33, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition)}, - { 40, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)}, - { 49, -1, sizeof(::flyteidl::plugins::sagemaker::ResourceConfig)}, - { 58, -1, sizeof(::flyteidl::plugins::sagemaker::StoppingCondition)}, - { 65, -1, sizeof(::flyteidl::plugins::sagemaker::VpcConfig)}, - { 72, -1, sizeof(::flyteidl::plugins::sagemaker::SagemakerTrainingJob)}, - { 84, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJobObjective)}, - { 91, -1, sizeof(::flyteidl::plugins::sagemaker::SagemakerHPOJob)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_ResourceConfig_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_VpcConfig_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJobObjective_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_SagemakerHPOJob_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, "flyteidl/plugins/sagemaker/sagemaker.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, 12, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[] = - "\n*flyteidl/plugins/sagemaker/sagemaker.p" - "roto\022\032flyteidl.plugins.sagemaker\"\230\001\n\030Con" - "tinuousParameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010M" - "axValue\030\002 \001(\001\022\020\n\010MinValue\030\003 \001(\001\022J\n\013Scali" - "ngType\030\004 \001(\01625.flyteidl.plugins.sagemake" - "r.HyperparameterScalingType\"\225\001\n\025IntegerP" - "arameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxValue\030" - "\002 \001(\002\022\020\n\010MinValue\030\003 \001(\002\022J\n\013ScalingType\030\004" - " \001(\01625.flyteidl.plugins.sagemaker.Hyperp" - "arameterScalingType\"9\n\031CategoricalParame" - "terRange\022\014\n\004Name\030\001 \001(\t\022\016\n\006Values\030\002 \003(\t\"\230" - "\002\n\017ParameterRanges\022W\n\031ContinuousParamete" - "rRanges\030\001 \003(\01324.flyteidl.plugins.sagemak" - "er.ContinuousParameterRange\022Q\n\026IntegerPa" - "rameterRanges\030\002 \003(\01321.flyteidl.plugins.s" - "agemaker.IntegerParameterRange\022Y\n\032Catego" - "ricalParameterRanges\030\003 \003(\01325.flyteidl.pl" - "ugins.sagemaker.CategoricalParameterRang" - "e\"\362\001\n\026AlgorithmSpecification\022\025\n\rTraining" - "Image\030\001 \001(\t\022\031\n\021TrainingInputMode\030\002 \001(\t\022\025" - "\n\rAlgorithmName\030\003 \001(\t\022^\n\021MetricDefinitio" - "ns\030\004 \003(\0132C.flyteidl.plugins.sagemaker.Al" - "gorithmSpecification.MetricDefinition\032/\n" - "\020MetricDefinition\022\014\n\004Name\030\001 \001(\t\022\r\n\005Regex" - "\030\002 \001(\t\"m\n\016ResourceConfig\022\024\n\014InstanceType" - "\030\001 \001(\t\022\025\n\rInstanceCount\030\002 \001(\003\022\026\n\016VolumeS" - "izeInGB\030\003 \001(\003\022\026\n\016VolumeKmsKeyId\030\004 \001(\t\"N\n" - "\021StoppingCondition\022\033\n\023MaxRuntimeInSecond" - "s\030\001 \001(\003\022\034\n\024MaxWaitTimeInSeconds\030\002 \001(\003\"6\n" - "\tVpcConfig\022\030\n\020SecurityGroupIds\030\001 \003(\t\022\017\n\007" - "Subnets\030\002 \003(\t\"\357\002\n\024SagemakerTrainingJob\022\016" - "\n\006Region\030\001 \001(\t\022\017\n\007RoleArn\030\002 \001(\t\022R\n\026Algor" - "ithmSpecification\030\003 \001(\01322.flyteidl.plugi" - "ns.sagemaker.AlgorithmSpecification\022B\n\016R" - "esourceConfig\030\004 \001(\0132*.flyteidl.plugins.s" - "agemaker.ResourceConfig\022H\n\021StoppingCondi" - "tion\030\005 \001(\0132-.flyteidl.plugins.sagemaker." - "StoppingCondition\0228\n\tVpcConfig\030\006 \001(\0132%.f" - "lyteidl.plugins.sagemaker.VpcConfig\022\032\n\022E" - "nableSpotTraining\030\007 \001(\010\"\247\001\n\017HPOJobObject" - "ive\022M\n\004Type\030\001 \001(\0162\?.flyteidl.plugins.sag" - "emaker.HPOJobObjective.HPOJobObjectiveTy" - "pe\022\022\n\nMetricName\030\002 \001(\t\"1\n\023HPOJobObjectiv" - "eType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\262\002\n\017Sa" - "gemakerHPOJob\022\020\n\010Strategy\030\001 \001(\t\022>\n\tObjec" - "tive\030\002 \001(\0132+.flyteidl.plugins.sagemaker." - "HPOJobObjective\022\037\n\027MaxNumberOfTrainingJo" - "bs\030\003 \001(\003\022\037\n\027MaxParallelTrainingJobs\030\004 \001(" - "\003\022D\n\017ParameterRanges\030\005 \001(\0132+.flyteidl.pl" - "ugins.sagemaker.ParameterRanges\022E\n\013Train" - "ingJob\030\006 \001(\01320.flyteidl.plugins.sagemake" - "r.SagemakerTrainingJob*Z\n\031Hyperparameter" - "ScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001\022\017\n\013LOG" - "ARITHMIC\020\002\022\026\n\022REVERSELOGARITHMIC\020\003B5Z3gi" - "thub.com/lyft/flyteidl/gen/pb-go/flyteid" - "l/pluginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, - "flyteidl/plugins/sagemaker/sagemaker.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, 2217, -}; - -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { -namespace sagemaker { -const ::google::protobuf::EnumDescriptor* HPOJobObjective_HPOJobObjectiveType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[0]; -} -bool HPOJobObjective_HPOJobObjectiveType_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::MINIMIZE; -const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::MAXIMIZE; -const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::HPOJobObjectiveType_MIN; -const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::HPOJobObjectiveType_MAX; -const int HPOJobObjective::HPOJobObjectiveType_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[1]; -} -bool HyperparameterScalingType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - - -// =================================================================== - -void ContinuousParameterRange::InitAsDefaultInstance() { -} -class ContinuousParameterRange::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ContinuousParameterRange::kNameFieldNumber; -const int ContinuousParameterRange::kMaxValueFieldNumber; -const int ContinuousParameterRange::kMinValueFieldNumber; -const int ContinuousParameterRange::kScalingTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ContinuousParameterRange::ContinuousParameterRange() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) -} -ContinuousParameterRange::ContinuousParameterRange(const ContinuousParameterRange& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - ::memcpy(&maxvalue_, &from.maxvalue_, - static_cast(reinterpret_cast(&scalingtype_) - - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) -} - -void ContinuousParameterRange::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&maxvalue_, 0, static_cast( - reinterpret_cast(&scalingtype_) - - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); -} - -ContinuousParameterRange::~ContinuousParameterRange() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) - SharedDtor(); -} - -void ContinuousParameterRange::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ContinuousParameterRange::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ContinuousParameterRange& ContinuousParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - return *internal_default_instance(); -} - - -void ContinuousParameterRange::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&maxvalue_, 0, static_cast( - reinterpret_cast(&scalingtype_) - - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ContinuousParameterRange::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // string Name = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ContinuousParameterRange.Name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // double MaxValue = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 17) goto handle_unusual; - msg->set_maxvalue(::google::protobuf::io::UnalignedLoad(ptr)); - ptr += sizeof(double); - break; - } - // double MinValue = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 25) goto handle_unusual; - msg->set_minvalue(::google::protobuf::io::UnalignedLoad(ptr)); - ptr += sizeof(double); - break; - } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_scalingtype(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ContinuousParameterRange::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string Name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.ContinuousParameterRange.Name")); - } else { - goto handle_unusual; - } - break; - } - - // double MaxValue = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (17 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &maxvalue_))); - } else { - goto handle_unusual; - } - break; - } - - // double MinValue = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (25 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &minvalue_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_scalingtype(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ContinuousParameterRange) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ContinuousParameterRange) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ContinuousParameterRange::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ContinuousParameterRange.Name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // double MaxValue = 2; - if (this->maxvalue() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->maxvalue(), output); - } - - // double MinValue = 3; - if (this->minvalue() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->minvalue(), output); - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - if (this->scalingtype() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->scalingtype(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ContinuousParameterRange) -} - -::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ContinuousParameterRange.Name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // double MaxValue = 2; - if (this->maxvalue() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->maxvalue(), target); - } - - // double MinValue = 3; - if (this->minvalue() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->minvalue(), target); - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - if (this->scalingtype() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->scalingtype(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ContinuousParameterRange) - return target; -} - -size_t ContinuousParameterRange::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string Name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // double MaxValue = 2; - if (this->maxvalue() != 0) { - total_size += 1 + 8; - } - - // double MinValue = 3; - if (this->minvalue() != 0) { - total_size += 1 + 8; - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - if (this->scalingtype() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->scalingtype()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ContinuousParameterRange::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - GOOGLE_DCHECK_NE(&from, this); - const ContinuousParameterRange* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ContinuousParameterRange) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ContinuousParameterRange) - MergeFrom(*source); - } -} - -void ContinuousParameterRange::MergeFrom(const ContinuousParameterRange& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.maxvalue() != 0) { - set_maxvalue(from.maxvalue()); - } - if (from.minvalue() != 0) { - set_minvalue(from.minvalue()); - } - if (from.scalingtype() != 0) { - set_scalingtype(from.scalingtype()); - } -} - -void ContinuousParameterRange::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ContinuousParameterRange::CopyFrom(const ContinuousParameterRange& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ContinuousParameterRange::IsInitialized() const { - return true; -} - -void ContinuousParameterRange::Swap(ContinuousParameterRange* other) { - if (other == this) return; - InternalSwap(other); -} -void ContinuousParameterRange::InternalSwap(ContinuousParameterRange* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(maxvalue_, other->maxvalue_); - swap(minvalue_, other->minvalue_); - swap(scalingtype_, other->scalingtype_); -} - -::google::protobuf::Metadata ContinuousParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void IntegerParameterRange::InitAsDefaultInstance() { -} -class IntegerParameterRange::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int IntegerParameterRange::kNameFieldNumber; -const int IntegerParameterRange::kMaxValueFieldNumber; -const int IntegerParameterRange::kMinValueFieldNumber; -const int IntegerParameterRange::kScalingTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -IntegerParameterRange::IntegerParameterRange() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.IntegerParameterRange) -} -IntegerParameterRange::IntegerParameterRange(const IntegerParameterRange& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - ::memcpy(&maxvalue_, &from.maxvalue_, - static_cast(reinterpret_cast(&scalingtype_) - - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.IntegerParameterRange) -} - -void IntegerParameterRange::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&maxvalue_, 0, static_cast( - reinterpret_cast(&scalingtype_) - - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); -} - -IntegerParameterRange::~IntegerParameterRange() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.IntegerParameterRange) - SharedDtor(); -} - -void IntegerParameterRange::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void IntegerParameterRange::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const IntegerParameterRange& IntegerParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - return *internal_default_instance(); -} - - -void IntegerParameterRange::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&maxvalue_, 0, static_cast( - reinterpret_cast(&scalingtype_) - - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IntegerParameterRange::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // string Name = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.IntegerParameterRange.Name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // float MaxValue = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 21) goto handle_unusual; - msg->set_maxvalue(::google::protobuf::io::UnalignedLoad(ptr)); - ptr += sizeof(float); - break; - } - // float MinValue = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 29) goto handle_unusual; - msg->set_minvalue(::google::protobuf::io::UnalignedLoad(ptr)); - ptr += sizeof(float); - break; - } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_scalingtype(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool IntegerParameterRange::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string Name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.IntegerParameterRange.Name")); - } else { - goto handle_unusual; - } - break; - } - - // float MaxValue = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (21 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &maxvalue_))); - } else { - goto handle_unusual; - } - break; - } - - // float MinValue = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (29 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &minvalue_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_scalingtype(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.IntegerParameterRange) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.IntegerParameterRange) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void IntegerParameterRange::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.IntegerParameterRange.Name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // float MaxValue = 2; - if (this->maxvalue() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->maxvalue(), output); - } - - // float MinValue = 3; - if (this->minvalue() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->minvalue(), output); - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - if (this->scalingtype() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->scalingtype(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.IntegerParameterRange) -} - -::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.IntegerParameterRange.Name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // float MaxValue = 2; - if (this->maxvalue() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->maxvalue(), target); - } - - // float MinValue = 3; - if (this->minvalue() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->minvalue(), target); - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - if (this->scalingtype() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->scalingtype(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.IntegerParameterRange) - return target; -} - -size_t IntegerParameterRange::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string Name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // float MaxValue = 2; - if (this->maxvalue() != 0) { - total_size += 1 + 4; - } - - // float MinValue = 3; - if (this->minvalue() != 0) { - total_size += 1 + 4; - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - if (this->scalingtype() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->scalingtype()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void IntegerParameterRange::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - GOOGLE_DCHECK_NE(&from, this); - const IntegerParameterRange* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.IntegerParameterRange) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.IntegerParameterRange) - MergeFrom(*source); - } -} - -void IntegerParameterRange::MergeFrom(const IntegerParameterRange& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.maxvalue() != 0) { - set_maxvalue(from.maxvalue()); - } - if (from.minvalue() != 0) { - set_minvalue(from.minvalue()); - } - if (from.scalingtype() != 0) { - set_scalingtype(from.scalingtype()); - } -} - -void IntegerParameterRange::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IntegerParameterRange::CopyFrom(const IntegerParameterRange& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IntegerParameterRange::IsInitialized() const { - return true; -} - -void IntegerParameterRange::Swap(IntegerParameterRange* other) { - if (other == this) return; - InternalSwap(other); -} -void IntegerParameterRange::InternalSwap(IntegerParameterRange* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(maxvalue_, other->maxvalue_); - swap(minvalue_, other->minvalue_); - swap(scalingtype_, other->scalingtype_); -} - -::google::protobuf::Metadata IntegerParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CategoricalParameterRange::InitAsDefaultInstance() { -} -class CategoricalParameterRange::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CategoricalParameterRange::kNameFieldNumber; -const int CategoricalParameterRange::kValuesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CategoricalParameterRange::CategoricalParameterRange() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) -} -CategoricalParameterRange::CategoricalParameterRange(const CategoricalParameterRange& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - values_(from.values_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) -} - -void CategoricalParameterRange::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -CategoricalParameterRange::~CategoricalParameterRange() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) - SharedDtor(); -} - -void CategoricalParameterRange::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void CategoricalParameterRange::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CategoricalParameterRange& CategoricalParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - return *internal_default_instance(); -} - - -void CategoricalParameterRange::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - values_.Clear(); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CategoricalParameterRange::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // string Name = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.CategoricalParameterRange.Name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated string Values = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.CategoricalParameterRange.Values"); - object = msg->add_values(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CategoricalParameterRange::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string Name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.CategoricalParameterRange.Name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string Values = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_values())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->values(this->values_size() - 1).data(), - static_cast(this->values(this->values_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.CategoricalParameterRange.Values")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.CategoricalParameterRange) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.CategoricalParameterRange) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CategoricalParameterRange::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.CategoricalParameterRange.Name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // repeated string Values = 2; - for (int i = 0, n = this->values_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->values(i).data(), static_cast(this->values(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.CategoricalParameterRange.Values"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->values(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.CategoricalParameterRange) -} - -::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.CategoricalParameterRange.Name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // repeated string Values = 2; - for (int i = 0, n = this->values_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->values(i).data(), static_cast(this->values(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.CategoricalParameterRange.Values"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->values(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.CategoricalParameterRange) - return target; -} - -size_t CategoricalParameterRange::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string Values = 2; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->values_size()); - for (int i = 0, n = this->values_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->values(i)); - } - - // string Name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CategoricalParameterRange::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - GOOGLE_DCHECK_NE(&from, this); - const CategoricalParameterRange* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.CategoricalParameterRange) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.CategoricalParameterRange) - MergeFrom(*source); - } -} - -void CategoricalParameterRange::MergeFrom(const CategoricalParameterRange& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - values_.MergeFrom(from.values_); - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } -} - -void CategoricalParameterRange::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CategoricalParameterRange::CopyFrom(const CategoricalParameterRange& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CategoricalParameterRange::IsInitialized() const { - return true; -} - -void CategoricalParameterRange::Swap(CategoricalParameterRange* other) { - if (other == this) return; - InternalSwap(other); -} -void CategoricalParameterRange::InternalSwap(CategoricalParameterRange* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - values_.InternalSwap(CastToBase(&other->values_)); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata CategoricalParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ParameterRanges::InitAsDefaultInstance() { -} -class ParameterRanges::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ParameterRanges::kContinuousParameterRangesFieldNumber; -const int ParameterRanges::kIntegerParameterRangesFieldNumber; -const int ParameterRanges::kCategoricalParameterRangesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ParameterRanges::ParameterRanges() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ParameterRanges) -} -ParameterRanges::ParameterRanges(const ParameterRanges& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - continuousparameterranges_(from.continuousparameterranges_), - integerparameterranges_(from.integerparameterranges_), - categoricalparameterranges_(from.categoricalparameterranges_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ParameterRanges) -} - -void ParameterRanges::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); -} - -ParameterRanges::~ParameterRanges() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ParameterRanges) - SharedDtor(); -} - -void ParameterRanges::SharedDtor() { -} - -void ParameterRanges::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ParameterRanges& ParameterRanges::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - return *internal_default_instance(); -} - - -void ParameterRanges::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ParameterRanges) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - continuousparameterranges_.Clear(); - integerparameterranges_.Clear(); - categoricalparameterranges_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ParameterRanges::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::ContinuousParameterRange::_InternalParse; - object = msg->add_continuousparameterranges(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::IntegerParameterRange::_InternalParse; - object = msg->add_integerparameterranges(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - // repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::CategoricalParameterRange::_InternalParse; - object = msg->add_categoricalparameterranges(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ParameterRanges::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ParameterRanges) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_continuousparameterranges())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_integerparameterranges())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_categoricalparameterranges())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ParameterRanges) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ParameterRanges) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ParameterRanges::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ParameterRanges) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - for (unsigned int i = 0, - n = static_cast(this->continuousparameterranges_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->continuousparameterranges(static_cast(i)), - output); - } - - // repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - for (unsigned int i = 0, - n = static_cast(this->integerparameterranges_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->integerparameterranges(static_cast(i)), - output); - } - - // repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - for (unsigned int i = 0, - n = static_cast(this->categoricalparameterranges_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->categoricalparameterranges(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ParameterRanges) -} - -::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ParameterRanges) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - for (unsigned int i = 0, - n = static_cast(this->continuousparameterranges_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->continuousparameterranges(static_cast(i)), target); - } - - // repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - for (unsigned int i = 0, - n = static_cast(this->integerparameterranges_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->integerparameterranges(static_cast(i)), target); - } - - // repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - for (unsigned int i = 0, - n = static_cast(this->categoricalparameterranges_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->categoricalparameterranges(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ParameterRanges) - return target; -} - -size_t ParameterRanges::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ParameterRanges) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - { - unsigned int count = static_cast(this->continuousparameterranges_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->continuousparameterranges(static_cast(i))); - } - } - - // repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - { - unsigned int count = static_cast(this->integerparameterranges_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->integerparameterranges(static_cast(i))); - } - } - - // repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - { - unsigned int count = static_cast(this->categoricalparameterranges_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->categoricalparameterranges(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ParameterRanges::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ParameterRanges) - GOOGLE_DCHECK_NE(&from, this); - const ParameterRanges* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ParameterRanges) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ParameterRanges) - MergeFrom(*source); - } -} - -void ParameterRanges::MergeFrom(const ParameterRanges& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ParameterRanges) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - continuousparameterranges_.MergeFrom(from.continuousparameterranges_); - integerparameterranges_.MergeFrom(from.integerparameterranges_); - categoricalparameterranges_.MergeFrom(from.categoricalparameterranges_); -} - -void ParameterRanges::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ParameterRanges) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ParameterRanges::CopyFrom(const ParameterRanges& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ParameterRanges) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ParameterRanges::IsInitialized() const { - return true; -} - -void ParameterRanges::Swap(ParameterRanges* other) { - if (other == this) return; - InternalSwap(other); -} -void ParameterRanges::InternalSwap(ParameterRanges* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&continuousparameterranges_)->InternalSwap(CastToBase(&other->continuousparameterranges_)); - CastToBase(&integerparameterranges_)->InternalSwap(CastToBase(&other->integerparameterranges_)); - CastToBase(&categoricalparameterranges_)->InternalSwap(CastToBase(&other->categoricalparameterranges_)); -} - -::google::protobuf::Metadata ParameterRanges::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance() { -} -class AlgorithmSpecification_MetricDefinition::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AlgorithmSpecification_MetricDefinition::kNameFieldNumber; -const int AlgorithmSpecification_MetricDefinition::kRegexFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) -} -AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.regex().size() > 0) { - regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) -} - -void AlgorithmSpecification_MetricDefinition::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -AlgorithmSpecification_MetricDefinition::~AlgorithmSpecification_MetricDefinition() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - SharedDtor(); -} - -void AlgorithmSpecification_MetricDefinition::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - regex_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void AlgorithmSpecification_MetricDefinition::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AlgorithmSpecification_MetricDefinition& AlgorithmSpecification_MetricDefinition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - return *internal_default_instance(); -} - - -void AlgorithmSpecification_MetricDefinition::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // string Name = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string Regex = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); - object = msg->mutable_regex(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string Name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name")); - } else { - goto handle_unusual; - } - break; - } - - // string Regex = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_regex())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->regex().data(), static_cast(this->regex().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // string Regex = 2; - if (this->regex().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->regex().data(), static_cast(this->regex().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->regex(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) -} - -::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // string Regex = 2; - if (this->regex().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->regex().data(), static_cast(this->regex().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->regex(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - return target; -} - -size_t AlgorithmSpecification_MetricDefinition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string Name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // string Regex = 2; - if (this->regex().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->regex()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AlgorithmSpecification_MetricDefinition::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - GOOGLE_DCHECK_NE(&from, this); - const AlgorithmSpecification_MetricDefinition* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - MergeFrom(*source); - } -} - -void AlgorithmSpecification_MetricDefinition::MergeFrom(const AlgorithmSpecification_MetricDefinition& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.regex().size() > 0) { - - regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); - } -} - -void AlgorithmSpecification_MetricDefinition::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AlgorithmSpecification_MetricDefinition::CopyFrom(const AlgorithmSpecification_MetricDefinition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AlgorithmSpecification_MetricDefinition::IsInitialized() const { - return true; -} - -void AlgorithmSpecification_MetricDefinition::Swap(AlgorithmSpecification_MetricDefinition* other) { - if (other == this) return; - InternalSwap(other); -} -void AlgorithmSpecification_MetricDefinition::InternalSwap(AlgorithmSpecification_MetricDefinition* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - regex_.Swap(&other->regex_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata AlgorithmSpecification_MetricDefinition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void AlgorithmSpecification::InitAsDefaultInstance() { -} -class AlgorithmSpecification::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AlgorithmSpecification::kTrainingImageFieldNumber; -const int AlgorithmSpecification::kTrainingInputModeFieldNumber; -const int AlgorithmSpecification::kAlgorithmNameFieldNumber; -const int AlgorithmSpecification::kMetricDefinitionsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AlgorithmSpecification::AlgorithmSpecification() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) -} -AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - metricdefinitions_(from.metricdefinitions_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - trainingimage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.trainingimage().size() > 0) { - trainingimage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trainingimage_); - } - traininginputmode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.traininginputmode().size() > 0) { - traininginputmode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.traininginputmode_); - } - algorithmname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.algorithmname().size() > 0) { - algorithmname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithmname_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) -} - -void AlgorithmSpecification::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - trainingimage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - traininginputmode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - algorithmname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -AlgorithmSpecification::~AlgorithmSpecification() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) - SharedDtor(); -} - -void AlgorithmSpecification::SharedDtor() { - trainingimage_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - traininginputmode_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - algorithmname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void AlgorithmSpecification::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AlgorithmSpecification& AlgorithmSpecification::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - return *internal_default_instance(); -} - - -void AlgorithmSpecification::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - metricdefinitions_.Clear(); - trainingimage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - traininginputmode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - algorithmname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AlgorithmSpecification::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // string TrainingImage = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); - object = msg->mutable_trainingimage(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string TrainingInputMode = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); - object = msg->mutable_traininginputmode(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string AlgorithmName = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); - object = msg->mutable_algorithmname(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::_InternalParse; - object = msg->add_metricdefinitions(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AlgorithmSpecification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string TrainingImage = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_trainingimage())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->trainingimage().data(), static_cast(this->trainingimage().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage")); - } else { - goto handle_unusual; - } - break; - } - - // string TrainingInputMode = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_traininginputmode())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->traininginputmode().data(), static_cast(this->traininginputmode().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode")); - } else { - goto handle_unusual; - } - break; - } - - // string AlgorithmName = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_algorithmname())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->algorithmname().data(), static_cast(this->algorithmname().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_metricdefinitions())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmSpecification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmSpecification) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AlgorithmSpecification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string TrainingImage = 1; - if (this->trainingimage().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->trainingimage().data(), static_cast(this->trainingimage().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->trainingimage(), output); - } - - // string TrainingInputMode = 2; - if (this->traininginputmode().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->traininginputmode().data(), static_cast(this->traininginputmode().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->traininginputmode(), output); - } - - // string AlgorithmName = 3; - if (this->algorithmname().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->algorithmname().data(), static_cast(this->algorithmname().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->algorithmname(), output); - } - - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - for (unsigned int i = 0, - n = static_cast(this->metricdefinitions_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->metricdefinitions(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmSpecification) -} - -::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string TrainingImage = 1; - if (this->trainingimage().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->trainingimage().data(), static_cast(this->trainingimage().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->trainingimage(), target); - } - - // string TrainingInputMode = 2; - if (this->traininginputmode().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->traininginputmode().data(), static_cast(this->traininginputmode().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->traininginputmode(), target); - } - - // string AlgorithmName = 3; - if (this->algorithmname().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->algorithmname().data(), static_cast(this->algorithmname().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->algorithmname(), target); - } - - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - for (unsigned int i = 0, - n = static_cast(this->metricdefinitions_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->metricdefinitions(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmSpecification) - return target; -} - -size_t AlgorithmSpecification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - { - unsigned int count = static_cast(this->metricdefinitions_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->metricdefinitions(static_cast(i))); - } - } - - // string TrainingImage = 1; - if (this->trainingimage().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->trainingimage()); - } - - // string TrainingInputMode = 2; - if (this->traininginputmode().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->traininginputmode()); - } - - // string AlgorithmName = 3; - if (this->algorithmname().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->algorithmname()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AlgorithmSpecification::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - GOOGLE_DCHECK_NE(&from, this); - const AlgorithmSpecification* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmSpecification) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmSpecification) - MergeFrom(*source); - } -} - -void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - metricdefinitions_.MergeFrom(from.metricdefinitions_); - if (from.trainingimage().size() > 0) { - - trainingimage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trainingimage_); - } - if (from.traininginputmode().size() > 0) { - - traininginputmode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.traininginputmode_); - } - if (from.algorithmname().size() > 0) { - - algorithmname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithmname_); - } -} - -void AlgorithmSpecification::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AlgorithmSpecification::CopyFrom(const AlgorithmSpecification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AlgorithmSpecification::IsInitialized() const { - return true; -} - -void AlgorithmSpecification::Swap(AlgorithmSpecification* other) { - if (other == this) return; - InternalSwap(other); -} -void AlgorithmSpecification::InternalSwap(AlgorithmSpecification* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&metricdefinitions_)->InternalSwap(CastToBase(&other->metricdefinitions_)); - trainingimage_.Swap(&other->trainingimage_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - traininginputmode_.Swap(&other->traininginputmode_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - algorithmname_.Swap(&other->algorithmname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata AlgorithmSpecification::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ResourceConfig::InitAsDefaultInstance() { -} -class ResourceConfig::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ResourceConfig::kInstanceTypeFieldNumber; -const int ResourceConfig::kInstanceCountFieldNumber; -const int ResourceConfig::kVolumeSizeInGBFieldNumber; -const int ResourceConfig::kVolumeKmsKeyIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ResourceConfig::ResourceConfig() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ResourceConfig) -} -ResourceConfig::ResourceConfig(const ResourceConfig& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - instancetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.instancetype().size() > 0) { - instancetype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instancetype_); - } - volumekmskeyid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.volumekmskeyid().size() > 0) { - volumekmskeyid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volumekmskeyid_); - } - ::memcpy(&instancecount_, &from.instancecount_, - static_cast(reinterpret_cast(&volumesizeingb_) - - reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ResourceConfig) -} - -void ResourceConfig::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - instancetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - volumekmskeyid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&instancecount_, 0, static_cast( - reinterpret_cast(&volumesizeingb_) - - reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); -} - -ResourceConfig::~ResourceConfig() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ResourceConfig) - SharedDtor(); -} - -void ResourceConfig::SharedDtor() { - instancetype_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - volumekmskeyid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ResourceConfig::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ResourceConfig& ResourceConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - return *internal_default_instance(); -} - - -void ResourceConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ResourceConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - instancetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - volumekmskeyid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&instancecount_, 0, static_cast( - reinterpret_cast(&volumesizeingb_) - - reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ResourceConfig::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // string InstanceType = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ResourceConfig.InstanceType"); - object = msg->mutable_instancetype(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // int64 InstanceCount = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_instancecount(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int64 VolumeSizeInGB = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_volumesizeingb(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string VolumeKmsKeyId = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); - object = msg->mutable_volumekmskeyid(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ResourceConfig::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ResourceConfig) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string InstanceType = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_instancetype())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->instancetype().data(), static_cast(this->instancetype().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.ResourceConfig.InstanceType")); - } else { - goto handle_unusual; - } - break; - } - - // int64 InstanceCount = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &instancecount_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 VolumeSizeInGB = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &volumesizeingb_))); - } else { - goto handle_unusual; - } - break; - } - - // string VolumeKmsKeyId = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_volumekmskeyid())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ResourceConfig) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ResourceConfig) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ResourceConfig::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ResourceConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string InstanceType = 1; - if (this->instancetype().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->instancetype().data(), static_cast(this->instancetype().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ResourceConfig.InstanceType"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->instancetype(), output); - } - - // int64 InstanceCount = 2; - if (this->instancecount() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->instancecount(), output); - } - - // int64 VolumeSizeInGB = 3; - if (this->volumesizeingb() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->volumesizeingb(), output); - } - - // string VolumeKmsKeyId = 4; - if (this->volumekmskeyid().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->volumekmskeyid(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ResourceConfig) -} - -::google::protobuf::uint8* ResourceConfig::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ResourceConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string InstanceType = 1; - if (this->instancetype().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->instancetype().data(), static_cast(this->instancetype().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ResourceConfig.InstanceType"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->instancetype(), target); - } - - // int64 InstanceCount = 2; - if (this->instancecount() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->instancecount(), target); - } - - // int64 VolumeSizeInGB = 3; - if (this->volumesizeingb() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->volumesizeingb(), target); - } - - // string VolumeKmsKeyId = 4; - if (this->volumekmskeyid().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->volumekmskeyid(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ResourceConfig) - return target; -} - -size_t ResourceConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ResourceConfig) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string InstanceType = 1; - if (this->instancetype().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->instancetype()); - } - - // string VolumeKmsKeyId = 4; - if (this->volumekmskeyid().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->volumekmskeyid()); - } - - // int64 InstanceCount = 2; - if (this->instancecount() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->instancecount()); - } - - // int64 VolumeSizeInGB = 3; - if (this->volumesizeingb() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->volumesizeingb()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ResourceConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ResourceConfig) - GOOGLE_DCHECK_NE(&from, this); - const ResourceConfig* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ResourceConfig) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ResourceConfig) - MergeFrom(*source); - } -} - -void ResourceConfig::MergeFrom(const ResourceConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ResourceConfig) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.instancetype().size() > 0) { - - instancetype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instancetype_); - } - if (from.volumekmskeyid().size() > 0) { - - volumekmskeyid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volumekmskeyid_); - } - if (from.instancecount() != 0) { - set_instancecount(from.instancecount()); - } - if (from.volumesizeingb() != 0) { - set_volumesizeingb(from.volumesizeingb()); - } -} - -void ResourceConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ResourceConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ResourceConfig::CopyFrom(const ResourceConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ResourceConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ResourceConfig::IsInitialized() const { - return true; -} - -void ResourceConfig::Swap(ResourceConfig* other) { - if (other == this) return; - InternalSwap(other); -} -void ResourceConfig::InternalSwap(ResourceConfig* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - instancetype_.Swap(&other->instancetype_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - volumekmskeyid_.Swap(&other->volumekmskeyid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(instancecount_, other->instancecount_); - swap(volumesizeingb_, other->volumesizeingb_); -} - -::google::protobuf::Metadata ResourceConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void StoppingCondition::InitAsDefaultInstance() { -} -class StoppingCondition::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StoppingCondition::kMaxRuntimeInSecondsFieldNumber; -const int StoppingCondition::kMaxWaitTimeInSecondsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StoppingCondition::StoppingCondition() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.StoppingCondition) -} -StoppingCondition::StoppingCondition(const StoppingCondition& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&maxruntimeinseconds_, &from.maxruntimeinseconds_, - static_cast(reinterpret_cast(&maxwaittimeinseconds_) - - reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.StoppingCondition) -} - -void StoppingCondition::SharedCtor() { - ::memset(&maxruntimeinseconds_, 0, static_cast( - reinterpret_cast(&maxwaittimeinseconds_) - - reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); -} - -StoppingCondition::~StoppingCondition() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.StoppingCondition) - SharedDtor(); -} - -void StoppingCondition::SharedDtor() { -} - -void StoppingCondition::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StoppingCondition& StoppingCondition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - return *internal_default_instance(); -} - - -void StoppingCondition::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.StoppingCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&maxruntimeinseconds_, 0, static_cast( - reinterpret_cast(&maxwaittimeinseconds_) - - reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StoppingCondition::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // int64 MaxRuntimeInSeconds = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_maxruntimeinseconds(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int64 MaxWaitTimeInSeconds = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_maxwaittimeinseconds(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StoppingCondition::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.StoppingCondition) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int64 MaxRuntimeInSeconds = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &maxruntimeinseconds_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 MaxWaitTimeInSeconds = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &maxwaittimeinseconds_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.StoppingCondition) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.StoppingCondition) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StoppingCondition::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.StoppingCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 MaxRuntimeInSeconds = 1; - if (this->maxruntimeinseconds() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->maxruntimeinseconds(), output); - } - - // int64 MaxWaitTimeInSeconds = 2; - if (this->maxwaittimeinseconds() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->maxwaittimeinseconds(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.StoppingCondition) -} - -::google::protobuf::uint8* StoppingCondition::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.StoppingCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 MaxRuntimeInSeconds = 1; - if (this->maxruntimeinseconds() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->maxruntimeinseconds(), target); - } - - // int64 MaxWaitTimeInSeconds = 2; - if (this->maxwaittimeinseconds() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->maxwaittimeinseconds(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.StoppingCondition) - return target; -} - -size_t StoppingCondition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.StoppingCondition) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int64 MaxRuntimeInSeconds = 1; - if (this->maxruntimeinseconds() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->maxruntimeinseconds()); - } - - // int64 MaxWaitTimeInSeconds = 2; - if (this->maxwaittimeinseconds() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->maxwaittimeinseconds()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StoppingCondition::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.StoppingCondition) - GOOGLE_DCHECK_NE(&from, this); - const StoppingCondition* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.StoppingCondition) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.StoppingCondition) - MergeFrom(*source); - } -} - -void StoppingCondition::MergeFrom(const StoppingCondition& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.StoppingCondition) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.maxruntimeinseconds() != 0) { - set_maxruntimeinseconds(from.maxruntimeinseconds()); - } - if (from.maxwaittimeinseconds() != 0) { - set_maxwaittimeinseconds(from.maxwaittimeinseconds()); - } -} - -void StoppingCondition::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.StoppingCondition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StoppingCondition::CopyFrom(const StoppingCondition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.StoppingCondition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StoppingCondition::IsInitialized() const { - return true; -} - -void StoppingCondition::Swap(StoppingCondition* other) { - if (other == this) return; - InternalSwap(other); -} -void StoppingCondition::InternalSwap(StoppingCondition* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(maxruntimeinseconds_, other->maxruntimeinseconds_); - swap(maxwaittimeinseconds_, other->maxwaittimeinseconds_); -} - -::google::protobuf::Metadata StoppingCondition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void VpcConfig::InitAsDefaultInstance() { -} -class VpcConfig::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VpcConfig::kSecurityGroupIdsFieldNumber; -const int VpcConfig::kSubnetsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VpcConfig::VpcConfig() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.VpcConfig) -} -VpcConfig::VpcConfig(const VpcConfig& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - securitygroupids_(from.securitygroupids_), - subnets_(from.subnets_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.VpcConfig) -} - -void VpcConfig::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); -} - -VpcConfig::~VpcConfig() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.VpcConfig) - SharedDtor(); -} - -void VpcConfig::SharedDtor() { -} - -void VpcConfig::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VpcConfig& VpcConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - return *internal_default_instance(); -} - - -void VpcConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.VpcConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - securitygroupids_.Clear(); - subnets_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* VpcConfig::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // repeated string SecurityGroupIds = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds"); - object = msg->add_securitygroupids(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // repeated string Subnets = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.VpcConfig.Subnets"); - object = msg->add_subnets(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool VpcConfig::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.VpcConfig) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string SecurityGroupIds = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_securitygroupids())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->securitygroupids(this->securitygroupids_size() - 1).data(), - static_cast(this->securitygroupids(this->securitygroupids_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string Subnets = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_subnets())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->subnets(this->subnets_size() - 1).data(), - static_cast(this->subnets(this->subnets_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.VpcConfig.Subnets")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.VpcConfig) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.VpcConfig) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void VpcConfig::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.VpcConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string SecurityGroupIds = 1; - for (int i = 0, n = this->securitygroupids_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->securitygroupids(i).data(), static_cast(this->securitygroupids(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->securitygroupids(i), output); - } - - // repeated string Subnets = 2; - for (int i = 0, n = this->subnets_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->subnets(i).data(), static_cast(this->subnets(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.VpcConfig.Subnets"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->subnets(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.VpcConfig) -} - -::google::protobuf::uint8* VpcConfig::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.VpcConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string SecurityGroupIds = 1; - for (int i = 0, n = this->securitygroupids_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->securitygroupids(i).data(), static_cast(this->securitygroupids(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->securitygroupids(i), target); - } - - // repeated string Subnets = 2; - for (int i = 0, n = this->subnets_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->subnets(i).data(), static_cast(this->subnets(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.VpcConfig.Subnets"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->subnets(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.VpcConfig) - return target; -} - -size_t VpcConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.VpcConfig) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string SecurityGroupIds = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->securitygroupids_size()); - for (int i = 0, n = this->securitygroupids_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->securitygroupids(i)); - } - - // repeated string Subnets = 2; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->subnets_size()); - for (int i = 0, n = this->subnets_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->subnets(i)); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VpcConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.VpcConfig) - GOOGLE_DCHECK_NE(&from, this); - const VpcConfig* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.VpcConfig) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.VpcConfig) - MergeFrom(*source); - } -} - -void VpcConfig::MergeFrom(const VpcConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.VpcConfig) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - securitygroupids_.MergeFrom(from.securitygroupids_); - subnets_.MergeFrom(from.subnets_); -} - -void VpcConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.VpcConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VpcConfig::CopyFrom(const VpcConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.VpcConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VpcConfig::IsInitialized() const { - return true; -} - -void VpcConfig::Swap(VpcConfig* other) { - if (other == this) return; - InternalSwap(other); -} -void VpcConfig::InternalSwap(VpcConfig* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - securitygroupids_.InternalSwap(CastToBase(&other->securitygroupids_)); - subnets_.InternalSwap(CastToBase(&other->subnets_)); -} - -::google::protobuf::Metadata VpcConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SagemakerTrainingJob::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->algorithmspecification_ = const_cast< ::flyteidl::plugins::sagemaker::AlgorithmSpecification*>( - ::flyteidl::plugins::sagemaker::AlgorithmSpecification::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->resourceconfig_ = const_cast< ::flyteidl::plugins::sagemaker::ResourceConfig*>( - ::flyteidl::plugins::sagemaker::ResourceConfig::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->stoppingcondition_ = const_cast< ::flyteidl::plugins::sagemaker::StoppingCondition*>( - ::flyteidl::plugins::sagemaker::StoppingCondition::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_._instance.get_mutable()->vpcconfig_ = const_cast< ::flyteidl::plugins::sagemaker::VpcConfig*>( - ::flyteidl::plugins::sagemaker::VpcConfig::internal_default_instance()); -} -class SagemakerTrainingJob::HasBitSetters { - public: - static const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithmspecification(const SagemakerTrainingJob* msg); - static const ::flyteidl::plugins::sagemaker::ResourceConfig& resourceconfig(const SagemakerTrainingJob* msg); - static const ::flyteidl::plugins::sagemaker::StoppingCondition& stoppingcondition(const SagemakerTrainingJob* msg); - static const ::flyteidl::plugins::sagemaker::VpcConfig& vpcconfig(const SagemakerTrainingJob* msg); -}; - -const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& -SagemakerTrainingJob::HasBitSetters::algorithmspecification(const SagemakerTrainingJob* msg) { - return *msg->algorithmspecification_; -} -const ::flyteidl::plugins::sagemaker::ResourceConfig& -SagemakerTrainingJob::HasBitSetters::resourceconfig(const SagemakerTrainingJob* msg) { - return *msg->resourceconfig_; -} -const ::flyteidl::plugins::sagemaker::StoppingCondition& -SagemakerTrainingJob::HasBitSetters::stoppingcondition(const SagemakerTrainingJob* msg) { - return *msg->stoppingcondition_; -} -const ::flyteidl::plugins::sagemaker::VpcConfig& -SagemakerTrainingJob::HasBitSetters::vpcconfig(const SagemakerTrainingJob* msg) { - return *msg->vpcconfig_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SagemakerTrainingJob::kRegionFieldNumber; -const int SagemakerTrainingJob::kRoleArnFieldNumber; -const int SagemakerTrainingJob::kAlgorithmSpecificationFieldNumber; -const int SagemakerTrainingJob::kResourceConfigFieldNumber; -const int SagemakerTrainingJob::kStoppingConditionFieldNumber; -const int SagemakerTrainingJob::kVpcConfigFieldNumber; -const int SagemakerTrainingJob::kEnableSpotTrainingFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SagemakerTrainingJob::SagemakerTrainingJob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.SagemakerTrainingJob) -} -SagemakerTrainingJob::SagemakerTrainingJob(const SagemakerTrainingJob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - region_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.region().size() > 0) { - region_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_); - } - rolearn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.rolearn().size() > 0) { - rolearn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rolearn_); - } - if (from.has_algorithmspecification()) { - algorithmspecification_ = new ::flyteidl::plugins::sagemaker::AlgorithmSpecification(*from.algorithmspecification_); - } else { - algorithmspecification_ = nullptr; - } - if (from.has_resourceconfig()) { - resourceconfig_ = new ::flyteidl::plugins::sagemaker::ResourceConfig(*from.resourceconfig_); - } else { - resourceconfig_ = nullptr; - } - if (from.has_stoppingcondition()) { - stoppingcondition_ = new ::flyteidl::plugins::sagemaker::StoppingCondition(*from.stoppingcondition_); - } else { - stoppingcondition_ = nullptr; - } - if (from.has_vpcconfig()) { - vpcconfig_ = new ::flyteidl::plugins::sagemaker::VpcConfig(*from.vpcconfig_); - } else { - vpcconfig_ = nullptr; - } - enablespottraining_ = from.enablespottraining_; - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.SagemakerTrainingJob) -} - -void SagemakerTrainingJob::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - region_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - rolearn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&algorithmspecification_, 0, static_cast( - reinterpret_cast(&enablespottraining_) - - reinterpret_cast(&algorithmspecification_)) + sizeof(enablespottraining_)); -} - -SagemakerTrainingJob::~SagemakerTrainingJob() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - SharedDtor(); -} - -void SagemakerTrainingJob::SharedDtor() { - region_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - rolearn_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete algorithmspecification_; - if (this != internal_default_instance()) delete resourceconfig_; - if (this != internal_default_instance()) delete stoppingcondition_; - if (this != internal_default_instance()) delete vpcconfig_; -} - -void SagemakerTrainingJob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SagemakerTrainingJob& SagemakerTrainingJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SagemakerTrainingJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - return *internal_default_instance(); -} - - -void SagemakerTrainingJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - rolearn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && algorithmspecification_ != nullptr) { - delete algorithmspecification_; - } - algorithmspecification_ = nullptr; - if (GetArenaNoVirtual() == nullptr && resourceconfig_ != nullptr) { - delete resourceconfig_; - } - resourceconfig_ = nullptr; - if (GetArenaNoVirtual() == nullptr && stoppingcondition_ != nullptr) { - delete stoppingcondition_; - } - stoppingcondition_ = nullptr; - if (GetArenaNoVirtual() == nullptr && vpcconfig_ != nullptr) { - delete vpcconfig_; - } - vpcconfig_ = nullptr; - enablespottraining_ = false; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SagemakerTrainingJob::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // string Region = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region"); - object = msg->mutable_region(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string RoleArn = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn"); - object = msg->mutable_rolearn(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification::_InternalParse; - object = msg->mutable_algorithmspecification(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::ResourceConfig::_InternalParse; - object = msg->mutable_resourceconfig(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::StoppingCondition::_InternalParse; - object = msg->mutable_stoppingcondition(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::VpcConfig::_InternalParse; - object = msg->mutable_vpcconfig(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // bool EnableSpotTraining = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; - msg->set_enablespottraining(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SagemakerTrainingJob::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string Region = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_region())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->region().data(), static_cast(this->region().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region")); - } else { - goto handle_unusual; - } - break; - } - - // string RoleArn = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_rolearn())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->rolearn().data(), static_cast(this->rolearn().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_algorithmspecification())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_resourceconfig())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_stoppingcondition())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_vpcconfig())); - } else { - goto handle_unusual; - } - break; - } - - // bool EnableSpotTraining = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &enablespottraining_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SagemakerTrainingJob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Region = 1; - if (this->region().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->region().data(), static_cast(this->region().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->region(), output); - } - - // string RoleArn = 2; - if (this->rolearn().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->rolearn().data(), static_cast(this->rolearn().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->rolearn(), output); - } - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - if (this->has_algorithmspecification()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::algorithmspecification(this), output); - } - - // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - if (this->has_resourceconfig()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::resourceconfig(this), output); - } - - // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - if (this->has_stoppingcondition()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::stoppingcondition(this), output); - } - - // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - if (this->has_vpcconfig()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::vpcconfig(this), output); - } - - // bool EnableSpotTraining = 7; - if (this->enablespottraining() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->enablespottraining(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.SagemakerTrainingJob) -} - -::google::protobuf::uint8* SagemakerTrainingJob::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Region = 1; - if (this->region().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->region().data(), static_cast(this->region().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->region(), target); - } - - // string RoleArn = 2; - if (this->rolearn().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->rolearn().data(), static_cast(this->rolearn().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->rolearn(), target); - } - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - if (this->has_algorithmspecification()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::algorithmspecification(this), target); - } - - // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - if (this->has_resourceconfig()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::resourceconfig(this), target); - } - - // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - if (this->has_stoppingcondition()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::stoppingcondition(this), target); - } - - // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - if (this->has_vpcconfig()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::vpcconfig(this), target); - } - - // bool EnableSpotTraining = 7; - if (this->enablespottraining() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->enablespottraining(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - return target; -} - -size_t SagemakerTrainingJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string Region = 1; - if (this->region().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->region()); - } - - // string RoleArn = 2; - if (this->rolearn().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->rolearn()); - } - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - if (this->has_algorithmspecification()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *algorithmspecification_); - } - - // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - if (this->has_resourceconfig()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *resourceconfig_); - } - - // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - if (this->has_stoppingcondition()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *stoppingcondition_); - } - - // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - if (this->has_vpcconfig()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *vpcconfig_); - } - - // bool EnableSpotTraining = 7; - if (this->enablespottraining() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SagemakerTrainingJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - GOOGLE_DCHECK_NE(&from, this); - const SagemakerTrainingJob* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - MergeFrom(*source); - } -} - -void SagemakerTrainingJob::MergeFrom(const SagemakerTrainingJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.region().size() > 0) { - - region_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_); - } - if (from.rolearn().size() > 0) { - - rolearn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rolearn_); - } - if (from.has_algorithmspecification()) { - mutable_algorithmspecification()->::flyteidl::plugins::sagemaker::AlgorithmSpecification::MergeFrom(from.algorithmspecification()); - } - if (from.has_resourceconfig()) { - mutable_resourceconfig()->::flyteidl::plugins::sagemaker::ResourceConfig::MergeFrom(from.resourceconfig()); - } - if (from.has_stoppingcondition()) { - mutable_stoppingcondition()->::flyteidl::plugins::sagemaker::StoppingCondition::MergeFrom(from.stoppingcondition()); - } - if (from.has_vpcconfig()) { - mutable_vpcconfig()->::flyteidl::plugins::sagemaker::VpcConfig::MergeFrom(from.vpcconfig()); - } - if (from.enablespottraining() != 0) { - set_enablespottraining(from.enablespottraining()); - } -} - -void SagemakerTrainingJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SagemakerTrainingJob::CopyFrom(const SagemakerTrainingJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SagemakerTrainingJob::IsInitialized() const { - return true; -} - -void SagemakerTrainingJob::Swap(SagemakerTrainingJob* other) { - if (other == this) return; - InternalSwap(other); -} -void SagemakerTrainingJob::InternalSwap(SagemakerTrainingJob* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - region_.Swap(&other->region_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - rolearn_.Swap(&other->rolearn_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(algorithmspecification_, other->algorithmspecification_); - swap(resourceconfig_, other->resourceconfig_); - swap(stoppingcondition_, other->stoppingcondition_); - swap(vpcconfig_, other->vpcconfig_); - swap(enablespottraining_, other->enablespottraining_); -} - -::google::protobuf::Metadata SagemakerTrainingJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void HPOJobObjective::InitAsDefaultInstance() { -} -class HPOJobObjective::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJobObjective::kTypeFieldNumber; -const int HPOJobObjective::kMetricNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HPOJobObjective::HPOJobObjective() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJobObjective) -} -HPOJobObjective::HPOJobObjective(const HPOJobObjective& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - metricname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.metricname().size() > 0) { - metricname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metricname_); - } - type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJobObjective) -} - -void HPOJobObjective::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - metricname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; -} - -HPOJobObjective::~HPOJobObjective() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJobObjective) - SharedDtor(); -} - -void HPOJobObjective::SharedDtor() { - metricname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void HPOJobObjective::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const HPOJobObjective& HPOJobObjective::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - return *internal_default_instance(); -} - - -void HPOJobObjective::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJobObjective) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - metricname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HPOJobObjective::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_type(static_cast<::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string MetricName = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HPOJobObjective.MetricName"); - object = msg->mutable_metricname(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HPOJobObjective::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJobObjective) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_type(static_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string MetricName = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_metricname())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metricname().data(), static_cast(this->metricname().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.HPOJobObjective.MetricName")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJobObjective) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJobObjective) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void HPOJobObjective::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJobObjective) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - if (this->type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->type(), output); - } - - // string MetricName = 2; - if (this->metricname().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metricname().data(), static_cast(this->metricname().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.HPOJobObjective.MetricName"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->metricname(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJobObjective) -} - -::google::protobuf::uint8* HPOJobObjective::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJobObjective) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - if (this->type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->type(), target); - } - - // string MetricName = 2; - if (this->metricname().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metricname().data(), static_cast(this->metricname().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.HPOJobObjective.MetricName"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->metricname(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJobObjective) - return target; -} - -size_t HPOJobObjective::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJobObjective) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string MetricName = 2; - if (this->metricname().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->metricname()); - } - - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - if (this->type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void HPOJobObjective::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) - GOOGLE_DCHECK_NE(&from, this); - const HPOJobObjective* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJobObjective) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJobObjective) - MergeFrom(*source); - } -} - -void HPOJobObjective::MergeFrom(const HPOJobObjective& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.metricname().size() > 0) { - - metricname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metricname_); - } - if (from.type() != 0) { - set_type(from.type()); - } -} - -void HPOJobObjective::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HPOJobObjective::CopyFrom(const HPOJobObjective& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HPOJobObjective::IsInitialized() const { - return true; -} - -void HPOJobObjective::Swap(HPOJobObjective* other) { - if (other == this) return; - InternalSwap(other); -} -void HPOJobObjective::InternalSwap(HPOJobObjective* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - metricname_.Swap(&other->metricname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(type_, other->type_); -} - -::google::protobuf::Metadata HPOJobObjective::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SagemakerHPOJob::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_SagemakerHPOJob_default_instance_._instance.get_mutable()->objective_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective*>( - ::flyteidl::plugins::sagemaker::HPOJobObjective::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_SagemakerHPOJob_default_instance_._instance.get_mutable()->parameterranges_ = const_cast< ::flyteidl::plugins::sagemaker::ParameterRanges*>( - ::flyteidl::plugins::sagemaker::ParameterRanges::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_SagemakerHPOJob_default_instance_._instance.get_mutable()->trainingjob_ = const_cast< ::flyteidl::plugins::sagemaker::SagemakerTrainingJob*>( - ::flyteidl::plugins::sagemaker::SagemakerTrainingJob::internal_default_instance()); -} -class SagemakerHPOJob::HasBitSetters { - public: - static const ::flyteidl::plugins::sagemaker::HPOJobObjective& objective(const SagemakerHPOJob* msg); - static const ::flyteidl::plugins::sagemaker::ParameterRanges& parameterranges(const SagemakerHPOJob* msg); - static const ::flyteidl::plugins::sagemaker::SagemakerTrainingJob& trainingjob(const SagemakerHPOJob* msg); -}; - -const ::flyteidl::plugins::sagemaker::HPOJobObjective& -SagemakerHPOJob::HasBitSetters::objective(const SagemakerHPOJob* msg) { - return *msg->objective_; -} -const ::flyteidl::plugins::sagemaker::ParameterRanges& -SagemakerHPOJob::HasBitSetters::parameterranges(const SagemakerHPOJob* msg) { - return *msg->parameterranges_; -} -const ::flyteidl::plugins::sagemaker::SagemakerTrainingJob& -SagemakerHPOJob::HasBitSetters::trainingjob(const SagemakerHPOJob* msg) { - return *msg->trainingjob_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SagemakerHPOJob::kStrategyFieldNumber; -const int SagemakerHPOJob::kObjectiveFieldNumber; -const int SagemakerHPOJob::kMaxNumberOfTrainingJobsFieldNumber; -const int SagemakerHPOJob::kMaxParallelTrainingJobsFieldNumber; -const int SagemakerHPOJob::kParameterRangesFieldNumber; -const int SagemakerHPOJob::kTrainingJobFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SagemakerHPOJob::SagemakerHPOJob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.SagemakerHPOJob) -} -SagemakerHPOJob::SagemakerHPOJob(const SagemakerHPOJob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - strategy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.strategy().size() > 0) { - strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_); - } - if (from.has_objective()) { - objective_ = new ::flyteidl::plugins::sagemaker::HPOJobObjective(*from.objective_); - } else { - objective_ = nullptr; - } - if (from.has_parameterranges()) { - parameterranges_ = new ::flyteidl::plugins::sagemaker::ParameterRanges(*from.parameterranges_); - } else { - parameterranges_ = nullptr; - } - if (from.has_trainingjob()) { - trainingjob_ = new ::flyteidl::plugins::sagemaker::SagemakerTrainingJob(*from.trainingjob_); - } else { - trainingjob_ = nullptr; - } - ::memcpy(&maxnumberoftrainingjobs_, &from.maxnumberoftrainingjobs_, - static_cast(reinterpret_cast(&maxparalleltrainingjobs_) - - reinterpret_cast(&maxnumberoftrainingjobs_)) + sizeof(maxparalleltrainingjobs_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.SagemakerHPOJob) -} - -void SagemakerHPOJob::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - strategy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&objective_, 0, static_cast( - reinterpret_cast(&maxparalleltrainingjobs_) - - reinterpret_cast(&objective_)) + sizeof(maxparalleltrainingjobs_)); -} - -SagemakerHPOJob::~SagemakerHPOJob() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.SagemakerHPOJob) - SharedDtor(); -} - -void SagemakerHPOJob::SharedDtor() { - strategy_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete objective_; - if (this != internal_default_instance()) delete parameterranges_; - if (this != internal_default_instance()) delete trainingjob_; -} - -void SagemakerHPOJob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SagemakerHPOJob& SagemakerHPOJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SagemakerHPOJob_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto.base); - return *internal_default_instance(); -} - - -void SagemakerHPOJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - strategy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && objective_ != nullptr) { - delete objective_; - } - objective_ = nullptr; - if (GetArenaNoVirtual() == nullptr && parameterranges_ != nullptr) { - delete parameterranges_; - } - parameterranges_ = nullptr; - if (GetArenaNoVirtual() == nullptr && trainingjob_ != nullptr) { - delete trainingjob_; - } - trainingjob_ = nullptr; - ::memset(&maxnumberoftrainingjobs_, 0, static_cast( - reinterpret_cast(&maxparalleltrainingjobs_) - - reinterpret_cast(&maxnumberoftrainingjobs_)) + sizeof(maxparalleltrainingjobs_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SagemakerHPOJob::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // string Strategy = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy"); - object = msg->mutable_strategy(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::HPOJobObjective::_InternalParse; - object = msg->mutable_objective(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // int64 MaxNumberOfTrainingJobs = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_maxnumberoftrainingjobs(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int64 MaxParallelTrainingJobs = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_maxparalleltrainingjobs(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::ParameterRanges::_InternalParse; - object = msg->mutable_parameterranges(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::SagemakerTrainingJob::_InternalParse; - object = msg->mutable_trainingjob(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SagemakerHPOJob::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string Strategy = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_strategy())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->strategy().data(), static_cast(this->strategy().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_objective())); - } else { - goto handle_unusual; - } - break; - } - - // int64 MaxNumberOfTrainingJobs = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &maxnumberoftrainingjobs_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 MaxParallelTrainingJobs = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &maxparalleltrainingjobs_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_parameterranges())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_trainingjob())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.SagemakerHPOJob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.SagemakerHPOJob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SagemakerHPOJob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Strategy = 1; - if (this->strategy().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->strategy().data(), static_cast(this->strategy().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->strategy(), output); - } - - // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - if (this->has_objective()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::objective(this), output); - } - - // int64 MaxNumberOfTrainingJobs = 3; - if (this->maxnumberoftrainingjobs() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->maxnumberoftrainingjobs(), output); - } - - // int64 MaxParallelTrainingJobs = 4; - if (this->maxparalleltrainingjobs() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->maxparalleltrainingjobs(), output); - } - - // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - if (this->has_parameterranges()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::parameterranges(this), output); - } - - // .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - if (this->has_trainingjob()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::trainingjob(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.SagemakerHPOJob) -} - -::google::protobuf::uint8* SagemakerHPOJob::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Strategy = 1; - if (this->strategy().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->strategy().data(), static_cast(this->strategy().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->strategy(), target); - } - - // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - if (this->has_objective()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::objective(this), target); - } - - // int64 MaxNumberOfTrainingJobs = 3; - if (this->maxnumberoftrainingjobs() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->maxnumberoftrainingjobs(), target); - } - - // int64 MaxParallelTrainingJobs = 4; - if (this->maxparalleltrainingjobs() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->maxparalleltrainingjobs(), target); - } - - // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - if (this->has_parameterranges()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::parameterranges(this), target); - } - - // .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - if (this->has_trainingjob()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::trainingjob(this), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.SagemakerHPOJob) - return target; -} - -size_t SagemakerHPOJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string Strategy = 1; - if (this->strategy().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->strategy()); - } - - // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - if (this->has_objective()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *objective_); - } - - // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - if (this->has_parameterranges()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *parameterranges_); - } - - // .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - if (this->has_trainingjob()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *trainingjob_); - } - - // int64 MaxNumberOfTrainingJobs = 3; - if (this->maxnumberoftrainingjobs() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->maxnumberoftrainingjobs()); - } - - // int64 MaxParallelTrainingJobs = 4; - if (this->maxparalleltrainingjobs() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->maxparalleltrainingjobs()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SagemakerHPOJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) - GOOGLE_DCHECK_NE(&from, this); - const SagemakerHPOJob* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.SagemakerHPOJob) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.SagemakerHPOJob) - MergeFrom(*source); - } -} - -void SagemakerHPOJob::MergeFrom(const SagemakerHPOJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.strategy().size() > 0) { - - strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_); - } - if (from.has_objective()) { - mutable_objective()->::flyteidl::plugins::sagemaker::HPOJobObjective::MergeFrom(from.objective()); - } - if (from.has_parameterranges()) { - mutable_parameterranges()->::flyteidl::plugins::sagemaker::ParameterRanges::MergeFrom(from.parameterranges()); - } - if (from.has_trainingjob()) { - mutable_trainingjob()->::flyteidl::plugins::sagemaker::SagemakerTrainingJob::MergeFrom(from.trainingjob()); - } - if (from.maxnumberoftrainingjobs() != 0) { - set_maxnumberoftrainingjobs(from.maxnumberoftrainingjobs()); - } - if (from.maxparalleltrainingjobs() != 0) { - set_maxparalleltrainingjobs(from.maxparalleltrainingjobs()); - } -} - -void SagemakerHPOJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SagemakerHPOJob::CopyFrom(const SagemakerHPOJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.SagemakerHPOJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SagemakerHPOJob::IsInitialized() const { - return true; -} - -void SagemakerHPOJob::Swap(SagemakerHPOJob* other) { - if (other == this) return; - InternalSwap(other); -} -void SagemakerHPOJob::InternalSwap(SagemakerHPOJob* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - strategy_.Swap(&other->strategy_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(objective_, other->objective_); - swap(parameterranges_, other->parameterranges_); - swap(trainingjob_, other->trainingjob_); - swap(maxnumberoftrainingjobs_, other->maxnumberoftrainingjobs_); - swap(maxparalleltrainingjobs_, other->maxparalleltrainingjobs_); -} - -::google::protobuf::Metadata SagemakerHPOJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::IntegerParameterRange >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRanges >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRanges >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ResourceConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ResourceConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ResourceConfig >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::StoppingCondition >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::StoppingCondition >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::VpcConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::VpcConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::VpcConfig >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::SagemakerTrainingJob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::SagemakerTrainingJob >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJobObjective* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJobObjective >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJobObjective >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::SagemakerHPOJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::SagemakerHPOJob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::SagemakerHPOJob >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.h deleted file mode 100644 index 9346d8265..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/sagemaker.pb.h +++ /dev/null @@ -1,3674 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/sagemaker.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[12] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto(); -namespace flyteidl { -namespace plugins { -namespace sagemaker { -class AlgorithmSpecification; -class AlgorithmSpecificationDefaultTypeInternal; -extern AlgorithmSpecificationDefaultTypeInternal _AlgorithmSpecification_default_instance_; -class AlgorithmSpecification_MetricDefinition; -class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal; -extern AlgorithmSpecification_MetricDefinitionDefaultTypeInternal _AlgorithmSpecification_MetricDefinition_default_instance_; -class CategoricalParameterRange; -class CategoricalParameterRangeDefaultTypeInternal; -extern CategoricalParameterRangeDefaultTypeInternal _CategoricalParameterRange_default_instance_; -class ContinuousParameterRange; -class ContinuousParameterRangeDefaultTypeInternal; -extern ContinuousParameterRangeDefaultTypeInternal _ContinuousParameterRange_default_instance_; -class HPOJobObjective; -class HPOJobObjectiveDefaultTypeInternal; -extern HPOJobObjectiveDefaultTypeInternal _HPOJobObjective_default_instance_; -class IntegerParameterRange; -class IntegerParameterRangeDefaultTypeInternal; -extern IntegerParameterRangeDefaultTypeInternal _IntegerParameterRange_default_instance_; -class ParameterRanges; -class ParameterRangesDefaultTypeInternal; -extern ParameterRangesDefaultTypeInternal _ParameterRanges_default_instance_; -class ResourceConfig; -class ResourceConfigDefaultTypeInternal; -extern ResourceConfigDefaultTypeInternal _ResourceConfig_default_instance_; -class SagemakerHPOJob; -class SagemakerHPOJobDefaultTypeInternal; -extern SagemakerHPOJobDefaultTypeInternal _SagemakerHPOJob_default_instance_; -class SagemakerTrainingJob; -class SagemakerTrainingJobDefaultTypeInternal; -extern SagemakerTrainingJobDefaultTypeInternal _SagemakerTrainingJob_default_instance_; -class StoppingCondition; -class StoppingConditionDefaultTypeInternal; -extern StoppingConditionDefaultTypeInternal _StoppingCondition_default_instance_; -class VpcConfig; -class VpcConfigDefaultTypeInternal; -extern VpcConfigDefaultTypeInternal _VpcConfig_default_instance_; -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(Arena*); -template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition>(Arena*); -template<> ::flyteidl::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::CategoricalParameterRange>(Arena*); -template<> ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ContinuousParameterRange>(Arena*); -template<> ::flyteidl::plugins::sagemaker::HPOJobObjective* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobObjective>(Arena*); -template<> ::flyteidl::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::IntegerParameterRange>(Arena*); -template<> ::flyteidl::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(Arena*); -template<> ::flyteidl::plugins::sagemaker::ResourceConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ResourceConfig>(Arena*); -template<> ::flyteidl::plugins::sagemaker::SagemakerHPOJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::SagemakerHPOJob>(Arena*); -template<> ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::SagemakerTrainingJob>(Arena*); -template<> ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::StoppingCondition>(Arena*); -template<> ::flyteidl::plugins::sagemaker::VpcConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::VpcConfig>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { -namespace sagemaker { - -enum HPOJobObjective_HPOJobObjectiveType { - HPOJobObjective_HPOJobObjectiveType_MINIMIZE = 0, - HPOJobObjective_HPOJobObjectiveType_MAXIMIZE = 1, - HPOJobObjective_HPOJobObjectiveType_HPOJobObjective_HPOJobObjectiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - HPOJobObjective_HPOJobObjectiveType_HPOJobObjective_HPOJobObjectiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool HPOJobObjective_HPOJobObjectiveType_IsValid(int value); -const HPOJobObjective_HPOJobObjectiveType HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MIN = HPOJobObjective_HPOJobObjectiveType_MINIMIZE; -const HPOJobObjective_HPOJobObjectiveType HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MAX = HPOJobObjective_HPOJobObjectiveType_MAXIMIZE; -const int HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_ARRAYSIZE = HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* HPOJobObjective_HPOJobObjectiveType_descriptor(); -inline const ::std::string& HPOJobObjective_HPOJobObjectiveType_Name(HPOJobObjective_HPOJobObjectiveType value) { - return ::google::protobuf::internal::NameOfEnum( - HPOJobObjective_HPOJobObjectiveType_descriptor(), value); -} -inline bool HPOJobObjective_HPOJobObjectiveType_Parse( - const ::std::string& name, HPOJobObjective_HPOJobObjectiveType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HPOJobObjective_HPOJobObjectiveType_descriptor(), name, value); -} -enum HyperparameterScalingType { - AUTO = 0, - LINEAR = 1, - LOGARITHMIC = 2, - REVERSELOGARITHMIC = 3, - HyperparameterScalingType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - HyperparameterScalingType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool HyperparameterScalingType_IsValid(int value); -const HyperparameterScalingType HyperparameterScalingType_MIN = AUTO; -const HyperparameterScalingType HyperparameterScalingType_MAX = REVERSELOGARITHMIC; -const int HyperparameterScalingType_ARRAYSIZE = HyperparameterScalingType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor(); -inline const ::std::string& HyperparameterScalingType_Name(HyperparameterScalingType value) { - return ::google::protobuf::internal::NameOfEnum( - HyperparameterScalingType_descriptor(), value); -} -inline bool HyperparameterScalingType_Parse( - const ::std::string& name, HyperparameterScalingType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HyperparameterScalingType_descriptor(), name, value); -} -// =================================================================== - -class ContinuousParameterRange final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ContinuousParameterRange) */ { - public: - ContinuousParameterRange(); - virtual ~ContinuousParameterRange(); - - ContinuousParameterRange(const ContinuousParameterRange& from); - - inline ContinuousParameterRange& operator=(const ContinuousParameterRange& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ContinuousParameterRange(ContinuousParameterRange&& from) noexcept - : ContinuousParameterRange() { - *this = ::std::move(from); - } - - inline ContinuousParameterRange& operator=(ContinuousParameterRange&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const ContinuousParameterRange& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ContinuousParameterRange* internal_default_instance() { - return reinterpret_cast( - &_ContinuousParameterRange_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(ContinuousParameterRange* other); - friend void swap(ContinuousParameterRange& a, ContinuousParameterRange& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ContinuousParameterRange* New() const final { - return CreateMaybeMessage(nullptr); - } - - ContinuousParameterRange* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ContinuousParameterRange& from); - void MergeFrom(const ContinuousParameterRange& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ContinuousParameterRange* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string Name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // double MaxValue = 2; - void clear_maxvalue(); - static const int kMaxValueFieldNumber = 2; - double maxvalue() const; - void set_maxvalue(double value); - - // double MinValue = 3; - void clear_minvalue(); - static const int kMinValueFieldNumber = 3; - double minvalue() const; - void set_minvalue(double value); - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - void clear_scalingtype(); - static const int kScalingTypeFieldNumber = 4; - ::flyteidl::plugins::sagemaker::HyperparameterScalingType scalingtype() const; - void set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - double maxvalue_; - double minvalue_; - int scalingtype_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -}; -// ------------------------------------------------------------------- - -class IntegerParameterRange final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.IntegerParameterRange) */ { - public: - IntegerParameterRange(); - virtual ~IntegerParameterRange(); - - IntegerParameterRange(const IntegerParameterRange& from); - - inline IntegerParameterRange& operator=(const IntegerParameterRange& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - IntegerParameterRange(IntegerParameterRange&& from) noexcept - : IntegerParameterRange() { - *this = ::std::move(from); - } - - inline IntegerParameterRange& operator=(IntegerParameterRange&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const IntegerParameterRange& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IntegerParameterRange* internal_default_instance() { - return reinterpret_cast( - &_IntegerParameterRange_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(IntegerParameterRange* other); - friend void swap(IntegerParameterRange& a, IntegerParameterRange& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline IntegerParameterRange* New() const final { - return CreateMaybeMessage(nullptr); - } - - IntegerParameterRange* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const IntegerParameterRange& from); - void MergeFrom(const IntegerParameterRange& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(IntegerParameterRange* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string Name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // float MaxValue = 2; - void clear_maxvalue(); - static const int kMaxValueFieldNumber = 2; - float maxvalue() const; - void set_maxvalue(float value); - - // float MinValue = 3; - void clear_minvalue(); - static const int kMinValueFieldNumber = 3; - float minvalue() const; - void set_minvalue(float value); - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - void clear_scalingtype(); - static const int kScalingTypeFieldNumber = 4; - ::flyteidl::plugins::sagemaker::HyperparameterScalingType scalingtype() const; - void set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - float maxvalue_; - float minvalue_; - int scalingtype_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -}; -// ------------------------------------------------------------------- - -class CategoricalParameterRange final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.CategoricalParameterRange) */ { - public: - CategoricalParameterRange(); - virtual ~CategoricalParameterRange(); - - CategoricalParameterRange(const CategoricalParameterRange& from); - - inline CategoricalParameterRange& operator=(const CategoricalParameterRange& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CategoricalParameterRange(CategoricalParameterRange&& from) noexcept - : CategoricalParameterRange() { - *this = ::std::move(from); - } - - inline CategoricalParameterRange& operator=(CategoricalParameterRange&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const CategoricalParameterRange& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CategoricalParameterRange* internal_default_instance() { - return reinterpret_cast( - &_CategoricalParameterRange_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(CategoricalParameterRange* other); - friend void swap(CategoricalParameterRange& a, CategoricalParameterRange& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CategoricalParameterRange* New() const final { - return CreateMaybeMessage(nullptr); - } - - CategoricalParameterRange* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const CategoricalParameterRange& from); - void MergeFrom(const CategoricalParameterRange& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CategoricalParameterRange* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string Values = 2; - int values_size() const; - void clear_values(); - static const int kValuesFieldNumber = 2; - const ::std::string& values(int index) const; - ::std::string* mutable_values(int index); - void set_values(int index, const ::std::string& value); - #if LANG_CXX11 - void set_values(int index, ::std::string&& value); - #endif - void set_values(int index, const char* value); - void set_values(int index, const char* value, size_t size); - ::std::string* add_values(); - void add_values(const ::std::string& value); - #if LANG_CXX11 - void add_values(::std::string&& value); - #endif - void add_values(const char* value); - void add_values(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& values() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_values(); - - // string Name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> values_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -}; -// ------------------------------------------------------------------- - -class ParameterRanges final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ParameterRanges) */ { - public: - ParameterRanges(); - virtual ~ParameterRanges(); - - ParameterRanges(const ParameterRanges& from); - - inline ParameterRanges& operator=(const ParameterRanges& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ParameterRanges(ParameterRanges&& from) noexcept - : ParameterRanges() { - *this = ::std::move(from); - } - - inline ParameterRanges& operator=(ParameterRanges&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const ParameterRanges& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ParameterRanges* internal_default_instance() { - return reinterpret_cast( - &_ParameterRanges_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(ParameterRanges* other); - friend void swap(ParameterRanges& a, ParameterRanges& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ParameterRanges* New() const final { - return CreateMaybeMessage(nullptr); - } - - ParameterRanges* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ParameterRanges& from); - void MergeFrom(const ParameterRanges& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ParameterRanges* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - int continuousparameterranges_size() const; - void clear_continuousparameterranges(); - static const int kContinuousParameterRangesFieldNumber = 1; - ::flyteidl::plugins::sagemaker::ContinuousParameterRange* mutable_continuousparameterranges(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >* - mutable_continuousparameterranges(); - const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuousparameterranges(int index) const; - ::flyteidl::plugins::sagemaker::ContinuousParameterRange* add_continuousparameterranges(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >& - continuousparameterranges() const; - - // repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - int integerparameterranges_size() const; - void clear_integerparameterranges(); - static const int kIntegerParameterRangesFieldNumber = 2; - ::flyteidl::plugins::sagemaker::IntegerParameterRange* mutable_integerparameterranges(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::IntegerParameterRange >* - mutable_integerparameterranges(); - const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integerparameterranges(int index) const; - ::flyteidl::plugins::sagemaker::IntegerParameterRange* add_integerparameterranges(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::IntegerParameterRange >& - integerparameterranges() const; - - // repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - int categoricalparameterranges_size() const; - void clear_categoricalparameterranges(); - static const int kCategoricalParameterRangesFieldNumber = 3; - ::flyteidl::plugins::sagemaker::CategoricalParameterRange* mutable_categoricalparameterranges(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >* - mutable_categoricalparameterranges(); - const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categoricalparameterranges(int index) const; - ::flyteidl::plugins::sagemaker::CategoricalParameterRange* add_categoricalparameterranges(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >& - categoricalparameterranges() const; - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::ContinuousParameterRange > continuousparameterranges_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::IntegerParameterRange > integerparameterranges_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::CategoricalParameterRange > categoricalparameterranges_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -}; -// ------------------------------------------------------------------- - -class AlgorithmSpecification_MetricDefinition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) */ { - public: - AlgorithmSpecification_MetricDefinition(); - virtual ~AlgorithmSpecification_MetricDefinition(); - - AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from); - - inline AlgorithmSpecification_MetricDefinition& operator=(const AlgorithmSpecification_MetricDefinition& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AlgorithmSpecification_MetricDefinition(AlgorithmSpecification_MetricDefinition&& from) noexcept - : AlgorithmSpecification_MetricDefinition() { - *this = ::std::move(from); - } - - inline AlgorithmSpecification_MetricDefinition& operator=(AlgorithmSpecification_MetricDefinition&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const AlgorithmSpecification_MetricDefinition& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AlgorithmSpecification_MetricDefinition* internal_default_instance() { - return reinterpret_cast( - &_AlgorithmSpecification_MetricDefinition_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(AlgorithmSpecification_MetricDefinition* other); - friend void swap(AlgorithmSpecification_MetricDefinition& a, AlgorithmSpecification_MetricDefinition& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AlgorithmSpecification_MetricDefinition* New() const final { - return CreateMaybeMessage(nullptr); - } - - AlgorithmSpecification_MetricDefinition* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const AlgorithmSpecification_MetricDefinition& from); - void MergeFrom(const AlgorithmSpecification_MetricDefinition& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlgorithmSpecification_MetricDefinition* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string Name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // string Regex = 2; - void clear_regex(); - static const int kRegexFieldNumber = 2; - const ::std::string& regex() const; - void set_regex(const ::std::string& value); - #if LANG_CXX11 - void set_regex(::std::string&& value); - #endif - void set_regex(const char* value); - void set_regex(const char* value, size_t size); - ::std::string* mutable_regex(); - ::std::string* release_regex(); - void set_allocated_regex(::std::string* regex); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr regex_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -}; -// ------------------------------------------------------------------- - -class AlgorithmSpecification final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmSpecification) */ { - public: - AlgorithmSpecification(); - virtual ~AlgorithmSpecification(); - - AlgorithmSpecification(const AlgorithmSpecification& from); - - inline AlgorithmSpecification& operator=(const AlgorithmSpecification& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AlgorithmSpecification(AlgorithmSpecification&& from) noexcept - : AlgorithmSpecification() { - *this = ::std::move(from); - } - - inline AlgorithmSpecification& operator=(AlgorithmSpecification&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const AlgorithmSpecification& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AlgorithmSpecification* internal_default_instance() { - return reinterpret_cast( - &_AlgorithmSpecification_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(AlgorithmSpecification* other); - friend void swap(AlgorithmSpecification& a, AlgorithmSpecification& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AlgorithmSpecification* New() const final { - return CreateMaybeMessage(nullptr); - } - - AlgorithmSpecification* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const AlgorithmSpecification& from); - void MergeFrom(const AlgorithmSpecification& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlgorithmSpecification* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef AlgorithmSpecification_MetricDefinition MetricDefinition; - - // accessors ------------------------------------------------------- - - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - int metricdefinitions_size() const; - void clear_metricdefinitions(); - static const int kMetricDefinitionsFieldNumber = 4; - ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* mutable_metricdefinitions(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* - mutable_metricdefinitions(); - const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& metricdefinitions(int index) const; - ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* add_metricdefinitions(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& - metricdefinitions() const; - - // string TrainingImage = 1; - void clear_trainingimage(); - static const int kTrainingImageFieldNumber = 1; - const ::std::string& trainingimage() const; - void set_trainingimage(const ::std::string& value); - #if LANG_CXX11 - void set_trainingimage(::std::string&& value); - #endif - void set_trainingimage(const char* value); - void set_trainingimage(const char* value, size_t size); - ::std::string* mutable_trainingimage(); - ::std::string* release_trainingimage(); - void set_allocated_trainingimage(::std::string* trainingimage); - - // string TrainingInputMode = 2; - void clear_traininginputmode(); - static const int kTrainingInputModeFieldNumber = 2; - const ::std::string& traininginputmode() const; - void set_traininginputmode(const ::std::string& value); - #if LANG_CXX11 - void set_traininginputmode(::std::string&& value); - #endif - void set_traininginputmode(const char* value); - void set_traininginputmode(const char* value, size_t size); - ::std::string* mutable_traininginputmode(); - ::std::string* release_traininginputmode(); - void set_allocated_traininginputmode(::std::string* traininginputmode); - - // string AlgorithmName = 3; - void clear_algorithmname(); - static const int kAlgorithmNameFieldNumber = 3; - const ::std::string& algorithmname() const; - void set_algorithmname(const ::std::string& value); - #if LANG_CXX11 - void set_algorithmname(::std::string&& value); - #endif - void set_algorithmname(const char* value); - void set_algorithmname(const char* value, size_t size); - ::std::string* mutable_algorithmname(); - ::std::string* release_algorithmname(); - void set_allocated_algorithmname(::std::string* algorithmname); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition > metricdefinitions_; - ::google::protobuf::internal::ArenaStringPtr trainingimage_; - ::google::protobuf::internal::ArenaStringPtr traininginputmode_; - ::google::protobuf::internal::ArenaStringPtr algorithmname_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -}; -// ------------------------------------------------------------------- - -class ResourceConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ResourceConfig) */ { - public: - ResourceConfig(); - virtual ~ResourceConfig(); - - ResourceConfig(const ResourceConfig& from); - - inline ResourceConfig& operator=(const ResourceConfig& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ResourceConfig(ResourceConfig&& from) noexcept - : ResourceConfig() { - *this = ::std::move(from); - } - - inline ResourceConfig& operator=(ResourceConfig&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const ResourceConfig& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ResourceConfig* internal_default_instance() { - return reinterpret_cast( - &_ResourceConfig_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(ResourceConfig* other); - friend void swap(ResourceConfig& a, ResourceConfig& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ResourceConfig* New() const final { - return CreateMaybeMessage(nullptr); - } - - ResourceConfig* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ResourceConfig& from); - void MergeFrom(const ResourceConfig& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ResourceConfig* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string InstanceType = 1; - void clear_instancetype(); - static const int kInstanceTypeFieldNumber = 1; - const ::std::string& instancetype() const; - void set_instancetype(const ::std::string& value); - #if LANG_CXX11 - void set_instancetype(::std::string&& value); - #endif - void set_instancetype(const char* value); - void set_instancetype(const char* value, size_t size); - ::std::string* mutable_instancetype(); - ::std::string* release_instancetype(); - void set_allocated_instancetype(::std::string* instancetype); - - // string VolumeKmsKeyId = 4; - void clear_volumekmskeyid(); - static const int kVolumeKmsKeyIdFieldNumber = 4; - const ::std::string& volumekmskeyid() const; - void set_volumekmskeyid(const ::std::string& value); - #if LANG_CXX11 - void set_volumekmskeyid(::std::string&& value); - #endif - void set_volumekmskeyid(const char* value); - void set_volumekmskeyid(const char* value, size_t size); - ::std::string* mutable_volumekmskeyid(); - ::std::string* release_volumekmskeyid(); - void set_allocated_volumekmskeyid(::std::string* volumekmskeyid); - - // int64 InstanceCount = 2; - void clear_instancecount(); - static const int kInstanceCountFieldNumber = 2; - ::google::protobuf::int64 instancecount() const; - void set_instancecount(::google::protobuf::int64 value); - - // int64 VolumeSizeInGB = 3; - void clear_volumesizeingb(); - static const int kVolumeSizeInGBFieldNumber = 3; - ::google::protobuf::int64 volumesizeingb() const; - void set_volumesizeingb(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ResourceConfig) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr instancetype_; - ::google::protobuf::internal::ArenaStringPtr volumekmskeyid_; - ::google::protobuf::int64 instancecount_; - ::google::protobuf::int64 volumesizeingb_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -}; -// ------------------------------------------------------------------- - -class StoppingCondition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.StoppingCondition) */ { - public: - StoppingCondition(); - virtual ~StoppingCondition(); - - StoppingCondition(const StoppingCondition& from); - - inline StoppingCondition& operator=(const StoppingCondition& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - StoppingCondition(StoppingCondition&& from) noexcept - : StoppingCondition() { - *this = ::std::move(from); - } - - inline StoppingCondition& operator=(StoppingCondition&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const StoppingCondition& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StoppingCondition* internal_default_instance() { - return reinterpret_cast( - &_StoppingCondition_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(StoppingCondition* other); - friend void swap(StoppingCondition& a, StoppingCondition& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline StoppingCondition* New() const final { - return CreateMaybeMessage(nullptr); - } - - StoppingCondition* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const StoppingCondition& from); - void MergeFrom(const StoppingCondition& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StoppingCondition* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 MaxRuntimeInSeconds = 1; - void clear_maxruntimeinseconds(); - static const int kMaxRuntimeInSecondsFieldNumber = 1; - ::google::protobuf::int64 maxruntimeinseconds() const; - void set_maxruntimeinseconds(::google::protobuf::int64 value); - - // int64 MaxWaitTimeInSeconds = 2; - void clear_maxwaittimeinseconds(); - static const int kMaxWaitTimeInSecondsFieldNumber = 2; - ::google::protobuf::int64 maxwaittimeinseconds() const; - void set_maxwaittimeinseconds(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int64 maxruntimeinseconds_; - ::google::protobuf::int64 maxwaittimeinseconds_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -}; -// ------------------------------------------------------------------- - -class VpcConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.VpcConfig) */ { - public: - VpcConfig(); - virtual ~VpcConfig(); - - VpcConfig(const VpcConfig& from); - - inline VpcConfig& operator=(const VpcConfig& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - VpcConfig(VpcConfig&& from) noexcept - : VpcConfig() { - *this = ::std::move(from); - } - - inline VpcConfig& operator=(VpcConfig&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const VpcConfig& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VpcConfig* internal_default_instance() { - return reinterpret_cast( - &_VpcConfig_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(VpcConfig* other); - friend void swap(VpcConfig& a, VpcConfig& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline VpcConfig* New() const final { - return CreateMaybeMessage(nullptr); - } - - VpcConfig* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const VpcConfig& from); - void MergeFrom(const VpcConfig& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VpcConfig* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string SecurityGroupIds = 1; - int securitygroupids_size() const; - void clear_securitygroupids(); - static const int kSecurityGroupIdsFieldNumber = 1; - const ::std::string& securitygroupids(int index) const; - ::std::string* mutable_securitygroupids(int index); - void set_securitygroupids(int index, const ::std::string& value); - #if LANG_CXX11 - void set_securitygroupids(int index, ::std::string&& value); - #endif - void set_securitygroupids(int index, const char* value); - void set_securitygroupids(int index, const char* value, size_t size); - ::std::string* add_securitygroupids(); - void add_securitygroupids(const ::std::string& value); - #if LANG_CXX11 - void add_securitygroupids(::std::string&& value); - #endif - void add_securitygroupids(const char* value); - void add_securitygroupids(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& securitygroupids() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_securitygroupids(); - - // repeated string Subnets = 2; - int subnets_size() const; - void clear_subnets(); - static const int kSubnetsFieldNumber = 2; - const ::std::string& subnets(int index) const; - ::std::string* mutable_subnets(int index); - void set_subnets(int index, const ::std::string& value); - #if LANG_CXX11 - void set_subnets(int index, ::std::string&& value); - #endif - void set_subnets(int index, const char* value); - void set_subnets(int index, const char* value, size_t size); - ::std::string* add_subnets(); - void add_subnets(const ::std::string& value); - #if LANG_CXX11 - void add_subnets(::std::string&& value); - #endif - void add_subnets(const char* value); - void add_subnets(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& subnets() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_subnets(); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.VpcConfig) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> securitygroupids_; - ::google::protobuf::RepeatedPtrField<::std::string> subnets_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -}; -// ------------------------------------------------------------------- - -class SagemakerTrainingJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.SagemakerTrainingJob) */ { - public: - SagemakerTrainingJob(); - virtual ~SagemakerTrainingJob(); - - SagemakerTrainingJob(const SagemakerTrainingJob& from); - - inline SagemakerTrainingJob& operator=(const SagemakerTrainingJob& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SagemakerTrainingJob(SagemakerTrainingJob&& from) noexcept - : SagemakerTrainingJob() { - *this = ::std::move(from); - } - - inline SagemakerTrainingJob& operator=(SagemakerTrainingJob&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const SagemakerTrainingJob& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SagemakerTrainingJob* internal_default_instance() { - return reinterpret_cast( - &_SagemakerTrainingJob_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(SagemakerTrainingJob* other); - friend void swap(SagemakerTrainingJob& a, SagemakerTrainingJob& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SagemakerTrainingJob* New() const final { - return CreateMaybeMessage(nullptr); - } - - SagemakerTrainingJob* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const SagemakerTrainingJob& from); - void MergeFrom(const SagemakerTrainingJob& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SagemakerTrainingJob* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string Region = 1; - void clear_region(); - static const int kRegionFieldNumber = 1; - const ::std::string& region() const; - void set_region(const ::std::string& value); - #if LANG_CXX11 - void set_region(::std::string&& value); - #endif - void set_region(const char* value); - void set_region(const char* value, size_t size); - ::std::string* mutable_region(); - ::std::string* release_region(); - void set_allocated_region(::std::string* region); - - // string RoleArn = 2; - void clear_rolearn(); - static const int kRoleArnFieldNumber = 2; - const ::std::string& rolearn() const; - void set_rolearn(const ::std::string& value); - #if LANG_CXX11 - void set_rolearn(::std::string&& value); - #endif - void set_rolearn(const char* value); - void set_rolearn(const char* value, size_t size); - ::std::string* mutable_rolearn(); - ::std::string* release_rolearn(); - void set_allocated_rolearn(::std::string* rolearn); - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - bool has_algorithmspecification() const; - void clear_algorithmspecification(); - static const int kAlgorithmSpecificationFieldNumber = 3; - const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithmspecification() const; - ::flyteidl::plugins::sagemaker::AlgorithmSpecification* release_algorithmspecification(); - ::flyteidl::plugins::sagemaker::AlgorithmSpecification* mutable_algorithmspecification(); - void set_allocated_algorithmspecification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithmspecification); - - // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - bool has_resourceconfig() const; - void clear_resourceconfig(); - static const int kResourceConfigFieldNumber = 4; - const ::flyteidl::plugins::sagemaker::ResourceConfig& resourceconfig() const; - ::flyteidl::plugins::sagemaker::ResourceConfig* release_resourceconfig(); - ::flyteidl::plugins::sagemaker::ResourceConfig* mutable_resourceconfig(); - void set_allocated_resourceconfig(::flyteidl::plugins::sagemaker::ResourceConfig* resourceconfig); - - // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - bool has_stoppingcondition() const; - void clear_stoppingcondition(); - static const int kStoppingConditionFieldNumber = 5; - const ::flyteidl::plugins::sagemaker::StoppingCondition& stoppingcondition() const; - ::flyteidl::plugins::sagemaker::StoppingCondition* release_stoppingcondition(); - ::flyteidl::plugins::sagemaker::StoppingCondition* mutable_stoppingcondition(); - void set_allocated_stoppingcondition(::flyteidl::plugins::sagemaker::StoppingCondition* stoppingcondition); - - // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - bool has_vpcconfig() const; - void clear_vpcconfig(); - static const int kVpcConfigFieldNumber = 6; - const ::flyteidl::plugins::sagemaker::VpcConfig& vpcconfig() const; - ::flyteidl::plugins::sagemaker::VpcConfig* release_vpcconfig(); - ::flyteidl::plugins::sagemaker::VpcConfig* mutable_vpcconfig(); - void set_allocated_vpcconfig(::flyteidl::plugins::sagemaker::VpcConfig* vpcconfig); - - // bool EnableSpotTraining = 7; - void clear_enablespottraining(); - static const int kEnableSpotTrainingFieldNumber = 7; - bool enablespottraining() const; - void set_enablespottraining(bool value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr region_; - ::google::protobuf::internal::ArenaStringPtr rolearn_; - ::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithmspecification_; - ::flyteidl::plugins::sagemaker::ResourceConfig* resourceconfig_; - ::flyteidl::plugins::sagemaker::StoppingCondition* stoppingcondition_; - ::flyteidl::plugins::sagemaker::VpcConfig* vpcconfig_; - bool enablespottraining_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -}; -// ------------------------------------------------------------------- - -class HPOJobObjective final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJobObjective) */ { - public: - HPOJobObjective(); - virtual ~HPOJobObjective(); - - HPOJobObjective(const HPOJobObjective& from); - - inline HPOJobObjective& operator=(const HPOJobObjective& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HPOJobObjective(HPOJobObjective&& from) noexcept - : HPOJobObjective() { - *this = ::std::move(from); - } - - inline HPOJobObjective& operator=(HPOJobObjective&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const HPOJobObjective& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HPOJobObjective* internal_default_instance() { - return reinterpret_cast( - &_HPOJobObjective_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(HPOJobObjective* other); - friend void swap(HPOJobObjective& a, HPOJobObjective& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HPOJobObjective* New() const final { - return CreateMaybeMessage(nullptr); - } - - HPOJobObjective* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HPOJobObjective& from); - void MergeFrom(const HPOJobObjective& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HPOJobObjective* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef HPOJobObjective_HPOJobObjectiveType HPOJobObjectiveType; - static const HPOJobObjectiveType MINIMIZE = - HPOJobObjective_HPOJobObjectiveType_MINIMIZE; - static const HPOJobObjectiveType MAXIMIZE = - HPOJobObjective_HPOJobObjectiveType_MAXIMIZE; - static inline bool HPOJobObjectiveType_IsValid(int value) { - return HPOJobObjective_HPOJobObjectiveType_IsValid(value); - } - static const HPOJobObjectiveType HPOJobObjectiveType_MIN = - HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MIN; - static const HPOJobObjectiveType HPOJobObjectiveType_MAX = - HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MAX; - static const int HPOJobObjectiveType_ARRAYSIZE = - HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - HPOJobObjectiveType_descriptor() { - return HPOJobObjective_HPOJobObjectiveType_descriptor(); - } - static inline const ::std::string& HPOJobObjectiveType_Name(HPOJobObjectiveType value) { - return HPOJobObjective_HPOJobObjectiveType_Name(value); - } - static inline bool HPOJobObjectiveType_Parse(const ::std::string& name, - HPOJobObjectiveType* value) { - return HPOJobObjective_HPOJobObjectiveType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string MetricName = 2; - void clear_metricname(); - static const int kMetricNameFieldNumber = 2; - const ::std::string& metricname() const; - void set_metricname(const ::std::string& value); - #if LANG_CXX11 - void set_metricname(::std::string&& value); - #endif - void set_metricname(const char* value); - void set_metricname(const char* value, size_t size); - ::std::string* mutable_metricname(); - ::std::string* release_metricname(); - void set_allocated_metricname(::std::string* metricname); - - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - void clear_type(); - static const int kTypeFieldNumber = 1; - ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType type() const; - void set_type(::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobObjective) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr metricname_; - int type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -}; -// ------------------------------------------------------------------- - -class SagemakerHPOJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.SagemakerHPOJob) */ { - public: - SagemakerHPOJob(); - virtual ~SagemakerHPOJob(); - - SagemakerHPOJob(const SagemakerHPOJob& from); - - inline SagemakerHPOJob& operator=(const SagemakerHPOJob& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SagemakerHPOJob(SagemakerHPOJob&& from) noexcept - : SagemakerHPOJob() { - *this = ::std::move(from); - } - - inline SagemakerHPOJob& operator=(SagemakerHPOJob&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const SagemakerHPOJob& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SagemakerHPOJob* internal_default_instance() { - return reinterpret_cast( - &_SagemakerHPOJob_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(SagemakerHPOJob* other); - friend void swap(SagemakerHPOJob& a, SagemakerHPOJob& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SagemakerHPOJob* New() const final { - return CreateMaybeMessage(nullptr); - } - - SagemakerHPOJob* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const SagemakerHPOJob& from); - void MergeFrom(const SagemakerHPOJob& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SagemakerHPOJob* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string Strategy = 1; - void clear_strategy(); - static const int kStrategyFieldNumber = 1; - const ::std::string& strategy() const; - void set_strategy(const ::std::string& value); - #if LANG_CXX11 - void set_strategy(::std::string&& value); - #endif - void set_strategy(const char* value); - void set_strategy(const char* value, size_t size); - ::std::string* mutable_strategy(); - ::std::string* release_strategy(); - void set_allocated_strategy(::std::string* strategy); - - // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - bool has_objective() const; - void clear_objective(); - static const int kObjectiveFieldNumber = 2; - const ::flyteidl::plugins::sagemaker::HPOJobObjective& objective() const; - ::flyteidl::plugins::sagemaker::HPOJobObjective* release_objective(); - ::flyteidl::plugins::sagemaker::HPOJobObjective* mutable_objective(); - void set_allocated_objective(::flyteidl::plugins::sagemaker::HPOJobObjective* objective); - - // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - bool has_parameterranges() const; - void clear_parameterranges(); - static const int kParameterRangesFieldNumber = 5; - const ::flyteidl::plugins::sagemaker::ParameterRanges& parameterranges() const; - ::flyteidl::plugins::sagemaker::ParameterRanges* release_parameterranges(); - ::flyteidl::plugins::sagemaker::ParameterRanges* mutable_parameterranges(); - void set_allocated_parameterranges(::flyteidl::plugins::sagemaker::ParameterRanges* parameterranges); - - // .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - bool has_trainingjob() const; - void clear_trainingjob(); - static const int kTrainingJobFieldNumber = 6; - const ::flyteidl::plugins::sagemaker::SagemakerTrainingJob& trainingjob() const; - ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* release_trainingjob(); - ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* mutable_trainingjob(); - void set_allocated_trainingjob(::flyteidl::plugins::sagemaker::SagemakerTrainingJob* trainingjob); - - // int64 MaxNumberOfTrainingJobs = 3; - void clear_maxnumberoftrainingjobs(); - static const int kMaxNumberOfTrainingJobsFieldNumber = 3; - ::google::protobuf::int64 maxnumberoftrainingjobs() const; - void set_maxnumberoftrainingjobs(::google::protobuf::int64 value); - - // int64 MaxParallelTrainingJobs = 4; - void clear_maxparalleltrainingjobs(); - static const int kMaxParallelTrainingJobsFieldNumber = 4; - ::google::protobuf::int64 maxparalleltrainingjobs() const; - void set_maxparalleltrainingjobs(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.SagemakerHPOJob) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr strategy_; - ::flyteidl::plugins::sagemaker::HPOJobObjective* objective_; - ::flyteidl::plugins::sagemaker::ParameterRanges* parameterranges_; - ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* trainingjob_; - ::google::protobuf::int64 maxnumberoftrainingjobs_; - ::google::protobuf::int64 maxparalleltrainingjobs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ContinuousParameterRange - -// string Name = 1; -inline void ContinuousParameterRange::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ContinuousParameterRange::name() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) - return name_.GetNoArena(); -} -inline void ContinuousParameterRange::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) -} -#if LANG_CXX11 -inline void ContinuousParameterRange::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) -} -#endif -inline void ContinuousParameterRange::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) -} -inline void ContinuousParameterRange::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) -} -inline ::std::string* ContinuousParameterRange::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ContinuousParameterRange::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ContinuousParameterRange::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ContinuousParameterRange.Name) -} - -// double MaxValue = 2; -inline void ContinuousParameterRange::clear_maxvalue() { - maxvalue_ = 0; -} -inline double ContinuousParameterRange::maxvalue() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue) - return maxvalue_; -} -inline void ContinuousParameterRange::set_maxvalue(double value) { - - maxvalue_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue) -} - -// double MinValue = 3; -inline void ContinuousParameterRange::clear_minvalue() { - minvalue_ = 0; -} -inline double ContinuousParameterRange::minvalue() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue) - return minvalue_; -} -inline void ContinuousParameterRange::set_minvalue(double value) { - - minvalue_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue) -} - -// .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; -inline void ContinuousParameterRange::clear_scalingtype() { - scalingtype_ = 0; -} -inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType ContinuousParameterRange::scalingtype() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType) - return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scalingtype_); -} -inline void ContinuousParameterRange::set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { - - scalingtype_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType) -} - -// ------------------------------------------------------------------- - -// IntegerParameterRange - -// string Name = 1; -inline void IntegerParameterRange::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& IntegerParameterRange::name() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) - return name_.GetNoArena(); -} -inline void IntegerParameterRange::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) -} -#if LANG_CXX11 -inline void IntegerParameterRange::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) -} -#endif -inline void IntegerParameterRange::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) -} -inline void IntegerParameterRange::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) -} -inline ::std::string* IntegerParameterRange::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* IntegerParameterRange::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void IntegerParameterRange::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.IntegerParameterRange.Name) -} - -// float MaxValue = 2; -inline void IntegerParameterRange::clear_maxvalue() { - maxvalue_ = 0; -} -inline float IntegerParameterRange::maxvalue() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue) - return maxvalue_; -} -inline void IntegerParameterRange::set_maxvalue(float value) { - - maxvalue_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue) -} - -// float MinValue = 3; -inline void IntegerParameterRange::clear_minvalue() { - minvalue_ = 0; -} -inline float IntegerParameterRange::minvalue() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue) - return minvalue_; -} -inline void IntegerParameterRange::set_minvalue(float value) { - - minvalue_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue) -} - -// .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; -inline void IntegerParameterRange::clear_scalingtype() { - scalingtype_ = 0; -} -inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType IntegerParameterRange::scalingtype() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType) - return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scalingtype_); -} -inline void IntegerParameterRange::set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { - - scalingtype_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType) -} - -// ------------------------------------------------------------------- - -// CategoricalParameterRange - -// string Name = 1; -inline void CategoricalParameterRange::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CategoricalParameterRange::name() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) - return name_.GetNoArena(); -} -inline void CategoricalParameterRange::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) -} -#if LANG_CXX11 -inline void CategoricalParameterRange::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) -} -#endif -inline void CategoricalParameterRange::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) -} -inline void CategoricalParameterRange::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) -} -inline ::std::string* CategoricalParameterRange::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CategoricalParameterRange::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CategoricalParameterRange::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.CategoricalParameterRange.Name) -} - -// repeated string Values = 2; -inline int CategoricalParameterRange::values_size() const { - return values_.size(); -} -inline void CategoricalParameterRange::clear_values() { - values_.Clear(); -} -inline const ::std::string& CategoricalParameterRange::values(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) - return values_.Get(index); -} -inline ::std::string* CategoricalParameterRange::mutable_values(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) - return values_.Mutable(index); -} -inline void CategoricalParameterRange::set_values(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) - values_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void CategoricalParameterRange::set_values(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) - values_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void CategoricalParameterRange::set_values(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - values_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) -} -inline void CategoricalParameterRange::set_values(int index, const char* value, size_t size) { - values_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) -} -inline ::std::string* CategoricalParameterRange::add_values() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) - return values_.Add(); -} -inline void CategoricalParameterRange::add_values(const ::std::string& value) { - values_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) -} -#if LANG_CXX11 -inline void CategoricalParameterRange::add_values(::std::string&& value) { - values_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) -} -#endif -inline void CategoricalParameterRange::add_values(const char* value) { - GOOGLE_DCHECK(value != nullptr); - values_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) -} -inline void CategoricalParameterRange::add_values(const char* value, size_t size) { - values_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -CategoricalParameterRange::values() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) - return values_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -CategoricalParameterRange::mutable_values() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) - return &values_; -} - -// ------------------------------------------------------------------- - -// ParameterRanges - -// repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; -inline int ParameterRanges::continuousparameterranges_size() const { - return continuousparameterranges_.size(); -} -inline void ParameterRanges::clear_continuousparameterranges() { - continuousparameterranges_.Clear(); -} -inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRanges::mutable_continuousparameterranges(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) - return continuousparameterranges_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >* -ParameterRanges::mutable_continuousparameterranges() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) - return &continuousparameterranges_; -} -inline const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& ParameterRanges::continuousparameterranges(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) - return continuousparameterranges_.Get(index); -} -inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRanges::add_continuousparameterranges() { - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) - return continuousparameterranges_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >& -ParameterRanges::continuousparameterranges() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges) - return continuousparameterranges_; -} - -// repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; -inline int ParameterRanges::integerparameterranges_size() const { - return integerparameterranges_.size(); -} -inline void ParameterRanges::clear_integerparameterranges() { - integerparameterranges_.Clear(); -} -inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRanges::mutable_integerparameterranges(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) - return integerparameterranges_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::IntegerParameterRange >* -ParameterRanges::mutable_integerparameterranges() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) - return &integerparameterranges_; -} -inline const ::flyteidl::plugins::sagemaker::IntegerParameterRange& ParameterRanges::integerparameterranges(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) - return integerparameterranges_.Get(index); -} -inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRanges::add_integerparameterranges() { - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) - return integerparameterranges_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::IntegerParameterRange >& -ParameterRanges::integerparameterranges() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges) - return integerparameterranges_; -} - -// repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; -inline int ParameterRanges::categoricalparameterranges_size() const { - return categoricalparameterranges_.size(); -} -inline void ParameterRanges::clear_categoricalparameterranges() { - categoricalparameterranges_.Clear(); -} -inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRanges::mutable_categoricalparameterranges(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) - return categoricalparameterranges_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >* -ParameterRanges::mutable_categoricalparameterranges() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) - return &categoricalparameterranges_; -} -inline const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& ParameterRanges::categoricalparameterranges(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) - return categoricalparameterranges_.Get(index); -} -inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRanges::add_categoricalparameterranges() { - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) - return categoricalparameterranges_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >& -ParameterRanges::categoricalparameterranges() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges) - return categoricalparameterranges_; -} - -// ------------------------------------------------------------------- - -// AlgorithmSpecification_MetricDefinition - -// string Name = 1; -inline void AlgorithmSpecification_MetricDefinition::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AlgorithmSpecification_MetricDefinition::name() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) - return name_.GetNoArena(); -} -inline void AlgorithmSpecification_MetricDefinition::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) -} -#if LANG_CXX11 -inline void AlgorithmSpecification_MetricDefinition::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) -} -#endif -inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) -} -inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) -} -inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* AlgorithmSpecification_MetricDefinition::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AlgorithmSpecification_MetricDefinition::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) -} - -// string Regex = 2; -inline void AlgorithmSpecification_MetricDefinition::clear_regex() { - regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AlgorithmSpecification_MetricDefinition::regex() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) - return regex_.GetNoArena(); -} -inline void AlgorithmSpecification_MetricDefinition::set_regex(const ::std::string& value) { - - regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) -} -#if LANG_CXX11 -inline void AlgorithmSpecification_MetricDefinition::set_regex(::std::string&& value) { - - regex_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) -} -#endif -inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) -} -inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value, size_t size) { - - regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) -} -inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_regex() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) - return regex_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* AlgorithmSpecification_MetricDefinition::release_regex() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) - - return regex_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AlgorithmSpecification_MetricDefinition::set_allocated_regex(::std::string* regex) { - if (regex != nullptr) { - - } else { - - } - regex_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), regex); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) -} - -// ------------------------------------------------------------------- - -// AlgorithmSpecification - -// string TrainingImage = 1; -inline void AlgorithmSpecification::clear_trainingimage() { - trainingimage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AlgorithmSpecification::trainingimage() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) - return trainingimage_.GetNoArena(); -} -inline void AlgorithmSpecification::set_trainingimage(const ::std::string& value) { - - trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) -} -#if LANG_CXX11 -inline void AlgorithmSpecification::set_trainingimage(::std::string&& value) { - - trainingimage_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) -} -#endif -inline void AlgorithmSpecification::set_trainingimage(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) -} -inline void AlgorithmSpecification::set_trainingimage(const char* value, size_t size) { - - trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) -} -inline ::std::string* AlgorithmSpecification::mutable_trainingimage() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) - return trainingimage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* AlgorithmSpecification::release_trainingimage() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) - - return trainingimage_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AlgorithmSpecification::set_allocated_trainingimage(::std::string* trainingimage) { - if (trainingimage != nullptr) { - - } else { - - } - trainingimage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trainingimage); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) -} - -// string TrainingInputMode = 2; -inline void AlgorithmSpecification::clear_traininginputmode() { - traininginputmode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AlgorithmSpecification::traininginputmode() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) - return traininginputmode_.GetNoArena(); -} -inline void AlgorithmSpecification::set_traininginputmode(const ::std::string& value) { - - traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) -} -#if LANG_CXX11 -inline void AlgorithmSpecification::set_traininginputmode(::std::string&& value) { - - traininginputmode_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) -} -#endif -inline void AlgorithmSpecification::set_traininginputmode(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) -} -inline void AlgorithmSpecification::set_traininginputmode(const char* value, size_t size) { - - traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) -} -inline ::std::string* AlgorithmSpecification::mutable_traininginputmode() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) - return traininginputmode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* AlgorithmSpecification::release_traininginputmode() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) - - return traininginputmode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AlgorithmSpecification::set_allocated_traininginputmode(::std::string* traininginputmode) { - if (traininginputmode != nullptr) { - - } else { - - } - traininginputmode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), traininginputmode); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) -} - -// string AlgorithmName = 3; -inline void AlgorithmSpecification::clear_algorithmname() { - algorithmname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AlgorithmSpecification::algorithmname() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) - return algorithmname_.GetNoArena(); -} -inline void AlgorithmSpecification::set_algorithmname(const ::std::string& value) { - - algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) -} -#if LANG_CXX11 -inline void AlgorithmSpecification::set_algorithmname(::std::string&& value) { - - algorithmname_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) -} -#endif -inline void AlgorithmSpecification::set_algorithmname(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) -} -inline void AlgorithmSpecification::set_algorithmname(const char* value, size_t size) { - - algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) -} -inline ::std::string* AlgorithmSpecification::mutable_algorithmname() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) - return algorithmname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* AlgorithmSpecification::release_algorithmname() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) - - return algorithmname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AlgorithmSpecification::set_allocated_algorithmname(::std::string* algorithmname) { - if (algorithmname != nullptr) { - - } else { - - } - algorithmname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), algorithmname); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) -} - -// repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; -inline int AlgorithmSpecification::metricdefinitions_size() const { - return metricdefinitions_.size(); -} -inline void AlgorithmSpecification::clear_metricdefinitions() { - metricdefinitions_.Clear(); -} -inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::mutable_metricdefinitions(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) - return metricdefinitions_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* -AlgorithmSpecification::mutable_metricdefinitions() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) - return &metricdefinitions_; -} -inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& AlgorithmSpecification::metricdefinitions(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) - return metricdefinitions_.Get(index); -} -inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::add_metricdefinitions() { - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) - return metricdefinitions_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& -AlgorithmSpecification::metricdefinitions() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) - return metricdefinitions_; -} - -// ------------------------------------------------------------------- - -// ResourceConfig - -// string InstanceType = 1; -inline void ResourceConfig::clear_instancetype() { - instancetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ResourceConfig::instancetype() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) - return instancetype_.GetNoArena(); -} -inline void ResourceConfig::set_instancetype(const ::std::string& value) { - - instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) -} -#if LANG_CXX11 -inline void ResourceConfig::set_instancetype(::std::string&& value) { - - instancetype_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) -} -#endif -inline void ResourceConfig::set_instancetype(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) -} -inline void ResourceConfig::set_instancetype(const char* value, size_t size) { - - instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) -} -inline ::std::string* ResourceConfig::mutable_instancetype() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) - return instancetype_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ResourceConfig::release_instancetype() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) - - return instancetype_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ResourceConfig::set_allocated_instancetype(::std::string* instancetype) { - if (instancetype != nullptr) { - - } else { - - } - instancetype_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instancetype); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) -} - -// int64 InstanceCount = 2; -inline void ResourceConfig::clear_instancecount() { - instancecount_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 ResourceConfig::instancecount() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount) - return instancecount_; -} -inline void ResourceConfig::set_instancecount(::google::protobuf::int64 value) { - - instancecount_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount) -} - -// int64 VolumeSizeInGB = 3; -inline void ResourceConfig::clear_volumesizeingb() { - volumesizeingb_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 ResourceConfig::volumesizeingb() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB) - return volumesizeingb_; -} -inline void ResourceConfig::set_volumesizeingb(::google::protobuf::int64 value) { - - volumesizeingb_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB) -} - -// string VolumeKmsKeyId = 4; -inline void ResourceConfig::clear_volumekmskeyid() { - volumekmskeyid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ResourceConfig::volumekmskeyid() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) - return volumekmskeyid_.GetNoArena(); -} -inline void ResourceConfig::set_volumekmskeyid(const ::std::string& value) { - - volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) -} -#if LANG_CXX11 -inline void ResourceConfig::set_volumekmskeyid(::std::string&& value) { - - volumekmskeyid_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) -} -#endif -inline void ResourceConfig::set_volumekmskeyid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) -} -inline void ResourceConfig::set_volumekmskeyid(const char* value, size_t size) { - - volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) -} -inline ::std::string* ResourceConfig::mutable_volumekmskeyid() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) - return volumekmskeyid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ResourceConfig::release_volumekmskeyid() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) - - return volumekmskeyid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ResourceConfig::set_allocated_volumekmskeyid(::std::string* volumekmskeyid) { - if (volumekmskeyid != nullptr) { - - } else { - - } - volumekmskeyid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), volumekmskeyid); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) -} - -// ------------------------------------------------------------------- - -// StoppingCondition - -// int64 MaxRuntimeInSeconds = 1; -inline void StoppingCondition::clear_maxruntimeinseconds() { - maxruntimeinseconds_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 StoppingCondition::maxruntimeinseconds() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds) - return maxruntimeinseconds_; -} -inline void StoppingCondition::set_maxruntimeinseconds(::google::protobuf::int64 value) { - - maxruntimeinseconds_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds) -} - -// int64 MaxWaitTimeInSeconds = 2; -inline void StoppingCondition::clear_maxwaittimeinseconds() { - maxwaittimeinseconds_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 StoppingCondition::maxwaittimeinseconds() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds) - return maxwaittimeinseconds_; -} -inline void StoppingCondition::set_maxwaittimeinseconds(::google::protobuf::int64 value) { - - maxwaittimeinseconds_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds) -} - -// ------------------------------------------------------------------- - -// VpcConfig - -// repeated string SecurityGroupIds = 1; -inline int VpcConfig::securitygroupids_size() const { - return securitygroupids_.size(); -} -inline void VpcConfig::clear_securitygroupids() { - securitygroupids_.Clear(); -} -inline const ::std::string& VpcConfig::securitygroupids(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - return securitygroupids_.Get(index); -} -inline ::std::string* VpcConfig::mutable_securitygroupids(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - return securitygroupids_.Mutable(index); -} -inline void VpcConfig::set_securitygroupids(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - securitygroupids_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void VpcConfig::set_securitygroupids(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - securitygroupids_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void VpcConfig::set_securitygroupids(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - securitygroupids_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) -} -inline void VpcConfig::set_securitygroupids(int index, const char* value, size_t size) { - securitygroupids_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) -} -inline ::std::string* VpcConfig::add_securitygroupids() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - return securitygroupids_.Add(); -} -inline void VpcConfig::add_securitygroupids(const ::std::string& value) { - securitygroupids_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) -} -#if LANG_CXX11 -inline void VpcConfig::add_securitygroupids(::std::string&& value) { - securitygroupids_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) -} -#endif -inline void VpcConfig::add_securitygroupids(const char* value) { - GOOGLE_DCHECK(value != nullptr); - securitygroupids_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) -} -inline void VpcConfig::add_securitygroupids(const char* value, size_t size) { - securitygroupids_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -VpcConfig::securitygroupids() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - return securitygroupids_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -VpcConfig::mutable_securitygroupids() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - return &securitygroupids_; -} - -// repeated string Subnets = 2; -inline int VpcConfig::subnets_size() const { - return subnets_.size(); -} -inline void VpcConfig::clear_subnets() { - subnets_.Clear(); -} -inline const ::std::string& VpcConfig::subnets(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.VpcConfig.Subnets) - return subnets_.Get(index); -} -inline ::std::string* VpcConfig::mutable_subnets(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.VpcConfig.Subnets) - return subnets_.Mutable(index); -} -inline void VpcConfig::set_subnets(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.Subnets) - subnets_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void VpcConfig::set_subnets(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.Subnets) - subnets_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void VpcConfig::set_subnets(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - subnets_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.VpcConfig.Subnets) -} -inline void VpcConfig::set_subnets(int index, const char* value, size_t size) { - subnets_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.VpcConfig.Subnets) -} -inline ::std::string* VpcConfig::add_subnets() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.VpcConfig.Subnets) - return subnets_.Add(); -} -inline void VpcConfig::add_subnets(const ::std::string& value) { - subnets_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.Subnets) -} -#if LANG_CXX11 -inline void VpcConfig::add_subnets(::std::string&& value) { - subnets_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.Subnets) -} -#endif -inline void VpcConfig::add_subnets(const char* value) { - GOOGLE_DCHECK(value != nullptr); - subnets_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.VpcConfig.Subnets) -} -inline void VpcConfig::add_subnets(const char* value, size_t size) { - subnets_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.VpcConfig.Subnets) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -VpcConfig::subnets() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.VpcConfig.Subnets) - return subnets_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -VpcConfig::mutable_subnets() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.VpcConfig.Subnets) - return &subnets_; -} - -// ------------------------------------------------------------------- - -// SagemakerTrainingJob - -// string Region = 1; -inline void SagemakerTrainingJob::clear_region() { - region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SagemakerTrainingJob::region() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) - return region_.GetNoArena(); -} -inline void SagemakerTrainingJob::set_region(const ::std::string& value) { - - region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) -} -#if LANG_CXX11 -inline void SagemakerTrainingJob::set_region(::std::string&& value) { - - region_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) -} -#endif -inline void SagemakerTrainingJob::set_region(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) -} -inline void SagemakerTrainingJob::set_region(const char* value, size_t size) { - - region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) -} -inline ::std::string* SagemakerTrainingJob::mutable_region() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) - return region_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SagemakerTrainingJob::release_region() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) - - return region_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SagemakerTrainingJob::set_allocated_region(::std::string* region) { - if (region != nullptr) { - - } else { - - } - region_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), region); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region) -} - -// string RoleArn = 2; -inline void SagemakerTrainingJob::clear_rolearn() { - rolearn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SagemakerTrainingJob::rolearn() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) - return rolearn_.GetNoArena(); -} -inline void SagemakerTrainingJob::set_rolearn(const ::std::string& value) { - - rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) -} -#if LANG_CXX11 -inline void SagemakerTrainingJob::set_rolearn(::std::string&& value) { - - rolearn_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) -} -#endif -inline void SagemakerTrainingJob::set_rolearn(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) -} -inline void SagemakerTrainingJob::set_rolearn(const char* value, size_t size) { - - rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) -} -inline ::std::string* SagemakerTrainingJob::mutable_rolearn() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) - return rolearn_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SagemakerTrainingJob::release_rolearn() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) - - return rolearn_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SagemakerTrainingJob::set_allocated_rolearn(::std::string* rolearn) { - if (rolearn != nullptr) { - - } else { - - } - rolearn_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rolearn); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn) -} - -// .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; -inline bool SagemakerTrainingJob::has_algorithmspecification() const { - return this != internal_default_instance() && algorithmspecification_ != nullptr; -} -inline void SagemakerTrainingJob::clear_algorithmspecification() { - if (GetArenaNoVirtual() == nullptr && algorithmspecification_ != nullptr) { - delete algorithmspecification_; - } - algorithmspecification_ = nullptr; -} -inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& SagemakerTrainingJob::algorithmspecification() const { - const ::flyteidl::plugins::sagemaker::AlgorithmSpecification* p = algorithmspecification_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* SagemakerTrainingJob::release_algorithmspecification() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) - - ::flyteidl::plugins::sagemaker::AlgorithmSpecification* temp = algorithmspecification_; - algorithmspecification_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* SagemakerTrainingJob::mutable_algorithmspecification() { - - if (algorithmspecification_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(GetArenaNoVirtual()); - algorithmspecification_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) - return algorithmspecification_; -} -inline void SagemakerTrainingJob::set_allocated_algorithmspecification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithmspecification) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete algorithmspecification_; - } - if (algorithmspecification) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - algorithmspecification = ::google::protobuf::internal::GetOwnedMessage( - message_arena, algorithmspecification, submessage_arena); - } - - } else { - - } - algorithmspecification_ = algorithmspecification; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification) -} - -// .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; -inline bool SagemakerTrainingJob::has_resourceconfig() const { - return this != internal_default_instance() && resourceconfig_ != nullptr; -} -inline void SagemakerTrainingJob::clear_resourceconfig() { - if (GetArenaNoVirtual() == nullptr && resourceconfig_ != nullptr) { - delete resourceconfig_; - } - resourceconfig_ = nullptr; -} -inline const ::flyteidl::plugins::sagemaker::ResourceConfig& SagemakerTrainingJob::resourceconfig() const { - const ::flyteidl::plugins::sagemaker::ResourceConfig* p = resourceconfig_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_ResourceConfig_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::ResourceConfig* SagemakerTrainingJob::release_resourceconfig() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) - - ::flyteidl::plugins::sagemaker::ResourceConfig* temp = resourceconfig_; - resourceconfig_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::ResourceConfig* SagemakerTrainingJob::mutable_resourceconfig() { - - if (resourceconfig_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ResourceConfig>(GetArenaNoVirtual()); - resourceconfig_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) - return resourceconfig_; -} -inline void SagemakerTrainingJob::set_allocated_resourceconfig(::flyteidl::plugins::sagemaker::ResourceConfig* resourceconfig) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete resourceconfig_; - } - if (resourceconfig) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - resourceconfig = ::google::protobuf::internal::GetOwnedMessage( - message_arena, resourceconfig, submessage_arena); - } - - } else { - - } - resourceconfig_ = resourceconfig; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig) -} - -// .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; -inline bool SagemakerTrainingJob::has_stoppingcondition() const { - return this != internal_default_instance() && stoppingcondition_ != nullptr; -} -inline void SagemakerTrainingJob::clear_stoppingcondition() { - if (GetArenaNoVirtual() == nullptr && stoppingcondition_ != nullptr) { - delete stoppingcondition_; - } - stoppingcondition_ = nullptr; -} -inline const ::flyteidl::plugins::sagemaker::StoppingCondition& SagemakerTrainingJob::stoppingcondition() const { - const ::flyteidl::plugins::sagemaker::StoppingCondition* p = stoppingcondition_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::StoppingCondition* SagemakerTrainingJob::release_stoppingcondition() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) - - ::flyteidl::plugins::sagemaker::StoppingCondition* temp = stoppingcondition_; - stoppingcondition_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::StoppingCondition* SagemakerTrainingJob::mutable_stoppingcondition() { - - if (stoppingcondition_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::StoppingCondition>(GetArenaNoVirtual()); - stoppingcondition_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) - return stoppingcondition_; -} -inline void SagemakerTrainingJob::set_allocated_stoppingcondition(::flyteidl::plugins::sagemaker::StoppingCondition* stoppingcondition) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete stoppingcondition_; - } - if (stoppingcondition) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - stoppingcondition = ::google::protobuf::internal::GetOwnedMessage( - message_arena, stoppingcondition, submessage_arena); - } - - } else { - - } - stoppingcondition_ = stoppingcondition; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition) -} - -// .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; -inline bool SagemakerTrainingJob::has_vpcconfig() const { - return this != internal_default_instance() && vpcconfig_ != nullptr; -} -inline void SagemakerTrainingJob::clear_vpcconfig() { - if (GetArenaNoVirtual() == nullptr && vpcconfig_ != nullptr) { - delete vpcconfig_; - } - vpcconfig_ = nullptr; -} -inline const ::flyteidl::plugins::sagemaker::VpcConfig& SagemakerTrainingJob::vpcconfig() const { - const ::flyteidl::plugins::sagemaker::VpcConfig* p = vpcconfig_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_VpcConfig_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::VpcConfig* SagemakerTrainingJob::release_vpcconfig() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) - - ::flyteidl::plugins::sagemaker::VpcConfig* temp = vpcconfig_; - vpcconfig_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::VpcConfig* SagemakerTrainingJob::mutable_vpcconfig() { - - if (vpcconfig_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::VpcConfig>(GetArenaNoVirtual()); - vpcconfig_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) - return vpcconfig_; -} -inline void SagemakerTrainingJob::set_allocated_vpcconfig(::flyteidl::plugins::sagemaker::VpcConfig* vpcconfig) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete vpcconfig_; - } - if (vpcconfig) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - vpcconfig = ::google::protobuf::internal::GetOwnedMessage( - message_arena, vpcconfig, submessage_arena); - } - - } else { - - } - vpcconfig_ = vpcconfig; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerTrainingJob.VpcConfig) -} - -// bool EnableSpotTraining = 7; -inline void SagemakerTrainingJob::clear_enablespottraining() { - enablespottraining_ = false; -} -inline bool SagemakerTrainingJob::enablespottraining() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining) - return enablespottraining_; -} -inline void SagemakerTrainingJob::set_enablespottraining(bool value) { - - enablespottraining_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining) -} - -// ------------------------------------------------------------------- - -// HPOJobObjective - -// .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; -inline void HPOJobObjective::clear_type() { - type_ = 0; -} -inline ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType HPOJobObjective::type() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.Type) - return static_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType >(type_); -} -inline void HPOJobObjective::set_type(::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.Type) -} - -// string MetricName = 2; -inline void HPOJobObjective::clear_metricname() { - metricname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& HPOJobObjective::metricname() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) - return metricname_.GetNoArena(); -} -inline void HPOJobObjective::set_metricname(const ::std::string& value) { - - metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) -} -#if LANG_CXX11 -inline void HPOJobObjective::set_metricname(::std::string&& value) { - - metricname_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) -} -#endif -inline void HPOJobObjective::set_metricname(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) -} -inline void HPOJobObjective::set_metricname(const char* value, size_t size) { - - metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) -} -inline ::std::string* HPOJobObjective::mutable_metricname() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) - return metricname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* HPOJobObjective::release_metricname() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) - - return metricname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void HPOJobObjective::set_allocated_metricname(::std::string* metricname) { - if (metricname != nullptr) { - - } else { - - } - metricname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metricname); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) -} - -// ------------------------------------------------------------------- - -// SagemakerHPOJob - -// string Strategy = 1; -inline void SagemakerHPOJob::clear_strategy() { - strategy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SagemakerHPOJob::strategy() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) - return strategy_.GetNoArena(); -} -inline void SagemakerHPOJob::set_strategy(const ::std::string& value) { - - strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) -} -#if LANG_CXX11 -inline void SagemakerHPOJob::set_strategy(::std::string&& value) { - - strategy_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) -} -#endif -inline void SagemakerHPOJob::set_strategy(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) -} -inline void SagemakerHPOJob::set_strategy(const char* value, size_t size) { - - strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) -} -inline ::std::string* SagemakerHPOJob::mutable_strategy() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) - return strategy_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SagemakerHPOJob::release_strategy() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) - - return strategy_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SagemakerHPOJob::set_allocated_strategy(::std::string* strategy) { - if (strategy != nullptr) { - - } else { - - } - strategy_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), strategy); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy) -} - -// .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; -inline bool SagemakerHPOJob::has_objective() const { - return this != internal_default_instance() && objective_ != nullptr; -} -inline void SagemakerHPOJob::clear_objective() { - if (GetArenaNoVirtual() == nullptr && objective_ != nullptr) { - delete objective_; - } - objective_ = nullptr; -} -inline const ::flyteidl::plugins::sagemaker::HPOJobObjective& SagemakerHPOJob::objective() const { - const ::flyteidl::plugins::sagemaker::HPOJobObjective* p = objective_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerHPOJob.Objective) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_HPOJobObjective_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::HPOJobObjective* SagemakerHPOJob::release_objective() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerHPOJob.Objective) - - ::flyteidl::plugins::sagemaker::HPOJobObjective* temp = objective_; - objective_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::HPOJobObjective* SagemakerHPOJob::mutable_objective() { - - if (objective_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobObjective>(GetArenaNoVirtual()); - objective_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerHPOJob.Objective) - return objective_; -} -inline void SagemakerHPOJob::set_allocated_objective(::flyteidl::plugins::sagemaker::HPOJobObjective* objective) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete objective_; - } - if (objective) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - objective = ::google::protobuf::internal::GetOwnedMessage( - message_arena, objective, submessage_arena); - } - - } else { - - } - objective_ = objective; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerHPOJob.Objective) -} - -// int64 MaxNumberOfTrainingJobs = 3; -inline void SagemakerHPOJob::clear_maxnumberoftrainingjobs() { - maxnumberoftrainingjobs_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 SagemakerHPOJob::maxnumberoftrainingjobs() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs) - return maxnumberoftrainingjobs_; -} -inline void SagemakerHPOJob::set_maxnumberoftrainingjobs(::google::protobuf::int64 value) { - - maxnumberoftrainingjobs_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs) -} - -// int64 MaxParallelTrainingJobs = 4; -inline void SagemakerHPOJob::clear_maxparalleltrainingjobs() { - maxparalleltrainingjobs_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 SagemakerHPOJob::maxparalleltrainingjobs() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs) - return maxparalleltrainingjobs_; -} -inline void SagemakerHPOJob::set_maxparalleltrainingjobs(::google::protobuf::int64 value) { - - maxparalleltrainingjobs_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs) -} - -// .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; -inline bool SagemakerHPOJob::has_parameterranges() const { - return this != internal_default_instance() && parameterranges_ != nullptr; -} -inline void SagemakerHPOJob::clear_parameterranges() { - if (GetArenaNoVirtual() == nullptr && parameterranges_ != nullptr) { - delete parameterranges_; - } - parameterranges_ = nullptr; -} -inline const ::flyteidl::plugins::sagemaker::ParameterRanges& SagemakerHPOJob::parameterranges() const { - const ::flyteidl::plugins::sagemaker::ParameterRanges* p = parameterranges_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::ParameterRanges* SagemakerHPOJob::release_parameterranges() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) - - ::flyteidl::plugins::sagemaker::ParameterRanges* temp = parameterranges_; - parameterranges_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::ParameterRanges* SagemakerHPOJob::mutable_parameterranges() { - - if (parameterranges_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(GetArenaNoVirtual()); - parameterranges_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) - return parameterranges_; -} -inline void SagemakerHPOJob::set_allocated_parameterranges(::flyteidl::plugins::sagemaker::ParameterRanges* parameterranges) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete parameterranges_; - } - if (parameterranges) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - parameterranges = ::google::protobuf::internal::GetOwnedMessage( - message_arena, parameterranges, submessage_arena); - } - - } else { - - } - parameterranges_ = parameterranges; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerHPOJob.ParameterRanges) -} - -// .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; -inline bool SagemakerHPOJob::has_trainingjob() const { - return this != internal_default_instance() && trainingjob_ != nullptr; -} -inline void SagemakerHPOJob::clear_trainingjob() { - if (GetArenaNoVirtual() == nullptr && trainingjob_ != nullptr) { - delete trainingjob_; - } - trainingjob_ = nullptr; -} -inline const ::flyteidl::plugins::sagemaker::SagemakerTrainingJob& SagemakerHPOJob::trainingjob() const { - const ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* p = trainingjob_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.SagemakerHPOJob.TrainingJob) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_SagemakerTrainingJob_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* SagemakerHPOJob::release_trainingjob() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.SagemakerHPOJob.TrainingJob) - - ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* temp = trainingjob_; - trainingjob_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::SagemakerTrainingJob* SagemakerHPOJob::mutable_trainingjob() { - - if (trainingjob_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::SagemakerTrainingJob>(GetArenaNoVirtual()); - trainingjob_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.SagemakerHPOJob.TrainingJob) - return trainingjob_; -} -inline void SagemakerHPOJob::set_allocated_trainingjob(::flyteidl::plugins::sagemaker::SagemakerTrainingJob* trainingjob) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete trainingjob_; - } - if (trainingjob) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - trainingjob = ::google::protobuf::internal::GetOwnedMessage( - message_arena, trainingjob, submessage_arena); - } - - } else { - - } - trainingjob_ = trainingjob; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.SagemakerHPOJob.TrainingJob) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType>() { - return ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterScalingType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterScalingType>() { - return ::flyteidl::plugins::sagemaker::HyperparameterScalingType_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fsagemaker_2eproto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc new file mode 100644 index 000000000..48c86fb46 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc @@ -0,0 +1,26 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/trainingjob.proto + +#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" +#include "flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace flyteidl +} // namespace plugins +} // namespace sagemaker + diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h new file mode 100644 index 000000000..b65b8a93d --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h @@ -0,0 +1,49 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/trainingjob.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto__INCLUDED + +#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc new file mode 100644 index 000000000..49ecb6617 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc @@ -0,0 +1,2990 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/trainingjob.proto + +#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AlgorithmSpecification_MetricDefinition_default_instance_; +class AlgorithmSpecificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AlgorithmSpecification_default_instance_; +class ResourceConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ResourceConfig_default_instance_; +class StoppingConditionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _StoppingCondition_default_instance_; +class VpcConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _VpcConfig_default_instance_; +class TrainingJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TrainingJob_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; + +static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmSpecification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::AlgorithmSpecification::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, { + &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base,}}; + +static void InitDefaultsResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_ResourceConfig_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ResourceConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::ResourceConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; + +static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::StoppingCondition(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::StoppingCondition::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; + +static void InitDefaultsVpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_VpcConfig_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::VpcConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::VpcConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; + +static void InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::TrainingJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::TrainingJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, { + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base, + &scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base, + &scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base, + &scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[6]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, regex_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, trainingimage_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, traininginputmode_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithmname_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, metricdefinitions_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, instancetype_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, instancecount_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, volumesizeingb_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, volumekmskeyid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, maxruntimeinseconds_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, maxwaittimeinseconds_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, securitygroupids_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, subnets_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, region_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, rolearn_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, algorithmspecification_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, resourceconfig_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, stoppingcondition_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, vpcconfig_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, enablespottraining_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition)}, + { 7, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)}, + { 16, -1, sizeof(::flyteidl::plugins::sagemaker::ResourceConfig)}, + { 25, -1, sizeof(::flyteidl::plugins::sagemaker::StoppingCondition)}, + { 32, -1, sizeof(::flyteidl::plugins::sagemaker::VpcConfig)}, + { 39, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJob)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ResourceConfig_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_VpcConfig_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, "flyteidl/plugins/sagemaker/trainingjob.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[] = + "\n,flyteidl/plugins/sagemaker/trainingjob" + ".proto\022\032flyteidl.plugins.sagemaker\"\362\001\n\026A" + "lgorithmSpecification\022\025\n\rTrainingImage\030\001" + " \001(\t\022\031\n\021TrainingInputMode\030\002 \001(\t\022\025\n\rAlgor" + "ithmName\030\003 \001(\t\022^\n\021MetricDefinitions\030\004 \003(" + "\0132C.flyteidl.plugins.sagemaker.Algorithm" + "Specification.MetricDefinition\032/\n\020Metric" + "Definition\022\014\n\004Name\030\001 \001(\t\022\r\n\005Regex\030\002 \001(\t\"" + "m\n\016ResourceConfig\022\024\n\014InstanceType\030\001 \001(\t\022" + "\025\n\rInstanceCount\030\002 \001(\003\022\026\n\016VolumeSizeInGB" + "\030\003 \001(\003\022\026\n\016VolumeKmsKeyId\030\004 \001(\t\"N\n\021Stoppi" + "ngCondition\022\033\n\023MaxRuntimeInSeconds\030\001 \001(\003" + "\022\034\n\024MaxWaitTimeInSeconds\030\002 \001(\003\"6\n\tVpcCon" + "fig\022\030\n\020SecurityGroupIds\030\001 \003(\t\022\017\n\007Subnets" + "\030\002 \003(\t\"\346\002\n\013TrainingJob\022\016\n\006Region\030\001 \001(\t\022\017" + "\n\007RoleArn\030\002 \001(\t\022R\n\026AlgorithmSpecificatio" + "n\030\003 \001(\01322.flyteidl.plugins.sagemaker.Alg" + "orithmSpecification\022B\n\016ResourceConfig\030\004 " + "\001(\0132*.flyteidl.plugins.sagemaker.Resourc" + "eConfig\022H\n\021StoppingCondition\030\005 \001(\0132-.fly" + "teidl.plugins.sagemaker.StoppingConditio" + "n\0228\n\tVpcConfig\030\006 \001(\0132%.flyteidl.plugins." + "sagemaker.VpcConfig\022\032\n\022EnableSpotTrainin" + "g\030\007 \001(\010B5Z3github.com/lyft/flyteidl/gen/" + "pb-go/flyteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, + "flyteidl/plugins/sagemaker/trainingjob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, 990, +}; + +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +// =================================================================== + +void AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance() { +} +class AlgorithmSpecification_MetricDefinition::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AlgorithmSpecification_MetricDefinition::kNameFieldNumber; +const int AlgorithmSpecification_MetricDefinition::kRegexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) +} +AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.regex().size() > 0) { + regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) +} + +void AlgorithmSpecification_MetricDefinition::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +AlgorithmSpecification_MetricDefinition::~AlgorithmSpecification_MetricDefinition() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + SharedDtor(); +} + +void AlgorithmSpecification_MetricDefinition::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void AlgorithmSpecification_MetricDefinition::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AlgorithmSpecification_MetricDefinition& AlgorithmSpecification_MetricDefinition::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + return *internal_default_instance(); +} + + +void AlgorithmSpecification_MetricDefinition::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string Name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string Regex = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); + object = msg->mutable_regex(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string Name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name")); + } else { + goto handle_unusual; + } + break; + } + + // string Regex = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_regex())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // string Regex = 2; + if (this->regex().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->regex(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) +} + +::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // string Regex = 2; + if (this->regex().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->regex(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + return target; +} + +size_t AlgorithmSpecification_MetricDefinition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string Name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string Regex = 2; + if (this->regex().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->regex()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AlgorithmSpecification_MetricDefinition::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + GOOGLE_DCHECK_NE(&from, this); + const AlgorithmSpecification_MetricDefinition* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + MergeFrom(*source); + } +} + +void AlgorithmSpecification_MetricDefinition::MergeFrom(const AlgorithmSpecification_MetricDefinition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.regex().size() > 0) { + + regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); + } +} + +void AlgorithmSpecification_MetricDefinition::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AlgorithmSpecification_MetricDefinition::CopyFrom(const AlgorithmSpecification_MetricDefinition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AlgorithmSpecification_MetricDefinition::IsInitialized() const { + return true; +} + +void AlgorithmSpecification_MetricDefinition::Swap(AlgorithmSpecification_MetricDefinition* other) { + if (other == this) return; + InternalSwap(other); +} +void AlgorithmSpecification_MetricDefinition::InternalSwap(AlgorithmSpecification_MetricDefinition* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + regex_.Swap(&other->regex_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata AlgorithmSpecification_MetricDefinition::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void AlgorithmSpecification::InitAsDefaultInstance() { +} +class AlgorithmSpecification::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AlgorithmSpecification::kTrainingImageFieldNumber; +const int AlgorithmSpecification::kTrainingInputModeFieldNumber; +const int AlgorithmSpecification::kAlgorithmNameFieldNumber; +const int AlgorithmSpecification::kMetricDefinitionsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AlgorithmSpecification::AlgorithmSpecification() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) +} +AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + metricdefinitions_(from.metricdefinitions_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + trainingimage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.trainingimage().size() > 0) { + trainingimage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trainingimage_); + } + traininginputmode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.traininginputmode().size() > 0) { + traininginputmode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.traininginputmode_); + } + algorithmname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.algorithmname().size() > 0) { + algorithmname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithmname_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) +} + +void AlgorithmSpecification::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + trainingimage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + traininginputmode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + algorithmname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +AlgorithmSpecification::~AlgorithmSpecification() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) + SharedDtor(); +} + +void AlgorithmSpecification::SharedDtor() { + trainingimage_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + traininginputmode_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + algorithmname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void AlgorithmSpecification::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AlgorithmSpecification& AlgorithmSpecification::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + return *internal_default_instance(); +} + + +void AlgorithmSpecification::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metricdefinitions_.Clear(); + trainingimage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + traininginputmode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + algorithmname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AlgorithmSpecification::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string TrainingImage = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); + object = msg->mutable_trainingimage(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string TrainingInputMode = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); + object = msg->mutable_traininginputmode(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string AlgorithmName = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); + object = msg->mutable_algorithmname(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::_InternalParse; + object = msg->add_metricdefinitions(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AlgorithmSpecification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string TrainingImage = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_trainingimage())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->trainingimage().data(), static_cast(this->trainingimage().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage")); + } else { + goto handle_unusual; + } + break; + } + + // string TrainingInputMode = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_traininginputmode())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->traininginputmode().data(), static_cast(this->traininginputmode().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode")); + } else { + goto handle_unusual; + } + break; + } + + // string AlgorithmName = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_algorithmname())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->algorithmname().data(), static_cast(this->algorithmname().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_metricdefinitions())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmSpecification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmSpecification) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AlgorithmSpecification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string TrainingImage = 1; + if (this->trainingimage().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->trainingimage().data(), static_cast(this->trainingimage().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->trainingimage(), output); + } + + // string TrainingInputMode = 2; + if (this->traininginputmode().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->traininginputmode().data(), static_cast(this->traininginputmode().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->traininginputmode(), output); + } + + // string AlgorithmName = 3; + if (this->algorithmname().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->algorithmname().data(), static_cast(this->algorithmname().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->algorithmname(), output); + } + + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + for (unsigned int i = 0, + n = static_cast(this->metricdefinitions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->metricdefinitions(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmSpecification) +} + +::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string TrainingImage = 1; + if (this->trainingimage().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->trainingimage().data(), static_cast(this->trainingimage().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->trainingimage(), target); + } + + // string TrainingInputMode = 2; + if (this->traininginputmode().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->traininginputmode().data(), static_cast(this->traininginputmode().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->traininginputmode(), target); + } + + // string AlgorithmName = 3; + if (this->algorithmname().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->algorithmname().data(), static_cast(this->algorithmname().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->algorithmname(), target); + } + + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + for (unsigned int i = 0, + n = static_cast(this->metricdefinitions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->metricdefinitions(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmSpecification) + return target; +} + +size_t AlgorithmSpecification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + { + unsigned int count = static_cast(this->metricdefinitions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->metricdefinitions(static_cast(i))); + } + } + + // string TrainingImage = 1; + if (this->trainingimage().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->trainingimage()); + } + + // string TrainingInputMode = 2; + if (this->traininginputmode().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->traininginputmode()); + } + + // string AlgorithmName = 3; + if (this->algorithmname().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->algorithmname()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AlgorithmSpecification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + GOOGLE_DCHECK_NE(&from, this); + const AlgorithmSpecification* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmSpecification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmSpecification) + MergeFrom(*source); + } +} + +void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + metricdefinitions_.MergeFrom(from.metricdefinitions_); + if (from.trainingimage().size() > 0) { + + trainingimage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trainingimage_); + } + if (from.traininginputmode().size() > 0) { + + traininginputmode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.traininginputmode_); + } + if (from.algorithmname().size() > 0) { + + algorithmname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithmname_); + } +} + +void AlgorithmSpecification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AlgorithmSpecification::CopyFrom(const AlgorithmSpecification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AlgorithmSpecification::IsInitialized() const { + return true; +} + +void AlgorithmSpecification::Swap(AlgorithmSpecification* other) { + if (other == this) return; + InternalSwap(other); +} +void AlgorithmSpecification::InternalSwap(AlgorithmSpecification* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&metricdefinitions_)->InternalSwap(CastToBase(&other->metricdefinitions_)); + trainingimage_.Swap(&other->trainingimage_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + traininginputmode_.Swap(&other->traininginputmode_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + algorithmname_.Swap(&other->algorithmname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata AlgorithmSpecification::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ResourceConfig::InitAsDefaultInstance() { +} +class ResourceConfig::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ResourceConfig::kInstanceTypeFieldNumber; +const int ResourceConfig::kInstanceCountFieldNumber; +const int ResourceConfig::kVolumeSizeInGBFieldNumber; +const int ResourceConfig::kVolumeKmsKeyIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ResourceConfig::ResourceConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ResourceConfig) +} +ResourceConfig::ResourceConfig(const ResourceConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + instancetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.instancetype().size() > 0) { + instancetype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instancetype_); + } + volumekmskeyid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.volumekmskeyid().size() > 0) { + volumekmskeyid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volumekmskeyid_); + } + ::memcpy(&instancecount_, &from.instancecount_, + static_cast(reinterpret_cast(&volumesizeingb_) - + reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ResourceConfig) +} + +void ResourceConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + instancetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + volumekmskeyid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&instancecount_, 0, static_cast( + reinterpret_cast(&volumesizeingb_) - + reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); +} + +ResourceConfig::~ResourceConfig() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ResourceConfig) + SharedDtor(); +} + +void ResourceConfig::SharedDtor() { + instancetype_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + volumekmskeyid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ResourceConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ResourceConfig& ResourceConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + return *internal_default_instance(); +} + + +void ResourceConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ResourceConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + instancetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + volumekmskeyid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&instancecount_, 0, static_cast( + reinterpret_cast(&volumesizeingb_) - + reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ResourceConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string InstanceType = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ResourceConfig.InstanceType"); + object = msg->mutable_instancetype(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // int64 InstanceCount = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_instancecount(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 VolumeSizeInGB = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_volumesizeingb(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string VolumeKmsKeyId = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); + object = msg->mutable_volumekmskeyid(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ResourceConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ResourceConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string InstanceType = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_instancetype())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->instancetype().data(), static_cast(this->instancetype().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.ResourceConfig.InstanceType")); + } else { + goto handle_unusual; + } + break; + } + + // int64 InstanceCount = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &instancecount_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 VolumeSizeInGB = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &volumesizeingb_))); + } else { + goto handle_unusual; + } + break; + } + + // string VolumeKmsKeyId = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_volumekmskeyid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ResourceConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ResourceConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ResourceConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ResourceConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string InstanceType = 1; + if (this->instancetype().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->instancetype().data(), static_cast(this->instancetype().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.ResourceConfig.InstanceType"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->instancetype(), output); + } + + // int64 InstanceCount = 2; + if (this->instancecount() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->instancecount(), output); + } + + // int64 VolumeSizeInGB = 3; + if (this->volumesizeingb() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->volumesizeingb(), output); + } + + // string VolumeKmsKeyId = 4; + if (this->volumekmskeyid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->volumekmskeyid(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ResourceConfig) +} + +::google::protobuf::uint8* ResourceConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ResourceConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string InstanceType = 1; + if (this->instancetype().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->instancetype().data(), static_cast(this->instancetype().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.ResourceConfig.InstanceType"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->instancetype(), target); + } + + // int64 InstanceCount = 2; + if (this->instancecount() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->instancecount(), target); + } + + // int64 VolumeSizeInGB = 3; + if (this->volumesizeingb() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->volumesizeingb(), target); + } + + // string VolumeKmsKeyId = 4; + if (this->volumekmskeyid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->volumekmskeyid(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ResourceConfig) + return target; +} + +size_t ResourceConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ResourceConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string InstanceType = 1; + if (this->instancetype().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->instancetype()); + } + + // string VolumeKmsKeyId = 4; + if (this->volumekmskeyid().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->volumekmskeyid()); + } + + // int64 InstanceCount = 2; + if (this->instancecount() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->instancecount()); + } + + // int64 VolumeSizeInGB = 3; + if (this->volumesizeingb() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->volumesizeingb()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ResourceConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ResourceConfig) + GOOGLE_DCHECK_NE(&from, this); + const ResourceConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ResourceConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ResourceConfig) + MergeFrom(*source); + } +} + +void ResourceConfig::MergeFrom(const ResourceConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ResourceConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.instancetype().size() > 0) { + + instancetype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instancetype_); + } + if (from.volumekmskeyid().size() > 0) { + + volumekmskeyid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volumekmskeyid_); + } + if (from.instancecount() != 0) { + set_instancecount(from.instancecount()); + } + if (from.volumesizeingb() != 0) { + set_volumesizeingb(from.volumesizeingb()); + } +} + +void ResourceConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ResourceConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ResourceConfig::CopyFrom(const ResourceConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ResourceConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourceConfig::IsInitialized() const { + return true; +} + +void ResourceConfig::Swap(ResourceConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void ResourceConfig::InternalSwap(ResourceConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + instancetype_.Swap(&other->instancetype_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + volumekmskeyid_.Swap(&other->volumekmskeyid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(instancecount_, other->instancecount_); + swap(volumesizeingb_, other->volumesizeingb_); +} + +::google::protobuf::Metadata ResourceConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void StoppingCondition::InitAsDefaultInstance() { +} +class StoppingCondition::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StoppingCondition::kMaxRuntimeInSecondsFieldNumber; +const int StoppingCondition::kMaxWaitTimeInSecondsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StoppingCondition::StoppingCondition() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.StoppingCondition) +} +StoppingCondition::StoppingCondition(const StoppingCondition& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&maxruntimeinseconds_, &from.maxruntimeinseconds_, + static_cast(reinterpret_cast(&maxwaittimeinseconds_) - + reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.StoppingCondition) +} + +void StoppingCondition::SharedCtor() { + ::memset(&maxruntimeinseconds_, 0, static_cast( + reinterpret_cast(&maxwaittimeinseconds_) - + reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); +} + +StoppingCondition::~StoppingCondition() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.StoppingCondition) + SharedDtor(); +} + +void StoppingCondition::SharedDtor() { +} + +void StoppingCondition::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StoppingCondition& StoppingCondition::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + return *internal_default_instance(); +} + + +void StoppingCondition::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.StoppingCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&maxruntimeinseconds_, 0, static_cast( + reinterpret_cast(&maxwaittimeinseconds_) - + reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* StoppingCondition::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int64 MaxRuntimeInSeconds = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_maxruntimeinseconds(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 MaxWaitTimeInSeconds = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_maxwaittimeinseconds(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool StoppingCondition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.StoppingCondition) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 MaxRuntimeInSeconds = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &maxruntimeinseconds_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 MaxWaitTimeInSeconds = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &maxwaittimeinseconds_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.StoppingCondition) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.StoppingCondition) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void StoppingCondition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.StoppingCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 MaxRuntimeInSeconds = 1; + if (this->maxruntimeinseconds() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->maxruntimeinseconds(), output); + } + + // int64 MaxWaitTimeInSeconds = 2; + if (this->maxwaittimeinseconds() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->maxwaittimeinseconds(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.StoppingCondition) +} + +::google::protobuf::uint8* StoppingCondition::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.StoppingCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 MaxRuntimeInSeconds = 1; + if (this->maxruntimeinseconds() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->maxruntimeinseconds(), target); + } + + // int64 MaxWaitTimeInSeconds = 2; + if (this->maxwaittimeinseconds() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->maxwaittimeinseconds(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.StoppingCondition) + return target; +} + +size_t StoppingCondition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.StoppingCondition) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 MaxRuntimeInSeconds = 1; + if (this->maxruntimeinseconds() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->maxruntimeinseconds()); + } + + // int64 MaxWaitTimeInSeconds = 2; + if (this->maxwaittimeinseconds() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->maxwaittimeinseconds()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StoppingCondition::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.StoppingCondition) + GOOGLE_DCHECK_NE(&from, this); + const StoppingCondition* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.StoppingCondition) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.StoppingCondition) + MergeFrom(*source); + } +} + +void StoppingCondition::MergeFrom(const StoppingCondition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.StoppingCondition) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.maxruntimeinseconds() != 0) { + set_maxruntimeinseconds(from.maxruntimeinseconds()); + } + if (from.maxwaittimeinseconds() != 0) { + set_maxwaittimeinseconds(from.maxwaittimeinseconds()); + } +} + +void StoppingCondition::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.StoppingCondition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StoppingCondition::CopyFrom(const StoppingCondition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.StoppingCondition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StoppingCondition::IsInitialized() const { + return true; +} + +void StoppingCondition::Swap(StoppingCondition* other) { + if (other == this) return; + InternalSwap(other); +} +void StoppingCondition::InternalSwap(StoppingCondition* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(maxruntimeinseconds_, other->maxruntimeinseconds_); + swap(maxwaittimeinseconds_, other->maxwaittimeinseconds_); +} + +::google::protobuf::Metadata StoppingCondition::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void VpcConfig::InitAsDefaultInstance() { +} +class VpcConfig::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int VpcConfig::kSecurityGroupIdsFieldNumber; +const int VpcConfig::kSubnetsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +VpcConfig::VpcConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.VpcConfig) +} +VpcConfig::VpcConfig(const VpcConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + securitygroupids_(from.securitygroupids_), + subnets_(from.subnets_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.VpcConfig) +} + +void VpcConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); +} + +VpcConfig::~VpcConfig() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.VpcConfig) + SharedDtor(); +} + +void VpcConfig::SharedDtor() { +} + +void VpcConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const VpcConfig& VpcConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + return *internal_default_instance(); +} + + +void VpcConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.VpcConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + securitygroupids_.Clear(); + subnets_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* VpcConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string SecurityGroupIds = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds"); + object = msg->add_securitygroupids(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // repeated string Subnets = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.VpcConfig.Subnets"); + object = msg->add_subnets(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool VpcConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.VpcConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string SecurityGroupIds = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_securitygroupids())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->securitygroupids(this->securitygroupids_size() - 1).data(), + static_cast(this->securitygroupids(this->securitygroupids_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string Subnets = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_subnets())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subnets(this->subnets_size() - 1).data(), + static_cast(this->subnets(this->subnets_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.VpcConfig.Subnets")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.VpcConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.VpcConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void VpcConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.VpcConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string SecurityGroupIds = 1; + for (int i = 0, n = this->securitygroupids_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->securitygroupids(i).data(), static_cast(this->securitygroupids(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->securitygroupids(i), output); + } + + // repeated string Subnets = 2; + for (int i = 0, n = this->subnets_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subnets(i).data(), static_cast(this->subnets(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.VpcConfig.Subnets"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->subnets(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.VpcConfig) +} + +::google::protobuf::uint8* VpcConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.VpcConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string SecurityGroupIds = 1; + for (int i = 0, n = this->securitygroupids_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->securitygroupids(i).data(), static_cast(this->securitygroupids(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->securitygroupids(i), target); + } + + // repeated string Subnets = 2; + for (int i = 0, n = this->subnets_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subnets(i).data(), static_cast(this->subnets(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.VpcConfig.Subnets"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(2, this->subnets(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.VpcConfig) + return target; +} + +size_t VpcConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.VpcConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string SecurityGroupIds = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->securitygroupids_size()); + for (int i = 0, n = this->securitygroupids_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->securitygroupids(i)); + } + + // repeated string Subnets = 2; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->subnets_size()); + for (int i = 0, n = this->subnets_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->subnets(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void VpcConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.VpcConfig) + GOOGLE_DCHECK_NE(&from, this); + const VpcConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.VpcConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.VpcConfig) + MergeFrom(*source); + } +} + +void VpcConfig::MergeFrom(const VpcConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.VpcConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + securitygroupids_.MergeFrom(from.securitygroupids_); + subnets_.MergeFrom(from.subnets_); +} + +void VpcConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.VpcConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void VpcConfig::CopyFrom(const VpcConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.VpcConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VpcConfig::IsInitialized() const { + return true; +} + +void VpcConfig::Swap(VpcConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void VpcConfig::InternalSwap(VpcConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + securitygroupids_.InternalSwap(CastToBase(&other->securitygroupids_)); + subnets_.InternalSwap(CastToBase(&other->subnets_)); +} + +::google::protobuf::Metadata VpcConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TrainingJob::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->algorithmspecification_ = const_cast< ::flyteidl::plugins::sagemaker::AlgorithmSpecification*>( + ::flyteidl::plugins::sagemaker::AlgorithmSpecification::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->resourceconfig_ = const_cast< ::flyteidl::plugins::sagemaker::ResourceConfig*>( + ::flyteidl::plugins::sagemaker::ResourceConfig::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->stoppingcondition_ = const_cast< ::flyteidl::plugins::sagemaker::StoppingCondition*>( + ::flyteidl::plugins::sagemaker::StoppingCondition::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->vpcconfig_ = const_cast< ::flyteidl::plugins::sagemaker::VpcConfig*>( + ::flyteidl::plugins::sagemaker::VpcConfig::internal_default_instance()); +} +class TrainingJob::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithmspecification(const TrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::ResourceConfig& resourceconfig(const TrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::StoppingCondition& stoppingcondition(const TrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::VpcConfig& vpcconfig(const TrainingJob* msg); +}; + +const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& +TrainingJob::HasBitSetters::algorithmspecification(const TrainingJob* msg) { + return *msg->algorithmspecification_; +} +const ::flyteidl::plugins::sagemaker::ResourceConfig& +TrainingJob::HasBitSetters::resourceconfig(const TrainingJob* msg) { + return *msg->resourceconfig_; +} +const ::flyteidl::plugins::sagemaker::StoppingCondition& +TrainingJob::HasBitSetters::stoppingcondition(const TrainingJob* msg) { + return *msg->stoppingcondition_; +} +const ::flyteidl::plugins::sagemaker::VpcConfig& +TrainingJob::HasBitSetters::vpcconfig(const TrainingJob* msg) { + return *msg->vpcconfig_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TrainingJob::kRegionFieldNumber; +const int TrainingJob::kRoleArnFieldNumber; +const int TrainingJob::kAlgorithmSpecificationFieldNumber; +const int TrainingJob::kResourceConfigFieldNumber; +const int TrainingJob::kStoppingConditionFieldNumber; +const int TrainingJob::kVpcConfigFieldNumber; +const int TrainingJob::kEnableSpotTrainingFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TrainingJob::TrainingJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJob) +} +TrainingJob::TrainingJob(const TrainingJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + region_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.region().size() > 0) { + region_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_); + } + rolearn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.rolearn().size() > 0) { + rolearn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rolearn_); + } + if (from.has_algorithmspecification()) { + algorithmspecification_ = new ::flyteidl::plugins::sagemaker::AlgorithmSpecification(*from.algorithmspecification_); + } else { + algorithmspecification_ = nullptr; + } + if (from.has_resourceconfig()) { + resourceconfig_ = new ::flyteidl::plugins::sagemaker::ResourceConfig(*from.resourceconfig_); + } else { + resourceconfig_ = nullptr; + } + if (from.has_stoppingcondition()) { + stoppingcondition_ = new ::flyteidl::plugins::sagemaker::StoppingCondition(*from.stoppingcondition_); + } else { + stoppingcondition_ = nullptr; + } + if (from.has_vpcconfig()) { + vpcconfig_ = new ::flyteidl::plugins::sagemaker::VpcConfig(*from.vpcconfig_); + } else { + vpcconfig_ = nullptr; + } + enablespottraining_ = from.enablespottraining_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJob) +} + +void TrainingJob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + region_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rolearn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&algorithmspecification_, 0, static_cast( + reinterpret_cast(&enablespottraining_) - + reinterpret_cast(&algorithmspecification_)) + sizeof(enablespottraining_)); +} + +TrainingJob::~TrainingJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJob) + SharedDtor(); +} + +void TrainingJob::SharedDtor() { + region_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rolearn_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete algorithmspecification_; + if (this != internal_default_instance()) delete resourceconfig_; + if (this != internal_default_instance()) delete stoppingcondition_; + if (this != internal_default_instance()) delete vpcconfig_; +} + +void TrainingJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TrainingJob& TrainingJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + return *internal_default_instance(); +} + + +void TrainingJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + rolearn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && algorithmspecification_ != nullptr) { + delete algorithmspecification_; + } + algorithmspecification_ = nullptr; + if (GetArenaNoVirtual() == nullptr && resourceconfig_ != nullptr) { + delete resourceconfig_; + } + resourceconfig_ = nullptr; + if (GetArenaNoVirtual() == nullptr && stoppingcondition_ != nullptr) { + delete stoppingcondition_; + } + stoppingcondition_ = nullptr; + if (GetArenaNoVirtual() == nullptr && vpcconfig_ != nullptr) { + delete vpcconfig_; + } + vpcconfig_ = nullptr; + enablespottraining_ = false; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TrainingJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string Region = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJob.Region"); + object = msg->mutable_region(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string RoleArn = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJob.RoleArn"); + object = msg->mutable_rolearn(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification::_InternalParse; + object = msg->mutable_algorithmspecification(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::ResourceConfig::_InternalParse; + object = msg->mutable_resourceconfig(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::StoppingCondition::_InternalParse; + object = msg->mutable_stoppingcondition(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::VpcConfig::_InternalParse; + object = msg->mutable_vpcconfig(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // bool EnableSpotTraining = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; + msg->set_enablespottraining(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TrainingJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string Region = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_region())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->region().data(), static_cast(this->region().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.TrainingJob.Region")); + } else { + goto handle_unusual; + } + break; + } + + // string RoleArn = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_rolearn())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->rolearn().data(), static_cast(this->rolearn().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.TrainingJob.RoleArn")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_algorithmspecification())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_resourceconfig())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_stoppingcondition())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_vpcconfig())); + } else { + goto handle_unusual; + } + break; + } + + // bool EnableSpotTraining = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &enablespottraining_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TrainingJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Region = 1; + if (this->region().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->region().data(), static_cast(this->region().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.TrainingJob.Region"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->region(), output); + } + + // string RoleArn = 2; + if (this->rolearn().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->rolearn().data(), static_cast(this->rolearn().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.TrainingJob.RoleArn"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->rolearn(), output); + } + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + if (this->has_algorithmspecification()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::algorithmspecification(this), output); + } + + // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + if (this->has_resourceconfig()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::resourceconfig(this), output); + } + + // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + if (this->has_stoppingcondition()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::stoppingcondition(this), output); + } + + // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + if (this->has_vpcconfig()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::vpcconfig(this), output); + } + + // bool EnableSpotTraining = 7; + if (this->enablespottraining() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->enablespottraining(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJob) +} + +::google::protobuf::uint8* TrainingJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.TrainingJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Region = 1; + if (this->region().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->region().data(), static_cast(this->region().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.TrainingJob.Region"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->region(), target); + } + + // string RoleArn = 2; + if (this->rolearn().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->rolearn().data(), static_cast(this->rolearn().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.TrainingJob.RoleArn"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->rolearn(), target); + } + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + if (this->has_algorithmspecification()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::algorithmspecification(this), target); + } + + // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + if (this->has_resourceconfig()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::resourceconfig(this), target); + } + + // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + if (this->has_stoppingcondition()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::stoppingcondition(this), target); + } + + // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + if (this->has_vpcconfig()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::vpcconfig(this), target); + } + + // bool EnableSpotTraining = 7; + if (this->enablespottraining() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->enablespottraining(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.TrainingJob) + return target; +} + +size_t TrainingJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.TrainingJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string Region = 1; + if (this->region().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->region()); + } + + // string RoleArn = 2; + if (this->rolearn().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->rolearn()); + } + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + if (this->has_algorithmspecification()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *algorithmspecification_); + } + + // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + if (this->has_resourceconfig()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *resourceconfig_); + } + + // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + if (this->has_stoppingcondition()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *stoppingcondition_); + } + + // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + if (this->has_vpcconfig()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *vpcconfig_); + } + + // bool EnableSpotTraining = 7; + if (this->enablespottraining() != 0) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TrainingJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.TrainingJob) + GOOGLE_DCHECK_NE(&from, this); + const TrainingJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.TrainingJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.TrainingJob) + MergeFrom(*source); + } +} + +void TrainingJob::MergeFrom(const TrainingJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.TrainingJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.region().size() > 0) { + + region_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_); + } + if (from.rolearn().size() > 0) { + + rolearn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rolearn_); + } + if (from.has_algorithmspecification()) { + mutable_algorithmspecification()->::flyteidl::plugins::sagemaker::AlgorithmSpecification::MergeFrom(from.algorithmspecification()); + } + if (from.has_resourceconfig()) { + mutable_resourceconfig()->::flyteidl::plugins::sagemaker::ResourceConfig::MergeFrom(from.resourceconfig()); + } + if (from.has_stoppingcondition()) { + mutable_stoppingcondition()->::flyteidl::plugins::sagemaker::StoppingCondition::MergeFrom(from.stoppingcondition()); + } + if (from.has_vpcconfig()) { + mutable_vpcconfig()->::flyteidl::plugins::sagemaker::VpcConfig::MergeFrom(from.vpcconfig()); + } + if (from.enablespottraining() != 0) { + set_enablespottraining(from.enablespottraining()); + } +} + +void TrainingJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.TrainingJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TrainingJob::CopyFrom(const TrainingJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.TrainingJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TrainingJob::IsInitialized() const { + return true; +} + +void TrainingJob::Swap(TrainingJob* other) { + if (other == this) return; + InternalSwap(other); +} +void TrainingJob::InternalSwap(TrainingJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + region_.Swap(&other->region_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + rolearn_.Swap(&other->rolearn_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(algorithmspecification_, other->algorithmspecification_); + swap(resourceconfig_, other->resourceconfig_); + swap(stoppingcondition_, other->stoppingcondition_); + swap(vpcconfig_, other->vpcconfig_); + swap(enablespottraining_, other->enablespottraining_); +} + +::google::protobuf::Metadata TrainingJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ResourceConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ResourceConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ResourceConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::StoppingCondition >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::StoppingCondition >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::VpcConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::VpcConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::VpcConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJob >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h new file mode 100644 index 000000000..b54a2b674 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h @@ -0,0 +1,1963 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/trainingjob.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[6] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class AlgorithmSpecification; +class AlgorithmSpecificationDefaultTypeInternal; +extern AlgorithmSpecificationDefaultTypeInternal _AlgorithmSpecification_default_instance_; +class AlgorithmSpecification_MetricDefinition; +class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal; +extern AlgorithmSpecification_MetricDefinitionDefaultTypeInternal _AlgorithmSpecification_MetricDefinition_default_instance_; +class ResourceConfig; +class ResourceConfigDefaultTypeInternal; +extern ResourceConfigDefaultTypeInternal _ResourceConfig_default_instance_; +class StoppingCondition; +class StoppingConditionDefaultTypeInternal; +extern StoppingConditionDefaultTypeInternal _StoppingCondition_default_instance_; +class TrainingJob; +class TrainingJobDefaultTypeInternal; +extern TrainingJobDefaultTypeInternal _TrainingJob_default_instance_; +class VpcConfig; +class VpcConfigDefaultTypeInternal; +extern VpcConfigDefaultTypeInternal _VpcConfig_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(Arena*); +template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ResourceConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ResourceConfig>(Arena*); +template<> ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::StoppingCondition>(Arena*); +template<> ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(Arena*); +template<> ::flyteidl::plugins::sagemaker::VpcConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::VpcConfig>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +// =================================================================== + +class AlgorithmSpecification_MetricDefinition final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) */ { + public: + AlgorithmSpecification_MetricDefinition(); + virtual ~AlgorithmSpecification_MetricDefinition(); + + AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from); + + inline AlgorithmSpecification_MetricDefinition& operator=(const AlgorithmSpecification_MetricDefinition& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AlgorithmSpecification_MetricDefinition(AlgorithmSpecification_MetricDefinition&& from) noexcept + : AlgorithmSpecification_MetricDefinition() { + *this = ::std::move(from); + } + + inline AlgorithmSpecification_MetricDefinition& operator=(AlgorithmSpecification_MetricDefinition&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AlgorithmSpecification_MetricDefinition& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AlgorithmSpecification_MetricDefinition* internal_default_instance() { + return reinterpret_cast( + &_AlgorithmSpecification_MetricDefinition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(AlgorithmSpecification_MetricDefinition* other); + friend void swap(AlgorithmSpecification_MetricDefinition& a, AlgorithmSpecification_MetricDefinition& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AlgorithmSpecification_MetricDefinition* New() const final { + return CreateMaybeMessage(nullptr); + } + + AlgorithmSpecification_MetricDefinition* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AlgorithmSpecification_MetricDefinition& from); + void MergeFrom(const AlgorithmSpecification_MetricDefinition& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AlgorithmSpecification_MetricDefinition* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string Name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string Regex = 2; + void clear_regex(); + static const int kRegexFieldNumber = 2; + const ::std::string& regex() const; + void set_regex(const ::std::string& value); + #if LANG_CXX11 + void set_regex(::std::string&& value); + #endif + void set_regex(const char* value); + void set_regex(const char* value, size_t size); + ::std::string* mutable_regex(); + ::std::string* release_regex(); + void set_allocated_regex(::std::string* regex); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr regex_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +}; +// ------------------------------------------------------------------- + +class AlgorithmSpecification final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmSpecification) */ { + public: + AlgorithmSpecification(); + virtual ~AlgorithmSpecification(); + + AlgorithmSpecification(const AlgorithmSpecification& from); + + inline AlgorithmSpecification& operator=(const AlgorithmSpecification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AlgorithmSpecification(AlgorithmSpecification&& from) noexcept + : AlgorithmSpecification() { + *this = ::std::move(from); + } + + inline AlgorithmSpecification& operator=(AlgorithmSpecification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AlgorithmSpecification& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AlgorithmSpecification* internal_default_instance() { + return reinterpret_cast( + &_AlgorithmSpecification_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(AlgorithmSpecification* other); + friend void swap(AlgorithmSpecification& a, AlgorithmSpecification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AlgorithmSpecification* New() const final { + return CreateMaybeMessage(nullptr); + } + + AlgorithmSpecification* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AlgorithmSpecification& from); + void MergeFrom(const AlgorithmSpecification& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AlgorithmSpecification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef AlgorithmSpecification_MetricDefinition MetricDefinition; + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + int metricdefinitions_size() const; + void clear_metricdefinitions(); + static const int kMetricDefinitionsFieldNumber = 4; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* mutable_metricdefinitions(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* + mutable_metricdefinitions(); + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& metricdefinitions(int index) const; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* add_metricdefinitions(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& + metricdefinitions() const; + + // string TrainingImage = 1; + void clear_trainingimage(); + static const int kTrainingImageFieldNumber = 1; + const ::std::string& trainingimage() const; + void set_trainingimage(const ::std::string& value); + #if LANG_CXX11 + void set_trainingimage(::std::string&& value); + #endif + void set_trainingimage(const char* value); + void set_trainingimage(const char* value, size_t size); + ::std::string* mutable_trainingimage(); + ::std::string* release_trainingimage(); + void set_allocated_trainingimage(::std::string* trainingimage); + + // string TrainingInputMode = 2; + void clear_traininginputmode(); + static const int kTrainingInputModeFieldNumber = 2; + const ::std::string& traininginputmode() const; + void set_traininginputmode(const ::std::string& value); + #if LANG_CXX11 + void set_traininginputmode(::std::string&& value); + #endif + void set_traininginputmode(const char* value); + void set_traininginputmode(const char* value, size_t size); + ::std::string* mutable_traininginputmode(); + ::std::string* release_traininginputmode(); + void set_allocated_traininginputmode(::std::string* traininginputmode); + + // string AlgorithmName = 3; + void clear_algorithmname(); + static const int kAlgorithmNameFieldNumber = 3; + const ::std::string& algorithmname() const; + void set_algorithmname(const ::std::string& value); + #if LANG_CXX11 + void set_algorithmname(::std::string&& value); + #endif + void set_algorithmname(const char* value); + void set_algorithmname(const char* value, size_t size); + ::std::string* mutable_algorithmname(); + ::std::string* release_algorithmname(); + void set_allocated_algorithmname(::std::string* algorithmname); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition > metricdefinitions_; + ::google::protobuf::internal::ArenaStringPtr trainingimage_; + ::google::protobuf::internal::ArenaStringPtr traininginputmode_; + ::google::protobuf::internal::ArenaStringPtr algorithmname_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourceConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ResourceConfig) */ { + public: + ResourceConfig(); + virtual ~ResourceConfig(); + + ResourceConfig(const ResourceConfig& from); + + inline ResourceConfig& operator=(const ResourceConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ResourceConfig(ResourceConfig&& from) noexcept + : ResourceConfig() { + *this = ::std::move(from); + } + + inline ResourceConfig& operator=(ResourceConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ResourceConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ResourceConfig* internal_default_instance() { + return reinterpret_cast( + &_ResourceConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(ResourceConfig* other); + friend void swap(ResourceConfig& a, ResourceConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ResourceConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + ResourceConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ResourceConfig& from); + void MergeFrom(const ResourceConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string InstanceType = 1; + void clear_instancetype(); + static const int kInstanceTypeFieldNumber = 1; + const ::std::string& instancetype() const; + void set_instancetype(const ::std::string& value); + #if LANG_CXX11 + void set_instancetype(::std::string&& value); + #endif + void set_instancetype(const char* value); + void set_instancetype(const char* value, size_t size); + ::std::string* mutable_instancetype(); + ::std::string* release_instancetype(); + void set_allocated_instancetype(::std::string* instancetype); + + // string VolumeKmsKeyId = 4; + void clear_volumekmskeyid(); + static const int kVolumeKmsKeyIdFieldNumber = 4; + const ::std::string& volumekmskeyid() const; + void set_volumekmskeyid(const ::std::string& value); + #if LANG_CXX11 + void set_volumekmskeyid(::std::string&& value); + #endif + void set_volumekmskeyid(const char* value); + void set_volumekmskeyid(const char* value, size_t size); + ::std::string* mutable_volumekmskeyid(); + ::std::string* release_volumekmskeyid(); + void set_allocated_volumekmskeyid(::std::string* volumekmskeyid); + + // int64 InstanceCount = 2; + void clear_instancecount(); + static const int kInstanceCountFieldNumber = 2; + ::google::protobuf::int64 instancecount() const; + void set_instancecount(::google::protobuf::int64 value); + + // int64 VolumeSizeInGB = 3; + void clear_volumesizeingb(); + static const int kVolumeSizeInGBFieldNumber = 3; + ::google::protobuf::int64 volumesizeingb() const; + void set_volumesizeingb(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ResourceConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr instancetype_; + ::google::protobuf::internal::ArenaStringPtr volumekmskeyid_; + ::google::protobuf::int64 instancecount_; + ::google::protobuf::int64 volumesizeingb_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +}; +// ------------------------------------------------------------------- + +class StoppingCondition final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.StoppingCondition) */ { + public: + StoppingCondition(); + virtual ~StoppingCondition(); + + StoppingCondition(const StoppingCondition& from); + + inline StoppingCondition& operator=(const StoppingCondition& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StoppingCondition(StoppingCondition&& from) noexcept + : StoppingCondition() { + *this = ::std::move(from); + } + + inline StoppingCondition& operator=(StoppingCondition&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const StoppingCondition& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StoppingCondition* internal_default_instance() { + return reinterpret_cast( + &_StoppingCondition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(StoppingCondition* other); + friend void swap(StoppingCondition& a, StoppingCondition& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StoppingCondition* New() const final { + return CreateMaybeMessage(nullptr); + } + + StoppingCondition* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StoppingCondition& from); + void MergeFrom(const StoppingCondition& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StoppingCondition* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // int64 MaxRuntimeInSeconds = 1; + void clear_maxruntimeinseconds(); + static const int kMaxRuntimeInSecondsFieldNumber = 1; + ::google::protobuf::int64 maxruntimeinseconds() const; + void set_maxruntimeinseconds(::google::protobuf::int64 value); + + // int64 MaxWaitTimeInSeconds = 2; + void clear_maxwaittimeinseconds(); + static const int kMaxWaitTimeInSecondsFieldNumber = 2; + ::google::protobuf::int64 maxwaittimeinseconds() const; + void set_maxwaittimeinseconds(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int64 maxruntimeinseconds_; + ::google::protobuf::int64 maxwaittimeinseconds_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +}; +// ------------------------------------------------------------------- + +class VpcConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.VpcConfig) */ { + public: + VpcConfig(); + virtual ~VpcConfig(); + + VpcConfig(const VpcConfig& from); + + inline VpcConfig& operator=(const VpcConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + VpcConfig(VpcConfig&& from) noexcept + : VpcConfig() { + *this = ::std::move(from); + } + + inline VpcConfig& operator=(VpcConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const VpcConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const VpcConfig* internal_default_instance() { + return reinterpret_cast( + &_VpcConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(VpcConfig* other); + friend void swap(VpcConfig& a, VpcConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline VpcConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + VpcConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const VpcConfig& from); + void MergeFrom(const VpcConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(VpcConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string SecurityGroupIds = 1; + int securitygroupids_size() const; + void clear_securitygroupids(); + static const int kSecurityGroupIdsFieldNumber = 1; + const ::std::string& securitygroupids(int index) const; + ::std::string* mutable_securitygroupids(int index); + void set_securitygroupids(int index, const ::std::string& value); + #if LANG_CXX11 + void set_securitygroupids(int index, ::std::string&& value); + #endif + void set_securitygroupids(int index, const char* value); + void set_securitygroupids(int index, const char* value, size_t size); + ::std::string* add_securitygroupids(); + void add_securitygroupids(const ::std::string& value); + #if LANG_CXX11 + void add_securitygroupids(::std::string&& value); + #endif + void add_securitygroupids(const char* value); + void add_securitygroupids(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& securitygroupids() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_securitygroupids(); + + // repeated string Subnets = 2; + int subnets_size() const; + void clear_subnets(); + static const int kSubnetsFieldNumber = 2; + const ::std::string& subnets(int index) const; + ::std::string* mutable_subnets(int index); + void set_subnets(int index, const ::std::string& value); + #if LANG_CXX11 + void set_subnets(int index, ::std::string&& value); + #endif + void set_subnets(int index, const char* value); + void set_subnets(int index, const char* value, size_t size); + ::std::string* add_subnets(); + void add_subnets(const ::std::string& value); + #if LANG_CXX11 + void add_subnets(::std::string&& value); + #endif + void add_subnets(const char* value); + void add_subnets(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& subnets() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_subnets(); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.VpcConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> securitygroupids_; + ::google::protobuf::RepeatedPtrField<::std::string> subnets_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +}; +// ------------------------------------------------------------------- + +class TrainingJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.TrainingJob) */ { + public: + TrainingJob(); + virtual ~TrainingJob(); + + TrainingJob(const TrainingJob& from); + + inline TrainingJob& operator=(const TrainingJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TrainingJob(TrainingJob&& from) noexcept + : TrainingJob() { + *this = ::std::move(from); + } + + inline TrainingJob& operator=(TrainingJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TrainingJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TrainingJob* internal_default_instance() { + return reinterpret_cast( + &_TrainingJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(TrainingJob* other); + friend void swap(TrainingJob& a, TrainingJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TrainingJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + TrainingJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TrainingJob& from); + void MergeFrom(const TrainingJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TrainingJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string Region = 1; + void clear_region(); + static const int kRegionFieldNumber = 1; + const ::std::string& region() const; + void set_region(const ::std::string& value); + #if LANG_CXX11 + void set_region(::std::string&& value); + #endif + void set_region(const char* value); + void set_region(const char* value, size_t size); + ::std::string* mutable_region(); + ::std::string* release_region(); + void set_allocated_region(::std::string* region); + + // string RoleArn = 2; + void clear_rolearn(); + static const int kRoleArnFieldNumber = 2; + const ::std::string& rolearn() const; + void set_rolearn(const ::std::string& value); + #if LANG_CXX11 + void set_rolearn(::std::string&& value); + #endif + void set_rolearn(const char* value); + void set_rolearn(const char* value, size_t size); + ::std::string* mutable_rolearn(); + ::std::string* release_rolearn(); + void set_allocated_rolearn(::std::string* rolearn); + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + bool has_algorithmspecification() const; + void clear_algorithmspecification(); + static const int kAlgorithmSpecificationFieldNumber = 3; + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithmspecification() const; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* release_algorithmspecification(); + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* mutable_algorithmspecification(); + void set_allocated_algorithmspecification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithmspecification); + + // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + bool has_resourceconfig() const; + void clear_resourceconfig(); + static const int kResourceConfigFieldNumber = 4; + const ::flyteidl::plugins::sagemaker::ResourceConfig& resourceconfig() const; + ::flyteidl::plugins::sagemaker::ResourceConfig* release_resourceconfig(); + ::flyteidl::plugins::sagemaker::ResourceConfig* mutable_resourceconfig(); + void set_allocated_resourceconfig(::flyteidl::plugins::sagemaker::ResourceConfig* resourceconfig); + + // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + bool has_stoppingcondition() const; + void clear_stoppingcondition(); + static const int kStoppingConditionFieldNumber = 5; + const ::flyteidl::plugins::sagemaker::StoppingCondition& stoppingcondition() const; + ::flyteidl::plugins::sagemaker::StoppingCondition* release_stoppingcondition(); + ::flyteidl::plugins::sagemaker::StoppingCondition* mutable_stoppingcondition(); + void set_allocated_stoppingcondition(::flyteidl::plugins::sagemaker::StoppingCondition* stoppingcondition); + + // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + bool has_vpcconfig() const; + void clear_vpcconfig(); + static const int kVpcConfigFieldNumber = 6; + const ::flyteidl::plugins::sagemaker::VpcConfig& vpcconfig() const; + ::flyteidl::plugins::sagemaker::VpcConfig* release_vpcconfig(); + ::flyteidl::plugins::sagemaker::VpcConfig* mutable_vpcconfig(); + void set_allocated_vpcconfig(::flyteidl::plugins::sagemaker::VpcConfig* vpcconfig); + + // bool EnableSpotTraining = 7; + void clear_enablespottraining(); + static const int kEnableSpotTrainingFieldNumber = 7; + bool enablespottraining() const; + void set_enablespottraining(bool value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr region_; + ::google::protobuf::internal::ArenaStringPtr rolearn_; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithmspecification_; + ::flyteidl::plugins::sagemaker::ResourceConfig* resourceconfig_; + ::flyteidl::plugins::sagemaker::StoppingCondition* stoppingcondition_; + ::flyteidl::plugins::sagemaker::VpcConfig* vpcconfig_; + bool enablespottraining_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// AlgorithmSpecification_MetricDefinition + +// string Name = 1; +inline void AlgorithmSpecification_MetricDefinition::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification_MetricDefinition::name() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + return name_.GetNoArena(); +} +inline void AlgorithmSpecification_MetricDefinition::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) +} +#if LANG_CXX11 +inline void AlgorithmSpecification_MetricDefinition::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) +} +#endif +inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) +} +inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) +} +inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification_MetricDefinition::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification_MetricDefinition::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) +} + +// string Regex = 2; +inline void AlgorithmSpecification_MetricDefinition::clear_regex() { + regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification_MetricDefinition::regex() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + return regex_.GetNoArena(); +} +inline void AlgorithmSpecification_MetricDefinition::set_regex(const ::std::string& value) { + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) +} +#if LANG_CXX11 +inline void AlgorithmSpecification_MetricDefinition::set_regex(::std::string&& value) { + + regex_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) +} +#endif +inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) +} +inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value, size_t size) { + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) +} +inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_regex() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + return regex_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification_MetricDefinition::release_regex() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + + return regex_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification_MetricDefinition::set_allocated_regex(::std::string* regex) { + if (regex != nullptr) { + + } else { + + } + regex_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), regex); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) +} + +// ------------------------------------------------------------------- + +// AlgorithmSpecification + +// string TrainingImage = 1; +inline void AlgorithmSpecification::clear_trainingimage() { + trainingimage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification::trainingimage() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + return trainingimage_.GetNoArena(); +} +inline void AlgorithmSpecification::set_trainingimage(const ::std::string& value) { + + trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) +} +#if LANG_CXX11 +inline void AlgorithmSpecification::set_trainingimage(::std::string&& value) { + + trainingimage_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) +} +#endif +inline void AlgorithmSpecification::set_trainingimage(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) +} +inline void AlgorithmSpecification::set_trainingimage(const char* value, size_t size) { + + trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) +} +inline ::std::string* AlgorithmSpecification::mutable_trainingimage() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + return trainingimage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification::release_trainingimage() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + + return trainingimage_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification::set_allocated_trainingimage(::std::string* trainingimage) { + if (trainingimage != nullptr) { + + } else { + + } + trainingimage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trainingimage); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) +} + +// string TrainingInputMode = 2; +inline void AlgorithmSpecification::clear_traininginputmode() { + traininginputmode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification::traininginputmode() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + return traininginputmode_.GetNoArena(); +} +inline void AlgorithmSpecification::set_traininginputmode(const ::std::string& value) { + + traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) +} +#if LANG_CXX11 +inline void AlgorithmSpecification::set_traininginputmode(::std::string&& value) { + + traininginputmode_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) +} +#endif +inline void AlgorithmSpecification::set_traininginputmode(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) +} +inline void AlgorithmSpecification::set_traininginputmode(const char* value, size_t size) { + + traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) +} +inline ::std::string* AlgorithmSpecification::mutable_traininginputmode() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + return traininginputmode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification::release_traininginputmode() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + + return traininginputmode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification::set_allocated_traininginputmode(::std::string* traininginputmode) { + if (traininginputmode != nullptr) { + + } else { + + } + traininginputmode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), traininginputmode); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) +} + +// string AlgorithmName = 3; +inline void AlgorithmSpecification::clear_algorithmname() { + algorithmname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification::algorithmname() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + return algorithmname_.GetNoArena(); +} +inline void AlgorithmSpecification::set_algorithmname(const ::std::string& value) { + + algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) +} +#if LANG_CXX11 +inline void AlgorithmSpecification::set_algorithmname(::std::string&& value) { + + algorithmname_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) +} +#endif +inline void AlgorithmSpecification::set_algorithmname(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) +} +inline void AlgorithmSpecification::set_algorithmname(const char* value, size_t size) { + + algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) +} +inline ::std::string* AlgorithmSpecification::mutable_algorithmname() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + return algorithmname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification::release_algorithmname() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + + return algorithmname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification::set_allocated_algorithmname(::std::string* algorithmname) { + if (algorithmname != nullptr) { + + } else { + + } + algorithmname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), algorithmname); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) +} + +// repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; +inline int AlgorithmSpecification::metricdefinitions_size() const { + return metricdefinitions_.size(); +} +inline void AlgorithmSpecification::clear_metricdefinitions() { + metricdefinitions_.Clear(); +} +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::mutable_metricdefinitions(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) + return metricdefinitions_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* +AlgorithmSpecification::mutable_metricdefinitions() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) + return &metricdefinitions_; +} +inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& AlgorithmSpecification::metricdefinitions(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) + return metricdefinitions_.Get(index); +} +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::add_metricdefinitions() { + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) + return metricdefinitions_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& +AlgorithmSpecification::metricdefinitions() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) + return metricdefinitions_; +} + +// ------------------------------------------------------------------- + +// ResourceConfig + +// string InstanceType = 1; +inline void ResourceConfig::clear_instancetype() { + instancetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ResourceConfig::instancetype() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) + return instancetype_.GetNoArena(); +} +inline void ResourceConfig::set_instancetype(const ::std::string& value) { + + instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) +} +#if LANG_CXX11 +inline void ResourceConfig::set_instancetype(::std::string&& value) { + + instancetype_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) +} +#endif +inline void ResourceConfig::set_instancetype(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) +} +inline void ResourceConfig::set_instancetype(const char* value, size_t size) { + + instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) +} +inline ::std::string* ResourceConfig::mutable_instancetype() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) + return instancetype_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ResourceConfig::release_instancetype() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) + + return instancetype_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ResourceConfig::set_allocated_instancetype(::std::string* instancetype) { + if (instancetype != nullptr) { + + } else { + + } + instancetype_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instancetype); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) +} + +// int64 InstanceCount = 2; +inline void ResourceConfig::clear_instancecount() { + instancecount_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 ResourceConfig::instancecount() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount) + return instancecount_; +} +inline void ResourceConfig::set_instancecount(::google::protobuf::int64 value) { + + instancecount_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount) +} + +// int64 VolumeSizeInGB = 3; +inline void ResourceConfig::clear_volumesizeingb() { + volumesizeingb_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 ResourceConfig::volumesizeingb() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB) + return volumesizeingb_; +} +inline void ResourceConfig::set_volumesizeingb(::google::protobuf::int64 value) { + + volumesizeingb_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB) +} + +// string VolumeKmsKeyId = 4; +inline void ResourceConfig::clear_volumekmskeyid() { + volumekmskeyid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ResourceConfig::volumekmskeyid() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + return volumekmskeyid_.GetNoArena(); +} +inline void ResourceConfig::set_volumekmskeyid(const ::std::string& value) { + + volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) +} +#if LANG_CXX11 +inline void ResourceConfig::set_volumekmskeyid(::std::string&& value) { + + volumekmskeyid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) +} +#endif +inline void ResourceConfig::set_volumekmskeyid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) +} +inline void ResourceConfig::set_volumekmskeyid(const char* value, size_t size) { + + volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) +} +inline ::std::string* ResourceConfig::mutable_volumekmskeyid() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + return volumekmskeyid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ResourceConfig::release_volumekmskeyid() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + + return volumekmskeyid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ResourceConfig::set_allocated_volumekmskeyid(::std::string* volumekmskeyid) { + if (volumekmskeyid != nullptr) { + + } else { + + } + volumekmskeyid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), volumekmskeyid); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) +} + +// ------------------------------------------------------------------- + +// StoppingCondition + +// int64 MaxRuntimeInSeconds = 1; +inline void StoppingCondition::clear_maxruntimeinseconds() { + maxruntimeinseconds_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 StoppingCondition::maxruntimeinseconds() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds) + return maxruntimeinseconds_; +} +inline void StoppingCondition::set_maxruntimeinseconds(::google::protobuf::int64 value) { + + maxruntimeinseconds_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds) +} + +// int64 MaxWaitTimeInSeconds = 2; +inline void StoppingCondition::clear_maxwaittimeinseconds() { + maxwaittimeinseconds_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 StoppingCondition::maxwaittimeinseconds() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds) + return maxwaittimeinseconds_; +} +inline void StoppingCondition::set_maxwaittimeinseconds(::google::protobuf::int64 value) { + + maxwaittimeinseconds_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds) +} + +// ------------------------------------------------------------------- + +// VpcConfig + +// repeated string SecurityGroupIds = 1; +inline int VpcConfig::securitygroupids_size() const { + return securitygroupids_.size(); +} +inline void VpcConfig::clear_securitygroupids() { + securitygroupids_.Clear(); +} +inline const ::std::string& VpcConfig::securitygroupids(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) + return securitygroupids_.Get(index); +} +inline ::std::string* VpcConfig::mutable_securitygroupids(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) + return securitygroupids_.Mutable(index); +} +inline void VpcConfig::set_securitygroupids(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) + securitygroupids_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void VpcConfig::set_securitygroupids(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) + securitygroupids_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void VpcConfig::set_securitygroupids(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + securitygroupids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) +} +inline void VpcConfig::set_securitygroupids(int index, const char* value, size_t size) { + securitygroupids_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) +} +inline ::std::string* VpcConfig::add_securitygroupids() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) + return securitygroupids_.Add(); +} +inline void VpcConfig::add_securitygroupids(const ::std::string& value) { + securitygroupids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) +} +#if LANG_CXX11 +inline void VpcConfig::add_securitygroupids(::std::string&& value) { + securitygroupids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) +} +#endif +inline void VpcConfig::add_securitygroupids(const char* value) { + GOOGLE_DCHECK(value != nullptr); + securitygroupids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) +} +inline void VpcConfig::add_securitygroupids(const char* value, size_t size) { + securitygroupids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +VpcConfig::securitygroupids() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) + return securitygroupids_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +VpcConfig::mutable_securitygroupids() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) + return &securitygroupids_; +} + +// repeated string Subnets = 2; +inline int VpcConfig::subnets_size() const { + return subnets_.size(); +} +inline void VpcConfig::clear_subnets() { + subnets_.Clear(); +} +inline const ::std::string& VpcConfig::subnets(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + return subnets_.Get(index); +} +inline ::std::string* VpcConfig::mutable_subnets(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + return subnets_.Mutable(index); +} +inline void VpcConfig::set_subnets(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + subnets_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void VpcConfig::set_subnets(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + subnets_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void VpcConfig::set_subnets(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + subnets_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.VpcConfig.Subnets) +} +inline void VpcConfig::set_subnets(int index, const char* value, size_t size) { + subnets_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.VpcConfig.Subnets) +} +inline ::std::string* VpcConfig::add_subnets() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + return subnets_.Add(); +} +inline void VpcConfig::add_subnets(const ::std::string& value) { + subnets_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.Subnets) +} +#if LANG_CXX11 +inline void VpcConfig::add_subnets(::std::string&& value) { + subnets_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.Subnets) +} +#endif +inline void VpcConfig::add_subnets(const char* value) { + GOOGLE_DCHECK(value != nullptr); + subnets_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.VpcConfig.Subnets) +} +inline void VpcConfig::add_subnets(const char* value, size_t size) { + subnets_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.VpcConfig.Subnets) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +VpcConfig::subnets() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + return subnets_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +VpcConfig::mutable_subnets() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + return &subnets_; +} + +// ------------------------------------------------------------------- + +// TrainingJob + +// string Region = 1; +inline void TrainingJob::clear_region() { + region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TrainingJob::region() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.Region) + return region_.GetNoArena(); +} +inline void TrainingJob::set_region(const ::std::string& value) { + + region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.Region) +} +#if LANG_CXX11 +inline void TrainingJob::set_region(::std::string&& value) { + + region_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJob.Region) +} +#endif +inline void TrainingJob::set_region(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJob.Region) +} +inline void TrainingJob::set_region(const char* value, size_t size) { + + region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJob.Region) +} +inline ::std::string* TrainingJob::mutable_region() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.Region) + return region_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TrainingJob::release_region() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.Region) + + return region_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TrainingJob::set_allocated_region(::std::string* region) { + if (region != nullptr) { + + } else { + + } + region_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), region); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.Region) +} + +// string RoleArn = 2; +inline void TrainingJob::clear_rolearn() { + rolearn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TrainingJob::rolearn() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) + return rolearn_.GetNoArena(); +} +inline void TrainingJob::set_rolearn(const ::std::string& value) { + + rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) +} +#if LANG_CXX11 +inline void TrainingJob::set_rolearn(::std::string&& value) { + + rolearn_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) +} +#endif +inline void TrainingJob::set_rolearn(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) +} +inline void TrainingJob::set_rolearn(const char* value, size_t size) { + + rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) +} +inline ::std::string* TrainingJob::mutable_rolearn() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) + return rolearn_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TrainingJob::release_rolearn() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) + + return rolearn_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TrainingJob::set_allocated_rolearn(::std::string* rolearn) { + if (rolearn != nullptr) { + + } else { + + } + rolearn_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rolearn); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) +} + +// .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; +inline bool TrainingJob::has_algorithmspecification() const { + return this != internal_default_instance() && algorithmspecification_ != nullptr; +} +inline void TrainingJob::clear_algorithmspecification() { + if (GetArenaNoVirtual() == nullptr && algorithmspecification_ != nullptr) { + delete algorithmspecification_; + } + algorithmspecification_ = nullptr; +} +inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& TrainingJob::algorithmspecification() const { + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification* p = algorithmspecification_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.AlgorithmSpecification) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* TrainingJob::release_algorithmspecification() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.AlgorithmSpecification) + + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* temp = algorithmspecification_; + algorithmspecification_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* TrainingJob::mutable_algorithmspecification() { + + if (algorithmspecification_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(GetArenaNoVirtual()); + algorithmspecification_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.AlgorithmSpecification) + return algorithmspecification_; +} +inline void TrainingJob::set_allocated_algorithmspecification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithmspecification) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete algorithmspecification_; + } + if (algorithmspecification) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + algorithmspecification = ::google::protobuf::internal::GetOwnedMessage( + message_arena, algorithmspecification, submessage_arena); + } + + } else { + + } + algorithmspecification_ = algorithmspecification; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.AlgorithmSpecification) +} + +// .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; +inline bool TrainingJob::has_resourceconfig() const { + return this != internal_default_instance() && resourceconfig_ != nullptr; +} +inline void TrainingJob::clear_resourceconfig() { + if (GetArenaNoVirtual() == nullptr && resourceconfig_ != nullptr) { + delete resourceconfig_; + } + resourceconfig_ = nullptr; +} +inline const ::flyteidl::plugins::sagemaker::ResourceConfig& TrainingJob::resourceconfig() const { + const ::flyteidl::plugins::sagemaker::ResourceConfig* p = resourceconfig_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.ResourceConfig) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_ResourceConfig_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::ResourceConfig* TrainingJob::release_resourceconfig() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.ResourceConfig) + + ::flyteidl::plugins::sagemaker::ResourceConfig* temp = resourceconfig_; + resourceconfig_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::ResourceConfig* TrainingJob::mutable_resourceconfig() { + + if (resourceconfig_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ResourceConfig>(GetArenaNoVirtual()); + resourceconfig_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.ResourceConfig) + return resourceconfig_; +} +inline void TrainingJob::set_allocated_resourceconfig(::flyteidl::plugins::sagemaker::ResourceConfig* resourceconfig) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete resourceconfig_; + } + if (resourceconfig) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + resourceconfig = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resourceconfig, submessage_arena); + } + + } else { + + } + resourceconfig_ = resourceconfig; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.ResourceConfig) +} + +// .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; +inline bool TrainingJob::has_stoppingcondition() const { + return this != internal_default_instance() && stoppingcondition_ != nullptr; +} +inline void TrainingJob::clear_stoppingcondition() { + if (GetArenaNoVirtual() == nullptr && stoppingcondition_ != nullptr) { + delete stoppingcondition_; + } + stoppingcondition_ = nullptr; +} +inline const ::flyteidl::plugins::sagemaker::StoppingCondition& TrainingJob::stoppingcondition() const { + const ::flyteidl::plugins::sagemaker::StoppingCondition* p = stoppingcondition_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.StoppingCondition) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::StoppingCondition* TrainingJob::release_stoppingcondition() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.StoppingCondition) + + ::flyteidl::plugins::sagemaker::StoppingCondition* temp = stoppingcondition_; + stoppingcondition_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::StoppingCondition* TrainingJob::mutable_stoppingcondition() { + + if (stoppingcondition_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::StoppingCondition>(GetArenaNoVirtual()); + stoppingcondition_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.StoppingCondition) + return stoppingcondition_; +} +inline void TrainingJob::set_allocated_stoppingcondition(::flyteidl::plugins::sagemaker::StoppingCondition* stoppingcondition) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete stoppingcondition_; + } + if (stoppingcondition) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + stoppingcondition = ::google::protobuf::internal::GetOwnedMessage( + message_arena, stoppingcondition, submessage_arena); + } + + } else { + + } + stoppingcondition_ = stoppingcondition; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.StoppingCondition) +} + +// .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; +inline bool TrainingJob::has_vpcconfig() const { + return this != internal_default_instance() && vpcconfig_ != nullptr; +} +inline void TrainingJob::clear_vpcconfig() { + if (GetArenaNoVirtual() == nullptr && vpcconfig_ != nullptr) { + delete vpcconfig_; + } + vpcconfig_ = nullptr; +} +inline const ::flyteidl::plugins::sagemaker::VpcConfig& TrainingJob::vpcconfig() const { + const ::flyteidl::plugins::sagemaker::VpcConfig* p = vpcconfig_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.VpcConfig) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_VpcConfig_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::VpcConfig* TrainingJob::release_vpcconfig() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.VpcConfig) + + ::flyteidl::plugins::sagemaker::VpcConfig* temp = vpcconfig_; + vpcconfig_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::VpcConfig* TrainingJob::mutable_vpcconfig() { + + if (vpcconfig_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::VpcConfig>(GetArenaNoVirtual()); + vpcconfig_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.VpcConfig) + return vpcconfig_; +} +inline void TrainingJob::set_allocated_vpcconfig(::flyteidl::plugins::sagemaker::VpcConfig* vpcconfig) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete vpcconfig_; + } + if (vpcconfig) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + vpcconfig = ::google::protobuf::internal::GetOwnedMessage( + message_arena, vpcconfig, submessage_arena); + } + + } else { + + } + vpcconfig_ = vpcconfig; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.VpcConfig) +} + +// bool EnableSpotTraining = 7; +inline void TrainingJob::clear_enablespottraining() { + enablespottraining_ = false; +} +inline bool TrainingJob::enablespottraining() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.EnableSpotTraining) + return enablespottraining_; +} +inline void TrainingJob::set_enablespottraining(bool value) { + + enablespottraining_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.EnableSpotTraining) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go new file mode 100644 index 000000000..dfaf1007c --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go @@ -0,0 +1,209 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/hpojob.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HPOJobObjective_HPOJobObjectiveType int32 + +const ( + HPOJobObjective_MINIMIZE HPOJobObjective_HPOJobObjectiveType = 0 + HPOJobObjective_MAXIMIZE HPOJobObjective_HPOJobObjectiveType = 1 +) + +var HPOJobObjective_HPOJobObjectiveType_name = map[int32]string{ + 0: "MINIMIZE", + 1: "MAXIMIZE", +} + +var HPOJobObjective_HPOJobObjectiveType_value = map[string]int32{ + "MINIMIZE": 0, + "MAXIMIZE": 1, +} + +func (x HPOJobObjective_HPOJobObjectiveType) String() string { + return proto.EnumName(HPOJobObjective_HPOJobObjectiveType_name, int32(x)) +} + +func (HPOJobObjective_HPOJobObjectiveType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_823bfe2a857513d9, []int{0, 0} +} + +type HPOJobObjective struct { + Type HPOJobObjective_HPOJobObjectiveType `protobuf:"varint,1,opt,name=Type,proto3,enum=flyteidl.plugins.sagemaker.HPOJobObjective_HPOJobObjectiveType" json:"Type,omitempty"` + MetricName string `protobuf:"bytes,2,opt,name=MetricName,proto3" json:"MetricName,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HPOJobObjective) Reset() { *m = HPOJobObjective{} } +func (m *HPOJobObjective) String() string { return proto.CompactTextString(m) } +func (*HPOJobObjective) ProtoMessage() {} +func (*HPOJobObjective) Descriptor() ([]byte, []int) { + return fileDescriptor_823bfe2a857513d9, []int{0} +} + +func (m *HPOJobObjective) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HPOJobObjective.Unmarshal(m, b) +} +func (m *HPOJobObjective) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HPOJobObjective.Marshal(b, m, deterministic) +} +func (m *HPOJobObjective) XXX_Merge(src proto.Message) { + xxx_messageInfo_HPOJobObjective.Merge(m, src) +} +func (m *HPOJobObjective) XXX_Size() int { + return xxx_messageInfo_HPOJobObjective.Size(m) +} +func (m *HPOJobObjective) XXX_DiscardUnknown() { + xxx_messageInfo_HPOJobObjective.DiscardUnknown(m) +} + +var xxx_messageInfo_HPOJobObjective proto.InternalMessageInfo + +func (m *HPOJobObjective) GetType() HPOJobObjective_HPOJobObjectiveType { + if m != nil { + return m.Type + } + return HPOJobObjective_MINIMIZE +} + +func (m *HPOJobObjective) GetMetricName() string { + if m != nil { + return m.MetricName + } + return "" +} + +type HPOJob struct { + Strategy string `protobuf:"bytes,1,opt,name=Strategy,proto3" json:"Strategy,omitempty"` + Objective *HPOJobObjective `protobuf:"bytes,2,opt,name=Objective,proto3" json:"Objective,omitempty"` + MaxNumberOfTrainingJobs int64 `protobuf:"varint,3,opt,name=MaxNumberOfTrainingJobs,proto3" json:"MaxNumberOfTrainingJobs,omitempty"` + MaxParallelTrainingJobs int64 `protobuf:"varint,4,opt,name=MaxParallelTrainingJobs,proto3" json:"MaxParallelTrainingJobs,omitempty"` + ParameterRanges *ParameterRanges `protobuf:"bytes,5,opt,name=ParameterRanges,proto3" json:"ParameterRanges,omitempty"` + TrainingJob *TrainingJob `protobuf:"bytes,6,opt,name=TrainingJob,proto3" json:"TrainingJob,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HPOJob) Reset() { *m = HPOJob{} } +func (m *HPOJob) String() string { return proto.CompactTextString(m) } +func (*HPOJob) ProtoMessage() {} +func (*HPOJob) Descriptor() ([]byte, []int) { + return fileDescriptor_823bfe2a857513d9, []int{1} +} + +func (m *HPOJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HPOJob.Unmarshal(m, b) +} +func (m *HPOJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HPOJob.Marshal(b, m, deterministic) +} +func (m *HPOJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_HPOJob.Merge(m, src) +} +func (m *HPOJob) XXX_Size() int { + return xxx_messageInfo_HPOJob.Size(m) +} +func (m *HPOJob) XXX_DiscardUnknown() { + xxx_messageInfo_HPOJob.DiscardUnknown(m) +} + +var xxx_messageInfo_HPOJob proto.InternalMessageInfo + +func (m *HPOJob) GetStrategy() string { + if m != nil { + return m.Strategy + } + return "" +} + +func (m *HPOJob) GetObjective() *HPOJobObjective { + if m != nil { + return m.Objective + } + return nil +} + +func (m *HPOJob) GetMaxNumberOfTrainingJobs() int64 { + if m != nil { + return m.MaxNumberOfTrainingJobs + } + return 0 +} + +func (m *HPOJob) GetMaxParallelTrainingJobs() int64 { + if m != nil { + return m.MaxParallelTrainingJobs + } + return 0 +} + +func (m *HPOJob) GetParameterRanges() *ParameterRanges { + if m != nil { + return m.ParameterRanges + } + return nil +} + +func (m *HPOJob) GetTrainingJob() *TrainingJob { + if m != nil { + return m.TrainingJob + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobObjective_HPOJobObjectiveType", HPOJobObjective_HPOJobObjectiveType_name, HPOJobObjective_HPOJobObjectiveType_value) + proto.RegisterType((*HPOJobObjective)(nil), "flyteidl.plugins.sagemaker.HPOJobObjective") + proto.RegisterType((*HPOJob)(nil), "flyteidl.plugins.sagemaker.HPOJob") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/sagemaker/hpojob.proto", fileDescriptor_823bfe2a857513d9) +} + +var fileDescriptor_823bfe2a857513d9 = []byte{ + // 368 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xd1, 0x4e, 0xf2, 0x30, + 0x14, 0xc7, 0xbf, 0x7d, 0x20, 0x81, 0x62, 0xc4, 0xd4, 0x0b, 0x97, 0x5d, 0x18, 0xc2, 0x0d, 0x24, + 0xea, 0xa6, 0x10, 0x13, 0xef, 0x8c, 0x26, 0x26, 0x8e, 0x64, 0x40, 0x0a, 0x26, 0x86, 0xbb, 0x16, + 0x0f, 0x65, 0xb8, 0xad, 0x4b, 0x57, 0x8c, 0x7b, 0x00, 0x1f, 0xca, 0xb7, 0x33, 0x0e, 0x98, 0x73, + 0x01, 0x8c, 0x97, 0x67, 0xfd, 0xff, 0x7e, 0xa7, 0xdd, 0x39, 0xa8, 0x39, 0xf5, 0x62, 0x05, 0xee, + 0xb3, 0x67, 0x85, 0xde, 0x82, 0xbb, 0x41, 0x64, 0x45, 0x94, 0x83, 0x4f, 0x5f, 0x40, 0x5a, 0xb3, + 0x50, 0xcc, 0x05, 0x33, 0x43, 0x29, 0x94, 0xc0, 0xc6, 0x3a, 0x68, 0xae, 0x82, 0x66, 0x1a, 0x34, + 0x2e, 0x76, 0x48, 0x42, 0x2a, 0xa9, 0x0f, 0x0a, 0xa4, 0xa4, 0x01, 0x87, 0x68, 0x69, 0x33, 0xce, + 0x76, 0x10, 0x4a, 0x52, 0x37, 0x70, 0x03, 0x9e, 0xf6, 0x6e, 0x7c, 0x68, 0xa8, 0xf6, 0x30, 0xe8, + 0x77, 0x05, 0xeb, 0xb3, 0x39, 0x4c, 0x94, 0xfb, 0x0a, 0x78, 0x88, 0x8a, 0xa3, 0x38, 0x04, 0x5d, + 0xab, 0x6b, 0xad, 0x83, 0xf6, 0x8d, 0xb9, 0xfd, 0x7a, 0x66, 0x0e, 0xcd, 0xd7, 0x5f, 0x1a, 0x92, + 0xc8, 0xf0, 0x09, 0x42, 0x0e, 0x28, 0xe9, 0x4e, 0x7a, 0xd4, 0x07, 0xfd, 0x7f, 0x5d, 0x6b, 0x55, + 0x48, 0xe6, 0x4b, 0xe3, 0x12, 0x1d, 0x6d, 0x80, 0xf1, 0x3e, 0x2a, 0x3b, 0x76, 0xcf, 0x76, 0xec, + 0xf1, 0xfd, 0xe1, 0xbf, 0xa4, 0xba, 0x7d, 0x5a, 0x56, 0x5a, 0xe3, 0xbd, 0x80, 0x4a, 0x4b, 0x06, + 0x1b, 0xa8, 0x3c, 0x54, 0x92, 0x2a, 0xe0, 0x71, 0x72, 0xed, 0x0a, 0x49, 0x6b, 0x6c, 0xa3, 0x4a, + 0xea, 0x4c, 0x1a, 0x57, 0xdb, 0xa7, 0x7f, 0x78, 0x13, 0xf9, 0xa6, 0xf1, 0x35, 0x3a, 0x76, 0xe8, + 0x5b, 0x6f, 0xe1, 0x33, 0x90, 0xfd, 0xe9, 0x68, 0xf5, 0x37, 0xbb, 0x82, 0x45, 0x7a, 0xa1, 0xae, + 0xb5, 0x0a, 0x64, 0xdb, 0xf1, 0x8a, 0x1c, 0x50, 0x49, 0x3d, 0x0f, 0xbc, 0x1f, 0x64, 0x31, 0x25, + 0x37, 0x1d, 0xe3, 0x47, 0x54, 0x1b, 0xac, 0x07, 0x4d, 0x92, 0x41, 0xeb, 0x7b, 0xbf, 0x3f, 0x22, + 0x87, 0x90, 0xbc, 0x03, 0xdb, 0xa8, 0x9a, 0x69, 0xa3, 0x97, 0x12, 0x65, 0x73, 0x97, 0x32, 0x13, + 0x27, 0x59, 0xf6, 0xee, 0x6a, 0xdc, 0xe1, 0xae, 0x9a, 0x2d, 0x98, 0x39, 0x11, 0xbe, 0xe5, 0xc5, + 0x53, 0x65, 0xa5, 0x3b, 0xc8, 0x21, 0xb0, 0x42, 0x76, 0xce, 0x85, 0x95, 0x5f, 0x4b, 0x56, 0x4a, + 0x36, 0xb0, 0xf3, 0x19, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x80, 0x4e, 0xb4, 0x28, 0x03, 0x00, 0x00, +} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go new file mode 100644 index 000000000..f54efecde --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go @@ -0,0 +1,206 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/hpojob.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _hpojob_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on HPOJobObjective with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *HPOJobObjective) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Type + + // no validation rules for MetricName + + return nil +} + +// HPOJobObjectiveValidationError is the validation error returned by +// HPOJobObjective.Validate if the designated constraints aren't met. +type HPOJobObjectiveValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HPOJobObjectiveValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HPOJobObjectiveValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HPOJobObjectiveValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HPOJobObjectiveValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HPOJobObjectiveValidationError) ErrorName() string { return "HPOJobObjectiveValidationError" } + +// Error satisfies the builtin error interface +func (e HPOJobObjectiveValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHPOJobObjective.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HPOJobObjectiveValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HPOJobObjectiveValidationError{} + +// Validate checks the field values on HPOJob with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *HPOJob) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Strategy + + if v, ok := interface{}(m.GetObjective()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HPOJobValidationError{ + field: "Objective", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for MaxNumberOfTrainingJobs + + // no validation rules for MaxParallelTrainingJobs + + if v, ok := interface{}(m.GetParameterRanges()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HPOJobValidationError{ + field: "ParameterRanges", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTrainingJob()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HPOJobValidationError{ + field: "TrainingJob", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HPOJobValidationError is the validation error returned by HPOJob.Validate if +// the designated constraints aren't met. +type HPOJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HPOJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HPOJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HPOJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HPOJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HPOJobValidationError) ErrorName() string { return "HPOJobValidationError" } + +// Error satisfies the builtin error interface +func (e HPOJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHPOJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HPOJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HPOJobValidationError{} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go new file mode 100644 index 000000000..871248304 --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go @@ -0,0 +1,383 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/parameterranges.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HyperparameterScalingType int32 + +const ( + HyperparameterScalingType_AUTO HyperparameterScalingType = 0 + HyperparameterScalingType_LINEAR HyperparameterScalingType = 1 + HyperparameterScalingType_LOGARITHMIC HyperparameterScalingType = 2 + HyperparameterScalingType_REVERSELOGARITHMIC HyperparameterScalingType = 3 +) + +var HyperparameterScalingType_name = map[int32]string{ + 0: "AUTO", + 1: "LINEAR", + 2: "LOGARITHMIC", + 3: "REVERSELOGARITHMIC", +} + +var HyperparameterScalingType_value = map[string]int32{ + "AUTO": 0, + "LINEAR": 1, + "LOGARITHMIC": 2, + "REVERSELOGARITHMIC": 3, +} + +func (x HyperparameterScalingType) String() string { + return proto.EnumName(HyperparameterScalingType_name, int32(x)) +} + +func (HyperparameterScalingType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_d87fa566d23b1e82, []int{0} +} + +type ContinuousParameterRange struct { + MaxValue float64 `protobuf:"fixed64,1,opt,name=MaxValue,proto3" json:"MaxValue,omitempty"` + MinValue float64 `protobuf:"fixed64,2,opt,name=MinValue,proto3" json:"MinValue,omitempty"` + ScalingType HyperparameterScalingType `protobuf:"varint,3,opt,name=ScalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"ScalingType,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContinuousParameterRange) Reset() { *m = ContinuousParameterRange{} } +func (m *ContinuousParameterRange) String() string { return proto.CompactTextString(m) } +func (*ContinuousParameterRange) ProtoMessage() {} +func (*ContinuousParameterRange) Descriptor() ([]byte, []int) { + return fileDescriptor_d87fa566d23b1e82, []int{0} +} + +func (m *ContinuousParameterRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContinuousParameterRange.Unmarshal(m, b) +} +func (m *ContinuousParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContinuousParameterRange.Marshal(b, m, deterministic) +} +func (m *ContinuousParameterRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContinuousParameterRange.Merge(m, src) +} +func (m *ContinuousParameterRange) XXX_Size() int { + return xxx_messageInfo_ContinuousParameterRange.Size(m) +} +func (m *ContinuousParameterRange) XXX_DiscardUnknown() { + xxx_messageInfo_ContinuousParameterRange.DiscardUnknown(m) +} + +var xxx_messageInfo_ContinuousParameterRange proto.InternalMessageInfo + +func (m *ContinuousParameterRange) GetMaxValue() float64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func (m *ContinuousParameterRange) GetMinValue() float64 { + if m != nil { + return m.MinValue + } + return 0 +} + +func (m *ContinuousParameterRange) GetScalingType() HyperparameterScalingType { + if m != nil { + return m.ScalingType + } + return HyperparameterScalingType_AUTO +} + +type IntegerParameterRange struct { + MaxValue float32 `protobuf:"fixed32,1,opt,name=MaxValue,proto3" json:"MaxValue,omitempty"` + MinValue float32 `protobuf:"fixed32,2,opt,name=MinValue,proto3" json:"MinValue,omitempty"` + ScalingType HyperparameterScalingType `protobuf:"varint,3,opt,name=ScalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"ScalingType,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IntegerParameterRange) Reset() { *m = IntegerParameterRange{} } +func (m *IntegerParameterRange) String() string { return proto.CompactTextString(m) } +func (*IntegerParameterRange) ProtoMessage() {} +func (*IntegerParameterRange) Descriptor() ([]byte, []int) { + return fileDescriptor_d87fa566d23b1e82, []int{1} +} + +func (m *IntegerParameterRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IntegerParameterRange.Unmarshal(m, b) +} +func (m *IntegerParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IntegerParameterRange.Marshal(b, m, deterministic) +} +func (m *IntegerParameterRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_IntegerParameterRange.Merge(m, src) +} +func (m *IntegerParameterRange) XXX_Size() int { + return xxx_messageInfo_IntegerParameterRange.Size(m) +} +func (m *IntegerParameterRange) XXX_DiscardUnknown() { + xxx_messageInfo_IntegerParameterRange.DiscardUnknown(m) +} + +var xxx_messageInfo_IntegerParameterRange proto.InternalMessageInfo + +func (m *IntegerParameterRange) GetMaxValue() float32 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func (m *IntegerParameterRange) GetMinValue() float32 { + if m != nil { + return m.MinValue + } + return 0 +} + +func (m *IntegerParameterRange) GetScalingType() HyperparameterScalingType { + if m != nil { + return m.ScalingType + } + return HyperparameterScalingType_AUTO +} + +type CategoricalParameterRange struct { + Values []string `protobuf:"bytes,1,rep,name=Values,proto3" json:"Values,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CategoricalParameterRange) Reset() { *m = CategoricalParameterRange{} } +func (m *CategoricalParameterRange) String() string { return proto.CompactTextString(m) } +func (*CategoricalParameterRange) ProtoMessage() {} +func (*CategoricalParameterRange) Descriptor() ([]byte, []int) { + return fileDescriptor_d87fa566d23b1e82, []int{2} +} + +func (m *CategoricalParameterRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CategoricalParameterRange.Unmarshal(m, b) +} +func (m *CategoricalParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CategoricalParameterRange.Marshal(b, m, deterministic) +} +func (m *CategoricalParameterRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_CategoricalParameterRange.Merge(m, src) +} +func (m *CategoricalParameterRange) XXX_Size() int { + return xxx_messageInfo_CategoricalParameterRange.Size(m) +} +func (m *CategoricalParameterRange) XXX_DiscardUnknown() { + xxx_messageInfo_CategoricalParameterRange.DiscardUnknown(m) +} + +var xxx_messageInfo_CategoricalParameterRange proto.InternalMessageInfo + +func (m *CategoricalParameterRange) GetValues() []string { + if m != nil { + return m.Values + } + return nil +} + +type ParameterRangeOneOf struct { + // Types that are valid to be assigned to ParameterRangeTypes: + // *ParameterRangeOneOf_ContinuousParameterRange + // *ParameterRangeOneOf_IntegerParameterRange + // *ParameterRangeOneOf_CategoricalParameterRange + ParameterRangeTypes isParameterRangeOneOf_ParameterRangeTypes `protobuf_oneof:"ParameterRangeTypes"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ParameterRangeOneOf) Reset() { *m = ParameterRangeOneOf{} } +func (m *ParameterRangeOneOf) String() string { return proto.CompactTextString(m) } +func (*ParameterRangeOneOf) ProtoMessage() {} +func (*ParameterRangeOneOf) Descriptor() ([]byte, []int) { + return fileDescriptor_d87fa566d23b1e82, []int{3} +} + +func (m *ParameterRangeOneOf) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ParameterRangeOneOf.Unmarshal(m, b) +} +func (m *ParameterRangeOneOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ParameterRangeOneOf.Marshal(b, m, deterministic) +} +func (m *ParameterRangeOneOf) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParameterRangeOneOf.Merge(m, src) +} +func (m *ParameterRangeOneOf) XXX_Size() int { + return xxx_messageInfo_ParameterRangeOneOf.Size(m) +} +func (m *ParameterRangeOneOf) XXX_DiscardUnknown() { + xxx_messageInfo_ParameterRangeOneOf.DiscardUnknown(m) +} + +var xxx_messageInfo_ParameterRangeOneOf proto.InternalMessageInfo + +type isParameterRangeOneOf_ParameterRangeTypes interface { + isParameterRangeOneOf_ParameterRangeTypes() +} + +type ParameterRangeOneOf_ContinuousParameterRange struct { + ContinuousParameterRange *ContinuousParameterRange `protobuf:"bytes,1,opt,name=ContinuousParameterRange,proto3,oneof"` +} + +type ParameterRangeOneOf_IntegerParameterRange struct { + IntegerParameterRange *IntegerParameterRange `protobuf:"bytes,2,opt,name=IntegerParameterRange,proto3,oneof"` +} + +type ParameterRangeOneOf_CategoricalParameterRange struct { + CategoricalParameterRange *CategoricalParameterRange `protobuf:"bytes,3,opt,name=CategoricalParameterRange,proto3,oneof"` +} + +func (*ParameterRangeOneOf_ContinuousParameterRange) isParameterRangeOneOf_ParameterRangeTypes() {} + +func (*ParameterRangeOneOf_IntegerParameterRange) isParameterRangeOneOf_ParameterRangeTypes() {} + +func (*ParameterRangeOneOf_CategoricalParameterRange) isParameterRangeOneOf_ParameterRangeTypes() {} + +func (m *ParameterRangeOneOf) GetParameterRangeTypes() isParameterRangeOneOf_ParameterRangeTypes { + if m != nil { + return m.ParameterRangeTypes + } + return nil +} + +func (m *ParameterRangeOneOf) GetContinuousParameterRange() *ContinuousParameterRange { + if x, ok := m.GetParameterRangeTypes().(*ParameterRangeOneOf_ContinuousParameterRange); ok { + return x.ContinuousParameterRange + } + return nil +} + +func (m *ParameterRangeOneOf) GetIntegerParameterRange() *IntegerParameterRange { + if x, ok := m.GetParameterRangeTypes().(*ParameterRangeOneOf_IntegerParameterRange); ok { + return x.IntegerParameterRange + } + return nil +} + +func (m *ParameterRangeOneOf) GetCategoricalParameterRange() *CategoricalParameterRange { + if x, ok := m.GetParameterRangeTypes().(*ParameterRangeOneOf_CategoricalParameterRange); ok { + return x.CategoricalParameterRange + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ParameterRangeOneOf) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ParameterRangeOneOf_ContinuousParameterRange)(nil), + (*ParameterRangeOneOf_IntegerParameterRange)(nil), + (*ParameterRangeOneOf_CategoricalParameterRange)(nil), + } +} + +type ParameterRanges struct { + ParameterRangeMap map[string]*ParameterRangeOneOf `protobuf:"bytes,1,rep,name=ParameterRangeMap,proto3" json:"ParameterRangeMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ParameterRanges) Reset() { *m = ParameterRanges{} } +func (m *ParameterRanges) String() string { return proto.CompactTextString(m) } +func (*ParameterRanges) ProtoMessage() {} +func (*ParameterRanges) Descriptor() ([]byte, []int) { + return fileDescriptor_d87fa566d23b1e82, []int{4} +} + +func (m *ParameterRanges) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ParameterRanges.Unmarshal(m, b) +} +func (m *ParameterRanges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ParameterRanges.Marshal(b, m, deterministic) +} +func (m *ParameterRanges) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParameterRanges.Merge(m, src) +} +func (m *ParameterRanges) XXX_Size() int { + return xxx_messageInfo_ParameterRanges.Size(m) +} +func (m *ParameterRanges) XXX_DiscardUnknown() { + xxx_messageInfo_ParameterRanges.DiscardUnknown(m) +} + +var xxx_messageInfo_ParameterRanges proto.InternalMessageInfo + +func (m *ParameterRanges) GetParameterRangeMap() map[string]*ParameterRangeOneOf { + if m != nil { + return m.ParameterRangeMap + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterScalingType", HyperparameterScalingType_name, HyperparameterScalingType_value) + proto.RegisterType((*ContinuousParameterRange)(nil), "flyteidl.plugins.sagemaker.ContinuousParameterRange") + proto.RegisterType((*IntegerParameterRange)(nil), "flyteidl.plugins.sagemaker.IntegerParameterRange") + proto.RegisterType((*CategoricalParameterRange)(nil), "flyteidl.plugins.sagemaker.CategoricalParameterRange") + proto.RegisterType((*ParameterRangeOneOf)(nil), "flyteidl.plugins.sagemaker.ParameterRangeOneOf") + proto.RegisterType((*ParameterRanges)(nil), "flyteidl.plugins.sagemaker.ParameterRanges") + proto.RegisterMapType((map[string]*ParameterRangeOneOf)(nil), "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/sagemaker/parameterranges.proto", fileDescriptor_d87fa566d23b1e82) +} + +var fileDescriptor_d87fa566d23b1e82 = []byte{ + // 466 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x41, 0x6f, 0xd3, 0x30, + 0x14, 0xc7, 0xeb, 0x04, 0xaa, 0xed, 0x45, 0x62, 0xc5, 0x68, 0x55, 0xd7, 0x53, 0xd5, 0x53, 0x85, + 0x44, 0x02, 0x29, 0x93, 0x10, 0xb7, 0xb6, 0x8a, 0x48, 0xa5, 0x95, 0x22, 0xaf, 0x0c, 0x69, 0x37, + 0xb7, 0xb8, 0x26, 0x5a, 0xea, 0x44, 0x8e, 0x83, 0xc8, 0x95, 0x4f, 0x83, 0xc4, 0x37, 0xe4, 0x84, + 0xea, 0x75, 0x51, 0x9b, 0xcd, 0x81, 0xd3, 0x6e, 0xf1, 0x7b, 0xfe, 0x3d, 0xff, 0xf3, 0xfe, 0x4f, + 0x0f, 0x5e, 0xaf, 0xe3, 0x42, 0xb1, 0xe8, 0x6b, 0xec, 0xa5, 0x71, 0xce, 0x23, 0x91, 0x79, 0x19, + 0xe5, 0x6c, 0x43, 0x6f, 0x98, 0xf4, 0x52, 0x2a, 0xe9, 0x86, 0x29, 0x26, 0x25, 0x15, 0x9c, 0x65, + 0x6e, 0x2a, 0x13, 0x95, 0xe0, 0xee, 0x1d, 0xe1, 0xee, 0x08, 0xb7, 0x24, 0xfa, 0xbf, 0x11, 0x74, + 0x26, 0x89, 0x50, 0x91, 0xc8, 0x93, 0x3c, 0xfb, 0x74, 0xc7, 0x93, 0x2d, 0x8f, 0xbb, 0x70, 0x34, + 0xa3, 0x3f, 0xae, 0x68, 0x9c, 0xb3, 0x0e, 0xea, 0xa1, 0x01, 0x22, 0xe5, 0x59, 0xe7, 0x22, 0x71, + 0x9b, 0xb3, 0x76, 0xb9, 0xdd, 0x19, 0x7f, 0x01, 0xe7, 0x72, 0x45, 0xe3, 0x48, 0xf0, 0x45, 0x91, + 0xb2, 0x8e, 0xdd, 0x43, 0x83, 0x67, 0xfe, 0xb9, 0x6b, 0x96, 0xe1, 0x86, 0x45, 0xca, 0x64, 0xa9, + 0x7e, 0x0f, 0x26, 0xfb, 0x95, 0xfa, 0xbf, 0x10, 0x9c, 0x4e, 0x85, 0x62, 0x9c, 0xc9, 0x7f, 0x48, + 0xb5, 0x6a, 0xa4, 0x5a, 0x8f, 0x21, 0x75, 0x08, 0x67, 0x13, 0xaa, 0x18, 0x4f, 0x64, 0xb4, 0xa2, + 0x71, 0x45, 0x6d, 0x1b, 0x9a, 0xfa, 0xf9, 0xac, 0x83, 0x7a, 0xf6, 0xe0, 0x98, 0xec, 0x4e, 0xfd, + 0x9f, 0x36, 0xbc, 0x38, 0xbc, 0x3a, 0x17, 0x6c, 0xbe, 0xc6, 0xd2, 0x6c, 0x92, 0xfe, 0x5b, 0xc7, + 0x7f, 0x5b, 0x27, 0xd9, 0xc4, 0x86, 0x0d, 0x62, 0x36, 0x3f, 0x32, 0xb4, 0x5a, 0xb7, 0xd0, 0xf1, + 0xdf, 0xd4, 0x3d, 0xf8, 0x20, 0x18, 0x36, 0x88, 0xc1, 0xbc, 0xbc, 0xa6, 0x57, 0xda, 0x12, 0xa7, + 0xde, 0x12, 0x23, 0x1c, 0x36, 0x88, 0xb9, 0xf2, 0xf8, 0xb4, 0xda, 0xec, 0xad, 0x71, 0x59, 0xff, + 0x0f, 0x82, 0x93, 0xc3, 0x78, 0x86, 0x53, 0x78, 0x7e, 0x18, 0x9a, 0xd1, 0x54, 0x7b, 0xe7, 0xf8, + 0xe3, 0x3a, 0x65, 0x95, 0x3a, 0xee, 0xbd, 0x22, 0x81, 0x50, 0xb2, 0x20, 0xf7, 0x8b, 0x77, 0x73, + 0x68, 0x3f, 0x7c, 0x19, 0xb7, 0xc0, 0xbe, 0x61, 0x85, 0xf6, 0xfd, 0x98, 0x6c, 0x3f, 0x71, 0x00, + 0x4f, 0xbf, 0x97, 0xd3, 0xed, 0xf8, 0xde, 0xff, 0x2b, 0xd2, 0xe3, 0x45, 0x6e, 0xe9, 0xf7, 0xd6, + 0x3b, 0xf4, 0xf2, 0x1a, 0xce, 0x8c, 0x03, 0x8e, 0x8f, 0xe0, 0xc9, 0xe8, 0xf3, 0x62, 0xde, 0x6a, + 0x60, 0x80, 0xe6, 0xc5, 0xf4, 0x63, 0x30, 0x22, 0x2d, 0x84, 0x4f, 0xc0, 0xb9, 0x98, 0x7f, 0x18, + 0x91, 0xe9, 0x22, 0x9c, 0x4d, 0x27, 0x2d, 0x0b, 0xb7, 0x01, 0x93, 0xe0, 0x2a, 0x20, 0x97, 0xc1, + 0x7e, 0xdc, 0x1e, 0x9f, 0x5f, 0x0f, 0x79, 0xa4, 0xbe, 0xe5, 0x4b, 0x77, 0x95, 0x6c, 0xbc, 0xb8, + 0x58, 0x2b, 0xaf, 0xdc, 0x65, 0x9c, 0x09, 0x2f, 0x5d, 0xbe, 0xe2, 0x89, 0x57, 0x5d, 0x6f, 0xcb, + 0xa6, 0xde, 0x62, 0xc3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x31, 0xc3, 0x37, 0x50, 0xf9, 0x04, + 0x00, 0x00, +} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go new file mode 100644 index 000000000..0999a4afe --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go @@ -0,0 +1,439 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/parameterranges.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _parameterranges_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ContinuousParameterRange with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ContinuousParameterRange) Validate() error { + if m == nil { + return nil + } + + // no validation rules for MaxValue + + // no validation rules for MinValue + + // no validation rules for ScalingType + + return nil +} + +// ContinuousParameterRangeValidationError is the validation error returned by +// ContinuousParameterRange.Validate if the designated constraints aren't met. +type ContinuousParameterRangeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ContinuousParameterRangeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ContinuousParameterRangeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ContinuousParameterRangeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ContinuousParameterRangeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ContinuousParameterRangeValidationError) ErrorName() string { + return "ContinuousParameterRangeValidationError" +} + +// Error satisfies the builtin error interface +func (e ContinuousParameterRangeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sContinuousParameterRange.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ContinuousParameterRangeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ContinuousParameterRangeValidationError{} + +// Validate checks the field values on IntegerParameterRange with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *IntegerParameterRange) Validate() error { + if m == nil { + return nil + } + + // no validation rules for MaxValue + + // no validation rules for MinValue + + // no validation rules for ScalingType + + return nil +} + +// IntegerParameterRangeValidationError is the validation error returned by +// IntegerParameterRange.Validate if the designated constraints aren't met. +type IntegerParameterRangeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IntegerParameterRangeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IntegerParameterRangeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IntegerParameterRangeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IntegerParameterRangeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IntegerParameterRangeValidationError) ErrorName() string { + return "IntegerParameterRangeValidationError" +} + +// Error satisfies the builtin error interface +func (e IntegerParameterRangeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIntegerParameterRange.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IntegerParameterRangeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IntegerParameterRangeValidationError{} + +// Validate checks the field values on CategoricalParameterRange with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CategoricalParameterRange) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// CategoricalParameterRangeValidationError is the validation error returned by +// CategoricalParameterRange.Validate if the designated constraints aren't met. +type CategoricalParameterRangeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CategoricalParameterRangeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CategoricalParameterRangeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CategoricalParameterRangeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CategoricalParameterRangeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CategoricalParameterRangeValidationError) ErrorName() string { + return "CategoricalParameterRangeValidationError" +} + +// Error satisfies the builtin error interface +func (e CategoricalParameterRangeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCategoricalParameterRange.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CategoricalParameterRangeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CategoricalParameterRangeValidationError{} + +// Validate checks the field values on ParameterRangeOneOf with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ParameterRangeOneOf) Validate() error { + if m == nil { + return nil + } + + switch m.ParameterRangeTypes.(type) { + + case *ParameterRangeOneOf_ContinuousParameterRange: + + if v, ok := interface{}(m.GetContinuousParameterRange()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangeOneOfValidationError{ + field: "ContinuousParameterRange", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ParameterRangeOneOf_IntegerParameterRange: + + if v, ok := interface{}(m.GetIntegerParameterRange()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangeOneOfValidationError{ + field: "IntegerParameterRange", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ParameterRangeOneOf_CategoricalParameterRange: + + if v, ok := interface{}(m.GetCategoricalParameterRange()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangeOneOfValidationError{ + field: "CategoricalParameterRange", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ParameterRangeOneOfValidationError is the validation error returned by +// ParameterRangeOneOf.Validate if the designated constraints aren't met. +type ParameterRangeOneOfValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParameterRangeOneOfValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParameterRangeOneOfValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParameterRangeOneOfValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParameterRangeOneOfValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParameterRangeOneOfValidationError) ErrorName() string { + return "ParameterRangeOneOfValidationError" +} + +// Error satisfies the builtin error interface +func (e ParameterRangeOneOfValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParameterRangeOneOf.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParameterRangeOneOfValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParameterRangeOneOfValidationError{} + +// Validate checks the field values on ParameterRanges with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ParameterRanges) Validate() error { + if m == nil { + return nil + } + + for key, val := range m.GetParameterRangeMap() { + _ = val + + // no validation rules for ParameterRangeMap[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangesValidationError{ + field: fmt.Sprintf("ParameterRangeMap[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ParameterRangesValidationError is the validation error returned by +// ParameterRanges.Validate if the designated constraints aren't met. +type ParameterRangesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParameterRangesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParameterRangesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParameterRangesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParameterRangesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParameterRangesValidationError) ErrorName() string { return "ParameterRangesValidationError" } + +// Error satisfies the builtin error interface +func (e ParameterRangesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParameterRanges.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParameterRangesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParameterRangesValidationError{} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.go deleted file mode 100644 index da1c88061..000000000 --- a/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.go +++ /dev/null @@ -1,874 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/sagemaker.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type HyperparameterScalingType int32 - -const ( - HyperparameterScalingType_AUTO HyperparameterScalingType = 0 - HyperparameterScalingType_LINEAR HyperparameterScalingType = 1 - HyperparameterScalingType_LOGARITHMIC HyperparameterScalingType = 2 - HyperparameterScalingType_REVERSELOGARITHMIC HyperparameterScalingType = 3 -) - -var HyperparameterScalingType_name = map[int32]string{ - 0: "AUTO", - 1: "LINEAR", - 2: "LOGARITHMIC", - 3: "REVERSELOGARITHMIC", -} - -var HyperparameterScalingType_value = map[string]int32{ - "AUTO": 0, - "LINEAR": 1, - "LOGARITHMIC": 2, - "REVERSELOGARITHMIC": 3, -} - -func (x HyperparameterScalingType) String() string { - return proto.EnumName(HyperparameterScalingType_name, int32(x)) -} - -func (HyperparameterScalingType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{0} -} - -type HPOJobObjective_HPOJobObjectiveType int32 - -const ( - HPOJobObjective_MINIMIZE HPOJobObjective_HPOJobObjectiveType = 0 - HPOJobObjective_MAXIMIZE HPOJobObjective_HPOJobObjectiveType = 1 -) - -var HPOJobObjective_HPOJobObjectiveType_name = map[int32]string{ - 0: "MINIMIZE", - 1: "MAXIMIZE", -} - -var HPOJobObjective_HPOJobObjectiveType_value = map[string]int32{ - "MINIMIZE": 0, - "MAXIMIZE": 1, -} - -func (x HPOJobObjective_HPOJobObjectiveType) String() string { - return proto.EnumName(HPOJobObjective_HPOJobObjectiveType_name, int32(x)) -} - -func (HPOJobObjective_HPOJobObjectiveType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{9, 0} -} - -type ContinuousParameterRange struct { - Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` - MaxValue float64 `protobuf:"fixed64,2,opt,name=MaxValue,proto3" json:"MaxValue,omitempty"` - MinValue float64 `protobuf:"fixed64,3,opt,name=MinValue,proto3" json:"MinValue,omitempty"` - ScalingType HyperparameterScalingType `protobuf:"varint,4,opt,name=ScalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"ScalingType,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContinuousParameterRange) Reset() { *m = ContinuousParameterRange{} } -func (m *ContinuousParameterRange) String() string { return proto.CompactTextString(m) } -func (*ContinuousParameterRange) ProtoMessage() {} -func (*ContinuousParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{0} -} - -func (m *ContinuousParameterRange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContinuousParameterRange.Unmarshal(m, b) -} -func (m *ContinuousParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContinuousParameterRange.Marshal(b, m, deterministic) -} -func (m *ContinuousParameterRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContinuousParameterRange.Merge(m, src) -} -func (m *ContinuousParameterRange) XXX_Size() int { - return xxx_messageInfo_ContinuousParameterRange.Size(m) -} -func (m *ContinuousParameterRange) XXX_DiscardUnknown() { - xxx_messageInfo_ContinuousParameterRange.DiscardUnknown(m) -} - -var xxx_messageInfo_ContinuousParameterRange proto.InternalMessageInfo - -func (m *ContinuousParameterRange) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *ContinuousParameterRange) GetMaxValue() float64 { - if m != nil { - return m.MaxValue - } - return 0 -} - -func (m *ContinuousParameterRange) GetMinValue() float64 { - if m != nil { - return m.MinValue - } - return 0 -} - -func (m *ContinuousParameterRange) GetScalingType() HyperparameterScalingType { - if m != nil { - return m.ScalingType - } - return HyperparameterScalingType_AUTO -} - -type IntegerParameterRange struct { - Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` - MaxValue float32 `protobuf:"fixed32,2,opt,name=MaxValue,proto3" json:"MaxValue,omitempty"` - MinValue float32 `protobuf:"fixed32,3,opt,name=MinValue,proto3" json:"MinValue,omitempty"` - ScalingType HyperparameterScalingType `protobuf:"varint,4,opt,name=ScalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"ScalingType,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IntegerParameterRange) Reset() { *m = IntegerParameterRange{} } -func (m *IntegerParameterRange) String() string { return proto.CompactTextString(m) } -func (*IntegerParameterRange) ProtoMessage() {} -func (*IntegerParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{1} -} - -func (m *IntegerParameterRange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IntegerParameterRange.Unmarshal(m, b) -} -func (m *IntegerParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IntegerParameterRange.Marshal(b, m, deterministic) -} -func (m *IntegerParameterRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_IntegerParameterRange.Merge(m, src) -} -func (m *IntegerParameterRange) XXX_Size() int { - return xxx_messageInfo_IntegerParameterRange.Size(m) -} -func (m *IntegerParameterRange) XXX_DiscardUnknown() { - xxx_messageInfo_IntegerParameterRange.DiscardUnknown(m) -} - -var xxx_messageInfo_IntegerParameterRange proto.InternalMessageInfo - -func (m *IntegerParameterRange) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *IntegerParameterRange) GetMaxValue() float32 { - if m != nil { - return m.MaxValue - } - return 0 -} - -func (m *IntegerParameterRange) GetMinValue() float32 { - if m != nil { - return m.MinValue - } - return 0 -} - -func (m *IntegerParameterRange) GetScalingType() HyperparameterScalingType { - if m != nil { - return m.ScalingType - } - return HyperparameterScalingType_AUTO -} - -type CategoricalParameterRange struct { - Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` - Values []string `protobuf:"bytes,2,rep,name=Values,proto3" json:"Values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CategoricalParameterRange) Reset() { *m = CategoricalParameterRange{} } -func (m *CategoricalParameterRange) String() string { return proto.CompactTextString(m) } -func (*CategoricalParameterRange) ProtoMessage() {} -func (*CategoricalParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{2} -} - -func (m *CategoricalParameterRange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CategoricalParameterRange.Unmarshal(m, b) -} -func (m *CategoricalParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CategoricalParameterRange.Marshal(b, m, deterministic) -} -func (m *CategoricalParameterRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_CategoricalParameterRange.Merge(m, src) -} -func (m *CategoricalParameterRange) XXX_Size() int { - return xxx_messageInfo_CategoricalParameterRange.Size(m) -} -func (m *CategoricalParameterRange) XXX_DiscardUnknown() { - xxx_messageInfo_CategoricalParameterRange.DiscardUnknown(m) -} - -var xxx_messageInfo_CategoricalParameterRange proto.InternalMessageInfo - -func (m *CategoricalParameterRange) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *CategoricalParameterRange) GetValues() []string { - if m != nil { - return m.Values - } - return nil -} - -type ParameterRanges struct { - ContinuousParameterRanges []*ContinuousParameterRange `protobuf:"bytes,1,rep,name=ContinuousParameterRanges,proto3" json:"ContinuousParameterRanges,omitempty"` - IntegerParameterRanges []*IntegerParameterRange `protobuf:"bytes,2,rep,name=IntegerParameterRanges,proto3" json:"IntegerParameterRanges,omitempty"` - CategoricalParameterRanges []*CategoricalParameterRange `protobuf:"bytes,3,rep,name=CategoricalParameterRanges,proto3" json:"CategoricalParameterRanges,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ParameterRanges) Reset() { *m = ParameterRanges{} } -func (m *ParameterRanges) String() string { return proto.CompactTextString(m) } -func (*ParameterRanges) ProtoMessage() {} -func (*ParameterRanges) Descriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{3} -} - -func (m *ParameterRanges) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ParameterRanges.Unmarshal(m, b) -} -func (m *ParameterRanges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ParameterRanges.Marshal(b, m, deterministic) -} -func (m *ParameterRanges) XXX_Merge(src proto.Message) { - xxx_messageInfo_ParameterRanges.Merge(m, src) -} -func (m *ParameterRanges) XXX_Size() int { - return xxx_messageInfo_ParameterRanges.Size(m) -} -func (m *ParameterRanges) XXX_DiscardUnknown() { - xxx_messageInfo_ParameterRanges.DiscardUnknown(m) -} - -var xxx_messageInfo_ParameterRanges proto.InternalMessageInfo - -func (m *ParameterRanges) GetContinuousParameterRanges() []*ContinuousParameterRange { - if m != nil { - return m.ContinuousParameterRanges - } - return nil -} - -func (m *ParameterRanges) GetIntegerParameterRanges() []*IntegerParameterRange { - if m != nil { - return m.IntegerParameterRanges - } - return nil -} - -func (m *ParameterRanges) GetCategoricalParameterRanges() []*CategoricalParameterRange { - if m != nil { - return m.CategoricalParameterRanges - } - return nil -} - -type AlgorithmSpecification struct { - TrainingImage string `protobuf:"bytes,1,opt,name=TrainingImage,proto3" json:"TrainingImage,omitempty"` - TrainingInputMode string `protobuf:"bytes,2,opt,name=TrainingInputMode,proto3" json:"TrainingInputMode,omitempty"` - AlgorithmName string `protobuf:"bytes,3,opt,name=AlgorithmName,proto3" json:"AlgorithmName,omitempty"` - MetricDefinitions []*AlgorithmSpecification_MetricDefinition `protobuf:"bytes,4,rep,name=MetricDefinitions,proto3" json:"MetricDefinitions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AlgorithmSpecification) Reset() { *m = AlgorithmSpecification{} } -func (m *AlgorithmSpecification) String() string { return proto.CompactTextString(m) } -func (*AlgorithmSpecification) ProtoMessage() {} -func (*AlgorithmSpecification) Descriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{4} -} - -func (m *AlgorithmSpecification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AlgorithmSpecification.Unmarshal(m, b) -} -func (m *AlgorithmSpecification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AlgorithmSpecification.Marshal(b, m, deterministic) -} -func (m *AlgorithmSpecification) XXX_Merge(src proto.Message) { - xxx_messageInfo_AlgorithmSpecification.Merge(m, src) -} -func (m *AlgorithmSpecification) XXX_Size() int { - return xxx_messageInfo_AlgorithmSpecification.Size(m) -} -func (m *AlgorithmSpecification) XXX_DiscardUnknown() { - xxx_messageInfo_AlgorithmSpecification.DiscardUnknown(m) -} - -var xxx_messageInfo_AlgorithmSpecification proto.InternalMessageInfo - -func (m *AlgorithmSpecification) GetTrainingImage() string { - if m != nil { - return m.TrainingImage - } - return "" -} - -func (m *AlgorithmSpecification) GetTrainingInputMode() string { - if m != nil { - return m.TrainingInputMode - } - return "" -} - -func (m *AlgorithmSpecification) GetAlgorithmName() string { - if m != nil { - return m.AlgorithmName - } - return "" -} - -func (m *AlgorithmSpecification) GetMetricDefinitions() []*AlgorithmSpecification_MetricDefinition { - if m != nil { - return m.MetricDefinitions - } - return nil -} - -type AlgorithmSpecification_MetricDefinition struct { - Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` - Regex string `protobuf:"bytes,2,opt,name=Regex,proto3" json:"Regex,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AlgorithmSpecification_MetricDefinition) Reset() { - *m = AlgorithmSpecification_MetricDefinition{} -} -func (m *AlgorithmSpecification_MetricDefinition) String() string { return proto.CompactTextString(m) } -func (*AlgorithmSpecification_MetricDefinition) ProtoMessage() {} -func (*AlgorithmSpecification_MetricDefinition) Descriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{4, 0} -} - -func (m *AlgorithmSpecification_MetricDefinition) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Unmarshal(m, b) -} -func (m *AlgorithmSpecification_MetricDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Marshal(b, m, deterministic) -} -func (m *AlgorithmSpecification_MetricDefinition) XXX_Merge(src proto.Message) { - xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Merge(m, src) -} -func (m *AlgorithmSpecification_MetricDefinition) XXX_Size() int { - return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Size(m) -} -func (m *AlgorithmSpecification_MetricDefinition) XXX_DiscardUnknown() { - xxx_messageInfo_AlgorithmSpecification_MetricDefinition.DiscardUnknown(m) -} - -var xxx_messageInfo_AlgorithmSpecification_MetricDefinition proto.InternalMessageInfo - -func (m *AlgorithmSpecification_MetricDefinition) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *AlgorithmSpecification_MetricDefinition) GetRegex() string { - if m != nil { - return m.Regex - } - return "" -} - -type ResourceConfig struct { - InstanceType string `protobuf:"bytes,1,opt,name=InstanceType,proto3" json:"InstanceType,omitempty"` - InstanceCount int64 `protobuf:"varint,2,opt,name=InstanceCount,proto3" json:"InstanceCount,omitempty"` - VolumeSizeInGB int64 `protobuf:"varint,3,opt,name=VolumeSizeInGB,proto3" json:"VolumeSizeInGB,omitempty"` - VolumeKmsKeyId string `protobuf:"bytes,4,opt,name=VolumeKmsKeyId,proto3" json:"VolumeKmsKeyId,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResourceConfig) Reset() { *m = ResourceConfig{} } -func (m *ResourceConfig) String() string { return proto.CompactTextString(m) } -func (*ResourceConfig) ProtoMessage() {} -func (*ResourceConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{5} -} - -func (m *ResourceConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResourceConfig.Unmarshal(m, b) -} -func (m *ResourceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResourceConfig.Marshal(b, m, deterministic) -} -func (m *ResourceConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceConfig.Merge(m, src) -} -func (m *ResourceConfig) XXX_Size() int { - return xxx_messageInfo_ResourceConfig.Size(m) -} -func (m *ResourceConfig) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceConfig proto.InternalMessageInfo - -func (m *ResourceConfig) GetInstanceType() string { - if m != nil { - return m.InstanceType - } - return "" -} - -func (m *ResourceConfig) GetInstanceCount() int64 { - if m != nil { - return m.InstanceCount - } - return 0 -} - -func (m *ResourceConfig) GetVolumeSizeInGB() int64 { - if m != nil { - return m.VolumeSizeInGB - } - return 0 -} - -func (m *ResourceConfig) GetVolumeKmsKeyId() string { - if m != nil { - return m.VolumeKmsKeyId - } - return "" -} - -type StoppingCondition struct { - MaxRuntimeInSeconds int64 `protobuf:"varint,1,opt,name=MaxRuntimeInSeconds,proto3" json:"MaxRuntimeInSeconds,omitempty"` - MaxWaitTimeInSeconds int64 `protobuf:"varint,2,opt,name=MaxWaitTimeInSeconds,proto3" json:"MaxWaitTimeInSeconds,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoppingCondition) Reset() { *m = StoppingCondition{} } -func (m *StoppingCondition) String() string { return proto.CompactTextString(m) } -func (*StoppingCondition) ProtoMessage() {} -func (*StoppingCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{6} -} - -func (m *StoppingCondition) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StoppingCondition.Unmarshal(m, b) -} -func (m *StoppingCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StoppingCondition.Marshal(b, m, deterministic) -} -func (m *StoppingCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoppingCondition.Merge(m, src) -} -func (m *StoppingCondition) XXX_Size() int { - return xxx_messageInfo_StoppingCondition.Size(m) -} -func (m *StoppingCondition) XXX_DiscardUnknown() { - xxx_messageInfo_StoppingCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_StoppingCondition proto.InternalMessageInfo - -func (m *StoppingCondition) GetMaxRuntimeInSeconds() int64 { - if m != nil { - return m.MaxRuntimeInSeconds - } - return 0 -} - -func (m *StoppingCondition) GetMaxWaitTimeInSeconds() int64 { - if m != nil { - return m.MaxWaitTimeInSeconds - } - return 0 -} - -type VpcConfig struct { - SecurityGroupIds []string `protobuf:"bytes,1,rep,name=SecurityGroupIds,proto3" json:"SecurityGroupIds,omitempty"` - Subnets []string `protobuf:"bytes,2,rep,name=Subnets,proto3" json:"Subnets,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VpcConfig) Reset() { *m = VpcConfig{} } -func (m *VpcConfig) String() string { return proto.CompactTextString(m) } -func (*VpcConfig) ProtoMessage() {} -func (*VpcConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{7} -} - -func (m *VpcConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VpcConfig.Unmarshal(m, b) -} -func (m *VpcConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VpcConfig.Marshal(b, m, deterministic) -} -func (m *VpcConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_VpcConfig.Merge(m, src) -} -func (m *VpcConfig) XXX_Size() int { - return xxx_messageInfo_VpcConfig.Size(m) -} -func (m *VpcConfig) XXX_DiscardUnknown() { - xxx_messageInfo_VpcConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_VpcConfig proto.InternalMessageInfo - -func (m *VpcConfig) GetSecurityGroupIds() []string { - if m != nil { - return m.SecurityGroupIds - } - return nil -} - -func (m *VpcConfig) GetSubnets() []string { - if m != nil { - return m.Subnets - } - return nil -} - -type SagemakerTrainingJob struct { - Region string `protobuf:"bytes,1,opt,name=Region,proto3" json:"Region,omitempty"` - RoleArn string `protobuf:"bytes,2,opt,name=RoleArn,proto3" json:"RoleArn,omitempty"` - AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,3,opt,name=AlgorithmSpecification,proto3" json:"AlgorithmSpecification,omitempty"` - ResourceConfig *ResourceConfig `protobuf:"bytes,4,opt,name=ResourceConfig,proto3" json:"ResourceConfig,omitempty"` - StoppingCondition *StoppingCondition `protobuf:"bytes,5,opt,name=StoppingCondition,proto3" json:"StoppingCondition,omitempty"` - VpcConfig *VpcConfig `protobuf:"bytes,6,opt,name=VpcConfig,proto3" json:"VpcConfig,omitempty"` - EnableSpotTraining bool `protobuf:"varint,7,opt,name=EnableSpotTraining,proto3" json:"EnableSpotTraining,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SagemakerTrainingJob) Reset() { *m = SagemakerTrainingJob{} } -func (m *SagemakerTrainingJob) String() string { return proto.CompactTextString(m) } -func (*SagemakerTrainingJob) ProtoMessage() {} -func (*SagemakerTrainingJob) Descriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{8} -} - -func (m *SagemakerTrainingJob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SagemakerTrainingJob.Unmarshal(m, b) -} -func (m *SagemakerTrainingJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SagemakerTrainingJob.Marshal(b, m, deterministic) -} -func (m *SagemakerTrainingJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_SagemakerTrainingJob.Merge(m, src) -} -func (m *SagemakerTrainingJob) XXX_Size() int { - return xxx_messageInfo_SagemakerTrainingJob.Size(m) -} -func (m *SagemakerTrainingJob) XXX_DiscardUnknown() { - xxx_messageInfo_SagemakerTrainingJob.DiscardUnknown(m) -} - -var xxx_messageInfo_SagemakerTrainingJob proto.InternalMessageInfo - -func (m *SagemakerTrainingJob) GetRegion() string { - if m != nil { - return m.Region - } - return "" -} - -func (m *SagemakerTrainingJob) GetRoleArn() string { - if m != nil { - return m.RoleArn - } - return "" -} - -func (m *SagemakerTrainingJob) GetAlgorithmSpecification() *AlgorithmSpecification { - if m != nil { - return m.AlgorithmSpecification - } - return nil -} - -func (m *SagemakerTrainingJob) GetResourceConfig() *ResourceConfig { - if m != nil { - return m.ResourceConfig - } - return nil -} - -func (m *SagemakerTrainingJob) GetStoppingCondition() *StoppingCondition { - if m != nil { - return m.StoppingCondition - } - return nil -} - -func (m *SagemakerTrainingJob) GetVpcConfig() *VpcConfig { - if m != nil { - return m.VpcConfig - } - return nil -} - -func (m *SagemakerTrainingJob) GetEnableSpotTraining() bool { - if m != nil { - return m.EnableSpotTraining - } - return false -} - -type HPOJobObjective struct { - Type HPOJobObjective_HPOJobObjectiveType `protobuf:"varint,1,opt,name=Type,proto3,enum=flyteidl.plugins.sagemaker.HPOJobObjective_HPOJobObjectiveType" json:"Type,omitempty"` - MetricName string `protobuf:"bytes,2,opt,name=MetricName,proto3" json:"MetricName,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HPOJobObjective) Reset() { *m = HPOJobObjective{} } -func (m *HPOJobObjective) String() string { return proto.CompactTextString(m) } -func (*HPOJobObjective) ProtoMessage() {} -func (*HPOJobObjective) Descriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{9} -} - -func (m *HPOJobObjective) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HPOJobObjective.Unmarshal(m, b) -} -func (m *HPOJobObjective) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HPOJobObjective.Marshal(b, m, deterministic) -} -func (m *HPOJobObjective) XXX_Merge(src proto.Message) { - xxx_messageInfo_HPOJobObjective.Merge(m, src) -} -func (m *HPOJobObjective) XXX_Size() int { - return xxx_messageInfo_HPOJobObjective.Size(m) -} -func (m *HPOJobObjective) XXX_DiscardUnknown() { - xxx_messageInfo_HPOJobObjective.DiscardUnknown(m) -} - -var xxx_messageInfo_HPOJobObjective proto.InternalMessageInfo - -func (m *HPOJobObjective) GetType() HPOJobObjective_HPOJobObjectiveType { - if m != nil { - return m.Type - } - return HPOJobObjective_MINIMIZE -} - -func (m *HPOJobObjective) GetMetricName() string { - if m != nil { - return m.MetricName - } - return "" -} - -type SagemakerHPOJob struct { - Strategy string `protobuf:"bytes,1,opt,name=Strategy,proto3" json:"Strategy,omitempty"` - Objective *HPOJobObjective `protobuf:"bytes,2,opt,name=Objective,proto3" json:"Objective,omitempty"` - MaxNumberOfTrainingJobs int64 `protobuf:"varint,3,opt,name=MaxNumberOfTrainingJobs,proto3" json:"MaxNumberOfTrainingJobs,omitempty"` - MaxParallelTrainingJobs int64 `protobuf:"varint,4,opt,name=MaxParallelTrainingJobs,proto3" json:"MaxParallelTrainingJobs,omitempty"` - ParameterRanges *ParameterRanges `protobuf:"bytes,5,opt,name=ParameterRanges,proto3" json:"ParameterRanges,omitempty"` - TrainingJob *SagemakerTrainingJob `protobuf:"bytes,6,opt,name=TrainingJob,proto3" json:"TrainingJob,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SagemakerHPOJob) Reset() { *m = SagemakerHPOJob{} } -func (m *SagemakerHPOJob) String() string { return proto.CompactTextString(m) } -func (*SagemakerHPOJob) ProtoMessage() {} -func (*SagemakerHPOJob) Descriptor() ([]byte, []int) { - return fileDescriptor_21b5a21adfeb46ce, []int{10} -} - -func (m *SagemakerHPOJob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SagemakerHPOJob.Unmarshal(m, b) -} -func (m *SagemakerHPOJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SagemakerHPOJob.Marshal(b, m, deterministic) -} -func (m *SagemakerHPOJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_SagemakerHPOJob.Merge(m, src) -} -func (m *SagemakerHPOJob) XXX_Size() int { - return xxx_messageInfo_SagemakerHPOJob.Size(m) -} -func (m *SagemakerHPOJob) XXX_DiscardUnknown() { - xxx_messageInfo_SagemakerHPOJob.DiscardUnknown(m) -} - -var xxx_messageInfo_SagemakerHPOJob proto.InternalMessageInfo - -func (m *SagemakerHPOJob) GetStrategy() string { - if m != nil { - return m.Strategy - } - return "" -} - -func (m *SagemakerHPOJob) GetObjective() *HPOJobObjective { - if m != nil { - return m.Objective - } - return nil -} - -func (m *SagemakerHPOJob) GetMaxNumberOfTrainingJobs() int64 { - if m != nil { - return m.MaxNumberOfTrainingJobs - } - return 0 -} - -func (m *SagemakerHPOJob) GetMaxParallelTrainingJobs() int64 { - if m != nil { - return m.MaxParallelTrainingJobs - } - return 0 -} - -func (m *SagemakerHPOJob) GetParameterRanges() *ParameterRanges { - if m != nil { - return m.ParameterRanges - } - return nil -} - -func (m *SagemakerHPOJob) GetTrainingJob() *SagemakerTrainingJob { - if m != nil { - return m.TrainingJob - } - return nil -} - -func init() { - proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterScalingType", HyperparameterScalingType_name, HyperparameterScalingType_value) - proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobObjective_HPOJobObjectiveType", HPOJobObjective_HPOJobObjectiveType_name, HPOJobObjective_HPOJobObjectiveType_value) - proto.RegisterType((*ContinuousParameterRange)(nil), "flyteidl.plugins.sagemaker.ContinuousParameterRange") - proto.RegisterType((*IntegerParameterRange)(nil), "flyteidl.plugins.sagemaker.IntegerParameterRange") - proto.RegisterType((*CategoricalParameterRange)(nil), "flyteidl.plugins.sagemaker.CategoricalParameterRange") - proto.RegisterType((*ParameterRanges)(nil), "flyteidl.plugins.sagemaker.ParameterRanges") - proto.RegisterType((*AlgorithmSpecification)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification") - proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition") - proto.RegisterType((*ResourceConfig)(nil), "flyteidl.plugins.sagemaker.ResourceConfig") - proto.RegisterType((*StoppingCondition)(nil), "flyteidl.plugins.sagemaker.StoppingCondition") - proto.RegisterType((*VpcConfig)(nil), "flyteidl.plugins.sagemaker.VpcConfig") - proto.RegisterType((*SagemakerTrainingJob)(nil), "flyteidl.plugins.sagemaker.SagemakerTrainingJob") - proto.RegisterType((*HPOJobObjective)(nil), "flyteidl.plugins.sagemaker.HPOJobObjective") - proto.RegisterType((*SagemakerHPOJob)(nil), "flyteidl.plugins.sagemaker.SagemakerHPOJob") -} - -func init() { - proto.RegisterFile("flyteidl/plugins/sagemaker/sagemaker.proto", fileDescriptor_21b5a21adfeb46ce) -} - -var fileDescriptor_21b5a21adfeb46ce = []byte{ - // 982 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xdd, 0x6e, 0xdb, 0x46, - 0x13, 0x0d, 0x45, 0xc5, 0xb1, 0x46, 0xf9, 0x6c, 0x79, 0xe3, 0xcf, 0xa5, 0x7d, 0x51, 0x08, 0x44, - 0x5b, 0x08, 0x6e, 0x23, 0x25, 0x4a, 0x03, 0xf4, 0xa2, 0x40, 0xa1, 0xa8, 0x82, 0xcd, 0x24, 0xb2, - 0xd3, 0xa5, 0xe3, 0x14, 0xee, 0xd5, 0x8a, 0x5a, 0x31, 0x9b, 0x92, 0xbb, 0x2c, 0xb9, 0x2c, 0xa4, - 0xbe, 0x48, 0xdf, 0xa1, 0x6f, 0x50, 0xa0, 0x40, 0x2f, 0xfa, 0x16, 0x7d, 0x81, 0xbe, 0x46, 0xa1, - 0xe5, 0x8f, 0xf5, 0x43, 0x12, 0x4d, 0x2f, 0x7a, 0xc7, 0x99, 0xd9, 0x73, 0x76, 0x76, 0xe6, 0xcc, - 0x2e, 0xe1, 0x74, 0xe6, 0x2d, 0x24, 0x65, 0x53, 0xaf, 0x17, 0x78, 0xb1, 0xcb, 0x78, 0xd4, 0x8b, - 0x88, 0x4b, 0x7d, 0xf2, 0x3d, 0x0d, 0x6f, 0xbf, 0xba, 0x41, 0x28, 0xa4, 0x40, 0x27, 0xd9, 0xda, - 0x6e, 0xba, 0xb6, 0x9b, 0xaf, 0x30, 0x7f, 0xd7, 0xc0, 0x18, 0x0a, 0x2e, 0x19, 0x8f, 0x45, 0x1c, - 0xbd, 0x22, 0x21, 0xf1, 0xa9, 0xa4, 0x21, 0x26, 0xdc, 0xa5, 0x08, 0x41, 0xfd, 0x82, 0xf8, 0xd4, - 0xd0, 0xda, 0x5a, 0xa7, 0x81, 0xd5, 0x37, 0x3a, 0x81, 0xdd, 0x31, 0x99, 0x5f, 0x13, 0x2f, 0xa6, - 0x46, 0xad, 0xad, 0x75, 0x34, 0x9c, 0xdb, 0x2a, 0xc6, 0x78, 0x12, 0xd3, 0xd3, 0x58, 0x6a, 0xa3, - 0x37, 0xd0, 0xb4, 0x1d, 0xe2, 0x31, 0xee, 0x5e, 0x2d, 0x02, 0x6a, 0xd4, 0xdb, 0x5a, 0x67, 0xaf, - 0xff, 0xb4, 0x5b, 0x9e, 0x5a, 0xf7, 0x7c, 0x11, 0xd0, 0x30, 0xc8, 0x32, 0x5a, 0x01, 0xe3, 0x55, - 0x26, 0xf3, 0x37, 0x0d, 0xfe, 0x6f, 0x71, 0x49, 0x5d, 0x1a, 0xfe, 0x8b, 0xf4, 0x6b, 0x15, 0xe9, - 0xd7, 0xfe, 0x8b, 0xf4, 0xcf, 0xe0, 0x78, 0x48, 0x24, 0x75, 0x45, 0xc8, 0x1c, 0xe2, 0xfd, 0x83, - 0x13, 0x1c, 0xc1, 0x8e, 0x4a, 0x29, 0x32, 0x6a, 0x6d, 0xbd, 0xd3, 0xc0, 0xa9, 0x65, 0xfe, 0x55, - 0x83, 0xfd, 0x75, 0x78, 0x84, 0x42, 0x38, 0x2e, 0x6b, 0x6e, 0x64, 0x68, 0x6d, 0xbd, 0xd3, 0xec, - 0x7f, 0x5e, 0x75, 0x86, 0x32, 0x30, 0x2e, 0xa7, 0x45, 0x0c, 0x8e, 0x0a, 0xdb, 0x91, 0xe4, 0xdb, - 0xec, 0x3f, 0xae, 0xda, 0xb0, 0x10, 0x89, 0x4b, 0x08, 0x51, 0x0c, 0x27, 0xa5, 0xb5, 0x8b, 0x0c, - 0x5d, 0x6d, 0x57, 0xd9, 0xa3, 0x52, 0x34, 0xae, 0x20, 0x36, 0xff, 0xa8, 0xc1, 0xd1, 0xc0, 0x5b, - 0x06, 0xe5, 0x5b, 0xdf, 0x0e, 0xa8, 0xc3, 0x66, 0xcc, 0x21, 0x92, 0x09, 0x8e, 0x3e, 0x82, 0xff, - 0x5d, 0x85, 0x84, 0x71, 0xc6, 0x5d, 0xcb, 0x27, 0x6e, 0xd6, 0xb9, 0x75, 0x27, 0xfa, 0x0c, 0x0e, - 0x72, 0x07, 0x0f, 0x62, 0x39, 0x16, 0xd3, 0x44, 0x8d, 0x0d, 0xbc, 0x1d, 0x58, 0x72, 0xe6, 0xbb, - 0x29, 0x35, 0xe8, 0x09, 0xe7, 0x9a, 0x13, 0xfd, 0x00, 0x07, 0x63, 0x2a, 0x43, 0xe6, 0x7c, 0x4d, - 0x67, 0x8c, 0xb3, 0x65, 0x36, 0x91, 0x51, 0x57, 0x25, 0x18, 0x56, 0x95, 0xa0, 0xf8, 0x20, 0xdd, - 0x4d, 0x2e, 0xbc, 0xcd, 0x7e, 0xf2, 0x25, 0xb4, 0x36, 0x9d, 0x85, 0x8a, 0x3d, 0x84, 0xbb, 0x98, - 0xba, 0x74, 0x9e, 0x1e, 0x31, 0x31, 0xcc, 0x5f, 0x34, 0xd8, 0xc3, 0x34, 0x12, 0x71, 0xe8, 0xd0, - 0xa1, 0xe0, 0x33, 0xe6, 0x22, 0x13, 0xee, 0x5b, 0x3c, 0x92, 0x84, 0x3b, 0x54, 0x4d, 0x59, 0x42, - 0xb2, 0xe6, 0x5b, 0x56, 0x23, 0xb3, 0x87, 0x22, 0xe6, 0x52, 0x91, 0xea, 0x78, 0xdd, 0x89, 0x3e, - 0x81, 0xbd, 0x6b, 0xe1, 0xc5, 0x3e, 0xb5, 0xd9, 0x4f, 0xd4, 0xe2, 0x67, 0xcf, 0x54, 0xd1, 0x74, - 0xbc, 0xe1, 0xbd, 0x5d, 0xf7, 0xc2, 0x8f, 0x5e, 0xd0, 0x85, 0x35, 0x55, 0x93, 0xdd, 0xc0, 0x1b, - 0x5e, 0x73, 0x01, 0x07, 0xb6, 0x14, 0x41, 0xc0, 0xb8, 0x3b, 0x14, 0x7c, 0x9a, 0x9c, 0xf5, 0x11, - 0x3c, 0x18, 0x93, 0x39, 0x8e, 0xb9, 0x64, 0x3e, 0xb5, 0xb8, 0x4d, 0x1d, 0xc1, 0xa7, 0x91, 0xca, - 0x5a, 0xc7, 0x45, 0x21, 0xd4, 0x87, 0xc3, 0x31, 0x99, 0xbf, 0x21, 0x4c, 0x5e, 0xad, 0x41, 0x92, - 0x33, 0x14, 0xc6, 0xcc, 0x6f, 0xa0, 0x71, 0x1d, 0x38, 0x69, 0x85, 0x4e, 0xa1, 0x65, 0x53, 0x27, - 0x0e, 0x99, 0x5c, 0x9c, 0x85, 0x22, 0x0e, 0xac, 0x69, 0x32, 0xc7, 0x0d, 0xbc, 0xe5, 0x47, 0x06, - 0xdc, 0xb3, 0xe3, 0x09, 0xa7, 0x32, 0xbb, 0x29, 0x32, 0xd3, 0xfc, 0x53, 0x87, 0x43, 0x3b, 0x53, - 0x40, 0x26, 0xb8, 0xe7, 0x62, 0xb2, 0xbc, 0x5b, 0x30, 0x75, 0x99, 0xe0, 0x69, 0xe9, 0x53, 0x6b, - 0x49, 0x85, 0x85, 0x47, 0x07, 0x21, 0x4f, 0x7b, 0x98, 0x99, 0xe8, 0x5d, 0xd9, 0x28, 0xa8, 0x82, - 0x37, 0xfb, 0xfd, 0xf7, 0xd7, 0x1e, 0x2e, 0x1b, 0x2e, 0xbc, 0x29, 0x18, 0xd5, 0xac, 0x66, 0xff, - 0xb4, 0x6a, 0x8f, 0x75, 0x04, 0xde, 0x94, 0xdc, 0x77, 0x05, 0x8d, 0x35, 0xee, 0x2a, 0xda, 0x87, - 0x55, 0xb4, 0x5b, 0x20, 0x5c, 0x20, 0x90, 0xe1, 0x4a, 0xeb, 0x8c, 0x1d, 0x45, 0xfa, 0x71, 0x15, - 0x69, 0xbe, 0x18, 0xaf, 0xb4, 0xbc, 0x0b, 0x68, 0xc4, 0xc9, 0xc4, 0xa3, 0x76, 0x20, 0x64, 0xd6, - 0x2c, 0xe3, 0x5e, 0x5b, 0xeb, 0xec, 0xe2, 0x82, 0x88, 0xf9, 0xab, 0x06, 0xfb, 0xe7, 0xaf, 0x2e, - 0x9f, 0x8b, 0xc9, 0xe5, 0xe4, 0x1d, 0x75, 0x24, 0xfb, 0x91, 0x22, 0x1b, 0xea, 0xf9, 0x40, 0xed, - 0xf5, 0xbf, 0xaa, 0x7c, 0xb6, 0xd6, 0xa1, 0x9b, 0xb6, 0x7a, 0xc0, 0x14, 0x19, 0xfa, 0x10, 0x20, - 0x19, 0x7f, 0x35, 0xf0, 0x89, 0x2e, 0x56, 0x3c, 0xe6, 0x63, 0x78, 0x50, 0x00, 0x46, 0xf7, 0x61, - 0x77, 0x6c, 0x5d, 0x58, 0x63, 0xeb, 0x66, 0xd4, 0xba, 0xa3, 0xac, 0xc1, 0xb7, 0x89, 0xa5, 0x99, - 0x3f, 0xeb, 0xb0, 0x9f, 0x0b, 0x33, 0x01, 0x2f, 0x5f, 0x65, 0x5b, 0x86, 0xcb, 0xdb, 0x78, 0x91, - 0xaa, 0x32, 0xb7, 0x91, 0x05, 0x8d, 0x9c, 0x5c, 0x65, 0xd0, 0xec, 0x7f, 0xfa, 0x1e, 0x87, 0xc3, - 0xb7, 0x68, 0xf4, 0x05, 0x7c, 0x30, 0x26, 0xf3, 0x8b, 0xd8, 0x9f, 0xd0, 0xf0, 0x72, 0xb6, 0x32, - 0x14, 0x51, 0x7a, 0x75, 0x94, 0x85, 0x53, 0xe4, 0xf2, 0x91, 0xf0, 0x3c, 0xea, 0xad, 0x21, 0xeb, - 0x39, 0xb2, 0x28, 0x8c, 0x5e, 0x6f, 0xbd, 0xd8, 0xa9, 0xf4, 0x2a, 0x0f, 0xb1, 0x01, 0xc1, 0x5b, - 0xaf, 0x3e, 0x86, 0xe6, 0xca, 0x36, 0xa9, 0xf0, 0x1e, 0x55, 0xaa, 0xb9, 0xe0, 0x32, 0xc0, 0xab, - 0x24, 0xa7, 0x37, 0x70, 0x5c, 0xfa, 0x43, 0x83, 0x76, 0xa1, 0x3e, 0x78, 0x7d, 0x75, 0xd9, 0xba, - 0x83, 0x00, 0x76, 0x5e, 0x5a, 0x17, 0xa3, 0x01, 0x6e, 0x69, 0x68, 0x1f, 0x9a, 0x2f, 0x2f, 0xcf, - 0x06, 0xd8, 0xba, 0x3a, 0x1f, 0x5b, 0xc3, 0x56, 0x0d, 0x1d, 0x01, 0xc2, 0xa3, 0xeb, 0x11, 0xb6, - 0x47, 0xab, 0x7e, 0xfd, 0xd9, 0xd3, 0x9b, 0x27, 0x2e, 0x93, 0x6f, 0xe3, 0x49, 0xd7, 0x11, 0x7e, - 0xcf, 0x5b, 0xcc, 0x64, 0x2f, 0xff, 0xbb, 0x75, 0x29, 0xef, 0x05, 0x93, 0x87, 0xae, 0xe8, 0x6d, - 0xfe, 0xf0, 0x4e, 0x76, 0xd4, 0xdf, 0xed, 0x93, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x36, 0xb5, - 0x4d, 0x4a, 0x0b, 0x0b, 0x00, 0x00, -} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.validate.go deleted file mode 100644 index 3197f26b5..000000000 --- a/gen/pb-go/flyteidl/plugins/sagemaker/sagemaker.pb.validate.go +++ /dev/null @@ -1,1017 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/sagemaker.proto - -package plugins - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "strings" - "time" - "unicode/utf8" - - "github.com/golang/protobuf/ptypes" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = ptypes.DynamicAny{} -) - -// define the regex for a UUID once up-front -var _sagemaker_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") - -// Validate checks the field values on ContinuousParameterRange with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ContinuousParameterRange) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Name - - // no validation rules for MaxValue - - // no validation rules for MinValue - - // no validation rules for ScalingType - - return nil -} - -// ContinuousParameterRangeValidationError is the validation error returned by -// ContinuousParameterRange.Validate if the designated constraints aren't met. -type ContinuousParameterRangeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ContinuousParameterRangeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ContinuousParameterRangeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ContinuousParameterRangeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ContinuousParameterRangeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ContinuousParameterRangeValidationError) ErrorName() string { - return "ContinuousParameterRangeValidationError" -} - -// Error satisfies the builtin error interface -func (e ContinuousParameterRangeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sContinuousParameterRange.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ContinuousParameterRangeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ContinuousParameterRangeValidationError{} - -// Validate checks the field values on IntegerParameterRange with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *IntegerParameterRange) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Name - - // no validation rules for MaxValue - - // no validation rules for MinValue - - // no validation rules for ScalingType - - return nil -} - -// IntegerParameterRangeValidationError is the validation error returned by -// IntegerParameterRange.Validate if the designated constraints aren't met. -type IntegerParameterRangeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IntegerParameterRangeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IntegerParameterRangeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IntegerParameterRangeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IntegerParameterRangeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IntegerParameterRangeValidationError) ErrorName() string { - return "IntegerParameterRangeValidationError" -} - -// Error satisfies the builtin error interface -func (e IntegerParameterRangeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIntegerParameterRange.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IntegerParameterRangeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IntegerParameterRangeValidationError{} - -// Validate checks the field values on CategoricalParameterRange with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *CategoricalParameterRange) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Name - - return nil -} - -// CategoricalParameterRangeValidationError is the validation error returned by -// CategoricalParameterRange.Validate if the designated constraints aren't met. -type CategoricalParameterRangeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CategoricalParameterRangeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CategoricalParameterRangeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CategoricalParameterRangeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CategoricalParameterRangeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CategoricalParameterRangeValidationError) ErrorName() string { - return "CategoricalParameterRangeValidationError" -} - -// Error satisfies the builtin error interface -func (e CategoricalParameterRangeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCategoricalParameterRange.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CategoricalParameterRangeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CategoricalParameterRangeValidationError{} - -// Validate checks the field values on ParameterRanges with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *ParameterRanges) Validate() error { - if m == nil { - return nil - } - - for idx, item := range m.GetContinuousParameterRanges() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ParameterRangesValidationError{ - field: fmt.Sprintf("ContinuousParameterRanges[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - for idx, item := range m.GetIntegerParameterRanges() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ParameterRangesValidationError{ - field: fmt.Sprintf("IntegerParameterRanges[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - for idx, item := range m.GetCategoricalParameterRanges() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ParameterRangesValidationError{ - field: fmt.Sprintf("CategoricalParameterRanges[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ParameterRangesValidationError is the validation error returned by -// ParameterRanges.Validate if the designated constraints aren't met. -type ParameterRangesValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ParameterRangesValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ParameterRangesValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ParameterRangesValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ParameterRangesValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ParameterRangesValidationError) ErrorName() string { return "ParameterRangesValidationError" } - -// Error satisfies the builtin error interface -func (e ParameterRangesValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sParameterRanges.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ParameterRangesValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ParameterRangesValidationError{} - -// Validate checks the field values on AlgorithmSpecification with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *AlgorithmSpecification) Validate() error { - if m == nil { - return nil - } - - // no validation rules for TrainingImage - - // no validation rules for TrainingInputMode - - // no validation rules for AlgorithmName - - for idx, item := range m.GetMetricDefinitions() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AlgorithmSpecificationValidationError{ - field: fmt.Sprintf("MetricDefinitions[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// AlgorithmSpecificationValidationError is the validation error returned by -// AlgorithmSpecification.Validate if the designated constraints aren't met. -type AlgorithmSpecificationValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AlgorithmSpecificationValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AlgorithmSpecificationValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AlgorithmSpecificationValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AlgorithmSpecificationValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AlgorithmSpecificationValidationError) ErrorName() string { - return "AlgorithmSpecificationValidationError" -} - -// Error satisfies the builtin error interface -func (e AlgorithmSpecificationValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAlgorithmSpecification.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AlgorithmSpecificationValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AlgorithmSpecificationValidationError{} - -// Validate checks the field values on ResourceConfig with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *ResourceConfig) Validate() error { - if m == nil { - return nil - } - - // no validation rules for InstanceType - - // no validation rules for InstanceCount - - // no validation rules for VolumeSizeInGB - - // no validation rules for VolumeKmsKeyId - - return nil -} - -// ResourceConfigValidationError is the validation error returned by -// ResourceConfig.Validate if the designated constraints aren't met. -type ResourceConfigValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ResourceConfigValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ResourceConfigValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ResourceConfigValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ResourceConfigValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ResourceConfigValidationError) ErrorName() string { return "ResourceConfigValidationError" } - -// Error satisfies the builtin error interface -func (e ResourceConfigValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sResourceConfig.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ResourceConfigValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ResourceConfigValidationError{} - -// Validate checks the field values on StoppingCondition with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *StoppingCondition) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxRuntimeInSeconds - - // no validation rules for MaxWaitTimeInSeconds - - return nil -} - -// StoppingConditionValidationError is the validation error returned by -// StoppingCondition.Validate if the designated constraints aren't met. -type StoppingConditionValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e StoppingConditionValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e StoppingConditionValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e StoppingConditionValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e StoppingConditionValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e StoppingConditionValidationError) ErrorName() string { - return "StoppingConditionValidationError" -} - -// Error satisfies the builtin error interface -func (e StoppingConditionValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sStoppingCondition.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = StoppingConditionValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = StoppingConditionValidationError{} - -// Validate checks the field values on VpcConfig with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *VpcConfig) Validate() error { - if m == nil { - return nil - } - - return nil -} - -// VpcConfigValidationError is the validation error returned by -// VpcConfig.Validate if the designated constraints aren't met. -type VpcConfigValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e VpcConfigValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e VpcConfigValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e VpcConfigValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e VpcConfigValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e VpcConfigValidationError) ErrorName() string { return "VpcConfigValidationError" } - -// Error satisfies the builtin error interface -func (e VpcConfigValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sVpcConfig.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = VpcConfigValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = VpcConfigValidationError{} - -// Validate checks the field values on SagemakerTrainingJob with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *SagemakerTrainingJob) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Region - - // no validation rules for RoleArn - - if v, ok := interface{}(m.GetAlgorithmSpecification()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SagemakerTrainingJobValidationError{ - field: "AlgorithmSpecification", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetResourceConfig()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SagemakerTrainingJobValidationError{ - field: "ResourceConfig", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetStoppingCondition()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SagemakerTrainingJobValidationError{ - field: "StoppingCondition", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetVpcConfig()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SagemakerTrainingJobValidationError{ - field: "VpcConfig", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for EnableSpotTraining - - return nil -} - -// SagemakerTrainingJobValidationError is the validation error returned by -// SagemakerTrainingJob.Validate if the designated constraints aren't met. -type SagemakerTrainingJobValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SagemakerTrainingJobValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SagemakerTrainingJobValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SagemakerTrainingJobValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SagemakerTrainingJobValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SagemakerTrainingJobValidationError) ErrorName() string { - return "SagemakerTrainingJobValidationError" -} - -// Error satisfies the builtin error interface -func (e SagemakerTrainingJobValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSagemakerTrainingJob.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SagemakerTrainingJobValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SagemakerTrainingJobValidationError{} - -// Validate checks the field values on HPOJobObjective with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *HPOJobObjective) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Type - - // no validation rules for MetricName - - return nil -} - -// HPOJobObjectiveValidationError is the validation error returned by -// HPOJobObjective.Validate if the designated constraints aren't met. -type HPOJobObjectiveValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e HPOJobObjectiveValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e HPOJobObjectiveValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e HPOJobObjectiveValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e HPOJobObjectiveValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e HPOJobObjectiveValidationError) ErrorName() string { return "HPOJobObjectiveValidationError" } - -// Error satisfies the builtin error interface -func (e HPOJobObjectiveValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sHPOJobObjective.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = HPOJobObjectiveValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = HPOJobObjectiveValidationError{} - -// Validate checks the field values on SagemakerHPOJob with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *SagemakerHPOJob) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Strategy - - if v, ok := interface{}(m.GetObjective()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SagemakerHPOJobValidationError{ - field: "Objective", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for MaxNumberOfTrainingJobs - - // no validation rules for MaxParallelTrainingJobs - - if v, ok := interface{}(m.GetParameterRanges()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SagemakerHPOJobValidationError{ - field: "ParameterRanges", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetTrainingJob()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SagemakerHPOJobValidationError{ - field: "TrainingJob", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// SagemakerHPOJobValidationError is the validation error returned by -// SagemakerHPOJob.Validate if the designated constraints aren't met. -type SagemakerHPOJobValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SagemakerHPOJobValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SagemakerHPOJobValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SagemakerHPOJobValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SagemakerHPOJobValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SagemakerHPOJobValidationError) ErrorName() string { return "SagemakerHPOJobValidationError" } - -// Error satisfies the builtin error interface -func (e SagemakerHPOJobValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSagemakerHPOJob.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SagemakerHPOJobValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SagemakerHPOJobValidationError{} - -// Validate checks the field values on AlgorithmSpecification_MetricDefinition -// with the rules defined in the proto definition for this message. If any -// rules are violated, an error is returned. -func (m *AlgorithmSpecification_MetricDefinition) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Name - - // no validation rules for Regex - - return nil -} - -// AlgorithmSpecification_MetricDefinitionValidationError is the validation -// error returned by AlgorithmSpecification_MetricDefinition.Validate if the -// designated constraints aren't met. -type AlgorithmSpecification_MetricDefinitionValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AlgorithmSpecification_MetricDefinitionValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AlgorithmSpecification_MetricDefinitionValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AlgorithmSpecification_MetricDefinitionValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AlgorithmSpecification_MetricDefinitionValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AlgorithmSpecification_MetricDefinitionValidationError) ErrorName() string { - return "AlgorithmSpecification_MetricDefinitionValidationError" -} - -// Error satisfies the builtin error interface -func (e AlgorithmSpecification_MetricDefinitionValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAlgorithmSpecification_MetricDefinition.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AlgorithmSpecification_MetricDefinitionValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AlgorithmSpecification_MetricDefinitionValidationError{} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go new file mode 100644 index 000000000..c12e58c22 --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go @@ -0,0 +1,430 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/trainingjob.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type AlgorithmSpecification struct { + TrainingImage string `protobuf:"bytes,1,opt,name=TrainingImage,proto3" json:"TrainingImage,omitempty"` + TrainingInputMode string `protobuf:"bytes,2,opt,name=TrainingInputMode,proto3" json:"TrainingInputMode,omitempty"` + AlgorithmName string `protobuf:"bytes,3,opt,name=AlgorithmName,proto3" json:"AlgorithmName,omitempty"` + MetricDefinitions []*AlgorithmSpecification_MetricDefinition `protobuf:"bytes,4,rep,name=MetricDefinitions,proto3" json:"MetricDefinitions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AlgorithmSpecification) Reset() { *m = AlgorithmSpecification{} } +func (m *AlgorithmSpecification) String() string { return proto.CompactTextString(m) } +func (*AlgorithmSpecification) ProtoMessage() {} +func (*AlgorithmSpecification) Descriptor() ([]byte, []int) { + return fileDescriptor_030d49acd9e1f6e1, []int{0} +} + +func (m *AlgorithmSpecification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AlgorithmSpecification.Unmarshal(m, b) +} +func (m *AlgorithmSpecification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AlgorithmSpecification.Marshal(b, m, deterministic) +} +func (m *AlgorithmSpecification) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlgorithmSpecification.Merge(m, src) +} +func (m *AlgorithmSpecification) XXX_Size() int { + return xxx_messageInfo_AlgorithmSpecification.Size(m) +} +func (m *AlgorithmSpecification) XXX_DiscardUnknown() { + xxx_messageInfo_AlgorithmSpecification.DiscardUnknown(m) +} + +var xxx_messageInfo_AlgorithmSpecification proto.InternalMessageInfo + +func (m *AlgorithmSpecification) GetTrainingImage() string { + if m != nil { + return m.TrainingImage + } + return "" +} + +func (m *AlgorithmSpecification) GetTrainingInputMode() string { + if m != nil { + return m.TrainingInputMode + } + return "" +} + +func (m *AlgorithmSpecification) GetAlgorithmName() string { + if m != nil { + return m.AlgorithmName + } + return "" +} + +func (m *AlgorithmSpecification) GetMetricDefinitions() []*AlgorithmSpecification_MetricDefinition { + if m != nil { + return m.MetricDefinitions + } + return nil +} + +type AlgorithmSpecification_MetricDefinition struct { + Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` + Regex string `protobuf:"bytes,2,opt,name=Regex,proto3" json:"Regex,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AlgorithmSpecification_MetricDefinition) Reset() { + *m = AlgorithmSpecification_MetricDefinition{} +} +func (m *AlgorithmSpecification_MetricDefinition) String() string { return proto.CompactTextString(m) } +func (*AlgorithmSpecification_MetricDefinition) ProtoMessage() {} +func (*AlgorithmSpecification_MetricDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_030d49acd9e1f6e1, []int{0, 0} +} + +func (m *AlgorithmSpecification_MetricDefinition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Unmarshal(m, b) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Marshal(b, m, deterministic) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Merge(m, src) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_Size() int { + return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Size(m) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AlgorithmSpecification_MetricDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AlgorithmSpecification_MetricDefinition proto.InternalMessageInfo + +func (m *AlgorithmSpecification_MetricDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AlgorithmSpecification_MetricDefinition) GetRegex() string { + if m != nil { + return m.Regex + } + return "" +} + +type ResourceConfig struct { + InstanceType string `protobuf:"bytes,1,opt,name=InstanceType,proto3" json:"InstanceType,omitempty"` + InstanceCount int64 `protobuf:"varint,2,opt,name=InstanceCount,proto3" json:"InstanceCount,omitempty"` + VolumeSizeInGB int64 `protobuf:"varint,3,opt,name=VolumeSizeInGB,proto3" json:"VolumeSizeInGB,omitempty"` + VolumeKmsKeyId string `protobuf:"bytes,4,opt,name=VolumeKmsKeyId,proto3" json:"VolumeKmsKeyId,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResourceConfig) Reset() { *m = ResourceConfig{} } +func (m *ResourceConfig) String() string { return proto.CompactTextString(m) } +func (*ResourceConfig) ProtoMessage() {} +func (*ResourceConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_030d49acd9e1f6e1, []int{1} +} + +func (m *ResourceConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResourceConfig.Unmarshal(m, b) +} +func (m *ResourceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResourceConfig.Marshal(b, m, deterministic) +} +func (m *ResourceConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceConfig.Merge(m, src) +} +func (m *ResourceConfig) XXX_Size() int { + return xxx_messageInfo_ResourceConfig.Size(m) +} +func (m *ResourceConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceConfig proto.InternalMessageInfo + +func (m *ResourceConfig) GetInstanceType() string { + if m != nil { + return m.InstanceType + } + return "" +} + +func (m *ResourceConfig) GetInstanceCount() int64 { + if m != nil { + return m.InstanceCount + } + return 0 +} + +func (m *ResourceConfig) GetVolumeSizeInGB() int64 { + if m != nil { + return m.VolumeSizeInGB + } + return 0 +} + +func (m *ResourceConfig) GetVolumeKmsKeyId() string { + if m != nil { + return m.VolumeKmsKeyId + } + return "" +} + +type StoppingCondition struct { + MaxRuntimeInSeconds int64 `protobuf:"varint,1,opt,name=MaxRuntimeInSeconds,proto3" json:"MaxRuntimeInSeconds,omitempty"` + MaxWaitTimeInSeconds int64 `protobuf:"varint,2,opt,name=MaxWaitTimeInSeconds,proto3" json:"MaxWaitTimeInSeconds,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoppingCondition) Reset() { *m = StoppingCondition{} } +func (m *StoppingCondition) String() string { return proto.CompactTextString(m) } +func (*StoppingCondition) ProtoMessage() {} +func (*StoppingCondition) Descriptor() ([]byte, []int) { + return fileDescriptor_030d49acd9e1f6e1, []int{2} +} + +func (m *StoppingCondition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StoppingCondition.Unmarshal(m, b) +} +func (m *StoppingCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StoppingCondition.Marshal(b, m, deterministic) +} +func (m *StoppingCondition) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoppingCondition.Merge(m, src) +} +func (m *StoppingCondition) XXX_Size() int { + return xxx_messageInfo_StoppingCondition.Size(m) +} +func (m *StoppingCondition) XXX_DiscardUnknown() { + xxx_messageInfo_StoppingCondition.DiscardUnknown(m) +} + +var xxx_messageInfo_StoppingCondition proto.InternalMessageInfo + +func (m *StoppingCondition) GetMaxRuntimeInSeconds() int64 { + if m != nil { + return m.MaxRuntimeInSeconds + } + return 0 +} + +func (m *StoppingCondition) GetMaxWaitTimeInSeconds() int64 { + if m != nil { + return m.MaxWaitTimeInSeconds + } + return 0 +} + +type VpcConfig struct { + SecurityGroupIds []string `protobuf:"bytes,1,rep,name=SecurityGroupIds,proto3" json:"SecurityGroupIds,omitempty"` + Subnets []string `protobuf:"bytes,2,rep,name=Subnets,proto3" json:"Subnets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VpcConfig) Reset() { *m = VpcConfig{} } +func (m *VpcConfig) String() string { return proto.CompactTextString(m) } +func (*VpcConfig) ProtoMessage() {} +func (*VpcConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_030d49acd9e1f6e1, []int{3} +} + +func (m *VpcConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VpcConfig.Unmarshal(m, b) +} +func (m *VpcConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VpcConfig.Marshal(b, m, deterministic) +} +func (m *VpcConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_VpcConfig.Merge(m, src) +} +func (m *VpcConfig) XXX_Size() int { + return xxx_messageInfo_VpcConfig.Size(m) +} +func (m *VpcConfig) XXX_DiscardUnknown() { + xxx_messageInfo_VpcConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_VpcConfig proto.InternalMessageInfo + +func (m *VpcConfig) GetSecurityGroupIds() []string { + if m != nil { + return m.SecurityGroupIds + } + return nil +} + +func (m *VpcConfig) GetSubnets() []string { + if m != nil { + return m.Subnets + } + return nil +} + +type TrainingJob struct { + Region string `protobuf:"bytes,1,opt,name=Region,proto3" json:"Region,omitempty"` + RoleArn string `protobuf:"bytes,2,opt,name=RoleArn,proto3" json:"RoleArn,omitempty"` + AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,3,opt,name=AlgorithmSpecification,proto3" json:"AlgorithmSpecification,omitempty"` + ResourceConfig *ResourceConfig `protobuf:"bytes,4,opt,name=ResourceConfig,proto3" json:"ResourceConfig,omitempty"` + StoppingCondition *StoppingCondition `protobuf:"bytes,5,opt,name=StoppingCondition,proto3" json:"StoppingCondition,omitempty"` + VpcConfig *VpcConfig `protobuf:"bytes,6,opt,name=VpcConfig,proto3" json:"VpcConfig,omitempty"` + EnableSpotTraining bool `protobuf:"varint,7,opt,name=EnableSpotTraining,proto3" json:"EnableSpotTraining,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TrainingJob) Reset() { *m = TrainingJob{} } +func (m *TrainingJob) String() string { return proto.CompactTextString(m) } +func (*TrainingJob) ProtoMessage() {} +func (*TrainingJob) Descriptor() ([]byte, []int) { + return fileDescriptor_030d49acd9e1f6e1, []int{4} +} + +func (m *TrainingJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TrainingJob.Unmarshal(m, b) +} +func (m *TrainingJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TrainingJob.Marshal(b, m, deterministic) +} +func (m *TrainingJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_TrainingJob.Merge(m, src) +} +func (m *TrainingJob) XXX_Size() int { + return xxx_messageInfo_TrainingJob.Size(m) +} +func (m *TrainingJob) XXX_DiscardUnknown() { + xxx_messageInfo_TrainingJob.DiscardUnknown(m) +} + +var xxx_messageInfo_TrainingJob proto.InternalMessageInfo + +func (m *TrainingJob) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *TrainingJob) GetRoleArn() string { + if m != nil { + return m.RoleArn + } + return "" +} + +func (m *TrainingJob) GetAlgorithmSpecification() *AlgorithmSpecification { + if m != nil { + return m.AlgorithmSpecification + } + return nil +} + +func (m *TrainingJob) GetResourceConfig() *ResourceConfig { + if m != nil { + return m.ResourceConfig + } + return nil +} + +func (m *TrainingJob) GetStoppingCondition() *StoppingCondition { + if m != nil { + return m.StoppingCondition + } + return nil +} + +func (m *TrainingJob) GetVpcConfig() *VpcConfig { + if m != nil { + return m.VpcConfig + } + return nil +} + +func (m *TrainingJob) GetEnableSpotTraining() bool { + if m != nil { + return m.EnableSpotTraining + } + return false +} + +func init() { + proto.RegisterType((*AlgorithmSpecification)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification") + proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition") + proto.RegisterType((*ResourceConfig)(nil), "flyteidl.plugins.sagemaker.ResourceConfig") + proto.RegisterType((*StoppingCondition)(nil), "flyteidl.plugins.sagemaker.StoppingCondition") + proto.RegisterType((*VpcConfig)(nil), "flyteidl.plugins.sagemaker.VpcConfig") + proto.RegisterType((*TrainingJob)(nil), "flyteidl.plugins.sagemaker.TrainingJob") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/sagemaker/trainingjob.proto", fileDescriptor_030d49acd9e1f6e1) +} + +var fileDescriptor_030d49acd9e1f6e1 = []byte{ + // 561 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xdf, 0x6e, 0xd3, 0x3e, + 0x14, 0xc7, 0xd5, 0x65, 0xeb, 0x7e, 0x75, 0x7f, 0x4c, 0xab, 0x99, 0xa6, 0x68, 0x57, 0x55, 0x04, + 0xa8, 0x9a, 0xb6, 0x04, 0x75, 0xe2, 0x8e, 0x9b, 0xad, 0xa0, 0x29, 0x4c, 0x45, 0xc2, 0xa9, 0x86, + 0x04, 0x57, 0x49, 0x7a, 0xea, 0x79, 0x24, 0xb6, 0x49, 0x1c, 0xa9, 0xe1, 0x91, 0x78, 0x0d, 0x9e, + 0x80, 0x37, 0x42, 0x71, 0x93, 0xb2, 0xa4, 0x69, 0x25, 0xee, 0x72, 0xbe, 0xe7, 0xf8, 0x73, 0x7c, + 0xfe, 0xc4, 0xe8, 0x62, 0x11, 0xe5, 0x0a, 0xd8, 0x3c, 0x72, 0x64, 0x94, 0x51, 0xc6, 0x53, 0x27, + 0xf5, 0x29, 0xc4, 0xfe, 0x37, 0x48, 0x1c, 0x95, 0xf8, 0x8c, 0x33, 0x4e, 0x1f, 0x45, 0x60, 0xcb, + 0x44, 0x28, 0x81, 0xcf, 0xaa, 0x68, 0xbb, 0x8c, 0xb6, 0xd7, 0xd1, 0xd6, 0xaf, 0x3d, 0x74, 0x7a, + 0x1d, 0x51, 0x91, 0x30, 0xf5, 0x10, 0x7b, 0x12, 0x42, 0xb6, 0x60, 0xa1, 0xaf, 0x98, 0xe0, 0xf8, + 0x05, 0x7a, 0x36, 0x2b, 0x59, 0x6e, 0xec, 0x53, 0x30, 0x3b, 0xc3, 0xce, 0xa8, 0x47, 0xea, 0x22, + 0xbe, 0x40, 0x83, 0xb5, 0xc0, 0x65, 0xa6, 0xa6, 0x62, 0x0e, 0xe6, 0x9e, 0x8e, 0xdc, 0x74, 0x14, + 0xcc, 0x75, 0xb6, 0x8f, 0x7e, 0x0c, 0xa6, 0xb1, 0x62, 0xd6, 0x44, 0xfc, 0x1d, 0x0d, 0xa6, 0xa0, + 0x12, 0x16, 0xbe, 0x83, 0x05, 0xe3, 0xac, 0xb8, 0x4d, 0x6a, 0xee, 0x0f, 0x8d, 0x51, 0x7f, 0x3c, + 0xb1, 0xb7, 0x17, 0x63, 0xb7, 0x17, 0x62, 0x37, 0x59, 0x64, 0x93, 0x7e, 0xf6, 0x16, 0x1d, 0x37, + 0x45, 0x8c, 0xd1, 0xbe, 0xbe, 0xe3, 0xaa, 0x6e, 0xfd, 0x8d, 0x4f, 0xd0, 0x01, 0x01, 0x0a, 0xcb, + 0xb2, 0xc4, 0x95, 0x61, 0xfd, 0xec, 0xa0, 0x23, 0x02, 0xa9, 0xc8, 0x92, 0x10, 0x26, 0x82, 0x2f, + 0x18, 0xc5, 0x16, 0xfa, 0xdf, 0xe5, 0xa9, 0xf2, 0x79, 0x08, 0xb3, 0x5c, 0x56, 0x90, 0x9a, 0x56, + 0x74, 0xa3, 0xb2, 0x27, 0x22, 0xe3, 0x4a, 0x43, 0x0d, 0x52, 0x17, 0xf1, 0x2b, 0x74, 0x74, 0x2f, + 0xa2, 0x2c, 0x06, 0x8f, 0xfd, 0x00, 0x97, 0xdf, 0xde, 0xe8, 0xa6, 0x19, 0xa4, 0xa1, 0xfe, 0x8d, + 0xbb, 0x8b, 0xd3, 0x3b, 0xc8, 0xdd, 0xb9, 0xb9, 0xaf, 0x73, 0x36, 0x54, 0x2b, 0x47, 0x03, 0x4f, + 0x09, 0x29, 0x19, 0xa7, 0x13, 0xc1, 0xe7, 0xab, 0x5a, 0x5f, 0xa3, 0xe7, 0x53, 0x7f, 0x49, 0x32, + 0xae, 0x58, 0x0c, 0x2e, 0xf7, 0x20, 0x14, 0x7c, 0x9e, 0xea, 0x5b, 0x1b, 0xa4, 0xcd, 0x85, 0xc7, + 0xe8, 0x64, 0xea, 0x2f, 0x3f, 0xfb, 0x4c, 0xcd, 0x6a, 0x47, 0x56, 0x35, 0xb4, 0xfa, 0xac, 0x4f, + 0xa8, 0x77, 0x2f, 0xc3, 0xb2, 0x43, 0xe7, 0xe8, 0xd8, 0x83, 0x30, 0x4b, 0x98, 0xca, 0x6f, 0x13, + 0x91, 0x49, 0x57, 0xe7, 0x33, 0x46, 0x3d, 0xb2, 0xa1, 0x63, 0x13, 0x1d, 0x7a, 0x59, 0xc0, 0x41, + 0x15, 0xfc, 0x22, 0xa4, 0x32, 0xad, 0xdf, 0x06, 0xea, 0x57, 0x7b, 0xf6, 0x41, 0x04, 0xf8, 0x14, + 0x75, 0x09, 0x50, 0x26, 0x78, 0xd9, 0xf1, 0xd2, 0x2a, 0x08, 0x44, 0x44, 0x70, 0x9d, 0xf0, 0x72, + 0x74, 0x95, 0x89, 0x1f, 0xb7, 0xfd, 0x01, 0xba, 0xcf, 0xfd, 0xf1, 0xf8, 0xdf, 0x57, 0x8e, 0x6c, + 0xfb, 0xa7, 0x48, 0x73, 0x4f, 0xf4, 0x8c, 0xfa, 0xe3, 0xf3, 0x5d, 0x39, 0xea, 0x27, 0x48, 0x73, + 0xd3, 0xbe, 0xb6, 0xcc, 0xd3, 0x3c, 0xd0, 0xd8, 0xcb, 0x5d, 0xd8, 0x8d, 0x43, 0xa4, 0x65, 0x2f, + 0x26, 0x4f, 0x26, 0x66, 0x76, 0x35, 0xf4, 0xe5, 0x2e, 0xe8, 0x3a, 0x98, 0x3c, 0x99, 0xb4, 0x8d, + 0xf0, 0x7b, 0xee, 0x07, 0x11, 0x78, 0x52, 0xa8, 0x6a, 0x58, 0xe6, 0xe1, 0xb0, 0x33, 0xfa, 0x8f, + 0xb4, 0x78, 0x6e, 0xde, 0x7c, 0xb9, 0xa2, 0x4c, 0x3d, 0x64, 0x81, 0x1d, 0x8a, 0xd8, 0x89, 0xf2, + 0x85, 0x72, 0xd6, 0x0f, 0x1e, 0x05, 0xee, 0xc8, 0xe0, 0x92, 0x0a, 0xa7, 0xf9, 0x06, 0x06, 0x5d, + 0xfd, 0xdc, 0x5d, 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0xdf, 0xcf, 0x48, 0xf4, 0x1e, 0x05, 0x00, + 0x00, +} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go new file mode 100644 index 000000000..aefaf8b33 --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go @@ -0,0 +1,516 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/trainingjob.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _trainingjob_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on AlgorithmSpecification with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AlgorithmSpecification) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TrainingImage + + // no validation rules for TrainingInputMode + + // no validation rules for AlgorithmName + + for idx, item := range m.GetMetricDefinitions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AlgorithmSpecificationValidationError{ + field: fmt.Sprintf("MetricDefinitions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// AlgorithmSpecificationValidationError is the validation error returned by +// AlgorithmSpecification.Validate if the designated constraints aren't met. +type AlgorithmSpecificationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AlgorithmSpecificationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AlgorithmSpecificationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AlgorithmSpecificationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AlgorithmSpecificationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AlgorithmSpecificationValidationError) ErrorName() string { + return "AlgorithmSpecificationValidationError" +} + +// Error satisfies the builtin error interface +func (e AlgorithmSpecificationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAlgorithmSpecification.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AlgorithmSpecificationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AlgorithmSpecificationValidationError{} + +// Validate checks the field values on ResourceConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ResourceConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for InstanceType + + // no validation rules for InstanceCount + + // no validation rules for VolumeSizeInGB + + // no validation rules for VolumeKmsKeyId + + return nil +} + +// ResourceConfigValidationError is the validation error returned by +// ResourceConfig.Validate if the designated constraints aren't met. +type ResourceConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceConfigValidationError) ErrorName() string { return "ResourceConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ResourceConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResourceConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceConfigValidationError{} + +// Validate checks the field values on StoppingCondition with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *StoppingCondition) Validate() error { + if m == nil { + return nil + } + + // no validation rules for MaxRuntimeInSeconds + + // no validation rules for MaxWaitTimeInSeconds + + return nil +} + +// StoppingConditionValidationError is the validation error returned by +// StoppingCondition.Validate if the designated constraints aren't met. +type StoppingConditionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StoppingConditionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StoppingConditionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StoppingConditionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StoppingConditionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StoppingConditionValidationError) ErrorName() string { + return "StoppingConditionValidationError" +} + +// Error satisfies the builtin error interface +func (e StoppingConditionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sStoppingCondition.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StoppingConditionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StoppingConditionValidationError{} + +// Validate checks the field values on VpcConfig with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *VpcConfig) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// VpcConfigValidationError is the validation error returned by +// VpcConfig.Validate if the designated constraints aren't met. +type VpcConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e VpcConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e VpcConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e VpcConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e VpcConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e VpcConfigValidationError) ErrorName() string { return "VpcConfigValidationError" } + +// Error satisfies the builtin error interface +func (e VpcConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sVpcConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = VpcConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = VpcConfigValidationError{} + +// Validate checks the field values on TrainingJob with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TrainingJob) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Region + + // no validation rules for RoleArn + + if v, ok := interface{}(m.GetAlgorithmSpecification()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TrainingJobValidationError{ + field: "AlgorithmSpecification", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetResourceConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TrainingJobValidationError{ + field: "ResourceConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetStoppingCondition()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TrainingJobValidationError{ + field: "StoppingCondition", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetVpcConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TrainingJobValidationError{ + field: "VpcConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for EnableSpotTraining + + return nil +} + +// TrainingJobValidationError is the validation error returned by +// TrainingJob.Validate if the designated constraints aren't met. +type TrainingJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TrainingJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TrainingJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TrainingJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TrainingJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TrainingJobValidationError) ErrorName() string { return "TrainingJobValidationError" } + +// Error satisfies the builtin error interface +func (e TrainingJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTrainingJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TrainingJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TrainingJobValidationError{} + +// Validate checks the field values on AlgorithmSpecification_MetricDefinition +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *AlgorithmSpecification_MetricDefinition) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Regex + + return nil +} + +// AlgorithmSpecification_MetricDefinitionValidationError is the validation +// error returned by AlgorithmSpecification_MetricDefinition.Validate if the +// designated constraints aren't met. +type AlgorithmSpecification_MetricDefinitionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AlgorithmSpecification_MetricDefinitionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AlgorithmSpecification_MetricDefinitionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AlgorithmSpecification_MetricDefinitionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AlgorithmSpecification_MetricDefinitionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AlgorithmSpecification_MetricDefinitionValidationError) ErrorName() string { + return "AlgorithmSpecification_MetricDefinitionValidationError" +} + +// Error satisfies the builtin error interface +func (e AlgorithmSpecification_MetricDefinitionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAlgorithmSpecification_MetricDefinition.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AlgorithmSpecification_MetricDefinitionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AlgorithmSpecification_MetricDefinitionValidationError{} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java new file mode 100644 index 000000000..e699158a0 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -0,0 +1,2300 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/hpojob.proto + +package flyteidl.plugins.sagemaker; + +public final class Hpojob { + private Hpojob() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface HPOJobObjectiveOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJobObjective) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + */ + int getTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + */ + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getType(); + + /** + * string MetricName = 2; + */ + java.lang.String getMetricName(); + /** + * string MetricName = 2; + */ + com.google.protobuf.ByteString + getMetricNameBytes(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobObjective} + */ + public static final class HPOJobObjective extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJobObjective) + HPOJobObjectiveOrBuilder { + private static final long serialVersionUID = 0L; + // Use HPOJobObjective.newBuilder() to construct. + private HPOJobObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HPOJobObjective() { + type_ = 0; + metricName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HPOJobObjective( + 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 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + metricName_ = 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 flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.class, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType} + */ + public enum HPOJobObjectiveType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MINIMIZE = 0; + */ + MINIMIZE(0), + /** + * MAXIMIZE = 1; + */ + MAXIMIZE(1), + UNRECOGNIZED(-1), + ; + + /** + * MINIMIZE = 0; + */ + public static final int MINIMIZE_VALUE = 0; + /** + * MAXIMIZE = 1; + */ + public static final int MAXIMIZE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HPOJobObjectiveType valueOf(int value) { + return forNumber(value); + } + + public static HPOJobObjectiveType forNumber(int value) { + switch (value) { + case 0: return MINIMIZE; + case 1: return MAXIMIZE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HPOJobObjectiveType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HPOJobObjectiveType findValueByNumber(int number) { + return HPOJobObjectiveType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.getDescriptor().getEnumTypes().get(0); + } + + private static final HPOJobObjectiveType[] VALUES = values(); + + public static HPOJobObjectiveType 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 HPOJobObjectiveType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + */ + public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType result = flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.valueOf(type_); + return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.UNRECOGNIZED : result; + } + + public static final int METRICNAME_FIELD_NUMBER = 2; + private volatile java.lang.Object metricName_; + /** + * string MetricName = 2; + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + 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(); + metricName_ = s; + return s; + } + } + /** + * string MetricName = 2; + */ + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = 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 (type_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.MINIMIZE.getNumber()) { + output.writeEnum(1, type_); + } + if (!getMetricNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.MINIMIZE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!getMetricNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricName_); + } + 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 flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective other = (flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective) obj; + + if (type_ != other.type_) return false; + if (!getMetricName() + .equals(other.getMetricName())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + METRICNAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective 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 flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective 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 flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective 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(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective 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 flyteidl.plugins.sagemaker.HPOJobObjective} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobObjective) + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.class, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.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(); + type_ = 0; + + metricName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective build() { + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective buildPartial() { + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective result = new flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective(this); + result.type_ = type_; + result.metricName_ = metricName_; + 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 flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective) { + return mergeFrom((flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective other) { + if (other == flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + 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 { + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + */ + public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType result = flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.valueOf(type_); + return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + */ + public Builder setType(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object metricName_ = ""; + /** + * string MetricName = 2; + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string MetricName = 2; + */ + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string MetricName = 2; + */ + public Builder setMetricName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metricName_ = value; + onChanged(); + return this; + } + /** + * string MetricName = 2; + */ + public Builder clearMetricName() { + + metricName_ = getDefaultInstance().getMetricName(); + onChanged(); + return this; + } + /** + * string MetricName = 2; + */ + public Builder setMetricNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metricName_ = 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:flyteidl.plugins.sagemaker.HPOJobObjective) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobObjective) + private static final flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective(); + } + + public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HPOJobObjective parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HPOJobObjective(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 flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HPOJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * will impact output, should be in input, not custom
+     * 
+ * + * string Strategy = 1; + */ + java.lang.String getStrategy(); + /** + *
+     * will impact output, should be in input, not custom
+     * 
+ * + * string Strategy = 1; + */ + com.google.protobuf.ByteString + getStrategyBytes(); + + /** + *
+     * // will impact output, should be in input, not custom
+     * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + boolean hasObjective(); + /** + *
+     * // will impact output, should be in input, not custom
+     * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective getObjective(); + /** + *
+     * // will impact output, should be in input, not custom
+     * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder getObjectiveOrBuilder(); + + /** + * int64 MaxNumberOfTrainingJobs = 3; + */ + long getMaxNumberOfTrainingJobs(); + + /** + * int64 MaxParallelTrainingJobs = 4; + */ + long getMaxParallelTrainingJobs(); + + /** + *
+     * will impact output, should be in input, not custom
+     * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + boolean hasParameterRanges(); + /** + *
+     * will impact output, should be in input, not custom
+     * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getParameterRanges(); + /** + *
+     * will impact output, should be in input, not custom
+     * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder getParameterRangesOrBuilder(); + + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + boolean hasTrainingJob(); + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob(); + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJob} + */ + public static final class HPOJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJob) + HPOJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use HPOJob.newBuilder() to construct. + private HPOJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HPOJob() { + strategy_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HPOJob( + 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(); + + strategy_ = s; + break; + } + case 18: { + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder subBuilder = null; + if (objective_ != null) { + subBuilder = objective_.toBuilder(); + } + objective_ = input.readMessage(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(objective_); + objective_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + maxNumberOfTrainingJobs_ = input.readInt64(); + break; + } + case 32: { + + maxParallelTrainingJobs_ = input.readInt64(); + break; + } + case 42: { + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder subBuilder = null; + if (parameterRanges_ != null) { + subBuilder = parameterRanges_.toBuilder(); + } + parameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameterRanges_); + parameterRanges_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder subBuilder = null; + if (trainingJob_ != null) { + subBuilder = trainingJob_.toBuilder(); + } + trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingJob_); + trainingJob_ = 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 flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Hpojob.HPOJob.class, flyteidl.plugins.sagemaker.Hpojob.HPOJob.Builder.class); + } + + public static final int STRATEGY_FIELD_NUMBER = 1; + private volatile java.lang.Object strategy_; + /** + *
+     * will impact output, should be in input, not custom
+     * 
+ * + * string Strategy = 1; + */ + public java.lang.String getStrategy() { + java.lang.Object ref = strategy_; + 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(); + strategy_ = s; + return s; + } + } + /** + *
+     * will impact output, should be in input, not custom
+     * 
+ * + * string Strategy = 1; + */ + public com.google.protobuf.ByteString + getStrategyBytes() { + java.lang.Object ref = strategy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + strategy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECTIVE_FIELD_NUMBER = 2; + private flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective objective_; + /** + *
+     * // will impact output, should be in input, not custom
+     * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + public boolean hasObjective() { + return objective_ != null; + } + /** + *
+     * // will impact output, should be in input, not custom
+     * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective getObjective() { + return objective_ == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.getDefaultInstance() : objective_; + } + /** + *
+     * // will impact output, should be in input, not custom
+     * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { + return getObjective(); + } + + public static final int MAXNUMBEROFTRAININGJOBS_FIELD_NUMBER = 3; + private long maxNumberOfTrainingJobs_; + /** + * int64 MaxNumberOfTrainingJobs = 3; + */ + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; + } + + public static final int MAXPARALLELTRAININGJOBS_FIELD_NUMBER = 4; + private long maxParallelTrainingJobs_; + /** + * int64 MaxParallelTrainingJobs = 4; + */ + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; + } + + public static final int PARAMETERRANGES_FIELD_NUMBER = 5; + private flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parameterRanges_; + /** + *
+     * will impact output, should be in input, not custom
+     * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + public boolean hasParameterRanges() { + return parameterRanges_ != null; + } + /** + *
+     * will impact output, should be in input, not custom
+     * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getParameterRanges() { + return parameterRanges_ == null ? flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance() : parameterRanges_; + } + /** + *
+     * will impact output, should be in input, not custom
+     * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder getParameterRangesOrBuilder() { + return getParameterRanges(); + } + + public static final int TRAININGJOB_FIELD_NUMBER = 6; + private flyteidl.plugins.sagemaker.Trainingjob.TrainingJob trainingJob_; + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + public boolean hasTrainingJob() { + return trainingJob_ != null; + } + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() { + return trainingJob_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_; + } + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder() { + return getTrainingJob(); + } + + 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 (!getStrategyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, strategy_); + } + if (objective_ != null) { + output.writeMessage(2, getObjective()); + } + if (maxNumberOfTrainingJobs_ != 0L) { + output.writeInt64(3, maxNumberOfTrainingJobs_); + } + if (maxParallelTrainingJobs_ != 0L) { + output.writeInt64(4, maxParallelTrainingJobs_); + } + if (parameterRanges_ != null) { + output.writeMessage(5, getParameterRanges()); + } + if (trainingJob_ != null) { + output.writeMessage(6, getTrainingJob()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getStrategyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, strategy_); + } + if (objective_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getObjective()); + } + if (maxNumberOfTrainingJobs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, maxNumberOfTrainingJobs_); + } + if (maxParallelTrainingJobs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, maxParallelTrainingJobs_); + } + if (parameterRanges_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getParameterRanges()); + } + if (trainingJob_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getTrainingJob()); + } + 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 flyteidl.plugins.sagemaker.Hpojob.HPOJob)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Hpojob.HPOJob other = (flyteidl.plugins.sagemaker.Hpojob.HPOJob) obj; + + if (!getStrategy() + .equals(other.getStrategy())) return false; + if (hasObjective() != other.hasObjective()) return false; + if (hasObjective()) { + if (!getObjective() + .equals(other.getObjective())) return false; + } + if (getMaxNumberOfTrainingJobs() + != other.getMaxNumberOfTrainingJobs()) return false; + if (getMaxParallelTrainingJobs() + != other.getMaxParallelTrainingJobs()) return false; + if (hasParameterRanges() != other.hasParameterRanges()) return false; + if (hasParameterRanges()) { + if (!getParameterRanges() + .equals(other.getParameterRanges())) return false; + } + if (hasTrainingJob() != other.hasTrainingJob()) return false; + if (hasTrainingJob()) { + if (!getTrainingJob() + .equals(other.getTrainingJob())) 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) + STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getStrategy().hashCode(); + if (hasObjective()) { + hash = (37 * hash) + OBJECTIVE_FIELD_NUMBER; + hash = (53 * hash) + getObjective().hashCode(); + } + hash = (37 * hash) + MAXNUMBEROFTRAININGJOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxNumberOfTrainingJobs()); + hash = (37 * hash) + MAXPARALLELTRAININGJOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxParallelTrainingJobs()); + if (hasParameterRanges()) { + hash = (37 * hash) + PARAMETERRANGES_FIELD_NUMBER; + hash = (53 * hash) + getParameterRanges().hashCode(); + } + if (hasTrainingJob()) { + hash = (37 * hash) + TRAININGJOB_FIELD_NUMBER; + hash = (53 * hash) + getTrainingJob().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJob 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 flyteidl.plugins.sagemaker.Hpojob.HPOJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJob 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 flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Hpojob.HPOJob 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(flyteidl.plugins.sagemaker.Hpojob.HPOJob 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 flyteidl.plugins.sagemaker.HPOJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJob) + flyteidl.plugins.sagemaker.Hpojob.HPOJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Hpojob.HPOJob.class, flyteidl.plugins.sagemaker.Hpojob.HPOJob.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Hpojob.HPOJob.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(); + strategy_ = ""; + + if (objectiveBuilder_ == null) { + objective_ = null; + } else { + objective_ = null; + objectiveBuilder_ = null; + } + maxNumberOfTrainingJobs_ = 0L; + + maxParallelTrainingJobs_ = 0L; + + if (parameterRangesBuilder_ == null) { + parameterRanges_ = null; + } else { + parameterRanges_ = null; + parameterRangesBuilder_ = null; + } + if (trainingJobBuilder_ == null) { + trainingJob_ = null; + } else { + trainingJob_ = null; + trainingJobBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Hpojob.HPOJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Hpojob.HPOJob build() { + flyteidl.plugins.sagemaker.Hpojob.HPOJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Hpojob.HPOJob buildPartial() { + flyteidl.plugins.sagemaker.Hpojob.HPOJob result = new flyteidl.plugins.sagemaker.Hpojob.HPOJob(this); + result.strategy_ = strategy_; + if (objectiveBuilder_ == null) { + result.objective_ = objective_; + } else { + result.objective_ = objectiveBuilder_.build(); + } + result.maxNumberOfTrainingJobs_ = maxNumberOfTrainingJobs_; + result.maxParallelTrainingJobs_ = maxParallelTrainingJobs_; + if (parameterRangesBuilder_ == null) { + result.parameterRanges_ = parameterRanges_; + } else { + result.parameterRanges_ = parameterRangesBuilder_.build(); + } + if (trainingJobBuilder_ == null) { + result.trainingJob_ = trainingJob_; + } else { + result.trainingJob_ = trainingJobBuilder_.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 flyteidl.plugins.sagemaker.Hpojob.HPOJob) { + return mergeFrom((flyteidl.plugins.sagemaker.Hpojob.HPOJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Hpojob.HPOJob other) { + if (other == flyteidl.plugins.sagemaker.Hpojob.HPOJob.getDefaultInstance()) return this; + if (!other.getStrategy().isEmpty()) { + strategy_ = other.strategy_; + onChanged(); + } + if (other.hasObjective()) { + mergeObjective(other.getObjective()); + } + if (other.getMaxNumberOfTrainingJobs() != 0L) { + setMaxNumberOfTrainingJobs(other.getMaxNumberOfTrainingJobs()); + } + if (other.getMaxParallelTrainingJobs() != 0L) { + setMaxParallelTrainingJobs(other.getMaxParallelTrainingJobs()); + } + if (other.hasParameterRanges()) { + mergeParameterRanges(other.getParameterRanges()); + } + if (other.hasTrainingJob()) { + mergeTrainingJob(other.getTrainingJob()); + } + 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 { + flyteidl.plugins.sagemaker.Hpojob.HPOJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Hpojob.HPOJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object strategy_ = ""; + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * string Strategy = 1; + */ + public java.lang.String getStrategy() { + java.lang.Object ref = strategy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + strategy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * string Strategy = 1; + */ + public com.google.protobuf.ByteString + getStrategyBytes() { + java.lang.Object ref = strategy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + strategy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * string Strategy = 1; + */ + public Builder setStrategy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + strategy_ = value; + onChanged(); + return this; + } + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * string Strategy = 1; + */ + public Builder clearStrategy() { + + strategy_ = getDefaultInstance().getStrategy(); + onChanged(); + return this; + } + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * string Strategy = 1; + */ + public Builder setStrategyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + strategy_ = value; + onChanged(); + return this; + } + + private flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective objective_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder> objectiveBuilder_; + /** + *
+       * // will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + public boolean hasObjective() { + return objectiveBuilder_ != null || objective_ != null; + } + /** + *
+       * // will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective getObjective() { + if (objectiveBuilder_ == null) { + return objective_ == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.getDefaultInstance() : objective_; + } else { + return objectiveBuilder_.getMessage(); + } + } + /** + *
+       * // will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + public Builder setObjective(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective value) { + if (objectiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + objective_ = value; + onChanged(); + } else { + objectiveBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * // will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + public Builder setObjective( + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder builderForValue) { + if (objectiveBuilder_ == null) { + objective_ = builderForValue.build(); + onChanged(); + } else { + objectiveBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * // will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + public Builder mergeObjective(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective value) { + if (objectiveBuilder_ == null) { + if (objective_ != null) { + objective_ = + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.newBuilder(objective_).mergeFrom(value).buildPartial(); + } else { + objective_ = value; + } + onChanged(); + } else { + objectiveBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * // will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + public Builder clearObjective() { + if (objectiveBuilder_ == null) { + objective_ = null; + onChanged(); + } else { + objective_ = null; + objectiveBuilder_ = null; + } + + return this; + } + /** + *
+       * // will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder getObjectiveBuilder() { + + onChanged(); + return getObjectiveFieldBuilder().getBuilder(); + } + /** + *
+       * // will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { + if (objectiveBuilder_ != null) { + return objectiveBuilder_.getMessageOrBuilder(); + } else { + return objective_ == null ? + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.getDefaultInstance() : objective_; + } + } + /** + *
+       * // will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder> + getObjectiveFieldBuilder() { + if (objectiveBuilder_ == null) { + objectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder>( + getObjective(), + getParentForChildren(), + isClean()); + objective_ = null; + } + return objectiveBuilder_; + } + + private long maxNumberOfTrainingJobs_ ; + /** + * int64 MaxNumberOfTrainingJobs = 3; + */ + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; + } + /** + * int64 MaxNumberOfTrainingJobs = 3; + */ + public Builder setMaxNumberOfTrainingJobs(long value) { + + maxNumberOfTrainingJobs_ = value; + onChanged(); + return this; + } + /** + * int64 MaxNumberOfTrainingJobs = 3; + */ + public Builder clearMaxNumberOfTrainingJobs() { + + maxNumberOfTrainingJobs_ = 0L; + onChanged(); + return this; + } + + private long maxParallelTrainingJobs_ ; + /** + * int64 MaxParallelTrainingJobs = 4; + */ + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; + } + /** + * int64 MaxParallelTrainingJobs = 4; + */ + public Builder setMaxParallelTrainingJobs(long value) { + + maxParallelTrainingJobs_ = value; + onChanged(); + return this; + } + /** + * int64 MaxParallelTrainingJobs = 4; + */ + public Builder clearMaxParallelTrainingJobs() { + + maxParallelTrainingJobs_ = 0L; + onChanged(); + return this; + } + + private flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parameterRanges_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder> parameterRangesBuilder_; + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + public boolean hasParameterRanges() { + return parameterRangesBuilder_ != null || parameterRanges_ != null; + } + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getParameterRanges() { + if (parameterRangesBuilder_ == null) { + return parameterRanges_ == null ? flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance() : parameterRanges_; + } else { + return parameterRangesBuilder_.getMessage(); + } + } + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + public Builder setParameterRanges(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges value) { + if (parameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRanges_ = value; + onChanged(); + } else { + parameterRangesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + public Builder setParameterRanges( + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder builderForValue) { + if (parameterRangesBuilder_ == null) { + parameterRanges_ = builderForValue.build(); + onChanged(); + } else { + parameterRangesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + public Builder mergeParameterRanges(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges value) { + if (parameterRangesBuilder_ == null) { + if (parameterRanges_ != null) { + parameterRanges_ = + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.newBuilder(parameterRanges_).mergeFrom(value).buildPartial(); + } else { + parameterRanges_ = value; + } + onChanged(); + } else { + parameterRangesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + public Builder clearParameterRanges() { + if (parameterRangesBuilder_ == null) { + parameterRanges_ = null; + onChanged(); + } else { + parameterRanges_ = null; + parameterRangesBuilder_ = null; + } + + return this; + } + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder getParameterRangesBuilder() { + + onChanged(); + return getParameterRangesFieldBuilder().getBuilder(); + } + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder getParameterRangesOrBuilder() { + if (parameterRangesBuilder_ != null) { + return parameterRangesBuilder_.getMessageOrBuilder(); + } else { + return parameterRanges_ == null ? + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance() : parameterRanges_; + } + } + /** + *
+       * will impact output, should be in input, not custom
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder> + getParameterRangesFieldBuilder() { + if (parameterRangesBuilder_ == null) { + parameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder>( + getParameterRanges(), + getParentForChildren(), + isClean()); + parameterRanges_ = null; + } + return parameterRangesBuilder_; + } + + private flyteidl.plugins.sagemaker.Trainingjob.TrainingJob trainingJob_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder> trainingJobBuilder_; + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + public boolean hasTrainingJob() { + return trainingJobBuilder_ != null || trainingJob_ != null; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() { + if (trainingJobBuilder_ == null) { + return trainingJob_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_; + } else { + return trainingJobBuilder_.getMessage(); + } + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + public Builder setTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob value) { + if (trainingJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingJob_ = value; + onChanged(); + } else { + trainingJobBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + public Builder setTrainingJob( + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder builderForValue) { + if (trainingJobBuilder_ == null) { + trainingJob_ = builderForValue.build(); + onChanged(); + } else { + trainingJobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob value) { + if (trainingJobBuilder_ == null) { + if (trainingJob_ != null) { + trainingJob_ = + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); + } else { + trainingJob_ = value; + } + onChanged(); + } else { + trainingJobBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + public Builder clearTrainingJob() { + if (trainingJobBuilder_ == null) { + trainingJob_ = null; + onChanged(); + } else { + trainingJob_ = null; + trainingJobBuilder_ = null; + } + + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder getTrainingJobBuilder() { + + onChanged(); + return getTrainingJobFieldBuilder().getBuilder(); + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder() { + if (trainingJobBuilder_ != null) { + return trainingJobBuilder_.getMessageOrBuilder(); + } else { + return trainingJob_ == null ? + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_; + } + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder> + getTrainingJobFieldBuilder() { + if (trainingJobBuilder_ == null) { + trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder>( + getTrainingJob(), + getParentForChildren(), + isClean()); + trainingJob_ = null; + } + return trainingJobBuilder_; + } + @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:flyteidl.plugins.sagemaker.HPOJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) + private static final flyteidl.plugins.sagemaker.Hpojob.HPOJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Hpojob.HPOJob(); + } + + public static flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HPOJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HPOJob(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 flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HPOJob_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\'flyteidl/plugins/sagemaker/hpojob.prot" + + "o\022\032flyteidl.plugins.sagemaker\0320flyteidl/" + + "plugins/sagemaker/parameterranges.proto\032" + + ",flyteidl/plugins/sagemaker/trainingjob." + + "proto\"\247\001\n\017HPOJobObjective\022M\n\004Type\030\001 \001(\0162" + + "?.flyteidl.plugins.sagemaker.HPOJobObjec" + + "tive.HPOJobObjectiveType\022\022\n\nMetricName\030\002" + + " \001(\t\"1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE\020" + + "\000\022\014\n\010MAXIMIZE\020\001\"\240\002\n\006HPOJob\022\020\n\010Strategy\030\001" + + " \001(\t\022>\n\tObjective\030\002 \001(\0132+.flyteidl.plugi" + + "ns.sagemaker.HPOJobObjective\022\037\n\027MaxNumbe" + + "rOfTrainingJobs\030\003 \001(\003\022\037\n\027MaxParallelTrai" + + "ningJobs\030\004 \001(\003\022D\n\017ParameterRanges\030\005 \001(\0132" + + "+.flyteidl.plugins.sagemaker.ParameterRa" + + "nges\022<\n\013TrainingJob\030\006 \001(\0132\'.flyteidl.plu" + + "gins.sagemaker.TrainingJobB5Z3github.com" + + "/lyft/flyteidl/gen/pb-go/flyteidl/plugin" + + "sb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.plugins.sagemaker.Parameterranges.getDescriptor(), + flyteidl.plugins.sagemaker.Trainingjob.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor, + new java.lang.String[] { "Type", "MetricName", }); + internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor, + new java.lang.String[] { "Strategy", "Objective", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", "ParameterRanges", "TrainingJob", }); + flyteidl.plugins.sagemaker.Parameterranges.getDescriptor(); + flyteidl.plugins.sagemaker.Trainingjob.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java b/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java new file mode 100644 index 000000000..0c7e8c07d --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java @@ -0,0 +1,3975 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/parameterranges.proto + +package flyteidl.plugins.sagemaker; + +public final class Parameterranges { + private Parameterranges() {} + 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 flyteidl.plugins.sagemaker.HyperparameterScalingType} + */ + public enum HyperparameterScalingType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * AUTO = 0; + */ + AUTO(0), + /** + * LINEAR = 1; + */ + LINEAR(1), + /** + * LOGARITHMIC = 2; + */ + LOGARITHMIC(2), + /** + * REVERSELOGARITHMIC = 3; + */ + REVERSELOGARITHMIC(3), + UNRECOGNIZED(-1), + ; + + /** + * AUTO = 0; + */ + public static final int AUTO_VALUE = 0; + /** + * LINEAR = 1; + */ + public static final int LINEAR_VALUE = 1; + /** + * LOGARITHMIC = 2; + */ + public static final int LOGARITHMIC_VALUE = 2; + /** + * REVERSELOGARITHMIC = 3; + */ + public static final int REVERSELOGARITHMIC_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HyperparameterScalingType valueOf(int value) { + return forNumber(value); + } + + public static HyperparameterScalingType forNumber(int value) { + switch (value) { + case 0: return AUTO; + case 1: return LINEAR; + case 2: return LOGARITHMIC; + case 3: return REVERSELOGARITHMIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HyperparameterScalingType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HyperparameterScalingType findValueByNumber(int number) { + return HyperparameterScalingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.Parameterranges.getDescriptor().getEnumTypes().get(0); + } + + private static final HyperparameterScalingType[] VALUES = values(); + + public static HyperparameterScalingType 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 HyperparameterScalingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) + } + + public interface ContinuousParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ContinuousParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * double MaxValue = 1; + */ + double getMaxValue(); + + /** + * double MinValue = 2; + */ + double getMinValue(); + + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + int getScalingTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} + */ + public static final class ContinuousParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ContinuousParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContinuousParameterRange.newBuilder() to construct. + private ContinuousParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContinuousParameterRange() { + scalingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContinuousParameterRange( + 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 9: { + + maxValue_ = input.readDouble(); + break; + } + case 17: { + + minValue_ = input.readDouble(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + scalingType_ = rawValue; + 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 flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder.class); + } + + public static final int MAXVALUE_FIELD_NUMBER = 1; + private double maxValue_; + /** + * double MaxValue = 1; + */ + public double getMaxValue() { + return maxValue_; + } + + public static final int MINVALUE_FIELD_NUMBER = 2; + private double minValue_; + /** + * double MinValue = 2; + */ + public double getMinValue() { + return minValue_; + } + + public static final int SCALINGTYPE_FIELD_NUMBER = 3; + private int scalingType_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; + } + + 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 (maxValue_ != 0D) { + output.writeDouble(1, maxValue_); + } + if (minValue_ != 0D) { + output.writeDouble(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { + output.writeEnum(3, scalingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxValue_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, maxValue_); + } + if (minValue_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, scalingType_); + } + 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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) obj; + + if (java.lang.Double.doubleToLongBits(getMaxValue()) + != java.lang.Double.doubleToLongBits( + other.getMaxValue())) return false; + if (java.lang.Double.doubleToLongBits(getMinValue()) + != java.lang.Double.doubleToLongBits( + other.getMinValue())) return false; + if (scalingType_ != other.scalingType_) 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) + MAXVALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaxValue())); + hash = (37 * hash) + MINVALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinValue())); + hash = (37 * hash) + SCALINGTYPE_FIELD_NUMBER; + hash = (53 * hash) + scalingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange 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(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ContinuousParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.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(); + maxValue_ = 0D; + + minValue_ = 0D; + + scalingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange build() { + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange buildPartial() { + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange(this); + result.maxValue_ = maxValue_; + result.minValue_ = minValue_; + result.scalingType_ = scalingType_; + 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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange other) { + if (other == flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance()) return this; + if (other.getMaxValue() != 0D) { + setMaxValue(other.getMaxValue()); + } + if (other.getMinValue() != 0D) { + setMinValue(other.getMinValue()); + } + if (other.scalingType_ != 0) { + setScalingTypeValue(other.getScalingTypeValue()); + } + 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 { + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double maxValue_ ; + /** + * double MaxValue = 1; + */ + public double getMaxValue() { + return maxValue_; + } + /** + * double MaxValue = 1; + */ + public Builder setMaxValue(double value) { + + maxValue_ = value; + onChanged(); + return this; + } + /** + * double MaxValue = 1; + */ + public Builder clearMaxValue() { + + maxValue_ = 0D; + onChanged(); + return this; + } + + private double minValue_ ; + /** + * double MinValue = 2; + */ + public double getMinValue() { + return minValue_; + } + /** + * double MinValue = 2; + */ + public Builder setMinValue(double value) { + + minValue_ = value; + onChanged(); + return this; + } + /** + * double MinValue = 2; + */ + public Builder clearMinValue() { + + minValue_ = 0D; + onChanged(); + return this; + } + + private int scalingType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public Builder setScalingTypeValue(int value) { + scalingType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public Builder setScalingType(flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType value) { + if (value == null) { + throw new NullPointerException(); + } + + scalingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public Builder clearScalingType() { + + scalingType_ = 0; + 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:flyteidl.plugins.sagemaker.ContinuousParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) + private static final flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange(); + } + + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContinuousParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContinuousParameterRange(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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IntegerParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.IntegerParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * float MaxValue = 1; + */ + float getMaxValue(); + + /** + * float MinValue = 2; + */ + float getMinValue(); + + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + int getScalingTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} + */ + public static final class IntegerParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) + IntegerParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntegerParameterRange.newBuilder() to construct. + private IntegerParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IntegerParameterRange() { + scalingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IntegerParameterRange( + 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 13: { + + maxValue_ = input.readFloat(); + break; + } + case 21: { + + minValue_ = input.readFloat(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + scalingType_ = rawValue; + 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 flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder.class); + } + + public static final int MAXVALUE_FIELD_NUMBER = 1; + private float maxValue_; + /** + * float MaxValue = 1; + */ + public float getMaxValue() { + return maxValue_; + } + + public static final int MINVALUE_FIELD_NUMBER = 2; + private float minValue_; + /** + * float MinValue = 2; + */ + public float getMinValue() { + return minValue_; + } + + public static final int SCALINGTYPE_FIELD_NUMBER = 3; + private int scalingType_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; + } + + 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 (maxValue_ != 0F) { + output.writeFloat(1, maxValue_); + } + if (minValue_ != 0F) { + output.writeFloat(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { + output.writeEnum(3, scalingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxValue_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, maxValue_); + } + if (minValue_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, scalingType_); + } + 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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange other = (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) obj; + + if (java.lang.Float.floatToIntBits(getMaxValue()) + != java.lang.Float.floatToIntBits( + other.getMaxValue())) return false; + if (java.lang.Float.floatToIntBits(getMinValue()) + != java.lang.Float.floatToIntBits( + other.getMinValue())) return false; + if (scalingType_ != other.scalingType_) 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) + MAXVALUE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMaxValue()); + hash = (37 * hash) + MINVALUE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMinValue()); + hash = (37 * hash) + SCALINGTYPE_FIELD_NUMBER; + hash = (53 * hash) + scalingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange 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(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange 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 flyteidl.plugins.sagemaker.IntegerParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.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(); + maxValue_ = 0F; + + minValue_ = 0F; + + scalingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange build() { + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange buildPartial() { + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange result = new flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange(this); + result.maxValue_ = maxValue_; + result.minValue_ = minValue_; + result.scalingType_ = scalingType_; + 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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange other) { + if (other == flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance()) return this; + if (other.getMaxValue() != 0F) { + setMaxValue(other.getMaxValue()); + } + if (other.getMinValue() != 0F) { + setMinValue(other.getMinValue()); + } + if (other.scalingType_ != 0) { + setScalingTypeValue(other.getScalingTypeValue()); + } + 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 { + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private float maxValue_ ; + /** + * float MaxValue = 1; + */ + public float getMaxValue() { + return maxValue_; + } + /** + * float MaxValue = 1; + */ + public Builder setMaxValue(float value) { + + maxValue_ = value; + onChanged(); + return this; + } + /** + * float MaxValue = 1; + */ + public Builder clearMaxValue() { + + maxValue_ = 0F; + onChanged(); + return this; + } + + private float minValue_ ; + /** + * float MinValue = 2; + */ + public float getMinValue() { + return minValue_; + } + /** + * float MinValue = 2; + */ + public Builder setMinValue(float value) { + + minValue_ = value; + onChanged(); + return this; + } + /** + * float MinValue = 2; + */ + public Builder clearMinValue() { + + minValue_ = 0F; + onChanged(); + return this; + } + + private int scalingType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public Builder setScalingTypeValue(int value) { + scalingType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public Builder setScalingType(flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType value) { + if (value == null) { + throw new NullPointerException(); + } + + scalingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + */ + public Builder clearScalingType() { + + scalingType_ = 0; + 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:flyteidl.plugins.sagemaker.IntegerParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) + private static final flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange(); + } + + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntegerParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IntegerParameterRange(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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CategoricalParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.CategoricalParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string Values = 1; + */ + java.util.List + getValuesList(); + /** + * repeated string Values = 1; + */ + int getValuesCount(); + /** + * repeated string Values = 1; + */ + java.lang.String getValues(int index); + /** + * repeated string Values = 1; + */ + com.google.protobuf.ByteString + getValuesBytes(int index); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} + */ + public static final class CategoricalParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) + CategoricalParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CategoricalParameterRange.newBuilder() to construct. + private CategoricalParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CategoricalParameterRange() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CategoricalParameterRange( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add(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)) { + values_ = values_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList values_; + /** + * repeated string Values = 1; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_; + } + /** + * repeated string Values = 1; + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string Values = 1; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string Values = 1; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(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 < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + 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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) obj; + + if (!getValuesList() + .equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange 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(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.CategoricalParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.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(); + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange build() { + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange buildPartial() { + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + 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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange other) { + if (other == flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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 { + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string Values = 1; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * repeated string Values = 1; + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string Values = 1; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string Values = 1; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * repeated string Values = 1; + */ + public Builder setValues( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string Values = 1; + */ + public Builder addValues( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * repeated string Values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + return this; + } + /** + * repeated string Values = 1; + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string Values = 1; + */ + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(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:flyteidl.plugins.sagemaker.CategoricalParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) + private static final flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange(); + } + + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CategoricalParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CategoricalParameterRange(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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterRangeOneOfOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + boolean hasContinuousParameterRange(); + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange(); + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + boolean hasIntegerParameterRange(); + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange(); + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + boolean hasCategoricalParameterRange(); + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange(); + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder(); + + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.ParameterRangeTypesCase getParameterRangeTypesCase(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf} + */ + public static final class ParameterRangeOneOf extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ParameterRangeOneOfOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterRangeOneOf.newBuilder() to construct. + private ParameterRangeOneOf(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterRangeOneOf() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterRangeOneOf( + 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: { + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder subBuilder = null; + if (parameterRangeTypesCase_ == 1) { + subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_).toBuilder(); + } + parameterRangeTypes_ = + input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_); + parameterRangeTypes_ = subBuilder.buildPartial(); + } + parameterRangeTypesCase_ = 1; + break; + } + case 18: { + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder subBuilder = null; + if (parameterRangeTypesCase_ == 2) { + subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_).toBuilder(); + } + parameterRangeTypes_ = + input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_); + parameterRangeTypes_ = subBuilder.buildPartial(); + } + parameterRangeTypesCase_ = 2; + break; + } + case 26: { + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder subBuilder = null; + if (parameterRangeTypesCase_ == 3) { + subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_).toBuilder(); + } + parameterRangeTypes_ = + input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_); + parameterRangeTypes_ = subBuilder.buildPartial(); + } + parameterRangeTypesCase_ = 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 flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.Builder.class); + } + + private int parameterRangeTypesCase_ = 0; + private java.lang.Object parameterRangeTypes_; + public enum ParameterRangeTypesCase + implements com.google.protobuf.Internal.EnumLite { + CONTINUOUSPARAMETERRANGE(1), + INTEGERPARAMETERRANGE(2), + CATEGORICALPARAMETERRANGE(3), + PARAMETERRANGETYPES_NOT_SET(0); + private final int value; + private ParameterRangeTypesCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ParameterRangeTypesCase valueOf(int value) { + return forNumber(value); + } + + public static ParameterRangeTypesCase forNumber(int value) { + switch (value) { + case 1: return CONTINUOUSPARAMETERRANGE; + case 2: return INTEGERPARAMETERRANGE; + case 3: return CATEGORICALPARAMETERRANGE; + case 0: return PARAMETERRANGETYPES_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ParameterRangeTypesCase + getParameterRangeTypesCase() { + return ParameterRangeTypesCase.forNumber( + parameterRangeTypesCase_); + } + + public static final int CONTINUOUSPARAMETERRANGE_FIELD_NUMBER = 1; + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + public boolean hasContinuousParameterRange() { + return parameterRangeTypesCase_ == 1; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange() { + if (parameterRangeTypesCase_ == 1) { + return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_; + } + return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { + if (parameterRangeTypesCase_ == 1) { + return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_; + } + return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } + + public static final int INTEGERPARAMETERRANGE_FIELD_NUMBER = 2; + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + public boolean hasIntegerParameterRange() { + return parameterRangeTypesCase_ == 2; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange() { + if (parameterRangeTypesCase_ == 2) { + return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_; + } + return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { + if (parameterRangeTypesCase_ == 2) { + return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_; + } + return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } + + public static final int CATEGORICALPARAMETERRANGE_FIELD_NUMBER = 3; + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + public boolean hasCategoricalParameterRange() { + return parameterRangeTypesCase_ == 3; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange() { + if (parameterRangeTypesCase_ == 3) { + return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_; + } + return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { + if (parameterRangeTypesCase_ == 3) { + return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_; + } + return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (parameterRangeTypesCase_ == 1) { + output.writeMessage(1, (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_); + } + if (parameterRangeTypesCase_ == 2) { + output.writeMessage(2, (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_); + } + if (parameterRangeTypesCase_ == 3) { + output.writeMessage(3, (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (parameterRangeTypesCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_); + } + if (parameterRangeTypesCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_); + } + if (parameterRangeTypesCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_); + } + 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf other = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf) obj; + + if (!getParameterRangeTypesCase().equals(other.getParameterRangeTypesCase())) return false; + switch (parameterRangeTypesCase_) { + case 1: + if (!getContinuousParameterRange() + .equals(other.getContinuousParameterRange())) return false; + break; + case 2: + if (!getIntegerParameterRange() + .equals(other.getIntegerParameterRange())) return false; + break; + case 3: + if (!getCategoricalParameterRange() + .equals(other.getCategoricalParameterRange())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (parameterRangeTypesCase_) { + case 1: + hash = (37 * hash) + CONTINUOUSPARAMETERRANGE_FIELD_NUMBER; + hash = (53 * hash) + getContinuousParameterRange().hashCode(); + break; + case 2: + hash = (37 * hash) + INTEGERPARAMETERRANGE_FIELD_NUMBER; + hash = (53 * hash) + getIntegerParameterRange().hashCode(); + break; + case 3: + hash = (37 * hash) + CATEGORICALPARAMETERRANGE_FIELD_NUMBER; + hash = (53 * hash) + getCategoricalParameterRange().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf 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(flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangeOneOf} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOfOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.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(); + parameterRangeTypesCase_ = 0; + parameterRangeTypes_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf build() { + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf buildPartial() { + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf result = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf(this); + if (parameterRangeTypesCase_ == 1) { + if (continuousParameterRangeBuilder_ == null) { + result.parameterRangeTypes_ = parameterRangeTypes_; + } else { + result.parameterRangeTypes_ = continuousParameterRangeBuilder_.build(); + } + } + if (parameterRangeTypesCase_ == 2) { + if (integerParameterRangeBuilder_ == null) { + result.parameterRangeTypes_ = parameterRangeTypes_; + } else { + result.parameterRangeTypes_ = integerParameterRangeBuilder_.build(); + } + } + if (parameterRangeTypesCase_ == 3) { + if (categoricalParameterRangeBuilder_ == null) { + result.parameterRangeTypes_ = parameterRangeTypes_; + } else { + result.parameterRangeTypes_ = categoricalParameterRangeBuilder_.build(); + } + } + result.parameterRangeTypesCase_ = parameterRangeTypesCase_; + 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf) { + return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf other) { + if (other == flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance()) return this; + switch (other.getParameterRangeTypesCase()) { + case CONTINUOUSPARAMETERRANGE: { + mergeContinuousParameterRange(other.getContinuousParameterRange()); + break; + } + case INTEGERPARAMETERRANGE: { + mergeIntegerParameterRange(other.getIntegerParameterRange()); + break; + } + case CATEGORICALPARAMETERRANGE: { + mergeCategoricalParameterRange(other.getCategoricalParameterRange()); + break; + } + case PARAMETERRANGETYPES_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 { + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int parameterRangeTypesCase_ = 0; + private java.lang.Object parameterRangeTypes_; + public ParameterRangeTypesCase + getParameterRangeTypesCase() { + return ParameterRangeTypesCase.forNumber( + parameterRangeTypesCase_); + } + + public Builder clearParameterRangeTypes() { + parameterRangeTypesCase_ = 0; + parameterRangeTypes_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder> continuousParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + public boolean hasContinuousParameterRange() { + return parameterRangeTypesCase_ == 1; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange() { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypesCase_ == 1) { + return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_; + } + return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypesCase_ == 1) { + return continuousParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange value) { + if (continuousParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeTypes_ = value; + onChanged(); + } else { + continuousParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypesCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + public Builder setContinuousParameterRange( + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder builderForValue) { + if (continuousParameterRangeBuilder_ == null) { + parameterRangeTypes_ = builderForValue.build(); + onChanged(); + } else { + continuousParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypesCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange value) { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypesCase_ == 1 && + parameterRangeTypes_ != flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance()) { + parameterRangeTypes_ = flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeTypes_ = value; + } + onChanged(); + } else { + if (parameterRangeTypesCase_ == 1) { + continuousParameterRangeBuilder_.mergeFrom(value); + } + continuousParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypesCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + public Builder clearContinuousParameterRange() { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypesCase_ == 1) { + parameterRangeTypesCase_ = 0; + parameterRangeTypes_ = null; + onChanged(); + } + } else { + if (parameterRangeTypesCase_ == 1) { + parameterRangeTypesCase_ = 0; + parameterRangeTypes_ = null; + } + continuousParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder getContinuousParameterRangeBuilder() { + return getContinuousParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { + if ((parameterRangeTypesCase_ == 1) && (continuousParameterRangeBuilder_ != null)) { + return continuousParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypesCase_ == 1) { + return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_; + } + return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder> + getContinuousParameterRangeFieldBuilder() { + if (continuousParameterRangeBuilder_ == null) { + if (!(parameterRangeTypesCase_ == 1)) { + parameterRangeTypes_ = flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } + continuousParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_, + getParentForChildren(), + isClean()); + parameterRangeTypes_ = null; + } + parameterRangeTypesCase_ = 1; + onChanged();; + return continuousParameterRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder> integerParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + public boolean hasIntegerParameterRange() { + return parameterRangeTypesCase_ == 2; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange() { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypesCase_ == 2) { + return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_; + } + return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypesCase_ == 2) { + return integerParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange value) { + if (integerParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeTypes_ = value; + onChanged(); + } else { + integerParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypesCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + public Builder setIntegerParameterRange( + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder builderForValue) { + if (integerParameterRangeBuilder_ == null) { + parameterRangeTypes_ = builderForValue.build(); + onChanged(); + } else { + integerParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypesCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange value) { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypesCase_ == 2 && + parameterRangeTypes_ != flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance()) { + parameterRangeTypes_ = flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeTypes_ = value; + } + onChanged(); + } else { + if (parameterRangeTypesCase_ == 2) { + integerParameterRangeBuilder_.mergeFrom(value); + } + integerParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypesCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + public Builder clearIntegerParameterRange() { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypesCase_ == 2) { + parameterRangeTypesCase_ = 0; + parameterRangeTypes_ = null; + onChanged(); + } + } else { + if (parameterRangeTypesCase_ == 2) { + parameterRangeTypesCase_ = 0; + parameterRangeTypes_ = null; + } + integerParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder getIntegerParameterRangeBuilder() { + return getIntegerParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { + if ((parameterRangeTypesCase_ == 2) && (integerParameterRangeBuilder_ != null)) { + return integerParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypesCase_ == 2) { + return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_; + } + return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder> + getIntegerParameterRangeFieldBuilder() { + if (integerParameterRangeBuilder_ == null) { + if (!(parameterRangeTypesCase_ == 2)) { + parameterRangeTypes_ = flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } + integerParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_, + getParentForChildren(), + isClean()); + parameterRangeTypes_ = null; + } + parameterRangeTypesCase_ = 2; + onChanged();; + return integerParameterRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder> categoricalParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + public boolean hasCategoricalParameterRange() { + return parameterRangeTypesCase_ == 3; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange() { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypesCase_ == 3) { + return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_; + } + return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypesCase_ == 3) { + return categoricalParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange value) { + if (categoricalParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeTypes_ = value; + onChanged(); + } else { + categoricalParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypesCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + public Builder setCategoricalParameterRange( + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder builderForValue) { + if (categoricalParameterRangeBuilder_ == null) { + parameterRangeTypes_ = builderForValue.build(); + onChanged(); + } else { + categoricalParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypesCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange value) { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypesCase_ == 3 && + parameterRangeTypes_ != flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance()) { + parameterRangeTypes_ = flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeTypes_ = value; + } + onChanged(); + } else { + if (parameterRangeTypesCase_ == 3) { + categoricalParameterRangeBuilder_.mergeFrom(value); + } + categoricalParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypesCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + public Builder clearCategoricalParameterRange() { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypesCase_ == 3) { + parameterRangeTypesCase_ = 0; + parameterRangeTypes_ = null; + onChanged(); + } + } else { + if (parameterRangeTypesCase_ == 3) { + parameterRangeTypesCase_ = 0; + parameterRangeTypes_ = null; + } + categoricalParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder getCategoricalParameterRangeBuilder() { + return getCategoricalParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { + if ((parameterRangeTypesCase_ == 3) && (categoricalParameterRangeBuilder_ != null)) { + return categoricalParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypesCase_ == 3) { + return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_; + } + return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder> + getCategoricalParameterRangeFieldBuilder() { + if (categoricalParameterRangeBuilder_ == null) { + if (!(parameterRangeTypesCase_ == 3)) { + parameterRangeTypes_ = flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } + categoricalParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_, + getParentForChildren(), + isClean()); + parameterRangeTypes_ = null; + } + parameterRangeTypesCase_ = 3; + onChanged();; + return categoricalParameterRangeBuilder_; + } + @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:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + private static final flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf(); + } + + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterRangeOneOf parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterRangeOneOf(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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterRangesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRanges) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + int getParameterRangeMapCount(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + boolean containsParameterRangeMap( + java.lang.String key); + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameterRangeMap(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + java.util.Map + getParameterRangeMapMap(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf defaultValue); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} + */ + public static final class ParameterRanges extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRanges) + ParameterRangesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterRanges.newBuilder() to construct. + private ParameterRanges(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterRanges() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterRanges( + 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)) { + parameterRangeMap_ = com.google.protobuf.MapField.newMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + parameterRangeMap__ = input.readMessage( + ParameterRangeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + parameterRangeMap_.getMutableMap().put( + parameterRangeMap__.getKey(), parameterRangeMap__.getValue()); + 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 flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder.class); + } + + public static final int PARAMETERRANGEMAP_FIELD_NUMBER = 1; + private static final class ParameterRangeMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf> parameterRangeMap_; + private com.google.protobuf.MapField + internalGetParameterRangeMap() { + if (parameterRangeMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + return parameterRangeMap_; + } + + public int getParameterRangeMapCount() { + return internalGetParameterRangeMap().getMap().size(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + + public boolean containsParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameterRangeMap().getMap().containsKey(key); + } + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameterRangeMap() { + return getParameterRangeMapMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + + public java.util.Map getParameterRangeMapMap() { + return internalGetParameterRangeMap().getMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParameterRangeMap(), + ParameterRangeMapDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetParameterRangeMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameterRangeMap__ = ParameterRangeMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, parameterRangeMap__); + } + 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges other = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges) obj; + + if (!internalGetParameterRangeMap().equals( + other.internalGetParameterRangeMap())) 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 (!internalGetParameterRangeMap().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERRANGEMAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameterRangeMap().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges 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(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRanges} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRanges) + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.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(); + internalGetMutableParameterRangeMap().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges build() { + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges buildPartial() { + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges result = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges(this); + int from_bitField0_ = bitField0_; + result.parameterRangeMap_ = internalGetParameterRangeMap(); + result.parameterRangeMap_.makeImmutable(); + 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges) { + return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges other) { + if (other == flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance()) return this; + internalGetMutableParameterRangeMap().mergeFrom( + other.internalGetParameterRangeMap()); + 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 { + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf> parameterRangeMap_; + private com.google.protobuf.MapField + internalGetParameterRangeMap() { + if (parameterRangeMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + return parameterRangeMap_; + } + private com.google.protobuf.MapField + internalGetMutableParameterRangeMap() { + onChanged();; + if (parameterRangeMap_ == null) { + parameterRangeMap_ = com.google.protobuf.MapField.newMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + if (!parameterRangeMap_.isMutable()) { + parameterRangeMap_ = parameterRangeMap_.copy(); + } + return parameterRangeMap_; + } + + public int getParameterRangeMapCount() { + return internalGetParameterRangeMap().getMap().size(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + + public boolean containsParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameterRangeMap().getMap().containsKey(key); + } + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameterRangeMap() { + return getParameterRangeMapMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + + public java.util.Map getParameterRangeMapMap() { + return internalGetParameterRangeMap().getMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameterRangeMap() { + internalGetMutableParameterRangeMap().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + + public Builder removeParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameterRangeMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameterRangeMap() { + return internalGetMutableParameterRangeMap().getMutableMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + public Builder putParameterRangeMap( + java.lang.String key, + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameterRangeMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + */ + + public Builder putAllParameterRangeMap( + java.util.Map values) { + internalGetMutableParameterRangeMap().getMutableMap() + .putAll(values); + 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:flyteidl.plugins.sagemaker.ParameterRanges) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) + private static final flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges(); + } + + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterRanges parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterRanges(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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0flyteidl/plugins/sagemaker/parameterra" + + "nges.proto\022\032flyteidl.plugins.sagemaker\"\212" + + "\001\n\030ContinuousParameterRange\022\020\n\010MaxValue\030" + + "\001 \001(\001\022\020\n\010MinValue\030\002 \001(\001\022J\n\013ScalingType\030\003" + + " \001(\01625.flyteidl.plugins.sagemaker.Hyperp" + + "arameterScalingType\"\207\001\n\025IntegerParameter" + + "Range\022\020\n\010MaxValue\030\001 \001(\002\022\020\n\010MinValue\030\002 \001(" + + "\002\022J\n\013ScalingType\030\003 \001(\01625.flyteidl.plugin" + + "s.sagemaker.HyperparameterScalingType\"+\n" + + "\031CategoricalParameterRange\022\016\n\006Values\030\001 \003" + + "(\t\"\266\002\n\023ParameterRangeOneOf\022X\n\030Continuous" + + "ParameterRange\030\001 \001(\01324.flyteidl.plugins." + + "sagemaker.ContinuousParameterRangeH\000\022R\n\025" + + "IntegerParameterRange\030\002 \001(\01321.flyteidl.p" + + "lugins.sagemaker.IntegerParameterRangeH\000" + + "\022Z\n\031CategoricalParameterRange\030\003 \001(\01325.fl" + + "yteidl.plugins.sagemaker.CategoricalPara" + + "meterRangeH\000B\025\n\023ParameterRangeTypes\"\333\001\n\017" + + "ParameterRanges\022]\n\021ParameterRangeMap\030\001 \003" + + "(\0132B.flyteidl.plugins.sagemaker.Paramete" + + "rRanges.ParameterRangeMapEntry\032i\n\026Parame" + + "terRangeMapEntry\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002" + + " \001(\0132/.flyteidl.plugins.sagemaker.Parame" + + "terRangeOneOf:\0028\001*Z\n\031HyperparameterScali" + + "ngType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001\022\017\n\013LOGARITH" + + "MIC\020\002\022\026\n\022REVERSELOGARITHMIC\020\003B5Z3github." + + "com/lyft/flyteidl/gen/pb-go/flyteidl/plu" + + "ginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor, + new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor, + new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor, + new java.lang.String[] { "ContinuousParameterRange", "IntegerParameterRange", "CategoricalParameterRange", "ParameterRangeTypes", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor, + new java.lang.String[] { "ParameterRangeMap", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor = + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Sagemaker.java b/gen/pb-java/flyteidl/plugins/sagemaker/Sagemaker.java deleted file mode 100644 index b72d494cd..000000000 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Sagemaker.java +++ /dev/null @@ -1,11692 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/sagemaker.proto - -package flyteidl.plugins.sagemaker; - -public final class Sagemaker { - private Sagemaker() {} - 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 flyteidl.plugins.sagemaker.HyperparameterScalingType} - */ - public enum HyperparameterScalingType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * AUTO = 0; - */ - AUTO(0), - /** - * LINEAR = 1; - */ - LINEAR(1), - /** - * LOGARITHMIC = 2; - */ - LOGARITHMIC(2), - /** - * REVERSELOGARITHMIC = 3; - */ - REVERSELOGARITHMIC(3), - UNRECOGNIZED(-1), - ; - - /** - * AUTO = 0; - */ - public static final int AUTO_VALUE = 0; - /** - * LINEAR = 1; - */ - public static final int LINEAR_VALUE = 1; - /** - * LOGARITHMIC = 2; - */ - public static final int LOGARITHMIC_VALUE = 2; - /** - * REVERSELOGARITHMIC = 3; - */ - public static final int REVERSELOGARITHMIC_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HyperparameterScalingType valueOf(int value) { - return forNumber(value); - } - - public static HyperparameterScalingType forNumber(int value) { - switch (value) { - case 0: return AUTO; - case 1: return LINEAR; - case 2: return LOGARITHMIC; - case 3: return REVERSELOGARITHMIC; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HyperparameterScalingType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HyperparameterScalingType findValueByNumber(int number) { - return HyperparameterScalingType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.Sagemaker.getDescriptor().getEnumTypes().get(0); - } - - private static final HyperparameterScalingType[] VALUES = values(); - - public static HyperparameterScalingType 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 HyperparameterScalingType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) - } - - public interface ContinuousParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ContinuousParameterRange) - com.google.protobuf.MessageOrBuilder { - - /** - * string Name = 1; - */ - java.lang.String getName(); - /** - * string Name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * double MaxValue = 2; - */ - double getMaxValue(); - - /** - * double MinValue = 3; - */ - double getMinValue(); - - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - int getScalingTypeValue(); - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} - */ - public static final class ContinuousParameterRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) - ContinuousParameterRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use ContinuousParameterRange.newBuilder() to construct. - private ContinuousParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ContinuousParameterRange() { - name_ = ""; - scalingType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContinuousParameterRange( - 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 17: { - - maxValue_ = input.readDouble(); - break; - } - case 25: { - - minValue_ = input.readDouble(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - scalingType_ = rawValue; - 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 flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string Name = 1; - */ - 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; - } - } - /** - * string Name = 1; - */ - 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 MAXVALUE_FIELD_NUMBER = 2; - private double maxValue_; - /** - * double MaxValue = 2; - */ - public double getMaxValue() { - return maxValue_; - } - - public static final int MINVALUE_FIELD_NUMBER = 3; - private double minValue_; - /** - * double MinValue = 3; - */ - public double getMinValue() { - return minValue_; - } - - public static final int SCALINGTYPE_FIELD_NUMBER = 4; - private int scalingType_; - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public int getScalingTypeValue() { - return scalingType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (maxValue_ != 0D) { - output.writeDouble(2, maxValue_); - } - if (minValue_ != 0D) { - output.writeDouble(3, minValue_); - } - if (scalingType_ != flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { - output.writeEnum(4, scalingType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (maxValue_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, maxValue_); - } - if (minValue_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, minValue_); - } - if (scalingType_ != flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, scalingType_); - } - 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 flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange) obj; - - if (!getName() - .equals(other.getName())) return false; - if (java.lang.Double.doubleToLongBits(getMaxValue()) - != java.lang.Double.doubleToLongBits( - other.getMaxValue())) return false; - if (java.lang.Double.doubleToLongBits(getMinValue()) - != java.lang.Double.doubleToLongBits( - other.getMinValue())) return false; - if (scalingType_ != other.scalingType_) 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) + MAXVALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMaxValue())); - hash = (37 * hash) + MINVALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMinValue())); - hash = (37 * hash) + SCALINGTYPE_FIELD_NUMBER; - hash = (53 * hash) + scalingType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange 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(flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ContinuousParameterRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.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_ = ""; - - maxValue_ = 0D; - - minValue_ = 0D; - - scalingType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange build() { - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange buildPartial() { - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange(this); - result.name_ = name_; - result.maxValue_ = maxValue_; - result.minValue_ = minValue_; - result.scalingType_ = scalingType_; - 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 flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange) { - return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange other) { - if (other == flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getMaxValue() != 0D) { - setMaxValue(other.getMaxValue()); - } - if (other.getMinValue() != 0D) { - setMinValue(other.getMinValue()); - } - if (other.scalingType_ != 0) { - setScalingTypeValue(other.getScalingTypeValue()); - } - 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 { - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string Name = 1; - */ - 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; - } - } - /** - * string Name = 1; - */ - 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; - } - } - /** - * string Name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string Name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string Name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private double maxValue_ ; - /** - * double MaxValue = 2; - */ - public double getMaxValue() { - return maxValue_; - } - /** - * double MaxValue = 2; - */ - public Builder setMaxValue(double value) { - - maxValue_ = value; - onChanged(); - return this; - } - /** - * double MaxValue = 2; - */ - public Builder clearMaxValue() { - - maxValue_ = 0D; - onChanged(); - return this; - } - - private double minValue_ ; - /** - * double MinValue = 3; - */ - public double getMinValue() { - return minValue_; - } - /** - * double MinValue = 3; - */ - public Builder setMinValue(double value) { - - minValue_ = value; - onChanged(); - return this; - } - /** - * double MinValue = 3; - */ - public Builder clearMinValue() { - - minValue_ = 0D; - onChanged(); - return this; - } - - private int scalingType_ = 0; - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public int getScalingTypeValue() { - return scalingType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public Builder setScalingTypeValue(int value) { - scalingType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public Builder setScalingType(flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType value) { - if (value == null) { - throw new NullPointerException(); - } - - scalingType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public Builder clearScalingType() { - - scalingType_ = 0; - 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:flyteidl.plugins.sagemaker.ContinuousParameterRange) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) - private static final flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange(); - } - - public static flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContinuousParameterRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContinuousParameterRange(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 flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IntegerParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.IntegerParameterRange) - com.google.protobuf.MessageOrBuilder { - - /** - * string Name = 1; - */ - java.lang.String getName(); - /** - * string Name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * float MaxValue = 2; - */ - float getMaxValue(); - - /** - * float MinValue = 3; - */ - float getMinValue(); - - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - int getScalingTypeValue(); - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} - */ - public static final class IntegerParameterRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) - IntegerParameterRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use IntegerParameterRange.newBuilder() to construct. - private IntegerParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IntegerParameterRange() { - name_ = ""; - scalingType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IntegerParameterRange( - 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 21: { - - maxValue_ = input.readFloat(); - break; - } - case 29: { - - minValue_ = input.readFloat(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - scalingType_ = rawValue; - 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 flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.class, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string Name = 1; - */ - 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; - } - } - /** - * string Name = 1; - */ - 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 MAXVALUE_FIELD_NUMBER = 2; - private float maxValue_; - /** - * float MaxValue = 2; - */ - public float getMaxValue() { - return maxValue_; - } - - public static final int MINVALUE_FIELD_NUMBER = 3; - private float minValue_; - /** - * float MinValue = 3; - */ - public float getMinValue() { - return minValue_; - } - - public static final int SCALINGTYPE_FIELD_NUMBER = 4; - private int scalingType_; - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public int getScalingTypeValue() { - return scalingType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (maxValue_ != 0F) { - output.writeFloat(2, maxValue_); - } - if (minValue_ != 0F) { - output.writeFloat(3, minValue_); - } - if (scalingType_ != flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { - output.writeEnum(4, scalingType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (maxValue_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, maxValue_); - } - if (minValue_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, minValue_); - } - if (scalingType_ != flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.AUTO.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, scalingType_); - } - 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 flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange other = (flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange) obj; - - if (!getName() - .equals(other.getName())) return false; - if (java.lang.Float.floatToIntBits(getMaxValue()) - != java.lang.Float.floatToIntBits( - other.getMaxValue())) return false; - if (java.lang.Float.floatToIntBits(getMinValue()) - != java.lang.Float.floatToIntBits( - other.getMinValue())) return false; - if (scalingType_ != other.scalingType_) 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) + MAXVALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getMaxValue()); - hash = (37 * hash) + MINVALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getMinValue()); - hash = (37 * hash) + SCALINGTYPE_FIELD_NUMBER; - hash = (53 * hash) + scalingType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange 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 flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange 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 flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange 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(flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange 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 flyteidl.plugins.sagemaker.IntegerParameterRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.class, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.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_ = ""; - - maxValue_ = 0F; - - minValue_ = 0F; - - scalingType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange build() { - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange buildPartial() { - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange result = new flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange(this); - result.name_ = name_; - result.maxValue_ = maxValue_; - result.minValue_ = minValue_; - result.scalingType_ = scalingType_; - 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 flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange) { - return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange other) { - if (other == flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getMaxValue() != 0F) { - setMaxValue(other.getMaxValue()); - } - if (other.getMinValue() != 0F) { - setMinValue(other.getMinValue()); - } - if (other.scalingType_ != 0) { - setScalingTypeValue(other.getScalingTypeValue()); - } - 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 { - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string Name = 1; - */ - 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; - } - } - /** - * string Name = 1; - */ - 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; - } - } - /** - * string Name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string Name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string Name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private float maxValue_ ; - /** - * float MaxValue = 2; - */ - public float getMaxValue() { - return maxValue_; - } - /** - * float MaxValue = 2; - */ - public Builder setMaxValue(float value) { - - maxValue_ = value; - onChanged(); - return this; - } - /** - * float MaxValue = 2; - */ - public Builder clearMaxValue() { - - maxValue_ = 0F; - onChanged(); - return this; - } - - private float minValue_ ; - /** - * float MinValue = 3; - */ - public float getMinValue() { - return minValue_; - } - /** - * float MinValue = 3; - */ - public Builder setMinValue(float value) { - - minValue_ = value; - onChanged(); - return this; - } - /** - * float MinValue = 3; - */ - public Builder clearMinValue() { - - minValue_ = 0F; - onChanged(); - return this; - } - - private int scalingType_ = 0; - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public int getScalingTypeValue() { - return scalingType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public Builder setScalingTypeValue(int value) { - scalingType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType getScalingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public Builder setScalingType(flyteidl.plugins.sagemaker.Sagemaker.HyperparameterScalingType value) { - if (value == null) { - throw new NullPointerException(); - } - - scalingType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 4; - */ - public Builder clearScalingType() { - - scalingType_ = 0; - 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:flyteidl.plugins.sagemaker.IntegerParameterRange) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) - private static final flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange(); - } - - public static flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IntegerParameterRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IntegerParameterRange(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 flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CategoricalParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.CategoricalParameterRange) - com.google.protobuf.MessageOrBuilder { - - /** - * string Name = 1; - */ - java.lang.String getName(); - /** - * string Name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * repeated string Values = 2; - */ - java.util.List - getValuesList(); - /** - * repeated string Values = 2; - */ - int getValuesCount(); - /** - * repeated string Values = 2; - */ - java.lang.String getValues(int index); - /** - * repeated string Values = 2; - */ - com.google.protobuf.ByteString - getValuesBytes(int index); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} - */ - public static final class CategoricalParameterRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) - CategoricalParameterRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use CategoricalParameterRange.newBuilder() to construct. - private CategoricalParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CategoricalParameterRange() { - name_ = ""; - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CategoricalParameterRange( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - values_.add(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_ & 0x00000002) != 0)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string Name = 1; - */ - 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; - } - } - /** - * string Name = 1; - */ - 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 VALUES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList values_; - /** - * repeated string Values = 2; - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - * repeated string Values = 2; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string Values = 2; - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string Values = 2; - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, values_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - 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 flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getValuesList() - .equals(other.getValuesList())) 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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange 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(flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.CategoricalParameterRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.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_ = ""; - - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange build() { - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange buildPartial() { - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.name_ = name_; - if (((bitField0_ & 0x00000002) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.values_ = values_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange) { - return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange other) { - if (other == flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - 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 { - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * string Name = 1; - */ - 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; - } - } - /** - * string Name = 1; - */ - 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; - } - } - /** - * string Name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string Name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string Name = 1; - */ - 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.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated string Values = 2; - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * repeated string Values = 2; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string Values = 2; - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string Values = 2; - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - * repeated string Values = 2; - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string Values = 2; - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * repeated string Values = 2; - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - return this; - } - /** - * repeated string Values = 2; - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * repeated string Values = 2; - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(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:flyteidl.plugins.sagemaker.CategoricalParameterRange) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) - private static final flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange(); - } - - public static flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CategoricalParameterRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CategoricalParameterRange(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 flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParameterRangesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRanges) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - java.util.List - getContinuousParameterRangesList(); - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index); - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - int getContinuousParameterRangesCount(); - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - java.util.List - getContinuousParameterRangesOrBuilderList(); - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( - int index); - - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - java.util.List - getIntegerParameterRangesList(); - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index); - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - int getIntegerParameterRangesCount(); - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - java.util.List - getIntegerParameterRangesOrBuilderList(); - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( - int index); - - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - java.util.List - getCategoricalParameterRangesList(); - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index); - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - int getCategoricalParameterRangesCount(); - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - java.util.List - getCategoricalParameterRangesOrBuilderList(); - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} - */ - public static final class ParameterRanges extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRanges) - ParameterRangesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParameterRanges.newBuilder() to construct. - private ParameterRanges(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParameterRanges() { - continuousParameterRanges_ = java.util.Collections.emptyList(); - integerParameterRanges_ = java.util.Collections.emptyList(); - categoricalParameterRanges_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParameterRanges( - 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)) { - continuousParameterRanges_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - continuousParameterRanges_.add( - input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - integerParameterRanges_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - integerParameterRanges_.add( - input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - categoricalParameterRanges_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - categoricalParameterRanges_.add( - input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.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)) { - continuousParameterRanges_ = java.util.Collections.unmodifiableList(continuousParameterRanges_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - integerParameterRanges_ = java.util.Collections.unmodifiableList(integerParameterRanges_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - categoricalParameterRanges_ = java.util.Collections.unmodifiableList(categoricalParameterRanges_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.class, flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder.class); - } - - public static final int CONTINUOUSPARAMETERRANGES_FIELD_NUMBER = 1; - private java.util.List continuousParameterRanges_; - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public java.util.List getContinuousParameterRangesList() { - return continuousParameterRanges_; - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public java.util.List - getContinuousParameterRangesOrBuilderList() { - return continuousParameterRanges_; - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public int getContinuousParameterRangesCount() { - return continuousParameterRanges_.size(); - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index) { - return continuousParameterRanges_.get(index); - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( - int index) { - return continuousParameterRanges_.get(index); - } - - public static final int INTEGERPARAMETERRANGES_FIELD_NUMBER = 2; - private java.util.List integerParameterRanges_; - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public java.util.List getIntegerParameterRangesList() { - return integerParameterRanges_; - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public java.util.List - getIntegerParameterRangesOrBuilderList() { - return integerParameterRanges_; - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public int getIntegerParameterRangesCount() { - return integerParameterRanges_.size(); - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index) { - return integerParameterRanges_.get(index); - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( - int index) { - return integerParameterRanges_.get(index); - } - - public static final int CATEGORICALPARAMETERRANGES_FIELD_NUMBER = 3; - private java.util.List categoricalParameterRanges_; - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public java.util.List getCategoricalParameterRangesList() { - return categoricalParameterRanges_; - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public java.util.List - getCategoricalParameterRangesOrBuilderList() { - return categoricalParameterRanges_; - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public int getCategoricalParameterRangesCount() { - return categoricalParameterRanges_.size(); - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index) { - return categoricalParameterRanges_.get(index); - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( - int index) { - return categoricalParameterRanges_.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 < continuousParameterRanges_.size(); i++) { - output.writeMessage(1, continuousParameterRanges_.get(i)); - } - for (int i = 0; i < integerParameterRanges_.size(); i++) { - output.writeMessage(2, integerParameterRanges_.get(i)); - } - for (int i = 0; i < categoricalParameterRanges_.size(); i++) { - output.writeMessage(3, categoricalParameterRanges_.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 < continuousParameterRanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, continuousParameterRanges_.get(i)); - } - for (int i = 0; i < integerParameterRanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, integerParameterRanges_.get(i)); - } - for (int i = 0; i < categoricalParameterRanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, categoricalParameterRanges_.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 flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges other = (flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges) obj; - - if (!getContinuousParameterRangesList() - .equals(other.getContinuousParameterRangesList())) return false; - if (!getIntegerParameterRangesList() - .equals(other.getIntegerParameterRangesList())) return false; - if (!getCategoricalParameterRangesList() - .equals(other.getCategoricalParameterRangesList())) 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 (getContinuousParameterRangesCount() > 0) { - hash = (37 * hash) + CONTINUOUSPARAMETERRANGES_FIELD_NUMBER; - hash = (53 * hash) + getContinuousParameterRangesList().hashCode(); - } - if (getIntegerParameterRangesCount() > 0) { - hash = (37 * hash) + INTEGERPARAMETERRANGES_FIELD_NUMBER; - hash = (53 * hash) + getIntegerParameterRangesList().hashCode(); - } - if (getCategoricalParameterRangesCount() > 0) { - hash = (37 * hash) + CATEGORICALPARAMETERRANGES_FIELD_NUMBER; - hash = (53 * hash) + getCategoricalParameterRangesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges 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 flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges 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 flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges 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(flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRanges} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRanges) - flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.class, flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getContinuousParameterRangesFieldBuilder(); - getIntegerParameterRangesFieldBuilder(); - getCategoricalParameterRangesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (continuousParameterRangesBuilder_ == null) { - continuousParameterRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - continuousParameterRangesBuilder_.clear(); - } - if (integerParameterRangesBuilder_ == null) { - integerParameterRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - integerParameterRangesBuilder_.clear(); - } - if (categoricalParameterRangesBuilder_ == null) { - categoricalParameterRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - categoricalParameterRangesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges build() { - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges buildPartial() { - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges result = new flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges(this); - int from_bitField0_ = bitField0_; - if (continuousParameterRangesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - continuousParameterRanges_ = java.util.Collections.unmodifiableList(continuousParameterRanges_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.continuousParameterRanges_ = continuousParameterRanges_; - } else { - result.continuousParameterRanges_ = continuousParameterRangesBuilder_.build(); - } - if (integerParameterRangesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - integerParameterRanges_ = java.util.Collections.unmodifiableList(integerParameterRanges_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.integerParameterRanges_ = integerParameterRanges_; - } else { - result.integerParameterRanges_ = integerParameterRangesBuilder_.build(); - } - if (categoricalParameterRangesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - categoricalParameterRanges_ = java.util.Collections.unmodifiableList(categoricalParameterRanges_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.categoricalParameterRanges_ = categoricalParameterRanges_; - } else { - result.categoricalParameterRanges_ = categoricalParameterRangesBuilder_.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 flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges) { - return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges other) { - if (other == flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance()) return this; - if (continuousParameterRangesBuilder_ == null) { - if (!other.continuousParameterRanges_.isEmpty()) { - if (continuousParameterRanges_.isEmpty()) { - continuousParameterRanges_ = other.continuousParameterRanges_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureContinuousParameterRangesIsMutable(); - continuousParameterRanges_.addAll(other.continuousParameterRanges_); - } - onChanged(); - } - } else { - if (!other.continuousParameterRanges_.isEmpty()) { - if (continuousParameterRangesBuilder_.isEmpty()) { - continuousParameterRangesBuilder_.dispose(); - continuousParameterRangesBuilder_ = null; - continuousParameterRanges_ = other.continuousParameterRanges_; - bitField0_ = (bitField0_ & ~0x00000001); - continuousParameterRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getContinuousParameterRangesFieldBuilder() : null; - } else { - continuousParameterRangesBuilder_.addAllMessages(other.continuousParameterRanges_); - } - } - } - if (integerParameterRangesBuilder_ == null) { - if (!other.integerParameterRanges_.isEmpty()) { - if (integerParameterRanges_.isEmpty()) { - integerParameterRanges_ = other.integerParameterRanges_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureIntegerParameterRangesIsMutable(); - integerParameterRanges_.addAll(other.integerParameterRanges_); - } - onChanged(); - } - } else { - if (!other.integerParameterRanges_.isEmpty()) { - if (integerParameterRangesBuilder_.isEmpty()) { - integerParameterRangesBuilder_.dispose(); - integerParameterRangesBuilder_ = null; - integerParameterRanges_ = other.integerParameterRanges_; - bitField0_ = (bitField0_ & ~0x00000002); - integerParameterRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getIntegerParameterRangesFieldBuilder() : null; - } else { - integerParameterRangesBuilder_.addAllMessages(other.integerParameterRanges_); - } - } - } - if (categoricalParameterRangesBuilder_ == null) { - if (!other.categoricalParameterRanges_.isEmpty()) { - if (categoricalParameterRanges_.isEmpty()) { - categoricalParameterRanges_ = other.categoricalParameterRanges_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureCategoricalParameterRangesIsMutable(); - categoricalParameterRanges_.addAll(other.categoricalParameterRanges_); - } - onChanged(); - } - } else { - if (!other.categoricalParameterRanges_.isEmpty()) { - if (categoricalParameterRangesBuilder_.isEmpty()) { - categoricalParameterRangesBuilder_.dispose(); - categoricalParameterRangesBuilder_ = null; - categoricalParameterRanges_ = other.categoricalParameterRanges_; - bitField0_ = (bitField0_ & ~0x00000004); - categoricalParameterRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCategoricalParameterRangesFieldBuilder() : null; - } else { - categoricalParameterRangesBuilder_.addAllMessages(other.categoricalParameterRanges_); - } - } - } - 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 { - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List continuousParameterRanges_ = - java.util.Collections.emptyList(); - private void ensureContinuousParameterRangesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - continuousParameterRanges_ = new java.util.ArrayList(continuousParameterRanges_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder> continuousParameterRangesBuilder_; - - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public java.util.List getContinuousParameterRangesList() { - if (continuousParameterRangesBuilder_ == null) { - return java.util.Collections.unmodifiableList(continuousParameterRanges_); - } else { - return continuousParameterRangesBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public int getContinuousParameterRangesCount() { - if (continuousParameterRangesBuilder_ == null) { - return continuousParameterRanges_.size(); - } else { - return continuousParameterRangesBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange getContinuousParameterRanges(int index) { - if (continuousParameterRangesBuilder_ == null) { - return continuousParameterRanges_.get(index); - } else { - return continuousParameterRangesBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public Builder setContinuousParameterRanges( - int index, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange value) { - if (continuousParameterRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContinuousParameterRangesIsMutable(); - continuousParameterRanges_.set(index, value); - onChanged(); - } else { - continuousParameterRangesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public Builder setContinuousParameterRanges( - int index, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder builderForValue) { - if (continuousParameterRangesBuilder_ == null) { - ensureContinuousParameterRangesIsMutable(); - continuousParameterRanges_.set(index, builderForValue.build()); - onChanged(); - } else { - continuousParameterRangesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public Builder addContinuousParameterRanges(flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange value) { - if (continuousParameterRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContinuousParameterRangesIsMutable(); - continuousParameterRanges_.add(value); - onChanged(); - } else { - continuousParameterRangesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public Builder addContinuousParameterRanges( - int index, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange value) { - if (continuousParameterRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContinuousParameterRangesIsMutable(); - continuousParameterRanges_.add(index, value); - onChanged(); - } else { - continuousParameterRangesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public Builder addContinuousParameterRanges( - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder builderForValue) { - if (continuousParameterRangesBuilder_ == null) { - ensureContinuousParameterRangesIsMutable(); - continuousParameterRanges_.add(builderForValue.build()); - onChanged(); - } else { - continuousParameterRangesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public Builder addContinuousParameterRanges( - int index, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder builderForValue) { - if (continuousParameterRangesBuilder_ == null) { - ensureContinuousParameterRangesIsMutable(); - continuousParameterRanges_.add(index, builderForValue.build()); - onChanged(); - } else { - continuousParameterRangesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public Builder addAllContinuousParameterRanges( - java.lang.Iterable values) { - if (continuousParameterRangesBuilder_ == null) { - ensureContinuousParameterRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, continuousParameterRanges_); - onChanged(); - } else { - continuousParameterRangesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public Builder clearContinuousParameterRanges() { - if (continuousParameterRangesBuilder_ == null) { - continuousParameterRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - continuousParameterRangesBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public Builder removeContinuousParameterRanges(int index) { - if (continuousParameterRangesBuilder_ == null) { - ensureContinuousParameterRangesIsMutable(); - continuousParameterRanges_.remove(index); - onChanged(); - } else { - continuousParameterRangesBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder getContinuousParameterRangesBuilder( - int index) { - return getContinuousParameterRangesFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder getContinuousParameterRangesOrBuilder( - int index) { - if (continuousParameterRangesBuilder_ == null) { - return continuousParameterRanges_.get(index); } else { - return continuousParameterRangesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public java.util.List - getContinuousParameterRangesOrBuilderList() { - if (continuousParameterRangesBuilder_ != null) { - return continuousParameterRangesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(continuousParameterRanges_); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder addContinuousParameterRangesBuilder() { - return getContinuousParameterRangesFieldBuilder().addBuilder( - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder addContinuousParameterRangesBuilder( - int index) { - return getContinuousParameterRangesFieldBuilder().addBuilder( - index, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRanges = 1; - */ - public java.util.List - getContinuousParameterRangesBuilderList() { - return getContinuousParameterRangesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder> - getContinuousParameterRangesFieldBuilder() { - if (continuousParameterRangesBuilder_ == null) { - continuousParameterRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.ContinuousParameterRangeOrBuilder>( - continuousParameterRanges_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - continuousParameterRanges_ = null; - } - return continuousParameterRangesBuilder_; - } - - private java.util.List integerParameterRanges_ = - java.util.Collections.emptyList(); - private void ensureIntegerParameterRangesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - integerParameterRanges_ = new java.util.ArrayList(integerParameterRanges_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder> integerParameterRangesBuilder_; - - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public java.util.List getIntegerParameterRangesList() { - if (integerParameterRangesBuilder_ == null) { - return java.util.Collections.unmodifiableList(integerParameterRanges_); - } else { - return integerParameterRangesBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public int getIntegerParameterRangesCount() { - if (integerParameterRangesBuilder_ == null) { - return integerParameterRanges_.size(); - } else { - return integerParameterRangesBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange getIntegerParameterRanges(int index) { - if (integerParameterRangesBuilder_ == null) { - return integerParameterRanges_.get(index); - } else { - return integerParameterRangesBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public Builder setIntegerParameterRanges( - int index, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange value) { - if (integerParameterRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIntegerParameterRangesIsMutable(); - integerParameterRanges_.set(index, value); - onChanged(); - } else { - integerParameterRangesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public Builder setIntegerParameterRanges( - int index, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder builderForValue) { - if (integerParameterRangesBuilder_ == null) { - ensureIntegerParameterRangesIsMutable(); - integerParameterRanges_.set(index, builderForValue.build()); - onChanged(); - } else { - integerParameterRangesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public Builder addIntegerParameterRanges(flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange value) { - if (integerParameterRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIntegerParameterRangesIsMutable(); - integerParameterRanges_.add(value); - onChanged(); - } else { - integerParameterRangesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public Builder addIntegerParameterRanges( - int index, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange value) { - if (integerParameterRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIntegerParameterRangesIsMutable(); - integerParameterRanges_.add(index, value); - onChanged(); - } else { - integerParameterRangesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public Builder addIntegerParameterRanges( - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder builderForValue) { - if (integerParameterRangesBuilder_ == null) { - ensureIntegerParameterRangesIsMutable(); - integerParameterRanges_.add(builderForValue.build()); - onChanged(); - } else { - integerParameterRangesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public Builder addIntegerParameterRanges( - int index, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder builderForValue) { - if (integerParameterRangesBuilder_ == null) { - ensureIntegerParameterRangesIsMutable(); - integerParameterRanges_.add(index, builderForValue.build()); - onChanged(); - } else { - integerParameterRangesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public Builder addAllIntegerParameterRanges( - java.lang.Iterable values) { - if (integerParameterRangesBuilder_ == null) { - ensureIntegerParameterRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, integerParameterRanges_); - onChanged(); - } else { - integerParameterRangesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public Builder clearIntegerParameterRanges() { - if (integerParameterRangesBuilder_ == null) { - integerParameterRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - integerParameterRangesBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public Builder removeIntegerParameterRanges(int index) { - if (integerParameterRangesBuilder_ == null) { - ensureIntegerParameterRangesIsMutable(); - integerParameterRanges_.remove(index); - onChanged(); - } else { - integerParameterRangesBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder getIntegerParameterRangesBuilder( - int index) { - return getIntegerParameterRangesFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder getIntegerParameterRangesOrBuilder( - int index) { - if (integerParameterRangesBuilder_ == null) { - return integerParameterRanges_.get(index); } else { - return integerParameterRangesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public java.util.List - getIntegerParameterRangesOrBuilderList() { - if (integerParameterRangesBuilder_ != null) { - return integerParameterRangesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(integerParameterRanges_); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder addIntegerParameterRangesBuilder() { - return getIntegerParameterRangesFieldBuilder().addBuilder( - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder addIntegerParameterRangesBuilder( - int index) { - return getIntegerParameterRangesFieldBuilder().addBuilder( - index, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRanges = 2; - */ - public java.util.List - getIntegerParameterRangesBuilderList() { - return getIntegerParameterRangesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder> - getIntegerParameterRangesFieldBuilder() { - if (integerParameterRangesBuilder_ == null) { - integerParameterRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.IntegerParameterRangeOrBuilder>( - integerParameterRanges_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - integerParameterRanges_ = null; - } - return integerParameterRangesBuilder_; - } - - private java.util.List categoricalParameterRanges_ = - java.util.Collections.emptyList(); - private void ensureCategoricalParameterRangesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - categoricalParameterRanges_ = new java.util.ArrayList(categoricalParameterRanges_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder> categoricalParameterRangesBuilder_; - - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public java.util.List getCategoricalParameterRangesList() { - if (categoricalParameterRangesBuilder_ == null) { - return java.util.Collections.unmodifiableList(categoricalParameterRanges_); - } else { - return categoricalParameterRangesBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public int getCategoricalParameterRangesCount() { - if (categoricalParameterRangesBuilder_ == null) { - return categoricalParameterRanges_.size(); - } else { - return categoricalParameterRangesBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange getCategoricalParameterRanges(int index) { - if (categoricalParameterRangesBuilder_ == null) { - return categoricalParameterRanges_.get(index); - } else { - return categoricalParameterRangesBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public Builder setCategoricalParameterRanges( - int index, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange value) { - if (categoricalParameterRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCategoricalParameterRangesIsMutable(); - categoricalParameterRanges_.set(index, value); - onChanged(); - } else { - categoricalParameterRangesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public Builder setCategoricalParameterRanges( - int index, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder builderForValue) { - if (categoricalParameterRangesBuilder_ == null) { - ensureCategoricalParameterRangesIsMutable(); - categoricalParameterRanges_.set(index, builderForValue.build()); - onChanged(); - } else { - categoricalParameterRangesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public Builder addCategoricalParameterRanges(flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange value) { - if (categoricalParameterRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCategoricalParameterRangesIsMutable(); - categoricalParameterRanges_.add(value); - onChanged(); - } else { - categoricalParameterRangesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public Builder addCategoricalParameterRanges( - int index, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange value) { - if (categoricalParameterRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCategoricalParameterRangesIsMutable(); - categoricalParameterRanges_.add(index, value); - onChanged(); - } else { - categoricalParameterRangesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public Builder addCategoricalParameterRanges( - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder builderForValue) { - if (categoricalParameterRangesBuilder_ == null) { - ensureCategoricalParameterRangesIsMutable(); - categoricalParameterRanges_.add(builderForValue.build()); - onChanged(); - } else { - categoricalParameterRangesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public Builder addCategoricalParameterRanges( - int index, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder builderForValue) { - if (categoricalParameterRangesBuilder_ == null) { - ensureCategoricalParameterRangesIsMutable(); - categoricalParameterRanges_.add(index, builderForValue.build()); - onChanged(); - } else { - categoricalParameterRangesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public Builder addAllCategoricalParameterRanges( - java.lang.Iterable values) { - if (categoricalParameterRangesBuilder_ == null) { - ensureCategoricalParameterRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, categoricalParameterRanges_); - onChanged(); - } else { - categoricalParameterRangesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public Builder clearCategoricalParameterRanges() { - if (categoricalParameterRangesBuilder_ == null) { - categoricalParameterRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - categoricalParameterRangesBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public Builder removeCategoricalParameterRanges(int index) { - if (categoricalParameterRangesBuilder_ == null) { - ensureCategoricalParameterRangesIsMutable(); - categoricalParameterRanges_.remove(index); - onChanged(); - } else { - categoricalParameterRangesBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder getCategoricalParameterRangesBuilder( - int index) { - return getCategoricalParameterRangesFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder getCategoricalParameterRangesOrBuilder( - int index) { - if (categoricalParameterRangesBuilder_ == null) { - return categoricalParameterRanges_.get(index); } else { - return categoricalParameterRangesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public java.util.List - getCategoricalParameterRangesOrBuilderList() { - if (categoricalParameterRangesBuilder_ != null) { - return categoricalParameterRangesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(categoricalParameterRanges_); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder addCategoricalParameterRangesBuilder() { - return getCategoricalParameterRangesFieldBuilder().addBuilder( - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder addCategoricalParameterRangesBuilder( - int index) { - return getCategoricalParameterRangesFieldBuilder().addBuilder( - index, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRanges = 3; - */ - public java.util.List - getCategoricalParameterRangesBuilderList() { - return getCategoricalParameterRangesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder> - getCategoricalParameterRangesFieldBuilder() { - if (categoricalParameterRangesBuilder_ == null) { - categoricalParameterRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Sagemaker.CategoricalParameterRangeOrBuilder>( - categoricalParameterRanges_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - categoricalParameterRanges_ = null; - } - return categoricalParameterRangesBuilder_; - } - @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:flyteidl.plugins.sagemaker.ParameterRanges) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) - private static final flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges(); - } - - public static flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterRanges parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParameterRanges(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 flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AlgorithmSpecificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification) - com.google.protobuf.MessageOrBuilder { - - /** - * string TrainingImage = 1; - */ - java.lang.String getTrainingImage(); - /** - * string TrainingImage = 1; - */ - com.google.protobuf.ByteString - getTrainingImageBytes(); - - /** - * string TrainingInputMode = 2; - */ - java.lang.String getTrainingInputMode(); - /** - * string TrainingInputMode = 2; - */ - com.google.protobuf.ByteString - getTrainingInputModeBytes(); - - /** - * string AlgorithmName = 3; - */ - java.lang.String getAlgorithmName(); - /** - * string AlgorithmName = 3; - */ - com.google.protobuf.ByteString - getAlgorithmNameBytes(); - - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - java.util.List - getMetricDefinitionsList(); - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - int getMetricDefinitionsCount(); - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - java.util.List - getMetricDefinitionsOrBuilderList(); - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} - */ - public static final class AlgorithmSpecification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) - AlgorithmSpecificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use AlgorithmSpecification.newBuilder() to construct. - private AlgorithmSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AlgorithmSpecification() { - trainingImage_ = ""; - trainingInputMode_ = ""; - algorithmName_ = ""; - metricDefinitions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AlgorithmSpecification( - 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(); - - trainingImage_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - trainingInputMode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - algorithmName_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - metricDefinitions_.add( - input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.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_ & 0x00000008) != 0)) { - metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder.class); - } - - public interface MetricDefinitionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - com.google.protobuf.MessageOrBuilder { - - /** - * string Name = 1; - */ - java.lang.String getName(); - /** - * string Name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * string Regex = 2; - */ - java.lang.String getRegex(); - /** - * string Regex = 2; - */ - com.google.protobuf.ByteString - getRegexBytes(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} - */ - public static final class MetricDefinition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - MetricDefinitionOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetricDefinition.newBuilder() to construct. - private MetricDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MetricDefinition() { - name_ = ""; - regex_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MetricDefinition( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - regex_ = 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 flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string Name = 1; - */ - 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; - } - } - /** - * string Name = 1; - */ - 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 REGEX_FIELD_NUMBER = 2; - private volatile java.lang.Object regex_; - /** - * string Regex = 2; - */ - public java.lang.String getRegex() { - java.lang.Object ref = regex_; - 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(); - regex_ = s; - return s; - } - } - /** - * string Regex = 2; - */ - public com.google.protobuf.ByteString - getRegexBytes() { - java.lang.Object ref = regex_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - regex_ = 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getRegexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regex_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getRegexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regex_); - } - 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 flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getRegex() - .equals(other.getRegex())) 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) + REGEX_FIELD_NUMBER; - hash = (53 * hash) + getRegex().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition 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(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.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_ = ""; - - regex_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition build() { - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition buildPartial() { - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition(this); - result.name_ = name_; - result.regex_ = regex_; - 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 flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition) { - return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition other) { - if (other == flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getRegex().isEmpty()) { - regex_ = other.regex_; - 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 { - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string Name = 1; - */ - 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; - } - } - /** - * string Name = 1; - */ - 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; - } - } - /** - * string Name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string Name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string Name = 1; - */ - 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 regex_ = ""; - /** - * string Regex = 2; - */ - public java.lang.String getRegex() { - java.lang.Object ref = regex_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - regex_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string Regex = 2; - */ - public com.google.protobuf.ByteString - getRegexBytes() { - java.lang.Object ref = regex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - regex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string Regex = 2; - */ - public Builder setRegex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - regex_ = value; - onChanged(); - return this; - } - /** - * string Regex = 2; - */ - public Builder clearRegex() { - - regex_ = getDefaultInstance().getRegex(); - onChanged(); - return this; - } - /** - * string Regex = 2; - */ - public Builder setRegexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - regex_ = 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:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - private static final flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition(); - } - - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricDefinition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricDefinition(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 flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int TRAININGIMAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object trainingImage_; - /** - * string TrainingImage = 1; - */ - public java.lang.String getTrainingImage() { - java.lang.Object ref = trainingImage_; - 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(); - trainingImage_ = s; - return s; - } - } - /** - * string TrainingImage = 1; - */ - public com.google.protobuf.ByteString - getTrainingImageBytes() { - java.lang.Object ref = trainingImage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - trainingImage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TRAININGINPUTMODE_FIELD_NUMBER = 2; - private volatile java.lang.Object trainingInputMode_; - /** - * string TrainingInputMode = 2; - */ - public java.lang.String getTrainingInputMode() { - java.lang.Object ref = trainingInputMode_; - 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(); - trainingInputMode_ = s; - return s; - } - } - /** - * string TrainingInputMode = 2; - */ - public com.google.protobuf.ByteString - getTrainingInputModeBytes() { - java.lang.Object ref = trainingInputMode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - trainingInputMode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALGORITHMNAME_FIELD_NUMBER = 3; - private volatile java.lang.Object algorithmName_; - /** - * string AlgorithmName = 3; - */ - public java.lang.String getAlgorithmName() { - java.lang.Object ref = algorithmName_; - 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(); - algorithmName_ = s; - return s; - } - } - /** - * string AlgorithmName = 3; - */ - public com.google.protobuf.ByteString - getAlgorithmNameBytes() { - java.lang.Object ref = algorithmName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - algorithmName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METRICDEFINITIONS_FIELD_NUMBER = 4; - private java.util.List metricDefinitions_; - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public java.util.List getMetricDefinitionsList() { - return metricDefinitions_; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public java.util.List - getMetricDefinitionsOrBuilderList() { - return metricDefinitions_; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public int getMetricDefinitionsCount() { - return metricDefinitions_.size(); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { - return metricDefinitions_.get(index); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( - int index) { - return metricDefinitions_.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 (!getTrainingImageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trainingImage_); - } - if (!getTrainingInputModeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, trainingInputMode_); - } - if (!getAlgorithmNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, algorithmName_); - } - for (int i = 0; i < metricDefinitions_.size(); i++) { - output.writeMessage(4, metricDefinitions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTrainingImageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trainingImage_); - } - if (!getTrainingInputModeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, trainingInputMode_); - } - if (!getAlgorithmNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, algorithmName_); - } - for (int i = 0; i < metricDefinitions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, metricDefinitions_.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 flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification) obj; - - if (!getTrainingImage() - .equals(other.getTrainingImage())) return false; - if (!getTrainingInputMode() - .equals(other.getTrainingInputMode())) return false; - if (!getAlgorithmName() - .equals(other.getAlgorithmName())) return false; - if (!getMetricDefinitionsList() - .equals(other.getMetricDefinitionsList())) 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) + TRAININGIMAGE_FIELD_NUMBER; - hash = (53 * hash) + getTrainingImage().hashCode(); - hash = (37 * hash) + TRAININGINPUTMODE_FIELD_NUMBER; - hash = (53 * hash) + getTrainingInputMode().hashCode(); - hash = (37 * hash) + ALGORITHMNAME_FIELD_NUMBER; - hash = (53 * hash) + getAlgorithmName().hashCode(); - if (getMetricDefinitionsCount() > 0) { - hash = (37 * hash) + METRICDEFINITIONS_FIELD_NUMBER; - hash = (53 * hash) + getMetricDefinitionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification 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(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.AlgorithmSpecification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMetricDefinitionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - trainingImage_ = ""; - - trainingInputMode_ = ""; - - algorithmName_ = ""; - - if (metricDefinitionsBuilder_ == null) { - metricDefinitions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - metricDefinitionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification build() { - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification buildPartial() { - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.trainingImage_ = trainingImage_; - result.trainingInputMode_ = trainingInputMode_; - result.algorithmName_ = algorithmName_; - if (metricDefinitionsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.metricDefinitions_ = metricDefinitions_; - } else { - result.metricDefinitions_ = metricDefinitionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification) { - return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification other) { - if (other == flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance()) return this; - if (!other.getTrainingImage().isEmpty()) { - trainingImage_ = other.trainingImage_; - onChanged(); - } - if (!other.getTrainingInputMode().isEmpty()) { - trainingInputMode_ = other.trainingInputMode_; - onChanged(); - } - if (!other.getAlgorithmName().isEmpty()) { - algorithmName_ = other.algorithmName_; - onChanged(); - } - if (metricDefinitionsBuilder_ == null) { - if (!other.metricDefinitions_.isEmpty()) { - if (metricDefinitions_.isEmpty()) { - metricDefinitions_ = other.metricDefinitions_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.addAll(other.metricDefinitions_); - } - onChanged(); - } - } else { - if (!other.metricDefinitions_.isEmpty()) { - if (metricDefinitionsBuilder_.isEmpty()) { - metricDefinitionsBuilder_.dispose(); - metricDefinitionsBuilder_ = null; - metricDefinitions_ = other.metricDefinitions_; - bitField0_ = (bitField0_ & ~0x00000008); - metricDefinitionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricDefinitionsFieldBuilder() : null; - } else { - metricDefinitionsBuilder_.addAllMessages(other.metricDefinitions_); - } - } - } - 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 { - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object trainingImage_ = ""; - /** - * string TrainingImage = 1; - */ - public java.lang.String getTrainingImage() { - java.lang.Object ref = trainingImage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - trainingImage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string TrainingImage = 1; - */ - public com.google.protobuf.ByteString - getTrainingImageBytes() { - java.lang.Object ref = trainingImage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - trainingImage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string TrainingImage = 1; - */ - public Builder setTrainingImage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - trainingImage_ = value; - onChanged(); - return this; - } - /** - * string TrainingImage = 1; - */ - public Builder clearTrainingImage() { - - trainingImage_ = getDefaultInstance().getTrainingImage(); - onChanged(); - return this; - } - /** - * string TrainingImage = 1; - */ - public Builder setTrainingImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - trainingImage_ = value; - onChanged(); - return this; - } - - private java.lang.Object trainingInputMode_ = ""; - /** - * string TrainingInputMode = 2; - */ - public java.lang.String getTrainingInputMode() { - java.lang.Object ref = trainingInputMode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - trainingInputMode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string TrainingInputMode = 2; - */ - public com.google.protobuf.ByteString - getTrainingInputModeBytes() { - java.lang.Object ref = trainingInputMode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - trainingInputMode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string TrainingInputMode = 2; - */ - public Builder setTrainingInputMode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - trainingInputMode_ = value; - onChanged(); - return this; - } - /** - * string TrainingInputMode = 2; - */ - public Builder clearTrainingInputMode() { - - trainingInputMode_ = getDefaultInstance().getTrainingInputMode(); - onChanged(); - return this; - } - /** - * string TrainingInputMode = 2; - */ - public Builder setTrainingInputModeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - trainingInputMode_ = value; - onChanged(); - return this; - } - - private java.lang.Object algorithmName_ = ""; - /** - * string AlgorithmName = 3; - */ - public java.lang.String getAlgorithmName() { - java.lang.Object ref = algorithmName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - algorithmName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string AlgorithmName = 3; - */ - public com.google.protobuf.ByteString - getAlgorithmNameBytes() { - java.lang.Object ref = algorithmName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - algorithmName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string AlgorithmName = 3; - */ - public Builder setAlgorithmName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - algorithmName_ = value; - onChanged(); - return this; - } - /** - * string AlgorithmName = 3; - */ - public Builder clearAlgorithmName() { - - algorithmName_ = getDefaultInstance().getAlgorithmName(); - onChanged(); - return this; - } - /** - * string AlgorithmName = 3; - */ - public Builder setAlgorithmNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - algorithmName_ = value; - onChanged(); - return this; - } - - private java.util.List metricDefinitions_ = - java.util.Collections.emptyList(); - private void ensureMetricDefinitionsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; - - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public java.util.List getMetricDefinitionsList() { - if (metricDefinitionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metricDefinitions_); - } else { - return metricDefinitionsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public int getMetricDefinitionsCount() { - if (metricDefinitionsBuilder_ == null) { - return metricDefinitions_.size(); - } else { - return metricDefinitionsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { - if (metricDefinitionsBuilder_ == null) { - return metricDefinitions_.get(index); - } else { - return metricDefinitionsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public Builder setMetricDefinitions( - int index, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition value) { - if (metricDefinitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.set(index, value); - onChanged(); - } else { - metricDefinitionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public Builder setMetricDefinitions( - int index, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.set(index, builderForValue.build()); - onChanged(); - } else { - metricDefinitionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition value) { - if (metricDefinitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.add(value); - onChanged(); - } else { - metricDefinitionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public Builder addMetricDefinitions( - int index, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition value) { - if (metricDefinitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.add(index, value); - onChanged(); - } else { - metricDefinitionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public Builder addMetricDefinitions( - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.add(builderForValue.build()); - onChanged(); - } else { - metricDefinitionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public Builder addMetricDefinitions( - int index, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.add(index, builderForValue.build()); - onChanged(); - } else { - metricDefinitionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public Builder addAllMetricDefinitions( - java.lang.Iterable values) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metricDefinitions_); - onChanged(); - } else { - metricDefinitionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public Builder clearMetricDefinitions() { - if (metricDefinitionsBuilder_ == null) { - metricDefinitions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - metricDefinitionsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public Builder removeMetricDefinitions(int index) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.remove(index); - onChanged(); - } else { - metricDefinitionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( - int index) { - return getMetricDefinitionsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( - int index) { - if (metricDefinitionsBuilder_ == null) { - return metricDefinitions_.get(index); } else { - return metricDefinitionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public java.util.List - getMetricDefinitionsOrBuilderList() { - if (metricDefinitionsBuilder_ != null) { - return metricDefinitionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metricDefinitions_); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { - return getMetricDefinitionsFieldBuilder().addBuilder( - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( - int index) { - return getMetricDefinitionsFieldBuilder().addBuilder( - index, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - */ - public java.util.List - getMetricDefinitionsBuilderList() { - return getMetricDefinitionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder> - getMetricDefinitionsFieldBuilder() { - if (metricDefinitionsBuilder_ == null) { - metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.MetricDefinitionOrBuilder>( - metricDefinitions_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - metricDefinitions_ = null; - } - return metricDefinitionsBuilder_; - } - @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:flyteidl.plugins.sagemaker.AlgorithmSpecification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) - private static final flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification(); - } - - public static flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AlgorithmSpecification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AlgorithmSpecification(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 flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ResourceConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ResourceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * string InstanceType = 1; - */ - java.lang.String getInstanceType(); - /** - * string InstanceType = 1; - */ - com.google.protobuf.ByteString - getInstanceTypeBytes(); - - /** - * int64 InstanceCount = 2; - */ - long getInstanceCount(); - - /** - * int64 VolumeSizeInGB = 3; - */ - long getVolumeSizeInGB(); - - /** - * string VolumeKmsKeyId = 4; - */ - java.lang.String getVolumeKmsKeyId(); - /** - * string VolumeKmsKeyId = 4; - */ - com.google.protobuf.ByteString - getVolumeKmsKeyIdBytes(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.ResourceConfig} - */ - public static final class ResourceConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ResourceConfig) - ResourceConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceConfig.newBuilder() to construct. - private ResourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourceConfig() { - instanceType_ = ""; - volumeKmsKeyId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResourceConfig( - 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(); - - instanceType_ = s; - break; - } - case 16: { - - instanceCount_ = input.readInt64(); - break; - } - case 24: { - - volumeSizeInGB_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - volumeKmsKeyId_ = 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 flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.class, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder.class); - } - - public static final int INSTANCETYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object instanceType_; - /** - * string InstanceType = 1; - */ - public java.lang.String getInstanceType() { - java.lang.Object ref = instanceType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceType_ = s; - return s; - } - } - /** - * string InstanceType = 1; - */ - public com.google.protobuf.ByteString - getInstanceTypeBytes() { - java.lang.Object ref = instanceType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INSTANCECOUNT_FIELD_NUMBER = 2; - private long instanceCount_; - /** - * int64 InstanceCount = 2; - */ - public long getInstanceCount() { - return instanceCount_; - } - - public static final int VOLUMESIZEINGB_FIELD_NUMBER = 3; - private long volumeSizeInGB_; - /** - * int64 VolumeSizeInGB = 3; - */ - public long getVolumeSizeInGB() { - return volumeSizeInGB_; - } - - public static final int VOLUMEKMSKEYID_FIELD_NUMBER = 4; - private volatile java.lang.Object volumeKmsKeyId_; - /** - * string VolumeKmsKeyId = 4; - */ - public java.lang.String getVolumeKmsKeyId() { - java.lang.Object ref = volumeKmsKeyId_; - 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(); - volumeKmsKeyId_ = s; - return s; - } - } - /** - * string VolumeKmsKeyId = 4; - */ - public com.google.protobuf.ByteString - getVolumeKmsKeyIdBytes() { - java.lang.Object ref = volumeKmsKeyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - volumeKmsKeyId_ = 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 (!getInstanceTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceType_); - } - if (instanceCount_ != 0L) { - output.writeInt64(2, instanceCount_); - } - if (volumeSizeInGB_ != 0L) { - output.writeInt64(3, volumeSizeInGB_); - } - if (!getVolumeKmsKeyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, volumeKmsKeyId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getInstanceTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceType_); - } - if (instanceCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, instanceCount_); - } - if (volumeSizeInGB_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, volumeSizeInGB_); - } - if (!getVolumeKmsKeyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, volumeKmsKeyId_); - } - 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 flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig other = (flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig) obj; - - if (!getInstanceType() - .equals(other.getInstanceType())) return false; - if (getInstanceCount() - != other.getInstanceCount()) return false; - if (getVolumeSizeInGB() - != other.getVolumeSizeInGB()) return false; - if (!getVolumeKmsKeyId() - .equals(other.getVolumeKmsKeyId())) 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) + INSTANCETYPE_FIELD_NUMBER; - hash = (53 * hash) + getInstanceType().hashCode(); - hash = (37 * hash) + INSTANCECOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInstanceCount()); - hash = (37 * hash) + VOLUMESIZEINGB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVolumeSizeInGB()); - hash = (37 * hash) + VOLUMEKMSKEYID_FIELD_NUMBER; - hash = (53 * hash) + getVolumeKmsKeyId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig 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 flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig 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 flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig 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(flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig 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 flyteidl.plugins.sagemaker.ResourceConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ResourceConfig) - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.class, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.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(); - instanceType_ = ""; - - instanceCount_ = 0L; - - volumeSizeInGB_ = 0L; - - volumeKmsKeyId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig build() { - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig buildPartial() { - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig result = new flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig(this); - result.instanceType_ = instanceType_; - result.instanceCount_ = instanceCount_; - result.volumeSizeInGB_ = volumeSizeInGB_; - result.volumeKmsKeyId_ = volumeKmsKeyId_; - 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 flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig) { - return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig other) { - if (other == flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance()) return this; - if (!other.getInstanceType().isEmpty()) { - instanceType_ = other.instanceType_; - onChanged(); - } - if (other.getInstanceCount() != 0L) { - setInstanceCount(other.getInstanceCount()); - } - if (other.getVolumeSizeInGB() != 0L) { - setVolumeSizeInGB(other.getVolumeSizeInGB()); - } - if (!other.getVolumeKmsKeyId().isEmpty()) { - volumeKmsKeyId_ = other.volumeKmsKeyId_; - 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 { - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object instanceType_ = ""; - /** - * string InstanceType = 1; - */ - public java.lang.String getInstanceType() { - java.lang.Object ref = instanceType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string InstanceType = 1; - */ - public com.google.protobuf.ByteString - getInstanceTypeBytes() { - java.lang.Object ref = instanceType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string InstanceType = 1; - */ - public Builder setInstanceType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - instanceType_ = value; - onChanged(); - return this; - } - /** - * string InstanceType = 1; - */ - public Builder clearInstanceType() { - - instanceType_ = getDefaultInstance().getInstanceType(); - onChanged(); - return this; - } - /** - * string InstanceType = 1; - */ - public Builder setInstanceTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instanceType_ = value; - onChanged(); - return this; - } - - private long instanceCount_ ; - /** - * int64 InstanceCount = 2; - */ - public long getInstanceCount() { - return instanceCount_; - } - /** - * int64 InstanceCount = 2; - */ - public Builder setInstanceCount(long value) { - - instanceCount_ = value; - onChanged(); - return this; - } - /** - * int64 InstanceCount = 2; - */ - public Builder clearInstanceCount() { - - instanceCount_ = 0L; - onChanged(); - return this; - } - - private long volumeSizeInGB_ ; - /** - * int64 VolumeSizeInGB = 3; - */ - public long getVolumeSizeInGB() { - return volumeSizeInGB_; - } - /** - * int64 VolumeSizeInGB = 3; - */ - public Builder setVolumeSizeInGB(long value) { - - volumeSizeInGB_ = value; - onChanged(); - return this; - } - /** - * int64 VolumeSizeInGB = 3; - */ - public Builder clearVolumeSizeInGB() { - - volumeSizeInGB_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object volumeKmsKeyId_ = ""; - /** - * string VolumeKmsKeyId = 4; - */ - public java.lang.String getVolumeKmsKeyId() { - java.lang.Object ref = volumeKmsKeyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - volumeKmsKeyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string VolumeKmsKeyId = 4; - */ - public com.google.protobuf.ByteString - getVolumeKmsKeyIdBytes() { - java.lang.Object ref = volumeKmsKeyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - volumeKmsKeyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string VolumeKmsKeyId = 4; - */ - public Builder setVolumeKmsKeyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - volumeKmsKeyId_ = value; - onChanged(); - return this; - } - /** - * string VolumeKmsKeyId = 4; - */ - public Builder clearVolumeKmsKeyId() { - - volumeKmsKeyId_ = getDefaultInstance().getVolumeKmsKeyId(); - onChanged(); - return this; - } - /** - * string VolumeKmsKeyId = 4; - */ - public Builder setVolumeKmsKeyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - volumeKmsKeyId_ = 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:flyteidl.plugins.sagemaker.ResourceConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ResourceConfig) - private static final flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig(); - } - - public static flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceConfig(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 flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StoppingConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.StoppingCondition) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 MaxRuntimeInSeconds = 1; - */ - long getMaxRuntimeInSeconds(); - - /** - * int64 MaxWaitTimeInSeconds = 2; - */ - long getMaxWaitTimeInSeconds(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} - */ - public static final class StoppingCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.StoppingCondition) - StoppingConditionOrBuilder { - private static final long serialVersionUID = 0L; - // Use StoppingCondition.newBuilder() to construct. - private StoppingCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StoppingCondition() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StoppingCondition( - 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 8: { - - maxRuntimeInSeconds_ = input.readInt64(); - break; - } - case 16: { - - maxWaitTimeInSeconds_ = 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 flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.class, flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder.class); - } - - public static final int MAXRUNTIMEINSECONDS_FIELD_NUMBER = 1; - private long maxRuntimeInSeconds_; - /** - * int64 MaxRuntimeInSeconds = 1; - */ - public long getMaxRuntimeInSeconds() { - return maxRuntimeInSeconds_; - } - - public static final int MAXWAITTIMEINSECONDS_FIELD_NUMBER = 2; - private long maxWaitTimeInSeconds_; - /** - * int64 MaxWaitTimeInSeconds = 2; - */ - public long getMaxWaitTimeInSeconds() { - return maxWaitTimeInSeconds_; - } - - 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 (maxRuntimeInSeconds_ != 0L) { - output.writeInt64(1, maxRuntimeInSeconds_); - } - if (maxWaitTimeInSeconds_ != 0L) { - output.writeInt64(2, maxWaitTimeInSeconds_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxRuntimeInSeconds_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, maxRuntimeInSeconds_); - } - if (maxWaitTimeInSeconds_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxWaitTimeInSeconds_); - } - 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 flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition other = (flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition) obj; - - if (getMaxRuntimeInSeconds() - != other.getMaxRuntimeInSeconds()) return false; - if (getMaxWaitTimeInSeconds() - != other.getMaxWaitTimeInSeconds()) 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) + MAXRUNTIMEINSECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxRuntimeInSeconds()); - hash = (37 * hash) + MAXWAITTIMEINSECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxWaitTimeInSeconds()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition 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 flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition 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 flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition 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(flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition 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 flyteidl.plugins.sagemaker.StoppingCondition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.StoppingCondition) - flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.class, flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.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(); - maxRuntimeInSeconds_ = 0L; - - maxWaitTimeInSeconds_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition build() { - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition buildPartial() { - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition result = new flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition(this); - result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; - result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; - 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 flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition) { - return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition other) { - if (other == flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance()) return this; - if (other.getMaxRuntimeInSeconds() != 0L) { - setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); - } - if (other.getMaxWaitTimeInSeconds() != 0L) { - setMaxWaitTimeInSeconds(other.getMaxWaitTimeInSeconds()); - } - 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 { - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long maxRuntimeInSeconds_ ; - /** - * int64 MaxRuntimeInSeconds = 1; - */ - public long getMaxRuntimeInSeconds() { - return maxRuntimeInSeconds_; - } - /** - * int64 MaxRuntimeInSeconds = 1; - */ - public Builder setMaxRuntimeInSeconds(long value) { - - maxRuntimeInSeconds_ = value; - onChanged(); - return this; - } - /** - * int64 MaxRuntimeInSeconds = 1; - */ - public Builder clearMaxRuntimeInSeconds() { - - maxRuntimeInSeconds_ = 0L; - onChanged(); - return this; - } - - private long maxWaitTimeInSeconds_ ; - /** - * int64 MaxWaitTimeInSeconds = 2; - */ - public long getMaxWaitTimeInSeconds() { - return maxWaitTimeInSeconds_; - } - /** - * int64 MaxWaitTimeInSeconds = 2; - */ - public Builder setMaxWaitTimeInSeconds(long value) { - - maxWaitTimeInSeconds_ = value; - onChanged(); - return this; - } - /** - * int64 MaxWaitTimeInSeconds = 2; - */ - public Builder clearMaxWaitTimeInSeconds() { - - maxWaitTimeInSeconds_ = 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:flyteidl.plugins.sagemaker.StoppingCondition) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) - private static final flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition(); - } - - public static flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StoppingCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StoppingCondition(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 flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface VpcConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.VpcConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string SecurityGroupIds = 1; - */ - java.util.List - getSecurityGroupIdsList(); - /** - * repeated string SecurityGroupIds = 1; - */ - int getSecurityGroupIdsCount(); - /** - * repeated string SecurityGroupIds = 1; - */ - java.lang.String getSecurityGroupIds(int index); - /** - * repeated string SecurityGroupIds = 1; - */ - com.google.protobuf.ByteString - getSecurityGroupIdsBytes(int index); - - /** - * repeated string Subnets = 2; - */ - java.util.List - getSubnetsList(); - /** - * repeated string Subnets = 2; - */ - int getSubnetsCount(); - /** - * repeated string Subnets = 2; - */ - java.lang.String getSubnets(int index); - /** - * repeated string Subnets = 2; - */ - com.google.protobuf.ByteString - getSubnetsBytes(int index); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.VpcConfig} - */ - public static final class VpcConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.VpcConfig) - VpcConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use VpcConfig.newBuilder() to construct. - private VpcConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VpcConfig() { - securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VpcConfig( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - securityGroupIds_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - subnets_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - subnets_.add(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)) { - securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - subnets_ = subnets_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.class, flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder.class); - } - - public static final int SECURITYGROUPIDS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList securityGroupIds_; - /** - * repeated string SecurityGroupIds = 1; - */ - public com.google.protobuf.ProtocolStringList - getSecurityGroupIdsList() { - return securityGroupIds_; - } - /** - * repeated string SecurityGroupIds = 1; - */ - public int getSecurityGroupIdsCount() { - return securityGroupIds_.size(); - } - /** - * repeated string SecurityGroupIds = 1; - */ - public java.lang.String getSecurityGroupIds(int index) { - return securityGroupIds_.get(index); - } - /** - * repeated string SecurityGroupIds = 1; - */ - public com.google.protobuf.ByteString - getSecurityGroupIdsBytes(int index) { - return securityGroupIds_.getByteString(index); - } - - public static final int SUBNETS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList subnets_; - /** - * repeated string Subnets = 2; - */ - public com.google.protobuf.ProtocolStringList - getSubnetsList() { - return subnets_; - } - /** - * repeated string Subnets = 2; - */ - public int getSubnetsCount() { - return subnets_.size(); - } - /** - * repeated string Subnets = 2; - */ - public java.lang.String getSubnets(int index) { - return subnets_.get(index); - } - /** - * repeated string Subnets = 2; - */ - public com.google.protobuf.ByteString - getSubnetsBytes(int index) { - return subnets_.getByteString(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 < securityGroupIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, securityGroupIds_.getRaw(i)); - } - for (int i = 0; i < subnets_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnets_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < securityGroupIds_.size(); i++) { - dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getSecurityGroupIdsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < subnets_.size(); i++) { - dataSize += computeStringSizeNoTag(subnets_.getRaw(i)); - } - size += dataSize; - size += 1 * getSubnetsList().size(); - } - 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 flyteidl.plugins.sagemaker.Sagemaker.VpcConfig)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig other = (flyteidl.plugins.sagemaker.Sagemaker.VpcConfig) obj; - - if (!getSecurityGroupIdsList() - .equals(other.getSecurityGroupIdsList())) return false; - if (!getSubnetsList() - .equals(other.getSubnetsList())) 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 (getSecurityGroupIdsCount() > 0) { - hash = (37 * hash) + SECURITYGROUPIDS_FIELD_NUMBER; - hash = (53 * hash) + getSecurityGroupIdsList().hashCode(); - } - if (getSubnetsCount() > 0) { - hash = (37 * hash) + SUBNETS_FIELD_NUMBER; - hash = (53 * hash) + getSubnetsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig 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 flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig 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 flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig 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(flyteidl.plugins.sagemaker.Sagemaker.VpcConfig 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 flyteidl.plugins.sagemaker.VpcConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.VpcConfig) - flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.class, flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.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(); - securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.VpcConfig getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.VpcConfig build() { - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.VpcConfig buildPartial() { - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig result = new flyteidl.plugins.sagemaker.Sagemaker.VpcConfig(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.securityGroupIds_ = securityGroupIds_; - if (((bitField0_ & 0x00000002) != 0)) { - subnets_ = subnets_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.subnets_ = subnets_; - 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 flyteidl.plugins.sagemaker.Sagemaker.VpcConfig) { - return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.VpcConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.VpcConfig other) { - if (other == flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance()) return this; - if (!other.securityGroupIds_.isEmpty()) { - if (securityGroupIds_.isEmpty()) { - securityGroupIds_ = other.securityGroupIds_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSecurityGroupIdsIsMutable(); - securityGroupIds_.addAll(other.securityGroupIds_); - } - onChanged(); - } - if (!other.subnets_.isEmpty()) { - if (subnets_.isEmpty()) { - subnets_ = other.subnets_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSubnetsIsMutable(); - subnets_.addAll(other.subnets_); - } - 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 { - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.VpcConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureSecurityGroupIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string SecurityGroupIds = 1; - */ - public com.google.protobuf.ProtocolStringList - getSecurityGroupIdsList() { - return securityGroupIds_.getUnmodifiableView(); - } - /** - * repeated string SecurityGroupIds = 1; - */ - public int getSecurityGroupIdsCount() { - return securityGroupIds_.size(); - } - /** - * repeated string SecurityGroupIds = 1; - */ - public java.lang.String getSecurityGroupIds(int index) { - return securityGroupIds_.get(index); - } - /** - * repeated string SecurityGroupIds = 1; - */ - public com.google.protobuf.ByteString - getSecurityGroupIdsBytes(int index) { - return securityGroupIds_.getByteString(index); - } - /** - * repeated string SecurityGroupIds = 1; - */ - public Builder setSecurityGroupIds( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityGroupIdsIsMutable(); - securityGroupIds_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string SecurityGroupIds = 1; - */ - public Builder addSecurityGroupIds( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityGroupIdsIsMutable(); - securityGroupIds_.add(value); - onChanged(); - return this; - } - /** - * repeated string SecurityGroupIds = 1; - */ - public Builder addAllSecurityGroupIds( - java.lang.Iterable values) { - ensureSecurityGroupIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, securityGroupIds_); - onChanged(); - return this; - } - /** - * repeated string SecurityGroupIds = 1; - */ - public Builder clearSecurityGroupIds() { - securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string SecurityGroupIds = 1; - */ - public Builder addSecurityGroupIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSecurityGroupIdsIsMutable(); - securityGroupIds_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureSubnetsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - subnets_ = new com.google.protobuf.LazyStringArrayList(subnets_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated string Subnets = 2; - */ - public com.google.protobuf.ProtocolStringList - getSubnetsList() { - return subnets_.getUnmodifiableView(); - } - /** - * repeated string Subnets = 2; - */ - public int getSubnetsCount() { - return subnets_.size(); - } - /** - * repeated string Subnets = 2; - */ - public java.lang.String getSubnets(int index) { - return subnets_.get(index); - } - /** - * repeated string Subnets = 2; - */ - public com.google.protobuf.ByteString - getSubnetsBytes(int index) { - return subnets_.getByteString(index); - } - /** - * repeated string Subnets = 2; - */ - public Builder setSubnets( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubnetsIsMutable(); - subnets_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string Subnets = 2; - */ - public Builder addSubnets( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubnetsIsMutable(); - subnets_.add(value); - onChanged(); - return this; - } - /** - * repeated string Subnets = 2; - */ - public Builder addAllSubnets( - java.lang.Iterable values) { - ensureSubnetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subnets_); - onChanged(); - return this; - } - /** - * repeated string Subnets = 2; - */ - public Builder clearSubnets() { - subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * repeated string Subnets = 2; - */ - public Builder addSubnetsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSubnetsIsMutable(); - subnets_.add(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:flyteidl.plugins.sagemaker.VpcConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.VpcConfig) - private static final flyteidl.plugins.sagemaker.Sagemaker.VpcConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.VpcConfig(); - } - - public static flyteidl.plugins.sagemaker.Sagemaker.VpcConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VpcConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VpcConfig(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 flyteidl.plugins.sagemaker.Sagemaker.VpcConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SagemakerTrainingJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - com.google.protobuf.MessageOrBuilder { - - /** - * string Region = 1; - */ - java.lang.String getRegion(); - /** - * string Region = 1; - */ - com.google.protobuf.ByteString - getRegionBytes(); - - /** - * string RoleArn = 2; - */ - java.lang.String getRoleArn(); - /** - * string RoleArn = 2; - */ - com.google.protobuf.ByteString - getRoleArnBytes(); - - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - boolean hasAlgorithmSpecification(); - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification getAlgorithmSpecification(); - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - boolean hasResourceConfig(); - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig getResourceConfig(); - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - boolean hasStoppingCondition(); - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition getStoppingCondition(); - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - boolean hasVpcConfig(); - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig getVpcConfig(); - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder(); - - /** - * bool EnableSpotTraining = 7; - */ - boolean getEnableSpotTraining(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.SagemakerTrainingJob} - */ - public static final class SagemakerTrainingJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - SagemakerTrainingJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use SagemakerTrainingJob.newBuilder() to construct. - private SagemakerTrainingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SagemakerTrainingJob() { - region_ = ""; - roleArn_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SagemakerTrainingJob( - 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(); - - region_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - roleArn_ = s; - break; - } - case 26: { - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder subBuilder = null; - if (algorithmSpecification_ != null) { - subBuilder = algorithmSpecification_.toBuilder(); - } - algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(algorithmSpecification_); - algorithmSpecification_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder subBuilder = null; - if (resourceConfig_ != null) { - subBuilder = resourceConfig_.toBuilder(); - } - resourceConfig_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceConfig_); - resourceConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder subBuilder = null; - if (stoppingCondition_ != null) { - subBuilder = stoppingCondition_.toBuilder(); - } - stoppingCondition_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stoppingCondition_); - stoppingCondition_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder subBuilder = null; - if (vpcConfig_ != null) { - subBuilder = vpcConfig_.toBuilder(); - } - vpcConfig_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vpcConfig_); - vpcConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 56: { - - enableSpotTraining_ = input.readBool(); - 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 flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.class, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder.class); - } - - public static final int REGION_FIELD_NUMBER = 1; - private volatile java.lang.Object region_; - /** - * string Region = 1; - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - 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(); - region_ = s; - return s; - } - } - /** - * string Region = 1; - */ - public com.google.protobuf.ByteString - getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROLEARN_FIELD_NUMBER = 2; - private volatile java.lang.Object roleArn_; - /** - * string RoleArn = 2; - */ - public java.lang.String getRoleArn() { - java.lang.Object ref = roleArn_; - 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(); - roleArn_ = s; - return s; - } - } - /** - * string RoleArn = 2; - */ - public com.google.protobuf.ByteString - getRoleArnBytes() { - java.lang.Object ref = roleArn_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - roleArn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALGORITHMSPECIFICATION_FIELD_NUMBER = 3; - private flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification algorithmSpecification_; - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - public boolean hasAlgorithmSpecification() { - return algorithmSpecification_ != null; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification getAlgorithmSpecification() { - return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { - return getAlgorithmSpecification(); - } - - public static final int RESOURCECONFIG_FIELD_NUMBER = 4; - private flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig resourceConfig_; - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - public boolean hasResourceConfig() { - return resourceConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig getResourceConfig() { - return resourceConfig_ == null ? flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder() { - return getResourceConfig(); - } - - public static final int STOPPINGCONDITION_FIELD_NUMBER = 5; - private flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition stoppingCondition_; - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - public boolean hasStoppingCondition() { - return stoppingCondition_ != null; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - public flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition getStoppingCondition() { - return stoppingCondition_ == null ? flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - public flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { - return getStoppingCondition(); - } - - public static final int VPCCONFIG_FIELD_NUMBER = 6; - private flyteidl.plugins.sagemaker.Sagemaker.VpcConfig vpcConfig_; - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - public boolean hasVpcConfig() { - return vpcConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - public flyteidl.plugins.sagemaker.Sagemaker.VpcConfig getVpcConfig() { - return vpcConfig_ == null ? flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; - } - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - public flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder() { - return getVpcConfig(); - } - - public static final int ENABLESPOTTRAINING_FIELD_NUMBER = 7; - private boolean enableSpotTraining_; - /** - * bool EnableSpotTraining = 7; - */ - public boolean getEnableSpotTraining() { - return enableSpotTraining_; - } - - 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 (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, region_); - } - if (!getRoleArnBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roleArn_); - } - if (algorithmSpecification_ != null) { - output.writeMessage(3, getAlgorithmSpecification()); - } - if (resourceConfig_ != null) { - output.writeMessage(4, getResourceConfig()); - } - if (stoppingCondition_ != null) { - output.writeMessage(5, getStoppingCondition()); - } - if (vpcConfig_ != null) { - output.writeMessage(6, getVpcConfig()); - } - if (enableSpotTraining_ != false) { - output.writeBool(7, enableSpotTraining_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, region_); - } - if (!getRoleArnBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, roleArn_); - } - if (algorithmSpecification_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAlgorithmSpecification()); - } - if (resourceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResourceConfig()); - } - if (stoppingCondition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getStoppingCondition()); - } - if (vpcConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getVpcConfig()); - } - if (enableSpotTraining_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, enableSpotTraining_); - } - 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 flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob other = (flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob) obj; - - if (!getRegion() - .equals(other.getRegion())) return false; - if (!getRoleArn() - .equals(other.getRoleArn())) return false; - if (hasAlgorithmSpecification() != other.hasAlgorithmSpecification()) return false; - if (hasAlgorithmSpecification()) { - if (!getAlgorithmSpecification() - .equals(other.getAlgorithmSpecification())) return false; - } - if (hasResourceConfig() != other.hasResourceConfig()) return false; - if (hasResourceConfig()) { - if (!getResourceConfig() - .equals(other.getResourceConfig())) return false; - } - if (hasStoppingCondition() != other.hasStoppingCondition()) return false; - if (hasStoppingCondition()) { - if (!getStoppingCondition() - .equals(other.getStoppingCondition())) return false; - } - if (hasVpcConfig() != other.hasVpcConfig()) return false; - if (hasVpcConfig()) { - if (!getVpcConfig() - .equals(other.getVpcConfig())) return false; - } - if (getEnableSpotTraining() - != other.getEnableSpotTraining()) 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) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + ROLEARN_FIELD_NUMBER; - hash = (53 * hash) + getRoleArn().hashCode(); - if (hasAlgorithmSpecification()) { - hash = (37 * hash) + ALGORITHMSPECIFICATION_FIELD_NUMBER; - hash = (53 * hash) + getAlgorithmSpecification().hashCode(); - } - if (hasResourceConfig()) { - hash = (37 * hash) + RESOURCECONFIG_FIELD_NUMBER; - hash = (53 * hash) + getResourceConfig().hashCode(); - } - if (hasStoppingCondition()) { - hash = (37 * hash) + STOPPINGCONDITION_FIELD_NUMBER; - hash = (53 * hash) + getStoppingCondition().hashCode(); - } - if (hasVpcConfig()) { - hash = (37 * hash) + VPCCONFIG_FIELD_NUMBER; - hash = (53 * hash) + getVpcConfig().hashCode(); - } - hash = (37 * hash) + ENABLESPOTTRAINING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSpotTraining()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob 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 flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob 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 flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob 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(flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob 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 flyteidl.plugins.sagemaker.SagemakerTrainingJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.class, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.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(); - region_ = ""; - - roleArn_ = ""; - - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecification_ = null; - } else { - algorithmSpecification_ = null; - algorithmSpecificationBuilder_ = null; - } - if (resourceConfigBuilder_ == null) { - resourceConfig_ = null; - } else { - resourceConfig_ = null; - resourceConfigBuilder_ = null; - } - if (stoppingConditionBuilder_ == null) { - stoppingCondition_ = null; - } else { - stoppingCondition_ = null; - stoppingConditionBuilder_ = null; - } - if (vpcConfigBuilder_ == null) { - vpcConfig_ = null; - } else { - vpcConfig_ = null; - vpcConfigBuilder_ = null; - } - enableSpotTraining_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob build() { - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob buildPartial() { - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob result = new flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob(this); - result.region_ = region_; - result.roleArn_ = roleArn_; - if (algorithmSpecificationBuilder_ == null) { - result.algorithmSpecification_ = algorithmSpecification_; - } else { - result.algorithmSpecification_ = algorithmSpecificationBuilder_.build(); - } - if (resourceConfigBuilder_ == null) { - result.resourceConfig_ = resourceConfig_; - } else { - result.resourceConfig_ = resourceConfigBuilder_.build(); - } - if (stoppingConditionBuilder_ == null) { - result.stoppingCondition_ = stoppingCondition_; - } else { - result.stoppingCondition_ = stoppingConditionBuilder_.build(); - } - if (vpcConfigBuilder_ == null) { - result.vpcConfig_ = vpcConfig_; - } else { - result.vpcConfig_ = vpcConfigBuilder_.build(); - } - result.enableSpotTraining_ = enableSpotTraining_; - 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 flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob) { - return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob other) { - if (other == flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance()) return this; - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getRoleArn().isEmpty()) { - roleArn_ = other.roleArn_; - onChanged(); - } - if (other.hasAlgorithmSpecification()) { - mergeAlgorithmSpecification(other.getAlgorithmSpecification()); - } - if (other.hasResourceConfig()) { - mergeResourceConfig(other.getResourceConfig()); - } - if (other.hasStoppingCondition()) { - mergeStoppingCondition(other.getStoppingCondition()); - } - if (other.hasVpcConfig()) { - mergeVpcConfig(other.getVpcConfig()); - } - if (other.getEnableSpotTraining() != false) { - setEnableSpotTraining(other.getEnableSpotTraining()); - } - 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 { - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object region_ = ""; - /** - * string Region = 1; - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string Region = 1; - */ - public com.google.protobuf.ByteString - getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string Region = 1; - */ - public Builder setRegion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * string Region = 1; - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * string Region = 1; - */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object roleArn_ = ""; - /** - * string RoleArn = 2; - */ - public java.lang.String getRoleArn() { - java.lang.Object ref = roleArn_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - roleArn_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string RoleArn = 2; - */ - public com.google.protobuf.ByteString - getRoleArnBytes() { - java.lang.Object ref = roleArn_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - roleArn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string RoleArn = 2; - */ - public Builder setRoleArn( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - roleArn_ = value; - onChanged(); - return this; - } - /** - * string RoleArn = 2; - */ - public Builder clearRoleArn() { - - roleArn_ = getDefaultInstance().getRoleArn(); - onChanged(); - return this; - } - /** - * string RoleArn = 2; - */ - public Builder setRoleArnBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - roleArn_ = value; - onChanged(); - return this; - } - - private flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification algorithmSpecification_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - public boolean hasAlgorithmSpecification() { - return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification getAlgorithmSpecification() { - if (algorithmSpecificationBuilder_ == null) { - return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } else { - return algorithmSpecificationBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification value) { - if (algorithmSpecificationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - algorithmSpecification_ = value; - onChanged(); - } else { - algorithmSpecificationBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - public Builder setAlgorithmSpecification( - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder builderForValue) { - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecification_ = builderForValue.build(); - onChanged(); - } else { - algorithmSpecificationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification value) { - if (algorithmSpecificationBuilder_ == null) { - if (algorithmSpecification_ != null) { - algorithmSpecification_ = - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); - } else { - algorithmSpecification_ = value; - } - onChanged(); - } else { - algorithmSpecificationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - public Builder clearAlgorithmSpecification() { - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecification_ = null; - onChanged(); - } else { - algorithmSpecification_ = null; - algorithmSpecificationBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { - - onChanged(); - return getAlgorithmSpecificationFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - public flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { - if (algorithmSpecificationBuilder_ != null) { - return algorithmSpecificationBuilder_.getMessageOrBuilder(); - } else { - return algorithmSpecification_ == null ? - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder> - getAlgorithmSpecificationFieldBuilder() { - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Sagemaker.AlgorithmSpecificationOrBuilder>( - getAlgorithmSpecification(), - getParentForChildren(), - isClean()); - algorithmSpecification_ = null; - } - return algorithmSpecificationBuilder_; - } - - private flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig resourceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder> resourceConfigBuilder_; - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - public boolean hasResourceConfig() { - return resourceConfigBuilder_ != null || resourceConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig getResourceConfig() { - if (resourceConfigBuilder_ == null) { - return resourceConfig_ == null ? flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; - } else { - return resourceConfigBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - public Builder setResourceConfig(flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig value) { - if (resourceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceConfig_ = value; - onChanged(); - } else { - resourceConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - public Builder setResourceConfig( - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder builderForValue) { - if (resourceConfigBuilder_ == null) { - resourceConfig_ = builderForValue.build(); - onChanged(); - } else { - resourceConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - public Builder mergeResourceConfig(flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig value) { - if (resourceConfigBuilder_ == null) { - if (resourceConfig_ != null) { - resourceConfig_ = - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.newBuilder(resourceConfig_).mergeFrom(value).buildPartial(); - } else { - resourceConfig_ = value; - } - onChanged(); - } else { - resourceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - public Builder clearResourceConfig() { - if (resourceConfigBuilder_ == null) { - resourceConfig_ = null; - onChanged(); - } else { - resourceConfig_ = null; - resourceConfigBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder getResourceConfigBuilder() { - - onChanged(); - return getResourceConfigFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder getResourceConfigOrBuilder() { - if (resourceConfigBuilder_ != null) { - return resourceConfigBuilder_.getMessageOrBuilder(); - } else { - return resourceConfig_ == null ? - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.getDefaultInstance() : resourceConfig_; - } - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder> - getResourceConfigFieldBuilder() { - if (resourceConfigBuilder_ == null) { - resourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Sagemaker.ResourceConfigOrBuilder>( - getResourceConfig(), - getParentForChildren(), - isClean()); - resourceConfig_ = null; - } - return resourceConfigBuilder_; - } - - private flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition stoppingCondition_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition, flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder> stoppingConditionBuilder_; - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - public boolean hasStoppingCondition() { - return stoppingConditionBuilder_ != null || stoppingCondition_ != null; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - public flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition getStoppingCondition() { - if (stoppingConditionBuilder_ == null) { - return stoppingCondition_ == null ? flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; - } else { - return stoppingConditionBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - public Builder setStoppingCondition(flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition value) { - if (stoppingConditionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stoppingCondition_ = value; - onChanged(); - } else { - stoppingConditionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - public Builder setStoppingCondition( - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder builderForValue) { - if (stoppingConditionBuilder_ == null) { - stoppingCondition_ = builderForValue.build(); - onChanged(); - } else { - stoppingConditionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - public Builder mergeStoppingCondition(flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition value) { - if (stoppingConditionBuilder_ == null) { - if (stoppingCondition_ != null) { - stoppingCondition_ = - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.newBuilder(stoppingCondition_).mergeFrom(value).buildPartial(); - } else { - stoppingCondition_ = value; - } - onChanged(); - } else { - stoppingConditionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - public Builder clearStoppingCondition() { - if (stoppingConditionBuilder_ == null) { - stoppingCondition_ = null; - onChanged(); - } else { - stoppingCondition_ = null; - stoppingConditionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - public flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder getStoppingConditionBuilder() { - - onChanged(); - return getStoppingConditionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - public flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { - if (stoppingConditionBuilder_ != null) { - return stoppingConditionBuilder_.getMessageOrBuilder(); - } else { - return stoppingCondition_ == null ? - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.getDefaultInstance() : stoppingCondition_; - } - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition, flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder> - getStoppingConditionFieldBuilder() { - if (stoppingConditionBuilder_ == null) { - stoppingConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition, flyteidl.plugins.sagemaker.Sagemaker.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Sagemaker.StoppingConditionOrBuilder>( - getStoppingCondition(), - getParentForChildren(), - isClean()); - stoppingCondition_ = null; - } - return stoppingConditionBuilder_; - } - - private flyteidl.plugins.sagemaker.Sagemaker.VpcConfig vpcConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig, flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder, flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder> vpcConfigBuilder_; - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - public boolean hasVpcConfig() { - return vpcConfigBuilder_ != null || vpcConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - public flyteidl.plugins.sagemaker.Sagemaker.VpcConfig getVpcConfig() { - if (vpcConfigBuilder_ == null) { - return vpcConfig_ == null ? flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; - } else { - return vpcConfigBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - public Builder setVpcConfig(flyteidl.plugins.sagemaker.Sagemaker.VpcConfig value) { - if (vpcConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vpcConfig_ = value; - onChanged(); - } else { - vpcConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - public Builder setVpcConfig( - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder builderForValue) { - if (vpcConfigBuilder_ == null) { - vpcConfig_ = builderForValue.build(); - onChanged(); - } else { - vpcConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - public Builder mergeVpcConfig(flyteidl.plugins.sagemaker.Sagemaker.VpcConfig value) { - if (vpcConfigBuilder_ == null) { - if (vpcConfig_ != null) { - vpcConfig_ = - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.newBuilder(vpcConfig_).mergeFrom(value).buildPartial(); - } else { - vpcConfig_ = value; - } - onChanged(); - } else { - vpcConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - public Builder clearVpcConfig() { - if (vpcConfigBuilder_ == null) { - vpcConfig_ = null; - onChanged(); - } else { - vpcConfig_ = null; - vpcConfigBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - public flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder getVpcConfigBuilder() { - - onChanged(); - return getVpcConfigFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - public flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder getVpcConfigOrBuilder() { - if (vpcConfigBuilder_ != null) { - return vpcConfigBuilder_.getMessageOrBuilder(); - } else { - return vpcConfig_ == null ? - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.getDefaultInstance() : vpcConfig_; - } - } - /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig, flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder, flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder> - getVpcConfigFieldBuilder() { - if (vpcConfigBuilder_ == null) { - vpcConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.VpcConfig, flyteidl.plugins.sagemaker.Sagemaker.VpcConfig.Builder, flyteidl.plugins.sagemaker.Sagemaker.VpcConfigOrBuilder>( - getVpcConfig(), - getParentForChildren(), - isClean()); - vpcConfig_ = null; - } - return vpcConfigBuilder_; - } - - private boolean enableSpotTraining_ ; - /** - * bool EnableSpotTraining = 7; - */ - public boolean getEnableSpotTraining() { - return enableSpotTraining_; - } - /** - * bool EnableSpotTraining = 7; - */ - public Builder setEnableSpotTraining(boolean value) { - - enableSpotTraining_ = value; - onChanged(); - return this; - } - /** - * bool EnableSpotTraining = 7; - */ - public Builder clearEnableSpotTraining() { - - enableSpotTraining_ = false; - 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:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - private static final flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob(); - } - - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SagemakerTrainingJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SagemakerTrainingJob(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 flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HPOJobObjectiveOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJobObjective) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - */ - int getTypeValue(); - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - */ - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType getType(); - - /** - * string MetricName = 2; - */ - java.lang.String getMetricName(); - /** - * string MetricName = 2; - */ - com.google.protobuf.ByteString - getMetricNameBytes(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobObjective} - */ - public static final class HPOJobObjective extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJobObjective) - HPOJobObjectiveOrBuilder { - private static final long serialVersionUID = 0L; - // Use HPOJobObjective.newBuilder() to construct. - private HPOJobObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HPOJobObjective() { - type_ = 0; - metricName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HPOJobObjective( - 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 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - metricName_ = 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 flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.class, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType} - */ - public enum HPOJobObjectiveType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * MINIMIZE = 0; - */ - MINIMIZE(0), - /** - * MAXIMIZE = 1; - */ - MAXIMIZE(1), - UNRECOGNIZED(-1), - ; - - /** - * MINIMIZE = 0; - */ - public static final int MINIMIZE_VALUE = 0; - /** - * MAXIMIZE = 1; - */ - public static final int MAXIMIZE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HPOJobObjectiveType valueOf(int value) { - return forNumber(value); - } - - public static HPOJobObjectiveType forNumber(int value) { - switch (value) { - case 0: return MINIMIZE; - case 1: return MAXIMIZE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HPOJobObjectiveType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HPOJobObjectiveType findValueByNumber(int number) { - return HPOJobObjectiveType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.getDescriptor().getEnumTypes().get(0); - } - - private static final HPOJobObjectiveType[] VALUES = values(); - - public static HPOJobObjectiveType 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 HPOJobObjectiveType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType) - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - */ - public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType getType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType result = flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType.valueOf(type_); - return result == null ? flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType.UNRECOGNIZED : result; - } - - public static final int METRICNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object metricName_; - /** - * string MetricName = 2; - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - 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(); - metricName_ = s; - return s; - } - } - /** - * string MetricName = 2; - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = 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 (type_ != flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType.MINIMIZE.getNumber()) { - output.writeEnum(1, type_); - } - if (!getMetricNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType.MINIMIZE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (!getMetricNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricName_); - } - 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 flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective other = (flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective) obj; - - if (type_ != other.type_) return false; - if (!getMetricName() - .equals(other.getMetricName())) 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) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + METRICNAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective 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 flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective 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 flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective 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(flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective 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 flyteidl.plugins.sagemaker.HPOJobObjective} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobObjective) - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.class, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.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(); - type_ = 0; - - metricName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective build() { - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective buildPartial() { - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective result = new flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective(this); - result.type_ = type_; - result.metricName_ = metricName_; - 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 flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective) { - return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective other) { - if (other == flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - 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 { - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - */ - public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType getType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType result = flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType.valueOf(type_); - return result == null ? flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - */ - public Builder setType(flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.HPOJobObjectiveType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object metricName_ = ""; - /** - * string MetricName = 2; - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string MetricName = 2; - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string MetricName = 2; - */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metricName_ = value; - onChanged(); - return this; - } - /** - * string MetricName = 2; - */ - public Builder clearMetricName() { - - metricName_ = getDefaultInstance().getMetricName(); - onChanged(); - return this; - } - /** - * string MetricName = 2; - */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metricName_ = 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:flyteidl.plugins.sagemaker.HPOJobObjective) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobObjective) - private static final flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective(); - } - - public static flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HPOJobObjective parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HPOJobObjective(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 flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SagemakerHPOJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.SagemakerHPOJob) - com.google.protobuf.MessageOrBuilder { - - /** - * string Strategy = 1; - */ - java.lang.String getStrategy(); - /** - * string Strategy = 1; - */ - com.google.protobuf.ByteString - getStrategyBytes(); - - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - boolean hasObjective(); - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective getObjective(); - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder(); - - /** - * int64 MaxNumberOfTrainingJobs = 3; - */ - long getMaxNumberOfTrainingJobs(); - - /** - * int64 MaxParallelTrainingJobs = 4; - */ - long getMaxParallelTrainingJobs(); - - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - boolean hasParameterRanges(); - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges getParameterRanges(); - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - boolean hasTrainingJob(); - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getTrainingJob(); - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.SagemakerHPOJob} - */ - public static final class SagemakerHPOJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.SagemakerHPOJob) - SagemakerHPOJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use SagemakerHPOJob.newBuilder() to construct. - private SagemakerHPOJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SagemakerHPOJob() { - strategy_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SagemakerHPOJob( - 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(); - - strategy_ = s; - break; - } - case 18: { - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder subBuilder = null; - if (objective_ != null) { - subBuilder = objective_.toBuilder(); - } - objective_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(objective_); - objective_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - maxNumberOfTrainingJobs_ = input.readInt64(); - break; - } - case 32: { - - maxParallelTrainingJobs_ = input.readInt64(); - break; - } - case 42: { - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder subBuilder = null; - if (parameterRanges_ != null) { - subBuilder = parameterRanges_.toBuilder(); - } - parameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameterRanges_); - parameterRanges_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder subBuilder = null; - if (trainingJob_ != null) { - subBuilder = trainingJob_.toBuilder(); - } - trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trainingJob_); - trainingJob_ = 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 flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.class, flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.Builder.class); - } - - public static final int STRATEGY_FIELD_NUMBER = 1; - private volatile java.lang.Object strategy_; - /** - * string Strategy = 1; - */ - public java.lang.String getStrategy() { - java.lang.Object ref = strategy_; - 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(); - strategy_ = s; - return s; - } - } - /** - * string Strategy = 1; - */ - public com.google.protobuf.ByteString - getStrategyBytes() { - java.lang.Object ref = strategy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - strategy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OBJECTIVE_FIELD_NUMBER = 2; - private flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective objective_; - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public boolean hasObjective() { - return objective_ != null; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective getObjective() { - return objective_ == null ? flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { - return getObjective(); - } - - public static final int MAXNUMBEROFTRAININGJOBS_FIELD_NUMBER = 3; - private long maxNumberOfTrainingJobs_; - /** - * int64 MaxNumberOfTrainingJobs = 3; - */ - public long getMaxNumberOfTrainingJobs() { - return maxNumberOfTrainingJobs_; - } - - public static final int MAXPARALLELTRAININGJOBS_FIELD_NUMBER = 4; - private long maxParallelTrainingJobs_; - /** - * int64 MaxParallelTrainingJobs = 4; - */ - public long getMaxParallelTrainingJobs() { - return maxParallelTrainingJobs_; - } - - public static final int PARAMETERRANGES_FIELD_NUMBER = 5; - private flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parameterRanges_; - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public boolean hasParameterRanges() { - return parameterRanges_ != null; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges getParameterRanges() { - return parameterRanges_ == null ? flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder() { - return getParameterRanges(); - } - - public static final int TRAININGJOB_FIELD_NUMBER = 6; - private flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob trainingJob_; - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - public boolean hasTrainingJob() { - return trainingJob_ != null; - } - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getTrainingJob() { - return trainingJob_ == null ? flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; - } - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder() { - return getTrainingJob(); - } - - 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 (!getStrategyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, strategy_); - } - if (objective_ != null) { - output.writeMessage(2, getObjective()); - } - if (maxNumberOfTrainingJobs_ != 0L) { - output.writeInt64(3, maxNumberOfTrainingJobs_); - } - if (maxParallelTrainingJobs_ != 0L) { - output.writeInt64(4, maxParallelTrainingJobs_); - } - if (parameterRanges_ != null) { - output.writeMessage(5, getParameterRanges()); - } - if (trainingJob_ != null) { - output.writeMessage(6, getTrainingJob()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getStrategyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, strategy_); - } - if (objective_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getObjective()); - } - if (maxNumberOfTrainingJobs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, maxNumberOfTrainingJobs_); - } - if (maxParallelTrainingJobs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, maxParallelTrainingJobs_); - } - if (parameterRanges_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getParameterRanges()); - } - if (trainingJob_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getTrainingJob()); - } - 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 flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob other = (flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob) obj; - - if (!getStrategy() - .equals(other.getStrategy())) return false; - if (hasObjective() != other.hasObjective()) return false; - if (hasObjective()) { - if (!getObjective() - .equals(other.getObjective())) return false; - } - if (getMaxNumberOfTrainingJobs() - != other.getMaxNumberOfTrainingJobs()) return false; - if (getMaxParallelTrainingJobs() - != other.getMaxParallelTrainingJobs()) return false; - if (hasParameterRanges() != other.hasParameterRanges()) return false; - if (hasParameterRanges()) { - if (!getParameterRanges() - .equals(other.getParameterRanges())) return false; - } - if (hasTrainingJob() != other.hasTrainingJob()) return false; - if (hasTrainingJob()) { - if (!getTrainingJob() - .equals(other.getTrainingJob())) 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) + STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + getStrategy().hashCode(); - if (hasObjective()) { - hash = (37 * hash) + OBJECTIVE_FIELD_NUMBER; - hash = (53 * hash) + getObjective().hashCode(); - } - hash = (37 * hash) + MAXNUMBEROFTRAININGJOBS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxNumberOfTrainingJobs()); - hash = (37 * hash) + MAXPARALLELTRAININGJOBS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxParallelTrainingJobs()); - if (hasParameterRanges()) { - hash = (37 * hash) + PARAMETERRANGES_FIELD_NUMBER; - hash = (53 * hash) + getParameterRanges().hashCode(); - } - if (hasTrainingJob()) { - hash = (37 * hash) + TRAININGJOB_FIELD_NUMBER; - hash = (53 * hash) + getTrainingJob().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob 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 flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob 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 flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob 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(flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob 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 flyteidl.plugins.sagemaker.SagemakerHPOJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.SagemakerHPOJob) - flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.class, flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.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(); - strategy_ = ""; - - if (objectiveBuilder_ == null) { - objective_ = null; - } else { - objective_ = null; - objectiveBuilder_ = null; - } - maxNumberOfTrainingJobs_ = 0L; - - maxParallelTrainingJobs_ = 0L; - - if (parameterRangesBuilder_ == null) { - parameterRanges_ = null; - } else { - parameterRanges_ = null; - parameterRangesBuilder_ = null; - } - if (trainingJobBuilder_ == null) { - trainingJob_ = null; - } else { - trainingJob_ = null; - trainingJobBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.Sagemaker.internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob build() { - flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob buildPartial() { - flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob result = new flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob(this); - result.strategy_ = strategy_; - if (objectiveBuilder_ == null) { - result.objective_ = objective_; - } else { - result.objective_ = objectiveBuilder_.build(); - } - result.maxNumberOfTrainingJobs_ = maxNumberOfTrainingJobs_; - result.maxParallelTrainingJobs_ = maxParallelTrainingJobs_; - if (parameterRangesBuilder_ == null) { - result.parameterRanges_ = parameterRanges_; - } else { - result.parameterRanges_ = parameterRangesBuilder_.build(); - } - if (trainingJobBuilder_ == null) { - result.trainingJob_ = trainingJob_; - } else { - result.trainingJob_ = trainingJobBuilder_.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 flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob) { - return mergeFrom((flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob other) { - if (other == flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob.getDefaultInstance()) return this; - if (!other.getStrategy().isEmpty()) { - strategy_ = other.strategy_; - onChanged(); - } - if (other.hasObjective()) { - mergeObjective(other.getObjective()); - } - if (other.getMaxNumberOfTrainingJobs() != 0L) { - setMaxNumberOfTrainingJobs(other.getMaxNumberOfTrainingJobs()); - } - if (other.getMaxParallelTrainingJobs() != 0L) { - setMaxParallelTrainingJobs(other.getMaxParallelTrainingJobs()); - } - if (other.hasParameterRanges()) { - mergeParameterRanges(other.getParameterRanges()); - } - if (other.hasTrainingJob()) { - mergeTrainingJob(other.getTrainingJob()); - } - 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 { - flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object strategy_ = ""; - /** - * string Strategy = 1; - */ - public java.lang.String getStrategy() { - java.lang.Object ref = strategy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - strategy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string Strategy = 1; - */ - public com.google.protobuf.ByteString - getStrategyBytes() { - java.lang.Object ref = strategy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - strategy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string Strategy = 1; - */ - public Builder setStrategy( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - strategy_ = value; - onChanged(); - return this; - } - /** - * string Strategy = 1; - */ - public Builder clearStrategy() { - - strategy_ = getDefaultInstance().getStrategy(); - onChanged(); - return this; - } - /** - * string Strategy = 1; - */ - public Builder setStrategyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - strategy_ = value; - onChanged(); - return this; - } - - private flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective objective_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder> objectiveBuilder_; - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public boolean hasObjective() { - return objectiveBuilder_ != null || objective_ != null; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective getObjective() { - if (objectiveBuilder_ == null) { - return objective_ == null ? flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; - } else { - return objectiveBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public Builder setObjective(flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective value) { - if (objectiveBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - objective_ = value; - onChanged(); - } else { - objectiveBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public Builder setObjective( - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder builderForValue) { - if (objectiveBuilder_ == null) { - objective_ = builderForValue.build(); - onChanged(); - } else { - objectiveBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public Builder mergeObjective(flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective value) { - if (objectiveBuilder_ == null) { - if (objective_ != null) { - objective_ = - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.newBuilder(objective_).mergeFrom(value).buildPartial(); - } else { - objective_ = value; - } - onChanged(); - } else { - objectiveBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public Builder clearObjective() { - if (objectiveBuilder_ == null) { - objective_ = null; - onChanged(); - } else { - objective_ = null; - objectiveBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder getObjectiveBuilder() { - - onChanged(); - return getObjectiveFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { - if (objectiveBuilder_ != null) { - return objectiveBuilder_.getMessageOrBuilder(); - } else { - return objective_ == null ? - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.getDefaultInstance() : objective_; - } - } - /** - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder> - getObjectiveFieldBuilder() { - if (objectiveBuilder_ == null) { - objectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjective.Builder, flyteidl.plugins.sagemaker.Sagemaker.HPOJobObjectiveOrBuilder>( - getObjective(), - getParentForChildren(), - isClean()); - objective_ = null; - } - return objectiveBuilder_; - } - - private long maxNumberOfTrainingJobs_ ; - /** - * int64 MaxNumberOfTrainingJobs = 3; - */ - public long getMaxNumberOfTrainingJobs() { - return maxNumberOfTrainingJobs_; - } - /** - * int64 MaxNumberOfTrainingJobs = 3; - */ - public Builder setMaxNumberOfTrainingJobs(long value) { - - maxNumberOfTrainingJobs_ = value; - onChanged(); - return this; - } - /** - * int64 MaxNumberOfTrainingJobs = 3; - */ - public Builder clearMaxNumberOfTrainingJobs() { - - maxNumberOfTrainingJobs_ = 0L; - onChanged(); - return this; - } - - private long maxParallelTrainingJobs_ ; - /** - * int64 MaxParallelTrainingJobs = 4; - */ - public long getMaxParallelTrainingJobs() { - return maxParallelTrainingJobs_; - } - /** - * int64 MaxParallelTrainingJobs = 4; - */ - public Builder setMaxParallelTrainingJobs(long value) { - - maxParallelTrainingJobs_ = value; - onChanged(); - return this; - } - /** - * int64 MaxParallelTrainingJobs = 4; - */ - public Builder clearMaxParallelTrainingJobs() { - - maxParallelTrainingJobs_ = 0L; - onChanged(); - return this; - } - - private flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges parameterRanges_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges, flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder> parameterRangesBuilder_; - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public boolean hasParameterRanges() { - return parameterRangesBuilder_ != null || parameterRanges_ != null; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges getParameterRanges() { - if (parameterRangesBuilder_ == null) { - return parameterRanges_ == null ? flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; - } else { - return parameterRangesBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public Builder setParameterRanges(flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges value) { - if (parameterRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parameterRanges_ = value; - onChanged(); - } else { - parameterRangesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public Builder setParameterRanges( - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder builderForValue) { - if (parameterRangesBuilder_ == null) { - parameterRanges_ = builderForValue.build(); - onChanged(); - } else { - parameterRangesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public Builder mergeParameterRanges(flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges value) { - if (parameterRangesBuilder_ == null) { - if (parameterRanges_ != null) { - parameterRanges_ = - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.newBuilder(parameterRanges_).mergeFrom(value).buildPartial(); - } else { - parameterRanges_ = value; - } - onChanged(); - } else { - parameterRangesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public Builder clearParameterRanges() { - if (parameterRangesBuilder_ == null) { - parameterRanges_ = null; - onChanged(); - } else { - parameterRanges_ = null; - parameterRangesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder getParameterRangesBuilder() { - - onChanged(); - return getParameterRangesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder getParameterRangesOrBuilder() { - if (parameterRangesBuilder_ != null) { - return parameterRangesBuilder_.getMessageOrBuilder(); - } else { - return parameterRanges_ == null ? - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.getDefaultInstance() : parameterRanges_; - } - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges, flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder> - getParameterRangesFieldBuilder() { - if (parameterRangesBuilder_ == null) { - parameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges, flyteidl.plugins.sagemaker.Sagemaker.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Sagemaker.ParameterRangesOrBuilder>( - getParameterRanges(), - getParentForChildren(), - isClean()); - parameterRanges_ = null; - } - return parameterRangesBuilder_; - } - - private flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob trainingJob_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder> trainingJobBuilder_; - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - public boolean hasTrainingJob() { - return trainingJobBuilder_ != null || trainingJob_ != null; - } - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob getTrainingJob() { - if (trainingJobBuilder_ == null) { - return trainingJob_ == null ? flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; - } else { - return trainingJobBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - public Builder setTrainingJob(flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob value) { - if (trainingJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trainingJob_ = value; - onChanged(); - } else { - trainingJobBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - public Builder setTrainingJob( - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder builderForValue) { - if (trainingJobBuilder_ == null) { - trainingJob_ = builderForValue.build(); - onChanged(); - } else { - trainingJobBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob value) { - if (trainingJobBuilder_ == null) { - if (trainingJob_ != null) { - trainingJob_ = - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); - } else { - trainingJob_ = value; - } - onChanged(); - } else { - trainingJobBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - public Builder clearTrainingJob() { - if (trainingJobBuilder_ == null) { - trainingJob_ = null; - onChanged(); - } else { - trainingJob_ = null; - trainingJobBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder getTrainingJobBuilder() { - - onChanged(); - return getTrainingJobFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - public flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder getTrainingJobOrBuilder() { - if (trainingJobBuilder_ != null) { - return trainingJobBuilder_.getMessageOrBuilder(); - } else { - return trainingJob_ == null ? - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.getDefaultInstance() : trainingJob_; - } - } - /** - * .flyteidl.plugins.sagemaker.SagemakerTrainingJob TrainingJob = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder> - getTrainingJobFieldBuilder() { - if (trainingJobBuilder_ == null) { - trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJob.Builder, flyteidl.plugins.sagemaker.Sagemaker.SagemakerTrainingJobOrBuilder>( - getTrainingJob(), - getParentForChildren(), - isClean()); - trainingJob_ = null; - } - return trainingJobBuilder_; - } - @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:flyteidl.plugins.sagemaker.SagemakerHPOJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.SagemakerHPOJob) - private static final flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob(); - } - - public static flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SagemakerHPOJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SagemakerHPOJob(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 flyteidl.plugins.sagemaker.Sagemaker.SagemakerHPOJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_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*flyteidl/plugins/sagemaker/sagemaker.p" + - "roto\022\032flyteidl.plugins.sagemaker\"\230\001\n\030Con" + - "tinuousParameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010M" + - "axValue\030\002 \001(\001\022\020\n\010MinValue\030\003 \001(\001\022J\n\013Scali" + - "ngType\030\004 \001(\01625.flyteidl.plugins.sagemake" + - "r.HyperparameterScalingType\"\225\001\n\025IntegerP" + - "arameterRange\022\014\n\004Name\030\001 \001(\t\022\020\n\010MaxValue\030" + - "\002 \001(\002\022\020\n\010MinValue\030\003 \001(\002\022J\n\013ScalingType\030\004" + - " \001(\01625.flyteidl.plugins.sagemaker.Hyperp" + - "arameterScalingType\"9\n\031CategoricalParame" + - "terRange\022\014\n\004Name\030\001 \001(\t\022\016\n\006Values\030\002 \003(\t\"\230" + - "\002\n\017ParameterRanges\022W\n\031ContinuousParamete" + - "rRanges\030\001 \003(\01324.flyteidl.plugins.sagemak" + - "er.ContinuousParameterRange\022Q\n\026IntegerPa" + - "rameterRanges\030\002 \003(\01321.flyteidl.plugins.s" + - "agemaker.IntegerParameterRange\022Y\n\032Catego" + - "ricalParameterRanges\030\003 \003(\01325.flyteidl.pl" + - "ugins.sagemaker.CategoricalParameterRang" + - "e\"\362\001\n\026AlgorithmSpecification\022\025\n\rTraining" + - "Image\030\001 \001(\t\022\031\n\021TrainingInputMode\030\002 \001(\t\022\025" + - "\n\rAlgorithmName\030\003 \001(\t\022^\n\021MetricDefinitio" + - "ns\030\004 \003(\0132C.flyteidl.plugins.sagemaker.Al" + - "gorithmSpecification.MetricDefinition\032/\n" + - "\020MetricDefinition\022\014\n\004Name\030\001 \001(\t\022\r\n\005Regex" + - "\030\002 \001(\t\"m\n\016ResourceConfig\022\024\n\014InstanceType" + - "\030\001 \001(\t\022\025\n\rInstanceCount\030\002 \001(\003\022\026\n\016VolumeS" + - "izeInGB\030\003 \001(\003\022\026\n\016VolumeKmsKeyId\030\004 \001(\t\"N\n" + - "\021StoppingCondition\022\033\n\023MaxRuntimeInSecond" + - "s\030\001 \001(\003\022\034\n\024MaxWaitTimeInSeconds\030\002 \001(\003\"6\n" + - "\tVpcConfig\022\030\n\020SecurityGroupIds\030\001 \003(\t\022\017\n\007" + - "Subnets\030\002 \003(\t\"\357\002\n\024SagemakerTrainingJob\022\016" + - "\n\006Region\030\001 \001(\t\022\017\n\007RoleArn\030\002 \001(\t\022R\n\026Algor" + - "ithmSpecification\030\003 \001(\01322.flyteidl.plugi" + - "ns.sagemaker.AlgorithmSpecification\022B\n\016R" + - "esourceConfig\030\004 \001(\0132*.flyteidl.plugins.s" + - "agemaker.ResourceConfig\022H\n\021StoppingCondi" + - "tion\030\005 \001(\0132-.flyteidl.plugins.sagemaker." + - "StoppingCondition\0228\n\tVpcConfig\030\006 \001(\0132%.f" + - "lyteidl.plugins.sagemaker.VpcConfig\022\032\n\022E" + - "nableSpotTraining\030\007 \001(\010\"\247\001\n\017HPOJobObject" + - "ive\022M\n\004Type\030\001 \001(\0162?.flyteidl.plugins.sag" + - "emaker.HPOJobObjective.HPOJobObjectiveTy" + - "pe\022\022\n\nMetricName\030\002 \001(\t\"1\n\023HPOJobObjectiv" + - "eType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\262\002\n\017Sa" + - "gemakerHPOJob\022\020\n\010Strategy\030\001 \001(\t\022>\n\tObjec" + - "tive\030\002 \001(\0132+.flyteidl.plugins.sagemaker." + - "HPOJobObjective\022\037\n\027MaxNumberOfTrainingJo" + - "bs\030\003 \001(\003\022\037\n\027MaxParallelTrainingJobs\030\004 \001(" + - "\003\022D\n\017ParameterRanges\030\005 \001(\0132+.flyteidl.pl" + - "ugins.sagemaker.ParameterRanges\022E\n\013Train" + - "ingJob\030\006 \001(\01320.flyteidl.plugins.sagemake" + - "r.SagemakerTrainingJob*Z\n\031Hyperparameter" + - "ScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001\022\017\n\013LOG" + - "ARITHMIC\020\002\022\026\n\022REVERSELOGARITHMIC\020\003B5Z3gi" + - "thub.com/lyft/flyteidl/gen/pb-go/flyteid" + - "l/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor, - new java.lang.String[] { "Name", "MaxValue", "MinValue", "ScalingType", }); - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor, - new java.lang.String[] { "Name", "MaxValue", "MinValue", "ScalingType", }); - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor, - new java.lang.String[] { "Name", "Values", }); - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor, - new java.lang.String[] { "ContinuousParameterRanges", "IntegerParameterRanges", "CategoricalParameterRanges", }); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, - new java.lang.String[] { "TrainingImage", "TrainingInputMode", "AlgorithmName", "MetricDefinitions", }); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor = - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, - new java.lang.String[] { "Name", "Regex", }); - internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor, - new java.lang.String[] { "InstanceType", "InstanceCount", "VolumeSizeInGB", "VolumeKmsKeyId", }); - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor, - new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", }); - internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor, - new java.lang.String[] { "SecurityGroupIds", "Subnets", }); - internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_SagemakerTrainingJob_descriptor, - new java.lang.String[] { "Region", "RoleArn", "AlgorithmSpecification", "ResourceConfig", "StoppingCondition", "VpcConfig", "EnableSpotTraining", }); - internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor, - new java.lang.String[] { "Type", "MetricName", }); - internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_SagemakerHPOJob_descriptor, - new java.lang.String[] { "Strategy", "Objective", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", "ParameterRanges", "TrainingJob", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java new file mode 100644 index 000000000..bcf7550e1 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java @@ -0,0 +1,5753 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/trainingjob.proto + +package flyteidl.plugins.sagemaker; + +public final class Trainingjob { + private Trainingjob() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface AlgorithmSpecificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?
+     * 
+ * + * string TrainingImage = 1; + */ + java.lang.String getTrainingImage(); + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?
+     * 
+ * + * string TrainingImage = 1; + */ + com.google.protobuf.ByteString + getTrainingImageBytes(); + + /** + * string TrainingInputMode = 2; + */ + java.lang.String getTrainingInputMode(); + /** + * string TrainingInputMode = 2; + */ + com.google.protobuf.ByteString + getTrainingInputModeBytes(); + + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?
+     * 
+ * + * string AlgorithmName = 3; + */ + java.lang.String getAlgorithmName(); + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?
+     * 
+ * + * string AlgorithmName = 3; + */ + com.google.protobuf.ByteString + getAlgorithmNameBytes(); + + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + java.util.List + getMetricDefinitionsList(); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + int getMetricDefinitionsCount(); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + java.util.List + getMetricDefinitionsOrBuilderList(); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} + */ + public static final class AlgorithmSpecification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) + AlgorithmSpecificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlgorithmSpecification.newBuilder() to construct. + private AlgorithmSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlgorithmSpecification() { + trainingImage_ = ""; + trainingInputMode_ = ""; + algorithmName_ = ""; + metricDefinitions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AlgorithmSpecification( + 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(); + + trainingImage_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + trainingInputMode_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + algorithmName_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + metricDefinitions_.add( + input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.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_ & 0x00000008) != 0)) { + metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder.class); + } + + public interface MetricDefinitionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + com.google.protobuf.MessageOrBuilder { + + /** + * string Name = 1; + */ + java.lang.String getName(); + /** + * string Name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string Regex = 2; + */ + java.lang.String getRegex(); + /** + * string Regex = 2; + */ + com.google.protobuf.ByteString + getRegexBytes(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} + */ + public static final class MetricDefinition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + MetricDefinitionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricDefinition.newBuilder() to construct. + private MetricDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MetricDefinition() { + name_ = ""; + regex_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MetricDefinition( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + regex_ = 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 flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + 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 REGEX_FIELD_NUMBER = 2; + private volatile java.lang.Object regex_; + /** + * string Regex = 2; + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + 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(); + regex_ = s; + return s; + } + } + /** + * string Regex = 2; + */ + public com.google.protobuf.ByteString + getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getRegexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regex_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getRegexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regex_); + } + 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getRegex() + .equals(other.getRegex())) 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) + REGEX_FIELD_NUMBER; + hash = (53 * hash) + getRegex().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition 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(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.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_ = ""; + + regex_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition build() { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition buildPartial() { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition(this); + result.name_ = name_; + result.regex_ = regex_; + 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition) { + return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition other) { + if (other == flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRegex().isEmpty()) { + regex_ = other.regex_; + 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 { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + 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; + } + } + /** + * string Name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string Name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string Name = 1; + */ + 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 regex_ = ""; + /** + * string Regex = 2; + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string Regex = 2; + */ + public com.google.protobuf.ByteString + getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string Regex = 2; + */ + public Builder setRegex( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regex_ = value; + onChanged(); + return this; + } + /** + * string Regex = 2; + */ + public Builder clearRegex() { + + regex_ = getDefaultInstance().getRegex(); + onChanged(); + return this; + } + /** + * string Regex = 2; + */ + public Builder setRegexBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regex_ = 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:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + private static final flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition(); + } + + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricDefinition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MetricDefinition(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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int TRAININGIMAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object trainingImage_; + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?
+     * 
+ * + * string TrainingImage = 1; + */ + public java.lang.String getTrainingImage() { + java.lang.Object ref = trainingImage_; + 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(); + trainingImage_ = s; + return s; + } + } + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?
+     * 
+ * + * string TrainingImage = 1; + */ + public com.google.protobuf.ByteString + getTrainingImageBytes() { + java.lang.Object ref = trainingImage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + trainingImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRAININGINPUTMODE_FIELD_NUMBER = 2; + private volatile java.lang.Object trainingInputMode_; + /** + * string TrainingInputMode = 2; + */ + public java.lang.String getTrainingInputMode() { + java.lang.Object ref = trainingInputMode_; + 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(); + trainingInputMode_ = s; + return s; + } + } + /** + * string TrainingInputMode = 2; + */ + public com.google.protobuf.ByteString + getTrainingInputModeBytes() { + java.lang.Object ref = trainingInputMode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + trainingInputMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALGORITHMNAME_FIELD_NUMBER = 3; + private volatile java.lang.Object algorithmName_; + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?
+     * 
+ * + * string AlgorithmName = 3; + */ + public java.lang.String getAlgorithmName() { + java.lang.Object ref = algorithmName_; + 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(); + algorithmName_ = s; + return s; + } + } + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?
+     * 
+ * + * string AlgorithmName = 3; + */ + public com.google.protobuf.ByteString + getAlgorithmNameBytes() { + java.lang.Object ref = algorithmName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METRICDEFINITIONS_FIELD_NUMBER = 4; + private java.util.List metricDefinitions_; + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public java.util.List getMetricDefinitionsList() { + return metricDefinitions_; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public java.util.List + getMetricDefinitionsOrBuilderList() { + return metricDefinitions_; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public int getMetricDefinitionsCount() { + return metricDefinitions_.size(); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + return metricDefinitions_.get(index); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index) { + return metricDefinitions_.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 (!getTrainingImageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trainingImage_); + } + if (!getTrainingInputModeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, trainingInputMode_); + } + if (!getAlgorithmNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, algorithmName_); + } + for (int i = 0; i < metricDefinitions_.size(); i++) { + output.writeMessage(4, metricDefinitions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTrainingImageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trainingImage_); + } + if (!getTrainingInputModeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, trainingInputMode_); + } + if (!getAlgorithmNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, algorithmName_); + } + for (int i = 0; i < metricDefinitions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, metricDefinitions_.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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification) obj; + + if (!getTrainingImage() + .equals(other.getTrainingImage())) return false; + if (!getTrainingInputMode() + .equals(other.getTrainingInputMode())) return false; + if (!getAlgorithmName() + .equals(other.getAlgorithmName())) return false; + if (!getMetricDefinitionsList() + .equals(other.getMetricDefinitionsList())) 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) + TRAININGIMAGE_FIELD_NUMBER; + hash = (53 * hash) + getTrainingImage().hashCode(); + hash = (37 * hash) + TRAININGINPUTMODE_FIELD_NUMBER; + hash = (53 * hash) + getTrainingInputMode().hashCode(); + hash = (37 * hash) + ALGORITHMNAME_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmName().hashCode(); + if (getMetricDefinitionsCount() > 0) { + hash = (37 * hash) + METRICDEFINITIONS_FIELD_NUMBER; + hash = (53 * hash) + getMetricDefinitionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification 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(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.AlgorithmSpecification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetricDefinitionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + trainingImage_ = ""; + + trainingInputMode_ = ""; + + algorithmName_ = ""; + + if (metricDefinitionsBuilder_ == null) { + metricDefinitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + metricDefinitionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification build() { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification buildPartial() { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.trainingImage_ = trainingImage_; + result.trainingInputMode_ = trainingInputMode_; + result.algorithmName_ = algorithmName_; + if (metricDefinitionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.metricDefinitions_ = metricDefinitions_; + } else { + result.metricDefinitions_ = metricDefinitionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification) { + return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification other) { + if (other == flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance()) return this; + if (!other.getTrainingImage().isEmpty()) { + trainingImage_ = other.trainingImage_; + onChanged(); + } + if (!other.getTrainingInputMode().isEmpty()) { + trainingInputMode_ = other.trainingInputMode_; + onChanged(); + } + if (!other.getAlgorithmName().isEmpty()) { + algorithmName_ = other.algorithmName_; + onChanged(); + } + if (metricDefinitionsBuilder_ == null) { + if (!other.metricDefinitions_.isEmpty()) { + if (metricDefinitions_.isEmpty()) { + metricDefinitions_ = other.metricDefinitions_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.addAll(other.metricDefinitions_); + } + onChanged(); + } + } else { + if (!other.metricDefinitions_.isEmpty()) { + if (metricDefinitionsBuilder_.isEmpty()) { + metricDefinitionsBuilder_.dispose(); + metricDefinitionsBuilder_ = null; + metricDefinitions_ = other.metricDefinitions_; + bitField0_ = (bitField0_ & ~0x00000008); + metricDefinitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetricDefinitionsFieldBuilder() : null; + } else { + metricDefinitionsBuilder_.addAllMessages(other.metricDefinitions_); + } + } + } + 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 { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object trainingImage_ = ""; + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?
+       * 
+ * + * string TrainingImage = 1; + */ + public java.lang.String getTrainingImage() { + java.lang.Object ref = trainingImage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trainingImage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?
+       * 
+ * + * string TrainingImage = 1; + */ + public com.google.protobuf.ByteString + getTrainingImageBytes() { + java.lang.Object ref = trainingImage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + trainingImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?
+       * 
+ * + * string TrainingImage = 1; + */ + public Builder setTrainingImage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + trainingImage_ = value; + onChanged(); + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?
+       * 
+ * + * string TrainingImage = 1; + */ + public Builder clearTrainingImage() { + + trainingImage_ = getDefaultInstance().getTrainingImage(); + onChanged(); + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?
+       * 
+ * + * string TrainingImage = 1; + */ + public Builder setTrainingImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + trainingImage_ = value; + onChanged(); + return this; + } + + private java.lang.Object trainingInputMode_ = ""; + /** + * string TrainingInputMode = 2; + */ + public java.lang.String getTrainingInputMode() { + java.lang.Object ref = trainingInputMode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trainingInputMode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string TrainingInputMode = 2; + */ + public com.google.protobuf.ByteString + getTrainingInputModeBytes() { + java.lang.Object ref = trainingInputMode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + trainingInputMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string TrainingInputMode = 2; + */ + public Builder setTrainingInputMode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + trainingInputMode_ = value; + onChanged(); + return this; + } + /** + * string TrainingInputMode = 2; + */ + public Builder clearTrainingInputMode() { + + trainingInputMode_ = getDefaultInstance().getTrainingInputMode(); + onChanged(); + return this; + } + /** + * string TrainingInputMode = 2; + */ + public Builder setTrainingInputModeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + trainingInputMode_ = value; + onChanged(); + return this; + } + + private java.lang.Object algorithmName_ = ""; + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?
+       * 
+ * + * string AlgorithmName = 3; + */ + public java.lang.String getAlgorithmName() { + java.lang.Object ref = algorithmName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + algorithmName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?
+       * 
+ * + * string AlgorithmName = 3; + */ + public com.google.protobuf.ByteString + getAlgorithmNameBytes() { + java.lang.Object ref = algorithmName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?
+       * 
+ * + * string AlgorithmName = 3; + */ + public Builder setAlgorithmName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + algorithmName_ = value; + onChanged(); + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?
+       * 
+ * + * string AlgorithmName = 3; + */ + public Builder clearAlgorithmName() { + + algorithmName_ = getDefaultInstance().getAlgorithmName(); + onChanged(); + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?
+       * 
+ * + * string AlgorithmName = 3; + */ + public Builder setAlgorithmNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + algorithmName_ = value; + onChanged(); + return this; + } + + private java.util.List metricDefinitions_ = + java.util.Collections.emptyList(); + private void ensureMetricDefinitionsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; + + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public java.util.List getMetricDefinitionsList() { + if (metricDefinitionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricDefinitions_); + } else { + return metricDefinitionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public int getMetricDefinitionsCount() { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.size(); + } else { + return metricDefinitionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.get(index); + } else { + return metricDefinitionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder setMetricDefinitions( + int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.set(index, value); + onChanged(); + } else { + metricDefinitionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder setMetricDefinitions( + int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.set(index, builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(value); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder addMetricDefinitions( + int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(index, value); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder addMetricDefinitions( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder addMetricDefinitions( + int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(index, builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder addAllMetricDefinitions( + java.lang.Iterable values) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metricDefinitions_); + onChanged(); + } else { + metricDefinitionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder clearMetricDefinitions() { + if (metricDefinitionsBuilder_ == null) { + metricDefinitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + metricDefinitionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public Builder removeMetricDefinitions(int index) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.remove(index); + onChanged(); + } else { + metricDefinitionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( + int index) { + return getMetricDefinitionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index) { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.get(index); } else { + return metricDefinitionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public java.util.List + getMetricDefinitionsOrBuilderList() { + if (metricDefinitionsBuilder_ != null) { + return metricDefinitionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricDefinitions_); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { + return getMetricDefinitionsFieldBuilder().addBuilder( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( + int index) { + return getMetricDefinitionsFieldBuilder().addBuilder( + index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + */ + public java.util.List + getMetricDefinitionsBuilderList() { + return getMetricDefinitionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder> + getMetricDefinitionsFieldBuilder() { + if (metricDefinitionsBuilder_ == null) { + metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder>( + metricDefinitions_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + metricDefinitions_ = null; + } + return metricDefinitionsBuilder_; + } + @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:flyteidl.plugins.sagemaker.AlgorithmSpecification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) + private static final flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification(); + } + + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlgorithmSpecification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AlgorithmSpecification(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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ResourceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * string InstanceType = 1; + */ + java.lang.String getInstanceType(); + /** + * string InstanceType = 1; + */ + com.google.protobuf.ByteString + getInstanceTypeBytes(); + + /** + * int64 InstanceCount = 2; + */ + long getInstanceCount(); + + /** + * int64 VolumeSizeInGB = 3; + */ + long getVolumeSizeInGB(); + + /** + * string VolumeKmsKeyId = 4; + */ + java.lang.String getVolumeKmsKeyId(); + /** + * string VolumeKmsKeyId = 4; + */ + com.google.protobuf.ByteString + getVolumeKmsKeyIdBytes(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.ResourceConfig} + */ + public static final class ResourceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ResourceConfig) + ResourceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceConfig.newBuilder() to construct. + private ResourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceConfig() { + instanceType_ = ""; + volumeKmsKeyId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceConfig( + 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(); + + instanceType_ = s; + break; + } + case 16: { + + instanceCount_ = input.readInt64(); + break; + } + case 24: { + + volumeSizeInGB_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + volumeKmsKeyId_ = 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 flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.class, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder.class); + } + + public static final int INSTANCETYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object instanceType_; + /** + * string InstanceType = 1; + */ + public java.lang.String getInstanceType() { + java.lang.Object ref = instanceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceType_ = s; + return s; + } + } + /** + * string InstanceType = 1; + */ + public com.google.protobuf.ByteString + getInstanceTypeBytes() { + java.lang.Object ref = instanceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCECOUNT_FIELD_NUMBER = 2; + private long instanceCount_; + /** + * int64 InstanceCount = 2; + */ + public long getInstanceCount() { + return instanceCount_; + } + + public static final int VOLUMESIZEINGB_FIELD_NUMBER = 3; + private long volumeSizeInGB_; + /** + * int64 VolumeSizeInGB = 3; + */ + public long getVolumeSizeInGB() { + return volumeSizeInGB_; + } + + public static final int VOLUMEKMSKEYID_FIELD_NUMBER = 4; + private volatile java.lang.Object volumeKmsKeyId_; + /** + * string VolumeKmsKeyId = 4; + */ + public java.lang.String getVolumeKmsKeyId() { + java.lang.Object ref = volumeKmsKeyId_; + 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(); + volumeKmsKeyId_ = s; + return s; + } + } + /** + * string VolumeKmsKeyId = 4; + */ + public com.google.protobuf.ByteString + getVolumeKmsKeyIdBytes() { + java.lang.Object ref = volumeKmsKeyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + volumeKmsKeyId_ = 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 (!getInstanceTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceType_); + } + if (instanceCount_ != 0L) { + output.writeInt64(2, instanceCount_); + } + if (volumeSizeInGB_ != 0L) { + output.writeInt64(3, volumeSizeInGB_); + } + if (!getVolumeKmsKeyIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, volumeKmsKeyId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getInstanceTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceType_); + } + if (instanceCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, instanceCount_); + } + if (volumeSizeInGB_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, volumeSizeInGB_); + } + if (!getVolumeKmsKeyIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, volumeKmsKeyId_); + } + 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 flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig other = (flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig) obj; + + if (!getInstanceType() + .equals(other.getInstanceType())) return false; + if (getInstanceCount() + != other.getInstanceCount()) return false; + if (getVolumeSizeInGB() + != other.getVolumeSizeInGB()) return false; + if (!getVolumeKmsKeyId() + .equals(other.getVolumeKmsKeyId())) 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) + INSTANCETYPE_FIELD_NUMBER; + hash = (53 * hash) + getInstanceType().hashCode(); + hash = (37 * hash) + INSTANCECOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInstanceCount()); + hash = (37 * hash) + VOLUMESIZEINGB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVolumeSizeInGB()); + hash = (37 * hash) + VOLUMEKMSKEYID_FIELD_NUMBER; + hash = (53 * hash) + getVolumeKmsKeyId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig 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 flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig 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 flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig 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(flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig 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 flyteidl.plugins.sagemaker.ResourceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ResourceConfig) + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.class, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.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(); + instanceType_ = ""; + + instanceCount_ = 0L; + + volumeSizeInGB_ = 0L; + + volumeKmsKeyId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig build() { + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig buildPartial() { + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig result = new flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig(this); + result.instanceType_ = instanceType_; + result.instanceCount_ = instanceCount_; + result.volumeSizeInGB_ = volumeSizeInGB_; + result.volumeKmsKeyId_ = volumeKmsKeyId_; + 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 flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig other) { + if (other == flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.getDefaultInstance()) return this; + if (!other.getInstanceType().isEmpty()) { + instanceType_ = other.instanceType_; + onChanged(); + } + if (other.getInstanceCount() != 0L) { + setInstanceCount(other.getInstanceCount()); + } + if (other.getVolumeSizeInGB() != 0L) { + setVolumeSizeInGB(other.getVolumeSizeInGB()); + } + if (!other.getVolumeKmsKeyId().isEmpty()) { + volumeKmsKeyId_ = other.volumeKmsKeyId_; + 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 { + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object instanceType_ = ""; + /** + * string InstanceType = 1; + */ + public java.lang.String getInstanceType() { + java.lang.Object ref = instanceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string InstanceType = 1; + */ + public com.google.protobuf.ByteString + getInstanceTypeBytes() { + java.lang.Object ref = instanceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string InstanceType = 1; + */ + public Builder setInstanceType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + instanceType_ = value; + onChanged(); + return this; + } + /** + * string InstanceType = 1; + */ + public Builder clearInstanceType() { + + instanceType_ = getDefaultInstance().getInstanceType(); + onChanged(); + return this; + } + /** + * string InstanceType = 1; + */ + public Builder setInstanceTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + instanceType_ = value; + onChanged(); + return this; + } + + private long instanceCount_ ; + /** + * int64 InstanceCount = 2; + */ + public long getInstanceCount() { + return instanceCount_; + } + /** + * int64 InstanceCount = 2; + */ + public Builder setInstanceCount(long value) { + + instanceCount_ = value; + onChanged(); + return this; + } + /** + * int64 InstanceCount = 2; + */ + public Builder clearInstanceCount() { + + instanceCount_ = 0L; + onChanged(); + return this; + } + + private long volumeSizeInGB_ ; + /** + * int64 VolumeSizeInGB = 3; + */ + public long getVolumeSizeInGB() { + return volumeSizeInGB_; + } + /** + * int64 VolumeSizeInGB = 3; + */ + public Builder setVolumeSizeInGB(long value) { + + volumeSizeInGB_ = value; + onChanged(); + return this; + } + /** + * int64 VolumeSizeInGB = 3; + */ + public Builder clearVolumeSizeInGB() { + + volumeSizeInGB_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object volumeKmsKeyId_ = ""; + /** + * string VolumeKmsKeyId = 4; + */ + public java.lang.String getVolumeKmsKeyId() { + java.lang.Object ref = volumeKmsKeyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volumeKmsKeyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string VolumeKmsKeyId = 4; + */ + public com.google.protobuf.ByteString + getVolumeKmsKeyIdBytes() { + java.lang.Object ref = volumeKmsKeyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + volumeKmsKeyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string VolumeKmsKeyId = 4; + */ + public Builder setVolumeKmsKeyId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + volumeKmsKeyId_ = value; + onChanged(); + return this; + } + /** + * string VolumeKmsKeyId = 4; + */ + public Builder clearVolumeKmsKeyId() { + + volumeKmsKeyId_ = getDefaultInstance().getVolumeKmsKeyId(); + onChanged(); + return this; + } + /** + * string VolumeKmsKeyId = 4; + */ + public Builder setVolumeKmsKeyIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + volumeKmsKeyId_ = 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:flyteidl.plugins.sagemaker.ResourceConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ResourceConfig) + private static final flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig(); + } + + public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceConfig(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 flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StoppingConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.StoppingCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 MaxRuntimeInSeconds = 1; + */ + long getMaxRuntimeInSeconds(); + + /** + * int64 MaxWaitTimeInSeconds = 2; + */ + long getMaxWaitTimeInSeconds(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} + */ + public static final class StoppingCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.StoppingCondition) + StoppingConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoppingCondition.newBuilder() to construct. + private StoppingCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StoppingCondition() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoppingCondition( + 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 8: { + + maxRuntimeInSeconds_ = input.readInt64(); + break; + } + case 16: { + + maxWaitTimeInSeconds_ = 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 flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.class, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder.class); + } + + public static final int MAXRUNTIMEINSECONDS_FIELD_NUMBER = 1; + private long maxRuntimeInSeconds_; + /** + * int64 MaxRuntimeInSeconds = 1; + */ + public long getMaxRuntimeInSeconds() { + return maxRuntimeInSeconds_; + } + + public static final int MAXWAITTIMEINSECONDS_FIELD_NUMBER = 2; + private long maxWaitTimeInSeconds_; + /** + * int64 MaxWaitTimeInSeconds = 2; + */ + public long getMaxWaitTimeInSeconds() { + return maxWaitTimeInSeconds_; + } + + 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 (maxRuntimeInSeconds_ != 0L) { + output.writeInt64(1, maxRuntimeInSeconds_); + } + if (maxWaitTimeInSeconds_ != 0L) { + output.writeInt64(2, maxWaitTimeInSeconds_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxRuntimeInSeconds_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxRuntimeInSeconds_); + } + if (maxWaitTimeInSeconds_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxWaitTimeInSeconds_); + } + 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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition other = (flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition) obj; + + if (getMaxRuntimeInSeconds() + != other.getMaxRuntimeInSeconds()) return false; + if (getMaxWaitTimeInSeconds() + != other.getMaxWaitTimeInSeconds()) 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) + MAXRUNTIMEINSECONDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxRuntimeInSeconds()); + hash = (37 * hash) + MAXWAITTIMEINSECONDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxWaitTimeInSeconds()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition 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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition 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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition 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(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition 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 flyteidl.plugins.sagemaker.StoppingCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.StoppingCondition) + flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.class, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.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(); + maxRuntimeInSeconds_ = 0L; + + maxWaitTimeInSeconds_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition build() { + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition buildPartial() { + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition result = new flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition(this); + result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; + result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; + 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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition) { + return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition other) { + if (other == flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance()) return this; + if (other.getMaxRuntimeInSeconds() != 0L) { + setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); + } + if (other.getMaxWaitTimeInSeconds() != 0L) { + setMaxWaitTimeInSeconds(other.getMaxWaitTimeInSeconds()); + } + 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 { + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxRuntimeInSeconds_ ; + /** + * int64 MaxRuntimeInSeconds = 1; + */ + public long getMaxRuntimeInSeconds() { + return maxRuntimeInSeconds_; + } + /** + * int64 MaxRuntimeInSeconds = 1; + */ + public Builder setMaxRuntimeInSeconds(long value) { + + maxRuntimeInSeconds_ = value; + onChanged(); + return this; + } + /** + * int64 MaxRuntimeInSeconds = 1; + */ + public Builder clearMaxRuntimeInSeconds() { + + maxRuntimeInSeconds_ = 0L; + onChanged(); + return this; + } + + private long maxWaitTimeInSeconds_ ; + /** + * int64 MaxWaitTimeInSeconds = 2; + */ + public long getMaxWaitTimeInSeconds() { + return maxWaitTimeInSeconds_; + } + /** + * int64 MaxWaitTimeInSeconds = 2; + */ + public Builder setMaxWaitTimeInSeconds(long value) { + + maxWaitTimeInSeconds_ = value; + onChanged(); + return this; + } + /** + * int64 MaxWaitTimeInSeconds = 2; + */ + public Builder clearMaxWaitTimeInSeconds() { + + maxWaitTimeInSeconds_ = 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:flyteidl.plugins.sagemaker.StoppingCondition) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) + private static final flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition(); + } + + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoppingCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoppingCondition(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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VpcConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.VpcConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string SecurityGroupIds = 1; + */ + java.util.List + getSecurityGroupIdsList(); + /** + * repeated string SecurityGroupIds = 1; + */ + int getSecurityGroupIdsCount(); + /** + * repeated string SecurityGroupIds = 1; + */ + java.lang.String getSecurityGroupIds(int index); + /** + * repeated string SecurityGroupIds = 1; + */ + com.google.protobuf.ByteString + getSecurityGroupIdsBytes(int index); + + /** + * repeated string Subnets = 2; + */ + java.util.List + getSubnetsList(); + /** + * repeated string Subnets = 2; + */ + int getSubnetsCount(); + /** + * repeated string Subnets = 2; + */ + java.lang.String getSubnets(int index); + /** + * repeated string Subnets = 2; + */ + com.google.protobuf.ByteString + getSubnetsBytes(int index); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.VpcConfig} + */ + public static final class VpcConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.VpcConfig) + VpcConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use VpcConfig.newBuilder() to construct. + private VpcConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VpcConfig() { + securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VpcConfig( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + securityGroupIds_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + subnets_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + subnets_.add(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)) { + securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + subnets_ = subnets_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.class, flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder.class); + } + + public static final int SECURITYGROUPIDS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList securityGroupIds_; + /** + * repeated string SecurityGroupIds = 1; + */ + public com.google.protobuf.ProtocolStringList + getSecurityGroupIdsList() { + return securityGroupIds_; + } + /** + * repeated string SecurityGroupIds = 1; + */ + public int getSecurityGroupIdsCount() { + return securityGroupIds_.size(); + } + /** + * repeated string SecurityGroupIds = 1; + */ + public java.lang.String getSecurityGroupIds(int index) { + return securityGroupIds_.get(index); + } + /** + * repeated string SecurityGroupIds = 1; + */ + public com.google.protobuf.ByteString + getSecurityGroupIdsBytes(int index) { + return securityGroupIds_.getByteString(index); + } + + public static final int SUBNETS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList subnets_; + /** + * repeated string Subnets = 2; + */ + public com.google.protobuf.ProtocolStringList + getSubnetsList() { + return subnets_; + } + /** + * repeated string Subnets = 2; + */ + public int getSubnetsCount() { + return subnets_.size(); + } + /** + * repeated string Subnets = 2; + */ + public java.lang.String getSubnets(int index) { + return subnets_.get(index); + } + /** + * repeated string Subnets = 2; + */ + public com.google.protobuf.ByteString + getSubnetsBytes(int index) { + return subnets_.getByteString(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 < securityGroupIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, securityGroupIds_.getRaw(i)); + } + for (int i = 0; i < subnets_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnets_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < securityGroupIds_.size(); i++) { + dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getSecurityGroupIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < subnets_.size(); i++) { + dataSize += computeStringSizeNoTag(subnets_.getRaw(i)); + } + size += dataSize; + size += 1 * getSubnetsList().size(); + } + 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 flyteidl.plugins.sagemaker.Trainingjob.VpcConfig)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig other = (flyteidl.plugins.sagemaker.Trainingjob.VpcConfig) obj; + + if (!getSecurityGroupIdsList() + .equals(other.getSecurityGroupIdsList())) return false; + if (!getSubnetsList() + .equals(other.getSubnetsList())) 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 (getSecurityGroupIdsCount() > 0) { + hash = (37 * hash) + SECURITYGROUPIDS_FIELD_NUMBER; + hash = (53 * hash) + getSecurityGroupIdsList().hashCode(); + } + if (getSubnetsCount() > 0) { + hash = (37 * hash) + SUBNETS_FIELD_NUMBER; + hash = (53 * hash) + getSubnetsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig 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 flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig 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 flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig 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(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig 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 flyteidl.plugins.sagemaker.VpcConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.VpcConfig) + flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.class, flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.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(); + securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig build() { + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig buildPartial() { + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig result = new flyteidl.plugins.sagemaker.Trainingjob.VpcConfig(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.securityGroupIds_ = securityGroupIds_; + if (((bitField0_ & 0x00000002) != 0)) { + subnets_ = subnets_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.subnets_ = subnets_; + 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 flyteidl.plugins.sagemaker.Trainingjob.VpcConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.VpcConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig other) { + if (other == flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.getDefaultInstance()) return this; + if (!other.securityGroupIds_.isEmpty()) { + if (securityGroupIds_.isEmpty()) { + securityGroupIds_ = other.securityGroupIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.addAll(other.securityGroupIds_); + } + onChanged(); + } + if (!other.subnets_.isEmpty()) { + if (subnets_.isEmpty()) { + subnets_ = other.subnets_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubnetsIsMutable(); + subnets_.addAll(other.subnets_); + } + 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 { + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.VpcConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSecurityGroupIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string SecurityGroupIds = 1; + */ + public com.google.protobuf.ProtocolStringList + getSecurityGroupIdsList() { + return securityGroupIds_.getUnmodifiableView(); + } + /** + * repeated string SecurityGroupIds = 1; + */ + public int getSecurityGroupIdsCount() { + return securityGroupIds_.size(); + } + /** + * repeated string SecurityGroupIds = 1; + */ + public java.lang.String getSecurityGroupIds(int index) { + return securityGroupIds_.get(index); + } + /** + * repeated string SecurityGroupIds = 1; + */ + public com.google.protobuf.ByteString + getSecurityGroupIdsBytes(int index) { + return securityGroupIds_.getByteString(index); + } + /** + * repeated string SecurityGroupIds = 1; + */ + public Builder setSecurityGroupIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string SecurityGroupIds = 1; + */ + public Builder addSecurityGroupIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.add(value); + onChanged(); + return this; + } + /** + * repeated string SecurityGroupIds = 1; + */ + public Builder addAllSecurityGroupIds( + java.lang.Iterable values) { + ensureSecurityGroupIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, securityGroupIds_); + onChanged(); + return this; + } + /** + * repeated string SecurityGroupIds = 1; + */ + public Builder clearSecurityGroupIds() { + securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string SecurityGroupIds = 1; + */ + public Builder addSecurityGroupIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSubnetsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + subnets_ = new com.google.protobuf.LazyStringArrayList(subnets_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated string Subnets = 2; + */ + public com.google.protobuf.ProtocolStringList + getSubnetsList() { + return subnets_.getUnmodifiableView(); + } + /** + * repeated string Subnets = 2; + */ + public int getSubnetsCount() { + return subnets_.size(); + } + /** + * repeated string Subnets = 2; + */ + public java.lang.String getSubnets(int index) { + return subnets_.get(index); + } + /** + * repeated string Subnets = 2; + */ + public com.google.protobuf.ByteString + getSubnetsBytes(int index) { + return subnets_.getByteString(index); + } + /** + * repeated string Subnets = 2; + */ + public Builder setSubnets( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetsIsMutable(); + subnets_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string Subnets = 2; + */ + public Builder addSubnets( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetsIsMutable(); + subnets_.add(value); + onChanged(); + return this; + } + /** + * repeated string Subnets = 2; + */ + public Builder addAllSubnets( + java.lang.Iterable values) { + ensureSubnetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subnets_); + onChanged(); + return this; + } + /** + * repeated string Subnets = 2; + */ + public Builder clearSubnets() { + subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * repeated string Subnets = 2; + */ + public Builder addSubnetsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSubnetsIsMutable(); + subnets_.add(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:flyteidl.plugins.sagemaker.VpcConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.VpcConfig) + private static final flyteidl.plugins.sagemaker.Trainingjob.VpcConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.VpcConfig(); + } + + public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VpcConfig(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 flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TrainingJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJob) + com.google.protobuf.MessageOrBuilder { + + /** + * string Region = 1; + */ + java.lang.String getRegion(); + /** + * string Region = 1; + */ + com.google.protobuf.ByteString + getRegionBytes(); + + /** + * string RoleArn = 2; + */ + java.lang.String getRoleArn(); + /** + * string RoleArn = 2; + */ + com.google.protobuf.ByteString + getRoleArnBytes(); + + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + boolean hasAlgorithmSpecification(); + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification(); + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + boolean hasResourceConfig(); + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getResourceConfig(); + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder getResourceConfigOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + boolean hasStoppingCondition(); + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getStoppingCondition(); + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder getStoppingConditionOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + boolean hasVpcConfig(); + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getVpcConfig(); + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder getVpcConfigOrBuilder(); + + /** + * bool EnableSpotTraining = 7; + */ + boolean getEnableSpotTraining(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} + */ + public static final class TrainingJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJob) + TrainingJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainingJob.newBuilder() to construct. + private TrainingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrainingJob() { + region_ = ""; + roleArn_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrainingJob( + 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(); + + region_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + roleArn_ = s; + break; + } + case 26: { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder subBuilder = null; + if (algorithmSpecification_ != null) { + subBuilder = algorithmSpecification_.toBuilder(); + } + algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(algorithmSpecification_); + algorithmSpecification_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder subBuilder = null; + if (resourceConfig_ != null) { + subBuilder = resourceConfig_.toBuilder(); + } + resourceConfig_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceConfig_); + resourceConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder subBuilder = null; + if (stoppingCondition_ != null) { + subBuilder = stoppingCondition_.toBuilder(); + } + stoppingCondition_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stoppingCondition_); + stoppingCondition_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder subBuilder = null; + if (vpcConfig_ != null) { + subBuilder = vpcConfig_.toBuilder(); + } + vpcConfig_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(vpcConfig_); + vpcConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 56: { + + enableSpotTraining_ = input.readBool(); + 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 flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.class, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder.class); + } + + public static final int REGION_FIELD_NUMBER = 1; + private volatile java.lang.Object region_; + /** + * string Region = 1; + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * string Region = 1; + */ + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLEARN_FIELD_NUMBER = 2; + private volatile java.lang.Object roleArn_; + /** + * string RoleArn = 2; + */ + public java.lang.String getRoleArn() { + java.lang.Object ref = roleArn_; + 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(); + roleArn_ = s; + return s; + } + } + /** + * string RoleArn = 2; + */ + public com.google.protobuf.ByteString + getRoleArnBytes() { + java.lang.Object ref = roleArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + roleArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALGORITHMSPECIFICATION_FIELD_NUMBER = 3; + private flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification algorithmSpecification_; + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public boolean hasAlgorithmSpecification() { + return algorithmSpecification_ != null; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification() { + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + return getAlgorithmSpecification(); + } + + public static final int RESOURCECONFIG_FIELD_NUMBER = 4; + private flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig resourceConfig_; + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + public boolean hasResourceConfig() { + return resourceConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getResourceConfig() { + return resourceConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.getDefaultInstance() : resourceConfig_; + } + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder getResourceConfigOrBuilder() { + return getResourceConfig(); + } + + public static final int STOPPINGCONDITION_FIELD_NUMBER = 5; + private flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition stoppingCondition_; + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + public boolean hasStoppingCondition() { + return stoppingCondition_ != null; + } + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getStoppingCondition() { + return stoppingCondition_ == null ? flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance() : stoppingCondition_; + } + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + public flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { + return getStoppingCondition(); + } + + public static final int VPCCONFIG_FIELD_NUMBER = 6; + private flyteidl.plugins.sagemaker.Trainingjob.VpcConfig vpcConfig_; + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + public boolean hasVpcConfig() { + return vpcConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getVpcConfig() { + return vpcConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.getDefaultInstance() : vpcConfig_; + } + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + public flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder getVpcConfigOrBuilder() { + return getVpcConfig(); + } + + public static final int ENABLESPOTTRAINING_FIELD_NUMBER = 7; + private boolean enableSpotTraining_; + /** + * bool EnableSpotTraining = 7; + */ + public boolean getEnableSpotTraining() { + return enableSpotTraining_; + } + + 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 (!getRegionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, region_); + } + if (!getRoleArnBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roleArn_); + } + if (algorithmSpecification_ != null) { + output.writeMessage(3, getAlgorithmSpecification()); + } + if (resourceConfig_ != null) { + output.writeMessage(4, getResourceConfig()); + } + if (stoppingCondition_ != null) { + output.writeMessage(5, getStoppingCondition()); + } + if (vpcConfig_ != null) { + output.writeMessage(6, getVpcConfig()); + } + if (enableSpotTraining_ != false) { + output.writeBool(7, enableSpotTraining_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRegionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, region_); + } + if (!getRoleArnBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, roleArn_); + } + if (algorithmSpecification_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAlgorithmSpecification()); + } + if (resourceConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResourceConfig()); + } + if (stoppingCondition_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStoppingCondition()); + } + if (vpcConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getVpcConfig()); + } + if (enableSpotTraining_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, enableSpotTraining_); + } + 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob other = (flyteidl.plugins.sagemaker.Trainingjob.TrainingJob) obj; + + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getRoleArn() + .equals(other.getRoleArn())) return false; + if (hasAlgorithmSpecification() != other.hasAlgorithmSpecification()) return false; + if (hasAlgorithmSpecification()) { + if (!getAlgorithmSpecification() + .equals(other.getAlgorithmSpecification())) return false; + } + if (hasResourceConfig() != other.hasResourceConfig()) return false; + if (hasResourceConfig()) { + if (!getResourceConfig() + .equals(other.getResourceConfig())) return false; + } + if (hasStoppingCondition() != other.hasStoppingCondition()) return false; + if (hasStoppingCondition()) { + if (!getStoppingCondition() + .equals(other.getStoppingCondition())) return false; + } + if (hasVpcConfig() != other.hasVpcConfig()) return false; + if (hasVpcConfig()) { + if (!getVpcConfig() + .equals(other.getVpcConfig())) return false; + } + if (getEnableSpotTraining() + != other.getEnableSpotTraining()) 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) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + ROLEARN_FIELD_NUMBER; + hash = (53 * hash) + getRoleArn().hashCode(); + if (hasAlgorithmSpecification()) { + hash = (37 * hash) + ALGORITHMSPECIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmSpecification().hashCode(); + } + if (hasResourceConfig()) { + hash = (37 * hash) + RESOURCECONFIG_FIELD_NUMBER; + hash = (53 * hash) + getResourceConfig().hashCode(); + } + if (hasStoppingCondition()) { + hash = (37 * hash) + STOPPINGCONDITION_FIELD_NUMBER; + hash = (53 * hash) + getStoppingCondition().hashCode(); + } + if (hasVpcConfig()) { + hash = (37 * hash) + VPCCONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVpcConfig().hashCode(); + } + hash = (37 * hash) + ENABLESPOTTRAINING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSpotTraining()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob 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(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJob) + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.class, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.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(); + region_ = ""; + + roleArn_ = ""; + + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = null; + } else { + algorithmSpecification_ = null; + algorithmSpecificationBuilder_ = null; + } + if (resourceConfigBuilder_ == null) { + resourceConfig_ = null; + } else { + resourceConfig_ = null; + resourceConfigBuilder_ = null; + } + if (stoppingConditionBuilder_ == null) { + stoppingCondition_ = null; + } else { + stoppingCondition_ = null; + stoppingConditionBuilder_ = null; + } + if (vpcConfigBuilder_ == null) { + vpcConfig_ = null; + } else { + vpcConfig_ = null; + vpcConfigBuilder_ = null; + } + enableSpotTraining_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob build() { + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob buildPartial() { + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob result = new flyteidl.plugins.sagemaker.Trainingjob.TrainingJob(this); + result.region_ = region_; + result.roleArn_ = roleArn_; + if (algorithmSpecificationBuilder_ == null) { + result.algorithmSpecification_ = algorithmSpecification_; + } else { + result.algorithmSpecification_ = algorithmSpecificationBuilder_.build(); + } + if (resourceConfigBuilder_ == null) { + result.resourceConfig_ = resourceConfig_; + } else { + result.resourceConfig_ = resourceConfigBuilder_.build(); + } + if (stoppingConditionBuilder_ == null) { + result.stoppingCondition_ = stoppingCondition_; + } else { + result.stoppingCondition_ = stoppingConditionBuilder_.build(); + } + if (vpcConfigBuilder_ == null) { + result.vpcConfig_ = vpcConfig_; + } else { + result.vpcConfig_ = vpcConfigBuilder_.build(); + } + result.enableSpotTraining_ = enableSpotTraining_; + 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob) { + return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.TrainingJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob other) { + if (other == flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance()) return this; + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + onChanged(); + } + if (!other.getRoleArn().isEmpty()) { + roleArn_ = other.roleArn_; + onChanged(); + } + if (other.hasAlgorithmSpecification()) { + mergeAlgorithmSpecification(other.getAlgorithmSpecification()); + } + if (other.hasResourceConfig()) { + mergeResourceConfig(other.getResourceConfig()); + } + if (other.hasStoppingCondition()) { + mergeStoppingCondition(other.getStoppingCondition()); + } + if (other.hasVpcConfig()) { + mergeVpcConfig(other.getVpcConfig()); + } + if (other.getEnableSpotTraining() != false) { + setEnableSpotTraining(other.getEnableSpotTraining()); + } + 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 { + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.TrainingJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object region_ = ""; + /** + * string Region = 1; + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string Region = 1; + */ + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string Region = 1; + */ + public Builder setRegion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + region_ = value; + onChanged(); + return this; + } + /** + * string Region = 1; + */ + public Builder clearRegion() { + + region_ = getDefaultInstance().getRegion(); + onChanged(); + return this; + } + /** + * string Region = 1; + */ + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + region_ = value; + onChanged(); + return this; + } + + private java.lang.Object roleArn_ = ""; + /** + * string RoleArn = 2; + */ + public java.lang.String getRoleArn() { + java.lang.Object ref = roleArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + roleArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string RoleArn = 2; + */ + public com.google.protobuf.ByteString + getRoleArnBytes() { + java.lang.Object ref = roleArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + roleArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string RoleArn = 2; + */ + public Builder setRoleArn( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + roleArn_ = value; + onChanged(); + return this; + } + /** + * string RoleArn = 2; + */ + public Builder clearRoleArn() { + + roleArn_ = getDefaultInstance().getRoleArn(); + onChanged(); + return this; + } + /** + * string RoleArn = 2; + */ + public Builder setRoleArnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + roleArn_ = value; + onChanged(); + return this; + } + + private flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification algorithmSpecification_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public boolean hasAlgorithmSpecification() { + return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification() { + if (algorithmSpecificationBuilder_ == null) { + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } else { + return algorithmSpecificationBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification value) { + if (algorithmSpecificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + algorithmSpecification_ = value; + onChanged(); + } else { + algorithmSpecificationBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public Builder setAlgorithmSpecification( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder builderForValue) { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = builderForValue.build(); + onChanged(); + } else { + algorithmSpecificationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification value) { + if (algorithmSpecificationBuilder_ == null) { + if (algorithmSpecification_ != null) { + algorithmSpecification_ = + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); + } else { + algorithmSpecification_ = value; + } + onChanged(); + } else { + algorithmSpecificationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public Builder clearAlgorithmSpecification() { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = null; + onChanged(); + } else { + algorithmSpecification_ = null; + algorithmSpecificationBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { + + onChanged(); + return getAlgorithmSpecificationFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + if (algorithmSpecificationBuilder_ != null) { + return algorithmSpecificationBuilder_.getMessageOrBuilder(); + } else { + return algorithmSpecification_ == null ? + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder> + getAlgorithmSpecificationFieldBuilder() { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder>( + getAlgorithmSpecification(), + getParentForChildren(), + isClean()); + algorithmSpecification_ = null; + } + return algorithmSpecificationBuilder_; + } + + private flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig resourceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder> resourceConfigBuilder_; + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + public boolean hasResourceConfig() { + return resourceConfigBuilder_ != null || resourceConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getResourceConfig() { + if (resourceConfigBuilder_ == null) { + return resourceConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.getDefaultInstance() : resourceConfig_; + } else { + return resourceConfigBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + public Builder setResourceConfig(flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig value) { + if (resourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceConfig_ = value; + onChanged(); + } else { + resourceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + public Builder setResourceConfig( + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder builderForValue) { + if (resourceConfigBuilder_ == null) { + resourceConfig_ = builderForValue.build(); + onChanged(); + } else { + resourceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + public Builder mergeResourceConfig(flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig value) { + if (resourceConfigBuilder_ == null) { + if (resourceConfig_ != null) { + resourceConfig_ = + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.newBuilder(resourceConfig_).mergeFrom(value).buildPartial(); + } else { + resourceConfig_ = value; + } + onChanged(); + } else { + resourceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + public Builder clearResourceConfig() { + if (resourceConfigBuilder_ == null) { + resourceConfig_ = null; + onChanged(); + } else { + resourceConfig_ = null; + resourceConfigBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder getResourceConfigBuilder() { + + onChanged(); + return getResourceConfigFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder getResourceConfigOrBuilder() { + if (resourceConfigBuilder_ != null) { + return resourceConfigBuilder_.getMessageOrBuilder(); + } else { + return resourceConfig_ == null ? + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.getDefaultInstance() : resourceConfig_; + } + } + /** + * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder> + getResourceConfigFieldBuilder() { + if (resourceConfigBuilder_ == null) { + resourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder>( + getResourceConfig(), + getParentForChildren(), + isClean()); + resourceConfig_ = null; + } + return resourceConfigBuilder_; + } + + private flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition stoppingCondition_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder> stoppingConditionBuilder_; + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + public boolean hasStoppingCondition() { + return stoppingConditionBuilder_ != null || stoppingCondition_ != null; + } + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getStoppingCondition() { + if (stoppingConditionBuilder_ == null) { + return stoppingCondition_ == null ? flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance() : stoppingCondition_; + } else { + return stoppingConditionBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + public Builder setStoppingCondition(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition value) { + if (stoppingConditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stoppingCondition_ = value; + onChanged(); + } else { + stoppingConditionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + public Builder setStoppingCondition( + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder builderForValue) { + if (stoppingConditionBuilder_ == null) { + stoppingCondition_ = builderForValue.build(); + onChanged(); + } else { + stoppingConditionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + public Builder mergeStoppingCondition(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition value) { + if (stoppingConditionBuilder_ == null) { + if (stoppingCondition_ != null) { + stoppingCondition_ = + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.newBuilder(stoppingCondition_).mergeFrom(value).buildPartial(); + } else { + stoppingCondition_ = value; + } + onChanged(); + } else { + stoppingConditionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + public Builder clearStoppingCondition() { + if (stoppingConditionBuilder_ == null) { + stoppingCondition_ = null; + onChanged(); + } else { + stoppingCondition_ = null; + stoppingConditionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder getStoppingConditionBuilder() { + + onChanged(); + return getStoppingConditionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + public flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { + if (stoppingConditionBuilder_ != null) { + return stoppingConditionBuilder_.getMessageOrBuilder(); + } else { + return stoppingCondition_ == null ? + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance() : stoppingCondition_; + } + } + /** + * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder> + getStoppingConditionFieldBuilder() { + if (stoppingConditionBuilder_ == null) { + stoppingConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder>( + getStoppingCondition(), + getParentForChildren(), + isClean()); + stoppingCondition_ = null; + } + return stoppingConditionBuilder_; + } + + private flyteidl.plugins.sagemaker.Trainingjob.VpcConfig vpcConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig, flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder> vpcConfigBuilder_; + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + public boolean hasVpcConfig() { + return vpcConfigBuilder_ != null || vpcConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getVpcConfig() { + if (vpcConfigBuilder_ == null) { + return vpcConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.getDefaultInstance() : vpcConfig_; + } else { + return vpcConfigBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + public Builder setVpcConfig(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig value) { + if (vpcConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vpcConfig_ = value; + onChanged(); + } else { + vpcConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + public Builder setVpcConfig( + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder builderForValue) { + if (vpcConfigBuilder_ == null) { + vpcConfig_ = builderForValue.build(); + onChanged(); + } else { + vpcConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + public Builder mergeVpcConfig(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig value) { + if (vpcConfigBuilder_ == null) { + if (vpcConfig_ != null) { + vpcConfig_ = + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.newBuilder(vpcConfig_).mergeFrom(value).buildPartial(); + } else { + vpcConfig_ = value; + } + onChanged(); + } else { + vpcConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + public Builder clearVpcConfig() { + if (vpcConfigBuilder_ == null) { + vpcConfig_ = null; + onChanged(); + } else { + vpcConfig_ = null; + vpcConfigBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder getVpcConfigBuilder() { + + onChanged(); + return getVpcConfigFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + public flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder getVpcConfigOrBuilder() { + if (vpcConfigBuilder_ != null) { + return vpcConfigBuilder_.getMessageOrBuilder(); + } else { + return vpcConfig_ == null ? + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.getDefaultInstance() : vpcConfig_; + } + } + /** + * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig, flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder> + getVpcConfigFieldBuilder() { + if (vpcConfigBuilder_ == null) { + vpcConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.VpcConfig, flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder>( + getVpcConfig(), + getParentForChildren(), + isClean()); + vpcConfig_ = null; + } + return vpcConfigBuilder_; + } + + private boolean enableSpotTraining_ ; + /** + * bool EnableSpotTraining = 7; + */ + public boolean getEnableSpotTraining() { + return enableSpotTraining_; + } + /** + * bool EnableSpotTraining = 7; + */ + public Builder setEnableSpotTraining(boolean value) { + + enableSpotTraining_ = value; + onChanged(); + return this; + } + /** + * bool EnableSpotTraining = 7; + */ + public Builder clearEnableSpotTraining() { + + enableSpotTraining_ = false; + 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:flyteidl.plugins.sagemaker.TrainingJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) + private static final flyteidl.plugins.sagemaker.Trainingjob.TrainingJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.TrainingJob(); + } + + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainingJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainingJob(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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_TrainingJob_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,flyteidl/plugins/sagemaker/trainingjob" + + ".proto\022\032flyteidl.plugins.sagemaker\"\362\001\n\026A" + + "lgorithmSpecification\022\025\n\rTrainingImage\030\001" + + " \001(\t\022\031\n\021TrainingInputMode\030\002 \001(\t\022\025\n\rAlgor" + + "ithmName\030\003 \001(\t\022^\n\021MetricDefinitions\030\004 \003(" + + "\0132C.flyteidl.plugins.sagemaker.Algorithm" + + "Specification.MetricDefinition\032/\n\020Metric" + + "Definition\022\014\n\004Name\030\001 \001(\t\022\r\n\005Regex\030\002 \001(\t\"" + + "m\n\016ResourceConfig\022\024\n\014InstanceType\030\001 \001(\t\022" + + "\025\n\rInstanceCount\030\002 \001(\003\022\026\n\016VolumeSizeInGB" + + "\030\003 \001(\003\022\026\n\016VolumeKmsKeyId\030\004 \001(\t\"N\n\021Stoppi" + + "ngCondition\022\033\n\023MaxRuntimeInSeconds\030\001 \001(\003" + + "\022\034\n\024MaxWaitTimeInSeconds\030\002 \001(\003\"6\n\tVpcCon" + + "fig\022\030\n\020SecurityGroupIds\030\001 \003(\t\022\017\n\007Subnets" + + "\030\002 \003(\t\"\346\002\n\013TrainingJob\022\016\n\006Region\030\001 \001(\t\022\017" + + "\n\007RoleArn\030\002 \001(\t\022R\n\026AlgorithmSpecificatio" + + "n\030\003 \001(\01322.flyteidl.plugins.sagemaker.Alg" + + "orithmSpecification\022B\n\016ResourceConfig\030\004 " + + "\001(\0132*.flyteidl.plugins.sagemaker.Resourc" + + "eConfig\022H\n\021StoppingCondition\030\005 \001(\0132-.fly" + + "teidl.plugins.sagemaker.StoppingConditio" + + "n\0228\n\tVpcConfig\030\006 \001(\0132%.flyteidl.plugins." + + "sagemaker.VpcConfig\022\032\n\022EnableSpotTrainin" + + "g\030\007 \001(\010B5Z3github.com/lyft/flyteidl/gen/" + + "pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, + new java.lang.String[] { "TrainingImage", "TrainingInputMode", "AlgorithmName", "MetricDefinitions", }); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor = + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, + new java.lang.String[] { "Name", "Regex", }); + internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor, + new java.lang.String[] { "InstanceType", "InstanceCount", "VolumeSizeInGB", "VolumeKmsKeyId", }); + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor, + new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", }); + internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor, + new java.lang.String[] { "SecurityGroupIds", "Subnets", }); + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor, + new java.lang.String[] { "Region", "RoleArn", "AlgorithmSpecification", "ResourceConfig", "StoppingCondition", "VpcConfig", "EnableSpotTraining", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst new file mode 100644 index 000000000..e62557e4c --- /dev/null +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst @@ -0,0 +1,100 @@ +.. _api_file_flyteidl/plugins/sagemaker/hpojob.proto: + +hpojob.proto +======================================= + +.. _api_msg_flyteidl.plugins.sagemaker.HPOJobObjective: + +flyteidl.plugins.sagemaker.HPOJobObjective +------------------------------------------ + +`[flyteidl.plugins.sagemaker.HPOJobObjective proto] `_ + + +.. code-block:: json + + { + "Type": "...", + "MetricName": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.Type: + +Type + (:ref:`flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType `) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.MetricName: + +MetricName + (`string `_) + + +.. _api_enum_flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType: + +Enum flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType +------------------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType.MINIMIZE: + +MINIMIZE + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType.MAXIMIZE: + +MAXIMIZE + ⁣ + + +.. _api_msg_flyteidl.plugins.sagemaker.HPOJob: + +flyteidl.plugins.sagemaker.HPOJob +--------------------------------- + +`[flyteidl.plugins.sagemaker.HPOJob proto] `_ + + +.. code-block:: json + + { + "Strategy": "...", + "Objective": "{...}", + "MaxNumberOfTrainingJobs": "...", + "MaxParallelTrainingJobs": "...", + "ParameterRanges": "{...}", + "TrainingJob": "{...}" + } + +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.Strategy: + +Strategy + (`string `_) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.Objective: + +Objective + (:ref:`flyteidl.plugins.sagemaker.HPOJobObjective `) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.MaxNumberOfTrainingJobs: + +MaxNumberOfTrainingJobs + (`int64 `_) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.MaxParallelTrainingJobs: + +MaxParallelTrainingJobs + (`int64 `_) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.ParameterRanges: + +ParameterRanges + (:ref:`flyteidl.plugins.sagemaker.ParameterRanges `) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.TrainingJob: + +TrainingJob + (:ref:`flyteidl.plugins.sagemaker.TrainingJob `) + + diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst index bccab192f..22253dc32 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst @@ -6,4 +6,6 @@ sagemaker :caption: sagemaker :name: sagemakertoc - sagemaker.proto + hpojob.proto + parameterranges.proto + trainingjob.proto diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst new file mode 100644 index 000000000..42a889367 --- /dev/null +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst @@ -0,0 +1,182 @@ +.. _api_file_flyteidl/plugins/sagemaker/parameterranges.proto: + +parameterranges.proto +================================================ + +.. _api_msg_flyteidl.plugins.sagemaker.ContinuousParameterRange: + +flyteidl.plugins.sagemaker.ContinuousParameterRange +--------------------------------------------------- + +`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_ + + +.. code-block:: json + + { + "MaxValue": "...", + "MinValue": "...", + "ScalingType": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue: + +MaxValue + (`double `_) + +.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue: + +MinValue + (`double `_) + +.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType: + +ScalingType + (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) + + + +.. _api_msg_flyteidl.plugins.sagemaker.IntegerParameterRange: + +flyteidl.plugins.sagemaker.IntegerParameterRange +------------------------------------------------ + +`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_ + + +.. code-block:: json + + { + "MaxValue": "...", + "MinValue": "...", + "ScalingType": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue: + +MaxValue + (`float `_) + +.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue: + +MinValue + (`float `_) + +.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType: + +ScalingType + (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) + + + +.. _api_msg_flyteidl.plugins.sagemaker.CategoricalParameterRange: + +flyteidl.plugins.sagemaker.CategoricalParameterRange +---------------------------------------------------- + +`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_ + + +.. code-block:: json + + { + "Values": [] + } + +.. _api_field_flyteidl.plugins.sagemaker.CategoricalParameterRange.Values: + +Values + (`string `_) + + + +.. _api_msg_flyteidl.plugins.sagemaker.ParameterRangeOneOf: + +flyteidl.plugins.sagemaker.ParameterRangeOneOf +---------------------------------------------- + +`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_ + + +.. code-block:: json + + { + "ContinuousParameterRange": "{...}", + "IntegerParameterRange": "{...}", + "CategoricalParameterRange": "{...}" + } + +.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.ContinuousParameterRange: + +ContinuousParameterRange + (:ref:`flyteidl.plugins.sagemaker.ContinuousParameterRange `) + + + Only one of :ref:`ContinuousParameterRange `, :ref:`IntegerParameterRange `, :ref:`CategoricalParameterRange ` may be set. + +.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.IntegerParameterRange: + +IntegerParameterRange + (:ref:`flyteidl.plugins.sagemaker.IntegerParameterRange `) + + + Only one of :ref:`ContinuousParameterRange `, :ref:`IntegerParameterRange `, :ref:`CategoricalParameterRange ` may be set. + +.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.CategoricalParameterRange: + +CategoricalParameterRange + (:ref:`flyteidl.plugins.sagemaker.CategoricalParameterRange `) + + + Only one of :ref:`ContinuousParameterRange `, :ref:`IntegerParameterRange `, :ref:`CategoricalParameterRange ` may be set. + + + +.. _api_msg_flyteidl.plugins.sagemaker.ParameterRanges: + +flyteidl.plugins.sagemaker.ParameterRanges +------------------------------------------ + +`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ + + +.. code-block:: json + + { + "ParameterRangeMap": "{...}" + } + +.. _api_field_flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMap: + +ParameterRangeMap + (map<`string `_, :ref:`flyteidl.plugins.sagemaker.ParameterRangeOneOf `>) + + +.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterScalingType: + +Enum flyteidl.plugins.sagemaker.HyperparameterScalingType +--------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.AUTO: + +AUTO + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.LINEAR: + +LINEAR + ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.LOGARITHMIC: + +LOGARITHMIC + ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.REVERSELOGARITHMIC: + +REVERSELOGARITHMIC + ⁣ + diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/sagemaker.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/sagemaker.proto.rst deleted file mode 100644 index 9f44624cc..000000000 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/sagemaker.proto.rst +++ /dev/null @@ -1,481 +0,0 @@ -.. _api_file_flyteidl/plugins/sagemaker/sagemaker.proto: - -sagemaker.proto -========================================== - -.. _api_msg_flyteidl.plugins.sagemaker.ContinuousParameterRange: - -flyteidl.plugins.sagemaker.ContinuousParameterRange ---------------------------------------------------- - -`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_ - - -.. code-block:: json - - { - "Name": "...", - "MaxValue": "...", - "MinValue": "...", - "ScalingType": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.Name: - -Name - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue: - -MaxValue - (`double `_) - -.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue: - -MinValue - (`double `_) - -.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType: - -ScalingType - (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) - - - -.. _api_msg_flyteidl.plugins.sagemaker.IntegerParameterRange: - -flyteidl.plugins.sagemaker.IntegerParameterRange ------------------------------------------------- - -`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_ - - -.. code-block:: json - - { - "Name": "...", - "MaxValue": "...", - "MinValue": "...", - "ScalingType": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.Name: - -Name - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue: - -MaxValue - (`float `_) - -.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue: - -MinValue - (`float `_) - -.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType: - -ScalingType - (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) - - - -.. _api_msg_flyteidl.plugins.sagemaker.CategoricalParameterRange: - -flyteidl.plugins.sagemaker.CategoricalParameterRange ----------------------------------------------------- - -`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_ - - -.. code-block:: json - - { - "Name": "...", - "Values": [] - } - -.. _api_field_flyteidl.plugins.sagemaker.CategoricalParameterRange.Name: - -Name - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.CategoricalParameterRange.Values: - -Values - (`string `_) - - - -.. _api_msg_flyteidl.plugins.sagemaker.ParameterRanges: - -flyteidl.plugins.sagemaker.ParameterRanges ------------------------------------------- - -`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ - - -.. code-block:: json - - { - "ContinuousParameterRanges": [], - "IntegerParameterRanges": [], - "CategoricalParameterRanges": [] - } - -.. _api_field_flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges: - -ContinuousParameterRanges - (:ref:`flyteidl.plugins.sagemaker.ContinuousParameterRange `) - -.. _api_field_flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges: - -IntegerParameterRanges - (:ref:`flyteidl.plugins.sagemaker.IntegerParameterRange `) - -.. _api_field_flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges: - -CategoricalParameterRanges - (:ref:`flyteidl.plugins.sagemaker.CategoricalParameterRange `) - - - -.. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification: - -flyteidl.plugins.sagemaker.AlgorithmSpecification -------------------------------------------------- - -`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ - - -.. code-block:: json - - { - "TrainingImage": "...", - "TrainingInputMode": "...", - "AlgorithmName": "...", - "MetricDefinitions": [] - } - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage: - -TrainingImage - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode: - -TrainingInputMode - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName: - -AlgorithmName - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions: - -MetricDefinitions - (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition `) - -.. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition: - -flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition ------------------------------------------------------------------- - -`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ - - -.. code-block:: json - - { - "Name": "...", - "Regex": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name: - -Name - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex: - -Regex - (`string `_) - - - - -.. _api_msg_flyteidl.plugins.sagemaker.ResourceConfig: - -flyteidl.plugins.sagemaker.ResourceConfig ------------------------------------------ - -`[flyteidl.plugins.sagemaker.ResourceConfig proto] `_ - - -.. code-block:: json - - { - "InstanceType": "...", - "InstanceCount": "...", - "VolumeSizeInGB": "...", - "VolumeKmsKeyId": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.InstanceType: - -InstanceType - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount: - -InstanceCount - (`int64 `_) - -.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB: - -VolumeSizeInGB - (`int64 `_) - -.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId: - -VolumeKmsKeyId - (`string `_) - - - -.. _api_msg_flyteidl.plugins.sagemaker.StoppingCondition: - -flyteidl.plugins.sagemaker.StoppingCondition --------------------------------------------- - -`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ - - -.. code-block:: json - - { - "MaxRuntimeInSeconds": "...", - "MaxWaitTimeInSeconds": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds: - -MaxRuntimeInSeconds - (`int64 `_) - -.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds: - -MaxWaitTimeInSeconds - (`int64 `_) - - - -.. _api_msg_flyteidl.plugins.sagemaker.VpcConfig: - -flyteidl.plugins.sagemaker.VpcConfig ------------------------------------- - -`[flyteidl.plugins.sagemaker.VpcConfig proto] `_ - - -.. code-block:: json - - { - "SecurityGroupIds": [], - "Subnets": [] - } - -.. _api_field_flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds: - -SecurityGroupIds - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.VpcConfig.Subnets: - -Subnets - (`string `_) - - - -.. _api_msg_flyteidl.plugins.sagemaker.SagemakerTrainingJob: - -flyteidl.plugins.sagemaker.SagemakerTrainingJob ------------------------------------------------ - -`[flyteidl.plugins.sagemaker.SagemakerTrainingJob proto] `_ - - -.. code-block:: json - - { - "Region": "...", - "RoleArn": "...", - "AlgorithmSpecification": "{...}", - "ResourceConfig": "{...}", - "StoppingCondition": "{...}", - "VpcConfig": "{...}", - "EnableSpotTraining": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region: - -Region - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn: - -RoleArn - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification: - -AlgorithmSpecification - (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification `) - -.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig: - -ResourceConfig - (:ref:`flyteidl.plugins.sagemaker.ResourceConfig `) - -.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition: - -StoppingCondition - (:ref:`flyteidl.plugins.sagemaker.StoppingCondition `) - -.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.VpcConfig: - -VpcConfig - (:ref:`flyteidl.plugins.sagemaker.VpcConfig `) - -.. _api_field_flyteidl.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining: - -EnableSpotTraining - (`bool `_) - - - -.. _api_msg_flyteidl.plugins.sagemaker.HPOJobObjective: - -flyteidl.plugins.sagemaker.HPOJobObjective ------------------------------------------- - -`[flyteidl.plugins.sagemaker.HPOJobObjective proto] `_ - - -.. code-block:: json - - { - "Type": "...", - "MetricName": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.Type: - -Type - (:ref:`flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType `) - -.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.MetricName: - -MetricName - (`string `_) - - -.. _api_enum_flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType: - -Enum flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType -------------------------------------------------------------------- - -`[flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType proto] `_ - - -.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType.MINIMIZE: - -MINIMIZE - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType.MAXIMIZE: - -MAXIMIZE - ⁣ - - -.. _api_msg_flyteidl.plugins.sagemaker.SagemakerHPOJob: - -flyteidl.plugins.sagemaker.SagemakerHPOJob ------------------------------------------- - -`[flyteidl.plugins.sagemaker.SagemakerHPOJob proto] `_ - - -.. code-block:: json - - { - "Strategy": "...", - "Objective": "{...}", - "MaxNumberOfTrainingJobs": "...", - "MaxParallelTrainingJobs": "...", - "ParameterRanges": "{...}", - "TrainingJob": "{...}" - } - -.. _api_field_flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy: - -Strategy - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.SagemakerHPOJob.Objective: - -Objective - (:ref:`flyteidl.plugins.sagemaker.HPOJobObjective `) - -.. _api_field_flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs: - -MaxNumberOfTrainingJobs - (`int64 `_) - -.. _api_field_flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs: - -MaxParallelTrainingJobs - (`int64 `_) - -.. _api_field_flyteidl.plugins.sagemaker.SagemakerHPOJob.ParameterRanges: - -ParameterRanges - (:ref:`flyteidl.plugins.sagemaker.ParameterRanges `) - -.. _api_field_flyteidl.plugins.sagemaker.SagemakerHPOJob.TrainingJob: - -TrainingJob - (:ref:`flyteidl.plugins.sagemaker.SagemakerTrainingJob `) - - -.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterScalingType: - -Enum flyteidl.plugins.sagemaker.HyperparameterScalingType ---------------------------------------------------------- - -`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_ - - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.AUTO: - -AUTO - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.LINEAR: - -LINEAR - ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.LOGARITHMIC: - -LOGARITHMIC - ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.REVERSELOGARITHMIC: - -REVERSELOGARITHMIC - ⁣ - diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst new file mode 100644 index 000000000..7c0fa07f1 --- /dev/null +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst @@ -0,0 +1,219 @@ +.. _api_file_flyteidl/plugins/sagemaker/trainingjob.proto: + +trainingjob.proto +============================================ + +.. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification: + +flyteidl.plugins.sagemaker.AlgorithmSpecification +------------------------------------------------- + +`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ + + +.. code-block:: json + + { + "TrainingImage": "...", + "TrainingInputMode": "...", + "AlgorithmName": "...", + "MetricDefinitions": [] + } + +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage: + +TrainingImage + (`string `_) + +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode: + +TrainingInputMode + (`string `_) + +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName: + +AlgorithmName + (`string `_) + +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions: + +MetricDefinitions + (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition `) + +.. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition: + +flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition +------------------------------------------------------------------ + +`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ + + +.. code-block:: json + + { + "Name": "...", + "Regex": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name: + +Name + (`string `_) + +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex: + +Regex + (`string `_) + + + + +.. _api_msg_flyteidl.plugins.sagemaker.ResourceConfig: + +flyteidl.plugins.sagemaker.ResourceConfig +----------------------------------------- + +`[flyteidl.plugins.sagemaker.ResourceConfig proto] `_ + + +.. code-block:: json + + { + "InstanceType": "...", + "InstanceCount": "...", + "VolumeSizeInGB": "...", + "VolumeKmsKeyId": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.InstanceType: + +InstanceType + (`string `_) + +.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount: + +InstanceCount + (`int64 `_) + +.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB: + +VolumeSizeInGB + (`int64 `_) + +.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId: + +VolumeKmsKeyId + (`string `_) + + + +.. _api_msg_flyteidl.plugins.sagemaker.StoppingCondition: + +flyteidl.plugins.sagemaker.StoppingCondition +-------------------------------------------- + +`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ + + +.. code-block:: json + + { + "MaxRuntimeInSeconds": "...", + "MaxWaitTimeInSeconds": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds: + +MaxRuntimeInSeconds + (`int64 `_) + +.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds: + +MaxWaitTimeInSeconds + (`int64 `_) + + + +.. _api_msg_flyteidl.plugins.sagemaker.VpcConfig: + +flyteidl.plugins.sagemaker.VpcConfig +------------------------------------ + +`[flyteidl.plugins.sagemaker.VpcConfig proto] `_ + + +.. code-block:: json + + { + "SecurityGroupIds": [], + "Subnets": [] + } + +.. _api_field_flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds: + +SecurityGroupIds + (`string `_) + +.. _api_field_flyteidl.plugins.sagemaker.VpcConfig.Subnets: + +Subnets + (`string `_) + + + +.. _api_msg_flyteidl.plugins.sagemaker.TrainingJob: + +flyteidl.plugins.sagemaker.TrainingJob +-------------------------------------- + +`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ + + +.. code-block:: json + + { + "Region": "...", + "RoleArn": "...", + "AlgorithmSpecification": "{...}", + "ResourceConfig": "{...}", + "StoppingCondition": "{...}", + "VpcConfig": "{...}", + "EnableSpotTraining": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.Region: + +Region + (`string `_) + +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.RoleArn: + +RoleArn + (`string `_) + +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.AlgorithmSpecification: + +AlgorithmSpecification + (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification `) + +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.ResourceConfig: + +ResourceConfig + (:ref:`flyteidl.plugins.sagemaker.ResourceConfig `) + +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.StoppingCondition: + +StoppingCondition + (:ref:`flyteidl.plugins.sagemaker.StoppingCondition `) + +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.VpcConfig: + +VpcConfig + (:ref:`flyteidl.plugins.sagemaker.VpcConfig `) + +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.EnableSpotTraining: + +EnableSpotTraining + (`bool `_) + + diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py new file mode 100644 index 000000000..7c4611a4c --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py @@ -0,0 +1,183 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/sagemaker/hpojob.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.plugins.sagemaker import parameterranges_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2 +from flyteidl.plugins.sagemaker import trainingjob_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/plugins/sagemaker/hpojob.proto', + package='flyteidl.plugins.sagemaker', + syntax='proto3', + serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), + serialized_pb=_b('\n\'flyteidl/plugins/sagemaker/hpojob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x30\x66lyteidl/plugins/sagemaker/parameterranges.proto\x1a,flyteidl/plugins/sagemaker/trainingjob.proto\"\xa7\x01\n\x0fHPOJobObjective\x12M\n\x04Type\x18\x01 \x01(\x0e\x32?.flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType\x12\x12\n\nMetricName\x18\x02 \x01(\t\"1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\xa0\x02\n\x06HPOJob\x12\x10\n\x08Strategy\x18\x01 \x01(\t\x12>\n\tObjective\x18\x02 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.HPOJobObjective\x12\x1f\n\x17MaxNumberOfTrainingJobs\x18\x03 \x01(\x03\x12\x1f\n\x17MaxParallelTrainingJobs\x18\x04 \x01(\x03\x12\x44\n\x0fParameterRanges\x18\x05 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12<\n\x0bTrainingJob\x18\x06 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJobB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + , + dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2.DESCRIPTOR,]) + + + +_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE = _descriptor.EnumDescriptor( + name='HPOJobObjectiveType', + full_name='flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='MINIMIZE', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MAXIMIZE', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=286, + serialized_end=335, +) +_sym_db.RegisterEnumDescriptor(_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE) + + +_HPOJOBOBJECTIVE = _descriptor.Descriptor( + name='HPOJobObjective', + full_name='flyteidl.plugins.sagemaker.HPOJobObjective', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='Type', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.Type', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MetricName', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.MetricName', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=168, + serialized_end=335, +) + + +_HPOJOB = _descriptor.Descriptor( + name='HPOJob', + full_name='flyteidl.plugins.sagemaker.HPOJob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='Strategy', full_name='flyteidl.plugins.sagemaker.HPOJob.Strategy', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='Objective', full_name='flyteidl.plugins.sagemaker.HPOJob.Objective', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MaxNumberOfTrainingJobs', full_name='flyteidl.plugins.sagemaker.HPOJob.MaxNumberOfTrainingJobs', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MaxParallelTrainingJobs', full_name='flyteidl.plugins.sagemaker.HPOJob.MaxParallelTrainingJobs', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ParameterRanges', full_name='flyteidl.plugins.sagemaker.HPOJob.ParameterRanges', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='TrainingJob', full_name='flyteidl.plugins.sagemaker.HPOJob.TrainingJob', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=338, + serialized_end=626, +) + +_HPOJOBOBJECTIVE.fields_by_name['Type'].enum_type = _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE +_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE.containing_type = _HPOJOBOBJECTIVE +_HPOJOB.fields_by_name['Objective'].message_type = _HPOJOBOBJECTIVE +_HPOJOB.fields_by_name['ParameterRanges'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2._PARAMETERRANGES +_HPOJOB.fields_by_name['TrainingJob'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2._TRAININGJOB +DESCRIPTOR.message_types_by_name['HPOJobObjective'] = _HPOJOBOBJECTIVE +DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +HPOJobObjective = _reflection.GeneratedProtocolMessageType('HPOJobObjective', (_message.Message,), dict( + DESCRIPTOR = _HPOJOBOBJECTIVE, + __module__ = 'flyteidl.plugins.sagemaker.hpojob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobObjective) + )) +_sym_db.RegisterMessage(HPOJobObjective) + +HPOJob = _reflection.GeneratedProtocolMessageType('HPOJob', (_message.Message,), dict( + DESCRIPTOR = _HPOJOB, + __module__ = 'flyteidl.plugins.sagemaker.hpojob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) + )) +_sym_db.RegisterMessage(HPOJob) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2_grpc.py similarity index 100% rename from gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2_grpc.py rename to gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2_grpc.py diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py new file mode 100644 index 000000000..74605b028 --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py @@ -0,0 +1,372 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/sagemaker/parameterranges.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/plugins/sagemaker/parameterranges.proto', + package='flyteidl.plugins.sagemaker', + syntax='proto3', + serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), + serialized_pb=_b('\n0flyteidl/plugins/sagemaker/parameterranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x8a\x01\n\x18\x43ontinuousParameterRange\x12\x10\n\x08MaxValue\x18\x01 \x01(\x01\x12\x10\n\x08MinValue\x18\x02 \x01(\x01\x12J\n\x0bScalingType\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x87\x01\n\x15IntegerParameterRange\x12\x10\n\x08MaxValue\x18\x01 \x01(\x02\x12\x10\n\x08MinValue\x18\x02 \x01(\x02\x12J\n\x0bScalingType\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"+\n\x19\x43\x61tegoricalParameterRange\x12\x0e\n\x06Values\x18\x01 \x03(\t\"\xb6\x02\n\x13ParameterRangeOneOf\x12X\n\x18\x43ontinuousParameterRange\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00\x12R\n\x15IntegerParameterRange\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00\x12Z\n\x19\x43\x61tegoricalParameterRange\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00\x42\x15\n\x13ParameterRangeTypes\"\xdb\x01\n\x0fParameterRanges\x12]\n\x11ParameterRangeMap\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry\x1ai\n\x16ParameterRangeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOf:\x02\x38\x01*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') +) + +_HYPERPARAMETERSCALINGTYPE = _descriptor.EnumDescriptor( + name='HyperparameterScalingType', + full_name='flyteidl.plugins.sagemaker.HyperparameterScalingType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='AUTO', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LINEAR', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOGARITHMIC', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REVERSELOGARITHMIC', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=939, + serialized_end=1029, +) +_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERSCALINGTYPE) + +HyperparameterScalingType = enum_type_wrapper.EnumTypeWrapper(_HYPERPARAMETERSCALINGTYPE) +AUTO = 0 +LINEAR = 1 +LOGARITHMIC = 2 +REVERSELOGARITHMIC = 3 + + + +_CONTINUOUSPARAMETERRANGE = _descriptor.Descriptor( + name='ContinuousParameterRange', + full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='MaxValue', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue', index=0, + number=1, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MinValue', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue', index=1, + number=2, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ScalingType', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=81, + serialized_end=219, +) + + +_INTEGERPARAMETERRANGE = _descriptor.Descriptor( + name='IntegerParameterRange', + full_name='flyteidl.plugins.sagemaker.IntegerParameterRange', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='MaxValue', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue', index=0, + number=1, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MinValue', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue', index=1, + number=2, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ScalingType', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=222, + serialized_end=357, +) + + +_CATEGORICALPARAMETERRANGE = _descriptor.Descriptor( + name='CategoricalParameterRange', + full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='Values', full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange.Values', index=0, + number=1, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=359, + serialized_end=402, +) + + +_PARAMETERRANGEONEOF = _descriptor.Descriptor( + name='ParameterRangeOneOf', + full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ContinuousParameterRange', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.ContinuousParameterRange', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='IntegerParameterRange', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.IntegerParameterRange', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='CategoricalParameterRange', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.CategoricalParameterRange', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='ParameterRangeTypes', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.ParameterRangeTypes', + index=0, containing_type=None, fields=[]), + ], + serialized_start=405, + serialized_end=715, +) + + +_PARAMETERRANGES_PARAMETERRANGEMAPENTRY = _descriptor.Descriptor( + name='ParameterRangeMapEntry', + full_name='flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('8\001'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=832, + serialized_end=937, +) + +_PARAMETERRANGES = _descriptor.Descriptor( + name='ParameterRanges', + full_name='flyteidl.plugins.sagemaker.ParameterRanges', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ParameterRangeMap', full_name='flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMap', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_PARAMETERRANGES_PARAMETERRANGEMAPENTRY, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=718, + serialized_end=937, +) + +_CONTINUOUSPARAMETERRANGE.fields_by_name['ScalingType'].enum_type = _HYPERPARAMETERSCALINGTYPE +_INTEGERPARAMETERRANGE.fields_by_name['ScalingType'].enum_type = _HYPERPARAMETERSCALINGTYPE +_PARAMETERRANGEONEOF.fields_by_name['ContinuousParameterRange'].message_type = _CONTINUOUSPARAMETERRANGE +_PARAMETERRANGEONEOF.fields_by_name['IntegerParameterRange'].message_type = _INTEGERPARAMETERRANGE +_PARAMETERRANGEONEOF.fields_by_name['CategoricalParameterRange'].message_type = _CATEGORICALPARAMETERRANGE +_PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'].fields.append( + _PARAMETERRANGEONEOF.fields_by_name['ContinuousParameterRange']) +_PARAMETERRANGEONEOF.fields_by_name['ContinuousParameterRange'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'] +_PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'].fields.append( + _PARAMETERRANGEONEOF.fields_by_name['IntegerParameterRange']) +_PARAMETERRANGEONEOF.fields_by_name['IntegerParameterRange'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'] +_PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'].fields.append( + _PARAMETERRANGEONEOF.fields_by_name['CategoricalParameterRange']) +_PARAMETERRANGEONEOF.fields_by_name['CategoricalParameterRange'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'] +_PARAMETERRANGES_PARAMETERRANGEMAPENTRY.fields_by_name['value'].message_type = _PARAMETERRANGEONEOF +_PARAMETERRANGES_PARAMETERRANGEMAPENTRY.containing_type = _PARAMETERRANGES +_PARAMETERRANGES.fields_by_name['ParameterRangeMap'].message_type = _PARAMETERRANGES_PARAMETERRANGEMAPENTRY +DESCRIPTOR.message_types_by_name['ContinuousParameterRange'] = _CONTINUOUSPARAMETERRANGE +DESCRIPTOR.message_types_by_name['IntegerParameterRange'] = _INTEGERPARAMETERRANGE +DESCRIPTOR.message_types_by_name['CategoricalParameterRange'] = _CATEGORICALPARAMETERRANGE +DESCRIPTOR.message_types_by_name['ParameterRangeOneOf'] = _PARAMETERRANGEONEOF +DESCRIPTOR.message_types_by_name['ParameterRanges'] = _PARAMETERRANGES +DESCRIPTOR.enum_types_by_name['HyperparameterScalingType'] = _HYPERPARAMETERSCALINGTYPE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ContinuousParameterRange = _reflection.GeneratedProtocolMessageType('ContinuousParameterRange', (_message.Message,), dict( + DESCRIPTOR = _CONTINUOUSPARAMETERRANGE, + __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) + )) +_sym_db.RegisterMessage(ContinuousParameterRange) + +IntegerParameterRange = _reflection.GeneratedProtocolMessageType('IntegerParameterRange', (_message.Message,), dict( + DESCRIPTOR = _INTEGERPARAMETERRANGE, + __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) + )) +_sym_db.RegisterMessage(IntegerParameterRange) + +CategoricalParameterRange = _reflection.GeneratedProtocolMessageType('CategoricalParameterRange', (_message.Message,), dict( + DESCRIPTOR = _CATEGORICALPARAMETERRANGE, + __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) + )) +_sym_db.RegisterMessage(CategoricalParameterRange) + +ParameterRangeOneOf = _reflection.GeneratedProtocolMessageType('ParameterRangeOneOf', (_message.Message,), dict( + DESCRIPTOR = _PARAMETERRANGEONEOF, + __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + )) +_sym_db.RegisterMessage(ParameterRangeOneOf) + +ParameterRanges = _reflection.GeneratedProtocolMessageType('ParameterRanges', (_message.Message,), dict( + + ParameterRangeMapEntry = _reflection.GeneratedProtocolMessageType('ParameterRangeMapEntry', (_message.Message,), dict( + DESCRIPTOR = _PARAMETERRANGES_PARAMETERRANGEMAPENTRY, + __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry) + )) + , + DESCRIPTOR = _PARAMETERRANGES, + __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) + )) +_sym_db.RegisterMessage(ParameterRanges) +_sym_db.RegisterMessage(ParameterRanges.ParameterRangeMapEntry) + + +DESCRIPTOR._options = None +_PARAMETERRANGES_PARAMETERRANGEMAPENTRY._options = None +# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2.py deleted file mode 100644 index 27b6ed74b..000000000 --- a/gen/pb_python/flyteidl/plugins/sagemaker/sagemaker_pb2.py +++ /dev/null @@ -1,785 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/sagemaker/sagemaker.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf.internal import enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='flyteidl/plugins/sagemaker/sagemaker.proto', - package='flyteidl.plugins.sagemaker', - syntax='proto3', - serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n*flyteidl/plugins/sagemaker/sagemaker.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x98\x01\n\x18\x43ontinuousParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x10\n\x08MaxValue\x18\x02 \x01(\x01\x12\x10\n\x08MinValue\x18\x03 \x01(\x01\x12J\n\x0bScalingType\x18\x04 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x95\x01\n\x15IntegerParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x10\n\x08MaxValue\x18\x02 \x01(\x02\x12\x10\n\x08MinValue\x18\x03 \x01(\x02\x12J\n\x0bScalingType\x18\x04 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"9\n\x19\x43\x61tegoricalParameterRange\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\x0e\n\x06Values\x18\x02 \x03(\t\"\x98\x02\n\x0fParameterRanges\x12W\n\x19\x43ontinuousParameterRanges\x18\x01 \x03(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRange\x12Q\n\x16IntegerParameterRanges\x18\x02 \x03(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRange\x12Y\n\x1a\x43\x61tegoricalParameterRanges\x18\x03 \x03(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRange\"\xf2\x01\n\x16\x41lgorithmSpecification\x12\x15\n\rTrainingImage\x18\x01 \x01(\t\x12\x19\n\x11TrainingInputMode\x18\x02 \x01(\t\x12\x15\n\rAlgorithmName\x18\x03 \x01(\t\x12^\n\x11MetricDefinitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\r\n\x05Regex\x18\x02 \x01(\t\"m\n\x0eResourceConfig\x12\x14\n\x0cInstanceType\x18\x01 \x01(\t\x12\x15\n\rInstanceCount\x18\x02 \x01(\x03\x12\x16\n\x0eVolumeSizeInGB\x18\x03 \x01(\x03\x12\x16\n\x0eVolumeKmsKeyId\x18\x04 \x01(\t\"N\n\x11StoppingCondition\x12\x1b\n\x13MaxRuntimeInSeconds\x18\x01 \x01(\x03\x12\x1c\n\x14MaxWaitTimeInSeconds\x18\x02 \x01(\x03\"6\n\tVpcConfig\x12\x18\n\x10SecurityGroupIds\x18\x01 \x03(\t\x12\x0f\n\x07Subnets\x18\x02 \x03(\t\"\xef\x02\n\x14SagemakerTrainingJob\x12\x0e\n\x06Region\x18\x01 \x01(\t\x12\x0f\n\x07RoleArn\x18\x02 \x01(\t\x12R\n\x16\x41lgorithmSpecification\x18\x03 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12\x42\n\x0eResourceConfig\x18\x04 \x01(\x0b\x32*.flyteidl.plugins.sagemaker.ResourceConfig\x12H\n\x11StoppingCondition\x18\x05 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.StoppingCondition\x12\x38\n\tVpcConfig\x18\x06 \x01(\x0b\x32%.flyteidl.plugins.sagemaker.VpcConfig\x12\x1a\n\x12\x45nableSpotTraining\x18\x07 \x01(\x08\"\xa7\x01\n\x0fHPOJobObjective\x12M\n\x04Type\x18\x01 \x01(\x0e\x32?.flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType\x12\x12\n\nMetricName\x18\x02 \x01(\t\"1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\xb2\x02\n\x0fSagemakerHPOJob\x12\x10\n\x08Strategy\x18\x01 \x01(\t\x12>\n\tObjective\x18\x02 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.HPOJobObjective\x12\x1f\n\x17MaxNumberOfTrainingJobs\x18\x03 \x01(\x03\x12\x1f\n\x17MaxParallelTrainingJobs\x18\x04 \x01(\x03\x12\x44\n\x0fParameterRanges\x18\x05 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12\x45\n\x0bTrainingJob\x18\x06 \x01(\x0b\x32\x30.flyteidl.plugins.sagemaker.SagemakerTrainingJob*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') -) - -_HYPERPARAMETERSCALINGTYPE = _descriptor.EnumDescriptor( - name='HyperparameterScalingType', - full_name='flyteidl.plugins.sagemaker.HyperparameterScalingType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='AUTO', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LINEAR', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOGARITHMIC', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REVERSELOGARITHMIC', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=2064, - serialized_end=2154, -) -_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERSCALINGTYPE) - -HyperparameterScalingType = enum_type_wrapper.EnumTypeWrapper(_HYPERPARAMETERSCALINGTYPE) -AUTO = 0 -LINEAR = 1 -LOGARITHMIC = 2 -REVERSELOGARITHMIC = 3 - - -_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE = _descriptor.EnumDescriptor( - name='HPOJobObjectiveType', - full_name='flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='MINIMIZE', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MAXIMIZE', index=1, number=1, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=1704, - serialized_end=1753, -) -_sym_db.RegisterEnumDescriptor(_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE) - - -_CONTINUOUSPARAMETERRANGE = _descriptor.Descriptor( - name='ContinuousParameterRange', - full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='Name', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.Name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='MaxValue', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue', index=1, - number=2, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='MinValue', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue', index=2, - number=3, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ScalingType', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=75, - serialized_end=227, -) - - -_INTEGERPARAMETERRANGE = _descriptor.Descriptor( - name='IntegerParameterRange', - full_name='flyteidl.plugins.sagemaker.IntegerParameterRange', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='Name', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.Name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='MaxValue', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='MinValue', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ScalingType', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=230, - serialized_end=379, -) - - -_CATEGORICALPARAMETERRANGE = _descriptor.Descriptor( - name='CategoricalParameterRange', - full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='Name', full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange.Name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='Values', full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange.Values', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=381, - serialized_end=438, -) - - -_PARAMETERRANGES = _descriptor.Descriptor( - name='ParameterRanges', - full_name='flyteidl.plugins.sagemaker.ParameterRanges', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ContinuousParameterRanges', full_name='flyteidl.plugins.sagemaker.ParameterRanges.ContinuousParameterRanges', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='IntegerParameterRanges', full_name='flyteidl.plugins.sagemaker.ParameterRanges.IntegerParameterRanges', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='CategoricalParameterRanges', full_name='flyteidl.plugins.sagemaker.ParameterRanges.CategoricalParameterRanges', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=441, - serialized_end=721, -) - - -_ALGORITHMSPECIFICATION_METRICDEFINITION = _descriptor.Descriptor( - name='MetricDefinition', - full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='Name', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='Regex', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=919, - serialized_end=966, -) - -_ALGORITHMSPECIFICATION = _descriptor.Descriptor( - name='AlgorithmSpecification', - full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='TrainingImage', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='TrainingInputMode', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='AlgorithmName', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='MetricDefinitions', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ALGORITHMSPECIFICATION_METRICDEFINITION, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=724, - serialized_end=966, -) - - -_RESOURCECONFIG = _descriptor.Descriptor( - name='ResourceConfig', - full_name='flyteidl.plugins.sagemaker.ResourceConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='InstanceType', full_name='flyteidl.plugins.sagemaker.ResourceConfig.InstanceType', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='InstanceCount', full_name='flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='VolumeSizeInGB', full_name='flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='VolumeKmsKeyId', full_name='flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=968, - serialized_end=1077, -) - - -_STOPPINGCONDITION = _descriptor.Descriptor( - name='StoppingCondition', - full_name='flyteidl.plugins.sagemaker.StoppingCondition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='MaxRuntimeInSeconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='MaxWaitTimeInSeconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1079, - serialized_end=1157, -) - - -_VPCCONFIG = _descriptor.Descriptor( - name='VpcConfig', - full_name='flyteidl.plugins.sagemaker.VpcConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='SecurityGroupIds', full_name='flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='Subnets', full_name='flyteidl.plugins.sagemaker.VpcConfig.Subnets', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1159, - serialized_end=1213, -) - - -_SAGEMAKERTRAININGJOB = _descriptor.Descriptor( - name='SagemakerTrainingJob', - full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='Region', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.Region', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='RoleArn', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.RoleArn', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='AlgorithmSpecification', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.AlgorithmSpecification', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ResourceConfig', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.ResourceConfig', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='StoppingCondition', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.StoppingCondition', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='VpcConfig', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.VpcConfig', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='EnableSpotTraining', full_name='flyteidl.plugins.sagemaker.SagemakerTrainingJob.EnableSpotTraining', index=6, - number=7, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1216, - serialized_end=1583, -) - - -_HPOJOBOBJECTIVE = _descriptor.Descriptor( - name='HPOJobObjective', - full_name='flyteidl.plugins.sagemaker.HPOJobObjective', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='Type', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.Type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='MetricName', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.MetricName', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1586, - serialized_end=1753, -) - - -_SAGEMAKERHPOJOB = _descriptor.Descriptor( - name='SagemakerHPOJob', - full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='Strategy', full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob.Strategy', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='Objective', full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob.Objective', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='MaxNumberOfTrainingJobs', full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxNumberOfTrainingJobs', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='MaxParallelTrainingJobs', full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob.MaxParallelTrainingJobs', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ParameterRanges', full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob.ParameterRanges', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='TrainingJob', full_name='flyteidl.plugins.sagemaker.SagemakerHPOJob.TrainingJob', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1756, - serialized_end=2062, -) - -_CONTINUOUSPARAMETERRANGE.fields_by_name['ScalingType'].enum_type = _HYPERPARAMETERSCALINGTYPE -_INTEGERPARAMETERRANGE.fields_by_name['ScalingType'].enum_type = _HYPERPARAMETERSCALINGTYPE -_PARAMETERRANGES.fields_by_name['ContinuousParameterRanges'].message_type = _CONTINUOUSPARAMETERRANGE -_PARAMETERRANGES.fields_by_name['IntegerParameterRanges'].message_type = _INTEGERPARAMETERRANGE -_PARAMETERRANGES.fields_by_name['CategoricalParameterRanges'].message_type = _CATEGORICALPARAMETERRANGE -_ALGORITHMSPECIFICATION_METRICDEFINITION.containing_type = _ALGORITHMSPECIFICATION -_ALGORITHMSPECIFICATION.fields_by_name['MetricDefinitions'].message_type = _ALGORITHMSPECIFICATION_METRICDEFINITION -_SAGEMAKERTRAININGJOB.fields_by_name['AlgorithmSpecification'].message_type = _ALGORITHMSPECIFICATION -_SAGEMAKERTRAININGJOB.fields_by_name['ResourceConfig'].message_type = _RESOURCECONFIG -_SAGEMAKERTRAININGJOB.fields_by_name['StoppingCondition'].message_type = _STOPPINGCONDITION -_SAGEMAKERTRAININGJOB.fields_by_name['VpcConfig'].message_type = _VPCCONFIG -_HPOJOBOBJECTIVE.fields_by_name['Type'].enum_type = _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE -_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE.containing_type = _HPOJOBOBJECTIVE -_SAGEMAKERHPOJOB.fields_by_name['Objective'].message_type = _HPOJOBOBJECTIVE -_SAGEMAKERHPOJOB.fields_by_name['ParameterRanges'].message_type = _PARAMETERRANGES -_SAGEMAKERHPOJOB.fields_by_name['TrainingJob'].message_type = _SAGEMAKERTRAININGJOB -DESCRIPTOR.message_types_by_name['ContinuousParameterRange'] = _CONTINUOUSPARAMETERRANGE -DESCRIPTOR.message_types_by_name['IntegerParameterRange'] = _INTEGERPARAMETERRANGE -DESCRIPTOR.message_types_by_name['CategoricalParameterRange'] = _CATEGORICALPARAMETERRANGE -DESCRIPTOR.message_types_by_name['ParameterRanges'] = _PARAMETERRANGES -DESCRIPTOR.message_types_by_name['AlgorithmSpecification'] = _ALGORITHMSPECIFICATION -DESCRIPTOR.message_types_by_name['ResourceConfig'] = _RESOURCECONFIG -DESCRIPTOR.message_types_by_name['StoppingCondition'] = _STOPPINGCONDITION -DESCRIPTOR.message_types_by_name['VpcConfig'] = _VPCCONFIG -DESCRIPTOR.message_types_by_name['SagemakerTrainingJob'] = _SAGEMAKERTRAININGJOB -DESCRIPTOR.message_types_by_name['HPOJobObjective'] = _HPOJOBOBJECTIVE -DESCRIPTOR.message_types_by_name['SagemakerHPOJob'] = _SAGEMAKERHPOJOB -DESCRIPTOR.enum_types_by_name['HyperparameterScalingType'] = _HYPERPARAMETERSCALINGTYPE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ContinuousParameterRange = _reflection.GeneratedProtocolMessageType('ContinuousParameterRange', (_message.Message,), dict( - DESCRIPTOR = _CONTINUOUSPARAMETERRANGE, - __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) - )) -_sym_db.RegisterMessage(ContinuousParameterRange) - -IntegerParameterRange = _reflection.GeneratedProtocolMessageType('IntegerParameterRange', (_message.Message,), dict( - DESCRIPTOR = _INTEGERPARAMETERRANGE, - __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) - )) -_sym_db.RegisterMessage(IntegerParameterRange) - -CategoricalParameterRange = _reflection.GeneratedProtocolMessageType('CategoricalParameterRange', (_message.Message,), dict( - DESCRIPTOR = _CATEGORICALPARAMETERRANGE, - __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) - )) -_sym_db.RegisterMessage(CategoricalParameterRange) - -ParameterRanges = _reflection.GeneratedProtocolMessageType('ParameterRanges', (_message.Message,), dict( - DESCRIPTOR = _PARAMETERRANGES, - __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) - )) -_sym_db.RegisterMessage(ParameterRanges) - -AlgorithmSpecification = _reflection.GeneratedProtocolMessageType('AlgorithmSpecification', (_message.Message,), dict( - - MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict( - DESCRIPTOR = _ALGORITHMSPECIFICATION_METRICDEFINITION, - __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - )) - , - DESCRIPTOR = _ALGORITHMSPECIFICATION, - __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) - )) -_sym_db.RegisterMessage(AlgorithmSpecification) -_sym_db.RegisterMessage(AlgorithmSpecification.MetricDefinition) - -ResourceConfig = _reflection.GeneratedProtocolMessageType('ResourceConfig', (_message.Message,), dict( - DESCRIPTOR = _RESOURCECONFIG, - __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ResourceConfig) - )) -_sym_db.RegisterMessage(ResourceConfig) - -StoppingCondition = _reflection.GeneratedProtocolMessageType('StoppingCondition', (_message.Message,), dict( - DESCRIPTOR = _STOPPINGCONDITION, - __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) - )) -_sym_db.RegisterMessage(StoppingCondition) - -VpcConfig = _reflection.GeneratedProtocolMessageType('VpcConfig', (_message.Message,), dict( - DESCRIPTOR = _VPCCONFIG, - __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.VpcConfig) - )) -_sym_db.RegisterMessage(VpcConfig) - -SagemakerTrainingJob = _reflection.GeneratedProtocolMessageType('SagemakerTrainingJob', (_message.Message,), dict( - DESCRIPTOR = _SAGEMAKERTRAININGJOB, - __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.SagemakerTrainingJob) - )) -_sym_db.RegisterMessage(SagemakerTrainingJob) - -HPOJobObjective = _reflection.GeneratedProtocolMessageType('HPOJobObjective', (_message.Message,), dict( - DESCRIPTOR = _HPOJOBOBJECTIVE, - __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobObjective) - )) -_sym_db.RegisterMessage(HPOJobObjective) - -SagemakerHPOJob = _reflection.GeneratedProtocolMessageType('SagemakerHPOJob', (_message.Message,), dict( - DESCRIPTOR = _SAGEMAKERHPOJOB, - __module__ = 'flyteidl.plugins.sagemaker.sagemaker_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.SagemakerHPOJob) - )) -_sym_db.RegisterMessage(SagemakerHPOJob) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py new file mode 100644 index 000000000..dac613599 --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py @@ -0,0 +1,376 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/sagemaker/trainingjob.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/plugins/sagemaker/trainingjob.proto', + package='flyteidl.plugins.sagemaker', + syntax='proto3', + serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), + serialized_pb=_b('\n,flyteidl/plugins/sagemaker/trainingjob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xf2\x01\n\x16\x41lgorithmSpecification\x12\x15\n\rTrainingImage\x18\x01 \x01(\t\x12\x19\n\x11TrainingInputMode\x18\x02 \x01(\t\x12\x15\n\rAlgorithmName\x18\x03 \x01(\t\x12^\n\x11MetricDefinitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\r\n\x05Regex\x18\x02 \x01(\t\"m\n\x0eResourceConfig\x12\x14\n\x0cInstanceType\x18\x01 \x01(\t\x12\x15\n\rInstanceCount\x18\x02 \x01(\x03\x12\x16\n\x0eVolumeSizeInGB\x18\x03 \x01(\x03\x12\x16\n\x0eVolumeKmsKeyId\x18\x04 \x01(\t\"N\n\x11StoppingCondition\x12\x1b\n\x13MaxRuntimeInSeconds\x18\x01 \x01(\x03\x12\x1c\n\x14MaxWaitTimeInSeconds\x18\x02 \x01(\x03\"6\n\tVpcConfig\x12\x18\n\x10SecurityGroupIds\x18\x01 \x03(\t\x12\x0f\n\x07Subnets\x18\x02 \x03(\t\"\xe6\x02\n\x0bTrainingJob\x12\x0e\n\x06Region\x18\x01 \x01(\t\x12\x0f\n\x07RoleArn\x18\x02 \x01(\t\x12R\n\x16\x41lgorithmSpecification\x18\x03 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12\x42\n\x0eResourceConfig\x18\x04 \x01(\x0b\x32*.flyteidl.plugins.sagemaker.ResourceConfig\x12H\n\x11StoppingCondition\x18\x05 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.StoppingCondition\x12\x38\n\tVpcConfig\x18\x06 \x01(\x0b\x32%.flyteidl.plugins.sagemaker.VpcConfig\x12\x1a\n\x12\x45nableSpotTraining\x18\x07 \x01(\x08\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') +) + + + + +_ALGORITHMSPECIFICATION_METRICDEFINITION = _descriptor.Descriptor( + name='MetricDefinition', + full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='Name', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='Regex', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=272, + serialized_end=319, +) + +_ALGORITHMSPECIFICATION = _descriptor.Descriptor( + name='AlgorithmSpecification', + full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='TrainingImage', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='TrainingInputMode', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='AlgorithmName', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MetricDefinitions', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_ALGORITHMSPECIFICATION_METRICDEFINITION, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=77, + serialized_end=319, +) + + +_RESOURCECONFIG = _descriptor.Descriptor( + name='ResourceConfig', + full_name='flyteidl.plugins.sagemaker.ResourceConfig', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='InstanceType', full_name='flyteidl.plugins.sagemaker.ResourceConfig.InstanceType', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='InstanceCount', full_name='flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='VolumeSizeInGB', full_name='flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='VolumeKmsKeyId', full_name='flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=321, + serialized_end=430, +) + + +_STOPPINGCONDITION = _descriptor.Descriptor( + name='StoppingCondition', + full_name='flyteidl.plugins.sagemaker.StoppingCondition', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='MaxRuntimeInSeconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='MaxWaitTimeInSeconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=432, + serialized_end=510, +) + + +_VPCCONFIG = _descriptor.Descriptor( + name='VpcConfig', + full_name='flyteidl.plugins.sagemaker.VpcConfig', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='SecurityGroupIds', full_name='flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds', index=0, + number=1, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='Subnets', full_name='flyteidl.plugins.sagemaker.VpcConfig.Subnets', index=1, + number=2, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=512, + serialized_end=566, +) + + +_TRAININGJOB = _descriptor.Descriptor( + name='TrainingJob', + full_name='flyteidl.plugins.sagemaker.TrainingJob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='Region', full_name='flyteidl.plugins.sagemaker.TrainingJob.Region', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='RoleArn', full_name='flyteidl.plugins.sagemaker.TrainingJob.RoleArn', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='AlgorithmSpecification', full_name='flyteidl.plugins.sagemaker.TrainingJob.AlgorithmSpecification', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ResourceConfig', full_name='flyteidl.plugins.sagemaker.TrainingJob.ResourceConfig', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='StoppingCondition', full_name='flyteidl.plugins.sagemaker.TrainingJob.StoppingCondition', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='VpcConfig', full_name='flyteidl.plugins.sagemaker.TrainingJob.VpcConfig', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='EnableSpotTraining', full_name='flyteidl.plugins.sagemaker.TrainingJob.EnableSpotTraining', index=6, + number=7, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=569, + serialized_end=927, +) + +_ALGORITHMSPECIFICATION_METRICDEFINITION.containing_type = _ALGORITHMSPECIFICATION +_ALGORITHMSPECIFICATION.fields_by_name['MetricDefinitions'].message_type = _ALGORITHMSPECIFICATION_METRICDEFINITION +_TRAININGJOB.fields_by_name['AlgorithmSpecification'].message_type = _ALGORITHMSPECIFICATION +_TRAININGJOB.fields_by_name['ResourceConfig'].message_type = _RESOURCECONFIG +_TRAININGJOB.fields_by_name['StoppingCondition'].message_type = _STOPPINGCONDITION +_TRAININGJOB.fields_by_name['VpcConfig'].message_type = _VPCCONFIG +DESCRIPTOR.message_types_by_name['AlgorithmSpecification'] = _ALGORITHMSPECIFICATION +DESCRIPTOR.message_types_by_name['ResourceConfig'] = _RESOURCECONFIG +DESCRIPTOR.message_types_by_name['StoppingCondition'] = _STOPPINGCONDITION +DESCRIPTOR.message_types_by_name['VpcConfig'] = _VPCCONFIG +DESCRIPTOR.message_types_by_name['TrainingJob'] = _TRAININGJOB +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AlgorithmSpecification = _reflection.GeneratedProtocolMessageType('AlgorithmSpecification', (_message.Message,), dict( + + MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict( + DESCRIPTOR = _ALGORITHMSPECIFICATION_METRICDEFINITION, + __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + )) + , + DESCRIPTOR = _ALGORITHMSPECIFICATION, + __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) + )) +_sym_db.RegisterMessage(AlgorithmSpecification) +_sym_db.RegisterMessage(AlgorithmSpecification.MetricDefinition) + +ResourceConfig = _reflection.GeneratedProtocolMessageType('ResourceConfig', (_message.Message,), dict( + DESCRIPTOR = _RESOURCECONFIG, + __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ResourceConfig) + )) +_sym_db.RegisterMessage(ResourceConfig) + +StoppingCondition = _reflection.GeneratedProtocolMessageType('StoppingCondition', (_message.Message,), dict( + DESCRIPTOR = _STOPPINGCONDITION, + __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) + )) +_sym_db.RegisterMessage(StoppingCondition) + +VpcConfig = _reflection.GeneratedProtocolMessageType('VpcConfig', (_message.Message,), dict( + DESCRIPTOR = _VPCCONFIG, + __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.VpcConfig) + )) +_sym_db.RegisterMessage(VpcConfig) + +TrainingJob = _reflection.GeneratedProtocolMessageType('TrainingJob', (_message.Message,), dict( + DESCRIPTOR = _TRAININGJOB, + __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) + )) +_sym_db.RegisterMessage(TrainingJob) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/protos/flyteidl/plugins/sagemaker/hpojob.proto b/protos/flyteidl/plugins/sagemaker/hpojob.proto new file mode 100644 index 000000000..63dd10186 --- /dev/null +++ b/protos/flyteidl/plugins/sagemaker/hpojob.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; + +package flyteidl.plugins.sagemaker; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; + +import "flyteidl/plugins/sagemaker/parameterranges.proto"; +import "flyteidl/plugins/sagemaker/trainingjob.proto"; + +message HPOJobObjective { + enum HPOJobObjectiveType { + MINIMIZE = 0; + MAXIMIZE = 1; + } + + HPOJobObjectiveType Type = 1; + string MetricName = 2; +} + +message HPOJob { + string Strategy = 1; // will impact output, should be in input, not custom + HPOJobObjective Objective = 2; // // will impact output, should be in input, not custom + int64 MaxNumberOfTrainingJobs = 3; + int64 MaxParallelTrainingJobs = 4; + ParameterRanges ParameterRanges = 5; // will impact output, should be in input, not custom + TrainingJob TrainingJob = 6; // TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! +} + + + diff --git a/protos/flyteidl/plugins/sagemaker/parameterranges.proto b/protos/flyteidl/plugins/sagemaker/parameterranges.proto new file mode 100644 index 000000000..923495244 --- /dev/null +++ b/protos/flyteidl/plugins/sagemaker/parameterranges.proto @@ -0,0 +1,40 @@ +syntax = "proto3"; + +package flyteidl.plugins.sagemaker; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; + +enum HyperparameterScalingType { + AUTO = 0; + LINEAR = 1; + LOGARITHMIC = 2; + REVERSELOGARITHMIC = 3; +} + +message ContinuousParameterRange { + double MaxValue = 1; + double MinValue = 2; + HyperparameterScalingType ScalingType = 3; +} + +message IntegerParameterRange { + float MaxValue = 1; + float MinValue = 2; + HyperparameterScalingType ScalingType = 3; +} + +message CategoricalParameterRange { + repeated string Values = 1; +} + +message ParameterRangeOneOf { + oneof ParameterRangeTypes { + ContinuousParameterRange ContinuousParameterRange = 1; + IntegerParameterRange IntegerParameterRange = 2; + CategoricalParameterRange CategoricalParameterRange = 3; + } +} + +message ParameterRanges { + map ParameterRangeMap = 1; +} \ No newline at end of file diff --git a/protos/flyteidl/plugins/sagemaker/sagemaker.proto b/protos/flyteidl/plugins/sagemaker/sagemaker.proto deleted file mode 100644 index 692efff43..000000000 --- a/protos/flyteidl/plugins/sagemaker/sagemaker.proto +++ /dev/null @@ -1,98 +0,0 @@ -syntax = "proto3"; - -package flyteidl.plugins.sagemaker; - -option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; - -enum HyperparameterScalingType { - AUTO = 0; - LINEAR = 1; - LOGARITHMIC = 2; - REVERSELOGARITHMIC = 3; -} - -message ContinuousParameterRange { - string Name = 1; - double MaxValue = 2; - double MinValue = 3; - HyperparameterScalingType ScalingType = 4; -} - -message IntegerParameterRange { - string Name = 1; - float MaxValue = 2; - float MinValue = 3; - HyperparameterScalingType ScalingType = 4; -} - -message CategoricalParameterRange { - string Name = 1; - repeated string Values = 2; -} - -message ParameterRanges { - repeated ContinuousParameterRange ContinuousParameterRanges = 1; - repeated IntegerParameterRange IntegerParameterRanges = 2; - repeated CategoricalParameterRange CategoricalParameterRanges = 3; -} - -message AlgorithmSpecification { - string TrainingImage = 1; - string TrainingInputMode = 2; - string AlgorithmName = 3; - - message MetricDefinition { - string Name = 1; - string Regex = 2; - } - repeated MetricDefinition MetricDefinitions = 4; -} - -message ResourceConfig { - string InstanceType = 1; - int64 InstanceCount = 2; - int64 VolumeSizeInGB = 3; - string VolumeKmsKeyId = 4; -} - -message StoppingCondition { - int64 MaxRuntimeInSeconds = 1; - int64 MaxWaitTimeInSeconds = 2; -} - -message VpcConfig { - repeated string SecurityGroupIds = 1; - repeated string Subnets = 2; -} - -message SagemakerTrainingJob { - string Region = 1; - string RoleArn = 2; - AlgorithmSpecification AlgorithmSpecification = 3; - ResourceConfig ResourceConfig = 4; - StoppingCondition StoppingCondition = 5; - VpcConfig VpcConfig = 6; - bool EnableSpotTraining = 7; -} - -message HPOJobObjective { - enum HPOJobObjectiveType { - MINIMIZE = 0; - MAXIMIZE = 1; - } - - HPOJobObjectiveType Type = 1; - string MetricName = 2; -} - -message SagemakerHPOJob { - string Strategy = 1; - HPOJobObjective Objective = 2; - int64 MaxNumberOfTrainingJobs = 3; - int64 MaxParallelTrainingJobs = 4; - ParameterRanges ParameterRanges = 5; - SagemakerTrainingJob TrainingJob = 6; -} - - - diff --git a/protos/flyteidl/plugins/sagemaker/trainingjob.proto b/protos/flyteidl/plugins/sagemaker/trainingjob.proto new file mode 100644 index 000000000..b44b38f48 --- /dev/null +++ b/protos/flyteidl/plugins/sagemaker/trainingjob.proto @@ -0,0 +1,45 @@ +syntax = "proto3"; + +package flyteidl.plugins.sagemaker; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; + + +message AlgorithmSpecification { + string TrainingImage = 1; // TODO: will this change output? should it be an input instead of a part of the task spec? + string TrainingInputMode = 2; + string AlgorithmName = 3; // TODO: will this change output? should it be an input instead of a part of the task spec? + + message MetricDefinition { + string Name = 1; + string Regex = 2; + } + repeated MetricDefinition MetricDefinitions = 4; +} + +message ResourceConfig { + string InstanceType = 1; + int64 InstanceCount = 2; + int64 VolumeSizeInGB = 3; + string VolumeKmsKeyId = 4; +} + +message StoppingCondition { + int64 MaxRuntimeInSeconds = 1; + int64 MaxWaitTimeInSeconds = 2; +} + +message VpcConfig { + repeated string SecurityGroupIds = 1; + repeated string Subnets = 2; +} + +message TrainingJob { + string Region = 1; + string RoleArn = 2; + AlgorithmSpecification AlgorithmSpecification = 3; + ResourceConfig ResourceConfig = 4; + StoppingCondition StoppingCondition = 5; + VpcConfig VpcConfig = 6; + bool EnableSpotTraining = 7; +} \ No newline at end of file From 56d3adbcb188e2406ae72d4d3d3332ddd8888fdd Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Tue, 2 Jun 2020 10:10:57 -0700 Subject: [PATCH 06/64] cleaning hpojob protos. update protocgenerator image to a master image --- .../flyteidl/plugins/sagemaker/hpojob.pb.cc | 310 +------ .../flyteidl/plugins/sagemaker/hpojob.pb.h | 202 +---- .../flyteidl/plugins/sagemaker/hpojob.pb.go | 81 +- .../plugins/sagemaker/hpojob.pb.validate.go | 22 - .../flyteidl/plugins/sagemaker/Hpojob.java | 773 +----------------- .../plugins/sagemaker/hpojob.proto.rst | 18 - .../flyteidl/plugins/sagemaker/hpojob_pb2.py | 39 +- generate_protos.sh | 3 +- .../flyteidl/plugins/sagemaker/hpojob.proto | 12 +- 9 files changed, 134 insertions(+), 1326 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc index cbd559ded..f364f0b55 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc @@ -16,8 +16,6 @@ // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; namespace flyteidl { namespace plugins { @@ -58,10 +56,8 @@ static void InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() ::flyteidl::plugins::sagemaker::HPOJob::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<3> scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto}, { - &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base, - &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base, +::google::protobuf::internal::SCCInfo<1> scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto}, { &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base,}}; void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { @@ -86,11 +82,8 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhp ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, strategy_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, objective_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, maxnumberoftrainingjobs_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, maxparalleltrainingjobs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, parameterranges_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, trainingjob_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -118,21 +111,17 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2ep "\?.flyteidl.plugins.sagemaker.HPOJobObjec" "tive.HPOJobObjectiveType\022\022\n\nMetricName\030\002" " \001(\t\"1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE\020" - "\000\022\014\n\010MAXIMIZE\020\001\"\240\002\n\006HPOJob\022\020\n\010Strategy\030\001" - " \001(\t\022>\n\tObjective\030\002 \001(\0132+.flyteidl.plugi" - "ns.sagemaker.HPOJobObjective\022\037\n\027MaxNumbe" - "rOfTrainingJobs\030\003 \001(\003\022\037\n\027MaxParallelTrai" - "ningJobs\030\004 \001(\003\022D\n\017ParameterRanges\030\005 \001(\0132" - "+.flyteidl.plugins.sagemaker.ParameterRa" - "nges\022<\n\013TrainingJob\030\006 \001(\0132\'.flyteidl.plu" - "gins.sagemaker.TrainingJobB5Z3github.com" - "/lyft/flyteidl/gen/pb-go/flyteidl/plugin" - "sb\006proto3" + "\000\022\014\n\010MAXIMIZE\020\001\"\210\001\n\006HPOJob\022\037\n\027MaxNumberO" + "fTrainingJobs\030\001 \001(\003\022\037\n\027MaxParallelTraini" + "ngJobs\030\002 \001(\003\022<\n\013TrainingJob\030\003 \001(\0132\'.flyt" + "eidl.plugins.sagemaker.TrainingJobB5Z3gi" + "thub.com/lyft/flyteidl/gen/pb-go/flyteid" + "l/pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, - "flyteidl/plugins/sagemaker/hpojob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 689, + "flyteidl/plugins/sagemaker/hpojob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 537, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { @@ -519,38 +508,18 @@ ::google::protobuf::Metadata HPOJobObjective::GetMetadata() const { // =================================================================== void HPOJob::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_HPOJob_default_instance_._instance.get_mutable()->objective_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective*>( - ::flyteidl::plugins::sagemaker::HPOJobObjective::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_HPOJob_default_instance_._instance.get_mutable()->parameterranges_ = const_cast< ::flyteidl::plugins::sagemaker::ParameterRanges*>( - ::flyteidl::plugins::sagemaker::ParameterRanges::internal_default_instance()); ::flyteidl::plugins::sagemaker::_HPOJob_default_instance_._instance.get_mutable()->trainingjob_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJob*>( ::flyteidl::plugins::sagemaker::TrainingJob::internal_default_instance()); } class HPOJob::HasBitSetters { public: - static const ::flyteidl::plugins::sagemaker::HPOJobObjective& objective(const HPOJob* msg); - static const ::flyteidl::plugins::sagemaker::ParameterRanges& parameterranges(const HPOJob* msg); static const ::flyteidl::plugins::sagemaker::TrainingJob& trainingjob(const HPOJob* msg); }; -const ::flyteidl::plugins::sagemaker::HPOJobObjective& -HPOJob::HasBitSetters::objective(const HPOJob* msg) { - return *msg->objective_; -} -const ::flyteidl::plugins::sagemaker::ParameterRanges& -HPOJob::HasBitSetters::parameterranges(const HPOJob* msg) { - return *msg->parameterranges_; -} const ::flyteidl::plugins::sagemaker::TrainingJob& HPOJob::HasBitSetters::trainingjob(const HPOJob* msg) { return *msg->trainingjob_; } -void HPOJob::clear_parameterranges() { - if (GetArenaNoVirtual() == nullptr && parameterranges_ != nullptr) { - delete parameterranges_; - } - parameterranges_ = nullptr; -} void HPOJob::clear_trainingjob() { if (GetArenaNoVirtual() == nullptr && trainingjob_ != nullptr) { delete trainingjob_; @@ -558,11 +527,8 @@ void HPOJob::clear_trainingjob() { trainingjob_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJob::kStrategyFieldNumber; -const int HPOJob::kObjectiveFieldNumber; const int HPOJob::kMaxNumberOfTrainingJobsFieldNumber; const int HPOJob::kMaxParallelTrainingJobsFieldNumber; -const int HPOJob::kParameterRangesFieldNumber; const int HPOJob::kTrainingJobFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 @@ -575,20 +541,6 @@ HPOJob::HPOJob(const HPOJob& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - strategy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.strategy().size() > 0) { - strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_); - } - if (from.has_objective()) { - objective_ = new ::flyteidl::plugins::sagemaker::HPOJobObjective(*from.objective_); - } else { - objective_ = nullptr; - } - if (from.has_parameterranges()) { - parameterranges_ = new ::flyteidl::plugins::sagemaker::ParameterRanges(*from.parameterranges_); - } else { - parameterranges_ = nullptr; - } if (from.has_trainingjob()) { trainingjob_ = new ::flyteidl::plugins::sagemaker::TrainingJob(*from.trainingjob_); } else { @@ -603,10 +555,9 @@ HPOJob::HPOJob(const HPOJob& from) void HPOJob::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); - strategy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&objective_, 0, static_cast( + ::memset(&trainingjob_, 0, static_cast( reinterpret_cast(&maxparalleltrainingjobs_) - - reinterpret_cast(&objective_)) + sizeof(maxparalleltrainingjobs_)); + reinterpret_cast(&trainingjob_)) + sizeof(maxparalleltrainingjobs_)); } HPOJob::~HPOJob() { @@ -615,9 +566,6 @@ HPOJob::~HPOJob() { } void HPOJob::SharedDtor() { - strategy_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete objective_; - if (this != internal_default_instance()) delete parameterranges_; if (this != internal_default_instance()) delete trainingjob_; } @@ -636,15 +584,6 @@ void HPOJob::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - strategy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && objective_ != nullptr) { - delete objective_; - } - objective_ = nullptr; - if (GetArenaNoVirtual() == nullptr && parameterranges_ != nullptr) { - delete parameterranges_; - } - parameterranges_ = nullptr; if (GetArenaNoVirtual() == nullptr && trainingjob_ != nullptr) { delete trainingjob_; } @@ -668,65 +607,23 @@ const char* HPOJob::_InternalParse(const char* begin, const char* end, void* obj ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string Strategy = 1; + // int64 MaxNumberOfTrainingJobs = 1; case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HPOJob.Strategy"); - object = msg->mutable_strategy(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::HPOJobObjective::_InternalParse; - object = msg->mutable_objective(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // int64 MaxNumberOfTrainingJobs = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; msg->set_maxnumberoftrainingjobs(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } - // int64 MaxParallelTrainingJobs = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + // int64 MaxParallelTrainingJobs = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; msg->set_maxparalleltrainingjobs(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } - // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::ParameterRanges::_InternalParse; - object = msg->mutable_parameterranges(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJob::_InternalParse; @@ -752,10 +649,6 @@ const char* HPOJob::_InternalParse(const char* begin, const char* end, void* obj } // switch } // while return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); @@ -771,35 +664,9 @@ bool HPOJob::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string Strategy = 1; + // int64 MaxNumberOfTrainingJobs = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_strategy())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->strategy().data(), static_cast(this->strategy().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.HPOJob.Strategy")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_objective())); - } else { - goto handle_unusual; - } - break; - } - - // int64 MaxNumberOfTrainingJobs = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( @@ -810,9 +677,9 @@ bool HPOJob::MergePartialFromCodedStream( break; } - // int64 MaxParallelTrainingJobs = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + // int64 MaxParallelTrainingJobs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( @@ -823,20 +690,9 @@ bool HPOJob::MergePartialFromCodedStream( break; } - // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_parameterranges())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_trainingjob())); } else { @@ -872,42 +728,20 @@ void HPOJob::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string Strategy = 1; - if (this->strategy().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->strategy().data(), static_cast(this->strategy().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.HPOJob.Strategy"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->strategy(), output); - } - - // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - if (this->has_objective()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::objective(this), output); - } - - // int64 MaxNumberOfTrainingJobs = 3; + // int64 MaxNumberOfTrainingJobs = 1; if (this->maxnumberoftrainingjobs() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->maxnumberoftrainingjobs(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->maxnumberoftrainingjobs(), output); } - // int64 MaxParallelTrainingJobs = 4; + // int64 MaxParallelTrainingJobs = 2; if (this->maxparalleltrainingjobs() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->maxparalleltrainingjobs(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->maxparalleltrainingjobs(), output); } - // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - if (this->has_parameterranges()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::parameterranges(this), output); - } - - // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; if (this->has_trainingjob()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::trainingjob(this), output); + 3, HasBitSetters::trainingjob(this), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -923,46 +757,21 @@ ::google::protobuf::uint8* HPOJob::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string Strategy = 1; - if (this->strategy().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->strategy().data(), static_cast(this->strategy().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.HPOJob.Strategy"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->strategy(), target); - } - - // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - if (this->has_objective()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::objective(this), target); - } - - // int64 MaxNumberOfTrainingJobs = 3; + // int64 MaxNumberOfTrainingJobs = 1; if (this->maxnumberoftrainingjobs() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->maxnumberoftrainingjobs(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->maxnumberoftrainingjobs(), target); } - // int64 MaxParallelTrainingJobs = 4; + // int64 MaxParallelTrainingJobs = 2; if (this->maxparalleltrainingjobs() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->maxparalleltrainingjobs(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->maxparalleltrainingjobs(), target); } - // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - if (this->has_parameterranges()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::parameterranges(this), target); - } - - // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; if (this->has_trainingjob()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 6, HasBitSetters::trainingjob(this), target); + 3, HasBitSetters::trainingjob(this), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -986,42 +795,21 @@ size_t HPOJob::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string Strategy = 1; - if (this->strategy().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->strategy()); - } - - // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - if (this->has_objective()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *objective_); - } - - // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - if (this->has_parameterranges()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *parameterranges_); - } - - // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; if (this->has_trainingjob()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *trainingjob_); } - // int64 MaxNumberOfTrainingJobs = 3; + // int64 MaxNumberOfTrainingJobs = 1; if (this->maxnumberoftrainingjobs() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->maxnumberoftrainingjobs()); } - // int64 MaxParallelTrainingJobs = 4; + // int64 MaxParallelTrainingJobs = 2; if (this->maxparalleltrainingjobs() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( @@ -1055,16 +843,6 @@ void HPOJob::MergeFrom(const HPOJob& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.strategy().size() > 0) { - - strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_); - } - if (from.has_objective()) { - mutable_objective()->::flyteidl::plugins::sagemaker::HPOJobObjective::MergeFrom(from.objective()); - } - if (from.has_parameterranges()) { - mutable_parameterranges()->::flyteidl::plugins::sagemaker::ParameterRanges::MergeFrom(from.parameterranges()); - } if (from.has_trainingjob()) { mutable_trainingjob()->::flyteidl::plugins::sagemaker::TrainingJob::MergeFrom(from.trainingjob()); } @@ -1101,10 +879,6 @@ void HPOJob::Swap(HPOJob* other) { void HPOJob::InternalSwap(HPOJob* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - strategy_.Swap(&other->strategy_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(objective_, other->objective_); - swap(parameterranges_, other->parameterranges_); swap(trainingjob_, other->trainingjob_); swap(maxnumberoftrainingjobs_, other->maxnumberoftrainingjobs_); swap(maxparalleltrainingjobs_, other->maxparalleltrainingjobs_); diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h index 9572d4762..35bda0ece 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h @@ -344,56 +344,24 @@ class HPOJob final : // accessors ------------------------------------------------------- - // string Strategy = 1; - void clear_strategy(); - static const int kStrategyFieldNumber = 1; - const ::std::string& strategy() const; - void set_strategy(const ::std::string& value); - #if LANG_CXX11 - void set_strategy(::std::string&& value); - #endif - void set_strategy(const char* value); - void set_strategy(const char* value, size_t size); - ::std::string* mutable_strategy(); - ::std::string* release_strategy(); - void set_allocated_strategy(::std::string* strategy); - - // .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - bool has_objective() const; - void clear_objective(); - static const int kObjectiveFieldNumber = 2; - const ::flyteidl::plugins::sagemaker::HPOJobObjective& objective() const; - ::flyteidl::plugins::sagemaker::HPOJobObjective* release_objective(); - ::flyteidl::plugins::sagemaker::HPOJobObjective* mutable_objective(); - void set_allocated_objective(::flyteidl::plugins::sagemaker::HPOJobObjective* objective); - - // .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - bool has_parameterranges() const; - void clear_parameterranges(); - static const int kParameterRangesFieldNumber = 5; - const ::flyteidl::plugins::sagemaker::ParameterRanges& parameterranges() const; - ::flyteidl::plugins::sagemaker::ParameterRanges* release_parameterranges(); - ::flyteidl::plugins::sagemaker::ParameterRanges* mutable_parameterranges(); - void set_allocated_parameterranges(::flyteidl::plugins::sagemaker::ParameterRanges* parameterranges); - - // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; bool has_trainingjob() const; void clear_trainingjob(); - static const int kTrainingJobFieldNumber = 6; + static const int kTrainingJobFieldNumber = 3; const ::flyteidl::plugins::sagemaker::TrainingJob& trainingjob() const; ::flyteidl::plugins::sagemaker::TrainingJob* release_trainingjob(); ::flyteidl::plugins::sagemaker::TrainingJob* mutable_trainingjob(); void set_allocated_trainingjob(::flyteidl::plugins::sagemaker::TrainingJob* trainingjob); - // int64 MaxNumberOfTrainingJobs = 3; + // int64 MaxNumberOfTrainingJobs = 1; void clear_maxnumberoftrainingjobs(); - static const int kMaxNumberOfTrainingJobsFieldNumber = 3; + static const int kMaxNumberOfTrainingJobsFieldNumber = 1; ::google::protobuf::int64 maxnumberoftrainingjobs() const; void set_maxnumberoftrainingjobs(::google::protobuf::int64 value); - // int64 MaxParallelTrainingJobs = 4; + // int64 MaxParallelTrainingJobs = 2; void clear_maxparalleltrainingjobs(); - static const int kMaxParallelTrainingJobsFieldNumber = 4; + static const int kMaxParallelTrainingJobsFieldNumber = 2; ::google::protobuf::int64 maxparalleltrainingjobs() const; void set_maxparalleltrainingjobs(::google::protobuf::int64 value); @@ -402,9 +370,6 @@ class HPOJob final : class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr strategy_; - ::flyteidl::plugins::sagemaker::HPOJobObjective* objective_; - ::flyteidl::plugins::sagemaker::ParameterRanges* parameterranges_; ::flyteidl::plugins::sagemaker::TrainingJob* trainingjob_; ::google::protobuf::int64 maxnumberoftrainingjobs_; ::google::protobuf::int64 maxparalleltrainingjobs_; @@ -493,111 +458,7 @@ inline void HPOJobObjective::set_allocated_metricname(::std::string* metricname) // HPOJob -// string Strategy = 1; -inline void HPOJob::clear_strategy() { - strategy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& HPOJob::strategy() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.Strategy) - return strategy_.GetNoArena(); -} -inline void HPOJob::set_strategy(const ::std::string& value) { - - strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.Strategy) -} -#if LANG_CXX11 -inline void HPOJob::set_strategy(::std::string&& value) { - - strategy_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.HPOJob.Strategy) -} -#endif -inline void HPOJob::set_strategy(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.HPOJob.Strategy) -} -inline void HPOJob::set_strategy(const char* value, size_t size) { - - strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.HPOJob.Strategy) -} -inline ::std::string* HPOJob::mutable_strategy() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.Strategy) - return strategy_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* HPOJob::release_strategy() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.Strategy) - - return strategy_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void HPOJob::set_allocated_strategy(::std::string* strategy) { - if (strategy != nullptr) { - - } else { - - } - strategy_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), strategy); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.Strategy) -} - -// .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; -inline bool HPOJob::has_objective() const { - return this != internal_default_instance() && objective_ != nullptr; -} -inline void HPOJob::clear_objective() { - if (GetArenaNoVirtual() == nullptr && objective_ != nullptr) { - delete objective_; - } - objective_ = nullptr; -} -inline const ::flyteidl::plugins::sagemaker::HPOJobObjective& HPOJob::objective() const { - const ::flyteidl::plugins::sagemaker::HPOJobObjective* p = objective_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.Objective) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_HPOJobObjective_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::HPOJobObjective* HPOJob::release_objective() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.Objective) - - ::flyteidl::plugins::sagemaker::HPOJobObjective* temp = objective_; - objective_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::HPOJobObjective* HPOJob::mutable_objective() { - - if (objective_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobObjective>(GetArenaNoVirtual()); - objective_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.Objective) - return objective_; -} -inline void HPOJob::set_allocated_objective(::flyteidl::plugins::sagemaker::HPOJobObjective* objective) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete objective_; - } - if (objective) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - objective = ::google::protobuf::internal::GetOwnedMessage( - message_arena, objective, submessage_arena); - } - - } else { - - } - objective_ = objective; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.Objective) -} - -// int64 MaxNumberOfTrainingJobs = 3; +// int64 MaxNumberOfTrainingJobs = 1; inline void HPOJob::clear_maxnumberoftrainingjobs() { maxnumberoftrainingjobs_ = PROTOBUF_LONGLONG(0); } @@ -611,7 +472,7 @@ inline void HPOJob::set_maxnumberoftrainingjobs(::google::protobuf::int64 value) // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.MaxNumberOfTrainingJobs) } -// int64 MaxParallelTrainingJobs = 4; +// int64 MaxParallelTrainingJobs = 2; inline void HPOJob::clear_maxparalleltrainingjobs() { maxparalleltrainingjobs_ = PROTOBUF_LONGLONG(0); } @@ -625,52 +486,7 @@ inline void HPOJob::set_maxparalleltrainingjobs(::google::protobuf::int64 value) // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.MaxParallelTrainingJobs) } -// .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; -inline bool HPOJob::has_parameterranges() const { - return this != internal_default_instance() && parameterranges_ != nullptr; -} -inline const ::flyteidl::plugins::sagemaker::ParameterRanges& HPOJob::parameterranges() const { - const ::flyteidl::plugins::sagemaker::ParameterRanges* p = parameterranges_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.ParameterRanges) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::ParameterRanges* HPOJob::release_parameterranges() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.ParameterRanges) - - ::flyteidl::plugins::sagemaker::ParameterRanges* temp = parameterranges_; - parameterranges_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::ParameterRanges* HPOJob::mutable_parameterranges() { - - if (parameterranges_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(GetArenaNoVirtual()); - parameterranges_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.ParameterRanges) - return parameterranges_; -} -inline void HPOJob::set_allocated_parameterranges(::flyteidl::plugins::sagemaker::ParameterRanges* parameterranges) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(parameterranges_); - } - if (parameterranges) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - parameterranges = ::google::protobuf::internal::GetOwnedMessage( - message_arena, parameterranges, submessage_arena); - } - - } else { - - } - parameterranges_ = parameterranges; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.ParameterRanges) -} - -// .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; +// .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; inline bool HPOJob::has_trainingjob() const { return this != internal_default_instance() && trainingjob_ != nullptr; } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go index dfaf1007c..fd4eec6a4 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go @@ -93,15 +93,12 @@ func (m *HPOJobObjective) GetMetricName() string { } type HPOJob struct { - Strategy string `protobuf:"bytes,1,opt,name=Strategy,proto3" json:"Strategy,omitempty"` - Objective *HPOJobObjective `protobuf:"bytes,2,opt,name=Objective,proto3" json:"Objective,omitempty"` - MaxNumberOfTrainingJobs int64 `protobuf:"varint,3,opt,name=MaxNumberOfTrainingJobs,proto3" json:"MaxNumberOfTrainingJobs,omitempty"` - MaxParallelTrainingJobs int64 `protobuf:"varint,4,opt,name=MaxParallelTrainingJobs,proto3" json:"MaxParallelTrainingJobs,omitempty"` - ParameterRanges *ParameterRanges `protobuf:"bytes,5,opt,name=ParameterRanges,proto3" json:"ParameterRanges,omitempty"` - TrainingJob *TrainingJob `protobuf:"bytes,6,opt,name=TrainingJob,proto3" json:"TrainingJob,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MaxNumberOfTrainingJobs int64 `protobuf:"varint,1,opt,name=MaxNumberOfTrainingJobs,proto3" json:"MaxNumberOfTrainingJobs,omitempty"` + MaxParallelTrainingJobs int64 `protobuf:"varint,2,opt,name=MaxParallelTrainingJobs,proto3" json:"MaxParallelTrainingJobs,omitempty"` + TrainingJob *TrainingJob `protobuf:"bytes,3,opt,name=TrainingJob,proto3" json:"TrainingJob,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *HPOJob) Reset() { *m = HPOJob{} } @@ -129,20 +126,6 @@ func (m *HPOJob) XXX_DiscardUnknown() { var xxx_messageInfo_HPOJob proto.InternalMessageInfo -func (m *HPOJob) GetStrategy() string { - if m != nil { - return m.Strategy - } - return "" -} - -func (m *HPOJob) GetObjective() *HPOJobObjective { - if m != nil { - return m.Objective - } - return nil -} - func (m *HPOJob) GetMaxNumberOfTrainingJobs() int64 { if m != nil { return m.MaxNumberOfTrainingJobs @@ -157,13 +140,6 @@ func (m *HPOJob) GetMaxParallelTrainingJobs() int64 { return 0 } -func (m *HPOJob) GetParameterRanges() *ParameterRanges { - if m != nil { - return m.ParameterRanges - } - return nil -} - func (m *HPOJob) GetTrainingJob() *TrainingJob { if m != nil { return m.TrainingJob @@ -182,28 +158,25 @@ func init() { } var fileDescriptor_823bfe2a857513d9 = []byte{ - // 368 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xd1, 0x4e, 0xf2, 0x30, - 0x14, 0xc7, 0xbf, 0x7d, 0x20, 0x81, 0x62, 0xc4, 0xd4, 0x0b, 0x97, 0x5d, 0x18, 0xc2, 0x0d, 0x24, - 0xea, 0xa6, 0x10, 0x13, 0xef, 0x8c, 0x26, 0x26, 0x8e, 0x64, 0x40, 0x0a, 0x26, 0x86, 0xbb, 0x16, - 0x0f, 0x65, 0xb8, 0xad, 0x4b, 0x57, 0x8c, 0x7b, 0x00, 0x1f, 0xca, 0xb7, 0x33, 0x0e, 0x98, 0x73, - 0x01, 0x8c, 0x97, 0x67, 0xfd, 0xff, 0x7e, 0xa7, 0xdd, 0x39, 0xa8, 0x39, 0xf5, 0x62, 0x05, 0xee, - 0xb3, 0x67, 0x85, 0xde, 0x82, 0xbb, 0x41, 0x64, 0x45, 0x94, 0x83, 0x4f, 0x5f, 0x40, 0x5a, 0xb3, - 0x50, 0xcc, 0x05, 0x33, 0x43, 0x29, 0x94, 0xc0, 0xc6, 0x3a, 0x68, 0xae, 0x82, 0x66, 0x1a, 0x34, - 0x2e, 0x76, 0x48, 0x42, 0x2a, 0xa9, 0x0f, 0x0a, 0xa4, 0xa4, 0x01, 0x87, 0x68, 0x69, 0x33, 0xce, - 0x76, 0x10, 0x4a, 0x52, 0x37, 0x70, 0x03, 0x9e, 0xf6, 0x6e, 0x7c, 0x68, 0xa8, 0xf6, 0x30, 0xe8, - 0x77, 0x05, 0xeb, 0xb3, 0x39, 0x4c, 0x94, 0xfb, 0x0a, 0x78, 0x88, 0x8a, 0xa3, 0x38, 0x04, 0x5d, - 0xab, 0x6b, 0xad, 0x83, 0xf6, 0x8d, 0xb9, 0xfd, 0x7a, 0x66, 0x0e, 0xcd, 0xd7, 0x5f, 0x1a, 0x92, - 0xc8, 0xf0, 0x09, 0x42, 0x0e, 0x28, 0xe9, 0x4e, 0x7a, 0xd4, 0x07, 0xfd, 0x7f, 0x5d, 0x6b, 0x55, - 0x48, 0xe6, 0x4b, 0xe3, 0x12, 0x1d, 0x6d, 0x80, 0xf1, 0x3e, 0x2a, 0x3b, 0x76, 0xcf, 0x76, 0xec, - 0xf1, 0xfd, 0xe1, 0xbf, 0xa4, 0xba, 0x7d, 0x5a, 0x56, 0x5a, 0xe3, 0xbd, 0x80, 0x4a, 0x4b, 0x06, - 0x1b, 0xa8, 0x3c, 0x54, 0x92, 0x2a, 0xe0, 0x71, 0x72, 0xed, 0x0a, 0x49, 0x6b, 0x6c, 0xa3, 0x4a, - 0xea, 0x4c, 0x1a, 0x57, 0xdb, 0xa7, 0x7f, 0x78, 0x13, 0xf9, 0xa6, 0xf1, 0x35, 0x3a, 0x76, 0xe8, - 0x5b, 0x6f, 0xe1, 0x33, 0x90, 0xfd, 0xe9, 0x68, 0xf5, 0x37, 0xbb, 0x82, 0x45, 0x7a, 0xa1, 0xae, - 0xb5, 0x0a, 0x64, 0xdb, 0xf1, 0x8a, 0x1c, 0x50, 0x49, 0x3d, 0x0f, 0xbc, 0x1f, 0x64, 0x31, 0x25, - 0x37, 0x1d, 0xe3, 0x47, 0x54, 0x1b, 0xac, 0x07, 0x4d, 0x92, 0x41, 0xeb, 0x7b, 0xbf, 0x3f, 0x22, - 0x87, 0x90, 0xbc, 0x03, 0xdb, 0xa8, 0x9a, 0x69, 0xa3, 0x97, 0x12, 0x65, 0x73, 0x97, 0x32, 0x13, - 0x27, 0x59, 0xf6, 0xee, 0x6a, 0xdc, 0xe1, 0xae, 0x9a, 0x2d, 0x98, 0x39, 0x11, 0xbe, 0xe5, 0xc5, - 0x53, 0x65, 0xa5, 0x3b, 0xc8, 0x21, 0xb0, 0x42, 0x76, 0xce, 0x85, 0x95, 0x5f, 0x4b, 0x56, 0x4a, - 0x36, 0xb0, 0xf3, 0x19, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x80, 0x4e, 0xb4, 0x28, 0x03, 0x00, 0x00, + // 318 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x41, 0x4f, 0xc2, 0x30, + 0x1c, 0xc5, 0x2d, 0x18, 0xa2, 0xc5, 0xa8, 0x99, 0x07, 0x09, 0x07, 0x43, 0xb8, 0xc0, 0x41, 0x5b, + 0x85, 0x98, 0x78, 0x33, 0x9a, 0x98, 0x38, 0x92, 0x01, 0x99, 0x1c, 0x0c, 0xb7, 0x16, 0xff, 0x94, + 0x62, 0xb7, 0x36, 0x5d, 0x31, 0xf2, 0xd1, 0xfc, 0x04, 0x7e, 0x2d, 0xe3, 0xc0, 0x65, 0x12, 0xd8, + 0xf1, 0xf5, 0xff, 0x7e, 0xaf, 0xfd, 0xf7, 0xe1, 0xd6, 0x54, 0x2d, 0x1d, 0xc8, 0x37, 0x45, 0x8d, + 0x5a, 0x08, 0x19, 0x27, 0x34, 0x61, 0x02, 0x22, 0xf6, 0x0e, 0x96, 0xce, 0x8c, 0x9e, 0x6b, 0x4e, + 0x8c, 0xd5, 0x4e, 0x7b, 0xf5, 0x3f, 0x23, 0x59, 0x1b, 0x49, 0x66, 0xac, 0x5f, 0x17, 0x84, 0x18, + 0x66, 0x59, 0x04, 0x0e, 0xac, 0x65, 0xb1, 0x80, 0x64, 0x95, 0x56, 0xbf, 0x2c, 0x20, 0x9c, 0x65, + 0x32, 0x96, 0xb1, 0xc8, 0xee, 0x6e, 0x7e, 0x21, 0x7c, 0xf2, 0x3c, 0x1c, 0xf4, 0x34, 0x1f, 0xf0, + 0x39, 0x4c, 0x9c, 0xfc, 0x00, 0xef, 0x05, 0xef, 0x8f, 0x96, 0x06, 0x6a, 0xa8, 0x81, 0xda, 0xc7, + 0x9d, 0x7b, 0xb2, 0xfb, 0x79, 0x64, 0x03, 0xdd, 0xd4, 0xbf, 0x31, 0x61, 0x1a, 0xe6, 0x5d, 0x60, + 0x1c, 0x80, 0xb3, 0x72, 0xd2, 0x67, 0x11, 0xd4, 0x4a, 0x0d, 0xd4, 0x3e, 0x0c, 0x73, 0x27, 0xcd, + 0x1b, 0x7c, 0xb6, 0x05, 0xf6, 0x8e, 0xf0, 0x41, 0xe0, 0xf7, 0xfd, 0xc0, 0x1f, 0x3f, 0x9d, 0xee, + 0xa5, 0xea, 0xe1, 0x75, 0xa5, 0x50, 0xf3, 0x1b, 0xe1, 0xca, 0x8a, 0xf1, 0xee, 0xf0, 0x79, 0xc0, + 0x3e, 0xfb, 0x8b, 0x88, 0x83, 0x1d, 0x4c, 0x47, 0xeb, 0x35, 0x7b, 0x9a, 0x27, 0xe9, 0x16, 0xe5, + 0x70, 0xd7, 0x78, 0x4d, 0x0e, 0x99, 0x65, 0x4a, 0x81, 0xfa, 0x47, 0x96, 0x32, 0x72, 0xdb, 0xd8, + 0xf3, 0x71, 0x35, 0xa7, 0x6b, 0xe5, 0x06, 0x6a, 0x57, 0x3b, 0xad, 0xa2, 0xdf, 0xca, 0xd9, 0xc3, + 0x3c, 0xfb, 0x78, 0x3b, 0xee, 0x0a, 0xe9, 0x66, 0x0b, 0x4e, 0x26, 0x3a, 0xa2, 0x6a, 0x39, 0x75, + 0x34, 0x6b, 0x51, 0x40, 0x4c, 0x0d, 0xbf, 0x12, 0x9a, 0x6e, 0x16, 0xcb, 0x2b, 0x69, 0x87, 0xdd, + 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xad, 0xbd, 0x73, 0xd8, 0x6a, 0x02, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go index f54efecde..dcc9208e4 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go @@ -112,32 +112,10 @@ func (m *HPOJob) Validate() error { return nil } - // no validation rules for Strategy - - if v, ok := interface{}(m.GetObjective()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return HPOJobValidationError{ - field: "Objective", - reason: "embedded message failed validation", - cause: err, - } - } - } - // no validation rules for MaxNumberOfTrainingJobs // no validation rules for MaxParallelTrainingJobs - if v, ok := interface{}(m.GetParameterRanges()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return HPOJobValidationError{ - field: "ParameterRanges", - reason: "embedded message failed validation", - cause: err, - } - } - } - if v, ok := interface{}(m.GetTrainingJob()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HPOJobValidationError{ diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java index e699158a0..7bcd1a038 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -760,89 +760,21 @@ public interface HPOJobOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - *
-     * will impact output, should be in input, not custom
-     * 
- * - * string Strategy = 1; - */ - java.lang.String getStrategy(); - /** - *
-     * will impact output, should be in input, not custom
-     * 
- * - * string Strategy = 1; - */ - com.google.protobuf.ByteString - getStrategyBytes(); - - /** - *
-     * // will impact output, should be in input, not custom
-     * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - boolean hasObjective(); - /** - *
-     * // will impact output, should be in input, not custom
-     * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective getObjective(); - /** - *
-     * // will impact output, should be in input, not custom
-     * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder getObjectiveOrBuilder(); - - /** - * int64 MaxNumberOfTrainingJobs = 3; + * int64 MaxNumberOfTrainingJobs = 1; */ long getMaxNumberOfTrainingJobs(); /** - * int64 MaxParallelTrainingJobs = 4; + * int64 MaxParallelTrainingJobs = 2; */ long getMaxParallelTrainingJobs(); - /** - *
-     * will impact output, should be in input, not custom
-     * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - boolean hasParameterRanges(); - /** - *
-     * will impact output, should be in input, not custom
-     * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getParameterRanges(); - /** - *
-     * will impact output, should be in input, not custom
-     * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder getParameterRangesOrBuilder(); - /** *
      * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
      * 
* - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ boolean hasTrainingJob(); /** @@ -850,7 +782,7 @@ public interface HPOJobOrBuilder extends * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob(); /** @@ -858,7 +790,7 @@ public interface HPOJobOrBuilder extends * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder(); } @@ -875,7 +807,6 @@ private HPOJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HPOJob() { - strategy_ = ""; } @java.lang.Override @@ -902,49 +833,17 @@ private HPOJob( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - strategy_ = s; - break; - } - case 18: { - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder subBuilder = null; - if (objective_ != null) { - subBuilder = objective_.toBuilder(); - } - objective_ = input.readMessage(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(objective_); - objective_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { + case 8: { maxNumberOfTrainingJobs_ = input.readInt64(); break; } - case 32: { + case 16: { maxParallelTrainingJobs_ = input.readInt64(); break; } - case 42: { - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder subBuilder = null; - if (parameterRanges_ != null) { - subBuilder = parameterRanges_.toBuilder(); - } - parameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameterRanges_); - parameterRanges_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { + case 26: { flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder subBuilder = null; if (trainingJob_ != null) { subBuilder = trainingJob_.toBuilder(); @@ -989,140 +888,32 @@ private HPOJob( flyteidl.plugins.sagemaker.Hpojob.HPOJob.class, flyteidl.plugins.sagemaker.Hpojob.HPOJob.Builder.class); } - public static final int STRATEGY_FIELD_NUMBER = 1; - private volatile java.lang.Object strategy_; - /** - *
-     * will impact output, should be in input, not custom
-     * 
- * - * string Strategy = 1; - */ - public java.lang.String getStrategy() { - java.lang.Object ref = strategy_; - 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(); - strategy_ = s; - return s; - } - } - /** - *
-     * will impact output, should be in input, not custom
-     * 
- * - * string Strategy = 1; - */ - public com.google.protobuf.ByteString - getStrategyBytes() { - java.lang.Object ref = strategy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - strategy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OBJECTIVE_FIELD_NUMBER = 2; - private flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective objective_; - /** - *
-     * // will impact output, should be in input, not custom
-     * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public boolean hasObjective() { - return objective_ != null; - } - /** - *
-     * // will impact output, should be in input, not custom
-     * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective getObjective() { - return objective_ == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.getDefaultInstance() : objective_; - } - /** - *
-     * // will impact output, should be in input, not custom
-     * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { - return getObjective(); - } - - public static final int MAXNUMBEROFTRAININGJOBS_FIELD_NUMBER = 3; + public static final int MAXNUMBEROFTRAININGJOBS_FIELD_NUMBER = 1; private long maxNumberOfTrainingJobs_; /** - * int64 MaxNumberOfTrainingJobs = 3; + * int64 MaxNumberOfTrainingJobs = 1; */ public long getMaxNumberOfTrainingJobs() { return maxNumberOfTrainingJobs_; } - public static final int MAXPARALLELTRAININGJOBS_FIELD_NUMBER = 4; + public static final int MAXPARALLELTRAININGJOBS_FIELD_NUMBER = 2; private long maxParallelTrainingJobs_; /** - * int64 MaxParallelTrainingJobs = 4; + * int64 MaxParallelTrainingJobs = 2; */ public long getMaxParallelTrainingJobs() { return maxParallelTrainingJobs_; } - public static final int PARAMETERRANGES_FIELD_NUMBER = 5; - private flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parameterRanges_; - /** - *
-     * will impact output, should be in input, not custom
-     * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public boolean hasParameterRanges() { - return parameterRanges_ != null; - } - /** - *
-     * will impact output, should be in input, not custom
-     * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getParameterRanges() { - return parameterRanges_ == null ? flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance() : parameterRanges_; - } - /** - *
-     * will impact output, should be in input, not custom
-     * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder getParameterRangesOrBuilder() { - return getParameterRanges(); - } - - public static final int TRAININGJOB_FIELD_NUMBER = 6; + public static final int TRAININGJOB_FIELD_NUMBER = 3; private flyteidl.plugins.sagemaker.Trainingjob.TrainingJob trainingJob_; /** *
      * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
      * 
* - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ public boolean hasTrainingJob() { return trainingJob_ != null; @@ -1132,7 +923,7 @@ public boolean hasTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() { return trainingJob_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_; @@ -1142,7 +933,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder() { return getTrainingJob(); @@ -1162,23 +953,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getStrategyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, strategy_); - } - if (objective_ != null) { - output.writeMessage(2, getObjective()); - } if (maxNumberOfTrainingJobs_ != 0L) { - output.writeInt64(3, maxNumberOfTrainingJobs_); + output.writeInt64(1, maxNumberOfTrainingJobs_); } if (maxParallelTrainingJobs_ != 0L) { - output.writeInt64(4, maxParallelTrainingJobs_); - } - if (parameterRanges_ != null) { - output.writeMessage(5, getParameterRanges()); + output.writeInt64(2, maxParallelTrainingJobs_); } if (trainingJob_ != null) { - output.writeMessage(6, getTrainingJob()); + output.writeMessage(3, getTrainingJob()); } unknownFields.writeTo(output); } @@ -1189,28 +971,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getStrategyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, strategy_); - } - if (objective_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getObjective()); - } if (maxNumberOfTrainingJobs_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, maxNumberOfTrainingJobs_); + .computeInt64Size(1, maxNumberOfTrainingJobs_); } if (maxParallelTrainingJobs_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, maxParallelTrainingJobs_); - } - if (parameterRanges_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getParameterRanges()); + .computeInt64Size(2, maxParallelTrainingJobs_); } if (trainingJob_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getTrainingJob()); + .computeMessageSize(3, getTrainingJob()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1227,22 +998,10 @@ public boolean equals(final java.lang.Object obj) { } flyteidl.plugins.sagemaker.Hpojob.HPOJob other = (flyteidl.plugins.sagemaker.Hpojob.HPOJob) obj; - if (!getStrategy() - .equals(other.getStrategy())) return false; - if (hasObjective() != other.hasObjective()) return false; - if (hasObjective()) { - if (!getObjective() - .equals(other.getObjective())) return false; - } if (getMaxNumberOfTrainingJobs() != other.getMaxNumberOfTrainingJobs()) return false; if (getMaxParallelTrainingJobs() != other.getMaxParallelTrainingJobs()) return false; - if (hasParameterRanges() != other.hasParameterRanges()) return false; - if (hasParameterRanges()) { - if (!getParameterRanges() - .equals(other.getParameterRanges())) return false; - } if (hasTrainingJob() != other.hasTrainingJob()) return false; if (hasTrainingJob()) { if (!getTrainingJob() @@ -1259,22 +1018,12 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + getStrategy().hashCode(); - if (hasObjective()) { - hash = (37 * hash) + OBJECTIVE_FIELD_NUMBER; - hash = (53 * hash) + getObjective().hashCode(); - } hash = (37 * hash) + MAXNUMBEROFTRAININGJOBS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxNumberOfTrainingJobs()); hash = (37 * hash) + MAXPARALLELTRAININGJOBS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxParallelTrainingJobs()); - if (hasParameterRanges()) { - hash = (37 * hash) + PARAMETERRANGES_FIELD_NUMBER; - hash = (53 * hash) + getParameterRanges().hashCode(); - } if (hasTrainingJob()) { hash = (37 * hash) + TRAININGJOB_FIELD_NUMBER; hash = (53 * hash) + getTrainingJob().hashCode(); @@ -1412,24 +1161,10 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - strategy_ = ""; - - if (objectiveBuilder_ == null) { - objective_ = null; - } else { - objective_ = null; - objectiveBuilder_ = null; - } maxNumberOfTrainingJobs_ = 0L; maxParallelTrainingJobs_ = 0L; - if (parameterRangesBuilder_ == null) { - parameterRanges_ = null; - } else { - parameterRanges_ = null; - parameterRangesBuilder_ = null; - } if (trainingJobBuilder_ == null) { trainingJob_ = null; } else { @@ -1462,19 +1197,8 @@ public flyteidl.plugins.sagemaker.Hpojob.HPOJob build() { @java.lang.Override public flyteidl.plugins.sagemaker.Hpojob.HPOJob buildPartial() { flyteidl.plugins.sagemaker.Hpojob.HPOJob result = new flyteidl.plugins.sagemaker.Hpojob.HPOJob(this); - result.strategy_ = strategy_; - if (objectiveBuilder_ == null) { - result.objective_ = objective_; - } else { - result.objective_ = objectiveBuilder_.build(); - } result.maxNumberOfTrainingJobs_ = maxNumberOfTrainingJobs_; result.maxParallelTrainingJobs_ = maxParallelTrainingJobs_; - if (parameterRangesBuilder_ == null) { - result.parameterRanges_ = parameterRanges_; - } else { - result.parameterRanges_ = parameterRangesBuilder_.build(); - } if (trainingJobBuilder_ == null) { result.trainingJob_ = trainingJob_; } else { @@ -1528,22 +1252,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(flyteidl.plugins.sagemaker.Hpojob.HPOJob other) { if (other == flyteidl.plugins.sagemaker.Hpojob.HPOJob.getDefaultInstance()) return this; - if (!other.getStrategy().isEmpty()) { - strategy_ = other.strategy_; - onChanged(); - } - if (other.hasObjective()) { - mergeObjective(other.getObjective()); - } if (other.getMaxNumberOfTrainingJobs() != 0L) { setMaxNumberOfTrainingJobs(other.getMaxNumberOfTrainingJobs()); } if (other.getMaxParallelTrainingJobs() != 0L) { setMaxParallelTrainingJobs(other.getMaxParallelTrainingJobs()); } - if (other.hasParameterRanges()) { - mergeParameterRanges(other.getParameterRanges()); - } if (other.hasTrainingJob()) { mergeTrainingJob(other.getTrainingJob()); } @@ -1576,257 +1290,15 @@ public Builder mergeFrom( return this; } - private java.lang.Object strategy_ = ""; - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * string Strategy = 1; - */ - public java.lang.String getStrategy() { - java.lang.Object ref = strategy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - strategy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * string Strategy = 1; - */ - public com.google.protobuf.ByteString - getStrategyBytes() { - java.lang.Object ref = strategy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - strategy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * string Strategy = 1; - */ - public Builder setStrategy( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - strategy_ = value; - onChanged(); - return this; - } - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * string Strategy = 1; - */ - public Builder clearStrategy() { - - strategy_ = getDefaultInstance().getStrategy(); - onChanged(); - return this; - } - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * string Strategy = 1; - */ - public Builder setStrategyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - strategy_ = value; - onChanged(); - return this; - } - - private flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective objective_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder> objectiveBuilder_; - /** - *
-       * // will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public boolean hasObjective() { - return objectiveBuilder_ != null || objective_ != null; - } - /** - *
-       * // will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective getObjective() { - if (objectiveBuilder_ == null) { - return objective_ == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.getDefaultInstance() : objective_; - } else { - return objectiveBuilder_.getMessage(); - } - } - /** - *
-       * // will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public Builder setObjective(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective value) { - if (objectiveBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - objective_ = value; - onChanged(); - } else { - objectiveBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * // will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public Builder setObjective( - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder builderForValue) { - if (objectiveBuilder_ == null) { - objective_ = builderForValue.build(); - onChanged(); - } else { - objectiveBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * // will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public Builder mergeObjective(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective value) { - if (objectiveBuilder_ == null) { - if (objective_ != null) { - objective_ = - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.newBuilder(objective_).mergeFrom(value).buildPartial(); - } else { - objective_ = value; - } - onChanged(); - } else { - objectiveBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * // will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public Builder clearObjective() { - if (objectiveBuilder_ == null) { - objective_ = null; - onChanged(); - } else { - objective_ = null; - objectiveBuilder_ = null; - } - - return this; - } - /** - *
-       * // will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder getObjectiveBuilder() { - - onChanged(); - return getObjectiveFieldBuilder().getBuilder(); - } - /** - *
-       * // will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder getObjectiveOrBuilder() { - if (objectiveBuilder_ != null) { - return objectiveBuilder_.getMessageOrBuilder(); - } else { - return objective_ == null ? - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.getDefaultInstance() : objective_; - } - } - /** - *
-       * // will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.HPOJobObjective Objective = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder> - getObjectiveFieldBuilder() { - if (objectiveBuilder_ == null) { - objectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder>( - getObjective(), - getParentForChildren(), - isClean()); - objective_ = null; - } - return objectiveBuilder_; - } - private long maxNumberOfTrainingJobs_ ; /** - * int64 MaxNumberOfTrainingJobs = 3; + * int64 MaxNumberOfTrainingJobs = 1; */ public long getMaxNumberOfTrainingJobs() { return maxNumberOfTrainingJobs_; } /** - * int64 MaxNumberOfTrainingJobs = 3; + * int64 MaxNumberOfTrainingJobs = 1; */ public Builder setMaxNumberOfTrainingJobs(long value) { @@ -1835,7 +1307,7 @@ public Builder setMaxNumberOfTrainingJobs(long value) { return this; } /** - * int64 MaxNumberOfTrainingJobs = 3; + * int64 MaxNumberOfTrainingJobs = 1; */ public Builder clearMaxNumberOfTrainingJobs() { @@ -1846,13 +1318,13 @@ public Builder clearMaxNumberOfTrainingJobs() { private long maxParallelTrainingJobs_ ; /** - * int64 MaxParallelTrainingJobs = 4; + * int64 MaxParallelTrainingJobs = 2; */ public long getMaxParallelTrainingJobs() { return maxParallelTrainingJobs_; } /** - * int64 MaxParallelTrainingJobs = 4; + * int64 MaxParallelTrainingJobs = 2; */ public Builder setMaxParallelTrainingJobs(long value) { @@ -1861,7 +1333,7 @@ public Builder setMaxParallelTrainingJobs(long value) { return this; } /** - * int64 MaxParallelTrainingJobs = 4; + * int64 MaxParallelTrainingJobs = 2; */ public Builder clearMaxParallelTrainingJobs() { @@ -1870,159 +1342,6 @@ public Builder clearMaxParallelTrainingJobs() { return this; } - private flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parameterRanges_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder> parameterRangesBuilder_; - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public boolean hasParameterRanges() { - return parameterRangesBuilder_ != null || parameterRanges_ != null; - } - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getParameterRanges() { - if (parameterRangesBuilder_ == null) { - return parameterRanges_ == null ? flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance() : parameterRanges_; - } else { - return parameterRangesBuilder_.getMessage(); - } - } - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public Builder setParameterRanges(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges value) { - if (parameterRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parameterRanges_ = value; - onChanged(); - } else { - parameterRangesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public Builder setParameterRanges( - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder builderForValue) { - if (parameterRangesBuilder_ == null) { - parameterRanges_ = builderForValue.build(); - onChanged(); - } else { - parameterRangesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public Builder mergeParameterRanges(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges value) { - if (parameterRangesBuilder_ == null) { - if (parameterRanges_ != null) { - parameterRanges_ = - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.newBuilder(parameterRanges_).mergeFrom(value).buildPartial(); - } else { - parameterRanges_ = value; - } - onChanged(); - } else { - parameterRangesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public Builder clearParameterRanges() { - if (parameterRangesBuilder_ == null) { - parameterRanges_ = null; - onChanged(); - } else { - parameterRanges_ = null; - parameterRangesBuilder_ = null; - } - - return this; - } - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder getParameterRangesBuilder() { - - onChanged(); - return getParameterRangesFieldBuilder().getBuilder(); - } - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder getParameterRangesOrBuilder() { - if (parameterRangesBuilder_ != null) { - return parameterRangesBuilder_.getMessageOrBuilder(); - } else { - return parameterRanges_ == null ? - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance() : parameterRanges_; - } - } - /** - *
-       * will impact output, should be in input, not custom
-       * 
- * - * .flyteidl.plugins.sagemaker.ParameterRanges ParameterRanges = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder> - getParameterRangesFieldBuilder() { - if (parameterRangesBuilder_ == null) { - parameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder>( - getParameterRanges(), - getParentForChildren(), - isClean()); - parameterRanges_ = null; - } - return parameterRangesBuilder_; - } - private flyteidl.plugins.sagemaker.Trainingjob.TrainingJob trainingJob_; private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder> trainingJobBuilder_; @@ -2031,7 +1350,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder getPa * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ public boolean hasTrainingJob() { return trainingJobBuilder_ != null || trainingJob_ != null; @@ -2041,7 +1360,7 @@ public boolean hasTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() { if (trainingJobBuilder_ == null) { @@ -2055,7 +1374,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ public Builder setTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob value) { if (trainingJobBuilder_ == null) { @@ -2075,7 +1394,7 @@ public Builder setTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ public Builder setTrainingJob( flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder builderForValue) { @@ -2093,7 +1412,7 @@ public Builder setTrainingJob( * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob value) { if (trainingJobBuilder_ == null) { @@ -2115,7 +1434,7 @@ public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJ * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ public Builder clearTrainingJob() { if (trainingJobBuilder_ == null) { @@ -2133,7 +1452,7 @@ public Builder clearTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder getTrainingJobBuilder() { @@ -2145,7 +1464,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder getTrainingJob * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder() { if (trainingJobBuilder_ != null) { @@ -2160,7 +1479,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJo * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 6; + * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder> @@ -2255,16 +1574,12 @@ public flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstanceForType() { "?.flyteidl.plugins.sagemaker.HPOJobObjec" + "tive.HPOJobObjectiveType\022\022\n\nMetricName\030\002" + " \001(\t\"1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE\020" + - "\000\022\014\n\010MAXIMIZE\020\001\"\240\002\n\006HPOJob\022\020\n\010Strategy\030\001" + - " \001(\t\022>\n\tObjective\030\002 \001(\0132+.flyteidl.plugi" + - "ns.sagemaker.HPOJobObjective\022\037\n\027MaxNumbe" + - "rOfTrainingJobs\030\003 \001(\003\022\037\n\027MaxParallelTrai" + - "ningJobs\030\004 \001(\003\022D\n\017ParameterRanges\030\005 \001(\0132" + - "+.flyteidl.plugins.sagemaker.ParameterRa" + - "nges\022<\n\013TrainingJob\030\006 \001(\0132\'.flyteidl.plu" + - "gins.sagemaker.TrainingJobB5Z3github.com" + - "/lyft/flyteidl/gen/pb-go/flyteidl/plugin" + - "sb\006proto3" + "\000\022\014\n\010MAXIMIZE\020\001\"\210\001\n\006HPOJob\022\037\n\027MaxNumberO" + + "fTrainingJobs\030\001 \001(\003\022\037\n\027MaxParallelTraini" + + "ngJobs\030\002 \001(\003\022<\n\013TrainingJob\030\003 \001(\0132\'.flyt" + + "eidl.plugins.sagemaker.TrainingJobB5Z3gi" + + "thub.com/lyft/flyteidl/gen/pb-go/flyteid" + + "l/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -2291,7 +1606,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor, - new java.lang.String[] { "Strategy", "Objective", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", "ParameterRanges", "TrainingJob", }); + new java.lang.String[] { "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", "TrainingJob", }); flyteidl.plugins.sagemaker.Parameterranges.getDescriptor(); flyteidl.plugins.sagemaker.Trainingjob.getDescriptor(); } diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst index e62557e4c..93a256db4 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst @@ -59,24 +59,11 @@ flyteidl.plugins.sagemaker.HPOJob .. code-block:: json { - "Strategy": "...", - "Objective": "{...}", "MaxNumberOfTrainingJobs": "...", "MaxParallelTrainingJobs": "...", - "ParameterRanges": "{...}", "TrainingJob": "{...}" } -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.Strategy: - -Strategy - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.Objective: - -Objective - (:ref:`flyteidl.plugins.sagemaker.HPOJobObjective `) - .. _api_field_flyteidl.plugins.sagemaker.HPOJob.MaxNumberOfTrainingJobs: MaxNumberOfTrainingJobs @@ -87,11 +74,6 @@ MaxNumberOfTrainingJobs MaxParallelTrainingJobs (`int64 `_) -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.ParameterRanges: - -ParameterRanges - (:ref:`flyteidl.plugins.sagemaker.ParameterRanges `) - .. _api_field_flyteidl.plugins.sagemaker.HPOJob.TrainingJob: TrainingJob diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py index 7c4611a4c..0319db718 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py @@ -22,7 +22,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n\'flyteidl/plugins/sagemaker/hpojob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x30\x66lyteidl/plugins/sagemaker/parameterranges.proto\x1a,flyteidl/plugins/sagemaker/trainingjob.proto\"\xa7\x01\n\x0fHPOJobObjective\x12M\n\x04Type\x18\x01 \x01(\x0e\x32?.flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType\x12\x12\n\nMetricName\x18\x02 \x01(\t\"1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\xa0\x02\n\x06HPOJob\x12\x10\n\x08Strategy\x18\x01 \x01(\t\x12>\n\tObjective\x18\x02 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.HPOJobObjective\x12\x1f\n\x17MaxNumberOfTrainingJobs\x18\x03 \x01(\x03\x12\x1f\n\x17MaxParallelTrainingJobs\x18\x04 \x01(\x03\x12\x44\n\x0fParameterRanges\x18\x05 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12<\n\x0bTrainingJob\x18\x06 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJobB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n\'flyteidl/plugins/sagemaker/hpojob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x30\x66lyteidl/plugins/sagemaker/parameterranges.proto\x1a,flyteidl/plugins/sagemaker/trainingjob.proto\"\xa7\x01\n\x0fHPOJobObjective\x12M\n\x04Type\x18\x01 \x01(\x0e\x32?.flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType\x12\x12\n\nMetricName\x18\x02 \x01(\t\"1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x88\x01\n\x06HPOJob\x12\x1f\n\x17MaxNumberOfTrainingJobs\x18\x01 \x01(\x03\x12\x1f\n\x17MaxParallelTrainingJobs\x18\x02 \x01(\x03\x12<\n\x0bTrainingJob\x18\x03 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJobB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2.DESCRIPTOR,]) @@ -98,43 +98,22 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Strategy', full_name='flyteidl.plugins.sagemaker.HPOJob.Strategy', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='Objective', full_name='flyteidl.plugins.sagemaker.HPOJob.Objective', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='MaxNumberOfTrainingJobs', full_name='flyteidl.plugins.sagemaker.HPOJob.MaxNumberOfTrainingJobs', index=2, - number=3, type=3, cpp_type=2, label=1, + name='MaxNumberOfTrainingJobs', full_name='flyteidl.plugins.sagemaker.HPOJob.MaxNumberOfTrainingJobs', index=0, + number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MaxParallelTrainingJobs', full_name='flyteidl.plugins.sagemaker.HPOJob.MaxParallelTrainingJobs', index=3, - number=4, type=3, cpp_type=2, label=1, + name='MaxParallelTrainingJobs', full_name='flyteidl.plugins.sagemaker.HPOJob.MaxParallelTrainingJobs', index=1, + number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ParameterRanges', full_name='flyteidl.plugins.sagemaker.HPOJob.ParameterRanges', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='TrainingJob', full_name='flyteidl.plugins.sagemaker.HPOJob.TrainingJob', index=5, - number=6, type=11, cpp_type=10, label=1, + name='TrainingJob', full_name='flyteidl.plugins.sagemaker.HPOJob.TrainingJob', index=2, + number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -152,13 +131,11 @@ oneofs=[ ], serialized_start=338, - serialized_end=626, + serialized_end=474, ) _HPOJOBOBJECTIVE.fields_by_name['Type'].enum_type = _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE.containing_type = _HPOJOBOBJECTIVE -_HPOJOB.fields_by_name['Objective'].message_type = _HPOJOBOBJECTIVE -_HPOJOB.fields_by_name['ParameterRanges'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2._PARAMETERRANGES _HPOJOB.fields_by_name['TrainingJob'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2._TRAININGJOB DESCRIPTOR.message_types_by_name['HPOJobObjective'] = _HPOJOBOBJECTIVE DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB diff --git a/generate_protos.sh b/generate_protos.sh index 4b212549e..6822fd20a 100755 --- a/generate_protos.sh +++ b/generate_protos.sh @@ -2,8 +2,7 @@ DIR=`pwd` rm -rf $DIR/gen -# LYFT_IMAGE="lyft/protocgenerator:5e6a3be18db77a8862365a19711428c2f66284ef" -LYFT_IMAGE="lyft/protocgenerator:4a198664c889dec4c29350776aa6f0640f1e5f50" +LYFT_IMAGE="lyft/protocgenerator:8167e11d3b3439373c2f033080a4b550078884a2" SWAGGER_CLI_IMAGE="docker.io/lyft/swagger-codegen-cli:dc5ce6ec6d7d4d980fa882d6bd13a83cba3be3c3" docker run --rm -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/service --with_gateway -l go --go_source_relative diff --git a/protos/flyteidl/plugins/sagemaker/hpojob.proto b/protos/flyteidl/plugins/sagemaker/hpojob.proto index 63dd10186..55ed25ba3 100644 --- a/protos/flyteidl/plugins/sagemaker/hpojob.proto +++ b/protos/flyteidl/plugins/sagemaker/hpojob.proto @@ -18,13 +18,7 @@ message HPOJobObjective { } message HPOJob { - string Strategy = 1; // will impact output, should be in input, not custom - HPOJobObjective Objective = 2; // // will impact output, should be in input, not custom - int64 MaxNumberOfTrainingJobs = 3; - int64 MaxParallelTrainingJobs = 4; - ParameterRanges ParameterRanges = 5; // will impact output, should be in input, not custom - TrainingJob TrainingJob = 6; // TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! + int64 MaxNumberOfTrainingJobs = 1; + int64 MaxParallelTrainingJobs = 2; + TrainingJob TrainingJob = 3; // TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! } - - - From 537a8399f3d4844de87bcd078a201c8a8ea6f175 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Tue, 2 Jun 2020 16:14:39 -0700 Subject: [PATCH 07/64] bump version --- package.json | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 359b383a6..e6e8f249f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.17.32", + "version": "0.17.33b0", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/setup.py b/setup.py index ca8bc7347..a8fe83b64 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.17.32' +__version__ = '0.17.33b0' setup( name='flyteidl', From 9accce68eec9e749f37a1ba0c66967b58c2eb3d5 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Wed, 3 Jun 2020 09:52:11 -0700 Subject: [PATCH 08/64] refactoring field names to conform with the style of other task types --- .../flyteidl/plugins/sagemaker/hpojob.proto | 10 ++--- .../plugins/sagemaker/parameterranges.proto | 22 +++++----- .../plugins/sagemaker/trainingjob.proto | 42 +++++++++---------- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/protos/flyteidl/plugins/sagemaker/hpojob.proto b/protos/flyteidl/plugins/sagemaker/hpojob.proto index 55ed25ba3..20114ea05 100644 --- a/protos/flyteidl/plugins/sagemaker/hpojob.proto +++ b/protos/flyteidl/plugins/sagemaker/hpojob.proto @@ -13,12 +13,12 @@ message HPOJobObjective { MAXIMIZE = 1; } - HPOJobObjectiveType Type = 1; - string MetricName = 2; + HPOJobObjectiveType type = 1; + string metric_name = 2; } message HPOJob { - int64 MaxNumberOfTrainingJobs = 1; - int64 MaxParallelTrainingJobs = 2; - TrainingJob TrainingJob = 3; // TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! + int64 max_number_of_training_jobs = 1; + int64 max_parallel_training_jobs = 2; + TrainingJob training_job = 3; // TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! } diff --git a/protos/flyteidl/plugins/sagemaker/parameterranges.proto b/protos/flyteidl/plugins/sagemaker/parameterranges.proto index 923495244..2b2e8aba1 100644 --- a/protos/flyteidl/plugins/sagemaker/parameterranges.proto +++ b/protos/flyteidl/plugins/sagemaker/parameterranges.proto @@ -12,29 +12,29 @@ enum HyperparameterScalingType { } message ContinuousParameterRange { - double MaxValue = 1; - double MinValue = 2; - HyperparameterScalingType ScalingType = 3; + double max_value = 1; + double min_value = 2; + HyperparameterScalingType scaling_type = 3; } message IntegerParameterRange { - float MaxValue = 1; - float MinValue = 2; - HyperparameterScalingType ScalingType = 3; + float max_value = 1; + float min_value = 2; + HyperparameterScalingType scaling_type = 3; } message CategoricalParameterRange { - repeated string Values = 1; + repeated string values = 1; } message ParameterRangeOneOf { oneof ParameterRangeTypes { - ContinuousParameterRange ContinuousParameterRange = 1; - IntegerParameterRange IntegerParameterRange = 2; - CategoricalParameterRange CategoricalParameterRange = 3; + ContinuousParameterRange continuous_parameter_range = 1; + IntegerParameterRange integer_parameter_range = 2; + CategoricalParameterRange categorical_parameter_range = 3; } } message ParameterRanges { - map ParameterRangeMap = 1; + map parameter_range_map = 1; } \ No newline at end of file diff --git a/protos/flyteidl/plugins/sagemaker/trainingjob.proto b/protos/flyteidl/plugins/sagemaker/trainingjob.proto index b44b38f48..8c716cb13 100644 --- a/protos/flyteidl/plugins/sagemaker/trainingjob.proto +++ b/protos/flyteidl/plugins/sagemaker/trainingjob.proto @@ -6,40 +6,40 @@ option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; message AlgorithmSpecification { - string TrainingImage = 1; // TODO: will this change output? should it be an input instead of a part of the task spec? - string TrainingInputMode = 2; - string AlgorithmName = 3; // TODO: will this change output? should it be an input instead of a part of the task spec? + string training_image = 1; // TODO: will this change output? should it be an input instead of a part of the task spec? + string training_input_mode = 2; + string algorithm_name = 3; // TODO: will this change output? should it be an input instead of a part of the task spec? message MetricDefinition { - string Name = 1; - string Regex = 2; + string name = 1; + string regex = 2; } - repeated MetricDefinition MetricDefinitions = 4; + repeated MetricDefinition metric_definitions = 4; } message ResourceConfig { - string InstanceType = 1; - int64 InstanceCount = 2; - int64 VolumeSizeInGB = 3; - string VolumeKmsKeyId = 4; + string instance_type = 1; + int64 instance_count = 2; + int64 volume_size_in_gb = 3; + string volume_kms_key_id = 4; } message StoppingCondition { - int64 MaxRuntimeInSeconds = 1; - int64 MaxWaitTimeInSeconds = 2; + int64 max_runtime_in_seconds = 1; + int64 max_wait_time_in_seconds = 2; } message VpcConfig { - repeated string SecurityGroupIds = 1; - repeated string Subnets = 2; + repeated string security_group_ids = 1; + repeated string subnets = 2; } message TrainingJob { - string Region = 1; - string RoleArn = 2; - AlgorithmSpecification AlgorithmSpecification = 3; - ResourceConfig ResourceConfig = 4; - StoppingCondition StoppingCondition = 5; - VpcConfig VpcConfig = 6; - bool EnableSpotTraining = 7; + string region = 1; + string role_arn = 2; + AlgorithmSpecification algorithm_specification = 3; + ResourceConfig resource_config = 4; + StoppingCondition stopping_condition = 5; + VpcConfig vpc_config = 6; + bool enable_spot_training = 7; } \ No newline at end of file From 35d6770acf090103feca771bd5867862fb88012e Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Wed, 3 Jun 2020 10:04:56 -0700 Subject: [PATCH 09/64] generate protos and bump beta version --- .../flyteidl/plugins/sagemaker/hpojob.pb.cc | 240 ++-- .../flyteidl/plugins/sagemaker/hpojob.pb.h | 202 +-- .../plugins/sagemaker/parameterranges.pb.cc | 542 ++++---- .../plugins/sagemaker/parameterranges.pb.h | 416 +++--- .../plugins/sagemaker/trainingjob.pb.cc | 1013 +++++++------- .../plugins/sagemaker/trainingjob.pb.h | 1168 ++++++++--------- .../flyteidl/plugins/sagemaker/hpojob.pb.go | 54 +- .../plugins/sagemaker/parameterranges.pb.go | 86 +- .../plugins/sagemaker/trainingjob.pb.go | 126 +- .../sagemaker/trainingjob.pb.validate.go | 2 +- .../flyteidl/plugins/sagemaker/Hpojob.java | 120 +- .../plugins/sagemaker/Parameterranges.java | 344 ++--- .../plugins/sagemaker/Trainingjob.java | 621 ++++----- .../plugins/sagemaker/hpojob.proto.rst | 30 +- .../sagemaker/parameterranges.proto.rst | 72 +- .../plugins/sagemaker/trainingjob.proto.rst | 126 +- .../flyteidl/plugins/sagemaker/hpojob_pb2.py | 26 +- .../plugins/sagemaker/parameterranges_pb2.py | 74 +- .../plugins/sagemaker/trainingjob_pb2.py | 76 +- package.json | 2 +- setup.py | 2 +- 21 files changed, 2677 insertions(+), 2665 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc index f364f0b55..eb1ea18a1 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc @@ -76,15 +76,15 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhp ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, metricname_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, metric_name_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, maxnumberoftrainingjobs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, maxparalleltrainingjobs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, trainingjob_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, max_number_of_training_jobs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, max_parallel_training_jobs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, training_job_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJobObjective)}, @@ -107,21 +107,21 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2ep "o\022\032flyteidl.plugins.sagemaker\0320flyteidl/" "plugins/sagemaker/parameterranges.proto\032" ",flyteidl/plugins/sagemaker/trainingjob." - "proto\"\247\001\n\017HPOJobObjective\022M\n\004Type\030\001 \001(\0162" + "proto\"\250\001\n\017HPOJobObjective\022M\n\004type\030\001 \001(\0162" "\?.flyteidl.plugins.sagemaker.HPOJobObjec" - "tive.HPOJobObjectiveType\022\022\n\nMetricName\030\002" - " \001(\t\"1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE\020" - "\000\022\014\n\010MAXIMIZE\020\001\"\210\001\n\006HPOJob\022\037\n\027MaxNumberO" - "fTrainingJobs\030\001 \001(\003\022\037\n\027MaxParallelTraini" - "ngJobs\030\002 \001(\003\022<\n\013TrainingJob\030\003 \001(\0132\'.flyt" - "eidl.plugins.sagemaker.TrainingJobB5Z3gi" - "thub.com/lyft/flyteidl/gen/pb-go/flyteid" - "l/pluginsb\006proto3" + "tive.HPOJobObjectiveType\022\023\n\013metric_name\030" + "\002 \001(\t\"1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE" + "\020\000\022\014\n\010MAXIMIZE\020\001\"\220\001\n\006HPOJob\022#\n\033max_numbe" + "r_of_training_jobs\030\001 \001(\003\022\"\n\032max_parallel" + "_training_jobs\030\002 \001(\003\022=\n\014training_job\030\003 \001" + "(\0132\'.flyteidl.plugins.sagemaker.Training" + "JobB5Z3github.com/lyft/flyteidl/gen/pb-g" + "o/flyteidl/pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, - "flyteidl/plugins/sagemaker/hpojob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 537, + "flyteidl/plugins/sagemaker/hpojob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 546, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { @@ -182,9 +182,9 @@ HPOJobObjective::HPOJobObjective(const HPOJobObjective& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - metricname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.metricname().size() > 0) { - metricname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metricname_); + metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.metric_name().size() > 0) { + metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); } type_ = from.type_; // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJobObjective) @@ -193,7 +193,7 @@ HPOJobObjective::HPOJobObjective(const HPOJobObjective& from) void HPOJobObjective::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); - metricname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); type_ = 0; } @@ -203,7 +203,7 @@ HPOJobObjective::~HPOJobObjective() { } void HPOJobObjective::SharedDtor() { - metricname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + metric_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void HPOJobObjective::SetCachedSize(int size) const { @@ -221,7 +221,7 @@ void HPOJobObjective::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - metricname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); type_ = 0; _internal_metadata_.Clear(); } @@ -239,7 +239,7 @@ const char* HPOJobObjective::_InternalParse(const char* begin, const char* end, ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); @@ -247,13 +247,13 @@ const char* HPOJobObjective::_InternalParse(const char* begin, const char* end, GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } - // string MetricName = 2; + // string metric_name = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HPOJobObjective.MetricName"); - object = msg->mutable_metricname(); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HPOJobObjective.metric_name"); + object = msg->mutable_metric_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -297,7 +297,7 @@ bool HPOJobObjective::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { int value = 0; @@ -311,15 +311,15 @@ bool HPOJobObjective::MergePartialFromCodedStream( break; } - // string MetricName = 2; + // string metric_name = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_metricname())); + input, this->mutable_metric_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metricname().data(), static_cast(this->metricname().length()), + this->metric_name().data(), static_cast(this->metric_name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.HPOJobObjective.MetricName")); + "flyteidl.plugins.sagemaker.HPOJobObjective.metric_name")); } else { goto handle_unusual; } @@ -353,20 +353,20 @@ void HPOJobObjective::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; if (this->type() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->type(), output); } - // string MetricName = 2; - if (this->metricname().size() > 0) { + // string metric_name = 2; + if (this->metric_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metricname().data(), static_cast(this->metricname().length()), + this->metric_name().data(), static_cast(this->metric_name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.HPOJobObjective.MetricName"); + "flyteidl.plugins.sagemaker.HPOJobObjective.metric_name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->metricname(), output); + 2, this->metric_name(), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -382,21 +382,21 @@ ::google::protobuf::uint8* HPOJobObjective::InternalSerializeWithCachedSizesToAr ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; if (this->type() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->type(), target); } - // string MetricName = 2; - if (this->metricname().size() > 0) { + // string metric_name = 2; + if (this->metric_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metricname().data(), static_cast(this->metricname().length()), + this->metric_name().data(), static_cast(this->metric_name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.HPOJobObjective.MetricName"); + "flyteidl.plugins.sagemaker.HPOJobObjective.metric_name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->metricname(), target); + 2, this->metric_name(), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -420,14 +420,14 @@ size_t HPOJobObjective::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string MetricName = 2; - if (this->metricname().size() > 0) { + // string metric_name = 2; + if (this->metric_name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->metricname()); + this->metric_name()); } - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; if (this->type() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); @@ -460,9 +460,9 @@ void HPOJobObjective::MergeFrom(const HPOJobObjective& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.metricname().size() > 0) { + if (from.metric_name().size() > 0) { - metricname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metricname_); + metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); } if (from.type() != 0) { set_type(from.type()); @@ -494,7 +494,7 @@ void HPOJobObjective::Swap(HPOJobObjective* other) { void HPOJobObjective::InternalSwap(HPOJobObjective* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - metricname_.Swap(&other->metricname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + metric_name_.Swap(&other->metric_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(type_, other->type_); } @@ -508,23 +508,23 @@ ::google::protobuf::Metadata HPOJobObjective::GetMetadata() const { // =================================================================== void HPOJob::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_HPOJob_default_instance_._instance.get_mutable()->trainingjob_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJob*>( + ::flyteidl::plugins::sagemaker::_HPOJob_default_instance_._instance.get_mutable()->training_job_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJob*>( ::flyteidl::plugins::sagemaker::TrainingJob::internal_default_instance()); } class HPOJob::HasBitSetters { public: - static const ::flyteidl::plugins::sagemaker::TrainingJob& trainingjob(const HPOJob* msg); + static const ::flyteidl::plugins::sagemaker::TrainingJob& training_job(const HPOJob* msg); }; const ::flyteidl::plugins::sagemaker::TrainingJob& -HPOJob::HasBitSetters::trainingjob(const HPOJob* msg) { - return *msg->trainingjob_; +HPOJob::HasBitSetters::training_job(const HPOJob* msg) { + return *msg->training_job_; } -void HPOJob::clear_trainingjob() { - if (GetArenaNoVirtual() == nullptr && trainingjob_ != nullptr) { - delete trainingjob_; +void HPOJob::clear_training_job() { + if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { + delete training_job_; } - trainingjob_ = nullptr; + training_job_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int HPOJob::kMaxNumberOfTrainingJobsFieldNumber; @@ -541,23 +541,23 @@ HPOJob::HPOJob(const HPOJob& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_trainingjob()) { - trainingjob_ = new ::flyteidl::plugins::sagemaker::TrainingJob(*from.trainingjob_); + if (from.has_training_job()) { + training_job_ = new ::flyteidl::plugins::sagemaker::TrainingJob(*from.training_job_); } else { - trainingjob_ = nullptr; + training_job_ = nullptr; } - ::memcpy(&maxnumberoftrainingjobs_, &from.maxnumberoftrainingjobs_, - static_cast(reinterpret_cast(&maxparalleltrainingjobs_) - - reinterpret_cast(&maxnumberoftrainingjobs_)) + sizeof(maxparalleltrainingjobs_)); + ::memcpy(&max_number_of_training_jobs_, &from.max_number_of_training_jobs_, + static_cast(reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJob) } void HPOJob::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); - ::memset(&trainingjob_, 0, static_cast( - reinterpret_cast(&maxparalleltrainingjobs_) - - reinterpret_cast(&trainingjob_)) + sizeof(maxparalleltrainingjobs_)); + ::memset(&training_job_, 0, static_cast( + reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&training_job_)) + sizeof(max_parallel_training_jobs_)); } HPOJob::~HPOJob() { @@ -566,7 +566,7 @@ HPOJob::~HPOJob() { } void HPOJob::SharedDtor() { - if (this != internal_default_instance()) delete trainingjob_; + if (this != internal_default_instance()) delete training_job_; } void HPOJob::SetCachedSize(int size) const { @@ -584,13 +584,13 @@ void HPOJob::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaNoVirtual() == nullptr && trainingjob_ != nullptr) { - delete trainingjob_; + if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { + delete training_job_; } - trainingjob_ = nullptr; - ::memset(&maxnumberoftrainingjobs_, 0, static_cast( - reinterpret_cast(&maxparalleltrainingjobs_) - - reinterpret_cast(&maxnumberoftrainingjobs_)) + sizeof(maxparalleltrainingjobs_)); + training_job_ = nullptr; + ::memset(&max_number_of_training_jobs_, 0, static_cast( + reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); _internal_metadata_.Clear(); } @@ -607,27 +607,27 @@ const char* HPOJob::_InternalParse(const char* begin, const char* end, void* obj ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // int64 MaxNumberOfTrainingJobs = 1; + // int64 max_number_of_training_jobs = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_maxnumberoftrainingjobs(::google::protobuf::internal::ReadVarint(&ptr)); + msg->set_max_number_of_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } - // int64 MaxParallelTrainingJobs = 2; + // int64 max_parallel_training_jobs = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_maxparalleltrainingjobs(::google::protobuf::internal::ReadVarint(&ptr)); + msg->set_max_parallel_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } - // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJob::_InternalParse; - object = msg->mutable_trainingjob(); + object = msg->mutable_training_job(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( @@ -664,37 +664,37 @@ bool HPOJob::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int64 MaxNumberOfTrainingJobs = 1; + // int64 max_number_of_training_jobs = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &maxnumberoftrainingjobs_))); + input, &max_number_of_training_jobs_))); } else { goto handle_unusual; } break; } - // int64 MaxParallelTrainingJobs = 2; + // int64 max_parallel_training_jobs = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &maxparalleltrainingjobs_))); + input, &max_parallel_training_jobs_))); } else { goto handle_unusual; } break; } - // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_trainingjob())); + input, mutable_training_job())); } else { goto handle_unusual; } @@ -728,20 +728,20 @@ void HPOJob::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // int64 MaxNumberOfTrainingJobs = 1; - if (this->maxnumberoftrainingjobs() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->maxnumberoftrainingjobs(), output); + // int64 max_number_of_training_jobs = 1; + if (this->max_number_of_training_jobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->max_number_of_training_jobs(), output); } - // int64 MaxParallelTrainingJobs = 2; - if (this->maxparalleltrainingjobs() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->maxparalleltrainingjobs(), output); + // int64 max_parallel_training_jobs = 2; + if (this->max_parallel_training_jobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max_parallel_training_jobs(), output); } - // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; - if (this->has_trainingjob()) { + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + if (this->has_training_job()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::trainingjob(this), output); + 3, HasBitSetters::training_job(this), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -757,21 +757,21 @@ ::google::protobuf::uint8* HPOJob::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // int64 MaxNumberOfTrainingJobs = 1; - if (this->maxnumberoftrainingjobs() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->maxnumberoftrainingjobs(), target); + // int64 max_number_of_training_jobs = 1; + if (this->max_number_of_training_jobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->max_number_of_training_jobs(), target); } - // int64 MaxParallelTrainingJobs = 2; - if (this->maxparalleltrainingjobs() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->maxparalleltrainingjobs(), target); + // int64 max_parallel_training_jobs = 2; + if (this->max_parallel_training_jobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max_parallel_training_jobs(), target); } - // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; - if (this->has_trainingjob()) { + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + if (this->has_training_job()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 3, HasBitSetters::trainingjob(this), target); + 3, HasBitSetters::training_job(this), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -795,25 +795,25 @@ size_t HPOJob::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; - if (this->has_trainingjob()) { + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + if (this->has_training_job()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *trainingjob_); + *training_job_); } - // int64 MaxNumberOfTrainingJobs = 1; - if (this->maxnumberoftrainingjobs() != 0) { + // int64 max_number_of_training_jobs = 1; + if (this->max_number_of_training_jobs() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( - this->maxnumberoftrainingjobs()); + this->max_number_of_training_jobs()); } - // int64 MaxParallelTrainingJobs = 2; - if (this->maxparalleltrainingjobs() != 0) { + // int64 max_parallel_training_jobs = 2; + if (this->max_parallel_training_jobs() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( - this->maxparalleltrainingjobs()); + this->max_parallel_training_jobs()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -843,14 +843,14 @@ void HPOJob::MergeFrom(const HPOJob& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_trainingjob()) { - mutable_trainingjob()->::flyteidl::plugins::sagemaker::TrainingJob::MergeFrom(from.trainingjob()); + if (from.has_training_job()) { + mutable_training_job()->::flyteidl::plugins::sagemaker::TrainingJob::MergeFrom(from.training_job()); } - if (from.maxnumberoftrainingjobs() != 0) { - set_maxnumberoftrainingjobs(from.maxnumberoftrainingjobs()); + if (from.max_number_of_training_jobs() != 0) { + set_max_number_of_training_jobs(from.max_number_of_training_jobs()); } - if (from.maxparalleltrainingjobs() != 0) { - set_maxparalleltrainingjobs(from.maxparalleltrainingjobs()); + if (from.max_parallel_training_jobs() != 0) { + set_max_parallel_training_jobs(from.max_parallel_training_jobs()); } } @@ -879,9 +879,9 @@ void HPOJob::Swap(HPOJob* other) { void HPOJob::InternalSwap(HPOJob* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(trainingjob_, other->trainingjob_); - swap(maxnumberoftrainingjobs_, other->maxnumberoftrainingjobs_); - swap(maxparalleltrainingjobs_, other->maxparalleltrainingjobs_); + swap(training_job_, other->training_job_); + swap(max_number_of_training_jobs_, other->max_number_of_training_jobs_); + swap(max_parallel_training_jobs_, other->max_parallel_training_jobs_); } ::google::protobuf::Metadata HPOJob::GetMetadata() const { diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h index 35bda0ece..e7a434552 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h @@ -217,21 +217,21 @@ class HPOJobObjective final : // accessors ------------------------------------------------------- - // string MetricName = 2; - void clear_metricname(); + // string metric_name = 2; + void clear_metric_name(); static const int kMetricNameFieldNumber = 2; - const ::std::string& metricname() const; - void set_metricname(const ::std::string& value); + const ::std::string& metric_name() const; + void set_metric_name(const ::std::string& value); #if LANG_CXX11 - void set_metricname(::std::string&& value); + void set_metric_name(::std::string&& value); #endif - void set_metricname(const char* value); - void set_metricname(const char* value, size_t size); - ::std::string* mutable_metricname(); - ::std::string* release_metricname(); - void set_allocated_metricname(::std::string* metricname); + void set_metric_name(const char* value); + void set_metric_name(const char* value, size_t size); + ::std::string* mutable_metric_name(); + ::std::string* release_metric_name(); + void set_allocated_metric_name(::std::string* metric_name); - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; void clear_type(); static const int kTypeFieldNumber = 1; ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType type() const; @@ -242,7 +242,7 @@ class HPOJobObjective final : class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr metricname_; + ::google::protobuf::internal::ArenaStringPtr metric_name_; int type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; @@ -344,35 +344,35 @@ class HPOJob final : // accessors ------------------------------------------------------- - // .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; - bool has_trainingjob() const; - void clear_trainingjob(); + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + bool has_training_job() const; + void clear_training_job(); static const int kTrainingJobFieldNumber = 3; - const ::flyteidl::plugins::sagemaker::TrainingJob& trainingjob() const; - ::flyteidl::plugins::sagemaker::TrainingJob* release_trainingjob(); - ::flyteidl::plugins::sagemaker::TrainingJob* mutable_trainingjob(); - void set_allocated_trainingjob(::flyteidl::plugins::sagemaker::TrainingJob* trainingjob); + const ::flyteidl::plugins::sagemaker::TrainingJob& training_job() const; + ::flyteidl::plugins::sagemaker::TrainingJob* release_training_job(); + ::flyteidl::plugins::sagemaker::TrainingJob* mutable_training_job(); + void set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job); - // int64 MaxNumberOfTrainingJobs = 1; - void clear_maxnumberoftrainingjobs(); + // int64 max_number_of_training_jobs = 1; + void clear_max_number_of_training_jobs(); static const int kMaxNumberOfTrainingJobsFieldNumber = 1; - ::google::protobuf::int64 maxnumberoftrainingjobs() const; - void set_maxnumberoftrainingjobs(::google::protobuf::int64 value); + ::google::protobuf::int64 max_number_of_training_jobs() const; + void set_max_number_of_training_jobs(::google::protobuf::int64 value); - // int64 MaxParallelTrainingJobs = 2; - void clear_maxparalleltrainingjobs(); + // int64 max_parallel_training_jobs = 2; + void clear_max_parallel_training_jobs(); static const int kMaxParallelTrainingJobsFieldNumber = 2; - ::google::protobuf::int64 maxparalleltrainingjobs() const; - void set_maxparalleltrainingjobs(::google::protobuf::int64 value); + ::google::protobuf::int64 max_parallel_training_jobs() const; + void set_max_parallel_training_jobs(::google::protobuf::int64 value); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::sagemaker::TrainingJob* trainingjob_; - ::google::protobuf::int64 maxnumberoftrainingjobs_; - ::google::protobuf::int64 maxparalleltrainingjobs_; + ::flyteidl::plugins::sagemaker::TrainingJob* training_job_; + ::google::protobuf::int64 max_number_of_training_jobs_; + ::google::protobuf::int64 max_parallel_training_jobs_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; }; @@ -387,148 +387,148 @@ class HPOJob final : #endif // __GNUC__ // HPOJobObjective -// .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; +// .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; inline void HPOJobObjective::clear_type() { type_ = 0; } inline ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType HPOJobObjective::type() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.Type) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.type) return static_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType >(type_); } inline void HPOJobObjective::set_type(::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType value) { type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.Type) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.type) } -// string MetricName = 2; -inline void HPOJobObjective::clear_metricname() { - metricname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string metric_name = 2; +inline void HPOJobObjective::clear_metric_name() { + metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& HPOJobObjective::metricname() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) - return metricname_.GetNoArena(); +inline const ::std::string& HPOJobObjective::metric_name() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) + return metric_name_.GetNoArena(); } -inline void HPOJobObjective::set_metricname(const ::std::string& value) { +inline void HPOJobObjective::set_metric_name(const ::std::string& value) { - metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) + metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) } #if LANG_CXX11 -inline void HPOJobObjective::set_metricname(::std::string&& value) { +inline void HPOJobObjective::set_metric_name(::std::string&& value) { - metricname_.SetNoArena( + metric_name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) } #endif -inline void HPOJobObjective::set_metricname(const char* value) { +inline void HPOJobObjective::set_metric_name(const char* value) { GOOGLE_DCHECK(value != nullptr); - metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) + metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) } -inline void HPOJobObjective::set_metricname(const char* value, size_t size) { +inline void HPOJobObjective::set_metric_name(const char* value, size_t size) { - metricname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) } -inline ::std::string* HPOJobObjective::mutable_metricname() { +inline ::std::string* HPOJobObjective::mutable_metric_name() { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) - return metricname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) + return metric_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* HPOJobObjective::release_metricname() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) +inline ::std::string* HPOJobObjective::release_metric_name() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) - return metricname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return metric_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void HPOJobObjective::set_allocated_metricname(::std::string* metricname) { - if (metricname != nullptr) { +inline void HPOJobObjective::set_allocated_metric_name(::std::string* metric_name) { + if (metric_name != nullptr) { } else { } - metricname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metricname); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobObjective.MetricName) + metric_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metric_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) } // ------------------------------------------------------------------- // HPOJob -// int64 MaxNumberOfTrainingJobs = 1; -inline void HPOJob::clear_maxnumberoftrainingjobs() { - maxnumberoftrainingjobs_ = PROTOBUF_LONGLONG(0); +// int64 max_number_of_training_jobs = 1; +inline void HPOJob::clear_max_number_of_training_jobs() { + max_number_of_training_jobs_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 HPOJob::maxnumberoftrainingjobs() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.MaxNumberOfTrainingJobs) - return maxnumberoftrainingjobs_; +inline ::google::protobuf::int64 HPOJob::max_number_of_training_jobs() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs) + return max_number_of_training_jobs_; } -inline void HPOJob::set_maxnumberoftrainingjobs(::google::protobuf::int64 value) { +inline void HPOJob::set_max_number_of_training_jobs(::google::protobuf::int64 value) { - maxnumberoftrainingjobs_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.MaxNumberOfTrainingJobs) + max_number_of_training_jobs_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs) } -// int64 MaxParallelTrainingJobs = 2; -inline void HPOJob::clear_maxparalleltrainingjobs() { - maxparalleltrainingjobs_ = PROTOBUF_LONGLONG(0); +// int64 max_parallel_training_jobs = 2; +inline void HPOJob::clear_max_parallel_training_jobs() { + max_parallel_training_jobs_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 HPOJob::maxparalleltrainingjobs() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.MaxParallelTrainingJobs) - return maxparalleltrainingjobs_; +inline ::google::protobuf::int64 HPOJob::max_parallel_training_jobs() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs) + return max_parallel_training_jobs_; } -inline void HPOJob::set_maxparalleltrainingjobs(::google::protobuf::int64 value) { +inline void HPOJob::set_max_parallel_training_jobs(::google::protobuf::int64 value) { - maxparalleltrainingjobs_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.MaxParallelTrainingJobs) + max_parallel_training_jobs_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs) } -// .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; -inline bool HPOJob::has_trainingjob() const { - return this != internal_default_instance() && trainingjob_ != nullptr; +// .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; +inline bool HPOJob::has_training_job() const { + return this != internal_default_instance() && training_job_ != nullptr; } -inline const ::flyteidl::plugins::sagemaker::TrainingJob& HPOJob::trainingjob() const { - const ::flyteidl::plugins::sagemaker::TrainingJob* p = trainingjob_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.TrainingJob) +inline const ::flyteidl::plugins::sagemaker::TrainingJob& HPOJob::training_job() const { + const ::flyteidl::plugins::sagemaker::TrainingJob* p = training_job_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.training_job) return p != nullptr ? *p : *reinterpret_cast( &::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_); } -inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::release_trainingjob() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.TrainingJob) +inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::release_training_job() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.training_job) - ::flyteidl::plugins::sagemaker::TrainingJob* temp = trainingjob_; - trainingjob_ = nullptr; + ::flyteidl::plugins::sagemaker::TrainingJob* temp = training_job_; + training_job_ = nullptr; return temp; } -inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::mutable_trainingjob() { +inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::mutable_training_job() { - if (trainingjob_ == nullptr) { + if (training_job_ == nullptr) { auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(GetArenaNoVirtual()); - trainingjob_ = p; + training_job_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.TrainingJob) - return trainingjob_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.training_job) + return training_job_; } -inline void HPOJob::set_allocated_trainingjob(::flyteidl::plugins::sagemaker::TrainingJob* trainingjob) { +inline void HPOJob::set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(trainingjob_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(training_job_); } - if (trainingjob) { + if (training_job) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - trainingjob = ::google::protobuf::internal::GetOwnedMessage( - message_arena, trainingjob, submessage_arena); + training_job = ::google::protobuf::internal::GetOwnedMessage( + message_arena, training_job, submessage_arena); } } else { } - trainingjob_ = trainingjob; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.TrainingJob) + training_job_ = training_job; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.training_job) } #ifdef __GNUC__ diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc index 181f169af..58c8d5316 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc @@ -39,9 +39,9 @@ class CategoricalParameterRangeDefaultTypeInternal { class ParameterRangeOneOfDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuousparameterrange_; - const ::flyteidl::plugins::sagemaker::IntegerParameterRange* integerparameterrange_; - const ::flyteidl::plugins::sagemaker::CategoricalParameterRange* categoricalparameterrange_; + const ::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range_; + const ::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range_; + const ::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range_; } _ParameterRangeOneOf_default_instance_; class ParameterRanges_ParameterRangeMapEntry_DoNotUseDefaultTypeInternal { public: @@ -161,17 +161,17 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fpa ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, maxvalue_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, minvalue_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, scalingtype_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, max_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, min_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, scaling_type_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, maxvalue_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, minvalue_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, scalingtype_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, max_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, min_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, scaling_type_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, _internal_metadata_), ~0u, // no _extensions_ @@ -183,9 +183,9 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fpa ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, _oneof_case_[0]), ~0u, // no _weak_field_map_ - offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, continuousparameterrange_), - offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, integerparameterrange_), - offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, categoricalparameterrange_), + offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, continuous_parameter_range_), + offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, integer_parameter_range_), + offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, categorical_parameter_range_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, ParameterRangeTypes_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, _internal_metadata_), @@ -201,7 +201,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fpa ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, parameterrangemap_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, parameter_range_map_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::plugins::sagemaker::ContinuousParameterRange)}, @@ -229,38 +229,38 @@ ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_fl const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[] = "\n0flyteidl/plugins/sagemaker/parameterra" - "nges.proto\022\032flyteidl.plugins.sagemaker\"\212" - "\001\n\030ContinuousParameterRange\022\020\n\010MaxValue\030" - "\001 \001(\001\022\020\n\010MinValue\030\002 \001(\001\022J\n\013ScalingType\030\003" - " \001(\01625.flyteidl.plugins.sagemaker.Hyperp" - "arameterScalingType\"\207\001\n\025IntegerParameter" - "Range\022\020\n\010MaxValue\030\001 \001(\002\022\020\n\010MinValue\030\002 \001(" - "\002\022J\n\013ScalingType\030\003 \001(\01625.flyteidl.plugin" - "s.sagemaker.HyperparameterScalingType\"+\n" - "\031CategoricalParameterRange\022\016\n\006Values\030\001 \003" - "(\t\"\266\002\n\023ParameterRangeOneOf\022X\n\030Continuous" - "ParameterRange\030\001 \001(\01324.flyteidl.plugins." - "sagemaker.ContinuousParameterRangeH\000\022R\n\025" - "IntegerParameterRange\030\002 \001(\01321.flyteidl.p" - "lugins.sagemaker.IntegerParameterRangeH\000" - "\022Z\n\031CategoricalParameterRange\030\003 \001(\01325.fl" - "yteidl.plugins.sagemaker.CategoricalPara" - "meterRangeH\000B\025\n\023ParameterRangeTypes\"\333\001\n\017" - "ParameterRanges\022]\n\021ParameterRangeMap\030\001 \003" - "(\0132B.flyteidl.plugins.sagemaker.Paramete" - "rRanges.ParameterRangeMapEntry\032i\n\026Parame" - "terRangeMapEntry\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002" - " \001(\0132/.flyteidl.plugins.sagemaker.Parame" - "terRangeOneOf:\0028\001*Z\n\031HyperparameterScali" - "ngType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001\022\017\n\013LOGARITH" - "MIC\020\002\022\026\n\022REVERSELOGARITHMIC\020\003B5Z3github." - "com/lyft/flyteidl/gen/pb-go/flyteidl/plu" - "ginsb\006proto3" + "nges.proto\022\032flyteidl.plugins.sagemaker\"\215" + "\001\n\030ContinuousParameterRange\022\021\n\tmax_value" + "\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_typ" + "e\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hyp" + "erparameterScalingType\"\212\001\n\025IntegerParame" + "terRange\022\021\n\tmax_value\030\001 \001(\002\022\021\n\tmin_value" + "\030\002 \001(\002\022K\n\014scaling_type\030\003 \001(\01625.flyteidl." + "plugins.sagemaker.HyperparameterScalingT" + "ype\"+\n\031CategoricalParameterRange\022\016\n\006valu" + "es\030\001 \003(\t\"\274\002\n\023ParameterRangeOneOf\022Z\n\032cont" + "inuous_parameter_range\030\001 \001(\01324.flyteidl." + "plugins.sagemaker.ContinuousParameterRan" + "geH\000\022T\n\027integer_parameter_range\030\002 \001(\01321." + "flyteidl.plugins.sagemaker.IntegerParame" + "terRangeH\000\022\\\n\033categorical_parameter_rang" + "e\030\003 \001(\01325.flyteidl.plugins.sagemaker.Cat" + "egoricalParameterRangeH\000B\025\n\023ParameterRan" + "geTypes\"\335\001\n\017ParameterRanges\022_\n\023parameter" + "_range_map\030\001 \003(\0132B.flyteidl.plugins.sage" + "maker.ParameterRanges.ParameterRangeMapE" + "ntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001 " + "\001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins.sa" + "gemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyper" + "parameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR" + "\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHMI" + "C\020\003B5Z3github.com/lyft/flyteidl/gen/pb-g" + "o/flyteidl/pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, - "flyteidl/plugins/sagemaker/parameterranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, 1092, + "flyteidl/plugins/sagemaker/parameterranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, 1106, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { @@ -315,16 +315,16 @@ ContinuousParameterRange::ContinuousParameterRange(const ContinuousParameterRang : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&maxvalue_, &from.maxvalue_, - static_cast(reinterpret_cast(&scalingtype_) - - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + ::memcpy(&max_value_, &from.max_value_, + static_cast(reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) } void ContinuousParameterRange::SharedCtor() { - ::memset(&maxvalue_, 0, static_cast( - reinterpret_cast(&scalingtype_) - - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + ::memset(&max_value_, 0, static_cast( + reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); } ContinuousParameterRange::~ContinuousParameterRange() { @@ -350,9 +350,9 @@ void ContinuousParameterRange::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&maxvalue_, 0, static_cast( - reinterpret_cast(&scalingtype_) - - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + ::memset(&max_value_, 0, static_cast( + reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); _internal_metadata_.Clear(); } @@ -369,25 +369,25 @@ const char* ContinuousParameterRange::_InternalParse(const char* begin, const ch ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // double MaxValue = 1; + // double max_value = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 9) goto handle_unusual; - msg->set_maxvalue(::google::protobuf::io::UnalignedLoad(ptr)); + msg->set_max_value(::google::protobuf::io::UnalignedLoad(ptr)); ptr += sizeof(double); break; } - // double MinValue = 2; + // double min_value = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 17) goto handle_unusual; - msg->set_minvalue(::google::protobuf::io::UnalignedLoad(ptr)); + msg->set_min_value(::google::protobuf::io::UnalignedLoad(ptr)); ptr += sizeof(double); break; } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_scalingtype(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); + msg->set_scaling_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -418,40 +418,40 @@ bool ContinuousParameterRange::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // double MaxValue = 1; + // double max_value = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (9 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &maxvalue_))); + input, &max_value_))); } else { goto handle_unusual; } break; } - // double MinValue = 2; + // double min_value = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (17 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &minvalue_))); + input, &min_value_))); } else { goto handle_unusual; } break; } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - set_scalingtype(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); + set_scaling_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); } else { goto handle_unusual; } @@ -485,20 +485,20 @@ void ContinuousParameterRange::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // double MaxValue = 1; - if (this->maxvalue() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->maxvalue(), output); + // double max_value = 1; + if (this->max_value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->max_value(), output); } - // double MinValue = 2; - if (this->minvalue() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->minvalue(), output); + // double min_value = 2; + if (this->min_value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->min_value(), output); } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; - if (this->scalingtype() != 0) { + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + if (this->scaling_type() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->scalingtype(), output); + 3, this->scaling_type(), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -514,20 +514,20 @@ ::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCached ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // double MaxValue = 1; - if (this->maxvalue() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->maxvalue(), target); + // double max_value = 1; + if (this->max_value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->max_value(), target); } - // double MinValue = 2; - if (this->minvalue() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->minvalue(), target); + // double min_value = 2; + if (this->min_value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->min_value(), target); } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; - if (this->scalingtype() != 0) { + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + if (this->scaling_type() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->scalingtype(), target); + 3, this->scaling_type(), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -551,20 +551,20 @@ size_t ContinuousParameterRange::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // double MaxValue = 1; - if (this->maxvalue() != 0) { + // double max_value = 1; + if (this->max_value() != 0) { total_size += 1 + 8; } - // double MinValue = 2; - if (this->minvalue() != 0) { + // double min_value = 2; + if (this->min_value() != 0) { total_size += 1 + 8; } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; - if (this->scalingtype() != 0) { + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + if (this->scaling_type() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->scalingtype()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scaling_type()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -594,14 +594,14 @@ void ContinuousParameterRange::MergeFrom(const ContinuousParameterRange& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.maxvalue() != 0) { - set_maxvalue(from.maxvalue()); + if (from.max_value() != 0) { + set_max_value(from.max_value()); } - if (from.minvalue() != 0) { - set_minvalue(from.minvalue()); + if (from.min_value() != 0) { + set_min_value(from.min_value()); } - if (from.scalingtype() != 0) { - set_scalingtype(from.scalingtype()); + if (from.scaling_type() != 0) { + set_scaling_type(from.scaling_type()); } } @@ -630,9 +630,9 @@ void ContinuousParameterRange::Swap(ContinuousParameterRange* other) { void ContinuousParameterRange::InternalSwap(ContinuousParameterRange* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(maxvalue_, other->maxvalue_); - swap(minvalue_, other->minvalue_); - swap(scalingtype_, other->scalingtype_); + swap(max_value_, other->max_value_); + swap(min_value_, other->min_value_); + swap(scaling_type_, other->scaling_type_); } ::google::protobuf::Metadata ContinuousParameterRange::GetMetadata() const { @@ -664,16 +664,16 @@ IntegerParameterRange::IntegerParameterRange(const IntegerParameterRange& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&maxvalue_, &from.maxvalue_, - static_cast(reinterpret_cast(&scalingtype_) - - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + ::memcpy(&max_value_, &from.max_value_, + static_cast(reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.IntegerParameterRange) } void IntegerParameterRange::SharedCtor() { - ::memset(&maxvalue_, 0, static_cast( - reinterpret_cast(&scalingtype_) - - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + ::memset(&max_value_, 0, static_cast( + reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); } IntegerParameterRange::~IntegerParameterRange() { @@ -699,9 +699,9 @@ void IntegerParameterRange::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&maxvalue_, 0, static_cast( - reinterpret_cast(&scalingtype_) - - reinterpret_cast(&maxvalue_)) + sizeof(scalingtype_)); + ::memset(&max_value_, 0, static_cast( + reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); _internal_metadata_.Clear(); } @@ -718,25 +718,25 @@ const char* IntegerParameterRange::_InternalParse(const char* begin, const char* ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // float MaxValue = 1; + // float max_value = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 13) goto handle_unusual; - msg->set_maxvalue(::google::protobuf::io::UnalignedLoad(ptr)); + msg->set_max_value(::google::protobuf::io::UnalignedLoad(ptr)); ptr += sizeof(float); break; } - // float MinValue = 2; + // float min_value = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 21) goto handle_unusual; - msg->set_minvalue(::google::protobuf::io::UnalignedLoad(ptr)); + msg->set_min_value(::google::protobuf::io::UnalignedLoad(ptr)); ptr += sizeof(float); break; } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_scalingtype(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); + msg->set_scaling_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -767,40 +767,40 @@ bool IntegerParameterRange::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // float MaxValue = 1; + // float max_value = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (13 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &maxvalue_))); + input, &max_value_))); } else { goto handle_unusual; } break; } - // float MinValue = 2; + // float min_value = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (21 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &minvalue_))); + input, &min_value_))); } else { goto handle_unusual; } break; } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - set_scalingtype(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); + set_scaling_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); } else { goto handle_unusual; } @@ -834,20 +834,20 @@ void IntegerParameterRange::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // float MaxValue = 1; - if (this->maxvalue() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->maxvalue(), output); + // float max_value = 1; + if (this->max_value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->max_value(), output); } - // float MinValue = 2; - if (this->minvalue() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->minvalue(), output); + // float min_value = 2; + if (this->min_value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->min_value(), output); } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; - if (this->scalingtype() != 0) { + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + if (this->scaling_type() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->scalingtype(), output); + 3, this->scaling_type(), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -863,20 +863,20 @@ ::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSiz ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // float MaxValue = 1; - if (this->maxvalue() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->maxvalue(), target); + // float max_value = 1; + if (this->max_value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->max_value(), target); } - // float MinValue = 2; - if (this->minvalue() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->minvalue(), target); + // float min_value = 2; + if (this->min_value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->min_value(), target); } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; - if (this->scalingtype() != 0) { + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + if (this->scaling_type() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->scalingtype(), target); + 3, this->scaling_type(), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -900,20 +900,20 @@ size_t IntegerParameterRange::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // float MaxValue = 1; - if (this->maxvalue() != 0) { + // float max_value = 1; + if (this->max_value() != 0) { total_size += 1 + 4; } - // float MinValue = 2; - if (this->minvalue() != 0) { + // float min_value = 2; + if (this->min_value() != 0) { total_size += 1 + 4; } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; - if (this->scalingtype() != 0) { + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + if (this->scaling_type() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->scalingtype()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scaling_type()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -943,14 +943,14 @@ void IntegerParameterRange::MergeFrom(const IntegerParameterRange& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.maxvalue() != 0) { - set_maxvalue(from.maxvalue()); + if (from.max_value() != 0) { + set_max_value(from.max_value()); } - if (from.minvalue() != 0) { - set_minvalue(from.minvalue()); + if (from.min_value() != 0) { + set_min_value(from.min_value()); } - if (from.scalingtype() != 0) { - set_scalingtype(from.scalingtype()); + if (from.scaling_type() != 0) { + set_scaling_type(from.scaling_type()); } } @@ -979,9 +979,9 @@ void IntegerParameterRange::Swap(IntegerParameterRange* other) { void IntegerParameterRange::InternalSwap(IntegerParameterRange* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(maxvalue_, other->maxvalue_); - swap(minvalue_, other->minvalue_); - swap(scalingtype_, other->scalingtype_); + swap(max_value_, other->max_value_); + swap(min_value_, other->min_value_); + swap(scaling_type_, other->scaling_type_); } ::google::protobuf::Metadata IntegerParameterRange::GetMetadata() const { @@ -1060,13 +1060,13 @@ const char* CategoricalParameterRange::_InternalParse(const char* begin, const c ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // repeated string Values = 1; + // repeated string values = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.CategoricalParameterRange.Values"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.CategoricalParameterRange.values"); object = msg->add_values(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -1113,7 +1113,7 @@ bool CategoricalParameterRange::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string Values = 1; + // repeated string values = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( @@ -1122,7 +1122,7 @@ bool CategoricalParameterRange::MergePartialFromCodedStream( this->values(this->values_size() - 1).data(), static_cast(this->values(this->values_size() - 1).length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.CategoricalParameterRange.Values")); + "flyteidl.plugins.sagemaker.CategoricalParameterRange.values")); } else { goto handle_unusual; } @@ -1156,12 +1156,12 @@ void CategoricalParameterRange::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated string Values = 1; + // repeated string values = 1; for (int i = 0, n = this->values_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->values(i).data(), static_cast(this->values(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.CategoricalParameterRange.Values"); + "flyteidl.plugins.sagemaker.CategoricalParameterRange.values"); ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->values(i), output); } @@ -1179,12 +1179,12 @@ ::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCache ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated string Values = 1; + // repeated string values = 1; for (int i = 0, n = this->values_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->values(i).data(), static_cast(this->values(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.CategoricalParameterRange.Values"); + "flyteidl.plugins.sagemaker.CategoricalParameterRange.values"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(1, this->values(i), target); } @@ -1210,7 +1210,7 @@ size_t CategoricalParameterRange::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated string Values = 1; + // repeated string values = 1; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->values_size()); for (int i = 0, n = this->values_size(); i < n; i++) { @@ -1285,73 +1285,73 @@ ::google::protobuf::Metadata CategoricalParameterRange::GetMetadata() const { // =================================================================== void ParameterRangeOneOf::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.continuousparameterrange_ = const_cast< ::flyteidl::plugins::sagemaker::ContinuousParameterRange*>( + ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.continuous_parameter_range_ = const_cast< ::flyteidl::plugins::sagemaker::ContinuousParameterRange*>( ::flyteidl::plugins::sagemaker::ContinuousParameterRange::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.integerparameterrange_ = const_cast< ::flyteidl::plugins::sagemaker::IntegerParameterRange*>( + ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.integer_parameter_range_ = const_cast< ::flyteidl::plugins::sagemaker::IntegerParameterRange*>( ::flyteidl::plugins::sagemaker::IntegerParameterRange::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.categoricalparameterrange_ = const_cast< ::flyteidl::plugins::sagemaker::CategoricalParameterRange*>( + ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.categorical_parameter_range_ = const_cast< ::flyteidl::plugins::sagemaker::CategoricalParameterRange*>( ::flyteidl::plugins::sagemaker::CategoricalParameterRange::internal_default_instance()); } class ParameterRangeOneOf::HasBitSetters { public: - static const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuousparameterrange(const ParameterRangeOneOf* msg); - static const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integerparameterrange(const ParameterRangeOneOf* msg); - static const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categoricalparameterrange(const ParameterRangeOneOf* msg); + static const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuous_parameter_range(const ParameterRangeOneOf* msg); + static const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integer_parameter_range(const ParameterRangeOneOf* msg); + static const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categorical_parameter_range(const ParameterRangeOneOf* msg); }; const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& -ParameterRangeOneOf::HasBitSetters::continuousparameterrange(const ParameterRangeOneOf* msg) { - return *msg->ParameterRangeTypes_.continuousparameterrange_; +ParameterRangeOneOf::HasBitSetters::continuous_parameter_range(const ParameterRangeOneOf* msg) { + return *msg->ParameterRangeTypes_.continuous_parameter_range_; } const ::flyteidl::plugins::sagemaker::IntegerParameterRange& -ParameterRangeOneOf::HasBitSetters::integerparameterrange(const ParameterRangeOneOf* msg) { - return *msg->ParameterRangeTypes_.integerparameterrange_; +ParameterRangeOneOf::HasBitSetters::integer_parameter_range(const ParameterRangeOneOf* msg) { + return *msg->ParameterRangeTypes_.integer_parameter_range_; } const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& -ParameterRangeOneOf::HasBitSetters::categoricalparameterrange(const ParameterRangeOneOf* msg) { - return *msg->ParameterRangeTypes_.categoricalparameterrange_; +ParameterRangeOneOf::HasBitSetters::categorical_parameter_range(const ParameterRangeOneOf* msg) { + return *msg->ParameterRangeTypes_.categorical_parameter_range_; } -void ParameterRangeOneOf::set_allocated_continuousparameterrange(::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuousparameterrange) { +void ParameterRangeOneOf::set_allocated_continuous_parameter_range(::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_ParameterRangeTypes(); - if (continuousparameterrange) { + if (continuous_parameter_range) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - continuousparameterrange = ::google::protobuf::internal::GetOwnedMessage( - message_arena, continuousparameterrange, submessage_arena); + continuous_parameter_range = ::google::protobuf::internal::GetOwnedMessage( + message_arena, continuous_parameter_range, submessage_arena); } - set_has_continuousparameterrange(); - ParameterRangeTypes_.continuousparameterrange_ = continuousparameterrange; + set_has_continuous_parameter_range(); + ParameterRangeTypes_.continuous_parameter_range_ = continuous_parameter_range; } - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.ContinuousParameterRange) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) } -void ParameterRangeOneOf::set_allocated_integerparameterrange(::flyteidl::plugins::sagemaker::IntegerParameterRange* integerparameterrange) { +void ParameterRangeOneOf::set_allocated_integer_parameter_range(::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_ParameterRangeTypes(); - if (integerparameterrange) { + if (integer_parameter_range) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - integerparameterrange = ::google::protobuf::internal::GetOwnedMessage( - message_arena, integerparameterrange, submessage_arena); + integer_parameter_range = ::google::protobuf::internal::GetOwnedMessage( + message_arena, integer_parameter_range, submessage_arena); } - set_has_integerparameterrange(); - ParameterRangeTypes_.integerparameterrange_ = integerparameterrange; + set_has_integer_parameter_range(); + ParameterRangeTypes_.integer_parameter_range_ = integer_parameter_range; } - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.IntegerParameterRange) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) } -void ParameterRangeOneOf::set_allocated_categoricalparameterrange(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categoricalparameterrange) { +void ParameterRangeOneOf::set_allocated_categorical_parameter_range(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_ParameterRangeTypes(); - if (categoricalparameterrange) { + if (categorical_parameter_range) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - categoricalparameterrange = ::google::protobuf::internal::GetOwnedMessage( - message_arena, categoricalparameterrange, submessage_arena); + categorical_parameter_range = ::google::protobuf::internal::GetOwnedMessage( + message_arena, categorical_parameter_range, submessage_arena); } - set_has_categoricalparameterrange(); - ParameterRangeTypes_.categoricalparameterrange_ = categoricalparameterrange; + set_has_categorical_parameter_range(); + ParameterRangeTypes_.categorical_parameter_range_ = categorical_parameter_range; } - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.CategoricalParameterRange) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ParameterRangeOneOf::kContinuousParameterRangeFieldNumber; @@ -1371,15 +1371,15 @@ ParameterRangeOneOf::ParameterRangeOneOf(const ParameterRangeOneOf& from) clear_has_ParameterRangeTypes(); switch (from.ParameterRangeTypes_case()) { case kContinuousParameterRange: { - mutable_continuousparameterrange()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuousparameterrange()); + mutable_continuous_parameter_range()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuous_parameter_range()); break; } case kIntegerParameterRange: { - mutable_integerparameterrange()->::flyteidl::plugins::sagemaker::IntegerParameterRange::MergeFrom(from.integerparameterrange()); + mutable_integer_parameter_range()->::flyteidl::plugins::sagemaker::IntegerParameterRange::MergeFrom(from.integer_parameter_range()); break; } case kCategoricalParameterRange: { - mutable_categoricalparameterrange()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categoricalparameterrange()); + mutable_categorical_parameter_range()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categorical_parameter_range()); break; } case PARAMETERRANGETYPES_NOT_SET: { @@ -1419,15 +1419,15 @@ void ParameterRangeOneOf::clear_ParameterRangeTypes() { // @@protoc_insertion_point(one_of_clear_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) switch (ParameterRangeTypes_case()) { case kContinuousParameterRange: { - delete ParameterRangeTypes_.continuousparameterrange_; + delete ParameterRangeTypes_.continuous_parameter_range_; break; } case kIntegerParameterRange: { - delete ParameterRangeTypes_.integerparameterrange_; + delete ParameterRangeTypes_.integer_parameter_range_; break; } case kCategoricalParameterRange: { - delete ParameterRangeTypes_.categoricalparameterrange_; + delete ParameterRangeTypes_.categorical_parameter_range_; break; } case PARAMETERRANGETYPES_NOT_SET: { @@ -1461,39 +1461,39 @@ const char* ParameterRangeOneOf::_InternalParse(const char* begin, const char* e ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::plugins::sagemaker::ContinuousParameterRange::_InternalParse; - object = msg->mutable_continuousparameterrange(); + object = msg->mutable_continuous_parameter_range(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::plugins::sagemaker::IntegerParameterRange::_InternalParse; - object = msg->mutable_integerparameterrange(); + object = msg->mutable_integer_parameter_range(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::plugins::sagemaker::CategoricalParameterRange::_InternalParse; - object = msg->mutable_categoricalparameterrange(); + object = msg->mutable_categorical_parameter_range(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( @@ -1530,33 +1530,33 @@ bool ParameterRangeOneOf::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_continuousparameterrange())); + input, mutable_continuous_parameter_range())); } else { goto handle_unusual; } break; } - // .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_integerparameterrange())); + input, mutable_integer_parameter_range())); } else { goto handle_unusual; } break; } - // .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_categoricalparameterrange())); + input, mutable_categorical_parameter_range())); } else { goto handle_unusual; } @@ -1590,22 +1590,22 @@ void ParameterRangeOneOf::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; - if (has_continuousparameterrange()) { + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + if (has_continuous_parameter_range()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::continuousparameterrange(this), output); + 1, HasBitSetters::continuous_parameter_range(this), output); } - // .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; - if (has_integerparameterrange()) { + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + if (has_integer_parameter_range()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::integerparameterrange(this), output); + 2, HasBitSetters::integer_parameter_range(this), output); } - // .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; - if (has_categoricalparameterrange()) { + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + if (has_categorical_parameter_range()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::categoricalparameterrange(this), output); + 3, HasBitSetters::categorical_parameter_range(this), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -1621,25 +1621,25 @@ ::google::protobuf::uint8* ParameterRangeOneOf::InternalSerializeWithCachedSizes ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; - if (has_continuousparameterrange()) { + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + if (has_continuous_parameter_range()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::continuousparameterrange(this), target); + 1, HasBitSetters::continuous_parameter_range(this), target); } - // .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; - if (has_integerparameterrange()) { + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + if (has_integer_parameter_range()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 2, HasBitSetters::integerparameterrange(this), target); + 2, HasBitSetters::integer_parameter_range(this), target); } - // .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; - if (has_categoricalparameterrange()) { + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + if (has_categorical_parameter_range()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 3, HasBitSetters::categoricalparameterrange(this), target); + 3, HasBitSetters::categorical_parameter_range(this), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -1664,25 +1664,25 @@ size_t ParameterRangeOneOf::ByteSizeLong() const { (void) cached_has_bits; switch (ParameterRangeTypes_case()) { - // .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; case kContinuousParameterRange: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *ParameterRangeTypes_.continuousparameterrange_); + *ParameterRangeTypes_.continuous_parameter_range_); break; } - // .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; case kIntegerParameterRange: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *ParameterRangeTypes_.integerparameterrange_); + *ParameterRangeTypes_.integer_parameter_range_); break; } - // .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; case kCategoricalParameterRange: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *ParameterRangeTypes_.categoricalparameterrange_); + *ParameterRangeTypes_.categorical_parameter_range_); break; } case PARAMETERRANGETYPES_NOT_SET: { @@ -1718,15 +1718,15 @@ void ParameterRangeOneOf::MergeFrom(const ParameterRangeOneOf& from) { switch (from.ParameterRangeTypes_case()) { case kContinuousParameterRange: { - mutable_continuousparameterrange()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuousparameterrange()); + mutable_continuous_parameter_range()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuous_parameter_range()); break; } case kIntegerParameterRange: { - mutable_integerparameterrange()->::flyteidl::plugins::sagemaker::IntegerParameterRange::MergeFrom(from.integerparameterrange()); + mutable_integer_parameter_range()->::flyteidl::plugins::sagemaker::IntegerParameterRange::MergeFrom(from.integer_parameter_range()); break; } case kCategoricalParameterRange: { - mutable_categoricalparameterrange()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categoricalparameterrange()); + mutable_categorical_parameter_range()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categorical_parameter_range()); break; } case PARAMETERRANGETYPES_NOT_SET: { @@ -1828,7 +1828,7 @@ ParameterRanges::ParameterRanges(const ParameterRanges& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - parameterrangemap_.MergeFrom(from.parameterrangemap_); + parameter_range_map_.MergeFrom(from.parameter_range_map_); // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ParameterRanges) } @@ -1860,7 +1860,7 @@ void ParameterRanges::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - parameterrangemap_.Clear(); + parameter_range_map_.Clear(); _internal_metadata_.Clear(); } @@ -1877,7 +1877,7 @@ const char* ParameterRanges::_InternalParse(const char* begin, const char* end, ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // map ParameterRangeMap = 1; + // map parameter_range_map = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; do { @@ -1887,7 +1887,7 @@ const char* ParameterRanges::_InternalParse(const char* begin, const char* end, auto parse_map = ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse::_ParseMap; ctx->extra_parse_data().payload.clear(); ctx->extra_parse_data().parse_map = parse_map; - object = &msg->parameterrangemap_; + object = &msg->parameter_range_map_; if (size > end - ptr) goto len_delim_till_end; auto newend = ptr + size; GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); @@ -1926,7 +1926,7 @@ bool ParameterRanges::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // map ParameterRangeMap = 1; + // map parameter_range_map = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { ParameterRanges_ParameterRangeMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< @@ -1935,7 +1935,7 @@ bool ParameterRanges::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0 >, - ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf > > parser(¶meterrangemap_); + ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf > > parser(¶meter_range_map_); DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, &parser)); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1975,8 +1975,8 @@ void ParameterRanges::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // map ParameterRangeMap = 1; - if (!this->parameterrangemap().empty()) { + // map parameter_range_map = 1; + if (!this->parameter_range_map().empty()) { typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_pointer ConstPtr; typedef ConstPtr SortItem; @@ -1991,29 +1991,29 @@ void ParameterRanges::SerializeWithCachedSizes( }; if (output->IsSerializationDeterministic() && - this->parameterrangemap().size() > 1) { + this->parameter_range_map().size() > 1) { ::std::unique_ptr items( - new SortItem[this->parameterrangemap().size()]); + new SortItem[this->parameter_range_map().size()]); typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator - it = this->parameterrangemap().begin(); - it != this->parameterrangemap().end(); ++it, ++n) { + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it, ++n) { items[static_cast(n)] = SortItem(&*it); } ::std::sort(&items[0], &items[static_cast(n)], Less()); ::std::unique_ptr entry; for (size_type i = 0; i < n; i++) { - entry.reset(parameterrangemap_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + entry.reset(parameter_range_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); Utf8Check::Check(&(*items[static_cast(i)])); } } else { ::std::unique_ptr entry; for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator - it = this->parameterrangemap().begin(); - it != this->parameterrangemap().end(); ++it) { - entry.reset(parameterrangemap_.NewEntryWrapper(it->first, it->second)); + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it) { + entry.reset(parameter_range_map_.NewEntryWrapper(it->first, it->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); Utf8Check::Check(&(*it)); } @@ -2033,8 +2033,8 @@ ::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToAr ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // map ParameterRangeMap = 1; - if (!this->parameterrangemap().empty()) { + // map parameter_range_map = 1; + if (!this->parameter_range_map().empty()) { typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_pointer ConstPtr; typedef ConstPtr SortItem; @@ -2049,29 +2049,29 @@ ::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToAr }; if (false && - this->parameterrangemap().size() > 1) { + this->parameter_range_map().size() > 1) { ::std::unique_ptr items( - new SortItem[this->parameterrangemap().size()]); + new SortItem[this->parameter_range_map().size()]); typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator - it = this->parameterrangemap().begin(); - it != this->parameterrangemap().end(); ++it, ++n) { + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it, ++n) { items[static_cast(n)] = SortItem(&*it); } ::std::sort(&items[0], &items[static_cast(n)], Less()); ::std::unique_ptr entry; for (size_type i = 0; i < n; i++) { - entry.reset(parameterrangemap_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + entry.reset(parameter_range_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); Utf8Check::Check(&(*items[static_cast(i)])); } } else { ::std::unique_ptr entry; for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator - it = this->parameterrangemap().begin(); - it != this->parameterrangemap().end(); ++it) { - entry.reset(parameterrangemap_.NewEntryWrapper(it->first, it->second)); + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it) { + entry.reset(parameter_range_map_.NewEntryWrapper(it->first, it->second)); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); Utf8Check::Check(&(*it)); } @@ -2099,15 +2099,15 @@ size_t ParameterRanges::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // map ParameterRangeMap = 1; + // map parameter_range_map = 1; total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->parameterrangemap_size()); + ::google::protobuf::internal::FromIntSize(this->parameter_range_map_size()); { ::std::unique_ptr entry; for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator - it = this->parameterrangemap().begin(); - it != this->parameterrangemap().end(); ++it) { - entry.reset(parameterrangemap_.NewEntryWrapper(it->first, it->second)); + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it) { + entry.reset(parameter_range_map_.NewEntryWrapper(it->first, it->second)); total_size += ::google::protobuf::internal::WireFormatLite:: MessageSizeNoVirtual(*entry); } @@ -2140,7 +2140,7 @@ void ParameterRanges::MergeFrom(const ParameterRanges& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - parameterrangemap_.MergeFrom(from.parameterrangemap_); + parameter_range_map_.MergeFrom(from.parameter_range_map_); } void ParameterRanges::CopyFrom(const ::google::protobuf::Message& from) { @@ -2168,7 +2168,7 @@ void ParameterRanges::Swap(ParameterRanges* other) { void ParameterRanges::InternalSwap(ParameterRanges* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - parameterrangemap_.Swap(&other->parameterrangemap_); + parameter_range_map_.Swap(&other->parameter_range_map_); } ::google::protobuf::Metadata ParameterRanges::GetMetadata() const { diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h index 13a089e9e..a27266b46 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h @@ -210,32 +210,32 @@ class ContinuousParameterRange final : // accessors ------------------------------------------------------- - // double MaxValue = 1; - void clear_maxvalue(); + // double max_value = 1; + void clear_max_value(); static const int kMaxValueFieldNumber = 1; - double maxvalue() const; - void set_maxvalue(double value); + double max_value() const; + void set_max_value(double value); - // double MinValue = 2; - void clear_minvalue(); + // double min_value = 2; + void clear_min_value(); static const int kMinValueFieldNumber = 2; - double minvalue() const; - void set_minvalue(double value); + double min_value() const; + void set_min_value(double value); - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; - void clear_scalingtype(); + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + void clear_scaling_type(); static const int kScalingTypeFieldNumber = 3; - ::flyteidl::plugins::sagemaker::HyperparameterScalingType scalingtype() const; - void set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); + ::flyteidl::plugins::sagemaker::HyperparameterScalingType scaling_type() const; + void set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - double maxvalue_; - double minvalue_; - int scalingtype_; + double max_value_; + double min_value_; + int scaling_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; }; @@ -336,32 +336,32 @@ class IntegerParameterRange final : // accessors ------------------------------------------------------- - // float MaxValue = 1; - void clear_maxvalue(); + // float max_value = 1; + void clear_max_value(); static const int kMaxValueFieldNumber = 1; - float maxvalue() const; - void set_maxvalue(float value); + float max_value() const; + void set_max_value(float value); - // float MinValue = 2; - void clear_minvalue(); + // float min_value = 2; + void clear_min_value(); static const int kMinValueFieldNumber = 2; - float minvalue() const; - void set_minvalue(float value); + float min_value() const; + void set_min_value(float value); - // .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; - void clear_scalingtype(); + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + void clear_scaling_type(); static const int kScalingTypeFieldNumber = 3; - ::flyteidl::plugins::sagemaker::HyperparameterScalingType scalingtype() const; - void set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); + ::flyteidl::plugins::sagemaker::HyperparameterScalingType scaling_type() const; + void set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - float maxvalue_; - float minvalue_; - int scalingtype_; + float max_value_; + float min_value_; + int scaling_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; }; @@ -462,7 +462,7 @@ class CategoricalParameterRange final : // accessors ------------------------------------------------------- - // repeated string Values = 1; + // repeated string values = 1; int values_size() const; void clear_values(); static const int kValuesFieldNumber = 1; @@ -597,41 +597,41 @@ class ParameterRangeOneOf final : // accessors ------------------------------------------------------- - // .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; - bool has_continuousparameterrange() const; - void clear_continuousparameterrange(); + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + bool has_continuous_parameter_range() const; + void clear_continuous_parameter_range(); static const int kContinuousParameterRangeFieldNumber = 1; - const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuousparameterrange() const; - ::flyteidl::plugins::sagemaker::ContinuousParameterRange* release_continuousparameterrange(); - ::flyteidl::plugins::sagemaker::ContinuousParameterRange* mutable_continuousparameterrange(); - void set_allocated_continuousparameterrange(::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuousparameterrange); - - // .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; - bool has_integerparameterrange() const; - void clear_integerparameterrange(); + const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuous_parameter_range() const; + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* release_continuous_parameter_range(); + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* mutable_continuous_parameter_range(); + void set_allocated_continuous_parameter_range(::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range); + + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + bool has_integer_parameter_range() const; + void clear_integer_parameter_range(); static const int kIntegerParameterRangeFieldNumber = 2; - const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integerparameterrange() const; - ::flyteidl::plugins::sagemaker::IntegerParameterRange* release_integerparameterrange(); - ::flyteidl::plugins::sagemaker::IntegerParameterRange* mutable_integerparameterrange(); - void set_allocated_integerparameterrange(::flyteidl::plugins::sagemaker::IntegerParameterRange* integerparameterrange); - - // .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; - bool has_categoricalparameterrange() const; - void clear_categoricalparameterrange(); + const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integer_parameter_range() const; + ::flyteidl::plugins::sagemaker::IntegerParameterRange* release_integer_parameter_range(); + ::flyteidl::plugins::sagemaker::IntegerParameterRange* mutable_integer_parameter_range(); + void set_allocated_integer_parameter_range(::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range); + + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + bool has_categorical_parameter_range() const; + void clear_categorical_parameter_range(); static const int kCategoricalParameterRangeFieldNumber = 3; - const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categoricalparameterrange() const; - ::flyteidl::plugins::sagemaker::CategoricalParameterRange* release_categoricalparameterrange(); - ::flyteidl::plugins::sagemaker::CategoricalParameterRange* mutable_categoricalparameterrange(); - void set_allocated_categoricalparameterrange(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categoricalparameterrange); + const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categorical_parameter_range() const; + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* release_categorical_parameter_range(); + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* mutable_categorical_parameter_range(); + void set_allocated_categorical_parameter_range(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range); void clear_ParameterRangeTypes(); ParameterRangeTypesCase ParameterRangeTypes_case() const; // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) private: class HasBitSetters; - void set_has_continuousparameterrange(); - void set_has_integerparameterrange(); - void set_has_categoricalparameterrange(); + void set_has_continuous_parameter_range(); + void set_has_integer_parameter_range(); + void set_has_categorical_parameter_range(); inline bool has_ParameterRangeTypes() const; inline void clear_has_ParameterRangeTypes(); @@ -639,9 +639,9 @@ class ParameterRangeOneOf final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; union ParameterRangeTypesUnion { ParameterRangeTypesUnion() {} - ::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuousparameterrange_; - ::flyteidl::plugins::sagemaker::IntegerParameterRange* integerparameterrange_; - ::flyteidl::plugins::sagemaker::CategoricalParameterRange* categoricalparameterrange_; + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range_; + ::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range_; + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range_; } ParameterRangeTypes_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 _oneof_case_[1]; @@ -770,14 +770,14 @@ class ParameterRanges final : // accessors ------------------------------------------------------- - // map ParameterRangeMap = 1; - int parameterrangemap_size() const; - void clear_parameterrangemap(); + // map parameter_range_map = 1; + int parameter_range_map_size() const; + void clear_parameter_range_map(); static const int kParameterRangeMapFieldNumber = 1; const ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >& - parameterrangemap() const; + parameter_range_map() const; ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >* - mutable_parameterrangemap(); + mutable_parameter_range_map(); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) private: @@ -789,7 +789,7 @@ class ParameterRanges final : ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > parameterrangemap_; + 0 > parameter_range_map_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; }; @@ -804,99 +804,99 @@ class ParameterRanges final : #endif // __GNUC__ // ContinuousParameterRange -// double MaxValue = 1; -inline void ContinuousParameterRange::clear_maxvalue() { - maxvalue_ = 0; +// double max_value = 1; +inline void ContinuousParameterRange::clear_max_value() { + max_value_ = 0; } -inline double ContinuousParameterRange::maxvalue() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue) - return maxvalue_; +inline double ContinuousParameterRange::max_value() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value) + return max_value_; } -inline void ContinuousParameterRange::set_maxvalue(double value) { +inline void ContinuousParameterRange::set_max_value(double value) { - maxvalue_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue) + max_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value) } -// double MinValue = 2; -inline void ContinuousParameterRange::clear_minvalue() { - minvalue_ = 0; +// double min_value = 2; +inline void ContinuousParameterRange::clear_min_value() { + min_value_ = 0; } -inline double ContinuousParameterRange::minvalue() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue) - return minvalue_; +inline double ContinuousParameterRange::min_value() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value) + return min_value_; } -inline void ContinuousParameterRange::set_minvalue(double value) { +inline void ContinuousParameterRange::set_min_value(double value) { - minvalue_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue) + min_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value) } -// .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; -inline void ContinuousParameterRange::clear_scalingtype() { - scalingtype_ = 0; +// .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; +inline void ContinuousParameterRange::clear_scaling_type() { + scaling_type_ = 0; } -inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType ContinuousParameterRange::scalingtype() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType) - return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scalingtype_); +inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType ContinuousParameterRange::scaling_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scaling_type_); } -inline void ContinuousParameterRange::set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { +inline void ContinuousParameterRange::set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { - scalingtype_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType) + scaling_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type) } // ------------------------------------------------------------------- // IntegerParameterRange -// float MaxValue = 1; -inline void IntegerParameterRange::clear_maxvalue() { - maxvalue_ = 0; +// float max_value = 1; +inline void IntegerParameterRange::clear_max_value() { + max_value_ = 0; } -inline float IntegerParameterRange::maxvalue() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue) - return maxvalue_; +inline float IntegerParameterRange::max_value() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.max_value) + return max_value_; } -inline void IntegerParameterRange::set_maxvalue(float value) { +inline void IntegerParameterRange::set_max_value(float value) { - maxvalue_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue) + max_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.max_value) } -// float MinValue = 2; -inline void IntegerParameterRange::clear_minvalue() { - minvalue_ = 0; +// float min_value = 2; +inline void IntegerParameterRange::clear_min_value() { + min_value_ = 0; } -inline float IntegerParameterRange::minvalue() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue) - return minvalue_; +inline float IntegerParameterRange::min_value() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.min_value) + return min_value_; } -inline void IntegerParameterRange::set_minvalue(float value) { +inline void IntegerParameterRange::set_min_value(float value) { - minvalue_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue) + min_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.min_value) } -// .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; -inline void IntegerParameterRange::clear_scalingtype() { - scalingtype_ = 0; +// .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; +inline void IntegerParameterRange::clear_scaling_type() { + scaling_type_ = 0; } -inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType IntegerParameterRange::scalingtype() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType) - return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scalingtype_); +inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType IntegerParameterRange::scaling_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scaling_type_); } -inline void IntegerParameterRange::set_scalingtype(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { +inline void IntegerParameterRange::set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { - scalingtype_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType) + scaling_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type) } // ------------------------------------------------------------------- // CategoricalParameterRange -// repeated string Values = 1; +// repeated string values = 1; inline int CategoricalParameterRange::values_size() const { return values_.size(); } @@ -904,64 +904,64 @@ inline void CategoricalParameterRange::clear_values() { values_.Clear(); } inline const ::std::string& CategoricalParameterRange::values(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) return values_.Get(index); } inline ::std::string* CategoricalParameterRange::mutable_values(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) return values_.Mutable(index); } inline void CategoricalParameterRange::set_values(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) values_.Mutable(index)->assign(value); } #if LANG_CXX11 inline void CategoricalParameterRange::set_values(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) values_.Mutable(index)->assign(std::move(value)); } #endif inline void CategoricalParameterRange::set_values(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); values_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) } inline void CategoricalParameterRange::set_values(int index, const char* value, size_t size) { values_.Mutable(index)->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) } inline ::std::string* CategoricalParameterRange::add_values() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) return values_.Add(); } inline void CategoricalParameterRange::add_values(const ::std::string& value) { values_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) } #if LANG_CXX11 inline void CategoricalParameterRange::add_values(::std::string&& value) { values_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) } #endif inline void CategoricalParameterRange::add_values(const char* value) { GOOGLE_DCHECK(value != nullptr); values_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) } inline void CategoricalParameterRange::add_values(const char* value, size_t size) { values_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& CategoricalParameterRange::values() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) return values_; } inline ::google::protobuf::RepeatedPtrField<::std::string>* CategoricalParameterRange::mutable_values() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.Values) + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) return &values_; } @@ -969,127 +969,127 @@ CategoricalParameterRange::mutable_values() { // ParameterRangeOneOf -// .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; -inline bool ParameterRangeOneOf::has_continuousparameterrange() const { +// .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; +inline bool ParameterRangeOneOf::has_continuous_parameter_range() const { return ParameterRangeTypes_case() == kContinuousParameterRange; } -inline void ParameterRangeOneOf::set_has_continuousparameterrange() { +inline void ParameterRangeOneOf::set_has_continuous_parameter_range() { _oneof_case_[0] = kContinuousParameterRange; } -inline void ParameterRangeOneOf::clear_continuousparameterrange() { - if (has_continuousparameterrange()) { - delete ParameterRangeTypes_.continuousparameterrange_; +inline void ParameterRangeOneOf::clear_continuous_parameter_range() { + if (has_continuous_parameter_range()) { + delete ParameterRangeTypes_.continuous_parameter_range_; clear_has_ParameterRangeTypes(); } } -inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::release_continuousparameterrange() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.ContinuousParameterRange) - if (has_continuousparameterrange()) { +inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::release_continuous_parameter_range() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) + if (has_continuous_parameter_range()) { clear_has_ParameterRangeTypes(); - ::flyteidl::plugins::sagemaker::ContinuousParameterRange* temp = ParameterRangeTypes_.continuousparameterrange_; - ParameterRangeTypes_.continuousparameterrange_ = nullptr; + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* temp = ParameterRangeTypes_.continuous_parameter_range_; + ParameterRangeTypes_.continuous_parameter_range_ = nullptr; return temp; } else { return nullptr; } } -inline const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& ParameterRangeOneOf::continuousparameterrange() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.ContinuousParameterRange) - return has_continuousparameterrange() - ? *ParameterRangeTypes_.continuousparameterrange_ +inline const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& ParameterRangeOneOf::continuous_parameter_range() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) + return has_continuous_parameter_range() + ? *ParameterRangeTypes_.continuous_parameter_range_ : *reinterpret_cast< ::flyteidl::plugins::sagemaker::ContinuousParameterRange*>(&::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_); } -inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::mutable_continuousparameterrange() { - if (!has_continuousparameterrange()) { +inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::mutable_continuous_parameter_range() { + if (!has_continuous_parameter_range()) { clear_ParameterRangeTypes(); - set_has_continuousparameterrange(); - ParameterRangeTypes_.continuousparameterrange_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >( + set_has_continuous_parameter_range(); + ParameterRangeTypes_.continuous_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.ContinuousParameterRange) - return ParameterRangeTypes_.continuousparameterrange_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) + return ParameterRangeTypes_.continuous_parameter_range_; } -// .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; -inline bool ParameterRangeOneOf::has_integerparameterrange() const { +// .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; +inline bool ParameterRangeOneOf::has_integer_parameter_range() const { return ParameterRangeTypes_case() == kIntegerParameterRange; } -inline void ParameterRangeOneOf::set_has_integerparameterrange() { +inline void ParameterRangeOneOf::set_has_integer_parameter_range() { _oneof_case_[0] = kIntegerParameterRange; } -inline void ParameterRangeOneOf::clear_integerparameterrange() { - if (has_integerparameterrange()) { - delete ParameterRangeTypes_.integerparameterrange_; +inline void ParameterRangeOneOf::clear_integer_parameter_range() { + if (has_integer_parameter_range()) { + delete ParameterRangeTypes_.integer_parameter_range_; clear_has_ParameterRangeTypes(); } } -inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::release_integerparameterrange() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.IntegerParameterRange) - if (has_integerparameterrange()) { +inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::release_integer_parameter_range() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) + if (has_integer_parameter_range()) { clear_has_ParameterRangeTypes(); - ::flyteidl::plugins::sagemaker::IntegerParameterRange* temp = ParameterRangeTypes_.integerparameterrange_; - ParameterRangeTypes_.integerparameterrange_ = nullptr; + ::flyteidl::plugins::sagemaker::IntegerParameterRange* temp = ParameterRangeTypes_.integer_parameter_range_; + ParameterRangeTypes_.integer_parameter_range_ = nullptr; return temp; } else { return nullptr; } } -inline const ::flyteidl::plugins::sagemaker::IntegerParameterRange& ParameterRangeOneOf::integerparameterrange() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.IntegerParameterRange) - return has_integerparameterrange() - ? *ParameterRangeTypes_.integerparameterrange_ +inline const ::flyteidl::plugins::sagemaker::IntegerParameterRange& ParameterRangeOneOf::integer_parameter_range() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) + return has_integer_parameter_range() + ? *ParameterRangeTypes_.integer_parameter_range_ : *reinterpret_cast< ::flyteidl::plugins::sagemaker::IntegerParameterRange*>(&::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_); } -inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::mutable_integerparameterrange() { - if (!has_integerparameterrange()) { +inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::mutable_integer_parameter_range() { + if (!has_integer_parameter_range()) { clear_ParameterRangeTypes(); - set_has_integerparameterrange(); - ParameterRangeTypes_.integerparameterrange_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >( + set_has_integer_parameter_range(); + ParameterRangeTypes_.integer_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.IntegerParameterRange) - return ParameterRangeTypes_.integerparameterrange_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) + return ParameterRangeTypes_.integer_parameter_range_; } -// .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; -inline bool ParameterRangeOneOf::has_categoricalparameterrange() const { +// .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; +inline bool ParameterRangeOneOf::has_categorical_parameter_range() const { return ParameterRangeTypes_case() == kCategoricalParameterRange; } -inline void ParameterRangeOneOf::set_has_categoricalparameterrange() { +inline void ParameterRangeOneOf::set_has_categorical_parameter_range() { _oneof_case_[0] = kCategoricalParameterRange; } -inline void ParameterRangeOneOf::clear_categoricalparameterrange() { - if (has_categoricalparameterrange()) { - delete ParameterRangeTypes_.categoricalparameterrange_; +inline void ParameterRangeOneOf::clear_categorical_parameter_range() { + if (has_categorical_parameter_range()) { + delete ParameterRangeTypes_.categorical_parameter_range_; clear_has_ParameterRangeTypes(); } } -inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::release_categoricalparameterrange() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.CategoricalParameterRange) - if (has_categoricalparameterrange()) { +inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::release_categorical_parameter_range() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) + if (has_categorical_parameter_range()) { clear_has_ParameterRangeTypes(); - ::flyteidl::plugins::sagemaker::CategoricalParameterRange* temp = ParameterRangeTypes_.categoricalparameterrange_; - ParameterRangeTypes_.categoricalparameterrange_ = nullptr; + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* temp = ParameterRangeTypes_.categorical_parameter_range_; + ParameterRangeTypes_.categorical_parameter_range_ = nullptr; return temp; } else { return nullptr; } } -inline const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& ParameterRangeOneOf::categoricalparameterrange() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.CategoricalParameterRange) - return has_categoricalparameterrange() - ? *ParameterRangeTypes_.categoricalparameterrange_ +inline const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& ParameterRangeOneOf::categorical_parameter_range() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) + return has_categorical_parameter_range() + ? *ParameterRangeTypes_.categorical_parameter_range_ : *reinterpret_cast< ::flyteidl::plugins::sagemaker::CategoricalParameterRange*>(&::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_); } -inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::mutable_categoricalparameterrange() { - if (!has_categoricalparameterrange()) { +inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::mutable_categorical_parameter_range() { + if (!has_categorical_parameter_range()) { clear_ParameterRangeTypes(); - set_has_categoricalparameterrange(); - ParameterRangeTypes_.categoricalparameterrange_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >( + set_has_categorical_parameter_range(); + ParameterRangeTypes_.categorical_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.CategoricalParameterRange) - return ParameterRangeTypes_.categoricalparameterrange_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) + return ParameterRangeTypes_.categorical_parameter_range_; } inline bool ParameterRangeOneOf::has_ParameterRangeTypes() const { @@ -1107,22 +1107,22 @@ inline ParameterRangeOneOf::ParameterRangeTypesCase ParameterRangeOneOf::Paramet // ParameterRanges -// map ParameterRangeMap = 1; -inline int ParameterRanges::parameterrangemap_size() const { - return parameterrangemap_.size(); +// map parameter_range_map = 1; +inline int ParameterRanges::parameter_range_map_size() const { + return parameter_range_map_.size(); } -inline void ParameterRanges::clear_parameterrangemap() { - parameterrangemap_.Clear(); +inline void ParameterRanges::clear_parameter_range_map() { + parameter_range_map_.Clear(); } inline const ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >& -ParameterRanges::parameterrangemap() const { - // @@protoc_insertion_point(field_map:flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMap) - return parameterrangemap_.GetMap(); +ParameterRanges::parameter_range_map() const { + // @@protoc_insertion_point(field_map:flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map) + return parameter_range_map_.GetMap(); } inline ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >* -ParameterRanges::mutable_parameterrangemap() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMap) - return parameterrangemap_.MutableMap(); +ParameterRanges::mutable_parameter_range_map() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map) + return parameter_range_map_.MutableMap(); } #ifdef __GNUC__ diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc index 49ecb6617..f0308abd0 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc @@ -166,32 +166,32 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, trainingimage_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, traininginputmode_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithmname_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, metricdefinitions_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, training_image_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, training_input_mode_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, metric_definitions_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, instancetype_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, instancecount_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, volumesizeingb_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, volumekmskeyid_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, instance_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, instance_count_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, volume_size_in_gb_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, volume_kms_key_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, maxruntimeinseconds_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, maxwaittimeinseconds_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, max_runtime_in_seconds_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, max_wait_time_in_seconds_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, securitygroupids_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, security_group_ids_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, subnets_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, _internal_metadata_), @@ -199,12 +199,12 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, region_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, rolearn_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, algorithmspecification_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, resourceconfig_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, stoppingcondition_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, vpcconfig_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, enablespottraining_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, role_arn_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, algorithm_specification_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, resource_config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, stopping_condition_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, vpc_config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, enable_spot_training_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition)}, @@ -232,35 +232,36 @@ ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_fl const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[] = "\n,flyteidl/plugins/sagemaker/trainingjob" - ".proto\022\032flyteidl.plugins.sagemaker\"\362\001\n\026A" - "lgorithmSpecification\022\025\n\rTrainingImage\030\001" - " \001(\t\022\031\n\021TrainingInputMode\030\002 \001(\t\022\025\n\rAlgor" - "ithmName\030\003 \001(\t\022^\n\021MetricDefinitions\030\004 \003(" - "\0132C.flyteidl.plugins.sagemaker.Algorithm" - "Specification.MetricDefinition\032/\n\020Metric" - "Definition\022\014\n\004Name\030\001 \001(\t\022\r\n\005Regex\030\002 \001(\t\"" - "m\n\016ResourceConfig\022\024\n\014InstanceType\030\001 \001(\t\022" - "\025\n\rInstanceCount\030\002 \001(\003\022\026\n\016VolumeSizeInGB" - "\030\003 \001(\003\022\026\n\016VolumeKmsKeyId\030\004 \001(\t\"N\n\021Stoppi" - "ngCondition\022\033\n\023MaxRuntimeInSeconds\030\001 \001(\003" - "\022\034\n\024MaxWaitTimeInSeconds\030\002 \001(\003\"6\n\tVpcCon" - "fig\022\030\n\020SecurityGroupIds\030\001 \003(\t\022\017\n\007Subnets" - "\030\002 \003(\t\"\346\002\n\013TrainingJob\022\016\n\006Region\030\001 \001(\t\022\017" - "\n\007RoleArn\030\002 \001(\t\022R\n\026AlgorithmSpecificatio" - "n\030\003 \001(\01322.flyteidl.plugins.sagemaker.Alg" - "orithmSpecification\022B\n\016ResourceConfig\030\004 " - "\001(\0132*.flyteidl.plugins.sagemaker.Resourc" - "eConfig\022H\n\021StoppingCondition\030\005 \001(\0132-.fly" - "teidl.plugins.sagemaker.StoppingConditio" - "n\0228\n\tVpcConfig\030\006 \001(\0132%.flyteidl.plugins." - "sagemaker.VpcConfig\022\032\n\022EnableSpotTrainin" - "g\030\007 \001(\010B5Z3github.com/lyft/flyteidl/gen/" - "pb-go/flyteidl/pluginsb\006proto3" + ".proto\022\032flyteidl.plugins.sagemaker\"\367\001\n\026A" + "lgorithmSpecification\022\026\n\016training_image\030" + "\001 \001(\t\022\033\n\023training_input_mode\030\002 \001(\t\022\026\n\016al" + "gorithm_name\030\003 \001(\t\022_\n\022metric_definitions" + "\030\004 \003(\0132C.flyteidl.plugins.sagemaker.Algo" + "rithmSpecification.MetricDefinition\032/\n\020M" + "etricDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002" + " \001(\t\"u\n\016ResourceConfig\022\025\n\rinstance_type\030" + "\001 \001(\t\022\026\n\016instance_count\030\002 \001(\003\022\031\n\021volume_" + "size_in_gb\030\003 \001(\003\022\031\n\021volume_kms_key_id\030\004 " + "\001(\t\"U\n\021StoppingCondition\022\036\n\026max_runtime_" + "in_seconds\030\001 \001(\003\022 \n\030max_wait_time_in_sec" + "onds\030\002 \001(\003\"8\n\tVpcConfig\022\032\n\022security_grou" + "p_ids\030\001 \003(\t\022\017\n\007subnets\030\002 \003(\t\"\355\002\n\013Trainin" + "gJob\022\016\n\006region\030\001 \001(\t\022\020\n\010role_arn\030\002 \001(\t\022S" + "\n\027algorithm_specification\030\003 \001(\01322.flytei" + "dl.plugins.sagemaker.AlgorithmSpecificat" + "ion\022C\n\017resource_config\030\004 \001(\0132*.flyteidl." + "plugins.sagemaker.ResourceConfig\022I\n\022stop" + "ping_condition\030\005 \001(\0132-.flyteidl.plugins." + "sagemaker.StoppingCondition\0229\n\nvpc_confi" + "g\030\006 \001(\0132%.flyteidl.plugins.sagemaker.Vpc" + "Config\022\034\n\024enable_spot_training\030\007 \001(\010B5Z3" + "github.com/lyft/flyteidl/gen/pb-go/flyte" + "idl/pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, - "flyteidl/plugins/sagemaker/trainingjob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, 990, + "flyteidl/plugins/sagemaker/trainingjob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, 1019, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { @@ -359,12 +360,12 @@ const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char* ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string Name = 1; + // string name = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name"); object = msg->mutable_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -375,12 +376,12 @@ const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char* ptr += size; break; } - // string Regex = 2; + // string regex = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex"); object = msg->mutable_regex(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -425,7 +426,7 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string Name = 1; + // string name = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( @@ -433,14 +434,14 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name")); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name")); } else { goto handle_unusual; } break; } - // string Regex = 2; + // string regex = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( @@ -448,7 +449,7 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->regex().data(), static_cast(this->regex().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex")); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex")); } else { goto handle_unusual; } @@ -482,22 +483,22 @@ void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string Name = 1; + // string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } - // string Regex = 2; + // string regex = 2; if (this->regex().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->regex().data(), static_cast(this->regex().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->regex(), output); } @@ -515,23 +516,23 @@ ::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSeri ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string Name = 1; + // string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); } - // string Regex = 2; + // string regex = 2; if (this->regex().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->regex().data(), static_cast(this->regex().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->regex(), target); @@ -558,14 +559,14 @@ size_t AlgorithmSpecification_MetricDefinition::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string Name = 1; + // string name = 1; if (this->name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } - // string Regex = 2; + // string regex = 2; if (this->regex().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( @@ -669,19 +670,19 @@ AlgorithmSpecification::AlgorithmSpecification() AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr), - metricdefinitions_(from.metricdefinitions_) { + metric_definitions_(from.metric_definitions_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - trainingimage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.trainingimage().size() > 0) { - trainingimage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trainingimage_); + training_image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.training_image().size() > 0) { + training_image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.training_image_); } - traininginputmode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.traininginputmode().size() > 0) { - traininginputmode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.traininginputmode_); + training_input_mode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.training_input_mode().size() > 0) { + training_input_mode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.training_input_mode_); } - algorithmname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.algorithmname().size() > 0) { - algorithmname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithmname_); + algorithm_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.algorithm_name().size() > 0) { + algorithm_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_name_); } // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) } @@ -689,9 +690,9 @@ AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& fro void AlgorithmSpecification::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - trainingimage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - traininginputmode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - algorithmname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + training_image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + training_input_mode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + algorithm_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } AlgorithmSpecification::~AlgorithmSpecification() { @@ -700,9 +701,9 @@ AlgorithmSpecification::~AlgorithmSpecification() { } void AlgorithmSpecification::SharedDtor() { - trainingimage_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - traininginputmode_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - algorithmname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + training_image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + training_input_mode_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + algorithm_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void AlgorithmSpecification::SetCachedSize(int size) const { @@ -720,10 +721,10 @@ void AlgorithmSpecification::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - metricdefinitions_.Clear(); - trainingimage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - traininginputmode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - algorithmname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + metric_definitions_.Clear(); + training_image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + training_input_mode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + algorithm_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } @@ -740,13 +741,13 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string TrainingImage = 1; + // string training_image = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); - object = msg->mutable_trainingimage(); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image"); + object = msg->mutable_training_image(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -756,13 +757,13 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char ptr += size; break; } - // string TrainingInputMode = 2; + // string training_input_mode = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); - object = msg->mutable_traininginputmode(); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode"); + object = msg->mutable_training_input_mode(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -772,13 +773,13 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char ptr += size; break; } - // string AlgorithmName = 3; + // string algorithm_name = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); - object = msg->mutable_algorithmname(); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name"); + object = msg->mutable_algorithm_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -788,14 +789,14 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char ptr += size; break; } - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::_InternalParse; - object = msg->add_metricdefinitions(); + object = msg->add_metric_definitions(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( @@ -838,56 +839,56 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string TrainingImage = 1; + // string training_image = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_trainingimage())); + input, this->mutable_training_image())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->trainingimage().data(), static_cast(this->trainingimage().length()), + this->training_image().data(), static_cast(this->training_image().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage")); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image")); } else { goto handle_unusual; } break; } - // string TrainingInputMode = 2; + // string training_input_mode = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_traininginputmode())); + input, this->mutable_training_input_mode())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->traininginputmode().data(), static_cast(this->traininginputmode().length()), + this->training_input_mode().data(), static_cast(this->training_input_mode().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode")); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode")); } else { goto handle_unusual; } break; } - // string AlgorithmName = 3; + // string algorithm_name = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_algorithmname())); + input, this->mutable_algorithm_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->algorithmname().data(), static_cast(this->algorithmname().length()), + this->algorithm_name().data(), static_cast(this->algorithm_name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName")); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name")); } else { goto handle_unusual; } break; } - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_metricdefinitions())); + input, add_metric_definitions())); } else { goto handle_unusual; } @@ -921,42 +922,42 @@ void AlgorithmSpecification::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string TrainingImage = 1; - if (this->trainingimage().size() > 0) { + // string training_image = 1; + if (this->training_image().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->trainingimage().data(), static_cast(this->trainingimage().length()), + this->training_image().data(), static_cast(this->training_image().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->trainingimage(), output); + 1, this->training_image(), output); } - // string TrainingInputMode = 2; - if (this->traininginputmode().size() > 0) { + // string training_input_mode = 2; + if (this->training_input_mode().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->traininginputmode().data(), static_cast(this->traininginputmode().length()), + this->training_input_mode().data(), static_cast(this->training_input_mode().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->traininginputmode(), output); + 2, this->training_input_mode(), output); } - // string AlgorithmName = 3; - if (this->algorithmname().size() > 0) { + // string algorithm_name = 3; + if (this->algorithm_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->algorithmname().data(), static_cast(this->algorithmname().length()), + this->algorithm_name().data(), static_cast(this->algorithm_name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->algorithmname(), output); + 3, this->algorithm_name(), output); } - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; for (unsigned int i = 0, - n = static_cast(this->metricdefinitions_size()); i < n; i++) { + n = static_cast(this->metric_definitions_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, - this->metricdefinitions(static_cast(i)), + this->metric_definitions(static_cast(i)), output); } @@ -973,45 +974,45 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string TrainingImage = 1; - if (this->trainingimage().size() > 0) { + // string training_image = 1; + if (this->training_image().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->trainingimage().data(), static_cast(this->trainingimage().length()), + this->training_image().data(), static_cast(this->training_image().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->trainingimage(), target); + 1, this->training_image(), target); } - // string TrainingInputMode = 2; - if (this->traininginputmode().size() > 0) { + // string training_input_mode = 2; + if (this->training_input_mode().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->traininginputmode().data(), static_cast(this->traininginputmode().length()), + this->training_input_mode().data(), static_cast(this->training_input_mode().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->traininginputmode(), target); + 2, this->training_input_mode(), target); } - // string AlgorithmName = 3; - if (this->algorithmname().size() > 0) { + // string algorithm_name = 3; + if (this->algorithm_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->algorithmname().data(), static_cast(this->algorithmname().length()), + this->algorithm_name().data(), static_cast(this->algorithm_name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->algorithmname(), target); + 3, this->algorithm_name(), target); } - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; for (unsigned int i = 0, - n = static_cast(this->metricdefinitions_size()); i < n; i++) { + n = static_cast(this->metric_definitions_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 4, this->metricdefinitions(static_cast(i)), target); + 4, this->metric_definitions(static_cast(i)), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -1035,36 +1036,36 @@ size_t AlgorithmSpecification::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; { - unsigned int count = static_cast(this->metricdefinitions_size()); + unsigned int count = static_cast(this->metric_definitions_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( - this->metricdefinitions(static_cast(i))); + this->metric_definitions(static_cast(i))); } } - // string TrainingImage = 1; - if (this->trainingimage().size() > 0) { + // string training_image = 1; + if (this->training_image().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->trainingimage()); + this->training_image()); } - // string TrainingInputMode = 2; - if (this->traininginputmode().size() > 0) { + // string training_input_mode = 2; + if (this->training_input_mode().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->traininginputmode()); + this->training_input_mode()); } - // string AlgorithmName = 3; - if (this->algorithmname().size() > 0) { + // string algorithm_name = 3; + if (this->algorithm_name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->algorithmname()); + this->algorithm_name()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -1094,18 +1095,18 @@ void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - metricdefinitions_.MergeFrom(from.metricdefinitions_); - if (from.trainingimage().size() > 0) { + metric_definitions_.MergeFrom(from.metric_definitions_); + if (from.training_image().size() > 0) { - trainingimage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trainingimage_); + training_image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.training_image_); } - if (from.traininginputmode().size() > 0) { + if (from.training_input_mode().size() > 0) { - traininginputmode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.traininginputmode_); + training_input_mode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.training_input_mode_); } - if (from.algorithmname().size() > 0) { + if (from.algorithm_name().size() > 0) { - algorithmname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithmname_); + algorithm_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_name_); } } @@ -1134,12 +1135,12 @@ void AlgorithmSpecification::Swap(AlgorithmSpecification* other) { void AlgorithmSpecification::InternalSwap(AlgorithmSpecification* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&metricdefinitions_)->InternalSwap(CastToBase(&other->metricdefinitions_)); - trainingimage_.Swap(&other->trainingimage_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + CastToBase(&metric_definitions_)->InternalSwap(CastToBase(&other->metric_definitions_)); + training_image_.Swap(&other->training_image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - traininginputmode_.Swap(&other->traininginputmode_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + training_input_mode_.Swap(&other->training_input_mode_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - algorithmname_.Swap(&other->algorithmname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + algorithm_name_.Swap(&other->algorithm_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } @@ -1160,7 +1161,7 @@ class ResourceConfig::HasBitSetters { #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ResourceConfig::kInstanceTypeFieldNumber; const int ResourceConfig::kInstanceCountFieldNumber; -const int ResourceConfig::kVolumeSizeInGBFieldNumber; +const int ResourceConfig::kVolumeSizeInGbFieldNumber; const int ResourceConfig::kVolumeKmsKeyIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 @@ -1173,28 +1174,28 @@ ResourceConfig::ResourceConfig(const ResourceConfig& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - instancetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.instancetype().size() > 0) { - instancetype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instancetype_); + instance_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.instance_type().size() > 0) { + instance_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instance_type_); } - volumekmskeyid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.volumekmskeyid().size() > 0) { - volumekmskeyid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volumekmskeyid_); + volume_kms_key_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.volume_kms_key_id().size() > 0) { + volume_kms_key_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volume_kms_key_id_); } - ::memcpy(&instancecount_, &from.instancecount_, - static_cast(reinterpret_cast(&volumesizeingb_) - - reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); + ::memcpy(&instance_count_, &from.instance_count_, + static_cast(reinterpret_cast(&volume_size_in_gb_) - + reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ResourceConfig) } void ResourceConfig::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - instancetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - volumekmskeyid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&instancecount_, 0, static_cast( - reinterpret_cast(&volumesizeingb_) - - reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); + instance_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + volume_kms_key_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&instance_count_, 0, static_cast( + reinterpret_cast(&volume_size_in_gb_) - + reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); } ResourceConfig::~ResourceConfig() { @@ -1203,8 +1204,8 @@ ResourceConfig::~ResourceConfig() { } void ResourceConfig::SharedDtor() { - instancetype_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - volumekmskeyid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + instance_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + volume_kms_key_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void ResourceConfig::SetCachedSize(int size) const { @@ -1222,11 +1223,11 @@ void ResourceConfig::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - instancetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - volumekmskeyid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&instancecount_, 0, static_cast( - reinterpret_cast(&volumesizeingb_) - - reinterpret_cast(&instancecount_)) + sizeof(volumesizeingb_)); + instance_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + volume_kms_key_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&instance_count_, 0, static_cast( + reinterpret_cast(&volume_size_in_gb_) - + reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); _internal_metadata_.Clear(); } @@ -1243,13 +1244,13 @@ const char* ResourceConfig::_InternalParse(const char* begin, const char* end, v ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string InstanceType = 1; + // string instance_type = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ResourceConfig.InstanceType"); - object = msg->mutable_instancetype(); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ResourceConfig.instance_type"); + object = msg->mutable_instance_type(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -1259,27 +1260,27 @@ const char* ResourceConfig::_InternalParse(const char* begin, const char* end, v ptr += size; break; } - // int64 InstanceCount = 2; + // int64 instance_count = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_instancecount(::google::protobuf::internal::ReadVarint(&ptr)); + msg->set_instance_count(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } - // int64 VolumeSizeInGB = 3; + // int64 volume_size_in_gb = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_volumesizeingb(::google::protobuf::internal::ReadVarint(&ptr)); + msg->set_volume_size_in_gb(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } - // string VolumeKmsKeyId = 4; + // string volume_kms_key_id = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); - object = msg->mutable_volumekmskeyid(); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id"); + object = msg->mutable_volume_kms_key_id(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -1323,56 +1324,56 @@ bool ResourceConfig::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string InstanceType = 1; + // string instance_type = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_instancetype())); + input, this->mutable_instance_type())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->instancetype().data(), static_cast(this->instancetype().length()), + this->instance_type().data(), static_cast(this->instance_type().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.ResourceConfig.InstanceType")); + "flyteidl.plugins.sagemaker.ResourceConfig.instance_type")); } else { goto handle_unusual; } break; } - // int64 InstanceCount = 2; + // int64 instance_count = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &instancecount_))); + input, &instance_count_))); } else { goto handle_unusual; } break; } - // int64 VolumeSizeInGB = 3; + // int64 volume_size_in_gb = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &volumesizeingb_))); + input, &volume_size_in_gb_))); } else { goto handle_unusual; } break; } - // string VolumeKmsKeyId = 4; + // string volume_kms_key_id = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_volumekmskeyid())); + input, this->mutable_volume_kms_key_id())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), + this->volume_kms_key_id().data(), static_cast(this->volume_kms_key_id().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId")); + "flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id")); } else { goto handle_unusual; } @@ -1406,34 +1407,34 @@ void ResourceConfig::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string InstanceType = 1; - if (this->instancetype().size() > 0) { + // string instance_type = 1; + if (this->instance_type().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->instancetype().data(), static_cast(this->instancetype().length()), + this->instance_type().data(), static_cast(this->instance_type().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ResourceConfig.InstanceType"); + "flyteidl.plugins.sagemaker.ResourceConfig.instance_type"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->instancetype(), output); + 1, this->instance_type(), output); } - // int64 InstanceCount = 2; - if (this->instancecount() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->instancecount(), output); + // int64 instance_count = 2; + if (this->instance_count() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->instance_count(), output); } - // int64 VolumeSizeInGB = 3; - if (this->volumesizeingb() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->volumesizeingb(), output); + // int64 volume_size_in_gb = 3; + if (this->volume_size_in_gb() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->volume_size_in_gb(), output); } - // string VolumeKmsKeyId = 4; - if (this->volumekmskeyid().size() > 0) { + // string volume_kms_key_id = 4; + if (this->volume_kms_key_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), + this->volume_kms_key_id().data(), static_cast(this->volume_kms_key_id().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); + "flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->volumekmskeyid(), output); + 4, this->volume_kms_key_id(), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -1449,36 +1450,36 @@ ::google::protobuf::uint8* ResourceConfig::InternalSerializeWithCachedSizesToArr ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string InstanceType = 1; - if (this->instancetype().size() > 0) { + // string instance_type = 1; + if (this->instance_type().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->instancetype().data(), static_cast(this->instancetype().length()), + this->instance_type().data(), static_cast(this->instance_type().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ResourceConfig.InstanceType"); + "flyteidl.plugins.sagemaker.ResourceConfig.instance_type"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->instancetype(), target); + 1, this->instance_type(), target); } - // int64 InstanceCount = 2; - if (this->instancecount() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->instancecount(), target); + // int64 instance_count = 2; + if (this->instance_count() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->instance_count(), target); } - // int64 VolumeSizeInGB = 3; - if (this->volumesizeingb() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->volumesizeingb(), target); + // int64 volume_size_in_gb = 3; + if (this->volume_size_in_gb() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->volume_size_in_gb(), target); } - // string VolumeKmsKeyId = 4; - if (this->volumekmskeyid().size() > 0) { + // string volume_kms_key_id = 4; + if (this->volume_kms_key_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->volumekmskeyid().data(), static_cast(this->volumekmskeyid().length()), + this->volume_kms_key_id().data(), static_cast(this->volume_kms_key_id().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId"); + "flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->volumekmskeyid(), target); + 4, this->volume_kms_key_id(), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -1502,32 +1503,32 @@ size_t ResourceConfig::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string InstanceType = 1; - if (this->instancetype().size() > 0) { + // string instance_type = 1; + if (this->instance_type().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->instancetype()); + this->instance_type()); } - // string VolumeKmsKeyId = 4; - if (this->volumekmskeyid().size() > 0) { + // string volume_kms_key_id = 4; + if (this->volume_kms_key_id().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->volumekmskeyid()); + this->volume_kms_key_id()); } - // int64 InstanceCount = 2; - if (this->instancecount() != 0) { + // int64 instance_count = 2; + if (this->instance_count() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( - this->instancecount()); + this->instance_count()); } - // int64 VolumeSizeInGB = 3; - if (this->volumesizeingb() != 0) { + // int64 volume_size_in_gb = 3; + if (this->volume_size_in_gb() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( - this->volumesizeingb()); + this->volume_size_in_gb()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -1557,19 +1558,19 @@ void ResourceConfig::MergeFrom(const ResourceConfig& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.instancetype().size() > 0) { + if (from.instance_type().size() > 0) { - instancetype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instancetype_); + instance_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instance_type_); } - if (from.volumekmskeyid().size() > 0) { + if (from.volume_kms_key_id().size() > 0) { - volumekmskeyid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volumekmskeyid_); + volume_kms_key_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volume_kms_key_id_); } - if (from.instancecount() != 0) { - set_instancecount(from.instancecount()); + if (from.instance_count() != 0) { + set_instance_count(from.instance_count()); } - if (from.volumesizeingb() != 0) { - set_volumesizeingb(from.volumesizeingb()); + if (from.volume_size_in_gb() != 0) { + set_volume_size_in_gb(from.volume_size_in_gb()); } } @@ -1598,12 +1599,12 @@ void ResourceConfig::Swap(ResourceConfig* other) { void ResourceConfig::InternalSwap(ResourceConfig* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - instancetype_.Swap(&other->instancetype_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + instance_type_.Swap(&other->instance_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - volumekmskeyid_.Swap(&other->volumekmskeyid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + volume_kms_key_id_.Swap(&other->volume_kms_key_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - swap(instancecount_, other->instancecount_); - swap(volumesizeingb_, other->volumesizeingb_); + swap(instance_count_, other->instance_count_); + swap(volume_size_in_gb_, other->volume_size_in_gb_); } ::google::protobuf::Metadata ResourceConfig::GetMetadata() const { @@ -1634,16 +1635,16 @@ StoppingCondition::StoppingCondition(const StoppingCondition& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&maxruntimeinseconds_, &from.maxruntimeinseconds_, - static_cast(reinterpret_cast(&maxwaittimeinseconds_) - - reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); + ::memcpy(&max_runtime_in_seconds_, &from.max_runtime_in_seconds_, + static_cast(reinterpret_cast(&max_wait_time_in_seconds_) - + reinterpret_cast(&max_runtime_in_seconds_)) + sizeof(max_wait_time_in_seconds_)); // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.StoppingCondition) } void StoppingCondition::SharedCtor() { - ::memset(&maxruntimeinseconds_, 0, static_cast( - reinterpret_cast(&maxwaittimeinseconds_) - - reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); + ::memset(&max_runtime_in_seconds_, 0, static_cast( + reinterpret_cast(&max_wait_time_in_seconds_) - + reinterpret_cast(&max_runtime_in_seconds_)) + sizeof(max_wait_time_in_seconds_)); } StoppingCondition::~StoppingCondition() { @@ -1669,9 +1670,9 @@ void StoppingCondition::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&maxruntimeinseconds_, 0, static_cast( - reinterpret_cast(&maxwaittimeinseconds_) - - reinterpret_cast(&maxruntimeinseconds_)) + sizeof(maxwaittimeinseconds_)); + ::memset(&max_runtime_in_seconds_, 0, static_cast( + reinterpret_cast(&max_wait_time_in_seconds_) - + reinterpret_cast(&max_runtime_in_seconds_)) + sizeof(max_wait_time_in_seconds_)); _internal_metadata_.Clear(); } @@ -1688,17 +1689,17 @@ const char* StoppingCondition::_InternalParse(const char* begin, const char* end ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // int64 MaxRuntimeInSeconds = 1; + // int64 max_runtime_in_seconds = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_maxruntimeinseconds(::google::protobuf::internal::ReadVarint(&ptr)); + msg->set_max_runtime_in_seconds(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } - // int64 MaxWaitTimeInSeconds = 2; + // int64 max_wait_time_in_seconds = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_maxwaittimeinseconds(::google::protobuf::internal::ReadVarint(&ptr)); + msg->set_max_wait_time_in_seconds(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -1729,26 +1730,26 @@ bool StoppingCondition::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int64 MaxRuntimeInSeconds = 1; + // int64 max_runtime_in_seconds = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &maxruntimeinseconds_))); + input, &max_runtime_in_seconds_))); } else { goto handle_unusual; } break; } - // int64 MaxWaitTimeInSeconds = 2; + // int64 max_wait_time_in_seconds = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &maxwaittimeinseconds_))); + input, &max_wait_time_in_seconds_))); } else { goto handle_unusual; } @@ -1782,14 +1783,14 @@ void StoppingCondition::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // int64 MaxRuntimeInSeconds = 1; - if (this->maxruntimeinseconds() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->maxruntimeinseconds(), output); + // int64 max_runtime_in_seconds = 1; + if (this->max_runtime_in_seconds() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->max_runtime_in_seconds(), output); } - // int64 MaxWaitTimeInSeconds = 2; - if (this->maxwaittimeinseconds() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->maxwaittimeinseconds(), output); + // int64 max_wait_time_in_seconds = 2; + if (this->max_wait_time_in_seconds() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max_wait_time_in_seconds(), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -1805,14 +1806,14 @@ ::google::protobuf::uint8* StoppingCondition::InternalSerializeWithCachedSizesTo ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // int64 MaxRuntimeInSeconds = 1; - if (this->maxruntimeinseconds() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->maxruntimeinseconds(), target); + // int64 max_runtime_in_seconds = 1; + if (this->max_runtime_in_seconds() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->max_runtime_in_seconds(), target); } - // int64 MaxWaitTimeInSeconds = 2; - if (this->maxwaittimeinseconds() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->maxwaittimeinseconds(), target); + // int64 max_wait_time_in_seconds = 2; + if (this->max_wait_time_in_seconds() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max_wait_time_in_seconds(), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -1836,18 +1837,18 @@ size_t StoppingCondition::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // int64 MaxRuntimeInSeconds = 1; - if (this->maxruntimeinseconds() != 0) { + // int64 max_runtime_in_seconds = 1; + if (this->max_runtime_in_seconds() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( - this->maxruntimeinseconds()); + this->max_runtime_in_seconds()); } - // int64 MaxWaitTimeInSeconds = 2; - if (this->maxwaittimeinseconds() != 0) { + // int64 max_wait_time_in_seconds = 2; + if (this->max_wait_time_in_seconds() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( - this->maxwaittimeinseconds()); + this->max_wait_time_in_seconds()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -1877,11 +1878,11 @@ void StoppingCondition::MergeFrom(const StoppingCondition& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.maxruntimeinseconds() != 0) { - set_maxruntimeinseconds(from.maxruntimeinseconds()); + if (from.max_runtime_in_seconds() != 0) { + set_max_runtime_in_seconds(from.max_runtime_in_seconds()); } - if (from.maxwaittimeinseconds() != 0) { - set_maxwaittimeinseconds(from.maxwaittimeinseconds()); + if (from.max_wait_time_in_seconds() != 0) { + set_max_wait_time_in_seconds(from.max_wait_time_in_seconds()); } } @@ -1910,8 +1911,8 @@ void StoppingCondition::Swap(StoppingCondition* other) { void StoppingCondition::InternalSwap(StoppingCondition* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(maxruntimeinseconds_, other->maxruntimeinseconds_); - swap(maxwaittimeinseconds_, other->maxwaittimeinseconds_); + swap(max_runtime_in_seconds_, other->max_runtime_in_seconds_); + swap(max_wait_time_in_seconds_, other->max_wait_time_in_seconds_); } ::google::protobuf::Metadata StoppingCondition::GetMetadata() const { @@ -1941,7 +1942,7 @@ VpcConfig::VpcConfig() VpcConfig::VpcConfig(const VpcConfig& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr), - securitygroupids_(from.securitygroupids_), + security_group_ids_(from.security_group_ids_), subnets_(from.subnets_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.VpcConfig) @@ -1975,7 +1976,7 @@ void VpcConfig::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - securitygroupids_.Clear(); + security_group_ids_.Clear(); subnets_.Clear(); _internal_metadata_.Clear(); } @@ -1993,14 +1994,14 @@ const char* VpcConfig::_InternalParse(const char* begin, const char* end, void* ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // repeated string SecurityGroupIds = 1; + // repeated string security_group_ids = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds"); - object = msg->add_securitygroupids(); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.VpcConfig.security_group_ids"); + object = msg->add_security_group_ids(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -2012,13 +2013,13 @@ const char* VpcConfig::_InternalParse(const char* begin, const char* end, void* } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); break; } - // repeated string Subnets = 2; + // repeated string subnets = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.VpcConfig.Subnets"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.VpcConfig.subnets"); object = msg->add_subnets(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -2065,23 +2066,23 @@ bool VpcConfig::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string SecurityGroupIds = 1; + // repeated string security_group_ids = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_securitygroupids())); + input, this->add_security_group_ids())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->securitygroupids(this->securitygroupids_size() - 1).data(), - static_cast(this->securitygroupids(this->securitygroupids_size() - 1).length()), + this->security_group_ids(this->security_group_ids_size() - 1).data(), + static_cast(this->security_group_ids(this->security_group_ids_size() - 1).length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds")); + "flyteidl.plugins.sagemaker.VpcConfig.security_group_ids")); } else { goto handle_unusual; } break; } - // repeated string Subnets = 2; + // repeated string subnets = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( @@ -2090,7 +2091,7 @@ bool VpcConfig::MergePartialFromCodedStream( this->subnets(this->subnets_size() - 1).data(), static_cast(this->subnets(this->subnets_size() - 1).length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.VpcConfig.Subnets")); + "flyteidl.plugins.sagemaker.VpcConfig.subnets")); } else { goto handle_unusual; } @@ -2124,22 +2125,22 @@ void VpcConfig::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated string SecurityGroupIds = 1; - for (int i = 0, n = this->securitygroupids_size(); i < n; i++) { + // repeated string security_group_ids = 1; + for (int i = 0, n = this->security_group_ids_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->securitygroupids(i).data(), static_cast(this->securitygroupids(i).length()), + this->security_group_ids(i).data(), static_cast(this->security_group_ids(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds"); + "flyteidl.plugins.sagemaker.VpcConfig.security_group_ids"); ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->securitygroupids(i), output); + 1, this->security_group_ids(i), output); } - // repeated string Subnets = 2; + // repeated string subnets = 2; for (int i = 0, n = this->subnets_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->subnets(i).data(), static_cast(this->subnets(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.VpcConfig.Subnets"); + "flyteidl.plugins.sagemaker.VpcConfig.subnets"); ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->subnets(i), output); } @@ -2157,22 +2158,22 @@ ::google::protobuf::uint8* VpcConfig::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated string SecurityGroupIds = 1; - for (int i = 0, n = this->securitygroupids_size(); i < n; i++) { + // repeated string security_group_ids = 1; + for (int i = 0, n = this->security_group_ids_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->securitygroupids(i).data(), static_cast(this->securitygroupids(i).length()), + this->security_group_ids(i).data(), static_cast(this->security_group_ids(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds"); + "flyteidl.plugins.sagemaker.VpcConfig.security_group_ids"); target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->securitygroupids(i), target); + WriteStringToArray(1, this->security_group_ids(i), target); } - // repeated string Subnets = 2; + // repeated string subnets = 2; for (int i = 0, n = this->subnets_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->subnets(i).data(), static_cast(this->subnets(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.VpcConfig.Subnets"); + "flyteidl.plugins.sagemaker.VpcConfig.subnets"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(2, this->subnets(i), target); } @@ -2198,15 +2199,15 @@ size_t VpcConfig::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated string SecurityGroupIds = 1; + // repeated string security_group_ids = 1; total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->securitygroupids_size()); - for (int i = 0, n = this->securitygroupids_size(); i < n; i++) { + ::google::protobuf::internal::FromIntSize(this->security_group_ids_size()); + for (int i = 0, n = this->security_group_ids_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->securitygroupids(i)); + this->security_group_ids(i)); } - // repeated string Subnets = 2; + // repeated string subnets = 2; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->subnets_size()); for (int i = 0, n = this->subnets_size(); i < n; i++) { @@ -2241,7 +2242,7 @@ void VpcConfig::MergeFrom(const VpcConfig& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - securitygroupids_.MergeFrom(from.securitygroupids_); + security_group_ids_.MergeFrom(from.security_group_ids_); subnets_.MergeFrom(from.subnets_); } @@ -2270,7 +2271,7 @@ void VpcConfig::Swap(VpcConfig* other) { void VpcConfig::InternalSwap(VpcConfig* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - securitygroupids_.InternalSwap(CastToBase(&other->securitygroupids_)); + security_group_ids_.InternalSwap(CastToBase(&other->security_group_ids_)); subnets_.InternalSwap(CastToBase(&other->subnets_)); } @@ -2283,38 +2284,38 @@ ::google::protobuf::Metadata VpcConfig::GetMetadata() const { // =================================================================== void TrainingJob::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->algorithmspecification_ = const_cast< ::flyteidl::plugins::sagemaker::AlgorithmSpecification*>( + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->algorithm_specification_ = const_cast< ::flyteidl::plugins::sagemaker::AlgorithmSpecification*>( ::flyteidl::plugins::sagemaker::AlgorithmSpecification::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->resourceconfig_ = const_cast< ::flyteidl::plugins::sagemaker::ResourceConfig*>( + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->resource_config_ = const_cast< ::flyteidl::plugins::sagemaker::ResourceConfig*>( ::flyteidl::plugins::sagemaker::ResourceConfig::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->stoppingcondition_ = const_cast< ::flyteidl::plugins::sagemaker::StoppingCondition*>( + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->stopping_condition_ = const_cast< ::flyteidl::plugins::sagemaker::StoppingCondition*>( ::flyteidl::plugins::sagemaker::StoppingCondition::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->vpcconfig_ = const_cast< ::flyteidl::plugins::sagemaker::VpcConfig*>( + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->vpc_config_ = const_cast< ::flyteidl::plugins::sagemaker::VpcConfig*>( ::flyteidl::plugins::sagemaker::VpcConfig::internal_default_instance()); } class TrainingJob::HasBitSetters { public: - static const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithmspecification(const TrainingJob* msg); - static const ::flyteidl::plugins::sagemaker::ResourceConfig& resourceconfig(const TrainingJob* msg); - static const ::flyteidl::plugins::sagemaker::StoppingCondition& stoppingcondition(const TrainingJob* msg); - static const ::flyteidl::plugins::sagemaker::VpcConfig& vpcconfig(const TrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithm_specification(const TrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::ResourceConfig& resource_config(const TrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::StoppingCondition& stopping_condition(const TrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::VpcConfig& vpc_config(const TrainingJob* msg); }; const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& -TrainingJob::HasBitSetters::algorithmspecification(const TrainingJob* msg) { - return *msg->algorithmspecification_; +TrainingJob::HasBitSetters::algorithm_specification(const TrainingJob* msg) { + return *msg->algorithm_specification_; } const ::flyteidl::plugins::sagemaker::ResourceConfig& -TrainingJob::HasBitSetters::resourceconfig(const TrainingJob* msg) { - return *msg->resourceconfig_; +TrainingJob::HasBitSetters::resource_config(const TrainingJob* msg) { + return *msg->resource_config_; } const ::flyteidl::plugins::sagemaker::StoppingCondition& -TrainingJob::HasBitSetters::stoppingcondition(const TrainingJob* msg) { - return *msg->stoppingcondition_; +TrainingJob::HasBitSetters::stopping_condition(const TrainingJob* msg) { + return *msg->stopping_condition_; } const ::flyteidl::plugins::sagemaker::VpcConfig& -TrainingJob::HasBitSetters::vpcconfig(const TrainingJob* msg) { - return *msg->vpcconfig_; +TrainingJob::HasBitSetters::vpc_config(const TrainingJob* msg) { + return *msg->vpc_config_; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int TrainingJob::kRegionFieldNumber; @@ -2339,31 +2340,31 @@ TrainingJob::TrainingJob(const TrainingJob& from) if (from.region().size() > 0) { region_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_); } - rolearn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.rolearn().size() > 0) { - rolearn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rolearn_); + role_arn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.role_arn().size() > 0) { + role_arn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_arn_); } - if (from.has_algorithmspecification()) { - algorithmspecification_ = new ::flyteidl::plugins::sagemaker::AlgorithmSpecification(*from.algorithmspecification_); + if (from.has_algorithm_specification()) { + algorithm_specification_ = new ::flyteidl::plugins::sagemaker::AlgorithmSpecification(*from.algorithm_specification_); } else { - algorithmspecification_ = nullptr; + algorithm_specification_ = nullptr; } - if (from.has_resourceconfig()) { - resourceconfig_ = new ::flyteidl::plugins::sagemaker::ResourceConfig(*from.resourceconfig_); + if (from.has_resource_config()) { + resource_config_ = new ::flyteidl::plugins::sagemaker::ResourceConfig(*from.resource_config_); } else { - resourceconfig_ = nullptr; + resource_config_ = nullptr; } - if (from.has_stoppingcondition()) { - stoppingcondition_ = new ::flyteidl::plugins::sagemaker::StoppingCondition(*from.stoppingcondition_); + if (from.has_stopping_condition()) { + stopping_condition_ = new ::flyteidl::plugins::sagemaker::StoppingCondition(*from.stopping_condition_); } else { - stoppingcondition_ = nullptr; + stopping_condition_ = nullptr; } - if (from.has_vpcconfig()) { - vpcconfig_ = new ::flyteidl::plugins::sagemaker::VpcConfig(*from.vpcconfig_); + if (from.has_vpc_config()) { + vpc_config_ = new ::flyteidl::plugins::sagemaker::VpcConfig(*from.vpc_config_); } else { - vpcconfig_ = nullptr; + vpc_config_ = nullptr; } - enablespottraining_ = from.enablespottraining_; + enable_spot_training_ = from.enable_spot_training_; // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJob) } @@ -2371,10 +2372,10 @@ void TrainingJob::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); region_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - rolearn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&algorithmspecification_, 0, static_cast( - reinterpret_cast(&enablespottraining_) - - reinterpret_cast(&algorithmspecification_)) + sizeof(enablespottraining_)); + role_arn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&algorithm_specification_, 0, static_cast( + reinterpret_cast(&enable_spot_training_) - + reinterpret_cast(&algorithm_specification_)) + sizeof(enable_spot_training_)); } TrainingJob::~TrainingJob() { @@ -2384,11 +2385,11 @@ TrainingJob::~TrainingJob() { void TrainingJob::SharedDtor() { region_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - rolearn_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete algorithmspecification_; - if (this != internal_default_instance()) delete resourceconfig_; - if (this != internal_default_instance()) delete stoppingcondition_; - if (this != internal_default_instance()) delete vpcconfig_; + role_arn_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete algorithm_specification_; + if (this != internal_default_instance()) delete resource_config_; + if (this != internal_default_instance()) delete stopping_condition_; + if (this != internal_default_instance()) delete vpc_config_; } void TrainingJob::SetCachedSize(int size) const { @@ -2407,24 +2408,24 @@ void TrainingJob::Clear() { (void) cached_has_bits; region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - rolearn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && algorithmspecification_ != nullptr) { - delete algorithmspecification_; + role_arn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && algorithm_specification_ != nullptr) { + delete algorithm_specification_; } - algorithmspecification_ = nullptr; - if (GetArenaNoVirtual() == nullptr && resourceconfig_ != nullptr) { - delete resourceconfig_; + algorithm_specification_ = nullptr; + if (GetArenaNoVirtual() == nullptr && resource_config_ != nullptr) { + delete resource_config_; } - resourceconfig_ = nullptr; - if (GetArenaNoVirtual() == nullptr && stoppingcondition_ != nullptr) { - delete stoppingcondition_; + resource_config_ = nullptr; + if (GetArenaNoVirtual() == nullptr && stopping_condition_ != nullptr) { + delete stopping_condition_; } - stoppingcondition_ = nullptr; - if (GetArenaNoVirtual() == nullptr && vpcconfig_ != nullptr) { - delete vpcconfig_; + stopping_condition_ = nullptr; + if (GetArenaNoVirtual() == nullptr && vpc_config_ != nullptr) { + delete vpc_config_; } - vpcconfig_ = nullptr; - enablespottraining_ = false; + vpc_config_ = nullptr; + enable_spot_training_ = false; _internal_metadata_.Clear(); } @@ -2441,12 +2442,12 @@ const char* TrainingJob::_InternalParse(const char* begin, const char* end, void ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string Region = 1; + // string region = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJob.Region"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJob.region"); object = msg->mutable_region(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -2457,13 +2458,13 @@ const char* TrainingJob::_InternalParse(const char* begin, const char* end, void ptr += size; break; } - // string RoleArn = 2; + // string role_arn = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJob.RoleArn"); - object = msg->mutable_rolearn(); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJob.role_arn"); + object = msg->mutable_role_arn(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -2473,62 +2474,62 @@ const char* TrainingJob::_InternalParse(const char* begin, const char* end, void ptr += size; break; } - // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification::_InternalParse; - object = msg->mutable_algorithmspecification(); + object = msg->mutable_algorithm_specification(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + // .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::plugins::sagemaker::ResourceConfig::_InternalParse; - object = msg->mutable_resourceconfig(); + object = msg->mutable_resource_config(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + // .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; case 5: { if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::plugins::sagemaker::StoppingCondition::_InternalParse; - object = msg->mutable_stoppingcondition(); + object = msg->mutable_stopping_condition(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + // .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; case 6: { if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::plugins::sagemaker::VpcConfig::_InternalParse; - object = msg->mutable_vpcconfig(); + object = msg->mutable_vpc_config(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // bool EnableSpotTraining = 7; + // bool enable_spot_training = 7; case 7: { if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; - msg->set_enablespottraining(::google::protobuf::internal::ReadVarint(&ptr)); + msg->set_enable_spot_training(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -2566,7 +2567,7 @@ bool TrainingJob::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string Region = 1; + // string region = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( @@ -2574,79 +2575,79 @@ bool TrainingJob::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->region().data(), static_cast(this->region().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.TrainingJob.Region")); + "flyteidl.plugins.sagemaker.TrainingJob.region")); } else { goto handle_unusual; } break; } - // string RoleArn = 2; + // string role_arn = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_rolearn())); + input, this->mutable_role_arn())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->rolearn().data(), static_cast(this->rolearn().length()), + this->role_arn().data(), static_cast(this->role_arn().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.TrainingJob.RoleArn")); + "flyteidl.plugins.sagemaker.TrainingJob.role_arn")); } else { goto handle_unusual; } break; } - // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_algorithmspecification())); + input, mutable_algorithm_specification())); } else { goto handle_unusual; } break; } - // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + // .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_resourceconfig())); + input, mutable_resource_config())); } else { goto handle_unusual; } break; } - // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + // .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_stoppingcondition())); + input, mutable_stopping_condition())); } else { goto handle_unusual; } break; } - // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + // .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_vpcconfig())); + input, mutable_vpc_config())); } else { goto handle_unusual; } break; } - // bool EnableSpotTraining = 7; + // bool enable_spot_training = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &enablespottraining_))); + input, &enable_spot_training_))); } else { goto handle_unusual; } @@ -2680,53 +2681,53 @@ void TrainingJob::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string Region = 1; + // string region = 1; if (this->region().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->region().data(), static_cast(this->region().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.TrainingJob.Region"); + "flyteidl.plugins.sagemaker.TrainingJob.region"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->region(), output); } - // string RoleArn = 2; - if (this->rolearn().size() > 0) { + // string role_arn = 2; + if (this->role_arn().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->rolearn().data(), static_cast(this->rolearn().length()), + this->role_arn().data(), static_cast(this->role_arn().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.TrainingJob.RoleArn"); + "flyteidl.plugins.sagemaker.TrainingJob.role_arn"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->rolearn(), output); + 2, this->role_arn(), output); } - // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - if (this->has_algorithmspecification()) { + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; + if (this->has_algorithm_specification()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::algorithmspecification(this), output); + 3, HasBitSetters::algorithm_specification(this), output); } - // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - if (this->has_resourceconfig()) { + // .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; + if (this->has_resource_config()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::resourceconfig(this), output); + 4, HasBitSetters::resource_config(this), output); } - // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - if (this->has_stoppingcondition()) { + // .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; + if (this->has_stopping_condition()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::stoppingcondition(this), output); + 5, HasBitSetters::stopping_condition(this), output); } - // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - if (this->has_vpcconfig()) { + // .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; + if (this->has_vpc_config()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::vpcconfig(this), output); + 6, HasBitSetters::vpc_config(this), output); } - // bool EnableSpotTraining = 7; - if (this->enablespottraining() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->enablespottraining(), output); + // bool enable_spot_training = 7; + if (this->enable_spot_training() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->enable_spot_training(), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -2742,59 +2743,59 @@ ::google::protobuf::uint8* TrainingJob::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string Region = 1; + // string region = 1; if (this->region().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->region().data(), static_cast(this->region().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.TrainingJob.Region"); + "flyteidl.plugins.sagemaker.TrainingJob.region"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->region(), target); } - // string RoleArn = 2; - if (this->rolearn().size() > 0) { + // string role_arn = 2; + if (this->role_arn().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->rolearn().data(), static_cast(this->rolearn().length()), + this->role_arn().data(), static_cast(this->role_arn().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.TrainingJob.RoleArn"); + "flyteidl.plugins.sagemaker.TrainingJob.role_arn"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->rolearn(), target); + 2, this->role_arn(), target); } - // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - if (this->has_algorithmspecification()) { + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; + if (this->has_algorithm_specification()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 3, HasBitSetters::algorithmspecification(this), target); + 3, HasBitSetters::algorithm_specification(this), target); } - // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - if (this->has_resourceconfig()) { + // .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; + if (this->has_resource_config()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 4, HasBitSetters::resourceconfig(this), target); + 4, HasBitSetters::resource_config(this), target); } - // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - if (this->has_stoppingcondition()) { + // .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; + if (this->has_stopping_condition()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 5, HasBitSetters::stoppingcondition(this), target); + 5, HasBitSetters::stopping_condition(this), target); } - // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - if (this->has_vpcconfig()) { + // .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; + if (this->has_vpc_config()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 6, HasBitSetters::vpcconfig(this), target); + 6, HasBitSetters::vpc_config(this), target); } - // bool EnableSpotTraining = 7; - if (this->enablespottraining() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->enablespottraining(), target); + // bool enable_spot_training = 7; + if (this->enable_spot_training() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->enable_spot_training(), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -2818,50 +2819,50 @@ size_t TrainingJob::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string Region = 1; + // string region = 1; if (this->region().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->region()); } - // string RoleArn = 2; - if (this->rolearn().size() > 0) { + // string role_arn = 2; + if (this->role_arn().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->rolearn()); + this->role_arn()); } - // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - if (this->has_algorithmspecification()) { + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; + if (this->has_algorithm_specification()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *algorithmspecification_); + *algorithm_specification_); } - // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - if (this->has_resourceconfig()) { + // .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; + if (this->has_resource_config()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *resourceconfig_); + *resource_config_); } - // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - if (this->has_stoppingcondition()) { + // .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; + if (this->has_stopping_condition()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *stoppingcondition_); + *stopping_condition_); } - // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - if (this->has_vpcconfig()) { + // .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; + if (this->has_vpc_config()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *vpcconfig_); + *vpc_config_); } - // bool EnableSpotTraining = 7; - if (this->enablespottraining() != 0) { + // bool enable_spot_training = 7; + if (this->enable_spot_training() != 0) { total_size += 1 + 1; } @@ -2896,24 +2897,24 @@ void TrainingJob::MergeFrom(const TrainingJob& from) { region_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_); } - if (from.rolearn().size() > 0) { + if (from.role_arn().size() > 0) { - rolearn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rolearn_); + role_arn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_arn_); } - if (from.has_algorithmspecification()) { - mutable_algorithmspecification()->::flyteidl::plugins::sagemaker::AlgorithmSpecification::MergeFrom(from.algorithmspecification()); + if (from.has_algorithm_specification()) { + mutable_algorithm_specification()->::flyteidl::plugins::sagemaker::AlgorithmSpecification::MergeFrom(from.algorithm_specification()); } - if (from.has_resourceconfig()) { - mutable_resourceconfig()->::flyteidl::plugins::sagemaker::ResourceConfig::MergeFrom(from.resourceconfig()); + if (from.has_resource_config()) { + mutable_resource_config()->::flyteidl::plugins::sagemaker::ResourceConfig::MergeFrom(from.resource_config()); } - if (from.has_stoppingcondition()) { - mutable_stoppingcondition()->::flyteidl::plugins::sagemaker::StoppingCondition::MergeFrom(from.stoppingcondition()); + if (from.has_stopping_condition()) { + mutable_stopping_condition()->::flyteidl::plugins::sagemaker::StoppingCondition::MergeFrom(from.stopping_condition()); } - if (from.has_vpcconfig()) { - mutable_vpcconfig()->::flyteidl::plugins::sagemaker::VpcConfig::MergeFrom(from.vpcconfig()); + if (from.has_vpc_config()) { + mutable_vpc_config()->::flyteidl::plugins::sagemaker::VpcConfig::MergeFrom(from.vpc_config()); } - if (from.enablespottraining() != 0) { - set_enablespottraining(from.enablespottraining()); + if (from.enable_spot_training() != 0) { + set_enable_spot_training(from.enable_spot_training()); } } @@ -2944,13 +2945,13 @@ void TrainingJob::InternalSwap(TrainingJob* other) { _internal_metadata_.Swap(&other->_internal_metadata_); region_.Swap(&other->region_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - rolearn_.Swap(&other->rolearn_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + role_arn_.Swap(&other->role_arn_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - swap(algorithmspecification_, other->algorithmspecification_); - swap(resourceconfig_, other->resourceconfig_); - swap(stoppingcondition_, other->stoppingcondition_); - swap(vpcconfig_, other->vpcconfig_); - swap(enablespottraining_, other->enablespottraining_); + swap(algorithm_specification_, other->algorithm_specification_); + swap(resource_config_, other->resource_config_); + swap(stopping_condition_, other->stopping_condition_); + swap(vpc_config_, other->vpc_config_); + swap(enable_spot_training_, other->enable_spot_training_); } ::google::protobuf::Metadata TrainingJob::GetMetadata() const { diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h index b54a2b674..8eb36f110 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h @@ -183,7 +183,7 @@ class AlgorithmSpecification_MetricDefinition final : // accessors ------------------------------------------------------- - // string Name = 1; + // string name = 1; void clear_name(); static const int kNameFieldNumber = 1; const ::std::string& name() const; @@ -197,7 +197,7 @@ class AlgorithmSpecification_MetricDefinition final : ::std::string* release_name(); void set_allocated_name(::std::string* name); - // string Regex = 2; + // string regex = 2; void clear_regex(); static const int kRegexFieldNumber = 2; const ::std::string& regex() const; @@ -320,69 +320,69 @@ class AlgorithmSpecification final : // accessors ------------------------------------------------------- - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; - int metricdefinitions_size() const; - void clear_metricdefinitions(); + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + int metric_definitions_size() const; + void clear_metric_definitions(); static const int kMetricDefinitionsFieldNumber = 4; - ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* mutable_metricdefinitions(int index); + ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* mutable_metric_definitions(int index); ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* - mutable_metricdefinitions(); - const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& metricdefinitions(int index) const; - ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* add_metricdefinitions(); + mutable_metric_definitions(); + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& metric_definitions(int index) const; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* add_metric_definitions(); const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& - metricdefinitions() const; + metric_definitions() const; - // string TrainingImage = 1; - void clear_trainingimage(); + // string training_image = 1; + void clear_training_image(); static const int kTrainingImageFieldNumber = 1; - const ::std::string& trainingimage() const; - void set_trainingimage(const ::std::string& value); + const ::std::string& training_image() const; + void set_training_image(const ::std::string& value); #if LANG_CXX11 - void set_trainingimage(::std::string&& value); + void set_training_image(::std::string&& value); #endif - void set_trainingimage(const char* value); - void set_trainingimage(const char* value, size_t size); - ::std::string* mutable_trainingimage(); - ::std::string* release_trainingimage(); - void set_allocated_trainingimage(::std::string* trainingimage); - - // string TrainingInputMode = 2; - void clear_traininginputmode(); + void set_training_image(const char* value); + void set_training_image(const char* value, size_t size); + ::std::string* mutable_training_image(); + ::std::string* release_training_image(); + void set_allocated_training_image(::std::string* training_image); + + // string training_input_mode = 2; + void clear_training_input_mode(); static const int kTrainingInputModeFieldNumber = 2; - const ::std::string& traininginputmode() const; - void set_traininginputmode(const ::std::string& value); + const ::std::string& training_input_mode() const; + void set_training_input_mode(const ::std::string& value); #if LANG_CXX11 - void set_traininginputmode(::std::string&& value); + void set_training_input_mode(::std::string&& value); #endif - void set_traininginputmode(const char* value); - void set_traininginputmode(const char* value, size_t size); - ::std::string* mutable_traininginputmode(); - ::std::string* release_traininginputmode(); - void set_allocated_traininginputmode(::std::string* traininginputmode); - - // string AlgorithmName = 3; - void clear_algorithmname(); + void set_training_input_mode(const char* value); + void set_training_input_mode(const char* value, size_t size); + ::std::string* mutable_training_input_mode(); + ::std::string* release_training_input_mode(); + void set_allocated_training_input_mode(::std::string* training_input_mode); + + // string algorithm_name = 3; + void clear_algorithm_name(); static const int kAlgorithmNameFieldNumber = 3; - const ::std::string& algorithmname() const; - void set_algorithmname(const ::std::string& value); + const ::std::string& algorithm_name() const; + void set_algorithm_name(const ::std::string& value); #if LANG_CXX11 - void set_algorithmname(::std::string&& value); + void set_algorithm_name(::std::string&& value); #endif - void set_algorithmname(const char* value); - void set_algorithmname(const char* value, size_t size); - ::std::string* mutable_algorithmname(); - ::std::string* release_algorithmname(); - void set_allocated_algorithmname(::std::string* algorithmname); + void set_algorithm_name(const char* value); + void set_algorithm_name(const char* value, size_t size); + ::std::string* mutable_algorithm_name(); + ::std::string* release_algorithm_name(); + void set_allocated_algorithm_name(::std::string* algorithm_name); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition > metricdefinitions_; - ::google::protobuf::internal::ArenaStringPtr trainingimage_; - ::google::protobuf::internal::ArenaStringPtr traininginputmode_; - ::google::protobuf::internal::ArenaStringPtr algorithmname_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition > metric_definitions_; + ::google::protobuf::internal::ArenaStringPtr training_image_; + ::google::protobuf::internal::ArenaStringPtr training_input_mode_; + ::google::protobuf::internal::ArenaStringPtr algorithm_name_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; }; @@ -483,55 +483,55 @@ class ResourceConfig final : // accessors ------------------------------------------------------- - // string InstanceType = 1; - void clear_instancetype(); + // string instance_type = 1; + void clear_instance_type(); static const int kInstanceTypeFieldNumber = 1; - const ::std::string& instancetype() const; - void set_instancetype(const ::std::string& value); + const ::std::string& instance_type() const; + void set_instance_type(const ::std::string& value); #if LANG_CXX11 - void set_instancetype(::std::string&& value); + void set_instance_type(::std::string&& value); #endif - void set_instancetype(const char* value); - void set_instancetype(const char* value, size_t size); - ::std::string* mutable_instancetype(); - ::std::string* release_instancetype(); - void set_allocated_instancetype(::std::string* instancetype); - - // string VolumeKmsKeyId = 4; - void clear_volumekmskeyid(); + void set_instance_type(const char* value); + void set_instance_type(const char* value, size_t size); + ::std::string* mutable_instance_type(); + ::std::string* release_instance_type(); + void set_allocated_instance_type(::std::string* instance_type); + + // string volume_kms_key_id = 4; + void clear_volume_kms_key_id(); static const int kVolumeKmsKeyIdFieldNumber = 4; - const ::std::string& volumekmskeyid() const; - void set_volumekmskeyid(const ::std::string& value); + const ::std::string& volume_kms_key_id() const; + void set_volume_kms_key_id(const ::std::string& value); #if LANG_CXX11 - void set_volumekmskeyid(::std::string&& value); + void set_volume_kms_key_id(::std::string&& value); #endif - void set_volumekmskeyid(const char* value); - void set_volumekmskeyid(const char* value, size_t size); - ::std::string* mutable_volumekmskeyid(); - ::std::string* release_volumekmskeyid(); - void set_allocated_volumekmskeyid(::std::string* volumekmskeyid); - - // int64 InstanceCount = 2; - void clear_instancecount(); + void set_volume_kms_key_id(const char* value); + void set_volume_kms_key_id(const char* value, size_t size); + ::std::string* mutable_volume_kms_key_id(); + ::std::string* release_volume_kms_key_id(); + void set_allocated_volume_kms_key_id(::std::string* volume_kms_key_id); + + // int64 instance_count = 2; + void clear_instance_count(); static const int kInstanceCountFieldNumber = 2; - ::google::protobuf::int64 instancecount() const; - void set_instancecount(::google::protobuf::int64 value); + ::google::protobuf::int64 instance_count() const; + void set_instance_count(::google::protobuf::int64 value); - // int64 VolumeSizeInGB = 3; - void clear_volumesizeingb(); - static const int kVolumeSizeInGBFieldNumber = 3; - ::google::protobuf::int64 volumesizeingb() const; - void set_volumesizeingb(::google::protobuf::int64 value); + // int64 volume_size_in_gb = 3; + void clear_volume_size_in_gb(); + static const int kVolumeSizeInGbFieldNumber = 3; + ::google::protobuf::int64 volume_size_in_gb() const; + void set_volume_size_in_gb(::google::protobuf::int64 value); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ResourceConfig) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr instancetype_; - ::google::protobuf::internal::ArenaStringPtr volumekmskeyid_; - ::google::protobuf::int64 instancecount_; - ::google::protobuf::int64 volumesizeingb_; + ::google::protobuf::internal::ArenaStringPtr instance_type_; + ::google::protobuf::internal::ArenaStringPtr volume_kms_key_id_; + ::google::protobuf::int64 instance_count_; + ::google::protobuf::int64 volume_size_in_gb_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; }; @@ -632,25 +632,25 @@ class StoppingCondition final : // accessors ------------------------------------------------------- - // int64 MaxRuntimeInSeconds = 1; - void clear_maxruntimeinseconds(); + // int64 max_runtime_in_seconds = 1; + void clear_max_runtime_in_seconds(); static const int kMaxRuntimeInSecondsFieldNumber = 1; - ::google::protobuf::int64 maxruntimeinseconds() const; - void set_maxruntimeinseconds(::google::protobuf::int64 value); + ::google::protobuf::int64 max_runtime_in_seconds() const; + void set_max_runtime_in_seconds(::google::protobuf::int64 value); - // int64 MaxWaitTimeInSeconds = 2; - void clear_maxwaittimeinseconds(); + // int64 max_wait_time_in_seconds = 2; + void clear_max_wait_time_in_seconds(); static const int kMaxWaitTimeInSecondsFieldNumber = 2; - ::google::protobuf::int64 maxwaittimeinseconds() const; - void set_maxwaittimeinseconds(::google::protobuf::int64 value); + ::google::protobuf::int64 max_wait_time_in_seconds() const; + void set_max_wait_time_in_seconds(::google::protobuf::int64 value); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int64 maxruntimeinseconds_; - ::google::protobuf::int64 maxwaittimeinseconds_; + ::google::protobuf::int64 max_runtime_in_seconds_; + ::google::protobuf::int64 max_wait_time_in_seconds_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; }; @@ -751,29 +751,29 @@ class VpcConfig final : // accessors ------------------------------------------------------- - // repeated string SecurityGroupIds = 1; - int securitygroupids_size() const; - void clear_securitygroupids(); + // repeated string security_group_ids = 1; + int security_group_ids_size() const; + void clear_security_group_ids(); static const int kSecurityGroupIdsFieldNumber = 1; - const ::std::string& securitygroupids(int index) const; - ::std::string* mutable_securitygroupids(int index); - void set_securitygroupids(int index, const ::std::string& value); + const ::std::string& security_group_ids(int index) const; + ::std::string* mutable_security_group_ids(int index); + void set_security_group_ids(int index, const ::std::string& value); #if LANG_CXX11 - void set_securitygroupids(int index, ::std::string&& value); + void set_security_group_ids(int index, ::std::string&& value); #endif - void set_securitygroupids(int index, const char* value); - void set_securitygroupids(int index, const char* value, size_t size); - ::std::string* add_securitygroupids(); - void add_securitygroupids(const ::std::string& value); + void set_security_group_ids(int index, const char* value); + void set_security_group_ids(int index, const char* value, size_t size); + ::std::string* add_security_group_ids(); + void add_security_group_ids(const ::std::string& value); #if LANG_CXX11 - void add_securitygroupids(::std::string&& value); + void add_security_group_ids(::std::string&& value); #endif - void add_securitygroupids(const char* value); - void add_securitygroupids(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& securitygroupids() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_securitygroupids(); + void add_security_group_ids(const char* value); + void add_security_group_ids(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& security_group_ids() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_security_group_ids(); - // repeated string Subnets = 2; + // repeated string subnets = 2; int subnets_size() const; void clear_subnets(); static const int kSubnetsFieldNumber = 2; @@ -800,7 +800,7 @@ class VpcConfig final : class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> securitygroupids_; + ::google::protobuf::RepeatedPtrField<::std::string> security_group_ids_; ::google::protobuf::RepeatedPtrField<::std::string> subnets_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; @@ -902,7 +902,7 @@ class TrainingJob final : // accessors ------------------------------------------------------- - // string Region = 1; + // string region = 1; void clear_region(); static const int kRegionFieldNumber = 1; const ::std::string& region() const; @@ -916,61 +916,61 @@ class TrainingJob final : ::std::string* release_region(); void set_allocated_region(::std::string* region); - // string RoleArn = 2; - void clear_rolearn(); + // string role_arn = 2; + void clear_role_arn(); static const int kRoleArnFieldNumber = 2; - const ::std::string& rolearn() const; - void set_rolearn(const ::std::string& value); + const ::std::string& role_arn() const; + void set_role_arn(const ::std::string& value); #if LANG_CXX11 - void set_rolearn(::std::string&& value); + void set_role_arn(::std::string&& value); #endif - void set_rolearn(const char* value); - void set_rolearn(const char* value, size_t size); - ::std::string* mutable_rolearn(); - ::std::string* release_rolearn(); - void set_allocated_rolearn(::std::string* rolearn); - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; - bool has_algorithmspecification() const; - void clear_algorithmspecification(); + void set_role_arn(const char* value); + void set_role_arn(const char* value, size_t size); + ::std::string* mutable_role_arn(); + ::std::string* release_role_arn(); + void set_allocated_role_arn(::std::string* role_arn); + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; + bool has_algorithm_specification() const; + void clear_algorithm_specification(); static const int kAlgorithmSpecificationFieldNumber = 3; - const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithmspecification() const; - ::flyteidl::plugins::sagemaker::AlgorithmSpecification* release_algorithmspecification(); - ::flyteidl::plugins::sagemaker::AlgorithmSpecification* mutable_algorithmspecification(); - void set_allocated_algorithmspecification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithmspecification); - - // .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; - bool has_resourceconfig() const; - void clear_resourceconfig(); + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithm_specification() const; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* release_algorithm_specification(); + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* mutable_algorithm_specification(); + void set_allocated_algorithm_specification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification); + + // .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; + bool has_resource_config() const; + void clear_resource_config(); static const int kResourceConfigFieldNumber = 4; - const ::flyteidl::plugins::sagemaker::ResourceConfig& resourceconfig() const; - ::flyteidl::plugins::sagemaker::ResourceConfig* release_resourceconfig(); - ::flyteidl::plugins::sagemaker::ResourceConfig* mutable_resourceconfig(); - void set_allocated_resourceconfig(::flyteidl::plugins::sagemaker::ResourceConfig* resourceconfig); - - // .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; - bool has_stoppingcondition() const; - void clear_stoppingcondition(); + const ::flyteidl::plugins::sagemaker::ResourceConfig& resource_config() const; + ::flyteidl::plugins::sagemaker::ResourceConfig* release_resource_config(); + ::flyteidl::plugins::sagemaker::ResourceConfig* mutable_resource_config(); + void set_allocated_resource_config(::flyteidl::plugins::sagemaker::ResourceConfig* resource_config); + + // .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; + bool has_stopping_condition() const; + void clear_stopping_condition(); static const int kStoppingConditionFieldNumber = 5; - const ::flyteidl::plugins::sagemaker::StoppingCondition& stoppingcondition() const; - ::flyteidl::plugins::sagemaker::StoppingCondition* release_stoppingcondition(); - ::flyteidl::plugins::sagemaker::StoppingCondition* mutable_stoppingcondition(); - void set_allocated_stoppingcondition(::flyteidl::plugins::sagemaker::StoppingCondition* stoppingcondition); - - // .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; - bool has_vpcconfig() const; - void clear_vpcconfig(); + const ::flyteidl::plugins::sagemaker::StoppingCondition& stopping_condition() const; + ::flyteidl::plugins::sagemaker::StoppingCondition* release_stopping_condition(); + ::flyteidl::plugins::sagemaker::StoppingCondition* mutable_stopping_condition(); + void set_allocated_stopping_condition(::flyteidl::plugins::sagemaker::StoppingCondition* stopping_condition); + + // .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; + bool has_vpc_config() const; + void clear_vpc_config(); static const int kVpcConfigFieldNumber = 6; - const ::flyteidl::plugins::sagemaker::VpcConfig& vpcconfig() const; - ::flyteidl::plugins::sagemaker::VpcConfig* release_vpcconfig(); - ::flyteidl::plugins::sagemaker::VpcConfig* mutable_vpcconfig(); - void set_allocated_vpcconfig(::flyteidl::plugins::sagemaker::VpcConfig* vpcconfig); + const ::flyteidl::plugins::sagemaker::VpcConfig& vpc_config() const; + ::flyteidl::plugins::sagemaker::VpcConfig* release_vpc_config(); + ::flyteidl::plugins::sagemaker::VpcConfig* mutable_vpc_config(); + void set_allocated_vpc_config(::flyteidl::plugins::sagemaker::VpcConfig* vpc_config); - // bool EnableSpotTraining = 7; - void clear_enablespottraining(); + // bool enable_spot_training = 7; + void clear_enable_spot_training(); static const int kEnableSpotTrainingFieldNumber = 7; - bool enablespottraining() const; - void set_enablespottraining(bool value); + bool enable_spot_training() const; + void set_enable_spot_training(bool value); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) private: @@ -978,12 +978,12 @@ class TrainingJob final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr region_; - ::google::protobuf::internal::ArenaStringPtr rolearn_; - ::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithmspecification_; - ::flyteidl::plugins::sagemaker::ResourceConfig* resourceconfig_; - ::flyteidl::plugins::sagemaker::StoppingCondition* stoppingcondition_; - ::flyteidl::plugins::sagemaker::VpcConfig* vpcconfig_; - bool enablespottraining_; + ::google::protobuf::internal::ArenaStringPtr role_arn_; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification_; + ::flyteidl::plugins::sagemaker::ResourceConfig* resource_config_; + ::flyteidl::plugins::sagemaker::StoppingCondition* stopping_condition_; + ::flyteidl::plugins::sagemaker::VpcConfig* vpc_config_; + bool enable_spot_training_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; }; @@ -998,46 +998,46 @@ class TrainingJob final : #endif // __GNUC__ // AlgorithmSpecification_MetricDefinition -// string Name = 1; +// string name = 1; inline void AlgorithmSpecification_MetricDefinition::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& AlgorithmSpecification_MetricDefinition::name() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) return name_.GetNoArena(); } inline void AlgorithmSpecification_MetricDefinition::set_name(const ::std::string& value) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) } #if LANG_CXX11 inline void AlgorithmSpecification_MetricDefinition::set_name(::std::string&& value) { name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) } #endif inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) } inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value, size_t size) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) } inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_name() { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AlgorithmSpecification_MetricDefinition::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1048,49 +1048,49 @@ inline void AlgorithmSpecification_MetricDefinition::set_allocated_name(::std::s } name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) } -// string Regex = 2; +// string regex = 2; inline void AlgorithmSpecification_MetricDefinition::clear_regex() { regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& AlgorithmSpecification_MetricDefinition::regex() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) return regex_.GetNoArena(); } inline void AlgorithmSpecification_MetricDefinition::set_regex(const ::std::string& value) { regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) } #if LANG_CXX11 inline void AlgorithmSpecification_MetricDefinition::set_regex(::std::string&& value) { regex_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) } #endif inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value) { GOOGLE_DCHECK(value != nullptr); regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) } inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value, size_t size) { regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) } inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_regex() { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) return regex_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AlgorithmSpecification_MetricDefinition::release_regex() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) return regex_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1101,446 +1101,446 @@ inline void AlgorithmSpecification_MetricDefinition::set_allocated_regex(::std:: } regex_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), regex); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) } // ------------------------------------------------------------------- // AlgorithmSpecification -// string TrainingImage = 1; -inline void AlgorithmSpecification::clear_trainingimage() { - trainingimage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string training_image = 1; +inline void AlgorithmSpecification::clear_training_image() { + training_image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& AlgorithmSpecification::trainingimage() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) - return trainingimage_.GetNoArena(); +inline const ::std::string& AlgorithmSpecification::training_image() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) + return training_image_.GetNoArena(); } -inline void AlgorithmSpecification::set_trainingimage(const ::std::string& value) { +inline void AlgorithmSpecification::set_training_image(const ::std::string& value) { - trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + training_image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) } #if LANG_CXX11 -inline void AlgorithmSpecification::set_trainingimage(::std::string&& value) { +inline void AlgorithmSpecification::set_training_image(::std::string&& value) { - trainingimage_.SetNoArena( + training_image_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) } #endif -inline void AlgorithmSpecification::set_trainingimage(const char* value) { +inline void AlgorithmSpecification::set_training_image(const char* value) { GOOGLE_DCHECK(value != nullptr); - trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + training_image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) } -inline void AlgorithmSpecification::set_trainingimage(const char* value, size_t size) { +inline void AlgorithmSpecification::set_training_image(const char* value, size_t size) { - trainingimage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + training_image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) } -inline ::std::string* AlgorithmSpecification::mutable_trainingimage() { +inline ::std::string* AlgorithmSpecification::mutable_training_image() { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) - return trainingimage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) + return training_image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* AlgorithmSpecification::release_trainingimage() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) +inline ::std::string* AlgorithmSpecification::release_training_image() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) - return trainingimage_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return training_image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void AlgorithmSpecification::set_allocated_trainingimage(::std::string* trainingimage) { - if (trainingimage != nullptr) { +inline void AlgorithmSpecification::set_allocated_training_image(::std::string* training_image) { + if (training_image != nullptr) { } else { } - trainingimage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trainingimage); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage) + training_image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), training_image); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) } -// string TrainingInputMode = 2; -inline void AlgorithmSpecification::clear_traininginputmode() { - traininginputmode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string training_input_mode = 2; +inline void AlgorithmSpecification::clear_training_input_mode() { + training_input_mode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& AlgorithmSpecification::traininginputmode() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) - return traininginputmode_.GetNoArena(); +inline const ::std::string& AlgorithmSpecification::training_input_mode() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) + return training_input_mode_.GetNoArena(); } -inline void AlgorithmSpecification::set_traininginputmode(const ::std::string& value) { +inline void AlgorithmSpecification::set_training_input_mode(const ::std::string& value) { - traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + training_input_mode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) } #if LANG_CXX11 -inline void AlgorithmSpecification::set_traininginputmode(::std::string&& value) { +inline void AlgorithmSpecification::set_training_input_mode(::std::string&& value) { - traininginputmode_.SetNoArena( + training_input_mode_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) } #endif -inline void AlgorithmSpecification::set_traininginputmode(const char* value) { +inline void AlgorithmSpecification::set_training_input_mode(const char* value) { GOOGLE_DCHECK(value != nullptr); - traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + training_input_mode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) } -inline void AlgorithmSpecification::set_traininginputmode(const char* value, size_t size) { +inline void AlgorithmSpecification::set_training_input_mode(const char* value, size_t size) { - traininginputmode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + training_input_mode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) } -inline ::std::string* AlgorithmSpecification::mutable_traininginputmode() { +inline ::std::string* AlgorithmSpecification::mutable_training_input_mode() { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) - return traininginputmode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) + return training_input_mode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* AlgorithmSpecification::release_traininginputmode() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) +inline ::std::string* AlgorithmSpecification::release_training_input_mode() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) - return traininginputmode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return training_input_mode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void AlgorithmSpecification::set_allocated_traininginputmode(::std::string* traininginputmode) { - if (traininginputmode != nullptr) { +inline void AlgorithmSpecification::set_allocated_training_input_mode(::std::string* training_input_mode) { + if (training_input_mode != nullptr) { } else { } - traininginputmode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), traininginputmode); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode) + training_input_mode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), training_input_mode); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) } -// string AlgorithmName = 3; -inline void AlgorithmSpecification::clear_algorithmname() { - algorithmname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string algorithm_name = 3; +inline void AlgorithmSpecification::clear_algorithm_name() { + algorithm_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& AlgorithmSpecification::algorithmname() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) - return algorithmname_.GetNoArena(); +inline const ::std::string& AlgorithmSpecification::algorithm_name() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) + return algorithm_name_.GetNoArena(); } -inline void AlgorithmSpecification::set_algorithmname(const ::std::string& value) { +inline void AlgorithmSpecification::set_algorithm_name(const ::std::string& value) { - algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + algorithm_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) } #if LANG_CXX11 -inline void AlgorithmSpecification::set_algorithmname(::std::string&& value) { +inline void AlgorithmSpecification::set_algorithm_name(::std::string&& value) { - algorithmname_.SetNoArena( + algorithm_name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) } #endif -inline void AlgorithmSpecification::set_algorithmname(const char* value) { +inline void AlgorithmSpecification::set_algorithm_name(const char* value) { GOOGLE_DCHECK(value != nullptr); - algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + algorithm_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) } -inline void AlgorithmSpecification::set_algorithmname(const char* value, size_t size) { +inline void AlgorithmSpecification::set_algorithm_name(const char* value, size_t size) { - algorithmname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + algorithm_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) } -inline ::std::string* AlgorithmSpecification::mutable_algorithmname() { +inline ::std::string* AlgorithmSpecification::mutable_algorithm_name() { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) - return algorithmname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) + return algorithm_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* AlgorithmSpecification::release_algorithmname() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) +inline ::std::string* AlgorithmSpecification::release_algorithm_name() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) - return algorithmname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return algorithm_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void AlgorithmSpecification::set_allocated_algorithmname(::std::string* algorithmname) { - if (algorithmname != nullptr) { +inline void AlgorithmSpecification::set_allocated_algorithm_name(::std::string* algorithm_name) { + if (algorithm_name != nullptr) { } else { } - algorithmname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), algorithmname); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName) + algorithm_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), algorithm_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) } -// repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; -inline int AlgorithmSpecification::metricdefinitions_size() const { - return metricdefinitions_.size(); +// repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; +inline int AlgorithmSpecification::metric_definitions_size() const { + return metric_definitions_.size(); } -inline void AlgorithmSpecification::clear_metricdefinitions() { - metricdefinitions_.Clear(); +inline void AlgorithmSpecification::clear_metric_definitions() { + metric_definitions_.Clear(); } -inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::mutable_metricdefinitions(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) - return metricdefinitions_.Mutable(index); +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::mutable_metric_definitions(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return metric_definitions_.Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* -AlgorithmSpecification::mutable_metricdefinitions() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) - return &metricdefinitions_; +AlgorithmSpecification::mutable_metric_definitions() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return &metric_definitions_; } -inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& AlgorithmSpecification::metricdefinitions(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) - return metricdefinitions_.Get(index); +inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& AlgorithmSpecification::metric_definitions(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return metric_definitions_.Get(index); } -inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::add_metricdefinitions() { - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) - return metricdefinitions_.Add(); +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::add_metric_definitions() { + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return metric_definitions_.Add(); } inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& -AlgorithmSpecification::metricdefinitions() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions) - return metricdefinitions_; +AlgorithmSpecification::metric_definitions() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return metric_definitions_; } // ------------------------------------------------------------------- // ResourceConfig -// string InstanceType = 1; -inline void ResourceConfig::clear_instancetype() { - instancetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string instance_type = 1; +inline void ResourceConfig::clear_instance_type() { + instance_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& ResourceConfig::instancetype() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) - return instancetype_.GetNoArena(); +inline const ::std::string& ResourceConfig::instance_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) + return instance_type_.GetNoArena(); } -inline void ResourceConfig::set_instancetype(const ::std::string& value) { +inline void ResourceConfig::set_instance_type(const ::std::string& value) { - instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) + instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) } #if LANG_CXX11 -inline void ResourceConfig::set_instancetype(::std::string&& value) { +inline void ResourceConfig::set_instance_type(::std::string&& value) { - instancetype_.SetNoArena( + instance_type_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) } #endif -inline void ResourceConfig::set_instancetype(const char* value) { +inline void ResourceConfig::set_instance_type(const char* value) { GOOGLE_DCHECK(value != nullptr); - instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) + instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) } -inline void ResourceConfig::set_instancetype(const char* value, size_t size) { +inline void ResourceConfig::set_instance_type(const char* value, size_t size) { - instancetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) } -inline ::std::string* ResourceConfig::mutable_instancetype() { +inline ::std::string* ResourceConfig::mutable_instance_type() { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) - return instancetype_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) + return instance_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* ResourceConfig::release_instancetype() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) +inline ::std::string* ResourceConfig::release_instance_type() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) - return instancetype_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return instance_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ResourceConfig::set_allocated_instancetype(::std::string* instancetype) { - if (instancetype != nullptr) { +inline void ResourceConfig::set_allocated_instance_type(::std::string* instance_type) { + if (instance_type != nullptr) { } else { } - instancetype_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instancetype); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ResourceConfig.InstanceType) + instance_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instance_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) } -// int64 InstanceCount = 2; -inline void ResourceConfig::clear_instancecount() { - instancecount_ = PROTOBUF_LONGLONG(0); +// int64 instance_count = 2; +inline void ResourceConfig::clear_instance_count() { + instance_count_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 ResourceConfig::instancecount() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount) - return instancecount_; +inline ::google::protobuf::int64 ResourceConfig::instance_count() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.instance_count) + return instance_count_; } -inline void ResourceConfig::set_instancecount(::google::protobuf::int64 value) { +inline void ResourceConfig::set_instance_count(::google::protobuf::int64 value) { - instancecount_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount) + instance_count_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.instance_count) } -// int64 VolumeSizeInGB = 3; -inline void ResourceConfig::clear_volumesizeingb() { - volumesizeingb_ = PROTOBUF_LONGLONG(0); +// int64 volume_size_in_gb = 3; +inline void ResourceConfig::clear_volume_size_in_gb() { + volume_size_in_gb_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 ResourceConfig::volumesizeingb() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB) - return volumesizeingb_; +inline ::google::protobuf::int64 ResourceConfig::volume_size_in_gb() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.volume_size_in_gb) + return volume_size_in_gb_; } -inline void ResourceConfig::set_volumesizeingb(::google::protobuf::int64 value) { +inline void ResourceConfig::set_volume_size_in_gb(::google::protobuf::int64 value) { - volumesizeingb_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB) + volume_size_in_gb_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.volume_size_in_gb) } -// string VolumeKmsKeyId = 4; -inline void ResourceConfig::clear_volumekmskeyid() { - volumekmskeyid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string volume_kms_key_id = 4; +inline void ResourceConfig::clear_volume_kms_key_id() { + volume_kms_key_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& ResourceConfig::volumekmskeyid() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) - return volumekmskeyid_.GetNoArena(); +inline const ::std::string& ResourceConfig::volume_kms_key_id() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) + return volume_kms_key_id_.GetNoArena(); } -inline void ResourceConfig::set_volumekmskeyid(const ::std::string& value) { +inline void ResourceConfig::set_volume_kms_key_id(const ::std::string& value) { - volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + volume_kms_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) } #if LANG_CXX11 -inline void ResourceConfig::set_volumekmskeyid(::std::string&& value) { +inline void ResourceConfig::set_volume_kms_key_id(::std::string&& value) { - volumekmskeyid_.SetNoArena( + volume_kms_key_id_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) } #endif -inline void ResourceConfig::set_volumekmskeyid(const char* value) { +inline void ResourceConfig::set_volume_kms_key_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + volume_kms_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) } -inline void ResourceConfig::set_volumekmskeyid(const char* value, size_t size) { +inline void ResourceConfig::set_volume_kms_key_id(const char* value, size_t size) { - volumekmskeyid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + volume_kms_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) } -inline ::std::string* ResourceConfig::mutable_volumekmskeyid() { +inline ::std::string* ResourceConfig::mutable_volume_kms_key_id() { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) - return volumekmskeyid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) + return volume_kms_key_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* ResourceConfig::release_volumekmskeyid() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) +inline ::std::string* ResourceConfig::release_volume_kms_key_id() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) - return volumekmskeyid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return volume_kms_key_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ResourceConfig::set_allocated_volumekmskeyid(::std::string* volumekmskeyid) { - if (volumekmskeyid != nullptr) { +inline void ResourceConfig::set_allocated_volume_kms_key_id(::std::string* volume_kms_key_id) { + if (volume_kms_key_id != nullptr) { } else { } - volumekmskeyid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), volumekmskeyid); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId) + volume_kms_key_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), volume_kms_key_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) } // ------------------------------------------------------------------- // StoppingCondition -// int64 MaxRuntimeInSeconds = 1; -inline void StoppingCondition::clear_maxruntimeinseconds() { - maxruntimeinseconds_ = PROTOBUF_LONGLONG(0); +// int64 max_runtime_in_seconds = 1; +inline void StoppingCondition::clear_max_runtime_in_seconds() { + max_runtime_in_seconds_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 StoppingCondition::maxruntimeinseconds() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds) - return maxruntimeinseconds_; +inline ::google::protobuf::int64 StoppingCondition::max_runtime_in_seconds() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) + return max_runtime_in_seconds_; } -inline void StoppingCondition::set_maxruntimeinseconds(::google::protobuf::int64 value) { +inline void StoppingCondition::set_max_runtime_in_seconds(::google::protobuf::int64 value) { - maxruntimeinseconds_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds) + max_runtime_in_seconds_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) } -// int64 MaxWaitTimeInSeconds = 2; -inline void StoppingCondition::clear_maxwaittimeinseconds() { - maxwaittimeinseconds_ = PROTOBUF_LONGLONG(0); +// int64 max_wait_time_in_seconds = 2; +inline void StoppingCondition::clear_max_wait_time_in_seconds() { + max_wait_time_in_seconds_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 StoppingCondition::maxwaittimeinseconds() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds) - return maxwaittimeinseconds_; +inline ::google::protobuf::int64 StoppingCondition::max_wait_time_in_seconds() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) + return max_wait_time_in_seconds_; } -inline void StoppingCondition::set_maxwaittimeinseconds(::google::protobuf::int64 value) { +inline void StoppingCondition::set_max_wait_time_in_seconds(::google::protobuf::int64 value) { - maxwaittimeinseconds_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds) + max_wait_time_in_seconds_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) } // ------------------------------------------------------------------- // VpcConfig -// repeated string SecurityGroupIds = 1; -inline int VpcConfig::securitygroupids_size() const { - return securitygroupids_.size(); +// repeated string security_group_ids = 1; +inline int VpcConfig::security_group_ids_size() const { + return security_group_ids_.size(); } -inline void VpcConfig::clear_securitygroupids() { - securitygroupids_.Clear(); +inline void VpcConfig::clear_security_group_ids() { + security_group_ids_.Clear(); } -inline const ::std::string& VpcConfig::securitygroupids(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - return securitygroupids_.Get(index); +inline const ::std::string& VpcConfig::security_group_ids(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) + return security_group_ids_.Get(index); } -inline ::std::string* VpcConfig::mutable_securitygroupids(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - return securitygroupids_.Mutable(index); +inline ::std::string* VpcConfig::mutable_security_group_ids(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) + return security_group_ids_.Mutable(index); } -inline void VpcConfig::set_securitygroupids(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - securitygroupids_.Mutable(index)->assign(value); +inline void VpcConfig::set_security_group_ids(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) + security_group_ids_.Mutable(index)->assign(value); } #if LANG_CXX11 -inline void VpcConfig::set_securitygroupids(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - securitygroupids_.Mutable(index)->assign(std::move(value)); +inline void VpcConfig::set_security_group_ids(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) + security_group_ids_.Mutable(index)->assign(std::move(value)); } #endif -inline void VpcConfig::set_securitygroupids(int index, const char* value) { +inline void VpcConfig::set_security_group_ids(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); - securitygroupids_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) + security_group_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) } -inline void VpcConfig::set_securitygroupids(int index, const char* value, size_t size) { - securitygroupids_.Mutable(index)->assign( +inline void VpcConfig::set_security_group_ids(int index, const char* value, size_t size) { + security_group_ids_.Mutable(index)->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) } -inline ::std::string* VpcConfig::add_securitygroupids() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - return securitygroupids_.Add(); +inline ::std::string* VpcConfig::add_security_group_ids() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) + return security_group_ids_.Add(); } -inline void VpcConfig::add_securitygroupids(const ::std::string& value) { - securitygroupids_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) +inline void VpcConfig::add_security_group_ids(const ::std::string& value) { + security_group_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) } #if LANG_CXX11 -inline void VpcConfig::add_securitygroupids(::std::string&& value) { - securitygroupids_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) +inline void VpcConfig::add_security_group_ids(::std::string&& value) { + security_group_ids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) } #endif -inline void VpcConfig::add_securitygroupids(const char* value) { +inline void VpcConfig::add_security_group_ids(const char* value) { GOOGLE_DCHECK(value != nullptr); - securitygroupids_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) + security_group_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) } -inline void VpcConfig::add_securitygroupids(const char* value, size_t size) { - securitygroupids_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) +inline void VpcConfig::add_security_group_ids(const char* value, size_t size) { + security_group_ids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& -VpcConfig::securitygroupids() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - return securitygroupids_; +VpcConfig::security_group_ids() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) + return security_group_ids_; } inline ::google::protobuf::RepeatedPtrField<::std::string>* -VpcConfig::mutable_securitygroupids() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds) - return &securitygroupids_; +VpcConfig::mutable_security_group_ids() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) + return &security_group_ids_; } -// repeated string Subnets = 2; +// repeated string subnets = 2; inline int VpcConfig::subnets_size() const { return subnets_.size(); } @@ -1548,64 +1548,64 @@ inline void VpcConfig::clear_subnets() { subnets_.Clear(); } inline const ::std::string& VpcConfig::subnets(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.VpcConfig.subnets) return subnets_.Get(index); } inline ::std::string* VpcConfig::mutable_subnets(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.VpcConfig.subnets) return subnets_.Mutable(index); } inline void VpcConfig::set_subnets(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.subnets) subnets_.Mutable(index)->assign(value); } #if LANG_CXX11 inline void VpcConfig::set_subnets(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.subnets) subnets_.Mutable(index)->assign(std::move(value)); } #endif inline void VpcConfig::set_subnets(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); subnets_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.VpcConfig.subnets) } inline void VpcConfig::set_subnets(int index, const char* value, size_t size) { subnets_.Mutable(index)->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.VpcConfig.subnets) } inline ::std::string* VpcConfig::add_subnets() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.VpcConfig.subnets) return subnets_.Add(); } inline void VpcConfig::add_subnets(const ::std::string& value) { subnets_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.subnets) } #if LANG_CXX11 inline void VpcConfig::add_subnets(::std::string&& value) { subnets_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.subnets) } #endif inline void VpcConfig::add_subnets(const char* value) { GOOGLE_DCHECK(value != nullptr); subnets_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.VpcConfig.subnets) } inline void VpcConfig::add_subnets(const char* value, size_t size) { subnets_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.VpcConfig.subnets) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& VpcConfig::subnets() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.VpcConfig.subnets) return subnets_; } inline ::google::protobuf::RepeatedPtrField<::std::string>* VpcConfig::mutable_subnets() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.VpcConfig.Subnets) + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.VpcConfig.subnets) return &subnets_; } @@ -1613,46 +1613,46 @@ VpcConfig::mutable_subnets() { // TrainingJob -// string Region = 1; +// string region = 1; inline void TrainingJob::clear_region() { region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& TrainingJob::region() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.Region) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.region) return region_.GetNoArena(); } inline void TrainingJob::set_region(const ::std::string& value) { region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.Region) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.region) } #if LANG_CXX11 inline void TrainingJob::set_region(::std::string&& value) { region_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJob.Region) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJob.region) } #endif inline void TrainingJob::set_region(const char* value) { GOOGLE_DCHECK(value != nullptr); region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJob.Region) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJob.region) } inline void TrainingJob::set_region(const char* value, size_t size) { region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJob.Region) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJob.region) } inline ::std::string* TrainingJob::mutable_region() { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.Region) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.region) return region_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* TrainingJob::release_region() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.Region) + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.region) return region_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1663,278 +1663,278 @@ inline void TrainingJob::set_allocated_region(::std::string* region) { } region_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), region); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.Region) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.region) } -// string RoleArn = 2; -inline void TrainingJob::clear_rolearn() { - rolearn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string role_arn = 2; +inline void TrainingJob::clear_role_arn() { + role_arn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& TrainingJob::rolearn() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) - return rolearn_.GetNoArena(); +inline const ::std::string& TrainingJob::role_arn() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.role_arn) + return role_arn_.GetNoArena(); } -inline void TrainingJob::set_rolearn(const ::std::string& value) { +inline void TrainingJob::set_role_arn(const ::std::string& value) { - rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) + role_arn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.role_arn) } #if LANG_CXX11 -inline void TrainingJob::set_rolearn(::std::string&& value) { +inline void TrainingJob::set_role_arn(::std::string&& value) { - rolearn_.SetNoArena( + role_arn_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJob.role_arn) } #endif -inline void TrainingJob::set_rolearn(const char* value) { +inline void TrainingJob::set_role_arn(const char* value) { GOOGLE_DCHECK(value != nullptr); - rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) + role_arn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJob.role_arn) } -inline void TrainingJob::set_rolearn(const char* value, size_t size) { +inline void TrainingJob::set_role_arn(const char* value, size_t size) { - rolearn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + role_arn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJob.role_arn) } -inline ::std::string* TrainingJob::mutable_rolearn() { +inline ::std::string* TrainingJob::mutable_role_arn() { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) - return rolearn_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.role_arn) + return role_arn_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* TrainingJob::release_rolearn() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) +inline ::std::string* TrainingJob::release_role_arn() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.role_arn) - return rolearn_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return role_arn_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void TrainingJob::set_allocated_rolearn(::std::string* rolearn) { - if (rolearn != nullptr) { +inline void TrainingJob::set_allocated_role_arn(::std::string* role_arn) { + if (role_arn != nullptr) { } else { } - rolearn_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rolearn); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.RoleArn) + role_arn_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), role_arn); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.role_arn) } -// .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; -inline bool TrainingJob::has_algorithmspecification() const { - return this != internal_default_instance() && algorithmspecification_ != nullptr; +// .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; +inline bool TrainingJob::has_algorithm_specification() const { + return this != internal_default_instance() && algorithm_specification_ != nullptr; } -inline void TrainingJob::clear_algorithmspecification() { - if (GetArenaNoVirtual() == nullptr && algorithmspecification_ != nullptr) { - delete algorithmspecification_; +inline void TrainingJob::clear_algorithm_specification() { + if (GetArenaNoVirtual() == nullptr && algorithm_specification_ != nullptr) { + delete algorithm_specification_; } - algorithmspecification_ = nullptr; + algorithm_specification_ = nullptr; } -inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& TrainingJob::algorithmspecification() const { - const ::flyteidl::plugins::sagemaker::AlgorithmSpecification* p = algorithmspecification_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.AlgorithmSpecification) +inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& TrainingJob::algorithm_specification() const { + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification* p = algorithm_specification_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) return p != nullptr ? *p : *reinterpret_cast( &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_); } -inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* TrainingJob::release_algorithmspecification() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.AlgorithmSpecification) +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* TrainingJob::release_algorithm_specification() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) - ::flyteidl::plugins::sagemaker::AlgorithmSpecification* temp = algorithmspecification_; - algorithmspecification_ = nullptr; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* temp = algorithm_specification_; + algorithm_specification_ = nullptr; return temp; } -inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* TrainingJob::mutable_algorithmspecification() { +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* TrainingJob::mutable_algorithm_specification() { - if (algorithmspecification_ == nullptr) { + if (algorithm_specification_ == nullptr) { auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(GetArenaNoVirtual()); - algorithmspecification_ = p; + algorithm_specification_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.AlgorithmSpecification) - return algorithmspecification_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) + return algorithm_specification_; } -inline void TrainingJob::set_allocated_algorithmspecification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithmspecification) { +inline void TrainingJob::set_allocated_algorithm_specification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete algorithmspecification_; + delete algorithm_specification_; } - if (algorithmspecification) { + if (algorithm_specification) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - algorithmspecification = ::google::protobuf::internal::GetOwnedMessage( - message_arena, algorithmspecification, submessage_arena); + algorithm_specification = ::google::protobuf::internal::GetOwnedMessage( + message_arena, algorithm_specification, submessage_arena); } } else { } - algorithmspecification_ = algorithmspecification; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.AlgorithmSpecification) + algorithm_specification_ = algorithm_specification; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) } -// .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; -inline bool TrainingJob::has_resourceconfig() const { - return this != internal_default_instance() && resourceconfig_ != nullptr; +// .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; +inline bool TrainingJob::has_resource_config() const { + return this != internal_default_instance() && resource_config_ != nullptr; } -inline void TrainingJob::clear_resourceconfig() { - if (GetArenaNoVirtual() == nullptr && resourceconfig_ != nullptr) { - delete resourceconfig_; +inline void TrainingJob::clear_resource_config() { + if (GetArenaNoVirtual() == nullptr && resource_config_ != nullptr) { + delete resource_config_; } - resourceconfig_ = nullptr; + resource_config_ = nullptr; } -inline const ::flyteidl::plugins::sagemaker::ResourceConfig& TrainingJob::resourceconfig() const { - const ::flyteidl::plugins::sagemaker::ResourceConfig* p = resourceconfig_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.ResourceConfig) +inline const ::flyteidl::plugins::sagemaker::ResourceConfig& TrainingJob::resource_config() const { + const ::flyteidl::plugins::sagemaker::ResourceConfig* p = resource_config_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.resource_config) return p != nullptr ? *p : *reinterpret_cast( &::flyteidl::plugins::sagemaker::_ResourceConfig_default_instance_); } -inline ::flyteidl::plugins::sagemaker::ResourceConfig* TrainingJob::release_resourceconfig() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.ResourceConfig) +inline ::flyteidl::plugins::sagemaker::ResourceConfig* TrainingJob::release_resource_config() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.resource_config) - ::flyteidl::plugins::sagemaker::ResourceConfig* temp = resourceconfig_; - resourceconfig_ = nullptr; + ::flyteidl::plugins::sagemaker::ResourceConfig* temp = resource_config_; + resource_config_ = nullptr; return temp; } -inline ::flyteidl::plugins::sagemaker::ResourceConfig* TrainingJob::mutable_resourceconfig() { +inline ::flyteidl::plugins::sagemaker::ResourceConfig* TrainingJob::mutable_resource_config() { - if (resourceconfig_ == nullptr) { + if (resource_config_ == nullptr) { auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ResourceConfig>(GetArenaNoVirtual()); - resourceconfig_ = p; + resource_config_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.ResourceConfig) - return resourceconfig_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.resource_config) + return resource_config_; } -inline void TrainingJob::set_allocated_resourceconfig(::flyteidl::plugins::sagemaker::ResourceConfig* resourceconfig) { +inline void TrainingJob::set_allocated_resource_config(::flyteidl::plugins::sagemaker::ResourceConfig* resource_config) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete resourceconfig_; + delete resource_config_; } - if (resourceconfig) { + if (resource_config) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - resourceconfig = ::google::protobuf::internal::GetOwnedMessage( - message_arena, resourceconfig, submessage_arena); + resource_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resource_config, submessage_arena); } } else { } - resourceconfig_ = resourceconfig; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.ResourceConfig) + resource_config_ = resource_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.resource_config) } -// .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; -inline bool TrainingJob::has_stoppingcondition() const { - return this != internal_default_instance() && stoppingcondition_ != nullptr; +// .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; +inline bool TrainingJob::has_stopping_condition() const { + return this != internal_default_instance() && stopping_condition_ != nullptr; } -inline void TrainingJob::clear_stoppingcondition() { - if (GetArenaNoVirtual() == nullptr && stoppingcondition_ != nullptr) { - delete stoppingcondition_; +inline void TrainingJob::clear_stopping_condition() { + if (GetArenaNoVirtual() == nullptr && stopping_condition_ != nullptr) { + delete stopping_condition_; } - stoppingcondition_ = nullptr; + stopping_condition_ = nullptr; } -inline const ::flyteidl::plugins::sagemaker::StoppingCondition& TrainingJob::stoppingcondition() const { - const ::flyteidl::plugins::sagemaker::StoppingCondition* p = stoppingcondition_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.StoppingCondition) +inline const ::flyteidl::plugins::sagemaker::StoppingCondition& TrainingJob::stopping_condition() const { + const ::flyteidl::plugins::sagemaker::StoppingCondition* p = stopping_condition_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.stopping_condition) return p != nullptr ? *p : *reinterpret_cast( &::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_); } -inline ::flyteidl::plugins::sagemaker::StoppingCondition* TrainingJob::release_stoppingcondition() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.StoppingCondition) +inline ::flyteidl::plugins::sagemaker::StoppingCondition* TrainingJob::release_stopping_condition() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.stopping_condition) - ::flyteidl::plugins::sagemaker::StoppingCondition* temp = stoppingcondition_; - stoppingcondition_ = nullptr; + ::flyteidl::plugins::sagemaker::StoppingCondition* temp = stopping_condition_; + stopping_condition_ = nullptr; return temp; } -inline ::flyteidl::plugins::sagemaker::StoppingCondition* TrainingJob::mutable_stoppingcondition() { +inline ::flyteidl::plugins::sagemaker::StoppingCondition* TrainingJob::mutable_stopping_condition() { - if (stoppingcondition_ == nullptr) { + if (stopping_condition_ == nullptr) { auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::StoppingCondition>(GetArenaNoVirtual()); - stoppingcondition_ = p; + stopping_condition_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.StoppingCondition) - return stoppingcondition_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.stopping_condition) + return stopping_condition_; } -inline void TrainingJob::set_allocated_stoppingcondition(::flyteidl::plugins::sagemaker::StoppingCondition* stoppingcondition) { +inline void TrainingJob::set_allocated_stopping_condition(::flyteidl::plugins::sagemaker::StoppingCondition* stopping_condition) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete stoppingcondition_; + delete stopping_condition_; } - if (stoppingcondition) { + if (stopping_condition) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - stoppingcondition = ::google::protobuf::internal::GetOwnedMessage( - message_arena, stoppingcondition, submessage_arena); + stopping_condition = ::google::protobuf::internal::GetOwnedMessage( + message_arena, stopping_condition, submessage_arena); } } else { } - stoppingcondition_ = stoppingcondition; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.StoppingCondition) + stopping_condition_ = stopping_condition; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.stopping_condition) } -// .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; -inline bool TrainingJob::has_vpcconfig() const { - return this != internal_default_instance() && vpcconfig_ != nullptr; +// .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; +inline bool TrainingJob::has_vpc_config() const { + return this != internal_default_instance() && vpc_config_ != nullptr; } -inline void TrainingJob::clear_vpcconfig() { - if (GetArenaNoVirtual() == nullptr && vpcconfig_ != nullptr) { - delete vpcconfig_; +inline void TrainingJob::clear_vpc_config() { + if (GetArenaNoVirtual() == nullptr && vpc_config_ != nullptr) { + delete vpc_config_; } - vpcconfig_ = nullptr; + vpc_config_ = nullptr; } -inline const ::flyteidl::plugins::sagemaker::VpcConfig& TrainingJob::vpcconfig() const { - const ::flyteidl::plugins::sagemaker::VpcConfig* p = vpcconfig_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.VpcConfig) +inline const ::flyteidl::plugins::sagemaker::VpcConfig& TrainingJob::vpc_config() const { + const ::flyteidl::plugins::sagemaker::VpcConfig* p = vpc_config_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.vpc_config) return p != nullptr ? *p : *reinterpret_cast( &::flyteidl::plugins::sagemaker::_VpcConfig_default_instance_); } -inline ::flyteidl::plugins::sagemaker::VpcConfig* TrainingJob::release_vpcconfig() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.VpcConfig) +inline ::flyteidl::plugins::sagemaker::VpcConfig* TrainingJob::release_vpc_config() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.vpc_config) - ::flyteidl::plugins::sagemaker::VpcConfig* temp = vpcconfig_; - vpcconfig_ = nullptr; + ::flyteidl::plugins::sagemaker::VpcConfig* temp = vpc_config_; + vpc_config_ = nullptr; return temp; } -inline ::flyteidl::plugins::sagemaker::VpcConfig* TrainingJob::mutable_vpcconfig() { +inline ::flyteidl::plugins::sagemaker::VpcConfig* TrainingJob::mutable_vpc_config() { - if (vpcconfig_ == nullptr) { + if (vpc_config_ == nullptr) { auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::VpcConfig>(GetArenaNoVirtual()); - vpcconfig_ = p; + vpc_config_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.VpcConfig) - return vpcconfig_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.vpc_config) + return vpc_config_; } -inline void TrainingJob::set_allocated_vpcconfig(::flyteidl::plugins::sagemaker::VpcConfig* vpcconfig) { +inline void TrainingJob::set_allocated_vpc_config(::flyteidl::plugins::sagemaker::VpcConfig* vpc_config) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete vpcconfig_; + delete vpc_config_; } - if (vpcconfig) { + if (vpc_config) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - vpcconfig = ::google::protobuf::internal::GetOwnedMessage( - message_arena, vpcconfig, submessage_arena); + vpc_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, vpc_config, submessage_arena); } } else { } - vpcconfig_ = vpcconfig; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.VpcConfig) + vpc_config_ = vpc_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.vpc_config) } -// bool EnableSpotTraining = 7; -inline void TrainingJob::clear_enablespottraining() { - enablespottraining_ = false; +// bool enable_spot_training = 7; +inline void TrainingJob::clear_enable_spot_training() { + enable_spot_training_ = false; } -inline bool TrainingJob::enablespottraining() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.EnableSpotTraining) - return enablespottraining_; +inline bool TrainingJob::enable_spot_training() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.enable_spot_training) + return enable_spot_training_; } -inline void TrainingJob::set_enablespottraining(bool value) { +inline void TrainingJob::set_enable_spot_training(bool value) { - enablespottraining_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.EnableSpotTraining) + enable_spot_training_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.enable_spot_training) } #ifdef __GNUC__ diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go index fd4eec6a4..f9b017bfa 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go @@ -46,8 +46,8 @@ func (HPOJobObjective_HPOJobObjectiveType) EnumDescriptor() ([]byte, []int) { } type HPOJobObjective struct { - Type HPOJobObjective_HPOJobObjectiveType `protobuf:"varint,1,opt,name=Type,proto3,enum=flyteidl.plugins.sagemaker.HPOJobObjective_HPOJobObjectiveType" json:"Type,omitempty"` - MetricName string `protobuf:"bytes,2,opt,name=MetricName,proto3" json:"MetricName,omitempty"` + Type HPOJobObjective_HPOJobObjectiveType `protobuf:"varint,1,opt,name=type,proto3,enum=flyteidl.plugins.sagemaker.HPOJobObjective_HPOJobObjectiveType" json:"type,omitempty"` + MetricName string `protobuf:"bytes,2,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -93,9 +93,9 @@ func (m *HPOJobObjective) GetMetricName() string { } type HPOJob struct { - MaxNumberOfTrainingJobs int64 `protobuf:"varint,1,opt,name=MaxNumberOfTrainingJobs,proto3" json:"MaxNumberOfTrainingJobs,omitempty"` - MaxParallelTrainingJobs int64 `protobuf:"varint,2,opt,name=MaxParallelTrainingJobs,proto3" json:"MaxParallelTrainingJobs,omitempty"` - TrainingJob *TrainingJob `protobuf:"bytes,3,opt,name=TrainingJob,proto3" json:"TrainingJob,omitempty"` + MaxNumberOfTrainingJobs int64 `protobuf:"varint,1,opt,name=max_number_of_training_jobs,json=maxNumberOfTrainingJobs,proto3" json:"max_number_of_training_jobs,omitempty"` + MaxParallelTrainingJobs int64 `protobuf:"varint,2,opt,name=max_parallel_training_jobs,json=maxParallelTrainingJobs,proto3" json:"max_parallel_training_jobs,omitempty"` + TrainingJob *TrainingJob `protobuf:"bytes,3,opt,name=training_job,json=trainingJob,proto3" json:"training_job,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -158,25 +158,27 @@ func init() { } var fileDescriptor_823bfe2a857513d9 = []byte{ - // 318 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x41, 0x4f, 0xc2, 0x30, - 0x1c, 0xc5, 0x2d, 0x18, 0xa2, 0xc5, 0xa8, 0x99, 0x07, 0x09, 0x07, 0x43, 0xb8, 0xc0, 0x41, 0x5b, - 0x85, 0x98, 0x78, 0x33, 0x9a, 0x98, 0x38, 0x92, 0x01, 0x99, 0x1c, 0x0c, 0xb7, 0x16, 0xff, 0x94, - 0x62, 0xb7, 0x36, 0x5d, 0x31, 0xf2, 0xd1, 0xfc, 0x04, 0x7e, 0x2d, 0xe3, 0xc0, 0x65, 0x12, 0xd8, - 0xf1, 0xf5, 0xff, 0x7e, 0xaf, 0xfd, 0xf7, 0xe1, 0xd6, 0x54, 0x2d, 0x1d, 0xc8, 0x37, 0x45, 0x8d, - 0x5a, 0x08, 0x19, 0x27, 0x34, 0x61, 0x02, 0x22, 0xf6, 0x0e, 0x96, 0xce, 0x8c, 0x9e, 0x6b, 0x4e, - 0x8c, 0xd5, 0x4e, 0x7b, 0xf5, 0x3f, 0x23, 0x59, 0x1b, 0x49, 0x66, 0xac, 0x5f, 0x17, 0x84, 0x18, - 0x66, 0x59, 0x04, 0x0e, 0xac, 0x65, 0xb1, 0x80, 0x64, 0x95, 0x56, 0xbf, 0x2c, 0x20, 0x9c, 0x65, - 0x32, 0x96, 0xb1, 0xc8, 0xee, 0x6e, 0x7e, 0x21, 0x7c, 0xf2, 0x3c, 0x1c, 0xf4, 0x34, 0x1f, 0xf0, - 0x39, 0x4c, 0x9c, 0xfc, 0x00, 0xef, 0x05, 0xef, 0x8f, 0x96, 0x06, 0x6a, 0xa8, 0x81, 0xda, 0xc7, - 0x9d, 0x7b, 0xb2, 0xfb, 0x79, 0x64, 0x03, 0xdd, 0xd4, 0xbf, 0x31, 0x61, 0x1a, 0xe6, 0x5d, 0x60, - 0x1c, 0x80, 0xb3, 0x72, 0xd2, 0x67, 0x11, 0xd4, 0x4a, 0x0d, 0xd4, 0x3e, 0x0c, 0x73, 0x27, 0xcd, - 0x1b, 0x7c, 0xb6, 0x05, 0xf6, 0x8e, 0xf0, 0x41, 0xe0, 0xf7, 0xfd, 0xc0, 0x1f, 0x3f, 0x9d, 0xee, - 0xa5, 0xea, 0xe1, 0x75, 0xa5, 0x50, 0xf3, 0x1b, 0xe1, 0xca, 0x8a, 0xf1, 0xee, 0xf0, 0x79, 0xc0, - 0x3e, 0xfb, 0x8b, 0x88, 0x83, 0x1d, 0x4c, 0x47, 0xeb, 0x35, 0x7b, 0x9a, 0x27, 0xe9, 0x16, 0xe5, - 0x70, 0xd7, 0x78, 0x4d, 0x0e, 0x99, 0x65, 0x4a, 0x81, 0xfa, 0x47, 0x96, 0x32, 0x72, 0xdb, 0xd8, - 0xf3, 0x71, 0x35, 0xa7, 0x6b, 0xe5, 0x06, 0x6a, 0x57, 0x3b, 0xad, 0xa2, 0xdf, 0xca, 0xd9, 0xc3, - 0x3c, 0xfb, 0x78, 0x3b, 0xee, 0x0a, 0xe9, 0x66, 0x0b, 0x4e, 0x26, 0x3a, 0xa2, 0x6a, 0x39, 0x75, - 0x34, 0x6b, 0x51, 0x40, 0x4c, 0x0d, 0xbf, 0x12, 0x9a, 0x6e, 0x16, 0xcb, 0x2b, 0x69, 0x87, 0xdd, - 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xad, 0xbd, 0x73, 0xd8, 0x6a, 0x02, 0x00, 0x00, + // 346 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xcd, 0x4e, 0xea, 0x40, + 0x14, 0xc7, 0x6f, 0xe1, 0x86, 0xdc, 0x3b, 0x90, 0x7b, 0x4d, 0x5d, 0x48, 0xea, 0x42, 0xc2, 0x06, + 0x16, 0xda, 0x2a, 0xc4, 0x95, 0x26, 0x46, 0x13, 0x13, 0x21, 0xe1, 0x23, 0x95, 0x85, 0x61, 0xd3, + 0xcc, 0xe0, 0x69, 0x19, 0x9c, 0xaf, 0x4c, 0x07, 0x43, 0x5f, 0xcd, 0x97, 0xf0, 0x95, 0x0c, 0x2d, + 0x54, 0x6c, 0x94, 0xe5, 0x7f, 0xe6, 0xf7, 0x3b, 0x33, 0xe7, 0x1c, 0xd4, 0x0a, 0x59, 0x62, 0x80, + 0x3e, 0x33, 0x4f, 0xb1, 0x65, 0x44, 0x45, 0xec, 0xc5, 0x38, 0x02, 0x8e, 0x5f, 0x40, 0x7b, 0x73, + 0x25, 0x17, 0x92, 0xb8, 0x4a, 0x4b, 0x23, 0x6d, 0x67, 0x0b, 0xba, 0x1b, 0xd0, 0xcd, 0x41, 0xe7, + 0x7c, 0x4f, 0x11, 0x85, 0x35, 0xe6, 0x60, 0x40, 0x6b, 0x2c, 0x22, 0x88, 0xb3, 0x6a, 0xce, 0xe9, + 0x1e, 0xc3, 0x68, 0x4c, 0x05, 0x15, 0x51, 0xfe, 0x76, 0xf3, 0xcd, 0x42, 0xff, 0x1f, 0xc6, 0xa3, + 0xbe, 0x24, 0x23, 0xb2, 0x80, 0x99, 0xa1, 0xaf, 0x60, 0x3f, 0xa2, 0xdf, 0x26, 0x51, 0x50, 0xb7, + 0x1a, 0x56, 0xfb, 0x5f, 0xe7, 0xc6, 0xfd, 0xf9, 0x7b, 0x6e, 0x41, 0x2d, 0xe6, 0x49, 0xa2, 0xc0, + 0x4f, 0x8b, 0xd9, 0x27, 0xa8, 0xca, 0xc1, 0x68, 0x3a, 0x0b, 0x04, 0xe6, 0x50, 0x2f, 0x35, 0xac, + 0xf6, 0x5f, 0x1f, 0x65, 0x47, 0x43, 0xcc, 0xa1, 0x79, 0x81, 0x0e, 0xbf, 0xb1, 0xed, 0x1a, 0xfa, + 0x33, 0xe8, 0x0d, 0x7b, 0x83, 0xde, 0xf4, 0xfe, 0xe0, 0x57, 0x9a, 0x6e, 0x9f, 0xb2, 0x64, 0x35, + 0xdf, 0x2d, 0x54, 0xc9, 0x1c, 0xfb, 0x1a, 0x1d, 0x73, 0xbc, 0x0a, 0xc4, 0x92, 0x13, 0xd0, 0x81, + 0x0c, 0x83, 0x6d, 0xab, 0xc1, 0x42, 0x92, 0x38, 0x6d, 0xa5, 0xec, 0x1f, 0x71, 0xbc, 0x1a, 0xa6, + 0xc4, 0x28, 0x9c, 0x6c, 0xee, 0xfb, 0x92, 0xc4, 0xf6, 0x15, 0x72, 0xd6, 0xf6, 0x7a, 0xa0, 0x8c, + 0x01, 0x2b, 0xc8, 0xa5, 0x5c, 0x1e, 0x6f, 0x80, 0x2f, 0x72, 0x1f, 0xd5, 0x76, 0xf9, 0x7a, 0xb9, + 0x61, 0xb5, 0xab, 0x9d, 0xd6, 0xbe, 0xb1, 0xed, 0xf8, 0x7e, 0xd5, 0x7c, 0x86, 0xbb, 0xcb, 0x69, + 0x37, 0xa2, 0x66, 0xbe, 0x24, 0xee, 0x4c, 0x72, 0x8f, 0x25, 0xa1, 0xf1, 0xf2, 0x75, 0x46, 0x20, + 0x3c, 0x45, 0xce, 0x22, 0xe9, 0x15, 0x37, 0x4c, 0x2a, 0xe9, 0x32, 0xbb, 0x1f, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x19, 0x8c, 0x83, 0x33, 0x73, 0x02, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go index 871248304..bafe29f8d 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go @@ -52,9 +52,9 @@ func (HyperparameterScalingType) EnumDescriptor() ([]byte, []int) { } type ContinuousParameterRange struct { - MaxValue float64 `protobuf:"fixed64,1,opt,name=MaxValue,proto3" json:"MaxValue,omitempty"` - MinValue float64 `protobuf:"fixed64,2,opt,name=MinValue,proto3" json:"MinValue,omitempty"` - ScalingType HyperparameterScalingType `protobuf:"varint,3,opt,name=ScalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"ScalingType,omitempty"` + MaxValue float64 `protobuf:"fixed64,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` + MinValue float64 `protobuf:"fixed64,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` + ScalingType HyperparameterScalingType `protobuf:"varint,3,opt,name=scaling_type,json=scalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"scaling_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -107,9 +107,9 @@ func (m *ContinuousParameterRange) GetScalingType() HyperparameterScalingType { } type IntegerParameterRange struct { - MaxValue float32 `protobuf:"fixed32,1,opt,name=MaxValue,proto3" json:"MaxValue,omitempty"` - MinValue float32 `protobuf:"fixed32,2,opt,name=MinValue,proto3" json:"MinValue,omitempty"` - ScalingType HyperparameterScalingType `protobuf:"varint,3,opt,name=ScalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"ScalingType,omitempty"` + MaxValue float32 `protobuf:"fixed32,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` + MinValue float32 `protobuf:"fixed32,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` + ScalingType HyperparameterScalingType `protobuf:"varint,3,opt,name=scaling_type,json=scalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"scaling_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -162,7 +162,7 @@ func (m *IntegerParameterRange) GetScalingType() HyperparameterScalingType { } type CategoricalParameterRange struct { - Values []string `protobuf:"bytes,1,rep,name=Values,proto3" json:"Values,omitempty"` + Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -241,15 +241,15 @@ type isParameterRangeOneOf_ParameterRangeTypes interface { } type ParameterRangeOneOf_ContinuousParameterRange struct { - ContinuousParameterRange *ContinuousParameterRange `protobuf:"bytes,1,opt,name=ContinuousParameterRange,proto3,oneof"` + ContinuousParameterRange *ContinuousParameterRange `protobuf:"bytes,1,opt,name=continuous_parameter_range,json=continuousParameterRange,proto3,oneof"` } type ParameterRangeOneOf_IntegerParameterRange struct { - IntegerParameterRange *IntegerParameterRange `protobuf:"bytes,2,opt,name=IntegerParameterRange,proto3,oneof"` + IntegerParameterRange *IntegerParameterRange `protobuf:"bytes,2,opt,name=integer_parameter_range,json=integerParameterRange,proto3,oneof"` } type ParameterRangeOneOf_CategoricalParameterRange struct { - CategoricalParameterRange *CategoricalParameterRange `protobuf:"bytes,3,opt,name=CategoricalParameterRange,proto3,oneof"` + CategoricalParameterRange *CategoricalParameterRange `protobuf:"bytes,3,opt,name=categorical_parameter_range,json=categoricalParameterRange,proto3,oneof"` } func (*ParameterRangeOneOf_ContinuousParameterRange) isParameterRangeOneOf_ParameterRangeTypes() {} @@ -296,7 +296,7 @@ func (*ParameterRangeOneOf) XXX_OneofWrappers() []interface{} { } type ParameterRanges struct { - ParameterRangeMap map[string]*ParameterRangeOneOf `protobuf:"bytes,1,rep,name=ParameterRangeMap,proto3" json:"ParameterRangeMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ParameterRangeMap map[string]*ParameterRangeOneOf `protobuf:"bytes,1,rep,name=parameter_range_map,json=parameterRangeMap,proto3" json:"parameter_range_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -349,35 +349,37 @@ func init() { } var fileDescriptor_d87fa566d23b1e82 = []byte{ - // 466 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x41, 0x6f, 0xd3, 0x30, - 0x14, 0xc7, 0xeb, 0x04, 0xaa, 0xed, 0x45, 0x62, 0xc5, 0x68, 0x55, 0xd7, 0x53, 0xd5, 0x53, 0x85, - 0x44, 0x02, 0x29, 0x93, 0x10, 0xb7, 0xb6, 0x8a, 0x48, 0xa5, 0x95, 0x22, 0xaf, 0x0c, 0x69, 0x37, - 0xb7, 0xb8, 0x26, 0x5a, 0xea, 0x44, 0x8e, 0x83, 0xc8, 0x95, 0x4f, 0x83, 0xc4, 0x37, 0xe4, 0x84, - 0xea, 0x75, 0x51, 0x9b, 0xcd, 0x81, 0xd3, 0x6e, 0xf1, 0x7b, 0xfe, 0x3d, 0xff, 0xf3, 0xfe, 0x4f, - 0x0f, 0x5e, 0xaf, 0xe3, 0x42, 0xb1, 0xe8, 0x6b, 0xec, 0xa5, 0x71, 0xce, 0x23, 0x91, 0x79, 0x19, - 0xe5, 0x6c, 0x43, 0x6f, 0x98, 0xf4, 0x52, 0x2a, 0xe9, 0x86, 0x29, 0x26, 0x25, 0x15, 0x9c, 0x65, - 0x6e, 0x2a, 0x13, 0x95, 0xe0, 0xee, 0x1d, 0xe1, 0xee, 0x08, 0xb7, 0x24, 0xfa, 0xbf, 0x11, 0x74, - 0x26, 0x89, 0x50, 0x91, 0xc8, 0x93, 0x3c, 0xfb, 0x74, 0xc7, 0x93, 0x2d, 0x8f, 0xbb, 0x70, 0x34, - 0xa3, 0x3f, 0xae, 0x68, 0x9c, 0xb3, 0x0e, 0xea, 0xa1, 0x01, 0x22, 0xe5, 0x59, 0xe7, 0x22, 0x71, - 0x9b, 0xb3, 0x76, 0xb9, 0xdd, 0x19, 0x7f, 0x01, 0xe7, 0x72, 0x45, 0xe3, 0x48, 0xf0, 0x45, 0x91, - 0xb2, 0x8e, 0xdd, 0x43, 0x83, 0x67, 0xfe, 0xb9, 0x6b, 0x96, 0xe1, 0x86, 0x45, 0xca, 0x64, 0xa9, - 0x7e, 0x0f, 0x26, 0xfb, 0x95, 0xfa, 0xbf, 0x10, 0x9c, 0x4e, 0x85, 0x62, 0x9c, 0xc9, 0x7f, 0x48, - 0xb5, 0x6a, 0xa4, 0x5a, 0x8f, 0x21, 0x75, 0x08, 0x67, 0x13, 0xaa, 0x18, 0x4f, 0x64, 0xb4, 0xa2, - 0x71, 0x45, 0x6d, 0x1b, 0x9a, 0xfa, 0xf9, 0xac, 0x83, 0x7a, 0xf6, 0xe0, 0x98, 0xec, 0x4e, 0xfd, - 0x9f, 0x36, 0xbc, 0x38, 0xbc, 0x3a, 0x17, 0x6c, 0xbe, 0xc6, 0xd2, 0x6c, 0x92, 0xfe, 0x5b, 0xc7, - 0x7f, 0x5b, 0x27, 0xd9, 0xc4, 0x86, 0x0d, 0x62, 0x36, 0x3f, 0x32, 0xb4, 0x5a, 0xb7, 0xd0, 0xf1, - 0xdf, 0xd4, 0x3d, 0xf8, 0x20, 0x18, 0x36, 0x88, 0xc1, 0xbc, 0xbc, 0xa6, 0x57, 0xda, 0x12, 0xa7, - 0xde, 0x12, 0x23, 0x1c, 0x36, 0x88, 0xb9, 0xf2, 0xf8, 0xb4, 0xda, 0xec, 0xad, 0x71, 0x59, 0xff, - 0x0f, 0x82, 0x93, 0xc3, 0x78, 0x86, 0x53, 0x78, 0x7e, 0x18, 0x9a, 0xd1, 0x54, 0x7b, 0xe7, 0xf8, - 0xe3, 0x3a, 0x65, 0x95, 0x3a, 0xee, 0xbd, 0x22, 0x81, 0x50, 0xb2, 0x20, 0xf7, 0x8b, 0x77, 0x73, - 0x68, 0x3f, 0x7c, 0x19, 0xb7, 0xc0, 0xbe, 0x61, 0x85, 0xf6, 0xfd, 0x98, 0x6c, 0x3f, 0x71, 0x00, - 0x4f, 0xbf, 0x97, 0xd3, 0xed, 0xf8, 0xde, 0xff, 0x2b, 0xd2, 0xe3, 0x45, 0x6e, 0xe9, 0xf7, 0xd6, - 0x3b, 0xf4, 0xf2, 0x1a, 0xce, 0x8c, 0x03, 0x8e, 0x8f, 0xe0, 0xc9, 0xe8, 0xf3, 0x62, 0xde, 0x6a, - 0x60, 0x80, 0xe6, 0xc5, 0xf4, 0x63, 0x30, 0x22, 0x2d, 0x84, 0x4f, 0xc0, 0xb9, 0x98, 0x7f, 0x18, - 0x91, 0xe9, 0x22, 0x9c, 0x4d, 0x27, 0x2d, 0x0b, 0xb7, 0x01, 0x93, 0xe0, 0x2a, 0x20, 0x97, 0xc1, - 0x7e, 0xdc, 0x1e, 0x9f, 0x5f, 0x0f, 0x79, 0xa4, 0xbe, 0xe5, 0x4b, 0x77, 0x95, 0x6c, 0xbc, 0xb8, - 0x58, 0x2b, 0xaf, 0xdc, 0x65, 0x9c, 0x09, 0x2f, 0x5d, 0xbe, 0xe2, 0x89, 0x57, 0x5d, 0x6f, 0xcb, - 0xa6, 0xde, 0x62, 0xc3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x31, 0xc3, 0x37, 0x50, 0xf9, 0x04, - 0x00, 0x00, + // 504 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xd1, 0x8e, 0xd2, 0x40, + 0x14, 0xa5, 0xad, 0x92, 0xe5, 0x62, 0x5c, 0x9c, 0x0d, 0x08, 0xec, 0x0b, 0xe1, 0x89, 0x98, 0xd8, + 0x2a, 0xb8, 0x89, 0xf1, 0x0d, 0x48, 0x23, 0x24, 0xbb, 0x62, 0x66, 0x71, 0x63, 0xf6, 0x85, 0x0c, + 0x75, 0xa8, 0x13, 0xda, 0xe9, 0x64, 0x3a, 0xd5, 0xed, 0x1f, 0xf8, 0x2f, 0x26, 0x7e, 0xa1, 0x0f, + 0x86, 0x81, 0x05, 0xb7, 0x4b, 0xd1, 0xa7, 0x7d, 0xeb, 0x9d, 0x33, 0xa7, 0xe7, 0xcc, 0x3d, 0x37, + 0x17, 0x5e, 0x2d, 0x82, 0x54, 0x51, 0xf6, 0x25, 0x70, 0x44, 0x90, 0xf8, 0x8c, 0xc7, 0x4e, 0x4c, + 0x7c, 0x1a, 0x92, 0x25, 0x95, 0x8e, 0x20, 0x92, 0x84, 0x54, 0x51, 0x29, 0x09, 0xf7, 0x69, 0x6c, + 0x0b, 0x19, 0xa9, 0x08, 0x35, 0x6f, 0x19, 0xf6, 0x86, 0x61, 0x6f, 0x19, 0xed, 0x5f, 0x06, 0xd4, + 0x87, 0x11, 0x57, 0x8c, 0x27, 0x51, 0x12, 0x7f, 0xbc, 0xe5, 0xe3, 0x15, 0x1f, 0x9d, 0x42, 0x29, + 0x24, 0x37, 0xb3, 0x6f, 0x24, 0x48, 0x68, 0xdd, 0x68, 0x19, 0x1d, 0x03, 0x1f, 0x85, 0xe4, 0xe6, + 0x6a, 0x55, 0x6b, 0x90, 0xf1, 0x0d, 0x68, 0x6e, 0x40, 0xc6, 0xd7, 0xe0, 0x67, 0x78, 0x12, 0x7b, + 0x24, 0x60, 0xdc, 0x9f, 0xa9, 0x54, 0xd0, 0xba, 0xd5, 0x32, 0x3a, 0x4f, 0xbb, 0x67, 0x76, 0xbe, + 0x13, 0x7b, 0x94, 0x0a, 0x2a, 0xb7, 0x0f, 0xb8, 0x5c, 0xb3, 0xa7, 0xa9, 0xa0, 0xb8, 0x1c, 0xef, + 0x8a, 0xf6, 0x4f, 0x03, 0xaa, 0x63, 0xae, 0xa8, 0x4f, 0xe5, 0xbf, 0xdc, 0x9a, 0x87, 0xdc, 0x9a, + 0x0f, 0xe2, 0xb6, 0x07, 0x8d, 0x21, 0x51, 0xd4, 0x8f, 0x24, 0xf3, 0x48, 0x90, 0x31, 0x5c, 0x83, + 0xa2, 0xf6, 0x13, 0xd7, 0x8d, 0x96, 0xd5, 0x29, 0xe1, 0x4d, 0xd5, 0xfe, 0x61, 0xc1, 0xc9, 0xdd, + 0xab, 0x13, 0x4e, 0x27, 0x0b, 0xa4, 0xa0, 0xe9, 0x6d, 0xa3, 0x9a, 0x6d, 0xc5, 0x67, 0x3a, 0x6c, + 0xfd, 0xe2, 0x72, 0xf7, 0xcd, 0x21, 0xd3, 0x79, 0x41, 0x8f, 0x0a, 0xb8, 0xee, 0xe5, 0x0d, 0xc1, + 0x12, 0x9e, 0xb3, 0x75, 0xbf, 0xef, 0x49, 0x9a, 0x5a, 0xf2, 0xf5, 0x21, 0xc9, 0xbd, 0x51, 0x8d, + 0x0a, 0xb8, 0xca, 0xf6, 0x66, 0xf8, 0x1d, 0x4e, 0xbd, 0x5d, 0xbf, 0xee, 0x09, 0x5a, 0x5a, 0xf0, + 0x60, 0x30, 0xb9, 0xed, 0x1e, 0x15, 0x70, 0xc3, 0xcb, 0x03, 0x07, 0xd5, 0x6c, 0xcb, 0x57, 0xf1, + 0xc5, 0xed, 0xdf, 0x06, 0x1c, 0xdf, 0x3d, 0x8f, 0x91, 0x84, 0x93, 0x8c, 0xaf, 0x59, 0x48, 0x84, + 0xce, 0xb0, 0xdc, 0x1d, 0x1c, 0xf2, 0x96, 0xf9, 0x53, 0xa6, 0xbe, 0x20, 0xc2, 0xe5, 0x4a, 0xa6, + 0xf8, 0x99, 0xc8, 0x9e, 0x37, 0x13, 0xa8, 0xed, 0xbf, 0x8c, 0x2a, 0x60, 0x2d, 0x69, 0xaa, 0xd3, + 0x2f, 0xe1, 0xd5, 0x27, 0x72, 0xe1, 0xf1, 0x6e, 0xcc, 0xcb, 0x5d, 0xe7, 0xff, 0x1d, 0xe9, 0x31, + 0xc3, 0x6b, 0xf6, 0x3b, 0xf3, 0xad, 0xf1, 0xe2, 0x1a, 0x1a, 0xb9, 0x83, 0x8e, 0x8e, 0xe0, 0x51, + 0xff, 0xd3, 0x74, 0x52, 0x29, 0x20, 0x80, 0xe2, 0xf9, 0xf8, 0x83, 0xdb, 0xc7, 0x15, 0x03, 0x1d, + 0x43, 0xf9, 0x7c, 0xf2, 0xbe, 0x8f, 0xc7, 0xd3, 0xd1, 0xc5, 0x78, 0x58, 0x31, 0x51, 0x0d, 0x10, + 0x76, 0xaf, 0x5c, 0x7c, 0xe9, 0xfe, 0x7d, 0x6e, 0x0d, 0xce, 0xae, 0x7b, 0x3e, 0x53, 0x5f, 0x93, + 0xb9, 0xed, 0x45, 0xa1, 0x13, 0xa4, 0x0b, 0xe5, 0x6c, 0x37, 0x9b, 0x4f, 0xb9, 0x23, 0xe6, 0x2f, + 0xfd, 0xc8, 0xc9, 0x2e, 0xbb, 0x79, 0x51, 0xef, 0xb4, 0xde, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xf5, 0xe4, 0x45, 0x40, 0x07, 0x05, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go index c12e58c22..1325b519f 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go @@ -21,10 +21,10 @@ var _ = math.Inf const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type AlgorithmSpecification struct { - TrainingImage string `protobuf:"bytes,1,opt,name=TrainingImage,proto3" json:"TrainingImage,omitempty"` - TrainingInputMode string `protobuf:"bytes,2,opt,name=TrainingInputMode,proto3" json:"TrainingInputMode,omitempty"` - AlgorithmName string `protobuf:"bytes,3,opt,name=AlgorithmName,proto3" json:"AlgorithmName,omitempty"` - MetricDefinitions []*AlgorithmSpecification_MetricDefinition `protobuf:"bytes,4,rep,name=MetricDefinitions,proto3" json:"MetricDefinitions,omitempty"` + TrainingImage string `protobuf:"bytes,1,opt,name=training_image,json=trainingImage,proto3" json:"training_image,omitempty"` + TrainingInputMode string `protobuf:"bytes,2,opt,name=training_input_mode,json=trainingInputMode,proto3" json:"training_input_mode,omitempty"` + AlgorithmName string `protobuf:"bytes,3,opt,name=algorithm_name,json=algorithmName,proto3" json:"algorithm_name,omitempty"` + MetricDefinitions []*AlgorithmSpecification_MetricDefinition `protobuf:"bytes,4,rep,name=metric_definitions,json=metricDefinitions,proto3" json:"metric_definitions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -84,8 +84,8 @@ func (m *AlgorithmSpecification) GetMetricDefinitions() []*AlgorithmSpecificatio } type AlgorithmSpecification_MetricDefinition struct { - Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` - Regex string `protobuf:"bytes,2,opt,name=Regex,proto3" json:"Regex,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Regex string `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -133,10 +133,10 @@ func (m *AlgorithmSpecification_MetricDefinition) GetRegex() string { } type ResourceConfig struct { - InstanceType string `protobuf:"bytes,1,opt,name=InstanceType,proto3" json:"InstanceType,omitempty"` - InstanceCount int64 `protobuf:"varint,2,opt,name=InstanceCount,proto3" json:"InstanceCount,omitempty"` - VolumeSizeInGB int64 `protobuf:"varint,3,opt,name=VolumeSizeInGB,proto3" json:"VolumeSizeInGB,omitempty"` - VolumeKmsKeyId string `protobuf:"bytes,4,opt,name=VolumeKmsKeyId,proto3" json:"VolumeKmsKeyId,omitempty"` + InstanceType string `protobuf:"bytes,1,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` + InstanceCount int64 `protobuf:"varint,2,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"` + VolumeSizeInGb int64 `protobuf:"varint,3,opt,name=volume_size_in_gb,json=volumeSizeInGb,proto3" json:"volume_size_in_gb,omitempty"` + VolumeKmsKeyId string `protobuf:"bytes,4,opt,name=volume_kms_key_id,json=volumeKmsKeyId,proto3" json:"volume_kms_key_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -181,9 +181,9 @@ func (m *ResourceConfig) GetInstanceCount() int64 { return 0 } -func (m *ResourceConfig) GetVolumeSizeInGB() int64 { +func (m *ResourceConfig) GetVolumeSizeInGb() int64 { if m != nil { - return m.VolumeSizeInGB + return m.VolumeSizeInGb } return 0 } @@ -196,8 +196,8 @@ func (m *ResourceConfig) GetVolumeKmsKeyId() string { } type StoppingCondition struct { - MaxRuntimeInSeconds int64 `protobuf:"varint,1,opt,name=MaxRuntimeInSeconds,proto3" json:"MaxRuntimeInSeconds,omitempty"` - MaxWaitTimeInSeconds int64 `protobuf:"varint,2,opt,name=MaxWaitTimeInSeconds,proto3" json:"MaxWaitTimeInSeconds,omitempty"` + MaxRuntimeInSeconds int64 `protobuf:"varint,1,opt,name=max_runtime_in_seconds,json=maxRuntimeInSeconds,proto3" json:"max_runtime_in_seconds,omitempty"` + MaxWaitTimeInSeconds int64 `protobuf:"varint,2,opt,name=max_wait_time_in_seconds,json=maxWaitTimeInSeconds,proto3" json:"max_wait_time_in_seconds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -243,8 +243,8 @@ func (m *StoppingCondition) GetMaxWaitTimeInSeconds() int64 { } type VpcConfig struct { - SecurityGroupIds []string `protobuf:"bytes,1,rep,name=SecurityGroupIds,proto3" json:"SecurityGroupIds,omitempty"` - Subnets []string `protobuf:"bytes,2,rep,name=Subnets,proto3" json:"Subnets,omitempty"` + SecurityGroupIds []string `protobuf:"bytes,1,rep,name=security_group_ids,json=securityGroupIds,proto3" json:"security_group_ids,omitempty"` + Subnets []string `protobuf:"bytes,2,rep,name=subnets,proto3" json:"subnets,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -290,13 +290,13 @@ func (m *VpcConfig) GetSubnets() []string { } type TrainingJob struct { - Region string `protobuf:"bytes,1,opt,name=Region,proto3" json:"Region,omitempty"` - RoleArn string `protobuf:"bytes,2,opt,name=RoleArn,proto3" json:"RoleArn,omitempty"` - AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,3,opt,name=AlgorithmSpecification,proto3" json:"AlgorithmSpecification,omitempty"` - ResourceConfig *ResourceConfig `protobuf:"bytes,4,opt,name=ResourceConfig,proto3" json:"ResourceConfig,omitempty"` - StoppingCondition *StoppingCondition `protobuf:"bytes,5,opt,name=StoppingCondition,proto3" json:"StoppingCondition,omitempty"` - VpcConfig *VpcConfig `protobuf:"bytes,6,opt,name=VpcConfig,proto3" json:"VpcConfig,omitempty"` - EnableSpotTraining bool `protobuf:"varint,7,opt,name=EnableSpotTraining,proto3" json:"EnableSpotTraining,omitempty"` + Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + RoleArn string `protobuf:"bytes,2,opt,name=role_arn,json=roleArn,proto3" json:"role_arn,omitempty"` + AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,3,opt,name=algorithm_specification,json=algorithmSpecification,proto3" json:"algorithm_specification,omitempty"` + ResourceConfig *ResourceConfig `protobuf:"bytes,4,opt,name=resource_config,json=resourceConfig,proto3" json:"resource_config,omitempty"` + StoppingCondition *StoppingCondition `protobuf:"bytes,5,opt,name=stopping_condition,json=stoppingCondition,proto3" json:"stopping_condition,omitempty"` + VpcConfig *VpcConfig `protobuf:"bytes,6,opt,name=vpc_config,json=vpcConfig,proto3" json:"vpc_config,omitempty"` + EnableSpotTraining bool `protobuf:"varint,7,opt,name=enable_spot_training,json=enableSpotTraining,proto3" json:"enable_spot_training,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -390,41 +390,47 @@ func init() { } var fileDescriptor_030d49acd9e1f6e1 = []byte{ - // 561 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xdf, 0x6e, 0xd3, 0x3e, - 0x14, 0xc7, 0xd5, 0x65, 0xeb, 0x7e, 0x75, 0x7f, 0x4c, 0xab, 0x99, 0xa6, 0x68, 0x57, 0x55, 0x04, - 0xa8, 0x9a, 0xb6, 0x04, 0x75, 0xe2, 0x8e, 0x9b, 0xad, 0xa0, 0x29, 0x4c, 0x45, 0xc2, 0xa9, 0x86, - 0x04, 0x57, 0x49, 0x7a, 0xea, 0x79, 0x24, 0xb6, 0x49, 0x1c, 0xa9, 0xe1, 0x91, 0x78, 0x0d, 0x9e, - 0x80, 0x37, 0x42, 0x71, 0x93, 0xb2, 0xa4, 0x69, 0x25, 0xee, 0x72, 0xbe, 0xe7, 0xf8, 0x73, 0x7c, - 0xfe, 0xc4, 0xe8, 0x62, 0x11, 0xe5, 0x0a, 0xd8, 0x3c, 0x72, 0x64, 0x94, 0x51, 0xc6, 0x53, 0x27, - 0xf5, 0x29, 0xc4, 0xfe, 0x37, 0x48, 0x1c, 0x95, 0xf8, 0x8c, 0x33, 0x4e, 0x1f, 0x45, 0x60, 0xcb, - 0x44, 0x28, 0x81, 0xcf, 0xaa, 0x68, 0xbb, 0x8c, 0xb6, 0xd7, 0xd1, 0xd6, 0xaf, 0x3d, 0x74, 0x7a, - 0x1d, 0x51, 0x91, 0x30, 0xf5, 0x10, 0x7b, 0x12, 0x42, 0xb6, 0x60, 0xa1, 0xaf, 0x98, 0xe0, 0xf8, - 0x05, 0x7a, 0x36, 0x2b, 0x59, 0x6e, 0xec, 0x53, 0x30, 0x3b, 0xc3, 0xce, 0xa8, 0x47, 0xea, 0x22, - 0xbe, 0x40, 0x83, 0xb5, 0xc0, 0x65, 0xa6, 0xa6, 0x62, 0x0e, 0xe6, 0x9e, 0x8e, 0xdc, 0x74, 0x14, - 0xcc, 0x75, 0xb6, 0x8f, 0x7e, 0x0c, 0xa6, 0xb1, 0x62, 0xd6, 0x44, 0xfc, 0x1d, 0x0d, 0xa6, 0xa0, - 0x12, 0x16, 0xbe, 0x83, 0x05, 0xe3, 0xac, 0xb8, 0x4d, 0x6a, 0xee, 0x0f, 0x8d, 0x51, 0x7f, 0x3c, - 0xb1, 0xb7, 0x17, 0x63, 0xb7, 0x17, 0x62, 0x37, 0x59, 0x64, 0x93, 0x7e, 0xf6, 0x16, 0x1d, 0x37, - 0x45, 0x8c, 0xd1, 0xbe, 0xbe, 0xe3, 0xaa, 0x6e, 0xfd, 0x8d, 0x4f, 0xd0, 0x01, 0x01, 0x0a, 0xcb, - 0xb2, 0xc4, 0x95, 0x61, 0xfd, 0xec, 0xa0, 0x23, 0x02, 0xa9, 0xc8, 0x92, 0x10, 0x26, 0x82, 0x2f, - 0x18, 0xc5, 0x16, 0xfa, 0xdf, 0xe5, 0xa9, 0xf2, 0x79, 0x08, 0xb3, 0x5c, 0x56, 0x90, 0x9a, 0x56, - 0x74, 0xa3, 0xb2, 0x27, 0x22, 0xe3, 0x4a, 0x43, 0x0d, 0x52, 0x17, 0xf1, 0x2b, 0x74, 0x74, 0x2f, - 0xa2, 0x2c, 0x06, 0x8f, 0xfd, 0x00, 0x97, 0xdf, 0xde, 0xe8, 0xa6, 0x19, 0xa4, 0xa1, 0xfe, 0x8d, - 0xbb, 0x8b, 0xd3, 0x3b, 0xc8, 0xdd, 0xb9, 0xb9, 0xaf, 0x73, 0x36, 0x54, 0x2b, 0x47, 0x03, 0x4f, - 0x09, 0x29, 0x19, 0xa7, 0x13, 0xc1, 0xe7, 0xab, 0x5a, 0x5f, 0xa3, 0xe7, 0x53, 0x7f, 0x49, 0x32, - 0xae, 0x58, 0x0c, 0x2e, 0xf7, 0x20, 0x14, 0x7c, 0x9e, 0xea, 0x5b, 0x1b, 0xa4, 0xcd, 0x85, 0xc7, - 0xe8, 0x64, 0xea, 0x2f, 0x3f, 0xfb, 0x4c, 0xcd, 0x6a, 0x47, 0x56, 0x35, 0xb4, 0xfa, 0xac, 0x4f, - 0xa8, 0x77, 0x2f, 0xc3, 0xb2, 0x43, 0xe7, 0xe8, 0xd8, 0x83, 0x30, 0x4b, 0x98, 0xca, 0x6f, 0x13, - 0x91, 0x49, 0x57, 0xe7, 0x33, 0x46, 0x3d, 0xb2, 0xa1, 0x63, 0x13, 0x1d, 0x7a, 0x59, 0xc0, 0x41, - 0x15, 0xfc, 0x22, 0xa4, 0x32, 0xad, 0xdf, 0x06, 0xea, 0x57, 0x7b, 0xf6, 0x41, 0x04, 0xf8, 0x14, - 0x75, 0x09, 0x50, 0x26, 0x78, 0xd9, 0xf1, 0xd2, 0x2a, 0x08, 0x44, 0x44, 0x70, 0x9d, 0xf0, 0x72, - 0x74, 0x95, 0x89, 0x1f, 0xb7, 0xfd, 0x01, 0xba, 0xcf, 0xfd, 0xf1, 0xf8, 0xdf, 0x57, 0x8e, 0x6c, - 0xfb, 0xa7, 0x48, 0x73, 0x4f, 0xf4, 0x8c, 0xfa, 0xe3, 0xf3, 0x5d, 0x39, 0xea, 0x27, 0x48, 0x73, - 0xd3, 0xbe, 0xb6, 0xcc, 0xd3, 0x3c, 0xd0, 0xd8, 0xcb, 0x5d, 0xd8, 0x8d, 0x43, 0xa4, 0x65, 0x2f, - 0x26, 0x4f, 0x26, 0x66, 0x76, 0x35, 0xf4, 0xe5, 0x2e, 0xe8, 0x3a, 0x98, 0x3c, 0x99, 0xb4, 0x8d, - 0xf0, 0x7b, 0xee, 0x07, 0x11, 0x78, 0x52, 0xa8, 0x6a, 0x58, 0xe6, 0xe1, 0xb0, 0x33, 0xfa, 0x8f, - 0xb4, 0x78, 0x6e, 0xde, 0x7c, 0xb9, 0xa2, 0x4c, 0x3d, 0x64, 0x81, 0x1d, 0x8a, 0xd8, 0x89, 0xf2, - 0x85, 0x72, 0xd6, 0x0f, 0x1e, 0x05, 0xee, 0xc8, 0xe0, 0x92, 0x0a, 0xa7, 0xf9, 0x06, 0x06, 0x5d, - 0xfd, 0xdc, 0x5d, 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0xdf, 0xcf, 0x48, 0xf4, 0x1e, 0x05, 0x00, - 0x00, + // 664 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xdf, 0x4e, 0xdb, 0x3e, + 0x14, 0x56, 0x29, 0xff, 0xea, 0xfe, 0xe8, 0x8f, 0x1a, 0xd4, 0x65, 0x5c, 0xa1, 0x4e, 0x48, 0xdd, + 0x04, 0xe9, 0x54, 0xb4, 0x5d, 0xed, 0x86, 0x15, 0x09, 0x75, 0x88, 0x5d, 0xa4, 0x68, 0x93, 0xa6, + 0x49, 0x96, 0x93, 0x9c, 0x06, 0xaf, 0xb1, 0x1d, 0xd9, 0x0e, 0x6b, 0xb8, 0xda, 0x33, 0xed, 0x29, + 0xf6, 0x08, 0x7b, 0x9c, 0x29, 0xce, 0x1f, 0xa0, 0x30, 0xa4, 0xdd, 0xc5, 0xe7, 0x7c, 0xfe, 0x8e, + 0xcf, 0xf9, 0xbe, 0x1c, 0x74, 0x38, 0x8b, 0x33, 0x03, 0x2c, 0x8c, 0x87, 0x49, 0x9c, 0x46, 0x4c, + 0xe8, 0xa1, 0xa6, 0x11, 0x70, 0x3a, 0x07, 0x35, 0x34, 0x8a, 0x32, 0xc1, 0x44, 0xf4, 0x4d, 0xfa, + 0x6e, 0xa2, 0xa4, 0x91, 0x78, 0xaf, 0x42, 0xbb, 0x25, 0xda, 0xad, 0xd1, 0xfd, 0x5f, 0x2b, 0xa8, + 0x77, 0x12, 0x47, 0x52, 0x31, 0x73, 0xc5, 0xa7, 0x09, 0x04, 0x6c, 0xc6, 0x02, 0x6a, 0x98, 0x14, + 0xf8, 0x00, 0x75, 0x2a, 0x2e, 0xc2, 0x38, 0x8d, 0xc0, 0x69, 0xec, 0x37, 0x06, 0x2d, 0x6f, 0xab, + 0x8a, 0x4e, 0xf2, 0x20, 0x76, 0xd1, 0xce, 0x2d, 0x4c, 0x24, 0xa9, 0x21, 0x5c, 0x86, 0xe0, 0xac, + 0x58, 0x6c, 0xb7, 0xc6, 0xe6, 0x99, 0x0b, 0x19, 0x42, 0x4e, 0x4b, 0xab, 0x82, 0x44, 0x50, 0x0e, + 0x4e, 0xb3, 0xa0, 0xad, 0xa3, 0x1f, 0x29, 0x07, 0xac, 0x10, 0xe6, 0x60, 0x14, 0x0b, 0x48, 0x08, + 0x33, 0x26, 0x58, 0xfe, 0x24, 0xed, 0xac, 0xee, 0x37, 0x07, 0xed, 0xd1, 0xd8, 0xfd, 0x7b, 0x47, + 0xee, 0xe3, 0xdd, 0xb8, 0x17, 0x96, 0xec, 0xb4, 0xe6, 0xf2, 0xba, 0x7c, 0x29, 0xa2, 0xf7, 0xde, + 0xa1, 0xed, 0x65, 0x18, 0xc6, 0x68, 0xd5, 0x3e, 0xb2, 0xe8, 0xdd, 0x7e, 0xe3, 0x5d, 0xb4, 0xa6, + 0x20, 0x82, 0x45, 0xd9, 0x64, 0x71, 0xe8, 0xff, 0x6c, 0xa0, 0x8e, 0x07, 0x5a, 0xa6, 0x2a, 0x80, + 0xb1, 0x14, 0x33, 0x16, 0xe1, 0x17, 0x68, 0x8b, 0x09, 0x6d, 0xa8, 0x08, 0x80, 0x98, 0x2c, 0xa9, + 0x58, 0xfe, 0xab, 0x82, 0x97, 0x59, 0x62, 0x07, 0x52, 0x83, 0x02, 0x99, 0x0a, 0x63, 0x69, 0x9b, + 0x5e, 0x7d, 0x75, 0x9c, 0x07, 0xf1, 0x4b, 0xd4, 0xbd, 0x96, 0x71, 0xca, 0x81, 0x68, 0x76, 0x03, + 0x84, 0x09, 0x12, 0xf9, 0x76, 0x74, 0x4d, 0xaf, 0x53, 0x24, 0xa6, 0xec, 0x06, 0x26, 0xe2, 0xcc, + 0xbf, 0x03, 0x9d, 0x73, 0x4d, 0xe6, 0x90, 0x11, 0x16, 0x3a, 0xab, 0xb6, 0x74, 0x09, 0x3d, 0xe7, + 0xfa, 0x1c, 0xb2, 0x49, 0xd8, 0xff, 0xd1, 0x40, 0xdd, 0xa9, 0x91, 0x49, 0xc2, 0x44, 0x34, 0x96, + 0x22, 0x2c, 0x9a, 0x3e, 0x46, 0x3d, 0x4e, 0x17, 0x44, 0xa5, 0xc2, 0x30, 0x6e, 0x6b, 0x69, 0x08, + 0xa4, 0x08, 0xb5, 0x6d, 0xa0, 0xe9, 0xed, 0x70, 0xba, 0xf0, 0x8a, 0xe4, 0x44, 0x4c, 0x8b, 0x14, + 0x7e, 0x8b, 0x9c, 0xfc, 0xd2, 0x77, 0xca, 0x0c, 0x59, 0xbe, 0x56, 0x74, 0xb4, 0xcb, 0xe9, 0xe2, + 0x33, 0x65, 0xe6, 0xf2, 0xee, 0xbd, 0xfe, 0x14, 0xb5, 0x3e, 0x25, 0x41, 0x39, 0xb1, 0x43, 0x84, + 0x35, 0x04, 0xa9, 0x62, 0x26, 0x23, 0x91, 0x92, 0x69, 0x42, 0x98, 0xad, 0xda, 0x1c, 0xb4, 0xbc, + 0xed, 0x2a, 0x73, 0x96, 0x27, 0x26, 0xa1, 0xc6, 0x0e, 0xda, 0xd0, 0xa9, 0x2f, 0xc0, 0xe4, 0x15, + 0x72, 0x48, 0x75, 0xec, 0xff, 0x6e, 0xa2, 0xf6, 0x65, 0xe9, 0xbd, 0x0f, 0xd2, 0xc7, 0x3d, 0xb4, + 0xae, 0x20, 0x62, 0x52, 0x94, 0x12, 0x94, 0x27, 0xfc, 0x1c, 0x6d, 0x2a, 0x19, 0x03, 0xa1, 0x4a, + 0x94, 0x6a, 0x6e, 0xe4, 0xe7, 0x13, 0x25, 0xf0, 0x1c, 0x3d, 0xbb, 0x35, 0xaa, 0xbe, 0x6b, 0x26, + 0x3b, 0xf6, 0xf6, 0x68, 0xf4, 0xef, 0x36, 0xf4, 0x7a, 0xf4, 0xf1, 0x9f, 0x6d, 0x8a, 0xfe, 0x57, + 0xa5, 0x77, 0x48, 0x60, 0x47, 0x61, 0x05, 0x6b, 0x8f, 0x5e, 0x3d, 0x55, 0xe4, 0xbe, 0xdd, 0xbc, + 0x8e, 0xba, 0x6f, 0xbf, 0xaf, 0x08, 0xeb, 0x52, 0xdb, 0x9c, 0xb4, 0x10, 0xd7, 0x59, 0xb3, 0xbc, + 0x47, 0x4f, 0xf1, 0x3e, 0x70, 0x84, 0xd7, 0xd5, 0x0f, 0x4c, 0x72, 0x8a, 0xd0, 0x75, 0x12, 0x54, + 0xaf, 0x5d, 0xb7, 0xac, 0x07, 0x4f, 0xb1, 0xd6, 0x2a, 0x7b, 0xad, 0xeb, 0x5a, 0xf0, 0xd7, 0x68, + 0x17, 0x04, 0xf5, 0x63, 0x20, 0x3a, 0x91, 0x86, 0x54, 0xfb, 0xc2, 0xd9, 0xd8, 0x6f, 0x0c, 0x36, + 0x3d, 0x5c, 0xe4, 0xa6, 0x89, 0x34, 0x95, 0x9a, 0xef, 0xdf, 0x7c, 0x39, 0x8e, 0x98, 0xb9, 0x4a, + 0x7d, 0x37, 0x90, 0x7c, 0x18, 0x67, 0x33, 0x33, 0xac, 0xd7, 0x61, 0x04, 0x62, 0x98, 0xf8, 0x47, + 0x91, 0x1c, 0x2e, 0x6f, 0x48, 0x7f, 0xdd, 0x2e, 0xc3, 0xe3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x6b, 0x35, 0xfa, 0x71, 0x3c, 0x05, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go index aefaf8b33..ee10cfd51 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go @@ -136,7 +136,7 @@ func (m *ResourceConfig) Validate() error { // no validation rules for InstanceCount - // no validation rules for VolumeSizeInGB + // no validation rules for VolumeSizeInGb // no validation rules for VolumeKmsKeyId diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java index 7bcd1a038..80a64a4e7 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -19,20 +19,20 @@ public interface HPOJobObjectiveOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; */ int getTypeValue(); /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; */ flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getType(); /** - * string MetricName = 2; + * string metric_name = 2; */ java.lang.String getMetricName(); /** - * string MetricName = 2; + * string metric_name = 2; */ com.google.protobuf.ByteString getMetricNameBytes(); @@ -223,13 +223,13 @@ private HPOJobObjectiveType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; */ public int getTypeValue() { return type_; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; */ public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getType() { @SuppressWarnings("deprecation") @@ -237,10 +237,10 @@ public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType get return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.UNRECOGNIZED : result; } - public static final int METRICNAME_FIELD_NUMBER = 2; + public static final int METRIC_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object metricName_; /** - * string MetricName = 2; + * string metric_name = 2; */ public java.lang.String getMetricName() { java.lang.Object ref = metricName_; @@ -255,7 +255,7 @@ public java.lang.String getMetricName() { } } /** - * string MetricName = 2; + * string metric_name = 2; */ public com.google.protobuf.ByteString getMetricNameBytes() { @@ -338,7 +338,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; - hash = (37 * hash) + METRICNAME_FIELD_NUMBER; + hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; hash = (53 * hash) + getMetricName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; @@ -591,13 +591,13 @@ public Builder mergeFrom( private int type_ = 0; /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; */ public int getTypeValue() { return type_; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; */ public Builder setTypeValue(int value) { type_ = value; @@ -605,7 +605,7 @@ public Builder setTypeValue(int value) { return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; */ public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getType() { @SuppressWarnings("deprecation") @@ -613,7 +613,7 @@ public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType get return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.UNRECOGNIZED : result; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; */ public Builder setType(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType value) { if (value == null) { @@ -625,7 +625,7 @@ public Builder setType(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobO return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType Type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; */ public Builder clearType() { @@ -636,7 +636,7 @@ public Builder clearType() { private java.lang.Object metricName_ = ""; /** - * string MetricName = 2; + * string metric_name = 2; */ public java.lang.String getMetricName() { java.lang.Object ref = metricName_; @@ -651,7 +651,7 @@ public java.lang.String getMetricName() { } } /** - * string MetricName = 2; + * string metric_name = 2; */ public com.google.protobuf.ByteString getMetricNameBytes() { @@ -667,7 +667,7 @@ public java.lang.String getMetricName() { } } /** - * string MetricName = 2; + * string metric_name = 2; */ public Builder setMetricName( java.lang.String value) { @@ -680,7 +680,7 @@ public Builder setMetricName( return this; } /** - * string MetricName = 2; + * string metric_name = 2; */ public Builder clearMetricName() { @@ -689,7 +689,7 @@ public Builder clearMetricName() { return this; } /** - * string MetricName = 2; + * string metric_name = 2; */ public Builder setMetricNameBytes( com.google.protobuf.ByteString value) { @@ -760,12 +760,12 @@ public interface HPOJobOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * int64 MaxNumberOfTrainingJobs = 1; + * int64 max_number_of_training_jobs = 1; */ long getMaxNumberOfTrainingJobs(); /** - * int64 MaxParallelTrainingJobs = 2; + * int64 max_parallel_training_jobs = 2; */ long getMaxParallelTrainingJobs(); @@ -774,7 +774,7 @@ public interface HPOJobOrBuilder extends * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ boolean hasTrainingJob(); /** @@ -782,7 +782,7 @@ public interface HPOJobOrBuilder extends * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob(); /** @@ -790,7 +790,7 @@ public interface HPOJobOrBuilder extends * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder(); } @@ -888,32 +888,32 @@ private HPOJob( flyteidl.plugins.sagemaker.Hpojob.HPOJob.class, flyteidl.plugins.sagemaker.Hpojob.HPOJob.Builder.class); } - public static final int MAXNUMBEROFTRAININGJOBS_FIELD_NUMBER = 1; + public static final int MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER = 1; private long maxNumberOfTrainingJobs_; /** - * int64 MaxNumberOfTrainingJobs = 1; + * int64 max_number_of_training_jobs = 1; */ public long getMaxNumberOfTrainingJobs() { return maxNumberOfTrainingJobs_; } - public static final int MAXPARALLELTRAININGJOBS_FIELD_NUMBER = 2; + public static final int MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER = 2; private long maxParallelTrainingJobs_; /** - * int64 MaxParallelTrainingJobs = 2; + * int64 max_parallel_training_jobs = 2; */ public long getMaxParallelTrainingJobs() { return maxParallelTrainingJobs_; } - public static final int TRAININGJOB_FIELD_NUMBER = 3; + public static final int TRAINING_JOB_FIELD_NUMBER = 3; private flyteidl.plugins.sagemaker.Trainingjob.TrainingJob trainingJob_; /** *
      * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
      * 
* - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ public boolean hasTrainingJob() { return trainingJob_ != null; @@ -923,7 +923,7 @@ public boolean hasTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() { return trainingJob_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_; @@ -933,7 +933,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder() { return getTrainingJob(); @@ -1018,14 +1018,14 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAXNUMBEROFTRAININGJOBS_FIELD_NUMBER; + hash = (37 * hash) + MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxNumberOfTrainingJobs()); - hash = (37 * hash) + MAXPARALLELTRAININGJOBS_FIELD_NUMBER; + hash = (37 * hash) + MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxParallelTrainingJobs()); if (hasTrainingJob()) { - hash = (37 * hash) + TRAININGJOB_FIELD_NUMBER; + hash = (37 * hash) + TRAINING_JOB_FIELD_NUMBER; hash = (53 * hash) + getTrainingJob().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); @@ -1292,13 +1292,13 @@ public Builder mergeFrom( private long maxNumberOfTrainingJobs_ ; /** - * int64 MaxNumberOfTrainingJobs = 1; + * int64 max_number_of_training_jobs = 1; */ public long getMaxNumberOfTrainingJobs() { return maxNumberOfTrainingJobs_; } /** - * int64 MaxNumberOfTrainingJobs = 1; + * int64 max_number_of_training_jobs = 1; */ public Builder setMaxNumberOfTrainingJobs(long value) { @@ -1307,7 +1307,7 @@ public Builder setMaxNumberOfTrainingJobs(long value) { return this; } /** - * int64 MaxNumberOfTrainingJobs = 1; + * int64 max_number_of_training_jobs = 1; */ public Builder clearMaxNumberOfTrainingJobs() { @@ -1318,13 +1318,13 @@ public Builder clearMaxNumberOfTrainingJobs() { private long maxParallelTrainingJobs_ ; /** - * int64 MaxParallelTrainingJobs = 2; + * int64 max_parallel_training_jobs = 2; */ public long getMaxParallelTrainingJobs() { return maxParallelTrainingJobs_; } /** - * int64 MaxParallelTrainingJobs = 2; + * int64 max_parallel_training_jobs = 2; */ public Builder setMaxParallelTrainingJobs(long value) { @@ -1333,7 +1333,7 @@ public Builder setMaxParallelTrainingJobs(long value) { return this; } /** - * int64 MaxParallelTrainingJobs = 2; + * int64 max_parallel_training_jobs = 2; */ public Builder clearMaxParallelTrainingJobs() { @@ -1350,7 +1350,7 @@ public Builder clearMaxParallelTrainingJobs() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ public boolean hasTrainingJob() { return trainingJobBuilder_ != null || trainingJob_ != null; @@ -1360,7 +1360,7 @@ public boolean hasTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() { if (trainingJobBuilder_ == null) { @@ -1374,7 +1374,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ public Builder setTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob value) { if (trainingJobBuilder_ == null) { @@ -1394,7 +1394,7 @@ public Builder setTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ public Builder setTrainingJob( flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder builderForValue) { @@ -1412,7 +1412,7 @@ public Builder setTrainingJob( * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob value) { if (trainingJobBuilder_ == null) { @@ -1434,7 +1434,7 @@ public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJ * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ public Builder clearTrainingJob() { if (trainingJobBuilder_ == null) { @@ -1452,7 +1452,7 @@ public Builder clearTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder getTrainingJobBuilder() { @@ -1464,7 +1464,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder getTrainingJob * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder() { if (trainingJobBuilder_ != null) { @@ -1479,7 +1479,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJo * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob TrainingJob = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder> @@ -1570,16 +1570,16 @@ public flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstanceForType() { "o\022\032flyteidl.plugins.sagemaker\0320flyteidl/" + "plugins/sagemaker/parameterranges.proto\032" + ",flyteidl/plugins/sagemaker/trainingjob." + - "proto\"\247\001\n\017HPOJobObjective\022M\n\004Type\030\001 \001(\0162" + + "proto\"\250\001\n\017HPOJobObjective\022M\n\004type\030\001 \001(\0162" + "?.flyteidl.plugins.sagemaker.HPOJobObjec" + - "tive.HPOJobObjectiveType\022\022\n\nMetricName\030\002" + - " \001(\t\"1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE\020" + - "\000\022\014\n\010MAXIMIZE\020\001\"\210\001\n\006HPOJob\022\037\n\027MaxNumberO" + - "fTrainingJobs\030\001 \001(\003\022\037\n\027MaxParallelTraini" + - "ngJobs\030\002 \001(\003\022<\n\013TrainingJob\030\003 \001(\0132\'.flyt" + - "eidl.plugins.sagemaker.TrainingJobB5Z3gi" + - "thub.com/lyft/flyteidl/gen/pb-go/flyteid" + - "l/pluginsb\006proto3" + "tive.HPOJobObjectiveType\022\023\n\013metric_name\030" + + "\002 \001(\t\"1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE" + + "\020\000\022\014\n\010MAXIMIZE\020\001\"\220\001\n\006HPOJob\022#\n\033max_numbe" + + "r_of_training_jobs\030\001 \001(\003\022\"\n\032max_parallel" + + "_training_jobs\030\002 \001(\003\022=\n\014training_job\030\003 \001" + + "(\0132\'.flyteidl.plugins.sagemaker.Training" + + "JobB5Z3github.com/lyft/flyteidl/gen/pb-g" + + "o/flyteidl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java b/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java index 0c7e8c07d..929008798 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java @@ -135,21 +135,21 @@ public interface ContinuousParameterRangeOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * double MaxValue = 1; + * double max_value = 1; */ double getMaxValue(); /** - * double MinValue = 2; + * double min_value = 2; */ double getMinValue(); /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ int getScalingTypeValue(); /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType(); } @@ -241,34 +241,34 @@ private ContinuousParameterRange( flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder.class); } - public static final int MAXVALUE_FIELD_NUMBER = 1; + public static final int MAX_VALUE_FIELD_NUMBER = 1; private double maxValue_; /** - * double MaxValue = 1; + * double max_value = 1; */ public double getMaxValue() { return maxValue_; } - public static final int MINVALUE_FIELD_NUMBER = 2; + public static final int MIN_VALUE_FIELD_NUMBER = 2; private double minValue_; /** - * double MinValue = 2; + * double min_value = 2; */ public double getMinValue() { return minValue_; } - public static final int SCALINGTYPE_FIELD_NUMBER = 3; + public static final int SCALING_TYPE_FIELD_NUMBER = 3; private int scalingType_; /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") @@ -353,13 +353,13 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAXVALUE_FIELD_NUMBER; + hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMaxValue())); - hash = (37 * hash) + MINVALUE_FIELD_NUMBER; + hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMinValue())); - hash = (37 * hash) + SCALINGTYPE_FIELD_NUMBER; + hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; hash = (53 * hash) + scalingType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; @@ -617,13 +617,13 @@ public Builder mergeFrom( private double maxValue_ ; /** - * double MaxValue = 1; + * double max_value = 1; */ public double getMaxValue() { return maxValue_; } /** - * double MaxValue = 1; + * double max_value = 1; */ public Builder setMaxValue(double value) { @@ -632,7 +632,7 @@ public Builder setMaxValue(double value) { return this; } /** - * double MaxValue = 1; + * double max_value = 1; */ public Builder clearMaxValue() { @@ -643,13 +643,13 @@ public Builder clearMaxValue() { private double minValue_ ; /** - * double MinValue = 2; + * double min_value = 2; */ public double getMinValue() { return minValue_; } /** - * double MinValue = 2; + * double min_value = 2; */ public Builder setMinValue(double value) { @@ -658,7 +658,7 @@ public Builder setMinValue(double value) { return this; } /** - * double MinValue = 2; + * double min_value = 2; */ public Builder clearMinValue() { @@ -669,13 +669,13 @@ public Builder clearMinValue() { private int scalingType_ = 0; /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public Builder setScalingTypeValue(int value) { scalingType_ = value; @@ -683,7 +683,7 @@ public Builder setScalingTypeValue(int value) { return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") @@ -691,7 +691,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getS return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public Builder setScalingType(flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType value) { if (value == null) { @@ -703,7 +703,7 @@ public Builder setScalingType(flyteidl.plugins.sagemaker.Parameterranges.Hyperpa return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public Builder clearScalingType() { @@ -769,21 +769,21 @@ public interface IntegerParameterRangeOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * float MaxValue = 1; + * float max_value = 1; */ float getMaxValue(); /** - * float MinValue = 2; + * float min_value = 2; */ float getMinValue(); /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ int getScalingTypeValue(); /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType(); } @@ -875,34 +875,34 @@ private IntegerParameterRange( flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder.class); } - public static final int MAXVALUE_FIELD_NUMBER = 1; + public static final int MAX_VALUE_FIELD_NUMBER = 1; private float maxValue_; /** - * float MaxValue = 1; + * float max_value = 1; */ public float getMaxValue() { return maxValue_; } - public static final int MINVALUE_FIELD_NUMBER = 2; + public static final int MIN_VALUE_FIELD_NUMBER = 2; private float minValue_; /** - * float MinValue = 2; + * float min_value = 2; */ public float getMinValue() { return minValue_; } - public static final int SCALINGTYPE_FIELD_NUMBER = 3; + public static final int SCALING_TYPE_FIELD_NUMBER = 3; private int scalingType_; /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") @@ -987,13 +987,13 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAXVALUE_FIELD_NUMBER; + hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getMaxValue()); - hash = (37 * hash) + MINVALUE_FIELD_NUMBER; + hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getMinValue()); - hash = (37 * hash) + SCALINGTYPE_FIELD_NUMBER; + hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; hash = (53 * hash) + scalingType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; @@ -1251,13 +1251,13 @@ public Builder mergeFrom( private float maxValue_ ; /** - * float MaxValue = 1; + * float max_value = 1; */ public float getMaxValue() { return maxValue_; } /** - * float MaxValue = 1; + * float max_value = 1; */ public Builder setMaxValue(float value) { @@ -1266,7 +1266,7 @@ public Builder setMaxValue(float value) { return this; } /** - * float MaxValue = 1; + * float max_value = 1; */ public Builder clearMaxValue() { @@ -1277,13 +1277,13 @@ public Builder clearMaxValue() { private float minValue_ ; /** - * float MinValue = 2; + * float min_value = 2; */ public float getMinValue() { return minValue_; } /** - * float MinValue = 2; + * float min_value = 2; */ public Builder setMinValue(float value) { @@ -1292,7 +1292,7 @@ public Builder setMinValue(float value) { return this; } /** - * float MinValue = 2; + * float min_value = 2; */ public Builder clearMinValue() { @@ -1303,13 +1303,13 @@ public Builder clearMinValue() { private int scalingType_ = 0; /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public Builder setScalingTypeValue(int value) { scalingType_ = value; @@ -1317,7 +1317,7 @@ public Builder setScalingTypeValue(int value) { return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") @@ -1325,7 +1325,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getS return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public Builder setScalingType(flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType value) { if (value == null) { @@ -1337,7 +1337,7 @@ public Builder setScalingType(flyteidl.plugins.sagemaker.Parameterranges.Hyperpa return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType ScalingType = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ public Builder clearScalingType() { @@ -1403,20 +1403,20 @@ public interface CategoricalParameterRangeOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * repeated string Values = 1; + * repeated string values = 1; */ java.util.List getValuesList(); /** - * repeated string Values = 1; + * repeated string values = 1; */ int getValuesCount(); /** - * repeated string Values = 1; + * repeated string values = 1; */ java.lang.String getValues(int index); /** - * repeated string Values = 1; + * repeated string values = 1; */ com.google.protobuf.ByteString getValuesBytes(int index); @@ -1508,26 +1508,26 @@ private CategoricalParameterRange( public static final int VALUES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList values_; /** - * repeated string Values = 1; + * repeated string values = 1; */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** - * repeated string Values = 1; + * repeated string values = 1; */ public int getValuesCount() { return values_.size(); } /** - * repeated string Values = 1; + * repeated string values = 1; */ public java.lang.String getValues(int index) { return values_.get(index); } /** - * repeated string Values = 1; + * repeated string values = 1; */ public com.google.protobuf.ByteString getValuesBytes(int index) { @@ -1863,33 +1863,33 @@ private void ensureValuesIsMutable() { } } /** - * repeated string Values = 1; + * repeated string values = 1; */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** - * repeated string Values = 1; + * repeated string values = 1; */ public int getValuesCount() { return values_.size(); } /** - * repeated string Values = 1; + * repeated string values = 1; */ public java.lang.String getValues(int index) { return values_.get(index); } /** - * repeated string Values = 1; + * repeated string values = 1; */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** - * repeated string Values = 1; + * repeated string values = 1; */ public Builder setValues( int index, java.lang.String value) { @@ -1902,7 +1902,7 @@ public Builder setValues( return this; } /** - * repeated string Values = 1; + * repeated string values = 1; */ public Builder addValues( java.lang.String value) { @@ -1915,7 +1915,7 @@ public Builder addValues( return this; } /** - * repeated string Values = 1; + * repeated string values = 1; */ public Builder addAllValues( java.lang.Iterable values) { @@ -1926,7 +1926,7 @@ public Builder addAllValues( return this; } /** - * repeated string Values = 1; + * repeated string values = 1; */ public Builder clearValues() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1935,7 +1935,7 @@ public Builder clearValues() { return this; } /** - * repeated string Values = 1; + * repeated string values = 1; */ public Builder addValuesBytes( com.google.protobuf.ByteString value) { @@ -2006,41 +2006,41 @@ public interface ParameterRangeOneOfOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ boolean hasContinuousParameterRange(); /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange(); /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder(); /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ boolean hasIntegerParameterRange(); /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange(); /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder(); /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ boolean hasCategoricalParameterRange(); /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange(); /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder(); @@ -2163,9 +2163,9 @@ private ParameterRangeOneOf( private java.lang.Object parameterRangeTypes_; public enum ParameterRangeTypesCase implements com.google.protobuf.Internal.EnumLite { - CONTINUOUSPARAMETERRANGE(1), - INTEGERPARAMETERRANGE(2), - CATEGORICALPARAMETERRANGE(3), + CONTINUOUS_PARAMETER_RANGE(1), + INTEGER_PARAMETER_RANGE(2), + CATEGORICAL_PARAMETER_RANGE(3), PARAMETERRANGETYPES_NOT_SET(0); private final int value; private ParameterRangeTypesCase(int value) { @@ -2181,9 +2181,9 @@ public static ParameterRangeTypesCase valueOf(int value) { public static ParameterRangeTypesCase forNumber(int value) { switch (value) { - case 1: return CONTINUOUSPARAMETERRANGE; - case 2: return INTEGERPARAMETERRANGE; - case 3: return CATEGORICALPARAMETERRANGE; + case 1: return CONTINUOUS_PARAMETER_RANGE; + case 2: return INTEGER_PARAMETER_RANGE; + case 3: return CATEGORICAL_PARAMETER_RANGE; case 0: return PARAMETERRANGETYPES_NOT_SET; default: return null; } @@ -2199,15 +2199,15 @@ public int getNumber() { parameterRangeTypesCase_); } - public static final int CONTINUOUSPARAMETERRANGE_FIELD_NUMBER = 1; + public static final int CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER = 1; /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public boolean hasContinuousParameterRange() { return parameterRangeTypesCase_ == 1; } /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange() { if (parameterRangeTypesCase_ == 1) { @@ -2216,7 +2216,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getCo return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); } /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { if (parameterRangeTypesCase_ == 1) { @@ -2225,15 +2225,15 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuil return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); } - public static final int INTEGERPARAMETERRANGE_FIELD_NUMBER = 2; + public static final int INTEGER_PARAMETER_RANGE_FIELD_NUMBER = 2; /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public boolean hasIntegerParameterRange() { return parameterRangeTypesCase_ == 2; } /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange() { if (parameterRangeTypesCase_ == 2) { @@ -2242,7 +2242,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getInteg return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); } /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { if (parameterRangeTypesCase_ == 2) { @@ -2251,15 +2251,15 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); } - public static final int CATEGORICALPARAMETERRANGE_FIELD_NUMBER = 3; + public static final int CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER = 3; /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public boolean hasCategoricalParameterRange() { return parameterRangeTypesCase_ == 3; } /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange() { if (parameterRangeTypesCase_ == 3) { @@ -2268,7 +2268,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getC return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); } /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { if (parameterRangeTypesCase_ == 3) { @@ -2366,15 +2366,15 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); switch (parameterRangeTypesCase_) { case 1: - hash = (37 * hash) + CONTINUOUSPARAMETERRANGE_FIELD_NUMBER; + hash = (37 * hash) + CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER; hash = (53 * hash) + getContinuousParameterRange().hashCode(); break; case 2: - hash = (37 * hash) + INTEGERPARAMETERRANGE_FIELD_NUMBER; + hash = (37 * hash) + INTEGER_PARAMETER_RANGE_FIELD_NUMBER; hash = (53 * hash) + getIntegerParameterRange().hashCode(); break; case 3: - hash = (37 * hash) + CATEGORICALPARAMETERRANGE_FIELD_NUMBER; + hash = (37 * hash) + CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER; hash = (53 * hash) + getCategoricalParameterRange().hashCode(); break; case 0: @@ -2612,15 +2612,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf other) { if (other == flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance()) return this; switch (other.getParameterRangeTypesCase()) { - case CONTINUOUSPARAMETERRANGE: { + case CONTINUOUS_PARAMETER_RANGE: { mergeContinuousParameterRange(other.getContinuousParameterRange()); break; } - case INTEGERPARAMETERRANGE: { + case INTEGER_PARAMETER_RANGE: { mergeIntegerParameterRange(other.getIntegerParameterRange()); break; } - case CATEGORICALPARAMETERRANGE: { + case CATEGORICAL_PARAMETER_RANGE: { mergeCategoricalParameterRange(other.getCategoricalParameterRange()); break; } @@ -2675,13 +2675,13 @@ public Builder clearParameterRangeTypes() { private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder> continuousParameterRangeBuilder_; /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public boolean hasContinuousParameterRange() { return parameterRangeTypesCase_ == 1; } /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange() { if (continuousParameterRangeBuilder_ == null) { @@ -2697,7 +2697,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getCo } } /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange value) { if (continuousParameterRangeBuilder_ == null) { @@ -2713,7 +2713,7 @@ public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterr return this; } /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public Builder setContinuousParameterRange( flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder builderForValue) { @@ -2727,7 +2727,7 @@ public Builder setContinuousParameterRange( return this; } /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange value) { if (continuousParameterRangeBuilder_ == null) { @@ -2749,7 +2749,7 @@ public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.Paramete return this; } /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public Builder clearContinuousParameterRange() { if (continuousParameterRangeBuilder_ == null) { @@ -2768,13 +2768,13 @@ public Builder clearContinuousParameterRange() { return this; } /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder getContinuousParameterRangeBuilder() { return getContinuousParameterRangeFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { if ((parameterRangeTypesCase_ == 1) && (continuousParameterRangeBuilder_ != null)) { @@ -2787,7 +2787,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuil } } /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange ContinuousParameterRange = 1; + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder> @@ -2811,13 +2811,13 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuil private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder> integerParameterRangeBuilder_; /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public boolean hasIntegerParameterRange() { return parameterRangeTypesCase_ == 2; } /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange() { if (integerParameterRangeBuilder_ == null) { @@ -2833,7 +2833,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getInteg } } /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange value) { if (integerParameterRangeBuilder_ == null) { @@ -2849,7 +2849,7 @@ public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterrang return this; } /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public Builder setIntegerParameterRange( flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder builderForValue) { @@ -2863,7 +2863,7 @@ public Builder setIntegerParameterRange( return this; } /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange value) { if (integerParameterRangeBuilder_ == null) { @@ -2885,7 +2885,7 @@ public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterra return this; } /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public Builder clearIntegerParameterRange() { if (integerParameterRangeBuilder_ == null) { @@ -2904,13 +2904,13 @@ public Builder clearIntegerParameterRange() { return this; } /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder getIntegerParameterRangeBuilder() { return getIntegerParameterRangeFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { if ((parameterRangeTypesCase_ == 2) && (integerParameterRangeBuilder_ != null)) { @@ -2923,7 +2923,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder } } /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange IntegerParameterRange = 2; + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder> @@ -2947,13 +2947,13 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder> categoricalParameterRangeBuilder_; /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public boolean hasCategoricalParameterRange() { return parameterRangeTypesCase_ == 3; } /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange() { if (categoricalParameterRangeBuilder_ == null) { @@ -2969,7 +2969,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getC } } /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange value) { if (categoricalParameterRangeBuilder_ == null) { @@ -2985,7 +2985,7 @@ public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameter return this; } /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public Builder setCategoricalParameterRange( flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder builderForValue) { @@ -2999,7 +2999,7 @@ public Builder setCategoricalParameterRange( return this; } /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange value) { if (categoricalParameterRangeBuilder_ == null) { @@ -3021,7 +3021,7 @@ public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.Paramet return this; } /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public Builder clearCategoricalParameterRange() { if (categoricalParameterRangeBuilder_ == null) { @@ -3040,13 +3040,13 @@ public Builder clearCategoricalParameterRange() { return this; } /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder getCategoricalParameterRangeBuilder() { return getCategoricalParameterRangeFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { if ((parameterRangeTypesCase_ == 3) && (categoricalParameterRangeBuilder_ != null)) { @@ -3059,7 +3059,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBui } } /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange CategoricalParameterRange = 3; + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder> @@ -3137,11 +3137,11 @@ public interface ParameterRangesOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ int getParameterRangeMapCount(); /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ boolean containsParameterRangeMap( java.lang.String key); @@ -3152,19 +3152,19 @@ boolean containsParameterRangeMap( java.util.Map getParameterRangeMap(); /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ java.util.Map getParameterRangeMapMap(); /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault( java.lang.String key, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf defaultValue); /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow( @@ -3266,7 +3266,7 @@ protected com.google.protobuf.MapField internalGetMapField( flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder.class); } - public static final int PARAMETERRANGEMAP_FIELD_NUMBER = 1; + public static final int PARAMETER_RANGE_MAP_FIELD_NUMBER = 1; private static final class ParameterRangeMapDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf> defaultEntry = @@ -3293,7 +3293,7 @@ public int getParameterRangeMapCount() { return internalGetParameterRangeMap().getMap().size(); } /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ public boolean containsParameterRangeMap( @@ -3309,14 +3309,14 @@ public java.util.Mapmap<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ public java.util.Map getParameterRangeMapMap() { return internalGetParameterRangeMap().getMap(); } /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault( @@ -3328,7 +3328,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParamet return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow( @@ -3410,7 +3410,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetParameterRangeMap().getMap().isEmpty()) { - hash = (37 * hash) + PARAMETERRANGEMAP_FIELD_NUMBER; + hash = (37 * hash) + PARAMETER_RANGE_MAP_FIELD_NUMBER; hash = (53 * hash) + internalGetParameterRangeMap().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); @@ -3705,7 +3705,7 @@ public int getParameterRangeMapCount() { return internalGetParameterRangeMap().getMap().size(); } /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ public boolean containsParameterRangeMap( @@ -3721,14 +3721,14 @@ public java.util.Mapmap<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ public java.util.Map getParameterRangeMapMap() { return internalGetParameterRangeMap().getMap(); } /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault( @@ -3740,7 +3740,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParamet return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow( @@ -3760,7 +3760,7 @@ public Builder clearParameterRangeMap() { return this; } /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ public Builder removeParameterRangeMap( @@ -3779,7 +3779,7 @@ public Builder removeParameterRangeMap( return internalGetMutableParameterRangeMap().getMutableMap(); } /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ public Builder putParameterRangeMap( java.lang.String key, @@ -3791,7 +3791,7 @@ public Builder putParameterRangeMap( return this; } /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> ParameterRangeMap = 1; + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ public Builder putAllParameterRangeMap( @@ -3893,33 +3893,33 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInst static { java.lang.String[] descriptorData = { "\n0flyteidl/plugins/sagemaker/parameterra" + - "nges.proto\022\032flyteidl.plugins.sagemaker\"\212" + - "\001\n\030ContinuousParameterRange\022\020\n\010MaxValue\030" + - "\001 \001(\001\022\020\n\010MinValue\030\002 \001(\001\022J\n\013ScalingType\030\003" + - " \001(\01625.flyteidl.plugins.sagemaker.Hyperp" + - "arameterScalingType\"\207\001\n\025IntegerParameter" + - "Range\022\020\n\010MaxValue\030\001 \001(\002\022\020\n\010MinValue\030\002 \001(" + - "\002\022J\n\013ScalingType\030\003 \001(\01625.flyteidl.plugin" + - "s.sagemaker.HyperparameterScalingType\"+\n" + - "\031CategoricalParameterRange\022\016\n\006Values\030\001 \003" + - "(\t\"\266\002\n\023ParameterRangeOneOf\022X\n\030Continuous" + - "ParameterRange\030\001 \001(\01324.flyteidl.plugins." + - "sagemaker.ContinuousParameterRangeH\000\022R\n\025" + - "IntegerParameterRange\030\002 \001(\01321.flyteidl.p" + - "lugins.sagemaker.IntegerParameterRangeH\000" + - "\022Z\n\031CategoricalParameterRange\030\003 \001(\01325.fl" + - "yteidl.plugins.sagemaker.CategoricalPara" + - "meterRangeH\000B\025\n\023ParameterRangeTypes\"\333\001\n\017" + - "ParameterRanges\022]\n\021ParameterRangeMap\030\001 \003" + - "(\0132B.flyteidl.plugins.sagemaker.Paramete" + - "rRanges.ParameterRangeMapEntry\032i\n\026Parame" + - "terRangeMapEntry\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002" + - " \001(\0132/.flyteidl.plugins.sagemaker.Parame" + - "terRangeOneOf:\0028\001*Z\n\031HyperparameterScali" + - "ngType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR\020\001\022\017\n\013LOGARITH" + - "MIC\020\002\022\026\n\022REVERSELOGARITHMIC\020\003B5Z3github." + - "com/lyft/flyteidl/gen/pb-go/flyteidl/plu" + - "ginsb\006proto3" + "nges.proto\022\032flyteidl.plugins.sagemaker\"\215" + + "\001\n\030ContinuousParameterRange\022\021\n\tmax_value" + + "\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_typ" + + "e\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hyp" + + "erparameterScalingType\"\212\001\n\025IntegerParame" + + "terRange\022\021\n\tmax_value\030\001 \001(\002\022\021\n\tmin_value" + + "\030\002 \001(\002\022K\n\014scaling_type\030\003 \001(\01625.flyteidl." + + "plugins.sagemaker.HyperparameterScalingT" + + "ype\"+\n\031CategoricalParameterRange\022\016\n\006valu" + + "es\030\001 \003(\t\"\274\002\n\023ParameterRangeOneOf\022Z\n\032cont" + + "inuous_parameter_range\030\001 \001(\01324.flyteidl." + + "plugins.sagemaker.ContinuousParameterRan" + + "geH\000\022T\n\027integer_parameter_range\030\002 \001(\01321." + + "flyteidl.plugins.sagemaker.IntegerParame" + + "terRangeH\000\022\\\n\033categorical_parameter_rang" + + "e\030\003 \001(\01325.flyteidl.plugins.sagemaker.Cat" + + "egoricalParameterRangeH\000B\025\n\023ParameterRan" + + "geTypes\"\335\001\n\017ParameterRanges\022_\n\023parameter" + + "_range_map\030\001 \003(\0132B.flyteidl.plugins.sage" + + "maker.ParameterRanges.ParameterRangeMapE" + + "ntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001 " + + "\001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins.sa" + + "gemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyper" + + "parameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR" + + "\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHMI" + + "C\020\003B5Z3github.com/lyft/flyteidl/gen/pb-g" + + "o/flyteidl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java index bcf7550e1..704753fd6 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java @@ -23,7 +23,7 @@ public interface AlgorithmSpecificationOrBuilder extends * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string TrainingImage = 1; + * string training_image = 1; */ java.lang.String getTrainingImage(); /** @@ -31,17 +31,17 @@ public interface AlgorithmSpecificationOrBuilder extends * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string TrainingImage = 1; + * string training_image = 1; */ com.google.protobuf.ByteString getTrainingImageBytes(); /** - * string TrainingInputMode = 2; + * string training_input_mode = 2; */ java.lang.String getTrainingInputMode(); /** - * string TrainingInputMode = 2; + * string training_input_mode = 2; */ com.google.protobuf.ByteString getTrainingInputModeBytes(); @@ -51,7 +51,7 @@ public interface AlgorithmSpecificationOrBuilder extends * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string AlgorithmName = 3; + * string algorithm_name = 3; */ java.lang.String getAlgorithmName(); /** @@ -59,31 +59,31 @@ public interface AlgorithmSpecificationOrBuilder extends * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string AlgorithmName = 3; + * string algorithm_name = 3; */ com.google.protobuf.ByteString getAlgorithmNameBytes(); /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ java.util.List getMetricDefinitionsList(); /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ int getMetricDefinitionsCount(); /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ java.util.List getMetricDefinitionsOrBuilderList(); /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index); @@ -198,21 +198,21 @@ public interface MetricDefinitionOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * string Name = 1; + * string name = 1; */ java.lang.String getName(); /** - * string Name = 1; + * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** - * string Regex = 2; + * string regex = 2; */ java.lang.String getRegex(); /** - * string Regex = 2; + * string regex = 2; */ com.google.protobuf.ByteString getRegexBytes(); @@ -305,7 +305,7 @@ private MetricDefinition( public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * string Name = 1; + * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -320,7 +320,7 @@ public java.lang.String getName() { } } /** - * string Name = 1; + * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { @@ -339,7 +339,7 @@ public java.lang.String getName() { public static final int REGEX_FIELD_NUMBER = 2; private volatile java.lang.Object regex_; /** - * string Regex = 2; + * string regex = 2; */ public java.lang.String getRegex() { java.lang.Object ref = regex_; @@ -354,7 +354,7 @@ public java.lang.String getRegex() { } } /** - * string Regex = 2; + * string regex = 2; */ public com.google.protobuf.ByteString getRegexBytes() { @@ -691,7 +691,7 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * string Name = 1; + * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -706,7 +706,7 @@ public java.lang.String getName() { } } /** - * string Name = 1; + * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { @@ -722,7 +722,7 @@ public java.lang.String getName() { } } /** - * string Name = 1; + * string name = 1; */ public Builder setName( java.lang.String value) { @@ -735,7 +735,7 @@ public Builder setName( return this; } /** - * string Name = 1; + * string name = 1; */ public Builder clearName() { @@ -744,7 +744,7 @@ public Builder clearName() { return this; } /** - * string Name = 1; + * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -760,7 +760,7 @@ public Builder setNameBytes( private java.lang.Object regex_ = ""; /** - * string Regex = 2; + * string regex = 2; */ public java.lang.String getRegex() { java.lang.Object ref = regex_; @@ -775,7 +775,7 @@ public java.lang.String getRegex() { } } /** - * string Regex = 2; + * string regex = 2; */ public com.google.protobuf.ByteString getRegexBytes() { @@ -791,7 +791,7 @@ public java.lang.String getRegex() { } } /** - * string Regex = 2; + * string regex = 2; */ public Builder setRegex( java.lang.String value) { @@ -804,7 +804,7 @@ public Builder setRegex( return this; } /** - * string Regex = 2; + * string regex = 2; */ public Builder clearRegex() { @@ -813,7 +813,7 @@ public Builder clearRegex() { return this; } /** - * string Regex = 2; + * string regex = 2; */ public Builder setRegexBytes( com.google.protobuf.ByteString value) { @@ -880,14 +880,14 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefin } private int bitField0_; - public static final int TRAININGIMAGE_FIELD_NUMBER = 1; + public static final int TRAINING_IMAGE_FIELD_NUMBER = 1; private volatile java.lang.Object trainingImage_; /** *
      * TODO: will this change output? should it be an input instead of a part of the task spec?
      * 
* - * string TrainingImage = 1; + * string training_image = 1; */ public java.lang.String getTrainingImage() { java.lang.Object ref = trainingImage_; @@ -906,7 +906,7 @@ public java.lang.String getTrainingImage() { * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string TrainingImage = 1; + * string training_image = 1; */ public com.google.protobuf.ByteString getTrainingImageBytes() { @@ -922,10 +922,10 @@ public java.lang.String getTrainingImage() { } } - public static final int TRAININGINPUTMODE_FIELD_NUMBER = 2; + public static final int TRAINING_INPUT_MODE_FIELD_NUMBER = 2; private volatile java.lang.Object trainingInputMode_; /** - * string TrainingInputMode = 2; + * string training_input_mode = 2; */ public java.lang.String getTrainingInputMode() { java.lang.Object ref = trainingInputMode_; @@ -940,7 +940,7 @@ public java.lang.String getTrainingInputMode() { } } /** - * string TrainingInputMode = 2; + * string training_input_mode = 2; */ public com.google.protobuf.ByteString getTrainingInputModeBytes() { @@ -956,14 +956,14 @@ public java.lang.String getTrainingInputMode() { } } - public static final int ALGORITHMNAME_FIELD_NUMBER = 3; + public static final int ALGORITHM_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object algorithmName_; /** *
      * TODO: will this change output? should it be an input instead of a part of the task spec?
      * 
* - * string AlgorithmName = 3; + * string algorithm_name = 3; */ public java.lang.String getAlgorithmName() { java.lang.Object ref = algorithmName_; @@ -982,7 +982,7 @@ public java.lang.String getAlgorithmName() { * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string AlgorithmName = 3; + * string algorithm_name = 3; */ public com.google.protobuf.ByteString getAlgorithmNameBytes() { @@ -998,35 +998,35 @@ public java.lang.String getAlgorithmName() { } } - public static final int METRICDEFINITIONS_FIELD_NUMBER = 4; + public static final int METRIC_DEFINITIONS_FIELD_NUMBER = 4; private java.util.List metricDefinitions_; /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public java.util.List getMetricDefinitionsList() { return metricDefinitions_; } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public java.util.List getMetricDefinitionsOrBuilderList() { return metricDefinitions_; } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public int getMetricDefinitionsCount() { return metricDefinitions_.size(); } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { return metricDefinitions_.get(index); } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index) { @@ -1115,14 +1115,14 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TRAININGIMAGE_FIELD_NUMBER; + hash = (37 * hash) + TRAINING_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getTrainingImage().hashCode(); - hash = (37 * hash) + TRAININGINPUTMODE_FIELD_NUMBER; + hash = (37 * hash) + TRAINING_INPUT_MODE_FIELD_NUMBER; hash = (53 * hash) + getTrainingInputMode().hashCode(); - hash = (37 * hash) + ALGORITHMNAME_FIELD_NUMBER; + hash = (37 * hash) + ALGORITHM_NAME_FIELD_NUMBER; hash = (53 * hash) + getAlgorithmName().hashCode(); if (getMetricDefinitionsCount() > 0) { - hash = (37 * hash) + METRICDEFINITIONS_FIELD_NUMBER; + hash = (37 * hash) + METRIC_DEFINITIONS_FIELD_NUMBER; hash = (53 * hash) + getMetricDefinitionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); @@ -1434,7 +1434,7 @@ public Builder mergeFrom( * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string TrainingImage = 1; + * string training_image = 1; */ public java.lang.String getTrainingImage() { java.lang.Object ref = trainingImage_; @@ -1453,7 +1453,7 @@ public java.lang.String getTrainingImage() { * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string TrainingImage = 1; + * string training_image = 1; */ public com.google.protobuf.ByteString getTrainingImageBytes() { @@ -1473,7 +1473,7 @@ public java.lang.String getTrainingImage() { * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string TrainingImage = 1; + * string training_image = 1; */ public Builder setTrainingImage( java.lang.String value) { @@ -1490,7 +1490,7 @@ public Builder setTrainingImage( * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string TrainingImage = 1; + * string training_image = 1; */ public Builder clearTrainingImage() { @@ -1503,7 +1503,7 @@ public Builder clearTrainingImage() { * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string TrainingImage = 1; + * string training_image = 1; */ public Builder setTrainingImageBytes( com.google.protobuf.ByteString value) { @@ -1519,7 +1519,7 @@ public Builder setTrainingImageBytes( private java.lang.Object trainingInputMode_ = ""; /** - * string TrainingInputMode = 2; + * string training_input_mode = 2; */ public java.lang.String getTrainingInputMode() { java.lang.Object ref = trainingInputMode_; @@ -1534,7 +1534,7 @@ public java.lang.String getTrainingInputMode() { } } /** - * string TrainingInputMode = 2; + * string training_input_mode = 2; */ public com.google.protobuf.ByteString getTrainingInputModeBytes() { @@ -1550,7 +1550,7 @@ public java.lang.String getTrainingInputMode() { } } /** - * string TrainingInputMode = 2; + * string training_input_mode = 2; */ public Builder setTrainingInputMode( java.lang.String value) { @@ -1563,7 +1563,7 @@ public Builder setTrainingInputMode( return this; } /** - * string TrainingInputMode = 2; + * string training_input_mode = 2; */ public Builder clearTrainingInputMode() { @@ -1572,7 +1572,7 @@ public Builder clearTrainingInputMode() { return this; } /** - * string TrainingInputMode = 2; + * string training_input_mode = 2; */ public Builder setTrainingInputModeBytes( com.google.protobuf.ByteString value) { @@ -1592,7 +1592,7 @@ public Builder setTrainingInputModeBytes( * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string AlgorithmName = 3; + * string algorithm_name = 3; */ public java.lang.String getAlgorithmName() { java.lang.Object ref = algorithmName_; @@ -1611,7 +1611,7 @@ public java.lang.String getAlgorithmName() { * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string AlgorithmName = 3; + * string algorithm_name = 3; */ public com.google.protobuf.ByteString getAlgorithmNameBytes() { @@ -1631,7 +1631,7 @@ public java.lang.String getAlgorithmName() { * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string AlgorithmName = 3; + * string algorithm_name = 3; */ public Builder setAlgorithmName( java.lang.String value) { @@ -1648,7 +1648,7 @@ public Builder setAlgorithmName( * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string AlgorithmName = 3; + * string algorithm_name = 3; */ public Builder clearAlgorithmName() { @@ -1661,7 +1661,7 @@ public Builder clearAlgorithmName() { * TODO: will this change output? should it be an input instead of a part of the task spec? * * - * string AlgorithmName = 3; + * string algorithm_name = 3; */ public Builder setAlgorithmNameBytes( com.google.protobuf.ByteString value) { @@ -1688,7 +1688,7 @@ private void ensureMetricDefinitionsIsMutable() { flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public java.util.List getMetricDefinitionsList() { if (metricDefinitionsBuilder_ == null) { @@ -1698,7 +1698,7 @@ public java.util.Listrepeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public int getMetricDefinitionsCount() { if (metricDefinitionsBuilder_ == null) { @@ -1708,7 +1708,7 @@ public int getMetricDefinitionsCount() { } } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { if (metricDefinitionsBuilder_ == null) { @@ -1718,7 +1718,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefin } } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder setMetricDefinitions( int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) { @@ -1735,7 +1735,7 @@ public Builder setMetricDefinitions( return this; } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder setMetricDefinitions( int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { @@ -1749,7 +1749,7 @@ public Builder setMetricDefinitions( return this; } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) { if (metricDefinitionsBuilder_ == null) { @@ -1765,7 +1765,7 @@ public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.Trainingjob.Algor return this; } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions( int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) { @@ -1782,7 +1782,7 @@ public Builder addMetricDefinitions( return this; } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions( flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { @@ -1796,7 +1796,7 @@ public Builder addMetricDefinitions( return this; } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions( int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { @@ -1810,7 +1810,7 @@ public Builder addMetricDefinitions( return this; } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addAllMetricDefinitions( java.lang.Iterable values) { @@ -1825,7 +1825,7 @@ public Builder addAllMetricDefinitions( return this; } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder clearMetricDefinitions() { if (metricDefinitionsBuilder_ == null) { @@ -1838,7 +1838,7 @@ public Builder clearMetricDefinitions() { return this; } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder removeMetricDefinitions(int index) { if (metricDefinitionsBuilder_ == null) { @@ -1851,14 +1851,14 @@ public Builder removeMetricDefinitions(int index) { return this; } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( int index) { return getMetricDefinitionsFieldBuilder().getBuilder(index); } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index) { @@ -1868,7 +1868,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefin } } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public java.util.List getMetricDefinitionsOrBuilderList() { @@ -1879,14 +1879,14 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefin } } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { return getMetricDefinitionsFieldBuilder().addBuilder( flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( int index) { @@ -1894,7 +1894,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefin index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); } /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition MetricDefinitions = 4; + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public java.util.List getMetricDefinitionsBuilderList() { @@ -1972,31 +1972,31 @@ public interface ResourceConfigOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * string InstanceType = 1; + * string instance_type = 1; */ java.lang.String getInstanceType(); /** - * string InstanceType = 1; + * string instance_type = 1; */ com.google.protobuf.ByteString getInstanceTypeBytes(); /** - * int64 InstanceCount = 2; + * int64 instance_count = 2; */ long getInstanceCount(); /** - * int64 VolumeSizeInGB = 3; + * int64 volume_size_in_gb = 3; */ - long getVolumeSizeInGB(); + long getVolumeSizeInGb(); /** - * string VolumeKmsKeyId = 4; + * string volume_kms_key_id = 4; */ java.lang.String getVolumeKmsKeyId(); /** - * string VolumeKmsKeyId = 4; + * string volume_kms_key_id = 4; */ com.google.protobuf.ByteString getVolumeKmsKeyIdBytes(); @@ -2055,7 +2055,7 @@ private ResourceConfig( } case 24: { - volumeSizeInGB_ = input.readInt64(); + volumeSizeInGb_ = input.readInt64(); break; } case 34: { @@ -2096,10 +2096,10 @@ private ResourceConfig( flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.class, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder.class); } - public static final int INSTANCETYPE_FIELD_NUMBER = 1; + public static final int INSTANCE_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object instanceType_; /** - * string InstanceType = 1; + * string instance_type = 1; */ public java.lang.String getInstanceType() { java.lang.Object ref = instanceType_; @@ -2114,7 +2114,7 @@ public java.lang.String getInstanceType() { } } /** - * string InstanceType = 1; + * string instance_type = 1; */ public com.google.protobuf.ByteString getInstanceTypeBytes() { @@ -2130,28 +2130,28 @@ public java.lang.String getInstanceType() { } } - public static final int INSTANCECOUNT_FIELD_NUMBER = 2; + public static final int INSTANCE_COUNT_FIELD_NUMBER = 2; private long instanceCount_; /** - * int64 InstanceCount = 2; + * int64 instance_count = 2; */ public long getInstanceCount() { return instanceCount_; } - public static final int VOLUMESIZEINGB_FIELD_NUMBER = 3; - private long volumeSizeInGB_; + public static final int VOLUME_SIZE_IN_GB_FIELD_NUMBER = 3; + private long volumeSizeInGb_; /** - * int64 VolumeSizeInGB = 3; + * int64 volume_size_in_gb = 3; */ - public long getVolumeSizeInGB() { - return volumeSizeInGB_; + public long getVolumeSizeInGb() { + return volumeSizeInGb_; } - public static final int VOLUMEKMSKEYID_FIELD_NUMBER = 4; + public static final int VOLUME_KMS_KEY_ID_FIELD_NUMBER = 4; private volatile java.lang.Object volumeKmsKeyId_; /** - * string VolumeKmsKeyId = 4; + * string volume_kms_key_id = 4; */ public java.lang.String getVolumeKmsKeyId() { java.lang.Object ref = volumeKmsKeyId_; @@ -2166,7 +2166,7 @@ public java.lang.String getVolumeKmsKeyId() { } } /** - * string VolumeKmsKeyId = 4; + * string volume_kms_key_id = 4; */ public com.google.protobuf.ByteString getVolumeKmsKeyIdBytes() { @@ -2202,8 +2202,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (instanceCount_ != 0L) { output.writeInt64(2, instanceCount_); } - if (volumeSizeInGB_ != 0L) { - output.writeInt64(3, volumeSizeInGB_); + if (volumeSizeInGb_ != 0L) { + output.writeInt64(3, volumeSizeInGb_); } if (!getVolumeKmsKeyIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, volumeKmsKeyId_); @@ -2224,9 +2224,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, instanceCount_); } - if (volumeSizeInGB_ != 0L) { + if (volumeSizeInGb_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, volumeSizeInGB_); + .computeInt64Size(3, volumeSizeInGb_); } if (!getVolumeKmsKeyIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, volumeKmsKeyId_); @@ -2250,8 +2250,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getInstanceType())) return false; if (getInstanceCount() != other.getInstanceCount()) return false; - if (getVolumeSizeInGB() - != other.getVolumeSizeInGB()) return false; + if (getVolumeSizeInGb() + != other.getVolumeSizeInGb()) return false; if (!getVolumeKmsKeyId() .equals(other.getVolumeKmsKeyId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -2265,15 +2265,15 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INSTANCETYPE_FIELD_NUMBER; + hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getInstanceType().hashCode(); - hash = (37 * hash) + INSTANCECOUNT_FIELD_NUMBER; + hash = (37 * hash) + INSTANCE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInstanceCount()); - hash = (37 * hash) + VOLUMESIZEINGB_FIELD_NUMBER; + hash = (37 * hash) + VOLUME_SIZE_IN_GB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVolumeSizeInGB()); - hash = (37 * hash) + VOLUMEKMSKEYID_FIELD_NUMBER; + getVolumeSizeInGb()); + hash = (37 * hash) + VOLUME_KMS_KEY_ID_FIELD_NUMBER; hash = (53 * hash) + getVolumeKmsKeyId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; @@ -2412,7 +2412,7 @@ public Builder clear() { instanceCount_ = 0L; - volumeSizeInGB_ = 0L; + volumeSizeInGb_ = 0L; volumeKmsKeyId_ = ""; @@ -2444,7 +2444,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig buildPartial() { flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig result = new flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig(this); result.instanceType_ = instanceType_; result.instanceCount_ = instanceCount_; - result.volumeSizeInGB_ = volumeSizeInGB_; + result.volumeSizeInGb_ = volumeSizeInGb_; result.volumeKmsKeyId_ = volumeKmsKeyId_; onBuilt(); return result; @@ -2501,8 +2501,8 @@ public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig o if (other.getInstanceCount() != 0L) { setInstanceCount(other.getInstanceCount()); } - if (other.getVolumeSizeInGB() != 0L) { - setVolumeSizeInGB(other.getVolumeSizeInGB()); + if (other.getVolumeSizeInGb() != 0L) { + setVolumeSizeInGb(other.getVolumeSizeInGb()); } if (!other.getVolumeKmsKeyId().isEmpty()) { volumeKmsKeyId_ = other.volumeKmsKeyId_; @@ -2539,7 +2539,7 @@ public Builder mergeFrom( private java.lang.Object instanceType_ = ""; /** - * string InstanceType = 1; + * string instance_type = 1; */ public java.lang.String getInstanceType() { java.lang.Object ref = instanceType_; @@ -2554,7 +2554,7 @@ public java.lang.String getInstanceType() { } } /** - * string InstanceType = 1; + * string instance_type = 1; */ public com.google.protobuf.ByteString getInstanceTypeBytes() { @@ -2570,7 +2570,7 @@ public java.lang.String getInstanceType() { } } /** - * string InstanceType = 1; + * string instance_type = 1; */ public Builder setInstanceType( java.lang.String value) { @@ -2583,7 +2583,7 @@ public Builder setInstanceType( return this; } /** - * string InstanceType = 1; + * string instance_type = 1; */ public Builder clearInstanceType() { @@ -2592,7 +2592,7 @@ public Builder clearInstanceType() { return this; } /** - * string InstanceType = 1; + * string instance_type = 1; */ public Builder setInstanceTypeBytes( com.google.protobuf.ByteString value) { @@ -2608,13 +2608,13 @@ public Builder setInstanceTypeBytes( private long instanceCount_ ; /** - * int64 InstanceCount = 2; + * int64 instance_count = 2; */ public long getInstanceCount() { return instanceCount_; } /** - * int64 InstanceCount = 2; + * int64 instance_count = 2; */ public Builder setInstanceCount(long value) { @@ -2623,7 +2623,7 @@ public Builder setInstanceCount(long value) { return this; } /** - * int64 InstanceCount = 2; + * int64 instance_count = 2; */ public Builder clearInstanceCount() { @@ -2632,35 +2632,35 @@ public Builder clearInstanceCount() { return this; } - private long volumeSizeInGB_ ; + private long volumeSizeInGb_ ; /** - * int64 VolumeSizeInGB = 3; + * int64 volume_size_in_gb = 3; */ - public long getVolumeSizeInGB() { - return volumeSizeInGB_; + public long getVolumeSizeInGb() { + return volumeSizeInGb_; } /** - * int64 VolumeSizeInGB = 3; + * int64 volume_size_in_gb = 3; */ - public Builder setVolumeSizeInGB(long value) { + public Builder setVolumeSizeInGb(long value) { - volumeSizeInGB_ = value; + volumeSizeInGb_ = value; onChanged(); return this; } /** - * int64 VolumeSizeInGB = 3; + * int64 volume_size_in_gb = 3; */ - public Builder clearVolumeSizeInGB() { + public Builder clearVolumeSizeInGb() { - volumeSizeInGB_ = 0L; + volumeSizeInGb_ = 0L; onChanged(); return this; } private java.lang.Object volumeKmsKeyId_ = ""; /** - * string VolumeKmsKeyId = 4; + * string volume_kms_key_id = 4; */ public java.lang.String getVolumeKmsKeyId() { java.lang.Object ref = volumeKmsKeyId_; @@ -2675,7 +2675,7 @@ public java.lang.String getVolumeKmsKeyId() { } } /** - * string VolumeKmsKeyId = 4; + * string volume_kms_key_id = 4; */ public com.google.protobuf.ByteString getVolumeKmsKeyIdBytes() { @@ -2691,7 +2691,7 @@ public java.lang.String getVolumeKmsKeyId() { } } /** - * string VolumeKmsKeyId = 4; + * string volume_kms_key_id = 4; */ public Builder setVolumeKmsKeyId( java.lang.String value) { @@ -2704,7 +2704,7 @@ public Builder setVolumeKmsKeyId( return this; } /** - * string VolumeKmsKeyId = 4; + * string volume_kms_key_id = 4; */ public Builder clearVolumeKmsKeyId() { @@ -2713,7 +2713,7 @@ public Builder clearVolumeKmsKeyId() { return this; } /** - * string VolumeKmsKeyId = 4; + * string volume_kms_key_id = 4; */ public Builder setVolumeKmsKeyIdBytes( com.google.protobuf.ByteString value) { @@ -2784,12 +2784,12 @@ public interface StoppingConditionOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * int64 MaxRuntimeInSeconds = 1; + * int64 max_runtime_in_seconds = 1; */ long getMaxRuntimeInSeconds(); /** - * int64 MaxWaitTimeInSeconds = 2; + * int64 max_wait_time_in_seconds = 2; */ long getMaxWaitTimeInSeconds(); } @@ -2874,19 +2874,19 @@ private StoppingCondition( flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.class, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder.class); } - public static final int MAXRUNTIMEINSECONDS_FIELD_NUMBER = 1; + public static final int MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER = 1; private long maxRuntimeInSeconds_; /** - * int64 MaxRuntimeInSeconds = 1; + * int64 max_runtime_in_seconds = 1; */ public long getMaxRuntimeInSeconds() { return maxRuntimeInSeconds_; } - public static final int MAXWAITTIMEINSECONDS_FIELD_NUMBER = 2; + public static final int MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER = 2; private long maxWaitTimeInSeconds_; /** - * int64 MaxWaitTimeInSeconds = 2; + * int64 max_wait_time_in_seconds = 2; */ public long getMaxWaitTimeInSeconds() { return maxWaitTimeInSeconds_; @@ -2959,10 +2959,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAXRUNTIMEINSECONDS_FIELD_NUMBER; + hash = (37 * hash) + MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxRuntimeInSeconds()); - hash = (37 * hash) + MAXWAITTIMEINSECONDS_FIELD_NUMBER; + hash = (37 * hash) + MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxWaitTimeInSeconds()); hash = (29 * hash) + unknownFields.hashCode(); @@ -3215,13 +3215,13 @@ public Builder mergeFrom( private long maxRuntimeInSeconds_ ; /** - * int64 MaxRuntimeInSeconds = 1; + * int64 max_runtime_in_seconds = 1; */ public long getMaxRuntimeInSeconds() { return maxRuntimeInSeconds_; } /** - * int64 MaxRuntimeInSeconds = 1; + * int64 max_runtime_in_seconds = 1; */ public Builder setMaxRuntimeInSeconds(long value) { @@ -3230,7 +3230,7 @@ public Builder setMaxRuntimeInSeconds(long value) { return this; } /** - * int64 MaxRuntimeInSeconds = 1; + * int64 max_runtime_in_seconds = 1; */ public Builder clearMaxRuntimeInSeconds() { @@ -3241,13 +3241,13 @@ public Builder clearMaxRuntimeInSeconds() { private long maxWaitTimeInSeconds_ ; /** - * int64 MaxWaitTimeInSeconds = 2; + * int64 max_wait_time_in_seconds = 2; */ public long getMaxWaitTimeInSeconds() { return maxWaitTimeInSeconds_; } /** - * int64 MaxWaitTimeInSeconds = 2; + * int64 max_wait_time_in_seconds = 2; */ public Builder setMaxWaitTimeInSeconds(long value) { @@ -3256,7 +3256,7 @@ public Builder setMaxWaitTimeInSeconds(long value) { return this; } /** - * int64 MaxWaitTimeInSeconds = 2; + * int64 max_wait_time_in_seconds = 2; */ public Builder clearMaxWaitTimeInSeconds() { @@ -3322,39 +3322,39 @@ public interface VpcConfigOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ java.util.List getSecurityGroupIdsList(); /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ int getSecurityGroupIdsCount(); /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ java.lang.String getSecurityGroupIds(int index); /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index); /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ java.util.List getSubnetsList(); /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ int getSubnetsCount(); /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ java.lang.String getSubnets(int index); /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ com.google.protobuf.ByteString getSubnetsBytes(int index); @@ -3456,29 +3456,29 @@ private VpcConfig( flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.class, flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder.class); } - public static final int SECURITYGROUPIDS_FIELD_NUMBER = 1; + public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList securityGroupIds_; /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { return securityGroupIds_; } /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ public int getSecurityGroupIdsCount() { return securityGroupIds_.size(); } /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ public java.lang.String getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { @@ -3488,26 +3488,26 @@ public java.lang.String getSecurityGroupIds(int index) { public static final int SUBNETS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList subnets_; /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ public com.google.protobuf.ProtocolStringList getSubnetsList() { return subnets_; } /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ public int getSubnetsCount() { return subnets_.size(); } /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ public java.lang.String getSubnets(int index) { return subnets_.get(index); } /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ public com.google.protobuf.ByteString getSubnetsBytes(int index) { @@ -3590,7 +3590,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getSecurityGroupIdsCount() > 0) { - hash = (37 * hash) + SECURITYGROUPIDS_FIELD_NUMBER; + hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER; hash = (53 * hash) + getSecurityGroupIdsList().hashCode(); } if (getSubnetsCount() > 0) { @@ -3877,33 +3877,33 @@ private void ensureSecurityGroupIdsIsMutable() { } } /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { return securityGroupIds_.getUnmodifiableView(); } /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ public int getSecurityGroupIdsCount() { return securityGroupIds_.size(); } /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ public java.lang.String getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { return securityGroupIds_.getByteString(index); } /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ public Builder setSecurityGroupIds( int index, java.lang.String value) { @@ -3916,7 +3916,7 @@ public Builder setSecurityGroupIds( return this; } /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ public Builder addSecurityGroupIds( java.lang.String value) { @@ -3929,7 +3929,7 @@ public Builder addSecurityGroupIds( return this; } /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ public Builder addAllSecurityGroupIds( java.lang.Iterable values) { @@ -3940,7 +3940,7 @@ public Builder addAllSecurityGroupIds( return this; } /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ public Builder clearSecurityGroupIds() { securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -3949,7 +3949,7 @@ public Builder clearSecurityGroupIds() { return this; } /** - * repeated string SecurityGroupIds = 1; + * repeated string security_group_ids = 1; */ public Builder addSecurityGroupIdsBytes( com.google.protobuf.ByteString value) { @@ -3971,33 +3971,33 @@ private void ensureSubnetsIsMutable() { } } /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ public com.google.protobuf.ProtocolStringList getSubnetsList() { return subnets_.getUnmodifiableView(); } /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ public int getSubnetsCount() { return subnets_.size(); } /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ public java.lang.String getSubnets(int index) { return subnets_.get(index); } /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ public com.google.protobuf.ByteString getSubnetsBytes(int index) { return subnets_.getByteString(index); } /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ public Builder setSubnets( int index, java.lang.String value) { @@ -4010,7 +4010,7 @@ public Builder setSubnets( return this; } /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ public Builder addSubnets( java.lang.String value) { @@ -4023,7 +4023,7 @@ public Builder addSubnets( return this; } /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ public Builder addAllSubnets( java.lang.Iterable values) { @@ -4034,7 +4034,7 @@ public Builder addAllSubnets( return this; } /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ public Builder clearSubnets() { subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -4043,7 +4043,7 @@ public Builder clearSubnets() { return this; } /** - * repeated string Subnets = 2; + * repeated string subnets = 2; */ public Builder addSubnetsBytes( com.google.protobuf.ByteString value) { @@ -4114,79 +4114,79 @@ public interface TrainingJobOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * string Region = 1; + * string region = 1; */ java.lang.String getRegion(); /** - * string Region = 1; + * string region = 1; */ com.google.protobuf.ByteString getRegionBytes(); /** - * string RoleArn = 2; + * string role_arn = 2; */ java.lang.String getRoleArn(); /** - * string RoleArn = 2; + * string role_arn = 2; */ com.google.protobuf.ByteString getRoleArnBytes(); /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ boolean hasAlgorithmSpecification(); /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification(); /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ boolean hasResourceConfig(); /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getResourceConfig(); /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder getResourceConfigOrBuilder(); /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ boolean hasStoppingCondition(); /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getStoppingCondition(); /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder getStoppingConditionOrBuilder(); /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ boolean hasVpcConfig(); /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getVpcConfig(); /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder getVpcConfigOrBuilder(); /** - * bool EnableSpotTraining = 7; + * bool enable_spot_training = 7; */ boolean getEnableSpotTraining(); } @@ -4335,7 +4335,7 @@ private TrainingJob( public static final int REGION_FIELD_NUMBER = 1; private volatile java.lang.Object region_; /** - * string Region = 1; + * string region = 1; */ public java.lang.String getRegion() { java.lang.Object ref = region_; @@ -4350,7 +4350,7 @@ public java.lang.String getRegion() { } } /** - * string Region = 1; + * string region = 1; */ public com.google.protobuf.ByteString getRegionBytes() { @@ -4366,10 +4366,10 @@ public java.lang.String getRegion() { } } - public static final int ROLEARN_FIELD_NUMBER = 2; + public static final int ROLE_ARN_FIELD_NUMBER = 2; private volatile java.lang.Object roleArn_; /** - * string RoleArn = 2; + * string role_arn = 2; */ public java.lang.String getRoleArn() { java.lang.Object ref = roleArn_; @@ -4384,7 +4384,7 @@ public java.lang.String getRoleArn() { } } /** - * string RoleArn = 2; + * string role_arn = 2; */ public com.google.protobuf.ByteString getRoleArnBytes() { @@ -4400,94 +4400,94 @@ public java.lang.String getRoleArn() { } } - public static final int ALGORITHMSPECIFICATION_FIELD_NUMBER = 3; + public static final int ALGORITHM_SPECIFICATION_FIELD_NUMBER = 3; private flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification algorithmSpecification_; /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ public boolean hasAlgorithmSpecification() { return algorithmSpecification_ != null; } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification() { return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { return getAlgorithmSpecification(); } - public static final int RESOURCECONFIG_FIELD_NUMBER = 4; + public static final int RESOURCE_CONFIG_FIELD_NUMBER = 4; private flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig resourceConfig_; /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ public boolean hasResourceConfig() { return resourceConfig_ != null; } /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getResourceConfig() { return resourceConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.getDefaultInstance() : resourceConfig_; } /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder getResourceConfigOrBuilder() { return getResourceConfig(); } - public static final int STOPPINGCONDITION_FIELD_NUMBER = 5; + public static final int STOPPING_CONDITION_FIELD_NUMBER = 5; private flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition stoppingCondition_; /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ public boolean hasStoppingCondition() { return stoppingCondition_ != null; } /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getStoppingCondition() { return stoppingCondition_ == null ? flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance() : stoppingCondition_; } /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ public flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { return getStoppingCondition(); } - public static final int VPCCONFIG_FIELD_NUMBER = 6; + public static final int VPC_CONFIG_FIELD_NUMBER = 6; private flyteidl.plugins.sagemaker.Trainingjob.VpcConfig vpcConfig_; /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ public boolean hasVpcConfig() { return vpcConfig_ != null; } /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getVpcConfig() { return vpcConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.getDefaultInstance() : vpcConfig_; } /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ public flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder getVpcConfigOrBuilder() { return getVpcConfig(); } - public static final int ENABLESPOTTRAINING_FIELD_NUMBER = 7; + public static final int ENABLE_SPOT_TRAINING_FIELD_NUMBER = 7; private boolean enableSpotTraining_; /** - * bool EnableSpotTraining = 7; + * bool enable_spot_training = 7; */ public boolean getEnableSpotTraining() { return enableSpotTraining_; @@ -4617,25 +4617,25 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + ROLEARN_FIELD_NUMBER; + hash = (37 * hash) + ROLE_ARN_FIELD_NUMBER; hash = (53 * hash) + getRoleArn().hashCode(); if (hasAlgorithmSpecification()) { - hash = (37 * hash) + ALGORITHMSPECIFICATION_FIELD_NUMBER; + hash = (37 * hash) + ALGORITHM_SPECIFICATION_FIELD_NUMBER; hash = (53 * hash) + getAlgorithmSpecification().hashCode(); } if (hasResourceConfig()) { - hash = (37 * hash) + RESOURCECONFIG_FIELD_NUMBER; + hash = (37 * hash) + RESOURCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getResourceConfig().hashCode(); } if (hasStoppingCondition()) { - hash = (37 * hash) + STOPPINGCONDITION_FIELD_NUMBER; + hash = (37 * hash) + STOPPING_CONDITION_FIELD_NUMBER; hash = (53 * hash) + getStoppingCondition().hashCode(); } if (hasVpcConfig()) { - hash = (37 * hash) + VPCCONFIG_FIELD_NUMBER; + hash = (37 * hash) + VPC_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getVpcConfig().hashCode(); } - hash = (37 * hash) + ENABLESPOTTRAINING_FIELD_NUMBER; + hash = (37 * hash) + ENABLE_SPOT_TRAINING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnableSpotTraining()); hash = (29 * hash) + unknownFields.hashCode(); @@ -4952,7 +4952,7 @@ public Builder mergeFrom( private java.lang.Object region_ = ""; /** - * string Region = 1; + * string region = 1; */ public java.lang.String getRegion() { java.lang.Object ref = region_; @@ -4967,7 +4967,7 @@ public java.lang.String getRegion() { } } /** - * string Region = 1; + * string region = 1; */ public com.google.protobuf.ByteString getRegionBytes() { @@ -4983,7 +4983,7 @@ public java.lang.String getRegion() { } } /** - * string Region = 1; + * string region = 1; */ public Builder setRegion( java.lang.String value) { @@ -4996,7 +4996,7 @@ public Builder setRegion( return this; } /** - * string Region = 1; + * string region = 1; */ public Builder clearRegion() { @@ -5005,7 +5005,7 @@ public Builder clearRegion() { return this; } /** - * string Region = 1; + * string region = 1; */ public Builder setRegionBytes( com.google.protobuf.ByteString value) { @@ -5021,7 +5021,7 @@ public Builder setRegionBytes( private java.lang.Object roleArn_ = ""; /** - * string RoleArn = 2; + * string role_arn = 2; */ public java.lang.String getRoleArn() { java.lang.Object ref = roleArn_; @@ -5036,7 +5036,7 @@ public java.lang.String getRoleArn() { } } /** - * string RoleArn = 2; + * string role_arn = 2; */ public com.google.protobuf.ByteString getRoleArnBytes() { @@ -5052,7 +5052,7 @@ public java.lang.String getRoleArn() { } } /** - * string RoleArn = 2; + * string role_arn = 2; */ public Builder setRoleArn( java.lang.String value) { @@ -5065,7 +5065,7 @@ public Builder setRoleArn( return this; } /** - * string RoleArn = 2; + * string role_arn = 2; */ public Builder clearRoleArn() { @@ -5074,7 +5074,7 @@ public Builder clearRoleArn() { return this; } /** - * string RoleArn = 2; + * string role_arn = 2; */ public Builder setRoleArnBytes( com.google.protobuf.ByteString value) { @@ -5092,13 +5092,13 @@ public Builder setRoleArnBytes( private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ public boolean hasAlgorithmSpecification() { return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification() { if (algorithmSpecificationBuilder_ == null) { @@ -5108,7 +5108,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorith } } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification value) { if (algorithmSpecificationBuilder_ == null) { @@ -5124,7 +5124,7 @@ public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjob. return this; } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ public Builder setAlgorithmSpecification( flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder builderForValue) { @@ -5138,7 +5138,7 @@ public Builder setAlgorithmSpecification( return this; } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification value) { if (algorithmSpecificationBuilder_ == null) { @@ -5156,7 +5156,7 @@ public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjo return this; } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ public Builder clearAlgorithmSpecification() { if (algorithmSpecificationBuilder_ == null) { @@ -5170,7 +5170,7 @@ public Builder clearAlgorithmSpecification() { return this; } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { @@ -5178,7 +5178,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder get return getAlgorithmSpecificationFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { if (algorithmSpecificationBuilder_ != null) { @@ -5189,7 +5189,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder ge } } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification AlgorithmSpecification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder> @@ -5209,13 +5209,13 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder ge private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder> resourceConfigBuilder_; /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ public boolean hasResourceConfig() { return resourceConfigBuilder_ != null || resourceConfig_ != null; } /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getResourceConfig() { if (resourceConfigBuilder_ == null) { @@ -5225,7 +5225,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getResourceConfig() } } /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ public Builder setResourceConfig(flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig value) { if (resourceConfigBuilder_ == null) { @@ -5241,7 +5241,7 @@ public Builder setResourceConfig(flyteidl.plugins.sagemaker.Trainingjob.Resource return this; } /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ public Builder setResourceConfig( flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder builderForValue) { @@ -5255,7 +5255,7 @@ public Builder setResourceConfig( return this; } /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ public Builder mergeResourceConfig(flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig value) { if (resourceConfigBuilder_ == null) { @@ -5273,7 +5273,7 @@ public Builder mergeResourceConfig(flyteidl.plugins.sagemaker.Trainingjob.Resour return this; } /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ public Builder clearResourceConfig() { if (resourceConfigBuilder_ == null) { @@ -5287,7 +5287,7 @@ public Builder clearResourceConfig() { return this; } /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder getResourceConfigBuilder() { @@ -5295,7 +5295,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder getResource return getResourceConfigFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder getResourceConfigOrBuilder() { if (resourceConfigBuilder_ != null) { @@ -5306,7 +5306,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder getResourc } } /** - * .flyteidl.plugins.sagemaker.ResourceConfig ResourceConfig = 4; + * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder> @@ -5326,13 +5326,13 @@ public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder getResourc private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder> stoppingConditionBuilder_; /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ public boolean hasStoppingCondition() { return stoppingConditionBuilder_ != null || stoppingCondition_ != null; } /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getStoppingCondition() { if (stoppingConditionBuilder_ == null) { @@ -5342,7 +5342,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getStoppingCondi } } /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ public Builder setStoppingCondition(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition value) { if (stoppingConditionBuilder_ == null) { @@ -5358,7 +5358,7 @@ public Builder setStoppingCondition(flyteidl.plugins.sagemaker.Trainingjob.Stopp return this; } /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ public Builder setStoppingCondition( flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder builderForValue) { @@ -5372,7 +5372,7 @@ public Builder setStoppingCondition( return this; } /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ public Builder mergeStoppingCondition(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition value) { if (stoppingConditionBuilder_ == null) { @@ -5390,7 +5390,7 @@ public Builder mergeStoppingCondition(flyteidl.plugins.sagemaker.Trainingjob.Sto return this; } /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ public Builder clearStoppingCondition() { if (stoppingConditionBuilder_ == null) { @@ -5404,7 +5404,7 @@ public Builder clearStoppingCondition() { return this; } /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder getStoppingConditionBuilder() { @@ -5412,7 +5412,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder getStopp return getStoppingConditionFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ public flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { if (stoppingConditionBuilder_ != null) { @@ -5423,7 +5423,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder getStop } } /** - * .flyteidl.plugins.sagemaker.StoppingCondition StoppingCondition = 5; + * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder> @@ -5443,13 +5443,13 @@ public flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder getStop private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Trainingjob.VpcConfig, flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder> vpcConfigBuilder_; /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ public boolean hasVpcConfig() { return vpcConfigBuilder_ != null || vpcConfig_ != null; } /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getVpcConfig() { if (vpcConfigBuilder_ == null) { @@ -5459,7 +5459,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getVpcConfig() { } } /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ public Builder setVpcConfig(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig value) { if (vpcConfigBuilder_ == null) { @@ -5475,7 +5475,7 @@ public Builder setVpcConfig(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig val return this; } /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ public Builder setVpcConfig( flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder builderForValue) { @@ -5489,7 +5489,7 @@ public Builder setVpcConfig( return this; } /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ public Builder mergeVpcConfig(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig value) { if (vpcConfigBuilder_ == null) { @@ -5507,7 +5507,7 @@ public Builder mergeVpcConfig(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig v return this; } /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ public Builder clearVpcConfig() { if (vpcConfigBuilder_ == null) { @@ -5521,7 +5521,7 @@ public Builder clearVpcConfig() { return this; } /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder getVpcConfigBuilder() { @@ -5529,7 +5529,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder getVpcConfigBuil return getVpcConfigFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ public flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder getVpcConfigOrBuilder() { if (vpcConfigBuilder_ != null) { @@ -5540,7 +5540,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder getVpcConfigOrB } } /** - * .flyteidl.plugins.sagemaker.VpcConfig VpcConfig = 6; + * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Trainingjob.VpcConfig, flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder> @@ -5558,13 +5558,13 @@ public flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder getVpcConfigOrB private boolean enableSpotTraining_ ; /** - * bool EnableSpotTraining = 7; + * bool enable_spot_training = 7; */ public boolean getEnableSpotTraining() { return enableSpotTraining_; } /** - * bool EnableSpotTraining = 7; + * bool enable_spot_training = 7; */ public Builder setEnableSpotTraining(boolean value) { @@ -5573,7 +5573,7 @@ public Builder setEnableSpotTraining(boolean value) { return this; } /** - * bool EnableSpotTraining = 7; + * bool enable_spot_training = 7; */ public Builder clearEnableSpotTraining() { @@ -5674,30 +5674,31 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstanceForT static { java.lang.String[] descriptorData = { "\n,flyteidl/plugins/sagemaker/trainingjob" + - ".proto\022\032flyteidl.plugins.sagemaker\"\362\001\n\026A" + - "lgorithmSpecification\022\025\n\rTrainingImage\030\001" + - " \001(\t\022\031\n\021TrainingInputMode\030\002 \001(\t\022\025\n\rAlgor" + - "ithmName\030\003 \001(\t\022^\n\021MetricDefinitions\030\004 \003(" + - "\0132C.flyteidl.plugins.sagemaker.Algorithm" + - "Specification.MetricDefinition\032/\n\020Metric" + - "Definition\022\014\n\004Name\030\001 \001(\t\022\r\n\005Regex\030\002 \001(\t\"" + - "m\n\016ResourceConfig\022\024\n\014InstanceType\030\001 \001(\t\022" + - "\025\n\rInstanceCount\030\002 \001(\003\022\026\n\016VolumeSizeInGB" + - "\030\003 \001(\003\022\026\n\016VolumeKmsKeyId\030\004 \001(\t\"N\n\021Stoppi" + - "ngCondition\022\033\n\023MaxRuntimeInSeconds\030\001 \001(\003" + - "\022\034\n\024MaxWaitTimeInSeconds\030\002 \001(\003\"6\n\tVpcCon" + - "fig\022\030\n\020SecurityGroupIds\030\001 \003(\t\022\017\n\007Subnets" + - "\030\002 \003(\t\"\346\002\n\013TrainingJob\022\016\n\006Region\030\001 \001(\t\022\017" + - "\n\007RoleArn\030\002 \001(\t\022R\n\026AlgorithmSpecificatio" + - "n\030\003 \001(\01322.flyteidl.plugins.sagemaker.Alg" + - "orithmSpecification\022B\n\016ResourceConfig\030\004 " + - "\001(\0132*.flyteidl.plugins.sagemaker.Resourc" + - "eConfig\022H\n\021StoppingCondition\030\005 \001(\0132-.fly" + - "teidl.plugins.sagemaker.StoppingConditio" + - "n\0228\n\tVpcConfig\030\006 \001(\0132%.flyteidl.plugins." + - "sagemaker.VpcConfig\022\032\n\022EnableSpotTrainin" + - "g\030\007 \001(\010B5Z3github.com/lyft/flyteidl/gen/" + - "pb-go/flyteidl/pluginsb\006proto3" + ".proto\022\032flyteidl.plugins.sagemaker\"\367\001\n\026A" + + "lgorithmSpecification\022\026\n\016training_image\030" + + "\001 \001(\t\022\033\n\023training_input_mode\030\002 \001(\t\022\026\n\016al" + + "gorithm_name\030\003 \001(\t\022_\n\022metric_definitions" + + "\030\004 \003(\0132C.flyteidl.plugins.sagemaker.Algo" + + "rithmSpecification.MetricDefinition\032/\n\020M" + + "etricDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002" + + " \001(\t\"u\n\016ResourceConfig\022\025\n\rinstance_type\030" + + "\001 \001(\t\022\026\n\016instance_count\030\002 \001(\003\022\031\n\021volume_" + + "size_in_gb\030\003 \001(\003\022\031\n\021volume_kms_key_id\030\004 " + + "\001(\t\"U\n\021StoppingCondition\022\036\n\026max_runtime_" + + "in_seconds\030\001 \001(\003\022 \n\030max_wait_time_in_sec" + + "onds\030\002 \001(\003\"8\n\tVpcConfig\022\032\n\022security_grou" + + "p_ids\030\001 \003(\t\022\017\n\007subnets\030\002 \003(\t\"\355\002\n\013Trainin" + + "gJob\022\016\n\006region\030\001 \001(\t\022\020\n\010role_arn\030\002 \001(\t\022S" + + "\n\027algorithm_specification\030\003 \001(\01322.flytei" + + "dl.plugins.sagemaker.AlgorithmSpecificat" + + "ion\022C\n\017resource_config\030\004 \001(\0132*.flyteidl." + + "plugins.sagemaker.ResourceConfig\022I\n\022stop" + + "ping_condition\030\005 \001(\0132-.flyteidl.plugins." + + "sagemaker.StoppingCondition\0229\n\nvpc_confi" + + "g\030\006 \001(\0132%.flyteidl.plugins.sagemaker.Vpc" + + "Config\022\034\n\024enable_spot_training\030\007 \001(\010B5Z3" + + "github.com/lyft/flyteidl/gen/pb-go/flyte" + + "idl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -5728,7 +5729,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor, - new java.lang.String[] { "InstanceType", "InstanceCount", "VolumeSizeInGB", "VolumeKmsKeyId", }); + new java.lang.String[] { "InstanceType", "InstanceCount", "VolumeSizeInGb", "VolumeKmsKeyId", }); internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst index 93a256db4..46b59b80d 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst @@ -14,18 +14,18 @@ flyteidl.plugins.sagemaker.HPOJobObjective .. code-block:: json { - "Type": "...", - "MetricName": "..." + "type": "...", + "metric_name": "..." } -.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.Type: +.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.type: -Type +type (:ref:`flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType `) -.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.MetricName: +.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.metric_name: -MetricName +metric_name (`string `_) @@ -59,24 +59,24 @@ flyteidl.plugins.sagemaker.HPOJob .. code-block:: json { - "MaxNumberOfTrainingJobs": "...", - "MaxParallelTrainingJobs": "...", - "TrainingJob": "{...}" + "max_number_of_training_jobs": "...", + "max_parallel_training_jobs": "...", + "training_job": "{...}" } -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.MaxNumberOfTrainingJobs: +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs: -MaxNumberOfTrainingJobs +max_number_of_training_jobs (`int64 `_) -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.MaxParallelTrainingJobs: +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs: -MaxParallelTrainingJobs +max_parallel_training_jobs (`int64 `_) -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.TrainingJob: +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.training_job: -TrainingJob +training_job (:ref:`flyteidl.plugins.sagemaker.TrainingJob `) diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst index 42a889367..0589e75f2 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst @@ -14,24 +14,24 @@ flyteidl.plugins.sagemaker.ContinuousParameterRange .. code-block:: json { - "MaxValue": "...", - "MinValue": "...", - "ScalingType": "..." + "max_value": "...", + "min_value": "...", + "scaling_type": "..." } -.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue: +.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value: -MaxValue +max_value (`double `_) -.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue: +.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value: -MinValue +min_value (`double `_) -.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType: +.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type: -ScalingType +scaling_type (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) @@ -47,24 +47,24 @@ flyteidl.plugins.sagemaker.IntegerParameterRange .. code-block:: json { - "MaxValue": "...", - "MinValue": "...", - "ScalingType": "..." + "max_value": "...", + "min_value": "...", + "scaling_type": "..." } -.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue: +.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.max_value: -MaxValue +max_value (`float `_) -.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue: +.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.min_value: -MinValue +min_value (`float `_) -.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType: +.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type: -ScalingType +scaling_type (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) @@ -80,12 +80,12 @@ flyteidl.plugins.sagemaker.CategoricalParameterRange .. code-block:: json { - "Values": [] + "values": [] } -.. _api_field_flyteidl.plugins.sagemaker.CategoricalParameterRange.Values: +.. _api_field_flyteidl.plugins.sagemaker.CategoricalParameterRange.values: -Values +values (`string `_) @@ -101,34 +101,34 @@ flyteidl.plugins.sagemaker.ParameterRangeOneOf .. code-block:: json { - "ContinuousParameterRange": "{...}", - "IntegerParameterRange": "{...}", - "CategoricalParameterRange": "{...}" + "continuous_parameter_range": "{...}", + "integer_parameter_range": "{...}", + "categorical_parameter_range": "{...}" } -.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.ContinuousParameterRange: +.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range: -ContinuousParameterRange +continuous_parameter_range (:ref:`flyteidl.plugins.sagemaker.ContinuousParameterRange `) - Only one of :ref:`ContinuousParameterRange `, :ref:`IntegerParameterRange `, :ref:`CategoricalParameterRange ` may be set. + Only one of :ref:`continuous_parameter_range `, :ref:`integer_parameter_range `, :ref:`categorical_parameter_range ` may be set. -.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.IntegerParameterRange: +.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range: -IntegerParameterRange +integer_parameter_range (:ref:`flyteidl.plugins.sagemaker.IntegerParameterRange `) - Only one of :ref:`ContinuousParameterRange `, :ref:`IntegerParameterRange `, :ref:`CategoricalParameterRange ` may be set. + Only one of :ref:`continuous_parameter_range `, :ref:`integer_parameter_range `, :ref:`categorical_parameter_range ` may be set. -.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.CategoricalParameterRange: +.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range: -CategoricalParameterRange +categorical_parameter_range (:ref:`flyteidl.plugins.sagemaker.CategoricalParameterRange `) - Only one of :ref:`ContinuousParameterRange `, :ref:`IntegerParameterRange `, :ref:`CategoricalParameterRange ` may be set. + Only one of :ref:`continuous_parameter_range `, :ref:`integer_parameter_range `, :ref:`categorical_parameter_range ` may be set. @@ -143,12 +143,12 @@ flyteidl.plugins.sagemaker.ParameterRanges .. code-block:: json { - "ParameterRangeMap": "{...}" + "parameter_range_map": "{...}" } -.. _api_field_flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMap: +.. _api_field_flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map: -ParameterRangeMap +parameter_range_map (map<`string `_, :ref:`flyteidl.plugins.sagemaker.ParameterRangeOneOf `>) diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst index 7c0fa07f1..ff478bb1a 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst @@ -14,30 +14,30 @@ flyteidl.plugins.sagemaker.AlgorithmSpecification .. code-block:: json { - "TrainingImage": "...", - "TrainingInputMode": "...", - "AlgorithmName": "...", - "MetricDefinitions": [] + "training_image": "...", + "training_input_mode": "...", + "algorithm_name": "...", + "metric_definitions": [] } -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image: -TrainingImage +training_image (`string `_) -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode: -TrainingInputMode +training_input_mode (`string `_) -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name: -AlgorithmName +algorithm_name (`string `_) -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions: -MetricDefinitions +metric_definitions (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition `) .. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition: @@ -51,18 +51,18 @@ flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition .. code-block:: json { - "Name": "...", - "Regex": "..." + "name": "...", + "regex": "..." } -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name: -Name +name (`string `_) -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex: -Regex +regex (`string `_) @@ -79,30 +79,30 @@ flyteidl.plugins.sagemaker.ResourceConfig .. code-block:: json { - "InstanceType": "...", - "InstanceCount": "...", - "VolumeSizeInGB": "...", - "VolumeKmsKeyId": "..." + "instance_type": "...", + "instance_count": "...", + "volume_size_in_gb": "...", + "volume_kms_key_id": "..." } -.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.InstanceType: +.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.instance_type: -InstanceType +instance_type (`string `_) -.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount: +.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.instance_count: -InstanceCount +instance_count (`int64 `_) -.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB: +.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.volume_size_in_gb: -VolumeSizeInGB +volume_size_in_gb (`int64 `_) -.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId: +.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id: -VolumeKmsKeyId +volume_kms_key_id (`string `_) @@ -118,18 +118,18 @@ flyteidl.plugins.sagemaker.StoppingCondition .. code-block:: json { - "MaxRuntimeInSeconds": "...", - "MaxWaitTimeInSeconds": "..." + "max_runtime_in_seconds": "...", + "max_wait_time_in_seconds": "..." } -.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds: +.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds: -MaxRuntimeInSeconds +max_runtime_in_seconds (`int64 `_) -.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds: +.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds: -MaxWaitTimeInSeconds +max_wait_time_in_seconds (`int64 `_) @@ -145,18 +145,18 @@ flyteidl.plugins.sagemaker.VpcConfig .. code-block:: json { - "SecurityGroupIds": [], - "Subnets": [] + "security_group_ids": [], + "subnets": [] } -.. _api_field_flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds: +.. _api_field_flyteidl.plugins.sagemaker.VpcConfig.security_group_ids: -SecurityGroupIds +security_group_ids (`string `_) -.. _api_field_flyteidl.plugins.sagemaker.VpcConfig.Subnets: +.. _api_field_flyteidl.plugins.sagemaker.VpcConfig.subnets: -Subnets +subnets (`string `_) @@ -172,48 +172,48 @@ flyteidl.plugins.sagemaker.TrainingJob .. code-block:: json { - "Region": "...", - "RoleArn": "...", - "AlgorithmSpecification": "{...}", - "ResourceConfig": "{...}", - "StoppingCondition": "{...}", - "VpcConfig": "{...}", - "EnableSpotTraining": "..." + "region": "...", + "role_arn": "...", + "algorithm_specification": "{...}", + "resource_config": "{...}", + "stopping_condition": "{...}", + "vpc_config": "{...}", + "enable_spot_training": "..." } -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.Region: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.region: -Region +region (`string `_) -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.RoleArn: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.role_arn: -RoleArn +role_arn (`string `_) -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.AlgorithmSpecification: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification: -AlgorithmSpecification +algorithm_specification (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification `) -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.ResourceConfig: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.resource_config: -ResourceConfig +resource_config (:ref:`flyteidl.plugins.sagemaker.ResourceConfig `) -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.StoppingCondition: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.stopping_condition: -StoppingCondition +stopping_condition (:ref:`flyteidl.plugins.sagemaker.StoppingCondition `) -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.VpcConfig: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.vpc_config: -VpcConfig +vpc_config (:ref:`flyteidl.plugins.sagemaker.VpcConfig `) -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.EnableSpotTraining: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.enable_spot_training: -EnableSpotTraining +enable_spot_training (`bool `_) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py index 0319db718..6d19e9d8d 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py @@ -22,7 +22,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n\'flyteidl/plugins/sagemaker/hpojob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x30\x66lyteidl/plugins/sagemaker/parameterranges.proto\x1a,flyteidl/plugins/sagemaker/trainingjob.proto\"\xa7\x01\n\x0fHPOJobObjective\x12M\n\x04Type\x18\x01 \x01(\x0e\x32?.flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType\x12\x12\n\nMetricName\x18\x02 \x01(\t\"1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x88\x01\n\x06HPOJob\x12\x1f\n\x17MaxNumberOfTrainingJobs\x18\x01 \x01(\x03\x12\x1f\n\x17MaxParallelTrainingJobs\x18\x02 \x01(\x03\x12<\n\x0bTrainingJob\x18\x03 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJobB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n\'flyteidl/plugins/sagemaker/hpojob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x30\x66lyteidl/plugins/sagemaker/parameterranges.proto\x1a,flyteidl/plugins/sagemaker/trainingjob.proto\"\xa8\x01\n\x0fHPOJobObjective\x12M\n\x04type\x18\x01 \x01(\x0e\x32?.flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12#\n\x1bmax_number_of_training_jobs\x18\x01 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x02 \x01(\x03\x12=\n\x0ctraining_job\x18\x03 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJobB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2.DESCRIPTOR,]) @@ -45,8 +45,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=286, - serialized_end=335, + serialized_start=287, + serialized_end=336, ) _sym_db.RegisterEnumDescriptor(_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE) @@ -59,14 +59,14 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Type', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.Type', index=0, + name='type', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MetricName', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.MetricName', index=1, + name='metric_name', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.metric_name', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -86,7 +86,7 @@ oneofs=[ ], serialized_start=168, - serialized_end=335, + serialized_end=336, ) @@ -98,21 +98,21 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='MaxNumberOfTrainingJobs', full_name='flyteidl.plugins.sagemaker.HPOJob.MaxNumberOfTrainingJobs', index=0, + name='max_number_of_training_jobs', full_name='flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs', index=0, number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MaxParallelTrainingJobs', full_name='flyteidl.plugins.sagemaker.HPOJob.MaxParallelTrainingJobs', index=1, + name='max_parallel_training_jobs', full_name='flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='TrainingJob', full_name='flyteidl.plugins.sagemaker.HPOJob.TrainingJob', index=2, + name='training_job', full_name='flyteidl.plugins.sagemaker.HPOJob.training_job', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -130,13 +130,13 @@ extension_ranges=[], oneofs=[ ], - serialized_start=338, - serialized_end=474, + serialized_start=339, + serialized_end=483, ) -_HPOJOBOBJECTIVE.fields_by_name['Type'].enum_type = _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE +_HPOJOBOBJECTIVE.fields_by_name['type'].enum_type = _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE.containing_type = _HPOJOBOBJECTIVE -_HPOJOB.fields_by_name['TrainingJob'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2._TRAININGJOB +_HPOJOB.fields_by_name['training_job'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2._TRAININGJOB DESCRIPTOR.message_types_by_name['HPOJobObjective'] = _HPOJOBOBJECTIVE DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB _sym_db.RegisterFileDescriptor(DESCRIPTOR) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py index 74605b028..fbb7bc8bf 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py @@ -21,7 +21,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n0flyteidl/plugins/sagemaker/parameterranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x8a\x01\n\x18\x43ontinuousParameterRange\x12\x10\n\x08MaxValue\x18\x01 \x01(\x01\x12\x10\n\x08MinValue\x18\x02 \x01(\x01\x12J\n\x0bScalingType\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x87\x01\n\x15IntegerParameterRange\x12\x10\n\x08MaxValue\x18\x01 \x01(\x02\x12\x10\n\x08MinValue\x18\x02 \x01(\x02\x12J\n\x0bScalingType\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"+\n\x19\x43\x61tegoricalParameterRange\x12\x0e\n\x06Values\x18\x01 \x03(\t\"\xb6\x02\n\x13ParameterRangeOneOf\x12X\n\x18\x43ontinuousParameterRange\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00\x12R\n\x15IntegerParameterRange\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00\x12Z\n\x19\x43\x61tegoricalParameterRange\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00\x42\x15\n\x13ParameterRangeTypes\"\xdb\x01\n\x0fParameterRanges\x12]\n\x11ParameterRangeMap\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry\x1ai\n\x16ParameterRangeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOf:\x02\x38\x01*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n0flyteidl/plugins/sagemaker/parameterranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x8d\x01\n\x18\x43ontinuousParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x01\x12\x11\n\tmin_value\x18\x02 \x01(\x01\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x8a\x01\n\x15IntegerParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x02\x12\x11\n\tmin_value\x18\x02 \x01(\x02\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"+\n\x19\x43\x61tegoricalParameterRange\x12\x0e\n\x06values\x18\x01 \x03(\t\"\xbc\x02\n\x13ParameterRangeOneOf\x12Z\n\x1a\x63ontinuous_parameter_range\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00\x12T\n\x17integer_parameter_range\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00\x12\\\n\x1b\x63\x61tegorical_parameter_range\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00\x42\x15\n\x13ParameterRangeTypes\"\xdd\x01\n\x0fParameterRanges\x12_\n\x13parameter_range_map\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry\x1ai\n\x16ParameterRangeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOf:\x02\x38\x01*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') ) _HYPERPARAMETERSCALINGTYPE = _descriptor.EnumDescriptor( @@ -49,8 +49,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=939, - serialized_end=1029, + serialized_start=953, + serialized_end=1043, ) _sym_db.RegisterEnumDescriptor(_HYPERPARAMETERSCALINGTYPE) @@ -70,21 +70,21 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='MaxValue', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.MaxValue', index=0, + name='max_value', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value', index=0, number=1, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MinValue', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.MinValue', index=1, + name='min_value', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value', index=1, number=2, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ScalingType', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.ScalingType', index=2, + name='scaling_type', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type', index=2, number=3, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -103,7 +103,7 @@ oneofs=[ ], serialized_start=81, - serialized_end=219, + serialized_end=222, ) @@ -115,21 +115,21 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='MaxValue', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.MaxValue', index=0, + name='max_value', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.max_value', index=0, number=1, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MinValue', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.MinValue', index=1, + name='min_value', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.min_value', index=1, number=2, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ScalingType', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.ScalingType', index=2, + name='scaling_type', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type', index=2, number=3, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -147,8 +147,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=222, - serialized_end=357, + serialized_start=225, + serialized_end=363, ) @@ -160,7 +160,7 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Values', full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange.Values', index=0, + name='values', full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange.values', index=0, number=1, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -178,8 +178,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=359, - serialized_end=402, + serialized_start=365, + serialized_end=408, ) @@ -191,21 +191,21 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='ContinuousParameterRange', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.ContinuousParameterRange', index=0, + name='continuous_parameter_range', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='IntegerParameterRange', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.IntegerParameterRange', index=1, + name='integer_parameter_range', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='CategoricalParameterRange', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.CategoricalParameterRange', index=2, + name='categorical_parameter_range', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -226,8 +226,8 @@ name='ParameterRangeTypes', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.ParameterRangeTypes', index=0, containing_type=None, fields=[]), ], - serialized_start=405, - serialized_end=715, + serialized_start=411, + serialized_end=727, ) @@ -264,8 +264,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=832, - serialized_end=937, + serialized_start=846, + serialized_end=951, ) _PARAMETERRANGES = _descriptor.Descriptor( @@ -276,7 +276,7 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='ParameterRangeMap', full_name='flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMap', index=0, + name='parameter_range_map', full_name='flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -294,27 +294,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=718, - serialized_end=937, + serialized_start=730, + serialized_end=951, ) -_CONTINUOUSPARAMETERRANGE.fields_by_name['ScalingType'].enum_type = _HYPERPARAMETERSCALINGTYPE -_INTEGERPARAMETERRANGE.fields_by_name['ScalingType'].enum_type = _HYPERPARAMETERSCALINGTYPE -_PARAMETERRANGEONEOF.fields_by_name['ContinuousParameterRange'].message_type = _CONTINUOUSPARAMETERRANGE -_PARAMETERRANGEONEOF.fields_by_name['IntegerParameterRange'].message_type = _INTEGERPARAMETERRANGE -_PARAMETERRANGEONEOF.fields_by_name['CategoricalParameterRange'].message_type = _CATEGORICALPARAMETERRANGE +_CONTINUOUSPARAMETERRANGE.fields_by_name['scaling_type'].enum_type = _HYPERPARAMETERSCALINGTYPE +_INTEGERPARAMETERRANGE.fields_by_name['scaling_type'].enum_type = _HYPERPARAMETERSCALINGTYPE +_PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range'].message_type = _CONTINUOUSPARAMETERRANGE +_PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range'].message_type = _INTEGERPARAMETERRANGE +_PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range'].message_type = _CATEGORICALPARAMETERRANGE _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'].fields.append( - _PARAMETERRANGEONEOF.fields_by_name['ContinuousParameterRange']) -_PARAMETERRANGEONEOF.fields_by_name['ContinuousParameterRange'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'] + _PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range']) +_PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'] _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'].fields.append( - _PARAMETERRANGEONEOF.fields_by_name['IntegerParameterRange']) -_PARAMETERRANGEONEOF.fields_by_name['IntegerParameterRange'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'] + _PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range']) +_PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'] _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'].fields.append( - _PARAMETERRANGEONEOF.fields_by_name['CategoricalParameterRange']) -_PARAMETERRANGEONEOF.fields_by_name['CategoricalParameterRange'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'] + _PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range']) +_PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'] _PARAMETERRANGES_PARAMETERRANGEMAPENTRY.fields_by_name['value'].message_type = _PARAMETERRANGEONEOF _PARAMETERRANGES_PARAMETERRANGEMAPENTRY.containing_type = _PARAMETERRANGES -_PARAMETERRANGES.fields_by_name['ParameterRangeMap'].message_type = _PARAMETERRANGES_PARAMETERRANGEMAPENTRY +_PARAMETERRANGES.fields_by_name['parameter_range_map'].message_type = _PARAMETERRANGES_PARAMETERRANGEMAPENTRY DESCRIPTOR.message_types_by_name['ContinuousParameterRange'] = _CONTINUOUSPARAMETERRANGE DESCRIPTOR.message_types_by_name['IntegerParameterRange'] = _INTEGERPARAMETERRANGE DESCRIPTOR.message_types_by_name['CategoricalParameterRange'] = _CATEGORICALPARAMETERRANGE diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py index dac613599..92d23e7f4 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py @@ -20,7 +20,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n,flyteidl/plugins/sagemaker/trainingjob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xf2\x01\n\x16\x41lgorithmSpecification\x12\x15\n\rTrainingImage\x18\x01 \x01(\t\x12\x19\n\x11TrainingInputMode\x18\x02 \x01(\t\x12\x15\n\rAlgorithmName\x18\x03 \x01(\t\x12^\n\x11MetricDefinitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04Name\x18\x01 \x01(\t\x12\r\n\x05Regex\x18\x02 \x01(\t\"m\n\x0eResourceConfig\x12\x14\n\x0cInstanceType\x18\x01 \x01(\t\x12\x15\n\rInstanceCount\x18\x02 \x01(\x03\x12\x16\n\x0eVolumeSizeInGB\x18\x03 \x01(\x03\x12\x16\n\x0eVolumeKmsKeyId\x18\x04 \x01(\t\"N\n\x11StoppingCondition\x12\x1b\n\x13MaxRuntimeInSeconds\x18\x01 \x01(\x03\x12\x1c\n\x14MaxWaitTimeInSeconds\x18\x02 \x01(\x03\"6\n\tVpcConfig\x12\x18\n\x10SecurityGroupIds\x18\x01 \x03(\t\x12\x0f\n\x07Subnets\x18\x02 \x03(\t\"\xe6\x02\n\x0bTrainingJob\x12\x0e\n\x06Region\x18\x01 \x01(\t\x12\x0f\n\x07RoleArn\x18\x02 \x01(\t\x12R\n\x16\x41lgorithmSpecification\x18\x03 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12\x42\n\x0eResourceConfig\x18\x04 \x01(\x0b\x32*.flyteidl.plugins.sagemaker.ResourceConfig\x12H\n\x11StoppingCondition\x18\x05 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.StoppingCondition\x12\x38\n\tVpcConfig\x18\x06 \x01(\x0b\x32%.flyteidl.plugins.sagemaker.VpcConfig\x12\x1a\n\x12\x45nableSpotTraining\x18\x07 \x01(\x08\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n,flyteidl/plugins/sagemaker/trainingjob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xf7\x01\n\x16\x41lgorithmSpecification\x12\x16\n\x0etraining_image\x18\x01 \x01(\t\x12\x1b\n\x13training_input_mode\x18\x02 \x01(\t\x12\x16\n\x0e\x61lgorithm_name\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"u\n\x0eResourceConfig\x12\x15\n\rinstance_type\x18\x01 \x01(\t\x12\x16\n\x0einstance_count\x18\x02 \x01(\x03\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\x12\x19\n\x11volume_kms_key_id\x18\x04 \x01(\t\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"8\n\tVpcConfig\x12\x1a\n\x12security_group_ids\x18\x01 \x03(\t\x12\x0f\n\x07subnets\x18\x02 \x03(\t\"\xed\x02\n\x0bTrainingJob\x12\x0e\n\x06region\x18\x01 \x01(\t\x12\x10\n\x08role_arn\x18\x02 \x01(\t\x12S\n\x17\x61lgorithm_specification\x18\x03 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12\x43\n\x0fresource_config\x18\x04 \x01(\x0b\x32*.flyteidl.plugins.sagemaker.ResourceConfig\x12I\n\x12stopping_condition\x18\x05 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.StoppingCondition\x12\x39\n\nvpc_config\x18\x06 \x01(\x0b\x32%.flyteidl.plugins.sagemaker.VpcConfig\x12\x1c\n\x14\x65nable_spot_training\x18\x07 \x01(\x08\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') ) @@ -34,14 +34,14 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Name', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Name', index=0, + name='name', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='Regex', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.Regex', index=1, + name='regex', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -59,8 +59,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=272, - serialized_end=319, + serialized_start=277, + serialized_end=324, ) _ALGORITHMSPECIFICATION = _descriptor.Descriptor( @@ -71,28 +71,28 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='TrainingImage', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingImage', index=0, + name='training_image', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='TrainingInputMode', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.TrainingInputMode', index=1, + name='training_input_mode', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='AlgorithmName', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.AlgorithmName', index=2, + name='algorithm_name', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MetricDefinitions', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinitions', index=3, + name='metric_definitions', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -111,7 +111,7 @@ oneofs=[ ], serialized_start=77, - serialized_end=319, + serialized_end=324, ) @@ -123,28 +123,28 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='InstanceType', full_name='flyteidl.plugins.sagemaker.ResourceConfig.InstanceType', index=0, + name='instance_type', full_name='flyteidl.plugins.sagemaker.ResourceConfig.instance_type', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='InstanceCount', full_name='flyteidl.plugins.sagemaker.ResourceConfig.InstanceCount', index=1, + name='instance_count', full_name='flyteidl.plugins.sagemaker.ResourceConfig.instance_count', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='VolumeSizeInGB', full_name='flyteidl.plugins.sagemaker.ResourceConfig.VolumeSizeInGB', index=2, + name='volume_size_in_gb', full_name='flyteidl.plugins.sagemaker.ResourceConfig.volume_size_in_gb', index=2, number=3, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='VolumeKmsKeyId', full_name='flyteidl.plugins.sagemaker.ResourceConfig.VolumeKmsKeyId', index=3, + name='volume_kms_key_id', full_name='flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -162,8 +162,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=321, - serialized_end=430, + serialized_start=326, + serialized_end=443, ) @@ -175,14 +175,14 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='MaxRuntimeInSeconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.MaxRuntimeInSeconds', index=0, + name='max_runtime_in_seconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds', index=0, number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='MaxWaitTimeInSeconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.MaxWaitTimeInSeconds', index=1, + name='max_wait_time_in_seconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -200,8 +200,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=432, - serialized_end=510, + serialized_start=445, + serialized_end=530, ) @@ -213,14 +213,14 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='SecurityGroupIds', full_name='flyteidl.plugins.sagemaker.VpcConfig.SecurityGroupIds', index=0, + name='security_group_ids', full_name='flyteidl.plugins.sagemaker.VpcConfig.security_group_ids', index=0, number=1, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='Subnets', full_name='flyteidl.plugins.sagemaker.VpcConfig.Subnets', index=1, + name='subnets', full_name='flyteidl.plugins.sagemaker.VpcConfig.subnets', index=1, number=2, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -238,8 +238,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=512, - serialized_end=566, + serialized_start=532, + serialized_end=588, ) @@ -251,49 +251,49 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='Region', full_name='flyteidl.plugins.sagemaker.TrainingJob.Region', index=0, + name='region', full_name='flyteidl.plugins.sagemaker.TrainingJob.region', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='RoleArn', full_name='flyteidl.plugins.sagemaker.TrainingJob.RoleArn', index=1, + name='role_arn', full_name='flyteidl.plugins.sagemaker.TrainingJob.role_arn', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='AlgorithmSpecification', full_name='flyteidl.plugins.sagemaker.TrainingJob.AlgorithmSpecification', index=2, + name='algorithm_specification', full_name='flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ResourceConfig', full_name='flyteidl.plugins.sagemaker.TrainingJob.ResourceConfig', index=3, + name='resource_config', full_name='flyteidl.plugins.sagemaker.TrainingJob.resource_config', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='StoppingCondition', full_name='flyteidl.plugins.sagemaker.TrainingJob.StoppingCondition', index=4, + name='stopping_condition', full_name='flyteidl.plugins.sagemaker.TrainingJob.stopping_condition', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='VpcConfig', full_name='flyteidl.plugins.sagemaker.TrainingJob.VpcConfig', index=5, + name='vpc_config', full_name='flyteidl.plugins.sagemaker.TrainingJob.vpc_config', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='EnableSpotTraining', full_name='flyteidl.plugins.sagemaker.TrainingJob.EnableSpotTraining', index=6, + name='enable_spot_training', full_name='flyteidl.plugins.sagemaker.TrainingJob.enable_spot_training', index=6, number=7, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, @@ -311,16 +311,16 @@ extension_ranges=[], oneofs=[ ], - serialized_start=569, - serialized_end=927, + serialized_start=591, + serialized_end=956, ) _ALGORITHMSPECIFICATION_METRICDEFINITION.containing_type = _ALGORITHMSPECIFICATION -_ALGORITHMSPECIFICATION.fields_by_name['MetricDefinitions'].message_type = _ALGORITHMSPECIFICATION_METRICDEFINITION -_TRAININGJOB.fields_by_name['AlgorithmSpecification'].message_type = _ALGORITHMSPECIFICATION -_TRAININGJOB.fields_by_name['ResourceConfig'].message_type = _RESOURCECONFIG -_TRAININGJOB.fields_by_name['StoppingCondition'].message_type = _STOPPINGCONDITION -_TRAININGJOB.fields_by_name['VpcConfig'].message_type = _VPCCONFIG +_ALGORITHMSPECIFICATION.fields_by_name['metric_definitions'].message_type = _ALGORITHMSPECIFICATION_METRICDEFINITION +_TRAININGJOB.fields_by_name['algorithm_specification'].message_type = _ALGORITHMSPECIFICATION +_TRAININGJOB.fields_by_name['resource_config'].message_type = _RESOURCECONFIG +_TRAININGJOB.fields_by_name['stopping_condition'].message_type = _STOPPINGCONDITION +_TRAININGJOB.fields_by_name['vpc_config'].message_type = _VPCCONFIG DESCRIPTOR.message_types_by_name['AlgorithmSpecification'] = _ALGORITHMSPECIFICATION DESCRIPTOR.message_types_by_name['ResourceConfig'] = _RESOURCECONFIG DESCRIPTOR.message_types_by_name['StoppingCondition'] = _STOPPINGCONDITION diff --git a/package.json b/package.json index e6e8f249f..aa7d7438d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.17.33b0", + "version": "0.17.33b1", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/setup.py b/setup.py index a8fe83b64..a9919fe8c 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.17.33b0' +__version__ = '0.17.33b1' setup( name='flyteidl', From cae7b97b1c7f53d8f5bb2c82655889e691212328 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Wed, 3 Jun 2020 10:58:55 -0700 Subject: [PATCH 10/64] rename a variable to avoid variable shadowing --- .../flyteidl/plugins/sagemaker/hpojob.pb.cc | 64 +++++------ .../flyteidl/plugins/sagemaker/hpojob.pb.h | 30 ++--- .../flyteidl/plugins/sagemaker/hpojob.pb.go | 52 ++++----- .../plugins/sagemaker/hpojob.pb.validate.go | 2 +- .../flyteidl/plugins/sagemaker/Hpojob.java | 104 +++++++++--------- .../plugins/sagemaker/hpojob.proto.rst | 6 +- .../flyteidl/plugins/sagemaker/hpojob_pb2.py | 16 +-- package.json | 2 +- .../flyteidl/plugins/sagemaker/hpojob.proto | 2 +- setup.py | 2 +- 10 files changed, 140 insertions(+), 140 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc index eb1ea18a1..99671a688 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc @@ -75,7 +75,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhp ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, objective_type_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, metric_name_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, _internal_metadata_), @@ -107,21 +107,21 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2ep "o\022\032flyteidl.plugins.sagemaker\0320flyteidl/" "plugins/sagemaker/parameterranges.proto\032" ",flyteidl/plugins/sagemaker/trainingjob." - "proto\"\250\001\n\017HPOJobObjective\022M\n\004type\030\001 \001(\0162" - "\?.flyteidl.plugins.sagemaker.HPOJobObjec" - "tive.HPOJobObjectiveType\022\023\n\013metric_name\030" - "\002 \001(\t\"1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE" - "\020\000\022\014\n\010MAXIMIZE\020\001\"\220\001\n\006HPOJob\022#\n\033max_numbe" - "r_of_training_jobs\030\001 \001(\003\022\"\n\032max_parallel" - "_training_jobs\030\002 \001(\003\022=\n\014training_job\030\003 \001" - "(\0132\'.flyteidl.plugins.sagemaker.Training" - "JobB5Z3github.com/lyft/flyteidl/gen/pb-g" - "o/flyteidl/pluginsb\006proto3" + "proto\"\262\001\n\017HPOJobObjective\022W\n\016objective_t" + "ype\030\001 \001(\0162\?.flyteidl.plugins.sagemaker.H" + "POJobObjective.HPOJobObjectiveType\022\023\n\013me" + "tric_name\030\002 \001(\t\"1\n\023HPOJobObjectiveType\022\014" + "\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\220\001\n\006HPOJob\022#\n" + "\033max_number_of_training_jobs\030\001 \001(\003\022\"\n\032ma" + "x_parallel_training_jobs\030\002 \001(\003\022=\n\014traini" + "ng_job\030\003 \001(\0132\'.flyteidl.plugins.sagemake" + "r.TrainingJobB5Z3github.com/lyft/flyteid" + "l/gen/pb-go/flyteidl/pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, - "flyteidl/plugins/sagemaker/hpojob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 546, + "flyteidl/plugins/sagemaker/hpojob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 556, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { @@ -169,7 +169,7 @@ class HPOJobObjective::HasBitSetters { }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJobObjective::kTypeFieldNumber; +const int HPOJobObjective::kObjectiveTypeFieldNumber; const int HPOJobObjective::kMetricNameFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 @@ -186,7 +186,7 @@ HPOJobObjective::HPOJobObjective(const HPOJobObjective& from) if (from.metric_name().size() > 0) { metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); } - type_ = from.type_; + objective_type_ = from.objective_type_; // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJobObjective) } @@ -194,7 +194,7 @@ void HPOJobObjective::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; + objective_type_ = 0; } HPOJobObjective::~HPOJobObjective() { @@ -222,7 +222,7 @@ void HPOJobObjective::Clear() { (void) cached_has_bits; metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; + objective_type_ = 0; _internal_metadata_.Clear(); } @@ -239,11 +239,11 @@ const char* HPOJobObjective::_InternalParse(const char* begin, const char* end, ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_type(static_cast<::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType>(val)); + msg->set_objective_type(static_cast<::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -297,14 +297,14 @@ bool HPOJobObjective::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - set_type(static_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType >(value)); + set_objective_type(static_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType >(value)); } else { goto handle_unusual; } @@ -353,10 +353,10 @@ void HPOJobObjective::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; - if (this->type() != 0) { + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; + if (this->objective_type() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->type(), output); + 1, this->objective_type(), output); } // string metric_name = 2; @@ -382,10 +382,10 @@ ::google::protobuf::uint8* HPOJobObjective::InternalSerializeWithCachedSizesToAr ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; - if (this->type() != 0) { + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; + if (this->objective_type() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->type(), target); + 1, this->objective_type(), target); } // string metric_name = 2; @@ -427,10 +427,10 @@ size_t HPOJobObjective::ByteSizeLong() const { this->metric_name()); } - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; - if (this->type() != 0) { + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; + if (this->objective_type() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->objective_type()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -464,8 +464,8 @@ void HPOJobObjective::MergeFrom(const HPOJobObjective& from) { metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); } - if (from.type() != 0) { - set_type(from.type()); + if (from.objective_type() != 0) { + set_objective_type(from.objective_type()); } } @@ -496,7 +496,7 @@ void HPOJobObjective::InternalSwap(HPOJobObjective* other) { _internal_metadata_.Swap(&other->_internal_metadata_); metric_name_.Swap(&other->metric_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - swap(type_, other->type_); + swap(objective_type_, other->objective_type_); } ::google::protobuf::Metadata HPOJobObjective::GetMetadata() const { diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h index e7a434552..2e5abdb3f 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h @@ -231,11 +231,11 @@ class HPOJobObjective final : ::std::string* release_metric_name(); void set_allocated_metric_name(::std::string* metric_name); - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; - void clear_type(); - static const int kTypeFieldNumber = 1; - ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType type() const; - void set_type(::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType value); + // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; + void clear_objective_type(); + static const int kObjectiveTypeFieldNumber = 1; + ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType objective_type() const; + void set_objective_type(::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType value); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobObjective) private: @@ -243,7 +243,7 @@ class HPOJobObjective final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr metric_name_; - int type_; + int objective_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; }; @@ -387,18 +387,18 @@ class HPOJob final : #endif // __GNUC__ // HPOJobObjective -// .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; -inline void HPOJobObjective::clear_type() { - type_ = 0; +// .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; +inline void HPOJobObjective::clear_objective_type() { + objective_type_ = 0; } -inline ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType HPOJobObjective::type() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.type) - return static_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType >(type_); +inline ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType HPOJobObjective::objective_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.objective_type) + return static_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType >(objective_type_); } -inline void HPOJobObjective::set_type(::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType value) { +inline void HPOJobObjective::set_objective_type(::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType value) { - type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.type) + objective_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.objective_type) } // string metric_name = 2; diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go index f9b017bfa..202066fb7 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go @@ -46,7 +46,7 @@ func (HPOJobObjective_HPOJobObjectiveType) EnumDescriptor() ([]byte, []int) { } type HPOJobObjective struct { - Type HPOJobObjective_HPOJobObjectiveType `protobuf:"varint,1,opt,name=type,proto3,enum=flyteidl.plugins.sagemaker.HPOJobObjective_HPOJobObjectiveType" json:"type,omitempty"` + ObjectiveType HPOJobObjective_HPOJobObjectiveType `protobuf:"varint,1,opt,name=objective_type,json=objectiveType,proto3,enum=flyteidl.plugins.sagemaker.HPOJobObjective_HPOJobObjectiveType" json:"objective_type,omitempty"` MetricName string `protobuf:"bytes,2,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -78,9 +78,9 @@ func (m *HPOJobObjective) XXX_DiscardUnknown() { var xxx_messageInfo_HPOJobObjective proto.InternalMessageInfo -func (m *HPOJobObjective) GetType() HPOJobObjective_HPOJobObjectiveType { +func (m *HPOJobObjective) GetObjectiveType() HPOJobObjective_HPOJobObjectiveType { if m != nil { - return m.Type + return m.ObjectiveType } return HPOJobObjective_MINIMIZE } @@ -158,27 +158,27 @@ func init() { } var fileDescriptor_823bfe2a857513d9 = []byte{ - // 346 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xcd, 0x4e, 0xea, 0x40, - 0x14, 0xc7, 0x6f, 0xe1, 0x86, 0xdc, 0x3b, 0x90, 0x7b, 0x4d, 0x5d, 0x48, 0xea, 0x42, 0xc2, 0x06, - 0x16, 0xda, 0x2a, 0xc4, 0x95, 0x26, 0x46, 0x13, 0x13, 0x21, 0xe1, 0x23, 0x95, 0x85, 0x61, 0xd3, - 0xcc, 0xe0, 0x69, 0x19, 0x9c, 0xaf, 0x4c, 0x07, 0x43, 0x5f, 0xcd, 0x97, 0xf0, 0x95, 0x0c, 0x2d, - 0x54, 0x6c, 0x94, 0xe5, 0x7f, 0xe6, 0xf7, 0x3b, 0x33, 0xe7, 0x1c, 0xd4, 0x0a, 0x59, 0x62, 0x80, - 0x3e, 0x33, 0x4f, 0xb1, 0x65, 0x44, 0x45, 0xec, 0xc5, 0x38, 0x02, 0x8e, 0x5f, 0x40, 0x7b, 0x73, - 0x25, 0x17, 0x92, 0xb8, 0x4a, 0x4b, 0x23, 0x6d, 0x67, 0x0b, 0xba, 0x1b, 0xd0, 0xcd, 0x41, 0xe7, - 0x7c, 0x4f, 0x11, 0x85, 0x35, 0xe6, 0x60, 0x40, 0x6b, 0x2c, 0x22, 0x88, 0xb3, 0x6a, 0xce, 0xe9, - 0x1e, 0xc3, 0x68, 0x4c, 0x05, 0x15, 0x51, 0xfe, 0x76, 0xf3, 0xcd, 0x42, 0xff, 0x1f, 0xc6, 0xa3, - 0xbe, 0x24, 0x23, 0xb2, 0x80, 0x99, 0xa1, 0xaf, 0x60, 0x3f, 0xa2, 0xdf, 0x26, 0x51, 0x50, 0xb7, - 0x1a, 0x56, 0xfb, 0x5f, 0xe7, 0xc6, 0xfd, 0xf9, 0x7b, 0x6e, 0x41, 0x2d, 0xe6, 0x49, 0xa2, 0xc0, - 0x4f, 0x8b, 0xd9, 0x27, 0xa8, 0xca, 0xc1, 0x68, 0x3a, 0x0b, 0x04, 0xe6, 0x50, 0x2f, 0x35, 0xac, - 0xf6, 0x5f, 0x1f, 0x65, 0x47, 0x43, 0xcc, 0xa1, 0x79, 0x81, 0x0e, 0xbf, 0xb1, 0xed, 0x1a, 0xfa, - 0x33, 0xe8, 0x0d, 0x7b, 0x83, 0xde, 0xf4, 0xfe, 0xe0, 0x57, 0x9a, 0x6e, 0x9f, 0xb2, 0x64, 0x35, - 0xdf, 0x2d, 0x54, 0xc9, 0x1c, 0xfb, 0x1a, 0x1d, 0x73, 0xbc, 0x0a, 0xc4, 0x92, 0x13, 0xd0, 0x81, - 0x0c, 0x83, 0x6d, 0xab, 0xc1, 0x42, 0x92, 0x38, 0x6d, 0xa5, 0xec, 0x1f, 0x71, 0xbc, 0x1a, 0xa6, - 0xc4, 0x28, 0x9c, 0x6c, 0xee, 0xfb, 0x92, 0xc4, 0xf6, 0x15, 0x72, 0xd6, 0xf6, 0x7a, 0xa0, 0x8c, - 0x01, 0x2b, 0xc8, 0xa5, 0x5c, 0x1e, 0x6f, 0x80, 0x2f, 0x72, 0x1f, 0xd5, 0x76, 0xf9, 0x7a, 0xb9, - 0x61, 0xb5, 0xab, 0x9d, 0xd6, 0xbe, 0xb1, 0xed, 0xf8, 0x7e, 0xd5, 0x7c, 0x86, 0xbb, 0xcb, 0x69, - 0x37, 0xa2, 0x66, 0xbe, 0x24, 0xee, 0x4c, 0x72, 0x8f, 0x25, 0xa1, 0xf1, 0xf2, 0x75, 0x46, 0x20, - 0x3c, 0x45, 0xce, 0x22, 0xe9, 0x15, 0x37, 0x4c, 0x2a, 0xe9, 0x32, 0xbb, 0x1f, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x19, 0x8c, 0x83, 0x33, 0x73, 0x02, 0x00, 0x00, + // 349 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x4f, 0x4f, 0xea, 0x40, + 0x14, 0xc5, 0x5f, 0x21, 0x21, 0xef, 0x0d, 0x3c, 0xde, 0x4b, 0x5d, 0x48, 0xea, 0x42, 0xc2, 0x06, + 0x16, 0xda, 0x2a, 0xc4, 0x95, 0x26, 0x46, 0x13, 0x13, 0x21, 0xe1, 0x4f, 0x1a, 0x16, 0x86, 0x4d, + 0x33, 0x83, 0xb7, 0x65, 0x70, 0xfe, 0x65, 0x3a, 0x18, 0xfa, 0x21, 0x8d, 0x5f, 0xc9, 0xd0, 0x42, + 0xc5, 0x46, 0x59, 0x9e, 0x99, 0xf3, 0x3b, 0x33, 0xf7, 0x1e, 0xd4, 0x0e, 0x59, 0x62, 0x80, 0x3e, + 0x33, 0x4f, 0xb1, 0x55, 0x44, 0x45, 0xec, 0xc5, 0x38, 0x02, 0x8e, 0x5f, 0x40, 0x7b, 0x0b, 0x25, + 0x97, 0x92, 0xb8, 0x4a, 0x4b, 0x23, 0x6d, 0x67, 0x67, 0x74, 0xb7, 0x46, 0x37, 0x37, 0x3a, 0x17, + 0x07, 0x42, 0x14, 0xd6, 0x98, 0x83, 0x01, 0xad, 0xb1, 0x88, 0x20, 0xce, 0xd2, 0x9c, 0xb3, 0x03, + 0x84, 0xd1, 0x98, 0x0a, 0x2a, 0xa2, 0xfc, 0xed, 0xd6, 0x9b, 0x85, 0xfe, 0x3d, 0x4e, 0xc6, 0x03, + 0x49, 0xc6, 0x64, 0x09, 0x73, 0x43, 0x5f, 0xc1, 0x0e, 0x51, 0x5d, 0xee, 0x44, 0x60, 0x12, 0x05, + 0x0d, 0xab, 0x69, 0x75, 0xea, 0xdd, 0x5b, 0xf7, 0xe7, 0x8f, 0xba, 0x85, 0x90, 0xa2, 0x9e, 0x26, + 0x0a, 0xfc, 0xbf, 0x72, 0x5f, 0xda, 0xa7, 0xa8, 0xca, 0xc1, 0x68, 0x3a, 0x0f, 0x04, 0xe6, 0xd0, + 0x28, 0x35, 0xad, 0xce, 0x1f, 0x1f, 0x65, 0x47, 0x23, 0xcc, 0xa1, 0x75, 0x89, 0x8e, 0xbe, 0x89, + 0xb1, 0x6b, 0xe8, 0xf7, 0xb0, 0x3f, 0xea, 0x0f, 0xfb, 0xb3, 0x87, 0xff, 0xbf, 0x52, 0x75, 0xf7, + 0x94, 0x29, 0xab, 0xf5, 0x6e, 0xa1, 0x4a, 0xc6, 0xd8, 0x37, 0xe8, 0x84, 0xe3, 0x75, 0x20, 0x56, + 0x9c, 0x80, 0x0e, 0x64, 0x18, 0xec, 0xa6, 0x0f, 0x96, 0x92, 0xc4, 0xe9, 0x4c, 0x65, 0xff, 0x98, + 0xe3, 0xf5, 0x28, 0x75, 0x8c, 0xc3, 0xe9, 0xf6, 0x7e, 0x20, 0x49, 0x6c, 0x5f, 0x23, 0x67, 0x43, + 0x6f, 0x76, 0xcc, 0x18, 0xb0, 0x02, 0x5c, 0xca, 0xe1, 0xc9, 0xd6, 0xf0, 0x05, 0x1e, 0xa0, 0xda, + 0xbe, 0xbf, 0x51, 0x6e, 0x5a, 0x9d, 0x6a, 0xb7, 0x7d, 0x68, 0x7f, 0x7b, 0xbc, 0x5f, 0x35, 0x9f, + 0xe2, 0xfe, 0x6a, 0xd6, 0x8b, 0xa8, 0x59, 0xac, 0x88, 0x3b, 0x97, 0xdc, 0x63, 0x49, 0x68, 0xbc, + 0xbc, 0xe1, 0x08, 0x84, 0xa7, 0xc8, 0x79, 0x24, 0xbd, 0x62, 0xe9, 0xa4, 0x92, 0xf6, 0xdb, 0xfb, + 0x08, 0x00, 0x00, 0xff, 0xff, 0xab, 0xe2, 0xa2, 0xcb, 0x86, 0x02, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go index dcc9208e4..99465f6b2 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go @@ -44,7 +44,7 @@ func (m *HPOJobObjective) Validate() error { return nil } - // no validation rules for Type + // no validation rules for ObjectiveType // no validation rules for MetricName diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java index 80a64a4e7..6d0f350b3 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -19,13 +19,13 @@ public interface HPOJobObjectiveOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; */ - int getTypeValue(); + int getObjectiveTypeValue(); /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; */ - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getType(); + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getObjectiveType(); /** * string metric_name = 2; @@ -50,7 +50,7 @@ private HPOJobObjective(com.google.protobuf.GeneratedMessageV3.Builder builde super(builder); } private HPOJobObjective() { - type_ = 0; + objectiveType_ = 0; metricName_ = ""; } @@ -81,7 +81,7 @@ private HPOJobObjective( case 8: { int rawValue = input.readEnum(); - type_ = rawValue; + objectiveType_ = rawValue; break; } case 18: { @@ -220,20 +220,20 @@ private HPOJobObjectiveType(int value) { // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType) } - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; + public static final int OBJECTIVE_TYPE_FIELD_NUMBER = 1; + private int objectiveType_; /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; */ - public int getTypeValue() { - return type_; + public int getObjectiveTypeValue() { + return objectiveType_; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; */ - public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getType() { + public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getObjectiveType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType result = flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.valueOf(type_); + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType result = flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.valueOf(objectiveType_); return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.UNRECOGNIZED : result; } @@ -285,8 +285,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.MINIMIZE.getNumber()) { - output.writeEnum(1, type_); + if (objectiveType_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.MINIMIZE.getNumber()) { + output.writeEnum(1, objectiveType_); } if (!getMetricNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricName_); @@ -300,9 +300,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.MINIMIZE.getNumber()) { + if (objectiveType_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.MINIMIZE.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + .computeEnumSize(1, objectiveType_); } if (!getMetricNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricName_); @@ -322,7 +322,7 @@ public boolean equals(final java.lang.Object obj) { } flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective other = (flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective) obj; - if (type_ != other.type_) return false; + if (objectiveType_ != other.objectiveType_) return false; if (!getMetricName() .equals(other.getMetricName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -336,8 +336,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; + hash = (37 * hash) + OBJECTIVE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + objectiveType_; hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; hash = (53 * hash) + getMetricName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -473,7 +473,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - type_ = 0; + objectiveType_ = 0; metricName_ = ""; @@ -503,7 +503,7 @@ public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective build() { @java.lang.Override public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective buildPartial() { flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective result = new flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective(this); - result.type_ = type_; + result.objectiveType_ = objectiveType_; result.metricName_ = metricName_; onBuilt(); return result; @@ -553,8 +553,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective other) { if (other == flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); + if (other.objectiveType_ != 0) { + setObjectiveTypeValue(other.getObjectiveTypeValue()); } if (!other.getMetricName().isEmpty()) { metricName_ = other.metricName_; @@ -589,47 +589,47 @@ public Builder mergeFrom( return this; } - private int type_ = 0; + private int objectiveType_ = 0; /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; */ - public int getTypeValue() { - return type_; + public int getObjectiveTypeValue() { + return objectiveType_; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; */ - public Builder setTypeValue(int value) { - type_ = value; + public Builder setObjectiveTypeValue(int value) { + objectiveType_ = value; onChanged(); return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; */ - public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getType() { + public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getObjectiveType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType result = flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.valueOf(type_); + flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType result = flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.valueOf(objectiveType_); return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.UNRECOGNIZED : result; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; */ - public Builder setType(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType value) { + public Builder setObjectiveType(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType value) { if (value == null) { throw new NullPointerException(); } - type_ = value.getNumber(); + objectiveType_ = value.getNumber(); onChanged(); return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType type = 1; + * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; */ - public Builder clearType() { + public Builder clearObjectiveType() { - type_ = 0; + objectiveType_ = 0; onChanged(); return this; } @@ -1570,16 +1570,16 @@ public flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstanceForType() { "o\022\032flyteidl.plugins.sagemaker\0320flyteidl/" + "plugins/sagemaker/parameterranges.proto\032" + ",flyteidl/plugins/sagemaker/trainingjob." + - "proto\"\250\001\n\017HPOJobObjective\022M\n\004type\030\001 \001(\0162" + - "?.flyteidl.plugins.sagemaker.HPOJobObjec" + - "tive.HPOJobObjectiveType\022\023\n\013metric_name\030" + - "\002 \001(\t\"1\n\023HPOJobObjectiveType\022\014\n\010MINIMIZE" + - "\020\000\022\014\n\010MAXIMIZE\020\001\"\220\001\n\006HPOJob\022#\n\033max_numbe" + - "r_of_training_jobs\030\001 \001(\003\022\"\n\032max_parallel" + - "_training_jobs\030\002 \001(\003\022=\n\014training_job\030\003 \001" + - "(\0132\'.flyteidl.plugins.sagemaker.Training" + - "JobB5Z3github.com/lyft/flyteidl/gen/pb-g" + - "o/flyteidl/pluginsb\006proto3" + "proto\"\262\001\n\017HPOJobObjective\022W\n\016objective_t" + + "ype\030\001 \001(\0162?.flyteidl.plugins.sagemaker.H" + + "POJobObjective.HPOJobObjectiveType\022\023\n\013me" + + "tric_name\030\002 \001(\t\"1\n\023HPOJobObjectiveType\022\014" + + "\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\220\001\n\006HPOJob\022#\n" + + "\033max_number_of_training_jobs\030\001 \001(\003\022\"\n\032ma" + + "x_parallel_training_jobs\030\002 \001(\003\022=\n\014traini" + + "ng_job\030\003 \001(\0132\'.flyteidl.plugins.sagemake" + + "r.TrainingJobB5Z3github.com/lyft/flyteid" + + "l/gen/pb-go/flyteidl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -1600,7 +1600,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor, - new java.lang.String[] { "Type", "MetricName", }); + new java.lang.String[] { "ObjectiveType", "MetricName", }); internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable = new diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst index 46b59b80d..c8055c5f2 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst @@ -14,13 +14,13 @@ flyteidl.plugins.sagemaker.HPOJobObjective .. code-block:: json { - "type": "...", + "objective_type": "...", "metric_name": "..." } -.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.type: +.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.objective_type: -type +objective_type (:ref:`flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType `) .. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.metric_name: diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py index 6d19e9d8d..80b5c49f5 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py @@ -22,7 +22,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n\'flyteidl/plugins/sagemaker/hpojob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x30\x66lyteidl/plugins/sagemaker/parameterranges.proto\x1a,flyteidl/plugins/sagemaker/trainingjob.proto\"\xa8\x01\n\x0fHPOJobObjective\x12M\n\x04type\x18\x01 \x01(\x0e\x32?.flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12#\n\x1bmax_number_of_training_jobs\x18\x01 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x02 \x01(\x03\x12=\n\x0ctraining_job\x18\x03 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJobB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n\'flyteidl/plugins/sagemaker/hpojob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x30\x66lyteidl/plugins/sagemaker/parameterranges.proto\x1a,flyteidl/plugins/sagemaker/trainingjob.proto\"\xb2\x01\n\x0fHPOJobObjective\x12W\n\x0eobjective_type\x18\x01 \x01(\x0e\x32?.flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12#\n\x1bmax_number_of_training_jobs\x18\x01 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x02 \x01(\x03\x12=\n\x0ctraining_job\x18\x03 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJobB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2.DESCRIPTOR,]) @@ -45,8 +45,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=287, - serialized_end=336, + serialized_start=297, + serialized_end=346, ) _sym_db.RegisterEnumDescriptor(_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE) @@ -59,7 +59,7 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.type', index=0, + name='objective_type', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.objective_type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -86,7 +86,7 @@ oneofs=[ ], serialized_start=168, - serialized_end=336, + serialized_end=346, ) @@ -130,11 +130,11 @@ extension_ranges=[], oneofs=[ ], - serialized_start=339, - serialized_end=483, + serialized_start=349, + serialized_end=493, ) -_HPOJOBOBJECTIVE.fields_by_name['type'].enum_type = _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE +_HPOJOBOBJECTIVE.fields_by_name['objective_type'].enum_type = _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE.containing_type = _HPOJOBOBJECTIVE _HPOJOB.fields_by_name['training_job'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2._TRAININGJOB DESCRIPTOR.message_types_by_name['HPOJobObjective'] = _HPOJOBOBJECTIVE diff --git a/package.json b/package.json index aa7d7438d..ec0c20286 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.17.33b1", + "version": "0.17.33b2", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/protos/flyteidl/plugins/sagemaker/hpojob.proto b/protos/flyteidl/plugins/sagemaker/hpojob.proto index 20114ea05..4bac73d40 100644 --- a/protos/flyteidl/plugins/sagemaker/hpojob.proto +++ b/protos/flyteidl/plugins/sagemaker/hpojob.proto @@ -13,7 +13,7 @@ message HPOJobObjective { MAXIMIZE = 1; } - HPOJobObjectiveType type = 1; + HPOJobObjectiveType objective_type = 1; string metric_name = 2; } diff --git a/setup.py b/setup.py index a9919fe8c..86754a7d2 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.17.33b1' +__version__ = '0.17.33b2' setup( name='flyteidl', From dc5f7de85d4c159247cef5c8bde35d2c0827687c Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Wed, 3 Jun 2020 21:50:13 -0700 Subject: [PATCH 11/64] fix the types of two fields in message IntegerParameterRange --- .../plugins/sagemaker/parameterranges.pb.cc | 150 +++--- .../plugins/sagemaker/parameterranges.pb.h | 122 ++--- .../plugins/sagemaker/parameterranges.pb.go | 104 ++-- .../sagemaker/parameterranges.pb.validate.go | 2 +- .../plugins/sagemaker/Parameterranges.java | 460 +++++++++--------- .../sagemaker/parameterranges.proto.rst | 4 +- .../plugins/sagemaker/parameterranges_pb2.py | 38 +- package.json | 2 +- .../plugins/sagemaker/parameterranges.proto | 6 +- setup.py | 2 +- 10 files changed, 446 insertions(+), 444 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc index 58c8d5316..fd0c353da 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc @@ -186,7 +186,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fpa offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, continuous_parameter_range_), offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, integer_parameter_range_), offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, categorical_parameter_range_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, ParameterRangeTypes_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, parameter_range_type_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -234,33 +234,33 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameterr "\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_typ" "e\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hyp" "erparameterScalingType\"\212\001\n\025IntegerParame" - "terRange\022\021\n\tmax_value\030\001 \001(\002\022\021\n\tmin_value" - "\030\002 \001(\002\022K\n\014scaling_type\030\003 \001(\01625.flyteidl." + "terRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_value" + "\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl." "plugins.sagemaker.HyperparameterScalingT" "ype\"+\n\031CategoricalParameterRange\022\016\n\006valu" - "es\030\001 \003(\t\"\274\002\n\023ParameterRangeOneOf\022Z\n\032cont" + "es\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032cont" "inuous_parameter_range\030\001 \001(\01324.flyteidl." "plugins.sagemaker.ContinuousParameterRan" "geH\000\022T\n\027integer_parameter_range\030\002 \001(\01321." "flyteidl.plugins.sagemaker.IntegerParame" "terRangeH\000\022\\\n\033categorical_parameter_rang" "e\030\003 \001(\01325.flyteidl.plugins.sagemaker.Cat" - "egoricalParameterRangeH\000B\025\n\023ParameterRan" - "geTypes\"\335\001\n\017ParameterRanges\022_\n\023parameter" - "_range_map\030\001 \003(\0132B.flyteidl.plugins.sage" - "maker.ParameterRanges.ParameterRangeMapE" - "ntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001 " - "\001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins.sa" - "gemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyper" - "parameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR" - "\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHMI" - "C\020\003B5Z3github.com/lyft/flyteidl/gen/pb-g" - "o/flyteidl/pluginsb\006proto3" + "egoricalParameterRangeH\000B\026\n\024parameter_ra" + "nge_type\"\335\001\n\017ParameterRanges\022_\n\023paramete" + "r_range_map\030\001 \003(\0132B.flyteidl.plugins.sag" + "emaker.ParameterRanges.ParameterRangeMap" + "Entry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001" + " \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins.s" + "agemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hype" + "rparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEA" + "R\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHM" + "IC\020\003B5Z3github.com/lyft/flyteidl/gen/pb-" + "go/flyteidl/pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, - "flyteidl/plugins/sagemaker/parameterranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, 1106, + "flyteidl/plugins/sagemaker/parameterranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, 1107, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { @@ -718,18 +718,18 @@ const char* IntegerParameterRange::_InternalParse(const char* begin, const char* ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // float max_value = 1; + // int64 max_value = 1; case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 13) goto handle_unusual; - msg->set_max_value(::google::protobuf::io::UnalignedLoad(ptr)); - ptr += sizeof(float); + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_max_value(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } - // float min_value = 2; + // int64 min_value = 2; case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 21) goto handle_unusual; - msg->set_min_value(::google::protobuf::io::UnalignedLoad(ptr)); - ptr += sizeof(float); + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_min_value(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; @@ -767,12 +767,12 @@ bool IntegerParameterRange::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // float max_value = 1; + // int64 max_value = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (13 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &max_value_))); } else { goto handle_unusual; @@ -780,12 +780,12 @@ bool IntegerParameterRange::MergePartialFromCodedStream( break; } - // float min_value = 2; + // int64 min_value = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (21 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &min_value_))); } else { goto handle_unusual; @@ -834,14 +834,14 @@ void IntegerParameterRange::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // float max_value = 1; + // int64 max_value = 1; if (this->max_value() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->max_value(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->max_value(), output); } - // float min_value = 2; + // int64 min_value = 2; if (this->min_value() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->min_value(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->min_value(), output); } // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; @@ -863,14 +863,14 @@ ::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSiz ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // float max_value = 1; + // int64 max_value = 1; if (this->max_value() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->max_value(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->max_value(), target); } - // float min_value = 2; + // int64 min_value = 2; if (this->min_value() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->min_value(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->min_value(), target); } // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; @@ -900,14 +900,18 @@ size_t IntegerParameterRange::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // float max_value = 1; + // int64 max_value = 1; if (this->max_value() != 0) { - total_size += 1 + 4; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max_value()); } - // float min_value = 2; + // int64 min_value = 2; if (this->min_value() != 0) { - total_size += 1 + 4; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->min_value()); } // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; @@ -1301,19 +1305,19 @@ class ParameterRangeOneOf::HasBitSetters { const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& ParameterRangeOneOf::HasBitSetters::continuous_parameter_range(const ParameterRangeOneOf* msg) { - return *msg->ParameterRangeTypes_.continuous_parameter_range_; + return *msg->parameter_range_type_.continuous_parameter_range_; } const ::flyteidl::plugins::sagemaker::IntegerParameterRange& ParameterRangeOneOf::HasBitSetters::integer_parameter_range(const ParameterRangeOneOf* msg) { - return *msg->ParameterRangeTypes_.integer_parameter_range_; + return *msg->parameter_range_type_.integer_parameter_range_; } const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& ParameterRangeOneOf::HasBitSetters::categorical_parameter_range(const ParameterRangeOneOf* msg) { - return *msg->ParameterRangeTypes_.categorical_parameter_range_; + return *msg->parameter_range_type_.categorical_parameter_range_; } void ParameterRangeOneOf::set_allocated_continuous_parameter_range(::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_ParameterRangeTypes(); + clear_parameter_range_type(); if (continuous_parameter_range) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { @@ -1321,13 +1325,13 @@ void ParameterRangeOneOf::set_allocated_continuous_parameter_range(::flyteidl::p message_arena, continuous_parameter_range, submessage_arena); } set_has_continuous_parameter_range(); - ParameterRangeTypes_.continuous_parameter_range_ = continuous_parameter_range; + parameter_range_type_.continuous_parameter_range_ = continuous_parameter_range; } // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) } void ParameterRangeOneOf::set_allocated_integer_parameter_range(::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_ParameterRangeTypes(); + clear_parameter_range_type(); if (integer_parameter_range) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { @@ -1335,13 +1339,13 @@ void ParameterRangeOneOf::set_allocated_integer_parameter_range(::flyteidl::plug message_arena, integer_parameter_range, submessage_arena); } set_has_integer_parameter_range(); - ParameterRangeTypes_.integer_parameter_range_ = integer_parameter_range; + parameter_range_type_.integer_parameter_range_ = integer_parameter_range; } // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) } void ParameterRangeOneOf::set_allocated_categorical_parameter_range(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_ParameterRangeTypes(); + clear_parameter_range_type(); if (categorical_parameter_range) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { @@ -1349,7 +1353,7 @@ void ParameterRangeOneOf::set_allocated_categorical_parameter_range(::flyteidl:: message_arena, categorical_parameter_range, submessage_arena); } set_has_categorical_parameter_range(); - ParameterRangeTypes_.categorical_parameter_range_ = categorical_parameter_range; + parameter_range_type_.categorical_parameter_range_ = categorical_parameter_range; } // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) } @@ -1368,8 +1372,8 @@ ParameterRangeOneOf::ParameterRangeOneOf(const ParameterRangeOneOf& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_ParameterRangeTypes(); - switch (from.ParameterRangeTypes_case()) { + clear_has_parameter_range_type(); + switch (from.parameter_range_type_case()) { case kContinuousParameterRange: { mutable_continuous_parameter_range()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuous_parameter_range()); break; @@ -1382,7 +1386,7 @@ ParameterRangeOneOf::ParameterRangeOneOf(const ParameterRangeOneOf& from) mutable_categorical_parameter_range()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categorical_parameter_range()); break; } - case PARAMETERRANGETYPES_NOT_SET: { + case PARAMETER_RANGE_TYPE_NOT_SET: { break; } } @@ -1392,7 +1396,7 @@ ParameterRangeOneOf::ParameterRangeOneOf(const ParameterRangeOneOf& from) void ParameterRangeOneOf::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); - clear_has_ParameterRangeTypes(); + clear_has_parameter_range_type(); } ParameterRangeOneOf::~ParameterRangeOneOf() { @@ -1401,8 +1405,8 @@ ParameterRangeOneOf::~ParameterRangeOneOf() { } void ParameterRangeOneOf::SharedDtor() { - if (has_ParameterRangeTypes()) { - clear_ParameterRangeTypes(); + if (has_parameter_range_type()) { + clear_parameter_range_type(); } } @@ -1415,26 +1419,26 @@ const ParameterRangeOneOf& ParameterRangeOneOf::default_instance() { } -void ParameterRangeOneOf::clear_ParameterRangeTypes() { +void ParameterRangeOneOf::clear_parameter_range_type() { // @@protoc_insertion_point(one_of_clear_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - switch (ParameterRangeTypes_case()) { + switch (parameter_range_type_case()) { case kContinuousParameterRange: { - delete ParameterRangeTypes_.continuous_parameter_range_; + delete parameter_range_type_.continuous_parameter_range_; break; } case kIntegerParameterRange: { - delete ParameterRangeTypes_.integer_parameter_range_; + delete parameter_range_type_.integer_parameter_range_; break; } case kCategoricalParameterRange: { - delete ParameterRangeTypes_.categorical_parameter_range_; + delete parameter_range_type_.categorical_parameter_range_; break; } - case PARAMETERRANGETYPES_NOT_SET: { + case PARAMETER_RANGE_TYPE_NOT_SET: { break; } } - _oneof_case_[0] = PARAMETERRANGETYPES_NOT_SET; + _oneof_case_[0] = PARAMETER_RANGE_TYPE_NOT_SET; } @@ -1444,7 +1448,7 @@ void ParameterRangeOneOf::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - clear_ParameterRangeTypes(); + clear_parameter_range_type(); _internal_metadata_.Clear(); } @@ -1663,29 +1667,29 @@ size_t ParameterRangeOneOf::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - switch (ParameterRangeTypes_case()) { + switch (parameter_range_type_case()) { // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; case kContinuousParameterRange: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *ParameterRangeTypes_.continuous_parameter_range_); + *parameter_range_type_.continuous_parameter_range_); break; } // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; case kIntegerParameterRange: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *ParameterRangeTypes_.integer_parameter_range_); + *parameter_range_type_.integer_parameter_range_); break; } // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; case kCategoricalParameterRange: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *ParameterRangeTypes_.categorical_parameter_range_); + *parameter_range_type_.categorical_parameter_range_); break; } - case PARAMETERRANGETYPES_NOT_SET: { + case PARAMETER_RANGE_TYPE_NOT_SET: { break; } } @@ -1716,7 +1720,7 @@ void ParameterRangeOneOf::MergeFrom(const ParameterRangeOneOf& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - switch (from.ParameterRangeTypes_case()) { + switch (from.parameter_range_type_case()) { case kContinuousParameterRange: { mutable_continuous_parameter_range()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuous_parameter_range()); break; @@ -1729,7 +1733,7 @@ void ParameterRangeOneOf::MergeFrom(const ParameterRangeOneOf& from) { mutable_categorical_parameter_range()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categorical_parameter_range()); break; } - case PARAMETERRANGETYPES_NOT_SET: { + case PARAMETER_RANGE_TYPE_NOT_SET: { break; } } @@ -1760,7 +1764,7 @@ void ParameterRangeOneOf::Swap(ParameterRangeOneOf* other) { void ParameterRangeOneOf::InternalSwap(ParameterRangeOneOf* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(ParameterRangeTypes_, other->ParameterRangeTypes_); + swap(parameter_range_type_, other->parameter_range_type_); swap(_oneof_case_[0], other->_oneof_case_[0]); } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h index a27266b46..e4a9a0bac 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h @@ -336,17 +336,17 @@ class IntegerParameterRange final : // accessors ------------------------------------------------------- - // float max_value = 1; + // int64 max_value = 1; void clear_max_value(); static const int kMaxValueFieldNumber = 1; - float max_value() const; - void set_max_value(float value); + ::google::protobuf::int64 max_value() const; + void set_max_value(::google::protobuf::int64 value); - // float min_value = 2; + // int64 min_value = 2; void clear_min_value(); static const int kMinValueFieldNumber = 2; - float min_value() const; - void set_min_value(float value); + ::google::protobuf::int64 min_value() const; + void set_min_value(::google::protobuf::int64 value); // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; void clear_scaling_type(); @@ -359,8 +359,8 @@ class IntegerParameterRange final : class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - float max_value_; - float min_value_; + ::google::protobuf::int64 max_value_; + ::google::protobuf::int64 min_value_; int scaling_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; @@ -527,11 +527,11 @@ class ParameterRangeOneOf final : } static const ParameterRangeOneOf& default_instance(); - enum ParameterRangeTypesCase { + enum ParameterRangeTypeCase { kContinuousParameterRange = 1, kIntegerParameterRange = 2, kCategoricalParameterRange = 3, - PARAMETERRANGETYPES_NOT_SET = 0, + PARAMETER_RANGE_TYPE_NOT_SET = 0, }; static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY @@ -624,8 +624,8 @@ class ParameterRangeOneOf final : ::flyteidl::plugins::sagemaker::CategoricalParameterRange* mutable_categorical_parameter_range(); void set_allocated_categorical_parameter_range(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range); - void clear_ParameterRangeTypes(); - ParameterRangeTypesCase ParameterRangeTypes_case() const; + void clear_parameter_range_type(); + ParameterRangeTypeCase parameter_range_type_case() const; // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) private: class HasBitSetters; @@ -633,16 +633,16 @@ class ParameterRangeOneOf final : void set_has_integer_parameter_range(); void set_has_categorical_parameter_range(); - inline bool has_ParameterRangeTypes() const; - inline void clear_has_ParameterRangeTypes(); + inline bool has_parameter_range_type() const; + inline void clear_has_parameter_range_type(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union ParameterRangeTypesUnion { - ParameterRangeTypesUnion() {} + union ParameterRangeTypeUnion { + ParameterRangeTypeUnion() {} ::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range_; ::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range_; ::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range_; - } ParameterRangeTypes_; + } parameter_range_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 _oneof_case_[1]; @@ -850,29 +850,29 @@ inline void ContinuousParameterRange::set_scaling_type(::flyteidl::plugins::sage // IntegerParameterRange -// float max_value = 1; +// int64 max_value = 1; inline void IntegerParameterRange::clear_max_value() { - max_value_ = 0; + max_value_ = PROTOBUF_LONGLONG(0); } -inline float IntegerParameterRange::max_value() const { +inline ::google::protobuf::int64 IntegerParameterRange::max_value() const { // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.max_value) return max_value_; } -inline void IntegerParameterRange::set_max_value(float value) { +inline void IntegerParameterRange::set_max_value(::google::protobuf::int64 value) { max_value_ = value; // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.max_value) } -// float min_value = 2; +// int64 min_value = 2; inline void IntegerParameterRange::clear_min_value() { - min_value_ = 0; + min_value_ = PROTOBUF_LONGLONG(0); } -inline float IntegerParameterRange::min_value() const { +inline ::google::protobuf::int64 IntegerParameterRange::min_value() const { // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.min_value) return min_value_; } -inline void IntegerParameterRange::set_min_value(float value) { +inline void IntegerParameterRange::set_min_value(::google::protobuf::int64 value) { min_value_ = value; // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.min_value) @@ -971,23 +971,23 @@ CategoricalParameterRange::mutable_values() { // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; inline bool ParameterRangeOneOf::has_continuous_parameter_range() const { - return ParameterRangeTypes_case() == kContinuousParameterRange; + return parameter_range_type_case() == kContinuousParameterRange; } inline void ParameterRangeOneOf::set_has_continuous_parameter_range() { _oneof_case_[0] = kContinuousParameterRange; } inline void ParameterRangeOneOf::clear_continuous_parameter_range() { if (has_continuous_parameter_range()) { - delete ParameterRangeTypes_.continuous_parameter_range_; - clear_has_ParameterRangeTypes(); + delete parameter_range_type_.continuous_parameter_range_; + clear_has_parameter_range_type(); } } inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::release_continuous_parameter_range() { // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) if (has_continuous_parameter_range()) { - clear_has_ParameterRangeTypes(); - ::flyteidl::plugins::sagemaker::ContinuousParameterRange* temp = ParameterRangeTypes_.continuous_parameter_range_; - ParameterRangeTypes_.continuous_parameter_range_ = nullptr; + clear_has_parameter_range_type(); + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* temp = parameter_range_type_.continuous_parameter_range_; + parameter_range_type_.continuous_parameter_range_ = nullptr; return temp; } else { return nullptr; @@ -996,39 +996,39 @@ inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeO inline const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& ParameterRangeOneOf::continuous_parameter_range() const { // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) return has_continuous_parameter_range() - ? *ParameterRangeTypes_.continuous_parameter_range_ + ? *parameter_range_type_.continuous_parameter_range_ : *reinterpret_cast< ::flyteidl::plugins::sagemaker::ContinuousParameterRange*>(&::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_); } inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::mutable_continuous_parameter_range() { if (!has_continuous_parameter_range()) { - clear_ParameterRangeTypes(); + clear_parameter_range_type(); set_has_continuous_parameter_range(); - ParameterRangeTypes_.continuous_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >( + parameter_range_type_.continuous_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >( GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) - return ParameterRangeTypes_.continuous_parameter_range_; + return parameter_range_type_.continuous_parameter_range_; } // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; inline bool ParameterRangeOneOf::has_integer_parameter_range() const { - return ParameterRangeTypes_case() == kIntegerParameterRange; + return parameter_range_type_case() == kIntegerParameterRange; } inline void ParameterRangeOneOf::set_has_integer_parameter_range() { _oneof_case_[0] = kIntegerParameterRange; } inline void ParameterRangeOneOf::clear_integer_parameter_range() { if (has_integer_parameter_range()) { - delete ParameterRangeTypes_.integer_parameter_range_; - clear_has_ParameterRangeTypes(); + delete parameter_range_type_.integer_parameter_range_; + clear_has_parameter_range_type(); } } inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::release_integer_parameter_range() { // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) if (has_integer_parameter_range()) { - clear_has_ParameterRangeTypes(); - ::flyteidl::plugins::sagemaker::IntegerParameterRange* temp = ParameterRangeTypes_.integer_parameter_range_; - ParameterRangeTypes_.integer_parameter_range_ = nullptr; + clear_has_parameter_range_type(); + ::flyteidl::plugins::sagemaker::IntegerParameterRange* temp = parameter_range_type_.integer_parameter_range_; + parameter_range_type_.integer_parameter_range_ = nullptr; return temp; } else { return nullptr; @@ -1037,39 +1037,39 @@ inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneO inline const ::flyteidl::plugins::sagemaker::IntegerParameterRange& ParameterRangeOneOf::integer_parameter_range() const { // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) return has_integer_parameter_range() - ? *ParameterRangeTypes_.integer_parameter_range_ + ? *parameter_range_type_.integer_parameter_range_ : *reinterpret_cast< ::flyteidl::plugins::sagemaker::IntegerParameterRange*>(&::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_); } inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::mutable_integer_parameter_range() { if (!has_integer_parameter_range()) { - clear_ParameterRangeTypes(); + clear_parameter_range_type(); set_has_integer_parameter_range(); - ParameterRangeTypes_.integer_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >( + parameter_range_type_.integer_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >( GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) - return ParameterRangeTypes_.integer_parameter_range_; + return parameter_range_type_.integer_parameter_range_; } // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; inline bool ParameterRangeOneOf::has_categorical_parameter_range() const { - return ParameterRangeTypes_case() == kCategoricalParameterRange; + return parameter_range_type_case() == kCategoricalParameterRange; } inline void ParameterRangeOneOf::set_has_categorical_parameter_range() { _oneof_case_[0] = kCategoricalParameterRange; } inline void ParameterRangeOneOf::clear_categorical_parameter_range() { if (has_categorical_parameter_range()) { - delete ParameterRangeTypes_.categorical_parameter_range_; - clear_has_ParameterRangeTypes(); + delete parameter_range_type_.categorical_parameter_range_; + clear_has_parameter_range_type(); } } inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::release_categorical_parameter_range() { // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) if (has_categorical_parameter_range()) { - clear_has_ParameterRangeTypes(); - ::flyteidl::plugins::sagemaker::CategoricalParameterRange* temp = ParameterRangeTypes_.categorical_parameter_range_; - ParameterRangeTypes_.categorical_parameter_range_ = nullptr; + clear_has_parameter_range_type(); + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* temp = parameter_range_type_.categorical_parameter_range_; + parameter_range_type_.categorical_parameter_range_ = nullptr; return temp; } else { return nullptr; @@ -1078,28 +1078,28 @@ inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRange inline const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& ParameterRangeOneOf::categorical_parameter_range() const { // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) return has_categorical_parameter_range() - ? *ParameterRangeTypes_.categorical_parameter_range_ + ? *parameter_range_type_.categorical_parameter_range_ : *reinterpret_cast< ::flyteidl::plugins::sagemaker::CategoricalParameterRange*>(&::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_); } inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::mutable_categorical_parameter_range() { if (!has_categorical_parameter_range()) { - clear_ParameterRangeTypes(); + clear_parameter_range_type(); set_has_categorical_parameter_range(); - ParameterRangeTypes_.categorical_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >( + parameter_range_type_.categorical_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >( GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) - return ParameterRangeTypes_.categorical_parameter_range_; + return parameter_range_type_.categorical_parameter_range_; } -inline bool ParameterRangeOneOf::has_ParameterRangeTypes() const { - return ParameterRangeTypes_case() != PARAMETERRANGETYPES_NOT_SET; +inline bool ParameterRangeOneOf::has_parameter_range_type() const { + return parameter_range_type_case() != PARAMETER_RANGE_TYPE_NOT_SET; } -inline void ParameterRangeOneOf::clear_has_ParameterRangeTypes() { - _oneof_case_[0] = PARAMETERRANGETYPES_NOT_SET; +inline void ParameterRangeOneOf::clear_has_parameter_range_type() { + _oneof_case_[0] = PARAMETER_RANGE_TYPE_NOT_SET; } -inline ParameterRangeOneOf::ParameterRangeTypesCase ParameterRangeOneOf::ParameterRangeTypes_case() const { - return ParameterRangeOneOf::ParameterRangeTypesCase(_oneof_case_[0]); +inline ParameterRangeOneOf::ParameterRangeTypeCase ParameterRangeOneOf::parameter_range_type_case() const { + return ParameterRangeOneOf::ParameterRangeTypeCase(_oneof_case_[0]); } // ------------------------------------------------------------------- diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go index bafe29f8d..ad109c6f2 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go @@ -107,8 +107,8 @@ func (m *ContinuousParameterRange) GetScalingType() HyperparameterScalingType { } type IntegerParameterRange struct { - MaxValue float32 `protobuf:"fixed32,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` - MinValue float32 `protobuf:"fixed32,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` + MaxValue int64 `protobuf:"varint,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` + MinValue int64 `protobuf:"varint,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` ScalingType HyperparameterScalingType `protobuf:"varint,3,opt,name=scaling_type,json=scalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"scaling_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -140,14 +140,14 @@ func (m *IntegerParameterRange) XXX_DiscardUnknown() { var xxx_messageInfo_IntegerParameterRange proto.InternalMessageInfo -func (m *IntegerParameterRange) GetMaxValue() float32 { +func (m *IntegerParameterRange) GetMaxValue() int64 { if m != nil { return m.MaxValue } return 0 } -func (m *IntegerParameterRange) GetMinValue() float32 { +func (m *IntegerParameterRange) GetMinValue() int64 { if m != nil { return m.MinValue } @@ -201,14 +201,14 @@ func (m *CategoricalParameterRange) GetValues() []string { } type ParameterRangeOneOf struct { - // Types that are valid to be assigned to ParameterRangeTypes: + // Types that are valid to be assigned to ParameterRangeType: // *ParameterRangeOneOf_ContinuousParameterRange // *ParameterRangeOneOf_IntegerParameterRange // *ParameterRangeOneOf_CategoricalParameterRange - ParameterRangeTypes isParameterRangeOneOf_ParameterRangeTypes `protobuf_oneof:"ParameterRangeTypes"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ParameterRangeType isParameterRangeOneOf_ParameterRangeType `protobuf_oneof:"parameter_range_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ParameterRangeOneOf) Reset() { *m = ParameterRangeOneOf{} } @@ -236,8 +236,8 @@ func (m *ParameterRangeOneOf) XXX_DiscardUnknown() { var xxx_messageInfo_ParameterRangeOneOf proto.InternalMessageInfo -type isParameterRangeOneOf_ParameterRangeTypes interface { - isParameterRangeOneOf_ParameterRangeTypes() +type isParameterRangeOneOf_ParameterRangeType interface { + isParameterRangeOneOf_ParameterRangeType() } type ParameterRangeOneOf_ContinuousParameterRange struct { @@ -252,35 +252,35 @@ type ParameterRangeOneOf_CategoricalParameterRange struct { CategoricalParameterRange *CategoricalParameterRange `protobuf:"bytes,3,opt,name=categorical_parameter_range,json=categoricalParameterRange,proto3,oneof"` } -func (*ParameterRangeOneOf_ContinuousParameterRange) isParameterRangeOneOf_ParameterRangeTypes() {} +func (*ParameterRangeOneOf_ContinuousParameterRange) isParameterRangeOneOf_ParameterRangeType() {} -func (*ParameterRangeOneOf_IntegerParameterRange) isParameterRangeOneOf_ParameterRangeTypes() {} +func (*ParameterRangeOneOf_IntegerParameterRange) isParameterRangeOneOf_ParameterRangeType() {} -func (*ParameterRangeOneOf_CategoricalParameterRange) isParameterRangeOneOf_ParameterRangeTypes() {} +func (*ParameterRangeOneOf_CategoricalParameterRange) isParameterRangeOneOf_ParameterRangeType() {} -func (m *ParameterRangeOneOf) GetParameterRangeTypes() isParameterRangeOneOf_ParameterRangeTypes { +func (m *ParameterRangeOneOf) GetParameterRangeType() isParameterRangeOneOf_ParameterRangeType { if m != nil { - return m.ParameterRangeTypes + return m.ParameterRangeType } return nil } func (m *ParameterRangeOneOf) GetContinuousParameterRange() *ContinuousParameterRange { - if x, ok := m.GetParameterRangeTypes().(*ParameterRangeOneOf_ContinuousParameterRange); ok { + if x, ok := m.GetParameterRangeType().(*ParameterRangeOneOf_ContinuousParameterRange); ok { return x.ContinuousParameterRange } return nil } func (m *ParameterRangeOneOf) GetIntegerParameterRange() *IntegerParameterRange { - if x, ok := m.GetParameterRangeTypes().(*ParameterRangeOneOf_IntegerParameterRange); ok { + if x, ok := m.GetParameterRangeType().(*ParameterRangeOneOf_IntegerParameterRange); ok { return x.IntegerParameterRange } return nil } func (m *ParameterRangeOneOf) GetCategoricalParameterRange() *CategoricalParameterRange { - if x, ok := m.GetParameterRangeTypes().(*ParameterRangeOneOf_CategoricalParameterRange); ok { + if x, ok := m.GetParameterRangeType().(*ParameterRangeOneOf_CategoricalParameterRange); ok { return x.CategoricalParameterRange } return nil @@ -349,37 +349,37 @@ func init() { } var fileDescriptor_d87fa566d23b1e82 = []byte{ - // 504 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xd1, 0x8e, 0xd2, 0x40, - 0x14, 0xa5, 0xad, 0x92, 0xe5, 0x62, 0x5c, 0x9c, 0x0d, 0x08, 0xec, 0x0b, 0xe1, 0x89, 0x98, 0xd8, - 0x2a, 0xb8, 0x89, 0xf1, 0x0d, 0x48, 0x23, 0x24, 0xbb, 0x62, 0x66, 0x71, 0x63, 0xf6, 0x85, 0x0c, - 0x75, 0xa8, 0x13, 0xda, 0xe9, 0x64, 0x3a, 0xd5, 0xed, 0x1f, 0xf8, 0x2f, 0x26, 0x7e, 0xa1, 0x0f, - 0x86, 0x81, 0x05, 0xb7, 0x4b, 0xd1, 0xa7, 0x7d, 0xeb, 0x9d, 0x33, 0xa7, 0xe7, 0xcc, 0x3d, 0x37, - 0x17, 0x5e, 0x2d, 0x82, 0x54, 0x51, 0xf6, 0x25, 0x70, 0x44, 0x90, 0xf8, 0x8c, 0xc7, 0x4e, 0x4c, - 0x7c, 0x1a, 0x92, 0x25, 0x95, 0x8e, 0x20, 0x92, 0x84, 0x54, 0x51, 0x29, 0x09, 0xf7, 0x69, 0x6c, - 0x0b, 0x19, 0xa9, 0x08, 0x35, 0x6f, 0x19, 0xf6, 0x86, 0x61, 0x6f, 0x19, 0xed, 0x5f, 0x06, 0xd4, - 0x87, 0x11, 0x57, 0x8c, 0x27, 0x51, 0x12, 0x7f, 0xbc, 0xe5, 0xe3, 0x15, 0x1f, 0x9d, 0x42, 0x29, - 0x24, 0x37, 0xb3, 0x6f, 0x24, 0x48, 0x68, 0xdd, 0x68, 0x19, 0x1d, 0x03, 0x1f, 0x85, 0xe4, 0xe6, - 0x6a, 0x55, 0x6b, 0x90, 0xf1, 0x0d, 0x68, 0x6e, 0x40, 0xc6, 0xd7, 0xe0, 0x67, 0x78, 0x12, 0x7b, - 0x24, 0x60, 0xdc, 0x9f, 0xa9, 0x54, 0xd0, 0xba, 0xd5, 0x32, 0x3a, 0x4f, 0xbb, 0x67, 0x76, 0xbe, - 0x13, 0x7b, 0x94, 0x0a, 0x2a, 0xb7, 0x0f, 0xb8, 0x5c, 0xb3, 0xa7, 0xa9, 0xa0, 0xb8, 0x1c, 0xef, - 0x8a, 0xf6, 0x4f, 0x03, 0xaa, 0x63, 0xae, 0xa8, 0x4f, 0xe5, 0xbf, 0xdc, 0x9a, 0x87, 0xdc, 0x9a, - 0x0f, 0xe2, 0xb6, 0x07, 0x8d, 0x21, 0x51, 0xd4, 0x8f, 0x24, 0xf3, 0x48, 0x90, 0x31, 0x5c, 0x83, - 0xa2, 0xf6, 0x13, 0xd7, 0x8d, 0x96, 0xd5, 0x29, 0xe1, 0x4d, 0xd5, 0xfe, 0x61, 0xc1, 0xc9, 0xdd, - 0xab, 0x13, 0x4e, 0x27, 0x0b, 0xa4, 0xa0, 0xe9, 0x6d, 0xa3, 0x9a, 0x6d, 0xc5, 0x67, 0x3a, 0x6c, - 0xfd, 0xe2, 0x72, 0xf7, 0xcd, 0x21, 0xd3, 0x79, 0x41, 0x8f, 0x0a, 0xb8, 0xee, 0xe5, 0x0d, 0xc1, - 0x12, 0x9e, 0xb3, 0x75, 0xbf, 0xef, 0x49, 0x9a, 0x5a, 0xf2, 0xf5, 0x21, 0xc9, 0xbd, 0x51, 0x8d, - 0x0a, 0xb8, 0xca, 0xf6, 0x66, 0xf8, 0x1d, 0x4e, 0xbd, 0x5d, 0xbf, 0xee, 0x09, 0x5a, 0x5a, 0xf0, - 0x60, 0x30, 0xb9, 0xed, 0x1e, 0x15, 0x70, 0xc3, 0xcb, 0x03, 0x07, 0xd5, 0x6c, 0xcb, 0x57, 0xf1, - 0xc5, 0xed, 0xdf, 0x06, 0x1c, 0xdf, 0x3d, 0x8f, 0x91, 0x84, 0x93, 0x8c, 0xaf, 0x59, 0x48, 0x84, - 0xce, 0xb0, 0xdc, 0x1d, 0x1c, 0xf2, 0x96, 0xf9, 0x53, 0xa6, 0xbe, 0x20, 0xc2, 0xe5, 0x4a, 0xa6, - 0xf8, 0x99, 0xc8, 0x9e, 0x37, 0x13, 0xa8, 0xed, 0xbf, 0x8c, 0x2a, 0x60, 0x2d, 0x69, 0xaa, 0xd3, - 0x2f, 0xe1, 0xd5, 0x27, 0x72, 0xe1, 0xf1, 0x6e, 0xcc, 0xcb, 0x5d, 0xe7, 0xff, 0x1d, 0xe9, 0x31, - 0xc3, 0x6b, 0xf6, 0x3b, 0xf3, 0xad, 0xf1, 0xe2, 0x1a, 0x1a, 0xb9, 0x83, 0x8e, 0x8e, 0xe0, 0x51, - 0xff, 0xd3, 0x74, 0x52, 0x29, 0x20, 0x80, 0xe2, 0xf9, 0xf8, 0x83, 0xdb, 0xc7, 0x15, 0x03, 0x1d, - 0x43, 0xf9, 0x7c, 0xf2, 0xbe, 0x8f, 0xc7, 0xd3, 0xd1, 0xc5, 0x78, 0x58, 0x31, 0x51, 0x0d, 0x10, - 0x76, 0xaf, 0x5c, 0x7c, 0xe9, 0xfe, 0x7d, 0x6e, 0x0d, 0xce, 0xae, 0x7b, 0x3e, 0x53, 0x5f, 0x93, - 0xb9, 0xed, 0x45, 0xa1, 0x13, 0xa4, 0x0b, 0xe5, 0x6c, 0x37, 0x9b, 0x4f, 0xb9, 0x23, 0xe6, 0x2f, - 0xfd, 0xc8, 0xc9, 0x2e, 0xbb, 0x79, 0x51, 0xef, 0xb4, 0xde, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xf5, 0xe4, 0x45, 0x40, 0x07, 0x05, 0x00, 0x00, + // 503 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xd1, 0x6e, 0x12, 0x41, + 0x14, 0x65, 0x58, 0x6d, 0xca, 0xc5, 0x58, 0x9c, 0x5a, 0x04, 0xfa, 0x42, 0x78, 0x22, 0x26, 0xee, + 0x2a, 0xd8, 0xc4, 0xf8, 0x06, 0x64, 0x23, 0x24, 0xad, 0x98, 0x29, 0x36, 0xa6, 0x2f, 0x64, 0x58, + 0x87, 0x75, 0xc2, 0xee, 0xec, 0x64, 0x76, 0x56, 0xbb, 0x9f, 0xe0, 0xb7, 0x98, 0xf8, 0x85, 0x3e, + 0x18, 0x06, 0x0a, 0x76, 0xcb, 0xa2, 0x4f, 0xbe, 0xed, 0x9d, 0x7b, 0xcf, 0x9e, 0x33, 0x73, 0x4e, + 0x2e, 0xbc, 0x9c, 0x07, 0xa9, 0x66, 0xfc, 0x73, 0xe0, 0xc8, 0x20, 0xf1, 0xb9, 0x88, 0x9d, 0x98, + 0xfa, 0x2c, 0xa4, 0x0b, 0xa6, 0x1c, 0x49, 0x15, 0x0d, 0x99, 0x66, 0x4a, 0x51, 0xe1, 0xb3, 0xd8, + 0x96, 0x2a, 0xd2, 0x11, 0x6e, 0xdc, 0x22, 0xec, 0x35, 0xc2, 0xde, 0x20, 0x5a, 0x3f, 0x11, 0xd4, + 0x06, 0x91, 0xd0, 0x5c, 0x24, 0x51, 0x12, 0x7f, 0xb8, 0xc5, 0x93, 0x25, 0x1e, 0x9f, 0x42, 0x29, + 0xa4, 0x37, 0xd3, 0xaf, 0x34, 0x48, 0x58, 0x0d, 0x35, 0x51, 0x1b, 0x91, 0xc3, 0x90, 0xde, 0x5c, + 0x2d, 0x6b, 0xd3, 0xe4, 0x62, 0xdd, 0x2c, 0xae, 0x9b, 0x5c, 0xac, 0x9a, 0x9f, 0xe0, 0x51, 0xec, + 0xd1, 0x80, 0x0b, 0x7f, 0xaa, 0x53, 0xc9, 0x6a, 0x56, 0x13, 0xb5, 0x1f, 0x77, 0xce, 0xec, 0x7c, + 0x25, 0xf6, 0x30, 0x95, 0x4c, 0x6d, 0x2e, 0x70, 0xb9, 0x42, 0x4f, 0x52, 0xc9, 0x48, 0x39, 0xde, + 0x16, 0xad, 0x1f, 0x08, 0x4e, 0x46, 0x42, 0x33, 0x9f, 0xa9, 0xbf, 0xa9, 0xb5, 0xf6, 0xa9, 0xb5, + 0xfe, 0x8b, 0xda, 0x2e, 0xd4, 0x07, 0x54, 0x33, 0x3f, 0x52, 0xdc, 0xa3, 0x41, 0x46, 0x70, 0x15, + 0x0e, 0x8c, 0x9e, 0xb8, 0x86, 0x9a, 0x56, 0xbb, 0x44, 0xd6, 0x55, 0xeb, 0xbb, 0x05, 0xc7, 0x77, + 0x47, 0xc7, 0x82, 0x8d, 0xe7, 0x58, 0x43, 0xc3, 0xdb, 0x58, 0x35, 0xdd, 0x90, 0x4f, 0x8d, 0xd9, + 0xe6, 0xc6, 0xe5, 0xce, 0xeb, 0x7d, 0xa2, 0xf3, 0x8c, 0x1e, 0x16, 0x48, 0xcd, 0xcb, 0x0b, 0xc1, + 0x02, 0x9e, 0xf1, 0xd5, 0x7b, 0xdf, 0xa3, 0x2c, 0x1a, 0xca, 0x57, 0xfb, 0x28, 0x77, 0x5a, 0x35, + 0x2c, 0x90, 0x13, 0xbe, 0xd3, 0xc3, 0x6f, 0x70, 0xea, 0x6d, 0xdf, 0xeb, 0x1e, 0xa1, 0x65, 0x08, + 0xf7, 0x1a, 0x93, 0xfb, 0xdc, 0xc3, 0x02, 0xa9, 0x7b, 0x79, 0xcd, 0x7e, 0x15, 0x9e, 0x66, 0xc8, + 0x4c, 0x14, 0x5a, 0xbf, 0x10, 0x1c, 0xdd, 0x1d, 0x8d, 0xb1, 0x82, 0xe3, 0xec, 0x6c, 0x48, 0xa5, + 0x31, 0xb1, 0xdc, 0xe9, 0xef, 0x13, 0x97, 0xf9, 0x53, 0xa6, 0xbe, 0xa0, 0xd2, 0x15, 0x5a, 0xa5, + 0xe4, 0x89, 0xcc, 0x9e, 0x37, 0x12, 0xa8, 0xee, 0x1e, 0xc6, 0x15, 0xb0, 0x16, 0x2c, 0x35, 0xf6, + 0x97, 0xc8, 0xf2, 0x13, 0xbb, 0xf0, 0x70, 0x9b, 0xf3, 0x72, 0xc7, 0xf9, 0x77, 0x45, 0x26, 0x67, + 0x64, 0x85, 0x7e, 0x5b, 0x7c, 0x83, 0x9e, 0x5f, 0x43, 0x3d, 0x37, 0xe9, 0xf8, 0x10, 0x1e, 0xf4, + 0x3e, 0x4e, 0xc6, 0x95, 0x02, 0x06, 0x38, 0x38, 0x1f, 0xbd, 0x77, 0x7b, 0xa4, 0x82, 0xf0, 0x11, + 0x94, 0xcf, 0xc7, 0xef, 0x7a, 0x64, 0x34, 0x19, 0x5e, 0x8c, 0x06, 0x95, 0x22, 0xae, 0x02, 0x26, + 0xee, 0x95, 0x4b, 0x2e, 0xdd, 0x3f, 0xcf, 0xad, 0xfe, 0xd9, 0x75, 0xd7, 0xe7, 0xfa, 0x4b, 0x32, + 0xb3, 0xbd, 0x28, 0x74, 0x82, 0x74, 0xae, 0x9d, 0xcd, 0x6a, 0xf3, 0x99, 0x70, 0xe4, 0xec, 0x85, + 0x1f, 0x39, 0xd9, 0x6d, 0x37, 0x3b, 0x30, 0x4b, 0xad, 0xfb, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xaf, + 0x48, 0xf7, 0xbe, 0x08, 0x05, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go index 0999a4afe..8c1fd2c6f 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go @@ -257,7 +257,7 @@ func (m *ParameterRangeOneOf) Validate() error { return nil } - switch m.ParameterRangeTypes.(type) { + switch m.ParameterRangeType.(type) { case *ParameterRangeOneOf_ContinuousParameterRange: diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java b/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java index 929008798..7ff2be48e 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java @@ -769,14 +769,14 @@ public interface IntegerParameterRangeOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * float max_value = 1; + * int64 max_value = 1; */ - float getMaxValue(); + long getMaxValue(); /** - * float min_value = 2; + * int64 min_value = 2; */ - float getMinValue(); + long getMinValue(); /** * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; @@ -827,14 +827,14 @@ private IntegerParameterRange( case 0: done = true; break; - case 13: { + case 8: { - maxValue_ = input.readFloat(); + maxValue_ = input.readInt64(); break; } - case 21: { + case 16: { - minValue_ = input.readFloat(); + minValue_ = input.readInt64(); break; } case 24: { @@ -876,20 +876,20 @@ private IntegerParameterRange( } public static final int MAX_VALUE_FIELD_NUMBER = 1; - private float maxValue_; + private long maxValue_; /** - * float max_value = 1; + * int64 max_value = 1; */ - public float getMaxValue() { + public long getMaxValue() { return maxValue_; } public static final int MIN_VALUE_FIELD_NUMBER = 2; - private float minValue_; + private long minValue_; /** - * float min_value = 2; + * int64 min_value = 2; */ - public float getMinValue() { + public long getMinValue() { return minValue_; } @@ -924,11 +924,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (maxValue_ != 0F) { - output.writeFloat(1, maxValue_); + if (maxValue_ != 0L) { + output.writeInt64(1, maxValue_); } - if (minValue_ != 0F) { - output.writeFloat(2, minValue_); + if (minValue_ != 0L) { + output.writeInt64(2, minValue_); } if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { output.writeEnum(3, scalingType_); @@ -942,13 +942,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (maxValue_ != 0F) { + if (maxValue_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, maxValue_); + .computeInt64Size(1, maxValue_); } - if (minValue_ != 0F) { + if (minValue_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, minValue_); + .computeInt64Size(2, minValue_); } if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { size += com.google.protobuf.CodedOutputStream @@ -969,12 +969,10 @@ public boolean equals(final java.lang.Object obj) { } flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange other = (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) obj; - if (java.lang.Float.floatToIntBits(getMaxValue()) - != java.lang.Float.floatToIntBits( - other.getMaxValue())) return false; - if (java.lang.Float.floatToIntBits(getMinValue()) - != java.lang.Float.floatToIntBits( - other.getMinValue())) return false; + if (getMaxValue() + != other.getMaxValue()) return false; + if (getMinValue() + != other.getMinValue()) return false; if (scalingType_ != other.scalingType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -988,10 +986,10 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxValue()); hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinValue()); hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; hash = (53 * hash) + scalingType_; @@ -1128,9 +1126,9 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - maxValue_ = 0F; + maxValue_ = 0L; - minValue_ = 0F; + minValue_ = 0L; scalingType_ = 0; @@ -1211,10 +1209,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange other) { if (other == flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance()) return this; - if (other.getMaxValue() != 0F) { + if (other.getMaxValue() != 0L) { setMaxValue(other.getMaxValue()); } - if (other.getMinValue() != 0F) { + if (other.getMinValue() != 0L) { setMinValue(other.getMinValue()); } if (other.scalingType_ != 0) { @@ -1249,54 +1247,54 @@ public Builder mergeFrom( return this; } - private float maxValue_ ; + private long maxValue_ ; /** - * float max_value = 1; + * int64 max_value = 1; */ - public float getMaxValue() { + public long getMaxValue() { return maxValue_; } /** - * float max_value = 1; + * int64 max_value = 1; */ - public Builder setMaxValue(float value) { + public Builder setMaxValue(long value) { maxValue_ = value; onChanged(); return this; } /** - * float max_value = 1; + * int64 max_value = 1; */ public Builder clearMaxValue() { - maxValue_ = 0F; + maxValue_ = 0L; onChanged(); return this; } - private float minValue_ ; + private long minValue_ ; /** - * float min_value = 2; + * int64 min_value = 2; */ - public float getMinValue() { + public long getMinValue() { return minValue_; } /** - * float min_value = 2; + * int64 min_value = 2; */ - public Builder setMinValue(float value) { + public Builder setMinValue(long value) { minValue_ = value; onChanged(); return this; } /** - * float min_value = 2; + * int64 min_value = 2; */ public Builder clearMinValue() { - minValue_ = 0F; + minValue_ = 0L; onChanged(); return this; } @@ -2044,7 +2042,7 @@ public interface ParameterRangeOneOfOrBuilder extends */ flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder(); - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.ParameterRangeTypesCase getParameterRangeTypesCase(); + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.ParameterRangeTypeCase getParameterRangeTypeCase(); } /** * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf} @@ -2087,44 +2085,44 @@ private ParameterRangeOneOf( break; case 10: { flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder subBuilder = null; - if (parameterRangeTypesCase_ == 1) { - subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_).toBuilder(); + if (parameterRangeTypeCase_ == 1) { + subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_).toBuilder(); } - parameterRangeTypes_ = + parameterRangeType_ = input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_); - parameterRangeTypes_ = subBuilder.buildPartial(); + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); } - parameterRangeTypesCase_ = 1; + parameterRangeTypeCase_ = 1; break; } case 18: { flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder subBuilder = null; - if (parameterRangeTypesCase_ == 2) { - subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_).toBuilder(); + if (parameterRangeTypeCase_ == 2) { + subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_).toBuilder(); } - parameterRangeTypes_ = + parameterRangeType_ = input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_); - parameterRangeTypes_ = subBuilder.buildPartial(); + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); } - parameterRangeTypesCase_ = 2; + parameterRangeTypeCase_ = 2; break; } case 26: { flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder subBuilder = null; - if (parameterRangeTypesCase_ == 3) { - subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_).toBuilder(); + if (parameterRangeTypeCase_ == 3) { + subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_).toBuilder(); } - parameterRangeTypes_ = + parameterRangeType_ = input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_); - parameterRangeTypes_ = subBuilder.buildPartial(); + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); } - parameterRangeTypesCase_ = 3; + parameterRangeTypeCase_ = 3; break; } default: { @@ -2159,32 +2157,32 @@ private ParameterRangeOneOf( flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.Builder.class); } - private int parameterRangeTypesCase_ = 0; - private java.lang.Object parameterRangeTypes_; - public enum ParameterRangeTypesCase + private int parameterRangeTypeCase_ = 0; + private java.lang.Object parameterRangeType_; + public enum ParameterRangeTypeCase implements com.google.protobuf.Internal.EnumLite { CONTINUOUS_PARAMETER_RANGE(1), INTEGER_PARAMETER_RANGE(2), CATEGORICAL_PARAMETER_RANGE(3), - PARAMETERRANGETYPES_NOT_SET(0); + PARAMETERRANGETYPE_NOT_SET(0); private final int value; - private ParameterRangeTypesCase(int value) { + private ParameterRangeTypeCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static ParameterRangeTypesCase valueOf(int value) { + public static ParameterRangeTypeCase valueOf(int value) { return forNumber(value); } - public static ParameterRangeTypesCase forNumber(int value) { + public static ParameterRangeTypeCase forNumber(int value) { switch (value) { case 1: return CONTINUOUS_PARAMETER_RANGE; case 2: return INTEGER_PARAMETER_RANGE; case 3: return CATEGORICAL_PARAMETER_RANGE; - case 0: return PARAMETERRANGETYPES_NOT_SET; + case 0: return PARAMETERRANGETYPE_NOT_SET; default: return null; } } @@ -2193,10 +2191,10 @@ public int getNumber() { } }; - public ParameterRangeTypesCase - getParameterRangeTypesCase() { - return ParameterRangeTypesCase.forNumber( - parameterRangeTypesCase_); + public ParameterRangeTypeCase + getParameterRangeTypeCase() { + return ParameterRangeTypeCase.forNumber( + parameterRangeTypeCase_); } public static final int CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER = 1; @@ -2204,14 +2202,14 @@ public int getNumber() { * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public boolean hasContinuousParameterRange() { - return parameterRangeTypesCase_ == 1; + return parameterRangeTypeCase_ == 1; } /** * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange() { - if (parameterRangeTypesCase_ == 1) { - return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_; + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_; } return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); } @@ -2219,8 +2217,8 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getCo * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { - if (parameterRangeTypesCase_ == 1) { - return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_; + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_; } return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); } @@ -2230,14 +2228,14 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuil * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public boolean hasIntegerParameterRange() { - return parameterRangeTypesCase_ == 2; + return parameterRangeTypeCase_ == 2; } /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange() { - if (parameterRangeTypesCase_ == 2) { - return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_; + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_; } return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); } @@ -2245,8 +2243,8 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getInteg * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { - if (parameterRangeTypesCase_ == 2) { - return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_; + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_; } return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); } @@ -2256,14 +2254,14 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public boolean hasCategoricalParameterRange() { - return parameterRangeTypesCase_ == 3; + return parameterRangeTypeCase_ == 3; } /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange() { - if (parameterRangeTypesCase_ == 3) { - return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_; + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_; } return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); } @@ -2271,8 +2269,8 @@ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getC * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { - if (parameterRangeTypesCase_ == 3) { - return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_; + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_; } return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); } @@ -2291,14 +2289,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (parameterRangeTypesCase_ == 1) { - output.writeMessage(1, (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_); + if (parameterRangeTypeCase_ == 1) { + output.writeMessage(1, (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_); } - if (parameterRangeTypesCase_ == 2) { - output.writeMessage(2, (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_); + if (parameterRangeTypeCase_ == 2) { + output.writeMessage(2, (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_); } - if (parameterRangeTypesCase_ == 3) { - output.writeMessage(3, (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_); + if (parameterRangeTypeCase_ == 3) { + output.writeMessage(3, (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_); } unknownFields.writeTo(output); } @@ -2309,17 +2307,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (parameterRangeTypesCase_ == 1) { + if (parameterRangeTypeCase_ == 1) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_); + .computeMessageSize(1, (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_); } - if (parameterRangeTypesCase_ == 2) { + if (parameterRangeTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_); + .computeMessageSize(2, (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_); } - if (parameterRangeTypesCase_ == 3) { + if (parameterRangeTypeCase_ == 3) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_); + .computeMessageSize(3, (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2336,8 +2334,8 @@ public boolean equals(final java.lang.Object obj) { } flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf other = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf) obj; - if (!getParameterRangeTypesCase().equals(other.getParameterRangeTypesCase())) return false; - switch (parameterRangeTypesCase_) { + if (!getParameterRangeTypeCase().equals(other.getParameterRangeTypeCase())) return false; + switch (parameterRangeTypeCase_) { case 1: if (!getContinuousParameterRange() .equals(other.getContinuousParameterRange())) return false; @@ -2364,7 +2362,7 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - switch (parameterRangeTypesCase_) { + switch (parameterRangeTypeCase_) { case 1: hash = (37 * hash) + CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER; hash = (53 * hash) + getContinuousParameterRange().hashCode(); @@ -2513,8 +2511,8 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - parameterRangeTypesCase_ = 0; - parameterRangeTypes_ = null; + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; return this; } @@ -2541,28 +2539,28 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf build() { @java.lang.Override public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf buildPartial() { flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf result = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf(this); - if (parameterRangeTypesCase_ == 1) { + if (parameterRangeTypeCase_ == 1) { if (continuousParameterRangeBuilder_ == null) { - result.parameterRangeTypes_ = parameterRangeTypes_; + result.parameterRangeType_ = parameterRangeType_; } else { - result.parameterRangeTypes_ = continuousParameterRangeBuilder_.build(); + result.parameterRangeType_ = continuousParameterRangeBuilder_.build(); } } - if (parameterRangeTypesCase_ == 2) { + if (parameterRangeTypeCase_ == 2) { if (integerParameterRangeBuilder_ == null) { - result.parameterRangeTypes_ = parameterRangeTypes_; + result.parameterRangeType_ = parameterRangeType_; } else { - result.parameterRangeTypes_ = integerParameterRangeBuilder_.build(); + result.parameterRangeType_ = integerParameterRangeBuilder_.build(); } } - if (parameterRangeTypesCase_ == 3) { + if (parameterRangeTypeCase_ == 3) { if (categoricalParameterRangeBuilder_ == null) { - result.parameterRangeTypes_ = parameterRangeTypes_; + result.parameterRangeType_ = parameterRangeType_; } else { - result.parameterRangeTypes_ = categoricalParameterRangeBuilder_.build(); + result.parameterRangeType_ = categoricalParameterRangeBuilder_.build(); } } - result.parameterRangeTypesCase_ = parameterRangeTypesCase_; + result.parameterRangeTypeCase_ = parameterRangeTypeCase_; onBuilt(); return result; } @@ -2611,7 +2609,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf other) { if (other == flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance()) return this; - switch (other.getParameterRangeTypesCase()) { + switch (other.getParameterRangeTypeCase()) { case CONTINUOUS_PARAMETER_RANGE: { mergeContinuousParameterRange(other.getContinuousParameterRange()); break; @@ -2624,7 +2622,7 @@ public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ParameterRan mergeCategoricalParameterRange(other.getCategoricalParameterRange()); break; } - case PARAMETERRANGETYPES_NOT_SET: { + case PARAMETERRANGETYPE_NOT_SET: { break; } } @@ -2656,17 +2654,17 @@ public Builder mergeFrom( } return this; } - private int parameterRangeTypesCase_ = 0; - private java.lang.Object parameterRangeTypes_; - public ParameterRangeTypesCase - getParameterRangeTypesCase() { - return ParameterRangeTypesCase.forNumber( - parameterRangeTypesCase_); + private int parameterRangeTypeCase_ = 0; + private java.lang.Object parameterRangeType_; + public ParameterRangeTypeCase + getParameterRangeTypeCase() { + return ParameterRangeTypeCase.forNumber( + parameterRangeTypeCase_); } - public Builder clearParameterRangeTypes() { - parameterRangeTypesCase_ = 0; - parameterRangeTypes_ = null; + public Builder clearParameterRangeType() { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; onChanged(); return this; } @@ -2678,19 +2676,19 @@ public Builder clearParameterRangeTypes() { * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public boolean hasContinuousParameterRange() { - return parameterRangeTypesCase_ == 1; + return parameterRangeTypeCase_ == 1; } /** * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange() { if (continuousParameterRangeBuilder_ == null) { - if (parameterRangeTypesCase_ == 1) { - return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_; + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_; } return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); } else { - if (parameterRangeTypesCase_ == 1) { + if (parameterRangeTypeCase_ == 1) { return continuousParameterRangeBuilder_.getMessage(); } return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); @@ -2704,12 +2702,12 @@ public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterr if (value == null) { throw new NullPointerException(); } - parameterRangeTypes_ = value; + parameterRangeType_ = value; onChanged(); } else { continuousParameterRangeBuilder_.setMessage(value); } - parameterRangeTypesCase_ = 1; + parameterRangeTypeCase_ = 1; return this; } /** @@ -2718,12 +2716,12 @@ public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterr public Builder setContinuousParameterRange( flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder builderForValue) { if (continuousParameterRangeBuilder_ == null) { - parameterRangeTypes_ = builderForValue.build(); + parameterRangeType_ = builderForValue.build(); onChanged(); } else { continuousParameterRangeBuilder_.setMessage(builderForValue.build()); } - parameterRangeTypesCase_ = 1; + parameterRangeTypeCase_ = 1; return this; } /** @@ -2731,21 +2729,21 @@ public Builder setContinuousParameterRange( */ public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange value) { if (continuousParameterRangeBuilder_ == null) { - if (parameterRangeTypesCase_ == 1 && - parameterRangeTypes_ != flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance()) { - parameterRangeTypes_ = flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_) + if (parameterRangeTypeCase_ == 1 && + parameterRangeType_ != flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_) .mergeFrom(value).buildPartial(); } else { - parameterRangeTypes_ = value; + parameterRangeType_ = value; } onChanged(); } else { - if (parameterRangeTypesCase_ == 1) { + if (parameterRangeTypeCase_ == 1) { continuousParameterRangeBuilder_.mergeFrom(value); } continuousParameterRangeBuilder_.setMessage(value); } - parameterRangeTypesCase_ = 1; + parameterRangeTypeCase_ = 1; return this; } /** @@ -2753,15 +2751,15 @@ public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.Paramete */ public Builder clearContinuousParameterRange() { if (continuousParameterRangeBuilder_ == null) { - if (parameterRangeTypesCase_ == 1) { - parameterRangeTypesCase_ = 0; - parameterRangeTypes_ = null; + if (parameterRangeTypeCase_ == 1) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; onChanged(); } } else { - if (parameterRangeTypesCase_ == 1) { - parameterRangeTypesCase_ = 0; - parameterRangeTypes_ = null; + if (parameterRangeTypeCase_ == 1) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; } continuousParameterRangeBuilder_.clear(); } @@ -2777,11 +2775,11 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Build * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { - if ((parameterRangeTypesCase_ == 1) && (continuousParameterRangeBuilder_ != null)) { + if ((parameterRangeTypeCase_ == 1) && (continuousParameterRangeBuilder_ != null)) { return continuousParameterRangeBuilder_.getMessageOrBuilder(); } else { - if (parameterRangeTypesCase_ == 1) { - return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_; + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_; } return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); } @@ -2793,17 +2791,17 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuil flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder> getContinuousParameterRangeFieldBuilder() { if (continuousParameterRangeBuilder_ == null) { - if (!(parameterRangeTypesCase_ == 1)) { - parameterRangeTypes_ = flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + if (!(parameterRangeTypeCase_ == 1)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); } continuousParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder>( - (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeTypes_, + (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_, getParentForChildren(), isClean()); - parameterRangeTypes_ = null; + parameterRangeType_ = null; } - parameterRangeTypesCase_ = 1; + parameterRangeTypeCase_ = 1; onChanged();; return continuousParameterRangeBuilder_; } @@ -2814,19 +2812,19 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuil * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public boolean hasIntegerParameterRange() { - return parameterRangeTypesCase_ == 2; + return parameterRangeTypeCase_ == 2; } /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange() { if (integerParameterRangeBuilder_ == null) { - if (parameterRangeTypesCase_ == 2) { - return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_; + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_; } return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); } else { - if (parameterRangeTypesCase_ == 2) { + if (parameterRangeTypeCase_ == 2) { return integerParameterRangeBuilder_.getMessage(); } return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); @@ -2840,12 +2838,12 @@ public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterrang if (value == null) { throw new NullPointerException(); } - parameterRangeTypes_ = value; + parameterRangeType_ = value; onChanged(); } else { integerParameterRangeBuilder_.setMessage(value); } - parameterRangeTypesCase_ = 2; + parameterRangeTypeCase_ = 2; return this; } /** @@ -2854,12 +2852,12 @@ public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterrang public Builder setIntegerParameterRange( flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder builderForValue) { if (integerParameterRangeBuilder_ == null) { - parameterRangeTypes_ = builderForValue.build(); + parameterRangeType_ = builderForValue.build(); onChanged(); } else { integerParameterRangeBuilder_.setMessage(builderForValue.build()); } - parameterRangeTypesCase_ = 2; + parameterRangeTypeCase_ = 2; return this; } /** @@ -2867,21 +2865,21 @@ public Builder setIntegerParameterRange( */ public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange value) { if (integerParameterRangeBuilder_ == null) { - if (parameterRangeTypesCase_ == 2 && - parameterRangeTypes_ != flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance()) { - parameterRangeTypes_ = flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_) + if (parameterRangeTypeCase_ == 2 && + parameterRangeType_ != flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_) .mergeFrom(value).buildPartial(); } else { - parameterRangeTypes_ = value; + parameterRangeType_ = value; } onChanged(); } else { - if (parameterRangeTypesCase_ == 2) { + if (parameterRangeTypeCase_ == 2) { integerParameterRangeBuilder_.mergeFrom(value); } integerParameterRangeBuilder_.setMessage(value); } - parameterRangeTypesCase_ = 2; + parameterRangeTypeCase_ = 2; return this; } /** @@ -2889,15 +2887,15 @@ public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterra */ public Builder clearIntegerParameterRange() { if (integerParameterRangeBuilder_ == null) { - if (parameterRangeTypesCase_ == 2) { - parameterRangeTypesCase_ = 0; - parameterRangeTypes_ = null; + if (parameterRangeTypeCase_ == 2) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; onChanged(); } } else { - if (parameterRangeTypesCase_ == 2) { - parameterRangeTypesCase_ = 0; - parameterRangeTypes_ = null; + if (parameterRangeTypeCase_ == 2) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; } integerParameterRangeBuilder_.clear(); } @@ -2913,11 +2911,11 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { - if ((parameterRangeTypesCase_ == 2) && (integerParameterRangeBuilder_ != null)) { + if ((parameterRangeTypeCase_ == 2) && (integerParameterRangeBuilder_ != null)) { return integerParameterRangeBuilder_.getMessageOrBuilder(); } else { - if (parameterRangeTypesCase_ == 2) { - return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_; + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_; } return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); } @@ -2929,17 +2927,17 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder> getIntegerParameterRangeFieldBuilder() { if (integerParameterRangeBuilder_ == null) { - if (!(parameterRangeTypesCase_ == 2)) { - parameterRangeTypes_ = flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + if (!(parameterRangeTypeCase_ == 2)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); } integerParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder>( - (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeTypes_, + (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_, getParentForChildren(), isClean()); - parameterRangeTypes_ = null; + parameterRangeType_ = null; } - parameterRangeTypesCase_ = 2; + parameterRangeTypeCase_ = 2; onChanged();; return integerParameterRangeBuilder_; } @@ -2950,19 +2948,19 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public boolean hasCategoricalParameterRange() { - return parameterRangeTypesCase_ == 3; + return parameterRangeTypeCase_ == 3; } /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange() { if (categoricalParameterRangeBuilder_ == null) { - if (parameterRangeTypesCase_ == 3) { - return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_; + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_; } return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); } else { - if (parameterRangeTypesCase_ == 3) { + if (parameterRangeTypeCase_ == 3) { return categoricalParameterRangeBuilder_.getMessage(); } return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); @@ -2976,12 +2974,12 @@ public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameter if (value == null) { throw new NullPointerException(); } - parameterRangeTypes_ = value; + parameterRangeType_ = value; onChanged(); } else { categoricalParameterRangeBuilder_.setMessage(value); } - parameterRangeTypesCase_ = 3; + parameterRangeTypeCase_ = 3; return this; } /** @@ -2990,12 +2988,12 @@ public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameter public Builder setCategoricalParameterRange( flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder builderForValue) { if (categoricalParameterRangeBuilder_ == null) { - parameterRangeTypes_ = builderForValue.build(); + parameterRangeType_ = builderForValue.build(); onChanged(); } else { categoricalParameterRangeBuilder_.setMessage(builderForValue.build()); } - parameterRangeTypesCase_ = 3; + parameterRangeTypeCase_ = 3; return this; } /** @@ -3003,21 +3001,21 @@ public Builder setCategoricalParameterRange( */ public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange value) { if (categoricalParameterRangeBuilder_ == null) { - if (parameterRangeTypesCase_ == 3 && - parameterRangeTypes_ != flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance()) { - parameterRangeTypes_ = flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_) + if (parameterRangeTypeCase_ == 3 && + parameterRangeType_ != flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_) .mergeFrom(value).buildPartial(); } else { - parameterRangeTypes_ = value; + parameterRangeType_ = value; } onChanged(); } else { - if (parameterRangeTypesCase_ == 3) { + if (parameterRangeTypeCase_ == 3) { categoricalParameterRangeBuilder_.mergeFrom(value); } categoricalParameterRangeBuilder_.setMessage(value); } - parameterRangeTypesCase_ = 3; + parameterRangeTypeCase_ = 3; return this; } /** @@ -3025,15 +3023,15 @@ public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.Paramet */ public Builder clearCategoricalParameterRange() { if (categoricalParameterRangeBuilder_ == null) { - if (parameterRangeTypesCase_ == 3) { - parameterRangeTypesCase_ = 0; - parameterRangeTypes_ = null; + if (parameterRangeTypeCase_ == 3) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; onChanged(); } } else { - if (parameterRangeTypesCase_ == 3) { - parameterRangeTypesCase_ = 0; - parameterRangeTypes_ = null; + if (parameterRangeTypeCase_ == 3) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; } categoricalParameterRangeBuilder_.clear(); } @@ -3049,11 +3047,11 @@ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Buil * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { - if ((parameterRangeTypesCase_ == 3) && (categoricalParameterRangeBuilder_ != null)) { + if ((parameterRangeTypeCase_ == 3) && (categoricalParameterRangeBuilder_ != null)) { return categoricalParameterRangeBuilder_.getMessageOrBuilder(); } else { - if (parameterRangeTypesCase_ == 3) { - return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_; + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_; } return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); } @@ -3065,17 +3063,17 @@ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBui flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder> getCategoricalParameterRangeFieldBuilder() { if (categoricalParameterRangeBuilder_ == null) { - if (!(parameterRangeTypesCase_ == 3)) { - parameterRangeTypes_ = flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + if (!(parameterRangeTypeCase_ == 3)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); } categoricalParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder>( - (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeTypes_, + (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_, getParentForChildren(), isClean()); - parameterRangeTypes_ = null; + parameterRangeType_ = null; } - parameterRangeTypesCase_ = 3; + parameterRangeTypeCase_ = 3; onChanged();; return categoricalParameterRangeBuilder_; } @@ -3898,28 +3896,28 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInst "\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_typ" + "e\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hyp" + "erparameterScalingType\"\212\001\n\025IntegerParame" + - "terRange\022\021\n\tmax_value\030\001 \001(\002\022\021\n\tmin_value" + - "\030\002 \001(\002\022K\n\014scaling_type\030\003 \001(\01625.flyteidl." + + "terRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_value" + + "\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl." + "plugins.sagemaker.HyperparameterScalingT" + "ype\"+\n\031CategoricalParameterRange\022\016\n\006valu" + - "es\030\001 \003(\t\"\274\002\n\023ParameterRangeOneOf\022Z\n\032cont" + + "es\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032cont" + "inuous_parameter_range\030\001 \001(\01324.flyteidl." + "plugins.sagemaker.ContinuousParameterRan" + "geH\000\022T\n\027integer_parameter_range\030\002 \001(\01321." + "flyteidl.plugins.sagemaker.IntegerParame" + "terRangeH\000\022\\\n\033categorical_parameter_rang" + "e\030\003 \001(\01325.flyteidl.plugins.sagemaker.Cat" + - "egoricalParameterRangeH\000B\025\n\023ParameterRan" + - "geTypes\"\335\001\n\017ParameterRanges\022_\n\023parameter" + - "_range_map\030\001 \003(\0132B.flyteidl.plugins.sage" + - "maker.ParameterRanges.ParameterRangeMapE" + - "ntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001 " + - "\001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins.sa" + - "gemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyper" + - "parameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEAR" + - "\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHMI" + - "C\020\003B5Z3github.com/lyft/flyteidl/gen/pb-g" + - "o/flyteidl/pluginsb\006proto3" + "egoricalParameterRangeH\000B\026\n\024parameter_ra" + + "nge_type\"\335\001\n\017ParameterRanges\022_\n\023paramete" + + "r_range_map\030\001 \003(\0132B.flyteidl.plugins.sag" + + "emaker.ParameterRanges.ParameterRangeMap" + + "Entry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001" + + " \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins.s" + + "agemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hype" + + "rparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEA" + + "R\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHM" + + "IC\020\003B5Z3github.com/lyft/flyteidl/gen/pb-" + + "go/flyteidl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3956,7 +3954,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor, - new java.lang.String[] { "ContinuousParameterRange", "IntegerParameterRange", "CategoricalParameterRange", "ParameterRangeTypes", }); + new java.lang.String[] { "ContinuousParameterRange", "IntegerParameterRange", "CategoricalParameterRange", "ParameterRangeType", }); internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst index 0589e75f2..520c352dc 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst @@ -55,12 +55,12 @@ flyteidl.plugins.sagemaker.IntegerParameterRange .. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.max_value: max_value - (`float `_) + (`int64 `_) .. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.min_value: min_value - (`float `_) + (`int64 `_) .. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type: diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py index fbb7bc8bf..043c4b72e 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py @@ -21,7 +21,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n0flyteidl/plugins/sagemaker/parameterranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x8d\x01\n\x18\x43ontinuousParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x01\x12\x11\n\tmin_value\x18\x02 \x01(\x01\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x8a\x01\n\x15IntegerParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x02\x12\x11\n\tmin_value\x18\x02 \x01(\x02\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"+\n\x19\x43\x61tegoricalParameterRange\x12\x0e\n\x06values\x18\x01 \x03(\t\"\xbc\x02\n\x13ParameterRangeOneOf\x12Z\n\x1a\x63ontinuous_parameter_range\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00\x12T\n\x17integer_parameter_range\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00\x12\\\n\x1b\x63\x61tegorical_parameter_range\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00\x42\x15\n\x13ParameterRangeTypes\"\xdd\x01\n\x0fParameterRanges\x12_\n\x13parameter_range_map\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry\x1ai\n\x16ParameterRangeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOf:\x02\x38\x01*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n0flyteidl/plugins/sagemaker/parameterranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x8d\x01\n\x18\x43ontinuousParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x01\x12\x11\n\tmin_value\x18\x02 \x01(\x01\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x8a\x01\n\x15IntegerParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x03\x12\x11\n\tmin_value\x18\x02 \x01(\x03\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"+\n\x19\x43\x61tegoricalParameterRange\x12\x0e\n\x06values\x18\x01 \x03(\t\"\xbd\x02\n\x13ParameterRangeOneOf\x12Z\n\x1a\x63ontinuous_parameter_range\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00\x12T\n\x17integer_parameter_range\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00\x12\\\n\x1b\x63\x61tegorical_parameter_range\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00\x42\x16\n\x14parameter_range_type\"\xdd\x01\n\x0fParameterRanges\x12_\n\x13parameter_range_map\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry\x1ai\n\x16ParameterRangeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOf:\x02\x38\x01*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') ) _HYPERPARAMETERSCALINGTYPE = _descriptor.EnumDescriptor( @@ -49,8 +49,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=953, - serialized_end=1043, + serialized_start=954, + serialized_end=1044, ) _sym_db.RegisterEnumDescriptor(_HYPERPARAMETERSCALINGTYPE) @@ -116,15 +116,15 @@ fields=[ _descriptor.FieldDescriptor( name='max_value', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.max_value', index=0, - number=1, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='min_value', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.min_value', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -223,11 +223,11 @@ extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( - name='ParameterRangeTypes', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.ParameterRangeTypes', + name='parameter_range_type', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.parameter_range_type', index=0, containing_type=None, fields=[]), ], serialized_start=411, - serialized_end=727, + serialized_end=728, ) @@ -264,8 +264,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=846, - serialized_end=951, + serialized_start=847, + serialized_end=952, ) _PARAMETERRANGES = _descriptor.Descriptor( @@ -294,8 +294,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=730, - serialized_end=951, + serialized_start=731, + serialized_end=952, ) _CONTINUOUSPARAMETERRANGE.fields_by_name['scaling_type'].enum_type = _HYPERPARAMETERSCALINGTYPE @@ -303,15 +303,15 @@ _PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range'].message_type = _CONTINUOUSPARAMETERRANGE _PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range'].message_type = _INTEGERPARAMETERRANGE _PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range'].message_type = _CATEGORICALPARAMETERRANGE -_PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'].fields.append( +_PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'].fields.append( _PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range']) -_PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'] -_PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'].fields.append( +_PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'] +_PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'].fields.append( _PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range']) -_PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'] -_PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'].fields.append( +_PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'] +_PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'].fields.append( _PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range']) -_PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['ParameterRangeTypes'] +_PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'] _PARAMETERRANGES_PARAMETERRANGEMAPENTRY.fields_by_name['value'].message_type = _PARAMETERRANGEONEOF _PARAMETERRANGES_PARAMETERRANGEMAPENTRY.containing_type = _PARAMETERRANGES _PARAMETERRANGES.fields_by_name['parameter_range_map'].message_type = _PARAMETERRANGES_PARAMETERRANGEMAPENTRY diff --git a/package.json b/package.json index ec0c20286..7fdc4b2d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.17.33b2", + "version": "0.17.33b3", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/protos/flyteidl/plugins/sagemaker/parameterranges.proto b/protos/flyteidl/plugins/sagemaker/parameterranges.proto index 2b2e8aba1..480a90169 100644 --- a/protos/flyteidl/plugins/sagemaker/parameterranges.proto +++ b/protos/flyteidl/plugins/sagemaker/parameterranges.proto @@ -18,8 +18,8 @@ message ContinuousParameterRange { } message IntegerParameterRange { - float max_value = 1; - float min_value = 2; + int64 max_value = 1; + int64 min_value = 2; HyperparameterScalingType scaling_type = 3; } @@ -28,7 +28,7 @@ message CategoricalParameterRange { } message ParameterRangeOneOf { - oneof ParameterRangeTypes { + oneof parameter_range_type { ContinuousParameterRange continuous_parameter_range = 1; IntegerParameterRange integer_parameter_range = 2; CategoricalParameterRange categorical_parameter_range = 3; diff --git a/setup.py b/setup.py index 86754a7d2..b300e3175 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.17.33b2' +__version__ = '0.17.33b3' setup( name='flyteidl', From bd58f82d3807f320bcd326c4f86ea0eab88df842 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Fri, 19 Jun 2020 00:07:14 -0700 Subject: [PATCH 12/64] refactor sagemaker messages and filenames --- .../{hpojob.grpc.pb.cc => hpo_job.grpc.pb.cc} | 6 +- .../{hpojob.grpc.pb.h => hpo_job.grpc.pb.h} | 10 +- .../flyteidl/plugins/sagemaker/hpo_job.pb.cc | 1457 +++++++ .../flyteidl/plugins/sagemaker/hpo_job.pb.h | 935 +++++ .../flyteidl/plugins/sagemaker/hpojob.pb.cc | 909 ----- .../flyteidl/plugins/sagemaker/hpojob.pb.h | 561 --- ...grpc.pb.cc => parameter_ranges.grpc.pb.cc} | 6 +- ...s.grpc.pb.h => parameter_ranges.grpc.pb.h} | 10 +- ...terranges.pb.cc => parameter_ranges.pb.cc} | 206 +- ...meterranges.pb.h => parameter_ranges.pb.h} | 24 +- ...job.grpc.pb.cc => training_job.grpc.pb.cc} | 6 +- ...ngjob.grpc.pb.h => training_job.grpc.pb.h} | 10 +- .../{trainingjob.pb.cc => training_job.pb.cc} | 1731 +++----- .../{trainingjob.pb.h => training_job.pb.h} | 1224 ++---- .../flyteidl/plugins/sagemaker/hpo_job.pb.go | 309 ++ .../plugins/sagemaker/hpo_job.pb.validate.go | 276 ++ .../flyteidl/plugins/sagemaker/hpojob.pb.go | 184 - .../plugins/sagemaker/hpojob.pb.validate.go | 184 - ...terranges.pb.go => parameter_ranges.pb.go} | 88 +- ...ate.go => parameter_ranges.pb.validate.go} | 4 +- .../plugins/sagemaker/training_job.pb.go | 395 ++ ...alidate.go => training_job.pb.validate.go} | 144 +- .../plugins/sagemaker/trainingjob.pb.go | 436 --- .../flyteidl/plugins/sagemaker/Hpojob.java | 1896 +++++++-- ...es.java => ParameterRangesOuterClass.java} | 766 ++-- ...ingjob.java => TrainingJobOuterClass.java} | 3484 +++++------------ .../plugins/sagemaker/hpo_job.proto.rst | 153 + .../plugins/sagemaker/hpojob.proto.rst | 82 - .../flyteidl/plugins/sagemaker/index.rst | 6 +- ...s.proto.rst => parameter_ranges.proto.rst} | 18 +- ...ngjob.proto.rst => training_job.proto.rst} | 154 +- .../flyteidl/plugins/sagemaker/hpo_job_pb2.py | 268 ++ ...hpojob_pb2_grpc.py => hpo_job_pb2_grpc.py} | 0 .../flyteidl/plugins/sagemaker/hpojob_pb2.py | 160 - ...rranges_pb2.py => parameter_ranges_pb2.py} | 46 +- ...2_grpc.py => parameter_ranges_pb2_grpc.py} | 0 ...trainingjob_pb2.py => training_job_pb2.py} | 232 +- ...b_pb2_grpc.py => training_job_pb2_grpc.py} | 0 .../flyteidl/plugins/sagemaker/hpo_job.proto | 41 + .../flyteidl/plugins/sagemaker/hpojob.proto | 24 - ...terranges.proto => parameter_ranges.proto} | 0 .../plugins/sagemaker/training_job.proto | 45 + .../plugins/sagemaker/trainingjob.proto | 45 - 43 files changed, 8029 insertions(+), 8506 deletions(-) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{hpojob.grpc.pb.cc => hpo_job.grpc.pb.cc} (82%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{hpojob.grpc.pb.h => hpo_job.grpc.pb.h} (78%) create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h rename gen/pb-cpp/flyteidl/plugins/sagemaker/{parameterranges.grpc.pb.cc => parameter_ranges.grpc.pb.cc} (80%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{parameterranges.grpc.pb.h => parameter_ranges.grpc.pb.h} (77%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{parameterranges.pb.cc => parameter_ranges.pb.cc} (92%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{parameterranges.pb.h => parameter_ranges.pb.h} (99%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{trainingjob.grpc.pb.cc => training_job.grpc.pb.cc} (81%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{trainingjob.grpc.pb.h => training_job.grpc.pb.h} (77%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{trainingjob.pb.cc => training_job.pb.cc} (57%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{trainingjob.pb.h => training_job.pb.h} (51%) create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go delete mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go delete mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go rename gen/pb-go/flyteidl/plugins/sagemaker/{parameterranges.pb.go => parameter_ranges.pb.go} (78%) rename gen/pb-go/flyteidl/plugins/sagemaker/{parameterranges.pb.validate.go => parameter_ranges.pb.validate.go} (98%) create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go rename gen/pb-go/flyteidl/plugins/sagemaker/{trainingjob.pb.validate.go => training_job.pb.validate.go} (72%) delete mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go rename gen/pb-java/flyteidl/plugins/sagemaker/{Parameterranges.java => ParameterRangesOuterClass.java} (74%) rename gen/pb-java/flyteidl/plugins/sagemaker/{Trainingjob.java => TrainingJobOuterClass.java} (51%) create mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst delete mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst rename gen/pb-protodoc/flyteidl/plugins/sagemaker/{parameterranges.proto.rst => parameter_ranges.proto.rst} (94%) rename gen/pb-protodoc/flyteidl/plugins/sagemaker/{trainingjob.proto.rst => training_job.proto.rst} (54%) create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py rename gen/pb_python/flyteidl/plugins/sagemaker/{hpojob_pb2_grpc.py => hpo_job_pb2_grpc.py} (100%) delete mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py rename gen/pb_python/flyteidl/plugins/sagemaker/{parameterranges_pb2.py => parameter_ranges_pb2.py} (84%) rename gen/pb_python/flyteidl/plugins/sagemaker/{parameterranges_pb2_grpc.py => parameter_ranges_pb2_grpc.py} (100%) rename gen/pb_python/flyteidl/plugins/sagemaker/{trainingjob_pb2.py => training_job_pb2.py} (55%) rename gen/pb_python/flyteidl/plugins/sagemaker/{trainingjob_pb2_grpc.py => training_job_pb2_grpc.py} (100%) create mode 100644 protos/flyteidl/plugins/sagemaker/hpo_job.proto delete mode 100644 protos/flyteidl/plugins/sagemaker/hpojob.proto rename protos/flyteidl/plugins/sagemaker/{parameterranges.proto => parameter_ranges.proto} (100%) create mode 100644 protos/flyteidl/plugins/sagemaker/training_job.proto delete mode 100644 protos/flyteidl/plugins/sagemaker/trainingjob.proto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.cc similarity index 82% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.cc index 37c9c99a7..e7c373c24 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.cc @@ -1,9 +1,9 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/hpojob.proto +// source: flyteidl/plugins/sagemaker/hpo_job.proto -#include "flyteidl/plugins/sagemaker/hpojob.pb.h" -#include "flyteidl/plugins/sagemaker/hpojob.grpc.pb.h" +#include "flyteidl/plugins/sagemaker/hpo_job.pb.h" +#include "flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h" #include #include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h similarity index 78% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h index a4849ff1f..13d190835 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h @@ -1,10 +1,10 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/hpojob.proto -#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto__INCLUDED +// source: flyteidl/plugins/sagemaker/hpo_job.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto__INCLUDED -#include "flyteidl/plugins/sagemaker/hpojob.pb.h" +#include "flyteidl/plugins/sagemaker/hpo_job.pb.h" #include #include @@ -46,4 +46,4 @@ namespace sagemaker { } // namespace flyteidl -#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto__INCLUDED +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc new file mode 100644 index 000000000..205171782 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc @@ -0,0 +1,1457 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/hpo_job.proto + +#include "flyteidl/plugins/sagemaker/hpo_job.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class HyperparameterTuningObjectiveDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HyperparameterTuningObjective_default_instance_; +class HPOJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HPOJob_default_instance_; +class HPOJobConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HPOJobConfig_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, {}}; + +static void InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HPOJob_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HPOJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HPOJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { + &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; + +static void InitDefaultsHPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HPOJobConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HPOJobConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, + &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[3]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[3]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, objective_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, metric_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, training_job_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, max_number_of_training_jobs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, max_parallel_training_jobs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, hyperparameter_ranges_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, tuning_strategy_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, tuning_objective_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, training_job_early_stopping_type_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective)}, + { 7, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJob)}, + { 15, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJobConfig)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJob_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, "flyteidl/plugins/sagemaker/hpo_job.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[] = + "\n(flyteidl/plugins/sagemaker/hpo_job.pro" + "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" + "/plugins/sagemaker/parameter_ranges.prot" + "o\032-flyteidl/plugins/sagemaker/training_j" + "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" + "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" + "ugins.sagemaker.HyperparameterTuningObje" + "ctive.HyperparameterTuningObjectiveType\022" + "\023\n\013metric_name\030\002 \001(\t\"\?\n!HyperparameterTu" + "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" + "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" + ".flyteidl.plugins.sagemaker.TrainingJob\022" + "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" + "max_parallel_training_jobs\030\003 \001(\003\"\341\003\n\014HPO" + "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" + "2+.flyteidl.plugins.sagemaker.ParameterR" + "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" + "l.plugins.sagemaker.HPOJobConfig.Hyperpa" + "rameterTuningStrategy\022S\n\020tuning_objectiv" + "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" + "erparameterTuningObjective\022o\n training_j" + "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." + "plugins.sagemaker.HPOJobConfig.TrainingJ" + "obEarlyStoppingType\",\n\034HyperparameterTun" + "ingStrategy\022\014\n\010BAYESIAN\020\000\"1\n\034TrainingJob" + "EarlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001B5Z3" + "github.com/lyft/flyteidl/gen/pb-go/flyte" + "idl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, + "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1099, +}; + +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, + ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[0]; +} +bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::MINIMIZE; +const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::MAXIMIZE; +const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::HyperparameterTuningObjectiveType_MIN; +const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::HyperparameterTuningObjectiveType_MAX; +const int HyperparameterTuningObjective::HyperparameterTuningObjectiveType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* HPOJobConfig_HyperparameterTuningStrategy_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[1]; +} +bool HPOJobConfig_HyperparameterTuningStrategy_IsValid(int value) { + switch (value) { + case 0: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::BAYESIAN; +const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::HyperparameterTuningStrategy_MIN; +const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::HyperparameterTuningStrategy_MAX; +const int HPOJobConfig::HyperparameterTuningStrategy_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* HPOJobConfig_TrainingJobEarlyStoppingType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[2]; +} +bool HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::OFF; +const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::AUTO; +const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::TrainingJobEarlyStoppingType_MIN; +const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::TrainingJobEarlyStoppingType_MAX; +const int HPOJobConfig::TrainingJobEarlyStoppingType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void HyperparameterTuningObjective::InitAsDefaultInstance() { +} +class HyperparameterTuningObjective::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HyperparameterTuningObjective::kObjectiveTypeFieldNumber; +const int HyperparameterTuningObjective::kMetricNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HyperparameterTuningObjective::HyperparameterTuningObjective() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +} +HyperparameterTuningObjective::HyperparameterTuningObjective(const HyperparameterTuningObjective& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.metric_name().size() > 0) { + metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); + } + objective_type_ = from.objective_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +} + +void HyperparameterTuningObjective::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + objective_type_ = 0; +} + +HyperparameterTuningObjective::~HyperparameterTuningObjective() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + SharedDtor(); +} + +void HyperparameterTuningObjective::SharedDtor() { + metric_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void HyperparameterTuningObjective::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HyperparameterTuningObjective& HyperparameterTuningObjective::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void HyperparameterTuningObjective::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + objective_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HyperparameterTuningObjective::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_objective_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string metric_name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); + object = msg->mutable_metric_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HyperparameterTuningObjective::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_objective_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string metric_name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_metric_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric_name().data(), static_cast(this->metric_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HyperparameterTuningObjective::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + if (this->objective_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->objective_type(), output); + } + + // string metric_name = 2; + if (this->metric_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric_name().data(), static_cast(this->metric_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->metric_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +} + +::google::protobuf::uint8* HyperparameterTuningObjective::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + if (this->objective_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->objective_type(), target); + } + + // string metric_name = 2; + if (this->metric_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric_name().data(), static_cast(this->metric_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->metric_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + return target; +} + +size_t HyperparameterTuningObjective::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string metric_name = 2; + if (this->metric_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->metric_name()); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + if (this->objective_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->objective_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HyperparameterTuningObjective::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + GOOGLE_DCHECK_NE(&from, this); + const HyperparameterTuningObjective* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + MergeFrom(*source); + } +} + +void HyperparameterTuningObjective::MergeFrom(const HyperparameterTuningObjective& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.metric_name().size() > 0) { + + metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); + } + if (from.objective_type() != 0) { + set_objective_type(from.objective_type()); + } +} + +void HyperparameterTuningObjective::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HyperparameterTuningObjective::CopyFrom(const HyperparameterTuningObjective& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HyperparameterTuningObjective::IsInitialized() const { + return true; +} + +void HyperparameterTuningObjective::Swap(HyperparameterTuningObjective* other) { + if (other == this) return; + InternalSwap(other); +} +void HyperparameterTuningObjective::InternalSwap(HyperparameterTuningObjective* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + metric_name_.Swap(&other->metric_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(objective_type_, other->objective_type_); +} + +::google::protobuf::Metadata HyperparameterTuningObjective::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void HPOJob::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_HPOJob_default_instance_._instance.get_mutable()->training_job_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJob*>( + ::flyteidl::plugins::sagemaker::TrainingJob::internal_default_instance()); +} +class HPOJob::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::TrainingJob& training_job(const HPOJob* msg); +}; + +const ::flyteidl::plugins::sagemaker::TrainingJob& +HPOJob::HasBitSetters::training_job(const HPOJob* msg) { + return *msg->training_job_; +} +void HPOJob::clear_training_job() { + if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { + delete training_job_; + } + training_job_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HPOJob::kTrainingJobFieldNumber; +const int HPOJob::kMaxNumberOfTrainingJobsFieldNumber; +const int HPOJob::kMaxParallelTrainingJobsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HPOJob::HPOJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJob) +} +HPOJob::HPOJob(const HPOJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_training_job()) { + training_job_ = new ::flyteidl::plugins::sagemaker::TrainingJob(*from.training_job_); + } else { + training_job_ = nullptr; + } + ::memcpy(&max_number_of_training_jobs_, &from.max_number_of_training_jobs_, + static_cast(reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJob) +} + +void HPOJob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + ::memset(&training_job_, 0, static_cast( + reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&training_job_)) + sizeof(max_parallel_training_jobs_)); +} + +HPOJob::~HPOJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJob) + SharedDtor(); +} + +void HPOJob::SharedDtor() { + if (this != internal_default_instance()) delete training_job_; +} + +void HPOJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HPOJob& HPOJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void HPOJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { + delete training_job_; + } + training_job_ = nullptr; + ::memset(&max_number_of_training_jobs_, 0, static_cast( + reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HPOJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJob::_InternalParse; + object = msg->mutable_training_job(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // int64 max_number_of_training_jobs = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_max_number_of_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 max_parallel_training_jobs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_max_parallel_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HPOJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_training_job())); + } else { + goto handle_unusual; + } + break; + } + + // int64 max_number_of_training_jobs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &max_number_of_training_jobs_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 max_parallel_training_jobs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &max_parallel_training_jobs_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HPOJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + if (this->has_training_job()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::training_job(this), output); + } + + // int64 max_number_of_training_jobs = 2; + if (this->max_number_of_training_jobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max_number_of_training_jobs(), output); + } + + // int64 max_parallel_training_jobs = 3; + if (this->max_parallel_training_jobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->max_parallel_training_jobs(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJob) +} + +::google::protobuf::uint8* HPOJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + if (this->has_training_job()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::training_job(this), target); + } + + // int64 max_number_of_training_jobs = 2; + if (this->max_number_of_training_jobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max_number_of_training_jobs(), target); + } + + // int64 max_parallel_training_jobs = 3; + if (this->max_parallel_training_jobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->max_parallel_training_jobs(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJob) + return target; +} + +size_t HPOJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + if (this->has_training_job()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *training_job_); + } + + // int64 max_number_of_training_jobs = 2; + if (this->max_number_of_training_jobs() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max_number_of_training_jobs()); + } + + // int64 max_parallel_training_jobs = 3; + if (this->max_parallel_training_jobs() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max_parallel_training_jobs()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HPOJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJob) + GOOGLE_DCHECK_NE(&from, this); + const HPOJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJob) + MergeFrom(*source); + } +} + +void HPOJob::MergeFrom(const HPOJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_training_job()) { + mutable_training_job()->::flyteidl::plugins::sagemaker::TrainingJob::MergeFrom(from.training_job()); + } + if (from.max_number_of_training_jobs() != 0) { + set_max_number_of_training_jobs(from.max_number_of_training_jobs()); + } + if (from.max_parallel_training_jobs() != 0) { + set_max_parallel_training_jobs(from.max_parallel_training_jobs()); + } +} + +void HPOJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HPOJob::CopyFrom(const HPOJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HPOJob::IsInitialized() const { + return true; +} + +void HPOJob::Swap(HPOJob* other) { + if (other == this) return; + InternalSwap(other); +} +void HPOJob::InternalSwap(HPOJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(training_job_, other->training_job_); + swap(max_number_of_training_jobs_, other->max_number_of_training_jobs_); + swap(max_parallel_training_jobs_, other->max_parallel_training_jobs_); +} + +::google::protobuf::Metadata HPOJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void HPOJobConfig::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_._instance.get_mutable()->hyperparameter_ranges_ = const_cast< ::flyteidl::plugins::sagemaker::ParameterRanges*>( + ::flyteidl::plugins::sagemaker::ParameterRanges::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_._instance.get_mutable()->tuning_objective_ = const_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective*>( + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::internal_default_instance()); +} +class HPOJobConfig::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::ParameterRanges& hyperparameter_ranges(const HPOJobConfig* msg); + static const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& tuning_objective(const HPOJobConfig* msg); +}; + +const ::flyteidl::plugins::sagemaker::ParameterRanges& +HPOJobConfig::HasBitSetters::hyperparameter_ranges(const HPOJobConfig* msg) { + return *msg->hyperparameter_ranges_; +} +const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& +HPOJobConfig::HasBitSetters::tuning_objective(const HPOJobConfig* msg) { + return *msg->tuning_objective_; +} +void HPOJobConfig::clear_hyperparameter_ranges() { + if (GetArenaNoVirtual() == nullptr && hyperparameter_ranges_ != nullptr) { + delete hyperparameter_ranges_; + } + hyperparameter_ranges_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HPOJobConfig::kHyperparameterRangesFieldNumber; +const int HPOJobConfig::kTuningStrategyFieldNumber; +const int HPOJobConfig::kTuningObjectiveFieldNumber; +const int HPOJobConfig::kTrainingJobEarlyStoppingTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HPOJobConfig::HPOJobConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJobConfig) +} +HPOJobConfig::HPOJobConfig(const HPOJobConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_hyperparameter_ranges()) { + hyperparameter_ranges_ = new ::flyteidl::plugins::sagemaker::ParameterRanges(*from.hyperparameter_ranges_); + } else { + hyperparameter_ranges_ = nullptr; + } + if (from.has_tuning_objective()) { + tuning_objective_ = new ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective(*from.tuning_objective_); + } else { + tuning_objective_ = nullptr; + } + ::memcpy(&tuning_strategy_, &from.tuning_strategy_, + static_cast(reinterpret_cast(&training_job_early_stopping_type_) - + reinterpret_cast(&tuning_strategy_)) + sizeof(training_job_early_stopping_type_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJobConfig) +} + +void HPOJobConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + ::memset(&hyperparameter_ranges_, 0, static_cast( + reinterpret_cast(&training_job_early_stopping_type_) - + reinterpret_cast(&hyperparameter_ranges_)) + sizeof(training_job_early_stopping_type_)); +} + +HPOJobConfig::~HPOJobConfig() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJobConfig) + SharedDtor(); +} + +void HPOJobConfig::SharedDtor() { + if (this != internal_default_instance()) delete hyperparameter_ranges_; + if (this != internal_default_instance()) delete tuning_objective_; +} + +void HPOJobConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HPOJobConfig& HPOJobConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void HPOJobConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJobConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && hyperparameter_ranges_ != nullptr) { + delete hyperparameter_ranges_; + } + hyperparameter_ranges_ = nullptr; + if (GetArenaNoVirtual() == nullptr && tuning_objective_ != nullptr) { + delete tuning_objective_; + } + tuning_objective_ = nullptr; + ::memset(&tuning_strategy_, 0, static_cast( + reinterpret_cast(&training_job_early_stopping_type_) - + reinterpret_cast(&tuning_strategy_)) + sizeof(training_job_early_stopping_type_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HPOJobConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::ParameterRanges::_InternalParse; + object = msg->mutable_hyperparameter_ranges(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_tuning_strategy(static_cast<::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::_InternalParse; + object = msg->mutable_tuning_objective(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_training_job_early_stopping_type(static_cast<::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HPOJobConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJobConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_hyperparameter_ranges())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_tuning_strategy(static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_tuning_objective())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_training_job_early_stopping_type(static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJobConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJobConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HPOJobConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJobConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + if (this->has_hyperparameter_ranges()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::hyperparameter_ranges(this), output); + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + if (this->tuning_strategy() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->tuning_strategy(), output); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + if (this->has_tuning_objective()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::tuning_objective(this), output); + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + if (this->training_job_early_stopping_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->training_job_early_stopping_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJobConfig) +} + +::google::protobuf::uint8* HPOJobConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJobConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + if (this->has_hyperparameter_ranges()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::hyperparameter_ranges(this), target); + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + if (this->tuning_strategy() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->tuning_strategy(), target); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + if (this->has_tuning_objective()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::tuning_objective(this), target); + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + if (this->training_job_early_stopping_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->training_job_early_stopping_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJobConfig) + return target; +} + +size_t HPOJobConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJobConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + if (this->has_hyperparameter_ranges()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *hyperparameter_ranges_); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + if (this->has_tuning_objective()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *tuning_objective_); + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + if (this->tuning_strategy() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->tuning_strategy()); + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + if (this->training_job_early_stopping_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->training_job_early_stopping_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HPOJobConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) + GOOGLE_DCHECK_NE(&from, this); + const HPOJobConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJobConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJobConfig) + MergeFrom(*source); + } +} + +void HPOJobConfig::MergeFrom(const HPOJobConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_hyperparameter_ranges()) { + mutable_hyperparameter_ranges()->::flyteidl::plugins::sagemaker::ParameterRanges::MergeFrom(from.hyperparameter_ranges()); + } + if (from.has_tuning_objective()) { + mutable_tuning_objective()->::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::MergeFrom(from.tuning_objective()); + } + if (from.tuning_strategy() != 0) { + set_tuning_strategy(from.tuning_strategy()); + } + if (from.training_job_early_stopping_type() != 0) { + set_training_job_early_stopping_type(from.training_job_early_stopping_type()); + } +} + +void HPOJobConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HPOJobConfig::CopyFrom(const HPOJobConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HPOJobConfig::IsInitialized() const { + return true; +} + +void HPOJobConfig::Swap(HPOJobConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void HPOJobConfig::InternalSwap(HPOJobConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(hyperparameter_ranges_, other->hyperparameter_ranges_); + swap(tuning_objective_, other->tuning_objective_); + swap(tuning_strategy_, other->tuning_strategy_); + swap(training_job_early_stopping_type_, other->training_job_early_stopping_type_); +} + +::google::protobuf::Metadata HPOJobConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJob >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJobConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJobConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJobConfig >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h new file mode 100644 index 000000000..e9a4936a4 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h @@ -0,0 +1,935 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/hpo_job.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" +#include "flyteidl/plugins/sagemaker/training_job.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[3] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class HPOJob; +class HPOJobDefaultTypeInternal; +extern HPOJobDefaultTypeInternal _HPOJob_default_instance_; +class HPOJobConfig; +class HPOJobConfigDefaultTypeInternal; +extern HPOJobConfigDefaultTypeInternal _HPOJobConfig_default_instance_; +class HyperparameterTuningObjective; +class HyperparameterTuningObjectiveDefaultTypeInternal; +extern HyperparameterTuningObjectiveDefaultTypeInternal _HyperparameterTuningObjective_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJob>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HPOJobConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobConfig>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +enum HyperparameterTuningObjective_HyperparameterTuningObjectiveType { + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE = 0, + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE = 1, + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjective_HyperparameterTuningObjectiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjective_HyperparameterTuningObjectiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(int value); +const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MIN = HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE; +const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX = HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE; +const int HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_ARRAYSIZE = HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(); +inline const ::std::string& HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Name(HyperparameterTuningObjective_HyperparameterTuningObjectiveType value) { + return ::google::protobuf::internal::NameOfEnum( + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(), value); +} +inline bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Parse( + const ::std::string& name, HyperparameterTuningObjective_HyperparameterTuningObjectiveType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(), name, value); +} +enum HPOJobConfig_HyperparameterTuningStrategy { + HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN = 0, + HPOJobConfig_HyperparameterTuningStrategy_HPOJobConfig_HyperparameterTuningStrategy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HPOJobConfig_HyperparameterTuningStrategy_HPOJobConfig_HyperparameterTuningStrategy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HPOJobConfig_HyperparameterTuningStrategy_IsValid(int value); +const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MIN = HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN; +const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX = HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN; +const int HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_ARRAYSIZE = HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HPOJobConfig_HyperparameterTuningStrategy_descriptor(); +inline const ::std::string& HPOJobConfig_HyperparameterTuningStrategy_Name(HPOJobConfig_HyperparameterTuningStrategy value) { + return ::google::protobuf::internal::NameOfEnum( + HPOJobConfig_HyperparameterTuningStrategy_descriptor(), value); +} +inline bool HPOJobConfig_HyperparameterTuningStrategy_Parse( + const ::std::string& name, HPOJobConfig_HyperparameterTuningStrategy* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HPOJobConfig_HyperparameterTuningStrategy_descriptor(), name, value); +} +enum HPOJobConfig_TrainingJobEarlyStoppingType { + HPOJobConfig_TrainingJobEarlyStoppingType_OFF = 0, + HPOJobConfig_TrainingJobEarlyStoppingType_AUTO = 1, + HPOJobConfig_TrainingJobEarlyStoppingType_HPOJobConfig_TrainingJobEarlyStoppingType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HPOJobConfig_TrainingJobEarlyStoppingType_HPOJobConfig_TrainingJobEarlyStoppingType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(int value); +const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MIN = HPOJobConfig_TrainingJobEarlyStoppingType_OFF; +const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX = HPOJobConfig_TrainingJobEarlyStoppingType_AUTO; +const int HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_ARRAYSIZE = HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(); +inline const ::std::string& HPOJobConfig_TrainingJobEarlyStoppingType_Name(HPOJobConfig_TrainingJobEarlyStoppingType value) { + return ::google::protobuf::internal::NameOfEnum( + HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(), value); +} +inline bool HPOJobConfig_TrainingJobEarlyStoppingType_Parse( + const ::std::string& name, HPOJobConfig_TrainingJobEarlyStoppingType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(), name, value); +} +// =================================================================== + +class HyperparameterTuningObjective final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) */ { + public: + HyperparameterTuningObjective(); + virtual ~HyperparameterTuningObjective(); + + HyperparameterTuningObjective(const HyperparameterTuningObjective& from); + + inline HyperparameterTuningObjective& operator=(const HyperparameterTuningObjective& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HyperparameterTuningObjective(HyperparameterTuningObjective&& from) noexcept + : HyperparameterTuningObjective() { + *this = ::std::move(from); + } + + inline HyperparameterTuningObjective& operator=(HyperparameterTuningObjective&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HyperparameterTuningObjective& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HyperparameterTuningObjective* internal_default_instance() { + return reinterpret_cast( + &_HyperparameterTuningObjective_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(HyperparameterTuningObjective* other); + friend void swap(HyperparameterTuningObjective& a, HyperparameterTuningObjective& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HyperparameterTuningObjective* New() const final { + return CreateMaybeMessage(nullptr); + } + + HyperparameterTuningObjective* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HyperparameterTuningObjective& from); + void MergeFrom(const HyperparameterTuningObjective& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HyperparameterTuningObjective* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType; + static const HyperparameterTuningObjectiveType MINIMIZE = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE; + static const HyperparameterTuningObjectiveType MAXIMIZE = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE; + static inline bool HyperparameterTuningObjectiveType_IsValid(int value) { + return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(value); + } + static const HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType_MIN = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MIN; + static const HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType_MAX = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX; + static const int HyperparameterTuningObjectiveType_ARRAYSIZE = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + HyperparameterTuningObjectiveType_descriptor() { + return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(); + } + static inline const ::std::string& HyperparameterTuningObjectiveType_Name(HyperparameterTuningObjectiveType value) { + return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Name(value); + } + static inline bool HyperparameterTuningObjectiveType_Parse(const ::std::string& name, + HyperparameterTuningObjectiveType* value) { + return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string metric_name = 2; + void clear_metric_name(); + static const int kMetricNameFieldNumber = 2; + const ::std::string& metric_name() const; + void set_metric_name(const ::std::string& value); + #if LANG_CXX11 + void set_metric_name(::std::string&& value); + #endif + void set_metric_name(const char* value); + void set_metric_name(const char* value, size_t size); + ::std::string* mutable_metric_name(); + ::std::string* release_metric_name(); + void set_allocated_metric_name(::std::string* metric_name); + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + void clear_objective_type(); + static const int kObjectiveTypeFieldNumber = 1; + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType objective_type() const; + void set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr metric_name_; + int objective_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class HPOJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJob) */ { + public: + HPOJob(); + virtual ~HPOJob(); + + HPOJob(const HPOJob& from); + + inline HPOJob& operator=(const HPOJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HPOJob(HPOJob&& from) noexcept + : HPOJob() { + *this = ::std::move(from); + } + + inline HPOJob& operator=(HPOJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HPOJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HPOJob* internal_default_instance() { + return reinterpret_cast( + &_HPOJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(HPOJob* other); + friend void swap(HPOJob& a, HPOJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HPOJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + HPOJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HPOJob& from); + void MergeFrom(const HPOJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HPOJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + bool has_training_job() const; + void clear_training_job(); + static const int kTrainingJobFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::TrainingJob& training_job() const; + ::flyteidl::plugins::sagemaker::TrainingJob* release_training_job(); + ::flyteidl::plugins::sagemaker::TrainingJob* mutable_training_job(); + void set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job); + + // int64 max_number_of_training_jobs = 2; + void clear_max_number_of_training_jobs(); + static const int kMaxNumberOfTrainingJobsFieldNumber = 2; + ::google::protobuf::int64 max_number_of_training_jobs() const; + void set_max_number_of_training_jobs(::google::protobuf::int64 value); + + // int64 max_parallel_training_jobs = 3; + void clear_max_parallel_training_jobs(); + static const int kMaxParallelTrainingJobsFieldNumber = 3; + ::google::protobuf::int64 max_parallel_training_jobs() const; + void set_max_parallel_training_jobs(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::sagemaker::TrainingJob* training_job_; + ::google::protobuf::int64 max_number_of_training_jobs_; + ::google::protobuf::int64 max_parallel_training_jobs_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class HPOJobConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJobConfig) */ { + public: + HPOJobConfig(); + virtual ~HPOJobConfig(); + + HPOJobConfig(const HPOJobConfig& from); + + inline HPOJobConfig& operator=(const HPOJobConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HPOJobConfig(HPOJobConfig&& from) noexcept + : HPOJobConfig() { + *this = ::std::move(from); + } + + inline HPOJobConfig& operator=(HPOJobConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HPOJobConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HPOJobConfig* internal_default_instance() { + return reinterpret_cast( + &_HPOJobConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(HPOJobConfig* other); + friend void swap(HPOJobConfig& a, HPOJobConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HPOJobConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + HPOJobConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HPOJobConfig& from); + void MergeFrom(const HPOJobConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HPOJobConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef HPOJobConfig_HyperparameterTuningStrategy HyperparameterTuningStrategy; + static const HyperparameterTuningStrategy BAYESIAN = + HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN; + static inline bool HyperparameterTuningStrategy_IsValid(int value) { + return HPOJobConfig_HyperparameterTuningStrategy_IsValid(value); + } + static const HyperparameterTuningStrategy HyperparameterTuningStrategy_MIN = + HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MIN; + static const HyperparameterTuningStrategy HyperparameterTuningStrategy_MAX = + HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX; + static const int HyperparameterTuningStrategy_ARRAYSIZE = + HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + HyperparameterTuningStrategy_descriptor() { + return HPOJobConfig_HyperparameterTuningStrategy_descriptor(); + } + static inline const ::std::string& HyperparameterTuningStrategy_Name(HyperparameterTuningStrategy value) { + return HPOJobConfig_HyperparameterTuningStrategy_Name(value); + } + static inline bool HyperparameterTuningStrategy_Parse(const ::std::string& name, + HyperparameterTuningStrategy* value) { + return HPOJobConfig_HyperparameterTuningStrategy_Parse(name, value); + } + + typedef HPOJobConfig_TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType; + static const TrainingJobEarlyStoppingType OFF = + HPOJobConfig_TrainingJobEarlyStoppingType_OFF; + static const TrainingJobEarlyStoppingType AUTO = + HPOJobConfig_TrainingJobEarlyStoppingType_AUTO; + static inline bool TrainingJobEarlyStoppingType_IsValid(int value) { + return HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(value); + } + static const TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType_MIN = + HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MIN; + static const TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType_MAX = + HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX; + static const int TrainingJobEarlyStoppingType_ARRAYSIZE = + HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + TrainingJobEarlyStoppingType_descriptor() { + return HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(); + } + static inline const ::std::string& TrainingJobEarlyStoppingType_Name(TrainingJobEarlyStoppingType value) { + return HPOJobConfig_TrainingJobEarlyStoppingType_Name(value); + } + static inline bool TrainingJobEarlyStoppingType_Parse(const ::std::string& name, + TrainingJobEarlyStoppingType* value) { + return HPOJobConfig_TrainingJobEarlyStoppingType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + bool has_hyperparameter_ranges() const; + void clear_hyperparameter_ranges(); + static const int kHyperparameterRangesFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::ParameterRanges& hyperparameter_ranges() const; + ::flyteidl::plugins::sagemaker::ParameterRanges* release_hyperparameter_ranges(); + ::flyteidl::plugins::sagemaker::ParameterRanges* mutable_hyperparameter_ranges(); + void set_allocated_hyperparameter_ranges(::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges); + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + bool has_tuning_objective() const; + void clear_tuning_objective(); + static const int kTuningObjectiveFieldNumber = 3; + const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& tuning_objective() const; + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* release_tuning_objective(); + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* mutable_tuning_objective(); + void set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective); + + // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + void clear_tuning_strategy(); + static const int kTuningStrategyFieldNumber = 2; + ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy tuning_strategy() const; + void set_tuning_strategy(::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy value); + + // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + void clear_training_job_early_stopping_type(); + static const int kTrainingJobEarlyStoppingTypeFieldNumber = 4; + ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType training_job_early_stopping_type() const; + void set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges_; + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective_; + int tuning_strategy_; + int training_job_early_stopping_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// HyperparameterTuningObjective + +// .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; +inline void HyperparameterTuningObjective::clear_objective_type() { + objective_type_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::objective_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType >(objective_type_); +} +inline void HyperparameterTuningObjective::set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType value) { + + objective_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type) +} + +// string metric_name = 2; +inline void HyperparameterTuningObjective::clear_metric_name() { + metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& HyperparameterTuningObjective::metric_name() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) + return metric_name_.GetNoArena(); +} +inline void HyperparameterTuningObjective::set_metric_name(const ::std::string& value) { + + metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} +#if LANG_CXX11 +inline void HyperparameterTuningObjective::set_metric_name(::std::string&& value) { + + metric_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} +#endif +inline void HyperparameterTuningObjective::set_metric_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} +inline void HyperparameterTuningObjective::set_metric_name(const char* value, size_t size) { + + metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} +inline ::std::string* HyperparameterTuningObjective::mutable_metric_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) + return metric_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* HyperparameterTuningObjective::release_metric_name() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) + + return metric_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void HyperparameterTuningObjective::set_allocated_metric_name(::std::string* metric_name) { + if (metric_name != nullptr) { + + } else { + + } + metric_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metric_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} + +// ------------------------------------------------------------------- + +// HPOJob + +// .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; +inline bool HPOJob::has_training_job() const { + return this != internal_default_instance() && training_job_ != nullptr; +} +inline const ::flyteidl::plugins::sagemaker::TrainingJob& HPOJob::training_job() const { + const ::flyteidl::plugins::sagemaker::TrainingJob* p = training_job_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.training_job) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::release_training_job() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.training_job) + + ::flyteidl::plugins::sagemaker::TrainingJob* temp = training_job_; + training_job_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::mutable_training_job() { + + if (training_job_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(GetArenaNoVirtual()); + training_job_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.training_job) + return training_job_; +} +inline void HPOJob::set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(training_job_); + } + if (training_job) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + training_job = ::google::protobuf::internal::GetOwnedMessage( + message_arena, training_job, submessage_arena); + } + + } else { + + } + training_job_ = training_job; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.training_job) +} + +// int64 max_number_of_training_jobs = 2; +inline void HPOJob::clear_max_number_of_training_jobs() { + max_number_of_training_jobs_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 HPOJob::max_number_of_training_jobs() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs) + return max_number_of_training_jobs_; +} +inline void HPOJob::set_max_number_of_training_jobs(::google::protobuf::int64 value) { + + max_number_of_training_jobs_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs) +} + +// int64 max_parallel_training_jobs = 3; +inline void HPOJob::clear_max_parallel_training_jobs() { + max_parallel_training_jobs_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 HPOJob::max_parallel_training_jobs() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs) + return max_parallel_training_jobs_; +} +inline void HPOJob::set_max_parallel_training_jobs(::google::protobuf::int64 value) { + + max_parallel_training_jobs_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs) +} + +// ------------------------------------------------------------------- + +// HPOJobConfig + +// .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; +inline bool HPOJobConfig::has_hyperparameter_ranges() const { + return this != internal_default_instance() && hyperparameter_ranges_ != nullptr; +} +inline const ::flyteidl::plugins::sagemaker::ParameterRanges& HPOJobConfig::hyperparameter_ranges() const { + const ::flyteidl::plugins::sagemaker::ParameterRanges* p = hyperparameter_ranges_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::ParameterRanges* HPOJobConfig::release_hyperparameter_ranges() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) + + ::flyteidl::plugins::sagemaker::ParameterRanges* temp = hyperparameter_ranges_; + hyperparameter_ranges_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::ParameterRanges* HPOJobConfig::mutable_hyperparameter_ranges() { + + if (hyperparameter_ranges_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(GetArenaNoVirtual()); + hyperparameter_ranges_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) + return hyperparameter_ranges_; +} +inline void HPOJobConfig::set_allocated_hyperparameter_ranges(::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(hyperparameter_ranges_); + } + if (hyperparameter_ranges) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + hyperparameter_ranges = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hyperparameter_ranges, submessage_arena); + } + + } else { + + } + hyperparameter_ranges_ = hyperparameter_ranges; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) +} + +// .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; +inline void HPOJobConfig::clear_tuning_strategy() { + tuning_strategy_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::tuning_strategy() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy) + return static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy >(tuning_strategy_); +} +inline void HPOJobConfig::set_tuning_strategy(::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy value) { + + tuning_strategy_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy) +} + +// .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; +inline bool HPOJobConfig::has_tuning_objective() const { + return this != internal_default_instance() && tuning_objective_ != nullptr; +} +inline void HPOJobConfig::clear_tuning_objective() { + if (GetArenaNoVirtual() == nullptr && tuning_objective_ != nullptr) { + delete tuning_objective_; + } + tuning_objective_ = nullptr; +} +inline const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& HPOJobConfig::tuning_objective() const { + const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* p = tuning_objective_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HPOJobConfig::release_tuning_objective() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) + + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* temp = tuning_objective_; + tuning_objective_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HPOJobConfig::mutable_tuning_objective() { + + if (tuning_objective_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(GetArenaNoVirtual()); + tuning_objective_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) + return tuning_objective_; +} +inline void HPOJobConfig::set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete tuning_objective_; + } + if (tuning_objective) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + tuning_objective = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tuning_objective, submessage_arena); + } + + } else { + + } + tuning_objective_ = tuning_objective; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) +} + +// .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; +inline void HPOJobConfig::clear_training_job_early_stopping_type() { + training_job_early_stopping_type_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::training_job_early_stopping_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type) + return static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType >(training_job_early_stopping_type_); +} +inline void HPOJobConfig::set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType value) { + + training_job_early_stopping_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType>() { + return ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy>() { + return ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType>() { + return ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc deleted file mode 100644 index 99671a688..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc +++ /dev/null @@ -1,909 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpojob.proto - -#include "flyteidl/plugins/sagemaker/hpojob.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; -namespace flyteidl { -namespace plugins { -namespace sagemaker { -class HPOJobObjectiveDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HPOJobObjective_default_instance_; -class HPOJobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HPOJob_default_instance_; -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsHPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_HPOJobObjective_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::HPOJobObjective(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::HPOJobObjective::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto}, {}}; - -static void InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_HPOJob_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::HPOJob(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::HPOJob::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto}, { - &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[2]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, objective_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobObjective, metric_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, max_number_of_training_jobs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, max_parallel_training_jobs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, training_job_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJobObjective)}, - { 7, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJob)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJobObjective_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJob_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, "flyteidl/plugins/sagemaker/hpojob.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 2, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[] = - "\n\'flyteidl/plugins/sagemaker/hpojob.prot" - "o\022\032flyteidl.plugins.sagemaker\0320flyteidl/" - "plugins/sagemaker/parameterranges.proto\032" - ",flyteidl/plugins/sagemaker/trainingjob." - "proto\"\262\001\n\017HPOJobObjective\022W\n\016objective_t" - "ype\030\001 \001(\0162\?.flyteidl.plugins.sagemaker.H" - "POJobObjective.HPOJobObjectiveType\022\023\n\013me" - "tric_name\030\002 \001(\t\"1\n\023HPOJobObjectiveType\022\014" - "\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\220\001\n\006HPOJob\022#\n" - "\033max_number_of_training_jobs\030\001 \001(\003\022\"\n\032ma" - "x_parallel_training_jobs\030\002 \001(\003\022=\n\014traini" - "ng_job\030\003 \001(\0132\'.flyteidl.plugins.sagemake" - "r.TrainingJobB5Z3github.com/lyft/flyteid" - "l/gen/pb-go/flyteidl/pluginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, - "flyteidl/plugins/sagemaker/hpojob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 556, -}; - -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[2] = - { - ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, - ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, deps, 2); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { -namespace sagemaker { -const ::google::protobuf::EnumDescriptor* HPOJobObjective_HPOJobObjectiveType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[0]; -} -bool HPOJobObjective_HPOJobObjectiveType_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::MINIMIZE; -const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::MAXIMIZE; -const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::HPOJobObjectiveType_MIN; -const HPOJobObjective_HPOJobObjectiveType HPOJobObjective::HPOJobObjectiveType_MAX; -const int HPOJobObjective::HPOJobObjectiveType_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -// =================================================================== - -void HPOJobObjective::InitAsDefaultInstance() { -} -class HPOJobObjective::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJobObjective::kObjectiveTypeFieldNumber; -const int HPOJobObjective::kMetricNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HPOJobObjective::HPOJobObjective() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJobObjective) -} -HPOJobObjective::HPOJobObjective(const HPOJobObjective& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.metric_name().size() > 0) { - metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); - } - objective_type_ = from.objective_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJobObjective) -} - -void HPOJobObjective::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); - metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - objective_type_ = 0; -} - -HPOJobObjective::~HPOJobObjective() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJobObjective) - SharedDtor(); -} - -void HPOJobObjective::SharedDtor() { - metric_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void HPOJobObjective::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const HPOJobObjective& HPOJobObjective::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); - return *internal_default_instance(); -} - - -void HPOJobObjective::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJobObjective) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - objective_type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HPOJobObjective::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_objective_type(static_cast<::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string metric_name = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HPOJobObjective.metric_name"); - object = msg->mutable_metric_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HPOJobObjective::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJobObjective) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_objective_type(static_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string metric_name = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_metric_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metric_name().data(), static_cast(this->metric_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.HPOJobObjective.metric_name")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJobObjective) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJobObjective) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void HPOJobObjective::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJobObjective) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; - if (this->objective_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->objective_type(), output); - } - - // string metric_name = 2; - if (this->metric_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metric_name().data(), static_cast(this->metric_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.HPOJobObjective.metric_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->metric_name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJobObjective) -} - -::google::protobuf::uint8* HPOJobObjective::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJobObjective) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; - if (this->objective_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->objective_type(), target); - } - - // string metric_name = 2; - if (this->metric_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metric_name().data(), static_cast(this->metric_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.HPOJobObjective.metric_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->metric_name(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJobObjective) - return target; -} - -size_t HPOJobObjective::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJobObjective) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string metric_name = 2; - if (this->metric_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->metric_name()); - } - - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; - if (this->objective_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->objective_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void HPOJobObjective::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) - GOOGLE_DCHECK_NE(&from, this); - const HPOJobObjective* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJobObjective) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJobObjective) - MergeFrom(*source); - } -} - -void HPOJobObjective::MergeFrom(const HPOJobObjective& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.metric_name().size() > 0) { - - metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); - } - if (from.objective_type() != 0) { - set_objective_type(from.objective_type()); - } -} - -void HPOJobObjective::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HPOJobObjective::CopyFrom(const HPOJobObjective& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJobObjective) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HPOJobObjective::IsInitialized() const { - return true; -} - -void HPOJobObjective::Swap(HPOJobObjective* other) { - if (other == this) return; - InternalSwap(other); -} -void HPOJobObjective::InternalSwap(HPOJobObjective* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - metric_name_.Swap(&other->metric_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(objective_type_, other->objective_type_); -} - -::google::protobuf::Metadata HPOJobObjective::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void HPOJob::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_HPOJob_default_instance_._instance.get_mutable()->training_job_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJob*>( - ::flyteidl::plugins::sagemaker::TrainingJob::internal_default_instance()); -} -class HPOJob::HasBitSetters { - public: - static const ::flyteidl::plugins::sagemaker::TrainingJob& training_job(const HPOJob* msg); -}; - -const ::flyteidl::plugins::sagemaker::TrainingJob& -HPOJob::HasBitSetters::training_job(const HPOJob* msg) { - return *msg->training_job_; -} -void HPOJob::clear_training_job() { - if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { - delete training_job_; - } - training_job_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJob::kMaxNumberOfTrainingJobsFieldNumber; -const int HPOJob::kMaxParallelTrainingJobsFieldNumber; -const int HPOJob::kTrainingJobFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HPOJob::HPOJob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJob) -} -HPOJob::HPOJob(const HPOJob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_training_job()) { - training_job_ = new ::flyteidl::plugins::sagemaker::TrainingJob(*from.training_job_); - } else { - training_job_ = nullptr; - } - ::memcpy(&max_number_of_training_jobs_, &from.max_number_of_training_jobs_, - static_cast(reinterpret_cast(&max_parallel_training_jobs_) - - reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJob) -} - -void HPOJob::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); - ::memset(&training_job_, 0, static_cast( - reinterpret_cast(&max_parallel_training_jobs_) - - reinterpret_cast(&training_job_)) + sizeof(max_parallel_training_jobs_)); -} - -HPOJob::~HPOJob() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJob) - SharedDtor(); -} - -void HPOJob::SharedDtor() { - if (this != internal_default_instance()) delete training_job_; -} - -void HPOJob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const HPOJob& HPOJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); - return *internal_default_instance(); -} - - -void HPOJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { - delete training_job_; - } - training_job_ = nullptr; - ::memset(&max_number_of_training_jobs_, 0, static_cast( - reinterpret_cast(&max_parallel_training_jobs_) - - reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HPOJob::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // int64 max_number_of_training_jobs = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_max_number_of_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int64 max_parallel_training_jobs = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_max_parallel_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJob::_InternalParse; - object = msg->mutable_training_job(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HPOJob::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJob) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int64 max_number_of_training_jobs = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &max_number_of_training_jobs_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 max_parallel_training_jobs = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &max_parallel_training_jobs_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_training_job())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void HPOJob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 max_number_of_training_jobs = 1; - if (this->max_number_of_training_jobs() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->max_number_of_training_jobs(), output); - } - - // int64 max_parallel_training_jobs = 2; - if (this->max_parallel_training_jobs() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max_parallel_training_jobs(), output); - } - - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; - if (this->has_training_job()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::training_job(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJob) -} - -::google::protobuf::uint8* HPOJob::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 max_number_of_training_jobs = 1; - if (this->max_number_of_training_jobs() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->max_number_of_training_jobs(), target); - } - - // int64 max_parallel_training_jobs = 2; - if (this->max_parallel_training_jobs() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max_parallel_training_jobs(), target); - } - - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; - if (this->has_training_job()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::training_job(this), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJob) - return target; -} - -size_t HPOJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJob) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; - if (this->has_training_job()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *training_job_); - } - - // int64 max_number_of_training_jobs = 1; - if (this->max_number_of_training_jobs() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->max_number_of_training_jobs()); - } - - // int64 max_parallel_training_jobs = 2; - if (this->max_parallel_training_jobs() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->max_parallel_training_jobs()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void HPOJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJob) - GOOGLE_DCHECK_NE(&from, this); - const HPOJob* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJob) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJob) - MergeFrom(*source); - } -} - -void HPOJob::MergeFrom(const HPOJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJob) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_training_job()) { - mutable_training_job()->::flyteidl::plugins::sagemaker::TrainingJob::MergeFrom(from.training_job()); - } - if (from.max_number_of_training_jobs() != 0) { - set_max_number_of_training_jobs(from.max_number_of_training_jobs()); - } - if (from.max_parallel_training_jobs() != 0) { - set_max_parallel_training_jobs(from.max_parallel_training_jobs()); - } -} - -void HPOJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HPOJob::CopyFrom(const HPOJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HPOJob::IsInitialized() const { - return true; -} - -void HPOJob::Swap(HPOJob* other) { - if (other == this) return; - InternalSwap(other); -} -void HPOJob::InternalSwap(HPOJob* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(training_job_, other->training_job_); - swap(max_number_of_training_jobs_, other->max_number_of_training_jobs_); - swap(max_parallel_training_jobs_, other->max_parallel_training_jobs_); -} - -::google::protobuf::Metadata HPOJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJobObjective* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJobObjective >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJobObjective >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJob >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h deleted file mode 100644 index 2e5abdb3f..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h +++ /dev/null @@ -1,561 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpojob.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" -#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[2] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto(); -namespace flyteidl { -namespace plugins { -namespace sagemaker { -class HPOJob; -class HPOJobDefaultTypeInternal; -extern HPOJobDefaultTypeInternal _HPOJob_default_instance_; -class HPOJobObjective; -class HPOJobObjectiveDefaultTypeInternal; -extern HPOJobObjectiveDefaultTypeInternal _HPOJobObjective_default_instance_; -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJob>(Arena*); -template<> ::flyteidl::plugins::sagemaker::HPOJobObjective* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobObjective>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { -namespace sagemaker { - -enum HPOJobObjective_HPOJobObjectiveType { - HPOJobObjective_HPOJobObjectiveType_MINIMIZE = 0, - HPOJobObjective_HPOJobObjectiveType_MAXIMIZE = 1, - HPOJobObjective_HPOJobObjectiveType_HPOJobObjective_HPOJobObjectiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - HPOJobObjective_HPOJobObjectiveType_HPOJobObjective_HPOJobObjectiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool HPOJobObjective_HPOJobObjectiveType_IsValid(int value); -const HPOJobObjective_HPOJobObjectiveType HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MIN = HPOJobObjective_HPOJobObjectiveType_MINIMIZE; -const HPOJobObjective_HPOJobObjectiveType HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MAX = HPOJobObjective_HPOJobObjectiveType_MAXIMIZE; -const int HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_ARRAYSIZE = HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* HPOJobObjective_HPOJobObjectiveType_descriptor(); -inline const ::std::string& HPOJobObjective_HPOJobObjectiveType_Name(HPOJobObjective_HPOJobObjectiveType value) { - return ::google::protobuf::internal::NameOfEnum( - HPOJobObjective_HPOJobObjectiveType_descriptor(), value); -} -inline bool HPOJobObjective_HPOJobObjectiveType_Parse( - const ::std::string& name, HPOJobObjective_HPOJobObjectiveType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HPOJobObjective_HPOJobObjectiveType_descriptor(), name, value); -} -// =================================================================== - -class HPOJobObjective final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJobObjective) */ { - public: - HPOJobObjective(); - virtual ~HPOJobObjective(); - - HPOJobObjective(const HPOJobObjective& from); - - inline HPOJobObjective& operator=(const HPOJobObjective& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HPOJobObjective(HPOJobObjective&& from) noexcept - : HPOJobObjective() { - *this = ::std::move(from); - } - - inline HPOJobObjective& operator=(HPOJobObjective&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const HPOJobObjective& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HPOJobObjective* internal_default_instance() { - return reinterpret_cast( - &_HPOJobObjective_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(HPOJobObjective* other); - friend void swap(HPOJobObjective& a, HPOJobObjective& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HPOJobObjective* New() const final { - return CreateMaybeMessage(nullptr); - } - - HPOJobObjective* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HPOJobObjective& from); - void MergeFrom(const HPOJobObjective& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HPOJobObjective* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef HPOJobObjective_HPOJobObjectiveType HPOJobObjectiveType; - static const HPOJobObjectiveType MINIMIZE = - HPOJobObjective_HPOJobObjectiveType_MINIMIZE; - static const HPOJobObjectiveType MAXIMIZE = - HPOJobObjective_HPOJobObjectiveType_MAXIMIZE; - static inline bool HPOJobObjectiveType_IsValid(int value) { - return HPOJobObjective_HPOJobObjectiveType_IsValid(value); - } - static const HPOJobObjectiveType HPOJobObjectiveType_MIN = - HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MIN; - static const HPOJobObjectiveType HPOJobObjectiveType_MAX = - HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_MAX; - static const int HPOJobObjectiveType_ARRAYSIZE = - HPOJobObjective_HPOJobObjectiveType_HPOJobObjectiveType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - HPOJobObjectiveType_descriptor() { - return HPOJobObjective_HPOJobObjectiveType_descriptor(); - } - static inline const ::std::string& HPOJobObjectiveType_Name(HPOJobObjectiveType value) { - return HPOJobObjective_HPOJobObjectiveType_Name(value); - } - static inline bool HPOJobObjectiveType_Parse(const ::std::string& name, - HPOJobObjectiveType* value) { - return HPOJobObjective_HPOJobObjectiveType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string metric_name = 2; - void clear_metric_name(); - static const int kMetricNameFieldNumber = 2; - const ::std::string& metric_name() const; - void set_metric_name(const ::std::string& value); - #if LANG_CXX11 - void set_metric_name(::std::string&& value); - #endif - void set_metric_name(const char* value); - void set_metric_name(const char* value, size_t size); - ::std::string* mutable_metric_name(); - ::std::string* release_metric_name(); - void set_allocated_metric_name(::std::string* metric_name); - - // .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; - void clear_objective_type(); - static const int kObjectiveTypeFieldNumber = 1; - ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType objective_type() const; - void set_objective_type(::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobObjective) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr metric_name_; - int objective_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; -}; -// ------------------------------------------------------------------- - -class HPOJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJob) */ { - public: - HPOJob(); - virtual ~HPOJob(); - - HPOJob(const HPOJob& from); - - inline HPOJob& operator=(const HPOJob& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HPOJob(HPOJob&& from) noexcept - : HPOJob() { - *this = ::std::move(from); - } - - inline HPOJob& operator=(HPOJob&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const HPOJob& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HPOJob* internal_default_instance() { - return reinterpret_cast( - &_HPOJob_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(HPOJob* other); - friend void swap(HPOJob& a, HPOJob& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HPOJob* New() const final { - return CreateMaybeMessage(nullptr); - } - - HPOJob* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HPOJob& from); - void MergeFrom(const HPOJob& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HPOJob* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; - bool has_training_job() const; - void clear_training_job(); - static const int kTrainingJobFieldNumber = 3; - const ::flyteidl::plugins::sagemaker::TrainingJob& training_job() const; - ::flyteidl::plugins::sagemaker::TrainingJob* release_training_job(); - ::flyteidl::plugins::sagemaker::TrainingJob* mutable_training_job(); - void set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job); - - // int64 max_number_of_training_jobs = 1; - void clear_max_number_of_training_jobs(); - static const int kMaxNumberOfTrainingJobsFieldNumber = 1; - ::google::protobuf::int64 max_number_of_training_jobs() const; - void set_max_number_of_training_jobs(::google::protobuf::int64 value); - - // int64 max_parallel_training_jobs = 2; - void clear_max_parallel_training_jobs(); - static const int kMaxParallelTrainingJobsFieldNumber = 2; - ::google::protobuf::int64 max_parallel_training_jobs() const; - void set_max_parallel_training_jobs(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::sagemaker::TrainingJob* training_job_; - ::google::protobuf::int64 max_number_of_training_jobs_; - ::google::protobuf::int64 max_parallel_training_jobs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// HPOJobObjective - -// .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; -inline void HPOJobObjective::clear_objective_type() { - objective_type_ = 0; -} -inline ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType HPOJobObjective::objective_type() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.objective_type) - return static_cast< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType >(objective_type_); -} -inline void HPOJobObjective::set_objective_type(::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType value) { - - objective_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.objective_type) -} - -// string metric_name = 2; -inline void HPOJobObjective::clear_metric_name() { - metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& HPOJobObjective::metric_name() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) - return metric_name_.GetNoArena(); -} -inline void HPOJobObjective::set_metric_name(const ::std::string& value) { - - metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) -} -#if LANG_CXX11 -inline void HPOJobObjective::set_metric_name(::std::string&& value) { - - metric_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) -} -#endif -inline void HPOJobObjective::set_metric_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) -} -inline void HPOJobObjective::set_metric_name(const char* value, size_t size) { - - metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) -} -inline ::std::string* HPOJobObjective::mutable_metric_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) - return metric_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* HPOJobObjective::release_metric_name() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) - - return metric_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void HPOJobObjective::set_allocated_metric_name(::std::string* metric_name) { - if (metric_name != nullptr) { - - } else { - - } - metric_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metric_name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobObjective.metric_name) -} - -// ------------------------------------------------------------------- - -// HPOJob - -// int64 max_number_of_training_jobs = 1; -inline void HPOJob::clear_max_number_of_training_jobs() { - max_number_of_training_jobs_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 HPOJob::max_number_of_training_jobs() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs) - return max_number_of_training_jobs_; -} -inline void HPOJob::set_max_number_of_training_jobs(::google::protobuf::int64 value) { - - max_number_of_training_jobs_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs) -} - -// int64 max_parallel_training_jobs = 2; -inline void HPOJob::clear_max_parallel_training_jobs() { - max_parallel_training_jobs_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 HPOJob::max_parallel_training_jobs() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs) - return max_parallel_training_jobs_; -} -inline void HPOJob::set_max_parallel_training_jobs(::google::protobuf::int64 value) { - - max_parallel_training_jobs_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs) -} - -// .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; -inline bool HPOJob::has_training_job() const { - return this != internal_default_instance() && training_job_ != nullptr; -} -inline const ::flyteidl::plugins::sagemaker::TrainingJob& HPOJob::training_job() const { - const ::flyteidl::plugins::sagemaker::TrainingJob* p = training_job_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.training_job) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::release_training_job() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.training_job) - - ::flyteidl::plugins::sagemaker::TrainingJob* temp = training_job_; - training_job_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::mutable_training_job() { - - if (training_job_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(GetArenaNoVirtual()); - training_job_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.training_job) - return training_job_; -} -inline void HPOJob::set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(training_job_); - } - if (training_job) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - training_job = ::google::protobuf::internal::GetOwnedMessage( - message_arena, training_job, submessage_arena); - } - - } else { - - } - training_job_ = training_job; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.training_job) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType>() { - return ::flyteidl::plugins::sagemaker::HPOJobObjective_HPOJobObjectiveType_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.cc similarity index 80% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.cc index b39d9f1f5..7c840ad69 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.cc @@ -1,9 +1,9 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/parameterranges.proto +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto -#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" -#include "flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h" +#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" +#include "flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h" #include #include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h similarity index 77% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h index e7cdeb407..c314f50a3 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h @@ -1,10 +1,10 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/parameterranges.proto -#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto__INCLUDED +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto__INCLUDED -#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" +#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" #include #include @@ -46,4 +46,4 @@ namespace sagemaker { } // namespace flyteidl -#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto__INCLUDED +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc similarity index 92% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc index fd0c353da..57e32ef54 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/parameterranges.proto +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto -#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" +#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" #include @@ -16,11 +16,11 @@ // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; namespace flyteidl { namespace plugins { namespace sagemaker { @@ -54,7 +54,7 @@ class ParameterRangesDefaultTypeInternal { } // namespace sagemaker } // namespace plugins } // namespace flyteidl -static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -65,10 +65,10 @@ static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_ ::flyteidl::plugins::sagemaker::ContinuousParameterRange::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}}; -static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -79,10 +79,10 @@ static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fp ::flyteidl::plugins::sagemaker::IntegerParameterRange::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}}; -static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -93,10 +93,10 @@ static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker ::flyteidl::plugins::sagemaker::CategoricalParameterRange::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}}; -static void InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +static void InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -107,13 +107,13 @@ static void InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fpar ::flyteidl::plugins::sagemaker::ParameterRangeOneOf::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, { - &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base, - &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base, - &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, { + &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, + &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,}}; -static void InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +static void InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -123,11 +123,11 @@ static void InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, { - &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, { + &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,}}; -static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -138,24 +138,24 @@ static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparamet ::flyteidl::plugins::sagemaker::ParameterRanges::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, { - &scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, { + &scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,}}; -void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[6]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = nullptr; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[6]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, _internal_metadata_), ~0u, // no _extensions_ @@ -221,63 +221,63 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_), }; -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, "flyteidl/plugins/sagemaker/parameterranges.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, "flyteidl/plugins/sagemaker/parameter_ranges.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, }; -const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[] = - "\n0flyteidl/plugins/sagemaker/parameterra" - "nges.proto\022\032flyteidl.plugins.sagemaker\"\215" - "\001\n\030ContinuousParameterRange\022\021\n\tmax_value" - "\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_typ" - "e\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hyp" - "erparameterScalingType\"\212\001\n\025IntegerParame" - "terRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_value" - "\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl." - "plugins.sagemaker.HyperparameterScalingT" - "ype\"+\n\031CategoricalParameterRange\022\016\n\006valu" - "es\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032cont" - "inuous_parameter_range\030\001 \001(\01324.flyteidl." - "plugins.sagemaker.ContinuousParameterRan" - "geH\000\022T\n\027integer_parameter_range\030\002 \001(\01321." - "flyteidl.plugins.sagemaker.IntegerParame" - "terRangeH\000\022\\\n\033categorical_parameter_rang" - "e\030\003 \001(\01325.flyteidl.plugins.sagemaker.Cat" - "egoricalParameterRangeH\000B\026\n\024parameter_ra" - "nge_type\"\335\001\n\017ParameterRanges\022_\n\023paramete" - "r_range_map\030\001 \003(\0132B.flyteidl.plugins.sag" - "emaker.ParameterRanges.ParameterRangeMap" - "Entry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001" - " \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins.s" - "agemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hype" - "rparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEA" - "R\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHM" - "IC\020\003B5Z3github.com/lyft/flyteidl/gen/pb-" - "go/flyteidl/pluginsb\006proto3" +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[] = + "\n1flyteidl/plugins/sagemaker/parameter_r" + "anges.proto\022\032flyteidl.plugins.sagemaker\"" + "\215\001\n\030ContinuousParameterRange\022\021\n\tmax_valu" + "e\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_ty" + "pe\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hy" + "perparameterScalingType\"\212\001\n\025IntegerParam" + "eterRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_valu" + "e\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl" + ".plugins.sagemaker.HyperparameterScaling" + "Type\"+\n\031CategoricalParameterRange\022\016\n\006val" + "ues\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032con" + "tinuous_parameter_range\030\001 \001(\01324.flyteidl" + ".plugins.sagemaker.ContinuousParameterRa" + "ngeH\000\022T\n\027integer_parameter_range\030\002 \001(\01321" + ".flyteidl.plugins.sagemaker.IntegerParam" + "eterRangeH\000\022\\\n\033categorical_parameter_ran" + "ge\030\003 \001(\01325.flyteidl.plugins.sagemaker.Ca" + "tegoricalParameterRangeH\000B\026\n\024parameter_r" + "ange_type\"\335\001\n\017ParameterRanges\022_\n\023paramet" + "er_range_map\030\001 \003(\0132B.flyteidl.plugins.sa" + "gemaker.ParameterRanges.ParameterRangeMa" + "pEntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030" + "\001 \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins." + "sagemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyp" + "erparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINE" + "AR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITH" + "MIC\020\003B5Z3github.com/lyft/flyteidl/gen/pb" + "-go/flyteidl/pluginsb\006proto3" ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, - "flyteidl/plugins/sagemaker/parameterranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, 1107, +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, + "flyteidl/plugins/sagemaker/parameter_ranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, 1108, }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { static constexpr ::google::protobuf::internal::InitFunc deps[1] = { }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, deps, 0); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, deps, 0); } // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto(); return true; }(); +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto(); return true; }(); namespace flyteidl { namespace plugins { namespace sagemaker { const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[0]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[0]; } bool HyperparameterScalingType_IsValid(int value) { switch (value) { @@ -339,7 +339,7 @@ void ContinuousParameterRange::SetCachedSize(int size) const { _cached_size_.Set(size); } const ContinuousParameterRange& ContinuousParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); return *internal_default_instance(); } @@ -636,8 +636,8 @@ void ContinuousParameterRange::InternalSwap(ContinuousParameterRange* other) { } ::google::protobuf::Metadata ContinuousParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; } @@ -688,7 +688,7 @@ void IntegerParameterRange::SetCachedSize(int size) const { _cached_size_.Set(size); } const IntegerParameterRange& IntegerParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); return *internal_default_instance(); } @@ -989,8 +989,8 @@ void IntegerParameterRange::InternalSwap(IntegerParameterRange* other) { } ::google::protobuf::Metadata IntegerParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; } @@ -1021,7 +1021,7 @@ CategoricalParameterRange::CategoricalParameterRange(const CategoricalParameterR void CategoricalParameterRange::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); } CategoricalParameterRange::~CategoricalParameterRange() { @@ -1036,7 +1036,7 @@ void CategoricalParameterRange::SetCachedSize(int size) const { _cached_size_.Set(size); } const CategoricalParameterRange& CategoricalParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); return *internal_default_instance(); } @@ -1281,8 +1281,8 @@ void CategoricalParameterRange::InternalSwap(CategoricalParameterRange* other) { } ::google::protobuf::Metadata CategoricalParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; } @@ -1395,7 +1395,7 @@ ParameterRangeOneOf::ParameterRangeOneOf(const ParameterRangeOneOf& from) void ParameterRangeOneOf::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); clear_has_parameter_range_type(); } @@ -1414,7 +1414,7 @@ void ParameterRangeOneOf::SetCachedSize(int size) const { _cached_size_.Set(size); } const ParameterRangeOneOf& ParameterRangeOneOf::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); return *internal_default_instance(); } @@ -1769,8 +1769,8 @@ void ParameterRangeOneOf::InternalSwap(ParameterRangeOneOf* other) { } ::google::protobuf::Metadata ParameterRangeOneOf::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; } @@ -1783,8 +1783,8 @@ void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom(const ParameterR MergeFromInternal(other); } ::google::protobuf::Metadata ParameterRanges_ParameterRangeMapEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[4]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[4]; } void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom( const ::google::protobuf::Message& other) { @@ -1838,7 +1838,7 @@ ParameterRanges::ParameterRanges(const ParameterRanges& from) void ParameterRanges::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); } ParameterRanges::~ParameterRanges() { @@ -1853,7 +1853,7 @@ void ParameterRanges::SetCachedSize(int size) const { _cached_size_.Set(size); } const ParameterRanges& ParameterRanges::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); return *internal_default_instance(); } @@ -2176,8 +2176,8 @@ void ParameterRanges::InternalSwap(ParameterRanges* other) { } ::google::protobuf::Metadata ParameterRanges::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h similarity index 99% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h index e4a9a0bac..2e9f9462b 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h @@ -1,8 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/parameterranges.proto +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto #include #include @@ -37,10 +37,10 @@ #include // @@protoc_insertion_point(includes) #include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto // Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto { +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto { static const ::google::protobuf::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] @@ -51,7 +51,7 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto { static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto(); +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto(); namespace flyteidl { namespace plugins { namespace sagemaker { @@ -237,7 +237,7 @@ class ContinuousParameterRange final : double min_value_; int scaling_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; }; // ------------------------------------------------------------------- @@ -363,7 +363,7 @@ class IntegerParameterRange final : ::google::protobuf::int64 min_value_; int scaling_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; }; // ------------------------------------------------------------------- @@ -491,7 +491,7 @@ class CategoricalParameterRange final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::RepeatedPtrField<::std::string> values_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; }; // ------------------------------------------------------------------- @@ -646,7 +646,7 @@ class ParameterRangeOneOf final : mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 _oneof_case_[1]; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; }; // ------------------------------------------------------------------- @@ -791,7 +791,7 @@ class ParameterRanges final : ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0 > parameter_range_map_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; }; // =================================================================== @@ -1160,4 +1160,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker:: // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.cc similarity index 81% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.cc index 48c86fb46..e7b54a6ee 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.cc @@ -1,9 +1,9 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/trainingjob.proto +// source: flyteidl/plugins/sagemaker/training_job.proto -#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" -#include "flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h" +#include "flyteidl/plugins/sagemaker/training_job.pb.h" +#include "flyteidl/plugins/sagemaker/training_job.grpc.pb.h" #include #include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.h similarity index 77% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.h index b65b8a93d..802320ea7 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.h @@ -1,10 +1,10 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/trainingjob.proto -#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto__INCLUDED +// source: flyteidl/plugins/sagemaker/training_job.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto__INCLUDED -#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" +#include "flyteidl/plugins/sagemaker/training_job.pb.h" #include #include @@ -46,4 +46,4 @@ namespace sagemaker { } // namespace flyteidl -#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto__INCLUDED +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc similarity index 57% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc index f0308abd0..b09bcea7f 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/trainingjob.proto +// source: flyteidl/plugins/sagemaker/training_job.proto -#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" +#include "flyteidl/plugins/sagemaker/training_job.pb.h" #include @@ -16,11 +16,9 @@ // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; namespace flyteidl { namespace plugins { namespace sagemaker { @@ -32,18 +30,14 @@ class AlgorithmSpecificationDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _AlgorithmSpecification_default_instance_; -class ResourceConfigDefaultTypeInternal { +class TrainingJobConfigDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ResourceConfig_default_instance_; + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TrainingJobConfig_default_instance_; class StoppingConditionDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _StoppingCondition_default_instance_; -class VpcConfigDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _VpcConfig_default_instance_; class TrainingJobDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -51,7 +45,7 @@ class TrainingJobDefaultTypeInternal { } // namespace sagemaker } // namespace plugins } // namespace flyteidl -static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { +static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -62,10 +56,10 @@ static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugi ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; -static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { +static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -76,25 +70,25 @@ static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2f ::flyteidl::plugins::sagemaker::AlgorithmSpecification::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, { - &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, { + &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; -static void InitDefaultsResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { +static void InitDefaultsTrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyteidl::plugins::sagemaker::_ResourceConfig_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::ResourceConfig(); + void* ptr = &::flyteidl::plugins::sagemaker::_TrainingJobConfig_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::TrainingJobConfig(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyteidl::plugins::sagemaker::ResourceConfig::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::TrainingJobConfig::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; -static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { +static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -105,24 +99,10 @@ static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrain ::flyteidl::plugins::sagemaker::StoppingCondition::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; - -static void InitDefaultsVpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_VpcConfig_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::VpcConfig(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::VpcConfig::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; -static void InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { +static void InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -133,27 +113,24 @@ static void InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob ::flyteidl::plugins::sagemaker::TrainingJob::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<4> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, { - &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base, - &scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base, - &scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base, - &scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, { + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base, + &scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; -void InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[6]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = nullptr; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[5]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, _internal_metadata_), ~0u, // no _extensions_ @@ -166,19 +143,18 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, training_image_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, training_input_mode_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, input_mode_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_version_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, metric_definitions_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, instance_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, instance_count_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, volume_size_in_gb_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ResourceConfig, volume_kms_key_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, instance_count_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, instance_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, volume_size_in_gb_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, _internal_metadata_), ~0u, // no _extensions_ @@ -187,95 +163,108 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, max_runtime_in_seconds_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, max_wait_time_in_seconds_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, security_group_ids_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::VpcConfig, subnets_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, region_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, role_arn_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, algorithm_specification_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, resource_config_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, stopping_condition_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, vpc_config_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, enable_spot_training_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, training_job_config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, interruptible_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition)}, { 7, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)}, - { 16, -1, sizeof(::flyteidl::plugins::sagemaker::ResourceConfig)}, - { 25, -1, sizeof(::flyteidl::plugins::sagemaker::StoppingCondition)}, - { 32, -1, sizeof(::flyteidl::plugins::sagemaker::VpcConfig)}, - { 39, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJob)}, + { 16, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJobConfig)}, + { 24, -1, sizeof(::flyteidl::plugins::sagemaker::StoppingCondition)}, + { 31, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJob)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_ResourceConfig_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJobConfig_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_VpcConfig_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_), }; -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, "flyteidl/plugins/sagemaker/trainingjob.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, "flyteidl/plugins/sagemaker/training_job.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 5, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, }; -const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[] = - "\n,flyteidl/plugins/sagemaker/trainingjob" - ".proto\022\032flyteidl.plugins.sagemaker\"\367\001\n\026A" - "lgorithmSpecification\022\026\n\016training_image\030" - "\001 \001(\t\022\033\n\023training_input_mode\030\002 \001(\t\022\026\n\016al" - "gorithm_name\030\003 \001(\t\022_\n\022metric_definitions" - "\030\004 \003(\0132C.flyteidl.plugins.sagemaker.Algo" - "rithmSpecification.MetricDefinition\032/\n\020M" - "etricDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002" - " \001(\t\"u\n\016ResourceConfig\022\025\n\rinstance_type\030" - "\001 \001(\t\022\026\n\016instance_count\030\002 \001(\003\022\031\n\021volume_" - "size_in_gb\030\003 \001(\003\022\031\n\021volume_kms_key_id\030\004 " - "\001(\t\"U\n\021StoppingCondition\022\036\n\026max_runtime_" - "in_seconds\030\001 \001(\003\022 \n\030max_wait_time_in_sec" - "onds\030\002 \001(\003\"8\n\tVpcConfig\022\032\n\022security_grou" - "p_ids\030\001 \003(\t\022\017\n\007subnets\030\002 \003(\t\"\355\002\n\013Trainin" - "gJob\022\016\n\006region\030\001 \001(\t\022\020\n\010role_arn\030\002 \001(\t\022S" - "\n\027algorithm_specification\030\003 \001(\01322.flytei" - "dl.plugins.sagemaker.AlgorithmSpecificat" - "ion\022C\n\017resource_config\030\004 \001(\0132*.flyteidl." - "plugins.sagemaker.ResourceConfig\022I\n\022stop" - "ping_condition\030\005 \001(\0132-.flyteidl.plugins." - "sagemaker.StoppingCondition\0229\n\nvpc_confi" - "g\030\006 \001(\0132%.flyteidl.plugins.sagemaker.Vpc" - "Config\022\034\n\024enable_spot_training\030\007 \001(\010B5Z3" - "github.com/lyft/flyteidl/gen/pb-go/flyte" - "idl/pluginsb\006proto3" +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[] = + "\n-flyteidl/plugins/sagemaker/training_jo" + "b.proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026" + "AlgorithmSpecification\0229\n\ninput_mode\030\001 \001" + "(\0162%.flyteidl.plugins.sagemaker.InputMod" + "e\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plu" + "gins.sagemaker.AlgorithmName\022\031\n\021algorith" + "m_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 " + "\003(\0132C.flyteidl.plugins.sagemaker.Algorit" + "hmSpecification.MetricDefinition\032/\n\020Metr" + "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(" + "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count" + "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_" + "size_in_gb\030\003 \001(\t\"U\n\021StoppingCondition\022\036\n" + "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai" + "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022" + "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + "idl.plugins.sagemaker.AlgorithmSpecifica" + "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt" + "eidl.plugins.sagemaker.TrainingJobConfig" + "\022\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004" + "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS" + "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl" + "yteidl/gen/pb-go/flyteidl/pluginsb\006proto" + "3" ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, - "flyteidl/plugins/sagemaker/trainingjob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, 1019, +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, + "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 921, }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { static constexpr ::google::protobuf::internal::InitFunc deps[1] = { }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, deps, 0); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, deps, 0); } // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto(); return true; }(); +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto(); return true; }(); namespace flyteidl { namespace plugins { namespace sagemaker { +const ::google::protobuf::EnumDescriptor* InputMode_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[0]; +} +bool InputMode_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* AlgorithmName_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[1]; +} +bool AlgorithmName_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + // =================================================================== @@ -312,7 +301,7 @@ AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition void AlgorithmSpecification_MetricDefinition::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -331,7 +320,7 @@ void AlgorithmSpecification_MetricDefinition::SetCachedSize(int size) const { _cached_size_.Set(size); } const AlgorithmSpecification_MetricDefinition& AlgorithmSpecification_MetricDefinition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); return *internal_default_instance(); } @@ -642,8 +631,8 @@ void AlgorithmSpecification_MetricDefinition::InternalSwap(AlgorithmSpecificatio } ::google::protobuf::Metadata AlgorithmSpecification_MetricDefinition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; } @@ -656,9 +645,9 @@ class AlgorithmSpecification::HasBitSetters { }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AlgorithmSpecification::kTrainingImageFieldNumber; -const int AlgorithmSpecification::kTrainingInputModeFieldNumber; +const int AlgorithmSpecification::kInputModeFieldNumber; const int AlgorithmSpecification::kAlgorithmNameFieldNumber; +const int AlgorithmSpecification::kAlgorithmVersionFieldNumber; const int AlgorithmSpecification::kMetricDefinitionsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 @@ -672,27 +661,23 @@ AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& fro _internal_metadata_(nullptr), metric_definitions_(from.metric_definitions_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - training_image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.training_image().size() > 0) { - training_image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.training_image_); - } - training_input_mode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.training_input_mode().size() > 0) { - training_input_mode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.training_input_mode_); - } - algorithm_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.algorithm_name().size() > 0) { - algorithm_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_name_); + algorithm_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.algorithm_version().size() > 0) { + algorithm_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_version_); } + ::memcpy(&input_mode_, &from.input_mode_, + static_cast(reinterpret_cast(&algorithm_name_) - + reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_)); // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) } void AlgorithmSpecification::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - training_image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - training_input_mode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - algorithm_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + algorithm_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&input_mode_, 0, static_cast( + reinterpret_cast(&algorithm_name_) - + reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_)); } AlgorithmSpecification::~AlgorithmSpecification() { @@ -701,16 +686,14 @@ AlgorithmSpecification::~AlgorithmSpecification() { } void AlgorithmSpecification::SharedDtor() { - training_image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - training_input_mode_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - algorithm_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + algorithm_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void AlgorithmSpecification::SetCachedSize(int size) const { _cached_size_.Set(size); } const AlgorithmSpecification& AlgorithmSpecification::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); return *internal_default_instance(); } @@ -722,9 +705,10 @@ void AlgorithmSpecification::Clear() { (void) cached_has_bits; metric_definitions_.Clear(); - training_image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - training_input_mode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - algorithm_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + algorithm_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&input_mode_, 0, static_cast( + reinterpret_cast(&algorithm_name_) - + reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_)); _internal_metadata_.Clear(); } @@ -741,45 +725,29 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string training_image = 1; + // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_input_mode(static_cast<::flyteidl::plugins::sagemaker::InputMode>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image"); - object = msg->mutable_training_image(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; break; } - // string training_input_mode = 2; + // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_algorithm_name(static_cast<::flyteidl::plugins::sagemaker::AlgorithmName>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode"); - object = msg->mutable_training_input_mode(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; break; } - // string algorithm_name = 3; + // string algorithm_version = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name"); - object = msg->mutable_algorithm_name(); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version"); + object = msg->mutable_algorithm_version(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -839,45 +807,43 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string training_image = 1; + // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_training_image())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->training_image().data(), static_cast(this->training_image().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image")); + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_input_mode(static_cast< ::flyteidl::plugins::sagemaker::InputMode >(value)); } else { goto handle_unusual; } break; } - // string training_input_mode = 2; + // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_training_input_mode())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->training_input_mode().data(), static_cast(this->training_input_mode().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode")); + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_algorithm_name(static_cast< ::flyteidl::plugins::sagemaker::AlgorithmName >(value)); } else { goto handle_unusual; } break; } - // string algorithm_name = 3; + // string algorithm_version = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_algorithm_name())); + input, this->mutable_algorithm_version())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->algorithm_name().data(), static_cast(this->algorithm_name().length()), + this->algorithm_version().data(), static_cast(this->algorithm_version().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name")); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version")); } else { goto handle_unusual; } @@ -922,34 +888,26 @@ void AlgorithmSpecification::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string training_image = 1; - if (this->training_image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->training_image().data(), static_cast(this->training_image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->training_image(), output); + // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + if (this->input_mode() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->input_mode(), output); } - // string training_input_mode = 2; - if (this->training_input_mode().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->training_input_mode().data(), static_cast(this->training_input_mode().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->training_input_mode(), output); + // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + if (this->algorithm_name() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->algorithm_name(), output); } - // string algorithm_name = 3; - if (this->algorithm_name().size() > 0) { + // string algorithm_version = 3; + if (this->algorithm_version().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->algorithm_name().data(), static_cast(this->algorithm_name().length()), + this->algorithm_version().data(), static_cast(this->algorithm_version().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->algorithm_name(), output); + 3, this->algorithm_version(), output); } // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; @@ -974,37 +932,27 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string training_image = 1; - if (this->training_image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->training_image().data(), static_cast(this->training_image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->training_image(), target); + // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + if (this->input_mode() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->input_mode(), target); } - // string training_input_mode = 2; - if (this->training_input_mode().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->training_input_mode().data(), static_cast(this->training_input_mode().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->training_input_mode(), target); + // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + if (this->algorithm_name() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->algorithm_name(), target); } - // string algorithm_name = 3; - if (this->algorithm_name().size() > 0) { + // string algorithm_version = 3; + if (this->algorithm_version().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->algorithm_name().data(), static_cast(this->algorithm_name().length()), + this->algorithm_version().data(), static_cast(this->algorithm_version().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name"); + "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->algorithm_name(), target); + 3, this->algorithm_version(), target); } // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; @@ -1047,25 +995,23 @@ size_t AlgorithmSpecification::ByteSizeLong() const { } } - // string training_image = 1; - if (this->training_image().size() > 0) { + // string algorithm_version = 3; + if (this->algorithm_version().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->training_image()); + this->algorithm_version()); } - // string training_input_mode = 2; - if (this->training_input_mode().size() > 0) { + // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + if (this->input_mode() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->training_input_mode()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->input_mode()); } - // string algorithm_name = 3; - if (this->algorithm_name().size() > 0) { + // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + if (this->algorithm_name() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->algorithm_name()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->algorithm_name()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -1096,17 +1042,15 @@ void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { (void) cached_has_bits; metric_definitions_.MergeFrom(from.metric_definitions_); - if (from.training_image().size() > 0) { + if (from.algorithm_version().size() > 0) { - training_image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.training_image_); + algorithm_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_version_); } - if (from.training_input_mode().size() > 0) { - - training_input_mode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.training_input_mode_); + if (from.input_mode() != 0) { + set_input_mode(from.input_mode()); } - if (from.algorithm_name().size() > 0) { - - algorithm_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_name_); + if (from.algorithm_name() != 0) { + set_algorithm_name(from.algorithm_name()); } } @@ -1136,41 +1080,38 @@ void AlgorithmSpecification::InternalSwap(AlgorithmSpecification* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); CastToBase(&metric_definitions_)->InternalSwap(CastToBase(&other->metric_definitions_)); - training_image_.Swap(&other->training_image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - training_input_mode_.Swap(&other->training_input_mode_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - algorithm_name_.Swap(&other->algorithm_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + algorithm_version_.Swap(&other->algorithm_version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + swap(input_mode_, other->input_mode_); + swap(algorithm_name_, other->algorithm_name_); } ::google::protobuf::Metadata AlgorithmSpecification::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; } // =================================================================== -void ResourceConfig::InitAsDefaultInstance() { +void TrainingJobConfig::InitAsDefaultInstance() { } -class ResourceConfig::HasBitSetters { +class TrainingJobConfig::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ResourceConfig::kInstanceTypeFieldNumber; -const int ResourceConfig::kInstanceCountFieldNumber; -const int ResourceConfig::kVolumeSizeInGbFieldNumber; -const int ResourceConfig::kVolumeKmsKeyIdFieldNumber; +const int TrainingJobConfig::kInstanceCountFieldNumber; +const int TrainingJobConfig::kInstanceTypeFieldNumber; +const int TrainingJobConfig::kVolumeSizeInGbFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -ResourceConfig::ResourceConfig() +TrainingJobConfig::TrainingJobConfig() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJobConfig) } -ResourceConfig::ResourceConfig(const ResourceConfig& from) +TrainingJobConfig::TrainingJobConfig(const TrainingJobConfig& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -1178,63 +1119,57 @@ ResourceConfig::ResourceConfig(const ResourceConfig& from) if (from.instance_type().size() > 0) { instance_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instance_type_); } - volume_kms_key_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.volume_kms_key_id().size() > 0) { - volume_kms_key_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volume_kms_key_id_); + volume_size_in_gb_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.volume_size_in_gb().size() > 0) { + volume_size_in_gb_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volume_size_in_gb_); } - ::memcpy(&instance_count_, &from.instance_count_, - static_cast(reinterpret_cast(&volume_size_in_gb_) - - reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ResourceConfig) + instance_count_ = from.instance_count_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJobConfig) } -void ResourceConfig::SharedCtor() { +void TrainingJobConfig::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + &scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); instance_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - volume_kms_key_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&instance_count_, 0, static_cast( - reinterpret_cast(&volume_size_in_gb_) - - reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); + volume_size_in_gb_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + instance_count_ = PROTOBUF_LONGLONG(0); } -ResourceConfig::~ResourceConfig() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ResourceConfig) +TrainingJobConfig::~TrainingJobConfig() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJobConfig) SharedDtor(); } -void ResourceConfig::SharedDtor() { +void TrainingJobConfig::SharedDtor() { instance_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - volume_kms_key_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + volume_size_in_gb_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -void ResourceConfig::SetCachedSize(int size) const { +void TrainingJobConfig::SetCachedSize(int size) const { _cached_size_.Set(size); } -const ResourceConfig& ResourceConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); +const TrainingJobConfig& TrainingJobConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); return *internal_default_instance(); } -void ResourceConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ResourceConfig) +void TrainingJobConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJobConfig) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; instance_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - volume_kms_key_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&instance_count_, 0, static_cast( - reinterpret_cast(&volume_size_in_gb_) - - reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); + volume_size_in_gb_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + instance_count_ = PROTOBUF_LONGLONG(0); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ResourceConfig::_InternalParse(const char* begin, const char* end, void* object, +const char* TrainingJobConfig::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -1244,12 +1179,19 @@ const char* ResourceConfig::_InternalParse(const char* begin, const char* end, v ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string instance_type = 1; + // int64 instance_count = 1; case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_instance_count(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string instance_type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ResourceConfig.instance_type"); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type"); object = msg->mutable_instance_type(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -1260,27 +1202,13 @@ const char* ResourceConfig::_InternalParse(const char* begin, const char* end, v ptr += size; break; } - // int64 instance_count = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_instance_count(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int64 volume_size_in_gb = 3; + // string volume_size_in_gb = 3; case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_volume_size_in_gb(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string volume_kms_key_id = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id"); - object = msg->mutable_volume_kms_key_id(); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb"); + object = msg->mutable_volume_size_in_gb(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -1314,34 +1242,19 @@ const char* ResourceConfig::_InternalParse(const char* begin, const char* end, v {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ResourceConfig::MergePartialFromCodedStream( +bool TrainingJobConfig::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJobConfig) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string instance_type = 1; + // int64 instance_count = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_instance_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->instance_type().data(), static_cast(this->instance_type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.ResourceConfig.instance_type")); - } else { - goto handle_unusual; - } - break; - } - - // int64 instance_count = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( @@ -1352,28 +1265,30 @@ bool ResourceConfig::MergePartialFromCodedStream( break; } - // int64 volume_size_in_gb = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &volume_size_in_gb_))); + // string instance_type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_instance_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->instance_type().data(), static_cast(this->instance_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type")); } else { goto handle_unusual; } break; } - // string volume_kms_key_id = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + // string volume_size_in_gb = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_volume_kms_key_id())); + input, this->mutable_volume_size_in_gb())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->volume_kms_key_id().data(), static_cast(this->volume_kms_key_id().length()), + this->volume_size_in_gb().data(), static_cast(this->volume_size_in_gb().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id")); + "flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb")); } else { goto handle_unusual; } @@ -1392,106 +1307,96 @@ bool ResourceConfig::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJobConfig) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJobConfig) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void ResourceConfig::SerializeWithCachedSizes( +void TrainingJobConfig::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJobConfig) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string instance_type = 1; + // int64 instance_count = 1; + if (this->instance_count() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->instance_count(), output); + } + + // string instance_type = 2; if (this->instance_type().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->instance_type().data(), static_cast(this->instance_type().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ResourceConfig.instance_type"); + "flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->instance_type(), output); + 2, this->instance_type(), output); } - // int64 instance_count = 2; - if (this->instance_count() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->instance_count(), output); - } - - // int64 volume_size_in_gb = 3; - if (this->volume_size_in_gb() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->volume_size_in_gb(), output); - } - - // string volume_kms_key_id = 4; - if (this->volume_kms_key_id().size() > 0) { + // string volume_size_in_gb = 3; + if (this->volume_size_in_gb().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->volume_kms_key_id().data(), static_cast(this->volume_kms_key_id().length()), + this->volume_size_in_gb().data(), static_cast(this->volume_size_in_gb().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id"); + "flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->volume_kms_key_id(), output); + 3, this->volume_size_in_gb(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJobConfig) } -::google::protobuf::uint8* ResourceConfig::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* TrainingJobConfig::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.TrainingJobConfig) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string instance_type = 1; + // int64 instance_count = 1; + if (this->instance_count() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->instance_count(), target); + } + + // string instance_type = 2; if (this->instance_type().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->instance_type().data(), static_cast(this->instance_type().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ResourceConfig.instance_type"); + "flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->instance_type(), target); + 2, this->instance_type(), target); } - // int64 instance_count = 2; - if (this->instance_count() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->instance_count(), target); - } - - // int64 volume_size_in_gb = 3; - if (this->volume_size_in_gb() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->volume_size_in_gb(), target); - } - - // string volume_kms_key_id = 4; - if (this->volume_kms_key_id().size() > 0) { + // string volume_size_in_gb = 3; + if (this->volume_size_in_gb().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->volume_kms_key_id().data(), static_cast(this->volume_kms_key_id().length()), + this->volume_size_in_gb().data(), static_cast(this->volume_size_in_gb().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id"); + "flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->volume_kms_key_id(), target); + 3, this->volume_size_in_gb(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.TrainingJobConfig) return target; } -size_t ResourceConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ResourceConfig) +size_t TrainingJobConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.TrainingJobConfig) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -1503,56 +1408,49 @@ size_t ResourceConfig::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string instance_type = 1; + // string instance_type = 2; if (this->instance_type().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->instance_type()); } - // string volume_kms_key_id = 4; - if (this->volume_kms_key_id().size() > 0) { + // string volume_size_in_gb = 3; + if (this->volume_size_in_gb().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->volume_kms_key_id()); + this->volume_size_in_gb()); } - // int64 instance_count = 2; + // int64 instance_count = 1; if (this->instance_count() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->instance_count()); } - // int64 volume_size_in_gb = 3; - if (this->volume_size_in_gb() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->volume_size_in_gb()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void ResourceConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ResourceConfig) +void TrainingJobConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig) GOOGLE_DCHECK_NE(&from, this); - const ResourceConfig* source = - ::google::protobuf::DynamicCastToGenerated( + const TrainingJobConfig* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.TrainingJobConfig) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.TrainingJobConfig) MergeFrom(*source); } } -void ResourceConfig::MergeFrom(const ResourceConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ResourceConfig) +void TrainingJobConfig::MergeFrom(const TrainingJobConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -1562,54 +1460,50 @@ void ResourceConfig::MergeFrom(const ResourceConfig& from) { instance_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instance_type_); } - if (from.volume_kms_key_id().size() > 0) { + if (from.volume_size_in_gb().size() > 0) { - volume_kms_key_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volume_kms_key_id_); + volume_size_in_gb_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volume_size_in_gb_); } if (from.instance_count() != 0) { set_instance_count(from.instance_count()); } - if (from.volume_size_in_gb() != 0) { - set_volume_size_in_gb(from.volume_size_in_gb()); - } } -void ResourceConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ResourceConfig) +void TrainingJobConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig) if (&from == this) return; Clear(); MergeFrom(from); } -void ResourceConfig::CopyFrom(const ResourceConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ResourceConfig) +void TrainingJobConfig::CopyFrom(const TrainingJobConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig) if (&from == this) return; Clear(); MergeFrom(from); } -bool ResourceConfig::IsInitialized() const { +bool TrainingJobConfig::IsInitialized() const { return true; } -void ResourceConfig::Swap(ResourceConfig* other) { +void TrainingJobConfig::Swap(TrainingJobConfig* other) { if (other == this) return; InternalSwap(other); } -void ResourceConfig::InternalSwap(ResourceConfig* other) { +void TrainingJobConfig::InternalSwap(TrainingJobConfig* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); instance_type_.Swap(&other->instance_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - volume_kms_key_id_.Swap(&other->volume_kms_key_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + volume_size_in_gb_.Swap(&other->volume_size_in_gb_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(instance_count_, other->instance_count_); - swap(volume_size_in_gb_, other->volume_size_in_gb_); } -::google::protobuf::Metadata ResourceConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; +::google::protobuf::Metadata TrainingJobConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; } @@ -1659,7 +1553,7 @@ void StoppingCondition::SetCachedSize(int size) const { _cached_size_.Set(size); } const StoppingCondition& StoppingCondition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); return *internal_default_instance(); } @@ -1916,75 +1810,111 @@ void StoppingCondition::InternalSwap(StoppingCondition* other) { } ::google::protobuf::Metadata StoppingCondition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; } // =================================================================== -void VpcConfig::InitAsDefaultInstance() { +void TrainingJob::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->algorithm_specification_ = const_cast< ::flyteidl::plugins::sagemaker::AlgorithmSpecification*>( + ::flyteidl::plugins::sagemaker::AlgorithmSpecification::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->training_job_config_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJobConfig*>( + ::flyteidl::plugins::sagemaker::TrainingJobConfig::internal_default_instance()); } -class VpcConfig::HasBitSetters { +class TrainingJob::HasBitSetters { public: + static const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithm_specification(const TrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::TrainingJobConfig& training_job_config(const TrainingJob* msg); }; +const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& +TrainingJob::HasBitSetters::algorithm_specification(const TrainingJob* msg) { + return *msg->algorithm_specification_; +} +const ::flyteidl::plugins::sagemaker::TrainingJobConfig& +TrainingJob::HasBitSetters::training_job_config(const TrainingJob* msg) { + return *msg->training_job_config_; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VpcConfig::kSecurityGroupIdsFieldNumber; -const int VpcConfig::kSubnetsFieldNumber; +const int TrainingJob::kAlgorithmSpecificationFieldNumber; +const int TrainingJob::kTrainingJobConfigFieldNumber; +const int TrainingJob::kInterruptibleFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -VpcConfig::VpcConfig() +TrainingJob::TrainingJob() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJob) } -VpcConfig::VpcConfig(const VpcConfig& from) +TrainingJob::TrainingJob(const TrainingJob& from) : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - security_group_ids_(from.security_group_ids_), - subnets_(from.subnets_) { + _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.VpcConfig) + if (from.has_algorithm_specification()) { + algorithm_specification_ = new ::flyteidl::plugins::sagemaker::AlgorithmSpecification(*from.algorithm_specification_); + } else { + algorithm_specification_ = nullptr; + } + if (from.has_training_job_config()) { + training_job_config_ = new ::flyteidl::plugins::sagemaker::TrainingJobConfig(*from.training_job_config_); + } else { + training_job_config_ = nullptr; + } + interruptible_ = from.interruptible_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJob) } -void VpcConfig::SharedCtor() { +void TrainingJob::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::memset(&algorithm_specification_, 0, static_cast( + reinterpret_cast(&interruptible_) - + reinterpret_cast(&algorithm_specification_)) + sizeof(interruptible_)); } -VpcConfig::~VpcConfig() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.VpcConfig) +TrainingJob::~TrainingJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJob) SharedDtor(); } -void VpcConfig::SharedDtor() { +void TrainingJob::SharedDtor() { + if (this != internal_default_instance()) delete algorithm_specification_; + if (this != internal_default_instance()) delete training_job_config_; } -void VpcConfig::SetCachedSize(int size) const { +void TrainingJob::SetCachedSize(int size) const { _cached_size_.Set(size); } -const VpcConfig& VpcConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_VpcConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); +const TrainingJob& TrainingJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); return *internal_default_instance(); } -void VpcConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.VpcConfig) +void TrainingJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJob) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - security_group_ids_.Clear(); - subnets_.Clear(); + if (GetArenaNoVirtual() == nullptr && algorithm_specification_ != nullptr) { + delete algorithm_specification_; + } + algorithm_specification_ = nullptr; + if (GetArenaNoVirtual() == nullptr && training_job_config_ != nullptr) { + delete training_job_config_; + } + training_job_config_ = nullptr; + interruptible_ = false; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* VpcConfig::_InternalParse(const char* begin, const char* end, void* object, +const char* TrainingJob::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -1994,42 +1924,37 @@ const char* VpcConfig::_InternalParse(const char* begin, const char* end, void* ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // repeated string security_group_ids = 1; + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.VpcConfig.security_group_ids"); - object = msg->add_security_group_ids(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification::_InternalParse; + object = msg->mutable_algorithm_specification(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); break; } - // repeated string subnets = 2; + // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.VpcConfig.subnets"); - object = msg->add_subnets(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJobConfig::_InternalParse; + object = msg->mutable_training_job_config(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // bool interruptible = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_interruptible(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } default: { @@ -2047,51 +1972,50 @@ const char* VpcConfig::_InternalParse(const char* begin, const char* end, void* } // switch } // while return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool VpcConfig::MergePartialFromCodedStream( +bool TrainingJob::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJob) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string security_group_ids = 1; + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_security_group_ids())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->security_group_ids(this->security_group_ids_size() - 1).data(), - static_cast(this->security_group_ids(this->security_group_ids_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.VpcConfig.security_group_ids")); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_algorithm_specification())); } else { goto handle_unusual; } break; } - // repeated string subnets = 2; + // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_subnets())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->subnets(this->subnets_size() - 1).data(), - static_cast(this->subnets(this->subnets_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.VpcConfig.subnets")); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_training_job_config())); + } else { + goto handle_unusual; + } + break; + } + + // bool interruptible = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &interruptible_))); } else { goto handle_unusual; } @@ -2110,631 +2034,43 @@ bool VpcConfig::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJob) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJob) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void VpcConfig::SerializeWithCachedSizes( +void TrainingJob::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.VpcConfig) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJob) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated string security_group_ids = 1; - for (int i = 0, n = this->security_group_ids_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->security_group_ids(i).data(), static_cast(this->security_group_ids(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.VpcConfig.security_group_ids"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->security_group_ids(i), output); + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + if (this->has_algorithm_specification()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::algorithm_specification(this), output); } - // repeated string subnets = 2; - for (int i = 0, n = this->subnets_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->subnets(i).data(), static_cast(this->subnets(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.VpcConfig.subnets"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->subnets(i), output); + // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + if (this->has_training_job_config()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::training_job_config(this), output); + } + + // bool interruptible = 4; + if (this->interruptible() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->interruptible(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.VpcConfig) -} - -::google::protobuf::uint8* VpcConfig::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.VpcConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string security_group_ids = 1; - for (int i = 0, n = this->security_group_ids_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->security_group_ids(i).data(), static_cast(this->security_group_ids(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.VpcConfig.security_group_ids"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->security_group_ids(i), target); - } - - // repeated string subnets = 2; - for (int i = 0, n = this->subnets_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->subnets(i).data(), static_cast(this->subnets(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.VpcConfig.subnets"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->subnets(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.VpcConfig) - return target; -} - -size_t VpcConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.VpcConfig) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string security_group_ids = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->security_group_ids_size()); - for (int i = 0, n = this->security_group_ids_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->security_group_ids(i)); - } - - // repeated string subnets = 2; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->subnets_size()); - for (int i = 0, n = this->subnets_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->subnets(i)); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VpcConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.VpcConfig) - GOOGLE_DCHECK_NE(&from, this); - const VpcConfig* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.VpcConfig) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.VpcConfig) - MergeFrom(*source); - } -} - -void VpcConfig::MergeFrom(const VpcConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.VpcConfig) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - security_group_ids_.MergeFrom(from.security_group_ids_); - subnets_.MergeFrom(from.subnets_); -} - -void VpcConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.VpcConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VpcConfig::CopyFrom(const VpcConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.VpcConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VpcConfig::IsInitialized() const { - return true; -} - -void VpcConfig::Swap(VpcConfig* other) { - if (other == this) return; - InternalSwap(other); -} -void VpcConfig::InternalSwap(VpcConfig* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - security_group_ids_.InternalSwap(CastToBase(&other->security_group_ids_)); - subnets_.InternalSwap(CastToBase(&other->subnets_)); -} - -::google::protobuf::Metadata VpcConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TrainingJob::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->algorithm_specification_ = const_cast< ::flyteidl::plugins::sagemaker::AlgorithmSpecification*>( - ::flyteidl::plugins::sagemaker::AlgorithmSpecification::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->resource_config_ = const_cast< ::flyteidl::plugins::sagemaker::ResourceConfig*>( - ::flyteidl::plugins::sagemaker::ResourceConfig::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->stopping_condition_ = const_cast< ::flyteidl::plugins::sagemaker::StoppingCondition*>( - ::flyteidl::plugins::sagemaker::StoppingCondition::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->vpc_config_ = const_cast< ::flyteidl::plugins::sagemaker::VpcConfig*>( - ::flyteidl::plugins::sagemaker::VpcConfig::internal_default_instance()); -} -class TrainingJob::HasBitSetters { - public: - static const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithm_specification(const TrainingJob* msg); - static const ::flyteidl::plugins::sagemaker::ResourceConfig& resource_config(const TrainingJob* msg); - static const ::flyteidl::plugins::sagemaker::StoppingCondition& stopping_condition(const TrainingJob* msg); - static const ::flyteidl::plugins::sagemaker::VpcConfig& vpc_config(const TrainingJob* msg); -}; - -const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& -TrainingJob::HasBitSetters::algorithm_specification(const TrainingJob* msg) { - return *msg->algorithm_specification_; -} -const ::flyteidl::plugins::sagemaker::ResourceConfig& -TrainingJob::HasBitSetters::resource_config(const TrainingJob* msg) { - return *msg->resource_config_; -} -const ::flyteidl::plugins::sagemaker::StoppingCondition& -TrainingJob::HasBitSetters::stopping_condition(const TrainingJob* msg) { - return *msg->stopping_condition_; -} -const ::flyteidl::plugins::sagemaker::VpcConfig& -TrainingJob::HasBitSetters::vpc_config(const TrainingJob* msg) { - return *msg->vpc_config_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TrainingJob::kRegionFieldNumber; -const int TrainingJob::kRoleArnFieldNumber; -const int TrainingJob::kAlgorithmSpecificationFieldNumber; -const int TrainingJob::kResourceConfigFieldNumber; -const int TrainingJob::kStoppingConditionFieldNumber; -const int TrainingJob::kVpcConfigFieldNumber; -const int TrainingJob::kEnableSpotTrainingFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TrainingJob::TrainingJob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJob) -} -TrainingJob::TrainingJob(const TrainingJob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - region_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.region().size() > 0) { - region_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_); - } - role_arn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.role_arn().size() > 0) { - role_arn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_arn_); - } - if (from.has_algorithm_specification()) { - algorithm_specification_ = new ::flyteidl::plugins::sagemaker::AlgorithmSpecification(*from.algorithm_specification_); - } else { - algorithm_specification_ = nullptr; - } - if (from.has_resource_config()) { - resource_config_ = new ::flyteidl::plugins::sagemaker::ResourceConfig(*from.resource_config_); - } else { - resource_config_ = nullptr; - } - if (from.has_stopping_condition()) { - stopping_condition_ = new ::flyteidl::plugins::sagemaker::StoppingCondition(*from.stopping_condition_); - } else { - stopping_condition_ = nullptr; - } - if (from.has_vpc_config()) { - vpc_config_ = new ::flyteidl::plugins::sagemaker::VpcConfig(*from.vpc_config_); - } else { - vpc_config_ = nullptr; - } - enable_spot_training_ = from.enable_spot_training_; - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJob) -} - -void TrainingJob::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - region_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - role_arn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&algorithm_specification_, 0, static_cast( - reinterpret_cast(&enable_spot_training_) - - reinterpret_cast(&algorithm_specification_)) + sizeof(enable_spot_training_)); -} - -TrainingJob::~TrainingJob() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJob) - SharedDtor(); -} - -void TrainingJob::SharedDtor() { - region_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - role_arn_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete algorithm_specification_; - if (this != internal_default_instance()) delete resource_config_; - if (this != internal_default_instance()) delete stopping_condition_; - if (this != internal_default_instance()) delete vpc_config_; -} - -void TrainingJob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TrainingJob& TrainingJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - return *internal_default_instance(); -} - - -void TrainingJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - role_arn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && algorithm_specification_ != nullptr) { - delete algorithm_specification_; - } - algorithm_specification_ = nullptr; - if (GetArenaNoVirtual() == nullptr && resource_config_ != nullptr) { - delete resource_config_; - } - resource_config_ = nullptr; - if (GetArenaNoVirtual() == nullptr && stopping_condition_ != nullptr) { - delete stopping_condition_; - } - stopping_condition_ = nullptr; - if (GetArenaNoVirtual() == nullptr && vpc_config_ != nullptr) { - delete vpc_config_; - } - vpc_config_ = nullptr; - enable_spot_training_ = false; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TrainingJob::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // string region = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJob.region"); - object = msg->mutable_region(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string role_arn = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJob.role_arn"); - object = msg->mutable_role_arn(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification::_InternalParse; - object = msg->mutable_algorithm_specification(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::ResourceConfig::_InternalParse; - object = msg->mutable_resource_config(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::StoppingCondition::_InternalParse; - object = msg->mutable_stopping_condition(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::VpcConfig::_InternalParse; - object = msg->mutable_vpc_config(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // bool enable_spot_training = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; - msg->set_enable_spot_training(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TrainingJob::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJob) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string region = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_region())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->region().data(), static_cast(this->region().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.TrainingJob.region")); - } else { - goto handle_unusual; - } - break; - } - - // string role_arn = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_role_arn())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->role_arn().data(), static_cast(this->role_arn().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.TrainingJob.role_arn")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_algorithm_specification())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_resource_config())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_stopping_condition())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_vpc_config())); - } else { - goto handle_unusual; - } - break; - } - - // bool enable_spot_training = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &enable_spot_training_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TrainingJob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string region = 1; - if (this->region().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->region().data(), static_cast(this->region().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.TrainingJob.region"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->region(), output); - } - - // string role_arn = 2; - if (this->role_arn().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->role_arn().data(), static_cast(this->role_arn().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.TrainingJob.role_arn"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->role_arn(), output); - } - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; - if (this->has_algorithm_specification()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::algorithm_specification(this), output); - } - - // .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - if (this->has_resource_config()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::resource_config(this), output); - } - - // .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - if (this->has_stopping_condition()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::stopping_condition(this), output); - } - - // .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; - if (this->has_vpc_config()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::vpc_config(this), output); - } - - // bool enable_spot_training = 7; - if (this->enable_spot_training() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->enable_spot_training(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJob) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJob) } ::google::protobuf::uint8* TrainingJob::InternalSerializeWithCachedSizesToArray( @@ -2743,59 +2079,23 @@ ::google::protobuf::uint8* TrainingJob::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string region = 1; - if (this->region().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->region().data(), static_cast(this->region().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.TrainingJob.region"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->region(), target); - } - - // string role_arn = 2; - if (this->role_arn().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->role_arn().data(), static_cast(this->role_arn().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.TrainingJob.role_arn"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->role_arn(), target); - } - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; if (this->has_algorithm_specification()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 3, HasBitSetters::algorithm_specification(this), target); + 1, HasBitSetters::algorithm_specification(this), target); } - // .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - if (this->has_resource_config()) { + // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + if (this->has_training_job_config()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 4, HasBitSetters::resource_config(this), target); + 2, HasBitSetters::training_job_config(this), target); } - // .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - if (this->has_stopping_condition()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::stopping_condition(this), target); - } - - // .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; - if (this->has_vpc_config()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::vpc_config(this), target); - } - - // bool enable_spot_training = 7; - if (this->enable_spot_training() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->enable_spot_training(), target); + // bool interruptible = 4; + if (this->interruptible() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->interruptible(), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -2819,50 +2119,22 @@ size_t TrainingJob::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string region = 1; - if (this->region().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->region()); - } - - // string role_arn = 2; - if (this->role_arn().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->role_arn()); - } - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; if (this->has_algorithm_specification()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *algorithm_specification_); } - // .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - if (this->has_resource_config()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *resource_config_); - } - - // .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - if (this->has_stopping_condition()) { + // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + if (this->has_training_job_config()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *stopping_condition_); + *training_job_config_); } - // .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; - if (this->has_vpc_config()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *vpc_config_); - } - - // bool enable_spot_training = 7; - if (this->enable_spot_training() != 0) { + // bool interruptible = 4; + if (this->interruptible() != 0) { total_size += 1 + 1; } @@ -2893,28 +2165,14 @@ void TrainingJob::MergeFrom(const TrainingJob& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.region().size() > 0) { - - region_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.region_); - } - if (from.role_arn().size() > 0) { - - role_arn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_arn_); - } if (from.has_algorithm_specification()) { mutable_algorithm_specification()->::flyteidl::plugins::sagemaker::AlgorithmSpecification::MergeFrom(from.algorithm_specification()); } - if (from.has_resource_config()) { - mutable_resource_config()->::flyteidl::plugins::sagemaker::ResourceConfig::MergeFrom(from.resource_config()); - } - if (from.has_stopping_condition()) { - mutable_stopping_condition()->::flyteidl::plugins::sagemaker::StoppingCondition::MergeFrom(from.stopping_condition()); - } - if (from.has_vpc_config()) { - mutable_vpc_config()->::flyteidl::plugins::sagemaker::VpcConfig::MergeFrom(from.vpc_config()); + if (from.has_training_job_config()) { + mutable_training_job_config()->::flyteidl::plugins::sagemaker::TrainingJobConfig::MergeFrom(from.training_job_config()); } - if (from.enable_spot_training() != 0) { - set_enable_spot_training(from.enable_spot_training()); + if (from.interruptible() != 0) { + set_interruptible(from.interruptible()); } } @@ -2943,20 +2201,14 @@ void TrainingJob::Swap(TrainingJob* other) { void TrainingJob::InternalSwap(TrainingJob* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - region_.Swap(&other->region_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - role_arn_.Swap(&other->role_arn_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); swap(algorithm_specification_, other->algorithm_specification_); - swap(resource_config_, other->resource_config_); - swap(stopping_condition_, other->stopping_condition_); - swap(vpc_config_, other->vpc_config_); - swap(enable_spot_training_, other->enable_spot_training_); + swap(training_job_config_, other->training_job_config_); + swap(interruptible_, other->interruptible_); } ::google::protobuf::Metadata TrainingJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; } @@ -2972,15 +2224,12 @@ template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecificat template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(arena); } -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ResourceConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ResourceConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ResourceConfig >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJobConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJobConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJobConfig >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::StoppingCondition >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::StoppingCondition >(arena); } -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::VpcConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::VpcConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::VpcConfig >(arena); -} template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJob >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJob >(arena); } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h similarity index 51% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h index 8eb36f110..e4c4e078f 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h @@ -1,8 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/trainingjob.proto +// source: flyteidl/plugins/sagemaker/training_job.proto -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto #include #include @@ -30,24 +30,25 @@ #include #include // IWYU pragma: export #include // IWYU pragma: export +#include #include // @@protoc_insertion_point(includes) #include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto // Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto { +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto { static const ::google::protobuf::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[6] + static const ::google::protobuf::internal::ParseTable schema[5] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto(); +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto(); namespace flyteidl { namespace plugins { namespace sagemaker { @@ -57,18 +58,15 @@ extern AlgorithmSpecificationDefaultTypeInternal _AlgorithmSpecification_default class AlgorithmSpecification_MetricDefinition; class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal; extern AlgorithmSpecification_MetricDefinitionDefaultTypeInternal _AlgorithmSpecification_MetricDefinition_default_instance_; -class ResourceConfig; -class ResourceConfigDefaultTypeInternal; -extern ResourceConfigDefaultTypeInternal _ResourceConfig_default_instance_; class StoppingCondition; class StoppingConditionDefaultTypeInternal; extern StoppingConditionDefaultTypeInternal _StoppingCondition_default_instance_; class TrainingJob; class TrainingJobDefaultTypeInternal; extern TrainingJobDefaultTypeInternal _TrainingJob_default_instance_; -class VpcConfig; -class VpcConfigDefaultTypeInternal; -extern VpcConfigDefaultTypeInternal _VpcConfig_default_instance_; +class TrainingJobConfig; +class TrainingJobConfigDefaultTypeInternal; +extern TrainingJobConfigDefaultTypeInternal _TrainingJobConfig_default_instance_; } // namespace sagemaker } // namespace plugins } // namespace flyteidl @@ -76,16 +74,57 @@ namespace google { namespace protobuf { template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(Arena*); template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition>(Arena*); -template<> ::flyteidl::plugins::sagemaker::ResourceConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ResourceConfig>(Arena*); template<> ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::StoppingCondition>(Arena*); template<> ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(Arena*); -template<> ::flyteidl::plugins::sagemaker::VpcConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::VpcConfig>(Arena*); +template<> ::flyteidl::plugins::sagemaker::TrainingJobConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobConfig>(Arena*); } // namespace protobuf } // namespace google namespace flyteidl { namespace plugins { namespace sagemaker { +enum InputMode { + FILE = 0, + PIPE = 1, + InputMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + InputMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool InputMode_IsValid(int value); +const InputMode InputMode_MIN = FILE; +const InputMode InputMode_MAX = PIPE; +const int InputMode_ARRAYSIZE = InputMode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* InputMode_descriptor(); +inline const ::std::string& InputMode_Name(InputMode value) { + return ::google::protobuf::internal::NameOfEnum( + InputMode_descriptor(), value); +} +inline bool InputMode_Parse( + const ::std::string& name, InputMode* value) { + return ::google::protobuf::internal::ParseNamedEnum( + InputMode_descriptor(), name, value); +} +enum AlgorithmName { + CUSTOM = 0, + XGBOOST = 1, + AlgorithmName_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + AlgorithmName_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool AlgorithmName_IsValid(int value); +const AlgorithmName AlgorithmName_MIN = CUSTOM; +const AlgorithmName AlgorithmName_MAX = XGBOOST; +const int AlgorithmName_ARRAYSIZE = AlgorithmName_MAX + 1; + +const ::google::protobuf::EnumDescriptor* AlgorithmName_descriptor(); +inline const ::std::string& AlgorithmName_Name(AlgorithmName value) { + return ::google::protobuf::internal::NameOfEnum( + AlgorithmName_descriptor(), value); +} +inline bool AlgorithmName_Parse( + const ::std::string& name, AlgorithmName* value) { + return ::google::protobuf::internal::ParseNamedEnum( + AlgorithmName_descriptor(), name, value); +} // =================================================================== class AlgorithmSpecification_MetricDefinition final : @@ -219,7 +258,7 @@ class AlgorithmSpecification_MetricDefinition final : ::google::protobuf::internal::ArenaStringPtr name_; ::google::protobuf::internal::ArenaStringPtr regex_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; // ------------------------------------------------------------------- @@ -332,47 +371,31 @@ class AlgorithmSpecification final : const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& metric_definitions() const; - // string training_image = 1; - void clear_training_image(); - static const int kTrainingImageFieldNumber = 1; - const ::std::string& training_image() const; - void set_training_image(const ::std::string& value); + // string algorithm_version = 3; + void clear_algorithm_version(); + static const int kAlgorithmVersionFieldNumber = 3; + const ::std::string& algorithm_version() const; + void set_algorithm_version(const ::std::string& value); #if LANG_CXX11 - void set_training_image(::std::string&& value); + void set_algorithm_version(::std::string&& value); #endif - void set_training_image(const char* value); - void set_training_image(const char* value, size_t size); - ::std::string* mutable_training_image(); - ::std::string* release_training_image(); - void set_allocated_training_image(::std::string* training_image); - - // string training_input_mode = 2; - void clear_training_input_mode(); - static const int kTrainingInputModeFieldNumber = 2; - const ::std::string& training_input_mode() const; - void set_training_input_mode(const ::std::string& value); - #if LANG_CXX11 - void set_training_input_mode(::std::string&& value); - #endif - void set_training_input_mode(const char* value); - void set_training_input_mode(const char* value, size_t size); - ::std::string* mutable_training_input_mode(); - ::std::string* release_training_input_mode(); - void set_allocated_training_input_mode(::std::string* training_input_mode); - - // string algorithm_name = 3; + void set_algorithm_version(const char* value); + void set_algorithm_version(const char* value, size_t size); + ::std::string* mutable_algorithm_version(); + ::std::string* release_algorithm_version(); + void set_allocated_algorithm_version(::std::string* algorithm_version); + + // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + void clear_input_mode(); + static const int kInputModeFieldNumber = 1; + ::flyteidl::plugins::sagemaker::InputMode input_mode() const; + void set_input_mode(::flyteidl::plugins::sagemaker::InputMode value); + + // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; void clear_algorithm_name(); - static const int kAlgorithmNameFieldNumber = 3; - const ::std::string& algorithm_name() const; - void set_algorithm_name(const ::std::string& value); - #if LANG_CXX11 - void set_algorithm_name(::std::string&& value); - #endif - void set_algorithm_name(const char* value); - void set_algorithm_name(const char* value, size_t size); - ::std::string* mutable_algorithm_name(); - ::std::string* release_algorithm_name(); - void set_allocated_algorithm_name(::std::string* algorithm_name); + static const int kAlgorithmNameFieldNumber = 2; + ::flyteidl::plugins::sagemaker::AlgorithmName algorithm_name() const; + void set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName value); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) private: @@ -380,33 +403,33 @@ class AlgorithmSpecification final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition > metric_definitions_; - ::google::protobuf::internal::ArenaStringPtr training_image_; - ::google::protobuf::internal::ArenaStringPtr training_input_mode_; - ::google::protobuf::internal::ArenaStringPtr algorithm_name_; + ::google::protobuf::internal::ArenaStringPtr algorithm_version_; + int input_mode_; + int algorithm_name_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; // ------------------------------------------------------------------- -class ResourceConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ResourceConfig) */ { +class TrainingJobConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.TrainingJobConfig) */ { public: - ResourceConfig(); - virtual ~ResourceConfig(); + TrainingJobConfig(); + virtual ~TrainingJobConfig(); - ResourceConfig(const ResourceConfig& from); + TrainingJobConfig(const TrainingJobConfig& from); - inline ResourceConfig& operator=(const ResourceConfig& from) { + inline TrainingJobConfig& operator=(const TrainingJobConfig& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - ResourceConfig(ResourceConfig&& from) noexcept - : ResourceConfig() { + TrainingJobConfig(TrainingJobConfig&& from) noexcept + : TrainingJobConfig() { *this = ::std::move(from); } - inline ResourceConfig& operator=(ResourceConfig&& from) noexcept { + inline TrainingJobConfig& operator=(TrainingJobConfig&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -418,34 +441,34 @@ class ResourceConfig final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const ResourceConfig& default_instance(); + static const TrainingJobConfig& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ResourceConfig* internal_default_instance() { - return reinterpret_cast( - &_ResourceConfig_default_instance_); + static inline const TrainingJobConfig* internal_default_instance() { + return reinterpret_cast( + &_TrainingJobConfig_default_instance_); } static constexpr int kIndexInFileMessages = 2; - void Swap(ResourceConfig* other); - friend void swap(ResourceConfig& a, ResourceConfig& b) { + void Swap(TrainingJobConfig* other); + friend void swap(TrainingJobConfig& a, TrainingJobConfig& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline ResourceConfig* New() const final { - return CreateMaybeMessage(nullptr); + inline TrainingJobConfig* New() const final { + return CreateMaybeMessage(nullptr); } - ResourceConfig* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + TrainingJobConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ResourceConfig& from); - void MergeFrom(const ResourceConfig& from); + void CopyFrom(const TrainingJobConfig& from); + void MergeFrom(const TrainingJobConfig& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -467,7 +490,7 @@ class ResourceConfig final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ResourceConfig* other); + void InternalSwap(TrainingJobConfig* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -483,9 +506,9 @@ class ResourceConfig final : // accessors ------------------------------------------------------- - // string instance_type = 1; + // string instance_type = 2; void clear_instance_type(); - static const int kInstanceTypeFieldNumber = 1; + static const int kInstanceTypeFieldNumber = 2; const ::std::string& instance_type() const; void set_instance_type(const ::std::string& value); #if LANG_CXX11 @@ -497,43 +520,36 @@ class ResourceConfig final : ::std::string* release_instance_type(); void set_allocated_instance_type(::std::string* instance_type); - // string volume_kms_key_id = 4; - void clear_volume_kms_key_id(); - static const int kVolumeKmsKeyIdFieldNumber = 4; - const ::std::string& volume_kms_key_id() const; - void set_volume_kms_key_id(const ::std::string& value); + // string volume_size_in_gb = 3; + void clear_volume_size_in_gb(); + static const int kVolumeSizeInGbFieldNumber = 3; + const ::std::string& volume_size_in_gb() const; + void set_volume_size_in_gb(const ::std::string& value); #if LANG_CXX11 - void set_volume_kms_key_id(::std::string&& value); + void set_volume_size_in_gb(::std::string&& value); #endif - void set_volume_kms_key_id(const char* value); - void set_volume_kms_key_id(const char* value, size_t size); - ::std::string* mutable_volume_kms_key_id(); - ::std::string* release_volume_kms_key_id(); - void set_allocated_volume_kms_key_id(::std::string* volume_kms_key_id); + void set_volume_size_in_gb(const char* value); + void set_volume_size_in_gb(const char* value, size_t size); + ::std::string* mutable_volume_size_in_gb(); + ::std::string* release_volume_size_in_gb(); + void set_allocated_volume_size_in_gb(::std::string* volume_size_in_gb); - // int64 instance_count = 2; + // int64 instance_count = 1; void clear_instance_count(); - static const int kInstanceCountFieldNumber = 2; + static const int kInstanceCountFieldNumber = 1; ::google::protobuf::int64 instance_count() const; void set_instance_count(::google::protobuf::int64 value); - // int64 volume_size_in_gb = 3; - void clear_volume_size_in_gb(); - static const int kVolumeSizeInGbFieldNumber = 3; - ::google::protobuf::int64 volume_size_in_gb() const; - void set_volume_size_in_gb(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr instance_type_; - ::google::protobuf::internal::ArenaStringPtr volume_kms_key_id_; + ::google::protobuf::internal::ArenaStringPtr volume_size_in_gb_; ::google::protobuf::int64 instance_count_; - ::google::protobuf::int64 volume_size_in_gb_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; // ------------------------------------------------------------------- @@ -652,158 +668,7 @@ class StoppingCondition final : ::google::protobuf::int64 max_runtime_in_seconds_; ::google::protobuf::int64 max_wait_time_in_seconds_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; -}; -// ------------------------------------------------------------------- - -class VpcConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.VpcConfig) */ { - public: - VpcConfig(); - virtual ~VpcConfig(); - - VpcConfig(const VpcConfig& from); - - inline VpcConfig& operator=(const VpcConfig& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - VpcConfig(VpcConfig&& from) noexcept - : VpcConfig() { - *this = ::std::move(from); - } - - inline VpcConfig& operator=(VpcConfig&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const VpcConfig& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VpcConfig* internal_default_instance() { - return reinterpret_cast( - &_VpcConfig_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(VpcConfig* other); - friend void swap(VpcConfig& a, VpcConfig& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline VpcConfig* New() const final { - return CreateMaybeMessage(nullptr); - } - - VpcConfig* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const VpcConfig& from); - void MergeFrom(const VpcConfig& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VpcConfig* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string security_group_ids = 1; - int security_group_ids_size() const; - void clear_security_group_ids(); - static const int kSecurityGroupIdsFieldNumber = 1; - const ::std::string& security_group_ids(int index) const; - ::std::string* mutable_security_group_ids(int index); - void set_security_group_ids(int index, const ::std::string& value); - #if LANG_CXX11 - void set_security_group_ids(int index, ::std::string&& value); - #endif - void set_security_group_ids(int index, const char* value); - void set_security_group_ids(int index, const char* value, size_t size); - ::std::string* add_security_group_ids(); - void add_security_group_ids(const ::std::string& value); - #if LANG_CXX11 - void add_security_group_ids(::std::string&& value); - #endif - void add_security_group_ids(const char* value); - void add_security_group_ids(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& security_group_ids() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_security_group_ids(); - - // repeated string subnets = 2; - int subnets_size() const; - void clear_subnets(); - static const int kSubnetsFieldNumber = 2; - const ::std::string& subnets(int index) const; - ::std::string* mutable_subnets(int index); - void set_subnets(int index, const ::std::string& value); - #if LANG_CXX11 - void set_subnets(int index, ::std::string&& value); - #endif - void set_subnets(int index, const char* value); - void set_subnets(int index, const char* value, size_t size); - ::std::string* add_subnets(); - void add_subnets(const ::std::string& value); - #if LANG_CXX11 - void add_subnets(::std::string&& value); - #endif - void add_subnets(const char* value); - void add_subnets(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& subnets() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_subnets(); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.VpcConfig) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> security_group_ids_; - ::google::protobuf::RepeatedPtrField<::std::string> subnets_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; // ------------------------------------------------------------------- @@ -845,7 +710,7 @@ class TrainingJob final : &_TrainingJob_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 4; void Swap(TrainingJob* other); friend void swap(TrainingJob& a, TrainingJob& b) { @@ -902,90 +767,40 @@ class TrainingJob final : // accessors ------------------------------------------------------- - // string region = 1; - void clear_region(); - static const int kRegionFieldNumber = 1; - const ::std::string& region() const; - void set_region(const ::std::string& value); - #if LANG_CXX11 - void set_region(::std::string&& value); - #endif - void set_region(const char* value); - void set_region(const char* value, size_t size); - ::std::string* mutable_region(); - ::std::string* release_region(); - void set_allocated_region(::std::string* region); - - // string role_arn = 2; - void clear_role_arn(); - static const int kRoleArnFieldNumber = 2; - const ::std::string& role_arn() const; - void set_role_arn(const ::std::string& value); - #if LANG_CXX11 - void set_role_arn(::std::string&& value); - #endif - void set_role_arn(const char* value); - void set_role_arn(const char* value, size_t size); - ::std::string* mutable_role_arn(); - ::std::string* release_role_arn(); - void set_allocated_role_arn(::std::string* role_arn); - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; bool has_algorithm_specification() const; void clear_algorithm_specification(); - static const int kAlgorithmSpecificationFieldNumber = 3; + static const int kAlgorithmSpecificationFieldNumber = 1; const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithm_specification() const; ::flyteidl::plugins::sagemaker::AlgorithmSpecification* release_algorithm_specification(); ::flyteidl::plugins::sagemaker::AlgorithmSpecification* mutable_algorithm_specification(); void set_allocated_algorithm_specification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification); - // .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - bool has_resource_config() const; - void clear_resource_config(); - static const int kResourceConfigFieldNumber = 4; - const ::flyteidl::plugins::sagemaker::ResourceConfig& resource_config() const; - ::flyteidl::plugins::sagemaker::ResourceConfig* release_resource_config(); - ::flyteidl::plugins::sagemaker::ResourceConfig* mutable_resource_config(); - void set_allocated_resource_config(::flyteidl::plugins::sagemaker::ResourceConfig* resource_config); - - // .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - bool has_stopping_condition() const; - void clear_stopping_condition(); - static const int kStoppingConditionFieldNumber = 5; - const ::flyteidl::plugins::sagemaker::StoppingCondition& stopping_condition() const; - ::flyteidl::plugins::sagemaker::StoppingCondition* release_stopping_condition(); - ::flyteidl::plugins::sagemaker::StoppingCondition* mutable_stopping_condition(); - void set_allocated_stopping_condition(::flyteidl::plugins::sagemaker::StoppingCondition* stopping_condition); - - // .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; - bool has_vpc_config() const; - void clear_vpc_config(); - static const int kVpcConfigFieldNumber = 6; - const ::flyteidl::plugins::sagemaker::VpcConfig& vpc_config() const; - ::flyteidl::plugins::sagemaker::VpcConfig* release_vpc_config(); - ::flyteidl::plugins::sagemaker::VpcConfig* mutable_vpc_config(); - void set_allocated_vpc_config(::flyteidl::plugins::sagemaker::VpcConfig* vpc_config); - - // bool enable_spot_training = 7; - void clear_enable_spot_training(); - static const int kEnableSpotTrainingFieldNumber = 7; - bool enable_spot_training() const; - void set_enable_spot_training(bool value); + // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + bool has_training_job_config() const; + void clear_training_job_config(); + static const int kTrainingJobConfigFieldNumber = 2; + const ::flyteidl::plugins::sagemaker::TrainingJobConfig& training_job_config() const; + ::flyteidl::plugins::sagemaker::TrainingJobConfig* release_training_job_config(); + ::flyteidl::plugins::sagemaker::TrainingJobConfig* mutable_training_job_config(); + void set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config); + + // bool interruptible = 4; + void clear_interruptible(); + static const int kInterruptibleFieldNumber = 4; + bool interruptible() const; + void set_interruptible(bool value); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr region_; - ::google::protobuf::internal::ArenaStringPtr role_arn_; ::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification_; - ::flyteidl::plugins::sagemaker::ResourceConfig* resource_config_; - ::flyteidl::plugins::sagemaker::StoppingCondition* stopping_condition_; - ::flyteidl::plugins::sagemaker::VpcConfig* vpc_config_; - bool enable_spot_training_; + ::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config_; + bool interruptible_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; // =================================================================== @@ -1108,163 +923,85 @@ inline void AlgorithmSpecification_MetricDefinition::set_allocated_regex(::std:: // AlgorithmSpecification -// string training_image = 1; -inline void AlgorithmSpecification::clear_training_image() { - training_image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AlgorithmSpecification::training_image() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) - return training_image_.GetNoArena(); -} -inline void AlgorithmSpecification::set_training_image(const ::std::string& value) { - - training_image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) -} -#if LANG_CXX11 -inline void AlgorithmSpecification::set_training_image(::std::string&& value) { - - training_image_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) -} -#endif -inline void AlgorithmSpecification::set_training_image(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - training_image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) -} -inline void AlgorithmSpecification::set_training_image(const char* value, size_t size) { - - training_image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) +// .flyteidl.plugins.sagemaker.InputMode input_mode = 1; +inline void AlgorithmSpecification::clear_input_mode() { + input_mode_ = 0; } -inline ::std::string* AlgorithmSpecification::mutable_training_image() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) - return training_image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline ::flyteidl::plugins::sagemaker::InputMode AlgorithmSpecification::input_mode() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode) + return static_cast< ::flyteidl::plugins::sagemaker::InputMode >(input_mode_); } -inline ::std::string* AlgorithmSpecification::release_training_image() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) +inline void AlgorithmSpecification::set_input_mode(::flyteidl::plugins::sagemaker::InputMode value) { - return training_image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AlgorithmSpecification::set_allocated_training_image(::std::string* training_image) { - if (training_image != nullptr) { - - } else { - - } - training_image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), training_image); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image) + input_mode_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode) } -// string training_input_mode = 2; -inline void AlgorithmSpecification::clear_training_input_mode() { - training_input_mode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AlgorithmSpecification::training_input_mode() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) - return training_input_mode_.GetNoArena(); -} -inline void AlgorithmSpecification::set_training_input_mode(const ::std::string& value) { - - training_input_mode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) -} -#if LANG_CXX11 -inline void AlgorithmSpecification::set_training_input_mode(::std::string&& value) { - - training_input_mode_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) -} -#endif -inline void AlgorithmSpecification::set_training_input_mode(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - training_input_mode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) -} -inline void AlgorithmSpecification::set_training_input_mode(const char* value, size_t size) { - - training_input_mode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) +// .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; +inline void AlgorithmSpecification::clear_algorithm_name() { + algorithm_name_ = 0; } -inline ::std::string* AlgorithmSpecification::mutable_training_input_mode() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) - return training_input_mode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline ::flyteidl::plugins::sagemaker::AlgorithmName AlgorithmSpecification::algorithm_name() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) + return static_cast< ::flyteidl::plugins::sagemaker::AlgorithmName >(algorithm_name_); } -inline ::std::string* AlgorithmSpecification::release_training_input_mode() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) +inline void AlgorithmSpecification::set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName value) { - return training_input_mode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AlgorithmSpecification::set_allocated_training_input_mode(::std::string* training_input_mode) { - if (training_input_mode != nullptr) { - - } else { - - } - training_input_mode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), training_input_mode); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode) + algorithm_name_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) } -// string algorithm_name = 3; -inline void AlgorithmSpecification::clear_algorithm_name() { - algorithm_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string algorithm_version = 3; +inline void AlgorithmSpecification::clear_algorithm_version() { + algorithm_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& AlgorithmSpecification::algorithm_name() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) - return algorithm_name_.GetNoArena(); +inline const ::std::string& AlgorithmSpecification::algorithm_version() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) + return algorithm_version_.GetNoArena(); } -inline void AlgorithmSpecification::set_algorithm_name(const ::std::string& value) { +inline void AlgorithmSpecification::set_algorithm_version(const ::std::string& value) { - algorithm_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) + algorithm_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) } #if LANG_CXX11 -inline void AlgorithmSpecification::set_algorithm_name(::std::string&& value) { +inline void AlgorithmSpecification::set_algorithm_version(::std::string&& value) { - algorithm_name_.SetNoArena( + algorithm_version_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) } #endif -inline void AlgorithmSpecification::set_algorithm_name(const char* value) { +inline void AlgorithmSpecification::set_algorithm_version(const char* value) { GOOGLE_DCHECK(value != nullptr); - algorithm_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) + algorithm_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) } -inline void AlgorithmSpecification::set_algorithm_name(const char* value, size_t size) { +inline void AlgorithmSpecification::set_algorithm_version(const char* value, size_t size) { - algorithm_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + algorithm_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) } -inline ::std::string* AlgorithmSpecification::mutable_algorithm_name() { +inline ::std::string* AlgorithmSpecification::mutable_algorithm_version() { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) - return algorithm_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) + return algorithm_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* AlgorithmSpecification::release_algorithm_name() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) +inline ::std::string* AlgorithmSpecification::release_algorithm_version() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) - return algorithm_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return algorithm_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void AlgorithmSpecification::set_allocated_algorithm_name(::std::string* algorithm_name) { - if (algorithm_name != nullptr) { +inline void AlgorithmSpecification::set_allocated_algorithm_version(::std::string* algorithm_version) { + if (algorithm_version != nullptr) { } else { } - algorithm_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), algorithm_name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) + algorithm_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), algorithm_version); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) } // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; @@ -1299,140 +1036,126 @@ AlgorithmSpecification::metric_definitions() const { // ------------------------------------------------------------------- -// ResourceConfig +// TrainingJobConfig + +// int64 instance_count = 1; +inline void TrainingJobConfig::clear_instance_count() { + instance_count_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 TrainingJobConfig::instance_count() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count) + return instance_count_; +} +inline void TrainingJobConfig::set_instance_count(::google::protobuf::int64 value) { + + instance_count_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count) +} -// string instance_type = 1; -inline void ResourceConfig::clear_instance_type() { +// string instance_type = 2; +inline void TrainingJobConfig::clear_instance_type() { instance_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& ResourceConfig::instance_type() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) +inline const ::std::string& TrainingJobConfig::instance_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) return instance_type_.GetNoArena(); } -inline void ResourceConfig::set_instance_type(const ::std::string& value) { +inline void TrainingJobConfig::set_instance_type(const ::std::string& value) { instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) } #if LANG_CXX11 -inline void ResourceConfig::set_instance_type(::std::string&& value) { +inline void TrainingJobConfig::set_instance_type(::std::string&& value) { instance_type_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) } #endif -inline void ResourceConfig::set_instance_type(const char* value) { +inline void TrainingJobConfig::set_instance_type(const char* value) { GOOGLE_DCHECK(value != nullptr); instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) } -inline void ResourceConfig::set_instance_type(const char* value, size_t size) { +inline void TrainingJobConfig::set_instance_type(const char* value, size_t size) { instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) } -inline ::std::string* ResourceConfig::mutable_instance_type() { +inline ::std::string* TrainingJobConfig::mutable_instance_type() { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) return instance_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* ResourceConfig::release_instance_type() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) +inline ::std::string* TrainingJobConfig::release_instance_type() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) return instance_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ResourceConfig::set_allocated_instance_type(::std::string* instance_type) { +inline void TrainingJobConfig::set_allocated_instance_type(::std::string* instance_type) { if (instance_type != nullptr) { } else { } instance_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instance_type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ResourceConfig.instance_type) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) } -// int64 instance_count = 2; -inline void ResourceConfig::clear_instance_count() { - instance_count_ = PROTOBUF_LONGLONG(0); +// string volume_size_in_gb = 3; +inline void TrainingJobConfig::clear_volume_size_in_gb() { + volume_size_in_gb_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::google::protobuf::int64 ResourceConfig::instance_count() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.instance_count) - return instance_count_; +inline const ::std::string& TrainingJobConfig::volume_size_in_gb() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) + return volume_size_in_gb_.GetNoArena(); } -inline void ResourceConfig::set_instance_count(::google::protobuf::int64 value) { +inline void TrainingJobConfig::set_volume_size_in_gb(const ::std::string& value) { - instance_count_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.instance_count) -} - -// int64 volume_size_in_gb = 3; -inline void ResourceConfig::clear_volume_size_in_gb() { - volume_size_in_gb_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 ResourceConfig::volume_size_in_gb() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.volume_size_in_gb) - return volume_size_in_gb_; -} -inline void ResourceConfig::set_volume_size_in_gb(::google::protobuf::int64 value) { - - volume_size_in_gb_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.volume_size_in_gb) -} - -// string volume_kms_key_id = 4; -inline void ResourceConfig::clear_volume_kms_key_id() { - volume_kms_key_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ResourceConfig::volume_kms_key_id() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) - return volume_kms_key_id_.GetNoArena(); -} -inline void ResourceConfig::set_volume_kms_key_id(const ::std::string& value) { - - volume_kms_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) + volume_size_in_gb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) } #if LANG_CXX11 -inline void ResourceConfig::set_volume_kms_key_id(::std::string&& value) { +inline void TrainingJobConfig::set_volume_size_in_gb(::std::string&& value) { - volume_kms_key_id_.SetNoArena( + volume_size_in_gb_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) } #endif -inline void ResourceConfig::set_volume_kms_key_id(const char* value) { +inline void TrainingJobConfig::set_volume_size_in_gb(const char* value) { GOOGLE_DCHECK(value != nullptr); - volume_kms_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) + volume_size_in_gb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) } -inline void ResourceConfig::set_volume_kms_key_id(const char* value, size_t size) { +inline void TrainingJobConfig::set_volume_size_in_gb(const char* value, size_t size) { - volume_kms_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + volume_size_in_gb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) } -inline ::std::string* ResourceConfig::mutable_volume_kms_key_id() { +inline ::std::string* TrainingJobConfig::mutable_volume_size_in_gb() { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) - return volume_kms_key_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) + return volume_size_in_gb_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* ResourceConfig::release_volume_kms_key_id() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) +inline ::std::string* TrainingJobConfig::release_volume_size_in_gb() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) - return volume_kms_key_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return volume_size_in_gb_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ResourceConfig::set_allocated_volume_kms_key_id(::std::string* volume_kms_key_id) { - if (volume_kms_key_id != nullptr) { +inline void TrainingJobConfig::set_allocated_volume_size_in_gb(::std::string* volume_size_in_gb) { + if (volume_size_in_gb != nullptr) { } else { } - volume_kms_key_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), volume_kms_key_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id) + volume_size_in_gb_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), volume_size_in_gb); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) } // ------------------------------------------------------------------- @@ -1469,257 +1192,9 @@ inline void StoppingCondition::set_max_wait_time_in_seconds(::google::protobuf:: // ------------------------------------------------------------------- -// VpcConfig - -// repeated string security_group_ids = 1; -inline int VpcConfig::security_group_ids_size() const { - return security_group_ids_.size(); -} -inline void VpcConfig::clear_security_group_ids() { - security_group_ids_.Clear(); -} -inline const ::std::string& VpcConfig::security_group_ids(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) - return security_group_ids_.Get(index); -} -inline ::std::string* VpcConfig::mutable_security_group_ids(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) - return security_group_ids_.Mutable(index); -} -inline void VpcConfig::set_security_group_ids(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) - security_group_ids_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void VpcConfig::set_security_group_ids(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) - security_group_ids_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void VpcConfig::set_security_group_ids(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - security_group_ids_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) -} -inline void VpcConfig::set_security_group_ids(int index, const char* value, size_t size) { - security_group_ids_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) -} -inline ::std::string* VpcConfig::add_security_group_ids() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) - return security_group_ids_.Add(); -} -inline void VpcConfig::add_security_group_ids(const ::std::string& value) { - security_group_ids_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) -} -#if LANG_CXX11 -inline void VpcConfig::add_security_group_ids(::std::string&& value) { - security_group_ids_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) -} -#endif -inline void VpcConfig::add_security_group_ids(const char* value) { - GOOGLE_DCHECK(value != nullptr); - security_group_ids_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) -} -inline void VpcConfig::add_security_group_ids(const char* value, size_t size) { - security_group_ids_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -VpcConfig::security_group_ids() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) - return security_group_ids_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -VpcConfig::mutable_security_group_ids() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.VpcConfig.security_group_ids) - return &security_group_ids_; -} - -// repeated string subnets = 2; -inline int VpcConfig::subnets_size() const { - return subnets_.size(); -} -inline void VpcConfig::clear_subnets() { - subnets_.Clear(); -} -inline const ::std::string& VpcConfig::subnets(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.VpcConfig.subnets) - return subnets_.Get(index); -} -inline ::std::string* VpcConfig::mutable_subnets(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.VpcConfig.subnets) - return subnets_.Mutable(index); -} -inline void VpcConfig::set_subnets(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.subnets) - subnets_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void VpcConfig::set_subnets(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.VpcConfig.subnets) - subnets_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void VpcConfig::set_subnets(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - subnets_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.VpcConfig.subnets) -} -inline void VpcConfig::set_subnets(int index, const char* value, size_t size) { - subnets_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.VpcConfig.subnets) -} -inline ::std::string* VpcConfig::add_subnets() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.VpcConfig.subnets) - return subnets_.Add(); -} -inline void VpcConfig::add_subnets(const ::std::string& value) { - subnets_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.subnets) -} -#if LANG_CXX11 -inline void VpcConfig::add_subnets(::std::string&& value) { - subnets_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.VpcConfig.subnets) -} -#endif -inline void VpcConfig::add_subnets(const char* value) { - GOOGLE_DCHECK(value != nullptr); - subnets_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.VpcConfig.subnets) -} -inline void VpcConfig::add_subnets(const char* value, size_t size) { - subnets_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.VpcConfig.subnets) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -VpcConfig::subnets() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.VpcConfig.subnets) - return subnets_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -VpcConfig::mutable_subnets() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.VpcConfig.subnets) - return &subnets_; -} - -// ------------------------------------------------------------------- - // TrainingJob -// string region = 1; -inline void TrainingJob::clear_region() { - region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TrainingJob::region() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.region) - return region_.GetNoArena(); -} -inline void TrainingJob::set_region(const ::std::string& value) { - - region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.region) -} -#if LANG_CXX11 -inline void TrainingJob::set_region(::std::string&& value) { - - region_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJob.region) -} -#endif -inline void TrainingJob::set_region(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJob.region) -} -inline void TrainingJob::set_region(const char* value, size_t size) { - - region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJob.region) -} -inline ::std::string* TrainingJob::mutable_region() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.region) - return region_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TrainingJob::release_region() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.region) - - return region_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TrainingJob::set_allocated_region(::std::string* region) { - if (region != nullptr) { - - } else { - - } - region_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), region); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.region) -} - -// string role_arn = 2; -inline void TrainingJob::clear_role_arn() { - role_arn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TrainingJob::role_arn() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.role_arn) - return role_arn_.GetNoArena(); -} -inline void TrainingJob::set_role_arn(const ::std::string& value) { - - role_arn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.role_arn) -} -#if LANG_CXX11 -inline void TrainingJob::set_role_arn(::std::string&& value) { - - role_arn_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJob.role_arn) -} -#endif -inline void TrainingJob::set_role_arn(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - role_arn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJob.role_arn) -} -inline void TrainingJob::set_role_arn(const char* value, size_t size) { - - role_arn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJob.role_arn) -} -inline ::std::string* TrainingJob::mutable_role_arn() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.role_arn) - return role_arn_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TrainingJob::release_role_arn() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.role_arn) - - return role_arn_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TrainingJob::set_allocated_role_arn(::std::string* role_arn) { - if (role_arn != nullptr) { - - } else { - - } - role_arn_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), role_arn); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.role_arn) -} - -// .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; +// .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; inline bool TrainingJob::has_algorithm_specification() const { return this != internal_default_instance() && algorithm_specification_ != nullptr; } @@ -1770,171 +1245,69 @@ inline void TrainingJob::set_allocated_algorithm_specification(::flyteidl::plugi // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) } -// .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; -inline bool TrainingJob::has_resource_config() const { - return this != internal_default_instance() && resource_config_ != nullptr; -} -inline void TrainingJob::clear_resource_config() { - if (GetArenaNoVirtual() == nullptr && resource_config_ != nullptr) { - delete resource_config_; - } - resource_config_ = nullptr; -} -inline const ::flyteidl::plugins::sagemaker::ResourceConfig& TrainingJob::resource_config() const { - const ::flyteidl::plugins::sagemaker::ResourceConfig* p = resource_config_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.resource_config) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_ResourceConfig_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::ResourceConfig* TrainingJob::release_resource_config() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.resource_config) - - ::flyteidl::plugins::sagemaker::ResourceConfig* temp = resource_config_; - resource_config_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::ResourceConfig* TrainingJob::mutable_resource_config() { - - if (resource_config_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ResourceConfig>(GetArenaNoVirtual()); - resource_config_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.resource_config) - return resource_config_; -} -inline void TrainingJob::set_allocated_resource_config(::flyteidl::plugins::sagemaker::ResourceConfig* resource_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete resource_config_; - } - if (resource_config) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - resource_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, resource_config, submessage_arena); - } - - } else { - - } - resource_config_ = resource_config; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.resource_config) -} - -// .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; -inline bool TrainingJob::has_stopping_condition() const { - return this != internal_default_instance() && stopping_condition_ != nullptr; +// .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; +inline bool TrainingJob::has_training_job_config() const { + return this != internal_default_instance() && training_job_config_ != nullptr; } -inline void TrainingJob::clear_stopping_condition() { - if (GetArenaNoVirtual() == nullptr && stopping_condition_ != nullptr) { - delete stopping_condition_; +inline void TrainingJob::clear_training_job_config() { + if (GetArenaNoVirtual() == nullptr && training_job_config_ != nullptr) { + delete training_job_config_; } - stopping_condition_ = nullptr; + training_job_config_ = nullptr; } -inline const ::flyteidl::plugins::sagemaker::StoppingCondition& TrainingJob::stopping_condition() const { - const ::flyteidl::plugins::sagemaker::StoppingCondition* p = stopping_condition_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.stopping_condition) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_); +inline const ::flyteidl::plugins::sagemaker::TrainingJobConfig& TrainingJob::training_job_config() const { + const ::flyteidl::plugins::sagemaker::TrainingJobConfig* p = training_job_config_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_TrainingJobConfig_default_instance_); } -inline ::flyteidl::plugins::sagemaker::StoppingCondition* TrainingJob::release_stopping_condition() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.stopping_condition) +inline ::flyteidl::plugins::sagemaker::TrainingJobConfig* TrainingJob::release_training_job_config() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) - ::flyteidl::plugins::sagemaker::StoppingCondition* temp = stopping_condition_; - stopping_condition_ = nullptr; + ::flyteidl::plugins::sagemaker::TrainingJobConfig* temp = training_job_config_; + training_job_config_ = nullptr; return temp; } -inline ::flyteidl::plugins::sagemaker::StoppingCondition* TrainingJob::mutable_stopping_condition() { +inline ::flyteidl::plugins::sagemaker::TrainingJobConfig* TrainingJob::mutable_training_job_config() { - if (stopping_condition_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::StoppingCondition>(GetArenaNoVirtual()); - stopping_condition_ = p; + if (training_job_config_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobConfig>(GetArenaNoVirtual()); + training_job_config_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.stopping_condition) - return stopping_condition_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) + return training_job_config_; } -inline void TrainingJob::set_allocated_stopping_condition(::flyteidl::plugins::sagemaker::StoppingCondition* stopping_condition) { +inline void TrainingJob::set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete stopping_condition_; + delete training_job_config_; } - if (stopping_condition) { + if (training_job_config) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - stopping_condition = ::google::protobuf::internal::GetOwnedMessage( - message_arena, stopping_condition, submessage_arena); + training_job_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, training_job_config, submessage_arena); } } else { } - stopping_condition_ = stopping_condition; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.stopping_condition) + training_job_config_ = training_job_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) } -// .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; -inline bool TrainingJob::has_vpc_config() const { - return this != internal_default_instance() && vpc_config_ != nullptr; +// bool interruptible = 4; +inline void TrainingJob::clear_interruptible() { + interruptible_ = false; } -inline void TrainingJob::clear_vpc_config() { - if (GetArenaNoVirtual() == nullptr && vpc_config_ != nullptr) { - delete vpc_config_; - } - vpc_config_ = nullptr; +inline bool TrainingJob::interruptible() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.interruptible) + return interruptible_; } -inline const ::flyteidl::plugins::sagemaker::VpcConfig& TrainingJob::vpc_config() const { - const ::flyteidl::plugins::sagemaker::VpcConfig* p = vpc_config_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.vpc_config) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_VpcConfig_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::VpcConfig* TrainingJob::release_vpc_config() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.vpc_config) +inline void TrainingJob::set_interruptible(bool value) { - ::flyteidl::plugins::sagemaker::VpcConfig* temp = vpc_config_; - vpc_config_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::VpcConfig* TrainingJob::mutable_vpc_config() { - - if (vpc_config_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::VpcConfig>(GetArenaNoVirtual()); - vpc_config_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.vpc_config) - return vpc_config_; -} -inline void TrainingJob::set_allocated_vpc_config(::flyteidl::plugins::sagemaker::VpcConfig* vpc_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete vpc_config_; - } - if (vpc_config) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - vpc_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, vpc_config, submessage_arena); - } - - } else { - - } - vpc_config_ = vpc_config; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.vpc_config) -} - -// bool enable_spot_training = 7; -inline void TrainingJob::clear_enable_spot_training() { - enable_spot_training_ = false; -} -inline bool TrainingJob::enable_spot_training() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.enable_spot_training) - return enable_spot_training_; -} -inline void TrainingJob::set_enable_spot_training(bool value) { - - enable_spot_training_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.enable_spot_training) + interruptible_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.interruptible) } #ifdef __GNUC__ @@ -1948,8 +1321,6 @@ inline void TrainingJob::set_enable_spot_training(bool value) { // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) @@ -1957,7 +1328,24 @@ inline void TrainingJob::set_enable_spot_training(bool value) { } // namespace plugins } // namespace flyteidl +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::InputMode> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::InputMode>() { + return ::flyteidl::plugins::sagemaker::InputMode_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::AlgorithmName> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::AlgorithmName>() { + return ::flyteidl::plugins::sagemaker::AlgorithmName_descriptor(); +} + +} // namespace protobuf +} // namespace google + // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go new file mode 100644 index 000000000..a98400ed4 --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go @@ -0,0 +1,309 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/hpo_job.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HyperparameterTuningObjective_HyperparameterTuningObjectiveType int32 + +const ( + HyperparameterTuningObjective_MINIMIZE HyperparameterTuningObjective_HyperparameterTuningObjectiveType = 0 + HyperparameterTuningObjective_MAXIMIZE HyperparameterTuningObjective_HyperparameterTuningObjectiveType = 1 +) + +var HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name = map[int32]string{ + 0: "MINIMIZE", + 1: "MAXIMIZE", +} + +var HyperparameterTuningObjective_HyperparameterTuningObjectiveType_value = map[string]int32{ + "MINIMIZE": 0, + "MAXIMIZE": 1, +} + +func (x HyperparameterTuningObjective_HyperparameterTuningObjectiveType) String() string { + return proto.EnumName(HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name, int32(x)) +} + +func (HyperparameterTuningObjective_HyperparameterTuningObjectiveType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_50903433b4c088ac, []int{0, 0} +} + +type HPOJobConfig_HyperparameterTuningStrategy int32 + +const ( + HPOJobConfig_BAYESIAN HPOJobConfig_HyperparameterTuningStrategy = 0 +) + +var HPOJobConfig_HyperparameterTuningStrategy_name = map[int32]string{ + 0: "BAYESIAN", +} + +var HPOJobConfig_HyperparameterTuningStrategy_value = map[string]int32{ + "BAYESIAN": 0, +} + +func (x HPOJobConfig_HyperparameterTuningStrategy) String() string { + return proto.EnumName(HPOJobConfig_HyperparameterTuningStrategy_name, int32(x)) +} + +func (HPOJobConfig_HyperparameterTuningStrategy) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_50903433b4c088ac, []int{2, 0} +} + +type HPOJobConfig_TrainingJobEarlyStoppingType int32 + +const ( + HPOJobConfig_OFF HPOJobConfig_TrainingJobEarlyStoppingType = 0 + HPOJobConfig_AUTO HPOJobConfig_TrainingJobEarlyStoppingType = 1 +) + +var HPOJobConfig_TrainingJobEarlyStoppingType_name = map[int32]string{ + 0: "OFF", + 1: "AUTO", +} + +var HPOJobConfig_TrainingJobEarlyStoppingType_value = map[string]int32{ + "OFF": 0, + "AUTO": 1, +} + +func (x HPOJobConfig_TrainingJobEarlyStoppingType) String() string { + return proto.EnumName(HPOJobConfig_TrainingJobEarlyStoppingType_name, int32(x)) +} + +func (HPOJobConfig_TrainingJobEarlyStoppingType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_50903433b4c088ac, []int{2, 1} +} + +type HyperparameterTuningObjective struct { + ObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType `protobuf:"varint,1,opt,name=objective_type,json=objectiveType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningObjective_HyperparameterTuningObjectiveType" json:"objective_type,omitempty"` + MetricName string `protobuf:"bytes,2,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HyperparameterTuningObjective) Reset() { *m = HyperparameterTuningObjective{} } +func (m *HyperparameterTuningObjective) String() string { return proto.CompactTextString(m) } +func (*HyperparameterTuningObjective) ProtoMessage() {} +func (*HyperparameterTuningObjective) Descriptor() ([]byte, []int) { + return fileDescriptor_50903433b4c088ac, []int{0} +} + +func (m *HyperparameterTuningObjective) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HyperparameterTuningObjective.Unmarshal(m, b) +} +func (m *HyperparameterTuningObjective) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HyperparameterTuningObjective.Marshal(b, m, deterministic) +} +func (m *HyperparameterTuningObjective) XXX_Merge(src proto.Message) { + xxx_messageInfo_HyperparameterTuningObjective.Merge(m, src) +} +func (m *HyperparameterTuningObjective) XXX_Size() int { + return xxx_messageInfo_HyperparameterTuningObjective.Size(m) +} +func (m *HyperparameterTuningObjective) XXX_DiscardUnknown() { + xxx_messageInfo_HyperparameterTuningObjective.DiscardUnknown(m) +} + +var xxx_messageInfo_HyperparameterTuningObjective proto.InternalMessageInfo + +func (m *HyperparameterTuningObjective) GetObjectiveType() HyperparameterTuningObjective_HyperparameterTuningObjectiveType { + if m != nil { + return m.ObjectiveType + } + return HyperparameterTuningObjective_MINIMIZE +} + +func (m *HyperparameterTuningObjective) GetMetricName() string { + if m != nil { + return m.MetricName + } + return "" +} + +type HPOJob struct { + TrainingJob *TrainingJob `protobuf:"bytes,1,opt,name=training_job,json=trainingJob,proto3" json:"training_job,omitempty"` + MaxNumberOfTrainingJobs int64 `protobuf:"varint,2,opt,name=max_number_of_training_jobs,json=maxNumberOfTrainingJobs,proto3" json:"max_number_of_training_jobs,omitempty"` + MaxParallelTrainingJobs int64 `protobuf:"varint,3,opt,name=max_parallel_training_jobs,json=maxParallelTrainingJobs,proto3" json:"max_parallel_training_jobs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HPOJob) Reset() { *m = HPOJob{} } +func (m *HPOJob) String() string { return proto.CompactTextString(m) } +func (*HPOJob) ProtoMessage() {} +func (*HPOJob) Descriptor() ([]byte, []int) { + return fileDescriptor_50903433b4c088ac, []int{1} +} + +func (m *HPOJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HPOJob.Unmarshal(m, b) +} +func (m *HPOJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HPOJob.Marshal(b, m, deterministic) +} +func (m *HPOJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_HPOJob.Merge(m, src) +} +func (m *HPOJob) XXX_Size() int { + return xxx_messageInfo_HPOJob.Size(m) +} +func (m *HPOJob) XXX_DiscardUnknown() { + xxx_messageInfo_HPOJob.DiscardUnknown(m) +} + +var xxx_messageInfo_HPOJob proto.InternalMessageInfo + +func (m *HPOJob) GetTrainingJob() *TrainingJob { + if m != nil { + return m.TrainingJob + } + return nil +} + +func (m *HPOJob) GetMaxNumberOfTrainingJobs() int64 { + if m != nil { + return m.MaxNumberOfTrainingJobs + } + return 0 +} + +func (m *HPOJob) GetMaxParallelTrainingJobs() int64 { + if m != nil { + return m.MaxParallelTrainingJobs + } + return 0 +} + +type HPOJobConfig struct { + HyperparameterRanges *ParameterRanges `protobuf:"bytes,1,opt,name=hyperparameter_ranges,json=hyperparameterRanges,proto3" json:"hyperparameter_ranges,omitempty"` + TuningStrategy HPOJobConfig_HyperparameterTuningStrategy `protobuf:"varint,2,opt,name=tuning_strategy,json=tuningStrategy,proto3,enum=flyteidl.plugins.sagemaker.HPOJobConfig_HyperparameterTuningStrategy" json:"tuning_strategy,omitempty"` + TuningObjective *HyperparameterTuningObjective `protobuf:"bytes,3,opt,name=tuning_objective,json=tuningObjective,proto3" json:"tuning_objective,omitempty"` + TrainingJobEarlyStoppingType HPOJobConfig_TrainingJobEarlyStoppingType `protobuf:"varint,4,opt,name=training_job_early_stopping_type,json=trainingJobEarlyStoppingType,proto3,enum=flyteidl.plugins.sagemaker.HPOJobConfig_TrainingJobEarlyStoppingType" json:"training_job_early_stopping_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HPOJobConfig) Reset() { *m = HPOJobConfig{} } +func (m *HPOJobConfig) String() string { return proto.CompactTextString(m) } +func (*HPOJobConfig) ProtoMessage() {} +func (*HPOJobConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_50903433b4c088ac, []int{2} +} + +func (m *HPOJobConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HPOJobConfig.Unmarshal(m, b) +} +func (m *HPOJobConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HPOJobConfig.Marshal(b, m, deterministic) +} +func (m *HPOJobConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_HPOJobConfig.Merge(m, src) +} +func (m *HPOJobConfig) XXX_Size() int { + return xxx_messageInfo_HPOJobConfig.Size(m) +} +func (m *HPOJobConfig) XXX_DiscardUnknown() { + xxx_messageInfo_HPOJobConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_HPOJobConfig proto.InternalMessageInfo + +func (m *HPOJobConfig) GetHyperparameterRanges() *ParameterRanges { + if m != nil { + return m.HyperparameterRanges + } + return nil +} + +func (m *HPOJobConfig) GetTuningStrategy() HPOJobConfig_HyperparameterTuningStrategy { + if m != nil { + return m.TuningStrategy + } + return HPOJobConfig_BAYESIAN +} + +func (m *HPOJobConfig) GetTuningObjective() *HyperparameterTuningObjective { + if m != nil { + return m.TuningObjective + } + return nil +} + +func (m *HPOJobConfig) GetTrainingJobEarlyStoppingType() HPOJobConfig_TrainingJobEarlyStoppingType { + if m != nil { + return m.TrainingJobEarlyStoppingType + } + return HPOJobConfig_OFF +} + +func init() { + proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningObjective_HyperparameterTuningObjectiveType", HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name, HyperparameterTuningObjective_HyperparameterTuningObjectiveType_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobConfig_HyperparameterTuningStrategy", HPOJobConfig_HyperparameterTuningStrategy_name, HPOJobConfig_HyperparameterTuningStrategy_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobConfig_TrainingJobEarlyStoppingType", HPOJobConfig_TrainingJobEarlyStoppingType_name, HPOJobConfig_TrainingJobEarlyStoppingType_value) + proto.RegisterType((*HyperparameterTuningObjective)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningObjective") + proto.RegisterType((*HPOJob)(nil), "flyteidl.plugins.sagemaker.HPOJob") + proto.RegisterType((*HPOJobConfig)(nil), "flyteidl.plugins.sagemaker.HPOJobConfig") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/sagemaker/hpo_job.proto", fileDescriptor_50903433b4c088ac) +} + +var fileDescriptor_50903433b4c088ac = []byte{ + // 529 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x6f, 0xd3, 0x30, + 0x18, 0x5d, 0xd6, 0x6a, 0x8c, 0xaf, 0xa5, 0x54, 0x16, 0x88, 0xa9, 0x14, 0x51, 0x72, 0xa1, 0x12, + 0x2c, 0xd1, 0x3a, 0x71, 0x40, 0x20, 0xa1, 0x0e, 0x75, 0x5a, 0x2b, 0xad, 0xad, 0xd2, 0x22, 0xc1, + 0x38, 0x18, 0xa7, 0x73, 0xd3, 0x8c, 0x24, 0xb6, 0x1c, 0x17, 0x2d, 0x57, 0x0e, 0xdc, 0xf8, 0x3d, + 0xfc, 0x0c, 0xfe, 0x12, 0x8a, 0x9b, 0xa6, 0xe9, 0x04, 0x46, 0x70, 0xfc, 0x9c, 0xf7, 0x9e, 0xfd, + 0x5e, 0x9e, 0x0d, 0xed, 0x79, 0x90, 0x48, 0xea, 0x5f, 0x06, 0x36, 0x0f, 0x96, 0x9e, 0x1f, 0xc5, + 0x76, 0x4c, 0x3c, 0x1a, 0x92, 0xcf, 0x54, 0xd8, 0x0b, 0xce, 0xf0, 0x15, 0x73, 0x2d, 0x2e, 0x98, + 0x64, 0xa8, 0xb1, 0x46, 0x5a, 0x19, 0xd2, 0xca, 0x91, 0x8d, 0x23, 0x8d, 0x0a, 0x27, 0x82, 0x84, + 0x54, 0x52, 0x81, 0x05, 0x89, 0x3c, 0x1a, 0xaf, 0xe4, 0x1a, 0x87, 0x1a, 0x8a, 0x14, 0xc4, 0x8f, + 0xfc, 0xc8, 0xdb, 0xec, 0x6e, 0x7e, 0xdb, 0x85, 0x47, 0x67, 0x09, 0xa7, 0x22, 0x97, 0x9b, 0x2e, + 0x53, 0xc8, 0xc8, 0xbd, 0xa2, 0x33, 0xe9, 0x7f, 0xa1, 0xe8, 0xab, 0x01, 0x35, 0xb6, 0x9e, 0xb0, + 0x4c, 0x38, 0x3d, 0x30, 0x5a, 0x46, 0xbb, 0xd6, 0xf9, 0x68, 0xfd, 0xf9, 0xe4, 0x96, 0x56, 0x53, + 0xff, 0x75, 0x9a, 0x70, 0xea, 0xdc, 0x61, 0xc5, 0x11, 0x3d, 0x86, 0x4a, 0x48, 0xa5, 0xf0, 0x67, + 0x38, 0x22, 0x21, 0x3d, 0xd8, 0x6d, 0x19, 0xed, 0xdb, 0x0e, 0xac, 0x96, 0x86, 0x24, 0xa4, 0xe6, + 0x1b, 0x78, 0xf2, 0x57, 0x51, 0x54, 0x85, 0xfd, 0xf3, 0xfe, 0xb0, 0x7f, 0xde, 0xbf, 0xe8, 0xd5, + 0x77, 0xd4, 0xd4, 0x7d, 0xbf, 0x9a, 0x0c, 0xf3, 0xa7, 0x01, 0x7b, 0x67, 0xe3, 0xd1, 0x80, 0xb9, + 0x68, 0x00, 0xd5, 0x62, 0x52, 0xca, 0x6e, 0xa5, 0xf3, 0x54, 0x67, 0x77, 0x9a, 0xe1, 0x07, 0xcc, + 0x75, 0x2a, 0x72, 0x33, 0xa0, 0xd7, 0xf0, 0x30, 0x24, 0xd7, 0x38, 0x5a, 0x86, 0x2e, 0x15, 0x98, + 0xcd, 0x71, 0x51, 0x39, 0x56, 0x46, 0x4a, 0xce, 0x83, 0x90, 0x5c, 0x0f, 0x15, 0x62, 0x34, 0x2f, + 0x28, 0xc5, 0xe8, 0x15, 0x34, 0x52, 0x76, 0x6a, 0x2a, 0x08, 0x68, 0x70, 0x83, 0x5c, 0xca, 0xc9, + 0xe3, 0x0c, 0x50, 0x24, 0x9b, 0x3f, 0xca, 0x50, 0x5d, 0x39, 0x7a, 0xcb, 0xa2, 0xb9, 0xef, 0xa1, + 0x4f, 0x70, 0x7f, 0xb1, 0x95, 0x51, 0xd6, 0x9c, 0xcc, 0xe0, 0x33, 0x9d, 0xc1, 0xf1, 0x9a, 0xe3, + 0x28, 0x8a, 0x73, 0x6f, 0x5b, 0x69, 0xb5, 0x8a, 0x22, 0xb8, 0x2b, 0x55, 0xee, 0x38, 0x96, 0x82, + 0x48, 0xea, 0x25, 0xca, 0x61, 0xad, 0xd3, 0xd3, 0x76, 0xa5, 0x70, 0xc8, 0xdf, 0x56, 0x63, 0x92, + 0x89, 0x39, 0x35, 0xb9, 0x35, 0xa3, 0x4b, 0xa8, 0x67, 0xfb, 0xe5, 0x75, 0x51, 0xa9, 0x54, 0x3a, + 0x2f, 0xff, 0xbb, 0x9c, 0x4e, 0x66, 0x61, 0x73, 0x03, 0xbe, 0x1b, 0xd0, 0x2a, 0x26, 0x8f, 0x29, + 0x11, 0x41, 0x82, 0x63, 0xc9, 0x38, 0x4f, 0x97, 0xd4, 0x9d, 0x28, 0xff, 0xa3, 0xcf, 0xc2, 0xaf, + 0xea, 0xa5, 0x72, 0x93, 0x4c, 0x4d, 0xb5, 0xbf, 0x29, 0x35, 0x5f, 0xcd, 0xe7, 0xd0, 0xd4, 0xa5, + 0x94, 0x16, 0xfb, 0xa4, 0xfb, 0xa1, 0x37, 0xe9, 0x77, 0x87, 0xf5, 0x1d, 0xf3, 0x08, 0x9a, 0xba, + 0xbd, 0xd0, 0x2d, 0x28, 0x8d, 0x4e, 0x4f, 0xeb, 0x3b, 0x68, 0x1f, 0xca, 0xdd, 0x77, 0xd3, 0x51, + 0xdd, 0x38, 0x79, 0x71, 0x71, 0xec, 0xf9, 0x72, 0xb1, 0x74, 0xad, 0x19, 0x0b, 0xed, 0x20, 0x99, + 0x4b, 0x3b, 0x7f, 0x55, 0x3c, 0x1a, 0xd9, 0xdc, 0x3d, 0xf4, 0x98, 0x7d, 0xf3, 0xa1, 0x71, 0xf7, + 0xd4, 0x93, 0x72, 0xfc, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x51, 0x36, 0xd9, 0xfc, 0x04, 0x00, + 0x00, +} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go new file mode 100644 index 000000000..8ceadb5da --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go @@ -0,0 +1,276 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/hpo_job.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _hpo_job_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on HyperparameterTuningObjective with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HyperparameterTuningObjective) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ObjectiveType + + // no validation rules for MetricName + + return nil +} + +// HyperparameterTuningObjectiveValidationError is the validation error +// returned by HyperparameterTuningObjective.Validate if the designated +// constraints aren't met. +type HyperparameterTuningObjectiveValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HyperparameterTuningObjectiveValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HyperparameterTuningObjectiveValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HyperparameterTuningObjectiveValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HyperparameterTuningObjectiveValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HyperparameterTuningObjectiveValidationError) ErrorName() string { + return "HyperparameterTuningObjectiveValidationError" +} + +// Error satisfies the builtin error interface +func (e HyperparameterTuningObjectiveValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHyperparameterTuningObjective.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HyperparameterTuningObjectiveValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HyperparameterTuningObjectiveValidationError{} + +// Validate checks the field values on HPOJob with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *HPOJob) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTrainingJob()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HPOJobValidationError{ + field: "TrainingJob", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for MaxNumberOfTrainingJobs + + // no validation rules for MaxParallelTrainingJobs + + return nil +} + +// HPOJobValidationError is the validation error returned by HPOJob.Validate if +// the designated constraints aren't met. +type HPOJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HPOJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HPOJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HPOJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HPOJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HPOJobValidationError) ErrorName() string { return "HPOJobValidationError" } + +// Error satisfies the builtin error interface +func (e HPOJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHPOJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HPOJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HPOJobValidationError{} + +// Validate checks the field values on HPOJobConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *HPOJobConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetHyperparameterRanges()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HPOJobConfigValidationError{ + field: "HyperparameterRanges", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TuningStrategy + + if v, ok := interface{}(m.GetTuningObjective()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HPOJobConfigValidationError{ + field: "TuningObjective", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TrainingJobEarlyStoppingType + + return nil +} + +// HPOJobConfigValidationError is the validation error returned by +// HPOJobConfig.Validate if the designated constraints aren't met. +type HPOJobConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HPOJobConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HPOJobConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HPOJobConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HPOJobConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HPOJobConfigValidationError) ErrorName() string { return "HPOJobConfigValidationError" } + +// Error satisfies the builtin error interface +func (e HPOJobConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHPOJobConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HPOJobConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HPOJobConfigValidationError{} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go deleted file mode 100644 index 202066fb7..000000000 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go +++ /dev/null @@ -1,184 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/hpojob.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type HPOJobObjective_HPOJobObjectiveType int32 - -const ( - HPOJobObjective_MINIMIZE HPOJobObjective_HPOJobObjectiveType = 0 - HPOJobObjective_MAXIMIZE HPOJobObjective_HPOJobObjectiveType = 1 -) - -var HPOJobObjective_HPOJobObjectiveType_name = map[int32]string{ - 0: "MINIMIZE", - 1: "MAXIMIZE", -} - -var HPOJobObjective_HPOJobObjectiveType_value = map[string]int32{ - "MINIMIZE": 0, - "MAXIMIZE": 1, -} - -func (x HPOJobObjective_HPOJobObjectiveType) String() string { - return proto.EnumName(HPOJobObjective_HPOJobObjectiveType_name, int32(x)) -} - -func (HPOJobObjective_HPOJobObjectiveType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_823bfe2a857513d9, []int{0, 0} -} - -type HPOJobObjective struct { - ObjectiveType HPOJobObjective_HPOJobObjectiveType `protobuf:"varint,1,opt,name=objective_type,json=objectiveType,proto3,enum=flyteidl.plugins.sagemaker.HPOJobObjective_HPOJobObjectiveType" json:"objective_type,omitempty"` - MetricName string `protobuf:"bytes,2,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HPOJobObjective) Reset() { *m = HPOJobObjective{} } -func (m *HPOJobObjective) String() string { return proto.CompactTextString(m) } -func (*HPOJobObjective) ProtoMessage() {} -func (*HPOJobObjective) Descriptor() ([]byte, []int) { - return fileDescriptor_823bfe2a857513d9, []int{0} -} - -func (m *HPOJobObjective) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HPOJobObjective.Unmarshal(m, b) -} -func (m *HPOJobObjective) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HPOJobObjective.Marshal(b, m, deterministic) -} -func (m *HPOJobObjective) XXX_Merge(src proto.Message) { - xxx_messageInfo_HPOJobObjective.Merge(m, src) -} -func (m *HPOJobObjective) XXX_Size() int { - return xxx_messageInfo_HPOJobObjective.Size(m) -} -func (m *HPOJobObjective) XXX_DiscardUnknown() { - xxx_messageInfo_HPOJobObjective.DiscardUnknown(m) -} - -var xxx_messageInfo_HPOJobObjective proto.InternalMessageInfo - -func (m *HPOJobObjective) GetObjectiveType() HPOJobObjective_HPOJobObjectiveType { - if m != nil { - return m.ObjectiveType - } - return HPOJobObjective_MINIMIZE -} - -func (m *HPOJobObjective) GetMetricName() string { - if m != nil { - return m.MetricName - } - return "" -} - -type HPOJob struct { - MaxNumberOfTrainingJobs int64 `protobuf:"varint,1,opt,name=max_number_of_training_jobs,json=maxNumberOfTrainingJobs,proto3" json:"max_number_of_training_jobs,omitempty"` - MaxParallelTrainingJobs int64 `protobuf:"varint,2,opt,name=max_parallel_training_jobs,json=maxParallelTrainingJobs,proto3" json:"max_parallel_training_jobs,omitempty"` - TrainingJob *TrainingJob `protobuf:"bytes,3,opt,name=training_job,json=trainingJob,proto3" json:"training_job,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HPOJob) Reset() { *m = HPOJob{} } -func (m *HPOJob) String() string { return proto.CompactTextString(m) } -func (*HPOJob) ProtoMessage() {} -func (*HPOJob) Descriptor() ([]byte, []int) { - return fileDescriptor_823bfe2a857513d9, []int{1} -} - -func (m *HPOJob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HPOJob.Unmarshal(m, b) -} -func (m *HPOJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HPOJob.Marshal(b, m, deterministic) -} -func (m *HPOJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_HPOJob.Merge(m, src) -} -func (m *HPOJob) XXX_Size() int { - return xxx_messageInfo_HPOJob.Size(m) -} -func (m *HPOJob) XXX_DiscardUnknown() { - xxx_messageInfo_HPOJob.DiscardUnknown(m) -} - -var xxx_messageInfo_HPOJob proto.InternalMessageInfo - -func (m *HPOJob) GetMaxNumberOfTrainingJobs() int64 { - if m != nil { - return m.MaxNumberOfTrainingJobs - } - return 0 -} - -func (m *HPOJob) GetMaxParallelTrainingJobs() int64 { - if m != nil { - return m.MaxParallelTrainingJobs - } - return 0 -} - -func (m *HPOJob) GetTrainingJob() *TrainingJob { - if m != nil { - return m.TrainingJob - } - return nil -} - -func init() { - proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobObjective_HPOJobObjectiveType", HPOJobObjective_HPOJobObjectiveType_name, HPOJobObjective_HPOJobObjectiveType_value) - proto.RegisterType((*HPOJobObjective)(nil), "flyteidl.plugins.sagemaker.HPOJobObjective") - proto.RegisterType((*HPOJob)(nil), "flyteidl.plugins.sagemaker.HPOJob") -} - -func init() { - proto.RegisterFile("flyteidl/plugins/sagemaker/hpojob.proto", fileDescriptor_823bfe2a857513d9) -} - -var fileDescriptor_823bfe2a857513d9 = []byte{ - // 349 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x4f, 0x4f, 0xea, 0x40, - 0x14, 0xc5, 0x5f, 0x21, 0x21, 0xef, 0x0d, 0x3c, 0xde, 0x4b, 0x5d, 0x48, 0xea, 0x42, 0xc2, 0x06, - 0x16, 0xda, 0x2a, 0xc4, 0x95, 0x26, 0x46, 0x13, 0x13, 0x21, 0xe1, 0x4f, 0x1a, 0x16, 0x86, 0x4d, - 0x33, 0x83, 0xb7, 0x65, 0x70, 0xfe, 0x65, 0x3a, 0x18, 0xfa, 0x21, 0x8d, 0x5f, 0xc9, 0xd0, 0x42, - 0xc5, 0x46, 0x59, 0x9e, 0x99, 0xf3, 0x3b, 0x33, 0xf7, 0x1e, 0xd4, 0x0e, 0x59, 0x62, 0x80, 0x3e, - 0x33, 0x4f, 0xb1, 0x55, 0x44, 0x45, 0xec, 0xc5, 0x38, 0x02, 0x8e, 0x5f, 0x40, 0x7b, 0x0b, 0x25, - 0x97, 0x92, 0xb8, 0x4a, 0x4b, 0x23, 0x6d, 0x67, 0x67, 0x74, 0xb7, 0x46, 0x37, 0x37, 0x3a, 0x17, - 0x07, 0x42, 0x14, 0xd6, 0x98, 0x83, 0x01, 0xad, 0xb1, 0x88, 0x20, 0xce, 0xd2, 0x9c, 0xb3, 0x03, - 0x84, 0xd1, 0x98, 0x0a, 0x2a, 0xa2, 0xfc, 0xed, 0xd6, 0x9b, 0x85, 0xfe, 0x3d, 0x4e, 0xc6, 0x03, - 0x49, 0xc6, 0x64, 0x09, 0x73, 0x43, 0x5f, 0xc1, 0x0e, 0x51, 0x5d, 0xee, 0x44, 0x60, 0x12, 0x05, - 0x0d, 0xab, 0x69, 0x75, 0xea, 0xdd, 0x5b, 0xf7, 0xe7, 0x8f, 0xba, 0x85, 0x90, 0xa2, 0x9e, 0x26, - 0x0a, 0xfc, 0xbf, 0x72, 0x5f, 0xda, 0xa7, 0xa8, 0xca, 0xc1, 0x68, 0x3a, 0x0f, 0x04, 0xe6, 0xd0, - 0x28, 0x35, 0xad, 0xce, 0x1f, 0x1f, 0x65, 0x47, 0x23, 0xcc, 0xa1, 0x75, 0x89, 0x8e, 0xbe, 0x89, - 0xb1, 0x6b, 0xe8, 0xf7, 0xb0, 0x3f, 0xea, 0x0f, 0xfb, 0xb3, 0x87, 0xff, 0xbf, 0x52, 0x75, 0xf7, - 0x94, 0x29, 0xab, 0xf5, 0x6e, 0xa1, 0x4a, 0xc6, 0xd8, 0x37, 0xe8, 0x84, 0xe3, 0x75, 0x20, 0x56, - 0x9c, 0x80, 0x0e, 0x64, 0x18, 0xec, 0xa6, 0x0f, 0x96, 0x92, 0xc4, 0xe9, 0x4c, 0x65, 0xff, 0x98, - 0xe3, 0xf5, 0x28, 0x75, 0x8c, 0xc3, 0xe9, 0xf6, 0x7e, 0x20, 0x49, 0x6c, 0x5f, 0x23, 0x67, 0x43, - 0x6f, 0x76, 0xcc, 0x18, 0xb0, 0x02, 0x5c, 0xca, 0xe1, 0xc9, 0xd6, 0xf0, 0x05, 0x1e, 0xa0, 0xda, - 0xbe, 0xbf, 0x51, 0x6e, 0x5a, 0x9d, 0x6a, 0xb7, 0x7d, 0x68, 0x7f, 0x7b, 0xbc, 0x5f, 0x35, 0x9f, - 0xe2, 0xfe, 0x6a, 0xd6, 0x8b, 0xa8, 0x59, 0xac, 0x88, 0x3b, 0x97, 0xdc, 0x63, 0x49, 0x68, 0xbc, - 0xbc, 0xe1, 0x08, 0x84, 0xa7, 0xc8, 0x79, 0x24, 0xbd, 0x62, 0xe9, 0xa4, 0x92, 0xf6, 0xdb, 0xfb, - 0x08, 0x00, 0x00, 0xff, 0xff, 0xab, 0xe2, 0xa2, 0xcb, 0x86, 0x02, 0x00, 0x00, -} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go deleted file mode 100644 index 99465f6b2..000000000 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go +++ /dev/null @@ -1,184 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/hpojob.proto - -package plugins - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "strings" - "time" - "unicode/utf8" - - "github.com/golang/protobuf/ptypes" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = ptypes.DynamicAny{} -) - -// define the regex for a UUID once up-front -var _hpojob_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") - -// Validate checks the field values on HPOJobObjective with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *HPOJobObjective) Validate() error { - if m == nil { - return nil - } - - // no validation rules for ObjectiveType - - // no validation rules for MetricName - - return nil -} - -// HPOJobObjectiveValidationError is the validation error returned by -// HPOJobObjective.Validate if the designated constraints aren't met. -type HPOJobObjectiveValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e HPOJobObjectiveValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e HPOJobObjectiveValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e HPOJobObjectiveValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e HPOJobObjectiveValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e HPOJobObjectiveValidationError) ErrorName() string { return "HPOJobObjectiveValidationError" } - -// Error satisfies the builtin error interface -func (e HPOJobObjectiveValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sHPOJobObjective.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = HPOJobObjectiveValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = HPOJobObjectiveValidationError{} - -// Validate checks the field values on HPOJob with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *HPOJob) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxNumberOfTrainingJobs - - // no validation rules for MaxParallelTrainingJobs - - if v, ok := interface{}(m.GetTrainingJob()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return HPOJobValidationError{ - field: "TrainingJob", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// HPOJobValidationError is the validation error returned by HPOJob.Validate if -// the designated constraints aren't met. -type HPOJobValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e HPOJobValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e HPOJobValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e HPOJobValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e HPOJobValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e HPOJobValidationError) ErrorName() string { return "HPOJobValidationError" } - -// Error satisfies the builtin error interface -func (e HPOJobValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sHPOJob.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = HPOJobValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = HPOJobValidationError{} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go similarity index 78% rename from gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go rename to gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go index ad109c6f2..2f37913f8 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/parameterranges.proto +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto package plugins @@ -48,7 +48,7 @@ func (x HyperparameterScalingType) String() string { } func (HyperparameterScalingType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d87fa566d23b1e82, []int{0} + return fileDescriptor_5f31fcc87eba0a70, []int{0} } type ContinuousParameterRange struct { @@ -64,7 +64,7 @@ func (m *ContinuousParameterRange) Reset() { *m = ContinuousParameterRan func (m *ContinuousParameterRange) String() string { return proto.CompactTextString(m) } func (*ContinuousParameterRange) ProtoMessage() {} func (*ContinuousParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_d87fa566d23b1e82, []int{0} + return fileDescriptor_5f31fcc87eba0a70, []int{0} } func (m *ContinuousParameterRange) XXX_Unmarshal(b []byte) error { @@ -119,7 +119,7 @@ func (m *IntegerParameterRange) Reset() { *m = IntegerParameterRange{} } func (m *IntegerParameterRange) String() string { return proto.CompactTextString(m) } func (*IntegerParameterRange) ProtoMessage() {} func (*IntegerParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_d87fa566d23b1e82, []int{1} + return fileDescriptor_5f31fcc87eba0a70, []int{1} } func (m *IntegerParameterRange) XXX_Unmarshal(b []byte) error { @@ -172,7 +172,7 @@ func (m *CategoricalParameterRange) Reset() { *m = CategoricalParameterR func (m *CategoricalParameterRange) String() string { return proto.CompactTextString(m) } func (*CategoricalParameterRange) ProtoMessage() {} func (*CategoricalParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_d87fa566d23b1e82, []int{2} + return fileDescriptor_5f31fcc87eba0a70, []int{2} } func (m *CategoricalParameterRange) XXX_Unmarshal(b []byte) error { @@ -215,7 +215,7 @@ func (m *ParameterRangeOneOf) Reset() { *m = ParameterRangeOneOf{} } func (m *ParameterRangeOneOf) String() string { return proto.CompactTextString(m) } func (*ParameterRangeOneOf) ProtoMessage() {} func (*ParameterRangeOneOf) Descriptor() ([]byte, []int) { - return fileDescriptor_d87fa566d23b1e82, []int{3} + return fileDescriptor_5f31fcc87eba0a70, []int{3} } func (m *ParameterRangeOneOf) XXX_Unmarshal(b []byte) error { @@ -306,7 +306,7 @@ func (m *ParameterRanges) Reset() { *m = ParameterRanges{} } func (m *ParameterRanges) String() string { return proto.CompactTextString(m) } func (*ParameterRanges) ProtoMessage() {} func (*ParameterRanges) Descriptor() ([]byte, []int) { - return fileDescriptor_d87fa566d23b1e82, []int{4} + return fileDescriptor_5f31fcc87eba0a70, []int{4} } func (m *ParameterRanges) XXX_Unmarshal(b []byte) error { @@ -345,41 +345,41 @@ func init() { } func init() { - proto.RegisterFile("flyteidl/plugins/sagemaker/parameterranges.proto", fileDescriptor_d87fa566d23b1e82) -} - -var fileDescriptor_d87fa566d23b1e82 = []byte{ - // 503 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xd1, 0x6e, 0x12, 0x41, - 0x14, 0x65, 0x58, 0x6d, 0xca, 0xc5, 0x58, 0x9c, 0x5a, 0x04, 0xfa, 0x42, 0x78, 0x22, 0x26, 0xee, - 0x2a, 0xd8, 0xc4, 0xf8, 0x06, 0x64, 0x23, 0x24, 0xad, 0x98, 0x29, 0x36, 0xa6, 0x2f, 0x64, 0x58, - 0x87, 0x75, 0xc2, 0xee, 0xec, 0x64, 0x76, 0x56, 0xbb, 0x9f, 0xe0, 0xb7, 0x98, 0xf8, 0x85, 0x3e, - 0x18, 0x06, 0x0a, 0x76, 0xcb, 0xa2, 0x4f, 0xbe, 0xed, 0x9d, 0x7b, 0xcf, 0x9e, 0x33, 0x73, 0x4e, - 0x2e, 0xbc, 0x9c, 0x07, 0xa9, 0x66, 0xfc, 0x73, 0xe0, 0xc8, 0x20, 0xf1, 0xb9, 0x88, 0x9d, 0x98, - 0xfa, 0x2c, 0xa4, 0x0b, 0xa6, 0x1c, 0x49, 0x15, 0x0d, 0x99, 0x66, 0x4a, 0x51, 0xe1, 0xb3, 0xd8, - 0x96, 0x2a, 0xd2, 0x11, 0x6e, 0xdc, 0x22, 0xec, 0x35, 0xc2, 0xde, 0x20, 0x5a, 0x3f, 0x11, 0xd4, - 0x06, 0x91, 0xd0, 0x5c, 0x24, 0x51, 0x12, 0x7f, 0xb8, 0xc5, 0x93, 0x25, 0x1e, 0x9f, 0x42, 0x29, - 0xa4, 0x37, 0xd3, 0xaf, 0x34, 0x48, 0x58, 0x0d, 0x35, 0x51, 0x1b, 0x91, 0xc3, 0x90, 0xde, 0x5c, - 0x2d, 0x6b, 0xd3, 0xe4, 0x62, 0xdd, 0x2c, 0xae, 0x9b, 0x5c, 0xac, 0x9a, 0x9f, 0xe0, 0x51, 0xec, - 0xd1, 0x80, 0x0b, 0x7f, 0xaa, 0x53, 0xc9, 0x6a, 0x56, 0x13, 0xb5, 0x1f, 0x77, 0xce, 0xec, 0x7c, - 0x25, 0xf6, 0x30, 0x95, 0x4c, 0x6d, 0x2e, 0x70, 0xb9, 0x42, 0x4f, 0x52, 0xc9, 0x48, 0x39, 0xde, - 0x16, 0xad, 0x1f, 0x08, 0x4e, 0x46, 0x42, 0x33, 0x9f, 0xa9, 0xbf, 0xa9, 0xb5, 0xf6, 0xa9, 0xb5, - 0xfe, 0x8b, 0xda, 0x2e, 0xd4, 0x07, 0x54, 0x33, 0x3f, 0x52, 0xdc, 0xa3, 0x41, 0x46, 0x70, 0x15, - 0x0e, 0x8c, 0x9e, 0xb8, 0x86, 0x9a, 0x56, 0xbb, 0x44, 0xd6, 0x55, 0xeb, 0xbb, 0x05, 0xc7, 0x77, - 0x47, 0xc7, 0x82, 0x8d, 0xe7, 0x58, 0x43, 0xc3, 0xdb, 0x58, 0x35, 0xdd, 0x90, 0x4f, 0x8d, 0xd9, - 0xe6, 0xc6, 0xe5, 0xce, 0xeb, 0x7d, 0xa2, 0xf3, 0x8c, 0x1e, 0x16, 0x48, 0xcd, 0xcb, 0x0b, 0xc1, - 0x02, 0x9e, 0xf1, 0xd5, 0x7b, 0xdf, 0xa3, 0x2c, 0x1a, 0xca, 0x57, 0xfb, 0x28, 0x77, 0x5a, 0x35, - 0x2c, 0x90, 0x13, 0xbe, 0xd3, 0xc3, 0x6f, 0x70, 0xea, 0x6d, 0xdf, 0xeb, 0x1e, 0xa1, 0x65, 0x08, - 0xf7, 0x1a, 0x93, 0xfb, 0xdc, 0xc3, 0x02, 0xa9, 0x7b, 0x79, 0xcd, 0x7e, 0x15, 0x9e, 0x66, 0xc8, - 0x4c, 0x14, 0x5a, 0xbf, 0x10, 0x1c, 0xdd, 0x1d, 0x8d, 0xb1, 0x82, 0xe3, 0xec, 0x6c, 0x48, 0xa5, - 0x31, 0xb1, 0xdc, 0xe9, 0xef, 0x13, 0x97, 0xf9, 0x53, 0xa6, 0xbe, 0xa0, 0xd2, 0x15, 0x5a, 0xa5, - 0xe4, 0x89, 0xcc, 0x9e, 0x37, 0x12, 0xa8, 0xee, 0x1e, 0xc6, 0x15, 0xb0, 0x16, 0x2c, 0x35, 0xf6, - 0x97, 0xc8, 0xf2, 0x13, 0xbb, 0xf0, 0x70, 0x9b, 0xf3, 0x72, 0xc7, 0xf9, 0x77, 0x45, 0x26, 0x67, - 0x64, 0x85, 0x7e, 0x5b, 0x7c, 0x83, 0x9e, 0x5f, 0x43, 0x3d, 0x37, 0xe9, 0xf8, 0x10, 0x1e, 0xf4, - 0x3e, 0x4e, 0xc6, 0x95, 0x02, 0x06, 0x38, 0x38, 0x1f, 0xbd, 0x77, 0x7b, 0xa4, 0x82, 0xf0, 0x11, - 0x94, 0xcf, 0xc7, 0xef, 0x7a, 0x64, 0x34, 0x19, 0x5e, 0x8c, 0x06, 0x95, 0x22, 0xae, 0x02, 0x26, - 0xee, 0x95, 0x4b, 0x2e, 0xdd, 0x3f, 0xcf, 0xad, 0xfe, 0xd9, 0x75, 0xd7, 0xe7, 0xfa, 0x4b, 0x32, - 0xb3, 0xbd, 0x28, 0x74, 0x82, 0x74, 0xae, 0x9d, 0xcd, 0x6a, 0xf3, 0x99, 0x70, 0xe4, 0xec, 0x85, - 0x1f, 0x39, 0xd9, 0x6d, 0x37, 0x3b, 0x30, 0x4b, 0xad, 0xfb, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xaf, - 0x48, 0xf7, 0xbe, 0x08, 0x05, 0x00, 0x00, + proto.RegisterFile("flyteidl/plugins/sagemaker/parameter_ranges.proto", fileDescriptor_5f31fcc87eba0a70) +} + +var fileDescriptor_5f31fcc87eba0a70 = []byte{ + // 502 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0x41, 0x6f, 0x12, 0x41, + 0x14, 0x66, 0x58, 0x6d, 0xca, 0xc3, 0x58, 0x9c, 0x5a, 0x04, 0x7a, 0x21, 0x9c, 0x88, 0x89, 0xbb, + 0x29, 0xd8, 0xc4, 0x78, 0x03, 0xb2, 0x11, 0x92, 0x56, 0xcc, 0x14, 0x1b, 0xd3, 0x0b, 0x19, 0xd6, + 0x61, 0x9d, 0xb0, 0x3b, 0x3b, 0x99, 0x9d, 0xd5, 0xee, 0x4f, 0xf0, 0xb7, 0x98, 0xf8, 0x0b, 0x3d, + 0x18, 0x06, 0x0a, 0x76, 0xcb, 0xa2, 0x27, 0x6f, 0xf3, 0xe6, 0xbd, 0x6f, 0xbe, 0x6f, 0xde, 0xf7, + 0xf2, 0xe0, 0x6c, 0x1e, 0xa4, 0x9a, 0xf1, 0xcf, 0x81, 0x23, 0x83, 0xc4, 0xe7, 0x22, 0x76, 0x62, + 0xea, 0xb3, 0x90, 0x2e, 0x98, 0x72, 0x24, 0x55, 0x34, 0x64, 0x9a, 0xa9, 0xa9, 0xa2, 0xc2, 0x67, + 0xb1, 0x2d, 0x55, 0xa4, 0x23, 0xdc, 0xb8, 0x83, 0xd8, 0x6b, 0x88, 0xbd, 0x81, 0xb4, 0x7e, 0x22, + 0xa8, 0x0d, 0x22, 0xa1, 0xb9, 0x48, 0xa2, 0x24, 0xfe, 0x70, 0xf7, 0x00, 0x59, 0xe2, 0xf1, 0x29, + 0x94, 0x42, 0x7a, 0x3b, 0xfd, 0x4a, 0x83, 0x84, 0xd5, 0x50, 0x13, 0xb5, 0x11, 0x39, 0x0c, 0xe9, + 0xed, 0xf5, 0x32, 0x36, 0x49, 0x2e, 0xd6, 0xc9, 0xe2, 0x3a, 0xc9, 0xc5, 0x2a, 0xf9, 0x09, 0x9e, + 0xc4, 0x1e, 0x0d, 0xb8, 0xf0, 0xa7, 0x3a, 0x95, 0xac, 0x66, 0x35, 0x51, 0xfb, 0x69, 0xe7, 0xdc, + 0xce, 0x57, 0x62, 0x0f, 0x53, 0xc9, 0xd4, 0xe6, 0x07, 0x57, 0x2b, 0xf4, 0x24, 0x95, 0x8c, 0x94, + 0xe3, 0x6d, 0xd0, 0xfa, 0x81, 0xe0, 0x64, 0x24, 0x34, 0xf3, 0x99, 0xfa, 0x9b, 0x5a, 0x6b, 0x9f, + 0x5a, 0xeb, 0xbf, 0xa8, 0xed, 0x42, 0x7d, 0x40, 0x35, 0xf3, 0x23, 0xc5, 0x3d, 0x1a, 0x64, 0x04, + 0x57, 0xe1, 0xc0, 0xe8, 0x89, 0x6b, 0xa8, 0x69, 0xb5, 0x4b, 0x64, 0x1d, 0xb5, 0xbe, 0x5b, 0x70, + 0x7c, 0xbf, 0x74, 0x2c, 0xd8, 0x78, 0x8e, 0x35, 0x34, 0xbc, 0x8d, 0x55, 0xd3, 0x8c, 0xd9, 0xe6, + 0xc7, 0xe5, 0xce, 0xeb, 0x7d, 0xa2, 0xf3, 0x8c, 0x1e, 0x16, 0x48, 0xcd, 0xcb, 0x1b, 0x82, 0x05, + 0xbc, 0xe0, 0xab, 0x7e, 0x3f, 0xa0, 0x2c, 0x1a, 0xca, 0xb3, 0x7d, 0x94, 0x3b, 0xad, 0x1a, 0x16, + 0xc8, 0x09, 0xdf, 0xe9, 0xe1, 0x37, 0x38, 0xf5, 0xb6, 0xfd, 0x7a, 0x40, 0x68, 0x19, 0xc2, 0xbd, + 0xc6, 0xe4, 0xb6, 0x7b, 0x58, 0x20, 0x75, 0x2f, 0x2f, 0xd9, 0xaf, 0xc2, 0xf3, 0x0c, 0x99, 0x19, + 0x85, 0xd6, 0x2f, 0x04, 0x47, 0xf7, 0x4b, 0x63, 0xac, 0xe0, 0x38, 0x5b, 0x1b, 0x52, 0x69, 0x4c, + 0x2c, 0x77, 0xfa, 0xfb, 0xc4, 0x65, 0x5e, 0xca, 0xc4, 0x97, 0x54, 0xba, 0x42, 0xab, 0x94, 0x3c, + 0x93, 0xd9, 0xfb, 0x46, 0x02, 0xd5, 0xdd, 0xc5, 0xb8, 0x02, 0xd6, 0x82, 0xa5, 0xc6, 0xfe, 0x12, + 0x59, 0x1e, 0xb1, 0x0b, 0x8f, 0xb7, 0x73, 0x5e, 0xee, 0x38, 0xff, 0xae, 0xc8, 0xcc, 0x19, 0x59, + 0xa1, 0xdf, 0x16, 0xdf, 0xa0, 0x97, 0x37, 0x50, 0xcf, 0x9d, 0x74, 0x7c, 0x08, 0x8f, 0x7a, 0x1f, + 0x27, 0xe3, 0x4a, 0x01, 0x03, 0x1c, 0x5c, 0x8c, 0xde, 0xbb, 0x3d, 0x52, 0x41, 0xf8, 0x08, 0xca, + 0x17, 0xe3, 0x77, 0x3d, 0x32, 0x9a, 0x0c, 0x2f, 0x47, 0x83, 0x4a, 0x11, 0x57, 0x01, 0x13, 0xf7, + 0xda, 0x25, 0x57, 0xee, 0x9f, 0xf7, 0x56, 0xff, 0xfc, 0xa6, 0xeb, 0x73, 0xfd, 0x25, 0x99, 0xd9, + 0x5e, 0x14, 0x3a, 0x41, 0x3a, 0xd7, 0xce, 0x66, 0xb7, 0xf9, 0x4c, 0x38, 0x72, 0xf6, 0xca, 0x8f, + 0x9c, 0xec, 0xba, 0x9b, 0x1d, 0x98, 0xa5, 0xd6, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x12, 0xe0, + 0xd5, 0x84, 0x09, 0x05, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go similarity index 98% rename from gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go rename to gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go index 8c1fd2c6f..89b7288a1 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-validate. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/parameterranges.proto +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto package plugins @@ -34,7 +34,7 @@ var ( ) // define the regex for a UUID once up-front -var _parameterranges_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") +var _parameter_ranges_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") // Validate checks the field values on ContinuousParameterRange with the rules // defined in the proto definition for this message. If any rules are diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go new file mode 100644 index 000000000..526b6ef65 --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -0,0 +1,395 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/training_job.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type InputMode int32 + +const ( + InputMode_FILE InputMode = 0 + InputMode_PIPE InputMode = 1 +) + +var InputMode_name = map[int32]string{ + 0: "FILE", + 1: "PIPE", +} + +var InputMode_value = map[string]int32{ + "FILE": 0, + "PIPE": 1, +} + +func (x InputMode) String() string { + return proto.EnumName(InputMode_name, int32(x)) +} + +func (InputMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{0} +} + +type AlgorithmName int32 + +const ( + AlgorithmName_CUSTOM AlgorithmName = 0 + AlgorithmName_XGBOOST AlgorithmName = 1 +) + +var AlgorithmName_name = map[int32]string{ + 0: "CUSTOM", + 1: "XGBOOST", +} + +var AlgorithmName_value = map[string]int32{ + "CUSTOM": 0, + "XGBOOST": 1, +} + +func (x AlgorithmName) String() string { + return proto.EnumName(AlgorithmName_name, int32(x)) +} + +func (AlgorithmName) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{1} +} + +type AlgorithmSpecification struct { + InputMode InputMode `protobuf:"varint,1,opt,name=input_mode,json=inputMode,proto3,enum=flyteidl.plugins.sagemaker.InputMode" json:"input_mode,omitempty"` + AlgorithmName AlgorithmName `protobuf:"varint,2,opt,name=algorithm_name,json=algorithmName,proto3,enum=flyteidl.plugins.sagemaker.AlgorithmName" json:"algorithm_name,omitempty"` + AlgorithmVersion string `protobuf:"bytes,3,opt,name=algorithm_version,json=algorithmVersion,proto3" json:"algorithm_version,omitempty"` + MetricDefinitions []*AlgorithmSpecification_MetricDefinition `protobuf:"bytes,4,rep,name=metric_definitions,json=metricDefinitions,proto3" json:"metric_definitions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AlgorithmSpecification) Reset() { *m = AlgorithmSpecification{} } +func (m *AlgorithmSpecification) String() string { return proto.CompactTextString(m) } +func (*AlgorithmSpecification) ProtoMessage() {} +func (*AlgorithmSpecification) Descriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{0} +} + +func (m *AlgorithmSpecification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AlgorithmSpecification.Unmarshal(m, b) +} +func (m *AlgorithmSpecification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AlgorithmSpecification.Marshal(b, m, deterministic) +} +func (m *AlgorithmSpecification) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlgorithmSpecification.Merge(m, src) +} +func (m *AlgorithmSpecification) XXX_Size() int { + return xxx_messageInfo_AlgorithmSpecification.Size(m) +} +func (m *AlgorithmSpecification) XXX_DiscardUnknown() { + xxx_messageInfo_AlgorithmSpecification.DiscardUnknown(m) +} + +var xxx_messageInfo_AlgorithmSpecification proto.InternalMessageInfo + +func (m *AlgorithmSpecification) GetInputMode() InputMode { + if m != nil { + return m.InputMode + } + return InputMode_FILE +} + +func (m *AlgorithmSpecification) GetAlgorithmName() AlgorithmName { + if m != nil { + return m.AlgorithmName + } + return AlgorithmName_CUSTOM +} + +func (m *AlgorithmSpecification) GetAlgorithmVersion() string { + if m != nil { + return m.AlgorithmVersion + } + return "" +} + +func (m *AlgorithmSpecification) GetMetricDefinitions() []*AlgorithmSpecification_MetricDefinition { + if m != nil { + return m.MetricDefinitions + } + return nil +} + +type AlgorithmSpecification_MetricDefinition struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Regex string `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AlgorithmSpecification_MetricDefinition) Reset() { + *m = AlgorithmSpecification_MetricDefinition{} +} +func (m *AlgorithmSpecification_MetricDefinition) String() string { return proto.CompactTextString(m) } +func (*AlgorithmSpecification_MetricDefinition) ProtoMessage() {} +func (*AlgorithmSpecification_MetricDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{0, 0} +} + +func (m *AlgorithmSpecification_MetricDefinition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Unmarshal(m, b) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Marshal(b, m, deterministic) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Merge(m, src) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_Size() int { + return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Size(m) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AlgorithmSpecification_MetricDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AlgorithmSpecification_MetricDefinition proto.InternalMessageInfo + +func (m *AlgorithmSpecification_MetricDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AlgorithmSpecification_MetricDefinition) GetRegex() string { + if m != nil { + return m.Regex + } + return "" +} + +type TrainingJobConfig struct { + InstanceCount int64 `protobuf:"varint,1,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"` + InstanceType string `protobuf:"bytes,2,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` + VolumeSizeInGb string `protobuf:"bytes,3,opt,name=volume_size_in_gb,json=volumeSizeInGb,proto3" json:"volume_size_in_gb,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TrainingJobConfig) Reset() { *m = TrainingJobConfig{} } +func (m *TrainingJobConfig) String() string { return proto.CompactTextString(m) } +func (*TrainingJobConfig) ProtoMessage() {} +func (*TrainingJobConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{1} +} + +func (m *TrainingJobConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TrainingJobConfig.Unmarshal(m, b) +} +func (m *TrainingJobConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TrainingJobConfig.Marshal(b, m, deterministic) +} +func (m *TrainingJobConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TrainingJobConfig.Merge(m, src) +} +func (m *TrainingJobConfig) XXX_Size() int { + return xxx_messageInfo_TrainingJobConfig.Size(m) +} +func (m *TrainingJobConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TrainingJobConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_TrainingJobConfig proto.InternalMessageInfo + +func (m *TrainingJobConfig) GetInstanceCount() int64 { + if m != nil { + return m.InstanceCount + } + return 0 +} + +func (m *TrainingJobConfig) GetInstanceType() string { + if m != nil { + return m.InstanceType + } + return "" +} + +func (m *TrainingJobConfig) GetVolumeSizeInGb() string { + if m != nil { + return m.VolumeSizeInGb + } + return "" +} + +type StoppingCondition struct { + MaxRuntimeInSeconds int64 `protobuf:"varint,1,opt,name=max_runtime_in_seconds,json=maxRuntimeInSeconds,proto3" json:"max_runtime_in_seconds,omitempty"` + MaxWaitTimeInSeconds int64 `protobuf:"varint,2,opt,name=max_wait_time_in_seconds,json=maxWaitTimeInSeconds,proto3" json:"max_wait_time_in_seconds,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoppingCondition) Reset() { *m = StoppingCondition{} } +func (m *StoppingCondition) String() string { return proto.CompactTextString(m) } +func (*StoppingCondition) ProtoMessage() {} +func (*StoppingCondition) Descriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{2} +} + +func (m *StoppingCondition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StoppingCondition.Unmarshal(m, b) +} +func (m *StoppingCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StoppingCondition.Marshal(b, m, deterministic) +} +func (m *StoppingCondition) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoppingCondition.Merge(m, src) +} +func (m *StoppingCondition) XXX_Size() int { + return xxx_messageInfo_StoppingCondition.Size(m) +} +func (m *StoppingCondition) XXX_DiscardUnknown() { + xxx_messageInfo_StoppingCondition.DiscardUnknown(m) +} + +var xxx_messageInfo_StoppingCondition proto.InternalMessageInfo + +func (m *StoppingCondition) GetMaxRuntimeInSeconds() int64 { + if m != nil { + return m.MaxRuntimeInSeconds + } + return 0 +} + +func (m *StoppingCondition) GetMaxWaitTimeInSeconds() int64 { + if m != nil { + return m.MaxWaitTimeInSeconds + } + return 0 +} + +type TrainingJob struct { + AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,1,opt,name=algorithm_specification,json=algorithmSpecification,proto3" json:"algorithm_specification,omitempty"` + TrainingJobConfig *TrainingJobConfig `protobuf:"bytes,2,opt,name=training_job_config,json=trainingJobConfig,proto3" json:"training_job_config,omitempty"` + Interruptible bool `protobuf:"varint,4,opt,name=interruptible,proto3" json:"interruptible,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TrainingJob) Reset() { *m = TrainingJob{} } +func (m *TrainingJob) String() string { return proto.CompactTextString(m) } +func (*TrainingJob) ProtoMessage() {} +func (*TrainingJob) Descriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{3} +} + +func (m *TrainingJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TrainingJob.Unmarshal(m, b) +} +func (m *TrainingJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TrainingJob.Marshal(b, m, deterministic) +} +func (m *TrainingJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_TrainingJob.Merge(m, src) +} +func (m *TrainingJob) XXX_Size() int { + return xxx_messageInfo_TrainingJob.Size(m) +} +func (m *TrainingJob) XXX_DiscardUnknown() { + xxx_messageInfo_TrainingJob.DiscardUnknown(m) +} + +var xxx_messageInfo_TrainingJob proto.InternalMessageInfo + +func (m *TrainingJob) GetAlgorithmSpecification() *AlgorithmSpecification { + if m != nil { + return m.AlgorithmSpecification + } + return nil +} + +func (m *TrainingJob) GetTrainingJobConfig() *TrainingJobConfig { + if m != nil { + return m.TrainingJobConfig + } + return nil +} + +func (m *TrainingJob) GetInterruptible() bool { + if m != nil { + return m.Interruptible + } + return false +} + +func init() { + proto.RegisterEnum("flyteidl.plugins.sagemaker.InputMode", InputMode_name, InputMode_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.AlgorithmName", AlgorithmName_name, AlgorithmName_value) + proto.RegisterType((*AlgorithmSpecification)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification") + proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition") + proto.RegisterType((*TrainingJobConfig)(nil), "flyteidl.plugins.sagemaker.TrainingJobConfig") + proto.RegisterType((*StoppingCondition)(nil), "flyteidl.plugins.sagemaker.StoppingCondition") + proto.RegisterType((*TrainingJob)(nil), "flyteidl.plugins.sagemaker.TrainingJob") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/sagemaker/training_job.proto", fileDescriptor_6a68f64d8fd9fe30) +} + +var fileDescriptor_6a68f64d8fd9fe30 = []byte{ + // 586 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x6f, 0xd3, 0x4c, + 0x10, 0xad, 0x9b, 0x7c, 0xfd, 0x9a, 0x09, 0x8d, 0x92, 0x6d, 0x55, 0xa2, 0x5e, 0x88, 0x02, 0x95, + 0xd2, 0xa2, 0xda, 0x52, 0x2a, 0x38, 0x71, 0xa1, 0x69, 0xa9, 0x82, 0x28, 0xad, 0x9c, 0xf0, 0x43, + 0x48, 0x68, 0xb5, 0x76, 0x36, 0xee, 0x50, 0xef, 0xae, 0x65, 0xaf, 0x4b, 0xd2, 0x13, 0x67, 0x2e, + 0xfc, 0xc9, 0xa0, 0xac, 0x13, 0x37, 0x49, 0xa1, 0x82, 0xdb, 0xec, 0x9b, 0x99, 0xb7, 0x33, 0xf3, + 0x34, 0x03, 0x07, 0xc3, 0x70, 0xac, 0x39, 0x0e, 0x42, 0x27, 0x0a, 0xd3, 0x00, 0x65, 0xe2, 0x24, + 0x2c, 0xe0, 0x82, 0x5d, 0xf1, 0xd8, 0xd1, 0x31, 0x43, 0x89, 0x32, 0xa0, 0x5f, 0x94, 0x67, 0x47, + 0xb1, 0xd2, 0x8a, 0xec, 0xcc, 0xc2, 0xed, 0x69, 0xb8, 0x9d, 0x87, 0x37, 0x7f, 0x14, 0x60, 0xfb, + 0x65, 0x18, 0xa8, 0x18, 0xf5, 0xa5, 0xe8, 0x45, 0xdc, 0xc7, 0x21, 0xfa, 0x4c, 0xa3, 0x92, 0xe4, + 0x18, 0x00, 0x65, 0x94, 0x6a, 0x2a, 0xd4, 0x80, 0xd7, 0xad, 0x86, 0xd5, 0xaa, 0xb4, 0x77, 0xed, + 0x3f, 0x73, 0xd9, 0xdd, 0x49, 0xf4, 0x99, 0x1a, 0x70, 0xb7, 0x84, 0x33, 0x93, 0x5c, 0x40, 0x85, + 0xcd, 0xf8, 0xa9, 0x64, 0x82, 0xd7, 0x57, 0x0d, 0xd3, 0xde, 0x7d, 0x4c, 0x79, 0x45, 0x6f, 0x99, + 0xe0, 0xee, 0x06, 0x9b, 0x7f, 0x92, 0xa7, 0x50, 0xbb, 0x65, 0xbc, 0xe6, 0x71, 0x82, 0x4a, 0xd6, + 0x0b, 0x0d, 0xab, 0x55, 0x72, 0xab, 0xb9, 0xe3, 0x7d, 0x86, 0x93, 0x18, 0x88, 0xe0, 0x3a, 0x46, + 0x9f, 0x0e, 0xf8, 0x10, 0x25, 0x4e, 0x3a, 0x4b, 0xea, 0xc5, 0x46, 0xa1, 0x55, 0x6e, 0x77, 0xfe, + 0xaa, 0x84, 0x85, 0xa1, 0xd8, 0x67, 0x86, 0xec, 0x38, 0xe7, 0x72, 0x6b, 0x62, 0x09, 0x49, 0x76, + 0x5e, 0x40, 0x75, 0x39, 0x8c, 0x10, 0x28, 0x9a, 0xe6, 0x2d, 0x53, 0xa7, 0xb1, 0xc9, 0x16, 0xfc, + 0x17, 0xf3, 0x80, 0x8f, 0xcc, 0x44, 0x4a, 0x6e, 0xf6, 0x68, 0x7e, 0xb7, 0xa0, 0xd6, 0x9f, 0x8a, + 0xf8, 0x5a, 0x79, 0x1d, 0x25, 0x87, 0x18, 0x90, 0x5d, 0xa8, 0xa0, 0x4c, 0x34, 0x93, 0x3e, 0xa7, + 0xbe, 0x4a, 0xa5, 0x36, 0x4c, 0x05, 0x77, 0x63, 0x86, 0x76, 0x26, 0x20, 0x79, 0x0c, 0x39, 0x40, + 0xf5, 0x38, 0xe2, 0x53, 0xea, 0x07, 0x33, 0xb0, 0x3f, 0x8e, 0x38, 0xd9, 0x83, 0xda, 0xb5, 0x0a, + 0x53, 0xc1, 0x69, 0x82, 0x37, 0x9c, 0xa2, 0xa4, 0x81, 0x37, 0x1d, 0x60, 0x25, 0x73, 0xf4, 0xf0, + 0x86, 0x77, 0xe5, 0xa9, 0xd7, 0xfc, 0x66, 0x41, 0xad, 0xa7, 0x55, 0x14, 0xa1, 0x0c, 0x3a, 0x4a, + 0x0e, 0xb2, 0x66, 0x0e, 0x61, 0x5b, 0xb0, 0x11, 0x8d, 0x53, 0xa9, 0x51, 0x18, 0x82, 0x84, 0xfb, + 0x4a, 0x0e, 0x92, 0x69, 0x51, 0x9b, 0x82, 0x8d, 0xdc, 0xcc, 0xd9, 0x95, 0xbd, 0xcc, 0x45, 0x9e, + 0x43, 0x7d, 0x92, 0xf4, 0x95, 0xa1, 0xa6, 0xcb, 0x69, 0xab, 0x26, 0x6d, 0x4b, 0xb0, 0xd1, 0x07, + 0x86, 0xba, 0x3f, 0x9f, 0xd7, 0xfc, 0x69, 0x41, 0x79, 0x6e, 0x1e, 0xe4, 0x0a, 0x1e, 0xde, 0xca, + 0x9f, 0xcc, 0x8b, 0x63, 0x7e, 0x2f, 0xb7, 0xdb, 0xff, 0x2e, 0xab, 0xbb, 0xcd, 0x7e, 0xbf, 0x03, + 0x9f, 0x61, 0x73, 0x7e, 0xa1, 0xa8, 0x6f, 0xd4, 0x30, 0xf5, 0x96, 0xdb, 0x07, 0xf7, 0x7d, 0x74, + 0x47, 0x42, 0xb7, 0xa6, 0xef, 0xa8, 0xfa, 0x64, 0x22, 0x97, 0xe6, 0x71, 0x9c, 0x46, 0x1a, 0xbd, + 0x90, 0xd7, 0x8b, 0x0d, 0xab, 0xb5, 0xee, 0x2e, 0x82, 0xfb, 0x8f, 0xa0, 0x94, 0xaf, 0x16, 0x59, + 0x87, 0xe2, 0xab, 0xee, 0x9b, 0x93, 0xea, 0xca, 0xc4, 0xba, 0xe8, 0x5e, 0x9c, 0x54, 0xad, 0xfd, + 0x16, 0x6c, 0x2c, 0x6c, 0x0c, 0x01, 0x58, 0xeb, 0xbc, 0xeb, 0xf5, 0xcf, 0xcf, 0xaa, 0x2b, 0xa4, + 0x0c, 0xff, 0x7f, 0x3c, 0x3d, 0x3a, 0x3f, 0xef, 0xf5, 0xab, 0xd6, 0xd1, 0xb3, 0x4f, 0x87, 0x01, + 0xea, 0xcb, 0xd4, 0xb3, 0x7d, 0x25, 0x9c, 0x70, 0x3c, 0xd4, 0x4e, 0x7e, 0x4b, 0x02, 0x2e, 0x9d, + 0xc8, 0x3b, 0x08, 0x94, 0xb3, 0x7c, 0x5e, 0xbc, 0x35, 0x73, 0x48, 0x0e, 0x7f, 0x05, 0x00, 0x00, + 0xff, 0xff, 0xc0, 0xb1, 0xa6, 0x70, 0x79, 0x04, 0x00, 0x00, +} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go similarity index 72% rename from gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go rename to gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go index ee10cfd51..0b83d2fa9 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-validate. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/trainingjob.proto +// source: flyteidl/plugins/sagemaker/training_job.proto package plugins @@ -34,7 +34,7 @@ var ( ) // define the regex for a UUID once up-front -var _trainingjob_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") +var _training_job_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") // Validate checks the field values on AlgorithmSpecification with the rules // defined in the proto definition for this message. If any rules are @@ -44,12 +44,12 @@ func (m *AlgorithmSpecification) Validate() error { return nil } - // no validation rules for TrainingImage - - // no validation rules for TrainingInputMode + // no validation rules for InputMode // no validation rules for AlgorithmName + // no validation rules for AlgorithmVersion + for idx, item := range m.GetMetricDefinitions() { _, _ = idx, item @@ -124,28 +124,26 @@ var _ interface { ErrorName() string } = AlgorithmSpecificationValidationError{} -// Validate checks the field values on ResourceConfig with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *ResourceConfig) Validate() error { +// Validate checks the field values on TrainingJobConfig with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TrainingJobConfig) Validate() error { if m == nil { return nil } - // no validation rules for InstanceType - // no validation rules for InstanceCount - // no validation rules for VolumeSizeInGb + // no validation rules for InstanceType - // no validation rules for VolumeKmsKeyId + // no validation rules for VolumeSizeInGb return nil } -// ResourceConfigValidationError is the validation error returned by -// ResourceConfig.Validate if the designated constraints aren't met. -type ResourceConfigValidationError struct { +// TrainingJobConfigValidationError is the validation error returned by +// TrainingJobConfig.Validate if the designated constraints aren't met. +type TrainingJobConfigValidationError struct { field string reason string cause error @@ -153,22 +151,24 @@ type ResourceConfigValidationError struct { } // Field function returns field value. -func (e ResourceConfigValidationError) Field() string { return e.field } +func (e TrainingJobConfigValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e ResourceConfigValidationError) Reason() string { return e.reason } +func (e TrainingJobConfigValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e ResourceConfigValidationError) Cause() error { return e.cause } +func (e TrainingJobConfigValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e ResourceConfigValidationError) Key() bool { return e.key } +func (e TrainingJobConfigValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e ResourceConfigValidationError) ErrorName() string { return "ResourceConfigValidationError" } +func (e TrainingJobConfigValidationError) ErrorName() string { + return "TrainingJobConfigValidationError" +} // Error satisfies the builtin error interface -func (e ResourceConfigValidationError) Error() string { +func (e TrainingJobConfigValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -180,14 +180,14 @@ func (e ResourceConfigValidationError) Error() string { } return fmt.Sprintf( - "invalid %sResourceConfig.%s: %s%s", + "invalid %sTrainingJobConfig.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = ResourceConfigValidationError{} +var _ error = TrainingJobConfigValidationError{} var _ interface { Field() string @@ -195,7 +195,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = ResourceConfigValidationError{} +} = TrainingJobConfigValidationError{} // Validate checks the field values on StoppingCondition with the rules defined // in the proto definition for this message. If any rules are violated, an @@ -268,70 +268,6 @@ var _ interface { ErrorName() string } = StoppingConditionValidationError{} -// Validate checks the field values on VpcConfig with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *VpcConfig) Validate() error { - if m == nil { - return nil - } - - return nil -} - -// VpcConfigValidationError is the validation error returned by -// VpcConfig.Validate if the designated constraints aren't met. -type VpcConfigValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e VpcConfigValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e VpcConfigValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e VpcConfigValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e VpcConfigValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e VpcConfigValidationError) ErrorName() string { return "VpcConfigValidationError" } - -// Error satisfies the builtin error interface -func (e VpcConfigValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sVpcConfig.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = VpcConfigValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = VpcConfigValidationError{} - // Validate checks the field values on TrainingJob with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned. @@ -340,10 +276,6 @@ func (m *TrainingJob) Validate() error { return nil } - // no validation rules for Region - - // no validation rules for RoleArn - if v, ok := interface{}(m.GetAlgorithmSpecification()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TrainingJobValidationError{ @@ -354,37 +286,17 @@ func (m *TrainingJob) Validate() error { } } - if v, ok := interface{}(m.GetResourceConfig()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return TrainingJobValidationError{ - field: "ResourceConfig", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetStoppingCondition()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return TrainingJobValidationError{ - field: "StoppingCondition", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetVpcConfig()).(interface{ Validate() error }); ok { + if v, ok := interface{}(m.GetTrainingJobConfig()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TrainingJobValidationError{ - field: "VpcConfig", + field: "TrainingJobConfig", reason: "embedded message failed validation", cause: err, } } } - // no validation rules for EnableSpotTraining + // no validation rules for Interruptible return nil } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go deleted file mode 100644 index 1325b519f..000000000 --- a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go +++ /dev/null @@ -1,436 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/trainingjob.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type AlgorithmSpecification struct { - TrainingImage string `protobuf:"bytes,1,opt,name=training_image,json=trainingImage,proto3" json:"training_image,omitempty"` - TrainingInputMode string `protobuf:"bytes,2,opt,name=training_input_mode,json=trainingInputMode,proto3" json:"training_input_mode,omitempty"` - AlgorithmName string `protobuf:"bytes,3,opt,name=algorithm_name,json=algorithmName,proto3" json:"algorithm_name,omitempty"` - MetricDefinitions []*AlgorithmSpecification_MetricDefinition `protobuf:"bytes,4,rep,name=metric_definitions,json=metricDefinitions,proto3" json:"metric_definitions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AlgorithmSpecification) Reset() { *m = AlgorithmSpecification{} } -func (m *AlgorithmSpecification) String() string { return proto.CompactTextString(m) } -func (*AlgorithmSpecification) ProtoMessage() {} -func (*AlgorithmSpecification) Descriptor() ([]byte, []int) { - return fileDescriptor_030d49acd9e1f6e1, []int{0} -} - -func (m *AlgorithmSpecification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AlgorithmSpecification.Unmarshal(m, b) -} -func (m *AlgorithmSpecification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AlgorithmSpecification.Marshal(b, m, deterministic) -} -func (m *AlgorithmSpecification) XXX_Merge(src proto.Message) { - xxx_messageInfo_AlgorithmSpecification.Merge(m, src) -} -func (m *AlgorithmSpecification) XXX_Size() int { - return xxx_messageInfo_AlgorithmSpecification.Size(m) -} -func (m *AlgorithmSpecification) XXX_DiscardUnknown() { - xxx_messageInfo_AlgorithmSpecification.DiscardUnknown(m) -} - -var xxx_messageInfo_AlgorithmSpecification proto.InternalMessageInfo - -func (m *AlgorithmSpecification) GetTrainingImage() string { - if m != nil { - return m.TrainingImage - } - return "" -} - -func (m *AlgorithmSpecification) GetTrainingInputMode() string { - if m != nil { - return m.TrainingInputMode - } - return "" -} - -func (m *AlgorithmSpecification) GetAlgorithmName() string { - if m != nil { - return m.AlgorithmName - } - return "" -} - -func (m *AlgorithmSpecification) GetMetricDefinitions() []*AlgorithmSpecification_MetricDefinition { - if m != nil { - return m.MetricDefinitions - } - return nil -} - -type AlgorithmSpecification_MetricDefinition struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Regex string `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AlgorithmSpecification_MetricDefinition) Reset() { - *m = AlgorithmSpecification_MetricDefinition{} -} -func (m *AlgorithmSpecification_MetricDefinition) String() string { return proto.CompactTextString(m) } -func (*AlgorithmSpecification_MetricDefinition) ProtoMessage() {} -func (*AlgorithmSpecification_MetricDefinition) Descriptor() ([]byte, []int) { - return fileDescriptor_030d49acd9e1f6e1, []int{0, 0} -} - -func (m *AlgorithmSpecification_MetricDefinition) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Unmarshal(m, b) -} -func (m *AlgorithmSpecification_MetricDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Marshal(b, m, deterministic) -} -func (m *AlgorithmSpecification_MetricDefinition) XXX_Merge(src proto.Message) { - xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Merge(m, src) -} -func (m *AlgorithmSpecification_MetricDefinition) XXX_Size() int { - return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Size(m) -} -func (m *AlgorithmSpecification_MetricDefinition) XXX_DiscardUnknown() { - xxx_messageInfo_AlgorithmSpecification_MetricDefinition.DiscardUnknown(m) -} - -var xxx_messageInfo_AlgorithmSpecification_MetricDefinition proto.InternalMessageInfo - -func (m *AlgorithmSpecification_MetricDefinition) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *AlgorithmSpecification_MetricDefinition) GetRegex() string { - if m != nil { - return m.Regex - } - return "" -} - -type ResourceConfig struct { - InstanceType string `protobuf:"bytes,1,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` - InstanceCount int64 `protobuf:"varint,2,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"` - VolumeSizeInGb int64 `protobuf:"varint,3,opt,name=volume_size_in_gb,json=volumeSizeInGb,proto3" json:"volume_size_in_gb,omitempty"` - VolumeKmsKeyId string `protobuf:"bytes,4,opt,name=volume_kms_key_id,json=volumeKmsKeyId,proto3" json:"volume_kms_key_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResourceConfig) Reset() { *m = ResourceConfig{} } -func (m *ResourceConfig) String() string { return proto.CompactTextString(m) } -func (*ResourceConfig) ProtoMessage() {} -func (*ResourceConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_030d49acd9e1f6e1, []int{1} -} - -func (m *ResourceConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResourceConfig.Unmarshal(m, b) -} -func (m *ResourceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResourceConfig.Marshal(b, m, deterministic) -} -func (m *ResourceConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceConfig.Merge(m, src) -} -func (m *ResourceConfig) XXX_Size() int { - return xxx_messageInfo_ResourceConfig.Size(m) -} -func (m *ResourceConfig) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceConfig proto.InternalMessageInfo - -func (m *ResourceConfig) GetInstanceType() string { - if m != nil { - return m.InstanceType - } - return "" -} - -func (m *ResourceConfig) GetInstanceCount() int64 { - if m != nil { - return m.InstanceCount - } - return 0 -} - -func (m *ResourceConfig) GetVolumeSizeInGb() int64 { - if m != nil { - return m.VolumeSizeInGb - } - return 0 -} - -func (m *ResourceConfig) GetVolumeKmsKeyId() string { - if m != nil { - return m.VolumeKmsKeyId - } - return "" -} - -type StoppingCondition struct { - MaxRuntimeInSeconds int64 `protobuf:"varint,1,opt,name=max_runtime_in_seconds,json=maxRuntimeInSeconds,proto3" json:"max_runtime_in_seconds,omitempty"` - MaxWaitTimeInSeconds int64 `protobuf:"varint,2,opt,name=max_wait_time_in_seconds,json=maxWaitTimeInSeconds,proto3" json:"max_wait_time_in_seconds,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoppingCondition) Reset() { *m = StoppingCondition{} } -func (m *StoppingCondition) String() string { return proto.CompactTextString(m) } -func (*StoppingCondition) ProtoMessage() {} -func (*StoppingCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_030d49acd9e1f6e1, []int{2} -} - -func (m *StoppingCondition) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StoppingCondition.Unmarshal(m, b) -} -func (m *StoppingCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StoppingCondition.Marshal(b, m, deterministic) -} -func (m *StoppingCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoppingCondition.Merge(m, src) -} -func (m *StoppingCondition) XXX_Size() int { - return xxx_messageInfo_StoppingCondition.Size(m) -} -func (m *StoppingCondition) XXX_DiscardUnknown() { - xxx_messageInfo_StoppingCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_StoppingCondition proto.InternalMessageInfo - -func (m *StoppingCondition) GetMaxRuntimeInSeconds() int64 { - if m != nil { - return m.MaxRuntimeInSeconds - } - return 0 -} - -func (m *StoppingCondition) GetMaxWaitTimeInSeconds() int64 { - if m != nil { - return m.MaxWaitTimeInSeconds - } - return 0 -} - -type VpcConfig struct { - SecurityGroupIds []string `protobuf:"bytes,1,rep,name=security_group_ids,json=securityGroupIds,proto3" json:"security_group_ids,omitempty"` - Subnets []string `protobuf:"bytes,2,rep,name=subnets,proto3" json:"subnets,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VpcConfig) Reset() { *m = VpcConfig{} } -func (m *VpcConfig) String() string { return proto.CompactTextString(m) } -func (*VpcConfig) ProtoMessage() {} -func (*VpcConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_030d49acd9e1f6e1, []int{3} -} - -func (m *VpcConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VpcConfig.Unmarshal(m, b) -} -func (m *VpcConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VpcConfig.Marshal(b, m, deterministic) -} -func (m *VpcConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_VpcConfig.Merge(m, src) -} -func (m *VpcConfig) XXX_Size() int { - return xxx_messageInfo_VpcConfig.Size(m) -} -func (m *VpcConfig) XXX_DiscardUnknown() { - xxx_messageInfo_VpcConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_VpcConfig proto.InternalMessageInfo - -func (m *VpcConfig) GetSecurityGroupIds() []string { - if m != nil { - return m.SecurityGroupIds - } - return nil -} - -func (m *VpcConfig) GetSubnets() []string { - if m != nil { - return m.Subnets - } - return nil -} - -type TrainingJob struct { - Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - RoleArn string `protobuf:"bytes,2,opt,name=role_arn,json=roleArn,proto3" json:"role_arn,omitempty"` - AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,3,opt,name=algorithm_specification,json=algorithmSpecification,proto3" json:"algorithm_specification,omitempty"` - ResourceConfig *ResourceConfig `protobuf:"bytes,4,opt,name=resource_config,json=resourceConfig,proto3" json:"resource_config,omitempty"` - StoppingCondition *StoppingCondition `protobuf:"bytes,5,opt,name=stopping_condition,json=stoppingCondition,proto3" json:"stopping_condition,omitempty"` - VpcConfig *VpcConfig `protobuf:"bytes,6,opt,name=vpc_config,json=vpcConfig,proto3" json:"vpc_config,omitempty"` - EnableSpotTraining bool `protobuf:"varint,7,opt,name=enable_spot_training,json=enableSpotTraining,proto3" json:"enable_spot_training,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TrainingJob) Reset() { *m = TrainingJob{} } -func (m *TrainingJob) String() string { return proto.CompactTextString(m) } -func (*TrainingJob) ProtoMessage() {} -func (*TrainingJob) Descriptor() ([]byte, []int) { - return fileDescriptor_030d49acd9e1f6e1, []int{4} -} - -func (m *TrainingJob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TrainingJob.Unmarshal(m, b) -} -func (m *TrainingJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TrainingJob.Marshal(b, m, deterministic) -} -func (m *TrainingJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_TrainingJob.Merge(m, src) -} -func (m *TrainingJob) XXX_Size() int { - return xxx_messageInfo_TrainingJob.Size(m) -} -func (m *TrainingJob) XXX_DiscardUnknown() { - xxx_messageInfo_TrainingJob.DiscardUnknown(m) -} - -var xxx_messageInfo_TrainingJob proto.InternalMessageInfo - -func (m *TrainingJob) GetRegion() string { - if m != nil { - return m.Region - } - return "" -} - -func (m *TrainingJob) GetRoleArn() string { - if m != nil { - return m.RoleArn - } - return "" -} - -func (m *TrainingJob) GetAlgorithmSpecification() *AlgorithmSpecification { - if m != nil { - return m.AlgorithmSpecification - } - return nil -} - -func (m *TrainingJob) GetResourceConfig() *ResourceConfig { - if m != nil { - return m.ResourceConfig - } - return nil -} - -func (m *TrainingJob) GetStoppingCondition() *StoppingCondition { - if m != nil { - return m.StoppingCondition - } - return nil -} - -func (m *TrainingJob) GetVpcConfig() *VpcConfig { - if m != nil { - return m.VpcConfig - } - return nil -} - -func (m *TrainingJob) GetEnableSpotTraining() bool { - if m != nil { - return m.EnableSpotTraining - } - return false -} - -func init() { - proto.RegisterType((*AlgorithmSpecification)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification") - proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition") - proto.RegisterType((*ResourceConfig)(nil), "flyteidl.plugins.sagemaker.ResourceConfig") - proto.RegisterType((*StoppingCondition)(nil), "flyteidl.plugins.sagemaker.StoppingCondition") - proto.RegisterType((*VpcConfig)(nil), "flyteidl.plugins.sagemaker.VpcConfig") - proto.RegisterType((*TrainingJob)(nil), "flyteidl.plugins.sagemaker.TrainingJob") -} - -func init() { - proto.RegisterFile("flyteidl/plugins/sagemaker/trainingjob.proto", fileDescriptor_030d49acd9e1f6e1) -} - -var fileDescriptor_030d49acd9e1f6e1 = []byte{ - // 664 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xdf, 0x4e, 0xdb, 0x3e, - 0x14, 0x56, 0x29, 0xff, 0xea, 0xfe, 0xe8, 0x8f, 0x1a, 0xd4, 0x65, 0x5c, 0xa1, 0x4e, 0x48, 0xdd, - 0x04, 0xe9, 0x54, 0xb4, 0x5d, 0xed, 0x86, 0x15, 0x09, 0x75, 0x88, 0x5d, 0xa4, 0x68, 0x93, 0xa6, - 0x49, 0x96, 0x93, 0x9c, 0x06, 0xaf, 0xb1, 0x1d, 0xd9, 0x0e, 0x6b, 0xb8, 0xda, 0x33, 0xed, 0x29, - 0xf6, 0x08, 0x7b, 0x9c, 0x29, 0xce, 0x1f, 0xa0, 0x30, 0xa4, 0xdd, 0xc5, 0xe7, 0x7c, 0xfe, 0x8e, - 0xcf, 0xf9, 0xbe, 0x1c, 0x74, 0x38, 0x8b, 0x33, 0x03, 0x2c, 0x8c, 0x87, 0x49, 0x9c, 0x46, 0x4c, - 0xe8, 0xa1, 0xa6, 0x11, 0x70, 0x3a, 0x07, 0x35, 0x34, 0x8a, 0x32, 0xc1, 0x44, 0xf4, 0x4d, 0xfa, - 0x6e, 0xa2, 0xa4, 0x91, 0x78, 0xaf, 0x42, 0xbb, 0x25, 0xda, 0xad, 0xd1, 0xfd, 0x5f, 0x2b, 0xa8, - 0x77, 0x12, 0x47, 0x52, 0x31, 0x73, 0xc5, 0xa7, 0x09, 0x04, 0x6c, 0xc6, 0x02, 0x6a, 0x98, 0x14, - 0xf8, 0x00, 0x75, 0x2a, 0x2e, 0xc2, 0x38, 0x8d, 0xc0, 0x69, 0xec, 0x37, 0x06, 0x2d, 0x6f, 0xab, - 0x8a, 0x4e, 0xf2, 0x20, 0x76, 0xd1, 0xce, 0x2d, 0x4c, 0x24, 0xa9, 0x21, 0x5c, 0x86, 0xe0, 0xac, - 0x58, 0x6c, 0xb7, 0xc6, 0xe6, 0x99, 0x0b, 0x19, 0x42, 0x4e, 0x4b, 0xab, 0x82, 0x44, 0x50, 0x0e, - 0x4e, 0xb3, 0xa0, 0xad, 0xa3, 0x1f, 0x29, 0x07, 0xac, 0x10, 0xe6, 0x60, 0x14, 0x0b, 0x48, 0x08, - 0x33, 0x26, 0x58, 0xfe, 0x24, 0xed, 0xac, 0xee, 0x37, 0x07, 0xed, 0xd1, 0xd8, 0xfd, 0x7b, 0x47, - 0xee, 0xe3, 0xdd, 0xb8, 0x17, 0x96, 0xec, 0xb4, 0xe6, 0xf2, 0xba, 0x7c, 0x29, 0xa2, 0xf7, 0xde, - 0xa1, 0xed, 0x65, 0x18, 0xc6, 0x68, 0xd5, 0x3e, 0xb2, 0xe8, 0xdd, 0x7e, 0xe3, 0x5d, 0xb4, 0xa6, - 0x20, 0x82, 0x45, 0xd9, 0x64, 0x71, 0xe8, 0xff, 0x6c, 0xa0, 0x8e, 0x07, 0x5a, 0xa6, 0x2a, 0x80, - 0xb1, 0x14, 0x33, 0x16, 0xe1, 0x17, 0x68, 0x8b, 0x09, 0x6d, 0xa8, 0x08, 0x80, 0x98, 0x2c, 0xa9, - 0x58, 0xfe, 0xab, 0x82, 0x97, 0x59, 0x62, 0x07, 0x52, 0x83, 0x02, 0x99, 0x0a, 0x63, 0x69, 0x9b, - 0x5e, 0x7d, 0x75, 0x9c, 0x07, 0xf1, 0x4b, 0xd4, 0xbd, 0x96, 0x71, 0xca, 0x81, 0x68, 0x76, 0x03, - 0x84, 0x09, 0x12, 0xf9, 0x76, 0x74, 0x4d, 0xaf, 0x53, 0x24, 0xa6, 0xec, 0x06, 0x26, 0xe2, 0xcc, - 0xbf, 0x03, 0x9d, 0x73, 0x4d, 0xe6, 0x90, 0x11, 0x16, 0x3a, 0xab, 0xb6, 0x74, 0x09, 0x3d, 0xe7, - 0xfa, 0x1c, 0xb2, 0x49, 0xd8, 0xff, 0xd1, 0x40, 0xdd, 0xa9, 0x91, 0x49, 0xc2, 0x44, 0x34, 0x96, - 0x22, 0x2c, 0x9a, 0x3e, 0x46, 0x3d, 0x4e, 0x17, 0x44, 0xa5, 0xc2, 0x30, 0x6e, 0x6b, 0x69, 0x08, - 0xa4, 0x08, 0xb5, 0x6d, 0xa0, 0xe9, 0xed, 0x70, 0xba, 0xf0, 0x8a, 0xe4, 0x44, 0x4c, 0x8b, 0x14, - 0x7e, 0x8b, 0x9c, 0xfc, 0xd2, 0x77, 0xca, 0x0c, 0x59, 0xbe, 0x56, 0x74, 0xb4, 0xcb, 0xe9, 0xe2, - 0x33, 0x65, 0xe6, 0xf2, 0xee, 0xbd, 0xfe, 0x14, 0xb5, 0x3e, 0x25, 0x41, 0x39, 0xb1, 0x43, 0x84, - 0x35, 0x04, 0xa9, 0x62, 0x26, 0x23, 0x91, 0x92, 0x69, 0x42, 0x98, 0xad, 0xda, 0x1c, 0xb4, 0xbc, - 0xed, 0x2a, 0x73, 0x96, 0x27, 0x26, 0xa1, 0xc6, 0x0e, 0xda, 0xd0, 0xa9, 0x2f, 0xc0, 0xe4, 0x15, - 0x72, 0x48, 0x75, 0xec, 0xff, 0x6e, 0xa2, 0xf6, 0x65, 0xe9, 0xbd, 0x0f, 0xd2, 0xc7, 0x3d, 0xb4, - 0xae, 0x20, 0x62, 0x52, 0x94, 0x12, 0x94, 0x27, 0xfc, 0x1c, 0x6d, 0x2a, 0x19, 0x03, 0xa1, 0x4a, - 0x94, 0x6a, 0x6e, 0xe4, 0xe7, 0x13, 0x25, 0xf0, 0x1c, 0x3d, 0xbb, 0x35, 0xaa, 0xbe, 0x6b, 0x26, - 0x3b, 0xf6, 0xf6, 0x68, 0xf4, 0xef, 0x36, 0xf4, 0x7a, 0xf4, 0xf1, 0x9f, 0x6d, 0x8a, 0xfe, 0x57, - 0xa5, 0x77, 0x48, 0x60, 0x47, 0x61, 0x05, 0x6b, 0x8f, 0x5e, 0x3d, 0x55, 0xe4, 0xbe, 0xdd, 0xbc, - 0x8e, 0xba, 0x6f, 0xbf, 0xaf, 0x08, 0xeb, 0x52, 0xdb, 0x9c, 0xb4, 0x10, 0xd7, 0x59, 0xb3, 0xbc, - 0x47, 0x4f, 0xf1, 0x3e, 0x70, 0x84, 0xd7, 0xd5, 0x0f, 0x4c, 0x72, 0x8a, 0xd0, 0x75, 0x12, 0x54, - 0xaf, 0x5d, 0xb7, 0xac, 0x07, 0x4f, 0xb1, 0xd6, 0x2a, 0x7b, 0xad, 0xeb, 0x5a, 0xf0, 0xd7, 0x68, - 0x17, 0x04, 0xf5, 0x63, 0x20, 0x3a, 0x91, 0x86, 0x54, 0xfb, 0xc2, 0xd9, 0xd8, 0x6f, 0x0c, 0x36, - 0x3d, 0x5c, 0xe4, 0xa6, 0x89, 0x34, 0x95, 0x9a, 0xef, 0xdf, 0x7c, 0x39, 0x8e, 0x98, 0xb9, 0x4a, - 0x7d, 0x37, 0x90, 0x7c, 0x18, 0x67, 0x33, 0x33, 0xac, 0xd7, 0x61, 0x04, 0x62, 0x98, 0xf8, 0x47, - 0x91, 0x1c, 0x2e, 0x6f, 0x48, 0x7f, 0xdd, 0x2e, 0xc3, 0xe3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, - 0x6b, 0x35, 0xfa, 0x71, 0x3c, 0x05, 0x00, 0x00, -} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java index 6d0f350b3..1975a419b 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpojob.proto +// source: flyteidl/plugins/sagemaker/hpo_job.proto package flyteidl.plugins.sagemaker; -public final class Hpojob { - private Hpojob() {} +public final class HpoJob { + private HpoJob() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -14,18 +14,18 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface HPOJobObjectiveOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJobObjective) + public interface HyperparameterTuningObjectiveOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) com.google.protobuf.MessageOrBuilder { /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ int getObjectiveTypeValue(); /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getObjectiveType(); + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); /** * string metric_name = 2; @@ -38,18 +38,18 @@ public interface HPOJobObjectiveOrBuilder extends getMetricNameBytes(); } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobObjective} + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} */ - public static final class HPOJobObjective extends + public static final class HyperparameterTuningObjective extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJobObjective) - HPOJobObjectiveOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + HyperparameterTuningObjectiveOrBuilder { private static final long serialVersionUID = 0L; - // Use HPOJobObjective.newBuilder() to construct. - private HPOJobObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use HyperparameterTuningObjective.newBuilder() to construct. + private HyperparameterTuningObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HPOJobObjective() { + private HyperparameterTuningObjective() { objectiveType_ = 0; metricName_ = ""; } @@ -59,7 +59,7 @@ private HPOJobObjective() { getUnknownFields() { return this.unknownFields; } - private HPOJobObjective( + private HyperparameterTuningObjective( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -111,21 +111,21 @@ private HPOJobObjective( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.class, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder.class); + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); } /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType} + * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType} */ - public enum HPOJobObjectiveType + public enum HyperparameterTuningObjectiveType implements com.google.protobuf.ProtocolMessageEnum { /** * MINIMIZE = 0; @@ -160,11 +160,11 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static HPOJobObjectiveType valueOf(int value) { + public static HyperparameterTuningObjectiveType valueOf(int value) { return forNumber(value); } - public static HPOJobObjectiveType forNumber(int value) { + public static HyperparameterTuningObjectiveType forNumber(int value) { switch (value) { case 0: return MINIMIZE; case 1: return MAXIMIZE; @@ -172,15 +172,15 @@ public static HPOJobObjectiveType forNumber(int value) { } } - public static com.google.protobuf.Internal.EnumLiteMap + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< - HPOJobObjectiveType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HPOJobObjectiveType findValueByNumber(int number) { - return HPOJobObjectiveType.forNumber(number); + HyperparameterTuningObjectiveType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HyperparameterTuningObjectiveType findValueByNumber(int number) { + return HyperparameterTuningObjectiveType.forNumber(number); } }; @@ -194,12 +194,12 @@ public HPOJobObjectiveType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.getDescriptor().getEnumTypes().get(0); + return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0); } - private static final HPOJobObjectiveType[] VALUES = values(); + private static final HyperparameterTuningObjectiveType[] VALUES = values(); - public static HPOJobObjectiveType valueOf( + public static HyperparameterTuningObjectiveType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( @@ -213,28 +213,28 @@ public static HPOJobObjectiveType valueOf( private final int value; - private HPOJobObjectiveType(int value) { + private HyperparameterTuningObjectiveType(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType) + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType) } public static final int OBJECTIVE_TYPE_FIELD_NUMBER = 1; private int objectiveType_; /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ public int getObjectiveTypeValue() { return objectiveType_; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getObjectiveType() { + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType result = flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; } public static final int METRIC_NAME_FIELD_NUMBER = 2; @@ -285,7 +285,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (objectiveType_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.MINIMIZE.getNumber()) { + if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { output.writeEnum(1, objectiveType_); } if (!getMetricNameBytes().isEmpty()) { @@ -300,7 +300,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (objectiveType_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.MINIMIZE.getNumber()) { + if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, objectiveType_); } @@ -317,10 +317,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective other = (flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective) obj; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) obj; if (objectiveType_ != other.objectiveType_) return false; if (!getMetricName() @@ -345,69 +345,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -420,7 +420,7 @@ public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -436,26 +436,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobObjective} + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobObjective) - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiveOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.class, flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.Builder.class); + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.newBuilder() + // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -483,17 +483,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.getDefaultInstance(); + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective build() { - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective result = buildPartial(); + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective build() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -501,8 +501,8 @@ public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective buildPartial() { - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective result = new flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective(this); + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(this); result.objectiveType_ = objectiveType_; result.metricName_ = metricName_; onBuilt(); @@ -543,16 +543,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective) { - return mergeFrom((flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective)other); + if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective other) { - if (other == flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance()) return this; if (other.objectiveType_ != 0) { setObjectiveTypeValue(other.getObjectiveTypeValue()); } @@ -575,11 +575,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective parsedMessage = null; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -591,13 +591,13 @@ public Builder mergeFrom( private int objectiveType_ = 0; /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ public int getObjectiveTypeValue() { return objectiveType_; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ public Builder setObjectiveTypeValue(int value) { objectiveType_ = value; @@ -605,17 +605,17 @@ public Builder setObjectiveTypeValue(int value) { return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType getObjectiveType() { + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType result = flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public Builder setObjectiveType(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective.HPOJobObjectiveType value) { + public Builder setObjectiveType(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) { if (value == null) { throw new NullPointerException(); } @@ -625,7 +625,7 @@ public Builder setObjectiveType(flyteidl.plugins.sagemaker.Hpojob.HPOJobObjectiv return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType objective_type = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ public Builder clearObjectiveType() { @@ -715,41 +715,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HPOJobObjective) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) } - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobObjective) - private static final flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective getDefaultInstance() { + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public HPOJobObjective parsePartialFrom( + public HyperparameterTuningObjective parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new HPOJobObjective(input, extensionRegistry); + return new HyperparameterTuningObjective(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.plugins.sagemaker.Hpojob.HPOJobObjective getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -759,22 +759,12 @@ public interface HPOJobOrBuilder extends // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJob) com.google.protobuf.MessageOrBuilder { - /** - * int64 max_number_of_training_jobs = 1; - */ - long getMaxNumberOfTrainingJobs(); - - /** - * int64 max_parallel_training_jobs = 2; - */ - long getMaxParallelTrainingJobs(); - /** *
      * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
      * 
* - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ boolean hasTrainingJob(); /** @@ -782,17 +772,27 @@ public interface HPOJobOrBuilder extends * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob(); /** *
      * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
      * 
* - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder(); + + /** + * int64 max_number_of_training_jobs = 2; + */ + long getMaxNumberOfTrainingJobs(); + + /** + * int64 max_parallel_training_jobs = 3; + */ + long getMaxParallelTrainingJobs(); } /** * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJob} @@ -833,22 +833,12 @@ private HPOJob( case 0: done = true; break; - case 8: { - - maxNumberOfTrainingJobs_ = input.readInt64(); - break; - } - case 16: { - - maxParallelTrainingJobs_ = input.readInt64(); - break; - } - case 26: { - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder subBuilder = null; + case 10: { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder subBuilder = null; if (trainingJob_ != null) { subBuilder = trainingJob_.toBuilder(); } - trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.parser(), extensionRegistry); + trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(trainingJob_); trainingJob_ = subBuilder.buildPartial(); @@ -856,6 +846,16 @@ private HPOJob( break; } + case 16: { + + maxNumberOfTrainingJobs_ = input.readInt64(); + break; + } + case 24: { + + maxParallelTrainingJobs_ = input.readInt64(); + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -877,43 +877,25 @@ private HPOJob( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Hpojob.HPOJob.class, flyteidl.plugins.sagemaker.Hpojob.HPOJob.Builder.class); - } - - public static final int MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER = 1; - private long maxNumberOfTrainingJobs_; - /** - * int64 max_number_of_training_jobs = 1; - */ - public long getMaxNumberOfTrainingJobs() { - return maxNumberOfTrainingJobs_; - } - - public static final int MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER = 2; - private long maxParallelTrainingJobs_; - /** - * int64 max_parallel_training_jobs = 2; - */ - public long getMaxParallelTrainingJobs() { - return maxParallelTrainingJobs_; + flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class); } - public static final int TRAINING_JOB_FIELD_NUMBER = 3; - private flyteidl.plugins.sagemaker.Trainingjob.TrainingJob trainingJob_; + public static final int TRAINING_JOB_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; /** *
      * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
      * 
* - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ public boolean hasTrainingJob() { return trainingJob_ != null; @@ -923,22 +905,40 @@ public boolean hasTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() { - return trainingJob_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_; + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { + return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; } /** *
      * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
      * 
* - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { return getTrainingJob(); } + public static final int MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER = 2; + private long maxNumberOfTrainingJobs_; + /** + * int64 max_number_of_training_jobs = 2; + */ + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; + } + + public static final int MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER = 3; + private long maxParallelTrainingJobs_; + /** + * int64 max_parallel_training_jobs = 3; + */ + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -953,14 +953,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (trainingJob_ != null) { + output.writeMessage(1, getTrainingJob()); + } if (maxNumberOfTrainingJobs_ != 0L) { - output.writeInt64(1, maxNumberOfTrainingJobs_); + output.writeInt64(2, maxNumberOfTrainingJobs_); } if (maxParallelTrainingJobs_ != 0L) { - output.writeInt64(2, maxParallelTrainingJobs_); - } - if (trainingJob_ != null) { - output.writeMessage(3, getTrainingJob()); + output.writeInt64(3, maxParallelTrainingJobs_); } unknownFields.writeTo(output); } @@ -971,17 +971,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (maxNumberOfTrainingJobs_ != 0L) { + if (trainingJob_ != null) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, maxNumberOfTrainingJobs_); + .computeMessageSize(1, getTrainingJob()); } - if (maxParallelTrainingJobs_ != 0L) { + if (maxNumberOfTrainingJobs_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxParallelTrainingJobs_); + .computeInt64Size(2, maxNumberOfTrainingJobs_); } - if (trainingJob_ != null) { + if (maxParallelTrainingJobs_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTrainingJob()); + .computeInt64Size(3, maxParallelTrainingJobs_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -993,20 +993,20 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.Hpojob.HPOJob)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJob)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.Hpojob.HPOJob other = (flyteidl.plugins.sagemaker.Hpojob.HPOJob) obj; + flyteidl.plugins.sagemaker.HpoJob.HPOJob other = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) obj; - if (getMaxNumberOfTrainingJobs() - != other.getMaxNumberOfTrainingJobs()) return false; - if (getMaxParallelTrainingJobs() - != other.getMaxParallelTrainingJobs()) return false; if (hasTrainingJob() != other.hasTrainingJob()) return false; if (hasTrainingJob()) { if (!getTrainingJob() .equals(other.getTrainingJob())) return false; } + if (getMaxNumberOfTrainingJobs() + != other.getMaxNumberOfTrainingJobs()) return false; + if (getMaxParallelTrainingJobs() + != other.getMaxParallelTrainingJobs()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1018,84 +1018,84 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTrainingJob()) { + hash = (37 * hash) + TRAINING_JOB_FIELD_NUMBER; + hash = (53 * hash) + getTrainingJob().hashCode(); + } hash = (37 * hash) + MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxNumberOfTrainingJobs()); hash = (37 * hash) + MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxParallelTrainingJobs()); - if (hasTrainingJob()) { - hash = (37 * hash) + TRAINING_JOB_FIELD_NUMBER; - hash = (53 * hash) + getTrainingJob().hashCode(); - } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.Hpojob.HPOJob parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1108,7 +1108,7 @@ public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.Hpojob.HPOJob prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HPOJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1129,21 +1129,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJob) - flyteidl.plugins.sagemaker.Hpojob.HPOJobOrBuilder { + flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Hpojob.HPOJob.class, flyteidl.plugins.sagemaker.Hpojob.HPOJob.Builder.class); + flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.Hpojob.HPOJob.newBuilder() + // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJob.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1161,33 +1161,33 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - maxNumberOfTrainingJobs_ = 0L; - - maxParallelTrainingJobs_ = 0L; - if (trainingJobBuilder_ == null) { trainingJob_ = null; } else { trainingJob_ = null; trainingJobBuilder_ = null; } + maxNumberOfTrainingJobs_ = 0L; + + maxParallelTrainingJobs_ = 0L; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Hpojob.HPOJob.getDefaultInstance(); + public flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.Hpojob.HPOJob build() { - flyteidl.plugins.sagemaker.Hpojob.HPOJob result = buildPartial(); + public flyteidl.plugins.sagemaker.HpoJob.HPOJob build() { + flyteidl.plugins.sagemaker.HpoJob.HPOJob result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1195,15 +1195,15 @@ public flyteidl.plugins.sagemaker.Hpojob.HPOJob build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Hpojob.HPOJob buildPartial() { - flyteidl.plugins.sagemaker.Hpojob.HPOJob result = new flyteidl.plugins.sagemaker.Hpojob.HPOJob(this); - result.maxNumberOfTrainingJobs_ = maxNumberOfTrainingJobs_; - result.maxParallelTrainingJobs_ = maxParallelTrainingJobs_; + public flyteidl.plugins.sagemaker.HpoJob.HPOJob buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HPOJob result = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(this); if (trainingJobBuilder_ == null) { result.trainingJob_ = trainingJob_; } else { result.trainingJob_ = trainingJobBuilder_.build(); } + result.maxNumberOfTrainingJobs_ = maxNumberOfTrainingJobs_; + result.maxParallelTrainingJobs_ = maxParallelTrainingJobs_; onBuilt(); return result; } @@ -1242,25 +1242,25 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.Hpojob.HPOJob) { - return mergeFrom((flyteidl.plugins.sagemaker.Hpojob.HPOJob)other); + if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJob) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJob)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.Hpojob.HPOJob other) { - if (other == flyteidl.plugins.sagemaker.Hpojob.HPOJob.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJob other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance()) return this; + if (other.hasTrainingJob()) { + mergeTrainingJob(other.getTrainingJob()); + } if (other.getMaxNumberOfTrainingJobs() != 0L) { setMaxNumberOfTrainingJobs(other.getMaxNumberOfTrainingJobs()); } if (other.getMaxParallelTrainingJobs() != 0L) { setMaxParallelTrainingJobs(other.getMaxParallelTrainingJobs()); } - if (other.hasTrainingJob()) { - mergeTrainingJob(other.getTrainingJob()); - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1276,11 +1276,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.Hpojob.HPOJob parsedMessage = null; + flyteidl.plugins.sagemaker.HpoJob.HPOJob parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Hpojob.HPOJob) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1290,67 +1290,15 @@ public Builder mergeFrom( return this; } - private long maxNumberOfTrainingJobs_ ; - /** - * int64 max_number_of_training_jobs = 1; - */ - public long getMaxNumberOfTrainingJobs() { - return maxNumberOfTrainingJobs_; - } - /** - * int64 max_number_of_training_jobs = 1; - */ - public Builder setMaxNumberOfTrainingJobs(long value) { - - maxNumberOfTrainingJobs_ = value; - onChanged(); - return this; - } - /** - * int64 max_number_of_training_jobs = 1; - */ - public Builder clearMaxNumberOfTrainingJobs() { - - maxNumberOfTrainingJobs_ = 0L; - onChanged(); - return this; - } - - private long maxParallelTrainingJobs_ ; - /** - * int64 max_parallel_training_jobs = 2; - */ - public long getMaxParallelTrainingJobs() { - return maxParallelTrainingJobs_; - } - /** - * int64 max_parallel_training_jobs = 2; - */ - public Builder setMaxParallelTrainingJobs(long value) { - - maxParallelTrainingJobs_ = value; - onChanged(); - return this; - } - /** - * int64 max_parallel_training_jobs = 2; - */ - public Builder clearMaxParallelTrainingJobs() { - - maxParallelTrainingJobs_ = 0L; - onChanged(); - return this; - } - - private flyteidl.plugins.sagemaker.Trainingjob.TrainingJob trainingJob_; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder> trainingJobBuilder_; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> trainingJobBuilder_; /** *
        * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
        * 
* - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ public boolean hasTrainingJob() { return trainingJobBuilder_ != null || trainingJob_ != null; @@ -1360,11 +1308,11 @@ public boolean hasTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { if (trainingJobBuilder_ == null) { - return trainingJob_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_; + return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; } else { return trainingJobBuilder_.getMessage(); } @@ -1374,9 +1322,9 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public Builder setTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob value) { + public Builder setTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { if (trainingJobBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1394,10 +1342,10 @@ public Builder setTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ public Builder setTrainingJob( - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder builderForValue) { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder builderForValue) { if (trainingJobBuilder_ == null) { trainingJob_ = builderForValue.build(); onChanged(); @@ -1412,13 +1360,13 @@ public Builder setTrainingJob( * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob value) { + public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { if (trainingJobBuilder_ == null) { if (trainingJob_ != null) { trainingJob_ = - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); } else { trainingJob_ = value; } @@ -1434,7 +1382,7 @@ public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJ * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ public Builder clearTrainingJob() { if (trainingJobBuilder_ == null) { @@ -1452,9 +1400,9 @@ public Builder clearTrainingJob() { * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder getTrainingJobBuilder() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder getTrainingJobBuilder() { onChanged(); return getTrainingJobFieldBuilder().getBuilder(); @@ -1464,14 +1412,14 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder getTrainingJob * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { if (trainingJobBuilder_ != null) { return trainingJobBuilder_.getMessageOrBuilder(); } else { return trainingJob_ == null ? - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; } } /** @@ -1479,14 +1427,14 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJo * TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! * * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 3; + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder> + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> getTrainingJobFieldBuilder() { if (trainingJobBuilder_ == null) { trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder>( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder>( getTrainingJob(), getParentForChildren(), isClean()); @@ -1494,6 +1442,58 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJo } return trainingJobBuilder_; } + + private long maxNumberOfTrainingJobs_ ; + /** + * int64 max_number_of_training_jobs = 2; + */ + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; + } + /** + * int64 max_number_of_training_jobs = 2; + */ + public Builder setMaxNumberOfTrainingJobs(long value) { + + maxNumberOfTrainingJobs_ = value; + onChanged(); + return this; + } + /** + * int64 max_number_of_training_jobs = 2; + */ + public Builder clearMaxNumberOfTrainingJobs() { + + maxNumberOfTrainingJobs_ = 0L; + onChanged(); + return this; + } + + private long maxParallelTrainingJobs_ ; + /** + * int64 max_parallel_training_jobs = 3; + */ + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; + } + /** + * int64 max_parallel_training_jobs = 3; + */ + public Builder setMaxParallelTrainingJobs(long value) { + + maxParallelTrainingJobs_ = value; + onChanged(); + return this; + } + /** + * int64 max_parallel_training_jobs = 3; + */ + public Builder clearMaxParallelTrainingJobs() { + + maxParallelTrainingJobs_ = 0L; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1511,12 +1511,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) - private static final flyteidl.plugins.sagemaker.Hpojob.HPOJob DEFAULT_INSTANCE; + private static final flyteidl.plugins.sagemaker.HpoJob.HPOJob DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Hpojob.HPOJob(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(); } - public static flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstance() { + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1541,74 +1541,1274 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable; + public interface HPOJobConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJobConfig) + com.google.protobuf.MessageOrBuilder { - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + boolean hasHyperparameterRanges(); + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges(); + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + int getTuningStrategyValue(); + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy(); + + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + boolean hasTuningObjective(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + int getTrainingJobEarlyStoppingTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType(); } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'flyteidl/plugins/sagemaker/hpojob.prot" + - "o\022\032flyteidl.plugins.sagemaker\0320flyteidl/" + - "plugins/sagemaker/parameterranges.proto\032" + - ",flyteidl/plugins/sagemaker/trainingjob." + - "proto\"\262\001\n\017HPOJobObjective\022W\n\016objective_t" + - "ype\030\001 \001(\0162?.flyteidl.plugins.sagemaker.H" + - "POJobObjective.HPOJobObjectiveType\022\023\n\013me" + - "tric_name\030\002 \001(\t\"1\n\023HPOJobObjectiveType\022\014" + - "\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\220\001\n\006HPOJob\022#\n" + - "\033max_number_of_training_jobs\030\001 \001(\003\022\"\n\032ma" + - "x_parallel_training_jobs\030\002 \001(\003\022=\n\014traini" + - "ng_job\030\003 \001(\0132\'.flyteidl.plugins.sagemake" + - "r.TrainingJobB5Z3github.com/lyft/flyteid" + - "l/gen/pb-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.plugins.sagemaker.Parameterranges.getDescriptor(), - flyteidl.plugins.sagemaker.Trainingjob.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_HPOJobObjective_descriptor, - new java.lang.String[] { "ObjectiveType", "MetricName", }); - internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor = + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobConfig} + */ + public static final class HPOJobConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJobConfig) + HPOJobConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use HPOJobConfig.newBuilder() to construct. + private HPOJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HPOJobConfig() { + tuningStrategy_ = 0; + trainingJobEarlyStoppingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HPOJobConfig( + 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: { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder subBuilder = null; + if (hyperparameterRanges_ != null) { + subBuilder = hyperparameterRanges_.toBuilder(); + } + hyperparameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hyperparameterRanges_); + hyperparameterRanges_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + tuningStrategy_ = rawValue; + break; + } + case 26: { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder subBuilder = null; + if (tuningObjective_ != null) { + subBuilder = tuningObjective_.toBuilder(); + } + tuningObjective_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tuningObjective_); + tuningObjective_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + trainingJobEarlyStoppingType_ = rawValue; + 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy} + */ + public enum HyperparameterTuningStrategy + implements com.google.protobuf.ProtocolMessageEnum { + /** + * BAYESIAN = 0; + */ + BAYESIAN(0), + UNRECOGNIZED(-1), + ; + + /** + * BAYESIAN = 0; + */ + public static final int BAYESIAN_VALUE = 0; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HyperparameterTuningStrategy valueOf(int value) { + return forNumber(value); + } + + public static HyperparameterTuningStrategy forNumber(int value) { + switch (value) { + case 0: return BAYESIAN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HyperparameterTuningStrategy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HyperparameterTuningStrategy findValueByNumber(int number) { + return HyperparameterTuningStrategy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final HyperparameterTuningStrategy[] VALUES = values(); + + public static HyperparameterTuningStrategy 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 HyperparameterTuningStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy) + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType} + */ + public enum TrainingJobEarlyStoppingType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * OFF = 0; + */ + OFF(0), + /** + * AUTO = 1; + */ + AUTO(1), + UNRECOGNIZED(-1), + ; + + /** + * OFF = 0; + */ + public static final int OFF_VALUE = 0; + /** + * AUTO = 1; + */ + public static final int AUTO_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TrainingJobEarlyStoppingType valueOf(int value) { + return forNumber(value); + } + + public static TrainingJobEarlyStoppingType forNumber(int value) { + switch (value) { + case 0: return OFF; + case 1: return AUTO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TrainingJobEarlyStoppingType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TrainingJobEarlyStoppingType findValueByNumber(int number) { + return TrainingJobEarlyStoppingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final TrainingJobEarlyStoppingType[] VALUES = values(); + + public static TrainingJobEarlyStoppingType 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 TrainingJobEarlyStoppingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType) + } + + public static final int HYPERPARAMETER_RANGES_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_; + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public boolean hasHyperparameterRanges() { + return hyperparameterRanges_ != null; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { + return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { + return getHyperparameterRanges(); + } + + public static final int TUNING_STRATEGY_FIELD_NUMBER = 2; + private int tuningStrategy_; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public int getTuningStrategyValue() { + return tuningStrategy_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result; + } + + public static final int TUNING_OBJECTIVE_FIELD_NUMBER = 3; + private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public boolean hasTuningObjective() { + return tuningObjective_ != null; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() { + return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { + return getTuningObjective(); + } + + public static final int TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER = 4; + private int trainingJobEarlyStoppingType_; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public int getTrainingJobEarlyStoppingTypeValue() { + return trainingJobEarlyStoppingType_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; + } + + 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 (hyperparameterRanges_ != null) { + output.writeMessage(1, getHyperparameterRanges()); + } + if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { + output.writeEnum(2, tuningStrategy_); + } + if (tuningObjective_ != null) { + output.writeMessage(3, getTuningObjective()); + } + if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) { + output.writeEnum(4, trainingJobEarlyStoppingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hyperparameterRanges_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHyperparameterRanges()); + } + if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, tuningStrategy_); + } + if (tuningObjective_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTuningObjective()); + } + if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, trainingJobEarlyStoppingType_); + } + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) obj; + + if (hasHyperparameterRanges() != other.hasHyperparameterRanges()) return false; + if (hasHyperparameterRanges()) { + if (!getHyperparameterRanges() + .equals(other.getHyperparameterRanges())) return false; + } + if (tuningStrategy_ != other.tuningStrategy_) return false; + if (hasTuningObjective() != other.hasTuningObjective()) return false; + if (hasTuningObjective()) { + if (!getTuningObjective() + .equals(other.getTuningObjective())) return false; + } + if (trainingJobEarlyStoppingType_ != other.trainingJobEarlyStoppingType_) 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 (hasHyperparameterRanges()) { + hash = (37 * hash) + HYPERPARAMETER_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getHyperparameterRanges().hashCode(); + } + hash = (37 * hash) + TUNING_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + tuningStrategy_; + if (hasTuningObjective()) { + hash = (37 * hash) + TUNING_OBJECTIVE_FIELD_NUMBER; + hash = (53 * hash) + getTuningObjective().hashCode(); + } + hash = (37 * hash) + TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + trainingJobEarlyStoppingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HPOJobConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobConfig) + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.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 (hyperparameterRangesBuilder_ == null) { + hyperparameterRanges_ = null; + } else { + hyperparameterRanges_ = null; + hyperparameterRangesBuilder_ = null; + } + tuningStrategy_ = 0; + + if (tuningObjectiveBuilder_ == null) { + tuningObjective_ = null; + } else { + tuningObjective_ = null; + tuningObjectiveBuilder_ = null; + } + trainingJobEarlyStoppingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig build() { + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(this); + if (hyperparameterRangesBuilder_ == null) { + result.hyperparameterRanges_ = hyperparameterRanges_; + } else { + result.hyperparameterRanges_ = hyperparameterRangesBuilder_.build(); + } + result.tuningStrategy_ = tuningStrategy_; + if (tuningObjectiveBuilder_ == null) { + result.tuningObjective_ = tuningObjective_; + } else { + result.tuningObjective_ = tuningObjectiveBuilder_.build(); + } + result.trainingJobEarlyStoppingType_ = trainingJobEarlyStoppingType_; + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance()) return this; + if (other.hasHyperparameterRanges()) { + mergeHyperparameterRanges(other.getHyperparameterRanges()); + } + if (other.tuningStrategy_ != 0) { + setTuningStrategyValue(other.getTuningStrategyValue()); + } + if (other.hasTuningObjective()) { + mergeTuningObjective(other.getTuningObjective()); + } + if (other.trainingJobEarlyStoppingType_ != 0) { + setTrainingJobEarlyStoppingTypeValue(other.getTrainingJobEarlyStoppingTypeValue()); + } + 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 { + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> hyperparameterRangesBuilder_; + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public boolean hasHyperparameterRanges() { + return hyperparameterRangesBuilder_ != null || hyperparameterRanges_ != null; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { + if (hyperparameterRangesBuilder_ == null) { + return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; + } else { + return hyperparameterRangesBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { + if (hyperparameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hyperparameterRanges_ = value; + onChanged(); + } else { + hyperparameterRangesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder setHyperparameterRanges( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder builderForValue) { + if (hyperparameterRangesBuilder_ == null) { + hyperparameterRanges_ = builderForValue.build(); + onChanged(); + } else { + hyperparameterRangesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder mergeHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { + if (hyperparameterRangesBuilder_ == null) { + if (hyperparameterRanges_ != null) { + hyperparameterRanges_ = + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.newBuilder(hyperparameterRanges_).mergeFrom(value).buildPartial(); + } else { + hyperparameterRanges_ = value; + } + onChanged(); + } else { + hyperparameterRangesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder clearHyperparameterRanges() { + if (hyperparameterRangesBuilder_ == null) { + hyperparameterRanges_ = null; + onChanged(); + } else { + hyperparameterRanges_ = null; + hyperparameterRangesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder getHyperparameterRangesBuilder() { + + onChanged(); + return getHyperparameterRangesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { + if (hyperparameterRangesBuilder_ != null) { + return hyperparameterRangesBuilder_.getMessageOrBuilder(); + } else { + return hyperparameterRanges_ == null ? + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; + } + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> + getHyperparameterRangesFieldBuilder() { + if (hyperparameterRangesBuilder_ == null) { + hyperparameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder>( + getHyperparameterRanges(), + getParentForChildren(), + isClean()); + hyperparameterRanges_ = null; + } + return hyperparameterRangesBuilder_; + } + + private int tuningStrategy_ = 0; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public int getTuningStrategyValue() { + return tuningStrategy_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public Builder setTuningStrategyValue(int value) { + tuningStrategy_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + + tuningStrategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public Builder clearTuningStrategy() { + + tuningStrategy_ = 0; + onChanged(); + return this; + } + + private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> tuningObjectiveBuilder_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public boolean hasTuningObjective() { + return tuningObjectiveBuilder_ != null || tuningObjective_ != null; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() { + if (tuningObjectiveBuilder_ == null) { + return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; + } else { + return tuningObjectiveBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder setTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) { + if (tuningObjectiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tuningObjective_ = value; + onChanged(); + } else { + tuningObjectiveBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder setTuningObjective( + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder builderForValue) { + if (tuningObjectiveBuilder_ == null) { + tuningObjective_ = builderForValue.build(); + onChanged(); + } else { + tuningObjectiveBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) { + if (tuningObjectiveBuilder_ == null) { + if (tuningObjective_ != null) { + tuningObjective_ = + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder(tuningObjective_).mergeFrom(value).buildPartial(); + } else { + tuningObjective_ = value; + } + onChanged(); + } else { + tuningObjectiveBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder clearTuningObjective() { + if (tuningObjectiveBuilder_ == null) { + tuningObjective_ = null; + onChanged(); + } else { + tuningObjective_ = null; + tuningObjectiveBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder getTuningObjectiveBuilder() { + + onChanged(); + return getTuningObjectiveFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { + if (tuningObjectiveBuilder_ != null) { + return tuningObjectiveBuilder_.getMessageOrBuilder(); + } else { + return tuningObjective_ == null ? + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; + } + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> + getTuningObjectiveFieldBuilder() { + if (tuningObjectiveBuilder_ == null) { + tuningObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder>( + getTuningObjective(), + getParentForChildren(), + isClean()); + tuningObjective_ = null; + } + return tuningObjectiveBuilder_; + } + + private int trainingJobEarlyStoppingType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public int getTrainingJobEarlyStoppingTypeValue() { + return trainingJobEarlyStoppingType_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public Builder setTrainingJobEarlyStoppingTypeValue(int value) { + trainingJobEarlyStoppingType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType value) { + if (value == null) { + throw new NullPointerException(); + } + + trainingJobEarlyStoppingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public Builder clearTrainingJobEarlyStoppingType() { + + trainingJobEarlyStoppingType_ = 0; + 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:flyteidl.plugins.sagemaker.HPOJobConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) + private static final flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(); + } + + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HPOJobConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HPOJobConfig(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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_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(flyteidl/plugins/sagemaker/hpo_job.pro" + + "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" + + "/plugins/sagemaker/parameter_ranges.prot" + + "o\032-flyteidl/plugins/sagemaker/training_j" + + "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" + + "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" + + "ugins.sagemaker.HyperparameterTuningObje" + + "ctive.HyperparameterTuningObjectiveType\022" + + "\023\n\013metric_name\030\002 \001(\t\"?\n!HyperparameterTu" + + "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" + + "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" + + ".flyteidl.plugins.sagemaker.TrainingJob\022" + + "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" + + "max_parallel_training_jobs\030\003 \001(\003\"\341\003\n\014HPO" + + "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" + + "2+.flyteidl.plugins.sagemaker.ParameterR" + + "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" + + "l.plugins.sagemaker.HPOJobConfig.Hyperpa" + + "rameterTuningStrategy\022S\n\020tuning_objectiv" + + "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" + + "erparameterTuningObjective\022o\n training_j" + + "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." + + "plugins.sagemaker.HPOJobConfig.TrainingJ" + + "obEarlyStoppingType\",\n\034HyperparameterTun" + + "ingStrategy\022\014\n\010BAYESIAN\020\000\"1\n\034TrainingJob" + + "EarlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001B5Z3" + + "github.com/lyft/flyteidl/gen/pb-go/flyte" + + "idl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(), + flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor, + new java.lang.String[] { "ObjectiveType", "MetricName", }); + internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor, - new java.lang.String[] { "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", "TrainingJob", }); - flyteidl.plugins.sagemaker.Parameterranges.getDescriptor(); - flyteidl.plugins.sagemaker.Trainingjob.getDescriptor(); + new java.lang.String[] { "TrainingJob", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", }); + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor, + new java.lang.String[] { "HyperparameterRanges", "TuningStrategy", "TuningObjective", "TrainingJobEarlyStoppingType", }); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java similarity index 74% rename from gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java rename to gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java index 7ff2be48e..85e2b73f0 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/parameterranges.proto +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto package flyteidl.plugins.sagemaker; -public final class Parameterranges { - private Parameterranges() {} +public final class ParameterRangesOuterClass { + private ParameterRangesOuterClass() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -104,7 +104,7 @@ public HyperparameterScalingType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Parameterranges.getDescriptor().getEnumTypes().get(0); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor().getEnumTypes().get(0); } private static final HyperparameterScalingType[] VALUES = values(); @@ -151,7 +151,7 @@ public interface ContinuousParameterRangeOrBuilder extends /** * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ - flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType(); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); } /** * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} @@ -230,15 +230,15 @@ private ContinuousParameterRange( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder.class); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class); } public static final int MAX_VALUE_FIELD_NUMBER = 1; @@ -270,10 +270,10 @@ public int getScalingTypeValue() { /** * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ - public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -296,7 +296,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (minValue_ != 0D) { output.writeDouble(2, minValue_); } - if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { output.writeEnum(3, scalingType_); } unknownFields.writeTo(output); @@ -316,7 +316,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, minValue_); } - if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, scalingType_); } @@ -330,10 +330,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) obj; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) obj; if (java.lang.Double.doubleToLongBits(getMaxValue()) != java.lang.Double.doubleToLongBits( @@ -366,69 +366,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -441,7 +441,7 @@ public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRang public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -462,21 +462,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder.class); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.newBuilder() + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -506,17 +506,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange build() { - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange result = buildPartial(); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -524,8 +524,8 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange build } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange buildPartial() { - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange(this); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(this); result.maxValue_ = maxValue_; result.minValue_ = minValue_; result.scalingType_ = scalingType_; @@ -567,16 +567,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) { - return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange)other); + if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange other) { - if (other == flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) return this; if (other.getMaxValue() != 0D) { setMaxValue(other.getMaxValue()); } @@ -601,11 +601,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parsedMessage = null; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -685,15 +685,15 @@ public Builder setScalingTypeValue(int value) { /** * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ - public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; } /** * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ - public Builder setScalingType(flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType value) { + public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) { if (value == null) { throw new NullPointerException(); } @@ -728,12 +728,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) - private static final flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange DEFAULT_INSTANCE; + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(); } - public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getDefaultInstance() { + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -758,7 +758,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -785,7 +785,7 @@ public interface IntegerParameterRangeOrBuilder extends /** * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ - flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType(); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); } /** * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} @@ -864,15 +864,15 @@ private IntegerParameterRange( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder.class); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class); } public static final int MAX_VALUE_FIELD_NUMBER = 1; @@ -904,10 +904,10 @@ public int getScalingTypeValue() { /** * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ - public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -930,7 +930,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (minValue_ != 0L) { output.writeInt64(2, minValue_); } - if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { output.writeEnum(3, scalingType_); } unknownFields.writeTo(output); @@ -950,7 +950,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, minValue_); } - if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, scalingType_); } @@ -964,10 +964,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange other = (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) obj; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) obj; if (getMaxValue() != other.getMaxValue()) return false; @@ -998,69 +998,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1073,7 +1073,7 @@ public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange p public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1094,21 +1094,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder.class); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.newBuilder() + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1138,17 +1138,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange build() { - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange result = buildPartial(); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1156,8 +1156,8 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange build() } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange buildPartial() { - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange result = new flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange(this); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(this); result.maxValue_ = maxValue_; result.minValue_ = minValue_; result.scalingType_ = scalingType_; @@ -1199,16 +1199,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) { - return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange)other); + if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange other) { - if (other == flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) return this; if (other.getMaxValue() != 0L) { setMaxValue(other.getMaxValue()); } @@ -1233,11 +1233,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parsedMessage = null; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1317,15 +1317,15 @@ public Builder setScalingTypeValue(int value) { /** * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ - public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; } /** * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; */ - public Builder setScalingType(flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType value) { + public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) { if (value == null) { throw new NullPointerException(); } @@ -1360,12 +1360,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) - private static final flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange DEFAULT_INSTANCE; + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(); } - public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getDefaultInstance() { + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1390,7 +1390,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1492,15 +1492,15 @@ private CategoricalParameterRange( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder.class); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; @@ -1576,10 +1576,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) obj; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) obj; if (!getValuesList() .equals(other.getValuesList())) return false; @@ -1603,69 +1603,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1678,7 +1678,7 @@ public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRan public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1699,21 +1699,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder.class); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.newBuilder() + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1739,17 +1739,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange build() { - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange result = buildPartial(); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1757,8 +1757,8 @@ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange buil } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange buildPartial() { - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange(this); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); @@ -1803,16 +1803,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) { - return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange)other); + if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange other) { - if (other == flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) return this; if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; @@ -1838,11 +1838,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parsedMessage = null; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1963,12 +1963,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) - private static final flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange DEFAULT_INSTANCE; + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(); } - public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getDefaultInstance() { + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1993,7 +1993,7 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2010,11 +2010,11 @@ public interface ParameterRangeOneOfOrBuilder extends /** * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange(); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange(); /** * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder(); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder(); /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; @@ -2023,11 +2023,11 @@ public interface ParameterRangeOneOfOrBuilder extends /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange(); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange(); /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder(); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder(); /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; @@ -2036,13 +2036,13 @@ public interface ParameterRangeOneOfOrBuilder extends /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange(); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange(); /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder(); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder(); - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.ParameterRangeTypeCase getParameterRangeTypeCase(); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.ParameterRangeTypeCase getParameterRangeTypeCase(); } /** * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf} @@ -2084,42 +2084,42 @@ private ParameterRangeOneOf( done = true; break; case 10: { - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder subBuilder = null; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder subBuilder = null; if (parameterRangeTypeCase_ == 1) { - subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_).toBuilder(); + subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_).toBuilder(); } parameterRangeType_ = - input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.parser(), extensionRegistry); + input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_); + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); parameterRangeType_ = subBuilder.buildPartial(); } parameterRangeTypeCase_ = 1; break; } case 18: { - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder subBuilder = null; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder subBuilder = null; if (parameterRangeTypeCase_ == 2) { - subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_).toBuilder(); + subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_).toBuilder(); } parameterRangeType_ = - input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.parser(), extensionRegistry); + input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_); + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); parameterRangeType_ = subBuilder.buildPartial(); } parameterRangeTypeCase_ = 2; break; } case 26: { - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder subBuilder = null; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder subBuilder = null; if (parameterRangeTypeCase_ == 3) { - subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_).toBuilder(); + subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_).toBuilder(); } parameterRangeType_ = - input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.parser(), extensionRegistry); + input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_); + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); parameterRangeType_ = subBuilder.buildPartial(); } parameterRangeTypeCase_ = 3; @@ -2146,15 +2146,15 @@ private ParameterRangeOneOf( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.Builder.class); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class); } private int parameterRangeTypeCase_ = 0; @@ -2207,20 +2207,20 @@ public boolean hasContinuousParameterRange() { /** * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ - public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() { if (parameterRangeTypeCase_ == 1) { - return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_; + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; } - return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); } /** * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ - public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { if (parameterRangeTypeCase_ == 1) { - return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_; + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; } - return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); } public static final int INTEGER_PARAMETER_RANGE_FIELD_NUMBER = 2; @@ -2233,20 +2233,20 @@ public boolean hasIntegerParameterRange() { /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ - public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() { if (parameterRangeTypeCase_ == 2) { - return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_; + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; } - return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); } /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ - public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { if (parameterRangeTypeCase_ == 2) { - return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_; + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; } - return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); } public static final int CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER = 3; @@ -2259,20 +2259,20 @@ public boolean hasCategoricalParameterRange() { /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ - public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() { if (parameterRangeTypeCase_ == 3) { - return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_; + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; } - return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); } /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ - public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { if (parameterRangeTypeCase_ == 3) { - return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_; + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; } - return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -2290,13 +2290,13 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (parameterRangeTypeCase_ == 1) { - output.writeMessage(1, (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_); + output.writeMessage(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); } if (parameterRangeTypeCase_ == 2) { - output.writeMessage(2, (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_); + output.writeMessage(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); } if (parameterRangeTypeCase_ == 3) { - output.writeMessage(3, (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_); + output.writeMessage(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); } unknownFields.writeTo(output); } @@ -2309,15 +2309,15 @@ public int getSerializedSize() { size = 0; if (parameterRangeTypeCase_ == 1) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_); + .computeMessageSize(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); } if (parameterRangeTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_); + .computeMessageSize(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); } if (parameterRangeTypeCase_ == 3) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_); + .computeMessageSize(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2329,10 +2329,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf other = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf) obj; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) obj; if (!getParameterRangeTypeCase().equals(other.getParameterRangeTypeCase())) return false; switch (parameterRangeTypeCase_) { @@ -2383,69 +2383,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2458,7 +2458,7 @@ public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf par public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2479,21 +2479,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOfOrBuilder { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOfOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.Builder.class); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.newBuilder() + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2519,17 +2519,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance(); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf build() { - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf result = buildPartial(); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2537,8 +2537,8 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf buildPartial() { - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf result = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf(this); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(this); if (parameterRangeTypeCase_ == 1) { if (continuousParameterRangeBuilder_ == null) { result.parameterRangeType_ = parameterRangeType_; @@ -2599,16 +2599,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf) { - return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf)other); + if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf other) { - if (other == flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()) return this; switch (other.getParameterRangeTypeCase()) { case CONTINUOUS_PARAMETER_RANGE: { mergeContinuousParameterRange(other.getContinuousParameterRange()); @@ -2641,11 +2641,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parsedMessage = null; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2671,7 +2671,7 @@ public Builder clearParameterRangeType() { private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder> continuousParameterRangeBuilder_; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> continuousParameterRangeBuilder_; /** * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ @@ -2681,23 +2681,23 @@ public boolean hasContinuousParameterRange() { /** * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ - public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() { if (continuousParameterRangeBuilder_ == null) { if (parameterRangeTypeCase_ == 1) { - return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_; + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; } - return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); } else { if (parameterRangeTypeCase_ == 1) { return continuousParameterRangeBuilder_.getMessage(); } - return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); } } /** * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ - public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange value) { + public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) { if (continuousParameterRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2714,7 +2714,7 @@ public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterr * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ public Builder setContinuousParameterRange( - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder builderForValue) { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder builderForValue) { if (continuousParameterRangeBuilder_ == null) { parameterRangeType_ = builderForValue.build(); onChanged(); @@ -2727,11 +2727,11 @@ public Builder setContinuousParameterRange( /** * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ - public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange value) { + public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) { if (continuousParameterRangeBuilder_ == null) { if (parameterRangeTypeCase_ == 1 && - parameterRangeType_ != flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance()) { - parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_) + parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_) .mergeFrom(value).buildPartial(); } else { parameterRangeType_ = value; @@ -2768,35 +2768,35 @@ public Builder clearContinuousParameterRange() { /** * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ - public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder getContinuousParameterRangeBuilder() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder getContinuousParameterRangeBuilder() { return getContinuousParameterRangeFieldBuilder().getBuilder(); } /** * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ - public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { if ((parameterRangeTypeCase_ == 1) && (continuousParameterRangeBuilder_ != null)) { return continuousParameterRangeBuilder_.getMessageOrBuilder(); } else { if (parameterRangeTypeCase_ == 1) { - return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_; + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; } - return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); } } /** * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder> + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> getContinuousParameterRangeFieldBuilder() { if (continuousParameterRangeBuilder_ == null) { if (!(parameterRangeTypeCase_ == 1)) { - parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); } continuousParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder>( - (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_, getParentForChildren(), isClean()); parameterRangeType_ = null; @@ -2807,7 +2807,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuil } private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder> integerParameterRangeBuilder_; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> integerParameterRangeBuilder_; /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ @@ -2817,23 +2817,23 @@ public boolean hasIntegerParameterRange() { /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ - public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() { if (integerParameterRangeBuilder_ == null) { if (parameterRangeTypeCase_ == 2) { - return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_; + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; } - return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); } else { if (parameterRangeTypeCase_ == 2) { return integerParameterRangeBuilder_.getMessage(); } - return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); } } /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ - public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange value) { + public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) { if (integerParameterRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2850,7 +2850,7 @@ public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterrang * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ public Builder setIntegerParameterRange( - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder builderForValue) { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder builderForValue) { if (integerParameterRangeBuilder_ == null) { parameterRangeType_ = builderForValue.build(); onChanged(); @@ -2863,11 +2863,11 @@ public Builder setIntegerParameterRange( /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ - public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange value) { + public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) { if (integerParameterRangeBuilder_ == null) { if (parameterRangeTypeCase_ == 2 && - parameterRangeType_ != flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance()) { - parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_) + parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_) .mergeFrom(value).buildPartial(); } else { parameterRangeType_ = value; @@ -2904,35 +2904,35 @@ public Builder clearIntegerParameterRange() { /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ - public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder getIntegerParameterRangeBuilder() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder getIntegerParameterRangeBuilder() { return getIntegerParameterRangeFieldBuilder().getBuilder(); } /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ - public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { if ((parameterRangeTypeCase_ == 2) && (integerParameterRangeBuilder_ != null)) { return integerParameterRangeBuilder_.getMessageOrBuilder(); } else { if (parameterRangeTypeCase_ == 2) { - return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_; + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; } - return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); } } /** * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder> + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> getIntegerParameterRangeFieldBuilder() { if (integerParameterRangeBuilder_ == null) { if (!(parameterRangeTypeCase_ == 2)) { - parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); } integerParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder>( - (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_, getParentForChildren(), isClean()); parameterRangeType_ = null; @@ -2943,7 +2943,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder> categoricalParameterRangeBuilder_; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> categoricalParameterRangeBuilder_; /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ @@ -2953,23 +2953,23 @@ public boolean hasCategoricalParameterRange() { /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ - public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() { if (categoricalParameterRangeBuilder_ == null) { if (parameterRangeTypeCase_ == 3) { - return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_; + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; } - return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); } else { if (parameterRangeTypeCase_ == 3) { return categoricalParameterRangeBuilder_.getMessage(); } - return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); } } /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ - public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange value) { + public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) { if (categoricalParameterRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2986,7 +2986,7 @@ public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameter * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ public Builder setCategoricalParameterRange( - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder builderForValue) { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder builderForValue) { if (categoricalParameterRangeBuilder_ == null) { parameterRangeType_ = builderForValue.build(); onChanged(); @@ -2999,11 +2999,11 @@ public Builder setCategoricalParameterRange( /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ - public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange value) { + public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) { if (categoricalParameterRangeBuilder_ == null) { if (parameterRangeTypeCase_ == 3 && - parameterRangeType_ != flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance()) { - parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_) + parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_) .mergeFrom(value).buildPartial(); } else { parameterRangeType_ = value; @@ -3040,35 +3040,35 @@ public Builder clearCategoricalParameterRange() { /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ - public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder getCategoricalParameterRangeBuilder() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder getCategoricalParameterRangeBuilder() { return getCategoricalParameterRangeFieldBuilder().getBuilder(); } /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ - public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { if ((parameterRangeTypeCase_ == 3) && (categoricalParameterRangeBuilder_ != null)) { return categoricalParameterRangeBuilder_.getMessageOrBuilder(); } else { if (parameterRangeTypeCase_ == 3) { - return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_; + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; } - return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); } } /** * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder> + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> getCategoricalParameterRangeFieldBuilder() { if (categoricalParameterRangeBuilder_ == null) { if (!(parameterRangeTypeCase_ == 3)) { - parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); } categoricalParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder>( - (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_, getParentForChildren(), isClean()); parameterRangeType_ = null; @@ -3094,12 +3094,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - private static final flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf DEFAULT_INSTANCE; + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getDefaultInstance() { + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3124,7 +3124,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3147,25 +3147,25 @@ boolean containsParameterRangeMap( * Use {@link #getParameterRangeMapMap()} instead. */ @java.lang.Deprecated - java.util.Map + java.util.Map getParameterRangeMap(); /** * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ - java.util.Map + java.util.Map getParameterRangeMapMap(); /** * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( java.lang.String key, - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf defaultValue); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue); /** * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( java.lang.String key); } /** @@ -3213,7 +3213,7 @@ private ParameterRanges( ParameterRangeMapDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } - com.google.protobuf.MapEntry + com.google.protobuf.MapEntry parameterRangeMap__ = input.readMessage( ParameterRangeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); parameterRangeMap_.getMutableMap().put( @@ -3241,7 +3241,7 @@ private ParameterRanges( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -3259,26 +3259,26 @@ protected com.google.protobuf.MapField internalGetMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder.class); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class); } public static final int PARAMETER_RANGE_MAP_FIELD_NUMBER = 1; private static final class ParameterRangeMapDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf> defaultEntry = + java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, + .newDefaultInstance( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance()); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()); } private com.google.protobuf.MapField< - java.lang.String, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf> parameterRangeMap_; - private com.google.protobuf.MapField + java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_; + private com.google.protobuf.MapField internalGetParameterRangeMap() { if (parameterRangeMap_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -3303,25 +3303,25 @@ public boolean containsParameterRangeMap( * Use {@link #getParameterRangeMapMap()} instead. */ @java.lang.Deprecated - public java.util.Map getParameterRangeMap() { + public java.util.Map getParameterRangeMap() { return getParameterRangeMapMap(); } /** * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ - public java.util.Map getParameterRangeMapMap() { + public java.util.Map getParameterRangeMapMap() { return internalGetParameterRangeMap().getMap(); } /** * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault( + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( java.lang.String key, - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf defaultValue) { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + java.util.Map map = internalGetParameterRangeMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @@ -3329,10 +3329,10 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParamet * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow( + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + java.util.Map map = internalGetParameterRangeMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); @@ -3369,9 +3369,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry + for (java.util.Map.Entry entry : internalGetParameterRangeMap().getMap().entrySet()) { - com.google.protobuf.MapEntry + com.google.protobuf.MapEntry parameterRangeMap__ = ParameterRangeMapDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) @@ -3389,10 +3389,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges other = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges) obj; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) obj; if (!internalGetParameterRangeMap().equals( other.internalGetParameterRangeMap())) return false; @@ -3416,69 +3416,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3491,7 +3491,7 @@ public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFr public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -3512,10 +3512,10 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRanges) - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -3543,12 +3543,12 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder.class); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.newBuilder() + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3573,17 +3573,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance(); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges build() { - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges result = buildPartial(); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3591,8 +3591,8 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges buildPartial() { - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges result = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges(this); + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(this); int from_bitField0_ = bitField0_; result.parameterRangeMap_ = internalGetParameterRangeMap(); result.parameterRangeMap_.makeImmutable(); @@ -3634,16 +3634,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges) { - return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges)other); + if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges other) { - if (other == flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance()) return this; internalGetMutableParameterRangeMap().mergeFrom( other.internalGetParameterRangeMap()); this.mergeUnknownFields(other.unknownFields); @@ -3661,11 +3661,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parsedMessage = null; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3677,8 +3677,8 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.MapField< - java.lang.String, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf> parameterRangeMap_; - private com.google.protobuf.MapField + java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_; + private com.google.protobuf.MapField internalGetParameterRangeMap() { if (parameterRangeMap_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -3686,7 +3686,7 @@ public Builder mergeFrom( } return parameterRangeMap_; } - private com.google.protobuf.MapField + private com.google.protobuf.MapField internalGetMutableParameterRangeMap() { onChanged();; if (parameterRangeMap_ == null) { @@ -3715,25 +3715,25 @@ public boolean containsParameterRangeMap( * Use {@link #getParameterRangeMapMap()} instead. */ @java.lang.Deprecated - public java.util.Map getParameterRangeMap() { + public java.util.Map getParameterRangeMap() { return getParameterRangeMapMap(); } /** * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ - public java.util.Map getParameterRangeMapMap() { + public java.util.Map getParameterRangeMapMap() { return internalGetParameterRangeMap().getMap(); } /** * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault( + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( java.lang.String key, - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf defaultValue) { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + java.util.Map map = internalGetParameterRangeMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @@ -3741,10 +3741,10 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParamet * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; */ - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow( + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + java.util.Map map = internalGetParameterRangeMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); @@ -3772,7 +3772,7 @@ public Builder removeParameterRangeMap( * Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map getMutableParameterRangeMap() { return internalGetMutableParameterRangeMap().getMutableMap(); } @@ -3781,7 +3781,7 @@ public Builder removeParameterRangeMap( */ public Builder putParameterRangeMap( java.lang.String key, - flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf value) { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableParameterRangeMap().getMutableMap() @@ -3793,7 +3793,7 @@ public Builder putParameterRangeMap( */ public Builder putAllParameterRangeMap( - java.util.Map values) { + java.util.Map values) { internalGetMutableParameterRangeMap().getMutableMap() .putAll(values); return this; @@ -3815,12 +3815,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) - private static final flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges DEFAULT_INSTANCE; + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(); } - public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInstance() { + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3845,7 +3845,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3890,34 +3890,34 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInst descriptor; static { java.lang.String[] descriptorData = { - "\n0flyteidl/plugins/sagemaker/parameterra" + - "nges.proto\022\032flyteidl.plugins.sagemaker\"\215" + - "\001\n\030ContinuousParameterRange\022\021\n\tmax_value" + - "\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_typ" + - "e\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hyp" + - "erparameterScalingType\"\212\001\n\025IntegerParame" + - "terRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_value" + - "\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl." + - "plugins.sagemaker.HyperparameterScalingT" + - "ype\"+\n\031CategoricalParameterRange\022\016\n\006valu" + - "es\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032cont" + - "inuous_parameter_range\030\001 \001(\01324.flyteidl." + - "plugins.sagemaker.ContinuousParameterRan" + - "geH\000\022T\n\027integer_parameter_range\030\002 \001(\01321." + - "flyteidl.plugins.sagemaker.IntegerParame" + - "terRangeH\000\022\\\n\033categorical_parameter_rang" + - "e\030\003 \001(\01325.flyteidl.plugins.sagemaker.Cat" + - "egoricalParameterRangeH\000B\026\n\024parameter_ra" + - "nge_type\"\335\001\n\017ParameterRanges\022_\n\023paramete" + - "r_range_map\030\001 \003(\0132B.flyteidl.plugins.sag" + - "emaker.ParameterRanges.ParameterRangeMap" + - "Entry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001" + - " \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins.s" + - "agemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hype" + - "rparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEA" + - "R\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHM" + - "IC\020\003B5Z3github.com/lyft/flyteidl/gen/pb-" + - "go/flyteidl/pluginsb\006proto3" + "\n1flyteidl/plugins/sagemaker/parameter_r" + + "anges.proto\022\032flyteidl.plugins.sagemaker\"" + + "\215\001\n\030ContinuousParameterRange\022\021\n\tmax_valu" + + "e\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_ty" + + "pe\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hy" + + "perparameterScalingType\"\212\001\n\025IntegerParam" + + "eterRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_valu" + + "e\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl" + + ".plugins.sagemaker.HyperparameterScaling" + + "Type\"+\n\031CategoricalParameterRange\022\016\n\006val" + + "ues\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032con" + + "tinuous_parameter_range\030\001 \001(\01324.flyteidl" + + ".plugins.sagemaker.ContinuousParameterRa" + + "ngeH\000\022T\n\027integer_parameter_range\030\002 \001(\01321" + + ".flyteidl.plugins.sagemaker.IntegerParam" + + "eterRangeH\000\022\\\n\033categorical_parameter_ran" + + "ge\030\003 \001(\01325.flyteidl.plugins.sagemaker.Ca" + + "tegoricalParameterRangeH\000B\026\n\024parameter_r" + + "ange_type\"\335\001\n\017ParameterRanges\022_\n\023paramet" + + "er_range_map\030\001 \003(\0132B.flyteidl.plugins.sa" + + "gemaker.ParameterRanges.ParameterRangeMa" + + "pEntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030" + + "\001 \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins." + + "sagemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyp" + + "erparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINE" + + "AR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITH" + + "MIC\020\003B5Z3github.com/lyft/flyteidl/gen/pb" + + "-go/flyteidl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java similarity index 51% rename from gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java rename to gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java index 704753fd6..d4a8640de 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/trainingjob.proto +// source: flyteidl/plugins/sagemaker/training_job.proto package flyteidl.plugins.sagemaker; -public final class Trainingjob { - private Trainingjob() {} +public final class TrainingJobOuterClass { + private TrainingJobOuterClass() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -14,65 +14,243 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.InputMode} + */ + public enum InputMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + * FILE = 0; + */ + FILE(0), + /** + * PIPE = 1; + */ + PIPE(1), + UNRECOGNIZED(-1), + ; + + /** + * FILE = 0; + */ + public static final int FILE_VALUE = 0; + /** + * PIPE = 1; + */ + public static final int PIPE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InputMode valueOf(int value) { + return forNumber(value); + } + + public static InputMode forNumber(int value) { + switch (value) { + case 0: return FILE; + case 1: return PIPE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + InputMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InputMode findValueByNumber(int number) { + return InputMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final InputMode[] VALUES = values(); + + public static InputMode 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 InputMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputMode) + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.AlgorithmName} + */ + public enum AlgorithmName + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CUSTOM = 0; + */ + CUSTOM(0), + /** + * XGBOOST = 1; + */ + XGBOOST(1), + UNRECOGNIZED(-1), + ; + + /** + * CUSTOM = 0; + */ + public static final int CUSTOM_VALUE = 0; + /** + * XGBOOST = 1; + */ + public static final int XGBOOST_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AlgorithmName valueOf(int value) { + return forNumber(value); + } + + public static AlgorithmName forNumber(int value) { + switch (value) { + case 0: return CUSTOM; + case 1: return XGBOOST; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AlgorithmName> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AlgorithmName findValueByNumber(int number) { + return AlgorithmName.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(1); + } + + private static final AlgorithmName[] VALUES = values(); + + public static AlgorithmName 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 AlgorithmName(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.AlgorithmName) + } + public interface AlgorithmSpecificationOrBuilder extends // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification) com.google.protobuf.MessageOrBuilder { /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?
-     * 
- * - * string training_image = 1; + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ - java.lang.String getTrainingImage(); + int getInputModeValue(); /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?
-     * 
- * - * string training_image = 1; + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ - com.google.protobuf.ByteString - getTrainingImageBytes(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode(); /** - * string training_input_mode = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ - java.lang.String getTrainingInputMode(); + int getAlgorithmNameValue(); /** - * string training_input_mode = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ - com.google.protobuf.ByteString - getTrainingInputModeBytes(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName(); /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?
-     * 
- * - * string algorithm_name = 3; + * string algorithm_version = 3; */ - java.lang.String getAlgorithmName(); + java.lang.String getAlgorithmVersion(); /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?
-     * 
- * - * string algorithm_name = 3; + * string algorithm_version = 3; */ com.google.protobuf.ByteString - getAlgorithmNameBytes(); + getAlgorithmVersionBytes(); /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - java.util.List + java.util.List getMetricDefinitionsList(); /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ @@ -80,12 +258,12 @@ public interface AlgorithmSpecificationOrBuilder extends /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - java.util.List + java.util.List getMetricDefinitionsOrBuilderList(); /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index); } /** @@ -101,9 +279,9 @@ private AlgorithmSpecification(com.google.protobuf.GeneratedMessageV3.Builder super(builder); } private AlgorithmSpecification() { - trainingImage_ = ""; - trainingInputMode_ = ""; - algorithmName_ = ""; + inputMode_ = 0; + algorithmName_ = 0; + algorithmVersion_ = ""; metricDefinitions_ = java.util.Collections.emptyList(); } @@ -131,31 +309,31 @@ private AlgorithmSpecification( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: { + int rawValue = input.readEnum(); - trainingImage_ = s; + inputMode_ = rawValue; break; } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 16: { + int rawValue = input.readEnum(); - trainingInputMode_ = s; + algorithmName_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); - algorithmName_ = s; + algorithmVersion_ = s; break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(); + metricDefinitions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } metricDefinitions_.add( - input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.parser(), extensionRegistry)); + input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.parser(), extensionRegistry)); break; } default: { @@ -182,15 +360,15 @@ private AlgorithmSpecification( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); } public interface MetricDefinitionOrBuilder extends @@ -291,15 +469,15 @@ private MetricDefinition( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -415,10 +593,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition) obj; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) obj; if (!getName() .equals(other.getName())) return false; @@ -444,69 +622,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -519,7 +697,7 @@ public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Metr public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -540,21 +718,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.newBuilder() + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -582,17 +760,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition build() { - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition result = buildPartial(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -600,8 +778,8 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefin } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition buildPartial() { - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition(this); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(this); result.name_ = name_; result.regex_ = regex_; onBuilt(); @@ -642,16 +820,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition) { - return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition)other); + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition other) { - if (other == flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -675,11 +853,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parsedMessage = null; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -843,12 +1021,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - private static final flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getDefaultInstance() { + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -873,125 +1051,75 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; - public static final int TRAINING_IMAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object trainingImage_; + public static final int INPUT_MODE_FIELD_NUMBER = 1; + private int inputMode_; /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?
-     * 
- * - * string training_image = 1; + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ - public java.lang.String getTrainingImage() { - java.lang.Object ref = trainingImage_; - 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(); - trainingImage_ = s; - return s; - } + public int getInputModeValue() { + return inputMode_; } /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?
-     * 
- * - * string training_image = 1; + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ - public com.google.protobuf.ByteString - getTrainingImageBytes() { - java.lang.Object ref = trainingImage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - trainingImage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result; } - public static final int TRAINING_INPUT_MODE_FIELD_NUMBER = 2; - private volatile java.lang.Object trainingInputMode_; + public static final int ALGORITHM_NAME_FIELD_NUMBER = 2; + private int algorithmName_; /** - * string training_input_mode = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ - public java.lang.String getTrainingInputMode() { - java.lang.Object ref = trainingInputMode_; - 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(); - trainingInputMode_ = s; - return s; - } + public int getAlgorithmNameValue() { + return algorithmName_; } /** - * string training_input_mode = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ - public com.google.protobuf.ByteString - getTrainingInputModeBytes() { - java.lang.Object ref = trainingInputMode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - trainingInputMode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result; } - public static final int ALGORITHM_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object algorithmName_; + public static final int ALGORITHM_VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object algorithmVersion_; /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?
-     * 
- * - * string algorithm_name = 3; + * string algorithm_version = 3; */ - public java.lang.String getAlgorithmName() { - java.lang.Object ref = algorithmName_; + public java.lang.String getAlgorithmVersion() { + java.lang.Object ref = algorithmVersion_; 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(); - algorithmName_ = s; + algorithmVersion_ = s; return s; } } /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?
-     * 
- * - * string algorithm_name = 3; + * string algorithm_version = 3; */ public com.google.protobuf.ByteString - getAlgorithmNameBytes() { - java.lang.Object ref = algorithmName_; + getAlgorithmVersionBytes() { + java.lang.Object ref = algorithmVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - algorithmName_ = b; + algorithmVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -999,17 +1127,17 @@ public java.lang.String getAlgorithmName() { } public static final int METRIC_DEFINITIONS_FIELD_NUMBER = 4; - private java.util.List metricDefinitions_; + private java.util.List metricDefinitions_; /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - public java.util.List getMetricDefinitionsList() { + public java.util.List getMetricDefinitionsList() { return metricDefinitions_; } /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - public java.util.List + public java.util.List getMetricDefinitionsOrBuilderList() { return metricDefinitions_; } @@ -1022,13 +1150,13 @@ public int getMetricDefinitionsCount() { /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { return metricDefinitions_.get(index); } /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index) { return metricDefinitions_.get(index); } @@ -1047,14 +1175,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTrainingImageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trainingImage_); + if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) { + output.writeEnum(1, inputMode_); } - if (!getTrainingInputModeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, trainingInputMode_); + if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) { + output.writeEnum(2, algorithmName_); } - if (!getAlgorithmNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, algorithmName_); + if (!getAlgorithmVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, algorithmVersion_); } for (int i = 0; i < metricDefinitions_.size(); i++) { output.writeMessage(4, metricDefinitions_.get(i)); @@ -1068,14 +1196,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTrainingImageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trainingImage_); + if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, inputMode_); } - if (!getTrainingInputModeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, trainingInputMode_); + if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, algorithmName_); } - if (!getAlgorithmNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, algorithmName_); + if (!getAlgorithmVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, algorithmVersion_); } for (int i = 0; i < metricDefinitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -1091,17 +1221,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification) obj; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) obj; - if (!getTrainingImage() - .equals(other.getTrainingImage())) return false; - if (!getTrainingInputMode() - .equals(other.getTrainingInputMode())) return false; - if (!getAlgorithmName() - .equals(other.getAlgorithmName())) return false; + if (inputMode_ != other.inputMode_) return false; + if (algorithmName_ != other.algorithmName_) return false; + if (!getAlgorithmVersion() + .equals(other.getAlgorithmVersion())) return false; if (!getMetricDefinitionsList() .equals(other.getMetricDefinitionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -1115,12 +1243,12 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TRAINING_IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getTrainingImage().hashCode(); - hash = (37 * hash) + TRAINING_INPUT_MODE_FIELD_NUMBER; - hash = (53 * hash) + getTrainingInputMode().hashCode(); + hash = (37 * hash) + INPUT_MODE_FIELD_NUMBER; + hash = (53 * hash) + inputMode_; hash = (37 * hash) + ALGORITHM_NAME_FIELD_NUMBER; - hash = (53 * hash) + getAlgorithmName().hashCode(); + hash = (53 * hash) + algorithmName_; + hash = (37 * hash) + ALGORITHM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmVersion().hashCode(); if (getMetricDefinitionsCount() > 0) { hash = (37 * hash) + METRIC_DEFINITIONS_FIELD_NUMBER; hash = (53 * hash) + getMetricDefinitionsList().hashCode(); @@ -1130,69 +1258,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1205,7 +1333,7 @@ public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification pars public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1226,21 +1354,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.newBuilder() + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1259,11 +1387,11 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - trainingImage_ = ""; + inputMode_ = 0; - trainingInputMode_ = ""; + algorithmName_ = 0; - algorithmName_ = ""; + algorithmVersion_ = ""; if (metricDefinitionsBuilder_ == null) { metricDefinitions_ = java.util.Collections.emptyList(); @@ -1277,17 +1405,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification build() { - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification result = buildPartial(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1295,13 +1423,13 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification buildPartial() { - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification(this); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - result.trainingImage_ = trainingImage_; - result.trainingInputMode_ = trainingInputMode_; + result.inputMode_ = inputMode_; result.algorithmName_ = algorithmName_; + result.algorithmVersion_ = algorithmVersion_; if (metricDefinitionsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); @@ -1350,26 +1478,24 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification) { - return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification)other); + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification other) { - if (other == flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance()) return this; - if (!other.getTrainingImage().isEmpty()) { - trainingImage_ = other.trainingImage_; - onChanged(); + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance()) return this; + if (other.inputMode_ != 0) { + setInputModeValue(other.getInputModeValue()); } - if (!other.getTrainingInputMode().isEmpty()) { - trainingInputMode_ = other.trainingInputMode_; - onChanged(); + if (other.algorithmName_ != 0) { + setAlgorithmNameValue(other.getAlgorithmNameValue()); } - if (!other.getAlgorithmName().isEmpty()) { - algorithmName_ = other.algorithmName_; + if (!other.getAlgorithmVersion().isEmpty()) { + algorithmVersion_ = other.algorithmVersion_; onChanged(); } if (metricDefinitionsBuilder_ == null) { @@ -1413,11 +1539,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parsedMessage = null; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1428,269 +1554,181 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object trainingImage_ = ""; + private int inputMode_ = 0; /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?
-       * 
- * - * string training_image = 1; + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ - public java.lang.String getTrainingImage() { - java.lang.Object ref = trainingImage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - trainingImage_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public int getInputModeValue() { + return inputMode_; } /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?
-       * 
- * - * string training_image = 1; + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ - public com.google.protobuf.ByteString - getTrainingImageBytes() { - java.lang.Object ref = trainingImage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - trainingImage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setInputModeValue(int value) { + inputMode_ = value; + onChanged(); + return this; } /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?
-       * 
- * - * string training_image = 1; + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ - public Builder setTrainingImage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - trainingImage_ = value; - onChanged(); - return this; + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result; } /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?
-       * 
- * - * string training_image = 1; + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ - public Builder clearTrainingImage() { + public Builder setInputMode(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode value) { + if (value == null) { + throw new NullPointerException(); + } - trainingImage_ = getDefaultInstance().getTrainingImage(); + inputMode_ = value.getNumber(); onChanged(); return this; } /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?
-       * 
- * - * string training_image = 1; + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ - public Builder setTrainingImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearInputMode() { - trainingImage_ = value; + inputMode_ = 0; onChanged(); return this; } - private java.lang.Object trainingInputMode_ = ""; + private int algorithmName_ = 0; /** - * string training_input_mode = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ - public java.lang.String getTrainingInputMode() { - java.lang.Object ref = trainingInputMode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - trainingInputMode_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public int getAlgorithmNameValue() { + return algorithmName_; } /** - * string training_input_mode = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ - public com.google.protobuf.ByteString - getTrainingInputModeBytes() { - java.lang.Object ref = trainingInputMode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - trainingInputMode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setAlgorithmNameValue(int value) { + algorithmName_ = value; + onChanged(); + return this; } /** - * string training_input_mode = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ - public Builder setTrainingInputMode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - trainingInputMode_ = value; - onChanged(); - return this; + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result; } /** - * string training_input_mode = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ - public Builder clearTrainingInputMode() { + public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName value) { + if (value == null) { + throw new NullPointerException(); + } - trainingInputMode_ = getDefaultInstance().getTrainingInputMode(); + algorithmName_ = value.getNumber(); onChanged(); return this; } /** - * string training_input_mode = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ - public Builder setTrainingInputModeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearAlgorithmName() { - trainingInputMode_ = value; + algorithmName_ = 0; onChanged(); return this; } - private java.lang.Object algorithmName_ = ""; + private java.lang.Object algorithmVersion_ = ""; /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?
-       * 
- * - * string algorithm_name = 3; + * string algorithm_version = 3; */ - public java.lang.String getAlgorithmName() { - java.lang.Object ref = algorithmName_; + public java.lang.String getAlgorithmVersion() { + java.lang.Object ref = algorithmVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - algorithmName_ = s; + algorithmVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?
-       * 
- * - * string algorithm_name = 3; + * string algorithm_version = 3; */ public com.google.protobuf.ByteString - getAlgorithmNameBytes() { - java.lang.Object ref = algorithmName_; + getAlgorithmVersionBytes() { + java.lang.Object ref = algorithmVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - algorithmName_ = b; + algorithmVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?
-       * 
- * - * string algorithm_name = 3; + * string algorithm_version = 3; */ - public Builder setAlgorithmName( + public Builder setAlgorithmVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - algorithmName_ = value; + algorithmVersion_ = value; onChanged(); return this; } /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?
-       * 
- * - * string algorithm_name = 3; + * string algorithm_version = 3; */ - public Builder clearAlgorithmName() { + public Builder clearAlgorithmVersion() { - algorithmName_ = getDefaultInstance().getAlgorithmName(); + algorithmVersion_ = getDefaultInstance().getAlgorithmVersion(); onChanged(); return this; } /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?
-       * 
- * - * string algorithm_name = 3; + * string algorithm_version = 3; */ - public Builder setAlgorithmNameBytes( + public Builder setAlgorithmVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - algorithmName_ = value; + algorithmVersion_ = value; onChanged(); return this; } - private java.util.List metricDefinitions_ = + private java.util.List metricDefinitions_ = java.util.Collections.emptyList(); private void ensureMetricDefinitionsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); + metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - public java.util.List getMetricDefinitionsList() { + public java.util.List getMetricDefinitionsList() { if (metricDefinitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(metricDefinitions_); } else { @@ -1710,7 +1748,7 @@ public int getMetricDefinitionsCount() { /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { if (metricDefinitionsBuilder_ == null) { return metricDefinitions_.get(index); } else { @@ -1721,7 +1759,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefin * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder setMetricDefinitions( - int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) { + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { if (metricDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1738,7 +1776,7 @@ public Builder setMetricDefinitions( * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder setMetricDefinitions( - int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); metricDefinitions_.set(index, builderForValue.build()); @@ -1751,7 +1789,7 @@ public Builder setMetricDefinitions( /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) { + public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { if (metricDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1768,7 +1806,7 @@ public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.Trainingjob.Algor * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions( - int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) { + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { if (metricDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1785,7 +1823,7 @@ public Builder addMetricDefinitions( * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions( - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); metricDefinitions_.add(builderForValue.build()); @@ -1799,7 +1837,7 @@ public Builder addMetricDefinitions( * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions( - int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); metricDefinitions_.add(index, builderForValue.build()); @@ -1813,7 +1851,7 @@ public Builder addMetricDefinitions( * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addAllMetricDefinitions( - java.lang.Iterable values) { + java.lang.Iterable values) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -1853,14 +1891,14 @@ public Builder removeMetricDefinitions(int index) { /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( int index) { return getMetricDefinitionsFieldBuilder().getBuilder(index); } /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index) { if (metricDefinitionsBuilder_ == null) { return metricDefinitions_.get(index); } else { @@ -1870,7 +1908,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefin /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - public java.util.List + public java.util.List getMetricDefinitionsOrBuilderList() { if (metricDefinitionsBuilder_ != null) { return metricDefinitionsBuilder_.getMessageOrBuilderList(); @@ -1881,31 +1919,31 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefin /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { return getMetricDefinitionsFieldBuilder().addBuilder( - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); } /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( int index) { return getMetricDefinitionsFieldBuilder().addBuilder( - index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); } /** * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ - public java.util.List + public java.util.List getMetricDefinitionsBuilderList() { return getMetricDefinitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder> + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> getMetricDefinitionsFieldBuilder() { if (metricDefinitionsBuilder_ == null) { metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder>( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder>( metricDefinitions_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -1931,12 +1969,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) - private static final flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification DEFAULT_INSTANCE; + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(); } - public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getDefaultInstance() { + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1961,61 +1999,60 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ResourceConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ResourceConfig) + public interface TrainingJobConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJobConfig) com.google.protobuf.MessageOrBuilder { /** - * string instance_type = 1; + *
+     * For multi-node training, not multi-GPU training
+     * 
+ * + * int64 instance_count = 1; */ - java.lang.String getInstanceType(); - /** - * string instance_type = 1; - */ - com.google.protobuf.ByteString - getInstanceTypeBytes(); + long getInstanceCount(); /** - * int64 instance_count = 2; + * string instance_type = 2; */ - long getInstanceCount(); - + java.lang.String getInstanceType(); /** - * int64 volume_size_in_gb = 3; + * string instance_type = 2; */ - long getVolumeSizeInGb(); + com.google.protobuf.ByteString + getInstanceTypeBytes(); /** - * string volume_kms_key_id = 4; + * string volume_size_in_gb = 3; */ - java.lang.String getVolumeKmsKeyId(); + java.lang.String getVolumeSizeInGb(); /** - * string volume_kms_key_id = 4; + * string volume_size_in_gb = 3; */ com.google.protobuf.ByteString - getVolumeKmsKeyIdBytes(); + getVolumeSizeInGbBytes(); } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.ResourceConfig} + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobConfig} */ - public static final class ResourceConfig extends + public static final class TrainingJobConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ResourceConfig) - ResourceConfigOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) + TrainingJobConfigOrBuilder { private static final long serialVersionUID = 0L; - // Use ResourceConfig.newBuilder() to construct. - private ResourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use TrainingJobConfig.newBuilder() to construct. + private TrainingJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResourceConfig() { + private TrainingJobConfig() { instanceType_ = ""; - volumeKmsKeyId_ = ""; + volumeSizeInGb_ = ""; } @java.lang.Override @@ -2023,7 +2060,7 @@ private ResourceConfig() { getUnknownFields() { return this.unknownFields; } - private ResourceConfig( + private TrainingJobConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2042,26 +2079,21 @@ private ResourceConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - instanceType_ = s; - break; - } - case 16: { + case 8: { instanceCount_ = input.readInt64(); break; } - case 24: { + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - volumeSizeInGb_ = input.readInt64(); + instanceType_ = s; break; } - case 34: { + case 26: { java.lang.String s = input.readStringRequireUtf8(); - volumeKmsKeyId_ = s; + volumeSizeInGb_ = s; break; } default: { @@ -2085,21 +2117,34 @@ private ResourceConfig( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.class, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); + } + + public static final int INSTANCE_COUNT_FIELD_NUMBER = 1; + private long instanceCount_; + /** + *
+     * For multi-node training, not multi-GPU training
+     * 
+ * + * int64 instance_count = 1; + */ + public long getInstanceCount() { + return instanceCount_; } - public static final int INSTANCE_TYPE_FIELD_NUMBER = 1; + public static final int INSTANCE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object instanceType_; /** - * string instance_type = 1; + * string instance_type = 2; */ public java.lang.String getInstanceType() { java.lang.Object ref = instanceType_; @@ -2114,7 +2159,7 @@ public java.lang.String getInstanceType() { } } /** - * string instance_type = 1; + * string instance_type = 2; */ public com.google.protobuf.ByteString getInstanceTypeBytes() { @@ -2130,52 +2175,34 @@ public java.lang.String getInstanceType() { } } - public static final int INSTANCE_COUNT_FIELD_NUMBER = 2; - private long instanceCount_; - /** - * int64 instance_count = 2; - */ - public long getInstanceCount() { - return instanceCount_; - } - public static final int VOLUME_SIZE_IN_GB_FIELD_NUMBER = 3; - private long volumeSizeInGb_; - /** - * int64 volume_size_in_gb = 3; - */ - public long getVolumeSizeInGb() { - return volumeSizeInGb_; - } - - public static final int VOLUME_KMS_KEY_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object volumeKmsKeyId_; + private volatile java.lang.Object volumeSizeInGb_; /** - * string volume_kms_key_id = 4; + * string volume_size_in_gb = 3; */ - public java.lang.String getVolumeKmsKeyId() { - java.lang.Object ref = volumeKmsKeyId_; + public java.lang.String getVolumeSizeInGb() { + java.lang.Object ref = volumeSizeInGb_; 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(); - volumeKmsKeyId_ = s; + volumeSizeInGb_ = s; return s; } } /** - * string volume_kms_key_id = 4; + * string volume_size_in_gb = 3; */ public com.google.protobuf.ByteString - getVolumeKmsKeyIdBytes() { - java.lang.Object ref = volumeKmsKeyId_; + getVolumeSizeInGbBytes() { + java.lang.Object ref = volumeSizeInGb_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - volumeKmsKeyId_ = b; + volumeSizeInGb_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2196,17 +2223,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getInstanceTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceType_); - } if (instanceCount_ != 0L) { - output.writeInt64(2, instanceCount_); + output.writeInt64(1, instanceCount_); } - if (volumeSizeInGb_ != 0L) { - output.writeInt64(3, volumeSizeInGb_); + if (!getInstanceTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceType_); } - if (!getVolumeKmsKeyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, volumeKmsKeyId_); + if (!getVolumeSizeInGbBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, volumeSizeInGb_); } unknownFields.writeTo(output); } @@ -2217,19 +2241,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getInstanceTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceType_); - } if (instanceCount_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, instanceCount_); + .computeInt64Size(1, instanceCount_); } - if (volumeSizeInGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, volumeSizeInGb_); + if (!getInstanceTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceType_); } - if (!getVolumeKmsKeyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, volumeKmsKeyId_); + if (!getVolumeSizeInGbBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, volumeSizeInGb_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2241,19 +2261,17 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig other = (flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig) obj; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) obj; - if (!getInstanceType() - .equals(other.getInstanceType())) return false; if (getInstanceCount() != other.getInstanceCount()) return false; - if (getVolumeSizeInGb() - != other.getVolumeSizeInGb()) return false; - if (!getVolumeKmsKeyId() - .equals(other.getVolumeKmsKeyId())) return false; + if (!getInstanceType() + .equals(other.getInstanceType())) return false; + if (!getVolumeSizeInGb() + .equals(other.getVolumeSizeInGb())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2265,84 +2283,81 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getInstanceType().hashCode(); hash = (37 * hash) + INSTANCE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInstanceCount()); + hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getInstanceType().hashCode(); hash = (37 * hash) + VOLUME_SIZE_IN_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVolumeSizeInGb()); - hash = (37 * hash) + VOLUME_KMS_KEY_ID_FIELD_NUMBER; - hash = (53 * hash) + getVolumeKmsKeyId().hashCode(); + hash = (53 * hash) + getVolumeSizeInGb().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2355,7 +2370,7 @@ public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2371,26 +2386,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.ResourceConfig} + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ResourceConfig) - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.class, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.newBuilder() + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2408,13 +2423,11 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - instanceType_ = ""; - instanceCount_ = 0L; - volumeSizeInGb_ = 0L; + instanceType_ = ""; - volumeKmsKeyId_ = ""; + volumeSizeInGb_ = ""; return this; } @@ -2422,17 +2435,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.getDefaultInstance(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig build() { - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig result = buildPartial(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2440,12 +2453,11 @@ public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig buildPartial() { - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig result = new flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig(this); - result.instanceType_ = instanceType_; + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(this); result.instanceCount_ = instanceCount_; + result.instanceType_ = instanceType_; result.volumeSizeInGb_ = volumeSizeInGb_; - result.volumeKmsKeyId_ = volumeKmsKeyId_; onBuilt(); return result; } @@ -2484,28 +2496,25 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig) { - return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig)other); + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig other) { - if (other == flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.getDefaultInstance()) return this; - if (!other.getInstanceType().isEmpty()) { - instanceType_ = other.instanceType_; - onChanged(); - } + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance()) return this; if (other.getInstanceCount() != 0L) { setInstanceCount(other.getInstanceCount()); } - if (other.getVolumeSizeInGb() != 0L) { - setVolumeSizeInGb(other.getVolumeSizeInGb()); + if (!other.getInstanceType().isEmpty()) { + instanceType_ = other.instanceType_; + onChanged(); } - if (!other.getVolumeKmsKeyId().isEmpty()) { - volumeKmsKeyId_ = other.volumeKmsKeyId_; + if (!other.getVolumeSizeInGb().isEmpty()) { + volumeSizeInGb_ = other.volumeSizeInGb_; onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -2523,11 +2532,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig parsedMessage = null; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2537,9 +2546,47 @@ public Builder mergeFrom( return this; } + private long instanceCount_ ; + /** + *
+       * For multi-node training, not multi-GPU training
+       * 
+ * + * int64 instance_count = 1; + */ + public long getInstanceCount() { + return instanceCount_; + } + /** + *
+       * For multi-node training, not multi-GPU training
+       * 
+ * + * int64 instance_count = 1; + */ + public Builder setInstanceCount(long value) { + + instanceCount_ = value; + onChanged(); + return this; + } + /** + *
+       * For multi-node training, not multi-GPU training
+       * 
+ * + * int64 instance_count = 1; + */ + public Builder clearInstanceCount() { + + instanceCount_ = 0L; + onChanged(); + return this; + } + private java.lang.Object instanceType_ = ""; /** - * string instance_type = 1; + * string instance_type = 2; */ public java.lang.String getInstanceType() { java.lang.Object ref = instanceType_; @@ -2554,7 +2601,7 @@ public java.lang.String getInstanceType() { } } /** - * string instance_type = 1; + * string instance_type = 2; */ public com.google.protobuf.ByteString getInstanceTypeBytes() { @@ -2570,7 +2617,7 @@ public java.lang.String getInstanceType() { } } /** - * string instance_type = 1; + * string instance_type = 2; */ public Builder setInstanceType( java.lang.String value) { @@ -2583,7 +2630,7 @@ public Builder setInstanceType( return this; } /** - * string instance_type = 1; + * string instance_type = 2; */ public Builder clearInstanceType() { @@ -2592,7 +2639,7 @@ public Builder clearInstanceType() { return this; } /** - * string instance_type = 1; + * string instance_type = 2; */ public Builder setInstanceTypeBytes( com.google.protobuf.ByteString value) { @@ -2606,123 +2653,71 @@ public Builder setInstanceTypeBytes( return this; } - private long instanceCount_ ; - /** - * int64 instance_count = 2; - */ - public long getInstanceCount() { - return instanceCount_; - } - /** - * int64 instance_count = 2; - */ - public Builder setInstanceCount(long value) { - - instanceCount_ = value; - onChanged(); - return this; - } - /** - * int64 instance_count = 2; - */ - public Builder clearInstanceCount() { - - instanceCount_ = 0L; - onChanged(); - return this; - } - - private long volumeSizeInGb_ ; + private java.lang.Object volumeSizeInGb_ = ""; /** - * int64 volume_size_in_gb = 3; + * string volume_size_in_gb = 3; */ - public long getVolumeSizeInGb() { - return volumeSizeInGb_; - } - /** - * int64 volume_size_in_gb = 3; - */ - public Builder setVolumeSizeInGb(long value) { - - volumeSizeInGb_ = value; - onChanged(); - return this; - } - /** - * int64 volume_size_in_gb = 3; - */ - public Builder clearVolumeSizeInGb() { - - volumeSizeInGb_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object volumeKmsKeyId_ = ""; - /** - * string volume_kms_key_id = 4; - */ - public java.lang.String getVolumeKmsKeyId() { - java.lang.Object ref = volumeKmsKeyId_; + public java.lang.String getVolumeSizeInGb() { + java.lang.Object ref = volumeSizeInGb_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - volumeKmsKeyId_ = s; + volumeSizeInGb_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string volume_kms_key_id = 4; + * string volume_size_in_gb = 3; */ public com.google.protobuf.ByteString - getVolumeKmsKeyIdBytes() { - java.lang.Object ref = volumeKmsKeyId_; + getVolumeSizeInGbBytes() { + java.lang.Object ref = volumeSizeInGb_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - volumeKmsKeyId_ = b; + volumeSizeInGb_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string volume_kms_key_id = 4; + * string volume_size_in_gb = 3; */ - public Builder setVolumeKmsKeyId( + public Builder setVolumeSizeInGb( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - volumeKmsKeyId_ = value; + volumeSizeInGb_ = value; onChanged(); return this; } /** - * string volume_kms_key_id = 4; + * string volume_size_in_gb = 3; */ - public Builder clearVolumeKmsKeyId() { + public Builder clearVolumeSizeInGb() { - volumeKmsKeyId_ = getDefaultInstance().getVolumeKmsKeyId(); + volumeSizeInGb_ = getDefaultInstance().getVolumeSizeInGb(); onChanged(); return this; } /** - * string volume_kms_key_id = 4; + * string volume_size_in_gb = 3; */ - public Builder setVolumeKmsKeyIdBytes( + public Builder setVolumeSizeInGbBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - volumeKmsKeyId_ = value; + volumeSizeInGb_ = value; onChanged(); return this; } @@ -2739,41 +2734,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.ResourceConfig) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) } - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ResourceConfig) - private static final flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(); } - public static flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getDefaultInstance() { + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ResourceConfig parsePartialFrom( + public TrainingJobConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceConfig(input, extensionRegistry); + return new TrainingJobConfig(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2863,15 +2858,15 @@ private StoppingCondition( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.class, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); } public static final int MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER = 1; @@ -2939,10 +2934,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition other = (flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition) obj; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) obj; if (getMaxRuntimeInSeconds() != other.getMaxRuntimeInSeconds()) return false; @@ -2970,69 +2965,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3045,7 +3040,7 @@ public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -3066,21 +3061,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.StoppingCondition) - flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.class, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.newBuilder() + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3108,17 +3103,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition build() { - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition result = buildPartial(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3126,8 +3121,8 @@ public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition buildPartial() { - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition result = new flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition(this); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(this); result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; onBuilt(); @@ -3168,16 +3163,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition) { - return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition)other); + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition other) { - if (other == flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance()) return this; if (other.getMaxRuntimeInSeconds() != 0L) { setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); } @@ -3199,11 +3194,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parsedMessage = null; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3281,12 +3276,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) - private static final flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition DEFAULT_INSTANCE; + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(); } - public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getDefaultInstance() { + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3311,69 +3306,60 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface VpcConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.VpcConfig) + public interface TrainingJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJob) com.google.protobuf.MessageOrBuilder { /** - * repeated string security_group_ids = 1; - */ - java.util.List - getSecurityGroupIdsList(); - /** - * repeated string security_group_ids = 1; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ - int getSecurityGroupIdsCount(); + boolean hasAlgorithmSpecification(); /** - * repeated string security_group_ids = 1; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ - java.lang.String getSecurityGroupIds(int index); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification(); /** - * repeated string security_group_ids = 1; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ - com.google.protobuf.ByteString - getSecurityGroupIdsBytes(int index); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); /** - * repeated string subnets = 2; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - java.util.List - getSubnetsList(); + boolean hasTrainingJobConfig(); /** - * repeated string subnets = 2; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - int getSubnetsCount(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig(); /** - * repeated string subnets = 2; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - java.lang.String getSubnets(int index); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder(); + /** - * repeated string subnets = 2; + * bool interruptible = 4; */ - com.google.protobuf.ByteString - getSubnetsBytes(int index); + boolean getInterruptible(); } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.VpcConfig} + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} */ - public static final class VpcConfig extends + public static final class TrainingJob extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.VpcConfig) - VpcConfigOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJob) + TrainingJobOrBuilder { private static final long serialVersionUID = 0L; - // Use VpcConfig.newBuilder() to construct. - private VpcConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use TrainingJob.newBuilder() to construct. + private TrainingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VpcConfig() { - securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private TrainingJob() { } @java.lang.Override @@ -3381,7 +3367,7 @@ private VpcConfig() { getUnknownFields() { return this.unknownFields; } - private VpcConfig( + private TrainingJob( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3401,21 +3387,34 @@ private VpcConfig( done = true; break; case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder subBuilder = null; + if (algorithmSpecification_ != null) { + subBuilder = algorithmSpecification_.toBuilder(); } - securityGroupIds_.add(s); + algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(algorithmSpecification_); + algorithmSpecification_ = subBuilder.buildPartial(); + } + break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - subnets_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder subBuilder = null; + if (trainingJobConfig_ != null) { + subBuilder = trainingJobConfig_.toBuilder(); + } + trainingJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingJobConfig_); + trainingJobConfig_ = subBuilder.buildPartial(); } - subnets_.add(s); + + break; + } + case 32: { + + interruptible_ = input.readBool(); break; } default: { @@ -3433,85 +3432,72 @@ private VpcConfig( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - subnets_ = subnets_.getUnmodifiableView(); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.class, flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); } - public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList securityGroupIds_; - /** - * repeated string security_group_ids = 1; - */ - public com.google.protobuf.ProtocolStringList - getSecurityGroupIdsList() { - return securityGroupIds_; - } + public static final int ALGORITHM_SPECIFICATION_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; /** - * repeated string security_group_ids = 1; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ - public int getSecurityGroupIdsCount() { - return securityGroupIds_.size(); + public boolean hasAlgorithmSpecification() { + return algorithmSpecification_ != null; } /** - * repeated string security_group_ids = 1; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ - public java.lang.String getSecurityGroupIds(int index) { - return securityGroupIds_.get(index); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; } /** - * repeated string security_group_ids = 1; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ - public com.google.protobuf.ByteString - getSecurityGroupIdsBytes(int index) { - return securityGroupIds_.getByteString(index); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + return getAlgorithmSpecification(); } - public static final int SUBNETS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList subnets_; + public static final int TRAINING_JOB_CONFIG_FIELD_NUMBER = 2; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; /** - * repeated string subnets = 2; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - public com.google.protobuf.ProtocolStringList - getSubnetsList() { - return subnets_; + public boolean hasTrainingJobConfig() { + return trainingJobConfig_ != null; } /** - * repeated string subnets = 2; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - public int getSubnetsCount() { - return subnets_.size(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { + return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; } /** - * repeated string subnets = 2; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - public java.lang.String getSubnets(int index) { - return subnets_.get(index); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { + return getTrainingJobConfig(); } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 4; + private boolean interruptible_; /** - * repeated string subnets = 2; + * bool interruptible = 4; */ - public com.google.protobuf.ByteString - getSubnetsBytes(int index) { - return subnets_.getByteString(index); + public boolean getInterruptible() { + return interruptible_; } private byte memoizedIsInitialized = -1; @@ -3528,11 +3514,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < securityGroupIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, securityGroupIds_.getRaw(i)); + if (algorithmSpecification_ != null) { + output.writeMessage(1, getAlgorithmSpecification()); } - for (int i = 0; i < subnets_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnets_.getRaw(i)); + if (trainingJobConfig_ != null) { + output.writeMessage(2, getTrainingJobConfig()); + } + if (interruptible_ != false) { + output.writeBool(4, interruptible_); } unknownFields.writeTo(output); } @@ -3543,21 +3532,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - { - int dataSize = 0; - for (int i = 0; i < securityGroupIds_.size(); i++) { - dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getSecurityGroupIdsList().size(); + if (algorithmSpecification_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAlgorithmSpecification()); } - { - int dataSize = 0; - for (int i = 0; i < subnets_.size(); i++) { - dataSize += computeStringSizeNoTag(subnets_.getRaw(i)); - } - size += dataSize; - size += 1 * getSubnetsList().size(); + if (trainingJobConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTrainingJobConfig()); + } + if (interruptible_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, interruptible_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3569,15 +3554,23 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.Trainingjob.VpcConfig)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig other = (flyteidl.plugins.sagemaker.Trainingjob.VpcConfig) obj; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) obj; - if (!getSecurityGroupIdsList() - .equals(other.getSecurityGroupIdsList())) return false; - if (!getSubnetsList() - .equals(other.getSubnetsList())) return false; + if (hasAlgorithmSpecification() != other.hasAlgorithmSpecification()) return false; + if (hasAlgorithmSpecification()) { + if (!getAlgorithmSpecification() + .equals(other.getAlgorithmSpecification())) return false; + } + if (hasTrainingJobConfig() != other.hasTrainingJobConfig()) return false; + if (hasTrainingJobConfig()) { + if (!getTrainingJobConfig() + .equals(other.getTrainingJobConfig())) return false; + } + if (getInterruptible() + != other.getInterruptible()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3589,82 +3582,85 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getSecurityGroupIdsCount() > 0) { - hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER; - hash = (53 * hash) + getSecurityGroupIdsList().hashCode(); + if (hasAlgorithmSpecification()) { + hash = (37 * hash) + ALGORITHM_SPECIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmSpecification().hashCode(); } - if (getSubnetsCount() > 0) { - hash = (37 * hash) + SUBNETS_FIELD_NUMBER; - hash = (53 * hash) + getSubnetsList().hashCode(); + if (hasTrainingJobConfig()) { + hash = (37 * hash) + TRAINING_JOB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTrainingJobConfig().hashCode(); } + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterruptible()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3677,7 +3673,7 @@ public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -3693,26 +3689,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.VpcConfig} + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.VpcConfig) - flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJob) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.class, flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.newBuilder() + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3730,27 +3726,37 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = null; + } else { + algorithmSpecification_ = null; + algorithmSpecificationBuilder_ = null; + } + if (trainingJobConfigBuilder_ == null) { + trainingJobConfig_ = null; + } else { + trainingJobConfig_ = null; + trainingJobConfigBuilder_ = null; + } + interruptible_ = false; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.getDefaultInstance(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig build() { - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig result = buildPartial(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3758,19 +3764,19 @@ public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig buildPartial() { - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig result = new flyteidl.plugins.sagemaker.Trainingjob.VpcConfig(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(this); + if (algorithmSpecificationBuilder_ == null) { + result.algorithmSpecification_ = algorithmSpecification_; + } else { + result.algorithmSpecification_ = algorithmSpecificationBuilder_.build(); } - result.securityGroupIds_ = securityGroupIds_; - if (((bitField0_ & 0x00000002) != 0)) { - subnets_ = subnets_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + if (trainingJobConfigBuilder_ == null) { + result.trainingJobConfig_ = trainingJobConfig_; + } else { + result.trainingJobConfig_ = trainingJobConfigBuilder_.build(); } - result.subnets_ = subnets_; + result.interruptible_ = interruptible_; onBuilt(); return result; } @@ -3809,35 +3815,24 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.Trainingjob.VpcConfig) { - return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.VpcConfig)other); + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig other) { - if (other == flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.getDefaultInstance()) return this; - if (!other.securityGroupIds_.isEmpty()) { - if (securityGroupIds_.isEmpty()) { - securityGroupIds_ = other.securityGroupIds_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSecurityGroupIdsIsMutable(); - securityGroupIds_.addAll(other.securityGroupIds_); - } - onChanged(); + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance()) return this; + if (other.hasAlgorithmSpecification()) { + mergeAlgorithmSpecification(other.getAlgorithmSpecification()); } - if (!other.subnets_.isEmpty()) { - if (subnets_.isEmpty()) { - subnets_ = other.subnets_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSubnetsIsMutable(); - subnets_.addAll(other.subnets_); - } - onChanged(); + if (other.hasTrainingJobConfig()) { + mergeTrainingJobConfig(other.getTrainingJobConfig()); + } + if (other.getInterruptible() != false) { + setInterruptible(other.getInterruptible()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3854,11 +3849,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig parsedMessage = null; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.VpcConfig) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3867,1250 +3862,30 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureSecurityGroupIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string security_group_ids = 1; - */ - public com.google.protobuf.ProtocolStringList - getSecurityGroupIdsList() { - return securityGroupIds_.getUnmodifiableView(); - } - /** - * repeated string security_group_ids = 1; - */ - public int getSecurityGroupIdsCount() { - return securityGroupIds_.size(); - } + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; /** - * repeated string security_group_ids = 1; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ - public java.lang.String getSecurityGroupIds(int index) { - return securityGroupIds_.get(index); + public boolean hasAlgorithmSpecification() { + return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; } /** - * repeated string security_group_ids = 1; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ - public com.google.protobuf.ByteString - getSecurityGroupIdsBytes(int index) { - return securityGroupIds_.getByteString(index); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { + if (algorithmSpecificationBuilder_ == null) { + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } else { + return algorithmSpecificationBuilder_.getMessage(); + } } /** - * repeated string security_group_ids = 1; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ - public Builder setSecurityGroupIds( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityGroupIdsIsMutable(); - securityGroupIds_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string security_group_ids = 1; - */ - public Builder addSecurityGroupIds( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityGroupIdsIsMutable(); - securityGroupIds_.add(value); - onChanged(); - return this; - } - /** - * repeated string security_group_ids = 1; - */ - public Builder addAllSecurityGroupIds( - java.lang.Iterable values) { - ensureSecurityGroupIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, securityGroupIds_); - onChanged(); - return this; - } - /** - * repeated string security_group_ids = 1; - */ - public Builder clearSecurityGroupIds() { - securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string security_group_ids = 1; - */ - public Builder addSecurityGroupIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSecurityGroupIdsIsMutable(); - securityGroupIds_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureSubnetsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - subnets_ = new com.google.protobuf.LazyStringArrayList(subnets_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated string subnets = 2; - */ - public com.google.protobuf.ProtocolStringList - getSubnetsList() { - return subnets_.getUnmodifiableView(); - } - /** - * repeated string subnets = 2; - */ - public int getSubnetsCount() { - return subnets_.size(); - } - /** - * repeated string subnets = 2; - */ - public java.lang.String getSubnets(int index) { - return subnets_.get(index); - } - /** - * repeated string subnets = 2; - */ - public com.google.protobuf.ByteString - getSubnetsBytes(int index) { - return subnets_.getByteString(index); - } - /** - * repeated string subnets = 2; - */ - public Builder setSubnets( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubnetsIsMutable(); - subnets_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string subnets = 2; - */ - public Builder addSubnets( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubnetsIsMutable(); - subnets_.add(value); - onChanged(); - return this; - } - /** - * repeated string subnets = 2; - */ - public Builder addAllSubnets( - java.lang.Iterable values) { - ensureSubnetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subnets_); - onChanged(); - return this; - } - /** - * repeated string subnets = 2; - */ - public Builder clearSubnets() { - subnets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * repeated string subnets = 2; - */ - public Builder addSubnetsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSubnetsIsMutable(); - subnets_.add(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:flyteidl.plugins.sagemaker.VpcConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.VpcConfig) - private static final flyteidl.plugins.sagemaker.Trainingjob.VpcConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.VpcConfig(); - } - - public static flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VpcConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VpcConfig(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 flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TrainingJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJob) - com.google.protobuf.MessageOrBuilder { - - /** - * string region = 1; - */ - java.lang.String getRegion(); - /** - * string region = 1; - */ - com.google.protobuf.ByteString - getRegionBytes(); - - /** - * string role_arn = 2; - */ - java.lang.String getRoleArn(); - /** - * string role_arn = 2; - */ - com.google.protobuf.ByteString - getRoleArnBytes(); - - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; - */ - boolean hasAlgorithmSpecification(); - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; - */ - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification(); - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; - */ - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - boolean hasResourceConfig(); - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getResourceConfig(); - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder getResourceConfigOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - boolean hasStoppingCondition(); - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getStoppingCondition(); - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder getStoppingConditionOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; - */ - boolean hasVpcConfig(); - /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; - */ - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getVpcConfig(); - /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; - */ - flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder getVpcConfigOrBuilder(); - - /** - * bool enable_spot_training = 7; - */ - boolean getEnableSpotTraining(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} - */ - public static final class TrainingJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJob) - TrainingJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use TrainingJob.newBuilder() to construct. - private TrainingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TrainingJob() { - region_ = ""; - roleArn_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TrainingJob( - 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(); - - region_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - roleArn_ = s; - break; - } - case 26: { - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder subBuilder = null; - if (algorithmSpecification_ != null) { - subBuilder = algorithmSpecification_.toBuilder(); - } - algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(algorithmSpecification_); - algorithmSpecification_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder subBuilder = null; - if (resourceConfig_ != null) { - subBuilder = resourceConfig_.toBuilder(); - } - resourceConfig_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceConfig_); - resourceConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder subBuilder = null; - if (stoppingCondition_ != null) { - subBuilder = stoppingCondition_.toBuilder(); - } - stoppingCondition_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stoppingCondition_); - stoppingCondition_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder subBuilder = null; - if (vpcConfig_ != null) { - subBuilder = vpcConfig_.toBuilder(); - } - vpcConfig_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vpcConfig_); - vpcConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 56: { - - enableSpotTraining_ = input.readBool(); - 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 flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.class, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder.class); - } - - public static final int REGION_FIELD_NUMBER = 1; - private volatile java.lang.Object region_; - /** - * string region = 1; - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - 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(); - region_ = s; - return s; - } - } - /** - * string region = 1; - */ - public com.google.protobuf.ByteString - getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROLE_ARN_FIELD_NUMBER = 2; - private volatile java.lang.Object roleArn_; - /** - * string role_arn = 2; - */ - public java.lang.String getRoleArn() { - java.lang.Object ref = roleArn_; - 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(); - roleArn_ = s; - return s; - } - } - /** - * string role_arn = 2; - */ - public com.google.protobuf.ByteString - getRoleArnBytes() { - java.lang.Object ref = roleArn_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - roleArn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALGORITHM_SPECIFICATION_FIELD_NUMBER = 3; - private flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification algorithmSpecification_; - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; - */ - public boolean hasAlgorithmSpecification() { - return algorithmSpecification_ != null; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; - */ - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification() { - return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; - */ - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { - return getAlgorithmSpecification(); - } - - public static final int RESOURCE_CONFIG_FIELD_NUMBER = 4; - private flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig resourceConfig_; - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - public boolean hasResourceConfig() { - return resourceConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getResourceConfig() { - return resourceConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.getDefaultInstance() : resourceConfig_; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder getResourceConfigOrBuilder() { - return getResourceConfig(); - } - - public static final int STOPPING_CONDITION_FIELD_NUMBER = 5; - private flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition stoppingCondition_; - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - public boolean hasStoppingCondition() { - return stoppingCondition_ != null; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getStoppingCondition() { - return stoppingCondition_ == null ? flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance() : stoppingCondition_; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - public flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { - return getStoppingCondition(); - } - - public static final int VPC_CONFIG_FIELD_NUMBER = 6; - private flyteidl.plugins.sagemaker.Trainingjob.VpcConfig vpcConfig_; - /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; - */ - public boolean hasVpcConfig() { - return vpcConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; - */ - public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getVpcConfig() { - return vpcConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.getDefaultInstance() : vpcConfig_; - } - /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; - */ - public flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder getVpcConfigOrBuilder() { - return getVpcConfig(); - } - - public static final int ENABLE_SPOT_TRAINING_FIELD_NUMBER = 7; - private boolean enableSpotTraining_; - /** - * bool enable_spot_training = 7; - */ - public boolean getEnableSpotTraining() { - return enableSpotTraining_; - } - - 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 (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, region_); - } - if (!getRoleArnBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roleArn_); - } - if (algorithmSpecification_ != null) { - output.writeMessage(3, getAlgorithmSpecification()); - } - if (resourceConfig_ != null) { - output.writeMessage(4, getResourceConfig()); - } - if (stoppingCondition_ != null) { - output.writeMessage(5, getStoppingCondition()); - } - if (vpcConfig_ != null) { - output.writeMessage(6, getVpcConfig()); - } - if (enableSpotTraining_ != false) { - output.writeBool(7, enableSpotTraining_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, region_); - } - if (!getRoleArnBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, roleArn_); - } - if (algorithmSpecification_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAlgorithmSpecification()); - } - if (resourceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResourceConfig()); - } - if (stoppingCondition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getStoppingCondition()); - } - if (vpcConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getVpcConfig()); - } - if (enableSpotTraining_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, enableSpotTraining_); - } - 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob other = (flyteidl.plugins.sagemaker.Trainingjob.TrainingJob) obj; - - if (!getRegion() - .equals(other.getRegion())) return false; - if (!getRoleArn() - .equals(other.getRoleArn())) return false; - if (hasAlgorithmSpecification() != other.hasAlgorithmSpecification()) return false; - if (hasAlgorithmSpecification()) { - if (!getAlgorithmSpecification() - .equals(other.getAlgorithmSpecification())) return false; - } - if (hasResourceConfig() != other.hasResourceConfig()) return false; - if (hasResourceConfig()) { - if (!getResourceConfig() - .equals(other.getResourceConfig())) return false; - } - if (hasStoppingCondition() != other.hasStoppingCondition()) return false; - if (hasStoppingCondition()) { - if (!getStoppingCondition() - .equals(other.getStoppingCondition())) return false; - } - if (hasVpcConfig() != other.hasVpcConfig()) return false; - if (hasVpcConfig()) { - if (!getVpcConfig() - .equals(other.getVpcConfig())) return false; - } - if (getEnableSpotTraining() - != other.getEnableSpotTraining()) 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) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + ROLE_ARN_FIELD_NUMBER; - hash = (53 * hash) + getRoleArn().hashCode(); - if (hasAlgorithmSpecification()) { - hash = (37 * hash) + ALGORITHM_SPECIFICATION_FIELD_NUMBER; - hash = (53 * hash) + getAlgorithmSpecification().hashCode(); - } - if (hasResourceConfig()) { - hash = (37 * hash) + RESOURCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getResourceConfig().hashCode(); - } - if (hasStoppingCondition()) { - hash = (37 * hash) + STOPPING_CONDITION_FIELD_NUMBER; - hash = (53 * hash) + getStoppingCondition().hashCode(); - } - if (hasVpcConfig()) { - hash = (37 * hash) + VPC_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getVpcConfig().hashCode(); - } - hash = (37 * hash) + ENABLE_SPOT_TRAINING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSpotTraining()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob 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(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJob) - flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.class, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.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(); - region_ = ""; - - roleArn_ = ""; - - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecification_ = null; - } else { - algorithmSpecification_ = null; - algorithmSpecificationBuilder_ = null; - } - if (resourceConfigBuilder_ == null) { - resourceConfig_ = null; - } else { - resourceConfig_ = null; - resourceConfigBuilder_ = null; - } - if (stoppingConditionBuilder_ == null) { - stoppingCondition_ = null; - } else { - stoppingCondition_ = null; - stoppingConditionBuilder_ = null; - } - if (vpcConfigBuilder_ == null) { - vpcConfig_ = null; - } else { - vpcConfig_ = null; - vpcConfigBuilder_ = null; - } - enableSpotTraining_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob build() { - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob buildPartial() { - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob result = new flyteidl.plugins.sagemaker.Trainingjob.TrainingJob(this); - result.region_ = region_; - result.roleArn_ = roleArn_; - if (algorithmSpecificationBuilder_ == null) { - result.algorithmSpecification_ = algorithmSpecification_; - } else { - result.algorithmSpecification_ = algorithmSpecificationBuilder_.build(); - } - if (resourceConfigBuilder_ == null) { - result.resourceConfig_ = resourceConfig_; - } else { - result.resourceConfig_ = resourceConfigBuilder_.build(); - } - if (stoppingConditionBuilder_ == null) { - result.stoppingCondition_ = stoppingCondition_; - } else { - result.stoppingCondition_ = stoppingConditionBuilder_.build(); - } - if (vpcConfigBuilder_ == null) { - result.vpcConfig_ = vpcConfig_; - } else { - result.vpcConfig_ = vpcConfigBuilder_.build(); - } - result.enableSpotTraining_ = enableSpotTraining_; - 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob) { - return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.TrainingJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob other) { - if (other == flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance()) return this; - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getRoleArn().isEmpty()) { - roleArn_ = other.roleArn_; - onChanged(); - } - if (other.hasAlgorithmSpecification()) { - mergeAlgorithmSpecification(other.getAlgorithmSpecification()); - } - if (other.hasResourceConfig()) { - mergeResourceConfig(other.getResourceConfig()); - } - if (other.hasStoppingCondition()) { - mergeStoppingCondition(other.getStoppingCondition()); - } - if (other.hasVpcConfig()) { - mergeVpcConfig(other.getVpcConfig()); - } - if (other.getEnableSpotTraining() != false) { - setEnableSpotTraining(other.getEnableSpotTraining()); - } - 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 { - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.TrainingJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object region_ = ""; - /** - * string region = 1; - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string region = 1; - */ - public com.google.protobuf.ByteString - getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string region = 1; - */ - public Builder setRegion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * string region = 1; - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * string region = 1; - */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object roleArn_ = ""; - /** - * string role_arn = 2; - */ - public java.lang.String getRoleArn() { - java.lang.Object ref = roleArn_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - roleArn_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string role_arn = 2; - */ - public com.google.protobuf.ByteString - getRoleArnBytes() { - java.lang.Object ref = roleArn_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - roleArn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string role_arn = 2; - */ - public Builder setRoleArn( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - roleArn_ = value; - onChanged(); - return this; - } - /** - * string role_arn = 2; - */ - public Builder clearRoleArn() { - - roleArn_ = getDefaultInstance().getRoleArn(); - onChanged(); - return this; - } - /** - * string role_arn = 2; - */ - public Builder setRoleArnBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - roleArn_ = value; - onChanged(); - return this; - } - - private flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification algorithmSpecification_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; - */ - public boolean hasAlgorithmSpecification() { - return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; - */ - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification() { - if (algorithmSpecificationBuilder_ == null) { - return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } else { - return algorithmSpecificationBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; - */ - public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification value) { + public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { if (algorithmSpecificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5124,10 +3899,10 @@ public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjob. return this; } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ public Builder setAlgorithmSpecification( - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder builderForValue) { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder builderForValue) { if (algorithmSpecificationBuilder_ == null) { algorithmSpecification_ = builderForValue.build(); onChanged(); @@ -5138,13 +3913,13 @@ public Builder setAlgorithmSpecification( return this; } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ - public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification value) { + public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { if (algorithmSpecificationBuilder_ == null) { if (algorithmSpecification_ != null) { algorithmSpecification_ = - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); } else { algorithmSpecification_ = value; } @@ -5156,7 +3931,7 @@ public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjo return this; } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ public Builder clearAlgorithmSpecification() { if (algorithmSpecificationBuilder_ == null) { @@ -5170,33 +3945,33 @@ public Builder clearAlgorithmSpecification() { return this; } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { onChanged(); return getAlgorithmSpecificationFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ - public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { if (algorithmSpecificationBuilder_ != null) { return algorithmSpecificationBuilder_.getMessageOrBuilder(); } else { return algorithmSpecification_ == null ? - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; } } /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 3; + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder> + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> getAlgorithmSpecificationFieldBuilder() { if (algorithmSpecificationBuilder_ == null) { algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder>( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder>( getAlgorithmSpecification(), getParentForChildren(), isClean()); @@ -5205,379 +3980,145 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder ge return algorithmSpecificationBuilder_; } - private flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig resourceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder> resourceConfigBuilder_; - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - public boolean hasResourceConfig() { - return resourceConfigBuilder_ != null || resourceConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig getResourceConfig() { - if (resourceConfigBuilder_ == null) { - return resourceConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.getDefaultInstance() : resourceConfig_; - } else { - return resourceConfigBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - public Builder setResourceConfig(flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig value) { - if (resourceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceConfig_ = value; - onChanged(); - } else { - resourceConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - public Builder setResourceConfig( - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder builderForValue) { - if (resourceConfigBuilder_ == null) { - resourceConfig_ = builderForValue.build(); - onChanged(); - } else { - resourceConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - public Builder mergeResourceConfig(flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig value) { - if (resourceConfigBuilder_ == null) { - if (resourceConfig_ != null) { - resourceConfig_ = - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.newBuilder(resourceConfig_).mergeFrom(value).buildPartial(); - } else { - resourceConfig_ = value; - } - onChanged(); - } else { - resourceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - public Builder clearResourceConfig() { - if (resourceConfigBuilder_ == null) { - resourceConfig_ = null; - onChanged(); - } else { - resourceConfig_ = null; - resourceConfigBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder getResourceConfigBuilder() { - - onChanged(); - return getResourceConfigFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - public flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder getResourceConfigOrBuilder() { - if (resourceConfigBuilder_ != null) { - return resourceConfigBuilder_.getMessageOrBuilder(); - } else { - return resourceConfig_ == null ? - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.getDefaultInstance() : resourceConfig_; - } - } - /** - * .flyteidl.plugins.sagemaker.ResourceConfig resource_config = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder> - getResourceConfigFieldBuilder() { - if (resourceConfigBuilder_ == null) { - resourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.ResourceConfigOrBuilder>( - getResourceConfig(), - getParentForChildren(), - isClean()); - resourceConfig_ = null; - } - return resourceConfigBuilder_; - } - - private flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition stoppingCondition_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder> stoppingConditionBuilder_; - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - public boolean hasStoppingCondition() { - return stoppingConditionBuilder_ != null || stoppingCondition_ != null; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getStoppingCondition() { - if (stoppingConditionBuilder_ == null) { - return stoppingCondition_ == null ? flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance() : stoppingCondition_; - } else { - return stoppingConditionBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - public Builder setStoppingCondition(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition value) { - if (stoppingConditionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stoppingCondition_ = value; - onChanged(); - } else { - stoppingConditionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - public Builder setStoppingCondition( - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder builderForValue) { - if (stoppingConditionBuilder_ == null) { - stoppingCondition_ = builderForValue.build(); - onChanged(); - } else { - stoppingConditionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - public Builder mergeStoppingCondition(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition value) { - if (stoppingConditionBuilder_ == null) { - if (stoppingCondition_ != null) { - stoppingCondition_ = - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.newBuilder(stoppingCondition_).mergeFrom(value).buildPartial(); - } else { - stoppingCondition_ = value; - } - onChanged(); - } else { - stoppingConditionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - public Builder clearStoppingCondition() { - if (stoppingConditionBuilder_ == null) { - stoppingCondition_ = null; - onChanged(); - } else { - stoppingCondition_ = null; - stoppingConditionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder getStoppingConditionBuilder() { - - onChanged(); - return getStoppingConditionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - public flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder getStoppingConditionOrBuilder() { - if (stoppingConditionBuilder_ != null) { - return stoppingConditionBuilder_.getMessageOrBuilder(); - } else { - return stoppingCondition_ == null ? - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance() : stoppingCondition_; - } - } - /** - * .flyteidl.plugins.sagemaker.StoppingCondition stopping_condition = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder> - getStoppingConditionFieldBuilder() { - if (stoppingConditionBuilder_ == null) { - stoppingConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder, flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder>( - getStoppingCondition(), - getParentForChildren(), - isClean()); - stoppingCondition_ = null; - } - return stoppingConditionBuilder_; - } - - private flyteidl.plugins.sagemaker.Trainingjob.VpcConfig vpcConfig_; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig, flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder> vpcConfigBuilder_; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> trainingJobConfigBuilder_; /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - public boolean hasVpcConfig() { - return vpcConfigBuilder_ != null || vpcConfig_ != null; + public boolean hasTrainingJobConfig() { + return trainingJobConfigBuilder_ != null || trainingJobConfig_ != null; } /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig getVpcConfig() { - if (vpcConfigBuilder_ == null) { - return vpcConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.getDefaultInstance() : vpcConfig_; + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { + if (trainingJobConfigBuilder_ == null) { + return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; } else { - return vpcConfigBuilder_.getMessage(); + return trainingJobConfigBuilder_.getMessage(); } } /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - public Builder setVpcConfig(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig value) { - if (vpcConfigBuilder_ == null) { + public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { + if (trainingJobConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - vpcConfig_ = value; + trainingJobConfig_ = value; onChanged(); } else { - vpcConfigBuilder_.setMessage(value); + trainingJobConfigBuilder_.setMessage(value); } return this; } /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - public Builder setVpcConfig( - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder builderForValue) { - if (vpcConfigBuilder_ == null) { - vpcConfig_ = builderForValue.build(); + public Builder setTrainingJobConfig( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder builderForValue) { + if (trainingJobConfigBuilder_ == null) { + trainingJobConfig_ = builderForValue.build(); onChanged(); } else { - vpcConfigBuilder_.setMessage(builderForValue.build()); + trainingJobConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - public Builder mergeVpcConfig(flyteidl.plugins.sagemaker.Trainingjob.VpcConfig value) { - if (vpcConfigBuilder_ == null) { - if (vpcConfig_ != null) { - vpcConfig_ = - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.newBuilder(vpcConfig_).mergeFrom(value).buildPartial(); + public Builder mergeTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { + if (trainingJobConfigBuilder_ == null) { + if (trainingJobConfig_ != null) { + trainingJobConfig_ = + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.newBuilder(trainingJobConfig_).mergeFrom(value).buildPartial(); } else { - vpcConfig_ = value; + trainingJobConfig_ = value; } onChanged(); } else { - vpcConfigBuilder_.mergeFrom(value); + trainingJobConfigBuilder_.mergeFrom(value); } return this; } /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - public Builder clearVpcConfig() { - if (vpcConfigBuilder_ == null) { - vpcConfig_ = null; + public Builder clearTrainingJobConfig() { + if (trainingJobConfigBuilder_ == null) { + trainingJobConfig_ = null; onChanged(); } else { - vpcConfig_ = null; - vpcConfigBuilder_ = null; + trainingJobConfig_ = null; + trainingJobConfigBuilder_ = null; } return this; } /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - public flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder getVpcConfigBuilder() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder getTrainingJobConfigBuilder() { onChanged(); - return getVpcConfigFieldBuilder().getBuilder(); + return getTrainingJobConfigFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ - public flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder getVpcConfigOrBuilder() { - if (vpcConfigBuilder_ != null) { - return vpcConfigBuilder_.getMessageOrBuilder(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { + if (trainingJobConfigBuilder_ != null) { + return trainingJobConfigBuilder_.getMessageOrBuilder(); } else { - return vpcConfig_ == null ? - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.getDefaultInstance() : vpcConfig_; + return trainingJobConfig_ == null ? + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; } } /** - * .flyteidl.plugins.sagemaker.VpcConfig vpc_config = 6; + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig, flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder> - getVpcConfigFieldBuilder() { - if (vpcConfigBuilder_ == null) { - vpcConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.Trainingjob.VpcConfig, flyteidl.plugins.sagemaker.Trainingjob.VpcConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.VpcConfigOrBuilder>( - getVpcConfig(), + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> + getTrainingJobConfigFieldBuilder() { + if (trainingJobConfigBuilder_ == null) { + trainingJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder>( + getTrainingJobConfig(), getParentForChildren(), isClean()); - vpcConfig_ = null; + trainingJobConfig_ = null; } - return vpcConfigBuilder_; + return trainingJobConfigBuilder_; } - private boolean enableSpotTraining_ ; + private boolean interruptible_ ; /** - * bool enable_spot_training = 7; + * bool interruptible = 4; */ - public boolean getEnableSpotTraining() { - return enableSpotTraining_; + public boolean getInterruptible() { + return interruptible_; } /** - * bool enable_spot_training = 7; + * bool interruptible = 4; */ - public Builder setEnableSpotTraining(boolean value) { + public Builder setInterruptible(boolean value) { - enableSpotTraining_ = value; + interruptible_ = value; onChanged(); return this; } /** - * bool enable_spot_training = 7; + * bool interruptible = 4; */ - public Builder clearEnableSpotTraining() { + public Builder clearInterruptible() { - enableSpotTraining_ = false; + interruptible_ = false; onChanged(); return this; } @@ -5598,12 +4139,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) - private static final flyteidl.plugins.sagemaker.Trainingjob.TrainingJob DEFAULT_INSTANCE; + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.TrainingJob(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(); } - public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstance() { + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -5628,7 +4169,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -5645,20 +4186,15 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstanceForT com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor; + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; private static final @@ -5673,32 +4209,30 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstanceForT descriptor; static { java.lang.String[] descriptorData = { - "\n,flyteidl/plugins/sagemaker/trainingjob" + - ".proto\022\032flyteidl.plugins.sagemaker\"\367\001\n\026A" + - "lgorithmSpecification\022\026\n\016training_image\030" + - "\001 \001(\t\022\033\n\023training_input_mode\030\002 \001(\t\022\026\n\016al" + - "gorithm_name\030\003 \001(\t\022_\n\022metric_definitions" + - "\030\004 \003(\0132C.flyteidl.plugins.sagemaker.Algo" + - "rithmSpecification.MetricDefinition\032/\n\020M" + - "etricDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002" + - " \001(\t\"u\n\016ResourceConfig\022\025\n\rinstance_type\030" + - "\001 \001(\t\022\026\n\016instance_count\030\002 \001(\003\022\031\n\021volume_" + - "size_in_gb\030\003 \001(\003\022\031\n\021volume_kms_key_id\030\004 " + - "\001(\t\"U\n\021StoppingCondition\022\036\n\026max_runtime_" + - "in_seconds\030\001 \001(\003\022 \n\030max_wait_time_in_sec" + - "onds\030\002 \001(\003\"8\n\tVpcConfig\022\032\n\022security_grou" + - "p_ids\030\001 \003(\t\022\017\n\007subnets\030\002 \003(\t\"\355\002\n\013Trainin" + - "gJob\022\016\n\006region\030\001 \001(\t\022\020\n\010role_arn\030\002 \001(\t\022S" + - "\n\027algorithm_specification\030\003 \001(\01322.flytei" + - "dl.plugins.sagemaker.AlgorithmSpecificat" + - "ion\022C\n\017resource_config\030\004 \001(\0132*.flyteidl." + - "plugins.sagemaker.ResourceConfig\022I\n\022stop" + - "ping_condition\030\005 \001(\0132-.flyteidl.plugins." + - "sagemaker.StoppingCondition\0229\n\nvpc_confi" + - "g\030\006 \001(\0132%.flyteidl.plugins.sagemaker.Vpc" + - "Config\022\034\n\024enable_spot_training\030\007 \001(\010B5Z3" + - "github.com/lyft/flyteidl/gen/pb-go/flyte" + - "idl/pluginsb\006proto3" + "\n-flyteidl/plugins/sagemaker/training_jo" + + "b.proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026" + + "AlgorithmSpecification\0229\n\ninput_mode\030\001 \001" + + "(\0162%.flyteidl.plugins.sagemaker.InputMod" + + "e\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plu" + + "gins.sagemaker.AlgorithmName\022\031\n\021algorith" + + "m_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 " + + "\003(\0132C.flyteidl.plugins.sagemaker.Algorit" + + "hmSpecification.MetricDefinition\032/\n\020Metr" + + "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(" + + "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count" + + "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_" + + "size_in_gb\030\003 \001(\t\"U\n\021StoppingCondition\022\036\n" + + "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai" + + "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022" + + "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + + "idl.plugins.sagemaker.AlgorithmSpecifica" + + "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt" + + "eidl.plugins.sagemaker.TrainingJobConfig" + + "\022\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004" + + "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS" + + "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl" + + "yteidl/gen/pb-go/flyteidl/pluginsb\006proto" + + "3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -5717,37 +4251,31 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, - new java.lang.String[] { "TrainingImage", "TrainingInputMode", "AlgorithmName", "MetricDefinitions", }); + new java.lang.String[] { "InputMode", "AlgorithmName", "AlgorithmVersion", "MetricDefinitions", }); internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor = internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor.getNestedTypes().get(0); internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, new java.lang.String[] { "Name", "Regex", }); - internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor = + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor = getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_sagemaker_ResourceConfig_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_ResourceConfig_descriptor, - new java.lang.String[] { "InstanceType", "InstanceCount", "VolumeSizeInGb", "VolumeKmsKeyId", }); + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor, + new java.lang.String[] { "InstanceCount", "InstanceType", "VolumeSizeInGb", }); internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor, new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", }); - internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_plugins_sagemaker_VpcConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_VpcConfig_descriptor, - new java.lang.String[] { "SecurityGroupIds", "Subnets", }); internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(3); internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor, - new java.lang.String[] { "Region", "RoleArn", "AlgorithmSpecification", "ResourceConfig", "StoppingCondition", "VpcConfig", "EnableSpotTraining", }); + new java.lang.String[] { "AlgorithmSpecification", "TrainingJobConfig", "Interruptible", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst new file mode 100644 index 000000000..50f9e31be --- /dev/null +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst @@ -0,0 +1,153 @@ +.. _api_file_flyteidl/plugins/sagemaker/hpo_job.proto: + +hpo_job.proto +======================================== + +.. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningObjective: + +flyteidl.plugins.sagemaker.HyperparameterTuningObjective +-------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ + + +.. code-block:: json + + { + "objective_type": "...", + "metric_name": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type: + +objective_type + (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType `) + +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name: + +metric_name + (`string `_) + + +.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType: + +Enum flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType +----------------------------------------------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE: + +MINIMIZE + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MAXIMIZE: + +MAXIMIZE + ⁣ + + +.. _api_msg_flyteidl.plugins.sagemaker.HPOJob: + +flyteidl.plugins.sagemaker.HPOJob +--------------------------------- + +`[flyteidl.plugins.sagemaker.HPOJob proto] `_ + + +.. code-block:: json + + { + "training_job": "{...}", + "max_number_of_training_jobs": "...", + "max_parallel_training_jobs": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.training_job: + +training_job + (:ref:`flyteidl.plugins.sagemaker.TrainingJob `) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs: + +max_number_of_training_jobs + (`int64 `_) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs: + +max_parallel_training_jobs + (`int64 `_) + + + +.. _api_msg_flyteidl.plugins.sagemaker.HPOJobConfig: + +flyteidl.plugins.sagemaker.HPOJobConfig +--------------------------------------- + +`[flyteidl.plugins.sagemaker.HPOJobConfig proto] `_ + + +.. code-block:: json + + { + "hyperparameter_ranges": "{...}", + "tuning_strategy": "...", + "tuning_objective": "{...}", + "training_job_early_stopping_type": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges: + +hyperparameter_ranges + (:ref:`flyteidl.plugins.sagemaker.ParameterRanges `) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy: + +tuning_strategy + (:ref:`flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy `) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective: + +tuning_objective + (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjective `) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type: + +training_job_early_stopping_type + (:ref:`flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType `) + + +.. _api_enum_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy: + +Enum flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy +------------------------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN: + +BAYESIAN + *(DEFAULT)* ⁣ + + +.. _api_enum_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType: + +Enum flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType +------------------------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType.OFF: + +OFF + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType.AUTO: + +AUTO + ⁣ + diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst deleted file mode 100644 index c8055c5f2..000000000 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst +++ /dev/null @@ -1,82 +0,0 @@ -.. _api_file_flyteidl/plugins/sagemaker/hpojob.proto: - -hpojob.proto -======================================= - -.. _api_msg_flyteidl.plugins.sagemaker.HPOJobObjective: - -flyteidl.plugins.sagemaker.HPOJobObjective ------------------------------------------- - -`[flyteidl.plugins.sagemaker.HPOJobObjective proto] `_ - - -.. code-block:: json - - { - "objective_type": "...", - "metric_name": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.objective_type: - -objective_type - (:ref:`flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType `) - -.. _api_field_flyteidl.plugins.sagemaker.HPOJobObjective.metric_name: - -metric_name - (`string `_) - - -.. _api_enum_flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType: - -Enum flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType -------------------------------------------------------------------- - -`[flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType proto] `_ - - -.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType.MINIMIZE: - -MINIMIZE - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType.MAXIMIZE: - -MAXIMIZE - ⁣ - - -.. _api_msg_flyteidl.plugins.sagemaker.HPOJob: - -flyteidl.plugins.sagemaker.HPOJob ---------------------------------- - -`[flyteidl.plugins.sagemaker.HPOJob proto] `_ - - -.. code-block:: json - - { - "max_number_of_training_jobs": "...", - "max_parallel_training_jobs": "...", - "training_job": "{...}" - } - -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs: - -max_number_of_training_jobs - (`int64 `_) - -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs: - -max_parallel_training_jobs - (`int64 `_) - -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.training_job: - -training_job - (:ref:`flyteidl.plugins.sagemaker.TrainingJob `) - - diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst index 22253dc32..20fab8e86 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst @@ -6,6 +6,6 @@ sagemaker :caption: sagemaker :name: sagemakertoc - hpojob.proto - parameterranges.proto - trainingjob.proto + hpo_job.proto + parameter_ranges.proto + training_job.proto diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst similarity index 94% rename from gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst rename to gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst index 520c352dc..609908086 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst @@ -1,14 +1,14 @@ -.. _api_file_flyteidl/plugins/sagemaker/parameterranges.proto: +.. _api_file_flyteidl/plugins/sagemaker/parameter_ranges.proto: -parameterranges.proto -================================================ +parameter_ranges.proto +================================================= .. _api_msg_flyteidl.plugins.sagemaker.ContinuousParameterRange: flyteidl.plugins.sagemaker.ContinuousParameterRange --------------------------------------------------- -`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_ .. code-block:: json @@ -41,7 +41,7 @@ scaling_type flyteidl.plugins.sagemaker.IntegerParameterRange ------------------------------------------------ -`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_ .. code-block:: json @@ -74,7 +74,7 @@ scaling_type flyteidl.plugins.sagemaker.CategoricalParameterRange ---------------------------------------------------- -`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_ .. code-block:: json @@ -95,7 +95,7 @@ values flyteidl.plugins.sagemaker.ParameterRangeOneOf ---------------------------------------------- -`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_ +`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_ .. code-block:: json @@ -137,7 +137,7 @@ categorical_parameter_range flyteidl.plugins.sagemaker.ParameterRanges ------------------------------------------ -`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ +`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ .. code-block:: json @@ -157,7 +157,7 @@ parameter_range_map Enum flyteidl.plugins.sagemaker.HyperparameterScalingType --------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.AUTO: diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst similarity index 54% rename from gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst rename to gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst index ff478bb1a..c9ac2033b 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst @@ -1,38 +1,38 @@ -.. _api_file_flyteidl/plugins/sagemaker/trainingjob.proto: +.. _api_file_flyteidl/plugins/sagemaker/training_job.proto: -trainingjob.proto -============================================ +training_job.proto +============================================= .. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification: flyteidl.plugins.sagemaker.AlgorithmSpecification ------------------------------------------------- -`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ .. code-block:: json { - "training_image": "...", - "training_input_mode": "...", + "input_mode": "...", "algorithm_name": "...", + "algorithm_version": "...", "metric_definitions": [] } -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode: -training_image - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode: - -training_input_mode - (`string `_) +input_mode + (:ref:`flyteidl.plugins.sagemaker.InputMode `) .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name: algorithm_name + (:ref:`flyteidl.plugins.sagemaker.AlgorithmName `) + +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version: + +algorithm_version (`string `_) .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions: @@ -45,7 +45,7 @@ metric_definitions flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition ------------------------------------------------------------------ -`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ .. code-block:: json @@ -68,41 +68,35 @@ regex -.. _api_msg_flyteidl.plugins.sagemaker.ResourceConfig: +.. _api_msg_flyteidl.plugins.sagemaker.TrainingJobConfig: -flyteidl.plugins.sagemaker.ResourceConfig ------------------------------------------ +flyteidl.plugins.sagemaker.TrainingJobConfig +-------------------------------------------- -`[flyteidl.plugins.sagemaker.ResourceConfig proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobConfig proto] `_ .. code-block:: json { - "instance_type": "...", "instance_count": "...", - "volume_size_in_gb": "...", - "volume_kms_key_id": "..." + "instance_type": "...", + "volume_size_in_gb": "..." } -.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.instance_type: - -instance_type - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.instance_count: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count: instance_count (`int64 `_) -.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.volume_size_in_gb: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type: -volume_size_in_gb - (`int64 `_) +instance_type + (`string `_) -.. _api_field_flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb: -volume_kms_key_id +volume_size_in_gb (`string `_) @@ -112,7 +106,7 @@ volume_kms_key_id flyteidl.plugins.sagemaker.StoppingCondition -------------------------------------------- -`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ +`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ .. code-block:: json @@ -134,86 +128,72 @@ max_wait_time_in_seconds -.. _api_msg_flyteidl.plugins.sagemaker.VpcConfig: +.. _api_msg_flyteidl.plugins.sagemaker.TrainingJob: -flyteidl.plugins.sagemaker.VpcConfig ------------------------------------- +flyteidl.plugins.sagemaker.TrainingJob +-------------------------------------- -`[flyteidl.plugins.sagemaker.VpcConfig proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ .. code-block:: json { - "security_group_ids": [], - "subnets": [] + "algorithm_specification": "{...}", + "training_job_config": "{...}", + "interruptible": "..." } -.. _api_field_flyteidl.plugins.sagemaker.VpcConfig.security_group_ids: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification: -security_group_ids - (`string `_) +algorithm_specification + (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification `) -.. _api_field_flyteidl.plugins.sagemaker.VpcConfig.subnets: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.training_job_config: -subnets - (`string `_) +training_job_config + (:ref:`flyteidl.plugins.sagemaker.TrainingJobConfig `) +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.interruptible: +interruptible + (`bool `_) + -.. _api_msg_flyteidl.plugins.sagemaker.TrainingJob: - -flyteidl.plugins.sagemaker.TrainingJob --------------------------------------- - -`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ +.. _api_enum_flyteidl.plugins.sagemaker.InputMode: +Enum flyteidl.plugins.sagemaker.InputMode +----------------------------------------- -.. code-block:: json +`[flyteidl.plugins.sagemaker.InputMode proto] `_ - { - "region": "...", - "role_arn": "...", - "algorithm_specification": "{...}", - "resource_config": "{...}", - "stopping_condition": "{...}", - "vpc_config": "{...}", - "enable_spot_training": "..." - } -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.region: +.. _api_enum_value_flyteidl.plugins.sagemaker.InputMode.FILE: -region - (`string `_) +FILE + *(DEFAULT)* ⁣ -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.role_arn: +.. _api_enum_value_flyteidl.plugins.sagemaker.InputMode.PIPE: -role_arn - (`string `_) +PIPE + ⁣ -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification: -algorithm_specification - (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification `) - -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.resource_config: +.. _api_enum_flyteidl.plugins.sagemaker.AlgorithmName: -resource_config - (:ref:`flyteidl.plugins.sagemaker.ResourceConfig `) - -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.stopping_condition: +Enum flyteidl.plugins.sagemaker.AlgorithmName +--------------------------------------------- -stopping_condition - (:ref:`flyteidl.plugins.sagemaker.StoppingCondition `) - -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.vpc_config: +`[flyteidl.plugins.sagemaker.AlgorithmName proto] `_ -vpc_config - (:ref:`flyteidl.plugins.sagemaker.VpcConfig `) - -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.enable_spot_training: -enable_spot_training - (`bool `_) +.. _api_enum_value_flyteidl.plugins.sagemaker.AlgorithmName.CUSTOM: + +CUSTOM + *(DEFAULT)* ⁣ +.. _api_enum_value_flyteidl.plugins.sagemaker.AlgorithmName.XGBOOST: +XGBOOST + ⁣ + diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py new file mode 100644 index 000000000..e00cdfb47 --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py @@ -0,0 +1,268 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/sagemaker/hpo_job.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.plugins.sagemaker import parameter_ranges_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2 +from flyteidl.plugins.sagemaker import training_job_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/plugins/sagemaker/hpo_job.proto', + package='flyteidl.plugins.sagemaker', + syntax='proto3', + serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), + serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xe1\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\",\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + , + dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,]) + + + +_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE = _descriptor.EnumDescriptor( + name='HyperparameterTuningObjectiveType', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='MINIMIZE', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MAXIMIZE', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=342, + serialized_end=405, +) +_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE) + +_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY = _descriptor.EnumDescriptor( + name='HyperparameterTuningStrategy', + full_name='flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='BAYESIAN', index=0, number=0, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=941, + serialized_end=985, +) +_sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY) + +_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE = _descriptor.EnumDescriptor( + name='TrainingJobEarlyStoppingType', + full_name='flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='OFF', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AUTO', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=987, + serialized_end=1036, +) +_sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE) + + +_HYPERPARAMETERTUNINGOBJECTIVE = _descriptor.Descriptor( + name='HyperparameterTuningObjective', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='objective_type', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='metric_name', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=171, + serialized_end=405, +) + + +_HPOJOB = _descriptor.Descriptor( + name='HPOJob', + full_name='flyteidl.plugins.sagemaker.HPOJob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='training_job', full_name='flyteidl.plugins.sagemaker.HPOJob.training_job', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_number_of_training_jobs', full_name='flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_parallel_training_jobs', full_name='flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=408, + serialized_end=552, +) + + +_HPOJOBCONFIG = _descriptor.Descriptor( + name='HPOJobConfig', + full_name='flyteidl.plugins.sagemaker.HPOJobConfig', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='hyperparameter_ranges', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tuning_strategy', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tuning_objective', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='training_job_early_stopping_type', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY, + _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=555, + serialized_end=1036, +) + +_HYPERPARAMETERTUNINGOBJECTIVE.fields_by_name['objective_type'].enum_type = _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE +_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE.containing_type = _HYPERPARAMETERTUNINGOBJECTIVE +_HPOJOB.fields_by_name['training_job'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2._TRAININGJOB +_HPOJOBCONFIG.fields_by_name['hyperparameter_ranges'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2._PARAMETERRANGES +_HPOJOBCONFIG.fields_by_name['tuning_strategy'].enum_type = _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY +_HPOJOBCONFIG.fields_by_name['tuning_objective'].message_type = _HYPERPARAMETERTUNINGOBJECTIVE +_HPOJOBCONFIG.fields_by_name['training_job_early_stopping_type'].enum_type = _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE +_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY.containing_type = _HPOJOBCONFIG +_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE.containing_type = _HPOJOBCONFIG +DESCRIPTOR.message_types_by_name['HyperparameterTuningObjective'] = _HYPERPARAMETERTUNINGOBJECTIVE +DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB +DESCRIPTOR.message_types_by_name['HPOJobConfig'] = _HPOJOBCONFIG +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +HyperparameterTuningObjective = _reflection.GeneratedProtocolMessageType('HyperparameterTuningObjective', (_message.Message,), dict( + DESCRIPTOR = _HYPERPARAMETERTUNINGOBJECTIVE, + __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + )) +_sym_db.RegisterMessage(HyperparameterTuningObjective) + +HPOJob = _reflection.GeneratedProtocolMessageType('HPOJob', (_message.Message,), dict( + DESCRIPTOR = _HPOJOB, + __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) + )) +_sym_db.RegisterMessage(HPOJob) + +HPOJobConfig = _reflection.GeneratedProtocolMessageType('HPOJobConfig', (_message.Message,), dict( + DESCRIPTOR = _HPOJOBCONFIG, + __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) + )) +_sym_db.RegisterMessage(HPOJobConfig) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2_grpc.py similarity index 100% rename from gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2_grpc.py rename to gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2_grpc.py diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py deleted file mode 100644 index 80b5c49f5..000000000 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py +++ /dev/null @@ -1,160 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/sagemaker/hpojob.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.plugins.sagemaker import parameterranges_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2 -from flyteidl.plugins.sagemaker import trainingjob_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='flyteidl/plugins/sagemaker/hpojob.proto', - package='flyteidl.plugins.sagemaker', - syntax='proto3', - serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n\'flyteidl/plugins/sagemaker/hpojob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x30\x66lyteidl/plugins/sagemaker/parameterranges.proto\x1a,flyteidl/plugins/sagemaker/trainingjob.proto\"\xb2\x01\n\x0fHPOJobObjective\x12W\n\x0eobjective_type\x18\x01 \x01(\x0e\x32?.flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"1\n\x13HPOJobObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12#\n\x1bmax_number_of_training_jobs\x18\x01 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x02 \x01(\x03\x12=\n\x0ctraining_job\x18\x03 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJobB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') - , - dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2.DESCRIPTOR,]) - - - -_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE = _descriptor.EnumDescriptor( - name='HPOJobObjectiveType', - full_name='flyteidl.plugins.sagemaker.HPOJobObjective.HPOJobObjectiveType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='MINIMIZE', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MAXIMIZE', index=1, number=1, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=297, - serialized_end=346, -) -_sym_db.RegisterEnumDescriptor(_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE) - - -_HPOJOBOBJECTIVE = _descriptor.Descriptor( - name='HPOJobObjective', - full_name='flyteidl.plugins.sagemaker.HPOJobObjective', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='objective_type', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.objective_type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metric_name', full_name='flyteidl.plugins.sagemaker.HPOJobObjective.metric_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=168, - serialized_end=346, -) - - -_HPOJOB = _descriptor.Descriptor( - name='HPOJob', - full_name='flyteidl.plugins.sagemaker.HPOJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='max_number_of_training_jobs', full_name='flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_parallel_training_jobs', full_name='flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='training_job', full_name='flyteidl.plugins.sagemaker.HPOJob.training_job', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=349, - serialized_end=493, -) - -_HPOJOBOBJECTIVE.fields_by_name['objective_type'].enum_type = _HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE -_HPOJOBOBJECTIVE_HPOJOBOBJECTIVETYPE.containing_type = _HPOJOBOBJECTIVE -_HPOJOB.fields_by_name['training_job'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2._TRAININGJOB -DESCRIPTOR.message_types_by_name['HPOJobObjective'] = _HPOJOBOBJECTIVE -DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -HPOJobObjective = _reflection.GeneratedProtocolMessageType('HPOJobObjective', (_message.Message,), dict( - DESCRIPTOR = _HPOJOBOBJECTIVE, - __module__ = 'flyteidl.plugins.sagemaker.hpojob_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobObjective) - )) -_sym_db.RegisterMessage(HPOJobObjective) - -HPOJob = _reflection.GeneratedProtocolMessageType('HPOJob', (_message.Message,), dict( - DESCRIPTOR = _HPOJOB, - __module__ = 'flyteidl.plugins.sagemaker.hpojob_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) - )) -_sym_db.RegisterMessage(HPOJob) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py similarity index 84% rename from gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py rename to gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py index 043c4b72e..896671ffe 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/sagemaker/parameterranges.proto +# source: flyteidl/plugins/sagemaker/parameter_ranges.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='flyteidl/plugins/sagemaker/parameterranges.proto', + name='flyteidl/plugins/sagemaker/parameter_ranges.proto', package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n0flyteidl/plugins/sagemaker/parameterranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x8d\x01\n\x18\x43ontinuousParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x01\x12\x11\n\tmin_value\x18\x02 \x01(\x01\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x8a\x01\n\x15IntegerParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x03\x12\x11\n\tmin_value\x18\x02 \x01(\x03\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"+\n\x19\x43\x61tegoricalParameterRange\x12\x0e\n\x06values\x18\x01 \x03(\t\"\xbd\x02\n\x13ParameterRangeOneOf\x12Z\n\x1a\x63ontinuous_parameter_range\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00\x12T\n\x17integer_parameter_range\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00\x12\\\n\x1b\x63\x61tegorical_parameter_range\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00\x42\x16\n\x14parameter_range_type\"\xdd\x01\n\x0fParameterRanges\x12_\n\x13parameter_range_map\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry\x1ai\n\x16ParameterRangeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOf:\x02\x38\x01*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n1flyteidl/plugins/sagemaker/parameter_ranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x8d\x01\n\x18\x43ontinuousParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x01\x12\x11\n\tmin_value\x18\x02 \x01(\x01\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x8a\x01\n\x15IntegerParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x03\x12\x11\n\tmin_value\x18\x02 \x01(\x03\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"+\n\x19\x43\x61tegoricalParameterRange\x12\x0e\n\x06values\x18\x01 \x03(\t\"\xbd\x02\n\x13ParameterRangeOneOf\x12Z\n\x1a\x63ontinuous_parameter_range\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00\x12T\n\x17integer_parameter_range\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00\x12\\\n\x1b\x63\x61tegorical_parameter_range\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00\x42\x16\n\x14parameter_range_type\"\xdd\x01\n\x0fParameterRanges\x12_\n\x13parameter_range_map\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry\x1ai\n\x16ParameterRangeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOf:\x02\x38\x01*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') ) _HYPERPARAMETERSCALINGTYPE = _descriptor.EnumDescriptor( @@ -49,8 +49,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=954, - serialized_end=1044, + serialized_start=955, + serialized_end=1045, ) _sym_db.RegisterEnumDescriptor(_HYPERPARAMETERSCALINGTYPE) @@ -102,8 +102,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=81, - serialized_end=222, + serialized_start=82, + serialized_end=223, ) @@ -147,8 +147,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=225, - serialized_end=363, + serialized_start=226, + serialized_end=364, ) @@ -178,8 +178,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=365, - serialized_end=408, + serialized_start=366, + serialized_end=409, ) @@ -226,8 +226,8 @@ name='parameter_range_type', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.parameter_range_type', index=0, containing_type=None, fields=[]), ], - serialized_start=411, - serialized_end=728, + serialized_start=412, + serialized_end=729, ) @@ -264,8 +264,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=847, - serialized_end=952, + serialized_start=848, + serialized_end=953, ) _PARAMETERRANGES = _descriptor.Descriptor( @@ -294,8 +294,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=731, - serialized_end=952, + serialized_start=732, + serialized_end=953, ) _CONTINUOUSPARAMETERRANGE.fields_by_name['scaling_type'].enum_type = _HYPERPARAMETERSCALINGTYPE @@ -325,28 +325,28 @@ ContinuousParameterRange = _reflection.GeneratedProtocolMessageType('ContinuousParameterRange', (_message.Message,), dict( DESCRIPTOR = _CONTINUOUSPARAMETERRANGE, - __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) )) _sym_db.RegisterMessage(ContinuousParameterRange) IntegerParameterRange = _reflection.GeneratedProtocolMessageType('IntegerParameterRange', (_message.Message,), dict( DESCRIPTOR = _INTEGERPARAMETERRANGE, - __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) )) _sym_db.RegisterMessage(IntegerParameterRange) CategoricalParameterRange = _reflection.GeneratedProtocolMessageType('CategoricalParameterRange', (_message.Message,), dict( DESCRIPTOR = _CATEGORICALPARAMETERRANGE, - __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) )) _sym_db.RegisterMessage(CategoricalParameterRange) ParameterRangeOneOf = _reflection.GeneratedProtocolMessageType('ParameterRangeOneOf', (_message.Message,), dict( DESCRIPTOR = _PARAMETERRANGEONEOF, - __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) )) _sym_db.RegisterMessage(ParameterRangeOneOf) @@ -355,12 +355,12 @@ ParameterRangeMapEntry = _reflection.GeneratedProtocolMessageType('ParameterRangeMapEntry', (_message.Message,), dict( DESCRIPTOR = _PARAMETERRANGES_PARAMETERRANGEMAPENTRY, - __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry) )) , DESCRIPTOR = _PARAMETERRANGES, - __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) )) _sym_db.RegisterMessage(ParameterRanges) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2_grpc.py similarity index 100% rename from gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2_grpc.py rename to gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2_grpc.py diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py similarity index 55% rename from gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py rename to gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py index 92d23e7f4..57ff1969f 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/sagemaker/trainingjob.proto +# source: flyteidl/plugins/sagemaker/training_job.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -16,13 +17,63 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='flyteidl/plugins/sagemaker/trainingjob.proto', + name='flyteidl/plugins/sagemaker/training_job.proto', package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n,flyteidl/plugins/sagemaker/trainingjob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xf7\x01\n\x16\x41lgorithmSpecification\x12\x16\n\x0etraining_image\x18\x01 \x01(\t\x12\x1b\n\x13training_input_mode\x18\x02 \x01(\t\x12\x16\n\x0e\x61lgorithm_name\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"u\n\x0eResourceConfig\x12\x15\n\rinstance_type\x18\x01 \x01(\t\x12\x16\n\x0einstance_count\x18\x02 \x01(\x03\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\x12\x19\n\x11volume_kms_key_id\x18\x04 \x01(\t\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"8\n\tVpcConfig\x12\x1a\n\x12security_group_ids\x18\x01 \x03(\t\x12\x0f\n\x07subnets\x18\x02 \x03(\t\"\xed\x02\n\x0bTrainingJob\x12\x0e\n\x06region\x18\x01 \x01(\t\x12\x10\n\x08role_arn\x18\x02 \x01(\t\x12S\n\x17\x61lgorithm_specification\x18\x03 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12\x43\n\x0fresource_config\x18\x04 \x01(\x0b\x32*.flyteidl.plugins.sagemaker.ResourceConfig\x12I\n\x12stopping_condition\x18\x05 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.StoppingCondition\x12\x39\n\nvpc_config\x18\x06 \x01(\x0b\x32%.flyteidl.plugins.sagemaker.VpcConfig\x12\x1c\n\x14\x65nable_spot_training\x18\x07 \x01(\x08\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xc3\x02\n\x16\x41lgorithmSpecification\x12\x39\n\ninput_mode\x18\x01 \x01(\x0e\x32%.flyteidl.plugins.sagemaker.InputMode\x12\x41\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32).flyteidl.plugins.sagemaker.AlgorithmName\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"]\n\x11TrainingJobConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\t\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"\xc5\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12J\n\x13training_job_config\x18\x02 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.TrainingJobConfig\x12\x15\n\rinterruptible\x18\x04 \x01(\x08*\x1f\n\tInputMode\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01*(\n\rAlgorithmName\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') ) +_INPUTMODE = _descriptor.EnumDescriptor( + name='InputMode', + full_name='flyteidl.plugins.sagemaker.InputMode', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='FILE', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PIPE', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=785, + serialized_end=816, +) +_sym_db.RegisterEnumDescriptor(_INPUTMODE) + +InputMode = enum_type_wrapper.EnumTypeWrapper(_INPUTMODE) +_ALGORITHMNAME = _descriptor.EnumDescriptor( + name='AlgorithmName', + full_name='flyteidl.plugins.sagemaker.AlgorithmName', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='CUSTOM', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='XGBOOST', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=818, + serialized_end=858, +) +_sym_db.RegisterEnumDescriptor(_ALGORITHMNAME) + +AlgorithmName = enum_type_wrapper.EnumTypeWrapper(_ALGORITHMNAME) +FILE = 0 +PIPE = 1 +CUSTOM = 0 +XGBOOST = 1 @@ -59,8 +110,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=277, - serialized_end=324, + serialized_start=354, + serialized_end=401, ) _ALGORITHMSPECIFICATION = _descriptor.Descriptor( @@ -71,21 +122,21 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='training_image', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.training_image', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + name='input_mode', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='training_input_mode', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.training_input_mode', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + name='algorithm_name', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='algorithm_name', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name', index=2, + name='algorithm_version', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -110,42 +161,35 @@ extension_ranges=[], oneofs=[ ], - serialized_start=77, - serialized_end=324, + serialized_start=78, + serialized_end=401, ) -_RESOURCECONFIG = _descriptor.Descriptor( - name='ResourceConfig', - full_name='flyteidl.plugins.sagemaker.ResourceConfig', +_TRAININGJOBCONFIG = _descriptor.Descriptor( + name='TrainingJobConfig', + full_name='flyteidl.plugins.sagemaker.TrainingJobConfig', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='instance_type', full_name='flyteidl.plugins.sagemaker.ResourceConfig.instance_type', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance_count', full_name='flyteidl.plugins.sagemaker.ResourceConfig.instance_count', index=1, - number=2, type=3, cpp_type=2, label=1, + name='instance_count', full_name='flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count', index=0, + number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='volume_size_in_gb', full_name='flyteidl.plugins.sagemaker.ResourceConfig.volume_size_in_gb', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + name='instance_type', full_name='flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='volume_kms_key_id', full_name='flyteidl.plugins.sagemaker.ResourceConfig.volume_kms_key_id', index=3, - number=4, type=9, cpp_type=9, label=1, + name='volume_size_in_gb', full_name='flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb', index=2, + number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -162,8 +206,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=326, - serialized_end=443, + serialized_start=403, + serialized_end=496, ) @@ -200,46 +244,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=445, - serialized_end=530, -) - - -_VPCCONFIG = _descriptor.Descriptor( - name='VpcConfig', - full_name='flyteidl.plugins.sagemaker.VpcConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='security_group_ids', full_name='flyteidl.plugins.sagemaker.VpcConfig.security_group_ids', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='subnets', full_name='flyteidl.plugins.sagemaker.VpcConfig.subnets', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=532, - serialized_end=588, + serialized_start=498, + serialized_end=583, ) @@ -251,50 +257,22 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='region', full_name='flyteidl.plugins.sagemaker.TrainingJob.region', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='role_arn', full_name='flyteidl.plugins.sagemaker.TrainingJob.role_arn', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='algorithm_specification', full_name='flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification', index=2, - number=3, type=11, cpp_type=10, label=1, + name='algorithm_specification', full_name='flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification', index=0, + number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='resource_config', full_name='flyteidl.plugins.sagemaker.TrainingJob.resource_config', index=3, - number=4, type=11, cpp_type=10, label=1, + name='training_job_config', full_name='flyteidl.plugins.sagemaker.TrainingJob.training_job_config', index=1, + number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='stopping_condition', full_name='flyteidl.plugins.sagemaker.TrainingJob.stopping_condition', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='vpc_config', full_name='flyteidl.plugins.sagemaker.TrainingJob.vpc_config', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enable_spot_training', full_name='flyteidl.plugins.sagemaker.TrainingJob.enable_spot_training', index=6, - number=7, type=8, cpp_type=7, label=1, + name='interruptible', full_name='flyteidl.plugins.sagemaker.TrainingJob.interruptible', index=2, + number=4, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -311,62 +289,56 @@ extension_ranges=[], oneofs=[ ], - serialized_start=591, - serialized_end=956, + serialized_start=586, + serialized_end=783, ) _ALGORITHMSPECIFICATION_METRICDEFINITION.containing_type = _ALGORITHMSPECIFICATION +_ALGORITHMSPECIFICATION.fields_by_name['input_mode'].enum_type = _INPUTMODE +_ALGORITHMSPECIFICATION.fields_by_name['algorithm_name'].enum_type = _ALGORITHMNAME _ALGORITHMSPECIFICATION.fields_by_name['metric_definitions'].message_type = _ALGORITHMSPECIFICATION_METRICDEFINITION _TRAININGJOB.fields_by_name['algorithm_specification'].message_type = _ALGORITHMSPECIFICATION -_TRAININGJOB.fields_by_name['resource_config'].message_type = _RESOURCECONFIG -_TRAININGJOB.fields_by_name['stopping_condition'].message_type = _STOPPINGCONDITION -_TRAININGJOB.fields_by_name['vpc_config'].message_type = _VPCCONFIG +_TRAININGJOB.fields_by_name['training_job_config'].message_type = _TRAININGJOBCONFIG DESCRIPTOR.message_types_by_name['AlgorithmSpecification'] = _ALGORITHMSPECIFICATION -DESCRIPTOR.message_types_by_name['ResourceConfig'] = _RESOURCECONFIG +DESCRIPTOR.message_types_by_name['TrainingJobConfig'] = _TRAININGJOBCONFIG DESCRIPTOR.message_types_by_name['StoppingCondition'] = _STOPPINGCONDITION -DESCRIPTOR.message_types_by_name['VpcConfig'] = _VPCCONFIG DESCRIPTOR.message_types_by_name['TrainingJob'] = _TRAININGJOB +DESCRIPTOR.enum_types_by_name['InputMode'] = _INPUTMODE +DESCRIPTOR.enum_types_by_name['AlgorithmName'] = _ALGORITHMNAME _sym_db.RegisterFileDescriptor(DESCRIPTOR) AlgorithmSpecification = _reflection.GeneratedProtocolMessageType('AlgorithmSpecification', (_message.Message,), dict( MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict( DESCRIPTOR = _ALGORITHMSPECIFICATION_METRICDEFINITION, - __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) )) , DESCRIPTOR = _ALGORITHMSPECIFICATION, - __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) )) _sym_db.RegisterMessage(AlgorithmSpecification) _sym_db.RegisterMessage(AlgorithmSpecification.MetricDefinition) -ResourceConfig = _reflection.GeneratedProtocolMessageType('ResourceConfig', (_message.Message,), dict( - DESCRIPTOR = _RESOURCECONFIG, - __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ResourceConfig) +TrainingJobConfig = _reflection.GeneratedProtocolMessageType('TrainingJobConfig', (_message.Message,), dict( + DESCRIPTOR = _TRAININGJOBCONFIG, + __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) )) -_sym_db.RegisterMessage(ResourceConfig) +_sym_db.RegisterMessage(TrainingJobConfig) StoppingCondition = _reflection.GeneratedProtocolMessageType('StoppingCondition', (_message.Message,), dict( DESCRIPTOR = _STOPPINGCONDITION, - __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) )) _sym_db.RegisterMessage(StoppingCondition) -VpcConfig = _reflection.GeneratedProtocolMessageType('VpcConfig', (_message.Message,), dict( - DESCRIPTOR = _VPCCONFIG, - __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.VpcConfig) - )) -_sym_db.RegisterMessage(VpcConfig) - TrainingJob = _reflection.GeneratedProtocolMessageType('TrainingJob', (_message.Message,), dict( DESCRIPTOR = _TRAININGJOB, - __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) )) _sym_db.RegisterMessage(TrainingJob) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2_grpc.py similarity index 100% rename from gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2_grpc.py rename to gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2_grpc.py diff --git a/protos/flyteidl/plugins/sagemaker/hpo_job.proto b/protos/flyteidl/plugins/sagemaker/hpo_job.proto new file mode 100644 index 000000000..65bce733b --- /dev/null +++ b/protos/flyteidl/plugins/sagemaker/hpo_job.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; + +package flyteidl.plugins.sagemaker; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; + +import "flyteidl/plugins/sagemaker/parameter_ranges.proto"; +import "flyteidl/plugins/sagemaker/training_job.proto"; + +message HyperparameterTuningObjective { + enum HyperparameterTuningObjectiveType { + MINIMIZE = 0; + MAXIMIZE = 1; + } + + HyperparameterTuningObjectiveType objective_type = 1; + string metric_name = 2; +} + +message HPOJob { + TrainingJob training_job = 1; // TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! + int64 max_number_of_training_jobs = 2; + int64 max_parallel_training_jobs = 3; +} + +message HPOJobConfig { + ParameterRanges hyperparameter_ranges = 1; + + enum HyperparameterTuningStrategy { + BAYESIAN = 0; + } + + HyperparameterTuningStrategy tuning_strategy = 2; + HyperparameterTuningObjective tuning_objective = 3; + + enum TrainingJobEarlyStoppingType { + OFF = 0; + AUTO = 1; + } + TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; +} \ No newline at end of file diff --git a/protos/flyteidl/plugins/sagemaker/hpojob.proto b/protos/flyteidl/plugins/sagemaker/hpojob.proto deleted file mode 100644 index 4bac73d40..000000000 --- a/protos/flyteidl/plugins/sagemaker/hpojob.proto +++ /dev/null @@ -1,24 +0,0 @@ -syntax = "proto3"; - -package flyteidl.plugins.sagemaker; - -option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; - -import "flyteidl/plugins/sagemaker/parameterranges.proto"; -import "flyteidl/plugins/sagemaker/trainingjob.proto"; - -message HPOJobObjective { - enum HPOJobObjectiveType { - MINIMIZE = 0; - MAXIMIZE = 1; - } - - HPOJobObjectiveType objective_type = 1; - string metric_name = 2; -} - -message HPOJob { - int64 max_number_of_training_jobs = 1; - int64 max_parallel_training_jobs = 2; - TrainingJob training_job = 3; // TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! -} diff --git a/protos/flyteidl/plugins/sagemaker/parameterranges.proto b/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto similarity index 100% rename from protos/flyteidl/plugins/sagemaker/parameterranges.proto rename to protos/flyteidl/plugins/sagemaker/parameter_ranges.proto diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto new file mode 100644 index 000000000..589b9484d --- /dev/null +++ b/protos/flyteidl/plugins/sagemaker/training_job.proto @@ -0,0 +1,45 @@ +syntax = "proto3"; + +package flyteidl.plugins.sagemaker; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; + + +enum InputMode { + FILE = 0; + PIPE = 1; +} + +enum AlgorithmName { + CUSTOM = 0; + XGBOOST = 1; +} + +message AlgorithmSpecification { + InputMode input_mode = 1; + AlgorithmName algorithm_name = 2; + string algorithm_version = 3; + + message MetricDefinition { + string name = 1; + string regex = 2; + } + repeated MetricDefinition metric_definitions = 4; +} + +message TrainingJobConfig { + int64 instance_count = 1; // For multi-node training, not multi-GPU training + string instance_type = 2; + string volume_size_in_gb = 3; +} + +message StoppingCondition { + int64 max_runtime_in_seconds = 1; + int64 max_wait_time_in_seconds = 2; +} + +message TrainingJob { + AlgorithmSpecification algorithm_specification = 1; + TrainingJobConfig training_job_config = 2; + bool interruptible = 4; +} \ No newline at end of file diff --git a/protos/flyteidl/plugins/sagemaker/trainingjob.proto b/protos/flyteidl/plugins/sagemaker/trainingjob.proto deleted file mode 100644 index 8c716cb13..000000000 --- a/protos/flyteidl/plugins/sagemaker/trainingjob.proto +++ /dev/null @@ -1,45 +0,0 @@ -syntax = "proto3"; - -package flyteidl.plugins.sagemaker; - -option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; - - -message AlgorithmSpecification { - string training_image = 1; // TODO: will this change output? should it be an input instead of a part of the task spec? - string training_input_mode = 2; - string algorithm_name = 3; // TODO: will this change output? should it be an input instead of a part of the task spec? - - message MetricDefinition { - string name = 1; - string regex = 2; - } - repeated MetricDefinition metric_definitions = 4; -} - -message ResourceConfig { - string instance_type = 1; - int64 instance_count = 2; - int64 volume_size_in_gb = 3; - string volume_kms_key_id = 4; -} - -message StoppingCondition { - int64 max_runtime_in_seconds = 1; - int64 max_wait_time_in_seconds = 2; -} - -message VpcConfig { - repeated string security_group_ids = 1; - repeated string subnets = 2; -} - -message TrainingJob { - string region = 1; - string role_arn = 2; - AlgorithmSpecification algorithm_specification = 3; - ResourceConfig resource_config = 4; - StoppingCondition stopping_condition = 5; - VpcConfig vpc_config = 6; - bool enable_spot_training = 7; -} \ No newline at end of file From ec2485aa6dffaca6556ae2d8d180c338a84010ec Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Fri, 19 Jun 2020 10:55:01 -0700 Subject: [PATCH 13/64] bump version to 0.17.33b4 --- package.json | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7fdc4b2d7..98ecc0129 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.17.33b3", + "version": "0.17.33b4", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/setup.py b/setup.py index b300e3175..eb59310a6 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.17.33b3' +__version__ = '0.17.33b4' setup( name='flyteidl', From 2755fee83aa80e838a3e74b559ad4da2b5719040 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Tue, 23 Jun 2020 21:59:44 -0700 Subject: [PATCH 14/64] changing type of volume_size_in_gb from string to int64 --- .../plugins/sagemaker/training_job.pb.cc | 97 +++++-------- .../plugins/sagemaker/training_job.pb.h | 73 ++-------- .../plugins/sagemaker/training_job.pb.go | 40 +++--- .../sagemaker/TrainingJobOuterClass.java | 134 ++++-------------- .../plugins/sagemaker/training_job.proto.rst | 2 +- .../plugins/sagemaker/training_job_pb2.py | 6 +- .../plugins/sagemaker/training_job.proto | 2 +- 7 files changed, 104 insertions(+), 250 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc index b09bcea7f..d12672edc 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc @@ -206,7 +206,7 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5 "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(" "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count" "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_" - "size_in_gb\030\003 \001(\t\"U\n\021StoppingCondition\022\036\n" + "size_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n" "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai" "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022" "S\n\027algorithm_specification\030\001 \001(\01322.flyte" @@ -1119,11 +1119,9 @@ TrainingJobConfig::TrainingJobConfig(const TrainingJobConfig& from) if (from.instance_type().size() > 0) { instance_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instance_type_); } - volume_size_in_gb_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.volume_size_in_gb().size() > 0) { - volume_size_in_gb_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volume_size_in_gb_); - } - instance_count_ = from.instance_count_; + ::memcpy(&instance_count_, &from.instance_count_, + static_cast(reinterpret_cast(&volume_size_in_gb_) - + reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJobConfig) } @@ -1131,8 +1129,9 @@ void TrainingJobConfig::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); instance_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - volume_size_in_gb_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - instance_count_ = PROTOBUF_LONGLONG(0); + ::memset(&instance_count_, 0, static_cast( + reinterpret_cast(&volume_size_in_gb_) - + reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); } TrainingJobConfig::~TrainingJobConfig() { @@ -1142,7 +1141,6 @@ TrainingJobConfig::~TrainingJobConfig() { void TrainingJobConfig::SharedDtor() { instance_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - volume_size_in_gb_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void TrainingJobConfig::SetCachedSize(int size) const { @@ -1161,8 +1159,9 @@ void TrainingJobConfig::Clear() { (void) cached_has_bits; instance_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - volume_size_in_gb_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - instance_count_ = PROTOBUF_LONGLONG(0); + ::memset(&instance_count_, 0, static_cast( + reinterpret_cast(&volume_size_in_gb_) - + reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); _internal_metadata_.Clear(); } @@ -1202,20 +1201,11 @@ const char* TrainingJobConfig::_InternalParse(const char* begin, const char* end ptr += size; break; } - // string volume_size_in_gb = 3; + // int64 volume_size_in_gb = 3; case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_volume_size_in_gb(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb"); - object = msg->mutable_volume_size_in_gb(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; break; } default: { @@ -1280,15 +1270,13 @@ bool TrainingJobConfig::MergePartialFromCodedStream( break; } - // string volume_size_in_gb = 3; + // int64 volume_size_in_gb = 3; case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_volume_size_in_gb())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->volume_size_in_gb().data(), static_cast(this->volume_size_in_gb().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb")); + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &volume_size_in_gb_))); } else { goto handle_unusual; } @@ -1337,14 +1325,9 @@ void TrainingJobConfig::SerializeWithCachedSizes( 2, this->instance_type(), output); } - // string volume_size_in_gb = 3; - if (this->volume_size_in_gb().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->volume_size_in_gb().data(), static_cast(this->volume_size_in_gb().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->volume_size_in_gb(), output); + // int64 volume_size_in_gb = 3; + if (this->volume_size_in_gb() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->volume_size_in_gb(), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -1376,15 +1359,9 @@ ::google::protobuf::uint8* TrainingJobConfig::InternalSerializeWithCachedSizesTo 2, this->instance_type(), target); } - // string volume_size_in_gb = 3; - if (this->volume_size_in_gb().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->volume_size_in_gb().data(), static_cast(this->volume_size_in_gb().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->volume_size_in_gb(), target); + // int64 volume_size_in_gb = 3; + if (this->volume_size_in_gb() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->volume_size_in_gb(), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -1415,13 +1392,6 @@ size_t TrainingJobConfig::ByteSizeLong() const { this->instance_type()); } - // string volume_size_in_gb = 3; - if (this->volume_size_in_gb().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->volume_size_in_gb()); - } - // int64 instance_count = 1; if (this->instance_count() != 0) { total_size += 1 + @@ -1429,6 +1399,13 @@ size_t TrainingJobConfig::ByteSizeLong() const { this->instance_count()); } + // int64 volume_size_in_gb = 3; + if (this->volume_size_in_gb() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->volume_size_in_gb()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; @@ -1460,13 +1437,12 @@ void TrainingJobConfig::MergeFrom(const TrainingJobConfig& from) { instance_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instance_type_); } - if (from.volume_size_in_gb().size() > 0) { - - volume_size_in_gb_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.volume_size_in_gb_); - } if (from.instance_count() != 0) { set_instance_count(from.instance_count()); } + if (from.volume_size_in_gb() != 0) { + set_volume_size_in_gb(from.volume_size_in_gb()); + } } void TrainingJobConfig::CopyFrom(const ::google::protobuf::Message& from) { @@ -1496,9 +1472,8 @@ void TrainingJobConfig::InternalSwap(TrainingJobConfig* other) { _internal_metadata_.Swap(&other->_internal_metadata_); instance_type_.Swap(&other->instance_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - volume_size_in_gb_.Swap(&other->volume_size_in_gb_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); swap(instance_count_, other->instance_count_); + swap(volume_size_in_gb_, other->volume_size_in_gb_); } ::google::protobuf::Metadata TrainingJobConfig::GetMetadata() const { diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h index e4c4e078f..649108bd6 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h @@ -520,34 +520,26 @@ class TrainingJobConfig final : ::std::string* release_instance_type(); void set_allocated_instance_type(::std::string* instance_type); - // string volume_size_in_gb = 3; - void clear_volume_size_in_gb(); - static const int kVolumeSizeInGbFieldNumber = 3; - const ::std::string& volume_size_in_gb() const; - void set_volume_size_in_gb(const ::std::string& value); - #if LANG_CXX11 - void set_volume_size_in_gb(::std::string&& value); - #endif - void set_volume_size_in_gb(const char* value); - void set_volume_size_in_gb(const char* value, size_t size); - ::std::string* mutable_volume_size_in_gb(); - ::std::string* release_volume_size_in_gb(); - void set_allocated_volume_size_in_gb(::std::string* volume_size_in_gb); - // int64 instance_count = 1; void clear_instance_count(); static const int kInstanceCountFieldNumber = 1; ::google::protobuf::int64 instance_count() const; void set_instance_count(::google::protobuf::int64 value); + // int64 volume_size_in_gb = 3; + void clear_volume_size_in_gb(); + static const int kVolumeSizeInGbFieldNumber = 3; + ::google::protobuf::int64 volume_size_in_gb() const; + void set_volume_size_in_gb(::google::protobuf::int64 value); + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr instance_type_; - ::google::protobuf::internal::ArenaStringPtr volume_size_in_gb_; ::google::protobuf::int64 instance_count_; + ::google::protobuf::int64 volume_size_in_gb_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; @@ -1105,58 +1097,19 @@ inline void TrainingJobConfig::set_allocated_instance_type(::std::string* instan // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) } -// string volume_size_in_gb = 3; +// int64 volume_size_in_gb = 3; inline void TrainingJobConfig::clear_volume_size_in_gb() { - volume_size_in_gb_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + volume_size_in_gb_ = PROTOBUF_LONGLONG(0); } -inline const ::std::string& TrainingJobConfig::volume_size_in_gb() const { +inline ::google::protobuf::int64 TrainingJobConfig::volume_size_in_gb() const { // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) - return volume_size_in_gb_.GetNoArena(); + return volume_size_in_gb_; } -inline void TrainingJobConfig::set_volume_size_in_gb(const ::std::string& value) { +inline void TrainingJobConfig::set_volume_size_in_gb(::google::protobuf::int64 value) { - volume_size_in_gb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + volume_size_in_gb_ = value; // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) } -#if LANG_CXX11 -inline void TrainingJobConfig::set_volume_size_in_gb(::std::string&& value) { - - volume_size_in_gb_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) -} -#endif -inline void TrainingJobConfig::set_volume_size_in_gb(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - volume_size_in_gb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) -} -inline void TrainingJobConfig::set_volume_size_in_gb(const char* value, size_t size) { - - volume_size_in_gb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) -} -inline ::std::string* TrainingJobConfig::mutable_volume_size_in_gb() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) - return volume_size_in_gb_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TrainingJobConfig::release_volume_size_in_gb() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) - - return volume_size_in_gb_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TrainingJobConfig::set_allocated_volume_size_in_gb(::std::string* volume_size_in_gb) { - if (volume_size_in_gb != nullptr) { - - } else { - - } - volume_size_in_gb_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), volume_size_in_gb); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) -} // ------------------------------------------------------------------- diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go index 526b6ef65..58c7b9ca6 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -185,7 +185,7 @@ func (m *AlgorithmSpecification_MetricDefinition) GetRegex() string { type TrainingJobConfig struct { InstanceCount int64 `protobuf:"varint,1,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"` InstanceType string `protobuf:"bytes,2,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` - VolumeSizeInGb string `protobuf:"bytes,3,opt,name=volume_size_in_gb,json=volumeSizeInGb,proto3" json:"volume_size_in_gb,omitempty"` + VolumeSizeInGb int64 `protobuf:"varint,3,opt,name=volume_size_in_gb,json=volumeSizeInGb,proto3" json:"volume_size_in_gb,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -230,11 +230,11 @@ func (m *TrainingJobConfig) GetInstanceType() string { return "" } -func (m *TrainingJobConfig) GetVolumeSizeInGb() string { +func (m *TrainingJobConfig) GetVolumeSizeInGb() int64 { if m != nil { return m.VolumeSizeInGb } - return "" + return 0 } type StoppingCondition struct { @@ -354,7 +354,7 @@ func init() { } var fileDescriptor_6a68f64d8fd9fe30 = []byte{ - // 586 bytes of a gzipped FileDescriptorProto + // 587 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x6f, 0xd3, 0x4c, 0x10, 0xad, 0x9b, 0x7c, 0xfd, 0x9a, 0x09, 0x8d, 0x92, 0x6d, 0x55, 0xa2, 0x5e, 0x88, 0x02, 0x95, 0xd2, 0xa2, 0xda, 0x52, 0x2a, 0x38, 0x71, 0xa1, 0x69, 0xa9, 0x82, 0x28, 0xad, 0x9c, 0xf0, 0x43, @@ -376,20 +376,20 @@ var fileDescriptor_6a68f64d8fd9fe30 = []byte{ 0xf8, 0x5a, 0x79, 0x1d, 0x25, 0x87, 0x18, 0x90, 0x5d, 0xa8, 0xa0, 0x4c, 0x34, 0x93, 0x3e, 0xa7, 0xbe, 0x4a, 0xa5, 0x36, 0x4c, 0x05, 0x77, 0x63, 0x86, 0x76, 0x26, 0x20, 0x79, 0x0c, 0x39, 0x40, 0xf5, 0x38, 0xe2, 0x53, 0xea, 0x07, 0x33, 0xb0, 0x3f, 0x8e, 0x38, 0xd9, 0x83, 0xda, 0xb5, 0x0a, - 0x53, 0xc1, 0x69, 0x82, 0x37, 0x9c, 0xa2, 0xa4, 0x81, 0x37, 0x1d, 0x60, 0x25, 0x73, 0xf4, 0xf0, - 0x86, 0x77, 0xe5, 0xa9, 0xd7, 0xfc, 0x66, 0x41, 0xad, 0xa7, 0x55, 0x14, 0xa1, 0x0c, 0x3a, 0x4a, - 0x0e, 0xb2, 0x66, 0x0e, 0x61, 0x5b, 0xb0, 0x11, 0x8d, 0x53, 0xa9, 0x51, 0x18, 0x82, 0x84, 0xfb, - 0x4a, 0x0e, 0x92, 0x69, 0x51, 0x9b, 0x82, 0x8d, 0xdc, 0xcc, 0xd9, 0x95, 0xbd, 0xcc, 0x45, 0x9e, - 0x43, 0x7d, 0x92, 0xf4, 0x95, 0xa1, 0xa6, 0xcb, 0x69, 0xab, 0x26, 0x6d, 0x4b, 0xb0, 0xd1, 0x07, - 0x86, 0xba, 0x3f, 0x9f, 0xd7, 0xfc, 0x69, 0x41, 0x79, 0x6e, 0x1e, 0xe4, 0x0a, 0x1e, 0xde, 0xca, - 0x9f, 0xcc, 0x8b, 0x63, 0x7e, 0x2f, 0xb7, 0xdb, 0xff, 0x2e, 0xab, 0xbb, 0xcd, 0x7e, 0xbf, 0x03, - 0x9f, 0x61, 0x73, 0x7e, 0xa1, 0xa8, 0x6f, 0xd4, 0x30, 0xf5, 0x96, 0xdb, 0x07, 0xf7, 0x7d, 0x74, - 0x47, 0x42, 0xb7, 0xa6, 0xef, 0xa8, 0xfa, 0x64, 0x22, 0x97, 0xe6, 0x71, 0x9c, 0x46, 0x1a, 0xbd, - 0x90, 0xd7, 0x8b, 0x0d, 0xab, 0xb5, 0xee, 0x2e, 0x82, 0xfb, 0x8f, 0xa0, 0x94, 0xaf, 0x16, 0x59, - 0x87, 0xe2, 0xab, 0xee, 0x9b, 0x93, 0xea, 0xca, 0xc4, 0xba, 0xe8, 0x5e, 0x9c, 0x54, 0xad, 0xfd, - 0x16, 0x6c, 0x2c, 0x6c, 0x0c, 0x01, 0x58, 0xeb, 0xbc, 0xeb, 0xf5, 0xcf, 0xcf, 0xaa, 0x2b, 0xa4, - 0x0c, 0xff, 0x7f, 0x3c, 0x3d, 0x3a, 0x3f, 0xef, 0xf5, 0xab, 0xd6, 0xd1, 0xb3, 0x4f, 0x87, 0x01, - 0xea, 0xcb, 0xd4, 0xb3, 0x7d, 0x25, 0x9c, 0x70, 0x3c, 0xd4, 0x4e, 0x7e, 0x4b, 0x02, 0x2e, 0x9d, - 0xc8, 0x3b, 0x08, 0x94, 0xb3, 0x7c, 0x5e, 0xbc, 0x35, 0x73, 0x48, 0x0e, 0x7f, 0x05, 0x00, 0x00, - 0xff, 0xff, 0xc0, 0xb1, 0xa6, 0x70, 0x79, 0x04, 0x00, 0x00, + 0x53, 0xc1, 0x69, 0x82, 0x37, 0x9c, 0xa2, 0xa4, 0x81, 0x67, 0x06, 0x58, 0x70, 0x2b, 0x99, 0xa3, + 0x87, 0x37, 0xbc, 0x2b, 0x4f, 0xbd, 0xe6, 0x37, 0x0b, 0x6a, 0x3d, 0xad, 0xa2, 0x08, 0x65, 0xd0, + 0x51, 0x72, 0x90, 0x35, 0x73, 0x08, 0xdb, 0x82, 0x8d, 0x68, 0x9c, 0x4a, 0x8d, 0xc2, 0x10, 0x24, + 0xdc, 0x57, 0x72, 0x90, 0x4c, 0x8b, 0xda, 0x14, 0x6c, 0xe4, 0x66, 0xce, 0xae, 0xec, 0x65, 0x2e, + 0xf2, 0x1c, 0xea, 0x93, 0xa4, 0xaf, 0x0c, 0x35, 0x5d, 0x4e, 0x5b, 0x35, 0x69, 0x5b, 0x82, 0x8d, + 0x3e, 0x30, 0xd4, 0xfd, 0xf9, 0xbc, 0xe6, 0x4f, 0x0b, 0xca, 0x73, 0xf3, 0x20, 0x57, 0xf0, 0xf0, + 0x56, 0xfe, 0x64, 0x5e, 0x1c, 0xf3, 0x7b, 0xb9, 0xdd, 0xfe, 0x77, 0x59, 0xdd, 0x6d, 0xf6, 0xfb, + 0x1d, 0xf8, 0x0c, 0x9b, 0xf3, 0x0b, 0x45, 0x7d, 0xa3, 0x86, 0xa9, 0xb7, 0xdc, 0x3e, 0xb8, 0xef, + 0xa3, 0x3b, 0x12, 0xba, 0x35, 0x7d, 0x47, 0xd5, 0x27, 0x13, 0xb9, 0x34, 0x8f, 0xe3, 0x34, 0xd2, + 0xe8, 0x85, 0xbc, 0x5e, 0x6c, 0x58, 0xad, 0x75, 0x77, 0x11, 0xdc, 0x7f, 0x04, 0xa5, 0x7c, 0xb5, + 0xc8, 0x3a, 0x14, 0x5f, 0x75, 0xdf, 0x9c, 0x54, 0x57, 0x26, 0xd6, 0x45, 0xf7, 0xe2, 0xa4, 0x6a, + 0xed, 0xb7, 0x60, 0x63, 0x61, 0x63, 0x08, 0xc0, 0x5a, 0xe7, 0x5d, 0xaf, 0x7f, 0x7e, 0x56, 0x5d, + 0x21, 0x65, 0xf8, 0xff, 0xe3, 0xe9, 0xd1, 0xf9, 0x79, 0xaf, 0x5f, 0xb5, 0x8e, 0x9e, 0x7d, 0x3a, + 0x0c, 0x50, 0x5f, 0xa6, 0x9e, 0xed, 0x2b, 0xe1, 0x84, 0xe3, 0xa1, 0x76, 0xf2, 0x5b, 0x12, 0x70, + 0xe9, 0x44, 0xde, 0x41, 0xa0, 0x9c, 0xe5, 0xf3, 0xe2, 0xad, 0x99, 0x43, 0x72, 0xf8, 0x2b, 0x00, + 0x00, 0xff, 0xff, 0xeb, 0xba, 0x3d, 0x69, 0x79, 0x04, 0x00, 0x00, } diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java index d4a8640de..c7c7a93f1 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -2029,14 +2029,9 @@ public interface TrainingJobConfigOrBuilder extends getInstanceTypeBytes(); /** - * string volume_size_in_gb = 3; + * int64 volume_size_in_gb = 3; */ - java.lang.String getVolumeSizeInGb(); - /** - * string volume_size_in_gb = 3; - */ - com.google.protobuf.ByteString - getVolumeSizeInGbBytes(); + long getVolumeSizeInGb(); } /** * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobConfig} @@ -2052,7 +2047,6 @@ private TrainingJobConfig(com.google.protobuf.GeneratedMessageV3.Builder buil } private TrainingJobConfig() { instanceType_ = ""; - volumeSizeInGb_ = ""; } @java.lang.Override @@ -2090,10 +2084,9 @@ private TrainingJobConfig( instanceType_ = s; break; } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 24: { - volumeSizeInGb_ = s; + volumeSizeInGb_ = input.readInt64(); break; } default: { @@ -2176,37 +2169,12 @@ public java.lang.String getInstanceType() { } public static final int VOLUME_SIZE_IN_GB_FIELD_NUMBER = 3; - private volatile java.lang.Object volumeSizeInGb_; + private long volumeSizeInGb_; /** - * string volume_size_in_gb = 3; + * int64 volume_size_in_gb = 3; */ - public java.lang.String getVolumeSizeInGb() { - java.lang.Object ref = volumeSizeInGb_; - 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(); - volumeSizeInGb_ = s; - return s; - } - } - /** - * string volume_size_in_gb = 3; - */ - public com.google.protobuf.ByteString - getVolumeSizeInGbBytes() { - java.lang.Object ref = volumeSizeInGb_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - volumeSizeInGb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public long getVolumeSizeInGb() { + return volumeSizeInGb_; } private byte memoizedIsInitialized = -1; @@ -2229,8 +2197,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getInstanceTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceType_); } - if (!getVolumeSizeInGbBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, volumeSizeInGb_); + if (volumeSizeInGb_ != 0L) { + output.writeInt64(3, volumeSizeInGb_); } unknownFields.writeTo(output); } @@ -2248,8 +2216,9 @@ public int getSerializedSize() { if (!getInstanceTypeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceType_); } - if (!getVolumeSizeInGbBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, volumeSizeInGb_); + if (volumeSizeInGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, volumeSizeInGb_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2270,8 +2239,8 @@ public boolean equals(final java.lang.Object obj) { != other.getInstanceCount()) return false; if (!getInstanceType() .equals(other.getInstanceType())) return false; - if (!getVolumeSizeInGb() - .equals(other.getVolumeSizeInGb())) return false; + if (getVolumeSizeInGb() + != other.getVolumeSizeInGb()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2289,7 +2258,8 @@ public int hashCode() { hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getInstanceType().hashCode(); hash = (37 * hash) + VOLUME_SIZE_IN_GB_FIELD_NUMBER; - hash = (53 * hash) + getVolumeSizeInGb().hashCode(); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVolumeSizeInGb()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2427,7 +2397,7 @@ public Builder clear() { instanceType_ = ""; - volumeSizeInGb_ = ""; + volumeSizeInGb_ = 0L; return this; } @@ -2513,9 +2483,8 @@ public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.Traini instanceType_ = other.instanceType_; onChanged(); } - if (!other.getVolumeSizeInGb().isEmpty()) { - volumeSizeInGb_ = other.volumeSizeInGb_; - onChanged(); + if (other.getVolumeSizeInGb() != 0L) { + setVolumeSizeInGb(other.getVolumeSizeInGb()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2653,71 +2622,28 @@ public Builder setInstanceTypeBytes( return this; } - private java.lang.Object volumeSizeInGb_ = ""; - /** - * string volume_size_in_gb = 3; - */ - public java.lang.String getVolumeSizeInGb() { - java.lang.Object ref = volumeSizeInGb_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - volumeSizeInGb_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + private long volumeSizeInGb_ ; /** - * string volume_size_in_gb = 3; + * int64 volume_size_in_gb = 3; */ - public com.google.protobuf.ByteString - getVolumeSizeInGbBytes() { - java.lang.Object ref = volumeSizeInGb_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - volumeSizeInGb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public long getVolumeSizeInGb() { + return volumeSizeInGb_; } /** - * string volume_size_in_gb = 3; + * int64 volume_size_in_gb = 3; */ - public Builder setVolumeSizeInGb( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setVolumeSizeInGb(long value) { + volumeSizeInGb_ = value; onChanged(); return this; } /** - * string volume_size_in_gb = 3; + * int64 volume_size_in_gb = 3; */ public Builder clearVolumeSizeInGb() { - volumeSizeInGb_ = getDefaultInstance().getVolumeSizeInGb(); - onChanged(); - return this; - } - /** - * string volume_size_in_gb = 3; - */ - public Builder setVolumeSizeInGbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - volumeSizeInGb_ = value; + volumeSizeInGb_ = 0L; onChanged(); return this; } @@ -4221,7 +4147,7 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(" + "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count" + "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_" + - "size_in_gb\030\003 \001(\t\"U\n\021StoppingCondition\022\036\n" + + "size_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n" + "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai" + "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022" + "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst index c9ac2033b..0866d86bf 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst @@ -97,7 +97,7 @@ instance_type .. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb: volume_size_in_gb - (`string `_) + (`int64 `_) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py index 57ff1969f..581c4359c 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py @@ -21,7 +21,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xc3\x02\n\x16\x41lgorithmSpecification\x12\x39\n\ninput_mode\x18\x01 \x01(\x0e\x32%.flyteidl.plugins.sagemaker.InputMode\x12\x41\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32).flyteidl.plugins.sagemaker.AlgorithmName\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"]\n\x11TrainingJobConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\t\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"\xc5\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12J\n\x13training_job_config\x18\x02 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.TrainingJobConfig\x12\x15\n\rinterruptible\x18\x04 \x01(\x08*\x1f\n\tInputMode\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01*(\n\rAlgorithmName\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xc3\x02\n\x16\x41lgorithmSpecification\x12\x39\n\ninput_mode\x18\x01 \x01(\x0e\x32%.flyteidl.plugins.sagemaker.InputMode\x12\x41\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32).flyteidl.plugins.sagemaker.AlgorithmName\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"]\n\x11TrainingJobConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"\xc5\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12J\n\x13training_job_config\x18\x02 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.TrainingJobConfig\x12\x15\n\rinterruptible\x18\x04 \x01(\x08*\x1f\n\tInputMode\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01*(\n\rAlgorithmName\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') ) _INPUTMODE = _descriptor.EnumDescriptor( @@ -189,8 +189,8 @@ serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='volume_size_in_gb', full_name='flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto index 589b9484d..dc4a6d52c 100644 --- a/protos/flyteidl/plugins/sagemaker/training_job.proto +++ b/protos/flyteidl/plugins/sagemaker/training_job.proto @@ -30,7 +30,7 @@ message AlgorithmSpecification { message TrainingJobConfig { int64 instance_count = 1; // For multi-node training, not multi-GPU training string instance_type = 2; - string volume_size_in_gb = 3; + int64 volume_size_in_gb = 3; } message StoppingCondition { From 70a213e49b5671de8afe4366afa68c1cc54f1eed Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Tue, 23 Jun 2020 22:22:12 -0700 Subject: [PATCH 15/64] bump version --- package.json | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 98ecc0129..6351d6a44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.17.33b4", + "version": "0.17.33b5", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/setup.py b/setup.py index eb59310a6..76085ef8a 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.17.33b4' +__version__ = '0.17.33b5' setup( name='flyteidl', From d3e76c8837196d5fa0c09602bc89c38a3ad4c3bd Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Thu, 25 Jun 2020 10:21:25 -0700 Subject: [PATCH 16/64] properly versioning: bumping minor version --- package.json | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e4325bbd4..aafcb2879 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.17.34b5", + "version": "0.18.0b0", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/setup.py b/setup.py index 6421c1e0c..6439531e2 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.17.34b5' +__version__ = '0.18.0b0' setup( name='flyteidl', From a80462102bc738bf211eb2ef32f6a79a7bf3c955 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Thu, 25 Jun 2020 11:57:04 -0700 Subject: [PATCH 17/64] update strategy --- .../flyteidl/plugins/sagemaker/hpo_job.pb.cc | 16 ++-- .../flyteidl/plugins/sagemaker/hpo_job.pb.h | 5 +- .../flyteidl/plugins/sagemaker/hpo_job.pb.go | 73 ++++++++++--------- .../flyteidl/plugins/sagemaker/Hpojob.java | 21 ++++-- .../plugins/sagemaker/hpo_job.proto.rst | 7 +- .../flyteidl/plugins/sagemaker/hpo_job_pb2.py | 14 ++-- .../flyteidl/plugins/sagemaker/hpo_job.proto | 1 + 7 files changed, 82 insertions(+), 55 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc index 205171782..8bfb8e986 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc @@ -150,7 +150,7 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_ "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" ".flyteidl.plugins.sagemaker.TrainingJob\022" "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" - "max_parallel_training_jobs\030\003 \001(\003\"\341\003\n\014HPO" + "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" "2+.flyteidl.plugins.sagemaker.ParameterR" "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" @@ -160,16 +160,16 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_ "erparameterTuningObjective\022o\n training_j" "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." "plugins.sagemaker.HPOJobConfig.TrainingJ" - "obEarlyStoppingType\",\n\034HyperparameterTun" - "ingStrategy\022\014\n\010BAYESIAN\020\000\"1\n\034TrainingJob" - "EarlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001B5Z3" - "github.com/lyft/flyteidl/gen/pb-go/flyte" - "idl/pluginsb\006proto3" + "obEarlyStoppingType\"8\n\034HyperparameterTun" + "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" + "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" + "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" + "/pb-go/flyteidl/pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, - "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1099, + "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1111, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { @@ -214,6 +214,7 @@ const ::google::protobuf::EnumDescriptor* HPOJobConfig_HyperparameterTuningStrat bool HPOJobConfig_HyperparameterTuningStrategy_IsValid(int value) { switch (value) { case 0: + case 1: return true; default: return false; @@ -222,6 +223,7 @@ bool HPOJobConfig_HyperparameterTuningStrategy_IsValid(int value) { #if !defined(_MSC_VER) || _MSC_VER >= 1900 const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::BAYESIAN; +const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::RANDOM; const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::HyperparameterTuningStrategy_MIN; const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::HyperparameterTuningStrategy_MAX; const int HPOJobConfig::HyperparameterTuningStrategy_ARRAYSIZE; diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h index e9a4936a4..f578aa97f 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h @@ -100,12 +100,13 @@ inline bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Pars } enum HPOJobConfig_HyperparameterTuningStrategy { HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN = 0, + HPOJobConfig_HyperparameterTuningStrategy_RANDOM = 1, HPOJobConfig_HyperparameterTuningStrategy_HPOJobConfig_HyperparameterTuningStrategy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), HPOJobConfig_HyperparameterTuningStrategy_HPOJobConfig_HyperparameterTuningStrategy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() }; bool HPOJobConfig_HyperparameterTuningStrategy_IsValid(int value); const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MIN = HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN; -const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX = HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN; +const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX = HPOJobConfig_HyperparameterTuningStrategy_RANDOM; const int HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_ARRAYSIZE = HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX + 1; const ::google::protobuf::EnumDescriptor* HPOJobConfig_HyperparameterTuningStrategy_descriptor(); @@ -519,6 +520,8 @@ class HPOJobConfig final : typedef HPOJobConfig_HyperparameterTuningStrategy HyperparameterTuningStrategy; static const HyperparameterTuningStrategy BAYESIAN = HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN; + static const HyperparameterTuningStrategy RANDOM = + HPOJobConfig_HyperparameterTuningStrategy_RANDOM; static inline bool HyperparameterTuningStrategy_IsValid(int value) { return HPOJobConfig_HyperparameterTuningStrategy_IsValid(value); } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go index a98400ed4..60dd866e1 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go @@ -49,14 +49,17 @@ type HPOJobConfig_HyperparameterTuningStrategy int32 const ( HPOJobConfig_BAYESIAN HPOJobConfig_HyperparameterTuningStrategy = 0 + HPOJobConfig_RANDOM HPOJobConfig_HyperparameterTuningStrategy = 1 ) var HPOJobConfig_HyperparameterTuningStrategy_name = map[int32]string{ 0: "BAYESIAN", + 1: "RANDOM", } var HPOJobConfig_HyperparameterTuningStrategy_value = map[string]int32{ "BAYESIAN": 0, + "RANDOM": 1, } func (x HPOJobConfig_HyperparameterTuningStrategy) String() string { @@ -271,39 +274,39 @@ func init() { } var fileDescriptor_50903433b4c088ac = []byte{ - // 529 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x6f, 0xd3, 0x30, - 0x18, 0x5d, 0xd6, 0x6a, 0x8c, 0xaf, 0xa5, 0x54, 0x16, 0x88, 0xa9, 0x14, 0x51, 0x72, 0xa1, 0x12, - 0x2c, 0xd1, 0x3a, 0x71, 0x40, 0x20, 0xa1, 0x0e, 0x75, 0x5a, 0x2b, 0xad, 0xad, 0xd2, 0x22, 0xc1, - 0x38, 0x18, 0xa7, 0x73, 0xd3, 0x8c, 0x24, 0xb6, 0x1c, 0x17, 0x2d, 0x57, 0x0e, 0xdc, 0xf8, 0x3d, - 0xfc, 0x0c, 0xfe, 0x12, 0x8a, 0x9b, 0xa6, 0xe9, 0x04, 0x46, 0x70, 0xfc, 0x9c, 0xf7, 0x9e, 0xfd, - 0x5e, 0x9e, 0x0d, 0xed, 0x79, 0x90, 0x48, 0xea, 0x5f, 0x06, 0x36, 0x0f, 0x96, 0x9e, 0x1f, 0xc5, - 0x76, 0x4c, 0x3c, 0x1a, 0x92, 0xcf, 0x54, 0xd8, 0x0b, 0xce, 0xf0, 0x15, 0x73, 0x2d, 0x2e, 0x98, - 0x64, 0xa8, 0xb1, 0x46, 0x5a, 0x19, 0xd2, 0xca, 0x91, 0x8d, 0x23, 0x8d, 0x0a, 0x27, 0x82, 0x84, - 0x54, 0x52, 0x81, 0x05, 0x89, 0x3c, 0x1a, 0xaf, 0xe4, 0x1a, 0x87, 0x1a, 0x8a, 0x14, 0xc4, 0x8f, - 0xfc, 0xc8, 0xdb, 0xec, 0x6e, 0x7e, 0xdb, 0x85, 0x47, 0x67, 0x09, 0xa7, 0x22, 0x97, 0x9b, 0x2e, - 0x53, 0xc8, 0xc8, 0xbd, 0xa2, 0x33, 0xe9, 0x7f, 0xa1, 0xe8, 0xab, 0x01, 0x35, 0xb6, 0x9e, 0xb0, - 0x4c, 0x38, 0x3d, 0x30, 0x5a, 0x46, 0xbb, 0xd6, 0xf9, 0x68, 0xfd, 0xf9, 0xe4, 0x96, 0x56, 0x53, - 0xff, 0x75, 0x9a, 0x70, 0xea, 0xdc, 0x61, 0xc5, 0x11, 0x3d, 0x86, 0x4a, 0x48, 0xa5, 0xf0, 0x67, - 0x38, 0x22, 0x21, 0x3d, 0xd8, 0x6d, 0x19, 0xed, 0xdb, 0x0e, 0xac, 0x96, 0x86, 0x24, 0xa4, 0xe6, - 0x1b, 0x78, 0xf2, 0x57, 0x51, 0x54, 0x85, 0xfd, 0xf3, 0xfe, 0xb0, 0x7f, 0xde, 0xbf, 0xe8, 0xd5, - 0x77, 0xd4, 0xd4, 0x7d, 0xbf, 0x9a, 0x0c, 0xf3, 0xa7, 0x01, 0x7b, 0x67, 0xe3, 0xd1, 0x80, 0xb9, - 0x68, 0x00, 0xd5, 0x62, 0x52, 0xca, 0x6e, 0xa5, 0xf3, 0x54, 0x67, 0x77, 0x9a, 0xe1, 0x07, 0xcc, - 0x75, 0x2a, 0x72, 0x33, 0xa0, 0xd7, 0xf0, 0x30, 0x24, 0xd7, 0x38, 0x5a, 0x86, 0x2e, 0x15, 0x98, - 0xcd, 0x71, 0x51, 0x39, 0x56, 0x46, 0x4a, 0xce, 0x83, 0x90, 0x5c, 0x0f, 0x15, 0x62, 0x34, 0x2f, - 0x28, 0xc5, 0xe8, 0x15, 0x34, 0x52, 0x76, 0x6a, 0x2a, 0x08, 0x68, 0x70, 0x83, 0x5c, 0xca, 0xc9, - 0xe3, 0x0c, 0x50, 0x24, 0x9b, 0x3f, 0xca, 0x50, 0x5d, 0x39, 0x7a, 0xcb, 0xa2, 0xb9, 0xef, 0xa1, - 0x4f, 0x70, 0x7f, 0xb1, 0x95, 0x51, 0xd6, 0x9c, 0xcc, 0xe0, 0x33, 0x9d, 0xc1, 0xf1, 0x9a, 0xe3, - 0x28, 0x8a, 0x73, 0x6f, 0x5b, 0x69, 0xb5, 0x8a, 0x22, 0xb8, 0x2b, 0x55, 0xee, 0x38, 0x96, 0x82, - 0x48, 0xea, 0x25, 0xca, 0x61, 0xad, 0xd3, 0xd3, 0x76, 0xa5, 0x70, 0xc8, 0xdf, 0x56, 0x63, 0x92, - 0x89, 0x39, 0x35, 0xb9, 0x35, 0xa3, 0x4b, 0xa8, 0x67, 0xfb, 0xe5, 0x75, 0x51, 0xa9, 0x54, 0x3a, - 0x2f, 0xff, 0xbb, 0x9c, 0x4e, 0x66, 0x61, 0x73, 0x03, 0xbe, 0x1b, 0xd0, 0x2a, 0x26, 0x8f, 0x29, - 0x11, 0x41, 0x82, 0x63, 0xc9, 0x38, 0x4f, 0x97, 0xd4, 0x9d, 0x28, 0xff, 0xa3, 0xcf, 0xc2, 0xaf, - 0xea, 0xa5, 0x72, 0x93, 0x4c, 0x4d, 0xb5, 0xbf, 0x29, 0x35, 0x5f, 0xcd, 0xe7, 0xd0, 0xd4, 0xa5, - 0x94, 0x16, 0xfb, 0xa4, 0xfb, 0xa1, 0x37, 0xe9, 0x77, 0x87, 0xf5, 0x1d, 0xf3, 0x08, 0x9a, 0xba, - 0xbd, 0xd0, 0x2d, 0x28, 0x8d, 0x4e, 0x4f, 0xeb, 0x3b, 0x68, 0x1f, 0xca, 0xdd, 0x77, 0xd3, 0x51, - 0xdd, 0x38, 0x79, 0x71, 0x71, 0xec, 0xf9, 0x72, 0xb1, 0x74, 0xad, 0x19, 0x0b, 0xed, 0x20, 0x99, - 0x4b, 0x3b, 0x7f, 0x55, 0x3c, 0x1a, 0xd9, 0xdc, 0x3d, 0xf4, 0x98, 0x7d, 0xf3, 0xa1, 0x71, 0xf7, - 0xd4, 0x93, 0x72, 0xfc, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x51, 0x36, 0xd9, 0xfc, 0x04, 0x00, - 0x00, + // 539 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x8f, 0xd2, 0x40, + 0x18, 0xa5, 0x0b, 0xc1, 0xf5, 0x03, 0xb1, 0x99, 0x68, 0xdc, 0x20, 0x46, 0xec, 0x45, 0x12, 0xb3, + 0x6d, 0x96, 0x8d, 0x89, 0x46, 0x13, 0xc3, 0x2a, 0x9b, 0x85, 0x04, 0x4a, 0x0a, 0x26, 0xba, 0x1e, + 0xea, 0x94, 0x1d, 0x4a, 0xd7, 0xb6, 0xd3, 0x4c, 0x07, 0xb3, 0xbd, 0x7a, 0xf0, 0xe6, 0xaf, 0xf2, + 0x07, 0xf8, 0x97, 0x4c, 0x87, 0x52, 0xca, 0x46, 0xc7, 0xb8, 0xc7, 0x6f, 0xfa, 0xde, 0x9b, 0x79, + 0xaf, 0x6f, 0x06, 0x3a, 0x0b, 0x3f, 0xe1, 0xc4, 0xbb, 0xf0, 0x8d, 0xc8, 0x5f, 0xb9, 0x5e, 0x18, + 0x1b, 0x31, 0x76, 0x49, 0x80, 0xbf, 0x10, 0x66, 0x2c, 0x23, 0x6a, 0x5f, 0x52, 0x47, 0x8f, 0x18, + 0xe5, 0x14, 0x35, 0x37, 0x48, 0x3d, 0x43, 0xea, 0x39, 0xb2, 0x79, 0x24, 0x51, 0x89, 0x30, 0xc3, + 0x01, 0xe1, 0x84, 0xd9, 0x0c, 0x87, 0x2e, 0x89, 0xd7, 0x72, 0xcd, 0x43, 0x09, 0x85, 0x33, 0xec, + 0x85, 0x5e, 0xe8, 0x6e, 0x77, 0xd7, 0xbe, 0xef, 0xc1, 0xa3, 0xb3, 0x24, 0x22, 0x2c, 0x97, 0x9b, + 0xad, 0x52, 0x88, 0xe9, 0x5c, 0x92, 0x39, 0xf7, 0xbe, 0x12, 0xf4, 0x4d, 0x81, 0x06, 0xdd, 0x4c, + 0x36, 0x4f, 0x22, 0x72, 0xa0, 0xb4, 0x95, 0x4e, 0xa3, 0xfb, 0x49, 0xff, 0xfb, 0xc9, 0x75, 0xa9, + 0xa6, 0xfc, 0xeb, 0x2c, 0x89, 0x88, 0x75, 0x87, 0x16, 0x47, 0xf4, 0x18, 0x6a, 0x01, 0xe1, 0xcc, + 0x9b, 0xdb, 0x21, 0x0e, 0xc8, 0xc1, 0x5e, 0x5b, 0xe9, 0xdc, 0xb6, 0x60, 0xbd, 0x34, 0xc6, 0x01, + 0xd1, 0xde, 0xc0, 0x93, 0x7f, 0x8a, 0xa2, 0x3a, 0xec, 0x8f, 0x06, 0xe3, 0xc1, 0x68, 0x70, 0xde, + 0x57, 0x4b, 0x62, 0xea, 0x7d, 0x58, 0x4f, 0x8a, 0xf6, 0x4b, 0x81, 0xea, 0xd9, 0xc4, 0x1c, 0x52, + 0x07, 0x0d, 0xa1, 0x5e, 0x4c, 0x4a, 0xd8, 0xad, 0x75, 0x9f, 0xca, 0xec, 0xce, 0x32, 0xfc, 0x90, + 0x3a, 0x56, 0x8d, 0x6f, 0x07, 0xf4, 0x1a, 0x1e, 0x06, 0xf8, 0xca, 0x0e, 0x57, 0x81, 0x43, 0x98, + 0x4d, 0x17, 0x76, 0x51, 0x39, 0x16, 0x46, 0xca, 0xd6, 0x83, 0x00, 0x5f, 0x8d, 0x05, 0xc2, 0x5c, + 0x14, 0x94, 0x62, 0xf4, 0x0a, 0x9a, 0x29, 0x3b, 0x35, 0xe5, 0xfb, 0xc4, 0xbf, 0x46, 0x2e, 0xe7, + 0xe4, 0x49, 0x06, 0x28, 0x92, 0xb5, 0x9f, 0x15, 0xa8, 0xaf, 0x1d, 0xbd, 0xa5, 0xe1, 0xc2, 0x73, + 0xd1, 0x67, 0xb8, 0xbf, 0xdc, 0xc9, 0x28, 0x6b, 0x4e, 0x66, 0xf0, 0x99, 0xcc, 0xe0, 0x64, 0xc3, + 0xb1, 0x04, 0xc5, 0xba, 0xb7, 0xab, 0xb4, 0x5e, 0x45, 0x21, 0xdc, 0xe5, 0x22, 0x77, 0x3b, 0xe6, + 0x0c, 0x73, 0xe2, 0x26, 0xc2, 0x61, 0xa3, 0xdb, 0x97, 0x76, 0xa5, 0x70, 0xc8, 0x3f, 0x56, 0x63, + 0x9a, 0x89, 0x59, 0x0d, 0xbe, 0x33, 0xa3, 0x0b, 0x50, 0xb3, 0xfd, 0xf2, 0xba, 0x88, 0x54, 0x6a, + 0xdd, 0x97, 0x37, 0x2e, 0xa7, 0x95, 0x59, 0xd8, 0xde, 0x80, 0x1f, 0x0a, 0xb4, 0x8b, 0xc9, 0xdb, + 0x04, 0x33, 0x3f, 0xb1, 0x63, 0x4e, 0xa3, 0x28, 0x5d, 0x12, 0x77, 0xa2, 0xf2, 0x9f, 0x3e, 0x0b, + 0xbf, 0xaa, 0x9f, 0xca, 0x4d, 0x33, 0x35, 0xd1, 0xfe, 0x16, 0x97, 0x7c, 0xd5, 0x5e, 0x40, 0x4b, + 0x96, 0x52, 0x5a, 0xec, 0x93, 0xde, 0xc7, 0xfe, 0x74, 0xd0, 0x1b, 0xab, 0x25, 0x04, 0x50, 0xb5, + 0x7a, 0xe3, 0x77, 0xe6, 0x48, 0x55, 0xb4, 0x23, 0x68, 0xc9, 0xf6, 0x45, 0xb7, 0xa0, 0x6c, 0x9e, + 0x9e, 0xaa, 0x25, 0xb4, 0x0f, 0x95, 0xde, 0xfb, 0x99, 0xa9, 0x2a, 0x27, 0xcf, 0xcf, 0x8f, 0x5d, + 0x8f, 0x2f, 0x57, 0x8e, 0x3e, 0xa7, 0x81, 0xe1, 0x27, 0x0b, 0x6e, 0xe4, 0x2f, 0x8c, 0x4b, 0x42, + 0x23, 0x72, 0x0e, 0x5d, 0x6a, 0x5c, 0x7f, 0x74, 0x9c, 0xaa, 0x78, 0x5e, 0x8e, 0x7f, 0x07, 0x00, + 0x00, 0xff, 0xff, 0xc8, 0x08, 0xb2, 0xe9, 0x08, 0x05, 0x00, 0x00, } diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java index 1975a419b..87ed539e5 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -1715,6 +1715,10 @@ public enum HyperparameterTuningStrategy * BAYESIAN = 0; */ BAYESIAN(0), + /** + * RANDOM = 1; + */ + RANDOM(1), UNRECOGNIZED(-1), ; @@ -1722,6 +1726,10 @@ public enum HyperparameterTuningStrategy * BAYESIAN = 0; */ public static final int BAYESIAN_VALUE = 0; + /** + * RANDOM = 1; + */ + public static final int RANDOM_VALUE = 1; public final int getNumber() { @@ -1743,6 +1751,7 @@ public static HyperparameterTuningStrategy valueOf(int value) { public static HyperparameterTuningStrategy forNumber(int value) { switch (value) { case 0: return BAYESIAN; + case 1: return RANDOM; default: return null; } } @@ -2759,7 +2768,7 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType( "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" + ".flyteidl.plugins.sagemaker.TrainingJob\022" + "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" + - "max_parallel_training_jobs\030\003 \001(\003\"\341\003\n\014HPO" + + "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" + "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" + "2+.flyteidl.plugins.sagemaker.ParameterR" + "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" + @@ -2769,11 +2778,11 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType( "erparameterTuningObjective\022o\n training_j" + "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." + "plugins.sagemaker.HPOJobConfig.TrainingJ" + - "obEarlyStoppingType\",\n\034HyperparameterTun" + - "ingStrategy\022\014\n\010BAYESIAN\020\000\"1\n\034TrainingJob" + - "EarlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001B5Z3" + - "github.com/lyft/flyteidl/gen/pb-go/flyte" + - "idl/pluginsb\006proto3" + "obEarlyStoppingType\"8\n\034HyperparameterTun" + + "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" + + "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" + + "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" + + "/pb-go/flyteidl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst index 50f9e31be..4bfaa3f53 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst @@ -132,13 +132,18 @@ Enum flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy BAYESIAN *(DEFAULT)* ⁣ +.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy.RANDOM: + +RANDOM + ⁣ + .. _api_enum_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType: Enum flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType ------------------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType proto] `_ +`[flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType.OFF: diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py index e00cdfb47..140d64ce4 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py @@ -22,7 +22,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xe1\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\",\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,]) @@ -60,11 +60,15 @@ name='BAYESIAN', index=0, number=0, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor( + name='RANDOM', index=1, number=1, + serialized_options=None, + type=None), ], containing_type=None, serialized_options=None, serialized_start=941, - serialized_end=985, + serialized_end=997, ) _sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY) @@ -85,8 +89,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=987, - serialized_end=1036, + serialized_start=999, + serialized_end=1048, ) _sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE) @@ -225,7 +229,7 @@ oneofs=[ ], serialized_start=555, - serialized_end=1036, + serialized_end=1048, ) _HYPERPARAMETERTUNINGOBJECTIVE.fields_by_name['objective_type'].enum_type = _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE diff --git a/protos/flyteidl/plugins/sagemaker/hpo_job.proto b/protos/flyteidl/plugins/sagemaker/hpo_job.proto index 65bce733b..03e2df15d 100644 --- a/protos/flyteidl/plugins/sagemaker/hpo_job.proto +++ b/protos/flyteidl/plugins/sagemaker/hpo_job.proto @@ -28,6 +28,7 @@ message HPOJobConfig { enum HyperparameterTuningStrategy { BAYESIAN = 0; + RANDOM = 1; } HyperparameterTuningStrategy tuning_strategy = 2; From b560a575517849aa509d28de02fb1583c10a9207 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Thu, 25 Jun 2020 11:57:57 -0700 Subject: [PATCH 18/64] bump version --- package.json | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aafcb2879..40d8c1a40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.18.0b0", + "version": "0.18.0b1", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/setup.py b/setup.py index 6439531e2..96ce7ff7f 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.18.0b0' +__version__ = '0.18.0b1' setup( name='flyteidl', From e3044c9561674d4378bac03200ac589f07c67f32 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Tue, 21 Jul 2020 14:01:54 -0700 Subject: [PATCH 19/64] add a message for custom field of hpo job --- protos/flyteidl/plugins/sagemaker/hpo_job.proto | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/protos/flyteidl/plugins/sagemaker/hpo_job.proto b/protos/flyteidl/plugins/sagemaker/hpo_job.proto index 03e2df15d..bffa49656 100644 --- a/protos/flyteidl/plugins/sagemaker/hpo_job.proto +++ b/protos/flyteidl/plugins/sagemaker/hpo_job.proto @@ -6,6 +6,7 @@ option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; import "flyteidl/plugins/sagemaker/parameter_ranges.proto"; import "flyteidl/plugins/sagemaker/training_job.proto"; +import "flyteidl/core/tasks.proto"; message HyperparameterTuningObjective { enum HyperparameterTuningObjectiveType { @@ -39,4 +40,9 @@ message HPOJobConfig { AUTO = 1; } TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; -} \ No newline at end of file +} + +message HPOJobCustom { + HPOJobConfig hpo_job_config = 1; + core.TaskTemplate training_job_task_template = 2; +} From ab260a412df81b3849155217c0f4622651379b93 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Tue, 21 Jul 2020 14:14:34 -0700 Subject: [PATCH 20/64] make generate --- .../flyteidl/plugins/sagemaker/hpo_job.pb.cc | 460 +++++++++- .../flyteidl/plugins/sagemaker/hpo_job.pb.h | 234 ++++- .../flyteidl/plugins/sagemaker/hpo_job.pb.go | 124 ++- .../plugins/sagemaker/hpo_job.pb.validate.go | 85 ++ .../flyteidl/plugins/sagemaker/Hpojob.java | 866 +++++++++++++++++- .../plugins/sagemaker/hpo_job.proto.rst | 39 +- .../flyteidl/plugins/sagemaker/hpo_job_pb2.py | 77 +- 7 files changed, 1776 insertions(+), 109 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc index 8bfb8e986..5f9b91c92 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc @@ -16,7 +16,9 @@ // @@protoc_insertion_point(includes) #include +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; namespace flyteidl { @@ -34,6 +36,10 @@ class HPOJobConfigDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _HPOJobConfig_default_instance_; +class HPOJobCustomDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HPOJobCustom_default_instance_; } // namespace sagemaker } // namespace plugins } // namespace flyteidl @@ -82,13 +88,30 @@ ::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobConfig_flyteidl_2fplugin &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base,}}; +static void InitDefaultsHPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HPOJobCustom(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HPOJobCustom::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { + &scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base, + &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base,}}; + void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[3]; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[4]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[3]; constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = nullptr; @@ -117,23 +140,32 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhp PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, tuning_strategy_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, tuning_objective_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, training_job_early_stopping_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, hpo_job_config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, training_job_task_template_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective)}, { 7, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJob)}, { 15, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJobConfig)}, + { 24, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJobCustom)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJob_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_), }; ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, "flyteidl/plugins/sagemaker/hpo_job.proto", schemas, file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 4, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, }; const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[] = @@ -141,44 +173,50 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_ "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" "/plugins/sagemaker/parameter_ranges.prot" "o\032-flyteidl/plugins/sagemaker/training_j" - "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" - "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" - "ugins.sagemaker.HyperparameterTuningObje" - "ctive.HyperparameterTuningObjectiveType\022" - "\023\n\013metric_name\030\002 \001(\t\"\?\n!HyperparameterTu" - "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" - "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" - ".flyteidl.plugins.sagemaker.TrainingJob\022" - "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" - "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" - "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" - "2+.flyteidl.plugins.sagemaker.ParameterR" - "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" - "l.plugins.sagemaker.HPOJobConfig.Hyperpa" - "rameterTuningStrategy\022S\n\020tuning_objectiv" - "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" - "erparameterTuningObjective\022o\n training_j" - "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." - "plugins.sagemaker.HPOJobConfig.TrainingJ" - "obEarlyStoppingType\"8\n\034HyperparameterTun" - "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" - "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" - "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" - "/pb-go/flyteidl/pluginsb\006proto3" + "ob.proto\032\031flyteidl/core/tasks.proto\"\352\001\n\035" + "HyperparameterTuningObjective\022s\n\016objecti" + "ve_type\030\001 \001(\0162[.flyteidl.plugins.sagemak" + "er.HyperparameterTuningObjective.Hyperpa" + "rameterTuningObjectiveType\022\023\n\013metric_nam" + "e\030\002 \001(\t\"\?\n!HyperparameterTuningObjective" + "Type\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\220\001\n\006HPO" + "Job\022=\n\014training_job\030\001 \001(\0132\'.flyteidl.plu" + "gins.sagemaker.TrainingJob\022#\n\033max_number" + "_of_training_jobs\030\002 \001(\003\022\"\n\032max_parallel_" + "training_jobs\030\003 \001(\003\"\355\003\n\014HPOJobConfig\022J\n\025" + "hyperparameter_ranges\030\001 \001(\0132+.flyteidl.p" + "lugins.sagemaker.ParameterRanges\022^\n\017tuni" + "ng_strategy\030\002 \001(\0162E.flyteidl.plugins.sag" + "emaker.HPOJobConfig.HyperparameterTuning" + "Strategy\022S\n\020tuning_objective\030\003 \001(\01329.fly" + "teidl.plugins.sagemaker.HyperparameterTu" + "ningObjective\022o\n training_job_early_stop" + "ping_type\030\004 \001(\0162E.flyteidl.plugins.sagem" + "aker.HPOJobConfig.TrainingJobEarlyStoppi" + "ngType\"8\n\034HyperparameterTuningStrategy\022\014" + "\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobE" + "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\221\001\n\014" + "HPOJobCustom\022@\n\016hpo_job_config\030\001 \001(\0132(.f" + "lyteidl.plugins.sagemaker.HPOJobConfig\022\?" + "\n\032training_job_task_template\030\002 \001(\0132\033.fly" + "teidl.core.TaskTemplateB5Z3github.com/ly" + "ft/flyteidl/gen/pb-go/flyteidl/pluginsb\006" + "proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, - "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1111, + "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1286, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[2] = + static constexpr ::google::protobuf::internal::InitFunc deps[3] = { ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, + ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, deps, 2); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, deps, 3); } // Force running AddDescriptors() at dynamic initialization time. @@ -1437,6 +1475,367 @@ ::google::protobuf::Metadata HPOJobConfig::GetMetadata() const { } +// =================================================================== + +void HPOJobCustom::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->hpo_job_config_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig*>( + ::flyteidl::plugins::sagemaker::HPOJobConfig::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->training_job_task_template_ = const_cast< ::flyteidl::core::TaskTemplate*>( + ::flyteidl::core::TaskTemplate::internal_default_instance()); +} +class HPOJobCustom::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::HPOJobConfig& hpo_job_config(const HPOJobCustom* msg); + static const ::flyteidl::core::TaskTemplate& training_job_task_template(const HPOJobCustom* msg); +}; + +const ::flyteidl::plugins::sagemaker::HPOJobConfig& +HPOJobCustom::HasBitSetters::hpo_job_config(const HPOJobCustom* msg) { + return *msg->hpo_job_config_; +} +const ::flyteidl::core::TaskTemplate& +HPOJobCustom::HasBitSetters::training_job_task_template(const HPOJobCustom* msg) { + return *msg->training_job_task_template_; +} +void HPOJobCustom::clear_training_job_task_template() { + if (GetArenaNoVirtual() == nullptr && training_job_task_template_ != nullptr) { + delete training_job_task_template_; + } + training_job_task_template_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HPOJobCustom::kHpoJobConfigFieldNumber; +const int HPOJobCustom::kTrainingJobTaskTemplateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HPOJobCustom::HPOJobCustom() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJobCustom) +} +HPOJobCustom::HPOJobCustom(const HPOJobCustom& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_hpo_job_config()) { + hpo_job_config_ = new ::flyteidl::plugins::sagemaker::HPOJobConfig(*from.hpo_job_config_); + } else { + hpo_job_config_ = nullptr; + } + if (from.has_training_job_task_template()) { + training_job_task_template_ = new ::flyteidl::core::TaskTemplate(*from.training_job_task_template_); + } else { + training_job_task_template_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJobCustom) +} + +void HPOJobCustom::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + ::memset(&hpo_job_config_, 0, static_cast( + reinterpret_cast(&training_job_task_template_) - + reinterpret_cast(&hpo_job_config_)) + sizeof(training_job_task_template_)); +} + +HPOJobCustom::~HPOJobCustom() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJobCustom) + SharedDtor(); +} + +void HPOJobCustom::SharedDtor() { + if (this != internal_default_instance()) delete hpo_job_config_; + if (this != internal_default_instance()) delete training_job_task_template_; +} + +void HPOJobCustom::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HPOJobCustom& HPOJobCustom::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void HPOJobCustom::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJobCustom) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && hpo_job_config_ != nullptr) { + delete hpo_job_config_; + } + hpo_job_config_ = nullptr; + if (GetArenaNoVirtual() == nullptr && training_job_task_template_ != nullptr) { + delete training_job_task_template_; + } + training_job_task_template_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HPOJobCustom::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::HPOJobConfig::_InternalParse; + object = msg->mutable_hpo_job_config(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.TaskTemplate training_job_task_template = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskTemplate::_InternalParse; + object = msg->mutable_training_job_task_template(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HPOJobCustom::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJobCustom) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_hpo_job_config())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskTemplate training_job_task_template = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_training_job_task_template())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJobCustom) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJobCustom) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HPOJobCustom::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJobCustom) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + if (this->has_hpo_job_config()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::hpo_job_config(this), output); + } + + // .flyteidl.core.TaskTemplate training_job_task_template = 2; + if (this->has_training_job_task_template()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::training_job_task_template(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJobCustom) +} + +::google::protobuf::uint8* HPOJobCustom::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJobCustom) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + if (this->has_hpo_job_config()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::hpo_job_config(this), target); + } + + // .flyteidl.core.TaskTemplate training_job_task_template = 2; + if (this->has_training_job_task_template()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::training_job_task_template(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJobCustom) + return target; +} + +size_t HPOJobCustom::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJobCustom) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + if (this->has_hpo_job_config()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *hpo_job_config_); + } + + // .flyteidl.core.TaskTemplate training_job_task_template = 2; + if (this->has_training_job_task_template()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *training_job_task_template_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HPOJobCustom::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJobCustom) + GOOGLE_DCHECK_NE(&from, this); + const HPOJobCustom* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJobCustom) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJobCustom) + MergeFrom(*source); + } +} + +void HPOJobCustom::MergeFrom(const HPOJobCustom& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJobCustom) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_hpo_job_config()) { + mutable_hpo_job_config()->::flyteidl::plugins::sagemaker::HPOJobConfig::MergeFrom(from.hpo_job_config()); + } + if (from.has_training_job_task_template()) { + mutable_training_job_task_template()->::flyteidl::core::TaskTemplate::MergeFrom(from.training_job_task_template()); + } +} + +void HPOJobCustom::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJobCustom) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HPOJobCustom::CopyFrom(const HPOJobCustom& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJobCustom) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HPOJobCustom::IsInitialized() const { + return true; +} + +void HPOJobCustom::Swap(HPOJobCustom* other) { + if (other == this) return; + InternalSwap(other); +} +void HPOJobCustom::InternalSwap(HPOJobCustom* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(hpo_job_config_, other->hpo_job_config_); + swap(training_job_task_template_, other->training_job_task_template_); +} + +::google::protobuf::Metadata HPOJobCustom::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; +} + + // @@protoc_insertion_point(namespace_scope) } // namespace sagemaker } // namespace plugins @@ -1452,6 +1851,9 @@ template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJob* Arena::Crea template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJobConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJobConfig >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJobConfig >(arena); } +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJobCustom* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJobCustom >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJobCustom >(arena); +} } // namespace protobuf } // namespace google diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h index f578aa97f..e8265d59a 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h @@ -34,6 +34,7 @@ #include #include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" #include "flyteidl/plugins/sagemaker/training_job.pb.h" +#include "flyteidl/core/tasks.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto @@ -44,7 +45,7 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[3] + static const ::google::protobuf::internal::ParseTable schema[4] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; @@ -60,6 +61,9 @@ extern HPOJobDefaultTypeInternal _HPOJob_default_instance_; class HPOJobConfig; class HPOJobConfigDefaultTypeInternal; extern HPOJobConfigDefaultTypeInternal _HPOJobConfig_default_instance_; +class HPOJobCustom; +class HPOJobCustomDefaultTypeInternal; +extern HPOJobCustomDefaultTypeInternal _HPOJobCustom_default_instance_; class HyperparameterTuningObjective; class HyperparameterTuningObjectiveDefaultTypeInternal; extern HyperparameterTuningObjectiveDefaultTypeInternal _HyperparameterTuningObjective_default_instance_; @@ -70,6 +74,7 @@ namespace google { namespace protobuf { template<> ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJob>(Arena*); template<> ::flyteidl::plugins::sagemaker::HPOJobConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobConfig>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HPOJobCustom* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobCustom>(Arena*); template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(Arena*); } // namespace protobuf } // namespace google @@ -613,6 +618,131 @@ class HPOJobConfig final : mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; }; +// ------------------------------------------------------------------- + +class HPOJobCustom final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJobCustom) */ { + public: + HPOJobCustom(); + virtual ~HPOJobCustom(); + + HPOJobCustom(const HPOJobCustom& from); + + inline HPOJobCustom& operator=(const HPOJobCustom& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HPOJobCustom(HPOJobCustom&& from) noexcept + : HPOJobCustom() { + *this = ::std::move(from); + } + + inline HPOJobCustom& operator=(HPOJobCustom&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HPOJobCustom& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HPOJobCustom* internal_default_instance() { + return reinterpret_cast( + &_HPOJobCustom_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(HPOJobCustom* other); + friend void swap(HPOJobCustom& a, HPOJobCustom& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HPOJobCustom* New() const final { + return CreateMaybeMessage(nullptr); + } + + HPOJobCustom* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HPOJobCustom& from); + void MergeFrom(const HPOJobCustom& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HPOJobCustom* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + bool has_hpo_job_config() const; + void clear_hpo_job_config(); + static const int kHpoJobConfigFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::HPOJobConfig& hpo_job_config() const; + ::flyteidl::plugins::sagemaker::HPOJobConfig* release_hpo_job_config(); + ::flyteidl::plugins::sagemaker::HPOJobConfig* mutable_hpo_job_config(); + void set_allocated_hpo_job_config(::flyteidl::plugins::sagemaker::HPOJobConfig* hpo_job_config); + + // .flyteidl.core.TaskTemplate training_job_task_template = 2; + bool has_training_job_task_template() const; + void clear_training_job_task_template(); + static const int kTrainingJobTaskTemplateFieldNumber = 2; + const ::flyteidl::core::TaskTemplate& training_job_task_template() const; + ::flyteidl::core::TaskTemplate* release_training_job_task_template(); + ::flyteidl::core::TaskTemplate* mutable_training_job_task_template(); + void set_allocated_training_job_task_template(::flyteidl::core::TaskTemplate* training_job_task_template); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobCustom) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::sagemaker::HPOJobConfig* hpo_job_config_; + ::flyteidl::core::TaskTemplate* training_job_task_template_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; +}; // =================================================================== @@ -896,6 +1026,106 @@ inline void HPOJobConfig::set_training_job_early_stopping_type(::flyteidl::plugi // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type) } +// ------------------------------------------------------------------- + +// HPOJobCustom + +// .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; +inline bool HPOJobCustom::has_hpo_job_config() const { + return this != internal_default_instance() && hpo_job_config_ != nullptr; +} +inline void HPOJobCustom::clear_hpo_job_config() { + if (GetArenaNoVirtual() == nullptr && hpo_job_config_ != nullptr) { + delete hpo_job_config_; + } + hpo_job_config_ = nullptr; +} +inline const ::flyteidl::plugins::sagemaker::HPOJobConfig& HPOJobCustom::hpo_job_config() const { + const ::flyteidl::plugins::sagemaker::HPOJobConfig* p = hpo_job_config_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::HPOJobConfig* HPOJobCustom::release_hpo_job_config() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) + + ::flyteidl::plugins::sagemaker::HPOJobConfig* temp = hpo_job_config_; + hpo_job_config_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::HPOJobConfig* HPOJobCustom::mutable_hpo_job_config() { + + if (hpo_job_config_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobConfig>(GetArenaNoVirtual()); + hpo_job_config_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) + return hpo_job_config_; +} +inline void HPOJobCustom::set_allocated_hpo_job_config(::flyteidl::plugins::sagemaker::HPOJobConfig* hpo_job_config) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete hpo_job_config_; + } + if (hpo_job_config) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + hpo_job_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hpo_job_config, submessage_arena); + } + + } else { + + } + hpo_job_config_ = hpo_job_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) +} + +// .flyteidl.core.TaskTemplate training_job_task_template = 2; +inline bool HPOJobCustom::has_training_job_task_template() const { + return this != internal_default_instance() && training_job_task_template_ != nullptr; +} +inline const ::flyteidl::core::TaskTemplate& HPOJobCustom::training_job_task_template() const { + const ::flyteidl::core::TaskTemplate* p = training_job_task_template_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskTemplate_default_instance_); +} +inline ::flyteidl::core::TaskTemplate* HPOJobCustom::release_training_job_task_template() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template) + + ::flyteidl::core::TaskTemplate* temp = training_job_task_template_; + training_job_task_template_ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskTemplate* HPOJobCustom::mutable_training_job_task_template() { + + if (training_job_task_template_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskTemplate>(GetArenaNoVirtual()); + training_job_task_template_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template) + return training_job_task_template_; +} +inline void HPOJobCustom::set_allocated_training_job_task_template(::flyteidl::core::TaskTemplate* training_job_task_template) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(training_job_task_template_); + } + if (training_job_task_template) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + training_job_task_template = ::google::protobuf::internal::GetOwnedMessage( + message_arena, training_job_task_template, submessage_arena); + } + + } else { + + } + training_job_task_template_ = training_job_task_template; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -903,6 +1133,8 @@ inline void HPOJobConfig::set_training_job_early_stopping_type(::flyteidl::plugi // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go index 60dd866e1..62478df94 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go @@ -6,6 +6,7 @@ package plugins import ( fmt "fmt" proto "github.com/golang/protobuf/proto" + core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" math "math" ) @@ -260,6 +261,53 @@ func (m *HPOJobConfig) GetTrainingJobEarlyStoppingType() HPOJobConfig_TrainingJo return HPOJobConfig_OFF } +type HPOJobCustom struct { + HpoJobConfig *HPOJobConfig `protobuf:"bytes,1,opt,name=hpo_job_config,json=hpoJobConfig,proto3" json:"hpo_job_config,omitempty"` + TrainingJobTaskTemplate *core.TaskTemplate `protobuf:"bytes,2,opt,name=training_job_task_template,json=trainingJobTaskTemplate,proto3" json:"training_job_task_template,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HPOJobCustom) Reset() { *m = HPOJobCustom{} } +func (m *HPOJobCustom) String() string { return proto.CompactTextString(m) } +func (*HPOJobCustom) ProtoMessage() {} +func (*HPOJobCustom) Descriptor() ([]byte, []int) { + return fileDescriptor_50903433b4c088ac, []int{3} +} + +func (m *HPOJobCustom) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HPOJobCustom.Unmarshal(m, b) +} +func (m *HPOJobCustom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HPOJobCustom.Marshal(b, m, deterministic) +} +func (m *HPOJobCustom) XXX_Merge(src proto.Message) { + xxx_messageInfo_HPOJobCustom.Merge(m, src) +} +func (m *HPOJobCustom) XXX_Size() int { + return xxx_messageInfo_HPOJobCustom.Size(m) +} +func (m *HPOJobCustom) XXX_DiscardUnknown() { + xxx_messageInfo_HPOJobCustom.DiscardUnknown(m) +} + +var xxx_messageInfo_HPOJobCustom proto.InternalMessageInfo + +func (m *HPOJobCustom) GetHpoJobConfig() *HPOJobConfig { + if m != nil { + return m.HpoJobConfig + } + return nil +} + +func (m *HPOJobCustom) GetTrainingJobTaskTemplate() *core.TaskTemplate { + if m != nil { + return m.TrainingJobTaskTemplate + } + return nil +} + func init() { proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningObjective_HyperparameterTuningObjectiveType", HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name, HyperparameterTuningObjective_HyperparameterTuningObjectiveType_value) proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobConfig_HyperparameterTuningStrategy", HPOJobConfig_HyperparameterTuningStrategy_name, HPOJobConfig_HyperparameterTuningStrategy_value) @@ -267,6 +315,7 @@ func init() { proto.RegisterType((*HyperparameterTuningObjective)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningObjective") proto.RegisterType((*HPOJob)(nil), "flyteidl.plugins.sagemaker.HPOJob") proto.RegisterType((*HPOJobConfig)(nil), "flyteidl.plugins.sagemaker.HPOJobConfig") + proto.RegisterType((*HPOJobCustom)(nil), "flyteidl.plugins.sagemaker.HPOJobCustom") } func init() { @@ -274,39 +323,44 @@ func init() { } var fileDescriptor_50903433b4c088ac = []byte{ - // 539 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x8f, 0xd2, 0x40, - 0x18, 0xa5, 0x0b, 0xc1, 0xf5, 0x03, 0xb1, 0x99, 0x68, 0xdc, 0x20, 0x46, 0xec, 0x45, 0x12, 0xb3, - 0x6d, 0x96, 0x8d, 0x89, 0x46, 0x13, 0xc3, 0x2a, 0x9b, 0x85, 0x04, 0x4a, 0x0a, 0x26, 0xba, 0x1e, - 0xea, 0x94, 0x1d, 0x4a, 0xd7, 0xb6, 0xd3, 0x4c, 0x07, 0xb3, 0xbd, 0x7a, 0xf0, 0xe6, 0xaf, 0xf2, - 0x07, 0xf8, 0x97, 0x4c, 0x87, 0x52, 0xca, 0x46, 0xc7, 0xb8, 0xc7, 0x6f, 0xfa, 0xde, 0x9b, 0x79, - 0xaf, 0x6f, 0x06, 0x3a, 0x0b, 0x3f, 0xe1, 0xc4, 0xbb, 0xf0, 0x8d, 0xc8, 0x5f, 0xb9, 0x5e, 0x18, - 0x1b, 0x31, 0x76, 0x49, 0x80, 0xbf, 0x10, 0x66, 0x2c, 0x23, 0x6a, 0x5f, 0x52, 0x47, 0x8f, 0x18, - 0xe5, 0x14, 0x35, 0x37, 0x48, 0x3d, 0x43, 0xea, 0x39, 0xb2, 0x79, 0x24, 0x51, 0x89, 0x30, 0xc3, - 0x01, 0xe1, 0x84, 0xd9, 0x0c, 0x87, 0x2e, 0x89, 0xd7, 0x72, 0xcd, 0x43, 0x09, 0x85, 0x33, 0xec, - 0x85, 0x5e, 0xe8, 0x6e, 0x77, 0xd7, 0xbe, 0xef, 0xc1, 0xa3, 0xb3, 0x24, 0x22, 0x2c, 0x97, 0x9b, - 0xad, 0x52, 0x88, 0xe9, 0x5c, 0x92, 0x39, 0xf7, 0xbe, 0x12, 0xf4, 0x4d, 0x81, 0x06, 0xdd, 0x4c, - 0x36, 0x4f, 0x22, 0x72, 0xa0, 0xb4, 0x95, 0x4e, 0xa3, 0xfb, 0x49, 0xff, 0xfb, 0xc9, 0x75, 0xa9, - 0xa6, 0xfc, 0xeb, 0x2c, 0x89, 0x88, 0x75, 0x87, 0x16, 0x47, 0xf4, 0x18, 0x6a, 0x01, 0xe1, 0xcc, - 0x9b, 0xdb, 0x21, 0x0e, 0xc8, 0xc1, 0x5e, 0x5b, 0xe9, 0xdc, 0xb6, 0x60, 0xbd, 0x34, 0xc6, 0x01, - 0xd1, 0xde, 0xc0, 0x93, 0x7f, 0x8a, 0xa2, 0x3a, 0xec, 0x8f, 0x06, 0xe3, 0xc1, 0x68, 0x70, 0xde, - 0x57, 0x4b, 0x62, 0xea, 0x7d, 0x58, 0x4f, 0x8a, 0xf6, 0x4b, 0x81, 0xea, 0xd9, 0xc4, 0x1c, 0x52, - 0x07, 0x0d, 0xa1, 0x5e, 0x4c, 0x4a, 0xd8, 0xad, 0x75, 0x9f, 0xca, 0xec, 0xce, 0x32, 0xfc, 0x90, - 0x3a, 0x56, 0x8d, 0x6f, 0x07, 0xf4, 0x1a, 0x1e, 0x06, 0xf8, 0xca, 0x0e, 0x57, 0x81, 0x43, 0x98, - 0x4d, 0x17, 0x76, 0x51, 0x39, 0x16, 0x46, 0xca, 0xd6, 0x83, 0x00, 0x5f, 0x8d, 0x05, 0xc2, 0x5c, - 0x14, 0x94, 0x62, 0xf4, 0x0a, 0x9a, 0x29, 0x3b, 0x35, 0xe5, 0xfb, 0xc4, 0xbf, 0x46, 0x2e, 0xe7, - 0xe4, 0x49, 0x06, 0x28, 0x92, 0xb5, 0x9f, 0x15, 0xa8, 0xaf, 0x1d, 0xbd, 0xa5, 0xe1, 0xc2, 0x73, - 0xd1, 0x67, 0xb8, 0xbf, 0xdc, 0xc9, 0x28, 0x6b, 0x4e, 0x66, 0xf0, 0x99, 0xcc, 0xe0, 0x64, 0xc3, - 0xb1, 0x04, 0xc5, 0xba, 0xb7, 0xab, 0xb4, 0x5e, 0x45, 0x21, 0xdc, 0xe5, 0x22, 0x77, 0x3b, 0xe6, - 0x0c, 0x73, 0xe2, 0x26, 0xc2, 0x61, 0xa3, 0xdb, 0x97, 0x76, 0xa5, 0x70, 0xc8, 0x3f, 0x56, 0x63, - 0x9a, 0x89, 0x59, 0x0d, 0xbe, 0x33, 0xa3, 0x0b, 0x50, 0xb3, 0xfd, 0xf2, 0xba, 0x88, 0x54, 0x6a, - 0xdd, 0x97, 0x37, 0x2e, 0xa7, 0x95, 0x59, 0xd8, 0xde, 0x80, 0x1f, 0x0a, 0xb4, 0x8b, 0xc9, 0xdb, - 0x04, 0x33, 0x3f, 0xb1, 0x63, 0x4e, 0xa3, 0x28, 0x5d, 0x12, 0x77, 0xa2, 0xf2, 0x9f, 0x3e, 0x0b, - 0xbf, 0xaa, 0x9f, 0xca, 0x4d, 0x33, 0x35, 0xd1, 0xfe, 0x16, 0x97, 0x7c, 0xd5, 0x5e, 0x40, 0x4b, - 0x96, 0x52, 0x5a, 0xec, 0x93, 0xde, 0xc7, 0xfe, 0x74, 0xd0, 0x1b, 0xab, 0x25, 0x04, 0x50, 0xb5, - 0x7a, 0xe3, 0x77, 0xe6, 0x48, 0x55, 0xb4, 0x23, 0x68, 0xc9, 0xf6, 0x45, 0xb7, 0xa0, 0x6c, 0x9e, - 0x9e, 0xaa, 0x25, 0xb4, 0x0f, 0x95, 0xde, 0xfb, 0x99, 0xa9, 0x2a, 0x27, 0xcf, 0xcf, 0x8f, 0x5d, - 0x8f, 0x2f, 0x57, 0x8e, 0x3e, 0xa7, 0x81, 0xe1, 0x27, 0x0b, 0x6e, 0xe4, 0x2f, 0x8c, 0x4b, 0x42, - 0x23, 0x72, 0x0e, 0x5d, 0x6a, 0x5c, 0x7f, 0x74, 0x9c, 0xaa, 0x78, 0x5e, 0x8e, 0x7f, 0x07, 0x00, - 0x00, 0xff, 0xff, 0xc8, 0x08, 0xb2, 0xe9, 0x08, 0x05, 0x00, 0x00, + // 617 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x5d, 0x6f, 0xd3, 0x30, + 0x14, 0x5d, 0xb6, 0x69, 0x8c, 0xdb, 0x52, 0x2a, 0x0b, 0xb4, 0xd1, 0x0d, 0x31, 0xf2, 0x42, 0x25, + 0xb4, 0x44, 0xeb, 0x84, 0x04, 0x02, 0x09, 0x75, 0xd0, 0x69, 0x9d, 0xb4, 0x76, 0xca, 0x82, 0x34, + 0xc6, 0x83, 0x71, 0x3a, 0x37, 0xcd, 0x96, 0xc4, 0x96, 0xe3, 0xa2, 0xe5, 0x95, 0x07, 0xde, 0xf8, + 0x3f, 0xbc, 0xf3, 0x03, 0xf8, 0x4b, 0x28, 0x8e, 0x97, 0xa6, 0x13, 0x84, 0x8f, 0xc7, 0x6b, 0xdf, + 0x73, 0x6e, 0xce, 0xc9, 0xf1, 0x85, 0xf6, 0x38, 0x4c, 0x25, 0x0d, 0xce, 0x43, 0x9b, 0x87, 0x53, + 0x3f, 0x88, 0x13, 0x3b, 0x21, 0x3e, 0x8d, 0xc8, 0x25, 0x15, 0xf6, 0x84, 0x33, 0x7c, 0xc1, 0x3c, + 0x8b, 0x0b, 0x26, 0x19, 0x6a, 0x5d, 0x77, 0x5a, 0xba, 0xd3, 0x2a, 0x3a, 0x5b, 0x3b, 0x15, 0x2c, + 0x9c, 0x08, 0x12, 0x51, 0x49, 0x05, 0x16, 0x24, 0xf6, 0x69, 0x92, 0xd3, 0xb5, 0xb6, 0x2b, 0x20, + 0x52, 0x90, 0x20, 0x0e, 0x62, 0x7f, 0x36, 0xbd, 0xf5, 0xa0, 0x68, 0x1f, 0x31, 0x41, 0x6d, 0x49, + 0x92, 0x4b, 0xcd, 0x64, 0x7e, 0x59, 0x84, 0x87, 0x07, 0x29, 0xa7, 0xa2, 0x98, 0xe4, 0x4e, 0x33, + 0xf4, 0xd0, 0xbb, 0xa0, 0x23, 0x19, 0x7c, 0xa2, 0xe8, 0xb3, 0x01, 0x0d, 0x76, 0x5d, 0x61, 0x99, + 0x72, 0xba, 0x6e, 0x6c, 0x19, 0xed, 0x46, 0xe7, 0x83, 0xf5, 0x7b, 0x51, 0x56, 0x25, 0x67, 0xf5, + 0xad, 0x9b, 0x72, 0xea, 0xdc, 0x61, 0xe5, 0x12, 0x3d, 0x82, 0x5a, 0x44, 0xa5, 0x08, 0x46, 0x38, + 0x26, 0x11, 0x5d, 0x5f, 0xdc, 0x32, 0xda, 0xb7, 0x1d, 0xc8, 0x8f, 0x06, 0x24, 0xa2, 0xe6, 0x6b, + 0x78, 0xfc, 0x47, 0x52, 0x54, 0x87, 0xd5, 0xa3, 0xfe, 0xa0, 0x7f, 0xd4, 0x3f, 0xeb, 0x35, 0x17, + 0x54, 0xd5, 0x3d, 0xcd, 0x2b, 0xc3, 0xfc, 0x61, 0xc0, 0xca, 0xc1, 0xf1, 0xf0, 0x90, 0x79, 0xe8, + 0x10, 0xea, 0x65, 0x13, 0x95, 0xdc, 0x5a, 0xe7, 0x49, 0x95, 0x5c, 0x57, 0xf7, 0x1f, 0x32, 0xcf, + 0xa9, 0xc9, 0x59, 0x81, 0x5e, 0xc1, 0x46, 0x44, 0xae, 0x70, 0x3c, 0x8d, 0x3c, 0x2a, 0x30, 0x1b, + 0xe3, 0x32, 0x73, 0xa2, 0x84, 0x2c, 0x39, 0x6b, 0x11, 0xb9, 0x1a, 0xa8, 0x8e, 0xe1, 0xb8, 0xc4, + 0x94, 0xa0, 0x97, 0xd0, 0xca, 0xd0, 0x99, 0xa8, 0x30, 0xa4, 0xe1, 0x0d, 0xf0, 0x52, 0x01, 0x3e, + 0xd6, 0x0d, 0x65, 0xb0, 0xf9, 0x7d, 0x19, 0xea, 0xb9, 0xa2, 0x37, 0x2c, 0x1e, 0x07, 0x3e, 0xfa, + 0x08, 0xf7, 0x27, 0x73, 0x1e, 0xe9, 0x50, 0x69, 0x81, 0x4f, 0xab, 0x04, 0x1e, 0x5f, 0x63, 0x1c, + 0x05, 0x71, 0xee, 0xcd, 0x33, 0xe5, 0xa7, 0x28, 0x86, 0xbb, 0x52, 0xf9, 0x8e, 0x13, 0x29, 0x88, + 0xa4, 0x7e, 0xaa, 0x14, 0x36, 0x3a, 0xbd, 0xca, 0xac, 0x94, 0x3e, 0xf2, 0x97, 0xd1, 0x38, 0xd1, + 0x64, 0x4e, 0x43, 0xce, 0xd5, 0xe8, 0x1c, 0x9a, 0x7a, 0x5e, 0x11, 0x17, 0xe5, 0x4a, 0xad, 0xf3, + 0xe2, 0xbf, 0xc3, 0xe9, 0x68, 0x09, 0xb3, 0x17, 0xf0, 0xd5, 0x80, 0xad, 0xb2, 0xf3, 0x98, 0x12, + 0x11, 0xa6, 0x38, 0x91, 0x8c, 0xf3, 0xec, 0x48, 0xbd, 0x89, 0xe5, 0x7f, 0xd4, 0x59, 0xfa, 0x55, + 0xbd, 0x8c, 0xee, 0x44, 0xb3, 0xa9, 0xf4, 0x6f, 0xca, 0x8a, 0x5b, 0xf3, 0x39, 0x6c, 0x56, 0xb9, + 0x94, 0x05, 0x7b, 0xaf, 0xfb, 0xbe, 0x77, 0xd2, 0xef, 0x0e, 0x9a, 0x0b, 0x08, 0x60, 0xc5, 0xe9, + 0x0e, 0xde, 0x0e, 0x8f, 0x9a, 0x86, 0xb9, 0x03, 0x9b, 0x55, 0x73, 0xd1, 0x2d, 0x58, 0x1a, 0xee, + 0xef, 0x37, 0x17, 0xd0, 0x2a, 0x2c, 0x77, 0xdf, 0xb9, 0xc3, 0xa6, 0x61, 0x7e, 0x33, 0x8a, 0x14, + 0x4d, 0x13, 0xc9, 0x22, 0x34, 0x80, 0x86, 0xde, 0x6d, 0x78, 0xa4, 0xa4, 0xe8, 0xf8, 0xb4, 0xff, + 0x56, 0xba, 0x53, 0x9f, 0x70, 0x36, 0x4b, 0xe5, 0x29, 0xb4, 0xe6, 0xcc, 0xcd, 0xb6, 0x13, 0x96, + 0x34, 0xe2, 0x21, 0x91, 0xf9, 0x4b, 0xaf, 0x75, 0x36, 0x66, 0xdc, 0xd9, 0x06, 0xb3, 0x5c, 0x92, + 0x5c, 0xba, 0xba, 0xc5, 0x59, 0x2b, 0x99, 0x55, 0xbe, 0xd8, 0x7b, 0x76, 0xb6, 0xeb, 0x07, 0x72, + 0x32, 0xf5, 0xac, 0x11, 0x8b, 0xec, 0x30, 0x1d, 0x4b, 0xbb, 0x58, 0x84, 0x3e, 0x8d, 0x6d, 0xee, + 0x6d, 0xfb, 0xcc, 0xbe, 0xb9, 0x4a, 0xbd, 0x15, 0xb5, 0x19, 0x77, 0x7f, 0x06, 0x00, 0x00, 0xff, + 0xff, 0x02, 0x11, 0xf9, 0xb6, 0xde, 0x05, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go index 8ceadb5da..1d4cf377c 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go @@ -274,3 +274,88 @@ var _ interface { Cause() error ErrorName() string } = HPOJobConfigValidationError{} + +// Validate checks the field values on HPOJobCustom with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *HPOJobCustom) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetHpoJobConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HPOJobCustomValidationError{ + field: "HpoJobConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTrainingJobTaskTemplate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HPOJobCustomValidationError{ + field: "TrainingJobTaskTemplate", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// HPOJobCustomValidationError is the validation error returned by +// HPOJobCustom.Validate if the designated constraints aren't met. +type HPOJobCustomValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HPOJobCustomValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HPOJobCustomValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HPOJobCustomValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HPOJobCustomValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HPOJobCustomValidationError) ErrorName() string { return "HPOJobCustomValidationError" } + +// Error satisfies the builtin error interface +func (e HPOJobCustomValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHPOJobCustom.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HPOJobCustomValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HPOJobCustomValidationError{} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java index 87ed539e5..fbe6dbf1b 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -2731,6 +2731,806 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType( } + public interface HPOJobCustomOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJobCustom) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + boolean hasHpoJobConfig(); + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getHpoJobConfig(); + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder getHpoJobConfigOrBuilder(); + + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + boolean hasTrainingJobTaskTemplate(); + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + flyteidl.core.Tasks.TaskTemplate getTrainingJobTaskTemplate(); + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTrainingJobTaskTemplateOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobCustom} + */ + public static final class HPOJobCustom extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJobCustom) + HPOJobCustomOrBuilder { + private static final long serialVersionUID = 0L; + // Use HPOJobCustom.newBuilder() to construct. + private HPOJobCustom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HPOJobCustom() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HPOJobCustom( + 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: { + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder subBuilder = null; + if (hpoJobConfig_ != null) { + subBuilder = hpoJobConfig_.toBuilder(); + } + hpoJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hpoJobConfig_); + hpoJobConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; + if (trainingJobTaskTemplate_ != null) { + subBuilder = trainingJobTaskTemplate_.toBuilder(); + } + trainingJobTaskTemplate_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingJobTaskTemplate_); + trainingJobTaskTemplate_ = 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.Builder.class); + } + + public static final int HPO_JOB_CONFIG_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig hpoJobConfig_; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + public boolean hasHpoJobConfig() { + return hpoJobConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getHpoJobConfig() { + return hpoJobConfig_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance() : hpoJobConfig_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder getHpoJobConfigOrBuilder() { + return getHpoJobConfig(); + } + + public static final int TRAINING_JOB_TASK_TEMPLATE_FIELD_NUMBER = 2; + private flyteidl.core.Tasks.TaskTemplate trainingJobTaskTemplate_; + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + public boolean hasTrainingJobTaskTemplate() { + return trainingJobTaskTemplate_ != null; + } + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTrainingJobTaskTemplate() { + return trainingJobTaskTemplate_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : trainingJobTaskTemplate_; + } + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTrainingJobTaskTemplateOrBuilder() { + return getTrainingJobTaskTemplate(); + } + + 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 (hpoJobConfig_ != null) { + output.writeMessage(1, getHpoJobConfig()); + } + if (trainingJobTaskTemplate_ != null) { + output.writeMessage(2, getTrainingJobTaskTemplate()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hpoJobConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHpoJobConfig()); + } + if (trainingJobTaskTemplate_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTrainingJobTaskTemplate()); + } + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom) obj; + + if (hasHpoJobConfig() != other.hasHpoJobConfig()) return false; + if (hasHpoJobConfig()) { + if (!getHpoJobConfig() + .equals(other.getHpoJobConfig())) return false; + } + if (hasTrainingJobTaskTemplate() != other.hasTrainingJobTaskTemplate()) return false; + if (hasTrainingJobTaskTemplate()) { + if (!getTrainingJobTaskTemplate() + .equals(other.getTrainingJobTaskTemplate())) 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 (hasHpoJobConfig()) { + hash = (37 * hash) + HPO_JOB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getHpoJobConfig().hashCode(); + } + if (hasTrainingJobTaskTemplate()) { + hash = (37 * hash) + TRAINING_JOB_TASK_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTrainingJobTaskTemplate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom 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(flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom 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 flyteidl.plugins.sagemaker.HPOJobCustom} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobCustom) + flyteidl.plugins.sagemaker.HpoJob.HPOJobCustomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.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 (hpoJobConfigBuilder_ == null) { + hpoJobConfig_ = null; + } else { + hpoJobConfig_ = null; + hpoJobConfigBuilder_ = null; + } + if (trainingJobTaskTemplateBuilder_ == null) { + trainingJobTaskTemplate_ = null; + } else { + trainingJobTaskTemplate_ = null; + trainingJobTaskTemplateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom build() { + flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom(this); + if (hpoJobConfigBuilder_ == null) { + result.hpoJobConfig_ = hpoJobConfig_; + } else { + result.hpoJobConfig_ = hpoJobConfigBuilder_.build(); + } + if (trainingJobTaskTemplateBuilder_ == null) { + result.trainingJobTaskTemplate_ = trainingJobTaskTemplate_; + } else { + result.trainingJobTaskTemplate_ = trainingJobTaskTemplateBuilder_.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 flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.getDefaultInstance()) return this; + if (other.hasHpoJobConfig()) { + mergeHpoJobConfig(other.getHpoJobConfig()); + } + if (other.hasTrainingJobTaskTemplate()) { + mergeTrainingJobTaskTemplate(other.getTrainingJobTaskTemplate()); + } + 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 { + flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig hpoJobConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder> hpoJobConfigBuilder_; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + public boolean hasHpoJobConfig() { + return hpoJobConfigBuilder_ != null || hpoJobConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getHpoJobConfig() { + if (hpoJobConfigBuilder_ == null) { + return hpoJobConfig_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance() : hpoJobConfig_; + } else { + return hpoJobConfigBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + public Builder setHpoJobConfig(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig value) { + if (hpoJobConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hpoJobConfig_ = value; + onChanged(); + } else { + hpoJobConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + public Builder setHpoJobConfig( + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder builderForValue) { + if (hpoJobConfigBuilder_ == null) { + hpoJobConfig_ = builderForValue.build(); + onChanged(); + } else { + hpoJobConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + public Builder mergeHpoJobConfig(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig value) { + if (hpoJobConfigBuilder_ == null) { + if (hpoJobConfig_ != null) { + hpoJobConfig_ = + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.newBuilder(hpoJobConfig_).mergeFrom(value).buildPartial(); + } else { + hpoJobConfig_ = value; + } + onChanged(); + } else { + hpoJobConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + public Builder clearHpoJobConfig() { + if (hpoJobConfigBuilder_ == null) { + hpoJobConfig_ = null; + onChanged(); + } else { + hpoJobConfig_ = null; + hpoJobConfigBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder getHpoJobConfigBuilder() { + + onChanged(); + return getHpoJobConfigFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder getHpoJobConfigOrBuilder() { + if (hpoJobConfigBuilder_ != null) { + return hpoJobConfigBuilder_.getMessageOrBuilder(); + } else { + return hpoJobConfig_ == null ? + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance() : hpoJobConfig_; + } + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder> + getHpoJobConfigFieldBuilder() { + if (hpoJobConfigBuilder_ == null) { + hpoJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder>( + getHpoJobConfig(), + getParentForChildren(), + isClean()); + hpoJobConfig_ = null; + } + return hpoJobConfigBuilder_; + } + + private flyteidl.core.Tasks.TaskTemplate trainingJobTaskTemplate_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> trainingJobTaskTemplateBuilder_; + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + public boolean hasTrainingJobTaskTemplate() { + return trainingJobTaskTemplateBuilder_ != null || trainingJobTaskTemplate_ != null; + } + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTrainingJobTaskTemplate() { + if (trainingJobTaskTemplateBuilder_ == null) { + return trainingJobTaskTemplate_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : trainingJobTaskTemplate_; + } else { + return trainingJobTaskTemplateBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + public Builder setTrainingJobTaskTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (trainingJobTaskTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingJobTaskTemplate_ = value; + onChanged(); + } else { + trainingJobTaskTemplateBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + public Builder setTrainingJobTaskTemplate( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (trainingJobTaskTemplateBuilder_ == null) { + trainingJobTaskTemplate_ = builderForValue.build(); + onChanged(); + } else { + trainingJobTaskTemplateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + public Builder mergeTrainingJobTaskTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (trainingJobTaskTemplateBuilder_ == null) { + if (trainingJobTaskTemplate_ != null) { + trainingJobTaskTemplate_ = + flyteidl.core.Tasks.TaskTemplate.newBuilder(trainingJobTaskTemplate_).mergeFrom(value).buildPartial(); + } else { + trainingJobTaskTemplate_ = value; + } + onChanged(); + } else { + trainingJobTaskTemplateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + public Builder clearTrainingJobTaskTemplate() { + if (trainingJobTaskTemplateBuilder_ == null) { + trainingJobTaskTemplate_ = null; + onChanged(); + } else { + trainingJobTaskTemplate_ = null; + trainingJobTaskTemplateBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTrainingJobTaskTemplateBuilder() { + + onChanged(); + return getTrainingJobTaskTemplateFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTrainingJobTaskTemplateOrBuilder() { + if (trainingJobTaskTemplateBuilder_ != null) { + return trainingJobTaskTemplateBuilder_.getMessageOrBuilder(); + } else { + return trainingJobTaskTemplate_ == null ? + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : trainingJobTaskTemplate_; + } + } + /** + * .flyteidl.core.TaskTemplate training_job_task_template = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTrainingJobTaskTemplateFieldBuilder() { + if (trainingJobTaskTemplateBuilder_ == null) { + trainingJobTaskTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + getTrainingJobTaskTemplate(), + getParentForChildren(), + isClean()); + trainingJobTaskTemplate_ = null; + } + return trainingJobTaskTemplateBuilder_; + } + @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:flyteidl.plugins.sagemaker.HPOJobCustom) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobCustom) + private static final flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom(); + } + + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HPOJobCustom parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HPOJobCustom(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 flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; private static final @@ -2746,6 +3546,11 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType( private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -2759,30 +3564,35 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType( "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" + "/plugins/sagemaker/parameter_ranges.prot" + "o\032-flyteidl/plugins/sagemaker/training_j" + - "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" + - "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" + - "ugins.sagemaker.HyperparameterTuningObje" + - "ctive.HyperparameterTuningObjectiveType\022" + - "\023\n\013metric_name\030\002 \001(\t\"?\n!HyperparameterTu" + - "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" + - "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" + - ".flyteidl.plugins.sagemaker.TrainingJob\022" + - "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" + - "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" + - "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" + - "2+.flyteidl.plugins.sagemaker.ParameterR" + - "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" + - "l.plugins.sagemaker.HPOJobConfig.Hyperpa" + - "rameterTuningStrategy\022S\n\020tuning_objectiv" + - "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" + - "erparameterTuningObjective\022o\n training_j" + - "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." + - "plugins.sagemaker.HPOJobConfig.TrainingJ" + - "obEarlyStoppingType\"8\n\034HyperparameterTun" + - "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" + - "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" + - "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" + - "/pb-go/flyteidl/pluginsb\006proto3" + "ob.proto\032\031flyteidl/core/tasks.proto\"\352\001\n\035" + + "HyperparameterTuningObjective\022s\n\016objecti" + + "ve_type\030\001 \001(\0162[.flyteidl.plugins.sagemak" + + "er.HyperparameterTuningObjective.Hyperpa" + + "rameterTuningObjectiveType\022\023\n\013metric_nam" + + "e\030\002 \001(\t\"?\n!HyperparameterTuningObjective" + + "Type\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\220\001\n\006HPO" + + "Job\022=\n\014training_job\030\001 \001(\0132\'.flyteidl.plu" + + "gins.sagemaker.TrainingJob\022#\n\033max_number" + + "_of_training_jobs\030\002 \001(\003\022\"\n\032max_parallel_" + + "training_jobs\030\003 \001(\003\"\355\003\n\014HPOJobConfig\022J\n\025" + + "hyperparameter_ranges\030\001 \001(\0132+.flyteidl.p" + + "lugins.sagemaker.ParameterRanges\022^\n\017tuni" + + "ng_strategy\030\002 \001(\0162E.flyteidl.plugins.sag" + + "emaker.HPOJobConfig.HyperparameterTuning" + + "Strategy\022S\n\020tuning_objective\030\003 \001(\01329.fly" + + "teidl.plugins.sagemaker.HyperparameterTu" + + "ningObjective\022o\n training_job_early_stop" + + "ping_type\030\004 \001(\0162E.flyteidl.plugins.sagem" + + "aker.HPOJobConfig.TrainingJobEarlyStoppi" + + "ngType\"8\n\034HyperparameterTuningStrategy\022\014" + + "\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobE" + + "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\221\001\n\014" + + "HPOJobCustom\022@\n\016hpo_job_config\030\001 \001(\0132(.f" + + "lyteidl.plugins.sagemaker.HPOJobConfig\022?" + + "\n\032training_job_task_template\030\002 \001(\0132\033.fly" + + "teidl.core.TaskTemplateB5Z3github.com/ly" + + "ft/flyteidl/gen/pb-go/flyteidl/pluginsb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -2797,6 +3607,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(), flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), }, assigner); internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor = getDescriptor().getMessageTypes().get(0); @@ -2816,8 +3627,15 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor, new java.lang.String[] { "HyperparameterRanges", "TuningStrategy", "TuningObjective", "TrainingJobEarlyStoppingType", }); + internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor, + new java.lang.String[] { "HpoJobConfig", "TrainingJobTaskTemplate", }); flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst index 4bfaa3f53..ad8cb186c 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst @@ -8,7 +8,7 @@ hpo_job.proto flyteidl.plugins.sagemaker.HyperparameterTuningObjective -------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ .. code-block:: json @@ -34,7 +34,7 @@ metric_name Enum flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType ----------------------------------------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE: @@ -53,7 +53,7 @@ MAXIMIZE flyteidl.plugins.sagemaker.HPOJob --------------------------------- -`[flyteidl.plugins.sagemaker.HPOJob proto] `_ +`[flyteidl.plugins.sagemaker.HPOJob proto] `_ .. code-block:: json @@ -86,7 +86,7 @@ max_parallel_training_jobs flyteidl.plugins.sagemaker.HPOJobConfig --------------------------------------- -`[flyteidl.plugins.sagemaker.HPOJobConfig proto] `_ +`[flyteidl.plugins.sagemaker.HPOJobConfig proto] `_ .. code-block:: json @@ -124,7 +124,7 @@ training_job_early_stopping_type Enum flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy ------------------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy proto] `_ +`[flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN: @@ -143,7 +143,7 @@ RANDOM Enum flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType ------------------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType proto] `_ +`[flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType.OFF: @@ -156,3 +156,30 @@ OFF AUTO ⁣ + +.. _api_msg_flyteidl.plugins.sagemaker.HPOJobCustom: + +flyteidl.plugins.sagemaker.HPOJobCustom +--------------------------------------- + +`[flyteidl.plugins.sagemaker.HPOJobCustom proto] `_ + + +.. code-block:: json + + { + "hpo_job_config": "{...}", + "training_job_task_template": "{...}" + } + +.. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config: + +hpo_job_config + (:ref:`flyteidl.plugins.sagemaker.HPOJobConfig `) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template: + +training_job_task_template + (:ref:`flyteidl.core.TaskTemplate `) + + diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py index 140d64ce4..16ebdc2fa 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py @@ -15,6 +15,7 @@ from flyteidl.plugins.sagemaker import parameter_ranges_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2 from flyteidl.plugins.sagemaker import training_job_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 DESCRIPTOR = _descriptor.FileDescriptor( @@ -22,9 +23,9 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\"\x91\x01\n\x0cHPOJobCustom\x12@\n\x0ehpo_job_config\x18\x01 \x01(\x0b\x32(.flyteidl.plugins.sagemaker.HPOJobConfig\x12?\n\x1atraining_job_task_template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , - dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,]) + dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,flyteidl_dot_core_dot_tasks__pb2.DESCRIPTOR,]) @@ -45,8 +46,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=342, - serialized_end=405, + serialized_start=369, + serialized_end=432, ) _sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE) @@ -67,8 +68,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=941, - serialized_end=997, + serialized_start=968, + serialized_end=1024, ) _sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY) @@ -89,8 +90,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=999, - serialized_end=1048, + serialized_start=1026, + serialized_end=1075, ) _sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE) @@ -129,8 +130,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=171, - serialized_end=405, + serialized_start=198, + serialized_end=432, ) @@ -174,8 +175,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=408, - serialized_end=552, + serialized_start=435, + serialized_end=579, ) @@ -228,8 +229,46 @@ extension_ranges=[], oneofs=[ ], - serialized_start=555, - serialized_end=1048, + serialized_start=582, + serialized_end=1075, +) + + +_HPOJOBCUSTOM = _descriptor.Descriptor( + name='HPOJobCustom', + full_name='flyteidl.plugins.sagemaker.HPOJobCustom', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='hpo_job_config', full_name='flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='training_job_task_template', full_name='flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1078, + serialized_end=1223, ) _HYPERPARAMETERTUNINGOBJECTIVE.fields_by_name['objective_type'].enum_type = _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE @@ -241,9 +280,12 @@ _HPOJOBCONFIG.fields_by_name['training_job_early_stopping_type'].enum_type = _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY.containing_type = _HPOJOBCONFIG _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE.containing_type = _HPOJOBCONFIG +_HPOJOBCUSTOM.fields_by_name['hpo_job_config'].message_type = _HPOJOBCONFIG +_HPOJOBCUSTOM.fields_by_name['training_job_task_template'].message_type = flyteidl_dot_core_dot_tasks__pb2._TASKTEMPLATE DESCRIPTOR.message_types_by_name['HyperparameterTuningObjective'] = _HYPERPARAMETERTUNINGOBJECTIVE DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB DESCRIPTOR.message_types_by_name['HPOJobConfig'] = _HPOJOBCONFIG +DESCRIPTOR.message_types_by_name['HPOJobCustom'] = _HPOJOBCUSTOM _sym_db.RegisterFileDescriptor(DESCRIPTOR) HyperparameterTuningObjective = _reflection.GeneratedProtocolMessageType('HyperparameterTuningObjective', (_message.Message,), dict( @@ -267,6 +309,13 @@ )) _sym_db.RegisterMessage(HPOJobConfig) +HPOJobCustom = _reflection.GeneratedProtocolMessageType('HPOJobCustom', (_message.Message,), dict( + DESCRIPTOR = _HPOJOBCUSTOM, + __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobCustom) + )) +_sym_db.RegisterMessage(HPOJobCustom) + DESCRIPTOR._options = None # @@protoc_insertion_point(module_scope) From 80a4cd4127f06bcb03b0a4524cf4acc6fc1e9d0c Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Tue, 21 Jul 2020 17:25:47 -0700 Subject: [PATCH 21/64] rename a field in hpojobcustom message --- .../flyteidl/plugins/sagemaker/hpo_job.pb.cc | 87 ++++---- .../flyteidl/plugins/sagemaker/hpo_job.pb.h | 76 +++---- .../flyteidl/plugins/sagemaker/hpo_job.pb.go | 86 ++++---- .../plugins/sagemaker/hpo_job.pb.validate.go | 4 +- .../flyteidl/plugins/sagemaker/Hpojob.java | 207 +++++++++--------- .../plugins/sagemaker/hpo_job.proto.rst | 8 +- .../flyteidl/plugins/sagemaker/hpo_job_pb2.py | 8 +- package.json | 2 +- .../flyteidl/plugins/sagemaker/hpo_job.proto | 2 +- setup.py | 2 +- 10 files changed, 240 insertions(+), 242 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc index 5f9b91c92..afc9dc684 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc @@ -18,7 +18,7 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; namespace flyteidl { @@ -101,7 +101,7 @@ static void InitDefaultsHPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_ ::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { - &scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base, + &scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base, &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base,}}; void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { @@ -145,7 +145,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhp ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, hpo_job_config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, hpo_job_spec_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, training_job_task_template_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -195,18 +195,17 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_ "aker.HPOJobConfig.TrainingJobEarlyStoppi" "ngType\"8\n\034HyperparameterTuningStrategy\022\014" "\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobE" - "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\221\001\n\014" - "HPOJobCustom\022@\n\016hpo_job_config\030\001 \001(\0132(.f" - "lyteidl.plugins.sagemaker.HPOJobConfig\022\?" - "\n\032training_job_task_template\030\002 \001(\0132\033.fly" - "teidl.core.TaskTemplateB5Z3github.com/ly" - "ft/flyteidl/gen/pb-go/flyteidl/pluginsb\006" - "proto3" + "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\211\001\n\014" + "HPOJobCustom\0228\n\014hpo_job_spec\030\001 \001(\0132\".fly" + "teidl.plugins.sagemaker.HPOJob\022\?\n\032traini" + "ng_job_task_template\030\002 \001(\0132\033.flyteidl.co" + "re.TaskTemplateB5Z3github.com/lyft/flyte" + "idl/gen/pb-go/flyteidl/pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, - "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1286, + "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1278, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { @@ -1478,20 +1477,20 @@ ::google::protobuf::Metadata HPOJobConfig::GetMetadata() const { // =================================================================== void HPOJobCustom::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->hpo_job_config_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig*>( - ::flyteidl::plugins::sagemaker::HPOJobConfig::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->hpo_job_spec_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJob*>( + ::flyteidl::plugins::sagemaker::HPOJob::internal_default_instance()); ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->training_job_task_template_ = const_cast< ::flyteidl::core::TaskTemplate*>( ::flyteidl::core::TaskTemplate::internal_default_instance()); } class HPOJobCustom::HasBitSetters { public: - static const ::flyteidl::plugins::sagemaker::HPOJobConfig& hpo_job_config(const HPOJobCustom* msg); + static const ::flyteidl::plugins::sagemaker::HPOJob& hpo_job_spec(const HPOJobCustom* msg); static const ::flyteidl::core::TaskTemplate& training_job_task_template(const HPOJobCustom* msg); }; -const ::flyteidl::plugins::sagemaker::HPOJobConfig& -HPOJobCustom::HasBitSetters::hpo_job_config(const HPOJobCustom* msg) { - return *msg->hpo_job_config_; +const ::flyteidl::plugins::sagemaker::HPOJob& +HPOJobCustom::HasBitSetters::hpo_job_spec(const HPOJobCustom* msg) { + return *msg->hpo_job_spec_; } const ::flyteidl::core::TaskTemplate& HPOJobCustom::HasBitSetters::training_job_task_template(const HPOJobCustom* msg) { @@ -1504,7 +1503,7 @@ void HPOJobCustom::clear_training_job_task_template() { training_job_task_template_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJobCustom::kHpoJobConfigFieldNumber; +const int HPOJobCustom::kHpoJobSpecFieldNumber; const int HPOJobCustom::kTrainingJobTaskTemplateFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 @@ -1517,10 +1516,10 @@ HPOJobCustom::HPOJobCustom(const HPOJobCustom& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_hpo_job_config()) { - hpo_job_config_ = new ::flyteidl::plugins::sagemaker::HPOJobConfig(*from.hpo_job_config_); + if (from.has_hpo_job_spec()) { + hpo_job_spec_ = new ::flyteidl::plugins::sagemaker::HPOJob(*from.hpo_job_spec_); } else { - hpo_job_config_ = nullptr; + hpo_job_spec_ = nullptr; } if (from.has_training_job_task_template()) { training_job_task_template_ = new ::flyteidl::core::TaskTemplate(*from.training_job_task_template_); @@ -1533,9 +1532,9 @@ HPOJobCustom::HPOJobCustom(const HPOJobCustom& from) void HPOJobCustom::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::memset(&hpo_job_config_, 0, static_cast( + ::memset(&hpo_job_spec_, 0, static_cast( reinterpret_cast(&training_job_task_template_) - - reinterpret_cast(&hpo_job_config_)) + sizeof(training_job_task_template_)); + reinterpret_cast(&hpo_job_spec_)) + sizeof(training_job_task_template_)); } HPOJobCustom::~HPOJobCustom() { @@ -1544,7 +1543,7 @@ HPOJobCustom::~HPOJobCustom() { } void HPOJobCustom::SharedDtor() { - if (this != internal_default_instance()) delete hpo_job_config_; + if (this != internal_default_instance()) delete hpo_job_spec_; if (this != internal_default_instance()) delete training_job_task_template_; } @@ -1563,10 +1562,10 @@ void HPOJobCustom::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaNoVirtual() == nullptr && hpo_job_config_ != nullptr) { - delete hpo_job_config_; + if (GetArenaNoVirtual() == nullptr && hpo_job_spec_ != nullptr) { + delete hpo_job_spec_; } - hpo_job_config_ = nullptr; + hpo_job_spec_ = nullptr; if (GetArenaNoVirtual() == nullptr && training_job_task_template_ != nullptr) { delete training_job_task_template_; } @@ -1587,13 +1586,13 @@ const char* HPOJobCustom::_InternalParse(const char* begin, const char* end, voi ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::HPOJobConfig::_InternalParse; - object = msg->mutable_hpo_job_config(); + parser_till_end = ::flyteidl::plugins::sagemaker::HPOJob::_InternalParse; + object = msg->mutable_hpo_job_spec(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( @@ -1643,11 +1642,11 @@ bool HPOJobCustom::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_hpo_job_config())); + input, mutable_hpo_job_spec())); } else { goto handle_unusual; } @@ -1692,10 +1691,10 @@ void HPOJobCustom::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - if (this->has_hpo_job_config()) { + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + if (this->has_hpo_job_spec()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::hpo_job_config(this), output); + 1, HasBitSetters::hpo_job_spec(this), output); } // .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -1717,11 +1716,11 @@ ::google::protobuf::uint8* HPOJobCustom::InternalSerializeWithCachedSizesToArray ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - if (this->has_hpo_job_config()) { + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + if (this->has_hpo_job_spec()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::hpo_job_config(this), target); + 1, HasBitSetters::hpo_job_spec(this), target); } // .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -1752,11 +1751,11 @@ size_t HPOJobCustom::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - if (this->has_hpo_job_config()) { + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + if (this->has_hpo_job_spec()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *hpo_job_config_); + *hpo_job_spec_); } // .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -1793,8 +1792,8 @@ void HPOJobCustom::MergeFrom(const HPOJobCustom& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_hpo_job_config()) { - mutable_hpo_job_config()->::flyteidl::plugins::sagemaker::HPOJobConfig::MergeFrom(from.hpo_job_config()); + if (from.has_hpo_job_spec()) { + mutable_hpo_job_spec()->::flyteidl::plugins::sagemaker::HPOJob::MergeFrom(from.hpo_job_spec()); } if (from.has_training_job_task_template()) { mutable_training_job_task_template()->::flyteidl::core::TaskTemplate::MergeFrom(from.training_job_task_template()); @@ -1826,7 +1825,7 @@ void HPOJobCustom::Swap(HPOJobCustom* other) { void HPOJobCustom::InternalSwap(HPOJobCustom* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(hpo_job_config_, other->hpo_job_config_); + swap(hpo_job_spec_, other->hpo_job_spec_); swap(training_job_task_template_, other->training_job_task_template_); } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h index e8265d59a..cfb674f96 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h @@ -715,14 +715,14 @@ class HPOJobCustom final : // accessors ------------------------------------------------------- - // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - bool has_hpo_job_config() const; - void clear_hpo_job_config(); - static const int kHpoJobConfigFieldNumber = 1; - const ::flyteidl::plugins::sagemaker::HPOJobConfig& hpo_job_config() const; - ::flyteidl::plugins::sagemaker::HPOJobConfig* release_hpo_job_config(); - ::flyteidl::plugins::sagemaker::HPOJobConfig* mutable_hpo_job_config(); - void set_allocated_hpo_job_config(::flyteidl::plugins::sagemaker::HPOJobConfig* hpo_job_config); + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + bool has_hpo_job_spec() const; + void clear_hpo_job_spec(); + static const int kHpoJobSpecFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::HPOJob& hpo_job_spec() const; + ::flyteidl::plugins::sagemaker::HPOJob* release_hpo_job_spec(); + ::flyteidl::plugins::sagemaker::HPOJob* mutable_hpo_job_spec(); + void set_allocated_hpo_job_spec(::flyteidl::plugins::sagemaker::HPOJob* hpo_job_spec); // .flyteidl.core.TaskTemplate training_job_task_template = 2; bool has_training_job_task_template() const; @@ -738,7 +738,7 @@ class HPOJobCustom final : class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::sagemaker::HPOJobConfig* hpo_job_config_; + ::flyteidl::plugins::sagemaker::HPOJob* hpo_job_spec_; ::flyteidl::core::TaskTemplate* training_job_task_template_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; @@ -1030,55 +1030,55 @@ inline void HPOJobConfig::set_training_job_early_stopping_type(::flyteidl::plugi // HPOJobCustom -// .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; -inline bool HPOJobCustom::has_hpo_job_config() const { - return this != internal_default_instance() && hpo_job_config_ != nullptr; +// .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; +inline bool HPOJobCustom::has_hpo_job_spec() const { + return this != internal_default_instance() && hpo_job_spec_ != nullptr; } -inline void HPOJobCustom::clear_hpo_job_config() { - if (GetArenaNoVirtual() == nullptr && hpo_job_config_ != nullptr) { - delete hpo_job_config_; +inline void HPOJobCustom::clear_hpo_job_spec() { + if (GetArenaNoVirtual() == nullptr && hpo_job_spec_ != nullptr) { + delete hpo_job_spec_; } - hpo_job_config_ = nullptr; + hpo_job_spec_ = nullptr; } -inline const ::flyteidl::plugins::sagemaker::HPOJobConfig& HPOJobCustom::hpo_job_config() const { - const ::flyteidl::plugins::sagemaker::HPOJobConfig* p = hpo_job_config_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_); +inline const ::flyteidl::plugins::sagemaker::HPOJob& HPOJobCustom::hpo_job_spec() const { + const ::flyteidl::plugins::sagemaker::HPOJob* p = hpo_job_spec_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_HPOJob_default_instance_); } -inline ::flyteidl::plugins::sagemaker::HPOJobConfig* HPOJobCustom::release_hpo_job_config() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) +inline ::flyteidl::plugins::sagemaker::HPOJob* HPOJobCustom::release_hpo_job_spec() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) - ::flyteidl::plugins::sagemaker::HPOJobConfig* temp = hpo_job_config_; - hpo_job_config_ = nullptr; + ::flyteidl::plugins::sagemaker::HPOJob* temp = hpo_job_spec_; + hpo_job_spec_ = nullptr; return temp; } -inline ::flyteidl::plugins::sagemaker::HPOJobConfig* HPOJobCustom::mutable_hpo_job_config() { +inline ::flyteidl::plugins::sagemaker::HPOJob* HPOJobCustom::mutable_hpo_job_spec() { - if (hpo_job_config_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobConfig>(GetArenaNoVirtual()); - hpo_job_config_ = p; + if (hpo_job_spec_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJob>(GetArenaNoVirtual()); + hpo_job_spec_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) - return hpo_job_config_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) + return hpo_job_spec_; } -inline void HPOJobCustom::set_allocated_hpo_job_config(::flyteidl::plugins::sagemaker::HPOJobConfig* hpo_job_config) { +inline void HPOJobCustom::set_allocated_hpo_job_spec(::flyteidl::plugins::sagemaker::HPOJob* hpo_job_spec) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete hpo_job_config_; + delete hpo_job_spec_; } - if (hpo_job_config) { + if (hpo_job_spec) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - hpo_job_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, hpo_job_config, submessage_arena); + hpo_job_spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hpo_job_spec, submessage_arena); } } else { } - hpo_job_config_ = hpo_job_config; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) + hpo_job_spec_ = hpo_job_spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) } // .flyteidl.core.TaskTemplate training_job_task_template = 2; diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go index 62478df94..0d93c0772 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go @@ -262,7 +262,7 @@ func (m *HPOJobConfig) GetTrainingJobEarlyStoppingType() HPOJobConfig_TrainingJo } type HPOJobCustom struct { - HpoJobConfig *HPOJobConfig `protobuf:"bytes,1,opt,name=hpo_job_config,json=hpoJobConfig,proto3" json:"hpo_job_config,omitempty"` + HpoJobSpec *HPOJob `protobuf:"bytes,1,opt,name=hpo_job_spec,json=hpoJobSpec,proto3" json:"hpo_job_spec,omitempty"` TrainingJobTaskTemplate *core.TaskTemplate `protobuf:"bytes,2,opt,name=training_job_task_template,json=trainingJobTaskTemplate,proto3" json:"training_job_task_template,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -294,9 +294,9 @@ func (m *HPOJobCustom) XXX_DiscardUnknown() { var xxx_messageInfo_HPOJobCustom proto.InternalMessageInfo -func (m *HPOJobCustom) GetHpoJobConfig() *HPOJobConfig { +func (m *HPOJobCustom) GetHpoJobSpec() *HPOJob { if m != nil { - return m.HpoJobConfig + return m.HpoJobSpec } return nil } @@ -323,44 +323,44 @@ func init() { } var fileDescriptor_50903433b4c088ac = []byte{ - // 617 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x5d, 0x6f, 0xd3, 0x30, - 0x14, 0x5d, 0xb6, 0x69, 0x8c, 0xdb, 0x52, 0x2a, 0x0b, 0xb4, 0xd1, 0x0d, 0x31, 0xf2, 0x42, 0x25, - 0xb4, 0x44, 0xeb, 0x84, 0x04, 0x02, 0x09, 0x75, 0xd0, 0x69, 0x9d, 0xb4, 0x76, 0xca, 0x82, 0x34, - 0xc6, 0x83, 0x71, 0x3a, 0x37, 0xcd, 0x96, 0xc4, 0x96, 0xe3, 0xa2, 0xe5, 0x95, 0x07, 0xde, 0xf8, - 0x3f, 0xbc, 0xf3, 0x03, 0xf8, 0x4b, 0x28, 0x8e, 0x97, 0xa6, 0x13, 0x84, 0x8f, 0xc7, 0x6b, 0xdf, - 0x73, 0x6e, 0xce, 0xc9, 0xf1, 0x85, 0xf6, 0x38, 0x4c, 0x25, 0x0d, 0xce, 0x43, 0x9b, 0x87, 0x53, - 0x3f, 0x88, 0x13, 0x3b, 0x21, 0x3e, 0x8d, 0xc8, 0x25, 0x15, 0xf6, 0x84, 0x33, 0x7c, 0xc1, 0x3c, - 0x8b, 0x0b, 0x26, 0x19, 0x6a, 0x5d, 0x77, 0x5a, 0xba, 0xd3, 0x2a, 0x3a, 0x5b, 0x3b, 0x15, 0x2c, - 0x9c, 0x08, 0x12, 0x51, 0x49, 0x05, 0x16, 0x24, 0xf6, 0x69, 0x92, 0xd3, 0xb5, 0xb6, 0x2b, 0x20, - 0x52, 0x90, 0x20, 0x0e, 0x62, 0x7f, 0x36, 0xbd, 0xf5, 0xa0, 0x68, 0x1f, 0x31, 0x41, 0x6d, 0x49, - 0x92, 0x4b, 0xcd, 0x64, 0x7e, 0x59, 0x84, 0x87, 0x07, 0x29, 0xa7, 0xa2, 0x98, 0xe4, 0x4e, 0x33, - 0xf4, 0xd0, 0xbb, 0xa0, 0x23, 0x19, 0x7c, 0xa2, 0xe8, 0xb3, 0x01, 0x0d, 0x76, 0x5d, 0x61, 0x99, - 0x72, 0xba, 0x6e, 0x6c, 0x19, 0xed, 0x46, 0xe7, 0x83, 0xf5, 0x7b, 0x51, 0x56, 0x25, 0x67, 0xf5, - 0xad, 0x9b, 0x72, 0xea, 0xdc, 0x61, 0xe5, 0x12, 0x3d, 0x82, 0x5a, 0x44, 0xa5, 0x08, 0x46, 0x38, - 0x26, 0x11, 0x5d, 0x5f, 0xdc, 0x32, 0xda, 0xb7, 0x1d, 0xc8, 0x8f, 0x06, 0x24, 0xa2, 0xe6, 0x6b, - 0x78, 0xfc, 0x47, 0x52, 0x54, 0x87, 0xd5, 0xa3, 0xfe, 0xa0, 0x7f, 0xd4, 0x3f, 0xeb, 0x35, 0x17, - 0x54, 0xd5, 0x3d, 0xcd, 0x2b, 0xc3, 0xfc, 0x61, 0xc0, 0xca, 0xc1, 0xf1, 0xf0, 0x90, 0x79, 0xe8, - 0x10, 0xea, 0x65, 0x13, 0x95, 0xdc, 0x5a, 0xe7, 0x49, 0x95, 0x5c, 0x57, 0xf7, 0x1f, 0x32, 0xcf, - 0xa9, 0xc9, 0x59, 0x81, 0x5e, 0xc1, 0x46, 0x44, 0xae, 0x70, 0x3c, 0x8d, 0x3c, 0x2a, 0x30, 0x1b, - 0xe3, 0x32, 0x73, 0xa2, 0x84, 0x2c, 0x39, 0x6b, 0x11, 0xb9, 0x1a, 0xa8, 0x8e, 0xe1, 0xb8, 0xc4, - 0x94, 0xa0, 0x97, 0xd0, 0xca, 0xd0, 0x99, 0xa8, 0x30, 0xa4, 0xe1, 0x0d, 0xf0, 0x52, 0x01, 0x3e, - 0xd6, 0x0d, 0x65, 0xb0, 0xf9, 0x7d, 0x19, 0xea, 0xb9, 0xa2, 0x37, 0x2c, 0x1e, 0x07, 0x3e, 0xfa, - 0x08, 0xf7, 0x27, 0x73, 0x1e, 0xe9, 0x50, 0x69, 0x81, 0x4f, 0xab, 0x04, 0x1e, 0x5f, 0x63, 0x1c, - 0x05, 0x71, 0xee, 0xcd, 0x33, 0xe5, 0xa7, 0x28, 0x86, 0xbb, 0x52, 0xf9, 0x8e, 0x13, 0x29, 0x88, - 0xa4, 0x7e, 0xaa, 0x14, 0x36, 0x3a, 0xbd, 0xca, 0xac, 0x94, 0x3e, 0xf2, 0x97, 0xd1, 0x38, 0xd1, - 0x64, 0x4e, 0x43, 0xce, 0xd5, 0xe8, 0x1c, 0x9a, 0x7a, 0x5e, 0x11, 0x17, 0xe5, 0x4a, 0xad, 0xf3, - 0xe2, 0xbf, 0xc3, 0xe9, 0x68, 0x09, 0xb3, 0x17, 0xf0, 0xd5, 0x80, 0xad, 0xb2, 0xf3, 0x98, 0x12, - 0x11, 0xa6, 0x38, 0x91, 0x8c, 0xf3, 0xec, 0x48, 0xbd, 0x89, 0xe5, 0x7f, 0xd4, 0x59, 0xfa, 0x55, - 0xbd, 0x8c, 0xee, 0x44, 0xb3, 0xa9, 0xf4, 0x6f, 0xca, 0x8a, 0x5b, 0xf3, 0x39, 0x6c, 0x56, 0xb9, - 0x94, 0x05, 0x7b, 0xaf, 0xfb, 0xbe, 0x77, 0xd2, 0xef, 0x0e, 0x9a, 0x0b, 0x08, 0x60, 0xc5, 0xe9, - 0x0e, 0xde, 0x0e, 0x8f, 0x9a, 0x86, 0xb9, 0x03, 0x9b, 0x55, 0x73, 0xd1, 0x2d, 0x58, 0x1a, 0xee, - 0xef, 0x37, 0x17, 0xd0, 0x2a, 0x2c, 0x77, 0xdf, 0xb9, 0xc3, 0xa6, 0x61, 0x7e, 0x33, 0x8a, 0x14, - 0x4d, 0x13, 0xc9, 0x22, 0x34, 0x80, 0x86, 0xde, 0x6d, 0x78, 0xa4, 0xa4, 0xe8, 0xf8, 0xb4, 0xff, - 0x56, 0xba, 0x53, 0x9f, 0x70, 0x36, 0x4b, 0xe5, 0x29, 0xb4, 0xe6, 0xcc, 0xcd, 0xb6, 0x13, 0x96, - 0x34, 0xe2, 0x21, 0x91, 0xf9, 0x4b, 0xaf, 0x75, 0x36, 0x66, 0xdc, 0xd9, 0x06, 0xb3, 0x5c, 0x92, - 0x5c, 0xba, 0xba, 0xc5, 0x59, 0x2b, 0x99, 0x55, 0xbe, 0xd8, 0x7b, 0x76, 0xb6, 0xeb, 0x07, 0x72, - 0x32, 0xf5, 0xac, 0x11, 0x8b, 0xec, 0x30, 0x1d, 0x4b, 0xbb, 0x58, 0x84, 0x3e, 0x8d, 0x6d, 0xee, - 0x6d, 0xfb, 0xcc, 0xbe, 0xb9, 0x4a, 0xbd, 0x15, 0xb5, 0x19, 0x77, 0x7f, 0x06, 0x00, 0x00, 0xff, - 0xff, 0x02, 0x11, 0xf9, 0xb6, 0xde, 0x05, 0x00, 0x00, + // 622 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x51, 0x6f, 0xd3, 0x3c, + 0x14, 0x5d, 0xb6, 0x69, 0xdf, 0xbe, 0xdb, 0x52, 0x2a, 0x0b, 0xb4, 0xd1, 0x0d, 0x31, 0xf2, 0xc2, + 0x24, 0xb4, 0x44, 0xeb, 0x84, 0x04, 0x02, 0x09, 0x75, 0xac, 0xd3, 0x5a, 0x69, 0xed, 0x94, 0x06, + 0x69, 0x8c, 0x07, 0xe3, 0x64, 0x6e, 0x9a, 0x2d, 0x89, 0x2d, 0xc7, 0x45, 0xcb, 0x2b, 0x0f, 0xbc, + 0xf1, 0x57, 0xf8, 0x13, 0xfc, 0x00, 0xfe, 0x12, 0x4a, 0xe2, 0xa6, 0xe9, 0x04, 0x99, 0xe0, 0xf1, + 0xda, 0xf7, 0x9c, 0x9b, 0x73, 0x72, 0x7c, 0x61, 0x77, 0x1c, 0x24, 0x92, 0xfa, 0x97, 0x81, 0xc9, + 0x83, 0xa9, 0xe7, 0x47, 0xb1, 0x19, 0x13, 0x8f, 0x86, 0xe4, 0x9a, 0x0a, 0x73, 0xc2, 0x19, 0xbe, + 0x62, 0x8e, 0xc1, 0x05, 0x93, 0x0c, 0xb5, 0x66, 0x9d, 0x86, 0xea, 0x34, 0x8a, 0xce, 0xd6, 0x7e, + 0x05, 0x0b, 0x27, 0x82, 0x84, 0x54, 0x52, 0x81, 0x05, 0x89, 0x3c, 0x1a, 0xe7, 0x74, 0xad, 0xbd, + 0x0a, 0x88, 0x14, 0xc4, 0x8f, 0xfc, 0xc8, 0x9b, 0x4f, 0x6f, 0x3d, 0x2a, 0xda, 0x5d, 0x26, 0xa8, + 0x29, 0x49, 0x7c, 0xad, 0x98, 0xf4, 0xaf, 0xcb, 0xf0, 0xf8, 0x24, 0xe1, 0x54, 0x14, 0x93, 0xec, + 0x69, 0x8a, 0x1e, 0x3a, 0x57, 0xd4, 0x95, 0xfe, 0x67, 0x8a, 0xbe, 0x68, 0xd0, 0x60, 0xb3, 0x0a, + 0xcb, 0x84, 0xd3, 0x4d, 0x6d, 0x47, 0xdb, 0x6d, 0xb4, 0x3f, 0x1a, 0x7f, 0x16, 0x65, 0x54, 0x72, + 0x56, 0xdf, 0xda, 0x09, 0xa7, 0xd6, 0x3d, 0x56, 0x2e, 0xd1, 0x13, 0xa8, 0x85, 0x54, 0x0a, 0xdf, + 0xc5, 0x11, 0x09, 0xe9, 0xe6, 0xf2, 0x8e, 0xb6, 0xfb, 0xbf, 0x05, 0xf9, 0xd1, 0x80, 0x84, 0x54, + 0x7f, 0x0b, 0x4f, 0xef, 0x24, 0x45, 0x75, 0x58, 0x3f, 0xed, 0x0d, 0x7a, 0xa7, 0xbd, 0x8b, 0x6e, + 0x73, 0x29, 0xab, 0x3a, 0xe7, 0x79, 0xa5, 0xe9, 0x3f, 0x35, 0x58, 0x3b, 0x39, 0x1b, 0xf6, 0x99, + 0x83, 0xfa, 0x50, 0x2f, 0x9b, 0x98, 0xc9, 0xad, 0xb5, 0x9f, 0x55, 0xc9, 0xb5, 0x55, 0x7f, 0x9f, + 0x39, 0x56, 0x4d, 0xce, 0x0b, 0xf4, 0x06, 0xb6, 0x42, 0x72, 0x83, 0xa3, 0x69, 0xe8, 0x50, 0x81, + 0xd9, 0x18, 0x97, 0x99, 0xe3, 0x4c, 0xc8, 0x8a, 0xb5, 0x11, 0x92, 0x9b, 0x41, 0xd6, 0x31, 0x1c, + 0x97, 0x98, 0x62, 0xf4, 0x1a, 0x5a, 0x29, 0x3a, 0x15, 0x15, 0x04, 0x34, 0xb8, 0x05, 0x5e, 0x29, + 0xc0, 0x67, 0xaa, 0xa1, 0x0c, 0xd6, 0x7f, 0xac, 0x42, 0x3d, 0x57, 0xf4, 0x8e, 0x45, 0x63, 0xdf, + 0x43, 0x9f, 0xe0, 0xe1, 0x64, 0xc1, 0x23, 0x15, 0x2a, 0x25, 0xf0, 0x79, 0x95, 0xc0, 0xb3, 0x19, + 0xc6, 0xca, 0x20, 0xd6, 0x83, 0x45, 0xa6, 0xfc, 0x14, 0x45, 0x70, 0x5f, 0x66, 0xbe, 0xe3, 0x58, + 0x0a, 0x22, 0xa9, 0x97, 0x64, 0x0a, 0x1b, 0xed, 0x6e, 0x65, 0x56, 0x4a, 0x1f, 0xf9, 0xdb, 0x68, + 0x8c, 0x14, 0x99, 0xd5, 0x90, 0x0b, 0x35, 0xba, 0x84, 0xa6, 0x9a, 0x57, 0xc4, 0x25, 0x73, 0xa5, + 0xd6, 0x7e, 0xf5, 0xcf, 0xe1, 0xb4, 0x94, 0x84, 0xf9, 0x0b, 0xf8, 0xa6, 0xc1, 0x4e, 0xd9, 0x79, + 0x4c, 0x89, 0x08, 0x12, 0x1c, 0x4b, 0xc6, 0x79, 0x7a, 0x94, 0xbd, 0x89, 0xd5, 0xbf, 0xd4, 0x59, + 0xfa, 0x55, 0xdd, 0x94, 0x6e, 0xa4, 0xd8, 0xb2, 0xf4, 0x6f, 0xcb, 0x8a, 0x5b, 0xfd, 0x25, 0x6c, + 0x57, 0xb9, 0x94, 0x06, 0xfb, 0xb0, 0xf3, 0xa1, 0x3b, 0xea, 0x75, 0x06, 0xcd, 0x25, 0x04, 0xb0, + 0x66, 0x75, 0x06, 0x47, 0xc3, 0xd3, 0xa6, 0xa6, 0xef, 0xc3, 0x76, 0xd5, 0x5c, 0xf4, 0x1f, 0xac, + 0x0c, 0x8f, 0x8f, 0x9b, 0x4b, 0x68, 0x1d, 0x56, 0x3b, 0xef, 0xed, 0x61, 0x53, 0xd3, 0xbf, 0x6b, + 0x45, 0x8a, 0xa6, 0xb1, 0x64, 0x21, 0x3a, 0x82, 0xba, 0xda, 0x6d, 0x38, 0xe6, 0xd4, 0x55, 0xe1, + 0xd1, 0xef, 0x16, 0x6e, 0xc1, 0x84, 0xb3, 0x3e, 0x73, 0x46, 0x9c, 0xba, 0xe8, 0x1c, 0x5a, 0x0b, + 0x96, 0xa6, 0x3b, 0x09, 0x4b, 0x1a, 0xf2, 0x80, 0xc8, 0xfc, 0x7d, 0xd7, 0xda, 0x5b, 0x73, 0xce, + 0x74, 0x6f, 0x19, 0x36, 0x89, 0xaf, 0x6d, 0xd5, 0x62, 0x6d, 0x94, 0x2c, 0x2a, 0x5f, 0x1c, 0xbe, + 0xb8, 0x38, 0xf0, 0x7c, 0x39, 0x99, 0x3a, 0x86, 0xcb, 0x42, 0x33, 0x48, 0xc6, 0xd2, 0x2c, 0xd6, + 0x9f, 0x47, 0x23, 0x93, 0x3b, 0x7b, 0x1e, 0x33, 0x6f, 0x2f, 0x50, 0x67, 0x2d, 0xdb, 0x87, 0x07, + 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x44, 0x86, 0xfb, 0xf9, 0xd4, 0x05, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go index 1d4cf377c..fa7e4eb6e 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go @@ -283,10 +283,10 @@ func (m *HPOJobCustom) Validate() error { return nil } - if v, ok := interface{}(m.GetHpoJobConfig()).(interface{ Validate() error }); ok { + if v, ok := interface{}(m.GetHpoJobSpec()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HPOJobCustomValidationError{ - field: "HpoJobConfig", + field: "HpoJobSpec", reason: "embedded message failed validation", cause: err, } diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java index fbe6dbf1b..55e00e1d5 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -2736,17 +2736,17 @@ public interface HPOJobCustomOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - boolean hasHpoJobConfig(); + boolean hasHpoJobSpec(); /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getHpoJobConfig(); + flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobSpec(); /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder getHpoJobConfigOrBuilder(); + flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobSpecOrBuilder(); /** * .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -2801,14 +2801,14 @@ private HPOJobCustom( done = true; break; case 10: { - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder subBuilder = null; - if (hpoJobConfig_ != null) { - subBuilder = hpoJobConfig_.toBuilder(); + flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder subBuilder = null; + if (hpoJobSpec_ != null) { + subBuilder = hpoJobSpec_.toBuilder(); } - hpoJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.parser(), extensionRegistry); + hpoJobSpec_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HPOJob.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(hpoJobConfig_); - hpoJobConfig_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(hpoJobSpec_); + hpoJobSpec_ = subBuilder.buildPartial(); } break; @@ -2858,25 +2858,25 @@ private HPOJobCustom( flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.Builder.class); } - public static final int HPO_JOB_CONFIG_FIELD_NUMBER = 1; - private flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig hpoJobConfig_; + public static final int HPO_JOB_SPEC_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.HpoJob.HPOJob hpoJobSpec_; /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public boolean hasHpoJobConfig() { - return hpoJobConfig_ != null; + public boolean hasHpoJobSpec() { + return hpoJobSpec_ != null; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getHpoJobConfig() { - return hpoJobConfig_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance() : hpoJobConfig_; + public flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobSpec() { + return hpoJobSpec_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobSpec_; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder getHpoJobConfigOrBuilder() { - return getHpoJobConfig(); + public flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobSpecOrBuilder() { + return getHpoJobSpec(); } public static final int TRAINING_JOB_TASK_TEMPLATE_FIELD_NUMBER = 2; @@ -2914,8 +2914,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (hpoJobConfig_ != null) { - output.writeMessage(1, getHpoJobConfig()); + if (hpoJobSpec_ != null) { + output.writeMessage(1, getHpoJobSpec()); } if (trainingJobTaskTemplate_ != null) { output.writeMessage(2, getTrainingJobTaskTemplate()); @@ -2929,9 +2929,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (hpoJobConfig_ != null) { + if (hpoJobSpec_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHpoJobConfig()); + .computeMessageSize(1, getHpoJobSpec()); } if (trainingJobTaskTemplate_ != null) { size += com.google.protobuf.CodedOutputStream @@ -2952,10 +2952,10 @@ public boolean equals(final java.lang.Object obj) { } flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom) obj; - if (hasHpoJobConfig() != other.hasHpoJobConfig()) return false; - if (hasHpoJobConfig()) { - if (!getHpoJobConfig() - .equals(other.getHpoJobConfig())) return false; + if (hasHpoJobSpec() != other.hasHpoJobSpec()) return false; + if (hasHpoJobSpec()) { + if (!getHpoJobSpec() + .equals(other.getHpoJobSpec())) return false; } if (hasTrainingJobTaskTemplate() != other.hasTrainingJobTaskTemplate()) return false; if (hasTrainingJobTaskTemplate()) { @@ -2973,9 +2973,9 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasHpoJobConfig()) { - hash = (37 * hash) + HPO_JOB_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getHpoJobConfig().hashCode(); + if (hasHpoJobSpec()) { + hash = (37 * hash) + HPO_JOB_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getHpoJobSpec().hashCode(); } if (hasTrainingJobTaskTemplate()) { hash = (37 * hash) + TRAINING_JOB_TASK_TEMPLATE_FIELD_NUMBER; @@ -3114,11 +3114,11 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (hpoJobConfigBuilder_ == null) { - hpoJobConfig_ = null; + if (hpoJobSpecBuilder_ == null) { + hpoJobSpec_ = null; } else { - hpoJobConfig_ = null; - hpoJobConfigBuilder_ = null; + hpoJobSpec_ = null; + hpoJobSpecBuilder_ = null; } if (trainingJobTaskTemplateBuilder_ == null) { trainingJobTaskTemplate_ = null; @@ -3152,10 +3152,10 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom build() { @java.lang.Override public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom buildPartial() { flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom(this); - if (hpoJobConfigBuilder_ == null) { - result.hpoJobConfig_ = hpoJobConfig_; + if (hpoJobSpecBuilder_ == null) { + result.hpoJobSpec_ = hpoJobSpec_; } else { - result.hpoJobConfig_ = hpoJobConfigBuilder_.build(); + result.hpoJobSpec_ = hpoJobSpecBuilder_.build(); } if (trainingJobTaskTemplateBuilder_ == null) { result.trainingJobTaskTemplate_ = trainingJobTaskTemplate_; @@ -3210,8 +3210,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom other) { if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.getDefaultInstance()) return this; - if (other.hasHpoJobConfig()) { - mergeHpoJobConfig(other.getHpoJobConfig()); + if (other.hasHpoJobSpec()) { + mergeHpoJobSpec(other.getHpoJobSpec()); } if (other.hasTrainingJobTaskTemplate()) { mergeTrainingJobTaskTemplate(other.getTrainingJobTaskTemplate()); @@ -3245,121 +3245,121 @@ public Builder mergeFrom( return this; } - private flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig hpoJobConfig_; + private flyteidl.plugins.sagemaker.HpoJob.HPOJob hpoJobSpec_; private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder> hpoJobConfigBuilder_; + flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder> hpoJobSpecBuilder_; /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public boolean hasHpoJobConfig() { - return hpoJobConfigBuilder_ != null || hpoJobConfig_ != null; + public boolean hasHpoJobSpec() { + return hpoJobSpecBuilder_ != null || hpoJobSpec_ != null; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getHpoJobConfig() { - if (hpoJobConfigBuilder_ == null) { - return hpoJobConfig_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance() : hpoJobConfig_; + public flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobSpec() { + if (hpoJobSpecBuilder_ == null) { + return hpoJobSpec_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobSpec_; } else { - return hpoJobConfigBuilder_.getMessage(); + return hpoJobSpecBuilder_.getMessage(); } } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public Builder setHpoJobConfig(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig value) { - if (hpoJobConfigBuilder_ == null) { + public Builder setHpoJobSpec(flyteidl.plugins.sagemaker.HpoJob.HPOJob value) { + if (hpoJobSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hpoJobConfig_ = value; + hpoJobSpec_ = value; onChanged(); } else { - hpoJobConfigBuilder_.setMessage(value); + hpoJobSpecBuilder_.setMessage(value); } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public Builder setHpoJobConfig( - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder builderForValue) { - if (hpoJobConfigBuilder_ == null) { - hpoJobConfig_ = builderForValue.build(); + public Builder setHpoJobSpec( + flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder builderForValue) { + if (hpoJobSpecBuilder_ == null) { + hpoJobSpec_ = builderForValue.build(); onChanged(); } else { - hpoJobConfigBuilder_.setMessage(builderForValue.build()); + hpoJobSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public Builder mergeHpoJobConfig(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig value) { - if (hpoJobConfigBuilder_ == null) { - if (hpoJobConfig_ != null) { - hpoJobConfig_ = - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.newBuilder(hpoJobConfig_).mergeFrom(value).buildPartial(); + public Builder mergeHpoJobSpec(flyteidl.plugins.sagemaker.HpoJob.HPOJob value) { + if (hpoJobSpecBuilder_ == null) { + if (hpoJobSpec_ != null) { + hpoJobSpec_ = + flyteidl.plugins.sagemaker.HpoJob.HPOJob.newBuilder(hpoJobSpec_).mergeFrom(value).buildPartial(); } else { - hpoJobConfig_ = value; + hpoJobSpec_ = value; } onChanged(); } else { - hpoJobConfigBuilder_.mergeFrom(value); + hpoJobSpecBuilder_.mergeFrom(value); } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public Builder clearHpoJobConfig() { - if (hpoJobConfigBuilder_ == null) { - hpoJobConfig_ = null; + public Builder clearHpoJobSpec() { + if (hpoJobSpecBuilder_ == null) { + hpoJobSpec_ = null; onChanged(); } else { - hpoJobConfig_ = null; - hpoJobConfigBuilder_ = null; + hpoJobSpec_ = null; + hpoJobSpecBuilder_ = null; } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder getHpoJobConfigBuilder() { + public flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder getHpoJobSpecBuilder() { onChanged(); - return getHpoJobConfigFieldBuilder().getBuilder(); + return getHpoJobSpecFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder getHpoJobConfigOrBuilder() { - if (hpoJobConfigBuilder_ != null) { - return hpoJobConfigBuilder_.getMessageOrBuilder(); + public flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobSpecOrBuilder() { + if (hpoJobSpecBuilder_ != null) { + return hpoJobSpecBuilder_.getMessageOrBuilder(); } else { - return hpoJobConfig_ == null ? - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance() : hpoJobConfig_; + return hpoJobSpec_ == null ? + flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobSpec_; } } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder> - getHpoJobConfigFieldBuilder() { - if (hpoJobConfigBuilder_ == null) { - hpoJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder>( - getHpoJobConfig(), + flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder> + getHpoJobSpecFieldBuilder() { + if (hpoJobSpecBuilder_ == null) { + hpoJobSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder>( + getHpoJobSpec(), getParentForChildren(), isClean()); - hpoJobConfig_ = null; + hpoJobSpec_ = null; } - return hpoJobConfigBuilder_; + return hpoJobSpecBuilder_; } private flyteidl.core.Tasks.TaskTemplate trainingJobTaskTemplate_; @@ -3586,13 +3586,12 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom getDefaultInstanceForType( "aker.HPOJobConfig.TrainingJobEarlyStoppi" + "ngType\"8\n\034HyperparameterTuningStrategy\022\014" + "\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobE" + - "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\221\001\n\014" + - "HPOJobCustom\022@\n\016hpo_job_config\030\001 \001(\0132(.f" + - "lyteidl.plugins.sagemaker.HPOJobConfig\022?" + - "\n\032training_job_task_template\030\002 \001(\0132\033.fly" + - "teidl.core.TaskTemplateB5Z3github.com/ly" + - "ft/flyteidl/gen/pb-go/flyteidl/pluginsb\006" + - "proto3" + "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\211\001\n\014" + + "HPOJobCustom\0228\n\014hpo_job_spec\030\001 \001(\0132\".fly" + + "teidl.plugins.sagemaker.HPOJob\022?\n\032traini" + + "ng_job_task_template\030\002 \001(\0132\033.flyteidl.co" + + "re.TaskTemplateB5Z3github.com/lyft/flyte" + + "idl/gen/pb-go/flyteidl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3632,7 +3631,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor, - new java.lang.String[] { "HpoJobConfig", "TrainingJobTaskTemplate", }); + new java.lang.String[] { "HpoJobSpec", "TrainingJobTaskTemplate", }); flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); flyteidl.core.Tasks.getDescriptor(); diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst index ad8cb186c..4c2f46edd 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst @@ -168,14 +168,14 @@ flyteidl.plugins.sagemaker.HPOJobCustom .. code-block:: json { - "hpo_job_config": "{...}", + "hpo_job_spec": "{...}", "training_job_task_template": "{...}" } -.. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config: +.. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec: -hpo_job_config - (:ref:`flyteidl.plugins.sagemaker.HPOJobConfig `) +hpo_job_spec + (:ref:`flyteidl.plugins.sagemaker.HPOJob `) .. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template: diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py index 16ebdc2fa..a996b2dd6 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py @@ -23,7 +23,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\"\x91\x01\n\x0cHPOJobCustom\x12@\n\x0ehpo_job_config\x18\x01 \x01(\x0b\x32(.flyteidl.plugins.sagemaker.HPOJobConfig\x12?\n\x1atraining_job_task_template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\"\x89\x01\n\x0cHPOJobCustom\x12\x38\n\x0chpo_job_spec\x18\x01 \x01(\x0b\x32\".flyteidl.plugins.sagemaker.HPOJob\x12?\n\x1atraining_job_task_template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,flyteidl_dot_core_dot_tasks__pb2.DESCRIPTOR,]) @@ -242,7 +242,7 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='hpo_job_config', full_name='flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config', index=0, + name='hpo_job_spec', full_name='flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -268,7 +268,7 @@ oneofs=[ ], serialized_start=1078, - serialized_end=1223, + serialized_end=1215, ) _HYPERPARAMETERTUNINGOBJECTIVE.fields_by_name['objective_type'].enum_type = _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE @@ -280,7 +280,7 @@ _HPOJOBCONFIG.fields_by_name['training_job_early_stopping_type'].enum_type = _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY.containing_type = _HPOJOBCONFIG _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE.containing_type = _HPOJOBCONFIG -_HPOJOBCUSTOM.fields_by_name['hpo_job_config'].message_type = _HPOJOBCONFIG +_HPOJOBCUSTOM.fields_by_name['hpo_job_spec'].message_type = _HPOJOB _HPOJOBCUSTOM.fields_by_name['training_job_task_template'].message_type = flyteidl_dot_core_dot_tasks__pb2._TASKTEMPLATE DESCRIPTOR.message_types_by_name['HyperparameterTuningObjective'] = _HYPERPARAMETERTUNINGOBJECTIVE DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB diff --git a/package.json b/package.json index cc75f2f23..940009701 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.18.0b2", + "version": "0.18.0b3", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/protos/flyteidl/plugins/sagemaker/hpo_job.proto b/protos/flyteidl/plugins/sagemaker/hpo_job.proto index bffa49656..1035206bb 100644 --- a/protos/flyteidl/plugins/sagemaker/hpo_job.proto +++ b/protos/flyteidl/plugins/sagemaker/hpo_job.proto @@ -43,6 +43,6 @@ message HPOJobConfig { } message HPOJobCustom { - HPOJobConfig hpo_job_config = 1; + HPOJob hpo_job_spec = 1; core.TaskTemplate training_job_task_template = 2; } diff --git a/setup.py b/setup.py index 92a7a97fa..3f46e986e 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.18.0b2' +__version__ = '0.18.0b3' setup( name='flyteidl', From ab1803346f4e86c162a77a0e86c384663fc531bc Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Tue, 21 Jul 2020 17:41:34 -0700 Subject: [PATCH 22/64] rename field --- .../flyteidl/plugins/sagemaker/hpo_job.pb.cc | 64 +++--- .../flyteidl/plugins/sagemaker/hpo_job.pb.h | 70 +++---- .../flyteidl/plugins/sagemaker/hpo_job.pb.go | 86 ++++---- .../plugins/sagemaker/hpo_job.pb.validate.go | 4 +- .../flyteidl/plugins/sagemaker/Hpojob.java | 188 +++++++++--------- .../plugins/sagemaker/hpo_job.proto.rst | 6 +- .../flyteidl/plugins/sagemaker/hpo_job_pb2.py | 6 +- package.json | 2 +- .../flyteidl/plugins/sagemaker/hpo_job.proto | 2 +- setup.py | 2 +- 10 files changed, 215 insertions(+), 215 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc index afc9dc684..eda324347 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc @@ -145,7 +145,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhp ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, hpo_job_spec_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, hpo_job_core_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, training_job_task_template_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -196,7 +196,7 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_ "ngType\"8\n\034HyperparameterTuningStrategy\022\014" "\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobE" "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\211\001\n\014" - "HPOJobCustom\0228\n\014hpo_job_spec\030\001 \001(\0132\".fly" + "HPOJobCustom\0228\n\014hpo_job_core\030\001 \001(\0132\".fly" "teidl.plugins.sagemaker.HPOJob\022\?\n\032traini" "ng_job_task_template\030\002 \001(\0132\033.flyteidl.co" "re.TaskTemplateB5Z3github.com/lyft/flyte" @@ -1477,20 +1477,20 @@ ::google::protobuf::Metadata HPOJobConfig::GetMetadata() const { // =================================================================== void HPOJobCustom::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->hpo_job_spec_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJob*>( + ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->hpo_job_core_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJob*>( ::flyteidl::plugins::sagemaker::HPOJob::internal_default_instance()); ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->training_job_task_template_ = const_cast< ::flyteidl::core::TaskTemplate*>( ::flyteidl::core::TaskTemplate::internal_default_instance()); } class HPOJobCustom::HasBitSetters { public: - static const ::flyteidl::plugins::sagemaker::HPOJob& hpo_job_spec(const HPOJobCustom* msg); + static const ::flyteidl::plugins::sagemaker::HPOJob& hpo_job_core(const HPOJobCustom* msg); static const ::flyteidl::core::TaskTemplate& training_job_task_template(const HPOJobCustom* msg); }; const ::flyteidl::plugins::sagemaker::HPOJob& -HPOJobCustom::HasBitSetters::hpo_job_spec(const HPOJobCustom* msg) { - return *msg->hpo_job_spec_; +HPOJobCustom::HasBitSetters::hpo_job_core(const HPOJobCustom* msg) { + return *msg->hpo_job_core_; } const ::flyteidl::core::TaskTemplate& HPOJobCustom::HasBitSetters::training_job_task_template(const HPOJobCustom* msg) { @@ -1503,7 +1503,7 @@ void HPOJobCustom::clear_training_job_task_template() { training_job_task_template_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJobCustom::kHpoJobSpecFieldNumber; +const int HPOJobCustom::kHpoJobCoreFieldNumber; const int HPOJobCustom::kTrainingJobTaskTemplateFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 @@ -1516,10 +1516,10 @@ HPOJobCustom::HPOJobCustom(const HPOJobCustom& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_hpo_job_spec()) { - hpo_job_spec_ = new ::flyteidl::plugins::sagemaker::HPOJob(*from.hpo_job_spec_); + if (from.has_hpo_job_core()) { + hpo_job_core_ = new ::flyteidl::plugins::sagemaker::HPOJob(*from.hpo_job_core_); } else { - hpo_job_spec_ = nullptr; + hpo_job_core_ = nullptr; } if (from.has_training_job_task_template()) { training_job_task_template_ = new ::flyteidl::core::TaskTemplate(*from.training_job_task_template_); @@ -1532,9 +1532,9 @@ HPOJobCustom::HPOJobCustom(const HPOJobCustom& from) void HPOJobCustom::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::memset(&hpo_job_spec_, 0, static_cast( + ::memset(&hpo_job_core_, 0, static_cast( reinterpret_cast(&training_job_task_template_) - - reinterpret_cast(&hpo_job_spec_)) + sizeof(training_job_task_template_)); + reinterpret_cast(&hpo_job_core_)) + sizeof(training_job_task_template_)); } HPOJobCustom::~HPOJobCustom() { @@ -1543,7 +1543,7 @@ HPOJobCustom::~HPOJobCustom() { } void HPOJobCustom::SharedDtor() { - if (this != internal_default_instance()) delete hpo_job_spec_; + if (this != internal_default_instance()) delete hpo_job_core_; if (this != internal_default_instance()) delete training_job_task_template_; } @@ -1562,10 +1562,10 @@ void HPOJobCustom::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaNoVirtual() == nullptr && hpo_job_spec_ != nullptr) { - delete hpo_job_spec_; + if (GetArenaNoVirtual() == nullptr && hpo_job_core_ != nullptr) { + delete hpo_job_core_; } - hpo_job_spec_ = nullptr; + hpo_job_core_ = nullptr; if (GetArenaNoVirtual() == nullptr && training_job_task_template_ != nullptr) { delete training_job_task_template_; } @@ -1586,13 +1586,13 @@ const char* HPOJobCustom::_InternalParse(const char* begin, const char* end, voi ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::plugins::sagemaker::HPOJob::_InternalParse; - object = msg->mutable_hpo_job_spec(); + object = msg->mutable_hpo_job_core(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( @@ -1642,11 +1642,11 @@ bool HPOJobCustom::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_hpo_job_spec())); + input, mutable_hpo_job_core())); } else { goto handle_unusual; } @@ -1691,10 +1691,10 @@ void HPOJobCustom::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; - if (this->has_hpo_job_spec()) { + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + if (this->has_hpo_job_core()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::hpo_job_spec(this), output); + 1, HasBitSetters::hpo_job_core(this), output); } // .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -1716,11 +1716,11 @@ ::google::protobuf::uint8* HPOJobCustom::InternalSerializeWithCachedSizesToArray ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; - if (this->has_hpo_job_spec()) { + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + if (this->has_hpo_job_core()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::hpo_job_spec(this), target); + 1, HasBitSetters::hpo_job_core(this), target); } // .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -1751,11 +1751,11 @@ size_t HPOJobCustom::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; - if (this->has_hpo_job_spec()) { + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + if (this->has_hpo_job_core()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *hpo_job_spec_); + *hpo_job_core_); } // .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -1792,8 +1792,8 @@ void HPOJobCustom::MergeFrom(const HPOJobCustom& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_hpo_job_spec()) { - mutable_hpo_job_spec()->::flyteidl::plugins::sagemaker::HPOJob::MergeFrom(from.hpo_job_spec()); + if (from.has_hpo_job_core()) { + mutable_hpo_job_core()->::flyteidl::plugins::sagemaker::HPOJob::MergeFrom(from.hpo_job_core()); } if (from.has_training_job_task_template()) { mutable_training_job_task_template()->::flyteidl::core::TaskTemplate::MergeFrom(from.training_job_task_template()); @@ -1825,7 +1825,7 @@ void HPOJobCustom::Swap(HPOJobCustom* other) { void HPOJobCustom::InternalSwap(HPOJobCustom* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(hpo_job_spec_, other->hpo_job_spec_); + swap(hpo_job_core_, other->hpo_job_core_); swap(training_job_task_template_, other->training_job_task_template_); } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h index cfb674f96..5082123ea 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h @@ -715,14 +715,14 @@ class HPOJobCustom final : // accessors ------------------------------------------------------- - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; - bool has_hpo_job_spec() const; - void clear_hpo_job_spec(); - static const int kHpoJobSpecFieldNumber = 1; - const ::flyteidl::plugins::sagemaker::HPOJob& hpo_job_spec() const; - ::flyteidl::plugins::sagemaker::HPOJob* release_hpo_job_spec(); - ::flyteidl::plugins::sagemaker::HPOJob* mutable_hpo_job_spec(); - void set_allocated_hpo_job_spec(::flyteidl::plugins::sagemaker::HPOJob* hpo_job_spec); + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + bool has_hpo_job_core() const; + void clear_hpo_job_core(); + static const int kHpoJobCoreFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::HPOJob& hpo_job_core() const; + ::flyteidl::plugins::sagemaker::HPOJob* release_hpo_job_core(); + ::flyteidl::plugins::sagemaker::HPOJob* mutable_hpo_job_core(); + void set_allocated_hpo_job_core(::flyteidl::plugins::sagemaker::HPOJob* hpo_job_core); // .flyteidl.core.TaskTemplate training_job_task_template = 2; bool has_training_job_task_template() const; @@ -738,7 +738,7 @@ class HPOJobCustom final : class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::sagemaker::HPOJob* hpo_job_spec_; + ::flyteidl::plugins::sagemaker::HPOJob* hpo_job_core_; ::flyteidl::core::TaskTemplate* training_job_task_template_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; @@ -1030,55 +1030,55 @@ inline void HPOJobConfig::set_training_job_early_stopping_type(::flyteidl::plugi // HPOJobCustom -// .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; -inline bool HPOJobCustom::has_hpo_job_spec() const { - return this != internal_default_instance() && hpo_job_spec_ != nullptr; +// .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; +inline bool HPOJobCustom::has_hpo_job_core() const { + return this != internal_default_instance() && hpo_job_core_ != nullptr; } -inline void HPOJobCustom::clear_hpo_job_spec() { - if (GetArenaNoVirtual() == nullptr && hpo_job_spec_ != nullptr) { - delete hpo_job_spec_; +inline void HPOJobCustom::clear_hpo_job_core() { + if (GetArenaNoVirtual() == nullptr && hpo_job_core_ != nullptr) { + delete hpo_job_core_; } - hpo_job_spec_ = nullptr; + hpo_job_core_ = nullptr; } -inline const ::flyteidl::plugins::sagemaker::HPOJob& HPOJobCustom::hpo_job_spec() const { - const ::flyteidl::plugins::sagemaker::HPOJob* p = hpo_job_spec_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) +inline const ::flyteidl::plugins::sagemaker::HPOJob& HPOJobCustom::hpo_job_core() const { + const ::flyteidl::plugins::sagemaker::HPOJob* p = hpo_job_core_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_core) return p != nullptr ? *p : *reinterpret_cast( &::flyteidl::plugins::sagemaker::_HPOJob_default_instance_); } -inline ::flyteidl::plugins::sagemaker::HPOJob* HPOJobCustom::release_hpo_job_spec() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) +inline ::flyteidl::plugins::sagemaker::HPOJob* HPOJobCustom::release_hpo_job_core() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_core) - ::flyteidl::plugins::sagemaker::HPOJob* temp = hpo_job_spec_; - hpo_job_spec_ = nullptr; + ::flyteidl::plugins::sagemaker::HPOJob* temp = hpo_job_core_; + hpo_job_core_ = nullptr; return temp; } -inline ::flyteidl::plugins::sagemaker::HPOJob* HPOJobCustom::mutable_hpo_job_spec() { +inline ::flyteidl::plugins::sagemaker::HPOJob* HPOJobCustom::mutable_hpo_job_core() { - if (hpo_job_spec_ == nullptr) { + if (hpo_job_core_ == nullptr) { auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJob>(GetArenaNoVirtual()); - hpo_job_spec_ = p; + hpo_job_core_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) - return hpo_job_spec_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_core) + return hpo_job_core_; } -inline void HPOJobCustom::set_allocated_hpo_job_spec(::flyteidl::plugins::sagemaker::HPOJob* hpo_job_spec) { +inline void HPOJobCustom::set_allocated_hpo_job_core(::flyteidl::plugins::sagemaker::HPOJob* hpo_job_core) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete hpo_job_spec_; + delete hpo_job_core_; } - if (hpo_job_spec) { + if (hpo_job_core) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - hpo_job_spec = ::google::protobuf::internal::GetOwnedMessage( - message_arena, hpo_job_spec, submessage_arena); + hpo_job_core = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hpo_job_core, submessage_arena); } } else { } - hpo_job_spec_ = hpo_job_spec; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) + hpo_job_core_ = hpo_job_core; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_core) } // .flyteidl.core.TaskTemplate training_job_task_template = 2; diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go index 0d93c0772..5b47d169a 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go @@ -262,7 +262,7 @@ func (m *HPOJobConfig) GetTrainingJobEarlyStoppingType() HPOJobConfig_TrainingJo } type HPOJobCustom struct { - HpoJobSpec *HPOJob `protobuf:"bytes,1,opt,name=hpo_job_spec,json=hpoJobSpec,proto3" json:"hpo_job_spec,omitempty"` + HpoJobCore *HPOJob `protobuf:"bytes,1,opt,name=hpo_job_core,json=hpoJobCore,proto3" json:"hpo_job_core,omitempty"` TrainingJobTaskTemplate *core.TaskTemplate `protobuf:"bytes,2,opt,name=training_job_task_template,json=trainingJobTaskTemplate,proto3" json:"training_job_task_template,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -294,9 +294,9 @@ func (m *HPOJobCustom) XXX_DiscardUnknown() { var xxx_messageInfo_HPOJobCustom proto.InternalMessageInfo -func (m *HPOJobCustom) GetHpoJobSpec() *HPOJob { +func (m *HPOJobCustom) GetHpoJobCore() *HPOJob { if m != nil { - return m.HpoJobSpec + return m.HpoJobCore } return nil } @@ -323,44 +323,44 @@ func init() { } var fileDescriptor_50903433b4c088ac = []byte{ - // 622 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x51, 0x6f, 0xd3, 0x3c, - 0x14, 0x5d, 0xb6, 0x69, 0xdf, 0xbe, 0xdb, 0x52, 0x2a, 0x0b, 0xb4, 0xd1, 0x0d, 0x31, 0xf2, 0xc2, - 0x24, 0xb4, 0x44, 0xeb, 0x84, 0x04, 0x02, 0x09, 0x75, 0xac, 0xd3, 0x5a, 0x69, 0xed, 0x94, 0x06, - 0x69, 0x8c, 0x07, 0xe3, 0x64, 0x6e, 0x9a, 0x2d, 0x89, 0x2d, 0xc7, 0x45, 0xcb, 0x2b, 0x0f, 0xbc, - 0xf1, 0x57, 0xf8, 0x13, 0xfc, 0x00, 0xfe, 0x12, 0x4a, 0xe2, 0xa6, 0xe9, 0x04, 0x99, 0xe0, 0xf1, - 0xda, 0xf7, 0x9c, 0x9b, 0x73, 0x72, 0x7c, 0x61, 0x77, 0x1c, 0x24, 0x92, 0xfa, 0x97, 0x81, 0xc9, - 0x83, 0xa9, 0xe7, 0x47, 0xb1, 0x19, 0x13, 0x8f, 0x86, 0xe4, 0x9a, 0x0a, 0x73, 0xc2, 0x19, 0xbe, - 0x62, 0x8e, 0xc1, 0x05, 0x93, 0x0c, 0xb5, 0x66, 0x9d, 0x86, 0xea, 0x34, 0x8a, 0xce, 0xd6, 0x7e, - 0x05, 0x0b, 0x27, 0x82, 0x84, 0x54, 0x52, 0x81, 0x05, 0x89, 0x3c, 0x1a, 0xe7, 0x74, 0xad, 0xbd, - 0x0a, 0x88, 0x14, 0xc4, 0x8f, 0xfc, 0xc8, 0x9b, 0x4f, 0x6f, 0x3d, 0x2a, 0xda, 0x5d, 0x26, 0xa8, - 0x29, 0x49, 0x7c, 0xad, 0x98, 0xf4, 0xaf, 0xcb, 0xf0, 0xf8, 0x24, 0xe1, 0x54, 0x14, 0x93, 0xec, - 0x69, 0x8a, 0x1e, 0x3a, 0x57, 0xd4, 0x95, 0xfe, 0x67, 0x8a, 0xbe, 0x68, 0xd0, 0x60, 0xb3, 0x0a, - 0xcb, 0x84, 0xd3, 0x4d, 0x6d, 0x47, 0xdb, 0x6d, 0xb4, 0x3f, 0x1a, 0x7f, 0x16, 0x65, 0x54, 0x72, - 0x56, 0xdf, 0xda, 0x09, 0xa7, 0xd6, 0x3d, 0x56, 0x2e, 0xd1, 0x13, 0xa8, 0x85, 0x54, 0x0a, 0xdf, - 0xc5, 0x11, 0x09, 0xe9, 0xe6, 0xf2, 0x8e, 0xb6, 0xfb, 0xbf, 0x05, 0xf9, 0xd1, 0x80, 0x84, 0x54, - 0x7f, 0x0b, 0x4f, 0xef, 0x24, 0x45, 0x75, 0x58, 0x3f, 0xed, 0x0d, 0x7a, 0xa7, 0xbd, 0x8b, 0x6e, - 0x73, 0x29, 0xab, 0x3a, 0xe7, 0x79, 0xa5, 0xe9, 0x3f, 0x35, 0x58, 0x3b, 0x39, 0x1b, 0xf6, 0x99, - 0x83, 0xfa, 0x50, 0x2f, 0x9b, 0x98, 0xc9, 0xad, 0xb5, 0x9f, 0x55, 0xc9, 0xb5, 0x55, 0x7f, 0x9f, - 0x39, 0x56, 0x4d, 0xce, 0x0b, 0xf4, 0x06, 0xb6, 0x42, 0x72, 0x83, 0xa3, 0x69, 0xe8, 0x50, 0x81, - 0xd9, 0x18, 0x97, 0x99, 0xe3, 0x4c, 0xc8, 0x8a, 0xb5, 0x11, 0x92, 0x9b, 0x41, 0xd6, 0x31, 0x1c, - 0x97, 0x98, 0x62, 0xf4, 0x1a, 0x5a, 0x29, 0x3a, 0x15, 0x15, 0x04, 0x34, 0xb8, 0x05, 0x5e, 0x29, - 0xc0, 0x67, 0xaa, 0xa1, 0x0c, 0xd6, 0x7f, 0xac, 0x42, 0x3d, 0x57, 0xf4, 0x8e, 0x45, 0x63, 0xdf, - 0x43, 0x9f, 0xe0, 0xe1, 0x64, 0xc1, 0x23, 0x15, 0x2a, 0x25, 0xf0, 0x79, 0x95, 0xc0, 0xb3, 0x19, - 0xc6, 0xca, 0x20, 0xd6, 0x83, 0x45, 0xa6, 0xfc, 0x14, 0x45, 0x70, 0x5f, 0x66, 0xbe, 0xe3, 0x58, - 0x0a, 0x22, 0xa9, 0x97, 0x64, 0x0a, 0x1b, 0xed, 0x6e, 0x65, 0x56, 0x4a, 0x1f, 0xf9, 0xdb, 0x68, - 0x8c, 0x14, 0x99, 0xd5, 0x90, 0x0b, 0x35, 0xba, 0x84, 0xa6, 0x9a, 0x57, 0xc4, 0x25, 0x73, 0xa5, - 0xd6, 0x7e, 0xf5, 0xcf, 0xe1, 0xb4, 0x94, 0x84, 0xf9, 0x0b, 0xf8, 0xa6, 0xc1, 0x4e, 0xd9, 0x79, - 0x4c, 0x89, 0x08, 0x12, 0x1c, 0x4b, 0xc6, 0x79, 0x7a, 0x94, 0xbd, 0x89, 0xd5, 0xbf, 0xd4, 0x59, - 0xfa, 0x55, 0xdd, 0x94, 0x6e, 0xa4, 0xd8, 0xb2, 0xf4, 0x6f, 0xcb, 0x8a, 0x5b, 0xfd, 0x25, 0x6c, - 0x57, 0xb9, 0x94, 0x06, 0xfb, 0xb0, 0xf3, 0xa1, 0x3b, 0xea, 0x75, 0x06, 0xcd, 0x25, 0x04, 0xb0, - 0x66, 0x75, 0x06, 0x47, 0xc3, 0xd3, 0xa6, 0xa6, 0xef, 0xc3, 0x76, 0xd5, 0x5c, 0xf4, 0x1f, 0xac, - 0x0c, 0x8f, 0x8f, 0x9b, 0x4b, 0x68, 0x1d, 0x56, 0x3b, 0xef, 0xed, 0x61, 0x53, 0xd3, 0xbf, 0x6b, - 0x45, 0x8a, 0xa6, 0xb1, 0x64, 0x21, 0x3a, 0x82, 0xba, 0xda, 0x6d, 0x38, 0xe6, 0xd4, 0x55, 0xe1, - 0xd1, 0xef, 0x16, 0x6e, 0xc1, 0x84, 0xb3, 0x3e, 0x73, 0x46, 0x9c, 0xba, 0xe8, 0x1c, 0x5a, 0x0b, - 0x96, 0xa6, 0x3b, 0x09, 0x4b, 0x1a, 0xf2, 0x80, 0xc8, 0xfc, 0x7d, 0xd7, 0xda, 0x5b, 0x73, 0xce, - 0x74, 0x6f, 0x19, 0x36, 0x89, 0xaf, 0x6d, 0xd5, 0x62, 0x6d, 0x94, 0x2c, 0x2a, 0x5f, 0x1c, 0xbe, - 0xb8, 0x38, 0xf0, 0x7c, 0x39, 0x99, 0x3a, 0x86, 0xcb, 0x42, 0x33, 0x48, 0xc6, 0xd2, 0x2c, 0xd6, - 0x9f, 0x47, 0x23, 0x93, 0x3b, 0x7b, 0x1e, 0x33, 0x6f, 0x2f, 0x50, 0x67, 0x2d, 0xdb, 0x87, 0x07, - 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x44, 0x86, 0xfb, 0xf9, 0xd4, 0x05, 0x00, 0x00, + // 619 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x51, 0x4f, 0xd4, 0x4c, + 0x14, 0xa5, 0x40, 0xf8, 0xf8, 0xee, 0xae, 0xeb, 0x66, 0xa2, 0x01, 0x17, 0x8c, 0xd8, 0x17, 0x49, + 0x0c, 0x6d, 0x58, 0x62, 0xa2, 0xd1, 0xc4, 0x2c, 0xb2, 0x84, 0x25, 0x61, 0x97, 0x94, 0x9a, 0x20, + 0x3e, 0x8c, 0xd3, 0x65, 0xb6, 0x5b, 0x68, 0x3b, 0x93, 0xe9, 0xac, 0xa1, 0xaf, 0x3e, 0xf8, 0xe6, + 0x5f, 0xf1, 0x4f, 0xf8, 0x03, 0xfc, 0x4b, 0xa6, 0xd3, 0xd9, 0x6e, 0x97, 0x68, 0x89, 0x3e, 0xde, + 0x99, 0x7b, 0xce, 0xed, 0x39, 0x3d, 0x73, 0x61, 0x7b, 0x14, 0xa6, 0x92, 0x06, 0x97, 0xa1, 0xcd, + 0xc3, 0x89, 0x1f, 0xc4, 0x89, 0x9d, 0x10, 0x9f, 0x46, 0xe4, 0x9a, 0x0a, 0x7b, 0xcc, 0x19, 0xbe, + 0x62, 0x9e, 0xc5, 0x05, 0x93, 0x0c, 0xb5, 0xa6, 0x9d, 0x96, 0xee, 0xb4, 0x8a, 0xce, 0xd6, 0x6e, + 0x05, 0x0b, 0x27, 0x82, 0x44, 0x54, 0x52, 0x81, 0x05, 0x89, 0x7d, 0x9a, 0xe4, 0x74, 0xad, 0x9d, + 0x0a, 0x88, 0x14, 0x24, 0x88, 0x83, 0xd8, 0x9f, 0x4d, 0x6f, 0x3d, 0x2a, 0xda, 0x87, 0x4c, 0x50, + 0x5b, 0x92, 0xe4, 0x5a, 0x33, 0x99, 0x5f, 0x17, 0xe1, 0xf1, 0x51, 0xca, 0xa9, 0x28, 0x26, 0xb9, + 0x93, 0x0c, 0x3d, 0xf0, 0xae, 0xe8, 0x50, 0x06, 0x9f, 0x29, 0xfa, 0x62, 0x40, 0x83, 0x4d, 0x2b, + 0x2c, 0x53, 0x4e, 0xd7, 0x8d, 0x2d, 0x63, 0xbb, 0xd1, 0xfe, 0x68, 0xfd, 0x59, 0x94, 0x55, 0xc9, + 0x59, 0x7d, 0xeb, 0xa6, 0x9c, 0x3a, 0xf7, 0x58, 0xb9, 0x44, 0x4f, 0xa0, 0x16, 0x51, 0x29, 0x82, + 0x21, 0x8e, 0x49, 0x44, 0xd7, 0x17, 0xb7, 0x8c, 0xed, 0xff, 0x1d, 0xc8, 0x8f, 0xfa, 0x24, 0xa2, + 0xe6, 0x5b, 0x78, 0x7a, 0x27, 0x29, 0xaa, 0xc3, 0xea, 0x49, 0xaf, 0xdf, 0x3b, 0xe9, 0x5d, 0x74, + 0x9b, 0x0b, 0xaa, 0xea, 0x9c, 0xe7, 0x95, 0x61, 0xfe, 0x34, 0x60, 0xe5, 0xe8, 0x74, 0x70, 0xcc, + 0x3c, 0x74, 0x0c, 0xf5, 0xb2, 0x89, 0x4a, 0x6e, 0xad, 0xfd, 0xac, 0x4a, 0xae, 0xab, 0xfb, 0x8f, + 0x99, 0xe7, 0xd4, 0xe4, 0xac, 0x40, 0x6f, 0x60, 0x23, 0x22, 0x37, 0x38, 0x9e, 0x44, 0x1e, 0x15, + 0x98, 0x8d, 0x70, 0x99, 0x39, 0x51, 0x42, 0x96, 0x9c, 0xb5, 0x88, 0xdc, 0xf4, 0x55, 0xc7, 0x60, + 0x54, 0x62, 0x4a, 0xd0, 0x6b, 0x68, 0x65, 0xe8, 0x4c, 0x54, 0x18, 0xd2, 0xf0, 0x16, 0x78, 0xa9, + 0x00, 0x9f, 0xea, 0x86, 0x32, 0xd8, 0xfc, 0xb1, 0x0c, 0xf5, 0x5c, 0xd1, 0x3b, 0x16, 0x8f, 0x02, + 0x1f, 0x7d, 0x82, 0x87, 0xe3, 0x39, 0x8f, 0x74, 0xa8, 0xb4, 0xc0, 0xe7, 0x55, 0x02, 0x4f, 0xa7, + 0x18, 0x47, 0x41, 0x9c, 0x07, 0xf3, 0x4c, 0xf9, 0x29, 0x8a, 0xe1, 0xbe, 0x54, 0xbe, 0xe3, 0x44, + 0x0a, 0x22, 0xa9, 0x9f, 0x2a, 0x85, 0x8d, 0x76, 0xb7, 0x32, 0x2b, 0xa5, 0x8f, 0xfc, 0x6d, 0x34, + 0xce, 0x34, 0x99, 0xd3, 0x90, 0x73, 0x35, 0xba, 0x84, 0xa6, 0x9e, 0x57, 0xc4, 0x45, 0xb9, 0x52, + 0x6b, 0xbf, 0xfa, 0xe7, 0x70, 0x3a, 0x5a, 0xc2, 0xec, 0x05, 0x7c, 0x33, 0x60, 0xab, 0xec, 0x3c, + 0xa6, 0x44, 0x84, 0x29, 0x4e, 0x24, 0xe3, 0x3c, 0x3b, 0x52, 0x6f, 0x62, 0xf9, 0x2f, 0x75, 0x96, + 0x7e, 0x55, 0x37, 0xa3, 0x3b, 0xd3, 0x6c, 0x2a, 0xfd, 0x9b, 0xb2, 0xe2, 0xd6, 0x7c, 0x09, 0x9b, + 0x55, 0x2e, 0x65, 0xc1, 0xde, 0xef, 0x7c, 0xe8, 0x9e, 0xf5, 0x3a, 0xfd, 0xe6, 0x02, 0x02, 0x58, + 0x71, 0x3a, 0xfd, 0x83, 0xc1, 0x49, 0xd3, 0x30, 0x77, 0x61, 0xb3, 0x6a, 0x2e, 0xfa, 0x0f, 0x96, + 0x06, 0x87, 0x87, 0xcd, 0x05, 0xb4, 0x0a, 0xcb, 0x9d, 0xf7, 0xee, 0xa0, 0x69, 0x98, 0xdf, 0x8d, + 0x22, 0x45, 0x93, 0x44, 0xb2, 0x08, 0x1d, 0x40, 0x5d, 0xef, 0x36, 0x9c, 0x6d, 0x13, 0x1d, 0x1e, + 0xf3, 0x6e, 0xe1, 0x0e, 0x8c, 0x39, 0x53, 0x06, 0x08, 0x8a, 0xce, 0xa1, 0x35, 0x67, 0x69, 0xb6, + 0x93, 0xb0, 0xa4, 0x11, 0x0f, 0x89, 0xcc, 0xdf, 0x77, 0xad, 0xbd, 0x31, 0xe3, 0xcc, 0x26, 0x59, + 0x2e, 0x49, 0xae, 0x5d, 0xdd, 0xe2, 0xac, 0x95, 0x2c, 0x2a, 0x5f, 0xec, 0xbf, 0xb8, 0xd8, 0xf3, + 0x03, 0x39, 0x9e, 0x78, 0xd6, 0x90, 0x45, 0x76, 0x98, 0x8e, 0xa4, 0x5d, 0xac, 0x3f, 0x9f, 0xc6, + 0x36, 0xf7, 0x76, 0x7c, 0x66, 0xdf, 0x5e, 0xa0, 0xde, 0x8a, 0xda, 0x87, 0x7b, 0xbf, 0x02, 0x00, + 0x00, 0xff, 0xff, 0xdb, 0x95, 0x92, 0x8c, 0xd4, 0x05, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go index fa7e4eb6e..70db17ced 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go @@ -283,10 +283,10 @@ func (m *HPOJobCustom) Validate() error { return nil } - if v, ok := interface{}(m.GetHpoJobSpec()).(interface{ Validate() error }); ok { + if v, ok := interface{}(m.GetHpoJobCore()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HPOJobCustomValidationError{ - field: "HpoJobSpec", + field: "HpoJobCore", reason: "embedded message failed validation", cause: err, } diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java index 55e00e1d5..8cdb1707a 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -2736,17 +2736,17 @@ public interface HPOJobCustomOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - boolean hasHpoJobSpec(); + boolean hasHpoJobCore(); /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobSpec(); + flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobCore(); /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobSpecOrBuilder(); + flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobCoreOrBuilder(); /** * .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -2802,13 +2802,13 @@ private HPOJobCustom( break; case 10: { flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder subBuilder = null; - if (hpoJobSpec_ != null) { - subBuilder = hpoJobSpec_.toBuilder(); + if (hpoJobCore_ != null) { + subBuilder = hpoJobCore_.toBuilder(); } - hpoJobSpec_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HPOJob.parser(), extensionRegistry); + hpoJobCore_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HPOJob.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(hpoJobSpec_); - hpoJobSpec_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(hpoJobCore_); + hpoJobCore_ = subBuilder.buildPartial(); } break; @@ -2858,25 +2858,25 @@ private HPOJobCustom( flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.Builder.class); } - public static final int HPO_JOB_SPEC_FIELD_NUMBER = 1; - private flyteidl.plugins.sagemaker.HpoJob.HPOJob hpoJobSpec_; + public static final int HPO_JOB_CORE_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.HpoJob.HPOJob hpoJobCore_; /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - public boolean hasHpoJobSpec() { - return hpoJobSpec_ != null; + public boolean hasHpoJobCore() { + return hpoJobCore_ != null; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobSpec() { - return hpoJobSpec_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobSpec_; + public flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobCore() { + return hpoJobCore_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobCore_; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobSpecOrBuilder() { - return getHpoJobSpec(); + public flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobCoreOrBuilder() { + return getHpoJobCore(); } public static final int TRAINING_JOB_TASK_TEMPLATE_FIELD_NUMBER = 2; @@ -2914,8 +2914,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (hpoJobSpec_ != null) { - output.writeMessage(1, getHpoJobSpec()); + if (hpoJobCore_ != null) { + output.writeMessage(1, getHpoJobCore()); } if (trainingJobTaskTemplate_ != null) { output.writeMessage(2, getTrainingJobTaskTemplate()); @@ -2929,9 +2929,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (hpoJobSpec_ != null) { + if (hpoJobCore_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHpoJobSpec()); + .computeMessageSize(1, getHpoJobCore()); } if (trainingJobTaskTemplate_ != null) { size += com.google.protobuf.CodedOutputStream @@ -2952,10 +2952,10 @@ public boolean equals(final java.lang.Object obj) { } flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom) obj; - if (hasHpoJobSpec() != other.hasHpoJobSpec()) return false; - if (hasHpoJobSpec()) { - if (!getHpoJobSpec() - .equals(other.getHpoJobSpec())) return false; + if (hasHpoJobCore() != other.hasHpoJobCore()) return false; + if (hasHpoJobCore()) { + if (!getHpoJobCore() + .equals(other.getHpoJobCore())) return false; } if (hasTrainingJobTaskTemplate() != other.hasTrainingJobTaskTemplate()) return false; if (hasTrainingJobTaskTemplate()) { @@ -2973,9 +2973,9 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasHpoJobSpec()) { - hash = (37 * hash) + HPO_JOB_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getHpoJobSpec().hashCode(); + if (hasHpoJobCore()) { + hash = (37 * hash) + HPO_JOB_CORE_FIELD_NUMBER; + hash = (53 * hash) + getHpoJobCore().hashCode(); } if (hasTrainingJobTaskTemplate()) { hash = (37 * hash) + TRAINING_JOB_TASK_TEMPLATE_FIELD_NUMBER; @@ -3114,11 +3114,11 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (hpoJobSpecBuilder_ == null) { - hpoJobSpec_ = null; + if (hpoJobCoreBuilder_ == null) { + hpoJobCore_ = null; } else { - hpoJobSpec_ = null; - hpoJobSpecBuilder_ = null; + hpoJobCore_ = null; + hpoJobCoreBuilder_ = null; } if (trainingJobTaskTemplateBuilder_ == null) { trainingJobTaskTemplate_ = null; @@ -3152,10 +3152,10 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom build() { @java.lang.Override public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom buildPartial() { flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom(this); - if (hpoJobSpecBuilder_ == null) { - result.hpoJobSpec_ = hpoJobSpec_; + if (hpoJobCoreBuilder_ == null) { + result.hpoJobCore_ = hpoJobCore_; } else { - result.hpoJobSpec_ = hpoJobSpecBuilder_.build(); + result.hpoJobCore_ = hpoJobCoreBuilder_.build(); } if (trainingJobTaskTemplateBuilder_ == null) { result.trainingJobTaskTemplate_ = trainingJobTaskTemplate_; @@ -3210,8 +3210,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom other) { if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.getDefaultInstance()) return this; - if (other.hasHpoJobSpec()) { - mergeHpoJobSpec(other.getHpoJobSpec()); + if (other.hasHpoJobCore()) { + mergeHpoJobCore(other.getHpoJobCore()); } if (other.hasTrainingJobTaskTemplate()) { mergeTrainingJobTaskTemplate(other.getTrainingJobTaskTemplate()); @@ -3245,121 +3245,121 @@ public Builder mergeFrom( return this; } - private flyteidl.plugins.sagemaker.HpoJob.HPOJob hpoJobSpec_; + private flyteidl.plugins.sagemaker.HpoJob.HPOJob hpoJobCore_; private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder> hpoJobSpecBuilder_; + flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder> hpoJobCoreBuilder_; /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - public boolean hasHpoJobSpec() { - return hpoJobSpecBuilder_ != null || hpoJobSpec_ != null; + public boolean hasHpoJobCore() { + return hpoJobCoreBuilder_ != null || hpoJobCore_ != null; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobSpec() { - if (hpoJobSpecBuilder_ == null) { - return hpoJobSpec_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobSpec_; + public flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobCore() { + if (hpoJobCoreBuilder_ == null) { + return hpoJobCore_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobCore_; } else { - return hpoJobSpecBuilder_.getMessage(); + return hpoJobCoreBuilder_.getMessage(); } } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - public Builder setHpoJobSpec(flyteidl.plugins.sagemaker.HpoJob.HPOJob value) { - if (hpoJobSpecBuilder_ == null) { + public Builder setHpoJobCore(flyteidl.plugins.sagemaker.HpoJob.HPOJob value) { + if (hpoJobCoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hpoJobSpec_ = value; + hpoJobCore_ = value; onChanged(); } else { - hpoJobSpecBuilder_.setMessage(value); + hpoJobCoreBuilder_.setMessage(value); } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - public Builder setHpoJobSpec( + public Builder setHpoJobCore( flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder builderForValue) { - if (hpoJobSpecBuilder_ == null) { - hpoJobSpec_ = builderForValue.build(); + if (hpoJobCoreBuilder_ == null) { + hpoJobCore_ = builderForValue.build(); onChanged(); } else { - hpoJobSpecBuilder_.setMessage(builderForValue.build()); + hpoJobCoreBuilder_.setMessage(builderForValue.build()); } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - public Builder mergeHpoJobSpec(flyteidl.plugins.sagemaker.HpoJob.HPOJob value) { - if (hpoJobSpecBuilder_ == null) { - if (hpoJobSpec_ != null) { - hpoJobSpec_ = - flyteidl.plugins.sagemaker.HpoJob.HPOJob.newBuilder(hpoJobSpec_).mergeFrom(value).buildPartial(); + public Builder mergeHpoJobCore(flyteidl.plugins.sagemaker.HpoJob.HPOJob value) { + if (hpoJobCoreBuilder_ == null) { + if (hpoJobCore_ != null) { + hpoJobCore_ = + flyteidl.plugins.sagemaker.HpoJob.HPOJob.newBuilder(hpoJobCore_).mergeFrom(value).buildPartial(); } else { - hpoJobSpec_ = value; + hpoJobCore_ = value; } onChanged(); } else { - hpoJobSpecBuilder_.mergeFrom(value); + hpoJobCoreBuilder_.mergeFrom(value); } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - public Builder clearHpoJobSpec() { - if (hpoJobSpecBuilder_ == null) { - hpoJobSpec_ = null; + public Builder clearHpoJobCore() { + if (hpoJobCoreBuilder_ == null) { + hpoJobCore_ = null; onChanged(); } else { - hpoJobSpec_ = null; - hpoJobSpecBuilder_ = null; + hpoJobCore_ = null; + hpoJobCoreBuilder_ = null; } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder getHpoJobSpecBuilder() { + public flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder getHpoJobCoreBuilder() { onChanged(); - return getHpoJobSpecFieldBuilder().getBuilder(); + return getHpoJobCoreFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobSpecOrBuilder() { - if (hpoJobSpecBuilder_ != null) { - return hpoJobSpecBuilder_.getMessageOrBuilder(); + public flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobCoreOrBuilder() { + if (hpoJobCoreBuilder_ != null) { + return hpoJobCoreBuilder_.getMessageOrBuilder(); } else { - return hpoJobSpec_ == null ? - flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobSpec_; + return hpoJobCore_ == null ? + flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobCore_; } } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder> - getHpoJobSpecFieldBuilder() { - if (hpoJobSpecBuilder_ == null) { - hpoJobSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getHpoJobCoreFieldBuilder() { + if (hpoJobCoreBuilder_ == null) { + hpoJobCoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder>( - getHpoJobSpec(), + getHpoJobCore(), getParentForChildren(), isClean()); - hpoJobSpec_ = null; + hpoJobCore_ = null; } - return hpoJobSpecBuilder_; + return hpoJobCoreBuilder_; } private flyteidl.core.Tasks.TaskTemplate trainingJobTaskTemplate_; @@ -3587,7 +3587,7 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom getDefaultInstanceForType( "ngType\"8\n\034HyperparameterTuningStrategy\022\014" + "\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobE" + "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\211\001\n\014" + - "HPOJobCustom\0228\n\014hpo_job_spec\030\001 \001(\0132\".fly" + + "HPOJobCustom\0228\n\014hpo_job_core\030\001 \001(\0132\".fly" + "teidl.plugins.sagemaker.HPOJob\022?\n\032traini" + "ng_job_task_template\030\002 \001(\0132\033.flyteidl.co" + "re.TaskTemplateB5Z3github.com/lyft/flyte" + @@ -3631,7 +3631,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor, - new java.lang.String[] { "HpoJobSpec", "TrainingJobTaskTemplate", }); + new java.lang.String[] { "HpoJobCore", "TrainingJobTaskTemplate", }); flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); flyteidl.core.Tasks.getDescriptor(); diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst index 4c2f46edd..4369853ee 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst @@ -168,13 +168,13 @@ flyteidl.plugins.sagemaker.HPOJobCustom .. code-block:: json { - "hpo_job_spec": "{...}", + "hpo_job_core": "{...}", "training_job_task_template": "{...}" } -.. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec: +.. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_core: -hpo_job_spec +hpo_job_core (:ref:`flyteidl.plugins.sagemaker.HPOJob `) .. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template: diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py index a996b2dd6..f4e28d6c0 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py @@ -23,7 +23,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\"\x89\x01\n\x0cHPOJobCustom\x12\x38\n\x0chpo_job_spec\x18\x01 \x01(\x0b\x32\".flyteidl.plugins.sagemaker.HPOJob\x12?\n\x1atraining_job_task_template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\"\x89\x01\n\x0cHPOJobCustom\x12\x38\n\x0chpo_job_core\x18\x01 \x01(\x0b\x32\".flyteidl.plugins.sagemaker.HPOJob\x12?\n\x1atraining_job_task_template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,flyteidl_dot_core_dot_tasks__pb2.DESCRIPTOR,]) @@ -242,7 +242,7 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='hpo_job_spec', full_name='flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec', index=0, + name='hpo_job_core', full_name='flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_core', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -280,7 +280,7 @@ _HPOJOBCONFIG.fields_by_name['training_job_early_stopping_type'].enum_type = _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY.containing_type = _HPOJOBCONFIG _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE.containing_type = _HPOJOBCONFIG -_HPOJOBCUSTOM.fields_by_name['hpo_job_spec'].message_type = _HPOJOB +_HPOJOBCUSTOM.fields_by_name['hpo_job_core'].message_type = _HPOJOB _HPOJOBCUSTOM.fields_by_name['training_job_task_template'].message_type = flyteidl_dot_core_dot_tasks__pb2._TASKTEMPLATE DESCRIPTOR.message_types_by_name['HyperparameterTuningObjective'] = _HYPERPARAMETERTUNINGOBJECTIVE DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB diff --git a/package.json b/package.json index 940009701..e1fbe50b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.18.0b3", + "version": "0.18.0b4", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/protos/flyteidl/plugins/sagemaker/hpo_job.proto b/protos/flyteidl/plugins/sagemaker/hpo_job.proto index 1035206bb..c66b41e6b 100644 --- a/protos/flyteidl/plugins/sagemaker/hpo_job.proto +++ b/protos/flyteidl/plugins/sagemaker/hpo_job.proto @@ -43,6 +43,6 @@ message HPOJobConfig { } message HPOJobCustom { - HPOJob hpo_job_spec = 1; + HPOJob hpo_job_core = 1; core.TaskTemplate training_job_task_template = 2; } diff --git a/setup.py b/setup.py index 3f46e986e..b8dcf23e8 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.18.0b3' +__version__ = '0.18.0b4' setup( name='flyteidl', From 895442240b57e3208b41528626b52ce41bfa3c3d Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Thu, 23 Jul 2020 15:45:09 -0700 Subject: [PATCH 23/64] Revert "rename field" This reverts commit ab1803346f4e86c162a77a0e86c384663fc531bc. --- .../flyteidl/plugins/sagemaker/hpo_job.pb.cc | 64 +++--- .../flyteidl/plugins/sagemaker/hpo_job.pb.h | 70 +++---- .../flyteidl/plugins/sagemaker/hpo_job.pb.go | 86 ++++---- .../plugins/sagemaker/hpo_job.pb.validate.go | 4 +- .../flyteidl/plugins/sagemaker/Hpojob.java | 188 +++++++++--------- .../plugins/sagemaker/hpo_job.proto.rst | 6 +- .../flyteidl/plugins/sagemaker/hpo_job_pb2.py | 6 +- package.json | 2 +- .../flyteidl/plugins/sagemaker/hpo_job.proto | 2 +- setup.py | 2 +- 10 files changed, 215 insertions(+), 215 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc index eda324347..afc9dc684 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc @@ -145,7 +145,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhp ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, hpo_job_core_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, hpo_job_spec_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, training_job_task_template_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -196,7 +196,7 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_ "ngType\"8\n\034HyperparameterTuningStrategy\022\014" "\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobE" "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\211\001\n\014" - "HPOJobCustom\0228\n\014hpo_job_core\030\001 \001(\0132\".fly" + "HPOJobCustom\0228\n\014hpo_job_spec\030\001 \001(\0132\".fly" "teidl.plugins.sagemaker.HPOJob\022\?\n\032traini" "ng_job_task_template\030\002 \001(\0132\033.flyteidl.co" "re.TaskTemplateB5Z3github.com/lyft/flyte" @@ -1477,20 +1477,20 @@ ::google::protobuf::Metadata HPOJobConfig::GetMetadata() const { // =================================================================== void HPOJobCustom::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->hpo_job_core_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJob*>( + ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->hpo_job_spec_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJob*>( ::flyteidl::plugins::sagemaker::HPOJob::internal_default_instance()); ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->training_job_task_template_ = const_cast< ::flyteidl::core::TaskTemplate*>( ::flyteidl::core::TaskTemplate::internal_default_instance()); } class HPOJobCustom::HasBitSetters { public: - static const ::flyteidl::plugins::sagemaker::HPOJob& hpo_job_core(const HPOJobCustom* msg); + static const ::flyteidl::plugins::sagemaker::HPOJob& hpo_job_spec(const HPOJobCustom* msg); static const ::flyteidl::core::TaskTemplate& training_job_task_template(const HPOJobCustom* msg); }; const ::flyteidl::plugins::sagemaker::HPOJob& -HPOJobCustom::HasBitSetters::hpo_job_core(const HPOJobCustom* msg) { - return *msg->hpo_job_core_; +HPOJobCustom::HasBitSetters::hpo_job_spec(const HPOJobCustom* msg) { + return *msg->hpo_job_spec_; } const ::flyteidl::core::TaskTemplate& HPOJobCustom::HasBitSetters::training_job_task_template(const HPOJobCustom* msg) { @@ -1503,7 +1503,7 @@ void HPOJobCustom::clear_training_job_task_template() { training_job_task_template_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJobCustom::kHpoJobCoreFieldNumber; +const int HPOJobCustom::kHpoJobSpecFieldNumber; const int HPOJobCustom::kTrainingJobTaskTemplateFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 @@ -1516,10 +1516,10 @@ HPOJobCustom::HPOJobCustom(const HPOJobCustom& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_hpo_job_core()) { - hpo_job_core_ = new ::flyteidl::plugins::sagemaker::HPOJob(*from.hpo_job_core_); + if (from.has_hpo_job_spec()) { + hpo_job_spec_ = new ::flyteidl::plugins::sagemaker::HPOJob(*from.hpo_job_spec_); } else { - hpo_job_core_ = nullptr; + hpo_job_spec_ = nullptr; } if (from.has_training_job_task_template()) { training_job_task_template_ = new ::flyteidl::core::TaskTemplate(*from.training_job_task_template_); @@ -1532,9 +1532,9 @@ HPOJobCustom::HPOJobCustom(const HPOJobCustom& from) void HPOJobCustom::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::memset(&hpo_job_core_, 0, static_cast( + ::memset(&hpo_job_spec_, 0, static_cast( reinterpret_cast(&training_job_task_template_) - - reinterpret_cast(&hpo_job_core_)) + sizeof(training_job_task_template_)); + reinterpret_cast(&hpo_job_spec_)) + sizeof(training_job_task_template_)); } HPOJobCustom::~HPOJobCustom() { @@ -1543,7 +1543,7 @@ HPOJobCustom::~HPOJobCustom() { } void HPOJobCustom::SharedDtor() { - if (this != internal_default_instance()) delete hpo_job_core_; + if (this != internal_default_instance()) delete hpo_job_spec_; if (this != internal_default_instance()) delete training_job_task_template_; } @@ -1562,10 +1562,10 @@ void HPOJobCustom::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaNoVirtual() == nullptr && hpo_job_core_ != nullptr) { - delete hpo_job_core_; + if (GetArenaNoVirtual() == nullptr && hpo_job_spec_ != nullptr) { + delete hpo_job_spec_; } - hpo_job_core_ = nullptr; + hpo_job_spec_ = nullptr; if (GetArenaNoVirtual() == nullptr && training_job_task_template_ != nullptr) { delete training_job_task_template_; } @@ -1586,13 +1586,13 @@ const char* HPOJobCustom::_InternalParse(const char* begin, const char* end, voi ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::plugins::sagemaker::HPOJob::_InternalParse; - object = msg->mutable_hpo_job_core(); + object = msg->mutable_hpo_job_spec(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( @@ -1642,11 +1642,11 @@ bool HPOJobCustom::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_hpo_job_core())); + input, mutable_hpo_job_spec())); } else { goto handle_unusual; } @@ -1691,10 +1691,10 @@ void HPOJobCustom::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; - if (this->has_hpo_job_core()) { + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + if (this->has_hpo_job_spec()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::hpo_job_core(this), output); + 1, HasBitSetters::hpo_job_spec(this), output); } // .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -1716,11 +1716,11 @@ ::google::protobuf::uint8* HPOJobCustom::InternalSerializeWithCachedSizesToArray ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; - if (this->has_hpo_job_core()) { + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + if (this->has_hpo_job_spec()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::hpo_job_core(this), target); + 1, HasBitSetters::hpo_job_spec(this), target); } // .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -1751,11 +1751,11 @@ size_t HPOJobCustom::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; - if (this->has_hpo_job_core()) { + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + if (this->has_hpo_job_spec()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *hpo_job_core_); + *hpo_job_spec_); } // .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -1792,8 +1792,8 @@ void HPOJobCustom::MergeFrom(const HPOJobCustom& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_hpo_job_core()) { - mutable_hpo_job_core()->::flyteidl::plugins::sagemaker::HPOJob::MergeFrom(from.hpo_job_core()); + if (from.has_hpo_job_spec()) { + mutable_hpo_job_spec()->::flyteidl::plugins::sagemaker::HPOJob::MergeFrom(from.hpo_job_spec()); } if (from.has_training_job_task_template()) { mutable_training_job_task_template()->::flyteidl::core::TaskTemplate::MergeFrom(from.training_job_task_template()); @@ -1825,7 +1825,7 @@ void HPOJobCustom::Swap(HPOJobCustom* other) { void HPOJobCustom::InternalSwap(HPOJobCustom* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(hpo_job_core_, other->hpo_job_core_); + swap(hpo_job_spec_, other->hpo_job_spec_); swap(training_job_task_template_, other->training_job_task_template_); } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h index 5082123ea..cfb674f96 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h @@ -715,14 +715,14 @@ class HPOJobCustom final : // accessors ------------------------------------------------------- - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; - bool has_hpo_job_core() const; - void clear_hpo_job_core(); - static const int kHpoJobCoreFieldNumber = 1; - const ::flyteidl::plugins::sagemaker::HPOJob& hpo_job_core() const; - ::flyteidl::plugins::sagemaker::HPOJob* release_hpo_job_core(); - ::flyteidl::plugins::sagemaker::HPOJob* mutable_hpo_job_core(); - void set_allocated_hpo_job_core(::flyteidl::plugins::sagemaker::HPOJob* hpo_job_core); + // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + bool has_hpo_job_spec() const; + void clear_hpo_job_spec(); + static const int kHpoJobSpecFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::HPOJob& hpo_job_spec() const; + ::flyteidl::plugins::sagemaker::HPOJob* release_hpo_job_spec(); + ::flyteidl::plugins::sagemaker::HPOJob* mutable_hpo_job_spec(); + void set_allocated_hpo_job_spec(::flyteidl::plugins::sagemaker::HPOJob* hpo_job_spec); // .flyteidl.core.TaskTemplate training_job_task_template = 2; bool has_training_job_task_template() const; @@ -738,7 +738,7 @@ class HPOJobCustom final : class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::sagemaker::HPOJob* hpo_job_core_; + ::flyteidl::plugins::sagemaker::HPOJob* hpo_job_spec_; ::flyteidl::core::TaskTemplate* training_job_task_template_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; @@ -1030,55 +1030,55 @@ inline void HPOJobConfig::set_training_job_early_stopping_type(::flyteidl::plugi // HPOJobCustom -// .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; -inline bool HPOJobCustom::has_hpo_job_core() const { - return this != internal_default_instance() && hpo_job_core_ != nullptr; +// .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; +inline bool HPOJobCustom::has_hpo_job_spec() const { + return this != internal_default_instance() && hpo_job_spec_ != nullptr; } -inline void HPOJobCustom::clear_hpo_job_core() { - if (GetArenaNoVirtual() == nullptr && hpo_job_core_ != nullptr) { - delete hpo_job_core_; +inline void HPOJobCustom::clear_hpo_job_spec() { + if (GetArenaNoVirtual() == nullptr && hpo_job_spec_ != nullptr) { + delete hpo_job_spec_; } - hpo_job_core_ = nullptr; + hpo_job_spec_ = nullptr; } -inline const ::flyteidl::plugins::sagemaker::HPOJob& HPOJobCustom::hpo_job_core() const { - const ::flyteidl::plugins::sagemaker::HPOJob* p = hpo_job_core_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_core) +inline const ::flyteidl::plugins::sagemaker::HPOJob& HPOJobCustom::hpo_job_spec() const { + const ::flyteidl::plugins::sagemaker::HPOJob* p = hpo_job_spec_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) return p != nullptr ? *p : *reinterpret_cast( &::flyteidl::plugins::sagemaker::_HPOJob_default_instance_); } -inline ::flyteidl::plugins::sagemaker::HPOJob* HPOJobCustom::release_hpo_job_core() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_core) +inline ::flyteidl::plugins::sagemaker::HPOJob* HPOJobCustom::release_hpo_job_spec() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) - ::flyteidl::plugins::sagemaker::HPOJob* temp = hpo_job_core_; - hpo_job_core_ = nullptr; + ::flyteidl::plugins::sagemaker::HPOJob* temp = hpo_job_spec_; + hpo_job_spec_ = nullptr; return temp; } -inline ::flyteidl::plugins::sagemaker::HPOJob* HPOJobCustom::mutable_hpo_job_core() { +inline ::flyteidl::plugins::sagemaker::HPOJob* HPOJobCustom::mutable_hpo_job_spec() { - if (hpo_job_core_ == nullptr) { + if (hpo_job_spec_ == nullptr) { auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJob>(GetArenaNoVirtual()); - hpo_job_core_ = p; + hpo_job_spec_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_core) - return hpo_job_core_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) + return hpo_job_spec_; } -inline void HPOJobCustom::set_allocated_hpo_job_core(::flyteidl::plugins::sagemaker::HPOJob* hpo_job_core) { +inline void HPOJobCustom::set_allocated_hpo_job_spec(::flyteidl::plugins::sagemaker::HPOJob* hpo_job_spec) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete hpo_job_core_; + delete hpo_job_spec_; } - if (hpo_job_core) { + if (hpo_job_spec) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - hpo_job_core = ::google::protobuf::internal::GetOwnedMessage( - message_arena, hpo_job_core, submessage_arena); + hpo_job_spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hpo_job_spec, submessage_arena); } } else { } - hpo_job_core_ = hpo_job_core; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_core) + hpo_job_spec_ = hpo_job_spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) } // .flyteidl.core.TaskTemplate training_job_task_template = 2; diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go index 5b47d169a..0d93c0772 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go @@ -262,7 +262,7 @@ func (m *HPOJobConfig) GetTrainingJobEarlyStoppingType() HPOJobConfig_TrainingJo } type HPOJobCustom struct { - HpoJobCore *HPOJob `protobuf:"bytes,1,opt,name=hpo_job_core,json=hpoJobCore,proto3" json:"hpo_job_core,omitempty"` + HpoJobSpec *HPOJob `protobuf:"bytes,1,opt,name=hpo_job_spec,json=hpoJobSpec,proto3" json:"hpo_job_spec,omitempty"` TrainingJobTaskTemplate *core.TaskTemplate `protobuf:"bytes,2,opt,name=training_job_task_template,json=trainingJobTaskTemplate,proto3" json:"training_job_task_template,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -294,9 +294,9 @@ func (m *HPOJobCustom) XXX_DiscardUnknown() { var xxx_messageInfo_HPOJobCustom proto.InternalMessageInfo -func (m *HPOJobCustom) GetHpoJobCore() *HPOJob { +func (m *HPOJobCustom) GetHpoJobSpec() *HPOJob { if m != nil { - return m.HpoJobCore + return m.HpoJobSpec } return nil } @@ -323,44 +323,44 @@ func init() { } var fileDescriptor_50903433b4c088ac = []byte{ - // 619 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x51, 0x4f, 0xd4, 0x4c, - 0x14, 0xa5, 0x40, 0xf8, 0xf8, 0xee, 0xae, 0xeb, 0x66, 0xa2, 0x01, 0x17, 0x8c, 0xd8, 0x17, 0x49, - 0x0c, 0x6d, 0x58, 0x62, 0xa2, 0xd1, 0xc4, 0x2c, 0xb2, 0x84, 0x25, 0x61, 0x97, 0x94, 0x9a, 0x20, - 0x3e, 0x8c, 0xd3, 0x65, 0xb6, 0x5b, 0x68, 0x3b, 0x93, 0xe9, 0xac, 0xa1, 0xaf, 0x3e, 0xf8, 0xe6, - 0x5f, 0xf1, 0x4f, 0xf8, 0x03, 0xfc, 0x4b, 0xa6, 0xd3, 0xd9, 0x6e, 0x97, 0x68, 0x89, 0x3e, 0xde, - 0x99, 0x7b, 0xce, 0xed, 0x39, 0x3d, 0x73, 0x61, 0x7b, 0x14, 0xa6, 0x92, 0x06, 0x97, 0xa1, 0xcd, - 0xc3, 0x89, 0x1f, 0xc4, 0x89, 0x9d, 0x10, 0x9f, 0x46, 0xe4, 0x9a, 0x0a, 0x7b, 0xcc, 0x19, 0xbe, - 0x62, 0x9e, 0xc5, 0x05, 0x93, 0x0c, 0xb5, 0xa6, 0x9d, 0x96, 0xee, 0xb4, 0x8a, 0xce, 0xd6, 0x6e, - 0x05, 0x0b, 0x27, 0x82, 0x44, 0x54, 0x52, 0x81, 0x05, 0x89, 0x7d, 0x9a, 0xe4, 0x74, 0xad, 0x9d, - 0x0a, 0x88, 0x14, 0x24, 0x88, 0x83, 0xd8, 0x9f, 0x4d, 0x6f, 0x3d, 0x2a, 0xda, 0x87, 0x4c, 0x50, - 0x5b, 0x92, 0xe4, 0x5a, 0x33, 0x99, 0x5f, 0x17, 0xe1, 0xf1, 0x51, 0xca, 0xa9, 0x28, 0x26, 0xb9, - 0x93, 0x0c, 0x3d, 0xf0, 0xae, 0xe8, 0x50, 0x06, 0x9f, 0x29, 0xfa, 0x62, 0x40, 0x83, 0x4d, 0x2b, - 0x2c, 0x53, 0x4e, 0xd7, 0x8d, 0x2d, 0x63, 0xbb, 0xd1, 0xfe, 0x68, 0xfd, 0x59, 0x94, 0x55, 0xc9, - 0x59, 0x7d, 0xeb, 0xa6, 0x9c, 0x3a, 0xf7, 0x58, 0xb9, 0x44, 0x4f, 0xa0, 0x16, 0x51, 0x29, 0x82, - 0x21, 0x8e, 0x49, 0x44, 0xd7, 0x17, 0xb7, 0x8c, 0xed, 0xff, 0x1d, 0xc8, 0x8f, 0xfa, 0x24, 0xa2, - 0xe6, 0x5b, 0x78, 0x7a, 0x27, 0x29, 0xaa, 0xc3, 0xea, 0x49, 0xaf, 0xdf, 0x3b, 0xe9, 0x5d, 0x74, - 0x9b, 0x0b, 0xaa, 0xea, 0x9c, 0xe7, 0x95, 0x61, 0xfe, 0x34, 0x60, 0xe5, 0xe8, 0x74, 0x70, 0xcc, - 0x3c, 0x74, 0x0c, 0xf5, 0xb2, 0x89, 0x4a, 0x6e, 0xad, 0xfd, 0xac, 0x4a, 0xae, 0xab, 0xfb, 0x8f, - 0x99, 0xe7, 0xd4, 0xe4, 0xac, 0x40, 0x6f, 0x60, 0x23, 0x22, 0x37, 0x38, 0x9e, 0x44, 0x1e, 0x15, - 0x98, 0x8d, 0x70, 0x99, 0x39, 0x51, 0x42, 0x96, 0x9c, 0xb5, 0x88, 0xdc, 0xf4, 0x55, 0xc7, 0x60, - 0x54, 0x62, 0x4a, 0xd0, 0x6b, 0x68, 0x65, 0xe8, 0x4c, 0x54, 0x18, 0xd2, 0xf0, 0x16, 0x78, 0xa9, - 0x00, 0x9f, 0xea, 0x86, 0x32, 0xd8, 0xfc, 0xb1, 0x0c, 0xf5, 0x5c, 0xd1, 0x3b, 0x16, 0x8f, 0x02, - 0x1f, 0x7d, 0x82, 0x87, 0xe3, 0x39, 0x8f, 0x74, 0xa8, 0xb4, 0xc0, 0xe7, 0x55, 0x02, 0x4f, 0xa7, - 0x18, 0x47, 0x41, 0x9c, 0x07, 0xf3, 0x4c, 0xf9, 0x29, 0x8a, 0xe1, 0xbe, 0x54, 0xbe, 0xe3, 0x44, - 0x0a, 0x22, 0xa9, 0x9f, 0x2a, 0x85, 0x8d, 0x76, 0xb7, 0x32, 0x2b, 0xa5, 0x8f, 0xfc, 0x6d, 0x34, - 0xce, 0x34, 0x99, 0xd3, 0x90, 0x73, 0x35, 0xba, 0x84, 0xa6, 0x9e, 0x57, 0xc4, 0x45, 0xb9, 0x52, - 0x6b, 0xbf, 0xfa, 0xe7, 0x70, 0x3a, 0x5a, 0xc2, 0xec, 0x05, 0x7c, 0x33, 0x60, 0xab, 0xec, 0x3c, - 0xa6, 0x44, 0x84, 0x29, 0x4e, 0x24, 0xe3, 0x3c, 0x3b, 0x52, 0x6f, 0x62, 0xf9, 0x2f, 0x75, 0x96, - 0x7e, 0x55, 0x37, 0xa3, 0x3b, 0xd3, 0x6c, 0x2a, 0xfd, 0x9b, 0xb2, 0xe2, 0xd6, 0x7c, 0x09, 0x9b, - 0x55, 0x2e, 0x65, 0xc1, 0xde, 0xef, 0x7c, 0xe8, 0x9e, 0xf5, 0x3a, 0xfd, 0xe6, 0x02, 0x02, 0x58, - 0x71, 0x3a, 0xfd, 0x83, 0xc1, 0x49, 0xd3, 0x30, 0x77, 0x61, 0xb3, 0x6a, 0x2e, 0xfa, 0x0f, 0x96, - 0x06, 0x87, 0x87, 0xcd, 0x05, 0xb4, 0x0a, 0xcb, 0x9d, 0xf7, 0xee, 0xa0, 0x69, 0x98, 0xdf, 0x8d, - 0x22, 0x45, 0x93, 0x44, 0xb2, 0x08, 0x1d, 0x40, 0x5d, 0xef, 0x36, 0x9c, 0x6d, 0x13, 0x1d, 0x1e, - 0xf3, 0x6e, 0xe1, 0x0e, 0x8c, 0x39, 0x53, 0x06, 0x08, 0x8a, 0xce, 0xa1, 0x35, 0x67, 0x69, 0xb6, - 0x93, 0xb0, 0xa4, 0x11, 0x0f, 0x89, 0xcc, 0xdf, 0x77, 0xad, 0xbd, 0x31, 0xe3, 0xcc, 0x26, 0x59, - 0x2e, 0x49, 0xae, 0x5d, 0xdd, 0xe2, 0xac, 0x95, 0x2c, 0x2a, 0x5f, 0xec, 0xbf, 0xb8, 0xd8, 0xf3, - 0x03, 0x39, 0x9e, 0x78, 0xd6, 0x90, 0x45, 0x76, 0x98, 0x8e, 0xa4, 0x5d, 0xac, 0x3f, 0x9f, 0xc6, - 0x36, 0xf7, 0x76, 0x7c, 0x66, 0xdf, 0x5e, 0xa0, 0xde, 0x8a, 0xda, 0x87, 0x7b, 0xbf, 0x02, 0x00, - 0x00, 0xff, 0xff, 0xdb, 0x95, 0x92, 0x8c, 0xd4, 0x05, 0x00, 0x00, + // 622 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x51, 0x6f, 0xd3, 0x3c, + 0x14, 0x5d, 0xb6, 0x69, 0xdf, 0xbe, 0xdb, 0x52, 0x2a, 0x0b, 0xb4, 0xd1, 0x0d, 0x31, 0xf2, 0xc2, + 0x24, 0xb4, 0x44, 0xeb, 0x84, 0x04, 0x02, 0x09, 0x75, 0xac, 0xd3, 0x5a, 0x69, 0xed, 0x94, 0x06, + 0x69, 0x8c, 0x07, 0xe3, 0x64, 0x6e, 0x9a, 0x2d, 0x89, 0x2d, 0xc7, 0x45, 0xcb, 0x2b, 0x0f, 0xbc, + 0xf1, 0x57, 0xf8, 0x13, 0xfc, 0x00, 0xfe, 0x12, 0x4a, 0xe2, 0xa6, 0xe9, 0x04, 0x99, 0xe0, 0xf1, + 0xda, 0xf7, 0x9c, 0x9b, 0x73, 0x72, 0x7c, 0x61, 0x77, 0x1c, 0x24, 0x92, 0xfa, 0x97, 0x81, 0xc9, + 0x83, 0xa9, 0xe7, 0x47, 0xb1, 0x19, 0x13, 0x8f, 0x86, 0xe4, 0x9a, 0x0a, 0x73, 0xc2, 0x19, 0xbe, + 0x62, 0x8e, 0xc1, 0x05, 0x93, 0x0c, 0xb5, 0x66, 0x9d, 0x86, 0xea, 0x34, 0x8a, 0xce, 0xd6, 0x7e, + 0x05, 0x0b, 0x27, 0x82, 0x84, 0x54, 0x52, 0x81, 0x05, 0x89, 0x3c, 0x1a, 0xe7, 0x74, 0xad, 0xbd, + 0x0a, 0x88, 0x14, 0xc4, 0x8f, 0xfc, 0xc8, 0x9b, 0x4f, 0x6f, 0x3d, 0x2a, 0xda, 0x5d, 0x26, 0xa8, + 0x29, 0x49, 0x7c, 0xad, 0x98, 0xf4, 0xaf, 0xcb, 0xf0, 0xf8, 0x24, 0xe1, 0x54, 0x14, 0x93, 0xec, + 0x69, 0x8a, 0x1e, 0x3a, 0x57, 0xd4, 0x95, 0xfe, 0x67, 0x8a, 0xbe, 0x68, 0xd0, 0x60, 0xb3, 0x0a, + 0xcb, 0x84, 0xd3, 0x4d, 0x6d, 0x47, 0xdb, 0x6d, 0xb4, 0x3f, 0x1a, 0x7f, 0x16, 0x65, 0x54, 0x72, + 0x56, 0xdf, 0xda, 0x09, 0xa7, 0xd6, 0x3d, 0x56, 0x2e, 0xd1, 0x13, 0xa8, 0x85, 0x54, 0x0a, 0xdf, + 0xc5, 0x11, 0x09, 0xe9, 0xe6, 0xf2, 0x8e, 0xb6, 0xfb, 0xbf, 0x05, 0xf9, 0xd1, 0x80, 0x84, 0x54, + 0x7f, 0x0b, 0x4f, 0xef, 0x24, 0x45, 0x75, 0x58, 0x3f, 0xed, 0x0d, 0x7a, 0xa7, 0xbd, 0x8b, 0x6e, + 0x73, 0x29, 0xab, 0x3a, 0xe7, 0x79, 0xa5, 0xe9, 0x3f, 0x35, 0x58, 0x3b, 0x39, 0x1b, 0xf6, 0x99, + 0x83, 0xfa, 0x50, 0x2f, 0x9b, 0x98, 0xc9, 0xad, 0xb5, 0x9f, 0x55, 0xc9, 0xb5, 0x55, 0x7f, 0x9f, + 0x39, 0x56, 0x4d, 0xce, 0x0b, 0xf4, 0x06, 0xb6, 0x42, 0x72, 0x83, 0xa3, 0x69, 0xe8, 0x50, 0x81, + 0xd9, 0x18, 0x97, 0x99, 0xe3, 0x4c, 0xc8, 0x8a, 0xb5, 0x11, 0x92, 0x9b, 0x41, 0xd6, 0x31, 0x1c, + 0x97, 0x98, 0x62, 0xf4, 0x1a, 0x5a, 0x29, 0x3a, 0x15, 0x15, 0x04, 0x34, 0xb8, 0x05, 0x5e, 0x29, + 0xc0, 0x67, 0xaa, 0xa1, 0x0c, 0xd6, 0x7f, 0xac, 0x42, 0x3d, 0x57, 0xf4, 0x8e, 0x45, 0x63, 0xdf, + 0x43, 0x9f, 0xe0, 0xe1, 0x64, 0xc1, 0x23, 0x15, 0x2a, 0x25, 0xf0, 0x79, 0x95, 0xc0, 0xb3, 0x19, + 0xc6, 0xca, 0x20, 0xd6, 0x83, 0x45, 0xa6, 0xfc, 0x14, 0x45, 0x70, 0x5f, 0x66, 0xbe, 0xe3, 0x58, + 0x0a, 0x22, 0xa9, 0x97, 0x64, 0x0a, 0x1b, 0xed, 0x6e, 0x65, 0x56, 0x4a, 0x1f, 0xf9, 0xdb, 0x68, + 0x8c, 0x14, 0x99, 0xd5, 0x90, 0x0b, 0x35, 0xba, 0x84, 0xa6, 0x9a, 0x57, 0xc4, 0x25, 0x73, 0xa5, + 0xd6, 0x7e, 0xf5, 0xcf, 0xe1, 0xb4, 0x94, 0x84, 0xf9, 0x0b, 0xf8, 0xa6, 0xc1, 0x4e, 0xd9, 0x79, + 0x4c, 0x89, 0x08, 0x12, 0x1c, 0x4b, 0xc6, 0x79, 0x7a, 0x94, 0xbd, 0x89, 0xd5, 0xbf, 0xd4, 0x59, + 0xfa, 0x55, 0xdd, 0x94, 0x6e, 0xa4, 0xd8, 0xb2, 0xf4, 0x6f, 0xcb, 0x8a, 0x5b, 0xfd, 0x25, 0x6c, + 0x57, 0xb9, 0x94, 0x06, 0xfb, 0xb0, 0xf3, 0xa1, 0x3b, 0xea, 0x75, 0x06, 0xcd, 0x25, 0x04, 0xb0, + 0x66, 0x75, 0x06, 0x47, 0xc3, 0xd3, 0xa6, 0xa6, 0xef, 0xc3, 0x76, 0xd5, 0x5c, 0xf4, 0x1f, 0xac, + 0x0c, 0x8f, 0x8f, 0x9b, 0x4b, 0x68, 0x1d, 0x56, 0x3b, 0xef, 0xed, 0x61, 0x53, 0xd3, 0xbf, 0x6b, + 0x45, 0x8a, 0xa6, 0xb1, 0x64, 0x21, 0x3a, 0x82, 0xba, 0xda, 0x6d, 0x38, 0xe6, 0xd4, 0x55, 0xe1, + 0xd1, 0xef, 0x16, 0x6e, 0xc1, 0x84, 0xb3, 0x3e, 0x73, 0x46, 0x9c, 0xba, 0xe8, 0x1c, 0x5a, 0x0b, + 0x96, 0xa6, 0x3b, 0x09, 0x4b, 0x1a, 0xf2, 0x80, 0xc8, 0xfc, 0x7d, 0xd7, 0xda, 0x5b, 0x73, 0xce, + 0x74, 0x6f, 0x19, 0x36, 0x89, 0xaf, 0x6d, 0xd5, 0x62, 0x6d, 0x94, 0x2c, 0x2a, 0x5f, 0x1c, 0xbe, + 0xb8, 0x38, 0xf0, 0x7c, 0x39, 0x99, 0x3a, 0x86, 0xcb, 0x42, 0x33, 0x48, 0xc6, 0xd2, 0x2c, 0xd6, + 0x9f, 0x47, 0x23, 0x93, 0x3b, 0x7b, 0x1e, 0x33, 0x6f, 0x2f, 0x50, 0x67, 0x2d, 0xdb, 0x87, 0x07, + 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x44, 0x86, 0xfb, 0xf9, 0xd4, 0x05, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go index 70db17ced..fa7e4eb6e 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go @@ -283,10 +283,10 @@ func (m *HPOJobCustom) Validate() error { return nil } - if v, ok := interface{}(m.GetHpoJobCore()).(interface{ Validate() error }); ok { + if v, ok := interface{}(m.GetHpoJobSpec()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HPOJobCustomValidationError{ - field: "HpoJobCore", + field: "HpoJobSpec", reason: "embedded message failed validation", cause: err, } diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java index 8cdb1707a..55e00e1d5 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -2736,17 +2736,17 @@ public interface HPOJobCustomOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - boolean hasHpoJobCore(); + boolean hasHpoJobSpec(); /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobCore(); + flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobSpec(); /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobCoreOrBuilder(); + flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobSpecOrBuilder(); /** * .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -2802,13 +2802,13 @@ private HPOJobCustom( break; case 10: { flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder subBuilder = null; - if (hpoJobCore_ != null) { - subBuilder = hpoJobCore_.toBuilder(); + if (hpoJobSpec_ != null) { + subBuilder = hpoJobSpec_.toBuilder(); } - hpoJobCore_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HPOJob.parser(), extensionRegistry); + hpoJobSpec_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HPOJob.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(hpoJobCore_); - hpoJobCore_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(hpoJobSpec_); + hpoJobSpec_ = subBuilder.buildPartial(); } break; @@ -2858,25 +2858,25 @@ private HPOJobCustom( flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.Builder.class); } - public static final int HPO_JOB_CORE_FIELD_NUMBER = 1; - private flyteidl.plugins.sagemaker.HpoJob.HPOJob hpoJobCore_; + public static final int HPO_JOB_SPEC_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.HpoJob.HPOJob hpoJobSpec_; /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public boolean hasHpoJobCore() { - return hpoJobCore_ != null; + public boolean hasHpoJobSpec() { + return hpoJobSpec_ != null; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobCore() { - return hpoJobCore_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobCore_; + public flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobSpec() { + return hpoJobSpec_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobSpec_; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobCoreOrBuilder() { - return getHpoJobCore(); + public flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobSpecOrBuilder() { + return getHpoJobSpec(); } public static final int TRAINING_JOB_TASK_TEMPLATE_FIELD_NUMBER = 2; @@ -2914,8 +2914,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (hpoJobCore_ != null) { - output.writeMessage(1, getHpoJobCore()); + if (hpoJobSpec_ != null) { + output.writeMessage(1, getHpoJobSpec()); } if (trainingJobTaskTemplate_ != null) { output.writeMessage(2, getTrainingJobTaskTemplate()); @@ -2929,9 +2929,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (hpoJobCore_ != null) { + if (hpoJobSpec_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHpoJobCore()); + .computeMessageSize(1, getHpoJobSpec()); } if (trainingJobTaskTemplate_ != null) { size += com.google.protobuf.CodedOutputStream @@ -2952,10 +2952,10 @@ public boolean equals(final java.lang.Object obj) { } flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom) obj; - if (hasHpoJobCore() != other.hasHpoJobCore()) return false; - if (hasHpoJobCore()) { - if (!getHpoJobCore() - .equals(other.getHpoJobCore())) return false; + if (hasHpoJobSpec() != other.hasHpoJobSpec()) return false; + if (hasHpoJobSpec()) { + if (!getHpoJobSpec() + .equals(other.getHpoJobSpec())) return false; } if (hasTrainingJobTaskTemplate() != other.hasTrainingJobTaskTemplate()) return false; if (hasTrainingJobTaskTemplate()) { @@ -2973,9 +2973,9 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasHpoJobCore()) { - hash = (37 * hash) + HPO_JOB_CORE_FIELD_NUMBER; - hash = (53 * hash) + getHpoJobCore().hashCode(); + if (hasHpoJobSpec()) { + hash = (37 * hash) + HPO_JOB_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getHpoJobSpec().hashCode(); } if (hasTrainingJobTaskTemplate()) { hash = (37 * hash) + TRAINING_JOB_TASK_TEMPLATE_FIELD_NUMBER; @@ -3114,11 +3114,11 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (hpoJobCoreBuilder_ == null) { - hpoJobCore_ = null; + if (hpoJobSpecBuilder_ == null) { + hpoJobSpec_ = null; } else { - hpoJobCore_ = null; - hpoJobCoreBuilder_ = null; + hpoJobSpec_ = null; + hpoJobSpecBuilder_ = null; } if (trainingJobTaskTemplateBuilder_ == null) { trainingJobTaskTemplate_ = null; @@ -3152,10 +3152,10 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom build() { @java.lang.Override public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom buildPartial() { flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom(this); - if (hpoJobCoreBuilder_ == null) { - result.hpoJobCore_ = hpoJobCore_; + if (hpoJobSpecBuilder_ == null) { + result.hpoJobSpec_ = hpoJobSpec_; } else { - result.hpoJobCore_ = hpoJobCoreBuilder_.build(); + result.hpoJobSpec_ = hpoJobSpecBuilder_.build(); } if (trainingJobTaskTemplateBuilder_ == null) { result.trainingJobTaskTemplate_ = trainingJobTaskTemplate_; @@ -3210,8 +3210,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom other) { if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.getDefaultInstance()) return this; - if (other.hasHpoJobCore()) { - mergeHpoJobCore(other.getHpoJobCore()); + if (other.hasHpoJobSpec()) { + mergeHpoJobSpec(other.getHpoJobSpec()); } if (other.hasTrainingJobTaskTemplate()) { mergeTrainingJobTaskTemplate(other.getTrainingJobTaskTemplate()); @@ -3245,121 +3245,121 @@ public Builder mergeFrom( return this; } - private flyteidl.plugins.sagemaker.HpoJob.HPOJob hpoJobCore_; + private flyteidl.plugins.sagemaker.HpoJob.HPOJob hpoJobSpec_; private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder> hpoJobCoreBuilder_; + flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder> hpoJobSpecBuilder_; /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public boolean hasHpoJobCore() { - return hpoJobCoreBuilder_ != null || hpoJobCore_ != null; + public boolean hasHpoJobSpec() { + return hpoJobSpecBuilder_ != null || hpoJobSpec_ != null; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobCore() { - if (hpoJobCoreBuilder_ == null) { - return hpoJobCore_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobCore_; + public flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobSpec() { + if (hpoJobSpecBuilder_ == null) { + return hpoJobSpec_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobSpec_; } else { - return hpoJobCoreBuilder_.getMessage(); + return hpoJobSpecBuilder_.getMessage(); } } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public Builder setHpoJobCore(flyteidl.plugins.sagemaker.HpoJob.HPOJob value) { - if (hpoJobCoreBuilder_ == null) { + public Builder setHpoJobSpec(flyteidl.plugins.sagemaker.HpoJob.HPOJob value) { + if (hpoJobSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hpoJobCore_ = value; + hpoJobSpec_ = value; onChanged(); } else { - hpoJobCoreBuilder_.setMessage(value); + hpoJobSpecBuilder_.setMessage(value); } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public Builder setHpoJobCore( + public Builder setHpoJobSpec( flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder builderForValue) { - if (hpoJobCoreBuilder_ == null) { - hpoJobCore_ = builderForValue.build(); + if (hpoJobSpecBuilder_ == null) { + hpoJobSpec_ = builderForValue.build(); onChanged(); } else { - hpoJobCoreBuilder_.setMessage(builderForValue.build()); + hpoJobSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public Builder mergeHpoJobCore(flyteidl.plugins.sagemaker.HpoJob.HPOJob value) { - if (hpoJobCoreBuilder_ == null) { - if (hpoJobCore_ != null) { - hpoJobCore_ = - flyteidl.plugins.sagemaker.HpoJob.HPOJob.newBuilder(hpoJobCore_).mergeFrom(value).buildPartial(); + public Builder mergeHpoJobSpec(flyteidl.plugins.sagemaker.HpoJob.HPOJob value) { + if (hpoJobSpecBuilder_ == null) { + if (hpoJobSpec_ != null) { + hpoJobSpec_ = + flyteidl.plugins.sagemaker.HpoJob.HPOJob.newBuilder(hpoJobSpec_).mergeFrom(value).buildPartial(); } else { - hpoJobCore_ = value; + hpoJobSpec_ = value; } onChanged(); } else { - hpoJobCoreBuilder_.mergeFrom(value); + hpoJobSpecBuilder_.mergeFrom(value); } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public Builder clearHpoJobCore() { - if (hpoJobCoreBuilder_ == null) { - hpoJobCore_ = null; + public Builder clearHpoJobSpec() { + if (hpoJobSpecBuilder_ == null) { + hpoJobSpec_ = null; onChanged(); } else { - hpoJobCore_ = null; - hpoJobCoreBuilder_ = null; + hpoJobSpec_ = null; + hpoJobSpecBuilder_ = null; } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder getHpoJobCoreBuilder() { + public flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder getHpoJobSpecBuilder() { onChanged(); - return getHpoJobCoreFieldBuilder().getBuilder(); + return getHpoJobSpecFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobCoreOrBuilder() { - if (hpoJobCoreBuilder_ != null) { - return hpoJobCoreBuilder_.getMessageOrBuilder(); + public flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobSpecOrBuilder() { + if (hpoJobSpecBuilder_ != null) { + return hpoJobSpecBuilder_.getMessageOrBuilder(); } else { - return hpoJobCore_ == null ? - flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobCore_; + return hpoJobSpec_ == null ? + flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobSpec_; } } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_core = 1; + * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder> - getHpoJobCoreFieldBuilder() { - if (hpoJobCoreBuilder_ == null) { - hpoJobCoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getHpoJobSpecFieldBuilder() { + if (hpoJobSpecBuilder_ == null) { + hpoJobSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder>( - getHpoJobCore(), + getHpoJobSpec(), getParentForChildren(), isClean()); - hpoJobCore_ = null; + hpoJobSpec_ = null; } - return hpoJobCoreBuilder_; + return hpoJobSpecBuilder_; } private flyteidl.core.Tasks.TaskTemplate trainingJobTaskTemplate_; @@ -3587,7 +3587,7 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom getDefaultInstanceForType( "ngType\"8\n\034HyperparameterTuningStrategy\022\014" + "\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobE" + "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\211\001\n\014" + - "HPOJobCustom\0228\n\014hpo_job_core\030\001 \001(\0132\".fly" + + "HPOJobCustom\0228\n\014hpo_job_spec\030\001 \001(\0132\".fly" + "teidl.plugins.sagemaker.HPOJob\022?\n\032traini" + "ng_job_task_template\030\002 \001(\0132\033.flyteidl.co" + "re.TaskTemplateB5Z3github.com/lyft/flyte" + @@ -3631,7 +3631,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor, - new java.lang.String[] { "HpoJobCore", "TrainingJobTaskTemplate", }); + new java.lang.String[] { "HpoJobSpec", "TrainingJobTaskTemplate", }); flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); flyteidl.core.Tasks.getDescriptor(); diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst index 4369853ee..4c2f46edd 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst @@ -168,13 +168,13 @@ flyteidl.plugins.sagemaker.HPOJobCustom .. code-block:: json { - "hpo_job_core": "{...}", + "hpo_job_spec": "{...}", "training_job_task_template": "{...}" } -.. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_core: +.. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec: -hpo_job_core +hpo_job_spec (:ref:`flyteidl.plugins.sagemaker.HPOJob `) .. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template: diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py index f4e28d6c0..a996b2dd6 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py @@ -23,7 +23,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\"\x89\x01\n\x0cHPOJobCustom\x12\x38\n\x0chpo_job_core\x18\x01 \x01(\x0b\x32\".flyteidl.plugins.sagemaker.HPOJob\x12?\n\x1atraining_job_task_template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\"\x89\x01\n\x0cHPOJobCustom\x12\x38\n\x0chpo_job_spec\x18\x01 \x01(\x0b\x32\".flyteidl.plugins.sagemaker.HPOJob\x12?\n\x1atraining_job_task_template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,flyteidl_dot_core_dot_tasks__pb2.DESCRIPTOR,]) @@ -242,7 +242,7 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='hpo_job_core', full_name='flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_core', index=0, + name='hpo_job_spec', full_name='flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -280,7 +280,7 @@ _HPOJOBCONFIG.fields_by_name['training_job_early_stopping_type'].enum_type = _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY.containing_type = _HPOJOBCONFIG _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE.containing_type = _HPOJOBCONFIG -_HPOJOBCUSTOM.fields_by_name['hpo_job_core'].message_type = _HPOJOB +_HPOJOBCUSTOM.fields_by_name['hpo_job_spec'].message_type = _HPOJOB _HPOJOBCUSTOM.fields_by_name['training_job_task_template'].message_type = flyteidl_dot_core_dot_tasks__pb2._TASKTEMPLATE DESCRIPTOR.message_types_by_name['HyperparameterTuningObjective'] = _HYPERPARAMETERTUNINGOBJECTIVE DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB diff --git a/package.json b/package.json index e1fbe50b9..940009701 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.18.0b4", + "version": "0.18.0b3", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/protos/flyteidl/plugins/sagemaker/hpo_job.proto b/protos/flyteidl/plugins/sagemaker/hpo_job.proto index c66b41e6b..1035206bb 100644 --- a/protos/flyteidl/plugins/sagemaker/hpo_job.proto +++ b/protos/flyteidl/plugins/sagemaker/hpo_job.proto @@ -43,6 +43,6 @@ message HPOJobConfig { } message HPOJobCustom { - HPOJob hpo_job_core = 1; + HPOJob hpo_job_spec = 1; core.TaskTemplate training_job_task_template = 2; } diff --git a/setup.py b/setup.py index b8dcf23e8..3f46e986e 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.18.0b4' +__version__ = '0.18.0b3' setup( name='flyteidl', From 68f1eb8eba65e3f4215430468a37d326147972dd Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Thu, 23 Jul 2020 15:49:25 -0700 Subject: [PATCH 24/64] reverting the hpojobcustom changes --- .../flyteidl/plugins/sagemaker/hpo_job.pb.cc | 87 ++++---- .../flyteidl/plugins/sagemaker/hpo_job.pb.h | 76 +++---- .../flyteidl/plugins/sagemaker/hpo_job.pb.go | 86 ++++---- .../plugins/sagemaker/hpo_job.pb.validate.go | 4 +- .../flyteidl/plugins/sagemaker/Hpojob.java | 207 +++++++++--------- .../plugins/sagemaker/hpo_job.proto.rst | 8 +- .../flyteidl/plugins/sagemaker/hpo_job_pb2.py | 8 +- package.json | 2 +- .../flyteidl/plugins/sagemaker/hpo_job.proto | 2 +- setup.py | 2 +- 10 files changed, 242 insertions(+), 240 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc index afc9dc684..5f9b91c92 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc @@ -18,7 +18,7 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; namespace flyteidl { @@ -101,7 +101,7 @@ static void InitDefaultsHPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_ ::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { - &scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base, + &scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base, &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base,}}; void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { @@ -145,7 +145,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhp ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, hpo_job_spec_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, hpo_job_config_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, training_job_task_template_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -195,17 +195,18 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_ "aker.HPOJobConfig.TrainingJobEarlyStoppi" "ngType\"8\n\034HyperparameterTuningStrategy\022\014" "\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobE" - "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\211\001\n\014" - "HPOJobCustom\0228\n\014hpo_job_spec\030\001 \001(\0132\".fly" - "teidl.plugins.sagemaker.HPOJob\022\?\n\032traini" - "ng_job_task_template\030\002 \001(\0132\033.flyteidl.co" - "re.TaskTemplateB5Z3github.com/lyft/flyte" - "idl/gen/pb-go/flyteidl/pluginsb\006proto3" + "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\221\001\n\014" + "HPOJobCustom\022@\n\016hpo_job_config\030\001 \001(\0132(.f" + "lyteidl.plugins.sagemaker.HPOJobConfig\022\?" + "\n\032training_job_task_template\030\002 \001(\0132\033.fly" + "teidl.core.TaskTemplateB5Z3github.com/ly" + "ft/flyteidl/gen/pb-go/flyteidl/pluginsb\006" + "proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, - "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1278, + "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1286, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { @@ -1477,20 +1478,20 @@ ::google::protobuf::Metadata HPOJobConfig::GetMetadata() const { // =================================================================== void HPOJobCustom::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->hpo_job_spec_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJob*>( - ::flyteidl::plugins::sagemaker::HPOJob::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->hpo_job_config_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig*>( + ::flyteidl::plugins::sagemaker::HPOJobConfig::internal_default_instance()); ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->training_job_task_template_ = const_cast< ::flyteidl::core::TaskTemplate*>( ::flyteidl::core::TaskTemplate::internal_default_instance()); } class HPOJobCustom::HasBitSetters { public: - static const ::flyteidl::plugins::sagemaker::HPOJob& hpo_job_spec(const HPOJobCustom* msg); + static const ::flyteidl::plugins::sagemaker::HPOJobConfig& hpo_job_config(const HPOJobCustom* msg); static const ::flyteidl::core::TaskTemplate& training_job_task_template(const HPOJobCustom* msg); }; -const ::flyteidl::plugins::sagemaker::HPOJob& -HPOJobCustom::HasBitSetters::hpo_job_spec(const HPOJobCustom* msg) { - return *msg->hpo_job_spec_; +const ::flyteidl::plugins::sagemaker::HPOJobConfig& +HPOJobCustom::HasBitSetters::hpo_job_config(const HPOJobCustom* msg) { + return *msg->hpo_job_config_; } const ::flyteidl::core::TaskTemplate& HPOJobCustom::HasBitSetters::training_job_task_template(const HPOJobCustom* msg) { @@ -1503,7 +1504,7 @@ void HPOJobCustom::clear_training_job_task_template() { training_job_task_template_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJobCustom::kHpoJobSpecFieldNumber; +const int HPOJobCustom::kHpoJobConfigFieldNumber; const int HPOJobCustom::kTrainingJobTaskTemplateFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 @@ -1516,10 +1517,10 @@ HPOJobCustom::HPOJobCustom(const HPOJobCustom& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_hpo_job_spec()) { - hpo_job_spec_ = new ::flyteidl::plugins::sagemaker::HPOJob(*from.hpo_job_spec_); + if (from.has_hpo_job_config()) { + hpo_job_config_ = new ::flyteidl::plugins::sagemaker::HPOJobConfig(*from.hpo_job_config_); } else { - hpo_job_spec_ = nullptr; + hpo_job_config_ = nullptr; } if (from.has_training_job_task_template()) { training_job_task_template_ = new ::flyteidl::core::TaskTemplate(*from.training_job_task_template_); @@ -1532,9 +1533,9 @@ HPOJobCustom::HPOJobCustom(const HPOJobCustom& from) void HPOJobCustom::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::memset(&hpo_job_spec_, 0, static_cast( + ::memset(&hpo_job_config_, 0, static_cast( reinterpret_cast(&training_job_task_template_) - - reinterpret_cast(&hpo_job_spec_)) + sizeof(training_job_task_template_)); + reinterpret_cast(&hpo_job_config_)) + sizeof(training_job_task_template_)); } HPOJobCustom::~HPOJobCustom() { @@ -1543,7 +1544,7 @@ HPOJobCustom::~HPOJobCustom() { } void HPOJobCustom::SharedDtor() { - if (this != internal_default_instance()) delete hpo_job_spec_; + if (this != internal_default_instance()) delete hpo_job_config_; if (this != internal_default_instance()) delete training_job_task_template_; } @@ -1562,10 +1563,10 @@ void HPOJobCustom::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaNoVirtual() == nullptr && hpo_job_spec_ != nullptr) { - delete hpo_job_spec_; + if (GetArenaNoVirtual() == nullptr && hpo_job_config_ != nullptr) { + delete hpo_job_config_; } - hpo_job_spec_ = nullptr; + hpo_job_config_ = nullptr; if (GetArenaNoVirtual() == nullptr && training_job_task_template_ != nullptr) { delete training_job_task_template_; } @@ -1586,13 +1587,13 @@ const char* HPOJobCustom::_InternalParse(const char* begin, const char* end, voi ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::HPOJob::_InternalParse; - object = msg->mutable_hpo_job_spec(); + parser_till_end = ::flyteidl::plugins::sagemaker::HPOJobConfig::_InternalParse; + object = msg->mutable_hpo_job_config(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( @@ -1642,11 +1643,11 @@ bool HPOJobCustom::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_hpo_job_spec())); + input, mutable_hpo_job_config())); } else { goto handle_unusual; } @@ -1691,10 +1692,10 @@ void HPOJobCustom::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; - if (this->has_hpo_job_spec()) { + // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + if (this->has_hpo_job_config()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::hpo_job_spec(this), output); + 1, HasBitSetters::hpo_job_config(this), output); } // .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -1716,11 +1717,11 @@ ::google::protobuf::uint8* HPOJobCustom::InternalSerializeWithCachedSizesToArray ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; - if (this->has_hpo_job_spec()) { + // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + if (this->has_hpo_job_config()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::hpo_job_spec(this), target); + 1, HasBitSetters::hpo_job_config(this), target); } // .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -1751,11 +1752,11 @@ size_t HPOJobCustom::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; - if (this->has_hpo_job_spec()) { + // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + if (this->has_hpo_job_config()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *hpo_job_spec_); + *hpo_job_config_); } // .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -1792,8 +1793,8 @@ void HPOJobCustom::MergeFrom(const HPOJobCustom& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_hpo_job_spec()) { - mutable_hpo_job_spec()->::flyteidl::plugins::sagemaker::HPOJob::MergeFrom(from.hpo_job_spec()); + if (from.has_hpo_job_config()) { + mutable_hpo_job_config()->::flyteidl::plugins::sagemaker::HPOJobConfig::MergeFrom(from.hpo_job_config()); } if (from.has_training_job_task_template()) { mutable_training_job_task_template()->::flyteidl::core::TaskTemplate::MergeFrom(from.training_job_task_template()); @@ -1825,7 +1826,7 @@ void HPOJobCustom::Swap(HPOJobCustom* other) { void HPOJobCustom::InternalSwap(HPOJobCustom* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(hpo_job_spec_, other->hpo_job_spec_); + swap(hpo_job_config_, other->hpo_job_config_); swap(training_job_task_template_, other->training_job_task_template_); } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h index cfb674f96..e8265d59a 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h @@ -715,14 +715,14 @@ class HPOJobCustom final : // accessors ------------------------------------------------------- - // .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; - bool has_hpo_job_spec() const; - void clear_hpo_job_spec(); - static const int kHpoJobSpecFieldNumber = 1; - const ::flyteidl::plugins::sagemaker::HPOJob& hpo_job_spec() const; - ::flyteidl::plugins::sagemaker::HPOJob* release_hpo_job_spec(); - ::flyteidl::plugins::sagemaker::HPOJob* mutable_hpo_job_spec(); - void set_allocated_hpo_job_spec(::flyteidl::plugins::sagemaker::HPOJob* hpo_job_spec); + // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; + bool has_hpo_job_config() const; + void clear_hpo_job_config(); + static const int kHpoJobConfigFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::HPOJobConfig& hpo_job_config() const; + ::flyteidl::plugins::sagemaker::HPOJobConfig* release_hpo_job_config(); + ::flyteidl::plugins::sagemaker::HPOJobConfig* mutable_hpo_job_config(); + void set_allocated_hpo_job_config(::flyteidl::plugins::sagemaker::HPOJobConfig* hpo_job_config); // .flyteidl.core.TaskTemplate training_job_task_template = 2; bool has_training_job_task_template() const; @@ -738,7 +738,7 @@ class HPOJobCustom final : class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::sagemaker::HPOJob* hpo_job_spec_; + ::flyteidl::plugins::sagemaker::HPOJobConfig* hpo_job_config_; ::flyteidl::core::TaskTemplate* training_job_task_template_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; @@ -1030,55 +1030,55 @@ inline void HPOJobConfig::set_training_job_early_stopping_type(::flyteidl::plugi // HPOJobCustom -// .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; -inline bool HPOJobCustom::has_hpo_job_spec() const { - return this != internal_default_instance() && hpo_job_spec_ != nullptr; +// .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; +inline bool HPOJobCustom::has_hpo_job_config() const { + return this != internal_default_instance() && hpo_job_config_ != nullptr; } -inline void HPOJobCustom::clear_hpo_job_spec() { - if (GetArenaNoVirtual() == nullptr && hpo_job_spec_ != nullptr) { - delete hpo_job_spec_; +inline void HPOJobCustom::clear_hpo_job_config() { + if (GetArenaNoVirtual() == nullptr && hpo_job_config_ != nullptr) { + delete hpo_job_config_; } - hpo_job_spec_ = nullptr; + hpo_job_config_ = nullptr; } -inline const ::flyteidl::plugins::sagemaker::HPOJob& HPOJobCustom::hpo_job_spec() const { - const ::flyteidl::plugins::sagemaker::HPOJob* p = hpo_job_spec_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_HPOJob_default_instance_); +inline const ::flyteidl::plugins::sagemaker::HPOJobConfig& HPOJobCustom::hpo_job_config() const { + const ::flyteidl::plugins::sagemaker::HPOJobConfig* p = hpo_job_config_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_); } -inline ::flyteidl::plugins::sagemaker::HPOJob* HPOJobCustom::release_hpo_job_spec() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) +inline ::flyteidl::plugins::sagemaker::HPOJobConfig* HPOJobCustom::release_hpo_job_config() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) - ::flyteidl::plugins::sagemaker::HPOJob* temp = hpo_job_spec_; - hpo_job_spec_ = nullptr; + ::flyteidl::plugins::sagemaker::HPOJobConfig* temp = hpo_job_config_; + hpo_job_config_ = nullptr; return temp; } -inline ::flyteidl::plugins::sagemaker::HPOJob* HPOJobCustom::mutable_hpo_job_spec() { +inline ::flyteidl::plugins::sagemaker::HPOJobConfig* HPOJobCustom::mutable_hpo_job_config() { - if (hpo_job_spec_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJob>(GetArenaNoVirtual()); - hpo_job_spec_ = p; + if (hpo_job_config_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobConfig>(GetArenaNoVirtual()); + hpo_job_config_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) - return hpo_job_spec_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) + return hpo_job_config_; } -inline void HPOJobCustom::set_allocated_hpo_job_spec(::flyteidl::plugins::sagemaker::HPOJob* hpo_job_spec) { +inline void HPOJobCustom::set_allocated_hpo_job_config(::flyteidl::plugins::sagemaker::HPOJobConfig* hpo_job_config) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete hpo_job_spec_; + delete hpo_job_config_; } - if (hpo_job_spec) { + if (hpo_job_config) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - hpo_job_spec = ::google::protobuf::internal::GetOwnedMessage( - message_arena, hpo_job_spec, submessage_arena); + hpo_job_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hpo_job_config, submessage_arena); } } else { } - hpo_job_spec_ = hpo_job_spec; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec) + hpo_job_config_ = hpo_job_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) } // .flyteidl.core.TaskTemplate training_job_task_template = 2; diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go index 0d93c0772..62478df94 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go @@ -262,7 +262,7 @@ func (m *HPOJobConfig) GetTrainingJobEarlyStoppingType() HPOJobConfig_TrainingJo } type HPOJobCustom struct { - HpoJobSpec *HPOJob `protobuf:"bytes,1,opt,name=hpo_job_spec,json=hpoJobSpec,proto3" json:"hpo_job_spec,omitempty"` + HpoJobConfig *HPOJobConfig `protobuf:"bytes,1,opt,name=hpo_job_config,json=hpoJobConfig,proto3" json:"hpo_job_config,omitempty"` TrainingJobTaskTemplate *core.TaskTemplate `protobuf:"bytes,2,opt,name=training_job_task_template,json=trainingJobTaskTemplate,proto3" json:"training_job_task_template,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -294,9 +294,9 @@ func (m *HPOJobCustom) XXX_DiscardUnknown() { var xxx_messageInfo_HPOJobCustom proto.InternalMessageInfo -func (m *HPOJobCustom) GetHpoJobSpec() *HPOJob { +func (m *HPOJobCustom) GetHpoJobConfig() *HPOJobConfig { if m != nil { - return m.HpoJobSpec + return m.HpoJobConfig } return nil } @@ -323,44 +323,44 @@ func init() { } var fileDescriptor_50903433b4c088ac = []byte{ - // 622 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x51, 0x6f, 0xd3, 0x3c, - 0x14, 0x5d, 0xb6, 0x69, 0xdf, 0xbe, 0xdb, 0x52, 0x2a, 0x0b, 0xb4, 0xd1, 0x0d, 0x31, 0xf2, 0xc2, - 0x24, 0xb4, 0x44, 0xeb, 0x84, 0x04, 0x02, 0x09, 0x75, 0xac, 0xd3, 0x5a, 0x69, 0xed, 0x94, 0x06, - 0x69, 0x8c, 0x07, 0xe3, 0x64, 0x6e, 0x9a, 0x2d, 0x89, 0x2d, 0xc7, 0x45, 0xcb, 0x2b, 0x0f, 0xbc, - 0xf1, 0x57, 0xf8, 0x13, 0xfc, 0x00, 0xfe, 0x12, 0x4a, 0xe2, 0xa6, 0xe9, 0x04, 0x99, 0xe0, 0xf1, - 0xda, 0xf7, 0x9c, 0x9b, 0x73, 0x72, 0x7c, 0x61, 0x77, 0x1c, 0x24, 0x92, 0xfa, 0x97, 0x81, 0xc9, - 0x83, 0xa9, 0xe7, 0x47, 0xb1, 0x19, 0x13, 0x8f, 0x86, 0xe4, 0x9a, 0x0a, 0x73, 0xc2, 0x19, 0xbe, - 0x62, 0x8e, 0xc1, 0x05, 0x93, 0x0c, 0xb5, 0x66, 0x9d, 0x86, 0xea, 0x34, 0x8a, 0xce, 0xd6, 0x7e, - 0x05, 0x0b, 0x27, 0x82, 0x84, 0x54, 0x52, 0x81, 0x05, 0x89, 0x3c, 0x1a, 0xe7, 0x74, 0xad, 0xbd, - 0x0a, 0x88, 0x14, 0xc4, 0x8f, 0xfc, 0xc8, 0x9b, 0x4f, 0x6f, 0x3d, 0x2a, 0xda, 0x5d, 0x26, 0xa8, - 0x29, 0x49, 0x7c, 0xad, 0x98, 0xf4, 0xaf, 0xcb, 0xf0, 0xf8, 0x24, 0xe1, 0x54, 0x14, 0x93, 0xec, - 0x69, 0x8a, 0x1e, 0x3a, 0x57, 0xd4, 0x95, 0xfe, 0x67, 0x8a, 0xbe, 0x68, 0xd0, 0x60, 0xb3, 0x0a, - 0xcb, 0x84, 0xd3, 0x4d, 0x6d, 0x47, 0xdb, 0x6d, 0xb4, 0x3f, 0x1a, 0x7f, 0x16, 0x65, 0x54, 0x72, - 0x56, 0xdf, 0xda, 0x09, 0xa7, 0xd6, 0x3d, 0x56, 0x2e, 0xd1, 0x13, 0xa8, 0x85, 0x54, 0x0a, 0xdf, - 0xc5, 0x11, 0x09, 0xe9, 0xe6, 0xf2, 0x8e, 0xb6, 0xfb, 0xbf, 0x05, 0xf9, 0xd1, 0x80, 0x84, 0x54, - 0x7f, 0x0b, 0x4f, 0xef, 0x24, 0x45, 0x75, 0x58, 0x3f, 0xed, 0x0d, 0x7a, 0xa7, 0xbd, 0x8b, 0x6e, - 0x73, 0x29, 0xab, 0x3a, 0xe7, 0x79, 0xa5, 0xe9, 0x3f, 0x35, 0x58, 0x3b, 0x39, 0x1b, 0xf6, 0x99, - 0x83, 0xfa, 0x50, 0x2f, 0x9b, 0x98, 0xc9, 0xad, 0xb5, 0x9f, 0x55, 0xc9, 0xb5, 0x55, 0x7f, 0x9f, - 0x39, 0x56, 0x4d, 0xce, 0x0b, 0xf4, 0x06, 0xb6, 0x42, 0x72, 0x83, 0xa3, 0x69, 0xe8, 0x50, 0x81, - 0xd9, 0x18, 0x97, 0x99, 0xe3, 0x4c, 0xc8, 0x8a, 0xb5, 0x11, 0x92, 0x9b, 0x41, 0xd6, 0x31, 0x1c, - 0x97, 0x98, 0x62, 0xf4, 0x1a, 0x5a, 0x29, 0x3a, 0x15, 0x15, 0x04, 0x34, 0xb8, 0x05, 0x5e, 0x29, - 0xc0, 0x67, 0xaa, 0xa1, 0x0c, 0xd6, 0x7f, 0xac, 0x42, 0x3d, 0x57, 0xf4, 0x8e, 0x45, 0x63, 0xdf, - 0x43, 0x9f, 0xe0, 0xe1, 0x64, 0xc1, 0x23, 0x15, 0x2a, 0x25, 0xf0, 0x79, 0x95, 0xc0, 0xb3, 0x19, - 0xc6, 0xca, 0x20, 0xd6, 0x83, 0x45, 0xa6, 0xfc, 0x14, 0x45, 0x70, 0x5f, 0x66, 0xbe, 0xe3, 0x58, - 0x0a, 0x22, 0xa9, 0x97, 0x64, 0x0a, 0x1b, 0xed, 0x6e, 0x65, 0x56, 0x4a, 0x1f, 0xf9, 0xdb, 0x68, - 0x8c, 0x14, 0x99, 0xd5, 0x90, 0x0b, 0x35, 0xba, 0x84, 0xa6, 0x9a, 0x57, 0xc4, 0x25, 0x73, 0xa5, - 0xd6, 0x7e, 0xf5, 0xcf, 0xe1, 0xb4, 0x94, 0x84, 0xf9, 0x0b, 0xf8, 0xa6, 0xc1, 0x4e, 0xd9, 0x79, - 0x4c, 0x89, 0x08, 0x12, 0x1c, 0x4b, 0xc6, 0x79, 0x7a, 0x94, 0xbd, 0x89, 0xd5, 0xbf, 0xd4, 0x59, - 0xfa, 0x55, 0xdd, 0x94, 0x6e, 0xa4, 0xd8, 0xb2, 0xf4, 0x6f, 0xcb, 0x8a, 0x5b, 0xfd, 0x25, 0x6c, - 0x57, 0xb9, 0x94, 0x06, 0xfb, 0xb0, 0xf3, 0xa1, 0x3b, 0xea, 0x75, 0x06, 0xcd, 0x25, 0x04, 0xb0, - 0x66, 0x75, 0x06, 0x47, 0xc3, 0xd3, 0xa6, 0xa6, 0xef, 0xc3, 0x76, 0xd5, 0x5c, 0xf4, 0x1f, 0xac, - 0x0c, 0x8f, 0x8f, 0x9b, 0x4b, 0x68, 0x1d, 0x56, 0x3b, 0xef, 0xed, 0x61, 0x53, 0xd3, 0xbf, 0x6b, - 0x45, 0x8a, 0xa6, 0xb1, 0x64, 0x21, 0x3a, 0x82, 0xba, 0xda, 0x6d, 0x38, 0xe6, 0xd4, 0x55, 0xe1, - 0xd1, 0xef, 0x16, 0x6e, 0xc1, 0x84, 0xb3, 0x3e, 0x73, 0x46, 0x9c, 0xba, 0xe8, 0x1c, 0x5a, 0x0b, - 0x96, 0xa6, 0x3b, 0x09, 0x4b, 0x1a, 0xf2, 0x80, 0xc8, 0xfc, 0x7d, 0xd7, 0xda, 0x5b, 0x73, 0xce, - 0x74, 0x6f, 0x19, 0x36, 0x89, 0xaf, 0x6d, 0xd5, 0x62, 0x6d, 0x94, 0x2c, 0x2a, 0x5f, 0x1c, 0xbe, - 0xb8, 0x38, 0xf0, 0x7c, 0x39, 0x99, 0x3a, 0x86, 0xcb, 0x42, 0x33, 0x48, 0xc6, 0xd2, 0x2c, 0xd6, - 0x9f, 0x47, 0x23, 0x93, 0x3b, 0x7b, 0x1e, 0x33, 0x6f, 0x2f, 0x50, 0x67, 0x2d, 0xdb, 0x87, 0x07, - 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x44, 0x86, 0xfb, 0xf9, 0xd4, 0x05, 0x00, 0x00, + // 617 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x5d, 0x6f, 0xd3, 0x30, + 0x14, 0x5d, 0xb6, 0x69, 0x8c, 0xdb, 0x52, 0x2a, 0x0b, 0xb4, 0xd1, 0x0d, 0x31, 0xf2, 0x42, 0x25, + 0xb4, 0x44, 0xeb, 0x84, 0x04, 0x02, 0x09, 0x75, 0xd0, 0x69, 0x9d, 0xb4, 0x76, 0xca, 0x82, 0x34, + 0xc6, 0x83, 0x71, 0x3a, 0x37, 0xcd, 0x96, 0xc4, 0x96, 0xe3, 0xa2, 0xe5, 0x95, 0x07, 0xde, 0xf8, + 0x3f, 0xbc, 0xf3, 0x03, 0xf8, 0x4b, 0x28, 0x8e, 0x97, 0xa6, 0x13, 0x84, 0x8f, 0xc7, 0x6b, 0xdf, + 0x73, 0x6e, 0xce, 0xc9, 0xf1, 0x85, 0xf6, 0x38, 0x4c, 0x25, 0x0d, 0xce, 0x43, 0x9b, 0x87, 0x53, + 0x3f, 0x88, 0x13, 0x3b, 0x21, 0x3e, 0x8d, 0xc8, 0x25, 0x15, 0xf6, 0x84, 0x33, 0x7c, 0xc1, 0x3c, + 0x8b, 0x0b, 0x26, 0x19, 0x6a, 0x5d, 0x77, 0x5a, 0xba, 0xd3, 0x2a, 0x3a, 0x5b, 0x3b, 0x15, 0x2c, + 0x9c, 0x08, 0x12, 0x51, 0x49, 0x05, 0x16, 0x24, 0xf6, 0x69, 0x92, 0xd3, 0xb5, 0xb6, 0x2b, 0x20, + 0x52, 0x90, 0x20, 0x0e, 0x62, 0x7f, 0x36, 0xbd, 0xf5, 0xa0, 0x68, 0x1f, 0x31, 0x41, 0x6d, 0x49, + 0x92, 0x4b, 0xcd, 0x64, 0x7e, 0x59, 0x84, 0x87, 0x07, 0x29, 0xa7, 0xa2, 0x98, 0xe4, 0x4e, 0x33, + 0xf4, 0xd0, 0xbb, 0xa0, 0x23, 0x19, 0x7c, 0xa2, 0xe8, 0xb3, 0x01, 0x0d, 0x76, 0x5d, 0x61, 0x99, + 0x72, 0xba, 0x6e, 0x6c, 0x19, 0xed, 0x46, 0xe7, 0x83, 0xf5, 0x7b, 0x51, 0x56, 0x25, 0x67, 0xf5, + 0xad, 0x9b, 0x72, 0xea, 0xdc, 0x61, 0xe5, 0x12, 0x3d, 0x82, 0x5a, 0x44, 0xa5, 0x08, 0x46, 0x38, + 0x26, 0x11, 0x5d, 0x5f, 0xdc, 0x32, 0xda, 0xb7, 0x1d, 0xc8, 0x8f, 0x06, 0x24, 0xa2, 0xe6, 0x6b, + 0x78, 0xfc, 0x47, 0x52, 0x54, 0x87, 0xd5, 0xa3, 0xfe, 0xa0, 0x7f, 0xd4, 0x3f, 0xeb, 0x35, 0x17, + 0x54, 0xd5, 0x3d, 0xcd, 0x2b, 0xc3, 0xfc, 0x61, 0xc0, 0xca, 0xc1, 0xf1, 0xf0, 0x90, 0x79, 0xe8, + 0x10, 0xea, 0x65, 0x13, 0x95, 0xdc, 0x5a, 0xe7, 0x49, 0x95, 0x5c, 0x57, 0xf7, 0x1f, 0x32, 0xcf, + 0xa9, 0xc9, 0x59, 0x81, 0x5e, 0xc1, 0x46, 0x44, 0xae, 0x70, 0x3c, 0x8d, 0x3c, 0x2a, 0x30, 0x1b, + 0xe3, 0x32, 0x73, 0xa2, 0x84, 0x2c, 0x39, 0x6b, 0x11, 0xb9, 0x1a, 0xa8, 0x8e, 0xe1, 0xb8, 0xc4, + 0x94, 0xa0, 0x97, 0xd0, 0xca, 0xd0, 0x99, 0xa8, 0x30, 0xa4, 0xe1, 0x0d, 0xf0, 0x52, 0x01, 0x3e, + 0xd6, 0x0d, 0x65, 0xb0, 0xf9, 0x7d, 0x19, 0xea, 0xb9, 0xa2, 0x37, 0x2c, 0x1e, 0x07, 0x3e, 0xfa, + 0x08, 0xf7, 0x27, 0x73, 0x1e, 0xe9, 0x50, 0x69, 0x81, 0x4f, 0xab, 0x04, 0x1e, 0x5f, 0x63, 0x1c, + 0x05, 0x71, 0xee, 0xcd, 0x33, 0xe5, 0xa7, 0x28, 0x86, 0xbb, 0x52, 0xf9, 0x8e, 0x13, 0x29, 0x88, + 0xa4, 0x7e, 0xaa, 0x14, 0x36, 0x3a, 0xbd, 0xca, 0xac, 0x94, 0x3e, 0xf2, 0x97, 0xd1, 0x38, 0xd1, + 0x64, 0x4e, 0x43, 0xce, 0xd5, 0xe8, 0x1c, 0x9a, 0x7a, 0x5e, 0x11, 0x17, 0xe5, 0x4a, 0xad, 0xf3, + 0xe2, 0xbf, 0xc3, 0xe9, 0x68, 0x09, 0xb3, 0x17, 0xf0, 0xd5, 0x80, 0xad, 0xb2, 0xf3, 0x98, 0x12, + 0x11, 0xa6, 0x38, 0x91, 0x8c, 0xf3, 0xec, 0x48, 0xbd, 0x89, 0xe5, 0x7f, 0xd4, 0x59, 0xfa, 0x55, + 0xbd, 0x8c, 0xee, 0x44, 0xb3, 0xa9, 0xf4, 0x6f, 0xca, 0x8a, 0x5b, 0xf3, 0x39, 0x6c, 0x56, 0xb9, + 0x94, 0x05, 0x7b, 0xaf, 0xfb, 0xbe, 0x77, 0xd2, 0xef, 0x0e, 0x9a, 0x0b, 0x08, 0x60, 0xc5, 0xe9, + 0x0e, 0xde, 0x0e, 0x8f, 0x9a, 0x86, 0xb9, 0x03, 0x9b, 0x55, 0x73, 0xd1, 0x2d, 0x58, 0x1a, 0xee, + 0xef, 0x37, 0x17, 0xd0, 0x2a, 0x2c, 0x77, 0xdf, 0xb9, 0xc3, 0xa6, 0x61, 0x7e, 0x33, 0x8a, 0x14, + 0x4d, 0x13, 0xc9, 0x22, 0x34, 0x80, 0x86, 0xde, 0x6d, 0x78, 0xa4, 0xa4, 0xe8, 0xf8, 0xb4, 0xff, + 0x56, 0xba, 0x53, 0x9f, 0x70, 0x36, 0x4b, 0xe5, 0x29, 0xb4, 0xe6, 0xcc, 0xcd, 0xb6, 0x13, 0x96, + 0x34, 0xe2, 0x21, 0x91, 0xf9, 0x4b, 0xaf, 0x75, 0x36, 0x66, 0xdc, 0xd9, 0x06, 0xb3, 0x5c, 0x92, + 0x5c, 0xba, 0xba, 0xc5, 0x59, 0x2b, 0x99, 0x55, 0xbe, 0xd8, 0x7b, 0x76, 0xb6, 0xeb, 0x07, 0x72, + 0x32, 0xf5, 0xac, 0x11, 0x8b, 0xec, 0x30, 0x1d, 0x4b, 0xbb, 0x58, 0x84, 0x3e, 0x8d, 0x6d, 0xee, + 0x6d, 0xfb, 0xcc, 0xbe, 0xb9, 0x4a, 0xbd, 0x15, 0xb5, 0x19, 0x77, 0x7f, 0x06, 0x00, 0x00, 0xff, + 0xff, 0x02, 0x11, 0xf9, 0xb6, 0xde, 0x05, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go index fa7e4eb6e..1d4cf377c 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go @@ -283,10 +283,10 @@ func (m *HPOJobCustom) Validate() error { return nil } - if v, ok := interface{}(m.GetHpoJobSpec()).(interface{ Validate() error }); ok { + if v, ok := interface{}(m.GetHpoJobConfig()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HPOJobCustomValidationError{ - field: "HpoJobSpec", + field: "HpoJobConfig", reason: "embedded message failed validation", cause: err, } diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java index 55e00e1d5..fbe6dbf1b 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -2736,17 +2736,17 @@ public interface HPOJobCustomOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - boolean hasHpoJobSpec(); + boolean hasHpoJobConfig(); /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobSpec(); + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getHpoJobConfig(); /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobSpecOrBuilder(); + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder getHpoJobConfigOrBuilder(); /** * .flyteidl.core.TaskTemplate training_job_task_template = 2; @@ -2801,14 +2801,14 @@ private HPOJobCustom( done = true; break; case 10: { - flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder subBuilder = null; - if (hpoJobSpec_ != null) { - subBuilder = hpoJobSpec_.toBuilder(); + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder subBuilder = null; + if (hpoJobConfig_ != null) { + subBuilder = hpoJobConfig_.toBuilder(); } - hpoJobSpec_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HPOJob.parser(), extensionRegistry); + hpoJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(hpoJobSpec_); - hpoJobSpec_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(hpoJobConfig_); + hpoJobConfig_ = subBuilder.buildPartial(); } break; @@ -2858,25 +2858,25 @@ private HPOJobCustom( flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.Builder.class); } - public static final int HPO_JOB_SPEC_FIELD_NUMBER = 1; - private flyteidl.plugins.sagemaker.HpoJob.HPOJob hpoJobSpec_; + public static final int HPO_JOB_CONFIG_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig hpoJobConfig_; /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - public boolean hasHpoJobSpec() { - return hpoJobSpec_ != null; + public boolean hasHpoJobConfig() { + return hpoJobConfig_ != null; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobSpec() { - return hpoJobSpec_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobSpec_; + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getHpoJobConfig() { + return hpoJobConfig_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance() : hpoJobConfig_; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobSpecOrBuilder() { - return getHpoJobSpec(); + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder getHpoJobConfigOrBuilder() { + return getHpoJobConfig(); } public static final int TRAINING_JOB_TASK_TEMPLATE_FIELD_NUMBER = 2; @@ -2914,8 +2914,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (hpoJobSpec_ != null) { - output.writeMessage(1, getHpoJobSpec()); + if (hpoJobConfig_ != null) { + output.writeMessage(1, getHpoJobConfig()); } if (trainingJobTaskTemplate_ != null) { output.writeMessage(2, getTrainingJobTaskTemplate()); @@ -2929,9 +2929,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (hpoJobSpec_ != null) { + if (hpoJobConfig_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHpoJobSpec()); + .computeMessageSize(1, getHpoJobConfig()); } if (trainingJobTaskTemplate_ != null) { size += com.google.protobuf.CodedOutputStream @@ -2952,10 +2952,10 @@ public boolean equals(final java.lang.Object obj) { } flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom) obj; - if (hasHpoJobSpec() != other.hasHpoJobSpec()) return false; - if (hasHpoJobSpec()) { - if (!getHpoJobSpec() - .equals(other.getHpoJobSpec())) return false; + if (hasHpoJobConfig() != other.hasHpoJobConfig()) return false; + if (hasHpoJobConfig()) { + if (!getHpoJobConfig() + .equals(other.getHpoJobConfig())) return false; } if (hasTrainingJobTaskTemplate() != other.hasTrainingJobTaskTemplate()) return false; if (hasTrainingJobTaskTemplate()) { @@ -2973,9 +2973,9 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasHpoJobSpec()) { - hash = (37 * hash) + HPO_JOB_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getHpoJobSpec().hashCode(); + if (hasHpoJobConfig()) { + hash = (37 * hash) + HPO_JOB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getHpoJobConfig().hashCode(); } if (hasTrainingJobTaskTemplate()) { hash = (37 * hash) + TRAINING_JOB_TASK_TEMPLATE_FIELD_NUMBER; @@ -3114,11 +3114,11 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (hpoJobSpecBuilder_ == null) { - hpoJobSpec_ = null; + if (hpoJobConfigBuilder_ == null) { + hpoJobConfig_ = null; } else { - hpoJobSpec_ = null; - hpoJobSpecBuilder_ = null; + hpoJobConfig_ = null; + hpoJobConfigBuilder_ = null; } if (trainingJobTaskTemplateBuilder_ == null) { trainingJobTaskTemplate_ = null; @@ -3152,10 +3152,10 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom build() { @java.lang.Override public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom buildPartial() { flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom(this); - if (hpoJobSpecBuilder_ == null) { - result.hpoJobSpec_ = hpoJobSpec_; + if (hpoJobConfigBuilder_ == null) { + result.hpoJobConfig_ = hpoJobConfig_; } else { - result.hpoJobSpec_ = hpoJobSpecBuilder_.build(); + result.hpoJobConfig_ = hpoJobConfigBuilder_.build(); } if (trainingJobTaskTemplateBuilder_ == null) { result.trainingJobTaskTemplate_ = trainingJobTaskTemplate_; @@ -3210,8 +3210,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom other) { if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.getDefaultInstance()) return this; - if (other.hasHpoJobSpec()) { - mergeHpoJobSpec(other.getHpoJobSpec()); + if (other.hasHpoJobConfig()) { + mergeHpoJobConfig(other.getHpoJobConfig()); } if (other.hasTrainingJobTaskTemplate()) { mergeTrainingJobTaskTemplate(other.getTrainingJobTaskTemplate()); @@ -3245,121 +3245,121 @@ public Builder mergeFrom( return this; } - private flyteidl.plugins.sagemaker.HpoJob.HPOJob hpoJobSpec_; + private flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig hpoJobConfig_; private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder> hpoJobSpecBuilder_; + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder> hpoJobConfigBuilder_; /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - public boolean hasHpoJobSpec() { - return hpoJobSpecBuilder_ != null || hpoJobSpec_ != null; + public boolean hasHpoJobConfig() { + return hpoJobConfigBuilder_ != null || hpoJobConfig_ != null; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJob getHpoJobSpec() { - if (hpoJobSpecBuilder_ == null) { - return hpoJobSpec_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobSpec_; + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getHpoJobConfig() { + if (hpoJobConfigBuilder_ == null) { + return hpoJobConfig_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance() : hpoJobConfig_; } else { - return hpoJobSpecBuilder_.getMessage(); + return hpoJobConfigBuilder_.getMessage(); } } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - public Builder setHpoJobSpec(flyteidl.plugins.sagemaker.HpoJob.HPOJob value) { - if (hpoJobSpecBuilder_ == null) { + public Builder setHpoJobConfig(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig value) { + if (hpoJobConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hpoJobSpec_ = value; + hpoJobConfig_ = value; onChanged(); } else { - hpoJobSpecBuilder_.setMessage(value); + hpoJobConfigBuilder_.setMessage(value); } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - public Builder setHpoJobSpec( - flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder builderForValue) { - if (hpoJobSpecBuilder_ == null) { - hpoJobSpec_ = builderForValue.build(); + public Builder setHpoJobConfig( + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder builderForValue) { + if (hpoJobConfigBuilder_ == null) { + hpoJobConfig_ = builderForValue.build(); onChanged(); } else { - hpoJobSpecBuilder_.setMessage(builderForValue.build()); + hpoJobConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - public Builder mergeHpoJobSpec(flyteidl.plugins.sagemaker.HpoJob.HPOJob value) { - if (hpoJobSpecBuilder_ == null) { - if (hpoJobSpec_ != null) { - hpoJobSpec_ = - flyteidl.plugins.sagemaker.HpoJob.HPOJob.newBuilder(hpoJobSpec_).mergeFrom(value).buildPartial(); + public Builder mergeHpoJobConfig(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig value) { + if (hpoJobConfigBuilder_ == null) { + if (hpoJobConfig_ != null) { + hpoJobConfig_ = + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.newBuilder(hpoJobConfig_).mergeFrom(value).buildPartial(); } else { - hpoJobSpec_ = value; + hpoJobConfig_ = value; } onChanged(); } else { - hpoJobSpecBuilder_.mergeFrom(value); + hpoJobConfigBuilder_.mergeFrom(value); } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - public Builder clearHpoJobSpec() { - if (hpoJobSpecBuilder_ == null) { - hpoJobSpec_ = null; + public Builder clearHpoJobConfig() { + if (hpoJobConfigBuilder_ == null) { + hpoJobConfig_ = null; onChanged(); } else { - hpoJobSpec_ = null; - hpoJobSpecBuilder_ = null; + hpoJobConfig_ = null; + hpoJobConfigBuilder_ = null; } return this; } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder getHpoJobSpecBuilder() { + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder getHpoJobConfigBuilder() { onChanged(); - return getHpoJobSpecFieldBuilder().getBuilder(); + return getHpoJobConfigFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder getHpoJobSpecOrBuilder() { - if (hpoJobSpecBuilder_ != null) { - return hpoJobSpecBuilder_.getMessageOrBuilder(); + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder getHpoJobConfigOrBuilder() { + if (hpoJobConfigBuilder_ != null) { + return hpoJobConfigBuilder_.getMessageOrBuilder(); } else { - return hpoJobSpec_ == null ? - flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance() : hpoJobSpec_; + return hpoJobConfig_ == null ? + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance() : hpoJobConfig_; } } /** - * .flyteidl.plugins.sagemaker.HPOJob hpo_job_spec = 1; + * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder> - getHpoJobSpecFieldBuilder() { - if (hpoJobSpecBuilder_ == null) { - hpoJobSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HPOJob, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder>( - getHpoJobSpec(), + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder> + getHpoJobConfigFieldBuilder() { + if (hpoJobConfigBuilder_ == null) { + hpoJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder>( + getHpoJobConfig(), getParentForChildren(), isClean()); - hpoJobSpec_ = null; + hpoJobConfig_ = null; } - return hpoJobSpecBuilder_; + return hpoJobConfigBuilder_; } private flyteidl.core.Tasks.TaskTemplate trainingJobTaskTemplate_; @@ -3586,12 +3586,13 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom getDefaultInstanceForType( "aker.HPOJobConfig.TrainingJobEarlyStoppi" + "ngType\"8\n\034HyperparameterTuningStrategy\022\014" + "\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobE" + - "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\211\001\n\014" + - "HPOJobCustom\0228\n\014hpo_job_spec\030\001 \001(\0132\".fly" + - "teidl.plugins.sagemaker.HPOJob\022?\n\032traini" + - "ng_job_task_template\030\002 \001(\0132\033.flyteidl.co" + - "re.TaskTemplateB5Z3github.com/lyft/flyte" + - "idl/gen/pb-go/flyteidl/pluginsb\006proto3" + "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\221\001\n\014" + + "HPOJobCustom\022@\n\016hpo_job_config\030\001 \001(\0132(.f" + + "lyteidl.plugins.sagemaker.HPOJobConfig\022?" + + "\n\032training_job_task_template\030\002 \001(\0132\033.fly" + + "teidl.core.TaskTemplateB5Z3github.com/ly" + + "ft/flyteidl/gen/pb-go/flyteidl/pluginsb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3631,7 +3632,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor, - new java.lang.String[] { "HpoJobSpec", "TrainingJobTaskTemplate", }); + new java.lang.String[] { "HpoJobConfig", "TrainingJobTaskTemplate", }); flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); flyteidl.core.Tasks.getDescriptor(); diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst index 4c2f46edd..ad8cb186c 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst @@ -168,14 +168,14 @@ flyteidl.plugins.sagemaker.HPOJobCustom .. code-block:: json { - "hpo_job_spec": "{...}", + "hpo_job_config": "{...}", "training_job_task_template": "{...}" } -.. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec: +.. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config: -hpo_job_spec - (:ref:`flyteidl.plugins.sagemaker.HPOJob `) +hpo_job_config + (:ref:`flyteidl.plugins.sagemaker.HPOJobConfig `) .. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template: diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py index a996b2dd6..16ebdc2fa 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py @@ -23,7 +23,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\"\x89\x01\n\x0cHPOJobCustom\x12\x38\n\x0chpo_job_spec\x18\x01 \x01(\x0b\x32\".flyteidl.plugins.sagemaker.HPOJob\x12?\n\x1atraining_job_task_template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\"\x91\x01\n\x0cHPOJobCustom\x12@\n\x0ehpo_job_config\x18\x01 \x01(\x0b\x32(.flyteidl.plugins.sagemaker.HPOJobConfig\x12?\n\x1atraining_job_task_template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,flyteidl_dot_core_dot_tasks__pb2.DESCRIPTOR,]) @@ -242,7 +242,7 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='hpo_job_spec', full_name='flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_spec', index=0, + name='hpo_job_config', full_name='flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -268,7 +268,7 @@ oneofs=[ ], serialized_start=1078, - serialized_end=1215, + serialized_end=1223, ) _HYPERPARAMETERTUNINGOBJECTIVE.fields_by_name['objective_type'].enum_type = _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE @@ -280,7 +280,7 @@ _HPOJOBCONFIG.fields_by_name['training_job_early_stopping_type'].enum_type = _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY.containing_type = _HPOJOBCONFIG _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE.containing_type = _HPOJOBCONFIG -_HPOJOBCUSTOM.fields_by_name['hpo_job_spec'].message_type = _HPOJOB +_HPOJOBCUSTOM.fields_by_name['hpo_job_config'].message_type = _HPOJOBCONFIG _HPOJOBCUSTOM.fields_by_name['training_job_task_template'].message_type = flyteidl_dot_core_dot_tasks__pb2._TASKTEMPLATE DESCRIPTOR.message_types_by_name['HyperparameterTuningObjective'] = _HYPERPARAMETERTUNINGOBJECTIVE DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB diff --git a/package.json b/package.json index 940009701..cc75f2f23 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.18.0b3", + "version": "0.18.0b2", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/protos/flyteidl/plugins/sagemaker/hpo_job.proto b/protos/flyteidl/plugins/sagemaker/hpo_job.proto index 1035206bb..bffa49656 100644 --- a/protos/flyteidl/plugins/sagemaker/hpo_job.proto +++ b/protos/flyteidl/plugins/sagemaker/hpo_job.proto @@ -43,6 +43,6 @@ message HPOJobConfig { } message HPOJobCustom { - HPOJob hpo_job_spec = 1; + HPOJobConfig hpo_job_config = 1; core.TaskTemplate training_job_task_template = 2; } diff --git a/setup.py b/setup.py index 3f46e986e..92a7a97fa 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.18.0b3' +__version__ = '0.18.0b2' setup( name='flyteidl', From 75e87340e25f2c9eb68c2ee4670c99033202b010 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Thu, 23 Jul 2020 15:50:11 -0700 Subject: [PATCH 25/64] Revert "make generate" This reverts commit ab260a412df81b3849155217c0f4622651379b93. --- .../flyteidl/plugins/sagemaker/hpo_job.pb.cc | 460 +--------- .../flyteidl/plugins/sagemaker/hpo_job.pb.h | 234 +---- .../flyteidl/plugins/sagemaker/hpo_job.pb.go | 124 +-- .../plugins/sagemaker/hpo_job.pb.validate.go | 85 -- .../flyteidl/plugins/sagemaker/Hpojob.java | 866 +----------------- .../plugins/sagemaker/hpo_job.proto.rst | 39 +- .../flyteidl/plugins/sagemaker/hpo_job_pb2.py | 77 +- 7 files changed, 109 insertions(+), 1776 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc index 5f9b91c92..8bfb8e986 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc @@ -16,9 +16,7 @@ // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; namespace flyteidl { @@ -36,10 +34,6 @@ class HPOJobConfigDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _HPOJobConfig_default_instance_; -class HPOJobCustomDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HPOJobCustom_default_instance_; } // namespace sagemaker } // namespace plugins } // namespace flyteidl @@ -88,30 +82,13 @@ ::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobConfig_flyteidl_2fplugin &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base,}}; -static void InitDefaultsHPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::HPOJobCustom(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::HPOJobCustom::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { - &scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base, - &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base,}}; - void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[4]; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[3]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[3]; constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = nullptr; @@ -140,32 +117,23 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhp PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, tuning_strategy_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, tuning_objective_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, training_job_early_stopping_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, hpo_job_config_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobCustom, training_job_task_template_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective)}, { 7, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJob)}, { 15, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJobConfig)}, - { 24, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJobCustom)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJob_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_), }; ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, "flyteidl/plugins/sagemaker/hpo_job.proto", schemas, file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 4, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, }; const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[] = @@ -173,50 +141,44 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_ "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" "/plugins/sagemaker/parameter_ranges.prot" "o\032-flyteidl/plugins/sagemaker/training_j" - "ob.proto\032\031flyteidl/core/tasks.proto\"\352\001\n\035" - "HyperparameterTuningObjective\022s\n\016objecti" - "ve_type\030\001 \001(\0162[.flyteidl.plugins.sagemak" - "er.HyperparameterTuningObjective.Hyperpa" - "rameterTuningObjectiveType\022\023\n\013metric_nam" - "e\030\002 \001(\t\"\?\n!HyperparameterTuningObjective" - "Type\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\220\001\n\006HPO" - "Job\022=\n\014training_job\030\001 \001(\0132\'.flyteidl.plu" - "gins.sagemaker.TrainingJob\022#\n\033max_number" - "_of_training_jobs\030\002 \001(\003\022\"\n\032max_parallel_" - "training_jobs\030\003 \001(\003\"\355\003\n\014HPOJobConfig\022J\n\025" - "hyperparameter_ranges\030\001 \001(\0132+.flyteidl.p" - "lugins.sagemaker.ParameterRanges\022^\n\017tuni" - "ng_strategy\030\002 \001(\0162E.flyteidl.plugins.sag" - "emaker.HPOJobConfig.HyperparameterTuning" - "Strategy\022S\n\020tuning_objective\030\003 \001(\01329.fly" - "teidl.plugins.sagemaker.HyperparameterTu" - "ningObjective\022o\n training_job_early_stop" - "ping_type\030\004 \001(\0162E.flyteidl.plugins.sagem" - "aker.HPOJobConfig.TrainingJobEarlyStoppi" - "ngType\"8\n\034HyperparameterTuningStrategy\022\014" - "\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobE" - "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\221\001\n\014" - "HPOJobCustom\022@\n\016hpo_job_config\030\001 \001(\0132(.f" - "lyteidl.plugins.sagemaker.HPOJobConfig\022\?" - "\n\032training_job_task_template\030\002 \001(\0132\033.fly" - "teidl.core.TaskTemplateB5Z3github.com/ly" - "ft/flyteidl/gen/pb-go/flyteidl/pluginsb\006" - "proto3" + "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" + "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" + "ugins.sagemaker.HyperparameterTuningObje" + "ctive.HyperparameterTuningObjectiveType\022" + "\023\n\013metric_name\030\002 \001(\t\"\?\n!HyperparameterTu" + "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" + "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" + ".flyteidl.plugins.sagemaker.TrainingJob\022" + "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" + "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" + "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" + "2+.flyteidl.plugins.sagemaker.ParameterR" + "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" + "l.plugins.sagemaker.HPOJobConfig.Hyperpa" + "rameterTuningStrategy\022S\n\020tuning_objectiv" + "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" + "erparameterTuningObjective\022o\n training_j" + "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." + "plugins.sagemaker.HPOJobConfig.TrainingJ" + "obEarlyStoppingType\"8\n\034HyperparameterTun" + "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" + "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" + "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" + "/pb-go/flyteidl/pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, - "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1286, + "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1111, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[3] = + static constexpr ::google::protobuf::internal::InitFunc deps[2] = { ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, - ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, deps, 3); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, deps, 2); } // Force running AddDescriptors() at dynamic initialization time. @@ -1475,367 +1437,6 @@ ::google::protobuf::Metadata HPOJobConfig::GetMetadata() const { } -// =================================================================== - -void HPOJobCustom::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->hpo_job_config_ = const_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig*>( - ::flyteidl::plugins::sagemaker::HPOJobConfig::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_HPOJobCustom_default_instance_._instance.get_mutable()->training_job_task_template_ = const_cast< ::flyteidl::core::TaskTemplate*>( - ::flyteidl::core::TaskTemplate::internal_default_instance()); -} -class HPOJobCustom::HasBitSetters { - public: - static const ::flyteidl::plugins::sagemaker::HPOJobConfig& hpo_job_config(const HPOJobCustom* msg); - static const ::flyteidl::core::TaskTemplate& training_job_task_template(const HPOJobCustom* msg); -}; - -const ::flyteidl::plugins::sagemaker::HPOJobConfig& -HPOJobCustom::HasBitSetters::hpo_job_config(const HPOJobCustom* msg) { - return *msg->hpo_job_config_; -} -const ::flyteidl::core::TaskTemplate& -HPOJobCustom::HasBitSetters::training_job_task_template(const HPOJobCustom* msg) { - return *msg->training_job_task_template_; -} -void HPOJobCustom::clear_training_job_task_template() { - if (GetArenaNoVirtual() == nullptr && training_job_task_template_ != nullptr) { - delete training_job_task_template_; - } - training_job_task_template_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJobCustom::kHpoJobConfigFieldNumber; -const int HPOJobCustom::kTrainingJobTaskTemplateFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HPOJobCustom::HPOJobCustom() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJobCustom) -} -HPOJobCustom::HPOJobCustom(const HPOJobCustom& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_hpo_job_config()) { - hpo_job_config_ = new ::flyteidl::plugins::sagemaker::HPOJobConfig(*from.hpo_job_config_); - } else { - hpo_job_config_ = nullptr; - } - if (from.has_training_job_task_template()) { - training_job_task_template_ = new ::flyteidl::core::TaskTemplate(*from.training_job_task_template_); - } else { - training_job_task_template_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJobCustom) -} - -void HPOJobCustom::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::memset(&hpo_job_config_, 0, static_cast( - reinterpret_cast(&training_job_task_template_) - - reinterpret_cast(&hpo_job_config_)) + sizeof(training_job_task_template_)); -} - -HPOJobCustom::~HPOJobCustom() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJobCustom) - SharedDtor(); -} - -void HPOJobCustom::SharedDtor() { - if (this != internal_default_instance()) delete hpo_job_config_; - if (this != internal_default_instance()) delete training_job_task_template_; -} - -void HPOJobCustom::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const HPOJobCustom& HPOJobCustom::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobCustom_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - return *internal_default_instance(); -} - - -void HPOJobCustom::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJobCustom) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && hpo_job_config_ != nullptr) { - delete hpo_job_config_; - } - hpo_job_config_ = nullptr; - if (GetArenaNoVirtual() == nullptr && training_job_task_template_ != nullptr) { - delete training_job_task_template_; - } - training_job_task_template_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HPOJobCustom::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::HPOJobConfig::_InternalParse; - object = msg->mutable_hpo_job_config(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.core.TaskTemplate training_job_task_template = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TaskTemplate::_InternalParse; - object = msg->mutable_training_job_task_template(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HPOJobCustom::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJobCustom) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_hpo_job_config())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskTemplate training_job_task_template = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_training_job_task_template())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJobCustom) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJobCustom) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void HPOJobCustom::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJobCustom) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - if (this->has_hpo_job_config()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::hpo_job_config(this), output); - } - - // .flyteidl.core.TaskTemplate training_job_task_template = 2; - if (this->has_training_job_task_template()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::training_job_task_template(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJobCustom) -} - -::google::protobuf::uint8* HPOJobCustom::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJobCustom) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - if (this->has_hpo_job_config()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::hpo_job_config(this), target); - } - - // .flyteidl.core.TaskTemplate training_job_task_template = 2; - if (this->has_training_job_task_template()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::training_job_task_template(this), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJobCustom) - return target; -} - -size_t HPOJobCustom::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJobCustom) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - if (this->has_hpo_job_config()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *hpo_job_config_); - } - - // .flyteidl.core.TaskTemplate training_job_task_template = 2; - if (this->has_training_job_task_template()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *training_job_task_template_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void HPOJobCustom::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJobCustom) - GOOGLE_DCHECK_NE(&from, this); - const HPOJobCustom* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJobCustom) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJobCustom) - MergeFrom(*source); - } -} - -void HPOJobCustom::MergeFrom(const HPOJobCustom& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJobCustom) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_hpo_job_config()) { - mutable_hpo_job_config()->::flyteidl::plugins::sagemaker::HPOJobConfig::MergeFrom(from.hpo_job_config()); - } - if (from.has_training_job_task_template()) { - mutable_training_job_task_template()->::flyteidl::core::TaskTemplate::MergeFrom(from.training_job_task_template()); - } -} - -void HPOJobCustom::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJobCustom) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HPOJobCustom::CopyFrom(const HPOJobCustom& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJobCustom) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HPOJobCustom::IsInitialized() const { - return true; -} - -void HPOJobCustom::Swap(HPOJobCustom* other) { - if (other == this) return; - InternalSwap(other); -} -void HPOJobCustom::InternalSwap(HPOJobCustom* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(hpo_job_config_, other->hpo_job_config_); - swap(training_job_task_template_, other->training_job_task_template_); -} - -::google::protobuf::Metadata HPOJobCustom::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace sagemaker } // namespace plugins @@ -1851,9 +1452,6 @@ template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJob* Arena::Crea template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJobConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJobConfig >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJobConfig >(arena); } -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJobCustom* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJobCustom >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJobCustom >(arena); -} } // namespace protobuf } // namespace google diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h index e8265d59a..f578aa97f 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h @@ -34,7 +34,6 @@ #include #include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" #include "flyteidl/plugins/sagemaker/training_job.pb.h" -#include "flyteidl/core/tasks.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto @@ -45,7 +44,7 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[4] + static const ::google::protobuf::internal::ParseTable schema[3] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; @@ -61,9 +60,6 @@ extern HPOJobDefaultTypeInternal _HPOJob_default_instance_; class HPOJobConfig; class HPOJobConfigDefaultTypeInternal; extern HPOJobConfigDefaultTypeInternal _HPOJobConfig_default_instance_; -class HPOJobCustom; -class HPOJobCustomDefaultTypeInternal; -extern HPOJobCustomDefaultTypeInternal _HPOJobCustom_default_instance_; class HyperparameterTuningObjective; class HyperparameterTuningObjectiveDefaultTypeInternal; extern HyperparameterTuningObjectiveDefaultTypeInternal _HyperparameterTuningObjective_default_instance_; @@ -74,7 +70,6 @@ namespace google { namespace protobuf { template<> ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJob>(Arena*); template<> ::flyteidl::plugins::sagemaker::HPOJobConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobConfig>(Arena*); -template<> ::flyteidl::plugins::sagemaker::HPOJobCustom* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobCustom>(Arena*); template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(Arena*); } // namespace protobuf } // namespace google @@ -618,131 +613,6 @@ class HPOJobConfig final : mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; }; -// ------------------------------------------------------------------- - -class HPOJobCustom final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJobCustom) */ { - public: - HPOJobCustom(); - virtual ~HPOJobCustom(); - - HPOJobCustom(const HPOJobCustom& from); - - inline HPOJobCustom& operator=(const HPOJobCustom& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HPOJobCustom(HPOJobCustom&& from) noexcept - : HPOJobCustom() { - *this = ::std::move(from); - } - - inline HPOJobCustom& operator=(HPOJobCustom&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const HPOJobCustom& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HPOJobCustom* internal_default_instance() { - return reinterpret_cast( - &_HPOJobCustom_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(HPOJobCustom* other); - friend void swap(HPOJobCustom& a, HPOJobCustom& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HPOJobCustom* New() const final { - return CreateMaybeMessage(nullptr); - } - - HPOJobCustom* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HPOJobCustom& from); - void MergeFrom(const HPOJobCustom& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HPOJobCustom* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - bool has_hpo_job_config() const; - void clear_hpo_job_config(); - static const int kHpoJobConfigFieldNumber = 1; - const ::flyteidl::plugins::sagemaker::HPOJobConfig& hpo_job_config() const; - ::flyteidl::plugins::sagemaker::HPOJobConfig* release_hpo_job_config(); - ::flyteidl::plugins::sagemaker::HPOJobConfig* mutable_hpo_job_config(); - void set_allocated_hpo_job_config(::flyteidl::plugins::sagemaker::HPOJobConfig* hpo_job_config); - - // .flyteidl.core.TaskTemplate training_job_task_template = 2; - bool has_training_job_task_template() const; - void clear_training_job_task_template(); - static const int kTrainingJobTaskTemplateFieldNumber = 2; - const ::flyteidl::core::TaskTemplate& training_job_task_template() const; - ::flyteidl::core::TaskTemplate* release_training_job_task_template(); - ::flyteidl::core::TaskTemplate* mutable_training_job_task_template(); - void set_allocated_training_job_task_template(::flyteidl::core::TaskTemplate* training_job_task_template); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobCustom) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::sagemaker::HPOJobConfig* hpo_job_config_; - ::flyteidl::core::TaskTemplate* training_job_task_template_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; -}; // =================================================================== @@ -1026,106 +896,6 @@ inline void HPOJobConfig::set_training_job_early_stopping_type(::flyteidl::plugi // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type) } -// ------------------------------------------------------------------- - -// HPOJobCustom - -// .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; -inline bool HPOJobCustom::has_hpo_job_config() const { - return this != internal_default_instance() && hpo_job_config_ != nullptr; -} -inline void HPOJobCustom::clear_hpo_job_config() { - if (GetArenaNoVirtual() == nullptr && hpo_job_config_ != nullptr) { - delete hpo_job_config_; - } - hpo_job_config_ = nullptr; -} -inline const ::flyteidl::plugins::sagemaker::HPOJobConfig& HPOJobCustom::hpo_job_config() const { - const ::flyteidl::plugins::sagemaker::HPOJobConfig* p = hpo_job_config_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::HPOJobConfig* HPOJobCustom::release_hpo_job_config() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) - - ::flyteidl::plugins::sagemaker::HPOJobConfig* temp = hpo_job_config_; - hpo_job_config_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::HPOJobConfig* HPOJobCustom::mutable_hpo_job_config() { - - if (hpo_job_config_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobConfig>(GetArenaNoVirtual()); - hpo_job_config_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) - return hpo_job_config_; -} -inline void HPOJobCustom::set_allocated_hpo_job_config(::flyteidl::plugins::sagemaker::HPOJobConfig* hpo_job_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete hpo_job_config_; - } - if (hpo_job_config) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - hpo_job_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, hpo_job_config, submessage_arena); - } - - } else { - - } - hpo_job_config_ = hpo_job_config; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config) -} - -// .flyteidl.core.TaskTemplate training_job_task_template = 2; -inline bool HPOJobCustom::has_training_job_task_template() const { - return this != internal_default_instance() && training_job_task_template_ != nullptr; -} -inline const ::flyteidl::core::TaskTemplate& HPOJobCustom::training_job_task_template() const { - const ::flyteidl::core::TaskTemplate* p = training_job_task_template_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskTemplate_default_instance_); -} -inline ::flyteidl::core::TaskTemplate* HPOJobCustom::release_training_job_task_template() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template) - - ::flyteidl::core::TaskTemplate* temp = training_job_task_template_; - training_job_task_template_ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskTemplate* HPOJobCustom::mutable_training_job_task_template() { - - if (training_job_task_template_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskTemplate>(GetArenaNoVirtual()); - training_job_task_template_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template) - return training_job_task_template_; -} -inline void HPOJobCustom::set_allocated_training_job_task_template(::flyteidl::core::TaskTemplate* training_job_task_template) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(training_job_task_template_); - } - if (training_job_task_template) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - training_job_task_template = ::google::protobuf::internal::GetOwnedMessage( - message_arena, training_job_task_template, submessage_arena); - } - - } else { - - } - training_job_task_template_ = training_job_task_template; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template) -} - #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -1133,8 +903,6 @@ inline void HPOJobCustom::set_allocated_training_job_task_template(::flyteidl::c // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go index 62478df94..60dd866e1 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go @@ -6,7 +6,6 @@ package plugins import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" math "math" ) @@ -261,53 +260,6 @@ func (m *HPOJobConfig) GetTrainingJobEarlyStoppingType() HPOJobConfig_TrainingJo return HPOJobConfig_OFF } -type HPOJobCustom struct { - HpoJobConfig *HPOJobConfig `protobuf:"bytes,1,opt,name=hpo_job_config,json=hpoJobConfig,proto3" json:"hpo_job_config,omitempty"` - TrainingJobTaskTemplate *core.TaskTemplate `protobuf:"bytes,2,opt,name=training_job_task_template,json=trainingJobTaskTemplate,proto3" json:"training_job_task_template,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HPOJobCustom) Reset() { *m = HPOJobCustom{} } -func (m *HPOJobCustom) String() string { return proto.CompactTextString(m) } -func (*HPOJobCustom) ProtoMessage() {} -func (*HPOJobCustom) Descriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{3} -} - -func (m *HPOJobCustom) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HPOJobCustom.Unmarshal(m, b) -} -func (m *HPOJobCustom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HPOJobCustom.Marshal(b, m, deterministic) -} -func (m *HPOJobCustom) XXX_Merge(src proto.Message) { - xxx_messageInfo_HPOJobCustom.Merge(m, src) -} -func (m *HPOJobCustom) XXX_Size() int { - return xxx_messageInfo_HPOJobCustom.Size(m) -} -func (m *HPOJobCustom) XXX_DiscardUnknown() { - xxx_messageInfo_HPOJobCustom.DiscardUnknown(m) -} - -var xxx_messageInfo_HPOJobCustom proto.InternalMessageInfo - -func (m *HPOJobCustom) GetHpoJobConfig() *HPOJobConfig { - if m != nil { - return m.HpoJobConfig - } - return nil -} - -func (m *HPOJobCustom) GetTrainingJobTaskTemplate() *core.TaskTemplate { - if m != nil { - return m.TrainingJobTaskTemplate - } - return nil -} - func init() { proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningObjective_HyperparameterTuningObjectiveType", HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name, HyperparameterTuningObjective_HyperparameterTuningObjectiveType_value) proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobConfig_HyperparameterTuningStrategy", HPOJobConfig_HyperparameterTuningStrategy_name, HPOJobConfig_HyperparameterTuningStrategy_value) @@ -315,7 +267,6 @@ func init() { proto.RegisterType((*HyperparameterTuningObjective)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningObjective") proto.RegisterType((*HPOJob)(nil), "flyteidl.plugins.sagemaker.HPOJob") proto.RegisterType((*HPOJobConfig)(nil), "flyteidl.plugins.sagemaker.HPOJobConfig") - proto.RegisterType((*HPOJobCustom)(nil), "flyteidl.plugins.sagemaker.HPOJobCustom") } func init() { @@ -323,44 +274,39 @@ func init() { } var fileDescriptor_50903433b4c088ac = []byte{ - // 617 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x5d, 0x6f, 0xd3, 0x30, - 0x14, 0x5d, 0xb6, 0x69, 0x8c, 0xdb, 0x52, 0x2a, 0x0b, 0xb4, 0xd1, 0x0d, 0x31, 0xf2, 0x42, 0x25, - 0xb4, 0x44, 0xeb, 0x84, 0x04, 0x02, 0x09, 0x75, 0xd0, 0x69, 0x9d, 0xb4, 0x76, 0xca, 0x82, 0x34, - 0xc6, 0x83, 0x71, 0x3a, 0x37, 0xcd, 0x96, 0xc4, 0x96, 0xe3, 0xa2, 0xe5, 0x95, 0x07, 0xde, 0xf8, - 0x3f, 0xbc, 0xf3, 0x03, 0xf8, 0x4b, 0x28, 0x8e, 0x97, 0xa6, 0x13, 0x84, 0x8f, 0xc7, 0x6b, 0xdf, - 0x73, 0x6e, 0xce, 0xc9, 0xf1, 0x85, 0xf6, 0x38, 0x4c, 0x25, 0x0d, 0xce, 0x43, 0x9b, 0x87, 0x53, - 0x3f, 0x88, 0x13, 0x3b, 0x21, 0x3e, 0x8d, 0xc8, 0x25, 0x15, 0xf6, 0x84, 0x33, 0x7c, 0xc1, 0x3c, - 0x8b, 0x0b, 0x26, 0x19, 0x6a, 0x5d, 0x77, 0x5a, 0xba, 0xd3, 0x2a, 0x3a, 0x5b, 0x3b, 0x15, 0x2c, - 0x9c, 0x08, 0x12, 0x51, 0x49, 0x05, 0x16, 0x24, 0xf6, 0x69, 0x92, 0xd3, 0xb5, 0xb6, 0x2b, 0x20, - 0x52, 0x90, 0x20, 0x0e, 0x62, 0x7f, 0x36, 0xbd, 0xf5, 0xa0, 0x68, 0x1f, 0x31, 0x41, 0x6d, 0x49, - 0x92, 0x4b, 0xcd, 0x64, 0x7e, 0x59, 0x84, 0x87, 0x07, 0x29, 0xa7, 0xa2, 0x98, 0xe4, 0x4e, 0x33, - 0xf4, 0xd0, 0xbb, 0xa0, 0x23, 0x19, 0x7c, 0xa2, 0xe8, 0xb3, 0x01, 0x0d, 0x76, 0x5d, 0x61, 0x99, - 0x72, 0xba, 0x6e, 0x6c, 0x19, 0xed, 0x46, 0xe7, 0x83, 0xf5, 0x7b, 0x51, 0x56, 0x25, 0x67, 0xf5, - 0xad, 0x9b, 0x72, 0xea, 0xdc, 0x61, 0xe5, 0x12, 0x3d, 0x82, 0x5a, 0x44, 0xa5, 0x08, 0x46, 0x38, - 0x26, 0x11, 0x5d, 0x5f, 0xdc, 0x32, 0xda, 0xb7, 0x1d, 0xc8, 0x8f, 0x06, 0x24, 0xa2, 0xe6, 0x6b, - 0x78, 0xfc, 0x47, 0x52, 0x54, 0x87, 0xd5, 0xa3, 0xfe, 0xa0, 0x7f, 0xd4, 0x3f, 0xeb, 0x35, 0x17, - 0x54, 0xd5, 0x3d, 0xcd, 0x2b, 0xc3, 0xfc, 0x61, 0xc0, 0xca, 0xc1, 0xf1, 0xf0, 0x90, 0x79, 0xe8, - 0x10, 0xea, 0x65, 0x13, 0x95, 0xdc, 0x5a, 0xe7, 0x49, 0x95, 0x5c, 0x57, 0xf7, 0x1f, 0x32, 0xcf, - 0xa9, 0xc9, 0x59, 0x81, 0x5e, 0xc1, 0x46, 0x44, 0xae, 0x70, 0x3c, 0x8d, 0x3c, 0x2a, 0x30, 0x1b, - 0xe3, 0x32, 0x73, 0xa2, 0x84, 0x2c, 0x39, 0x6b, 0x11, 0xb9, 0x1a, 0xa8, 0x8e, 0xe1, 0xb8, 0xc4, - 0x94, 0xa0, 0x97, 0xd0, 0xca, 0xd0, 0x99, 0xa8, 0x30, 0xa4, 0xe1, 0x0d, 0xf0, 0x52, 0x01, 0x3e, - 0xd6, 0x0d, 0x65, 0xb0, 0xf9, 0x7d, 0x19, 0xea, 0xb9, 0xa2, 0x37, 0x2c, 0x1e, 0x07, 0x3e, 0xfa, - 0x08, 0xf7, 0x27, 0x73, 0x1e, 0xe9, 0x50, 0x69, 0x81, 0x4f, 0xab, 0x04, 0x1e, 0x5f, 0x63, 0x1c, - 0x05, 0x71, 0xee, 0xcd, 0x33, 0xe5, 0xa7, 0x28, 0x86, 0xbb, 0x52, 0xf9, 0x8e, 0x13, 0x29, 0x88, - 0xa4, 0x7e, 0xaa, 0x14, 0x36, 0x3a, 0xbd, 0xca, 0xac, 0x94, 0x3e, 0xf2, 0x97, 0xd1, 0x38, 0xd1, - 0x64, 0x4e, 0x43, 0xce, 0xd5, 0xe8, 0x1c, 0x9a, 0x7a, 0x5e, 0x11, 0x17, 0xe5, 0x4a, 0xad, 0xf3, - 0xe2, 0xbf, 0xc3, 0xe9, 0x68, 0x09, 0xb3, 0x17, 0xf0, 0xd5, 0x80, 0xad, 0xb2, 0xf3, 0x98, 0x12, - 0x11, 0xa6, 0x38, 0x91, 0x8c, 0xf3, 0xec, 0x48, 0xbd, 0x89, 0xe5, 0x7f, 0xd4, 0x59, 0xfa, 0x55, - 0xbd, 0x8c, 0xee, 0x44, 0xb3, 0xa9, 0xf4, 0x6f, 0xca, 0x8a, 0x5b, 0xf3, 0x39, 0x6c, 0x56, 0xb9, - 0x94, 0x05, 0x7b, 0xaf, 0xfb, 0xbe, 0x77, 0xd2, 0xef, 0x0e, 0x9a, 0x0b, 0x08, 0x60, 0xc5, 0xe9, - 0x0e, 0xde, 0x0e, 0x8f, 0x9a, 0x86, 0xb9, 0x03, 0x9b, 0x55, 0x73, 0xd1, 0x2d, 0x58, 0x1a, 0xee, - 0xef, 0x37, 0x17, 0xd0, 0x2a, 0x2c, 0x77, 0xdf, 0xb9, 0xc3, 0xa6, 0x61, 0x7e, 0x33, 0x8a, 0x14, - 0x4d, 0x13, 0xc9, 0x22, 0x34, 0x80, 0x86, 0xde, 0x6d, 0x78, 0xa4, 0xa4, 0xe8, 0xf8, 0xb4, 0xff, - 0x56, 0xba, 0x53, 0x9f, 0x70, 0x36, 0x4b, 0xe5, 0x29, 0xb4, 0xe6, 0xcc, 0xcd, 0xb6, 0x13, 0x96, - 0x34, 0xe2, 0x21, 0x91, 0xf9, 0x4b, 0xaf, 0x75, 0x36, 0x66, 0xdc, 0xd9, 0x06, 0xb3, 0x5c, 0x92, - 0x5c, 0xba, 0xba, 0xc5, 0x59, 0x2b, 0x99, 0x55, 0xbe, 0xd8, 0x7b, 0x76, 0xb6, 0xeb, 0x07, 0x72, - 0x32, 0xf5, 0xac, 0x11, 0x8b, 0xec, 0x30, 0x1d, 0x4b, 0xbb, 0x58, 0x84, 0x3e, 0x8d, 0x6d, 0xee, - 0x6d, 0xfb, 0xcc, 0xbe, 0xb9, 0x4a, 0xbd, 0x15, 0xb5, 0x19, 0x77, 0x7f, 0x06, 0x00, 0x00, 0xff, - 0xff, 0x02, 0x11, 0xf9, 0xb6, 0xde, 0x05, 0x00, 0x00, + // 539 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x8f, 0xd2, 0x40, + 0x18, 0xa5, 0x0b, 0xc1, 0xf5, 0x03, 0xb1, 0x99, 0x68, 0xdc, 0x20, 0x46, 0xec, 0x45, 0x12, 0xb3, + 0x6d, 0x96, 0x8d, 0x89, 0x46, 0x13, 0xc3, 0x2a, 0x9b, 0x85, 0x04, 0x4a, 0x0a, 0x26, 0xba, 0x1e, + 0xea, 0x94, 0x1d, 0x4a, 0xd7, 0xb6, 0xd3, 0x4c, 0x07, 0xb3, 0xbd, 0x7a, 0xf0, 0xe6, 0xaf, 0xf2, + 0x07, 0xf8, 0x97, 0x4c, 0x87, 0x52, 0xca, 0x46, 0xc7, 0xb8, 0xc7, 0x6f, 0xfa, 0xde, 0x9b, 0x79, + 0xaf, 0x6f, 0x06, 0x3a, 0x0b, 0x3f, 0xe1, 0xc4, 0xbb, 0xf0, 0x8d, 0xc8, 0x5f, 0xb9, 0x5e, 0x18, + 0x1b, 0x31, 0x76, 0x49, 0x80, 0xbf, 0x10, 0x66, 0x2c, 0x23, 0x6a, 0x5f, 0x52, 0x47, 0x8f, 0x18, + 0xe5, 0x14, 0x35, 0x37, 0x48, 0x3d, 0x43, 0xea, 0x39, 0xb2, 0x79, 0x24, 0x51, 0x89, 0x30, 0xc3, + 0x01, 0xe1, 0x84, 0xd9, 0x0c, 0x87, 0x2e, 0x89, 0xd7, 0x72, 0xcd, 0x43, 0x09, 0x85, 0x33, 0xec, + 0x85, 0x5e, 0xe8, 0x6e, 0x77, 0xd7, 0xbe, 0xef, 0xc1, 0xa3, 0xb3, 0x24, 0x22, 0x2c, 0x97, 0x9b, + 0xad, 0x52, 0x88, 0xe9, 0x5c, 0x92, 0x39, 0xf7, 0xbe, 0x12, 0xf4, 0x4d, 0x81, 0x06, 0xdd, 0x4c, + 0x36, 0x4f, 0x22, 0x72, 0xa0, 0xb4, 0x95, 0x4e, 0xa3, 0xfb, 0x49, 0xff, 0xfb, 0xc9, 0x75, 0xa9, + 0xa6, 0xfc, 0xeb, 0x2c, 0x89, 0x88, 0x75, 0x87, 0x16, 0x47, 0xf4, 0x18, 0x6a, 0x01, 0xe1, 0xcc, + 0x9b, 0xdb, 0x21, 0x0e, 0xc8, 0xc1, 0x5e, 0x5b, 0xe9, 0xdc, 0xb6, 0x60, 0xbd, 0x34, 0xc6, 0x01, + 0xd1, 0xde, 0xc0, 0x93, 0x7f, 0x8a, 0xa2, 0x3a, 0xec, 0x8f, 0x06, 0xe3, 0xc1, 0x68, 0x70, 0xde, + 0x57, 0x4b, 0x62, 0xea, 0x7d, 0x58, 0x4f, 0x8a, 0xf6, 0x4b, 0x81, 0xea, 0xd9, 0xc4, 0x1c, 0x52, + 0x07, 0x0d, 0xa1, 0x5e, 0x4c, 0x4a, 0xd8, 0xad, 0x75, 0x9f, 0xca, 0xec, 0xce, 0x32, 0xfc, 0x90, + 0x3a, 0x56, 0x8d, 0x6f, 0x07, 0xf4, 0x1a, 0x1e, 0x06, 0xf8, 0xca, 0x0e, 0x57, 0x81, 0x43, 0x98, + 0x4d, 0x17, 0x76, 0x51, 0x39, 0x16, 0x46, 0xca, 0xd6, 0x83, 0x00, 0x5f, 0x8d, 0x05, 0xc2, 0x5c, + 0x14, 0x94, 0x62, 0xf4, 0x0a, 0x9a, 0x29, 0x3b, 0x35, 0xe5, 0xfb, 0xc4, 0xbf, 0x46, 0x2e, 0xe7, + 0xe4, 0x49, 0x06, 0x28, 0x92, 0xb5, 0x9f, 0x15, 0xa8, 0xaf, 0x1d, 0xbd, 0xa5, 0xe1, 0xc2, 0x73, + 0xd1, 0x67, 0xb8, 0xbf, 0xdc, 0xc9, 0x28, 0x6b, 0x4e, 0x66, 0xf0, 0x99, 0xcc, 0xe0, 0x64, 0xc3, + 0xb1, 0x04, 0xc5, 0xba, 0xb7, 0xab, 0xb4, 0x5e, 0x45, 0x21, 0xdc, 0xe5, 0x22, 0x77, 0x3b, 0xe6, + 0x0c, 0x73, 0xe2, 0x26, 0xc2, 0x61, 0xa3, 0xdb, 0x97, 0x76, 0xa5, 0x70, 0xc8, 0x3f, 0x56, 0x63, + 0x9a, 0x89, 0x59, 0x0d, 0xbe, 0x33, 0xa3, 0x0b, 0x50, 0xb3, 0xfd, 0xf2, 0xba, 0x88, 0x54, 0x6a, + 0xdd, 0x97, 0x37, 0x2e, 0xa7, 0x95, 0x59, 0xd8, 0xde, 0x80, 0x1f, 0x0a, 0xb4, 0x8b, 0xc9, 0xdb, + 0x04, 0x33, 0x3f, 0xb1, 0x63, 0x4e, 0xa3, 0x28, 0x5d, 0x12, 0x77, 0xa2, 0xf2, 0x9f, 0x3e, 0x0b, + 0xbf, 0xaa, 0x9f, 0xca, 0x4d, 0x33, 0x35, 0xd1, 0xfe, 0x16, 0x97, 0x7c, 0xd5, 0x5e, 0x40, 0x4b, + 0x96, 0x52, 0x5a, 0xec, 0x93, 0xde, 0xc7, 0xfe, 0x74, 0xd0, 0x1b, 0xab, 0x25, 0x04, 0x50, 0xb5, + 0x7a, 0xe3, 0x77, 0xe6, 0x48, 0x55, 0xb4, 0x23, 0x68, 0xc9, 0xf6, 0x45, 0xb7, 0xa0, 0x6c, 0x9e, + 0x9e, 0xaa, 0x25, 0xb4, 0x0f, 0x95, 0xde, 0xfb, 0x99, 0xa9, 0x2a, 0x27, 0xcf, 0xcf, 0x8f, 0x5d, + 0x8f, 0x2f, 0x57, 0x8e, 0x3e, 0xa7, 0x81, 0xe1, 0x27, 0x0b, 0x6e, 0xe4, 0x2f, 0x8c, 0x4b, 0x42, + 0x23, 0x72, 0x0e, 0x5d, 0x6a, 0x5c, 0x7f, 0x74, 0x9c, 0xaa, 0x78, 0x5e, 0x8e, 0x7f, 0x07, 0x00, + 0x00, 0xff, 0xff, 0xc8, 0x08, 0xb2, 0xe9, 0x08, 0x05, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go index 1d4cf377c..8ceadb5da 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go @@ -274,88 +274,3 @@ var _ interface { Cause() error ErrorName() string } = HPOJobConfigValidationError{} - -// Validate checks the field values on HPOJobCustom with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *HPOJobCustom) Validate() error { - if m == nil { - return nil - } - - if v, ok := interface{}(m.GetHpoJobConfig()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return HPOJobCustomValidationError{ - field: "HpoJobConfig", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetTrainingJobTaskTemplate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return HPOJobCustomValidationError{ - field: "TrainingJobTaskTemplate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// HPOJobCustomValidationError is the validation error returned by -// HPOJobCustom.Validate if the designated constraints aren't met. -type HPOJobCustomValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e HPOJobCustomValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e HPOJobCustomValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e HPOJobCustomValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e HPOJobCustomValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e HPOJobCustomValidationError) ErrorName() string { return "HPOJobCustomValidationError" } - -// Error satisfies the builtin error interface -func (e HPOJobCustomValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sHPOJobCustom.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = HPOJobCustomValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = HPOJobCustomValidationError{} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java index fbe6dbf1b..87ed539e5 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -2731,806 +2731,6 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType( } - public interface HPOJobCustomOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJobCustom) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - boolean hasHpoJobConfig(); - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getHpoJobConfig(); - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder getHpoJobConfigOrBuilder(); - - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - boolean hasTrainingJobTaskTemplate(); - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - flyteidl.core.Tasks.TaskTemplate getTrainingJobTaskTemplate(); - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTrainingJobTaskTemplateOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobCustom} - */ - public static final class HPOJobCustom extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJobCustom) - HPOJobCustomOrBuilder { - private static final long serialVersionUID = 0L; - // Use HPOJobCustom.newBuilder() to construct. - private HPOJobCustom(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HPOJobCustom() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HPOJobCustom( - 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: { - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder subBuilder = null; - if (hpoJobConfig_ != null) { - subBuilder = hpoJobConfig_.toBuilder(); - } - hpoJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hpoJobConfig_); - hpoJobConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; - if (trainingJobTaskTemplate_ != null) { - subBuilder = trainingJobTaskTemplate_.toBuilder(); - } - trainingJobTaskTemplate_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trainingJobTaskTemplate_); - trainingJobTaskTemplate_ = 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.Builder.class); - } - - public static final int HPO_JOB_CONFIG_FIELD_NUMBER = 1; - private flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig hpoJobConfig_; - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - public boolean hasHpoJobConfig() { - return hpoJobConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getHpoJobConfig() { - return hpoJobConfig_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance() : hpoJobConfig_; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder getHpoJobConfigOrBuilder() { - return getHpoJobConfig(); - } - - public static final int TRAINING_JOB_TASK_TEMPLATE_FIELD_NUMBER = 2; - private flyteidl.core.Tasks.TaskTemplate trainingJobTaskTemplate_; - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - public boolean hasTrainingJobTaskTemplate() { - return trainingJobTaskTemplate_ != null; - } - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - public flyteidl.core.Tasks.TaskTemplate getTrainingJobTaskTemplate() { - return trainingJobTaskTemplate_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : trainingJobTaskTemplate_; - } - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTrainingJobTaskTemplateOrBuilder() { - return getTrainingJobTaskTemplate(); - } - - 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 (hpoJobConfig_ != null) { - output.writeMessage(1, getHpoJobConfig()); - } - if (trainingJobTaskTemplate_ != null) { - output.writeMessage(2, getTrainingJobTaskTemplate()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (hpoJobConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHpoJobConfig()); - } - if (trainingJobTaskTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTrainingJobTaskTemplate()); - } - 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom) obj; - - if (hasHpoJobConfig() != other.hasHpoJobConfig()) return false; - if (hasHpoJobConfig()) { - if (!getHpoJobConfig() - .equals(other.getHpoJobConfig())) return false; - } - if (hasTrainingJobTaskTemplate() != other.hasTrainingJobTaskTemplate()) return false; - if (hasTrainingJobTaskTemplate()) { - if (!getTrainingJobTaskTemplate() - .equals(other.getTrainingJobTaskTemplate())) 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 (hasHpoJobConfig()) { - hash = (37 * hash) + HPO_JOB_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getHpoJobConfig().hashCode(); - } - if (hasTrainingJobTaskTemplate()) { - hash = (37 * hash) + TRAINING_JOB_TASK_TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTrainingJobTaskTemplate().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom 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(flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom 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 flyteidl.plugins.sagemaker.HPOJobCustom} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobCustom) - flyteidl.plugins.sagemaker.HpoJob.HPOJobCustomOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.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 (hpoJobConfigBuilder_ == null) { - hpoJobConfig_ = null; - } else { - hpoJobConfig_ = null; - hpoJobConfigBuilder_ = null; - } - if (trainingJobTaskTemplateBuilder_ == null) { - trainingJobTaskTemplate_ = null; - } else { - trainingJobTaskTemplate_ = null; - trainingJobTaskTemplateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom build() { - flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom buildPartial() { - flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom(this); - if (hpoJobConfigBuilder_ == null) { - result.hpoJobConfig_ = hpoJobConfig_; - } else { - result.hpoJobConfig_ = hpoJobConfigBuilder_.build(); - } - if (trainingJobTaskTemplateBuilder_ == null) { - result.trainingJobTaskTemplate_ = trainingJobTaskTemplate_; - } else { - result.trainingJobTaskTemplate_ = trainingJobTaskTemplateBuilder_.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 flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom) { - return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom other) { - if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom.getDefaultInstance()) return this; - if (other.hasHpoJobConfig()) { - mergeHpoJobConfig(other.getHpoJobConfig()); - } - if (other.hasTrainingJobTaskTemplate()) { - mergeTrainingJobTaskTemplate(other.getTrainingJobTaskTemplate()); - } - 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 { - flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig hpoJobConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder> hpoJobConfigBuilder_; - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - public boolean hasHpoJobConfig() { - return hpoJobConfigBuilder_ != null || hpoJobConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getHpoJobConfig() { - if (hpoJobConfigBuilder_ == null) { - return hpoJobConfig_ == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance() : hpoJobConfig_; - } else { - return hpoJobConfigBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - public Builder setHpoJobConfig(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig value) { - if (hpoJobConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hpoJobConfig_ = value; - onChanged(); - } else { - hpoJobConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - public Builder setHpoJobConfig( - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder builderForValue) { - if (hpoJobConfigBuilder_ == null) { - hpoJobConfig_ = builderForValue.build(); - onChanged(); - } else { - hpoJobConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - public Builder mergeHpoJobConfig(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig value) { - if (hpoJobConfigBuilder_ == null) { - if (hpoJobConfig_ != null) { - hpoJobConfig_ = - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.newBuilder(hpoJobConfig_).mergeFrom(value).buildPartial(); - } else { - hpoJobConfig_ = value; - } - onChanged(); - } else { - hpoJobConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - public Builder clearHpoJobConfig() { - if (hpoJobConfigBuilder_ == null) { - hpoJobConfig_ = null; - onChanged(); - } else { - hpoJobConfig_ = null; - hpoJobConfigBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder getHpoJobConfigBuilder() { - - onChanged(); - return getHpoJobConfigFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder getHpoJobConfigOrBuilder() { - if (hpoJobConfigBuilder_ != null) { - return hpoJobConfigBuilder_.getMessageOrBuilder(); - } else { - return hpoJobConfig_ == null ? - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance() : hpoJobConfig_; - } - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig hpo_job_config = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder> - getHpoJobConfigFieldBuilder() { - if (hpoJobConfigBuilder_ == null) { - hpoJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder>( - getHpoJobConfig(), - getParentForChildren(), - isClean()); - hpoJobConfig_ = null; - } - return hpoJobConfigBuilder_; - } - - private flyteidl.core.Tasks.TaskTemplate trainingJobTaskTemplate_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> trainingJobTaskTemplateBuilder_; - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - public boolean hasTrainingJobTaskTemplate() { - return trainingJobTaskTemplateBuilder_ != null || trainingJobTaskTemplate_ != null; - } - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - public flyteidl.core.Tasks.TaskTemplate getTrainingJobTaskTemplate() { - if (trainingJobTaskTemplateBuilder_ == null) { - return trainingJobTaskTemplate_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : trainingJobTaskTemplate_; - } else { - return trainingJobTaskTemplateBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - public Builder setTrainingJobTaskTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (trainingJobTaskTemplateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trainingJobTaskTemplate_ = value; - onChanged(); - } else { - trainingJobTaskTemplateBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - public Builder setTrainingJobTaskTemplate( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (trainingJobTaskTemplateBuilder_ == null) { - trainingJobTaskTemplate_ = builderForValue.build(); - onChanged(); - } else { - trainingJobTaskTemplateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - public Builder mergeTrainingJobTaskTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (trainingJobTaskTemplateBuilder_ == null) { - if (trainingJobTaskTemplate_ != null) { - trainingJobTaskTemplate_ = - flyteidl.core.Tasks.TaskTemplate.newBuilder(trainingJobTaskTemplate_).mergeFrom(value).buildPartial(); - } else { - trainingJobTaskTemplate_ = value; - } - onChanged(); - } else { - trainingJobTaskTemplateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - public Builder clearTrainingJobTaskTemplate() { - if (trainingJobTaskTemplateBuilder_ == null) { - trainingJobTaskTemplate_ = null; - onChanged(); - } else { - trainingJobTaskTemplate_ = null; - trainingJobTaskTemplateBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTrainingJobTaskTemplateBuilder() { - - onChanged(); - return getTrainingJobTaskTemplateFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTrainingJobTaskTemplateOrBuilder() { - if (trainingJobTaskTemplateBuilder_ != null) { - return trainingJobTaskTemplateBuilder_.getMessageOrBuilder(); - } else { - return trainingJobTaskTemplate_ == null ? - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : trainingJobTaskTemplate_; - } - } - /** - * .flyteidl.core.TaskTemplate training_job_task_template = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTrainingJobTaskTemplateFieldBuilder() { - if (trainingJobTaskTemplateBuilder_ == null) { - trainingJobTaskTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - getTrainingJobTaskTemplate(), - getParentForChildren(), - isClean()); - trainingJobTaskTemplate_ = null; - } - return trainingJobTaskTemplateBuilder_; - } - @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:flyteidl.plugins.sagemaker.HPOJobCustom) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobCustom) - private static final flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom(); - } - - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HPOJobCustom parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HPOJobCustom(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 flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; private static final @@ -3546,11 +2746,6 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom getDefaultInstanceForType( private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -3564,35 +2759,30 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobCustom getDefaultInstanceForType( "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" + "/plugins/sagemaker/parameter_ranges.prot" + "o\032-flyteidl/plugins/sagemaker/training_j" + - "ob.proto\032\031flyteidl/core/tasks.proto\"\352\001\n\035" + - "HyperparameterTuningObjective\022s\n\016objecti" + - "ve_type\030\001 \001(\0162[.flyteidl.plugins.sagemak" + - "er.HyperparameterTuningObjective.Hyperpa" + - "rameterTuningObjectiveType\022\023\n\013metric_nam" + - "e\030\002 \001(\t\"?\n!HyperparameterTuningObjective" + - "Type\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\220\001\n\006HPO" + - "Job\022=\n\014training_job\030\001 \001(\0132\'.flyteidl.plu" + - "gins.sagemaker.TrainingJob\022#\n\033max_number" + - "_of_training_jobs\030\002 \001(\003\022\"\n\032max_parallel_" + - "training_jobs\030\003 \001(\003\"\355\003\n\014HPOJobConfig\022J\n\025" + - "hyperparameter_ranges\030\001 \001(\0132+.flyteidl.p" + - "lugins.sagemaker.ParameterRanges\022^\n\017tuni" + - "ng_strategy\030\002 \001(\0162E.flyteidl.plugins.sag" + - "emaker.HPOJobConfig.HyperparameterTuning" + - "Strategy\022S\n\020tuning_objective\030\003 \001(\01329.fly" + - "teidl.plugins.sagemaker.HyperparameterTu" + - "ningObjective\022o\n training_job_early_stop" + - "ping_type\030\004 \001(\0162E.flyteidl.plugins.sagem" + - "aker.HPOJobConfig.TrainingJobEarlyStoppi" + - "ngType\"8\n\034HyperparameterTuningStrategy\022\014" + - "\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobE" + - "arlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\221\001\n\014" + - "HPOJobCustom\022@\n\016hpo_job_config\030\001 \001(\0132(.f" + - "lyteidl.plugins.sagemaker.HPOJobConfig\022?" + - "\n\032training_job_task_template\030\002 \001(\0132\033.fly" + - "teidl.core.TaskTemplateB5Z3github.com/ly" + - "ft/flyteidl/gen/pb-go/flyteidl/pluginsb\006" + - "proto3" + "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" + + "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" + + "ugins.sagemaker.HyperparameterTuningObje" + + "ctive.HyperparameterTuningObjectiveType\022" + + "\023\n\013metric_name\030\002 \001(\t\"?\n!HyperparameterTu" + + "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" + + "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" + + ".flyteidl.plugins.sagemaker.TrainingJob\022" + + "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" + + "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" + + "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" + + "2+.flyteidl.plugins.sagemaker.ParameterR" + + "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" + + "l.plugins.sagemaker.HPOJobConfig.Hyperpa" + + "rameterTuningStrategy\022S\n\020tuning_objectiv" + + "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" + + "erparameterTuningObjective\022o\n training_j" + + "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." + + "plugins.sagemaker.HPOJobConfig.TrainingJ" + + "obEarlyStoppingType\"8\n\034HyperparameterTun" + + "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" + + "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" + + "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" + + "/pb-go/flyteidl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3607,7 +2797,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(), flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(), - flyteidl.core.Tasks.getDescriptor(), }, assigner); internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor = getDescriptor().getMessageTypes().get(0); @@ -3627,15 +2816,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor, new java.lang.String[] { "HyperparameterRanges", "TuningStrategy", "TuningObjective", "TrainingJobEarlyStoppingType", }); - internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_HPOJobCustom_descriptor, - new java.lang.String[] { "HpoJobConfig", "TrainingJobTaskTemplate", }); flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); - flyteidl.core.Tasks.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst index ad8cb186c..4bfaa3f53 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst @@ -8,7 +8,7 @@ hpo_job.proto flyteidl.plugins.sagemaker.HyperparameterTuningObjective -------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ .. code-block:: json @@ -34,7 +34,7 @@ metric_name Enum flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType ----------------------------------------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE: @@ -53,7 +53,7 @@ MAXIMIZE flyteidl.plugins.sagemaker.HPOJob --------------------------------- -`[flyteidl.plugins.sagemaker.HPOJob proto] `_ +`[flyteidl.plugins.sagemaker.HPOJob proto] `_ .. code-block:: json @@ -86,7 +86,7 @@ max_parallel_training_jobs flyteidl.plugins.sagemaker.HPOJobConfig --------------------------------------- -`[flyteidl.plugins.sagemaker.HPOJobConfig proto] `_ +`[flyteidl.plugins.sagemaker.HPOJobConfig proto] `_ .. code-block:: json @@ -124,7 +124,7 @@ training_job_early_stopping_type Enum flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy ------------------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy proto] `_ +`[flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN: @@ -143,7 +143,7 @@ RANDOM Enum flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType ------------------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType proto] `_ +`[flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType.OFF: @@ -156,30 +156,3 @@ OFF AUTO ⁣ - -.. _api_msg_flyteidl.plugins.sagemaker.HPOJobCustom: - -flyteidl.plugins.sagemaker.HPOJobCustom ---------------------------------------- - -`[flyteidl.plugins.sagemaker.HPOJobCustom proto] `_ - - -.. code-block:: json - - { - "hpo_job_config": "{...}", - "training_job_task_template": "{...}" - } - -.. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config: - -hpo_job_config - (:ref:`flyteidl.plugins.sagemaker.HPOJobConfig `) - -.. _api_field_flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template: - -training_job_task_template - (:ref:`flyteidl.core.TaskTemplate `) - - diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py index 16ebdc2fa..140d64ce4 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py @@ -15,7 +15,6 @@ from flyteidl.plugins.sagemaker import parameter_ranges_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2 from flyteidl.plugins.sagemaker import training_job_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 DESCRIPTOR = _descriptor.FileDescriptor( @@ -23,9 +22,9 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\"\x91\x01\n\x0cHPOJobCustom\x12@\n\x0ehpo_job_config\x18\x01 \x01(\x0b\x32(.flyteidl.plugins.sagemaker.HPOJobConfig\x12?\n\x1atraining_job_task_template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , - dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,flyteidl_dot_core_dot_tasks__pb2.DESCRIPTOR,]) + dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,]) @@ -46,8 +45,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=369, - serialized_end=432, + serialized_start=342, + serialized_end=405, ) _sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE) @@ -68,8 +67,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=968, - serialized_end=1024, + serialized_start=941, + serialized_end=997, ) _sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY) @@ -90,8 +89,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1026, - serialized_end=1075, + serialized_start=999, + serialized_end=1048, ) _sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE) @@ -130,8 +129,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=198, - serialized_end=432, + serialized_start=171, + serialized_end=405, ) @@ -175,8 +174,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=435, - serialized_end=579, + serialized_start=408, + serialized_end=552, ) @@ -229,46 +228,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=582, - serialized_end=1075, -) - - -_HPOJOBCUSTOM = _descriptor.Descriptor( - name='HPOJobCustom', - full_name='flyteidl.plugins.sagemaker.HPOJobCustom', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='hpo_job_config', full_name='flyteidl.plugins.sagemaker.HPOJobCustom.hpo_job_config', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='training_job_task_template', full_name='flyteidl.plugins.sagemaker.HPOJobCustom.training_job_task_template', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1078, - serialized_end=1223, + serialized_start=555, + serialized_end=1048, ) _HYPERPARAMETERTUNINGOBJECTIVE.fields_by_name['objective_type'].enum_type = _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE @@ -280,12 +241,9 @@ _HPOJOBCONFIG.fields_by_name['training_job_early_stopping_type'].enum_type = _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY.containing_type = _HPOJOBCONFIG _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE.containing_type = _HPOJOBCONFIG -_HPOJOBCUSTOM.fields_by_name['hpo_job_config'].message_type = _HPOJOBCONFIG -_HPOJOBCUSTOM.fields_by_name['training_job_task_template'].message_type = flyteidl_dot_core_dot_tasks__pb2._TASKTEMPLATE DESCRIPTOR.message_types_by_name['HyperparameterTuningObjective'] = _HYPERPARAMETERTUNINGOBJECTIVE DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB DESCRIPTOR.message_types_by_name['HPOJobConfig'] = _HPOJOBCONFIG -DESCRIPTOR.message_types_by_name['HPOJobCustom'] = _HPOJOBCUSTOM _sym_db.RegisterFileDescriptor(DESCRIPTOR) HyperparameterTuningObjective = _reflection.GeneratedProtocolMessageType('HyperparameterTuningObjective', (_message.Message,), dict( @@ -309,13 +267,6 @@ )) _sym_db.RegisterMessage(HPOJobConfig) -HPOJobCustom = _reflection.GeneratedProtocolMessageType('HPOJobCustom', (_message.Message,), dict( - DESCRIPTOR = _HPOJOBCUSTOM, - __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobCustom) - )) -_sym_db.RegisterMessage(HPOJobCustom) - DESCRIPTOR._options = None # @@protoc_insertion_point(module_scope) From c97422faa8e009cc2437f0a97d1a18224de28488 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Thu, 23 Jul 2020 15:50:35 -0700 Subject: [PATCH 26/64] Revert "add a message for custom field of hpo job" This reverts commit e3044c9561674d4378bac03200ac589f07c67f32. --- protos/flyteidl/plugins/sagemaker/hpo_job.proto | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/protos/flyteidl/plugins/sagemaker/hpo_job.proto b/protos/flyteidl/plugins/sagemaker/hpo_job.proto index bffa49656..03e2df15d 100644 --- a/protos/flyteidl/plugins/sagemaker/hpo_job.proto +++ b/protos/flyteidl/plugins/sagemaker/hpo_job.proto @@ -6,7 +6,6 @@ option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; import "flyteidl/plugins/sagemaker/parameter_ranges.proto"; import "flyteidl/plugins/sagemaker/training_job.proto"; -import "flyteidl/core/tasks.proto"; message HyperparameterTuningObjective { enum HyperparameterTuningObjectiveType { @@ -40,9 +39,4 @@ message HPOJobConfig { AUTO = 1; } TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; -} - -message HPOJobCustom { - HPOJobConfig hpo_job_config = 1; - core.TaskTemplate training_job_task_template = 2; -} +} \ No newline at end of file From dd0bc784c7c7e53b05c4006834a6e8aa686cf080 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Thu, 23 Jul 2020 16:47:11 -0700 Subject: [PATCH 27/64] rename sagemaker proto files and regenerate --- .../plugins/sagemaker/hpo_job.grpc.pb.cc | 26 - .../plugins/sagemaker/hpo_job.grpc.pb.h | 49 - .../flyteidl/plugins/sagemaker/hpo_job.pb.cc | 1459 ------ .../flyteidl/plugins/sagemaker/hpo_job.pb.h | 938 ---- .../sagemaker/parameter_ranges.grpc.pb.cc | 26 - .../sagemaker/parameter_ranges.grpc.pb.h | 49 - .../plugins/sagemaker/parameter_ranges.pb.cc | 2212 --------- .../plugins/sagemaker/parameter_ranges.pb.h | 1163 ----- .../plugins/sagemaker/training_job.grpc.pb.cc | 26 - .../plugins/sagemaker/training_job.grpc.pb.h | 49 - .../plugins/sagemaker/training_job.pb.cc | 2215 --------- .../plugins/sagemaker/training_job.pb.h | 1304 ----- .../flyteidl/plugins/sagemaker/hpo_job.pb.go | 312 -- .../plugins/sagemaker/hpo_job.pb.validate.go | 276 -- .../plugins/sagemaker/parameter_ranges.pb.go | 385 -- .../sagemaker/parameter_ranges.pb.validate.go | 439 -- .../plugins/sagemaker/training_job.pb.go | 395 -- .../sagemaker/training_job.pb.validate.go | 428 -- .../flyteidl/plugins/sagemaker/Hpojob.java | 502 +- .../sagemaker/ParameterRangesOuterClass.java | 3973 ---------------- .../sagemaker/TrainingJobOuterClass.java | 4208 ----------------- .../plugins/sagemaker/hpo_job.proto.rst | 158 - .../flyteidl/plugins/sagemaker/index.rst | 6 +- .../sagemaker/parameter_ranges.proto.rst | 182 - .../plugins/sagemaker/training_job.proto.rst | 199 - .../flyteidl/plugins/sagemaker/hpo_job_pb2.py | 272 -- .../plugins/sagemaker/hpo_job_pb2_grpc.py | 3 - .../plugins/sagemaker/parameter_ranges_pb2.py | 372 -- .../sagemaker/parameter_ranges_pb2_grpc.py | 3 - .../plugins/sagemaker/training_job_pb2.py | 348 -- .../sagemaker/training_job_pb2_grpc.py | 3 - .../sagemaker/{hpo_job.proto => hpojob.proto} | 4 +- ...ter_ranges.proto => parameterranges.proto} | 0 .../{training_job.proto => trainingjob.proto} | 0 34 files changed, 256 insertions(+), 21728 deletions(-) delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.cc delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.cc delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.cc delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.h delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc delete mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h delete mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go delete mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go delete mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go delete mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go delete mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go delete mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go delete mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java delete mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java delete mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst delete mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst delete mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst delete mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py delete mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2_grpc.py delete mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py delete mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2_grpc.py delete mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py delete mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2_grpc.py rename protos/flyteidl/plugins/sagemaker/{hpo_job.proto => hpojob.proto} (90%) rename protos/flyteidl/plugins/sagemaker/{parameter_ranges.proto => parameterranges.proto} (100%) rename protos/flyteidl/plugins/sagemaker/{training_job.proto => trainingjob.proto} (100%) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.cc deleted file mode 100644 index e7c373c24..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.cc +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/hpo_job.proto - -#include "flyteidl/plugins/sagemaker/hpo_job.pb.h" -#include "flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { -namespace sagemaker { - -} // namespace flyteidl -} // namespace plugins -} // namespace sagemaker - diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h deleted file mode 100644 index 13d190835..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/hpo_job.proto -#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto__INCLUDED - -#include "flyteidl/plugins/sagemaker/hpo_job.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { -namespace sagemaker { - -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc deleted file mode 100644 index 8bfb8e986..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc +++ /dev/null @@ -1,1459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpo_job.proto - -#include "flyteidl/plugins/sagemaker/hpo_job.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; -namespace flyteidl { -namespace plugins { -namespace sagemaker { -class HyperparameterTuningObjectiveDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HyperparameterTuningObjective_default_instance_; -class HPOJobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HPOJob_default_instance_; -class HPOJobConfigDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HPOJobConfig_default_instance_; -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, {}}; - -static void InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_HPOJob_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::HPOJob(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::HPOJob::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { - &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; - -static void InitDefaultsHPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::HPOJobConfig(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::HPOJobConfig::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { - &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, - &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[3]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[3]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, objective_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, metric_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, training_job_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, max_number_of_training_jobs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, max_parallel_training_jobs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, hyperparameter_ranges_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, tuning_strategy_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, tuning_objective_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, training_job_early_stopping_type_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective)}, - { 7, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJob)}, - { 15, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJobConfig)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJob_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, "flyteidl/plugins/sagemaker/hpo_job.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[] = - "\n(flyteidl/plugins/sagemaker/hpo_job.pro" - "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" - "/plugins/sagemaker/parameter_ranges.prot" - "o\032-flyteidl/plugins/sagemaker/training_j" - "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" - "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" - "ugins.sagemaker.HyperparameterTuningObje" - "ctive.HyperparameterTuningObjectiveType\022" - "\023\n\013metric_name\030\002 \001(\t\"\?\n!HyperparameterTu" - "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" - "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" - ".flyteidl.plugins.sagemaker.TrainingJob\022" - "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" - "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" - "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" - "2+.flyteidl.plugins.sagemaker.ParameterR" - "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" - "l.plugins.sagemaker.HPOJobConfig.Hyperpa" - "rameterTuningStrategy\022S\n\020tuning_objectiv" - "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" - "erparameterTuningObjective\022o\n training_j" - "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." - "plugins.sagemaker.HPOJobConfig.TrainingJ" - "obEarlyStoppingType\"8\n\034HyperparameterTun" - "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" - "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" - "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" - "/pb-go/flyteidl/pluginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, - "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1111, -}; - -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[2] = - { - ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, - ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, deps, 2); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { -namespace sagemaker { -const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[0]; -} -bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::MINIMIZE; -const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::MAXIMIZE; -const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::HyperparameterTuningObjectiveType_MIN; -const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::HyperparameterTuningObjectiveType_MAX; -const int HyperparameterTuningObjective::HyperparameterTuningObjectiveType_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* HPOJobConfig_HyperparameterTuningStrategy_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[1]; -} -bool HPOJobConfig_HyperparameterTuningStrategy_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::BAYESIAN; -const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::RANDOM; -const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::HyperparameterTuningStrategy_MIN; -const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::HyperparameterTuningStrategy_MAX; -const int HPOJobConfig::HyperparameterTuningStrategy_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* HPOJobConfig_TrainingJobEarlyStoppingType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[2]; -} -bool HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::OFF; -const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::AUTO; -const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::TrainingJobEarlyStoppingType_MIN; -const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::TrainingJobEarlyStoppingType_MAX; -const int HPOJobConfig::TrainingJobEarlyStoppingType_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -// =================================================================== - -void HyperparameterTuningObjective::InitAsDefaultInstance() { -} -class HyperparameterTuningObjective::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HyperparameterTuningObjective::kObjectiveTypeFieldNumber; -const int HyperparameterTuningObjective::kMetricNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HyperparameterTuningObjective::HyperparameterTuningObjective() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) -} -HyperparameterTuningObjective::HyperparameterTuningObjective(const HyperparameterTuningObjective& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.metric_name().size() > 0) { - metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); - } - objective_type_ = from.objective_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) -} - -void HyperparameterTuningObjective::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - objective_type_ = 0; -} - -HyperparameterTuningObjective::~HyperparameterTuningObjective() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - SharedDtor(); -} - -void HyperparameterTuningObjective::SharedDtor() { - metric_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void HyperparameterTuningObjective::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const HyperparameterTuningObjective& HyperparameterTuningObjective::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - return *internal_default_instance(); -} - - -void HyperparameterTuningObjective::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - objective_type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HyperparameterTuningObjective::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_objective_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string metric_name = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); - object = msg->mutable_metric_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HyperparameterTuningObjective::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_objective_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string metric_name = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_metric_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metric_name().data(), static_cast(this->metric_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void HyperparameterTuningObjective::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - if (this->objective_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->objective_type(), output); - } - - // string metric_name = 2; - if (this->metric_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metric_name().data(), static_cast(this->metric_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->metric_name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) -} - -::google::protobuf::uint8* HyperparameterTuningObjective::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - if (this->objective_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->objective_type(), target); - } - - // string metric_name = 2; - if (this->metric_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metric_name().data(), static_cast(this->metric_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->metric_name(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - return target; -} - -size_t HyperparameterTuningObjective::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string metric_name = 2; - if (this->metric_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->metric_name()); - } - - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - if (this->objective_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->objective_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void HyperparameterTuningObjective::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - GOOGLE_DCHECK_NE(&from, this); - const HyperparameterTuningObjective* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - MergeFrom(*source); - } -} - -void HyperparameterTuningObjective::MergeFrom(const HyperparameterTuningObjective& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.metric_name().size() > 0) { - - metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); - } - if (from.objective_type() != 0) { - set_objective_type(from.objective_type()); - } -} - -void HyperparameterTuningObjective::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HyperparameterTuningObjective::CopyFrom(const HyperparameterTuningObjective& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HyperparameterTuningObjective::IsInitialized() const { - return true; -} - -void HyperparameterTuningObjective::Swap(HyperparameterTuningObjective* other) { - if (other == this) return; - InternalSwap(other); -} -void HyperparameterTuningObjective::InternalSwap(HyperparameterTuningObjective* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - metric_name_.Swap(&other->metric_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(objective_type_, other->objective_type_); -} - -::google::protobuf::Metadata HyperparameterTuningObjective::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void HPOJob::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_HPOJob_default_instance_._instance.get_mutable()->training_job_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJob*>( - ::flyteidl::plugins::sagemaker::TrainingJob::internal_default_instance()); -} -class HPOJob::HasBitSetters { - public: - static const ::flyteidl::plugins::sagemaker::TrainingJob& training_job(const HPOJob* msg); -}; - -const ::flyteidl::plugins::sagemaker::TrainingJob& -HPOJob::HasBitSetters::training_job(const HPOJob* msg) { - return *msg->training_job_; -} -void HPOJob::clear_training_job() { - if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { - delete training_job_; - } - training_job_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJob::kTrainingJobFieldNumber; -const int HPOJob::kMaxNumberOfTrainingJobsFieldNumber; -const int HPOJob::kMaxParallelTrainingJobsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HPOJob::HPOJob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJob) -} -HPOJob::HPOJob(const HPOJob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_training_job()) { - training_job_ = new ::flyteidl::plugins::sagemaker::TrainingJob(*from.training_job_); - } else { - training_job_ = nullptr; - } - ::memcpy(&max_number_of_training_jobs_, &from.max_number_of_training_jobs_, - static_cast(reinterpret_cast(&max_parallel_training_jobs_) - - reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJob) -} - -void HPOJob::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::memset(&training_job_, 0, static_cast( - reinterpret_cast(&max_parallel_training_jobs_) - - reinterpret_cast(&training_job_)) + sizeof(max_parallel_training_jobs_)); -} - -HPOJob::~HPOJob() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJob) - SharedDtor(); -} - -void HPOJob::SharedDtor() { - if (this != internal_default_instance()) delete training_job_; -} - -void HPOJob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const HPOJob& HPOJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - return *internal_default_instance(); -} - - -void HPOJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { - delete training_job_; - } - training_job_ = nullptr; - ::memset(&max_number_of_training_jobs_, 0, static_cast( - reinterpret_cast(&max_parallel_training_jobs_) - - reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HPOJob::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJob::_InternalParse; - object = msg->mutable_training_job(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // int64 max_number_of_training_jobs = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_max_number_of_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int64 max_parallel_training_jobs = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_max_parallel_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HPOJob::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJob) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_training_job())); - } else { - goto handle_unusual; - } - break; - } - - // int64 max_number_of_training_jobs = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &max_number_of_training_jobs_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 max_parallel_training_jobs = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &max_parallel_training_jobs_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void HPOJob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - if (this->has_training_job()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::training_job(this), output); - } - - // int64 max_number_of_training_jobs = 2; - if (this->max_number_of_training_jobs() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max_number_of_training_jobs(), output); - } - - // int64 max_parallel_training_jobs = 3; - if (this->max_parallel_training_jobs() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->max_parallel_training_jobs(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJob) -} - -::google::protobuf::uint8* HPOJob::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - if (this->has_training_job()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::training_job(this), target); - } - - // int64 max_number_of_training_jobs = 2; - if (this->max_number_of_training_jobs() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max_number_of_training_jobs(), target); - } - - // int64 max_parallel_training_jobs = 3; - if (this->max_parallel_training_jobs() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->max_parallel_training_jobs(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJob) - return target; -} - -size_t HPOJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJob) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - if (this->has_training_job()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *training_job_); - } - - // int64 max_number_of_training_jobs = 2; - if (this->max_number_of_training_jobs() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->max_number_of_training_jobs()); - } - - // int64 max_parallel_training_jobs = 3; - if (this->max_parallel_training_jobs() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->max_parallel_training_jobs()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void HPOJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJob) - GOOGLE_DCHECK_NE(&from, this); - const HPOJob* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJob) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJob) - MergeFrom(*source); - } -} - -void HPOJob::MergeFrom(const HPOJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJob) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_training_job()) { - mutable_training_job()->::flyteidl::plugins::sagemaker::TrainingJob::MergeFrom(from.training_job()); - } - if (from.max_number_of_training_jobs() != 0) { - set_max_number_of_training_jobs(from.max_number_of_training_jobs()); - } - if (from.max_parallel_training_jobs() != 0) { - set_max_parallel_training_jobs(from.max_parallel_training_jobs()); - } -} - -void HPOJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HPOJob::CopyFrom(const HPOJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HPOJob::IsInitialized() const { - return true; -} - -void HPOJob::Swap(HPOJob* other) { - if (other == this) return; - InternalSwap(other); -} -void HPOJob::InternalSwap(HPOJob* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(training_job_, other->training_job_); - swap(max_number_of_training_jobs_, other->max_number_of_training_jobs_); - swap(max_parallel_training_jobs_, other->max_parallel_training_jobs_); -} - -::google::protobuf::Metadata HPOJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void HPOJobConfig::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_._instance.get_mutable()->hyperparameter_ranges_ = const_cast< ::flyteidl::plugins::sagemaker::ParameterRanges*>( - ::flyteidl::plugins::sagemaker::ParameterRanges::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_._instance.get_mutable()->tuning_objective_ = const_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective*>( - ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::internal_default_instance()); -} -class HPOJobConfig::HasBitSetters { - public: - static const ::flyteidl::plugins::sagemaker::ParameterRanges& hyperparameter_ranges(const HPOJobConfig* msg); - static const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& tuning_objective(const HPOJobConfig* msg); -}; - -const ::flyteidl::plugins::sagemaker::ParameterRanges& -HPOJobConfig::HasBitSetters::hyperparameter_ranges(const HPOJobConfig* msg) { - return *msg->hyperparameter_ranges_; -} -const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& -HPOJobConfig::HasBitSetters::tuning_objective(const HPOJobConfig* msg) { - return *msg->tuning_objective_; -} -void HPOJobConfig::clear_hyperparameter_ranges() { - if (GetArenaNoVirtual() == nullptr && hyperparameter_ranges_ != nullptr) { - delete hyperparameter_ranges_; - } - hyperparameter_ranges_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJobConfig::kHyperparameterRangesFieldNumber; -const int HPOJobConfig::kTuningStrategyFieldNumber; -const int HPOJobConfig::kTuningObjectiveFieldNumber; -const int HPOJobConfig::kTrainingJobEarlyStoppingTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HPOJobConfig::HPOJobConfig() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJobConfig) -} -HPOJobConfig::HPOJobConfig(const HPOJobConfig& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_hyperparameter_ranges()) { - hyperparameter_ranges_ = new ::flyteidl::plugins::sagemaker::ParameterRanges(*from.hyperparameter_ranges_); - } else { - hyperparameter_ranges_ = nullptr; - } - if (from.has_tuning_objective()) { - tuning_objective_ = new ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective(*from.tuning_objective_); - } else { - tuning_objective_ = nullptr; - } - ::memcpy(&tuning_strategy_, &from.tuning_strategy_, - static_cast(reinterpret_cast(&training_job_early_stopping_type_) - - reinterpret_cast(&tuning_strategy_)) + sizeof(training_job_early_stopping_type_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJobConfig) -} - -void HPOJobConfig::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::memset(&hyperparameter_ranges_, 0, static_cast( - reinterpret_cast(&training_job_early_stopping_type_) - - reinterpret_cast(&hyperparameter_ranges_)) + sizeof(training_job_early_stopping_type_)); -} - -HPOJobConfig::~HPOJobConfig() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJobConfig) - SharedDtor(); -} - -void HPOJobConfig::SharedDtor() { - if (this != internal_default_instance()) delete hyperparameter_ranges_; - if (this != internal_default_instance()) delete tuning_objective_; -} - -void HPOJobConfig::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const HPOJobConfig& HPOJobConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - return *internal_default_instance(); -} - - -void HPOJobConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJobConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && hyperparameter_ranges_ != nullptr) { - delete hyperparameter_ranges_; - } - hyperparameter_ranges_ = nullptr; - if (GetArenaNoVirtual() == nullptr && tuning_objective_ != nullptr) { - delete tuning_objective_; - } - tuning_objective_ = nullptr; - ::memset(&tuning_strategy_, 0, static_cast( - reinterpret_cast(&training_job_early_stopping_type_) - - reinterpret_cast(&tuning_strategy_)) + sizeof(training_job_early_stopping_type_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HPOJobConfig::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::ParameterRanges::_InternalParse; - object = msg->mutable_hyperparameter_ranges(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_tuning_strategy(static_cast<::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::_InternalParse; - object = msg->mutable_tuning_objective(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_training_job_early_stopping_type(static_cast<::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HPOJobConfig::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJobConfig) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_hyperparameter_ranges())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_tuning_strategy(static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_tuning_objective())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_training_job_early_stopping_type(static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType >(value)); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJobConfig) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJobConfig) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void HPOJobConfig::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJobConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - if (this->has_hyperparameter_ranges()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::hyperparameter_ranges(this), output); - } - - // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - if (this->tuning_strategy() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->tuning_strategy(), output); - } - - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - if (this->has_tuning_objective()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::tuning_objective(this), output); - } - - // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - if (this->training_job_early_stopping_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->training_job_early_stopping_type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJobConfig) -} - -::google::protobuf::uint8* HPOJobConfig::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJobConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - if (this->has_hyperparameter_ranges()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::hyperparameter_ranges(this), target); - } - - // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - if (this->tuning_strategy() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->tuning_strategy(), target); - } - - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - if (this->has_tuning_objective()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::tuning_objective(this), target); - } - - // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - if (this->training_job_early_stopping_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->training_job_early_stopping_type(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJobConfig) - return target; -} - -size_t HPOJobConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJobConfig) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - if (this->has_hyperparameter_ranges()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *hyperparameter_ranges_); - } - - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - if (this->has_tuning_objective()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *tuning_objective_); - } - - // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - if (this->tuning_strategy() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->tuning_strategy()); - } - - // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - if (this->training_job_early_stopping_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->training_job_early_stopping_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void HPOJobConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) - GOOGLE_DCHECK_NE(&from, this); - const HPOJobConfig* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJobConfig) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJobConfig) - MergeFrom(*source); - } -} - -void HPOJobConfig::MergeFrom(const HPOJobConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_hyperparameter_ranges()) { - mutable_hyperparameter_ranges()->::flyteidl::plugins::sagemaker::ParameterRanges::MergeFrom(from.hyperparameter_ranges()); - } - if (from.has_tuning_objective()) { - mutable_tuning_objective()->::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::MergeFrom(from.tuning_objective()); - } - if (from.tuning_strategy() != 0) { - set_tuning_strategy(from.tuning_strategy()); - } - if (from.training_job_early_stopping_type() != 0) { - set_training_job_early_stopping_type(from.training_job_early_stopping_type()); - } -} - -void HPOJobConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HPOJobConfig::CopyFrom(const HPOJobConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HPOJobConfig::IsInitialized() const { - return true; -} - -void HPOJobConfig::Swap(HPOJobConfig* other) { - if (other == this) return; - InternalSwap(other); -} -void HPOJobConfig::InternalSwap(HPOJobConfig* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(hyperparameter_ranges_, other->hyperparameter_ranges_); - swap(tuning_objective_, other->tuning_objective_); - swap(tuning_strategy_, other->tuning_strategy_); - swap(training_job_early_stopping_type_, other->training_job_early_stopping_type_); -} - -::google::protobuf::Metadata HPOJobConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJob >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJobConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJobConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJobConfig >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h deleted file mode 100644 index f578aa97f..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h +++ /dev/null @@ -1,938 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpo_job.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" -#include "flyteidl/plugins/sagemaker/training_job.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[3] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto(); -namespace flyteidl { -namespace plugins { -namespace sagemaker { -class HPOJob; -class HPOJobDefaultTypeInternal; -extern HPOJobDefaultTypeInternal _HPOJob_default_instance_; -class HPOJobConfig; -class HPOJobConfigDefaultTypeInternal; -extern HPOJobConfigDefaultTypeInternal _HPOJobConfig_default_instance_; -class HyperparameterTuningObjective; -class HyperparameterTuningObjectiveDefaultTypeInternal; -extern HyperparameterTuningObjectiveDefaultTypeInternal _HyperparameterTuningObjective_default_instance_; -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJob>(Arena*); -template<> ::flyteidl::plugins::sagemaker::HPOJobConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobConfig>(Arena*); -template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { -namespace sagemaker { - -enum HyperparameterTuningObjective_HyperparameterTuningObjectiveType { - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE = 0, - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE = 1, - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjective_HyperparameterTuningObjectiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjective_HyperparameterTuningObjectiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(int value); -const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MIN = HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE; -const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX = HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE; -const int HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_ARRAYSIZE = HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(); -inline const ::std::string& HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Name(HyperparameterTuningObjective_HyperparameterTuningObjectiveType value) { - return ::google::protobuf::internal::NameOfEnum( - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(), value); -} -inline bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Parse( - const ::std::string& name, HyperparameterTuningObjective_HyperparameterTuningObjectiveType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(), name, value); -} -enum HPOJobConfig_HyperparameterTuningStrategy { - HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN = 0, - HPOJobConfig_HyperparameterTuningStrategy_RANDOM = 1, - HPOJobConfig_HyperparameterTuningStrategy_HPOJobConfig_HyperparameterTuningStrategy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - HPOJobConfig_HyperparameterTuningStrategy_HPOJobConfig_HyperparameterTuningStrategy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool HPOJobConfig_HyperparameterTuningStrategy_IsValid(int value); -const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MIN = HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN; -const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX = HPOJobConfig_HyperparameterTuningStrategy_RANDOM; -const int HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_ARRAYSIZE = HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX + 1; - -const ::google::protobuf::EnumDescriptor* HPOJobConfig_HyperparameterTuningStrategy_descriptor(); -inline const ::std::string& HPOJobConfig_HyperparameterTuningStrategy_Name(HPOJobConfig_HyperparameterTuningStrategy value) { - return ::google::protobuf::internal::NameOfEnum( - HPOJobConfig_HyperparameterTuningStrategy_descriptor(), value); -} -inline bool HPOJobConfig_HyperparameterTuningStrategy_Parse( - const ::std::string& name, HPOJobConfig_HyperparameterTuningStrategy* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HPOJobConfig_HyperparameterTuningStrategy_descriptor(), name, value); -} -enum HPOJobConfig_TrainingJobEarlyStoppingType { - HPOJobConfig_TrainingJobEarlyStoppingType_OFF = 0, - HPOJobConfig_TrainingJobEarlyStoppingType_AUTO = 1, - HPOJobConfig_TrainingJobEarlyStoppingType_HPOJobConfig_TrainingJobEarlyStoppingType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - HPOJobConfig_TrainingJobEarlyStoppingType_HPOJobConfig_TrainingJobEarlyStoppingType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(int value); -const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MIN = HPOJobConfig_TrainingJobEarlyStoppingType_OFF; -const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX = HPOJobConfig_TrainingJobEarlyStoppingType_AUTO; -const int HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_ARRAYSIZE = HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(); -inline const ::std::string& HPOJobConfig_TrainingJobEarlyStoppingType_Name(HPOJobConfig_TrainingJobEarlyStoppingType value) { - return ::google::protobuf::internal::NameOfEnum( - HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(), value); -} -inline bool HPOJobConfig_TrainingJobEarlyStoppingType_Parse( - const ::std::string& name, HPOJobConfig_TrainingJobEarlyStoppingType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(), name, value); -} -// =================================================================== - -class HyperparameterTuningObjective final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) */ { - public: - HyperparameterTuningObjective(); - virtual ~HyperparameterTuningObjective(); - - HyperparameterTuningObjective(const HyperparameterTuningObjective& from); - - inline HyperparameterTuningObjective& operator=(const HyperparameterTuningObjective& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HyperparameterTuningObjective(HyperparameterTuningObjective&& from) noexcept - : HyperparameterTuningObjective() { - *this = ::std::move(from); - } - - inline HyperparameterTuningObjective& operator=(HyperparameterTuningObjective&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const HyperparameterTuningObjective& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HyperparameterTuningObjective* internal_default_instance() { - return reinterpret_cast( - &_HyperparameterTuningObjective_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(HyperparameterTuningObjective* other); - friend void swap(HyperparameterTuningObjective& a, HyperparameterTuningObjective& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HyperparameterTuningObjective* New() const final { - return CreateMaybeMessage(nullptr); - } - - HyperparameterTuningObjective* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HyperparameterTuningObjective& from); - void MergeFrom(const HyperparameterTuningObjective& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HyperparameterTuningObjective* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType; - static const HyperparameterTuningObjectiveType MINIMIZE = - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE; - static const HyperparameterTuningObjectiveType MAXIMIZE = - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE; - static inline bool HyperparameterTuningObjectiveType_IsValid(int value) { - return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(value); - } - static const HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType_MIN = - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MIN; - static const HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType_MAX = - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX; - static const int HyperparameterTuningObjectiveType_ARRAYSIZE = - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - HyperparameterTuningObjectiveType_descriptor() { - return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(); - } - static inline const ::std::string& HyperparameterTuningObjectiveType_Name(HyperparameterTuningObjectiveType value) { - return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Name(value); - } - static inline bool HyperparameterTuningObjectiveType_Parse(const ::std::string& name, - HyperparameterTuningObjectiveType* value) { - return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string metric_name = 2; - void clear_metric_name(); - static const int kMetricNameFieldNumber = 2; - const ::std::string& metric_name() const; - void set_metric_name(const ::std::string& value); - #if LANG_CXX11 - void set_metric_name(::std::string&& value); - #endif - void set_metric_name(const char* value); - void set_metric_name(const char* value, size_t size); - ::std::string* mutable_metric_name(); - ::std::string* release_metric_name(); - void set_allocated_metric_name(::std::string* metric_name); - - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - void clear_objective_type(); - static const int kObjectiveTypeFieldNumber = 1; - ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType objective_type() const; - void set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr metric_name_; - int objective_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; -}; -// ------------------------------------------------------------------- - -class HPOJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJob) */ { - public: - HPOJob(); - virtual ~HPOJob(); - - HPOJob(const HPOJob& from); - - inline HPOJob& operator=(const HPOJob& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HPOJob(HPOJob&& from) noexcept - : HPOJob() { - *this = ::std::move(from); - } - - inline HPOJob& operator=(HPOJob&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const HPOJob& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HPOJob* internal_default_instance() { - return reinterpret_cast( - &_HPOJob_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(HPOJob* other); - friend void swap(HPOJob& a, HPOJob& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HPOJob* New() const final { - return CreateMaybeMessage(nullptr); - } - - HPOJob* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HPOJob& from); - void MergeFrom(const HPOJob& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HPOJob* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - bool has_training_job() const; - void clear_training_job(); - static const int kTrainingJobFieldNumber = 1; - const ::flyteidl::plugins::sagemaker::TrainingJob& training_job() const; - ::flyteidl::plugins::sagemaker::TrainingJob* release_training_job(); - ::flyteidl::plugins::sagemaker::TrainingJob* mutable_training_job(); - void set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job); - - // int64 max_number_of_training_jobs = 2; - void clear_max_number_of_training_jobs(); - static const int kMaxNumberOfTrainingJobsFieldNumber = 2; - ::google::protobuf::int64 max_number_of_training_jobs() const; - void set_max_number_of_training_jobs(::google::protobuf::int64 value); - - // int64 max_parallel_training_jobs = 3; - void clear_max_parallel_training_jobs(); - static const int kMaxParallelTrainingJobsFieldNumber = 3; - ::google::protobuf::int64 max_parallel_training_jobs() const; - void set_max_parallel_training_jobs(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::sagemaker::TrainingJob* training_job_; - ::google::protobuf::int64 max_number_of_training_jobs_; - ::google::protobuf::int64 max_parallel_training_jobs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; -}; -// ------------------------------------------------------------------- - -class HPOJobConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJobConfig) */ { - public: - HPOJobConfig(); - virtual ~HPOJobConfig(); - - HPOJobConfig(const HPOJobConfig& from); - - inline HPOJobConfig& operator=(const HPOJobConfig& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HPOJobConfig(HPOJobConfig&& from) noexcept - : HPOJobConfig() { - *this = ::std::move(from); - } - - inline HPOJobConfig& operator=(HPOJobConfig&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const HPOJobConfig& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HPOJobConfig* internal_default_instance() { - return reinterpret_cast( - &_HPOJobConfig_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(HPOJobConfig* other); - friend void swap(HPOJobConfig& a, HPOJobConfig& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HPOJobConfig* New() const final { - return CreateMaybeMessage(nullptr); - } - - HPOJobConfig* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HPOJobConfig& from); - void MergeFrom(const HPOJobConfig& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HPOJobConfig* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef HPOJobConfig_HyperparameterTuningStrategy HyperparameterTuningStrategy; - static const HyperparameterTuningStrategy BAYESIAN = - HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN; - static const HyperparameterTuningStrategy RANDOM = - HPOJobConfig_HyperparameterTuningStrategy_RANDOM; - static inline bool HyperparameterTuningStrategy_IsValid(int value) { - return HPOJobConfig_HyperparameterTuningStrategy_IsValid(value); - } - static const HyperparameterTuningStrategy HyperparameterTuningStrategy_MIN = - HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MIN; - static const HyperparameterTuningStrategy HyperparameterTuningStrategy_MAX = - HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX; - static const int HyperparameterTuningStrategy_ARRAYSIZE = - HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - HyperparameterTuningStrategy_descriptor() { - return HPOJobConfig_HyperparameterTuningStrategy_descriptor(); - } - static inline const ::std::string& HyperparameterTuningStrategy_Name(HyperparameterTuningStrategy value) { - return HPOJobConfig_HyperparameterTuningStrategy_Name(value); - } - static inline bool HyperparameterTuningStrategy_Parse(const ::std::string& name, - HyperparameterTuningStrategy* value) { - return HPOJobConfig_HyperparameterTuningStrategy_Parse(name, value); - } - - typedef HPOJobConfig_TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType; - static const TrainingJobEarlyStoppingType OFF = - HPOJobConfig_TrainingJobEarlyStoppingType_OFF; - static const TrainingJobEarlyStoppingType AUTO = - HPOJobConfig_TrainingJobEarlyStoppingType_AUTO; - static inline bool TrainingJobEarlyStoppingType_IsValid(int value) { - return HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(value); - } - static const TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType_MIN = - HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MIN; - static const TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType_MAX = - HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX; - static const int TrainingJobEarlyStoppingType_ARRAYSIZE = - HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - TrainingJobEarlyStoppingType_descriptor() { - return HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(); - } - static inline const ::std::string& TrainingJobEarlyStoppingType_Name(TrainingJobEarlyStoppingType value) { - return HPOJobConfig_TrainingJobEarlyStoppingType_Name(value); - } - static inline bool TrainingJobEarlyStoppingType_Parse(const ::std::string& name, - TrainingJobEarlyStoppingType* value) { - return HPOJobConfig_TrainingJobEarlyStoppingType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - bool has_hyperparameter_ranges() const; - void clear_hyperparameter_ranges(); - static const int kHyperparameterRangesFieldNumber = 1; - const ::flyteidl::plugins::sagemaker::ParameterRanges& hyperparameter_ranges() const; - ::flyteidl::plugins::sagemaker::ParameterRanges* release_hyperparameter_ranges(); - ::flyteidl::plugins::sagemaker::ParameterRanges* mutable_hyperparameter_ranges(); - void set_allocated_hyperparameter_ranges(::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges); - - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - bool has_tuning_objective() const; - void clear_tuning_objective(); - static const int kTuningObjectiveFieldNumber = 3; - const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& tuning_objective() const; - ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* release_tuning_objective(); - ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* mutable_tuning_objective(); - void set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective); - - // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - void clear_tuning_strategy(); - static const int kTuningStrategyFieldNumber = 2; - ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy tuning_strategy() const; - void set_tuning_strategy(::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy value); - - // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - void clear_training_job_early_stopping_type(); - static const int kTrainingJobEarlyStoppingTypeFieldNumber = 4; - ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType training_job_early_stopping_type() const; - void set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges_; - ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective_; - int tuning_strategy_; - int training_job_early_stopping_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// HyperparameterTuningObjective - -// .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; -inline void HyperparameterTuningObjective::clear_objective_type() { - objective_type_ = 0; -} -inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::objective_type() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type) - return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType >(objective_type_); -} -inline void HyperparameterTuningObjective::set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType value) { - - objective_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type) -} - -// string metric_name = 2; -inline void HyperparameterTuningObjective::clear_metric_name() { - metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& HyperparameterTuningObjective::metric_name() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) - return metric_name_.GetNoArena(); -} -inline void HyperparameterTuningObjective::set_metric_name(const ::std::string& value) { - - metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) -} -#if LANG_CXX11 -inline void HyperparameterTuningObjective::set_metric_name(::std::string&& value) { - - metric_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) -} -#endif -inline void HyperparameterTuningObjective::set_metric_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) -} -inline void HyperparameterTuningObjective::set_metric_name(const char* value, size_t size) { - - metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) -} -inline ::std::string* HyperparameterTuningObjective::mutable_metric_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) - return metric_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* HyperparameterTuningObjective::release_metric_name() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) - - return metric_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void HyperparameterTuningObjective::set_allocated_metric_name(::std::string* metric_name) { - if (metric_name != nullptr) { - - } else { - - } - metric_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metric_name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) -} - -// ------------------------------------------------------------------- - -// HPOJob - -// .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; -inline bool HPOJob::has_training_job() const { - return this != internal_default_instance() && training_job_ != nullptr; -} -inline const ::flyteidl::plugins::sagemaker::TrainingJob& HPOJob::training_job() const { - const ::flyteidl::plugins::sagemaker::TrainingJob* p = training_job_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.training_job) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::release_training_job() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.training_job) - - ::flyteidl::plugins::sagemaker::TrainingJob* temp = training_job_; - training_job_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::mutable_training_job() { - - if (training_job_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(GetArenaNoVirtual()); - training_job_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.training_job) - return training_job_; -} -inline void HPOJob::set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(training_job_); - } - if (training_job) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - training_job = ::google::protobuf::internal::GetOwnedMessage( - message_arena, training_job, submessage_arena); - } - - } else { - - } - training_job_ = training_job; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.training_job) -} - -// int64 max_number_of_training_jobs = 2; -inline void HPOJob::clear_max_number_of_training_jobs() { - max_number_of_training_jobs_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 HPOJob::max_number_of_training_jobs() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs) - return max_number_of_training_jobs_; -} -inline void HPOJob::set_max_number_of_training_jobs(::google::protobuf::int64 value) { - - max_number_of_training_jobs_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs) -} - -// int64 max_parallel_training_jobs = 3; -inline void HPOJob::clear_max_parallel_training_jobs() { - max_parallel_training_jobs_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 HPOJob::max_parallel_training_jobs() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs) - return max_parallel_training_jobs_; -} -inline void HPOJob::set_max_parallel_training_jobs(::google::protobuf::int64 value) { - - max_parallel_training_jobs_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs) -} - -// ------------------------------------------------------------------- - -// HPOJobConfig - -// .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; -inline bool HPOJobConfig::has_hyperparameter_ranges() const { - return this != internal_default_instance() && hyperparameter_ranges_ != nullptr; -} -inline const ::flyteidl::plugins::sagemaker::ParameterRanges& HPOJobConfig::hyperparameter_ranges() const { - const ::flyteidl::plugins::sagemaker::ParameterRanges* p = hyperparameter_ranges_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::ParameterRanges* HPOJobConfig::release_hyperparameter_ranges() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) - - ::flyteidl::plugins::sagemaker::ParameterRanges* temp = hyperparameter_ranges_; - hyperparameter_ranges_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::ParameterRanges* HPOJobConfig::mutable_hyperparameter_ranges() { - - if (hyperparameter_ranges_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(GetArenaNoVirtual()); - hyperparameter_ranges_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) - return hyperparameter_ranges_; -} -inline void HPOJobConfig::set_allocated_hyperparameter_ranges(::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(hyperparameter_ranges_); - } - if (hyperparameter_ranges) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - hyperparameter_ranges = ::google::protobuf::internal::GetOwnedMessage( - message_arena, hyperparameter_ranges, submessage_arena); - } - - } else { - - } - hyperparameter_ranges_ = hyperparameter_ranges; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) -} - -// .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; -inline void HPOJobConfig::clear_tuning_strategy() { - tuning_strategy_ = 0; -} -inline ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::tuning_strategy() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy) - return static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy >(tuning_strategy_); -} -inline void HPOJobConfig::set_tuning_strategy(::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy value) { - - tuning_strategy_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy) -} - -// .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; -inline bool HPOJobConfig::has_tuning_objective() const { - return this != internal_default_instance() && tuning_objective_ != nullptr; -} -inline void HPOJobConfig::clear_tuning_objective() { - if (GetArenaNoVirtual() == nullptr && tuning_objective_ != nullptr) { - delete tuning_objective_; - } - tuning_objective_ = nullptr; -} -inline const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& HPOJobConfig::tuning_objective() const { - const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* p = tuning_objective_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HPOJobConfig::release_tuning_objective() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) - - ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* temp = tuning_objective_; - tuning_objective_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HPOJobConfig::mutable_tuning_objective() { - - if (tuning_objective_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(GetArenaNoVirtual()); - tuning_objective_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) - return tuning_objective_; -} -inline void HPOJobConfig::set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete tuning_objective_; - } - if (tuning_objective) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - tuning_objective = ::google::protobuf::internal::GetOwnedMessage( - message_arena, tuning_objective, submessage_arena); - } - - } else { - - } - tuning_objective_ = tuning_objective; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) -} - -// .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; -inline void HPOJobConfig::clear_training_job_early_stopping_type() { - training_job_early_stopping_type_ = 0; -} -inline ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::training_job_early_stopping_type() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type) - return static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType >(training_job_early_stopping_type_); -} -inline void HPOJobConfig::set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType value) { - - training_job_early_stopping_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType>() { - return ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy>() { - return ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType>() { - return ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.cc deleted file mode 100644 index 7c840ad69..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.cc +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/parameter_ranges.proto - -#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" -#include "flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { -namespace sagemaker { - -} // namespace flyteidl -} // namespace plugins -} // namespace sagemaker - diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h deleted file mode 100644 index c314f50a3..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/parameter_ranges.proto -#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto__INCLUDED - -#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { -namespace sagemaker { - -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc deleted file mode 100644 index 57e32ef54..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc +++ /dev/null @@ -1,2212 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/parameter_ranges.proto - -#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; -namespace flyteidl { -namespace plugins { -namespace sagemaker { -class ContinuousParameterRangeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ContinuousParameterRange_default_instance_; -class IntegerParameterRangeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _IntegerParameterRange_default_instance_; -class CategoricalParameterRangeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CategoricalParameterRange_default_instance_; -class ParameterRangeOneOfDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range_; - const ::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range_; - const ::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range_; -} _ParameterRangeOneOf_default_instance_; -class ParameterRanges_ParameterRangeMapEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_; -class ParameterRangesDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ParameterRanges_default_instance_; -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::ContinuousParameterRange(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::ContinuousParameterRange::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}}; - -static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::IntegerParameterRange(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::IntegerParameterRange::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}}; - -static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::CategoricalParameterRange(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::CategoricalParameterRange::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}}; - -static void InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::ParameterRangeOneOf(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::ParameterRangeOneOf::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, { - &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, - &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, - &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,}}; - -static void InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse(); - } - ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, { - &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,}}; - -static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::ParameterRanges(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::ParameterRanges::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, { - &scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[6]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, max_value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, min_value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, scaling_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, max_value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, min_value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, scaling_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, values_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, continuous_parameter_range_), - offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, integer_parameter_range_), - offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, categorical_parameter_range_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, parameter_range_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, parameter_range_map_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::sagemaker::ContinuousParameterRange)}, - { 8, -1, sizeof(::flyteidl::plugins::sagemaker::IntegerParameterRange)}, - { 16, -1, sizeof(::flyteidl::plugins::sagemaker::CategoricalParameterRange)}, - { 22, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRangeOneOf)}, - { 31, 38, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse)}, - { 40, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, "flyteidl/plugins/sagemaker/parameter_ranges.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[] = - "\n1flyteidl/plugins/sagemaker/parameter_r" - "anges.proto\022\032flyteidl.plugins.sagemaker\"" - "\215\001\n\030ContinuousParameterRange\022\021\n\tmax_valu" - "e\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_ty" - "pe\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hy" - "perparameterScalingType\"\212\001\n\025IntegerParam" - "eterRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_valu" - "e\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl" - ".plugins.sagemaker.HyperparameterScaling" - "Type\"+\n\031CategoricalParameterRange\022\016\n\006val" - "ues\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032con" - "tinuous_parameter_range\030\001 \001(\01324.flyteidl" - ".plugins.sagemaker.ContinuousParameterRa" - "ngeH\000\022T\n\027integer_parameter_range\030\002 \001(\01321" - ".flyteidl.plugins.sagemaker.IntegerParam" - "eterRangeH\000\022\\\n\033categorical_parameter_ran" - "ge\030\003 \001(\01325.flyteidl.plugins.sagemaker.Ca" - "tegoricalParameterRangeH\000B\026\n\024parameter_r" - "ange_type\"\335\001\n\017ParameterRanges\022_\n\023paramet" - "er_range_map\030\001 \003(\0132B.flyteidl.plugins.sa" - "gemaker.ParameterRanges.ParameterRangeMa" - "pEntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030" - "\001 \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins." - "sagemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyp" - "erparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINE" - "AR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITH" - "MIC\020\003B5Z3github.com/lyft/flyteidl/gen/pb" - "-go/flyteidl/pluginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, - "flyteidl/plugins/sagemaker/parameter_ranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, 1108, -}; - -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { -namespace sagemaker { -const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[0]; -} -bool HyperparameterScalingType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - - -// =================================================================== - -void ContinuousParameterRange::InitAsDefaultInstance() { -} -class ContinuousParameterRange::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ContinuousParameterRange::kMaxValueFieldNumber; -const int ContinuousParameterRange::kMinValueFieldNumber; -const int ContinuousParameterRange::kScalingTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ContinuousParameterRange::ContinuousParameterRange() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) -} -ContinuousParameterRange::ContinuousParameterRange(const ContinuousParameterRange& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&max_value_, &from.max_value_, - static_cast(reinterpret_cast(&scaling_type_) - - reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) -} - -void ContinuousParameterRange::SharedCtor() { - ::memset(&max_value_, 0, static_cast( - reinterpret_cast(&scaling_type_) - - reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); -} - -ContinuousParameterRange::~ContinuousParameterRange() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) - SharedDtor(); -} - -void ContinuousParameterRange::SharedDtor() { -} - -void ContinuousParameterRange::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ContinuousParameterRange& ContinuousParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); - return *internal_default_instance(); -} - - -void ContinuousParameterRange::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&max_value_, 0, static_cast( - reinterpret_cast(&scaling_type_) - - reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ContinuousParameterRange::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // double max_value = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 9) goto handle_unusual; - msg->set_max_value(::google::protobuf::io::UnalignedLoad(ptr)); - ptr += sizeof(double); - break; - } - // double min_value = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 17) goto handle_unusual; - msg->set_min_value(::google::protobuf::io::UnalignedLoad(ptr)); - ptr += sizeof(double); - break; - } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_scaling_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ContinuousParameterRange::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // double max_value = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (9 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &max_value_))); - } else { - goto handle_unusual; - } - break; - } - - // double min_value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (17 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &min_value_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_scaling_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ContinuousParameterRange) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ContinuousParameterRange) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ContinuousParameterRange::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // double max_value = 1; - if (this->max_value() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->max_value(), output); - } - - // double min_value = 2; - if (this->min_value() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->min_value(), output); - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - if (this->scaling_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->scaling_type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ContinuousParameterRange) -} - -::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // double max_value = 1; - if (this->max_value() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->max_value(), target); - } - - // double min_value = 2; - if (this->min_value() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->min_value(), target); - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - if (this->scaling_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->scaling_type(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ContinuousParameterRange) - return target; -} - -size_t ContinuousParameterRange::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // double max_value = 1; - if (this->max_value() != 0) { - total_size += 1 + 8; - } - - // double min_value = 2; - if (this->min_value() != 0) { - total_size += 1 + 8; - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - if (this->scaling_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->scaling_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ContinuousParameterRange::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - GOOGLE_DCHECK_NE(&from, this); - const ContinuousParameterRange* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ContinuousParameterRange) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ContinuousParameterRange) - MergeFrom(*source); - } -} - -void ContinuousParameterRange::MergeFrom(const ContinuousParameterRange& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.max_value() != 0) { - set_max_value(from.max_value()); - } - if (from.min_value() != 0) { - set_min_value(from.min_value()); - } - if (from.scaling_type() != 0) { - set_scaling_type(from.scaling_type()); - } -} - -void ContinuousParameterRange::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ContinuousParameterRange::CopyFrom(const ContinuousParameterRange& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ContinuousParameterRange::IsInitialized() const { - return true; -} - -void ContinuousParameterRange::Swap(ContinuousParameterRange* other) { - if (other == this) return; - InternalSwap(other); -} -void ContinuousParameterRange::InternalSwap(ContinuousParameterRange* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(max_value_, other->max_value_); - swap(min_value_, other->min_value_); - swap(scaling_type_, other->scaling_type_); -} - -::google::protobuf::Metadata ContinuousParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void IntegerParameterRange::InitAsDefaultInstance() { -} -class IntegerParameterRange::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int IntegerParameterRange::kMaxValueFieldNumber; -const int IntegerParameterRange::kMinValueFieldNumber; -const int IntegerParameterRange::kScalingTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -IntegerParameterRange::IntegerParameterRange() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.IntegerParameterRange) -} -IntegerParameterRange::IntegerParameterRange(const IntegerParameterRange& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&max_value_, &from.max_value_, - static_cast(reinterpret_cast(&scaling_type_) - - reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.IntegerParameterRange) -} - -void IntegerParameterRange::SharedCtor() { - ::memset(&max_value_, 0, static_cast( - reinterpret_cast(&scaling_type_) - - reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); -} - -IntegerParameterRange::~IntegerParameterRange() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.IntegerParameterRange) - SharedDtor(); -} - -void IntegerParameterRange::SharedDtor() { -} - -void IntegerParameterRange::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const IntegerParameterRange& IntegerParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); - return *internal_default_instance(); -} - - -void IntegerParameterRange::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&max_value_, 0, static_cast( - reinterpret_cast(&scaling_type_) - - reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IntegerParameterRange::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // int64 max_value = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_max_value(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int64 min_value = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_min_value(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_scaling_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool IntegerParameterRange::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int64 max_value = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &max_value_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 min_value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &min_value_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_scaling_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.IntegerParameterRange) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.IntegerParameterRange) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void IntegerParameterRange::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 max_value = 1; - if (this->max_value() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->max_value(), output); - } - - // int64 min_value = 2; - if (this->min_value() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->min_value(), output); - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - if (this->scaling_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->scaling_type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.IntegerParameterRange) -} - -::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 max_value = 1; - if (this->max_value() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->max_value(), target); - } - - // int64 min_value = 2; - if (this->min_value() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->min_value(), target); - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - if (this->scaling_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->scaling_type(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.IntegerParameterRange) - return target; -} - -size_t IntegerParameterRange::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int64 max_value = 1; - if (this->max_value() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->max_value()); - } - - // int64 min_value = 2; - if (this->min_value() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->min_value()); - } - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - if (this->scaling_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->scaling_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void IntegerParameterRange::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - GOOGLE_DCHECK_NE(&from, this); - const IntegerParameterRange* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.IntegerParameterRange) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.IntegerParameterRange) - MergeFrom(*source); - } -} - -void IntegerParameterRange::MergeFrom(const IntegerParameterRange& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.max_value() != 0) { - set_max_value(from.max_value()); - } - if (from.min_value() != 0) { - set_min_value(from.min_value()); - } - if (from.scaling_type() != 0) { - set_scaling_type(from.scaling_type()); - } -} - -void IntegerParameterRange::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IntegerParameterRange::CopyFrom(const IntegerParameterRange& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IntegerParameterRange::IsInitialized() const { - return true; -} - -void IntegerParameterRange::Swap(IntegerParameterRange* other) { - if (other == this) return; - InternalSwap(other); -} -void IntegerParameterRange::InternalSwap(IntegerParameterRange* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(max_value_, other->max_value_); - swap(min_value_, other->min_value_); - swap(scaling_type_, other->scaling_type_); -} - -::google::protobuf::Metadata IntegerParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CategoricalParameterRange::InitAsDefaultInstance() { -} -class CategoricalParameterRange::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CategoricalParameterRange::kValuesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CategoricalParameterRange::CategoricalParameterRange() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) -} -CategoricalParameterRange::CategoricalParameterRange(const CategoricalParameterRange& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - values_(from.values_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) -} - -void CategoricalParameterRange::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); -} - -CategoricalParameterRange::~CategoricalParameterRange() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) - SharedDtor(); -} - -void CategoricalParameterRange::SharedDtor() { -} - -void CategoricalParameterRange::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CategoricalParameterRange& CategoricalParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); - return *internal_default_instance(); -} - - -void CategoricalParameterRange::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - values_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CategoricalParameterRange::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // repeated string values = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.CategoricalParameterRange.values"); - object = msg->add_values(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CategoricalParameterRange::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string values = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_values())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->values(this->values_size() - 1).data(), - static_cast(this->values(this->values_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.CategoricalParameterRange.values")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.CategoricalParameterRange) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.CategoricalParameterRange) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CategoricalParameterRange::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string values = 1; - for (int i = 0, n = this->values_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->values(i).data(), static_cast(this->values(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.CategoricalParameterRange.values"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->values(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.CategoricalParameterRange) -} - -::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string values = 1; - for (int i = 0, n = this->values_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->values(i).data(), static_cast(this->values(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.CategoricalParameterRange.values"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->values(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.CategoricalParameterRange) - return target; -} - -size_t CategoricalParameterRange::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string values = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->values_size()); - for (int i = 0, n = this->values_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->values(i)); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CategoricalParameterRange::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - GOOGLE_DCHECK_NE(&from, this); - const CategoricalParameterRange* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.CategoricalParameterRange) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.CategoricalParameterRange) - MergeFrom(*source); - } -} - -void CategoricalParameterRange::MergeFrom(const CategoricalParameterRange& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - values_.MergeFrom(from.values_); -} - -void CategoricalParameterRange::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CategoricalParameterRange::CopyFrom(const CategoricalParameterRange& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CategoricalParameterRange::IsInitialized() const { - return true; -} - -void CategoricalParameterRange::Swap(CategoricalParameterRange* other) { - if (other == this) return; - InternalSwap(other); -} -void CategoricalParameterRange::InternalSwap(CategoricalParameterRange* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - values_.InternalSwap(CastToBase(&other->values_)); -} - -::google::protobuf::Metadata CategoricalParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ParameterRangeOneOf::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.continuous_parameter_range_ = const_cast< ::flyteidl::plugins::sagemaker::ContinuousParameterRange*>( - ::flyteidl::plugins::sagemaker::ContinuousParameterRange::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.integer_parameter_range_ = const_cast< ::flyteidl::plugins::sagemaker::IntegerParameterRange*>( - ::flyteidl::plugins::sagemaker::IntegerParameterRange::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.categorical_parameter_range_ = const_cast< ::flyteidl::plugins::sagemaker::CategoricalParameterRange*>( - ::flyteidl::plugins::sagemaker::CategoricalParameterRange::internal_default_instance()); -} -class ParameterRangeOneOf::HasBitSetters { - public: - static const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuous_parameter_range(const ParameterRangeOneOf* msg); - static const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integer_parameter_range(const ParameterRangeOneOf* msg); - static const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categorical_parameter_range(const ParameterRangeOneOf* msg); -}; - -const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& -ParameterRangeOneOf::HasBitSetters::continuous_parameter_range(const ParameterRangeOneOf* msg) { - return *msg->parameter_range_type_.continuous_parameter_range_; -} -const ::flyteidl::plugins::sagemaker::IntegerParameterRange& -ParameterRangeOneOf::HasBitSetters::integer_parameter_range(const ParameterRangeOneOf* msg) { - return *msg->parameter_range_type_.integer_parameter_range_; -} -const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& -ParameterRangeOneOf::HasBitSetters::categorical_parameter_range(const ParameterRangeOneOf* msg) { - return *msg->parameter_range_type_.categorical_parameter_range_; -} -void ParameterRangeOneOf::set_allocated_continuous_parameter_range(::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_parameter_range_type(); - if (continuous_parameter_range) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - continuous_parameter_range = ::google::protobuf::internal::GetOwnedMessage( - message_arena, continuous_parameter_range, submessage_arena); - } - set_has_continuous_parameter_range(); - parameter_range_type_.continuous_parameter_range_ = continuous_parameter_range; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) -} -void ParameterRangeOneOf::set_allocated_integer_parameter_range(::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_parameter_range_type(); - if (integer_parameter_range) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - integer_parameter_range = ::google::protobuf::internal::GetOwnedMessage( - message_arena, integer_parameter_range, submessage_arena); - } - set_has_integer_parameter_range(); - parameter_range_type_.integer_parameter_range_ = integer_parameter_range; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) -} -void ParameterRangeOneOf::set_allocated_categorical_parameter_range(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_parameter_range_type(); - if (categorical_parameter_range) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - categorical_parameter_range = ::google::protobuf::internal::GetOwnedMessage( - message_arena, categorical_parameter_range, submessage_arena); - } - set_has_categorical_parameter_range(); - parameter_range_type_.categorical_parameter_range_ = categorical_parameter_range; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ParameterRangeOneOf::kContinuousParameterRangeFieldNumber; -const int ParameterRangeOneOf::kIntegerParameterRangeFieldNumber; -const int ParameterRangeOneOf::kCategoricalParameterRangeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ParameterRangeOneOf::ParameterRangeOneOf() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ParameterRangeOneOf) -} -ParameterRangeOneOf::ParameterRangeOneOf(const ParameterRangeOneOf& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_parameter_range_type(); - switch (from.parameter_range_type_case()) { - case kContinuousParameterRange: { - mutable_continuous_parameter_range()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuous_parameter_range()); - break; - } - case kIntegerParameterRange: { - mutable_integer_parameter_range()->::flyteidl::plugins::sagemaker::IntegerParameterRange::MergeFrom(from.integer_parameter_range()); - break; - } - case kCategoricalParameterRange: { - mutable_categorical_parameter_range()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categorical_parameter_range()); - break; - } - case PARAMETER_RANGE_TYPE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ParameterRangeOneOf) -} - -void ParameterRangeOneOf::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); - clear_has_parameter_range_type(); -} - -ParameterRangeOneOf::~ParameterRangeOneOf() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - SharedDtor(); -} - -void ParameterRangeOneOf::SharedDtor() { - if (has_parameter_range_type()) { - clear_parameter_range_type(); - } -} - -void ParameterRangeOneOf::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ParameterRangeOneOf& ParameterRangeOneOf::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); - return *internal_default_instance(); -} - - -void ParameterRangeOneOf::clear_parameter_range_type() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - switch (parameter_range_type_case()) { - case kContinuousParameterRange: { - delete parameter_range_type_.continuous_parameter_range_; - break; - } - case kIntegerParameterRange: { - delete parameter_range_type_.integer_parameter_range_; - break; - } - case kCategoricalParameterRange: { - delete parameter_range_type_.categorical_parameter_range_; - break; - } - case PARAMETER_RANGE_TYPE_NOT_SET: { - break; - } - } - _oneof_case_[0] = PARAMETER_RANGE_TYPE_NOT_SET; -} - - -void ParameterRangeOneOf::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_parameter_range_type(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ParameterRangeOneOf::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::ContinuousParameterRange::_InternalParse; - object = msg->mutable_continuous_parameter_range(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::IntegerParameterRange::_InternalParse; - object = msg->mutable_integer_parameter_range(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::CategoricalParameterRange::_InternalParse; - object = msg->mutable_categorical_parameter_range(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ParameterRangeOneOf::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_continuous_parameter_range())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_integer_parameter_range())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_categorical_parameter_range())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ParameterRangeOneOf::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - if (has_continuous_parameter_range()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::continuous_parameter_range(this), output); - } - - // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - if (has_integer_parameter_range()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::integer_parameter_range(this), output); - } - - // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - if (has_categorical_parameter_range()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::categorical_parameter_range(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ParameterRangeOneOf) -} - -::google::protobuf::uint8* ParameterRangeOneOf::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - if (has_continuous_parameter_range()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::continuous_parameter_range(this), target); - } - - // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - if (has_integer_parameter_range()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::integer_parameter_range(this), target); - } - - // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - if (has_categorical_parameter_range()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::categorical_parameter_range(this), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - return target; -} - -size_t ParameterRangeOneOf::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (parameter_range_type_case()) { - // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - case kContinuousParameterRange: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *parameter_range_type_.continuous_parameter_range_); - break; - } - // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - case kIntegerParameterRange: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *parameter_range_type_.integer_parameter_range_); - break; - } - // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - case kCategoricalParameterRange: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *parameter_range_type_.categorical_parameter_range_); - break; - } - case PARAMETER_RANGE_TYPE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ParameterRangeOneOf::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - GOOGLE_DCHECK_NE(&from, this); - const ParameterRangeOneOf* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - MergeFrom(*source); - } -} - -void ParameterRangeOneOf::MergeFrom(const ParameterRangeOneOf& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.parameter_range_type_case()) { - case kContinuousParameterRange: { - mutable_continuous_parameter_range()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuous_parameter_range()); - break; - } - case kIntegerParameterRange: { - mutable_integer_parameter_range()->::flyteidl::plugins::sagemaker::IntegerParameterRange::MergeFrom(from.integer_parameter_range()); - break; - } - case kCategoricalParameterRange: { - mutable_categorical_parameter_range()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categorical_parameter_range()); - break; - } - case PARAMETER_RANGE_TYPE_NOT_SET: { - break; - } - } -} - -void ParameterRangeOneOf::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ParameterRangeOneOf::CopyFrom(const ParameterRangeOneOf& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ParameterRangeOneOf::IsInitialized() const { - return true; -} - -void ParameterRangeOneOf::Swap(ParameterRangeOneOf* other) { - if (other == this) return; - InternalSwap(other); -} -void ParameterRangeOneOf::InternalSwap(ParameterRangeOneOf* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(parameter_range_type_, other->parameter_range_type_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata ParameterRangeOneOf::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -ParameterRanges_ParameterRangeMapEntry_DoNotUse::ParameterRanges_ParameterRangeMapEntry_DoNotUse() {} -ParameterRanges_ParameterRangeMapEntry_DoNotUse::ParameterRanges_ParameterRangeMapEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom(const ParameterRanges_ParameterRangeMapEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata ParameterRanges_ParameterRangeMapEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[4]; -} -void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ParameterRanges_ParameterRangeMapEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - ParameterRanges_ParameterRangeMapEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void ParameterRanges::InitAsDefaultInstance() { -} -class ParameterRanges::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ParameterRanges::kParameterRangeMapFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ParameterRanges::ParameterRanges() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ParameterRanges) -} -ParameterRanges::ParameterRanges(const ParameterRanges& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - parameter_range_map_.MergeFrom(from.parameter_range_map_); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ParameterRanges) -} - -void ParameterRanges::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); -} - -ParameterRanges::~ParameterRanges() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ParameterRanges) - SharedDtor(); -} - -void ParameterRanges::SharedDtor() { -} - -void ParameterRanges::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ParameterRanges& ParameterRanges::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); - return *internal_default_instance(); -} - - -void ParameterRanges::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ParameterRanges) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - parameter_range_map_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ParameterRanges::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // map parameter_range_map = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->parameter_range_map_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ParameterRanges::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ParameterRanges) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // map parameter_range_map = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - ParameterRanges_ParameterRangeMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - ParameterRanges_ParameterRangeMapEntry_DoNotUse, - ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 >, - ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf > > parser(¶meter_range_map_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ParameterRanges) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ParameterRanges) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ParameterRanges::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ParameterRanges) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map parameter_range_map = 1; - if (!this->parameter_range_map().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key"); - } - }; - - if (output->IsSerializationDeterministic() && - this->parameter_range_map().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->parameter_range_map().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator - it = this->parameter_range_map().begin(); - it != this->parameter_range_map().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(parameter_range_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator - it = this->parameter_range_map().begin(); - it != this->parameter_range_map().end(); ++it) { - entry.reset(parameter_range_map_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ParameterRanges) -} - -::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ParameterRanges) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map parameter_range_map = 1; - if (!this->parameter_range_map().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key"); - } - }; - - if (false && - this->parameter_range_map().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->parameter_range_map().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator - it = this->parameter_range_map().begin(); - it != this->parameter_range_map().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(parameter_range_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator - it = this->parameter_range_map().begin(); - it != this->parameter_range_map().end(); ++it) { - entry.reset(parameter_range_map_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ParameterRanges) - return target; -} - -size_t ParameterRanges::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ParameterRanges) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // map parameter_range_map = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->parameter_range_map_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator - it = this->parameter_range_map().begin(); - it != this->parameter_range_map().end(); ++it) { - entry.reset(parameter_range_map_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ParameterRanges::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ParameterRanges) - GOOGLE_DCHECK_NE(&from, this); - const ParameterRanges* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ParameterRanges) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ParameterRanges) - MergeFrom(*source); - } -} - -void ParameterRanges::MergeFrom(const ParameterRanges& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ParameterRanges) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - parameter_range_map_.MergeFrom(from.parameter_range_map_); -} - -void ParameterRanges::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ParameterRanges) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ParameterRanges::CopyFrom(const ParameterRanges& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ParameterRanges) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ParameterRanges::IsInitialized() const { - return true; -} - -void ParameterRanges::Swap(ParameterRanges* other) { - if (other == this) return; - InternalSwap(other); -} -void ParameterRanges::InternalSwap(ParameterRanges* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - parameter_range_map_.Swap(&other->parameter_range_map_); -} - -::google::protobuf::Metadata ParameterRanges::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::IntegerParameterRange >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRangeOneOf* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRanges >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRanges >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h deleted file mode 100644 index 2e9f9462b..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h +++ /dev/null @@ -1,1163 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/parameter_ranges.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[6] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto(); -namespace flyteidl { -namespace plugins { -namespace sagemaker { -class CategoricalParameterRange; -class CategoricalParameterRangeDefaultTypeInternal; -extern CategoricalParameterRangeDefaultTypeInternal _CategoricalParameterRange_default_instance_; -class ContinuousParameterRange; -class ContinuousParameterRangeDefaultTypeInternal; -extern ContinuousParameterRangeDefaultTypeInternal _ContinuousParameterRange_default_instance_; -class IntegerParameterRange; -class IntegerParameterRangeDefaultTypeInternal; -extern IntegerParameterRangeDefaultTypeInternal _IntegerParameterRange_default_instance_; -class ParameterRangeOneOf; -class ParameterRangeOneOfDefaultTypeInternal; -extern ParameterRangeOneOfDefaultTypeInternal _ParameterRangeOneOf_default_instance_; -class ParameterRanges; -class ParameterRangesDefaultTypeInternal; -extern ParameterRangesDefaultTypeInternal _ParameterRanges_default_instance_; -class ParameterRanges_ParameterRangeMapEntry_DoNotUse; -class ParameterRanges_ParameterRangeMapEntry_DoNotUseDefaultTypeInternal; -extern ParameterRanges_ParameterRangeMapEntry_DoNotUseDefaultTypeInternal _ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_; -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::CategoricalParameterRange>(Arena*); -template<> ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ContinuousParameterRange>(Arena*); -template<> ::flyteidl::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::IntegerParameterRange>(Arena*); -template<> ::flyteidl::plugins::sagemaker::ParameterRangeOneOf* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRangeOneOf>(Arena*); -template<> ::flyteidl::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(Arena*); -template<> ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { -namespace sagemaker { - -enum HyperparameterScalingType { - AUTO = 0, - LINEAR = 1, - LOGARITHMIC = 2, - REVERSELOGARITHMIC = 3, - HyperparameterScalingType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - HyperparameterScalingType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool HyperparameterScalingType_IsValid(int value); -const HyperparameterScalingType HyperparameterScalingType_MIN = AUTO; -const HyperparameterScalingType HyperparameterScalingType_MAX = REVERSELOGARITHMIC; -const int HyperparameterScalingType_ARRAYSIZE = HyperparameterScalingType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor(); -inline const ::std::string& HyperparameterScalingType_Name(HyperparameterScalingType value) { - return ::google::protobuf::internal::NameOfEnum( - HyperparameterScalingType_descriptor(), value); -} -inline bool HyperparameterScalingType_Parse( - const ::std::string& name, HyperparameterScalingType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HyperparameterScalingType_descriptor(), name, value); -} -// =================================================================== - -class ContinuousParameterRange final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ContinuousParameterRange) */ { - public: - ContinuousParameterRange(); - virtual ~ContinuousParameterRange(); - - ContinuousParameterRange(const ContinuousParameterRange& from); - - inline ContinuousParameterRange& operator=(const ContinuousParameterRange& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ContinuousParameterRange(ContinuousParameterRange&& from) noexcept - : ContinuousParameterRange() { - *this = ::std::move(from); - } - - inline ContinuousParameterRange& operator=(ContinuousParameterRange&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const ContinuousParameterRange& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ContinuousParameterRange* internal_default_instance() { - return reinterpret_cast( - &_ContinuousParameterRange_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(ContinuousParameterRange* other); - friend void swap(ContinuousParameterRange& a, ContinuousParameterRange& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ContinuousParameterRange* New() const final { - return CreateMaybeMessage(nullptr); - } - - ContinuousParameterRange* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ContinuousParameterRange& from); - void MergeFrom(const ContinuousParameterRange& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ContinuousParameterRange* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // double max_value = 1; - void clear_max_value(); - static const int kMaxValueFieldNumber = 1; - double max_value() const; - void set_max_value(double value); - - // double min_value = 2; - void clear_min_value(); - static const int kMinValueFieldNumber = 2; - double min_value() const; - void set_min_value(double value); - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - void clear_scaling_type(); - static const int kScalingTypeFieldNumber = 3; - ::flyteidl::plugins::sagemaker::HyperparameterScalingType scaling_type() const; - void set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - double max_value_; - double min_value_; - int scaling_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; -}; -// ------------------------------------------------------------------- - -class IntegerParameterRange final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.IntegerParameterRange) */ { - public: - IntegerParameterRange(); - virtual ~IntegerParameterRange(); - - IntegerParameterRange(const IntegerParameterRange& from); - - inline IntegerParameterRange& operator=(const IntegerParameterRange& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - IntegerParameterRange(IntegerParameterRange&& from) noexcept - : IntegerParameterRange() { - *this = ::std::move(from); - } - - inline IntegerParameterRange& operator=(IntegerParameterRange&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const IntegerParameterRange& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IntegerParameterRange* internal_default_instance() { - return reinterpret_cast( - &_IntegerParameterRange_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(IntegerParameterRange* other); - friend void swap(IntegerParameterRange& a, IntegerParameterRange& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline IntegerParameterRange* New() const final { - return CreateMaybeMessage(nullptr); - } - - IntegerParameterRange* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const IntegerParameterRange& from); - void MergeFrom(const IntegerParameterRange& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(IntegerParameterRange* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 max_value = 1; - void clear_max_value(); - static const int kMaxValueFieldNumber = 1; - ::google::protobuf::int64 max_value() const; - void set_max_value(::google::protobuf::int64 value); - - // int64 min_value = 2; - void clear_min_value(); - static const int kMinValueFieldNumber = 2; - ::google::protobuf::int64 min_value() const; - void set_min_value(::google::protobuf::int64 value); - - // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - void clear_scaling_type(); - static const int kScalingTypeFieldNumber = 3; - ::flyteidl::plugins::sagemaker::HyperparameterScalingType scaling_type() const; - void set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int64 max_value_; - ::google::protobuf::int64 min_value_; - int scaling_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; -}; -// ------------------------------------------------------------------- - -class CategoricalParameterRange final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.CategoricalParameterRange) */ { - public: - CategoricalParameterRange(); - virtual ~CategoricalParameterRange(); - - CategoricalParameterRange(const CategoricalParameterRange& from); - - inline CategoricalParameterRange& operator=(const CategoricalParameterRange& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CategoricalParameterRange(CategoricalParameterRange&& from) noexcept - : CategoricalParameterRange() { - *this = ::std::move(from); - } - - inline CategoricalParameterRange& operator=(CategoricalParameterRange&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const CategoricalParameterRange& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CategoricalParameterRange* internal_default_instance() { - return reinterpret_cast( - &_CategoricalParameterRange_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(CategoricalParameterRange* other); - friend void swap(CategoricalParameterRange& a, CategoricalParameterRange& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CategoricalParameterRange* New() const final { - return CreateMaybeMessage(nullptr); - } - - CategoricalParameterRange* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const CategoricalParameterRange& from); - void MergeFrom(const CategoricalParameterRange& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CategoricalParameterRange* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string values = 1; - int values_size() const; - void clear_values(); - static const int kValuesFieldNumber = 1; - const ::std::string& values(int index) const; - ::std::string* mutable_values(int index); - void set_values(int index, const ::std::string& value); - #if LANG_CXX11 - void set_values(int index, ::std::string&& value); - #endif - void set_values(int index, const char* value); - void set_values(int index, const char* value, size_t size); - ::std::string* add_values(); - void add_values(const ::std::string& value); - #if LANG_CXX11 - void add_values(::std::string&& value); - #endif - void add_values(const char* value); - void add_values(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& values() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_values(); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> values_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; -}; -// ------------------------------------------------------------------- - -class ParameterRangeOneOf final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ParameterRangeOneOf) */ { - public: - ParameterRangeOneOf(); - virtual ~ParameterRangeOneOf(); - - ParameterRangeOneOf(const ParameterRangeOneOf& from); - - inline ParameterRangeOneOf& operator=(const ParameterRangeOneOf& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ParameterRangeOneOf(ParameterRangeOneOf&& from) noexcept - : ParameterRangeOneOf() { - *this = ::std::move(from); - } - - inline ParameterRangeOneOf& operator=(ParameterRangeOneOf&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const ParameterRangeOneOf& default_instance(); - - enum ParameterRangeTypeCase { - kContinuousParameterRange = 1, - kIntegerParameterRange = 2, - kCategoricalParameterRange = 3, - PARAMETER_RANGE_TYPE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ParameterRangeOneOf* internal_default_instance() { - return reinterpret_cast( - &_ParameterRangeOneOf_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(ParameterRangeOneOf* other); - friend void swap(ParameterRangeOneOf& a, ParameterRangeOneOf& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ParameterRangeOneOf* New() const final { - return CreateMaybeMessage(nullptr); - } - - ParameterRangeOneOf* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ParameterRangeOneOf& from); - void MergeFrom(const ParameterRangeOneOf& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ParameterRangeOneOf* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - bool has_continuous_parameter_range() const; - void clear_continuous_parameter_range(); - static const int kContinuousParameterRangeFieldNumber = 1; - const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuous_parameter_range() const; - ::flyteidl::plugins::sagemaker::ContinuousParameterRange* release_continuous_parameter_range(); - ::flyteidl::plugins::sagemaker::ContinuousParameterRange* mutable_continuous_parameter_range(); - void set_allocated_continuous_parameter_range(::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range); - - // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - bool has_integer_parameter_range() const; - void clear_integer_parameter_range(); - static const int kIntegerParameterRangeFieldNumber = 2; - const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integer_parameter_range() const; - ::flyteidl::plugins::sagemaker::IntegerParameterRange* release_integer_parameter_range(); - ::flyteidl::plugins::sagemaker::IntegerParameterRange* mutable_integer_parameter_range(); - void set_allocated_integer_parameter_range(::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range); - - // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - bool has_categorical_parameter_range() const; - void clear_categorical_parameter_range(); - static const int kCategoricalParameterRangeFieldNumber = 3; - const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categorical_parameter_range() const; - ::flyteidl::plugins::sagemaker::CategoricalParameterRange* release_categorical_parameter_range(); - ::flyteidl::plugins::sagemaker::CategoricalParameterRange* mutable_categorical_parameter_range(); - void set_allocated_categorical_parameter_range(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range); - - void clear_parameter_range_type(); - ParameterRangeTypeCase parameter_range_type_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - private: - class HasBitSetters; - void set_has_continuous_parameter_range(); - void set_has_integer_parameter_range(); - void set_has_categorical_parameter_range(); - - inline bool has_parameter_range_type() const; - inline void clear_has_parameter_range_type(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union ParameterRangeTypeUnion { - ParameterRangeTypeUnion() {} - ::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range_; - ::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range_; - ::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range_; - } parameter_range_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; -}; -// ------------------------------------------------------------------- - -class ParameterRanges_ParameterRangeMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - ParameterRanges_ParameterRangeMapEntry_DoNotUse(); - ParameterRanges_ParameterRangeMapEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const ParameterRanges_ParameterRangeMapEntry_DoNotUse& other); - static const ParameterRanges_ParameterRangeMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class ParameterRanges final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ParameterRanges) */ { - public: - ParameterRanges(); - virtual ~ParameterRanges(); - - ParameterRanges(const ParameterRanges& from); - - inline ParameterRanges& operator=(const ParameterRanges& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ParameterRanges(ParameterRanges&& from) noexcept - : ParameterRanges() { - *this = ::std::move(from); - } - - inline ParameterRanges& operator=(ParameterRanges&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const ParameterRanges& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ParameterRanges* internal_default_instance() { - return reinterpret_cast( - &_ParameterRanges_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(ParameterRanges* other); - friend void swap(ParameterRanges& a, ParameterRanges& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ParameterRanges* New() const final { - return CreateMaybeMessage(nullptr); - } - - ParameterRanges* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ParameterRanges& from); - void MergeFrom(const ParameterRanges& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ParameterRanges* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // map parameter_range_map = 1; - int parameter_range_map_size() const; - void clear_parameter_range_map(); - static const int kParameterRangeMapFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >& - parameter_range_map() const; - ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >* - mutable_parameter_range_map(); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - ParameterRanges_ParameterRangeMapEntry_DoNotUse, - ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > parameter_range_map_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ContinuousParameterRange - -// double max_value = 1; -inline void ContinuousParameterRange::clear_max_value() { - max_value_ = 0; -} -inline double ContinuousParameterRange::max_value() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value) - return max_value_; -} -inline void ContinuousParameterRange::set_max_value(double value) { - - max_value_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value) -} - -// double min_value = 2; -inline void ContinuousParameterRange::clear_min_value() { - min_value_ = 0; -} -inline double ContinuousParameterRange::min_value() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value) - return min_value_; -} -inline void ContinuousParameterRange::set_min_value(double value) { - - min_value_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value) -} - -// .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; -inline void ContinuousParameterRange::clear_scaling_type() { - scaling_type_ = 0; -} -inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType ContinuousParameterRange::scaling_type() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type) - return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scaling_type_); -} -inline void ContinuousParameterRange::set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { - - scaling_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type) -} - -// ------------------------------------------------------------------- - -// IntegerParameterRange - -// int64 max_value = 1; -inline void IntegerParameterRange::clear_max_value() { - max_value_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 IntegerParameterRange::max_value() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.max_value) - return max_value_; -} -inline void IntegerParameterRange::set_max_value(::google::protobuf::int64 value) { - - max_value_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.max_value) -} - -// int64 min_value = 2; -inline void IntegerParameterRange::clear_min_value() { - min_value_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 IntegerParameterRange::min_value() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.min_value) - return min_value_; -} -inline void IntegerParameterRange::set_min_value(::google::protobuf::int64 value) { - - min_value_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.min_value) -} - -// .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; -inline void IntegerParameterRange::clear_scaling_type() { - scaling_type_ = 0; -} -inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType IntegerParameterRange::scaling_type() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type) - return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scaling_type_); -} -inline void IntegerParameterRange::set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { - - scaling_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type) -} - -// ------------------------------------------------------------------- - -// CategoricalParameterRange - -// repeated string values = 1; -inline int CategoricalParameterRange::values_size() const { - return values_.size(); -} -inline void CategoricalParameterRange::clear_values() { - values_.Clear(); -} -inline const ::std::string& CategoricalParameterRange::values(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) - return values_.Get(index); -} -inline ::std::string* CategoricalParameterRange::mutable_values(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) - return values_.Mutable(index); -} -inline void CategoricalParameterRange::set_values(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) - values_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void CategoricalParameterRange::set_values(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) - values_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void CategoricalParameterRange::set_values(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - values_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) -} -inline void CategoricalParameterRange::set_values(int index, const char* value, size_t size) { - values_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) -} -inline ::std::string* CategoricalParameterRange::add_values() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) - return values_.Add(); -} -inline void CategoricalParameterRange::add_values(const ::std::string& value) { - values_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) -} -#if LANG_CXX11 -inline void CategoricalParameterRange::add_values(::std::string&& value) { - values_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) -} -#endif -inline void CategoricalParameterRange::add_values(const char* value) { - GOOGLE_DCHECK(value != nullptr); - values_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) -} -inline void CategoricalParameterRange::add_values(const char* value, size_t size) { - values_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -CategoricalParameterRange::values() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) - return values_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -CategoricalParameterRange::mutable_values() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) - return &values_; -} - -// ------------------------------------------------------------------- - -// ParameterRangeOneOf - -// .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; -inline bool ParameterRangeOneOf::has_continuous_parameter_range() const { - return parameter_range_type_case() == kContinuousParameterRange; -} -inline void ParameterRangeOneOf::set_has_continuous_parameter_range() { - _oneof_case_[0] = kContinuousParameterRange; -} -inline void ParameterRangeOneOf::clear_continuous_parameter_range() { - if (has_continuous_parameter_range()) { - delete parameter_range_type_.continuous_parameter_range_; - clear_has_parameter_range_type(); - } -} -inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::release_continuous_parameter_range() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) - if (has_continuous_parameter_range()) { - clear_has_parameter_range_type(); - ::flyteidl::plugins::sagemaker::ContinuousParameterRange* temp = parameter_range_type_.continuous_parameter_range_; - parameter_range_type_.continuous_parameter_range_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& ParameterRangeOneOf::continuous_parameter_range() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) - return has_continuous_parameter_range() - ? *parameter_range_type_.continuous_parameter_range_ - : *reinterpret_cast< ::flyteidl::plugins::sagemaker::ContinuousParameterRange*>(&::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::mutable_continuous_parameter_range() { - if (!has_continuous_parameter_range()) { - clear_parameter_range_type(); - set_has_continuous_parameter_range(); - parameter_range_type_.continuous_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) - return parameter_range_type_.continuous_parameter_range_; -} - -// .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; -inline bool ParameterRangeOneOf::has_integer_parameter_range() const { - return parameter_range_type_case() == kIntegerParameterRange; -} -inline void ParameterRangeOneOf::set_has_integer_parameter_range() { - _oneof_case_[0] = kIntegerParameterRange; -} -inline void ParameterRangeOneOf::clear_integer_parameter_range() { - if (has_integer_parameter_range()) { - delete parameter_range_type_.integer_parameter_range_; - clear_has_parameter_range_type(); - } -} -inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::release_integer_parameter_range() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) - if (has_integer_parameter_range()) { - clear_has_parameter_range_type(); - ::flyteidl::plugins::sagemaker::IntegerParameterRange* temp = parameter_range_type_.integer_parameter_range_; - parameter_range_type_.integer_parameter_range_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::plugins::sagemaker::IntegerParameterRange& ParameterRangeOneOf::integer_parameter_range() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) - return has_integer_parameter_range() - ? *parameter_range_type_.integer_parameter_range_ - : *reinterpret_cast< ::flyteidl::plugins::sagemaker::IntegerParameterRange*>(&::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::mutable_integer_parameter_range() { - if (!has_integer_parameter_range()) { - clear_parameter_range_type(); - set_has_integer_parameter_range(); - parameter_range_type_.integer_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) - return parameter_range_type_.integer_parameter_range_; -} - -// .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; -inline bool ParameterRangeOneOf::has_categorical_parameter_range() const { - return parameter_range_type_case() == kCategoricalParameterRange; -} -inline void ParameterRangeOneOf::set_has_categorical_parameter_range() { - _oneof_case_[0] = kCategoricalParameterRange; -} -inline void ParameterRangeOneOf::clear_categorical_parameter_range() { - if (has_categorical_parameter_range()) { - delete parameter_range_type_.categorical_parameter_range_; - clear_has_parameter_range_type(); - } -} -inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::release_categorical_parameter_range() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) - if (has_categorical_parameter_range()) { - clear_has_parameter_range_type(); - ::flyteidl::plugins::sagemaker::CategoricalParameterRange* temp = parameter_range_type_.categorical_parameter_range_; - parameter_range_type_.categorical_parameter_range_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& ParameterRangeOneOf::categorical_parameter_range() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) - return has_categorical_parameter_range() - ? *parameter_range_type_.categorical_parameter_range_ - : *reinterpret_cast< ::flyteidl::plugins::sagemaker::CategoricalParameterRange*>(&::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::mutable_categorical_parameter_range() { - if (!has_categorical_parameter_range()) { - clear_parameter_range_type(); - set_has_categorical_parameter_range(); - parameter_range_type_.categorical_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) - return parameter_range_type_.categorical_parameter_range_; -} - -inline bool ParameterRangeOneOf::has_parameter_range_type() const { - return parameter_range_type_case() != PARAMETER_RANGE_TYPE_NOT_SET; -} -inline void ParameterRangeOneOf::clear_has_parameter_range_type() { - _oneof_case_[0] = PARAMETER_RANGE_TYPE_NOT_SET; -} -inline ParameterRangeOneOf::ParameterRangeTypeCase ParameterRangeOneOf::parameter_range_type_case() const { - return ParameterRangeOneOf::ParameterRangeTypeCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ParameterRanges - -// map parameter_range_map = 1; -inline int ParameterRanges::parameter_range_map_size() const { - return parameter_range_map_.size(); -} -inline void ParameterRanges::clear_parameter_range_map() { - parameter_range_map_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >& -ParameterRanges::parameter_range_map() const { - // @@protoc_insertion_point(field_map:flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map) - return parameter_range_map_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >* -ParameterRanges::mutable_parameter_range_map() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map) - return parameter_range_map_.MutableMap(); -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterScalingType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterScalingType>() { - return ::flyteidl::plugins::sagemaker::HyperparameterScalingType_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.cc deleted file mode 100644 index e7b54a6ee..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.cc +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/training_job.proto - -#include "flyteidl/plugins/sagemaker/training_job.pb.h" -#include "flyteidl/plugins/sagemaker/training_job.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { -namespace sagemaker { - -} // namespace flyteidl -} // namespace plugins -} // namespace sagemaker - diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.h deleted file mode 100644 index 802320ea7..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.h +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/training_job.proto -#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto__INCLUDED - -#include "flyteidl/plugins/sagemaker/training_job.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { -namespace sagemaker { - -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc deleted file mode 100644 index d12672edc..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc +++ /dev/null @@ -1,2215 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/training_job.proto - -#include "flyteidl/plugins/sagemaker/training_job.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; -namespace flyteidl { -namespace plugins { -namespace sagemaker { -class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AlgorithmSpecification_MetricDefinition_default_instance_; -class AlgorithmSpecificationDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AlgorithmSpecification_default_instance_; -class TrainingJobConfigDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TrainingJobConfig_default_instance_; -class StoppingConditionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _StoppingCondition_default_instance_; -class TrainingJobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TrainingJob_default_instance_; -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; - -static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmSpecification(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::AlgorithmSpecification::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, { - &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; - -static void InitDefaultsTrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_TrainingJobConfig_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::TrainingJobConfig(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::TrainingJobConfig::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; - -static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::StoppingCondition(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::StoppingCondition::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; - -static void InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::TrainingJob(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::TrainingJob::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, { - &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base, - &scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[5]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[2]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, regex_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, input_mode_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_version_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, metric_definitions_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, instance_count_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, instance_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, volume_size_in_gb_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, max_runtime_in_seconds_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, max_wait_time_in_seconds_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, algorithm_specification_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, training_job_config_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, interruptible_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition)}, - { 7, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)}, - { 16, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJobConfig)}, - { 24, -1, sizeof(::flyteidl::plugins::sagemaker::StoppingCondition)}, - { 31, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJob)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJobConfig_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, "flyteidl/plugins/sagemaker/training_job.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 5, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[] = - "\n-flyteidl/plugins/sagemaker/training_jo" - "b.proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026" - "AlgorithmSpecification\0229\n\ninput_mode\030\001 \001" - "(\0162%.flyteidl.plugins.sagemaker.InputMod" - "e\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plu" - "gins.sagemaker.AlgorithmName\022\031\n\021algorith" - "m_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 " - "\003(\0132C.flyteidl.plugins.sagemaker.Algorit" - "hmSpecification.MetricDefinition\032/\n\020Metr" - "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(" - "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count" - "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_" - "size_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n" - "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai" - "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022" - "S\n\027algorithm_specification\030\001 \001(\01322.flyte" - "idl.plugins.sagemaker.AlgorithmSpecifica" - "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt" - "eidl.plugins.sagemaker.TrainingJobConfig" - "\022\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004" - "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS" - "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl" - "yteidl/gen/pb-go/flyteidl/pluginsb\006proto" - "3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, - "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 921, -}; - -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { -namespace sagemaker { -const ::google::protobuf::EnumDescriptor* InputMode_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[0]; -} -bool InputMode_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* AlgorithmName_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[1]; -} -bool AlgorithmName_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - - -// =================================================================== - -void AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance() { -} -class AlgorithmSpecification_MetricDefinition::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AlgorithmSpecification_MetricDefinition::kNameFieldNumber; -const int AlgorithmSpecification_MetricDefinition::kRegexFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) -} -AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.regex().size() > 0) { - regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) -} - -void AlgorithmSpecification_MetricDefinition::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -AlgorithmSpecification_MetricDefinition::~AlgorithmSpecification_MetricDefinition() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - SharedDtor(); -} - -void AlgorithmSpecification_MetricDefinition::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - regex_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void AlgorithmSpecification_MetricDefinition::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AlgorithmSpecification_MetricDefinition& AlgorithmSpecification_MetricDefinition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - return *internal_default_instance(); -} - - -void AlgorithmSpecification_MetricDefinition::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // string name = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string regex = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex"); - object = msg->mutable_regex(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name")); - } else { - goto handle_unusual; - } - break; - } - - // string regex = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_regex())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->regex().data(), static_cast(this->regex().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // string regex = 2; - if (this->regex().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->regex().data(), static_cast(this->regex().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->regex(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) -} - -::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // string regex = 2; - if (this->regex().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->regex().data(), static_cast(this->regex().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->regex(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - return target; -} - -size_t AlgorithmSpecification_MetricDefinition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // string regex = 2; - if (this->regex().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->regex()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AlgorithmSpecification_MetricDefinition::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - GOOGLE_DCHECK_NE(&from, this); - const AlgorithmSpecification_MetricDefinition* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - MergeFrom(*source); - } -} - -void AlgorithmSpecification_MetricDefinition::MergeFrom(const AlgorithmSpecification_MetricDefinition& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.regex().size() > 0) { - - regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); - } -} - -void AlgorithmSpecification_MetricDefinition::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AlgorithmSpecification_MetricDefinition::CopyFrom(const AlgorithmSpecification_MetricDefinition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AlgorithmSpecification_MetricDefinition::IsInitialized() const { - return true; -} - -void AlgorithmSpecification_MetricDefinition::Swap(AlgorithmSpecification_MetricDefinition* other) { - if (other == this) return; - InternalSwap(other); -} -void AlgorithmSpecification_MetricDefinition::InternalSwap(AlgorithmSpecification_MetricDefinition* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - regex_.Swap(&other->regex_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata AlgorithmSpecification_MetricDefinition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void AlgorithmSpecification::InitAsDefaultInstance() { -} -class AlgorithmSpecification::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AlgorithmSpecification::kInputModeFieldNumber; -const int AlgorithmSpecification::kAlgorithmNameFieldNumber; -const int AlgorithmSpecification::kAlgorithmVersionFieldNumber; -const int AlgorithmSpecification::kMetricDefinitionsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AlgorithmSpecification::AlgorithmSpecification() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) -} -AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - metric_definitions_(from.metric_definitions_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - algorithm_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.algorithm_version().size() > 0) { - algorithm_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_version_); - } - ::memcpy(&input_mode_, &from.input_mode_, - static_cast(reinterpret_cast(&algorithm_name_) - - reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) -} - -void AlgorithmSpecification::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - algorithm_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&input_mode_, 0, static_cast( - reinterpret_cast(&algorithm_name_) - - reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_)); -} - -AlgorithmSpecification::~AlgorithmSpecification() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) - SharedDtor(); -} - -void AlgorithmSpecification::SharedDtor() { - algorithm_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void AlgorithmSpecification::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AlgorithmSpecification& AlgorithmSpecification::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - return *internal_default_instance(); -} - - -void AlgorithmSpecification::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - metric_definitions_.Clear(); - algorithm_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&input_mode_, 0, static_cast( - reinterpret_cast(&algorithm_name_) - - reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AlgorithmSpecification::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_input_mode(static_cast<::flyteidl::plugins::sagemaker::InputMode>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_algorithm_name(static_cast<::flyteidl::plugins::sagemaker::AlgorithmName>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string algorithm_version = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version"); - object = msg->mutable_algorithm_version(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::_InternalParse; - object = msg->add_metric_definitions(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AlgorithmSpecification::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_input_mode(static_cast< ::flyteidl::plugins::sagemaker::InputMode >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_algorithm_name(static_cast< ::flyteidl::plugins::sagemaker::AlgorithmName >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string algorithm_version = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_algorithm_version())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->algorithm_version().data(), static_cast(this->algorithm_version().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_metric_definitions())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmSpecification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmSpecification) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AlgorithmSpecification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - if (this->input_mode() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->input_mode(), output); - } - - // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - if (this->algorithm_name() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->algorithm_name(), output); - } - - // string algorithm_version = 3; - if (this->algorithm_version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->algorithm_version().data(), static_cast(this->algorithm_version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->algorithm_version(), output); - } - - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - for (unsigned int i = 0, - n = static_cast(this->metric_definitions_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->metric_definitions(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmSpecification) -} - -::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - if (this->input_mode() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->input_mode(), target); - } - - // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - if (this->algorithm_name() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->algorithm_name(), target); - } - - // string algorithm_version = 3; - if (this->algorithm_version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->algorithm_version().data(), static_cast(this->algorithm_version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->algorithm_version(), target); - } - - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - for (unsigned int i = 0, - n = static_cast(this->metric_definitions_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->metric_definitions(static_cast(i)), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmSpecification) - return target; -} - -size_t AlgorithmSpecification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - { - unsigned int count = static_cast(this->metric_definitions_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->metric_definitions(static_cast(i))); - } - } - - // string algorithm_version = 3; - if (this->algorithm_version().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->algorithm_version()); - } - - // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - if (this->input_mode() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->input_mode()); - } - - // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - if (this->algorithm_name() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->algorithm_name()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AlgorithmSpecification::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - GOOGLE_DCHECK_NE(&from, this); - const AlgorithmSpecification* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmSpecification) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmSpecification) - MergeFrom(*source); - } -} - -void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - metric_definitions_.MergeFrom(from.metric_definitions_); - if (from.algorithm_version().size() > 0) { - - algorithm_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_version_); - } - if (from.input_mode() != 0) { - set_input_mode(from.input_mode()); - } - if (from.algorithm_name() != 0) { - set_algorithm_name(from.algorithm_name()); - } -} - -void AlgorithmSpecification::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AlgorithmSpecification::CopyFrom(const AlgorithmSpecification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AlgorithmSpecification::IsInitialized() const { - return true; -} - -void AlgorithmSpecification::Swap(AlgorithmSpecification* other) { - if (other == this) return; - InternalSwap(other); -} -void AlgorithmSpecification::InternalSwap(AlgorithmSpecification* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&metric_definitions_)->InternalSwap(CastToBase(&other->metric_definitions_)); - algorithm_version_.Swap(&other->algorithm_version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(input_mode_, other->input_mode_); - swap(algorithm_name_, other->algorithm_name_); -} - -::google::protobuf::Metadata AlgorithmSpecification::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TrainingJobConfig::InitAsDefaultInstance() { -} -class TrainingJobConfig::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TrainingJobConfig::kInstanceCountFieldNumber; -const int TrainingJobConfig::kInstanceTypeFieldNumber; -const int TrainingJobConfig::kVolumeSizeInGbFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TrainingJobConfig::TrainingJobConfig() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJobConfig) -} -TrainingJobConfig::TrainingJobConfig(const TrainingJobConfig& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - instance_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.instance_type().size() > 0) { - instance_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instance_type_); - } - ::memcpy(&instance_count_, &from.instance_count_, - static_cast(reinterpret_cast(&volume_size_in_gb_) - - reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJobConfig) -} - -void TrainingJobConfig::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - instance_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&instance_count_, 0, static_cast( - reinterpret_cast(&volume_size_in_gb_) - - reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); -} - -TrainingJobConfig::~TrainingJobConfig() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJobConfig) - SharedDtor(); -} - -void TrainingJobConfig::SharedDtor() { - instance_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void TrainingJobConfig::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TrainingJobConfig& TrainingJobConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - return *internal_default_instance(); -} - - -void TrainingJobConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJobConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - instance_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&instance_count_, 0, static_cast( - reinterpret_cast(&volume_size_in_gb_) - - reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TrainingJobConfig::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // int64 instance_count = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_instance_count(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string instance_type = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type"); - object = msg->mutable_instance_type(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // int64 volume_size_in_gb = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_volume_size_in_gb(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TrainingJobConfig::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJobConfig) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int64 instance_count = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &instance_count_))); - } else { - goto handle_unusual; - } - break; - } - - // string instance_type = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_instance_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->instance_type().data(), static_cast(this->instance_type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type")); - } else { - goto handle_unusual; - } - break; - } - - // int64 volume_size_in_gb = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &volume_size_in_gb_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJobConfig) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJobConfig) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TrainingJobConfig::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJobConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 instance_count = 1; - if (this->instance_count() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->instance_count(), output); - } - - // string instance_type = 2; - if (this->instance_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->instance_type().data(), static_cast(this->instance_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->instance_type(), output); - } - - // int64 volume_size_in_gb = 3; - if (this->volume_size_in_gb() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->volume_size_in_gb(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJobConfig) -} - -::google::protobuf::uint8* TrainingJobConfig::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.TrainingJobConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 instance_count = 1; - if (this->instance_count() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->instance_count(), target); - } - - // string instance_type = 2; - if (this->instance_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->instance_type().data(), static_cast(this->instance_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->instance_type(), target); - } - - // int64 volume_size_in_gb = 3; - if (this->volume_size_in_gb() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->volume_size_in_gb(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.TrainingJobConfig) - return target; -} - -size_t TrainingJobConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.TrainingJobConfig) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string instance_type = 2; - if (this->instance_type().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->instance_type()); - } - - // int64 instance_count = 1; - if (this->instance_count() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->instance_count()); - } - - // int64 volume_size_in_gb = 3; - if (this->volume_size_in_gb() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->volume_size_in_gb()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TrainingJobConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig) - GOOGLE_DCHECK_NE(&from, this); - const TrainingJobConfig* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.TrainingJobConfig) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.TrainingJobConfig) - MergeFrom(*source); - } -} - -void TrainingJobConfig::MergeFrom(const TrainingJobConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.instance_type().size() > 0) { - - instance_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instance_type_); - } - if (from.instance_count() != 0) { - set_instance_count(from.instance_count()); - } - if (from.volume_size_in_gb() != 0) { - set_volume_size_in_gb(from.volume_size_in_gb()); - } -} - -void TrainingJobConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TrainingJobConfig::CopyFrom(const TrainingJobConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TrainingJobConfig::IsInitialized() const { - return true; -} - -void TrainingJobConfig::Swap(TrainingJobConfig* other) { - if (other == this) return; - InternalSwap(other); -} -void TrainingJobConfig::InternalSwap(TrainingJobConfig* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - instance_type_.Swap(&other->instance_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(instance_count_, other->instance_count_); - swap(volume_size_in_gb_, other->volume_size_in_gb_); -} - -::google::protobuf::Metadata TrainingJobConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void StoppingCondition::InitAsDefaultInstance() { -} -class StoppingCondition::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StoppingCondition::kMaxRuntimeInSecondsFieldNumber; -const int StoppingCondition::kMaxWaitTimeInSecondsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StoppingCondition::StoppingCondition() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.StoppingCondition) -} -StoppingCondition::StoppingCondition(const StoppingCondition& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&max_runtime_in_seconds_, &from.max_runtime_in_seconds_, - static_cast(reinterpret_cast(&max_wait_time_in_seconds_) - - reinterpret_cast(&max_runtime_in_seconds_)) + sizeof(max_wait_time_in_seconds_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.StoppingCondition) -} - -void StoppingCondition::SharedCtor() { - ::memset(&max_runtime_in_seconds_, 0, static_cast( - reinterpret_cast(&max_wait_time_in_seconds_) - - reinterpret_cast(&max_runtime_in_seconds_)) + sizeof(max_wait_time_in_seconds_)); -} - -StoppingCondition::~StoppingCondition() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.StoppingCondition) - SharedDtor(); -} - -void StoppingCondition::SharedDtor() { -} - -void StoppingCondition::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StoppingCondition& StoppingCondition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - return *internal_default_instance(); -} - - -void StoppingCondition::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.StoppingCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&max_runtime_in_seconds_, 0, static_cast( - reinterpret_cast(&max_wait_time_in_seconds_) - - reinterpret_cast(&max_runtime_in_seconds_)) + sizeof(max_wait_time_in_seconds_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StoppingCondition::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // int64 max_runtime_in_seconds = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_max_runtime_in_seconds(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int64 max_wait_time_in_seconds = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_max_wait_time_in_seconds(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StoppingCondition::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.StoppingCondition) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int64 max_runtime_in_seconds = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &max_runtime_in_seconds_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 max_wait_time_in_seconds = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &max_wait_time_in_seconds_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.StoppingCondition) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.StoppingCondition) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StoppingCondition::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.StoppingCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 max_runtime_in_seconds = 1; - if (this->max_runtime_in_seconds() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->max_runtime_in_seconds(), output); - } - - // int64 max_wait_time_in_seconds = 2; - if (this->max_wait_time_in_seconds() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max_wait_time_in_seconds(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.StoppingCondition) -} - -::google::protobuf::uint8* StoppingCondition::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.StoppingCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 max_runtime_in_seconds = 1; - if (this->max_runtime_in_seconds() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->max_runtime_in_seconds(), target); - } - - // int64 max_wait_time_in_seconds = 2; - if (this->max_wait_time_in_seconds() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max_wait_time_in_seconds(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.StoppingCondition) - return target; -} - -size_t StoppingCondition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.StoppingCondition) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int64 max_runtime_in_seconds = 1; - if (this->max_runtime_in_seconds() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->max_runtime_in_seconds()); - } - - // int64 max_wait_time_in_seconds = 2; - if (this->max_wait_time_in_seconds() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->max_wait_time_in_seconds()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StoppingCondition::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.StoppingCondition) - GOOGLE_DCHECK_NE(&from, this); - const StoppingCondition* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.StoppingCondition) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.StoppingCondition) - MergeFrom(*source); - } -} - -void StoppingCondition::MergeFrom(const StoppingCondition& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.StoppingCondition) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.max_runtime_in_seconds() != 0) { - set_max_runtime_in_seconds(from.max_runtime_in_seconds()); - } - if (from.max_wait_time_in_seconds() != 0) { - set_max_wait_time_in_seconds(from.max_wait_time_in_seconds()); - } -} - -void StoppingCondition::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.StoppingCondition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StoppingCondition::CopyFrom(const StoppingCondition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.StoppingCondition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StoppingCondition::IsInitialized() const { - return true; -} - -void StoppingCondition::Swap(StoppingCondition* other) { - if (other == this) return; - InternalSwap(other); -} -void StoppingCondition::InternalSwap(StoppingCondition* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(max_runtime_in_seconds_, other->max_runtime_in_seconds_); - swap(max_wait_time_in_seconds_, other->max_wait_time_in_seconds_); -} - -::google::protobuf::Metadata StoppingCondition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TrainingJob::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->algorithm_specification_ = const_cast< ::flyteidl::plugins::sagemaker::AlgorithmSpecification*>( - ::flyteidl::plugins::sagemaker::AlgorithmSpecification::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->training_job_config_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJobConfig*>( - ::flyteidl::plugins::sagemaker::TrainingJobConfig::internal_default_instance()); -} -class TrainingJob::HasBitSetters { - public: - static const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithm_specification(const TrainingJob* msg); - static const ::flyteidl::plugins::sagemaker::TrainingJobConfig& training_job_config(const TrainingJob* msg); -}; - -const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& -TrainingJob::HasBitSetters::algorithm_specification(const TrainingJob* msg) { - return *msg->algorithm_specification_; -} -const ::flyteidl::plugins::sagemaker::TrainingJobConfig& -TrainingJob::HasBitSetters::training_job_config(const TrainingJob* msg) { - return *msg->training_job_config_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TrainingJob::kAlgorithmSpecificationFieldNumber; -const int TrainingJob::kTrainingJobConfigFieldNumber; -const int TrainingJob::kInterruptibleFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TrainingJob::TrainingJob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJob) -} -TrainingJob::TrainingJob(const TrainingJob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_algorithm_specification()) { - algorithm_specification_ = new ::flyteidl::plugins::sagemaker::AlgorithmSpecification(*from.algorithm_specification_); - } else { - algorithm_specification_ = nullptr; - } - if (from.has_training_job_config()) { - training_job_config_ = new ::flyteidl::plugins::sagemaker::TrainingJobConfig(*from.training_job_config_); - } else { - training_job_config_ = nullptr; - } - interruptible_ = from.interruptible_; - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJob) -} - -void TrainingJob::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - ::memset(&algorithm_specification_, 0, static_cast( - reinterpret_cast(&interruptible_) - - reinterpret_cast(&algorithm_specification_)) + sizeof(interruptible_)); -} - -TrainingJob::~TrainingJob() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJob) - SharedDtor(); -} - -void TrainingJob::SharedDtor() { - if (this != internal_default_instance()) delete algorithm_specification_; - if (this != internal_default_instance()) delete training_job_config_; -} - -void TrainingJob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TrainingJob& TrainingJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - return *internal_default_instance(); -} - - -void TrainingJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && algorithm_specification_ != nullptr) { - delete algorithm_specification_; - } - algorithm_specification_ = nullptr; - if (GetArenaNoVirtual() == nullptr && training_job_config_ != nullptr) { - delete training_job_config_; - } - training_job_config_ = nullptr; - interruptible_ = false; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TrainingJob::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification::_InternalParse; - object = msg->mutable_algorithm_specification(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJobConfig::_InternalParse; - object = msg->mutable_training_job_config(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // bool interruptible = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_interruptible(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TrainingJob::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJob) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_algorithm_specification())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_training_job_config())); - } else { - goto handle_unusual; - } - break; - } - - // bool interruptible = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &interruptible_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TrainingJob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - if (this->has_algorithm_specification()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::algorithm_specification(this), output); - } - - // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - if (this->has_training_job_config()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::training_job_config(this), output); - } - - // bool interruptible = 4; - if (this->interruptible() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->interruptible(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJob) -} - -::google::protobuf::uint8* TrainingJob::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.TrainingJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - if (this->has_algorithm_specification()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::algorithm_specification(this), target); - } - - // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - if (this->has_training_job_config()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::training_job_config(this), target); - } - - // bool interruptible = 4; - if (this->interruptible() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->interruptible(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.TrainingJob) - return target; -} - -size_t TrainingJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.TrainingJob) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - if (this->has_algorithm_specification()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *algorithm_specification_); - } - - // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - if (this->has_training_job_config()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *training_job_config_); - } - - // bool interruptible = 4; - if (this->interruptible() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TrainingJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.TrainingJob) - GOOGLE_DCHECK_NE(&from, this); - const TrainingJob* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.TrainingJob) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.TrainingJob) - MergeFrom(*source); - } -} - -void TrainingJob::MergeFrom(const TrainingJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.TrainingJob) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_algorithm_specification()) { - mutable_algorithm_specification()->::flyteidl::plugins::sagemaker::AlgorithmSpecification::MergeFrom(from.algorithm_specification()); - } - if (from.has_training_job_config()) { - mutable_training_job_config()->::flyteidl::plugins::sagemaker::TrainingJobConfig::MergeFrom(from.training_job_config()); - } - if (from.interruptible() != 0) { - set_interruptible(from.interruptible()); - } -} - -void TrainingJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.TrainingJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TrainingJob::CopyFrom(const TrainingJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.TrainingJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TrainingJob::IsInitialized() const { - return true; -} - -void TrainingJob::Swap(TrainingJob* other) { - if (other == this) return; - InternalSwap(other); -} -void TrainingJob::InternalSwap(TrainingJob* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(algorithm_specification_, other->algorithm_specification_); - swap(training_job_config_, other->training_job_config_); - swap(interruptible_, other->interruptible_); -} - -::google::protobuf::Metadata TrainingJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJobConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJobConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJobConfig >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::StoppingCondition >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::StoppingCondition >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJob >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h deleted file mode 100644 index 649108bd6..000000000 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h +++ /dev/null @@ -1,1304 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/training_job.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[5] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto(); -namespace flyteidl { -namespace plugins { -namespace sagemaker { -class AlgorithmSpecification; -class AlgorithmSpecificationDefaultTypeInternal; -extern AlgorithmSpecificationDefaultTypeInternal _AlgorithmSpecification_default_instance_; -class AlgorithmSpecification_MetricDefinition; -class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal; -extern AlgorithmSpecification_MetricDefinitionDefaultTypeInternal _AlgorithmSpecification_MetricDefinition_default_instance_; -class StoppingCondition; -class StoppingConditionDefaultTypeInternal; -extern StoppingConditionDefaultTypeInternal _StoppingCondition_default_instance_; -class TrainingJob; -class TrainingJobDefaultTypeInternal; -extern TrainingJobDefaultTypeInternal _TrainingJob_default_instance_; -class TrainingJobConfig; -class TrainingJobConfigDefaultTypeInternal; -extern TrainingJobConfigDefaultTypeInternal _TrainingJobConfig_default_instance_; -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(Arena*); -template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition>(Arena*); -template<> ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::StoppingCondition>(Arena*); -template<> ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(Arena*); -template<> ::flyteidl::plugins::sagemaker::TrainingJobConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobConfig>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { -namespace sagemaker { - -enum InputMode { - FILE = 0, - PIPE = 1, - InputMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - InputMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool InputMode_IsValid(int value); -const InputMode InputMode_MIN = FILE; -const InputMode InputMode_MAX = PIPE; -const int InputMode_ARRAYSIZE = InputMode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* InputMode_descriptor(); -inline const ::std::string& InputMode_Name(InputMode value) { - return ::google::protobuf::internal::NameOfEnum( - InputMode_descriptor(), value); -} -inline bool InputMode_Parse( - const ::std::string& name, InputMode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - InputMode_descriptor(), name, value); -} -enum AlgorithmName { - CUSTOM = 0, - XGBOOST = 1, - AlgorithmName_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - AlgorithmName_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool AlgorithmName_IsValid(int value); -const AlgorithmName AlgorithmName_MIN = CUSTOM; -const AlgorithmName AlgorithmName_MAX = XGBOOST; -const int AlgorithmName_ARRAYSIZE = AlgorithmName_MAX + 1; - -const ::google::protobuf::EnumDescriptor* AlgorithmName_descriptor(); -inline const ::std::string& AlgorithmName_Name(AlgorithmName value) { - return ::google::protobuf::internal::NameOfEnum( - AlgorithmName_descriptor(), value); -} -inline bool AlgorithmName_Parse( - const ::std::string& name, AlgorithmName* value) { - return ::google::protobuf::internal::ParseNamedEnum( - AlgorithmName_descriptor(), name, value); -} -// =================================================================== - -class AlgorithmSpecification_MetricDefinition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) */ { - public: - AlgorithmSpecification_MetricDefinition(); - virtual ~AlgorithmSpecification_MetricDefinition(); - - AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from); - - inline AlgorithmSpecification_MetricDefinition& operator=(const AlgorithmSpecification_MetricDefinition& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AlgorithmSpecification_MetricDefinition(AlgorithmSpecification_MetricDefinition&& from) noexcept - : AlgorithmSpecification_MetricDefinition() { - *this = ::std::move(from); - } - - inline AlgorithmSpecification_MetricDefinition& operator=(AlgorithmSpecification_MetricDefinition&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const AlgorithmSpecification_MetricDefinition& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AlgorithmSpecification_MetricDefinition* internal_default_instance() { - return reinterpret_cast( - &_AlgorithmSpecification_MetricDefinition_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(AlgorithmSpecification_MetricDefinition* other); - friend void swap(AlgorithmSpecification_MetricDefinition& a, AlgorithmSpecification_MetricDefinition& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AlgorithmSpecification_MetricDefinition* New() const final { - return CreateMaybeMessage(nullptr); - } - - AlgorithmSpecification_MetricDefinition* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const AlgorithmSpecification_MetricDefinition& from); - void MergeFrom(const AlgorithmSpecification_MetricDefinition& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlgorithmSpecification_MetricDefinition* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // string regex = 2; - void clear_regex(); - static const int kRegexFieldNumber = 2; - const ::std::string& regex() const; - void set_regex(const ::std::string& value); - #if LANG_CXX11 - void set_regex(::std::string&& value); - #endif - void set_regex(const char* value); - void set_regex(const char* value, size_t size); - ::std::string* mutable_regex(); - ::std::string* release_regex(); - void set_allocated_regex(::std::string* regex); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr regex_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; -}; -// ------------------------------------------------------------------- - -class AlgorithmSpecification final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmSpecification) */ { - public: - AlgorithmSpecification(); - virtual ~AlgorithmSpecification(); - - AlgorithmSpecification(const AlgorithmSpecification& from); - - inline AlgorithmSpecification& operator=(const AlgorithmSpecification& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AlgorithmSpecification(AlgorithmSpecification&& from) noexcept - : AlgorithmSpecification() { - *this = ::std::move(from); - } - - inline AlgorithmSpecification& operator=(AlgorithmSpecification&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const AlgorithmSpecification& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AlgorithmSpecification* internal_default_instance() { - return reinterpret_cast( - &_AlgorithmSpecification_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(AlgorithmSpecification* other); - friend void swap(AlgorithmSpecification& a, AlgorithmSpecification& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AlgorithmSpecification* New() const final { - return CreateMaybeMessage(nullptr); - } - - AlgorithmSpecification* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const AlgorithmSpecification& from); - void MergeFrom(const AlgorithmSpecification& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlgorithmSpecification* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef AlgorithmSpecification_MetricDefinition MetricDefinition; - - // accessors ------------------------------------------------------- - - // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - int metric_definitions_size() const; - void clear_metric_definitions(); - static const int kMetricDefinitionsFieldNumber = 4; - ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* mutable_metric_definitions(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* - mutable_metric_definitions(); - const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& metric_definitions(int index) const; - ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* add_metric_definitions(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& - metric_definitions() const; - - // string algorithm_version = 3; - void clear_algorithm_version(); - static const int kAlgorithmVersionFieldNumber = 3; - const ::std::string& algorithm_version() const; - void set_algorithm_version(const ::std::string& value); - #if LANG_CXX11 - void set_algorithm_version(::std::string&& value); - #endif - void set_algorithm_version(const char* value); - void set_algorithm_version(const char* value, size_t size); - ::std::string* mutable_algorithm_version(); - ::std::string* release_algorithm_version(); - void set_allocated_algorithm_version(::std::string* algorithm_version); - - // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - void clear_input_mode(); - static const int kInputModeFieldNumber = 1; - ::flyteidl::plugins::sagemaker::InputMode input_mode() const; - void set_input_mode(::flyteidl::plugins::sagemaker::InputMode value); - - // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - void clear_algorithm_name(); - static const int kAlgorithmNameFieldNumber = 2; - ::flyteidl::plugins::sagemaker::AlgorithmName algorithm_name() const; - void set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition > metric_definitions_; - ::google::protobuf::internal::ArenaStringPtr algorithm_version_; - int input_mode_; - int algorithm_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; -}; -// ------------------------------------------------------------------- - -class TrainingJobConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.TrainingJobConfig) */ { - public: - TrainingJobConfig(); - virtual ~TrainingJobConfig(); - - TrainingJobConfig(const TrainingJobConfig& from); - - inline TrainingJobConfig& operator=(const TrainingJobConfig& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TrainingJobConfig(TrainingJobConfig&& from) noexcept - : TrainingJobConfig() { - *this = ::std::move(from); - } - - inline TrainingJobConfig& operator=(TrainingJobConfig&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const TrainingJobConfig& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TrainingJobConfig* internal_default_instance() { - return reinterpret_cast( - &_TrainingJobConfig_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(TrainingJobConfig* other); - friend void swap(TrainingJobConfig& a, TrainingJobConfig& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TrainingJobConfig* New() const final { - return CreateMaybeMessage(nullptr); - } - - TrainingJobConfig* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TrainingJobConfig& from); - void MergeFrom(const TrainingJobConfig& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TrainingJobConfig* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string instance_type = 2; - void clear_instance_type(); - static const int kInstanceTypeFieldNumber = 2; - const ::std::string& instance_type() const; - void set_instance_type(const ::std::string& value); - #if LANG_CXX11 - void set_instance_type(::std::string&& value); - #endif - void set_instance_type(const char* value); - void set_instance_type(const char* value, size_t size); - ::std::string* mutable_instance_type(); - ::std::string* release_instance_type(); - void set_allocated_instance_type(::std::string* instance_type); - - // int64 instance_count = 1; - void clear_instance_count(); - static const int kInstanceCountFieldNumber = 1; - ::google::protobuf::int64 instance_count() const; - void set_instance_count(::google::protobuf::int64 value); - - // int64 volume_size_in_gb = 3; - void clear_volume_size_in_gb(); - static const int kVolumeSizeInGbFieldNumber = 3; - ::google::protobuf::int64 volume_size_in_gb() const; - void set_volume_size_in_gb(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr instance_type_; - ::google::protobuf::int64 instance_count_; - ::google::protobuf::int64 volume_size_in_gb_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; -}; -// ------------------------------------------------------------------- - -class StoppingCondition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.StoppingCondition) */ { - public: - StoppingCondition(); - virtual ~StoppingCondition(); - - StoppingCondition(const StoppingCondition& from); - - inline StoppingCondition& operator=(const StoppingCondition& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - StoppingCondition(StoppingCondition&& from) noexcept - : StoppingCondition() { - *this = ::std::move(from); - } - - inline StoppingCondition& operator=(StoppingCondition&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const StoppingCondition& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StoppingCondition* internal_default_instance() { - return reinterpret_cast( - &_StoppingCondition_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(StoppingCondition* other); - friend void swap(StoppingCondition& a, StoppingCondition& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline StoppingCondition* New() const final { - return CreateMaybeMessage(nullptr); - } - - StoppingCondition* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const StoppingCondition& from); - void MergeFrom(const StoppingCondition& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StoppingCondition* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 max_runtime_in_seconds = 1; - void clear_max_runtime_in_seconds(); - static const int kMaxRuntimeInSecondsFieldNumber = 1; - ::google::protobuf::int64 max_runtime_in_seconds() const; - void set_max_runtime_in_seconds(::google::protobuf::int64 value); - - // int64 max_wait_time_in_seconds = 2; - void clear_max_wait_time_in_seconds(); - static const int kMaxWaitTimeInSecondsFieldNumber = 2; - ::google::protobuf::int64 max_wait_time_in_seconds() const; - void set_max_wait_time_in_seconds(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int64 max_runtime_in_seconds_; - ::google::protobuf::int64 max_wait_time_in_seconds_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; -}; -// ------------------------------------------------------------------- - -class TrainingJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.TrainingJob) */ { - public: - TrainingJob(); - virtual ~TrainingJob(); - - TrainingJob(const TrainingJob& from); - - inline TrainingJob& operator=(const TrainingJob& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TrainingJob(TrainingJob&& from) noexcept - : TrainingJob() { - *this = ::std::move(from); - } - - inline TrainingJob& operator=(TrainingJob&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const TrainingJob& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TrainingJob* internal_default_instance() { - return reinterpret_cast( - &_TrainingJob_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(TrainingJob* other); - friend void swap(TrainingJob& a, TrainingJob& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TrainingJob* New() const final { - return CreateMaybeMessage(nullptr); - } - - TrainingJob* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TrainingJob& from); - void MergeFrom(const TrainingJob& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TrainingJob* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - bool has_algorithm_specification() const; - void clear_algorithm_specification(); - static const int kAlgorithmSpecificationFieldNumber = 1; - const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithm_specification() const; - ::flyteidl::plugins::sagemaker::AlgorithmSpecification* release_algorithm_specification(); - ::flyteidl::plugins::sagemaker::AlgorithmSpecification* mutable_algorithm_specification(); - void set_allocated_algorithm_specification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification); - - // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - bool has_training_job_config() const; - void clear_training_job_config(); - static const int kTrainingJobConfigFieldNumber = 2; - const ::flyteidl::plugins::sagemaker::TrainingJobConfig& training_job_config() const; - ::flyteidl::plugins::sagemaker::TrainingJobConfig* release_training_job_config(); - ::flyteidl::plugins::sagemaker::TrainingJobConfig* mutable_training_job_config(); - void set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config); - - // bool interruptible = 4; - void clear_interruptible(); - static const int kInterruptibleFieldNumber = 4; - bool interruptible() const; - void set_interruptible(bool value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification_; - ::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config_; - bool interruptible_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// AlgorithmSpecification_MetricDefinition - -// string name = 1; -inline void AlgorithmSpecification_MetricDefinition::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AlgorithmSpecification_MetricDefinition::name() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) - return name_.GetNoArena(); -} -inline void AlgorithmSpecification_MetricDefinition::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) -} -#if LANG_CXX11 -inline void AlgorithmSpecification_MetricDefinition::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) -} -#endif -inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) -} -inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) -} -inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* AlgorithmSpecification_MetricDefinition::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AlgorithmSpecification_MetricDefinition::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) -} - -// string regex = 2; -inline void AlgorithmSpecification_MetricDefinition::clear_regex() { - regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AlgorithmSpecification_MetricDefinition::regex() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) - return regex_.GetNoArena(); -} -inline void AlgorithmSpecification_MetricDefinition::set_regex(const ::std::string& value) { - - regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) -} -#if LANG_CXX11 -inline void AlgorithmSpecification_MetricDefinition::set_regex(::std::string&& value) { - - regex_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) -} -#endif -inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) -} -inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value, size_t size) { - - regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) -} -inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_regex() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) - return regex_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* AlgorithmSpecification_MetricDefinition::release_regex() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) - - return regex_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AlgorithmSpecification_MetricDefinition::set_allocated_regex(::std::string* regex) { - if (regex != nullptr) { - - } else { - - } - regex_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), regex); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) -} - -// ------------------------------------------------------------------- - -// AlgorithmSpecification - -// .flyteidl.plugins.sagemaker.InputMode input_mode = 1; -inline void AlgorithmSpecification::clear_input_mode() { - input_mode_ = 0; -} -inline ::flyteidl::plugins::sagemaker::InputMode AlgorithmSpecification::input_mode() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode) - return static_cast< ::flyteidl::plugins::sagemaker::InputMode >(input_mode_); -} -inline void AlgorithmSpecification::set_input_mode(::flyteidl::plugins::sagemaker::InputMode value) { - - input_mode_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode) -} - -// .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; -inline void AlgorithmSpecification::clear_algorithm_name() { - algorithm_name_ = 0; -} -inline ::flyteidl::plugins::sagemaker::AlgorithmName AlgorithmSpecification::algorithm_name() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) - return static_cast< ::flyteidl::plugins::sagemaker::AlgorithmName >(algorithm_name_); -} -inline void AlgorithmSpecification::set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName value) { - - algorithm_name_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) -} - -// string algorithm_version = 3; -inline void AlgorithmSpecification::clear_algorithm_version() { - algorithm_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AlgorithmSpecification::algorithm_version() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) - return algorithm_version_.GetNoArena(); -} -inline void AlgorithmSpecification::set_algorithm_version(const ::std::string& value) { - - algorithm_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) -} -#if LANG_CXX11 -inline void AlgorithmSpecification::set_algorithm_version(::std::string&& value) { - - algorithm_version_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) -} -#endif -inline void AlgorithmSpecification::set_algorithm_version(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - algorithm_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) -} -inline void AlgorithmSpecification::set_algorithm_version(const char* value, size_t size) { - - algorithm_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) -} -inline ::std::string* AlgorithmSpecification::mutable_algorithm_version() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) - return algorithm_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* AlgorithmSpecification::release_algorithm_version() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) - - return algorithm_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AlgorithmSpecification::set_allocated_algorithm_version(::std::string* algorithm_version) { - if (algorithm_version != nullptr) { - - } else { - - } - algorithm_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), algorithm_version); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) -} - -// repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; -inline int AlgorithmSpecification::metric_definitions_size() const { - return metric_definitions_.size(); -} -inline void AlgorithmSpecification::clear_metric_definitions() { - metric_definitions_.Clear(); -} -inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::mutable_metric_definitions(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) - return metric_definitions_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* -AlgorithmSpecification::mutable_metric_definitions() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) - return &metric_definitions_; -} -inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& AlgorithmSpecification::metric_definitions(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) - return metric_definitions_.Get(index); -} -inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::add_metric_definitions() { - // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) - return metric_definitions_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& -AlgorithmSpecification::metric_definitions() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) - return metric_definitions_; -} - -// ------------------------------------------------------------------- - -// TrainingJobConfig - -// int64 instance_count = 1; -inline void TrainingJobConfig::clear_instance_count() { - instance_count_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 TrainingJobConfig::instance_count() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count) - return instance_count_; -} -inline void TrainingJobConfig::set_instance_count(::google::protobuf::int64 value) { - - instance_count_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count) -} - -// string instance_type = 2; -inline void TrainingJobConfig::clear_instance_type() { - instance_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TrainingJobConfig::instance_type() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) - return instance_type_.GetNoArena(); -} -inline void TrainingJobConfig::set_instance_type(const ::std::string& value) { - - instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) -} -#if LANG_CXX11 -inline void TrainingJobConfig::set_instance_type(::std::string&& value) { - - instance_type_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) -} -#endif -inline void TrainingJobConfig::set_instance_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) -} -inline void TrainingJobConfig::set_instance_type(const char* value, size_t size) { - - instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) -} -inline ::std::string* TrainingJobConfig::mutable_instance_type() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) - return instance_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TrainingJobConfig::release_instance_type() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) - - return instance_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TrainingJobConfig::set_allocated_instance_type(::std::string* instance_type) { - if (instance_type != nullptr) { - - } else { - - } - instance_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instance_type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) -} - -// int64 volume_size_in_gb = 3; -inline void TrainingJobConfig::clear_volume_size_in_gb() { - volume_size_in_gb_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 TrainingJobConfig::volume_size_in_gb() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) - return volume_size_in_gb_; -} -inline void TrainingJobConfig::set_volume_size_in_gb(::google::protobuf::int64 value) { - - volume_size_in_gb_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) -} - -// ------------------------------------------------------------------- - -// StoppingCondition - -// int64 max_runtime_in_seconds = 1; -inline void StoppingCondition::clear_max_runtime_in_seconds() { - max_runtime_in_seconds_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 StoppingCondition::max_runtime_in_seconds() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) - return max_runtime_in_seconds_; -} -inline void StoppingCondition::set_max_runtime_in_seconds(::google::protobuf::int64 value) { - - max_runtime_in_seconds_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) -} - -// int64 max_wait_time_in_seconds = 2; -inline void StoppingCondition::clear_max_wait_time_in_seconds() { - max_wait_time_in_seconds_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 StoppingCondition::max_wait_time_in_seconds() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) - return max_wait_time_in_seconds_; -} -inline void StoppingCondition::set_max_wait_time_in_seconds(::google::protobuf::int64 value) { - - max_wait_time_in_seconds_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) -} - -// ------------------------------------------------------------------- - -// TrainingJob - -// .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; -inline bool TrainingJob::has_algorithm_specification() const { - return this != internal_default_instance() && algorithm_specification_ != nullptr; -} -inline void TrainingJob::clear_algorithm_specification() { - if (GetArenaNoVirtual() == nullptr && algorithm_specification_ != nullptr) { - delete algorithm_specification_; - } - algorithm_specification_ = nullptr; -} -inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& TrainingJob::algorithm_specification() const { - const ::flyteidl::plugins::sagemaker::AlgorithmSpecification* p = algorithm_specification_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* TrainingJob::release_algorithm_specification() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) - - ::flyteidl::plugins::sagemaker::AlgorithmSpecification* temp = algorithm_specification_; - algorithm_specification_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* TrainingJob::mutable_algorithm_specification() { - - if (algorithm_specification_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(GetArenaNoVirtual()); - algorithm_specification_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) - return algorithm_specification_; -} -inline void TrainingJob::set_allocated_algorithm_specification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete algorithm_specification_; - } - if (algorithm_specification) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - algorithm_specification = ::google::protobuf::internal::GetOwnedMessage( - message_arena, algorithm_specification, submessage_arena); - } - - } else { - - } - algorithm_specification_ = algorithm_specification; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) -} - -// .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; -inline bool TrainingJob::has_training_job_config() const { - return this != internal_default_instance() && training_job_config_ != nullptr; -} -inline void TrainingJob::clear_training_job_config() { - if (GetArenaNoVirtual() == nullptr && training_job_config_ != nullptr) { - delete training_job_config_; - } - training_job_config_ = nullptr; -} -inline const ::flyteidl::plugins::sagemaker::TrainingJobConfig& TrainingJob::training_job_config() const { - const ::flyteidl::plugins::sagemaker::TrainingJobConfig* p = training_job_config_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_TrainingJobConfig_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::TrainingJobConfig* TrainingJob::release_training_job_config() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) - - ::flyteidl::plugins::sagemaker::TrainingJobConfig* temp = training_job_config_; - training_job_config_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::TrainingJobConfig* TrainingJob::mutable_training_job_config() { - - if (training_job_config_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobConfig>(GetArenaNoVirtual()); - training_job_config_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) - return training_job_config_; -} -inline void TrainingJob::set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete training_job_config_; - } - if (training_job_config) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - training_job_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, training_job_config, submessage_arena); - } - - } else { - - } - training_job_config_ = training_job_config; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) -} - -// bool interruptible = 4; -inline void TrainingJob::clear_interruptible() { - interruptible_ = false; -} -inline bool TrainingJob::interruptible() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.interruptible) - return interruptible_; -} -inline void TrainingJob::set_interruptible(bool value) { - - interruptible_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.interruptible) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace sagemaker -} // namespace plugins -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::InputMode> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::InputMode>() { - return ::flyteidl::plugins::sagemaker::InputMode_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::AlgorithmName> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::AlgorithmName>() { - return ::flyteidl::plugins::sagemaker::AlgorithmName_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go deleted file mode 100644 index 60dd866e1..000000000 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go +++ /dev/null @@ -1,312 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/hpo_job.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type HyperparameterTuningObjective_HyperparameterTuningObjectiveType int32 - -const ( - HyperparameterTuningObjective_MINIMIZE HyperparameterTuningObjective_HyperparameterTuningObjectiveType = 0 - HyperparameterTuningObjective_MAXIMIZE HyperparameterTuningObjective_HyperparameterTuningObjectiveType = 1 -) - -var HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name = map[int32]string{ - 0: "MINIMIZE", - 1: "MAXIMIZE", -} - -var HyperparameterTuningObjective_HyperparameterTuningObjectiveType_value = map[string]int32{ - "MINIMIZE": 0, - "MAXIMIZE": 1, -} - -func (x HyperparameterTuningObjective_HyperparameterTuningObjectiveType) String() string { - return proto.EnumName(HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name, int32(x)) -} - -func (HyperparameterTuningObjective_HyperparameterTuningObjectiveType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{0, 0} -} - -type HPOJobConfig_HyperparameterTuningStrategy int32 - -const ( - HPOJobConfig_BAYESIAN HPOJobConfig_HyperparameterTuningStrategy = 0 - HPOJobConfig_RANDOM HPOJobConfig_HyperparameterTuningStrategy = 1 -) - -var HPOJobConfig_HyperparameterTuningStrategy_name = map[int32]string{ - 0: "BAYESIAN", - 1: "RANDOM", -} - -var HPOJobConfig_HyperparameterTuningStrategy_value = map[string]int32{ - "BAYESIAN": 0, - "RANDOM": 1, -} - -func (x HPOJobConfig_HyperparameterTuningStrategy) String() string { - return proto.EnumName(HPOJobConfig_HyperparameterTuningStrategy_name, int32(x)) -} - -func (HPOJobConfig_HyperparameterTuningStrategy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{2, 0} -} - -type HPOJobConfig_TrainingJobEarlyStoppingType int32 - -const ( - HPOJobConfig_OFF HPOJobConfig_TrainingJobEarlyStoppingType = 0 - HPOJobConfig_AUTO HPOJobConfig_TrainingJobEarlyStoppingType = 1 -) - -var HPOJobConfig_TrainingJobEarlyStoppingType_name = map[int32]string{ - 0: "OFF", - 1: "AUTO", -} - -var HPOJobConfig_TrainingJobEarlyStoppingType_value = map[string]int32{ - "OFF": 0, - "AUTO": 1, -} - -func (x HPOJobConfig_TrainingJobEarlyStoppingType) String() string { - return proto.EnumName(HPOJobConfig_TrainingJobEarlyStoppingType_name, int32(x)) -} - -func (HPOJobConfig_TrainingJobEarlyStoppingType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{2, 1} -} - -type HyperparameterTuningObjective struct { - ObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType `protobuf:"varint,1,opt,name=objective_type,json=objectiveType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningObjective_HyperparameterTuningObjectiveType" json:"objective_type,omitempty"` - MetricName string `protobuf:"bytes,2,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HyperparameterTuningObjective) Reset() { *m = HyperparameterTuningObjective{} } -func (m *HyperparameterTuningObjective) String() string { return proto.CompactTextString(m) } -func (*HyperparameterTuningObjective) ProtoMessage() {} -func (*HyperparameterTuningObjective) Descriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{0} -} - -func (m *HyperparameterTuningObjective) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HyperparameterTuningObjective.Unmarshal(m, b) -} -func (m *HyperparameterTuningObjective) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HyperparameterTuningObjective.Marshal(b, m, deterministic) -} -func (m *HyperparameterTuningObjective) XXX_Merge(src proto.Message) { - xxx_messageInfo_HyperparameterTuningObjective.Merge(m, src) -} -func (m *HyperparameterTuningObjective) XXX_Size() int { - return xxx_messageInfo_HyperparameterTuningObjective.Size(m) -} -func (m *HyperparameterTuningObjective) XXX_DiscardUnknown() { - xxx_messageInfo_HyperparameterTuningObjective.DiscardUnknown(m) -} - -var xxx_messageInfo_HyperparameterTuningObjective proto.InternalMessageInfo - -func (m *HyperparameterTuningObjective) GetObjectiveType() HyperparameterTuningObjective_HyperparameterTuningObjectiveType { - if m != nil { - return m.ObjectiveType - } - return HyperparameterTuningObjective_MINIMIZE -} - -func (m *HyperparameterTuningObjective) GetMetricName() string { - if m != nil { - return m.MetricName - } - return "" -} - -type HPOJob struct { - TrainingJob *TrainingJob `protobuf:"bytes,1,opt,name=training_job,json=trainingJob,proto3" json:"training_job,omitempty"` - MaxNumberOfTrainingJobs int64 `protobuf:"varint,2,opt,name=max_number_of_training_jobs,json=maxNumberOfTrainingJobs,proto3" json:"max_number_of_training_jobs,omitempty"` - MaxParallelTrainingJobs int64 `protobuf:"varint,3,opt,name=max_parallel_training_jobs,json=maxParallelTrainingJobs,proto3" json:"max_parallel_training_jobs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HPOJob) Reset() { *m = HPOJob{} } -func (m *HPOJob) String() string { return proto.CompactTextString(m) } -func (*HPOJob) ProtoMessage() {} -func (*HPOJob) Descriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{1} -} - -func (m *HPOJob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HPOJob.Unmarshal(m, b) -} -func (m *HPOJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HPOJob.Marshal(b, m, deterministic) -} -func (m *HPOJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_HPOJob.Merge(m, src) -} -func (m *HPOJob) XXX_Size() int { - return xxx_messageInfo_HPOJob.Size(m) -} -func (m *HPOJob) XXX_DiscardUnknown() { - xxx_messageInfo_HPOJob.DiscardUnknown(m) -} - -var xxx_messageInfo_HPOJob proto.InternalMessageInfo - -func (m *HPOJob) GetTrainingJob() *TrainingJob { - if m != nil { - return m.TrainingJob - } - return nil -} - -func (m *HPOJob) GetMaxNumberOfTrainingJobs() int64 { - if m != nil { - return m.MaxNumberOfTrainingJobs - } - return 0 -} - -func (m *HPOJob) GetMaxParallelTrainingJobs() int64 { - if m != nil { - return m.MaxParallelTrainingJobs - } - return 0 -} - -type HPOJobConfig struct { - HyperparameterRanges *ParameterRanges `protobuf:"bytes,1,opt,name=hyperparameter_ranges,json=hyperparameterRanges,proto3" json:"hyperparameter_ranges,omitempty"` - TuningStrategy HPOJobConfig_HyperparameterTuningStrategy `protobuf:"varint,2,opt,name=tuning_strategy,json=tuningStrategy,proto3,enum=flyteidl.plugins.sagemaker.HPOJobConfig_HyperparameterTuningStrategy" json:"tuning_strategy,omitempty"` - TuningObjective *HyperparameterTuningObjective `protobuf:"bytes,3,opt,name=tuning_objective,json=tuningObjective,proto3" json:"tuning_objective,omitempty"` - TrainingJobEarlyStoppingType HPOJobConfig_TrainingJobEarlyStoppingType `protobuf:"varint,4,opt,name=training_job_early_stopping_type,json=trainingJobEarlyStoppingType,proto3,enum=flyteidl.plugins.sagemaker.HPOJobConfig_TrainingJobEarlyStoppingType" json:"training_job_early_stopping_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HPOJobConfig) Reset() { *m = HPOJobConfig{} } -func (m *HPOJobConfig) String() string { return proto.CompactTextString(m) } -func (*HPOJobConfig) ProtoMessage() {} -func (*HPOJobConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{2} -} - -func (m *HPOJobConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HPOJobConfig.Unmarshal(m, b) -} -func (m *HPOJobConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HPOJobConfig.Marshal(b, m, deterministic) -} -func (m *HPOJobConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_HPOJobConfig.Merge(m, src) -} -func (m *HPOJobConfig) XXX_Size() int { - return xxx_messageInfo_HPOJobConfig.Size(m) -} -func (m *HPOJobConfig) XXX_DiscardUnknown() { - xxx_messageInfo_HPOJobConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_HPOJobConfig proto.InternalMessageInfo - -func (m *HPOJobConfig) GetHyperparameterRanges() *ParameterRanges { - if m != nil { - return m.HyperparameterRanges - } - return nil -} - -func (m *HPOJobConfig) GetTuningStrategy() HPOJobConfig_HyperparameterTuningStrategy { - if m != nil { - return m.TuningStrategy - } - return HPOJobConfig_BAYESIAN -} - -func (m *HPOJobConfig) GetTuningObjective() *HyperparameterTuningObjective { - if m != nil { - return m.TuningObjective - } - return nil -} - -func (m *HPOJobConfig) GetTrainingJobEarlyStoppingType() HPOJobConfig_TrainingJobEarlyStoppingType { - if m != nil { - return m.TrainingJobEarlyStoppingType - } - return HPOJobConfig_OFF -} - -func init() { - proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningObjective_HyperparameterTuningObjectiveType", HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name, HyperparameterTuningObjective_HyperparameterTuningObjectiveType_value) - proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobConfig_HyperparameterTuningStrategy", HPOJobConfig_HyperparameterTuningStrategy_name, HPOJobConfig_HyperparameterTuningStrategy_value) - proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobConfig_TrainingJobEarlyStoppingType", HPOJobConfig_TrainingJobEarlyStoppingType_name, HPOJobConfig_TrainingJobEarlyStoppingType_value) - proto.RegisterType((*HyperparameterTuningObjective)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningObjective") - proto.RegisterType((*HPOJob)(nil), "flyteidl.plugins.sagemaker.HPOJob") - proto.RegisterType((*HPOJobConfig)(nil), "flyteidl.plugins.sagemaker.HPOJobConfig") -} - -func init() { - proto.RegisterFile("flyteidl/plugins/sagemaker/hpo_job.proto", fileDescriptor_50903433b4c088ac) -} - -var fileDescriptor_50903433b4c088ac = []byte{ - // 539 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x8f, 0xd2, 0x40, - 0x18, 0xa5, 0x0b, 0xc1, 0xf5, 0x03, 0xb1, 0x99, 0x68, 0xdc, 0x20, 0x46, 0xec, 0x45, 0x12, 0xb3, - 0x6d, 0x96, 0x8d, 0x89, 0x46, 0x13, 0xc3, 0x2a, 0x9b, 0x85, 0x04, 0x4a, 0x0a, 0x26, 0xba, 0x1e, - 0xea, 0x94, 0x1d, 0x4a, 0xd7, 0xb6, 0xd3, 0x4c, 0x07, 0xb3, 0xbd, 0x7a, 0xf0, 0xe6, 0xaf, 0xf2, - 0x07, 0xf8, 0x97, 0x4c, 0x87, 0x52, 0xca, 0x46, 0xc7, 0xb8, 0xc7, 0x6f, 0xfa, 0xde, 0x9b, 0x79, - 0xaf, 0x6f, 0x06, 0x3a, 0x0b, 0x3f, 0xe1, 0xc4, 0xbb, 0xf0, 0x8d, 0xc8, 0x5f, 0xb9, 0x5e, 0x18, - 0x1b, 0x31, 0x76, 0x49, 0x80, 0xbf, 0x10, 0x66, 0x2c, 0x23, 0x6a, 0x5f, 0x52, 0x47, 0x8f, 0x18, - 0xe5, 0x14, 0x35, 0x37, 0x48, 0x3d, 0x43, 0xea, 0x39, 0xb2, 0x79, 0x24, 0x51, 0x89, 0x30, 0xc3, - 0x01, 0xe1, 0x84, 0xd9, 0x0c, 0x87, 0x2e, 0x89, 0xd7, 0x72, 0xcd, 0x43, 0x09, 0x85, 0x33, 0xec, - 0x85, 0x5e, 0xe8, 0x6e, 0x77, 0xd7, 0xbe, 0xef, 0xc1, 0xa3, 0xb3, 0x24, 0x22, 0x2c, 0x97, 0x9b, - 0xad, 0x52, 0x88, 0xe9, 0x5c, 0x92, 0x39, 0xf7, 0xbe, 0x12, 0xf4, 0x4d, 0x81, 0x06, 0xdd, 0x4c, - 0x36, 0x4f, 0x22, 0x72, 0xa0, 0xb4, 0x95, 0x4e, 0xa3, 0xfb, 0x49, 0xff, 0xfb, 0xc9, 0x75, 0xa9, - 0xa6, 0xfc, 0xeb, 0x2c, 0x89, 0x88, 0x75, 0x87, 0x16, 0x47, 0xf4, 0x18, 0x6a, 0x01, 0xe1, 0xcc, - 0x9b, 0xdb, 0x21, 0x0e, 0xc8, 0xc1, 0x5e, 0x5b, 0xe9, 0xdc, 0xb6, 0x60, 0xbd, 0x34, 0xc6, 0x01, - 0xd1, 0xde, 0xc0, 0x93, 0x7f, 0x8a, 0xa2, 0x3a, 0xec, 0x8f, 0x06, 0xe3, 0xc1, 0x68, 0x70, 0xde, - 0x57, 0x4b, 0x62, 0xea, 0x7d, 0x58, 0x4f, 0x8a, 0xf6, 0x4b, 0x81, 0xea, 0xd9, 0xc4, 0x1c, 0x52, - 0x07, 0x0d, 0xa1, 0x5e, 0x4c, 0x4a, 0xd8, 0xad, 0x75, 0x9f, 0xca, 0xec, 0xce, 0x32, 0xfc, 0x90, - 0x3a, 0x56, 0x8d, 0x6f, 0x07, 0xf4, 0x1a, 0x1e, 0x06, 0xf8, 0xca, 0x0e, 0x57, 0x81, 0x43, 0x98, - 0x4d, 0x17, 0x76, 0x51, 0x39, 0x16, 0x46, 0xca, 0xd6, 0x83, 0x00, 0x5f, 0x8d, 0x05, 0xc2, 0x5c, - 0x14, 0x94, 0x62, 0xf4, 0x0a, 0x9a, 0x29, 0x3b, 0x35, 0xe5, 0xfb, 0xc4, 0xbf, 0x46, 0x2e, 0xe7, - 0xe4, 0x49, 0x06, 0x28, 0x92, 0xb5, 0x9f, 0x15, 0xa8, 0xaf, 0x1d, 0xbd, 0xa5, 0xe1, 0xc2, 0x73, - 0xd1, 0x67, 0xb8, 0xbf, 0xdc, 0xc9, 0x28, 0x6b, 0x4e, 0x66, 0xf0, 0x99, 0xcc, 0xe0, 0x64, 0xc3, - 0xb1, 0x04, 0xc5, 0xba, 0xb7, 0xab, 0xb4, 0x5e, 0x45, 0x21, 0xdc, 0xe5, 0x22, 0x77, 0x3b, 0xe6, - 0x0c, 0x73, 0xe2, 0x26, 0xc2, 0x61, 0xa3, 0xdb, 0x97, 0x76, 0xa5, 0x70, 0xc8, 0x3f, 0x56, 0x63, - 0x9a, 0x89, 0x59, 0x0d, 0xbe, 0x33, 0xa3, 0x0b, 0x50, 0xb3, 0xfd, 0xf2, 0xba, 0x88, 0x54, 0x6a, - 0xdd, 0x97, 0x37, 0x2e, 0xa7, 0x95, 0x59, 0xd8, 0xde, 0x80, 0x1f, 0x0a, 0xb4, 0x8b, 0xc9, 0xdb, - 0x04, 0x33, 0x3f, 0xb1, 0x63, 0x4e, 0xa3, 0x28, 0x5d, 0x12, 0x77, 0xa2, 0xf2, 0x9f, 0x3e, 0x0b, - 0xbf, 0xaa, 0x9f, 0xca, 0x4d, 0x33, 0x35, 0xd1, 0xfe, 0x16, 0x97, 0x7c, 0xd5, 0x5e, 0x40, 0x4b, - 0x96, 0x52, 0x5a, 0xec, 0x93, 0xde, 0xc7, 0xfe, 0x74, 0xd0, 0x1b, 0xab, 0x25, 0x04, 0x50, 0xb5, - 0x7a, 0xe3, 0x77, 0xe6, 0x48, 0x55, 0xb4, 0x23, 0x68, 0xc9, 0xf6, 0x45, 0xb7, 0xa0, 0x6c, 0x9e, - 0x9e, 0xaa, 0x25, 0xb4, 0x0f, 0x95, 0xde, 0xfb, 0x99, 0xa9, 0x2a, 0x27, 0xcf, 0xcf, 0x8f, 0x5d, - 0x8f, 0x2f, 0x57, 0x8e, 0x3e, 0xa7, 0x81, 0xe1, 0x27, 0x0b, 0x6e, 0xe4, 0x2f, 0x8c, 0x4b, 0x42, - 0x23, 0x72, 0x0e, 0x5d, 0x6a, 0x5c, 0x7f, 0x74, 0x9c, 0xaa, 0x78, 0x5e, 0x8e, 0x7f, 0x07, 0x00, - 0x00, 0xff, 0xff, 0xc8, 0x08, 0xb2, 0xe9, 0x08, 0x05, 0x00, 0x00, -} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go deleted file mode 100644 index 8ceadb5da..000000000 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go +++ /dev/null @@ -1,276 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/hpo_job.proto - -package plugins - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "strings" - "time" - "unicode/utf8" - - "github.com/golang/protobuf/ptypes" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = ptypes.DynamicAny{} -) - -// define the regex for a UUID once up-front -var _hpo_job_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") - -// Validate checks the field values on HyperparameterTuningObjective with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *HyperparameterTuningObjective) Validate() error { - if m == nil { - return nil - } - - // no validation rules for ObjectiveType - - // no validation rules for MetricName - - return nil -} - -// HyperparameterTuningObjectiveValidationError is the validation error -// returned by HyperparameterTuningObjective.Validate if the designated -// constraints aren't met. -type HyperparameterTuningObjectiveValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e HyperparameterTuningObjectiveValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e HyperparameterTuningObjectiveValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e HyperparameterTuningObjectiveValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e HyperparameterTuningObjectiveValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e HyperparameterTuningObjectiveValidationError) ErrorName() string { - return "HyperparameterTuningObjectiveValidationError" -} - -// Error satisfies the builtin error interface -func (e HyperparameterTuningObjectiveValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sHyperparameterTuningObjective.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = HyperparameterTuningObjectiveValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = HyperparameterTuningObjectiveValidationError{} - -// Validate checks the field values on HPOJob with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *HPOJob) Validate() error { - if m == nil { - return nil - } - - if v, ok := interface{}(m.GetTrainingJob()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return HPOJobValidationError{ - field: "TrainingJob", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for MaxNumberOfTrainingJobs - - // no validation rules for MaxParallelTrainingJobs - - return nil -} - -// HPOJobValidationError is the validation error returned by HPOJob.Validate if -// the designated constraints aren't met. -type HPOJobValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e HPOJobValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e HPOJobValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e HPOJobValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e HPOJobValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e HPOJobValidationError) ErrorName() string { return "HPOJobValidationError" } - -// Error satisfies the builtin error interface -func (e HPOJobValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sHPOJob.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = HPOJobValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = HPOJobValidationError{} - -// Validate checks the field values on HPOJobConfig with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *HPOJobConfig) Validate() error { - if m == nil { - return nil - } - - if v, ok := interface{}(m.GetHyperparameterRanges()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return HPOJobConfigValidationError{ - field: "HyperparameterRanges", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for TuningStrategy - - if v, ok := interface{}(m.GetTuningObjective()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return HPOJobConfigValidationError{ - field: "TuningObjective", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for TrainingJobEarlyStoppingType - - return nil -} - -// HPOJobConfigValidationError is the validation error returned by -// HPOJobConfig.Validate if the designated constraints aren't met. -type HPOJobConfigValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e HPOJobConfigValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e HPOJobConfigValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e HPOJobConfigValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e HPOJobConfigValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e HPOJobConfigValidationError) ErrorName() string { return "HPOJobConfigValidationError" } - -// Error satisfies the builtin error interface -func (e HPOJobConfigValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sHPOJobConfig.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = HPOJobConfigValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = HPOJobConfigValidationError{} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go deleted file mode 100644 index 2f37913f8..000000000 --- a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go +++ /dev/null @@ -1,385 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/parameter_ranges.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type HyperparameterScalingType int32 - -const ( - HyperparameterScalingType_AUTO HyperparameterScalingType = 0 - HyperparameterScalingType_LINEAR HyperparameterScalingType = 1 - HyperparameterScalingType_LOGARITHMIC HyperparameterScalingType = 2 - HyperparameterScalingType_REVERSELOGARITHMIC HyperparameterScalingType = 3 -) - -var HyperparameterScalingType_name = map[int32]string{ - 0: "AUTO", - 1: "LINEAR", - 2: "LOGARITHMIC", - 3: "REVERSELOGARITHMIC", -} - -var HyperparameterScalingType_value = map[string]int32{ - "AUTO": 0, - "LINEAR": 1, - "LOGARITHMIC": 2, - "REVERSELOGARITHMIC": 3, -} - -func (x HyperparameterScalingType) String() string { - return proto.EnumName(HyperparameterScalingType_name, int32(x)) -} - -func (HyperparameterScalingType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5f31fcc87eba0a70, []int{0} -} - -type ContinuousParameterRange struct { - MaxValue float64 `protobuf:"fixed64,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` - MinValue float64 `protobuf:"fixed64,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` - ScalingType HyperparameterScalingType `protobuf:"varint,3,opt,name=scaling_type,json=scalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"scaling_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContinuousParameterRange) Reset() { *m = ContinuousParameterRange{} } -func (m *ContinuousParameterRange) String() string { return proto.CompactTextString(m) } -func (*ContinuousParameterRange) ProtoMessage() {} -func (*ContinuousParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_5f31fcc87eba0a70, []int{0} -} - -func (m *ContinuousParameterRange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContinuousParameterRange.Unmarshal(m, b) -} -func (m *ContinuousParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContinuousParameterRange.Marshal(b, m, deterministic) -} -func (m *ContinuousParameterRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContinuousParameterRange.Merge(m, src) -} -func (m *ContinuousParameterRange) XXX_Size() int { - return xxx_messageInfo_ContinuousParameterRange.Size(m) -} -func (m *ContinuousParameterRange) XXX_DiscardUnknown() { - xxx_messageInfo_ContinuousParameterRange.DiscardUnknown(m) -} - -var xxx_messageInfo_ContinuousParameterRange proto.InternalMessageInfo - -func (m *ContinuousParameterRange) GetMaxValue() float64 { - if m != nil { - return m.MaxValue - } - return 0 -} - -func (m *ContinuousParameterRange) GetMinValue() float64 { - if m != nil { - return m.MinValue - } - return 0 -} - -func (m *ContinuousParameterRange) GetScalingType() HyperparameterScalingType { - if m != nil { - return m.ScalingType - } - return HyperparameterScalingType_AUTO -} - -type IntegerParameterRange struct { - MaxValue int64 `protobuf:"varint,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` - MinValue int64 `protobuf:"varint,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` - ScalingType HyperparameterScalingType `protobuf:"varint,3,opt,name=scaling_type,json=scalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"scaling_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IntegerParameterRange) Reset() { *m = IntegerParameterRange{} } -func (m *IntegerParameterRange) String() string { return proto.CompactTextString(m) } -func (*IntegerParameterRange) ProtoMessage() {} -func (*IntegerParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_5f31fcc87eba0a70, []int{1} -} - -func (m *IntegerParameterRange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IntegerParameterRange.Unmarshal(m, b) -} -func (m *IntegerParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IntegerParameterRange.Marshal(b, m, deterministic) -} -func (m *IntegerParameterRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_IntegerParameterRange.Merge(m, src) -} -func (m *IntegerParameterRange) XXX_Size() int { - return xxx_messageInfo_IntegerParameterRange.Size(m) -} -func (m *IntegerParameterRange) XXX_DiscardUnknown() { - xxx_messageInfo_IntegerParameterRange.DiscardUnknown(m) -} - -var xxx_messageInfo_IntegerParameterRange proto.InternalMessageInfo - -func (m *IntegerParameterRange) GetMaxValue() int64 { - if m != nil { - return m.MaxValue - } - return 0 -} - -func (m *IntegerParameterRange) GetMinValue() int64 { - if m != nil { - return m.MinValue - } - return 0 -} - -func (m *IntegerParameterRange) GetScalingType() HyperparameterScalingType { - if m != nil { - return m.ScalingType - } - return HyperparameterScalingType_AUTO -} - -type CategoricalParameterRange struct { - Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CategoricalParameterRange) Reset() { *m = CategoricalParameterRange{} } -func (m *CategoricalParameterRange) String() string { return proto.CompactTextString(m) } -func (*CategoricalParameterRange) ProtoMessage() {} -func (*CategoricalParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_5f31fcc87eba0a70, []int{2} -} - -func (m *CategoricalParameterRange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CategoricalParameterRange.Unmarshal(m, b) -} -func (m *CategoricalParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CategoricalParameterRange.Marshal(b, m, deterministic) -} -func (m *CategoricalParameterRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_CategoricalParameterRange.Merge(m, src) -} -func (m *CategoricalParameterRange) XXX_Size() int { - return xxx_messageInfo_CategoricalParameterRange.Size(m) -} -func (m *CategoricalParameterRange) XXX_DiscardUnknown() { - xxx_messageInfo_CategoricalParameterRange.DiscardUnknown(m) -} - -var xxx_messageInfo_CategoricalParameterRange proto.InternalMessageInfo - -func (m *CategoricalParameterRange) GetValues() []string { - if m != nil { - return m.Values - } - return nil -} - -type ParameterRangeOneOf struct { - // Types that are valid to be assigned to ParameterRangeType: - // *ParameterRangeOneOf_ContinuousParameterRange - // *ParameterRangeOneOf_IntegerParameterRange - // *ParameterRangeOneOf_CategoricalParameterRange - ParameterRangeType isParameterRangeOneOf_ParameterRangeType `protobuf_oneof:"parameter_range_type"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ParameterRangeOneOf) Reset() { *m = ParameterRangeOneOf{} } -func (m *ParameterRangeOneOf) String() string { return proto.CompactTextString(m) } -func (*ParameterRangeOneOf) ProtoMessage() {} -func (*ParameterRangeOneOf) Descriptor() ([]byte, []int) { - return fileDescriptor_5f31fcc87eba0a70, []int{3} -} - -func (m *ParameterRangeOneOf) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ParameterRangeOneOf.Unmarshal(m, b) -} -func (m *ParameterRangeOneOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ParameterRangeOneOf.Marshal(b, m, deterministic) -} -func (m *ParameterRangeOneOf) XXX_Merge(src proto.Message) { - xxx_messageInfo_ParameterRangeOneOf.Merge(m, src) -} -func (m *ParameterRangeOneOf) XXX_Size() int { - return xxx_messageInfo_ParameterRangeOneOf.Size(m) -} -func (m *ParameterRangeOneOf) XXX_DiscardUnknown() { - xxx_messageInfo_ParameterRangeOneOf.DiscardUnknown(m) -} - -var xxx_messageInfo_ParameterRangeOneOf proto.InternalMessageInfo - -type isParameterRangeOneOf_ParameterRangeType interface { - isParameterRangeOneOf_ParameterRangeType() -} - -type ParameterRangeOneOf_ContinuousParameterRange struct { - ContinuousParameterRange *ContinuousParameterRange `protobuf:"bytes,1,opt,name=continuous_parameter_range,json=continuousParameterRange,proto3,oneof"` -} - -type ParameterRangeOneOf_IntegerParameterRange struct { - IntegerParameterRange *IntegerParameterRange `protobuf:"bytes,2,opt,name=integer_parameter_range,json=integerParameterRange,proto3,oneof"` -} - -type ParameterRangeOneOf_CategoricalParameterRange struct { - CategoricalParameterRange *CategoricalParameterRange `protobuf:"bytes,3,opt,name=categorical_parameter_range,json=categoricalParameterRange,proto3,oneof"` -} - -func (*ParameterRangeOneOf_ContinuousParameterRange) isParameterRangeOneOf_ParameterRangeType() {} - -func (*ParameterRangeOneOf_IntegerParameterRange) isParameterRangeOneOf_ParameterRangeType() {} - -func (*ParameterRangeOneOf_CategoricalParameterRange) isParameterRangeOneOf_ParameterRangeType() {} - -func (m *ParameterRangeOneOf) GetParameterRangeType() isParameterRangeOneOf_ParameterRangeType { - if m != nil { - return m.ParameterRangeType - } - return nil -} - -func (m *ParameterRangeOneOf) GetContinuousParameterRange() *ContinuousParameterRange { - if x, ok := m.GetParameterRangeType().(*ParameterRangeOneOf_ContinuousParameterRange); ok { - return x.ContinuousParameterRange - } - return nil -} - -func (m *ParameterRangeOneOf) GetIntegerParameterRange() *IntegerParameterRange { - if x, ok := m.GetParameterRangeType().(*ParameterRangeOneOf_IntegerParameterRange); ok { - return x.IntegerParameterRange - } - return nil -} - -func (m *ParameterRangeOneOf) GetCategoricalParameterRange() *CategoricalParameterRange { - if x, ok := m.GetParameterRangeType().(*ParameterRangeOneOf_CategoricalParameterRange); ok { - return x.CategoricalParameterRange - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ParameterRangeOneOf) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ParameterRangeOneOf_ContinuousParameterRange)(nil), - (*ParameterRangeOneOf_IntegerParameterRange)(nil), - (*ParameterRangeOneOf_CategoricalParameterRange)(nil), - } -} - -type ParameterRanges struct { - ParameterRangeMap map[string]*ParameterRangeOneOf `protobuf:"bytes,1,rep,name=parameter_range_map,json=parameterRangeMap,proto3" json:"parameter_range_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ParameterRanges) Reset() { *m = ParameterRanges{} } -func (m *ParameterRanges) String() string { return proto.CompactTextString(m) } -func (*ParameterRanges) ProtoMessage() {} -func (*ParameterRanges) Descriptor() ([]byte, []int) { - return fileDescriptor_5f31fcc87eba0a70, []int{4} -} - -func (m *ParameterRanges) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ParameterRanges.Unmarshal(m, b) -} -func (m *ParameterRanges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ParameterRanges.Marshal(b, m, deterministic) -} -func (m *ParameterRanges) XXX_Merge(src proto.Message) { - xxx_messageInfo_ParameterRanges.Merge(m, src) -} -func (m *ParameterRanges) XXX_Size() int { - return xxx_messageInfo_ParameterRanges.Size(m) -} -func (m *ParameterRanges) XXX_DiscardUnknown() { - xxx_messageInfo_ParameterRanges.DiscardUnknown(m) -} - -var xxx_messageInfo_ParameterRanges proto.InternalMessageInfo - -func (m *ParameterRanges) GetParameterRangeMap() map[string]*ParameterRangeOneOf { - if m != nil { - return m.ParameterRangeMap - } - return nil -} - -func init() { - proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterScalingType", HyperparameterScalingType_name, HyperparameterScalingType_value) - proto.RegisterType((*ContinuousParameterRange)(nil), "flyteidl.plugins.sagemaker.ContinuousParameterRange") - proto.RegisterType((*IntegerParameterRange)(nil), "flyteidl.plugins.sagemaker.IntegerParameterRange") - proto.RegisterType((*CategoricalParameterRange)(nil), "flyteidl.plugins.sagemaker.CategoricalParameterRange") - proto.RegisterType((*ParameterRangeOneOf)(nil), "flyteidl.plugins.sagemaker.ParameterRangeOneOf") - proto.RegisterType((*ParameterRanges)(nil), "flyteidl.plugins.sagemaker.ParameterRanges") - proto.RegisterMapType((map[string]*ParameterRangeOneOf)(nil), "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry") -} - -func init() { - proto.RegisterFile("flyteidl/plugins/sagemaker/parameter_ranges.proto", fileDescriptor_5f31fcc87eba0a70) -} - -var fileDescriptor_5f31fcc87eba0a70 = []byte{ - // 502 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0x41, 0x6f, 0x12, 0x41, - 0x14, 0x66, 0x58, 0x6d, 0xca, 0xc3, 0x58, 0x9c, 0x5a, 0x04, 0x7a, 0x21, 0x9c, 0x88, 0x89, 0xbb, - 0x29, 0xd8, 0xc4, 0x78, 0x03, 0xb2, 0x11, 0x92, 0x56, 0xcc, 0x14, 0x1b, 0xd3, 0x0b, 0x19, 0xd6, - 0x61, 0x9d, 0xb0, 0x3b, 0x3b, 0x99, 0x9d, 0xd5, 0xee, 0x4f, 0xf0, 0xb7, 0x98, 0xf8, 0x0b, 0x3d, - 0x18, 0x06, 0x0a, 0x76, 0xcb, 0xa2, 0x27, 0x6f, 0xf3, 0xe6, 0xbd, 0x6f, 0xbe, 0x6f, 0xde, 0xf7, - 0xf2, 0xe0, 0x6c, 0x1e, 0xa4, 0x9a, 0xf1, 0xcf, 0x81, 0x23, 0x83, 0xc4, 0xe7, 0x22, 0x76, 0x62, - 0xea, 0xb3, 0x90, 0x2e, 0x98, 0x72, 0x24, 0x55, 0x34, 0x64, 0x9a, 0xa9, 0xa9, 0xa2, 0xc2, 0x67, - 0xb1, 0x2d, 0x55, 0xa4, 0x23, 0xdc, 0xb8, 0x83, 0xd8, 0x6b, 0x88, 0xbd, 0x81, 0xb4, 0x7e, 0x22, - 0xa8, 0x0d, 0x22, 0xa1, 0xb9, 0x48, 0xa2, 0x24, 0xfe, 0x70, 0xf7, 0x00, 0x59, 0xe2, 0xf1, 0x29, - 0x94, 0x42, 0x7a, 0x3b, 0xfd, 0x4a, 0x83, 0x84, 0xd5, 0x50, 0x13, 0xb5, 0x11, 0x39, 0x0c, 0xe9, - 0xed, 0xf5, 0x32, 0x36, 0x49, 0x2e, 0xd6, 0xc9, 0xe2, 0x3a, 0xc9, 0xc5, 0x2a, 0xf9, 0x09, 0x9e, - 0xc4, 0x1e, 0x0d, 0xb8, 0xf0, 0xa7, 0x3a, 0x95, 0xac, 0x66, 0x35, 0x51, 0xfb, 0x69, 0xe7, 0xdc, - 0xce, 0x57, 0x62, 0x0f, 0x53, 0xc9, 0xd4, 0xe6, 0x07, 0x57, 0x2b, 0xf4, 0x24, 0x95, 0x8c, 0x94, - 0xe3, 0x6d, 0xd0, 0xfa, 0x81, 0xe0, 0x64, 0x24, 0x34, 0xf3, 0x99, 0xfa, 0x9b, 0x5a, 0x6b, 0x9f, - 0x5a, 0xeb, 0xbf, 0xa8, 0xed, 0x42, 0x7d, 0x40, 0x35, 0xf3, 0x23, 0xc5, 0x3d, 0x1a, 0x64, 0x04, - 0x57, 0xe1, 0xc0, 0xe8, 0x89, 0x6b, 0xa8, 0x69, 0xb5, 0x4b, 0x64, 0x1d, 0xb5, 0xbe, 0x5b, 0x70, - 0x7c, 0xbf, 0x74, 0x2c, 0xd8, 0x78, 0x8e, 0x35, 0x34, 0xbc, 0x8d, 0x55, 0xd3, 0x8c, 0xd9, 0xe6, - 0xc7, 0xe5, 0xce, 0xeb, 0x7d, 0xa2, 0xf3, 0x8c, 0x1e, 0x16, 0x48, 0xcd, 0xcb, 0x1b, 0x82, 0x05, - 0xbc, 0xe0, 0xab, 0x7e, 0x3f, 0xa0, 0x2c, 0x1a, 0xca, 0xb3, 0x7d, 0x94, 0x3b, 0xad, 0x1a, 0x16, - 0xc8, 0x09, 0xdf, 0xe9, 0xe1, 0x37, 0x38, 0xf5, 0xb6, 0xfd, 0x7a, 0x40, 0x68, 0x19, 0xc2, 0xbd, - 0xc6, 0xe4, 0xb6, 0x7b, 0x58, 0x20, 0x75, 0x2f, 0x2f, 0xd9, 0xaf, 0xc2, 0xf3, 0x0c, 0x99, 0x19, - 0x85, 0xd6, 0x2f, 0x04, 0x47, 0xf7, 0x4b, 0x63, 0xac, 0xe0, 0x38, 0x5b, 0x1b, 0x52, 0x69, 0x4c, - 0x2c, 0x77, 0xfa, 0xfb, 0xc4, 0x65, 0x5e, 0xca, 0xc4, 0x97, 0x54, 0xba, 0x42, 0xab, 0x94, 0x3c, - 0x93, 0xd9, 0xfb, 0x46, 0x02, 0xd5, 0xdd, 0xc5, 0xb8, 0x02, 0xd6, 0x82, 0xa5, 0xc6, 0xfe, 0x12, - 0x59, 0x1e, 0xb1, 0x0b, 0x8f, 0xb7, 0x73, 0x5e, 0xee, 0x38, 0xff, 0xae, 0xc8, 0xcc, 0x19, 0x59, - 0xa1, 0xdf, 0x16, 0xdf, 0xa0, 0x97, 0x37, 0x50, 0xcf, 0x9d, 0x74, 0x7c, 0x08, 0x8f, 0x7a, 0x1f, - 0x27, 0xe3, 0x4a, 0x01, 0x03, 0x1c, 0x5c, 0x8c, 0xde, 0xbb, 0x3d, 0x52, 0x41, 0xf8, 0x08, 0xca, - 0x17, 0xe3, 0x77, 0x3d, 0x32, 0x9a, 0x0c, 0x2f, 0x47, 0x83, 0x4a, 0x11, 0x57, 0x01, 0x13, 0xf7, - 0xda, 0x25, 0x57, 0xee, 0x9f, 0xf7, 0x56, 0xff, 0xfc, 0xa6, 0xeb, 0x73, 0xfd, 0x25, 0x99, 0xd9, - 0x5e, 0x14, 0x3a, 0x41, 0x3a, 0xd7, 0xce, 0x66, 0xb7, 0xf9, 0x4c, 0x38, 0x72, 0xf6, 0xca, 0x8f, - 0x9c, 0xec, 0xba, 0x9b, 0x1d, 0x98, 0xa5, 0xd6, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x12, 0xe0, - 0xd5, 0x84, 0x09, 0x05, 0x00, 0x00, -} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go deleted file mode 100644 index 89b7288a1..000000000 --- a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go +++ /dev/null @@ -1,439 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/parameter_ranges.proto - -package plugins - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "strings" - "time" - "unicode/utf8" - - "github.com/golang/protobuf/ptypes" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = ptypes.DynamicAny{} -) - -// define the regex for a UUID once up-front -var _parameter_ranges_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") - -// Validate checks the field values on ContinuousParameterRange with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ContinuousParameterRange) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxValue - - // no validation rules for MinValue - - // no validation rules for ScalingType - - return nil -} - -// ContinuousParameterRangeValidationError is the validation error returned by -// ContinuousParameterRange.Validate if the designated constraints aren't met. -type ContinuousParameterRangeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ContinuousParameterRangeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ContinuousParameterRangeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ContinuousParameterRangeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ContinuousParameterRangeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ContinuousParameterRangeValidationError) ErrorName() string { - return "ContinuousParameterRangeValidationError" -} - -// Error satisfies the builtin error interface -func (e ContinuousParameterRangeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sContinuousParameterRange.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ContinuousParameterRangeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ContinuousParameterRangeValidationError{} - -// Validate checks the field values on IntegerParameterRange with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *IntegerParameterRange) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxValue - - // no validation rules for MinValue - - // no validation rules for ScalingType - - return nil -} - -// IntegerParameterRangeValidationError is the validation error returned by -// IntegerParameterRange.Validate if the designated constraints aren't met. -type IntegerParameterRangeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IntegerParameterRangeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IntegerParameterRangeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IntegerParameterRangeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IntegerParameterRangeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IntegerParameterRangeValidationError) ErrorName() string { - return "IntegerParameterRangeValidationError" -} - -// Error satisfies the builtin error interface -func (e IntegerParameterRangeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIntegerParameterRange.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IntegerParameterRangeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IntegerParameterRangeValidationError{} - -// Validate checks the field values on CategoricalParameterRange with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *CategoricalParameterRange) Validate() error { - if m == nil { - return nil - } - - return nil -} - -// CategoricalParameterRangeValidationError is the validation error returned by -// CategoricalParameterRange.Validate if the designated constraints aren't met. -type CategoricalParameterRangeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CategoricalParameterRangeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CategoricalParameterRangeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CategoricalParameterRangeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CategoricalParameterRangeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CategoricalParameterRangeValidationError) ErrorName() string { - return "CategoricalParameterRangeValidationError" -} - -// Error satisfies the builtin error interface -func (e CategoricalParameterRangeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCategoricalParameterRange.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CategoricalParameterRangeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CategoricalParameterRangeValidationError{} - -// Validate checks the field values on ParameterRangeOneOf with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ParameterRangeOneOf) Validate() error { - if m == nil { - return nil - } - - switch m.ParameterRangeType.(type) { - - case *ParameterRangeOneOf_ContinuousParameterRange: - - if v, ok := interface{}(m.GetContinuousParameterRange()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ParameterRangeOneOfValidationError{ - field: "ContinuousParameterRange", - reason: "embedded message failed validation", - cause: err, - } - } - } - - case *ParameterRangeOneOf_IntegerParameterRange: - - if v, ok := interface{}(m.GetIntegerParameterRange()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ParameterRangeOneOfValidationError{ - field: "IntegerParameterRange", - reason: "embedded message failed validation", - cause: err, - } - } - } - - case *ParameterRangeOneOf_CategoricalParameterRange: - - if v, ok := interface{}(m.GetCategoricalParameterRange()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ParameterRangeOneOfValidationError{ - field: "CategoricalParameterRange", - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ParameterRangeOneOfValidationError is the validation error returned by -// ParameterRangeOneOf.Validate if the designated constraints aren't met. -type ParameterRangeOneOfValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ParameterRangeOneOfValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ParameterRangeOneOfValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ParameterRangeOneOfValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ParameterRangeOneOfValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ParameterRangeOneOfValidationError) ErrorName() string { - return "ParameterRangeOneOfValidationError" -} - -// Error satisfies the builtin error interface -func (e ParameterRangeOneOfValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sParameterRangeOneOf.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ParameterRangeOneOfValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ParameterRangeOneOfValidationError{} - -// Validate checks the field values on ParameterRanges with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *ParameterRanges) Validate() error { - if m == nil { - return nil - } - - for key, val := range m.GetParameterRangeMap() { - _ = val - - // no validation rules for ParameterRangeMap[key] - - if v, ok := interface{}(val).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ParameterRangesValidationError{ - field: fmt.Sprintf("ParameterRangeMap[%v]", key), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ParameterRangesValidationError is the validation error returned by -// ParameterRanges.Validate if the designated constraints aren't met. -type ParameterRangesValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ParameterRangesValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ParameterRangesValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ParameterRangesValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ParameterRangesValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ParameterRangesValidationError) ErrorName() string { return "ParameterRangesValidationError" } - -// Error satisfies the builtin error interface -func (e ParameterRangesValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sParameterRanges.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ParameterRangesValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ParameterRangesValidationError{} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go deleted file mode 100644 index 58c7b9ca6..000000000 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go +++ /dev/null @@ -1,395 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/training_job.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type InputMode int32 - -const ( - InputMode_FILE InputMode = 0 - InputMode_PIPE InputMode = 1 -) - -var InputMode_name = map[int32]string{ - 0: "FILE", - 1: "PIPE", -} - -var InputMode_value = map[string]int32{ - "FILE": 0, - "PIPE": 1, -} - -func (x InputMode) String() string { - return proto.EnumName(InputMode_name, int32(x)) -} - -func (InputMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_6a68f64d8fd9fe30, []int{0} -} - -type AlgorithmName int32 - -const ( - AlgorithmName_CUSTOM AlgorithmName = 0 - AlgorithmName_XGBOOST AlgorithmName = 1 -) - -var AlgorithmName_name = map[int32]string{ - 0: "CUSTOM", - 1: "XGBOOST", -} - -var AlgorithmName_value = map[string]int32{ - "CUSTOM": 0, - "XGBOOST": 1, -} - -func (x AlgorithmName) String() string { - return proto.EnumName(AlgorithmName_name, int32(x)) -} - -func (AlgorithmName) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_6a68f64d8fd9fe30, []int{1} -} - -type AlgorithmSpecification struct { - InputMode InputMode `protobuf:"varint,1,opt,name=input_mode,json=inputMode,proto3,enum=flyteidl.plugins.sagemaker.InputMode" json:"input_mode,omitempty"` - AlgorithmName AlgorithmName `protobuf:"varint,2,opt,name=algorithm_name,json=algorithmName,proto3,enum=flyteidl.plugins.sagemaker.AlgorithmName" json:"algorithm_name,omitempty"` - AlgorithmVersion string `protobuf:"bytes,3,opt,name=algorithm_version,json=algorithmVersion,proto3" json:"algorithm_version,omitempty"` - MetricDefinitions []*AlgorithmSpecification_MetricDefinition `protobuf:"bytes,4,rep,name=metric_definitions,json=metricDefinitions,proto3" json:"metric_definitions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AlgorithmSpecification) Reset() { *m = AlgorithmSpecification{} } -func (m *AlgorithmSpecification) String() string { return proto.CompactTextString(m) } -func (*AlgorithmSpecification) ProtoMessage() {} -func (*AlgorithmSpecification) Descriptor() ([]byte, []int) { - return fileDescriptor_6a68f64d8fd9fe30, []int{0} -} - -func (m *AlgorithmSpecification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AlgorithmSpecification.Unmarshal(m, b) -} -func (m *AlgorithmSpecification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AlgorithmSpecification.Marshal(b, m, deterministic) -} -func (m *AlgorithmSpecification) XXX_Merge(src proto.Message) { - xxx_messageInfo_AlgorithmSpecification.Merge(m, src) -} -func (m *AlgorithmSpecification) XXX_Size() int { - return xxx_messageInfo_AlgorithmSpecification.Size(m) -} -func (m *AlgorithmSpecification) XXX_DiscardUnknown() { - xxx_messageInfo_AlgorithmSpecification.DiscardUnknown(m) -} - -var xxx_messageInfo_AlgorithmSpecification proto.InternalMessageInfo - -func (m *AlgorithmSpecification) GetInputMode() InputMode { - if m != nil { - return m.InputMode - } - return InputMode_FILE -} - -func (m *AlgorithmSpecification) GetAlgorithmName() AlgorithmName { - if m != nil { - return m.AlgorithmName - } - return AlgorithmName_CUSTOM -} - -func (m *AlgorithmSpecification) GetAlgorithmVersion() string { - if m != nil { - return m.AlgorithmVersion - } - return "" -} - -func (m *AlgorithmSpecification) GetMetricDefinitions() []*AlgorithmSpecification_MetricDefinition { - if m != nil { - return m.MetricDefinitions - } - return nil -} - -type AlgorithmSpecification_MetricDefinition struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Regex string `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AlgorithmSpecification_MetricDefinition) Reset() { - *m = AlgorithmSpecification_MetricDefinition{} -} -func (m *AlgorithmSpecification_MetricDefinition) String() string { return proto.CompactTextString(m) } -func (*AlgorithmSpecification_MetricDefinition) ProtoMessage() {} -func (*AlgorithmSpecification_MetricDefinition) Descriptor() ([]byte, []int) { - return fileDescriptor_6a68f64d8fd9fe30, []int{0, 0} -} - -func (m *AlgorithmSpecification_MetricDefinition) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Unmarshal(m, b) -} -func (m *AlgorithmSpecification_MetricDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Marshal(b, m, deterministic) -} -func (m *AlgorithmSpecification_MetricDefinition) XXX_Merge(src proto.Message) { - xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Merge(m, src) -} -func (m *AlgorithmSpecification_MetricDefinition) XXX_Size() int { - return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Size(m) -} -func (m *AlgorithmSpecification_MetricDefinition) XXX_DiscardUnknown() { - xxx_messageInfo_AlgorithmSpecification_MetricDefinition.DiscardUnknown(m) -} - -var xxx_messageInfo_AlgorithmSpecification_MetricDefinition proto.InternalMessageInfo - -func (m *AlgorithmSpecification_MetricDefinition) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *AlgorithmSpecification_MetricDefinition) GetRegex() string { - if m != nil { - return m.Regex - } - return "" -} - -type TrainingJobConfig struct { - InstanceCount int64 `protobuf:"varint,1,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"` - InstanceType string `protobuf:"bytes,2,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` - VolumeSizeInGb int64 `protobuf:"varint,3,opt,name=volume_size_in_gb,json=volumeSizeInGb,proto3" json:"volume_size_in_gb,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TrainingJobConfig) Reset() { *m = TrainingJobConfig{} } -func (m *TrainingJobConfig) String() string { return proto.CompactTextString(m) } -func (*TrainingJobConfig) ProtoMessage() {} -func (*TrainingJobConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_6a68f64d8fd9fe30, []int{1} -} - -func (m *TrainingJobConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TrainingJobConfig.Unmarshal(m, b) -} -func (m *TrainingJobConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TrainingJobConfig.Marshal(b, m, deterministic) -} -func (m *TrainingJobConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_TrainingJobConfig.Merge(m, src) -} -func (m *TrainingJobConfig) XXX_Size() int { - return xxx_messageInfo_TrainingJobConfig.Size(m) -} -func (m *TrainingJobConfig) XXX_DiscardUnknown() { - xxx_messageInfo_TrainingJobConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_TrainingJobConfig proto.InternalMessageInfo - -func (m *TrainingJobConfig) GetInstanceCount() int64 { - if m != nil { - return m.InstanceCount - } - return 0 -} - -func (m *TrainingJobConfig) GetInstanceType() string { - if m != nil { - return m.InstanceType - } - return "" -} - -func (m *TrainingJobConfig) GetVolumeSizeInGb() int64 { - if m != nil { - return m.VolumeSizeInGb - } - return 0 -} - -type StoppingCondition struct { - MaxRuntimeInSeconds int64 `protobuf:"varint,1,opt,name=max_runtime_in_seconds,json=maxRuntimeInSeconds,proto3" json:"max_runtime_in_seconds,omitempty"` - MaxWaitTimeInSeconds int64 `protobuf:"varint,2,opt,name=max_wait_time_in_seconds,json=maxWaitTimeInSeconds,proto3" json:"max_wait_time_in_seconds,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoppingCondition) Reset() { *m = StoppingCondition{} } -func (m *StoppingCondition) String() string { return proto.CompactTextString(m) } -func (*StoppingCondition) ProtoMessage() {} -func (*StoppingCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_6a68f64d8fd9fe30, []int{2} -} - -func (m *StoppingCondition) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StoppingCondition.Unmarshal(m, b) -} -func (m *StoppingCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StoppingCondition.Marshal(b, m, deterministic) -} -func (m *StoppingCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoppingCondition.Merge(m, src) -} -func (m *StoppingCondition) XXX_Size() int { - return xxx_messageInfo_StoppingCondition.Size(m) -} -func (m *StoppingCondition) XXX_DiscardUnknown() { - xxx_messageInfo_StoppingCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_StoppingCondition proto.InternalMessageInfo - -func (m *StoppingCondition) GetMaxRuntimeInSeconds() int64 { - if m != nil { - return m.MaxRuntimeInSeconds - } - return 0 -} - -func (m *StoppingCondition) GetMaxWaitTimeInSeconds() int64 { - if m != nil { - return m.MaxWaitTimeInSeconds - } - return 0 -} - -type TrainingJob struct { - AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,1,opt,name=algorithm_specification,json=algorithmSpecification,proto3" json:"algorithm_specification,omitempty"` - TrainingJobConfig *TrainingJobConfig `protobuf:"bytes,2,opt,name=training_job_config,json=trainingJobConfig,proto3" json:"training_job_config,omitempty"` - Interruptible bool `protobuf:"varint,4,opt,name=interruptible,proto3" json:"interruptible,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TrainingJob) Reset() { *m = TrainingJob{} } -func (m *TrainingJob) String() string { return proto.CompactTextString(m) } -func (*TrainingJob) ProtoMessage() {} -func (*TrainingJob) Descriptor() ([]byte, []int) { - return fileDescriptor_6a68f64d8fd9fe30, []int{3} -} - -func (m *TrainingJob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TrainingJob.Unmarshal(m, b) -} -func (m *TrainingJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TrainingJob.Marshal(b, m, deterministic) -} -func (m *TrainingJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_TrainingJob.Merge(m, src) -} -func (m *TrainingJob) XXX_Size() int { - return xxx_messageInfo_TrainingJob.Size(m) -} -func (m *TrainingJob) XXX_DiscardUnknown() { - xxx_messageInfo_TrainingJob.DiscardUnknown(m) -} - -var xxx_messageInfo_TrainingJob proto.InternalMessageInfo - -func (m *TrainingJob) GetAlgorithmSpecification() *AlgorithmSpecification { - if m != nil { - return m.AlgorithmSpecification - } - return nil -} - -func (m *TrainingJob) GetTrainingJobConfig() *TrainingJobConfig { - if m != nil { - return m.TrainingJobConfig - } - return nil -} - -func (m *TrainingJob) GetInterruptible() bool { - if m != nil { - return m.Interruptible - } - return false -} - -func init() { - proto.RegisterEnum("flyteidl.plugins.sagemaker.InputMode", InputMode_name, InputMode_value) - proto.RegisterEnum("flyteidl.plugins.sagemaker.AlgorithmName", AlgorithmName_name, AlgorithmName_value) - proto.RegisterType((*AlgorithmSpecification)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification") - proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition") - proto.RegisterType((*TrainingJobConfig)(nil), "flyteidl.plugins.sagemaker.TrainingJobConfig") - proto.RegisterType((*StoppingCondition)(nil), "flyteidl.plugins.sagemaker.StoppingCondition") - proto.RegisterType((*TrainingJob)(nil), "flyteidl.plugins.sagemaker.TrainingJob") -} - -func init() { - proto.RegisterFile("flyteidl/plugins/sagemaker/training_job.proto", fileDescriptor_6a68f64d8fd9fe30) -} - -var fileDescriptor_6a68f64d8fd9fe30 = []byte{ - // 587 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x6f, 0xd3, 0x4c, - 0x10, 0xad, 0x9b, 0x7c, 0xfd, 0x9a, 0x09, 0x8d, 0x92, 0x6d, 0x55, 0xa2, 0x5e, 0x88, 0x02, 0x95, - 0xd2, 0xa2, 0xda, 0x52, 0x2a, 0x38, 0x71, 0xa1, 0x69, 0xa9, 0x82, 0x28, 0xad, 0x9c, 0xf0, 0x43, - 0x48, 0x68, 0xb5, 0x76, 0x36, 0xee, 0x50, 0xef, 0xae, 0x65, 0xaf, 0x4b, 0xd2, 0x13, 0x67, 0x2e, - 0xfc, 0xc9, 0xa0, 0xac, 0x13, 0x37, 0x49, 0xa1, 0x82, 0xdb, 0xec, 0x9b, 0x99, 0xb7, 0x33, 0xf3, - 0x34, 0x03, 0x07, 0xc3, 0x70, 0xac, 0x39, 0x0e, 0x42, 0x27, 0x0a, 0xd3, 0x00, 0x65, 0xe2, 0x24, - 0x2c, 0xe0, 0x82, 0x5d, 0xf1, 0xd8, 0xd1, 0x31, 0x43, 0x89, 0x32, 0xa0, 0x5f, 0x94, 0x67, 0x47, - 0xb1, 0xd2, 0x8a, 0xec, 0xcc, 0xc2, 0xed, 0x69, 0xb8, 0x9d, 0x87, 0x37, 0x7f, 0x14, 0x60, 0xfb, - 0x65, 0x18, 0xa8, 0x18, 0xf5, 0xa5, 0xe8, 0x45, 0xdc, 0xc7, 0x21, 0xfa, 0x4c, 0xa3, 0x92, 0xe4, - 0x18, 0x00, 0x65, 0x94, 0x6a, 0x2a, 0xd4, 0x80, 0xd7, 0xad, 0x86, 0xd5, 0xaa, 0xb4, 0x77, 0xed, - 0x3f, 0x73, 0xd9, 0xdd, 0x49, 0xf4, 0x99, 0x1a, 0x70, 0xb7, 0x84, 0x33, 0x93, 0x5c, 0x40, 0x85, - 0xcd, 0xf8, 0xa9, 0x64, 0x82, 0xd7, 0x57, 0x0d, 0xd3, 0xde, 0x7d, 0x4c, 0x79, 0x45, 0x6f, 0x99, - 0xe0, 0xee, 0x06, 0x9b, 0x7f, 0x92, 0xa7, 0x50, 0xbb, 0x65, 0xbc, 0xe6, 0x71, 0x82, 0x4a, 0xd6, - 0x0b, 0x0d, 0xab, 0x55, 0x72, 0xab, 0xb9, 0xe3, 0x7d, 0x86, 0x93, 0x18, 0x88, 0xe0, 0x3a, 0x46, - 0x9f, 0x0e, 0xf8, 0x10, 0x25, 0x4e, 0x3a, 0x4b, 0xea, 0xc5, 0x46, 0xa1, 0x55, 0x6e, 0x77, 0xfe, - 0xaa, 0x84, 0x85, 0xa1, 0xd8, 0x67, 0x86, 0xec, 0x38, 0xe7, 0x72, 0x6b, 0x62, 0x09, 0x49, 0x76, - 0x5e, 0x40, 0x75, 0x39, 0x8c, 0x10, 0x28, 0x9a, 0xe6, 0x2d, 0x53, 0xa7, 0xb1, 0xc9, 0x16, 0xfc, - 0x17, 0xf3, 0x80, 0x8f, 0xcc, 0x44, 0x4a, 0x6e, 0xf6, 0x68, 0x7e, 0xb7, 0xa0, 0xd6, 0x9f, 0x8a, - 0xf8, 0x5a, 0x79, 0x1d, 0x25, 0x87, 0x18, 0x90, 0x5d, 0xa8, 0xa0, 0x4c, 0x34, 0x93, 0x3e, 0xa7, - 0xbe, 0x4a, 0xa5, 0x36, 0x4c, 0x05, 0x77, 0x63, 0x86, 0x76, 0x26, 0x20, 0x79, 0x0c, 0x39, 0x40, - 0xf5, 0x38, 0xe2, 0x53, 0xea, 0x07, 0x33, 0xb0, 0x3f, 0x8e, 0x38, 0xd9, 0x83, 0xda, 0xb5, 0x0a, - 0x53, 0xc1, 0x69, 0x82, 0x37, 0x9c, 0xa2, 0xa4, 0x81, 0x67, 0x06, 0x58, 0x70, 0x2b, 0x99, 0xa3, - 0x87, 0x37, 0xbc, 0x2b, 0x4f, 0xbd, 0xe6, 0x37, 0x0b, 0x6a, 0x3d, 0xad, 0xa2, 0x08, 0x65, 0xd0, - 0x51, 0x72, 0x90, 0x35, 0x73, 0x08, 0xdb, 0x82, 0x8d, 0x68, 0x9c, 0x4a, 0x8d, 0xc2, 0x10, 0x24, - 0xdc, 0x57, 0x72, 0x90, 0x4c, 0x8b, 0xda, 0x14, 0x6c, 0xe4, 0x66, 0xce, 0xae, 0xec, 0x65, 0x2e, - 0xf2, 0x1c, 0xea, 0x93, 0xa4, 0xaf, 0x0c, 0x35, 0x5d, 0x4e, 0x5b, 0x35, 0x69, 0x5b, 0x82, 0x8d, - 0x3e, 0x30, 0xd4, 0xfd, 0xf9, 0xbc, 0xe6, 0x4f, 0x0b, 0xca, 0x73, 0xf3, 0x20, 0x57, 0xf0, 0xf0, - 0x56, 0xfe, 0x64, 0x5e, 0x1c, 0xf3, 0x7b, 0xb9, 0xdd, 0xfe, 0x77, 0x59, 0xdd, 0x6d, 0xf6, 0xfb, - 0x1d, 0xf8, 0x0c, 0x9b, 0xf3, 0x0b, 0x45, 0x7d, 0xa3, 0x86, 0xa9, 0xb7, 0xdc, 0x3e, 0xb8, 0xef, - 0xa3, 0x3b, 0x12, 0xba, 0x35, 0x7d, 0x47, 0xd5, 0x27, 0x13, 0xb9, 0x34, 0x8f, 0xe3, 0x34, 0xd2, - 0xe8, 0x85, 0xbc, 0x5e, 0x6c, 0x58, 0xad, 0x75, 0x77, 0x11, 0xdc, 0x7f, 0x04, 0xa5, 0x7c, 0xb5, - 0xc8, 0x3a, 0x14, 0x5f, 0x75, 0xdf, 0x9c, 0x54, 0x57, 0x26, 0xd6, 0x45, 0xf7, 0xe2, 0xa4, 0x6a, - 0xed, 0xb7, 0x60, 0x63, 0x61, 0x63, 0x08, 0xc0, 0x5a, 0xe7, 0x5d, 0xaf, 0x7f, 0x7e, 0x56, 0x5d, - 0x21, 0x65, 0xf8, 0xff, 0xe3, 0xe9, 0xd1, 0xf9, 0x79, 0xaf, 0x5f, 0xb5, 0x8e, 0x9e, 0x7d, 0x3a, - 0x0c, 0x50, 0x5f, 0xa6, 0x9e, 0xed, 0x2b, 0xe1, 0x84, 0xe3, 0xa1, 0x76, 0xf2, 0x5b, 0x12, 0x70, - 0xe9, 0x44, 0xde, 0x41, 0xa0, 0x9c, 0xe5, 0xf3, 0xe2, 0xad, 0x99, 0x43, 0x72, 0xf8, 0x2b, 0x00, - 0x00, 0xff, 0xff, 0xeb, 0xba, 0x3d, 0x69, 0x79, 0x04, 0x00, 0x00, -} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go deleted file mode 100644 index 0b83d2fa9..000000000 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go +++ /dev/null @@ -1,428 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/training_job.proto - -package plugins - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "strings" - "time" - "unicode/utf8" - - "github.com/golang/protobuf/ptypes" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = ptypes.DynamicAny{} -) - -// define the regex for a UUID once up-front -var _training_job_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") - -// Validate checks the field values on AlgorithmSpecification with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *AlgorithmSpecification) Validate() error { - if m == nil { - return nil - } - - // no validation rules for InputMode - - // no validation rules for AlgorithmName - - // no validation rules for AlgorithmVersion - - for idx, item := range m.GetMetricDefinitions() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AlgorithmSpecificationValidationError{ - field: fmt.Sprintf("MetricDefinitions[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// AlgorithmSpecificationValidationError is the validation error returned by -// AlgorithmSpecification.Validate if the designated constraints aren't met. -type AlgorithmSpecificationValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AlgorithmSpecificationValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AlgorithmSpecificationValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AlgorithmSpecificationValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AlgorithmSpecificationValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AlgorithmSpecificationValidationError) ErrorName() string { - return "AlgorithmSpecificationValidationError" -} - -// Error satisfies the builtin error interface -func (e AlgorithmSpecificationValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAlgorithmSpecification.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AlgorithmSpecificationValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AlgorithmSpecificationValidationError{} - -// Validate checks the field values on TrainingJobConfig with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *TrainingJobConfig) Validate() error { - if m == nil { - return nil - } - - // no validation rules for InstanceCount - - // no validation rules for InstanceType - - // no validation rules for VolumeSizeInGb - - return nil -} - -// TrainingJobConfigValidationError is the validation error returned by -// TrainingJobConfig.Validate if the designated constraints aren't met. -type TrainingJobConfigValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e TrainingJobConfigValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e TrainingJobConfigValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e TrainingJobConfigValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e TrainingJobConfigValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e TrainingJobConfigValidationError) ErrorName() string { - return "TrainingJobConfigValidationError" -} - -// Error satisfies the builtin error interface -func (e TrainingJobConfigValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sTrainingJobConfig.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = TrainingJobConfigValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = TrainingJobConfigValidationError{} - -// Validate checks the field values on StoppingCondition with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *StoppingCondition) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxRuntimeInSeconds - - // no validation rules for MaxWaitTimeInSeconds - - return nil -} - -// StoppingConditionValidationError is the validation error returned by -// StoppingCondition.Validate if the designated constraints aren't met. -type StoppingConditionValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e StoppingConditionValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e StoppingConditionValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e StoppingConditionValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e StoppingConditionValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e StoppingConditionValidationError) ErrorName() string { - return "StoppingConditionValidationError" -} - -// Error satisfies the builtin error interface -func (e StoppingConditionValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sStoppingCondition.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = StoppingConditionValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = StoppingConditionValidationError{} - -// Validate checks the field values on TrainingJob with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *TrainingJob) Validate() error { - if m == nil { - return nil - } - - if v, ok := interface{}(m.GetAlgorithmSpecification()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return TrainingJobValidationError{ - field: "AlgorithmSpecification", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetTrainingJobConfig()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return TrainingJobValidationError{ - field: "TrainingJobConfig", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Interruptible - - return nil -} - -// TrainingJobValidationError is the validation error returned by -// TrainingJob.Validate if the designated constraints aren't met. -type TrainingJobValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e TrainingJobValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e TrainingJobValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e TrainingJobValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e TrainingJobValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e TrainingJobValidationError) ErrorName() string { return "TrainingJobValidationError" } - -// Error satisfies the builtin error interface -func (e TrainingJobValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sTrainingJob.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = TrainingJobValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = TrainingJobValidationError{} - -// Validate checks the field values on AlgorithmSpecification_MetricDefinition -// with the rules defined in the proto definition for this message. If any -// rules are violated, an error is returned. -func (m *AlgorithmSpecification_MetricDefinition) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Name - - // no validation rules for Regex - - return nil -} - -// AlgorithmSpecification_MetricDefinitionValidationError is the validation -// error returned by AlgorithmSpecification_MetricDefinition.Validate if the -// designated constraints aren't met. -type AlgorithmSpecification_MetricDefinitionValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AlgorithmSpecification_MetricDefinitionValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AlgorithmSpecification_MetricDefinitionValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AlgorithmSpecification_MetricDefinitionValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AlgorithmSpecification_MetricDefinitionValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AlgorithmSpecification_MetricDefinitionValidationError) ErrorName() string { - return "AlgorithmSpecification_MetricDefinitionValidationError" -} - -// Error satisfies the builtin error interface -func (e AlgorithmSpecification_MetricDefinitionValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAlgorithmSpecification_MetricDefinition.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AlgorithmSpecification_MetricDefinitionValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AlgorithmSpecification_MetricDefinitionValidationError{} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java index 87ed539e5..1a59c1ac7 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpo_job.proto +// source: flyteidl/plugins/sagemaker/hpojob.proto package flyteidl.plugins.sagemaker; -public final class HpoJob { - private HpoJob() {} +public final class Hpojob { + private Hpojob() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -25,7 +25,7 @@ public interface HyperparameterTuningObjectiveOrBuilder extends /** * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); + flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); /** * string metric_name = 2; @@ -111,15 +111,15 @@ private HyperparameterTuningObjective( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); + flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder.class); } /** @@ -194,7 +194,7 @@ public HyperparameterTuningObjectiveType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0); + return flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0); } private static final HyperparameterTuningObjectiveType[] VALUES = values(); @@ -231,10 +231,10 @@ public int getObjectiveTypeValue() { /** * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { + public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; } public static final int METRIC_NAME_FIELD_NUMBER = 2; @@ -285,7 +285,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { + if (objectiveType_ != flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { output.writeEnum(1, objectiveType_); } if (!getMetricNameBytes().isEmpty()) { @@ -300,7 +300,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { + if (objectiveType_ != flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, objectiveType_); } @@ -317,10 +317,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) obj; + flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective) obj; if (objectiveType_ != other.objectiveType_) return false; if (!getMetricName() @@ -345,69 +345,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -420,7 +420,7 @@ public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective pa public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -441,21 +441,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder { + flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); + flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder() + // Construct using flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -483,17 +483,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance(); + public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective build() { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = buildPartial(); + public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective build() { + flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -501,8 +501,8 @@ public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective buildPartial() { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(this); + public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective buildPartial() { + flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective(this); result.objectiveType_ = objectiveType_; result.metricName_ = metricName_; onBuilt(); @@ -543,16 +543,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) { - return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)other); + if (other instanceof flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective) { + return mergeFrom((flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other) { - if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective other) { + if (other == flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.getDefaultInstance()) return this; if (other.objectiveType_ != 0) { setObjectiveTypeValue(other.getObjectiveTypeValue()); } @@ -575,11 +575,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parsedMessage = null; + flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -607,15 +607,15 @@ public Builder setObjectiveTypeValue(int value) { /** * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { + public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; } /** * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public Builder setObjectiveType(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) { + public Builder setObjectiveType(flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) { if (value == null) { throw new NullPointerException(); } @@ -719,12 +719,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective DEFAULT_INSTANCE; + private static final flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective(); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstance() { + public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -749,7 +749,7 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -774,7 +774,7 @@ public interface HPOJobOrBuilder extends * * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob(); + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob(); /** *
      * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
@@ -782,7 +782,7 @@ public interface HPOJobOrBuilder extends
      *
      * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
      */
-    flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder();
+    flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder();
 
     /**
      * int64 max_number_of_training_jobs = 2;
@@ -834,11 +834,11 @@ private HPOJob(
               done = true;
               break;
             case 10: {
-              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder subBuilder = null;
+              flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder subBuilder = null;
               if (trainingJob_ != null) {
                 subBuilder = trainingJob_.toBuilder();
               }
-              trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.parser(), extensionRegistry);
+              trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.parser(), extensionRegistry);
               if (subBuilder != null) {
                 subBuilder.mergeFrom(trainingJob_);
                 trainingJob_ = subBuilder.buildPartial();
@@ -877,19 +877,19 @@ private HPOJob(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor;
+      return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class);
+              flyteidl.plugins.sagemaker.Hpojob.HPOJob.class, flyteidl.plugins.sagemaker.Hpojob.HPOJob.Builder.class);
     }
 
     public static final int TRAINING_JOB_FIELD_NUMBER = 1;
-    private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_;
+    private flyteidl.plugins.sagemaker.Trainingjob.TrainingJob trainingJob_;
     /**
      * 
      * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
@@ -907,8 +907,8 @@ public boolean hasTrainingJob() {
      *
      * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
      */
-    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() {
-      return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_;
+    public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() {
+      return trainingJob_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_;
     }
     /**
      * 
@@ -917,7 +917,7 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJ
      *
      * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
      */
-    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() {
+    public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder() {
       return getTrainingJob();
     }
 
@@ -993,10 +993,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJob)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.Hpojob.HPOJob)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.HpoJob.HPOJob other = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) obj;
+      flyteidl.plugins.sagemaker.Hpojob.HPOJob other = (flyteidl.plugins.sagemaker.Hpojob.HPOJob) obj;
 
       if (hasTrainingJob() != other.hasTrainingJob()) return false;
       if (hasTrainingJob()) {
@@ -1033,69 +1033,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -1108,7 +1108,7 @@ public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HPOJob prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.Hpojob.HPOJob prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -1129,21 +1129,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJob)
-        flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder {
+        flyteidl.plugins.sagemaker.Hpojob.HPOJobOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor;
+        return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class);
+                flyteidl.plugins.sagemaker.Hpojob.HPOJob.class, flyteidl.plugins.sagemaker.Hpojob.HPOJob.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJob.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.Hpojob.HPOJob.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -1177,17 +1177,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor;
+        return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.Hpojob.HPOJob.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.HpoJob.HPOJob build() {
-        flyteidl.plugins.sagemaker.HpoJob.HPOJob result = buildPartial();
+      public flyteidl.plugins.sagemaker.Hpojob.HPOJob build() {
+        flyteidl.plugins.sagemaker.Hpojob.HPOJob result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1195,8 +1195,8 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJob build() {
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.HpoJob.HPOJob buildPartial() {
-        flyteidl.plugins.sagemaker.HpoJob.HPOJob result = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(this);
+      public flyteidl.plugins.sagemaker.Hpojob.HPOJob buildPartial() {
+        flyteidl.plugins.sagemaker.Hpojob.HPOJob result = new flyteidl.plugins.sagemaker.Hpojob.HPOJob(this);
         if (trainingJobBuilder_ == null) {
           result.trainingJob_ = trainingJob_;
         } else {
@@ -1242,16 +1242,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJob) {
-          return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJob)other);
+        if (other instanceof flyteidl.plugins.sagemaker.Hpojob.HPOJob) {
+          return mergeFrom((flyteidl.plugins.sagemaker.Hpojob.HPOJob)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJob other) {
-        if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.Hpojob.HPOJob other) {
+        if (other == flyteidl.plugins.sagemaker.Hpojob.HPOJob.getDefaultInstance()) return this;
         if (other.hasTrainingJob()) {
           mergeTrainingJob(other.getTrainingJob());
         }
@@ -1276,11 +1276,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.HpoJob.HPOJob parsedMessage = null;
+        flyteidl.plugins.sagemaker.Hpojob.HPOJob parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.Hpojob.HPOJob) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1290,9 +1290,9 @@ public Builder mergeFrom(
         return this;
       }
 
-      private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_;
+      private flyteidl.plugins.sagemaker.Trainingjob.TrainingJob trainingJob_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> trainingJobBuilder_;
+          flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder> trainingJobBuilder_;
       /**
        * 
        * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
@@ -1310,9 +1310,9 @@ public boolean hasTrainingJob() {
        *
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() {
+      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() {
         if (trainingJobBuilder_ == null) {
-          return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_;
+          return trainingJob_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_;
         } else {
           return trainingJobBuilder_.getMessage();
         }
@@ -1324,7 +1324,7 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJ
        *
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
-      public Builder setTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) {
+      public Builder setTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob value) {
         if (trainingJobBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -1345,7 +1345,7 @@ public Builder setTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.T
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
       public Builder setTrainingJob(
-          flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder builderForValue) {
+          flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder builderForValue) {
         if (trainingJobBuilder_ == null) {
           trainingJob_ = builderForValue.build();
           onChanged();
@@ -1362,11 +1362,11 @@ public Builder setTrainingJob(
        *
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
-      public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) {
+      public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob value) {
         if (trainingJobBuilder_ == null) {
           if (trainingJob_ != null) {
             trainingJob_ =
-              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial();
+              flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial();
           } else {
             trainingJob_ = value;
           }
@@ -1402,7 +1402,7 @@ public Builder clearTrainingJob() {
        *
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder getTrainingJobBuilder() {
+      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder getTrainingJobBuilder() {
         
         onChanged();
         return getTrainingJobFieldBuilder().getBuilder();
@@ -1414,12 +1414,12 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder getT
        *
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() {
+      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder() {
         if (trainingJobBuilder_ != null) {
           return trainingJobBuilder_.getMessageOrBuilder();
         } else {
           return trainingJob_ == null ?
-              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_;
+              flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_;
         }
       }
       /**
@@ -1430,11 +1430,11 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder get
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> 
+          flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder> 
           getTrainingJobFieldBuilder() {
         if (trainingJobBuilder_ == null) {
           trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder>(
+              flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder>(
                   getTrainingJob(),
                   getParentForChildren(),
                   isClean());
@@ -1511,12 +1511,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob)
-    private static final flyteidl.plugins.sagemaker.HpoJob.HPOJob DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.Hpojob.HPOJob DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJob();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Hpojob.HPOJob();
     }
 
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -1541,7 +1541,7 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -1558,11 +1558,11 @@ public interface HPOJobConfigOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
      */
-    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges();
+    flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getHyperparameterRanges();
     /**
      * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
      */
-    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder();
+    flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder();
 
     /**
      * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2;
@@ -1571,7 +1571,7 @@ public interface HPOJobConfigOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2;
      */
-    flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy();
+    flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy();
 
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
@@ -1580,11 +1580,11 @@ public interface HPOJobConfigOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
-    flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective();
+    flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective getTuningObjective();
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
-    flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder();
+    flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder();
 
     /**
      * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
@@ -1593,7 +1593,7 @@ public interface HPOJobConfigOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
      */
-    flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType();
+    flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType();
   }
   /**
    * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobConfig}
@@ -1637,11 +1637,11 @@ private HPOJobConfig(
               done = true;
               break;
             case 10: {
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder subBuilder = null;
+              flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder subBuilder = null;
               if (hyperparameterRanges_ != null) {
                 subBuilder = hyperparameterRanges_.toBuilder();
               }
-              hyperparameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.parser(), extensionRegistry);
+              hyperparameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.parser(), extensionRegistry);
               if (subBuilder != null) {
                 subBuilder.mergeFrom(hyperparameterRanges_);
                 hyperparameterRanges_ = subBuilder.buildPartial();
@@ -1656,11 +1656,11 @@ private HPOJobConfig(
               break;
             }
             case 26: {
-              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder subBuilder = null;
+              flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder subBuilder = null;
               if (tuningObjective_ != null) {
                 subBuilder = tuningObjective_.toBuilder();
               }
-              tuningObjective_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.parser(), extensionRegistry);
+              tuningObjective_ = input.readMessage(flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.parser(), extensionRegistry);
               if (subBuilder != null) {
                 subBuilder.mergeFrom(tuningObjective_);
                 tuningObjective_ = subBuilder.buildPartial();
@@ -1695,15 +1695,15 @@ private HPOJobConfig(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor;
+      return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class);
+              flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.class, flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.Builder.class);
     }
 
     /**
@@ -1778,7 +1778,7 @@ public HyperparameterTuningStrategy findValueByNumber(int number) {
       }
       public static final com.google.protobuf.Descriptors.EnumDescriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(0);
+        return flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final HyperparameterTuningStrategy[] VALUES = values();
@@ -1876,7 +1876,7 @@ public TrainingJobEarlyStoppingType findValueByNumber(int number) {
       }
       public static final com.google.protobuf.Descriptors.EnumDescriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(1);
+        return flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.getDescriptor().getEnumTypes().get(1);
       }
 
       private static final TrainingJobEarlyStoppingType[] VALUES = values();
@@ -1903,7 +1903,7 @@ private TrainingJobEarlyStoppingType(int value) {
     }
 
     public static final int HYPERPARAMETER_RANGES_FIELD_NUMBER = 1;
-    private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_;
+    private flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges hyperparameterRanges_;
     /**
      * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
      */
@@ -1913,13 +1913,13 @@ public boolean hasHyperparameterRanges() {
     /**
      * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
      */
-    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() {
-      return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_;
+    public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getHyperparameterRanges() {
+      return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance() : hyperparameterRanges_;
     }
     /**
      * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
      */
-    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() {
+    public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() {
       return getHyperparameterRanges();
     }
 
@@ -1934,14 +1934,14 @@ public int getTuningStrategyValue() {
     /**
      * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2;
      */
-    public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() {
+    public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() {
       @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_);
-      return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result;
+      flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_);
+      return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result;
     }
 
     public static final int TUNING_OBJECTIVE_FIELD_NUMBER = 3;
-    private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_;
+    private flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective tuningObjective_;
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
@@ -1951,13 +1951,13 @@ public boolean hasTuningObjective() {
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
-    public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() {
-      return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
+    public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective getTuningObjective() {
+      return tuningObjective_ == null ? flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
     }
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
-    public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() {
+    public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() {
       return getTuningObjective();
     }
 
@@ -1972,10 +1972,10 @@ public int getTrainingJobEarlyStoppingTypeValue() {
     /**
      * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
      */
-    public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() {
+    public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() {
       @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_);
-      return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result;
+      flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_);
+      return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result;
     }
 
     private byte memoizedIsInitialized = -1;
@@ -1995,13 +1995,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (hyperparameterRanges_ != null) {
         output.writeMessage(1, getHyperparameterRanges());
       }
-      if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) {
+      if (tuningStrategy_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) {
         output.writeEnum(2, tuningStrategy_);
       }
       if (tuningObjective_ != null) {
         output.writeMessage(3, getTuningObjective());
       }
-      if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) {
+      if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) {
         output.writeEnum(4, trainingJobEarlyStoppingType_);
       }
       unknownFields.writeTo(output);
@@ -2017,7 +2017,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(1, getHyperparameterRanges());
       }
-      if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) {
+      if (tuningStrategy_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) {
         size += com.google.protobuf.CodedOutputStream
           .computeEnumSize(2, tuningStrategy_);
       }
@@ -2025,7 +2025,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(3, getTuningObjective());
       }
-      if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) {
+      if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) {
         size += com.google.protobuf.CodedOutputStream
           .computeEnumSize(4, trainingJobEarlyStoppingType_);
       }
@@ -2039,10 +2039,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) obj;
+      flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig other = (flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig) obj;
 
       if (hasHyperparameterRanges() != other.hasHyperparameterRanges()) return false;
       if (hasHyperparameterRanges()) {
@@ -2084,69 +2084,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -2159,7 +2159,7 @@ public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -2180,21 +2180,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobConfig)
-        flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder {
+        flyteidl.plugins.sagemaker.Hpojob.HPOJobConfigOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor;
+        return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class);
+                flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.class, flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -2234,17 +2234,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor;
+        return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig build() {
-        flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = buildPartial();
+      public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig build() {
+        flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2252,8 +2252,8 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig build() {
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig buildPartial() {
-        flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(this);
+      public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig buildPartial() {
+        flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig result = new flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig(this);
         if (hyperparameterRangesBuilder_ == null) {
           result.hyperparameterRanges_ = hyperparameterRanges_;
         } else {
@@ -2304,16 +2304,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) {
-          return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)other);
+        if (other instanceof flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig) {
+          return mergeFrom((flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other) {
-        if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig other) {
+        if (other == flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.getDefaultInstance()) return this;
         if (other.hasHyperparameterRanges()) {
           mergeHyperparameterRanges(other.getHyperparameterRanges());
         }
@@ -2341,11 +2341,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parsedMessage = null;
+        flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2355,9 +2355,9 @@ public Builder mergeFrom(
         return this;
       }
 
-      private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_;
+      private flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges hyperparameterRanges_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> hyperparameterRangesBuilder_;
+          flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder> hyperparameterRangesBuilder_;
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
@@ -2367,9 +2367,9 @@ public boolean hasHyperparameterRanges() {
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() {
+      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getHyperparameterRanges() {
         if (hyperparameterRangesBuilder_ == null) {
-          return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_;
+          return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance() : hyperparameterRanges_;
         } else {
           return hyperparameterRangesBuilder_.getMessage();
         }
@@ -2377,7 +2377,7 @@ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getH
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
-      public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) {
+      public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges value) {
         if (hyperparameterRangesBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2394,7 +2394,7 @@ public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRange
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
       public Builder setHyperparameterRanges(
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder builderForValue) {
+          flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder builderForValue) {
         if (hyperparameterRangesBuilder_ == null) {
           hyperparameterRanges_ = builderForValue.build();
           onChanged();
@@ -2407,11 +2407,11 @@ public Builder setHyperparameterRanges(
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
-      public Builder mergeHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) {
+      public Builder mergeHyperparameterRanges(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges value) {
         if (hyperparameterRangesBuilder_ == null) {
           if (hyperparameterRanges_ != null) {
             hyperparameterRanges_ =
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.newBuilder(hyperparameterRanges_).mergeFrom(value).buildPartial();
+              flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.newBuilder(hyperparameterRanges_).mergeFrom(value).buildPartial();
           } else {
             hyperparameterRanges_ = value;
           }
@@ -2439,7 +2439,7 @@ public Builder clearHyperparameterRanges() {
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder getHyperparameterRangesBuilder() {
+      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder getHyperparameterRangesBuilder() {
         
         onChanged();
         return getHyperparameterRangesFieldBuilder().getBuilder();
@@ -2447,23 +2447,23 @@ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Buil
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() {
+      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() {
         if (hyperparameterRangesBuilder_ != null) {
           return hyperparameterRangesBuilder_.getMessageOrBuilder();
         } else {
           return hyperparameterRanges_ == null ?
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_;
+              flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance() : hyperparameterRanges_;
         }
       }
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> 
+          flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder> 
           getHyperparameterRangesFieldBuilder() {
         if (hyperparameterRangesBuilder_ == null) {
           hyperparameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder>(
+              flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder>(
                   getHyperparameterRanges(),
                   getParentForChildren(),
                   isClean());
@@ -2490,15 +2490,15 @@ public Builder setTuningStrategyValue(int value) {
       /**
        * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2;
        */
-      public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() {
+      public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() {
         @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_);
-        return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result;
+        flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_);
+        return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result;
       }
       /**
        * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2;
        */
-      public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy value) {
+      public Builder setTuningStrategy(flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy value) {
         if (value == null) {
           throw new NullPointerException();
         }
@@ -2517,9 +2517,9 @@ public Builder clearTuningStrategy() {
         return this;
       }
 
-      private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_;
+      private flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective tuningObjective_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> tuningObjectiveBuilder_;
+          flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder> tuningObjectiveBuilder_;
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
@@ -2529,9 +2529,9 @@ public boolean hasTuningObjective() {
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() {
+      public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective getTuningObjective() {
         if (tuningObjectiveBuilder_ == null) {
-          return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
+          return tuningObjective_ == null ? flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
         } else {
           return tuningObjectiveBuilder_.getMessage();
         }
@@ -2539,7 +2539,7 @@ public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuning
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public Builder setTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) {
+      public Builder setTuningObjective(flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective value) {
         if (tuningObjectiveBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2556,7 +2556,7 @@ public Builder setTuningObjective(flyteidl.plugins.sagemaker.HpoJob.Hyperparamet
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
       public Builder setTuningObjective(
-          flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder builderForValue) {
+          flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder builderForValue) {
         if (tuningObjectiveBuilder_ == null) {
           tuningObjective_ = builderForValue.build();
           onChanged();
@@ -2569,11 +2569,11 @@ public Builder setTuningObjective(
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) {
+      public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective value) {
         if (tuningObjectiveBuilder_ == null) {
           if (tuningObjective_ != null) {
             tuningObjective_ =
-              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder(tuningObjective_).mergeFrom(value).buildPartial();
+              flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.newBuilder(tuningObjective_).mergeFrom(value).buildPartial();
           } else {
             tuningObjective_ = value;
           }
@@ -2601,7 +2601,7 @@ public Builder clearTuningObjective() {
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder getTuningObjectiveBuilder() {
+      public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder getTuningObjectiveBuilder() {
         
         onChanged();
         return getTuningObjectiveFieldBuilder().getBuilder();
@@ -2609,23 +2609,23 @@ public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder g
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() {
+      public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() {
         if (tuningObjectiveBuilder_ != null) {
           return tuningObjectiveBuilder_.getMessageOrBuilder();
         } else {
           return tuningObjective_ == null ?
-              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
+              flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
         }
       }
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> 
+          flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder> 
           getTuningObjectiveFieldBuilder() {
         if (tuningObjectiveBuilder_ == null) {
           tuningObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder>(
+              flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder>(
                   getTuningObjective(),
                   getParentForChildren(),
                   isClean());
@@ -2652,15 +2652,15 @@ public Builder setTrainingJobEarlyStoppingTypeValue(int value) {
       /**
        * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
        */
-      public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() {
+      public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() {
         @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_);
-        return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result;
+        flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_);
+        return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result;
       }
       /**
        * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
        */
-      public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType value) {
+      public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType value) {
         if (value == null) {
           throw new NullPointerException();
         }
@@ -2695,12 +2695,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig)
-    private static final flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig();
     }
 
-    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -2725,7 +2725,7 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -2755,34 +2755,34 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType(
       descriptor;
   static {
     java.lang.String[] descriptorData = {
-      "\n(flyteidl/plugins/sagemaker/hpo_job.pro" +
-      "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" +
-      "/plugins/sagemaker/parameter_ranges.prot" +
-      "o\032-flyteidl/plugins/sagemaker/training_j" +
-      "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" +
-      "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" +
-      "ugins.sagemaker.HyperparameterTuningObje" +
-      "ctive.HyperparameterTuningObjectiveType\022" +
-      "\023\n\013metric_name\030\002 \001(\t\"?\n!HyperparameterTu" +
-      "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" +
-      "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" +
-      ".flyteidl.plugins.sagemaker.TrainingJob\022" +
-      "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" +
-      "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" +
-      "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" +
-      "2+.flyteidl.plugins.sagemaker.ParameterR" +
-      "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" +
-      "l.plugins.sagemaker.HPOJobConfig.Hyperpa" +
-      "rameterTuningStrategy\022S\n\020tuning_objectiv" +
-      "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" +
-      "erparameterTuningObjective\022o\n training_j" +
-      "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." +
-      "plugins.sagemaker.HPOJobConfig.TrainingJ" +
-      "obEarlyStoppingType\"8\n\034HyperparameterTun" +
-      "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" +
-      "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" +
-      "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" +
-      "/pb-go/flyteidl/pluginsb\006proto3"
+      "\n\'flyteidl/plugins/sagemaker/hpojob.prot" +
+      "o\022\032flyteidl.plugins.sagemaker\0320flyteidl/" +
+      "plugins/sagemaker/parameterranges.proto\032" +
+      ",flyteidl/plugins/sagemaker/trainingjob." +
+      "proto\"\352\001\n\035HyperparameterTuningObjective\022" +
+      "s\n\016objective_type\030\001 \001(\0162[.flyteidl.plugi" +
+      "ns.sagemaker.HyperparameterTuningObjecti" +
+      "ve.HyperparameterTuningObjectiveType\022\023\n\013" +
+      "metric_name\030\002 \001(\t\"?\n!HyperparameterTunin" +
+      "gObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE" +
+      "\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'.fl" +
+      "yteidl.plugins.sagemaker.TrainingJob\022#\n\033" +
+      "max_number_of_training_jobs\030\002 \001(\003\022\"\n\032max" +
+      "_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPOJob" +
+      "Config\022J\n\025hyperparameter_ranges\030\001 \001(\0132+." +
+      "flyteidl.plugins.sagemaker.ParameterRang" +
+      "es\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteidl.p" +
+      "lugins.sagemaker.HPOJobConfig.Hyperparam" +
+      "eterTuningStrategy\022S\n\020tuning_objective\030\003" +
+      " \001(\01329.flyteidl.plugins.sagemaker.Hyperp" +
+      "arameterTuningObjective\022o\n training_job_" +
+      "early_stopping_type\030\004 \001(\0162E.flyteidl.plu" +
+      "gins.sagemaker.HPOJobConfig.TrainingJobE" +
+      "arlyStoppingType\"8\n\034HyperparameterTuning" +
+      "Strategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034Tr" +
+      "ainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004A" +
+      "UTO\020\001B5Z3github.com/lyft/flyteidl/gen/pb" +
+      "-go/flyteidl/pluginsb\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
@@ -2795,8 +2795,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
         new com.google.protobuf.Descriptors.FileDescriptor[] {
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(),
-          flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(),
+          flyteidl.plugins.sagemaker.Parameterranges.getDescriptor(),
+          flyteidl.plugins.sagemaker.Trainingjob.getDescriptor(),
         }, assigner);
     internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor =
       getDescriptor().getMessageTypes().get(0);
@@ -2816,8 +2816,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor,
         new java.lang.String[] { "HyperparameterRanges", "TuningStrategy", "TuningObjective", "TrainingJobEarlyStoppingType", });
-    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor();
-    flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor();
+    flyteidl.plugins.sagemaker.Parameterranges.getDescriptor();
+    flyteidl.plugins.sagemaker.Trainingjob.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java
deleted file mode 100644
index 85e2b73f0..000000000
--- a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java
+++ /dev/null
@@ -1,3973 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: flyteidl/plugins/sagemaker/parameter_ranges.proto
-
-package flyteidl.plugins.sagemaker;
-
-public final class ParameterRangesOuterClass {
-  private ParameterRangesOuterClass() {}
-  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 flyteidl.plugins.sagemaker.HyperparameterScalingType}
-   */
-  public enum HyperparameterScalingType
-      implements com.google.protobuf.ProtocolMessageEnum {
-    /**
-     * AUTO = 0;
-     */
-    AUTO(0),
-    /**
-     * LINEAR = 1;
-     */
-    LINEAR(1),
-    /**
-     * LOGARITHMIC = 2;
-     */
-    LOGARITHMIC(2),
-    /**
-     * REVERSELOGARITHMIC = 3;
-     */
-    REVERSELOGARITHMIC(3),
-    UNRECOGNIZED(-1),
-    ;
-
-    /**
-     * AUTO = 0;
-     */
-    public static final int AUTO_VALUE = 0;
-    /**
-     * LINEAR = 1;
-     */
-    public static final int LINEAR_VALUE = 1;
-    /**
-     * LOGARITHMIC = 2;
-     */
-    public static final int LOGARITHMIC_VALUE = 2;
-    /**
-     * REVERSELOGARITHMIC = 3;
-     */
-    public static final int REVERSELOGARITHMIC_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;
-    }
-
-    /**
-     * @deprecated Use {@link #forNumber(int)} instead.
-     */
-    @java.lang.Deprecated
-    public static HyperparameterScalingType valueOf(int value) {
-      return forNumber(value);
-    }
-
-    public static HyperparameterScalingType forNumber(int value) {
-      switch (value) {
-        case 0: return AUTO;
-        case 1: return LINEAR;
-        case 2: return LOGARITHMIC;
-        case 3: return REVERSELOGARITHMIC;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
-      return internalValueMap;
-    }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        HyperparameterScalingType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public HyperparameterScalingType findValueByNumber(int number) {
-              return HyperparameterScalingType.forNumber(number);
-            }
-          };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
-      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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor().getEnumTypes().get(0);
-    }
-
-    private static final HyperparameterScalingType[] VALUES = values();
-
-    public static HyperparameterScalingType 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 HyperparameterScalingType(int value) {
-      this.value = value;
-    }
-
-    // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType)
-  }
-
-  public interface ContinuousParameterRangeOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ContinuousParameterRange)
-      com.google.protobuf.MessageOrBuilder {
-
-    /**
-     * double max_value = 1;
-     */
-    double getMaxValue();
-
-    /**
-     * double min_value = 2;
-     */
-    double getMinValue();
-
-    /**
-     * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-     */
-    int getScalingTypeValue();
-    /**
-     * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-     */
-    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType();
-  }
-  /**
-   * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange}
-   */
-  public  static final class ContinuousParameterRange extends
-      com.google.protobuf.GeneratedMessageV3 implements
-      // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange)
-      ContinuousParameterRangeOrBuilder {
-  private static final long serialVersionUID = 0L;
-    // Use ContinuousParameterRange.newBuilder() to construct.
-    private ContinuousParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) {
-      super(builder);
-    }
-    private ContinuousParameterRange() {
-      scalingType_ = 0;
-    }
-
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
-      return this.unknownFields;
-    }
-    private ContinuousParameterRange(
-        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 9: {
-
-              maxValue_ = input.readDouble();
-              break;
-            }
-            case 17: {
-
-              minValue_ = input.readDouble();
-              break;
-            }
-            case 24: {
-              int rawValue = input.readEnum();
-
-              scalingType_ = rawValue;
-              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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor;
-    }
-
-    @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-        internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable
-          .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class);
-    }
-
-    public static final int MAX_VALUE_FIELD_NUMBER = 1;
-    private double maxValue_;
-    /**
-     * double max_value = 1;
-     */
-    public double getMaxValue() {
-      return maxValue_;
-    }
-
-    public static final int MIN_VALUE_FIELD_NUMBER = 2;
-    private double minValue_;
-    /**
-     * double min_value = 2;
-     */
-    public double getMinValue() {
-      return minValue_;
-    }
-
-    public static final int SCALING_TYPE_FIELD_NUMBER = 3;
-    private int scalingType_;
-    /**
-     * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-     */
-    public int getScalingTypeValue() {
-      return scalingType_;
-    }
-    /**
-     * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-     */
-    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() {
-      @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_);
-      return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result;
-    }
-
-    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 (maxValue_ != 0D) {
-        output.writeDouble(1, maxValue_);
-      }
-      if (minValue_ != 0D) {
-        output.writeDouble(2, minValue_);
-      }
-      if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) {
-        output.writeEnum(3, scalingType_);
-      }
-      unknownFields.writeTo(output);
-    }
-
-    @java.lang.Override
-    public int getSerializedSize() {
-      int size = memoizedSize;
-      if (size != -1) return size;
-
-      size = 0;
-      if (maxValue_ != 0D) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeDoubleSize(1, maxValue_);
-      }
-      if (minValue_ != 0D) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeDoubleSize(2, minValue_);
-      }
-      if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeEnumSize(3, scalingType_);
-      }
-      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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)) {
-        return super.equals(obj);
-      }
-      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) obj;
-
-      if (java.lang.Double.doubleToLongBits(getMaxValue())
-          != java.lang.Double.doubleToLongBits(
-              other.getMaxValue())) return false;
-      if (java.lang.Double.doubleToLongBits(getMinValue())
-          != java.lang.Double.doubleToLongBits(
-              other.getMinValue())) return false;
-      if (scalingType_ != other.scalingType_) 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) + MAX_VALUE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          java.lang.Double.doubleToLongBits(getMaxValue()));
-      hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          java.lang.Double.doubleToLongBits(getMinValue()));
-      hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER;
-      hash = (53 * hash) + scalingType_;
-      hash = (29 * hash) + unknownFields.hashCode();
-      memoizedHashCode = hash;
-      return hash;
-    }
-
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ContinuousParameterRange}
-     */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
-        // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange)
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor;
-      }
-
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class);
-      }
-
-      // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.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();
-        maxValue_ = 0D;
-
-        minValue_ = 0D;
-
-        scalingType_ = 0;
-
-        return this;
-      }
-
-      @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor;
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange build() {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = buildPartial();
-        if (!result.isInitialized()) {
-          throw newUninitializedMessageException(result);
-        }
-        return result;
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange buildPartial() {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(this);
-        result.maxValue_ = maxValue_;
-        result.minValue_ = minValue_;
-        result.scalingType_ = scalingType_;
-        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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) {
-          return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)other);
-        } else {
-          super.mergeFrom(other);
-          return this;
-        }
-      }
-
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other) {
-        if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) return this;
-        if (other.getMaxValue() != 0D) {
-          setMaxValue(other.getMaxValue());
-        }
-        if (other.getMinValue() != 0D) {
-          setMinValue(other.getMinValue());
-        }
-        if (other.scalingType_ != 0) {
-          setScalingTypeValue(other.getScalingTypeValue());
-        }
-        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 {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parsedMessage = null;
-        try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) e.getUnfinishedMessage();
-          throw e.unwrapIOException();
-        } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
-        return this;
-      }
-
-      private double maxValue_ ;
-      /**
-       * double max_value = 1;
-       */
-      public double getMaxValue() {
-        return maxValue_;
-      }
-      /**
-       * double max_value = 1;
-       */
-      public Builder setMaxValue(double value) {
-        
-        maxValue_ = value;
-        onChanged();
-        return this;
-      }
-      /**
-       * double max_value = 1;
-       */
-      public Builder clearMaxValue() {
-        
-        maxValue_ = 0D;
-        onChanged();
-        return this;
-      }
-
-      private double minValue_ ;
-      /**
-       * double min_value = 2;
-       */
-      public double getMinValue() {
-        return minValue_;
-      }
-      /**
-       * double min_value = 2;
-       */
-      public Builder setMinValue(double value) {
-        
-        minValue_ = value;
-        onChanged();
-        return this;
-      }
-      /**
-       * double min_value = 2;
-       */
-      public Builder clearMinValue() {
-        
-        minValue_ = 0D;
-        onChanged();
-        return this;
-      }
-
-      private int scalingType_ = 0;
-      /**
-       * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-       */
-      public int getScalingTypeValue() {
-        return scalingType_;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-       */
-      public Builder setScalingTypeValue(int value) {
-        scalingType_ = value;
-        onChanged();
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-       */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() {
-        @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_);
-        return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-       */
-      public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) {
-        if (value == null) {
-          throw new NullPointerException();
-        }
-        
-        scalingType_ = value.getNumber();
-        onChanged();
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-       */
-      public Builder clearScalingType() {
-        
-        scalingType_ = 0;
-        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:flyteidl.plugins.sagemaker.ContinuousParameterRange)
-    }
-
-    // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange)
-    private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange DEFAULT_INSTANCE;
-    static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange();
-    }
-
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstance() {
-      return DEFAULT_INSTANCE;
-    }
-
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public ContinuousParameterRange parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new ContinuousParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() {
-      return DEFAULT_INSTANCE;
-    }
-
-  }
-
-  public interface IntegerParameterRangeOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.IntegerParameterRange)
-      com.google.protobuf.MessageOrBuilder {
-
-    /**
-     * int64 max_value = 1;
-     */
-    long getMaxValue();
-
-    /**
-     * int64 min_value = 2;
-     */
-    long getMinValue();
-
-    /**
-     * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-     */
-    int getScalingTypeValue();
-    /**
-     * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-     */
-    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType();
-  }
-  /**
-   * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange}
-   */
-  public  static final class IntegerParameterRange extends
-      com.google.protobuf.GeneratedMessageV3 implements
-      // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.IntegerParameterRange)
-      IntegerParameterRangeOrBuilder {
-  private static final long serialVersionUID = 0L;
-    // Use IntegerParameterRange.newBuilder() to construct.
-    private IntegerParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) {
-      super(builder);
-    }
-    private IntegerParameterRange() {
-      scalingType_ = 0;
-    }
-
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
-      return this.unknownFields;
-    }
-    private IntegerParameterRange(
-        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 8: {
-
-              maxValue_ = input.readInt64();
-              break;
-            }
-            case 16: {
-
-              minValue_ = input.readInt64();
-              break;
-            }
-            case 24: {
-              int rawValue = input.readEnum();
-
-              scalingType_ = rawValue;
-              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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor;
-    }
-
-    @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-        internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable
-          .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class);
-    }
-
-    public static final int MAX_VALUE_FIELD_NUMBER = 1;
-    private long maxValue_;
-    /**
-     * int64 max_value = 1;
-     */
-    public long getMaxValue() {
-      return maxValue_;
-    }
-
-    public static final int MIN_VALUE_FIELD_NUMBER = 2;
-    private long minValue_;
-    /**
-     * int64 min_value = 2;
-     */
-    public long getMinValue() {
-      return minValue_;
-    }
-
-    public static final int SCALING_TYPE_FIELD_NUMBER = 3;
-    private int scalingType_;
-    /**
-     * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-     */
-    public int getScalingTypeValue() {
-      return scalingType_;
-    }
-    /**
-     * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-     */
-    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() {
-      @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_);
-      return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result;
-    }
-
-    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 (maxValue_ != 0L) {
-        output.writeInt64(1, maxValue_);
-      }
-      if (minValue_ != 0L) {
-        output.writeInt64(2, minValue_);
-      }
-      if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) {
-        output.writeEnum(3, scalingType_);
-      }
-      unknownFields.writeTo(output);
-    }
-
-    @java.lang.Override
-    public int getSerializedSize() {
-      int size = memoizedSize;
-      if (size != -1) return size;
-
-      size = 0;
-      if (maxValue_ != 0L) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeInt64Size(1, maxValue_);
-      }
-      if (minValue_ != 0L) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeInt64Size(2, minValue_);
-      }
-      if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeEnumSize(3, scalingType_);
-      }
-      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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)) {
-        return super.equals(obj);
-      }
-      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) obj;
-
-      if (getMaxValue()
-          != other.getMaxValue()) return false;
-      if (getMinValue()
-          != other.getMinValue()) return false;
-      if (scalingType_ != other.scalingType_) 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) + MAX_VALUE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          getMaxValue());
-      hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          getMinValue());
-      hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER;
-      hash = (53 * hash) + scalingType_;
-      hash = (29 * hash) + unknownFields.hashCode();
-      memoizedHashCode = hash;
-      return hash;
-    }
-
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.IntegerParameterRange}
-     */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
-        // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.IntegerParameterRange)
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor;
-      }
-
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class);
-      }
-
-      // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.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();
-        maxValue_ = 0L;
-
-        minValue_ = 0L;
-
-        scalingType_ = 0;
-
-        return this;
-      }
-
-      @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor;
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange build() {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = buildPartial();
-        if (!result.isInitialized()) {
-          throw newUninitializedMessageException(result);
-        }
-        return result;
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange buildPartial() {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(this);
-        result.maxValue_ = maxValue_;
-        result.minValue_ = minValue_;
-        result.scalingType_ = scalingType_;
-        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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) {
-          return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)other);
-        } else {
-          super.mergeFrom(other);
-          return this;
-        }
-      }
-
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other) {
-        if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) return this;
-        if (other.getMaxValue() != 0L) {
-          setMaxValue(other.getMaxValue());
-        }
-        if (other.getMinValue() != 0L) {
-          setMinValue(other.getMinValue());
-        }
-        if (other.scalingType_ != 0) {
-          setScalingTypeValue(other.getScalingTypeValue());
-        }
-        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 {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parsedMessage = null;
-        try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) e.getUnfinishedMessage();
-          throw e.unwrapIOException();
-        } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
-        return this;
-      }
-
-      private long maxValue_ ;
-      /**
-       * int64 max_value = 1;
-       */
-      public long getMaxValue() {
-        return maxValue_;
-      }
-      /**
-       * int64 max_value = 1;
-       */
-      public Builder setMaxValue(long value) {
-        
-        maxValue_ = value;
-        onChanged();
-        return this;
-      }
-      /**
-       * int64 max_value = 1;
-       */
-      public Builder clearMaxValue() {
-        
-        maxValue_ = 0L;
-        onChanged();
-        return this;
-      }
-
-      private long minValue_ ;
-      /**
-       * int64 min_value = 2;
-       */
-      public long getMinValue() {
-        return minValue_;
-      }
-      /**
-       * int64 min_value = 2;
-       */
-      public Builder setMinValue(long value) {
-        
-        minValue_ = value;
-        onChanged();
-        return this;
-      }
-      /**
-       * int64 min_value = 2;
-       */
-      public Builder clearMinValue() {
-        
-        minValue_ = 0L;
-        onChanged();
-        return this;
-      }
-
-      private int scalingType_ = 0;
-      /**
-       * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-       */
-      public int getScalingTypeValue() {
-        return scalingType_;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-       */
-      public Builder setScalingTypeValue(int value) {
-        scalingType_ = value;
-        onChanged();
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-       */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() {
-        @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_);
-        return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-       */
-      public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) {
-        if (value == null) {
-          throw new NullPointerException();
-        }
-        
-        scalingType_ = value.getNumber();
-        onChanged();
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
-       */
-      public Builder clearScalingType() {
-        
-        scalingType_ = 0;
-        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:flyteidl.plugins.sagemaker.IntegerParameterRange)
-    }
-
-    // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange)
-    private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange DEFAULT_INSTANCE;
-    static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange();
-    }
-
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstance() {
-      return DEFAULT_INSTANCE;
-    }
-
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public IntegerParameterRange parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new IntegerParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() {
-      return DEFAULT_INSTANCE;
-    }
-
-  }
-
-  public interface CategoricalParameterRangeOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.CategoricalParameterRange)
-      com.google.protobuf.MessageOrBuilder {
-
-    /**
-     * repeated string values = 1;
-     */
-    java.util.List
-        getValuesList();
-    /**
-     * repeated string values = 1;
-     */
-    int getValuesCount();
-    /**
-     * repeated string values = 1;
-     */
-    java.lang.String getValues(int index);
-    /**
-     * repeated string values = 1;
-     */
-    com.google.protobuf.ByteString
-        getValuesBytes(int index);
-  }
-  /**
-   * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange}
-   */
-  public  static final class CategoricalParameterRange extends
-      com.google.protobuf.GeneratedMessageV3 implements
-      // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange)
-      CategoricalParameterRangeOrBuilder {
-  private static final long serialVersionUID = 0L;
-    // Use CategoricalParameterRange.newBuilder() to construct.
-    private CategoricalParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) {
-      super(builder);
-    }
-    private CategoricalParameterRange() {
-      values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-    }
-
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
-      return this.unknownFields;
-    }
-    private CategoricalParameterRange(
-        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();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                values_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              values_.add(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)) {
-          values_ = values_.getUnmodifiableView();
-        }
-        this.unknownFields = unknownFields.build();
-        makeExtensionsImmutable();
-      }
-    }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor;
-    }
-
-    @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-        internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable
-          .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class);
-    }
-
-    public static final int VALUES_FIELD_NUMBER = 1;
-    private com.google.protobuf.LazyStringList values_;
-    /**
-     * repeated string values = 1;
-     */
-    public com.google.protobuf.ProtocolStringList
-        getValuesList() {
-      return values_;
-    }
-    /**
-     * repeated string values = 1;
-     */
-    public int getValuesCount() {
-      return values_.size();
-    }
-    /**
-     * repeated string values = 1;
-     */
-    public java.lang.String getValues(int index) {
-      return values_.get(index);
-    }
-    /**
-     * repeated string values = 1;
-     */
-    public com.google.protobuf.ByteString
-        getValuesBytes(int index) {
-      return values_.getByteString(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 < values_.size(); i++) {
-        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
-      }
-      unknownFields.writeTo(output);
-    }
-
-    @java.lang.Override
-    public int getSerializedSize() {
-      int size = memoizedSize;
-      if (size != -1) return size;
-
-      size = 0;
-      {
-        int dataSize = 0;
-        for (int i = 0; i < values_.size(); i++) {
-          dataSize += computeStringSizeNoTag(values_.getRaw(i));
-        }
-        size += dataSize;
-        size += 1 * getValuesList().size();
-      }
-      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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)) {
-        return super.equals(obj);
-      }
-      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) obj;
-
-      if (!getValuesList()
-          .equals(other.getValuesList())) 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 (getValuesCount() > 0) {
-        hash = (37 * hash) + VALUES_FIELD_NUMBER;
-        hash = (53 * hash) + getValuesList().hashCode();
-      }
-      hash = (29 * hash) + unknownFields.hashCode();
-      memoizedHashCode = hash;
-      return hash;
-    }
-
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.CategoricalParameterRange}
-     */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
-        // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange)
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor;
-      }
-
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class);
-      }
-
-      // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.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();
-        values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-        bitField0_ = (bitField0_ & ~0x00000001);
-        return this;
-      }
-
-      @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor;
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange build() {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = buildPartial();
-        if (!result.isInitialized()) {
-          throw newUninitializedMessageException(result);
-        }
-        return result;
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange buildPartial() {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(this);
-        int from_bitField0_ = bitField0_;
-        if (((bitField0_ & 0x00000001) != 0)) {
-          values_ = values_.getUnmodifiableView();
-          bitField0_ = (bitField0_ & ~0x00000001);
-        }
-        result.values_ = values_;
-        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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) {
-          return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)other);
-        } else {
-          super.mergeFrom(other);
-          return this;
-        }
-      }
-
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other) {
-        if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) return this;
-        if (!other.values_.isEmpty()) {
-          if (values_.isEmpty()) {
-            values_ = other.values_;
-            bitField0_ = (bitField0_ & ~0x00000001);
-          } else {
-            ensureValuesIsMutable();
-            values_.addAll(other.values_);
-          }
-          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 {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parsedMessage = null;
-        try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) e.getUnfinishedMessage();
-          throw e.unwrapIOException();
-        } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
-        return this;
-      }
-      private int bitField0_;
-
-      private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      private void ensureValuesIsMutable() {
-        if (!((bitField0_ & 0x00000001) != 0)) {
-          values_ = new com.google.protobuf.LazyStringArrayList(values_);
-          bitField0_ |= 0x00000001;
-         }
-      }
-      /**
-       * repeated string values = 1;
-       */
-      public com.google.protobuf.ProtocolStringList
-          getValuesList() {
-        return values_.getUnmodifiableView();
-      }
-      /**
-       * repeated string values = 1;
-       */
-      public int getValuesCount() {
-        return values_.size();
-      }
-      /**
-       * repeated string values = 1;
-       */
-      public java.lang.String getValues(int index) {
-        return values_.get(index);
-      }
-      /**
-       * repeated string values = 1;
-       */
-      public com.google.protobuf.ByteString
-          getValuesBytes(int index) {
-        return values_.getByteString(index);
-      }
-      /**
-       * repeated string values = 1;
-       */
-      public Builder setValues(
-          int index, java.lang.String value) {
-        if (value == null) {
-    throw new NullPointerException();
-  }
-  ensureValuesIsMutable();
-        values_.set(index, value);
-        onChanged();
-        return this;
-      }
-      /**
-       * repeated string values = 1;
-       */
-      public Builder addValues(
-          java.lang.String value) {
-        if (value == null) {
-    throw new NullPointerException();
-  }
-  ensureValuesIsMutable();
-        values_.add(value);
-        onChanged();
-        return this;
-      }
-      /**
-       * repeated string values = 1;
-       */
-      public Builder addAllValues(
-          java.lang.Iterable values) {
-        ensureValuesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, values_);
-        onChanged();
-        return this;
-      }
-      /**
-       * repeated string values = 1;
-       */
-      public Builder clearValues() {
-        values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-        bitField0_ = (bitField0_ & ~0x00000001);
-        onChanged();
-        return this;
-      }
-      /**
-       * repeated string values = 1;
-       */
-      public Builder addValuesBytes(
-          com.google.protobuf.ByteString value) {
-        if (value == null) {
-    throw new NullPointerException();
-  }
-  checkByteStringIsUtf8(value);
-        ensureValuesIsMutable();
-        values_.add(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:flyteidl.plugins.sagemaker.CategoricalParameterRange)
-    }
-
-    // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange)
-    private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange DEFAULT_INSTANCE;
-    static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange();
-    }
-
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstance() {
-      return DEFAULT_INSTANCE;
-    }
-
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public CategoricalParameterRange parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new CategoricalParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() {
-      return DEFAULT_INSTANCE;
-    }
-
-  }
-
-  public interface ParameterRangeOneOfOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRangeOneOf)
-      com.google.protobuf.MessageOrBuilder {
-
-    /**
-     * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-     */
-    boolean hasContinuousParameterRange();
-    /**
-     * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-     */
-    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange();
-    /**
-     * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-     */
-    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder();
-
-    /**
-     * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-     */
-    boolean hasIntegerParameterRange();
-    /**
-     * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-     */
-    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange();
-    /**
-     * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-     */
-    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder();
-
-    /**
-     * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-     */
-    boolean hasCategoricalParameterRange();
-    /**
-     * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-     */
-    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange();
-    /**
-     * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-     */
-    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder();
-
-    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.ParameterRangeTypeCase getParameterRangeTypeCase();
-  }
-  /**
-   * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf}
-   */
-  public  static final class ParameterRangeOneOf extends
-      com.google.protobuf.GeneratedMessageV3 implements
-      // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf)
-      ParameterRangeOneOfOrBuilder {
-  private static final long serialVersionUID = 0L;
-    // Use ParameterRangeOneOf.newBuilder() to construct.
-    private ParameterRangeOneOf(com.google.protobuf.GeneratedMessageV3.Builder builder) {
-      super(builder);
-    }
-    private ParameterRangeOneOf() {
-    }
-
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
-      return this.unknownFields;
-    }
-    private ParameterRangeOneOf(
-        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: {
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder subBuilder = null;
-              if (parameterRangeTypeCase_ == 1) {
-                subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_).toBuilder();
-              }
-              parameterRangeType_ =
-                  input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_);
-                parameterRangeType_ = subBuilder.buildPartial();
-              }
-              parameterRangeTypeCase_ = 1;
-              break;
-            }
-            case 18: {
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder subBuilder = null;
-              if (parameterRangeTypeCase_ == 2) {
-                subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_).toBuilder();
-              }
-              parameterRangeType_ =
-                  input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_);
-                parameterRangeType_ = subBuilder.buildPartial();
-              }
-              parameterRangeTypeCase_ = 2;
-              break;
-            }
-            case 26: {
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder subBuilder = null;
-              if (parameterRangeTypeCase_ == 3) {
-                subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_).toBuilder();
-              }
-              parameterRangeType_ =
-                  input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_);
-                parameterRangeType_ = subBuilder.buildPartial();
-              }
-              parameterRangeTypeCase_ = 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor;
-    }
-
-    @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-        internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable
-          .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class);
-    }
-
-    private int parameterRangeTypeCase_ = 0;
-    private java.lang.Object parameterRangeType_;
-    public enum ParameterRangeTypeCase
-        implements com.google.protobuf.Internal.EnumLite {
-      CONTINUOUS_PARAMETER_RANGE(1),
-      INTEGER_PARAMETER_RANGE(2),
-      CATEGORICAL_PARAMETER_RANGE(3),
-      PARAMETERRANGETYPE_NOT_SET(0);
-      private final int value;
-      private ParameterRangeTypeCase(int value) {
-        this.value = value;
-      }
-      /**
-       * @deprecated Use {@link #forNumber(int)} instead.
-       */
-      @java.lang.Deprecated
-      public static ParameterRangeTypeCase valueOf(int value) {
-        return forNumber(value);
-      }
-
-      public static ParameterRangeTypeCase forNumber(int value) {
-        switch (value) {
-          case 1: return CONTINUOUS_PARAMETER_RANGE;
-          case 2: return INTEGER_PARAMETER_RANGE;
-          case 3: return CATEGORICAL_PARAMETER_RANGE;
-          case 0: return PARAMETERRANGETYPE_NOT_SET;
-          default: return null;
-        }
-      }
-      public int getNumber() {
-        return this.value;
-      }
-    };
-
-    public ParameterRangeTypeCase
-    getParameterRangeTypeCase() {
-      return ParameterRangeTypeCase.forNumber(
-          parameterRangeTypeCase_);
-    }
-
-    public static final int CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER = 1;
-    /**
-     * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-     */
-    public boolean hasContinuousParameterRange() {
-      return parameterRangeTypeCase_ == 1;
-    }
-    /**
-     * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-     */
-    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() {
-      if (parameterRangeTypeCase_ == 1) {
-         return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_;
-      }
-      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
-    }
-    /**
-     * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-     */
-    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() {
-      if (parameterRangeTypeCase_ == 1) {
-         return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_;
-      }
-      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
-    }
-
-    public static final int INTEGER_PARAMETER_RANGE_FIELD_NUMBER = 2;
-    /**
-     * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-     */
-    public boolean hasIntegerParameterRange() {
-      return parameterRangeTypeCase_ == 2;
-    }
-    /**
-     * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-     */
-    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() {
-      if (parameterRangeTypeCase_ == 2) {
-         return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_;
-      }
-      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
-    }
-    /**
-     * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-     */
-    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() {
-      if (parameterRangeTypeCase_ == 2) {
-         return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_;
-      }
-      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
-    }
-
-    public static final int CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER = 3;
-    /**
-     * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-     */
-    public boolean hasCategoricalParameterRange() {
-      return parameterRangeTypeCase_ == 3;
-    }
-    /**
-     * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-     */
-    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() {
-      if (parameterRangeTypeCase_ == 3) {
-         return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_;
-      }
-      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
-    }
-    /**
-     * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-     */
-    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() {
-      if (parameterRangeTypeCase_ == 3) {
-         return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_;
-      }
-      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
-    }
-
-    private byte memoizedIsInitialized = -1;
-    @java.lang.Override
-    public final boolean isInitialized() {
-      byte isInitialized = memoizedIsInitialized;
-      if (isInitialized == 1) return true;
-      if (isInitialized == 0) return false;
-
-      memoizedIsInitialized = 1;
-      return true;
-    }
-
-    @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
-      if (parameterRangeTypeCase_ == 1) {
-        output.writeMessage(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_);
-      }
-      if (parameterRangeTypeCase_ == 2) {
-        output.writeMessage(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_);
-      }
-      if (parameterRangeTypeCase_ == 3) {
-        output.writeMessage(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_);
-      }
-      unknownFields.writeTo(output);
-    }
-
-    @java.lang.Override
-    public int getSerializedSize() {
-      int size = memoizedSize;
-      if (size != -1) return size;
-
-      size = 0;
-      if (parameterRangeTypeCase_ == 1) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_);
-      }
-      if (parameterRangeTypeCase_ == 2) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_);
-      }
-      if (parameterRangeTypeCase_ == 3) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_);
-      }
-      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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)) {
-        return super.equals(obj);
-      }
-      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) obj;
-
-      if (!getParameterRangeTypeCase().equals(other.getParameterRangeTypeCase())) return false;
-      switch (parameterRangeTypeCase_) {
-        case 1:
-          if (!getContinuousParameterRange()
-              .equals(other.getContinuousParameterRange())) return false;
-          break;
-        case 2:
-          if (!getIntegerParameterRange()
-              .equals(other.getIntegerParameterRange())) return false;
-          break;
-        case 3:
-          if (!getCategoricalParameterRange()
-              .equals(other.getCategoricalParameterRange())) return false;
-          break;
-        case 0:
-        default:
-      }
-      if (!unknownFields.equals(other.unknownFields)) return false;
-      return true;
-    }
-
-    @java.lang.Override
-    public int hashCode() {
-      if (memoizedHashCode != 0) {
-        return memoizedHashCode;
-      }
-      int hash = 41;
-      hash = (19 * hash) + getDescriptor().hashCode();
-      switch (parameterRangeTypeCase_) {
-        case 1:
-          hash = (37 * hash) + CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER;
-          hash = (53 * hash) + getContinuousParameterRange().hashCode();
-          break;
-        case 2:
-          hash = (37 * hash) + INTEGER_PARAMETER_RANGE_FIELD_NUMBER;
-          hash = (53 * hash) + getIntegerParameterRange().hashCode();
-          break;
-        case 3:
-          hash = (37 * hash) + CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER;
-          hash = (53 * hash) + getCategoricalParameterRange().hashCode();
-          break;
-        case 0:
-        default:
-      }
-      hash = (29 * hash) + unknownFields.hashCode();
-      memoizedHashCode = hash;
-      return hash;
-    }
-
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangeOneOf}
-     */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
-        // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf)
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOfOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor;
-      }
-
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class);
-      }
-
-      // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.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();
-        parameterRangeTypeCase_ = 0;
-        parameterRangeType_ = null;
-        return this;
-      }
-
-      @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor;
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance();
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf build() {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = buildPartial();
-        if (!result.isInitialized()) {
-          throw newUninitializedMessageException(result);
-        }
-        return result;
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf buildPartial() {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(this);
-        if (parameterRangeTypeCase_ == 1) {
-          if (continuousParameterRangeBuilder_ == null) {
-            result.parameterRangeType_ = parameterRangeType_;
-          } else {
-            result.parameterRangeType_ = continuousParameterRangeBuilder_.build();
-          }
-        }
-        if (parameterRangeTypeCase_ == 2) {
-          if (integerParameterRangeBuilder_ == null) {
-            result.parameterRangeType_ = parameterRangeType_;
-          } else {
-            result.parameterRangeType_ = integerParameterRangeBuilder_.build();
-          }
-        }
-        if (parameterRangeTypeCase_ == 3) {
-          if (categoricalParameterRangeBuilder_ == null) {
-            result.parameterRangeType_ = parameterRangeType_;
-          } else {
-            result.parameterRangeType_ = categoricalParameterRangeBuilder_.build();
-          }
-        }
-        result.parameterRangeTypeCase_ = parameterRangeTypeCase_;
-        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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) {
-          return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)other);
-        } else {
-          super.mergeFrom(other);
-          return this;
-        }
-      }
-
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other) {
-        if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()) return this;
-        switch (other.getParameterRangeTypeCase()) {
-          case CONTINUOUS_PARAMETER_RANGE: {
-            mergeContinuousParameterRange(other.getContinuousParameterRange());
-            break;
-          }
-          case INTEGER_PARAMETER_RANGE: {
-            mergeIntegerParameterRange(other.getIntegerParameterRange());
-            break;
-          }
-          case CATEGORICAL_PARAMETER_RANGE: {
-            mergeCategoricalParameterRange(other.getCategoricalParameterRange());
-            break;
-          }
-          case PARAMETERRANGETYPE_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 {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parsedMessage = null;
-        try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) e.getUnfinishedMessage();
-          throw e.unwrapIOException();
-        } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
-        return this;
-      }
-      private int parameterRangeTypeCase_ = 0;
-      private java.lang.Object parameterRangeType_;
-      public ParameterRangeTypeCase
-          getParameterRangeTypeCase() {
-        return ParameterRangeTypeCase.forNumber(
-            parameterRangeTypeCase_);
-      }
-
-      public Builder clearParameterRangeType() {
-        parameterRangeTypeCase_ = 0;
-        parameterRangeType_ = null;
-        onChanged();
-        return this;
-      }
-
-
-      private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> continuousParameterRangeBuilder_;
-      /**
-       * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-       */
-      public boolean hasContinuousParameterRange() {
-        return parameterRangeTypeCase_ == 1;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-       */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() {
-        if (continuousParameterRangeBuilder_ == null) {
-          if (parameterRangeTypeCase_ == 1) {
-            return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_;
-          }
-          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
-        } else {
-          if (parameterRangeTypeCase_ == 1) {
-            return continuousParameterRangeBuilder_.getMessage();
-          }
-          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
-        }
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-       */
-      public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) {
-        if (continuousParameterRangeBuilder_ == null) {
-          if (value == null) {
-            throw new NullPointerException();
-          }
-          parameterRangeType_ = value;
-          onChanged();
-        } else {
-          continuousParameterRangeBuilder_.setMessage(value);
-        }
-        parameterRangeTypeCase_ = 1;
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-       */
-      public Builder setContinuousParameterRange(
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder builderForValue) {
-        if (continuousParameterRangeBuilder_ == null) {
-          parameterRangeType_ = builderForValue.build();
-          onChanged();
-        } else {
-          continuousParameterRangeBuilder_.setMessage(builderForValue.build());
-        }
-        parameterRangeTypeCase_ = 1;
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-       */
-      public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) {
-        if (continuousParameterRangeBuilder_ == null) {
-          if (parameterRangeTypeCase_ == 1 &&
-              parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) {
-            parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_)
-                .mergeFrom(value).buildPartial();
-          } else {
-            parameterRangeType_ = value;
-          }
-          onChanged();
-        } else {
-          if (parameterRangeTypeCase_ == 1) {
-            continuousParameterRangeBuilder_.mergeFrom(value);
-          }
-          continuousParameterRangeBuilder_.setMessage(value);
-        }
-        parameterRangeTypeCase_ = 1;
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-       */
-      public Builder clearContinuousParameterRange() {
-        if (continuousParameterRangeBuilder_ == null) {
-          if (parameterRangeTypeCase_ == 1) {
-            parameterRangeTypeCase_ = 0;
-            parameterRangeType_ = null;
-            onChanged();
-          }
-        } else {
-          if (parameterRangeTypeCase_ == 1) {
-            parameterRangeTypeCase_ = 0;
-            parameterRangeType_ = null;
-          }
-          continuousParameterRangeBuilder_.clear();
-        }
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-       */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder getContinuousParameterRangeBuilder() {
-        return getContinuousParameterRangeFieldBuilder().getBuilder();
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-       */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() {
-        if ((parameterRangeTypeCase_ == 1) && (continuousParameterRangeBuilder_ != null)) {
-          return continuousParameterRangeBuilder_.getMessageOrBuilder();
-        } else {
-          if (parameterRangeTypeCase_ == 1) {
-            return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_;
-          }
-          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
-        }
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
-       */
-      private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> 
-          getContinuousParameterRangeFieldBuilder() {
-        if (continuousParameterRangeBuilder_ == null) {
-          if (!(parameterRangeTypeCase_ == 1)) {
-            parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
-          }
-          continuousParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder>(
-                  (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_,
-                  getParentForChildren(),
-                  isClean());
-          parameterRangeType_ = null;
-        }
-        parameterRangeTypeCase_ = 1;
-        onChanged();;
-        return continuousParameterRangeBuilder_;
-      }
-
-      private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> integerParameterRangeBuilder_;
-      /**
-       * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-       */
-      public boolean hasIntegerParameterRange() {
-        return parameterRangeTypeCase_ == 2;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-       */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() {
-        if (integerParameterRangeBuilder_ == null) {
-          if (parameterRangeTypeCase_ == 2) {
-            return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_;
-          }
-          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
-        } else {
-          if (parameterRangeTypeCase_ == 2) {
-            return integerParameterRangeBuilder_.getMessage();
-          }
-          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
-        }
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-       */
-      public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) {
-        if (integerParameterRangeBuilder_ == null) {
-          if (value == null) {
-            throw new NullPointerException();
-          }
-          parameterRangeType_ = value;
-          onChanged();
-        } else {
-          integerParameterRangeBuilder_.setMessage(value);
-        }
-        parameterRangeTypeCase_ = 2;
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-       */
-      public Builder setIntegerParameterRange(
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder builderForValue) {
-        if (integerParameterRangeBuilder_ == null) {
-          parameterRangeType_ = builderForValue.build();
-          onChanged();
-        } else {
-          integerParameterRangeBuilder_.setMessage(builderForValue.build());
-        }
-        parameterRangeTypeCase_ = 2;
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-       */
-      public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) {
-        if (integerParameterRangeBuilder_ == null) {
-          if (parameterRangeTypeCase_ == 2 &&
-              parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) {
-            parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_)
-                .mergeFrom(value).buildPartial();
-          } else {
-            parameterRangeType_ = value;
-          }
-          onChanged();
-        } else {
-          if (parameterRangeTypeCase_ == 2) {
-            integerParameterRangeBuilder_.mergeFrom(value);
-          }
-          integerParameterRangeBuilder_.setMessage(value);
-        }
-        parameterRangeTypeCase_ = 2;
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-       */
-      public Builder clearIntegerParameterRange() {
-        if (integerParameterRangeBuilder_ == null) {
-          if (parameterRangeTypeCase_ == 2) {
-            parameterRangeTypeCase_ = 0;
-            parameterRangeType_ = null;
-            onChanged();
-          }
-        } else {
-          if (parameterRangeTypeCase_ == 2) {
-            parameterRangeTypeCase_ = 0;
-            parameterRangeType_ = null;
-          }
-          integerParameterRangeBuilder_.clear();
-        }
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-       */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder getIntegerParameterRangeBuilder() {
-        return getIntegerParameterRangeFieldBuilder().getBuilder();
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-       */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() {
-        if ((parameterRangeTypeCase_ == 2) && (integerParameterRangeBuilder_ != null)) {
-          return integerParameterRangeBuilder_.getMessageOrBuilder();
-        } else {
-          if (parameterRangeTypeCase_ == 2) {
-            return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_;
-          }
-          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
-        }
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
-       */
-      private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> 
-          getIntegerParameterRangeFieldBuilder() {
-        if (integerParameterRangeBuilder_ == null) {
-          if (!(parameterRangeTypeCase_ == 2)) {
-            parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
-          }
-          integerParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder>(
-                  (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_,
-                  getParentForChildren(),
-                  isClean());
-          parameterRangeType_ = null;
-        }
-        parameterRangeTypeCase_ = 2;
-        onChanged();;
-        return integerParameterRangeBuilder_;
-      }
-
-      private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> categoricalParameterRangeBuilder_;
-      /**
-       * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-       */
-      public boolean hasCategoricalParameterRange() {
-        return parameterRangeTypeCase_ == 3;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-       */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() {
-        if (categoricalParameterRangeBuilder_ == null) {
-          if (parameterRangeTypeCase_ == 3) {
-            return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_;
-          }
-          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
-        } else {
-          if (parameterRangeTypeCase_ == 3) {
-            return categoricalParameterRangeBuilder_.getMessage();
-          }
-          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
-        }
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-       */
-      public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) {
-        if (categoricalParameterRangeBuilder_ == null) {
-          if (value == null) {
-            throw new NullPointerException();
-          }
-          parameterRangeType_ = value;
-          onChanged();
-        } else {
-          categoricalParameterRangeBuilder_.setMessage(value);
-        }
-        parameterRangeTypeCase_ = 3;
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-       */
-      public Builder setCategoricalParameterRange(
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder builderForValue) {
-        if (categoricalParameterRangeBuilder_ == null) {
-          parameterRangeType_ = builderForValue.build();
-          onChanged();
-        } else {
-          categoricalParameterRangeBuilder_.setMessage(builderForValue.build());
-        }
-        parameterRangeTypeCase_ = 3;
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-       */
-      public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) {
-        if (categoricalParameterRangeBuilder_ == null) {
-          if (parameterRangeTypeCase_ == 3 &&
-              parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) {
-            parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_)
-                .mergeFrom(value).buildPartial();
-          } else {
-            parameterRangeType_ = value;
-          }
-          onChanged();
-        } else {
-          if (parameterRangeTypeCase_ == 3) {
-            categoricalParameterRangeBuilder_.mergeFrom(value);
-          }
-          categoricalParameterRangeBuilder_.setMessage(value);
-        }
-        parameterRangeTypeCase_ = 3;
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-       */
-      public Builder clearCategoricalParameterRange() {
-        if (categoricalParameterRangeBuilder_ == null) {
-          if (parameterRangeTypeCase_ == 3) {
-            parameterRangeTypeCase_ = 0;
-            parameterRangeType_ = null;
-            onChanged();
-          }
-        } else {
-          if (parameterRangeTypeCase_ == 3) {
-            parameterRangeTypeCase_ = 0;
-            parameterRangeType_ = null;
-          }
-          categoricalParameterRangeBuilder_.clear();
-        }
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-       */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder getCategoricalParameterRangeBuilder() {
-        return getCategoricalParameterRangeFieldBuilder().getBuilder();
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-       */
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() {
-        if ((parameterRangeTypeCase_ == 3) && (categoricalParameterRangeBuilder_ != null)) {
-          return categoricalParameterRangeBuilder_.getMessageOrBuilder();
-        } else {
-          if (parameterRangeTypeCase_ == 3) {
-            return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_;
-          }
-          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
-        }
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
-       */
-      private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> 
-          getCategoricalParameterRangeFieldBuilder() {
-        if (categoricalParameterRangeBuilder_ == null) {
-          if (!(parameterRangeTypeCase_ == 3)) {
-            parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
-          }
-          categoricalParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder>(
-                  (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_,
-                  getParentForChildren(),
-                  isClean());
-          parameterRangeType_ = null;
-        }
-        parameterRangeTypeCase_ = 3;
-        onChanged();;
-        return categoricalParameterRangeBuilder_;
-      }
-      @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:flyteidl.plugins.sagemaker.ParameterRangeOneOf)
-    }
-
-    // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf)
-    private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf DEFAULT_INSTANCE;
-    static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf();
-    }
-
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstance() {
-      return DEFAULT_INSTANCE;
-    }
-
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public ParameterRangeOneOf parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new ParameterRangeOneOf(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() {
-      return DEFAULT_INSTANCE;
-    }
-
-  }
-
-  public interface ParameterRangesOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRanges)
-      com.google.protobuf.MessageOrBuilder {
-
-    /**
-     * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-     */
-    int getParameterRangeMapCount();
-    /**
-     * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-     */
-    boolean containsParameterRangeMap(
-        java.lang.String key);
-    /**
-     * Use {@link #getParameterRangeMapMap()} instead.
-     */
-    @java.lang.Deprecated
-    java.util.Map
-    getParameterRangeMap();
-    /**
-     * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-     */
-    java.util.Map
-    getParameterRangeMapMap();
-    /**
-     * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-     */
-
-    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault(
-        java.lang.String key,
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue);
-    /**
-     * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-     */
-
-    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow(
-        java.lang.String key);
-  }
-  /**
-   * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges}
-   */
-  public  static final class ParameterRanges extends
-      com.google.protobuf.GeneratedMessageV3 implements
-      // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRanges)
-      ParameterRangesOrBuilder {
-  private static final long serialVersionUID = 0L;
-    // Use ParameterRanges.newBuilder() to construct.
-    private ParameterRanges(com.google.protobuf.GeneratedMessageV3.Builder builder) {
-      super(builder);
-    }
-    private ParameterRanges() {
-    }
-
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
-      return this.unknownFields;
-    }
-    private ParameterRanges(
-        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)) {
-                parameterRangeMap_ = com.google.protobuf.MapField.newMapField(
-                    ParameterRangeMapDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry
-              parameterRangeMap__ = input.readMessage(
-                  ParameterRangeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              parameterRangeMap_.getMutableMap().put(
-                  parameterRangeMap__.getKey(), parameterRangeMap__.getValue());
-              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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor;
-    }
-
-    @SuppressWarnings({"rawtypes"})
-    @java.lang.Override
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
-      switch (number) {
-        case 1:
-          return internalGetParameterRangeMap();
-        default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
-      }
-    }
-    @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-        internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable
-          .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class);
-    }
-
-    public static final int PARAMETER_RANGE_MAP_FIELD_NUMBER = 1;
-    private static final class ParameterRangeMapDefaultEntryHolder {
-      static final com.google.protobuf.MapEntry<
-          java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> defaultEntry =
-              com.google.protobuf.MapEntry
-              .newDefaultInstance(
-                  flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, 
-                  com.google.protobuf.WireFormat.FieldType.STRING,
-                  "",
-                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                  flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance());
-    }
-    private com.google.protobuf.MapField<
-        java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_;
-    private com.google.protobuf.MapField
-    internalGetParameterRangeMap() {
-      if (parameterRangeMap_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            ParameterRangeMapDefaultEntryHolder.defaultEntry);
-      }
-      return parameterRangeMap_;
-    }
-
-    public int getParameterRangeMapCount() {
-      return internalGetParameterRangeMap().getMap().size();
-    }
-    /**
-     * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-     */
-
-    public boolean containsParameterRangeMap(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      return internalGetParameterRangeMap().getMap().containsKey(key);
-    }
-    /**
-     * Use {@link #getParameterRangeMapMap()} instead.
-     */
-    @java.lang.Deprecated
-    public java.util.Map getParameterRangeMap() {
-      return getParameterRangeMapMap();
-    }
-    /**
-     * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-     */
-
-    public java.util.Map getParameterRangeMapMap() {
-      return internalGetParameterRangeMap().getMap();
-    }
-    /**
-     * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-     */
-
-    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault(
-        java.lang.String key,
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetParameterRangeMap().getMap();
-      return map.containsKey(key) ? map.get(key) : defaultValue;
-    }
-    /**
-     * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-     */
-
-    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetParameterRangeMap().getMap();
-      if (!map.containsKey(key)) {
-        throw new java.lang.IllegalArgumentException();
-      }
-      return map.get(key);
-    }
-
-    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 {
-      com.google.protobuf.GeneratedMessageV3
-        .serializeStringMapTo(
-          output,
-          internalGetParameterRangeMap(),
-          ParameterRangeMapDefaultEntryHolder.defaultEntry,
-          1);
-      unknownFields.writeTo(output);
-    }
-
-    @java.lang.Override
-    public int getSerializedSize() {
-      int size = memoizedSize;
-      if (size != -1) return size;
-
-      size = 0;
-      for (java.util.Map.Entry entry
-           : internalGetParameterRangeMap().getMap().entrySet()) {
-        com.google.protobuf.MapEntry
-        parameterRangeMap__ = ParameterRangeMapDefaultEntryHolder.defaultEntry.newBuilderForType()
-            .setKey(entry.getKey())
-            .setValue(entry.getValue())
-            .build();
-        size += com.google.protobuf.CodedOutputStream
-            .computeMessageSize(1, parameterRangeMap__);
-      }
-      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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)) {
-        return super.equals(obj);
-      }
-      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) obj;
-
-      if (!internalGetParameterRangeMap().equals(
-          other.internalGetParameterRangeMap())) 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 (!internalGetParameterRangeMap().getMap().isEmpty()) {
-        hash = (37 * hash) + PARAMETER_RANGE_MAP_FIELD_NUMBER;
-        hash = (53 * hash) + internalGetParameterRangeMap().hashCode();
-      }
-      hash = (29 * hash) + unknownFields.hashCode();
-      memoizedHashCode = hash;
-      return hash;
-    }
-
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRanges}
-     */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
-        // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRanges)
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor;
-      }
-
-      @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(
-          int number) {
-        switch (number) {
-          case 1:
-            return internalGetParameterRangeMap();
-          default:
-            throw new RuntimeException(
-                "Invalid map field number: " + number);
-        }
-      }
-      @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMutableMapField(
-          int number) {
-        switch (number) {
-          case 1:
-            return internalGetMutableParameterRangeMap();
-          default:
-            throw new RuntimeException(
-                "Invalid map field number: " + number);
-        }
-      }
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class);
-      }
-
-      // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.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();
-        internalGetMutableParameterRangeMap().clear();
-        return this;
-      }
-
-      @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor;
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance();
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges build() {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = buildPartial();
-        if (!result.isInitialized()) {
-          throw newUninitializedMessageException(result);
-        }
-        return result;
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges buildPartial() {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(this);
-        int from_bitField0_ = bitField0_;
-        result.parameterRangeMap_ = internalGetParameterRangeMap();
-        result.parameterRangeMap_.makeImmutable();
-        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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) {
-          return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)other);
-        } else {
-          super.mergeFrom(other);
-          return this;
-        }
-      }
-
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other) {
-        if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance()) return this;
-        internalGetMutableParameterRangeMap().mergeFrom(
-            other.internalGetParameterRangeMap());
-        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 {
-        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parsedMessage = null;
-        try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) e.getUnfinishedMessage();
-          throw e.unwrapIOException();
-        } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
-        return this;
-      }
-      private int bitField0_;
-
-      private com.google.protobuf.MapField<
-          java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_;
-      private com.google.protobuf.MapField
-      internalGetParameterRangeMap() {
-        if (parameterRangeMap_ == null) {
-          return com.google.protobuf.MapField.emptyMapField(
-              ParameterRangeMapDefaultEntryHolder.defaultEntry);
-        }
-        return parameterRangeMap_;
-      }
-      private com.google.protobuf.MapField
-      internalGetMutableParameterRangeMap() {
-        onChanged();;
-        if (parameterRangeMap_ == null) {
-          parameterRangeMap_ = com.google.protobuf.MapField.newMapField(
-              ParameterRangeMapDefaultEntryHolder.defaultEntry);
-        }
-        if (!parameterRangeMap_.isMutable()) {
-          parameterRangeMap_ = parameterRangeMap_.copy();
-        }
-        return parameterRangeMap_;
-      }
-
-      public int getParameterRangeMapCount() {
-        return internalGetParameterRangeMap().getMap().size();
-      }
-      /**
-       * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-       */
-
-      public boolean containsParameterRangeMap(
-          java.lang.String key) {
-        if (key == null) { throw new java.lang.NullPointerException(); }
-        return internalGetParameterRangeMap().getMap().containsKey(key);
-      }
-      /**
-       * Use {@link #getParameterRangeMapMap()} instead.
-       */
-      @java.lang.Deprecated
-      public java.util.Map getParameterRangeMap() {
-        return getParameterRangeMapMap();
-      }
-      /**
-       * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-       */
-
-      public java.util.Map getParameterRangeMapMap() {
-        return internalGetParameterRangeMap().getMap();
-      }
-      /**
-       * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-       */
-
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault(
-          java.lang.String key,
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) {
-        if (key == null) { throw new java.lang.NullPointerException(); }
-        java.util.Map map =
-            internalGetParameterRangeMap().getMap();
-        return map.containsKey(key) ? map.get(key) : defaultValue;
-      }
-      /**
-       * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-       */
-
-      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow(
-          java.lang.String key) {
-        if (key == null) { throw new java.lang.NullPointerException(); }
-        java.util.Map map =
-            internalGetParameterRangeMap().getMap();
-        if (!map.containsKey(key)) {
-          throw new java.lang.IllegalArgumentException();
-        }
-        return map.get(key);
-      }
-
-      public Builder clearParameterRangeMap() {
-        internalGetMutableParameterRangeMap().getMutableMap()
-            .clear();
-        return this;
-      }
-      /**
-       * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-       */
-
-      public Builder removeParameterRangeMap(
-          java.lang.String key) {
-        if (key == null) { throw new java.lang.NullPointerException(); }
-        internalGetMutableParameterRangeMap().getMutableMap()
-            .remove(key);
-        return this;
-      }
-      /**
-       * Use alternate mutation accessors instead.
-       */
-      @java.lang.Deprecated
-      public java.util.Map
-      getMutableParameterRangeMap() {
-        return internalGetMutableParameterRangeMap().getMutableMap();
-      }
-      /**
-       * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-       */
-      public Builder putParameterRangeMap(
-          java.lang.String key,
-          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf value) {
-        if (key == null) { throw new java.lang.NullPointerException(); }
-        if (value == null) { throw new java.lang.NullPointerException(); }
-        internalGetMutableParameterRangeMap().getMutableMap()
-            .put(key, value);
-        return this;
-      }
-      /**
-       * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
-       */
-
-      public Builder putAllParameterRangeMap(
-          java.util.Map values) {
-        internalGetMutableParameterRangeMap().getMutableMap()
-            .putAll(values);
-        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:flyteidl.plugins.sagemaker.ParameterRanges)
-    }
-
-    // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges)
-    private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges DEFAULT_INSTANCE;
-    static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges();
-    }
-
-    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstance() {
-      return DEFAULT_INSTANCE;
-    }
-
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public ParameterRanges parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new ParameterRanges(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() {
-      return DEFAULT_INSTANCE;
-    }
-
-  }
-
-  private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable;
-  private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable;
-  private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable;
-  private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable;
-  private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable;
-  private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable;
-
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
-    return descriptor;
-  }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
-  static {
-    java.lang.String[] descriptorData = {
-      "\n1flyteidl/plugins/sagemaker/parameter_r" +
-      "anges.proto\022\032flyteidl.plugins.sagemaker\"" +
-      "\215\001\n\030ContinuousParameterRange\022\021\n\tmax_valu" +
-      "e\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_ty" +
-      "pe\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hy" +
-      "perparameterScalingType\"\212\001\n\025IntegerParam" +
-      "eterRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_valu" +
-      "e\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl" +
-      ".plugins.sagemaker.HyperparameterScaling" +
-      "Type\"+\n\031CategoricalParameterRange\022\016\n\006val" +
-      "ues\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032con" +
-      "tinuous_parameter_range\030\001 \001(\01324.flyteidl" +
-      ".plugins.sagemaker.ContinuousParameterRa" +
-      "ngeH\000\022T\n\027integer_parameter_range\030\002 \001(\01321" +
-      ".flyteidl.plugins.sagemaker.IntegerParam" +
-      "eterRangeH\000\022\\\n\033categorical_parameter_ran" +
-      "ge\030\003 \001(\01325.flyteidl.plugins.sagemaker.Ca" +
-      "tegoricalParameterRangeH\000B\026\n\024parameter_r" +
-      "ange_type\"\335\001\n\017ParameterRanges\022_\n\023paramet" +
-      "er_range_map\030\001 \003(\0132B.flyteidl.plugins.sa" +
-      "gemaker.ParameterRanges.ParameterRangeMa" +
-      "pEntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030" +
-      "\001 \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins." +
-      "sagemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyp" +
-      "erparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINE" +
-      "AR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITH" +
-      "MIC\020\003B5Z3github.com/lyft/flyteidl/gen/pb" +
-      "-go/flyteidl/pluginsb\006proto3"
-    };
-    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
-        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
-          public com.google.protobuf.ExtensionRegistry assignDescriptors(
-              com.google.protobuf.Descriptors.FileDescriptor root) {
-            descriptor = root;
-            return null;
-          }
-        };
-    com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-        }, assigner);
-    internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor,
-        new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", });
-    internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor,
-        new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", });
-    internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor =
-      getDescriptor().getMessageTypes().get(2);
-    internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor,
-        new java.lang.String[] { "Values", });
-    internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor =
-      getDescriptor().getMessageTypes().get(3);
-    internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor,
-        new java.lang.String[] { "ContinuousParameterRange", "IntegerParameterRange", "CategoricalParameterRange", "ParameterRangeType", });
-    internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor =
-      getDescriptor().getMessageTypes().get(4);
-    internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor,
-        new java.lang.String[] { "ParameterRangeMap", });
-    internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor =
-      internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor.getNestedTypes().get(0);
-    internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor,
-        new java.lang.String[] { "Key", "Value", });
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java
deleted file mode 100644
index c7c7a93f1..000000000
--- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java
+++ /dev/null
@@ -1,4208 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: flyteidl/plugins/sagemaker/training_job.proto
-
-package flyteidl.plugins.sagemaker;
-
-public final class TrainingJobOuterClass {
-  private TrainingJobOuterClass() {}
-  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 flyteidl.plugins.sagemaker.InputMode}
-   */
-  public enum InputMode
-      implements com.google.protobuf.ProtocolMessageEnum {
-    /**
-     * FILE = 0;
-     */
-    FILE(0),
-    /**
-     * PIPE = 1;
-     */
-    PIPE(1),
-    UNRECOGNIZED(-1),
-    ;
-
-    /**
-     * FILE = 0;
-     */
-    public static final int FILE_VALUE = 0;
-    /**
-     * PIPE = 1;
-     */
-    public static final int PIPE_VALUE = 1;
-
-
-    public final int getNumber() {
-      if (this == UNRECOGNIZED) {
-        throw new java.lang.IllegalArgumentException(
-            "Can't get the number of an unknown enum value.");
-      }
-      return value;
-    }
-
-    /**
-     * @deprecated Use {@link #forNumber(int)} instead.
-     */
-    @java.lang.Deprecated
-    public static InputMode valueOf(int value) {
-      return forNumber(value);
-    }
-
-    public static InputMode forNumber(int value) {
-      switch (value) {
-        case 0: return FILE;
-        case 1: return PIPE;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
-      return internalValueMap;
-    }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        InputMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public InputMode findValueByNumber(int number) {
-              return InputMode.forNumber(number);
-            }
-          };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
-      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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(0);
-    }
-
-    private static final InputMode[] VALUES = values();
-
-    public static InputMode 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 InputMode(int value) {
-      this.value = value;
-    }
-
-    // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputMode)
-  }
-
-  /**
-   * Protobuf enum {@code flyteidl.plugins.sagemaker.AlgorithmName}
-   */
-  public enum AlgorithmName
-      implements com.google.protobuf.ProtocolMessageEnum {
-    /**
-     * CUSTOM = 0;
-     */
-    CUSTOM(0),
-    /**
-     * XGBOOST = 1;
-     */
-    XGBOOST(1),
-    UNRECOGNIZED(-1),
-    ;
-
-    /**
-     * CUSTOM = 0;
-     */
-    public static final int CUSTOM_VALUE = 0;
-    /**
-     * XGBOOST = 1;
-     */
-    public static final int XGBOOST_VALUE = 1;
-
-
-    public final int getNumber() {
-      if (this == UNRECOGNIZED) {
-        throw new java.lang.IllegalArgumentException(
-            "Can't get the number of an unknown enum value.");
-      }
-      return value;
-    }
-
-    /**
-     * @deprecated Use {@link #forNumber(int)} instead.
-     */
-    @java.lang.Deprecated
-    public static AlgorithmName valueOf(int value) {
-      return forNumber(value);
-    }
-
-    public static AlgorithmName forNumber(int value) {
-      switch (value) {
-        case 0: return CUSTOM;
-        case 1: return XGBOOST;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
-      return internalValueMap;
-    }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        AlgorithmName> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public AlgorithmName findValueByNumber(int number) {
-              return AlgorithmName.forNumber(number);
-            }
-          };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
-      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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(1);
-    }
-
-    private static final AlgorithmName[] VALUES = values();
-
-    public static AlgorithmName 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 AlgorithmName(int value) {
-      this.value = value;
-    }
-
-    // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.AlgorithmName)
-  }
-
-  public interface AlgorithmSpecificationOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification)
-      com.google.protobuf.MessageOrBuilder {
-
-    /**
-     * .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
-     */
-    int getInputModeValue();
-    /**
-     * .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
-     */
-    flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode();
-
-    /**
-     * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
-     */
-    int getAlgorithmNameValue();
-    /**
-     * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
-     */
-    flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName();
-
-    /**
-     * string algorithm_version = 3;
-     */
-    java.lang.String getAlgorithmVersion();
-    /**
-     * string algorithm_version = 3;
-     */
-    com.google.protobuf.ByteString
-        getAlgorithmVersionBytes();
-
-    /**
-     * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-     */
-    java.util.List 
-        getMetricDefinitionsList();
-    /**
-     * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-     */
-    flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index);
-    /**
-     * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-     */
-    int getMetricDefinitionsCount();
-    /**
-     * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-     */
-    java.util.List 
-        getMetricDefinitionsOrBuilderList();
-    /**
-     * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-     */
-    flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder(
-        int index);
-  }
-  /**
-   * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification}
-   */
-  public  static final class AlgorithmSpecification extends
-      com.google.protobuf.GeneratedMessageV3 implements
-      // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification)
-      AlgorithmSpecificationOrBuilder {
-  private static final long serialVersionUID = 0L;
-    // Use AlgorithmSpecification.newBuilder() to construct.
-    private AlgorithmSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) {
-      super(builder);
-    }
-    private AlgorithmSpecification() {
-      inputMode_ = 0;
-      algorithmName_ = 0;
-      algorithmVersion_ = "";
-      metricDefinitions_ = java.util.Collections.emptyList();
-    }
-
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
-      return this.unknownFields;
-    }
-    private AlgorithmSpecification(
-        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 8: {
-              int rawValue = input.readEnum();
-
-              inputMode_ = rawValue;
-              break;
-            }
-            case 16: {
-              int rawValue = input.readEnum();
-
-              algorithmName_ = rawValue;
-              break;
-            }
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              algorithmVersion_ = s;
-              break;
-            }
-            case 34: {
-              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-                metricDefinitions_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000008;
-              }
-              metricDefinitions_.add(
-                  input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.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_ & 0x00000008) != 0)) {
-          metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_);
-        }
-        this.unknownFields = unknownFields.build();
-        makeExtensionsImmutable();
-      }
-    }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor;
-    }
-
-    @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-        internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable
-          .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class);
-    }
-
-    public interface MetricDefinitionOrBuilder extends
-        // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
-        com.google.protobuf.MessageOrBuilder {
-
-      /**
-       * string name = 1;
-       */
-      java.lang.String getName();
-      /**
-       * string name = 1;
-       */
-      com.google.protobuf.ByteString
-          getNameBytes();
-
-      /**
-       * string regex = 2;
-       */
-      java.lang.String getRegex();
-      /**
-       * string regex = 2;
-       */
-      com.google.protobuf.ByteString
-          getRegexBytes();
-    }
-    /**
-     * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition}
-     */
-    public  static final class MetricDefinition extends
-        com.google.protobuf.GeneratedMessageV3 implements
-        // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
-        MetricDefinitionOrBuilder {
-    private static final long serialVersionUID = 0L;
-      // Use MetricDefinition.newBuilder() to construct.
-      private MetricDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) {
-        super(builder);
-      }
-      private MetricDefinition() {
-        name_ = "";
-        regex_ = "";
-      }
-
-      @java.lang.Override
-      public final com.google.protobuf.UnknownFieldSet
-      getUnknownFields() {
-        return this.unknownFields;
-      }
-      private MetricDefinition(
-          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: {
-                java.lang.String s = input.readStringRequireUtf8();
-
-                regex_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor;
-      }
-
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class);
-      }
-
-      public static final int NAME_FIELD_NUMBER = 1;
-      private volatile java.lang.Object name_;
-      /**
-       * string name = 1;
-       */
-      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;
-        }
-      }
-      /**
-       * string name = 1;
-       */
-      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 REGEX_FIELD_NUMBER = 2;
-      private volatile java.lang.Object regex_;
-      /**
-       * string regex = 2;
-       */
-      public java.lang.String getRegex() {
-        java.lang.Object ref = regex_;
-        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();
-          regex_ = s;
-          return s;
-        }
-      }
-      /**
-       * string regex = 2;
-       */
-      public com.google.protobuf.ByteString
-          getRegexBytes() {
-        java.lang.Object ref = regex_;
-        if (ref instanceof java.lang.String) {
-          com.google.protobuf.ByteString b = 
-              com.google.protobuf.ByteString.copyFromUtf8(
-                  (java.lang.String) ref);
-          regex_ = 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 (!getNameBytes().isEmpty()) {
-          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
-        }
-        if (!getRegexBytes().isEmpty()) {
-          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regex_);
-        }
-        unknownFields.writeTo(output);
-      }
-
-      @java.lang.Override
-      public int getSerializedSize() {
-        int size = memoizedSize;
-        if (size != -1) return size;
-
-        size = 0;
-        if (!getNameBytes().isEmpty()) {
-          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
-        }
-        if (!getRegexBytes().isEmpty()) {
-          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regex_);
-        }
-        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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)) {
-          return super.equals(obj);
-        }
-        flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) obj;
-
-        if (!getName()
-            .equals(other.getName())) return false;
-        if (!getRegex()
-            .equals(other.getRegex())) 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) + REGEX_FIELD_NUMBER;
-        hash = (53 * hash) + getRegex().hashCode();
-        hash = (29 * hash) + unknownFields.hashCode();
-        memoizedHashCode = hash;
-        return hash;
-      }
-
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
-          java.nio.ByteBuffer data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
-          java.nio.ByteBuffer data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data, extensionRegistry);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
-          com.google.protobuf.ByteString data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
-          com.google.protobuf.ByteString data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data, extensionRegistry);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
-          byte[] data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data, extensionRegistry);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseDelimitedWithIOException(PARSER, input);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
-          com.google.protobuf.CodedInputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition}
-       */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
-          // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
-          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor;
-        }
-
-        @java.lang.Override
-        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-            internalGetFieldAccessorTable() {
-          return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable
-              .ensureFieldAccessorsInitialized(
-                  flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class);
-        }
-
-        // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.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_ = "";
-
-          regex_ = "";
-
-          return this;
-        }
-
-        @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor;
-        }
-
-        @java.lang.Override
-        public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() {
-          return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance();
-        }
-
-        @java.lang.Override
-        public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition build() {
-          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = buildPartial();
-          if (!result.isInitialized()) {
-            throw newUninitializedMessageException(result);
-          }
-          return result;
-        }
-
-        @java.lang.Override
-        public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition buildPartial() {
-          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(this);
-          result.name_ = name_;
-          result.regex_ = regex_;
-          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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) {
-            return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)other);
-          } else {
-            super.mergeFrom(other);
-            return this;
-          }
-        }
-
-        public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other) {
-          if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this;
-          if (!other.getName().isEmpty()) {
-            name_ = other.name_;
-            onChanged();
-          }
-          if (!other.getRegex().isEmpty()) {
-            regex_ = other.regex_;
-            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 {
-          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parsedMessage = null;
-          try {
-            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage();
-            throw e.unwrapIOException();
-          } finally {
-            if (parsedMessage != null) {
-              mergeFrom(parsedMessage);
-            }
-          }
-          return this;
-        }
-
-        private java.lang.Object name_ = "";
-        /**
-         * string name = 1;
-         */
-        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;
-          }
-        }
-        /**
-         * string name = 1;
-         */
-        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;
-          }
-        }
-        /**
-         * string name = 1;
-         */
-        public Builder setName(
-            java.lang.String value) {
-          if (value == null) {
-    throw new NullPointerException();
-  }
-  
-          name_ = value;
-          onChanged();
-          return this;
-        }
-        /**
-         * string name = 1;
-         */
-        public Builder clearName() {
-          
-          name_ = getDefaultInstance().getName();
-          onChanged();
-          return this;
-        }
-        /**
-         * string name = 1;
-         */
-        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 regex_ = "";
-        /**
-         * string regex = 2;
-         */
-        public java.lang.String getRegex() {
-          java.lang.Object ref = regex_;
-          if (!(ref instanceof java.lang.String)) {
-            com.google.protobuf.ByteString bs =
-                (com.google.protobuf.ByteString) ref;
-            java.lang.String s = bs.toStringUtf8();
-            regex_ = s;
-            return s;
-          } else {
-            return (java.lang.String) ref;
-          }
-        }
-        /**
-         * string regex = 2;
-         */
-        public com.google.protobuf.ByteString
-            getRegexBytes() {
-          java.lang.Object ref = regex_;
-          if (ref instanceof String) {
-            com.google.protobuf.ByteString b = 
-                com.google.protobuf.ByteString.copyFromUtf8(
-                    (java.lang.String) ref);
-            regex_ = b;
-            return b;
-          } else {
-            return (com.google.protobuf.ByteString) ref;
-          }
-        }
-        /**
-         * string regex = 2;
-         */
-        public Builder setRegex(
-            java.lang.String value) {
-          if (value == null) {
-    throw new NullPointerException();
-  }
-  
-          regex_ = value;
-          onChanged();
-          return this;
-        }
-        /**
-         * string regex = 2;
-         */
-        public Builder clearRegex() {
-          
-          regex_ = getDefaultInstance().getRegex();
-          onChanged();
-          return this;
-        }
-        /**
-         * string regex = 2;
-         */
-        public Builder setRegexBytes(
-            com.google.protobuf.ByteString value) {
-          if (value == null) {
-    throw new NullPointerException();
-  }
-  checkByteStringIsUtf8(value);
-          
-          regex_ = 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:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
-      }
-
-      // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
-      private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE;
-      static {
-        DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition();
-      }
-
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstance() {
-        return DEFAULT_INSTANCE;
-      }
-
-      private static final com.google.protobuf.Parser
-          PARSER = new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public MetricDefinition parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new MetricDefinition(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() {
-        return DEFAULT_INSTANCE;
-      }
-
-    }
-
-    private int bitField0_;
-    public static final int INPUT_MODE_FIELD_NUMBER = 1;
-    private int inputMode_;
-    /**
-     * .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
-     */
-    public int getInputModeValue() {
-      return inputMode_;
-    }
-    /**
-     * .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
-     */
-    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() {
-      @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_);
-      return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result;
-    }
-
-    public static final int ALGORITHM_NAME_FIELD_NUMBER = 2;
-    private int algorithmName_;
-    /**
-     * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
-     */
-    public int getAlgorithmNameValue() {
-      return algorithmName_;
-    }
-    /**
-     * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
-     */
-    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() {
-      @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_);
-      return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result;
-    }
-
-    public static final int ALGORITHM_VERSION_FIELD_NUMBER = 3;
-    private volatile java.lang.Object algorithmVersion_;
-    /**
-     * string algorithm_version = 3;
-     */
-    public java.lang.String getAlgorithmVersion() {
-      java.lang.Object ref = algorithmVersion_;
-      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();
-        algorithmVersion_ = s;
-        return s;
-      }
-    }
-    /**
-     * string algorithm_version = 3;
-     */
-    public com.google.protobuf.ByteString
-        getAlgorithmVersionBytes() {
-      java.lang.Object ref = algorithmVersion_;
-      if (ref instanceof java.lang.String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
-        algorithmVersion_ = b;
-        return b;
-      } else {
-        return (com.google.protobuf.ByteString) ref;
-      }
-    }
-
-    public static final int METRIC_DEFINITIONS_FIELD_NUMBER = 4;
-    private java.util.List metricDefinitions_;
-    /**
-     * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-     */
-    public java.util.List getMetricDefinitionsList() {
-      return metricDefinitions_;
-    }
-    /**
-     * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-     */
-    public java.util.List 
-        getMetricDefinitionsOrBuilderList() {
-      return metricDefinitions_;
-    }
-    /**
-     * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-     */
-    public int getMetricDefinitionsCount() {
-      return metricDefinitions_.size();
-    }
-    /**
-     * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-     */
-    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) {
-      return metricDefinitions_.get(index);
-    }
-    /**
-     * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-     */
-    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder(
-        int index) {
-      return metricDefinitions_.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 (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) {
-        output.writeEnum(1, inputMode_);
-      }
-      if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) {
-        output.writeEnum(2, algorithmName_);
-      }
-      if (!getAlgorithmVersionBytes().isEmpty()) {
-        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, algorithmVersion_);
-      }
-      for (int i = 0; i < metricDefinitions_.size(); i++) {
-        output.writeMessage(4, metricDefinitions_.get(i));
-      }
-      unknownFields.writeTo(output);
-    }
-
-    @java.lang.Override
-    public int getSerializedSize() {
-      int size = memoizedSize;
-      if (size != -1) return size;
-
-      size = 0;
-      if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeEnumSize(1, inputMode_);
-      }
-      if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeEnumSize(2, algorithmName_);
-      }
-      if (!getAlgorithmVersionBytes().isEmpty()) {
-        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, algorithmVersion_);
-      }
-      for (int i = 0; i < metricDefinitions_.size(); i++) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, metricDefinitions_.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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)) {
-        return super.equals(obj);
-      }
-      flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) obj;
-
-      if (inputMode_ != other.inputMode_) return false;
-      if (algorithmName_ != other.algorithmName_) return false;
-      if (!getAlgorithmVersion()
-          .equals(other.getAlgorithmVersion())) return false;
-      if (!getMetricDefinitionsList()
-          .equals(other.getMetricDefinitionsList())) 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) + INPUT_MODE_FIELD_NUMBER;
-      hash = (53 * hash) + inputMode_;
-      hash = (37 * hash) + ALGORITHM_NAME_FIELD_NUMBER;
-      hash = (53 * hash) + algorithmName_;
-      hash = (37 * hash) + ALGORITHM_VERSION_FIELD_NUMBER;
-      hash = (53 * hash) + getAlgorithmVersion().hashCode();
-      if (getMetricDefinitionsCount() > 0) {
-        hash = (37 * hash) + METRIC_DEFINITIONS_FIELD_NUMBER;
-        hash = (53 * hash) + getMetricDefinitionsList().hashCode();
-      }
-      hash = (29 * hash) + unknownFields.hashCode();
-      memoizedHashCode = hash;
-      return hash;
-    }
-
-    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.AlgorithmSpecification}
-     */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
-        // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification)
-        flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor;
-      }
-
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class);
-      }
-
-      // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder()
-      private Builder() {
-        maybeForceBuilderInitialization();
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
-        maybeForceBuilderInitialization();
-      }
-      private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-          getMetricDefinitionsFieldBuilder();
-        }
-      }
-      @java.lang.Override
-      public Builder clear() {
-        super.clear();
-        inputMode_ = 0;
-
-        algorithmName_ = 0;
-
-        algorithmVersion_ = "";
-
-        if (metricDefinitionsBuilder_ == null) {
-          metricDefinitions_ = java.util.Collections.emptyList();
-          bitField0_ = (bitField0_ & ~0x00000008);
-        } else {
-          metricDefinitionsBuilder_.clear();
-        }
-        return this;
-      }
-
-      @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor;
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance();
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification build() {
-        flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = buildPartial();
-        if (!result.isInitialized()) {
-          throw newUninitializedMessageException(result);
-        }
-        return result;
-      }
-
-      @java.lang.Override
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification buildPartial() {
-        flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(this);
-        int from_bitField0_ = bitField0_;
-        int to_bitField0_ = 0;
-        result.inputMode_ = inputMode_;
-        result.algorithmName_ = algorithmName_;
-        result.algorithmVersion_ = algorithmVersion_;
-        if (metricDefinitionsBuilder_ == null) {
-          if (((bitField0_ & 0x00000008) != 0)) {
-            metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_);
-            bitField0_ = (bitField0_ & ~0x00000008);
-          }
-          result.metricDefinitions_ = metricDefinitions_;
-        } else {
-          result.metricDefinitions_ = metricDefinitionsBuilder_.build();
-        }
-        result.bitField0_ = to_bitField0_;
-        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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) {
-          return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)other);
-        } else {
-          super.mergeFrom(other);
-          return this;
-        }
-      }
-
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other) {
-        if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance()) return this;
-        if (other.inputMode_ != 0) {
-          setInputModeValue(other.getInputModeValue());
-        }
-        if (other.algorithmName_ != 0) {
-          setAlgorithmNameValue(other.getAlgorithmNameValue());
-        }
-        if (!other.getAlgorithmVersion().isEmpty()) {
-          algorithmVersion_ = other.algorithmVersion_;
-          onChanged();
-        }
-        if (metricDefinitionsBuilder_ == null) {
-          if (!other.metricDefinitions_.isEmpty()) {
-            if (metricDefinitions_.isEmpty()) {
-              metricDefinitions_ = other.metricDefinitions_;
-              bitField0_ = (bitField0_ & ~0x00000008);
-            } else {
-              ensureMetricDefinitionsIsMutable();
-              metricDefinitions_.addAll(other.metricDefinitions_);
-            }
-            onChanged();
-          }
-        } else {
-          if (!other.metricDefinitions_.isEmpty()) {
-            if (metricDefinitionsBuilder_.isEmpty()) {
-              metricDefinitionsBuilder_.dispose();
-              metricDefinitionsBuilder_ = null;
-              metricDefinitions_ = other.metricDefinitions_;
-              bitField0_ = (bitField0_ & ~0x00000008);
-              metricDefinitionsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getMetricDefinitionsFieldBuilder() : null;
-            } else {
-              metricDefinitionsBuilder_.addAllMessages(other.metricDefinitions_);
-            }
-          }
-        }
-        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 {
-        flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parsedMessage = null;
-        try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) e.getUnfinishedMessage();
-          throw e.unwrapIOException();
-        } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
-        return this;
-      }
-      private int bitField0_;
-
-      private int inputMode_ = 0;
-      /**
-       * .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
-       */
-      public int getInputModeValue() {
-        return inputMode_;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
-       */
-      public Builder setInputModeValue(int value) {
-        inputMode_ = value;
-        onChanged();
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
-       */
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() {
-        @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_);
-        return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
-       */
-      public Builder setInputMode(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode value) {
-        if (value == null) {
-          throw new NullPointerException();
-        }
-        
-        inputMode_ = value.getNumber();
-        onChanged();
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
-       */
-      public Builder clearInputMode() {
-        
-        inputMode_ = 0;
-        onChanged();
-        return this;
-      }
-
-      private int algorithmName_ = 0;
-      /**
-       * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
-       */
-      public int getAlgorithmNameValue() {
-        return algorithmName_;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
-       */
-      public Builder setAlgorithmNameValue(int value) {
-        algorithmName_ = value;
-        onChanged();
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
-       */
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() {
-        @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_);
-        return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
-       */
-      public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName value) {
-        if (value == null) {
-          throw new NullPointerException();
-        }
-        
-        algorithmName_ = value.getNumber();
-        onChanged();
-        return this;
-      }
-      /**
-       * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
-       */
-      public Builder clearAlgorithmName() {
-        
-        algorithmName_ = 0;
-        onChanged();
-        return this;
-      }
-
-      private java.lang.Object algorithmVersion_ = "";
-      /**
-       * string algorithm_version = 3;
-       */
-      public java.lang.String getAlgorithmVersion() {
-        java.lang.Object ref = algorithmVersion_;
-        if (!(ref instanceof java.lang.String)) {
-          com.google.protobuf.ByteString bs =
-              (com.google.protobuf.ByteString) ref;
-          java.lang.String s = bs.toStringUtf8();
-          algorithmVersion_ = s;
-          return s;
-        } else {
-          return (java.lang.String) ref;
-        }
-      }
-      /**
-       * string algorithm_version = 3;
-       */
-      public com.google.protobuf.ByteString
-          getAlgorithmVersionBytes() {
-        java.lang.Object ref = algorithmVersion_;
-        if (ref instanceof String) {
-          com.google.protobuf.ByteString b = 
-              com.google.protobuf.ByteString.copyFromUtf8(
-                  (java.lang.String) ref);
-          algorithmVersion_ = b;
-          return b;
-        } else {
-          return (com.google.protobuf.ByteString) ref;
-        }
-      }
-      /**
-       * string algorithm_version = 3;
-       */
-      public Builder setAlgorithmVersion(
-          java.lang.String value) {
-        if (value == null) {
-    throw new NullPointerException();
-  }
-  
-        algorithmVersion_ = value;
-        onChanged();
-        return this;
-      }
-      /**
-       * string algorithm_version = 3;
-       */
-      public Builder clearAlgorithmVersion() {
-        
-        algorithmVersion_ = getDefaultInstance().getAlgorithmVersion();
-        onChanged();
-        return this;
-      }
-      /**
-       * string algorithm_version = 3;
-       */
-      public Builder setAlgorithmVersionBytes(
-          com.google.protobuf.ByteString value) {
-        if (value == null) {
-    throw new NullPointerException();
-  }
-  checkByteStringIsUtf8(value);
-        
-        algorithmVersion_ = value;
-        onChanged();
-        return this;
-      }
-
-      private java.util.List metricDefinitions_ =
-        java.util.Collections.emptyList();
-      private void ensureMetricDefinitionsIsMutable() {
-        if (!((bitField0_ & 0x00000008) != 0)) {
-          metricDefinitions_ = new java.util.ArrayList(metricDefinitions_);
-          bitField0_ |= 0x00000008;
-         }
-      }
-
-      private com.google.protobuf.RepeatedFieldBuilderV3<
-          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_;
-
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public java.util.List getMetricDefinitionsList() {
-        if (metricDefinitionsBuilder_ == null) {
-          return java.util.Collections.unmodifiableList(metricDefinitions_);
-        } else {
-          return metricDefinitionsBuilder_.getMessageList();
-        }
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public int getMetricDefinitionsCount() {
-        if (metricDefinitionsBuilder_ == null) {
-          return metricDefinitions_.size();
-        } else {
-          return metricDefinitionsBuilder_.getCount();
-        }
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) {
-        if (metricDefinitionsBuilder_ == null) {
-          return metricDefinitions_.get(index);
-        } else {
-          return metricDefinitionsBuilder_.getMessage(index);
-        }
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public Builder setMetricDefinitions(
-          int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) {
-        if (metricDefinitionsBuilder_ == null) {
-          if (value == null) {
-            throw new NullPointerException();
-          }
-          ensureMetricDefinitionsIsMutable();
-          metricDefinitions_.set(index, value);
-          onChanged();
-        } else {
-          metricDefinitionsBuilder_.setMessage(index, value);
-        }
-        return this;
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public Builder setMetricDefinitions(
-          int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) {
-        if (metricDefinitionsBuilder_ == null) {
-          ensureMetricDefinitionsIsMutable();
-          metricDefinitions_.set(index, builderForValue.build());
-          onChanged();
-        } else {
-          metricDefinitionsBuilder_.setMessage(index, builderForValue.build());
-        }
-        return this;
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) {
-        if (metricDefinitionsBuilder_ == null) {
-          if (value == null) {
-            throw new NullPointerException();
-          }
-          ensureMetricDefinitionsIsMutable();
-          metricDefinitions_.add(value);
-          onChanged();
-        } else {
-          metricDefinitionsBuilder_.addMessage(value);
-        }
-        return this;
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public Builder addMetricDefinitions(
-          int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) {
-        if (metricDefinitionsBuilder_ == null) {
-          if (value == null) {
-            throw new NullPointerException();
-          }
-          ensureMetricDefinitionsIsMutable();
-          metricDefinitions_.add(index, value);
-          onChanged();
-        } else {
-          metricDefinitionsBuilder_.addMessage(index, value);
-        }
-        return this;
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public Builder addMetricDefinitions(
-          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) {
-        if (metricDefinitionsBuilder_ == null) {
-          ensureMetricDefinitionsIsMutable();
-          metricDefinitions_.add(builderForValue.build());
-          onChanged();
-        } else {
-          metricDefinitionsBuilder_.addMessage(builderForValue.build());
-        }
-        return this;
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public Builder addMetricDefinitions(
-          int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) {
-        if (metricDefinitionsBuilder_ == null) {
-          ensureMetricDefinitionsIsMutable();
-          metricDefinitions_.add(index, builderForValue.build());
-          onChanged();
-        } else {
-          metricDefinitionsBuilder_.addMessage(index, builderForValue.build());
-        }
-        return this;
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public Builder addAllMetricDefinitions(
-          java.lang.Iterable values) {
-        if (metricDefinitionsBuilder_ == null) {
-          ensureMetricDefinitionsIsMutable();
-          com.google.protobuf.AbstractMessageLite.Builder.addAll(
-              values, metricDefinitions_);
-          onChanged();
-        } else {
-          metricDefinitionsBuilder_.addAllMessages(values);
-        }
-        return this;
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public Builder clearMetricDefinitions() {
-        if (metricDefinitionsBuilder_ == null) {
-          metricDefinitions_ = java.util.Collections.emptyList();
-          bitField0_ = (bitField0_ & ~0x00000008);
-          onChanged();
-        } else {
-          metricDefinitionsBuilder_.clear();
-        }
-        return this;
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public Builder removeMetricDefinitions(int index) {
-        if (metricDefinitionsBuilder_ == null) {
-          ensureMetricDefinitionsIsMutable();
-          metricDefinitions_.remove(index);
-          onChanged();
-        } else {
-          metricDefinitionsBuilder_.remove(index);
-        }
-        return this;
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder(
-          int index) {
-        return getMetricDefinitionsFieldBuilder().getBuilder(index);
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder(
-          int index) {
-        if (metricDefinitionsBuilder_ == null) {
-          return metricDefinitions_.get(index);  } else {
-          return metricDefinitionsBuilder_.getMessageOrBuilder(index);
-        }
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public java.util.List 
-           getMetricDefinitionsOrBuilderList() {
-        if (metricDefinitionsBuilder_ != null) {
-          return metricDefinitionsBuilder_.getMessageOrBuilderList();
-        } else {
-          return java.util.Collections.unmodifiableList(metricDefinitions_);
-        }
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() {
-        return getMetricDefinitionsFieldBuilder().addBuilder(
-            flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance());
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder(
-          int index) {
-        return getMetricDefinitionsFieldBuilder().addBuilder(
-            index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance());
-      }
-      /**
-       * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
-       */
-      public java.util.List 
-           getMetricDefinitionsBuilderList() {
-        return getMetricDefinitionsFieldBuilder().getBuilderList();
-      }
-      private com.google.protobuf.RepeatedFieldBuilderV3<
-          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> 
-          getMetricDefinitionsFieldBuilder() {
-        if (metricDefinitionsBuilder_ == null) {
-          metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-              flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder>(
-                  metricDefinitions_,
-                  ((bitField0_ & 0x00000008) != 0),
-                  getParentForChildren(),
-                  isClean());
-          metricDefinitions_ = null;
-        }
-        return metricDefinitionsBuilder_;
-      }
-      @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:flyteidl.plugins.sagemaker.AlgorithmSpecification)
-    }
-
-    // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification)
-    private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification DEFAULT_INSTANCE;
-    static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification();
-    }
-
-    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstance() {
-      return DEFAULT_INSTANCE;
-    }
-
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public AlgorithmSpecification parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new AlgorithmSpecification(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() {
-      return DEFAULT_INSTANCE;
-    }
-
-  }
-
-  public interface TrainingJobConfigOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJobConfig)
-      com.google.protobuf.MessageOrBuilder {
-
-    /**
-     * 
-     * For multi-node training, not multi-GPU training
-     * 
- * - * int64 instance_count = 1; - */ - long getInstanceCount(); - - /** - * string instance_type = 2; - */ - java.lang.String getInstanceType(); - /** - * string instance_type = 2; - */ - com.google.protobuf.ByteString - getInstanceTypeBytes(); - - /** - * int64 volume_size_in_gb = 3; - */ - long getVolumeSizeInGb(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobConfig} - */ - public static final class TrainingJobConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) - TrainingJobConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use TrainingJobConfig.newBuilder() to construct. - private TrainingJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TrainingJobConfig() { - instanceType_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TrainingJobConfig( - 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 8: { - - instanceCount_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - instanceType_ = s; - break; - } - case 24: { - - volumeSizeInGb_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); - } - - public static final int INSTANCE_COUNT_FIELD_NUMBER = 1; - private long instanceCount_; - /** - *
-     * For multi-node training, not multi-GPU training
-     * 
- * - * int64 instance_count = 1; - */ - public long getInstanceCount() { - return instanceCount_; - } - - public static final int INSTANCE_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object instanceType_; - /** - * string instance_type = 2; - */ - public java.lang.String getInstanceType() { - java.lang.Object ref = instanceType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceType_ = s; - return s; - } - } - /** - * string instance_type = 2; - */ - public com.google.protobuf.ByteString - getInstanceTypeBytes() { - java.lang.Object ref = instanceType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VOLUME_SIZE_IN_GB_FIELD_NUMBER = 3; - private long volumeSizeInGb_; - /** - * int64 volume_size_in_gb = 3; - */ - public long getVolumeSizeInGb() { - return volumeSizeInGb_; - } - - 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 (instanceCount_ != 0L) { - output.writeInt64(1, instanceCount_); - } - if (!getInstanceTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceType_); - } - if (volumeSizeInGb_ != 0L) { - output.writeInt64(3, volumeSizeInGb_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (instanceCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, instanceCount_); - } - if (!getInstanceTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceType_); - } - if (volumeSizeInGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, volumeSizeInGb_); - } - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) obj; - - if (getInstanceCount() - != other.getInstanceCount()) return false; - if (!getInstanceType() - .equals(other.getInstanceType())) return false; - if (getVolumeSizeInGb() - != other.getVolumeSizeInGb()) 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) + INSTANCE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInstanceCount()); - hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getInstanceType().hashCode(); - hash = (37 * hash) + VOLUME_SIZE_IN_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVolumeSizeInGb()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.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(); - instanceCount_ = 0L; - - instanceType_ = ""; - - volumeSizeInGb_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(this); - result.instanceCount_ = instanceCount_; - result.instanceType_ = instanceType_; - result.volumeSizeInGb_ = volumeSizeInGb_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance()) return this; - if (other.getInstanceCount() != 0L) { - setInstanceCount(other.getInstanceCount()); - } - if (!other.getInstanceType().isEmpty()) { - instanceType_ = other.instanceType_; - onChanged(); - } - if (other.getVolumeSizeInGb() != 0L) { - setVolumeSizeInGb(other.getVolumeSizeInGb()); - } - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long instanceCount_ ; - /** - *
-       * For multi-node training, not multi-GPU training
-       * 
- * - * int64 instance_count = 1; - */ - public long getInstanceCount() { - return instanceCount_; - } - /** - *
-       * For multi-node training, not multi-GPU training
-       * 
- * - * int64 instance_count = 1; - */ - public Builder setInstanceCount(long value) { - - instanceCount_ = value; - onChanged(); - return this; - } - /** - *
-       * For multi-node training, not multi-GPU training
-       * 
- * - * int64 instance_count = 1; - */ - public Builder clearInstanceCount() { - - instanceCount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object instanceType_ = ""; - /** - * string instance_type = 2; - */ - public java.lang.String getInstanceType() { - java.lang.Object ref = instanceType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string instance_type = 2; - */ - public com.google.protobuf.ByteString - getInstanceTypeBytes() { - java.lang.Object ref = instanceType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string instance_type = 2; - */ - public Builder setInstanceType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - instanceType_ = value; - onChanged(); - return this; - } - /** - * string instance_type = 2; - */ - public Builder clearInstanceType() { - - instanceType_ = getDefaultInstance().getInstanceType(); - onChanged(); - return this; - } - /** - * string instance_type = 2; - */ - public Builder setInstanceTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instanceType_ = value; - onChanged(); - return this; - } - - private long volumeSizeInGb_ ; - /** - * int64 volume_size_in_gb = 3; - */ - public long getVolumeSizeInGb() { - return volumeSizeInGb_; - } - /** - * int64 volume_size_in_gb = 3; - */ - public Builder setVolumeSizeInGb(long value) { - - volumeSizeInGb_ = value; - onChanged(); - return this; - } - /** - * int64 volume_size_in_gb = 3; - */ - public Builder clearVolumeSizeInGb() { - - volumeSizeInGb_ = 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:flyteidl.plugins.sagemaker.TrainingJobConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TrainingJobConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrainingJobConfig(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StoppingConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.StoppingCondition) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 max_runtime_in_seconds = 1; - */ - long getMaxRuntimeInSeconds(); - - /** - * int64 max_wait_time_in_seconds = 2; - */ - long getMaxWaitTimeInSeconds(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} - */ - public static final class StoppingCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.StoppingCondition) - StoppingConditionOrBuilder { - private static final long serialVersionUID = 0L; - // Use StoppingCondition.newBuilder() to construct. - private StoppingCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StoppingCondition() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StoppingCondition( - 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 8: { - - maxRuntimeInSeconds_ = input.readInt64(); - break; - } - case 16: { - - maxWaitTimeInSeconds_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); - } - - public static final int MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER = 1; - private long maxRuntimeInSeconds_; - /** - * int64 max_runtime_in_seconds = 1; - */ - public long getMaxRuntimeInSeconds() { - return maxRuntimeInSeconds_; - } - - public static final int MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER = 2; - private long maxWaitTimeInSeconds_; - /** - * int64 max_wait_time_in_seconds = 2; - */ - public long getMaxWaitTimeInSeconds() { - return maxWaitTimeInSeconds_; - } - - 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 (maxRuntimeInSeconds_ != 0L) { - output.writeInt64(1, maxRuntimeInSeconds_); - } - if (maxWaitTimeInSeconds_ != 0L) { - output.writeInt64(2, maxWaitTimeInSeconds_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxRuntimeInSeconds_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, maxRuntimeInSeconds_); - } - if (maxWaitTimeInSeconds_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxWaitTimeInSeconds_); - } - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) obj; - - if (getMaxRuntimeInSeconds() - != other.getMaxRuntimeInSeconds()) return false; - if (getMaxWaitTimeInSeconds() - != other.getMaxWaitTimeInSeconds()) 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) + MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxRuntimeInSeconds()); - hash = (37 * hash) + MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxWaitTimeInSeconds()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.StoppingCondition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.StoppingCondition) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.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(); - maxRuntimeInSeconds_ = 0L; - - maxWaitTimeInSeconds_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(this); - result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; - result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance()) return this; - if (other.getMaxRuntimeInSeconds() != 0L) { - setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); - } - if (other.getMaxWaitTimeInSeconds() != 0L) { - setMaxWaitTimeInSeconds(other.getMaxWaitTimeInSeconds()); - } - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long maxRuntimeInSeconds_ ; - /** - * int64 max_runtime_in_seconds = 1; - */ - public long getMaxRuntimeInSeconds() { - return maxRuntimeInSeconds_; - } - /** - * int64 max_runtime_in_seconds = 1; - */ - public Builder setMaxRuntimeInSeconds(long value) { - - maxRuntimeInSeconds_ = value; - onChanged(); - return this; - } - /** - * int64 max_runtime_in_seconds = 1; - */ - public Builder clearMaxRuntimeInSeconds() { - - maxRuntimeInSeconds_ = 0L; - onChanged(); - return this; - } - - private long maxWaitTimeInSeconds_ ; - /** - * int64 max_wait_time_in_seconds = 2; - */ - public long getMaxWaitTimeInSeconds() { - return maxWaitTimeInSeconds_; - } - /** - * int64 max_wait_time_in_seconds = 2; - */ - public Builder setMaxWaitTimeInSeconds(long value) { - - maxWaitTimeInSeconds_ = value; - onChanged(); - return this; - } - /** - * int64 max_wait_time_in_seconds = 2; - */ - public Builder clearMaxWaitTimeInSeconds() { - - maxWaitTimeInSeconds_ = 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:flyteidl.plugins.sagemaker.StoppingCondition) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StoppingCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StoppingCondition(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TrainingJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJob) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - boolean hasAlgorithmSpecification(); - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification(); - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - boolean hasTrainingJobConfig(); - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig(); - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder(); - - /** - * bool interruptible = 4; - */ - boolean getInterruptible(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} - */ - public static final class TrainingJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJob) - TrainingJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use TrainingJob.newBuilder() to construct. - private TrainingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TrainingJob() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TrainingJob( - 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: { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder subBuilder = null; - if (algorithmSpecification_ != null) { - subBuilder = algorithmSpecification_.toBuilder(); - } - algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(algorithmSpecification_); - algorithmSpecification_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder subBuilder = null; - if (trainingJobConfig_ != null) { - subBuilder = trainingJobConfig_.toBuilder(); - } - trainingJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trainingJobConfig_); - trainingJobConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - interruptible_ = input.readBool(); - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); - } - - public static final int ALGORITHM_SPECIFICATION_FIELD_NUMBER = 1; - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public boolean hasAlgorithmSpecification() { - return algorithmSpecification_ != null; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { - return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { - return getAlgorithmSpecification(); - } - - public static final int TRAINING_JOB_CONFIG_FIELD_NUMBER = 2; - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public boolean hasTrainingJobConfig() { - return trainingJobConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { - return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { - return getTrainingJobConfig(); - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 4; - private boolean interruptible_; - /** - * bool interruptible = 4; - */ - public boolean getInterruptible() { - return interruptible_; - } - - 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 (algorithmSpecification_ != null) { - output.writeMessage(1, getAlgorithmSpecification()); - } - if (trainingJobConfig_ != null) { - output.writeMessage(2, getTrainingJobConfig()); - } - if (interruptible_ != false) { - output.writeBool(4, interruptible_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (algorithmSpecification_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAlgorithmSpecification()); - } - if (trainingJobConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTrainingJobConfig()); - } - if (interruptible_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, interruptible_); - } - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) obj; - - if (hasAlgorithmSpecification() != other.hasAlgorithmSpecification()) return false; - if (hasAlgorithmSpecification()) { - if (!getAlgorithmSpecification() - .equals(other.getAlgorithmSpecification())) return false; - } - if (hasTrainingJobConfig() != other.hasTrainingJobConfig()) return false; - if (hasTrainingJobConfig()) { - if (!getTrainingJobConfig() - .equals(other.getTrainingJobConfig())) return false; - } - if (getInterruptible() - != other.getInterruptible()) 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 (hasAlgorithmSpecification()) { - hash = (37 * hash) + ALGORITHM_SPECIFICATION_FIELD_NUMBER; - hash = (53 * hash) + getAlgorithmSpecification().hashCode(); - } - if (hasTrainingJobConfig()) { - hash = (37 * hash) + TRAINING_JOB_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getTrainingJobConfig().hashCode(); - } - hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterruptible()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJob) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.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 (algorithmSpecificationBuilder_ == null) { - algorithmSpecification_ = null; - } else { - algorithmSpecification_ = null; - algorithmSpecificationBuilder_ = null; - } - if (trainingJobConfigBuilder_ == null) { - trainingJobConfig_ = null; - } else { - trainingJobConfig_ = null; - trainingJobConfigBuilder_ = null; - } - interruptible_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(this); - if (algorithmSpecificationBuilder_ == null) { - result.algorithmSpecification_ = algorithmSpecification_; - } else { - result.algorithmSpecification_ = algorithmSpecificationBuilder_.build(); - } - if (trainingJobConfigBuilder_ == null) { - result.trainingJobConfig_ = trainingJobConfig_; - } else { - result.trainingJobConfig_ = trainingJobConfigBuilder_.build(); - } - result.interruptible_ = interruptible_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance()) return this; - if (other.hasAlgorithmSpecification()) { - mergeAlgorithmSpecification(other.getAlgorithmSpecification()); - } - if (other.hasTrainingJobConfig()) { - mergeTrainingJobConfig(other.getTrainingJobConfig()); - } - if (other.getInterruptible() != false) { - setInterruptible(other.getInterruptible()); - } - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public boolean hasAlgorithmSpecification() { - return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { - if (algorithmSpecificationBuilder_ == null) { - return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } else { - return algorithmSpecificationBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { - if (algorithmSpecificationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - algorithmSpecification_ = value; - onChanged(); - } else { - algorithmSpecificationBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public Builder setAlgorithmSpecification( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder builderForValue) { - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecification_ = builderForValue.build(); - onChanged(); - } else { - algorithmSpecificationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { - if (algorithmSpecificationBuilder_ == null) { - if (algorithmSpecification_ != null) { - algorithmSpecification_ = - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); - } else { - algorithmSpecification_ = value; - } - onChanged(); - } else { - algorithmSpecificationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public Builder clearAlgorithmSpecification() { - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecification_ = null; - onChanged(); - } else { - algorithmSpecification_ = null; - algorithmSpecificationBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { - - onChanged(); - return getAlgorithmSpecificationFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { - if (algorithmSpecificationBuilder_ != null) { - return algorithmSpecificationBuilder_.getMessageOrBuilder(); - } else { - return algorithmSpecification_ == null ? - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> - getAlgorithmSpecificationFieldBuilder() { - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder>( - getAlgorithmSpecification(), - getParentForChildren(), - isClean()); - algorithmSpecification_ = null; - } - return algorithmSpecificationBuilder_; - } - - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> trainingJobConfigBuilder_; - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public boolean hasTrainingJobConfig() { - return trainingJobConfigBuilder_ != null || trainingJobConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { - if (trainingJobConfigBuilder_ == null) { - return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; - } else { - return trainingJobConfigBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { - if (trainingJobConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trainingJobConfig_ = value; - onChanged(); - } else { - trainingJobConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public Builder setTrainingJobConfig( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder builderForValue) { - if (trainingJobConfigBuilder_ == null) { - trainingJobConfig_ = builderForValue.build(); - onChanged(); - } else { - trainingJobConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public Builder mergeTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { - if (trainingJobConfigBuilder_ == null) { - if (trainingJobConfig_ != null) { - trainingJobConfig_ = - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.newBuilder(trainingJobConfig_).mergeFrom(value).buildPartial(); - } else { - trainingJobConfig_ = value; - } - onChanged(); - } else { - trainingJobConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public Builder clearTrainingJobConfig() { - if (trainingJobConfigBuilder_ == null) { - trainingJobConfig_ = null; - onChanged(); - } else { - trainingJobConfig_ = null; - trainingJobConfigBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder getTrainingJobConfigBuilder() { - - onChanged(); - return getTrainingJobConfigFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { - if (trainingJobConfigBuilder_ != null) { - return trainingJobConfigBuilder_.getMessageOrBuilder(); - } else { - return trainingJobConfig_ == null ? - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; - } - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> - getTrainingJobConfigFieldBuilder() { - if (trainingJobConfigBuilder_ == null) { - trainingJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder>( - getTrainingJobConfig(), - getParentForChildren(), - isClean()); - trainingJobConfig_ = null; - } - return trainingJobConfigBuilder_; - } - - private boolean interruptible_ ; - /** - * bool interruptible = 4; - */ - public boolean getInterruptible() { - return interruptible_; - } - /** - * bool interruptible = 4; - */ - public Builder setInterruptible(boolean value) { - - interruptible_ = value; - onChanged(); - return this; - } - /** - * bool interruptible = 4; - */ - public Builder clearInterruptible() { - - interruptible_ = false; - 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:flyteidl.plugins.sagemaker.TrainingJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TrainingJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrainingJob(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_TrainingJob_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-flyteidl/plugins/sagemaker/training_jo" + - "b.proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026" + - "AlgorithmSpecification\0229\n\ninput_mode\030\001 \001" + - "(\0162%.flyteidl.plugins.sagemaker.InputMod" + - "e\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plu" + - "gins.sagemaker.AlgorithmName\022\031\n\021algorith" + - "m_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 " + - "\003(\0132C.flyteidl.plugins.sagemaker.Algorit" + - "hmSpecification.MetricDefinition\032/\n\020Metr" + - "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(" + - "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count" + - "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_" + - "size_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n" + - "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai" + - "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022" + - "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + - "idl.plugins.sagemaker.AlgorithmSpecifica" + - "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt" + - "eidl.plugins.sagemaker.TrainingJobConfig" + - "\022\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004" + - "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS" + - "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl" + - "yteidl/gen/pb-go/flyteidl/pluginsb\006proto" + - "3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, - new java.lang.String[] { "InputMode", "AlgorithmName", "AlgorithmVersion", "MetricDefinitions", }); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor = - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, - new java.lang.String[] { "Name", "Regex", }); - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor, - new java.lang.String[] { "InstanceCount", "InstanceType", "VolumeSizeInGb", }); - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor, - new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", }); - internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor, - new java.lang.String[] { "AlgorithmSpecification", "TrainingJobConfig", "Interruptible", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst deleted file mode 100644 index 4bfaa3f53..000000000 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst +++ /dev/null @@ -1,158 +0,0 @@ -.. _api_file_flyteidl/plugins/sagemaker/hpo_job.proto: - -hpo_job.proto -======================================== - -.. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningObjective: - -flyteidl.plugins.sagemaker.HyperparameterTuningObjective --------------------------------------------------------- - -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ - - -.. code-block:: json - - { - "objective_type": "...", - "metric_name": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type: - -objective_type - (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType `) - -.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name: - -metric_name - (`string `_) - - -.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType: - -Enum flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType ------------------------------------------------------------------------------------------------ - -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_ - - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE: - -MINIMIZE - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MAXIMIZE: - -MAXIMIZE - ⁣ - - -.. _api_msg_flyteidl.plugins.sagemaker.HPOJob: - -flyteidl.plugins.sagemaker.HPOJob ---------------------------------- - -`[flyteidl.plugins.sagemaker.HPOJob proto] `_ - - -.. code-block:: json - - { - "training_job": "{...}", - "max_number_of_training_jobs": "...", - "max_parallel_training_jobs": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.training_job: - -training_job - (:ref:`flyteidl.plugins.sagemaker.TrainingJob `) - -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs: - -max_number_of_training_jobs - (`int64 `_) - -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs: - -max_parallel_training_jobs - (`int64 `_) - - - -.. _api_msg_flyteidl.plugins.sagemaker.HPOJobConfig: - -flyteidl.plugins.sagemaker.HPOJobConfig ---------------------------------------- - -`[flyteidl.plugins.sagemaker.HPOJobConfig proto] `_ - - -.. code-block:: json - - { - "hyperparameter_ranges": "{...}", - "tuning_strategy": "...", - "tuning_objective": "{...}", - "training_job_early_stopping_type": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges: - -hyperparameter_ranges - (:ref:`flyteidl.plugins.sagemaker.ParameterRanges `) - -.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy: - -tuning_strategy - (:ref:`flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy `) - -.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective: - -tuning_objective - (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjective `) - -.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type: - -training_job_early_stopping_type - (:ref:`flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType `) - - -.. _api_enum_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy: - -Enum flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy -------------------------------------------------------------------------- - -`[flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy proto] `_ - - -.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN: - -BAYESIAN - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy.RANDOM: - -RANDOM - ⁣ - - -.. _api_enum_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType: - -Enum flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType -------------------------------------------------------------------------- - -`[flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType proto] `_ - - -.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType.OFF: - -OFF - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType.AUTO: - -AUTO - ⁣ - diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst index 20fab8e86..22253dc32 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst @@ -6,6 +6,6 @@ sagemaker :caption: sagemaker :name: sagemakertoc - hpo_job.proto - parameter_ranges.proto - training_job.proto + hpojob.proto + parameterranges.proto + trainingjob.proto diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst deleted file mode 100644 index 609908086..000000000 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst +++ /dev/null @@ -1,182 +0,0 @@ -.. _api_file_flyteidl/plugins/sagemaker/parameter_ranges.proto: - -parameter_ranges.proto -================================================= - -.. _api_msg_flyteidl.plugins.sagemaker.ContinuousParameterRange: - -flyteidl.plugins.sagemaker.ContinuousParameterRange ---------------------------------------------------- - -`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_ - - -.. code-block:: json - - { - "max_value": "...", - "min_value": "...", - "scaling_type": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value: - -max_value - (`double `_) - -.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value: - -min_value - (`double `_) - -.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type: - -scaling_type - (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) - - - -.. _api_msg_flyteidl.plugins.sagemaker.IntegerParameterRange: - -flyteidl.plugins.sagemaker.IntegerParameterRange ------------------------------------------------- - -`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_ - - -.. code-block:: json - - { - "max_value": "...", - "min_value": "...", - "scaling_type": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.max_value: - -max_value - (`int64 `_) - -.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.min_value: - -min_value - (`int64 `_) - -.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type: - -scaling_type - (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) - - - -.. _api_msg_flyteidl.plugins.sagemaker.CategoricalParameterRange: - -flyteidl.plugins.sagemaker.CategoricalParameterRange ----------------------------------------------------- - -`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_ - - -.. code-block:: json - - { - "values": [] - } - -.. _api_field_flyteidl.plugins.sagemaker.CategoricalParameterRange.values: - -values - (`string `_) - - - -.. _api_msg_flyteidl.plugins.sagemaker.ParameterRangeOneOf: - -flyteidl.plugins.sagemaker.ParameterRangeOneOf ----------------------------------------------- - -`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_ - - -.. code-block:: json - - { - "continuous_parameter_range": "{...}", - "integer_parameter_range": "{...}", - "categorical_parameter_range": "{...}" - } - -.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range: - -continuous_parameter_range - (:ref:`flyteidl.plugins.sagemaker.ContinuousParameterRange `) - - - Only one of :ref:`continuous_parameter_range `, :ref:`integer_parameter_range `, :ref:`categorical_parameter_range ` may be set. - -.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range: - -integer_parameter_range - (:ref:`flyteidl.plugins.sagemaker.IntegerParameterRange `) - - - Only one of :ref:`continuous_parameter_range `, :ref:`integer_parameter_range `, :ref:`categorical_parameter_range ` may be set. - -.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range: - -categorical_parameter_range - (:ref:`flyteidl.plugins.sagemaker.CategoricalParameterRange `) - - - Only one of :ref:`continuous_parameter_range `, :ref:`integer_parameter_range `, :ref:`categorical_parameter_range ` may be set. - - - -.. _api_msg_flyteidl.plugins.sagemaker.ParameterRanges: - -flyteidl.plugins.sagemaker.ParameterRanges ------------------------------------------- - -`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ - - -.. code-block:: json - - { - "parameter_range_map": "{...}" - } - -.. _api_field_flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map: - -parameter_range_map - (map<`string `_, :ref:`flyteidl.plugins.sagemaker.ParameterRangeOneOf `>) - - -.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterScalingType: - -Enum flyteidl.plugins.sagemaker.HyperparameterScalingType ---------------------------------------------------------- - -`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_ - - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.AUTO: - -AUTO - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.LINEAR: - -LINEAR - ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.LOGARITHMIC: - -LOGARITHMIC - ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.REVERSELOGARITHMIC: - -REVERSELOGARITHMIC - ⁣ - diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst deleted file mode 100644 index 0866d86bf..000000000 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst +++ /dev/null @@ -1,199 +0,0 @@ -.. _api_file_flyteidl/plugins/sagemaker/training_job.proto: - -training_job.proto -============================================= - -.. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification: - -flyteidl.plugins.sagemaker.AlgorithmSpecification -------------------------------------------------- - -`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ - - -.. code-block:: json - - { - "input_mode": "...", - "algorithm_name": "...", - "algorithm_version": "...", - "metric_definitions": [] - } - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode: - -input_mode - (:ref:`flyteidl.plugins.sagemaker.InputMode `) - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name: - -algorithm_name - (:ref:`flyteidl.plugins.sagemaker.AlgorithmName `) - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version: - -algorithm_version - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions: - -metric_definitions - (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition `) - -.. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition: - -flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition ------------------------------------------------------------------- - -`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ - - -.. code-block:: json - - { - "name": "...", - "regex": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name: - -name - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex: - -regex - (`string `_) - - - - -.. _api_msg_flyteidl.plugins.sagemaker.TrainingJobConfig: - -flyteidl.plugins.sagemaker.TrainingJobConfig --------------------------------------------- - -`[flyteidl.plugins.sagemaker.TrainingJobConfig proto] `_ - - -.. code-block:: json - - { - "instance_count": "...", - "instance_type": "...", - "volume_size_in_gb": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count: - -instance_count - (`int64 `_) - -.. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type: - -instance_type - (`string `_) - -.. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb: - -volume_size_in_gb - (`int64 `_) - - - -.. _api_msg_flyteidl.plugins.sagemaker.StoppingCondition: - -flyteidl.plugins.sagemaker.StoppingCondition --------------------------------------------- - -`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ - - -.. code-block:: json - - { - "max_runtime_in_seconds": "...", - "max_wait_time_in_seconds": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds: - -max_runtime_in_seconds - (`int64 `_) - -.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds: - -max_wait_time_in_seconds - (`int64 `_) - - - -.. _api_msg_flyteidl.plugins.sagemaker.TrainingJob: - -flyteidl.plugins.sagemaker.TrainingJob --------------------------------------- - -`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ - - -.. code-block:: json - - { - "algorithm_specification": "{...}", - "training_job_config": "{...}", - "interruptible": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification: - -algorithm_specification - (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification `) - -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.training_job_config: - -training_job_config - (:ref:`flyteidl.plugins.sagemaker.TrainingJobConfig `) - -.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.interruptible: - -interruptible - (`bool `_) - - -.. _api_enum_flyteidl.plugins.sagemaker.InputMode: - -Enum flyteidl.plugins.sagemaker.InputMode ------------------------------------------ - -`[flyteidl.plugins.sagemaker.InputMode proto] `_ - - -.. _api_enum_value_flyteidl.plugins.sagemaker.InputMode.FILE: - -FILE - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.InputMode.PIPE: - -PIPE - ⁣ - - -.. _api_enum_flyteidl.plugins.sagemaker.AlgorithmName: - -Enum flyteidl.plugins.sagemaker.AlgorithmName ---------------------------------------------- - -`[flyteidl.plugins.sagemaker.AlgorithmName proto] `_ - - -.. _api_enum_value_flyteidl.plugins.sagemaker.AlgorithmName.CUSTOM: - -CUSTOM - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.AlgorithmName.XGBOOST: - -XGBOOST - ⁣ - diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py deleted file mode 100644 index 140d64ce4..000000000 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py +++ /dev/null @@ -1,272 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/sagemaker/hpo_job.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.plugins.sagemaker import parameter_ranges_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2 -from flyteidl.plugins.sagemaker import training_job_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='flyteidl/plugins/sagemaker/hpo_job.proto', - package='flyteidl.plugins.sagemaker', - syntax='proto3', - serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') - , - dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,]) - - - -_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE = _descriptor.EnumDescriptor( - name='HyperparameterTuningObjectiveType', - full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='MINIMIZE', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MAXIMIZE', index=1, number=1, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=342, - serialized_end=405, -) -_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE) - -_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY = _descriptor.EnumDescriptor( - name='HyperparameterTuningStrategy', - full_name='flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='BAYESIAN', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RANDOM', index=1, number=1, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=941, - serialized_end=997, -) -_sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY) - -_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE = _descriptor.EnumDescriptor( - name='TrainingJobEarlyStoppingType', - full_name='flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='OFF', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUTO', index=1, number=1, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=999, - serialized_end=1048, -) -_sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE) - - -_HYPERPARAMETERTUNINGOBJECTIVE = _descriptor.Descriptor( - name='HyperparameterTuningObjective', - full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='objective_type', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metric_name', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=171, - serialized_end=405, -) - - -_HPOJOB = _descriptor.Descriptor( - name='HPOJob', - full_name='flyteidl.plugins.sagemaker.HPOJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='training_job', full_name='flyteidl.plugins.sagemaker.HPOJob.training_job', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_number_of_training_jobs', full_name='flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_parallel_training_jobs', full_name='flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=408, - serialized_end=552, -) - - -_HPOJOBCONFIG = _descriptor.Descriptor( - name='HPOJobConfig', - full_name='flyteidl.plugins.sagemaker.HPOJobConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='hyperparameter_ranges', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tuning_strategy', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tuning_objective', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='training_job_early_stopping_type', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY, - _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=555, - serialized_end=1048, -) - -_HYPERPARAMETERTUNINGOBJECTIVE.fields_by_name['objective_type'].enum_type = _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE -_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE.containing_type = _HYPERPARAMETERTUNINGOBJECTIVE -_HPOJOB.fields_by_name['training_job'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2._TRAININGJOB -_HPOJOBCONFIG.fields_by_name['hyperparameter_ranges'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2._PARAMETERRANGES -_HPOJOBCONFIG.fields_by_name['tuning_strategy'].enum_type = _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY -_HPOJOBCONFIG.fields_by_name['tuning_objective'].message_type = _HYPERPARAMETERTUNINGOBJECTIVE -_HPOJOBCONFIG.fields_by_name['training_job_early_stopping_type'].enum_type = _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE -_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY.containing_type = _HPOJOBCONFIG -_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE.containing_type = _HPOJOBCONFIG -DESCRIPTOR.message_types_by_name['HyperparameterTuningObjective'] = _HYPERPARAMETERTUNINGOBJECTIVE -DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB -DESCRIPTOR.message_types_by_name['HPOJobConfig'] = _HPOJOBCONFIG -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -HyperparameterTuningObjective = _reflection.GeneratedProtocolMessageType('HyperparameterTuningObjective', (_message.Message,), dict( - DESCRIPTOR = _HYPERPARAMETERTUNINGOBJECTIVE, - __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - )) -_sym_db.RegisterMessage(HyperparameterTuningObjective) - -HPOJob = _reflection.GeneratedProtocolMessageType('HPOJob', (_message.Message,), dict( - DESCRIPTOR = _HPOJOB, - __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) - )) -_sym_db.RegisterMessage(HPOJob) - -HPOJobConfig = _reflection.GeneratedProtocolMessageType('HPOJobConfig', (_message.Message,), dict( - DESCRIPTOR = _HPOJOBCONFIG, - __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) - )) -_sym_db.RegisterMessage(HPOJobConfig) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2_grpc.py deleted file mode 100644 index a89435267..000000000 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2_grpc.py +++ /dev/null @@ -1,3 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py deleted file mode 100644 index 896671ffe..000000000 --- a/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py +++ /dev/null @@ -1,372 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/sagemaker/parameter_ranges.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf.internal import enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='flyteidl/plugins/sagemaker/parameter_ranges.proto', - package='flyteidl.plugins.sagemaker', - syntax='proto3', - serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n1flyteidl/plugins/sagemaker/parameter_ranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x8d\x01\n\x18\x43ontinuousParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x01\x12\x11\n\tmin_value\x18\x02 \x01(\x01\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x8a\x01\n\x15IntegerParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x03\x12\x11\n\tmin_value\x18\x02 \x01(\x03\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"+\n\x19\x43\x61tegoricalParameterRange\x12\x0e\n\x06values\x18\x01 \x03(\t\"\xbd\x02\n\x13ParameterRangeOneOf\x12Z\n\x1a\x63ontinuous_parameter_range\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00\x12T\n\x17integer_parameter_range\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00\x12\\\n\x1b\x63\x61tegorical_parameter_range\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00\x42\x16\n\x14parameter_range_type\"\xdd\x01\n\x0fParameterRanges\x12_\n\x13parameter_range_map\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry\x1ai\n\x16ParameterRangeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOf:\x02\x38\x01*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') -) - -_HYPERPARAMETERSCALINGTYPE = _descriptor.EnumDescriptor( - name='HyperparameterScalingType', - full_name='flyteidl.plugins.sagemaker.HyperparameterScalingType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='AUTO', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LINEAR', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOGARITHMIC', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REVERSELOGARITHMIC', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=955, - serialized_end=1045, -) -_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERSCALINGTYPE) - -HyperparameterScalingType = enum_type_wrapper.EnumTypeWrapper(_HYPERPARAMETERSCALINGTYPE) -AUTO = 0 -LINEAR = 1 -LOGARITHMIC = 2 -REVERSELOGARITHMIC = 3 - - - -_CONTINUOUSPARAMETERRANGE = _descriptor.Descriptor( - name='ContinuousParameterRange', - full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='max_value', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value', index=0, - number=1, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='min_value', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value', index=1, - number=2, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='scaling_type', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=82, - serialized_end=223, -) - - -_INTEGERPARAMETERRANGE = _descriptor.Descriptor( - name='IntegerParameterRange', - full_name='flyteidl.plugins.sagemaker.IntegerParameterRange', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='max_value', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.max_value', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='min_value', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.min_value', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='scaling_type', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=226, - serialized_end=364, -) - - -_CATEGORICALPARAMETERRANGE = _descriptor.Descriptor( - name='CategoricalParameterRange', - full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='values', full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange.values', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=366, - serialized_end=409, -) - - -_PARAMETERRANGEONEOF = _descriptor.Descriptor( - name='ParameterRangeOneOf', - full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='continuous_parameter_range', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='integer_parameter_range', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='categorical_parameter_range', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='parameter_range_type', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.parameter_range_type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=412, - serialized_end=729, -) - - -_PARAMETERRANGES_PARAMETERRANGEMAPENTRY = _descriptor.Descriptor( - name='ParameterRangeMapEntry', - full_name='flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=_b('8\001'), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=848, - serialized_end=953, -) - -_PARAMETERRANGES = _descriptor.Descriptor( - name='ParameterRanges', - full_name='flyteidl.plugins.sagemaker.ParameterRanges', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parameter_range_map', full_name='flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PARAMETERRANGES_PARAMETERRANGEMAPENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=732, - serialized_end=953, -) - -_CONTINUOUSPARAMETERRANGE.fields_by_name['scaling_type'].enum_type = _HYPERPARAMETERSCALINGTYPE -_INTEGERPARAMETERRANGE.fields_by_name['scaling_type'].enum_type = _HYPERPARAMETERSCALINGTYPE -_PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range'].message_type = _CONTINUOUSPARAMETERRANGE -_PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range'].message_type = _INTEGERPARAMETERRANGE -_PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range'].message_type = _CATEGORICALPARAMETERRANGE -_PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'].fields.append( - _PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range']) -_PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'] -_PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'].fields.append( - _PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range']) -_PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'] -_PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'].fields.append( - _PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range']) -_PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'] -_PARAMETERRANGES_PARAMETERRANGEMAPENTRY.fields_by_name['value'].message_type = _PARAMETERRANGEONEOF -_PARAMETERRANGES_PARAMETERRANGEMAPENTRY.containing_type = _PARAMETERRANGES -_PARAMETERRANGES.fields_by_name['parameter_range_map'].message_type = _PARAMETERRANGES_PARAMETERRANGEMAPENTRY -DESCRIPTOR.message_types_by_name['ContinuousParameterRange'] = _CONTINUOUSPARAMETERRANGE -DESCRIPTOR.message_types_by_name['IntegerParameterRange'] = _INTEGERPARAMETERRANGE -DESCRIPTOR.message_types_by_name['CategoricalParameterRange'] = _CATEGORICALPARAMETERRANGE -DESCRIPTOR.message_types_by_name['ParameterRangeOneOf'] = _PARAMETERRANGEONEOF -DESCRIPTOR.message_types_by_name['ParameterRanges'] = _PARAMETERRANGES -DESCRIPTOR.enum_types_by_name['HyperparameterScalingType'] = _HYPERPARAMETERSCALINGTYPE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ContinuousParameterRange = _reflection.GeneratedProtocolMessageType('ContinuousParameterRange', (_message.Message,), dict( - DESCRIPTOR = _CONTINUOUSPARAMETERRANGE, - __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) - )) -_sym_db.RegisterMessage(ContinuousParameterRange) - -IntegerParameterRange = _reflection.GeneratedProtocolMessageType('IntegerParameterRange', (_message.Message,), dict( - DESCRIPTOR = _INTEGERPARAMETERRANGE, - __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) - )) -_sym_db.RegisterMessage(IntegerParameterRange) - -CategoricalParameterRange = _reflection.GeneratedProtocolMessageType('CategoricalParameterRange', (_message.Message,), dict( - DESCRIPTOR = _CATEGORICALPARAMETERRANGE, - __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) - )) -_sym_db.RegisterMessage(CategoricalParameterRange) - -ParameterRangeOneOf = _reflection.GeneratedProtocolMessageType('ParameterRangeOneOf', (_message.Message,), dict( - DESCRIPTOR = _PARAMETERRANGEONEOF, - __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - )) -_sym_db.RegisterMessage(ParameterRangeOneOf) - -ParameterRanges = _reflection.GeneratedProtocolMessageType('ParameterRanges', (_message.Message,), dict( - - ParameterRangeMapEntry = _reflection.GeneratedProtocolMessageType('ParameterRangeMapEntry', (_message.Message,), dict( - DESCRIPTOR = _PARAMETERRANGES_PARAMETERRANGEMAPENTRY, - __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry) - )) - , - DESCRIPTOR = _PARAMETERRANGES, - __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) - )) -_sym_db.RegisterMessage(ParameterRanges) -_sym_db.RegisterMessage(ParameterRanges.ParameterRangeMapEntry) - - -DESCRIPTOR._options = None -_PARAMETERRANGES_PARAMETERRANGEMAPENTRY._options = None -# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2_grpc.py deleted file mode 100644 index a89435267..000000000 --- a/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2_grpc.py +++ /dev/null @@ -1,3 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py deleted file mode 100644 index 581c4359c..000000000 --- a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py +++ /dev/null @@ -1,348 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/sagemaker/training_job.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf.internal import enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='flyteidl/plugins/sagemaker/training_job.proto', - package='flyteidl.plugins.sagemaker', - syntax='proto3', - serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xc3\x02\n\x16\x41lgorithmSpecification\x12\x39\n\ninput_mode\x18\x01 \x01(\x0e\x32%.flyteidl.plugins.sagemaker.InputMode\x12\x41\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32).flyteidl.plugins.sagemaker.AlgorithmName\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"]\n\x11TrainingJobConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"\xc5\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12J\n\x13training_job_config\x18\x02 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.TrainingJobConfig\x12\x15\n\rinterruptible\x18\x04 \x01(\x08*\x1f\n\tInputMode\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01*(\n\rAlgorithmName\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') -) - -_INPUTMODE = _descriptor.EnumDescriptor( - name='InputMode', - full_name='flyteidl.plugins.sagemaker.InputMode', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='FILE', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PIPE', index=1, number=1, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=785, - serialized_end=816, -) -_sym_db.RegisterEnumDescriptor(_INPUTMODE) - -InputMode = enum_type_wrapper.EnumTypeWrapper(_INPUTMODE) -_ALGORITHMNAME = _descriptor.EnumDescriptor( - name='AlgorithmName', - full_name='flyteidl.plugins.sagemaker.AlgorithmName', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='CUSTOM', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='XGBOOST', index=1, number=1, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=818, - serialized_end=858, -) -_sym_db.RegisterEnumDescriptor(_ALGORITHMNAME) - -AlgorithmName = enum_type_wrapper.EnumTypeWrapper(_ALGORITHMNAME) -FILE = 0 -PIPE = 1 -CUSTOM = 0 -XGBOOST = 1 - - - -_ALGORITHMSPECIFICATION_METRICDEFINITION = _descriptor.Descriptor( - name='MetricDefinition', - full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='regex', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=354, - serialized_end=401, -) - -_ALGORITHMSPECIFICATION = _descriptor.Descriptor( - name='AlgorithmSpecification', - full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='input_mode', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='algorithm_name', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='algorithm_version', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metric_definitions', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ALGORITHMSPECIFICATION_METRICDEFINITION, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=78, - serialized_end=401, -) - - -_TRAININGJOBCONFIG = _descriptor.Descriptor( - name='TrainingJobConfig', - full_name='flyteidl.plugins.sagemaker.TrainingJobConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='instance_count', full_name='flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='instance_type', full_name='flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='volume_size_in_gb', full_name='flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=403, - serialized_end=496, -) - - -_STOPPINGCONDITION = _descriptor.Descriptor( - name='StoppingCondition', - full_name='flyteidl.plugins.sagemaker.StoppingCondition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='max_runtime_in_seconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_wait_time_in_seconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=498, - serialized_end=583, -) - - -_TRAININGJOB = _descriptor.Descriptor( - name='TrainingJob', - full_name='flyteidl.plugins.sagemaker.TrainingJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='algorithm_specification', full_name='flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='training_job_config', full_name='flyteidl.plugins.sagemaker.TrainingJob.training_job_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interruptible', full_name='flyteidl.plugins.sagemaker.TrainingJob.interruptible', index=2, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=586, - serialized_end=783, -) - -_ALGORITHMSPECIFICATION_METRICDEFINITION.containing_type = _ALGORITHMSPECIFICATION -_ALGORITHMSPECIFICATION.fields_by_name['input_mode'].enum_type = _INPUTMODE -_ALGORITHMSPECIFICATION.fields_by_name['algorithm_name'].enum_type = _ALGORITHMNAME -_ALGORITHMSPECIFICATION.fields_by_name['metric_definitions'].message_type = _ALGORITHMSPECIFICATION_METRICDEFINITION -_TRAININGJOB.fields_by_name['algorithm_specification'].message_type = _ALGORITHMSPECIFICATION -_TRAININGJOB.fields_by_name['training_job_config'].message_type = _TRAININGJOBCONFIG -DESCRIPTOR.message_types_by_name['AlgorithmSpecification'] = _ALGORITHMSPECIFICATION -DESCRIPTOR.message_types_by_name['TrainingJobConfig'] = _TRAININGJOBCONFIG -DESCRIPTOR.message_types_by_name['StoppingCondition'] = _STOPPINGCONDITION -DESCRIPTOR.message_types_by_name['TrainingJob'] = _TRAININGJOB -DESCRIPTOR.enum_types_by_name['InputMode'] = _INPUTMODE -DESCRIPTOR.enum_types_by_name['AlgorithmName'] = _ALGORITHMNAME -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AlgorithmSpecification = _reflection.GeneratedProtocolMessageType('AlgorithmSpecification', (_message.Message,), dict( - - MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict( - DESCRIPTOR = _ALGORITHMSPECIFICATION_METRICDEFINITION, - __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - )) - , - DESCRIPTOR = _ALGORITHMSPECIFICATION, - __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) - )) -_sym_db.RegisterMessage(AlgorithmSpecification) -_sym_db.RegisterMessage(AlgorithmSpecification.MetricDefinition) - -TrainingJobConfig = _reflection.GeneratedProtocolMessageType('TrainingJobConfig', (_message.Message,), dict( - DESCRIPTOR = _TRAININGJOBCONFIG, - __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) - )) -_sym_db.RegisterMessage(TrainingJobConfig) - -StoppingCondition = _reflection.GeneratedProtocolMessageType('StoppingCondition', (_message.Message,), dict( - DESCRIPTOR = _STOPPINGCONDITION, - __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) - )) -_sym_db.RegisterMessage(StoppingCondition) - -TrainingJob = _reflection.GeneratedProtocolMessageType('TrainingJob', (_message.Message,), dict( - DESCRIPTOR = _TRAININGJOB, - __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) - )) -_sym_db.RegisterMessage(TrainingJob) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2_grpc.py deleted file mode 100644 index a89435267..000000000 --- a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2_grpc.py +++ /dev/null @@ -1,3 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - diff --git a/protos/flyteidl/plugins/sagemaker/hpo_job.proto b/protos/flyteidl/plugins/sagemaker/hpojob.proto similarity index 90% rename from protos/flyteidl/plugins/sagemaker/hpo_job.proto rename to protos/flyteidl/plugins/sagemaker/hpojob.proto index 03e2df15d..39972873c 100644 --- a/protos/flyteidl/plugins/sagemaker/hpo_job.proto +++ b/protos/flyteidl/plugins/sagemaker/hpojob.proto @@ -4,8 +4,8 @@ package flyteidl.plugins.sagemaker; option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; -import "flyteidl/plugins/sagemaker/parameter_ranges.proto"; -import "flyteidl/plugins/sagemaker/training_job.proto"; +import "flyteidl/plugins/sagemaker/parameterranges.proto"; +import "flyteidl/plugins/sagemaker/trainingjob.proto"; message HyperparameterTuningObjective { enum HyperparameterTuningObjectiveType { diff --git a/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto b/protos/flyteidl/plugins/sagemaker/parameterranges.proto similarity index 100% rename from protos/flyteidl/plugins/sagemaker/parameter_ranges.proto rename to protos/flyteidl/plugins/sagemaker/parameterranges.proto diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/trainingjob.proto similarity index 100% rename from protos/flyteidl/plugins/sagemaker/training_job.proto rename to protos/flyteidl/plugins/sagemaker/trainingjob.proto From c2dbcbb68ab4c202f43b947792028524320596c9 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Thu, 23 Jul 2020 16:55:52 -0700 Subject: [PATCH 28/64] newly generated files --- .../plugins/sagemaker/hpojob.grpc.pb.cc | 26 + .../plugins/sagemaker/hpojob.grpc.pb.h | 49 + .../flyteidl/plugins/sagemaker/hpojob.pb.cc | 1459 ++++++ .../flyteidl/plugins/sagemaker/hpojob.pb.h | 938 ++++ .../sagemaker/parameterranges.grpc.pb.cc | 26 + .../sagemaker/parameterranges.grpc.pb.h | 49 + .../plugins/sagemaker/parameterranges.pb.cc | 2212 +++++++++ .../plugins/sagemaker/parameterranges.pb.h | 1163 +++++ .../plugins/sagemaker/trainingjob.grpc.pb.cc | 26 + .../plugins/sagemaker/trainingjob.grpc.pb.h | 49 + .../plugins/sagemaker/trainingjob.pb.cc | 2214 +++++++++ .../plugins/sagemaker/trainingjob.pb.h | 1304 +++++ .../flyteidl/plugins/sagemaker/hpojob.pb.go | 312 ++ .../plugins/sagemaker/hpojob.pb.validate.go | 276 ++ .../plugins/sagemaker/parameterranges.pb.go | 385 ++ .../sagemaker/parameterranges.pb.validate.go | 439 ++ .../plugins/sagemaker/trainingjob.pb.go | 395 ++ .../sagemaker/trainingjob.pb.validate.go | 428 ++ .../plugins/sagemaker/Parameterranges.java | 3973 ++++++++++++++++ .../plugins/sagemaker/Trainingjob.java | 4207 +++++++++++++++++ .../plugins/sagemaker/hpojob.proto.rst | 158 + .../sagemaker/parameterranges.proto.rst | 182 + .../plugins/sagemaker/trainingjob.proto.rst | 199 + .../flyteidl/plugins/sagemaker/hpojob_pb2.py | 272 ++ .../plugins/sagemaker/hpojob_pb2_grpc.py | 3 + .../plugins/sagemaker/parameterranges_pb2.py | 372 ++ .../sagemaker/parameterranges_pb2_grpc.py | 3 + .../plugins/sagemaker/trainingjob_pb2.py | 348 ++ .../plugins/sagemaker/trainingjob_pb2_grpc.py | 3 + 29 files changed, 21470 insertions(+) create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.h create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc create mode 100644 gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go create mode 100644 gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go create mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java create mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java create mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst create mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst create mode 100644 gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2_grpc.py create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2_grpc.py create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py create mode 100644 gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2_grpc.py diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.cc new file mode 100644 index 000000000..37c9c99a7 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.cc @@ -0,0 +1,26 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/hpojob.proto + +#include "flyteidl/plugins/sagemaker/hpojob.pb.h" +#include "flyteidl/plugins/sagemaker/hpojob.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace flyteidl +} // namespace plugins +} // namespace sagemaker + diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.h new file mode 100644 index 000000000..a4849ff1f --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.h @@ -0,0 +1,49 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/hpojob.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto__INCLUDED + +#include "flyteidl/plugins/sagemaker/hpojob.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc new file mode 100644 index 000000000..326327207 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc @@ -0,0 +1,1459 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/hpojob.proto + +#include "flyteidl/plugins/sagemaker/hpojob.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class HyperparameterTuningObjectiveDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HyperparameterTuningObjective_default_instance_; +class HPOJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HPOJob_default_instance_; +class HPOJobConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HPOJobConfig_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto}, {}}; + +static void InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HPOJob_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HPOJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HPOJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto}, { + &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base,}}; + +static void InitDefaultsHPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HPOJobConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HPOJobConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto}, { + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base, + &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[3]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[3]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, objective_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, metric_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, training_job_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, max_number_of_training_jobs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, max_parallel_training_jobs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, hyperparameter_ranges_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, tuning_strategy_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, tuning_objective_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, training_job_early_stopping_type_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective)}, + { 7, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJob)}, + { 15, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJobConfig)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJob_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, "flyteidl/plugins/sagemaker/hpojob.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[] = + "\n\'flyteidl/plugins/sagemaker/hpojob.prot" + "o\022\032flyteidl.plugins.sagemaker\0320flyteidl/" + "plugins/sagemaker/parameterranges.proto\032" + ",flyteidl/plugins/sagemaker/trainingjob." + "proto\"\352\001\n\035HyperparameterTuningObjective\022" + "s\n\016objective_type\030\001 \001(\0162[.flyteidl.plugi" + "ns.sagemaker.HyperparameterTuningObjecti" + "ve.HyperparameterTuningObjectiveType\022\023\n\013" + "metric_name\030\002 \001(\t\"\?\n!HyperparameterTunin" + "gObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE" + "\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'.fl" + "yteidl.plugins.sagemaker.TrainingJob\022#\n\033" + "max_number_of_training_jobs\030\002 \001(\003\022\"\n\032max" + "_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPOJob" + "Config\022J\n\025hyperparameter_ranges\030\001 \001(\0132+." + "flyteidl.plugins.sagemaker.ParameterRang" + "es\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteidl.p" + "lugins.sagemaker.HPOJobConfig.Hyperparam" + "eterTuningStrategy\022S\n\020tuning_objective\030\003" + " \001(\01329.flyteidl.plugins.sagemaker.Hyperp" + "arameterTuningObjective\022o\n training_job_" + "early_stopping_type\030\004 \001(\0162E.flyteidl.plu" + "gins.sagemaker.HPOJobConfig.TrainingJobE" + "arlyStoppingType\"8\n\034HyperparameterTuning" + "Strategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034Tr" + "ainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004A" + "UTO\020\001B5Z3github.com/lyft/flyteidl/gen/pb" + "-go/flyteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, + "flyteidl/plugins/sagemaker/hpojob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 1108, +}; + +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, + ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[0]; +} +bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::MINIMIZE; +const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::MAXIMIZE; +const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::HyperparameterTuningObjectiveType_MIN; +const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::HyperparameterTuningObjectiveType_MAX; +const int HyperparameterTuningObjective::HyperparameterTuningObjectiveType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* HPOJobConfig_HyperparameterTuningStrategy_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[1]; +} +bool HPOJobConfig_HyperparameterTuningStrategy_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::BAYESIAN; +const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::RANDOM; +const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::HyperparameterTuningStrategy_MIN; +const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::HyperparameterTuningStrategy_MAX; +const int HPOJobConfig::HyperparameterTuningStrategy_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* HPOJobConfig_TrainingJobEarlyStoppingType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[2]; +} +bool HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::OFF; +const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::AUTO; +const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::TrainingJobEarlyStoppingType_MIN; +const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::TrainingJobEarlyStoppingType_MAX; +const int HPOJobConfig::TrainingJobEarlyStoppingType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void HyperparameterTuningObjective::InitAsDefaultInstance() { +} +class HyperparameterTuningObjective::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HyperparameterTuningObjective::kObjectiveTypeFieldNumber; +const int HyperparameterTuningObjective::kMetricNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HyperparameterTuningObjective::HyperparameterTuningObjective() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +} +HyperparameterTuningObjective::HyperparameterTuningObjective(const HyperparameterTuningObjective& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.metric_name().size() > 0) { + metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); + } + objective_type_ = from.objective_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +} + +void HyperparameterTuningObjective::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + objective_type_ = 0; +} + +HyperparameterTuningObjective::~HyperparameterTuningObjective() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + SharedDtor(); +} + +void HyperparameterTuningObjective::SharedDtor() { + metric_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void HyperparameterTuningObjective::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HyperparameterTuningObjective& HyperparameterTuningObjective::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + return *internal_default_instance(); +} + + +void HyperparameterTuningObjective::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + objective_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HyperparameterTuningObjective::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_objective_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string metric_name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); + object = msg->mutable_metric_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HyperparameterTuningObjective::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_objective_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string metric_name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_metric_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric_name().data(), static_cast(this->metric_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HyperparameterTuningObjective::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + if (this->objective_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->objective_type(), output); + } + + // string metric_name = 2; + if (this->metric_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric_name().data(), static_cast(this->metric_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->metric_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +} + +::google::protobuf::uint8* HyperparameterTuningObjective::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + if (this->objective_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->objective_type(), target); + } + + // string metric_name = 2; + if (this->metric_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric_name().data(), static_cast(this->metric_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->metric_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + return target; +} + +size_t HyperparameterTuningObjective::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string metric_name = 2; + if (this->metric_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->metric_name()); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + if (this->objective_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->objective_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HyperparameterTuningObjective::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + GOOGLE_DCHECK_NE(&from, this); + const HyperparameterTuningObjective* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + MergeFrom(*source); + } +} + +void HyperparameterTuningObjective::MergeFrom(const HyperparameterTuningObjective& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.metric_name().size() > 0) { + + metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); + } + if (from.objective_type() != 0) { + set_objective_type(from.objective_type()); + } +} + +void HyperparameterTuningObjective::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HyperparameterTuningObjective::CopyFrom(const HyperparameterTuningObjective& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HyperparameterTuningObjective::IsInitialized() const { + return true; +} + +void HyperparameterTuningObjective::Swap(HyperparameterTuningObjective* other) { + if (other == this) return; + InternalSwap(other); +} +void HyperparameterTuningObjective::InternalSwap(HyperparameterTuningObjective* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + metric_name_.Swap(&other->metric_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(objective_type_, other->objective_type_); +} + +::google::protobuf::Metadata HyperparameterTuningObjective::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void HPOJob::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_HPOJob_default_instance_._instance.get_mutable()->training_job_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJob*>( + ::flyteidl::plugins::sagemaker::TrainingJob::internal_default_instance()); +} +class HPOJob::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::TrainingJob& training_job(const HPOJob* msg); +}; + +const ::flyteidl::plugins::sagemaker::TrainingJob& +HPOJob::HasBitSetters::training_job(const HPOJob* msg) { + return *msg->training_job_; +} +void HPOJob::clear_training_job() { + if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { + delete training_job_; + } + training_job_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HPOJob::kTrainingJobFieldNumber; +const int HPOJob::kMaxNumberOfTrainingJobsFieldNumber; +const int HPOJob::kMaxParallelTrainingJobsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HPOJob::HPOJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJob) +} +HPOJob::HPOJob(const HPOJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_training_job()) { + training_job_ = new ::flyteidl::plugins::sagemaker::TrainingJob(*from.training_job_); + } else { + training_job_ = nullptr; + } + ::memcpy(&max_number_of_training_jobs_, &from.max_number_of_training_jobs_, + static_cast(reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJob) +} + +void HPOJob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + ::memset(&training_job_, 0, static_cast( + reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&training_job_)) + sizeof(max_parallel_training_jobs_)); +} + +HPOJob::~HPOJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJob) + SharedDtor(); +} + +void HPOJob::SharedDtor() { + if (this != internal_default_instance()) delete training_job_; +} + +void HPOJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HPOJob& HPOJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + return *internal_default_instance(); +} + + +void HPOJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { + delete training_job_; + } + training_job_ = nullptr; + ::memset(&max_number_of_training_jobs_, 0, static_cast( + reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HPOJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJob::_InternalParse; + object = msg->mutable_training_job(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // int64 max_number_of_training_jobs = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_max_number_of_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 max_parallel_training_jobs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_max_parallel_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HPOJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_training_job())); + } else { + goto handle_unusual; + } + break; + } + + // int64 max_number_of_training_jobs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &max_number_of_training_jobs_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 max_parallel_training_jobs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &max_parallel_training_jobs_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HPOJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + if (this->has_training_job()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::training_job(this), output); + } + + // int64 max_number_of_training_jobs = 2; + if (this->max_number_of_training_jobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max_number_of_training_jobs(), output); + } + + // int64 max_parallel_training_jobs = 3; + if (this->max_parallel_training_jobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->max_parallel_training_jobs(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJob) +} + +::google::protobuf::uint8* HPOJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + if (this->has_training_job()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::training_job(this), target); + } + + // int64 max_number_of_training_jobs = 2; + if (this->max_number_of_training_jobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max_number_of_training_jobs(), target); + } + + // int64 max_parallel_training_jobs = 3; + if (this->max_parallel_training_jobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->max_parallel_training_jobs(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJob) + return target; +} + +size_t HPOJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + if (this->has_training_job()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *training_job_); + } + + // int64 max_number_of_training_jobs = 2; + if (this->max_number_of_training_jobs() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max_number_of_training_jobs()); + } + + // int64 max_parallel_training_jobs = 3; + if (this->max_parallel_training_jobs() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max_parallel_training_jobs()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HPOJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJob) + GOOGLE_DCHECK_NE(&from, this); + const HPOJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJob) + MergeFrom(*source); + } +} + +void HPOJob::MergeFrom(const HPOJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_training_job()) { + mutable_training_job()->::flyteidl::plugins::sagemaker::TrainingJob::MergeFrom(from.training_job()); + } + if (from.max_number_of_training_jobs() != 0) { + set_max_number_of_training_jobs(from.max_number_of_training_jobs()); + } + if (from.max_parallel_training_jobs() != 0) { + set_max_parallel_training_jobs(from.max_parallel_training_jobs()); + } +} + +void HPOJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HPOJob::CopyFrom(const HPOJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HPOJob::IsInitialized() const { + return true; +} + +void HPOJob::Swap(HPOJob* other) { + if (other == this) return; + InternalSwap(other); +} +void HPOJob::InternalSwap(HPOJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(training_job_, other->training_job_); + swap(max_number_of_training_jobs_, other->max_number_of_training_jobs_); + swap(max_parallel_training_jobs_, other->max_parallel_training_jobs_); +} + +::google::protobuf::Metadata HPOJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void HPOJobConfig::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_._instance.get_mutable()->hyperparameter_ranges_ = const_cast< ::flyteidl::plugins::sagemaker::ParameterRanges*>( + ::flyteidl::plugins::sagemaker::ParameterRanges::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_._instance.get_mutable()->tuning_objective_ = const_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective*>( + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::internal_default_instance()); +} +class HPOJobConfig::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::ParameterRanges& hyperparameter_ranges(const HPOJobConfig* msg); + static const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& tuning_objective(const HPOJobConfig* msg); +}; + +const ::flyteidl::plugins::sagemaker::ParameterRanges& +HPOJobConfig::HasBitSetters::hyperparameter_ranges(const HPOJobConfig* msg) { + return *msg->hyperparameter_ranges_; +} +const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& +HPOJobConfig::HasBitSetters::tuning_objective(const HPOJobConfig* msg) { + return *msg->tuning_objective_; +} +void HPOJobConfig::clear_hyperparameter_ranges() { + if (GetArenaNoVirtual() == nullptr && hyperparameter_ranges_ != nullptr) { + delete hyperparameter_ranges_; + } + hyperparameter_ranges_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HPOJobConfig::kHyperparameterRangesFieldNumber; +const int HPOJobConfig::kTuningStrategyFieldNumber; +const int HPOJobConfig::kTuningObjectiveFieldNumber; +const int HPOJobConfig::kTrainingJobEarlyStoppingTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HPOJobConfig::HPOJobConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJobConfig) +} +HPOJobConfig::HPOJobConfig(const HPOJobConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_hyperparameter_ranges()) { + hyperparameter_ranges_ = new ::flyteidl::plugins::sagemaker::ParameterRanges(*from.hyperparameter_ranges_); + } else { + hyperparameter_ranges_ = nullptr; + } + if (from.has_tuning_objective()) { + tuning_objective_ = new ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective(*from.tuning_objective_); + } else { + tuning_objective_ = nullptr; + } + ::memcpy(&tuning_strategy_, &from.tuning_strategy_, + static_cast(reinterpret_cast(&training_job_early_stopping_type_) - + reinterpret_cast(&tuning_strategy_)) + sizeof(training_job_early_stopping_type_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJobConfig) +} + +void HPOJobConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + ::memset(&hyperparameter_ranges_, 0, static_cast( + reinterpret_cast(&training_job_early_stopping_type_) - + reinterpret_cast(&hyperparameter_ranges_)) + sizeof(training_job_early_stopping_type_)); +} + +HPOJobConfig::~HPOJobConfig() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJobConfig) + SharedDtor(); +} + +void HPOJobConfig::SharedDtor() { + if (this != internal_default_instance()) delete hyperparameter_ranges_; + if (this != internal_default_instance()) delete tuning_objective_; +} + +void HPOJobConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HPOJobConfig& HPOJobConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + return *internal_default_instance(); +} + + +void HPOJobConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJobConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && hyperparameter_ranges_ != nullptr) { + delete hyperparameter_ranges_; + } + hyperparameter_ranges_ = nullptr; + if (GetArenaNoVirtual() == nullptr && tuning_objective_ != nullptr) { + delete tuning_objective_; + } + tuning_objective_ = nullptr; + ::memset(&tuning_strategy_, 0, static_cast( + reinterpret_cast(&training_job_early_stopping_type_) - + reinterpret_cast(&tuning_strategy_)) + sizeof(training_job_early_stopping_type_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HPOJobConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::ParameterRanges::_InternalParse; + object = msg->mutable_hyperparameter_ranges(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_tuning_strategy(static_cast<::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::_InternalParse; + object = msg->mutable_tuning_objective(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_training_job_early_stopping_type(static_cast<::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HPOJobConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJobConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_hyperparameter_ranges())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_tuning_strategy(static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_tuning_objective())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_training_job_early_stopping_type(static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJobConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJobConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HPOJobConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJobConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + if (this->has_hyperparameter_ranges()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::hyperparameter_ranges(this), output); + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + if (this->tuning_strategy() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->tuning_strategy(), output); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + if (this->has_tuning_objective()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::tuning_objective(this), output); + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + if (this->training_job_early_stopping_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->training_job_early_stopping_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJobConfig) +} + +::google::protobuf::uint8* HPOJobConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJobConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + if (this->has_hyperparameter_ranges()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::hyperparameter_ranges(this), target); + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + if (this->tuning_strategy() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->tuning_strategy(), target); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + if (this->has_tuning_objective()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::tuning_objective(this), target); + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + if (this->training_job_early_stopping_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->training_job_early_stopping_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJobConfig) + return target; +} + +size_t HPOJobConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJobConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + if (this->has_hyperparameter_ranges()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *hyperparameter_ranges_); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + if (this->has_tuning_objective()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *tuning_objective_); + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + if (this->tuning_strategy() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->tuning_strategy()); + } + + // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + if (this->training_job_early_stopping_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->training_job_early_stopping_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HPOJobConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) + GOOGLE_DCHECK_NE(&from, this); + const HPOJobConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJobConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJobConfig) + MergeFrom(*source); + } +} + +void HPOJobConfig::MergeFrom(const HPOJobConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_hyperparameter_ranges()) { + mutable_hyperparameter_ranges()->::flyteidl::plugins::sagemaker::ParameterRanges::MergeFrom(from.hyperparameter_ranges()); + } + if (from.has_tuning_objective()) { + mutable_tuning_objective()->::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::MergeFrom(from.tuning_objective()); + } + if (from.tuning_strategy() != 0) { + set_tuning_strategy(from.tuning_strategy()); + } + if (from.training_job_early_stopping_type() != 0) { + set_training_job_early_stopping_type(from.training_job_early_stopping_type()); + } +} + +void HPOJobConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HPOJobConfig::CopyFrom(const HPOJobConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HPOJobConfig::IsInitialized() const { + return true; +} + +void HPOJobConfig::Swap(HPOJobConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void HPOJobConfig::InternalSwap(HPOJobConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(hyperparameter_ranges_, other->hyperparameter_ranges_); + swap(tuning_objective_, other->tuning_objective_); + swap(tuning_strategy_, other->tuning_strategy_); + swap(training_job_early_stopping_type_, other->training_job_early_stopping_type_); +} + +::google::protobuf::Metadata HPOJobConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJob >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJobConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJobConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJobConfig >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h new file mode 100644 index 000000000..c00ec5698 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h @@ -0,0 +1,938 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/hpojob.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" +#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[3] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class HPOJob; +class HPOJobDefaultTypeInternal; +extern HPOJobDefaultTypeInternal _HPOJob_default_instance_; +class HPOJobConfig; +class HPOJobConfigDefaultTypeInternal; +extern HPOJobConfigDefaultTypeInternal _HPOJobConfig_default_instance_; +class HyperparameterTuningObjective; +class HyperparameterTuningObjectiveDefaultTypeInternal; +extern HyperparameterTuningObjectiveDefaultTypeInternal _HyperparameterTuningObjective_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJob>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HPOJobConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobConfig>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +enum HyperparameterTuningObjective_HyperparameterTuningObjectiveType { + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE = 0, + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE = 1, + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjective_HyperparameterTuningObjectiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjective_HyperparameterTuningObjectiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(int value); +const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MIN = HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE; +const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX = HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE; +const int HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_ARRAYSIZE = HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(); +inline const ::std::string& HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Name(HyperparameterTuningObjective_HyperparameterTuningObjectiveType value) { + return ::google::protobuf::internal::NameOfEnum( + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(), value); +} +inline bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Parse( + const ::std::string& name, HyperparameterTuningObjective_HyperparameterTuningObjectiveType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(), name, value); +} +enum HPOJobConfig_HyperparameterTuningStrategy { + HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN = 0, + HPOJobConfig_HyperparameterTuningStrategy_RANDOM = 1, + HPOJobConfig_HyperparameterTuningStrategy_HPOJobConfig_HyperparameterTuningStrategy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HPOJobConfig_HyperparameterTuningStrategy_HPOJobConfig_HyperparameterTuningStrategy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HPOJobConfig_HyperparameterTuningStrategy_IsValid(int value); +const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MIN = HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN; +const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX = HPOJobConfig_HyperparameterTuningStrategy_RANDOM; +const int HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_ARRAYSIZE = HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HPOJobConfig_HyperparameterTuningStrategy_descriptor(); +inline const ::std::string& HPOJobConfig_HyperparameterTuningStrategy_Name(HPOJobConfig_HyperparameterTuningStrategy value) { + return ::google::protobuf::internal::NameOfEnum( + HPOJobConfig_HyperparameterTuningStrategy_descriptor(), value); +} +inline bool HPOJobConfig_HyperparameterTuningStrategy_Parse( + const ::std::string& name, HPOJobConfig_HyperparameterTuningStrategy* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HPOJobConfig_HyperparameterTuningStrategy_descriptor(), name, value); +} +enum HPOJobConfig_TrainingJobEarlyStoppingType { + HPOJobConfig_TrainingJobEarlyStoppingType_OFF = 0, + HPOJobConfig_TrainingJobEarlyStoppingType_AUTO = 1, + HPOJobConfig_TrainingJobEarlyStoppingType_HPOJobConfig_TrainingJobEarlyStoppingType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HPOJobConfig_TrainingJobEarlyStoppingType_HPOJobConfig_TrainingJobEarlyStoppingType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(int value); +const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MIN = HPOJobConfig_TrainingJobEarlyStoppingType_OFF; +const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX = HPOJobConfig_TrainingJobEarlyStoppingType_AUTO; +const int HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_ARRAYSIZE = HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(); +inline const ::std::string& HPOJobConfig_TrainingJobEarlyStoppingType_Name(HPOJobConfig_TrainingJobEarlyStoppingType value) { + return ::google::protobuf::internal::NameOfEnum( + HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(), value); +} +inline bool HPOJobConfig_TrainingJobEarlyStoppingType_Parse( + const ::std::string& name, HPOJobConfig_TrainingJobEarlyStoppingType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(), name, value); +} +// =================================================================== + +class HyperparameterTuningObjective final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) */ { + public: + HyperparameterTuningObjective(); + virtual ~HyperparameterTuningObjective(); + + HyperparameterTuningObjective(const HyperparameterTuningObjective& from); + + inline HyperparameterTuningObjective& operator=(const HyperparameterTuningObjective& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HyperparameterTuningObjective(HyperparameterTuningObjective&& from) noexcept + : HyperparameterTuningObjective() { + *this = ::std::move(from); + } + + inline HyperparameterTuningObjective& operator=(HyperparameterTuningObjective&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HyperparameterTuningObjective& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HyperparameterTuningObjective* internal_default_instance() { + return reinterpret_cast( + &_HyperparameterTuningObjective_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(HyperparameterTuningObjective* other); + friend void swap(HyperparameterTuningObjective& a, HyperparameterTuningObjective& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HyperparameterTuningObjective* New() const final { + return CreateMaybeMessage(nullptr); + } + + HyperparameterTuningObjective* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HyperparameterTuningObjective& from); + void MergeFrom(const HyperparameterTuningObjective& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HyperparameterTuningObjective* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType; + static const HyperparameterTuningObjectiveType MINIMIZE = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE; + static const HyperparameterTuningObjectiveType MAXIMIZE = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE; + static inline bool HyperparameterTuningObjectiveType_IsValid(int value) { + return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(value); + } + static const HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType_MIN = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MIN; + static const HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType_MAX = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX; + static const int HyperparameterTuningObjectiveType_ARRAYSIZE = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + HyperparameterTuningObjectiveType_descriptor() { + return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(); + } + static inline const ::std::string& HyperparameterTuningObjectiveType_Name(HyperparameterTuningObjectiveType value) { + return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Name(value); + } + static inline bool HyperparameterTuningObjectiveType_Parse(const ::std::string& name, + HyperparameterTuningObjectiveType* value) { + return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string metric_name = 2; + void clear_metric_name(); + static const int kMetricNameFieldNumber = 2; + const ::std::string& metric_name() const; + void set_metric_name(const ::std::string& value); + #if LANG_CXX11 + void set_metric_name(::std::string&& value); + #endif + void set_metric_name(const char* value); + void set_metric_name(const char* value, size_t size); + ::std::string* mutable_metric_name(); + ::std::string* release_metric_name(); + void set_allocated_metric_name(::std::string* metric_name); + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + void clear_objective_type(); + static const int kObjectiveTypeFieldNumber = 1; + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType objective_type() const; + void set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr metric_name_; + int objective_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; +}; +// ------------------------------------------------------------------- + +class HPOJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJob) */ { + public: + HPOJob(); + virtual ~HPOJob(); + + HPOJob(const HPOJob& from); + + inline HPOJob& operator=(const HPOJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HPOJob(HPOJob&& from) noexcept + : HPOJob() { + *this = ::std::move(from); + } + + inline HPOJob& operator=(HPOJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HPOJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HPOJob* internal_default_instance() { + return reinterpret_cast( + &_HPOJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(HPOJob* other); + friend void swap(HPOJob& a, HPOJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HPOJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + HPOJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HPOJob& from); + void MergeFrom(const HPOJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HPOJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + bool has_training_job() const; + void clear_training_job(); + static const int kTrainingJobFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::TrainingJob& training_job() const; + ::flyteidl::plugins::sagemaker::TrainingJob* release_training_job(); + ::flyteidl::plugins::sagemaker::TrainingJob* mutable_training_job(); + void set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job); + + // int64 max_number_of_training_jobs = 2; + void clear_max_number_of_training_jobs(); + static const int kMaxNumberOfTrainingJobsFieldNumber = 2; + ::google::protobuf::int64 max_number_of_training_jobs() const; + void set_max_number_of_training_jobs(::google::protobuf::int64 value); + + // int64 max_parallel_training_jobs = 3; + void clear_max_parallel_training_jobs(); + static const int kMaxParallelTrainingJobsFieldNumber = 3; + ::google::protobuf::int64 max_parallel_training_jobs() const; + void set_max_parallel_training_jobs(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::sagemaker::TrainingJob* training_job_; + ::google::protobuf::int64 max_number_of_training_jobs_; + ::google::protobuf::int64 max_parallel_training_jobs_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; +}; +// ------------------------------------------------------------------- + +class HPOJobConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJobConfig) */ { + public: + HPOJobConfig(); + virtual ~HPOJobConfig(); + + HPOJobConfig(const HPOJobConfig& from); + + inline HPOJobConfig& operator=(const HPOJobConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HPOJobConfig(HPOJobConfig&& from) noexcept + : HPOJobConfig() { + *this = ::std::move(from); + } + + inline HPOJobConfig& operator=(HPOJobConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HPOJobConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HPOJobConfig* internal_default_instance() { + return reinterpret_cast( + &_HPOJobConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(HPOJobConfig* other); + friend void swap(HPOJobConfig& a, HPOJobConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HPOJobConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + HPOJobConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HPOJobConfig& from); + void MergeFrom(const HPOJobConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HPOJobConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef HPOJobConfig_HyperparameterTuningStrategy HyperparameterTuningStrategy; + static const HyperparameterTuningStrategy BAYESIAN = + HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN; + static const HyperparameterTuningStrategy RANDOM = + HPOJobConfig_HyperparameterTuningStrategy_RANDOM; + static inline bool HyperparameterTuningStrategy_IsValid(int value) { + return HPOJobConfig_HyperparameterTuningStrategy_IsValid(value); + } + static const HyperparameterTuningStrategy HyperparameterTuningStrategy_MIN = + HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MIN; + static const HyperparameterTuningStrategy HyperparameterTuningStrategy_MAX = + HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX; + static const int HyperparameterTuningStrategy_ARRAYSIZE = + HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + HyperparameterTuningStrategy_descriptor() { + return HPOJobConfig_HyperparameterTuningStrategy_descriptor(); + } + static inline const ::std::string& HyperparameterTuningStrategy_Name(HyperparameterTuningStrategy value) { + return HPOJobConfig_HyperparameterTuningStrategy_Name(value); + } + static inline bool HyperparameterTuningStrategy_Parse(const ::std::string& name, + HyperparameterTuningStrategy* value) { + return HPOJobConfig_HyperparameterTuningStrategy_Parse(name, value); + } + + typedef HPOJobConfig_TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType; + static const TrainingJobEarlyStoppingType OFF = + HPOJobConfig_TrainingJobEarlyStoppingType_OFF; + static const TrainingJobEarlyStoppingType AUTO = + HPOJobConfig_TrainingJobEarlyStoppingType_AUTO; + static inline bool TrainingJobEarlyStoppingType_IsValid(int value) { + return HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(value); + } + static const TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType_MIN = + HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MIN; + static const TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType_MAX = + HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX; + static const int TrainingJobEarlyStoppingType_ARRAYSIZE = + HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + TrainingJobEarlyStoppingType_descriptor() { + return HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(); + } + static inline const ::std::string& TrainingJobEarlyStoppingType_Name(TrainingJobEarlyStoppingType value) { + return HPOJobConfig_TrainingJobEarlyStoppingType_Name(value); + } + static inline bool TrainingJobEarlyStoppingType_Parse(const ::std::string& name, + TrainingJobEarlyStoppingType* value) { + return HPOJobConfig_TrainingJobEarlyStoppingType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + bool has_hyperparameter_ranges() const; + void clear_hyperparameter_ranges(); + static const int kHyperparameterRangesFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::ParameterRanges& hyperparameter_ranges() const; + ::flyteidl::plugins::sagemaker::ParameterRanges* release_hyperparameter_ranges(); + ::flyteidl::plugins::sagemaker::ParameterRanges* mutable_hyperparameter_ranges(); + void set_allocated_hyperparameter_ranges(::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges); + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + bool has_tuning_objective() const; + void clear_tuning_objective(); + static const int kTuningObjectiveFieldNumber = 3; + const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& tuning_objective() const; + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* release_tuning_objective(); + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* mutable_tuning_objective(); + void set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective); + + // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + void clear_tuning_strategy(); + static const int kTuningStrategyFieldNumber = 2; + ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy tuning_strategy() const; + void set_tuning_strategy(::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy value); + + // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + void clear_training_job_early_stopping_type(); + static const int kTrainingJobEarlyStoppingTypeFieldNumber = 4; + ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType training_job_early_stopping_type() const; + void set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges_; + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective_; + int tuning_strategy_; + int training_job_early_stopping_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// HyperparameterTuningObjective + +// .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; +inline void HyperparameterTuningObjective::clear_objective_type() { + objective_type_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::objective_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType >(objective_type_); +} +inline void HyperparameterTuningObjective::set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType value) { + + objective_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type) +} + +// string metric_name = 2; +inline void HyperparameterTuningObjective::clear_metric_name() { + metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& HyperparameterTuningObjective::metric_name() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) + return metric_name_.GetNoArena(); +} +inline void HyperparameterTuningObjective::set_metric_name(const ::std::string& value) { + + metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} +#if LANG_CXX11 +inline void HyperparameterTuningObjective::set_metric_name(::std::string&& value) { + + metric_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} +#endif +inline void HyperparameterTuningObjective::set_metric_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} +inline void HyperparameterTuningObjective::set_metric_name(const char* value, size_t size) { + + metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} +inline ::std::string* HyperparameterTuningObjective::mutable_metric_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) + return metric_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* HyperparameterTuningObjective::release_metric_name() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) + + return metric_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void HyperparameterTuningObjective::set_allocated_metric_name(::std::string* metric_name) { + if (metric_name != nullptr) { + + } else { + + } + metric_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metric_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} + +// ------------------------------------------------------------------- + +// HPOJob + +// .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; +inline bool HPOJob::has_training_job() const { + return this != internal_default_instance() && training_job_ != nullptr; +} +inline const ::flyteidl::plugins::sagemaker::TrainingJob& HPOJob::training_job() const { + const ::flyteidl::plugins::sagemaker::TrainingJob* p = training_job_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.training_job) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::release_training_job() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.training_job) + + ::flyteidl::plugins::sagemaker::TrainingJob* temp = training_job_; + training_job_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::mutable_training_job() { + + if (training_job_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(GetArenaNoVirtual()); + training_job_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.training_job) + return training_job_; +} +inline void HPOJob::set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(training_job_); + } + if (training_job) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + training_job = ::google::protobuf::internal::GetOwnedMessage( + message_arena, training_job, submessage_arena); + } + + } else { + + } + training_job_ = training_job; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.training_job) +} + +// int64 max_number_of_training_jobs = 2; +inline void HPOJob::clear_max_number_of_training_jobs() { + max_number_of_training_jobs_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 HPOJob::max_number_of_training_jobs() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs) + return max_number_of_training_jobs_; +} +inline void HPOJob::set_max_number_of_training_jobs(::google::protobuf::int64 value) { + + max_number_of_training_jobs_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs) +} + +// int64 max_parallel_training_jobs = 3; +inline void HPOJob::clear_max_parallel_training_jobs() { + max_parallel_training_jobs_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 HPOJob::max_parallel_training_jobs() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs) + return max_parallel_training_jobs_; +} +inline void HPOJob::set_max_parallel_training_jobs(::google::protobuf::int64 value) { + + max_parallel_training_jobs_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs) +} + +// ------------------------------------------------------------------- + +// HPOJobConfig + +// .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; +inline bool HPOJobConfig::has_hyperparameter_ranges() const { + return this != internal_default_instance() && hyperparameter_ranges_ != nullptr; +} +inline const ::flyteidl::plugins::sagemaker::ParameterRanges& HPOJobConfig::hyperparameter_ranges() const { + const ::flyteidl::plugins::sagemaker::ParameterRanges* p = hyperparameter_ranges_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::ParameterRanges* HPOJobConfig::release_hyperparameter_ranges() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) + + ::flyteidl::plugins::sagemaker::ParameterRanges* temp = hyperparameter_ranges_; + hyperparameter_ranges_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::ParameterRanges* HPOJobConfig::mutable_hyperparameter_ranges() { + + if (hyperparameter_ranges_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(GetArenaNoVirtual()); + hyperparameter_ranges_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) + return hyperparameter_ranges_; +} +inline void HPOJobConfig::set_allocated_hyperparameter_ranges(::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(hyperparameter_ranges_); + } + if (hyperparameter_ranges) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + hyperparameter_ranges = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hyperparameter_ranges, submessage_arena); + } + + } else { + + } + hyperparameter_ranges_ = hyperparameter_ranges; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) +} + +// .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; +inline void HPOJobConfig::clear_tuning_strategy() { + tuning_strategy_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::tuning_strategy() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy) + return static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy >(tuning_strategy_); +} +inline void HPOJobConfig::set_tuning_strategy(::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy value) { + + tuning_strategy_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy) +} + +// .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; +inline bool HPOJobConfig::has_tuning_objective() const { + return this != internal_default_instance() && tuning_objective_ != nullptr; +} +inline void HPOJobConfig::clear_tuning_objective() { + if (GetArenaNoVirtual() == nullptr && tuning_objective_ != nullptr) { + delete tuning_objective_; + } + tuning_objective_ = nullptr; +} +inline const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& HPOJobConfig::tuning_objective() const { + const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* p = tuning_objective_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HPOJobConfig::release_tuning_objective() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) + + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* temp = tuning_objective_; + tuning_objective_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HPOJobConfig::mutable_tuning_objective() { + + if (tuning_objective_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(GetArenaNoVirtual()); + tuning_objective_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) + return tuning_objective_; +} +inline void HPOJobConfig::set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete tuning_objective_; + } + if (tuning_objective) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + tuning_objective = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tuning_objective, submessage_arena); + } + + } else { + + } + tuning_objective_ = tuning_objective; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) +} + +// .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; +inline void HPOJobConfig::clear_training_job_early_stopping_type() { + training_job_early_stopping_type_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::training_job_early_stopping_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type) + return static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType >(training_job_early_stopping_type_); +} +inline void HPOJobConfig::set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType value) { + + training_job_early_stopping_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType>() { + return ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy>() { + return ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType>() { + return ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc new file mode 100644 index 000000000..b39d9f1f5 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc @@ -0,0 +1,26 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/parameterranges.proto + +#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" +#include "flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace flyteidl +} // namespace plugins +} // namespace sagemaker + diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h new file mode 100644 index 000000000..e7cdeb407 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h @@ -0,0 +1,49 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/parameterranges.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto__INCLUDED + +#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc new file mode 100644 index 000000000..fd0c353da --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc @@ -0,0 +1,2212 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/parameterranges.proto + +#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class ContinuousParameterRangeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ContinuousParameterRange_default_instance_; +class IntegerParameterRangeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _IntegerParameterRange_default_instance_; +class CategoricalParameterRangeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CategoricalParameterRange_default_instance_; +class ParameterRangeOneOfDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range_; + const ::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range_; + const ::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range_; +} _ParameterRangeOneOf_default_instance_; +class ParameterRanges_ParameterRangeMapEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_; +class ParameterRangesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ParameterRanges_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ContinuousParameterRange(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::ContinuousParameterRange::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, {}}; + +static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::IntegerParameterRange(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::IntegerParameterRange::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, {}}; + +static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::CategoricalParameterRange(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::CategoricalParameterRange::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, {}}; + +static void InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ParameterRangeOneOf(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::ParameterRangeOneOf::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, { + &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base, + &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base, + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base,}}; + +static void InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse(); + } + ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, { + &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base,}}; + +static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ParameterRanges(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::ParameterRanges::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, { + &scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[6]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, max_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, min_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, scaling_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, max_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, min_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, scaling_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, continuous_parameter_range_), + offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, integer_parameter_range_), + offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, categorical_parameter_range_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, parameter_range_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, parameter_range_map_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::sagemaker::ContinuousParameterRange)}, + { 8, -1, sizeof(::flyteidl::plugins::sagemaker::IntegerParameterRange)}, + { 16, -1, sizeof(::flyteidl::plugins::sagemaker::CategoricalParameterRange)}, + { 22, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRangeOneOf)}, + { 31, 38, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse)}, + { 40, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, "flyteidl/plugins/sagemaker/parameterranges.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[] = + "\n0flyteidl/plugins/sagemaker/parameterra" + "nges.proto\022\032flyteidl.plugins.sagemaker\"\215" + "\001\n\030ContinuousParameterRange\022\021\n\tmax_value" + "\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_typ" + "e\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hyp" + "erparameterScalingType\"\212\001\n\025IntegerParame" + "terRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_value" + "\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl." + "plugins.sagemaker.HyperparameterScalingT" + "ype\"+\n\031CategoricalParameterRange\022\016\n\006valu" + "es\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032cont" + "inuous_parameter_range\030\001 \001(\01324.flyteidl." + "plugins.sagemaker.ContinuousParameterRan" + "geH\000\022T\n\027integer_parameter_range\030\002 \001(\01321." + "flyteidl.plugins.sagemaker.IntegerParame" + "terRangeH\000\022\\\n\033categorical_parameter_rang" + "e\030\003 \001(\01325.flyteidl.plugins.sagemaker.Cat" + "egoricalParameterRangeH\000B\026\n\024parameter_ra" + "nge_type\"\335\001\n\017ParameterRanges\022_\n\023paramete" + "r_range_map\030\001 \003(\0132B.flyteidl.plugins.sag" + "emaker.ParameterRanges.ParameterRangeMap" + "Entry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001" + " \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins.s" + "agemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hype" + "rparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEA" + "R\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHM" + "IC\020\003B5Z3github.com/lyft/flyteidl/gen/pb-" + "go/flyteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, + "flyteidl/plugins/sagemaker/parameterranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, 1107, +}; + +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[0]; +} +bool HyperparameterScalingType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + + +// =================================================================== + +void ContinuousParameterRange::InitAsDefaultInstance() { +} +class ContinuousParameterRange::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ContinuousParameterRange::kMaxValueFieldNumber; +const int ContinuousParameterRange::kMinValueFieldNumber; +const int ContinuousParameterRange::kScalingTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ContinuousParameterRange::ContinuousParameterRange() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) +} +ContinuousParameterRange::ContinuousParameterRange(const ContinuousParameterRange& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&max_value_, &from.max_value_, + static_cast(reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) +} + +void ContinuousParameterRange::SharedCtor() { + ::memset(&max_value_, 0, static_cast( + reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); +} + +ContinuousParameterRange::~ContinuousParameterRange() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) + SharedDtor(); +} + +void ContinuousParameterRange::SharedDtor() { +} + +void ContinuousParameterRange::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ContinuousParameterRange& ContinuousParameterRange::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + return *internal_default_instance(); +} + + +void ContinuousParameterRange::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&max_value_, 0, static_cast( + reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ContinuousParameterRange::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // double max_value = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 9) goto handle_unusual; + msg->set_max_value(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(double); + break; + } + // double min_value = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 17) goto handle_unusual; + msg->set_min_value(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(double); + break; + } + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_scaling_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ContinuousParameterRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // double max_value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (9 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + input, &max_value_))); + } else { + goto handle_unusual; + } + break; + } + + // double min_value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (17 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + input, &min_value_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_scaling_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ContinuousParameterRange) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ContinuousParameterRange) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ContinuousParameterRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // double max_value = 1; + if (this->max_value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->max_value(), output); + } + + // double min_value = 2; + if (this->min_value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->min_value(), output); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + if (this->scaling_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->scaling_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ContinuousParameterRange) +} + +::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // double max_value = 1; + if (this->max_value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->max_value(), target); + } + + // double min_value = 2; + if (this->min_value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->min_value(), target); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + if (this->scaling_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->scaling_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ContinuousParameterRange) + return target; +} + +size_t ContinuousParameterRange::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double max_value = 1; + if (this->max_value() != 0) { + total_size += 1 + 8; + } + + // double min_value = 2; + if (this->min_value() != 0) { + total_size += 1 + 8; + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + if (this->scaling_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scaling_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ContinuousParameterRange::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + GOOGLE_DCHECK_NE(&from, this); + const ContinuousParameterRange* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ContinuousParameterRange) + MergeFrom(*source); + } +} + +void ContinuousParameterRange::MergeFrom(const ContinuousParameterRange& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.max_value() != 0) { + set_max_value(from.max_value()); + } + if (from.min_value() != 0) { + set_min_value(from.min_value()); + } + if (from.scaling_type() != 0) { + set_scaling_type(from.scaling_type()); + } +} + +void ContinuousParameterRange::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ContinuousParameterRange::CopyFrom(const ContinuousParameterRange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ContinuousParameterRange::IsInitialized() const { + return true; +} + +void ContinuousParameterRange::Swap(ContinuousParameterRange* other) { + if (other == this) return; + InternalSwap(other); +} +void ContinuousParameterRange::InternalSwap(ContinuousParameterRange* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(max_value_, other->max_value_); + swap(min_value_, other->min_value_); + swap(scaling_type_, other->scaling_type_); +} + +::google::protobuf::Metadata ContinuousParameterRange::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void IntegerParameterRange::InitAsDefaultInstance() { +} +class IntegerParameterRange::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int IntegerParameterRange::kMaxValueFieldNumber; +const int IntegerParameterRange::kMinValueFieldNumber; +const int IntegerParameterRange::kScalingTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +IntegerParameterRange::IntegerParameterRange() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.IntegerParameterRange) +} +IntegerParameterRange::IntegerParameterRange(const IntegerParameterRange& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&max_value_, &from.max_value_, + static_cast(reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.IntegerParameterRange) +} + +void IntegerParameterRange::SharedCtor() { + ::memset(&max_value_, 0, static_cast( + reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); +} + +IntegerParameterRange::~IntegerParameterRange() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.IntegerParameterRange) + SharedDtor(); +} + +void IntegerParameterRange::SharedDtor() { +} + +void IntegerParameterRange::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IntegerParameterRange& IntegerParameterRange::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + return *internal_default_instance(); +} + + +void IntegerParameterRange::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&max_value_, 0, static_cast( + reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IntegerParameterRange::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int64 max_value = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_max_value(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 min_value = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_min_value(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_scaling_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IntegerParameterRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 max_value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &max_value_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 min_value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &min_value_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_scaling_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.IntegerParameterRange) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.IntegerParameterRange) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IntegerParameterRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 max_value = 1; + if (this->max_value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->max_value(), output); + } + + // int64 min_value = 2; + if (this->min_value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->min_value(), output); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + if (this->scaling_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->scaling_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.IntegerParameterRange) +} + +::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 max_value = 1; + if (this->max_value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->max_value(), target); + } + + // int64 min_value = 2; + if (this->min_value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->min_value(), target); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + if (this->scaling_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->scaling_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.IntegerParameterRange) + return target; +} + +size_t IntegerParameterRange::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 max_value = 1; + if (this->max_value() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max_value()); + } + + // int64 min_value = 2; + if (this->min_value() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->min_value()); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + if (this->scaling_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scaling_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IntegerParameterRange::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + GOOGLE_DCHECK_NE(&from, this); + const IntegerParameterRange* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.IntegerParameterRange) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.IntegerParameterRange) + MergeFrom(*source); + } +} + +void IntegerParameterRange::MergeFrom(const IntegerParameterRange& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.max_value() != 0) { + set_max_value(from.max_value()); + } + if (from.min_value() != 0) { + set_min_value(from.min_value()); + } + if (from.scaling_type() != 0) { + set_scaling_type(from.scaling_type()); + } +} + +void IntegerParameterRange::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IntegerParameterRange::CopyFrom(const IntegerParameterRange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IntegerParameterRange::IsInitialized() const { + return true; +} + +void IntegerParameterRange::Swap(IntegerParameterRange* other) { + if (other == this) return; + InternalSwap(other); +} +void IntegerParameterRange::InternalSwap(IntegerParameterRange* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(max_value_, other->max_value_); + swap(min_value_, other->min_value_); + swap(scaling_type_, other->scaling_type_); +} + +::google::protobuf::Metadata IntegerParameterRange::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CategoricalParameterRange::InitAsDefaultInstance() { +} +class CategoricalParameterRange::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CategoricalParameterRange::kValuesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CategoricalParameterRange::CategoricalParameterRange() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) +} +CategoricalParameterRange::CategoricalParameterRange(const CategoricalParameterRange& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + values_(from.values_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) +} + +void CategoricalParameterRange::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); +} + +CategoricalParameterRange::~CategoricalParameterRange() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) + SharedDtor(); +} + +void CategoricalParameterRange::SharedDtor() { +} + +void CategoricalParameterRange::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CategoricalParameterRange& CategoricalParameterRange::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + return *internal_default_instance(); +} + + +void CategoricalParameterRange::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + values_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CategoricalParameterRange::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string values = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.CategoricalParameterRange.values"); + object = msg->add_values(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CategoricalParameterRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string values = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_values())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(this->values_size() - 1).data(), + static_cast(this->values(this->values_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.CategoricalParameterRange.values")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.CategoricalParameterRange) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.CategoricalParameterRange) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CategoricalParameterRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string values = 1; + for (int i = 0, n = this->values_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(i).data(), static_cast(this->values(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.CategoricalParameterRange.values"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->values(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.CategoricalParameterRange) +} + +::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string values = 1; + for (int i = 0, n = this->values_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(i).data(), static_cast(this->values(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.CategoricalParameterRange.values"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->values(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.CategoricalParameterRange) + return target; +} + +size_t CategoricalParameterRange::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string values = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->values_size()); + for (int i = 0, n = this->values_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->values(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CategoricalParameterRange::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + GOOGLE_DCHECK_NE(&from, this); + const CategoricalParameterRange* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.CategoricalParameterRange) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.CategoricalParameterRange) + MergeFrom(*source); + } +} + +void CategoricalParameterRange::MergeFrom(const CategoricalParameterRange& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + values_.MergeFrom(from.values_); +} + +void CategoricalParameterRange::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CategoricalParameterRange::CopyFrom(const CategoricalParameterRange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CategoricalParameterRange::IsInitialized() const { + return true; +} + +void CategoricalParameterRange::Swap(CategoricalParameterRange* other) { + if (other == this) return; + InternalSwap(other); +} +void CategoricalParameterRange::InternalSwap(CategoricalParameterRange* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + values_.InternalSwap(CastToBase(&other->values_)); +} + +::google::protobuf::Metadata CategoricalParameterRange::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ParameterRangeOneOf::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.continuous_parameter_range_ = const_cast< ::flyteidl::plugins::sagemaker::ContinuousParameterRange*>( + ::flyteidl::plugins::sagemaker::ContinuousParameterRange::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.integer_parameter_range_ = const_cast< ::flyteidl::plugins::sagemaker::IntegerParameterRange*>( + ::flyteidl::plugins::sagemaker::IntegerParameterRange::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.categorical_parameter_range_ = const_cast< ::flyteidl::plugins::sagemaker::CategoricalParameterRange*>( + ::flyteidl::plugins::sagemaker::CategoricalParameterRange::internal_default_instance()); +} +class ParameterRangeOneOf::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuous_parameter_range(const ParameterRangeOneOf* msg); + static const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integer_parameter_range(const ParameterRangeOneOf* msg); + static const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categorical_parameter_range(const ParameterRangeOneOf* msg); +}; + +const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& +ParameterRangeOneOf::HasBitSetters::continuous_parameter_range(const ParameterRangeOneOf* msg) { + return *msg->parameter_range_type_.continuous_parameter_range_; +} +const ::flyteidl::plugins::sagemaker::IntegerParameterRange& +ParameterRangeOneOf::HasBitSetters::integer_parameter_range(const ParameterRangeOneOf* msg) { + return *msg->parameter_range_type_.integer_parameter_range_; +} +const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& +ParameterRangeOneOf::HasBitSetters::categorical_parameter_range(const ParameterRangeOneOf* msg) { + return *msg->parameter_range_type_.categorical_parameter_range_; +} +void ParameterRangeOneOf::set_allocated_continuous_parameter_range(::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_parameter_range_type(); + if (continuous_parameter_range) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + continuous_parameter_range = ::google::protobuf::internal::GetOwnedMessage( + message_arena, continuous_parameter_range, submessage_arena); + } + set_has_continuous_parameter_range(); + parameter_range_type_.continuous_parameter_range_ = continuous_parameter_range; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) +} +void ParameterRangeOneOf::set_allocated_integer_parameter_range(::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_parameter_range_type(); + if (integer_parameter_range) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + integer_parameter_range = ::google::protobuf::internal::GetOwnedMessage( + message_arena, integer_parameter_range, submessage_arena); + } + set_has_integer_parameter_range(); + parameter_range_type_.integer_parameter_range_ = integer_parameter_range; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) +} +void ParameterRangeOneOf::set_allocated_categorical_parameter_range(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_parameter_range_type(); + if (categorical_parameter_range) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + categorical_parameter_range = ::google::protobuf::internal::GetOwnedMessage( + message_arena, categorical_parameter_range, submessage_arena); + } + set_has_categorical_parameter_range(); + parameter_range_type_.categorical_parameter_range_ = categorical_parameter_range; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParameterRangeOneOf::kContinuousParameterRangeFieldNumber; +const int ParameterRangeOneOf::kIntegerParameterRangeFieldNumber; +const int ParameterRangeOneOf::kCategoricalParameterRangeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParameterRangeOneOf::ParameterRangeOneOf() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ParameterRangeOneOf) +} +ParameterRangeOneOf::ParameterRangeOneOf(const ParameterRangeOneOf& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_parameter_range_type(); + switch (from.parameter_range_type_case()) { + case kContinuousParameterRange: { + mutable_continuous_parameter_range()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuous_parameter_range()); + break; + } + case kIntegerParameterRange: { + mutable_integer_parameter_range()->::flyteidl::plugins::sagemaker::IntegerParameterRange::MergeFrom(from.integer_parameter_range()); + break; + } + case kCategoricalParameterRange: { + mutable_categorical_parameter_range()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categorical_parameter_range()); + break; + } + case PARAMETER_RANGE_TYPE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ParameterRangeOneOf) +} + +void ParameterRangeOneOf::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + clear_has_parameter_range_type(); +} + +ParameterRangeOneOf::~ParameterRangeOneOf() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + SharedDtor(); +} + +void ParameterRangeOneOf::SharedDtor() { + if (has_parameter_range_type()) { + clear_parameter_range_type(); + } +} + +void ParameterRangeOneOf::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ParameterRangeOneOf& ParameterRangeOneOf::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + return *internal_default_instance(); +} + + +void ParameterRangeOneOf::clear_parameter_range_type() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + switch (parameter_range_type_case()) { + case kContinuousParameterRange: { + delete parameter_range_type_.continuous_parameter_range_; + break; + } + case kIntegerParameterRange: { + delete parameter_range_type_.integer_parameter_range_; + break; + } + case kCategoricalParameterRange: { + delete parameter_range_type_.categorical_parameter_range_; + break; + } + case PARAMETER_RANGE_TYPE_NOT_SET: { + break; + } + } + _oneof_case_[0] = PARAMETER_RANGE_TYPE_NOT_SET; +} + + +void ParameterRangeOneOf::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_parameter_range_type(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ParameterRangeOneOf::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::ContinuousParameterRange::_InternalParse; + object = msg->mutable_continuous_parameter_range(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::IntegerParameterRange::_InternalParse; + object = msg->mutable_integer_parameter_range(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::CategoricalParameterRange::_InternalParse; + object = msg->mutable_categorical_parameter_range(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParameterRangeOneOf::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_continuous_parameter_range())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_integer_parameter_range())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_categorical_parameter_range())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ParameterRangeOneOf::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + if (has_continuous_parameter_range()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::continuous_parameter_range(this), output); + } + + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + if (has_integer_parameter_range()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::integer_parameter_range(this), output); + } + + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + if (has_categorical_parameter_range()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::categorical_parameter_range(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ParameterRangeOneOf) +} + +::google::protobuf::uint8* ParameterRangeOneOf::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + if (has_continuous_parameter_range()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::continuous_parameter_range(this), target); + } + + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + if (has_integer_parameter_range()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::integer_parameter_range(this), target); + } + + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + if (has_categorical_parameter_range()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::categorical_parameter_range(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + return target; +} + +size_t ParameterRangeOneOf::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (parameter_range_type_case()) { + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + case kContinuousParameterRange: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *parameter_range_type_.continuous_parameter_range_); + break; + } + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + case kIntegerParameterRange: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *parameter_range_type_.integer_parameter_range_); + break; + } + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + case kCategoricalParameterRange: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *parameter_range_type_.categorical_parameter_range_); + break; + } + case PARAMETER_RANGE_TYPE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ParameterRangeOneOf::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + GOOGLE_DCHECK_NE(&from, this); + const ParameterRangeOneOf* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + MergeFrom(*source); + } +} + +void ParameterRangeOneOf::MergeFrom(const ParameterRangeOneOf& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.parameter_range_type_case()) { + case kContinuousParameterRange: { + mutable_continuous_parameter_range()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuous_parameter_range()); + break; + } + case kIntegerParameterRange: { + mutable_integer_parameter_range()->::flyteidl::plugins::sagemaker::IntegerParameterRange::MergeFrom(from.integer_parameter_range()); + break; + } + case kCategoricalParameterRange: { + mutable_categorical_parameter_range()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categorical_parameter_range()); + break; + } + case PARAMETER_RANGE_TYPE_NOT_SET: { + break; + } + } +} + +void ParameterRangeOneOf::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParameterRangeOneOf::CopyFrom(const ParameterRangeOneOf& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParameterRangeOneOf::IsInitialized() const { + return true; +} + +void ParameterRangeOneOf::Swap(ParameterRangeOneOf* other) { + if (other == this) return; + InternalSwap(other); +} +void ParameterRangeOneOf::InternalSwap(ParameterRangeOneOf* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(parameter_range_type_, other->parameter_range_type_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata ParameterRangeOneOf::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +ParameterRanges_ParameterRangeMapEntry_DoNotUse::ParameterRanges_ParameterRangeMapEntry_DoNotUse() {} +ParameterRanges_ParameterRangeMapEntry_DoNotUse::ParameterRanges_ParameterRangeMapEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom(const ParameterRanges_ParameterRangeMapEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata ParameterRanges_ParameterRangeMapEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[4]; +} +void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParameterRanges_ParameterRangeMapEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + ParameterRanges_ParameterRangeMapEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void ParameterRanges::InitAsDefaultInstance() { +} +class ParameterRanges::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParameterRanges::kParameterRangeMapFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParameterRanges::ParameterRanges() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ParameterRanges) +} +ParameterRanges::ParameterRanges(const ParameterRanges& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + parameter_range_map_.MergeFrom(from.parameter_range_map_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ParameterRanges) +} + +void ParameterRanges::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); +} + +ParameterRanges::~ParameterRanges() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ParameterRanges) + SharedDtor(); +} + +void ParameterRanges::SharedDtor() { +} + +void ParameterRanges::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ParameterRanges& ParameterRanges::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + return *internal_default_instance(); +} + + +void ParameterRanges::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ParameterRanges) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + parameter_range_map_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ParameterRanges::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map parameter_range_map = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->parameter_range_map_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParameterRanges::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ParameterRanges) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map parameter_range_map = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + ParameterRanges_ParameterRangeMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + ParameterRanges_ParameterRangeMapEntry_DoNotUse, + ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf > > parser(¶meter_range_map_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ParameterRanges) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ParameterRanges) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ParameterRanges::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ParameterRanges) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map parameter_range_map = 1; + if (!this->parameter_range_map().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->parameter_range_map().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->parameter_range_map().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(parameter_range_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it) { + entry.reset(parameter_range_map_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ParameterRanges) +} + +::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ParameterRanges) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map parameter_range_map = 1; + if (!this->parameter_range_map().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key"); + } + }; + + if (false && + this->parameter_range_map().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->parameter_range_map().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(parameter_range_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it) { + entry.reset(parameter_range_map_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ParameterRanges) + return target; +} + +size_t ParameterRanges::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ParameterRanges) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map parameter_range_map = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->parameter_range_map_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it) { + entry.reset(parameter_range_map_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ParameterRanges::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ParameterRanges) + GOOGLE_DCHECK_NE(&from, this); + const ParameterRanges* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ParameterRanges) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ParameterRanges) + MergeFrom(*source); + } +} + +void ParameterRanges::MergeFrom(const ParameterRanges& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ParameterRanges) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + parameter_range_map_.MergeFrom(from.parameter_range_map_); +} + +void ParameterRanges::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ParameterRanges) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParameterRanges::CopyFrom(const ParameterRanges& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ParameterRanges) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParameterRanges::IsInitialized() const { + return true; +} + +void ParameterRanges::Swap(ParameterRanges* other) { + if (other == this) return; + InternalSwap(other); +} +void ParameterRanges::InternalSwap(ParameterRanges* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + parameter_range_map_.Swap(&other->parameter_range_map_); +} + +::google::protobuf::Metadata ParameterRanges::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::IntegerParameterRange >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRangeOneOf* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRanges >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRanges >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h new file mode 100644 index 000000000..e4a9a0bac --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h @@ -0,0 +1,1163 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/parameterranges.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[6] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class CategoricalParameterRange; +class CategoricalParameterRangeDefaultTypeInternal; +extern CategoricalParameterRangeDefaultTypeInternal _CategoricalParameterRange_default_instance_; +class ContinuousParameterRange; +class ContinuousParameterRangeDefaultTypeInternal; +extern ContinuousParameterRangeDefaultTypeInternal _ContinuousParameterRange_default_instance_; +class IntegerParameterRange; +class IntegerParameterRangeDefaultTypeInternal; +extern IntegerParameterRangeDefaultTypeInternal _IntegerParameterRange_default_instance_; +class ParameterRangeOneOf; +class ParameterRangeOneOfDefaultTypeInternal; +extern ParameterRangeOneOfDefaultTypeInternal _ParameterRangeOneOf_default_instance_; +class ParameterRanges; +class ParameterRangesDefaultTypeInternal; +extern ParameterRangesDefaultTypeInternal _ParameterRanges_default_instance_; +class ParameterRanges_ParameterRangeMapEntry_DoNotUse; +class ParameterRanges_ParameterRangeMapEntry_DoNotUseDefaultTypeInternal; +extern ParameterRanges_ParameterRangeMapEntry_DoNotUseDefaultTypeInternal _ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::CategoricalParameterRange>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ContinuousParameterRange>(Arena*); +template<> ::flyteidl::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::IntegerParameterRange>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ParameterRangeOneOf* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRangeOneOf>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +enum HyperparameterScalingType { + AUTO = 0, + LINEAR = 1, + LOGARITHMIC = 2, + REVERSELOGARITHMIC = 3, + HyperparameterScalingType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HyperparameterScalingType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HyperparameterScalingType_IsValid(int value); +const HyperparameterScalingType HyperparameterScalingType_MIN = AUTO; +const HyperparameterScalingType HyperparameterScalingType_MAX = REVERSELOGARITHMIC; +const int HyperparameterScalingType_ARRAYSIZE = HyperparameterScalingType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor(); +inline const ::std::string& HyperparameterScalingType_Name(HyperparameterScalingType value) { + return ::google::protobuf::internal::NameOfEnum( + HyperparameterScalingType_descriptor(), value); +} +inline bool HyperparameterScalingType_Parse( + const ::std::string& name, HyperparameterScalingType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HyperparameterScalingType_descriptor(), name, value); +} +// =================================================================== + +class ContinuousParameterRange final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ContinuousParameterRange) */ { + public: + ContinuousParameterRange(); + virtual ~ContinuousParameterRange(); + + ContinuousParameterRange(const ContinuousParameterRange& from); + + inline ContinuousParameterRange& operator=(const ContinuousParameterRange& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ContinuousParameterRange(ContinuousParameterRange&& from) noexcept + : ContinuousParameterRange() { + *this = ::std::move(from); + } + + inline ContinuousParameterRange& operator=(ContinuousParameterRange&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ContinuousParameterRange& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ContinuousParameterRange* internal_default_instance() { + return reinterpret_cast( + &_ContinuousParameterRange_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(ContinuousParameterRange* other); + friend void swap(ContinuousParameterRange& a, ContinuousParameterRange& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ContinuousParameterRange* New() const final { + return CreateMaybeMessage(nullptr); + } + + ContinuousParameterRange* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ContinuousParameterRange& from); + void MergeFrom(const ContinuousParameterRange& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ContinuousParameterRange* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // double max_value = 1; + void clear_max_value(); + static const int kMaxValueFieldNumber = 1; + double max_value() const; + void set_max_value(double value); + + // double min_value = 2; + void clear_min_value(); + static const int kMinValueFieldNumber = 2; + double min_value() const; + void set_min_value(double value); + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + void clear_scaling_type(); + static const int kScalingTypeFieldNumber = 3; + ::flyteidl::plugins::sagemaker::HyperparameterScalingType scaling_type() const; + void set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + double max_value_; + double min_value_; + int scaling_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +}; +// ------------------------------------------------------------------- + +class IntegerParameterRange final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.IntegerParameterRange) */ { + public: + IntegerParameterRange(); + virtual ~IntegerParameterRange(); + + IntegerParameterRange(const IntegerParameterRange& from); + + inline IntegerParameterRange& operator=(const IntegerParameterRange& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + IntegerParameterRange(IntegerParameterRange&& from) noexcept + : IntegerParameterRange() { + *this = ::std::move(from); + } + + inline IntegerParameterRange& operator=(IntegerParameterRange&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const IntegerParameterRange& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IntegerParameterRange* internal_default_instance() { + return reinterpret_cast( + &_IntegerParameterRange_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(IntegerParameterRange* other); + friend void swap(IntegerParameterRange& a, IntegerParameterRange& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline IntegerParameterRange* New() const final { + return CreateMaybeMessage(nullptr); + } + + IntegerParameterRange* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const IntegerParameterRange& from); + void MergeFrom(const IntegerParameterRange& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IntegerParameterRange* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // int64 max_value = 1; + void clear_max_value(); + static const int kMaxValueFieldNumber = 1; + ::google::protobuf::int64 max_value() const; + void set_max_value(::google::protobuf::int64 value); + + // int64 min_value = 2; + void clear_min_value(); + static const int kMinValueFieldNumber = 2; + ::google::protobuf::int64 min_value() const; + void set_min_value(::google::protobuf::int64 value); + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + void clear_scaling_type(); + static const int kScalingTypeFieldNumber = 3; + ::flyteidl::plugins::sagemaker::HyperparameterScalingType scaling_type() const; + void set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int64 max_value_; + ::google::protobuf::int64 min_value_; + int scaling_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +}; +// ------------------------------------------------------------------- + +class CategoricalParameterRange final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.CategoricalParameterRange) */ { + public: + CategoricalParameterRange(); + virtual ~CategoricalParameterRange(); + + CategoricalParameterRange(const CategoricalParameterRange& from); + + inline CategoricalParameterRange& operator=(const CategoricalParameterRange& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CategoricalParameterRange(CategoricalParameterRange&& from) noexcept + : CategoricalParameterRange() { + *this = ::std::move(from); + } + + inline CategoricalParameterRange& operator=(CategoricalParameterRange&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CategoricalParameterRange& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CategoricalParameterRange* internal_default_instance() { + return reinterpret_cast( + &_CategoricalParameterRange_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(CategoricalParameterRange* other); + friend void swap(CategoricalParameterRange& a, CategoricalParameterRange& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CategoricalParameterRange* New() const final { + return CreateMaybeMessage(nullptr); + } + + CategoricalParameterRange* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CategoricalParameterRange& from); + void MergeFrom(const CategoricalParameterRange& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CategoricalParameterRange* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string values = 1; + int values_size() const; + void clear_values(); + static const int kValuesFieldNumber = 1; + const ::std::string& values(int index) const; + ::std::string* mutable_values(int index); + void set_values(int index, const ::std::string& value); + #if LANG_CXX11 + void set_values(int index, ::std::string&& value); + #endif + void set_values(int index, const char* value); + void set_values(int index, const char* value, size_t size); + ::std::string* add_values(); + void add_values(const ::std::string& value); + #if LANG_CXX11 + void add_values(::std::string&& value); + #endif + void add_values(const char* value); + void add_values(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& values() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_values(); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> values_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +}; +// ------------------------------------------------------------------- + +class ParameterRangeOneOf final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ParameterRangeOneOf) */ { + public: + ParameterRangeOneOf(); + virtual ~ParameterRangeOneOf(); + + ParameterRangeOneOf(const ParameterRangeOneOf& from); + + inline ParameterRangeOneOf& operator=(const ParameterRangeOneOf& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ParameterRangeOneOf(ParameterRangeOneOf&& from) noexcept + : ParameterRangeOneOf() { + *this = ::std::move(from); + } + + inline ParameterRangeOneOf& operator=(ParameterRangeOneOf&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ParameterRangeOneOf& default_instance(); + + enum ParameterRangeTypeCase { + kContinuousParameterRange = 1, + kIntegerParameterRange = 2, + kCategoricalParameterRange = 3, + PARAMETER_RANGE_TYPE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParameterRangeOneOf* internal_default_instance() { + return reinterpret_cast( + &_ParameterRangeOneOf_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ParameterRangeOneOf* other); + friend void swap(ParameterRangeOneOf& a, ParameterRangeOneOf& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ParameterRangeOneOf* New() const final { + return CreateMaybeMessage(nullptr); + } + + ParameterRangeOneOf* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ParameterRangeOneOf& from); + void MergeFrom(const ParameterRangeOneOf& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParameterRangeOneOf* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + bool has_continuous_parameter_range() const; + void clear_continuous_parameter_range(); + static const int kContinuousParameterRangeFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuous_parameter_range() const; + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* release_continuous_parameter_range(); + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* mutable_continuous_parameter_range(); + void set_allocated_continuous_parameter_range(::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range); + + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + bool has_integer_parameter_range() const; + void clear_integer_parameter_range(); + static const int kIntegerParameterRangeFieldNumber = 2; + const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integer_parameter_range() const; + ::flyteidl::plugins::sagemaker::IntegerParameterRange* release_integer_parameter_range(); + ::flyteidl::plugins::sagemaker::IntegerParameterRange* mutable_integer_parameter_range(); + void set_allocated_integer_parameter_range(::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range); + + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + bool has_categorical_parameter_range() const; + void clear_categorical_parameter_range(); + static const int kCategoricalParameterRangeFieldNumber = 3; + const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categorical_parameter_range() const; + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* release_categorical_parameter_range(); + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* mutable_categorical_parameter_range(); + void set_allocated_categorical_parameter_range(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range); + + void clear_parameter_range_type(); + ParameterRangeTypeCase parameter_range_type_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + private: + class HasBitSetters; + void set_has_continuous_parameter_range(); + void set_has_integer_parameter_range(); + void set_has_categorical_parameter_range(); + + inline bool has_parameter_range_type() const; + inline void clear_has_parameter_range_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ParameterRangeTypeUnion { + ParameterRangeTypeUnion() {} + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range_; + ::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range_; + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range_; + } parameter_range_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +}; +// ------------------------------------------------------------------- + +class ParameterRanges_ParameterRangeMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + ParameterRanges_ParameterRangeMapEntry_DoNotUse(); + ParameterRanges_ParameterRangeMapEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const ParameterRanges_ParameterRangeMapEntry_DoNotUse& other); + static const ParameterRanges_ParameterRangeMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class ParameterRanges final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ParameterRanges) */ { + public: + ParameterRanges(); + virtual ~ParameterRanges(); + + ParameterRanges(const ParameterRanges& from); + + inline ParameterRanges& operator=(const ParameterRanges& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ParameterRanges(ParameterRanges&& from) noexcept + : ParameterRanges() { + *this = ::std::move(from); + } + + inline ParameterRanges& operator=(ParameterRanges&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ParameterRanges& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParameterRanges* internal_default_instance() { + return reinterpret_cast( + &_ParameterRanges_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(ParameterRanges* other); + friend void swap(ParameterRanges& a, ParameterRanges& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ParameterRanges* New() const final { + return CreateMaybeMessage(nullptr); + } + + ParameterRanges* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ParameterRanges& from); + void MergeFrom(const ParameterRanges& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParameterRanges* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map parameter_range_map = 1; + int parameter_range_map_size() const; + void clear_parameter_range_map(); + static const int kParameterRangeMapFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >& + parameter_range_map() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >* + mutable_parameter_range_map(); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + ParameterRanges_ParameterRangeMapEntry_DoNotUse, + ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > parameter_range_map_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ContinuousParameterRange + +// double max_value = 1; +inline void ContinuousParameterRange::clear_max_value() { + max_value_ = 0; +} +inline double ContinuousParameterRange::max_value() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value) + return max_value_; +} +inline void ContinuousParameterRange::set_max_value(double value) { + + max_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value) +} + +// double min_value = 2; +inline void ContinuousParameterRange::clear_min_value() { + min_value_ = 0; +} +inline double ContinuousParameterRange::min_value() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value) + return min_value_; +} +inline void ContinuousParameterRange::set_min_value(double value) { + + min_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value) +} + +// .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; +inline void ContinuousParameterRange::clear_scaling_type() { + scaling_type_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType ContinuousParameterRange::scaling_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scaling_type_); +} +inline void ContinuousParameterRange::set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { + + scaling_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type) +} + +// ------------------------------------------------------------------- + +// IntegerParameterRange + +// int64 max_value = 1; +inline void IntegerParameterRange::clear_max_value() { + max_value_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 IntegerParameterRange::max_value() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.max_value) + return max_value_; +} +inline void IntegerParameterRange::set_max_value(::google::protobuf::int64 value) { + + max_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.max_value) +} + +// int64 min_value = 2; +inline void IntegerParameterRange::clear_min_value() { + min_value_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 IntegerParameterRange::min_value() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.min_value) + return min_value_; +} +inline void IntegerParameterRange::set_min_value(::google::protobuf::int64 value) { + + min_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.min_value) +} + +// .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; +inline void IntegerParameterRange::clear_scaling_type() { + scaling_type_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType IntegerParameterRange::scaling_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scaling_type_); +} +inline void IntegerParameterRange::set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) { + + scaling_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type) +} + +// ------------------------------------------------------------------- + +// CategoricalParameterRange + +// repeated string values = 1; +inline int CategoricalParameterRange::values_size() const { + return values_.size(); +} +inline void CategoricalParameterRange::clear_values() { + values_.Clear(); +} +inline const ::std::string& CategoricalParameterRange::values(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + return values_.Get(index); +} +inline ::std::string* CategoricalParameterRange::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + return values_.Mutable(index); +} +inline void CategoricalParameterRange::set_values(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + values_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void CategoricalParameterRange::set_values(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + values_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void CategoricalParameterRange::set_values(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) +} +inline void CategoricalParameterRange::set_values(int index, const char* value, size_t size) { + values_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) +} +inline ::std::string* CategoricalParameterRange::add_values() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + return values_.Add(); +} +inline void CategoricalParameterRange::add_values(const ::std::string& value) { + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) +} +#if LANG_CXX11 +inline void CategoricalParameterRange::add_values(::std::string&& value) { + values_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) +} +#endif +inline void CategoricalParameterRange::add_values(const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) +} +inline void CategoricalParameterRange::add_values(const char* value, size_t size) { + values_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +CategoricalParameterRange::values() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + return values_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +CategoricalParameterRange::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + return &values_; +} + +// ------------------------------------------------------------------- + +// ParameterRangeOneOf + +// .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; +inline bool ParameterRangeOneOf::has_continuous_parameter_range() const { + return parameter_range_type_case() == kContinuousParameterRange; +} +inline void ParameterRangeOneOf::set_has_continuous_parameter_range() { + _oneof_case_[0] = kContinuousParameterRange; +} +inline void ParameterRangeOneOf::clear_continuous_parameter_range() { + if (has_continuous_parameter_range()) { + delete parameter_range_type_.continuous_parameter_range_; + clear_has_parameter_range_type(); + } +} +inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::release_continuous_parameter_range() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) + if (has_continuous_parameter_range()) { + clear_has_parameter_range_type(); + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* temp = parameter_range_type_.continuous_parameter_range_; + parameter_range_type_.continuous_parameter_range_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& ParameterRangeOneOf::continuous_parameter_range() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) + return has_continuous_parameter_range() + ? *parameter_range_type_.continuous_parameter_range_ + : *reinterpret_cast< ::flyteidl::plugins::sagemaker::ContinuousParameterRange*>(&::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::mutable_continuous_parameter_range() { + if (!has_continuous_parameter_range()) { + clear_parameter_range_type(); + set_has_continuous_parameter_range(); + parameter_range_type_.continuous_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) + return parameter_range_type_.continuous_parameter_range_; +} + +// .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; +inline bool ParameterRangeOneOf::has_integer_parameter_range() const { + return parameter_range_type_case() == kIntegerParameterRange; +} +inline void ParameterRangeOneOf::set_has_integer_parameter_range() { + _oneof_case_[0] = kIntegerParameterRange; +} +inline void ParameterRangeOneOf::clear_integer_parameter_range() { + if (has_integer_parameter_range()) { + delete parameter_range_type_.integer_parameter_range_; + clear_has_parameter_range_type(); + } +} +inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::release_integer_parameter_range() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) + if (has_integer_parameter_range()) { + clear_has_parameter_range_type(); + ::flyteidl::plugins::sagemaker::IntegerParameterRange* temp = parameter_range_type_.integer_parameter_range_; + parameter_range_type_.integer_parameter_range_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::plugins::sagemaker::IntegerParameterRange& ParameterRangeOneOf::integer_parameter_range() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) + return has_integer_parameter_range() + ? *parameter_range_type_.integer_parameter_range_ + : *reinterpret_cast< ::flyteidl::plugins::sagemaker::IntegerParameterRange*>(&::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::mutable_integer_parameter_range() { + if (!has_integer_parameter_range()) { + clear_parameter_range_type(); + set_has_integer_parameter_range(); + parameter_range_type_.integer_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) + return parameter_range_type_.integer_parameter_range_; +} + +// .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; +inline bool ParameterRangeOneOf::has_categorical_parameter_range() const { + return parameter_range_type_case() == kCategoricalParameterRange; +} +inline void ParameterRangeOneOf::set_has_categorical_parameter_range() { + _oneof_case_[0] = kCategoricalParameterRange; +} +inline void ParameterRangeOneOf::clear_categorical_parameter_range() { + if (has_categorical_parameter_range()) { + delete parameter_range_type_.categorical_parameter_range_; + clear_has_parameter_range_type(); + } +} +inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::release_categorical_parameter_range() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) + if (has_categorical_parameter_range()) { + clear_has_parameter_range_type(); + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* temp = parameter_range_type_.categorical_parameter_range_; + parameter_range_type_.categorical_parameter_range_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& ParameterRangeOneOf::categorical_parameter_range() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) + return has_categorical_parameter_range() + ? *parameter_range_type_.categorical_parameter_range_ + : *reinterpret_cast< ::flyteidl::plugins::sagemaker::CategoricalParameterRange*>(&::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::mutable_categorical_parameter_range() { + if (!has_categorical_parameter_range()) { + clear_parameter_range_type(); + set_has_categorical_parameter_range(); + parameter_range_type_.categorical_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) + return parameter_range_type_.categorical_parameter_range_; +} + +inline bool ParameterRangeOneOf::has_parameter_range_type() const { + return parameter_range_type_case() != PARAMETER_RANGE_TYPE_NOT_SET; +} +inline void ParameterRangeOneOf::clear_has_parameter_range_type() { + _oneof_case_[0] = PARAMETER_RANGE_TYPE_NOT_SET; +} +inline ParameterRangeOneOf::ParameterRangeTypeCase ParameterRangeOneOf::parameter_range_type_case() const { + return ParameterRangeOneOf::ParameterRangeTypeCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ParameterRanges + +// map parameter_range_map = 1; +inline int ParameterRanges::parameter_range_map_size() const { + return parameter_range_map_.size(); +} +inline void ParameterRanges::clear_parameter_range_map() { + parameter_range_map_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >& +ParameterRanges::parameter_range_map() const { + // @@protoc_insertion_point(field_map:flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map) + return parameter_range_map_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >* +ParameterRanges::mutable_parameter_range_map() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map) + return parameter_range_map_.MutableMap(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterScalingType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterScalingType>() { + return ::flyteidl::plugins::sagemaker::HyperparameterScalingType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc new file mode 100644 index 000000000..48c86fb46 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc @@ -0,0 +1,26 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/trainingjob.proto + +#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" +#include "flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace flyteidl +} // namespace plugins +} // namespace sagemaker + diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h new file mode 100644 index 000000000..b65b8a93d --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h @@ -0,0 +1,49 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/trainingjob.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto__INCLUDED + +#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc new file mode 100644 index 000000000..28518d539 --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc @@ -0,0 +1,2214 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/trainingjob.proto + +#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AlgorithmSpecification_MetricDefinition_default_instance_; +class AlgorithmSpecificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AlgorithmSpecification_default_instance_; +class TrainingJobConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TrainingJobConfig_default_instance_; +class StoppingConditionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _StoppingCondition_default_instance_; +class TrainingJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TrainingJob_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; + +static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmSpecification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::AlgorithmSpecification::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, { + &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base,}}; + +static void InitDefaultsTrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_TrainingJobConfig_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::TrainingJobConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::TrainingJobConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; + +static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::StoppingCondition(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::StoppingCondition::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; + +static void InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::TrainingJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::TrainingJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, { + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base, + &scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[5]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, regex_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, input_mode_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_version_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, metric_definitions_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, instance_count_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, instance_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, volume_size_in_gb_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, max_runtime_in_seconds_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, max_wait_time_in_seconds_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, algorithm_specification_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, training_job_config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, interruptible_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition)}, + { 7, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)}, + { 16, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJobConfig)}, + { 24, -1, sizeof(::flyteidl::plugins::sagemaker::StoppingCondition)}, + { 31, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJob)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJobConfig_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, "flyteidl/plugins/sagemaker/trainingjob.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, 5, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[] = + "\n,flyteidl/plugins/sagemaker/trainingjob" + ".proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026A" + "lgorithmSpecification\0229\n\ninput_mode\030\001 \001(" + "\0162%.flyteidl.plugins.sagemaker.InputMode" + "\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plug" + "ins.sagemaker.AlgorithmName\022\031\n\021algorithm" + "_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 \003" + "(\0132C.flyteidl.plugins.sagemaker.Algorith" + "mSpecification.MetricDefinition\032/\n\020Metri" + "cDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t" + "\"]\n\021TrainingJobConfig\022\026\n\016instance_count\030" + "\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_s" + "ize_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n\026" + "max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wait" + "_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022S" + "\n\027algorithm_specification\030\001 \001(\01322.flytei" + "dl.plugins.sagemaker.AlgorithmSpecificat" + "ion\022J\n\023training_job_config\030\002 \001(\0132-.flyte" + "idl.plugins.sagemaker.TrainingJobConfig\022" + "\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004F" + "ILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUST" + "OM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fly" + "teidl/gen/pb-go/flyteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, + "flyteidl/plugins/sagemaker/trainingjob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, 920, +}; + +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +const ::google::protobuf::EnumDescriptor* InputMode_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[0]; +} +bool InputMode_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* AlgorithmName_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[1]; +} +bool AlgorithmName_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + + +// =================================================================== + +void AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance() { +} +class AlgorithmSpecification_MetricDefinition::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AlgorithmSpecification_MetricDefinition::kNameFieldNumber; +const int AlgorithmSpecification_MetricDefinition::kRegexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) +} +AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.regex().size() > 0) { + regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) +} + +void AlgorithmSpecification_MetricDefinition::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +AlgorithmSpecification_MetricDefinition::~AlgorithmSpecification_MetricDefinition() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + SharedDtor(); +} + +void AlgorithmSpecification_MetricDefinition::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void AlgorithmSpecification_MetricDefinition::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AlgorithmSpecification_MetricDefinition& AlgorithmSpecification_MetricDefinition::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + return *internal_default_instance(); +} + + +void AlgorithmSpecification_MetricDefinition::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string regex = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex"); + object = msg->mutable_regex(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name")); + } else { + goto handle_unusual; + } + break; + } + + // string regex = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_regex())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // string regex = 2; + if (this->regex().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->regex(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) +} + +::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // string regex = 2; + if (this->regex().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->regex(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + return target; +} + +size_t AlgorithmSpecification_MetricDefinition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string regex = 2; + if (this->regex().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->regex()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AlgorithmSpecification_MetricDefinition::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + GOOGLE_DCHECK_NE(&from, this); + const AlgorithmSpecification_MetricDefinition* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + MergeFrom(*source); + } +} + +void AlgorithmSpecification_MetricDefinition::MergeFrom(const AlgorithmSpecification_MetricDefinition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.regex().size() > 0) { + + regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); + } +} + +void AlgorithmSpecification_MetricDefinition::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AlgorithmSpecification_MetricDefinition::CopyFrom(const AlgorithmSpecification_MetricDefinition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AlgorithmSpecification_MetricDefinition::IsInitialized() const { + return true; +} + +void AlgorithmSpecification_MetricDefinition::Swap(AlgorithmSpecification_MetricDefinition* other) { + if (other == this) return; + InternalSwap(other); +} +void AlgorithmSpecification_MetricDefinition::InternalSwap(AlgorithmSpecification_MetricDefinition* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + regex_.Swap(&other->regex_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata AlgorithmSpecification_MetricDefinition::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void AlgorithmSpecification::InitAsDefaultInstance() { +} +class AlgorithmSpecification::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AlgorithmSpecification::kInputModeFieldNumber; +const int AlgorithmSpecification::kAlgorithmNameFieldNumber; +const int AlgorithmSpecification::kAlgorithmVersionFieldNumber; +const int AlgorithmSpecification::kMetricDefinitionsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AlgorithmSpecification::AlgorithmSpecification() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) +} +AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + metric_definitions_(from.metric_definitions_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + algorithm_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.algorithm_version().size() > 0) { + algorithm_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_version_); + } + ::memcpy(&input_mode_, &from.input_mode_, + static_cast(reinterpret_cast(&algorithm_name_) - + reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) +} + +void AlgorithmSpecification::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + algorithm_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&input_mode_, 0, static_cast( + reinterpret_cast(&algorithm_name_) - + reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_)); +} + +AlgorithmSpecification::~AlgorithmSpecification() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) + SharedDtor(); +} + +void AlgorithmSpecification::SharedDtor() { + algorithm_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void AlgorithmSpecification::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AlgorithmSpecification& AlgorithmSpecification::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + return *internal_default_instance(); +} + + +void AlgorithmSpecification::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metric_definitions_.Clear(); + algorithm_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&input_mode_, 0, static_cast( + reinterpret_cast(&algorithm_name_) - + reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AlgorithmSpecification::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_input_mode(static_cast<::flyteidl::plugins::sagemaker::InputMode>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_algorithm_name(static_cast<::flyteidl::plugins::sagemaker::AlgorithmName>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string algorithm_version = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version"); + object = msg->mutable_algorithm_version(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::_InternalParse; + object = msg->add_metric_definitions(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AlgorithmSpecification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_input_mode(static_cast< ::flyteidl::plugins::sagemaker::InputMode >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_algorithm_name(static_cast< ::flyteidl::plugins::sagemaker::AlgorithmName >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string algorithm_version = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_algorithm_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->algorithm_version().data(), static_cast(this->algorithm_version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_metric_definitions())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmSpecification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmSpecification) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AlgorithmSpecification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + if (this->input_mode() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->input_mode(), output); + } + + // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + if (this->algorithm_name() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->algorithm_name(), output); + } + + // string algorithm_version = 3; + if (this->algorithm_version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->algorithm_version().data(), static_cast(this->algorithm_version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->algorithm_version(), output); + } + + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + for (unsigned int i = 0, + n = static_cast(this->metric_definitions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->metric_definitions(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmSpecification) +} + +::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + if (this->input_mode() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->input_mode(), target); + } + + // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + if (this->algorithm_name() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->algorithm_name(), target); + } + + // string algorithm_version = 3; + if (this->algorithm_version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->algorithm_version().data(), static_cast(this->algorithm_version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->algorithm_version(), target); + } + + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + for (unsigned int i = 0, + n = static_cast(this->metric_definitions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->metric_definitions(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmSpecification) + return target; +} + +size_t AlgorithmSpecification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + { + unsigned int count = static_cast(this->metric_definitions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->metric_definitions(static_cast(i))); + } + } + + // string algorithm_version = 3; + if (this->algorithm_version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->algorithm_version()); + } + + // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + if (this->input_mode() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->input_mode()); + } + + // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + if (this->algorithm_name() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->algorithm_name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AlgorithmSpecification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + GOOGLE_DCHECK_NE(&from, this); + const AlgorithmSpecification* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmSpecification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmSpecification) + MergeFrom(*source); + } +} + +void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + metric_definitions_.MergeFrom(from.metric_definitions_); + if (from.algorithm_version().size() > 0) { + + algorithm_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_version_); + } + if (from.input_mode() != 0) { + set_input_mode(from.input_mode()); + } + if (from.algorithm_name() != 0) { + set_algorithm_name(from.algorithm_name()); + } +} + +void AlgorithmSpecification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AlgorithmSpecification::CopyFrom(const AlgorithmSpecification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AlgorithmSpecification::IsInitialized() const { + return true; +} + +void AlgorithmSpecification::Swap(AlgorithmSpecification* other) { + if (other == this) return; + InternalSwap(other); +} +void AlgorithmSpecification::InternalSwap(AlgorithmSpecification* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&metric_definitions_)->InternalSwap(CastToBase(&other->metric_definitions_)); + algorithm_version_.Swap(&other->algorithm_version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(input_mode_, other->input_mode_); + swap(algorithm_name_, other->algorithm_name_); +} + +::google::protobuf::Metadata AlgorithmSpecification::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TrainingJobConfig::InitAsDefaultInstance() { +} +class TrainingJobConfig::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TrainingJobConfig::kInstanceCountFieldNumber; +const int TrainingJobConfig::kInstanceTypeFieldNumber; +const int TrainingJobConfig::kVolumeSizeInGbFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TrainingJobConfig::TrainingJobConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJobConfig) +} +TrainingJobConfig::TrainingJobConfig(const TrainingJobConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + instance_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.instance_type().size() > 0) { + instance_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instance_type_); + } + ::memcpy(&instance_count_, &from.instance_count_, + static_cast(reinterpret_cast(&volume_size_in_gb_) - + reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJobConfig) +} + +void TrainingJobConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + instance_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&instance_count_, 0, static_cast( + reinterpret_cast(&volume_size_in_gb_) - + reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); +} + +TrainingJobConfig::~TrainingJobConfig() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJobConfig) + SharedDtor(); +} + +void TrainingJobConfig::SharedDtor() { + instance_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TrainingJobConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TrainingJobConfig& TrainingJobConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + return *internal_default_instance(); +} + + +void TrainingJobConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJobConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + instance_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&instance_count_, 0, static_cast( + reinterpret_cast(&volume_size_in_gb_) - + reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TrainingJobConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int64 instance_count = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_instance_count(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string instance_type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type"); + object = msg->mutable_instance_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // int64 volume_size_in_gb = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_volume_size_in_gb(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TrainingJobConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJobConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 instance_count = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &instance_count_))); + } else { + goto handle_unusual; + } + break; + } + + // string instance_type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_instance_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->instance_type().data(), static_cast(this->instance_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type")); + } else { + goto handle_unusual; + } + break; + } + + // int64 volume_size_in_gb = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &volume_size_in_gb_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJobConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJobConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TrainingJobConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJobConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 instance_count = 1; + if (this->instance_count() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->instance_count(), output); + } + + // string instance_type = 2; + if (this->instance_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->instance_type().data(), static_cast(this->instance_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->instance_type(), output); + } + + // int64 volume_size_in_gb = 3; + if (this->volume_size_in_gb() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->volume_size_in_gb(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJobConfig) +} + +::google::protobuf::uint8* TrainingJobConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.TrainingJobConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 instance_count = 1; + if (this->instance_count() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->instance_count(), target); + } + + // string instance_type = 2; + if (this->instance_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->instance_type().data(), static_cast(this->instance_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->instance_type(), target); + } + + // int64 volume_size_in_gb = 3; + if (this->volume_size_in_gb() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->volume_size_in_gb(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.TrainingJobConfig) + return target; +} + +size_t TrainingJobConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.TrainingJobConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string instance_type = 2; + if (this->instance_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->instance_type()); + } + + // int64 instance_count = 1; + if (this->instance_count() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->instance_count()); + } + + // int64 volume_size_in_gb = 3; + if (this->volume_size_in_gb() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->volume_size_in_gb()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TrainingJobConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig) + GOOGLE_DCHECK_NE(&from, this); + const TrainingJobConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.TrainingJobConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.TrainingJobConfig) + MergeFrom(*source); + } +} + +void TrainingJobConfig::MergeFrom(const TrainingJobConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.instance_type().size() > 0) { + + instance_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instance_type_); + } + if (from.instance_count() != 0) { + set_instance_count(from.instance_count()); + } + if (from.volume_size_in_gb() != 0) { + set_volume_size_in_gb(from.volume_size_in_gb()); + } +} + +void TrainingJobConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TrainingJobConfig::CopyFrom(const TrainingJobConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TrainingJobConfig::IsInitialized() const { + return true; +} + +void TrainingJobConfig::Swap(TrainingJobConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void TrainingJobConfig::InternalSwap(TrainingJobConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + instance_type_.Swap(&other->instance_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(instance_count_, other->instance_count_); + swap(volume_size_in_gb_, other->volume_size_in_gb_); +} + +::google::protobuf::Metadata TrainingJobConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void StoppingCondition::InitAsDefaultInstance() { +} +class StoppingCondition::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StoppingCondition::kMaxRuntimeInSecondsFieldNumber; +const int StoppingCondition::kMaxWaitTimeInSecondsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StoppingCondition::StoppingCondition() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.StoppingCondition) +} +StoppingCondition::StoppingCondition(const StoppingCondition& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&max_runtime_in_seconds_, &from.max_runtime_in_seconds_, + static_cast(reinterpret_cast(&max_wait_time_in_seconds_) - + reinterpret_cast(&max_runtime_in_seconds_)) + sizeof(max_wait_time_in_seconds_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.StoppingCondition) +} + +void StoppingCondition::SharedCtor() { + ::memset(&max_runtime_in_seconds_, 0, static_cast( + reinterpret_cast(&max_wait_time_in_seconds_) - + reinterpret_cast(&max_runtime_in_seconds_)) + sizeof(max_wait_time_in_seconds_)); +} + +StoppingCondition::~StoppingCondition() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.StoppingCondition) + SharedDtor(); +} + +void StoppingCondition::SharedDtor() { +} + +void StoppingCondition::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StoppingCondition& StoppingCondition::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + return *internal_default_instance(); +} + + +void StoppingCondition::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.StoppingCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&max_runtime_in_seconds_, 0, static_cast( + reinterpret_cast(&max_wait_time_in_seconds_) - + reinterpret_cast(&max_runtime_in_seconds_)) + sizeof(max_wait_time_in_seconds_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* StoppingCondition::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int64 max_runtime_in_seconds = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_max_runtime_in_seconds(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 max_wait_time_in_seconds = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_max_wait_time_in_seconds(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool StoppingCondition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.StoppingCondition) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 max_runtime_in_seconds = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &max_runtime_in_seconds_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 max_wait_time_in_seconds = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &max_wait_time_in_seconds_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.StoppingCondition) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.StoppingCondition) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void StoppingCondition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.StoppingCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 max_runtime_in_seconds = 1; + if (this->max_runtime_in_seconds() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->max_runtime_in_seconds(), output); + } + + // int64 max_wait_time_in_seconds = 2; + if (this->max_wait_time_in_seconds() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max_wait_time_in_seconds(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.StoppingCondition) +} + +::google::protobuf::uint8* StoppingCondition::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.StoppingCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 max_runtime_in_seconds = 1; + if (this->max_runtime_in_seconds() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->max_runtime_in_seconds(), target); + } + + // int64 max_wait_time_in_seconds = 2; + if (this->max_wait_time_in_seconds() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max_wait_time_in_seconds(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.StoppingCondition) + return target; +} + +size_t StoppingCondition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.StoppingCondition) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 max_runtime_in_seconds = 1; + if (this->max_runtime_in_seconds() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max_runtime_in_seconds()); + } + + // int64 max_wait_time_in_seconds = 2; + if (this->max_wait_time_in_seconds() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max_wait_time_in_seconds()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StoppingCondition::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.StoppingCondition) + GOOGLE_DCHECK_NE(&from, this); + const StoppingCondition* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.StoppingCondition) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.StoppingCondition) + MergeFrom(*source); + } +} + +void StoppingCondition::MergeFrom(const StoppingCondition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.StoppingCondition) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.max_runtime_in_seconds() != 0) { + set_max_runtime_in_seconds(from.max_runtime_in_seconds()); + } + if (from.max_wait_time_in_seconds() != 0) { + set_max_wait_time_in_seconds(from.max_wait_time_in_seconds()); + } +} + +void StoppingCondition::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.StoppingCondition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StoppingCondition::CopyFrom(const StoppingCondition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.StoppingCondition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StoppingCondition::IsInitialized() const { + return true; +} + +void StoppingCondition::Swap(StoppingCondition* other) { + if (other == this) return; + InternalSwap(other); +} +void StoppingCondition::InternalSwap(StoppingCondition* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(max_runtime_in_seconds_, other->max_runtime_in_seconds_); + swap(max_wait_time_in_seconds_, other->max_wait_time_in_seconds_); +} + +::google::protobuf::Metadata StoppingCondition::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TrainingJob::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->algorithm_specification_ = const_cast< ::flyteidl::plugins::sagemaker::AlgorithmSpecification*>( + ::flyteidl::plugins::sagemaker::AlgorithmSpecification::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->training_job_config_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJobConfig*>( + ::flyteidl::plugins::sagemaker::TrainingJobConfig::internal_default_instance()); +} +class TrainingJob::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithm_specification(const TrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::TrainingJobConfig& training_job_config(const TrainingJob* msg); +}; + +const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& +TrainingJob::HasBitSetters::algorithm_specification(const TrainingJob* msg) { + return *msg->algorithm_specification_; +} +const ::flyteidl::plugins::sagemaker::TrainingJobConfig& +TrainingJob::HasBitSetters::training_job_config(const TrainingJob* msg) { + return *msg->training_job_config_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TrainingJob::kAlgorithmSpecificationFieldNumber; +const int TrainingJob::kTrainingJobConfigFieldNumber; +const int TrainingJob::kInterruptibleFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TrainingJob::TrainingJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJob) +} +TrainingJob::TrainingJob(const TrainingJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_algorithm_specification()) { + algorithm_specification_ = new ::flyteidl::plugins::sagemaker::AlgorithmSpecification(*from.algorithm_specification_); + } else { + algorithm_specification_ = nullptr; + } + if (from.has_training_job_config()) { + training_job_config_ = new ::flyteidl::plugins::sagemaker::TrainingJobConfig(*from.training_job_config_); + } else { + training_job_config_ = nullptr; + } + interruptible_ = from.interruptible_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJob) +} + +void TrainingJob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::memset(&algorithm_specification_, 0, static_cast( + reinterpret_cast(&interruptible_) - + reinterpret_cast(&algorithm_specification_)) + sizeof(interruptible_)); +} + +TrainingJob::~TrainingJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJob) + SharedDtor(); +} + +void TrainingJob::SharedDtor() { + if (this != internal_default_instance()) delete algorithm_specification_; + if (this != internal_default_instance()) delete training_job_config_; +} + +void TrainingJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TrainingJob& TrainingJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + return *internal_default_instance(); +} + + +void TrainingJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && algorithm_specification_ != nullptr) { + delete algorithm_specification_; + } + algorithm_specification_ = nullptr; + if (GetArenaNoVirtual() == nullptr && training_job_config_ != nullptr) { + delete training_job_config_; + } + training_job_config_ = nullptr; + interruptible_ = false; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TrainingJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification::_InternalParse; + object = msg->mutable_algorithm_specification(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJobConfig::_InternalParse; + object = msg->mutable_training_job_config(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // bool interruptible = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_interruptible(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TrainingJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_algorithm_specification())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_training_job_config())); + } else { + goto handle_unusual; + } + break; + } + + // bool interruptible = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &interruptible_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TrainingJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + if (this->has_algorithm_specification()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::algorithm_specification(this), output); + } + + // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + if (this->has_training_job_config()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::training_job_config(this), output); + } + + // bool interruptible = 4; + if (this->interruptible() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->interruptible(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJob) +} + +::google::protobuf::uint8* TrainingJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.TrainingJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + if (this->has_algorithm_specification()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::algorithm_specification(this), target); + } + + // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + if (this->has_training_job_config()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::training_job_config(this), target); + } + + // bool interruptible = 4; + if (this->interruptible() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->interruptible(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.TrainingJob) + return target; +} + +size_t TrainingJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.TrainingJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + if (this->has_algorithm_specification()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *algorithm_specification_); + } + + // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + if (this->has_training_job_config()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *training_job_config_); + } + + // bool interruptible = 4; + if (this->interruptible() != 0) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TrainingJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.TrainingJob) + GOOGLE_DCHECK_NE(&from, this); + const TrainingJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.TrainingJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.TrainingJob) + MergeFrom(*source); + } +} + +void TrainingJob::MergeFrom(const TrainingJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.TrainingJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_algorithm_specification()) { + mutable_algorithm_specification()->::flyteidl::plugins::sagemaker::AlgorithmSpecification::MergeFrom(from.algorithm_specification()); + } + if (from.has_training_job_config()) { + mutable_training_job_config()->::flyteidl::plugins::sagemaker::TrainingJobConfig::MergeFrom(from.training_job_config()); + } + if (from.interruptible() != 0) { + set_interruptible(from.interruptible()); + } +} + +void TrainingJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.TrainingJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TrainingJob::CopyFrom(const TrainingJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.TrainingJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TrainingJob::IsInitialized() const { + return true; +} + +void TrainingJob::Swap(TrainingJob* other) { + if (other == this) return; + InternalSwap(other); +} +void TrainingJob::InternalSwap(TrainingJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(algorithm_specification_, other->algorithm_specification_); + swap(training_job_config_, other->training_job_config_); + swap(interruptible_, other->interruptible_); +} + +::google::protobuf::Metadata TrainingJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJobConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJobConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJobConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::StoppingCondition >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::StoppingCondition >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJob >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h new file mode 100644 index 000000000..11435a6aa --- /dev/null +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h @@ -0,0 +1,1304 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/trainingjob.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[5] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class AlgorithmSpecification; +class AlgorithmSpecificationDefaultTypeInternal; +extern AlgorithmSpecificationDefaultTypeInternal _AlgorithmSpecification_default_instance_; +class AlgorithmSpecification_MetricDefinition; +class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal; +extern AlgorithmSpecification_MetricDefinitionDefaultTypeInternal _AlgorithmSpecification_MetricDefinition_default_instance_; +class StoppingCondition; +class StoppingConditionDefaultTypeInternal; +extern StoppingConditionDefaultTypeInternal _StoppingCondition_default_instance_; +class TrainingJob; +class TrainingJobDefaultTypeInternal; +extern TrainingJobDefaultTypeInternal _TrainingJob_default_instance_; +class TrainingJobConfig; +class TrainingJobConfigDefaultTypeInternal; +extern TrainingJobConfigDefaultTypeInternal _TrainingJobConfig_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(Arena*); +template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition>(Arena*); +template<> ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::StoppingCondition>(Arena*); +template<> ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(Arena*); +template<> ::flyteidl::plugins::sagemaker::TrainingJobConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobConfig>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +enum InputMode { + FILE = 0, + PIPE = 1, + InputMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + InputMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool InputMode_IsValid(int value); +const InputMode InputMode_MIN = FILE; +const InputMode InputMode_MAX = PIPE; +const int InputMode_ARRAYSIZE = InputMode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* InputMode_descriptor(); +inline const ::std::string& InputMode_Name(InputMode value) { + return ::google::protobuf::internal::NameOfEnum( + InputMode_descriptor(), value); +} +inline bool InputMode_Parse( + const ::std::string& name, InputMode* value) { + return ::google::protobuf::internal::ParseNamedEnum( + InputMode_descriptor(), name, value); +} +enum AlgorithmName { + CUSTOM = 0, + XGBOOST = 1, + AlgorithmName_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + AlgorithmName_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool AlgorithmName_IsValid(int value); +const AlgorithmName AlgorithmName_MIN = CUSTOM; +const AlgorithmName AlgorithmName_MAX = XGBOOST; +const int AlgorithmName_ARRAYSIZE = AlgorithmName_MAX + 1; + +const ::google::protobuf::EnumDescriptor* AlgorithmName_descriptor(); +inline const ::std::string& AlgorithmName_Name(AlgorithmName value) { + return ::google::protobuf::internal::NameOfEnum( + AlgorithmName_descriptor(), value); +} +inline bool AlgorithmName_Parse( + const ::std::string& name, AlgorithmName* value) { + return ::google::protobuf::internal::ParseNamedEnum( + AlgorithmName_descriptor(), name, value); +} +// =================================================================== + +class AlgorithmSpecification_MetricDefinition final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) */ { + public: + AlgorithmSpecification_MetricDefinition(); + virtual ~AlgorithmSpecification_MetricDefinition(); + + AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from); + + inline AlgorithmSpecification_MetricDefinition& operator=(const AlgorithmSpecification_MetricDefinition& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AlgorithmSpecification_MetricDefinition(AlgorithmSpecification_MetricDefinition&& from) noexcept + : AlgorithmSpecification_MetricDefinition() { + *this = ::std::move(from); + } + + inline AlgorithmSpecification_MetricDefinition& operator=(AlgorithmSpecification_MetricDefinition&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AlgorithmSpecification_MetricDefinition& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AlgorithmSpecification_MetricDefinition* internal_default_instance() { + return reinterpret_cast( + &_AlgorithmSpecification_MetricDefinition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(AlgorithmSpecification_MetricDefinition* other); + friend void swap(AlgorithmSpecification_MetricDefinition& a, AlgorithmSpecification_MetricDefinition& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AlgorithmSpecification_MetricDefinition* New() const final { + return CreateMaybeMessage(nullptr); + } + + AlgorithmSpecification_MetricDefinition* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AlgorithmSpecification_MetricDefinition& from); + void MergeFrom(const AlgorithmSpecification_MetricDefinition& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AlgorithmSpecification_MetricDefinition* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string regex = 2; + void clear_regex(); + static const int kRegexFieldNumber = 2; + const ::std::string& regex() const; + void set_regex(const ::std::string& value); + #if LANG_CXX11 + void set_regex(::std::string&& value); + #endif + void set_regex(const char* value); + void set_regex(const char* value, size_t size); + ::std::string* mutable_regex(); + ::std::string* release_regex(); + void set_allocated_regex(::std::string* regex); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr regex_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +}; +// ------------------------------------------------------------------- + +class AlgorithmSpecification final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmSpecification) */ { + public: + AlgorithmSpecification(); + virtual ~AlgorithmSpecification(); + + AlgorithmSpecification(const AlgorithmSpecification& from); + + inline AlgorithmSpecification& operator=(const AlgorithmSpecification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AlgorithmSpecification(AlgorithmSpecification&& from) noexcept + : AlgorithmSpecification() { + *this = ::std::move(from); + } + + inline AlgorithmSpecification& operator=(AlgorithmSpecification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AlgorithmSpecification& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AlgorithmSpecification* internal_default_instance() { + return reinterpret_cast( + &_AlgorithmSpecification_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(AlgorithmSpecification* other); + friend void swap(AlgorithmSpecification& a, AlgorithmSpecification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AlgorithmSpecification* New() const final { + return CreateMaybeMessage(nullptr); + } + + AlgorithmSpecification* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AlgorithmSpecification& from); + void MergeFrom(const AlgorithmSpecification& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AlgorithmSpecification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef AlgorithmSpecification_MetricDefinition MetricDefinition; + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + int metric_definitions_size() const; + void clear_metric_definitions(); + static const int kMetricDefinitionsFieldNumber = 4; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* mutable_metric_definitions(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* + mutable_metric_definitions(); + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& metric_definitions(int index) const; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* add_metric_definitions(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& + metric_definitions() const; + + // string algorithm_version = 3; + void clear_algorithm_version(); + static const int kAlgorithmVersionFieldNumber = 3; + const ::std::string& algorithm_version() const; + void set_algorithm_version(const ::std::string& value); + #if LANG_CXX11 + void set_algorithm_version(::std::string&& value); + #endif + void set_algorithm_version(const char* value); + void set_algorithm_version(const char* value, size_t size); + ::std::string* mutable_algorithm_version(); + ::std::string* release_algorithm_version(); + void set_allocated_algorithm_version(::std::string* algorithm_version); + + // .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + void clear_input_mode(); + static const int kInputModeFieldNumber = 1; + ::flyteidl::plugins::sagemaker::InputMode input_mode() const; + void set_input_mode(::flyteidl::plugins::sagemaker::InputMode value); + + // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + void clear_algorithm_name(); + static const int kAlgorithmNameFieldNumber = 2; + ::flyteidl::plugins::sagemaker::AlgorithmName algorithm_name() const; + void set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition > metric_definitions_; + ::google::protobuf::internal::ArenaStringPtr algorithm_version_; + int input_mode_; + int algorithm_name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +}; +// ------------------------------------------------------------------- + +class TrainingJobConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.TrainingJobConfig) */ { + public: + TrainingJobConfig(); + virtual ~TrainingJobConfig(); + + TrainingJobConfig(const TrainingJobConfig& from); + + inline TrainingJobConfig& operator=(const TrainingJobConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TrainingJobConfig(TrainingJobConfig&& from) noexcept + : TrainingJobConfig() { + *this = ::std::move(from); + } + + inline TrainingJobConfig& operator=(TrainingJobConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TrainingJobConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TrainingJobConfig* internal_default_instance() { + return reinterpret_cast( + &_TrainingJobConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(TrainingJobConfig* other); + friend void swap(TrainingJobConfig& a, TrainingJobConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TrainingJobConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + TrainingJobConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TrainingJobConfig& from); + void MergeFrom(const TrainingJobConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TrainingJobConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string instance_type = 2; + void clear_instance_type(); + static const int kInstanceTypeFieldNumber = 2; + const ::std::string& instance_type() const; + void set_instance_type(const ::std::string& value); + #if LANG_CXX11 + void set_instance_type(::std::string&& value); + #endif + void set_instance_type(const char* value); + void set_instance_type(const char* value, size_t size); + ::std::string* mutable_instance_type(); + ::std::string* release_instance_type(); + void set_allocated_instance_type(::std::string* instance_type); + + // int64 instance_count = 1; + void clear_instance_count(); + static const int kInstanceCountFieldNumber = 1; + ::google::protobuf::int64 instance_count() const; + void set_instance_count(::google::protobuf::int64 value); + + // int64 volume_size_in_gb = 3; + void clear_volume_size_in_gb(); + static const int kVolumeSizeInGbFieldNumber = 3; + ::google::protobuf::int64 volume_size_in_gb() const; + void set_volume_size_in_gb(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr instance_type_; + ::google::protobuf::int64 instance_count_; + ::google::protobuf::int64 volume_size_in_gb_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +}; +// ------------------------------------------------------------------- + +class StoppingCondition final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.StoppingCondition) */ { + public: + StoppingCondition(); + virtual ~StoppingCondition(); + + StoppingCondition(const StoppingCondition& from); + + inline StoppingCondition& operator=(const StoppingCondition& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StoppingCondition(StoppingCondition&& from) noexcept + : StoppingCondition() { + *this = ::std::move(from); + } + + inline StoppingCondition& operator=(StoppingCondition&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const StoppingCondition& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StoppingCondition* internal_default_instance() { + return reinterpret_cast( + &_StoppingCondition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(StoppingCondition* other); + friend void swap(StoppingCondition& a, StoppingCondition& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StoppingCondition* New() const final { + return CreateMaybeMessage(nullptr); + } + + StoppingCondition* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StoppingCondition& from); + void MergeFrom(const StoppingCondition& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StoppingCondition* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // int64 max_runtime_in_seconds = 1; + void clear_max_runtime_in_seconds(); + static const int kMaxRuntimeInSecondsFieldNumber = 1; + ::google::protobuf::int64 max_runtime_in_seconds() const; + void set_max_runtime_in_seconds(::google::protobuf::int64 value); + + // int64 max_wait_time_in_seconds = 2; + void clear_max_wait_time_in_seconds(); + static const int kMaxWaitTimeInSecondsFieldNumber = 2; + ::google::protobuf::int64 max_wait_time_in_seconds() const; + void set_max_wait_time_in_seconds(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int64 max_runtime_in_seconds_; + ::google::protobuf::int64 max_wait_time_in_seconds_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +}; +// ------------------------------------------------------------------- + +class TrainingJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.TrainingJob) */ { + public: + TrainingJob(); + virtual ~TrainingJob(); + + TrainingJob(const TrainingJob& from); + + inline TrainingJob& operator=(const TrainingJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TrainingJob(TrainingJob&& from) noexcept + : TrainingJob() { + *this = ::std::move(from); + } + + inline TrainingJob& operator=(TrainingJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TrainingJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TrainingJob* internal_default_instance() { + return reinterpret_cast( + &_TrainingJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(TrainingJob* other); + friend void swap(TrainingJob& a, TrainingJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TrainingJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + TrainingJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TrainingJob& from); + void MergeFrom(const TrainingJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TrainingJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + bool has_algorithm_specification() const; + void clear_algorithm_specification(); + static const int kAlgorithmSpecificationFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithm_specification() const; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* release_algorithm_specification(); + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* mutable_algorithm_specification(); + void set_allocated_algorithm_specification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification); + + // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + bool has_training_job_config() const; + void clear_training_job_config(); + static const int kTrainingJobConfigFieldNumber = 2; + const ::flyteidl::plugins::sagemaker::TrainingJobConfig& training_job_config() const; + ::flyteidl::plugins::sagemaker::TrainingJobConfig* release_training_job_config(); + ::flyteidl::plugins::sagemaker::TrainingJobConfig* mutable_training_job_config(); + void set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config); + + // bool interruptible = 4; + void clear_interruptible(); + static const int kInterruptibleFieldNumber = 4; + bool interruptible() const; + void set_interruptible(bool value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification_; + ::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config_; + bool interruptible_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// AlgorithmSpecification_MetricDefinition + +// string name = 1; +inline void AlgorithmSpecification_MetricDefinition::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification_MetricDefinition::name() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) + return name_.GetNoArena(); +} +inline void AlgorithmSpecification_MetricDefinition::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) +} +#if LANG_CXX11 +inline void AlgorithmSpecification_MetricDefinition::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) +} +#endif +inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) +} +inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) +} +inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification_MetricDefinition::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification_MetricDefinition::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name) +} + +// string regex = 2; +inline void AlgorithmSpecification_MetricDefinition::clear_regex() { + regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification_MetricDefinition::regex() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) + return regex_.GetNoArena(); +} +inline void AlgorithmSpecification_MetricDefinition::set_regex(const ::std::string& value) { + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) +} +#if LANG_CXX11 +inline void AlgorithmSpecification_MetricDefinition::set_regex(::std::string&& value) { + + regex_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) +} +#endif +inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) +} +inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value, size_t size) { + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) +} +inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_regex() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) + return regex_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification_MetricDefinition::release_regex() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) + + return regex_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification_MetricDefinition::set_allocated_regex(::std::string* regex) { + if (regex != nullptr) { + + } else { + + } + regex_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), regex); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex) +} + +// ------------------------------------------------------------------- + +// AlgorithmSpecification + +// .flyteidl.plugins.sagemaker.InputMode input_mode = 1; +inline void AlgorithmSpecification::clear_input_mode() { + input_mode_ = 0; +} +inline ::flyteidl::plugins::sagemaker::InputMode AlgorithmSpecification::input_mode() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode) + return static_cast< ::flyteidl::plugins::sagemaker::InputMode >(input_mode_); +} +inline void AlgorithmSpecification::set_input_mode(::flyteidl::plugins::sagemaker::InputMode value) { + + input_mode_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode) +} + +// .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; +inline void AlgorithmSpecification::clear_algorithm_name() { + algorithm_name_ = 0; +} +inline ::flyteidl::plugins::sagemaker::AlgorithmName AlgorithmSpecification::algorithm_name() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) + return static_cast< ::flyteidl::plugins::sagemaker::AlgorithmName >(algorithm_name_); +} +inline void AlgorithmSpecification::set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName value) { + + algorithm_name_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) +} + +// string algorithm_version = 3; +inline void AlgorithmSpecification::clear_algorithm_version() { + algorithm_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification::algorithm_version() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) + return algorithm_version_.GetNoArena(); +} +inline void AlgorithmSpecification::set_algorithm_version(const ::std::string& value) { + + algorithm_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) +} +#if LANG_CXX11 +inline void AlgorithmSpecification::set_algorithm_version(::std::string&& value) { + + algorithm_version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) +} +#endif +inline void AlgorithmSpecification::set_algorithm_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + algorithm_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) +} +inline void AlgorithmSpecification::set_algorithm_version(const char* value, size_t size) { + + algorithm_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) +} +inline ::std::string* AlgorithmSpecification::mutable_algorithm_version() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) + return algorithm_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification::release_algorithm_version() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) + + return algorithm_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification::set_allocated_algorithm_version(::std::string* algorithm_version) { + if (algorithm_version != nullptr) { + + } else { + + } + algorithm_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), algorithm_version); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) +} + +// repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; +inline int AlgorithmSpecification::metric_definitions_size() const { + return metric_definitions_.size(); +} +inline void AlgorithmSpecification::clear_metric_definitions() { + metric_definitions_.Clear(); +} +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::mutable_metric_definitions(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return metric_definitions_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >* +AlgorithmSpecification::mutable_metric_definitions() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return &metric_definitions_; +} +inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& AlgorithmSpecification::metric_definitions(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return metric_definitions_.Get(index); +} +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::add_metric_definitions() { + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return metric_definitions_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >& +AlgorithmSpecification::metric_definitions() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return metric_definitions_; +} + +// ------------------------------------------------------------------- + +// TrainingJobConfig + +// int64 instance_count = 1; +inline void TrainingJobConfig::clear_instance_count() { + instance_count_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 TrainingJobConfig::instance_count() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count) + return instance_count_; +} +inline void TrainingJobConfig::set_instance_count(::google::protobuf::int64 value) { + + instance_count_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count) +} + +// string instance_type = 2; +inline void TrainingJobConfig::clear_instance_type() { + instance_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TrainingJobConfig::instance_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) + return instance_type_.GetNoArena(); +} +inline void TrainingJobConfig::set_instance_type(const ::std::string& value) { + + instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) +} +#if LANG_CXX11 +inline void TrainingJobConfig::set_instance_type(::std::string&& value) { + + instance_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) +} +#endif +inline void TrainingJobConfig::set_instance_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) +} +inline void TrainingJobConfig::set_instance_type(const char* value, size_t size) { + + instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) +} +inline ::std::string* TrainingJobConfig::mutable_instance_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) + return instance_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TrainingJobConfig::release_instance_type() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) + + return instance_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TrainingJobConfig::set_allocated_instance_type(::std::string* instance_type) { + if (instance_type != nullptr) { + + } else { + + } + instance_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instance_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type) +} + +// int64 volume_size_in_gb = 3; +inline void TrainingJobConfig::clear_volume_size_in_gb() { + volume_size_in_gb_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 TrainingJobConfig::volume_size_in_gb() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) + return volume_size_in_gb_; +} +inline void TrainingJobConfig::set_volume_size_in_gb(::google::protobuf::int64 value) { + + volume_size_in_gb_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb) +} + +// ------------------------------------------------------------------- + +// StoppingCondition + +// int64 max_runtime_in_seconds = 1; +inline void StoppingCondition::clear_max_runtime_in_seconds() { + max_runtime_in_seconds_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 StoppingCondition::max_runtime_in_seconds() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) + return max_runtime_in_seconds_; +} +inline void StoppingCondition::set_max_runtime_in_seconds(::google::protobuf::int64 value) { + + max_runtime_in_seconds_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) +} + +// int64 max_wait_time_in_seconds = 2; +inline void StoppingCondition::clear_max_wait_time_in_seconds() { + max_wait_time_in_seconds_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 StoppingCondition::max_wait_time_in_seconds() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) + return max_wait_time_in_seconds_; +} +inline void StoppingCondition::set_max_wait_time_in_seconds(::google::protobuf::int64 value) { + + max_wait_time_in_seconds_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) +} + +// ------------------------------------------------------------------- + +// TrainingJob + +// .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; +inline bool TrainingJob::has_algorithm_specification() const { + return this != internal_default_instance() && algorithm_specification_ != nullptr; +} +inline void TrainingJob::clear_algorithm_specification() { + if (GetArenaNoVirtual() == nullptr && algorithm_specification_ != nullptr) { + delete algorithm_specification_; + } + algorithm_specification_ = nullptr; +} +inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& TrainingJob::algorithm_specification() const { + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification* p = algorithm_specification_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* TrainingJob::release_algorithm_specification() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) + + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* temp = algorithm_specification_; + algorithm_specification_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* TrainingJob::mutable_algorithm_specification() { + + if (algorithm_specification_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(GetArenaNoVirtual()); + algorithm_specification_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) + return algorithm_specification_; +} +inline void TrainingJob::set_allocated_algorithm_specification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete algorithm_specification_; + } + if (algorithm_specification) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + algorithm_specification = ::google::protobuf::internal::GetOwnedMessage( + message_arena, algorithm_specification, submessage_arena); + } + + } else { + + } + algorithm_specification_ = algorithm_specification; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) +} + +// .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; +inline bool TrainingJob::has_training_job_config() const { + return this != internal_default_instance() && training_job_config_ != nullptr; +} +inline void TrainingJob::clear_training_job_config() { + if (GetArenaNoVirtual() == nullptr && training_job_config_ != nullptr) { + delete training_job_config_; + } + training_job_config_ = nullptr; +} +inline const ::flyteidl::plugins::sagemaker::TrainingJobConfig& TrainingJob::training_job_config() const { + const ::flyteidl::plugins::sagemaker::TrainingJobConfig* p = training_job_config_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_TrainingJobConfig_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::TrainingJobConfig* TrainingJob::release_training_job_config() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) + + ::flyteidl::plugins::sagemaker::TrainingJobConfig* temp = training_job_config_; + training_job_config_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::TrainingJobConfig* TrainingJob::mutable_training_job_config() { + + if (training_job_config_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobConfig>(GetArenaNoVirtual()); + training_job_config_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) + return training_job_config_; +} +inline void TrainingJob::set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete training_job_config_; + } + if (training_job_config) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + training_job_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, training_job_config, submessage_arena); + } + + } else { + + } + training_job_config_ = training_job_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) +} + +// bool interruptible = 4; +inline void TrainingJob::clear_interruptible() { + interruptible_ = false; +} +inline bool TrainingJob::interruptible() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.interruptible) + return interruptible_; +} +inline void TrainingJob::set_interruptible(bool value) { + + interruptible_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.interruptible) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::InputMode> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::InputMode>() { + return ::flyteidl::plugins::sagemaker::InputMode_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::AlgorithmName> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::AlgorithmName>() { + return ::flyteidl::plugins::sagemaker::AlgorithmName_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go new file mode 100644 index 000000000..ee220a5e0 --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go @@ -0,0 +1,312 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/hpojob.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HyperparameterTuningObjective_HyperparameterTuningObjectiveType int32 + +const ( + HyperparameterTuningObjective_MINIMIZE HyperparameterTuningObjective_HyperparameterTuningObjectiveType = 0 + HyperparameterTuningObjective_MAXIMIZE HyperparameterTuningObjective_HyperparameterTuningObjectiveType = 1 +) + +var HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name = map[int32]string{ + 0: "MINIMIZE", + 1: "MAXIMIZE", +} + +var HyperparameterTuningObjective_HyperparameterTuningObjectiveType_value = map[string]int32{ + "MINIMIZE": 0, + "MAXIMIZE": 1, +} + +func (x HyperparameterTuningObjective_HyperparameterTuningObjectiveType) String() string { + return proto.EnumName(HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name, int32(x)) +} + +func (HyperparameterTuningObjective_HyperparameterTuningObjectiveType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_823bfe2a857513d9, []int{0, 0} +} + +type HPOJobConfig_HyperparameterTuningStrategy int32 + +const ( + HPOJobConfig_BAYESIAN HPOJobConfig_HyperparameterTuningStrategy = 0 + HPOJobConfig_RANDOM HPOJobConfig_HyperparameterTuningStrategy = 1 +) + +var HPOJobConfig_HyperparameterTuningStrategy_name = map[int32]string{ + 0: "BAYESIAN", + 1: "RANDOM", +} + +var HPOJobConfig_HyperparameterTuningStrategy_value = map[string]int32{ + "BAYESIAN": 0, + "RANDOM": 1, +} + +func (x HPOJobConfig_HyperparameterTuningStrategy) String() string { + return proto.EnumName(HPOJobConfig_HyperparameterTuningStrategy_name, int32(x)) +} + +func (HPOJobConfig_HyperparameterTuningStrategy) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_823bfe2a857513d9, []int{2, 0} +} + +type HPOJobConfig_TrainingJobEarlyStoppingType int32 + +const ( + HPOJobConfig_OFF HPOJobConfig_TrainingJobEarlyStoppingType = 0 + HPOJobConfig_AUTO HPOJobConfig_TrainingJobEarlyStoppingType = 1 +) + +var HPOJobConfig_TrainingJobEarlyStoppingType_name = map[int32]string{ + 0: "OFF", + 1: "AUTO", +} + +var HPOJobConfig_TrainingJobEarlyStoppingType_value = map[string]int32{ + "OFF": 0, + "AUTO": 1, +} + +func (x HPOJobConfig_TrainingJobEarlyStoppingType) String() string { + return proto.EnumName(HPOJobConfig_TrainingJobEarlyStoppingType_name, int32(x)) +} + +func (HPOJobConfig_TrainingJobEarlyStoppingType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_823bfe2a857513d9, []int{2, 1} +} + +type HyperparameterTuningObjective struct { + ObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType `protobuf:"varint,1,opt,name=objective_type,json=objectiveType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningObjective_HyperparameterTuningObjectiveType" json:"objective_type,omitempty"` + MetricName string `protobuf:"bytes,2,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HyperparameterTuningObjective) Reset() { *m = HyperparameterTuningObjective{} } +func (m *HyperparameterTuningObjective) String() string { return proto.CompactTextString(m) } +func (*HyperparameterTuningObjective) ProtoMessage() {} +func (*HyperparameterTuningObjective) Descriptor() ([]byte, []int) { + return fileDescriptor_823bfe2a857513d9, []int{0} +} + +func (m *HyperparameterTuningObjective) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HyperparameterTuningObjective.Unmarshal(m, b) +} +func (m *HyperparameterTuningObjective) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HyperparameterTuningObjective.Marshal(b, m, deterministic) +} +func (m *HyperparameterTuningObjective) XXX_Merge(src proto.Message) { + xxx_messageInfo_HyperparameterTuningObjective.Merge(m, src) +} +func (m *HyperparameterTuningObjective) XXX_Size() int { + return xxx_messageInfo_HyperparameterTuningObjective.Size(m) +} +func (m *HyperparameterTuningObjective) XXX_DiscardUnknown() { + xxx_messageInfo_HyperparameterTuningObjective.DiscardUnknown(m) +} + +var xxx_messageInfo_HyperparameterTuningObjective proto.InternalMessageInfo + +func (m *HyperparameterTuningObjective) GetObjectiveType() HyperparameterTuningObjective_HyperparameterTuningObjectiveType { + if m != nil { + return m.ObjectiveType + } + return HyperparameterTuningObjective_MINIMIZE +} + +func (m *HyperparameterTuningObjective) GetMetricName() string { + if m != nil { + return m.MetricName + } + return "" +} + +type HPOJob struct { + TrainingJob *TrainingJob `protobuf:"bytes,1,opt,name=training_job,json=trainingJob,proto3" json:"training_job,omitempty"` + MaxNumberOfTrainingJobs int64 `protobuf:"varint,2,opt,name=max_number_of_training_jobs,json=maxNumberOfTrainingJobs,proto3" json:"max_number_of_training_jobs,omitempty"` + MaxParallelTrainingJobs int64 `protobuf:"varint,3,opt,name=max_parallel_training_jobs,json=maxParallelTrainingJobs,proto3" json:"max_parallel_training_jobs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HPOJob) Reset() { *m = HPOJob{} } +func (m *HPOJob) String() string { return proto.CompactTextString(m) } +func (*HPOJob) ProtoMessage() {} +func (*HPOJob) Descriptor() ([]byte, []int) { + return fileDescriptor_823bfe2a857513d9, []int{1} +} + +func (m *HPOJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HPOJob.Unmarshal(m, b) +} +func (m *HPOJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HPOJob.Marshal(b, m, deterministic) +} +func (m *HPOJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_HPOJob.Merge(m, src) +} +func (m *HPOJob) XXX_Size() int { + return xxx_messageInfo_HPOJob.Size(m) +} +func (m *HPOJob) XXX_DiscardUnknown() { + xxx_messageInfo_HPOJob.DiscardUnknown(m) +} + +var xxx_messageInfo_HPOJob proto.InternalMessageInfo + +func (m *HPOJob) GetTrainingJob() *TrainingJob { + if m != nil { + return m.TrainingJob + } + return nil +} + +func (m *HPOJob) GetMaxNumberOfTrainingJobs() int64 { + if m != nil { + return m.MaxNumberOfTrainingJobs + } + return 0 +} + +func (m *HPOJob) GetMaxParallelTrainingJobs() int64 { + if m != nil { + return m.MaxParallelTrainingJobs + } + return 0 +} + +type HPOJobConfig struct { + HyperparameterRanges *ParameterRanges `protobuf:"bytes,1,opt,name=hyperparameter_ranges,json=hyperparameterRanges,proto3" json:"hyperparameter_ranges,omitempty"` + TuningStrategy HPOJobConfig_HyperparameterTuningStrategy `protobuf:"varint,2,opt,name=tuning_strategy,json=tuningStrategy,proto3,enum=flyteidl.plugins.sagemaker.HPOJobConfig_HyperparameterTuningStrategy" json:"tuning_strategy,omitempty"` + TuningObjective *HyperparameterTuningObjective `protobuf:"bytes,3,opt,name=tuning_objective,json=tuningObjective,proto3" json:"tuning_objective,omitempty"` + TrainingJobEarlyStoppingType HPOJobConfig_TrainingJobEarlyStoppingType `protobuf:"varint,4,opt,name=training_job_early_stopping_type,json=trainingJobEarlyStoppingType,proto3,enum=flyteidl.plugins.sagemaker.HPOJobConfig_TrainingJobEarlyStoppingType" json:"training_job_early_stopping_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HPOJobConfig) Reset() { *m = HPOJobConfig{} } +func (m *HPOJobConfig) String() string { return proto.CompactTextString(m) } +func (*HPOJobConfig) ProtoMessage() {} +func (*HPOJobConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_823bfe2a857513d9, []int{2} +} + +func (m *HPOJobConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HPOJobConfig.Unmarshal(m, b) +} +func (m *HPOJobConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HPOJobConfig.Marshal(b, m, deterministic) +} +func (m *HPOJobConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_HPOJobConfig.Merge(m, src) +} +func (m *HPOJobConfig) XXX_Size() int { + return xxx_messageInfo_HPOJobConfig.Size(m) +} +func (m *HPOJobConfig) XXX_DiscardUnknown() { + xxx_messageInfo_HPOJobConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_HPOJobConfig proto.InternalMessageInfo + +func (m *HPOJobConfig) GetHyperparameterRanges() *ParameterRanges { + if m != nil { + return m.HyperparameterRanges + } + return nil +} + +func (m *HPOJobConfig) GetTuningStrategy() HPOJobConfig_HyperparameterTuningStrategy { + if m != nil { + return m.TuningStrategy + } + return HPOJobConfig_BAYESIAN +} + +func (m *HPOJobConfig) GetTuningObjective() *HyperparameterTuningObjective { + if m != nil { + return m.TuningObjective + } + return nil +} + +func (m *HPOJobConfig) GetTrainingJobEarlyStoppingType() HPOJobConfig_TrainingJobEarlyStoppingType { + if m != nil { + return m.TrainingJobEarlyStoppingType + } + return HPOJobConfig_OFF +} + +func init() { + proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningObjective_HyperparameterTuningObjectiveType", HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name, HyperparameterTuningObjective_HyperparameterTuningObjectiveType_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobConfig_HyperparameterTuningStrategy", HPOJobConfig_HyperparameterTuningStrategy_name, HPOJobConfig_HyperparameterTuningStrategy_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobConfig_TrainingJobEarlyStoppingType", HPOJobConfig_TrainingJobEarlyStoppingType_name, HPOJobConfig_TrainingJobEarlyStoppingType_value) + proto.RegisterType((*HyperparameterTuningObjective)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningObjective") + proto.RegisterType((*HPOJob)(nil), "flyteidl.plugins.sagemaker.HPOJob") + proto.RegisterType((*HPOJobConfig)(nil), "flyteidl.plugins.sagemaker.HPOJobConfig") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/sagemaker/hpojob.proto", fileDescriptor_823bfe2a857513d9) +} + +var fileDescriptor_823bfe2a857513d9 = []byte{ + // 541 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x6f, 0xd3, 0x30, + 0x18, 0x5d, 0xd6, 0xaa, 0x8c, 0xaf, 0xa5, 0x44, 0x16, 0x88, 0xa9, 0x14, 0x51, 0x72, 0xd9, 0x24, + 0x20, 0x81, 0x4e, 0x48, 0x20, 0x90, 0x50, 0x07, 0x9d, 0xd6, 0x4a, 0x6d, 0xaa, 0xb4, 0x48, 0x30, + 0x0e, 0xc1, 0xe9, 0xdc, 0x34, 0x25, 0x89, 0x23, 0xc7, 0x45, 0xcb, 0x95, 0x03, 0x37, 0x7e, 0x15, + 0x3f, 0x80, 0xbf, 0x84, 0xe2, 0xa4, 0x59, 0x3a, 0x81, 0x11, 0x1c, 0x3f, 0xe7, 0xbd, 0x67, 0xbf, + 0x97, 0x67, 0xc3, 0xc1, 0xc2, 0x4f, 0x38, 0xf1, 0xce, 0x7d, 0x23, 0xf2, 0xd7, 0xae, 0x17, 0xc6, + 0x46, 0x8c, 0x5d, 0x12, 0xe0, 0xcf, 0x84, 0x19, 0xcb, 0x88, 0xae, 0xa8, 0xa3, 0x47, 0x8c, 0x72, + 0x8a, 0x5a, 0x1b, 0xa0, 0x9e, 0x03, 0xf5, 0x02, 0xd8, 0x7a, 0x22, 0x11, 0x89, 0x30, 0xc3, 0x01, + 0xe1, 0x84, 0x31, 0x1c, 0xba, 0x24, 0xce, 0xd4, 0x5a, 0x8f, 0x24, 0x0c, 0xce, 0xb0, 0x17, 0x7a, + 0xa1, 0x5b, 0xec, 0xad, 0x7d, 0xdb, 0x85, 0x7b, 0xa7, 0x49, 0x44, 0x58, 0x21, 0x36, 0x5b, 0xa7, + 0x08, 0xd3, 0x59, 0x91, 0x39, 0xf7, 0xbe, 0x10, 0xf4, 0x55, 0x81, 0x26, 0xdd, 0x4c, 0x36, 0x4f, + 0x22, 0xb2, 0xaf, 0x74, 0x94, 0xc3, 0x66, 0xf7, 0xa3, 0xfe, 0xe7, 0x73, 0xeb, 0x52, 0x4d, 0xf9, + 0xd7, 0x59, 0x12, 0x11, 0xeb, 0x06, 0x2d, 0x8f, 0xe8, 0x3e, 0xd4, 0x03, 0xc2, 0x99, 0x37, 0xb7, + 0x43, 0x1c, 0x90, 0xfd, 0xdd, 0x8e, 0x72, 0x78, 0xdd, 0x82, 0x6c, 0x69, 0x8c, 0x03, 0xa2, 0xbd, + 0x86, 0x07, 0x7f, 0x15, 0x45, 0x0d, 0xd8, 0x1b, 0x0d, 0xc6, 0x83, 0xd1, 0xe0, 0xac, 0xaf, 0xee, + 0x88, 0xa9, 0xf7, 0x3e, 0x9b, 0x14, 0xed, 0xa7, 0x02, 0xb5, 0xd3, 0x89, 0x39, 0xa4, 0x0e, 0x1a, + 0x42, 0x63, 0x13, 0x94, 0xbd, 0xa2, 0x8e, 0xb0, 0x5b, 0xef, 0x1e, 0xc8, 0xec, 0xce, 0x72, 0xfc, + 0x90, 0x3a, 0x56, 0x9d, 0x5f, 0x0e, 0xe8, 0x15, 0xdc, 0x0d, 0xf0, 0x85, 0x1d, 0xae, 0x03, 0x87, + 0x30, 0x9b, 0x2e, 0xec, 0xb2, 0x72, 0x2c, 0x8c, 0x54, 0xac, 0x3b, 0x01, 0xbe, 0x18, 0x0b, 0x84, + 0xb9, 0x28, 0x29, 0xc5, 0xe8, 0x25, 0xb4, 0x52, 0x76, 0x6a, 0xca, 0xf7, 0x89, 0x7f, 0x85, 0x5c, + 0x29, 0xc8, 0x93, 0x1c, 0x50, 0x26, 0x6b, 0x3f, 0xaa, 0xd0, 0xc8, 0x1c, 0xbd, 0xa1, 0xe1, 0xc2, + 0x73, 0xd1, 0x27, 0xb8, 0xbd, 0xdc, 0xca, 0xc8, 0xce, 0x8a, 0x93, 0x1b, 0x7c, 0x28, 0x33, 0x38, + 0xd9, 0x70, 0x2c, 0x41, 0xb1, 0x6e, 0x6d, 0x2b, 0x65, 0xab, 0x28, 0x84, 0x9b, 0x5c, 0xe4, 0x6e, + 0xc7, 0x9c, 0x61, 0x4e, 0xdc, 0x44, 0x38, 0x6c, 0x76, 0xfb, 0xd2, 0xae, 0x94, 0x0e, 0xf9, 0xdb, + 0x6a, 0x4c, 0x73, 0x31, 0xab, 0xc9, 0xb7, 0x66, 0x74, 0x0e, 0x6a, 0xbe, 0x5f, 0x51, 0x17, 0x91, + 0x4a, 0xbd, 0xfb, 0xe2, 0xbf, 0xcb, 0x69, 0xe5, 0x16, 0x2e, 0x6f, 0xc0, 0x77, 0x05, 0x3a, 0xe5, + 0xe4, 0x6d, 0x82, 0x99, 0x9f, 0xd8, 0x31, 0xa7, 0x51, 0x94, 0x2e, 0x89, 0x3b, 0x51, 0xfd, 0x47, + 0x9f, 0xa5, 0x5f, 0xd5, 0x4f, 0xe5, 0xa6, 0xb9, 0x9a, 0x68, 0x7f, 0x9b, 0x4b, 0xbe, 0x6a, 0xcf, + 0xa1, 0x2d, 0x4b, 0x29, 0x2d, 0xf6, 0x71, 0xef, 0x43, 0x7f, 0x3a, 0xe8, 0x8d, 0xd5, 0x1d, 0x04, + 0x50, 0xb3, 0x7a, 0xe3, 0xb7, 0xe6, 0x48, 0x55, 0xb4, 0xa7, 0xd0, 0x96, 0xed, 0x8b, 0xae, 0x41, + 0xc5, 0x3c, 0x39, 0x51, 0x77, 0xd0, 0x1e, 0x54, 0x7b, 0xef, 0x66, 0xa6, 0xaa, 0x1c, 0x3f, 0x3b, + 0x3b, 0x72, 0x3d, 0xbe, 0x5c, 0x3b, 0xfa, 0x9c, 0x06, 0x86, 0x9f, 0x2c, 0xb8, 0x51, 0x3c, 0x30, + 0x2e, 0x09, 0x8d, 0xc8, 0x79, 0xec, 0x52, 0xe3, 0xea, 0x9b, 0xe3, 0xd4, 0xc4, 0xf3, 0x72, 0xf4, + 0x2b, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xb3, 0xea, 0xdf, 0x05, 0x05, 0x00, 0x00, +} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go new file mode 100644 index 000000000..684e4caad --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go @@ -0,0 +1,276 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/hpojob.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _hpojob_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on HyperparameterTuningObjective with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HyperparameterTuningObjective) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ObjectiveType + + // no validation rules for MetricName + + return nil +} + +// HyperparameterTuningObjectiveValidationError is the validation error +// returned by HyperparameterTuningObjective.Validate if the designated +// constraints aren't met. +type HyperparameterTuningObjectiveValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HyperparameterTuningObjectiveValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HyperparameterTuningObjectiveValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HyperparameterTuningObjectiveValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HyperparameterTuningObjectiveValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HyperparameterTuningObjectiveValidationError) ErrorName() string { + return "HyperparameterTuningObjectiveValidationError" +} + +// Error satisfies the builtin error interface +func (e HyperparameterTuningObjectiveValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHyperparameterTuningObjective.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HyperparameterTuningObjectiveValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HyperparameterTuningObjectiveValidationError{} + +// Validate checks the field values on HPOJob with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *HPOJob) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTrainingJob()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HPOJobValidationError{ + field: "TrainingJob", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for MaxNumberOfTrainingJobs + + // no validation rules for MaxParallelTrainingJobs + + return nil +} + +// HPOJobValidationError is the validation error returned by HPOJob.Validate if +// the designated constraints aren't met. +type HPOJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HPOJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HPOJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HPOJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HPOJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HPOJobValidationError) ErrorName() string { return "HPOJobValidationError" } + +// Error satisfies the builtin error interface +func (e HPOJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHPOJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HPOJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HPOJobValidationError{} + +// Validate checks the field values on HPOJobConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *HPOJobConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetHyperparameterRanges()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HPOJobConfigValidationError{ + field: "HyperparameterRanges", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TuningStrategy + + if v, ok := interface{}(m.GetTuningObjective()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HPOJobConfigValidationError{ + field: "TuningObjective", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TrainingJobEarlyStoppingType + + return nil +} + +// HPOJobConfigValidationError is the validation error returned by +// HPOJobConfig.Validate if the designated constraints aren't met. +type HPOJobConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HPOJobConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HPOJobConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HPOJobConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HPOJobConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HPOJobConfigValidationError) ErrorName() string { return "HPOJobConfigValidationError" } + +// Error satisfies the builtin error interface +func (e HPOJobConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHPOJobConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HPOJobConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HPOJobConfigValidationError{} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go new file mode 100644 index 000000000..ad109c6f2 --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go @@ -0,0 +1,385 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/parameterranges.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type HyperparameterScalingType int32 + +const ( + HyperparameterScalingType_AUTO HyperparameterScalingType = 0 + HyperparameterScalingType_LINEAR HyperparameterScalingType = 1 + HyperparameterScalingType_LOGARITHMIC HyperparameterScalingType = 2 + HyperparameterScalingType_REVERSELOGARITHMIC HyperparameterScalingType = 3 +) + +var HyperparameterScalingType_name = map[int32]string{ + 0: "AUTO", + 1: "LINEAR", + 2: "LOGARITHMIC", + 3: "REVERSELOGARITHMIC", +} + +var HyperparameterScalingType_value = map[string]int32{ + "AUTO": 0, + "LINEAR": 1, + "LOGARITHMIC": 2, + "REVERSELOGARITHMIC": 3, +} + +func (x HyperparameterScalingType) String() string { + return proto.EnumName(HyperparameterScalingType_name, int32(x)) +} + +func (HyperparameterScalingType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_d87fa566d23b1e82, []int{0} +} + +type ContinuousParameterRange struct { + MaxValue float64 `protobuf:"fixed64,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` + MinValue float64 `protobuf:"fixed64,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` + ScalingType HyperparameterScalingType `protobuf:"varint,3,opt,name=scaling_type,json=scalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"scaling_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContinuousParameterRange) Reset() { *m = ContinuousParameterRange{} } +func (m *ContinuousParameterRange) String() string { return proto.CompactTextString(m) } +func (*ContinuousParameterRange) ProtoMessage() {} +func (*ContinuousParameterRange) Descriptor() ([]byte, []int) { + return fileDescriptor_d87fa566d23b1e82, []int{0} +} + +func (m *ContinuousParameterRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContinuousParameterRange.Unmarshal(m, b) +} +func (m *ContinuousParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContinuousParameterRange.Marshal(b, m, deterministic) +} +func (m *ContinuousParameterRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContinuousParameterRange.Merge(m, src) +} +func (m *ContinuousParameterRange) XXX_Size() int { + return xxx_messageInfo_ContinuousParameterRange.Size(m) +} +func (m *ContinuousParameterRange) XXX_DiscardUnknown() { + xxx_messageInfo_ContinuousParameterRange.DiscardUnknown(m) +} + +var xxx_messageInfo_ContinuousParameterRange proto.InternalMessageInfo + +func (m *ContinuousParameterRange) GetMaxValue() float64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func (m *ContinuousParameterRange) GetMinValue() float64 { + if m != nil { + return m.MinValue + } + return 0 +} + +func (m *ContinuousParameterRange) GetScalingType() HyperparameterScalingType { + if m != nil { + return m.ScalingType + } + return HyperparameterScalingType_AUTO +} + +type IntegerParameterRange struct { + MaxValue int64 `protobuf:"varint,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` + MinValue int64 `protobuf:"varint,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` + ScalingType HyperparameterScalingType `protobuf:"varint,3,opt,name=scaling_type,json=scalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"scaling_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IntegerParameterRange) Reset() { *m = IntegerParameterRange{} } +func (m *IntegerParameterRange) String() string { return proto.CompactTextString(m) } +func (*IntegerParameterRange) ProtoMessage() {} +func (*IntegerParameterRange) Descriptor() ([]byte, []int) { + return fileDescriptor_d87fa566d23b1e82, []int{1} +} + +func (m *IntegerParameterRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IntegerParameterRange.Unmarshal(m, b) +} +func (m *IntegerParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IntegerParameterRange.Marshal(b, m, deterministic) +} +func (m *IntegerParameterRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_IntegerParameterRange.Merge(m, src) +} +func (m *IntegerParameterRange) XXX_Size() int { + return xxx_messageInfo_IntegerParameterRange.Size(m) +} +func (m *IntegerParameterRange) XXX_DiscardUnknown() { + xxx_messageInfo_IntegerParameterRange.DiscardUnknown(m) +} + +var xxx_messageInfo_IntegerParameterRange proto.InternalMessageInfo + +func (m *IntegerParameterRange) GetMaxValue() int64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func (m *IntegerParameterRange) GetMinValue() int64 { + if m != nil { + return m.MinValue + } + return 0 +} + +func (m *IntegerParameterRange) GetScalingType() HyperparameterScalingType { + if m != nil { + return m.ScalingType + } + return HyperparameterScalingType_AUTO +} + +type CategoricalParameterRange struct { + Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CategoricalParameterRange) Reset() { *m = CategoricalParameterRange{} } +func (m *CategoricalParameterRange) String() string { return proto.CompactTextString(m) } +func (*CategoricalParameterRange) ProtoMessage() {} +func (*CategoricalParameterRange) Descriptor() ([]byte, []int) { + return fileDescriptor_d87fa566d23b1e82, []int{2} +} + +func (m *CategoricalParameterRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CategoricalParameterRange.Unmarshal(m, b) +} +func (m *CategoricalParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CategoricalParameterRange.Marshal(b, m, deterministic) +} +func (m *CategoricalParameterRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_CategoricalParameterRange.Merge(m, src) +} +func (m *CategoricalParameterRange) XXX_Size() int { + return xxx_messageInfo_CategoricalParameterRange.Size(m) +} +func (m *CategoricalParameterRange) XXX_DiscardUnknown() { + xxx_messageInfo_CategoricalParameterRange.DiscardUnknown(m) +} + +var xxx_messageInfo_CategoricalParameterRange proto.InternalMessageInfo + +func (m *CategoricalParameterRange) GetValues() []string { + if m != nil { + return m.Values + } + return nil +} + +type ParameterRangeOneOf struct { + // Types that are valid to be assigned to ParameterRangeType: + // *ParameterRangeOneOf_ContinuousParameterRange + // *ParameterRangeOneOf_IntegerParameterRange + // *ParameterRangeOneOf_CategoricalParameterRange + ParameterRangeType isParameterRangeOneOf_ParameterRangeType `protobuf_oneof:"parameter_range_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ParameterRangeOneOf) Reset() { *m = ParameterRangeOneOf{} } +func (m *ParameterRangeOneOf) String() string { return proto.CompactTextString(m) } +func (*ParameterRangeOneOf) ProtoMessage() {} +func (*ParameterRangeOneOf) Descriptor() ([]byte, []int) { + return fileDescriptor_d87fa566d23b1e82, []int{3} +} + +func (m *ParameterRangeOneOf) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ParameterRangeOneOf.Unmarshal(m, b) +} +func (m *ParameterRangeOneOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ParameterRangeOneOf.Marshal(b, m, deterministic) +} +func (m *ParameterRangeOneOf) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParameterRangeOneOf.Merge(m, src) +} +func (m *ParameterRangeOneOf) XXX_Size() int { + return xxx_messageInfo_ParameterRangeOneOf.Size(m) +} +func (m *ParameterRangeOneOf) XXX_DiscardUnknown() { + xxx_messageInfo_ParameterRangeOneOf.DiscardUnknown(m) +} + +var xxx_messageInfo_ParameterRangeOneOf proto.InternalMessageInfo + +type isParameterRangeOneOf_ParameterRangeType interface { + isParameterRangeOneOf_ParameterRangeType() +} + +type ParameterRangeOneOf_ContinuousParameterRange struct { + ContinuousParameterRange *ContinuousParameterRange `protobuf:"bytes,1,opt,name=continuous_parameter_range,json=continuousParameterRange,proto3,oneof"` +} + +type ParameterRangeOneOf_IntegerParameterRange struct { + IntegerParameterRange *IntegerParameterRange `protobuf:"bytes,2,opt,name=integer_parameter_range,json=integerParameterRange,proto3,oneof"` +} + +type ParameterRangeOneOf_CategoricalParameterRange struct { + CategoricalParameterRange *CategoricalParameterRange `protobuf:"bytes,3,opt,name=categorical_parameter_range,json=categoricalParameterRange,proto3,oneof"` +} + +func (*ParameterRangeOneOf_ContinuousParameterRange) isParameterRangeOneOf_ParameterRangeType() {} + +func (*ParameterRangeOneOf_IntegerParameterRange) isParameterRangeOneOf_ParameterRangeType() {} + +func (*ParameterRangeOneOf_CategoricalParameterRange) isParameterRangeOneOf_ParameterRangeType() {} + +func (m *ParameterRangeOneOf) GetParameterRangeType() isParameterRangeOneOf_ParameterRangeType { + if m != nil { + return m.ParameterRangeType + } + return nil +} + +func (m *ParameterRangeOneOf) GetContinuousParameterRange() *ContinuousParameterRange { + if x, ok := m.GetParameterRangeType().(*ParameterRangeOneOf_ContinuousParameterRange); ok { + return x.ContinuousParameterRange + } + return nil +} + +func (m *ParameterRangeOneOf) GetIntegerParameterRange() *IntegerParameterRange { + if x, ok := m.GetParameterRangeType().(*ParameterRangeOneOf_IntegerParameterRange); ok { + return x.IntegerParameterRange + } + return nil +} + +func (m *ParameterRangeOneOf) GetCategoricalParameterRange() *CategoricalParameterRange { + if x, ok := m.GetParameterRangeType().(*ParameterRangeOneOf_CategoricalParameterRange); ok { + return x.CategoricalParameterRange + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ParameterRangeOneOf) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ParameterRangeOneOf_ContinuousParameterRange)(nil), + (*ParameterRangeOneOf_IntegerParameterRange)(nil), + (*ParameterRangeOneOf_CategoricalParameterRange)(nil), + } +} + +type ParameterRanges struct { + ParameterRangeMap map[string]*ParameterRangeOneOf `protobuf:"bytes,1,rep,name=parameter_range_map,json=parameterRangeMap,proto3" json:"parameter_range_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ParameterRanges) Reset() { *m = ParameterRanges{} } +func (m *ParameterRanges) String() string { return proto.CompactTextString(m) } +func (*ParameterRanges) ProtoMessage() {} +func (*ParameterRanges) Descriptor() ([]byte, []int) { + return fileDescriptor_d87fa566d23b1e82, []int{4} +} + +func (m *ParameterRanges) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ParameterRanges.Unmarshal(m, b) +} +func (m *ParameterRanges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ParameterRanges.Marshal(b, m, deterministic) +} +func (m *ParameterRanges) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParameterRanges.Merge(m, src) +} +func (m *ParameterRanges) XXX_Size() int { + return xxx_messageInfo_ParameterRanges.Size(m) +} +func (m *ParameterRanges) XXX_DiscardUnknown() { + xxx_messageInfo_ParameterRanges.DiscardUnknown(m) +} + +var xxx_messageInfo_ParameterRanges proto.InternalMessageInfo + +func (m *ParameterRanges) GetParameterRangeMap() map[string]*ParameterRangeOneOf { + if m != nil { + return m.ParameterRangeMap + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterScalingType", HyperparameterScalingType_name, HyperparameterScalingType_value) + proto.RegisterType((*ContinuousParameterRange)(nil), "flyteidl.plugins.sagemaker.ContinuousParameterRange") + proto.RegisterType((*IntegerParameterRange)(nil), "flyteidl.plugins.sagemaker.IntegerParameterRange") + proto.RegisterType((*CategoricalParameterRange)(nil), "flyteidl.plugins.sagemaker.CategoricalParameterRange") + proto.RegisterType((*ParameterRangeOneOf)(nil), "flyteidl.plugins.sagemaker.ParameterRangeOneOf") + proto.RegisterType((*ParameterRanges)(nil), "flyteidl.plugins.sagemaker.ParameterRanges") + proto.RegisterMapType((map[string]*ParameterRangeOneOf)(nil), "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/sagemaker/parameterranges.proto", fileDescriptor_d87fa566d23b1e82) +} + +var fileDescriptor_d87fa566d23b1e82 = []byte{ + // 503 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xd1, 0x6e, 0x12, 0x41, + 0x14, 0x65, 0x58, 0x6d, 0xca, 0xc5, 0x58, 0x9c, 0x5a, 0x04, 0xfa, 0x42, 0x78, 0x22, 0x26, 0xee, + 0x2a, 0xd8, 0xc4, 0xf8, 0x06, 0x64, 0x23, 0x24, 0xad, 0x98, 0x29, 0x36, 0xa6, 0x2f, 0x64, 0x58, + 0x87, 0x75, 0xc2, 0xee, 0xec, 0x64, 0x76, 0x56, 0xbb, 0x9f, 0xe0, 0xb7, 0x98, 0xf8, 0x85, 0x3e, + 0x18, 0x06, 0x0a, 0x76, 0xcb, 0xa2, 0x4f, 0xbe, 0xed, 0x9d, 0x7b, 0xcf, 0x9e, 0x33, 0x73, 0x4e, + 0x2e, 0xbc, 0x9c, 0x07, 0xa9, 0x66, 0xfc, 0x73, 0xe0, 0xc8, 0x20, 0xf1, 0xb9, 0x88, 0x9d, 0x98, + 0xfa, 0x2c, 0xa4, 0x0b, 0xa6, 0x1c, 0x49, 0x15, 0x0d, 0x99, 0x66, 0x4a, 0x51, 0xe1, 0xb3, 0xd8, + 0x96, 0x2a, 0xd2, 0x11, 0x6e, 0xdc, 0x22, 0xec, 0x35, 0xc2, 0xde, 0x20, 0x5a, 0x3f, 0x11, 0xd4, + 0x06, 0x91, 0xd0, 0x5c, 0x24, 0x51, 0x12, 0x7f, 0xb8, 0xc5, 0x93, 0x25, 0x1e, 0x9f, 0x42, 0x29, + 0xa4, 0x37, 0xd3, 0xaf, 0x34, 0x48, 0x58, 0x0d, 0x35, 0x51, 0x1b, 0x91, 0xc3, 0x90, 0xde, 0x5c, + 0x2d, 0x6b, 0xd3, 0xe4, 0x62, 0xdd, 0x2c, 0xae, 0x9b, 0x5c, 0xac, 0x9a, 0x9f, 0xe0, 0x51, 0xec, + 0xd1, 0x80, 0x0b, 0x7f, 0xaa, 0x53, 0xc9, 0x6a, 0x56, 0x13, 0xb5, 0x1f, 0x77, 0xce, 0xec, 0x7c, + 0x25, 0xf6, 0x30, 0x95, 0x4c, 0x6d, 0x2e, 0x70, 0xb9, 0x42, 0x4f, 0x52, 0xc9, 0x48, 0x39, 0xde, + 0x16, 0xad, 0x1f, 0x08, 0x4e, 0x46, 0x42, 0x33, 0x9f, 0xa9, 0xbf, 0xa9, 0xb5, 0xf6, 0xa9, 0xb5, + 0xfe, 0x8b, 0xda, 0x2e, 0xd4, 0x07, 0x54, 0x33, 0x3f, 0x52, 0xdc, 0xa3, 0x41, 0x46, 0x70, 0x15, + 0x0e, 0x8c, 0x9e, 0xb8, 0x86, 0x9a, 0x56, 0xbb, 0x44, 0xd6, 0x55, 0xeb, 0xbb, 0x05, 0xc7, 0x77, + 0x47, 0xc7, 0x82, 0x8d, 0xe7, 0x58, 0x43, 0xc3, 0xdb, 0x58, 0x35, 0xdd, 0x90, 0x4f, 0x8d, 0xd9, + 0xe6, 0xc6, 0xe5, 0xce, 0xeb, 0x7d, 0xa2, 0xf3, 0x8c, 0x1e, 0x16, 0x48, 0xcd, 0xcb, 0x0b, 0xc1, + 0x02, 0x9e, 0xf1, 0xd5, 0x7b, 0xdf, 0xa3, 0x2c, 0x1a, 0xca, 0x57, 0xfb, 0x28, 0x77, 0x5a, 0x35, + 0x2c, 0x90, 0x13, 0xbe, 0xd3, 0xc3, 0x6f, 0x70, 0xea, 0x6d, 0xdf, 0xeb, 0x1e, 0xa1, 0x65, 0x08, + 0xf7, 0x1a, 0x93, 0xfb, 0xdc, 0xc3, 0x02, 0xa9, 0x7b, 0x79, 0xcd, 0x7e, 0x15, 0x9e, 0x66, 0xc8, + 0x4c, 0x14, 0x5a, 0xbf, 0x10, 0x1c, 0xdd, 0x1d, 0x8d, 0xb1, 0x82, 0xe3, 0xec, 0x6c, 0x48, 0xa5, + 0x31, 0xb1, 0xdc, 0xe9, 0xef, 0x13, 0x97, 0xf9, 0x53, 0xa6, 0xbe, 0xa0, 0xd2, 0x15, 0x5a, 0xa5, + 0xe4, 0x89, 0xcc, 0x9e, 0x37, 0x12, 0xa8, 0xee, 0x1e, 0xc6, 0x15, 0xb0, 0x16, 0x2c, 0x35, 0xf6, + 0x97, 0xc8, 0xf2, 0x13, 0xbb, 0xf0, 0x70, 0x9b, 0xf3, 0x72, 0xc7, 0xf9, 0x77, 0x45, 0x26, 0x67, + 0x64, 0x85, 0x7e, 0x5b, 0x7c, 0x83, 0x9e, 0x5f, 0x43, 0x3d, 0x37, 0xe9, 0xf8, 0x10, 0x1e, 0xf4, + 0x3e, 0x4e, 0xc6, 0x95, 0x02, 0x06, 0x38, 0x38, 0x1f, 0xbd, 0x77, 0x7b, 0xa4, 0x82, 0xf0, 0x11, + 0x94, 0xcf, 0xc7, 0xef, 0x7a, 0x64, 0x34, 0x19, 0x5e, 0x8c, 0x06, 0x95, 0x22, 0xae, 0x02, 0x26, + 0xee, 0x95, 0x4b, 0x2e, 0xdd, 0x3f, 0xcf, 0xad, 0xfe, 0xd9, 0x75, 0xd7, 0xe7, 0xfa, 0x4b, 0x32, + 0xb3, 0xbd, 0x28, 0x74, 0x82, 0x74, 0xae, 0x9d, 0xcd, 0x6a, 0xf3, 0x99, 0x70, 0xe4, 0xec, 0x85, + 0x1f, 0x39, 0xd9, 0x6d, 0x37, 0x3b, 0x30, 0x4b, 0xad, 0xfb, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xaf, + 0x48, 0xf7, 0xbe, 0x08, 0x05, 0x00, 0x00, +} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go new file mode 100644 index 000000000..8c1fd2c6f --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go @@ -0,0 +1,439 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/parameterranges.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _parameterranges_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on ContinuousParameterRange with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ContinuousParameterRange) Validate() error { + if m == nil { + return nil + } + + // no validation rules for MaxValue + + // no validation rules for MinValue + + // no validation rules for ScalingType + + return nil +} + +// ContinuousParameterRangeValidationError is the validation error returned by +// ContinuousParameterRange.Validate if the designated constraints aren't met. +type ContinuousParameterRangeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ContinuousParameterRangeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ContinuousParameterRangeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ContinuousParameterRangeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ContinuousParameterRangeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ContinuousParameterRangeValidationError) ErrorName() string { + return "ContinuousParameterRangeValidationError" +} + +// Error satisfies the builtin error interface +func (e ContinuousParameterRangeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sContinuousParameterRange.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ContinuousParameterRangeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ContinuousParameterRangeValidationError{} + +// Validate checks the field values on IntegerParameterRange with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *IntegerParameterRange) Validate() error { + if m == nil { + return nil + } + + // no validation rules for MaxValue + + // no validation rules for MinValue + + // no validation rules for ScalingType + + return nil +} + +// IntegerParameterRangeValidationError is the validation error returned by +// IntegerParameterRange.Validate if the designated constraints aren't met. +type IntegerParameterRangeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IntegerParameterRangeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IntegerParameterRangeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IntegerParameterRangeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IntegerParameterRangeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IntegerParameterRangeValidationError) ErrorName() string { + return "IntegerParameterRangeValidationError" +} + +// Error satisfies the builtin error interface +func (e IntegerParameterRangeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIntegerParameterRange.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IntegerParameterRangeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IntegerParameterRangeValidationError{} + +// Validate checks the field values on CategoricalParameterRange with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CategoricalParameterRange) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// CategoricalParameterRangeValidationError is the validation error returned by +// CategoricalParameterRange.Validate if the designated constraints aren't met. +type CategoricalParameterRangeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CategoricalParameterRangeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CategoricalParameterRangeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CategoricalParameterRangeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CategoricalParameterRangeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CategoricalParameterRangeValidationError) ErrorName() string { + return "CategoricalParameterRangeValidationError" +} + +// Error satisfies the builtin error interface +func (e CategoricalParameterRangeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCategoricalParameterRange.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CategoricalParameterRangeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CategoricalParameterRangeValidationError{} + +// Validate checks the field values on ParameterRangeOneOf with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ParameterRangeOneOf) Validate() error { + if m == nil { + return nil + } + + switch m.ParameterRangeType.(type) { + + case *ParameterRangeOneOf_ContinuousParameterRange: + + if v, ok := interface{}(m.GetContinuousParameterRange()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangeOneOfValidationError{ + field: "ContinuousParameterRange", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ParameterRangeOneOf_IntegerParameterRange: + + if v, ok := interface{}(m.GetIntegerParameterRange()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangeOneOfValidationError{ + field: "IntegerParameterRange", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ParameterRangeOneOf_CategoricalParameterRange: + + if v, ok := interface{}(m.GetCategoricalParameterRange()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangeOneOfValidationError{ + field: "CategoricalParameterRange", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ParameterRangeOneOfValidationError is the validation error returned by +// ParameterRangeOneOf.Validate if the designated constraints aren't met. +type ParameterRangeOneOfValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParameterRangeOneOfValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParameterRangeOneOfValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParameterRangeOneOfValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParameterRangeOneOfValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParameterRangeOneOfValidationError) ErrorName() string { + return "ParameterRangeOneOfValidationError" +} + +// Error satisfies the builtin error interface +func (e ParameterRangeOneOfValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParameterRangeOneOf.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParameterRangeOneOfValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParameterRangeOneOfValidationError{} + +// Validate checks the field values on ParameterRanges with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ParameterRanges) Validate() error { + if m == nil { + return nil + } + + for key, val := range m.GetParameterRangeMap() { + _ = val + + // no validation rules for ParameterRangeMap[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangesValidationError{ + field: fmt.Sprintf("ParameterRangeMap[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ParameterRangesValidationError is the validation error returned by +// ParameterRanges.Validate if the designated constraints aren't met. +type ParameterRangesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParameterRangesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParameterRangesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParameterRangesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParameterRangesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParameterRangesValidationError) ErrorName() string { return "ParameterRangesValidationError" } + +// Error satisfies the builtin error interface +func (e ParameterRangesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParameterRanges.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParameterRangesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParameterRangesValidationError{} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go new file mode 100644 index 000000000..36886972f --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go @@ -0,0 +1,395 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/trainingjob.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type InputMode int32 + +const ( + InputMode_FILE InputMode = 0 + InputMode_PIPE InputMode = 1 +) + +var InputMode_name = map[int32]string{ + 0: "FILE", + 1: "PIPE", +} + +var InputMode_value = map[string]int32{ + "FILE": 0, + "PIPE": 1, +} + +func (x InputMode) String() string { + return proto.EnumName(InputMode_name, int32(x)) +} + +func (InputMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_030d49acd9e1f6e1, []int{0} +} + +type AlgorithmName int32 + +const ( + AlgorithmName_CUSTOM AlgorithmName = 0 + AlgorithmName_XGBOOST AlgorithmName = 1 +) + +var AlgorithmName_name = map[int32]string{ + 0: "CUSTOM", + 1: "XGBOOST", +} + +var AlgorithmName_value = map[string]int32{ + "CUSTOM": 0, + "XGBOOST": 1, +} + +func (x AlgorithmName) String() string { + return proto.EnumName(AlgorithmName_name, int32(x)) +} + +func (AlgorithmName) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_030d49acd9e1f6e1, []int{1} +} + +type AlgorithmSpecification struct { + InputMode InputMode `protobuf:"varint,1,opt,name=input_mode,json=inputMode,proto3,enum=flyteidl.plugins.sagemaker.InputMode" json:"input_mode,omitempty"` + AlgorithmName AlgorithmName `protobuf:"varint,2,opt,name=algorithm_name,json=algorithmName,proto3,enum=flyteidl.plugins.sagemaker.AlgorithmName" json:"algorithm_name,omitempty"` + AlgorithmVersion string `protobuf:"bytes,3,opt,name=algorithm_version,json=algorithmVersion,proto3" json:"algorithm_version,omitempty"` + MetricDefinitions []*AlgorithmSpecification_MetricDefinition `protobuf:"bytes,4,rep,name=metric_definitions,json=metricDefinitions,proto3" json:"metric_definitions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AlgorithmSpecification) Reset() { *m = AlgorithmSpecification{} } +func (m *AlgorithmSpecification) String() string { return proto.CompactTextString(m) } +func (*AlgorithmSpecification) ProtoMessage() {} +func (*AlgorithmSpecification) Descriptor() ([]byte, []int) { + return fileDescriptor_030d49acd9e1f6e1, []int{0} +} + +func (m *AlgorithmSpecification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AlgorithmSpecification.Unmarshal(m, b) +} +func (m *AlgorithmSpecification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AlgorithmSpecification.Marshal(b, m, deterministic) +} +func (m *AlgorithmSpecification) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlgorithmSpecification.Merge(m, src) +} +func (m *AlgorithmSpecification) XXX_Size() int { + return xxx_messageInfo_AlgorithmSpecification.Size(m) +} +func (m *AlgorithmSpecification) XXX_DiscardUnknown() { + xxx_messageInfo_AlgorithmSpecification.DiscardUnknown(m) +} + +var xxx_messageInfo_AlgorithmSpecification proto.InternalMessageInfo + +func (m *AlgorithmSpecification) GetInputMode() InputMode { + if m != nil { + return m.InputMode + } + return InputMode_FILE +} + +func (m *AlgorithmSpecification) GetAlgorithmName() AlgorithmName { + if m != nil { + return m.AlgorithmName + } + return AlgorithmName_CUSTOM +} + +func (m *AlgorithmSpecification) GetAlgorithmVersion() string { + if m != nil { + return m.AlgorithmVersion + } + return "" +} + +func (m *AlgorithmSpecification) GetMetricDefinitions() []*AlgorithmSpecification_MetricDefinition { + if m != nil { + return m.MetricDefinitions + } + return nil +} + +type AlgorithmSpecification_MetricDefinition struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Regex string `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AlgorithmSpecification_MetricDefinition) Reset() { + *m = AlgorithmSpecification_MetricDefinition{} +} +func (m *AlgorithmSpecification_MetricDefinition) String() string { return proto.CompactTextString(m) } +func (*AlgorithmSpecification_MetricDefinition) ProtoMessage() {} +func (*AlgorithmSpecification_MetricDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_030d49acd9e1f6e1, []int{0, 0} +} + +func (m *AlgorithmSpecification_MetricDefinition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Unmarshal(m, b) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Marshal(b, m, deterministic) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Merge(m, src) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_Size() int { + return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Size(m) +} +func (m *AlgorithmSpecification_MetricDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AlgorithmSpecification_MetricDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AlgorithmSpecification_MetricDefinition proto.InternalMessageInfo + +func (m *AlgorithmSpecification_MetricDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AlgorithmSpecification_MetricDefinition) GetRegex() string { + if m != nil { + return m.Regex + } + return "" +} + +type TrainingJobConfig struct { + InstanceCount int64 `protobuf:"varint,1,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"` + InstanceType string `protobuf:"bytes,2,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` + VolumeSizeInGb int64 `protobuf:"varint,3,opt,name=volume_size_in_gb,json=volumeSizeInGb,proto3" json:"volume_size_in_gb,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TrainingJobConfig) Reset() { *m = TrainingJobConfig{} } +func (m *TrainingJobConfig) String() string { return proto.CompactTextString(m) } +func (*TrainingJobConfig) ProtoMessage() {} +func (*TrainingJobConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_030d49acd9e1f6e1, []int{1} +} + +func (m *TrainingJobConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TrainingJobConfig.Unmarshal(m, b) +} +func (m *TrainingJobConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TrainingJobConfig.Marshal(b, m, deterministic) +} +func (m *TrainingJobConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TrainingJobConfig.Merge(m, src) +} +func (m *TrainingJobConfig) XXX_Size() int { + return xxx_messageInfo_TrainingJobConfig.Size(m) +} +func (m *TrainingJobConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TrainingJobConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_TrainingJobConfig proto.InternalMessageInfo + +func (m *TrainingJobConfig) GetInstanceCount() int64 { + if m != nil { + return m.InstanceCount + } + return 0 +} + +func (m *TrainingJobConfig) GetInstanceType() string { + if m != nil { + return m.InstanceType + } + return "" +} + +func (m *TrainingJobConfig) GetVolumeSizeInGb() int64 { + if m != nil { + return m.VolumeSizeInGb + } + return 0 +} + +type StoppingCondition struct { + MaxRuntimeInSeconds int64 `protobuf:"varint,1,opt,name=max_runtime_in_seconds,json=maxRuntimeInSeconds,proto3" json:"max_runtime_in_seconds,omitempty"` + MaxWaitTimeInSeconds int64 `protobuf:"varint,2,opt,name=max_wait_time_in_seconds,json=maxWaitTimeInSeconds,proto3" json:"max_wait_time_in_seconds,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoppingCondition) Reset() { *m = StoppingCondition{} } +func (m *StoppingCondition) String() string { return proto.CompactTextString(m) } +func (*StoppingCondition) ProtoMessage() {} +func (*StoppingCondition) Descriptor() ([]byte, []int) { + return fileDescriptor_030d49acd9e1f6e1, []int{2} +} + +func (m *StoppingCondition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StoppingCondition.Unmarshal(m, b) +} +func (m *StoppingCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StoppingCondition.Marshal(b, m, deterministic) +} +func (m *StoppingCondition) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoppingCondition.Merge(m, src) +} +func (m *StoppingCondition) XXX_Size() int { + return xxx_messageInfo_StoppingCondition.Size(m) +} +func (m *StoppingCondition) XXX_DiscardUnknown() { + xxx_messageInfo_StoppingCondition.DiscardUnknown(m) +} + +var xxx_messageInfo_StoppingCondition proto.InternalMessageInfo + +func (m *StoppingCondition) GetMaxRuntimeInSeconds() int64 { + if m != nil { + return m.MaxRuntimeInSeconds + } + return 0 +} + +func (m *StoppingCondition) GetMaxWaitTimeInSeconds() int64 { + if m != nil { + return m.MaxWaitTimeInSeconds + } + return 0 +} + +type TrainingJob struct { + AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,1,opt,name=algorithm_specification,json=algorithmSpecification,proto3" json:"algorithm_specification,omitempty"` + TrainingJobConfig *TrainingJobConfig `protobuf:"bytes,2,opt,name=training_job_config,json=trainingJobConfig,proto3" json:"training_job_config,omitempty"` + Interruptible bool `protobuf:"varint,4,opt,name=interruptible,proto3" json:"interruptible,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TrainingJob) Reset() { *m = TrainingJob{} } +func (m *TrainingJob) String() string { return proto.CompactTextString(m) } +func (*TrainingJob) ProtoMessage() {} +func (*TrainingJob) Descriptor() ([]byte, []int) { + return fileDescriptor_030d49acd9e1f6e1, []int{3} +} + +func (m *TrainingJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TrainingJob.Unmarshal(m, b) +} +func (m *TrainingJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TrainingJob.Marshal(b, m, deterministic) +} +func (m *TrainingJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_TrainingJob.Merge(m, src) +} +func (m *TrainingJob) XXX_Size() int { + return xxx_messageInfo_TrainingJob.Size(m) +} +func (m *TrainingJob) XXX_DiscardUnknown() { + xxx_messageInfo_TrainingJob.DiscardUnknown(m) +} + +var xxx_messageInfo_TrainingJob proto.InternalMessageInfo + +func (m *TrainingJob) GetAlgorithmSpecification() *AlgorithmSpecification { + if m != nil { + return m.AlgorithmSpecification + } + return nil +} + +func (m *TrainingJob) GetTrainingJobConfig() *TrainingJobConfig { + if m != nil { + return m.TrainingJobConfig + } + return nil +} + +func (m *TrainingJob) GetInterruptible() bool { + if m != nil { + return m.Interruptible + } + return false +} + +func init() { + proto.RegisterEnum("flyteidl.plugins.sagemaker.InputMode", InputMode_name, InputMode_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.AlgorithmName", AlgorithmName_name, AlgorithmName_value) + proto.RegisterType((*AlgorithmSpecification)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification") + proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition") + proto.RegisterType((*TrainingJobConfig)(nil), "flyteidl.plugins.sagemaker.TrainingJobConfig") + proto.RegisterType((*StoppingCondition)(nil), "flyteidl.plugins.sagemaker.StoppingCondition") + proto.RegisterType((*TrainingJob)(nil), "flyteidl.plugins.sagemaker.TrainingJob") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/sagemaker/trainingjob.proto", fileDescriptor_030d49acd9e1f6e1) +} + +var fileDescriptor_030d49acd9e1f6e1 = []byte{ + // 590 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x4f, 0xdb, 0x4c, + 0x10, 0xc5, 0x24, 0x1f, 0x1f, 0x99, 0x94, 0x28, 0x59, 0x10, 0x8d, 0xb8, 0x34, 0x4a, 0x8b, 0x14, + 0x68, 0xb1, 0xa5, 0xa0, 0xf6, 0xd4, 0x4b, 0x09, 0x14, 0xa5, 0x2a, 0x05, 0x39, 0xe9, 0x0f, 0x55, + 0xaa, 0x56, 0x6b, 0x67, 0x63, 0x06, 0xbc, 0xbb, 0x96, 0xbd, 0xa6, 0x09, 0xa7, 0x9e, 0x7b, 0xe9, + 0x9f, 0xdc, 0x2a, 0x9b, 0xd8, 0x84, 0xd0, 0xa2, 0xf6, 0x36, 0xfb, 0x66, 0xe6, 0xed, 0xcc, 0x3c, + 0xcd, 0xc0, 0xb3, 0x61, 0x38, 0xd6, 0x1c, 0x07, 0xa1, 0x13, 0x85, 0x69, 0x80, 0x32, 0x71, 0x12, + 0x16, 0x70, 0xc1, 0x2e, 0x79, 0xec, 0xe8, 0x98, 0xa1, 0x44, 0x19, 0x5c, 0x28, 0xcf, 0x8e, 0x62, + 0xa5, 0x15, 0xd9, 0xca, 0xa2, 0xed, 0x59, 0xb4, 0x9d, 0x47, 0x37, 0x7f, 0x14, 0x60, 0xf3, 0x55, + 0x18, 0xa8, 0x18, 0xf5, 0xb9, 0xe8, 0x45, 0xdc, 0xc7, 0x21, 0xfa, 0x4c, 0xa3, 0x92, 0xe4, 0x10, + 0x00, 0x65, 0x94, 0x6a, 0x2a, 0xd4, 0x80, 0xd7, 0xad, 0x86, 0xd5, 0xaa, 0xb4, 0xb7, 0xed, 0x3f, + 0x73, 0xd9, 0xdd, 0x49, 0xf4, 0x89, 0x1a, 0x70, 0xb7, 0x84, 0x99, 0x49, 0xce, 0xa0, 0xc2, 0x32, + 0x7e, 0x2a, 0x99, 0xe0, 0xf5, 0x65, 0xc3, 0xb4, 0x73, 0x1f, 0x53, 0x5e, 0xd1, 0x3b, 0x26, 0xb8, + 0xbb, 0xc6, 0xe6, 0x9f, 0xe4, 0x29, 0xd4, 0x6e, 0x18, 0xaf, 0x78, 0x9c, 0xa0, 0x92, 0xf5, 0x42, + 0xc3, 0x6a, 0x95, 0xdc, 0x6a, 0xee, 0xf8, 0x30, 0xc5, 0x49, 0x0c, 0x44, 0x70, 0x1d, 0xa3, 0x4f, + 0x07, 0x7c, 0x88, 0x12, 0x27, 0x9d, 0x25, 0xf5, 0x62, 0xa3, 0xd0, 0x2a, 0xb7, 0x3b, 0x7f, 0x55, + 0xc2, 0xad, 0xa1, 0xd8, 0x27, 0x86, 0xec, 0x30, 0xe7, 0x72, 0x6b, 0x62, 0x01, 0x49, 0xb6, 0x5e, + 0x42, 0x75, 0x31, 0x8c, 0x10, 0x28, 0x9a, 0xe6, 0x2d, 0x53, 0xa7, 0xb1, 0xc9, 0x06, 0xfc, 0x17, + 0xf3, 0x80, 0x8f, 0xcc, 0x44, 0x4a, 0xee, 0xf4, 0xd1, 0xfc, 0x6e, 0x41, 0xad, 0x3f, 0xd3, 0xf0, + 0x8d, 0xf2, 0x3a, 0x4a, 0x0e, 0x31, 0x20, 0xdb, 0x50, 0x41, 0x99, 0x68, 0x26, 0x7d, 0x4e, 0x7d, + 0x95, 0x4a, 0x6d, 0x98, 0x0a, 0xee, 0x5a, 0x86, 0x76, 0x26, 0x20, 0x79, 0x0c, 0x39, 0x40, 0xf5, + 0x38, 0xe2, 0x33, 0xea, 0x07, 0x19, 0xd8, 0x1f, 0x47, 0x9c, 0xec, 0x40, 0xed, 0x4a, 0x85, 0xa9, + 0xe0, 0x34, 0xc1, 0x6b, 0x4e, 0x51, 0xd2, 0xc0, 0x33, 0x03, 0x2c, 0xb8, 0x95, 0xa9, 0xa3, 0x87, + 0xd7, 0xbc, 0x2b, 0x8f, 0xbd, 0xe6, 0x37, 0x0b, 0x6a, 0x3d, 0xad, 0xa2, 0x08, 0x65, 0xd0, 0x51, + 0x72, 0x30, 0x6d, 0x66, 0x1f, 0x36, 0x05, 0x1b, 0xd1, 0x38, 0x95, 0x1a, 0x85, 0x21, 0x48, 0xb8, + 0xaf, 0xe4, 0x20, 0x99, 0x15, 0xb5, 0x2e, 0xd8, 0xc8, 0x9d, 0x3a, 0xbb, 0xb2, 0x37, 0x75, 0x91, + 0x17, 0x50, 0x9f, 0x24, 0x7d, 0x65, 0xa8, 0xe9, 0x62, 0xda, 0xb2, 0x49, 0xdb, 0x10, 0x6c, 0xf4, + 0x91, 0xa1, 0xee, 0xcf, 0xe7, 0x35, 0x7f, 0x5a, 0x50, 0x9e, 0x9b, 0x07, 0xb9, 0x84, 0x87, 0x37, + 0xf2, 0x27, 0xf3, 0xe2, 0x98, 0xdf, 0xcb, 0xed, 0xf6, 0xbf, 0xcb, 0xea, 0x6e, 0xb2, 0xdf, 0xef, + 0xc0, 0x17, 0x58, 0xcf, 0xf6, 0x89, 0x5e, 0x28, 0x8f, 0xfa, 0x46, 0x0d, 0x53, 0x6f, 0xb9, 0xbd, + 0x77, 0xdf, 0x47, 0x77, 0x24, 0x74, 0x6b, 0xfa, 0x8e, 0xaa, 0x4f, 0x26, 0x72, 0x69, 0x1e, 0xc7, + 0x69, 0xa4, 0xd1, 0x0b, 0x79, 0xbd, 0xd8, 0xb0, 0x5a, 0xab, 0xee, 0x6d, 0x70, 0xf7, 0x11, 0x94, + 0xf2, 0xd5, 0x22, 0xab, 0x50, 0x7c, 0xdd, 0x7d, 0x7b, 0x54, 0x5d, 0x9a, 0x58, 0x67, 0xdd, 0xb3, + 0xa3, 0xaa, 0xb5, 0xdb, 0x82, 0xb5, 0x5b, 0x1b, 0x43, 0x00, 0x56, 0x3a, 0xef, 0x7b, 0xfd, 0xd3, + 0x93, 0xea, 0x12, 0x29, 0xc3, 0xff, 0x9f, 0x8e, 0x0f, 0x4e, 0x4f, 0x7b, 0xfd, 0xaa, 0x75, 0xf0, + 0xfc, 0xf3, 0x7e, 0x80, 0xfa, 0x3c, 0xf5, 0x6c, 0x5f, 0x09, 0x27, 0x1c, 0x0f, 0xb5, 0x93, 0x9f, + 0x92, 0x80, 0x4b, 0x27, 0xf2, 0xf6, 0x02, 0xe5, 0x2c, 0x5e, 0x17, 0x6f, 0xc5, 0x1c, 0x92, 0xfd, + 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x7a, 0x3d, 0x2e, 0x78, 0x04, 0x00, 0x00, +} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go new file mode 100644 index 000000000..b7c0f198f --- /dev/null +++ b/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go @@ -0,0 +1,428 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/trainingjob.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _trainingjob_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on AlgorithmSpecification with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AlgorithmSpecification) Validate() error { + if m == nil { + return nil + } + + // no validation rules for InputMode + + // no validation rules for AlgorithmName + + // no validation rules for AlgorithmVersion + + for idx, item := range m.GetMetricDefinitions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AlgorithmSpecificationValidationError{ + field: fmt.Sprintf("MetricDefinitions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// AlgorithmSpecificationValidationError is the validation error returned by +// AlgorithmSpecification.Validate if the designated constraints aren't met. +type AlgorithmSpecificationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AlgorithmSpecificationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AlgorithmSpecificationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AlgorithmSpecificationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AlgorithmSpecificationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AlgorithmSpecificationValidationError) ErrorName() string { + return "AlgorithmSpecificationValidationError" +} + +// Error satisfies the builtin error interface +func (e AlgorithmSpecificationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAlgorithmSpecification.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AlgorithmSpecificationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AlgorithmSpecificationValidationError{} + +// Validate checks the field values on TrainingJobConfig with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TrainingJobConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for InstanceCount + + // no validation rules for InstanceType + + // no validation rules for VolumeSizeInGb + + return nil +} + +// TrainingJobConfigValidationError is the validation error returned by +// TrainingJobConfig.Validate if the designated constraints aren't met. +type TrainingJobConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TrainingJobConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TrainingJobConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TrainingJobConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TrainingJobConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TrainingJobConfigValidationError) ErrorName() string { + return "TrainingJobConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e TrainingJobConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTrainingJobConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TrainingJobConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TrainingJobConfigValidationError{} + +// Validate checks the field values on StoppingCondition with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *StoppingCondition) Validate() error { + if m == nil { + return nil + } + + // no validation rules for MaxRuntimeInSeconds + + // no validation rules for MaxWaitTimeInSeconds + + return nil +} + +// StoppingConditionValidationError is the validation error returned by +// StoppingCondition.Validate if the designated constraints aren't met. +type StoppingConditionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StoppingConditionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StoppingConditionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StoppingConditionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StoppingConditionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StoppingConditionValidationError) ErrorName() string { + return "StoppingConditionValidationError" +} + +// Error satisfies the builtin error interface +func (e StoppingConditionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sStoppingCondition.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StoppingConditionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StoppingConditionValidationError{} + +// Validate checks the field values on TrainingJob with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TrainingJob) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAlgorithmSpecification()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TrainingJobValidationError{ + field: "AlgorithmSpecification", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTrainingJobConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TrainingJobValidationError{ + field: "TrainingJobConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Interruptible + + return nil +} + +// TrainingJobValidationError is the validation error returned by +// TrainingJob.Validate if the designated constraints aren't met. +type TrainingJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TrainingJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TrainingJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TrainingJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TrainingJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TrainingJobValidationError) ErrorName() string { return "TrainingJobValidationError" } + +// Error satisfies the builtin error interface +func (e TrainingJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTrainingJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TrainingJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TrainingJobValidationError{} + +// Validate checks the field values on AlgorithmSpecification_MetricDefinition +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *AlgorithmSpecification_MetricDefinition) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Regex + + return nil +} + +// AlgorithmSpecification_MetricDefinitionValidationError is the validation +// error returned by AlgorithmSpecification_MetricDefinition.Validate if the +// designated constraints aren't met. +type AlgorithmSpecification_MetricDefinitionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AlgorithmSpecification_MetricDefinitionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AlgorithmSpecification_MetricDefinitionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AlgorithmSpecification_MetricDefinitionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AlgorithmSpecification_MetricDefinitionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AlgorithmSpecification_MetricDefinitionValidationError) ErrorName() string { + return "AlgorithmSpecification_MetricDefinitionValidationError" +} + +// Error satisfies the builtin error interface +func (e AlgorithmSpecification_MetricDefinitionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAlgorithmSpecification_MetricDefinition.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AlgorithmSpecification_MetricDefinitionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AlgorithmSpecification_MetricDefinitionValidationError{} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java b/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java new file mode 100644 index 000000000..7ff2be48e --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java @@ -0,0 +1,3973 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/parameterranges.proto + +package flyteidl.plugins.sagemaker; + +public final class Parameterranges { + private Parameterranges() {} + 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 flyteidl.plugins.sagemaker.HyperparameterScalingType} + */ + public enum HyperparameterScalingType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * AUTO = 0; + */ + AUTO(0), + /** + * LINEAR = 1; + */ + LINEAR(1), + /** + * LOGARITHMIC = 2; + */ + LOGARITHMIC(2), + /** + * REVERSELOGARITHMIC = 3; + */ + REVERSELOGARITHMIC(3), + UNRECOGNIZED(-1), + ; + + /** + * AUTO = 0; + */ + public static final int AUTO_VALUE = 0; + /** + * LINEAR = 1; + */ + public static final int LINEAR_VALUE = 1; + /** + * LOGARITHMIC = 2; + */ + public static final int LOGARITHMIC_VALUE = 2; + /** + * REVERSELOGARITHMIC = 3; + */ + public static final int REVERSELOGARITHMIC_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HyperparameterScalingType valueOf(int value) { + return forNumber(value); + } + + public static HyperparameterScalingType forNumber(int value) { + switch (value) { + case 0: return AUTO; + case 1: return LINEAR; + case 2: return LOGARITHMIC; + case 3: return REVERSELOGARITHMIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HyperparameterScalingType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HyperparameterScalingType findValueByNumber(int number) { + return HyperparameterScalingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.Parameterranges.getDescriptor().getEnumTypes().get(0); + } + + private static final HyperparameterScalingType[] VALUES = values(); + + public static HyperparameterScalingType 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 HyperparameterScalingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) + } + + public interface ContinuousParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ContinuousParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * double max_value = 1; + */ + double getMaxValue(); + + /** + * double min_value = 2; + */ + double getMinValue(); + + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + int getScalingTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} + */ + public static final class ContinuousParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ContinuousParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContinuousParameterRange.newBuilder() to construct. + private ContinuousParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContinuousParameterRange() { + scalingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContinuousParameterRange( + 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 9: { + + maxValue_ = input.readDouble(); + break; + } + case 17: { + + minValue_ = input.readDouble(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + scalingType_ = rawValue; + 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 flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder.class); + } + + public static final int MAX_VALUE_FIELD_NUMBER = 1; + private double maxValue_; + /** + * double max_value = 1; + */ + public double getMaxValue() { + return maxValue_; + } + + public static final int MIN_VALUE_FIELD_NUMBER = 2; + private double minValue_; + /** + * double min_value = 2; + */ + public double getMinValue() { + return minValue_; + } + + public static final int SCALING_TYPE_FIELD_NUMBER = 3; + private int scalingType_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; + } + + 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 (maxValue_ != 0D) { + output.writeDouble(1, maxValue_); + } + if (minValue_ != 0D) { + output.writeDouble(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { + output.writeEnum(3, scalingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxValue_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, maxValue_); + } + if (minValue_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, scalingType_); + } + 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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) obj; + + if (java.lang.Double.doubleToLongBits(getMaxValue()) + != java.lang.Double.doubleToLongBits( + other.getMaxValue())) return false; + if (java.lang.Double.doubleToLongBits(getMinValue()) + != java.lang.Double.doubleToLongBits( + other.getMinValue())) return false; + if (scalingType_ != other.scalingType_) 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) + MAX_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaxValue())); + hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinValue())); + hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + scalingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange 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(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ContinuousParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.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(); + maxValue_ = 0D; + + minValue_ = 0D; + + scalingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange build() { + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange buildPartial() { + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange(this); + result.maxValue_ = maxValue_; + result.minValue_ = minValue_; + result.scalingType_ = scalingType_; + 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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange other) { + if (other == flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance()) return this; + if (other.getMaxValue() != 0D) { + setMaxValue(other.getMaxValue()); + } + if (other.getMinValue() != 0D) { + setMinValue(other.getMinValue()); + } + if (other.scalingType_ != 0) { + setScalingTypeValue(other.getScalingTypeValue()); + } + 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 { + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double maxValue_ ; + /** + * double max_value = 1; + */ + public double getMaxValue() { + return maxValue_; + } + /** + * double max_value = 1; + */ + public Builder setMaxValue(double value) { + + maxValue_ = value; + onChanged(); + return this; + } + /** + * double max_value = 1; + */ + public Builder clearMaxValue() { + + maxValue_ = 0D; + onChanged(); + return this; + } + + private double minValue_ ; + /** + * double min_value = 2; + */ + public double getMinValue() { + return minValue_; + } + /** + * double min_value = 2; + */ + public Builder setMinValue(double value) { + + minValue_ = value; + onChanged(); + return this; + } + /** + * double min_value = 2; + */ + public Builder clearMinValue() { + + minValue_ = 0D; + onChanged(); + return this; + } + + private int scalingType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder setScalingTypeValue(int value) { + scalingType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder setScalingType(flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType value) { + if (value == null) { + throw new NullPointerException(); + } + + scalingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder clearScalingType() { + + scalingType_ = 0; + 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:flyteidl.plugins.sagemaker.ContinuousParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) + private static final flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange(); + } + + public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContinuousParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContinuousParameterRange(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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IntegerParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.IntegerParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 max_value = 1; + */ + long getMaxValue(); + + /** + * int64 min_value = 2; + */ + long getMinValue(); + + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + int getScalingTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} + */ + public static final class IntegerParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) + IntegerParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntegerParameterRange.newBuilder() to construct. + private IntegerParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IntegerParameterRange() { + scalingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IntegerParameterRange( + 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 8: { + + maxValue_ = input.readInt64(); + break; + } + case 16: { + + minValue_ = input.readInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + scalingType_ = rawValue; + 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 flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder.class); + } + + public static final int MAX_VALUE_FIELD_NUMBER = 1; + private long maxValue_; + /** + * int64 max_value = 1; + */ + public long getMaxValue() { + return maxValue_; + } + + public static final int MIN_VALUE_FIELD_NUMBER = 2; + private long minValue_; + /** + * int64 min_value = 2; + */ + public long getMinValue() { + return minValue_; + } + + public static final int SCALING_TYPE_FIELD_NUMBER = 3; + private int scalingType_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; + } + + 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 (maxValue_ != 0L) { + output.writeInt64(1, maxValue_); + } + if (minValue_ != 0L) { + output.writeInt64(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { + output.writeEnum(3, scalingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxValue_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxValue_); + } + if (minValue_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, scalingType_); + } + 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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange other = (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) obj; + + if (getMaxValue() + != other.getMaxValue()) return false; + if (getMinValue() + != other.getMinValue()) return false; + if (scalingType_ != other.scalingType_) 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) + MAX_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxValue()); + hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinValue()); + hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + scalingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange 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(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange 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 flyteidl.plugins.sagemaker.IntegerParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.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(); + maxValue_ = 0L; + + minValue_ = 0L; + + scalingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange build() { + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange buildPartial() { + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange result = new flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange(this); + result.maxValue_ = maxValue_; + result.minValue_ = minValue_; + result.scalingType_ = scalingType_; + 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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange other) { + if (other == flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance()) return this; + if (other.getMaxValue() != 0L) { + setMaxValue(other.getMaxValue()); + } + if (other.getMinValue() != 0L) { + setMinValue(other.getMinValue()); + } + if (other.scalingType_ != 0) { + setScalingTypeValue(other.getScalingTypeValue()); + } + 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 { + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxValue_ ; + /** + * int64 max_value = 1; + */ + public long getMaxValue() { + return maxValue_; + } + /** + * int64 max_value = 1; + */ + public Builder setMaxValue(long value) { + + maxValue_ = value; + onChanged(); + return this; + } + /** + * int64 max_value = 1; + */ + public Builder clearMaxValue() { + + maxValue_ = 0L; + onChanged(); + return this; + } + + private long minValue_ ; + /** + * int64 min_value = 2; + */ + public long getMinValue() { + return minValue_; + } + /** + * int64 min_value = 2; + */ + public Builder setMinValue(long value) { + + minValue_ = value; + onChanged(); + return this; + } + /** + * int64 min_value = 2; + */ + public Builder clearMinValue() { + + minValue_ = 0L; + onChanged(); + return this; + } + + private int scalingType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder setScalingTypeValue(int value) { + scalingType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder setScalingType(flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType value) { + if (value == null) { + throw new NullPointerException(); + } + + scalingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder clearScalingType() { + + scalingType_ = 0; + 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:flyteidl.plugins.sagemaker.IntegerParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) + private static final flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange(); + } + + public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntegerParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IntegerParameterRange(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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CategoricalParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.CategoricalParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string values = 1; + */ + java.util.List + getValuesList(); + /** + * repeated string values = 1; + */ + int getValuesCount(); + /** + * repeated string values = 1; + */ + java.lang.String getValues(int index); + /** + * repeated string values = 1; + */ + com.google.protobuf.ByteString + getValuesBytes(int index); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} + */ + public static final class CategoricalParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) + CategoricalParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CategoricalParameterRange.newBuilder() to construct. + private CategoricalParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CategoricalParameterRange() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CategoricalParameterRange( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add(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)) { + values_ = values_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList values_; + /** + * repeated string values = 1; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_; + } + /** + * repeated string values = 1; + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(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 < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + 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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) obj; + + if (!getValuesList() + .equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange 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(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.CategoricalParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.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(); + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange build() { + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange buildPartial() { + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + 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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange other) { + if (other == flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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 { + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string values = 1; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * repeated string values = 1; + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * repeated string values = 1; + */ + public Builder setValues( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder addValues( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(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:flyteidl.plugins.sagemaker.CategoricalParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) + private static final flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange(); + } + + public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CategoricalParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CategoricalParameterRange(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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterRangeOneOfOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + boolean hasContinuousParameterRange(); + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange(); + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + boolean hasIntegerParameterRange(); + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange(); + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + boolean hasCategoricalParameterRange(); + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange(); + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder(); + + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.ParameterRangeTypeCase getParameterRangeTypeCase(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf} + */ + public static final class ParameterRangeOneOf extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ParameterRangeOneOfOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterRangeOneOf.newBuilder() to construct. + private ParameterRangeOneOf(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterRangeOneOf() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterRangeOneOf( + 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: { + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder subBuilder = null; + if (parameterRangeTypeCase_ == 1) { + subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_).toBuilder(); + } + parameterRangeType_ = + input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); + } + parameterRangeTypeCase_ = 1; + break; + } + case 18: { + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder subBuilder = null; + if (parameterRangeTypeCase_ == 2) { + subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_).toBuilder(); + } + parameterRangeType_ = + input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); + } + parameterRangeTypeCase_ = 2; + break; + } + case 26: { + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder subBuilder = null; + if (parameterRangeTypeCase_ == 3) { + subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_).toBuilder(); + } + parameterRangeType_ = + input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); + } + parameterRangeTypeCase_ = 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 flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.Builder.class); + } + + private int parameterRangeTypeCase_ = 0; + private java.lang.Object parameterRangeType_; + public enum ParameterRangeTypeCase + implements com.google.protobuf.Internal.EnumLite { + CONTINUOUS_PARAMETER_RANGE(1), + INTEGER_PARAMETER_RANGE(2), + CATEGORICAL_PARAMETER_RANGE(3), + PARAMETERRANGETYPE_NOT_SET(0); + private final int value; + private ParameterRangeTypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ParameterRangeTypeCase valueOf(int value) { + return forNumber(value); + } + + public static ParameterRangeTypeCase forNumber(int value) { + switch (value) { + case 1: return CONTINUOUS_PARAMETER_RANGE; + case 2: return INTEGER_PARAMETER_RANGE; + case 3: return CATEGORICAL_PARAMETER_RANGE; + case 0: return PARAMETERRANGETYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ParameterRangeTypeCase + getParameterRangeTypeCase() { + return ParameterRangeTypeCase.forNumber( + parameterRangeTypeCase_); + } + + public static final int CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER = 1; + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public boolean hasContinuousParameterRange() { + return parameterRangeTypeCase_ == 1; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange() { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } + + public static final int INTEGER_PARAMETER_RANGE_FIELD_NUMBER = 2; + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public boolean hasIntegerParameterRange() { + return parameterRangeTypeCase_ == 2; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange() { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } + + public static final int CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER = 3; + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public boolean hasCategoricalParameterRange() { + return parameterRangeTypeCase_ == 3; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange() { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (parameterRangeTypeCase_ == 1) { + output.writeMessage(1, (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 2) { + output.writeMessage(2, (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 3) { + output.writeMessage(3, (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (parameterRangeTypeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_); + } + 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf other = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf) obj; + + if (!getParameterRangeTypeCase().equals(other.getParameterRangeTypeCase())) return false; + switch (parameterRangeTypeCase_) { + case 1: + if (!getContinuousParameterRange() + .equals(other.getContinuousParameterRange())) return false; + break; + case 2: + if (!getIntegerParameterRange() + .equals(other.getIntegerParameterRange())) return false; + break; + case 3: + if (!getCategoricalParameterRange() + .equals(other.getCategoricalParameterRange())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (parameterRangeTypeCase_) { + case 1: + hash = (37 * hash) + CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getContinuousParameterRange().hashCode(); + break; + case 2: + hash = (37 * hash) + INTEGER_PARAMETER_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIntegerParameterRange().hashCode(); + break; + case 3: + hash = (37 * hash) + CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getCategoricalParameterRange().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf 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(flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangeOneOf} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOfOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.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(); + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf build() { + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf buildPartial() { + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf result = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf(this); + if (parameterRangeTypeCase_ == 1) { + if (continuousParameterRangeBuilder_ == null) { + result.parameterRangeType_ = parameterRangeType_; + } else { + result.parameterRangeType_ = continuousParameterRangeBuilder_.build(); + } + } + if (parameterRangeTypeCase_ == 2) { + if (integerParameterRangeBuilder_ == null) { + result.parameterRangeType_ = parameterRangeType_; + } else { + result.parameterRangeType_ = integerParameterRangeBuilder_.build(); + } + } + if (parameterRangeTypeCase_ == 3) { + if (categoricalParameterRangeBuilder_ == null) { + result.parameterRangeType_ = parameterRangeType_; + } else { + result.parameterRangeType_ = categoricalParameterRangeBuilder_.build(); + } + } + result.parameterRangeTypeCase_ = parameterRangeTypeCase_; + 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf) { + return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf other) { + if (other == flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance()) return this; + switch (other.getParameterRangeTypeCase()) { + case CONTINUOUS_PARAMETER_RANGE: { + mergeContinuousParameterRange(other.getContinuousParameterRange()); + break; + } + case INTEGER_PARAMETER_RANGE: { + mergeIntegerParameterRange(other.getIntegerParameterRange()); + break; + } + case CATEGORICAL_PARAMETER_RANGE: { + mergeCategoricalParameterRange(other.getCategoricalParameterRange()); + break; + } + case PARAMETERRANGETYPE_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 { + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int parameterRangeTypeCase_ = 0; + private java.lang.Object parameterRangeType_; + public ParameterRangeTypeCase + getParameterRangeTypeCase() { + return ParameterRangeTypeCase.forNumber( + parameterRangeTypeCase_); + } + + public Builder clearParameterRangeType() { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder> continuousParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public boolean hasContinuousParameterRange() { + return parameterRangeTypeCase_ == 1; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange() { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypeCase_ == 1) { + return continuousParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange value) { + if (continuousParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeType_ = value; + onChanged(); + } else { + continuousParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder setContinuousParameterRange( + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder builderForValue) { + if (continuousParameterRangeBuilder_ == null) { + parameterRangeType_ = builderForValue.build(); + onChanged(); + } else { + continuousParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypeCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange value) { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 1 && + parameterRangeType_ != flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeType_ = value; + } + onChanged(); + } else { + if (parameterRangeTypeCase_ == 1) { + continuousParameterRangeBuilder_.mergeFrom(value); + } + continuousParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder clearContinuousParameterRange() { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 1) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + } + } else { + if (parameterRangeTypeCase_ == 1) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + } + continuousParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder getContinuousParameterRangeBuilder() { + return getContinuousParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { + if ((parameterRangeTypeCase_ == 1) && (continuousParameterRangeBuilder_ != null)) { + return continuousParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder> + getContinuousParameterRangeFieldBuilder() { + if (continuousParameterRangeBuilder_ == null) { + if (!(parameterRangeTypeCase_ == 1)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance(); + } + continuousParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_, + getParentForChildren(), + isClean()); + parameterRangeType_ = null; + } + parameterRangeTypeCase_ = 1; + onChanged();; + return continuousParameterRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder> integerParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public boolean hasIntegerParameterRange() { + return parameterRangeTypeCase_ == 2; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange() { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypeCase_ == 2) { + return integerParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange value) { + if (integerParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeType_ = value; + onChanged(); + } else { + integerParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder setIntegerParameterRange( + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder builderForValue) { + if (integerParameterRangeBuilder_ == null) { + parameterRangeType_ = builderForValue.build(); + onChanged(); + } else { + integerParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypeCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange value) { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 2 && + parameterRangeType_ != flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeType_ = value; + } + onChanged(); + } else { + if (parameterRangeTypeCase_ == 2) { + integerParameterRangeBuilder_.mergeFrom(value); + } + integerParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder clearIntegerParameterRange() { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 2) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + } + } else { + if (parameterRangeTypeCase_ == 2) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + } + integerParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder getIntegerParameterRangeBuilder() { + return getIntegerParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { + if ((parameterRangeTypeCase_ == 2) && (integerParameterRangeBuilder_ != null)) { + return integerParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder> + getIntegerParameterRangeFieldBuilder() { + if (integerParameterRangeBuilder_ == null) { + if (!(parameterRangeTypeCase_ == 2)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance(); + } + integerParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_, + getParentForChildren(), + isClean()); + parameterRangeType_ = null; + } + parameterRangeTypeCase_ = 2; + onChanged();; + return integerParameterRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder> categoricalParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public boolean hasCategoricalParameterRange() { + return parameterRangeTypeCase_ == 3; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange() { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypeCase_ == 3) { + return categoricalParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange value) { + if (categoricalParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeType_ = value; + onChanged(); + } else { + categoricalParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder setCategoricalParameterRange( + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder builderForValue) { + if (categoricalParameterRangeBuilder_ == null) { + parameterRangeType_ = builderForValue.build(); + onChanged(); + } else { + categoricalParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypeCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange value) { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 3 && + parameterRangeType_ != flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeType_ = value; + } + onChanged(); + } else { + if (parameterRangeTypeCase_ == 3) { + categoricalParameterRangeBuilder_.mergeFrom(value); + } + categoricalParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder clearCategoricalParameterRange() { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 3) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + } + } else { + if (parameterRangeTypeCase_ == 3) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + } + categoricalParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder getCategoricalParameterRangeBuilder() { + return getCategoricalParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { + if ((parameterRangeTypeCase_ == 3) && (categoricalParameterRangeBuilder_ != null)) { + return categoricalParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder> + getCategoricalParameterRangeFieldBuilder() { + if (categoricalParameterRangeBuilder_ == null) { + if (!(parameterRangeTypeCase_ == 3)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance(); + } + categoricalParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_, + getParentForChildren(), + isClean()); + parameterRangeType_ = null; + } + parameterRangeTypeCase_ = 3; + onChanged();; + return categoricalParameterRangeBuilder_; + } + @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:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + private static final flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf(); + } + + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterRangeOneOf parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterRangeOneOf(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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterRangesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRanges) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + int getParameterRangeMapCount(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + boolean containsParameterRangeMap( + java.lang.String key); + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameterRangeMap(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + java.util.Map + getParameterRangeMapMap(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf defaultValue); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} + */ + public static final class ParameterRanges extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRanges) + ParameterRangesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterRanges.newBuilder() to construct. + private ParameterRanges(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterRanges() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterRanges( + 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)) { + parameterRangeMap_ = com.google.protobuf.MapField.newMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + parameterRangeMap__ = input.readMessage( + ParameterRangeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + parameterRangeMap_.getMutableMap().put( + parameterRangeMap__.getKey(), parameterRangeMap__.getValue()); + 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 flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder.class); + } + + public static final int PARAMETER_RANGE_MAP_FIELD_NUMBER = 1; + private static final class ParameterRangeMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf> parameterRangeMap_; + private com.google.protobuf.MapField + internalGetParameterRangeMap() { + if (parameterRangeMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + return parameterRangeMap_; + } + + public int getParameterRangeMapCount() { + return internalGetParameterRangeMap().getMap().size(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public boolean containsParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameterRangeMap().getMap().containsKey(key); + } + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameterRangeMap() { + return getParameterRangeMapMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public java.util.Map getParameterRangeMapMap() { + return internalGetParameterRangeMap().getMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParameterRangeMap(), + ParameterRangeMapDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetParameterRangeMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameterRangeMap__ = ParameterRangeMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, parameterRangeMap__); + } + 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges other = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges) obj; + + if (!internalGetParameterRangeMap().equals( + other.internalGetParameterRangeMap())) 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 (!internalGetParameterRangeMap().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETER_RANGE_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameterRangeMap().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges 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(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRanges} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRanges) + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.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(); + internalGetMutableParameterRangeMap().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges build() { + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges buildPartial() { + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges result = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges(this); + int from_bitField0_ = bitField0_; + result.parameterRangeMap_ = internalGetParameterRangeMap(); + result.parameterRangeMap_.makeImmutable(); + 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges) { + return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges other) { + if (other == flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance()) return this; + internalGetMutableParameterRangeMap().mergeFrom( + other.internalGetParameterRangeMap()); + 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 { + flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf> parameterRangeMap_; + private com.google.protobuf.MapField + internalGetParameterRangeMap() { + if (parameterRangeMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + return parameterRangeMap_; + } + private com.google.protobuf.MapField + internalGetMutableParameterRangeMap() { + onChanged();; + if (parameterRangeMap_ == null) { + parameterRangeMap_ = com.google.protobuf.MapField.newMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + if (!parameterRangeMap_.isMutable()) { + parameterRangeMap_ = parameterRangeMap_.copy(); + } + return parameterRangeMap_; + } + + public int getParameterRangeMapCount() { + return internalGetParameterRangeMap().getMap().size(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public boolean containsParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameterRangeMap().getMap().containsKey(key); + } + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameterRangeMap() { + return getParameterRangeMapMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public java.util.Map getParameterRangeMapMap() { + return internalGetParameterRangeMap().getMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameterRangeMap() { + internalGetMutableParameterRangeMap().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public Builder removeParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameterRangeMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameterRangeMap() { + return internalGetMutableParameterRangeMap().getMutableMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + public Builder putParameterRangeMap( + java.lang.String key, + flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameterRangeMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public Builder putAllParameterRangeMap( + java.util.Map values) { + internalGetMutableParameterRangeMap().getMutableMap() + .putAll(values); + 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:flyteidl.plugins.sagemaker.ParameterRanges) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) + private static final flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges(); + } + + public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterRanges parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterRanges(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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0flyteidl/plugins/sagemaker/parameterra" + + "nges.proto\022\032flyteidl.plugins.sagemaker\"\215" + + "\001\n\030ContinuousParameterRange\022\021\n\tmax_value" + + "\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_typ" + + "e\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hyp" + + "erparameterScalingType\"\212\001\n\025IntegerParame" + + "terRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_value" + + "\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl." + + "plugins.sagemaker.HyperparameterScalingT" + + "ype\"+\n\031CategoricalParameterRange\022\016\n\006valu" + + "es\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032cont" + + "inuous_parameter_range\030\001 \001(\01324.flyteidl." + + "plugins.sagemaker.ContinuousParameterRan" + + "geH\000\022T\n\027integer_parameter_range\030\002 \001(\01321." + + "flyteidl.plugins.sagemaker.IntegerParame" + + "terRangeH\000\022\\\n\033categorical_parameter_rang" + + "e\030\003 \001(\01325.flyteidl.plugins.sagemaker.Cat" + + "egoricalParameterRangeH\000B\026\n\024parameter_ra" + + "nge_type\"\335\001\n\017ParameterRanges\022_\n\023paramete" + + "r_range_map\030\001 \003(\0132B.flyteidl.plugins.sag" + + "emaker.ParameterRanges.ParameterRangeMap" + + "Entry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001" + + " \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins.s" + + "agemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hype" + + "rparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEA" + + "R\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHM" + + "IC\020\003B5Z3github.com/lyft/flyteidl/gen/pb-" + + "go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor, + new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor, + new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor, + new java.lang.String[] { "ContinuousParameterRange", "IntegerParameterRange", "CategoricalParameterRange", "ParameterRangeType", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor, + new java.lang.String[] { "ParameterRangeMap", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor = + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java new file mode 100644 index 000000000..a8637c2ce --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java @@ -0,0 +1,4207 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/trainingjob.proto + +package flyteidl.plugins.sagemaker; + +public final class Trainingjob { + private Trainingjob() {} + 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 flyteidl.plugins.sagemaker.InputMode} + */ + public enum InputMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + * FILE = 0; + */ + FILE(0), + /** + * PIPE = 1; + */ + PIPE(1), + UNRECOGNIZED(-1), + ; + + /** + * FILE = 0; + */ + public static final int FILE_VALUE = 0; + /** + * PIPE = 1; + */ + public static final int PIPE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InputMode valueOf(int value) { + return forNumber(value); + } + + public static InputMode forNumber(int value) { + switch (value) { + case 0: return FILE; + case 1: return PIPE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + InputMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InputMode findValueByNumber(int number) { + return InputMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.Trainingjob.getDescriptor().getEnumTypes().get(0); + } + + private static final InputMode[] VALUES = values(); + + public static InputMode 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 InputMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputMode) + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.AlgorithmName} + */ + public enum AlgorithmName + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CUSTOM = 0; + */ + CUSTOM(0), + /** + * XGBOOST = 1; + */ + XGBOOST(1), + UNRECOGNIZED(-1), + ; + + /** + * CUSTOM = 0; + */ + public static final int CUSTOM_VALUE = 0; + /** + * XGBOOST = 1; + */ + public static final int XGBOOST_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AlgorithmName valueOf(int value) { + return forNumber(value); + } + + public static AlgorithmName forNumber(int value) { + switch (value) { + case 0: return CUSTOM; + case 1: return XGBOOST; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AlgorithmName> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AlgorithmName findValueByNumber(int number) { + return AlgorithmName.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.Trainingjob.getDescriptor().getEnumTypes().get(1); + } + + private static final AlgorithmName[] VALUES = values(); + + public static AlgorithmName 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 AlgorithmName(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.AlgorithmName) + } + + public interface AlgorithmSpecificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + int getInputModeValue(); + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + flyteidl.plugins.sagemaker.Trainingjob.InputMode getInputMode(); + + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + int getAlgorithmNameValue(); + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName getAlgorithmName(); + + /** + * string algorithm_version = 3; + */ + java.lang.String getAlgorithmVersion(); + /** + * string algorithm_version = 3; + */ + com.google.protobuf.ByteString + getAlgorithmVersionBytes(); + + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + java.util.List + getMetricDefinitionsList(); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + int getMetricDefinitionsCount(); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + java.util.List + getMetricDefinitionsOrBuilderList(); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} + */ + public static final class AlgorithmSpecification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) + AlgorithmSpecificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlgorithmSpecification.newBuilder() to construct. + private AlgorithmSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlgorithmSpecification() { + inputMode_ = 0; + algorithmName_ = 0; + algorithmVersion_ = ""; + metricDefinitions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AlgorithmSpecification( + 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 8: { + int rawValue = input.readEnum(); + + inputMode_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + algorithmName_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + algorithmVersion_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + metricDefinitions_.add( + input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.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_ & 0x00000008) != 0)) { + metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder.class); + } + + public interface MetricDefinitionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + */ + java.lang.String getName(); + /** + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string regex = 2; + */ + java.lang.String getRegex(); + /** + * string regex = 2; + */ + com.google.protobuf.ByteString + getRegexBytes(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} + */ + public static final class MetricDefinition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + MetricDefinitionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricDefinition.newBuilder() to construct. + private MetricDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MetricDefinition() { + name_ = ""; + regex_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MetricDefinition( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + regex_ = 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 flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + */ + 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; + } + } + /** + * string name = 1; + */ + 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 REGEX_FIELD_NUMBER = 2; + private volatile java.lang.Object regex_; + /** + * string regex = 2; + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + 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(); + regex_ = s; + return s; + } + } + /** + * string regex = 2; + */ + public com.google.protobuf.ByteString + getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getRegexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regex_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getRegexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regex_); + } + 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getRegex() + .equals(other.getRegex())) 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) + REGEX_FIELD_NUMBER; + hash = (53 * hash) + getRegex().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition 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(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.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_ = ""; + + regex_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition build() { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition buildPartial() { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition(this); + result.name_ = name_; + result.regex_ = regex_; + 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition) { + return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition other) { + if (other == flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRegex().isEmpty()) { + regex_ = other.regex_; + 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 { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + */ + 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; + } + } + /** + * string name = 1; + */ + 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; + } + } + /** + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + */ + 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 regex_ = ""; + /** + * string regex = 2; + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string regex = 2; + */ + public com.google.protobuf.ByteString + getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string regex = 2; + */ + public Builder setRegex( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regex_ = value; + onChanged(); + return this; + } + /** + * string regex = 2; + */ + public Builder clearRegex() { + + regex_ = getDefaultInstance().getRegex(); + onChanged(); + return this; + } + /** + * string regex = 2; + */ + public Builder setRegexBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regex_ = 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:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + private static final flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition(); + } + + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricDefinition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MetricDefinition(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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int INPUT_MODE_FIELD_NUMBER = 1; + private int inputMode_; + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public int getInputModeValue() { + return inputMode_; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public flyteidl.plugins.sagemaker.Trainingjob.InputMode getInputMode() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Trainingjob.InputMode result = flyteidl.plugins.sagemaker.Trainingjob.InputMode.valueOf(inputMode_); + return result == null ? flyteidl.plugins.sagemaker.Trainingjob.InputMode.UNRECOGNIZED : result; + } + + public static final int ALGORITHM_NAME_FIELD_NUMBER = 2; + private int algorithmName_; + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public int getAlgorithmNameValue() { + return algorithmName_; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName getAlgorithmName() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName result = flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName.valueOf(algorithmName_); + return result == null ? flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName.UNRECOGNIZED : result; + } + + public static final int ALGORITHM_VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object algorithmVersion_; + /** + * string algorithm_version = 3; + */ + public java.lang.String getAlgorithmVersion() { + java.lang.Object ref = algorithmVersion_; + 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(); + algorithmVersion_ = s; + return s; + } + } + /** + * string algorithm_version = 3; + */ + public com.google.protobuf.ByteString + getAlgorithmVersionBytes() { + java.lang.Object ref = algorithmVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithmVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METRIC_DEFINITIONS_FIELD_NUMBER = 4; + private java.util.List metricDefinitions_; + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List getMetricDefinitionsList() { + return metricDefinitions_; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List + getMetricDefinitionsOrBuilderList() { + return metricDefinitions_; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public int getMetricDefinitionsCount() { + return metricDefinitions_.size(); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + return metricDefinitions_.get(index); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index) { + return metricDefinitions_.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 (inputMode_ != flyteidl.plugins.sagemaker.Trainingjob.InputMode.FILE.getNumber()) { + output.writeEnum(1, inputMode_); + } + if (algorithmName_ != flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName.CUSTOM.getNumber()) { + output.writeEnum(2, algorithmName_); + } + if (!getAlgorithmVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, algorithmVersion_); + } + for (int i = 0; i < metricDefinitions_.size(); i++) { + output.writeMessage(4, metricDefinitions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputMode_ != flyteidl.plugins.sagemaker.Trainingjob.InputMode.FILE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, inputMode_); + } + if (algorithmName_ != flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName.CUSTOM.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, algorithmName_); + } + if (!getAlgorithmVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, algorithmVersion_); + } + for (int i = 0; i < metricDefinitions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, metricDefinitions_.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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification) obj; + + if (inputMode_ != other.inputMode_) return false; + if (algorithmName_ != other.algorithmName_) return false; + if (!getAlgorithmVersion() + .equals(other.getAlgorithmVersion())) return false; + if (!getMetricDefinitionsList() + .equals(other.getMetricDefinitionsList())) 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) + INPUT_MODE_FIELD_NUMBER; + hash = (53 * hash) + inputMode_; + hash = (37 * hash) + ALGORITHM_NAME_FIELD_NUMBER; + hash = (53 * hash) + algorithmName_; + hash = (37 * hash) + ALGORITHM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmVersion().hashCode(); + if (getMetricDefinitionsCount() > 0) { + hash = (37 * hash) + METRIC_DEFINITIONS_FIELD_NUMBER; + hash = (53 * hash) + getMetricDefinitionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification 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(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.AlgorithmSpecification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetricDefinitionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + inputMode_ = 0; + + algorithmName_ = 0; + + algorithmVersion_ = ""; + + if (metricDefinitionsBuilder_ == null) { + metricDefinitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + metricDefinitionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification build() { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification buildPartial() { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.inputMode_ = inputMode_; + result.algorithmName_ = algorithmName_; + result.algorithmVersion_ = algorithmVersion_; + if (metricDefinitionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.metricDefinitions_ = metricDefinitions_; + } else { + result.metricDefinitions_ = metricDefinitionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification) { + return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification other) { + if (other == flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance()) return this; + if (other.inputMode_ != 0) { + setInputModeValue(other.getInputModeValue()); + } + if (other.algorithmName_ != 0) { + setAlgorithmNameValue(other.getAlgorithmNameValue()); + } + if (!other.getAlgorithmVersion().isEmpty()) { + algorithmVersion_ = other.algorithmVersion_; + onChanged(); + } + if (metricDefinitionsBuilder_ == null) { + if (!other.metricDefinitions_.isEmpty()) { + if (metricDefinitions_.isEmpty()) { + metricDefinitions_ = other.metricDefinitions_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.addAll(other.metricDefinitions_); + } + onChanged(); + } + } else { + if (!other.metricDefinitions_.isEmpty()) { + if (metricDefinitionsBuilder_.isEmpty()) { + metricDefinitionsBuilder_.dispose(); + metricDefinitionsBuilder_ = null; + metricDefinitions_ = other.metricDefinitions_; + bitField0_ = (bitField0_ & ~0x00000008); + metricDefinitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetricDefinitionsFieldBuilder() : null; + } else { + metricDefinitionsBuilder_.addAllMessages(other.metricDefinitions_); + } + } + } + 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 { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int inputMode_ = 0; + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public int getInputModeValue() { + return inputMode_; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public Builder setInputModeValue(int value) { + inputMode_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public flyteidl.plugins.sagemaker.Trainingjob.InputMode getInputMode() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Trainingjob.InputMode result = flyteidl.plugins.sagemaker.Trainingjob.InputMode.valueOf(inputMode_); + return result == null ? flyteidl.plugins.sagemaker.Trainingjob.InputMode.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public Builder setInputMode(flyteidl.plugins.sagemaker.Trainingjob.InputMode value) { + if (value == null) { + throw new NullPointerException(); + } + + inputMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public Builder clearInputMode() { + + inputMode_ = 0; + onChanged(); + return this; + } + + private int algorithmName_ = 0; + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public int getAlgorithmNameValue() { + return algorithmName_; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public Builder setAlgorithmNameValue(int value) { + algorithmName_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName getAlgorithmName() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName result = flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName.valueOf(algorithmName_); + return result == null ? flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public Builder setAlgorithmName(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName value) { + if (value == null) { + throw new NullPointerException(); + } + + algorithmName_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public Builder clearAlgorithmName() { + + algorithmName_ = 0; + onChanged(); + return this; + } + + private java.lang.Object algorithmVersion_ = ""; + /** + * string algorithm_version = 3; + */ + public java.lang.String getAlgorithmVersion() { + java.lang.Object ref = algorithmVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + algorithmVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string algorithm_version = 3; + */ + public com.google.protobuf.ByteString + getAlgorithmVersionBytes() { + java.lang.Object ref = algorithmVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithmVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string algorithm_version = 3; + */ + public Builder setAlgorithmVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + algorithmVersion_ = value; + onChanged(); + return this; + } + /** + * string algorithm_version = 3; + */ + public Builder clearAlgorithmVersion() { + + algorithmVersion_ = getDefaultInstance().getAlgorithmVersion(); + onChanged(); + return this; + } + /** + * string algorithm_version = 3; + */ + public Builder setAlgorithmVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + algorithmVersion_ = value; + onChanged(); + return this; + } + + private java.util.List metricDefinitions_ = + java.util.Collections.emptyList(); + private void ensureMetricDefinitionsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; + + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List getMetricDefinitionsList() { + if (metricDefinitionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricDefinitions_); + } else { + return metricDefinitionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public int getMetricDefinitionsCount() { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.size(); + } else { + return metricDefinitionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.get(index); + } else { + return metricDefinitionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder setMetricDefinitions( + int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.set(index, value); + onChanged(); + } else { + metricDefinitionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder setMetricDefinitions( + int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.set(index, builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(value); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions( + int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(index, value); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions( + int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(index, builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addAllMetricDefinitions( + java.lang.Iterable values) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metricDefinitions_); + onChanged(); + } else { + metricDefinitionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder clearMetricDefinitions() { + if (metricDefinitionsBuilder_ == null) { + metricDefinitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + metricDefinitionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder removeMetricDefinitions(int index) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.remove(index); + onChanged(); + } else { + metricDefinitionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( + int index) { + return getMetricDefinitionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index) { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.get(index); } else { + return metricDefinitionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List + getMetricDefinitionsOrBuilderList() { + if (metricDefinitionsBuilder_ != null) { + return metricDefinitionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricDefinitions_); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { + return getMetricDefinitionsFieldBuilder().addBuilder( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( + int index) { + return getMetricDefinitionsFieldBuilder().addBuilder( + index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List + getMetricDefinitionsBuilderList() { + return getMetricDefinitionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder> + getMetricDefinitionsFieldBuilder() { + if (metricDefinitionsBuilder_ == null) { + metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder>( + metricDefinitions_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + metricDefinitions_ = null; + } + return metricDefinitionsBuilder_; + } + @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:flyteidl.plugins.sagemaker.AlgorithmSpecification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) + private static final flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification(); + } + + public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlgorithmSpecification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AlgorithmSpecification(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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TrainingJobConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJobConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * For multi-node training, not multi-GPU training
+     * 
+ * + * int64 instance_count = 1; + */ + long getInstanceCount(); + + /** + * string instance_type = 2; + */ + java.lang.String getInstanceType(); + /** + * string instance_type = 2; + */ + com.google.protobuf.ByteString + getInstanceTypeBytes(); + + /** + * int64 volume_size_in_gb = 3; + */ + long getVolumeSizeInGb(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobConfig} + */ + public static final class TrainingJobConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) + TrainingJobConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainingJobConfig.newBuilder() to construct. + private TrainingJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrainingJobConfig() { + instanceType_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrainingJobConfig( + 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 8: { + + instanceCount_ = input.readInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + instanceType_ = s; + break; + } + case 24: { + + volumeSizeInGb_ = 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 flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.class, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder.class); + } + + public static final int INSTANCE_COUNT_FIELD_NUMBER = 1; + private long instanceCount_; + /** + *
+     * For multi-node training, not multi-GPU training
+     * 
+ * + * int64 instance_count = 1; + */ + public long getInstanceCount() { + return instanceCount_; + } + + public static final int INSTANCE_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object instanceType_; + /** + * string instance_type = 2; + */ + public java.lang.String getInstanceType() { + java.lang.Object ref = instanceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceType_ = s; + return s; + } + } + /** + * string instance_type = 2; + */ + public com.google.protobuf.ByteString + getInstanceTypeBytes() { + java.lang.Object ref = instanceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOLUME_SIZE_IN_GB_FIELD_NUMBER = 3; + private long volumeSizeInGb_; + /** + * int64 volume_size_in_gb = 3; + */ + public long getVolumeSizeInGb() { + return volumeSizeInGb_; + } + + 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 (instanceCount_ != 0L) { + output.writeInt64(1, instanceCount_); + } + if (!getInstanceTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceType_); + } + if (volumeSizeInGb_ != 0L) { + output.writeInt64(3, volumeSizeInGb_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (instanceCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, instanceCount_); + } + if (!getInstanceTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceType_); + } + if (volumeSizeInGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, volumeSizeInGb_); + } + 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig other = (flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig) obj; + + if (getInstanceCount() + != other.getInstanceCount()) return false; + if (!getInstanceType() + .equals(other.getInstanceType())) return false; + if (getVolumeSizeInGb() + != other.getVolumeSizeInGb()) 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) + INSTANCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInstanceCount()); + hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getInstanceType().hashCode(); + hash = (37 * hash) + VOLUME_SIZE_IN_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVolumeSizeInGb()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig 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(flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.class, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.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(); + instanceCount_ = 0L; + + instanceType_ = ""; + + volumeSizeInGb_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig build() { + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig buildPartial() { + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig result = new flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig(this); + result.instanceCount_ = instanceCount_; + result.instanceType_ = instanceType_; + result.volumeSizeInGb_ = volumeSizeInGb_; + 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig other) { + if (other == flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.getDefaultInstance()) return this; + if (other.getInstanceCount() != 0L) { + setInstanceCount(other.getInstanceCount()); + } + if (!other.getInstanceType().isEmpty()) { + instanceType_ = other.instanceType_; + onChanged(); + } + if (other.getVolumeSizeInGb() != 0L) { + setVolumeSizeInGb(other.getVolumeSizeInGb()); + } + 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 { + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long instanceCount_ ; + /** + *
+       * For multi-node training, not multi-GPU training
+       * 
+ * + * int64 instance_count = 1; + */ + public long getInstanceCount() { + return instanceCount_; + } + /** + *
+       * For multi-node training, not multi-GPU training
+       * 
+ * + * int64 instance_count = 1; + */ + public Builder setInstanceCount(long value) { + + instanceCount_ = value; + onChanged(); + return this; + } + /** + *
+       * For multi-node training, not multi-GPU training
+       * 
+ * + * int64 instance_count = 1; + */ + public Builder clearInstanceCount() { + + instanceCount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object instanceType_ = ""; + /** + * string instance_type = 2; + */ + public java.lang.String getInstanceType() { + java.lang.Object ref = instanceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string instance_type = 2; + */ + public com.google.protobuf.ByteString + getInstanceTypeBytes() { + java.lang.Object ref = instanceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string instance_type = 2; + */ + public Builder setInstanceType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + instanceType_ = value; + onChanged(); + return this; + } + /** + * string instance_type = 2; + */ + public Builder clearInstanceType() { + + instanceType_ = getDefaultInstance().getInstanceType(); + onChanged(); + return this; + } + /** + * string instance_type = 2; + */ + public Builder setInstanceTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + instanceType_ = value; + onChanged(); + return this; + } + + private long volumeSizeInGb_ ; + /** + * int64 volume_size_in_gb = 3; + */ + public long getVolumeSizeInGb() { + return volumeSizeInGb_; + } + /** + * int64 volume_size_in_gb = 3; + */ + public Builder setVolumeSizeInGb(long value) { + + volumeSizeInGb_ = value; + onChanged(); + return this; + } + /** + * int64 volume_size_in_gb = 3; + */ + public Builder clearVolumeSizeInGb() { + + volumeSizeInGb_ = 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:flyteidl.plugins.sagemaker.TrainingJobConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) + private static final flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig(); + } + + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainingJobConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainingJobConfig(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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StoppingConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.StoppingCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 max_runtime_in_seconds = 1; + */ + long getMaxRuntimeInSeconds(); + + /** + * int64 max_wait_time_in_seconds = 2; + */ + long getMaxWaitTimeInSeconds(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} + */ + public static final class StoppingCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.StoppingCondition) + StoppingConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoppingCondition.newBuilder() to construct. + private StoppingCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StoppingCondition() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoppingCondition( + 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 8: { + + maxRuntimeInSeconds_ = input.readInt64(); + break; + } + case 16: { + + maxWaitTimeInSeconds_ = 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 flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.class, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder.class); + } + + public static final int MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER = 1; + private long maxRuntimeInSeconds_; + /** + * int64 max_runtime_in_seconds = 1; + */ + public long getMaxRuntimeInSeconds() { + return maxRuntimeInSeconds_; + } + + public static final int MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER = 2; + private long maxWaitTimeInSeconds_; + /** + * int64 max_wait_time_in_seconds = 2; + */ + public long getMaxWaitTimeInSeconds() { + return maxWaitTimeInSeconds_; + } + + 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 (maxRuntimeInSeconds_ != 0L) { + output.writeInt64(1, maxRuntimeInSeconds_); + } + if (maxWaitTimeInSeconds_ != 0L) { + output.writeInt64(2, maxWaitTimeInSeconds_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxRuntimeInSeconds_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxRuntimeInSeconds_); + } + if (maxWaitTimeInSeconds_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxWaitTimeInSeconds_); + } + 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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition other = (flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition) obj; + + if (getMaxRuntimeInSeconds() + != other.getMaxRuntimeInSeconds()) return false; + if (getMaxWaitTimeInSeconds() + != other.getMaxWaitTimeInSeconds()) 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) + MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxRuntimeInSeconds()); + hash = (37 * hash) + MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxWaitTimeInSeconds()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition 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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition 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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition 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(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition 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 flyteidl.plugins.sagemaker.StoppingCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.StoppingCondition) + flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.class, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.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(); + maxRuntimeInSeconds_ = 0L; + + maxWaitTimeInSeconds_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition build() { + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition buildPartial() { + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition result = new flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition(this); + result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; + result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; + 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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition) { + return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition other) { + if (other == flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance()) return this; + if (other.getMaxRuntimeInSeconds() != 0L) { + setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); + } + if (other.getMaxWaitTimeInSeconds() != 0L) { + setMaxWaitTimeInSeconds(other.getMaxWaitTimeInSeconds()); + } + 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 { + flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxRuntimeInSeconds_ ; + /** + * int64 max_runtime_in_seconds = 1; + */ + public long getMaxRuntimeInSeconds() { + return maxRuntimeInSeconds_; + } + /** + * int64 max_runtime_in_seconds = 1; + */ + public Builder setMaxRuntimeInSeconds(long value) { + + maxRuntimeInSeconds_ = value; + onChanged(); + return this; + } + /** + * int64 max_runtime_in_seconds = 1; + */ + public Builder clearMaxRuntimeInSeconds() { + + maxRuntimeInSeconds_ = 0L; + onChanged(); + return this; + } + + private long maxWaitTimeInSeconds_ ; + /** + * int64 max_wait_time_in_seconds = 2; + */ + public long getMaxWaitTimeInSeconds() { + return maxWaitTimeInSeconds_; + } + /** + * int64 max_wait_time_in_seconds = 2; + */ + public Builder setMaxWaitTimeInSeconds(long value) { + + maxWaitTimeInSeconds_ = value; + onChanged(); + return this; + } + /** + * int64 max_wait_time_in_seconds = 2; + */ + public Builder clearMaxWaitTimeInSeconds() { + + maxWaitTimeInSeconds_ = 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:flyteidl.plugins.sagemaker.StoppingCondition) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) + private static final flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition(); + } + + public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoppingCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoppingCondition(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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TrainingJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJob) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + boolean hasAlgorithmSpecification(); + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification(); + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + boolean hasTrainingJobConfig(); + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig getTrainingJobConfig(); + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder(); + + /** + * bool interruptible = 4; + */ + boolean getInterruptible(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} + */ + public static final class TrainingJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJob) + TrainingJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainingJob.newBuilder() to construct. + private TrainingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrainingJob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrainingJob( + 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: { + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder subBuilder = null; + if (algorithmSpecification_ != null) { + subBuilder = algorithmSpecification_.toBuilder(); + } + algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(algorithmSpecification_); + algorithmSpecification_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder subBuilder = null; + if (trainingJobConfig_ != null) { + subBuilder = trainingJobConfig_.toBuilder(); + } + trainingJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingJobConfig_); + trainingJobConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + interruptible_ = input.readBool(); + 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 flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.class, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder.class); + } + + public static final int ALGORITHM_SPECIFICATION_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification algorithmSpecification_; + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public boolean hasAlgorithmSpecification() { + return algorithmSpecification_ != null; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification() { + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + return getAlgorithmSpecification(); + } + + public static final int TRAINING_JOB_CONFIG_FIELD_NUMBER = 2; + private flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig trainingJobConfig_; + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public boolean hasTrainingJobConfig() { + return trainingJobConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig getTrainingJobConfig() { + return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { + return getTrainingJobConfig(); + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 4; + private boolean interruptible_; + /** + * bool interruptible = 4; + */ + public boolean getInterruptible() { + return interruptible_; + } + + 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 (algorithmSpecification_ != null) { + output.writeMessage(1, getAlgorithmSpecification()); + } + if (trainingJobConfig_ != null) { + output.writeMessage(2, getTrainingJobConfig()); + } + if (interruptible_ != false) { + output.writeBool(4, interruptible_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (algorithmSpecification_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAlgorithmSpecification()); + } + if (trainingJobConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTrainingJobConfig()); + } + if (interruptible_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, interruptible_); + } + 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob other = (flyteidl.plugins.sagemaker.Trainingjob.TrainingJob) obj; + + if (hasAlgorithmSpecification() != other.hasAlgorithmSpecification()) return false; + if (hasAlgorithmSpecification()) { + if (!getAlgorithmSpecification() + .equals(other.getAlgorithmSpecification())) return false; + } + if (hasTrainingJobConfig() != other.hasTrainingJobConfig()) return false; + if (hasTrainingJobConfig()) { + if (!getTrainingJobConfig() + .equals(other.getTrainingJobConfig())) return false; + } + if (getInterruptible() + != other.getInterruptible()) 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 (hasAlgorithmSpecification()) { + hash = (37 * hash) + ALGORITHM_SPECIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmSpecification().hashCode(); + } + if (hasTrainingJobConfig()) { + hash = (37 * hash) + TRAINING_JOB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTrainingJobConfig().hashCode(); + } + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterruptible()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob 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(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJob) + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.class, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.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 (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = null; + } else { + algorithmSpecification_ = null; + algorithmSpecificationBuilder_ = null; + } + if (trainingJobConfigBuilder_ == null) { + trainingJobConfig_ = null; + } else { + trainingJobConfig_ = null; + trainingJobConfigBuilder_ = null; + } + interruptible_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob build() { + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob buildPartial() { + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob result = new flyteidl.plugins.sagemaker.Trainingjob.TrainingJob(this); + if (algorithmSpecificationBuilder_ == null) { + result.algorithmSpecification_ = algorithmSpecification_; + } else { + result.algorithmSpecification_ = algorithmSpecificationBuilder_.build(); + } + if (trainingJobConfigBuilder_ == null) { + result.trainingJobConfig_ = trainingJobConfig_; + } else { + result.trainingJobConfig_ = trainingJobConfigBuilder_.build(); + } + result.interruptible_ = interruptible_; + 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob) { + return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.TrainingJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob other) { + if (other == flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance()) return this; + if (other.hasAlgorithmSpecification()) { + mergeAlgorithmSpecification(other.getAlgorithmSpecification()); + } + if (other.hasTrainingJobConfig()) { + mergeTrainingJobConfig(other.getTrainingJobConfig()); + } + if (other.getInterruptible() != false) { + setInterruptible(other.getInterruptible()); + } + 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 { + flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.TrainingJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification algorithmSpecification_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public boolean hasAlgorithmSpecification() { + return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification() { + if (algorithmSpecificationBuilder_ == null) { + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } else { + return algorithmSpecificationBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification value) { + if (algorithmSpecificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + algorithmSpecification_ = value; + onChanged(); + } else { + algorithmSpecificationBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder setAlgorithmSpecification( + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder builderForValue) { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = builderForValue.build(); + onChanged(); + } else { + algorithmSpecificationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification value) { + if (algorithmSpecificationBuilder_ == null) { + if (algorithmSpecification_ != null) { + algorithmSpecification_ = + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); + } else { + algorithmSpecification_ = value; + } + onChanged(); + } else { + algorithmSpecificationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder clearAlgorithmSpecification() { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = null; + onChanged(); + } else { + algorithmSpecification_ = null; + algorithmSpecificationBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { + + onChanged(); + return getAlgorithmSpecificationFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + if (algorithmSpecificationBuilder_ != null) { + return algorithmSpecificationBuilder_.getMessageOrBuilder(); + } else { + return algorithmSpecification_ == null ? + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder> + getAlgorithmSpecificationFieldBuilder() { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder>( + getAlgorithmSpecification(), + getParentForChildren(), + isClean()); + algorithmSpecification_ = null; + } + return algorithmSpecificationBuilder_; + } + + private flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig trainingJobConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder> trainingJobConfigBuilder_; + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public boolean hasTrainingJobConfig() { + return trainingJobConfigBuilder_ != null || trainingJobConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig getTrainingJobConfig() { + if (trainingJobConfigBuilder_ == null) { + return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; + } else { + return trainingJobConfigBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig value) { + if (trainingJobConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingJobConfig_ = value; + onChanged(); + } else { + trainingJobConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public Builder setTrainingJobConfig( + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder builderForValue) { + if (trainingJobConfigBuilder_ == null) { + trainingJobConfig_ = builderForValue.build(); + onChanged(); + } else { + trainingJobConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public Builder mergeTrainingJobConfig(flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig value) { + if (trainingJobConfigBuilder_ == null) { + if (trainingJobConfig_ != null) { + trainingJobConfig_ = + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.newBuilder(trainingJobConfig_).mergeFrom(value).buildPartial(); + } else { + trainingJobConfig_ = value; + } + onChanged(); + } else { + trainingJobConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public Builder clearTrainingJobConfig() { + if (trainingJobConfigBuilder_ == null) { + trainingJobConfig_ = null; + onChanged(); + } else { + trainingJobConfig_ = null; + trainingJobConfigBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder getTrainingJobConfigBuilder() { + + onChanged(); + return getTrainingJobConfigFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { + if (trainingJobConfigBuilder_ != null) { + return trainingJobConfigBuilder_.getMessageOrBuilder(); + } else { + return trainingJobConfig_ == null ? + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; + } + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder> + getTrainingJobConfigFieldBuilder() { + if (trainingJobConfigBuilder_ == null) { + trainingJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder>( + getTrainingJobConfig(), + getParentForChildren(), + isClean()); + trainingJobConfig_ = null; + } + return trainingJobConfigBuilder_; + } + + private boolean interruptible_ ; + /** + * bool interruptible = 4; + */ + public boolean getInterruptible() { + return interruptible_; + } + /** + * bool interruptible = 4; + */ + public Builder setInterruptible(boolean value) { + + interruptible_ = value; + onChanged(); + return this; + } + /** + * bool interruptible = 4; + */ + public Builder clearInterruptible() { + + interruptible_ = false; + 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:flyteidl.plugins.sagemaker.TrainingJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) + private static final flyteidl.plugins.sagemaker.Trainingjob.TrainingJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.TrainingJob(); + } + + public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainingJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainingJob(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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_TrainingJob_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,flyteidl/plugins/sagemaker/trainingjob" + + ".proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026A" + + "lgorithmSpecification\0229\n\ninput_mode\030\001 \001(" + + "\0162%.flyteidl.plugins.sagemaker.InputMode" + + "\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plug" + + "ins.sagemaker.AlgorithmName\022\031\n\021algorithm" + + "_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 \003" + + "(\0132C.flyteidl.plugins.sagemaker.Algorith" + + "mSpecification.MetricDefinition\032/\n\020Metri" + + "cDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t" + + "\"]\n\021TrainingJobConfig\022\026\n\016instance_count\030" + + "\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_s" + + "ize_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n\026" + + "max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wait" + + "_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022S" + + "\n\027algorithm_specification\030\001 \001(\01322.flytei" + + "dl.plugins.sagemaker.AlgorithmSpecificat" + + "ion\022J\n\023training_job_config\030\002 \001(\0132-.flyte" + + "idl.plugins.sagemaker.TrainingJobConfig\022" + + "\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004F" + + "ILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUST" + + "OM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fly" + + "teidl/gen/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, + new java.lang.String[] { "InputMode", "AlgorithmName", "AlgorithmVersion", "MetricDefinitions", }); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor = + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, + new java.lang.String[] { "Name", "Regex", }); + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor, + new java.lang.String[] { "InstanceCount", "InstanceType", "VolumeSizeInGb", }); + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor, + new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", }); + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor, + new java.lang.String[] { "AlgorithmSpecification", "TrainingJobConfig", "Interruptible", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst new file mode 100644 index 000000000..46a10d6c4 --- /dev/null +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst @@ -0,0 +1,158 @@ +.. _api_file_flyteidl/plugins/sagemaker/hpojob.proto: + +hpojob.proto +======================================= + +.. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningObjective: + +flyteidl.plugins.sagemaker.HyperparameterTuningObjective +-------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ + + +.. code-block:: json + + { + "objective_type": "...", + "metric_name": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type: + +objective_type + (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType `) + +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name: + +metric_name + (`string `_) + + +.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType: + +Enum flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType +----------------------------------------------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE: + +MINIMIZE + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MAXIMIZE: + +MAXIMIZE + ⁣ + + +.. _api_msg_flyteidl.plugins.sagemaker.HPOJob: + +flyteidl.plugins.sagemaker.HPOJob +--------------------------------- + +`[flyteidl.plugins.sagemaker.HPOJob proto] `_ + + +.. code-block:: json + + { + "training_job": "{...}", + "max_number_of_training_jobs": "...", + "max_parallel_training_jobs": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.training_job: + +training_job + (:ref:`flyteidl.plugins.sagemaker.TrainingJob `) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs: + +max_number_of_training_jobs + (`int64 `_) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs: + +max_parallel_training_jobs + (`int64 `_) + + + +.. _api_msg_flyteidl.plugins.sagemaker.HPOJobConfig: + +flyteidl.plugins.sagemaker.HPOJobConfig +--------------------------------------- + +`[flyteidl.plugins.sagemaker.HPOJobConfig proto] `_ + + +.. code-block:: json + + { + "hyperparameter_ranges": "{...}", + "tuning_strategy": "...", + "tuning_objective": "{...}", + "training_job_early_stopping_type": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges: + +hyperparameter_ranges + (:ref:`flyteidl.plugins.sagemaker.ParameterRanges `) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy: + +tuning_strategy + (:ref:`flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy `) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective: + +tuning_objective + (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjective `) + +.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type: + +training_job_early_stopping_type + (:ref:`flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType `) + + +.. _api_enum_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy: + +Enum flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy +------------------------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN: + +BAYESIAN + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy.RANDOM: + +RANDOM + ⁣ + + +.. _api_enum_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType: + +Enum flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType +------------------------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType.OFF: + +OFF + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType.AUTO: + +AUTO + ⁣ + diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst new file mode 100644 index 000000000..520c352dc --- /dev/null +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst @@ -0,0 +1,182 @@ +.. _api_file_flyteidl/plugins/sagemaker/parameterranges.proto: + +parameterranges.proto +================================================ + +.. _api_msg_flyteidl.plugins.sagemaker.ContinuousParameterRange: + +flyteidl.plugins.sagemaker.ContinuousParameterRange +--------------------------------------------------- + +`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_ + + +.. code-block:: json + + { + "max_value": "...", + "min_value": "...", + "scaling_type": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value: + +max_value + (`double `_) + +.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value: + +min_value + (`double `_) + +.. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type: + +scaling_type + (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) + + + +.. _api_msg_flyteidl.plugins.sagemaker.IntegerParameterRange: + +flyteidl.plugins.sagemaker.IntegerParameterRange +------------------------------------------------ + +`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_ + + +.. code-block:: json + + { + "max_value": "...", + "min_value": "...", + "scaling_type": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.max_value: + +max_value + (`int64 `_) + +.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.min_value: + +min_value + (`int64 `_) + +.. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type: + +scaling_type + (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) + + + +.. _api_msg_flyteidl.plugins.sagemaker.CategoricalParameterRange: + +flyteidl.plugins.sagemaker.CategoricalParameterRange +---------------------------------------------------- + +`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_ + + +.. code-block:: json + + { + "values": [] + } + +.. _api_field_flyteidl.plugins.sagemaker.CategoricalParameterRange.values: + +values + (`string `_) + + + +.. _api_msg_flyteidl.plugins.sagemaker.ParameterRangeOneOf: + +flyteidl.plugins.sagemaker.ParameterRangeOneOf +---------------------------------------------- + +`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_ + + +.. code-block:: json + + { + "continuous_parameter_range": "{...}", + "integer_parameter_range": "{...}", + "categorical_parameter_range": "{...}" + } + +.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range: + +continuous_parameter_range + (:ref:`flyteidl.plugins.sagemaker.ContinuousParameterRange `) + + + Only one of :ref:`continuous_parameter_range `, :ref:`integer_parameter_range `, :ref:`categorical_parameter_range ` may be set. + +.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range: + +integer_parameter_range + (:ref:`flyteidl.plugins.sagemaker.IntegerParameterRange `) + + + Only one of :ref:`continuous_parameter_range `, :ref:`integer_parameter_range `, :ref:`categorical_parameter_range ` may be set. + +.. _api_field_flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range: + +categorical_parameter_range + (:ref:`flyteidl.plugins.sagemaker.CategoricalParameterRange `) + + + Only one of :ref:`continuous_parameter_range `, :ref:`integer_parameter_range `, :ref:`categorical_parameter_range ` may be set. + + + +.. _api_msg_flyteidl.plugins.sagemaker.ParameterRanges: + +flyteidl.plugins.sagemaker.ParameterRanges +------------------------------------------ + +`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ + + +.. code-block:: json + + { + "parameter_range_map": "{...}" + } + +.. _api_field_flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map: + +parameter_range_map + (map<`string `_, :ref:`flyteidl.plugins.sagemaker.ParameterRangeOneOf `>) + + +.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterScalingType: + +Enum flyteidl.plugins.sagemaker.HyperparameterScalingType +--------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.AUTO: + +AUTO + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.LINEAR: + +LINEAR + ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.LOGARITHMIC: + +LOGARITHMIC + ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.REVERSELOGARITHMIC: + +REVERSELOGARITHMIC + ⁣ + diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst new file mode 100644 index 000000000..9b9849893 --- /dev/null +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst @@ -0,0 +1,199 @@ +.. _api_file_flyteidl/plugins/sagemaker/trainingjob.proto: + +trainingjob.proto +============================================ + +.. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification: + +flyteidl.plugins.sagemaker.AlgorithmSpecification +------------------------------------------------- + +`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ + + +.. code-block:: json + + { + "input_mode": "...", + "algorithm_name": "...", + "algorithm_version": "...", + "metric_definitions": [] + } + +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode: + +input_mode + (:ref:`flyteidl.plugins.sagemaker.InputMode `) + +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name: + +algorithm_name + (:ref:`flyteidl.plugins.sagemaker.AlgorithmName `) + +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version: + +algorithm_version + (`string `_) + +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions: + +metric_definitions + (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition `) + +.. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition: + +flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition +------------------------------------------------------------------ + +`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ + + +.. code-block:: json + + { + "name": "...", + "regex": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name: + +name + (`string `_) + +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex: + +regex + (`string `_) + + + + +.. _api_msg_flyteidl.plugins.sagemaker.TrainingJobConfig: + +flyteidl.plugins.sagemaker.TrainingJobConfig +-------------------------------------------- + +`[flyteidl.plugins.sagemaker.TrainingJobConfig proto] `_ + + +.. code-block:: json + + { + "instance_count": "...", + "instance_type": "...", + "volume_size_in_gb": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count: + +instance_count + (`int64 `_) + +.. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type: + +instance_type + (`string `_) + +.. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb: + +volume_size_in_gb + (`int64 `_) + + + +.. _api_msg_flyteidl.plugins.sagemaker.StoppingCondition: + +flyteidl.plugins.sagemaker.StoppingCondition +-------------------------------------------- + +`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ + + +.. code-block:: json + + { + "max_runtime_in_seconds": "...", + "max_wait_time_in_seconds": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds: + +max_runtime_in_seconds + (`int64 `_) + +.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds: + +max_wait_time_in_seconds + (`int64 `_) + + + +.. _api_msg_flyteidl.plugins.sagemaker.TrainingJob: + +flyteidl.plugins.sagemaker.TrainingJob +-------------------------------------- + +`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ + + +.. code-block:: json + + { + "algorithm_specification": "{...}", + "training_job_config": "{...}", + "interruptible": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification: + +algorithm_specification + (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification `) + +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.training_job_config: + +training_job_config + (:ref:`flyteidl.plugins.sagemaker.TrainingJobConfig `) + +.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.interruptible: + +interruptible + (`bool `_) + + +.. _api_enum_flyteidl.plugins.sagemaker.InputMode: + +Enum flyteidl.plugins.sagemaker.InputMode +----------------------------------------- + +`[flyteidl.plugins.sagemaker.InputMode proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.InputMode.FILE: + +FILE + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.InputMode.PIPE: + +PIPE + ⁣ + + +.. _api_enum_flyteidl.plugins.sagemaker.AlgorithmName: + +Enum flyteidl.plugins.sagemaker.AlgorithmName +--------------------------------------------- + +`[flyteidl.plugins.sagemaker.AlgorithmName proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.AlgorithmName.CUSTOM: + +CUSTOM + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.AlgorithmName.XGBOOST: + +XGBOOST + ⁣ + diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py new file mode 100644 index 000000000..28f580659 --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py @@ -0,0 +1,272 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/sagemaker/hpojob.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.plugins.sagemaker import parameterranges_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2 +from flyteidl.plugins.sagemaker import trainingjob_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/plugins/sagemaker/hpojob.proto', + package='flyteidl.plugins.sagemaker', + syntax='proto3', + serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), + serialized_pb=_b('\n\'flyteidl/plugins/sagemaker/hpojob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x30\x66lyteidl/plugins/sagemaker/parameterranges.proto\x1a,flyteidl/plugins/sagemaker/trainingjob.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + , + dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2.DESCRIPTOR,]) + + + +_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE = _descriptor.EnumDescriptor( + name='HyperparameterTuningObjectiveType', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='MINIMIZE', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MAXIMIZE', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=339, + serialized_end=402, +) +_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE) + +_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY = _descriptor.EnumDescriptor( + name='HyperparameterTuningStrategy', + full_name='flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='BAYESIAN', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RANDOM', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=938, + serialized_end=994, +) +_sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY) + +_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE = _descriptor.EnumDescriptor( + name='TrainingJobEarlyStoppingType', + full_name='flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='OFF', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AUTO', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=996, + serialized_end=1045, +) +_sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE) + + +_HYPERPARAMETERTUNINGOBJECTIVE = _descriptor.Descriptor( + name='HyperparameterTuningObjective', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='objective_type', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='metric_name', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=168, + serialized_end=402, +) + + +_HPOJOB = _descriptor.Descriptor( + name='HPOJob', + full_name='flyteidl.plugins.sagemaker.HPOJob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='training_job', full_name='flyteidl.plugins.sagemaker.HPOJob.training_job', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_number_of_training_jobs', full_name='flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_parallel_training_jobs', full_name='flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=405, + serialized_end=549, +) + + +_HPOJOBCONFIG = _descriptor.Descriptor( + name='HPOJobConfig', + full_name='flyteidl.plugins.sagemaker.HPOJobConfig', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='hyperparameter_ranges', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tuning_strategy', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tuning_objective', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='training_job_early_stopping_type', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY, + _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=552, + serialized_end=1045, +) + +_HYPERPARAMETERTUNINGOBJECTIVE.fields_by_name['objective_type'].enum_type = _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE +_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE.containing_type = _HYPERPARAMETERTUNINGOBJECTIVE +_HPOJOB.fields_by_name['training_job'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2._TRAININGJOB +_HPOJOBCONFIG.fields_by_name['hyperparameter_ranges'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2._PARAMETERRANGES +_HPOJOBCONFIG.fields_by_name['tuning_strategy'].enum_type = _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY +_HPOJOBCONFIG.fields_by_name['tuning_objective'].message_type = _HYPERPARAMETERTUNINGOBJECTIVE +_HPOJOBCONFIG.fields_by_name['training_job_early_stopping_type'].enum_type = _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE +_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY.containing_type = _HPOJOBCONFIG +_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE.containing_type = _HPOJOBCONFIG +DESCRIPTOR.message_types_by_name['HyperparameterTuningObjective'] = _HYPERPARAMETERTUNINGOBJECTIVE +DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB +DESCRIPTOR.message_types_by_name['HPOJobConfig'] = _HPOJOBCONFIG +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +HyperparameterTuningObjective = _reflection.GeneratedProtocolMessageType('HyperparameterTuningObjective', (_message.Message,), dict( + DESCRIPTOR = _HYPERPARAMETERTUNINGOBJECTIVE, + __module__ = 'flyteidl.plugins.sagemaker.hpojob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + )) +_sym_db.RegisterMessage(HyperparameterTuningObjective) + +HPOJob = _reflection.GeneratedProtocolMessageType('HPOJob', (_message.Message,), dict( + DESCRIPTOR = _HPOJOB, + __module__ = 'flyteidl.plugins.sagemaker.hpojob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) + )) +_sym_db.RegisterMessage(HPOJob) + +HPOJobConfig = _reflection.GeneratedProtocolMessageType('HPOJobConfig', (_message.Message,), dict( + DESCRIPTOR = _HPOJOBCONFIG, + __module__ = 'flyteidl.plugins.sagemaker.hpojob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) + )) +_sym_db.RegisterMessage(HPOJobConfig) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py new file mode 100644 index 000000000..043c4b72e --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py @@ -0,0 +1,372 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/sagemaker/parameterranges.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/plugins/sagemaker/parameterranges.proto', + package='flyteidl.plugins.sagemaker', + syntax='proto3', + serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), + serialized_pb=_b('\n0flyteidl/plugins/sagemaker/parameterranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x8d\x01\n\x18\x43ontinuousParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x01\x12\x11\n\tmin_value\x18\x02 \x01(\x01\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x8a\x01\n\x15IntegerParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x03\x12\x11\n\tmin_value\x18\x02 \x01(\x03\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"+\n\x19\x43\x61tegoricalParameterRange\x12\x0e\n\x06values\x18\x01 \x03(\t\"\xbd\x02\n\x13ParameterRangeOneOf\x12Z\n\x1a\x63ontinuous_parameter_range\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00\x12T\n\x17integer_parameter_range\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00\x12\\\n\x1b\x63\x61tegorical_parameter_range\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00\x42\x16\n\x14parameter_range_type\"\xdd\x01\n\x0fParameterRanges\x12_\n\x13parameter_range_map\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry\x1ai\n\x16ParameterRangeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOf:\x02\x38\x01*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') +) + +_HYPERPARAMETERSCALINGTYPE = _descriptor.EnumDescriptor( + name='HyperparameterScalingType', + full_name='flyteidl.plugins.sagemaker.HyperparameterScalingType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='AUTO', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LINEAR', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOGARITHMIC', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REVERSELOGARITHMIC', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=954, + serialized_end=1044, +) +_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERSCALINGTYPE) + +HyperparameterScalingType = enum_type_wrapper.EnumTypeWrapper(_HYPERPARAMETERSCALINGTYPE) +AUTO = 0 +LINEAR = 1 +LOGARITHMIC = 2 +REVERSELOGARITHMIC = 3 + + + +_CONTINUOUSPARAMETERRANGE = _descriptor.Descriptor( + name='ContinuousParameterRange', + full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='max_value', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value', index=0, + number=1, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_value', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value', index=1, + number=2, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='scaling_type', full_name='flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=81, + serialized_end=222, +) + + +_INTEGERPARAMETERRANGE = _descriptor.Descriptor( + name='IntegerParameterRange', + full_name='flyteidl.plugins.sagemaker.IntegerParameterRange', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='max_value', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.max_value', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_value', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.min_value', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='scaling_type', full_name='flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=225, + serialized_end=363, +) + + +_CATEGORICALPARAMETERRANGE = _descriptor.Descriptor( + name='CategoricalParameterRange', + full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='values', full_name='flyteidl.plugins.sagemaker.CategoricalParameterRange.values', index=0, + number=1, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=365, + serialized_end=408, +) + + +_PARAMETERRANGEONEOF = _descriptor.Descriptor( + name='ParameterRangeOneOf', + full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='continuous_parameter_range', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='integer_parameter_range', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='categorical_parameter_range', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='parameter_range_type', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.parameter_range_type', + index=0, containing_type=None, fields=[]), + ], + serialized_start=411, + serialized_end=728, +) + + +_PARAMETERRANGES_PARAMETERRANGEMAPENTRY = _descriptor.Descriptor( + name='ParameterRangeMapEntry', + full_name='flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('8\001'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=847, + serialized_end=952, +) + +_PARAMETERRANGES = _descriptor.Descriptor( + name='ParameterRanges', + full_name='flyteidl.plugins.sagemaker.ParameterRanges', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='parameter_range_map', full_name='flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_PARAMETERRANGES_PARAMETERRANGEMAPENTRY, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=731, + serialized_end=952, +) + +_CONTINUOUSPARAMETERRANGE.fields_by_name['scaling_type'].enum_type = _HYPERPARAMETERSCALINGTYPE +_INTEGERPARAMETERRANGE.fields_by_name['scaling_type'].enum_type = _HYPERPARAMETERSCALINGTYPE +_PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range'].message_type = _CONTINUOUSPARAMETERRANGE +_PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range'].message_type = _INTEGERPARAMETERRANGE +_PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range'].message_type = _CATEGORICALPARAMETERRANGE +_PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'].fields.append( + _PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range']) +_PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'] +_PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'].fields.append( + _PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range']) +_PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'] +_PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'].fields.append( + _PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range']) +_PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range'].containing_oneof = _PARAMETERRANGEONEOF.oneofs_by_name['parameter_range_type'] +_PARAMETERRANGES_PARAMETERRANGEMAPENTRY.fields_by_name['value'].message_type = _PARAMETERRANGEONEOF +_PARAMETERRANGES_PARAMETERRANGEMAPENTRY.containing_type = _PARAMETERRANGES +_PARAMETERRANGES.fields_by_name['parameter_range_map'].message_type = _PARAMETERRANGES_PARAMETERRANGEMAPENTRY +DESCRIPTOR.message_types_by_name['ContinuousParameterRange'] = _CONTINUOUSPARAMETERRANGE +DESCRIPTOR.message_types_by_name['IntegerParameterRange'] = _INTEGERPARAMETERRANGE +DESCRIPTOR.message_types_by_name['CategoricalParameterRange'] = _CATEGORICALPARAMETERRANGE +DESCRIPTOR.message_types_by_name['ParameterRangeOneOf'] = _PARAMETERRANGEONEOF +DESCRIPTOR.message_types_by_name['ParameterRanges'] = _PARAMETERRANGES +DESCRIPTOR.enum_types_by_name['HyperparameterScalingType'] = _HYPERPARAMETERSCALINGTYPE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ContinuousParameterRange = _reflection.GeneratedProtocolMessageType('ContinuousParameterRange', (_message.Message,), dict( + DESCRIPTOR = _CONTINUOUSPARAMETERRANGE, + __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) + )) +_sym_db.RegisterMessage(ContinuousParameterRange) + +IntegerParameterRange = _reflection.GeneratedProtocolMessageType('IntegerParameterRange', (_message.Message,), dict( + DESCRIPTOR = _INTEGERPARAMETERRANGE, + __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) + )) +_sym_db.RegisterMessage(IntegerParameterRange) + +CategoricalParameterRange = _reflection.GeneratedProtocolMessageType('CategoricalParameterRange', (_message.Message,), dict( + DESCRIPTOR = _CATEGORICALPARAMETERRANGE, + __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) + )) +_sym_db.RegisterMessage(CategoricalParameterRange) + +ParameterRangeOneOf = _reflection.GeneratedProtocolMessageType('ParameterRangeOneOf', (_message.Message,), dict( + DESCRIPTOR = _PARAMETERRANGEONEOF, + __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + )) +_sym_db.RegisterMessage(ParameterRangeOneOf) + +ParameterRanges = _reflection.GeneratedProtocolMessageType('ParameterRanges', (_message.Message,), dict( + + ParameterRangeMapEntry = _reflection.GeneratedProtocolMessageType('ParameterRangeMapEntry', (_message.Message,), dict( + DESCRIPTOR = _PARAMETERRANGES_PARAMETERRANGEMAPENTRY, + __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry) + )) + , + DESCRIPTOR = _PARAMETERRANGES, + __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) + )) +_sym_db.RegisterMessage(ParameterRanges) +_sym_db.RegisterMessage(ParameterRanges.ParameterRangeMapEntry) + + +DESCRIPTOR._options = None +_PARAMETERRANGES_PARAMETERRANGEMAPENTRY._options = None +# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py new file mode 100644 index 000000000..88c222c95 --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py @@ -0,0 +1,348 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/sagemaker/trainingjob.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/plugins/sagemaker/trainingjob.proto', + package='flyteidl.plugins.sagemaker', + syntax='proto3', + serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), + serialized_pb=_b('\n,flyteidl/plugins/sagemaker/trainingjob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xc3\x02\n\x16\x41lgorithmSpecification\x12\x39\n\ninput_mode\x18\x01 \x01(\x0e\x32%.flyteidl.plugins.sagemaker.InputMode\x12\x41\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32).flyteidl.plugins.sagemaker.AlgorithmName\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"]\n\x11TrainingJobConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"\xc5\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12J\n\x13training_job_config\x18\x02 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.TrainingJobConfig\x12\x15\n\rinterruptible\x18\x04 \x01(\x08*\x1f\n\tInputMode\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01*(\n\rAlgorithmName\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') +) + +_INPUTMODE = _descriptor.EnumDescriptor( + name='InputMode', + full_name='flyteidl.plugins.sagemaker.InputMode', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='FILE', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PIPE', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=784, + serialized_end=815, +) +_sym_db.RegisterEnumDescriptor(_INPUTMODE) + +InputMode = enum_type_wrapper.EnumTypeWrapper(_INPUTMODE) +_ALGORITHMNAME = _descriptor.EnumDescriptor( + name='AlgorithmName', + full_name='flyteidl.plugins.sagemaker.AlgorithmName', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='CUSTOM', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='XGBOOST', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=817, + serialized_end=857, +) +_sym_db.RegisterEnumDescriptor(_ALGORITHMNAME) + +AlgorithmName = enum_type_wrapper.EnumTypeWrapper(_ALGORITHMNAME) +FILE = 0 +PIPE = 1 +CUSTOM = 0 +XGBOOST = 1 + + + +_ALGORITHMSPECIFICATION_METRICDEFINITION = _descriptor.Descriptor( + name='MetricDefinition', + full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='regex', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=353, + serialized_end=400, +) + +_ALGORITHMSPECIFICATION = _descriptor.Descriptor( + name='AlgorithmSpecification', + full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='input_mode', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='algorithm_name', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='algorithm_version', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='metric_definitions', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_ALGORITHMSPECIFICATION_METRICDEFINITION, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=77, + serialized_end=400, +) + + +_TRAININGJOBCONFIG = _descriptor.Descriptor( + name='TrainingJobConfig', + full_name='flyteidl.plugins.sagemaker.TrainingJobConfig', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='instance_count', full_name='flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='instance_type', full_name='flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='volume_size_in_gb', full_name='flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=402, + serialized_end=495, +) + + +_STOPPINGCONDITION = _descriptor.Descriptor( + name='StoppingCondition', + full_name='flyteidl.plugins.sagemaker.StoppingCondition', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='max_runtime_in_seconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_wait_time_in_seconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=497, + serialized_end=582, +) + + +_TRAININGJOB = _descriptor.Descriptor( + name='TrainingJob', + full_name='flyteidl.plugins.sagemaker.TrainingJob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='algorithm_specification', full_name='flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='training_job_config', full_name='flyteidl.plugins.sagemaker.TrainingJob.training_job_config', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='interruptible', full_name='flyteidl.plugins.sagemaker.TrainingJob.interruptible', index=2, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=585, + serialized_end=782, +) + +_ALGORITHMSPECIFICATION_METRICDEFINITION.containing_type = _ALGORITHMSPECIFICATION +_ALGORITHMSPECIFICATION.fields_by_name['input_mode'].enum_type = _INPUTMODE +_ALGORITHMSPECIFICATION.fields_by_name['algorithm_name'].enum_type = _ALGORITHMNAME +_ALGORITHMSPECIFICATION.fields_by_name['metric_definitions'].message_type = _ALGORITHMSPECIFICATION_METRICDEFINITION +_TRAININGJOB.fields_by_name['algorithm_specification'].message_type = _ALGORITHMSPECIFICATION +_TRAININGJOB.fields_by_name['training_job_config'].message_type = _TRAININGJOBCONFIG +DESCRIPTOR.message_types_by_name['AlgorithmSpecification'] = _ALGORITHMSPECIFICATION +DESCRIPTOR.message_types_by_name['TrainingJobConfig'] = _TRAININGJOBCONFIG +DESCRIPTOR.message_types_by_name['StoppingCondition'] = _STOPPINGCONDITION +DESCRIPTOR.message_types_by_name['TrainingJob'] = _TRAININGJOB +DESCRIPTOR.enum_types_by_name['InputMode'] = _INPUTMODE +DESCRIPTOR.enum_types_by_name['AlgorithmName'] = _ALGORITHMNAME +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AlgorithmSpecification = _reflection.GeneratedProtocolMessageType('AlgorithmSpecification', (_message.Message,), dict( + + MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict( + DESCRIPTOR = _ALGORITHMSPECIFICATION_METRICDEFINITION, + __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + )) + , + DESCRIPTOR = _ALGORITHMSPECIFICATION, + __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) + )) +_sym_db.RegisterMessage(AlgorithmSpecification) +_sym_db.RegisterMessage(AlgorithmSpecification.MetricDefinition) + +TrainingJobConfig = _reflection.GeneratedProtocolMessageType('TrainingJobConfig', (_message.Message,), dict( + DESCRIPTOR = _TRAININGJOBCONFIG, + __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) + )) +_sym_db.RegisterMessage(TrainingJobConfig) + +StoppingCondition = _reflection.GeneratedProtocolMessageType('StoppingCondition', (_message.Message,), dict( + DESCRIPTOR = _STOPPINGCONDITION, + __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) + )) +_sym_db.RegisterMessage(StoppingCondition) + +TrainingJob = _reflection.GeneratedProtocolMessageType('TrainingJob', (_message.Message,), dict( + DESCRIPTOR = _TRAININGJOB, + __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) + )) +_sym_db.RegisterMessage(TrainingJob) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + From aacf64710370a8973d65a8d5b2d82db2b7b83e98 Mon Sep 17 00:00:00 2001 From: Haytham AbuelFutuh Date: Thu, 23 Jul 2020 16:59:21 -0700 Subject: [PATCH 29/64] Remove java --- gen/pb-java/flyteidl/admin/Common.java | 20107 --------------- gen/pb-java/flyteidl/admin/Event.java | 5194 ---- .../flyteidl/admin/ExecutionOuterClass.java | 20558 ---------------- .../flyteidl/admin/LaunchPlanOuterClass.java | 13189 ---------- .../admin/MatchableResourceOuterClass.java | 8238 ------- .../admin/NodeExecutionOuterClass.java | 11025 --------- gen/pb-java/flyteidl/admin/Notification.java | 1325 - .../ProjectDomainAttributesOuterClass.java | 4856 ---- .../flyteidl/admin/ProjectOuterClass.java | 4299 ---- .../flyteidl/admin/ScheduleOuterClass.java | 1848 -- .../admin/TaskExecutionOuterClass.java | 8862 ------- .../flyteidl/admin/TaskOuterClass.java | 5102 ---- .../admin/WorkflowAttributesOuterClass.java | 5375 ---- .../flyteidl/admin/WorkflowOuterClass.java | 5646 ----- gen/pb-java/flyteidl/core/Compiler.java | 5243 ---- gen/pb-java/flyteidl/core/Condition.java | 4070 --- gen/pb-java/flyteidl/core/DynamicJob.java | 2542 -- gen/pb-java/flyteidl/core/Errors.java | 1882 -- gen/pb-java/flyteidl/core/Execution.java | 5764 ----- .../flyteidl/core/IdentifierOuterClass.java | 4043 --- gen/pb-java/flyteidl/core/Interface.java | 4503 ---- gen/pb-java/flyteidl/core/Literals.java | 14859 ----------- gen/pb-java/flyteidl/core/Tasks.java | 13257 ---------- gen/pb-java/flyteidl/core/Types.java | 6407 ----- gen/pb-java/flyteidl/core/Workflow.java | 14708 ----------- .../core/WorkflowClosureOuterClass.java | 1251 - gen/pb-java/flyteidl/event/Event.java | 8733 ------- .../flyteidl/plugins/ArrayJobOuterClass.java | 759 - gen/pb-java/flyteidl/plugins/Presto.java | 1031 - gen/pb-java/flyteidl/plugins/Pytorch.java | 560 - gen/pb-java/flyteidl/plugins/Qubole.java | 2700 -- gen/pb-java/flyteidl/plugins/Sidecar.java | 817 - gen/pb-java/flyteidl/plugins/Spark.java | 2179 -- gen/pb-java/flyteidl/plugins/Tensorflow.java | 705 - .../flyteidl/plugins/WaitableOuterClass.java | 911 - .../flyteidl/plugins/sagemaker/Hpojob.java | 2824 --- .../sagemaker/ParameterRangesOuterClass.java | 3973 --- .../sagemaker/TrainingJobOuterClass.java | 4208 ---- gen/pb-java/flyteidl/service/Admin.java | 395 - 39 files changed, 223948 deletions(-) delete mode 100644 gen/pb-java/flyteidl/admin/Common.java delete mode 100644 gen/pb-java/flyteidl/admin/Event.java delete mode 100644 gen/pb-java/flyteidl/admin/ExecutionOuterClass.java delete mode 100644 gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java delete mode 100644 gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java delete mode 100644 gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java delete mode 100644 gen/pb-java/flyteidl/admin/Notification.java delete mode 100644 gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java delete mode 100644 gen/pb-java/flyteidl/admin/ProjectOuterClass.java delete mode 100644 gen/pb-java/flyteidl/admin/ScheduleOuterClass.java delete mode 100644 gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java delete mode 100644 gen/pb-java/flyteidl/admin/TaskOuterClass.java delete mode 100644 gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java delete mode 100644 gen/pb-java/flyteidl/admin/WorkflowOuterClass.java delete mode 100644 gen/pb-java/flyteidl/core/Compiler.java delete mode 100644 gen/pb-java/flyteidl/core/Condition.java delete mode 100644 gen/pb-java/flyteidl/core/DynamicJob.java delete mode 100644 gen/pb-java/flyteidl/core/Errors.java delete mode 100644 gen/pb-java/flyteidl/core/Execution.java delete mode 100644 gen/pb-java/flyteidl/core/IdentifierOuterClass.java delete mode 100644 gen/pb-java/flyteidl/core/Interface.java delete mode 100644 gen/pb-java/flyteidl/core/Literals.java delete mode 100644 gen/pb-java/flyteidl/core/Tasks.java delete mode 100644 gen/pb-java/flyteidl/core/Types.java delete mode 100644 gen/pb-java/flyteidl/core/Workflow.java delete mode 100644 gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java delete mode 100644 gen/pb-java/flyteidl/event/Event.java delete mode 100644 gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java delete mode 100644 gen/pb-java/flyteidl/plugins/Presto.java delete mode 100644 gen/pb-java/flyteidl/plugins/Pytorch.java delete mode 100644 gen/pb-java/flyteidl/plugins/Qubole.java delete mode 100644 gen/pb-java/flyteidl/plugins/Sidecar.java delete mode 100644 gen/pb-java/flyteidl/plugins/Spark.java delete mode 100644 gen/pb-java/flyteidl/plugins/Tensorflow.java delete mode 100644 gen/pb-java/flyteidl/plugins/WaitableOuterClass.java delete mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java delete mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java delete mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java delete mode 100644 gen/pb-java/flyteidl/service/Admin.java diff --git a/gen/pb-java/flyteidl/admin/Common.java b/gen/pb-java/flyteidl/admin/Common.java deleted file mode 100644 index aedc37089..000000000 --- a/gen/pb-java/flyteidl/admin/Common.java +++ /dev/null @@ -1,20107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/common.proto - -package flyteidl.admin; - -public final class Common { - private Common() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * The status of the named entity is used to control its visibility in the UI.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.NamedEntityState} - */ - public enum NamedEntityState - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * By default, all named entities are considered active and under development.
-     * 
- * - * NAMED_ENTITY_ACTIVE = 0; - */ - NAMED_ENTITY_ACTIVE(0), - /** - *
-     * Archived named entities are no longer visible in the UI.
-     * 
- * - * NAMED_ENTITY_ARCHIVED = 1; - */ - NAMED_ENTITY_ARCHIVED(1), - /** - *
-     * System generated entities that aren't explicitly created or managed by a user.
-     * 
- * - * SYSTEM_GENERATED = 2; - */ - SYSTEM_GENERATED(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * By default, all named entities are considered active and under development.
-     * 
- * - * NAMED_ENTITY_ACTIVE = 0; - */ - public static final int NAMED_ENTITY_ACTIVE_VALUE = 0; - /** - *
-     * Archived named entities are no longer visible in the UI.
-     * 
- * - * NAMED_ENTITY_ARCHIVED = 1; - */ - public static final int NAMED_ENTITY_ARCHIVED_VALUE = 1; - /** - *
-     * System generated entities that aren't explicitly created or managed by a user.
-     * 
- * - * SYSTEM_GENERATED = 2; - */ - public static final int SYSTEM_GENERATED_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NamedEntityState valueOf(int value) { - return forNumber(value); - } - - public static NamedEntityState forNumber(int value) { - switch (value) { - case 0: return NAMED_ENTITY_ACTIVE; - case 1: return NAMED_ENTITY_ARCHIVED; - case 2: return SYSTEM_GENERATED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - NamedEntityState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public NamedEntityState findValueByNumber(int number) { - return NamedEntityState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.admin.Common.getDescriptor().getEnumTypes().get(0); - } - - private static final NamedEntityState[] VALUES = values(); - - public static NamedEntityState 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 NamedEntityState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.NamedEntityState) - } - - public interface NamedEntityIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * User provided value for the resource.
-     * The combination of project + domain + name uniquely identifies the resource.
-     * +optional - in certain contexts - like 'List API', 'Launch plans'
-     * 
- * - * string name = 3; - */ - java.lang.String getName(); - /** - *
-     * User provided value for the resource.
-     * The combination of project + domain + name uniquely identifies the resource.
-     * +optional - in certain contexts - like 'List API', 'Launch plans'
-     * 
- * - * string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - *
-   * Encapsulation of fields that identifies a Flyte resource.
-   * A resource can internally have multiple versions.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} - */ - public static final class NamedEntityIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifier) - NamedEntityIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityIdentifier.newBuilder() to construct. - private NamedEntityIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityIdentifier() { - project_ = ""; - domain_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityIdentifier( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - *
-     * User provided value for the resource.
-     * The combination of project + domain + name uniquely identifies the resource.
-     * +optional - in certain contexts - like 'List API', 'Launch plans'
-     * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-     * User provided value for the resource.
-     * The combination of project + domain + name uniquely identifies the resource.
-     * +optional - in certain contexts - like 'List API', 'Launch plans'
-     * 
- * - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof flyteidl.admin.Common.NamedEntityIdentifier)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityIdentifier other = (flyteidl.admin.Common.NamedEntityIdentifier) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifier 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 flyteidl.admin.Common.NamedEntityIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifier 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 flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifier 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(flyteidl.admin.Common.NamedEntityIdentifier 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; - } - /** - *
-     * Encapsulation of fields that identifies a Flyte resource.
-     * A resource can internally have multiple versions.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifier) - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityIdentifier.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(); - project_ = ""; - - domain_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifier build() { - flyteidl.admin.Common.NamedEntityIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifier buildPartial() { - flyteidl.admin.Common.NamedEntityIdentifier result = new flyteidl.admin.Common.NamedEntityIdentifier(this); - result.project_ = project_; - result.domain_ = domain_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.admin.Common.NamedEntityIdentifier) { - return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifier other) { - if (other == flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - flyteidl.admin.Common.NamedEntityIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityIdentifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifier) - private static final flyteidl.admin.Common.NamedEntityIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifier(); - } - - public static flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityIdentifier(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 flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Common description across all versions of the entity
-     * +optional
-     * 
- * - * string description = 1; - */ - java.lang.String getDescription(); - /** - *
-     * Common description across all versions of the entity
-     * +optional
-     * 
- * - * string description = 1; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-     * Shared state across all version of the entity
-     * At this point in time, only workflow entities can have their state archived.
-     * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - int getStateValue(); - /** - *
-     * Shared state across all version of the entity
-     * At this point in time, only workflow entities can have their state archived.
-     * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - flyteidl.admin.Common.NamedEntityState getState(); - } - /** - * Protobuf type {@code flyteidl.admin.NamedEntityMetadata} - */ - public static final class NamedEntityMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityMetadata) - NamedEntityMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityMetadata.newBuilder() to construct. - private NamedEntityMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityMetadata() { - description_ = ""; - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityMetadata( - 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(); - - description_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityMetadata.class, flyteidl.admin.Common.NamedEntityMetadata.Builder.class); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object description_; - /** - *
-     * Common description across all versions of the entity
-     * +optional
-     * 
- * - * string description = 1; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - *
-     * Common description across all versions of the entity
-     * +optional
-     * 
- * - * string description = 1; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_; - /** - *
-     * Shared state across all version of the entity
-     * At this point in time, only workflow entities can have their state archived.
-     * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * Shared state across all version of the entity
-     * At this point in time, only workflow entities can have their state archived.
-     * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public flyteidl.admin.Common.NamedEntityState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.Common.NamedEntityState result = flyteidl.admin.Common.NamedEntityState.valueOf(state_); - return result == null ? flyteidl.admin.Common.NamedEntityState.UNRECOGNIZED : result; - } - - 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 (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); - } - if (state_ != flyteidl.admin.Common.NamedEntityState.NAMED_ENTITY_ACTIVE.getNumber()) { - output.writeEnum(2, state_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); - } - if (state_ != flyteidl.admin.Common.NamedEntityState.NAMED_ENTITY_ACTIVE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); - } - 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 flyteidl.admin.Common.NamedEntityMetadata)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityMetadata other = (flyteidl.admin.Common.NamedEntityMetadata) obj; - - if (!getDescription() - .equals(other.getDescription())) return false; - if (state_ != other.state_) 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) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityMetadata 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 flyteidl.admin.Common.NamedEntityMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityMetadata 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 flyteidl.admin.Common.NamedEntityMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityMetadata 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(flyteidl.admin.Common.NamedEntityMetadata 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 flyteidl.admin.NamedEntityMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityMetadata) - flyteidl.admin.Common.NamedEntityMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityMetadata.class, flyteidl.admin.Common.NamedEntityMetadata.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityMetadata.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(); - description_ = ""; - - state_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityMetadata getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityMetadata build() { - flyteidl.admin.Common.NamedEntityMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityMetadata buildPartial() { - flyteidl.admin.Common.NamedEntityMetadata result = new flyteidl.admin.Common.NamedEntityMetadata(this); - result.description_ = description_; - result.state_ = state_; - 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 flyteidl.admin.Common.NamedEntityMetadata) { - return mergeFrom((flyteidl.admin.Common.NamedEntityMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityMetadata other) { - if (other == flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance()) return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - 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 { - flyteidl.admin.Common.NamedEntityMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private int state_ = 0; - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public flyteidl.admin.Common.NamedEntityState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.Common.NamedEntityState result = flyteidl.admin.Common.NamedEntityState.valueOf(state_); - return result == null ? flyteidl.admin.Common.NamedEntityState.UNRECOGNIZED : result; - } - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public Builder setState(flyteidl.admin.Common.NamedEntityState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public Builder clearState() { - - state_ = 0; - 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:flyteidl.admin.NamedEntityMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityMetadata) - private static final flyteidl.admin.Common.NamedEntityMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityMetadata(); - } - - public static flyteidl.admin.Common.NamedEntityMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityMetadata(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 flyteidl.admin.Common.NamedEntityMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntity) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - boolean hasId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - boolean hasMetadata(); - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - flyteidl.admin.Common.NamedEntityMetadata getMetadata(); - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder(); - } - /** - *
-   * Describes information common to a NamedEntity, identified by a project /
-   * domain / name / resource type combination
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntity} - */ - public static final class NamedEntity extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntity) - NamedEntityOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntity.newBuilder() to construct. - private NamedEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntity() { - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntity( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.Common.NamedEntityMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.admin.Common.NamedEntityMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntity.class, flyteidl.admin.Common.NamedEntity.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int ID_FIELD_NUMBER = 2; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private flyteidl.admin.Common.NamedEntityMetadata metadata_; - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { - return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (id_ != null) { - output.writeMessage(2, getId()); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (id_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getId()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - 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 flyteidl.admin.Common.NamedEntity)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntity other = (flyteidl.admin.Common.NamedEntity) obj; - - if (resourceType_ != other.resourceType_) return false; - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) 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) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntity 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 flyteidl.admin.Common.NamedEntity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntity 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 flyteidl.admin.Common.NamedEntity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntity 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(flyteidl.admin.Common.NamedEntity 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; - } - /** - *
-     * Describes information common to a NamedEntity, identified by a project /
-     * domain / name / resource type combination
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntity} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntity) - flyteidl.admin.Common.NamedEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntity.class, flyteidl.admin.Common.NamedEntity.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntity.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(); - resourceType_ = 0; - - if (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntity getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntity.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntity build() { - flyteidl.admin.Common.NamedEntity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntity buildPartial() { - flyteidl.admin.Common.NamedEntity result = new flyteidl.admin.Common.NamedEntity(this); - result.resourceType_ = resourceType_; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.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 flyteidl.admin.Common.NamedEntity) { - return mergeFrom((flyteidl.admin.Common.NamedEntity)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntity other) { - if (other == flyteidl.admin.Common.NamedEntity.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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 { - flyteidl.admin.Common.NamedEntity parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntity) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.Common.NamedEntityMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> metadataBuilder_; - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder setMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder setMetadata( - flyteidl.admin.Common.NamedEntityMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder mergeMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.admin.Common.NamedEntityMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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:flyteidl.admin.NamedEntity) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntity) - private static final flyteidl.admin.Common.NamedEntity DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntity(); - } - - public static flyteidl.admin.Common.NamedEntity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntity(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 flyteidl.admin.Common.NamedEntity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SortOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Sort) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates an attribute to sort the response values.
-     * TODO(katrogan): Add string validation here. This should never be empty.
-     * 
- * - * string key = 1; - */ - java.lang.String getKey(); - /** - *
-     * Indicates an attribute to sort the response values.
-     * TODO(katrogan): Add string validation here. This should never be empty.
-     * 
- * - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - *
-     * Indicates the direction to apply sort key for response values.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - int getDirectionValue(); - /** - *
-     * Indicates the direction to apply sort key for response values.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - flyteidl.admin.Common.Sort.Direction getDirection(); - } - /** - *
-   * Species sort ordering in a list request.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Sort} - */ - public static final class Sort extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Sort) - SortOrBuilder { - private static final long serialVersionUID = 0L; - // Use Sort.newBuilder() to construct. - private Sort(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Sort() { - key_ = ""; - direction_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Sort( - 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(); - - key_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - direction_ = rawValue; - 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 flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.admin.Sort.Direction} - */ - public enum Direction - implements com.google.protobuf.ProtocolMessageEnum { - /** - * DESCENDING = 0; - */ - DESCENDING(0), - /** - * ASCENDING = 1; - */ - ASCENDING(1), - UNRECOGNIZED(-1), - ; - - /** - * DESCENDING = 0; - */ - public static final int DESCENDING_VALUE = 0; - /** - * ASCENDING = 1; - */ - public static final int ASCENDING_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Direction valueOf(int value) { - return forNumber(value); - } - - public static Direction forNumber(int value) { - switch (value) { - case 0: return DESCENDING; - case 1: return ASCENDING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Direction> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Direction findValueByNumber(int number) { - return Direction.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.admin.Common.Sort.getDescriptor().getEnumTypes().get(0); - } - - private static final Direction[] VALUES = values(); - - public static Direction 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 Direction(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.Sort.Direction) - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - *
-     * Indicates an attribute to sort the response values.
-     * TODO(katrogan): Add string validation here. This should never be empty.
-     * 
- * - * string key = 1; - */ - 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; - } - } - /** - *
-     * Indicates an attribute to sort the response values.
-     * TODO(katrogan): Add string validation here. This should never be empty.
-     * 
- * - * string key = 1; - */ - 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 DIRECTION_FIELD_NUMBER = 2; - private int direction_; - /** - *
-     * Indicates the direction to apply sort key for response values.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public int getDirectionValue() { - return direction_; - } - /** - *
-     * Indicates the direction to apply sort key for response values.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public flyteidl.admin.Common.Sort.Direction getDirection() { - @SuppressWarnings("deprecation") - flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); - return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; - } - - 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 (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { - output.writeEnum(2, direction_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, direction_); - } - 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 flyteidl.admin.Common.Sort)) { - return super.equals(obj); - } - flyteidl.admin.Common.Sort other = (flyteidl.admin.Common.Sort) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (direction_ != other.direction_) 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) + DIRECTION_FIELD_NUMBER; - hash = (53 * hash) + direction_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.Sort parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Sort parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Sort parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Sort parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Sort parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Sort parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Sort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Sort 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 flyteidl.admin.Common.Sort parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Sort 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 flyteidl.admin.Common.Sort parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Sort 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(flyteidl.admin.Common.Sort 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; - } - /** - *
-     * Species sort ordering in a list request.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Sort} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Sort) - flyteidl.admin.Common.SortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); - } - - // Construct using flyteidl.admin.Common.Sort.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_ = ""; - - direction_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.Sort getDefaultInstanceForType() { - return flyteidl.admin.Common.Sort.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.Sort build() { - flyteidl.admin.Common.Sort result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.Sort buildPartial() { - flyteidl.admin.Common.Sort result = new flyteidl.admin.Common.Sort(this); - result.key_ = key_; - result.direction_ = direction_; - 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 flyteidl.admin.Common.Sort) { - return mergeFrom((flyteidl.admin.Common.Sort)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.Sort other) { - if (other == flyteidl.admin.Common.Sort.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.direction_ != 0) { - setDirectionValue(other.getDirectionValue()); - } - 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 { - flyteidl.admin.Common.Sort parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.Sort) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       * Indicates an attribute to sort the response values.
-       * TODO(katrogan): Add string validation here. This should never be empty.
-       * 
- * - * string key = 1; - */ - 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; - } - } - /** - *
-       * Indicates an attribute to sort the response values.
-       * TODO(katrogan): Add string validation here. This should never be empty.
-       * 
- * - * string key = 1; - */ - 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; - } - } - /** - *
-       * Indicates an attribute to sort the response values.
-       * TODO(katrogan): Add string validation here. This should never be empty.
-       * 
- * - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates an attribute to sort the response values.
-       * TODO(katrogan): Add string validation here. This should never be empty.
-       * 
- * - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       * Indicates an attribute to sort the response values.
-       * TODO(katrogan): Add string validation here. This should never be empty.
-       * 
- * - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private int direction_ = 0; - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public int getDirectionValue() { - return direction_; - } - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public Builder setDirectionValue(int value) { - direction_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public flyteidl.admin.Common.Sort.Direction getDirection() { - @SuppressWarnings("deprecation") - flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); - return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; - } - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public Builder setDirection(flyteidl.admin.Common.Sort.Direction value) { - if (value == null) { - throw new NullPointerException(); - } - - direction_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public Builder clearDirection() { - - direction_ = 0; - 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:flyteidl.admin.Sort) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Sort) - private static final flyteidl.admin.Common.Sort DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.Sort(); - } - - public static flyteidl.admin.Common.Sort getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Sort parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Sort(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 flyteidl.admin.Common.Sort getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityIdentifierListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 3; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 6; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 6; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - } - /** - *
-   * Represents a request structure to list identifiers.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} - */ - public static final class NamedEntityIdentifierListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierListRequest) - NamedEntityIdentifierListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityIdentifierListRequest.newBuilder() to construct. - private NamedEntityIdentifierListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityIdentifierListRequest() { - project_ = ""; - domain_ = ""; - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityIdentifierListRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 24: { - - limit_ = input.readUInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LIMIT_FIELD_NUMBER = 3; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - public static final int FILTERS_FIELD_NUMBER = 6; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 6; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - 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(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 6; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (limit_ != 0) { - output.writeUInt32(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, filters_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, filters_); - } - 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityIdentifierListRequest other = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) return false; - } - if (!getFilters() - .equals(other.getFilters())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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(flyteidl.admin.Common.NamedEntityIdentifierListRequest 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; - } - /** - *
-     * Represents a request structure to list identifiers.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierListRequest) - flyteidl.admin.Common.NamedEntityIdentifierListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityIdentifierListRequest.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(); - project_ = ""; - - domain_ = ""; - - limit_ = 0; - - token_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - filters_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierListRequest build() { - flyteidl.admin.Common.NamedEntityIdentifierListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierListRequest buildPartial() { - flyteidl.admin.Common.NamedEntityIdentifierListRequest result = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.limit_ = limit_; - result.token_ = token_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.build(); - } - result.filters_ = filters_; - 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest) { - return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierListRequest other) { - if (other == flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - 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 { - flyteidl.admin.Common.NamedEntityIdentifierListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 3; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 3; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = 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:flyteidl.admin.NamedEntityIdentifierListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierListRequest) - private static final flyteidl.admin.Common.NamedEntityIdentifierListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(); - } - - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityIdentifierListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityIdentifierListRequest(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 flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 2; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 2; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 3; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 3; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 4; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 5; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 5; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 7; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 7; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - } - /** - *
-   * Represents a request structure to list NamedEntity objects
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityListRequest} - */ - public static final class NamedEntityListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityListRequest) - NamedEntityListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityListRequest.newBuilder() to construct. - private NamedEntityListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityListRequest() { - resourceType_ = 0; - project_ = ""; - domain_ = ""; - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityListRequest( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 32: { - - limit_ = input.readUInt32(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 50: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityListRequest.class, flyteidl.admin.Common.NamedEntityListRequest.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int PROJECT_FIELD_NUMBER = 2; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 2; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 2; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 3; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LIMIT_FIELD_NUMBER = 4; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 4; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 5; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 5; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 5; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 6; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - public static final int FILTERS_FIELD_NUMBER = 7; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 7; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - 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(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 7; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); - } - if (limit_ != 0) { - output.writeUInt32(4, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, token_); - } - if (sortBy_ != null) { - output.writeMessage(6, getSortBy()); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filters_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, token_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSortBy()); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filters_); - } - 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 flyteidl.admin.Common.NamedEntityListRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityListRequest other = (flyteidl.admin.Common.NamedEntityListRequest) obj; - - if (resourceType_ != other.resourceType_) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) return false; - } - if (!getFilters() - .equals(other.getFilters())) 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) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityListRequest 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 flyteidl.admin.Common.NamedEntityListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityListRequest 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 flyteidl.admin.Common.NamedEntityListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityListRequest 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(flyteidl.admin.Common.NamedEntityListRequest 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; - } - /** - *
-     * Represents a request structure to list NamedEntity objects
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityListRequest) - flyteidl.admin.Common.NamedEntityListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityListRequest.class, flyteidl.admin.Common.NamedEntityListRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityListRequest.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(); - resourceType_ = 0; - - project_ = ""; - - domain_ = ""; - - limit_ = 0; - - token_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - filters_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityListRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityListRequest build() { - flyteidl.admin.Common.NamedEntityListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityListRequest buildPartial() { - flyteidl.admin.Common.NamedEntityListRequest result = new flyteidl.admin.Common.NamedEntityListRequest(this); - result.resourceType_ = resourceType_; - result.project_ = project_; - result.domain_ = domain_; - result.limit_ = limit_; - result.token_ = token_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.build(); - } - result.filters_ = filters_; - 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 flyteidl.admin.Common.NamedEntityListRequest) { - return mergeFrom((flyteidl.admin.Common.NamedEntityListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityListRequest other) { - if (other == flyteidl.admin.Common.NamedEntityListRequest.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - 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 { - flyteidl.admin.Common.NamedEntityListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 2; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 2; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 2; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 2; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 2; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 4; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 4; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 4; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = 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:flyteidl.admin.NamedEntityListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityListRequest) - private static final flyteidl.admin.Common.NamedEntityListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityListRequest(); - } - - public static flyteidl.admin.Common.NamedEntityListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityListRequest(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 flyteidl.admin.Common.NamedEntityListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityIdentifierListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - java.util.List - getEntitiesList(); - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index); - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - int getEntitiesCount(); - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - java.util.List - getEntitiesOrBuilderList(); - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of NamedEntityIdentifiers.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} - */ - public static final class NamedEntityIdentifierList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierList) - NamedEntityIdentifierListOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityIdentifierList.newBuilder() to construct. - private NamedEntityIdentifierList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityIdentifierList() { - entities_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityIdentifierList( - 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)) { - entities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entities_.add( - input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); - } - - private int bitField0_; - public static final int ENTITIES_FIELD_NUMBER = 1; - private java.util.List entities_; - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List getEntitiesList() { - return entities_; - } - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List - getEntitiesOrBuilderList() { - return entities_; - } - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public int getEntitiesCount() { - return entities_.size(); - } - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { - return entities_.get(index); - } - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( - int index) { - return entities_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < entities_.size(); i++) { - output.writeMessage(1, entities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.Common.NamedEntityIdentifierList)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityIdentifierList other = (flyteidl.admin.Common.NamedEntityIdentifierList) obj; - - if (!getEntitiesList() - .equals(other.getEntitiesList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getEntitiesCount() > 0) { - hash = (37 * hash) + ENTITIES_FIELD_NUMBER; - hash = (53 * hash) + getEntitiesList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList 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 flyteidl.admin.Common.NamedEntityIdentifierList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList 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 flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList 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(flyteidl.admin.Common.NamedEntityIdentifierList 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; - } - /** - *
-     * Represents a list of NamedEntityIdentifiers.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierList) - flyteidl.admin.Common.NamedEntityIdentifierListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityIdentifierList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEntitiesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (entitiesBuilder_ == null) { - entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - entitiesBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierList build() { - flyteidl.admin.Common.NamedEntityIdentifierList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierList buildPartial() { - flyteidl.admin.Common.NamedEntityIdentifierList result = new flyteidl.admin.Common.NamedEntityIdentifierList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (entitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entities_ = entities_; - } else { - result.entities_ = entitiesBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.Common.NamedEntityIdentifierList) { - return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierList other) { - if (other == flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance()) return this; - if (entitiesBuilder_ == null) { - if (!other.entities_.isEmpty()) { - if (entities_.isEmpty()) { - entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntitiesIsMutable(); - entities_.addAll(other.entities_); - } - onChanged(); - } - } else { - if (!other.entities_.isEmpty()) { - if (entitiesBuilder_.isEmpty()) { - entitiesBuilder_.dispose(); - entitiesBuilder_ = null; - entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); - entitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntitiesFieldBuilder() : null; - } else { - entitiesBuilder_.addAllMessages(other.entities_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.Common.NamedEntityIdentifierList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List entities_ = - java.util.Collections.emptyList(); - private void ensureEntitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entities_ = new java.util.ArrayList(entities_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> entitiesBuilder_; - - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List getEntitiesList() { - if (entitiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entities_); - } else { - return entitiesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public int getEntitiesCount() { - if (entitiesBuilder_ == null) { - return entities_.size(); - } else { - return entitiesBuilder_.getCount(); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { - if (entitiesBuilder_ == null) { - return entities_.get(index); - } else { - return entitiesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder setEntities( - int index, flyteidl.admin.Common.NamedEntityIdentifier value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.set(index, value); - onChanged(); - } else { - entitiesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder setEntities( - int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.set(index, builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addEntities(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.add(value); - onChanged(); - } else { - entitiesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addEntities( - int index, flyteidl.admin.Common.NamedEntityIdentifier value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.add(index, value); - onChanged(); - } else { - entitiesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addEntities( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.add(builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addEntities( - int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.add(index, builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addAllEntities( - java.lang.Iterable values) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entities_); - onChanged(); - } else { - entitiesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder clearEntities() { - if (entitiesBuilder_ == null) { - entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entitiesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder removeEntities(int index) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.remove(index); - onChanged(); - } else { - entitiesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getEntitiesBuilder( - int index) { - return getEntitiesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( - int index) { - if (entitiesBuilder_ == null) { - return entities_.get(index); } else { - return entitiesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List - getEntitiesOrBuilderList() { - if (entitiesBuilder_ != null) { - return entitiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entities_); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder() { - return getEntitiesFieldBuilder().addBuilder( - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder( - int index) { - return getEntitiesFieldBuilder().addBuilder( - index, flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List - getEntitiesBuilderList() { - return getEntitiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getEntitiesFieldBuilder() { - if (entitiesBuilder_ == null) { - entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - entities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - entities_ = null; - } - return entitiesBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.NamedEntityIdentifierList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierList) - private static final flyteidl.admin.Common.NamedEntityIdentifierList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierList(); - } - - public static flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityIdentifierList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityIdentifierList(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 flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - java.util.List - getEntitiesList(); - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - flyteidl.admin.Common.NamedEntity getEntities(int index); - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - int getEntitiesCount(); - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - java.util.List - getEntitiesOrBuilderList(); - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of NamedEntityIdentifiers.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityList} - */ - public static final class NamedEntityList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityList) - NamedEntityListOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityList.newBuilder() to construct. - private NamedEntityList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityList() { - entities_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityList( - 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)) { - entities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entities_.add( - input.readMessage(flyteidl.admin.Common.NamedEntity.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityList.class, flyteidl.admin.Common.NamedEntityList.Builder.class); - } - - private int bitField0_; - public static final int ENTITIES_FIELD_NUMBER = 1; - private java.util.List entities_; - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List getEntitiesList() { - return entities_; - } - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List - getEntitiesOrBuilderList() { - return entities_; - } - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public int getEntitiesCount() { - return entities_.size(); - } - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity getEntities(int index) { - return entities_.get(index); - } - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( - int index) { - return entities_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < entities_.size(); i++) { - output.writeMessage(1, entities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.Common.NamedEntityList)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityList other = (flyteidl.admin.Common.NamedEntityList) obj; - - if (!getEntitiesList() - .equals(other.getEntitiesList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getEntitiesCount() > 0) { - hash = (37 * hash) + ENTITIES_FIELD_NUMBER; - hash = (53 * hash) + getEntitiesList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityList 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 flyteidl.admin.Common.NamedEntityList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityList 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 flyteidl.admin.Common.NamedEntityList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityList 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(flyteidl.admin.Common.NamedEntityList 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; - } - /** - *
-     * Represents a list of NamedEntityIdentifiers.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityList) - flyteidl.admin.Common.NamedEntityListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityList.class, flyteidl.admin.Common.NamedEntityList.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEntitiesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (entitiesBuilder_ == null) { - entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - entitiesBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityList getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityList build() { - flyteidl.admin.Common.NamedEntityList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityList buildPartial() { - flyteidl.admin.Common.NamedEntityList result = new flyteidl.admin.Common.NamedEntityList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (entitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entities_ = entities_; - } else { - result.entities_ = entitiesBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.Common.NamedEntityList) { - return mergeFrom((flyteidl.admin.Common.NamedEntityList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityList other) { - if (other == flyteidl.admin.Common.NamedEntityList.getDefaultInstance()) return this; - if (entitiesBuilder_ == null) { - if (!other.entities_.isEmpty()) { - if (entities_.isEmpty()) { - entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntitiesIsMutable(); - entities_.addAll(other.entities_); - } - onChanged(); - } - } else { - if (!other.entities_.isEmpty()) { - if (entitiesBuilder_.isEmpty()) { - entitiesBuilder_.dispose(); - entitiesBuilder_ = null; - entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); - entitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntitiesFieldBuilder() : null; - } else { - entitiesBuilder_.addAllMessages(other.entities_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.Common.NamedEntityList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List entities_ = - java.util.Collections.emptyList(); - private void ensureEntitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entities_ = new java.util.ArrayList(entities_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder> entitiesBuilder_; - - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List getEntitiesList() { - if (entitiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entities_); - } else { - return entitiesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public int getEntitiesCount() { - if (entitiesBuilder_ == null) { - return entities_.size(); - } else { - return entitiesBuilder_.getCount(); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity getEntities(int index) { - if (entitiesBuilder_ == null) { - return entities_.get(index); - } else { - return entitiesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder setEntities( - int index, flyteidl.admin.Common.NamedEntity value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.set(index, value); - onChanged(); - } else { - entitiesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder setEntities( - int index, flyteidl.admin.Common.NamedEntity.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.set(index, builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addEntities(flyteidl.admin.Common.NamedEntity value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.add(value); - onChanged(); - } else { - entitiesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addEntities( - int index, flyteidl.admin.Common.NamedEntity value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.add(index, value); - onChanged(); - } else { - entitiesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addEntities( - flyteidl.admin.Common.NamedEntity.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.add(builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addEntities( - int index, flyteidl.admin.Common.NamedEntity.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.add(index, builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addAllEntities( - java.lang.Iterable values) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entities_); - onChanged(); - } else { - entitiesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder clearEntities() { - if (entitiesBuilder_ == null) { - entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entitiesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder removeEntities(int index) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.remove(index); - onChanged(); - } else { - entitiesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity.Builder getEntitiesBuilder( - int index) { - return getEntitiesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( - int index) { - if (entitiesBuilder_ == null) { - return entities_.get(index); } else { - return entitiesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List - getEntitiesOrBuilderList() { - if (entitiesBuilder_ != null) { - return entitiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entities_); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity.Builder addEntitiesBuilder() { - return getEntitiesFieldBuilder().addBuilder( - flyteidl.admin.Common.NamedEntity.getDefaultInstance()); - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity.Builder addEntitiesBuilder( - int index) { - return getEntitiesFieldBuilder().addBuilder( - index, flyteidl.admin.Common.NamedEntity.getDefaultInstance()); - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List - getEntitiesBuilderList() { - return getEntitiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder> - getEntitiesFieldBuilder() { - if (entitiesBuilder_ == null) { - entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder>( - entities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - entities_ = null; - } - return entitiesBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.NamedEntityList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityList) - private static final flyteidl.admin.Common.NamedEntityList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityList(); - } - - public static flyteidl.admin.Common.NamedEntityList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityList(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 flyteidl.admin.Common.NamedEntityList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - boolean hasId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * A request to retrieve the metadata associated with a NamedEntityIdentifier
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityGetRequest} - */ - public static final class NamedEntityGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityGetRequest) - NamedEntityGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityGetRequest.newBuilder() to construct. - private NamedEntityGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityGetRequest() { - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityGetRequest( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityGetRequest.class, flyteidl.admin.Common.NamedEntityGetRequest.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int ID_FIELD_NUMBER = 2; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (id_ != null) { - output.writeMessage(2, getId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (id_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getId()); - } - 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 flyteidl.admin.Common.NamedEntityGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityGetRequest other = (flyteidl.admin.Common.NamedEntityGetRequest) obj; - - if (resourceType_ != other.resourceType_) return false; - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityGetRequest 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 flyteidl.admin.Common.NamedEntityGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityGetRequest 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 flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityGetRequest 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(flyteidl.admin.Common.NamedEntityGetRequest 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 request to retrieve the metadata associated with a NamedEntityIdentifier
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityGetRequest) - flyteidl.admin.Common.NamedEntityGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityGetRequest.class, flyteidl.admin.Common.NamedEntityGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityGetRequest.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(); - resourceType_ = 0; - - if (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityGetRequest build() { - flyteidl.admin.Common.NamedEntityGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityGetRequest buildPartial() { - flyteidl.admin.Common.NamedEntityGetRequest result = new flyteidl.admin.Common.NamedEntityGetRequest(this); - result.resourceType_ = resourceType_; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.Common.NamedEntityGetRequest) { - return mergeFrom((flyteidl.admin.Common.NamedEntityGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityGetRequest other) { - if (other == flyteidl.admin.Common.NamedEntityGetRequest.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.Common.NamedEntityGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.NamedEntityGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityGetRequest) - private static final flyteidl.admin.Common.NamedEntityGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityGetRequest(); - } - - public static flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityGetRequest(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 flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Resource type of the metadata to update
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - *
-     * Resource type of the metadata to update
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - *
-     * Identifier of the metadata to update
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - boolean hasId(); - /** - *
-     * Identifier of the metadata to update
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - *
-     * Identifier of the metadata to update
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Metadata object to set as the new value
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - boolean hasMetadata(); - /** - *
-     * Metadata object to set as the new value
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - flyteidl.admin.Common.NamedEntityMetadata getMetadata(); - /** - *
-     * Metadata object to set as the new value
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder(); - } - /** - *
-   * Request to set the referenced launch plan state to the configured value.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityUpdateRequest} - */ - public static final class NamedEntityUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityUpdateRequest) - NamedEntityUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityUpdateRequest.newBuilder() to construct. - private NamedEntityUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityUpdateRequest() { - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityUpdateRequest( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.Common.NamedEntityMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.admin.Common.NamedEntityMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityUpdateRequest.class, flyteidl.admin.Common.NamedEntityUpdateRequest.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - *
-     * Resource type of the metadata to update
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Resource type of the metadata to update
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int ID_FIELD_NUMBER = 2; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - *
-     * Identifier of the metadata to update
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Identifier of the metadata to update
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Identifier of the metadata to update
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private flyteidl.admin.Common.NamedEntityMetadata metadata_; - /** - *
-     * Metadata object to set as the new value
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Metadata object to set as the new value
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { - return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Metadata object to set as the new value
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (id_ != null) { - output.writeMessage(2, getId()); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (id_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getId()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - 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 flyteidl.admin.Common.NamedEntityUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityUpdateRequest other = (flyteidl.admin.Common.NamedEntityUpdateRequest) obj; - - if (resourceType_ != other.resourceType_) return false; - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) 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) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest 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 flyteidl.admin.Common.NamedEntityUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest 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 flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest 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(flyteidl.admin.Common.NamedEntityUpdateRequest 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; - } - /** - *
-     * Request to set the referenced launch plan state to the configured value.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityUpdateRequest) - flyteidl.admin.Common.NamedEntityUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityUpdateRequest.class, flyteidl.admin.Common.NamedEntityUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityUpdateRequest.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(); - resourceType_ = 0; - - if (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateRequest build() { - flyteidl.admin.Common.NamedEntityUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateRequest buildPartial() { - flyteidl.admin.Common.NamedEntityUpdateRequest result = new flyteidl.admin.Common.NamedEntityUpdateRequest(this); - result.resourceType_ = resourceType_; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.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 flyteidl.admin.Common.NamedEntityUpdateRequest) { - return mergeFrom((flyteidl.admin.Common.NamedEntityUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityUpdateRequest other) { - if (other == flyteidl.admin.Common.NamedEntityUpdateRequest.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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 { - flyteidl.admin.Common.NamedEntityUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Resource type of the metadata to update
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Resource type of the metadata to update
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Resource type of the metadata to update
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - *
-       * Resource type of the metadata to update
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Resource type of the metadata to update
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.Common.NamedEntityMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder setMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder setMetadata( - flyteidl.admin.Common.NamedEntityMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder mergeMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.admin.Common.NamedEntityMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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:flyteidl.admin.NamedEntityUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateRequest) - private static final flyteidl.admin.Common.NamedEntityUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityUpdateRequest(); - } - - public static flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityUpdateRequest(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 flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityUpdateResponse} - */ - public static final class NamedEntityUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityUpdateResponse) - NamedEntityUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityUpdateResponse.newBuilder() to construct. - private NamedEntityUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityUpdateResponse( - 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; - 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityUpdateResponse.class, flyteidl.admin.Common.NamedEntityUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.Common.NamedEntityUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityUpdateResponse other = (flyteidl.admin.Common.NamedEntityUpdateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse 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 flyteidl.admin.Common.NamedEntityUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse 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 flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse 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(flyteidl.admin.Common.NamedEntityUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityUpdateResponse) - flyteidl.admin.Common.NamedEntityUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityUpdateResponse.class, flyteidl.admin.Common.NamedEntityUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateResponse build() { - flyteidl.admin.Common.NamedEntityUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateResponse buildPartial() { - flyteidl.admin.Common.NamedEntityUpdateResponse result = new flyteidl.admin.Common.NamedEntityUpdateResponse(this); - 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 flyteidl.admin.Common.NamedEntityUpdateResponse) { - return mergeFrom((flyteidl.admin.Common.NamedEntityUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityUpdateResponse other) { - if (other == flyteidl.admin.Common.NamedEntityUpdateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.Common.NamedEntityUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.NamedEntityUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateResponse) - private static final flyteidl.admin.Common.NamedEntityUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityUpdateResponse(); - } - - public static flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityUpdateResponse(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 flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObjectGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ObjectGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates a unique version of resource.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * Indicates a unique version of resource.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * Indicates a unique version of resource.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Represents a structure to fetch a single resource.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ObjectGetRequest} - */ - public static final class ObjectGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ObjectGetRequest) - ObjectGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObjectGetRequest.newBuilder() to construct. - private ObjectGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObjectGetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ObjectGetRequest( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * Indicates a unique version of resource.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Indicates a unique version of resource.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * Indicates a unique version of resource.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.Common.ObjectGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.ObjectGetRequest other = (flyteidl.admin.Common.ObjectGetRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.ObjectGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ObjectGetRequest 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 flyteidl.admin.Common.ObjectGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ObjectGetRequest 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 flyteidl.admin.Common.ObjectGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ObjectGetRequest 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(flyteidl.admin.Common.ObjectGetRequest 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; - } - /** - *
-     * Represents a structure to fetch a single resource.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ObjectGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ObjectGetRequest) - flyteidl.admin.Common.ObjectGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.ObjectGetRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.ObjectGetRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.ObjectGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.ObjectGetRequest build() { - flyteidl.admin.Common.ObjectGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.ObjectGetRequest buildPartial() { - flyteidl.admin.Common.ObjectGetRequest result = new flyteidl.admin.Common.ObjectGetRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.Common.ObjectGetRequest) { - return mergeFrom((flyteidl.admin.Common.ObjectGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.ObjectGetRequest other) { - if (other == flyteidl.admin.Common.ObjectGetRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.Common.ObjectGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.ObjectGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.ObjectGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ObjectGetRequest) - private static final flyteidl.admin.Common.ObjectGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.ObjectGetRequest(); - } - - public static flyteidl.admin.Common.ObjectGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectGetRequest(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 flyteidl.admin.Common.ObjectGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ResourceListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ResourceListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the resource.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the resource.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - *
-     * id represents the unique identifier of the resource.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to retrieve a list of resources.
-   * Resources include: Task, Workflow, LaunchPlan
-   * 
- * - * Protobuf type {@code flyteidl.admin.ResourceListRequest} - */ - public static final class ResourceListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ResourceListRequest) - ResourceListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceListRequest.newBuilder() to construct. - private ResourceListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourceListRequest() { - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResourceListRequest( - 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: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - limit_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - *
-     * id represents the unique identifier of the resource.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the resource.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the resource.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 4; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - 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(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - 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 (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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 flyteidl.admin.Common.ResourceListRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.ResourceListRequest other = (flyteidl.admin.Common.ResourceListRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ResourceListRequest 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 flyteidl.admin.Common.ResourceListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ResourceListRequest 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 flyteidl.admin.Common.ResourceListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ResourceListRequest 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(flyteidl.admin.Common.ResourceListRequest 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; - } - /** - *
-     * Represents a request structure to retrieve a list of resources.
-     * Resources include: Task, Workflow, LaunchPlan
-     * 
- * - * Protobuf type {@code flyteidl.admin.ResourceListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ResourceListRequest) - flyteidl.admin.Common.ResourceListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.ResourceListRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.ResourceListRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.ResourceListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.ResourceListRequest build() { - flyteidl.admin.Common.ResourceListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.ResourceListRequest buildPartial() { - flyteidl.admin.Common.ResourceListRequest result = new flyteidl.admin.Common.ResourceListRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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 flyteidl.admin.Common.ResourceListRequest) { - return mergeFrom((flyteidl.admin.Common.ResourceListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.ResourceListRequest other) { - if (other == flyteidl.admin.Common.ResourceListRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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 { - flyteidl.admin.Common.ResourceListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.ResourceListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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:flyteidl.admin.ResourceListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ResourceListRequest) - private static final flyteidl.admin.Common.ResourceListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.ResourceListRequest(); - } - - public static flyteidl.admin.Common.ResourceListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceListRequest(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 flyteidl.admin.Common.ResourceListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EmailNotificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailNotification) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.util.List - getRecipientsEmailList(); - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - int getRecipientsEmailCount(); - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.lang.String getRecipientsEmail(int index); - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - com.google.protobuf.ByteString - getRecipientsEmailBytes(int index); - } - /** - * Protobuf type {@code flyteidl.admin.EmailNotification} - */ - public static final class EmailNotification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailNotification) - EmailNotificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use EmailNotification.newBuilder() to construct. - private EmailNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EmailNotification() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmailNotification( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recipientsEmail_.add(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)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); - } - - public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList recipientsEmail_; - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_; - } - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(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 < recipientsEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < recipientsEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getRecipientsEmailList().size(); - } - 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 flyteidl.admin.Common.EmailNotification)) { - return super.equals(obj); - } - flyteidl.admin.Common.EmailNotification other = (flyteidl.admin.Common.EmailNotification) obj; - - if (!getRecipientsEmailList() - .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { - hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getRecipientsEmailList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.EmailNotification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.EmailNotification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.EmailNotification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.EmailNotification parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.EmailNotification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.EmailNotification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.EmailNotification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.EmailNotification 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 flyteidl.admin.Common.EmailNotification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.EmailNotification 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 flyteidl.admin.Common.EmailNotification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.EmailNotification 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(flyteidl.admin.Common.EmailNotification 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 flyteidl.admin.EmailNotification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailNotification) - flyteidl.admin.Common.EmailNotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); - } - - // Construct using flyteidl.admin.Common.EmailNotification.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(); - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.EmailNotification getDefaultInstanceForType() { - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.EmailNotification build() { - flyteidl.admin.Common.EmailNotification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.EmailNotification buildPartial() { - flyteidl.admin.Common.EmailNotification result = new flyteidl.admin.Common.EmailNotification(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.recipientsEmail_ = recipientsEmail_; - 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 flyteidl.admin.Common.EmailNotification) { - return mergeFrom((flyteidl.admin.Common.EmailNotification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.EmailNotification other) { - if (other == flyteidl.admin.Common.EmailNotification.getDefaultInstance()) return this; - if (!other.recipientsEmail_.isEmpty()) { - if (recipientsEmail_.isEmpty()) { - recipientsEmail_ = other.recipientsEmail_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRecipientsEmailIsMutable(); - recipientsEmail_.addAll(other.recipientsEmail_); - } - 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 { - flyteidl.admin.Common.EmailNotification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.EmailNotification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRecipientsEmailIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_.getUnmodifiableView(); - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder setRecipientsEmail( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addAllRecipientsEmail( - java.lang.Iterable values) { - ensureRecipientsEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipientsEmail_); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder clearRecipientsEmail() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(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:flyteidl.admin.EmailNotification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailNotification) - private static final flyteidl.admin.Common.EmailNotification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.EmailNotification(); - } - - public static flyteidl.admin.Common.EmailNotification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmailNotification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmailNotification(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 flyteidl.admin.Common.EmailNotification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PagerDutyNotificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.PagerDutyNotification) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.util.List - getRecipientsEmailList(); - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - int getRecipientsEmailCount(); - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.lang.String getRecipientsEmail(int index); - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - com.google.protobuf.ByteString - getRecipientsEmailBytes(int index); - } - /** - * Protobuf type {@code flyteidl.admin.PagerDutyNotification} - */ - public static final class PagerDutyNotification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.PagerDutyNotification) - PagerDutyNotificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use PagerDutyNotification.newBuilder() to construct. - private PagerDutyNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PagerDutyNotification() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PagerDutyNotification( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recipientsEmail_.add(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)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); - } - - public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList recipientsEmail_; - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_; - } - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(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 < recipientsEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < recipientsEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getRecipientsEmailList().size(); - } - 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 flyteidl.admin.Common.PagerDutyNotification)) { - return super.equals(obj); - } - flyteidl.admin.Common.PagerDutyNotification other = (flyteidl.admin.Common.PagerDutyNotification) obj; - - if (!getRecipientsEmailList() - .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { - hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getRecipientsEmailList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.PagerDutyNotification 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 flyteidl.admin.Common.PagerDutyNotification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.PagerDutyNotification 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 flyteidl.admin.Common.PagerDutyNotification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.PagerDutyNotification 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(flyteidl.admin.Common.PagerDutyNotification 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 flyteidl.admin.PagerDutyNotification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.PagerDutyNotification) - flyteidl.admin.Common.PagerDutyNotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); - } - - // Construct using flyteidl.admin.Common.PagerDutyNotification.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(); - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.PagerDutyNotification getDefaultInstanceForType() { - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.PagerDutyNotification build() { - flyteidl.admin.Common.PagerDutyNotification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.PagerDutyNotification buildPartial() { - flyteidl.admin.Common.PagerDutyNotification result = new flyteidl.admin.Common.PagerDutyNotification(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.recipientsEmail_ = recipientsEmail_; - 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 flyteidl.admin.Common.PagerDutyNotification) { - return mergeFrom((flyteidl.admin.Common.PagerDutyNotification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.PagerDutyNotification other) { - if (other == flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) return this; - if (!other.recipientsEmail_.isEmpty()) { - if (recipientsEmail_.isEmpty()) { - recipientsEmail_ = other.recipientsEmail_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRecipientsEmailIsMutable(); - recipientsEmail_.addAll(other.recipientsEmail_); - } - 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 { - flyteidl.admin.Common.PagerDutyNotification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.PagerDutyNotification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRecipientsEmailIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_.getUnmodifiableView(); - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder setRecipientsEmail( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addAllRecipientsEmail( - java.lang.Iterable values) { - ensureRecipientsEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipientsEmail_); - onChanged(); - return this; - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder clearRecipientsEmail() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(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:flyteidl.admin.PagerDutyNotification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.PagerDutyNotification) - private static final flyteidl.admin.Common.PagerDutyNotification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.PagerDutyNotification(); - } - - public static flyteidl.admin.Common.PagerDutyNotification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PagerDutyNotification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PagerDutyNotification(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 flyteidl.admin.Common.PagerDutyNotification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SlackNotificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.SlackNotification) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.util.List - getRecipientsEmailList(); - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - int getRecipientsEmailCount(); - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.lang.String getRecipientsEmail(int index); - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - com.google.protobuf.ByteString - getRecipientsEmailBytes(int index); - } - /** - * Protobuf type {@code flyteidl.admin.SlackNotification} - */ - public static final class SlackNotification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.SlackNotification) - SlackNotificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use SlackNotification.newBuilder() to construct. - private SlackNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SlackNotification() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SlackNotification( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recipientsEmail_.add(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)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); - } - - public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList recipientsEmail_; - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_; - } - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(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 < recipientsEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < recipientsEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getRecipientsEmailList().size(); - } - 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 flyteidl.admin.Common.SlackNotification)) { - return super.equals(obj); - } - flyteidl.admin.Common.SlackNotification other = (flyteidl.admin.Common.SlackNotification) obj; - - if (!getRecipientsEmailList() - .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { - hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getRecipientsEmailList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.SlackNotification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.SlackNotification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.SlackNotification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.SlackNotification parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.SlackNotification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.SlackNotification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.SlackNotification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.SlackNotification 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 flyteidl.admin.Common.SlackNotification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.SlackNotification 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 flyteidl.admin.Common.SlackNotification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.SlackNotification 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(flyteidl.admin.Common.SlackNotification 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 flyteidl.admin.SlackNotification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.SlackNotification) - flyteidl.admin.Common.SlackNotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); - } - - // Construct using flyteidl.admin.Common.SlackNotification.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(); - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.SlackNotification getDefaultInstanceForType() { - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.SlackNotification build() { - flyteidl.admin.Common.SlackNotification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.SlackNotification buildPartial() { - flyteidl.admin.Common.SlackNotification result = new flyteidl.admin.Common.SlackNotification(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.recipientsEmail_ = recipientsEmail_; - 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 flyteidl.admin.Common.SlackNotification) { - return mergeFrom((flyteidl.admin.Common.SlackNotification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.SlackNotification other) { - if (other == flyteidl.admin.Common.SlackNotification.getDefaultInstance()) return this; - if (!other.recipientsEmail_.isEmpty()) { - if (recipientsEmail_.isEmpty()) { - recipientsEmail_ = other.recipientsEmail_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRecipientsEmailIsMutable(); - recipientsEmail_.addAll(other.recipientsEmail_); - } - 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 { - flyteidl.admin.Common.SlackNotification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.SlackNotification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRecipientsEmailIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_.getUnmodifiableView(); - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder setRecipientsEmail( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addAllRecipientsEmail( - java.lang.Iterable values) { - ensureRecipientsEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipientsEmail_); - onChanged(); - return this; - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder clearRecipientsEmail() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(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:flyteidl.admin.SlackNotification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SlackNotification) - private static final flyteidl.admin.Common.SlackNotification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.SlackNotification(); - } - - public static flyteidl.admin.Common.SlackNotification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SlackNotification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SlackNotification(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 flyteidl.admin.Common.SlackNotification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NotificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Notification) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - java.util.List getPhasesList(); - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - int getPhasesCount(); - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index); - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - java.util.List - getPhasesValueList(); - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - int getPhasesValue(int index); - - /** - *
-     * option (validate.required) = true;
-     * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - boolean hasEmail(); - /** - *
-     * option (validate.required) = true;
-     * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - flyteidl.admin.Common.EmailNotification getEmail(); - /** - *
-     * option (validate.required) = true;
-     * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder(); - - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - boolean hasPagerDuty(); - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - flyteidl.admin.Common.PagerDutyNotification getPagerDuty(); - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder(); - - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - boolean hasSlack(); - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - flyteidl.admin.Common.SlackNotification getSlack(); - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder(); - - public flyteidl.admin.Common.Notification.TypeCase getTypeCase(); - } - /** - *
-   * Represents a structure for notifications based on execution status.
-   * The Notification content is configured within Admin. Future iterations could
-   * expose configuring notifications with custom content.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Notification} - */ - public static final class Notification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Notification) - NotificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Notification.newBuilder() to construct. - private Notification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Notification() { - phases_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Notification( - 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 8: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phases_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phases_.add(rawValue); - break; - } - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phases_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phases_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 18: { - flyteidl.admin.Common.EmailNotification.Builder subBuilder = null; - if (typeCase_ == 2) { - subBuilder = ((flyteidl.admin.Common.EmailNotification) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.admin.Common.EmailNotification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.Common.EmailNotification) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 2; - break; - } - case 26: { - flyteidl.admin.Common.PagerDutyNotification.Builder subBuilder = null; - if (typeCase_ == 3) { - subBuilder = ((flyteidl.admin.Common.PagerDutyNotification) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.admin.Common.PagerDutyNotification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.Common.PagerDutyNotification) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 3; - break; - } - case 34: { - flyteidl.admin.Common.SlackNotification.Builder subBuilder = null; - if (typeCase_ == 4) { - subBuilder = ((flyteidl.admin.Common.SlackNotification) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.admin.Common.SlackNotification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.Common.SlackNotification) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 4; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - phases_ = java.util.Collections.unmodifiableList(phases_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); - } - - private int bitField0_; - private int typeCase_ = 0; - private java.lang.Object type_; - public enum TypeCase - implements com.google.protobuf.Internal.EnumLite { - EMAIL(2), - PAGER_DUTY(3), - SLACK(4), - TYPE_NOT_SET(0); - private final int value; - private TypeCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TypeCase valueOf(int value) { - return forNumber(value); - } - - public static TypeCase forNumber(int value) { - switch (value) { - case 2: return EMAIL; - case 3: return PAGER_DUTY; - case 4: return SLACK; - case 0: return TYPE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public static final int PHASES_FIELD_NUMBER = 1; - private java.util.List phases_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase> phases_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>() { - public flyteidl.core.Execution.WorkflowExecution.Phase convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(from); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - }; - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public java.util.List getPhasesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); - } - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public int getPhasesCount() { - return phases_.size(); - } - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { - return phases_converter_.convert(phases_.get(index)); - } - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public java.util.List - getPhasesValueList() { - return phases_; - } - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public int getPhasesValue(int index) { - return phases_.get(index); - } - private int phasesMemoizedSerializedSize; - - public static final int EMAIL_FIELD_NUMBER = 2; - /** - *
-     * option (validate.required) = true;
-     * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public boolean hasEmail() { - return typeCase_ == 2; - } - /** - *
-     * option (validate.required) = true;
-     * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotification getEmail() { - if (typeCase_ == 2) { - return (flyteidl.admin.Common.EmailNotification) type_; - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - /** - *
-     * option (validate.required) = true;
-     * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { - if (typeCase_ == 2) { - return (flyteidl.admin.Common.EmailNotification) type_; - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - - public static final int PAGER_DUTY_FIELD_NUMBER = 3; - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public boolean hasPagerDuty() { - return typeCase_ == 3; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { - if (typeCase_ == 3) { - return (flyteidl.admin.Common.PagerDutyNotification) type_; - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { - if (typeCase_ == 3) { - return (flyteidl.admin.Common.PagerDutyNotification) type_; - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - - public static final int SLACK_FIELD_NUMBER = 4; - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public boolean hasSlack() { - return typeCase_ == 4; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotification getSlack() { - if (typeCase_ == 4) { - return (flyteidl.admin.Common.SlackNotification) type_; - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { - if (typeCase_ == 4) { - return (flyteidl.admin.Common.SlackNotification) type_; - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getPhasesList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(phasesMemoizedSerializedSize); - } - for (int i = 0; i < phases_.size(); i++) { - output.writeEnumNoTag(phases_.get(i)); - } - if (typeCase_ == 2) { - output.writeMessage(2, (flyteidl.admin.Common.EmailNotification) type_); - } - if (typeCase_ == 3) { - output.writeMessage(3, (flyteidl.admin.Common.PagerDutyNotification) type_); - } - if (typeCase_ == 4) { - output.writeMessage(4, (flyteidl.admin.Common.SlackNotification) type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < phases_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(phases_.get(i)); - } - size += dataSize; - if (!getPhasesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }phasesMemoizedSerializedSize = dataSize; - } - if (typeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.admin.Common.EmailNotification) type_); - } - if (typeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.admin.Common.PagerDutyNotification) type_); - } - if (typeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.admin.Common.SlackNotification) type_); - } - 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 flyteidl.admin.Common.Notification)) { - return super.equals(obj); - } - flyteidl.admin.Common.Notification other = (flyteidl.admin.Common.Notification) obj; - - if (!phases_.equals(other.phases_)) return false; - if (!getTypeCase().equals(other.getTypeCase())) return false; - switch (typeCase_) { - case 2: - if (!getEmail() - .equals(other.getEmail())) return false; - break; - case 3: - if (!getPagerDuty() - .equals(other.getPagerDuty())) return false; - break; - case 4: - if (!getSlack() - .equals(other.getSlack())) 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(); - if (getPhasesCount() > 0) { - hash = (37 * hash) + PHASES_FIELD_NUMBER; - hash = (53 * hash) + phases_.hashCode(); - } - switch (typeCase_) { - case 2: - hash = (37 * hash) + EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getEmail().hashCode(); - break; - case 3: - hash = (37 * hash) + PAGER_DUTY_FIELD_NUMBER; - hash = (53 * hash) + getPagerDuty().hashCode(); - break; - case 4: - hash = (37 * hash) + SLACK_FIELD_NUMBER; - hash = (53 * hash) + getSlack().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.Notification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Notification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Notification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Notification parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Notification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Notification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Notification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Notification 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 flyteidl.admin.Common.Notification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Notification 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 flyteidl.admin.Common.Notification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Notification 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(flyteidl.admin.Common.Notification 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; - } - /** - *
-     * Represents a structure for notifications based on execution status.
-     * The Notification content is configured within Admin. Future iterations could
-     * expose configuring notifications with custom content.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Notification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Notification) - flyteidl.admin.Common.NotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); - } - - // Construct using flyteidl.admin.Common.Notification.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(); - phases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - typeCase_ = 0; - type_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.Notification getDefaultInstanceForType() { - return flyteidl.admin.Common.Notification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.Notification build() { - flyteidl.admin.Common.Notification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.Notification buildPartial() { - flyteidl.admin.Common.Notification result = new flyteidl.admin.Common.Notification(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - phases_ = java.util.Collections.unmodifiableList(phases_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.phases_ = phases_; - if (typeCase_ == 2) { - if (emailBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = emailBuilder_.build(); - } - } - if (typeCase_ == 3) { - if (pagerDutyBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = pagerDutyBuilder_.build(); - } - } - if (typeCase_ == 4) { - if (slackBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = slackBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.typeCase_ = typeCase_; - 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 flyteidl.admin.Common.Notification) { - return mergeFrom((flyteidl.admin.Common.Notification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.Notification other) { - if (other == flyteidl.admin.Common.Notification.getDefaultInstance()) return this; - if (!other.phases_.isEmpty()) { - if (phases_.isEmpty()) { - phases_ = other.phases_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePhasesIsMutable(); - phases_.addAll(other.phases_); - } - onChanged(); - } - switch (other.getTypeCase()) { - case EMAIL: { - mergeEmail(other.getEmail()); - break; - } - case PAGER_DUTY: { - mergePagerDuty(other.getPagerDuty()); - break; - } - case SLACK: { - mergeSlack(other.getSlack()); - break; - } - case TYPE_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 { - flyteidl.admin.Common.Notification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.Notification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int typeCase_ = 0; - private java.lang.Object type_; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public Builder clearType() { - typeCase_ = 0; - type_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.util.List phases_ = - java.util.Collections.emptyList(); - private void ensurePhasesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - phases_ = new java.util.ArrayList(phases_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public java.util.List getPhasesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public int getPhasesCount() { - return phases_.size(); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { - return phases_converter_.convert(phases_.get(index)); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder setPhases( - int index, flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhasesIsMutable(); - phases_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder addPhases(flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhasesIsMutable(); - phases_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder addAllPhases( - java.lang.Iterable values) { - ensurePhasesIsMutable(); - for (flyteidl.core.Execution.WorkflowExecution.Phase value : values) { - phases_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder clearPhases() { - phases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public java.util.List - getPhasesValueList() { - return java.util.Collections.unmodifiableList(phases_); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public int getPhasesValue(int index) { - return phases_.get(index); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder setPhasesValue( - int index, int value) { - ensurePhasesIsMutable(); - phases_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder addPhasesValue(int value) { - ensurePhasesIsMutable(); - phases_.add(value); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder addAllPhasesValue( - java.lang.Iterable values) { - ensurePhasesIsMutable(); - for (int value : values) { - phases_.add(value); - } - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> emailBuilder_; - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public boolean hasEmail() { - return typeCase_ == 2; - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotification getEmail() { - if (emailBuilder_ == null) { - if (typeCase_ == 2) { - return (flyteidl.admin.Common.EmailNotification) type_; - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } else { - if (typeCase_ == 2) { - return emailBuilder_.getMessage(); - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public Builder setEmail(flyteidl.admin.Common.EmailNotification value) { - if (emailBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - emailBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public Builder setEmail( - flyteidl.admin.Common.EmailNotification.Builder builderForValue) { - if (emailBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - emailBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 2; - return this; - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public Builder mergeEmail(flyteidl.admin.Common.EmailNotification value) { - if (emailBuilder_ == null) { - if (typeCase_ == 2 && - type_ != flyteidl.admin.Common.EmailNotification.getDefaultInstance()) { - type_ = flyteidl.admin.Common.EmailNotification.newBuilder((flyteidl.admin.Common.EmailNotification) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 2) { - emailBuilder_.mergeFrom(value); - } - emailBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public Builder clearEmail() { - if (emailBuilder_ == null) { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - } - emailBuilder_.clear(); - } - return this; - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotification.Builder getEmailBuilder() { - return getEmailFieldBuilder().getBuilder(); - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { - if ((typeCase_ == 2) && (emailBuilder_ != null)) { - return emailBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 2) { - return (flyteidl.admin.Common.EmailNotification) type_; - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> - getEmailFieldBuilder() { - if (emailBuilder_ == null) { - if (!(typeCase_ == 2)) { - type_ = flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - emailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder>( - (flyteidl.admin.Common.EmailNotification) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 2; - onChanged();; - return emailBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> pagerDutyBuilder_; - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public boolean hasPagerDuty() { - return typeCase_ == 3; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { - if (pagerDutyBuilder_ == null) { - if (typeCase_ == 3) { - return (flyteidl.admin.Common.PagerDutyNotification) type_; - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } else { - if (typeCase_ == 3) { - return pagerDutyBuilder_.getMessage(); - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public Builder setPagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { - if (pagerDutyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - pagerDutyBuilder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public Builder setPagerDuty( - flyteidl.admin.Common.PagerDutyNotification.Builder builderForValue) { - if (pagerDutyBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - pagerDutyBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 3; - return this; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public Builder mergePagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { - if (pagerDutyBuilder_ == null) { - if (typeCase_ == 3 && - type_ != flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) { - type_ = flyteidl.admin.Common.PagerDutyNotification.newBuilder((flyteidl.admin.Common.PagerDutyNotification) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 3) { - pagerDutyBuilder_.mergeFrom(value); - } - pagerDutyBuilder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public Builder clearPagerDuty() { - if (pagerDutyBuilder_ == null) { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - } - pagerDutyBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotification.Builder getPagerDutyBuilder() { - return getPagerDutyFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { - if ((typeCase_ == 3) && (pagerDutyBuilder_ != null)) { - return pagerDutyBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 3) { - return (flyteidl.admin.Common.PagerDutyNotification) type_; - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> - getPagerDutyFieldBuilder() { - if (pagerDutyBuilder_ == null) { - if (!(typeCase_ == 3)) { - type_ = flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - pagerDutyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder>( - (flyteidl.admin.Common.PagerDutyNotification) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 3; - onChanged();; - return pagerDutyBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> slackBuilder_; - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public boolean hasSlack() { - return typeCase_ == 4; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotification getSlack() { - if (slackBuilder_ == null) { - if (typeCase_ == 4) { - return (flyteidl.admin.Common.SlackNotification) type_; - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } else { - if (typeCase_ == 4) { - return slackBuilder_.getMessage(); - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public Builder setSlack(flyteidl.admin.Common.SlackNotification value) { - if (slackBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - slackBuilder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public Builder setSlack( - flyteidl.admin.Common.SlackNotification.Builder builderForValue) { - if (slackBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - slackBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 4; - return this; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public Builder mergeSlack(flyteidl.admin.Common.SlackNotification value) { - if (slackBuilder_ == null) { - if (typeCase_ == 4 && - type_ != flyteidl.admin.Common.SlackNotification.getDefaultInstance()) { - type_ = flyteidl.admin.Common.SlackNotification.newBuilder((flyteidl.admin.Common.SlackNotification) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 4) { - slackBuilder_.mergeFrom(value); - } - slackBuilder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public Builder clearSlack() { - if (slackBuilder_ == null) { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - } - slackBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotification.Builder getSlackBuilder() { - return getSlackFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { - if ((typeCase_ == 4) && (slackBuilder_ != null)) { - return slackBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 4) { - return (flyteidl.admin.Common.SlackNotification) type_; - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> - getSlackFieldBuilder() { - if (slackBuilder_ == null) { - if (!(typeCase_ == 4)) { - type_ = flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - slackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder>( - (flyteidl.admin.Common.SlackNotification) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 4; - onChanged();; - return slackBuilder_; - } - @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:flyteidl.admin.Notification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Notification) - private static final flyteidl.admin.Common.Notification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.Notification(); - } - - public static flyteidl.admin.Common.Notification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Notification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Notification(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 flyteidl.admin.Common.Notification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UrlBlobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.UrlBlob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Actual url value.
-     * 
- * - * string url = 1; - */ - java.lang.String getUrl(); - /** - *
-     * Actual url value.
-     * 
- * - * string url = 1; - */ - com.google.protobuf.ByteString - getUrlBytes(); - - /** - *
-     * Represents the size of the file accessible at the above url.
-     * 
- * - * int64 bytes = 2; - */ - long getBytes(); - } - /** - *
-   * Represents a string url and associated metadata used throughout the platform.
-   * 
- * - * Protobuf type {@code flyteidl.admin.UrlBlob} - */ - public static final class UrlBlob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.UrlBlob) - UrlBlobOrBuilder { - private static final long serialVersionUID = 0L; - // Use UrlBlob.newBuilder() to construct. - private UrlBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UrlBlob() { - url_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UrlBlob( - 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(); - - url_ = s; - break; - } - case 16: { - - bytes_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); - } - - public static final int URL_FIELD_NUMBER = 1; - private volatile java.lang.Object url_; - /** - *
-     * Actual url value.
-     * 
- * - * string url = 1; - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - 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(); - url_ = s; - return s; - } - } - /** - *
-     * Actual url value.
-     * 
- * - * string url = 1; - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BYTES_FIELD_NUMBER = 2; - private long bytes_; - /** - *
-     * Represents the size of the file accessible at the above url.
-     * 
- * - * int64 bytes = 2; - */ - public long getBytes() { - return bytes_; - } - - 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 (!getUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); - } - if (bytes_ != 0L) { - output.writeInt64(2, bytes_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); - } - if (bytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, bytes_); - } - 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 flyteidl.admin.Common.UrlBlob)) { - return super.equals(obj); - } - flyteidl.admin.Common.UrlBlob other = (flyteidl.admin.Common.UrlBlob) obj; - - if (!getUrl() - .equals(other.getUrl())) return false; - if (getBytes() - != other.getBytes()) 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) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBytes()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.UrlBlob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.UrlBlob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.UrlBlob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.UrlBlob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.UrlBlob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.UrlBlob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.UrlBlob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.UrlBlob 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 flyteidl.admin.Common.UrlBlob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.UrlBlob 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 flyteidl.admin.Common.UrlBlob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.UrlBlob 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(flyteidl.admin.Common.UrlBlob 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; - } - /** - *
-     * Represents a string url and associated metadata used throughout the platform.
-     * 
- * - * Protobuf type {@code flyteidl.admin.UrlBlob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.UrlBlob) - flyteidl.admin.Common.UrlBlobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); - } - - // Construct using flyteidl.admin.Common.UrlBlob.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(); - url_ = ""; - - bytes_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.UrlBlob getDefaultInstanceForType() { - return flyteidl.admin.Common.UrlBlob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.UrlBlob build() { - flyteidl.admin.Common.UrlBlob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.UrlBlob buildPartial() { - flyteidl.admin.Common.UrlBlob result = new flyteidl.admin.Common.UrlBlob(this); - result.url_ = url_; - result.bytes_ = bytes_; - 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 flyteidl.admin.Common.UrlBlob) { - return mergeFrom((flyteidl.admin.Common.UrlBlob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.UrlBlob other) { - if (other == flyteidl.admin.Common.UrlBlob.getDefaultInstance()) return this; - if (!other.getUrl().isEmpty()) { - url_ = other.url_; - onChanged(); - } - if (other.getBytes() != 0L) { - setBytes(other.getBytes()); - } - 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 { - flyteidl.admin.Common.UrlBlob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.UrlBlob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object url_ = ""; - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public Builder setUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - url_ = value; - onChanged(); - return this; - } - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public Builder clearUrl() { - - url_ = getDefaultInstance().getUrl(); - onChanged(); - return this; - } - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - url_ = value; - onChanged(); - return this; - } - - private long bytes_ ; - /** - *
-       * Represents the size of the file accessible at the above url.
-       * 
- * - * int64 bytes = 2; - */ - public long getBytes() { - return bytes_; - } - /** - *
-       * Represents the size of the file accessible at the above url.
-       * 
- * - * int64 bytes = 2; - */ - public Builder setBytes(long value) { - - bytes_ = value; - onChanged(); - return this; - } - /** - *
-       * Represents the size of the file accessible at the above url.
-       * 
- * - * int64 bytes = 2; - */ - public Builder clearBytes() { - - bytes_ = 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:flyteidl.admin.UrlBlob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.UrlBlob) - private static final flyteidl.admin.Common.UrlBlob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.UrlBlob(); - } - - public static flyteidl.admin.Common.UrlBlob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UrlBlob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UrlBlob(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 flyteidl.admin.Common.UrlBlob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LabelsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Labels) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - int getValuesCount(); - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - boolean containsValues( - java.lang.String key); - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getValues(); - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - java.util.Map - getValuesMap(); - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - java.lang.String getValuesOrThrow( - java.lang.String key); - } - /** - *
-   * Label values to be applied to an execution resource.
-   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-   * to specify how to merge labels defined at registration and execution time.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Labels} - */ - public static final class Labels extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Labels) - LabelsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Labels.newBuilder() to construct. - private Labels(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Labels() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Labels( - 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)) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - values__ = input.readMessage( - ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - values_.getMutableMap().put( - values__.getKey(), values__.getValue()); - 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 flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private static final class ValuesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValues() { - return getValuesMap(); - } - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.util.Map getValuesMap() { - return internalGetValues().getMap(); - } - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetValues(), - ValuesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetValues().getMap().entrySet()) { - com.google.protobuf.MapEntry - values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values__); - } - 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 flyteidl.admin.Common.Labels)) { - return super.equals(obj); - } - flyteidl.admin.Common.Labels other = (flyteidl.admin.Common.Labels) obj; - - if (!internalGetValues().equals( - other.internalGetValues())) 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 (!internalGetValues().getMap().isEmpty()) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + internalGetValues().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.Labels parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Labels parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Labels parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Labels parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Labels parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Labels parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Labels parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Labels 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 flyteidl.admin.Common.Labels parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Labels 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 flyteidl.admin.Common.Labels parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Labels 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(flyteidl.admin.Common.Labels 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; - } - /** - *
-     * Label values to be applied to an execution resource.
-     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-     * to specify how to merge labels defined at registration and execution time.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Labels} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Labels) - flyteidl.admin.Common.LabelsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); - } - - // Construct using flyteidl.admin.Common.Labels.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(); - internalGetMutableValues().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.Labels getDefaultInstanceForType() { - return flyteidl.admin.Common.Labels.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.Labels build() { - flyteidl.admin.Common.Labels result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.Labels buildPartial() { - flyteidl.admin.Common.Labels result = new flyteidl.admin.Common.Labels(this); - int from_bitField0_ = bitField0_; - result.values_ = internalGetValues(); - result.values_.makeImmutable(); - 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 flyteidl.admin.Common.Labels) { - return mergeFrom((flyteidl.admin.Common.Labels)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.Labels other) { - if (other == flyteidl.admin.Common.Labels.getDefaultInstance()) return this; - internalGetMutableValues().mergeFrom( - other.internalGetValues()); - 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 { - flyteidl.admin.Common.Labels parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.Labels) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - private com.google.protobuf.MapField - internalGetMutableValues() { - onChanged();; - if (values_ == null) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - if (!values_.isMutable()) { - values_ = values_.copy(); - } - return values_; - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValues() { - return getValuesMap(); - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.util.Map getValuesMap() { - return internalGetValues().getMap(); - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearValues() { - internalGetMutableValues().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public Builder removeValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableValues() { - return internalGetMutableValues().getMutableMap(); - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - public Builder putValues( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public Builder putAllValues( - java.util.Map values) { - internalGetMutableValues().getMutableMap() - .putAll(values); - 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:flyteidl.admin.Labels) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Labels) - private static final flyteidl.admin.Common.Labels DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.Labels(); - } - - public static flyteidl.admin.Common.Labels getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Labels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Labels(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 flyteidl.admin.Common.Labels getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AnnotationsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Annotations) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - int getValuesCount(); - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - boolean containsValues( - java.lang.String key); - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getValues(); - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - java.util.Map - getValuesMap(); - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - java.lang.String getValuesOrThrow( - java.lang.String key); - } - /** - *
-   * Annotation values to be applied to an execution resource.
-   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-   * to specify how to merge annotations defined at registration and execution time.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Annotations} - */ - public static final class Annotations extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Annotations) - AnnotationsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Annotations.newBuilder() to construct. - private Annotations(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Annotations() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Annotations( - 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)) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - values__ = input.readMessage( - ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - values_.getMutableMap().put( - values__.getKey(), values__.getValue()); - 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 flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private static final class ValuesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValues() { - return getValuesMap(); - } - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.util.Map getValuesMap() { - return internalGetValues().getMap(); - } - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetValues(), - ValuesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetValues().getMap().entrySet()) { - com.google.protobuf.MapEntry - values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values__); - } - 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 flyteidl.admin.Common.Annotations)) { - return super.equals(obj); - } - flyteidl.admin.Common.Annotations other = (flyteidl.admin.Common.Annotations) obj; - - if (!internalGetValues().equals( - other.internalGetValues())) 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 (!internalGetValues().getMap().isEmpty()) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + internalGetValues().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.Annotations parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Annotations parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Annotations parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Annotations parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Annotations parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Annotations parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Annotations parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Annotations 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 flyteidl.admin.Common.Annotations parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Annotations 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 flyteidl.admin.Common.Annotations parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Annotations 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(flyteidl.admin.Common.Annotations 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; - } - /** - *
-     * Annotation values to be applied to an execution resource.
-     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-     * to specify how to merge annotations defined at registration and execution time.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Annotations} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Annotations) - flyteidl.admin.Common.AnnotationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); - } - - // Construct using flyteidl.admin.Common.Annotations.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(); - internalGetMutableValues().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.Annotations getDefaultInstanceForType() { - return flyteidl.admin.Common.Annotations.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.Annotations build() { - flyteidl.admin.Common.Annotations result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.Annotations buildPartial() { - flyteidl.admin.Common.Annotations result = new flyteidl.admin.Common.Annotations(this); - int from_bitField0_ = bitField0_; - result.values_ = internalGetValues(); - result.values_.makeImmutable(); - 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 flyteidl.admin.Common.Annotations) { - return mergeFrom((flyteidl.admin.Common.Annotations)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.Annotations other) { - if (other == flyteidl.admin.Common.Annotations.getDefaultInstance()) return this; - internalGetMutableValues().mergeFrom( - other.internalGetValues()); - 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 { - flyteidl.admin.Common.Annotations parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.Annotations) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - private com.google.protobuf.MapField - internalGetMutableValues() { - onChanged();; - if (values_ == null) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - if (!values_.isMutable()) { - values_ = values_.copy(); - } - return values_; - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValues() { - return getValuesMap(); - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.util.Map getValuesMap() { - return internalGetValues().getMap(); - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearValues() { - internalGetMutableValues().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public Builder removeValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableValues() { - return internalGetMutableValues().getMutableMap(); - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - public Builder putValues( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public Builder putAllValues( - java.util.Map values) { - internalGetMutableValues().getMutableMap() - .putAll(values); - 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:flyteidl.admin.Annotations) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Annotations) - private static final flyteidl.admin.Common.Annotations DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.Annotations(); - } - - public static flyteidl.admin.Common.Annotations getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Annotations parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Annotations(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 flyteidl.admin.Common.Annotations getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AuthRoleOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.AuthRole) - com.google.protobuf.MessageOrBuilder { - - /** - * string assumable_iam_role = 1; - */ - java.lang.String getAssumableIamRole(); - /** - * string assumable_iam_role = 1; - */ - com.google.protobuf.ByteString - getAssumableIamRoleBytes(); - - /** - * string kubernetes_service_account = 2; - */ - java.lang.String getKubernetesServiceAccount(); - /** - * string kubernetes_service_account = 2; - */ - com.google.protobuf.ByteString - getKubernetesServiceAccountBytes(); - - public flyteidl.admin.Common.AuthRole.MethodCase getMethodCase(); - } - /** - *
-   * Defines permissions associated with executions.
-   * 
- * - * Protobuf type {@code flyteidl.admin.AuthRole} - */ - public static final class AuthRole extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.AuthRole) - AuthRoleOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuthRole.newBuilder() to construct. - private AuthRole(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AuthRole() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AuthRole( - 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(); - methodCase_ = 1; - method_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - methodCase_ = 2; - method_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.AuthRole.class, flyteidl.admin.Common.AuthRole.Builder.class); - } - - private int methodCase_ = 0; - private java.lang.Object method_; - public enum MethodCase - implements com.google.protobuf.Internal.EnumLite { - ASSUMABLE_IAM_ROLE(1), - KUBERNETES_SERVICE_ACCOUNT(2), - METHOD_NOT_SET(0); - private final int value; - private MethodCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MethodCase valueOf(int value) { - return forNumber(value); - } - - public static MethodCase forNumber(int value) { - switch (value) { - case 1: return ASSUMABLE_IAM_ROLE; - case 2: return KUBERNETES_SERVICE_ACCOUNT; - case 0: return METHOD_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public MethodCase - getMethodCase() { - return MethodCase.forNumber( - methodCase_); - } - - public static final int ASSUMABLE_IAM_ROLE_FIELD_NUMBER = 1; - /** - * string assumable_iam_role = 1; - */ - public java.lang.String getAssumableIamRole() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - 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(); - if (methodCase_ == 1) { - method_ = s; - } - return s; - } - } - /** - * string assumable_iam_role = 1; - */ - public com.google.protobuf.ByteString - getAssumableIamRoleBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 1) { - method_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 2; - /** - * string kubernetes_service_account = 2; - */ - public java.lang.String getKubernetesServiceAccount() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - 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(); - if (methodCase_ == 2) { - method_ = s; - } - return s; - } - } - /** - * string kubernetes_service_account = 2; - */ - public com.google.protobuf.ByteString - getKubernetesServiceAccountBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 2) { - method_ = 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 (methodCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); - } - if (methodCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (methodCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); - } - if (methodCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); - } - 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 flyteidl.admin.Common.AuthRole)) { - return super.equals(obj); - } - flyteidl.admin.Common.AuthRole other = (flyteidl.admin.Common.AuthRole) obj; - - if (!getMethodCase().equals(other.getMethodCase())) return false; - switch (methodCase_) { - case 1: - if (!getAssumableIamRole() - .equals(other.getAssumableIamRole())) return false; - break; - case 2: - if (!getKubernetesServiceAccount() - .equals(other.getKubernetesServiceAccount())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (methodCase_) { - case 1: - hash = (37 * hash) + ASSUMABLE_IAM_ROLE_FIELD_NUMBER; - hash = (53 * hash) + getAssumableIamRole().hashCode(); - break; - case 2: - hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.AuthRole parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.AuthRole parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.AuthRole parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.AuthRole parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.AuthRole parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.AuthRole parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.AuthRole parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.AuthRole 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 flyteidl.admin.Common.AuthRole parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.AuthRole 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 flyteidl.admin.Common.AuthRole parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.AuthRole 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(flyteidl.admin.Common.AuthRole 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; - } - /** - *
-     * Defines permissions associated with executions.
-     * 
- * - * Protobuf type {@code flyteidl.admin.AuthRole} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.AuthRole) - flyteidl.admin.Common.AuthRoleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.AuthRole.class, flyteidl.admin.Common.AuthRole.Builder.class); - } - - // Construct using flyteidl.admin.Common.AuthRole.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(); - methodCase_ = 0; - method_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.AuthRole getDefaultInstanceForType() { - return flyteidl.admin.Common.AuthRole.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.AuthRole build() { - flyteidl.admin.Common.AuthRole result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.AuthRole buildPartial() { - flyteidl.admin.Common.AuthRole result = new flyteidl.admin.Common.AuthRole(this); - if (methodCase_ == 1) { - result.method_ = method_; - } - if (methodCase_ == 2) { - result.method_ = method_; - } - result.methodCase_ = methodCase_; - 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 flyteidl.admin.Common.AuthRole) { - return mergeFrom((flyteidl.admin.Common.AuthRole)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.AuthRole other) { - if (other == flyteidl.admin.Common.AuthRole.getDefaultInstance()) return this; - switch (other.getMethodCase()) { - case ASSUMABLE_IAM_ROLE: { - methodCase_ = 1; - method_ = other.method_; - onChanged(); - break; - } - case KUBERNETES_SERVICE_ACCOUNT: { - methodCase_ = 2; - method_ = other.method_; - onChanged(); - break; - } - case METHOD_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 { - flyteidl.admin.Common.AuthRole parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.AuthRole) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int methodCase_ = 0; - private java.lang.Object method_; - public MethodCase - getMethodCase() { - return MethodCase.forNumber( - methodCase_); - } - - public Builder clearMethod() { - methodCase_ = 0; - method_ = null; - onChanged(); - return this; - } - - - /** - * string assumable_iam_role = 1; - */ - public java.lang.String getAssumableIamRole() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (methodCase_ == 1) { - method_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string assumable_iam_role = 1; - */ - public com.google.protobuf.ByteString - getAssumableIamRoleBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 1) { - method_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string assumable_iam_role = 1; - */ - public Builder setAssumableIamRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - methodCase_ = 1; - method_ = value; - onChanged(); - return this; - } - /** - * string assumable_iam_role = 1; - */ - public Builder clearAssumableIamRole() { - if (methodCase_ == 1) { - methodCase_ = 0; - method_ = null; - onChanged(); - } - return this; - } - /** - * string assumable_iam_role = 1; - */ - public Builder setAssumableIamRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - methodCase_ = 1; - method_ = value; - onChanged(); - return this; - } - - /** - * string kubernetes_service_account = 2; - */ - public java.lang.String getKubernetesServiceAccount() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (methodCase_ == 2) { - method_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string kubernetes_service_account = 2; - */ - public com.google.protobuf.ByteString - getKubernetesServiceAccountBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 2) { - method_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string kubernetes_service_account = 2; - */ - public Builder setKubernetesServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - methodCase_ = 2; - method_ = value; - onChanged(); - return this; - } - /** - * string kubernetes_service_account = 2; - */ - public Builder clearKubernetesServiceAccount() { - if (methodCase_ == 2) { - methodCase_ = 0; - method_ = null; - onChanged(); - } - return this; - } - /** - * string kubernetes_service_account = 2; - */ - public Builder setKubernetesServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - methodCase_ = 2; - method_ = 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:flyteidl.admin.AuthRole) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.AuthRole) - private static final flyteidl.admin.Common.AuthRole DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.AuthRole(); - } - - public static flyteidl.admin.Common.AuthRole getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthRole parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthRole(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 flyteidl.admin.Common.AuthRole getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntity_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Sort_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Sort_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ObjectGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ResourceListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_EmailNotification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_PagerDutyNotification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_SlackNotification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Notification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Notification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_UrlBlob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Labels_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Labels_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Annotations_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Annotations_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_AuthRole_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_AuthRole_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\033flyteidl/admin/common.proto\022\016flyteidl." + - "admin\032\035flyteidl/core/execution.proto\032\036fl" + - "yteidl/core/identifier.proto\"F\n\025NamedEnt" + - "ityIdentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain" + - "\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"[\n\023NamedEntityMetad" + - "ata\022\023\n\013description\030\001 \001(\t\022/\n\005state\030\002 \001(\0162" + - " .flyteidl.admin.NamedEntityState\"\253\001\n\013Na" + - "medEntity\0222\n\rresource_type\030\001 \001(\0162\033.flyte" + - "idl.core.ResourceType\0221\n\002id\030\002 \001(\0132%.flyt" + - "eidl.admin.NamedEntityIdentifier\0225\n\010meta" + - "data\030\003 \001(\0132#.flyteidl.admin.NamedEntityM" + - "etadata\"r\n\004Sort\022\013\n\003key\030\001 \001(\t\0221\n\tdirectio" + - "n\030\002 \001(\0162\036.flyteidl.admin.Sort.Direction\"" + - "*\n\tDirection\022\016\n\nDESCENDING\020\000\022\r\n\tASCENDIN" + - "G\020\001\"\231\001\n NamedEntityIdentifierListRequest" + - "\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\r\n\005lim" + - "it\030\003 \001(\r\022\r\n\005token\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\013" + - "2\024.flyteidl.admin.Sort\022\017\n\007filters\030\006 \001(\t\"" + - "\303\001\n\026NamedEntityListRequest\0222\n\rresource_t" + - "ype\030\001 \001(\0162\033.flyteidl.core.ResourceType\022\017" + - "\n\007project\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\r\n\005limit" + - "\030\004 \001(\r\022\r\n\005token\030\005 \001(\t\022%\n\007sort_by\030\006 \001(\0132\024" + - ".flyteidl.admin.Sort\022\017\n\007filters\030\007 \001(\t\"c\n" + - "\031NamedEntityIdentifierList\0227\n\010entities\030\001" + - " \003(\0132%.flyteidl.admin.NamedEntityIdentif" + - "ier\022\r\n\005token\030\002 \001(\t\"O\n\017NamedEntityList\022-\n" + - "\010entities\030\001 \003(\0132\033.flyteidl.admin.NamedEn" + - "tity\022\r\n\005token\030\002 \001(\t\"~\n\025NamedEntityGetReq" + - "uest\0222\n\rresource_type\030\001 \001(\0162\033.flyteidl.c" + - "ore.ResourceType\0221\n\002id\030\002 \001(\0132%.flyteidl." + - "admin.NamedEntityIdentifier\"\270\001\n\030NamedEnt" + - "ityUpdateRequest\0222\n\rresource_type\030\001 \001(\0162" + - "\033.flyteidl.core.ResourceType\0221\n\002id\030\002 \001(\013" + - "2%.flyteidl.admin.NamedEntityIdentifier\022" + - "5\n\010metadata\030\003 \001(\0132#.flyteidl.admin.Named" + - "EntityMetadata\"\033\n\031NamedEntityUpdateRespo" + - "nse\"9\n\020ObjectGetRequest\022%\n\002id\030\001 \001(\0132\031.fl" + - "yteidl.core.Identifier\"\236\001\n\023ResourceListR" + - "equest\0221\n\002id\030\001 \001(\0132%.flyteidl.admin.Name" + - "dEntityIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005toke" + - "n\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(" + - "\0132\024.flyteidl.admin.Sort\"-\n\021EmailNotifica" + - "tion\022\030\n\020recipients_email\030\001 \003(\t\"1\n\025PagerD" + - "utyNotification\022\030\n\020recipients_email\030\001 \003(" + - "\t\"-\n\021SlackNotification\022\030\n\020recipients_ema" + - "il\030\001 \003(\t\"\363\001\n\014Notification\0226\n\006phases\030\001 \003(" + - "\0162&.flyteidl.core.WorkflowExecution.Phas" + - "e\0222\n\005email\030\002 \001(\0132!.flyteidl.admin.EmailN" + - "otificationH\000\022;\n\npager_duty\030\003 \001(\0132%.flyt" + - "eidl.admin.PagerDutyNotificationH\000\0222\n\005sl" + - "ack\030\004 \001(\0132!.flyteidl.admin.SlackNotifica" + - "tionH\000B\006\n\004type\"%\n\007UrlBlob\022\013\n\003url\030\001 \001(\t\022\r" + - "\n\005bytes\030\002 \001(\003\"k\n\006Labels\0222\n\006values\030\001 \003(\0132" + - "\".flyteidl.admin.Labels.ValuesEntry\032-\n\013V" + - "aluesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + - "8\001\"u\n\013Annotations\0227\n\006values\030\001 \003(\0132\'.flyt" + - "eidl.admin.Annotations.ValuesEntry\032-\n\013Va" + - "luesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\"X\n\010AuthRole\022\034\n\022assumable_iam_role\030\001 \001(" + - "\tH\000\022$\n\032kubernetes_service_account\030\002 \001(\tH" + - "\000B\010\n\006method*\\\n\020NamedEntityState\022\027\n\023NAMED" + - "_ENTITY_ACTIVE\020\000\022\031\n\025NAMED_ENTITY_ARCHIVE" + - "D\020\001\022\024\n\020SYSTEM_GENERATED\020\002B3Z1github.com/" + - "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + - "proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor, - new java.lang.String[] { "Project", "Domain", "Name", }); - internal_static_flyteidl_admin_NamedEntityMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityMetadata_descriptor, - new java.lang.String[] { "Description", "State", }); - internal_static_flyteidl_admin_NamedEntity_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntity_descriptor, - new java.lang.String[] { "ResourceType", "Id", "Metadata", }); - internal_static_flyteidl_admin_Sort_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_Sort_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Sort_descriptor, - new java.lang.String[] { "Key", "Direction", }); - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Limit", "Token", "SortBy", "Filters", }); - internal_static_flyteidl_admin_NamedEntityListRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityListRequest_descriptor, - new java.lang.String[] { "ResourceType", "Project", "Domain", "Limit", "Token", "SortBy", "Filters", }); - internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor, - new java.lang.String[] { "Entities", "Token", }); - internal_static_flyteidl_admin_NamedEntityList_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityList_descriptor, - new java.lang.String[] { "Entities", "Token", }); - internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor, - new java.lang.String[] { "ResourceType", "Id", }); - internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor, - new java.lang.String[] { "ResourceType", "Id", "Metadata", }); - internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ObjectGetRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ObjectGetRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_ResourceListRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ResourceListRequest_descriptor, - new java.lang.String[] { "Id", "Limit", "Token", "Filters", "SortBy", }); - internal_static_flyteidl_admin_EmailNotification_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_EmailNotification_descriptor, - new java.lang.String[] { "RecipientsEmail", }); - internal_static_flyteidl_admin_PagerDutyNotification_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_PagerDutyNotification_descriptor, - new java.lang.String[] { "RecipientsEmail", }); - internal_static_flyteidl_admin_SlackNotification_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_SlackNotification_descriptor, - new java.lang.String[] { "RecipientsEmail", }); - internal_static_flyteidl_admin_Notification_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_flyteidl_admin_Notification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Notification_descriptor, - new java.lang.String[] { "Phases", "Email", "PagerDuty", "Slack", "Type", }); - internal_static_flyteidl_admin_UrlBlob_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_UrlBlob_descriptor, - new java.lang.String[] { "Url", "Bytes", }); - internal_static_flyteidl_admin_Labels_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_flyteidl_admin_Labels_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Labels_descriptor, - new java.lang.String[] { "Values", }); - internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor = - internal_static_flyteidl_admin_Labels_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_admin_Annotations_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_flyteidl_admin_Annotations_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Annotations_descriptor, - new java.lang.String[] { "Values", }); - internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor = - internal_static_flyteidl_admin_Annotations_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_admin_AuthRole_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_flyteidl_admin_AuthRole_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_AuthRole_descriptor, - new java.lang.String[] { "AssumableIamRole", "KubernetesServiceAccount", "Method", }); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/Event.java b/gen/pb-java/flyteidl/admin/Event.java deleted file mode 100644 index 0d1084c72..000000000 --- a/gen/pb-java/flyteidl/admin/Event.java +++ /dev/null @@ -1,5194 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/event.proto - -package flyteidl.admin; - -public final class Event { - private Event() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EventErrorAlreadyInTerminalStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventErrorAlreadyInTerminalState) - com.google.protobuf.MessageOrBuilder { - - /** - * string current_phase = 1; - */ - java.lang.String getCurrentPhase(); - /** - * string current_phase = 1; - */ - com.google.protobuf.ByteString - getCurrentPhaseBytes(); - } - /** - * Protobuf type {@code flyteidl.admin.EventErrorAlreadyInTerminalState} - */ - public static final class EventErrorAlreadyInTerminalState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) - EventErrorAlreadyInTerminalStateOrBuilder { - private static final long serialVersionUID = 0L; - // Use EventErrorAlreadyInTerminalState.newBuilder() to construct. - private EventErrorAlreadyInTerminalState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EventErrorAlreadyInTerminalState() { - currentPhase_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EventErrorAlreadyInTerminalState( - 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(); - - currentPhase_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); - } - - public static final int CURRENT_PHASE_FIELD_NUMBER = 1; - private volatile java.lang.Object currentPhase_; - /** - * string current_phase = 1; - */ - public java.lang.String getCurrentPhase() { - java.lang.Object ref = currentPhase_; - 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(); - currentPhase_ = s; - return s; - } - } - /** - * string current_phase = 1; - */ - public com.google.protobuf.ByteString - getCurrentPhaseBytes() { - java.lang.Object ref = currentPhase_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentPhase_ = 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 (!getCurrentPhaseBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentPhase_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCurrentPhaseBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currentPhase_); - } - 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState)) { - return super.equals(obj); - } - flyteidl.admin.Event.EventErrorAlreadyInTerminalState other = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) obj; - - if (!getCurrentPhase() - .equals(other.getCurrentPhase())) 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) + CURRENT_PHASE_FIELD_NUMBER; - hash = (53 * hash) + getCurrentPhase().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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(flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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 flyteidl.admin.EventErrorAlreadyInTerminalState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) - flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); - } - - // Construct using flyteidl.admin.Event.EventErrorAlreadyInTerminalState.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(); - currentPhase_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState build() { - flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState buildPartial() { - flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(this); - result.currentPhase_ = currentPhase_; - 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState) { - return mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.EventErrorAlreadyInTerminalState other) { - if (other == flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) return this; - if (!other.getCurrentPhase().isEmpty()) { - currentPhase_ = other.currentPhase_; - 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 { - flyteidl.admin.Event.EventErrorAlreadyInTerminalState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object currentPhase_ = ""; - /** - * string current_phase = 1; - */ - public java.lang.String getCurrentPhase() { - java.lang.Object ref = currentPhase_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentPhase_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string current_phase = 1; - */ - public com.google.protobuf.ByteString - getCurrentPhaseBytes() { - java.lang.Object ref = currentPhase_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentPhase_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string current_phase = 1; - */ - public Builder setCurrentPhase( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentPhase_ = value; - onChanged(); - return this; - } - /** - * string current_phase = 1; - */ - public Builder clearCurrentPhase() { - - currentPhase_ = getDefaultInstance().getCurrentPhase(); - onChanged(); - return this; - } - /** - * string current_phase = 1; - */ - public Builder setCurrentPhaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentPhase_ = 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:flyteidl.admin.EventErrorAlreadyInTerminalState) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorAlreadyInTerminalState) - private static final flyteidl.admin.Event.EventErrorAlreadyInTerminalState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(); - } - - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventErrorAlreadyInTerminalState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventErrorAlreadyInTerminalState(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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EventFailureReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventFailureReason) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - boolean hasAlreadyInTerminalState(); - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState(); - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder(); - - public flyteidl.admin.Event.EventFailureReason.ReasonCase getReasonCase(); - } - /** - * Protobuf type {@code flyteidl.admin.EventFailureReason} - */ - public static final class EventFailureReason extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.EventFailureReason) - EventFailureReasonOrBuilder { - private static final long serialVersionUID = 0L; - // Use EventFailureReason.newBuilder() to construct. - private EventFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EventFailureReason() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EventFailureReason( - 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: { - flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder subBuilder = null; - if (reasonCase_ == 1) { - subBuilder = ((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_).toBuilder(); - } - reason_ = - input.readMessage(flyteidl.admin.Event.EventErrorAlreadyInTerminalState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); - reason_ = subBuilder.buildPartial(); - } - reasonCase_ = 1; - 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 flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); - } - - private int reasonCase_ = 0; - private java.lang.Object reason_; - public enum ReasonCase - implements com.google.protobuf.Internal.EnumLite { - ALREADY_IN_TERMINAL_STATE(1), - REASON_NOT_SET(0); - private final int value; - private ReasonCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReasonCase valueOf(int value) { - return forNumber(value); - } - - public static ReasonCase forNumber(int value) { - switch (value) { - case 1: return ALREADY_IN_TERMINAL_STATE; - case 0: return REASON_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReasonCase - getReasonCase() { - return ReasonCase.forNumber( - reasonCase_); - } - - public static final int ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER = 1; - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public boolean hasAlreadyInTerminalState() { - return reasonCase_ == 1; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { - if (reasonCase_ == 1) { - return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { - if (reasonCase_ == 1) { - return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (reasonCase_ == 1) { - output.writeMessage(1, (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reasonCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); - } - 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 flyteidl.admin.Event.EventFailureReason)) { - return super.equals(obj); - } - flyteidl.admin.Event.EventFailureReason other = (flyteidl.admin.Event.EventFailureReason) obj; - - if (!getReasonCase().equals(other.getReasonCase())) return false; - switch (reasonCase_) { - case 1: - if (!getAlreadyInTerminalState() - .equals(other.getAlreadyInTerminalState())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (reasonCase_) { - case 1: - hash = (37 * hash) + ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER; - hash = (53 * hash) + getAlreadyInTerminalState().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.EventFailureReason parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventFailureReason 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 flyteidl.admin.Event.EventFailureReason parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventFailureReason 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 flyteidl.admin.Event.EventFailureReason parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventFailureReason 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(flyteidl.admin.Event.EventFailureReason 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 flyteidl.admin.EventFailureReason} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventFailureReason) - flyteidl.admin.Event.EventFailureReasonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); - } - - // Construct using flyteidl.admin.Event.EventFailureReason.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(); - reasonCase_ = 0; - reason_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.EventFailureReason getDefaultInstanceForType() { - return flyteidl.admin.Event.EventFailureReason.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.EventFailureReason build() { - flyteidl.admin.Event.EventFailureReason result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.EventFailureReason buildPartial() { - flyteidl.admin.Event.EventFailureReason result = new flyteidl.admin.Event.EventFailureReason(this); - if (reasonCase_ == 1) { - if (alreadyInTerminalStateBuilder_ == null) { - result.reason_ = reason_; - } else { - result.reason_ = alreadyInTerminalStateBuilder_.build(); - } - } - result.reasonCase_ = reasonCase_; - 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 flyteidl.admin.Event.EventFailureReason) { - return mergeFrom((flyteidl.admin.Event.EventFailureReason)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.EventFailureReason other) { - if (other == flyteidl.admin.Event.EventFailureReason.getDefaultInstance()) return this; - switch (other.getReasonCase()) { - case ALREADY_IN_TERMINAL_STATE: { - mergeAlreadyInTerminalState(other.getAlreadyInTerminalState()); - break; - } - case REASON_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 { - flyteidl.admin.Event.EventFailureReason parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.EventFailureReason) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int reasonCase_ = 0; - private java.lang.Object reason_; - public ReasonCase - getReasonCase() { - return ReasonCase.forNumber( - reasonCase_); - } - - public Builder clearReason() { - reasonCase_ = 0; - reason_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> alreadyInTerminalStateBuilder_; - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public boolean hasAlreadyInTerminalState() { - return reasonCase_ == 1; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { - if (alreadyInTerminalStateBuilder_ == null) { - if (reasonCase_ == 1) { - return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } else { - if (reasonCase_ == 1) { - return alreadyInTerminalStateBuilder_.getMessage(); - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public Builder setAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { - if (alreadyInTerminalStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reason_ = value; - onChanged(); - } else { - alreadyInTerminalStateBuilder_.setMessage(value); - } - reasonCase_ = 1; - return this; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public Builder setAlreadyInTerminalState( - flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder builderForValue) { - if (alreadyInTerminalStateBuilder_ == null) { - reason_ = builderForValue.build(); - onChanged(); - } else { - alreadyInTerminalStateBuilder_.setMessage(builderForValue.build()); - } - reasonCase_ = 1; - return this; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public Builder mergeAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { - if (alreadyInTerminalStateBuilder_ == null) { - if (reasonCase_ == 1 && - reason_ != flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) { - reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.newBuilder((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_) - .mergeFrom(value).buildPartial(); - } else { - reason_ = value; - } - onChanged(); - } else { - if (reasonCase_ == 1) { - alreadyInTerminalStateBuilder_.mergeFrom(value); - } - alreadyInTerminalStateBuilder_.setMessage(value); - } - reasonCase_ = 1; - return this; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public Builder clearAlreadyInTerminalState() { - if (alreadyInTerminalStateBuilder_ == null) { - if (reasonCase_ == 1) { - reasonCase_ = 0; - reason_ = null; - onChanged(); - } - } else { - if (reasonCase_ == 1) { - reasonCase_ = 0; - reason_ = null; - } - alreadyInTerminalStateBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder getAlreadyInTerminalStateBuilder() { - return getAlreadyInTerminalStateFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { - if ((reasonCase_ == 1) && (alreadyInTerminalStateBuilder_ != null)) { - return alreadyInTerminalStateBuilder_.getMessageOrBuilder(); - } else { - if (reasonCase_ == 1) { - return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> - getAlreadyInTerminalStateFieldBuilder() { - if (alreadyInTerminalStateBuilder_ == null) { - if (!(reasonCase_ == 1)) { - reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - alreadyInTerminalStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder>( - (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_, - getParentForChildren(), - isClean()); - reason_ = null; - } - reasonCase_ = 1; - onChanged();; - return alreadyInTerminalStateBuilder_; - } - @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:flyteidl.admin.EventFailureReason) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EventFailureReason) - private static final flyteidl.admin.Event.EventFailureReason DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.EventFailureReason(); - } - - public static flyteidl.admin.Event.EventFailureReason getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventFailureReason parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventFailureReason(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 flyteidl.admin.Event.EventFailureReason getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - java.lang.String getRequestId(); - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - boolean hasEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - flyteidl.event.Event.WorkflowExecutionEvent getEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder(); - } - /** - *
-   * Request to send a notification that a workflow execution event has occurred.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} - */ - public static final class WorkflowExecutionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventRequest) - WorkflowExecutionEventRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionEventRequest.newBuilder() to construct. - private WorkflowExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionEventRequest() { - requestId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionEventRequest( - 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(); - - requestId_ = s; - break; - } - case 18: { - flyteidl.event.Event.WorkflowExecutionEvent.Builder subBuilder = null; - if (event_ != null) { - subBuilder = event_.toBuilder(); - } - event_ = input.readMessage(flyteidl.event.Event.WorkflowExecutionEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(event_); - event_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object requestId_; - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_FIELD_NUMBER = 2; - private flyteidl.event.Event.WorkflowExecutionEvent event_; - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public boolean hasEvent() { - return event_ != null; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { - return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { - return getEvent(); - } - - 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 (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); - } - if (event_ != null) { - output.writeMessage(2, getEvent()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); - } - if (event_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvent()); - } - 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 flyteidl.admin.Event.WorkflowExecutionEventRequest)) { - return super.equals(obj); - } - flyteidl.admin.Event.WorkflowExecutionEventRequest other = (flyteidl.admin.Event.WorkflowExecutionEventRequest) obj; - - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (hasEvent() != other.hasEvent()) return false; - if (hasEvent()) { - if (!getEvent() - .equals(other.getEvent())) 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) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - if (hasEvent()) { - hash = (37 * hash) + EVENT_FIELD_NUMBER; - hash = (53 * hash) + getEvent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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 flyteidl.admin.Event.WorkflowExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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 flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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(flyteidl.admin.Event.WorkflowExecutionEventRequest 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; - } - /** - *
-     * Request to send a notification that a workflow execution event has occurred.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventRequest) - flyteidl.admin.Event.WorkflowExecutionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); - } - - // Construct using flyteidl.admin.Event.WorkflowExecutionEventRequest.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(); - requestId_ = ""; - - if (eventBuilder_ == null) { - event_ = null; - } else { - event_ = null; - eventBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { - return flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventRequest build() { - flyteidl.admin.Event.WorkflowExecutionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventRequest buildPartial() { - flyteidl.admin.Event.WorkflowExecutionEventRequest result = new flyteidl.admin.Event.WorkflowExecutionEventRequest(this); - result.requestId_ = requestId_; - if (eventBuilder_ == null) { - result.event_ = event_; - } else { - result.event_ = eventBuilder_.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 flyteidl.admin.Event.WorkflowExecutionEventRequest) { - return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventRequest other) { - if (other == flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance()) return this; - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.hasEvent()) { - mergeEvent(other.getEvent()); - } - 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 { - flyteidl.admin.Event.WorkflowExecutionEventRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object requestId_ = ""; - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private flyteidl.event.Event.WorkflowExecutionEvent event_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> eventBuilder_; - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public boolean hasEvent() { - return eventBuilder_ != null || event_ != null; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { - if (eventBuilder_ == null) { - return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; - } else { - return eventBuilder_.getMessage(); - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public Builder setEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { - if (eventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - event_ = value; - onChanged(); - } else { - eventBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public Builder setEvent( - flyteidl.event.Event.WorkflowExecutionEvent.Builder builderForValue) { - if (eventBuilder_ == null) { - event_ = builderForValue.build(); - onChanged(); - } else { - eventBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public Builder mergeEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { - if (eventBuilder_ == null) { - if (event_ != null) { - event_ = - flyteidl.event.Event.WorkflowExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); - } else { - event_ = value; - } - onChanged(); - } else { - eventBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public Builder clearEvent() { - if (eventBuilder_ == null) { - event_ = null; - onChanged(); - } else { - event_ = null; - eventBuilder_ = null; - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEvent.Builder getEventBuilder() { - - onChanged(); - return getEventFieldBuilder().getBuilder(); - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { - if (eventBuilder_ != null) { - return eventBuilder_.getMessageOrBuilder(); - } else { - return event_ == null ? - flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> - getEventFieldBuilder() { - if (eventBuilder_ == null) { - eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder>( - getEvent(), - getParentForChildren(), - isClean()); - event_ = null; - } - return eventBuilder_; - } - @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:flyteidl.admin.WorkflowExecutionEventRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventRequest) - private static final flyteidl.admin.Event.WorkflowExecutionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventRequest(); - } - - public static flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionEventRequest(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 flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionEventResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * a placeholder for now
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} - */ - public static final class WorkflowExecutionEventResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventResponse) - WorkflowExecutionEventResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionEventResponse.newBuilder() to construct. - private WorkflowExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionEventResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionEventResponse( - 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; - 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 flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.Event.WorkflowExecutionEventResponse)) { - return super.equals(obj); - } - flyteidl.admin.Event.WorkflowExecutionEventResponse other = (flyteidl.admin.Event.WorkflowExecutionEventResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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 flyteidl.admin.Event.WorkflowExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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 flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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(flyteidl.admin.Event.WorkflowExecutionEventResponse 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 placeholder for now
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventResponse) - flyteidl.admin.Event.WorkflowExecutionEventResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); - } - - // Construct using flyteidl.admin.Event.WorkflowExecutionEventResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { - return flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventResponse build() { - flyteidl.admin.Event.WorkflowExecutionEventResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventResponse buildPartial() { - flyteidl.admin.Event.WorkflowExecutionEventResponse result = new flyteidl.admin.Event.WorkflowExecutionEventResponse(this); - 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 flyteidl.admin.Event.WorkflowExecutionEventResponse) { - return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventResponse other) { - if (other == flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.Event.WorkflowExecutionEventResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.WorkflowExecutionEventResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventResponse) - private static final flyteidl.admin.Event.WorkflowExecutionEventResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventResponse(); - } - - public static flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionEventResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionEventResponse(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 flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - java.lang.String getRequestId(); - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - boolean hasEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - flyteidl.event.Event.NodeExecutionEvent getEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder(); - } - /** - *
-   * Request to send a notification that a node execution event has occurred.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} - */ - public static final class NodeExecutionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventRequest) - NodeExecutionEventRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionEventRequest.newBuilder() to construct. - private NodeExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionEventRequest() { - requestId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionEventRequest( - 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(); - - requestId_ = s; - break; - } - case 18: { - flyteidl.event.Event.NodeExecutionEvent.Builder subBuilder = null; - if (event_ != null) { - subBuilder = event_.toBuilder(); - } - event_ = input.readMessage(flyteidl.event.Event.NodeExecutionEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(event_); - event_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object requestId_; - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_FIELD_NUMBER = 2; - private flyteidl.event.Event.NodeExecutionEvent event_; - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public boolean hasEvent() { - return event_ != null; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEvent getEvent() { - return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { - return getEvent(); - } - - 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 (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); - } - if (event_ != null) { - output.writeMessage(2, getEvent()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); - } - if (event_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvent()); - } - 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 flyteidl.admin.Event.NodeExecutionEventRequest)) { - return super.equals(obj); - } - flyteidl.admin.Event.NodeExecutionEventRequest other = (flyteidl.admin.Event.NodeExecutionEventRequest) obj; - - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (hasEvent() != other.hasEvent()) return false; - if (hasEvent()) { - if (!getEvent() - .equals(other.getEvent())) 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) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - if (hasEvent()) { - hash = (37 * hash) + EVENT_FIELD_NUMBER; - hash = (53 * hash) + getEvent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest 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 flyteidl.admin.Event.NodeExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest 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 flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest 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(flyteidl.admin.Event.NodeExecutionEventRequest 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; - } - /** - *
-     * Request to send a notification that a node execution event has occurred.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventRequest) - flyteidl.admin.Event.NodeExecutionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); - } - - // Construct using flyteidl.admin.Event.NodeExecutionEventRequest.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(); - requestId_ = ""; - - if (eventBuilder_ == null) { - event_ = null; - } else { - event_ = null; - eventBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstanceForType() { - return flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventRequest build() { - flyteidl.admin.Event.NodeExecutionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventRequest buildPartial() { - flyteidl.admin.Event.NodeExecutionEventRequest result = new flyteidl.admin.Event.NodeExecutionEventRequest(this); - result.requestId_ = requestId_; - if (eventBuilder_ == null) { - result.event_ = event_; - } else { - result.event_ = eventBuilder_.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 flyteidl.admin.Event.NodeExecutionEventRequest) { - return mergeFrom((flyteidl.admin.Event.NodeExecutionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventRequest other) { - if (other == flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance()) return this; - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.hasEvent()) { - mergeEvent(other.getEvent()); - } - 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 { - flyteidl.admin.Event.NodeExecutionEventRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.NodeExecutionEventRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object requestId_ = ""; - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private flyteidl.event.Event.NodeExecutionEvent event_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> eventBuilder_; - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public boolean hasEvent() { - return eventBuilder_ != null || event_ != null; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEvent getEvent() { - if (eventBuilder_ == null) { - return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; - } else { - return eventBuilder_.getMessage(); - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public Builder setEvent(flyteidl.event.Event.NodeExecutionEvent value) { - if (eventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - event_ = value; - onChanged(); - } else { - eventBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public Builder setEvent( - flyteidl.event.Event.NodeExecutionEvent.Builder builderForValue) { - if (eventBuilder_ == null) { - event_ = builderForValue.build(); - onChanged(); - } else { - eventBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public Builder mergeEvent(flyteidl.event.Event.NodeExecutionEvent value) { - if (eventBuilder_ == null) { - if (event_ != null) { - event_ = - flyteidl.event.Event.NodeExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); - } else { - event_ = value; - } - onChanged(); - } else { - eventBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public Builder clearEvent() { - if (eventBuilder_ == null) { - event_ = null; - onChanged(); - } else { - event_ = null; - eventBuilder_ = null; - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEvent.Builder getEventBuilder() { - - onChanged(); - return getEventFieldBuilder().getBuilder(); - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { - if (eventBuilder_ != null) { - return eventBuilder_.getMessageOrBuilder(); - } else { - return event_ == null ? - flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> - getEventFieldBuilder() { - if (eventBuilder_ == null) { - eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder>( - getEvent(), - getParentForChildren(), - isClean()); - event_ = null; - } - return eventBuilder_; - } - @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:flyteidl.admin.NodeExecutionEventRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventRequest) - private static final flyteidl.admin.Event.NodeExecutionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventRequest(); - } - - public static flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionEventRequest(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 flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionEventResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * a placeholder for now
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} - */ - public static final class NodeExecutionEventResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventResponse) - NodeExecutionEventResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionEventResponse.newBuilder() to construct. - private NodeExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionEventResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionEventResponse( - 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; - 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 flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.Event.NodeExecutionEventResponse)) { - return super.equals(obj); - } - flyteidl.admin.Event.NodeExecutionEventResponse other = (flyteidl.admin.Event.NodeExecutionEventResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse 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 flyteidl.admin.Event.NodeExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse 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 flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse 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(flyteidl.admin.Event.NodeExecutionEventResponse 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 placeholder for now
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventResponse) - flyteidl.admin.Event.NodeExecutionEventResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); - } - - // Construct using flyteidl.admin.Event.NodeExecutionEventResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstanceForType() { - return flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventResponse build() { - flyteidl.admin.Event.NodeExecutionEventResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventResponse buildPartial() { - flyteidl.admin.Event.NodeExecutionEventResponse result = new flyteidl.admin.Event.NodeExecutionEventResponse(this); - 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 flyteidl.admin.Event.NodeExecutionEventResponse) { - return mergeFrom((flyteidl.admin.Event.NodeExecutionEventResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventResponse other) { - if (other == flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.Event.NodeExecutionEventResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.NodeExecutionEventResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.NodeExecutionEventResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventResponse) - private static final flyteidl.admin.Event.NodeExecutionEventResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventResponse(); - } - - public static flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionEventResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionEventResponse(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 flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - java.lang.String getRequestId(); - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - boolean hasEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - flyteidl.event.Event.TaskExecutionEvent getEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder(); - } - /** - *
-   * Request to send a notification that a task execution event has occurred.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} - */ - public static final class TaskExecutionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventRequest) - TaskExecutionEventRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionEventRequest.newBuilder() to construct. - private TaskExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionEventRequest() { - requestId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionEventRequest( - 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(); - - requestId_ = s; - break; - } - case 18: { - flyteidl.event.Event.TaskExecutionEvent.Builder subBuilder = null; - if (event_ != null) { - subBuilder = event_.toBuilder(); - } - event_ = input.readMessage(flyteidl.event.Event.TaskExecutionEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(event_); - event_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object requestId_; - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_FIELD_NUMBER = 2; - private flyteidl.event.Event.TaskExecutionEvent event_; - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public boolean hasEvent() { - return event_ != null; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEvent getEvent() { - return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { - return getEvent(); - } - - 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 (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); - } - if (event_ != null) { - output.writeMessage(2, getEvent()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); - } - if (event_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvent()); - } - 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 flyteidl.admin.Event.TaskExecutionEventRequest)) { - return super.equals(obj); - } - flyteidl.admin.Event.TaskExecutionEventRequest other = (flyteidl.admin.Event.TaskExecutionEventRequest) obj; - - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (hasEvent() != other.hasEvent()) return false; - if (hasEvent()) { - if (!getEvent() - .equals(other.getEvent())) 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) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - if (hasEvent()) { - hash = (37 * hash) + EVENT_FIELD_NUMBER; - hash = (53 * hash) + getEvent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest 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 flyteidl.admin.Event.TaskExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest 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 flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest 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(flyteidl.admin.Event.TaskExecutionEventRequest 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; - } - /** - *
-     * Request to send a notification that a task execution event has occurred.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventRequest) - flyteidl.admin.Event.TaskExecutionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); - } - - // Construct using flyteidl.admin.Event.TaskExecutionEventRequest.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(); - requestId_ = ""; - - if (eventBuilder_ == null) { - event_ = null; - } else { - event_ = null; - eventBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstanceForType() { - return flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventRequest build() { - flyteidl.admin.Event.TaskExecutionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventRequest buildPartial() { - flyteidl.admin.Event.TaskExecutionEventRequest result = new flyteidl.admin.Event.TaskExecutionEventRequest(this); - result.requestId_ = requestId_; - if (eventBuilder_ == null) { - result.event_ = event_; - } else { - result.event_ = eventBuilder_.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 flyteidl.admin.Event.TaskExecutionEventRequest) { - return mergeFrom((flyteidl.admin.Event.TaskExecutionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventRequest other) { - if (other == flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance()) return this; - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.hasEvent()) { - mergeEvent(other.getEvent()); - } - 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 { - flyteidl.admin.Event.TaskExecutionEventRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.TaskExecutionEventRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object requestId_ = ""; - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private flyteidl.event.Event.TaskExecutionEvent event_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> eventBuilder_; - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public boolean hasEvent() { - return eventBuilder_ != null || event_ != null; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEvent getEvent() { - if (eventBuilder_ == null) { - return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; - } else { - return eventBuilder_.getMessage(); - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public Builder setEvent(flyteidl.event.Event.TaskExecutionEvent value) { - if (eventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - event_ = value; - onChanged(); - } else { - eventBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public Builder setEvent( - flyteidl.event.Event.TaskExecutionEvent.Builder builderForValue) { - if (eventBuilder_ == null) { - event_ = builderForValue.build(); - onChanged(); - } else { - eventBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public Builder mergeEvent(flyteidl.event.Event.TaskExecutionEvent value) { - if (eventBuilder_ == null) { - if (event_ != null) { - event_ = - flyteidl.event.Event.TaskExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); - } else { - event_ = value; - } - onChanged(); - } else { - eventBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public Builder clearEvent() { - if (eventBuilder_ == null) { - event_ = null; - onChanged(); - } else { - event_ = null; - eventBuilder_ = null; - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEvent.Builder getEventBuilder() { - - onChanged(); - return getEventFieldBuilder().getBuilder(); - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { - if (eventBuilder_ != null) { - return eventBuilder_.getMessageOrBuilder(); - } else { - return event_ == null ? - flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> - getEventFieldBuilder() { - if (eventBuilder_ == null) { - eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder>( - getEvent(), - getParentForChildren(), - isClean()); - event_ = null; - } - return eventBuilder_; - } - @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:flyteidl.admin.TaskExecutionEventRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventRequest) - private static final flyteidl.admin.Event.TaskExecutionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventRequest(); - } - - public static flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionEventRequest(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 flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionEventResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * a placeholder for now
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} - */ - public static final class TaskExecutionEventResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventResponse) - TaskExecutionEventResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionEventResponse.newBuilder() to construct. - private TaskExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionEventResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionEventResponse( - 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; - 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 flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.Event.TaskExecutionEventResponse)) { - return super.equals(obj); - } - flyteidl.admin.Event.TaskExecutionEventResponse other = (flyteidl.admin.Event.TaskExecutionEventResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse 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 flyteidl.admin.Event.TaskExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse 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 flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse 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(flyteidl.admin.Event.TaskExecutionEventResponse 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 placeholder for now
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventResponse) - flyteidl.admin.Event.TaskExecutionEventResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); - } - - // Construct using flyteidl.admin.Event.TaskExecutionEventResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstanceForType() { - return flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventResponse build() { - flyteidl.admin.Event.TaskExecutionEventResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventResponse buildPartial() { - flyteidl.admin.Event.TaskExecutionEventResponse result = new flyteidl.admin.Event.TaskExecutionEventResponse(this); - 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 flyteidl.admin.Event.TaskExecutionEventResponse) { - return mergeFrom((flyteidl.admin.Event.TaskExecutionEventResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventResponse other) { - if (other == flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.Event.TaskExecutionEventResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.TaskExecutionEventResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.TaskExecutionEventResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventResponse) - private static final flyteidl.admin.Event.TaskExecutionEventResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventResponse(); - } - - public static flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionEventResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionEventResponse(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 flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_EventFailureReason_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionEventResponse_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\032flyteidl/admin/event.proto\022\016flyteidl.a" + - "dmin\032\032flyteidl/event/event.proto\"9\n Even" + - "tErrorAlreadyInTerminalState\022\025\n\rcurrent_" + - "phase\030\001 \001(\t\"u\n\022EventFailureReason\022U\n\031alr" + - "eady_in_terminal_state\030\001 \001(\01320.flyteidl." + - "admin.EventErrorAlreadyInTerminalStateH\000" + - "B\010\n\006reason\"j\n\035WorkflowExecutionEventRequ" + - "est\022\022\n\nrequest_id\030\001 \001(\t\0225\n\005event\030\002 \001(\0132&" + - ".flyteidl.event.WorkflowExecutionEvent\" " + - "\n\036WorkflowExecutionEventResponse\"b\n\031Node" + - "ExecutionEventRequest\022\022\n\nrequest_id\030\001 \001(" + - "\t\0221\n\005event\030\002 \001(\0132\".flyteidl.event.NodeEx" + - "ecutionEvent\"\034\n\032NodeExecutionEventRespon" + - "se\"b\n\031TaskExecutionEventRequest\022\022\n\nreque" + - "st_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".flyteidl.ev" + - "ent.TaskExecutionEvent\"\034\n\032TaskExecutionE" + - "ventResponseB3Z1github.com/lyft/flyteidl" + - "/gen/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.event.Event.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor, - new java.lang.String[] { "CurrentPhase", }); - internal_static_flyteidl_admin_EventFailureReason_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_EventFailureReason_descriptor, - new java.lang.String[] { "AlreadyInTerminalState", "Reason", }); - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor, - new java.lang.String[] { "RequestId", "Event", }); - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor, - new java.lang.String[] { "RequestId", "Event", }); - internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor, - new java.lang.String[] { "RequestId", "Event", }); - internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor, - new java.lang.String[] { }); - flyteidl.event.Event.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java b/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java deleted file mode 100644 index 0e344e51e..000000000 --- a/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java +++ /dev/null @@ -1,20558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/execution.proto - -package flyteidl.admin; - -public final class ExecutionOuterClass { - private ExecutionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ExecutionCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project the execution belongs to. 
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project the execution belongs to. 
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the execution belongs to. 
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the execution belongs to. 
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * User provided value for the resource.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - java.lang.String getName(); - /** - *
-     * User provided value for the resource.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * Additional fields necessary to launch the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - boolean hasSpec(); - /** - *
-     * Additional fields necessary to launch the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); - /** - *
-     * Additional fields necessary to launch the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); - - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - boolean hasInputs(); - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - flyteidl.core.Literals.LiteralMap getInputs(); - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); - } - /** - *
-   * Request to launch an execution with the given project, domain and optionally name.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} - */ - public static final class ExecutionCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateRequest) - ExecutionCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionCreateRequest.newBuilder() to construct. - private ExecutionCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionCreateRequest() { - project_ = ""; - domain_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionCreateRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 34: { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project the execution belongs to. 
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project the execution belongs to. 
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the execution belongs to. 
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the execution belongs to. 
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - *
-     * User provided value for the resource.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-     * User provided value for the resource.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - 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 SPEC_FIELD_NUMBER = 4; - private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; - /** - *
-     * Additional fields necessary to launch the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * Additional fields necessary to launch the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { - return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } - /** - *
-     * Additional fields necessary to launch the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - public static final int INPUTS_FIELD_NUMBER = 5; - private flyteidl.core.Literals.LiteralMap inputs_; - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMap getInputs() { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - if (spec_ != null) { - output.writeMessage(4, getSpec()); - } - if (inputs_ != null) { - output.writeMessage(5, getInputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSpec()); - } - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getInputs()); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getName() - .equals(other.getName())) return false; - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; - } - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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(flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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; - } - /** - *
-     * Request to launch an execution with the given project, domain and optionally name.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateRequest) - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.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(); - project_ = ""; - - domain_ = ""; - - name_ = ""; - - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest build() { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.name_ = name_; - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.build(); - } - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project the execution belongs to. 
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project the execution belongs to. 
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project the execution belongs to. 
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project the execution belongs to. 
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project the execution belongs to. 
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the execution belongs to. 
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the execution belongs to. 
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the execution belongs to. 
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the execution belongs to. 
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the execution belongs to. 
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public Builder setSpec( - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - - private flyteidl.core.Literals.LiteralMap inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMap getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public Builder setInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - @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:flyteidl.admin.ExecutionCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateRequest) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionCreateRequest(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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionRelaunchRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionRelaunchRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * User provided value for the relaunched execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - java.lang.String getName(); - /** - *
-     * User provided value for the relaunched execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - *
-   * Request to relaunch the referenced execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} - */ - public static final class ExecutionRelaunchRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionRelaunchRequest) - ExecutionRelaunchRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionRelaunchRequest.newBuilder() to construct. - private ExecutionRelaunchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionRelaunchRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionRelaunchRequest( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - *
-     * User provided value for the relaunched execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-     * User provided value for the relaunched execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (id_ != null) { - output.writeMessage(1, getId()); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - 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 (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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(flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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; - } - /** - *
-     * Request to relaunch the referenced execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionRelaunchRequest) - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest build() { - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionRelaunchRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRelaunchRequest) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionRelaunchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionRelaunchRequest(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 flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionCreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * The unique identifier for a successfully created execution.
-   * If the name was *not* specified in the create request, this identifier will include a generated name.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} - */ - public static final class ExecutionCreateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateResponse) - ExecutionCreateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionCreateResponse.newBuilder() to construct. - private ExecutionCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionCreateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionCreateResponse( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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(flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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; - } - /** - *
-     * The unique identifier for a successfully created execution.
-     * If the name was *not* specified in the create request, this identifier will include a generated name.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateResponse) - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse build() { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.ExecutionCreateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateResponse) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionCreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionCreateResponse(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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * A message used to fetch a single workflow execution entity.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} - */ - public static final class WorkflowExecutionGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetRequest) - WorkflowExecutionGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionGetRequest.newBuilder() to construct. - private WorkflowExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionGetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionGetRequest( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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 message used to fetch a single workflow execution entity.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetRequest) - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest build() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.WorkflowExecutionGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetRequest) - private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionGetRequest(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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Execution) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - boolean hasSpec(); - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); - - /** - *
-     * Execution results. 
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - boolean hasClosure(); - /** - *
-     * Execution results. 
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure(); - /** - *
-     * Execution results. 
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder(); - } - /** - *
-   * A workflow execution represents an instantiated workflow, including all inputs and additional
-   * metadata as well as computed results included state, outputs, and duration-based attributes.
-   * Used as a response object used in Get and List execution requests.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Execution} - */ - public static final class Execution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Execution) - ExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Execution.newBuilder() to construct. - private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Execution() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Execution( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { - return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - public static final int CLOSURE_FIELD_NUMBER = 3; - private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_; - /** - *
-     * Execution results. 
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * Execution results. 
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { - return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; - } - /** - *
-     * Execution results. 
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - 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 (spec_ != null) { - output.writeMessage(2, getSpec()); - } - if (closure_ != null) { - output.writeMessage(3, getClosure()); - } - 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 (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClosure()); - } - 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 flyteidl.admin.ExecutionOuterClass.Execution)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.Execution other = (flyteidl.admin.ExecutionOuterClass.Execution) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; - } - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.Execution 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 flyteidl.admin.ExecutionOuterClass.Execution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.Execution 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 flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.Execution 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(flyteidl.admin.ExecutionOuterClass.Execution 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 workflow execution represents an instantiated workflow, including all inputs and additional
-     * metadata as well as computed results included state, outputs, and duration-based attributes.
-     * Used as a response object used in Get and List execution requests.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Execution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Execution) - flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.Execution.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.Execution build() { - flyteidl.admin.ExecutionOuterClass.Execution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.Execution buildPartial() { - flyteidl.admin.ExecutionOuterClass.Execution result = new flyteidl.admin.ExecutionOuterClass.Execution(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.build(); - } - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.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 flyteidl.admin.ExecutionOuterClass.Execution) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.Execution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.Execution other) { - if (other == flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.Execution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.Execution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> closureBuilder_; - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public Builder setClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public Builder setClosure( - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public Builder mergeClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - @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:flyteidl.admin.Execution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Execution) - private static final flyteidl.admin.ExecutionOuterClass.Execution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.Execution(); - } - - public static flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Execution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Execution(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 flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - java.util.List - getExecutionsList(); - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index); - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - int getExecutionsCount(); - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - java.util.List - getExecutionsOrBuilderList(); - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Used as a response for request to list executions.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionList} - */ - public static final class ExecutionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionList) - ExecutionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionList.newBuilder() to construct. - private ExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionList() { - executions_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionList( - 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)) { - executions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - executions_.add( - input.readMessage(flyteidl.admin.ExecutionOuterClass.Execution.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - executions_ = java.util.Collections.unmodifiableList(executions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); - } - - private int bitField0_; - public static final int EXECUTIONS_FIELD_NUMBER = 1; - private java.util.List executions_; - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List getExecutionsList() { - return executions_; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List - getExecutionsOrBuilderList() { - return executions_; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public int getExecutionsCount() { - return executions_.size(); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { - return executions_.get(index); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( - int index) { - return executions_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < executions_.size(); i++) { - output.writeMessage(1, executions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < executions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, executions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionList)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionList other = (flyteidl.admin.ExecutionOuterClass.ExecutionList) obj; - - if (!getExecutionsList() - .equals(other.getExecutionsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getExecutionsCount() > 0) { - hash = (37 * hash) + EXECUTIONS_FIELD_NUMBER; - hash = (53 * hash) + getExecutionsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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 flyteidl.admin.ExecutionOuterClass.ExecutionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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 flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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(flyteidl.admin.ExecutionOuterClass.ExecutionList 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; - } - /** - *
-     * Used as a response for request to list executions.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionList) - flyteidl.admin.ExecutionOuterClass.ExecutionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getExecutionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (executionsBuilder_ == null) { - executions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - executionsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionList build() { - flyteidl.admin.ExecutionOuterClass.ExecutionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionList buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionList result = new flyteidl.admin.ExecutionOuterClass.ExecutionList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (executionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - executions_ = java.util.Collections.unmodifiableList(executions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.executions_ = executions_; - } else { - result.executions_ = executionsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.ExecutionOuterClass.ExecutionList) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionList other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance()) return this; - if (executionsBuilder_ == null) { - if (!other.executions_.isEmpty()) { - if (executions_.isEmpty()) { - executions_ = other.executions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureExecutionsIsMutable(); - executions_.addAll(other.executions_); - } - onChanged(); - } - } else { - if (!other.executions_.isEmpty()) { - if (executionsBuilder_.isEmpty()) { - executionsBuilder_.dispose(); - executionsBuilder_ = null; - executions_ = other.executions_; - bitField0_ = (bitField0_ & ~0x00000001); - executionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExecutionsFieldBuilder() : null; - } else { - executionsBuilder_.addAllMessages(other.executions_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.ExecutionOuterClass.ExecutionList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List executions_ = - java.util.Collections.emptyList(); - private void ensureExecutionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - executions_ = new java.util.ArrayList(executions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> executionsBuilder_; - - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List getExecutionsList() { - if (executionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(executions_); - } else { - return executionsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public int getExecutionsCount() { - if (executionsBuilder_ == null) { - return executions_.size(); - } else { - return executionsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { - if (executionsBuilder_ == null) { - return executions_.get(index); - } else { - return executionsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder setExecutions( - int index, flyteidl.admin.ExecutionOuterClass.Execution value) { - if (executionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecutionsIsMutable(); - executions_.set(index, value); - onChanged(); - } else { - executionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder setExecutions( - int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.set(index, builderForValue.build()); - onChanged(); - } else { - executionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addExecutions(flyteidl.admin.ExecutionOuterClass.Execution value) { - if (executionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecutionsIsMutable(); - executions_.add(value); - onChanged(); - } else { - executionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addExecutions( - int index, flyteidl.admin.ExecutionOuterClass.Execution value) { - if (executionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecutionsIsMutable(); - executions_.add(index, value); - onChanged(); - } else { - executionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addExecutions( - flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.add(builderForValue.build()); - onChanged(); - } else { - executionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addExecutions( - int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.add(index, builderForValue.build()); - onChanged(); - } else { - executionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addAllExecutions( - java.lang.Iterable values) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, executions_); - onChanged(); - } else { - executionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder clearExecutions() { - if (executionsBuilder_ == null) { - executions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - executionsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder removeExecutions(int index) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.remove(index); - onChanged(); - } else { - executionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution.Builder getExecutionsBuilder( - int index) { - return getExecutionsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( - int index) { - if (executionsBuilder_ == null) { - return executions_.get(index); } else { - return executionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List - getExecutionsOrBuilderList() { - if (executionsBuilder_ != null) { - return executionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(executions_); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder() { - return getExecutionsFieldBuilder().addBuilder( - flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder( - int index) { - return getExecutionsFieldBuilder().addBuilder( - index, flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List - getExecutionsBuilderList() { - return getExecutionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> - getExecutionsFieldBuilder() { - if (executionsBuilder_ == null) { - executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder>( - executions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - executions_ = null; - } - return executionsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.ExecutionList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionList) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionList(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionList(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 flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralMapBlobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LiteralMapBlob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - boolean hasValues(); - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - flyteidl.core.Literals.LiteralMap getValues(); - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder(); - - /** - *
-     * In the event that the map is too large, we return a uri to the data
-     * 
- * - * string uri = 2; - */ - java.lang.String getUri(); - /** - *
-     * In the event that the map is too large, we return a uri to the data
-     * 
- * - * string uri = 2; - */ - com.google.protobuf.ByteString - getUriBytes(); - - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.DataCase getDataCase(); - } - /** - *
-   * Input/output data can represented by actual values or a link to where values are stored
-   * 
- * - * Protobuf type {@code flyteidl.admin.LiteralMapBlob} - */ - public static final class LiteralMapBlob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LiteralMapBlob) - LiteralMapBlobOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiteralMapBlob.newBuilder() to construct. - private LiteralMapBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiteralMapBlob() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiteralMapBlob( - 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: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (dataCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) data_).toBuilder(); - } - data_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) data_); - data_ = subBuilder.buildPartial(); - } - dataCase_ = 1; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - dataCase_ = 2; - data_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); - } - - private int dataCase_ = 0; - private java.lang.Object data_; - public enum DataCase - implements com.google.protobuf.Internal.EnumLite { - VALUES(1), - URI(2), - DATA_NOT_SET(0); - private final int value; - private DataCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DataCase valueOf(int value) { - return forNumber(value); - } - - public static DataCase forNumber(int value) { - switch (value) { - case 1: return VALUES; - case 2: return URI; - case 0: return DATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); - } - - public static final int VALUES_FIELD_NUMBER = 1; - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public boolean hasValues() { - return dataCase_ == 1; - } - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public flyteidl.core.Literals.LiteralMap getValues() { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - public static final int URI_FIELD_NUMBER = 2; - /** - *
-     * In the event that the map is too large, we return a uri to the data
-     * 
- * - * string uri = 2; - */ - public java.lang.String getUri() { - java.lang.Object ref = ""; - if (dataCase_ == 2) { - ref = data_; - } - 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(); - if (dataCase_ == 2) { - data_ = s; - } - return s; - } - } - /** - *
-     * In the event that the map is too large, we return a uri to the data
-     * 
- * - * string uri = 2; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = ""; - if (dataCase_ == 2) { - ref = data_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (dataCase_ == 2) { - data_ = 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 (dataCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.LiteralMap) data_); - } - if (dataCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.LiteralMap) data_); - } - if (dataCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_); - } - 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) obj; - - if (!getDataCase().equals(other.getDataCase())) return false; - switch (dataCase_) { - case 1: - if (!getValues() - .equals(other.getValues())) return false; - break; - case 2: - if (!getUri() - .equals(other.getUri())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (dataCase_) { - case 1: - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValues().hashCode(); - break; - case 2: - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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; - } - /** - *
-     * Input/output data can represented by actual values or a link to where values are stored
-     * 
- * - * Protobuf type {@code flyteidl.admin.LiteralMapBlob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LiteralMapBlob) - flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.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(); - dataCase_ = 0; - data_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob build() { - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob buildPartial() { - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(this); - if (dataCase_ == 1) { - if (valuesBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = valuesBuilder_.build(); - } - } - if (dataCase_ == 2) { - result.data_ = data_; - } - result.dataCase_ = dataCase_; - 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other) { - if (other == flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) return this; - switch (other.getDataCase()) { - case VALUES: { - mergeValues(other.getValues()); - break; - } - case URI: { - dataCase_ = 2; - data_ = other.data_; - onChanged(); - break; - } - case DATA_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 { - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int dataCase_ = 0; - private java.lang.Object data_; - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); - } - - public Builder clearData() { - dataCase_ = 0; - data_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> valuesBuilder_; - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public boolean hasValues() { - return dataCase_ == 1; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public flyteidl.core.Literals.LiteralMap getValues() { - if (valuesBuilder_ == null) { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (dataCase_ == 1) { - return valuesBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public Builder setValues(flyteidl.core.Literals.LiteralMap value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - valuesBuilder_.setMessage(value); - } - dataCase_ = 1; - return this; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public Builder setValues( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (valuesBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - valuesBuilder_.setMessage(builderForValue.build()); - } - dataCase_ = 1; - return this; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public Builder mergeValues(flyteidl.core.Literals.LiteralMap value) { - if (valuesBuilder_ == null) { - if (dataCase_ == 1 && - data_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - data_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) data_) - .mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - if (dataCase_ == 1) { - valuesBuilder_.mergeFrom(value); - } - valuesBuilder_.setMessage(value); - } - dataCase_ = 1; - return this; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - if (dataCase_ == 1) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - } else { - if (dataCase_ == 1) { - dataCase_ = 0; - data_ = null; - } - valuesBuilder_.clear(); - } - return this; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public flyteidl.core.Literals.LiteralMap.Builder getValuesBuilder() { - return getValuesFieldBuilder().getBuilder(); - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { - if ((dataCase_ == 1) && (valuesBuilder_ != null)) { - return valuesBuilder_.getMessageOrBuilder(); - } else { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - if (!(dataCase_ == 1)) { - data_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) data_, - getParentForChildren(), - isClean()); - data_ = null; - } - dataCase_ = 1; - onChanged();; - return valuesBuilder_; - } - - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public java.lang.String getUri() { - java.lang.Object ref = ""; - if (dataCase_ == 2) { - ref = data_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (dataCase_ == 2) { - data_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = ""; - if (dataCase_ == 2) { - ref = data_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (dataCase_ == 2) { - data_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - dataCase_ = 2; - data_ = value; - onChanged(); - return this; - } - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public Builder clearUri() { - if (dataCase_ == 2) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - return this; - } - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - dataCase_ = 2; - data_ = 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:flyteidl.admin.LiteralMapBlob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LiteralMapBlob) - private static final flyteidl.admin.ExecutionOuterClass.LiteralMapBlob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(); - } - - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiteralMapBlob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiteralMapBlob(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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AbortMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.AbortMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string cause = 1; - */ - java.lang.String getCause(); - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string cause = 1; - */ - com.google.protobuf.ByteString - getCauseBytes(); - - /** - *
-     * Identifies the entity (if any) responsible for terminating the execution
-     * 
- * - * string principal = 2; - */ - java.lang.String getPrincipal(); - /** - *
-     * Identifies the entity (if any) responsible for terminating the execution
-     * 
- * - * string principal = 2; - */ - com.google.protobuf.ByteString - getPrincipalBytes(); - } - /** - * Protobuf type {@code flyteidl.admin.AbortMetadata} - */ - public static final class AbortMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.AbortMetadata) - AbortMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbortMetadata.newBuilder() to construct. - private AbortMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AbortMetadata() { - cause_ = ""; - principal_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbortMetadata( - 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(); - - cause_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - principal_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.AbortMetadata.class, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder.class); - } - - public static final int CAUSE_FIELD_NUMBER = 1; - private volatile java.lang.Object cause_; - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string cause = 1; - */ - public java.lang.String getCause() { - java.lang.Object ref = cause_; - 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(); - cause_ = s; - return s; - } - } - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string cause = 1; - */ - public com.google.protobuf.ByteString - getCauseBytes() { - java.lang.Object ref = cause_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cause_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRINCIPAL_FIELD_NUMBER = 2; - private volatile java.lang.Object principal_; - /** - *
-     * Identifies the entity (if any) responsible for terminating the execution
-     * 
- * - * string principal = 2; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - 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(); - principal_ = s; - return s; - } - } - /** - *
-     * Identifies the entity (if any) responsible for terminating the execution
-     * 
- * - * string principal = 2; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = 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 (!getCauseBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cause_); - } - if (!getPrincipalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCauseBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cause_); - } - if (!getPrincipalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); - } - 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.AbortMetadata other = (flyteidl.admin.ExecutionOuterClass.AbortMetadata) obj; - - if (!getCause() - .equals(other.getCause())) return false; - if (!getPrincipal() - .equals(other.getPrincipal())) 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) + CAUSE_FIELD_NUMBER; - hash = (53 * hash) + getCause().hashCode(); - hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; - hash = (53 * hash) + getPrincipal().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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(flyteidl.admin.ExecutionOuterClass.AbortMetadata 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 flyteidl.admin.AbortMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.AbortMetadata) - flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.AbortMetadata.class, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.AbortMetadata.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(); - cause_ = ""; - - principal_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.AbortMetadata build() { - flyteidl.admin.ExecutionOuterClass.AbortMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.AbortMetadata buildPartial() { - flyteidl.admin.ExecutionOuterClass.AbortMetadata result = new flyteidl.admin.ExecutionOuterClass.AbortMetadata(this); - result.cause_ = cause_; - result.principal_ = principal_; - 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.AbortMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.AbortMetadata other) { - if (other == flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance()) return this; - if (!other.getCause().isEmpty()) { - cause_ = other.cause_; - onChanged(); - } - if (!other.getPrincipal().isEmpty()) { - principal_ = other.principal_; - 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 { - flyteidl.admin.ExecutionOuterClass.AbortMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.AbortMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cause_ = ""; - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public java.lang.String getCause() { - java.lang.Object ref = cause_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cause_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public com.google.protobuf.ByteString - getCauseBytes() { - java.lang.Object ref = cause_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cause_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public Builder setCause( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cause_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public Builder clearCause() { - - cause_ = getDefaultInstance().getCause(); - onChanged(); - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public Builder setCauseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cause_ = value; - onChanged(); - return this; - } - - private java.lang.Object principal_ = ""; - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public Builder setPrincipal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - principal_ = value; - onChanged(); - return this; - } - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public Builder clearPrincipal() { - - principal_ = getDefaultInstance().getPrincipal(); - onChanged(); - return this; - } - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - principal_ = 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:flyteidl.admin.AbortMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.AbortMetadata) - private static final flyteidl.admin.ExecutionOuterClass.AbortMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.AbortMetadata(); - } - - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AbortMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbortMetadata(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 flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A map of outputs in the case of a successful execution.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - boolean hasOutputs(); - /** - *
-     * A map of outputs in the case of a successful execution.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs(); - /** - *
-     * A map of outputs in the case of a successful execution.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder(); - - /** - *
-     * Error information in the case of a failed execution. 
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - boolean hasError(); - /** - *
-     * Error information in the case of a failed execution. 
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information in the case of a failed execution. 
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated java.lang.String getAbortCause(); - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getAbortCauseBytes(); - - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - boolean hasAbortMetadata(); - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata(); - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder(); - - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasComputedInputs(); - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getComputedInputs(); - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder(); - - /** - *
-     * Most recent recorded phase for the execution.
-     * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - int getPhaseValue(); - /** - *
-     * Most recent recorded phase for the execution.
-     * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); - - /** - *
-     * Reported ime at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - boolean hasStartedAt(); - /** - *
-     * Reported ime at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - com.google.protobuf.Timestamp getStartedAt(); - /** - *
-     * Reported ime at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); - - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - boolean hasDuration(); - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.Duration getDuration(); - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - boolean hasCreatedAt(); - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - boolean hasUpdatedAt(); - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - com.google.protobuf.Timestamp getUpdatedAt(); - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); - - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - java.util.List - getNotificationsList(); - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - flyteidl.admin.Common.Notification getNotifications(int index); - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - int getNotificationsCount(); - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - java.util.List - getNotificationsOrBuilderList(); - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index); - - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - boolean hasWorkflowId(); - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); - - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.OutputResultCase getOutputResultCase(); - } - /** - *
-   * Encapsulates the results of the Execution
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionClosure} - */ - public static final class ExecutionClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionClosure) - ExecutionClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionClosure.newBuilder() to construct. - private ExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionClosure() { - phase_ = 0; - notifications_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionClosure( - 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: { - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder subBuilder = null; - if (outputResultCase_ == 1) { - subBuilder = ((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 1; - break; - } - case 18: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 2) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 2; - break; - } - case 26: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (computedInputs_ != null) { - subBuilder = computedInputs_.toBuilder(); - } - computedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(computedInputs_); - computedInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startedAt_ != null) { - subBuilder = startedAt_.toBuilder(); - } - startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startedAt_); - startedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - 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 66: { - 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; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000400) != 0)) { - notifications_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000400; - } - notifications_.add( - input.readMessage(flyteidl.admin.Common.Notification.parser(), extensionRegistry)); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 10; - outputResult_ = s; - break; - } - case 90: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (workflowId_ != null) { - subBuilder = workflowId_.toBuilder(); - } - workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflowId_); - workflowId_ = subBuilder.buildPartial(); - } - - break; - } - case 98: { - flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder subBuilder = null; - if (outputResultCase_ == 12) { - subBuilder = ((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.admin.ExecutionOuterClass.AbortMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 12; - 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_ & 0x00000400) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); - } - - private int bitField0_; - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUTS(1), - ERROR(2), - @java.lang.Deprecated ABORT_CAUSE(10), - ABORT_METADATA(12), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 1: return OUTPUTS; - case 2: return ERROR; - case 10: return ABORT_CAUSE; - case 12: return ABORT_METADATA; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public static final int OUTPUTS_FIELD_NUMBER = 1; - /** - *
-     * A map of outputs in the case of a successful execution.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public boolean hasOutputs() { - return outputResultCase_ == 1; - } - /** - *
-     * A map of outputs in the case of a successful execution.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { - if (outputResultCase_ == 1) { - return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - /** - *
-     * A map of outputs in the case of a successful execution.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { - if (outputResultCase_ == 1) { - return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - - public static final int ERROR_FIELD_NUMBER = 2; - /** - *
-     * Error information in the case of a failed execution. 
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-     * Error information in the case of a failed execution. 
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information in the case of a failed execution. 
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int ABORT_CAUSE_FIELD_NUMBER = 10; - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getAbortCause() { - java.lang.Object ref = ""; - if (outputResultCase_ == 10) { - ref = outputResult_; - } - 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(); - if (outputResultCase_ == 10) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getAbortCauseBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 10) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 10) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ABORT_METADATA_FIELD_NUMBER = 12; - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public boolean hasAbortMetadata() { - return outputResultCase_ == 12; - } - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata() { - if (outputResultCase_ == 12) { - return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder() { - if (outputResultCase_ == 12) { - return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - - public static final int COMPUTED_INPUTS_FIELD_NUMBER = 3; - private flyteidl.core.Literals.LiteralMap computedInputs_; - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasComputedInputs() { - return computedInputs_ != null; - } - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getComputedInputs() { - return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; - } - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { - return getComputedInputs(); - } - - public static final int PHASE_FIELD_NUMBER = 4; - private int phase_; - /** - *
-     * Most recent recorded phase for the execution.
-     * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-     * Most recent recorded phase for the execution.
-     * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - - public static final int STARTED_AT_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp startedAt_; - /** - *
-     * Reported ime at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public boolean hasStartedAt() { - return startedAt_ != null; - } - /** - *
-     * Reported ime at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp getStartedAt() { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - /** - *
-     * Reported ime at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - return getStartedAt(); - } - - public static final int DURATION_FIELD_NUMBER = 6; - private com.google.protobuf.Duration duration_; - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return duration_ != null; - } - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return getDuration(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - public static final int UPDATED_AT_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp updatedAt_; - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public boolean hasUpdatedAt() { - return updatedAt_ != null; - } - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - return getUpdatedAt(); - } - - public static final int NOTIFICATIONS_FIELD_NUMBER = 9; - private java.util.List notifications_; - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List getNotificationsList() { - return notifications_; - } - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List - getNotificationsOrBuilderList() { - return notifications_; - } - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public int getNotificationsCount() { - return notifications_.size(); - } - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - return notifications_.get(index); - } - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - return notifications_.get(index); - } - - public static final int WORKFLOW_ID_FIELD_NUMBER = 11; - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public boolean hasWorkflowId() { - return workflowId_ != null; - } - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - return getWorkflowId(); - } - - 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 (outputResultCase_ == 1) { - output.writeMessage(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); - } - if (outputResultCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (computedInputs_ != null) { - output.writeMessage(3, getComputedInputs()); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(4, phase_); - } - if (startedAt_ != null) { - output.writeMessage(5, getStartedAt()); - } - if (duration_ != null) { - output.writeMessage(6, getDuration()); - } - if (createdAt_ != null) { - output.writeMessage(7, getCreatedAt()); - } - if (updatedAt_ != null) { - output.writeMessage(8, getUpdatedAt()); - } - for (int i = 0; i < notifications_.size(); i++) { - output.writeMessage(9, notifications_.get(i)); - } - if (outputResultCase_ == 10) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, outputResult_); - } - if (workflowId_ != null) { - output.writeMessage(11, getWorkflowId()); - } - if (outputResultCase_ == 12) { - output.writeMessage(12, (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (outputResultCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); - } - if (outputResultCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (computedInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getComputedInputs()); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, phase_); - } - if (startedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getStartedAt()); - } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDuration()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreatedAt()); - } - if (updatedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdatedAt()); - } - for (int i = 0; i < notifications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, notifications_.get(i)); - } - if (outputResultCase_ == 10) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, outputResult_); - } - if (workflowId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getWorkflowId()); - } - if (outputResultCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionClosure other = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) obj; - - if (hasComputedInputs() != other.hasComputedInputs()) return false; - if (hasComputedInputs()) { - if (!getComputedInputs() - .equals(other.getComputedInputs())) return false; - } - if (phase_ != other.phase_) return false; - if (hasStartedAt() != other.hasStartedAt()) return false; - if (hasStartedAt()) { - if (!getStartedAt() - .equals(other.getStartedAt())) return false; - } - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) 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 (!getNotificationsList() - .equals(other.getNotificationsList())) return false; - if (hasWorkflowId() != other.hasWorkflowId()) return false; - if (hasWorkflowId()) { - if (!getWorkflowId() - .equals(other.getWorkflowId())) return false; - } - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 1: - if (!getOutputs() - .equals(other.getOutputs())) return false; - break; - case 2: - if (!getError() - .equals(other.getError())) return false; - break; - case 10: - if (!getAbortCause() - .equals(other.getAbortCause())) return false; - break; - case 12: - if (!getAbortMetadata() - .equals(other.getAbortMetadata())) 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(); - if (hasComputedInputs()) { - hash = (37 * hash) + COMPUTED_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getComputedInputs().hashCode(); - } - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (hasStartedAt()) { - hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; - hash = (53 * hash) + getStartedAt().hashCode(); - } - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().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(); - } - if (getNotificationsCount() > 0) { - hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getNotificationsList().hashCode(); - } - if (hasWorkflowId()) { - hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowId().hashCode(); - } - switch (outputResultCase_) { - case 1: - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - break; - case 2: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 10: - hash = (37 * hash) + ABORT_CAUSE_FIELD_NUMBER; - hash = (53 * hash) + getAbortCause().hashCode(); - break; - case 12: - hash = (37 * hash) + ABORT_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getAbortMetadata().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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(flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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; - } - /** - *
-     * Encapsulates the results of the Execution
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionClosure) - flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNotificationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (computedInputsBuilder_ == null) { - computedInputs_ = null; - } else { - computedInputs_ = null; - computedInputsBuilder_ = null; - } - phase_ = 0; - - if (startedAtBuilder_ == null) { - startedAt_ = null; - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - if (durationBuilder_ == null) { - duration_ = null; - } else { - duration_ = null; - durationBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - } else { - notificationsBuilder_.clear(); - } - if (workflowIdBuilder_ == null) { - workflowId_ = null; - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - outputResultCase_ = 0; - outputResult_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure build() { - flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (outputResultCase_ == 1) { - if (outputsBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = outputsBuilder_.build(); - } - } - if (outputResultCase_ == 2) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - if (outputResultCase_ == 10) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 12) { - if (abortMetadataBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = abortMetadataBuilder_.build(); - } - } - if (computedInputsBuilder_ == null) { - result.computedInputs_ = computedInputs_; - } else { - result.computedInputs_ = computedInputsBuilder_.build(); - } - result.phase_ = phase_; - if (startedAtBuilder_ == null) { - result.startedAt_ = startedAt_; - } else { - result.startedAt_ = startedAtBuilder_.build(); - } - if (durationBuilder_ == null) { - result.duration_ = duration_; - } else { - result.duration_ = durationBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.build(); - } - if (updatedAtBuilder_ == null) { - result.updatedAt_ = updatedAt_; - } else { - result.updatedAt_ = updatedAtBuilder_.build(); - } - if (notificationsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.notifications_ = notifications_; - } else { - result.notifications_ = notificationsBuilder_.build(); - } - if (workflowIdBuilder_ == null) { - result.workflowId_ = workflowId_; - } else { - result.workflowId_ = workflowIdBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - result.outputResultCase_ = outputResultCase_; - 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionClosure other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance()) return this; - if (other.hasComputedInputs()) { - mergeComputedInputs(other.getComputedInputs()); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.hasStartedAt()) { - mergeStartedAt(other.getStartedAt()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - if (other.hasUpdatedAt()) { - mergeUpdatedAt(other.getUpdatedAt()); - } - if (notificationsBuilder_ == null) { - if (!other.notifications_.isEmpty()) { - if (notifications_.isEmpty()) { - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureNotificationsIsMutable(); - notifications_.addAll(other.notifications_); - } - onChanged(); - } - } else { - if (!other.notifications_.isEmpty()) { - if (notificationsBuilder_.isEmpty()) { - notificationsBuilder_.dispose(); - notificationsBuilder_ = null; - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000400); - notificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNotificationsFieldBuilder() : null; - } else { - notificationsBuilder_.addAllMessages(other.notifications_); - } - } - } - if (other.hasWorkflowId()) { - mergeWorkflowId(other.getWorkflowId()); - } - switch (other.getOutputResultCase()) { - case OUTPUTS: { - mergeOutputs(other.getOutputs()); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case ABORT_CAUSE: { - outputResultCase_ = 10; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ABORT_METADATA: { - mergeAbortMetadata(other.getAbortMetadata()); - break; - } - case OUTPUTRESULT_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 { - flyteidl.admin.ExecutionOuterClass.ExecutionClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> outputsBuilder_; - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public boolean hasOutputs() { - return outputResultCase_ == 1; - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { - if (outputsBuilder_ == null) { - if (outputResultCase_ == 1) { - return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } else { - if (outputResultCase_ == 1) { - return outputsBuilder_.getMessage(); - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public Builder setOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - outputResultCase_ = 1; - return this; - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public Builder setOutputs( - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 1; - return this; - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public Builder mergeOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { - if (outputsBuilder_ == null) { - if (outputResultCase_ == 1 && - outputResult_ != flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) { - outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.newBuilder((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 1) { - outputsBuilder_.mergeFrom(value); - } - outputsBuilder_.setMessage(value); - } - outputResultCase_ = 1; - return this; - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - if (outputResultCase_ == 1) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 1) { - outputResultCase_ = 0; - outputResult_ = null; - } - outputsBuilder_.clear(); - } - return this; - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder getOutputsBuilder() { - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { - if ((outputResultCase_ == 1) && (outputsBuilder_ != null)) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 1) { - return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - if (!(outputResultCase_ == 1)) { - outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder>( - (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 1; - onChanged();; - return outputsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 2) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 2) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 2)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 2; - onChanged();; - return errorBuilder_; - } - - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getAbortCause() { - java.lang.Object ref = ""; - if (outputResultCase_ == 10) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 10) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getAbortCauseBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 10) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 10) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAbortCause( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 10; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearAbortCause() { - if (outputResultCase_ == 10) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAbortCauseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 10; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder> abortMetadataBuilder_; - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public boolean hasAbortMetadata() { - return outputResultCase_ == 12; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata() { - if (abortMetadataBuilder_ == null) { - if (outputResultCase_ == 12) { - return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } else { - if (outputResultCase_ == 12) { - return abortMetadataBuilder_.getMessage(); - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public Builder setAbortMetadata(flyteidl.admin.ExecutionOuterClass.AbortMetadata value) { - if (abortMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - abortMetadataBuilder_.setMessage(value); - } - outputResultCase_ = 12; - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public Builder setAbortMetadata( - flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder builderForValue) { - if (abortMetadataBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - abortMetadataBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 12; - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public Builder mergeAbortMetadata(flyteidl.admin.ExecutionOuterClass.AbortMetadata value) { - if (abortMetadataBuilder_ == null) { - if (outputResultCase_ == 12 && - outputResult_ != flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance()) { - outputResult_ = flyteidl.admin.ExecutionOuterClass.AbortMetadata.newBuilder((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 12) { - abortMetadataBuilder_.mergeFrom(value); - } - abortMetadataBuilder_.setMessage(value); - } - outputResultCase_ = 12; - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public Builder clearAbortMetadata() { - if (abortMetadataBuilder_ == null) { - if (outputResultCase_ == 12) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 12) { - outputResultCase_ = 0; - outputResult_ = null; - } - abortMetadataBuilder_.clear(); - } - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder getAbortMetadataBuilder() { - return getAbortMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder() { - if ((outputResultCase_ == 12) && (abortMetadataBuilder_ != null)) { - return abortMetadataBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 12) { - return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder> - getAbortMetadataFieldBuilder() { - if (abortMetadataBuilder_ == null) { - if (!(outputResultCase_ == 12)) { - outputResult_ = flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - abortMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder>( - (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 12; - onChanged();; - return abortMetadataBuilder_; - } - - private flyteidl.core.Literals.LiteralMap computedInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> computedInputsBuilder_; - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasComputedInputs() { - return computedInputsBuilder_ != null || computedInputs_ != null; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getComputedInputs() { - if (computedInputsBuilder_ == null) { - return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; - } else { - return computedInputsBuilder_.getMessage(); - } - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setComputedInputs(flyteidl.core.Literals.LiteralMap value) { - if (computedInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - computedInputs_ = value; - onChanged(); - } else { - computedInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setComputedInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (computedInputsBuilder_ == null) { - computedInputs_ = builderForValue.build(); - onChanged(); - } else { - computedInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeComputedInputs(flyteidl.core.Literals.LiteralMap value) { - if (computedInputsBuilder_ == null) { - if (computedInputs_ != null) { - computedInputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(computedInputs_).mergeFrom(value).buildPartial(); - } else { - computedInputs_ = value; - } - onChanged(); - } else { - computedInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearComputedInputs() { - if (computedInputsBuilder_ == null) { - computedInputs_ = null; - onChanged(); - } else { - computedInputs_ = null; - computedInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getComputedInputsBuilder() { - - onChanged(); - return getComputedInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { - if (computedInputsBuilder_ != null) { - return computedInputsBuilder_.getMessageOrBuilder(); - } else { - return computedInputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; - } - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getComputedInputsFieldBuilder() { - if (computedInputsBuilder_ == null) { - computedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getComputedInputs(), - getParentForChildren(), - isClean()); - computedInputs_ = null; - } - return computedInputsBuilder_; - } - - private int phase_ = 0; - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp startedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public boolean hasStartedAt() { - return startedAtBuilder_ != null || startedAt_ != null; - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp getStartedAt() { - if (startedAtBuilder_ == null) { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } else { - return startedAtBuilder_.getMessage(); - } - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder setStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startedAt_ = value; - onChanged(); - } else { - startedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder setStartedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (startedAtBuilder_ == null) { - startedAt_ = builderForValue.build(); - onChanged(); - } else { - startedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (startedAt_ != null) { - startedAt_ = - com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); - } else { - startedAt_ = value; - } - onChanged(); - } else { - startedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder clearStartedAt() { - if (startedAtBuilder_ == null) { - startedAt_ = null; - onChanged(); - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { - - onChanged(); - return getStartedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - if (startedAtBuilder_ != null) { - return startedAtBuilder_.getMessageOrBuilder(); - } else { - return startedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getStartedAtFieldBuilder() { - if (startedAtBuilder_ == null) { - startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartedAt(), - getParentForChildren(), - isClean()); - startedAt_ = null; - } - return startedAtBuilder_; - } - - private com.google.protobuf.Duration duration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return durationBuilder_ != null || duration_ != null; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } else { - return durationBuilder_.getMessage(); - } - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (duration_ != null) { - duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); - } else { - duration_ = value; - } - onChanged(); - } else { - durationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - duration_ = null; - onChanged(); - } else { - duration_ = null; - durationBuilder_ = null; - } - - return this; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); - duration_ = null; - } - return durationBuilder_; - } - - 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_; - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - 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; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - 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; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - 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_; - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public boolean hasUpdatedAt() { - return updatedAtBuilder_ != null || updatedAt_ != null; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - if (updatedAtBuilder_ == null) { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } else { - return updatedAtBuilder_.getMessage(); - } - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - 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; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder setUpdatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updatedAtBuilder_ == null) { - updatedAt_ = builderForValue.build(); - onChanged(); - } else { - updatedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - 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; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder clearUpdatedAt() { - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - onChanged(); - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { - - onChanged(); - return getUpdatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - if (updatedAtBuilder_ != null) { - return updatedAtBuilder_.getMessageOrBuilder(); - } else { - return updatedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - 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_; - } - - private java.util.List notifications_ = - java.util.Collections.emptyList(); - private void ensureNotificationsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - notifications_ = new java.util.ArrayList(notifications_); - bitField0_ |= 0x00000400; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; - - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List getNotificationsList() { - if (notificationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(notifications_); - } else { - return notificationsBuilder_.getMessageList(); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public int getNotificationsCount() { - if (notificationsBuilder_ == null) { - return notifications_.size(); - } else { - return notificationsBuilder_.getCount(); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); - } else { - return notificationsBuilder_.getMessage(index); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.set(index, value); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.set(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addNotifications(flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(value); - onChanged(); - } else { - notificationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(index, value); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addNotifications( - flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addAllNotifications( - java.lang.Iterable values) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notifications_); - onChanged(); - } else { - notificationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder clearNotifications() { - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - } else { - notificationsBuilder_.clear(); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder removeNotifications(int index) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.remove(index); - onChanged(); - } else { - notificationsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().getBuilder(index); - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); } else { - return notificationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List - getNotificationsOrBuilderList() { - if (notificationsBuilder_ != null) { - return notificationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(notifications_); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { - return getNotificationsFieldBuilder().addBuilder( - flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().addBuilder( - index, flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List - getNotificationsBuilderList() { - return getNotificationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> - getNotificationsFieldBuilder() { - if (notificationsBuilder_ == null) { - notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( - notifications_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); - notifications_ = null; - } - return notificationsBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public boolean hasWorkflowId() { - return workflowIdBuilder_ != null || workflowId_ != null; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - if (workflowIdBuilder_ == null) { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } else { - return workflowIdBuilder_.getMessage(); - } - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflowId_ = value; - onChanged(); - } else { - workflowIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public Builder setWorkflowId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (workflowIdBuilder_ == null) { - workflowId_ = builderForValue.build(); - onChanged(); - } else { - workflowIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (workflowId_ != null) { - workflowId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); - } else { - workflowId_ = value; - } - onChanged(); - } else { - workflowIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public Builder clearWorkflowId() { - if (workflowIdBuilder_ == null) { - workflowId_ = null; - onChanged(); - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { - - onChanged(); - return getWorkflowIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - if (workflowIdBuilder_ != null) { - return workflowIdBuilder_.getMessageOrBuilder(); - } else { - return workflowId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getWorkflowIdFieldBuilder() { - if (workflowIdBuilder_ == null) { - workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getWorkflowId(), - getParentForChildren(), - isClean()); - workflowId_ = null; - } - return workflowIdBuilder_; - } - @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:flyteidl.admin.ExecutionClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClosure) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionClosure(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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SystemMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.SystemMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Which execution cluster this execution ran on.
-     * 
- * - * string execution_cluster = 1; - */ - java.lang.String getExecutionCluster(); - /** - *
-     * Which execution cluster this execution ran on.
-     * 
- * - * string execution_cluster = 1; - */ - com.google.protobuf.ByteString - getExecutionClusterBytes(); - } - /** - *
-   * Represents system rather than user-facing metadata about an execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.SystemMetadata} - */ - public static final class SystemMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.SystemMetadata) - SystemMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use SystemMetadata.newBuilder() to construct. - private SystemMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SystemMetadata() { - executionCluster_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SystemMetadata( - 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(); - - executionCluster_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.SystemMetadata.class, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder.class); - } - - public static final int EXECUTION_CLUSTER_FIELD_NUMBER = 1; - private volatile java.lang.Object executionCluster_; - /** - *
-     * Which execution cluster this execution ran on.
-     * 
- * - * string execution_cluster = 1; - */ - public java.lang.String getExecutionCluster() { - java.lang.Object ref = executionCluster_; - 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(); - executionCluster_ = s; - return s; - } - } - /** - *
-     * Which execution cluster this execution ran on.
-     * 
- * - * string execution_cluster = 1; - */ - public com.google.protobuf.ByteString - getExecutionClusterBytes() { - java.lang.Object ref = executionCluster_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executionCluster_ = 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 (!getExecutionClusterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executionCluster_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getExecutionClusterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executionCluster_); - } - 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.SystemMetadata other = (flyteidl.admin.ExecutionOuterClass.SystemMetadata) obj; - - if (!getExecutionCluster() - .equals(other.getExecutionCluster())) 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) + EXECUTION_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getExecutionCluster().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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(flyteidl.admin.ExecutionOuterClass.SystemMetadata 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; - } - /** - *
-     * Represents system rather than user-facing metadata about an execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.SystemMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.SystemMetadata) - flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.SystemMetadata.class, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.SystemMetadata.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(); - executionCluster_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.SystemMetadata build() { - flyteidl.admin.ExecutionOuterClass.SystemMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.SystemMetadata buildPartial() { - flyteidl.admin.ExecutionOuterClass.SystemMetadata result = new flyteidl.admin.ExecutionOuterClass.SystemMetadata(this); - result.executionCluster_ = executionCluster_; - 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.SystemMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.SystemMetadata other) { - if (other == flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance()) return this; - if (!other.getExecutionCluster().isEmpty()) { - executionCluster_ = other.executionCluster_; - 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 { - flyteidl.admin.ExecutionOuterClass.SystemMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.SystemMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object executionCluster_ = ""; - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public java.lang.String getExecutionCluster() { - java.lang.Object ref = executionCluster_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executionCluster_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public com.google.protobuf.ByteString - getExecutionClusterBytes() { - java.lang.Object ref = executionCluster_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executionCluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public Builder setExecutionCluster( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - executionCluster_ = value; - onChanged(); - return this; - } - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public Builder clearExecutionCluster() { - - executionCluster_ = getDefaultInstance().getExecutionCluster(); - onChanged(); - return this; - } - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public Builder setExecutionClusterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - executionCluster_ = 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:flyteidl.admin.SystemMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SystemMetadata) - private static final flyteidl.admin.ExecutionOuterClass.SystemMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.SystemMetadata(); - } - - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SystemMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SystemMetadata(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 flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * [(validate.rules).enum.defined_only = true];
-     * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - int getModeValue(); - /** - *
-     * [(validate.rules).enum.defined_only = true];
-     * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode(); - - /** - *
-     * Identifier of the entity that triggered this execution.
-     * For systems using back-end authentication any value set here will be discarded in favor of the
-     * authenticated user context.
-     * 
- * - * string principal = 2; - */ - java.lang.String getPrincipal(); - /** - *
-     * Identifier of the entity that triggered this execution.
-     * For systems using back-end authentication any value set here will be discarded in favor of the
-     * authenticated user context.
-     * 
- * - * string principal = 2; - */ - com.google.protobuf.ByteString - getPrincipalBytes(); - - /** - *
-     * Indicates the "nestedness" of this execution.
-     * If a user launches a workflow execution, the default nesting is 0.
-     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-     * nesting = k + 1.
-     * 
- * - * uint32 nesting = 3; - */ - int getNesting(); - - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - boolean hasScheduledAt(); - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - com.google.protobuf.Timestamp getScheduledAt(); - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder(); - - /** - *
-     * Which subworkflow node launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - boolean hasParentNodeExecution(); - /** - *
-     * Which subworkflow node launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution(); - /** - *
-     * Which subworkflow node launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder(); - - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - boolean hasReferenceExecution(); - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution(); - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder(); - - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - boolean hasSystemMetadata(); - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata(); - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder(); - } - /** - *
-   * Represents attributes about an execution which are not required to launch the execution but are useful to record.
-   * These attributes are assigned at launch time and do not change.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionMetadata} - */ - public static final class ExecutionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionMetadata) - ExecutionMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionMetadata.newBuilder() to construct. - private ExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionMetadata() { - mode_ = 0; - principal_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionMetadata( - 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 8: { - int rawValue = input.readEnum(); - - mode_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - principal_ = s; - break; - } - case 24: { - - nesting_ = input.readUInt32(); - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduledAt_ != null) { - subBuilder = scheduledAt_.toBuilder(); - } - scheduledAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduledAt_); - scheduledAt_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (parentNodeExecution_ != null) { - subBuilder = parentNodeExecution_.toBuilder(); - } - parentNodeExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parentNodeExecution_); - parentNodeExecution_ = subBuilder.buildPartial(); - } - - break; - } - case 130: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (referenceExecution_ != null) { - subBuilder = referenceExecution_.toBuilder(); - } - referenceExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(referenceExecution_); - referenceExecution_ = subBuilder.buildPartial(); - } - - break; - } - case 138: { - flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder subBuilder = null; - if (systemMetadata_ != null) { - subBuilder = systemMetadata_.toBuilder(); - } - systemMetadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.SystemMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(systemMetadata_); - systemMetadata_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); - } - - /** - *
-     * The method by which this execution was launched.
-     * 
- * - * Protobuf enum {@code flyteidl.admin.ExecutionMetadata.ExecutionMode} - */ - public enum ExecutionMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * The default execution mode, MANUAL implies that an execution was launched by an individual.
-       * 
- * - * MANUAL = 0; - */ - MANUAL(0), - /** - *
-       * A schedule triggered this execution launch.
-       * 
- * - * SCHEDULED = 1; - */ - SCHEDULED(1), - /** - *
-       * A system process was responsible for launching this execution rather an individual.
-       * 
- * - * SYSTEM = 2; - */ - SYSTEM(2), - /** - *
-       * This execution was launched with identical inputs as a previous execution.
-       * 
- * - * RELAUNCH = 3; - */ - RELAUNCH(3), - /** - *
-       * This execution was triggered by another execution.
-       * 
- * - * CHILD_WORKFLOW = 4; - */ - CHILD_WORKFLOW(4), - UNRECOGNIZED(-1), - ; - - /** - *
-       * The default execution mode, MANUAL implies that an execution was launched by an individual.
-       * 
- * - * MANUAL = 0; - */ - public static final int MANUAL_VALUE = 0; - /** - *
-       * A schedule triggered this execution launch.
-       * 
- * - * SCHEDULED = 1; - */ - public static final int SCHEDULED_VALUE = 1; - /** - *
-       * A system process was responsible for launching this execution rather an individual.
-       * 
- * - * SYSTEM = 2; - */ - public static final int SYSTEM_VALUE = 2; - /** - *
-       * This execution was launched with identical inputs as a previous execution.
-       * 
- * - * RELAUNCH = 3; - */ - public static final int RELAUNCH_VALUE = 3; - /** - *
-       * This execution was triggered by another execution.
-       * 
- * - * CHILD_WORKFLOW = 4; - */ - public static final int CHILD_WORKFLOW_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExecutionMode valueOf(int value) { - return forNumber(value); - } - - public static ExecutionMode forNumber(int value) { - switch (value) { - case 0: return MANUAL; - case 1: return SCHEDULED; - case 2: return SYSTEM; - case 3: return RELAUNCH; - case 4: return CHILD_WORKFLOW; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExecutionMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionMode findValueByNumber(int number) { - return ExecutionMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDescriptor().getEnumTypes().get(0); - } - - private static final ExecutionMode[] VALUES = values(); - - public static ExecutionMode 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 ExecutionMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.ExecutionMetadata.ExecutionMode) - } - - public static final int MODE_FIELD_NUMBER = 1; - private int mode_; - /** - *
-     * [(validate.rules).enum.defined_only = true];
-     * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public int getModeValue() { - return mode_; - } - /** - *
-     * [(validate.rules).enum.defined_only = true];
-     * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { - @SuppressWarnings("deprecation") - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); - return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; - } - - public static final int PRINCIPAL_FIELD_NUMBER = 2; - private volatile java.lang.Object principal_; - /** - *
-     * Identifier of the entity that triggered this execution.
-     * For systems using back-end authentication any value set here will be discarded in favor of the
-     * authenticated user context.
-     * 
- * - * string principal = 2; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - 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(); - principal_ = s; - return s; - } - } - /** - *
-     * Identifier of the entity that triggered this execution.
-     * For systems using back-end authentication any value set here will be discarded in favor of the
-     * authenticated user context.
-     * 
- * - * string principal = 2; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NESTING_FIELD_NUMBER = 3; - private int nesting_; - /** - *
-     * Indicates the "nestedness" of this execution.
-     * If a user launches a workflow execution, the default nesting is 0.
-     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-     * nesting = k + 1.
-     * 
- * - * uint32 nesting = 3; - */ - public int getNesting() { - return nesting_; - } - - public static final int SCHEDULED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp scheduledAt_; - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public boolean hasScheduledAt() { - return scheduledAt_ != null; - } - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.Timestamp getScheduledAt() { - return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; - } - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { - return getScheduledAt(); - } - - public static final int PARENT_NODE_EXECUTION_FIELD_NUMBER = 5; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; - /** - *
-     * Which subworkflow node launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public boolean hasParentNodeExecution() { - return parentNodeExecution_ != null; - } - /** - *
-     * Which subworkflow node launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { - return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } - /** - *
-     * Which subworkflow node launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { - return getParentNodeExecution(); - } - - public static final int REFERENCE_EXECUTION_FIELD_NUMBER = 16; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public boolean hasReferenceExecution() { - return referenceExecution_ != null; - } - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { - return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { - return getReferenceExecution(); - } - - public static final int SYSTEM_METADATA_FIELD_NUMBER = 17; - private flyteidl.admin.ExecutionOuterClass.SystemMetadata systemMetadata_; - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public boolean hasSystemMetadata() { - return systemMetadata_ != null; - } - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata() { - return systemMetadata_ == null ? flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; - } - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder() { - return getSystemMetadata(); - } - - 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_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { - output.writeEnum(1, mode_); - } - if (!getPrincipalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); - } - if (nesting_ != 0) { - output.writeUInt32(3, nesting_); - } - if (scheduledAt_ != null) { - output.writeMessage(4, getScheduledAt()); - } - if (parentNodeExecution_ != null) { - output.writeMessage(5, getParentNodeExecution()); - } - if (referenceExecution_ != null) { - output.writeMessage(16, getReferenceExecution()); - } - if (systemMetadata_ != null) { - output.writeMessage(17, getSystemMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (mode_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, mode_); - } - if (!getPrincipalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); - } - if (nesting_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, nesting_); - } - if (scheduledAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getScheduledAt()); - } - if (parentNodeExecution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getParentNodeExecution()); - } - if (referenceExecution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getReferenceExecution()); - } - if (systemMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getSystemMetadata()); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) obj; - - if (mode_ != other.mode_) return false; - if (!getPrincipal() - .equals(other.getPrincipal())) return false; - if (getNesting() - != other.getNesting()) return false; - if (hasScheduledAt() != other.hasScheduledAt()) return false; - if (hasScheduledAt()) { - if (!getScheduledAt() - .equals(other.getScheduledAt())) return false; - } - if (hasParentNodeExecution() != other.hasParentNodeExecution()) return false; - if (hasParentNodeExecution()) { - if (!getParentNodeExecution() - .equals(other.getParentNodeExecution())) return false; - } - if (hasReferenceExecution() != other.hasReferenceExecution()) return false; - if (hasReferenceExecution()) { - if (!getReferenceExecution() - .equals(other.getReferenceExecution())) return false; - } - if (hasSystemMetadata() != other.hasSystemMetadata()) return false; - if (hasSystemMetadata()) { - if (!getSystemMetadata() - .equals(other.getSystemMetadata())) 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) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; - hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; - hash = (53 * hash) + getPrincipal().hashCode(); - hash = (37 * hash) + NESTING_FIELD_NUMBER; - hash = (53 * hash) + getNesting(); - if (hasScheduledAt()) { - hash = (37 * hash) + SCHEDULED_AT_FIELD_NUMBER; - hash = (53 * hash) + getScheduledAt().hashCode(); - } - if (hasParentNodeExecution()) { - hash = (37 * hash) + PARENT_NODE_EXECUTION_FIELD_NUMBER; - hash = (53 * hash) + getParentNodeExecution().hashCode(); - } - if (hasReferenceExecution()) { - hash = (37 * hash) + REFERENCE_EXECUTION_FIELD_NUMBER; - hash = (53 * hash) + getReferenceExecution().hashCode(); - } - if (hasSystemMetadata()) { - hash = (37 * hash) + SYSTEM_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getSystemMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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; - } - /** - *
-     * Represents attributes about an execution which are not required to launch the execution but are useful to record.
-     * These attributes are assigned at launch time and do not change.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionMetadata) - flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.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; - - principal_ = ""; - - nesting_ = 0; - - if (scheduledAtBuilder_ == null) { - scheduledAt_ = null; - } else { - scheduledAt_ = null; - scheduledAtBuilder_ = null; - } - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = null; - } else { - parentNodeExecution_ = null; - parentNodeExecutionBuilder_ = null; - } - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = null; - } else { - referenceExecution_ = null; - referenceExecutionBuilder_ = null; - } - if (systemMetadataBuilder_ == null) { - systemMetadata_ = null; - } else { - systemMetadata_ = null; - systemMetadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata build() { - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(this); - result.mode_ = mode_; - result.principal_ = principal_; - result.nesting_ = nesting_; - if (scheduledAtBuilder_ == null) { - result.scheduledAt_ = scheduledAt_; - } else { - result.scheduledAt_ = scheduledAtBuilder_.build(); - } - if (parentNodeExecutionBuilder_ == null) { - result.parentNodeExecution_ = parentNodeExecution_; - } else { - result.parentNodeExecution_ = parentNodeExecutionBuilder_.build(); - } - if (referenceExecutionBuilder_ == null) { - result.referenceExecution_ = referenceExecution_; - } else { - result.referenceExecution_ = referenceExecutionBuilder_.build(); - } - if (systemMetadataBuilder_ == null) { - result.systemMetadata_ = systemMetadata_; - } else { - result.systemMetadata_ = systemMetadataBuilder_.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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance()) return this; - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); - } - if (!other.getPrincipal().isEmpty()) { - principal_ = other.principal_; - onChanged(); - } - if (other.getNesting() != 0) { - setNesting(other.getNesting()); - } - if (other.hasScheduledAt()) { - mergeScheduledAt(other.getScheduledAt()); - } - if (other.hasParentNodeExecution()) { - mergeParentNodeExecution(other.getParentNodeExecution()); - } - if (other.hasReferenceExecution()) { - mergeReferenceExecution(other.getReferenceExecution()); - } - if (other.hasSystemMetadata()) { - mergeSystemMetadata(other.getSystemMetadata()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int mode_ = 0; - /** - *
-       * [(validate.rules).enum.defined_only = true];
-       * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public int getModeValue() { - return mode_; - } - /** - *
-       * [(validate.rules).enum.defined_only = true];
-       * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public Builder setModeValue(int value) { - mode_ = value; - onChanged(); - return this; - } - /** - *
-       * [(validate.rules).enum.defined_only = true];
-       * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { - @SuppressWarnings("deprecation") - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); - return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; - } - /** - *
-       * [(validate.rules).enum.defined_only = true];
-       * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public Builder setMode(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode value) { - if (value == null) { - throw new NullPointerException(); - } - - mode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * [(validate.rules).enum.defined_only = true];
-       * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public Builder clearMode() { - - mode_ = 0; - onChanged(); - return this; - } - - private java.lang.Object principal_ = ""; - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public Builder setPrincipal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - principal_ = value; - onChanged(); - return this; - } - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public Builder clearPrincipal() { - - principal_ = getDefaultInstance().getPrincipal(); - onChanged(); - return this; - } - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - principal_ = value; - onChanged(); - return this; - } - - private int nesting_ ; - /** - *
-       * Indicates the "nestedness" of this execution.
-       * If a user launches a workflow execution, the default nesting is 0.
-       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-       * nesting = k + 1.
-       * 
- * - * uint32 nesting = 3; - */ - public int getNesting() { - return nesting_; - } - /** - *
-       * Indicates the "nestedness" of this execution.
-       * If a user launches a workflow execution, the default nesting is 0.
-       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-       * nesting = k + 1.
-       * 
- * - * uint32 nesting = 3; - */ - public Builder setNesting(int value) { - - nesting_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the "nestedness" of this execution.
-       * If a user launches a workflow execution, the default nesting is 0.
-       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-       * nesting = k + 1.
-       * 
- * - * uint32 nesting = 3; - */ - public Builder clearNesting() { - - nesting_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp scheduledAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduledAtBuilder_; - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public boolean hasScheduledAt() { - return scheduledAtBuilder_ != null || scheduledAt_ != null; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.Timestamp getScheduledAt() { - if (scheduledAtBuilder_ == null) { - return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; - } else { - return scheduledAtBuilder_.getMessage(); - } - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public Builder setScheduledAt(com.google.protobuf.Timestamp value) { - if (scheduledAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduledAt_ = value; - onChanged(); - } else { - scheduledAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public Builder setScheduledAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduledAtBuilder_ == null) { - scheduledAt_ = builderForValue.build(); - onChanged(); - } else { - scheduledAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public Builder mergeScheduledAt(com.google.protobuf.Timestamp value) { - if (scheduledAtBuilder_ == null) { - if (scheduledAt_ != null) { - scheduledAt_ = - com.google.protobuf.Timestamp.newBuilder(scheduledAt_).mergeFrom(value).buildPartial(); - } else { - scheduledAt_ = value; - } - onChanged(); - } else { - scheduledAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public Builder clearScheduledAt() { - if (scheduledAtBuilder_ == null) { - scheduledAt_ = null; - onChanged(); - } else { - scheduledAt_ = null; - scheduledAtBuilder_ = null; - } - - return this; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getScheduledAtBuilder() { - - onChanged(); - return getScheduledAtFieldBuilder().getBuilder(); - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { - if (scheduledAtBuilder_ != null) { - return scheduledAtBuilder_.getMessageOrBuilder(); - } else { - return scheduledAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; - } - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getScheduledAtFieldBuilder() { - if (scheduledAtBuilder_ == null) { - scheduledAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getScheduledAt(), - getParentForChildren(), - isClean()); - scheduledAt_ = null; - } - return scheduledAtBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionBuilder_; - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public boolean hasParentNodeExecution() { - return parentNodeExecutionBuilder_ != null || parentNodeExecution_ != null; - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { - if (parentNodeExecutionBuilder_ == null) { - return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } else { - return parentNodeExecutionBuilder_.getMessage(); - } - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public Builder setParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (parentNodeExecutionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parentNodeExecution_ = value; - onChanged(); - } else { - parentNodeExecutionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public Builder setParentNodeExecution( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = builderForValue.build(); - onChanged(); - } else { - parentNodeExecutionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public Builder mergeParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (parentNodeExecutionBuilder_ == null) { - if (parentNodeExecution_ != null) { - parentNodeExecution_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecution_).mergeFrom(value).buildPartial(); - } else { - parentNodeExecution_ = value; - } - onChanged(); - } else { - parentNodeExecutionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public Builder clearParentNodeExecution() { - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = null; - onChanged(); - } else { - parentNodeExecution_ = null; - parentNodeExecutionBuilder_ = null; - } - - return this; - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionBuilder() { - - onChanged(); - return getParentNodeExecutionFieldBuilder().getBuilder(); - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { - if (parentNodeExecutionBuilder_ != null) { - return parentNodeExecutionBuilder_.getMessageOrBuilder(); - } else { - return parentNodeExecution_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getParentNodeExecutionFieldBuilder() { - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getParentNodeExecution(), - getParentForChildren(), - isClean()); - parentNodeExecution_ = null; - } - return parentNodeExecutionBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> referenceExecutionBuilder_; - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public boolean hasReferenceExecution() { - return referenceExecutionBuilder_ != null || referenceExecution_ != null; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { - if (referenceExecutionBuilder_ == null) { - return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } else { - return referenceExecutionBuilder_.getMessage(); - } - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public Builder setReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (referenceExecutionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - referenceExecution_ = value; - onChanged(); - } else { - referenceExecutionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public Builder setReferenceExecution( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = builderForValue.build(); - onChanged(); - } else { - referenceExecutionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public Builder mergeReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (referenceExecutionBuilder_ == null) { - if (referenceExecution_ != null) { - referenceExecution_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(referenceExecution_).mergeFrom(value).buildPartial(); - } else { - referenceExecution_ = value; - } - onChanged(); - } else { - referenceExecutionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public Builder clearReferenceExecution() { - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = null; - onChanged(); - } else { - referenceExecution_ = null; - referenceExecutionBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getReferenceExecutionBuilder() { - - onChanged(); - return getReferenceExecutionFieldBuilder().getBuilder(); - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { - if (referenceExecutionBuilder_ != null) { - return referenceExecutionBuilder_.getMessageOrBuilder(); - } else { - return referenceExecution_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getReferenceExecutionFieldBuilder() { - if (referenceExecutionBuilder_ == null) { - referenceExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getReferenceExecution(), - getParentForChildren(), - isClean()); - referenceExecution_ = null; - } - return referenceExecutionBuilder_; - } - - private flyteidl.admin.ExecutionOuterClass.SystemMetadata systemMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder> systemMetadataBuilder_; - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public boolean hasSystemMetadata() { - return systemMetadataBuilder_ != null || systemMetadata_ != null; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata() { - if (systemMetadataBuilder_ == null) { - return systemMetadata_ == null ? flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; - } else { - return systemMetadataBuilder_.getMessage(); - } - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public Builder setSystemMetadata(flyteidl.admin.ExecutionOuterClass.SystemMetadata value) { - if (systemMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - systemMetadata_ = value; - onChanged(); - } else { - systemMetadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public Builder setSystemMetadata( - flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder builderForValue) { - if (systemMetadataBuilder_ == null) { - systemMetadata_ = builderForValue.build(); - onChanged(); - } else { - systemMetadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public Builder mergeSystemMetadata(flyteidl.admin.ExecutionOuterClass.SystemMetadata value) { - if (systemMetadataBuilder_ == null) { - if (systemMetadata_ != null) { - systemMetadata_ = - flyteidl.admin.ExecutionOuterClass.SystemMetadata.newBuilder(systemMetadata_).mergeFrom(value).buildPartial(); - } else { - systemMetadata_ = value; - } - onChanged(); - } else { - systemMetadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public Builder clearSystemMetadata() { - if (systemMetadataBuilder_ == null) { - systemMetadata_ = null; - onChanged(); - } else { - systemMetadata_ = null; - systemMetadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder getSystemMetadataBuilder() { - - onChanged(); - return getSystemMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder() { - if (systemMetadataBuilder_ != null) { - return systemMetadataBuilder_.getMessageOrBuilder(); - } else { - return systemMetadata_ == null ? - flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; - } - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder> - getSystemMetadataFieldBuilder() { - if (systemMetadataBuilder_ == null) { - systemMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder>( - getSystemMetadata(), - getParentForChildren(), - isClean()); - systemMetadata_ = null; - } - return systemMetadataBuilder_; - } - @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:flyteidl.admin.ExecutionMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionMetadata) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionMetadata(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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NotificationListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NotificationList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - java.util.List - getNotificationsList(); - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - flyteidl.admin.Common.Notification getNotifications(int index); - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - int getNotificationsCount(); - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - java.util.List - getNotificationsOrBuilderList(); - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.admin.NotificationList} - */ - public static final class NotificationList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NotificationList) - NotificationListOrBuilder { - private static final long serialVersionUID = 0L; - // Use NotificationList.newBuilder() to construct. - private NotificationList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NotificationList() { - notifications_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NotificationList( - 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)) { - notifications_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - notifications_.add( - input.readMessage(flyteidl.admin.Common.Notification.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)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); - } - - public static final int NOTIFICATIONS_FIELD_NUMBER = 1; - private java.util.List notifications_; - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List getNotificationsList() { - return notifications_; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List - getNotificationsOrBuilderList() { - return notifications_; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public int getNotificationsCount() { - return notifications_.size(); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - return notifications_.get(index); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - return notifications_.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 < notifications_.size(); i++) { - output.writeMessage(1, notifications_.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 < notifications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, notifications_.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 flyteidl.admin.ExecutionOuterClass.NotificationList)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.NotificationList other = (flyteidl.admin.ExecutionOuterClass.NotificationList) obj; - - if (!getNotificationsList() - .equals(other.getNotificationsList())) 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 (getNotificationsCount() > 0) { - hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getNotificationsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList 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 flyteidl.admin.ExecutionOuterClass.NotificationList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList 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 flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList 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(flyteidl.admin.ExecutionOuterClass.NotificationList 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 flyteidl.admin.NotificationList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NotificationList) - flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNotificationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - notificationsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.NotificationList build() { - flyteidl.admin.ExecutionOuterClass.NotificationList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.NotificationList buildPartial() { - flyteidl.admin.ExecutionOuterClass.NotificationList result = new flyteidl.admin.ExecutionOuterClass.NotificationList(this); - int from_bitField0_ = bitField0_; - if (notificationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.notifications_ = notifications_; - } else { - result.notifications_ = notificationsBuilder_.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 flyteidl.admin.ExecutionOuterClass.NotificationList) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.NotificationList other) { - if (other == flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) return this; - if (notificationsBuilder_ == null) { - if (!other.notifications_.isEmpty()) { - if (notifications_.isEmpty()) { - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNotificationsIsMutable(); - notifications_.addAll(other.notifications_); - } - onChanged(); - } - } else { - if (!other.notifications_.isEmpty()) { - if (notificationsBuilder_.isEmpty()) { - notificationsBuilder_.dispose(); - notificationsBuilder_ = null; - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000001); - notificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNotificationsFieldBuilder() : null; - } else { - notificationsBuilder_.addAllMessages(other.notifications_); - } - } - } - 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 { - flyteidl.admin.ExecutionOuterClass.NotificationList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.NotificationList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List notifications_ = - java.util.Collections.emptyList(); - private void ensureNotificationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - notifications_ = new java.util.ArrayList(notifications_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; - - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List getNotificationsList() { - if (notificationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(notifications_); - } else { - return notificationsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public int getNotificationsCount() { - if (notificationsBuilder_ == null) { - return notifications_.size(); - } else { - return notificationsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); - } else { - return notificationsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.set(index, value); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.set(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addNotifications(flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(value); - onChanged(); - } else { - notificationsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(index, value); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addNotifications( - flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addAllNotifications( - java.lang.Iterable values) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notifications_); - onChanged(); - } else { - notificationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder clearNotifications() { - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - notificationsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder removeNotifications(int index) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.remove(index); - onChanged(); - } else { - notificationsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); } else { - return notificationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List - getNotificationsOrBuilderList() { - if (notificationsBuilder_ != null) { - return notificationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(notifications_); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { - return getNotificationsFieldBuilder().addBuilder( - flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().addBuilder( - index, flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List - getNotificationsBuilderList() { - return getNotificationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> - getNotificationsFieldBuilder() { - if (notificationsBuilder_ == null) { - notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( - notifications_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - notifications_ = null; - } - return notificationsBuilder_; - } - @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:flyteidl.admin.NotificationList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NotificationList) - private static final flyteidl.admin.ExecutionOuterClass.NotificationList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.NotificationList(); - } - - public static flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NotificationList(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 flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - boolean hasLaunchPlan(); - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan(); - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder(); - - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasInputs(); - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getInputs(); - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); - - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - boolean hasMetadata(); - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata(); - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - boolean hasNotifications(); - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications(); - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder(); - - /** - *
-     * This should be set to true if all notifications are intended to be disabled for this execution.
-     * 
- * - * bool disable_all = 6; - */ - boolean getDisableAll(); - - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - boolean hasLabels(); - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - flyteidl.admin.Common.Labels getLabels(); - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); - - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - boolean hasAnnotations(); - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - flyteidl.admin.Common.Annotations getAnnotations(); - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); - - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - boolean hasAuthRole(); - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - flyteidl.admin.Common.AuthRole getAuthRole(); - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder(); - - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - boolean hasQualityOfService(); - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - flyteidl.core.Execution.QualityOfService getQualityOfService(); - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); - - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.NotificationOverridesCase getNotificationOverridesCase(); - } - /** - *
-   * An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
-   * of an execution as it progresses across phase changes..
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionSpec} - */ - public static final class ExecutionSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionSpec) - ExecutionSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionSpec.newBuilder() to construct. - private ExecutionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionSpec() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionSpec( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (launchPlan_ != null) { - subBuilder = launchPlan_.toBuilder(); - } - launchPlan_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(launchPlan_); - launchPlan_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.admin.ExecutionOuterClass.NotificationList.Builder subBuilder = null; - if (notificationOverridesCase_ == 5) { - subBuilder = ((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_).toBuilder(); - } - notificationOverrides_ = - input.readMessage(flyteidl.admin.ExecutionOuterClass.NotificationList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); - notificationOverrides_ = subBuilder.buildPartial(); - } - notificationOverridesCase_ = 5; - break; - } - case 48: { - notificationOverridesCase_ = 6; - notificationOverrides_ = input.readBool(); - break; - } - case 58: { - flyteidl.admin.Common.Labels.Builder subBuilder = null; - if (labels_ != null) { - subBuilder = labels_.toBuilder(); - } - labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(labels_); - labels_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - flyteidl.admin.Common.Annotations.Builder subBuilder = null; - if (annotations_ != null) { - subBuilder = annotations_.toBuilder(); - } - annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotations_); - annotations_ = subBuilder.buildPartial(); - } - - break; - } - case 130: { - flyteidl.admin.Common.AuthRole.Builder subBuilder = null; - if (authRole_ != null) { - subBuilder = authRole_.toBuilder(); - } - authRole_ = input.readMessage(flyteidl.admin.Common.AuthRole.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authRole_); - authRole_ = subBuilder.buildPartial(); - } - - break; - } - case 138: { - flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; - if (qualityOfService_ != null) { - subBuilder = qualityOfService_.toBuilder(); - } - qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qualityOfService_); - qualityOfService_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); - } - - private int notificationOverridesCase_ = 0; - private java.lang.Object notificationOverrides_; - public enum NotificationOverridesCase - implements com.google.protobuf.Internal.EnumLite { - NOTIFICATIONS(5), - DISABLE_ALL(6), - NOTIFICATIONOVERRIDES_NOT_SET(0); - private final int value; - private NotificationOverridesCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NotificationOverridesCase valueOf(int value) { - return forNumber(value); - } - - public static NotificationOverridesCase forNumber(int value) { - switch (value) { - case 5: return NOTIFICATIONS; - case 6: return DISABLE_ALL; - case 0: return NOTIFICATIONOVERRIDES_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public NotificationOverridesCase - getNotificationOverridesCase() { - return NotificationOverridesCase.forNumber( - notificationOverridesCase_); - } - - public static final int LAUNCH_PLAN_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_; - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public boolean hasLaunchPlan() { - return launchPlan_ != null; - } - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { - return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; - } - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { - return getLaunchPlan(); - } - - public static final int INPUTS_FIELD_NUMBER = 2; - private flyteidl.core.Literals.LiteralMap inputs_; - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getInputs() { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { - return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int NOTIFICATIONS_FIELD_NUMBER = 5; - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public boolean hasNotifications() { - return notificationOverridesCase_ == 5; - } - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { - if (notificationOverridesCase_ == 5) { - return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { - if (notificationOverridesCase_ == 5) { - return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - - public static final int DISABLE_ALL_FIELD_NUMBER = 6; - /** - *
-     * This should be set to true if all notifications are intended to be disabled for this execution.
-     * 
- * - * bool disable_all = 6; - */ - public boolean getDisableAll() { - if (notificationOverridesCase_ == 6) { - return (java.lang.Boolean) notificationOverrides_; - } - return false; - } - - public static final int LABELS_FIELD_NUMBER = 7; - private flyteidl.admin.Common.Labels labels_; - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public boolean hasLabels() { - return labels_ != null; - } - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.Labels getLabels() { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - return getLabels(); - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 8; - private flyteidl.admin.Common.Annotations annotations_; - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public boolean hasAnnotations() { - return annotations_ != null; - } - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - return getAnnotations(); - } - - public static final int AUTH_ROLE_FIELD_NUMBER = 16; - private flyteidl.admin.Common.AuthRole authRole_; - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public boolean hasAuthRole() { - return authRole_ != null; - } - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public flyteidl.admin.Common.AuthRole getAuthRole() { - return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { - return getAuthRole(); - } - - public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 17; - private flyteidl.core.Execution.QualityOfService qualityOfService_; - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public boolean hasQualityOfService() { - return qualityOfService_ != null; - } - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - return getQualityOfService(); - } - - 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 (launchPlan_ != null) { - output.writeMessage(1, getLaunchPlan()); - } - if (inputs_ != null) { - output.writeMessage(2, getInputs()); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - if (notificationOverridesCase_ == 5) { - output.writeMessage(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); - } - if (notificationOverridesCase_ == 6) { - output.writeBool( - 6, (boolean)((java.lang.Boolean) notificationOverrides_)); - } - if (labels_ != null) { - output.writeMessage(7, getLabels()); - } - if (annotations_ != null) { - output.writeMessage(8, getAnnotations()); - } - if (authRole_ != null) { - output.writeMessage(16, getAuthRole()); - } - if (qualityOfService_ != null) { - output.writeMessage(17, getQualityOfService()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (launchPlan_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLaunchPlan()); - } - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInputs()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - if (notificationOverridesCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); - } - if (notificationOverridesCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 6, (boolean)((java.lang.Boolean) notificationOverrides_)); - } - if (labels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getLabels()); - } - if (annotations_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getAnnotations()); - } - if (authRole_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getAuthRole()); - } - if (qualityOfService_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getQualityOfService()); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionSpec other = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) obj; - - if (hasLaunchPlan() != other.hasLaunchPlan()) return false; - if (hasLaunchPlan()) { - if (!getLaunchPlan() - .equals(other.getLaunchPlan())) return false; - } - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (hasLabels() != other.hasLabels()) return false; - if (hasLabels()) { - if (!getLabels() - .equals(other.getLabels())) return false; - } - if (hasAnnotations() != other.hasAnnotations()) return false; - if (hasAnnotations()) { - if (!getAnnotations() - .equals(other.getAnnotations())) return false; - } - if (hasAuthRole() != other.hasAuthRole()) return false; - if (hasAuthRole()) { - if (!getAuthRole() - .equals(other.getAuthRole())) return false; - } - if (hasQualityOfService() != other.hasQualityOfService()) return false; - if (hasQualityOfService()) { - if (!getQualityOfService() - .equals(other.getQualityOfService())) return false; - } - if (!getNotificationOverridesCase().equals(other.getNotificationOverridesCase())) return false; - switch (notificationOverridesCase_) { - case 5: - if (!getNotifications() - .equals(other.getNotifications())) return false; - break; - case 6: - if (getDisableAll() - != other.getDisableAll()) 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(); - if (hasLaunchPlan()) { - hash = (37 * hash) + LAUNCH_PLAN_FIELD_NUMBER; - hash = (53 * hash) + getLaunchPlan().hashCode(); - } - if (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasLabels()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + getLabels().hashCode(); - } - if (hasAnnotations()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + getAnnotations().hashCode(); - } - if (hasAuthRole()) { - hash = (37 * hash) + AUTH_ROLE_FIELD_NUMBER; - hash = (53 * hash) + getAuthRole().hashCode(); - } - if (hasQualityOfService()) { - hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getQualityOfService().hashCode(); - } - switch (notificationOverridesCase_) { - case 5: - hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getNotifications().hashCode(); - break; - case 6: - hash = (37 * hash) + DISABLE_ALL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableAll()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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(flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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 ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
-     * of an execution as it progresses across phase changes..
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionSpec) - flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionSpec.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 (launchPlanBuilder_ == null) { - launchPlan_ = null; - } else { - launchPlan_ = null; - launchPlanBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (labelsBuilder_ == null) { - labels_ = null; - } else { - labels_ = null; - labelsBuilder_ = null; - } - if (annotationsBuilder_ == null) { - annotations_ = null; - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - if (authRoleBuilder_ == null) { - authRole_ = null; - } else { - authRole_ = null; - authRoleBuilder_ = null; - } - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec build() { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(this); - if (launchPlanBuilder_ == null) { - result.launchPlan_ = launchPlan_; - } else { - result.launchPlan_ = launchPlanBuilder_.build(); - } - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (notificationOverridesCase_ == 5) { - if (notificationsBuilder_ == null) { - result.notificationOverrides_ = notificationOverrides_; - } else { - result.notificationOverrides_ = notificationsBuilder_.build(); - } - } - if (notificationOverridesCase_ == 6) { - result.notificationOverrides_ = notificationOverrides_; - } - if (labelsBuilder_ == null) { - result.labels_ = labels_; - } else { - result.labels_ = labelsBuilder_.build(); - } - if (annotationsBuilder_ == null) { - result.annotations_ = annotations_; - } else { - result.annotations_ = annotationsBuilder_.build(); - } - if (authRoleBuilder_ == null) { - result.authRole_ = authRole_; - } else { - result.authRole_ = authRoleBuilder_.build(); - } - if (qualityOfServiceBuilder_ == null) { - result.qualityOfService_ = qualityOfService_; - } else { - result.qualityOfService_ = qualityOfServiceBuilder_.build(); - } - result.notificationOverridesCase_ = notificationOverridesCase_; - 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionSpec other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance()) return this; - if (other.hasLaunchPlan()) { - mergeLaunchPlan(other.getLaunchPlan()); - } - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasLabels()) { - mergeLabels(other.getLabels()); - } - if (other.hasAnnotations()) { - mergeAnnotations(other.getAnnotations()); - } - if (other.hasAuthRole()) { - mergeAuthRole(other.getAuthRole()); - } - if (other.hasQualityOfService()) { - mergeQualityOfService(other.getQualityOfService()); - } - switch (other.getNotificationOverridesCase()) { - case NOTIFICATIONS: { - mergeNotifications(other.getNotifications()); - break; - } - case DISABLE_ALL: { - setDisableAll(other.getDisableAll()); - break; - } - case NOTIFICATIONOVERRIDES_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 { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int notificationOverridesCase_ = 0; - private java.lang.Object notificationOverrides_; - public NotificationOverridesCase - getNotificationOverridesCase() { - return NotificationOverridesCase.forNumber( - notificationOverridesCase_); - } - - public Builder clearNotificationOverrides() { - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanBuilder_; - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public boolean hasLaunchPlan() { - return launchPlanBuilder_ != null || launchPlan_ != null; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { - if (launchPlanBuilder_ == null) { - return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; - } else { - return launchPlanBuilder_.getMessage(); - } - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public Builder setLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - launchPlan_ = value; - onChanged(); - } else { - launchPlanBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public Builder setLaunchPlan( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (launchPlanBuilder_ == null) { - launchPlan_ = builderForValue.build(); - onChanged(); - } else { - launchPlanBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public Builder mergeLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanBuilder_ == null) { - if (launchPlan_ != null) { - launchPlan_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(launchPlan_).mergeFrom(value).buildPartial(); - } else { - launchPlan_ = value; - } - onChanged(); - } else { - launchPlanBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public Builder clearLaunchPlan() { - if (launchPlanBuilder_ == null) { - launchPlan_ = null; - onChanged(); - } else { - launchPlan_ = null; - launchPlanBuilder_ = null; - } - - return this; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanBuilder() { - - onChanged(); - return getLaunchPlanFieldBuilder().getBuilder(); - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { - if (launchPlanBuilder_ != null) { - return launchPlanBuilder_.getMessageOrBuilder(); - } else { - return launchPlan_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; - } - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getLaunchPlanFieldBuilder() { - if (launchPlanBuilder_ == null) { - launchPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getLaunchPlan(), - getParentForChildren(), - isClean()); - launchPlan_ = null; - } - return launchPlanBuilder_; - } - - private flyteidl.core.Literals.LiteralMap inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder setMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder setMetadata( - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder mergeMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> notificationsBuilder_; - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public boolean hasNotifications() { - return notificationOverridesCase_ == 5; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { - if (notificationsBuilder_ == null) { - if (notificationOverridesCase_ == 5) { - return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } else { - if (notificationOverridesCase_ == 5) { - return notificationsBuilder_.getMessage(); - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public Builder setNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - notificationOverrides_ = value; - onChanged(); - } else { - notificationsBuilder_.setMessage(value); - } - notificationOverridesCase_ = 5; - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public Builder setNotifications( - flyteidl.admin.ExecutionOuterClass.NotificationList.Builder builderForValue) { - if (notificationsBuilder_ == null) { - notificationOverrides_ = builderForValue.build(); - onChanged(); - } else { - notificationsBuilder_.setMessage(builderForValue.build()); - } - notificationOverridesCase_ = 5; - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public Builder mergeNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { - if (notificationsBuilder_ == null) { - if (notificationOverridesCase_ == 5 && - notificationOverrides_ != flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) { - notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_) - .mergeFrom(value).buildPartial(); - } else { - notificationOverrides_ = value; - } - onChanged(); - } else { - if (notificationOverridesCase_ == 5) { - notificationsBuilder_.mergeFrom(value); - } - notificationsBuilder_.setMessage(value); - } - notificationOverridesCase_ = 5; - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public Builder clearNotifications() { - if (notificationsBuilder_ == null) { - if (notificationOverridesCase_ == 5) { - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - onChanged(); - } - } else { - if (notificationOverridesCase_ == 5) { - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - } - notificationsBuilder_.clear(); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationList.Builder getNotificationsBuilder() { - return getNotificationsFieldBuilder().getBuilder(); - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { - if ((notificationOverridesCase_ == 5) && (notificationsBuilder_ != null)) { - return notificationsBuilder_.getMessageOrBuilder(); - } else { - if (notificationOverridesCase_ == 5) { - return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> - getNotificationsFieldBuilder() { - if (notificationsBuilder_ == null) { - if (!(notificationOverridesCase_ == 5)) { - notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - notificationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder>( - (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_, - getParentForChildren(), - isClean()); - notificationOverrides_ = null; - } - notificationOverridesCase_ = 5; - onChanged();; - return notificationsBuilder_; - } - - /** - *
-       * This should be set to true if all notifications are intended to be disabled for this execution.
-       * 
- * - * bool disable_all = 6; - */ - public boolean getDisableAll() { - if (notificationOverridesCase_ == 6) { - return (java.lang.Boolean) notificationOverrides_; - } - return false; - } - /** - *
-       * This should be set to true if all notifications are intended to be disabled for this execution.
-       * 
- * - * bool disable_all = 6; - */ - public Builder setDisableAll(boolean value) { - notificationOverridesCase_ = 6; - notificationOverrides_ = value; - onChanged(); - return this; - } - /** - *
-       * This should be set to true if all notifications are intended to be disabled for this execution.
-       * 
- * - * bool disable_all = 6; - */ - public Builder clearDisableAll() { - if (notificationOverridesCase_ == 6) { - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - onChanged(); - } - return this; - } - - private flyteidl.admin.Common.Labels labels_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public boolean hasLabels() { - return labelsBuilder_ != null || labels_ != null; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.Labels getLabels() { - if (labelsBuilder_ == null) { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } else { - return labelsBuilder_.getMessage(); - } - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public Builder setLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - labels_ = value; - onChanged(); - } else { - labelsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public Builder setLabels( - flyteidl.admin.Common.Labels.Builder builderForValue) { - if (labelsBuilder_ == null) { - labels_ = builderForValue.build(); - onChanged(); - } else { - labelsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public Builder mergeLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (labels_ != null) { - labels_ = - flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); - } else { - labels_ = value; - } - onChanged(); - } else { - labelsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public Builder clearLabels() { - if (labelsBuilder_ == null) { - labels_ = null; - onChanged(); - } else { - labels_ = null; - labelsBuilder_ = null; - } - - return this; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { - - onChanged(); - return getLabelsFieldBuilder().getBuilder(); - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - if (labelsBuilder_ != null) { - return labelsBuilder_.getMessageOrBuilder(); - } else { - return labels_ == null ? - flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> - getLabelsFieldBuilder() { - if (labelsBuilder_ == null) { - labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( - getLabels(), - getParentForChildren(), - isClean()); - labels_ = null; - } - return labelsBuilder_; - } - - private flyteidl.admin.Common.Annotations annotations_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public boolean hasAnnotations() { - return annotationsBuilder_ != null || annotations_ != null; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - if (annotationsBuilder_ == null) { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } else { - return annotationsBuilder_.getMessage(); - } - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - annotations_ = value; - onChanged(); - } else { - annotationsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public Builder setAnnotations( - flyteidl.admin.Common.Annotations.Builder builderForValue) { - if (annotationsBuilder_ == null) { - annotations_ = builderForValue.build(); - onChanged(); - } else { - annotationsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (annotations_ != null) { - annotations_ = - flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); - } else { - annotations_ = value; - } - onChanged(); - } else { - annotationsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public Builder clearAnnotations() { - if (annotationsBuilder_ == null) { - annotations_ = null; - onChanged(); - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - - return this; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { - - onChanged(); - return getAnnotationsFieldBuilder().getBuilder(); - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - if (annotationsBuilder_ != null) { - return annotationsBuilder_.getMessageOrBuilder(); - } else { - return annotations_ == null ? - flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> - getAnnotationsFieldBuilder() { - if (annotationsBuilder_ == null) { - annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( - getAnnotations(), - getParentForChildren(), - isClean()); - annotations_ = null; - } - return annotationsBuilder_; - } - - private flyteidl.admin.Common.AuthRole authRole_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> authRoleBuilder_; - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public boolean hasAuthRole() { - return authRoleBuilder_ != null || authRole_ != null; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public flyteidl.admin.Common.AuthRole getAuthRole() { - if (authRoleBuilder_ == null) { - return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } else { - return authRoleBuilder_.getMessage(); - } - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public Builder setAuthRole(flyteidl.admin.Common.AuthRole value) { - if (authRoleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authRole_ = value; - onChanged(); - } else { - authRoleBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public Builder setAuthRole( - flyteidl.admin.Common.AuthRole.Builder builderForValue) { - if (authRoleBuilder_ == null) { - authRole_ = builderForValue.build(); - onChanged(); - } else { - authRoleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public Builder mergeAuthRole(flyteidl.admin.Common.AuthRole value) { - if (authRoleBuilder_ == null) { - if (authRole_ != null) { - authRole_ = - flyteidl.admin.Common.AuthRole.newBuilder(authRole_).mergeFrom(value).buildPartial(); - } else { - authRole_ = value; - } - onChanged(); - } else { - authRoleBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public Builder clearAuthRole() { - if (authRoleBuilder_ == null) { - authRole_ = null; - onChanged(); - } else { - authRole_ = null; - authRoleBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public flyteidl.admin.Common.AuthRole.Builder getAuthRoleBuilder() { - - onChanged(); - return getAuthRoleFieldBuilder().getBuilder(); - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { - if (authRoleBuilder_ != null) { - return authRoleBuilder_.getMessageOrBuilder(); - } else { - return authRole_ == null ? - flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> - getAuthRoleFieldBuilder() { - if (authRoleBuilder_ == null) { - authRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder>( - getAuthRole(), - getParentForChildren(), - isClean()); - authRole_ = null; - } - return authRoleBuilder_; - } - - private flyteidl.core.Execution.QualityOfService qualityOfService_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public boolean hasQualityOfService() { - return qualityOfServiceBuilder_ != null || qualityOfService_ != null; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } else { - return qualityOfServiceBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qualityOfService_ = value; - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public Builder setQualityOfService( - flyteidl.core.Execution.QualityOfService.Builder builderForValue) { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = builderForValue.build(); - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (qualityOfService_ != null) { - qualityOfService_ = - flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); - } else { - qualityOfService_ = value; - } - onChanged(); - } else { - qualityOfServiceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public Builder clearQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - onChanged(); - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { - - onChanged(); - return getQualityOfServiceFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if (qualityOfServiceBuilder_ != null) { - return qualityOfServiceBuilder_.getMessageOrBuilder(); - } else { - return qualityOfService_ == null ? - flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> - getQualityOfServiceFieldBuilder() { - if (qualityOfServiceBuilder_ == null) { - qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( - getQualityOfService(), - getParentForChildren(), - isClean()); - qualityOfService_ = null; - } - return qualityOfServiceBuilder_; - } - @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:flyteidl.admin.ExecutionSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionSpec) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionSpec(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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionTerminateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated. 
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated. 
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated. 
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Optional reason for aborting.
-     * 
- * - * string cause = 2; - */ - java.lang.String getCause(); - /** - *
-     * Optional reason for aborting.
-     * 
- * - * string cause = 2; - */ - com.google.protobuf.ByteString - getCauseBytes(); - } - /** - *
-   * Request to terminate an in-progress execution.  This action is irreversible.
-   * If an execution is already terminated, this request will simply be a no-op.
-   * This request will fail if it references a non-existent execution.
-   * If the request succeeds the phase "ABORTED" will be recorded for the termination
-   * with the optional cause added to the output_result.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} - */ - public static final class ExecutionTerminateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateRequest) - ExecutionTerminateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionTerminateRequest.newBuilder() to construct. - private ExecutionTerminateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionTerminateRequest() { - cause_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionTerminateRequest( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - cause_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated. 
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated. 
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated. 
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int CAUSE_FIELD_NUMBER = 2; - private volatile java.lang.Object cause_; - /** - *
-     * Optional reason for aborting.
-     * 
- * - * string cause = 2; - */ - public java.lang.String getCause() { - java.lang.Object ref = cause_; - 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(); - cause_ = s; - return s; - } - } - /** - *
-     * Optional reason for aborting.
-     * 
- * - * string cause = 2; - */ - public com.google.protobuf.ByteString - getCauseBytes() { - java.lang.Object ref = cause_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cause_ = 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 (id_ != null) { - output.writeMessage(1, getId()); - } - if (!getCauseBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cause_); - } - 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 (!getCauseBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cause_); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getCause() - .equals(other.getCause())) 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) + CAUSE_FIELD_NUMBER; - hash = (53 * hash) + getCause().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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; - } - /** - *
-     * Request to terminate an in-progress execution.  This action is irreversible.
-     * If an execution is already terminated, this request will simply be a no-op.
-     * This request will fail if it references a non-existent execution.
-     * If the request succeeds the phase "ABORTED" will be recorded for the termination
-     * with the optional cause added to the output_result.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateRequest) - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - cause_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest build() { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.cause_ = cause_; - 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getCause().isEmpty()) { - cause_ = other.cause_; - 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 { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object cause_ = ""; - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public java.lang.String getCause() { - java.lang.Object ref = cause_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cause_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public com.google.protobuf.ByteString - getCauseBytes() { - java.lang.Object ref = cause_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cause_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public Builder setCause( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cause_ = value; - onChanged(); - return this; - } - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public Builder clearCause() { - - cause_ = getDefaultInstance().getCause(); - onChanged(); - return this; - } - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public Builder setCauseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cause_ = 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:flyteidl.admin.ExecutionTerminateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateRequest) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionTerminateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionTerminateRequest(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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionTerminateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} - */ - public static final class ExecutionTerminateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateResponse) - ExecutionTerminateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionTerminateResponse.newBuilder() to construct. - private ExecutionTerminateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionTerminateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionTerminateResponse( - 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; - 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateResponse) - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse build() { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(this); - 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.ExecutionTerminateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateResponse) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionTerminateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionTerminateResponse(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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionGetDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Request structure to fetch inputs and output urls for an execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} - */ - public static final class WorkflowExecutionGetDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) - WorkflowExecutionGetDataRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionGetDataRequest.newBuilder() to construct. - private WorkflowExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionGetDataRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionGetDataRequest( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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; - } - /** - *
-     * Request structure to fetch inputs and output urls for an execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest build() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.WorkflowExecutionGetDataRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataRequest) - private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionGetDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionGetDataRequest(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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionGetDataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - boolean hasOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - flyteidl.admin.Common.UrlBlob getOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); - - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - boolean hasInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - flyteidl.admin.Common.UrlBlob getInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); - } - /** - *
-   * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} - */ - public static final class WorkflowExecutionGetDataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) - WorkflowExecutionGetDataResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionGetDataResponse.newBuilder() to construct. - private WorkflowExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionGetDataResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionGetDataResponse( - 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: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); - } - - public static final int OUTPUTS_FIELD_NUMBER = 1; - private flyteidl.admin.Common.UrlBlob outputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public boolean hasOutputs() { - return outputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public flyteidl.admin.Common.UrlBlob getOutputs() { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - public static final int INPUTS_FIELD_NUMBER = 2; - private flyteidl.admin.Common.UrlBlob inputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public flyteidl.admin.Common.UrlBlob getInputs() { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - 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 (outputs_ != null) { - output.writeMessage(1, getOutputs()); - } - if (inputs_ != null) { - output.writeMessage(2, getInputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOutputs()); - } - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInputs()); - } - 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) obj; - - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) return false; - } - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) 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 (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - if (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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; - } - /** - *
-     * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.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 (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse build() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse buildPartial() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(this); - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other) { - if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance()) return this; - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.UrlBlob outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public flyteidl.admin.Common.UrlBlob getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public Builder setOutputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - - private flyteidl.admin.Common.UrlBlob inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public flyteidl.admin.Common.UrlBlob getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public Builder setInputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - @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:flyteidl.admin.WorkflowExecutionGetDataResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataResponse) - private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(); - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionGetDataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionGetDataResponse(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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Execution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Execution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LiteralMapBlob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_AbortMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_SystemMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NotificationList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NotificationList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_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\036flyteidl/admin/execution.proto\022\016flytei" + - "dl.admin\032\033flyteidl/admin/common.proto\032\034f" + - "lyteidl/core/literals.proto\032\035flyteidl/co" + - "re/execution.proto\032\036flyteidl/core/identi" + - "fier.proto\032\036google/protobuf/duration.pro" + - "to\032\037google/protobuf/timestamp.proto\"\237\001\n\026" + - "ExecutionCreateRequest\022\017\n\007project\030\001 \001(\t\022" + - "\016\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022+\n\004spec\030\004 " + - "\001(\0132\035.flyteidl.admin.ExecutionSpec\022)\n\006in" + - "puts\030\005 \001(\0132\031.flyteidl.core.LiteralMap\"`\n" + - "\030ExecutionRelaunchRequest\0226\n\002id\030\001 \001(\0132*." + - "flyteidl.core.WorkflowExecutionIdentifie" + - "r\022\014\n\004name\030\003 \001(\t\"Q\n\027ExecutionCreateRespon" + - "se\0226\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowE" + - "xecutionIdentifier\"U\n\033WorkflowExecutionG" + - "etRequest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.Wo" + - "rkflowExecutionIdentifier\"\243\001\n\tExecution\022" + - "6\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExec" + - "utionIdentifier\022+\n\004spec\030\002 \001(\0132\035.flyteidl" + - ".admin.ExecutionSpec\0221\n\007closure\030\003 \001(\0132 ." + - "flyteidl.admin.ExecutionClosure\"M\n\rExecu" + - "tionList\022-\n\nexecutions\030\001 \003(\0132\031.flyteidl." + - "admin.Execution\022\r\n\005token\030\002 \001(\t\"T\n\016Litera" + - "lMapBlob\022+\n\006values\030\001 \001(\0132\031.flyteidl.core" + - ".LiteralMapH\000\022\r\n\003uri\030\002 \001(\tH\000B\006\n\004data\"1\n\r" + - "AbortMetadata\022\r\n\005cause\030\001 \001(\t\022\021\n\tprincipa" + - "l\030\002 \001(\t\"\353\004\n\020ExecutionClosure\0221\n\007outputs\030" + - "\001 \001(\0132\036.flyteidl.admin.LiteralMapBlobH\000\022" + - ".\n\005error\030\002 \001(\0132\035.flyteidl.core.Execution" + - "ErrorH\000\022\031\n\013abort_cause\030\n \001(\tB\002\030\001H\000\0227\n\016ab" + - "ort_metadata\030\014 \001(\0132\035.flyteidl.admin.Abor" + - "tMetadataH\000\0226\n\017computed_inputs\030\003 \001(\0132\031.f" + - "lyteidl.core.LiteralMapB\002\030\001\0225\n\005phase\030\004 \001" + - "(\0162&.flyteidl.core.WorkflowExecution.Pha" + - "se\022.\n\nstarted_at\030\005 \001(\0132\032.google.protobuf" + - ".Timestamp\022+\n\010duration\030\006 \001(\0132\031.google.pr" + - "otobuf.Duration\022.\n\ncreated_at\030\007 \001(\0132\032.go" + - "ogle.protobuf.Timestamp\022.\n\nupdated_at\030\010 " + - "\001(\0132\032.google.protobuf.Timestamp\0223\n\rnotif" + - "ications\030\t \003(\0132\034.flyteidl.admin.Notifica" + - "tion\022.\n\013workflow_id\030\013 \001(\0132\031.flyteidl.cor" + - "e.IdentifierB\017\n\routput_result\"+\n\016SystemM" + - "etadata\022\031\n\021execution_cluster\030\001 \001(\t\"\313\003\n\021E" + - "xecutionMetadata\022=\n\004mode\030\001 \001(\0162/.flyteid" + - "l.admin.ExecutionMetadata.ExecutionMode\022" + - "\021\n\tprincipal\030\002 \001(\t\022\017\n\007nesting\030\003 \001(\r\0220\n\014s" + - "cheduled_at\030\004 \001(\0132\032.google.protobuf.Time" + - "stamp\022E\n\025parent_node_execution\030\005 \001(\0132&.f" + - "lyteidl.core.NodeExecutionIdentifier\022G\n\023" + - "reference_execution\030\020 \001(\0132*.flyteidl.cor" + - "e.WorkflowExecutionIdentifier\0227\n\017system_" + - "metadata\030\021 \001(\0132\036.flyteidl.admin.SystemMe" + - "tadata\"X\n\rExecutionMode\022\n\n\006MANUAL\020\000\022\r\n\tS" + - "CHEDULED\020\001\022\n\n\006SYSTEM\020\002\022\014\n\010RELAUNCH\020\003\022\022\n\016" + - "CHILD_WORKFLOW\020\004\"G\n\020NotificationList\0223\n\r" + - "notifications\030\001 \003(\0132\034.flyteidl.admin.Not" + - "ification\"\331\003\n\rExecutionSpec\022.\n\013launch_pl" + - "an\030\001 \001(\0132\031.flyteidl.core.Identifier\022-\n\006i" + - "nputs\030\002 \001(\0132\031.flyteidl.core.LiteralMapB\002" + - "\030\001\0223\n\010metadata\030\003 \001(\0132!.flyteidl.admin.Ex" + - "ecutionMetadata\0229\n\rnotifications\030\005 \001(\0132 " + - ".flyteidl.admin.NotificationListH\000\022\025\n\013di" + - "sable_all\030\006 \001(\010H\000\022&\n\006labels\030\007 \001(\0132\026.flyt" + - "eidl.admin.Labels\0220\n\013annotations\030\010 \001(\0132\033" + - ".flyteidl.admin.Annotations\022+\n\tauth_role" + - "\030\020 \001(\0132\030.flyteidl.admin.AuthRole\022;\n\022qual" + - "ity_of_service\030\021 \001(\0132\037.flyteidl.core.Qua" + - "lityOfServiceB\030\n\026notification_overridesJ" + - "\004\010\004\020\005\"b\n\031ExecutionTerminateRequest\0226\n\002id" + - "\030\001 \001(\0132*.flyteidl.core.WorkflowExecution" + - "Identifier\022\r\n\005cause\030\002 \001(\t\"\034\n\032ExecutionTe" + - "rminateResponse\"Y\n\037WorkflowExecutionGetD" + - "ataRequest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.W" + - "orkflowExecutionIdentifier\"u\n WorkflowEx" + - "ecutionGetDataResponse\022(\n\007outputs\030\001 \001(\0132" + - "\027.flyteidl.admin.UrlBlob\022\'\n\006inputs\030\002 \001(\013" + - "2\027.flyteidl.admin.UrlBlobB3Z1github.com/" + - "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + - "proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.Common.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Name", "Spec", "Inputs", }); - internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor, - new java.lang.String[] { "Id", "Name", }); - internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_Execution_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_Execution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Execution_descriptor, - new java.lang.String[] { "Id", "Spec", "Closure", }); - internal_static_flyteidl_admin_ExecutionList_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionList_descriptor, - new java.lang.String[] { "Executions", "Token", }); - internal_static_flyteidl_admin_LiteralMapBlob_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LiteralMapBlob_descriptor, - new java.lang.String[] { "Values", "Uri", "Data", }); - internal_static_flyteidl_admin_AbortMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_AbortMetadata_descriptor, - new java.lang.String[] { "Cause", "Principal", }); - internal_static_flyteidl_admin_ExecutionClosure_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionClosure_descriptor, - new java.lang.String[] { "Outputs", "Error", "AbortCause", "AbortMetadata", "ComputedInputs", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "Notifications", "WorkflowId", "OutputResult", }); - internal_static_flyteidl_admin_SystemMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_SystemMetadata_descriptor, - new java.lang.String[] { "ExecutionCluster", }); - internal_static_flyteidl_admin_ExecutionMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionMetadata_descriptor, - new java.lang.String[] { "Mode", "Principal", "Nesting", "ScheduledAt", "ParentNodeExecution", "ReferenceExecution", "SystemMetadata", }); - internal_static_flyteidl_admin_NotificationList_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_admin_NotificationList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NotificationList_descriptor, - new java.lang.String[] { "Notifications", }); - internal_static_flyteidl_admin_ExecutionSpec_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionSpec_descriptor, - new java.lang.String[] { "LaunchPlan", "Inputs", "Metadata", "Notifications", "DisableAll", "Labels", "Annotations", "AuthRole", "QualityOfService", "NotificationOverrides", }); - internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor, - new java.lang.String[] { "Id", "Cause", }); - internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor, - new java.lang.String[] { "Outputs", "Inputs", }); - flyteidl.admin.Common.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java b/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java deleted file mode 100644 index 65080c0fe..000000000 --- a/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java +++ /dev/null @@ -1,13189 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/launch_plan.proto - -package flyteidl.admin; - -public final class LaunchPlanOuterClass { - private LaunchPlanOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * By default any launch plan regardless of state can be used to launch a workflow execution.
-   * However, at most one version of a launch plan
-   * (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be
-   * active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier
-   * group will be observed and trigger executions at a defined cadence.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.LaunchPlanState} - */ - public enum LaunchPlanState - implements com.google.protobuf.ProtocolMessageEnum { - /** - * INACTIVE = 0; - */ - INACTIVE(0), - /** - * ACTIVE = 1; - */ - ACTIVE(1), - UNRECOGNIZED(-1), - ; - - /** - * INACTIVE = 0; - */ - public static final int INACTIVE_VALUE = 0; - /** - * ACTIVE = 1; - */ - public static final int ACTIVE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LaunchPlanState valueOf(int value) { - return forNumber(value); - } - - public static LaunchPlanState forNumber(int value) { - switch (value) { - case 0: return INACTIVE; - case 1: return ACTIVE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LaunchPlanState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LaunchPlanState findValueByNumber(int number) { - return LaunchPlanState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.admin.LaunchPlanOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final LaunchPlanState[] VALUES = values(); - - public static LaunchPlanState 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 LaunchPlanState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.LaunchPlanState) - } - - public interface LaunchPlanCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - boolean hasSpec(); - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); - } - /** - *
-   * Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required
-   * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
-   * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} - */ - public static final class LaunchPlanCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateRequest) - LaunchPlanCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanCreateRequest.newBuilder() to construct. - private LaunchPlanCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanCreateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanCreateRequest( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { - return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - 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 (spec_ != null) { - output.writeMessage(2, getSpec()); - } - 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 (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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; - } - /** - *
-     * Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required
-     * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
-     * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateRequest) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - @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:flyteidl.admin.LaunchPlanCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateRequest) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanCreateRequest(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanCreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} - */ - public static final class LaunchPlanCreateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateResponse) - LaunchPlanCreateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanCreateResponse.newBuilder() to construct. - private LaunchPlanCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanCreateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanCreateResponse( - 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; - 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateResponse) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(this); - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.LaunchPlanCreateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateResponse) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanCreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanCreateResponse(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlan) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - boolean hasSpec(); - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); - - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - boolean hasClosure(); - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure(); - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder(); - } - /** - *
-   * A LaunchPlan provides the capability to templatize workflow executions.
-   * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
-   * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
-   * definition doesn't necessarily have a default value for said input.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlan} - */ - public static final class LaunchPlan extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlan) - LaunchPlanOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlan.newBuilder() to construct. - private LaunchPlan(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlan() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlan( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { - return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - public static final int CLOSURE_FIELD_NUMBER = 3; - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_; - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { - return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - 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 (spec_ != null) { - output.writeMessage(2, getSpec()); - } - if (closure_ != null) { - output.writeMessage(3, getClosure()); - } - 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 (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClosure()); - } - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; - } - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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 LaunchPlan provides the capability to templatize workflow executions.
-     * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
-     * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
-     * definition doesn't necessarily have a default value for said input.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlan} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlan) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.build(); - } - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlan)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> closureBuilder_; - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public Builder setClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public Builder setClosure( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public Builder mergeClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; - } - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - @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:flyteidl.admin.LaunchPlan) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlan) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlan DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlan parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlan(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - java.util.List - getLaunchPlansList(); - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index); - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - int getLaunchPlansCount(); - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - java.util.List - getLaunchPlansOrBuilderList(); - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Response object for list launch plan requests.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanList} - */ - public static final class LaunchPlanList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanList) - LaunchPlanListOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanList.newBuilder() to construct. - private LaunchPlanList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanList() { - launchPlans_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanList( - 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)) { - launchPlans_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - launchPlans_.add( - input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); - } - - private int bitField0_; - public static final int LAUNCH_PLANS_FIELD_NUMBER = 1; - private java.util.List launchPlans_; - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List getLaunchPlansList() { - return launchPlans_; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List - getLaunchPlansOrBuilderList() { - return launchPlans_; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public int getLaunchPlansCount() { - return launchPlans_.size(); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { - return launchPlans_.get(index); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( - int index) { - return launchPlans_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < launchPlans_.size(); i++) { - output.writeMessage(1, launchPlans_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < launchPlans_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, launchPlans_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) obj; - - if (!getLaunchPlansList() - .equals(other.getLaunchPlansList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getLaunchPlansCount() > 0) { - hash = (37 * hash) + LAUNCH_PLANS_FIELD_NUMBER; - hash = (53 * hash) + getLaunchPlansList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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; - } - /** - *
-     * Response object for list launch plan requests.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanList) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLaunchPlansFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (launchPlansBuilder_ == null) { - launchPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - launchPlansBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (launchPlansBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.launchPlans_ = launchPlans_; - } else { - result.launchPlans_ = launchPlansBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance()) return this; - if (launchPlansBuilder_ == null) { - if (!other.launchPlans_.isEmpty()) { - if (launchPlans_.isEmpty()) { - launchPlans_ = other.launchPlans_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLaunchPlansIsMutable(); - launchPlans_.addAll(other.launchPlans_); - } - onChanged(); - } - } else { - if (!other.launchPlans_.isEmpty()) { - if (launchPlansBuilder_.isEmpty()) { - launchPlansBuilder_.dispose(); - launchPlansBuilder_ = null; - launchPlans_ = other.launchPlans_; - bitField0_ = (bitField0_ & ~0x00000001); - launchPlansBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLaunchPlansFieldBuilder() : null; - } else { - launchPlansBuilder_.addAllMessages(other.launchPlans_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List launchPlans_ = - java.util.Collections.emptyList(); - private void ensureLaunchPlansIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - launchPlans_ = new java.util.ArrayList(launchPlans_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> launchPlansBuilder_; - - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List getLaunchPlansList() { - if (launchPlansBuilder_ == null) { - return java.util.Collections.unmodifiableList(launchPlans_); - } else { - return launchPlansBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public int getLaunchPlansCount() { - if (launchPlansBuilder_ == null) { - return launchPlans_.size(); - } else { - return launchPlansBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { - if (launchPlansBuilder_ == null) { - return launchPlans_.get(index); - } else { - return launchPlansBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder setLaunchPlans( - int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { - if (launchPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLaunchPlansIsMutable(); - launchPlans_.set(index, value); - onChanged(); - } else { - launchPlansBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder setLaunchPlans( - int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - launchPlans_.set(index, builderForValue.build()); - onChanged(); - } else { - launchPlansBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addLaunchPlans(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { - if (launchPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLaunchPlansIsMutable(); - launchPlans_.add(value); - onChanged(); - } else { - launchPlansBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addLaunchPlans( - int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { - if (launchPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLaunchPlansIsMutable(); - launchPlans_.add(index, value); - onChanged(); - } else { - launchPlansBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addLaunchPlans( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - launchPlans_.add(builderForValue.build()); - onChanged(); - } else { - launchPlansBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addLaunchPlans( - int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - launchPlans_.add(index, builderForValue.build()); - onChanged(); - } else { - launchPlansBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addAllLaunchPlans( - java.lang.Iterable values) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, launchPlans_); - onChanged(); - } else { - launchPlansBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder clearLaunchPlans() { - if (launchPlansBuilder_ == null) { - launchPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - launchPlansBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder removeLaunchPlans(int index) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - launchPlans_.remove(index); - onChanged(); - } else { - launchPlansBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder getLaunchPlansBuilder( - int index) { - return getLaunchPlansFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( - int index) { - if (launchPlansBuilder_ == null) { - return launchPlans_.get(index); } else { - return launchPlansBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List - getLaunchPlansOrBuilderList() { - if (launchPlansBuilder_ != null) { - return launchPlansBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(launchPlans_); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder() { - return getLaunchPlansFieldBuilder().addBuilder( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder( - int index) { - return getLaunchPlansFieldBuilder().addBuilder( - index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List - getLaunchPlansBuilderList() { - return getLaunchPlansFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> - getLaunchPlansFieldBuilder() { - if (launchPlansBuilder_ == null) { - launchPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder>( - launchPlans_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - launchPlans_ = null; - } - return launchPlansBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.LaunchPlanList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanList) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanList(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AuthOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Auth) - com.google.protobuf.MessageOrBuilder { - - /** - * string assumable_iam_role = 1; - */ - java.lang.String getAssumableIamRole(); - /** - * string assumable_iam_role = 1; - */ - com.google.protobuf.ByteString - getAssumableIamRoleBytes(); - - /** - * string kubernetes_service_account = 2; - */ - java.lang.String getKubernetesServiceAccount(); - /** - * string kubernetes_service_account = 2; - */ - com.google.protobuf.ByteString - getKubernetesServiceAccountBytes(); - - public flyteidl.admin.LaunchPlanOuterClass.Auth.MethodCase getMethodCase(); - } - /** - *
-   * Defines permissions associated with executions created by this launch plan spec.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Auth} - */ - public static final class Auth extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Auth) - AuthOrBuilder { - private static final long serialVersionUID = 0L; - // Use Auth.newBuilder() to construct. - private Auth(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Auth() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Auth( - 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(); - methodCase_ = 1; - method_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - methodCase_ = 2; - method_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); - } - - private int methodCase_ = 0; - private java.lang.Object method_; - public enum MethodCase - implements com.google.protobuf.Internal.EnumLite { - ASSUMABLE_IAM_ROLE(1), - KUBERNETES_SERVICE_ACCOUNT(2), - METHOD_NOT_SET(0); - private final int value; - private MethodCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MethodCase valueOf(int value) { - return forNumber(value); - } - - public static MethodCase forNumber(int value) { - switch (value) { - case 1: return ASSUMABLE_IAM_ROLE; - case 2: return KUBERNETES_SERVICE_ACCOUNT; - case 0: return METHOD_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public MethodCase - getMethodCase() { - return MethodCase.forNumber( - methodCase_); - } - - public static final int ASSUMABLE_IAM_ROLE_FIELD_NUMBER = 1; - /** - * string assumable_iam_role = 1; - */ - public java.lang.String getAssumableIamRole() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - 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(); - if (methodCase_ == 1) { - method_ = s; - } - return s; - } - } - /** - * string assumable_iam_role = 1; - */ - public com.google.protobuf.ByteString - getAssumableIamRoleBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 1) { - method_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 2; - /** - * string kubernetes_service_account = 2; - */ - public java.lang.String getKubernetesServiceAccount() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - 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(); - if (methodCase_ == 2) { - method_ = s; - } - return s; - } - } - /** - * string kubernetes_service_account = 2; - */ - public com.google.protobuf.ByteString - getKubernetesServiceAccountBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 2) { - method_ = 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 (methodCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); - } - if (methodCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (methodCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); - } - if (methodCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); - } - 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 flyteidl.admin.LaunchPlanOuterClass.Auth)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.Auth other = (flyteidl.admin.LaunchPlanOuterClass.Auth) obj; - - if (!getMethodCase().equals(other.getMethodCase())) return false; - switch (methodCase_) { - case 1: - if (!getAssumableIamRole() - .equals(other.getAssumableIamRole())) return false; - break; - case 2: - if (!getKubernetesServiceAccount() - .equals(other.getKubernetesServiceAccount())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (methodCase_) { - case 1: - hash = (37 * hash) + ASSUMABLE_IAM_ROLE_FIELD_NUMBER; - hash = (53 * hash) + getAssumableIamRole().hashCode(); - break; - case 2: - hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth 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 flyteidl.admin.LaunchPlanOuterClass.Auth parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth 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 flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth 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(flyteidl.admin.LaunchPlanOuterClass.Auth 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; - } - /** - *
-     * Defines permissions associated with executions created by this launch plan spec.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Auth} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Auth) - flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.Auth.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(); - methodCase_ = 0; - method_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.Auth build() { - flyteidl.admin.LaunchPlanOuterClass.Auth result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.Auth buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.Auth result = new flyteidl.admin.LaunchPlanOuterClass.Auth(this); - if (methodCase_ == 1) { - result.method_ = method_; - } - if (methodCase_ == 2) { - result.method_ = method_; - } - result.methodCase_ = methodCase_; - 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 flyteidl.admin.LaunchPlanOuterClass.Auth) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.Auth)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.Auth other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance()) return this; - switch (other.getMethodCase()) { - case ASSUMABLE_IAM_ROLE: { - methodCase_ = 1; - method_ = other.method_; - onChanged(); - break; - } - case KUBERNETES_SERVICE_ACCOUNT: { - methodCase_ = 2; - method_ = other.method_; - onChanged(); - break; - } - case METHOD_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 { - flyteidl.admin.LaunchPlanOuterClass.Auth parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.Auth) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int methodCase_ = 0; - private java.lang.Object method_; - public MethodCase - getMethodCase() { - return MethodCase.forNumber( - methodCase_); - } - - public Builder clearMethod() { - methodCase_ = 0; - method_ = null; - onChanged(); - return this; - } - - - /** - * string assumable_iam_role = 1; - */ - public java.lang.String getAssumableIamRole() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (methodCase_ == 1) { - method_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string assumable_iam_role = 1; - */ - public com.google.protobuf.ByteString - getAssumableIamRoleBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 1) { - method_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string assumable_iam_role = 1; - */ - public Builder setAssumableIamRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - methodCase_ = 1; - method_ = value; - onChanged(); - return this; - } - /** - * string assumable_iam_role = 1; - */ - public Builder clearAssumableIamRole() { - if (methodCase_ == 1) { - methodCase_ = 0; - method_ = null; - onChanged(); - } - return this; - } - /** - * string assumable_iam_role = 1; - */ - public Builder setAssumableIamRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - methodCase_ = 1; - method_ = value; - onChanged(); - return this; - } - - /** - * string kubernetes_service_account = 2; - */ - public java.lang.String getKubernetesServiceAccount() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (methodCase_ == 2) { - method_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string kubernetes_service_account = 2; - */ - public com.google.protobuf.ByteString - getKubernetesServiceAccountBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 2) { - method_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string kubernetes_service_account = 2; - */ - public Builder setKubernetesServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - methodCase_ = 2; - method_ = value; - onChanged(); - return this; - } - /** - * string kubernetes_service_account = 2; - */ - public Builder clearKubernetesServiceAccount() { - if (methodCase_ == 2) { - methodCase_ = 0; - method_ = null; - onChanged(); - } - return this; - } - /** - * string kubernetes_service_account = 2; - */ - public Builder setKubernetesServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - methodCase_ = 2; - method_ = 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:flyteidl.admin.Auth) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Auth) - private static final flyteidl.admin.LaunchPlanOuterClass.Auth DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.Auth(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Auth parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Auth(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 flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - boolean hasWorkflowId(); - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); - - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - boolean hasEntityMetadata(); - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata(); - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder(); - - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - boolean hasDefaultInputs(); - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - flyteidl.core.Interface.ParameterMap getDefaultInputs(); - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder(); - - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - boolean hasFixedInputs(); - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - flyteidl.core.Literals.LiteralMap getFixedInputs(); - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder(); - - /** - *
-     * String to indicate the role to use to execute the workflow underneath
-     * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated java.lang.String getRole(); - /** - *
-     * String to indicate the role to use to execute the workflow underneath
-     * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getRoleBytes(); - - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - boolean hasLabels(); - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - flyteidl.admin.Common.Labels getLabels(); - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); - - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - boolean hasAnnotations(); - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - flyteidl.admin.Common.Annotations getAnnotations(); - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); - - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasAuth(); - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.LaunchPlanOuterClass.Auth getAuth(); - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder(); - - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - boolean hasAuthRole(); - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - flyteidl.admin.Common.AuthRole getAuthRole(); - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder(); - - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - boolean hasQualityOfService(); - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - flyteidl.core.Execution.QualityOfService getQualityOfService(); - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); - } - /** - *
-   * User-provided launch plan definition and configuration values.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} - */ - public static final class LaunchPlanSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanSpec) - LaunchPlanSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanSpec.newBuilder() to construct. - private LaunchPlanSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanSpec() { - role_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanSpec( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (workflowId_ != null) { - subBuilder = workflowId_.toBuilder(); - } - workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflowId_); - workflowId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder subBuilder = null; - if (entityMetadata_ != null) { - subBuilder = entityMetadata_.toBuilder(); - } - entityMetadata_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityMetadata_); - entityMetadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; - if (defaultInputs_ != null) { - subBuilder = defaultInputs_.toBuilder(); - } - defaultInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultInputs_); - defaultInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (fixedInputs_ != null) { - subBuilder = fixedInputs_.toBuilder(); - } - fixedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fixedInputs_); - fixedInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - role_ = s; - break; - } - case 50: { - flyteidl.admin.Common.Labels.Builder subBuilder = null; - if (labels_ != null) { - subBuilder = labels_.toBuilder(); - } - labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(labels_); - labels_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - flyteidl.admin.Common.Annotations.Builder subBuilder = null; - if (annotations_ != null) { - subBuilder = annotations_.toBuilder(); - } - annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotations_); - annotations_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - flyteidl.admin.LaunchPlanOuterClass.Auth.Builder subBuilder = null; - if (auth_ != null) { - subBuilder = auth_.toBuilder(); - } - auth_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.Auth.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(auth_); - auth_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - flyteidl.admin.Common.AuthRole.Builder subBuilder = null; - if (authRole_ != null) { - subBuilder = authRole_.toBuilder(); - } - authRole_ = input.readMessage(flyteidl.admin.Common.AuthRole.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authRole_); - authRole_ = subBuilder.buildPartial(); - } - - break; - } - case 130: { - flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; - if (qualityOfService_ != null) { - subBuilder = qualityOfService_.toBuilder(); - } - qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qualityOfService_); - qualityOfService_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); - } - - public static final int WORKFLOW_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public boolean hasWorkflowId() { - return workflowId_ != null; - } - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - return getWorkflowId(); - } - - public static final int ENTITY_METADATA_FIELD_NUMBER = 2; - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_; - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public boolean hasEntityMetadata() { - return entityMetadata_ != null; - } - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { - return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; - } - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { - return getEntityMetadata(); - } - - public static final int DEFAULT_INPUTS_FIELD_NUMBER = 3; - private flyteidl.core.Interface.ParameterMap defaultInputs_; - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public boolean hasDefaultInputs() { - return defaultInputs_ != null; - } - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMap getDefaultInputs() { - return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; - } - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { - return getDefaultInputs(); - } - - public static final int FIXED_INPUTS_FIELD_NUMBER = 4; - private flyteidl.core.Literals.LiteralMap fixedInputs_; - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public boolean hasFixedInputs() { - return fixedInputs_ != null; - } - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMap getFixedInputs() { - return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; - } - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { - return getFixedInputs(); - } - - public static final int ROLE_FIELD_NUMBER = 5; - private volatile java.lang.Object role_; - /** - *
-     * String to indicate the role to use to execute the workflow underneath
-     * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getRole() { - java.lang.Object ref = role_; - 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(); - role_ = s; - return s; - } - } - /** - *
-     * String to indicate the role to use to execute the workflow underneath
-     * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 6; - private flyteidl.admin.Common.Labels labels_; - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public boolean hasLabels() { - return labels_ != null; - } - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.Labels getLabels() { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - return getLabels(); - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 7; - private flyteidl.admin.Common.Annotations annotations_; - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public boolean hasAnnotations() { - return annotations_ != null; - } - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - return getAnnotations(); - } - - public static final int AUTH_FIELD_NUMBER = 8; - private flyteidl.admin.LaunchPlanOuterClass.Auth auth_; - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasAuth() { - return auth_ != null; - } - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { - return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; - } - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { - return getAuth(); - } - - public static final int AUTH_ROLE_FIELD_NUMBER = 9; - private flyteidl.admin.Common.AuthRole authRole_; - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public boolean hasAuthRole() { - return authRole_ != null; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public flyteidl.admin.Common.AuthRole getAuthRole() { - return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { - return getAuthRole(); - } - - public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 16; - private flyteidl.core.Execution.QualityOfService qualityOfService_; - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public boolean hasQualityOfService() { - return qualityOfService_ != null; - } - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - return getQualityOfService(); - } - - 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 (workflowId_ != null) { - output.writeMessage(1, getWorkflowId()); - } - if (entityMetadata_ != null) { - output.writeMessage(2, getEntityMetadata()); - } - if (defaultInputs_ != null) { - output.writeMessage(3, getDefaultInputs()); - } - if (fixedInputs_ != null) { - output.writeMessage(4, getFixedInputs()); - } - if (!getRoleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, role_); - } - if (labels_ != null) { - output.writeMessage(6, getLabels()); - } - if (annotations_ != null) { - output.writeMessage(7, getAnnotations()); - } - if (auth_ != null) { - output.writeMessage(8, getAuth()); - } - if (authRole_ != null) { - output.writeMessage(9, getAuthRole()); - } - if (qualityOfService_ != null) { - output.writeMessage(16, getQualityOfService()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workflowId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkflowId()); - } - if (entityMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEntityMetadata()); - } - if (defaultInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDefaultInputs()); - } - if (fixedInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getFixedInputs()); - } - if (!getRoleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, role_); - } - if (labels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getLabels()); - } - if (annotations_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getAnnotations()); - } - if (auth_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getAuth()); - } - if (authRole_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getAuthRole()); - } - if (qualityOfService_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getQualityOfService()); - } - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) obj; - - if (hasWorkflowId() != other.hasWorkflowId()) return false; - if (hasWorkflowId()) { - if (!getWorkflowId() - .equals(other.getWorkflowId())) return false; - } - if (hasEntityMetadata() != other.hasEntityMetadata()) return false; - if (hasEntityMetadata()) { - if (!getEntityMetadata() - .equals(other.getEntityMetadata())) return false; - } - if (hasDefaultInputs() != other.hasDefaultInputs()) return false; - if (hasDefaultInputs()) { - if (!getDefaultInputs() - .equals(other.getDefaultInputs())) return false; - } - if (hasFixedInputs() != other.hasFixedInputs()) return false; - if (hasFixedInputs()) { - if (!getFixedInputs() - .equals(other.getFixedInputs())) return false; - } - if (!getRole() - .equals(other.getRole())) return false; - if (hasLabels() != other.hasLabels()) return false; - if (hasLabels()) { - if (!getLabels() - .equals(other.getLabels())) return false; - } - if (hasAnnotations() != other.hasAnnotations()) return false; - if (hasAnnotations()) { - if (!getAnnotations() - .equals(other.getAnnotations())) return false; - } - if (hasAuth() != other.hasAuth()) return false; - if (hasAuth()) { - if (!getAuth() - .equals(other.getAuth())) return false; - } - if (hasAuthRole() != other.hasAuthRole()) return false; - if (hasAuthRole()) { - if (!getAuthRole() - .equals(other.getAuthRole())) return false; - } - if (hasQualityOfService() != other.hasQualityOfService()) return false; - if (hasQualityOfService()) { - if (!getQualityOfService() - .equals(other.getQualityOfService())) 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 (hasWorkflowId()) { - hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowId().hashCode(); - } - if (hasEntityMetadata()) { - hash = (37 * hash) + ENTITY_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getEntityMetadata().hashCode(); - } - if (hasDefaultInputs()) { - hash = (37 * hash) + DEFAULT_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getDefaultInputs().hashCode(); - } - if (hasFixedInputs()) { - hash = (37 * hash) + FIXED_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getFixedInputs().hashCode(); - } - hash = (37 * hash) + ROLE_FIELD_NUMBER; - hash = (53 * hash) + getRole().hashCode(); - if (hasLabels()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + getLabels().hashCode(); - } - if (hasAnnotations()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + getAnnotations().hashCode(); - } - if (hasAuth()) { - hash = (37 * hash) + AUTH_FIELD_NUMBER; - hash = (53 * hash) + getAuth().hashCode(); - } - if (hasAuthRole()) { - hash = (37 * hash) + AUTH_ROLE_FIELD_NUMBER; - hash = (53 * hash) + getAuthRole().hashCode(); - } - if (hasQualityOfService()) { - hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getQualityOfService().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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; - } - /** - *
-     * User-provided launch plan definition and configuration values.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanSpec) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.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 (workflowIdBuilder_ == null) { - workflowId_ = null; - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - if (entityMetadataBuilder_ == null) { - entityMetadata_ = null; - } else { - entityMetadata_ = null; - entityMetadataBuilder_ = null; - } - if (defaultInputsBuilder_ == null) { - defaultInputs_ = null; - } else { - defaultInputs_ = null; - defaultInputsBuilder_ = null; - } - if (fixedInputsBuilder_ == null) { - fixedInputs_ = null; - } else { - fixedInputs_ = null; - fixedInputsBuilder_ = null; - } - role_ = ""; - - if (labelsBuilder_ == null) { - labels_ = null; - } else { - labels_ = null; - labelsBuilder_ = null; - } - if (annotationsBuilder_ == null) { - annotations_ = null; - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - if (authBuilder_ == null) { - auth_ = null; - } else { - auth_ = null; - authBuilder_ = null; - } - if (authRoleBuilder_ == null) { - authRole_ = null; - } else { - authRole_ = null; - authRoleBuilder_ = null; - } - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(this); - if (workflowIdBuilder_ == null) { - result.workflowId_ = workflowId_; - } else { - result.workflowId_ = workflowIdBuilder_.build(); - } - if (entityMetadataBuilder_ == null) { - result.entityMetadata_ = entityMetadata_; - } else { - result.entityMetadata_ = entityMetadataBuilder_.build(); - } - if (defaultInputsBuilder_ == null) { - result.defaultInputs_ = defaultInputs_; - } else { - result.defaultInputs_ = defaultInputsBuilder_.build(); - } - if (fixedInputsBuilder_ == null) { - result.fixedInputs_ = fixedInputs_; - } else { - result.fixedInputs_ = fixedInputsBuilder_.build(); - } - result.role_ = role_; - if (labelsBuilder_ == null) { - result.labels_ = labels_; - } else { - result.labels_ = labelsBuilder_.build(); - } - if (annotationsBuilder_ == null) { - result.annotations_ = annotations_; - } else { - result.annotations_ = annotationsBuilder_.build(); - } - if (authBuilder_ == null) { - result.auth_ = auth_; - } else { - result.auth_ = authBuilder_.build(); - } - if (authRoleBuilder_ == null) { - result.authRole_ = authRole_; - } else { - result.authRole_ = authRoleBuilder_.build(); - } - if (qualityOfServiceBuilder_ == null) { - result.qualityOfService_ = qualityOfService_; - } else { - result.qualityOfService_ = qualityOfServiceBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance()) return this; - if (other.hasWorkflowId()) { - mergeWorkflowId(other.getWorkflowId()); - } - if (other.hasEntityMetadata()) { - mergeEntityMetadata(other.getEntityMetadata()); - } - if (other.hasDefaultInputs()) { - mergeDefaultInputs(other.getDefaultInputs()); - } - if (other.hasFixedInputs()) { - mergeFixedInputs(other.getFixedInputs()); - } - if (!other.getRole().isEmpty()) { - role_ = other.role_; - onChanged(); - } - if (other.hasLabels()) { - mergeLabels(other.getLabels()); - } - if (other.hasAnnotations()) { - mergeAnnotations(other.getAnnotations()); - } - if (other.hasAuth()) { - mergeAuth(other.getAuth()); - } - if (other.hasAuthRole()) { - mergeAuthRole(other.getAuthRole()); - } - if (other.hasQualityOfService()) { - mergeQualityOfService(other.getQualityOfService()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public boolean hasWorkflowId() { - return workflowIdBuilder_ != null || workflowId_ != null; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - if (workflowIdBuilder_ == null) { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } else { - return workflowIdBuilder_.getMessage(); - } - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflowId_ = value; - onChanged(); - } else { - workflowIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public Builder setWorkflowId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (workflowIdBuilder_ == null) { - workflowId_ = builderForValue.build(); - onChanged(); - } else { - workflowIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (workflowId_ != null) { - workflowId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); - } else { - workflowId_ = value; - } - onChanged(); - } else { - workflowIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public Builder clearWorkflowId() { - if (workflowIdBuilder_ == null) { - workflowId_ = null; - onChanged(); - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { - - onChanged(); - return getWorkflowIdFieldBuilder().getBuilder(); - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - if (workflowIdBuilder_ != null) { - return workflowIdBuilder_.getMessageOrBuilder(); - } else { - return workflowId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getWorkflowIdFieldBuilder() { - if (workflowIdBuilder_ == null) { - workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getWorkflowId(), - getParentForChildren(), - isClean()); - workflowId_ = null; - } - return workflowIdBuilder_; - } - - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> entityMetadataBuilder_; - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public boolean hasEntityMetadata() { - return entityMetadataBuilder_ != null || entityMetadata_ != null; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { - if (entityMetadataBuilder_ == null) { - return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; - } else { - return entityMetadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public Builder setEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { - if (entityMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entityMetadata_ = value; - onChanged(); - } else { - entityMetadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public Builder setEntityMetadata( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder builderForValue) { - if (entityMetadataBuilder_ == null) { - entityMetadata_ = builderForValue.build(); - onChanged(); - } else { - entityMetadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public Builder mergeEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { - if (entityMetadataBuilder_ == null) { - if (entityMetadata_ != null) { - entityMetadata_ = - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder(entityMetadata_).mergeFrom(value).buildPartial(); - } else { - entityMetadata_ = value; - } - onChanged(); - } else { - entityMetadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public Builder clearEntityMetadata() { - if (entityMetadataBuilder_ == null) { - entityMetadata_ = null; - onChanged(); - } else { - entityMetadata_ = null; - entityMetadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder getEntityMetadataBuilder() { - - onChanged(); - return getEntityMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { - if (entityMetadataBuilder_ != null) { - return entityMetadataBuilder_.getMessageOrBuilder(); - } else { - return entityMetadata_ == null ? - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; - } - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> - getEntityMetadataFieldBuilder() { - if (entityMetadataBuilder_ == null) { - entityMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder>( - getEntityMetadata(), - getParentForChildren(), - isClean()); - entityMetadata_ = null; - } - return entityMetadataBuilder_; - } - - private flyteidl.core.Interface.ParameterMap defaultInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> defaultInputsBuilder_; - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public boolean hasDefaultInputs() { - return defaultInputsBuilder_ != null || defaultInputs_ != null; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMap getDefaultInputs() { - if (defaultInputsBuilder_ == null) { - return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; - } else { - return defaultInputsBuilder_.getMessage(); - } - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public Builder setDefaultInputs(flyteidl.core.Interface.ParameterMap value) { - if (defaultInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultInputs_ = value; - onChanged(); - } else { - defaultInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public Builder setDefaultInputs( - flyteidl.core.Interface.ParameterMap.Builder builderForValue) { - if (defaultInputsBuilder_ == null) { - defaultInputs_ = builderForValue.build(); - onChanged(); - } else { - defaultInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public Builder mergeDefaultInputs(flyteidl.core.Interface.ParameterMap value) { - if (defaultInputsBuilder_ == null) { - if (defaultInputs_ != null) { - defaultInputs_ = - flyteidl.core.Interface.ParameterMap.newBuilder(defaultInputs_).mergeFrom(value).buildPartial(); - } else { - defaultInputs_ = value; - } - onChanged(); - } else { - defaultInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public Builder clearDefaultInputs() { - if (defaultInputsBuilder_ == null) { - defaultInputs_ = null; - onChanged(); - } else { - defaultInputs_ = null; - defaultInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMap.Builder getDefaultInputsBuilder() { - - onChanged(); - return getDefaultInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { - if (defaultInputsBuilder_ != null) { - return defaultInputsBuilder_.getMessageOrBuilder(); - } else { - return defaultInputs_ == null ? - flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; - } - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> - getDefaultInputsFieldBuilder() { - if (defaultInputsBuilder_ == null) { - defaultInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( - getDefaultInputs(), - getParentForChildren(), - isClean()); - defaultInputs_ = null; - } - return defaultInputsBuilder_; - } - - private flyteidl.core.Literals.LiteralMap fixedInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fixedInputsBuilder_; - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public boolean hasFixedInputs() { - return fixedInputsBuilder_ != null || fixedInputs_ != null; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMap getFixedInputs() { - if (fixedInputsBuilder_ == null) { - return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; - } else { - return fixedInputsBuilder_.getMessage(); - } - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public Builder setFixedInputs(flyteidl.core.Literals.LiteralMap value) { - if (fixedInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fixedInputs_ = value; - onChanged(); - } else { - fixedInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public Builder setFixedInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (fixedInputsBuilder_ == null) { - fixedInputs_ = builderForValue.build(); - onChanged(); - } else { - fixedInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public Builder mergeFixedInputs(flyteidl.core.Literals.LiteralMap value) { - if (fixedInputsBuilder_ == null) { - if (fixedInputs_ != null) { - fixedInputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(fixedInputs_).mergeFrom(value).buildPartial(); - } else { - fixedInputs_ = value; - } - onChanged(); - } else { - fixedInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public Builder clearFixedInputs() { - if (fixedInputsBuilder_ == null) { - fixedInputs_ = null; - onChanged(); - } else { - fixedInputs_ = null; - fixedInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMap.Builder getFixedInputsBuilder() { - - onChanged(); - return getFixedInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { - if (fixedInputsBuilder_ != null) { - return fixedInputsBuilder_.getMessageOrBuilder(); - } else { - return fixedInputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; - } - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getFixedInputsFieldBuilder() { - if (fixedInputsBuilder_ == null) { - fixedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getFixedInputs(), - getParentForChildren(), - isClean()); - fixedInputs_ = null; - } - return fixedInputsBuilder_; - } - - private java.lang.Object role_ = ""; - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getRole() { - java.lang.Object ref = role_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - role_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - role_ = value; - onChanged(); - return this; - } - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearRole() { - - role_ = getDefaultInstance().getRole(); - onChanged(); - return this; - } - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - role_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Labels labels_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public boolean hasLabels() { - return labelsBuilder_ != null || labels_ != null; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.Labels getLabels() { - if (labelsBuilder_ == null) { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } else { - return labelsBuilder_.getMessage(); - } - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public Builder setLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - labels_ = value; - onChanged(); - } else { - labelsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public Builder setLabels( - flyteidl.admin.Common.Labels.Builder builderForValue) { - if (labelsBuilder_ == null) { - labels_ = builderForValue.build(); - onChanged(); - } else { - labelsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public Builder mergeLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (labels_ != null) { - labels_ = - flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); - } else { - labels_ = value; - } - onChanged(); - } else { - labelsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public Builder clearLabels() { - if (labelsBuilder_ == null) { - labels_ = null; - onChanged(); - } else { - labels_ = null; - labelsBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { - - onChanged(); - return getLabelsFieldBuilder().getBuilder(); - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - if (labelsBuilder_ != null) { - return labelsBuilder_.getMessageOrBuilder(); - } else { - return labels_ == null ? - flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> - getLabelsFieldBuilder() { - if (labelsBuilder_ == null) { - labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( - getLabels(), - getParentForChildren(), - isClean()); - labels_ = null; - } - return labelsBuilder_; - } - - private flyteidl.admin.Common.Annotations annotations_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public boolean hasAnnotations() { - return annotationsBuilder_ != null || annotations_ != null; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - if (annotationsBuilder_ == null) { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } else { - return annotationsBuilder_.getMessage(); - } - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - annotations_ = value; - onChanged(); - } else { - annotationsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public Builder setAnnotations( - flyteidl.admin.Common.Annotations.Builder builderForValue) { - if (annotationsBuilder_ == null) { - annotations_ = builderForValue.build(); - onChanged(); - } else { - annotationsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (annotations_ != null) { - annotations_ = - flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); - } else { - annotations_ = value; - } - onChanged(); - } else { - annotationsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public Builder clearAnnotations() { - if (annotationsBuilder_ == null) { - annotations_ = null; - onChanged(); - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { - - onChanged(); - return getAnnotationsFieldBuilder().getBuilder(); - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - if (annotationsBuilder_ != null) { - return annotationsBuilder_.getMessageOrBuilder(); - } else { - return annotations_ == null ? - flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> - getAnnotationsFieldBuilder() { - if (annotationsBuilder_ == null) { - annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( - getAnnotations(), - getParentForChildren(), - isClean()); - annotations_ = null; - } - return annotationsBuilder_; - } - - private flyteidl.admin.LaunchPlanOuterClass.Auth auth_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> authBuilder_; - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasAuth() { - return authBuilder_ != null || auth_ != null; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { - if (authBuilder_ == null) { - return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; - } else { - return authBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { - if (authBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - auth_ = value; - onChanged(); - } else { - authBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAuth( - flyteidl.admin.LaunchPlanOuterClass.Auth.Builder builderForValue) { - if (authBuilder_ == null) { - auth_ = builderForValue.build(); - onChanged(); - } else { - authBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { - if (authBuilder_ == null) { - if (auth_ != null) { - auth_ = - flyteidl.admin.LaunchPlanOuterClass.Auth.newBuilder(auth_).mergeFrom(value).buildPartial(); - } else { - auth_ = value; - } - onChanged(); - } else { - authBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearAuth() { - if (authBuilder_ == null) { - auth_ = null; - onChanged(); - } else { - auth_ = null; - authBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth.Builder getAuthBuilder() { - - onChanged(); - return getAuthFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { - if (authBuilder_ != null) { - return authBuilder_.getMessageOrBuilder(); - } else { - return auth_ == null ? - flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; - } - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> - getAuthFieldBuilder() { - if (authBuilder_ == null) { - authBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder>( - getAuth(), - getParentForChildren(), - isClean()); - auth_ = null; - } - return authBuilder_; - } - - private flyteidl.admin.Common.AuthRole authRole_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> authRoleBuilder_; - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public boolean hasAuthRole() { - return authRoleBuilder_ != null || authRole_ != null; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public flyteidl.admin.Common.AuthRole getAuthRole() { - if (authRoleBuilder_ == null) { - return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } else { - return authRoleBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public Builder setAuthRole(flyteidl.admin.Common.AuthRole value) { - if (authRoleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authRole_ = value; - onChanged(); - } else { - authRoleBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public Builder setAuthRole( - flyteidl.admin.Common.AuthRole.Builder builderForValue) { - if (authRoleBuilder_ == null) { - authRole_ = builderForValue.build(); - onChanged(); - } else { - authRoleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public Builder mergeAuthRole(flyteidl.admin.Common.AuthRole value) { - if (authRoleBuilder_ == null) { - if (authRole_ != null) { - authRole_ = - flyteidl.admin.Common.AuthRole.newBuilder(authRole_).mergeFrom(value).buildPartial(); - } else { - authRole_ = value; - } - onChanged(); - } else { - authRoleBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public Builder clearAuthRole() { - if (authRoleBuilder_ == null) { - authRole_ = null; - onChanged(); - } else { - authRole_ = null; - authRoleBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public flyteidl.admin.Common.AuthRole.Builder getAuthRoleBuilder() { - - onChanged(); - return getAuthRoleFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { - if (authRoleBuilder_ != null) { - return authRoleBuilder_.getMessageOrBuilder(); - } else { - return authRole_ == null ? - flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> - getAuthRoleFieldBuilder() { - if (authRoleBuilder_ == null) { - authRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder>( - getAuthRole(), - getParentForChildren(), - isClean()); - authRole_ = null; - } - return authRoleBuilder_; - } - - private flyteidl.core.Execution.QualityOfService qualityOfService_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public boolean hasQualityOfService() { - return qualityOfServiceBuilder_ != null || qualityOfService_ != null; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } else { - return qualityOfServiceBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qualityOfService_ = value; - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public Builder setQualityOfService( - flyteidl.core.Execution.QualityOfService.Builder builderForValue) { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = builderForValue.build(); - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (qualityOfService_ != null) { - qualityOfService_ = - flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); - } else { - qualityOfService_ = value; - } - onChanged(); - } else { - qualityOfServiceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public Builder clearQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - onChanged(); - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { - - onChanged(); - return getQualityOfServiceFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if (qualityOfServiceBuilder_ != null) { - return qualityOfServiceBuilder_.getMessageOrBuilder(); - } else { - return qualityOfService_ == null ? - flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> - getQualityOfServiceFieldBuilder() { - if (qualityOfServiceBuilder_ == null) { - qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( - getQualityOfService(), - getParentForChildren(), - isClean()); - qualityOfService_ = null; - } - return qualityOfServiceBuilder_; - } - @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:flyteidl.admin.LaunchPlanSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanSpec) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanSpec(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicate the Launch plan phase
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - int getStateValue(); - /** - *
-     * Indicate the Launch plan phase
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); - - /** - *
-     * Indicates the set of inputs to execute the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - boolean hasExpectedInputs(); - /** - *
-     * Indicates the set of inputs to execute the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - flyteidl.core.Interface.ParameterMap getExpectedInputs(); - /** - *
-     * Indicates the set of inputs to execute the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder(); - - /** - *
-     * Indicates the set of outputs from the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - boolean hasExpectedOutputs(); - /** - *
-     * Indicates the set of outputs from the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - flyteidl.core.Interface.VariableMap getExpectedOutputs(); - /** - *
-     * Indicates the set of outputs from the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder(); - - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - boolean hasUpdatedAt(); - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - com.google.protobuf.Timestamp getUpdatedAt(); - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); - } - /** - *
-   * Values computed by the flyte platform after launch plan registration.
-   * These include expected_inputs required to be present in a CreateExecutionRequest
-   * to launch the reference workflow as well timestamp values associated with the launch plan.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} - */ - public static final class LaunchPlanClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanClosure) - LaunchPlanClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanClosure.newBuilder() to construct. - private LaunchPlanClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanClosure() { - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanClosure( - 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 8: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 18: { - flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; - if (expectedInputs_ != null) { - subBuilder = expectedInputs_.toBuilder(); - } - expectedInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expectedInputs_); - expectedInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Interface.VariableMap.Builder subBuilder = null; - if (expectedOutputs_ != null) { - subBuilder = expectedOutputs_.toBuilder(); - } - expectedOutputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expectedOutputs_); - expectedOutputs_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - 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 42: { - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - *
-     * Indicate the Launch plan phase
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * Indicate the Launch plan phase
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); - return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; - } - - public static final int EXPECTED_INPUTS_FIELD_NUMBER = 2; - private flyteidl.core.Interface.ParameterMap expectedInputs_; - /** - *
-     * Indicates the set of inputs to execute the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public boolean hasExpectedInputs() { - return expectedInputs_ != null; - } - /** - *
-     * Indicates the set of inputs to execute the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMap getExpectedInputs() { - return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; - } - /** - *
-     * Indicates the set of inputs to execute the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { - return getExpectedInputs(); - } - - public static final int EXPECTED_OUTPUTS_FIELD_NUMBER = 3; - private flyteidl.core.Interface.VariableMap expectedOutputs_; - /** - *
-     * Indicates the set of outputs from the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public boolean hasExpectedOutputs() { - return expectedOutputs_ != null; - } - /** - *
-     * Indicates the set of outputs from the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMap getExpectedOutputs() { - return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; - } - /** - *
-     * Indicates the set of outputs from the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { - return getExpectedOutputs(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - public static final int UPDATED_AT_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp updatedAt_; - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public boolean hasUpdatedAt() { - return updatedAt_ != null; - } - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - 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 (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { - output.writeEnum(1, state_); - } - if (expectedInputs_ != null) { - output.writeMessage(2, getExpectedInputs()); - } - if (expectedOutputs_ != null) { - output.writeMessage(3, getExpectedOutputs()); - } - if (createdAt_ != null) { - output.writeMessage(4, getCreatedAt()); - } - if (updatedAt_ != null) { - output.writeMessage(5, getUpdatedAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); - } - if (expectedInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpectedInputs()); - } - if (expectedOutputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getExpectedOutputs()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreatedAt()); - } - if (updatedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) obj; - - if (state_ != other.state_) return false; - if (hasExpectedInputs() != other.hasExpectedInputs()) return false; - if (hasExpectedInputs()) { - if (!getExpectedInputs() - .equals(other.getExpectedInputs())) return false; - } - if (hasExpectedOutputs() != other.hasExpectedOutputs()) return false; - if (hasExpectedOutputs()) { - if (!getExpectedOutputs() - .equals(other.getExpectedOutputs())) 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) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasExpectedInputs()) { - hash = (37 * hash) + EXPECTED_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getExpectedInputs().hashCode(); - } - if (hasExpectedOutputs()) { - hash = (37 * hash) + EXPECTED_OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getExpectedOutputs().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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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; - } - /** - *
-     * Values computed by the flyte platform after launch plan registration.
-     * These include expected_inputs required to be present in a CreateExecutionRequest
-     * to launch the reference workflow as well timestamp values associated with the launch plan.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanClosure) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.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(); - state_ = 0; - - if (expectedInputsBuilder_ == null) { - expectedInputs_ = null; - } else { - expectedInputs_ = null; - expectedInputsBuilder_ = null; - } - if (expectedOutputsBuilder_ == null) { - expectedOutputs_ = null; - } else { - expectedOutputs_ = null; - expectedOutputsBuilder_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(this); - result.state_ = state_; - if (expectedInputsBuilder_ == null) { - result.expectedInputs_ = expectedInputs_; - } else { - result.expectedInputs_ = expectedInputsBuilder_.build(); - } - if (expectedOutputsBuilder_ == null) { - result.expectedOutputs_ = expectedOutputs_; - } else { - result.expectedOutputs_ = expectedOutputsBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance()) return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasExpectedInputs()) { - mergeExpectedInputs(other.getExpectedInputs()); - } - if (other.hasExpectedOutputs()) { - mergeExpectedOutputs(other.getExpectedOutputs()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int state_ = 0; - /** - *
-       * Indicate the Launch plan phase
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-       * Indicate the Launch plan phase
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicate the Launch plan phase
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); - return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; - } - /** - *
-       * Indicate the Launch plan phase
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Indicate the Launch plan phase
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Interface.ParameterMap expectedInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> expectedInputsBuilder_; - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public boolean hasExpectedInputs() { - return expectedInputsBuilder_ != null || expectedInputs_ != null; - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMap getExpectedInputs() { - if (expectedInputsBuilder_ == null) { - return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; - } else { - return expectedInputsBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public Builder setExpectedInputs(flyteidl.core.Interface.ParameterMap value) { - if (expectedInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expectedInputs_ = value; - onChanged(); - } else { - expectedInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public Builder setExpectedInputs( - flyteidl.core.Interface.ParameterMap.Builder builderForValue) { - if (expectedInputsBuilder_ == null) { - expectedInputs_ = builderForValue.build(); - onChanged(); - } else { - expectedInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public Builder mergeExpectedInputs(flyteidl.core.Interface.ParameterMap value) { - if (expectedInputsBuilder_ == null) { - if (expectedInputs_ != null) { - expectedInputs_ = - flyteidl.core.Interface.ParameterMap.newBuilder(expectedInputs_).mergeFrom(value).buildPartial(); - } else { - expectedInputs_ = value; - } - onChanged(); - } else { - expectedInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public Builder clearExpectedInputs() { - if (expectedInputsBuilder_ == null) { - expectedInputs_ = null; - onChanged(); - } else { - expectedInputs_ = null; - expectedInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMap.Builder getExpectedInputsBuilder() { - - onChanged(); - return getExpectedInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { - if (expectedInputsBuilder_ != null) { - return expectedInputsBuilder_.getMessageOrBuilder(); - } else { - return expectedInputs_ == null ? - flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; - } - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> - getExpectedInputsFieldBuilder() { - if (expectedInputsBuilder_ == null) { - expectedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( - getExpectedInputs(), - getParentForChildren(), - isClean()); - expectedInputs_ = null; - } - return expectedInputsBuilder_; - } - - private flyteidl.core.Interface.VariableMap expectedOutputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> expectedOutputsBuilder_; - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public boolean hasExpectedOutputs() { - return expectedOutputsBuilder_ != null || expectedOutputs_ != null; - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMap getExpectedOutputs() { - if (expectedOutputsBuilder_ == null) { - return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; - } else { - return expectedOutputsBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public Builder setExpectedOutputs(flyteidl.core.Interface.VariableMap value) { - if (expectedOutputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expectedOutputs_ = value; - onChanged(); - } else { - expectedOutputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public Builder setExpectedOutputs( - flyteidl.core.Interface.VariableMap.Builder builderForValue) { - if (expectedOutputsBuilder_ == null) { - expectedOutputs_ = builderForValue.build(); - onChanged(); - } else { - expectedOutputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public Builder mergeExpectedOutputs(flyteidl.core.Interface.VariableMap value) { - if (expectedOutputsBuilder_ == null) { - if (expectedOutputs_ != null) { - expectedOutputs_ = - flyteidl.core.Interface.VariableMap.newBuilder(expectedOutputs_).mergeFrom(value).buildPartial(); - } else { - expectedOutputs_ = value; - } - onChanged(); - } else { - expectedOutputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public Builder clearExpectedOutputs() { - if (expectedOutputsBuilder_ == null) { - expectedOutputs_ = null; - onChanged(); - } else { - expectedOutputs_ = null; - expectedOutputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMap.Builder getExpectedOutputsBuilder() { - - onChanged(); - return getExpectedOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { - if (expectedOutputsBuilder_ != null) { - return expectedOutputsBuilder_.getMessageOrBuilder(); - } else { - return expectedOutputs_ == null ? - flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; - } - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> - getExpectedOutputsFieldBuilder() { - if (expectedOutputsBuilder_ == null) { - expectedOutputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( - getExpectedOutputs(), - getParentForChildren(), - isClean()); - expectedOutputs_ = null; - } - return expectedOutputsBuilder_; - } - - 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_; - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - 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; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - 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; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - 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_; - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public boolean hasUpdatedAt() { - return updatedAtBuilder_ != null || updatedAt_ != null; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - if (updatedAtBuilder_ == null) { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } else { - return updatedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - 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; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public Builder setUpdatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updatedAtBuilder_ == null) { - updatedAt_ = builderForValue.build(); - onChanged(); - } else { - updatedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - 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; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public Builder clearUpdatedAt() { - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - onChanged(); - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { - - onChanged(); - return getUpdatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - if (updatedAtBuilder_ != null) { - return updatedAtBuilder_.getMessageOrBuilder(); - } else { - return updatedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - 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:flyteidl.admin.LaunchPlanClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanClosure) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanClosure(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - boolean hasSchedule(); - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - flyteidl.admin.ScheduleOuterClass.Schedule getSchedule(); - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder(); - - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - java.util.List - getNotificationsList(); - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - flyteidl.admin.Common.Notification getNotifications(int index); - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - int getNotificationsCount(); - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - java.util.List - getNotificationsOrBuilderList(); - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index); - } - /** - *
-   * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
-   * the reference workflow.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} - */ - public static final class LaunchPlanMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanMetadata) - LaunchPlanMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanMetadata.newBuilder() to construct. - private LaunchPlanMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanMetadata() { - notifications_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanMetadata( - 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: { - flyteidl.admin.ScheduleOuterClass.Schedule.Builder subBuilder = null; - if (schedule_ != null) { - subBuilder = schedule_.toBuilder(); - } - schedule_ = input.readMessage(flyteidl.admin.ScheduleOuterClass.Schedule.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schedule_); - schedule_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - notifications_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - notifications_.add( - input.readMessage(flyteidl.admin.Common.Notification.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_ & 0x00000002) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); - } - - private int bitField0_; - public static final int SCHEDULE_FIELD_NUMBER = 1; - private flyteidl.admin.ScheduleOuterClass.Schedule schedule_; - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public boolean hasSchedule() { - return schedule_ != null; - } - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { - return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; - } - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { - return getSchedule(); - } - - public static final int NOTIFICATIONS_FIELD_NUMBER = 2; - private java.util.List notifications_; - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List getNotificationsList() { - return notifications_; - } - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List - getNotificationsOrBuilderList() { - return notifications_; - } - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public int getNotificationsCount() { - return notifications_.size(); - } - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - return notifications_.get(index); - } - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - return notifications_.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 (schedule_ != null) { - output.writeMessage(1, getSchedule()); - } - for (int i = 0; i < notifications_.size(); i++) { - output.writeMessage(2, notifications_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (schedule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSchedule()); - } - for (int i = 0; i < notifications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, notifications_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) obj; - - if (hasSchedule() != other.hasSchedule()) return false; - if (hasSchedule()) { - if (!getSchedule() - .equals(other.getSchedule())) return false; - } - if (!getNotificationsList() - .equals(other.getNotificationsList())) 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 (hasSchedule()) { - hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + getSchedule().hashCode(); - } - if (getNotificationsCount() > 0) { - hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getNotificationsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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; - } - /** - *
-     * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
-     * the reference workflow.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanMetadata) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNotificationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (scheduleBuilder_ == null) { - schedule_ = null; - } else { - schedule_ = null; - scheduleBuilder_ = null; - } - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - notificationsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (scheduleBuilder_ == null) { - result.schedule_ = schedule_; - } else { - result.schedule_ = scheduleBuilder_.build(); - } - if (notificationsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.notifications_ = notifications_; - } else { - result.notifications_ = notificationsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance()) return this; - if (other.hasSchedule()) { - mergeSchedule(other.getSchedule()); - } - if (notificationsBuilder_ == null) { - if (!other.notifications_.isEmpty()) { - if (notifications_.isEmpty()) { - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureNotificationsIsMutable(); - notifications_.addAll(other.notifications_); - } - onChanged(); - } - } else { - if (!other.notifications_.isEmpty()) { - if (notificationsBuilder_.isEmpty()) { - notificationsBuilder_.dispose(); - notificationsBuilder_ = null; - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000002); - notificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNotificationsFieldBuilder() : null; - } else { - notificationsBuilder_.addAllMessages(other.notifications_); - } - } - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.admin.ScheduleOuterClass.Schedule schedule_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> scheduleBuilder_; - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public boolean hasSchedule() { - return scheduleBuilder_ != null || schedule_ != null; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { - if (scheduleBuilder_ == null) { - return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; - } else { - return scheduleBuilder_.getMessage(); - } - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public Builder setSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { - if (scheduleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - schedule_ = value; - onChanged(); - } else { - scheduleBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public Builder setSchedule( - flyteidl.admin.ScheduleOuterClass.Schedule.Builder builderForValue) { - if (scheduleBuilder_ == null) { - schedule_ = builderForValue.build(); - onChanged(); - } else { - scheduleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public Builder mergeSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { - if (scheduleBuilder_ == null) { - if (schedule_ != null) { - schedule_ = - flyteidl.admin.ScheduleOuterClass.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); - } else { - schedule_ = value; - } - onChanged(); - } else { - scheduleBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public Builder clearSchedule() { - if (scheduleBuilder_ == null) { - schedule_ = null; - onChanged(); - } else { - schedule_ = null; - scheduleBuilder_ = null; - } - - return this; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.Schedule.Builder getScheduleBuilder() { - - onChanged(); - return getScheduleFieldBuilder().getBuilder(); - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { - if (scheduleBuilder_ != null) { - return scheduleBuilder_.getMessageOrBuilder(); - } else { - return schedule_ == null ? - flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; - } - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> - getScheduleFieldBuilder() { - if (scheduleBuilder_ == null) { - scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder>( - getSchedule(), - getParentForChildren(), - isClean()); - schedule_ = null; - } - return scheduleBuilder_; - } - - private java.util.List notifications_ = - java.util.Collections.emptyList(); - private void ensureNotificationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - notifications_ = new java.util.ArrayList(notifications_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; - - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List getNotificationsList() { - if (notificationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(notifications_); - } else { - return notificationsBuilder_.getMessageList(); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public int getNotificationsCount() { - if (notificationsBuilder_ == null) { - return notifications_.size(); - } else { - return notificationsBuilder_.getCount(); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); - } else { - return notificationsBuilder_.getMessage(index); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.set(index, value); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.set(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addNotifications(flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(value); - onChanged(); - } else { - notificationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(index, value); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addNotifications( - flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addAllNotifications( - java.lang.Iterable values) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notifications_); - onChanged(); - } else { - notificationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder clearNotifications() { - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - notificationsBuilder_.clear(); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder removeNotifications(int index) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.remove(index); - onChanged(); - } else { - notificationsBuilder_.remove(index); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().getBuilder(index); - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); } else { - return notificationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List - getNotificationsOrBuilderList() { - if (notificationsBuilder_ != null) { - return notificationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(notifications_); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { - return getNotificationsFieldBuilder().addBuilder( - flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().addBuilder( - index, flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List - getNotificationsBuilderList() { - return getNotificationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> - getNotificationsFieldBuilder() { - if (notificationsBuilder_ == null) { - notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( - notifications_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - notifications_ = null; - } - return notificationsBuilder_; - } - @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:flyteidl.admin.LaunchPlanMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanMetadata) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanMetadata(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identifier of launch plan for which to change state.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * Identifier of launch plan for which to change state.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * Identifier of launch plan for which to change state.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Desired state to apply to the launch plan.
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - int getStateValue(); - /** - *
-     * Desired state to apply to the launch plan.
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); - } - /** - *
-   * Request to set the referenced launch plan state to the configured value.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} - */ - public static final class LaunchPlanUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateRequest) - LaunchPlanUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanUpdateRequest.newBuilder() to construct. - private LaunchPlanUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanUpdateRequest() { - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanUpdateRequest( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * Identifier of launch plan for which to change state.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Identifier of launch plan for which to change state.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * Identifier of launch plan for which to change state.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_; - /** - *
-     * Desired state to apply to the launch plan.
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * Desired state to apply to the launch plan.
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); - return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; - } - - 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 (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { - output.writeEnum(2, state_); - } - 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 (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); - } - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (state_ != other.state_) 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) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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; - } - /** - *
-     * Request to set the referenced launch plan state to the configured value.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateRequest) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - state_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.state_ = state_; - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private int state_ = 0; - /** - *
-       * Desired state to apply to the launch plan.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-       * Desired state to apply to the launch plan.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-       * Desired state to apply to the launch plan.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); - return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; - } - /** - *
-       * Desired state to apply to the launch plan.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Desired state to apply to the launch plan.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public Builder clearState() { - - state_ = 0; - 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:flyteidl.admin.LaunchPlanUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateRequest) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanUpdateRequest(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} - */ - public static final class LaunchPlanUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateResponse) - LaunchPlanUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanUpdateResponse.newBuilder() to construct. - private LaunchPlanUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanUpdateResponse( - 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; - 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateResponse) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(this); - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.LaunchPlanUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateResponse) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanUpdateResponse(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActiveLaunchPlanRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ActiveLaunchPlanRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - boolean hasId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier
-   * 
- * - * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanRequest} - */ - public static final class ActiveLaunchPlanRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ActiveLaunchPlanRequest) - ActiveLaunchPlanRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ActiveLaunchPlanRequest.newBuilder() to construct. - private ActiveLaunchPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ActiveLaunchPlanRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActiveLaunchPlanRequest( - 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: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest other = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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; - } - /** - *
-     * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier
-     * 
- * - * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ActiveLaunchPlanRequest) - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest build() { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest result = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.ActiveLaunchPlanRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanRequest) - private static final flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActiveLaunchPlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActiveLaunchPlanRequest(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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActiveLaunchPlanListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ActiveLaunchPlanListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 3; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to list active launch plans within a project/domain.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanListRequest} - */ - public static final class ActiveLaunchPlanListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ActiveLaunchPlanListRequest) - ActiveLaunchPlanListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ActiveLaunchPlanListRequest.newBuilder() to construct. - private ActiveLaunchPlanListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ActiveLaunchPlanListRequest() { - project_ = ""; - domain_ = ""; - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActiveLaunchPlanListRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 24: { - - limit_ = input.readUInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LIMIT_FIELD_NUMBER = 3; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (limit_ != 0) { - output.writeUInt32(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest other = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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; - } - /** - *
-     * Represents a request structure to list active launch plans within a project/domain.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ActiveLaunchPlanListRequest) - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.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(); - project_ = ""; - - domain_ = ""; - - limit_ = 0; - - token_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest build() { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest result = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.limit_ = limit_; - result.token_ = token_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 3; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 3; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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:flyteidl.admin.ActiveLaunchPlanListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanListRequest) - private static final flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActiveLaunchPlanListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActiveLaunchPlanListRequest(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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlan_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Auth_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Auth_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_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 flyteidl/admin/launch_plan.proto\022\016flyt" + - "eidl.admin\032\035flyteidl/core/execution.prot" + - "o\032\034flyteidl/core/literals.proto\032\036flyteid" + - "l/core/identifier.proto\032\035flyteidl/core/i" + - "nterface.proto\032\035flyteidl/admin/schedule." + - "proto\032\033flyteidl/admin/common.proto\032\037goog" + - "le/protobuf/timestamp.proto\"n\n\027LaunchPla" + - "nCreateRequest\022%\n\002id\030\001 \001(\0132\031.flyteidl.co" + - "re.Identifier\022,\n\004spec\030\002 \001(\0132\036.flyteidl.a" + - "dmin.LaunchPlanSpec\"\032\n\030LaunchPlanCreateR" + - "esponse\"\225\001\n\nLaunchPlan\022%\n\002id\030\001 \001(\0132\031.fly" + - "teidl.core.Identifier\022,\n\004spec\030\002 \001(\0132\036.fl" + - "yteidl.admin.LaunchPlanSpec\0222\n\007closure\030\003" + - " \001(\0132!.flyteidl.admin.LaunchPlanClosure\"" + - "Q\n\016LaunchPlanList\0220\n\014launch_plans\030\001 \003(\0132" + - "\032.flyteidl.admin.LaunchPlan\022\r\n\005token\030\002 \001" + - "(\t\"T\n\004Auth\022\034\n\022assumable_iam_role\030\001 \001(\tH\000" + - "\022$\n\032kubernetes_service_account\030\002 \001(\tH\000B\010" + - "\n\006method\"\341\003\n\016LaunchPlanSpec\022.\n\013workflow_" + - "id\030\001 \001(\0132\031.flyteidl.core.Identifier\022;\n\017e" + - "ntity_metadata\030\002 \001(\0132\".flyteidl.admin.La" + - "unchPlanMetadata\0223\n\016default_inputs\030\003 \001(\013" + - "2\033.flyteidl.core.ParameterMap\022/\n\014fixed_i" + - "nputs\030\004 \001(\0132\031.flyteidl.core.LiteralMap\022\020" + - "\n\004role\030\005 \001(\tB\002\030\001\022&\n\006labels\030\006 \001(\0132\026.flyte" + - "idl.admin.Labels\0220\n\013annotations\030\007 \001(\0132\033." + - "flyteidl.admin.Annotations\022&\n\004auth\030\010 \001(\013" + - "2\024.flyteidl.admin.AuthB\002\030\001\022+\n\tauth_role\030" + - "\t \001(\0132\030.flyteidl.admin.AuthRole\022;\n\022quali" + - "ty_of_service\030\020 \001(\0132\037.flyteidl.core.Qual" + - "ityOfService\"\217\002\n\021LaunchPlanClosure\022.\n\005st" + - "ate\030\001 \001(\0162\037.flyteidl.admin.LaunchPlanSta" + - "te\0224\n\017expected_inputs\030\002 \001(\0132\033.flyteidl.c" + - "ore.ParameterMap\0224\n\020expected_outputs\030\003 \001" + - "(\0132\032.flyteidl.core.VariableMap\022.\n\ncreate" + - "d_at\030\004 \001(\0132\032.google.protobuf.Timestamp\022." + - "\n\nupdated_at\030\005 \001(\0132\032.google.protobuf.Tim" + - "estamp\"u\n\022LaunchPlanMetadata\022*\n\010schedule" + - "\030\001 \001(\0132\030.flyteidl.admin.Schedule\0223\n\rnoti" + - "fications\030\002 \003(\0132\034.flyteidl.admin.Notific" + - "ation\"p\n\027LaunchPlanUpdateRequest\022%\n\002id\030\001" + - " \001(\0132\031.flyteidl.core.Identifier\022.\n\005state" + - "\030\002 \001(\0162\037.flyteidl.admin.LaunchPlanState\"" + - "\032\n\030LaunchPlanUpdateResponse\"L\n\027ActiveLau" + - "nchPlanRequest\0221\n\002id\030\001 \001(\0132%.flyteidl.ad" + - "min.NamedEntityIdentifier\"\203\001\n\033ActiveLaun" + - "chPlanListRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006do" + - "main\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t" + - "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort*" + - "+\n\017LaunchPlanState\022\014\n\010INACTIVE\020\000\022\n\n\006ACTI" + - "VE\020\001B3Z1github.com/lyft/flyteidl/gen/pb-" + - "go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Interface.getDescriptor(), - flyteidl.admin.ScheduleOuterClass.getDescriptor(), - flyteidl.admin.Common.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor, - new java.lang.String[] { "Id", "Spec", }); - internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_LaunchPlan_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlan_descriptor, - new java.lang.String[] { "Id", "Spec", "Closure", }); - internal_static_flyteidl_admin_LaunchPlanList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanList_descriptor, - new java.lang.String[] { "LaunchPlans", "Token", }); - internal_static_flyteidl_admin_Auth_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_Auth_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Auth_descriptor, - new java.lang.String[] { "AssumableIamRole", "KubernetesServiceAccount", "Method", }); - internal_static_flyteidl_admin_LaunchPlanSpec_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanSpec_descriptor, - new java.lang.String[] { "WorkflowId", "EntityMetadata", "DefaultInputs", "FixedInputs", "Role", "Labels", "Annotations", "Auth", "AuthRole", "QualityOfService", }); - internal_static_flyteidl_admin_LaunchPlanClosure_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanClosure_descriptor, - new java.lang.String[] { "State", "ExpectedInputs", "ExpectedOutputs", "CreatedAt", "UpdatedAt", }); - internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor, - new java.lang.String[] { "Schedule", "Notifications", }); - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor, - new java.lang.String[] { "Id", "State", }); - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Limit", "Token", "SortBy", }); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Interface.getDescriptor(); - flyteidl.admin.ScheduleOuterClass.getDescriptor(); - flyteidl.admin.Common.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java b/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java deleted file mode 100644 index 80d6676fa..000000000 --- a/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java +++ /dev/null @@ -1,8238 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/matchable_resource.proto - -package flyteidl.admin; - -public final class MatchableResourceOuterClass { - private MatchableResourceOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes
-   * based on matching tags.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.MatchableResource} - */ - public enum MatchableResource - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Applies to customizable task resource requests and limits.
-     * 
- * - * TASK_RESOURCE = 0; - */ - TASK_RESOURCE(0), - /** - *
-     * Applies to configuring templated kubernetes cluster resources.
-     * 
- * - * CLUSTER_RESOURCE = 1; - */ - CLUSTER_RESOURCE(1), - /** - *
-     * Configures task and dynamic task execution queue assignment.
-     * 
- * - * EXECUTION_QUEUE = 2; - */ - EXECUTION_QUEUE(2), - /** - *
-     * Configures the K8s cluster label to be used for execution to be run
-     * 
- * - * EXECUTION_CLUSTER_LABEL = 3; - */ - EXECUTION_CLUSTER_LABEL(3), - /** - *
-     * Configures default quality of service when undefined in an execution spec.
-     * 
- * - * QUALITY_OF_SERVICE_SPECIFICATION = 4; - */ - QUALITY_OF_SERVICE_SPECIFICATION(4), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Applies to customizable task resource requests and limits.
-     * 
- * - * TASK_RESOURCE = 0; - */ - public static final int TASK_RESOURCE_VALUE = 0; - /** - *
-     * Applies to configuring templated kubernetes cluster resources.
-     * 
- * - * CLUSTER_RESOURCE = 1; - */ - public static final int CLUSTER_RESOURCE_VALUE = 1; - /** - *
-     * Configures task and dynamic task execution queue assignment.
-     * 
- * - * EXECUTION_QUEUE = 2; - */ - public static final int EXECUTION_QUEUE_VALUE = 2; - /** - *
-     * Configures the K8s cluster label to be used for execution to be run
-     * 
- * - * EXECUTION_CLUSTER_LABEL = 3; - */ - public static final int EXECUTION_CLUSTER_LABEL_VALUE = 3; - /** - *
-     * Configures default quality of service when undefined in an execution spec.
-     * 
- * - * QUALITY_OF_SERVICE_SPECIFICATION = 4; - */ - public static final int QUALITY_OF_SERVICE_SPECIFICATION_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MatchableResource valueOf(int value) { - return forNumber(value); - } - - public static MatchableResource forNumber(int value) { - switch (value) { - case 0: return TASK_RESOURCE; - case 1: return CLUSTER_RESOURCE; - case 2: return EXECUTION_QUEUE; - case 3: return EXECUTION_CLUSTER_LABEL; - case 4: return QUALITY_OF_SERVICE_SPECIFICATION; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MatchableResource> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MatchableResource findValueByNumber(int number) { - return MatchableResource.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.admin.MatchableResourceOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final MatchableResource[] VALUES = values(); - - public static MatchableResource 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 MatchableResource(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.MatchableResource) - } - - public interface TaskResourceSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskResourceSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * string cpu = 1; - */ - java.lang.String getCpu(); - /** - * string cpu = 1; - */ - com.google.protobuf.ByteString - getCpuBytes(); - - /** - * string gpu = 2; - */ - java.lang.String getGpu(); - /** - * string gpu = 2; - */ - com.google.protobuf.ByteString - getGpuBytes(); - - /** - * string memory = 3; - */ - java.lang.String getMemory(); - /** - * string memory = 3; - */ - com.google.protobuf.ByteString - getMemoryBytes(); - - /** - * string storage = 4; - */ - java.lang.String getStorage(); - /** - * string storage = 4; - */ - com.google.protobuf.ByteString - getStorageBytes(); - } - /** - * Protobuf type {@code flyteidl.admin.TaskResourceSpec} - */ - public static final class TaskResourceSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskResourceSpec) - TaskResourceSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskResourceSpec.newBuilder() to construct. - private TaskResourceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskResourceSpec() { - cpu_ = ""; - gpu_ = ""; - memory_ = ""; - storage_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskResourceSpec( - 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(); - - cpu_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - gpu_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - memory_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - storage_ = 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder.class); - } - - public static final int CPU_FIELD_NUMBER = 1; - private volatile java.lang.Object cpu_; - /** - * string cpu = 1; - */ - public java.lang.String getCpu() { - java.lang.Object ref = cpu_; - 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(); - cpu_ = s; - return s; - } - } - /** - * string cpu = 1; - */ - public com.google.protobuf.ByteString - getCpuBytes() { - java.lang.Object ref = cpu_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpu_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GPU_FIELD_NUMBER = 2; - private volatile java.lang.Object gpu_; - /** - * string gpu = 2; - */ - public java.lang.String getGpu() { - java.lang.Object ref = gpu_; - 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(); - gpu_ = s; - return s; - } - } - /** - * string gpu = 2; - */ - public com.google.protobuf.ByteString - getGpuBytes() { - java.lang.Object ref = gpu_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gpu_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MEMORY_FIELD_NUMBER = 3; - private volatile java.lang.Object memory_; - /** - * string memory = 3; - */ - public java.lang.String getMemory() { - java.lang.Object ref = memory_; - 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(); - memory_ = s; - return s; - } - } - /** - * string memory = 3; - */ - public com.google.protobuf.ByteString - getMemoryBytes() { - java.lang.Object ref = memory_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - memory_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STORAGE_FIELD_NUMBER = 4; - private volatile java.lang.Object storage_; - /** - * string storage = 4; - */ - public java.lang.String getStorage() { - java.lang.Object ref = storage_; - 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(); - storage_ = s; - return s; - } - } - /** - * string storage = 4; - */ - public com.google.protobuf.ByteString - getStorageBytes() { - java.lang.Object ref = storage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storage_ = 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 (!getCpuBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpu_); - } - if (!getGpuBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gpu_); - } - if (!getMemoryBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, memory_); - } - if (!getStorageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storage_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCpuBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpu_); - } - if (!getGpuBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gpu_); - } - if (!getMemoryBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, memory_); - } - if (!getStorageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storage_); - } - 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec other = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) obj; - - if (!getCpu() - .equals(other.getCpu())) return false; - if (!getGpu() - .equals(other.getGpu())) return false; - if (!getMemory() - .equals(other.getMemory())) return false; - if (!getStorage() - .equals(other.getStorage())) 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) + CPU_FIELD_NUMBER; - hash = (53 * hash) + getCpu().hashCode(); - hash = (37 * hash) + GPU_FIELD_NUMBER; - hash = (53 * hash) + getGpu().hashCode(); - hash = (37 * hash) + MEMORY_FIELD_NUMBER; - hash = (53 * hash) + getMemory().hashCode(); - hash = (37 * hash) + STORAGE_FIELD_NUMBER; - hash = (53 * hash) + getStorage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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 flyteidl.admin.TaskResourceSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskResourceSpec) - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.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(); - cpu_ = ""; - - gpu_ = ""; - - memory_ = ""; - - storage_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec build() { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec result = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec(this); - result.cpu_ = cpu_; - result.gpu_ = gpu_; - result.memory_ = memory_; - result.storage_ = storage_; - 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance()) return this; - if (!other.getCpu().isEmpty()) { - cpu_ = other.cpu_; - onChanged(); - } - if (!other.getGpu().isEmpty()) { - gpu_ = other.gpu_; - onChanged(); - } - if (!other.getMemory().isEmpty()) { - memory_ = other.memory_; - onChanged(); - } - if (!other.getStorage().isEmpty()) { - storage_ = other.storage_; - 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 { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cpu_ = ""; - /** - * string cpu = 1; - */ - public java.lang.String getCpu() { - java.lang.Object ref = cpu_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cpu_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cpu = 1; - */ - public com.google.protobuf.ByteString - getCpuBytes() { - java.lang.Object ref = cpu_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpu_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cpu = 1; - */ - public Builder setCpu( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cpu_ = value; - onChanged(); - return this; - } - /** - * string cpu = 1; - */ - public Builder clearCpu() { - - cpu_ = getDefaultInstance().getCpu(); - onChanged(); - return this; - } - /** - * string cpu = 1; - */ - public Builder setCpuBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cpu_ = value; - onChanged(); - return this; - } - - private java.lang.Object gpu_ = ""; - /** - * string gpu = 2; - */ - public java.lang.String getGpu() { - java.lang.Object ref = gpu_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gpu_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string gpu = 2; - */ - public com.google.protobuf.ByteString - getGpuBytes() { - java.lang.Object ref = gpu_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gpu_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string gpu = 2; - */ - public Builder setGpu( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gpu_ = value; - onChanged(); - return this; - } - /** - * string gpu = 2; - */ - public Builder clearGpu() { - - gpu_ = getDefaultInstance().getGpu(); - onChanged(); - return this; - } - /** - * string gpu = 2; - */ - public Builder setGpuBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gpu_ = value; - onChanged(); - return this; - } - - private java.lang.Object memory_ = ""; - /** - * string memory = 3; - */ - public java.lang.String getMemory() { - java.lang.Object ref = memory_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - memory_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string memory = 3; - */ - public com.google.protobuf.ByteString - getMemoryBytes() { - java.lang.Object ref = memory_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - memory_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string memory = 3; - */ - public Builder setMemory( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - memory_ = value; - onChanged(); - return this; - } - /** - * string memory = 3; - */ - public Builder clearMemory() { - - memory_ = getDefaultInstance().getMemory(); - onChanged(); - return this; - } - /** - * string memory = 3; - */ - public Builder setMemoryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - memory_ = value; - onChanged(); - return this; - } - - private java.lang.Object storage_ = ""; - /** - * string storage = 4; - */ - public java.lang.String getStorage() { - java.lang.Object ref = storage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string storage = 4; - */ - public com.google.protobuf.ByteString - getStorageBytes() { - java.lang.Object ref = storage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string storage = 4; - */ - public Builder setStorage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - storage_ = value; - onChanged(); - return this; - } - /** - * string storage = 4; - */ - public Builder clearStorage() { - - storage_ = getDefaultInstance().getStorage(); - onChanged(); - return this; - } - /** - * string storage = 4; - */ - public Builder setStorageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - storage_ = 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:flyteidl.admin.TaskResourceSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceSpec) - private static final flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskResourceSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskResourceSpec(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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskResourceAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskResourceAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - boolean hasDefaults(); - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults(); - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder(); - - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - boolean hasLimits(); - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits(); - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.admin.TaskResourceAttributes} - */ - public static final class TaskResourceAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskResourceAttributes) - TaskResourceAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskResourceAttributes.newBuilder() to construct. - private TaskResourceAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskResourceAttributes() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskResourceAttributes( - 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: { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder subBuilder = null; - if (defaults_ != null) { - subBuilder = defaults_.toBuilder(); - } - defaults_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaults_); - defaults_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder subBuilder = null; - if (limits_ != null) { - subBuilder = limits_.toBuilder(); - } - limits_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(limits_); - limits_ = 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder.class); - } - - public static final int DEFAULTS_FIELD_NUMBER = 1; - private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec defaults_; - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public boolean hasDefaults() { - return defaults_ != null; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults() { - return defaults_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder() { - return getDefaults(); - } - - public static final int LIMITS_FIELD_NUMBER = 2; - private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec limits_; - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public boolean hasLimits() { - return limits_ != null; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits() { - return limits_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder() { - return getLimits(); - } - - 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 (defaults_ != null) { - output.writeMessage(1, getDefaults()); - } - if (limits_ != null) { - output.writeMessage(2, getLimits()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (defaults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDefaults()); - } - if (limits_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLimits()); - } - 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes other = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) obj; - - if (hasDefaults() != other.hasDefaults()) return false; - if (hasDefaults()) { - if (!getDefaults() - .equals(other.getDefaults())) return false; - } - if (hasLimits() != other.hasLimits()) return false; - if (hasLimits()) { - if (!getLimits() - .equals(other.getLimits())) 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 (hasDefaults()) { - hash = (37 * hash) + DEFAULTS_FIELD_NUMBER; - hash = (53 * hash) + getDefaults().hashCode(); - } - if (hasLimits()) { - hash = (37 * hash) + LIMITS_FIELD_NUMBER; - hash = (53 * hash) + getLimits().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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 flyteidl.admin.TaskResourceAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskResourceAttributes) - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.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 (defaultsBuilder_ == null) { - defaults_ = null; - } else { - defaults_ = null; - defaultsBuilder_ = null; - } - if (limitsBuilder_ == null) { - limits_ = null; - } else { - limits_ = null; - limitsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes build() { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes result = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes(this); - if (defaultsBuilder_ == null) { - result.defaults_ = defaults_; - } else { - result.defaults_ = defaultsBuilder_.build(); - } - if (limitsBuilder_ == null) { - result.limits_ = limits_; - } else { - result.limits_ = limitsBuilder_.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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance()) return this; - if (other.hasDefaults()) { - mergeDefaults(other.getDefaults()); - } - if (other.hasLimits()) { - mergeLimits(other.getLimits()); - } - 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 { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec defaults_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> defaultsBuilder_; - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public boolean hasDefaults() { - return defaultsBuilder_ != null || defaults_ != null; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults() { - if (defaultsBuilder_ == null) { - return defaults_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; - } else { - return defaultsBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public Builder setDefaults(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { - if (defaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaults_ = value; - onChanged(); - } else { - defaultsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public Builder setDefaults( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder builderForValue) { - if (defaultsBuilder_ == null) { - defaults_ = builderForValue.build(); - onChanged(); - } else { - defaultsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public Builder mergeDefaults(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { - if (defaultsBuilder_ == null) { - if (defaults_ != null) { - defaults_ = - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.newBuilder(defaults_).mergeFrom(value).buildPartial(); - } else { - defaults_ = value; - } - onChanged(); - } else { - defaultsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public Builder clearDefaults() { - if (defaultsBuilder_ == null) { - defaults_ = null; - onChanged(); - } else { - defaults_ = null; - defaultsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder getDefaultsBuilder() { - - onChanged(); - return getDefaultsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder() { - if (defaultsBuilder_ != null) { - return defaultsBuilder_.getMessageOrBuilder(); - } else { - return defaults_ == null ? - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; - } - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> - getDefaultsFieldBuilder() { - if (defaultsBuilder_ == null) { - defaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder>( - getDefaults(), - getParentForChildren(), - isClean()); - defaults_ = null; - } - return defaultsBuilder_; - } - - private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec limits_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> limitsBuilder_; - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public boolean hasLimits() { - return limitsBuilder_ != null || limits_ != null; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits() { - if (limitsBuilder_ == null) { - return limits_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; - } else { - return limitsBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public Builder setLimits(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { - if (limitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - limits_ = value; - onChanged(); - } else { - limitsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public Builder setLimits( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder builderForValue) { - if (limitsBuilder_ == null) { - limits_ = builderForValue.build(); - onChanged(); - } else { - limitsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public Builder mergeLimits(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { - if (limitsBuilder_ == null) { - if (limits_ != null) { - limits_ = - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.newBuilder(limits_).mergeFrom(value).buildPartial(); - } else { - limits_ = value; - } - onChanged(); - } else { - limitsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public Builder clearLimits() { - if (limitsBuilder_ == null) { - limits_ = null; - onChanged(); - } else { - limits_ = null; - limitsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder getLimitsBuilder() { - - onChanged(); - return getLimitsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder() { - if (limitsBuilder_ != null) { - return limitsBuilder_.getMessageOrBuilder(); - } else { - return limits_ == null ? - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; - } - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> - getLimitsFieldBuilder() { - if (limitsBuilder_ == null) { - limitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder>( - getLimits(), - getParentForChildren(), - isClean()); - limits_ = null; - } - return limitsBuilder_; - } - @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:flyteidl.admin.TaskResourceAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceAttributes) - private static final flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskResourceAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskResourceAttributes(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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ClusterResourceAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ClusterResourceAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - int getAttributesCount(); - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - boolean containsAttributes( - java.lang.String key); - /** - * Use {@link #getAttributesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAttributes(); - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - java.util.Map - getAttributesMap(); - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - java.lang.String getAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - java.lang.String getAttributesOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code flyteidl.admin.ClusterResourceAttributes} - */ - public static final class ClusterResourceAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ClusterResourceAttributes) - ClusterResourceAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterResourceAttributes.newBuilder() to construct. - private ClusterResourceAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClusterResourceAttributes() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClusterResourceAttributes( - 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)) { - attributes_ = com.google.protobuf.MapField.newMapField( - AttributesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - attributes__ = input.readMessage( - AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - attributes_.getMutableMap().put( - attributes__.getKey(), attributes__.getValue()); - 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetAttributes(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private static final class AttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> attributes_; - private com.google.protobuf.MapField - internalGetAttributes() { - if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AttributesDefaultEntryHolder.defaultEntry); - } - return attributes_; - } - - public int getAttributesCount() { - return internalGetAttributes().getMap().size(); - } - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - public boolean containsAttributes( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAttributes().getMap().containsKey(key); - } - /** - * Use {@link #getAttributesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAttributes() { - return getAttributesMap(); - } - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - public java.util.Map getAttributesMap() { - return internalGetAttributes().getMap(); - } - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - public java.lang.String getAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - public java.lang.String getAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAttributes(), - AttributesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry - attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, attributes__); - } - 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes other = (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) obj; - - if (!internalGetAttributes().equals( - other.internalGetAttributes())) 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 (!internalGetAttributes().getMap().isEmpty()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + internalGetAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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 flyteidl.admin.ClusterResourceAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ClusterResourceAttributes) - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetAttributes(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableAttributes(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.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(); - internalGetMutableAttributes().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes build() { - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes result = new flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes(this); - int from_bitField0_ = bitField0_; - result.attributes_ = internalGetAttributes(); - result.attributes_.makeImmutable(); - 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance()) return this; - internalGetMutableAttributes().mergeFrom( - other.internalGetAttributes()); - 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 { - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> attributes_; - private com.google.protobuf.MapField - internalGetAttributes() { - if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AttributesDefaultEntryHolder.defaultEntry); - } - return attributes_; - } - private com.google.protobuf.MapField - internalGetMutableAttributes() { - onChanged();; - if (attributes_ == null) { - attributes_ = com.google.protobuf.MapField.newMapField( - AttributesDefaultEntryHolder.defaultEntry); - } - if (!attributes_.isMutable()) { - attributes_ = attributes_.copy(); - } - return attributes_; - } - - public int getAttributesCount() { - return internalGetAttributes().getMap().size(); - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public boolean containsAttributes( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAttributes().getMap().containsKey(key); - } - /** - * Use {@link #getAttributesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAttributes() { - return getAttributesMap(); - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public java.util.Map getAttributesMap() { - return internalGetAttributes().getMap(); - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public java.lang.String getAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public java.lang.String getAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAttributes() { - internalGetMutableAttributes().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public Builder removeAttributes( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAttributes().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAttributes() { - return internalGetMutableAttributes().getMutableMap(); - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - public Builder putAttributes( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAttributes().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public Builder putAllAttributes( - java.util.Map values) { - internalGetMutableAttributes().getMutableMap() - .putAll(values); - 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:flyteidl.admin.ClusterResourceAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ClusterResourceAttributes) - private static final flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterResourceAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterResourceAttributes(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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionQueueAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionQueueAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - java.util.List - getTagsList(); - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - int getTagsCount(); - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - java.lang.String getTags(int index); - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionQueueAttributes} - */ - public static final class ExecutionQueueAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionQueueAttributes) - ExecutionQueueAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionQueueAttributes.newBuilder() to construct. - private ExecutionQueueAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionQueueAttributes() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionQueueAttributes( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tags_.add(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)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder.class); - } - - public static final int TAGS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList tags_; - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(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 < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes other = (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) obj; - - if (!getTagsList() - .equals(other.getTagsList())) 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 (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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 flyteidl.admin.ExecutionQueueAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionQueueAttributes) - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.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(); - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes build() { - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes result = new flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tags_ = tags_; - 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance()) return this; - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - 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 { - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(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:flyteidl.admin.ExecutionQueueAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionQueueAttributes) - private static final flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionQueueAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionQueueAttributes(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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionClusterLabelOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionClusterLabel) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Label value to determine where the execution will be run
-     * 
- * - * string value = 1; - */ - java.lang.String getValue(); - /** - *
-     * Label value to determine where the execution will be run
-     * 
- * - * string value = 1; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionClusterLabel} - */ - public static final class ExecutionClusterLabel extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionClusterLabel) - ExecutionClusterLabelOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionClusterLabel.newBuilder() to construct. - private ExecutionClusterLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionClusterLabel() { - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionClusterLabel( - 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(); - - 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object value_; - /** - *
-     * Label value to determine where the execution will be run
-     * 
- * - * string value = 1; - */ - 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; - } - } - /** - *
-     * Label value to determine where the execution will be run
-     * 
- * - * string value = 1; - */ - 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 (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel other = (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) obj; - - 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) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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 flyteidl.admin.ExecutionClusterLabel} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionClusterLabel) - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.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(); - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel build() { - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel result = new flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel(this); - 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance()) return this; - 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 { - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - 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; - } - } - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - 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; - } - } - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - 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:flyteidl.admin.ExecutionClusterLabel) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClusterLabel) - private static final flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionClusterLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionClusterLabel(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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MatchingAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.MatchingAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - boolean hasTaskResourceAttributes(); - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes(); - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder(); - - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - boolean hasClusterResourceAttributes(); - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes(); - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder(); - - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - boolean hasExecutionQueueAttributes(); - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes(); - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder(); - - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - boolean hasExecutionClusterLabel(); - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel(); - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder(); - - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - boolean hasQualityOfService(); - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - flyteidl.core.Execution.QualityOfService getQualityOfService(); - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); - - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.TargetCase getTargetCase(); - } - /** - *
-   * Generic container for encapsulating all types of the above attributes messages.
-   * 
- * - * Protobuf type {@code flyteidl.admin.MatchingAttributes} - */ - public static final class MatchingAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.MatchingAttributes) - MatchingAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use MatchingAttributes.newBuilder() to construct. - private MatchingAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MatchingAttributes() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MatchingAttributes( - 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: { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder subBuilder = null; - if (targetCase_ == 1) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 1; - break; - } - case 18: { - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder subBuilder = null; - if (targetCase_ == 2) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 2; - break; - } - case 26: { - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder subBuilder = null; - if (targetCase_ == 3) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 3; - break; - } - case 34: { - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder subBuilder = null; - if (targetCase_ == 4) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 4; - break; - } - case 42: { - flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; - if (targetCase_ == 5) { - subBuilder = ((flyteidl.core.Execution.QualityOfService) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.QualityOfService) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 5; - 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.class, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder.class); - } - - private int targetCase_ = 0; - private java.lang.Object target_; - public enum TargetCase - implements com.google.protobuf.Internal.EnumLite { - TASK_RESOURCE_ATTRIBUTES(1), - CLUSTER_RESOURCE_ATTRIBUTES(2), - EXECUTION_QUEUE_ATTRIBUTES(3), - EXECUTION_CLUSTER_LABEL(4), - QUALITY_OF_SERVICE(5), - TARGET_NOT_SET(0); - private final int value; - private TargetCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetCase valueOf(int value) { - return forNumber(value); - } - - public static TargetCase forNumber(int value) { - switch (value) { - case 1: return TASK_RESOURCE_ATTRIBUTES; - case 2: return CLUSTER_RESOURCE_ATTRIBUTES; - case 3: return EXECUTION_QUEUE_ATTRIBUTES; - case 4: return EXECUTION_CLUSTER_LABEL; - case 5: return QUALITY_OF_SERVICE; - case 0: return TARGET_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public static final int TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER = 1; - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public boolean hasTaskResourceAttributes() { - return targetCase_ == 1; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes() { - if (targetCase_ == 1) { - return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder() { - if (targetCase_ == 1) { - return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - - public static final int CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER = 2; - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public boolean hasClusterResourceAttributes() { - return targetCase_ == 2; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes() { - if (targetCase_ == 2) { - return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder() { - if (targetCase_ == 2) { - return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - - public static final int EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER = 3; - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public boolean hasExecutionQueueAttributes() { - return targetCase_ == 3; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes() { - if (targetCase_ == 3) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder() { - if (targetCase_ == 3) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - - public static final int EXECUTION_CLUSTER_LABEL_FIELD_NUMBER = 4; - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public boolean hasExecutionClusterLabel() { - return targetCase_ == 4; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel() { - if (targetCase_ == 4) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder() { - if (targetCase_ == 4) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - - public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 5; - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public boolean hasQualityOfService() { - return targetCase_ == 5; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (targetCase_ == 5) { - return (flyteidl.core.Execution.QualityOfService) target_; - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if (targetCase_ == 5) { - return (flyteidl.core.Execution.QualityOfService) target_; - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetCase_ == 1) { - output.writeMessage(1, (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); - } - if (targetCase_ == 2) { - output.writeMessage(2, (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); - } - if (targetCase_ == 3) { - output.writeMessage(3, (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); - } - if (targetCase_ == 4) { - output.writeMessage(4, (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); - } - if (targetCase_ == 5) { - output.writeMessage(5, (flyteidl.core.Execution.QualityOfService) target_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); - } - if (targetCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); - } - if (targetCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); - } - if (targetCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); - } - if (targetCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.core.Execution.QualityOfService) target_); - } - 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes other = (flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) obj; - - if (!getTargetCase().equals(other.getTargetCase())) return false; - switch (targetCase_) { - case 1: - if (!getTaskResourceAttributes() - .equals(other.getTaskResourceAttributes())) return false; - break; - case 2: - if (!getClusterResourceAttributes() - .equals(other.getClusterResourceAttributes())) return false; - break; - case 3: - if (!getExecutionQueueAttributes() - .equals(other.getExecutionQueueAttributes())) return false; - break; - case 4: - if (!getExecutionClusterLabel() - .equals(other.getExecutionClusterLabel())) return false; - break; - case 5: - if (!getQualityOfService() - .equals(other.getQualityOfService())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (targetCase_) { - case 1: - hash = (37 * hash) + TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getTaskResourceAttributes().hashCode(); - break; - case 2: - hash = (37 * hash) + CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getClusterResourceAttributes().hashCode(); - break; - case 3: - hash = (37 * hash) + EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getExecutionQueueAttributes().hashCode(); - break; - case 4: - hash = (37 * hash) + EXECUTION_CLUSTER_LABEL_FIELD_NUMBER; - hash = (53 * hash) + getExecutionClusterLabel().hashCode(); - break; - case 5: - hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getQualityOfService().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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; - } - /** - *
-     * Generic container for encapsulating all types of the above attributes messages.
-     * 
- * - * Protobuf type {@code flyteidl.admin.MatchingAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.MatchingAttributes) - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.class, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.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(); - targetCase_ = 0; - target_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes build() { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes result = new flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes(this); - if (targetCase_ == 1) { - if (taskResourceAttributesBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = taskResourceAttributesBuilder_.build(); - } - } - if (targetCase_ == 2) { - if (clusterResourceAttributesBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = clusterResourceAttributesBuilder_.build(); - } - } - if (targetCase_ == 3) { - if (executionQueueAttributesBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = executionQueueAttributesBuilder_.build(); - } - } - if (targetCase_ == 4) { - if (executionClusterLabelBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = executionClusterLabelBuilder_.build(); - } - } - if (targetCase_ == 5) { - if (qualityOfServiceBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = qualityOfServiceBuilder_.build(); - } - } - result.targetCase_ = targetCase_; - 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance()) return this; - switch (other.getTargetCase()) { - case TASK_RESOURCE_ATTRIBUTES: { - mergeTaskResourceAttributes(other.getTaskResourceAttributes()); - break; - } - case CLUSTER_RESOURCE_ATTRIBUTES: { - mergeClusterResourceAttributes(other.getClusterResourceAttributes()); - break; - } - case EXECUTION_QUEUE_ATTRIBUTES: { - mergeExecutionQueueAttributes(other.getExecutionQueueAttributes()); - break; - } - case EXECUTION_CLUSTER_LABEL: { - mergeExecutionClusterLabel(other.getExecutionClusterLabel()); - break; - } - case QUALITY_OF_SERVICE: { - mergeQualityOfService(other.getQualityOfService()); - break; - } - case TARGET_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 { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int targetCase_ = 0; - private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public Builder clearTarget() { - targetCase_ = 0; - target_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder> taskResourceAttributesBuilder_; - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public boolean hasTaskResourceAttributes() { - return targetCase_ == 1; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes() { - if (taskResourceAttributesBuilder_ == null) { - if (targetCase_ == 1) { - return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } else { - if (targetCase_ == 1) { - return taskResourceAttributesBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public Builder setTaskResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes value) { - if (taskResourceAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - taskResourceAttributesBuilder_.setMessage(value); - } - targetCase_ = 1; - return this; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public Builder setTaskResourceAttributes( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder builderForValue) { - if (taskResourceAttributesBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - taskResourceAttributesBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 1; - return this; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public Builder mergeTaskResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes value) { - if (taskResourceAttributesBuilder_ == null) { - if (targetCase_ == 1 && - target_ != flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 1) { - taskResourceAttributesBuilder_.mergeFrom(value); - } - taskResourceAttributesBuilder_.setMessage(value); - } - targetCase_ = 1; - return this; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public Builder clearTaskResourceAttributes() { - if (taskResourceAttributesBuilder_ == null) { - if (targetCase_ == 1) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 1) { - targetCase_ = 0; - target_ = null; - } - taskResourceAttributesBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder getTaskResourceAttributesBuilder() { - return getTaskResourceAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder() { - if ((targetCase_ == 1) && (taskResourceAttributesBuilder_ != null)) { - return taskResourceAttributesBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 1) { - return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder> - getTaskResourceAttributesFieldBuilder() { - if (taskResourceAttributesBuilder_ == null) { - if (!(targetCase_ == 1)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - taskResourceAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 1; - onChanged();; - return taskResourceAttributesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder> clusterResourceAttributesBuilder_; - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public boolean hasClusterResourceAttributes() { - return targetCase_ == 2; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes() { - if (clusterResourceAttributesBuilder_ == null) { - if (targetCase_ == 2) { - return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } else { - if (targetCase_ == 2) { - return clusterResourceAttributesBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public Builder setClusterResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes value) { - if (clusterResourceAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - clusterResourceAttributesBuilder_.setMessage(value); - } - targetCase_ = 2; - return this; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public Builder setClusterResourceAttributes( - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder builderForValue) { - if (clusterResourceAttributesBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - clusterResourceAttributesBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 2; - return this; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public Builder mergeClusterResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes value) { - if (clusterResourceAttributesBuilder_ == null) { - if (targetCase_ == 2 && - target_ != flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 2) { - clusterResourceAttributesBuilder_.mergeFrom(value); - } - clusterResourceAttributesBuilder_.setMessage(value); - } - targetCase_ = 2; - return this; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public Builder clearClusterResourceAttributes() { - if (clusterResourceAttributesBuilder_ == null) { - if (targetCase_ == 2) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 2) { - targetCase_ = 0; - target_ = null; - } - clusterResourceAttributesBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder getClusterResourceAttributesBuilder() { - return getClusterResourceAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder() { - if ((targetCase_ == 2) && (clusterResourceAttributesBuilder_ != null)) { - return clusterResourceAttributesBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 2) { - return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder> - getClusterResourceAttributesFieldBuilder() { - if (clusterResourceAttributesBuilder_ == null) { - if (!(targetCase_ == 2)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - clusterResourceAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 2; - onChanged();; - return clusterResourceAttributesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder> executionQueueAttributesBuilder_; - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public boolean hasExecutionQueueAttributes() { - return targetCase_ == 3; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes() { - if (executionQueueAttributesBuilder_ == null) { - if (targetCase_ == 3) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } else { - if (targetCase_ == 3) { - return executionQueueAttributesBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public Builder setExecutionQueueAttributes(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes value) { - if (executionQueueAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - executionQueueAttributesBuilder_.setMessage(value); - } - targetCase_ = 3; - return this; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public Builder setExecutionQueueAttributes( - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder builderForValue) { - if (executionQueueAttributesBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - executionQueueAttributesBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 3; - return this; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public Builder mergeExecutionQueueAttributes(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes value) { - if (executionQueueAttributesBuilder_ == null) { - if (targetCase_ == 3 && - target_ != flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 3) { - executionQueueAttributesBuilder_.mergeFrom(value); - } - executionQueueAttributesBuilder_.setMessage(value); - } - targetCase_ = 3; - return this; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public Builder clearExecutionQueueAttributes() { - if (executionQueueAttributesBuilder_ == null) { - if (targetCase_ == 3) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 3) { - targetCase_ = 0; - target_ = null; - } - executionQueueAttributesBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder getExecutionQueueAttributesBuilder() { - return getExecutionQueueAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder() { - if ((targetCase_ == 3) && (executionQueueAttributesBuilder_ != null)) { - return executionQueueAttributesBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 3) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder> - getExecutionQueueAttributesFieldBuilder() { - if (executionQueueAttributesBuilder_ == null) { - if (!(targetCase_ == 3)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - executionQueueAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 3; - onChanged();; - return executionQueueAttributesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder> executionClusterLabelBuilder_; - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public boolean hasExecutionClusterLabel() { - return targetCase_ == 4; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel() { - if (executionClusterLabelBuilder_ == null) { - if (targetCase_ == 4) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } else { - if (targetCase_ == 4) { - return executionClusterLabelBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public Builder setExecutionClusterLabel(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel value) { - if (executionClusterLabelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - executionClusterLabelBuilder_.setMessage(value); - } - targetCase_ = 4; - return this; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public Builder setExecutionClusterLabel( - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder builderForValue) { - if (executionClusterLabelBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - executionClusterLabelBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 4; - return this; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public Builder mergeExecutionClusterLabel(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel value) { - if (executionClusterLabelBuilder_ == null) { - if (targetCase_ == 4 && - target_ != flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 4) { - executionClusterLabelBuilder_.mergeFrom(value); - } - executionClusterLabelBuilder_.setMessage(value); - } - targetCase_ = 4; - return this; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public Builder clearExecutionClusterLabel() { - if (executionClusterLabelBuilder_ == null) { - if (targetCase_ == 4) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 4) { - targetCase_ = 0; - target_ = null; - } - executionClusterLabelBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder getExecutionClusterLabelBuilder() { - return getExecutionClusterLabelFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder() { - if ((targetCase_ == 4) && (executionClusterLabelBuilder_ != null)) { - return executionClusterLabelBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 4) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder> - getExecutionClusterLabelFieldBuilder() { - if (executionClusterLabelBuilder_ == null) { - if (!(targetCase_ == 4)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - executionClusterLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 4; - onChanged();; - return executionClusterLabelBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public boolean hasQualityOfService() { - return targetCase_ == 5; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - if (targetCase_ == 5) { - return (flyteidl.core.Execution.QualityOfService) target_; - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } else { - if (targetCase_ == 5) { - return qualityOfServiceBuilder_.getMessage(); - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(value); - } - targetCase_ = 5; - return this; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public Builder setQualityOfService( - flyteidl.core.Execution.QualityOfService.Builder builderForValue) { - if (qualityOfServiceBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 5; - return this; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (targetCase_ == 5 && - target_ != flyteidl.core.Execution.QualityOfService.getDefaultInstance()) { - target_ = flyteidl.core.Execution.QualityOfService.newBuilder((flyteidl.core.Execution.QualityOfService) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 5) { - qualityOfServiceBuilder_.mergeFrom(value); - } - qualityOfServiceBuilder_.setMessage(value); - } - targetCase_ = 5; - return this; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public Builder clearQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - if (targetCase_ == 5) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 5) { - targetCase_ = 0; - target_ = null; - } - qualityOfServiceBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { - return getQualityOfServiceFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if ((targetCase_ == 5) && (qualityOfServiceBuilder_ != null)) { - return qualityOfServiceBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 5) { - return (flyteidl.core.Execution.QualityOfService) target_; - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> - getQualityOfServiceFieldBuilder() { - if (qualityOfServiceBuilder_ == null) { - if (!(targetCase_ == 5)) { - target_ = flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( - (flyteidl.core.Execution.QualityOfService) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 5; - onChanged();; - return qualityOfServiceBuilder_; - } - @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:flyteidl.admin.MatchingAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchingAttributes) - private static final flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MatchingAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MatchingAttributes(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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MatchableAttributesConfigurationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.MatchableAttributesConfiguration) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes(); - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder(); - - /** - * string domain = 2; - */ - java.lang.String getDomain(); - /** - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - * string project = 3; - */ - java.lang.String getProject(); - /** - * string project = 3; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - * string workflow = 4; - */ - java.lang.String getWorkflow(); - /** - * string workflow = 4; - */ - com.google.protobuf.ByteString - getWorkflowBytes(); - - /** - * string launch_plan = 5; - */ - java.lang.String getLaunchPlan(); - /** - * string launch_plan = 5; - */ - com.google.protobuf.ByteString - getLaunchPlanBytes(); - } - /** - *
-   * Represents a custom set of attributes applied for either a domain; a domain and project; or
-   * domain, project and workflow name.
-   * 
- * - * Protobuf type {@code flyteidl.admin.MatchableAttributesConfiguration} - */ - public static final class MatchableAttributesConfiguration extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.MatchableAttributesConfiguration) - MatchableAttributesConfigurationOrBuilder { - private static final long serialVersionUID = 0L; - // Use MatchableAttributesConfiguration.newBuilder() to construct. - private MatchableAttributesConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MatchableAttributesConfiguration() { - domain_ = ""; - project_ = ""; - workflow_ = ""; - launchPlan_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MatchableAttributesConfiguration( - 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: { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - workflow_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - launchPlan_ = 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.class, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes attributes_; - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECT_FIELD_NUMBER = 3; - private volatile java.lang.Object project_; - /** - * string project = 3; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - * string project = 3; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKFLOW_FIELD_NUMBER = 4; - private volatile java.lang.Object workflow_; - /** - * string workflow = 4; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - 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(); - workflow_ = s; - return s; - } - } - /** - * string workflow = 4; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LAUNCH_PLAN_FIELD_NUMBER = 5; - private volatile java.lang.Object launchPlan_; - /** - * string launch_plan = 5; - */ - public java.lang.String getLaunchPlan() { - java.lang.Object ref = launchPlan_; - 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(); - launchPlan_ = s; - return s; - } - } - /** - * string launch_plan = 5; - */ - public com.google.protobuf.ByteString - getLaunchPlanBytes() { - java.lang.Object ref = launchPlan_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - launchPlan_ = 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, project_); - } - if (!getWorkflowBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, workflow_); - } - if (!getLaunchPlanBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, launchPlan_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, project_); - } - if (!getWorkflowBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, workflow_); - } - if (!getLaunchPlanBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, launchPlan_); - } - 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration other = (flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) return false; - } - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - if (!getLaunchPlan() - .equals(other.getLaunchPlan())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - hash = (37 * hash) + LAUNCH_PLAN_FIELD_NUMBER; - hash = (53 * hash) + getLaunchPlan().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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; - } - /** - *
-     * Represents a custom set of attributes applied for either a domain; a domain and project; or
-     * domain, project and workflow name.
-     * 
- * - * Protobuf type {@code flyteidl.admin.MatchableAttributesConfiguration} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.MatchableAttributesConfiguration) - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.class, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - domain_ = ""; - - project_ = ""; - - workflow_ = ""; - - launchPlan_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration build() { - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration result = new flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.build(); - } - result.domain_ = domain_; - result.project_ = project_; - result.workflow_ = workflow_; - result.launchPlan_ = launchPlan_; - 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getWorkflow().isEmpty()) { - workflow_ = other.workflow_; - onChanged(); - } - if (!other.getLaunchPlan().isEmpty()) { - launchPlan_ = other.launchPlan_; - 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 { - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - - private java.lang.Object domain_ = ""; - /** - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - * string project = 3; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string project = 3; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string project = 3; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - * string project = 3; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - * string project = 3; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object workflow_ = ""; - /** - * string workflow = 4; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string workflow = 4; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string workflow = 4; - */ - public Builder setWorkflow( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflow_ = value; - onChanged(); - return this; - } - /** - * string workflow = 4; - */ - public Builder clearWorkflow() { - - workflow_ = getDefaultInstance().getWorkflow(); - onChanged(); - return this; - } - /** - * string workflow = 4; - */ - public Builder setWorkflowBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflow_ = value; - onChanged(); - return this; - } - - private java.lang.Object launchPlan_ = ""; - /** - * string launch_plan = 5; - */ - public java.lang.String getLaunchPlan() { - java.lang.Object ref = launchPlan_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - launchPlan_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string launch_plan = 5; - */ - public com.google.protobuf.ByteString - getLaunchPlanBytes() { - java.lang.Object ref = launchPlan_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - launchPlan_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string launch_plan = 5; - */ - public Builder setLaunchPlan( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - launchPlan_ = value; - onChanged(); - return this; - } - /** - * string launch_plan = 5; - */ - public Builder clearLaunchPlan() { - - launchPlan_ = getDefaultInstance().getLaunchPlan(); - onChanged(); - return this; - } - /** - * string launch_plan = 5; - */ - public Builder setLaunchPlanBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - launchPlan_ = 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:flyteidl.admin.MatchableAttributesConfiguration) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchableAttributesConfiguration) - private static final flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MatchableAttributesConfiguration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MatchableAttributesConfiguration(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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListMatchableAttributesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListMatchableAttributesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - int getResourceTypeValue(); - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - *
-   * Request all matching resource attributes.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ListMatchableAttributesRequest} - */ - public static final class ListMatchableAttributesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ListMatchableAttributesRequest) - ListMatchableAttributesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListMatchableAttributesRequest.newBuilder() to construct. - private ListMatchableAttributesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListMatchableAttributesRequest() { - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListMatchableAttributesRequest( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(1, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest other = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) obj; - - if (resourceType_ != other.resourceType_) 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) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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; - } - /** - *
-     * Request all matching resource attributes.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ListMatchableAttributesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListMatchableAttributesRequest) - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.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(); - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest build() { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest result = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest(this); - result.resourceType_ = resourceType_; - 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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 { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - 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:flyteidl.admin.ListMatchableAttributesRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesRequest) - private static final flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMatchableAttributesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMatchableAttributesRequest(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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListMatchableAttributesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListMatchableAttributesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - java.util.List - getConfigurationsList(); - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index); - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - int getConfigurationsCount(); - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - java.util.List - getConfigurationsOrBuilderList(); - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( - int index); - } - /** - *
-   * Response for a request for all matching resource attributes.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ListMatchableAttributesResponse} - */ - public static final class ListMatchableAttributesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ListMatchableAttributesResponse) - ListMatchableAttributesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListMatchableAttributesResponse.newBuilder() to construct. - private ListMatchableAttributesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListMatchableAttributesResponse() { - configurations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListMatchableAttributesResponse( - 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)) { - configurations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - configurations_.add( - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.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)) { - configurations_ = java.util.Collections.unmodifiableList(configurations_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.Builder.class); - } - - public static final int CONFIGURATIONS_FIELD_NUMBER = 1; - private java.util.List configurations_; - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List getConfigurationsList() { - return configurations_; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List - getConfigurationsOrBuilderList() { - return configurations_; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public int getConfigurationsCount() { - return configurations_.size(); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index) { - return configurations_.get(index); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( - int index) { - return configurations_.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 < configurations_.size(); i++) { - output.writeMessage(1, configurations_.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 < configurations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, configurations_.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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse other = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) obj; - - if (!getConfigurationsList() - .equals(other.getConfigurationsList())) 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 (getConfigurationsCount() > 0) { - hash = (37 * hash) + CONFIGURATIONS_FIELD_NUMBER; - hash = (53 * hash) + getConfigurationsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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; - } - /** - *
-     * Response for a request for all matching resource attributes.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ListMatchableAttributesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListMatchableAttributesResponse) - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConfigurationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (configurationsBuilder_ == null) { - configurations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - configurationsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse build() { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse result = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse(this); - int from_bitField0_ = bitField0_; - if (configurationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - configurations_ = java.util.Collections.unmodifiableList(configurations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.configurations_ = configurations_; - } else { - result.configurations_ = configurationsBuilder_.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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.getDefaultInstance()) return this; - if (configurationsBuilder_ == null) { - if (!other.configurations_.isEmpty()) { - if (configurations_.isEmpty()) { - configurations_ = other.configurations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConfigurationsIsMutable(); - configurations_.addAll(other.configurations_); - } - onChanged(); - } - } else { - if (!other.configurations_.isEmpty()) { - if (configurationsBuilder_.isEmpty()) { - configurationsBuilder_.dispose(); - configurationsBuilder_ = null; - configurations_ = other.configurations_; - bitField0_ = (bitField0_ & ~0x00000001); - configurationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConfigurationsFieldBuilder() : null; - } else { - configurationsBuilder_.addAllMessages(other.configurations_); - } - } - } - 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 { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List configurations_ = - java.util.Collections.emptyList(); - private void ensureConfigurationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - configurations_ = new java.util.ArrayList(configurations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder> configurationsBuilder_; - - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List getConfigurationsList() { - if (configurationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(configurations_); - } else { - return configurationsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public int getConfigurationsCount() { - if (configurationsBuilder_ == null) { - return configurations_.size(); - } else { - return configurationsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index) { - if (configurationsBuilder_ == null) { - return configurations_.get(index); - } else { - return configurationsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder setConfigurations( - int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { - if (configurationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigurationsIsMutable(); - configurations_.set(index, value); - onChanged(); - } else { - configurationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder setConfigurations( - int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.set(index, builderForValue.build()); - onChanged(); - } else { - configurationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addConfigurations(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { - if (configurationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigurationsIsMutable(); - configurations_.add(value); - onChanged(); - } else { - configurationsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addConfigurations( - int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { - if (configurationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigurationsIsMutable(); - configurations_.add(index, value); - onChanged(); - } else { - configurationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addConfigurations( - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.add(builderForValue.build()); - onChanged(); - } else { - configurationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addConfigurations( - int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.add(index, builderForValue.build()); - onChanged(); - } else { - configurationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addAllConfigurations( - java.lang.Iterable values) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, configurations_); - onChanged(); - } else { - configurationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder clearConfigurations() { - if (configurationsBuilder_ == null) { - configurations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - configurationsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder removeConfigurations(int index) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.remove(index); - onChanged(); - } else { - configurationsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder getConfigurationsBuilder( - int index) { - return getConfigurationsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( - int index) { - if (configurationsBuilder_ == null) { - return configurations_.get(index); } else { - return configurationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List - getConfigurationsOrBuilderList() { - if (configurationsBuilder_ != null) { - return configurationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(configurations_); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder addConfigurationsBuilder() { - return getConfigurationsFieldBuilder().addBuilder( - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder addConfigurationsBuilder( - int index) { - return getConfigurationsFieldBuilder().addBuilder( - index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List - getConfigurationsBuilderList() { - return getConfigurationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder> - getConfigurationsFieldBuilder() { - if (configurationsBuilder_ == null) { - configurationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder>( - configurations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - configurations_ = null; - } - return configurationsBuilder_; - } - @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:flyteidl.admin.ListMatchableAttributesResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesResponse) - private static final flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMatchableAttributesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMatchableAttributesResponse(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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskResourceSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_MatchingAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ListMatchableAttributesResponse_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\'flyteidl/admin/matchable_resource.prot" + - "o\022\016flyteidl.admin\032\033flyteidl/admin/common" + - ".proto\032\035flyteidl/core/execution.proto\"M\n" + - "\020TaskResourceSpec\022\013\n\003cpu\030\001 \001(\t\022\013\n\003gpu\030\002 " + - "\001(\t\022\016\n\006memory\030\003 \001(\t\022\017\n\007storage\030\004 \001(\t\"~\n\026" + - "TaskResourceAttributes\0222\n\010defaults\030\001 \001(\013" + - "2 .flyteidl.admin.TaskResourceSpec\0220\n\006li" + - "mits\030\002 \001(\0132 .flyteidl.admin.TaskResource" + - "Spec\"\235\001\n\031ClusterResourceAttributes\022M\n\nat" + - "tributes\030\001 \003(\01329.flyteidl.admin.ClusterR" + - "esourceAttributes.AttributesEntry\0321\n\017Att" + - "ributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + - ":\0028\001\"(\n\030ExecutionQueueAttributes\022\014\n\004tags" + - "\030\001 \003(\t\"&\n\025ExecutionClusterLabel\022\r\n\005value" + - "\030\001 \001(\t\"\225\003\n\022MatchingAttributes\022J\n\030task_re" + - "source_attributes\030\001 \001(\0132&.flyteidl.admin" + - ".TaskResourceAttributesH\000\022P\n\033cluster_res" + - "ource_attributes\030\002 \001(\0132).flyteidl.admin." + - "ClusterResourceAttributesH\000\022N\n\032execution" + - "_queue_attributes\030\003 \001(\0132(.flyteidl.admin" + - ".ExecutionQueueAttributesH\000\022H\n\027execution" + - "_cluster_label\030\004 \001(\0132%.flyteidl.admin.Ex" + - "ecutionClusterLabelH\000\022=\n\022quality_of_serv" + - "ice\030\005 \001(\0132\037.flyteidl.core.QualityOfServi" + - "ceH\000B\010\n\006target\"\242\001\n MatchableAttributesCo" + - "nfiguration\0226\n\nattributes\030\001 \001(\0132\".flytei" + - "dl.admin.MatchingAttributes\022\016\n\006domain\030\002 " + - "\001(\t\022\017\n\007project\030\003 \001(\t\022\020\n\010workflow\030\004 \001(\t\022\023" + - "\n\013launch_plan\030\005 \001(\t\"Z\n\036ListMatchableAttr" + - "ibutesRequest\0228\n\rresource_type\030\001 \001(\0162!.f" + - "lyteidl.admin.MatchableResource\"k\n\037ListM" + - "atchableAttributesResponse\022H\n\016configurat" + - "ions\030\001 \003(\01320.flyteidl.admin.MatchableAtt" + - "ributesConfiguration*\224\001\n\021MatchableResour" + - "ce\022\021\n\rTASK_RESOURCE\020\000\022\024\n\020CLUSTER_RESOURC" + - "E\020\001\022\023\n\017EXECUTION_QUEUE\020\002\022\033\n\027EXECUTION_CL" + - "USTER_LABEL\020\003\022$\n QUALITY_OF_SERVICE_SPEC" + - "IFICATION\020\004B3Z1github.com/lyft/flyteidl/" + - "gen/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.Common.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_TaskResourceSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskResourceSpec_descriptor, - new java.lang.String[] { "Cpu", "Gpu", "Memory", "Storage", }); - internal_static_flyteidl_admin_TaskResourceAttributes_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskResourceAttributes_descriptor, - new java.lang.String[] { "Defaults", "Limits", }); - internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor = - internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor, - new java.lang.String[] { "Tags", }); - internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor, - new java.lang.String[] { "Value", }); - internal_static_flyteidl_admin_MatchingAttributes_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_MatchingAttributes_descriptor, - new java.lang.String[] { "TaskResourceAttributes", "ClusterResourceAttributes", "ExecutionQueueAttributes", "ExecutionClusterLabel", "QualityOfService", "Target", }); - internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor, - new java.lang.String[] { "Attributes", "Domain", "Project", "Workflow", "LaunchPlan", }); - internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor, - new java.lang.String[] { "ResourceType", }); - internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor, - new java.lang.String[] { "Configurations", }); - flyteidl.admin.Common.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java b/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java deleted file mode 100644 index d8233be20..000000000 --- a/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java +++ /dev/null @@ -1,11025 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/node_execution.proto - -package flyteidl.admin; - -public final class NodeExecutionOuterClass { - private NodeExecutionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface NodeExecutionGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * A message used to fetch a single node execution entity.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} - */ - public static final class NodeExecutionGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetRequest) - NodeExecutionGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionGetRequest.newBuilder() to construct. - private NodeExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionGetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionGetRequest( - 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: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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 message used to fetch a single node execution entity.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetRequest) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.NodeExecutionGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetRequest) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionGetRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the workflow execution to filter by.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - boolean hasWorkflowExecutionId(); - /** - *
-     * Indicates the workflow execution to filter by.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId(); - /** - *
-     * Indicates the workflow execution to filter by.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to retrieve a list of node execution entities.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} - */ - public static final class NodeExecutionListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionListRequest) - NodeExecutionListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionListRequest.newBuilder() to construct. - private NodeExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionListRequest() { - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionListRequest( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (workflowExecutionId_ != null) { - subBuilder = workflowExecutionId_.toBuilder(); - } - workflowExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflowExecutionId_); - workflowExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - limit_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); - } - - public static final int WORKFLOW_EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; - /** - *
-     * Indicates the workflow execution to filter by.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public boolean hasWorkflowExecutionId() { - return workflowExecutionId_ != null; - } - /** - *
-     * Indicates the workflow execution to filter by.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { - return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; - } - /** - *
-     * Indicates the workflow execution to filter by.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { - return getWorkflowExecutionId(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 4; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - 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(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (workflowExecutionId_ != null) { - output.writeMessage(1, getWorkflowExecutionId()); - } - if (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workflowExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkflowExecutionId()); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) obj; - - if (hasWorkflowExecutionId() != other.hasWorkflowExecutionId()) return false; - if (hasWorkflowExecutionId()) { - if (!getWorkflowExecutionId() - .equals(other.getWorkflowExecutionId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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 (hasWorkflowExecutionId()) { - hash = (37 * hash) + WORKFLOW_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowExecutionId().hashCode(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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; - } - /** - *
-     * Represents a request structure to retrieve a list of node execution entities.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionListRequest) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.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 (workflowExecutionIdBuilder_ == null) { - workflowExecutionId_ = null; - } else { - workflowExecutionId_ = null; - workflowExecutionIdBuilder_ = null; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(this); - if (workflowExecutionIdBuilder_ == null) { - result.workflowExecutionId_ = workflowExecutionId_; - } else { - result.workflowExecutionId_ = workflowExecutionIdBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance()) return this; - if (other.hasWorkflowExecutionId()) { - mergeWorkflowExecutionId(other.getWorkflowExecutionId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowExecutionIdBuilder_; - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public boolean hasWorkflowExecutionId() { - return workflowExecutionIdBuilder_ != null || workflowExecutionId_ != null; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { - if (workflowExecutionIdBuilder_ == null) { - return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; - } else { - return workflowExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder setWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflowExecutionId_ = value; - onChanged(); - } else { - workflowExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder setWorkflowExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (workflowExecutionIdBuilder_ == null) { - workflowExecutionId_ = builderForValue.build(); - onChanged(); - } else { - workflowExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder mergeWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowExecutionIdBuilder_ == null) { - if (workflowExecutionId_ != null) { - workflowExecutionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(workflowExecutionId_).mergeFrom(value).buildPartial(); - } else { - workflowExecutionId_ = value; - } - onChanged(); - } else { - workflowExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder clearWorkflowExecutionId() { - if (workflowExecutionIdBuilder_ == null) { - workflowExecutionId_ = null; - onChanged(); - } else { - workflowExecutionId_ = null; - workflowExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowExecutionIdBuilder() { - - onChanged(); - return getWorkflowExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { - if (workflowExecutionIdBuilder_ != null) { - return workflowExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return workflowExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; - } - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getWorkflowExecutionIdFieldBuilder() { - if (workflowExecutionIdBuilder_ == null) { - workflowExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getWorkflowExecutionId(), - getParentForChildren(), - isClean()); - workflowExecutionId_ = null; - } - return workflowExecutionIdBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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:flyteidl.admin.NodeExecutionListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionListRequest) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionListRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionForTaskListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionForTaskListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - boolean hasTaskExecutionId(); - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId(); - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} - */ - public static final class NodeExecutionForTaskListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionForTaskListRequest) - NodeExecutionForTaskListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionForTaskListRequest.newBuilder() to construct. - private NodeExecutionForTaskListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionForTaskListRequest() { - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionForTaskListRequest( - 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: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (taskExecutionId_ != null) { - subBuilder = taskExecutionId_.toBuilder(); - } - taskExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskExecutionId_); - taskExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - limit_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); - } - - public static final int TASK_EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public boolean hasTaskExecutionId() { - return taskExecutionId_ != null; - } - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { - return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; - } - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { - return getTaskExecutionId(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 4; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - 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(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (taskExecutionId_ != null) { - output.writeMessage(1, getTaskExecutionId()); - } - if (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (taskExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTaskExecutionId()); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) obj; - - if (hasTaskExecutionId() != other.hasTaskExecutionId()) return false; - if (hasTaskExecutionId()) { - if (!getTaskExecutionId() - .equals(other.getTaskExecutionId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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 (hasTaskExecutionId()) { - hash = (37 * hash) + TASK_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskExecutionId().hashCode(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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; - } - /** - *
-     * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionForTaskListRequest) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.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 (taskExecutionIdBuilder_ == null) { - taskExecutionId_ = null; - } else { - taskExecutionId_ = null; - taskExecutionIdBuilder_ = null; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(this); - if (taskExecutionIdBuilder_ == null) { - result.taskExecutionId_ = taskExecutionId_; - } else { - result.taskExecutionId_ = taskExecutionIdBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance()) return this; - if (other.hasTaskExecutionId()) { - mergeTaskExecutionId(other.getTaskExecutionId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskExecutionIdBuilder_; - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public boolean hasTaskExecutionId() { - return taskExecutionIdBuilder_ != null || taskExecutionId_ != null; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { - if (taskExecutionIdBuilder_ == null) { - return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; - } else { - return taskExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder setTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskExecutionId_ = value; - onChanged(); - } else { - taskExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder setTaskExecutionId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (taskExecutionIdBuilder_ == null) { - taskExecutionId_ = builderForValue.build(); - onChanged(); - } else { - taskExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder mergeTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskExecutionIdBuilder_ == null) { - if (taskExecutionId_ != null) { - taskExecutionId_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(taskExecutionId_).mergeFrom(value).buildPartial(); - } else { - taskExecutionId_ = value; - } - onChanged(); - } else { - taskExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder clearTaskExecutionId() { - if (taskExecutionIdBuilder_ == null) { - taskExecutionId_ = null; - onChanged(); - } else { - taskExecutionId_ = null; - taskExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskExecutionIdBuilder() { - - onChanged(); - return getTaskExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { - if (taskExecutionIdBuilder_ != null) { - return taskExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return taskExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; - } - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getTaskExecutionIdFieldBuilder() { - if (taskExecutionIdBuilder_ == null) { - taskExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getTaskExecutionId(), - getParentForChildren(), - isClean()); - taskExecutionId_ = null; - } - return taskExecutionIdBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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:flyteidl.admin.NodeExecutionForTaskListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionForTaskListRequest) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionForTaskListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionForTaskListRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecution) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - java.lang.String getInputUri(); - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - com.google.protobuf.ByteString - getInputUriBytes(); - - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - boolean hasClosure(); - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure(); - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder(); - - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - boolean hasMetadata(); - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata(); - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder(); - } - /** - *
-   * Encapsulates all details for a single node execution entity.
-   * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
-   * sub-workflow, or even a separate child-workflow execution.
-   * The same task can be called repeatedly in a single workflow but each node is unique.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecution} - */ - public static final class NodeExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecution) - NodeExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecution.newBuilder() to construct. - private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecution() { - inputUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecution( - 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: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - inputUri_ = s; - break; - } - case 26: { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int INPUT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object inputUri_; - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - 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(); - inputUri_ = s; - return s; - } - } - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLOSURE_FIELD_NUMBER = 3; - private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_; - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { - return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; - } - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - public static final int METADATA_FIELD_NUMBER = 4; - private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData metadata_; - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata() { - return metadata_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; - } - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (!getInputUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); - } - if (closure_ != null) { - output.writeMessage(3, getClosure()); - } - if (metadata_ != null) { - output.writeMessage(4, getMetadata()); - } - 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 (!getInputUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClosure()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMetadata()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecution other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getInputUri() - .equals(other.getInputUri())) return false; - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) 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) + INPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getInputUri().hashCode(); - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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; - } - /** - *
-     * Encapsulates all details for a single node execution entity.
-     * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
-     * sub-workflow, or even a separate child-workflow execution.
-     * The same task can be called repeatedly in a single workflow but each node is unique.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecution) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecution.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - inputUri_ = ""; - - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.inputUri_ = inputUri_; - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecution other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getInputUri().isEmpty()) { - inputUri_ = other.inputUri_; - onChanged(); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object inputUri_ = ""; - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputUri_ = value; - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder clearInputUri() { - - inputUri_ = getDefaultInstance().getInputUri(); - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputUri_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> closureBuilder_; - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public Builder setClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public Builder setClosure( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public Builder mergeClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - - private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder> metadataBuilder_; - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public Builder setMetadata(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public Builder setMetadata( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public Builder mergeMetadata(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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:flyteidl.admin.NodeExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecution) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecution(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionMetaDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionMetaData) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Represents additional attributes related to a Node Execution
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionMetaData} - */ - public static final class NodeExecutionMetaData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionMetaData) - NodeExecutionMetaDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionMetaData.newBuilder() to construct. - private NodeExecutionMetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionMetaData() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionMetaData( - 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; - 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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; - } - /** - *
-     * Represents additional attributes related to a Node Execution
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionMetaData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionMetaData) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData(this); - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance()) return this; - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.NodeExecutionMetaData) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionMetaData) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionMetaData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionMetaData(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - java.util.List - getNodeExecutionsList(); - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index); - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - int getNodeExecutionsCount(); - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - java.util.List - getNodeExecutionsOrBuilderList(); - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Request structure to retrieve a list of node execution entities.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionList} - */ - public static final class NodeExecutionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionList) - NodeExecutionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionList.newBuilder() to construct. - private NodeExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionList() { - nodeExecutions_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionList( - 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)) { - nodeExecutions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodeExecutions_.add( - input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecution.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); - } - - private int bitField0_; - public static final int NODE_EXECUTIONS_FIELD_NUMBER = 1; - private java.util.List nodeExecutions_; - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List getNodeExecutionsList() { - return nodeExecutions_; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List - getNodeExecutionsOrBuilderList() { - return nodeExecutions_; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public int getNodeExecutionsCount() { - return nodeExecutions_.size(); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { - return nodeExecutions_.get(index); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( - int index) { - return nodeExecutions_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < nodeExecutions_.size(); i++) { - output.writeMessage(1, nodeExecutions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < nodeExecutions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodeExecutions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) obj; - - if (!getNodeExecutionsList() - .equals(other.getNodeExecutionsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getNodeExecutionsCount() > 0) { - hash = (37 * hash) + NODE_EXECUTIONS_FIELD_NUMBER; - hash = (53 * hash) + getNodeExecutionsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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; - } - /** - *
-     * Request structure to retrieve a list of node execution entities.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionList) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodeExecutionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodeExecutionsBuilder_ == null) { - nodeExecutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodeExecutionsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (nodeExecutionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodeExecutions_ = nodeExecutions_; - } else { - result.nodeExecutions_ = nodeExecutionsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance()) return this; - if (nodeExecutionsBuilder_ == null) { - if (!other.nodeExecutions_.isEmpty()) { - if (nodeExecutions_.isEmpty()) { - nodeExecutions_ = other.nodeExecutions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.addAll(other.nodeExecutions_); - } - onChanged(); - } - } else { - if (!other.nodeExecutions_.isEmpty()) { - if (nodeExecutionsBuilder_.isEmpty()) { - nodeExecutionsBuilder_.dispose(); - nodeExecutionsBuilder_ = null; - nodeExecutions_ = other.nodeExecutions_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeExecutionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodeExecutionsFieldBuilder() : null; - } else { - nodeExecutionsBuilder_.addAllMessages(other.nodeExecutions_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List nodeExecutions_ = - java.util.Collections.emptyList(); - private void ensureNodeExecutionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodeExecutions_ = new java.util.ArrayList(nodeExecutions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> nodeExecutionsBuilder_; - - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List getNodeExecutionsList() { - if (nodeExecutionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodeExecutions_); - } else { - return nodeExecutionsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public int getNodeExecutionsCount() { - if (nodeExecutionsBuilder_ == null) { - return nodeExecutions_.size(); - } else { - return nodeExecutionsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { - if (nodeExecutionsBuilder_ == null) { - return nodeExecutions_.get(index); - } else { - return nodeExecutionsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder setNodeExecutions( - int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { - if (nodeExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeExecutionsIsMutable(); - nodeExecutions_.set(index, value); - onChanged(); - } else { - nodeExecutionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder setNodeExecutions( - int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeExecutionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addNodeExecutions(flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { - if (nodeExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeExecutionsIsMutable(); - nodeExecutions_.add(value); - onChanged(); - } else { - nodeExecutionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addNodeExecutions( - int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { - if (nodeExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeExecutionsIsMutable(); - nodeExecutions_.add(index, value); - onChanged(); - } else { - nodeExecutionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addNodeExecutions( - flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.add(builderForValue.build()); - onChanged(); - } else { - nodeExecutionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addNodeExecutions( - int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeExecutionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addAllNodeExecutions( - java.lang.Iterable values) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodeExecutions_); - onChanged(); - } else { - nodeExecutionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder clearNodeExecutions() { - if (nodeExecutionsBuilder_ == null) { - nodeExecutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeExecutionsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder removeNodeExecutions(int index) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.remove(index); - onChanged(); - } else { - nodeExecutionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder getNodeExecutionsBuilder( - int index) { - return getNodeExecutionsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( - int index) { - if (nodeExecutionsBuilder_ == null) { - return nodeExecutions_.get(index); } else { - return nodeExecutionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List - getNodeExecutionsOrBuilderList() { - if (nodeExecutionsBuilder_ != null) { - return nodeExecutionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodeExecutions_); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder() { - return getNodeExecutionsFieldBuilder().addBuilder( - flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder( - int index) { - return getNodeExecutionsFieldBuilder().addBuilder( - index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List - getNodeExecutionsBuilderList() { - return getNodeExecutionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> - getNodeExecutionsFieldBuilder() { - if (nodeExecutionsBuilder_ == null) { - nodeExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder>( - nodeExecutions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodeExecutions_ = null; - } - return nodeExecutionsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.NodeExecutionList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionList) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionList(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionClosure) - com.google.protobuf.MessageOrBuilder { - - /** - * string output_uri = 1; - */ - java.lang.String getOutputUri(); - /** - * string output_uri = 1; - */ - com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - boolean hasError(); - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * The last recorded phase for this node execution.
-     * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - int getPhaseValue(); - /** - *
-     * The last recorded phase for this node execution.
-     * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - flyteidl.core.Execution.NodeExecution.Phase getPhase(); - - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - boolean hasStartedAt(); - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - com.google.protobuf.Timestamp getStartedAt(); - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); - - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - boolean hasDuration(); - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - com.google.protobuf.Duration getDuration(); - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - boolean hasUpdatedAt(); - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - com.google.protobuf.Timestamp getUpdatedAt(); - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); - - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - boolean hasWorkflowNodeMetadata(); - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata(); - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); - - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.OutputResultCase getOutputResultCase(); - - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.TargetMetadataCase getTargetMetadataCase(); - } - /** - *
-   * Container for node execution details and results.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} - */ - public static final class NodeExecutionClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionClosure) - NodeExecutionClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionClosure.newBuilder() to construct. - private NodeExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionClosure() { - phase_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionClosure( - 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(); - outputResultCase_ = 1; - outputResult_ = s; - break; - } - case 18: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 2) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 2; - break; - } - case 24: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startedAt_ != null) { - subBuilder = startedAt_.toBuilder(); - } - startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startedAt_); - startedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - 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 58: { - 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; - } - case 66: { - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder subBuilder = null; - if (targetMetadataCase_ == 8) { - subBuilder = ((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_).toBuilder(); - } - targetMetadata_ = - input.readMessage(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); - targetMetadata_ = subBuilder.buildPartial(); - } - targetMetadataCase_ = 8; - 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); - } - - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUT_URI(1), - ERROR(2), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 1: return OUTPUT_URI; - case 2: return ERROR; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - private int targetMetadataCase_ = 0; - private java.lang.Object targetMetadata_; - public enum TargetMetadataCase - implements com.google.protobuf.Internal.EnumLite { - WORKFLOW_NODE_METADATA(8), - TARGETMETADATA_NOT_SET(0); - private final int value; - private TargetMetadataCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetMetadataCase valueOf(int value) { - return forNumber(value); - } - - public static TargetMetadataCase forNumber(int value) { - switch (value) { - case 8: return WORKFLOW_NODE_METADATA; - case 0: return TARGETMETADATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetMetadataCase - getTargetMetadataCase() { - return TargetMetadataCase.forNumber( - targetMetadataCase_); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 1; - /** - * string output_uri = 1; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - 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(); - if (outputResultCase_ == 1) { - outputResult_ = s; - } - return s; - } - } - /** - * string output_uri = 1; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 1) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 2; - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int PHASE_FIELD_NUMBER = 3; - private int phase_; - /** - *
-     * The last recorded phase for this node execution.
-     * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-     * The last recorded phase for this node execution.
-     * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.NodeExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; - } - - public static final int STARTED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp startedAt_; - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public boolean hasStartedAt() { - return startedAt_ != null; - } - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.Timestamp getStartedAt() { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - return getStartedAt(); - } - - public static final int DURATION_FIELD_NUMBER = 5; - private com.google.protobuf.Duration duration_; - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public boolean hasDuration() { - return duration_ != null; - } - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return getDuration(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - public static final int UPDATED_AT_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp updatedAt_; - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public boolean hasUpdatedAt() { - return updatedAt_ != null; - } - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - return getUpdatedAt(); - } - - public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public boolean hasWorkflowNodeMetadata() { - return targetMetadataCase_ == 8; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { - if (targetMetadataCase_ == 8) { - return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { - if (targetMetadataCase_ == 8) { - return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (outputResultCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); - } - if (outputResultCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(3, phase_); - } - if (startedAt_ != null) { - output.writeMessage(4, getStartedAt()); - } - if (duration_ != null) { - output.writeMessage(5, getDuration()); - } - if (createdAt_ != null) { - output.writeMessage(6, getCreatedAt()); - } - if (updatedAt_ != null) { - output.writeMessage(7, getUpdatedAt()); - } - if (targetMetadataCase_ == 8) { - output.writeMessage(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (outputResultCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); - } - if (outputResultCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, phase_); - } - if (startedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStartedAt()); - } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getDuration()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreatedAt()); - } - if (updatedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdatedAt()); - } - if (targetMetadataCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) obj; - - if (phase_ != other.phase_) return false; - if (hasStartedAt() != other.hasStartedAt()) return false; - if (hasStartedAt()) { - if (!getStartedAt() - .equals(other.getStartedAt())) return false; - } - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) 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 (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 1: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 2: - if (!getError() - .equals(other.getError())) return false; - break; - case 0: - default: - } - if (!getTargetMetadataCase().equals(other.getTargetMetadataCase())) return false; - switch (targetMetadataCase_) { - case 8: - if (!getWorkflowNodeMetadata() - .equals(other.getWorkflowNodeMetadata())) 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) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (hasStartedAt()) { - hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; - hash = (53 * hash) + getStartedAt().hashCode(); - } - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().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(); - } - switch (outputResultCase_) { - case 1: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 2: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - switch (targetMetadataCase_) { - case 8: - hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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; - } - /** - *
-     * Container for node execution details and results.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionClosure) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.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(); - phase_ = 0; - - if (startedAtBuilder_ == null) { - startedAt_ = null; - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - if (durationBuilder_ == null) { - duration_ = null; - } else { - duration_ = null; - durationBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - outputResultCase_ = 0; - outputResult_ = null; - targetMetadataCase_ = 0; - targetMetadata_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(this); - if (outputResultCase_ == 1) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 2) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - result.phase_ = phase_; - if (startedAtBuilder_ == null) { - result.startedAt_ = startedAt_; - } else { - result.startedAt_ = startedAtBuilder_.build(); - } - if (durationBuilder_ == null) { - result.duration_ = duration_; - } else { - result.duration_ = durationBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.build(); - } - if (updatedAtBuilder_ == null) { - result.updatedAt_ = updatedAt_; - } else { - result.updatedAt_ = updatedAtBuilder_.build(); - } - if (targetMetadataCase_ == 8) { - if (workflowNodeMetadataBuilder_ == null) { - result.targetMetadata_ = targetMetadata_; - } else { - result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); - } - } - result.outputResultCase_ = outputResultCase_; - result.targetMetadataCase_ = targetMetadataCase_; - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance()) return this; - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.hasStartedAt()) { - mergeStartedAt(other.getStartedAt()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - if (other.hasUpdatedAt()) { - mergeUpdatedAt(other.getUpdatedAt()); - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 1; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUTRESULT_NOT_SET: { - break; - } - } - switch (other.getTargetMetadataCase()) { - case WORKFLOW_NODE_METADATA: { - mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); - break; - } - case TARGETMETADATA_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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int targetMetadataCase_ = 0; - private java.lang.Object targetMetadata_; - public TargetMetadataCase - getTargetMetadataCase() { - return TargetMetadataCase.forNumber( - targetMetadataCase_); - } - - public Builder clearTargetMetadata() { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - return this; - } - - - /** - * string output_uri = 1; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 1) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string output_uri = 1; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 1) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string output_uri = 1; - */ - public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 1; - outputResult_ = value; - onChanged(); - return this; - } - /** - * string output_uri = 1; - */ - public Builder clearOutputUri() { - if (outputResultCase_ == 1) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - * string output_uri = 1; - */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 1; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 2) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 2) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 2)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 2; - onChanged();; - return errorBuilder_; - } - - private int phase_ = 0; - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.NodeExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; - } - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp startedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public boolean hasStartedAt() { - return startedAtBuilder_ != null || startedAt_ != null; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.Timestamp getStartedAt() { - if (startedAtBuilder_ == null) { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } else { - return startedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public Builder setStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startedAt_ = value; - onChanged(); - } else { - startedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public Builder setStartedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (startedAtBuilder_ == null) { - startedAt_ = builderForValue.build(); - onChanged(); - } else { - startedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (startedAt_ != null) { - startedAt_ = - com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); - } else { - startedAt_ = value; - } - onChanged(); - } else { - startedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public Builder clearStartedAt() { - if (startedAtBuilder_ == null) { - startedAt_ = null; - onChanged(); - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { - - onChanged(); - return getStartedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - if (startedAtBuilder_ != null) { - return startedAtBuilder_.getMessageOrBuilder(); - } else { - return startedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getStartedAtFieldBuilder() { - if (startedAtBuilder_ == null) { - startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartedAt(), - getParentForChildren(), - isClean()); - startedAt_ = null; - } - return startedAtBuilder_; - } - - private com.google.protobuf.Duration duration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public boolean hasDuration() { - return durationBuilder_ != null || duration_ != null; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } else { - return durationBuilder_.getMessage(); - } - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (duration_ != null) { - duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); - } else { - duration_ = value; - } - onChanged(); - } else { - durationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - duration_ = null; - onChanged(); - } else { - duration_ = null; - durationBuilder_ = null; - } - - return this; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); - duration_ = null; - } - return durationBuilder_; - } - - 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_; - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - 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; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - 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; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - 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_; - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public boolean hasUpdatedAt() { - return updatedAtBuilder_ != null || updatedAt_ != null; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - if (updatedAtBuilder_ == null) { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } else { - return updatedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - 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; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public Builder setUpdatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updatedAtBuilder_ == null) { - updatedAt_ = builderForValue.build(); - onChanged(); - } else { - updatedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - 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; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public Builder clearUpdatedAt() { - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - onChanged(); - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { - - onChanged(); - return getUpdatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - if (updatedAtBuilder_ != null) { - return updatedAtBuilder_.getMessageOrBuilder(); - } else { - return updatedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - 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_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public boolean hasWorkflowNodeMetadata() { - return targetMetadataCase_ == 8; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8) { - return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } else { - if (targetMetadataCase_ == 8) { - return workflowNodeMetadataBuilder_.getMessage(); - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder setWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { - if (workflowNodeMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetMetadata_ = value; - onChanged(); - } else { - workflowNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder setWorkflowNodeMetadata( - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder builderForValue) { - if (workflowNodeMetadataBuilder_ == null) { - targetMetadata_ = builderForValue.build(); - onChanged(); - } else { - workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder mergeWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8 && - targetMetadata_ != flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) { - targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.newBuilder((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_) - .mergeFrom(value).buildPartial(); - } else { - targetMetadata_ = value; - } - onChanged(); - } else { - if (targetMetadataCase_ == 8) { - workflowNodeMetadataBuilder_.mergeFrom(value); - } - workflowNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder clearWorkflowNodeMetadata() { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - } - } else { - if (targetMetadataCase_ == 8) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - } - workflowNodeMetadataBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { - return getWorkflowNodeMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { - if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { - return workflowNodeMetadataBuilder_.getMessageOrBuilder(); - } else { - if (targetMetadataCase_ == 8) { - return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> - getWorkflowNodeMetadataFieldBuilder() { - if (workflowNodeMetadataBuilder_ == null) { - if (!(targetMetadataCase_ == 8)) { - targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder>( - (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_, - getParentForChildren(), - isClean()); - targetMetadata_ = null; - } - targetMetadataCase_ = 8; - onChanged();; - return workflowNodeMetadataBuilder_; - } - @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:flyteidl.admin.NodeExecutionClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionClosure) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionClosure(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowNodeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowNodeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - boolean hasExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - } - /** - *
-   * Metadata for a WorkflowNode
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} - */ - public static final class WorkflowNodeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowNodeMetadata) - WorkflowNodeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowNodeMetadata.newBuilder() to construct. - private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowNodeMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowNodeMetadata( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); - } - - public static final int EXECUTIONID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - 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 (executionId_ != null) { - output.writeMessage(1, getExecutionId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecutionId()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) obj; - - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) 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 (hasExecutionId()) { - hash = (37 * hash) + EXECUTIONID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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; - } - /** - *
-     * Metadata for a WorkflowNode
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowNodeMetadata) - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.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 (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata build() { - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(this); - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) return this; - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - @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:flyteidl.admin.WorkflowNodeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowNodeMetadata) - private static final flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowNodeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowNodeMetadata(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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionGetDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Request structure to fetch inputs and output urls for a node execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} - */ - public static final class NodeExecutionGetDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataRequest) - NodeExecutionGetDataRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionGetDataRequest.newBuilder() to construct. - private NodeExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionGetDataRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionGetDataRequest( - 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: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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; - } - /** - *
-     * Request structure to fetch inputs and output urls for a node execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataRequest) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.NodeExecutionGetDataRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataRequest) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionGetDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionGetDataRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionGetDataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - boolean hasInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - flyteidl.admin.Common.UrlBlob getInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); - - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - boolean hasOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - flyteidl.admin.Common.UrlBlob getOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); - } - /** - *
-   * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} - */ - public static final class NodeExecutionGetDataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataResponse) - NodeExecutionGetDataResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionGetDataResponse.newBuilder() to construct. - private NodeExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionGetDataResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionGetDataResponse( - 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: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private flyteidl.admin.Common.UrlBlob inputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlob getInputs() { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private flyteidl.admin.Common.UrlBlob outputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public boolean hasOutputs() { - return outputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlob getOutputs() { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - 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 (inputs_ != null) { - output.writeMessage(1, getInputs()); - } - if (outputs_ != null) { - output.writeMessage(2, getOutputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputs()); - } - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputs()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) obj; - - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) 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 (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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; - } - /** - *
-     * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataResponse) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.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 (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance()) return this; - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.UrlBlob inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlob getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder setInputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.admin.Common.UrlBlob outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlob getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder setOutputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - @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:flyteidl.admin.NodeExecutionGetDataResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataResponse) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionGetDataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionGetDataResponse(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_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#flyteidl/admin/node_execution.proto\022\016f" + - "lyteidl.admin\032\033flyteidl/admin/common.pro" + - "to\032\035flyteidl/core/execution.proto\032\036flyte" + - "idl/core/identifier.proto\032\037google/protob" + - "uf/timestamp.proto\032\036google/protobuf/dura" + - "tion.proto\"M\n\027NodeExecutionGetRequest\0222\n" + - "\002id\030\001 \001(\0132&.flyteidl.core.NodeExecutionI" + - "dentifier\"\273\001\n\030NodeExecutionListRequest\022I" + - "\n\025workflow_execution_id\030\001 \001(\0132*.flyteidl" + - ".core.WorkflowExecutionIdentifier\022\r\n\005lim" + - "it\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t" + - "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"" + - "\272\001\n\037NodeExecutionForTaskListRequest\022A\n\021t" + - "ask_execution_id\030\001 \001(\0132&.flyteidl.core.T" + - "askExecutionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n" + - "\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by" + - "\030\005 \001(\0132\024.flyteidl.admin.Sort\"\306\001\n\rNodeExe" + - "cution\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeE" + - "xecutionIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n" + - "\007closure\030\003 \001(\0132$.flyteidl.admin.NodeExec" + - "utionClosure\0227\n\010metadata\030\004 \001(\0132%.flyteid" + - "l.admin.NodeExecutionMetaData\"\027\n\025NodeExe" + - "cutionMetaData\"Z\n\021NodeExecutionList\0226\n\017n" + - "ode_executions\030\001 \003(\0132\035.flyteidl.admin.No" + - "deExecution\022\r\n\005token\030\002 \001(\t\"\270\003\n\024NodeExecu" + - "tionClosure\022\024\n\noutput_uri\030\001 \001(\tH\000\022.\n\005err" + - "or\030\002 \001(\0132\035.flyteidl.core.ExecutionErrorH" + - "\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.core.NodeExe" + - "cution.Phase\022.\n\nstarted_at\030\004 \001(\0132\032.googl" + - "e.protobuf.Timestamp\022+\n\010duration\030\005 \001(\0132\031" + - ".google.protobuf.Duration\022.\n\ncreated_at\030" + - "\006 \001(\0132\032.google.protobuf.Timestamp\022.\n\nupd" + - "ated_at\030\007 \001(\0132\032.google.protobuf.Timestam" + - "p\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyt" + - "eidl.admin.WorkflowNodeMetadataH\001B\017\n\rout" + - "put_resultB\021\n\017target_metadata\"W\n\024Workflo" + - "wNodeMetadata\022?\n\013executionId\030\001 \001(\0132*.fly" + - "teidl.core.WorkflowExecutionIdentifier\"Q" + - "\n\033NodeExecutionGetDataRequest\0222\n\002id\030\001 \001(" + - "\0132&.flyteidl.core.NodeExecutionIdentifie" + - "r\"q\n\034NodeExecutionGetDataResponse\022\'\n\006inp" + - "uts\030\001 \001(\0132\027.flyteidl.admin.UrlBlob\022(\n\007ou" + - "tputs\030\002 \001(\0132\027.flyteidl.admin.UrlBlobB3Z1" + - "github.com/lyft/flyteidl/gen/pb-go/flyte" + - "idl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.Common.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor, - new java.lang.String[] { "WorkflowExecutionId", "Limit", "Token", "Filters", "SortBy", }); - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor, - new java.lang.String[] { "TaskExecutionId", "Limit", "Token", "Filters", "SortBy", }); - internal_static_flyteidl_admin_NodeExecution_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecution_descriptor, - new java.lang.String[] { "Id", "InputUri", "Closure", "Metadata", }); - internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_NodeExecutionList_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionList_descriptor, - new java.lang.String[] { "NodeExecutions", "Token", }); - internal_static_flyteidl_admin_NodeExecutionClosure_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionClosure_descriptor, - new java.lang.String[] { "OutputUri", "Error", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "WorkflowNodeMetadata", "OutputResult", "TargetMetadata", }); - internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor, - new java.lang.String[] { "ExecutionId", }); - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor, - new java.lang.String[] { "Inputs", "Outputs", }); - flyteidl.admin.Common.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/Notification.java b/gen/pb-java/flyteidl/admin/Notification.java deleted file mode 100644 index 97b698ff0..000000000 --- a/gen/pb-java/flyteidl/admin/Notification.java +++ /dev/null @@ -1,1325 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/notification.proto - -package flyteidl.admin; - -public final class Notification { - private Notification() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EmailMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailMessage) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.util.List - getRecipientsEmailList(); - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - int getRecipientsEmailCount(); - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.lang.String getRecipientsEmail(int index); - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - com.google.protobuf.ByteString - getRecipientsEmailBytes(int index); - - /** - *
-     * The email of the sender.
-     * This populates the FROM field.
-     * 
- * - * string sender_email = 2; - */ - java.lang.String getSenderEmail(); - /** - *
-     * The email of the sender.
-     * This populates the FROM field.
-     * 
- * - * string sender_email = 2; - */ - com.google.protobuf.ByteString - getSenderEmailBytes(); - - /** - *
-     * The content of the subject line.
-     * This populates the SUBJECT field.
-     * 
- * - * string subject_line = 3; - */ - java.lang.String getSubjectLine(); - /** - *
-     * The content of the subject line.
-     * This populates the SUBJECT field.
-     * 
- * - * string subject_line = 3; - */ - com.google.protobuf.ByteString - getSubjectLineBytes(); - - /** - *
-     * The content of the email body.
-     * This populates the BODY field.
-     * 
- * - * string body = 4; - */ - java.lang.String getBody(); - /** - *
-     * The content of the email body.
-     * This populates the BODY field.
-     * 
- * - * string body = 4; - */ - com.google.protobuf.ByteString - getBodyBytes(); - } - /** - *
-   * Represents the Email object that is sent to a publisher/subscriber
-   * to forward the notification.
-   * Note: This is internal to Admin and doesn't need to be exposed to other components.
-   * 
- * - * Protobuf type {@code flyteidl.admin.EmailMessage} - */ - public static final class EmailMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailMessage) - EmailMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use EmailMessage.newBuilder() to construct. - private EmailMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EmailMessage() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - senderEmail_ = ""; - subjectLine_ = ""; - body_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmailMessage( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recipientsEmail_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - senderEmail_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - subjectLine_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - body_ = 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)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); - } - - private int bitField0_; - public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList recipientsEmail_; - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_; - } - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - - public static final int SENDER_EMAIL_FIELD_NUMBER = 2; - private volatile java.lang.Object senderEmail_; - /** - *
-     * The email of the sender.
-     * This populates the FROM field.
-     * 
- * - * string sender_email = 2; - */ - public java.lang.String getSenderEmail() { - java.lang.Object ref = senderEmail_; - 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(); - senderEmail_ = s; - return s; - } - } - /** - *
-     * The email of the sender.
-     * This populates the FROM field.
-     * 
- * - * string sender_email = 2; - */ - public com.google.protobuf.ByteString - getSenderEmailBytes() { - java.lang.Object ref = senderEmail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - senderEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBJECT_LINE_FIELD_NUMBER = 3; - private volatile java.lang.Object subjectLine_; - /** - *
-     * The content of the subject line.
-     * This populates the SUBJECT field.
-     * 
- * - * string subject_line = 3; - */ - public java.lang.String getSubjectLine() { - java.lang.Object ref = subjectLine_; - 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(); - subjectLine_ = s; - return s; - } - } - /** - *
-     * The content of the subject line.
-     * This populates the SUBJECT field.
-     * 
- * - * string subject_line = 3; - */ - public com.google.protobuf.ByteString - getSubjectLineBytes() { - java.lang.Object ref = subjectLine_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subjectLine_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BODY_FIELD_NUMBER = 4; - private volatile java.lang.Object body_; - /** - *
-     * The content of the email body.
-     * This populates the BODY field.
-     * 
- * - * string body = 4; - */ - public java.lang.String getBody() { - java.lang.Object ref = body_; - 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(); - body_ = s; - return s; - } - } - /** - *
-     * The content of the email body.
-     * This populates the BODY field.
-     * 
- * - * string body = 4; - */ - public com.google.protobuf.ByteString - getBodyBytes() { - java.lang.Object ref = body_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - body_ = 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 { - for (int i = 0; i < recipientsEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); - } - if (!getSenderEmailBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, senderEmail_); - } - if (!getSubjectLineBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subjectLine_); - } - if (!getBodyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, body_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < recipientsEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getRecipientsEmailList().size(); - } - if (!getSenderEmailBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, senderEmail_); - } - if (!getSubjectLineBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subjectLine_); - } - if (!getBodyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, body_); - } - 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 flyteidl.admin.Notification.EmailMessage)) { - return super.equals(obj); - } - flyteidl.admin.Notification.EmailMessage other = (flyteidl.admin.Notification.EmailMessage) obj; - - if (!getRecipientsEmailList() - .equals(other.getRecipientsEmailList())) return false; - if (!getSenderEmail() - .equals(other.getSenderEmail())) return false; - if (!getSubjectLine() - .equals(other.getSubjectLine())) return false; - if (!getBody() - .equals(other.getBody())) 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 (getRecipientsEmailCount() > 0) { - hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getRecipientsEmailList().hashCode(); - } - hash = (37 * hash) + SENDER_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getSenderEmail().hashCode(); - hash = (37 * hash) + SUBJECT_LINE_FIELD_NUMBER; - hash = (53 * hash) + getSubjectLine().hashCode(); - hash = (37 * hash) + BODY_FIELD_NUMBER; - hash = (53 * hash) + getBody().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Notification.EmailMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Notification.EmailMessage 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 flyteidl.admin.Notification.EmailMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Notification.EmailMessage 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 flyteidl.admin.Notification.EmailMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Notification.EmailMessage 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(flyteidl.admin.Notification.EmailMessage 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; - } - /** - *
-     * Represents the Email object that is sent to a publisher/subscriber
-     * to forward the notification.
-     * Note: This is internal to Admin and doesn't need to be exposed to other components.
-     * 
- * - * Protobuf type {@code flyteidl.admin.EmailMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailMessage) - flyteidl.admin.Notification.EmailMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); - } - - // Construct using flyteidl.admin.Notification.EmailMessage.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(); - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - senderEmail_ = ""; - - subjectLine_ = ""; - - body_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Notification.EmailMessage getDefaultInstanceForType() { - return flyteidl.admin.Notification.EmailMessage.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Notification.EmailMessage build() { - flyteidl.admin.Notification.EmailMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Notification.EmailMessage buildPartial() { - flyteidl.admin.Notification.EmailMessage result = new flyteidl.admin.Notification.EmailMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.recipientsEmail_ = recipientsEmail_; - result.senderEmail_ = senderEmail_; - result.subjectLine_ = subjectLine_; - result.body_ = body_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.Notification.EmailMessage) { - return mergeFrom((flyteidl.admin.Notification.EmailMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Notification.EmailMessage other) { - if (other == flyteidl.admin.Notification.EmailMessage.getDefaultInstance()) return this; - if (!other.recipientsEmail_.isEmpty()) { - if (recipientsEmail_.isEmpty()) { - recipientsEmail_ = other.recipientsEmail_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRecipientsEmailIsMutable(); - recipientsEmail_.addAll(other.recipientsEmail_); - } - onChanged(); - } - if (!other.getSenderEmail().isEmpty()) { - senderEmail_ = other.senderEmail_; - onChanged(); - } - if (!other.getSubjectLine().isEmpty()) { - subjectLine_ = other.subjectLine_; - onChanged(); - } - if (!other.getBody().isEmpty()) { - body_ = other.body_; - 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 { - flyteidl.admin.Notification.EmailMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Notification.EmailMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRecipientsEmailIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_.getUnmodifiableView(); - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder setRecipientsEmail( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addAllRecipientsEmail( - java.lang.Iterable values) { - ensureRecipientsEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipientsEmail_); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder clearRecipientsEmail() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - - private java.lang.Object senderEmail_ = ""; - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public java.lang.String getSenderEmail() { - java.lang.Object ref = senderEmail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - senderEmail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public com.google.protobuf.ByteString - getSenderEmailBytes() { - java.lang.Object ref = senderEmail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - senderEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public Builder setSenderEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - senderEmail_ = value; - onChanged(); - return this; - } - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public Builder clearSenderEmail() { - - senderEmail_ = getDefaultInstance().getSenderEmail(); - onChanged(); - return this; - } - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public Builder setSenderEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - senderEmail_ = value; - onChanged(); - return this; - } - - private java.lang.Object subjectLine_ = ""; - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public java.lang.String getSubjectLine() { - java.lang.Object ref = subjectLine_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subjectLine_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public com.google.protobuf.ByteString - getSubjectLineBytes() { - java.lang.Object ref = subjectLine_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subjectLine_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public Builder setSubjectLine( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subjectLine_ = value; - onChanged(); - return this; - } - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public Builder clearSubjectLine() { - - subjectLine_ = getDefaultInstance().getSubjectLine(); - onChanged(); - return this; - } - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public Builder setSubjectLineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subjectLine_ = value; - onChanged(); - return this; - } - - private java.lang.Object body_ = ""; - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public java.lang.String getBody() { - java.lang.Object ref = body_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - body_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public com.google.protobuf.ByteString - getBodyBytes() { - java.lang.Object ref = body_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - body_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public Builder setBody( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - body_ = value; - onChanged(); - return this; - } - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public Builder clearBody() { - - body_ = getDefaultInstance().getBody(); - onChanged(); - return this; - } - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public Builder setBodyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - body_ = 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:flyteidl.admin.EmailMessage) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailMessage) - private static final flyteidl.admin.Notification.EmailMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Notification.EmailMessage(); - } - - public static flyteidl.admin.Notification.EmailMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmailMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmailMessage(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 flyteidl.admin.Notification.EmailMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_EmailMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_EmailMessage_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!flyteidl/admin/notification.proto\022\016fly" + - "teidl.admin\"b\n\014EmailMessage\022\030\n\020recipient" + - "s_email\030\001 \003(\t\022\024\n\014sender_email\030\002 \001(\t\022\024\n\014s" + - "ubject_line\030\003 \001(\t\022\014\n\004body\030\004 \001(\tB3Z1githu" + - "b.com/lyft/flyteidl/gen/pb-go/flyteidl/a" + - "dminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_admin_EmailMessage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_EmailMessage_descriptor, - new java.lang.String[] { "RecipientsEmail", "SenderEmail", "SubjectLine", "Body", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java b/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java deleted file mode 100644 index 329aae51e..000000000 --- a/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java +++ /dev/null @@ -1,4856 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/project_domain_attributes.proto - -package flyteidl.admin; - -public final class ProjectDomainAttributesOuterClass { - private ProjectDomainAttributesOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ProjectDomainAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - boolean hasMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributes} - */ - public static final class ProjectDomainAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributes) - ProjectDomainAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributes.newBuilder() to construct. - private ProjectDomainAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributes() { - project_ = ""; - domain_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributes( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; - if (matchingAttributes_ != null) { - subBuilder = matchingAttributes_.toBuilder(); - } - matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(matchingAttributes_); - matchingAttributes_ = 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 3; - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public boolean hasMatchingAttributes() { - return matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - return getMatchingAttributes(); - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (matchingAttributes_ != null) { - output.writeMessage(3, getMatchingAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (matchingAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMatchingAttributes()); - } - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; - if (hasMatchingAttributes()) { - if (!getMatchingAttributes() - .equals(other.getMatchingAttributes())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - if (hasMatchingAttributes()) { - hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getMatchingAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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 flyteidl.admin.ProjectDomainAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributes) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.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(); - project_ = ""; - - domain_ = ""; - - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes(this); - result.project_ = project_; - result.domain_ = domain_; - if (matchingAttributesBuilder_ == null) { - result.matchingAttributes_ = matchingAttributes_; - } else { - result.matchingAttributes_ = matchingAttributesBuilder_.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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.hasMatchingAttributes()) { - mergeMatchingAttributes(other.getMatchingAttributes()); - } - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public boolean hasMatchingAttributes() { - return matchingAttributesBuilder_ != null || matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } else { - return matchingAttributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - matchingAttributes_ = value; - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public Builder setMatchingAttributes( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = builderForValue.build(); - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (matchingAttributes_ != null) { - matchingAttributes_ = - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); - } else { - matchingAttributes_ = value; - } - onChanged(); - } else { - matchingAttributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public Builder clearMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - onChanged(); - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { - - onChanged(); - return getMatchingAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - if (matchingAttributesBuilder_ != null) { - return matchingAttributesBuilder_.getMessageOrBuilder(); - } else { - return matchingAttributes_ == null ? - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> - getMatchingAttributesFieldBuilder() { - if (matchingAttributesBuilder_ == null) { - matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( - getMatchingAttributes(), - getParentForChildren(), - isClean()); - matchingAttributes_ = null; - } - return matchingAttributesBuilder_; - } - @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:flyteidl.admin.ProjectDomainAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributes) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributes(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes(); - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder(); - } - /** - *
-   * Sets custom attributes for a project-domain combination.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateRequest} - */ - public static final class ProjectDomainAttributesUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - ProjectDomainAttributesUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesUpdateRequest.newBuilder() to construct. - private ProjectDomainAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesUpdateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesUpdateRequest( - 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: { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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; - } - /** - *
-     * Sets custom attributes for a project-domain combination.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesUpdateRequest(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateResponse} - */ - public static final class ProjectDomainAttributesUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - ProjectDomainAttributesUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesUpdateResponse.newBuilder() to construct. - private ProjectDomainAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesUpdateResponse( - 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; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse(this); - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesUpdateResponse(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - int getResourceTypeValue(); - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetRequest} - */ - public static final class ProjectDomainAttributesGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesGetRequest) - ProjectDomainAttributesGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesGetRequest.newBuilder() to construct. - private ProjectDomainAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesGetRequest() { - project_ = ""; - domain_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesGetRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; - private int resourceType_; - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(3, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, resourceType_); - } - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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 flyteidl.admin.ProjectDomainAttributesGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesGetRequest) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.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(); - project_ = ""; - - domain_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.resourceType_ = resourceType_; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - 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:flyteidl.admin.ProjectDomainAttributesGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetRequest) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesGetRequest(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesGetResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesGetResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes(); - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetResponse} - */ - public static final class ProjectDomainAttributesGetResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesGetResponse) - ProjectDomainAttributesGetResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesGetResponse.newBuilder() to construct. - private ProjectDomainAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesGetResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesGetResponse( - 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: { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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 flyteidl.admin.ProjectDomainAttributesGetResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesGetResponse) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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:flyteidl.admin.ProjectDomainAttributesGetResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetResponse) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesGetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesGetResponse(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesDeleteRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - int getResourceTypeValue(); - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteRequest} - */ - public static final class ProjectDomainAttributesDeleteRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - ProjectDomainAttributesDeleteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesDeleteRequest.newBuilder() to construct. - private ProjectDomainAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesDeleteRequest() { - project_ = ""; - domain_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesDeleteRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; - private int resourceType_; - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(3, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, resourceType_); - } - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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 flyteidl.admin.ProjectDomainAttributesDeleteRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.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(); - project_ = ""; - - domain_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.resourceType_ = resourceType_; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - 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:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesDeleteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesDeleteRequest(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesDeleteResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteResponse} - */ - public static final class ProjectDomainAttributesDeleteResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - ProjectDomainAttributesDeleteResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesDeleteResponse.newBuilder() to construct. - private ProjectDomainAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesDeleteResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesDeleteResponse( - 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; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse(this); - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesDeleteResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesDeleteResponse(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_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.flyteidl/admin/project_domain_attribut" + - "es.proto\022\016flyteidl.admin\032\'flyteidl/admin" + - "/matchable_resource.proto\"{\n\027ProjectDoma" + - "inAttributes\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030" + - "\002 \001(\t\022?\n\023matching_attributes\030\003 \001(\0132\".fly" + - "teidl.admin.MatchingAttributes\"c\n$Projec" + - "tDomainAttributesUpdateRequest\022;\n\nattrib" + - "utes\030\001 \001(\0132\'.flyteidl.admin.ProjectDomai" + - "nAttributes\"\'\n%ProjectDomainAttributesUp" + - "dateResponse\"~\n!ProjectDomainAttributesG" + - "etRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + - "(\t\0228\n\rresource_type\030\003 \001(\0162!.flyteidl.adm" + - "in.MatchableResource\"a\n\"ProjectDomainAtt" + - "ributesGetResponse\022;\n\nattributes\030\001 \001(\0132\'" + - ".flyteidl.admin.ProjectDomainAttributes\"" + - "\201\001\n$ProjectDomainAttributesDeleteRequest" + - "\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\0228\n\rres" + - "ource_type\030\003 \001(\0162!.flyteidl.admin.Matcha" + - "bleResource\"\'\n%ProjectDomainAttributesDe" + - "leteResponseB3Z1github.com/lyft/flyteidl" + - "/gen/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor, - new java.lang.String[] { "Project", "Domain", "MatchingAttributes", }); - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "ResourceType", }); - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "ResourceType", }); - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor, - new java.lang.String[] { }); - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/ProjectOuterClass.java b/gen/pb-java/flyteidl/admin/ProjectOuterClass.java deleted file mode 100644 index e0777663a..000000000 --- a/gen/pb-java/flyteidl/admin/ProjectOuterClass.java +++ /dev/null @@ -1,4299 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/project.proto - -package flyteidl.admin; - -public final class ProjectOuterClass { - private ProjectOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DomainOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Domain) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - */ - java.lang.String getId(); - /** - * string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - java.lang.String getName(); - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - *
-   * Namespace within a project commonly used to differentiate between different service instances.
-   * e.g. "production", "development", etc.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Domain} - */ - public static final class Domain extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Domain) - DomainOrBuilder { - private static final long serialVersionUID = 0L; - // Use Domain.newBuilder() to construct. - private Domain(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Domain() { - id_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Domain( - 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; - } - 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * string id = 1; - */ - 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; - } - } - /** - * string id = 1; - */ - 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_; - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - 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; - } - } - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof flyteidl.admin.ProjectOuterClass.Domain)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.Domain other = (flyteidl.admin.ProjectOuterClass.Domain) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Domain 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 flyteidl.admin.ProjectOuterClass.Domain parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Domain 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 flyteidl.admin.ProjectOuterClass.Domain parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Domain 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(flyteidl.admin.ProjectOuterClass.Domain 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; - } - /** - *
-     * Namespace within a project commonly used to differentiate between different service instances.
-     * e.g. "production", "development", etc.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Domain} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Domain) - flyteidl.admin.ProjectOuterClass.DomainOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.Domain.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_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Domain getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Domain build() { - flyteidl.admin.ProjectOuterClass.Domain result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Domain buildPartial() { - flyteidl.admin.ProjectOuterClass.Domain result = new flyteidl.admin.ProjectOuterClass.Domain(this); - result.id_ = id_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.admin.ProjectOuterClass.Domain) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.Domain)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Domain other) { - if (other == flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - flyteidl.admin.ProjectOuterClass.Domain parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.Domain) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object id_ = ""; - /** - * string id = 1; - */ - 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; - } - } - /** - * string id = 1; - */ - 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; - } - } - /** - * string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - * string id = 1; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * string id = 1; - */ - 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_ = ""; - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - 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; - } - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - 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; - } - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:flyteidl.admin.Domain) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Domain) - private static final flyteidl.admin.ProjectOuterClass.Domain DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Domain(); - } - - public static flyteidl.admin.ProjectOuterClass.Domain getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Domain parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Domain(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 flyteidl.admin.ProjectOuterClass.Domain getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Project) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - */ - java.lang.String getId(); - /** - * string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - java.lang.String getName(); - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - java.util.List - getDomainsList(); - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - flyteidl.admin.ProjectOuterClass.Domain getDomains(int index); - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - int getDomainsCount(); - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - java.util.List - getDomainsOrBuilderList(); - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( - int index); - - /** - * string description = 4; - */ - java.lang.String getDescription(); - /** - * string description = 4; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - } - /** - *
-   * Top-level namespace used to classify different entities like workflows and executions.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Project} - */ - public static final class Project extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Project) - ProjectOrBuilder { - private static final long serialVersionUID = 0L; - // Use Project.newBuilder() to construct. - private Project(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Project() { - id_ = ""; - name_ = ""; - domains_ = java.util.Collections.emptyList(); - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Project( - 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: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - domains_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - domains_.add( - input.readMessage(flyteidl.admin.ProjectOuterClass.Domain.parser(), extensionRegistry)); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = 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_ & 0x00000004) != 0)) { - domains_ = java.util.Collections.unmodifiableList(domains_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * string id = 1; - */ - 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; - } - } - /** - * string id = 1; - */ - 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_; - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - 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; - } - } - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - 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 DOMAINS_FIELD_NUMBER = 3; - private java.util.List domains_; - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List getDomainsList() { - return domains_; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List - getDomainsOrBuilderList() { - return domains_; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public int getDomainsCount() { - return domains_.size(); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { - return domains_.get(index); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( - int index) { - return domains_.get(index); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - private volatile java.lang.Object description_; - /** - * string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - * string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = 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 (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - for (int i = 0; i < domains_.size(); i++) { - output.writeMessage(3, domains_.get(i)); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - for (int i = 0; i < domains_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, domains_.get(i)); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - 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 flyteidl.admin.ProjectOuterClass.Project)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.Project other = (flyteidl.admin.ProjectOuterClass.Project) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getDomainsList() - .equals(other.getDomainsList())) return false; - if (!getDescription() - .equals(other.getDescription())) 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(); - if (getDomainsCount() > 0) { - hash = (37 * hash) + DOMAINS_FIELD_NUMBER; - hash = (53 * hash) + getDomainsList().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Project 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 flyteidl.admin.ProjectOuterClass.Project parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Project 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 flyteidl.admin.ProjectOuterClass.Project parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Project 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(flyteidl.admin.ProjectOuterClass.Project 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; - } - /** - *
-     * Top-level namespace used to classify different entities like workflows and executions.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Project} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Project) - flyteidl.admin.ProjectOuterClass.ProjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.Project.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDomainsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - name_ = ""; - - if (domainsBuilder_ == null) { - domains_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - domainsBuilder_.clear(); - } - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Project getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Project build() { - flyteidl.admin.ProjectOuterClass.Project result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Project buildPartial() { - flyteidl.admin.ProjectOuterClass.Project result = new flyteidl.admin.ProjectOuterClass.Project(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.id_ = id_; - result.name_ = name_; - if (domainsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - domains_ = java.util.Collections.unmodifiableList(domains_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.domains_ = domains_; - } else { - result.domains_ = domainsBuilder_.build(); - } - result.description_ = description_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.ProjectOuterClass.Project) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.Project)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Project other) { - if (other == flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (domainsBuilder_ == null) { - if (!other.domains_.isEmpty()) { - if (domains_.isEmpty()) { - domains_ = other.domains_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureDomainsIsMutable(); - domains_.addAll(other.domains_); - } - onChanged(); - } - } else { - if (!other.domains_.isEmpty()) { - if (domainsBuilder_.isEmpty()) { - domainsBuilder_.dispose(); - domainsBuilder_ = null; - domains_ = other.domains_; - bitField0_ = (bitField0_ & ~0x00000004); - domainsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDomainsFieldBuilder() : null; - } else { - domainsBuilder_.addAllMessages(other.domains_); - } - } - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - 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 { - flyteidl.admin.ProjectOuterClass.Project parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.Project) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * string id = 1; - */ - 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; - } - } - /** - * string id = 1; - */ - 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; - } - } - /** - * string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - * string id = 1; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * string id = 1; - */ - 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_ = ""; - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - 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; - } - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - 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; - } - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.util.List domains_ = - java.util.Collections.emptyList(); - private void ensureDomainsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - domains_ = new java.util.ArrayList(domains_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> domainsBuilder_; - - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List getDomainsList() { - if (domainsBuilder_ == null) { - return java.util.Collections.unmodifiableList(domains_); - } else { - return domainsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public int getDomainsCount() { - if (domainsBuilder_ == null) { - return domains_.size(); - } else { - return domainsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { - if (domainsBuilder_ == null) { - return domains_.get(index); - } else { - return domainsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder setDomains( - int index, flyteidl.admin.ProjectOuterClass.Domain value) { - if (domainsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); - domains_.set(index, value); - onChanged(); - } else { - domainsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder setDomains( - int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - domains_.set(index, builderForValue.build()); - onChanged(); - } else { - domainsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addDomains(flyteidl.admin.ProjectOuterClass.Domain value) { - if (domainsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); - domains_.add(value); - onChanged(); - } else { - domainsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addDomains( - int index, flyteidl.admin.ProjectOuterClass.Domain value) { - if (domainsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); - domains_.add(index, value); - onChanged(); - } else { - domainsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addDomains( - flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - domains_.add(builderForValue.build()); - onChanged(); - } else { - domainsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addDomains( - int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - domains_.add(index, builderForValue.build()); - onChanged(); - } else { - domainsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addAllDomains( - java.lang.Iterable values) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, domains_); - onChanged(); - } else { - domainsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder clearDomains() { - if (domainsBuilder_ == null) { - domains_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - domainsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder removeDomains(int index) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - domains_.remove(index); - onChanged(); - } else { - domainsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain.Builder getDomainsBuilder( - int index) { - return getDomainsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( - int index) { - if (domainsBuilder_ == null) { - return domains_.get(index); } else { - return domainsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List - getDomainsOrBuilderList() { - if (domainsBuilder_ != null) { - return domainsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(domains_); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder() { - return getDomainsFieldBuilder().addBuilder( - flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder( - int index) { - return getDomainsFieldBuilder().addBuilder( - index, flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List - getDomainsBuilderList() { - return getDomainsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> - getDomainsFieldBuilder() { - if (domainsBuilder_ == null) { - domainsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder>( - domains_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - domains_ = null; - } - return domainsBuilder_; - } - - private java.lang.Object description_ = ""; - /** - * string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 4; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 4; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 4; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = 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:flyteidl.admin.Project) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Project) - private static final flyteidl.admin.ProjectOuterClass.Project DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Project(); - } - - public static flyteidl.admin.ProjectOuterClass.Project getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Project parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Project(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 flyteidl.admin.ProjectOuterClass.Project getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Projects) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - java.util.List - getProjectsList(); - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - flyteidl.admin.ProjectOuterClass.Project getProjects(int index); - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - int getProjectsCount(); - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - java.util.List - getProjectsOrBuilderList(); - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.admin.Projects} - */ - public static final class Projects extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Projects) - ProjectsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Projects.newBuilder() to construct. - private Projects(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Projects() { - projects_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Projects( - 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)) { - projects_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - projects_.add( - input.readMessage(flyteidl.admin.ProjectOuterClass.Project.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)) { - projects_ = java.util.Collections.unmodifiableList(projects_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); - } - - public static final int PROJECTS_FIELD_NUMBER = 1; - private java.util.List projects_; - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List getProjectsList() { - return projects_; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List - getProjectsOrBuilderList() { - return projects_; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public int getProjectsCount() { - return projects_.size(); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { - return projects_.get(index); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( - int index) { - return projects_.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 < projects_.size(); i++) { - output.writeMessage(1, projects_.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 < projects_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, projects_.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 flyteidl.admin.ProjectOuterClass.Projects)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.Projects other = (flyteidl.admin.ProjectOuterClass.Projects) obj; - - if (!getProjectsList() - .equals(other.getProjectsList())) 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 (getProjectsCount() > 0) { - hash = (37 * hash) + PROJECTS_FIELD_NUMBER; - hash = (53 * hash) + getProjectsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Projects 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 flyteidl.admin.ProjectOuterClass.Projects parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Projects 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 flyteidl.admin.ProjectOuterClass.Projects parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Projects 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(flyteidl.admin.ProjectOuterClass.Projects 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 flyteidl.admin.Projects} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Projects) - flyteidl.admin.ProjectOuterClass.ProjectsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.Projects.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getProjectsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (projectsBuilder_ == null) { - projects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - projectsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Projects getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Projects build() { - flyteidl.admin.ProjectOuterClass.Projects result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Projects buildPartial() { - flyteidl.admin.ProjectOuterClass.Projects result = new flyteidl.admin.ProjectOuterClass.Projects(this); - int from_bitField0_ = bitField0_; - if (projectsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - projects_ = java.util.Collections.unmodifiableList(projects_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.projects_ = projects_; - } else { - result.projects_ = projectsBuilder_.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 flyteidl.admin.ProjectOuterClass.Projects) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.Projects)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Projects other) { - if (other == flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance()) return this; - if (projectsBuilder_ == null) { - if (!other.projects_.isEmpty()) { - if (projects_.isEmpty()) { - projects_ = other.projects_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProjectsIsMutable(); - projects_.addAll(other.projects_); - } - onChanged(); - } - } else { - if (!other.projects_.isEmpty()) { - if (projectsBuilder_.isEmpty()) { - projectsBuilder_.dispose(); - projectsBuilder_ = null; - projects_ = other.projects_; - bitField0_ = (bitField0_ & ~0x00000001); - projectsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProjectsFieldBuilder() : null; - } else { - projectsBuilder_.addAllMessages(other.projects_); - } - } - } - 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 { - flyteidl.admin.ProjectOuterClass.Projects parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.Projects) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List projects_ = - java.util.Collections.emptyList(); - private void ensureProjectsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - projects_ = new java.util.ArrayList(projects_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectsBuilder_; - - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List getProjectsList() { - if (projectsBuilder_ == null) { - return java.util.Collections.unmodifiableList(projects_); - } else { - return projectsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public int getProjectsCount() { - if (projectsBuilder_ == null) { - return projects_.size(); - } else { - return projectsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { - if (projectsBuilder_ == null) { - return projects_.get(index); - } else { - return projectsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder setProjects( - int index, flyteidl.admin.ProjectOuterClass.Project value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.set(index, value); - onChanged(); - } else { - projectsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder setProjects( - int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.set(index, builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addProjects(flyteidl.admin.ProjectOuterClass.Project value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.add(value); - onChanged(); - } else { - projectsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addProjects( - int index, flyteidl.admin.ProjectOuterClass.Project value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.add(index, value); - onChanged(); - } else { - projectsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addProjects( - flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.add(builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addProjects( - int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.add(index, builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addAllProjects( - java.lang.Iterable values) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projects_); - onChanged(); - } else { - projectsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder clearProjects() { - if (projectsBuilder_ == null) { - projects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - projectsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder removeProjects(int index) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.remove(index); - onChanged(); - } else { - projectsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectsBuilder( - int index) { - return getProjectsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( - int index) { - if (projectsBuilder_ == null) { - return projects_.get(index); } else { - return projectsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List - getProjectsOrBuilderList() { - if (projectsBuilder_ != null) { - return projectsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(projects_); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder() { - return getProjectsFieldBuilder().addBuilder( - flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder( - int index) { - return getProjectsFieldBuilder().addBuilder( - index, flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List - getProjectsBuilderList() { - return getProjectsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> - getProjectsFieldBuilder() { - if (projectsBuilder_ == null) { - projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( - projects_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - projects_ = null; - } - return projectsBuilder_; - } - @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:flyteidl.admin.Projects) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Projects) - private static final flyteidl.admin.ProjectOuterClass.Projects DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Projects(); - } - - public static flyteidl.admin.ProjectOuterClass.Projects getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Projects parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Projects(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 flyteidl.admin.ProjectOuterClass.Projects getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectListRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.admin.ProjectListRequest} - */ - public static final class ProjectListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectListRequest) - ProjectListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectListRequest.newBuilder() to construct. - private ProjectListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectListRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectListRequest( - 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; - 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.ProjectListRequest other = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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(flyteidl.admin.ProjectOuterClass.ProjectListRequest 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 flyteidl.admin.ProjectListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectListRequest) - flyteidl.admin.ProjectOuterClass.ProjectListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.ProjectListRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectListRequest build() { - flyteidl.admin.ProjectOuterClass.ProjectListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectListRequest buildPartial() { - flyteidl.admin.ProjectOuterClass.ProjectListRequest result = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(this); - 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectListRequest other) { - if (other == flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance()) return this; - 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 { - flyteidl.admin.ProjectOuterClass.ProjectListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.ProjectListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectListRequest) - private static final flyteidl.admin.ProjectOuterClass.ProjectListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(); - } - - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectListRequest(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 flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectRegisterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.Project project = 1; - */ - boolean hasProject(); - /** - * .flyteidl.admin.Project project = 1; - */ - flyteidl.admin.ProjectOuterClass.Project getProject(); - /** - * .flyteidl.admin.Project project = 1; - */ - flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.admin.ProjectRegisterRequest} - */ - public static final class ProjectRegisterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterRequest) - ProjectRegisterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectRegisterRequest.newBuilder() to construct. - private ProjectRegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectRegisterRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectRegisterRequest( - 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: { - flyteidl.admin.ProjectOuterClass.Project.Builder subBuilder = null; - if (project_ != null) { - subBuilder = project_.toBuilder(); - } - project_ = input.readMessage(flyteidl.admin.ProjectOuterClass.Project.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(project_); - project_ = 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private flyteidl.admin.ProjectOuterClass.Project project_; - /** - * .flyteidl.admin.Project project = 1; - */ - public boolean hasProject() { - return project_ != null; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project getProject() { - return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { - return getProject(); - } - - 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 (project_ != null) { - output.writeMessage(1, getProject()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (project_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProject()); - } - 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) obj; - - if (hasProject() != other.hasProject()) return false; - if (hasProject()) { - if (!getProject() - .equals(other.getProject())) 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 (hasProject()) { - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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(flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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 flyteidl.admin.ProjectRegisterRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterRequest) - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.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 (projectBuilder_ == null) { - project_ = null; - } else { - project_ = null; - projectBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest build() { - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest buildPartial() { - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(this); - if (projectBuilder_ == null) { - result.project_ = project_; - } else { - result.project_ = projectBuilder_.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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other) { - if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance()) return this; - if (other.hasProject()) { - mergeProject(other.getProject()); - } - 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 { - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.ProjectOuterClass.Project project_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectBuilder_; - /** - * .flyteidl.admin.Project project = 1; - */ - public boolean hasProject() { - return projectBuilder_ != null || project_ != null; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project getProject() { - if (projectBuilder_ == null) { - return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; - } else { - return projectBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.Project project = 1; - */ - public Builder setProject(flyteidl.admin.ProjectOuterClass.Project value) { - if (projectBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - project_ = value; - onChanged(); - } else { - projectBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public Builder setProject( - flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { - if (projectBuilder_ == null) { - project_ = builderForValue.build(); - onChanged(); - } else { - projectBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public Builder mergeProject(flyteidl.admin.ProjectOuterClass.Project value) { - if (projectBuilder_ == null) { - if (project_ != null) { - project_ = - flyteidl.admin.ProjectOuterClass.Project.newBuilder(project_).mergeFrom(value).buildPartial(); - } else { - project_ = value; - } - onChanged(); - } else { - projectBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public Builder clearProject() { - if (projectBuilder_ == null) { - project_ = null; - onChanged(); - } else { - project_ = null; - projectBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectBuilder() { - - onChanged(); - return getProjectFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { - if (projectBuilder_ != null) { - return projectBuilder_.getMessageOrBuilder(); - } else { - return project_ == null ? - flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; - } - } - /** - * .flyteidl.admin.Project project = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> - getProjectFieldBuilder() { - if (projectBuilder_ == null) { - projectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( - getProject(), - getParentForChildren(), - isClean()); - project_ = null; - } - return projectBuilder_; - } - @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:flyteidl.admin.ProjectRegisterRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterRequest) - private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(); - } - - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectRegisterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectRegisterRequest(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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectRegisterResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.admin.ProjectRegisterResponse} - */ - public static final class ProjectRegisterResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterResponse) - ProjectRegisterResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectRegisterResponse.newBuilder() to construct. - private ProjectRegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectRegisterResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectRegisterResponse( - 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; - 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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(flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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 flyteidl.admin.ProjectRegisterResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterResponse) - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse build() { - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse buildPartial() { - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(this); - 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other) { - if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.ProjectRegisterResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterResponse) - private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(); - } - - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectRegisterResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectRegisterResponse(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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Domain_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Domain_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Project_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Project_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Projects_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Projects_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectRegisterResponse_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\034flyteidl/admin/project.proto\022\016flyteidl" + - ".admin\"\"\n\006Domain\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001" + - "(\t\"a\n\007Project\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022" + - "\'\n\007domains\030\003 \003(\0132\026.flyteidl.admin.Domain" + - "\022\023\n\013description\030\004 \001(\t\"5\n\010Projects\022)\n\010pro" + - "jects\030\001 \003(\0132\027.flyteidl.admin.Project\"\024\n\022" + - "ProjectListRequest\"B\n\026ProjectRegisterReq" + - "uest\022(\n\007project\030\001 \001(\0132\027.flyteidl.admin.P" + - "roject\"\031\n\027ProjectRegisterResponseB3Z1git" + - "hub.com/lyft/flyteidl/gen/pb-go/flyteidl" + - "/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_admin_Domain_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_Domain_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Domain_descriptor, - new java.lang.String[] { "Id", "Name", }); - internal_static_flyteidl_admin_Project_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_Project_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Project_descriptor, - new java.lang.String[] { "Id", "Name", "Domains", "Description", }); - internal_static_flyteidl_admin_Projects_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_Projects_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Projects_descriptor, - new java.lang.String[] { "Projects", }); - internal_static_flyteidl_admin_ProjectListRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectListRequest_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor, - new java.lang.String[] { "Project", }); - internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java b/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java deleted file mode 100644 index a43038512..000000000 --- a/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java +++ /dev/null @@ -1,1848 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/schedule.proto - -package flyteidl.admin; - -public final class ScheduleOuterClass { - private ScheduleOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * Represents a frequency at which to run a schedule.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.FixedRateUnit} - */ - public enum FixedRateUnit - implements com.google.protobuf.ProtocolMessageEnum { - /** - * MINUTE = 0; - */ - MINUTE(0), - /** - * HOUR = 1; - */ - HOUR(1), - /** - * DAY = 2; - */ - DAY(2), - UNRECOGNIZED(-1), - ; - - /** - * MINUTE = 0; - */ - public static final int MINUTE_VALUE = 0; - /** - * HOUR = 1; - */ - public static final int HOUR_VALUE = 1; - /** - * DAY = 2; - */ - public static final int DAY_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FixedRateUnit valueOf(int value) { - return forNumber(value); - } - - public static FixedRateUnit forNumber(int value) { - switch (value) { - case 0: return MINUTE; - case 1: return HOUR; - case 2: return DAY; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - FixedRateUnit> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FixedRateUnit findValueByNumber(int number) { - return FixedRateUnit.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.admin.ScheduleOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final FixedRateUnit[] VALUES = values(); - - public static FixedRateUnit 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 FixedRateUnit(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.FixedRateUnit) - } - - public interface FixedRateOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.FixedRate) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 value = 1; - */ - int getValue(); - - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - int getUnitValue(); - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit(); - } - /** - *
-   * Option for schedules run at a certain frequency, e.g. every 2 minutes.
-   * 
- * - * Protobuf type {@code flyteidl.admin.FixedRate} - */ - public static final class FixedRate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.FixedRate) - FixedRateOrBuilder { - private static final long serialVersionUID = 0L; - // Use FixedRate.newBuilder() to construct. - private FixedRate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FixedRate() { - unit_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FixedRate( - 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 8: { - - value_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - unit_ = rawValue; - 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 flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private int value_; - /** - * uint32 value = 1; - */ - public int getValue() { - return value_; - } - - public static final int UNIT_FIELD_NUMBER = 2; - private int unit_; - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public int getUnitValue() { - return unit_; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { - @SuppressWarnings("deprecation") - flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); - return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; - } - - 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 (value_ != 0) { - output.writeUInt32(1, value_); - } - if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { - output.writeEnum(2, unit_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, value_); - } - if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, unit_); - } - 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 flyteidl.admin.ScheduleOuterClass.FixedRate)) { - return super.equals(obj); - } - flyteidl.admin.ScheduleOuterClass.FixedRate other = (flyteidl.admin.ScheduleOuterClass.FixedRate) obj; - - if (getValue() - != other.getValue()) return false; - if (unit_ != other.unit_) 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) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue(); - hash = (37 * hash) + UNIT_FIELD_NUMBER; - hash = (53 * hash) + unit_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate 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 flyteidl.admin.ScheduleOuterClass.FixedRate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate 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 flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate 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(flyteidl.admin.ScheduleOuterClass.FixedRate 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; - } - /** - *
-     * Option for schedules run at a certain frequency, e.g. every 2 minutes.
-     * 
- * - * Protobuf type {@code flyteidl.admin.FixedRate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.FixedRate) - flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); - } - - // Construct using flyteidl.admin.ScheduleOuterClass.FixedRate.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(); - value_ = 0; - - unit_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.FixedRate build() { - flyteidl.admin.ScheduleOuterClass.FixedRate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.FixedRate buildPartial() { - flyteidl.admin.ScheduleOuterClass.FixedRate result = new flyteidl.admin.ScheduleOuterClass.FixedRate(this); - result.value_ = value_; - result.unit_ = unit_; - 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 flyteidl.admin.ScheduleOuterClass.FixedRate) { - return mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.FixedRate other) { - if (other == flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) return this; - if (other.getValue() != 0) { - setValue(other.getValue()); - } - if (other.unit_ != 0) { - setUnitValue(other.getUnitValue()); - } - 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 { - flyteidl.admin.ScheduleOuterClass.FixedRate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ScheduleOuterClass.FixedRate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int value_ ; - /** - * uint32 value = 1; - */ - public int getValue() { - return value_; - } - /** - * uint32 value = 1; - */ - public Builder setValue(int value) { - - value_ = value; - onChanged(); - return this; - } - /** - * uint32 value = 1; - */ - public Builder clearValue() { - - value_ = 0; - onChanged(); - return this; - } - - private int unit_ = 0; - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public int getUnitValue() { - return unit_; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public Builder setUnitValue(int value) { - unit_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { - @SuppressWarnings("deprecation") - flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); - return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public Builder setUnit(flyteidl.admin.ScheduleOuterClass.FixedRateUnit value) { - if (value == null) { - throw new NullPointerException(); - } - - unit_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public Builder clearUnit() { - - unit_ = 0; - 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:flyteidl.admin.FixedRate) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.FixedRate) - private static final flyteidl.admin.ScheduleOuterClass.FixedRate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.FixedRate(); - } - - public static flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FixedRate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FixedRate(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 flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ScheduleOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Schedule) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-     * 
- * - * string cron_expression = 1; - */ - java.lang.String getCronExpression(); - /** - *
-     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-     * 
- * - * string cron_expression = 1; - */ - com.google.protobuf.ByteString - getCronExpressionBytes(); - - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - boolean hasRate(); - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - flyteidl.admin.ScheduleOuterClass.FixedRate getRate(); - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder(); - - /** - *
-     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-     * 
- * - * string kickoff_time_input_arg = 3; - */ - java.lang.String getKickoffTimeInputArg(); - /** - *
-     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-     * 
- * - * string kickoff_time_input_arg = 3; - */ - com.google.protobuf.ByteString - getKickoffTimeInputArgBytes(); - - public flyteidl.admin.ScheduleOuterClass.Schedule.ScheduleExpressionCase getScheduleExpressionCase(); - } - /** - *
-   * Defines complete set of information required to trigger an execution on a schedule.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Schedule} - */ - public static final class Schedule extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Schedule) - ScheduleOrBuilder { - private static final long serialVersionUID = 0L; - // Use Schedule.newBuilder() to construct. - private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Schedule() { - kickoffTimeInputArg_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Schedule( - 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(); - scheduleExpressionCase_ = 1; - scheduleExpression_ = s; - break; - } - case 18: { - flyteidl.admin.ScheduleOuterClass.FixedRate.Builder subBuilder = null; - if (scheduleExpressionCase_ == 2) { - subBuilder = ((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_).toBuilder(); - } - scheduleExpression_ = - input.readMessage(flyteidl.admin.ScheduleOuterClass.FixedRate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); - scheduleExpression_ = subBuilder.buildPartial(); - } - scheduleExpressionCase_ = 2; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - kickoffTimeInputArg_ = 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 flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); - } - - private int scheduleExpressionCase_ = 0; - private java.lang.Object scheduleExpression_; - public enum ScheduleExpressionCase - implements com.google.protobuf.Internal.EnumLite { - CRON_EXPRESSION(1), - RATE(2), - SCHEDULEEXPRESSION_NOT_SET(0); - private final int value; - private ScheduleExpressionCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ScheduleExpressionCase valueOf(int value) { - return forNumber(value); - } - - public static ScheduleExpressionCase forNumber(int value) { - switch (value) { - case 1: return CRON_EXPRESSION; - case 2: return RATE; - case 0: return SCHEDULEEXPRESSION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ScheduleExpressionCase - getScheduleExpressionCase() { - return ScheduleExpressionCase.forNumber( - scheduleExpressionCase_); - } - - public static final int CRON_EXPRESSION_FIELD_NUMBER = 1; - /** - *
-     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-     * 
- * - * string cron_expression = 1; - */ - public java.lang.String getCronExpression() { - java.lang.Object ref = ""; - if (scheduleExpressionCase_ == 1) { - ref = scheduleExpression_; - } - 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(); - if (scheduleExpressionCase_ == 1) { - scheduleExpression_ = s; - } - return s; - } - } - /** - *
-     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-     * 
- * - * string cron_expression = 1; - */ - public com.google.protobuf.ByteString - getCronExpressionBytes() { - java.lang.Object ref = ""; - if (scheduleExpressionCase_ == 1) { - ref = scheduleExpression_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (scheduleExpressionCase_ == 1) { - scheduleExpression_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RATE_FIELD_NUMBER = 2; - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public boolean hasRate() { - return scheduleExpressionCase_ == 2; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { - if (scheduleExpressionCase_ == 2) { - return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { - if (scheduleExpressionCase_ == 2) { - return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - - public static final int KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER = 3; - private volatile java.lang.Object kickoffTimeInputArg_; - /** - *
-     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-     * 
- * - * string kickoff_time_input_arg = 3; - */ - public java.lang.String getKickoffTimeInputArg() { - java.lang.Object ref = kickoffTimeInputArg_; - 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(); - kickoffTimeInputArg_ = s; - return s; - } - } - /** - *
-     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-     * 
- * - * string kickoff_time_input_arg = 3; - */ - public com.google.protobuf.ByteString - getKickoffTimeInputArgBytes() { - java.lang.Object ref = kickoffTimeInputArg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kickoffTimeInputArg_ = 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 (scheduleExpressionCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scheduleExpression_); - } - if (scheduleExpressionCase_ == 2) { - output.writeMessage(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); - } - if (!getKickoffTimeInputArgBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kickoffTimeInputArg_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scheduleExpressionCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scheduleExpression_); - } - if (scheduleExpressionCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); - } - if (!getKickoffTimeInputArgBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kickoffTimeInputArg_); - } - 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 flyteidl.admin.ScheduleOuterClass.Schedule)) { - return super.equals(obj); - } - flyteidl.admin.ScheduleOuterClass.Schedule other = (flyteidl.admin.ScheduleOuterClass.Schedule) obj; - - if (!getKickoffTimeInputArg() - .equals(other.getKickoffTimeInputArg())) return false; - if (!getScheduleExpressionCase().equals(other.getScheduleExpressionCase())) return false; - switch (scheduleExpressionCase_) { - case 1: - if (!getCronExpression() - .equals(other.getCronExpression())) return false; - break; - case 2: - if (!getRate() - .equals(other.getRate())) 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) + KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER; - hash = (53 * hash) + getKickoffTimeInputArg().hashCode(); - switch (scheduleExpressionCase_) { - case 1: - hash = (37 * hash) + CRON_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getCronExpression().hashCode(); - break; - case 2: - hash = (37 * hash) + RATE_FIELD_NUMBER; - hash = (53 * hash) + getRate().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule 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 flyteidl.admin.ScheduleOuterClass.Schedule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule 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 flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule 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(flyteidl.admin.ScheduleOuterClass.Schedule 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; - } - /** - *
-     * Defines complete set of information required to trigger an execution on a schedule.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Schedule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Schedule) - flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); - } - - // Construct using flyteidl.admin.ScheduleOuterClass.Schedule.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(); - kickoffTimeInputArg_ = ""; - - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstanceForType() { - return flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.Schedule build() { - flyteidl.admin.ScheduleOuterClass.Schedule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.Schedule buildPartial() { - flyteidl.admin.ScheduleOuterClass.Schedule result = new flyteidl.admin.ScheduleOuterClass.Schedule(this); - if (scheduleExpressionCase_ == 1) { - result.scheduleExpression_ = scheduleExpression_; - } - if (scheduleExpressionCase_ == 2) { - if (rateBuilder_ == null) { - result.scheduleExpression_ = scheduleExpression_; - } else { - result.scheduleExpression_ = rateBuilder_.build(); - } - } - result.kickoffTimeInputArg_ = kickoffTimeInputArg_; - result.scheduleExpressionCase_ = scheduleExpressionCase_; - 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 flyteidl.admin.ScheduleOuterClass.Schedule) { - return mergeFrom((flyteidl.admin.ScheduleOuterClass.Schedule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.Schedule other) { - if (other == flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance()) return this; - if (!other.getKickoffTimeInputArg().isEmpty()) { - kickoffTimeInputArg_ = other.kickoffTimeInputArg_; - onChanged(); - } - switch (other.getScheduleExpressionCase()) { - case CRON_EXPRESSION: { - scheduleExpressionCase_ = 1; - scheduleExpression_ = other.scheduleExpression_; - onChanged(); - break; - } - case RATE: { - mergeRate(other.getRate()); - break; - } - case SCHEDULEEXPRESSION_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 { - flyteidl.admin.ScheduleOuterClass.Schedule parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ScheduleOuterClass.Schedule) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int scheduleExpressionCase_ = 0; - private java.lang.Object scheduleExpression_; - public ScheduleExpressionCase - getScheduleExpressionCase() { - return ScheduleExpressionCase.forNumber( - scheduleExpressionCase_); - } - - public Builder clearScheduleExpression() { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - onChanged(); - return this; - } - - - /** - *
-       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-       * 
- * - * string cron_expression = 1; - */ - public java.lang.String getCronExpression() { - java.lang.Object ref = ""; - if (scheduleExpressionCase_ == 1) { - ref = scheduleExpression_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (scheduleExpressionCase_ == 1) { - scheduleExpression_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-       * 
- * - * string cron_expression = 1; - */ - public com.google.protobuf.ByteString - getCronExpressionBytes() { - java.lang.Object ref = ""; - if (scheduleExpressionCase_ == 1) { - ref = scheduleExpression_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (scheduleExpressionCase_ == 1) { - scheduleExpression_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-       * 
- * - * string cron_expression = 1; - */ - public Builder setCronExpression( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - scheduleExpressionCase_ = 1; - scheduleExpression_ = value; - onChanged(); - return this; - } - /** - *
-       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-       * 
- * - * string cron_expression = 1; - */ - public Builder clearCronExpression() { - if (scheduleExpressionCase_ == 1) { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - onChanged(); - } - return this; - } - /** - *
-       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-       * 
- * - * string cron_expression = 1; - */ - public Builder setCronExpressionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - scheduleExpressionCase_ = 1; - scheduleExpression_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> rateBuilder_; - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public boolean hasRate() { - return scheduleExpressionCase_ == 2; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { - if (rateBuilder_ == null) { - if (scheduleExpressionCase_ == 2) { - return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } else { - if (scheduleExpressionCase_ == 2) { - return rateBuilder_.getMessage(); - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public Builder setRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { - if (rateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleExpression_ = value; - onChanged(); - } else { - rateBuilder_.setMessage(value); - } - scheduleExpressionCase_ = 2; - return this; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public Builder setRate( - flyteidl.admin.ScheduleOuterClass.FixedRate.Builder builderForValue) { - if (rateBuilder_ == null) { - scheduleExpression_ = builderForValue.build(); - onChanged(); - } else { - rateBuilder_.setMessage(builderForValue.build()); - } - scheduleExpressionCase_ = 2; - return this; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public Builder mergeRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { - if (rateBuilder_ == null) { - if (scheduleExpressionCase_ == 2 && - scheduleExpression_ != flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) { - scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.newBuilder((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_) - .mergeFrom(value).buildPartial(); - } else { - scheduleExpression_ = value; - } - onChanged(); - } else { - if (scheduleExpressionCase_ == 2) { - rateBuilder_.mergeFrom(value); - } - rateBuilder_.setMessage(value); - } - scheduleExpressionCase_ = 2; - return this; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public Builder clearRate() { - if (rateBuilder_ == null) { - if (scheduleExpressionCase_ == 2) { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - onChanged(); - } - } else { - if (scheduleExpressionCase_ == 2) { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - } - rateBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRate.Builder getRateBuilder() { - return getRateFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { - if ((scheduleExpressionCase_ == 2) && (rateBuilder_ != null)) { - return rateBuilder_.getMessageOrBuilder(); - } else { - if (scheduleExpressionCase_ == 2) { - return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> - getRateFieldBuilder() { - if (rateBuilder_ == null) { - if (!(scheduleExpressionCase_ == 2)) { - scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - rateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder>( - (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_, - getParentForChildren(), - isClean()); - scheduleExpression_ = null; - } - scheduleExpressionCase_ = 2; - onChanged();; - return rateBuilder_; - } - - private java.lang.Object kickoffTimeInputArg_ = ""; - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public java.lang.String getKickoffTimeInputArg() { - java.lang.Object ref = kickoffTimeInputArg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kickoffTimeInputArg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public com.google.protobuf.ByteString - getKickoffTimeInputArgBytes() { - java.lang.Object ref = kickoffTimeInputArg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kickoffTimeInputArg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public Builder setKickoffTimeInputArg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kickoffTimeInputArg_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public Builder clearKickoffTimeInputArg() { - - kickoffTimeInputArg_ = getDefaultInstance().getKickoffTimeInputArg(); - onChanged(); - return this; - } - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public Builder setKickoffTimeInputArgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kickoffTimeInputArg_ = 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:flyteidl.admin.Schedule) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Schedule) - private static final flyteidl.admin.ScheduleOuterClass.Schedule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.Schedule(); - } - - public static flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(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 flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_FixedRate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_FixedRate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Schedule_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Schedule_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\035flyteidl/admin/schedule.proto\022\016flyteid" + - "l.admin\"G\n\tFixedRate\022\r\n\005value\030\001 \001(\r\022+\n\004u" + - "nit\030\002 \001(\0162\035.flyteidl.admin.FixedRateUnit" + - "\"\206\001\n\010Schedule\022\031\n\017cron_expression\030\001 \001(\tH\000" + - "\022)\n\004rate\030\002 \001(\0132\031.flyteidl.admin.FixedRat" + - "eH\000\022\036\n\026kickoff_time_input_arg\030\003 \001(\tB\024\n\022S" + - "cheduleExpression*.\n\rFixedRateUnit\022\n\n\006MI" + - "NUTE\020\000\022\010\n\004HOUR\020\001\022\007\n\003DAY\020\002B3Z1github.com/" + - "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + - "proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_admin_FixedRate_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_FixedRate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_FixedRate_descriptor, - new java.lang.String[] { "Value", "Unit", }); - internal_static_flyteidl_admin_Schedule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_Schedule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Schedule_descriptor, - new java.lang.String[] { "CronExpression", "Rate", "KickoffTimeInputArg", "ScheduleExpression", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java b/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java deleted file mode 100644 index 1b76dda2a..000000000 --- a/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java +++ /dev/null @@ -1,8862 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/task_execution.proto - -package flyteidl.admin; - -public final class TaskExecutionOuterClass { - private TaskExecutionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TaskExecutionGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * A message used to fetch a single task execution entity.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} - */ - public static final class TaskExecutionGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetRequest) - TaskExecutionGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionGetRequest.newBuilder() to construct. - private TaskExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionGetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionGetRequest( - 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: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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 message used to fetch a single task execution entity.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetRequest) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.TaskExecutionGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetRequest) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionGetRequest(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - boolean hasNodeExecutionId(); - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to retrieve a list of task execution entities.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} - */ - public static final class TaskExecutionListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionListRequest) - TaskExecutionListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionListRequest.newBuilder() to construct. - private TaskExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionListRequest() { - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionListRequest( - 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: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (nodeExecutionId_ != null) { - subBuilder = nodeExecutionId_.toBuilder(); - } - nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodeExecutionId_); - nodeExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - limit_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); - } - - public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public boolean hasNodeExecutionId() { - return nodeExecutionId_ != null; - } - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - return getNodeExecutionId(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 4; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - 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(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (nodeExecutionId_ != null) { - output.writeMessage(1, getNodeExecutionId()); - } - if (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nodeExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNodeExecutionId()); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) obj; - - if (hasNodeExecutionId() != other.hasNodeExecutionId()) return false; - if (hasNodeExecutionId()) { - if (!getNodeExecutionId() - .equals(other.getNodeExecutionId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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 (hasNodeExecutionId()) { - hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeExecutionId().hashCode(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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; - } - /** - *
-     * Represents a request structure to retrieve a list of task execution entities.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionListRequest) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.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 (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = null; - } else { - nodeExecutionId_ = null; - nodeExecutionIdBuilder_ = null; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(this); - if (nodeExecutionIdBuilder_ == null) { - result.nodeExecutionId_ = nodeExecutionId_; - } else { - result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance()) return this; - if (other.hasNodeExecutionId()) { - mergeNodeExecutionId(other.getNodeExecutionId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public boolean hasNodeExecutionId() { - return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } else { - return nodeExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeExecutionId_ = value; - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public Builder setNodeExecutionId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = builderForValue.build(); - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (nodeExecutionId_ != null) { - nodeExecutionId_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); - } else { - nodeExecutionId_ = value; - } - onChanged(); - } else { - nodeExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public Builder clearNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = null; - onChanged(); - } else { - nodeExecutionId_ = null; - nodeExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { - - onChanged(); - return getNodeExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - if (nodeExecutionIdBuilder_ != null) { - return nodeExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return nodeExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getNodeExecutionIdFieldBuilder() { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getNodeExecutionId(), - getParentForChildren(), - isClean()); - nodeExecutionId_ = null; - } - return nodeExecutionIdBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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:flyteidl.admin.TaskExecutionListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionListRequest) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionListRequest(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecution) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - java.lang.String getInputUri(); - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - com.google.protobuf.ByteString - getInputUriBytes(); - - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - boolean hasClosure(); - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure(); - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder(); - - /** - *
-     * Whether this task spawned nodes.
-     * 
- * - * bool is_parent = 4; - */ - boolean getIsParent(); - } - /** - *
-   * Encapsulates all details for a single task execution entity.
-   * A task execution represents an instantiated task, including all inputs and additional
-   * metadata as well as computed results included state, outputs, and duration-based attributes.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecution} - */ - public static final class TaskExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecution) - TaskExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecution.newBuilder() to construct. - private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecution() { - inputUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecution( - 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: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - inputUri_ = s; - break; - } - case 26: { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - isParent_ = input.readBool(); - 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int INPUT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object inputUri_; - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - 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(); - inputUri_ = s; - return s; - } - } - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLOSURE_FIELD_NUMBER = 3; - private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_; - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { - return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; - } - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - public static final int IS_PARENT_FIELD_NUMBER = 4; - private boolean isParent_; - /** - *
-     * Whether this task spawned nodes.
-     * 
- * - * bool is_parent = 4; - */ - public boolean getIsParent() { - return isParent_; - } - - 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 (!getInputUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); - } - if (closure_ != null) { - output.writeMessage(3, getClosure()); - } - if (isParent_ != false) { - output.writeBool(4, isParent_); - } - 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 (!getInputUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClosure()); - } - if (isParent_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isParent_); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecution other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getInputUri() - .equals(other.getInputUri())) return false; - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) return false; - } - if (getIsParent() - != other.getIsParent()) 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) + INPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getInputUri().hashCode(); - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (37 * hash) + IS_PARENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsParent()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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; - } - /** - *
-     * Encapsulates all details for a single task execution entity.
-     * A task execution represents an instantiated task, including all inputs and additional
-     * metadata as well as computed results included state, outputs, and duration-based attributes.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecution) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecution.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - inputUri_ = ""; - - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - isParent_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.inputUri_ = inputUri_; - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.build(); - } - result.isParent_ = isParent_; - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecution other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getInputUri().isEmpty()) { - inputUri_ = other.inputUri_; - onChanged(); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - if (other.getIsParent() != false) { - setIsParent(other.getIsParent()); - } - 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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object inputUri_ = ""; - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputUri_ = value; - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder clearInputUri() { - - inputUri_ = getDefaultInstance().getInputUri(); - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputUri_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> closureBuilder_; - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public Builder setClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public Builder setClosure( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public Builder mergeClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - - private boolean isParent_ ; - /** - *
-       * Whether this task spawned nodes.
-       * 
- * - * bool is_parent = 4; - */ - public boolean getIsParent() { - return isParent_; - } - /** - *
-       * Whether this task spawned nodes.
-       * 
- * - * bool is_parent = 4; - */ - public Builder setIsParent(boolean value) { - - isParent_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether this task spawned nodes.
-       * 
- * - * bool is_parent = 4; - */ - public Builder clearIsParent() { - - isParent_ = false; - 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:flyteidl.admin.TaskExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecution) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecution(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - java.util.List - getTaskExecutionsList(); - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index); - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - int getTaskExecutionsCount(); - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - java.util.List - getTaskExecutionsOrBuilderList(); - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Response structure for a query to list of task execution entities.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionList} - */ - public static final class TaskExecutionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionList) - TaskExecutionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionList.newBuilder() to construct. - private TaskExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionList() { - taskExecutions_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionList( - 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)) { - taskExecutions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - taskExecutions_.add( - input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecution.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); - } - - private int bitField0_; - public static final int TASK_EXECUTIONS_FIELD_NUMBER = 1; - private java.util.List taskExecutions_; - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List getTaskExecutionsList() { - return taskExecutions_; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List - getTaskExecutionsOrBuilderList() { - return taskExecutions_; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public int getTaskExecutionsCount() { - return taskExecutions_.size(); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { - return taskExecutions_.get(index); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( - int index) { - return taskExecutions_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < taskExecutions_.size(); i++) { - output.writeMessage(1, taskExecutions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < taskExecutions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, taskExecutions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) obj; - - if (!getTaskExecutionsList() - .equals(other.getTaskExecutionsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getTaskExecutionsCount() > 0) { - hash = (37 * hash) + TASK_EXECUTIONS_FIELD_NUMBER; - hash = (53 * hash) + getTaskExecutionsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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; - } - /** - *
-     * Response structure for a query to list of task execution entities.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionList) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTaskExecutionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (taskExecutionsBuilder_ == null) { - taskExecutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - taskExecutionsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (taskExecutionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taskExecutions_ = taskExecutions_; - } else { - result.taskExecutions_ = taskExecutionsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance()) return this; - if (taskExecutionsBuilder_ == null) { - if (!other.taskExecutions_.isEmpty()) { - if (taskExecutions_.isEmpty()) { - taskExecutions_ = other.taskExecutions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTaskExecutionsIsMutable(); - taskExecutions_.addAll(other.taskExecutions_); - } - onChanged(); - } - } else { - if (!other.taskExecutions_.isEmpty()) { - if (taskExecutionsBuilder_.isEmpty()) { - taskExecutionsBuilder_.dispose(); - taskExecutionsBuilder_ = null; - taskExecutions_ = other.taskExecutions_; - bitField0_ = (bitField0_ & ~0x00000001); - taskExecutionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTaskExecutionsFieldBuilder() : null; - } else { - taskExecutionsBuilder_.addAllMessages(other.taskExecutions_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List taskExecutions_ = - java.util.Collections.emptyList(); - private void ensureTaskExecutionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - taskExecutions_ = new java.util.ArrayList(taskExecutions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> taskExecutionsBuilder_; - - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List getTaskExecutionsList() { - if (taskExecutionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(taskExecutions_); - } else { - return taskExecutionsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public int getTaskExecutionsCount() { - if (taskExecutionsBuilder_ == null) { - return taskExecutions_.size(); - } else { - return taskExecutionsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { - if (taskExecutionsBuilder_ == null) { - return taskExecutions_.get(index); - } else { - return taskExecutionsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder setTaskExecutions( - int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { - if (taskExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaskExecutionsIsMutable(); - taskExecutions_.set(index, value); - onChanged(); - } else { - taskExecutionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder setTaskExecutions( - int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - taskExecutions_.set(index, builderForValue.build()); - onChanged(); - } else { - taskExecutionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addTaskExecutions(flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { - if (taskExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaskExecutionsIsMutable(); - taskExecutions_.add(value); - onChanged(); - } else { - taskExecutionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addTaskExecutions( - int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { - if (taskExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaskExecutionsIsMutable(); - taskExecutions_.add(index, value); - onChanged(); - } else { - taskExecutionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addTaskExecutions( - flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - taskExecutions_.add(builderForValue.build()); - onChanged(); - } else { - taskExecutionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addTaskExecutions( - int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - taskExecutions_.add(index, builderForValue.build()); - onChanged(); - } else { - taskExecutionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addAllTaskExecutions( - java.lang.Iterable values) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, taskExecutions_); - onChanged(); - } else { - taskExecutionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder clearTaskExecutions() { - if (taskExecutionsBuilder_ == null) { - taskExecutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - taskExecutionsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder removeTaskExecutions(int index) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - taskExecutions_.remove(index); - onChanged(); - } else { - taskExecutionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder getTaskExecutionsBuilder( - int index) { - return getTaskExecutionsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( - int index) { - if (taskExecutionsBuilder_ == null) { - return taskExecutions_.get(index); } else { - return taskExecutionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List - getTaskExecutionsOrBuilderList() { - if (taskExecutionsBuilder_ != null) { - return taskExecutionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taskExecutions_); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder() { - return getTaskExecutionsFieldBuilder().addBuilder( - flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder( - int index) { - return getTaskExecutionsFieldBuilder().addBuilder( - index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List - getTaskExecutionsBuilderList() { - return getTaskExecutionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> - getTaskExecutionsFieldBuilder() { - if (taskExecutionsBuilder_ == null) { - taskExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder>( - taskExecutions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - taskExecutions_ = null; - } - return taskExecutionsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.TaskExecutionList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionList) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionList(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-     * 
- * - * string output_uri = 1; - */ - java.lang.String getOutputUri(); - /** - *
-     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-     * 
- * - * string output_uri = 1; - */ - com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - boolean hasError(); - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * The last recorded phase for this task execution.
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - int getPhaseValue(); - /** - *
-     * The last recorded phase for this task execution.
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - flyteidl.core.Execution.TaskExecution.Phase getPhase(); - - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - java.util.List - getLogsList(); - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - flyteidl.core.Execution.TaskLog getLogs(int index); - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - int getLogsCount(); - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - java.util.List - getLogsOrBuilderList(); - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index); - - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - boolean hasStartedAt(); - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - com.google.protobuf.Timestamp getStartedAt(); - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); - - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - boolean hasDuration(); - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.Duration getDuration(); - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - boolean hasUpdatedAt(); - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - com.google.protobuf.Timestamp getUpdatedAt(); - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); - - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - boolean hasCustomInfo(); - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - com.google.protobuf.Struct getCustomInfo(); - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); - - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.OutputResultCase getOutputResultCase(); - } - /** - *
-   * Container for task execution details and results.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} - */ - public static final class TaskExecutionClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionClosure) - TaskExecutionClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionClosure.newBuilder() to construct. - private TaskExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionClosure() { - phase_ = 0; - logs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionClosure( - 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(); - outputResultCase_ = 1; - outputResult_ = s; - break; - } - case 18: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 2) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 2; - break; - } - case 24: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - logs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - logs_.add( - input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startedAt_ != null) { - subBuilder = startedAt_.toBuilder(); - } - startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startedAt_); - startedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - 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 66: { - 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; - } - case 74: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (customInfo_ != null) { - subBuilder = customInfo_.toBuilder(); - } - customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customInfo_); - customInfo_ = 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_ & 0x00000008) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); - } - - private int bitField0_; - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUT_URI(1), - ERROR(2), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 1: return OUTPUT_URI; - case 2: return ERROR; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 1; - /** - *
-     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-     * 
- * - * string output_uri = 1; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - 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(); - if (outputResultCase_ == 1) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-     * 
- * - * string output_uri = 1; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 1) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 2; - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int PHASE_FIELD_NUMBER = 3; - private int phase_; - /** - *
-     * The last recorded phase for this task execution.
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-     * The last recorded phase for this task execution.
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - - public static final int LOGS_FIELD_NUMBER = 4; - private java.util.List logs_; - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List getLogsList() { - return logs_; - } - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public int getLogsCount() { - return logs_.size(); - } - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - return logs_.get(index); - } - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - return logs_.get(index); - } - - public static final int STARTED_AT_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp startedAt_; - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public boolean hasStartedAt() { - return startedAt_ != null; - } - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp getStartedAt() { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - return getStartedAt(); - } - - public static final int DURATION_FIELD_NUMBER = 6; - private com.google.protobuf.Duration duration_; - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return duration_ != null; - } - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return getDuration(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - public static final int UPDATED_AT_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp updatedAt_; - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public boolean hasUpdatedAt() { - return updatedAt_ != null; - } - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - return getUpdatedAt(); - } - - public static final int CUSTOM_INFO_FIELD_NUMBER = 9; - private com.google.protobuf.Struct customInfo_; - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public boolean hasCustomInfo() { - return customInfo_ != null; - } - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.Struct getCustomInfo() { - return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { - return getCustomInfo(); - } - - 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 (outputResultCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); - } - if (outputResultCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(3, phase_); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(4, logs_.get(i)); - } - if (startedAt_ != null) { - output.writeMessage(5, getStartedAt()); - } - if (duration_ != null) { - output.writeMessage(6, getDuration()); - } - if (createdAt_ != null) { - output.writeMessage(7, getCreatedAt()); - } - if (updatedAt_ != null) { - output.writeMessage(8, getUpdatedAt()); - } - if (customInfo_ != null) { - output.writeMessage(9, getCustomInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (outputResultCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); - } - if (outputResultCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, phase_); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, logs_.get(i)); - } - if (startedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getStartedAt()); - } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDuration()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreatedAt()); - } - if (updatedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdatedAt()); - } - if (customInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCustomInfo()); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) obj; - - if (phase_ != other.phase_) return false; - if (!getLogsList() - .equals(other.getLogsList())) return false; - if (hasStartedAt() != other.hasStartedAt()) return false; - if (hasStartedAt()) { - if (!getStartedAt() - .equals(other.getStartedAt())) return false; - } - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) 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 (hasCustomInfo() != other.hasCustomInfo()) return false; - if (hasCustomInfo()) { - if (!getCustomInfo() - .equals(other.getCustomInfo())) return false; - } - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 1: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 2: - if (!getError() - .equals(other.getError())) 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) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - if (hasStartedAt()) { - hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; - hash = (53 * hash) + getStartedAt().hashCode(); - } - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().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(); - } - if (hasCustomInfo()) { - hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; - hash = (53 * hash) + getCustomInfo().hashCode(); - } - switch (outputResultCase_) { - case 1: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 2: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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; - } - /** - *
-     * Container for task execution details and results.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionClosure) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - phase_ = 0; - - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - logsBuilder_.clear(); - } - if (startedAtBuilder_ == null) { - startedAt_ = null; - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - if (durationBuilder_ == null) { - duration_ = null; - } else { - duration_ = null; - durationBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - if (customInfoBuilder_ == null) { - customInfo_ = null; - } else { - customInfo_ = null; - customInfoBuilder_ = null; - } - outputResultCase_ = 0; - outputResult_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (outputResultCase_ == 1) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 2) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - result.phase_ = phase_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - if (startedAtBuilder_ == null) { - result.startedAt_ = startedAt_; - } else { - result.startedAt_ = startedAtBuilder_.build(); - } - if (durationBuilder_ == null) { - result.duration_ = duration_; - } else { - result.duration_ = durationBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.build(); - } - if (updatedAtBuilder_ == null) { - result.updatedAt_ = updatedAt_; - } else { - result.updatedAt_ = updatedAtBuilder_.build(); - } - if (customInfoBuilder_ == null) { - result.customInfo_ = customInfo_; - } else { - result.customInfo_ = customInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - result.outputResultCase_ = outputResultCase_; - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance()) return this; - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000008); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogsFieldBuilder() : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - if (other.hasStartedAt()) { - mergeStartedAt(other.getStartedAt()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - if (other.hasUpdatedAt()) { - mergeUpdatedAt(other.getUpdatedAt()); - } - if (other.hasCustomInfo()) { - mergeCustomInfo(other.getCustomInfo()); - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 1; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUTRESULT_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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * 
- * - * string output_uri = 1; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 1) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * 
- * - * string output_uri = 1; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 1) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * 
- * - * string output_uri = 1; - */ - public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 1; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * 
- * - * string output_uri = 1; - */ - public Builder clearOutputUri() { - if (outputResultCase_ == 1) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * 
- * - * string output_uri = 1; - */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 1; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 2) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 2) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 2)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 2; - onChanged();; - return errorBuilder_; - } - - private int phase_ = 0; - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private java.util.List logs_ = - java.util.Collections.emptyList(); - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; - - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addLogs(flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addLogs( - flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( - int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - if (logsBuilder_ == null) { - return logs_.get(index); } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( - logs_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - - private com.google.protobuf.Timestamp startedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public boolean hasStartedAt() { - return startedAtBuilder_ != null || startedAt_ != null; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp getStartedAt() { - if (startedAtBuilder_ == null) { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } else { - return startedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder setStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startedAt_ = value; - onChanged(); - } else { - startedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder setStartedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (startedAtBuilder_ == null) { - startedAt_ = builderForValue.build(); - onChanged(); - } else { - startedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (startedAt_ != null) { - startedAt_ = - com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); - } else { - startedAt_ = value; - } - onChanged(); - } else { - startedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder clearStartedAt() { - if (startedAtBuilder_ == null) { - startedAt_ = null; - onChanged(); - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { - - onChanged(); - return getStartedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - if (startedAtBuilder_ != null) { - return startedAtBuilder_.getMessageOrBuilder(); - } else { - return startedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getStartedAtFieldBuilder() { - if (startedAtBuilder_ == null) { - startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartedAt(), - getParentForChildren(), - isClean()); - startedAt_ = null; - } - return startedAtBuilder_; - } - - private com.google.protobuf.Duration duration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return durationBuilder_ != null || duration_ != null; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } else { - return durationBuilder_.getMessage(); - } - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (duration_ != null) { - duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); - } else { - duration_ = value; - } - onChanged(); - } else { - durationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - duration_ = null; - onChanged(); - } else { - duration_ = null; - durationBuilder_ = null; - } - - return this; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); - duration_ = null; - } - return durationBuilder_; - } - - 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_; - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - 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; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - 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; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - 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_; - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public boolean hasUpdatedAt() { - return updatedAtBuilder_ != null || updatedAt_ != null; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - if (updatedAtBuilder_ == null) { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } else { - return updatedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - 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; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder setUpdatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updatedAtBuilder_ == null) { - updatedAt_ = builderForValue.build(); - onChanged(); - } else { - updatedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - 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; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder clearUpdatedAt() { - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - onChanged(); - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { - - onChanged(); - return getUpdatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - if (updatedAtBuilder_ != null) { - return updatedAtBuilder_.getMessageOrBuilder(); - } else { - return updatedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - 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_; - } - - private com.google.protobuf.Struct customInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public boolean hasCustomInfo() { - return customInfoBuilder_ != null || customInfo_ != null; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.Struct getCustomInfo() { - if (customInfoBuilder_ == null) { - return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } else { - return customInfoBuilder_.getMessage(); - } - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public Builder setCustomInfo(com.google.protobuf.Struct value) { - if (customInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customInfo_ = value; - onChanged(); - } else { - customInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public Builder setCustomInfo( - com.google.protobuf.Struct.Builder builderForValue) { - if (customInfoBuilder_ == null) { - customInfo_ = builderForValue.build(); - onChanged(); - } else { - customInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public Builder mergeCustomInfo(com.google.protobuf.Struct value) { - if (customInfoBuilder_ == null) { - if (customInfo_ != null) { - customInfo_ = - com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); - } else { - customInfo_ = value; - } - onChanged(); - } else { - customInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public Builder clearCustomInfo() { - if (customInfoBuilder_ == null) { - customInfo_ = null; - onChanged(); - } else { - customInfo_ = null; - customInfoBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { - - onChanged(); - return getCustomInfoFieldBuilder().getBuilder(); - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { - if (customInfoBuilder_ != null) { - return customInfoBuilder_.getMessageOrBuilder(); - } else { - return customInfo_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getCustomInfoFieldBuilder() { - if (customInfoBuilder_ == null) { - customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getCustomInfo(), - getParentForChildren(), - isClean()); - customInfo_ = null; - } - return customInfoBuilder_; - } - @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:flyteidl.admin.TaskExecutionClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionClosure) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionClosure(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionGetDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Request structure to fetch inputs and output urls for a task execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} - */ - public static final class TaskExecutionGetDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataRequest) - TaskExecutionGetDataRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionGetDataRequest.newBuilder() to construct. - private TaskExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionGetDataRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionGetDataRequest( - 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: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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; - } - /** - *
-     * Request structure to fetch inputs and output urls for a task execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataRequest) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.TaskExecutionGetDataRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataRequest) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionGetDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionGetDataRequest(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionGetDataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - boolean hasInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - flyteidl.admin.Common.UrlBlob getInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); - - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - boolean hasOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - flyteidl.admin.Common.UrlBlob getOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); - } - /** - *
-   * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} - */ - public static final class TaskExecutionGetDataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataResponse) - TaskExecutionGetDataResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionGetDataResponse.newBuilder() to construct. - private TaskExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionGetDataResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionGetDataResponse( - 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: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private flyteidl.admin.Common.UrlBlob inputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlob getInputs() { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private flyteidl.admin.Common.UrlBlob outputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public boolean hasOutputs() { - return outputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlob getOutputs() { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - 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 (inputs_ != null) { - output.writeMessage(1, getInputs()); - } - if (outputs_ != null) { - output.writeMessage(2, getOutputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputs()); - } - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputs()); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) obj; - - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) 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 (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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; - } - /** - *
-     * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataResponse) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.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 (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance()) return this; - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - 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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.UrlBlob inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlob getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder setInputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.admin.Common.UrlBlob outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlob getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder setOutputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - @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:flyteidl.admin.TaskExecutionGetDataResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataResponse) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionGetDataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionGetDataResponse(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_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#flyteidl/admin/task_execution.proto\022\016f" + - "lyteidl.admin\032\033flyteidl/admin/common.pro" + - "to\032\035flyteidl/core/execution.proto\032\036flyte" + - "idl/core/identifier.proto\032\037google/protob" + - "uf/timestamp.proto\032\036google/protobuf/dura" + - "tion.proto\032\034google/protobuf/struct.proto" + - "\"M\n\027TaskExecutionGetRequest\0222\n\002id\030\001 \001(\0132" + - "&.flyteidl.core.TaskExecutionIdentifier\"" + - "\263\001\n\030TaskExecutionListRequest\022A\n\021node_exe" + - "cution_id\030\001 \001(\0132&.flyteidl.core.NodeExec" + - "utionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030" + - "\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132" + - "\024.flyteidl.admin.Sort\"\240\001\n\rTaskExecution\022" + - "2\n\002id\030\001 \001(\0132&.flyteidl.core.TaskExecutio" + - "nIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n\007closur" + - "e\030\003 \001(\0132$.flyteidl.admin.TaskExecutionCl" + - "osure\022\021\n\tis_parent\030\004 \001(\010\"Z\n\021TaskExecutio" + - "nList\0226\n\017task_executions\030\001 \003(\0132\035.flyteid" + - "l.admin.TaskExecution\022\r\n\005token\030\002 \001(\t\"\261\003\n" + - "\024TaskExecutionClosure\022\024\n\noutput_uri\030\001 \001(" + - "\tH\000\022.\n\005error\030\002 \001(\0132\035.flyteidl.core.Execu" + - "tionErrorH\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.co" + - "re.TaskExecution.Phase\022$\n\004logs\030\004 \003(\0132\026.f" + - "lyteidl.core.TaskLog\022.\n\nstarted_at\030\005 \001(\013" + - "2\032.google.protobuf.Timestamp\022+\n\010duration" + - "\030\006 \001(\0132\031.google.protobuf.Duration\022.\n\ncre" + - "ated_at\030\007 \001(\0132\032.google.protobuf.Timestam" + - "p\022.\n\nupdated_at\030\010 \001(\0132\032.google.protobuf." + - "Timestamp\022,\n\013custom_info\030\t \001(\0132\027.google." + - "protobuf.StructB\017\n\routput_result\"Q\n\033Task" + - "ExecutionGetDataRequest\0222\n\002id\030\001 \001(\0132&.fl" + - "yteidl.core.TaskExecutionIdentifier\"q\n\034T" + - "askExecutionGetDataResponse\022\'\n\006inputs\030\001 " + - "\001(\0132\027.flyteidl.admin.UrlBlob\022(\n\007outputs\030" + - "\002 \001(\0132\027.flyteidl.admin.UrlBlobB3Z1github" + - ".com/lyft/flyteidl/gen/pb-go/flyteidl/ad" + - "minb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.Common.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor, - new java.lang.String[] { "NodeExecutionId", "Limit", "Token", "Filters", "SortBy", }); - internal_static_flyteidl_admin_TaskExecution_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecution_descriptor, - new java.lang.String[] { "Id", "InputUri", "Closure", "IsParent", }); - internal_static_flyteidl_admin_TaskExecutionList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionList_descriptor, - new java.lang.String[] { "TaskExecutions", "Token", }); - internal_static_flyteidl_admin_TaskExecutionClosure_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionClosure_descriptor, - new java.lang.String[] { "OutputUri", "Error", "Phase", "Logs", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "CustomInfo", "OutputResult", }); - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor, - new java.lang.String[] { "Inputs", "Outputs", }); - flyteidl.admin.Common.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/TaskOuterClass.java b/gen/pb-java/flyteidl/admin/TaskOuterClass.java deleted file mode 100644 index 00cb436f8..000000000 --- a/gen/pb-java/flyteidl/admin/TaskOuterClass.java +++ /dev/null @@ -1,5102 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/task.proto - -package flyteidl.admin; - -public final class TaskOuterClass { - private TaskOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TaskCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Represents the specification for task.
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - boolean hasSpec(); - /** - *
-     * Represents the specification for task.
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - flyteidl.admin.TaskOuterClass.TaskSpec getSpec(); - /** - *
-     * Represents the specification for task.
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder(); - } - /** - *
-   * Represents a request structure to create a revision of a task.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskCreateRequest} - */ - public static final class TaskCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateRequest) - TaskCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskCreateRequest.newBuilder() to construct. - private TaskCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskCreateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskCreateRequest( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.TaskOuterClass.TaskSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.TaskOuterClass.TaskSpec spec_; - /** - *
-     * Represents the specification for task.
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * Represents the specification for task.
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { - return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; - } - /** - *
-     * Represents the specification for task.
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - 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 (spec_ != null) { - output.writeMessage(2, getSpec()); - } - 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 (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - 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 flyteidl.admin.TaskOuterClass.TaskCreateRequest)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskCreateRequest other = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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 flyteidl.admin.TaskOuterClass.TaskCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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 flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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(flyteidl.admin.TaskOuterClass.TaskCreateRequest 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; - } - /** - *
-     * Represents a request structure to create a revision of a task.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateRequest) - flyteidl.admin.TaskOuterClass.TaskCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskCreateRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateRequest build() { - flyteidl.admin.TaskOuterClass.TaskCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateRequest buildPartial() { - flyteidl.admin.TaskOuterClass.TaskCreateRequest result = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.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 flyteidl.admin.TaskOuterClass.TaskCreateRequest) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateRequest other) { - if (other == flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - 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 { - flyteidl.admin.TaskOuterClass.TaskCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.TaskOuterClass.TaskSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> specBuilder_; - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.TaskOuterClass.TaskSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.TaskOuterClass.TaskSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - @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:flyteidl.admin.TaskCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateRequest) - private static final flyteidl.admin.TaskOuterClass.TaskCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(); - } - - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskCreateRequest(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 flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskCreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Represents a response structure if task creation succeeds.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskCreateResponse} - */ - public static final class TaskCreateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateResponse) - TaskCreateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskCreateResponse.newBuilder() to construct. - private TaskCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskCreateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskCreateResponse( - 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; - 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskCreateResponse other = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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(flyteidl.admin.TaskOuterClass.TaskCreateResponse 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; - } - /** - *
-     * Represents a response structure if task creation succeeds.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskCreateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateResponse) - flyteidl.admin.TaskOuterClass.TaskCreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskCreateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateResponse build() { - flyteidl.admin.TaskOuterClass.TaskCreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateResponse buildPartial() { - flyteidl.admin.TaskOuterClass.TaskCreateResponse result = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(this); - 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateResponse other) { - if (other == flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.TaskOuterClass.TaskCreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.TaskCreateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateResponse) - private static final flyteidl.admin.TaskOuterClass.TaskCreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(); - } - - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskCreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskCreateResponse(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 flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Task) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - boolean hasClosure(); - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - flyteidl.admin.TaskOuterClass.TaskClosure getClosure(); - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder(); - } - /** - *
-   * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
-   * arranged to process workflow inputs and produce a deterministic set of outputs.
-   * Tasks can come in many varieties tuned for specialized behavior. 
-   * 
- * - * Protobuf type {@code flyteidl.admin.Task} - */ - public static final class Task extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Task) - TaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use Task.newBuilder() to construct. - private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Task() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Task( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.TaskOuterClass.TaskClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int CLOSURE_FIELD_NUMBER = 2; - private flyteidl.admin.TaskOuterClass.TaskClosure closure_; - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { - return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; - } - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - 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 (closure_ != null) { - output.writeMessage(2, getClosure()); - } - 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 (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getClosure()); - } - 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 flyteidl.admin.TaskOuterClass.Task)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.Task other = (flyteidl.admin.TaskOuterClass.Task) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) 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(); - } - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.Task 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 flyteidl.admin.TaskOuterClass.Task parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.Task 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 flyteidl.admin.TaskOuterClass.Task parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.Task 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(flyteidl.admin.TaskOuterClass.Task 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; - } - /** - *
-     * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
-     * arranged to process workflow inputs and produce a deterministic set of outputs.
-     * Tasks can come in many varieties tuned for specialized behavior. 
-     * 
- * - * Protobuf type {@code flyteidl.admin.Task} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Task) - flyteidl.admin.TaskOuterClass.TaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.Task.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.Task getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.Task.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.Task build() { - flyteidl.admin.TaskOuterClass.Task result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.Task buildPartial() { - flyteidl.admin.TaskOuterClass.Task result = new flyteidl.admin.TaskOuterClass.Task(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.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 flyteidl.admin.TaskOuterClass.Task) { - return mergeFrom((flyteidl.admin.TaskOuterClass.Task)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.Task other) { - if (other == flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - 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 { - flyteidl.admin.TaskOuterClass.Task parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.Task) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.TaskOuterClass.TaskClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> closureBuilder_; - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public Builder setClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public Builder setClosure( - flyteidl.admin.TaskOuterClass.TaskClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public Builder mergeClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.TaskOuterClass.TaskClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - @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:flyteidl.admin.Task) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Task) - private static final flyteidl.admin.TaskOuterClass.Task DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.Task(); - } - - public static flyteidl.admin.TaskOuterClass.Task getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Task parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Task(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 flyteidl.admin.TaskOuterClass.Task getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - java.util.List - getTasksList(); - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - flyteidl.admin.TaskOuterClass.Task getTasks(int index); - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - int getTasksCount(); - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - java.util.List - getTasksOrBuilderList(); - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of tasks returned from the admin.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskList} - */ - public static final class TaskList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskList) - TaskListOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskList.newBuilder() to construct. - private TaskList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskList() { - tasks_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskList( - 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)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tasks_.add( - input.readMessage(flyteidl.admin.TaskOuterClass.Task.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); - } - - private int bitField0_; - public static final int TASKS_FIELD_NUMBER = 1; - private java.util.List tasks_; - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { - return tasks_.get(index); - } - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( - int index) { - return tasks_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(1, tasks_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tasks_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.TaskOuterClass.TaskList)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskList other = (flyteidl.admin.TaskOuterClass.TaskList) obj; - - if (!getTasksList() - .equals(other.getTasksList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskList 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 flyteidl.admin.TaskOuterClass.TaskList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskList 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 flyteidl.admin.TaskOuterClass.TaskList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskList 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(flyteidl.admin.TaskOuterClass.TaskList 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; - } - /** - *
-     * Represents a list of tasks returned from the admin.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskList) - flyteidl.admin.TaskOuterClass.TaskListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTasksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - tasksBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskList getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskList build() { - flyteidl.admin.TaskOuterClass.TaskList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskList buildPartial() { - flyteidl.admin.TaskOuterClass.TaskList result = new flyteidl.admin.TaskOuterClass.TaskList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.TaskOuterClass.TaskList) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskList other) { - if (other == flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance()) return this; - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.TaskOuterClass.TaskList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> tasksBuilder_; - - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder setTasks( - int index, flyteidl.admin.TaskOuterClass.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder setTasks( - int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addTasks(flyteidl.admin.TaskOuterClass.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addTasks( - int index, flyteidl.admin.TaskOuterClass.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addTasks( - flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addTasks( - int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder>( - tasks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.TaskList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskList) - private static final flyteidl.admin.TaskOuterClass.TaskList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskList(); - } - - public static flyteidl.admin.TaskOuterClass.TaskList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskList(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 flyteidl.admin.TaskOuterClass.TaskList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - boolean hasTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - flyteidl.core.Tasks.TaskTemplate getTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); - } - /** - *
-   * Represents a structure that encapsulates the user-configured specification of the task.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskSpec} - */ - public static final class TaskSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskSpec) - TaskSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskSpec.newBuilder() to construct. - private TaskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskSpec() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskSpec( - 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: { - flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); - } - - public static final int TEMPLATE_FIELD_NUMBER = 1; - private flyteidl.core.Tasks.TaskTemplate template_; - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - 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 (template_ != null) { - output.writeMessage(1, getTemplate()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTemplate()); - } - 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 flyteidl.admin.TaskOuterClass.TaskSpec)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskSpec other = (flyteidl.admin.TaskOuterClass.TaskSpec) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) 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 (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec 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 flyteidl.admin.TaskOuterClass.TaskSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec 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 flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec 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(flyteidl.admin.TaskOuterClass.TaskSpec 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; - } - /** - *
-     * Represents a structure that encapsulates the user-configured specification of the task.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskSpec) - flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskSpec.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 (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskSpec build() { - flyteidl.admin.TaskOuterClass.TaskSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskSpec buildPartial() { - flyteidl.admin.TaskOuterClass.TaskSpec result = new flyteidl.admin.TaskOuterClass.TaskSpec(this); - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.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 flyteidl.admin.TaskOuterClass.TaskSpec) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskSpec other) { - if (other == flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance()) return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - 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 { - flyteidl.admin.TaskOuterClass.TaskSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Tasks.TaskTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder setTemplate( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - @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:flyteidl.admin.TaskSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskSpec) - private static final flyteidl.admin.TaskOuterClass.TaskSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskSpec(); - } - - public static flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskSpec(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 flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - boolean hasCompiledTask(); - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - flyteidl.core.Compiler.CompiledTask getCompiledTask(); - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder(); - - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - } - /** - *
-   * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
-   * and task metadata.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskClosure} - */ - public static final class TaskClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskClosure) - TaskClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskClosure.newBuilder() to construct. - private TaskClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskClosure() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskClosure( - 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: { - flyteidl.core.Compiler.CompiledTask.Builder subBuilder = null; - if (compiledTask_ != null) { - subBuilder = compiledTask_.toBuilder(); - } - compiledTask_ = input.readMessage(flyteidl.core.Compiler.CompiledTask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compiledTask_); - compiledTask_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - 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; - } - 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); - } - - public static final int COMPILED_TASK_FIELD_NUMBER = 1; - private flyteidl.core.Compiler.CompiledTask compiledTask_; - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public boolean hasCompiledTask() { - return compiledTask_ != null; - } - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTask getCompiledTask() { - return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; - } - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { - return getCompiledTask(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - 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 (compiledTask_ != null) { - output.writeMessage(1, getCompiledTask()); - } - if (createdAt_ != null) { - output.writeMessage(2, getCreatedAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (compiledTask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCompiledTask()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreatedAt()); - } - 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 flyteidl.admin.TaskOuterClass.TaskClosure)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskClosure other = (flyteidl.admin.TaskOuterClass.TaskClosure) obj; - - if (hasCompiledTask() != other.hasCompiledTask()) return false; - if (hasCompiledTask()) { - if (!getCompiledTask() - .equals(other.getCompiledTask())) return false; - } - if (hasCreatedAt() != other.hasCreatedAt()) return false; - if (hasCreatedAt()) { - if (!getCreatedAt() - .equals(other.getCreatedAt())) 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 (hasCompiledTask()) { - hash = (37 * hash) + COMPILED_TASK_FIELD_NUMBER; - hash = (53 * hash) + getCompiledTask().hashCode(); - } - if (hasCreatedAt()) { - hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getCreatedAt().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure 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 flyteidl.admin.TaskOuterClass.TaskClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure 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 flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure 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(flyteidl.admin.TaskOuterClass.TaskClosure 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; - } - /** - *
-     * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
-     * and task metadata.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskClosure) - flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskClosure.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 (compiledTaskBuilder_ == null) { - compiledTask_ = null; - } else { - compiledTask_ = null; - compiledTaskBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskClosure build() { - flyteidl.admin.TaskOuterClass.TaskClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskClosure buildPartial() { - flyteidl.admin.TaskOuterClass.TaskClosure result = new flyteidl.admin.TaskOuterClass.TaskClosure(this); - if (compiledTaskBuilder_ == null) { - result.compiledTask_ = compiledTask_; - } else { - result.compiledTask_ = compiledTaskBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.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 flyteidl.admin.TaskOuterClass.TaskClosure) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskClosure other) { - if (other == flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance()) return this; - if (other.hasCompiledTask()) { - mergeCompiledTask(other.getCompiledTask()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - 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 { - flyteidl.admin.TaskOuterClass.TaskClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Compiler.CompiledTask compiledTask_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> compiledTaskBuilder_; - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public boolean hasCompiledTask() { - return compiledTaskBuilder_ != null || compiledTask_ != null; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTask getCompiledTask() { - if (compiledTaskBuilder_ == null) { - return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; - } else { - return compiledTaskBuilder_.getMessage(); - } - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public Builder setCompiledTask(flyteidl.core.Compiler.CompiledTask value) { - if (compiledTaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compiledTask_ = value; - onChanged(); - } else { - compiledTaskBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public Builder setCompiledTask( - flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { - if (compiledTaskBuilder_ == null) { - compiledTask_ = builderForValue.build(); - onChanged(); - } else { - compiledTaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public Builder mergeCompiledTask(flyteidl.core.Compiler.CompiledTask value) { - if (compiledTaskBuilder_ == null) { - if (compiledTask_ != null) { - compiledTask_ = - flyteidl.core.Compiler.CompiledTask.newBuilder(compiledTask_).mergeFrom(value).buildPartial(); - } else { - compiledTask_ = value; - } - onChanged(); - } else { - compiledTaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public Builder clearCompiledTask() { - if (compiledTaskBuilder_ == null) { - compiledTask_ = null; - onChanged(); - } else { - compiledTask_ = null; - compiledTaskBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTask.Builder getCompiledTaskBuilder() { - - onChanged(); - return getCompiledTaskFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { - if (compiledTaskBuilder_ != null) { - return compiledTaskBuilder_.getMessageOrBuilder(); - } else { - return compiledTask_ == null ? - flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; - } - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> - getCompiledTaskFieldBuilder() { - if (compiledTaskBuilder_ == null) { - compiledTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( - getCompiledTask(), - getParentForChildren(), - isClean()); - compiledTask_ = null; - } - return compiledTaskBuilder_; - } - - 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_; - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - 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; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - 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; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - 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_; - } - @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:flyteidl.admin.TaskClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskClosure) - private static final flyteidl.admin.TaskOuterClass.TaskClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskClosure(); - } - - public static flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskClosure(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 flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskCreateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskCreateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Task_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Task_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskClosure_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\031flyteidl/admin/task.proto\022\016flyteidl.ad" + - "min\032\036flyteidl/core/identifier.proto\032\031fly" + - "teidl/core/tasks.proto\032\034flyteidl/core/co" + - "mpiler.proto\032\037google/protobuf/timestamp." + - "proto\"b\n\021TaskCreateRequest\022%\n\002id\030\001 \001(\0132\031" + - ".flyteidl.core.Identifier\022&\n\004spec\030\002 \001(\0132" + - "\030.flyteidl.admin.TaskSpec\"\024\n\022TaskCreateR" + - "esponse\"[\n\004Task\022%\n\002id\030\001 \001(\0132\031.flyteidl.c" + - "ore.Identifier\022,\n\007closure\030\002 \001(\0132\033.flytei" + - "dl.admin.TaskClosure\">\n\010TaskList\022#\n\005task" + - "s\030\001 \003(\0132\024.flyteidl.admin.Task\022\r\n\005token\030\002" + - " \001(\t\"9\n\010TaskSpec\022-\n\010template\030\001 \001(\0132\033.fly" + - "teidl.core.TaskTemplate\"q\n\013TaskClosure\0222" + - "\n\rcompiled_task\030\001 \001(\0132\033.flyteidl.core.Co" + - "mpiledTask\022.\n\ncreated_at\030\002 \001(\0132\032.google." + - "protobuf.TimestampB3Z1github.com/lyft/fl" + - "yteidl/gen/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Tasks.getDescriptor(), - flyteidl.core.Compiler.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_TaskCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskCreateRequest_descriptor, - new java.lang.String[] { "Id", "Spec", }); - internal_static_flyteidl_admin_TaskCreateResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskCreateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_Task_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_Task_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Task_descriptor, - new java.lang.String[] { "Id", "Closure", }); - internal_static_flyteidl_admin_TaskList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_TaskList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskList_descriptor, - new java.lang.String[] { "Tasks", "Token", }); - internal_static_flyteidl_admin_TaskSpec_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskSpec_descriptor, - new java.lang.String[] { "Template", }); - internal_static_flyteidl_admin_TaskClosure_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskClosure_descriptor, - new java.lang.String[] { "CompiledTask", "CreatedAt", }); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Tasks.getDescriptor(); - flyteidl.core.Compiler.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java b/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java deleted file mode 100644 index 0d6544885..000000000 --- a/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java +++ /dev/null @@ -1,5375 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/workflow_attributes.proto - -package flyteidl.admin; - -public final class WorkflowAttributesOuterClass { - private WorkflowAttributesOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorkflowAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Workflow name for which this set of attributes will be applied.
-     * 
- * - * string workflow = 3; - */ - java.lang.String getWorkflow(); - /** - *
-     * Workflow name for which this set of attributes will be applied.
-     * 
- * - * string workflow = 3; - */ - com.google.protobuf.ByteString - getWorkflowBytes(); - - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - boolean hasMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.admin.WorkflowAttributes} - */ - public static final class WorkflowAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributes) - WorkflowAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributes.newBuilder() to construct. - private WorkflowAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributes() { - project_ = ""; - domain_ = ""; - workflow_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributes( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - workflow_ = s; - break; - } - case 34: { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; - if (matchingAttributes_ != null) { - subBuilder = matchingAttributes_.toBuilder(); - } - matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(matchingAttributes_); - matchingAttributes_ = 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKFLOW_FIELD_NUMBER = 3; - private volatile java.lang.Object workflow_; - /** - *
-     * Workflow name for which this set of attributes will be applied.
-     * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - 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(); - workflow_ = s; - return s; - } - } - /** - *
-     * Workflow name for which this set of attributes will be applied.
-     * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 4; - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public boolean hasMatchingAttributes() { - return matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - return getMatchingAttributes(); - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); - } - if (matchingAttributes_ != null) { - output.writeMessage(4, getMatchingAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); - } - if (matchingAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMatchingAttributes()); - } - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; - if (hasMatchingAttributes()) { - if (!getMatchingAttributes() - .equals(other.getMatchingAttributes())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - if (hasMatchingAttributes()) { - hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getMatchingAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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 flyteidl.admin.WorkflowAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributes) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.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(); - project_ = ""; - - domain_ = ""; - - workflow_ = ""; - - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes(this); - result.project_ = project_; - result.domain_ = domain_; - result.workflow_ = workflow_; - if (matchingAttributesBuilder_ == null) { - result.matchingAttributes_ = matchingAttributes_; - } else { - result.matchingAttributes_ = matchingAttributesBuilder_.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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getWorkflow().isEmpty()) { - workflow_ = other.workflow_; - onChanged(); - } - if (other.hasMatchingAttributes()) { - mergeMatchingAttributes(other.getMatchingAttributes()); - } - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object workflow_ = ""; - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflow( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflow_ = value; - onChanged(); - return this; - } - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public Builder clearWorkflow() { - - workflow_ = getDefaultInstance().getWorkflow(); - onChanged(); - return this; - } - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflowBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflow_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public boolean hasMatchingAttributes() { - return matchingAttributesBuilder_ != null || matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } else { - return matchingAttributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - matchingAttributes_ = value; - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public Builder setMatchingAttributes( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = builderForValue.build(); - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (matchingAttributes_ != null) { - matchingAttributes_ = - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); - } else { - matchingAttributes_ = value; - } - onChanged(); - } else { - matchingAttributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public Builder clearMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - onChanged(); - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { - - onChanged(); - return getMatchingAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - if (matchingAttributesBuilder_ != null) { - return matchingAttributesBuilder_.getMessageOrBuilder(); - } else { - return matchingAttributes_ == null ? - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> - getMatchingAttributesFieldBuilder() { - if (matchingAttributesBuilder_ == null) { - matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( - getMatchingAttributes(), - getParentForChildren(), - isClean()); - matchingAttributes_ = null; - } - return matchingAttributesBuilder_; - } - @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:flyteidl.admin.WorkflowAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributes) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributes(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes(); - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder(); - } - /** - *
-   * Sets custom attributes for a project, domain and workflow combination.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateRequest} - */ - public static final class WorkflowAttributesUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesUpdateRequest) - WorkflowAttributesUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesUpdateRequest.newBuilder() to construct. - private WorkflowAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesUpdateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesUpdateRequest( - 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: { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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; - } - /** - *
-     * Sets custom attributes for a project, domain and workflow combination.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesUpdateRequest) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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:flyteidl.admin.WorkflowAttributesUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateRequest) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesUpdateRequest(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateResponse} - */ - public static final class WorkflowAttributesUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesUpdateResponse) - WorkflowAttributesUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesUpdateResponse.newBuilder() to construct. - private WorkflowAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesUpdateResponse( - 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; - 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesUpdateResponse) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse(this); - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.WorkflowAttributesUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateResponse) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesUpdateResponse(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - java.lang.String getWorkflow(); - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - com.google.protobuf.ByteString - getWorkflowBytes(); - - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - int getResourceTypeValue(); - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetRequest} - */ - public static final class WorkflowAttributesGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesGetRequest) - WorkflowAttributesGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesGetRequest.newBuilder() to construct. - private WorkflowAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesGetRequest() { - project_ = ""; - domain_ = ""; - workflow_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesGetRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - workflow_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKFLOW_FIELD_NUMBER = 3; - private volatile java.lang.Object workflow_; - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - 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(); - workflow_ = s; - return s; - } - } - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 4; - private int resourceType_; - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(4, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, resourceType_); - } - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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 flyteidl.admin.WorkflowAttributesGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesGetRequest) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.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(); - project_ = ""; - - domain_ = ""; - - workflow_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.workflow_ = workflow_; - result.resourceType_ = resourceType_; - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getWorkflow().isEmpty()) { - workflow_ = other.workflow_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object workflow_ = ""; - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflow( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflow_ = value; - onChanged(); - return this; - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public Builder clearWorkflow() { - - workflow_ = getDefaultInstance().getWorkflow(); - onChanged(); - return this; - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflowBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflow_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - 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:flyteidl.admin.WorkflowAttributesGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetRequest) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesGetRequest(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesGetResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesGetResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes(); - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetResponse} - */ - public static final class WorkflowAttributesGetResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesGetResponse) - WorkflowAttributesGetResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesGetResponse.newBuilder() to construct. - private WorkflowAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesGetResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesGetResponse( - 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: { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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 flyteidl.admin.WorkflowAttributesGetResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesGetResponse) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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:flyteidl.admin.WorkflowAttributesGetResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetResponse) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesGetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesGetResponse(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesDeleteRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesDeleteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - java.lang.String getWorkflow(); - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - com.google.protobuf.ByteString - getWorkflowBytes(); - - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - int getResourceTypeValue(); - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteRequest} - */ - public static final class WorkflowAttributesDeleteRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesDeleteRequest) - WorkflowAttributesDeleteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesDeleteRequest.newBuilder() to construct. - private WorkflowAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesDeleteRequest() { - project_ = ""; - domain_ = ""; - workflow_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesDeleteRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - workflow_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKFLOW_FIELD_NUMBER = 3; - private volatile java.lang.Object workflow_; - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - 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(); - workflow_ = s; - return s; - } - } - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 4; - private int resourceType_; - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(4, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, resourceType_); - } - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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 flyteidl.admin.WorkflowAttributesDeleteRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesDeleteRequest) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.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(); - project_ = ""; - - domain_ = ""; - - workflow_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.workflow_ = workflow_; - result.resourceType_ = resourceType_; - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getWorkflow().isEmpty()) { - workflow_ = other.workflow_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object workflow_ = ""; - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflow( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflow_ = value; - onChanged(); - return this; - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public Builder clearWorkflow() { - - workflow_ = getDefaultInstance().getWorkflow(); - onChanged(); - return this; - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflowBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflow_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - 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:flyteidl.admin.WorkflowAttributesDeleteRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteRequest) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesDeleteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesDeleteRequest(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesDeleteResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesDeleteResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteResponse} - */ - public static final class WorkflowAttributesDeleteResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesDeleteResponse) - WorkflowAttributesDeleteResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesDeleteResponse.newBuilder() to construct. - private WorkflowAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesDeleteResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesDeleteResponse( - 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; - 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesDeleteResponse) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse(this); - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.WorkflowAttributesDeleteResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteResponse) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesDeleteResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesDeleteResponse(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_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(flyteidl/admin/workflow_attributes.pro" + - "to\022\016flyteidl.admin\032\'flyteidl/admin/match" + - "able_resource.proto\"\210\001\n\022WorkflowAttribut" + - "es\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010w" + - "orkflow\030\003 \001(\t\022?\n\023matching_attributes\030\004 \001" + - "(\0132\".flyteidl.admin.MatchingAttributes\"Y" + - "\n\037WorkflowAttributesUpdateRequest\0226\n\natt" + - "ributes\030\001 \001(\0132\".flyteidl.admin.WorkflowA" + - "ttributes\"\"\n WorkflowAttributesUpdateRes" + - "ponse\"\213\001\n\034WorkflowAttributesGetRequest\022\017" + - "\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workf" + - "low\030\003 \001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyte" + - "idl.admin.MatchableResource\"W\n\035WorkflowA" + - "ttributesGetResponse\0226\n\nattributes\030\001 \001(\013" + - "2\".flyteidl.admin.WorkflowAttributes\"\216\001\n" + - "\037WorkflowAttributesDeleteRequest\022\017\n\007proj" + - "ect\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workflow\030\003 " + - "\001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyteidl.ad" + - "min.MatchableResource\"\"\n WorkflowAttribu" + - "tesDeleteResponseB3Z1github.com/lyft/fly" + - "teidl/gen/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_WorkflowAttributes_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributes_descriptor, - new java.lang.String[] { "Project", "Domain", "Workflow", "MatchingAttributes", }); - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Workflow", "ResourceType", }); - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Workflow", "ResourceType", }); - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor, - new java.lang.String[] { }); - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java b/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java deleted file mode 100644 index d52dfb944..000000000 --- a/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java +++ /dev/null @@ -1,5646 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/workflow.proto - -package flyteidl.admin; - -public final class WorkflowOuterClass { - private WorkflowOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorkflowCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Represents the specification for workflow.
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - boolean hasSpec(); - /** - *
-     * Represents the specification for workflow.
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec(); - /** - *
-     * Represents the specification for workflow.
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder(); - } - /** - *
-   * Represents a request structure to create a revision of a workflow.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} - */ - public static final class WorkflowCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateRequest) - WorkflowCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowCreateRequest.newBuilder() to construct. - private WorkflowCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowCreateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowCreateRequest( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_; - /** - *
-     * Represents the specification for workflow.
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * Represents the specification for workflow.
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { - return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; - } - /** - *
-     * Represents the specification for workflow.
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - 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 (spec_ != null) { - output.writeMessage(2, getSpec()); - } - 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 (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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(flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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; - } - /** - *
-     * Represents a request structure to create a revision of a workflow.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateRequest) - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest build() { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - 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 { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> specBuilder_; - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - @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:flyteidl.admin.WorkflowCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateRequest) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowCreateRequest(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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowCreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future. 
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} - */ - public static final class WorkflowCreateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateResponse) - WorkflowCreateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowCreateResponse.newBuilder() to construct. - private WorkflowCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowCreateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowCreateResponse( - 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; - 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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(flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future. 
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateResponse) - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse build() { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(this); - 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.WorkflowCreateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateResponse) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowCreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowCreateResponse(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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Workflow) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - boolean hasClosure(); - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure(); - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder(); - } - /** - *
-   * Represents the workflow structure stored in the Admin
-   * A workflow is created by ordering tasks and associating outputs to inputs
-   * in order to produce a directed-acyclic execution graph.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Workflow} - */ - public static final class Workflow extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Workflow) - WorkflowOrBuilder { - private static final long serialVersionUID = 0L; - // Use Workflow.newBuilder() to construct. - private Workflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Workflow() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Workflow( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int CLOSURE_FIELD_NUMBER = 2; - private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_; - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { - return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; - } - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - 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 (closure_ != null) { - output.writeMessage(2, getClosure()); - } - 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 (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getClosure()); - } - 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 flyteidl.admin.WorkflowOuterClass.Workflow)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.Workflow other = (flyteidl.admin.WorkflowOuterClass.Workflow) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) 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(); - } - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow 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 flyteidl.admin.WorkflowOuterClass.Workflow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow 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 flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow 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(flyteidl.admin.WorkflowOuterClass.Workflow 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; - } - /** - *
-     * Represents the workflow structure stored in the Admin
-     * A workflow is created by ordering tasks and associating outputs to inputs
-     * in order to produce a directed-acyclic execution graph.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Workflow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Workflow) - flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.Workflow.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.Workflow build() { - flyteidl.admin.WorkflowOuterClass.Workflow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.Workflow buildPartial() { - flyteidl.admin.WorkflowOuterClass.Workflow result = new flyteidl.admin.WorkflowOuterClass.Workflow(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.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 flyteidl.admin.WorkflowOuterClass.Workflow) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.Workflow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.Workflow other) { - if (other == flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - 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 { - flyteidl.admin.WorkflowOuterClass.Workflow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.Workflow) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> closureBuilder_; - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public Builder setClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public Builder setClosure( - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public Builder mergeClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - @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:flyteidl.admin.Workflow) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Workflow) - private static final flyteidl.admin.WorkflowOuterClass.Workflow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.Workflow(); - } - - public static flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Workflow(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 flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - java.util.List - getWorkflowsList(); - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index); - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - int getWorkflowsCount(); - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - java.util.List - getWorkflowsOrBuilderList(); - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of workflows returned from the admin.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowList} - */ - public static final class WorkflowList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowList) - WorkflowListOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowList.newBuilder() to construct. - private WorkflowList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowList() { - workflows_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowList( - 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)) { - workflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - workflows_.add( - input.readMessage(flyteidl.admin.WorkflowOuterClass.Workflow.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - workflows_ = java.util.Collections.unmodifiableList(workflows_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); - } - - private int bitField0_; - public static final int WORKFLOWS_FIELD_NUMBER = 1; - private java.util.List workflows_; - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List getWorkflowsList() { - return workflows_; - } - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List - getWorkflowsOrBuilderList() { - return workflows_; - } - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public int getWorkflowsCount() { - return workflows_.size(); - } - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { - return workflows_.get(index); - } - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( - int index) { - return workflows_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < workflows_.size(); i++) { - output.writeMessage(1, workflows_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < workflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workflows_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.WorkflowOuterClass.WorkflowList)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowList other = (flyteidl.admin.WorkflowOuterClass.WorkflowList) obj; - - if (!getWorkflowsList() - .equals(other.getWorkflowsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getWorkflowsCount() > 0) { - hash = (37 * hash) + WORKFLOWS_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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 flyteidl.admin.WorkflowOuterClass.WorkflowList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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 flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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(flyteidl.admin.WorkflowOuterClass.WorkflowList 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; - } - /** - *
-     * Represents a list of workflows returned from the admin.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowList) - flyteidl.admin.WorkflowOuterClass.WorkflowListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getWorkflowsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (workflowsBuilder_ == null) { - workflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - workflowsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowList build() { - flyteidl.admin.WorkflowOuterClass.WorkflowList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowList buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowList result = new flyteidl.admin.WorkflowOuterClass.WorkflowList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (workflowsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - workflows_ = java.util.Collections.unmodifiableList(workflows_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.workflows_ = workflows_; - } else { - result.workflows_ = workflowsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.WorkflowOuterClass.WorkflowList) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowList other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance()) return this; - if (workflowsBuilder_ == null) { - if (!other.workflows_.isEmpty()) { - if (workflows_.isEmpty()) { - workflows_ = other.workflows_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWorkflowsIsMutable(); - workflows_.addAll(other.workflows_); - } - onChanged(); - } - } else { - if (!other.workflows_.isEmpty()) { - if (workflowsBuilder_.isEmpty()) { - workflowsBuilder_.dispose(); - workflowsBuilder_ = null; - workflows_ = other.workflows_; - bitField0_ = (bitField0_ & ~0x00000001); - workflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkflowsFieldBuilder() : null; - } else { - workflowsBuilder_.addAllMessages(other.workflows_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.WorkflowOuterClass.WorkflowList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List workflows_ = - java.util.Collections.emptyList(); - private void ensureWorkflowsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - workflows_ = new java.util.ArrayList(workflows_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> workflowsBuilder_; - - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List getWorkflowsList() { - if (workflowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(workflows_); - } else { - return workflowsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public int getWorkflowsCount() { - if (workflowsBuilder_ == null) { - return workflows_.size(); - } else { - return workflowsBuilder_.getCount(); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { - if (workflowsBuilder_ == null) { - return workflows_.get(index); - } else { - return workflowsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder setWorkflows( - int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { - if (workflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowsIsMutable(); - workflows_.set(index, value); - onChanged(); - } else { - workflowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder setWorkflows( - int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - workflows_.set(index, builderForValue.build()); - onChanged(); - } else { - workflowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addWorkflows(flyteidl.admin.WorkflowOuterClass.Workflow value) { - if (workflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowsIsMutable(); - workflows_.add(value); - onChanged(); - } else { - workflowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addWorkflows( - int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { - if (workflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowsIsMutable(); - workflows_.add(index, value); - onChanged(); - } else { - workflowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addWorkflows( - flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - workflows_.add(builderForValue.build()); - onChanged(); - } else { - workflowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addWorkflows( - int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - workflows_.add(index, builderForValue.build()); - onChanged(); - } else { - workflowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addAllWorkflows( - java.lang.Iterable values) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workflows_); - onChanged(); - } else { - workflowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder clearWorkflows() { - if (workflowsBuilder_ == null) { - workflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - workflowsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder removeWorkflows(int index) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - workflows_.remove(index); - onChanged(); - } else { - workflowsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow.Builder getWorkflowsBuilder( - int index) { - return getWorkflowsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( - int index) { - if (workflowsBuilder_ == null) { - return workflows_.get(index); } else { - return workflowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List - getWorkflowsOrBuilderList() { - if (workflowsBuilder_ != null) { - return workflowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(workflows_); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder() { - return getWorkflowsFieldBuilder().addBuilder( - flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder( - int index) { - return getWorkflowsFieldBuilder().addBuilder( - index, flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List - getWorkflowsBuilderList() { - return getWorkflowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> - getWorkflowsFieldBuilder() { - if (workflowsBuilder_ == null) { - workflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder>( - workflows_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - workflows_ = null; - } - return workflowsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.WorkflowList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowList) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowList(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowList(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 flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - boolean hasTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - flyteidl.core.Workflow.WorkflowTemplate getTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); - - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - java.util.List - getSubWorkflowsList(); - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index); - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - int getSubWorkflowsCount(); - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - java.util.List - getSubWorkflowsOrBuilderList(); - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( - int index); - } - /** - *
-   * Represents a structure that encapsulates the specification of the workflow.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowSpec} - */ - public static final class WorkflowSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowSpec) - WorkflowSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowSpec.newBuilder() to construct. - private WorkflowSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowSpec() { - subWorkflows_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowSpec( - 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: { - flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - subWorkflows_.add( - input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.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_ & 0x00000002) != 0)) { - subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); - } - - private int bitField0_; - public static final int TEMPLATE_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.WorkflowTemplate template_; - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { - return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - public static final int SUB_WORKFLOWS_FIELD_NUMBER = 2; - private java.util.List subWorkflows_; - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List getSubWorkflowsList() { - return subWorkflows_; - } - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsOrBuilderList() { - return subWorkflows_; - } - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public int getSubWorkflowsCount() { - return subWorkflows_.size(); - } - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index) { - return subWorkflows_.get(index); - } - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( - int index) { - return subWorkflows_.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 (template_ != null) { - output.writeMessage(1, getTemplate()); - } - for (int i = 0; i < subWorkflows_.size(); i++) { - output.writeMessage(2, subWorkflows_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTemplate()); - } - for (int i = 0; i < subWorkflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, subWorkflows_.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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowSpec other = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; - } - if (!getSubWorkflowsList() - .equals(other.getSubWorkflowsList())) 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 (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - if (getSubWorkflowsCount() > 0) { - hash = (37 * hash) + SUB_WORKFLOWS_FIELD_NUMBER; - hash = (53 * hash) + getSubWorkflowsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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(flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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; - } - /** - *
-     * Represents a structure that encapsulates the specification of the workflow.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowSpec) - flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSubWorkflowsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - if (subWorkflowsBuilder_ == null) { - subWorkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - subWorkflowsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec build() { - flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.build(); - } - if (subWorkflowsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.subWorkflows_ = subWorkflows_; - } else { - result.subWorkflows_ = subWorkflowsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowSpec other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance()) return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - if (subWorkflowsBuilder_ == null) { - if (!other.subWorkflows_.isEmpty()) { - if (subWorkflows_.isEmpty()) { - subWorkflows_ = other.subWorkflows_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSubWorkflowsIsMutable(); - subWorkflows_.addAll(other.subWorkflows_); - } - onChanged(); - } - } else { - if (!other.subWorkflows_.isEmpty()) { - if (subWorkflowsBuilder_.isEmpty()) { - subWorkflowsBuilder_.dispose(); - subWorkflowsBuilder_ = null; - subWorkflows_ = other.subWorkflows_; - bitField0_ = (bitField0_ & ~0x00000002); - subWorkflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubWorkflowsFieldBuilder() : null; - } else { - subWorkflowsBuilder_.addAllMessages(other.subWorkflows_); - } - } - } - 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 { - flyteidl.admin.WorkflowOuterClass.WorkflowSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.Workflow.WorkflowTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder setTemplate( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - - private java.util.List subWorkflows_ = - java.util.Collections.emptyList(); - private void ensureSubWorkflowsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = new java.util.ArrayList(subWorkflows_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> subWorkflowsBuilder_; - - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List getSubWorkflowsList() { - if (subWorkflowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subWorkflows_); - } else { - return subWorkflowsBuilder_.getMessageList(); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public int getSubWorkflowsCount() { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.size(); - } else { - return subWorkflowsBuilder_.getCount(); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index) { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.get(index); - } else { - return subWorkflowsBuilder_.getMessage(index); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder setSubWorkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.set(index, value); - onChanged(); - } else { - subWorkflowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder setSubWorkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.set(index, builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addSubWorkflows(flyteidl.core.Workflow.WorkflowTemplate value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(value); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addSubWorkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(index, value); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addSubWorkflows( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addSubWorkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(index, builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addAllSubWorkflows( - java.lang.Iterable values) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subWorkflows_); - onChanged(); - } else { - subWorkflowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder clearSubWorkflows() { - if (subWorkflowsBuilder_ == null) { - subWorkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - subWorkflowsBuilder_.clear(); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder removeSubWorkflows(int index) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.remove(index); - onChanged(); - } else { - subWorkflowsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getSubWorkflowsBuilder( - int index) { - return getSubWorkflowsFieldBuilder().getBuilder(index); - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( - int index) { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.get(index); } else { - return subWorkflowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsOrBuilderList() { - if (subWorkflowsBuilder_ != null) { - return subWorkflowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subWorkflows_); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubWorkflowsBuilder() { - return getSubWorkflowsFieldBuilder().addBuilder( - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubWorkflowsBuilder( - int index) { - return getSubWorkflowsFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsBuilderList() { - return getSubWorkflowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getSubWorkflowsFieldBuilder() { - if (subWorkflowsBuilder_ == null) { - subWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - subWorkflows_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - subWorkflows_ = null; - } - return subWorkflowsBuilder_; - } - @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:flyteidl.admin.WorkflowSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowSpec) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowSpec(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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - boolean hasCompiledWorkflow(); - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow(); - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder(); - - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - } - /** - *
-   * A container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowClosure} - */ - public static final class WorkflowClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowClosure) - WorkflowClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowClosure.newBuilder() to construct. - private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowClosure() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowClosure( - 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: { - flyteidl.core.Compiler.CompiledWorkflowClosure.Builder subBuilder = null; - if (compiledWorkflow_ != null) { - subBuilder = compiledWorkflow_.toBuilder(); - } - compiledWorkflow_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflowClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compiledWorkflow_); - compiledWorkflow_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - 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; - } - 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); - } - - public static final int COMPILED_WORKFLOW_FIELD_NUMBER = 1; - private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public boolean hasCompiledWorkflow() { - return compiledWorkflow_ != null; - } - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { - return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { - return getCompiledWorkflow(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - 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 (compiledWorkflow_ != null) { - output.writeMessage(1, getCompiledWorkflow()); - } - if (createdAt_ != null) { - output.writeMessage(2, getCreatedAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (compiledWorkflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCompiledWorkflow()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreatedAt()); - } - 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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowClosure other = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) obj; - - if (hasCompiledWorkflow() != other.hasCompiledWorkflow()) return false; - if (hasCompiledWorkflow()) { - if (!getCompiledWorkflow() - .equals(other.getCompiledWorkflow())) return false; - } - if (hasCreatedAt() != other.hasCreatedAt()) return false; - if (hasCreatedAt()) { - if (!getCreatedAt() - .equals(other.getCreatedAt())) 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 (hasCompiledWorkflow()) { - hash = (37 * hash) + COMPILED_WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getCompiledWorkflow().hashCode(); - } - if (hasCreatedAt()) { - hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getCreatedAt().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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(flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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 container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowClosure) - flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowClosure.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 (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = null; - } else { - compiledWorkflow_ = null; - compiledWorkflowBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure build() { - flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(this); - if (compiledWorkflowBuilder_ == null) { - result.compiledWorkflow_ = compiledWorkflow_; - } else { - result.compiledWorkflow_ = compiledWorkflowBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowClosure other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance()) return this; - if (other.hasCompiledWorkflow()) { - mergeCompiledWorkflow(other.getCompiledWorkflow()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - 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 { - flyteidl.admin.WorkflowOuterClass.WorkflowClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> compiledWorkflowBuilder_; - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public boolean hasCompiledWorkflow() { - return compiledWorkflowBuilder_ != null || compiledWorkflow_ != null; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { - if (compiledWorkflowBuilder_ == null) { - return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } else { - return compiledWorkflowBuilder_.getMessage(); - } - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public Builder setCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { - if (compiledWorkflowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compiledWorkflow_ = value; - onChanged(); - } else { - compiledWorkflowBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public Builder setCompiledWorkflow( - flyteidl.core.Compiler.CompiledWorkflowClosure.Builder builderForValue) { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = builderForValue.build(); - onChanged(); - } else { - compiledWorkflowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public Builder mergeCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { - if (compiledWorkflowBuilder_ == null) { - if (compiledWorkflow_ != null) { - compiledWorkflow_ = - flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder(compiledWorkflow_).mergeFrom(value).buildPartial(); - } else { - compiledWorkflow_ = value; - } - onChanged(); - } else { - compiledWorkflowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public Builder clearCompiledWorkflow() { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = null; - onChanged(); - } else { - compiledWorkflow_ = null; - compiledWorkflowBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure.Builder getCompiledWorkflowBuilder() { - - onChanged(); - return getCompiledWorkflowFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { - if (compiledWorkflowBuilder_ != null) { - return compiledWorkflowBuilder_.getMessageOrBuilder(); - } else { - return compiledWorkflow_ == null ? - flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> - getCompiledWorkflowFieldBuilder() { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder>( - getCompiledWorkflow(), - getParentForChildren(), - isClean()); - compiledWorkflow_ = null; - } - return compiledWorkflowBuilder_; - } - - 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_; - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - 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; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - 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; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - 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_; - } - @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:flyteidl.admin.WorkflowClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowClosure) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowClosure(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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Workflow_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Workflow_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowClosure_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\035flyteidl/admin/workflow.proto\022\016flyteid" + - "l.admin\032\034flyteidl/core/compiler.proto\032\036f" + - "lyteidl/core/identifier.proto\032\034flyteidl/" + - "core/workflow.proto\032\033flyteidl/admin/comm" + - "on.proto\032\037google/protobuf/timestamp.prot" + - "o\"j\n\025WorkflowCreateRequest\022%\n\002id\030\001 \001(\0132\031" + - ".flyteidl.core.Identifier\022*\n\004spec\030\002 \001(\0132" + - "\034.flyteidl.admin.WorkflowSpec\"\030\n\026Workflo" + - "wCreateResponse\"c\n\010Workflow\022%\n\002id\030\001 \001(\0132" + - "\031.flyteidl.core.Identifier\0220\n\007closure\030\002 " + - "\001(\0132\037.flyteidl.admin.WorkflowClosure\"J\n\014" + - "WorkflowList\022+\n\tworkflows\030\001 \003(\0132\030.flytei" + - "dl.admin.Workflow\022\r\n\005token\030\002 \001(\t\"y\n\014Work" + - "flowSpec\0221\n\010template\030\001 \001(\0132\037.flyteidl.co" + - "re.WorkflowTemplate\0226\n\rsub_workflows\030\002 \003" + - "(\0132\037.flyteidl.core.WorkflowTemplate\"\204\001\n\017" + - "WorkflowClosure\022A\n\021compiled_workflow\030\001 \001" + - "(\0132&.flyteidl.core.CompiledWorkflowClosu" + - "re\022.\n\ncreated_at\030\002 \001(\0132\032.google.protobuf" + - ".TimestampB3Z1github.com/lyft/flyteidl/g" + - "en/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Compiler.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Workflow.getDescriptor(), - flyteidl.admin.Common.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor, - new java.lang.String[] { "Id", "Spec", }); - internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_Workflow_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_Workflow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Workflow_descriptor, - new java.lang.String[] { "Id", "Closure", }); - internal_static_flyteidl_admin_WorkflowList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowList_descriptor, - new java.lang.String[] { "Workflows", "Token", }); - internal_static_flyteidl_admin_WorkflowSpec_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowSpec_descriptor, - new java.lang.String[] { "Template", "SubWorkflows", }); - internal_static_flyteidl_admin_WorkflowClosure_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowClosure_descriptor, - new java.lang.String[] { "CompiledWorkflow", "CreatedAt", }); - flyteidl.core.Compiler.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Workflow.getDescriptor(); - flyteidl.admin.Common.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Compiler.java b/gen/pb-java/flyteidl/core/Compiler.java deleted file mode 100644 index 94d5d5990..000000000 --- a/gen/pb-java/flyteidl/core/Compiler.java +++ /dev/null @@ -1,5243 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/compiler.proto - -package flyteidl.core; - -public final class Compiler { - private Compiler() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ConnectionSetOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ConnectionSet) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - int getDownstreamCount(); - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - boolean containsDownstream( - java.lang.String key); - /** - * Use {@link #getDownstreamMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getDownstream(); - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - java.util.Map - getDownstreamMap(); - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( - java.lang.String key); - - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - int getUpstreamCount(); - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - boolean containsUpstream( - java.lang.String key); - /** - * Use {@link #getUpstreamMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getUpstream(); - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - java.util.Map - getUpstreamMap(); - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( - java.lang.String key); - } - /** - *
-   * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
-   * step uses this created ConnectionSet
-   * 
- * - * Protobuf type {@code flyteidl.core.ConnectionSet} - */ - public static final class ConnectionSet extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet) - ConnectionSetOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConnectionSet.newBuilder() to construct. - private ConnectionSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConnectionSet() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConnectionSet( - 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 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - downstream_ = com.google.protobuf.MapField.newMapField( - DownstreamDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - downstream__ = input.readMessage( - DownstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - downstream_.getMutableMap().put( - downstream__.getKey(), downstream__.getValue()); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - upstream_ = com.google.protobuf.MapField.newMapField( - UpstreamDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - upstream__ = input.readMessage( - UpstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - upstream_.getMutableMap().put( - upstream__.getKey(), upstream__.getValue()); - 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 flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 7: - return internalGetDownstream(); - case 8: - return internalGetUpstream(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); - } - - public interface IdListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ConnectionSet.IdList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string ids = 1; - */ - java.util.List - getIdsList(); - /** - * repeated string ids = 1; - */ - int getIdsCount(); - /** - * repeated string ids = 1; - */ - java.lang.String getIds(int index); - /** - * repeated string ids = 1; - */ - com.google.protobuf.ByteString - getIdsBytes(int index); - } - /** - * Protobuf type {@code flyteidl.core.ConnectionSet.IdList} - */ - public static final class IdList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet.IdList) - IdListOrBuilder { - private static final long serialVersionUID = 0L; - // Use IdList.newBuilder() to construct. - private IdList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IdList() { - ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IdList( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ids_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - ids_.add(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)) { - ids_ = ids_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); - } - - public static final int IDS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList ids_; - /** - * repeated string ids = 1; - */ - public com.google.protobuf.ProtocolStringList - getIdsList() { - return ids_; - } - /** - * repeated string ids = 1; - */ - public int getIdsCount() { - return ids_.size(); - } - /** - * repeated string ids = 1; - */ - public java.lang.String getIds(int index) { - return ids_.get(index); - } - /** - * repeated string ids = 1; - */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { - return ids_.getByteString(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 < ids_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ids_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < ids_.size(); i++) { - dataSize += computeStringSizeNoTag(ids_.getRaw(i)); - } - size += dataSize; - size += 1 * getIdsList().size(); - } - 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 flyteidl.core.Compiler.ConnectionSet.IdList)) { - return super.equals(obj); - } - flyteidl.core.Compiler.ConnectionSet.IdList other = (flyteidl.core.Compiler.ConnectionSet.IdList) obj; - - if (!getIdsList() - .equals(other.getIdsList())) 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 (getIdsCount() > 0) { - hash = (37 * hash) + IDS_FIELD_NUMBER; - hash = (53 * hash) + getIdsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList 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 flyteidl.core.Compiler.ConnectionSet.IdList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList 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 flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList 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(flyteidl.core.Compiler.ConnectionSet.IdList 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 flyteidl.core.ConnectionSet.IdList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet.IdList) - flyteidl.core.Compiler.ConnectionSet.IdListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); - } - - // Construct using flyteidl.core.Compiler.ConnectionSet.IdList.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(); - ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { - return flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet.IdList build() { - flyteidl.core.Compiler.ConnectionSet.IdList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet.IdList buildPartial() { - flyteidl.core.Compiler.ConnectionSet.IdList result = new flyteidl.core.Compiler.ConnectionSet.IdList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - ids_ = ids_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.ids_ = ids_; - 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 flyteidl.core.Compiler.ConnectionSet.IdList) { - return mergeFrom((flyteidl.core.Compiler.ConnectionSet.IdList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet.IdList other) { - if (other == flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()) return this; - if (!other.ids_.isEmpty()) { - if (ids_.isEmpty()) { - ids_ = other.ids_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIdsIsMutable(); - ids_.addAll(other.ids_); - } - 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 { - flyteidl.core.Compiler.ConnectionSet.IdList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.ConnectionSet.IdList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - ids_ = new com.google.protobuf.LazyStringArrayList(ids_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string ids = 1; - */ - public com.google.protobuf.ProtocolStringList - getIdsList() { - return ids_.getUnmodifiableView(); - } - /** - * repeated string ids = 1; - */ - public int getIdsCount() { - return ids_.size(); - } - /** - * repeated string ids = 1; - */ - public java.lang.String getIds(int index) { - return ids_.get(index); - } - /** - * repeated string ids = 1; - */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { - return ids_.getByteString(index); - } - /** - * repeated string ids = 1; - */ - public Builder setIds( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); - ids_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string ids = 1; - */ - public Builder addIds( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); - ids_.add(value); - onChanged(); - return this; - } - /** - * repeated string ids = 1; - */ - public Builder addAllIds( - java.lang.Iterable values) { - ensureIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ids_); - onChanged(); - return this; - } - /** - * repeated string ids = 1; - */ - public Builder clearIds() { - ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string ids = 1; - */ - public Builder addIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIdsIsMutable(); - ids_.add(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:flyteidl.core.ConnectionSet.IdList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet.IdList) - private static final flyteidl.core.Compiler.ConnectionSet.IdList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet.IdList(); - } - - public static flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IdList(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 flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int DOWNSTREAM_FIELD_NUMBER = 7; - private static final class DownstreamDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; - private com.google.protobuf.MapField - internalGetDownstream() { - if (downstream_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DownstreamDefaultEntryHolder.defaultEntry); - } - return downstream_; - } - - public int getDownstreamCount() { - return internalGetDownstream().getMap().size(); - } - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public boolean containsDownstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetDownstream().getMap().containsKey(key); - } - /** - * Use {@link #getDownstreamMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getDownstream() { - return getDownstreamMap(); - } - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public java.util.Map getDownstreamMap() { - return internalGetDownstream().getMap(); - } - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDownstream().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDownstream().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int UPSTREAM_FIELD_NUMBER = 8; - private static final class UpstreamDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; - private com.google.protobuf.MapField - internalGetUpstream() { - if (upstream_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UpstreamDefaultEntryHolder.defaultEntry); - } - return upstream_; - } - - public int getUpstreamCount() { - return internalGetUpstream().getMap().size(); - } - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public boolean containsUpstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetUpstream().getMap().containsKey(key); - } - /** - * Use {@link #getUpstreamMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getUpstream() { - return getUpstreamMap(); - } - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public java.util.Map getUpstreamMap() { - return internalGetUpstream().getMap(); - } - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUpstream().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUpstream().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetDownstream(), - DownstreamDefaultEntryHolder.defaultEntry, - 7); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetUpstream(), - UpstreamDefaultEntryHolder.defaultEntry, - 8); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetDownstream().getMap().entrySet()) { - com.google.protobuf.MapEntry - downstream__ = DownstreamDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, downstream__); - } - for (java.util.Map.Entry entry - : internalGetUpstream().getMap().entrySet()) { - com.google.protobuf.MapEntry - upstream__ = UpstreamDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, upstream__); - } - 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 flyteidl.core.Compiler.ConnectionSet)) { - return super.equals(obj); - } - flyteidl.core.Compiler.ConnectionSet other = (flyteidl.core.Compiler.ConnectionSet) obj; - - if (!internalGetDownstream().equals( - other.internalGetDownstream())) return false; - if (!internalGetUpstream().equals( - other.internalGetUpstream())) 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 (!internalGetDownstream().getMap().isEmpty()) { - hash = (37 * hash) + DOWNSTREAM_FIELD_NUMBER; - hash = (53 * hash) + internalGetDownstream().hashCode(); - } - if (!internalGetUpstream().getMap().isEmpty()) { - hash = (37 * hash) + UPSTREAM_FIELD_NUMBER; - hash = (53 * hash) + internalGetUpstream().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet 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 flyteidl.core.Compiler.ConnectionSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet 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 flyteidl.core.Compiler.ConnectionSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet 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(flyteidl.core.Compiler.ConnectionSet 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; - } - /** - *
-     * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
-     * step uses this created ConnectionSet
-     * 
- * - * Protobuf type {@code flyteidl.core.ConnectionSet} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet) - flyteidl.core.Compiler.ConnectionSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 7: - return internalGetDownstream(); - case 8: - return internalGetUpstream(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 7: - return internalGetMutableDownstream(); - case 8: - return internalGetMutableUpstream(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); - } - - // Construct using flyteidl.core.Compiler.ConnectionSet.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(); - internalGetMutableDownstream().clear(); - internalGetMutableUpstream().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet getDefaultInstanceForType() { - return flyteidl.core.Compiler.ConnectionSet.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet build() { - flyteidl.core.Compiler.ConnectionSet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet buildPartial() { - flyteidl.core.Compiler.ConnectionSet result = new flyteidl.core.Compiler.ConnectionSet(this); - int from_bitField0_ = bitField0_; - result.downstream_ = internalGetDownstream(); - result.downstream_.makeImmutable(); - result.upstream_ = internalGetUpstream(); - result.upstream_.makeImmutable(); - 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 flyteidl.core.Compiler.ConnectionSet) { - return mergeFrom((flyteidl.core.Compiler.ConnectionSet)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet other) { - if (other == flyteidl.core.Compiler.ConnectionSet.getDefaultInstance()) return this; - internalGetMutableDownstream().mergeFrom( - other.internalGetDownstream()); - internalGetMutableUpstream().mergeFrom( - other.internalGetUpstream()); - 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 { - flyteidl.core.Compiler.ConnectionSet parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.ConnectionSet) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; - private com.google.protobuf.MapField - internalGetDownstream() { - if (downstream_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DownstreamDefaultEntryHolder.defaultEntry); - } - return downstream_; - } - private com.google.protobuf.MapField - internalGetMutableDownstream() { - onChanged();; - if (downstream_ == null) { - downstream_ = com.google.protobuf.MapField.newMapField( - DownstreamDefaultEntryHolder.defaultEntry); - } - if (!downstream_.isMutable()) { - downstream_ = downstream_.copy(); - } - return downstream_; - } - - public int getDownstreamCount() { - return internalGetDownstream().getMap().size(); - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public boolean containsDownstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetDownstream().getMap().containsKey(key); - } - /** - * Use {@link #getDownstreamMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getDownstream() { - return getDownstreamMap(); - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public java.util.Map getDownstreamMap() { - return internalGetDownstream().getMap(); - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDownstream().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDownstream().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearDownstream() { - internalGetMutableDownstream().getMutableMap() - .clear(); - return this; - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public Builder removeDownstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableDownstream().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableDownstream() { - return internalGetMutableDownstream().getMutableMap(); - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - public Builder putDownstream( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableDownstream().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public Builder putAllDownstream( - java.util.Map values) { - internalGetMutableDownstream().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; - private com.google.protobuf.MapField - internalGetUpstream() { - if (upstream_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UpstreamDefaultEntryHolder.defaultEntry); - } - return upstream_; - } - private com.google.protobuf.MapField - internalGetMutableUpstream() { - onChanged();; - if (upstream_ == null) { - upstream_ = com.google.protobuf.MapField.newMapField( - UpstreamDefaultEntryHolder.defaultEntry); - } - if (!upstream_.isMutable()) { - upstream_ = upstream_.copy(); - } - return upstream_; - } - - public int getUpstreamCount() { - return internalGetUpstream().getMap().size(); - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public boolean containsUpstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetUpstream().getMap().containsKey(key); - } - /** - * Use {@link #getUpstreamMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getUpstream() { - return getUpstreamMap(); - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public java.util.Map getUpstreamMap() { - return internalGetUpstream().getMap(); - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUpstream().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUpstream().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearUpstream() { - internalGetMutableUpstream().getMutableMap() - .clear(); - return this; - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public Builder removeUpstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableUpstream().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableUpstream() { - return internalGetMutableUpstream().getMutableMap(); - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - public Builder putUpstream( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableUpstream().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public Builder putAllUpstream( - java.util.Map values) { - internalGetMutableUpstream().getMutableMap() - .putAll(values); - 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:flyteidl.core.ConnectionSet) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet) - private static final flyteidl.core.Compiler.ConnectionSet DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet(); - } - - public static flyteidl.core.Compiler.ConnectionSet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectionSet(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 flyteidl.core.Compiler.ConnectionSet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CompiledWorkflowOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflow) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - boolean hasTemplate(); - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - flyteidl.core.Workflow.WorkflowTemplate getTemplate(); - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); - - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - boolean hasConnections(); - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - flyteidl.core.Compiler.ConnectionSet getConnections(); - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder(); - } - /** - *
-   * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
-   * 
- * - * Protobuf type {@code flyteidl.core.CompiledWorkflow} - */ - public static final class CompiledWorkflow extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflow) - CompiledWorkflowOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompiledWorkflow.newBuilder() to construct. - private CompiledWorkflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompiledWorkflow() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompiledWorkflow( - 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: { - flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Compiler.ConnectionSet.Builder subBuilder = null; - if (connections_ != null) { - subBuilder = connections_.toBuilder(); - } - connections_ = input.readMessage(flyteidl.core.Compiler.ConnectionSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connections_); - connections_ = 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 flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); - } - - public static final int TEMPLATE_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.WorkflowTemplate template_; - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { - return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - public static final int CONNECTIONS_FIELD_NUMBER = 2; - private flyteidl.core.Compiler.ConnectionSet connections_; - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public boolean hasConnections() { - return connections_ != null; - } - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSet getConnections() { - return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; - } - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { - return getConnections(); - } - - 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 (template_ != null) { - output.writeMessage(1, getTemplate()); - } - if (connections_ != null) { - output.writeMessage(2, getConnections()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTemplate()); - } - if (connections_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConnections()); - } - 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 flyteidl.core.Compiler.CompiledWorkflow)) { - return super.equals(obj); - } - flyteidl.core.Compiler.CompiledWorkflow other = (flyteidl.core.Compiler.CompiledWorkflow) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; - } - if (hasConnections() != other.hasConnections()) return false; - if (hasConnections()) { - if (!getConnections() - .equals(other.getConnections())) 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 (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - if (hasConnections()) { - hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; - hash = (53 * hash) + getConnections().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflow 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 flyteidl.core.Compiler.CompiledWorkflow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflow 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 flyteidl.core.Compiler.CompiledWorkflow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflow 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(flyteidl.core.Compiler.CompiledWorkflow 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; - } - /** - *
-     * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
-     * 
- * - * Protobuf type {@code flyteidl.core.CompiledWorkflow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflow) - flyteidl.core.Compiler.CompiledWorkflowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); - } - - // Construct using flyteidl.core.Compiler.CompiledWorkflow.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 (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - if (connectionsBuilder_ == null) { - connections_ = null; - } else { - connections_ = null; - connectionsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { - return flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflow build() { - flyteidl.core.Compiler.CompiledWorkflow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflow buildPartial() { - flyteidl.core.Compiler.CompiledWorkflow result = new flyteidl.core.Compiler.CompiledWorkflow(this); - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.build(); - } - if (connectionsBuilder_ == null) { - result.connections_ = connections_; - } else { - result.connections_ = connectionsBuilder_.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 flyteidl.core.Compiler.CompiledWorkflow) { - return mergeFrom((flyteidl.core.Compiler.CompiledWorkflow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflow other) { - if (other == flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()) return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - if (other.hasConnections()) { - mergeConnections(other.getConnections()); - } - 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 { - flyteidl.core.Compiler.CompiledWorkflow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.CompiledWorkflow) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Workflow.WorkflowTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder setTemplate( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - - private flyteidl.core.Compiler.ConnectionSet connections_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> connectionsBuilder_; - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public boolean hasConnections() { - return connectionsBuilder_ != null || connections_ != null; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSet getConnections() { - if (connectionsBuilder_ == null) { - return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; - } else { - return connectionsBuilder_.getMessage(); - } - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public Builder setConnections(flyteidl.core.Compiler.ConnectionSet value) { - if (connectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - connections_ = value; - onChanged(); - } else { - connectionsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public Builder setConnections( - flyteidl.core.Compiler.ConnectionSet.Builder builderForValue) { - if (connectionsBuilder_ == null) { - connections_ = builderForValue.build(); - onChanged(); - } else { - connectionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public Builder mergeConnections(flyteidl.core.Compiler.ConnectionSet value) { - if (connectionsBuilder_ == null) { - if (connections_ != null) { - connections_ = - flyteidl.core.Compiler.ConnectionSet.newBuilder(connections_).mergeFrom(value).buildPartial(); - } else { - connections_ = value; - } - onChanged(); - } else { - connectionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public Builder clearConnections() { - if (connectionsBuilder_ == null) { - connections_ = null; - onChanged(); - } else { - connections_ = null; - connectionsBuilder_ = null; - } - - return this; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSet.Builder getConnectionsBuilder() { - - onChanged(); - return getConnectionsFieldBuilder().getBuilder(); - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { - if (connectionsBuilder_ != null) { - return connectionsBuilder_.getMessageOrBuilder(); - } else { - return connections_ == null ? - flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; - } - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> - getConnectionsFieldBuilder() { - if (connectionsBuilder_ == null) { - connectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder>( - getConnections(), - getParentForChildren(), - isClean()); - connections_ = null; - } - return connectionsBuilder_; - } - @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:flyteidl.core.CompiledWorkflow) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflow) - private static final flyteidl.core.Compiler.CompiledWorkflow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflow(); - } - - public static flyteidl.core.Compiler.CompiledWorkflow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompiledWorkflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompiledWorkflow(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 flyteidl.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CompiledTaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledTask) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - boolean hasTemplate(); - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - flyteidl.core.Tasks.TaskTemplate getTemplate(); - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); - } - /** - *
-   * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
-   * 
- * - * Protobuf type {@code flyteidl.core.CompiledTask} - */ - public static final class CompiledTask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledTask) - CompiledTaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompiledTask.newBuilder() to construct. - private CompiledTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompiledTask() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompiledTask( - 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: { - flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = 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 flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); - } - - public static final int TEMPLATE_FIELD_NUMBER = 1; - private flyteidl.core.Tasks.TaskTemplate template_; - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - 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 (template_ != null) { - output.writeMessage(1, getTemplate()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTemplate()); - } - 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 flyteidl.core.Compiler.CompiledTask)) { - return super.equals(obj); - } - flyteidl.core.Compiler.CompiledTask other = (flyteidl.core.Compiler.CompiledTask) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) 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 (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.CompiledTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledTask 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 flyteidl.core.Compiler.CompiledTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledTask 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 flyteidl.core.Compiler.CompiledTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledTask 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(flyteidl.core.Compiler.CompiledTask 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; - } - /** - *
-     * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
-     * 
- * - * Protobuf type {@code flyteidl.core.CompiledTask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledTask) - flyteidl.core.Compiler.CompiledTaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); - } - - // Construct using flyteidl.core.Compiler.CompiledTask.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 (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledTask getDefaultInstanceForType() { - return flyteidl.core.Compiler.CompiledTask.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledTask build() { - flyteidl.core.Compiler.CompiledTask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledTask buildPartial() { - flyteidl.core.Compiler.CompiledTask result = new flyteidl.core.Compiler.CompiledTask(this); - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.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 flyteidl.core.Compiler.CompiledTask) { - return mergeFrom((flyteidl.core.Compiler.CompiledTask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.CompiledTask other) { - if (other == flyteidl.core.Compiler.CompiledTask.getDefaultInstance()) return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - 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 { - flyteidl.core.Compiler.CompiledTask parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.CompiledTask) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Tasks.TaskTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder setTemplate( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - @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:flyteidl.core.CompiledTask) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledTask) - private static final flyteidl.core.Compiler.CompiledTask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledTask(); - } - - public static flyteidl.core.Compiler.CompiledTask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompiledTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompiledTask(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 flyteidl.core.Compiler.CompiledTask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CompiledWorkflowClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflowClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - boolean hasPrimary(); - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - flyteidl.core.Compiler.CompiledWorkflow getPrimary(); - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder(); - - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - java.util.List - getSubWorkflowsList(); - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index); - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - int getSubWorkflowsCount(); - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - java.util.List - getSubWorkflowsOrBuilderList(); - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( - int index); - - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - java.util.List - getTasksList(); - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - flyteidl.core.Compiler.CompiledTask getTasks(int index); - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - int getTasksCount(); - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - java.util.List - getTasksOrBuilderList(); - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( - int index); - } - /** - *
-   * A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
-   * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
-   * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
-   * compiled subworkflows.
-   * 
- * - * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} - */ - public static final class CompiledWorkflowClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflowClosure) - CompiledWorkflowClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompiledWorkflowClosure.newBuilder() to construct. - private CompiledWorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompiledWorkflowClosure() { - subWorkflows_ = java.util.Collections.emptyList(); - tasks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompiledWorkflowClosure( - 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: { - flyteidl.core.Compiler.CompiledWorkflow.Builder subBuilder = null; - if (primary_ != null) { - subBuilder = primary_.toBuilder(); - } - primary_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(primary_); - primary_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - subWorkflows_.add( - input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - tasks_.add( - input.readMessage(flyteidl.core.Compiler.CompiledTask.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_ & 0x00000002) != 0)) { - subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); - } - - private int bitField0_; - public static final int PRIMARY_FIELD_NUMBER = 1; - private flyteidl.core.Compiler.CompiledWorkflow primary_; - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public boolean hasPrimary() { - return primary_ != null; - } - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { - return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; - } - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { - return getPrimary(); - } - - public static final int SUB_WORKFLOWS_FIELD_NUMBER = 2; - private java.util.List subWorkflows_; - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List getSubWorkflowsList() { - return subWorkflows_; - } - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsOrBuilderList() { - return subWorkflows_; - } - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public int getSubWorkflowsCount() { - return subWorkflows_.size(); - } - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { - return subWorkflows_.get(index); - } - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( - int index) { - return subWorkflows_.get(index); - } - - public static final int TASKS_FIELD_NUMBER = 3; - private java.util.List tasks_; - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask getTasks(int index) { - return tasks_.get(index); - } - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( - int index) { - return tasks_.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 (primary_ != null) { - output.writeMessage(1, getPrimary()); - } - for (int i = 0; i < subWorkflows_.size(); i++) { - output.writeMessage(2, subWorkflows_.get(i)); - } - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(3, tasks_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (primary_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPrimary()); - } - for (int i = 0; i < subWorkflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, subWorkflows_.get(i)); - } - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, tasks_.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 flyteidl.core.Compiler.CompiledWorkflowClosure)) { - return super.equals(obj); - } - flyteidl.core.Compiler.CompiledWorkflowClosure other = (flyteidl.core.Compiler.CompiledWorkflowClosure) obj; - - if (hasPrimary() != other.hasPrimary()) return false; - if (hasPrimary()) { - if (!getPrimary() - .equals(other.getPrimary())) return false; - } - if (!getSubWorkflowsList() - .equals(other.getSubWorkflowsList())) return false; - if (!getTasksList() - .equals(other.getTasksList())) 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 (hasPrimary()) { - hash = (37 * hash) + PRIMARY_FIELD_NUMBER; - hash = (53 * hash) + getPrimary().hashCode(); - } - if (getSubWorkflowsCount() > 0) { - hash = (37 * hash) + SUB_WORKFLOWS_FIELD_NUMBER; - hash = (53 * hash) + getSubWorkflowsList().hashCode(); - } - if (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure 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 flyteidl.core.Compiler.CompiledWorkflowClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure 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 flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure 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(flyteidl.core.Compiler.CompiledWorkflowClosure 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 Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
-     * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
-     * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
-     * compiled subworkflows.
-     * 
- * - * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflowClosure) - flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); - } - - // Construct using flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSubWorkflowsFieldBuilder(); - getTasksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (primaryBuilder_ == null) { - primary_ = null; - } else { - primary_ = null; - primaryBuilder_ = null; - } - if (subWorkflowsBuilder_ == null) { - subWorkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - subWorkflowsBuilder_.clear(); - } - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - tasksBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { - return flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflowClosure build() { - flyteidl.core.Compiler.CompiledWorkflowClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflowClosure buildPartial() { - flyteidl.core.Compiler.CompiledWorkflowClosure result = new flyteidl.core.Compiler.CompiledWorkflowClosure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (primaryBuilder_ == null) { - result.primary_ = primary_; - } else { - result.primary_ = primaryBuilder_.build(); - } - if (subWorkflowsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.subWorkflows_ = subWorkflows_; - } else { - result.subWorkflows_ = subWorkflowsBuilder_.build(); - } - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.core.Compiler.CompiledWorkflowClosure) { - return mergeFrom((flyteidl.core.Compiler.CompiledWorkflowClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflowClosure other) { - if (other == flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance()) return this; - if (other.hasPrimary()) { - mergePrimary(other.getPrimary()); - } - if (subWorkflowsBuilder_ == null) { - if (!other.subWorkflows_.isEmpty()) { - if (subWorkflows_.isEmpty()) { - subWorkflows_ = other.subWorkflows_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSubWorkflowsIsMutable(); - subWorkflows_.addAll(other.subWorkflows_); - } - onChanged(); - } - } else { - if (!other.subWorkflows_.isEmpty()) { - if (subWorkflowsBuilder_.isEmpty()) { - subWorkflowsBuilder_.dispose(); - subWorkflowsBuilder_ = null; - subWorkflows_ = other.subWorkflows_; - bitField0_ = (bitField0_ & ~0x00000002); - subWorkflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubWorkflowsFieldBuilder() : null; - } else { - subWorkflowsBuilder_.addAllMessages(other.subWorkflows_); - } - } - } - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000004); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - 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 { - flyteidl.core.Compiler.CompiledWorkflowClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.CompiledWorkflowClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.Compiler.CompiledWorkflow primary_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> primaryBuilder_; - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public boolean hasPrimary() { - return primaryBuilder_ != null || primary_ != null; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { - if (primaryBuilder_ == null) { - return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; - } else { - return primaryBuilder_.getMessage(); - } - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public Builder setPrimary(flyteidl.core.Compiler.CompiledWorkflow value) { - if (primaryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - primary_ = value; - onChanged(); - } else { - primaryBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public Builder setPrimary( - flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { - if (primaryBuilder_ == null) { - primary_ = builderForValue.build(); - onChanged(); - } else { - primaryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public Builder mergePrimary(flyteidl.core.Compiler.CompiledWorkflow value) { - if (primaryBuilder_ == null) { - if (primary_ != null) { - primary_ = - flyteidl.core.Compiler.CompiledWorkflow.newBuilder(primary_).mergeFrom(value).buildPartial(); - } else { - primary_ = value; - } - onChanged(); - } else { - primaryBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public Builder clearPrimary() { - if (primaryBuilder_ == null) { - primary_ = null; - onChanged(); - } else { - primary_ = null; - primaryBuilder_ = null; - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflow.Builder getPrimaryBuilder() { - - onChanged(); - return getPrimaryFieldBuilder().getBuilder(); - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { - if (primaryBuilder_ != null) { - return primaryBuilder_.getMessageOrBuilder(); - } else { - return primary_ == null ? - flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; - } - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> - getPrimaryFieldBuilder() { - if (primaryBuilder_ == null) { - primaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( - getPrimary(), - getParentForChildren(), - isClean()); - primary_ = null; - } - return primaryBuilder_; - } - - private java.util.List subWorkflows_ = - java.util.Collections.emptyList(); - private void ensureSubWorkflowsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = new java.util.ArrayList(subWorkflows_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> subWorkflowsBuilder_; - - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List getSubWorkflowsList() { - if (subWorkflowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subWorkflows_); - } else { - return subWorkflowsBuilder_.getMessageList(); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public int getSubWorkflowsCount() { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.size(); - } else { - return subWorkflowsBuilder_.getCount(); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.get(index); - } else { - return subWorkflowsBuilder_.getMessage(index); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder setSubWorkflows( - int index, flyteidl.core.Compiler.CompiledWorkflow value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.set(index, value); - onChanged(); - } else { - subWorkflowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder setSubWorkflows( - int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.set(index, builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addSubWorkflows(flyteidl.core.Compiler.CompiledWorkflow value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(value); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addSubWorkflows( - int index, flyteidl.core.Compiler.CompiledWorkflow value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(index, value); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addSubWorkflows( - flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addSubWorkflows( - int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(index, builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addAllSubWorkflows( - java.lang.Iterable values) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subWorkflows_); - onChanged(); - } else { - subWorkflowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder clearSubWorkflows() { - if (subWorkflowsBuilder_ == null) { - subWorkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - subWorkflowsBuilder_.clear(); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder removeSubWorkflows(int index) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.remove(index); - onChanged(); - } else { - subWorkflowsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow.Builder getSubWorkflowsBuilder( - int index) { - return getSubWorkflowsFieldBuilder().getBuilder(index); - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( - int index) { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.get(index); } else { - return subWorkflowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsOrBuilderList() { - if (subWorkflowsBuilder_ != null) { - return subWorkflowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subWorkflows_); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder() { - return getSubWorkflowsFieldBuilder().addBuilder( - flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder( - int index) { - return getSubWorkflowsFieldBuilder().addBuilder( - index, flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsBuilderList() { - return getSubWorkflowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> - getSubWorkflowsFieldBuilder() { - if (subWorkflowsBuilder_ == null) { - subWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( - subWorkflows_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - subWorkflows_ = null; - } - return subWorkflowsBuilder_; - } - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> tasksBuilder_; - - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder setTasks( - int index, flyteidl.core.Compiler.CompiledTask value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder setTasks( - int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addTasks(flyteidl.core.Compiler.CompiledTask value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addTasks( - int index, flyteidl.core.Compiler.CompiledTask value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addTasks( - flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addTasks( - int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( - tasks_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - @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:flyteidl.core.CompiledWorkflowClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflowClosure) - private static final flyteidl.core.Compiler.CompiledWorkflowClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflowClosure(); - } - - public static flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompiledWorkflowClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompiledWorkflowClosure(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 flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConnectionSet_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_CompiledWorkflow_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_CompiledTask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_CompiledTask_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_CompiledWorkflowClosure_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\034flyteidl/core/compiler.proto\022\rflyteidl" + - ".core\032\034flyteidl/core/workflow.proto\032\031fly" + - "teidl/core/tasks.proto\"\324\002\n\rConnectionSet" + - "\022@\n\ndownstream\030\007 \003(\0132,.flyteidl.core.Con" + - "nectionSet.DownstreamEntry\022<\n\010upstream\030\010" + - " \003(\0132*.flyteidl.core.ConnectionSet.Upstr" + - "eamEntry\032\025\n\006IdList\022\013\n\003ids\030\001 \003(\t\032V\n\017Downs" + - "treamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#" + - ".flyteidl.core.ConnectionSet.IdList:\0028\001\032" + - "T\n\rUpstreamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002" + - " \001(\0132#.flyteidl.core.ConnectionSet.IdLis" + - "t:\0028\001\"x\n\020CompiledWorkflow\0221\n\010template\030\001 " + - "\001(\0132\037.flyteidl.core.WorkflowTemplate\0221\n\013" + - "connections\030\002 \001(\0132\034.flyteidl.core.Connec" + - "tionSet\"=\n\014CompiledTask\022-\n\010template\030\001 \001(" + - "\0132\033.flyteidl.core.TaskTemplate\"\257\001\n\027Compi" + - "ledWorkflowClosure\0220\n\007primary\030\001 \001(\0132\037.fl" + - "yteidl.core.CompiledWorkflow\0226\n\rsub_work" + - "flows\030\002 \003(\0132\037.flyteidl.core.CompiledWork" + - "flow\022*\n\005tasks\030\003 \003(\0132\033.flyteidl.core.Comp" + - "iledTaskB2Z0github.com/lyft/flyteidl/gen" + - "/pb-go/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Workflow.getDescriptor(), - flyteidl.core.Tasks.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_ConnectionSet_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ConnectionSet_descriptor, - new java.lang.String[] { "Downstream", "Upstream", }); - internal_static_flyteidl_core_ConnectionSet_IdList_descriptor = - internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ConnectionSet_IdList_descriptor, - new java.lang.String[] { "Ids", }); - internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor = - internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(1); - internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor = - internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(2); - internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_core_CompiledWorkflow_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_CompiledWorkflow_descriptor, - new java.lang.String[] { "Template", "Connections", }); - internal_static_flyteidl_core_CompiledTask_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_CompiledTask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_CompiledTask_descriptor, - new java.lang.String[] { "Template", }); - internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor, - new java.lang.String[] { "Primary", "SubWorkflows", "Tasks", }); - flyteidl.core.Workflow.getDescriptor(); - flyteidl.core.Tasks.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Condition.java b/gen/pb-java/flyteidl/core/Condition.java deleted file mode 100644 index fab054101..000000000 --- a/gen/pb-java/flyteidl/core/Condition.java +++ /dev/null @@ -1,4070 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/condition.proto - -package flyteidl.core; - -public final class Condition { - private Condition() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ComparisonExpressionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ComparisonExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - int getOperatorValue(); - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - flyteidl.core.Condition.ComparisonExpression.Operator getOperator(); - - /** - * .flyteidl.core.Operand left_value = 2; - */ - boolean hasLeftValue(); - /** - * .flyteidl.core.Operand left_value = 2; - */ - flyteidl.core.Condition.Operand getLeftValue(); - /** - * .flyteidl.core.Operand left_value = 2; - */ - flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder(); - - /** - * .flyteidl.core.Operand right_value = 3; - */ - boolean hasRightValue(); - /** - * .flyteidl.core.Operand right_value = 3; - */ - flyteidl.core.Condition.Operand getRightValue(); - /** - * .flyteidl.core.Operand right_value = 3; - */ - flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder(); - } - /** - *
-   * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
-   * Each expression results in a boolean result.
-   * 
- * - * Protobuf type {@code flyteidl.core.ComparisonExpression} - */ - public static final class ComparisonExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ComparisonExpression) - ComparisonExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use ComparisonExpression.newBuilder() to construct. - private ComparisonExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ComparisonExpression() { - operator_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ComparisonExpression( - 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 8: { - int rawValue = input.readEnum(); - - operator_ = rawValue; - break; - } - case 18: { - flyteidl.core.Condition.Operand.Builder subBuilder = null; - if (leftValue_ != null) { - subBuilder = leftValue_.toBuilder(); - } - leftValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(leftValue_); - leftValue_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Condition.Operand.Builder subBuilder = null; - if (rightValue_ != null) { - subBuilder = rightValue_.toBuilder(); - } - rightValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rightValue_); - rightValue_ = 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 flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); - } - - /** - *
-     * Binary Operator for each expression
-     * 
- * - * Protobuf enum {@code flyteidl.core.ComparisonExpression.Operator} - */ - public enum Operator - implements com.google.protobuf.ProtocolMessageEnum { - /** - * EQ = 0; - */ - EQ(0), - /** - * NEQ = 1; - */ - NEQ(1), - /** - *
-       * Greater Than
-       * 
- * - * GT = 2; - */ - GT(2), - /** - * GTE = 3; - */ - GTE(3), - /** - *
-       * Less Than
-       * 
- * - * LT = 4; - */ - LT(4), - /** - * LTE = 5; - */ - LTE(5), - UNRECOGNIZED(-1), - ; - - /** - * EQ = 0; - */ - public static final int EQ_VALUE = 0; - /** - * NEQ = 1; - */ - public static final int NEQ_VALUE = 1; - /** - *
-       * Greater Than
-       * 
- * - * GT = 2; - */ - public static final int GT_VALUE = 2; - /** - * GTE = 3; - */ - public static final int GTE_VALUE = 3; - /** - *
-       * Less Than
-       * 
- * - * LT = 4; - */ - public static final int LT_VALUE = 4; - /** - * LTE = 5; - */ - public static final int LTE_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Operator valueOf(int value) { - return forNumber(value); - } - - public static Operator forNumber(int value) { - switch (value) { - case 0: return EQ; - case 1: return NEQ; - case 2: return GT; - case 3: return GTE; - case 4: return LT; - case 5: return LTE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Operator> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Operator findValueByNumber(int number) { - return Operator.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Condition.ComparisonExpression.getDescriptor().getEnumTypes().get(0); - } - - private static final Operator[] VALUES = values(); - - public static Operator 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 Operator(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ComparisonExpression.Operator) - } - - public static final int OPERATOR_FIELD_NUMBER = 1; - private int operator_; - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public int getOperatorValue() { - return operator_; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { - @SuppressWarnings("deprecation") - flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); - return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; - } - - public static final int LEFT_VALUE_FIELD_NUMBER = 2; - private flyteidl.core.Condition.Operand leftValue_; - /** - * .flyteidl.core.Operand left_value = 2; - */ - public boolean hasLeftValue() { - return leftValue_ != null; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.Operand getLeftValue() { - return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { - return getLeftValue(); - } - - public static final int RIGHT_VALUE_FIELD_NUMBER = 3; - private flyteidl.core.Condition.Operand rightValue_; - /** - * .flyteidl.core.Operand right_value = 3; - */ - public boolean hasRightValue() { - return rightValue_ != null; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.Operand getRightValue() { - return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { - return getRightValue(); - } - - 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 (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { - output.writeEnum(1, operator_); - } - if (leftValue_ != null) { - output.writeMessage(2, getLeftValue()); - } - if (rightValue_ != null) { - output.writeMessage(3, getRightValue()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, operator_); - } - if (leftValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLeftValue()); - } - if (rightValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRightValue()); - } - 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 flyteidl.core.Condition.ComparisonExpression)) { - return super.equals(obj); - } - flyteidl.core.Condition.ComparisonExpression other = (flyteidl.core.Condition.ComparisonExpression) obj; - - if (operator_ != other.operator_) return false; - if (hasLeftValue() != other.hasLeftValue()) return false; - if (hasLeftValue()) { - if (!getLeftValue() - .equals(other.getLeftValue())) return false; - } - if (hasRightValue() != other.hasRightValue()) return false; - if (hasRightValue()) { - if (!getRightValue() - .equals(other.getRightValue())) 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) + OPERATOR_FIELD_NUMBER; - hash = (53 * hash) + operator_; - if (hasLeftValue()) { - hash = (37 * hash) + LEFT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getLeftValue().hashCode(); - } - if (hasRightValue()) { - hash = (37 * hash) + RIGHT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getRightValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ComparisonExpression 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 flyteidl.core.Condition.ComparisonExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ComparisonExpression 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 flyteidl.core.Condition.ComparisonExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ComparisonExpression 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(flyteidl.core.Condition.ComparisonExpression 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; - } - /** - *
-     * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
-     * Each expression results in a boolean result.
-     * 
- * - * Protobuf type {@code flyteidl.core.ComparisonExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ComparisonExpression) - flyteidl.core.Condition.ComparisonExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); - } - - // Construct using flyteidl.core.Condition.ComparisonExpression.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(); - operator_ = 0; - - if (leftValueBuilder_ == null) { - leftValue_ = null; - } else { - leftValue_ = null; - leftValueBuilder_ = null; - } - if (rightValueBuilder_ == null) { - rightValue_ = null; - } else { - rightValue_ = null; - rightValueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; - } - - @java.lang.Override - public flyteidl.core.Condition.ComparisonExpression getDefaultInstanceForType() { - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Condition.ComparisonExpression build() { - flyteidl.core.Condition.ComparisonExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Condition.ComparisonExpression buildPartial() { - flyteidl.core.Condition.ComparisonExpression result = new flyteidl.core.Condition.ComparisonExpression(this); - result.operator_ = operator_; - if (leftValueBuilder_ == null) { - result.leftValue_ = leftValue_; - } else { - result.leftValue_ = leftValueBuilder_.build(); - } - if (rightValueBuilder_ == null) { - result.rightValue_ = rightValue_; - } else { - result.rightValue_ = rightValueBuilder_.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 flyteidl.core.Condition.ComparisonExpression) { - return mergeFrom((flyteidl.core.Condition.ComparisonExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Condition.ComparisonExpression other) { - if (other == flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) return this; - if (other.operator_ != 0) { - setOperatorValue(other.getOperatorValue()); - } - if (other.hasLeftValue()) { - mergeLeftValue(other.getLeftValue()); - } - if (other.hasRightValue()) { - mergeRightValue(other.getRightValue()); - } - 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 { - flyteidl.core.Condition.ComparisonExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Condition.ComparisonExpression) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int operator_ = 0; - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public int getOperatorValue() { - return operator_; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public Builder setOperatorValue(int value) { - operator_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { - @SuppressWarnings("deprecation") - flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); - return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public Builder setOperator(flyteidl.core.Condition.ComparisonExpression.Operator value) { - if (value == null) { - throw new NullPointerException(); - } - - operator_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public Builder clearOperator() { - - operator_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Condition.Operand leftValue_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> leftValueBuilder_; - /** - * .flyteidl.core.Operand left_value = 2; - */ - public boolean hasLeftValue() { - return leftValueBuilder_ != null || leftValue_ != null; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.Operand getLeftValue() { - if (leftValueBuilder_ == null) { - return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; - } else { - return leftValueBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public Builder setLeftValue(flyteidl.core.Condition.Operand value) { - if (leftValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - leftValue_ = value; - onChanged(); - } else { - leftValueBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public Builder setLeftValue( - flyteidl.core.Condition.Operand.Builder builderForValue) { - if (leftValueBuilder_ == null) { - leftValue_ = builderForValue.build(); - onChanged(); - } else { - leftValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public Builder mergeLeftValue(flyteidl.core.Condition.Operand value) { - if (leftValueBuilder_ == null) { - if (leftValue_ != null) { - leftValue_ = - flyteidl.core.Condition.Operand.newBuilder(leftValue_).mergeFrom(value).buildPartial(); - } else { - leftValue_ = value; - } - onChanged(); - } else { - leftValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public Builder clearLeftValue() { - if (leftValueBuilder_ == null) { - leftValue_ = null; - onChanged(); - } else { - leftValue_ = null; - leftValueBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.Operand.Builder getLeftValueBuilder() { - - onChanged(); - return getLeftValueFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { - if (leftValueBuilder_ != null) { - return leftValueBuilder_.getMessageOrBuilder(); - } else { - return leftValue_ == null ? - flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; - } - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> - getLeftValueFieldBuilder() { - if (leftValueBuilder_ == null) { - leftValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( - getLeftValue(), - getParentForChildren(), - isClean()); - leftValue_ = null; - } - return leftValueBuilder_; - } - - private flyteidl.core.Condition.Operand rightValue_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> rightValueBuilder_; - /** - * .flyteidl.core.Operand right_value = 3; - */ - public boolean hasRightValue() { - return rightValueBuilder_ != null || rightValue_ != null; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.Operand getRightValue() { - if (rightValueBuilder_ == null) { - return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; - } else { - return rightValueBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public Builder setRightValue(flyteidl.core.Condition.Operand value) { - if (rightValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rightValue_ = value; - onChanged(); - } else { - rightValueBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public Builder setRightValue( - flyteidl.core.Condition.Operand.Builder builderForValue) { - if (rightValueBuilder_ == null) { - rightValue_ = builderForValue.build(); - onChanged(); - } else { - rightValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public Builder mergeRightValue(flyteidl.core.Condition.Operand value) { - if (rightValueBuilder_ == null) { - if (rightValue_ != null) { - rightValue_ = - flyteidl.core.Condition.Operand.newBuilder(rightValue_).mergeFrom(value).buildPartial(); - } else { - rightValue_ = value; - } - onChanged(); - } else { - rightValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public Builder clearRightValue() { - if (rightValueBuilder_ == null) { - rightValue_ = null; - onChanged(); - } else { - rightValue_ = null; - rightValueBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.Operand.Builder getRightValueBuilder() { - - onChanged(); - return getRightValueFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { - if (rightValueBuilder_ != null) { - return rightValueBuilder_.getMessageOrBuilder(); - } else { - return rightValue_ == null ? - flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; - } - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> - getRightValueFieldBuilder() { - if (rightValueBuilder_ == null) { - rightValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( - getRightValue(), - getParentForChildren(), - isClean()); - rightValue_ = null; - } - return rightValueBuilder_; - } - @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:flyteidl.core.ComparisonExpression) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ComparisonExpression) - private static final flyteidl.core.Condition.ComparisonExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Condition.ComparisonExpression(); - } - - public static flyteidl.core.Condition.ComparisonExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComparisonExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ComparisonExpression(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 flyteidl.core.Condition.ComparisonExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OperandOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Operand) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - boolean hasPrimitive(); - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - flyteidl.core.Literals.Primitive getPrimitive(); - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); - - /** - *
-     * Or one of this node's input variables
-     * 
- * - * string var = 2; - */ - java.lang.String getVar(); - /** - *
-     * Or one of this node's input variables
-     * 
- * - * string var = 2; - */ - com.google.protobuf.ByteString - getVarBytes(); - - public flyteidl.core.Condition.Operand.ValCase getValCase(); - } - /** - *
-   * Defines an operand to a comparison expression.
-   * 
- * - * Protobuf type {@code flyteidl.core.Operand} - */ - public static final class Operand extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Operand) - OperandOrBuilder { - private static final long serialVersionUID = 0L; - // Use Operand.newBuilder() to construct. - private Operand(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Operand() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Operand( - 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: { - flyteidl.core.Literals.Primitive.Builder subBuilder = null; - if (valCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.Primitive) val_).toBuilder(); - } - val_ = - input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) val_); - val_ = subBuilder.buildPartial(); - } - valCase_ = 1; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - valCase_ = 2; - val_ = 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 flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); - } - - private int valCase_ = 0; - private java.lang.Object val_; - public enum ValCase - implements com.google.protobuf.Internal.EnumLite { - PRIMITIVE(1), - VAR(2), - VAL_NOT_SET(0); - private final int value; - private ValCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValCase valueOf(int value) { - return forNumber(value); - } - - public static ValCase forNumber(int value) { - switch (value) { - case 1: return PRIMITIVE; - case 2: return VAR; - case 0: return VAL_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public static final int PRIMITIVE_FIELD_NUMBER = 1; - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public boolean hasPrimitive() { - return valCase_ == 1; - } - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive getPrimitive() { - if (valCase_ == 1) { - return (flyteidl.core.Literals.Primitive) val_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { - if (valCase_ == 1) { - return (flyteidl.core.Literals.Primitive) val_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - - public static final int VAR_FIELD_NUMBER = 2; - /** - *
-     * Or one of this node's input variables
-     * 
- * - * string var = 2; - */ - public java.lang.String getVar() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - 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(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } - } - /** - *
-     * Or one of this node's input variables
-     * 
- * - * string var = 2; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = 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 (valCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.Primitive) val_); - } - if (valCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, val_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.Primitive) val_); - } - if (valCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, val_); - } - 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 flyteidl.core.Condition.Operand)) { - return super.equals(obj); - } - flyteidl.core.Condition.Operand other = (flyteidl.core.Condition.Operand) obj; - - if (!getValCase().equals(other.getValCase())) return false; - switch (valCase_) { - case 1: - if (!getPrimitive() - .equals(other.getPrimitive())) return false; - break; - case 2: - if (!getVar() - .equals(other.getVar())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valCase_) { - case 1: - hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; - hash = (53 * hash) + getPrimitive().hashCode(); - break; - case 2: - hash = (37 * hash) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Condition.Operand parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.Operand parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.Operand parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.Operand parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.Operand parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.Operand parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.Operand parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.Operand 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 flyteidl.core.Condition.Operand parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.Operand 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 flyteidl.core.Condition.Operand parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.Operand 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(flyteidl.core.Condition.Operand 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; - } - /** - *
-     * Defines an operand to a comparison expression.
-     * 
- * - * Protobuf type {@code flyteidl.core.Operand} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Operand) - flyteidl.core.Condition.OperandOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); - } - - // Construct using flyteidl.core.Condition.Operand.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(); - valCase_ = 0; - val_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; - } - - @java.lang.Override - public flyteidl.core.Condition.Operand getDefaultInstanceForType() { - return flyteidl.core.Condition.Operand.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Condition.Operand build() { - flyteidl.core.Condition.Operand result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Condition.Operand buildPartial() { - flyteidl.core.Condition.Operand result = new flyteidl.core.Condition.Operand(this); - if (valCase_ == 1) { - if (primitiveBuilder_ == null) { - result.val_ = val_; - } else { - result.val_ = primitiveBuilder_.build(); - } - } - if (valCase_ == 2) { - result.val_ = val_; - } - result.valCase_ = valCase_; - 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 flyteidl.core.Condition.Operand) { - return mergeFrom((flyteidl.core.Condition.Operand)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Condition.Operand other) { - if (other == flyteidl.core.Condition.Operand.getDefaultInstance()) return this; - switch (other.getValCase()) { - case PRIMITIVE: { - mergePrimitive(other.getPrimitive()); - break; - } - case VAR: { - valCase_ = 2; - val_ = other.val_; - onChanged(); - break; - } - case VAL_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 { - flyteidl.core.Condition.Operand parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Condition.Operand) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valCase_ = 0; - private java.lang.Object val_; - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public Builder clearVal() { - valCase_ = 0; - val_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public boolean hasPrimitive() { - return valCase_ == 1; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive getPrimitive() { - if (primitiveBuilder_ == null) { - if (valCase_ == 1) { - return (flyteidl.core.Literals.Primitive) val_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } else { - if (valCase_ == 1) { - return primitiveBuilder_.getMessage(); - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { - if (primitiveBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - onChanged(); - } else { - primitiveBuilder_.setMessage(value); - } - valCase_ = 1; - return this; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder setPrimitive( - flyteidl.core.Literals.Primitive.Builder builderForValue) { - if (primitiveBuilder_ == null) { - val_ = builderForValue.build(); - onChanged(); - } else { - primitiveBuilder_.setMessage(builderForValue.build()); - } - valCase_ = 1; - return this; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { - if (primitiveBuilder_ == null) { - if (valCase_ == 1 && - val_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { - val_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) val_) - .mergeFrom(value).buildPartial(); - } else { - val_ = value; - } - onChanged(); - } else { - if (valCase_ == 1) { - primitiveBuilder_.mergeFrom(value); - } - primitiveBuilder_.setMessage(value); - } - valCase_ = 1; - return this; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder clearPrimitive() { - if (primitiveBuilder_ == null) { - if (valCase_ == 1) { - valCase_ = 0; - val_ = null; - onChanged(); - } - } else { - if (valCase_ == 1) { - valCase_ = 0; - val_ = null; - } - primitiveBuilder_.clear(); - } - return this; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { - return getPrimitiveFieldBuilder().getBuilder(); - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { - if ((valCase_ == 1) && (primitiveBuilder_ != null)) { - return primitiveBuilder_.getMessageOrBuilder(); - } else { - if (valCase_ == 1) { - return (flyteidl.core.Literals.Primitive) val_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> - getPrimitiveFieldBuilder() { - if (primitiveBuilder_ == null) { - if (!(valCase_ == 1)) { - val_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( - (flyteidl.core.Literals.Primitive) val_, - getParentForChildren(), - isClean()); - val_ = null; - } - valCase_ = 1; - onChanged();; - return primitiveBuilder_; - } - - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public java.lang.String getVar() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public Builder setVar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public Builder clearVar() { - if (valCase_ == 2) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public Builder setVarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valCase_ = 2; - val_ = 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:flyteidl.core.Operand) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Operand) - private static final flyteidl.core.Condition.Operand DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Condition.Operand(); - } - - public static flyteidl.core.Condition.Operand getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Operand parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Operand(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 flyteidl.core.Condition.Operand getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BooleanExpressionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BooleanExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - boolean hasConjunction(); - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - flyteidl.core.Condition.ConjunctionExpression getConjunction(); - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder(); - - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - boolean hasComparison(); - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - flyteidl.core.Condition.ComparisonExpression getComparison(); - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder(); - - public flyteidl.core.Condition.BooleanExpression.ExprCase getExprCase(); - } - /** - *
-   * Defines a boolean expression tree. It can be a simple or a conjunction expression.
-   * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
-   * 
- * - * Protobuf type {@code flyteidl.core.BooleanExpression} - */ - public static final class BooleanExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BooleanExpression) - BooleanExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use BooleanExpression.newBuilder() to construct. - private BooleanExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BooleanExpression() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BooleanExpression( - 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: { - flyteidl.core.Condition.ConjunctionExpression.Builder subBuilder = null; - if (exprCase_ == 1) { - subBuilder = ((flyteidl.core.Condition.ConjunctionExpression) expr_).toBuilder(); - } - expr_ = - input.readMessage(flyteidl.core.Condition.ConjunctionExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Condition.ConjunctionExpression) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 1; - break; - } - case 18: { - flyteidl.core.Condition.ComparisonExpression.Builder subBuilder = null; - if (exprCase_ == 2) { - subBuilder = ((flyteidl.core.Condition.ComparisonExpression) expr_).toBuilder(); - } - expr_ = - input.readMessage(flyteidl.core.Condition.ComparisonExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Condition.ComparisonExpression) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 2; - 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 flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); - } - - private int exprCase_ = 0; - private java.lang.Object expr_; - public enum ExprCase - implements com.google.protobuf.Internal.EnumLite { - CONJUNCTION(1), - COMPARISON(2), - EXPR_NOT_SET(0); - private final int value; - private ExprCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExprCase valueOf(int value) { - return forNumber(value); - } - - public static ExprCase forNumber(int value) { - switch (value) { - case 1: return CONJUNCTION; - case 2: return COMPARISON; - case 0: return EXPR_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public static final int CONJUNCTION_FIELD_NUMBER = 1; - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public boolean hasConjunction() { - return exprCase_ == 1; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression getConjunction() { - if (exprCase_ == 1) { - return (flyteidl.core.Condition.ConjunctionExpression) expr_; - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { - if (exprCase_ == 1) { - return (flyteidl.core.Condition.ConjunctionExpression) expr_; - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - - public static final int COMPARISON_FIELD_NUMBER = 2; - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public boolean hasComparison() { - return exprCase_ == 2; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpression getComparison() { - if (exprCase_ == 2) { - return (flyteidl.core.Condition.ComparisonExpression) expr_; - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { - if (exprCase_ == 2) { - return (flyteidl.core.Condition.ComparisonExpression) expr_; - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (exprCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); - } - if (exprCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Condition.ComparisonExpression) expr_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (exprCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); - } - if (exprCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Condition.ComparisonExpression) expr_); - } - 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 flyteidl.core.Condition.BooleanExpression)) { - return super.equals(obj); - } - flyteidl.core.Condition.BooleanExpression other = (flyteidl.core.Condition.BooleanExpression) obj; - - if (!getExprCase().equals(other.getExprCase())) return false; - switch (exprCase_) { - case 1: - if (!getConjunction() - .equals(other.getConjunction())) return false; - break; - case 2: - if (!getComparison() - .equals(other.getComparison())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (exprCase_) { - case 1: - hash = (37 * hash) + CONJUNCTION_FIELD_NUMBER; - hash = (53 * hash) + getConjunction().hashCode(); - break; - case 2: - hash = (37 * hash) + COMPARISON_FIELD_NUMBER; - hash = (53 * hash) + getComparison().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Condition.BooleanExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.BooleanExpression 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 flyteidl.core.Condition.BooleanExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.BooleanExpression 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 flyteidl.core.Condition.BooleanExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.BooleanExpression 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(flyteidl.core.Condition.BooleanExpression 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; - } - /** - *
-     * Defines a boolean expression tree. It can be a simple or a conjunction expression.
-     * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
-     * 
- * - * Protobuf type {@code flyteidl.core.BooleanExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BooleanExpression) - flyteidl.core.Condition.BooleanExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); - } - - // Construct using flyteidl.core.Condition.BooleanExpression.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(); - exprCase_ = 0; - expr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; - } - - @java.lang.Override - public flyteidl.core.Condition.BooleanExpression getDefaultInstanceForType() { - return flyteidl.core.Condition.BooleanExpression.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Condition.BooleanExpression build() { - flyteidl.core.Condition.BooleanExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Condition.BooleanExpression buildPartial() { - flyteidl.core.Condition.BooleanExpression result = new flyteidl.core.Condition.BooleanExpression(this); - if (exprCase_ == 1) { - if (conjunctionBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = conjunctionBuilder_.build(); - } - } - if (exprCase_ == 2) { - if (comparisonBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = comparisonBuilder_.build(); - } - } - result.exprCase_ = exprCase_; - 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 flyteidl.core.Condition.BooleanExpression) { - return mergeFrom((flyteidl.core.Condition.BooleanExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Condition.BooleanExpression other) { - if (other == flyteidl.core.Condition.BooleanExpression.getDefaultInstance()) return this; - switch (other.getExprCase()) { - case CONJUNCTION: { - mergeConjunction(other.getConjunction()); - break; - } - case COMPARISON: { - mergeComparison(other.getComparison()); - break; - } - case EXPR_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 { - flyteidl.core.Condition.BooleanExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Condition.BooleanExpression) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int exprCase_ = 0; - private java.lang.Object expr_; - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public Builder clearExpr() { - exprCase_ = 0; - expr_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> conjunctionBuilder_; - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public boolean hasConjunction() { - return exprCase_ == 1; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression getConjunction() { - if (conjunctionBuilder_ == null) { - if (exprCase_ == 1) { - return (flyteidl.core.Condition.ConjunctionExpression) expr_; - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return conjunctionBuilder_.getMessage(); - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public Builder setConjunction(flyteidl.core.Condition.ConjunctionExpression value) { - if (conjunctionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - conjunctionBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public Builder setConjunction( - flyteidl.core.Condition.ConjunctionExpression.Builder builderForValue) { - if (conjunctionBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - conjunctionBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 1; - return this; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public Builder mergeConjunction(flyteidl.core.Condition.ConjunctionExpression value) { - if (conjunctionBuilder_ == null) { - if (exprCase_ == 1 && - expr_ != flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) { - expr_ = flyteidl.core.Condition.ConjunctionExpression.newBuilder((flyteidl.core.Condition.ConjunctionExpression) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 1) { - conjunctionBuilder_.mergeFrom(value); - } - conjunctionBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public Builder clearConjunction() { - if (conjunctionBuilder_ == null) { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - } - conjunctionBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression.Builder getConjunctionBuilder() { - return getConjunctionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { - if ((exprCase_ == 1) && (conjunctionBuilder_ != null)) { - return conjunctionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (flyteidl.core.Condition.ConjunctionExpression) expr_; - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> - getConjunctionFieldBuilder() { - if (conjunctionBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - conjunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder>( - (flyteidl.core.Condition.ConjunctionExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged();; - return conjunctionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> comparisonBuilder_; - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public boolean hasComparison() { - return exprCase_ == 2; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpression getComparison() { - if (comparisonBuilder_ == null) { - if (exprCase_ == 2) { - return (flyteidl.core.Condition.ComparisonExpression) expr_; - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return comparisonBuilder_.getMessage(); - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public Builder setComparison(flyteidl.core.Condition.ComparisonExpression value) { - if (comparisonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - comparisonBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public Builder setComparison( - flyteidl.core.Condition.ComparisonExpression.Builder builderForValue) { - if (comparisonBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - comparisonBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 2; - return this; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public Builder mergeComparison(flyteidl.core.Condition.ComparisonExpression value) { - if (comparisonBuilder_ == null) { - if (exprCase_ == 2 && - expr_ != flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) { - expr_ = flyteidl.core.Condition.ComparisonExpression.newBuilder((flyteidl.core.Condition.ComparisonExpression) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 2) { - comparisonBuilder_.mergeFrom(value); - } - comparisonBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public Builder clearComparison() { - if (comparisonBuilder_ == null) { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - } - comparisonBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpression.Builder getComparisonBuilder() { - return getComparisonFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { - if ((exprCase_ == 2) && (comparisonBuilder_ != null)) { - return comparisonBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (flyteidl.core.Condition.ComparisonExpression) expr_; - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> - getComparisonFieldBuilder() { - if (comparisonBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - comparisonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder>( - (flyteidl.core.Condition.ComparisonExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged();; - return comparisonBuilder_; - } - @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:flyteidl.core.BooleanExpression) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BooleanExpression) - private static final flyteidl.core.Condition.BooleanExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Condition.BooleanExpression(); - } - - public static flyteidl.core.Condition.BooleanExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BooleanExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BooleanExpression(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 flyteidl.core.Condition.BooleanExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConjunctionExpressionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ConjunctionExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - int getOperatorValue(); - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator(); - - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - boolean hasLeftExpression(); - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - flyteidl.core.Condition.BooleanExpression getLeftExpression(); - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder(); - - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - boolean hasRightExpression(); - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - flyteidl.core.Condition.BooleanExpression getRightExpression(); - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder(); - } - /** - *
-   * Defines a conjunction expression of two boolean expressions.
-   * 
- * - * Protobuf type {@code flyteidl.core.ConjunctionExpression} - */ - public static final class ConjunctionExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ConjunctionExpression) - ConjunctionExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConjunctionExpression.newBuilder() to construct. - private ConjunctionExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConjunctionExpression() { - operator_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConjunctionExpression( - 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 8: { - int rawValue = input.readEnum(); - - operator_ = rawValue; - break; - } - case 18: { - flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; - if (leftExpression_ != null) { - subBuilder = leftExpression_.toBuilder(); - } - leftExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(leftExpression_); - leftExpression_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; - if (rightExpression_ != null) { - subBuilder = rightExpression_.toBuilder(); - } - rightExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rightExpression_); - rightExpression_ = 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 flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); - } - - /** - *
-     * Nested conditions. They can be conjoined using AND / OR
-     * Order of evaluation is not important as the operators are Commutative
-     * 
- * - * Protobuf enum {@code flyteidl.core.ConjunctionExpression.LogicalOperator} - */ - public enum LogicalOperator - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Conjunction
-       * 
- * - * AND = 0; - */ - AND(0), - /** - * OR = 1; - */ - OR(1), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Conjunction
-       * 
- * - * AND = 0; - */ - public static final int AND_VALUE = 0; - /** - * OR = 1; - */ - public static final int OR_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LogicalOperator valueOf(int value) { - return forNumber(value); - } - - public static LogicalOperator forNumber(int value) { - switch (value) { - case 0: return AND; - case 1: return OR; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LogicalOperator> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LogicalOperator findValueByNumber(int number) { - return LogicalOperator.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Condition.ConjunctionExpression.getDescriptor().getEnumTypes().get(0); - } - - private static final LogicalOperator[] VALUES = values(); - - public static LogicalOperator 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 LogicalOperator(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ConjunctionExpression.LogicalOperator) - } - - public static final int OPERATOR_FIELD_NUMBER = 1; - private int operator_; - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public int getOperatorValue() { - return operator_; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { - @SuppressWarnings("deprecation") - flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); - return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; - } - - public static final int LEFT_EXPRESSION_FIELD_NUMBER = 2; - private flyteidl.core.Condition.BooleanExpression leftExpression_; - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public boolean hasLeftExpression() { - return leftExpression_ != null; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpression getLeftExpression() { - return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { - return getLeftExpression(); - } - - public static final int RIGHT_EXPRESSION_FIELD_NUMBER = 3; - private flyteidl.core.Condition.BooleanExpression rightExpression_; - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public boolean hasRightExpression() { - return rightExpression_ != null; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpression getRightExpression() { - return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { - return getRightExpression(); - } - - 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 (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { - output.writeEnum(1, operator_); - } - if (leftExpression_ != null) { - output.writeMessage(2, getLeftExpression()); - } - if (rightExpression_ != null) { - output.writeMessage(3, getRightExpression()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, operator_); - } - if (leftExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLeftExpression()); - } - if (rightExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRightExpression()); - } - 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 flyteidl.core.Condition.ConjunctionExpression)) { - return super.equals(obj); - } - flyteidl.core.Condition.ConjunctionExpression other = (flyteidl.core.Condition.ConjunctionExpression) obj; - - if (operator_ != other.operator_) return false; - if (hasLeftExpression() != other.hasLeftExpression()) return false; - if (hasLeftExpression()) { - if (!getLeftExpression() - .equals(other.getLeftExpression())) return false; - } - if (hasRightExpression() != other.hasRightExpression()) return false; - if (hasRightExpression()) { - if (!getRightExpression() - .equals(other.getRightExpression())) 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) + OPERATOR_FIELD_NUMBER; - hash = (53 * hash) + operator_; - if (hasLeftExpression()) { - hash = (37 * hash) + LEFT_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getLeftExpression().hashCode(); - } - if (hasRightExpression()) { - hash = (37 * hash) + RIGHT_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getRightExpression().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ConjunctionExpression 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 flyteidl.core.Condition.ConjunctionExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ConjunctionExpression 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 flyteidl.core.Condition.ConjunctionExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ConjunctionExpression 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(flyteidl.core.Condition.ConjunctionExpression 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; - } - /** - *
-     * Defines a conjunction expression of two boolean expressions.
-     * 
- * - * Protobuf type {@code flyteidl.core.ConjunctionExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ConjunctionExpression) - flyteidl.core.Condition.ConjunctionExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); - } - - // Construct using flyteidl.core.Condition.ConjunctionExpression.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(); - operator_ = 0; - - if (leftExpressionBuilder_ == null) { - leftExpression_ = null; - } else { - leftExpression_ = null; - leftExpressionBuilder_ = null; - } - if (rightExpressionBuilder_ == null) { - rightExpression_ = null; - } else { - rightExpression_ = null; - rightExpressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; - } - - @java.lang.Override - public flyteidl.core.Condition.ConjunctionExpression getDefaultInstanceForType() { - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Condition.ConjunctionExpression build() { - flyteidl.core.Condition.ConjunctionExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Condition.ConjunctionExpression buildPartial() { - flyteidl.core.Condition.ConjunctionExpression result = new flyteidl.core.Condition.ConjunctionExpression(this); - result.operator_ = operator_; - if (leftExpressionBuilder_ == null) { - result.leftExpression_ = leftExpression_; - } else { - result.leftExpression_ = leftExpressionBuilder_.build(); - } - if (rightExpressionBuilder_ == null) { - result.rightExpression_ = rightExpression_; - } else { - result.rightExpression_ = rightExpressionBuilder_.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 flyteidl.core.Condition.ConjunctionExpression) { - return mergeFrom((flyteidl.core.Condition.ConjunctionExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Condition.ConjunctionExpression other) { - if (other == flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) return this; - if (other.operator_ != 0) { - setOperatorValue(other.getOperatorValue()); - } - if (other.hasLeftExpression()) { - mergeLeftExpression(other.getLeftExpression()); - } - if (other.hasRightExpression()) { - mergeRightExpression(other.getRightExpression()); - } - 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 { - flyteidl.core.Condition.ConjunctionExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Condition.ConjunctionExpression) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int operator_ = 0; - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public int getOperatorValue() { - return operator_; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public Builder setOperatorValue(int value) { - operator_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { - @SuppressWarnings("deprecation") - flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); - return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public Builder setOperator(flyteidl.core.Condition.ConjunctionExpression.LogicalOperator value) { - if (value == null) { - throw new NullPointerException(); - } - - operator_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public Builder clearOperator() { - - operator_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Condition.BooleanExpression leftExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> leftExpressionBuilder_; - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public boolean hasLeftExpression() { - return leftExpressionBuilder_ != null || leftExpression_ != null; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpression getLeftExpression() { - if (leftExpressionBuilder_ == null) { - return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; - } else { - return leftExpressionBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public Builder setLeftExpression(flyteidl.core.Condition.BooleanExpression value) { - if (leftExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - leftExpression_ = value; - onChanged(); - } else { - leftExpressionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public Builder setLeftExpression( - flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { - if (leftExpressionBuilder_ == null) { - leftExpression_ = builderForValue.build(); - onChanged(); - } else { - leftExpressionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public Builder mergeLeftExpression(flyteidl.core.Condition.BooleanExpression value) { - if (leftExpressionBuilder_ == null) { - if (leftExpression_ != null) { - leftExpression_ = - flyteidl.core.Condition.BooleanExpression.newBuilder(leftExpression_).mergeFrom(value).buildPartial(); - } else { - leftExpression_ = value; - } - onChanged(); - } else { - leftExpressionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public Builder clearLeftExpression() { - if (leftExpressionBuilder_ == null) { - leftExpression_ = null; - onChanged(); - } else { - leftExpression_ = null; - leftExpressionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpression.Builder getLeftExpressionBuilder() { - - onChanged(); - return getLeftExpressionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { - if (leftExpressionBuilder_ != null) { - return leftExpressionBuilder_.getMessageOrBuilder(); - } else { - return leftExpression_ == null ? - flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; - } - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> - getLeftExpressionFieldBuilder() { - if (leftExpressionBuilder_ == null) { - leftExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( - getLeftExpression(), - getParentForChildren(), - isClean()); - leftExpression_ = null; - } - return leftExpressionBuilder_; - } - - private flyteidl.core.Condition.BooleanExpression rightExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> rightExpressionBuilder_; - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public boolean hasRightExpression() { - return rightExpressionBuilder_ != null || rightExpression_ != null; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpression getRightExpression() { - if (rightExpressionBuilder_ == null) { - return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; - } else { - return rightExpressionBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public Builder setRightExpression(flyteidl.core.Condition.BooleanExpression value) { - if (rightExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rightExpression_ = value; - onChanged(); - } else { - rightExpressionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public Builder setRightExpression( - flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { - if (rightExpressionBuilder_ == null) { - rightExpression_ = builderForValue.build(); - onChanged(); - } else { - rightExpressionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public Builder mergeRightExpression(flyteidl.core.Condition.BooleanExpression value) { - if (rightExpressionBuilder_ == null) { - if (rightExpression_ != null) { - rightExpression_ = - flyteidl.core.Condition.BooleanExpression.newBuilder(rightExpression_).mergeFrom(value).buildPartial(); - } else { - rightExpression_ = value; - } - onChanged(); - } else { - rightExpressionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public Builder clearRightExpression() { - if (rightExpressionBuilder_ == null) { - rightExpression_ = null; - onChanged(); - } else { - rightExpression_ = null; - rightExpressionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpression.Builder getRightExpressionBuilder() { - - onChanged(); - return getRightExpressionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { - if (rightExpressionBuilder_ != null) { - return rightExpressionBuilder_.getMessageOrBuilder(); - } else { - return rightExpression_ == null ? - flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; - } - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> - getRightExpressionFieldBuilder() { - if (rightExpressionBuilder_ == null) { - rightExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( - getRightExpression(), - getParentForChildren(), - isClean()); - rightExpression_ = null; - } - return rightExpressionBuilder_; - } - @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:flyteidl.core.ConjunctionExpression) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ConjunctionExpression) - private static final flyteidl.core.Condition.ConjunctionExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Condition.ConjunctionExpression(); - } - - public static flyteidl.core.Condition.ConjunctionExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConjunctionExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConjunctionExpression(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 flyteidl.core.Condition.ConjunctionExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ComparisonExpression_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Operand_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Operand_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BooleanExpression_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConjunctionExpression_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConjunctionExpression_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\035flyteidl/core/condition.proto\022\rflyteid" + - "l.core\032\034flyteidl/core/literals.proto\"\356\001\n" + - "\024ComparisonExpression\022>\n\010operator\030\001 \001(\0162" + - ",.flyteidl.core.ComparisonExpression.Ope" + - "rator\022*\n\nleft_value\030\002 \001(\0132\026.flyteidl.cor" + - "e.Operand\022+\n\013right_value\030\003 \001(\0132\026.flyteid" + - "l.core.Operand\"=\n\010Operator\022\006\n\002EQ\020\000\022\007\n\003NE" + - "Q\020\001\022\006\n\002GT\020\002\022\007\n\003GTE\020\003\022\006\n\002LT\020\004\022\007\n\003LTE\020\005\"N\n" + - "\007Operand\022-\n\tprimitive\030\001 \001(\0132\030.flyteidl.c" + - "ore.PrimitiveH\000\022\r\n\003var\030\002 \001(\tH\000B\005\n\003val\"\223\001" + - "\n\021BooleanExpression\022;\n\013conjunction\030\001 \001(\013" + - "2$.flyteidl.core.ConjunctionExpressionH\000" + - "\0229\n\ncomparison\030\002 \001(\0132#.flyteidl.core.Com" + - "parisonExpressionH\000B\006\n\004expr\"\372\001\n\025Conjunct" + - "ionExpression\022F\n\010operator\030\001 \001(\01624.flytei" + - "dl.core.ConjunctionExpression.LogicalOpe" + - "rator\0229\n\017left_expression\030\002 \001(\0132 .flyteid" + - "l.core.BooleanExpression\022:\n\020right_expres" + - "sion\030\003 \001(\0132 .flyteidl.core.BooleanExpres" + - "sion\"\"\n\017LogicalOperator\022\007\n\003AND\020\000\022\006\n\002OR\020\001" + - "B2Z0github.com/lyft/flyteidl/gen/pb-go/f" + - "lyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Literals.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_ComparisonExpression_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ComparisonExpression_descriptor, - new java.lang.String[] { "Operator", "LeftValue", "RightValue", }); - internal_static_flyteidl_core_Operand_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_Operand_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Operand_descriptor, - new java.lang.String[] { "Primitive", "Var", "Val", }); - internal_static_flyteidl_core_BooleanExpression_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BooleanExpression_descriptor, - new java.lang.String[] { "Conjunction", "Comparison", "Expr", }); - internal_static_flyteidl_core_ConjunctionExpression_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ConjunctionExpression_descriptor, - new java.lang.String[] { "Operator", "LeftExpression", "RightExpression", }); - flyteidl.core.Literals.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/DynamicJob.java b/gen/pb-java/flyteidl/core/DynamicJob.java deleted file mode 100644 index 4b7962408..000000000 --- a/gen/pb-java/flyteidl/core/DynamicJob.java +++ /dev/null @@ -1,2542 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/dynamic_job.proto - -package flyteidl.core; - -public final class DynamicJob { - private DynamicJob() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DynamicJobSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.DynamicJobSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - java.util.List - getNodesList(); - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - flyteidl.core.Workflow.Node getNodes(int index); - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - int getNodesCount(); - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - java.util.List - getNodesOrBuilderList(); - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index); - - /** - *
-     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-     * specified, is the count of nodes repeated field.
-     * 
- * - * int64 min_successes = 2; - */ - long getMinSuccesses(); - - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - java.util.List - getOutputsList(); - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - flyteidl.core.Literals.Binding getOutputs(int index); - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - int getOutputsCount(); - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - java.util.List - getOutputsOrBuilderList(); - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index); - - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - java.util.List - getTasksList(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - flyteidl.core.Tasks.TaskTemplate getTasks(int index); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - int getTasksCount(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - java.util.List - getTasksOrBuilderList(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index); - - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - java.util.List - getSubworkflowsList(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - int getSubworkflowsCount(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - java.util.List - getSubworkflowsOrBuilderList(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( - int index); - } - /** - *
-   * Describes a set of tasks to execute and how the final outputs are produced.
-   * 
- * - * Protobuf type {@code flyteidl.core.DynamicJobSpec} - */ - public static final class DynamicJobSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.DynamicJobSpec) - DynamicJobSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use DynamicJobSpec.newBuilder() to construct. - private DynamicJobSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DynamicJobSpec() { - nodes_ = java.util.Collections.emptyList(); - outputs_ = java.util.Collections.emptyList(); - tasks_ = java.util.Collections.emptyList(); - subworkflows_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DynamicJobSpec( - 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)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodes_.add( - input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); - break; - } - case 16: { - - minSuccesses_ = input.readInt64(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - outputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - outputs_.add( - input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - tasks_.add( - input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - subworkflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - subworkflows_.add( - input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.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)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); - } - - private int bitField0_; - public static final int NODES_FIELD_NUMBER = 1; - private java.util.List nodes_; - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List getNodesList() { - return nodes_; - } - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List - getNodesOrBuilderList() { - return nodes_; - } - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public int getNodesCount() { - return nodes_.size(); - } - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node getNodes(int index) { - return nodes_.get(index); - } - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index) { - return nodes_.get(index); - } - - public static final int MIN_SUCCESSES_FIELD_NUMBER = 2; - private long minSuccesses_; - /** - *
-     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-     * specified, is the count of nodes repeated field.
-     * 
- * - * int64 min_successes = 2; - */ - public long getMinSuccesses() { - return minSuccesses_; - } - - public static final int OUTPUTS_FIELD_NUMBER = 3; - private java.util.List outputs_; - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List getOutputsList() { - return outputs_; - } - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List - getOutputsOrBuilderList() { - return outputs_; - } - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public int getOutputsCount() { - return outputs_.size(); - } - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding getOutputs(int index) { - return outputs_.get(index); - } - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index) { - return outputs_.get(index); - } - - public static final int TASKS_FIELD_NUMBER = 4; - private java.util.List tasks_; - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { - return tasks_.get(index); - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index) { - return tasks_.get(index); - } - - public static final int SUBWORKFLOWS_FIELD_NUMBER = 5; - private java.util.List subworkflows_; - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List getSubworkflowsList() { - return subworkflows_; - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List - getSubworkflowsOrBuilderList() { - return subworkflows_; - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public int getSubworkflowsCount() { - return subworkflows_.size(); - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { - return subworkflows_.get(index); - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( - int index) { - return subworkflows_.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 < nodes_.size(); i++) { - output.writeMessage(1, nodes_.get(i)); - } - if (minSuccesses_ != 0L) { - output.writeInt64(2, minSuccesses_); - } - for (int i = 0; i < outputs_.size(); i++) { - output.writeMessage(3, outputs_.get(i)); - } - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(4, tasks_.get(i)); - } - for (int i = 0; i < subworkflows_.size(); i++) { - output.writeMessage(5, subworkflows_.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 < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodes_.get(i)); - } - if (minSuccesses_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, minSuccesses_); - } - for (int i = 0; i < outputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, outputs_.get(i)); - } - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, tasks_.get(i)); - } - for (int i = 0; i < subworkflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, subworkflows_.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 flyteidl.core.DynamicJob.DynamicJobSpec)) { - return super.equals(obj); - } - flyteidl.core.DynamicJob.DynamicJobSpec other = (flyteidl.core.DynamicJob.DynamicJobSpec) obj; - - if (!getNodesList() - .equals(other.getNodesList())) return false; - if (getMinSuccesses() - != other.getMinSuccesses()) return false; - if (!getOutputsList() - .equals(other.getOutputsList())) return false; - if (!getTasksList() - .equals(other.getTasksList())) return false; - if (!getSubworkflowsList() - .equals(other.getSubworkflowsList())) 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 (getNodesCount() > 0) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + getNodesList().hashCode(); - } - hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinSuccesses()); - if (getOutputsCount() > 0) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputsList().hashCode(); - } - if (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - if (getSubworkflowsCount() > 0) { - hash = (37 * hash) + SUBWORKFLOWS_FIELD_NUMBER; - hash = (53 * hash) + getSubworkflowsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec 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 flyteidl.core.DynamicJob.DynamicJobSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec 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 flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec 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(flyteidl.core.DynamicJob.DynamicJobSpec 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; - } - /** - *
-     * Describes a set of tasks to execute and how the final outputs are produced.
-     * 
- * - * Protobuf type {@code flyteidl.core.DynamicJobSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.DynamicJobSpec) - flyteidl.core.DynamicJob.DynamicJobSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); - } - - // Construct using flyteidl.core.DynamicJob.DynamicJobSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodesFieldBuilder(); - getOutputsFieldBuilder(); - getTasksFieldBuilder(); - getSubworkflowsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodesBuilder_.clear(); - } - minSuccesses_ = 0L; - - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - outputsBuilder_.clear(); - } - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - tasksBuilder_.clear(); - } - if (subworkflowsBuilder_ == null) { - subworkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - subworkflowsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; - } - - @java.lang.Override - public flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { - return flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.DynamicJob.DynamicJobSpec build() { - flyteidl.core.DynamicJob.DynamicJobSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.DynamicJob.DynamicJobSpec buildPartial() { - flyteidl.core.DynamicJob.DynamicJobSpec result = new flyteidl.core.DynamicJob.DynamicJobSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (nodesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodes_ = nodes_; - } else { - result.nodes_ = nodesBuilder_.build(); - } - result.minSuccesses_ = minSuccesses_; - if (outputsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - if (subworkflowsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.subworkflows_ = subworkflows_; - } else { - result.subworkflows_ = subworkflowsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.core.DynamicJob.DynamicJobSpec) { - return mergeFrom((flyteidl.core.DynamicJob.DynamicJobSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.DynamicJob.DynamicJobSpec other) { - if (other == flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance()) return this; - if (nodesBuilder_ == null) { - if (!other.nodes_.isEmpty()) { - if (nodes_.isEmpty()) { - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodesIsMutable(); - nodes_.addAll(other.nodes_); - } - onChanged(); - } - } else { - if (!other.nodes_.isEmpty()) { - if (nodesBuilder_.isEmpty()) { - nodesBuilder_.dispose(); - nodesBuilder_ = null; - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; - } else { - nodesBuilder_.addAllMessages(other.nodes_); - } - } - } - if (other.getMinSuccesses() != 0L) { - setMinSuccesses(other.getMinSuccesses()); - } - if (outputsBuilder_ == null) { - if (!other.outputs_.isEmpty()) { - if (outputs_.isEmpty()) { - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureOutputsIsMutable(); - outputs_.addAll(other.outputs_); - } - onChanged(); - } - } else { - if (!other.outputs_.isEmpty()) { - if (outputsBuilder_.isEmpty()) { - outputsBuilder_.dispose(); - outputsBuilder_ = null; - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000004); - outputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutputsFieldBuilder() : null; - } else { - outputsBuilder_.addAllMessages(other.outputs_); - } - } - } - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000008); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - if (subworkflowsBuilder_ == null) { - if (!other.subworkflows_.isEmpty()) { - if (subworkflows_.isEmpty()) { - subworkflows_ = other.subworkflows_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureSubworkflowsIsMutable(); - subworkflows_.addAll(other.subworkflows_); - } - onChanged(); - } - } else { - if (!other.subworkflows_.isEmpty()) { - if (subworkflowsBuilder_.isEmpty()) { - subworkflowsBuilder_.dispose(); - subworkflowsBuilder_ = null; - subworkflows_ = other.subworkflows_; - bitField0_ = (bitField0_ & ~0x00000010); - subworkflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubworkflowsFieldBuilder() : null; - } else { - subworkflowsBuilder_.addAllMessages(other.subworkflows_); - } - } - } - 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 { - flyteidl.core.DynamicJob.DynamicJobSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.DynamicJob.DynamicJobSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; - - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); - } else { - return nodesBuilder_.getCount(); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessage(index); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder setNodes( - int index, flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); - } else { - nodesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder setNodes( - int index, flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addNodes(flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addNodes( - int index, flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addNodes( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addNodes( - int index, flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodesBuilder_.clear(); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); - } else { - nodesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node.Builder getNodesBuilder( - int index) { - return getNodesFieldBuilder().getBuilder(index); - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); } else { - return nodesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - flyteidl.core.Workflow.Node.getDefaultInstance()); - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.Node.getDefaultInstance()); - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List - getNodesBuilderList() { - return getNodesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - nodes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodes_ = null; - } - return nodesBuilder_; - } - - private long minSuccesses_ ; - /** - *
-       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-       * specified, is the count of nodes repeated field.
-       * 
- * - * int64 min_successes = 2; - */ - public long getMinSuccesses() { - return minSuccesses_; - } - /** - *
-       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-       * specified, is the count of nodes repeated field.
-       * 
- * - * int64 min_successes = 2; - */ - public Builder setMinSuccesses(long value) { - - minSuccesses_ = value; - onChanged(); - return this; - } - /** - *
-       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-       * specified, is the count of nodes repeated field.
-       * 
- * - * int64 min_successes = 2; - */ - public Builder clearMinSuccesses() { - - minSuccesses_ = 0L; - onChanged(); - return this; - } - - private java.util.List outputs_ = - java.util.Collections.emptyList(); - private void ensureOutputsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - outputs_ = new java.util.ArrayList(outputs_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; - - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List getOutputsList() { - if (outputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputs_); - } else { - return outputsBuilder_.getMessageList(); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public int getOutputsCount() { - if (outputsBuilder_ == null) { - return outputs_.size(); - } else { - return outputsBuilder_.getCount(); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding getOutputs(int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); - } else { - return outputsBuilder_.getMessage(index); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder setOutputs( - int index, flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.set(index, value); - onChanged(); - } else { - outputsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder setOutputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.set(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addOutputs(flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(value); - onChanged(); - } else { - outputsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addOutputs( - int index, flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(index, value); - onChanged(); - } else { - outputsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addOutputs( - flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addOutputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addAllOutputs( - java.lang.Iterable values) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputs_); - onChanged(); - } else { - outputsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - outputsBuilder_.clear(); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder removeOutputs(int index) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.remove(index); - onChanged(); - } else { - outputsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( - int index) { - return getOutputsFieldBuilder().getBuilder(index); - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); } else { - return outputsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List - getOutputsOrBuilderList() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outputs_); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { - return getOutputsFieldBuilder().addBuilder( - flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( - int index) { - return getOutputsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List - getOutputsBuilderList() { - return getOutputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( - outputs_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; - - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder setTasks( - int index, flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder setTasks( - int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addTasks( - int index, flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addTasks( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addTasks( - int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - tasks_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - - private java.util.List subworkflows_ = - java.util.Collections.emptyList(); - private void ensureSubworkflowsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - subworkflows_ = new java.util.ArrayList(subworkflows_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> subworkflowsBuilder_; - - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List getSubworkflowsList() { - if (subworkflowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subworkflows_); - } else { - return subworkflowsBuilder_.getMessageList(); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public int getSubworkflowsCount() { - if (subworkflowsBuilder_ == null) { - return subworkflows_.size(); - } else { - return subworkflowsBuilder_.getCount(); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { - if (subworkflowsBuilder_ == null) { - return subworkflows_.get(index); - } else { - return subworkflowsBuilder_.getMessage(index); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder setSubworkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate value) { - if (subworkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubworkflowsIsMutable(); - subworkflows_.set(index, value); - onChanged(); - } else { - subworkflowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder setSubworkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - subworkflows_.set(index, builderForValue.build()); - onChanged(); - } else { - subworkflowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addSubworkflows(flyteidl.core.Workflow.WorkflowTemplate value) { - if (subworkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubworkflowsIsMutable(); - subworkflows_.add(value); - onChanged(); - } else { - subworkflowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addSubworkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate value) { - if (subworkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubworkflowsIsMutable(); - subworkflows_.add(index, value); - onChanged(); - } else { - subworkflowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addSubworkflows( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - subworkflows_.add(builderForValue.build()); - onChanged(); - } else { - subworkflowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addSubworkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - subworkflows_.add(index, builderForValue.build()); - onChanged(); - } else { - subworkflowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addAllSubworkflows( - java.lang.Iterable values) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subworkflows_); - onChanged(); - } else { - subworkflowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder clearSubworkflows() { - if (subworkflowsBuilder_ == null) { - subworkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - subworkflowsBuilder_.clear(); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder removeSubworkflows(int index) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - subworkflows_.remove(index); - onChanged(); - } else { - subworkflowsBuilder_.remove(index); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getSubworkflowsBuilder( - int index) { - return getSubworkflowsFieldBuilder().getBuilder(index); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( - int index) { - if (subworkflowsBuilder_ == null) { - return subworkflows_.get(index); } else { - return subworkflowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List - getSubworkflowsOrBuilderList() { - if (subworkflowsBuilder_ != null) { - return subworkflowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subworkflows_); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder() { - return getSubworkflowsFieldBuilder().addBuilder( - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder( - int index) { - return getSubworkflowsFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List - getSubworkflowsBuilderList() { - return getSubworkflowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getSubworkflowsFieldBuilder() { - if (subworkflowsBuilder_ == null) { - subworkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - subworkflows_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - subworkflows_ = null; - } - return subworkflowsBuilder_; - } - @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:flyteidl.core.DynamicJobSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.DynamicJobSpec) - private static final flyteidl.core.DynamicJob.DynamicJobSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.DynamicJob.DynamicJobSpec(); - } - - public static flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DynamicJobSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DynamicJobSpec(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 flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_DynamicJobSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_DynamicJobSpec_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\037flyteidl/core/dynamic_job.proto\022\rflyte" + - "idl.core\032\031flyteidl/core/tasks.proto\032\034fly" + - "teidl/core/workflow.proto\032\034flyteidl/core" + - "/literals.proto\"\327\001\n\016DynamicJobSpec\022\"\n\005no" + - "des\030\001 \003(\0132\023.flyteidl.core.Node\022\025\n\rmin_su" + - "ccesses\030\002 \001(\003\022\'\n\007outputs\030\003 \003(\0132\026.flyteid" + - "l.core.Binding\022*\n\005tasks\030\004 \003(\0132\033.flyteidl" + - ".core.TaskTemplate\0225\n\014subworkflows\030\005 \003(\013" + - "2\037.flyteidl.core.WorkflowTemplateB2Z0git" + - "hub.com/lyft/flyteidl/gen/pb-go/flyteidl" + - "/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Tasks.getDescriptor(), - flyteidl.core.Workflow.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_DynamicJobSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_DynamicJobSpec_descriptor, - new java.lang.String[] { "Nodes", "MinSuccesses", "Outputs", "Tasks", "Subworkflows", }); - flyteidl.core.Tasks.getDescriptor(); - flyteidl.core.Workflow.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Errors.java b/gen/pb-java/flyteidl/core/Errors.java deleted file mode 100644 index 077cb58e0..000000000 --- a/gen/pb-java/flyteidl/core/Errors.java +++ /dev/null @@ -1,1882 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/errors.proto - -package flyteidl.core; - -public final class Errors { - private Errors() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ContainerErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ContainerError) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A simplified code for errors, so that we can provide a glossary of all possible errors.
-     * 
- * - * string code = 1; - */ - java.lang.String getCode(); - /** - *
-     * A simplified code for errors, so that we can provide a glossary of all possible errors.
-     * 
- * - * string code = 1; - */ - com.google.protobuf.ByteString - getCodeBytes(); - - /** - *
-     * A detailed error message.
-     * 
- * - * string message = 2; - */ - java.lang.String getMessage(); - /** - *
-     * A detailed error message.
-     * 
- * - * string message = 2; - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-     * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - int getKindValue(); - /** - *
-     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-     * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - flyteidl.core.Errors.ContainerError.Kind getKind(); - - /** - *
-     * Defines the origin of the error (system, user, unknown).
-     * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - int getOriginValue(); - /** - *
-     * Defines the origin of the error (system, user, unknown).
-     * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin(); - } - /** - *
-   * Error message to propagate detailed errors from container executions to the execution
-   * engine.
-   * 
- * - * Protobuf type {@code flyteidl.core.ContainerError} - */ - public static final class ContainerError extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerError) - ContainerErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use ContainerError.newBuilder() to construct. - private ContainerError(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ContainerError() { - code_ = ""; - message_ = ""; - kind_ = 0; - origin_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContainerError( - 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(); - - code_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - kind_ = rawValue; - break; - } - case 32: { - int rawValue = input.readEnum(); - - origin_ = rawValue; - 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 flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); - } - - /** - *
-     * Defines a generic error type that dictates the behavior of the retry strategy.
-     * 
- * - * Protobuf enum {@code flyteidl.core.ContainerError.Kind} - */ - public enum Kind - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NON_RECOVERABLE = 0; - */ - NON_RECOVERABLE(0), - /** - * RECOVERABLE = 1; - */ - RECOVERABLE(1), - UNRECOGNIZED(-1), - ; - - /** - * NON_RECOVERABLE = 0; - */ - public static final int NON_RECOVERABLE_VALUE = 0; - /** - * RECOVERABLE = 1; - */ - public static final int RECOVERABLE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Kind valueOf(int value) { - return forNumber(value); - } - - public static Kind forNumber(int value) { - switch (value) { - case 0: return NON_RECOVERABLE; - case 1: return RECOVERABLE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Kind> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Kind findValueByNumber(int number) { - return Kind.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Errors.ContainerError.getDescriptor().getEnumTypes().get(0); - } - - private static final Kind[] VALUES = values(); - - public static Kind 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 Kind(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ContainerError.Kind) - } - - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** - *
-     * A simplified code for errors, so that we can provide a glossary of all possible errors.
-     * 
- * - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - 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(); - code_ = s; - return s; - } - } - /** - *
-     * A simplified code for errors, so that we can provide a glossary of all possible errors.
-     * 
- * - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - *
-     * A detailed error message.
-     * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - 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(); - message_ = s; - return s; - } - } - /** - *
-     * A detailed error message.
-     * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KIND_FIELD_NUMBER = 3; - private int kind_; - /** - *
-     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-     * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public int getKindValue() { - return kind_; - } - /** - *
-     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-     * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public flyteidl.core.Errors.ContainerError.Kind getKind() { - @SuppressWarnings("deprecation") - flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); - return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; - } - - public static final int ORIGIN_FIELD_NUMBER = 4; - private int origin_; - /** - *
-     * Defines the origin of the error (system, user, unknown).
-     * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public int getOriginValue() { - return origin_; - } - /** - *
-     * Defines the origin of the error (system, user, unknown).
-     * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(origin_); - return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; - } - - 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 (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { - output.writeEnum(3, kind_); - } - if (origin_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { - output.writeEnum(4, origin_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, kind_); - } - if (origin_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, origin_); - } - 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 flyteidl.core.Errors.ContainerError)) { - return super.equals(obj); - } - flyteidl.core.Errors.ContainerError other = (flyteidl.core.Errors.ContainerError) obj; - - if (!getCode() - .equals(other.getCode())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; - if (kind_ != other.kind_) return false; - if (origin_ != other.origin_) 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) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + kind_; - hash = (37 * hash) + ORIGIN_FIELD_NUMBER; - hash = (53 * hash) + origin_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Errors.ContainerError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ContainerError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ContainerError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ContainerError parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ContainerError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ContainerError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ContainerError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ContainerError 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 flyteidl.core.Errors.ContainerError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ContainerError 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 flyteidl.core.Errors.ContainerError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ContainerError 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(flyteidl.core.Errors.ContainerError 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; - } - /** - *
-     * Error message to propagate detailed errors from container executions to the execution
-     * engine.
-     * 
- * - * Protobuf type {@code flyteidl.core.ContainerError} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerError) - flyteidl.core.Errors.ContainerErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); - } - - // Construct using flyteidl.core.Errors.ContainerError.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(); - code_ = ""; - - message_ = ""; - - kind_ = 0; - - origin_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; - } - - @java.lang.Override - public flyteidl.core.Errors.ContainerError getDefaultInstanceForType() { - return flyteidl.core.Errors.ContainerError.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Errors.ContainerError build() { - flyteidl.core.Errors.ContainerError result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Errors.ContainerError buildPartial() { - flyteidl.core.Errors.ContainerError result = new flyteidl.core.Errors.ContainerError(this); - result.code_ = code_; - result.message_ = message_; - result.kind_ = kind_; - result.origin_ = origin_; - 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 flyteidl.core.Errors.ContainerError) { - return mergeFrom((flyteidl.core.Errors.ContainerError)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Errors.ContainerError other) { - if (other == flyteidl.core.Errors.ContainerError.getDefaultInstance()) return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (other.kind_ != 0) { - setKindValue(other.getKindValue()); - } - if (other.origin_ != 0) { - setOriginValue(other.getOriginValue()); - } - 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 { - flyteidl.core.Errors.ContainerError parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Errors.ContainerError) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object code_ = ""; - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private int kind_ = 0; - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public int getKindValue() { - return kind_; - } - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public Builder setKindValue(int value) { - kind_ = value; - onChanged(); - return this; - } - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public flyteidl.core.Errors.ContainerError.Kind getKind() { - @SuppressWarnings("deprecation") - flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); - return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; - } - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public Builder setKind(flyteidl.core.Errors.ContainerError.Kind value) { - if (value == null) { - throw new NullPointerException(); - } - - kind_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public Builder clearKind() { - - kind_ = 0; - onChanged(); - return this; - } - - private int origin_ = 0; - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public int getOriginValue() { - return origin_; - } - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public Builder setOriginValue(int value) { - origin_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(origin_); - return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; - } - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public Builder setOrigin(flyteidl.core.Execution.ExecutionError.ErrorKind value) { - if (value == null) { - throw new NullPointerException(); - } - - origin_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public Builder clearOrigin() { - - origin_ = 0; - 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:flyteidl.core.ContainerError) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerError) - private static final flyteidl.core.Errors.ContainerError DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Errors.ContainerError(); - } - - public static flyteidl.core.Errors.ContainerError getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContainerError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContainerError(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 flyteidl.core.Errors.ContainerError getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ErrorDocumentOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ErrorDocument) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - boolean hasError(); - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - flyteidl.core.Errors.ContainerError getError(); - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder(); - } - /** - *
-   * Defines the errors.pb file format the container can produce to communicate
-   * failure reasons to the execution engine.
-   * 
- * - * Protobuf type {@code flyteidl.core.ErrorDocument} - */ - public static final class ErrorDocument extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ErrorDocument) - ErrorDocumentOrBuilder { - private static final long serialVersionUID = 0L; - // Use ErrorDocument.newBuilder() to construct. - private ErrorDocument(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ErrorDocument() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ErrorDocument( - 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: { - flyteidl.core.Errors.ContainerError.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(flyteidl.core.Errors.ContainerError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = 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 flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); - } - - public static final int ERROR_FIELD_NUMBER = 1; - private flyteidl.core.Errors.ContainerError error_; - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public boolean hasError() { - return error_ != null; - } - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerError getError() { - return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; - } - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { - return getError(); - } - - 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 (error_ != null) { - output.writeMessage(1, getError()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getError()); - } - 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 flyteidl.core.Errors.ErrorDocument)) { - return super.equals(obj); - } - flyteidl.core.Errors.ErrorDocument other = (flyteidl.core.Errors.ErrorDocument) obj; - - if (hasError() != other.hasError()) return false; - if (hasError()) { - if (!getError() - .equals(other.getError())) 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 (hasError()) { - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Errors.ErrorDocument parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ErrorDocument 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 flyteidl.core.Errors.ErrorDocument parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ErrorDocument 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 flyteidl.core.Errors.ErrorDocument parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ErrorDocument 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(flyteidl.core.Errors.ErrorDocument 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; - } - /** - *
-     * Defines the errors.pb file format the container can produce to communicate
-     * failure reasons to the execution engine.
-     * 
- * - * Protobuf type {@code flyteidl.core.ErrorDocument} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ErrorDocument) - flyteidl.core.Errors.ErrorDocumentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); - } - - // Construct using flyteidl.core.Errors.ErrorDocument.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 (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; - errorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; - } - - @java.lang.Override - public flyteidl.core.Errors.ErrorDocument getDefaultInstanceForType() { - return flyteidl.core.Errors.ErrorDocument.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Errors.ErrorDocument build() { - flyteidl.core.Errors.ErrorDocument result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Errors.ErrorDocument buildPartial() { - flyteidl.core.Errors.ErrorDocument result = new flyteidl.core.Errors.ErrorDocument(this); - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.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 flyteidl.core.Errors.ErrorDocument) { - return mergeFrom((flyteidl.core.Errors.ErrorDocument)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Errors.ErrorDocument other) { - if (other == flyteidl.core.Errors.ErrorDocument.getDefaultInstance()) return this; - if (other.hasError()) { - mergeError(other.getError()); - } - 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 { - flyteidl.core.Errors.ErrorDocument parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Errors.ErrorDocument) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Errors.ContainerError error_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> errorBuilder_; - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public boolean hasError() { - return errorBuilder_ != null || error_ != null; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerError getError() { - if (errorBuilder_ == null) { - return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; - } else { - return errorBuilder_.getMessage(); - } - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public Builder setError(flyteidl.core.Errors.ContainerError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - error_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public Builder setError( - flyteidl.core.Errors.ContainerError.Builder builderForValue) { - if (errorBuilder_ == null) { - error_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public Builder mergeError(flyteidl.core.Errors.ContainerError value) { - if (errorBuilder_ == null) { - if (error_ != null) { - error_ = - flyteidl.core.Errors.ContainerError.newBuilder(error_).mergeFrom(value).buildPartial(); - } else { - error_ = value; - } - onChanged(); - } else { - errorBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; - errorBuilder_ = null; - } - - return this; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerError.Builder getErrorBuilder() { - - onChanged(); - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { - if (errorBuilder_ != null) { - return errorBuilder_.getMessageOrBuilder(); - } else { - return error_ == null ? - flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; - } - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder>( - getError(), - getParentForChildren(), - isClean()); - error_ = null; - } - return errorBuilder_; - } - @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:flyteidl.core.ErrorDocument) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ErrorDocument) - private static final flyteidl.core.Errors.ErrorDocument DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Errors.ErrorDocument(); - } - - public static flyteidl.core.Errors.ErrorDocument getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorDocument parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorDocument(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 flyteidl.core.Errors.ErrorDocument getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ContainerError_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ContainerError_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ErrorDocument_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ErrorDocument_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\032flyteidl/core/errors.proto\022\rflyteidl.c" + - "ore\032\035flyteidl/core/execution.proto\"\310\001\n\016C" + - "ontainerError\022\014\n\004code\030\001 \001(\t\022\017\n\007message\030\002" + - " \001(\t\0220\n\004kind\030\003 \001(\0162\".flyteidl.core.Conta" + - "inerError.Kind\0227\n\006origin\030\004 \001(\0162\'.flyteid" + - "l.core.ExecutionError.ErrorKind\",\n\004Kind\022" + - "\023\n\017NON_RECOVERABLE\020\000\022\017\n\013RECOVERABLE\020\001\"=\n" + - "\rErrorDocument\022,\n\005error\030\001 \001(\0132\035.flyteidl" + - ".core.ContainerErrorB2Z0github.com/lyft/" + - "flyteidl/gen/pb-go/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Execution.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_ContainerError_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_ContainerError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ContainerError_descriptor, - new java.lang.String[] { "Code", "Message", "Kind", "Origin", }); - internal_static_flyteidl_core_ErrorDocument_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ErrorDocument_descriptor, - new java.lang.String[] { "Error", }); - flyteidl.core.Execution.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Execution.java b/gen/pb-java/flyteidl/core/Execution.java deleted file mode 100644 index 35c7a3c95..000000000 --- a/gen/pb-java/flyteidl/core/Execution.java +++ /dev/null @@ -1,5764 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/execution.proto - -package flyteidl.core; - -public final class Execution { - private Execution() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorkflowExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecution) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Indicates various phases of Workflow Execution
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowExecution} - */ - public static final class WorkflowExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecution) - WorkflowExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecution.newBuilder() to construct. - private WorkflowExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecution() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecution( - 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; - 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 flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.WorkflowExecution.Phase} - */ - public enum Phase - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNDEFINED = 0; - */ - UNDEFINED(0), - /** - * QUEUED = 1; - */ - QUEUED(1), - /** - * RUNNING = 2; - */ - RUNNING(2), - /** - * SUCCEEDING = 3; - */ - SUCCEEDING(3), - /** - * SUCCEEDED = 4; - */ - SUCCEEDED(4), - /** - * FAILING = 5; - */ - FAILING(5), - /** - * FAILED = 6; - */ - FAILED(6), - /** - * ABORTED = 7; - */ - ABORTED(7), - /** - * TIMED_OUT = 8; - */ - TIMED_OUT(8), - UNRECOGNIZED(-1), - ; - - /** - * UNDEFINED = 0; - */ - public static final int UNDEFINED_VALUE = 0; - /** - * QUEUED = 1; - */ - public static final int QUEUED_VALUE = 1; - /** - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * SUCCEEDING = 3; - */ - public static final int SUCCEEDING_VALUE = 3; - /** - * SUCCEEDED = 4; - */ - public static final int SUCCEEDED_VALUE = 4; - /** - * FAILING = 5; - */ - public static final int FAILING_VALUE = 5; - /** - * FAILED = 6; - */ - public static final int FAILED_VALUE = 6; - /** - * ABORTED = 7; - */ - public static final int ABORTED_VALUE = 7; - /** - * TIMED_OUT = 8; - */ - public static final int TIMED_OUT_VALUE = 8; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Phase valueOf(int value) { - return forNumber(value); - } - - public static Phase forNumber(int value) { - switch (value) { - case 0: return UNDEFINED; - case 1: return QUEUED; - case 2: return RUNNING; - case 3: return SUCCEEDING; - case 4: return SUCCEEDED; - case 5: return FAILING; - case 6: return FAILED; - case 7: return ABORTED; - case 8: return TIMED_OUT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Phase> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Phase findValueByNumber(int number) { - return Phase.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Execution.WorkflowExecution.getDescriptor().getEnumTypes().get(0); - } - - private static final Phase[] VALUES = values(); - - public static Phase 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 Phase(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowExecution.Phase) - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.core.Execution.WorkflowExecution)) { - return super.equals(obj); - } - flyteidl.core.Execution.WorkflowExecution other = (flyteidl.core.Execution.WorkflowExecution) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.WorkflowExecution 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 flyteidl.core.Execution.WorkflowExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.WorkflowExecution 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 flyteidl.core.Execution.WorkflowExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.WorkflowExecution 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(flyteidl.core.Execution.WorkflowExecution 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; - } - /** - *
-     * Indicates various phases of Workflow Execution
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecution) - flyteidl.core.Execution.WorkflowExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); - } - - // Construct using flyteidl.core.Execution.WorkflowExecution.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() { - return flyteidl.core.Execution.WorkflowExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.WorkflowExecution build() { - flyteidl.core.Execution.WorkflowExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.WorkflowExecution buildPartial() { - flyteidl.core.Execution.WorkflowExecution result = new flyteidl.core.Execution.WorkflowExecution(this); - 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 flyteidl.core.Execution.WorkflowExecution) { - return mergeFrom((flyteidl.core.Execution.WorkflowExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.WorkflowExecution other) { - if (other == flyteidl.core.Execution.WorkflowExecution.getDefaultInstance()) return this; - 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 { - flyteidl.core.Execution.WorkflowExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.WorkflowExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.core.WorkflowExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecution) - private static final flyteidl.core.Execution.WorkflowExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.WorkflowExecution(); - } - - public static flyteidl.core.Execution.WorkflowExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecution(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 flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecution) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Indicates various phases of Node Execution
-   * 
- * - * Protobuf type {@code flyteidl.core.NodeExecution} - */ - public static final class NodeExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecution) - NodeExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecution.newBuilder() to construct. - private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecution() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecution( - 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; - 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 flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.NodeExecution.Phase} - */ - public enum Phase - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNDEFINED = 0; - */ - UNDEFINED(0), - /** - * QUEUED = 1; - */ - QUEUED(1), - /** - * RUNNING = 2; - */ - RUNNING(2), - /** - * SUCCEEDED = 3; - */ - SUCCEEDED(3), - /** - * FAILING = 4; - */ - FAILING(4), - /** - * FAILED = 5; - */ - FAILED(5), - /** - * ABORTED = 6; - */ - ABORTED(6), - /** - * SKIPPED = 7; - */ - SKIPPED(7), - /** - * TIMED_OUT = 8; - */ - TIMED_OUT(8), - UNRECOGNIZED(-1), - ; - - /** - * UNDEFINED = 0; - */ - public static final int UNDEFINED_VALUE = 0; - /** - * QUEUED = 1; - */ - public static final int QUEUED_VALUE = 1; - /** - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * SUCCEEDED = 3; - */ - public static final int SUCCEEDED_VALUE = 3; - /** - * FAILING = 4; - */ - public static final int FAILING_VALUE = 4; - /** - * FAILED = 5; - */ - public static final int FAILED_VALUE = 5; - /** - * ABORTED = 6; - */ - public static final int ABORTED_VALUE = 6; - /** - * SKIPPED = 7; - */ - public static final int SKIPPED_VALUE = 7; - /** - * TIMED_OUT = 8; - */ - public static final int TIMED_OUT_VALUE = 8; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Phase valueOf(int value) { - return forNumber(value); - } - - public static Phase forNumber(int value) { - switch (value) { - case 0: return UNDEFINED; - case 1: return QUEUED; - case 2: return RUNNING; - case 3: return SUCCEEDED; - case 4: return FAILING; - case 5: return FAILED; - case 6: return ABORTED; - case 7: return SKIPPED; - case 8: return TIMED_OUT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Phase> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Phase findValueByNumber(int number) { - return Phase.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Execution.NodeExecution.getDescriptor().getEnumTypes().get(0); - } - - private static final Phase[] VALUES = values(); - - public static Phase 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 Phase(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.NodeExecution.Phase) - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.core.Execution.NodeExecution)) { - return super.equals(obj); - } - flyteidl.core.Execution.NodeExecution other = (flyteidl.core.Execution.NodeExecution) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.NodeExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.NodeExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.NodeExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.NodeExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.NodeExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.NodeExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.NodeExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.NodeExecution 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 flyteidl.core.Execution.NodeExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.NodeExecution 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 flyteidl.core.Execution.NodeExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.NodeExecution 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(flyteidl.core.Execution.NodeExecution 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; - } - /** - *
-     * Indicates various phases of Node Execution
-     * 
- * - * Protobuf type {@code flyteidl.core.NodeExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecution) - flyteidl.core.Execution.NodeExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); - } - - // Construct using flyteidl.core.Execution.NodeExecution.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() { - return flyteidl.core.Execution.NodeExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.NodeExecution build() { - flyteidl.core.Execution.NodeExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.NodeExecution buildPartial() { - flyteidl.core.Execution.NodeExecution result = new flyteidl.core.Execution.NodeExecution(this); - 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 flyteidl.core.Execution.NodeExecution) { - return mergeFrom((flyteidl.core.Execution.NodeExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.NodeExecution other) { - if (other == flyteidl.core.Execution.NodeExecution.getDefaultInstance()) return this; - 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 { - flyteidl.core.Execution.NodeExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.NodeExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.core.NodeExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecution) - private static final flyteidl.core.Execution.NodeExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.NodeExecution(); - } - - public static flyteidl.core.Execution.NodeExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecution(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 flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecution) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
-   * but this is the cumulative list that customers may want to know about for their task.
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskExecution} - */ - public static final class TaskExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecution) - TaskExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecution.newBuilder() to construct. - private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecution() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecution( - 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; - 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 flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.TaskExecution.Phase} - */ - public enum Phase - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNDEFINED = 0; - */ - UNDEFINED(0), - /** - * QUEUED = 1; - */ - QUEUED(1), - /** - * RUNNING = 2; - */ - RUNNING(2), - /** - * SUCCEEDED = 3; - */ - SUCCEEDED(3), - /** - * ABORTED = 4; - */ - ABORTED(4), - /** - * FAILED = 5; - */ - FAILED(5), - /** - *
-       * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
-       * 
- * - * INITIALIZING = 6; - */ - INITIALIZING(6), - /** - *
-       * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
-       * 
- * - * WAITING_FOR_RESOURCES = 7; - */ - WAITING_FOR_RESOURCES(7), - UNRECOGNIZED(-1), - ; - - /** - * UNDEFINED = 0; - */ - public static final int UNDEFINED_VALUE = 0; - /** - * QUEUED = 1; - */ - public static final int QUEUED_VALUE = 1; - /** - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * SUCCEEDED = 3; - */ - public static final int SUCCEEDED_VALUE = 3; - /** - * ABORTED = 4; - */ - public static final int ABORTED_VALUE = 4; - /** - * FAILED = 5; - */ - public static final int FAILED_VALUE = 5; - /** - *
-       * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
-       * 
- * - * INITIALIZING = 6; - */ - public static final int INITIALIZING_VALUE = 6; - /** - *
-       * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
-       * 
- * - * WAITING_FOR_RESOURCES = 7; - */ - public static final int WAITING_FOR_RESOURCES_VALUE = 7; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Phase valueOf(int value) { - return forNumber(value); - } - - public static Phase forNumber(int value) { - switch (value) { - case 0: return UNDEFINED; - case 1: return QUEUED; - case 2: return RUNNING; - case 3: return SUCCEEDED; - case 4: return ABORTED; - case 5: return FAILED; - case 6: return INITIALIZING; - case 7: return WAITING_FOR_RESOURCES; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Phase> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Phase findValueByNumber(int number) { - return Phase.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Execution.TaskExecution.getDescriptor().getEnumTypes().get(0); - } - - private static final Phase[] VALUES = values(); - - public static Phase 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 Phase(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskExecution.Phase) - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.core.Execution.TaskExecution)) { - return super.equals(obj); - } - flyteidl.core.Execution.TaskExecution other = (flyteidl.core.Execution.TaskExecution) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.TaskExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskExecution 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 flyteidl.core.Execution.TaskExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskExecution 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 flyteidl.core.Execution.TaskExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskExecution 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(flyteidl.core.Execution.TaskExecution 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; - } - /** - *
-     * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
-     * but this is the cumulative list that customers may want to know about for their task.
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecution) - flyteidl.core.Execution.TaskExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); - } - - // Construct using flyteidl.core.Execution.TaskExecution.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() { - return flyteidl.core.Execution.TaskExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.TaskExecution build() { - flyteidl.core.Execution.TaskExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.TaskExecution buildPartial() { - flyteidl.core.Execution.TaskExecution result = new flyteidl.core.Execution.TaskExecution(this); - 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 flyteidl.core.Execution.TaskExecution) { - return mergeFrom((flyteidl.core.Execution.TaskExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.TaskExecution other) { - if (other == flyteidl.core.Execution.TaskExecution.getDefaultInstance()) return this; - 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 { - flyteidl.core.Execution.TaskExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.TaskExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.core.TaskExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecution) - private static final flyteidl.core.Execution.TaskExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskExecution(); - } - - public static flyteidl.core.Execution.TaskExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecution(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 flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ExecutionError) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Error code indicates a grouping of a type of error.
-     * More Info: <Link>
-     * 
- * - * string code = 1; - */ - java.lang.String getCode(); - /** - *
-     * Error code indicates a grouping of a type of error.
-     * More Info: <Link>
-     * 
- * - * string code = 1; - */ - com.google.protobuf.ByteString - getCodeBytes(); - - /** - *
-     * Detailed description of the error - including stack trace.
-     * 
- * - * string message = 2; - */ - java.lang.String getMessage(); - /** - *
-     * Detailed description of the error - including stack trace.
-     * 
- * - * string message = 2; - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-     * Full error contents accessible via a URI
-     * 
- * - * string error_uri = 3; - */ - java.lang.String getErrorUri(); - /** - *
-     * Full error contents accessible via a URI
-     * 
- * - * string error_uri = 3; - */ - com.google.protobuf.ByteString - getErrorUriBytes(); - - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - int getKindValue(); - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - flyteidl.core.Execution.ExecutionError.ErrorKind getKind(); - } - /** - *
-   * Represents the error message from the execution.
-   * 
- * - * Protobuf type {@code flyteidl.core.ExecutionError} - */ - public static final class ExecutionError extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ExecutionError) - ExecutionErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionError.newBuilder() to construct. - private ExecutionError(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionError() { - code_ = ""; - message_ = ""; - errorUri_ = ""; - kind_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionError( - 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(); - - code_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - errorUri_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - kind_ = rawValue; - 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 flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); - } - - /** - *
-     * Error type: System or User
-     * 
- * - * Protobuf enum {@code flyteidl.core.ExecutionError.ErrorKind} - */ - public enum ErrorKind - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * USER = 1; - */ - USER(1), - /** - * SYSTEM = 2; - */ - SYSTEM(2), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * USER = 1; - */ - public static final int USER_VALUE = 1; - /** - * SYSTEM = 2; - */ - public static final int SYSTEM_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ErrorKind valueOf(int value) { - return forNumber(value); - } - - public static ErrorKind forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return USER; - case 2: return SYSTEM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ErrorKind> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ErrorKind findValueByNumber(int number) { - return ErrorKind.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Execution.ExecutionError.getDescriptor().getEnumTypes().get(0); - } - - private static final ErrorKind[] VALUES = values(); - - public static ErrorKind 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 ErrorKind(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ExecutionError.ErrorKind) - } - - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** - *
-     * Error code indicates a grouping of a type of error.
-     * More Info: <Link>
-     * 
- * - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - 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(); - code_ = s; - return s; - } - } - /** - *
-     * Error code indicates a grouping of a type of error.
-     * More Info: <Link>
-     * 
- * - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - *
-     * Detailed description of the error - including stack trace.
-     * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - 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(); - message_ = s; - return s; - } - } - /** - *
-     * Detailed description of the error - including stack trace.
-     * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object errorUri_; - /** - *
-     * Full error contents accessible via a URI
-     * 
- * - * string error_uri = 3; - */ - public java.lang.String getErrorUri() { - java.lang.Object ref = errorUri_; - 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(); - errorUri_ = s; - return s; - } - } - /** - *
-     * Full error contents accessible via a URI
-     * 
- * - * string error_uri = 3; - */ - public com.google.protobuf.ByteString - getErrorUriBytes() { - java.lang.Object ref = errorUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - errorUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KIND_FIELD_NUMBER = 4; - private int kind_; - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public int getKindValue() { - return kind_; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_); - return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; - } - - 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 (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - if (!getErrorUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorUri_); - } - if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { - output.writeEnum(4, kind_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - if (!getErrorUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorUri_); - } - if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, kind_); - } - 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 flyteidl.core.Execution.ExecutionError)) { - return super.equals(obj); - } - flyteidl.core.Execution.ExecutionError other = (flyteidl.core.Execution.ExecutionError) obj; - - if (!getCode() - .equals(other.getCode())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getErrorUri() - .equals(other.getErrorUri())) return false; - if (kind_ != other.kind_) 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) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (37 * hash) + ERROR_URI_FIELD_NUMBER; - hash = (53 * hash) + getErrorUri().hashCode(); - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + kind_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.ExecutionError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.ExecutionError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.ExecutionError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.ExecutionError parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.ExecutionError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.ExecutionError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.ExecutionError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.ExecutionError 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 flyteidl.core.Execution.ExecutionError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.ExecutionError 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 flyteidl.core.Execution.ExecutionError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.ExecutionError 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(flyteidl.core.Execution.ExecutionError 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; - } - /** - *
-     * Represents the error message from the execution.
-     * 
- * - * Protobuf type {@code flyteidl.core.ExecutionError} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ExecutionError) - flyteidl.core.Execution.ExecutionErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); - } - - // Construct using flyteidl.core.Execution.ExecutionError.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(); - code_ = ""; - - message_ = ""; - - errorUri_ = ""; - - kind_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() { - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.ExecutionError build() { - flyteidl.core.Execution.ExecutionError result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.ExecutionError buildPartial() { - flyteidl.core.Execution.ExecutionError result = new flyteidl.core.Execution.ExecutionError(this); - result.code_ = code_; - result.message_ = message_; - result.errorUri_ = errorUri_; - result.kind_ = kind_; - 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 flyteidl.core.Execution.ExecutionError) { - return mergeFrom((flyteidl.core.Execution.ExecutionError)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.ExecutionError other) { - if (other == flyteidl.core.Execution.ExecutionError.getDefaultInstance()) return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (!other.getErrorUri().isEmpty()) { - errorUri_ = other.errorUri_; - onChanged(); - } - if (other.kind_ != 0) { - setKindValue(other.getKindValue()); - } - 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 { - flyteidl.core.Execution.ExecutionError parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.ExecutionError) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object code_ = ""; - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private java.lang.Object errorUri_ = ""; - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public java.lang.String getErrorUri() { - java.lang.Object ref = errorUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errorUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public com.google.protobuf.ByteString - getErrorUriBytes() { - java.lang.Object ref = errorUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - errorUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public Builder setErrorUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - errorUri_ = value; - onChanged(); - return this; - } - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public Builder clearErrorUri() { - - errorUri_ = getDefaultInstance().getErrorUri(); - onChanged(); - return this; - } - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public Builder setErrorUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - errorUri_ = value; - onChanged(); - return this; - } - - private int kind_ = 0; - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public int getKindValue() { - return kind_; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public Builder setKindValue(int value) { - kind_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_); - return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public Builder setKind(flyteidl.core.Execution.ExecutionError.ErrorKind value) { - if (value == null) { - throw new NullPointerException(); - } - - kind_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public Builder clearKind() { - - kind_ = 0; - 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:flyteidl.core.ExecutionError) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionError) - private static final flyteidl.core.Execution.ExecutionError DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.ExecutionError(); - } - - public static flyteidl.core.Execution.ExecutionError getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionError(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 flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskLogOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskLog) - com.google.protobuf.MessageOrBuilder { - - /** - * string uri = 1; - */ - java.lang.String getUri(); - /** - * string uri = 1; - */ - com.google.protobuf.ByteString - getUriBytes(); - - /** - * string name = 2; - */ - java.lang.String getName(); - /** - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - int getMessageFormatValue(); - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat(); - - /** - * .google.protobuf.Duration ttl = 4; - */ - boolean hasTtl(); - /** - * .google.protobuf.Duration ttl = 4; - */ - com.google.protobuf.Duration getTtl(); - /** - * .google.protobuf.Duration ttl = 4; - */ - com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); - } - /** - *
-   * Log information for the task that is specific to a log sink
-   * When our log story is flushed out, we may have more metadata here like log link expiry
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskLog} - */ - public static final class TaskLog extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskLog) - TaskLogOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskLog.newBuilder() to construct. - private TaskLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskLog() { - uri_ = ""; - name_ = ""; - messageFormat_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskLog( - 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(); - - uri_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - messageFormat_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (ttl_ != null) { - subBuilder = ttl_.toBuilder(); - } - ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ttl_); - ttl_ = 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 flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.TaskLog.MessageFormat} - */ - public enum MessageFormat - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * CSV = 1; - */ - CSV(1), - /** - * JSON = 2; - */ - JSON(2), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * CSV = 1; - */ - public static final int CSV_VALUE = 1; - /** - * JSON = 2; - */ - public static final int JSON_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MessageFormat valueOf(int value) { - return forNumber(value); - } - - public static MessageFormat forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return CSV; - case 2: return JSON; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MessageFormat> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MessageFormat findValueByNumber(int number) { - return MessageFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Execution.TaskLog.getDescriptor().getEnumTypes().get(0); - } - - private static final MessageFormat[] VALUES = values(); - - public static MessageFormat 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 MessageFormat(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskLog.MessageFormat) - } - - public static final int URI_FIELD_NUMBER = 1; - private volatile java.lang.Object uri_; - /** - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - 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(); - uri_ = s; - return s; - } - } - /** - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * string name = 2; - */ - 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; - } - } - /** - * string name = 2; - */ - 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 MESSAGE_FORMAT_FIELD_NUMBER = 3; - private int messageFormat_; - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public int getMessageFormatValue() { - return messageFormat_; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); - return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; - } - - public static final int TTL_FIELD_NUMBER = 4; - private com.google.protobuf.Duration ttl_; - /** - * .google.protobuf.Duration ttl = 4; - */ - public boolean hasTtl() { - return ttl_ != null; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.Duration getTtl() { - return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { - return getTtl(); - } - - 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 (!getUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { - output.writeEnum(3, messageFormat_); - } - if (ttl_ != null) { - output.writeMessage(4, getTtl()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, messageFormat_); - } - if (ttl_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTtl()); - } - 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 flyteidl.core.Execution.TaskLog)) { - return super.equals(obj); - } - flyteidl.core.Execution.TaskLog other = (flyteidl.core.Execution.TaskLog) obj; - - if (!getUri() - .equals(other.getUri())) return false; - if (!getName() - .equals(other.getName())) return false; - if (messageFormat_ != other.messageFormat_) return false; - if (hasTtl() != other.hasTtl()) return false; - if (hasTtl()) { - if (!getTtl() - .equals(other.getTtl())) 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) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + MESSAGE_FORMAT_FIELD_NUMBER; - hash = (53 * hash) + messageFormat_; - if (hasTtl()) { - hash = (37 * hash) + TTL_FIELD_NUMBER; - hash = (53 * hash) + getTtl().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.TaskLog parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskLog parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskLog parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskLog parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskLog parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskLog parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskLog parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskLog 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 flyteidl.core.Execution.TaskLog parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskLog 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 flyteidl.core.Execution.TaskLog parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskLog 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(flyteidl.core.Execution.TaskLog 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; - } - /** - *
-     * Log information for the task that is specific to a log sink
-     * When our log story is flushed out, we may have more metadata here like log link expiry
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskLog} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskLog) - flyteidl.core.Execution.TaskLogOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); - } - - // Construct using flyteidl.core.Execution.TaskLog.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(); - uri_ = ""; - - name_ = ""; - - messageFormat_ = 0; - - if (ttlBuilder_ == null) { - ttl_ = null; - } else { - ttl_ = null; - ttlBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.TaskLog getDefaultInstanceForType() { - return flyteidl.core.Execution.TaskLog.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.TaskLog build() { - flyteidl.core.Execution.TaskLog result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.TaskLog buildPartial() { - flyteidl.core.Execution.TaskLog result = new flyteidl.core.Execution.TaskLog(this); - result.uri_ = uri_; - result.name_ = name_; - result.messageFormat_ = messageFormat_; - if (ttlBuilder_ == null) { - result.ttl_ = ttl_; - } else { - result.ttl_ = ttlBuilder_.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 flyteidl.core.Execution.TaskLog) { - return mergeFrom((flyteidl.core.Execution.TaskLog)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.TaskLog other) { - if (other == flyteidl.core.Execution.TaskLog.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.messageFormat_ != 0) { - setMessageFormatValue(other.getMessageFormatValue()); - } - if (other.hasTtl()) { - mergeTtl(other.getTtl()); - } - 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 { - flyteidl.core.Execution.TaskLog parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.TaskLog) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object uri_ = ""; - /** - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uri = 1; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * string uri = 1; - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * string uri = 1; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 2; - */ - 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; - } - } - /** - * string name = 2; - */ - 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; - } - } - /** - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int messageFormat_ = 0; - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public int getMessageFormatValue() { - return messageFormat_; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public Builder setMessageFormatValue(int value) { - messageFormat_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); - return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public Builder setMessageFormat(flyteidl.core.Execution.TaskLog.MessageFormat value) { - if (value == null) { - throw new NullPointerException(); - } - - messageFormat_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public Builder clearMessageFormat() { - - messageFormat_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Duration ttl_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; - /** - * .google.protobuf.Duration ttl = 4; - */ - public boolean hasTtl() { - return ttlBuilder_ != null || ttl_ != null; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.Duration getTtl() { - if (ttlBuilder_ == null) { - return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; - } else { - return ttlBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public Builder setTtl(com.google.protobuf.Duration value) { - if (ttlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ttl_ = value; - onChanged(); - } else { - ttlBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public Builder setTtl( - com.google.protobuf.Duration.Builder builderForValue) { - if (ttlBuilder_ == null) { - ttl_ = builderForValue.build(); - onChanged(); - } else { - ttlBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public Builder mergeTtl(com.google.protobuf.Duration value) { - if (ttlBuilder_ == null) { - if (ttl_ != null) { - ttl_ = - com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial(); - } else { - ttl_ = value; - } - onChanged(); - } else { - ttlBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public Builder clearTtl() { - if (ttlBuilder_ == null) { - ttl_ = null; - onChanged(); - } else { - ttl_ = null; - ttlBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.Duration.Builder getTtlBuilder() { - - onChanged(); - return getTtlFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { - if (ttlBuilder_ != null) { - return ttlBuilder_.getMessageOrBuilder(); - } else { - return ttl_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : ttl_; - } - } - /** - * .google.protobuf.Duration ttl = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getTtlFieldBuilder() { - if (ttlBuilder_ == null) { - ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTtl(), - getParentForChildren(), - isClean()); - ttl_ = null; - } - return ttlBuilder_; - } - @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:flyteidl.core.TaskLog) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskLog) - private static final flyteidl.core.Execution.TaskLog DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskLog(); - } - - public static flyteidl.core.Execution.TaskLog getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskLog parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskLog(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 flyteidl.core.Execution.TaskLog getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QualityOfServiceSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.QualityOfServiceSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - boolean hasQueueingBudget(); - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - com.google.protobuf.Duration getQueueingBudget(); - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder(); - } - /** - *
-   * Represents customized execution run-time attributes.
-   * 
- * - * Protobuf type {@code flyteidl.core.QualityOfServiceSpec} - */ - public static final class QualityOfServiceSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.QualityOfServiceSpec) - QualityOfServiceSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use QualityOfServiceSpec.newBuilder() to construct. - private QualityOfServiceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QualityOfServiceSpec() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QualityOfServiceSpec( - 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.Duration.Builder subBuilder = null; - if (queueingBudget_ != null) { - subBuilder = queueingBudget_.toBuilder(); - } - queueingBudget_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queueingBudget_); - queueingBudget_ = 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 flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.QualityOfServiceSpec.class, flyteidl.core.Execution.QualityOfServiceSpec.Builder.class); - } - - public static final int QUEUEING_BUDGET_FIELD_NUMBER = 1; - private com.google.protobuf.Duration queueingBudget_; - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public boolean hasQueueingBudget() { - return queueingBudget_ != null; - } - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.Duration getQueueingBudget() { - return queueingBudget_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; - } - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder() { - return getQueueingBudget(); - } - - 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 (queueingBudget_ != null) { - output.writeMessage(1, getQueueingBudget()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queueingBudget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getQueueingBudget()); - } - 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 flyteidl.core.Execution.QualityOfServiceSpec)) { - return super.equals(obj); - } - flyteidl.core.Execution.QualityOfServiceSpec other = (flyteidl.core.Execution.QualityOfServiceSpec) obj; - - if (hasQueueingBudget() != other.hasQueueingBudget()) return false; - if (hasQueueingBudget()) { - if (!getQueueingBudget() - .equals(other.getQueueingBudget())) 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 (hasQueueingBudget()) { - hash = (37 * hash) + QUEUEING_BUDGET_FIELD_NUMBER; - hash = (53 * hash) + getQueueingBudget().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfServiceSpec 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 flyteidl.core.Execution.QualityOfServiceSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfServiceSpec 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 flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfServiceSpec 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(flyteidl.core.Execution.QualityOfServiceSpec 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; - } - /** - *
-     * Represents customized execution run-time attributes.
-     * 
- * - * Protobuf type {@code flyteidl.core.QualityOfServiceSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.QualityOfServiceSpec) - flyteidl.core.Execution.QualityOfServiceSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.QualityOfServiceSpec.class, flyteidl.core.Execution.QualityOfServiceSpec.Builder.class); - } - - // Construct using flyteidl.core.Execution.QualityOfServiceSpec.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 (queueingBudgetBuilder_ == null) { - queueingBudget_ = null; - } else { - queueingBudget_ = null; - queueingBudgetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstanceForType() { - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfServiceSpec build() { - flyteidl.core.Execution.QualityOfServiceSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfServiceSpec buildPartial() { - flyteidl.core.Execution.QualityOfServiceSpec result = new flyteidl.core.Execution.QualityOfServiceSpec(this); - if (queueingBudgetBuilder_ == null) { - result.queueingBudget_ = queueingBudget_; - } else { - result.queueingBudget_ = queueingBudgetBuilder_.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 flyteidl.core.Execution.QualityOfServiceSpec) { - return mergeFrom((flyteidl.core.Execution.QualityOfServiceSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.QualityOfServiceSpec other) { - if (other == flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance()) return this; - if (other.hasQueueingBudget()) { - mergeQueueingBudget(other.getQueueingBudget()); - } - 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 { - flyteidl.core.Execution.QualityOfServiceSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.QualityOfServiceSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Duration queueingBudget_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> queueingBudgetBuilder_; - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public boolean hasQueueingBudget() { - return queueingBudgetBuilder_ != null || queueingBudget_ != null; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.Duration getQueueingBudget() { - if (queueingBudgetBuilder_ == null) { - return queueingBudget_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; - } else { - return queueingBudgetBuilder_.getMessage(); - } - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public Builder setQueueingBudget(com.google.protobuf.Duration value) { - if (queueingBudgetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queueingBudget_ = value; - onChanged(); - } else { - queueingBudgetBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public Builder setQueueingBudget( - com.google.protobuf.Duration.Builder builderForValue) { - if (queueingBudgetBuilder_ == null) { - queueingBudget_ = builderForValue.build(); - onChanged(); - } else { - queueingBudgetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public Builder mergeQueueingBudget(com.google.protobuf.Duration value) { - if (queueingBudgetBuilder_ == null) { - if (queueingBudget_ != null) { - queueingBudget_ = - com.google.protobuf.Duration.newBuilder(queueingBudget_).mergeFrom(value).buildPartial(); - } else { - queueingBudget_ = value; - } - onChanged(); - } else { - queueingBudgetBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public Builder clearQueueingBudget() { - if (queueingBudgetBuilder_ == null) { - queueingBudget_ = null; - onChanged(); - } else { - queueingBudget_ = null; - queueingBudgetBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.Duration.Builder getQueueingBudgetBuilder() { - - onChanged(); - return getQueueingBudgetFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder() { - if (queueingBudgetBuilder_ != null) { - return queueingBudgetBuilder_.getMessageOrBuilder(); - } else { - return queueingBudget_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; - } - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getQueueingBudgetFieldBuilder() { - if (queueingBudgetBuilder_ == null) { - queueingBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getQueueingBudget(), - getParentForChildren(), - isClean()); - queueingBudget_ = null; - } - return queueingBudgetBuilder_; - } - @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:flyteidl.core.QualityOfServiceSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfServiceSpec) - private static final flyteidl.core.Execution.QualityOfServiceSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.QualityOfServiceSpec(); - } - - public static flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QualityOfServiceSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QualityOfServiceSpec(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 flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QualityOfServiceOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.QualityOfService) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - int getTierValue(); - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - flyteidl.core.Execution.QualityOfService.Tier getTier(); - - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - boolean hasSpec(); - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - flyteidl.core.Execution.QualityOfServiceSpec getSpec(); - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder(); - - public flyteidl.core.Execution.QualityOfService.DesignationCase getDesignationCase(); - } - /** - *
-   * Indicates the priority of an execution.
-   * 
- * - * Protobuf type {@code flyteidl.core.QualityOfService} - */ - public static final class QualityOfService extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.QualityOfService) - QualityOfServiceOrBuilder { - private static final long serialVersionUID = 0L; - // Use QualityOfService.newBuilder() to construct. - private QualityOfService(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QualityOfService() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QualityOfService( - 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 8: { - int rawValue = input.readEnum(); - designationCase_ = 1; - designation_ = rawValue; - break; - } - case 18: { - flyteidl.core.Execution.QualityOfServiceSpec.Builder subBuilder = null; - if (designationCase_ == 2) { - subBuilder = ((flyteidl.core.Execution.QualityOfServiceSpec) designation_).toBuilder(); - } - designation_ = - input.readMessage(flyteidl.core.Execution.QualityOfServiceSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.QualityOfServiceSpec) designation_); - designation_ = subBuilder.buildPartial(); - } - designationCase_ = 2; - 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 flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.QualityOfService.class, flyteidl.core.Execution.QualityOfService.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.QualityOfService.Tier} - */ - public enum Tier - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Default: no quality of service specified.
-       * 
- * - * UNDEFINED = 0; - */ - UNDEFINED(0), - /** - * HIGH = 1; - */ - HIGH(1), - /** - * MEDIUM = 2; - */ - MEDIUM(2), - /** - * LOW = 3; - */ - LOW(3), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Default: no quality of service specified.
-       * 
- * - * UNDEFINED = 0; - */ - public static final int UNDEFINED_VALUE = 0; - /** - * HIGH = 1; - */ - public static final int HIGH_VALUE = 1; - /** - * MEDIUM = 2; - */ - public static final int MEDIUM_VALUE = 2; - /** - * LOW = 3; - */ - public static final int LOW_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Tier valueOf(int value) { - return forNumber(value); - } - - public static Tier forNumber(int value) { - switch (value) { - case 0: return UNDEFINED; - case 1: return HIGH; - case 2: return MEDIUM; - case 3: return LOW; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Tier> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tier findValueByNumber(int number) { - return Tier.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Execution.QualityOfService.getDescriptor().getEnumTypes().get(0); - } - - private static final Tier[] VALUES = values(); - - public static Tier 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 Tier(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.QualityOfService.Tier) - } - - private int designationCase_ = 0; - private java.lang.Object designation_; - public enum DesignationCase - implements com.google.protobuf.Internal.EnumLite { - TIER(1), - SPEC(2), - DESIGNATION_NOT_SET(0); - private final int value; - private DesignationCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DesignationCase valueOf(int value) { - return forNumber(value); - } - - public static DesignationCase forNumber(int value) { - switch (value) { - case 1: return TIER; - case 2: return SPEC; - case 0: return DESIGNATION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DesignationCase - getDesignationCase() { - return DesignationCase.forNumber( - designationCase_); - } - - public static final int TIER_FIELD_NUMBER = 1; - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public int getTierValue() { - if (designationCase_ == 1) { - return (java.lang.Integer) designation_; - } - return 0; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public flyteidl.core.Execution.QualityOfService.Tier getTier() { - if (designationCase_ == 1) { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.QualityOfService.Tier result = flyteidl.core.Execution.QualityOfService.Tier.valueOf( - (java.lang.Integer) designation_); - return result == null ? flyteidl.core.Execution.QualityOfService.Tier.UNRECOGNIZED : result; - } - return flyteidl.core.Execution.QualityOfService.Tier.UNDEFINED; - } - - public static final int SPEC_FIELD_NUMBER = 2; - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public boolean hasSpec() { - return designationCase_ == 2; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpec getSpec() { - if (designationCase_ == 2) { - return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder() { - if (designationCase_ == 2) { - return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (designationCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) designation_)); - } - if (designationCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Execution.QualityOfServiceSpec) designation_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (designationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, ((java.lang.Integer) designation_)); - } - if (designationCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Execution.QualityOfServiceSpec) designation_); - } - 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 flyteidl.core.Execution.QualityOfService)) { - return super.equals(obj); - } - flyteidl.core.Execution.QualityOfService other = (flyteidl.core.Execution.QualityOfService) obj; - - if (!getDesignationCase().equals(other.getDesignationCase())) return false; - switch (designationCase_) { - case 1: - if (getTierValue() - != other.getTierValue()) return false; - break; - case 2: - if (!getSpec() - .equals(other.getSpec())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (designationCase_) { - case 1: - hash = (37 * hash) + TIER_FIELD_NUMBER; - hash = (53 * hash) + getTierValue(); - break; - case 2: - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.QualityOfService parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfService parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfService parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfService parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfService parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfService parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfService parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfService 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 flyteidl.core.Execution.QualityOfService parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfService 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 flyteidl.core.Execution.QualityOfService parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfService 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(flyteidl.core.Execution.QualityOfService 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; - } - /** - *
-     * Indicates the priority of an execution.
-     * 
- * - * Protobuf type {@code flyteidl.core.QualityOfService} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.QualityOfService) - flyteidl.core.Execution.QualityOfServiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.QualityOfService.class, flyteidl.core.Execution.QualityOfService.Builder.class); - } - - // Construct using flyteidl.core.Execution.QualityOfService.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(); - designationCase_ = 0; - designation_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfService getDefaultInstanceForType() { - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfService build() { - flyteidl.core.Execution.QualityOfService result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfService buildPartial() { - flyteidl.core.Execution.QualityOfService result = new flyteidl.core.Execution.QualityOfService(this); - if (designationCase_ == 1) { - result.designation_ = designation_; - } - if (designationCase_ == 2) { - if (specBuilder_ == null) { - result.designation_ = designation_; - } else { - result.designation_ = specBuilder_.build(); - } - } - result.designationCase_ = designationCase_; - 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 flyteidl.core.Execution.QualityOfService) { - return mergeFrom((flyteidl.core.Execution.QualityOfService)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.QualityOfService other) { - if (other == flyteidl.core.Execution.QualityOfService.getDefaultInstance()) return this; - switch (other.getDesignationCase()) { - case TIER: { - setTierValue(other.getTierValue()); - break; - } - case SPEC: { - mergeSpec(other.getSpec()); - break; - } - case DESIGNATION_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 { - flyteidl.core.Execution.QualityOfService parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.QualityOfService) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int designationCase_ = 0; - private java.lang.Object designation_; - public DesignationCase - getDesignationCase() { - return DesignationCase.forNumber( - designationCase_); - } - - public Builder clearDesignation() { - designationCase_ = 0; - designation_ = null; - onChanged(); - return this; - } - - - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public int getTierValue() { - if (designationCase_ == 1) { - return ((java.lang.Integer) designation_).intValue(); - } - return 0; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public Builder setTierValue(int value) { - designationCase_ = 1; - designation_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public flyteidl.core.Execution.QualityOfService.Tier getTier() { - if (designationCase_ == 1) { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.QualityOfService.Tier result = flyteidl.core.Execution.QualityOfService.Tier.valueOf( - (java.lang.Integer) designation_); - return result == null ? flyteidl.core.Execution.QualityOfService.Tier.UNRECOGNIZED : result; - } - return flyteidl.core.Execution.QualityOfService.Tier.UNDEFINED; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public Builder setTier(flyteidl.core.Execution.QualityOfService.Tier value) { - if (value == null) { - throw new NullPointerException(); - } - designationCase_ = 1; - designation_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public Builder clearTier() { - if (designationCase_ == 1) { - designationCase_ = 0; - designation_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder> specBuilder_; - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public boolean hasSpec() { - return designationCase_ == 2; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpec getSpec() { - if (specBuilder_ == null) { - if (designationCase_ == 2) { - return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } else { - if (designationCase_ == 2) { - return specBuilder_.getMessage(); - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public Builder setSpec(flyteidl.core.Execution.QualityOfServiceSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - designation_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - designationCase_ = 2; - return this; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public Builder setSpec( - flyteidl.core.Execution.QualityOfServiceSpec.Builder builderForValue) { - if (specBuilder_ == null) { - designation_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - designationCase_ = 2; - return this; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.core.Execution.QualityOfServiceSpec value) { - if (specBuilder_ == null) { - if (designationCase_ == 2 && - designation_ != flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance()) { - designation_ = flyteidl.core.Execution.QualityOfServiceSpec.newBuilder((flyteidl.core.Execution.QualityOfServiceSpec) designation_) - .mergeFrom(value).buildPartial(); - } else { - designation_ = value; - } - onChanged(); - } else { - if (designationCase_ == 2) { - specBuilder_.mergeFrom(value); - } - specBuilder_.setMessage(value); - } - designationCase_ = 2; - return this; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - if (designationCase_ == 2) { - designationCase_ = 0; - designation_ = null; - onChanged(); - } - } else { - if (designationCase_ == 2) { - designationCase_ = 0; - designation_ = null; - } - specBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpec.Builder getSpecBuilder() { - return getSpecFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder() { - if ((designationCase_ == 2) && (specBuilder_ != null)) { - return specBuilder_.getMessageOrBuilder(); - } else { - if (designationCase_ == 2) { - return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - if (!(designationCase_ == 2)) { - designation_ = flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder>( - (flyteidl.core.Execution.QualityOfServiceSpec) designation_, - getParentForChildren(), - isClean()); - designation_ = null; - } - designationCase_ = 2; - onChanged();; - return specBuilder_; - } - @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:flyteidl.core.QualityOfService) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfService) - private static final flyteidl.core.Execution.QualityOfService DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.QualityOfService(); - } - - public static flyteidl.core.Execution.QualityOfService getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QualityOfService parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QualityOfService(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 flyteidl.core.Execution.QualityOfService getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_NodeExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_NodeExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ExecutionError_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ExecutionError_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskLog_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskLog_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_QualityOfService_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_QualityOfService_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\035flyteidl/core/execution.proto\022\rflyteid" + - "l.core\032\036google/protobuf/duration.proto\"\231" + - "\001\n\021WorkflowExecution\"\203\001\n\005Phase\022\r\n\tUNDEFI" + - "NED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\016\n\nSUCCEE" + - "DING\020\003\022\r\n\tSUCCEEDED\020\004\022\013\n\007FAILING\020\005\022\n\n\006FA" + - "ILED\020\006\022\013\n\007ABORTED\020\007\022\r\n\tTIMED_OUT\020\010\"\222\001\n\rN" + - "odeExecution\"\200\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n" + - "\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n" + - "\007FAILING\020\004\022\n\n\006FAILED\020\005\022\013\n\007ABORTED\020\006\022\013\n\007S" + - "KIPPED\020\007\022\r\n\tTIMED_OUT\020\010\"\226\001\n\rTaskExecutio" + - "n\"\204\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n\006QUEUED\020\001\022\013" + - "\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n\007ABORTED\020\004\022" + - "\n\n\006FAILED\020\005\022\020\n\014INITIALIZING\020\006\022\031\n\025WAITING" + - "_FOR_RESOURCES\020\007\"\251\001\n\016ExecutionError\022\014\n\004c" + - "ode\030\001 \001(\t\022\017\n\007message\030\002 \001(\t\022\021\n\terror_uri\030" + - "\003 \001(\t\0225\n\004kind\030\004 \001(\0162\'.flyteidl.core.Exec" + - "utionError.ErrorKind\".\n\tErrorKind\022\013\n\007UNK" + - "NOWN\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\"\273\001\n\007TaskLog" + - "\022\013\n\003uri\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022<\n\016message_f" + - "ormat\030\003 \001(\0162$.flyteidl.core.TaskLog.Mess" + - "ageFormat\022&\n\003ttl\030\004 \001(\0132\031.google.protobuf" + - ".Duration\"/\n\rMessageFormat\022\013\n\007UNKNOWN\020\000\022" + - "\007\n\003CSV\020\001\022\010\n\004JSON\020\002\"J\n\024QualityOfServiceSp" + - "ec\0222\n\017queueing_budget\030\001 \001(\0132\031.google.pro" + - "tobuf.Duration\"\302\001\n\020QualityOfService\0224\n\004t" + - "ier\030\001 \001(\0162$.flyteidl.core.QualityOfServi" + - "ce.TierH\000\0223\n\004spec\030\002 \001(\0132#.flyteidl.core." + - "QualityOfServiceSpecH\000\"4\n\004Tier\022\r\n\tUNDEFI" + - "NED\020\000\022\010\n\004HIGH\020\001\022\n\n\006MEDIUM\020\002\022\007\n\003LOW\020\003B\r\n\013" + - "designationB2Z0github.com/lyft/flyteidl/" + - "gen/pb-go/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_WorkflowExecution_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowExecution_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_core_NodeExecution_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_NodeExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_NodeExecution_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_core_TaskExecution_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_TaskExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TaskExecution_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_core_ExecutionError_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_ExecutionError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ExecutionError_descriptor, - new java.lang.String[] { "Code", "Message", "ErrorUri", "Kind", }); - internal_static_flyteidl_core_TaskLog_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_core_TaskLog_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TaskLog_descriptor, - new java.lang.String[] { "Uri", "Name", "MessageFormat", "Ttl", }); - internal_static_flyteidl_core_QualityOfServiceSpec_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_QualityOfServiceSpec_descriptor, - new java.lang.String[] { "QueueingBudget", }); - internal_static_flyteidl_core_QualityOfService_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_core_QualityOfService_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_QualityOfService_descriptor, - new java.lang.String[] { "Tier", "Spec", "Designation", }); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/IdentifierOuterClass.java b/gen/pb-java/flyteidl/core/IdentifierOuterClass.java deleted file mode 100644 index 43d9f5e3b..000000000 --- a/gen/pb-java/flyteidl/core/IdentifierOuterClass.java +++ /dev/null @@ -1,4043 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/identifier.proto - -package flyteidl.core; - -public final class IdentifierOuterClass { - private IdentifierOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * Indicates a resource type within Flyte.
-   * 
- * - * Protobuf enum {@code flyteidl.core.ResourceType} - */ - public enum ResourceType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * TASK = 1; - */ - TASK(1), - /** - * WORKFLOW = 2; - */ - WORKFLOW(2), - /** - * LAUNCH_PLAN = 3; - */ - LAUNCH_PLAN(3), - UNRECOGNIZED(-1), - ; - - /** - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * TASK = 1; - */ - public static final int TASK_VALUE = 1; - /** - * WORKFLOW = 2; - */ - public static final int WORKFLOW_VALUE = 2; - /** - * LAUNCH_PLAN = 3; - */ - public static final int LAUNCH_PLAN_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResourceType valueOf(int value) { - return forNumber(value); - } - - public static ResourceType forNumber(int value) { - switch (value) { - case 0: return UNSPECIFIED; - case 1: return TASK; - case 2: return WORKFLOW; - case 3: return LAUNCH_PLAN; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ResourceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResourceType findValueByNumber(int number) { - return ResourceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.IdentifierOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final ResourceType[] VALUES = values(); - - public static ResourceType 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 ResourceType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ResourceType) - } - - public interface IdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Identifier) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identifies the specific type of resource that this identifer corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - *
-     * Identifies the specific type of resource that this identifer corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 2; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 2; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 3; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 3; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * User provided value for the resource.
-     * 
- * - * string name = 4; - */ - java.lang.String getName(); - /** - *
-     * User provided value for the resource.
-     * 
- * - * string name = 4; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * Specific version of the resource.
-     * 
- * - * string version = 5; - */ - java.lang.String getVersion(); - /** - *
-     * Specific version of the resource.
-     * 
- * - * string version = 5; - */ - com.google.protobuf.ByteString - getVersionBytes(); - } - /** - *
-   * Encapsulation of fields that uniquely identifies a Flyte resource.
-   * 
- * - * Protobuf type {@code flyteidl.core.Identifier} - */ - public static final class Identifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Identifier) - IdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use Identifier.newBuilder() to construct. - private Identifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Identifier() { - resourceType_ = 0; - project_ = ""; - domain_ = ""; - name_ = ""; - version_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Identifier( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = 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 flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - *
-     * Identifies the specific type of resource that this identifer corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Identifies the specific type of resource that this identifer corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int PROJECT_FIELD_NUMBER = 2; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 2; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 2; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 3; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - *
-     * User provided value for the resource.
-     * 
- * - * string name = 4; - */ - 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; - } - } - /** - *
-     * User provided value for the resource.
-     * 
- * - * string name = 4; - */ - 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 VERSION_FIELD_NUMBER = 5; - private volatile java.lang.Object version_; - /** - *
-     * Specific version of the resource.
-     * 
- * - * string version = 5; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - 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(); - version_ = s; - return s; - } - } - /** - *
-     * Specific version of the resource.
-     * 
- * - * string version = 5; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); - } - 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 flyteidl.core.IdentifierOuterClass.Identifier)) { - return super.equals(obj); - } - flyteidl.core.IdentifierOuterClass.Identifier other = (flyteidl.core.IdentifierOuterClass.Identifier) obj; - - if (resourceType_ != other.resourceType_) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getVersion() - .equals(other.getVersion())) 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) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.Identifier 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 flyteidl.core.IdentifierOuterClass.Identifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.Identifier 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 flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.Identifier 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(flyteidl.core.IdentifierOuterClass.Identifier 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; - } - /** - *
-     * Encapsulation of fields that uniquely identifies a Flyte resource.
-     * 
- * - * Protobuf type {@code flyteidl.core.Identifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Identifier) - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); - } - - // Construct using flyteidl.core.IdentifierOuterClass.Identifier.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(); - resourceType_ = 0; - - project_ = ""; - - domain_ = ""; - - name_ = ""; - - version_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.Identifier build() { - flyteidl.core.IdentifierOuterClass.Identifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.Identifier buildPartial() { - flyteidl.core.IdentifierOuterClass.Identifier result = new flyteidl.core.IdentifierOuterClass.Identifier(this); - result.resourceType_ = resourceType_; - result.project_ = project_; - result.domain_ = domain_; - result.name_ = name_; - result.version_ = version_; - 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 flyteidl.core.IdentifierOuterClass.Identifier) { - return mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.Identifier other) { - if (other == flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - 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 { - flyteidl.core.IdentifierOuterClass.Identifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.IdentifierOuterClass.Identifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Identifies the specific type of resource that this identifer corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Identifies the specific type of resource that this identifer corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Identifies the specific type of resource that this identifer corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - *
-       * Identifies the specific type of resource that this identifer corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Identifies the specific type of resource that this identifer corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - 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; - } - } - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - 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; - } - } - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - 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 version_ = ""; - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = 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:flyteidl.core.Identifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Identifier) - private static final flyteidl.core.IdentifierOuterClass.Identifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.Identifier(); - } - - public static flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Identifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Identifier(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 flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecutionIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * User or system provided value for the resource.
-     * 
- * - * string name = 4; - */ - java.lang.String getName(); - /** - *
-     * User or system provided value for the resource.
-     * 
- * - * string name = 4; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - *
-   * Encapsulation of fields that uniquely identifies a Flyte workflow execution
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} - */ - public static final class WorkflowExecutionIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecutionIdentifier) - WorkflowExecutionIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionIdentifier.newBuilder() to construct. - private WorkflowExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionIdentifier() { - project_ = ""; - domain_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionIdentifier( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - *
-     * User or system provided value for the resource.
-     * 
- * - * string name = 4; - */ - 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; - } - } - /** - *
-     * User or system provided value for the resource.
-     * 
- * - * string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier)) { - return super.equals(obj); - } - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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; - } - /** - *
-     * Encapsulation of fields that uniquely identifies a Flyte workflow execution
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecutionIdentifier) - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); - } - - // Construct using flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.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(); - project_ = ""; - - domain_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { - return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier build() { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier buildPartial() { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(this); - result.project_ = project_; - result.domain_ = domain_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) { - return mergeFrom((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other) { - if (other == flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - 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; - } - } - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - 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; - } - } - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowExecutionIdentifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecutionIdentifier) - private static final flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(); - } - - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionIdentifier(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 flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecutionIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - * string node_id = 1; - */ - java.lang.String getNodeId(); - /** - * string node_id = 1; - */ - com.google.protobuf.ByteString - getNodeIdBytes(); - - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - boolean hasExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - } - /** - *
-   * Encapsulation of fields that identify a Flyte node execution entity.
-   * 
- * - * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} - */ - public static final class NodeExecutionIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecutionIdentifier) - NodeExecutionIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionIdentifier.newBuilder() to construct. - private NodeExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionIdentifier() { - nodeId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionIdentifier( - 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(); - - nodeId_ = s; - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = 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 flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); - } - - public static final int NODE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object nodeId_; - /** - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - 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(); - nodeId_ = s; - return s; - } - } - /** - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXECUTION_ID_FIELD_NUMBER = 2; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - 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 (!getNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); - } - if (executionId_ != null) { - output.writeMessage(2, getExecutionId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); - } - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExecutionId()); - } - 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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier)) { - return super.equals(obj); - } - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) obj; - - if (!getNodeId() - .equals(other.getNodeId())) return false; - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) 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) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId().hashCode(); - if (hasExecutionId()) { - hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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; - } - /** - *
-     * Encapsulation of fields that identify a Flyte node execution entity.
-     * 
- * - * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecutionIdentifier) - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); - } - - // Construct using flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.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(); - nodeId_ = ""; - - if (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { - return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier build() { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier buildPartial() { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(this); - result.nodeId_ = nodeId_; - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) { - return mergeFrom((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other) { - if (other == flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance()) return this; - if (!other.getNodeId().isEmpty()) { - nodeId_ = other.nodeId_; - onChanged(); - } - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - 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 { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object nodeId_ = ""; - /** - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string node_id = 1; - */ - public Builder setNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeId_ = value; - onChanged(); - return this; - } - /** - * string node_id = 1; - */ - public Builder clearNodeId() { - - nodeId_ = getDefaultInstance().getNodeId(); - onChanged(); - return this; - } - /** - * string node_id = 1; - */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeId_ = value; - onChanged(); - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - @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:flyteidl.core.NodeExecutionIdentifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecutionIdentifier) - private static final flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(); - } - - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionIdentifier(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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecutionIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.Identifier task_id = 1; - */ - boolean hasTaskId(); - /** - * .flyteidl.core.Identifier task_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); - /** - * .flyteidl.core.Identifier task_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); - - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - boolean hasNodeExecutionId(); - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); - - /** - * uint32 retry_attempt = 3; - */ - int getRetryAttempt(); - } - /** - *
-   * Encapsulation of fields that identify a Flyte task execution entity.
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} - */ - public static final class TaskExecutionIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecutionIdentifier) - TaskExecutionIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionIdentifier.newBuilder() to construct. - private TaskExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionIdentifier() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionIdentifier( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (taskId_ != null) { - subBuilder = taskId_.toBuilder(); - } - taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskId_); - taskId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (nodeExecutionId_ != null) { - subBuilder = nodeExecutionId_.toBuilder(); - } - nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodeExecutionId_); - nodeExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - retryAttempt_ = input.readUInt32(); - 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 flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); - } - - public static final int TASK_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public boolean hasTaskId() { - return taskId_ != null; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - return getTaskId(); - } - - public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 2; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public boolean hasNodeExecutionId() { - return nodeExecutionId_ != null; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - return getNodeExecutionId(); - } - - public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; - private int retryAttempt_; - /** - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - - 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 (taskId_ != null) { - output.writeMessage(1, getTaskId()); - } - if (nodeExecutionId_ != null) { - output.writeMessage(2, getNodeExecutionId()); - } - if (retryAttempt_ != 0) { - output.writeUInt32(3, retryAttempt_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (taskId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTaskId()); - } - if (nodeExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getNodeExecutionId()); - } - if (retryAttempt_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, retryAttempt_); - } - 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier)) { - return super.equals(obj); - } - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) obj; - - if (hasTaskId() != other.hasTaskId()) return false; - if (hasTaskId()) { - if (!getTaskId() - .equals(other.getTaskId())) return false; - } - if (hasNodeExecutionId() != other.hasNodeExecutionId()) return false; - if (hasNodeExecutionId()) { - if (!getNodeExecutionId() - .equals(other.getNodeExecutionId())) return false; - } - if (getRetryAttempt() - != other.getRetryAttempt()) 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 (hasTaskId()) { - hash = (37 * hash) + TASK_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskId().hashCode(); - } - if (hasNodeExecutionId()) { - hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeExecutionId().hashCode(); - } - hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; - hash = (53 * hash) + getRetryAttempt(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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; - } - /** - *
-     * Encapsulation of fields that identify a Flyte task execution entity.
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecutionIdentifier) - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); - } - - // Construct using flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.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 (taskIdBuilder_ == null) { - taskId_ = null; - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = null; - } else { - nodeExecutionId_ = null; - nodeExecutionIdBuilder_ = null; - } - retryAttempt_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier build() { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier buildPartial() { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(this); - if (taskIdBuilder_ == null) { - result.taskId_ = taskId_; - } else { - result.taskId_ = taskIdBuilder_.build(); - } - if (nodeExecutionIdBuilder_ == null) { - result.nodeExecutionId_ = nodeExecutionId_; - } else { - result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); - } - result.retryAttempt_ = retryAttempt_; - 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) { - return mergeFrom((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other) { - if (other == flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance()) return this; - if (other.hasTaskId()) { - mergeTaskId(other.getTaskId()); - } - if (other.hasNodeExecutionId()) { - mergeNodeExecutionId(other.getNodeExecutionId()); - } - if (other.getRetryAttempt() != 0) { - setRetryAttempt(other.getRetryAttempt()); - } - 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 { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public boolean hasTaskId() { - return taskIdBuilder_ != null || taskId_ != null; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - if (taskIdBuilder_ == null) { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } else { - return taskIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskId_ = value; - onChanged(); - } else { - taskIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder setTaskId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (taskIdBuilder_ == null) { - taskId_ = builderForValue.build(); - onChanged(); - } else { - taskIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (taskId_ != null) { - taskId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); - } else { - taskId_ = value; - } - onChanged(); - } else { - taskIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder clearTaskId() { - if (taskIdBuilder_ == null) { - taskId_ = null; - onChanged(); - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { - - onChanged(); - return getTaskIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - if (taskIdBuilder_ != null) { - return taskIdBuilder_.getMessageOrBuilder(); - } else { - return taskId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getTaskIdFieldBuilder() { - if (taskIdBuilder_ == null) { - taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getTaskId(), - getParentForChildren(), - isClean()); - taskId_ = null; - } - return taskIdBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public boolean hasNodeExecutionId() { - return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } else { - return nodeExecutionIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeExecutionId_ = value; - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public Builder setNodeExecutionId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = builderForValue.build(); - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (nodeExecutionId_ != null) { - nodeExecutionId_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); - } else { - nodeExecutionId_ = value; - } - onChanged(); - } else { - nodeExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public Builder clearNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = null; - onChanged(); - } else { - nodeExecutionId_ = null; - nodeExecutionIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { - - onChanged(); - return getNodeExecutionIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - if (nodeExecutionIdBuilder_ != null) { - return nodeExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return nodeExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getNodeExecutionIdFieldBuilder() { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getNodeExecutionId(), - getParentForChildren(), - isClean()); - nodeExecutionId_ = null; - } - return nodeExecutionIdBuilder_; - } - - private int retryAttempt_ ; - /** - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - /** - * uint32 retry_attempt = 3; - */ - public Builder setRetryAttempt(int value) { - - retryAttempt_ = value; - onChanged(); - return this; - } - /** - * uint32 retry_attempt = 3; - */ - public Builder clearRetryAttempt() { - - retryAttempt_ = 0; - 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:flyteidl.core.TaskExecutionIdentifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecutionIdentifier) - private static final flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(); - } - - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionIdentifier(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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Identifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Identifier_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskExecutionIdentifier_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\036flyteidl/core/identifier.proto\022\rflytei" + - "dl.core\"\200\001\n\nIdentifier\0222\n\rresource_type\030" + - "\001 \001(\0162\033.flyteidl.core.ResourceType\022\017\n\007pr" + - "oject\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\014\n\004name\030\004 \001(" + - "\t\022\017\n\007version\030\005 \001(\t\"L\n\033WorkflowExecutionI" + - "dentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + - "(\t\022\014\n\004name\030\004 \001(\t\"l\n\027NodeExecutionIdentif" + - "ier\022\017\n\007node_id\030\001 \001(\t\022@\n\014execution_id\030\002 \001" + - "(\0132*.flyteidl.core.WorkflowExecutionIden" + - "tifier\"\237\001\n\027TaskExecutionIdentifier\022*\n\007ta" + - "sk_id\030\001 \001(\0132\031.flyteidl.core.Identifier\022A" + - "\n\021node_execution_id\030\002 \001(\0132&.flyteidl.cor" + - "e.NodeExecutionIdentifier\022\025\n\rretry_attem" + - "pt\030\003 \001(\r*H\n\014ResourceType\022\017\n\013UNSPECIFIED\020" + - "\000\022\010\n\004TASK\020\001\022\014\n\010WORKFLOW\020\002\022\017\n\013LAUNCH_PLAN" + - "\020\003B2Z0github.com/lyft/flyteidl/gen/pb-go" + - "/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_core_Identifier_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_Identifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Identifier_descriptor, - new java.lang.String[] { "ResourceType", "Project", "Domain", "Name", "Version", }); - internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor, - new java.lang.String[] { "Project", "Domain", "Name", }); - internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor, - new java.lang.String[] { "NodeId", "ExecutionId", }); - internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor, - new java.lang.String[] { "TaskId", "NodeExecutionId", "RetryAttempt", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Interface.java b/gen/pb-java/flyteidl/core/Interface.java deleted file mode 100644 index 386586380..000000000 --- a/gen/pb-java/flyteidl/core/Interface.java +++ /dev/null @@ -1,4503 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/interface.proto - -package flyteidl.core; - -public final class Interface { - private Interface() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface VariableOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Variable) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - boolean hasType(); - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - flyteidl.core.Types.LiteralType getType(); - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); - - /** - *
-     *+optional string describing input variable
-     * 
- * - * string description = 2; - */ - java.lang.String getDescription(); - /** - *
-     *+optional string describing input variable
-     * 
- * - * string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - } - /** - *
-   * Defines a strongly typed variable.
-   * 
- * - * Protobuf type {@code flyteidl.core.Variable} - */ - public static final class Variable extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Variable) - VariableOrBuilder { - private static final long serialVersionUID = 0L; - // Use Variable.newBuilder() to construct. - private Variable(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Variable() { - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Variable( - 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: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = 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 flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private flyteidl.core.Types.LiteralType type_; - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public boolean hasType() { - return type_ != null; - } - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralType getType() { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - *
-     *+optional string describing input variable
-     * 
- * - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - *
-     *+optional string describing input variable
-     * 
- * - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = 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 (type_ != null) { - output.writeMessage(1, getType()); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getType()); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - 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 flyteidl.core.Interface.Variable)) { - return super.equals(obj); - } - flyteidl.core.Interface.Variable other = (flyteidl.core.Interface.Variable) obj; - - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) return false; - } - if (!getDescription() - .equals(other.getDescription())) 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 (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.Variable parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Variable parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Variable parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Variable parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Variable parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Variable parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Variable parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Variable 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 flyteidl.core.Interface.Variable parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Variable 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 flyteidl.core.Interface.Variable parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Variable 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(flyteidl.core.Interface.Variable 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; - } - /** - *
-     * Defines a strongly typed variable.
-     * 
- * - * Protobuf type {@code flyteidl.core.Variable} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Variable) - flyteidl.core.Interface.VariableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); - } - - // Construct using flyteidl.core.Interface.Variable.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 (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.Variable getDefaultInstanceForType() { - return flyteidl.core.Interface.Variable.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.Variable build() { - flyteidl.core.Interface.Variable result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.Variable buildPartial() { - flyteidl.core.Interface.Variable result = new flyteidl.core.Interface.Variable(this); - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.build(); - } - result.description_ = description_; - 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 flyteidl.core.Interface.Variable) { - return mergeFrom((flyteidl.core.Interface.Variable)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.Variable other) { - if (other == flyteidl.core.Interface.Variable.getDefaultInstance()) return this; - if (other.hasType()) { - mergeType(other.getType()); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - 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 { - flyteidl.core.Interface.Variable parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.Variable) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Types.LiteralType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public Builder setType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public Builder setType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public Builder mergeType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - - private java.lang.Object description_ = ""; - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = 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:flyteidl.core.Variable) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Variable) - private static final flyteidl.core.Interface.Variable DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.Variable(); - } - - public static flyteidl.core.Interface.Variable getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Variable parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Variable(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 flyteidl.core.Interface.Variable getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface VariableMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.VariableMap) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - int getVariablesCount(); - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - boolean containsVariables( - java.lang.String key); - /** - * Use {@link #getVariablesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVariables(); - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - java.util.Map - getVariablesMap(); - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - flyteidl.core.Interface.Variable getVariablesOrDefault( - java.lang.String key, - flyteidl.core.Interface.Variable defaultValue); - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - flyteidl.core.Interface.Variable getVariablesOrThrow( - java.lang.String key); - } - /** - *
-   * A map of Variables
-   * 
- * - * Protobuf type {@code flyteidl.core.VariableMap} - */ - public static final class VariableMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.VariableMap) - VariableMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use VariableMap.newBuilder() to construct. - private VariableMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VariableMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VariableMap( - 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)) { - variables_ = com.google.protobuf.MapField.newMapField( - VariablesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - variables__ = input.readMessage( - VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - variables_.getMutableMap().put( - variables__.getKey(), variables__.getValue()); - 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 flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetVariables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); - } - - public static final int VARIABLES_FIELD_NUMBER = 1; - private static final class VariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Interface.Variable> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Interface.Variable.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Interface.Variable> variables_; - private com.google.protobuf.MapField - internalGetVariables() { - if (variables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - VariablesDefaultEntryHolder.defaultEntry); - } - return variables_; - } - - public int getVariablesCount() { - return internalGetVariables().getMap().size(); - } - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public boolean containsVariables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetVariables().getMap().containsKey(key); - } - /** - * Use {@link #getVariablesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getVariables() { - return getVariablesMap(); - } - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public java.util.Map getVariablesMap() { - return internalGetVariables().getMap(); - } - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public flyteidl.core.Interface.Variable getVariablesOrDefault( - java.lang.String key, - flyteidl.core.Interface.Variable defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public flyteidl.core.Interface.Variable getVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetVariables(), - VariablesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - variables__ = VariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, variables__); - } - 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 flyteidl.core.Interface.VariableMap)) { - return super.equals(obj); - } - flyteidl.core.Interface.VariableMap other = (flyteidl.core.Interface.VariableMap) obj; - - if (!internalGetVariables().equals( - other.internalGetVariables())) 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 (!internalGetVariables().getMap().isEmpty()) { - hash = (37 * hash) + VARIABLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetVariables().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.VariableMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.VariableMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.VariableMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.VariableMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.VariableMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.VariableMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.VariableMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.VariableMap 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 flyteidl.core.Interface.VariableMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.VariableMap 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 flyteidl.core.Interface.VariableMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.VariableMap 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(flyteidl.core.Interface.VariableMap 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 map of Variables
-     * 
- * - * Protobuf type {@code flyteidl.core.VariableMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.VariableMap) - flyteidl.core.Interface.VariableMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetVariables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableVariables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); - } - - // Construct using flyteidl.core.Interface.VariableMap.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(); - internalGetMutableVariables().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.VariableMap getDefaultInstanceForType() { - return flyteidl.core.Interface.VariableMap.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.VariableMap build() { - flyteidl.core.Interface.VariableMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.VariableMap buildPartial() { - flyteidl.core.Interface.VariableMap result = new flyteidl.core.Interface.VariableMap(this); - int from_bitField0_ = bitField0_; - result.variables_ = internalGetVariables(); - result.variables_.makeImmutable(); - 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 flyteidl.core.Interface.VariableMap) { - return mergeFrom((flyteidl.core.Interface.VariableMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.VariableMap other) { - if (other == flyteidl.core.Interface.VariableMap.getDefaultInstance()) return this; - internalGetMutableVariables().mergeFrom( - other.internalGetVariables()); - 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 { - flyteidl.core.Interface.VariableMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.VariableMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Interface.Variable> variables_; - private com.google.protobuf.MapField - internalGetVariables() { - if (variables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - VariablesDefaultEntryHolder.defaultEntry); - } - return variables_; - } - private com.google.protobuf.MapField - internalGetMutableVariables() { - onChanged();; - if (variables_ == null) { - variables_ = com.google.protobuf.MapField.newMapField( - VariablesDefaultEntryHolder.defaultEntry); - } - if (!variables_.isMutable()) { - variables_ = variables_.copy(); - } - return variables_; - } - - public int getVariablesCount() { - return internalGetVariables().getMap().size(); - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public boolean containsVariables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetVariables().getMap().containsKey(key); - } - /** - * Use {@link #getVariablesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getVariables() { - return getVariablesMap(); - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public java.util.Map getVariablesMap() { - return internalGetVariables().getMap(); - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public flyteidl.core.Interface.Variable getVariablesOrDefault( - java.lang.String key, - flyteidl.core.Interface.Variable defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public flyteidl.core.Interface.Variable getVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearVariables() { - internalGetMutableVariables().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public Builder removeVariables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableVariables().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVariables() { - return internalGetMutableVariables().getMutableMap(); - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - public Builder putVariables( - java.lang.String key, - flyteidl.core.Interface.Variable value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableVariables().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public Builder putAllVariables( - java.util.Map values) { - internalGetMutableVariables().getMutableMap() - .putAll(values); - 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:flyteidl.core.VariableMap) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.VariableMap) - private static final flyteidl.core.Interface.VariableMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.VariableMap(); - } - - public static flyteidl.core.Interface.VariableMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VariableMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VariableMap(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 flyteidl.core.Interface.VariableMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TypedInterfaceOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TypedInterface) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - boolean hasInputs(); - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - flyteidl.core.Interface.VariableMap getInputs(); - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder(); - - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - boolean hasOutputs(); - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - flyteidl.core.Interface.VariableMap getOutputs(); - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder(); - } - /** - *
-   * Defines strongly typed inputs and outputs.
-   * 
- * - * Protobuf type {@code flyteidl.core.TypedInterface} - */ - public static final class TypedInterface extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TypedInterface) - TypedInterfaceOrBuilder { - private static final long serialVersionUID = 0L; - // Use TypedInterface.newBuilder() to construct. - private TypedInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TypedInterface() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TypedInterface( - 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: { - flyteidl.core.Interface.VariableMap.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Interface.VariableMap.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = 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 flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private flyteidl.core.Interface.VariableMap inputs_; - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMap getInputs() { - return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private flyteidl.core.Interface.VariableMap outputs_; - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public boolean hasOutputs() { - return outputs_ != null; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMap getOutputs() { - return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - 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 (inputs_ != null) { - output.writeMessage(1, getInputs()); - } - if (outputs_ != null) { - output.writeMessage(2, getOutputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputs()); - } - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputs()); - } - 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 flyteidl.core.Interface.TypedInterface)) { - return super.equals(obj); - } - flyteidl.core.Interface.TypedInterface other = (flyteidl.core.Interface.TypedInterface) obj; - - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) 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 (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.TypedInterface parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.TypedInterface parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.TypedInterface parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.TypedInterface parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.TypedInterface parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.TypedInterface parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.TypedInterface parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.TypedInterface 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 flyteidl.core.Interface.TypedInterface parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.TypedInterface 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 flyteidl.core.Interface.TypedInterface parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.TypedInterface 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(flyteidl.core.Interface.TypedInterface 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; - } - /** - *
-     * Defines strongly typed inputs and outputs.
-     * 
- * - * Protobuf type {@code flyteidl.core.TypedInterface} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TypedInterface) - flyteidl.core.Interface.TypedInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); - } - - // Construct using flyteidl.core.Interface.TypedInterface.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 (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.TypedInterface getDefaultInstanceForType() { - return flyteidl.core.Interface.TypedInterface.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.TypedInterface build() { - flyteidl.core.Interface.TypedInterface result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.TypedInterface buildPartial() { - flyteidl.core.Interface.TypedInterface result = new flyteidl.core.Interface.TypedInterface(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.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 flyteidl.core.Interface.TypedInterface) { - return mergeFrom((flyteidl.core.Interface.TypedInterface)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.TypedInterface other) { - if (other == flyteidl.core.Interface.TypedInterface.getDefaultInstance()) return this; - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - 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 { - flyteidl.core.Interface.TypedInterface parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.TypedInterface) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Interface.VariableMap inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> inputsBuilder_; - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMap getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public Builder setInputs(flyteidl.core.Interface.VariableMap value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public Builder setInputs( - flyteidl.core.Interface.VariableMap.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public Builder mergeInputs(flyteidl.core.Interface.VariableMap value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.core.Interface.VariableMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMap.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; - } - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.core.Interface.VariableMap outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> outputsBuilder_; - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMap getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder setOutputs(flyteidl.core.Interface.VariableMap value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder setOutputs( - flyteidl.core.Interface.VariableMap.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder mergeOutputs(flyteidl.core.Interface.VariableMap value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.core.Interface.VariableMap.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMap.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; - } - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - @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:flyteidl.core.TypedInterface) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TypedInterface) - private static final flyteidl.core.Interface.TypedInterface DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.TypedInterface(); - } - - public static flyteidl.core.Interface.TypedInterface getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypedInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TypedInterface(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 flyteidl.core.Interface.TypedInterface getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParameterOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Parameter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - boolean hasVar(); - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - flyteidl.core.Interface.Variable getVar(); - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder(); - - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - boolean hasDefault(); - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - flyteidl.core.Literals.Literal getDefault(); - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder(); - - /** - *
-     *+optional, is this value required to be filled.
-     * 
- * - * bool required = 3; - */ - boolean getRequired(); - - public flyteidl.core.Interface.Parameter.BehaviorCase getBehaviorCase(); - } - /** - *
-   * A parameter is used as input to a launch plan and has
-   * the special ability to have a default value or mark itself as required.
-   * 
- * - * Protobuf type {@code flyteidl.core.Parameter} - */ - public static final class Parameter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Parameter) - ParameterOrBuilder { - private static final long serialVersionUID = 0L; - // Use Parameter.newBuilder() to construct. - private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Parameter() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Parameter( - 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: { - flyteidl.core.Interface.Variable.Builder subBuilder = null; - if (var_ != null) { - subBuilder = var_.toBuilder(); - } - var_ = input.readMessage(flyteidl.core.Interface.Variable.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(var_); - var_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Literals.Literal.Builder subBuilder = null; - if (behaviorCase_ == 2) { - subBuilder = ((flyteidl.core.Literals.Literal) behavior_).toBuilder(); - } - behavior_ = - input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Literal) behavior_); - behavior_ = subBuilder.buildPartial(); - } - behaviorCase_ = 2; - break; - } - case 24: { - behaviorCase_ = 3; - behavior_ = input.readBool(); - 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 flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); - } - - private int behaviorCase_ = 0; - private java.lang.Object behavior_; - public enum BehaviorCase - implements com.google.protobuf.Internal.EnumLite { - DEFAULT(2), - REQUIRED(3), - BEHAVIOR_NOT_SET(0); - private final int value; - private BehaviorCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static BehaviorCase valueOf(int value) { - return forNumber(value); - } - - public static BehaviorCase forNumber(int value) { - switch (value) { - case 2: return DEFAULT; - case 3: return REQUIRED; - case 0: return BEHAVIOR_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public BehaviorCase - getBehaviorCase() { - return BehaviorCase.forNumber( - behaviorCase_); - } - - public static final int VAR_FIELD_NUMBER = 1; - private flyteidl.core.Interface.Variable var_; - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - public boolean hasVar() { - return var_ != null; - } - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.Variable getVar() { - return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; - } - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { - return getVar(); - } - - public static final int DEFAULT_FIELD_NUMBER = 2; - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - public boolean hasDefault() { - return behaviorCase_ == 2; - } - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.Literal getDefault() { - if (behaviorCase_ == 2) { - return (flyteidl.core.Literals.Literal) behavior_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { - if (behaviorCase_ == 2) { - return (flyteidl.core.Literals.Literal) behavior_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - - public static final int REQUIRED_FIELD_NUMBER = 3; - /** - *
-     *+optional, is this value required to be filled.
-     * 
- * - * bool required = 3; - */ - public boolean getRequired() { - if (behaviorCase_ == 3) { - return (java.lang.Boolean) behavior_; - } - return false; - } - - 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 (var_ != null) { - output.writeMessage(1, getVar()); - } - if (behaviorCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Literals.Literal) behavior_); - } - if (behaviorCase_ == 3) { - output.writeBool( - 3, (boolean)((java.lang.Boolean) behavior_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (var_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVar()); - } - if (behaviorCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Literals.Literal) behavior_); - } - if (behaviorCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 3, (boolean)((java.lang.Boolean) behavior_)); - } - 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 flyteidl.core.Interface.Parameter)) { - return super.equals(obj); - } - flyteidl.core.Interface.Parameter other = (flyteidl.core.Interface.Parameter) obj; - - if (hasVar() != other.hasVar()) return false; - if (hasVar()) { - if (!getVar() - .equals(other.getVar())) return false; - } - if (!getBehaviorCase().equals(other.getBehaviorCase())) return false; - switch (behaviorCase_) { - case 2: - if (!getDefault() - .equals(other.getDefault())) return false; - break; - case 3: - if (getRequired() - != other.getRequired()) 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(); - if (hasVar()) { - hash = (37 * hash) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - } - switch (behaviorCase_) { - case 2: - hash = (37 * hash) + DEFAULT_FIELD_NUMBER; - hash = (53 * hash) + getDefault().hashCode(); - break; - case 3: - hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequired()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.Parameter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Parameter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Parameter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Parameter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Parameter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Parameter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Parameter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Parameter 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 flyteidl.core.Interface.Parameter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Parameter 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 flyteidl.core.Interface.Parameter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Parameter 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(flyteidl.core.Interface.Parameter 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 parameter is used as input to a launch plan and has
-     * the special ability to have a default value or mark itself as required.
-     * 
- * - * Protobuf type {@code flyteidl.core.Parameter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Parameter) - flyteidl.core.Interface.ParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); - } - - // Construct using flyteidl.core.Interface.Parameter.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 (varBuilder_ == null) { - var_ = null; - } else { - var_ = null; - varBuilder_ = null; - } - behaviorCase_ = 0; - behavior_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.Parameter getDefaultInstanceForType() { - return flyteidl.core.Interface.Parameter.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.Parameter build() { - flyteidl.core.Interface.Parameter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.Parameter buildPartial() { - flyteidl.core.Interface.Parameter result = new flyteidl.core.Interface.Parameter(this); - if (varBuilder_ == null) { - result.var_ = var_; - } else { - result.var_ = varBuilder_.build(); - } - if (behaviorCase_ == 2) { - if (defaultBuilder_ == null) { - result.behavior_ = behavior_; - } else { - result.behavior_ = defaultBuilder_.build(); - } - } - if (behaviorCase_ == 3) { - result.behavior_ = behavior_; - } - result.behaviorCase_ = behaviorCase_; - 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 flyteidl.core.Interface.Parameter) { - return mergeFrom((flyteidl.core.Interface.Parameter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.Parameter other) { - if (other == flyteidl.core.Interface.Parameter.getDefaultInstance()) return this; - if (other.hasVar()) { - mergeVar(other.getVar()); - } - switch (other.getBehaviorCase()) { - case DEFAULT: { - mergeDefault(other.getDefault()); - break; - } - case REQUIRED: { - setRequired(other.getRequired()); - break; - } - case BEHAVIOR_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 { - flyteidl.core.Interface.Parameter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.Parameter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int behaviorCase_ = 0; - private java.lang.Object behavior_; - public BehaviorCase - getBehaviorCase() { - return BehaviorCase.forNumber( - behaviorCase_); - } - - public Builder clearBehavior() { - behaviorCase_ = 0; - behavior_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.Interface.Variable var_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> varBuilder_; - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public boolean hasVar() { - return varBuilder_ != null || var_ != null; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.Variable getVar() { - if (varBuilder_ == null) { - return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; - } else { - return varBuilder_.getMessage(); - } - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public Builder setVar(flyteidl.core.Interface.Variable value) { - if (varBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - var_ = value; - onChanged(); - } else { - varBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public Builder setVar( - flyteidl.core.Interface.Variable.Builder builderForValue) { - if (varBuilder_ == null) { - var_ = builderForValue.build(); - onChanged(); - } else { - varBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public Builder mergeVar(flyteidl.core.Interface.Variable value) { - if (varBuilder_ == null) { - if (var_ != null) { - var_ = - flyteidl.core.Interface.Variable.newBuilder(var_).mergeFrom(value).buildPartial(); - } else { - var_ = value; - } - onChanged(); - } else { - varBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public Builder clearVar() { - if (varBuilder_ == null) { - var_ = null; - onChanged(); - } else { - var_ = null; - varBuilder_ = null; - } - - return this; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.Variable.Builder getVarBuilder() { - - onChanged(); - return getVarFieldBuilder().getBuilder(); - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { - if (varBuilder_ != null) { - return varBuilder_.getMessageOrBuilder(); - } else { - return var_ == null ? - flyteidl.core.Interface.Variable.getDefaultInstance() : var_; - } - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> - getVarFieldBuilder() { - if (varBuilder_ == null) { - varBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder>( - getVar(), - getParentForChildren(), - isClean()); - var_ = null; - } - return varBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> defaultBuilder_; - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public boolean hasDefault() { - return behaviorCase_ == 2; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.Literal getDefault() { - if (defaultBuilder_ == null) { - if (behaviorCase_ == 2) { - return (flyteidl.core.Literals.Literal) behavior_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } else { - if (behaviorCase_ == 2) { - return defaultBuilder_.getMessage(); - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public Builder setDefault(flyteidl.core.Literals.Literal value) { - if (defaultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - behavior_ = value; - onChanged(); - } else { - defaultBuilder_.setMessage(value); - } - behaviorCase_ = 2; - return this; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public Builder setDefault( - flyteidl.core.Literals.Literal.Builder builderForValue) { - if (defaultBuilder_ == null) { - behavior_ = builderForValue.build(); - onChanged(); - } else { - defaultBuilder_.setMessage(builderForValue.build()); - } - behaviorCase_ = 2; - return this; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public Builder mergeDefault(flyteidl.core.Literals.Literal value) { - if (defaultBuilder_ == null) { - if (behaviorCase_ == 2 && - behavior_ != flyteidl.core.Literals.Literal.getDefaultInstance()) { - behavior_ = flyteidl.core.Literals.Literal.newBuilder((flyteidl.core.Literals.Literal) behavior_) - .mergeFrom(value).buildPartial(); - } else { - behavior_ = value; - } - onChanged(); - } else { - if (behaviorCase_ == 2) { - defaultBuilder_.mergeFrom(value); - } - defaultBuilder_.setMessage(value); - } - behaviorCase_ = 2; - return this; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public Builder clearDefault() { - if (defaultBuilder_ == null) { - if (behaviorCase_ == 2) { - behaviorCase_ = 0; - behavior_ = null; - onChanged(); - } - } else { - if (behaviorCase_ == 2) { - behaviorCase_ = 0; - behavior_ = null; - } - defaultBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.Literal.Builder getDefaultBuilder() { - return getDefaultFieldBuilder().getBuilder(); - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { - if ((behaviorCase_ == 2) && (defaultBuilder_ != null)) { - return defaultBuilder_.getMessageOrBuilder(); - } else { - if (behaviorCase_ == 2) { - return (flyteidl.core.Literals.Literal) behavior_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> - getDefaultFieldBuilder() { - if (defaultBuilder_ == null) { - if (!(behaviorCase_ == 2)) { - behavior_ = flyteidl.core.Literals.Literal.getDefaultInstance(); - } - defaultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( - (flyteidl.core.Literals.Literal) behavior_, - getParentForChildren(), - isClean()); - behavior_ = null; - } - behaviorCase_ = 2; - onChanged();; - return defaultBuilder_; - } - - /** - *
-       *+optional, is this value required to be filled.
-       * 
- * - * bool required = 3; - */ - public boolean getRequired() { - if (behaviorCase_ == 3) { - return (java.lang.Boolean) behavior_; - } - return false; - } - /** - *
-       *+optional, is this value required to be filled.
-       * 
- * - * bool required = 3; - */ - public Builder setRequired(boolean value) { - behaviorCase_ = 3; - behavior_ = value; - onChanged(); - return this; - } - /** - *
-       *+optional, is this value required to be filled.
-       * 
- * - * bool required = 3; - */ - public Builder clearRequired() { - if (behaviorCase_ == 3) { - behaviorCase_ = 0; - behavior_ = 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:flyteidl.core.Parameter) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Parameter) - private static final flyteidl.core.Interface.Parameter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.Parameter(); - } - - public static flyteidl.core.Interface.Parameter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Parameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Parameter(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 flyteidl.core.Interface.Parameter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParameterMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ParameterMap) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - int getParametersCount(); - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - boolean containsParameters( - java.lang.String key); - /** - * Use {@link #getParametersMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getParameters(); - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - java.util.Map - getParametersMap(); - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - flyteidl.core.Interface.Parameter getParametersOrDefault( - java.lang.String key, - flyteidl.core.Interface.Parameter defaultValue); - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - flyteidl.core.Interface.Parameter getParametersOrThrow( - java.lang.String key); - } - /** - *
-   * A map of Parameters.
-   * 
- * - * Protobuf type {@code flyteidl.core.ParameterMap} - */ - public static final class ParameterMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ParameterMap) - ParameterMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParameterMap.newBuilder() to construct. - private ParameterMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParameterMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParameterMap( - 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)) { - parameters_ = com.google.protobuf.MapField.newMapField( - ParametersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - parameters__ = input.readMessage( - ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - parameters_.getMutableMap().put( - parameters__.getKey(), parameters__.getValue()); - 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 flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetParameters(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); - } - - public static final int PARAMETERS_FIELD_NUMBER = 1; - private static final class ParametersDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Interface.Parameter> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Interface.Parameter.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Interface.Parameter> parameters_; - private com.google.protobuf.MapField - internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public boolean containsParameters( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetParameters().getMap().containsKey(key); - } - /** - * Use {@link #getParametersMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public flyteidl.core.Interface.Parameter getParametersOrDefault( - java.lang.String key, - flyteidl.core.Interface.Parameter defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public flyteidl.core.Interface.Parameter getParametersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetParameters(), - ParametersDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetParameters().getMap().entrySet()) { - com.google.protobuf.MapEntry - parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, parameters__); - } - 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 flyteidl.core.Interface.ParameterMap)) { - return super.equals(obj); - } - flyteidl.core.Interface.ParameterMap other = (flyteidl.core.Interface.ParameterMap) obj; - - if (!internalGetParameters().equals( - other.internalGetParameters())) 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 (!internalGetParameters().getMap().isEmpty()) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetParameters().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.ParameterMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.ParameterMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.ParameterMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.ParameterMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.ParameterMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.ParameterMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.ParameterMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.ParameterMap 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 flyteidl.core.Interface.ParameterMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.ParameterMap 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 flyteidl.core.Interface.ParameterMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.ParameterMap 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(flyteidl.core.Interface.ParameterMap 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 map of Parameters.
-     * 
- * - * Protobuf type {@code flyteidl.core.ParameterMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ParameterMap) - flyteidl.core.Interface.ParameterMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetParameters(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableParameters(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); - } - - // Construct using flyteidl.core.Interface.ParameterMap.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(); - internalGetMutableParameters().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.ParameterMap getDefaultInstanceForType() { - return flyteidl.core.Interface.ParameterMap.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.ParameterMap build() { - flyteidl.core.Interface.ParameterMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.ParameterMap buildPartial() { - flyteidl.core.Interface.ParameterMap result = new flyteidl.core.Interface.ParameterMap(this); - int from_bitField0_ = bitField0_; - result.parameters_ = internalGetParameters(); - result.parameters_.makeImmutable(); - 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 flyteidl.core.Interface.ParameterMap) { - return mergeFrom((flyteidl.core.Interface.ParameterMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.ParameterMap other) { - if (other == flyteidl.core.Interface.ParameterMap.getDefaultInstance()) return this; - internalGetMutableParameters().mergeFrom( - other.internalGetParameters()); - 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 { - flyteidl.core.Interface.ParameterMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.ParameterMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Interface.Parameter> parameters_; - private com.google.protobuf.MapField - internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - private com.google.protobuf.MapField - internalGetMutableParameters() { - onChanged();; - if (parameters_ == null) { - parameters_ = com.google.protobuf.MapField.newMapField( - ParametersDefaultEntryHolder.defaultEntry); - } - if (!parameters_.isMutable()) { - parameters_ = parameters_.copy(); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public boolean containsParameters( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetParameters().getMap().containsKey(key); - } - /** - * Use {@link #getParametersMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public flyteidl.core.Interface.Parameter getParametersOrDefault( - java.lang.String key, - flyteidl.core.Interface.Parameter defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public flyteidl.core.Interface.Parameter getParametersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearParameters() { - internalGetMutableParameters().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public Builder removeParameters( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableParameters().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableParameters() { - return internalGetMutableParameters().getMutableMap(); - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - public Builder putParameters( - java.lang.String key, - flyteidl.core.Interface.Parameter value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableParameters().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public Builder putAllParameters( - java.util.Map values) { - internalGetMutableParameters().getMutableMap() - .putAll(values); - 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:flyteidl.core.ParameterMap) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ParameterMap) - private static final flyteidl.core.Interface.ParameterMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.ParameterMap(); - } - - public static flyteidl.core.Interface.ParameterMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParameterMap(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 flyteidl.core.Interface.ParameterMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Variable_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Variable_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_VariableMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_VariableMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_VariableMap_VariablesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TypedInterface_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TypedInterface_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Parameter_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Parameter_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ParameterMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ParameterMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ParameterMap_ParametersEntry_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\035flyteidl/core/interface.proto\022\rflyteid" + - "l.core\032\031flyteidl/core/types.proto\032\034flyte" + - "idl/core/literals.proto\"I\n\010Variable\022(\n\004t" + - "ype\030\001 \001(\0132\032.flyteidl.core.LiteralType\022\023\n" + - "\013description\030\002 \001(\t\"\226\001\n\013VariableMap\022<\n\tva" + - "riables\030\001 \003(\0132).flyteidl.core.VariableMa" + - "p.VariablesEntry\032I\n\016VariablesEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.flyteidl.core.V" + - "ariable:\0028\001\"i\n\016TypedInterface\022*\n\006inputs\030" + - "\001 \001(\0132\032.flyteidl.core.VariableMap\022+\n\007out" + - "puts\030\002 \001(\0132\032.flyteidl.core.VariableMap\"|" + - "\n\tParameter\022$\n\003var\030\001 \001(\0132\027.flyteidl.core" + - ".Variable\022)\n\007default\030\002 \001(\0132\026.flyteidl.co" + - "re.LiteralH\000\022\022\n\010required\030\003 \001(\010H\000B\n\n\010beha" + - "vior\"\234\001\n\014ParameterMap\022?\n\nparameters\030\001 \003(" + - "\0132+.flyteidl.core.ParameterMap.Parameter" + - "sEntry\032K\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\'" + - "\n\005value\030\002 \001(\0132\030.flyteidl.core.Parameter:" + - "\0028\001B2Z0github.com/lyft/flyteidl/gen/pb-g" + - "o/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Types.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_Variable_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_Variable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Variable_descriptor, - new java.lang.String[] { "Type", "Description", }); - internal_static_flyteidl_core_VariableMap_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_VariableMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_VariableMap_descriptor, - new java.lang.String[] { "Variables", }); - internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor = - internal_static_flyteidl_core_VariableMap_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_VariableMap_VariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_core_TypedInterface_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_TypedInterface_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TypedInterface_descriptor, - new java.lang.String[] { "Inputs", "Outputs", }); - internal_static_flyteidl_core_Parameter_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_Parameter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Parameter_descriptor, - new java.lang.String[] { "Var", "Default", "Required", "Behavior", }); - internal_static_flyteidl_core_ParameterMap_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_core_ParameterMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ParameterMap_descriptor, - new java.lang.String[] { "Parameters", }); - internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor = - internal_static_flyteidl_core_ParameterMap_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_ParameterMap_ParametersEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - flyteidl.core.Types.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Literals.java b/gen/pb-java/flyteidl/core/Literals.java deleted file mode 100644 index 78b622533..000000000 --- a/gen/pb-java/flyteidl/core/Literals.java +++ /dev/null @@ -1,14859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/literals.proto - -package flyteidl.core; - -public final class Literals { - private Literals() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PrimitiveOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Primitive) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 integer = 1; - */ - long getInteger(); - - /** - * double float_value = 2; - */ - double getFloatValue(); - - /** - * string string_value = 3; - */ - java.lang.String getStringValue(); - /** - * string string_value = 3; - */ - com.google.protobuf.ByteString - getStringValueBytes(); - - /** - * bool boolean = 4; - */ - boolean getBoolean(); - - /** - * .google.protobuf.Timestamp datetime = 5; - */ - boolean hasDatetime(); - /** - * .google.protobuf.Timestamp datetime = 5; - */ - com.google.protobuf.Timestamp getDatetime(); - /** - * .google.protobuf.Timestamp datetime = 5; - */ - com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder(); - - /** - * .google.protobuf.Duration duration = 6; - */ - boolean hasDuration(); - /** - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.Duration getDuration(); - /** - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - - public flyteidl.core.Literals.Primitive.ValueCase getValueCase(); - } - /** - *
-   * Primitive Types
-   * 
- * - * Protobuf type {@code flyteidl.core.Primitive} - */ - public static final class Primitive extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Primitive) - PrimitiveOrBuilder { - private static final long serialVersionUID = 0L; - // Use Primitive.newBuilder() to construct. - private Primitive(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Primitive() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Primitive( - 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 8: { - valueCase_ = 1; - value_ = input.readInt64(); - break; - } - case 17: { - valueCase_ = 2; - value_ = input.readDouble(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 3; - value_ = s; - break; - } - case 32: { - valueCase_ = 4; - value_ = input.readBool(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((com.google.protobuf.Timestamp) value_).toBuilder(); - } - value_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - case 50: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (valueCase_ == 6) { - subBuilder = ((com.google.protobuf.Duration) value_).toBuilder(); - } - value_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Duration) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 6; - 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 flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - INTEGER(1), - FLOAT_VALUE(2), - STRING_VALUE(3), - BOOLEAN(4), - DATETIME(5), - DURATION(6), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return INTEGER; - case 2: return FLOAT_VALUE; - case 3: return STRING_VALUE; - case 4: return BOOLEAN; - case 5: return DATETIME; - case 6: return DURATION; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int INTEGER_FIELD_NUMBER = 1; - /** - * int64 integer = 1; - */ - public long getInteger() { - if (valueCase_ == 1) { - return (java.lang.Long) value_; - } - return 0L; - } - - public static final int FLOAT_VALUE_FIELD_NUMBER = 2; - /** - * double float_value = 2; - */ - public double getFloatValue() { - if (valueCase_ == 2) { - return (java.lang.Double) value_; - } - return 0D; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 3; - /** - * string string_value = 3; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - 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(); - if (valueCase_ == 3) { - value_ = s; - } - return s; - } - } - /** - * string string_value = 3; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 3) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BOOLEAN_FIELD_NUMBER = 4; - /** - * bool boolean = 4; - */ - public boolean getBoolean() { - if (valueCase_ == 4) { - return (java.lang.Boolean) value_; - } - return false; - } - - public static final int DATETIME_FIELD_NUMBER = 5; - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public boolean hasDatetime() { - return valueCase_ == 5; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.Timestamp getDatetime() { - if (valueCase_ == 5) { - return (com.google.protobuf.Timestamp) value_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { - if (valueCase_ == 5) { - return (com.google.protobuf.Timestamp) value_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - public static final int DURATION_FIELD_NUMBER = 6; - /** - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return valueCase_ == 6; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - if (valueCase_ == 6) { - return (com.google.protobuf.Duration) value_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (valueCase_ == 6) { - return (com.google.protobuf.Duration) value_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeInt64( - 1, (long)((java.lang.Long) value_)); - } - if (valueCase_ == 2) { - output.writeDouble( - 2, (double)((java.lang.Double) value_)); - } - if (valueCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); - } - if (valueCase_ == 4) { - output.writeBool( - 4, (boolean)((java.lang.Boolean) value_)); - } - if (valueCase_ == 5) { - output.writeMessage(5, (com.google.protobuf.Timestamp) value_); - } - if (valueCase_ == 6) { - output.writeMessage(6, (com.google.protobuf.Duration) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 1, (long)((java.lang.Long) value_)); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 2, (double)((java.lang.Double) value_)); - } - if (valueCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 4, (boolean)((java.lang.Boolean) value_)); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.protobuf.Timestamp) value_); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.protobuf.Duration) 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 flyteidl.core.Literals.Primitive)) { - return super.equals(obj); - } - flyteidl.core.Literals.Primitive other = (flyteidl.core.Literals.Primitive) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (getInteger() - != other.getInteger()) return false; - break; - case 2: - if (java.lang.Double.doubleToLongBits(getFloatValue()) - != java.lang.Double.doubleToLongBits( - other.getFloatValue())) return false; - break; - case 3: - if (!getStringValue() - .equals(other.getStringValue())) return false; - break; - case 4: - if (getBoolean() - != other.getBoolean()) return false; - break; - case 5: - if (!getDatetime() - .equals(other.getDatetime())) return false; - break; - case 6: - if (!getDuration() - .equals(other.getDuration())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + INTEGER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInteger()); - break; - case 2: - hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getFloatValue())); - break; - case 3: - hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringValue().hashCode(); - break; - case 4: - hash = (37 * hash) + BOOLEAN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoolean()); - break; - case 5: - hash = (37 * hash) + DATETIME_FIELD_NUMBER; - hash = (53 * hash) + getDatetime().hashCode(); - break; - case 6: - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Primitive parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Primitive parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Primitive parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Primitive parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Primitive parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Primitive parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Primitive parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Primitive 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 flyteidl.core.Literals.Primitive parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Primitive 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 flyteidl.core.Literals.Primitive parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Primitive 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(flyteidl.core.Literals.Primitive 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; - } - /** - *
-     * Primitive Types
-     * 
- * - * Protobuf type {@code flyteidl.core.Primitive} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Primitive) - flyteidl.core.Literals.PrimitiveOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); - } - - // Construct using flyteidl.core.Literals.Primitive.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(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Primitive getDefaultInstanceForType() { - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Primitive build() { - flyteidl.core.Literals.Primitive result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Primitive buildPartial() { - flyteidl.core.Literals.Primitive result = new flyteidl.core.Literals.Primitive(this); - if (valueCase_ == 1) { - result.value_ = value_; - } - if (valueCase_ == 2) { - result.value_ = value_; - } - if (valueCase_ == 3) { - result.value_ = value_; - } - if (valueCase_ == 4) { - result.value_ = value_; - } - if (valueCase_ == 5) { - if (datetimeBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = datetimeBuilder_.build(); - } - } - if (valueCase_ == 6) { - if (durationBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = durationBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - 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 flyteidl.core.Literals.Primitive) { - return mergeFrom((flyteidl.core.Literals.Primitive)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Primitive other) { - if (other == flyteidl.core.Literals.Primitive.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case INTEGER: { - setInteger(other.getInteger()); - break; - } - case FLOAT_VALUE: { - setFloatValue(other.getFloatValue()); - break; - } - case STRING_VALUE: { - valueCase_ = 3; - value_ = other.value_; - onChanged(); - break; - } - case BOOLEAN: { - setBoolean(other.getBoolean()); - break; - } - case DATETIME: { - mergeDatetime(other.getDatetime()); - break; - } - case DURATION: { - mergeDuration(other.getDuration()); - break; - } - case VALUE_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 { - flyteidl.core.Literals.Primitive parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Primitive) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - /** - * int64 integer = 1; - */ - public long getInteger() { - if (valueCase_ == 1) { - return (java.lang.Long) value_; - } - return 0L; - } - /** - * int64 integer = 1; - */ - public Builder setInteger(long value) { - valueCase_ = 1; - value_ = value; - onChanged(); - return this; - } - /** - * int64 integer = 1; - */ - public Builder clearInteger() { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * double float_value = 2; - */ - public double getFloatValue() { - if (valueCase_ == 2) { - return (java.lang.Double) value_; - } - return 0D; - } - /** - * double float_value = 2; - */ - public Builder setFloatValue(double value) { - valueCase_ = 2; - value_ = value; - onChanged(); - return this; - } - /** - * double float_value = 2; - */ - public Builder clearFloatValue() { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * string string_value = 3; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 3) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string string_value = 3; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 3) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string string_value = 3; - */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - /** - * string string_value = 3; - */ - public Builder clearStringValue() { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - /** - * string string_value = 3; - */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - - /** - * bool boolean = 4; - */ - public boolean getBoolean() { - if (valueCase_ == 4) { - return (java.lang.Boolean) value_; - } - return false; - } - /** - * bool boolean = 4; - */ - public Builder setBoolean(boolean value) { - valueCase_ = 4; - value_ = value; - onChanged(); - return this; - } - /** - * bool boolean = 4; - */ - public Builder clearBoolean() { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> datetimeBuilder_; - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public boolean hasDatetime() { - return valueCase_ == 5; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.Timestamp getDatetime() { - if (datetimeBuilder_ == null) { - if (valueCase_ == 5) { - return (com.google.protobuf.Timestamp) value_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return datetimeBuilder_.getMessage(); - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public Builder setDatetime(com.google.protobuf.Timestamp value) { - if (datetimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - datetimeBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public Builder setDatetime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (datetimeBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - datetimeBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 5; - return this; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public Builder mergeDatetime(com.google.protobuf.Timestamp value) { - if (datetimeBuilder_ == null) { - if (valueCase_ == 5 && - value_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - value_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - datetimeBuilder_.mergeFrom(value); - } - datetimeBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public Builder clearDatetime() { - if (datetimeBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - datetimeBuilder_.clear(); - } - return this; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.Timestamp.Builder getDatetimeBuilder() { - return getDatetimeFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { - if ((valueCase_ == 5) && (datetimeBuilder_ != null)) { - return datetimeBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (com.google.protobuf.Timestamp) value_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDatetimeFieldBuilder() { - if (datetimeBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - datetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 5; - onChanged();; - return datetimeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; - /** - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return valueCase_ == 6; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - if (valueCase_ == 6) { - return (com.google.protobuf.Duration) value_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } else { - if (valueCase_ == 6) { - return durationBuilder_.getMessage(); - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 6; - return this; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (valueCase_ == 6 && - value_ != com.google.protobuf.Duration.getDefaultInstance()) { - value_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 6) { - durationBuilder_.mergeFrom(value); - } - durationBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - } - durationBuilder_.clear(); - } - return this; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - return getDurationFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if ((valueCase_ == 6) && (durationBuilder_ != null)) { - return durationBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 6) { - return (com.google.protobuf.Duration) value_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - * .google.protobuf.Duration duration = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - if (!(valueCase_ == 6)) { - value_ = com.google.protobuf.Duration.getDefaultInstance(); - } - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 6; - onChanged();; - return durationBuilder_; - } - @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:flyteidl.core.Primitive) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Primitive) - private static final flyteidl.core.Literals.Primitive DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Primitive(); - } - - public static flyteidl.core.Literals.Primitive getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Primitive parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Primitive(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 flyteidl.core.Literals.Primitive getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface VoidOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Void) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
-   * undefined since it can be assigned to a scalar of any LiteralType.
-   * 
- * - * Protobuf type {@code flyteidl.core.Void} - */ - public static final class Void extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Void) - VoidOrBuilder { - private static final long serialVersionUID = 0L; - // Use Void.newBuilder() to construct. - private Void(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Void() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Void( - 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; - 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 flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.core.Literals.Void)) { - return super.equals(obj); - } - flyteidl.core.Literals.Void other = (flyteidl.core.Literals.Void) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Void parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Void parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Void parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Void parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Void parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Void parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Void parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Void 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 flyteidl.core.Literals.Void parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Void 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 flyteidl.core.Literals.Void parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Void 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(flyteidl.core.Literals.Void 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; - } - /** - *
-     * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
-     * undefined since it can be assigned to a scalar of any LiteralType.
-     * 
- * - * Protobuf type {@code flyteidl.core.Void} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Void) - flyteidl.core.Literals.VoidOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); - } - - // Construct using flyteidl.core.Literals.Void.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Void getDefaultInstanceForType() { - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Void build() { - flyteidl.core.Literals.Void result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Void buildPartial() { - flyteidl.core.Literals.Void result = new flyteidl.core.Literals.Void(this); - 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 flyteidl.core.Literals.Void) { - return mergeFrom((flyteidl.core.Literals.Void)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Void other) { - if (other == flyteidl.core.Literals.Void.getDefaultInstance()) return this; - 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 { - flyteidl.core.Literals.Void parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Void) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.core.Void) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Void) - private static final flyteidl.core.Literals.Void DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Void(); - } - - public static flyteidl.core.Literals.Void getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Void parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Void(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 flyteidl.core.Literals.Void getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BlobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Blob) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - boolean hasMetadata(); - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - flyteidl.core.Literals.BlobMetadata getMetadata(); - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder(); - - /** - * string uri = 3; - */ - java.lang.String getUri(); - /** - * string uri = 3; - */ - com.google.protobuf.ByteString - getUriBytes(); - } - /** - *
-   * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
-   * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
-   * 
- * - * Protobuf type {@code flyteidl.core.Blob} - */ - public static final class Blob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Blob) - BlobOrBuilder { - private static final long serialVersionUID = 0L; - // Use Blob.newBuilder() to construct. - private Blob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Blob() { - uri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Blob( - 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: { - flyteidl.core.Literals.BlobMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Literals.BlobMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - uri_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); - } - - public static final int METADATA_FIELD_NUMBER = 1; - private flyteidl.core.Literals.BlobMetadata metadata_; - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int URI_FIELD_NUMBER = 3; - private volatile java.lang.Object uri_; - /** - * string uri = 3; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - 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(); - uri_ = s; - return s; - } - } - /** - * string uri = 3; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = 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 (metadata_ != null) { - output.writeMessage(1, getMetadata()); - } - if (!getUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMetadata()); - } - if (!getUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); - } - 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 flyteidl.core.Literals.Blob)) { - return super.equals(obj); - } - flyteidl.core.Literals.Blob other = (flyteidl.core.Literals.Blob) obj; - - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!getUri() - .equals(other.getUri())) 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 (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Blob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Blob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Blob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Blob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Blob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Blob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Blob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Blob 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 flyteidl.core.Literals.Blob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Blob 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 flyteidl.core.Literals.Blob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Blob 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(flyteidl.core.Literals.Blob 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; - } - /** - *
-     * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
-     * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
-     * 
- * - * Protobuf type {@code flyteidl.core.Blob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Blob) - flyteidl.core.Literals.BlobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); - } - - // Construct using flyteidl.core.Literals.Blob.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 (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - uri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Blob getDefaultInstanceForType() { - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Blob build() { - flyteidl.core.Literals.Blob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Blob buildPartial() { - flyteidl.core.Literals.Blob result = new flyteidl.core.Literals.Blob(this); - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.uri_ = uri_; - 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 flyteidl.core.Literals.Blob) { - return mergeFrom((flyteidl.core.Literals.Blob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Blob other) { - if (other == flyteidl.core.Literals.Blob.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - 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 { - flyteidl.core.Literals.Blob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Blob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Literals.BlobMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> metadataBuilder_; - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public Builder setMetadata(flyteidl.core.Literals.BlobMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public Builder setMetadata( - flyteidl.core.Literals.BlobMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public Builder mergeMetadata(flyteidl.core.Literals.BlobMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Literals.BlobMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; - } - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private java.lang.Object uri_ = ""; - /** - * string uri = 3; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uri = 3; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uri = 3; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * string uri = 3; - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * string uri = 3; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = 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:flyteidl.core.Blob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Blob) - private static final flyteidl.core.Literals.Blob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Blob(); - } - - public static flyteidl.core.Literals.Blob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Blob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Blob(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 flyteidl.core.Literals.Blob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BlobMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.BlobType type = 1; - */ - boolean hasType(); - /** - * .flyteidl.core.BlobType type = 1; - */ - flyteidl.core.Types.BlobType getType(); - /** - * .flyteidl.core.BlobType type = 1; - */ - flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.core.BlobMetadata} - */ - public static final class BlobMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BlobMetadata) - BlobMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlobMetadata.newBuilder() to construct. - private BlobMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlobMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlobMetadata( - 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: { - flyteidl.core.Types.BlobType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private flyteidl.core.Types.BlobType type_; - /** - * .flyteidl.core.BlobType type = 1; - */ - public boolean hasType() { - return type_ != null; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobType getType() { - return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - 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 (type_ != null) { - output.writeMessage(1, getType()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getType()); - } - 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 flyteidl.core.Literals.BlobMetadata)) { - return super.equals(obj); - } - flyteidl.core.Literals.BlobMetadata other = (flyteidl.core.Literals.BlobMetadata) obj; - - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) 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 (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.BlobMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BlobMetadata 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 flyteidl.core.Literals.BlobMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BlobMetadata 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 flyteidl.core.Literals.BlobMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BlobMetadata 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(flyteidl.core.Literals.BlobMetadata 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 flyteidl.core.BlobMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobMetadata) - flyteidl.core.Literals.BlobMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); - } - - // Construct using flyteidl.core.Literals.BlobMetadata.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 (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.BlobMetadata getDefaultInstanceForType() { - return flyteidl.core.Literals.BlobMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.BlobMetadata build() { - flyteidl.core.Literals.BlobMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.BlobMetadata buildPartial() { - flyteidl.core.Literals.BlobMetadata result = new flyteidl.core.Literals.BlobMetadata(this); - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.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 flyteidl.core.Literals.BlobMetadata) { - return mergeFrom((flyteidl.core.Literals.BlobMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.BlobMetadata other) { - if (other == flyteidl.core.Literals.BlobMetadata.getDefaultInstance()) return this; - if (other.hasType()) { - mergeType(other.getType()); - } - 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 { - flyteidl.core.Literals.BlobMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.BlobMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Types.BlobType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> typeBuilder_; - /** - * .flyteidl.core.BlobType type = 1; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public Builder setType(flyteidl.core.Types.BlobType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public Builder setType( - flyteidl.core.Types.BlobType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public Builder mergeType(flyteidl.core.Types.BlobType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.BlobType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.BlobType.getDefaultInstance() : type_; - } - } - /** - * .flyteidl.core.BlobType type = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - @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:flyteidl.core.BlobMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BlobMetadata) - private static final flyteidl.core.Literals.BlobMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.BlobMetadata(); - } - - public static flyteidl.core.Literals.BlobMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlobMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlobMetadata(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 flyteidl.core.Literals.BlobMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BinaryOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Binary) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes value = 1; - */ - com.google.protobuf.ByteString getValue(); - - /** - * string tag = 2; - */ - java.lang.String getTag(); - /** - * string tag = 2; - */ - com.google.protobuf.ByteString - getTagBytes(); - } - /** - *
-   * A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
-   * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
-   * 
- * - * Protobuf type {@code flyteidl.core.Binary} - */ - public static final class Binary extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Binary) - BinaryOrBuilder { - private static final long serialVersionUID = 0L; - // Use Binary.newBuilder() to construct. - private Binary(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Binary() { - value_ = com.google.protobuf.ByteString.EMPTY; - tag_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Binary( - 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: { - - value_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - tag_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 1; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - public static final int TAG_FIELD_NUMBER = 2; - private volatile java.lang.Object tag_; - /** - * string tag = 2; - */ - public java.lang.String getTag() { - java.lang.Object ref = tag_; - 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(); - tag_ = s; - return s; - } - } - /** - * string tag = 2; - */ - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tag_ = 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 (!value_.isEmpty()) { - output.writeBytes(1, value_); - } - if (!getTagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, value_); - } - if (!getTagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); - } - 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 flyteidl.core.Literals.Binary)) { - return super.equals(obj); - } - flyteidl.core.Literals.Binary other = (flyteidl.core.Literals.Binary) obj; - - if (!getValue() - .equals(other.getValue())) return false; - if (!getTag() - .equals(other.getTag())) 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) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Binary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binary parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binary parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binary parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binary 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 flyteidl.core.Literals.Binary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binary 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 flyteidl.core.Literals.Binary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binary 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(flyteidl.core.Literals.Binary 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 simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
-     * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
-     * 
- * - * Protobuf type {@code flyteidl.core.Binary} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Binary) - flyteidl.core.Literals.BinaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); - } - - // Construct using flyteidl.core.Literals.Binary.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(); - value_ = com.google.protobuf.ByteString.EMPTY; - - tag_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Binary getDefaultInstanceForType() { - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Binary build() { - flyteidl.core.Literals.Binary result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Binary buildPartial() { - flyteidl.core.Literals.Binary result = new flyteidl.core.Literals.Binary(this); - result.value_ = value_; - result.tag_ = tag_; - 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 flyteidl.core.Literals.Binary) { - return mergeFrom((flyteidl.core.Literals.Binary)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Binary other) { - if (other == flyteidl.core.Literals.Binary.getDefaultInstance()) return this; - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (!other.getTag().isEmpty()) { - tag_ = other.tag_; - 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 { - flyteidl.core.Literals.Binary parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Binary) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 1; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 1; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 1; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private java.lang.Object tag_ = ""; - /** - * string tag = 2; - */ - public java.lang.String getTag() { - java.lang.Object ref = tag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tag = 2; - */ - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tag = 2; - */ - public Builder setTag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tag_ = value; - onChanged(); - return this; - } - /** - * string tag = 2; - */ - public Builder clearTag() { - - tag_ = getDefaultInstance().getTag(); - onChanged(); - return this; - } - /** - * string tag = 2; - */ - public Builder setTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tag_ = 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:flyteidl.core.Binary) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Binary) - private static final flyteidl.core.Literals.Binary DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Binary(); - } - - public static flyteidl.core.Literals.Binary getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Binary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Binary(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 flyteidl.core.Literals.Binary getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SchemaOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Schema) - com.google.protobuf.MessageOrBuilder { - - /** - * string uri = 1; - */ - java.lang.String getUri(); - /** - * string uri = 1; - */ - com.google.protobuf.ByteString - getUriBytes(); - - /** - * .flyteidl.core.SchemaType type = 3; - */ - boolean hasType(); - /** - * .flyteidl.core.SchemaType type = 3; - */ - flyteidl.core.Types.SchemaType getType(); - /** - * .flyteidl.core.SchemaType type = 3; - */ - flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder(); - } - /** - *
-   * A strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
-   * 
- * - * Protobuf type {@code flyteidl.core.Schema} - */ - public static final class Schema extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Schema) - SchemaOrBuilder { - private static final long serialVersionUID = 0L; - // Use Schema.newBuilder() to construct. - private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Schema() { - uri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Schema( - 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(); - - uri_ = s; - break; - } - case 26: { - flyteidl.core.Types.SchemaType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); - } - - public static final int URI_FIELD_NUMBER = 1; - private volatile java.lang.Object uri_; - /** - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - 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(); - uri_ = s; - return s; - } - } - /** - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 3; - private flyteidl.core.Types.SchemaType type_; - /** - * .flyteidl.core.SchemaType type = 3; - */ - public boolean hasType() { - return type_ != null; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaType getType() { - return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - 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 (!getUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); - } - if (type_ != null) { - output.writeMessage(3, getType()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); - } - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getType()); - } - 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 flyteidl.core.Literals.Schema)) { - return super.equals(obj); - } - flyteidl.core.Literals.Schema other = (flyteidl.core.Literals.Schema) obj; - - if (!getUri() - .equals(other.getUri())) return false; - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) 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) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Schema parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Schema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Schema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Schema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Schema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Schema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Schema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Schema 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 flyteidl.core.Literals.Schema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Schema 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 flyteidl.core.Literals.Schema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Schema 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(flyteidl.core.Literals.Schema 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 strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
-     * 
- * - * Protobuf type {@code flyteidl.core.Schema} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Schema) - flyteidl.core.Literals.SchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); - } - - // Construct using flyteidl.core.Literals.Schema.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(); - uri_ = ""; - - if (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Schema getDefaultInstanceForType() { - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Schema build() { - flyteidl.core.Literals.Schema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Schema buildPartial() { - flyteidl.core.Literals.Schema result = new flyteidl.core.Literals.Schema(this); - result.uri_ = uri_; - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.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 flyteidl.core.Literals.Schema) { - return mergeFrom((flyteidl.core.Literals.Schema)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Schema other) { - if (other == flyteidl.core.Literals.Schema.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - onChanged(); - } - if (other.hasType()) { - mergeType(other.getType()); - } - 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 { - flyteidl.core.Literals.Schema parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Schema) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object uri_ = ""; - /** - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uri = 1; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * string uri = 1; - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * string uri = 1; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Types.SchemaType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> typeBuilder_; - /** - * .flyteidl.core.SchemaType type = 3; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public Builder setType(flyteidl.core.Types.SchemaType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public Builder setType( - flyteidl.core.Types.SchemaType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public Builder mergeType(flyteidl.core.Types.SchemaType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.SchemaType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; - } - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - @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:flyteidl.core.Schema) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Schema) - private static final flyteidl.core.Literals.Schema DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Schema(); - } - - public static flyteidl.core.Literals.Schema getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schema(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 flyteidl.core.Literals.Schema getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ScalarOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Scalar) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.Primitive primitive = 1; - */ - boolean hasPrimitive(); - /** - * .flyteidl.core.Primitive primitive = 1; - */ - flyteidl.core.Literals.Primitive getPrimitive(); - /** - * .flyteidl.core.Primitive primitive = 1; - */ - flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); - - /** - * .flyteidl.core.Blob blob = 2; - */ - boolean hasBlob(); - /** - * .flyteidl.core.Blob blob = 2; - */ - flyteidl.core.Literals.Blob getBlob(); - /** - * .flyteidl.core.Blob blob = 2; - */ - flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder(); - - /** - * .flyteidl.core.Binary binary = 3; - */ - boolean hasBinary(); - /** - * .flyteidl.core.Binary binary = 3; - */ - flyteidl.core.Literals.Binary getBinary(); - /** - * .flyteidl.core.Binary binary = 3; - */ - flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder(); - - /** - * .flyteidl.core.Schema schema = 4; - */ - boolean hasSchema(); - /** - * .flyteidl.core.Schema schema = 4; - */ - flyteidl.core.Literals.Schema getSchema(); - /** - * .flyteidl.core.Schema schema = 4; - */ - flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder(); - - /** - * .flyteidl.core.Void none_type = 5; - */ - boolean hasNoneType(); - /** - * .flyteidl.core.Void none_type = 5; - */ - flyteidl.core.Literals.Void getNoneType(); - /** - * .flyteidl.core.Void none_type = 5; - */ - flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder(); - - /** - * .flyteidl.core.Error error = 6; - */ - boolean hasError(); - /** - * .flyteidl.core.Error error = 6; - */ - flyteidl.core.Types.Error getError(); - /** - * .flyteidl.core.Error error = 6; - */ - flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); - - /** - * .google.protobuf.Struct generic = 7; - */ - boolean hasGeneric(); - /** - * .google.protobuf.Struct generic = 7; - */ - com.google.protobuf.Struct getGeneric(); - /** - * .google.protobuf.Struct generic = 7; - */ - com.google.protobuf.StructOrBuilder getGenericOrBuilder(); - - public flyteidl.core.Literals.Scalar.ValueCase getValueCase(); - } - /** - * Protobuf type {@code flyteidl.core.Scalar} - */ - public static final class Scalar extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Scalar) - ScalarOrBuilder { - private static final long serialVersionUID = 0L; - // Use Scalar.newBuilder() to construct. - private Scalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Scalar() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Scalar( - 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: { - flyteidl.core.Literals.Primitive.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.Primitive) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - flyteidl.core.Literals.Blob.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((flyteidl.core.Literals.Blob) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Blob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Blob) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - flyteidl.core.Literals.Binary.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((flyteidl.core.Literals.Binary) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Binary.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Binary) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - flyteidl.core.Literals.Schema.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((flyteidl.core.Literals.Schema) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Schema.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Schema) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - case 42: { - flyteidl.core.Literals.Void.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((flyteidl.core.Literals.Void) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Void.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Void) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - case 50: { - flyteidl.core.Types.Error.Builder subBuilder = null; - if (valueCase_ == 6) { - subBuilder = ((flyteidl.core.Types.Error) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.Error) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 6; - break; - } - case 58: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (valueCase_ == 7) { - subBuilder = ((com.google.protobuf.Struct) value_).toBuilder(); - } - value_ = - input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Struct) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 7; - 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 flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - PRIMITIVE(1), - BLOB(2), - BINARY(3), - SCHEMA(4), - NONE_TYPE(5), - ERROR(6), - GENERIC(7), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return PRIMITIVE; - case 2: return BLOB; - case 3: return BINARY; - case 4: return SCHEMA; - case 5: return NONE_TYPE; - case 6: return ERROR; - case 7: return GENERIC; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int PRIMITIVE_FIELD_NUMBER = 1; - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public boolean hasPrimitive() { - return valueCase_ == 1; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive getPrimitive() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Primitive) value_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Primitive) value_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - - public static final int BLOB_FIELD_NUMBER = 2; - /** - * .flyteidl.core.Blob blob = 2; - */ - public boolean hasBlob() { - return valueCase_ == 2; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.Blob getBlob() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.Blob) value_; - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.Blob) value_; - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - - public static final int BINARY_FIELD_NUMBER = 3; - /** - * .flyteidl.core.Binary binary = 3; - */ - public boolean hasBinary() { - return valueCase_ == 3; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.Binary getBinary() { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.Binary) value_; - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.Binary) value_; - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - - public static final int SCHEMA_FIELD_NUMBER = 4; - /** - * .flyteidl.core.Schema schema = 4; - */ - public boolean hasSchema() { - return valueCase_ == 4; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.Schema getSchema() { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.Schema) value_; - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.Schema) value_; - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - - public static final int NONE_TYPE_FIELD_NUMBER = 5; - /** - * .flyteidl.core.Void none_type = 5; - */ - public boolean hasNoneType() { - return valueCase_ == 5; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.Void getNoneType() { - if (valueCase_ == 5) { - return (flyteidl.core.Literals.Void) value_; - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { - if (valueCase_ == 5) { - return (flyteidl.core.Literals.Void) value_; - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - - public static final int ERROR_FIELD_NUMBER = 6; - /** - * .flyteidl.core.Error error = 6; - */ - public boolean hasError() { - return valueCase_ == 6; - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.Error getError() { - if (valueCase_ == 6) { - return (flyteidl.core.Types.Error) value_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { - if (valueCase_ == 6) { - return (flyteidl.core.Types.Error) value_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - - public static final int GENERIC_FIELD_NUMBER = 7; - /** - * .google.protobuf.Struct generic = 7; - */ - public boolean hasGeneric() { - return valueCase_ == 7; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.Struct getGeneric() { - if (valueCase_ == 7) { - return (com.google.protobuf.Struct) value_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { - if (valueCase_ == 7) { - return (com.google.protobuf.Struct) value_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.Primitive) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Literals.Blob) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Literals.Binary) value_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (flyteidl.core.Literals.Schema) value_); - } - if (valueCase_ == 5) { - output.writeMessage(5, (flyteidl.core.Literals.Void) value_); - } - if (valueCase_ == 6) { - output.writeMessage(6, (flyteidl.core.Types.Error) value_); - } - if (valueCase_ == 7) { - output.writeMessage(7, (com.google.protobuf.Struct) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.Primitive) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Literals.Blob) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Literals.Binary) value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.Literals.Schema) value_); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.core.Literals.Void) value_); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (flyteidl.core.Types.Error) value_); - } - if (valueCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.protobuf.Struct) 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 flyteidl.core.Literals.Scalar)) { - return super.equals(obj); - } - flyteidl.core.Literals.Scalar other = (flyteidl.core.Literals.Scalar) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getPrimitive() - .equals(other.getPrimitive())) return false; - break; - case 2: - if (!getBlob() - .equals(other.getBlob())) return false; - break; - case 3: - if (!getBinary() - .equals(other.getBinary())) return false; - break; - case 4: - if (!getSchema() - .equals(other.getSchema())) return false; - break; - case 5: - if (!getNoneType() - .equals(other.getNoneType())) return false; - break; - case 6: - if (!getError() - .equals(other.getError())) return false; - break; - case 7: - if (!getGeneric() - .equals(other.getGeneric())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; - hash = (53 * hash) + getPrimitive().hashCode(); - break; - case 2: - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); - break; - case 3: - hash = (37 * hash) + BINARY_FIELD_NUMBER; - hash = (53 * hash) + getBinary().hashCode(); - break; - case 4: - hash = (37 * hash) + SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSchema().hashCode(); - break; - case 5: - hash = (37 * hash) + NONE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getNoneType().hashCode(); - break; - case 6: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 7: - hash = (37 * hash) + GENERIC_FIELD_NUMBER; - hash = (53 * hash) + getGeneric().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Scalar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Scalar parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Scalar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Scalar parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Scalar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Scalar parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Scalar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Scalar 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 flyteidl.core.Literals.Scalar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Scalar 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 flyteidl.core.Literals.Scalar parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Scalar 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(flyteidl.core.Literals.Scalar 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 flyteidl.core.Scalar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Scalar) - flyteidl.core.Literals.ScalarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); - } - - // Construct using flyteidl.core.Literals.Scalar.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(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Scalar getDefaultInstanceForType() { - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Scalar build() { - flyteidl.core.Literals.Scalar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Scalar buildPartial() { - flyteidl.core.Literals.Scalar result = new flyteidl.core.Literals.Scalar(this); - if (valueCase_ == 1) { - if (primitiveBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = primitiveBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (blobBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = blobBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (binaryBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = binaryBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (schemaBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = schemaBuilder_.build(); - } - } - if (valueCase_ == 5) { - if (noneTypeBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = noneTypeBuilder_.build(); - } - } - if (valueCase_ == 6) { - if (errorBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = errorBuilder_.build(); - } - } - if (valueCase_ == 7) { - if (genericBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = genericBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - 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 flyteidl.core.Literals.Scalar) { - return mergeFrom((flyteidl.core.Literals.Scalar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Scalar other) { - if (other == flyteidl.core.Literals.Scalar.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case PRIMITIVE: { - mergePrimitive(other.getPrimitive()); - break; - } - case BLOB: { - mergeBlob(other.getBlob()); - break; - } - case BINARY: { - mergeBinary(other.getBinary()); - break; - } - case SCHEMA: { - mergeSchema(other.getSchema()); - break; - } - case NONE_TYPE: { - mergeNoneType(other.getNoneType()); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case GENERIC: { - mergeGeneric(other.getGeneric()); - break; - } - case VALUE_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 { - flyteidl.core.Literals.Scalar parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Scalar) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public boolean hasPrimitive() { - return valueCase_ == 1; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive getPrimitive() { - if (primitiveBuilder_ == null) { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Primitive) value_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return primitiveBuilder_.getMessage(); - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { - if (primitiveBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - primitiveBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder setPrimitive( - flyteidl.core.Literals.Primitive.Builder builderForValue) { - if (primitiveBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - primitiveBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { - if (primitiveBuilder_ == null) { - if (valueCase_ == 1 && - value_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - primitiveBuilder_.mergeFrom(value); - } - primitiveBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder clearPrimitive() { - if (primitiveBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - primitiveBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { - return getPrimitiveFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { - if ((valueCase_ == 1) && (primitiveBuilder_ != null)) { - return primitiveBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Primitive) value_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> - getPrimitiveFieldBuilder() { - if (primitiveBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( - (flyteidl.core.Literals.Primitive) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return primitiveBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> blobBuilder_; - /** - * .flyteidl.core.Blob blob = 2; - */ - public boolean hasBlob() { - return valueCase_ == 2; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.Blob getBlob() { - if (blobBuilder_ == null) { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.Blob) value_; - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return blobBuilder_.getMessage(); - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public Builder setBlob(flyteidl.core.Literals.Blob value) { - if (blobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - blobBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public Builder setBlob( - flyteidl.core.Literals.Blob.Builder builderForValue) { - if (blobBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - blobBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public Builder mergeBlob(flyteidl.core.Literals.Blob value) { - if (blobBuilder_ == null) { - if (valueCase_ == 2 && - value_ != flyteidl.core.Literals.Blob.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Blob.newBuilder((flyteidl.core.Literals.Blob) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - blobBuilder_.mergeFrom(value); - } - blobBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public Builder clearBlob() { - if (blobBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - blobBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.Blob.Builder getBlobBuilder() { - return getBlobFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { - if ((valueCase_ == 2) && (blobBuilder_ != null)) { - return blobBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.Blob) value_; - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Blob blob = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> - getBlobFieldBuilder() { - if (blobBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = flyteidl.core.Literals.Blob.getDefaultInstance(); - } - blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder>( - (flyteidl.core.Literals.Blob) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return blobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> binaryBuilder_; - /** - * .flyteidl.core.Binary binary = 3; - */ - public boolean hasBinary() { - return valueCase_ == 3; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.Binary getBinary() { - if (binaryBuilder_ == null) { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.Binary) value_; - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return binaryBuilder_.getMessage(); - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public Builder setBinary(flyteidl.core.Literals.Binary value) { - if (binaryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - binaryBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public Builder setBinary( - flyteidl.core.Literals.Binary.Builder builderForValue) { - if (binaryBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - binaryBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public Builder mergeBinary(flyteidl.core.Literals.Binary value) { - if (binaryBuilder_ == null) { - if (valueCase_ == 3 && - value_ != flyteidl.core.Literals.Binary.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Binary.newBuilder((flyteidl.core.Literals.Binary) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - binaryBuilder_.mergeFrom(value); - } - binaryBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public Builder clearBinary() { - if (binaryBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - binaryBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.Binary.Builder getBinaryBuilder() { - return getBinaryFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { - if ((valueCase_ == 3) && (binaryBuilder_ != null)) { - return binaryBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.Binary) value_; - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Binary binary = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> - getBinaryFieldBuilder() { - if (binaryBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = flyteidl.core.Literals.Binary.getDefaultInstance(); - } - binaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder>( - (flyteidl.core.Literals.Binary) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return binaryBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> schemaBuilder_; - /** - * .flyteidl.core.Schema schema = 4; - */ - public boolean hasSchema() { - return valueCase_ == 4; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.Schema getSchema() { - if (schemaBuilder_ == null) { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.Schema) value_; - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return schemaBuilder_.getMessage(); - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public Builder setSchema(flyteidl.core.Literals.Schema value) { - if (schemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - schemaBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public Builder setSchema( - flyteidl.core.Literals.Schema.Builder builderForValue) { - if (schemaBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - schemaBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 4; - return this; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public Builder mergeSchema(flyteidl.core.Literals.Schema value) { - if (schemaBuilder_ == null) { - if (valueCase_ == 4 && - value_ != flyteidl.core.Literals.Schema.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Schema.newBuilder((flyteidl.core.Literals.Schema) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - schemaBuilder_.mergeFrom(value); - } - schemaBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public Builder clearSchema() { - if (schemaBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - schemaBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.Schema.Builder getSchemaBuilder() { - return getSchemaFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { - if ((valueCase_ == 4) && (schemaBuilder_ != null)) { - return schemaBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.Schema) value_; - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Schema schema = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> - getSchemaFieldBuilder() { - if (schemaBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = flyteidl.core.Literals.Schema.getDefaultInstance(); - } - schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder>( - (flyteidl.core.Literals.Schema) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 4; - onChanged();; - return schemaBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> noneTypeBuilder_; - /** - * .flyteidl.core.Void none_type = 5; - */ - public boolean hasNoneType() { - return valueCase_ == 5; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.Void getNoneType() { - if (noneTypeBuilder_ == null) { - if (valueCase_ == 5) { - return (flyteidl.core.Literals.Void) value_; - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return noneTypeBuilder_.getMessage(); - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public Builder setNoneType(flyteidl.core.Literals.Void value) { - if (noneTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - noneTypeBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public Builder setNoneType( - flyteidl.core.Literals.Void.Builder builderForValue) { - if (noneTypeBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - noneTypeBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 5; - return this; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public Builder mergeNoneType(flyteidl.core.Literals.Void value) { - if (noneTypeBuilder_ == null) { - if (valueCase_ == 5 && - value_ != flyteidl.core.Literals.Void.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Void.newBuilder((flyteidl.core.Literals.Void) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - noneTypeBuilder_.mergeFrom(value); - } - noneTypeBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public Builder clearNoneType() { - if (noneTypeBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - noneTypeBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.Void.Builder getNoneTypeBuilder() { - return getNoneTypeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { - if ((valueCase_ == 5) && (noneTypeBuilder_ != null)) { - return noneTypeBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (flyteidl.core.Literals.Void) value_; - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Void none_type = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> - getNoneTypeFieldBuilder() { - if (noneTypeBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = flyteidl.core.Literals.Void.getDefaultInstance(); - } - noneTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder>( - (flyteidl.core.Literals.Void) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 5; - onChanged();; - return noneTypeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; - /** - * .flyteidl.core.Error error = 6; - */ - public boolean hasError() { - return valueCase_ == 6; - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.Error getError() { - if (errorBuilder_ == null) { - if (valueCase_ == 6) { - return (flyteidl.core.Types.Error) value_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } else { - if (valueCase_ == 6) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Error error = 6; - */ - public Builder setError(flyteidl.core.Types.Error value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .flyteidl.core.Error error = 6; - */ - public Builder setError( - flyteidl.core.Types.Error.Builder builderForValue) { - if (errorBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 6; - return this; - } - /** - * .flyteidl.core.Error error = 6; - */ - public Builder mergeError(flyteidl.core.Types.Error value) { - if (errorBuilder_ == null) { - if (valueCase_ == 6 && - value_ != flyteidl.core.Types.Error.getDefaultInstance()) { - value_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 6) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .flyteidl.core.Error error = 6; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.Error.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { - if ((valueCase_ == 6) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 6) { - return (flyteidl.core.Types.Error) value_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Error error = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(valueCase_ == 6)) { - value_ = flyteidl.core.Types.Error.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( - (flyteidl.core.Types.Error) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 6; - onChanged();; - return errorBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> genericBuilder_; - /** - * .google.protobuf.Struct generic = 7; - */ - public boolean hasGeneric() { - return valueCase_ == 7; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.Struct getGeneric() { - if (genericBuilder_ == null) { - if (valueCase_ == 7) { - return (com.google.protobuf.Struct) value_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } else { - if (valueCase_ == 7) { - return genericBuilder_.getMessage(); - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - } - /** - * .google.protobuf.Struct generic = 7; - */ - public Builder setGeneric(com.google.protobuf.Struct value) { - if (genericBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - genericBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public Builder setGeneric( - com.google.protobuf.Struct.Builder builderForValue) { - if (genericBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - genericBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 7; - return this; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public Builder mergeGeneric(com.google.protobuf.Struct value) { - if (genericBuilder_ == null) { - if (valueCase_ == 7 && - value_ != com.google.protobuf.Struct.getDefaultInstance()) { - value_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 7) { - genericBuilder_.mergeFrom(value); - } - genericBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public Builder clearGeneric() { - if (genericBuilder_ == null) { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - } - genericBuilder_.clear(); - } - return this; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.Struct.Builder getGenericBuilder() { - return getGenericFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { - if ((valueCase_ == 7) && (genericBuilder_ != null)) { - return genericBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 7) { - return (com.google.protobuf.Struct) value_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - } - /** - * .google.protobuf.Struct generic = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getGenericFieldBuilder() { - if (genericBuilder_ == null) { - if (!(valueCase_ == 7)) { - value_ = com.google.protobuf.Struct.getDefaultInstance(); - } - genericBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - (com.google.protobuf.Struct) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 7; - onChanged();; - return genericBuilder_; - } - @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:flyteidl.core.Scalar) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Scalar) - private static final flyteidl.core.Literals.Scalar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Scalar(); - } - - public static flyteidl.core.Literals.Scalar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Scalar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Scalar(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 flyteidl.core.Literals.Scalar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Literal) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - boolean hasScalar(); - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - flyteidl.core.Literals.Scalar getScalar(); - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); - - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - boolean hasCollection(); - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - flyteidl.core.Literals.LiteralCollection getCollection(); - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder(); - - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - boolean hasMap(); - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - flyteidl.core.Literals.LiteralMap getMap(); - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder(); - - public flyteidl.core.Literals.Literal.ValueCase getValueCase(); - } - /** - *
-   * A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
-   * 
- * - * Protobuf type {@code flyteidl.core.Literal} - */ - public static final class Literal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Literal) - LiteralOrBuilder { - private static final long serialVersionUID = 0L; - // Use Literal.newBuilder() to construct. - private Literal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Literal() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Literal( - 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: { - flyteidl.core.Literals.Scalar.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - flyteidl.core.Literals.LiteralCollection.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((flyteidl.core.Literals.LiteralCollection) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.LiteralCollection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralCollection) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - SCALAR(1), - COLLECTION(2), - MAP(3), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return SCALAR; - case 2: return COLLECTION; - case 3: return MAP; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int SCALAR_FIELD_NUMBER = 1; - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public boolean hasScalar() { - return valueCase_ == 1; - } - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - - public static final int COLLECTION_FIELD_NUMBER = 2; - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public boolean hasCollection() { - return valueCase_ == 2; - } - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollection getCollection() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.LiteralCollection) value_; - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.LiteralCollection) value_; - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - - public static final int MAP_FIELD_NUMBER = 3; - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public boolean hasMap() { - return valueCase_ == 3; - } - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMap getMap() { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.LiteralMap) value_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.LiteralMap) value_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Literals.LiteralCollection) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Literals.LiteralMap) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Literals.LiteralCollection) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Literals.LiteralMap) 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 flyteidl.core.Literals.Literal)) { - return super.equals(obj); - } - flyteidl.core.Literals.Literal other = (flyteidl.core.Literals.Literal) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getScalar() - .equals(other.getScalar())) return false; - break; - case 2: - if (!getCollection() - .equals(other.getCollection())) return false; - break; - case 3: - if (!getMap() - .equals(other.getMap())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + SCALAR_FIELD_NUMBER; - hash = (53 * hash) + getScalar().hashCode(); - break; - case 2: - hash = (37 * hash) + COLLECTION_FIELD_NUMBER; - hash = (53 * hash) + getCollection().hashCode(); - break; - case 3: - hash = (37 * hash) + MAP_FIELD_NUMBER; - hash = (53 * hash) + getMap().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Literal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Literal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Literal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Literal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Literal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Literal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Literal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Literal 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 flyteidl.core.Literals.Literal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Literal 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 flyteidl.core.Literals.Literal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Literal 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(flyteidl.core.Literals.Literal 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 simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
-     * 
- * - * Protobuf type {@code flyteidl.core.Literal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Literal) - flyteidl.core.Literals.LiteralOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); - } - - // Construct using flyteidl.core.Literals.Literal.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(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Literal getDefaultInstanceForType() { - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Literal build() { - flyteidl.core.Literals.Literal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Literal buildPartial() { - flyteidl.core.Literals.Literal result = new flyteidl.core.Literals.Literal(this); - if (valueCase_ == 1) { - if (scalarBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = scalarBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (collectionBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = collectionBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (mapBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = mapBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - 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 flyteidl.core.Literals.Literal) { - return mergeFrom((flyteidl.core.Literals.Literal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Literal other) { - if (other == flyteidl.core.Literals.Literal.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case SCALAR: { - mergeScalar(other.getScalar()); - break; - } - case COLLECTION: { - mergeCollection(other.getCollection()); - break; - } - case MAP: { - mergeMap(other.getMap()); - break; - } - case VALUE_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 { - flyteidl.core.Literals.Literal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Literal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public boolean hasScalar() { - return valueCase_ == 1; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (scalarBuilder_ == null) { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return scalarBuilder_.getMessage(); - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder setScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - scalarBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder setScalar( - flyteidl.core.Literals.Scalar.Builder builderForValue) { - if (scalarBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - scalarBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (valueCase_ == 1 && - value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - scalarBuilder_.mergeFrom(value); - } - scalarBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder clearScalar() { - if (scalarBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - scalarBuilder_.clear(); - } - return this; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { - return getScalarFieldBuilder().getBuilder(); - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if ((valueCase_ == 1) && (scalarBuilder_ != null)) { - return scalarBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> - getScalarFieldBuilder() { - if (scalarBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( - (flyteidl.core.Literals.Scalar) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return scalarBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> collectionBuilder_; - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public boolean hasCollection() { - return valueCase_ == 2; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollection getCollection() { - if (collectionBuilder_ == null) { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.LiteralCollection) value_; - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return collectionBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public Builder setCollection(flyteidl.core.Literals.LiteralCollection value) { - if (collectionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - collectionBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public Builder setCollection( - flyteidl.core.Literals.LiteralCollection.Builder builderForValue) { - if (collectionBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - collectionBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public Builder mergeCollection(flyteidl.core.Literals.LiteralCollection value) { - if (collectionBuilder_ == null) { - if (valueCase_ == 2 && - value_ != flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) { - value_ = flyteidl.core.Literals.LiteralCollection.newBuilder((flyteidl.core.Literals.LiteralCollection) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - collectionBuilder_.mergeFrom(value); - } - collectionBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public Builder clearCollection() { - if (collectionBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - collectionBuilder_.clear(); - } - return this; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollection.Builder getCollectionBuilder() { - return getCollectionFieldBuilder().getBuilder(); - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { - if ((valueCase_ == 2) && (collectionBuilder_ != null)) { - return collectionBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.LiteralCollection) value_; - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> - getCollectionFieldBuilder() { - if (collectionBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder>( - (flyteidl.core.Literals.LiteralCollection) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return collectionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> mapBuilder_; - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public boolean hasMap() { - return valueCase_ == 3; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMap getMap() { - if (mapBuilder_ == null) { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.LiteralMap) value_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return mapBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public Builder setMap(flyteidl.core.Literals.LiteralMap value) { - if (mapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - mapBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public Builder setMap( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (mapBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - mapBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public Builder mergeMap(flyteidl.core.Literals.LiteralMap value) { - if (mapBuilder_ == null) { - if (valueCase_ == 3 && - value_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - value_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - mapBuilder_.mergeFrom(value); - } - mapBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public Builder clearMap() { - if (mapBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - mapBuilder_.clear(); - } - return this; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMap.Builder getMapBuilder() { - return getMapFieldBuilder().getBuilder(); - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { - if ((valueCase_ == 3) && (mapBuilder_ != null)) { - return mapBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.LiteralMap) value_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getMapFieldBuilder() { - if (mapBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return mapBuilder_; - } - @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:flyteidl.core.Literal) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Literal) - private static final flyteidl.core.Literals.Literal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Literal(); - } - - public static flyteidl.core.Literals.Literal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Literal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Literal(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 flyteidl.core.Literals.Literal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralCollectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralCollection) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - java.util.List - getLiteralsList(); - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - flyteidl.core.Literals.Literal getLiterals(int index); - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - int getLiteralsCount(); - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - java.util.List - getLiteralsOrBuilderList(); - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( - int index); - } - /** - *
-   * A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
-   * 
- * - * Protobuf type {@code flyteidl.core.LiteralCollection} - */ - public static final class LiteralCollection extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralCollection) - LiteralCollectionOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiteralCollection.newBuilder() to construct. - private LiteralCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiteralCollection() { - literals_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiteralCollection( - 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)) { - literals_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - literals_.add( - input.readMessage(flyteidl.core.Literals.Literal.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)) { - literals_ = java.util.Collections.unmodifiableList(literals_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); - } - - public static final int LITERALS_FIELD_NUMBER = 1; - private java.util.List literals_; - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List getLiteralsList() { - return literals_; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List - getLiteralsOrBuilderList() { - return literals_; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public int getLiteralsCount() { - return literals_.size(); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal getLiterals(int index) { - return literals_.get(index); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( - int index) { - return literals_.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 < literals_.size(); i++) { - output.writeMessage(1, literals_.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 < literals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, literals_.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 flyteidl.core.Literals.LiteralCollection)) { - return super.equals(obj); - } - flyteidl.core.Literals.LiteralCollection other = (flyteidl.core.Literals.LiteralCollection) obj; - - if (!getLiteralsList() - .equals(other.getLiteralsList())) 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 (getLiteralsCount() > 0) { - hash = (37 * hash) + LITERALS_FIELD_NUMBER; - hash = (53 * hash) + getLiteralsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.LiteralCollection parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralCollection 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 flyteidl.core.Literals.LiteralCollection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralCollection 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 flyteidl.core.Literals.LiteralCollection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralCollection 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(flyteidl.core.Literals.LiteralCollection 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 collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
-     * 
- * - * Protobuf type {@code flyteidl.core.LiteralCollection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralCollection) - flyteidl.core.Literals.LiteralCollectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); - } - - // Construct using flyteidl.core.Literals.LiteralCollection.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLiteralsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (literalsBuilder_ == null) { - literals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - literalsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralCollection getDefaultInstanceForType() { - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralCollection build() { - flyteidl.core.Literals.LiteralCollection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralCollection buildPartial() { - flyteidl.core.Literals.LiteralCollection result = new flyteidl.core.Literals.LiteralCollection(this); - int from_bitField0_ = bitField0_; - if (literalsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - literals_ = java.util.Collections.unmodifiableList(literals_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.literals_ = literals_; - } else { - result.literals_ = literalsBuilder_.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 flyteidl.core.Literals.LiteralCollection) { - return mergeFrom((flyteidl.core.Literals.LiteralCollection)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.LiteralCollection other) { - if (other == flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) return this; - if (literalsBuilder_ == null) { - if (!other.literals_.isEmpty()) { - if (literals_.isEmpty()) { - literals_ = other.literals_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLiteralsIsMutable(); - literals_.addAll(other.literals_); - } - onChanged(); - } - } else { - if (!other.literals_.isEmpty()) { - if (literalsBuilder_.isEmpty()) { - literalsBuilder_.dispose(); - literalsBuilder_ = null; - literals_ = other.literals_; - bitField0_ = (bitField0_ & ~0x00000001); - literalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLiteralsFieldBuilder() : null; - } else { - literalsBuilder_.addAllMessages(other.literals_); - } - } - } - 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 { - flyteidl.core.Literals.LiteralCollection parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.LiteralCollection) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List literals_ = - java.util.Collections.emptyList(); - private void ensureLiteralsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - literals_ = new java.util.ArrayList(literals_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> literalsBuilder_; - - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List getLiteralsList() { - if (literalsBuilder_ == null) { - return java.util.Collections.unmodifiableList(literals_); - } else { - return literalsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public int getLiteralsCount() { - if (literalsBuilder_ == null) { - return literals_.size(); - } else { - return literalsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal getLiterals(int index) { - if (literalsBuilder_ == null) { - return literals_.get(index); - } else { - return literalsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder setLiterals( - int index, flyteidl.core.Literals.Literal value) { - if (literalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiteralsIsMutable(); - literals_.set(index, value); - onChanged(); - } else { - literalsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder setLiterals( - int index, flyteidl.core.Literals.Literal.Builder builderForValue) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - literals_.set(index, builderForValue.build()); - onChanged(); - } else { - literalsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addLiterals(flyteidl.core.Literals.Literal value) { - if (literalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiteralsIsMutable(); - literals_.add(value); - onChanged(); - } else { - literalsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addLiterals( - int index, flyteidl.core.Literals.Literal value) { - if (literalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiteralsIsMutable(); - literals_.add(index, value); - onChanged(); - } else { - literalsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addLiterals( - flyteidl.core.Literals.Literal.Builder builderForValue) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - literals_.add(builderForValue.build()); - onChanged(); - } else { - literalsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addLiterals( - int index, flyteidl.core.Literals.Literal.Builder builderForValue) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - literals_.add(index, builderForValue.build()); - onChanged(); - } else { - literalsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addAllLiterals( - java.lang.Iterable values) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, literals_); - onChanged(); - } else { - literalsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder clearLiterals() { - if (literalsBuilder_ == null) { - literals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - literalsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder removeLiterals(int index) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - literals_.remove(index); - onChanged(); - } else { - literalsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal.Builder getLiteralsBuilder( - int index) { - return getLiteralsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( - int index) { - if (literalsBuilder_ == null) { - return literals_.get(index); } else { - return literalsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List - getLiteralsOrBuilderList() { - if (literalsBuilder_ != null) { - return literalsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(literals_); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder() { - return getLiteralsFieldBuilder().addBuilder( - flyteidl.core.Literals.Literal.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder( - int index) { - return getLiteralsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.Literal.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List - getLiteralsBuilderList() { - return getLiteralsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> - getLiteralsFieldBuilder() { - if (literalsBuilder_ == null) { - literalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( - literals_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - literals_ = null; - } - return literalsBuilder_; - } - @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:flyteidl.core.LiteralCollection) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralCollection) - private static final flyteidl.core.Literals.LiteralCollection DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralCollection(); - } - - public static flyteidl.core.Literals.LiteralCollection getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiteralCollection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiteralCollection(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 flyteidl.core.Literals.LiteralCollection getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralMap) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - int getLiteralsCount(); - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - boolean containsLiterals( - java.lang.String key); - /** - * Use {@link #getLiteralsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLiterals(); - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - java.util.Map - getLiteralsMap(); - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - flyteidl.core.Literals.Literal getLiteralsOrDefault( - java.lang.String key, - flyteidl.core.Literals.Literal defaultValue); - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - flyteidl.core.Literals.Literal getLiteralsOrThrow( - java.lang.String key); - } - /** - *
-   * A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
-   * 
- * - * Protobuf type {@code flyteidl.core.LiteralMap} - */ - public static final class LiteralMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralMap) - LiteralMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiteralMap.newBuilder() to construct. - private LiteralMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiteralMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiteralMap( - 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)) { - literals_ = com.google.protobuf.MapField.newMapField( - LiteralsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - literals__ = input.readMessage( - LiteralsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - literals_.getMutableMap().put( - literals__.getKey(), literals__.getValue()); - 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 flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetLiterals(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); - } - - public static final int LITERALS_FIELD_NUMBER = 1; - private static final class LiteralsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Literals.Literal> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Literals.Literal.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Literals.Literal> literals_; - private com.google.protobuf.MapField - internalGetLiterals() { - if (literals_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LiteralsDefaultEntryHolder.defaultEntry); - } - return literals_; - } - - public int getLiteralsCount() { - return internalGetLiterals().getMap().size(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public boolean containsLiterals( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetLiterals().getMap().containsKey(key); - } - /** - * Use {@link #getLiteralsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getLiterals() { - return getLiteralsMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public java.util.Map getLiteralsMap() { - return internalGetLiterals().getMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public flyteidl.core.Literals.Literal getLiteralsOrDefault( - java.lang.String key, - flyteidl.core.Literals.Literal defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLiterals().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public flyteidl.core.Literals.Literal getLiteralsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLiterals().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLiterals(), - LiteralsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetLiterals().getMap().entrySet()) { - com.google.protobuf.MapEntry - literals__ = LiteralsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, literals__); - } - 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 flyteidl.core.Literals.LiteralMap)) { - return super.equals(obj); - } - flyteidl.core.Literals.LiteralMap other = (flyteidl.core.Literals.LiteralMap) obj; - - if (!internalGetLiterals().equals( - other.internalGetLiterals())) 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 (!internalGetLiterals().getMap().isEmpty()) { - hash = (37 * hash) + LITERALS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLiterals().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.LiteralMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralMap 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 flyteidl.core.Literals.LiteralMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralMap 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 flyteidl.core.Literals.LiteralMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralMap 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(flyteidl.core.Literals.LiteralMap 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 map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
-     * 
- * - * Protobuf type {@code flyteidl.core.LiteralMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralMap) - flyteidl.core.Literals.LiteralMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetLiterals(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableLiterals(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); - } - - // Construct using flyteidl.core.Literals.LiteralMap.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(); - internalGetMutableLiterals().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralMap getDefaultInstanceForType() { - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralMap build() { - flyteidl.core.Literals.LiteralMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralMap buildPartial() { - flyteidl.core.Literals.LiteralMap result = new flyteidl.core.Literals.LiteralMap(this); - int from_bitField0_ = bitField0_; - result.literals_ = internalGetLiterals(); - result.literals_.makeImmutable(); - 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 flyteidl.core.Literals.LiteralMap) { - return mergeFrom((flyteidl.core.Literals.LiteralMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.LiteralMap other) { - if (other == flyteidl.core.Literals.LiteralMap.getDefaultInstance()) return this; - internalGetMutableLiterals().mergeFrom( - other.internalGetLiterals()); - 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 { - flyteidl.core.Literals.LiteralMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.LiteralMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Literals.Literal> literals_; - private com.google.protobuf.MapField - internalGetLiterals() { - if (literals_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LiteralsDefaultEntryHolder.defaultEntry); - } - return literals_; - } - private com.google.protobuf.MapField - internalGetMutableLiterals() { - onChanged();; - if (literals_ == null) { - literals_ = com.google.protobuf.MapField.newMapField( - LiteralsDefaultEntryHolder.defaultEntry); - } - if (!literals_.isMutable()) { - literals_ = literals_.copy(); - } - return literals_; - } - - public int getLiteralsCount() { - return internalGetLiterals().getMap().size(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public boolean containsLiterals( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetLiterals().getMap().containsKey(key); - } - /** - * Use {@link #getLiteralsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getLiterals() { - return getLiteralsMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public java.util.Map getLiteralsMap() { - return internalGetLiterals().getMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public flyteidl.core.Literals.Literal getLiteralsOrDefault( - java.lang.String key, - flyteidl.core.Literals.Literal defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLiterals().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public flyteidl.core.Literals.Literal getLiteralsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLiterals().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLiterals() { - internalGetMutableLiterals().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public Builder removeLiterals( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLiterals().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableLiterals() { - return internalGetMutableLiterals().getMutableMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - public Builder putLiterals( - java.lang.String key, - flyteidl.core.Literals.Literal value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLiterals().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public Builder putAllLiterals( - java.util.Map values) { - internalGetMutableLiterals().getMutableMap() - .putAll(values); - 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:flyteidl.core.LiteralMap) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralMap) - private static final flyteidl.core.Literals.LiteralMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralMap(); - } - - public static flyteidl.core.Literals.LiteralMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiteralMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiteralMap(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 flyteidl.core.Literals.LiteralMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BindingDataCollectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataCollection) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - java.util.List - getBindingsList(); - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - flyteidl.core.Literals.BindingData getBindings(int index); - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - int getBindingsCount(); - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - java.util.List - getBindingsOrBuilderList(); - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( - int index); - } - /** - *
-   * A collection of BindingData items.
-   * 
- * - * Protobuf type {@code flyteidl.core.BindingDataCollection} - */ - public static final class BindingDataCollection extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataCollection) - BindingDataCollectionOrBuilder { - private static final long serialVersionUID = 0L; - // Use BindingDataCollection.newBuilder() to construct. - private BindingDataCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BindingDataCollection() { - bindings_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BindingDataCollection( - 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)) { - bindings_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - bindings_.add( - input.readMessage(flyteidl.core.Literals.BindingData.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)) { - bindings_ = java.util.Collections.unmodifiableList(bindings_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); - } - - public static final int BINDINGS_FIELD_NUMBER = 1; - private java.util.List bindings_; - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List getBindingsList() { - return bindings_; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List - getBindingsOrBuilderList() { - return bindings_; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public int getBindingsCount() { - return bindings_.size(); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData getBindings(int index) { - return bindings_.get(index); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( - int index) { - return bindings_.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 < bindings_.size(); i++) { - output.writeMessage(1, bindings_.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 < bindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, bindings_.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 flyteidl.core.Literals.BindingDataCollection)) { - return super.equals(obj); - } - flyteidl.core.Literals.BindingDataCollection other = (flyteidl.core.Literals.BindingDataCollection) obj; - - if (!getBindingsList() - .equals(other.getBindingsList())) 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 (getBindingsCount() > 0) { - hash = (37 * hash) + BINDINGS_FIELD_NUMBER; - hash = (53 * hash) + getBindingsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataCollection 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 flyteidl.core.Literals.BindingDataCollection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataCollection 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 flyteidl.core.Literals.BindingDataCollection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataCollection 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(flyteidl.core.Literals.BindingDataCollection 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 collection of BindingData items.
-     * 
- * - * Protobuf type {@code flyteidl.core.BindingDataCollection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataCollection) - flyteidl.core.Literals.BindingDataCollectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); - } - - // Construct using flyteidl.core.Literals.BindingDataCollection.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBindingsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (bindingsBuilder_ == null) { - bindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - bindingsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataCollection getDefaultInstanceForType() { - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataCollection build() { - flyteidl.core.Literals.BindingDataCollection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataCollection buildPartial() { - flyteidl.core.Literals.BindingDataCollection result = new flyteidl.core.Literals.BindingDataCollection(this); - int from_bitField0_ = bitField0_; - if (bindingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - bindings_ = java.util.Collections.unmodifiableList(bindings_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.bindings_ = bindings_; - } else { - result.bindings_ = bindingsBuilder_.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 flyteidl.core.Literals.BindingDataCollection) { - return mergeFrom((flyteidl.core.Literals.BindingDataCollection)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.BindingDataCollection other) { - if (other == flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) return this; - if (bindingsBuilder_ == null) { - if (!other.bindings_.isEmpty()) { - if (bindings_.isEmpty()) { - bindings_ = other.bindings_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBindingsIsMutable(); - bindings_.addAll(other.bindings_); - } - onChanged(); - } - } else { - if (!other.bindings_.isEmpty()) { - if (bindingsBuilder_.isEmpty()) { - bindingsBuilder_.dispose(); - bindingsBuilder_ = null; - bindings_ = other.bindings_; - bitField0_ = (bitField0_ & ~0x00000001); - bindingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBindingsFieldBuilder() : null; - } else { - bindingsBuilder_.addAllMessages(other.bindings_); - } - } - } - 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 { - flyteidl.core.Literals.BindingDataCollection parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.BindingDataCollection) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List bindings_ = - java.util.Collections.emptyList(); - private void ensureBindingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - bindings_ = new java.util.ArrayList(bindings_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingsBuilder_; - - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List getBindingsList() { - if (bindingsBuilder_ == null) { - return java.util.Collections.unmodifiableList(bindings_); - } else { - return bindingsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public int getBindingsCount() { - if (bindingsBuilder_ == null) { - return bindings_.size(); - } else { - return bindingsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData getBindings(int index) { - if (bindingsBuilder_ == null) { - return bindings_.get(index); - } else { - return bindingsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder setBindings( - int index, flyteidl.core.Literals.BindingData value) { - if (bindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBindingsIsMutable(); - bindings_.set(index, value); - onChanged(); - } else { - bindingsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder setBindings( - int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.set(index, builderForValue.build()); - onChanged(); - } else { - bindingsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addBindings(flyteidl.core.Literals.BindingData value) { - if (bindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBindingsIsMutable(); - bindings_.add(value); - onChanged(); - } else { - bindingsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addBindings( - int index, flyteidl.core.Literals.BindingData value) { - if (bindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBindingsIsMutable(); - bindings_.add(index, value); - onChanged(); - } else { - bindingsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addBindings( - flyteidl.core.Literals.BindingData.Builder builderForValue) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.add(builderForValue.build()); - onChanged(); - } else { - bindingsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addBindings( - int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.add(index, builderForValue.build()); - onChanged(); - } else { - bindingsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addAllBindings( - java.lang.Iterable values) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bindings_); - onChanged(); - } else { - bindingsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder clearBindings() { - if (bindingsBuilder_ == null) { - bindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - bindingsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder removeBindings(int index) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.remove(index); - onChanged(); - } else { - bindingsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData.Builder getBindingsBuilder( - int index) { - return getBindingsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( - int index) { - if (bindingsBuilder_ == null) { - return bindings_.get(index); } else { - return bindingsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List - getBindingsOrBuilderList() { - if (bindingsBuilder_ != null) { - return bindingsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(bindings_); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder() { - return getBindingsFieldBuilder().addBuilder( - flyteidl.core.Literals.BindingData.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder( - int index) { - return getBindingsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.BindingData.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List - getBindingsBuilderList() { - return getBindingsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> - getBindingsFieldBuilder() { - if (bindingsBuilder_ == null) { - bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( - bindings_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - bindings_ = null; - } - return bindingsBuilder_; - } - @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:flyteidl.core.BindingDataCollection) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataCollection) - private static final flyteidl.core.Literals.BindingDataCollection DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataCollection(); - } - - public static flyteidl.core.Literals.BindingDataCollection getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindingDataCollection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindingDataCollection(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 flyteidl.core.Literals.BindingDataCollection getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BindingDataMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataMap) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - int getBindingsCount(); - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - boolean containsBindings( - java.lang.String key); - /** - * Use {@link #getBindingsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getBindings(); - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - java.util.Map - getBindingsMap(); - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - flyteidl.core.Literals.BindingData getBindingsOrDefault( - java.lang.String key, - flyteidl.core.Literals.BindingData defaultValue); - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - flyteidl.core.Literals.BindingData getBindingsOrThrow( - java.lang.String key); - } - /** - *
-   * A map of BindingData items.
-   * 
- * - * Protobuf type {@code flyteidl.core.BindingDataMap} - */ - public static final class BindingDataMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataMap) - BindingDataMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use BindingDataMap.newBuilder() to construct. - private BindingDataMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BindingDataMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BindingDataMap( - 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)) { - bindings_ = com.google.protobuf.MapField.newMapField( - BindingsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - bindings__ = input.readMessage( - BindingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - bindings_.getMutableMap().put( - bindings__.getKey(), bindings__.getValue()); - 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 flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetBindings(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); - } - - public static final int BINDINGS_FIELD_NUMBER = 1; - private static final class BindingsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Literals.BindingData> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Literals.BindingData.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Literals.BindingData> bindings_; - private com.google.protobuf.MapField - internalGetBindings() { - if (bindings_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BindingsDefaultEntryHolder.defaultEntry); - } - return bindings_; - } - - public int getBindingsCount() { - return internalGetBindings().getMap().size(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public boolean containsBindings( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetBindings().getMap().containsKey(key); - } - /** - * Use {@link #getBindingsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getBindings() { - return getBindingsMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public java.util.Map getBindingsMap() { - return internalGetBindings().getMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public flyteidl.core.Literals.BindingData getBindingsOrDefault( - java.lang.String key, - flyteidl.core.Literals.BindingData defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetBindings().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public flyteidl.core.Literals.BindingData getBindingsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetBindings().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetBindings(), - BindingsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetBindings().getMap().entrySet()) { - com.google.protobuf.MapEntry - bindings__ = BindingsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, bindings__); - } - 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 flyteidl.core.Literals.BindingDataMap)) { - return super.equals(obj); - } - flyteidl.core.Literals.BindingDataMap other = (flyteidl.core.Literals.BindingDataMap) obj; - - if (!internalGetBindings().equals( - other.internalGetBindings())) 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 (!internalGetBindings().getMap().isEmpty()) { - hash = (37 * hash) + BINDINGS_FIELD_NUMBER; - hash = (53 * hash) + internalGetBindings().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.BindingDataMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataMap 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 flyteidl.core.Literals.BindingDataMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataMap 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 flyteidl.core.Literals.BindingDataMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataMap 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(flyteidl.core.Literals.BindingDataMap 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 map of BindingData items.
-     * 
- * - * Protobuf type {@code flyteidl.core.BindingDataMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataMap) - flyteidl.core.Literals.BindingDataMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetBindings(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableBindings(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); - } - - // Construct using flyteidl.core.Literals.BindingDataMap.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(); - internalGetMutableBindings().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataMap getDefaultInstanceForType() { - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataMap build() { - flyteidl.core.Literals.BindingDataMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataMap buildPartial() { - flyteidl.core.Literals.BindingDataMap result = new flyteidl.core.Literals.BindingDataMap(this); - int from_bitField0_ = bitField0_; - result.bindings_ = internalGetBindings(); - result.bindings_.makeImmutable(); - 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 flyteidl.core.Literals.BindingDataMap) { - return mergeFrom((flyteidl.core.Literals.BindingDataMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.BindingDataMap other) { - if (other == flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) return this; - internalGetMutableBindings().mergeFrom( - other.internalGetBindings()); - 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 { - flyteidl.core.Literals.BindingDataMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.BindingDataMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Literals.BindingData> bindings_; - private com.google.protobuf.MapField - internalGetBindings() { - if (bindings_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BindingsDefaultEntryHolder.defaultEntry); - } - return bindings_; - } - private com.google.protobuf.MapField - internalGetMutableBindings() { - onChanged();; - if (bindings_ == null) { - bindings_ = com.google.protobuf.MapField.newMapField( - BindingsDefaultEntryHolder.defaultEntry); - } - if (!bindings_.isMutable()) { - bindings_ = bindings_.copy(); - } - return bindings_; - } - - public int getBindingsCount() { - return internalGetBindings().getMap().size(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public boolean containsBindings( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetBindings().getMap().containsKey(key); - } - /** - * Use {@link #getBindingsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getBindings() { - return getBindingsMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public java.util.Map getBindingsMap() { - return internalGetBindings().getMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public flyteidl.core.Literals.BindingData getBindingsOrDefault( - java.lang.String key, - flyteidl.core.Literals.BindingData defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetBindings().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public flyteidl.core.Literals.BindingData getBindingsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetBindings().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearBindings() { - internalGetMutableBindings().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public Builder removeBindings( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableBindings().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableBindings() { - return internalGetMutableBindings().getMutableMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - public Builder putBindings( - java.lang.String key, - flyteidl.core.Literals.BindingData value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableBindings().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public Builder putAllBindings( - java.util.Map values) { - internalGetMutableBindings().getMutableMap() - .putAll(values); - 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:flyteidl.core.BindingDataMap) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataMap) - private static final flyteidl.core.Literals.BindingDataMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataMap(); - } - - public static flyteidl.core.Literals.BindingDataMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindingDataMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindingDataMap(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 flyteidl.core.Literals.BindingDataMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BindingDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - boolean hasScalar(); - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - flyteidl.core.Literals.Scalar getScalar(); - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); - - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - boolean hasCollection(); - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - flyteidl.core.Literals.BindingDataCollection getCollection(); - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder(); - - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - boolean hasPromise(); - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - flyteidl.core.Types.OutputReference getPromise(); - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder(); - - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - boolean hasMap(); - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - flyteidl.core.Literals.BindingDataMap getMap(); - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder(); - - public flyteidl.core.Literals.BindingData.ValueCase getValueCase(); - } - /** - *
-   * Specifies either a simple value or a reference to another output.
-   * 
- * - * Protobuf type {@code flyteidl.core.BindingData} - */ - public static final class BindingData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BindingData) - BindingDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use BindingData.newBuilder() to construct. - private BindingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BindingData() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BindingData( - 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: { - flyteidl.core.Literals.Scalar.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - flyteidl.core.Literals.BindingDataCollection.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((flyteidl.core.Literals.BindingDataCollection) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.BindingDataCollection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataCollection) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - flyteidl.core.Types.OutputReference.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((flyteidl.core.Types.OutputReference) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Types.OutputReference.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.OutputReference) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - flyteidl.core.Literals.BindingDataMap.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((flyteidl.core.Literals.BindingDataMap) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.BindingDataMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataMap) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - SCALAR(1), - COLLECTION(2), - PROMISE(3), - MAP(4), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return SCALAR; - case 2: return COLLECTION; - case 3: return PROMISE; - case 4: return MAP; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int SCALAR_FIELD_NUMBER = 1; - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public boolean hasScalar() { - return valueCase_ == 1; - } - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - - public static final int COLLECTION_FIELD_NUMBER = 2; - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public boolean hasCollection() { - return valueCase_ == 2; - } - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollection getCollection() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.BindingDataCollection) value_; - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.BindingDataCollection) value_; - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - - public static final int PROMISE_FIELD_NUMBER = 3; - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public boolean hasPromise() { - return valueCase_ == 3; - } - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReference getPromise() { - if (valueCase_ == 3) { - return (flyteidl.core.Types.OutputReference) value_; - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { - if (valueCase_ == 3) { - return (flyteidl.core.Types.OutputReference) value_; - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - - public static final int MAP_FIELD_NUMBER = 4; - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public boolean hasMap() { - return valueCase_ == 4; - } - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMap getMap() { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.BindingDataMap) value_; - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.BindingDataMap) value_; - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Literals.BindingDataCollection) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Types.OutputReference) value_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (flyteidl.core.Literals.BindingDataMap) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Literals.BindingDataCollection) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Types.OutputReference) value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.Literals.BindingDataMap) 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 flyteidl.core.Literals.BindingData)) { - return super.equals(obj); - } - flyteidl.core.Literals.BindingData other = (flyteidl.core.Literals.BindingData) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getScalar() - .equals(other.getScalar())) return false; - break; - case 2: - if (!getCollection() - .equals(other.getCollection())) return false; - break; - case 3: - if (!getPromise() - .equals(other.getPromise())) return false; - break; - case 4: - if (!getMap() - .equals(other.getMap())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + SCALAR_FIELD_NUMBER; - hash = (53 * hash) + getScalar().hashCode(); - break; - case 2: - hash = (37 * hash) + COLLECTION_FIELD_NUMBER; - hash = (53 * hash) + getCollection().hashCode(); - break; - case 3: - hash = (37 * hash) + PROMISE_FIELD_NUMBER; - hash = (53 * hash) + getPromise().hashCode(); - break; - case 4: - hash = (37 * hash) + MAP_FIELD_NUMBER; - hash = (53 * hash) + getMap().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.BindingData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingData 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 flyteidl.core.Literals.BindingData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingData 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 flyteidl.core.Literals.BindingData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingData 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(flyteidl.core.Literals.BindingData 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; - } - /** - *
-     * Specifies either a simple value or a reference to another output.
-     * 
- * - * Protobuf type {@code flyteidl.core.BindingData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingData) - flyteidl.core.Literals.BindingDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); - } - - // Construct using flyteidl.core.Literals.BindingData.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(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingData getDefaultInstanceForType() { - return flyteidl.core.Literals.BindingData.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.BindingData build() { - flyteidl.core.Literals.BindingData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingData buildPartial() { - flyteidl.core.Literals.BindingData result = new flyteidl.core.Literals.BindingData(this); - if (valueCase_ == 1) { - if (scalarBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = scalarBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (collectionBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = collectionBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (promiseBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = promiseBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (mapBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = mapBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - 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 flyteidl.core.Literals.BindingData) { - return mergeFrom((flyteidl.core.Literals.BindingData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.BindingData other) { - if (other == flyteidl.core.Literals.BindingData.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case SCALAR: { - mergeScalar(other.getScalar()); - break; - } - case COLLECTION: { - mergeCollection(other.getCollection()); - break; - } - case PROMISE: { - mergePromise(other.getPromise()); - break; - } - case MAP: { - mergeMap(other.getMap()); - break; - } - case VALUE_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 { - flyteidl.core.Literals.BindingData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.BindingData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public boolean hasScalar() { - return valueCase_ == 1; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (scalarBuilder_ == null) { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return scalarBuilder_.getMessage(); - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder setScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - scalarBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder setScalar( - flyteidl.core.Literals.Scalar.Builder builderForValue) { - if (scalarBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - scalarBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (valueCase_ == 1 && - value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - scalarBuilder_.mergeFrom(value); - } - scalarBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder clearScalar() { - if (scalarBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - scalarBuilder_.clear(); - } - return this; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { - return getScalarFieldBuilder().getBuilder(); - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if ((valueCase_ == 1) && (scalarBuilder_ != null)) { - return scalarBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> - getScalarFieldBuilder() { - if (scalarBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( - (flyteidl.core.Literals.Scalar) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return scalarBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> collectionBuilder_; - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public boolean hasCollection() { - return valueCase_ == 2; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollection getCollection() { - if (collectionBuilder_ == null) { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.BindingDataCollection) value_; - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return collectionBuilder_.getMessage(); - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public Builder setCollection(flyteidl.core.Literals.BindingDataCollection value) { - if (collectionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - collectionBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public Builder setCollection( - flyteidl.core.Literals.BindingDataCollection.Builder builderForValue) { - if (collectionBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - collectionBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public Builder mergeCollection(flyteidl.core.Literals.BindingDataCollection value) { - if (collectionBuilder_ == null) { - if (valueCase_ == 2 && - value_ != flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) { - value_ = flyteidl.core.Literals.BindingDataCollection.newBuilder((flyteidl.core.Literals.BindingDataCollection) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - collectionBuilder_.mergeFrom(value); - } - collectionBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public Builder clearCollection() { - if (collectionBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - collectionBuilder_.clear(); - } - return this; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollection.Builder getCollectionBuilder() { - return getCollectionFieldBuilder().getBuilder(); - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { - if ((valueCase_ == 2) && (collectionBuilder_ != null)) { - return collectionBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.BindingDataCollection) value_; - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> - getCollectionFieldBuilder() { - if (collectionBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder>( - (flyteidl.core.Literals.BindingDataCollection) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return collectionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> promiseBuilder_; - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public boolean hasPromise() { - return valueCase_ == 3; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReference getPromise() { - if (promiseBuilder_ == null) { - if (valueCase_ == 3) { - return (flyteidl.core.Types.OutputReference) value_; - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return promiseBuilder_.getMessage(); - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public Builder setPromise(flyteidl.core.Types.OutputReference value) { - if (promiseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - promiseBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public Builder setPromise( - flyteidl.core.Types.OutputReference.Builder builderForValue) { - if (promiseBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - promiseBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public Builder mergePromise(flyteidl.core.Types.OutputReference value) { - if (promiseBuilder_ == null) { - if (valueCase_ == 3 && - value_ != flyteidl.core.Types.OutputReference.getDefaultInstance()) { - value_ = flyteidl.core.Types.OutputReference.newBuilder((flyteidl.core.Types.OutputReference) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - promiseBuilder_.mergeFrom(value); - } - promiseBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public Builder clearPromise() { - if (promiseBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - promiseBuilder_.clear(); - } - return this; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReference.Builder getPromiseBuilder() { - return getPromiseFieldBuilder().getBuilder(); - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { - if ((valueCase_ == 3) && (promiseBuilder_ != null)) { - return promiseBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (flyteidl.core.Types.OutputReference) value_; - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> - getPromiseFieldBuilder() { - if (promiseBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - promiseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder>( - (flyteidl.core.Types.OutputReference) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return promiseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> mapBuilder_; - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public boolean hasMap() { - return valueCase_ == 4; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMap getMap() { - if (mapBuilder_ == null) { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.BindingDataMap) value_; - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return mapBuilder_.getMessage(); - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public Builder setMap(flyteidl.core.Literals.BindingDataMap value) { - if (mapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - mapBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public Builder setMap( - flyteidl.core.Literals.BindingDataMap.Builder builderForValue) { - if (mapBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - mapBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 4; - return this; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public Builder mergeMap(flyteidl.core.Literals.BindingDataMap value) { - if (mapBuilder_ == null) { - if (valueCase_ == 4 && - value_ != flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) { - value_ = flyteidl.core.Literals.BindingDataMap.newBuilder((flyteidl.core.Literals.BindingDataMap) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - mapBuilder_.mergeFrom(value); - } - mapBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public Builder clearMap() { - if (mapBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - mapBuilder_.clear(); - } - return this; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMap.Builder getMapBuilder() { - return getMapFieldBuilder().getBuilder(); - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { - if ((valueCase_ == 4) && (mapBuilder_ != null)) { - return mapBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.BindingDataMap) value_; - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> - getMapFieldBuilder() { - if (mapBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder>( - (flyteidl.core.Literals.BindingDataMap) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 4; - onChanged();; - return mapBuilder_; - } - @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:flyteidl.core.BindingData) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BindingData) - private static final flyteidl.core.Literals.BindingData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingData(); - } - - public static flyteidl.core.Literals.BindingData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindingData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindingData(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 flyteidl.core.Literals.BindingData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BindingOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Binding) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Variable name must match an input/output variable of the node.
-     * 
- * - * string var = 1; - */ - java.lang.String getVar(); - /** - *
-     * Variable name must match an input/output variable of the node.
-     * 
- * - * string var = 1; - */ - com.google.protobuf.ByteString - getVarBytes(); - - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - boolean hasBinding(); - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - flyteidl.core.Literals.BindingData getBinding(); - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder(); - } - /** - *
-   * An input/output binding of a variable to either static value or a node output.
-   * 
- * - * Protobuf type {@code flyteidl.core.Binding} - */ - public static final class Binding extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Binding) - BindingOrBuilder { - private static final long serialVersionUID = 0L; - // Use Binding.newBuilder() to construct. - private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Binding() { - var_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Binding( - 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(); - - var_ = s; - break; - } - case 18: { - flyteidl.core.Literals.BindingData.Builder subBuilder = null; - if (binding_ != null) { - subBuilder = binding_.toBuilder(); - } - binding_ = input.readMessage(flyteidl.core.Literals.BindingData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(binding_); - binding_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); - } - - public static final int VAR_FIELD_NUMBER = 1; - private volatile java.lang.Object var_; - /** - *
-     * Variable name must match an input/output variable of the node.
-     * 
- * - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - 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(); - var_ = s; - return s; - } - } - /** - *
-     * Variable name must match an input/output variable of the node.
-     * 
- * - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BINDING_FIELD_NUMBER = 2; - private flyteidl.core.Literals.BindingData binding_; - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public boolean hasBinding() { - return binding_ != null; - } - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingData getBinding() { - return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; - } - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { - return getBinding(); - } - - 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 (!getVarBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); - } - if (binding_ != null) { - output.writeMessage(2, getBinding()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getVarBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); - } - if (binding_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBinding()); - } - 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 flyteidl.core.Literals.Binding)) { - return super.equals(obj); - } - flyteidl.core.Literals.Binding other = (flyteidl.core.Literals.Binding) obj; - - if (!getVar() - .equals(other.getVar())) return false; - if (hasBinding() != other.hasBinding()) return false; - if (hasBinding()) { - if (!getBinding() - .equals(other.getBinding())) 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) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - if (hasBinding()) { - hash = (37 * hash) + BINDING_FIELD_NUMBER; - hash = (53 * hash) + getBinding().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Binding parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binding parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binding parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binding parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binding parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binding parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binding parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binding 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 flyteidl.core.Literals.Binding parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binding 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 flyteidl.core.Literals.Binding parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binding 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(flyteidl.core.Literals.Binding 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 input/output binding of a variable to either static value or a node output.
-     * 
- * - * Protobuf type {@code flyteidl.core.Binding} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Binding) - flyteidl.core.Literals.BindingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); - } - - // Construct using flyteidl.core.Literals.Binding.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(); - var_ = ""; - - if (bindingBuilder_ == null) { - binding_ = null; - } else { - binding_ = null; - bindingBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Binding getDefaultInstanceForType() { - return flyteidl.core.Literals.Binding.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Binding build() { - flyteidl.core.Literals.Binding result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Binding buildPartial() { - flyteidl.core.Literals.Binding result = new flyteidl.core.Literals.Binding(this); - result.var_ = var_; - if (bindingBuilder_ == null) { - result.binding_ = binding_; - } else { - result.binding_ = bindingBuilder_.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 flyteidl.core.Literals.Binding) { - return mergeFrom((flyteidl.core.Literals.Binding)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Binding other) { - if (other == flyteidl.core.Literals.Binding.getDefaultInstance()) return this; - if (!other.getVar().isEmpty()) { - var_ = other.var_; - onChanged(); - } - if (other.hasBinding()) { - mergeBinding(other.getBinding()); - } - 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 { - flyteidl.core.Literals.Binding parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Binding) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object var_ = ""; - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public Builder setVar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - var_ = value; - onChanged(); - return this; - } - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public Builder clearVar() { - - var_ = getDefaultInstance().getVar(); - onChanged(); - return this; - } - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public Builder setVarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - var_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Literals.BindingData binding_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingBuilder_; - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public boolean hasBinding() { - return bindingBuilder_ != null || binding_ != null; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingData getBinding() { - if (bindingBuilder_ == null) { - return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; - } else { - return bindingBuilder_.getMessage(); - } - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public Builder setBinding(flyteidl.core.Literals.BindingData value) { - if (bindingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - binding_ = value; - onChanged(); - } else { - bindingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public Builder setBinding( - flyteidl.core.Literals.BindingData.Builder builderForValue) { - if (bindingBuilder_ == null) { - binding_ = builderForValue.build(); - onChanged(); - } else { - bindingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public Builder mergeBinding(flyteidl.core.Literals.BindingData value) { - if (bindingBuilder_ == null) { - if (binding_ != null) { - binding_ = - flyteidl.core.Literals.BindingData.newBuilder(binding_).mergeFrom(value).buildPartial(); - } else { - binding_ = value; - } - onChanged(); - } else { - bindingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public Builder clearBinding() { - if (bindingBuilder_ == null) { - binding_ = null; - onChanged(); - } else { - binding_ = null; - bindingBuilder_ = null; - } - - return this; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingData.Builder getBindingBuilder() { - - onChanged(); - return getBindingFieldBuilder().getBuilder(); - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { - if (bindingBuilder_ != null) { - return bindingBuilder_.getMessageOrBuilder(); - } else { - return binding_ == null ? - flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; - } - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> - getBindingFieldBuilder() { - if (bindingBuilder_ == null) { - bindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( - getBinding(), - getParentForChildren(), - isClean()); - binding_ = null; - } - return bindingBuilder_; - } - @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:flyteidl.core.Binding) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Binding) - private static final flyteidl.core.Literals.Binding DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Binding(); - } - - public static flyteidl.core.Literals.Binding getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Binding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Binding(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 flyteidl.core.Literals.Binding getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface KeyValuePairOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.KeyValuePair) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *required.
-     * 
- * - * string key = 1; - */ - java.lang.String getKey(); - /** - *
-     *required.
-     * 
- * - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - *
-     *+optional.
-     * 
- * - * string value = 2; - */ - java.lang.String getValue(); - /** - *
-     *+optional.
-     * 
- * - * string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-   * A generic key value pair.
-   * 
- * - * Protobuf type {@code flyteidl.core.KeyValuePair} - */ - public static final class KeyValuePair extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.KeyValuePair) - KeyValuePairOrBuilder { - private static final long serialVersionUID = 0L; - // Use KeyValuePair.newBuilder() to construct. - private KeyValuePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private KeyValuePair() { - key_ = ""; - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private KeyValuePair( - 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(); - - 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 flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - *
-     *required.
-     * 
- * - * string key = 1; - */ - 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; - } - } - /** - *
-     *required.
-     * 
- * - * string key = 1; - */ - 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_; - /** - *
-     *+optional.
-     * 
- * - * string value = 2; - */ - 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; - } - } - /** - *
-     *+optional.
-     * 
- * - * string value = 2; - */ - 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 (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getValueBytes().isEmpty()) { - 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 (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getValueBytes().isEmpty()) { - 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 flyteidl.core.Literals.KeyValuePair)) { - return super.equals(obj); - } - flyteidl.core.Literals.KeyValuePair other = (flyteidl.core.Literals.KeyValuePair) 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 flyteidl.core.Literals.KeyValuePair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.KeyValuePair 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 flyteidl.core.Literals.KeyValuePair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.KeyValuePair 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 flyteidl.core.Literals.KeyValuePair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.KeyValuePair 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(flyteidl.core.Literals.KeyValuePair 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 generic key value pair.
-     * 
- * - * Protobuf type {@code flyteidl.core.KeyValuePair} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.KeyValuePair) - flyteidl.core.Literals.KeyValuePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); - } - - // Construct using flyteidl.core.Literals.KeyValuePair.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 flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.KeyValuePair getDefaultInstanceForType() { - return flyteidl.core.Literals.KeyValuePair.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.KeyValuePair build() { - flyteidl.core.Literals.KeyValuePair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.KeyValuePair buildPartial() { - flyteidl.core.Literals.KeyValuePair result = new flyteidl.core.Literals.KeyValuePair(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 flyteidl.core.Literals.KeyValuePair) { - return mergeFrom((flyteidl.core.Literals.KeyValuePair)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.KeyValuePair other) { - if (other == flyteidl.core.Literals.KeyValuePair.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 { - flyteidl.core.Literals.KeyValuePair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.KeyValuePair) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - 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; - } - } - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - 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; - } - } - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - 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_ = ""; - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - 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; - } - } - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - 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; - } - } - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - 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:flyteidl.core.KeyValuePair) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.KeyValuePair) - private static final flyteidl.core.Literals.KeyValuePair DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.KeyValuePair(); - } - - public static flyteidl.core.Literals.KeyValuePair getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyValuePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyValuePair(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 flyteidl.core.Literals.KeyValuePair getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RetryStrategyOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.RetryStrategy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-     * The number of retries must be less than or equals to 10.
-     * 
- * - * uint32 retries = 5; - */ - int getRetries(); - } - /** - *
-   * Retry strategy associated with an executable unit.
-   * 
- * - * Protobuf type {@code flyteidl.core.RetryStrategy} - */ - public static final class RetryStrategy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.RetryStrategy) - RetryStrategyOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetryStrategy.newBuilder() to construct. - private RetryStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RetryStrategy() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RetryStrategy( - 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 40: { - - retries_ = input.readUInt32(); - 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 flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); - } - - public static final int RETRIES_FIELD_NUMBER = 5; - private int retries_; - /** - *
-     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-     * The number of retries must be less than or equals to 10.
-     * 
- * - * uint32 retries = 5; - */ - public int getRetries() { - return retries_; - } - - 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 (retries_ != 0) { - output.writeUInt32(5, retries_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retries_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, retries_); - } - 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 flyteidl.core.Literals.RetryStrategy)) { - return super.equals(obj); - } - flyteidl.core.Literals.RetryStrategy other = (flyteidl.core.Literals.RetryStrategy) obj; - - if (getRetries() - != other.getRetries()) 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) + RETRIES_FIELD_NUMBER; - hash = (53 * hash) + getRetries(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.RetryStrategy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.RetryStrategy 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 flyteidl.core.Literals.RetryStrategy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.RetryStrategy 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 flyteidl.core.Literals.RetryStrategy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.RetryStrategy 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(flyteidl.core.Literals.RetryStrategy 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; - } - /** - *
-     * Retry strategy associated with an executable unit.
-     * 
- * - * Protobuf type {@code flyteidl.core.RetryStrategy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.RetryStrategy) - flyteidl.core.Literals.RetryStrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); - } - - // Construct using flyteidl.core.Literals.RetryStrategy.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(); - retries_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.RetryStrategy getDefaultInstanceForType() { - return flyteidl.core.Literals.RetryStrategy.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.RetryStrategy build() { - flyteidl.core.Literals.RetryStrategy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.RetryStrategy buildPartial() { - flyteidl.core.Literals.RetryStrategy result = new flyteidl.core.Literals.RetryStrategy(this); - result.retries_ = retries_; - 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 flyteidl.core.Literals.RetryStrategy) { - return mergeFrom((flyteidl.core.Literals.RetryStrategy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.RetryStrategy other) { - if (other == flyteidl.core.Literals.RetryStrategy.getDefaultInstance()) return this; - if (other.getRetries() != 0) { - setRetries(other.getRetries()); - } - 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 { - flyteidl.core.Literals.RetryStrategy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.RetryStrategy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retries_ ; - /** - *
-       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-       * The number of retries must be less than or equals to 10.
-       * 
- * - * uint32 retries = 5; - */ - public int getRetries() { - return retries_; - } - /** - *
-       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-       * The number of retries must be less than or equals to 10.
-       * 
- * - * uint32 retries = 5; - */ - public Builder setRetries(int value) { - - retries_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-       * The number of retries must be less than or equals to 10.
-       * 
- * - * uint32 retries = 5; - */ - public Builder clearRetries() { - - retries_ = 0; - 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:flyteidl.core.RetryStrategy) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.RetryStrategy) - private static final flyteidl.core.Literals.RetryStrategy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.RetryStrategy(); - } - - public static flyteidl.core.Literals.RetryStrategy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetryStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RetryStrategy(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 flyteidl.core.Literals.RetryStrategy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Primitive_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Primitive_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Void_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Void_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Blob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Blob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BlobMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Binary_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Binary_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Schema_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Schema_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Scalar_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Scalar_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Literal_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Literal_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_LiteralCollection_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_LiteralMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_LiteralMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_LiteralMap_LiteralsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BindingDataCollection_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BindingDataMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BindingDataMap_BindingsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BindingData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BindingData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Binding_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Binding_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_KeyValuePair_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_RetryStrategy_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_RetryStrategy_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\034flyteidl/core/literals.proto\022\rflyteidl" + - ".core\032\037google/protobuf/timestamp.proto\032\036" + - "google/protobuf/duration.proto\032\034google/p" + - "rotobuf/struct.proto\032\031flyteidl/core/type" + - "s.proto\"\310\001\n\tPrimitive\022\021\n\007integer\030\001 \001(\003H\000" + - "\022\025\n\013float_value\030\002 \001(\001H\000\022\026\n\014string_value\030" + - "\003 \001(\tH\000\022\021\n\007boolean\030\004 \001(\010H\000\022.\n\010datetime\030\005" + - " \001(\0132\032.google.protobuf.TimestampH\000\022-\n\010du" + - "ration\030\006 \001(\0132\031.google.protobuf.DurationH" + - "\000B\007\n\005value\"\006\n\004Void\"B\n\004Blob\022-\n\010metadata\030\001" + - " \001(\0132\033.flyteidl.core.BlobMetadata\022\013\n\003uri" + - "\030\003 \001(\t\"5\n\014BlobMetadata\022%\n\004type\030\001 \001(\0132\027.f" + - "lyteidl.core.BlobType\"$\n\006Binary\022\r\n\005value" + - "\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\">\n\006Schema\022\013\n\003uri\030\001 \001" + - "(\t\022\'\n\004type\030\003 \001(\0132\031.flyteidl.core.SchemaT" + - "ype\"\264\002\n\006Scalar\022-\n\tprimitive\030\001 \001(\0132\030.flyt" + - "eidl.core.PrimitiveH\000\022#\n\004blob\030\002 \001(\0132\023.fl" + - "yteidl.core.BlobH\000\022\'\n\006binary\030\003 \001(\0132\025.fly" + - "teidl.core.BinaryH\000\022\'\n\006schema\030\004 \001(\0132\025.fl" + - "yteidl.core.SchemaH\000\022(\n\tnone_type\030\005 \001(\0132" + - "\023.flyteidl.core.VoidH\000\022%\n\005error\030\006 \001(\0132\024." + - "flyteidl.core.ErrorH\000\022*\n\007generic\030\007 \001(\0132\027" + - ".google.protobuf.StructH\000B\007\n\005value\"\235\001\n\007L" + - "iteral\022\'\n\006scalar\030\001 \001(\0132\025.flyteidl.core.S" + - "calarH\000\0226\n\ncollection\030\002 \001(\0132 .flyteidl.c" + - "ore.LiteralCollectionH\000\022(\n\003map\030\003 \001(\0132\031.f" + - "lyteidl.core.LiteralMapH\000B\007\n\005value\"=\n\021Li" + - "teralCollection\022(\n\010literals\030\001 \003(\0132\026.flyt" + - "eidl.core.Literal\"\220\001\n\nLiteralMap\0229\n\010lite" + - "rals\030\001 \003(\0132\'.flyteidl.core.LiteralMap.Li" + - "teralsEntry\032G\n\rLiteralsEntry\022\013\n\003key\030\001 \001(" + - "\t\022%\n\005value\030\002 \001(\0132\026.flyteidl.core.Literal" + - ":\0028\001\"E\n\025BindingDataCollection\022,\n\010binding" + - "s\030\001 \003(\0132\032.flyteidl.core.BindingData\"\234\001\n\016" + - "BindingDataMap\022=\n\010bindings\030\001 \003(\0132+.flyte" + - "idl.core.BindingDataMap.BindingsEntry\032K\n" + - "\rBindingsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001" + - "(\0132\032.flyteidl.core.BindingData:\0028\001\"\334\001\n\013B" + - "indingData\022\'\n\006scalar\030\001 \001(\0132\025.flyteidl.co" + - "re.ScalarH\000\022:\n\ncollection\030\002 \001(\0132$.flytei" + - "dl.core.BindingDataCollectionH\000\0221\n\007promi" + - "se\030\003 \001(\0132\036.flyteidl.core.OutputReference" + - "H\000\022,\n\003map\030\004 \001(\0132\035.flyteidl.core.BindingD" + - "ataMapH\000B\007\n\005value\"C\n\007Binding\022\013\n\003var\030\001 \001(" + - "\t\022+\n\007binding\030\002 \001(\0132\032.flyteidl.core.Bindi" + - "ngData\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t\" \n\rRetryStrategy\022\017\n\007retries\030\005" + - " \001(\rB2Z0github.com/lyft/flyteidl/gen/pb-" + - "go/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - flyteidl.core.Types.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_Primitive_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_Primitive_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Primitive_descriptor, - new java.lang.String[] { "Integer", "FloatValue", "StringValue", "Boolean", "Datetime", "Duration", "Value", }); - internal_static_flyteidl_core_Void_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_Void_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Void_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_core_Blob_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_Blob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Blob_descriptor, - new java.lang.String[] { "Metadata", "Uri", }); - internal_static_flyteidl_core_BlobMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BlobMetadata_descriptor, - new java.lang.String[] { "Type", }); - internal_static_flyteidl_core_Binary_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_core_Binary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Binary_descriptor, - new java.lang.String[] { "Value", "Tag", }); - internal_static_flyteidl_core_Schema_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_core_Schema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Schema_descriptor, - new java.lang.String[] { "Uri", "Type", }); - internal_static_flyteidl_core_Scalar_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_core_Scalar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Scalar_descriptor, - new java.lang.String[] { "Primitive", "Blob", "Binary", "Schema", "NoneType", "Error", "Generic", "Value", }); - internal_static_flyteidl_core_Literal_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_core_Literal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Literal_descriptor, - new java.lang.String[] { "Scalar", "Collection", "Map", "Value", }); - internal_static_flyteidl_core_LiteralCollection_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_LiteralCollection_descriptor, - new java.lang.String[] { "Literals", }); - internal_static_flyteidl_core_LiteralMap_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_core_LiteralMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_LiteralMap_descriptor, - new java.lang.String[] { "Literals", }); - internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor = - internal_static_flyteidl_core_LiteralMap_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_LiteralMap_LiteralsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_core_BindingDataCollection_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BindingDataCollection_descriptor, - new java.lang.String[] { "Bindings", }); - internal_static_flyteidl_core_BindingDataMap_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BindingDataMap_descriptor, - new java.lang.String[] { "Bindings", }); - internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor = - internal_static_flyteidl_core_BindingDataMap_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_BindingDataMap_BindingsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_core_BindingData_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_flyteidl_core_BindingData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BindingData_descriptor, - new java.lang.String[] { "Scalar", "Collection", "Promise", "Map", "Value", }); - internal_static_flyteidl_core_Binding_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_flyteidl_core_Binding_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Binding_descriptor, - new java.lang.String[] { "Var", "Binding", }); - internal_static_flyteidl_core_KeyValuePair_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_KeyValuePair_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_core_RetryStrategy_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_RetryStrategy_descriptor, - new java.lang.String[] { "Retries", }); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - flyteidl.core.Types.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Tasks.java b/gen/pb-java/flyteidl/core/Tasks.java deleted file mode 100644 index 5fc56386e..000000000 --- a/gen/pb-java/flyteidl/core/Tasks.java +++ /dev/null @@ -1,13257 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/tasks.proto - -package flyteidl.core; - -public final class Tasks { - private Tasks() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ResourcesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Resources) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - java.util.List - getRequestsList(); - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index); - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - int getRequestsCount(); - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( - int index); - - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - java.util.List - getLimitsList(); - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index); - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - int getLimitsCount(); - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - java.util.List - getLimitsOrBuilderList(); - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( - int index); - } - /** - *
-   * A customizable interface to convey resources requested for a container. This can be interpretted differently for different
-   * container engines.
-   * 
- * - * Protobuf type {@code flyteidl.core.Resources} - */ - public static final class Resources extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Resources) - ResourcesOrBuilder { - private static final long serialVersionUID = 0L; - // Use Resources.newBuilder() to construct. - private Resources(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Resources() { - requests_ = java.util.Collections.emptyList(); - limits_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Resources( - 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)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - limits_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - limits_.add( - input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.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)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - limits_ = java.util.Collections.unmodifiableList(limits_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); - } - - /** - *
-     * Known resource names.
-     * 
- * - * Protobuf enum {@code flyteidl.core.Resources.ResourceName} - */ - public enum ResourceName - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * CPU = 1; - */ - CPU(1), - /** - * GPU = 2; - */ - GPU(2), - /** - * MEMORY = 3; - */ - MEMORY(3), - /** - * STORAGE = 4; - */ - STORAGE(4), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * CPU = 1; - */ - public static final int CPU_VALUE = 1; - /** - * GPU = 2; - */ - public static final int GPU_VALUE = 2; - /** - * MEMORY = 3; - */ - public static final int MEMORY_VALUE = 3; - /** - * STORAGE = 4; - */ - public static final int STORAGE_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResourceName valueOf(int value) { - return forNumber(value); - } - - public static ResourceName forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return CPU; - case 2: return GPU; - case 3: return MEMORY; - case 4: return STORAGE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ResourceName> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResourceName findValueByNumber(int number) { - return ResourceName.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Tasks.Resources.getDescriptor().getEnumTypes().get(0); - } - - private static final ResourceName[] VALUES = values(); - - public static ResourceName 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 ResourceName(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.Resources.ResourceName) - } - - public interface ResourceEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Resources.ResourceEntry) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * Resource name.
-       * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - int getNameValue(); - /** - *
-       * Resource name.
-       * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - flyteidl.core.Tasks.Resources.ResourceName getName(); - - /** - *
-       * Value must be a valid k8s quantity. See
-       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-       * 
- * - * string value = 2; - */ - java.lang.String getValue(); - /** - *
-       * Value must be a valid k8s quantity. See
-       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-       * 
- * - * string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-     * Encapsulates a resource name and value.
-     * 
- * - * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} - */ - public static final class ResourceEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Resources.ResourceEntry) - ResourceEntryOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceEntry.newBuilder() to construct. - private ResourceEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourceEntry() { - name_ = 0; - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResourceEntry( - 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 8: { - int rawValue = input.readEnum(); - - name_ = rawValue; - 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 flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private int name_; - /** - *
-       * Resource name.
-       * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public int getNameValue() { - return name_; - } - /** - *
-       * Resource name.
-       * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceName getName() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); - return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - *
-       * Value must be a valid k8s quantity. See
-       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-       * 
- * - * string value = 2; - */ - 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 must be a valid k8s quantity. See
-       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-       * 
- * - * string value = 2; - */ - 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 (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { - output.writeEnum(1, name_); - } - if (!getValueBytes().isEmpty()) { - 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 (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, name_); - } - if (!getValueBytes().isEmpty()) { - 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 flyteidl.core.Tasks.Resources.ResourceEntry)) { - return super.equals(obj); - } - flyteidl.core.Tasks.Resources.ResourceEntry other = (flyteidl.core.Tasks.Resources.ResourceEntry) obj; - - if (name_ != other.name_) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + name_; - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry 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 flyteidl.core.Tasks.Resources.ResourceEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry 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 flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry 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(flyteidl.core.Tasks.Resources.ResourceEntry 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; - } - /** - *
-       * Encapsulates a resource name and value.
-       * 
- * - * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources.ResourceEntry) - flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); - } - - // Construct using flyteidl.core.Tasks.Resources.ResourceEntry.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_ = 0; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { - return flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources.ResourceEntry build() { - flyteidl.core.Tasks.Resources.ResourceEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources.ResourceEntry buildPartial() { - flyteidl.core.Tasks.Resources.ResourceEntry result = new flyteidl.core.Tasks.Resources.ResourceEntry(this); - result.name_ = name_; - 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 flyteidl.core.Tasks.Resources.ResourceEntry) { - return mergeFrom((flyteidl.core.Tasks.Resources.ResourceEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.Resources.ResourceEntry other) { - if (other == flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()) return this; - if (other.name_ != 0) { - setNameValue(other.getNameValue()); - } - 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 { - flyteidl.core.Tasks.Resources.ResourceEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.Resources.ResourceEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int name_ = 0; - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public int getNameValue() { - return name_; - } - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public Builder setNameValue(int value) { - name_ = value; - onChanged(); - return this; - } - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceName getName() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); - return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; - } - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public Builder setName(flyteidl.core.Tasks.Resources.ResourceName value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public Builder clearName() { - - name_ = 0; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-         * Value must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - 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 must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - 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 must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-         * Value must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-         * Value must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - 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:flyteidl.core.Resources.ResourceEntry) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Resources.ResourceEntry) - private static final flyteidl.core.Tasks.Resources.ResourceEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources.ResourceEntry(); - } - - public static flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceEntry(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 flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int REQUESTS_FIELD_NUMBER = 1; - private java.util.List requests_; - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { - return requests_.get(index); - } - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - public static final int LIMITS_FIELD_NUMBER = 2; - private java.util.List limits_; - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List getLimitsList() { - return limits_; - } - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List - getLimitsOrBuilderList() { - return limits_; - } - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public int getLimitsCount() { - return limits_.size(); - } - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { - return limits_.get(index); - } - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( - int index) { - return limits_.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 < requests_.size(); i++) { - output.writeMessage(1, requests_.get(i)); - } - for (int i = 0; i < limits_.size(); i++) { - output.writeMessage(2, limits_.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 < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); - } - for (int i = 0; i < limits_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, limits_.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 flyteidl.core.Tasks.Resources)) { - return super.equals(obj); - } - flyteidl.core.Tasks.Resources other = (flyteidl.core.Tasks.Resources) obj; - - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getLimitsList() - .equals(other.getLimitsList())) 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 (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - if (getLimitsCount() > 0) { - hash = (37 * hash) + LIMITS_FIELD_NUMBER; - hash = (53 * hash) + getLimitsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.Resources parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources 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 flyteidl.core.Tasks.Resources parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources 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 flyteidl.core.Tasks.Resources parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources 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(flyteidl.core.Tasks.Resources 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 customizable interface to convey resources requested for a container. This can be interpretted differently for different
-     * container engines.
-     * 
- * - * Protobuf type {@code flyteidl.core.Resources} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources) - flyteidl.core.Tasks.ResourcesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); - } - - // Construct using flyteidl.core.Tasks.Resources.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRequestsFieldBuilder(); - getLimitsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - requestsBuilder_.clear(); - } - if (limitsBuilder_ == null) { - limits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - limitsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources getDefaultInstanceForType() { - return flyteidl.core.Tasks.Resources.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources build() { - flyteidl.core.Tasks.Resources result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources buildPartial() { - flyteidl.core.Tasks.Resources result = new flyteidl.core.Tasks.Resources(this); - int from_bitField0_ = bitField0_; - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - if (limitsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - limits_ = java.util.Collections.unmodifiableList(limits_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.limits_ = limits_; - } else { - result.limits_ = limitsBuilder_.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 flyteidl.core.Tasks.Resources) { - return mergeFrom((flyteidl.core.Tasks.Resources)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.Resources other) { - if (other == flyteidl.core.Tasks.Resources.getDefaultInstance()) return this; - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - if (limitsBuilder_ == null) { - if (!other.limits_.isEmpty()) { - if (limits_.isEmpty()) { - limits_ = other.limits_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLimitsIsMutable(); - limits_.addAll(other.limits_); - } - onChanged(); - } - } else { - if (!other.limits_.isEmpty()) { - if (limitsBuilder_.isEmpty()) { - limitsBuilder_.dispose(); - limitsBuilder_ = null; - limits_ = other.limits_; - bitField0_ = (bitField0_ & ~0x00000002); - limitsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLimitsFieldBuilder() : null; - } else { - limitsBuilder_.addAllMessages(other.limits_); - } - } - } - 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 { - flyteidl.core.Tasks.Resources parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.Resources) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> requestsBuilder_; - - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder setRequests( - int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder setRequests( - int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addRequests(flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addRequests( - int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addRequests( - flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addRequests( - int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - - private java.util.List limits_ = - java.util.Collections.emptyList(); - private void ensureLimitsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - limits_ = new java.util.ArrayList(limits_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> limitsBuilder_; - - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List getLimitsList() { - if (limitsBuilder_ == null) { - return java.util.Collections.unmodifiableList(limits_); - } else { - return limitsBuilder_.getMessageList(); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public int getLimitsCount() { - if (limitsBuilder_ == null) { - return limits_.size(); - } else { - return limitsBuilder_.getCount(); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { - if (limitsBuilder_ == null) { - return limits_.get(index); - } else { - return limitsBuilder_.getMessage(index); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder setLimits( - int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (limitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLimitsIsMutable(); - limits_.set(index, value); - onChanged(); - } else { - limitsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder setLimits( - int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - limits_.set(index, builderForValue.build()); - onChanged(); - } else { - limitsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addLimits(flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (limitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLimitsIsMutable(); - limits_.add(value); - onChanged(); - } else { - limitsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addLimits( - int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (limitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLimitsIsMutable(); - limits_.add(index, value); - onChanged(); - } else { - limitsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addLimits( - flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - limits_.add(builderForValue.build()); - onChanged(); - } else { - limitsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addLimits( - int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - limits_.add(index, builderForValue.build()); - onChanged(); - } else { - limitsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addAllLimits( - java.lang.Iterable values) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, limits_); - onChanged(); - } else { - limitsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder clearLimits() { - if (limitsBuilder_ == null) { - limits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - limitsBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder removeLimits(int index) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - limits_.remove(index); - onChanged(); - } else { - limitsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getLimitsBuilder( - int index) { - return getLimitsFieldBuilder().getBuilder(index); - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( - int index) { - if (limitsBuilder_ == null) { - return limits_.get(index); } else { - return limitsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List - getLimitsOrBuilderList() { - if (limitsBuilder_ != null) { - return limitsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(limits_); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder() { - return getLimitsFieldBuilder().addBuilder( - flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder( - int index) { - return getLimitsFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List - getLimitsBuilderList() { - return getLimitsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> - getLimitsFieldBuilder() { - if (limitsBuilder_ == null) { - limitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( - limits_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - limits_ = null; - } - return limitsBuilder_; - } - @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:flyteidl.core.Resources) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Resources) - private static final flyteidl.core.Tasks.Resources DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources(); - } - - public static flyteidl.core.Tasks.Resources getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Resources parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Resources(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 flyteidl.core.Tasks.Resources getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RuntimeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.RuntimeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Type of runtime.
-     * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - int getTypeValue(); - /** - *
-     * Type of runtime.
-     * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType(); - - /** - *
-     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-     * checks to ensure tighter validation or setting expectations.
-     * 
- * - * string version = 2; - */ - java.lang.String getVersion(); - /** - *
-     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-     * checks to ensure tighter validation or setting expectations.
-     * 
- * - * string version = 2; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-     * 
- * - * string flavor = 3; - */ - java.lang.String getFlavor(); - /** - *
-     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-     * 
- * - * string flavor = 3; - */ - com.google.protobuf.ByteString - getFlavorBytes(); - } - /** - *
-   * Runtime information. This is losely defined to allow for extensibility.
-   * 
- * - * Protobuf type {@code flyteidl.core.RuntimeMetadata} - */ - public static final class RuntimeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.RuntimeMetadata) - RuntimeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use RuntimeMetadata.newBuilder() to construct. - private RuntimeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RuntimeMetadata() { - type_ = 0; - version_ = ""; - flavor_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RuntimeMetadata( - 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 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - flavor_ = 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 flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.RuntimeMetadata.RuntimeType} - */ - public enum RuntimeType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * OTHER = 0; - */ - OTHER(0), - /** - * FLYTE_SDK = 1; - */ - FLYTE_SDK(1), - UNRECOGNIZED(-1), - ; - - /** - * OTHER = 0; - */ - public static final int OTHER_VALUE = 0; - /** - * FLYTE_SDK = 1; - */ - public static final int FLYTE_SDK_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RuntimeType valueOf(int value) { - return forNumber(value); - } - - public static RuntimeType forNumber(int value) { - switch (value) { - case 0: return OTHER; - case 1: return FLYTE_SDK; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RuntimeType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RuntimeType findValueByNumber(int number) { - return RuntimeType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Tasks.RuntimeMetadata.getDescriptor().getEnumTypes().get(0); - } - - private static final RuntimeType[] VALUES = values(); - - public static RuntimeType 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 RuntimeType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.RuntimeMetadata.RuntimeType) - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - *
-     * Type of runtime.
-     * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - *
-     * Type of runtime.
-     * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); - return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; - } - - public static final int VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object version_; - /** - *
-     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-     * checks to ensure tighter validation or setting expectations.
-     * 
- * - * string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - 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(); - version_ = s; - return s; - } - } - /** - *
-     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-     * checks to ensure tighter validation or setting expectations.
-     * 
- * - * string version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FLAVOR_FIELD_NUMBER = 3; - private volatile java.lang.Object flavor_; - /** - *
-     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-     * 
- * - * string flavor = 3; - */ - public java.lang.String getFlavor() { - java.lang.Object ref = flavor_; - 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(); - flavor_ = s; - return s; - } - } - /** - *
-     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-     * 
- * - * string flavor = 3; - */ - public com.google.protobuf.ByteString - getFlavorBytes() { - java.lang.Object ref = flavor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - flavor_ = 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 (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { - output.writeEnum(1, type_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); - } - if (!getFlavorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, flavor_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); - } - if (!getFlavorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, flavor_); - } - 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 flyteidl.core.Tasks.RuntimeMetadata)) { - return super.equals(obj); - } - flyteidl.core.Tasks.RuntimeMetadata other = (flyteidl.core.Tasks.RuntimeMetadata) obj; - - if (type_ != other.type_) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getFlavor() - .equals(other.getFlavor())) 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) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + FLAVOR_FIELD_NUMBER; - hash = (53 * hash) + getFlavor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.RuntimeMetadata 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 flyteidl.core.Tasks.RuntimeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.RuntimeMetadata 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 flyteidl.core.Tasks.RuntimeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.RuntimeMetadata 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(flyteidl.core.Tasks.RuntimeMetadata 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; - } - /** - *
-     * Runtime information. This is losely defined to allow for extensibility.
-     * 
- * - * Protobuf type {@code flyteidl.core.RuntimeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.RuntimeMetadata) - flyteidl.core.Tasks.RuntimeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); - } - - // Construct using flyteidl.core.Tasks.RuntimeMetadata.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(); - type_ = 0; - - version_ = ""; - - flavor_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { - return flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.RuntimeMetadata build() { - flyteidl.core.Tasks.RuntimeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.RuntimeMetadata buildPartial() { - flyteidl.core.Tasks.RuntimeMetadata result = new flyteidl.core.Tasks.RuntimeMetadata(this); - result.type_ = type_; - result.version_ = version_; - result.flavor_ = flavor_; - 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 flyteidl.core.Tasks.RuntimeMetadata) { - return mergeFrom((flyteidl.core.Tasks.RuntimeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.RuntimeMetadata other) { - if (other == flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getFlavor().isEmpty()) { - flavor_ = other.flavor_; - 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 { - flyteidl.core.Tasks.RuntimeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.RuntimeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); - return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; - } - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public Builder setType(flyteidl.core.Tasks.RuntimeMetadata.RuntimeType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object flavor_ = ""; - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public java.lang.String getFlavor() { - java.lang.Object ref = flavor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - flavor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public com.google.protobuf.ByteString - getFlavorBytes() { - java.lang.Object ref = flavor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - flavor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public Builder setFlavor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - flavor_ = value; - onChanged(); - return this; - } - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public Builder clearFlavor() { - - flavor_ = getDefaultInstance().getFlavor(); - onChanged(); - return this; - } - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public Builder setFlavorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - flavor_ = 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:flyteidl.core.RuntimeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.RuntimeMetadata) - private static final flyteidl.core.Tasks.RuntimeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.RuntimeMetadata(); - } - - public static flyteidl.core.Tasks.RuntimeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RuntimeMetadata(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 flyteidl.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-     * 
- * - * bool discoverable = 1; - */ - boolean getDiscoverable(); - - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - boolean hasRuntime(); - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - flyteidl.core.Tasks.RuntimeMetadata getRuntime(); - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder(); - - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - boolean hasTimeout(); - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - com.google.protobuf.Duration getTimeout(); - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); - - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - boolean hasRetries(); - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - flyteidl.core.Literals.RetryStrategy getRetries(); - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); - - /** - *
-     * Indicates a logical version to apply to this task for the purpose of discovery.
-     * 
- * - * string discovery_version = 6; - */ - java.lang.String getDiscoveryVersion(); - /** - *
-     * Indicates a logical version to apply to this task for the purpose of discovery.
-     * 
- * - * string discovery_version = 6; - */ - com.google.protobuf.ByteString - getDiscoveryVersionBytes(); - - /** - *
-     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-     * of the ending of support for a given task.
-     * 
- * - * string deprecated_error_message = 7; - */ - java.lang.String getDeprecatedErrorMessage(); - /** - *
-     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-     * of the ending of support for a given task.
-     * 
- * - * string deprecated_error_message = 7; - */ - com.google.protobuf.ByteString - getDeprecatedErrorMessageBytes(); - - /** - * bool interruptible = 8; - */ - boolean getInterruptible(); - - public flyteidl.core.Tasks.TaskMetadata.InterruptibleValueCase getInterruptibleValueCase(); - } - /** - *
-   * Task Metadata
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskMetadata} - */ - public static final class TaskMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskMetadata) - TaskMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskMetadata.newBuilder() to construct. - private TaskMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskMetadata() { - discoveryVersion_ = ""; - deprecatedErrorMessage_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskMetadata( - 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 8: { - - discoverable_ = input.readBool(); - break; - } - case 18: { - flyteidl.core.Tasks.RuntimeMetadata.Builder subBuilder = null; - if (runtime_ != null) { - subBuilder = runtime_.toBuilder(); - } - runtime_ = input.readMessage(flyteidl.core.Tasks.RuntimeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(runtime_); - runtime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeout_ != null) { - subBuilder = timeout_.toBuilder(); - } - timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeout_); - timeout_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; - if (retries_ != null) { - subBuilder = retries_.toBuilder(); - } - retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retries_); - retries_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - discoveryVersion_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - deprecatedErrorMessage_ = s; - break; - } - case 64: { - interruptibleValueCase_ = 8; - interruptibleValue_ = input.readBool(); - 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 flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); - } - - private int interruptibleValueCase_ = 0; - private java.lang.Object interruptibleValue_; - public enum InterruptibleValueCase - implements com.google.protobuf.Internal.EnumLite { - INTERRUPTIBLE(8), - INTERRUPTIBLEVALUE_NOT_SET(0); - private final int value; - private InterruptibleValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InterruptibleValueCase valueOf(int value) { - return forNumber(value); - } - - public static InterruptibleValueCase forNumber(int value) { - switch (value) { - case 8: return INTERRUPTIBLE; - case 0: return INTERRUPTIBLEVALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public InterruptibleValueCase - getInterruptibleValueCase() { - return InterruptibleValueCase.forNumber( - interruptibleValueCase_); - } - - public static final int DISCOVERABLE_FIELD_NUMBER = 1; - private boolean discoverable_; - /** - *
-     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-     * 
- * - * bool discoverable = 1; - */ - public boolean getDiscoverable() { - return discoverable_; - } - - public static final int RUNTIME_FIELD_NUMBER = 2; - private flyteidl.core.Tasks.RuntimeMetadata runtime_; - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public boolean hasRuntime() { - return runtime_ != null; - } - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { - return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; - } - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { - return getRuntime(); - } - - public static final int TIMEOUT_FIELD_NUMBER = 4; - private com.google.protobuf.Duration timeout_; - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public boolean hasTimeout() { - return timeout_ != null; - } - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration getTimeout() { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - return getTimeout(); - } - - public static final int RETRIES_FIELD_NUMBER = 5; - private flyteidl.core.Literals.RetryStrategy retries_; - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public boolean hasRetries() { - return retries_ != null; - } - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy getRetries() { - return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { - return getRetries(); - } - - public static final int DISCOVERY_VERSION_FIELD_NUMBER = 6; - private volatile java.lang.Object discoveryVersion_; - /** - *
-     * Indicates a logical version to apply to this task for the purpose of discovery.
-     * 
- * - * string discovery_version = 6; - */ - public java.lang.String getDiscoveryVersion() { - java.lang.Object ref = discoveryVersion_; - 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(); - discoveryVersion_ = s; - return s; - } - } - /** - *
-     * Indicates a logical version to apply to this task for the purpose of discovery.
-     * 
- * - * string discovery_version = 6; - */ - public com.google.protobuf.ByteString - getDiscoveryVersionBytes() { - java.lang.Object ref = discoveryVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - discoveryVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER = 7; - private volatile java.lang.Object deprecatedErrorMessage_; - /** - *
-     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-     * of the ending of support for a given task.
-     * 
- * - * string deprecated_error_message = 7; - */ - public java.lang.String getDeprecatedErrorMessage() { - java.lang.Object ref = deprecatedErrorMessage_; - 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(); - deprecatedErrorMessage_ = s; - return s; - } - } - /** - *
-     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-     * of the ending of support for a given task.
-     * 
- * - * string deprecated_error_message = 7; - */ - public com.google.protobuf.ByteString - getDeprecatedErrorMessageBytes() { - java.lang.Object ref = deprecatedErrorMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deprecatedErrorMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 8; - /** - * bool interruptible = 8; - */ - public boolean getInterruptible() { - if (interruptibleValueCase_ == 8) { - return (java.lang.Boolean) interruptibleValue_; - } - return false; - } - - 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 (discoverable_ != false) { - output.writeBool(1, discoverable_); - } - if (runtime_ != null) { - output.writeMessage(2, getRuntime()); - } - if (timeout_ != null) { - output.writeMessage(4, getTimeout()); - } - if (retries_ != null) { - output.writeMessage(5, getRetries()); - } - if (!getDiscoveryVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, discoveryVersion_); - } - if (!getDeprecatedErrorMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deprecatedErrorMessage_); - } - if (interruptibleValueCase_ == 8) { - output.writeBool( - 8, (boolean)((java.lang.Boolean) interruptibleValue_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (discoverable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, discoverable_); - } - if (runtime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRuntime()); - } - if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTimeout()); - } - if (retries_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getRetries()); - } - if (!getDiscoveryVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, discoveryVersion_); - } - if (!getDeprecatedErrorMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deprecatedErrorMessage_); - } - if (interruptibleValueCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 8, (boolean)((java.lang.Boolean) interruptibleValue_)); - } - 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 flyteidl.core.Tasks.TaskMetadata)) { - return super.equals(obj); - } - flyteidl.core.Tasks.TaskMetadata other = (flyteidl.core.Tasks.TaskMetadata) obj; - - if (getDiscoverable() - != other.getDiscoverable()) return false; - if (hasRuntime() != other.hasRuntime()) return false; - if (hasRuntime()) { - if (!getRuntime() - .equals(other.getRuntime())) return false; - } - if (hasTimeout() != other.hasTimeout()) return false; - if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; - } - if (hasRetries() != other.hasRetries()) return false; - if (hasRetries()) { - if (!getRetries() - .equals(other.getRetries())) return false; - } - if (!getDiscoveryVersion() - .equals(other.getDiscoveryVersion())) return false; - if (!getDeprecatedErrorMessage() - .equals(other.getDeprecatedErrorMessage())) return false; - if (!getInterruptibleValueCase().equals(other.getInterruptibleValueCase())) return false; - switch (interruptibleValueCase_) { - case 8: - if (getInterruptible() - != other.getInterruptible()) 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) + DISCOVERABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDiscoverable()); - if (hasRuntime()) { - hash = (37 * hash) + RUNTIME_FIELD_NUMBER; - hash = (53 * hash) + getRuntime().hashCode(); - } - if (hasTimeout()) { - hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getTimeout().hashCode(); - } - if (hasRetries()) { - hash = (37 * hash) + RETRIES_FIELD_NUMBER; - hash = (53 * hash) + getRetries().hashCode(); - } - hash = (37 * hash) + DISCOVERY_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDiscoveryVersion().hashCode(); - hash = (37 * hash) + DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getDeprecatedErrorMessage().hashCode(); - switch (interruptibleValueCase_) { - case 8: - hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterruptible()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskMetadata 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 flyteidl.core.Tasks.TaskMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskMetadata 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 flyteidl.core.Tasks.TaskMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskMetadata 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(flyteidl.core.Tasks.TaskMetadata 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; - } - /** - *
-     * Task Metadata
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskMetadata) - flyteidl.core.Tasks.TaskMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); - } - - // Construct using flyteidl.core.Tasks.TaskMetadata.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(); - discoverable_ = false; - - if (runtimeBuilder_ == null) { - runtime_ = null; - } else { - runtime_ = null; - runtimeBuilder_ = null; - } - if (timeoutBuilder_ == null) { - timeout_ = null; - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - if (retriesBuilder_ == null) { - retries_ = null; - } else { - retries_ = null; - retriesBuilder_ = null; - } - discoveryVersion_ = ""; - - deprecatedErrorMessage_ = ""; - - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskMetadata getDefaultInstanceForType() { - return flyteidl.core.Tasks.TaskMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskMetadata build() { - flyteidl.core.Tasks.TaskMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskMetadata buildPartial() { - flyteidl.core.Tasks.TaskMetadata result = new flyteidl.core.Tasks.TaskMetadata(this); - result.discoverable_ = discoverable_; - if (runtimeBuilder_ == null) { - result.runtime_ = runtime_; - } else { - result.runtime_ = runtimeBuilder_.build(); - } - if (timeoutBuilder_ == null) { - result.timeout_ = timeout_; - } else { - result.timeout_ = timeoutBuilder_.build(); - } - if (retriesBuilder_ == null) { - result.retries_ = retries_; - } else { - result.retries_ = retriesBuilder_.build(); - } - result.discoveryVersion_ = discoveryVersion_; - result.deprecatedErrorMessage_ = deprecatedErrorMessage_; - if (interruptibleValueCase_ == 8) { - result.interruptibleValue_ = interruptibleValue_; - } - result.interruptibleValueCase_ = interruptibleValueCase_; - 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 flyteidl.core.Tasks.TaskMetadata) { - return mergeFrom((flyteidl.core.Tasks.TaskMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.TaskMetadata other) { - if (other == flyteidl.core.Tasks.TaskMetadata.getDefaultInstance()) return this; - if (other.getDiscoverable() != false) { - setDiscoverable(other.getDiscoverable()); - } - if (other.hasRuntime()) { - mergeRuntime(other.getRuntime()); - } - if (other.hasTimeout()) { - mergeTimeout(other.getTimeout()); - } - if (other.hasRetries()) { - mergeRetries(other.getRetries()); - } - if (!other.getDiscoveryVersion().isEmpty()) { - discoveryVersion_ = other.discoveryVersion_; - onChanged(); - } - if (!other.getDeprecatedErrorMessage().isEmpty()) { - deprecatedErrorMessage_ = other.deprecatedErrorMessage_; - onChanged(); - } - switch (other.getInterruptibleValueCase()) { - case INTERRUPTIBLE: { - setInterruptible(other.getInterruptible()); - break; - } - case INTERRUPTIBLEVALUE_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 { - flyteidl.core.Tasks.TaskMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.TaskMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int interruptibleValueCase_ = 0; - private java.lang.Object interruptibleValue_; - public InterruptibleValueCase - getInterruptibleValueCase() { - return InterruptibleValueCase.forNumber( - interruptibleValueCase_); - } - - public Builder clearInterruptibleValue() { - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - onChanged(); - return this; - } - - - private boolean discoverable_ ; - /** - *
-       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-       * 
- * - * bool discoverable = 1; - */ - public boolean getDiscoverable() { - return discoverable_; - } - /** - *
-       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-       * 
- * - * bool discoverable = 1; - */ - public Builder setDiscoverable(boolean value) { - - discoverable_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-       * 
- * - * bool discoverable = 1; - */ - public Builder clearDiscoverable() { - - discoverable_ = false; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.RuntimeMetadata runtime_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> runtimeBuilder_; - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public boolean hasRuntime() { - return runtimeBuilder_ != null || runtime_ != null; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { - if (runtimeBuilder_ == null) { - return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; - } else { - return runtimeBuilder_.getMessage(); - } - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public Builder setRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { - if (runtimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - runtime_ = value; - onChanged(); - } else { - runtimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public Builder setRuntime( - flyteidl.core.Tasks.RuntimeMetadata.Builder builderForValue) { - if (runtimeBuilder_ == null) { - runtime_ = builderForValue.build(); - onChanged(); - } else { - runtimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public Builder mergeRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { - if (runtimeBuilder_ == null) { - if (runtime_ != null) { - runtime_ = - flyteidl.core.Tasks.RuntimeMetadata.newBuilder(runtime_).mergeFrom(value).buildPartial(); - } else { - runtime_ = value; - } - onChanged(); - } else { - runtimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public Builder clearRuntime() { - if (runtimeBuilder_ == null) { - runtime_ = null; - onChanged(); - } else { - runtime_ = null; - runtimeBuilder_ = null; - } - - return this; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadata.Builder getRuntimeBuilder() { - - onChanged(); - return getRuntimeFieldBuilder().getBuilder(); - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { - if (runtimeBuilder_ != null) { - return runtimeBuilder_.getMessageOrBuilder(); - } else { - return runtime_ == null ? - flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; - } - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> - getRuntimeFieldBuilder() { - if (runtimeBuilder_ == null) { - runtimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder>( - getRuntime(), - getParentForChildren(), - isClean()); - runtime_ = null; - } - return runtimeBuilder_; - } - - private com.google.protobuf.Duration timeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public boolean hasTimeout() { - return timeoutBuilder_ != null || timeout_ != null; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration getTimeout() { - if (timeoutBuilder_ == null) { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } else { - return timeoutBuilder_.getMessage(); - } - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder setTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timeout_ = value; - onChanged(); - } else { - timeoutBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder setTimeout( - com.google.protobuf.Duration.Builder builderForValue) { - if (timeoutBuilder_ == null) { - timeout_ = builderForValue.build(); - onChanged(); - } else { - timeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder mergeTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (timeout_ != null) { - timeout_ = - com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); - } else { - timeout_ = value; - } - onChanged(); - } else { - timeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder clearTimeout() { - if (timeoutBuilder_ == null) { - timeout_ = null; - onChanged(); - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - - return this; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - - onChanged(); - return getTimeoutFieldBuilder().getBuilder(); - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - if (timeoutBuilder_ != null) { - return timeoutBuilder_.getMessageOrBuilder(); - } else { - return timeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getTimeoutFieldBuilder() { - if (timeoutBuilder_ == null) { - timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTimeout(), - getParentForChildren(), - isClean()); - timeout_ = null; - } - return timeoutBuilder_; - } - - private flyteidl.core.Literals.RetryStrategy retries_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public boolean hasRetries() { - return retriesBuilder_ != null || retries_ != null; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy getRetries() { - if (retriesBuilder_ == null) { - return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } else { - return retriesBuilder_.getMessage(); - } - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { - if (retriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - retries_ = value; - onChanged(); - } else { - retriesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder setRetries( - flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { - if (retriesBuilder_ == null) { - retries_ = builderForValue.build(); - onChanged(); - } else { - retriesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { - if (retriesBuilder_ == null) { - if (retries_ != null) { - retries_ = - flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); - } else { - retries_ = value; - } - onChanged(); - } else { - retriesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder clearRetries() { - if (retriesBuilder_ == null) { - retries_ = null; - onChanged(); - } else { - retries_ = null; - retriesBuilder_ = null; - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { - - onChanged(); - return getRetriesFieldBuilder().getBuilder(); - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { - if (retriesBuilder_ != null) { - return retriesBuilder_.getMessageOrBuilder(); - } else { - return retries_ == null ? - flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> - getRetriesFieldBuilder() { - if (retriesBuilder_ == null) { - retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( - getRetries(), - getParentForChildren(), - isClean()); - retries_ = null; - } - return retriesBuilder_; - } - - private java.lang.Object discoveryVersion_ = ""; - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public java.lang.String getDiscoveryVersion() { - java.lang.Object ref = discoveryVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - discoveryVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public com.google.protobuf.ByteString - getDiscoveryVersionBytes() { - java.lang.Object ref = discoveryVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - discoveryVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public Builder setDiscoveryVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - discoveryVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public Builder clearDiscoveryVersion() { - - discoveryVersion_ = getDefaultInstance().getDiscoveryVersion(); - onChanged(); - return this; - } - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public Builder setDiscoveryVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - discoveryVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object deprecatedErrorMessage_ = ""; - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public java.lang.String getDeprecatedErrorMessage() { - java.lang.Object ref = deprecatedErrorMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deprecatedErrorMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public com.google.protobuf.ByteString - getDeprecatedErrorMessageBytes() { - java.lang.Object ref = deprecatedErrorMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deprecatedErrorMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public Builder setDeprecatedErrorMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deprecatedErrorMessage_ = value; - onChanged(); - return this; - } - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public Builder clearDeprecatedErrorMessage() { - - deprecatedErrorMessage_ = getDefaultInstance().getDeprecatedErrorMessage(); - onChanged(); - return this; - } - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public Builder setDeprecatedErrorMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deprecatedErrorMessage_ = value; - onChanged(); - return this; - } - - /** - * bool interruptible = 8; - */ - public boolean getInterruptible() { - if (interruptibleValueCase_ == 8) { - return (java.lang.Boolean) interruptibleValue_; - } - return false; - } - /** - * bool interruptible = 8; - */ - public Builder setInterruptible(boolean value) { - interruptibleValueCase_ = 8; - interruptibleValue_ = value; - onChanged(); - return this; - } - /** - * bool interruptible = 8; - */ - public Builder clearInterruptible() { - if (interruptibleValueCase_ == 8) { - interruptibleValueCase_ = 0; - interruptibleValue_ = 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:flyteidl.core.TaskMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskMetadata) - private static final flyteidl.core.Tasks.TaskMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskMetadata(); - } - - public static flyteidl.core.Tasks.TaskMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskMetadata(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 flyteidl.core.Tasks.TaskMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskTemplateOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-     * implementation registered for the TaskCategory.
-     * 
- * - * string type = 2; - */ - java.lang.String getType(); - /** - *
-     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-     * implementation registered for the TaskCategory.
-     * 
- * - * string type = 2; - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - boolean hasMetadata(); - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - flyteidl.core.Tasks.TaskMetadata getMetadata(); - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - boolean hasInterface(); - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - flyteidl.core.Interface.TypedInterface getInterface(); - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); - - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - boolean hasCustom(); - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - com.google.protobuf.Struct getCustom(); - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - com.google.protobuf.StructOrBuilder getCustomOrBuilder(); - - /** - * .flyteidl.core.Container container = 6; - */ - boolean hasContainer(); - /** - * .flyteidl.core.Container container = 6; - */ - flyteidl.core.Tasks.Container getContainer(); - /** - * .flyteidl.core.Container container = 6; - */ - flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder(); - - public flyteidl.core.Tasks.TaskTemplate.TargetCase getTargetCase(); - } - /** - *
-   * A Task structure that uniquely identifies a task in the system
-   * Tasks are registered as a first step in the system.
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskTemplate} - */ - public static final class TaskTemplate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskTemplate) - TaskTemplateOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskTemplate.newBuilder() to construct. - private TaskTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskTemplate() { - type_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskTemplate( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 26: { - flyteidl.core.Tasks.TaskMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Tasks.TaskMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; - if (interface_ != null) { - subBuilder = interface_.toBuilder(); - } - interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(interface_); - interface_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (custom_ != null) { - subBuilder = custom_.toBuilder(); - } - custom_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(custom_); - custom_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - flyteidl.core.Tasks.Container.Builder subBuilder = null; - if (targetCase_ == 6) { - subBuilder = ((flyteidl.core.Tasks.Container) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Tasks.Container.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Tasks.Container) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 6; - 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 flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); - } - - private int targetCase_ = 0; - private java.lang.Object target_; - public enum TargetCase - implements com.google.protobuf.Internal.EnumLite { - CONTAINER(6), - TARGET_NOT_SET(0); - private final int value; - private TargetCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetCase valueOf(int value) { - return forNumber(value); - } - - public static TargetCase forNumber(int value) { - switch (value) { - case 6: return CONTAINER; - case 0: return TARGET_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object type_; - /** - *
-     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-     * implementation registered for the TaskCategory.
-     * 
- * - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - 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(); - type_ = s; - return s; - } - } - /** - *
-     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-     * implementation registered for the TaskCategory.
-     * 
- * - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 3; - private flyteidl.core.Tasks.TaskMetadata metadata_; - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int INTERFACE_FIELD_NUMBER = 4; - private flyteidl.core.Interface.TypedInterface interface_; - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public boolean hasInterface() { - return interface_ != null; - } - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterface getInterface() { - return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { - return getInterface(); - } - - public static final int CUSTOM_FIELD_NUMBER = 5; - private com.google.protobuf.Struct custom_; - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - public boolean hasCustom() { - return custom_ != null; - } - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.Struct getCustom() { - return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; - } - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { - return getCustom(); - } - - public static final int CONTAINER_FIELD_NUMBER = 6; - /** - * .flyteidl.core.Container container = 6; - */ - public boolean hasContainer() { - return targetCase_ == 6; - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.Container getContainer() { - if (targetCase_ == 6) { - return (flyteidl.core.Tasks.Container) target_; - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { - if (targetCase_ == 6) { - return (flyteidl.core.Tasks.Container) target_; - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (id_ != null) { - output.writeMessage(1, getId()); - } - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - if (interface_ != null) { - output.writeMessage(4, getInterface()); - } - if (custom_ != null) { - output.writeMessage(5, getCustom()); - } - if (targetCase_ == 6) { - output.writeMessage(6, (flyteidl.core.Tasks.Container) target_); - } - 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 (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - if (interface_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getInterface()); - } - if (custom_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCustom()); - } - if (targetCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (flyteidl.core.Tasks.Container) target_); - } - 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 flyteidl.core.Tasks.TaskTemplate)) { - return super.equals(obj); - } - flyteidl.core.Tasks.TaskTemplate other = (flyteidl.core.Tasks.TaskTemplate) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getType() - .equals(other.getType())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (hasInterface() != other.hasInterface()) return false; - if (hasInterface()) { - if (!getInterface() - .equals(other.getInterface())) return false; - } - if (hasCustom() != other.hasCustom()) return false; - if (hasCustom()) { - if (!getCustom() - .equals(other.getCustom())) return false; - } - if (!getTargetCase().equals(other.getTargetCase())) return false; - switch (targetCase_) { - case 6: - if (!getContainer() - .equals(other.getContainer())) 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(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasInterface()) { - hash = (37 * hash) + INTERFACE_FIELD_NUMBER; - hash = (53 * hash) + getInterface().hashCode(); - } - if (hasCustom()) { - hash = (37 * hash) + CUSTOM_FIELD_NUMBER; - hash = (53 * hash) + getCustom().hashCode(); - } - switch (targetCase_) { - case 6: - hash = (37 * hash) + CONTAINER_FIELD_NUMBER; - hash = (53 * hash) + getContainer().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskTemplate 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 flyteidl.core.Tasks.TaskTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskTemplate 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 flyteidl.core.Tasks.TaskTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskTemplate 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(flyteidl.core.Tasks.TaskTemplate 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 Task structure that uniquely identifies a task in the system
-     * Tasks are registered as a first step in the system.
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskTemplate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskTemplate) - flyteidl.core.Tasks.TaskTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); - } - - // Construct using flyteidl.core.Tasks.TaskTemplate.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - type_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (interfaceBuilder_ == null) { - interface_ = null; - } else { - interface_ = null; - interfaceBuilder_ = null; - } - if (customBuilder_ == null) { - custom_ = null; - } else { - custom_ = null; - customBuilder_ = null; - } - targetCase_ = 0; - target_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskTemplate getDefaultInstanceForType() { - return flyteidl.core.Tasks.TaskTemplate.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskTemplate build() { - flyteidl.core.Tasks.TaskTemplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskTemplate buildPartial() { - flyteidl.core.Tasks.TaskTemplate result = new flyteidl.core.Tasks.TaskTemplate(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.type_ = type_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (interfaceBuilder_ == null) { - result.interface_ = interface_; - } else { - result.interface_ = interfaceBuilder_.build(); - } - if (customBuilder_ == null) { - result.custom_ = custom_; - } else { - result.custom_ = customBuilder_.build(); - } - if (targetCase_ == 6) { - if (containerBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = containerBuilder_.build(); - } - } - result.targetCase_ = targetCase_; - 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 flyteidl.core.Tasks.TaskTemplate) { - return mergeFrom((flyteidl.core.Tasks.TaskTemplate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.TaskTemplate other) { - if (other == flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasInterface()) { - mergeInterface(other.getInterface()); - } - if (other.hasCustom()) { - mergeCustom(other.getCustom()); - } - switch (other.getTargetCase()) { - case CONTAINER: { - mergeContainer(other.getContainer()); - break; - } - case TARGET_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 { - flyteidl.core.Tasks.TaskTemplate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.TaskTemplate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int targetCase_ = 0; - private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public Builder clearTarget() { - targetCase_ = 0; - target_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object type_ = ""; - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.TaskMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public Builder setMetadata(flyteidl.core.Tasks.TaskMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public Builder setMetadata( - flyteidl.core.Tasks.TaskMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public Builder mergeMetadata(flyteidl.core.Tasks.TaskMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Tasks.TaskMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private flyteidl.core.Interface.TypedInterface interface_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public boolean hasInterface() { - return interfaceBuilder_ != null || interface_ != null; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterface getInterface() { - if (interfaceBuilder_ == null) { - return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } else { - return interfaceBuilder_.getMessage(); - } - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { - if (interfaceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - interface_ = value; - onChanged(); - } else { - interfaceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public Builder setInterface( - flyteidl.core.Interface.TypedInterface.Builder builderForValue) { - if (interfaceBuilder_ == null) { - interface_ = builderForValue.build(); - onChanged(); - } else { - interfaceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { - if (interfaceBuilder_ == null) { - if (interface_ != null) { - interface_ = - flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); - } else { - interface_ = value; - } - onChanged(); - } else { - interfaceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public Builder clearInterface() { - if (interfaceBuilder_ == null) { - interface_ = null; - onChanged(); - } else { - interface_ = null; - interfaceBuilder_ = null; - } - - return this; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { - - onChanged(); - return getInterfaceFieldBuilder().getBuilder(); - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { - if (interfaceBuilder_ != null) { - return interfaceBuilder_.getMessageOrBuilder(); - } else { - return interface_ == null ? - flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> - getInterfaceFieldBuilder() { - if (interfaceBuilder_ == null) { - interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( - getInterface(), - getParentForChildren(), - isClean()); - interface_ = null; - } - return interfaceBuilder_; - } - - private com.google.protobuf.Struct custom_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customBuilder_; - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public boolean hasCustom() { - return customBuilder_ != null || custom_ != null; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.Struct getCustom() { - if (customBuilder_ == null) { - return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; - } else { - return customBuilder_.getMessage(); - } - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public Builder setCustom(com.google.protobuf.Struct value) { - if (customBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - custom_ = value; - onChanged(); - } else { - customBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public Builder setCustom( - com.google.protobuf.Struct.Builder builderForValue) { - if (customBuilder_ == null) { - custom_ = builderForValue.build(); - onChanged(); - } else { - customBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public Builder mergeCustom(com.google.protobuf.Struct value) { - if (customBuilder_ == null) { - if (custom_ != null) { - custom_ = - com.google.protobuf.Struct.newBuilder(custom_).mergeFrom(value).buildPartial(); - } else { - custom_ = value; - } - onChanged(); - } else { - customBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public Builder clearCustom() { - if (customBuilder_ == null) { - custom_ = null; - onChanged(); - } else { - custom_ = null; - customBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.Struct.Builder getCustomBuilder() { - - onChanged(); - return getCustomFieldBuilder().getBuilder(); - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { - if (customBuilder_ != null) { - return customBuilder_.getMessageOrBuilder(); - } else { - return custom_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : custom_; - } - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getCustomFieldBuilder() { - if (customBuilder_ == null) { - customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getCustom(), - getParentForChildren(), - isClean()); - custom_ = null; - } - return customBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> containerBuilder_; - /** - * .flyteidl.core.Container container = 6; - */ - public boolean hasContainer() { - return targetCase_ == 6; - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.Container getContainer() { - if (containerBuilder_ == null) { - if (targetCase_ == 6) { - return (flyteidl.core.Tasks.Container) target_; - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } else { - if (targetCase_ == 6) { - return containerBuilder_.getMessage(); - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Container container = 6; - */ - public Builder setContainer(flyteidl.core.Tasks.Container value) { - if (containerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - containerBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - * .flyteidl.core.Container container = 6; - */ - public Builder setContainer( - flyteidl.core.Tasks.Container.Builder builderForValue) { - if (containerBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - containerBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 6; - return this; - } - /** - * .flyteidl.core.Container container = 6; - */ - public Builder mergeContainer(flyteidl.core.Tasks.Container value) { - if (containerBuilder_ == null) { - if (targetCase_ == 6 && - target_ != flyteidl.core.Tasks.Container.getDefaultInstance()) { - target_ = flyteidl.core.Tasks.Container.newBuilder((flyteidl.core.Tasks.Container) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 6) { - containerBuilder_.mergeFrom(value); - } - containerBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - * .flyteidl.core.Container container = 6; - */ - public Builder clearContainer() { - if (containerBuilder_ == null) { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - } - containerBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.Container.Builder getContainerBuilder() { - return getContainerFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { - if ((targetCase_ == 6) && (containerBuilder_ != null)) { - return containerBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 6) { - return (flyteidl.core.Tasks.Container) target_; - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Container container = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> - getContainerFieldBuilder() { - if (containerBuilder_ == null) { - if (!(targetCase_ == 6)) { - target_ = flyteidl.core.Tasks.Container.getDefaultInstance(); - } - containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder>( - (flyteidl.core.Tasks.Container) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 6; - onChanged();; - return containerBuilder_; - } - @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:flyteidl.core.TaskTemplate) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskTemplate) - private static final flyteidl.core.Tasks.TaskTemplate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskTemplate(); - } - - public static flyteidl.core.Tasks.TaskTemplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskTemplate(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 flyteidl.core.Tasks.TaskTemplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ContainerPortOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ContainerPort) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Number of port to expose on the pod's IP address.
-     * This must be a valid port number, 0 < x < 65536.
-     * 
- * - * uint32 container_port = 1; - */ - int getContainerPort(); - } - /** - *
-   * Defines port properties for a container.
-   * 
- * - * Protobuf type {@code flyteidl.core.ContainerPort} - */ - public static final class ContainerPort extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerPort) - ContainerPortOrBuilder { - private static final long serialVersionUID = 0L; - // Use ContainerPort.newBuilder() to construct. - private ContainerPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ContainerPort() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContainerPort( - 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 8: { - - containerPort_ = input.readUInt32(); - 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 flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); - } - - public static final int CONTAINER_PORT_FIELD_NUMBER = 1; - private int containerPort_; - /** - *
-     * Number of port to expose on the pod's IP address.
-     * This must be a valid port number, 0 < x < 65536.
-     * 
- * - * uint32 container_port = 1; - */ - public int getContainerPort() { - return containerPort_; - } - - 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 (containerPort_ != 0) { - output.writeUInt32(1, containerPort_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (containerPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, containerPort_); - } - 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 flyteidl.core.Tasks.ContainerPort)) { - return super.equals(obj); - } - flyteidl.core.Tasks.ContainerPort other = (flyteidl.core.Tasks.ContainerPort) obj; - - if (getContainerPort() - != other.getContainerPort()) 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) + CONTAINER_PORT_FIELD_NUMBER; - hash = (53 * hash) + getContainerPort(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.ContainerPort parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.ContainerPort 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 flyteidl.core.Tasks.ContainerPort parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.ContainerPort 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 flyteidl.core.Tasks.ContainerPort parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.ContainerPort 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(flyteidl.core.Tasks.ContainerPort 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; - } - /** - *
-     * Defines port properties for a container.
-     * 
- * - * Protobuf type {@code flyteidl.core.ContainerPort} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerPort) - flyteidl.core.Tasks.ContainerPortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); - } - - // Construct using flyteidl.core.Tasks.ContainerPort.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(); - containerPort_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.ContainerPort getDefaultInstanceForType() { - return flyteidl.core.Tasks.ContainerPort.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.ContainerPort build() { - flyteidl.core.Tasks.ContainerPort result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.ContainerPort buildPartial() { - flyteidl.core.Tasks.ContainerPort result = new flyteidl.core.Tasks.ContainerPort(this); - result.containerPort_ = containerPort_; - 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 flyteidl.core.Tasks.ContainerPort) { - return mergeFrom((flyteidl.core.Tasks.ContainerPort)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.ContainerPort other) { - if (other == flyteidl.core.Tasks.ContainerPort.getDefaultInstance()) return this; - if (other.getContainerPort() != 0) { - setContainerPort(other.getContainerPort()); - } - 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 { - flyteidl.core.Tasks.ContainerPort parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.ContainerPort) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int containerPort_ ; - /** - *
-       * Number of port to expose on the pod's IP address.
-       * This must be a valid port number, 0 < x < 65536.
-       * 
- * - * uint32 container_port = 1; - */ - public int getContainerPort() { - return containerPort_; - } - /** - *
-       * Number of port to expose on the pod's IP address.
-       * This must be a valid port number, 0 < x < 65536.
-       * 
- * - * uint32 container_port = 1; - */ - public Builder setContainerPort(int value) { - - containerPort_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of port to expose on the pod's IP address.
-       * This must be a valid port number, 0 < x < 65536.
-       * 
- * - * uint32 container_port = 1; - */ - public Builder clearContainerPort() { - - containerPort_ = 0; - 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:flyteidl.core.ContainerPort) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerPort) - private static final flyteidl.core.Tasks.ContainerPort DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.ContainerPort(); - } - - public static flyteidl.core.Tasks.ContainerPort getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContainerPort parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContainerPort(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 flyteidl.core.Tasks.ContainerPort getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ContainerOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Container) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Container image url. Eg: docker/redis:latest
-     * 
- * - * string image = 1; - */ - java.lang.String getImage(); - /** - *
-     * Container image url. Eg: docker/redis:latest
-     * 
- * - * string image = 1; - */ - com.google.protobuf.ByteString - getImageBytes(); - - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - java.util.List - getCommandList(); - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - int getCommandCount(); - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - java.lang.String getCommand(int index); - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - com.google.protobuf.ByteString - getCommandBytes(int index); - - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - java.util.List - getArgsList(); - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - int getArgsCount(); - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - java.lang.String getArgs(int index); - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - com.google.protobuf.ByteString - getArgsBytes(int index); - - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - boolean hasResources(); - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - flyteidl.core.Tasks.Resources getResources(); - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); - - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - java.util.List - getEnvList(); - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - flyteidl.core.Literals.KeyValuePair getEnv(int index); - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - int getEnvCount(); - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - java.util.List - getEnvOrBuilderList(); - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( - int index); - - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - java.util.List - getConfigList(); - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - flyteidl.core.Literals.KeyValuePair getConfig(int index); - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - int getConfigCount(); - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - java.util.List - getConfigOrBuilderList(); - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( - int index); - - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - java.util.List - getPortsList(); - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - flyteidl.core.Tasks.ContainerPort getPorts(int index); - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - int getPortsCount(); - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - java.util.List - getPortsOrBuilderList(); - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( - int index); - - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - boolean hasDataConfig(); - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - flyteidl.core.Tasks.DataLoadingConfig getDataConfig(); - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.core.Container} - */ - public static final class Container extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Container) - ContainerOrBuilder { - private static final long serialVersionUID = 0L; - // Use Container.newBuilder() to construct. - private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Container() { - image_ = ""; - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - env_ = java.util.Collections.emptyList(); - config_ = java.util.Collections.emptyList(); - ports_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Container( - 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(); - - image_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - command_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - command_.add(s); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - args_.add(s); - break; - } - case 34: { - flyteidl.core.Tasks.Resources.Builder subBuilder = null; - if (resources_ != null) { - subBuilder = resources_.toBuilder(); - } - resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resources_); - resources_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - env_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - env_.add( - input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - config_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - config_.add( - input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - ports_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - ports_.add( - input.readMessage(flyteidl.core.Tasks.ContainerPort.parser(), extensionRegistry)); - break; - } - case 74: { - flyteidl.core.Tasks.DataLoadingConfig.Builder subBuilder = null; - if (dataConfig_ != null) { - subBuilder = dataConfig_.toBuilder(); - } - dataConfig_ = input.readMessage(flyteidl.core.Tasks.DataLoadingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataConfig_); - dataConfig_ = 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_ & 0x00000002) != 0)) { - command_ = command_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - env_ = java.util.Collections.unmodifiableList(env_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - config_ = java.util.Collections.unmodifiableList(config_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - ports_ = java.util.Collections.unmodifiableList(ports_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); - } - - private int bitField0_; - public static final int IMAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object image_; - /** - *
-     * Container image url. Eg: docker/redis:latest
-     * 
- * - * string image = 1; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - 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(); - image_ = s; - return s; - } - } - /** - *
-     * Container image url. Eg: docker/redis:latest
-     * 
- * - * string image = 1; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMMAND_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList command_; - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - public com.google.protobuf.ProtocolStringList - getCommandList() { - return command_; - } - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - public int getCommandCount() { - return command_.size(); - } - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - public java.lang.String getCommand(int index) { - return command_.get(index); - } - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { - return command_.getByteString(index); - } - - public static final int ARGS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList args_; - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - public com.google.protobuf.ProtocolStringList - getArgsList() { - return args_; - } - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - public int getArgsCount() { - return args_.size(); - } - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int RESOURCES_FIELD_NUMBER = 4; - private flyteidl.core.Tasks.Resources resources_; - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public boolean hasResources() { - return resources_ != null; - } - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.Resources getResources() { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - return getResources(); - } - - public static final int ENV_FIELD_NUMBER = 5; - private java.util.List env_; - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List getEnvList() { - return env_; - } - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List - getEnvOrBuilderList() { - return env_; - } - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public int getEnvCount() { - return env_.size(); - } - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair getEnv(int index) { - return env_.get(index); - } - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( - int index) { - return env_.get(index); - } - - public static final int CONFIG_FIELD_NUMBER = 6; - private java.util.List config_; - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public java.util.List getConfigList() { - return config_; - } - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public java.util.List - getConfigOrBuilderList() { - return config_; - } - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public int getConfigCount() { - return config_.size(); - } - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePair getConfig(int index) { - return config_.get(index); - } - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( - int index) { - return config_.get(index); - } - - public static final int PORTS_FIELD_NUMBER = 7; - private java.util.List ports_; - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List getPortsList() { - return ports_; - } - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List - getPortsOrBuilderList() { - return ports_; - } - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public int getPortsCount() { - return ports_.size(); - } - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort getPorts(int index) { - return ports_.get(index); - } - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( - int index) { - return ports_.get(index); - } - - public static final int DATA_CONFIG_FIELD_NUMBER = 9; - private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public boolean hasDataConfig() { - return dataConfig_ != null; - } - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { - return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; - } - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { - return getDataConfig(); - } - - 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 (!getImageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); - } - for (int i = 0; i < command_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, command_.getRaw(i)); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); - } - if (resources_ != null) { - output.writeMessage(4, getResources()); - } - for (int i = 0; i < env_.size(); i++) { - output.writeMessage(5, env_.get(i)); - } - for (int i = 0; i < config_.size(); i++) { - output.writeMessage(6, config_.get(i)); - } - for (int i = 0; i < ports_.size(); i++) { - output.writeMessage(7, ports_.get(i)); - } - if (dataConfig_ != null) { - output.writeMessage(9, getDataConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getImageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); - } - { - int dataSize = 0; - for (int i = 0; i < command_.size(); i++) { - dataSize += computeStringSizeNoTag(command_.getRaw(i)); - } - size += dataSize; - size += 1 * getCommandList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - if (resources_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResources()); - } - for (int i = 0; i < env_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, env_.get(i)); - } - for (int i = 0; i < config_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, config_.get(i)); - } - for (int i = 0; i < ports_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, ports_.get(i)); - } - if (dataConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getDataConfig()); - } - 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 flyteidl.core.Tasks.Container)) { - return super.equals(obj); - } - flyteidl.core.Tasks.Container other = (flyteidl.core.Tasks.Container) obj; - - if (!getImage() - .equals(other.getImage())) return false; - if (!getCommandList() - .equals(other.getCommandList())) return false; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (hasResources() != other.hasResources()) return false; - if (hasResources()) { - if (!getResources() - .equals(other.getResources())) return false; - } - if (!getEnvList() - .equals(other.getEnvList())) return false; - if (!getConfigList() - .equals(other.getConfigList())) return false; - if (!getPortsList() - .equals(other.getPortsList())) return false; - if (hasDataConfig() != other.hasDataConfig()) return false; - if (hasDataConfig()) { - if (!getDataConfig() - .equals(other.getDataConfig())) 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) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - if (getCommandCount() > 0) { - hash = (37 * hash) + COMMAND_FIELD_NUMBER; - hash = (53 * hash) + getCommandList().hashCode(); - } - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (hasResources()) { - hash = (37 * hash) + RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getResources().hashCode(); - } - if (getEnvCount() > 0) { - hash = (37 * hash) + ENV_FIELD_NUMBER; - hash = (53 * hash) + getEnvList().hashCode(); - } - if (getConfigCount() > 0) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfigList().hashCode(); - } - if (getPortsCount() > 0) { - hash = (37 * hash) + PORTS_FIELD_NUMBER; - hash = (53 * hash) + getPortsList().hashCode(); - } - if (hasDataConfig()) { - hash = (37 * hash) + DATA_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDataConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.Container parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Container parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Container parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Container parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Container parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Container parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Container parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Container 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 flyteidl.core.Tasks.Container parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Container 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 flyteidl.core.Tasks.Container parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Container 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(flyteidl.core.Tasks.Container 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 flyteidl.core.Container} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Container) - flyteidl.core.Tasks.ContainerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); - } - - // Construct using flyteidl.core.Tasks.Container.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEnvFieldBuilder(); - getConfigFieldBuilder(); - getPortsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - image_ = ""; - - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (resourcesBuilder_ == null) { - resources_ = null; - } else { - resources_ = null; - resourcesBuilder_ = null; - } - if (envBuilder_ == null) { - env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - envBuilder_.clear(); - } - if (configBuilder_ == null) { - config_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - configBuilder_.clear(); - } - if (portsBuilder_ == null) { - ports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - portsBuilder_.clear(); - } - if (dataConfigBuilder_ == null) { - dataConfig_ = null; - } else { - dataConfig_ = null; - dataConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.Container getDefaultInstanceForType() { - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.Container build() { - flyteidl.core.Tasks.Container result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.Container buildPartial() { - flyteidl.core.Tasks.Container result = new flyteidl.core.Tasks.Container(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.image_ = image_; - if (((bitField0_ & 0x00000002) != 0)) { - command_ = command_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.command_ = command_; - if (((bitField0_ & 0x00000004) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.args_ = args_; - if (resourcesBuilder_ == null) { - result.resources_ = resources_; - } else { - result.resources_ = resourcesBuilder_.build(); - } - if (envBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - env_ = java.util.Collections.unmodifiableList(env_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.env_ = env_; - } else { - result.env_ = envBuilder_.build(); - } - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - config_ = java.util.Collections.unmodifiableList(config_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); - } - if (portsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - ports_ = java.util.Collections.unmodifiableList(ports_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.ports_ = ports_; - } else { - result.ports_ = portsBuilder_.build(); - } - if (dataConfigBuilder_ == null) { - result.dataConfig_ = dataConfig_; - } else { - result.dataConfig_ = dataConfigBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.core.Tasks.Container) { - return mergeFrom((flyteidl.core.Tasks.Container)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.Container other) { - if (other == flyteidl.core.Tasks.Container.getDefaultInstance()) return this; - if (!other.getImage().isEmpty()) { - image_ = other.image_; - onChanged(); - } - if (!other.command_.isEmpty()) { - if (command_.isEmpty()) { - command_ = other.command_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCommandIsMutable(); - command_.addAll(other.command_); - } - onChanged(); - } - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (other.hasResources()) { - mergeResources(other.getResources()); - } - if (envBuilder_ == null) { - if (!other.env_.isEmpty()) { - if (env_.isEmpty()) { - env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureEnvIsMutable(); - env_.addAll(other.env_); - } - onChanged(); - } - } else { - if (!other.env_.isEmpty()) { - if (envBuilder_.isEmpty()) { - envBuilder_.dispose(); - envBuilder_ = null; - env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000010); - envBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEnvFieldBuilder() : null; - } else { - envBuilder_.addAllMessages(other.env_); - } - } - } - if (configBuilder_ == null) { - if (!other.config_.isEmpty()) { - if (config_.isEmpty()) { - config_ = other.config_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureConfigIsMutable(); - config_.addAll(other.config_); - } - onChanged(); - } - } else { - if (!other.config_.isEmpty()) { - if (configBuilder_.isEmpty()) { - configBuilder_.dispose(); - configBuilder_ = null; - config_ = other.config_; - bitField0_ = (bitField0_ & ~0x00000020); - configBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConfigFieldBuilder() : null; - } else { - configBuilder_.addAllMessages(other.config_); - } - } - } - if (portsBuilder_ == null) { - if (!other.ports_.isEmpty()) { - if (ports_.isEmpty()) { - ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensurePortsIsMutable(); - ports_.addAll(other.ports_); - } - onChanged(); - } - } else { - if (!other.ports_.isEmpty()) { - if (portsBuilder_.isEmpty()) { - portsBuilder_.dispose(); - portsBuilder_ = null; - ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000040); - portsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPortsFieldBuilder() : null; - } else { - portsBuilder_.addAllMessages(other.ports_); - } - } - } - if (other.hasDataConfig()) { - mergeDataConfig(other.getDataConfig()); - } - 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 { - flyteidl.core.Tasks.Container parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.Container) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object image_ = ""; - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public Builder setImage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - image_ = value; - onChanged(); - return this; - } - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public Builder clearImage() { - - image_ = getDefaultInstance().getImage(); - onChanged(); - return this; - } - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - image_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureCommandIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - command_ = new com.google.protobuf.LazyStringArrayList(command_); - bitField0_ |= 0x00000002; - } - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public com.google.protobuf.ProtocolStringList - getCommandList() { - return command_.getUnmodifiableView(); - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public int getCommandCount() { - return command_.size(); - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public java.lang.String getCommand(int index) { - return command_.get(index); - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { - return command_.getByteString(index); - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder setCommand( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommandIsMutable(); - command_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder addCommand( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommandIsMutable(); - command_.add(value); - onChanged(); - return this; - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder addAllCommand( - java.lang.Iterable values) { - ensureCommandIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, command_); - onChanged(); - return this; - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder clearCommand() { - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder addCommandBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureCommandIsMutable(); - command_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000004; - } - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public com.google.protobuf.ProtocolStringList - getArgsList() { - return args_.getUnmodifiableView(); - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public int getArgsCount() { - return args_.size(); - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder setArgs( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder addArgs( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder addAllArgs( - java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); - onChanged(); - return this; - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private flyteidl.core.Tasks.Resources resources_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public boolean hasResources() { - return resourcesBuilder_ != null || resources_ != null; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.Resources getResources() { - if (resourcesBuilder_ == null) { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } else { - return resourcesBuilder_.getMessage(); - } - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public Builder setResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resources_ = value; - onChanged(); - } else { - resourcesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public Builder setResources( - flyteidl.core.Tasks.Resources.Builder builderForValue) { - if (resourcesBuilder_ == null) { - resources_ = builderForValue.build(); - onChanged(); - } else { - resourcesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public Builder mergeResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (resources_ != null) { - resources_ = - flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); - } else { - resources_ = value; - } - onChanged(); - } else { - resourcesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public Builder clearResources() { - if (resourcesBuilder_ == null) { - resources_ = null; - onChanged(); - } else { - resources_ = null; - resourcesBuilder_ = null; - } - - return this; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { - - onChanged(); - return getResourcesFieldBuilder().getBuilder(); - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - if (resourcesBuilder_ != null) { - return resourcesBuilder_.getMessageOrBuilder(); - } else { - return resources_ == null ? - flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> - getResourcesFieldBuilder() { - if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( - getResources(), - getParentForChildren(), - isClean()); - resources_ = null; - } - return resourcesBuilder_; - } - - private java.util.List env_ = - java.util.Collections.emptyList(); - private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - env_ = new java.util.ArrayList(env_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> envBuilder_; - - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List getEnvList() { - if (envBuilder_ == null) { - return java.util.Collections.unmodifiableList(env_); - } else { - return envBuilder_.getMessageList(); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public int getEnvCount() { - if (envBuilder_ == null) { - return env_.size(); - } else { - return envBuilder_.getCount(); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair getEnv(int index) { - if (envBuilder_ == null) { - return env_.get(index); - } else { - return envBuilder_.getMessage(index); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder setEnv( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (envBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.set(index, value); - onChanged(); - } else { - envBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder setEnv( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.set(index, builderForValue.build()); - onChanged(); - } else { - envBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addEnv(flyteidl.core.Literals.KeyValuePair value) { - if (envBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.add(value); - onChanged(); - } else { - envBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addEnv( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (envBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.add(index, value); - onChanged(); - } else { - envBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addEnv( - flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.add(builderForValue.build()); - onChanged(); - } else { - envBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addEnv( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.add(index, builderForValue.build()); - onChanged(); - } else { - envBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addAllEnv( - java.lang.Iterable values) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, env_); - onChanged(); - } else { - envBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder clearEnv() { - if (envBuilder_ == null) { - env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - envBuilder_.clear(); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder removeEnv(int index) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.remove(index); - onChanged(); - } else { - envBuilder_.remove(index); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair.Builder getEnvBuilder( - int index) { - return getEnvFieldBuilder().getBuilder(index); - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( - int index) { - if (envBuilder_ == null) { - return env_.get(index); } else { - return envBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List - getEnvOrBuilderList() { - if (envBuilder_ != null) { - return envBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(env_); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder() { - return getEnvFieldBuilder().addBuilder( - flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder( - int index) { - return getEnvFieldBuilder().addBuilder( - index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List - getEnvBuilderList() { - return getEnvFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> - getEnvFieldBuilder() { - if (envBuilder_ == null) { - envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( - env_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - env_ = null; - } - return envBuilder_; - } - - private java.util.List config_ = - java.util.Collections.emptyList(); - private void ensureConfigIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - config_ = new java.util.ArrayList(config_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> configBuilder_; - - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public java.util.List getConfigList() { - if (configBuilder_ == null) { - return java.util.Collections.unmodifiableList(config_); - } else { - return configBuilder_.getMessageList(); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public int getConfigCount() { - if (configBuilder_ == null) { - return config_.size(); - } else { - return configBuilder_.getCount(); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePair getConfig(int index) { - if (configBuilder_ == null) { - return config_.get(index); - } else { - return configBuilder_.getMessage(index); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder setConfig( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigIsMutable(); - config_.set(index, value); - onChanged(); - } else { - configBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder setConfig( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - config_.set(index, builderForValue.build()); - onChanged(); - } else { - configBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder addConfig(flyteidl.core.Literals.KeyValuePair value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigIsMutable(); - config_.add(value); - onChanged(); - } else { - configBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder addConfig( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigIsMutable(); - config_.add(index, value); - onChanged(); - } else { - configBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder addConfig( - flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - config_.add(builderForValue.build()); - onChanged(); - } else { - configBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder addConfig( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - config_.add(index, builderForValue.build()); - onChanged(); - } else { - configBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder addAllConfig( - java.lang.Iterable values) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, config_); - onChanged(); - } else { - configBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - configBuilder_.clear(); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder removeConfig(int index) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - config_.remove(index); - onChanged(); - } else { - configBuilder_.remove(index); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePair.Builder getConfigBuilder( - int index) { - return getConfigFieldBuilder().getBuilder(index); - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( - int index) { - if (configBuilder_ == null) { - return config_.get(index); } else { - return configBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public java.util.List - getConfigOrBuilderList() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(config_); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder() { - return getConfigFieldBuilder().addBuilder( - flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder( - int index) { - return getConfigFieldBuilder().addBuilder( - index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public java.util.List - getConfigBuilderList() { - return getConfigFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( - config_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - - private java.util.List ports_ = - java.util.Collections.emptyList(); - private void ensurePortsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - ports_ = new java.util.ArrayList(ports_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> portsBuilder_; - - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List getPortsList() { - if (portsBuilder_ == null) { - return java.util.Collections.unmodifiableList(ports_); - } else { - return portsBuilder_.getMessageList(); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public int getPortsCount() { - if (portsBuilder_ == null) { - return ports_.size(); - } else { - return portsBuilder_.getCount(); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort getPorts(int index) { - if (portsBuilder_ == null) { - return ports_.get(index); - } else { - return portsBuilder_.getMessage(index); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder setPorts( - int index, flyteidl.core.Tasks.ContainerPort value) { - if (portsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePortsIsMutable(); - ports_.set(index, value); - onChanged(); - } else { - portsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder setPorts( - int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.set(index, builderForValue.build()); - onChanged(); - } else { - portsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addPorts(flyteidl.core.Tasks.ContainerPort value) { - if (portsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePortsIsMutable(); - ports_.add(value); - onChanged(); - } else { - portsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addPorts( - int index, flyteidl.core.Tasks.ContainerPort value) { - if (portsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePortsIsMutable(); - ports_.add(index, value); - onChanged(); - } else { - portsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addPorts( - flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.add(builderForValue.build()); - onChanged(); - } else { - portsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addPorts( - int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.add(index, builderForValue.build()); - onChanged(); - } else { - portsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addAllPorts( - java.lang.Iterable values) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ports_); - onChanged(); - } else { - portsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder clearPorts() { - if (portsBuilder_ == null) { - ports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - portsBuilder_.clear(); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder removePorts(int index) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.remove(index); - onChanged(); - } else { - portsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort.Builder getPortsBuilder( - int index) { - return getPortsFieldBuilder().getBuilder(index); - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( - int index) { - if (portsBuilder_ == null) { - return ports_.get(index); } else { - return portsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List - getPortsOrBuilderList() { - if (portsBuilder_ != null) { - return portsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(ports_); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder() { - return getPortsFieldBuilder().addBuilder( - flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder( - int index) { - return getPortsFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List - getPortsBuilderList() { - return getPortsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> - getPortsFieldBuilder() { - if (portsBuilder_ == null) { - portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder>( - ports_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - ports_ = null; - } - return portsBuilder_; - } - - private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> dataConfigBuilder_; - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public boolean hasDataConfig() { - return dataConfigBuilder_ != null || dataConfig_ != null; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { - if (dataConfigBuilder_ == null) { - return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; - } else { - return dataConfigBuilder_.getMessage(); - } - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public Builder setDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { - if (dataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataConfig_ = value; - onChanged(); - } else { - dataConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public Builder setDataConfig( - flyteidl.core.Tasks.DataLoadingConfig.Builder builderForValue) { - if (dataConfigBuilder_ == null) { - dataConfig_ = builderForValue.build(); - onChanged(); - } else { - dataConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public Builder mergeDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { - if (dataConfigBuilder_ == null) { - if (dataConfig_ != null) { - dataConfig_ = - flyteidl.core.Tasks.DataLoadingConfig.newBuilder(dataConfig_).mergeFrom(value).buildPartial(); - } else { - dataConfig_ = value; - } - onChanged(); - } else { - dataConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public Builder clearDataConfig() { - if (dataConfigBuilder_ == null) { - dataConfig_ = null; - onChanged(); - } else { - dataConfig_ = null; - dataConfigBuilder_ = null; - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfig.Builder getDataConfigBuilder() { - - onChanged(); - return getDataConfigFieldBuilder().getBuilder(); - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { - if (dataConfigBuilder_ != null) { - return dataConfigBuilder_.getMessageOrBuilder(); - } else { - return dataConfig_ == null ? - flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; - } - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> - getDataConfigFieldBuilder() { - if (dataConfigBuilder_ == null) { - dataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder>( - getDataConfig(), - getParentForChildren(), - isClean()); - dataConfig_ = null; - } - return dataConfigBuilder_; - } - @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:flyteidl.core.Container) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Container) - private static final flyteidl.core.Tasks.Container DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.Container(); - } - - public static flyteidl.core.Tasks.Container getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Container parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Container(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 flyteidl.core.Tasks.Container getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IOStrategyOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.IOStrategy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Mode to use to manage downloads
-     * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - int getDownloadModeValue(); - /** - *
-     * Mode to use to manage downloads
-     * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode(); - - /** - *
-     * Mode to use to manage uploads
-     * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - int getUploadModeValue(); - /** - *
-     * Mode to use to manage uploads
-     * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode(); - } - /** - *
-   * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)
-   * 
- * - * Protobuf type {@code flyteidl.core.IOStrategy} - */ - public static final class IOStrategy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.IOStrategy) - IOStrategyOrBuilder { - private static final long serialVersionUID = 0L; - // Use IOStrategy.newBuilder() to construct. - private IOStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IOStrategy() { - downloadMode_ = 0; - uploadMode_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IOStrategy( - 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 8: { - int rawValue = input.readEnum(); - - downloadMode_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - uploadMode_ = rawValue; - 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 flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.IOStrategy.class, flyteidl.core.Tasks.IOStrategy.Builder.class); - } - - /** - *
-     * Mode to use for downloading
-     * 
- * - * Protobuf enum {@code flyteidl.core.IOStrategy.DownloadMode} - */ - public enum DownloadMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * All data will be downloaded before the main container is executed
-       * 
- * - * DOWNLOAD_EAGER = 0; - */ - DOWNLOAD_EAGER(0), - /** - *
-       * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details
-       * 
- * - * DOWNLOAD_STREAM = 1; - */ - DOWNLOAD_STREAM(1), - /** - *
-       * Large objects (offloaded) will not be downloaded
-       * 
- * - * DO_NOT_DOWNLOAD = 2; - */ - DO_NOT_DOWNLOAD(2), - UNRECOGNIZED(-1), - ; - - /** - *
-       * All data will be downloaded before the main container is executed
-       * 
- * - * DOWNLOAD_EAGER = 0; - */ - public static final int DOWNLOAD_EAGER_VALUE = 0; - /** - *
-       * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details
-       * 
- * - * DOWNLOAD_STREAM = 1; - */ - public static final int DOWNLOAD_STREAM_VALUE = 1; - /** - *
-       * Large objects (offloaded) will not be downloaded
-       * 
- * - * DO_NOT_DOWNLOAD = 2; - */ - public static final int DO_NOT_DOWNLOAD_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DownloadMode valueOf(int value) { - return forNumber(value); - } - - public static DownloadMode forNumber(int value) { - switch (value) { - case 0: return DOWNLOAD_EAGER; - case 1: return DOWNLOAD_STREAM; - case 2: return DO_NOT_DOWNLOAD; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DownloadMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DownloadMode findValueByNumber(int number) { - return DownloadMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Tasks.IOStrategy.getDescriptor().getEnumTypes().get(0); - } - - private static final DownloadMode[] VALUES = values(); - - public static DownloadMode 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 DownloadMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.IOStrategy.DownloadMode) - } - - /** - *
-     * Mode to use for uploading
-     * 
- * - * Protobuf enum {@code flyteidl.core.IOStrategy.UploadMode} - */ - public enum UploadMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * All data will be uploaded after the main container exits
-       * 
- * - * UPLOAD_ON_EXIT = 0; - */ - UPLOAD_ON_EXIT(0), - /** - *
-       * Data will be uploaded as it appears. Refer to protocol specification for details
-       * 
- * - * UPLOAD_EAGER = 1; - */ - UPLOAD_EAGER(1), - /** - *
-       * Data will not be uploaded, only references will be written
-       * 
- * - * DO_NOT_UPLOAD = 2; - */ - DO_NOT_UPLOAD(2), - UNRECOGNIZED(-1), - ; - - /** - *
-       * All data will be uploaded after the main container exits
-       * 
- * - * UPLOAD_ON_EXIT = 0; - */ - public static final int UPLOAD_ON_EXIT_VALUE = 0; - /** - *
-       * Data will be uploaded as it appears. Refer to protocol specification for details
-       * 
- * - * UPLOAD_EAGER = 1; - */ - public static final int UPLOAD_EAGER_VALUE = 1; - /** - *
-       * Data will not be uploaded, only references will be written
-       * 
- * - * DO_NOT_UPLOAD = 2; - */ - public static final int DO_NOT_UPLOAD_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static UploadMode valueOf(int value) { - return forNumber(value); - } - - public static UploadMode forNumber(int value) { - switch (value) { - case 0: return UPLOAD_ON_EXIT; - case 1: return UPLOAD_EAGER; - case 2: return DO_NOT_UPLOAD; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - UploadMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UploadMode findValueByNumber(int number) { - return UploadMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Tasks.IOStrategy.getDescriptor().getEnumTypes().get(1); - } - - private static final UploadMode[] VALUES = values(); - - public static UploadMode 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 UploadMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.IOStrategy.UploadMode) - } - - public static final int DOWNLOAD_MODE_FIELD_NUMBER = 1; - private int downloadMode_; - /** - *
-     * Mode to use to manage downloads
-     * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public int getDownloadModeValue() { - return downloadMode_; - } - /** - *
-     * Mode to use to manage downloads
-     * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.IOStrategy.DownloadMode result = flyteidl.core.Tasks.IOStrategy.DownloadMode.valueOf(downloadMode_); - return result == null ? flyteidl.core.Tasks.IOStrategy.DownloadMode.UNRECOGNIZED : result; - } - - public static final int UPLOAD_MODE_FIELD_NUMBER = 2; - private int uploadMode_; - /** - *
-     * Mode to use to manage uploads
-     * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public int getUploadModeValue() { - return uploadMode_; - } - /** - *
-     * Mode to use to manage uploads
-     * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.IOStrategy.UploadMode result = flyteidl.core.Tasks.IOStrategy.UploadMode.valueOf(uploadMode_); - return result == null ? flyteidl.core.Tasks.IOStrategy.UploadMode.UNRECOGNIZED : result; - } - - 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 (downloadMode_ != flyteidl.core.Tasks.IOStrategy.DownloadMode.DOWNLOAD_EAGER.getNumber()) { - output.writeEnum(1, downloadMode_); - } - if (uploadMode_ != flyteidl.core.Tasks.IOStrategy.UploadMode.UPLOAD_ON_EXIT.getNumber()) { - output.writeEnum(2, uploadMode_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (downloadMode_ != flyteidl.core.Tasks.IOStrategy.DownloadMode.DOWNLOAD_EAGER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, downloadMode_); - } - if (uploadMode_ != flyteidl.core.Tasks.IOStrategy.UploadMode.UPLOAD_ON_EXIT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, uploadMode_); - } - 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 flyteidl.core.Tasks.IOStrategy)) { - return super.equals(obj); - } - flyteidl.core.Tasks.IOStrategy other = (flyteidl.core.Tasks.IOStrategy) obj; - - if (downloadMode_ != other.downloadMode_) return false; - if (uploadMode_ != other.uploadMode_) 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) + DOWNLOAD_MODE_FIELD_NUMBER; - hash = (53 * hash) + downloadMode_; - hash = (37 * hash) + UPLOAD_MODE_FIELD_NUMBER; - hash = (53 * hash) + uploadMode_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.IOStrategy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.IOStrategy 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 flyteidl.core.Tasks.IOStrategy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.IOStrategy 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 flyteidl.core.Tasks.IOStrategy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.IOStrategy 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(flyteidl.core.Tasks.IOStrategy 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; - } - /** - *
-     * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)
-     * 
- * - * Protobuf type {@code flyteidl.core.IOStrategy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.IOStrategy) - flyteidl.core.Tasks.IOStrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.IOStrategy.class, flyteidl.core.Tasks.IOStrategy.Builder.class); - } - - // Construct using flyteidl.core.Tasks.IOStrategy.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(); - downloadMode_ = 0; - - uploadMode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.IOStrategy getDefaultInstanceForType() { - return flyteidl.core.Tasks.IOStrategy.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.IOStrategy build() { - flyteidl.core.Tasks.IOStrategy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.IOStrategy buildPartial() { - flyteidl.core.Tasks.IOStrategy result = new flyteidl.core.Tasks.IOStrategy(this); - result.downloadMode_ = downloadMode_; - result.uploadMode_ = uploadMode_; - 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 flyteidl.core.Tasks.IOStrategy) { - return mergeFrom((flyteidl.core.Tasks.IOStrategy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.IOStrategy other) { - if (other == flyteidl.core.Tasks.IOStrategy.getDefaultInstance()) return this; - if (other.downloadMode_ != 0) { - setDownloadModeValue(other.getDownloadModeValue()); - } - if (other.uploadMode_ != 0) { - setUploadModeValue(other.getUploadModeValue()); - } - 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 { - flyteidl.core.Tasks.IOStrategy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.IOStrategy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int downloadMode_ = 0; - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public int getDownloadModeValue() { - return downloadMode_; - } - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public Builder setDownloadModeValue(int value) { - downloadMode_ = value; - onChanged(); - return this; - } - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.IOStrategy.DownloadMode result = flyteidl.core.Tasks.IOStrategy.DownloadMode.valueOf(downloadMode_); - return result == null ? flyteidl.core.Tasks.IOStrategy.DownloadMode.UNRECOGNIZED : result; - } - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public Builder setDownloadMode(flyteidl.core.Tasks.IOStrategy.DownloadMode value) { - if (value == null) { - throw new NullPointerException(); - } - - downloadMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public Builder clearDownloadMode() { - - downloadMode_ = 0; - onChanged(); - return this; - } - - private int uploadMode_ = 0; - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public int getUploadModeValue() { - return uploadMode_; - } - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public Builder setUploadModeValue(int value) { - uploadMode_ = value; - onChanged(); - return this; - } - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.IOStrategy.UploadMode result = flyteidl.core.Tasks.IOStrategy.UploadMode.valueOf(uploadMode_); - return result == null ? flyteidl.core.Tasks.IOStrategy.UploadMode.UNRECOGNIZED : result; - } - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public Builder setUploadMode(flyteidl.core.Tasks.IOStrategy.UploadMode value) { - if (value == null) { - throw new NullPointerException(); - } - - uploadMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public Builder clearUploadMode() { - - uploadMode_ = 0; - 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:flyteidl.core.IOStrategy) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.IOStrategy) - private static final flyteidl.core.Tasks.IOStrategy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.IOStrategy(); - } - - public static flyteidl.core.Tasks.IOStrategy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IOStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IOStrategy(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 flyteidl.core.Tasks.IOStrategy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DataLoadingConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.DataLoadingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
-     * 
- * - * bool enabled = 1; - */ - boolean getEnabled(); - - /** - *
-     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-     * /var/flyte/inputs/y -> Y is a file in Binary format
-     * /var/flyte/inputs/z/... -> Note Z itself is a directory
-     * More information about the protocol - refer to docs #TODO reference docs here
-     * 
- * - * string input_path = 2; - */ - java.lang.String getInputPath(); - /** - *
-     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-     * /var/flyte/inputs/y -> Y is a file in Binary format
-     * /var/flyte/inputs/z/... -> Note Z itself is a directory
-     * More information about the protocol - refer to docs #TODO reference docs here
-     * 
- * - * string input_path = 2; - */ - com.google.protobuf.ByteString - getInputPathBytes(); - - /** - *
-     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-     * 
- * - * string output_path = 3; - */ - java.lang.String getOutputPath(); - /** - *
-     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-     * 
- * - * string output_path = 3; - */ - com.google.protobuf.ByteString - getOutputPathBytes(); - - /** - *
-     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-     * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - int getFormatValue(); - /** - *
-     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-     * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat(); - - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - boolean hasIoStrategy(); - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - flyteidl.core.Tasks.IOStrategy getIoStrategy(); - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder(); - } - /** - *
-   * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.
-   * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path
-   * Any outputs generated by the user container - within output_path are automatically uploaded.
-   * 
- * - * Protobuf type {@code flyteidl.core.DataLoadingConfig} - */ - public static final class DataLoadingConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.DataLoadingConfig) - DataLoadingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use DataLoadingConfig.newBuilder() to construct. - private DataLoadingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataLoadingConfig() { - inputPath_ = ""; - outputPath_ = ""; - format_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DataLoadingConfig( - 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 8: { - - enabled_ = input.readBool(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - inputPath_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - outputPath_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - format_ = rawValue; - break; - } - case 42: { - flyteidl.core.Tasks.IOStrategy.Builder subBuilder = null; - if (ioStrategy_ != null) { - subBuilder = ioStrategy_.toBuilder(); - } - ioStrategy_ = input.readMessage(flyteidl.core.Tasks.IOStrategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ioStrategy_); - ioStrategy_ = 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 flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.DataLoadingConfig.class, flyteidl.core.Tasks.DataLoadingConfig.Builder.class); - } - - /** - *
-     * LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. 
-     * If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.
-     * JSON and YAML do not need any protobuf definitions to read it
-     * All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)
-     * 
- * - * Protobuf enum {@code flyteidl.core.DataLoadingConfig.LiteralMapFormat} - */ - public enum LiteralMapFormat - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html
-       * 
- * - * JSON = 0; - */ - JSON(0), - /** - * YAML = 1; - */ - YAML(1), - /** - *
-       * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core
-       * 
- * - * PROTO = 2; - */ - PROTO(2), - UNRECOGNIZED(-1), - ; - - /** - *
-       * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html
-       * 
- * - * JSON = 0; - */ - public static final int JSON_VALUE = 0; - /** - * YAML = 1; - */ - public static final int YAML_VALUE = 1; - /** - *
-       * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core
-       * 
- * - * PROTO = 2; - */ - public static final int PROTO_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LiteralMapFormat valueOf(int value) { - return forNumber(value); - } - - public static LiteralMapFormat forNumber(int value) { - switch (value) { - case 0: return JSON; - case 1: return YAML; - case 2: return PROTO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LiteralMapFormat> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LiteralMapFormat findValueByNumber(int number) { - return LiteralMapFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Tasks.DataLoadingConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final LiteralMapFormat[] VALUES = values(); - - public static LiteralMapFormat 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 LiteralMapFormat(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.DataLoadingConfig.LiteralMapFormat) - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-     * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
-     * 
- * - * bool enabled = 1; - */ - public boolean getEnabled() { - return enabled_; - } - - public static final int INPUT_PATH_FIELD_NUMBER = 2; - private volatile java.lang.Object inputPath_; - /** - *
-     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-     * /var/flyte/inputs/y -> Y is a file in Binary format
-     * /var/flyte/inputs/z/... -> Note Z itself is a directory
-     * More information about the protocol - refer to docs #TODO reference docs here
-     * 
- * - * string input_path = 2; - */ - public java.lang.String getInputPath() { - java.lang.Object ref = inputPath_; - 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(); - inputPath_ = s; - return s; - } - } - /** - *
-     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-     * /var/flyte/inputs/y -> Y is a file in Binary format
-     * /var/flyte/inputs/z/... -> Note Z itself is a directory
-     * More information about the protocol - refer to docs #TODO reference docs here
-     * 
- * - * string input_path = 2; - */ - public com.google.protobuf.ByteString - getInputPathBytes() { - java.lang.Object ref = inputPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTPUT_PATH_FIELD_NUMBER = 3; - private volatile java.lang.Object outputPath_; - /** - *
-     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-     * 
- * - * string output_path = 3; - */ - public java.lang.String getOutputPath() { - java.lang.Object ref = outputPath_; - 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(); - outputPath_ = s; - return s; - } - } - /** - *
-     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-     * 
- * - * string output_path = 3; - */ - public com.google.protobuf.ByteString - getOutputPathBytes() { - java.lang.Object ref = outputPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORMAT_FIELD_NUMBER = 4; - private int format_; - /** - *
-     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-     * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public int getFormatValue() { - return format_; - } - /** - *
-     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-     * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat result = flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.valueOf(format_); - return result == null ? flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.UNRECOGNIZED : result; - } - - public static final int IO_STRATEGY_FIELD_NUMBER = 5; - private flyteidl.core.Tasks.IOStrategy ioStrategy_; - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public boolean hasIoStrategy() { - return ioStrategy_ != null; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategy getIoStrategy() { - return ioStrategy_ == null ? flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder() { - return getIoStrategy(); - } - - 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 (enabled_ != false) { - output.writeBool(1, enabled_); - } - if (!getInputPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputPath_); - } - if (!getOutputPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputPath_); - } - if (format_ != flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.JSON.getNumber()) { - output.writeEnum(4, format_); - } - if (ioStrategy_ != null) { - output.writeMessage(5, getIoStrategy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enabled_); - } - if (!getInputPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputPath_); - } - if (!getOutputPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputPath_); - } - if (format_ != flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.JSON.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, format_); - } - if (ioStrategy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getIoStrategy()); - } - 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 flyteidl.core.Tasks.DataLoadingConfig)) { - return super.equals(obj); - } - flyteidl.core.Tasks.DataLoadingConfig other = (flyteidl.core.Tasks.DataLoadingConfig) obj; - - if (getEnabled() - != other.getEnabled()) return false; - if (!getInputPath() - .equals(other.getInputPath())) return false; - if (!getOutputPath() - .equals(other.getOutputPath())) return false; - if (format_ != other.format_) return false; - if (hasIoStrategy() != other.hasIoStrategy()) return false; - if (hasIoStrategy()) { - if (!getIoStrategy() - .equals(other.getIoStrategy())) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); - hash = (37 * hash) + INPUT_PATH_FIELD_NUMBER; - hash = (53 * hash) + getInputPath().hashCode(); - hash = (37 * hash) + OUTPUT_PATH_FIELD_NUMBER; - hash = (53 * hash) + getOutputPath().hashCode(); - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + format_; - if (hasIoStrategy()) { - hash = (37 * hash) + IO_STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + getIoStrategy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.DataLoadingConfig 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 flyteidl.core.Tasks.DataLoadingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.DataLoadingConfig 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 flyteidl.core.Tasks.DataLoadingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.DataLoadingConfig 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(flyteidl.core.Tasks.DataLoadingConfig 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; - } - /** - *
-     * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.
-     * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path
-     * Any outputs generated by the user container - within output_path are automatically uploaded.
-     * 
- * - * Protobuf type {@code flyteidl.core.DataLoadingConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.DataLoadingConfig) - flyteidl.core.Tasks.DataLoadingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.DataLoadingConfig.class, flyteidl.core.Tasks.DataLoadingConfig.Builder.class); - } - - // Construct using flyteidl.core.Tasks.DataLoadingConfig.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(); - enabled_ = false; - - inputPath_ = ""; - - outputPath_ = ""; - - format_ = 0; - - if (ioStrategyBuilder_ == null) { - ioStrategy_ = null; - } else { - ioStrategy_ = null; - ioStrategyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.DataLoadingConfig getDefaultInstanceForType() { - return flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.DataLoadingConfig build() { - flyteidl.core.Tasks.DataLoadingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.DataLoadingConfig buildPartial() { - flyteidl.core.Tasks.DataLoadingConfig result = new flyteidl.core.Tasks.DataLoadingConfig(this); - result.enabled_ = enabled_; - result.inputPath_ = inputPath_; - result.outputPath_ = outputPath_; - result.format_ = format_; - if (ioStrategyBuilder_ == null) { - result.ioStrategy_ = ioStrategy_; - } else { - result.ioStrategy_ = ioStrategyBuilder_.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 flyteidl.core.Tasks.DataLoadingConfig) { - return mergeFrom((flyteidl.core.Tasks.DataLoadingConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.DataLoadingConfig other) { - if (other == flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (!other.getInputPath().isEmpty()) { - inputPath_ = other.inputPath_; - onChanged(); - } - if (!other.getOutputPath().isEmpty()) { - outputPath_ = other.outputPath_; - onChanged(); - } - if (other.format_ != 0) { - setFormatValue(other.getFormatValue()); - } - if (other.hasIoStrategy()) { - mergeIoStrategy(other.getIoStrategy()); - } - 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 { - flyteidl.core.Tasks.DataLoadingConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.DataLoadingConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_ ; - /** - *
-       * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
-       * 
- * - * bool enabled = 1; - */ - public boolean getEnabled() { - return enabled_; - } - /** - *
-       * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
-       * 
- * - * bool enabled = 1; - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-       * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
-       * 
- * - * bool enabled = 1; - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object inputPath_ = ""; - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public java.lang.String getInputPath() { - java.lang.Object ref = inputPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public com.google.protobuf.ByteString - getInputPathBytes() { - java.lang.Object ref = inputPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public Builder setInputPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputPath_ = value; - onChanged(); - return this; - } - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public Builder clearInputPath() { - - inputPath_ = getDefaultInstance().getInputPath(); - onChanged(); - return this; - } - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public Builder setInputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputPath_ = value; - onChanged(); - return this; - } - - private java.lang.Object outputPath_ = ""; - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public java.lang.String getOutputPath() { - java.lang.Object ref = outputPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public com.google.protobuf.ByteString - getOutputPathBytes() { - java.lang.Object ref = outputPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public Builder setOutputPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputPath_ = value; - onChanged(); - return this; - } - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public Builder clearOutputPath() { - - outputPath_ = getDefaultInstance().getOutputPath(); - onChanged(); - return this; - } - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public Builder setOutputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputPath_ = value; - onChanged(); - return this; - } - - private int format_ = 0; - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public int getFormatValue() { - return format_; - } - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public Builder setFormatValue(int value) { - format_ = value; - onChanged(); - return this; - } - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat result = flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.valueOf(format_); - return result == null ? flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.UNRECOGNIZED : result; - } - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public Builder setFormat(flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat value) { - if (value == null) { - throw new NullPointerException(); - } - - format_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public Builder clearFormat() { - - format_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.IOStrategy ioStrategy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder> ioStrategyBuilder_; - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public boolean hasIoStrategy() { - return ioStrategyBuilder_ != null || ioStrategy_ != null; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategy getIoStrategy() { - if (ioStrategyBuilder_ == null) { - return ioStrategy_ == null ? flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; - } else { - return ioStrategyBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public Builder setIoStrategy(flyteidl.core.Tasks.IOStrategy value) { - if (ioStrategyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ioStrategy_ = value; - onChanged(); - } else { - ioStrategyBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public Builder setIoStrategy( - flyteidl.core.Tasks.IOStrategy.Builder builderForValue) { - if (ioStrategyBuilder_ == null) { - ioStrategy_ = builderForValue.build(); - onChanged(); - } else { - ioStrategyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public Builder mergeIoStrategy(flyteidl.core.Tasks.IOStrategy value) { - if (ioStrategyBuilder_ == null) { - if (ioStrategy_ != null) { - ioStrategy_ = - flyteidl.core.Tasks.IOStrategy.newBuilder(ioStrategy_).mergeFrom(value).buildPartial(); - } else { - ioStrategy_ = value; - } - onChanged(); - } else { - ioStrategyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public Builder clearIoStrategy() { - if (ioStrategyBuilder_ == null) { - ioStrategy_ = null; - onChanged(); - } else { - ioStrategy_ = null; - ioStrategyBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategy.Builder getIoStrategyBuilder() { - - onChanged(); - return getIoStrategyFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder() { - if (ioStrategyBuilder_ != null) { - return ioStrategyBuilder_.getMessageOrBuilder(); - } else { - return ioStrategy_ == null ? - flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; - } - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder> - getIoStrategyFieldBuilder() { - if (ioStrategyBuilder_ == null) { - ioStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder>( - getIoStrategy(), - getParentForChildren(), - isClean()); - ioStrategy_ = null; - } - return ioStrategyBuilder_; - } - @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:flyteidl.core.DataLoadingConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.DataLoadingConfig) - private static final flyteidl.core.Tasks.DataLoadingConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.DataLoadingConfig(); - } - - public static flyteidl.core.Tasks.DataLoadingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataLoadingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DataLoadingConfig(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 flyteidl.core.Tasks.DataLoadingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Resources_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Resources_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_RuntimeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskTemplate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ContainerPort_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ContainerPort_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Container_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Container_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_IOStrategy_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_IOStrategy_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_DataLoadingConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_DataLoadingConfig_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\031flyteidl/core/tasks.proto\022\rflyteidl.co" + - "re\032\036flyteidl/core/identifier.proto\032\035flyt" + - "eidl/core/interface.proto\032\034flyteidl/core" + - "/literals.proto\032\036google/protobuf/duratio" + - "n.proto\032\034google/protobuf/struct.proto\"\232\002" + - "\n\tResources\0228\n\010requests\030\001 \003(\0132&.flyteidl" + - ".core.Resources.ResourceEntry\0226\n\006limits\030" + - "\002 \003(\0132&.flyteidl.core.Resources.Resource" + - "Entry\032S\n\rResourceEntry\0223\n\004name\030\001 \001(\0162%.f" + - "lyteidl.core.Resources.ResourceName\022\r\n\005v" + - "alue\030\002 \001(\t\"F\n\014ResourceName\022\013\n\007UNKNOWN\020\000\022" + - "\007\n\003CPU\020\001\022\007\n\003GPU\020\002\022\n\n\006MEMORY\020\003\022\013\n\007STORAGE" + - "\020\004\"\225\001\n\017RuntimeMetadata\0228\n\004type\030\001 \001(\0162*.f" + - "lyteidl.core.RuntimeMetadata.RuntimeType" + - "\022\017\n\007version\030\002 \001(\t\022\016\n\006flavor\030\003 \001(\t\"\'\n\013Run" + - "timeType\022\t\n\005OTHER\020\000\022\r\n\tFLYTE_SDK\020\001\"\235\002\n\014T" + - "askMetadata\022\024\n\014discoverable\030\001 \001(\010\022/\n\007run" + - "time\030\002 \001(\0132\036.flyteidl.core.RuntimeMetada" + - "ta\022*\n\007timeout\030\004 \001(\0132\031.google.protobuf.Du" + - "ration\022-\n\007retries\030\005 \001(\0132\034.flyteidl.core." + - "RetryStrategy\022\031\n\021discovery_version\030\006 \001(\t" + - "\022 \n\030deprecated_error_message\030\007 \001(\t\022\027\n\rin" + - "terruptible\030\010 \001(\010H\000B\025\n\023interruptible_val" + - "ue\"\206\002\n\014TaskTemplate\022%\n\002id\030\001 \001(\0132\031.flytei" + - "dl.core.Identifier\022\014\n\004type\030\002 \001(\t\022-\n\010meta" + - "data\030\003 \001(\0132\033.flyteidl.core.TaskMetadata\022" + - "0\n\tinterface\030\004 \001(\0132\035.flyteidl.core.Typed" + - "Interface\022\'\n\006custom\030\005 \001(\0132\027.google.proto" + - "buf.Struct\022-\n\tcontainer\030\006 \001(\0132\030.flyteidl" + - ".core.ContainerH\000B\010\n\006target\"\'\n\rContainer" + - "Port\022\026\n\016container_port\030\001 \001(\r\"\241\002\n\tContain" + - "er\022\r\n\005image\030\001 \001(\t\022\017\n\007command\030\002 \003(\t\022\014\n\004ar" + - "gs\030\003 \003(\t\022+\n\tresources\030\004 \001(\0132\030.flyteidl.c" + - "ore.Resources\022(\n\003env\030\005 \003(\0132\033.flyteidl.co" + - "re.KeyValuePair\022+\n\006config\030\006 \003(\0132\033.flytei" + - "dl.core.KeyValuePair\022+\n\005ports\030\007 \003(\0132\034.fl" + - "yteidl.core.ContainerPort\0225\n\013data_config" + - "\030\t \001(\0132 .flyteidl.core.DataLoadingConfig" + - "\"\233\002\n\nIOStrategy\022=\n\rdownload_mode\030\001 \001(\0162&" + - ".flyteidl.core.IOStrategy.DownloadMode\0229" + - "\n\013upload_mode\030\002 \001(\0162$.flyteidl.core.IOSt" + - "rategy.UploadMode\"L\n\014DownloadMode\022\022\n\016DOW" + - "NLOAD_EAGER\020\000\022\023\n\017DOWNLOAD_STREAM\020\001\022\023\n\017DO" + - "_NOT_DOWNLOAD\020\002\"E\n\nUploadMode\022\022\n\016UPLOAD_" + - "ON_EXIT\020\000\022\020\n\014UPLOAD_EAGER\020\001\022\021\n\rDO_NOT_UP" + - "LOAD\020\002\"\363\001\n\021DataLoadingConfig\022\017\n\007enabled\030" + - "\001 \001(\010\022\022\n\ninput_path\030\002 \001(\t\022\023\n\013output_path" + - "\030\003 \001(\t\022A\n\006format\030\004 \001(\01621.flyteidl.core.D" + - "ataLoadingConfig.LiteralMapFormat\022.\n\013io_" + - "strategy\030\005 \001(\0132\031.flyteidl.core.IOStrateg" + - "y\"1\n\020LiteralMapFormat\022\010\n\004JSON\020\000\022\010\n\004YAML\020" + - "\001\022\t\n\005PROTO\020\002B2Z0github.com/lyft/flyteidl" + - "/gen/pb-go/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Interface.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_Resources_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_Resources_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Resources_descriptor, - new java.lang.String[] { "Requests", "Limits", }); - internal_static_flyteidl_core_Resources_ResourceEntry_descriptor = - internal_static_flyteidl_core_Resources_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Resources_ResourceEntry_descriptor, - new java.lang.String[] { "Name", "Value", }); - internal_static_flyteidl_core_RuntimeMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_RuntimeMetadata_descriptor, - new java.lang.String[] { "Type", "Version", "Flavor", }); - internal_static_flyteidl_core_TaskMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TaskMetadata_descriptor, - new java.lang.String[] { "Discoverable", "Runtime", "Timeout", "Retries", "DiscoveryVersion", "DeprecatedErrorMessage", "Interruptible", "InterruptibleValue", }); - internal_static_flyteidl_core_TaskTemplate_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TaskTemplate_descriptor, - new java.lang.String[] { "Id", "Type", "Metadata", "Interface", "Custom", "Container", "Target", }); - internal_static_flyteidl_core_ContainerPort_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_core_ContainerPort_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ContainerPort_descriptor, - new java.lang.String[] { "ContainerPort", }); - internal_static_flyteidl_core_Container_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_core_Container_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Container_descriptor, - new java.lang.String[] { "Image", "Command", "Args", "Resources", "Env", "Config", "Ports", "DataConfig", }); - internal_static_flyteidl_core_IOStrategy_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_core_IOStrategy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_IOStrategy_descriptor, - new java.lang.String[] { "DownloadMode", "UploadMode", }); - internal_static_flyteidl_core_DataLoadingConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_DataLoadingConfig_descriptor, - new java.lang.String[] { "Enabled", "InputPath", "OutputPath", "Format", "IoStrategy", }); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Interface.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Types.java b/gen/pb-java/flyteidl/core/Types.java deleted file mode 100644 index 63ed77fdb..000000000 --- a/gen/pb-java/flyteidl/core/Types.java +++ /dev/null @@ -1,6407 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/types.proto - -package flyteidl.core; - -public final class Types { - private Types() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * Define a set of simple types.
-   * 
- * - * Protobuf enum {@code flyteidl.core.SimpleType} - */ - public enum SimpleType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NONE = 0; - */ - NONE(0), - /** - * INTEGER = 1; - */ - INTEGER(1), - /** - * FLOAT = 2; - */ - FLOAT(2), - /** - * STRING = 3; - */ - STRING(3), - /** - * BOOLEAN = 4; - */ - BOOLEAN(4), - /** - * DATETIME = 5; - */ - DATETIME(5), - /** - * DURATION = 6; - */ - DURATION(6), - /** - * BINARY = 7; - */ - BINARY(7), - /** - * ERROR = 8; - */ - ERROR(8), - /** - * STRUCT = 9; - */ - STRUCT(9), - UNRECOGNIZED(-1), - ; - - /** - * NONE = 0; - */ - public static final int NONE_VALUE = 0; - /** - * INTEGER = 1; - */ - public static final int INTEGER_VALUE = 1; - /** - * FLOAT = 2; - */ - public static final int FLOAT_VALUE = 2; - /** - * STRING = 3; - */ - public static final int STRING_VALUE = 3; - /** - * BOOLEAN = 4; - */ - public static final int BOOLEAN_VALUE = 4; - /** - * DATETIME = 5; - */ - public static final int DATETIME_VALUE = 5; - /** - * DURATION = 6; - */ - public static final int DURATION_VALUE = 6; - /** - * BINARY = 7; - */ - public static final int BINARY_VALUE = 7; - /** - * ERROR = 8; - */ - public static final int ERROR_VALUE = 8; - /** - * STRUCT = 9; - */ - public static final int STRUCT_VALUE = 9; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SimpleType valueOf(int value) { - return forNumber(value); - } - - public static SimpleType forNumber(int value) { - switch (value) { - case 0: return NONE; - case 1: return INTEGER; - case 2: return FLOAT; - case 3: return STRING; - case 4: return BOOLEAN; - case 5: return DATETIME; - case 6: return DURATION; - case 7: return BINARY; - case 8: return ERROR; - case 9: return STRUCT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - SimpleType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SimpleType findValueByNumber(int number) { - return SimpleType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Types.getDescriptor().getEnumTypes().get(0); - } - - private static final SimpleType[] VALUES = values(); - - public static SimpleType 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 SimpleType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.SimpleType) - } - - public interface SchemaTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - java.util.List - getColumnsList(); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - int getColumnsCount(); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - java.util.List - getColumnsOrBuilderList(); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( - int index); - } - /** - *
-   * Defines schema columns and types to strongly type-validate schemas interoperability.
-   * 
- * - * Protobuf type {@code flyteidl.core.SchemaType} - */ - public static final class SchemaType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType) - SchemaTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use SchemaType.newBuilder() to construct. - private SchemaType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SchemaType() { - columns_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SchemaType( - 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 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - columns_.add( - input.readMessage(flyteidl.core.Types.SchemaType.SchemaColumn.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)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); - } - - public interface SchemaColumnOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType.SchemaColumn) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * A unique name -within the schema type- for the column
-       * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-       * A unique name -within the schema type- for the column
-       * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-       * The column type. This allows a limited set of types currently.
-       * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - int getTypeValue(); - /** - *
-       * The column type. This allows a limited set of types currently.
-       * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType(); - } - /** - * Protobuf type {@code flyteidl.core.SchemaType.SchemaColumn} - */ - public static final class SchemaColumn extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType.SchemaColumn) - SchemaColumnOrBuilder { - private static final long serialVersionUID = 0L; - // Use SchemaColumn.newBuilder() to construct. - private SchemaColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SchemaColumn() { - name_ = ""; - type_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SchemaColumn( - 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(); - - type_ = rawValue; - 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 flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} - */ - public enum SchemaColumnType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * INTEGER = 0; - */ - INTEGER(0), - /** - * FLOAT = 1; - */ - FLOAT(1), - /** - * STRING = 2; - */ - STRING(2), - /** - * BOOLEAN = 3; - */ - BOOLEAN(3), - /** - * DATETIME = 4; - */ - DATETIME(4), - /** - * DURATION = 5; - */ - DURATION(5), - UNRECOGNIZED(-1), - ; - - /** - * INTEGER = 0; - */ - public static final int INTEGER_VALUE = 0; - /** - * FLOAT = 1; - */ - public static final int FLOAT_VALUE = 1; - /** - * STRING = 2; - */ - public static final int STRING_VALUE = 2; - /** - * BOOLEAN = 3; - */ - public static final int BOOLEAN_VALUE = 3; - /** - * DATETIME = 4; - */ - public static final int DATETIME_VALUE = 4; - /** - * DURATION = 5; - */ - public static final int DURATION_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SchemaColumnType valueOf(int value) { - return forNumber(value); - } - - public static SchemaColumnType forNumber(int value) { - switch (value) { - case 0: return INTEGER; - case 1: return FLOAT; - case 2: return STRING; - case 3: return BOOLEAN; - case 4: return DATETIME; - case 5: return DURATION; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - SchemaColumnType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SchemaColumnType findValueByNumber(int number) { - return SchemaColumnType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Types.SchemaType.SchemaColumn.getDescriptor().getEnumTypes().get(0); - } - - private static final SchemaColumnType[] VALUES = values(); - - public static SchemaColumnType 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 SchemaColumnType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-       * A unique name -within the schema type- for the column
-       * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-       * A unique name -within the schema type- for the column
-       * 
- * - * string name = 1; - */ - 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 TYPE_FIELD_NUMBER = 2; - private int type_; - /** - *
-       * The column type. This allows a limited set of types currently.
-       * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public int getTypeValue() { - return type_; - } - /** - *
-       * The column type. This allows a limited set of types currently.
-       * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); - return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { - output.writeEnum(2, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); - } - 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 flyteidl.core.Types.SchemaType.SchemaColumn)) { - return super.equals(obj); - } - flyteidl.core.Types.SchemaType.SchemaColumn other = (flyteidl.core.Types.SchemaType.SchemaColumn) obj; - - if (!getName() - .equals(other.getName())) return false; - if (type_ != other.type_) 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) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn 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 flyteidl.core.Types.SchemaType.SchemaColumn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn 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 flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn 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(flyteidl.core.Types.SchemaType.SchemaColumn 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 flyteidl.core.SchemaType.SchemaColumn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType.SchemaColumn) - flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); - } - - // Construct using flyteidl.core.Types.SchemaType.SchemaColumn.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_ = ""; - - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { - return flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType.SchemaColumn build() { - flyteidl.core.Types.SchemaType.SchemaColumn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType.SchemaColumn buildPartial() { - flyteidl.core.Types.SchemaType.SchemaColumn result = new flyteidl.core.Types.SchemaType.SchemaColumn(this); - result.name_ = name_; - result.type_ = type_; - 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 flyteidl.core.Types.SchemaType.SchemaColumn) { - return mergeFrom((flyteidl.core.Types.SchemaType.SchemaColumn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.SchemaType.SchemaColumn other) { - if (other == flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - 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 { - flyteidl.core.Types.SchemaType.SchemaColumn parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.SchemaType.SchemaColumn) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public int getTypeValue() { - return type_; - } - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); - return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; - } - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public Builder setType(flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public Builder clearType() { - - type_ = 0; - 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:flyteidl.core.SchemaType.SchemaColumn) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType.SchemaColumn) - private static final flyteidl.core.Types.SchemaType.SchemaColumn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType.SchemaColumn(); - } - - public static flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SchemaColumn(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 flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int COLUMNS_FIELD_NUMBER = 3; - private java.util.List columns_; - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List getColumnsList() { - return columns_; - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List - getColumnsOrBuilderList() { - return columns_; - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public int getColumnsCount() { - return columns_.size(); - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { - return columns_.get(index); - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( - int index) { - return columns_.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 < columns_.size(); i++) { - output.writeMessage(3, columns_.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 < columns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, columns_.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 flyteidl.core.Types.SchemaType)) { - return super.equals(obj); - } - flyteidl.core.Types.SchemaType other = (flyteidl.core.Types.SchemaType) obj; - - if (!getColumnsList() - .equals(other.getColumnsList())) 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 (getColumnsCount() > 0) { - hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getColumnsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.SchemaType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType 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 flyteidl.core.Types.SchemaType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType 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 flyteidl.core.Types.SchemaType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType 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(flyteidl.core.Types.SchemaType 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; - } - /** - *
-     * Defines schema columns and types to strongly type-validate schemas interoperability.
-     * 
- * - * Protobuf type {@code flyteidl.core.SchemaType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType) - flyteidl.core.Types.SchemaTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); - } - - // Construct using flyteidl.core.Types.SchemaType.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getColumnsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - columnsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType getDefaultInstanceForType() { - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType build() { - flyteidl.core.Types.SchemaType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType buildPartial() { - flyteidl.core.Types.SchemaType result = new flyteidl.core.Types.SchemaType(this); - int from_bitField0_ = bitField0_; - if (columnsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.columns_ = columns_; - } else { - result.columns_ = columnsBuilder_.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 flyteidl.core.Types.SchemaType) { - return mergeFrom((flyteidl.core.Types.SchemaType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.SchemaType other) { - if (other == flyteidl.core.Types.SchemaType.getDefaultInstance()) return this; - if (columnsBuilder_ == null) { - if (!other.columns_.isEmpty()) { - if (columns_.isEmpty()) { - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureColumnsIsMutable(); - columns_.addAll(other.columns_); - } - onChanged(); - } - } else { - if (!other.columns_.isEmpty()) { - if (columnsBuilder_.isEmpty()) { - columnsBuilder_.dispose(); - columnsBuilder_ = null; - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - columnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColumnsFieldBuilder() : null; - } else { - columnsBuilder_.addAllMessages(other.columns_); - } - } - } - 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 { - flyteidl.core.Types.SchemaType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.SchemaType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List columns_ = - java.util.Collections.emptyList(); - private void ensureColumnsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(columns_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> columnsBuilder_; - - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List getColumnsList() { - if (columnsBuilder_ == null) { - return java.util.Collections.unmodifiableList(columns_); - } else { - return columnsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public int getColumnsCount() { - if (columnsBuilder_ == null) { - return columns_.size(); - } else { - return columnsBuilder_.getCount(); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); - } else { - return columnsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder setColumns( - int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.set(index, value); - onChanged(); - } else { - columnsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder setColumns( - int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.set(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addColumns(flyteidl.core.Types.SchemaType.SchemaColumn value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(value); - onChanged(); - } else { - columnsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addColumns( - int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(index, value); - onChanged(); - } else { - columnsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addColumns( - flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addColumns( - int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addAllColumns( - java.lang.Iterable values) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columns_); - onChanged(); - } else { - columnsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder clearColumns() { - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - columnsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder removeColumns(int index) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.remove(index); - onChanged(); - } else { - columnsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.Builder getColumnsBuilder( - int index) { - return getColumnsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( - int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); } else { - return columnsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List - getColumnsOrBuilderList() { - if (columnsBuilder_ != null) { - return columnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(columns_); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder() { - return getColumnsFieldBuilder().addBuilder( - flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder( - int index) { - return getColumnsFieldBuilder().addBuilder( - index, flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List - getColumnsBuilderList() { - return getColumnsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> - getColumnsFieldBuilder() { - if (columnsBuilder_ == null) { - columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder>( - columns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - columns_ = null; - } - return columnsBuilder_; - } - @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:flyteidl.core.SchemaType) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType) - private static final flyteidl.core.Types.SchemaType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType(); - } - - public static flyteidl.core.Types.SchemaType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SchemaType(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 flyteidl.core.Types.SchemaType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BlobTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobType) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Format can be a free form string understood by SDK/UI etc like
-     * csv, parquet etc
-     * 
- * - * string format = 1; - */ - java.lang.String getFormat(); - /** - *
-     * Format can be a free form string understood by SDK/UI etc like
-     * csv, parquet etc
-     * 
- * - * string format = 1; - */ - com.google.protobuf.ByteString - getFormatBytes(); - - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - int getDimensionalityValue(); - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality(); - } - /** - *
-   * Defines type behavior for blob objects
-   * 
- * - * Protobuf type {@code flyteidl.core.BlobType} - */ - public static final class BlobType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BlobType) - BlobTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlobType.newBuilder() to construct. - private BlobType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlobType() { - format_ = ""; - dimensionality_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlobType( - 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(); - - format_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - dimensionality_ = rawValue; - 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 flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.BlobType.BlobDimensionality} - */ - public enum BlobDimensionality - implements com.google.protobuf.ProtocolMessageEnum { - /** - * SINGLE = 0; - */ - SINGLE(0), - /** - * MULTIPART = 1; - */ - MULTIPART(1), - UNRECOGNIZED(-1), - ; - - /** - * SINGLE = 0; - */ - public static final int SINGLE_VALUE = 0; - /** - * MULTIPART = 1; - */ - public static final int MULTIPART_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static BlobDimensionality valueOf(int value) { - return forNumber(value); - } - - public static BlobDimensionality forNumber(int value) { - switch (value) { - case 0: return SINGLE; - case 1: return MULTIPART; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - BlobDimensionality> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlobDimensionality findValueByNumber(int number) { - return BlobDimensionality.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Types.BlobType.getDescriptor().getEnumTypes().get(0); - } - - private static final BlobDimensionality[] VALUES = values(); - - public static BlobDimensionality 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 BlobDimensionality(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.BlobType.BlobDimensionality) - } - - public static final int FORMAT_FIELD_NUMBER = 1; - private volatile java.lang.Object format_; - /** - *
-     * Format can be a free form string understood by SDK/UI etc like
-     * csv, parquet etc
-     * 
- * - * string format = 1; - */ - public java.lang.String getFormat() { - java.lang.Object ref = format_; - 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(); - format_ = s; - return s; - } - } - /** - *
-     * Format can be a free form string understood by SDK/UI etc like
-     * csv, parquet etc
-     * 
- * - * string format = 1; - */ - public com.google.protobuf.ByteString - getFormatBytes() { - java.lang.Object ref = format_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - format_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSIONALITY_FIELD_NUMBER = 2; - private int dimensionality_; - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public int getDimensionalityValue() { - return dimensionality_; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { - @SuppressWarnings("deprecation") - flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); - return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; - } - - 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 (!getFormatBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, format_); - } - if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { - output.writeEnum(2, dimensionality_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFormatBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, format_); - } - if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, dimensionality_); - } - 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 flyteidl.core.Types.BlobType)) { - return super.equals(obj); - } - flyteidl.core.Types.BlobType other = (flyteidl.core.Types.BlobType) obj; - - if (!getFormat() - .equals(other.getFormat())) return false; - if (dimensionality_ != other.dimensionality_) 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) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getFormat().hashCode(); - hash = (37 * hash) + DIMENSIONALITY_FIELD_NUMBER; - hash = (53 * hash) + dimensionality_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.BlobType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.BlobType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.BlobType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.BlobType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.BlobType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.BlobType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.BlobType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.BlobType 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 flyteidl.core.Types.BlobType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.BlobType 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 flyteidl.core.Types.BlobType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.BlobType 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(flyteidl.core.Types.BlobType 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; - } - /** - *
-     * Defines type behavior for blob objects
-     * 
- * - * Protobuf type {@code flyteidl.core.BlobType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobType) - flyteidl.core.Types.BlobTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); - } - - // Construct using flyteidl.core.Types.BlobType.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(); - format_ = ""; - - dimensionality_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.BlobType getDefaultInstanceForType() { - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.BlobType build() { - flyteidl.core.Types.BlobType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.BlobType buildPartial() { - flyteidl.core.Types.BlobType result = new flyteidl.core.Types.BlobType(this); - result.format_ = format_; - result.dimensionality_ = dimensionality_; - 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 flyteidl.core.Types.BlobType) { - return mergeFrom((flyteidl.core.Types.BlobType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.BlobType other) { - if (other == flyteidl.core.Types.BlobType.getDefaultInstance()) return this; - if (!other.getFormat().isEmpty()) { - format_ = other.format_; - onChanged(); - } - if (other.dimensionality_ != 0) { - setDimensionalityValue(other.getDimensionalityValue()); - } - 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 { - flyteidl.core.Types.BlobType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.BlobType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object format_ = ""; - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public java.lang.String getFormat() { - java.lang.Object ref = format_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - format_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public com.google.protobuf.ByteString - getFormatBytes() { - java.lang.Object ref = format_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - format_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public Builder setFormat( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - format_ = value; - onChanged(); - return this; - } - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public Builder clearFormat() { - - format_ = getDefaultInstance().getFormat(); - onChanged(); - return this; - } - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public Builder setFormatBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - format_ = value; - onChanged(); - return this; - } - - private int dimensionality_ = 0; - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public int getDimensionalityValue() { - return dimensionality_; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public Builder setDimensionalityValue(int value) { - dimensionality_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { - @SuppressWarnings("deprecation") - flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); - return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public Builder setDimensionality(flyteidl.core.Types.BlobType.BlobDimensionality value) { - if (value == null) { - throw new NullPointerException(); - } - - dimensionality_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public Builder clearDimensionality() { - - dimensionality_ = 0; - 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:flyteidl.core.BlobType) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BlobType) - private static final flyteidl.core.Types.BlobType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.BlobType(); - } - - public static flyteidl.core.Types.BlobType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlobType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlobType(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 flyteidl.core.Types.BlobType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralType) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A simple type that can be compared one-to-one with another.
-     * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - int getSimpleValue(); - /** - *
-     * A simple type that can be compared one-to-one with another.
-     * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - flyteidl.core.Types.SimpleType getSimple(); - - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - boolean hasSchema(); - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - flyteidl.core.Types.SchemaType getSchema(); - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder(); - - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - boolean hasCollectionType(); - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - flyteidl.core.Types.LiteralType getCollectionType(); - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder(); - - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - boolean hasMapValueType(); - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - flyteidl.core.Types.LiteralType getMapValueType(); - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder(); - - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - boolean hasBlob(); - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - flyteidl.core.Types.BlobType getBlob(); - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder(); - - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - boolean hasMetadata(); - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - com.google.protobuf.Struct getMetadata(); - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); - - public flyteidl.core.Types.LiteralType.TypeCase getTypeCase(); - } - /** - *
-   * Defines a strong type to allow type checking between interfaces.
-   * 
- * - * Protobuf type {@code flyteidl.core.LiteralType} - */ - public static final class LiteralType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralType) - LiteralTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiteralType.newBuilder() to construct. - private LiteralType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiteralType() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiteralType( - 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 8: { - int rawValue = input.readEnum(); - typeCase_ = 1; - type_ = rawValue; - break; - } - case 18: { - flyteidl.core.Types.SchemaType.Builder subBuilder = null; - if (typeCase_ == 2) { - subBuilder = ((flyteidl.core.Types.SchemaType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.SchemaType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 2; - break; - } - case 26: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (typeCase_ == 3) { - subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 3; - break; - } - case 34: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (typeCase_ == 4) { - subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 4; - break; - } - case 42: { - flyteidl.core.Types.BlobType.Builder subBuilder = null; - if (typeCase_ == 5) { - subBuilder = ((flyteidl.core.Types.BlobType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.BlobType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 5; - break; - } - case 50: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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 flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); - } - - private int typeCase_ = 0; - private java.lang.Object type_; - public enum TypeCase - implements com.google.protobuf.Internal.EnumLite { - SIMPLE(1), - SCHEMA(2), - COLLECTION_TYPE(3), - MAP_VALUE_TYPE(4), - BLOB(5), - TYPE_NOT_SET(0); - private final int value; - private TypeCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TypeCase valueOf(int value) { - return forNumber(value); - } - - public static TypeCase forNumber(int value) { - switch (value) { - case 1: return SIMPLE; - case 2: return SCHEMA; - case 3: return COLLECTION_TYPE; - case 4: return MAP_VALUE_TYPE; - case 5: return BLOB; - case 0: return TYPE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public static final int SIMPLE_FIELD_NUMBER = 1; - /** - *
-     * A simple type that can be compared one-to-one with another.
-     * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public int getSimpleValue() { - if (typeCase_ == 1) { - return (java.lang.Integer) type_; - } - return 0; - } - /** - *
-     * A simple type that can be compared one-to-one with another.
-     * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public flyteidl.core.Types.SimpleType getSimple() { - if (typeCase_ == 1) { - @SuppressWarnings("deprecation") - flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( - (java.lang.Integer) type_); - return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; - } - return flyteidl.core.Types.SimpleType.NONE; - } - - public static final int SCHEMA_FIELD_NUMBER = 2; - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public boolean hasSchema() { - return typeCase_ == 2; - } - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaType getSchema() { - if (typeCase_ == 2) { - return (flyteidl.core.Types.SchemaType) type_; - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { - if (typeCase_ == 2) { - return (flyteidl.core.Types.SchemaType) type_; - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - - public static final int COLLECTION_TYPE_FIELD_NUMBER = 3; - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public boolean hasCollectionType() { - return typeCase_ == 3; - } - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralType getCollectionType() { - if (typeCase_ == 3) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { - if (typeCase_ == 3) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - - public static final int MAP_VALUE_TYPE_FIELD_NUMBER = 4; - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public boolean hasMapValueType() { - return typeCase_ == 4; - } - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralType getMapValueType() { - if (typeCase_ == 4) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { - if (typeCase_ == 4) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - - public static final int BLOB_FIELD_NUMBER = 5; - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public boolean hasBlob() { - return typeCase_ == 5; - } - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobType getBlob() { - if (typeCase_ == 5) { - return (flyteidl.core.Types.BlobType) type_; - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { - if (typeCase_ == 5) { - return (flyteidl.core.Types.BlobType) type_; - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - - public static final int METADATA_FIELD_NUMBER = 6; - private com.google.protobuf.Struct metadata_; - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (typeCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) type_)); - } - if (typeCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Types.SchemaType) type_); - } - if (typeCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Types.LiteralType) type_); - } - if (typeCase_ == 4) { - output.writeMessage(4, (flyteidl.core.Types.LiteralType) type_); - } - if (typeCase_ == 5) { - output.writeMessage(5, (flyteidl.core.Types.BlobType) type_); - } - if (metadata_ != null) { - output.writeMessage(6, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (typeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, ((java.lang.Integer) type_)); - } - if (typeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Types.SchemaType) type_); - } - if (typeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Types.LiteralType) type_); - } - if (typeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.Types.LiteralType) type_); - } - if (typeCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.core.Types.BlobType) type_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getMetadata()); - } - 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 flyteidl.core.Types.LiteralType)) { - return super.equals(obj); - } - flyteidl.core.Types.LiteralType other = (flyteidl.core.Types.LiteralType) obj; - - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!getTypeCase().equals(other.getTypeCase())) return false; - switch (typeCase_) { - case 1: - if (getSimpleValue() - != other.getSimpleValue()) return false; - break; - case 2: - if (!getSchema() - .equals(other.getSchema())) return false; - break; - case 3: - if (!getCollectionType() - .equals(other.getCollectionType())) return false; - break; - case 4: - if (!getMapValueType() - .equals(other.getMapValueType())) return false; - break; - case 5: - if (!getBlob() - .equals(other.getBlob())) 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(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - switch (typeCase_) { - case 1: - hash = (37 * hash) + SIMPLE_FIELD_NUMBER; - hash = (53 * hash) + getSimpleValue(); - break; - case 2: - hash = (37 * hash) + SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSchema().hashCode(); - break; - case 3: - hash = (37 * hash) + COLLECTION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getCollectionType().hashCode(); - break; - case 4: - hash = (37 * hash) + MAP_VALUE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMapValueType().hashCode(); - break; - case 5: - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.LiteralType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.LiteralType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.LiteralType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.LiteralType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.LiteralType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.LiteralType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.LiteralType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.LiteralType 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 flyteidl.core.Types.LiteralType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.LiteralType 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 flyteidl.core.Types.LiteralType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.LiteralType 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(flyteidl.core.Types.LiteralType 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; - } - /** - *
-     * Defines a strong type to allow type checking between interfaces.
-     * 
- * - * Protobuf type {@code flyteidl.core.LiteralType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralType) - flyteidl.core.Types.LiteralTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); - } - - // Construct using flyteidl.core.Types.LiteralType.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 (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - typeCase_ = 0; - type_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.LiteralType getDefaultInstanceForType() { - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.LiteralType build() { - flyteidl.core.Types.LiteralType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.LiteralType buildPartial() { - flyteidl.core.Types.LiteralType result = new flyteidl.core.Types.LiteralType(this); - if (typeCase_ == 1) { - result.type_ = type_; - } - if (typeCase_ == 2) { - if (schemaBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = schemaBuilder_.build(); - } - } - if (typeCase_ == 3) { - if (collectionTypeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = collectionTypeBuilder_.build(); - } - } - if (typeCase_ == 4) { - if (mapValueTypeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = mapValueTypeBuilder_.build(); - } - } - if (typeCase_ == 5) { - if (blobBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = blobBuilder_.build(); - } - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.typeCase_ = typeCase_; - 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 flyteidl.core.Types.LiteralType) { - return mergeFrom((flyteidl.core.Types.LiteralType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.LiteralType other) { - if (other == flyteidl.core.Types.LiteralType.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - switch (other.getTypeCase()) { - case SIMPLE: { - setSimpleValue(other.getSimpleValue()); - break; - } - case SCHEMA: { - mergeSchema(other.getSchema()); - break; - } - case COLLECTION_TYPE: { - mergeCollectionType(other.getCollectionType()); - break; - } - case MAP_VALUE_TYPE: { - mergeMapValueType(other.getMapValueType()); - break; - } - case BLOB: { - mergeBlob(other.getBlob()); - break; - } - case TYPE_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 { - flyteidl.core.Types.LiteralType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.LiteralType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int typeCase_ = 0; - private java.lang.Object type_; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public Builder clearType() { - typeCase_ = 0; - type_ = null; - onChanged(); - return this; - } - - - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public int getSimpleValue() { - if (typeCase_ == 1) { - return ((java.lang.Integer) type_).intValue(); - } - return 0; - } - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public Builder setSimpleValue(int value) { - typeCase_ = 1; - type_ = value; - onChanged(); - return this; - } - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public flyteidl.core.Types.SimpleType getSimple() { - if (typeCase_ == 1) { - @SuppressWarnings("deprecation") - flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( - (java.lang.Integer) type_); - return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; - } - return flyteidl.core.Types.SimpleType.NONE; - } - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public Builder setSimple(flyteidl.core.Types.SimpleType value) { - if (value == null) { - throw new NullPointerException(); - } - typeCase_ = 1; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public Builder clearSimple() { - if (typeCase_ == 1) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> schemaBuilder_; - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public boolean hasSchema() { - return typeCase_ == 2; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaType getSchema() { - if (schemaBuilder_ == null) { - if (typeCase_ == 2) { - return (flyteidl.core.Types.SchemaType) type_; - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } else { - if (typeCase_ == 2) { - return schemaBuilder_.getMessage(); - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public Builder setSchema(flyteidl.core.Types.SchemaType value) { - if (schemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - schemaBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public Builder setSchema( - flyteidl.core.Types.SchemaType.Builder builderForValue) { - if (schemaBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - schemaBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 2; - return this; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public Builder mergeSchema(flyteidl.core.Types.SchemaType value) { - if (schemaBuilder_ == null) { - if (typeCase_ == 2 && - type_ != flyteidl.core.Types.SchemaType.getDefaultInstance()) { - type_ = flyteidl.core.Types.SchemaType.newBuilder((flyteidl.core.Types.SchemaType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 2) { - schemaBuilder_.mergeFrom(value); - } - schemaBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public Builder clearSchema() { - if (schemaBuilder_ == null) { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - } - schemaBuilder_.clear(); - } - return this; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaType.Builder getSchemaBuilder() { - return getSchemaFieldBuilder().getBuilder(); - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { - if ((typeCase_ == 2) && (schemaBuilder_ != null)) { - return schemaBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 2) { - return (flyteidl.core.Types.SchemaType) type_; - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> - getSchemaFieldBuilder() { - if (schemaBuilder_ == null) { - if (!(typeCase_ == 2)) { - type_ = flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( - (flyteidl.core.Types.SchemaType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 2; - onChanged();; - return schemaBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> collectionTypeBuilder_; - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public boolean hasCollectionType() { - return typeCase_ == 3; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralType getCollectionType() { - if (collectionTypeBuilder_ == null) { - if (typeCase_ == 3) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } else { - if (typeCase_ == 3) { - return collectionTypeBuilder_.getMessage(); - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public Builder setCollectionType(flyteidl.core.Types.LiteralType value) { - if (collectionTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - collectionTypeBuilder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public Builder setCollectionType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (collectionTypeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - collectionTypeBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 3; - return this; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public Builder mergeCollectionType(flyteidl.core.Types.LiteralType value) { - if (collectionTypeBuilder_ == null) { - if (typeCase_ == 3 && - type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { - type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 3) { - collectionTypeBuilder_.mergeFrom(value); - } - collectionTypeBuilder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public Builder clearCollectionType() { - if (collectionTypeBuilder_ == null) { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - } - collectionTypeBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralType.Builder getCollectionTypeBuilder() { - return getCollectionTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { - if ((typeCase_ == 3) && (collectionTypeBuilder_ != null)) { - return collectionTypeBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 3) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getCollectionTypeFieldBuilder() { - if (collectionTypeBuilder_ == null) { - if (!(typeCase_ == 3)) { - type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - collectionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - (flyteidl.core.Types.LiteralType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 3; - onChanged();; - return collectionTypeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> mapValueTypeBuilder_; - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public boolean hasMapValueType() { - return typeCase_ == 4; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralType getMapValueType() { - if (mapValueTypeBuilder_ == null) { - if (typeCase_ == 4) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } else { - if (typeCase_ == 4) { - return mapValueTypeBuilder_.getMessage(); - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public Builder setMapValueType(flyteidl.core.Types.LiteralType value) { - if (mapValueTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - mapValueTypeBuilder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public Builder setMapValueType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (mapValueTypeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - mapValueTypeBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 4; - return this; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public Builder mergeMapValueType(flyteidl.core.Types.LiteralType value) { - if (mapValueTypeBuilder_ == null) { - if (typeCase_ == 4 && - type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { - type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 4) { - mapValueTypeBuilder_.mergeFrom(value); - } - mapValueTypeBuilder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public Builder clearMapValueType() { - if (mapValueTypeBuilder_ == null) { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - } - mapValueTypeBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralType.Builder getMapValueTypeBuilder() { - return getMapValueTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { - if ((typeCase_ == 4) && (mapValueTypeBuilder_ != null)) { - return mapValueTypeBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 4) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getMapValueTypeFieldBuilder() { - if (mapValueTypeBuilder_ == null) { - if (!(typeCase_ == 4)) { - type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - mapValueTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - (flyteidl.core.Types.LiteralType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 4; - onChanged();; - return mapValueTypeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> blobBuilder_; - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public boolean hasBlob() { - return typeCase_ == 5; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobType getBlob() { - if (blobBuilder_ == null) { - if (typeCase_ == 5) { - return (flyteidl.core.Types.BlobType) type_; - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } else { - if (typeCase_ == 5) { - return blobBuilder_.getMessage(); - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public Builder setBlob(flyteidl.core.Types.BlobType value) { - if (blobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - blobBuilder_.setMessage(value); - } - typeCase_ = 5; - return this; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public Builder setBlob( - flyteidl.core.Types.BlobType.Builder builderForValue) { - if (blobBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - blobBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 5; - return this; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public Builder mergeBlob(flyteidl.core.Types.BlobType value) { - if (blobBuilder_ == null) { - if (typeCase_ == 5 && - type_ != flyteidl.core.Types.BlobType.getDefaultInstance()) { - type_ = flyteidl.core.Types.BlobType.newBuilder((flyteidl.core.Types.BlobType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 5) { - blobBuilder_.mergeFrom(value); - } - blobBuilder_.setMessage(value); - } - typeCase_ = 5; - return this; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public Builder clearBlob() { - if (blobBuilder_ == null) { - if (typeCase_ == 5) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 5) { - typeCase_ = 0; - type_ = null; - } - blobBuilder_.clear(); - } - return this; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobType.Builder getBlobBuilder() { - return getBlobFieldBuilder().getBuilder(); - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { - if ((typeCase_ == 5) && (blobBuilder_ != null)) { - return blobBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 5) { - return (flyteidl.core.Types.BlobType) type_; - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> - getBlobFieldBuilder() { - if (blobBuilder_ == null) { - if (!(typeCase_ == 5)) { - type_ = flyteidl.core.Types.BlobType.getDefaultInstance(); - } - blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( - (flyteidl.core.Types.BlobType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 5; - onChanged();; - return blobBuilder_; - } - - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_; - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public Builder setMetadata( - com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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:flyteidl.core.LiteralType) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralType) - private static final flyteidl.core.Types.LiteralType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.LiteralType(); - } - - public static flyteidl.core.Types.LiteralType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiteralType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiteralType(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 flyteidl.core.Types.LiteralType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OutputReferenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.OutputReference) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Node id must exist at the graph layer.
-     * 
- * - * string node_id = 1; - */ - java.lang.String getNodeId(); - /** - *
-     * Node id must exist at the graph layer.
-     * 
- * - * string node_id = 1; - */ - com.google.protobuf.ByteString - getNodeIdBytes(); - - /** - *
-     * Variable name must refer to an output variable for the node.
-     * 
- * - * string var = 2; - */ - java.lang.String getVar(); - /** - *
-     * Variable name must refer to an output variable for the node.
-     * 
- * - * string var = 2; - */ - com.google.protobuf.ByteString - getVarBytes(); - } - /** - *
-   * A reference to an output produced by a node. The type can be retrieved -and validated- from
-   * the underlying interface of the node.
-   * 
- * - * Protobuf type {@code flyteidl.core.OutputReference} - */ - public static final class OutputReference extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.OutputReference) - OutputReferenceOrBuilder { - private static final long serialVersionUID = 0L; - // Use OutputReference.newBuilder() to construct. - private OutputReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OutputReference() { - nodeId_ = ""; - var_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OutputReference( - 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(); - - nodeId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - var_ = 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 flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); - } - - public static final int NODE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object nodeId_; - /** - *
-     * Node id must exist at the graph layer.
-     * 
- * - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - 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(); - nodeId_ = s; - return s; - } - } - /** - *
-     * Node id must exist at the graph layer.
-     * 
- * - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VAR_FIELD_NUMBER = 2; - private volatile java.lang.Object var_; - /** - *
-     * Variable name must refer to an output variable for the node.
-     * 
- * - * string var = 2; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - 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(); - var_ = s; - return s; - } - } - /** - *
-     * Variable name must refer to an output variable for the node.
-     * 
- * - * string var = 2; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = 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 (!getNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); - } - if (!getVarBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, var_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); - } - if (!getVarBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, var_); - } - 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 flyteidl.core.Types.OutputReference)) { - return super.equals(obj); - } - flyteidl.core.Types.OutputReference other = (flyteidl.core.Types.OutputReference) obj; - - if (!getNodeId() - .equals(other.getNodeId())) return false; - if (!getVar() - .equals(other.getVar())) 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) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId().hashCode(); - hash = (37 * hash) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.OutputReference parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.OutputReference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.OutputReference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.OutputReference parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.OutputReference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.OutputReference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.OutputReference parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.OutputReference 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 flyteidl.core.Types.OutputReference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.OutputReference 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 flyteidl.core.Types.OutputReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.OutputReference 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(flyteidl.core.Types.OutputReference 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 reference to an output produced by a node. The type can be retrieved -and validated- from
-     * the underlying interface of the node.
-     * 
- * - * Protobuf type {@code flyteidl.core.OutputReference} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.OutputReference) - flyteidl.core.Types.OutputReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); - } - - // Construct using flyteidl.core.Types.OutputReference.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(); - nodeId_ = ""; - - var_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.OutputReference getDefaultInstanceForType() { - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.OutputReference build() { - flyteidl.core.Types.OutputReference result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.OutputReference buildPartial() { - flyteidl.core.Types.OutputReference result = new flyteidl.core.Types.OutputReference(this); - result.nodeId_ = nodeId_; - result.var_ = var_; - 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 flyteidl.core.Types.OutputReference) { - return mergeFrom((flyteidl.core.Types.OutputReference)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.OutputReference other) { - if (other == flyteidl.core.Types.OutputReference.getDefaultInstance()) return this; - if (!other.getNodeId().isEmpty()) { - nodeId_ = other.nodeId_; - onChanged(); - } - if (!other.getVar().isEmpty()) { - var_ = other.var_; - 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 { - flyteidl.core.Types.OutputReference parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.OutputReference) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object nodeId_ = ""; - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public Builder setNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeId_ = value; - onChanged(); - return this; - } - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public Builder clearNodeId() { - - nodeId_ = getDefaultInstance().getNodeId(); - onChanged(); - return this; - } - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeId_ = value; - onChanged(); - return this; - } - - private java.lang.Object var_ = ""; - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public Builder setVar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - var_ = value; - onChanged(); - return this; - } - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public Builder clearVar() { - - var_ = getDefaultInstance().getVar(); - onChanged(); - return this; - } - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public Builder setVarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - var_ = 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:flyteidl.core.OutputReference) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.OutputReference) - private static final flyteidl.core.Types.OutputReference DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.OutputReference(); - } - - public static flyteidl.core.Types.OutputReference getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputReference(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 flyteidl.core.Types.OutputReference getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Error) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The node id that threw the error.
-     * 
- * - * string failed_node_id = 1; - */ - java.lang.String getFailedNodeId(); - /** - *
-     * The node id that threw the error.
-     * 
- * - * string failed_node_id = 1; - */ - com.google.protobuf.ByteString - getFailedNodeIdBytes(); - - /** - *
-     * Error message thrown.
-     * 
- * - * string message = 2; - */ - java.lang.String getMessage(); - /** - *
-     * Error message thrown.
-     * 
- * - * string message = 2; - */ - com.google.protobuf.ByteString - getMessageBytes(); - } - /** - *
-   * Represents an error thrown from a node.
-   * 
- * - * Protobuf type {@code flyteidl.core.Error} - */ - public static final class Error extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Error) - ErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use Error.newBuilder() to construct. - private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Error() { - failedNodeId_ = ""; - message_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Error( - 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(); - - failedNodeId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = 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 flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); - } - - public static final int FAILED_NODE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object failedNodeId_; - /** - *
-     * The node id that threw the error.
-     * 
- * - * string failed_node_id = 1; - */ - public java.lang.String getFailedNodeId() { - java.lang.Object ref = failedNodeId_; - 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(); - failedNodeId_ = s; - return s; - } - } - /** - *
-     * The node id that threw the error.
-     * 
- * - * string failed_node_id = 1; - */ - public com.google.protobuf.ByteString - getFailedNodeIdBytes() { - java.lang.Object ref = failedNodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - failedNodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - *
-     * Error message thrown.
-     * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - 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(); - message_ = s; - return s; - } - } - /** - *
-     * Error message thrown.
-     * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = 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 (!getFailedNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, failedNodeId_); - } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFailedNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, failedNodeId_); - } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - 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 flyteidl.core.Types.Error)) { - return super.equals(obj); - } - flyteidl.core.Types.Error other = (flyteidl.core.Types.Error) obj; - - if (!getFailedNodeId() - .equals(other.getFailedNodeId())) return false; - if (!getMessage() - .equals(other.getMessage())) 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) + FAILED_NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getFailedNodeId().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.Error parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.Error parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.Error parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.Error parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.Error parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.Error parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.Error parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.Error 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 flyteidl.core.Types.Error parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.Error 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 flyteidl.core.Types.Error parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.Error 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(flyteidl.core.Types.Error 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; - } - /** - *
-     * Represents an error thrown from a node.
-     * 
- * - * Protobuf type {@code flyteidl.core.Error} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Error) - flyteidl.core.Types.ErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); - } - - // Construct using flyteidl.core.Types.Error.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(); - failedNodeId_ = ""; - - message_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.Error getDefaultInstanceForType() { - return flyteidl.core.Types.Error.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.Error build() { - flyteidl.core.Types.Error result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.Error buildPartial() { - flyteidl.core.Types.Error result = new flyteidl.core.Types.Error(this); - result.failedNodeId_ = failedNodeId_; - result.message_ = message_; - 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 flyteidl.core.Types.Error) { - return mergeFrom((flyteidl.core.Types.Error)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.Error other) { - if (other == flyteidl.core.Types.Error.getDefaultInstance()) return this; - if (!other.getFailedNodeId().isEmpty()) { - failedNodeId_ = other.failedNodeId_; - onChanged(); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - 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 { - flyteidl.core.Types.Error parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.Error) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object failedNodeId_ = ""; - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public java.lang.String getFailedNodeId() { - java.lang.Object ref = failedNodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - failedNodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public com.google.protobuf.ByteString - getFailedNodeIdBytes() { - java.lang.Object ref = failedNodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - failedNodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public Builder setFailedNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - failedNodeId_ = value; - onChanged(); - return this; - } - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public Builder clearFailedNodeId() { - - failedNodeId_ = getDefaultInstance().getFailedNodeId(); - onChanged(); - return this; - } - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public Builder setFailedNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - failedNodeId_ = value; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = 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:flyteidl.core.Error) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Error) - private static final flyteidl.core.Types.Error DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.Error(); - } - - public static flyteidl.core.Types.Error getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Error parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Error(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 flyteidl.core.Types.Error getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_SchemaType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_SchemaType_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BlobType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BlobType_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_LiteralType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_LiteralType_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_OutputReference_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_OutputReference_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Error_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Error_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\031flyteidl/core/types.proto\022\rflyteidl.co" + - "re\032\034google/protobuf/struct.proto\"\214\002\n\nSch" + - "emaType\0227\n\007columns\030\003 \003(\0132&.flyteidl.core" + - ".SchemaType.SchemaColumn\032\304\001\n\014SchemaColum" + - "n\022\014\n\004name\030\001 \001(\t\022E\n\004type\030\002 \001(\01627.flyteidl" + - ".core.SchemaType.SchemaColumn.SchemaColu" + - "mnType\"_\n\020SchemaColumnType\022\013\n\007INTEGER\020\000\022" + - "\t\n\005FLOAT\020\001\022\n\n\006STRING\020\002\022\013\n\007BOOLEAN\020\003\022\014\n\010D" + - "ATETIME\020\004\022\014\n\010DURATION\020\005\"\217\001\n\010BlobType\022\016\n\006" + - "format\030\001 \001(\t\022B\n\016dimensionality\030\002 \001(\0162*.f" + - "lyteidl.core.BlobType.BlobDimensionality" + - "\"/\n\022BlobDimensionality\022\n\n\006SINGLE\020\000\022\r\n\tMU" + - "LTIPART\020\001\"\260\002\n\013LiteralType\022+\n\006simple\030\001 \001(" + - "\0162\031.flyteidl.core.SimpleTypeH\000\022+\n\006schema" + - "\030\002 \001(\0132\031.flyteidl.core.SchemaTypeH\000\0225\n\017c" + - "ollection_type\030\003 \001(\0132\032.flyteidl.core.Lit" + - "eralTypeH\000\0224\n\016map_value_type\030\004 \001(\0132\032.fly" + - "teidl.core.LiteralTypeH\000\022\'\n\004blob\030\005 \001(\0132\027" + - ".flyteidl.core.BlobTypeH\000\022)\n\010metadata\030\006 " + - "\001(\0132\027.google.protobuf.StructB\006\n\004type\"/\n\017" + - "OutputReference\022\017\n\007node_id\030\001 \001(\t\022\013\n\003var\030" + - "\002 \001(\t\"0\n\005Error\022\026\n\016failed_node_id\030\001 \001(\t\022\017" + - "\n\007message\030\002 \001(\t*\206\001\n\nSimpleType\022\010\n\004NONE\020\000" + - "\022\013\n\007INTEGER\020\001\022\t\n\005FLOAT\020\002\022\n\n\006STRING\020\003\022\013\n\007" + - "BOOLEAN\020\004\022\014\n\010DATETIME\020\005\022\014\n\010DURATION\020\006\022\n\n" + - "\006BINARY\020\007\022\t\n\005ERROR\020\010\022\n\n\006STRUCT\020\tB2Z0gith" + - "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" + - "coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.StructProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_SchemaType_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_SchemaType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_SchemaType_descriptor, - new java.lang.String[] { "Columns", }); - internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor = - internal_static_flyteidl_core_SchemaType_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor, - new java.lang.String[] { "Name", "Type", }); - internal_static_flyteidl_core_BlobType_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_BlobType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BlobType_descriptor, - new java.lang.String[] { "Format", "Dimensionality", }); - internal_static_flyteidl_core_LiteralType_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_LiteralType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_LiteralType_descriptor, - new java.lang.String[] { "Simple", "Schema", "CollectionType", "MapValueType", "Blob", "Metadata", "Type", }); - internal_static_flyteidl_core_OutputReference_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_OutputReference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_OutputReference_descriptor, - new java.lang.String[] { "NodeId", "Var", }); - internal_static_flyteidl_core_Error_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_core_Error_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Error_descriptor, - new java.lang.String[] { "FailedNodeId", "Message", }); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Workflow.java b/gen/pb-java/flyteidl/core/Workflow.java deleted file mode 100644 index e0eed4bcd..000000000 --- a/gen/pb-java/flyteidl/core/Workflow.java +++ /dev/null @@ -1,14708 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/workflow.proto - -package flyteidl.core; - -public final class Workflow { - private Workflow() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface IfBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.IfBlock) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - boolean hasCondition(); - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - flyteidl.core.Condition.BooleanExpression getCondition(); - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder(); - - /** - * .flyteidl.core.Node then_node = 2; - */ - boolean hasThenNode(); - /** - * .flyteidl.core.Node then_node = 2; - */ - flyteidl.core.Workflow.Node getThenNode(); - /** - * .flyteidl.core.Node then_node = 2; - */ - flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder(); - } - /** - *
-   * Defines a condition and the execution unit that should be executed if the condition is satisfied.
-   * 
- * - * Protobuf type {@code flyteidl.core.IfBlock} - */ - public static final class IfBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.IfBlock) - IfBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use IfBlock.newBuilder() to construct. - private IfBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IfBlock() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IfBlock( - 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: { - flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; - if (condition_ != null) { - subBuilder = condition_.toBuilder(); - } - condition_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(condition_); - condition_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Workflow.Node.Builder subBuilder = null; - if (thenNode_ != null) { - subBuilder = thenNode_.toBuilder(); - } - thenNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(thenNode_); - thenNode_ = 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 flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); - } - - public static final int CONDITION_FIELD_NUMBER = 1; - private flyteidl.core.Condition.BooleanExpression condition_; - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public boolean hasCondition() { - return condition_ != null; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpression getCondition() { - return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { - return getCondition(); - } - - public static final int THEN_NODE_FIELD_NUMBER = 2; - private flyteidl.core.Workflow.Node thenNode_; - /** - * .flyteidl.core.Node then_node = 2; - */ - public boolean hasThenNode() { - return thenNode_ != null; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.Node getThenNode() { - return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { - return getThenNode(); - } - - 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 (thenNode_ != null) { - output.writeMessage(2, getThenNode()); - } - 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 (thenNode_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getThenNode()); - } - 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 flyteidl.core.Workflow.IfBlock)) { - return super.equals(obj); - } - flyteidl.core.Workflow.IfBlock other = (flyteidl.core.Workflow.IfBlock) obj; - - if (hasCondition() != other.hasCondition()) return false; - if (hasCondition()) { - if (!getCondition() - .equals(other.getCondition())) return false; - } - if (hasThenNode() != other.hasThenNode()) return false; - if (hasThenNode()) { - if (!getThenNode() - .equals(other.getThenNode())) 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 (hasThenNode()) { - hash = (37 * hash) + THEN_NODE_FIELD_NUMBER; - hash = (53 * hash) + getThenNode().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.IfBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfBlock 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 flyteidl.core.Workflow.IfBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfBlock 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 flyteidl.core.Workflow.IfBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfBlock 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(flyteidl.core.Workflow.IfBlock 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; - } - /** - *
-     * Defines a condition and the execution unit that should be executed if the condition is satisfied.
-     * 
- * - * Protobuf type {@code flyteidl.core.IfBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.IfBlock) - flyteidl.core.Workflow.IfBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); - } - - // Construct using flyteidl.core.Workflow.IfBlock.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 (thenNodeBuilder_ == null) { - thenNode_ = null; - } else { - thenNode_ = null; - thenNodeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.IfBlock getDefaultInstanceForType() { - return flyteidl.core.Workflow.IfBlock.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.IfBlock build() { - flyteidl.core.Workflow.IfBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.IfBlock buildPartial() { - flyteidl.core.Workflow.IfBlock result = new flyteidl.core.Workflow.IfBlock(this); - if (conditionBuilder_ == null) { - result.condition_ = condition_; - } else { - result.condition_ = conditionBuilder_.build(); - } - if (thenNodeBuilder_ == null) { - result.thenNode_ = thenNode_; - } else { - result.thenNode_ = thenNodeBuilder_.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 flyteidl.core.Workflow.IfBlock) { - return mergeFrom((flyteidl.core.Workflow.IfBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.IfBlock other) { - if (other == flyteidl.core.Workflow.IfBlock.getDefaultInstance()) return this; - if (other.hasCondition()) { - mergeCondition(other.getCondition()); - } - if (other.hasThenNode()) { - mergeThenNode(other.getThenNode()); - } - 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 { - flyteidl.core.Workflow.IfBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.IfBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Condition.BooleanExpression condition_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> conditionBuilder_; - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public boolean hasCondition() { - return conditionBuilder_ != null || condition_ != null; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpression getCondition() { - if (conditionBuilder_ == null) { - return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; - } else { - return conditionBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public Builder setCondition(flyteidl.core.Condition.BooleanExpression value) { - if (conditionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - condition_ = value; - onChanged(); - } else { - conditionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public Builder setCondition( - flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { - if (conditionBuilder_ == null) { - condition_ = builderForValue.build(); - onChanged(); - } else { - conditionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public Builder mergeCondition(flyteidl.core.Condition.BooleanExpression value) { - if (conditionBuilder_ == null) { - if (condition_ != null) { - condition_ = - flyteidl.core.Condition.BooleanExpression.newBuilder(condition_).mergeFrom(value).buildPartial(); - } else { - condition_ = value; - } - onChanged(); - } else { - conditionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public Builder clearCondition() { - if (conditionBuilder_ == null) { - condition_ = null; - onChanged(); - } else { - condition_ = null; - conditionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpression.Builder getConditionBuilder() { - - onChanged(); - return getConditionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { - if (conditionBuilder_ != null) { - return conditionBuilder_.getMessageOrBuilder(); - } else { - return condition_ == null ? - flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; - } - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> - getConditionFieldBuilder() { - if (conditionBuilder_ == null) { - conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( - getCondition(), - getParentForChildren(), - isClean()); - condition_ = null; - } - return conditionBuilder_; - } - - private flyteidl.core.Workflow.Node thenNode_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> thenNodeBuilder_; - /** - * .flyteidl.core.Node then_node = 2; - */ - public boolean hasThenNode() { - return thenNodeBuilder_ != null || thenNode_ != null; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.Node getThenNode() { - if (thenNodeBuilder_ == null) { - return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; - } else { - return thenNodeBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public Builder setThenNode(flyteidl.core.Workflow.Node value) { - if (thenNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - thenNode_ = value; - onChanged(); - } else { - thenNodeBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public Builder setThenNode( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (thenNodeBuilder_ == null) { - thenNode_ = builderForValue.build(); - onChanged(); - } else { - thenNodeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public Builder mergeThenNode(flyteidl.core.Workflow.Node value) { - if (thenNodeBuilder_ == null) { - if (thenNode_ != null) { - thenNode_ = - flyteidl.core.Workflow.Node.newBuilder(thenNode_).mergeFrom(value).buildPartial(); - } else { - thenNode_ = value; - } - onChanged(); - } else { - thenNodeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public Builder clearThenNode() { - if (thenNodeBuilder_ == null) { - thenNode_ = null; - onChanged(); - } else { - thenNode_ = null; - thenNodeBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.Node.Builder getThenNodeBuilder() { - - onChanged(); - return getThenNodeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { - if (thenNodeBuilder_ != null) { - return thenNodeBuilder_.getMessageOrBuilder(); - } else { - return thenNode_ == null ? - flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; - } - } - /** - * .flyteidl.core.Node then_node = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getThenNodeFieldBuilder() { - if (thenNodeBuilder_ == null) { - thenNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - getThenNode(), - getParentForChildren(), - isClean()); - thenNode_ = null; - } - return thenNodeBuilder_; - } - @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:flyteidl.core.IfBlock) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.IfBlock) - private static final flyteidl.core.Workflow.IfBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfBlock(); - } - - public static flyteidl.core.Workflow.IfBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IfBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IfBlock(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 flyteidl.core.Workflow.IfBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IfElseBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.IfElseBlock) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - boolean hasCase(); - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - flyteidl.core.Workflow.IfBlock getCase(); - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder(); - - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - java.util.List - getOtherList(); - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - flyteidl.core.Workflow.IfBlock getOther(int index); - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - int getOtherCount(); - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - java.util.List - getOtherOrBuilderList(); - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( - int index); - - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - boolean hasElseNode(); - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - flyteidl.core.Workflow.Node getElseNode(); - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder(); - - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - boolean hasError(); - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - flyteidl.core.Types.Error getError(); - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); - - public flyteidl.core.Workflow.IfElseBlock.DefaultCase getDefaultCase(); - } - /** - *
-   * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
-   * If no conditions were satisfied, the else_node or the error will execute.
-   * 
- * - * Protobuf type {@code flyteidl.core.IfElseBlock} - */ - public static final class IfElseBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.IfElseBlock) - IfElseBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use IfElseBlock.newBuilder() to construct. - private IfElseBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IfElseBlock() { - other_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IfElseBlock( - 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: { - flyteidl.core.Workflow.IfBlock.Builder subBuilder = null; - if (case_ != null) { - subBuilder = case_.toBuilder(); - } - case_ = input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(case_); - case_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - other_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - other_.add( - input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry)); - break; - } - case 26: { - flyteidl.core.Workflow.Node.Builder subBuilder = null; - if (defaultCase_ == 3) { - subBuilder = ((flyteidl.core.Workflow.Node) default_).toBuilder(); - } - default_ = - input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.Node) default_); - default_ = subBuilder.buildPartial(); - } - defaultCase_ = 3; - break; - } - case 34: { - flyteidl.core.Types.Error.Builder subBuilder = null; - if (defaultCase_ == 4) { - subBuilder = ((flyteidl.core.Types.Error) default_).toBuilder(); - } - default_ = - input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.Error) default_); - default_ = subBuilder.buildPartial(); - } - defaultCase_ = 4; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - other_ = java.util.Collections.unmodifiableList(other_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); - } - - private int bitField0_; - private int defaultCase_ = 0; - private java.lang.Object default_; - public enum DefaultCase - implements com.google.protobuf.Internal.EnumLite { - ELSE_NODE(3), - ERROR(4), - DEFAULT_NOT_SET(0); - private final int value; - private DefaultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DefaultCase valueOf(int value) { - return forNumber(value); - } - - public static DefaultCase forNumber(int value) { - switch (value) { - case 3: return ELSE_NODE; - case 4: return ERROR; - case 0: return DEFAULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DefaultCase - getDefaultCase() { - return DefaultCase.forNumber( - defaultCase_); - } - - public static final int CASE_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.IfBlock case_; - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public boolean hasCase() { - return case_ != null; - } - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlock getCase() { - return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; - } - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { - return getCase(); - } - - public static final int OTHER_FIELD_NUMBER = 2; - private java.util.List other_; - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List getOtherList() { - return other_; - } - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List - getOtherOrBuilderList() { - return other_; - } - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public int getOtherCount() { - return other_.size(); - } - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock getOther(int index) { - return other_.get(index); - } - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( - int index) { - return other_.get(index); - } - - public static final int ELSE_NODE_FIELD_NUMBER = 3; - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public boolean hasElseNode() { - return defaultCase_ == 3; - } - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.Node getElseNode() { - if (defaultCase_ == 3) { - return (flyteidl.core.Workflow.Node) default_; - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { - if (defaultCase_ == 3) { - return (flyteidl.core.Workflow.Node) default_; - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - - public static final int ERROR_FIELD_NUMBER = 4; - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - public boolean hasError() { - return defaultCase_ == 4; - } - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.Error getError() { - if (defaultCase_ == 4) { - return (flyteidl.core.Types.Error) default_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { - if (defaultCase_ == 4) { - return (flyteidl.core.Types.Error) default_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (case_ != null) { - output.writeMessage(1, getCase()); - } - for (int i = 0; i < other_.size(); i++) { - output.writeMessage(2, other_.get(i)); - } - if (defaultCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Workflow.Node) default_); - } - if (defaultCase_ == 4) { - output.writeMessage(4, (flyteidl.core.Types.Error) default_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (case_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCase()); - } - for (int i = 0; i < other_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, other_.get(i)); - } - if (defaultCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Workflow.Node) default_); - } - if (defaultCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.Types.Error) default_); - } - 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 flyteidl.core.Workflow.IfElseBlock)) { - return super.equals(obj); - } - flyteidl.core.Workflow.IfElseBlock other = (flyteidl.core.Workflow.IfElseBlock) obj; - - if (hasCase() != other.hasCase()) return false; - if (hasCase()) { - if (!getCase() - .equals(other.getCase())) return false; - } - if (!getOtherList() - .equals(other.getOtherList())) return false; - if (!getDefaultCase().equals(other.getDefaultCase())) return false; - switch (defaultCase_) { - case 3: - if (!getElseNode() - .equals(other.getElseNode())) return false; - break; - case 4: - if (!getError() - .equals(other.getError())) 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(); - if (hasCase()) { - hash = (37 * hash) + CASE_FIELD_NUMBER; - hash = (53 * hash) + getCase().hashCode(); - } - if (getOtherCount() > 0) { - hash = (37 * hash) + OTHER_FIELD_NUMBER; - hash = (53 * hash) + getOtherList().hashCode(); - } - switch (defaultCase_) { - case 3: - hash = (37 * hash) + ELSE_NODE_FIELD_NUMBER; - hash = (53 * hash) + getElseNode().hashCode(); - break; - case 4: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfElseBlock 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 flyteidl.core.Workflow.IfElseBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfElseBlock 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 flyteidl.core.Workflow.IfElseBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfElseBlock 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(flyteidl.core.Workflow.IfElseBlock 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; - } - /** - *
-     * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
-     * If no conditions were satisfied, the else_node or the error will execute.
-     * 
- * - * Protobuf type {@code flyteidl.core.IfElseBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.IfElseBlock) - flyteidl.core.Workflow.IfElseBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); - } - - // Construct using flyteidl.core.Workflow.IfElseBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOtherFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (caseBuilder_ == null) { - case_ = null; - } else { - case_ = null; - caseBuilder_ = null; - } - if (otherBuilder_ == null) { - other_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - otherBuilder_.clear(); - } - defaultCase_ = 0; - default_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.IfElseBlock getDefaultInstanceForType() { - return flyteidl.core.Workflow.IfElseBlock.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.IfElseBlock build() { - flyteidl.core.Workflow.IfElseBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.IfElseBlock buildPartial() { - flyteidl.core.Workflow.IfElseBlock result = new flyteidl.core.Workflow.IfElseBlock(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (caseBuilder_ == null) { - result.case_ = case_; - } else { - result.case_ = caseBuilder_.build(); - } - if (otherBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - other_ = java.util.Collections.unmodifiableList(other_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.other_ = other_; - } else { - result.other_ = otherBuilder_.build(); - } - if (defaultCase_ == 3) { - if (elseNodeBuilder_ == null) { - result.default_ = default_; - } else { - result.default_ = elseNodeBuilder_.build(); - } - } - if (defaultCase_ == 4) { - if (errorBuilder_ == null) { - result.default_ = default_; - } else { - result.default_ = errorBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.defaultCase_ = defaultCase_; - 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 flyteidl.core.Workflow.IfElseBlock) { - return mergeFrom((flyteidl.core.Workflow.IfElseBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.IfElseBlock other) { - if (other == flyteidl.core.Workflow.IfElseBlock.getDefaultInstance()) return this; - if (other.hasCase()) { - mergeCase(other.getCase()); - } - if (otherBuilder_ == null) { - if (!other.other_.isEmpty()) { - if (other_.isEmpty()) { - other_ = other.other_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureOtherIsMutable(); - other_.addAll(other.other_); - } - onChanged(); - } - } else { - if (!other.other_.isEmpty()) { - if (otherBuilder_.isEmpty()) { - otherBuilder_.dispose(); - otherBuilder_ = null; - other_ = other.other_; - bitField0_ = (bitField0_ & ~0x00000002); - otherBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOtherFieldBuilder() : null; - } else { - otherBuilder_.addAllMessages(other.other_); - } - } - } - switch (other.getDefaultCase()) { - case ELSE_NODE: { - mergeElseNode(other.getElseNode()); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case DEFAULT_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 { - flyteidl.core.Workflow.IfElseBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.IfElseBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int defaultCase_ = 0; - private java.lang.Object default_; - public DefaultCase - getDefaultCase() { - return DefaultCase.forNumber( - defaultCase_); - } - - public Builder clearDefault() { - defaultCase_ = 0; - default_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private flyteidl.core.Workflow.IfBlock case_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> caseBuilder_; - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public boolean hasCase() { - return caseBuilder_ != null || case_ != null; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlock getCase() { - if (caseBuilder_ == null) { - return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; - } else { - return caseBuilder_.getMessage(); - } - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public Builder setCase(flyteidl.core.Workflow.IfBlock value) { - if (caseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - case_ = value; - onChanged(); - } else { - caseBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public Builder setCase( - flyteidl.core.Workflow.IfBlock.Builder builderForValue) { - if (caseBuilder_ == null) { - case_ = builderForValue.build(); - onChanged(); - } else { - caseBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public Builder mergeCase(flyteidl.core.Workflow.IfBlock value) { - if (caseBuilder_ == null) { - if (case_ != null) { - case_ = - flyteidl.core.Workflow.IfBlock.newBuilder(case_).mergeFrom(value).buildPartial(); - } else { - case_ = value; - } - onChanged(); - } else { - caseBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public Builder clearCase() { - if (caseBuilder_ == null) { - case_ = null; - onChanged(); - } else { - case_ = null; - caseBuilder_ = null; - } - - return this; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlock.Builder getCaseBuilder() { - - onChanged(); - return getCaseFieldBuilder().getBuilder(); - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { - if (caseBuilder_ != null) { - return caseBuilder_.getMessageOrBuilder(); - } else { - return case_ == null ? - flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; - } - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> - getCaseFieldBuilder() { - if (caseBuilder_ == null) { - caseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( - getCase(), - getParentForChildren(), - isClean()); - case_ = null; - } - return caseBuilder_; - } - - private java.util.List other_ = - java.util.Collections.emptyList(); - private void ensureOtherIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - other_ = new java.util.ArrayList(other_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> otherBuilder_; - - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List getOtherList() { - if (otherBuilder_ == null) { - return java.util.Collections.unmodifiableList(other_); - } else { - return otherBuilder_.getMessageList(); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public int getOtherCount() { - if (otherBuilder_ == null) { - return other_.size(); - } else { - return otherBuilder_.getCount(); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock getOther(int index) { - if (otherBuilder_ == null) { - return other_.get(index); - } else { - return otherBuilder_.getMessage(index); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder setOther( - int index, flyteidl.core.Workflow.IfBlock value) { - if (otherBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOtherIsMutable(); - other_.set(index, value); - onChanged(); - } else { - otherBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder setOther( - int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - other_.set(index, builderForValue.build()); - onChanged(); - } else { - otherBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addOther(flyteidl.core.Workflow.IfBlock value) { - if (otherBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOtherIsMutable(); - other_.add(value); - onChanged(); - } else { - otherBuilder_.addMessage(value); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addOther( - int index, flyteidl.core.Workflow.IfBlock value) { - if (otherBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOtherIsMutable(); - other_.add(index, value); - onChanged(); - } else { - otherBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addOther( - flyteidl.core.Workflow.IfBlock.Builder builderForValue) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - other_.add(builderForValue.build()); - onChanged(); - } else { - otherBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addOther( - int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - other_.add(index, builderForValue.build()); - onChanged(); - } else { - otherBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addAllOther( - java.lang.Iterable values) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, other_); - onChanged(); - } else { - otherBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder clearOther() { - if (otherBuilder_ == null) { - other_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - otherBuilder_.clear(); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder removeOther(int index) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - other_.remove(index); - onChanged(); - } else { - otherBuilder_.remove(index); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock.Builder getOtherBuilder( - int index) { - return getOtherFieldBuilder().getBuilder(index); - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( - int index) { - if (otherBuilder_ == null) { - return other_.get(index); } else { - return otherBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List - getOtherOrBuilderList() { - if (otherBuilder_ != null) { - return otherBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(other_); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder() { - return getOtherFieldBuilder().addBuilder( - flyteidl.core.Workflow.IfBlock.getDefaultInstance()); - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder( - int index) { - return getOtherFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.IfBlock.getDefaultInstance()); - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List - getOtherBuilderList() { - return getOtherFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> - getOtherFieldBuilder() { - if (otherBuilder_ == null) { - otherBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( - other_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - other_ = null; - } - return otherBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> elseNodeBuilder_; - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public boolean hasElseNode() { - return defaultCase_ == 3; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.Node getElseNode() { - if (elseNodeBuilder_ == null) { - if (defaultCase_ == 3) { - return (flyteidl.core.Workflow.Node) default_; - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } else { - if (defaultCase_ == 3) { - return elseNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public Builder setElseNode(flyteidl.core.Workflow.Node value) { - if (elseNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - default_ = value; - onChanged(); - } else { - elseNodeBuilder_.setMessage(value); - } - defaultCase_ = 3; - return this; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public Builder setElseNode( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (elseNodeBuilder_ == null) { - default_ = builderForValue.build(); - onChanged(); - } else { - elseNodeBuilder_.setMessage(builderForValue.build()); - } - defaultCase_ = 3; - return this; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public Builder mergeElseNode(flyteidl.core.Workflow.Node value) { - if (elseNodeBuilder_ == null) { - if (defaultCase_ == 3 && - default_ != flyteidl.core.Workflow.Node.getDefaultInstance()) { - default_ = flyteidl.core.Workflow.Node.newBuilder((flyteidl.core.Workflow.Node) default_) - .mergeFrom(value).buildPartial(); - } else { - default_ = value; - } - onChanged(); - } else { - if (defaultCase_ == 3) { - elseNodeBuilder_.mergeFrom(value); - } - elseNodeBuilder_.setMessage(value); - } - defaultCase_ = 3; - return this; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public Builder clearElseNode() { - if (elseNodeBuilder_ == null) { - if (defaultCase_ == 3) { - defaultCase_ = 0; - default_ = null; - onChanged(); - } - } else { - if (defaultCase_ == 3) { - defaultCase_ = 0; - default_ = null; - } - elseNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.Node.Builder getElseNodeBuilder() { - return getElseNodeFieldBuilder().getBuilder(); - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { - if ((defaultCase_ == 3) && (elseNodeBuilder_ != null)) { - return elseNodeBuilder_.getMessageOrBuilder(); - } else { - if (defaultCase_ == 3) { - return (flyteidl.core.Workflow.Node) default_; - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getElseNodeFieldBuilder() { - if (elseNodeBuilder_ == null) { - if (!(defaultCase_ == 3)) { - default_ = flyteidl.core.Workflow.Node.getDefaultInstance(); - } - elseNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - (flyteidl.core.Workflow.Node) default_, - getParentForChildren(), - isClean()); - default_ = null; - } - defaultCase_ = 3; - onChanged();; - return elseNodeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public boolean hasError() { - return defaultCase_ == 4; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.Error getError() { - if (errorBuilder_ == null) { - if (defaultCase_ == 4) { - return (flyteidl.core.Types.Error) default_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } else { - if (defaultCase_ == 4) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public Builder setError(flyteidl.core.Types.Error value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - default_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - defaultCase_ = 4; - return this; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public Builder setError( - flyteidl.core.Types.Error.Builder builderForValue) { - if (errorBuilder_ == null) { - default_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - defaultCase_ = 4; - return this; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public Builder mergeError(flyteidl.core.Types.Error value) { - if (errorBuilder_ == null) { - if (defaultCase_ == 4 && - default_ != flyteidl.core.Types.Error.getDefaultInstance()) { - default_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) default_) - .mergeFrom(value).buildPartial(); - } else { - default_ = value; - } - onChanged(); - } else { - if (defaultCase_ == 4) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - defaultCase_ = 4; - return this; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (defaultCase_ == 4) { - defaultCase_ = 0; - default_ = null; - onChanged(); - } - } else { - if (defaultCase_ == 4) { - defaultCase_ = 0; - default_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.Error.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { - if ((defaultCase_ == 4) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (defaultCase_ == 4) { - return (flyteidl.core.Types.Error) default_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(defaultCase_ == 4)) { - default_ = flyteidl.core.Types.Error.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( - (flyteidl.core.Types.Error) default_, - getParentForChildren(), - isClean()); - default_ = null; - } - defaultCase_ = 4; - onChanged();; - return errorBuilder_; - } - @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:flyteidl.core.IfElseBlock) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.IfElseBlock) - private static final flyteidl.core.Workflow.IfElseBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfElseBlock(); - } - - public static flyteidl.core.Workflow.IfElseBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IfElseBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IfElseBlock(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 flyteidl.core.Workflow.IfElseBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BranchNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BranchNode) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - boolean hasIfElse(); - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - flyteidl.core.Workflow.IfElseBlock getIfElse(); - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder(); - } - /** - *
-   * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
-   * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives).
-   * 
- * - * Protobuf type {@code flyteidl.core.BranchNode} - */ - public static final class BranchNode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BranchNode) - BranchNodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use BranchNode.newBuilder() to construct. - private BranchNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BranchNode() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BranchNode( - 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: { - flyteidl.core.Workflow.IfElseBlock.Builder subBuilder = null; - if (ifElse_ != null) { - subBuilder = ifElse_.toBuilder(); - } - ifElse_ = input.readMessage(flyteidl.core.Workflow.IfElseBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ifElse_); - ifElse_ = 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 flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); - } - - public static final int IF_ELSE_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.IfElseBlock ifElse_; - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public boolean hasIfElse() { - return ifElse_ != null; - } - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlock getIfElse() { - return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; - } - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { - return getIfElse(); - } - - 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 (ifElse_ != null) { - output.writeMessage(1, getIfElse()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (ifElse_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIfElse()); - } - 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 flyteidl.core.Workflow.BranchNode)) { - return super.equals(obj); - } - flyteidl.core.Workflow.BranchNode other = (flyteidl.core.Workflow.BranchNode) obj; - - if (hasIfElse() != other.hasIfElse()) return false; - if (hasIfElse()) { - if (!getIfElse() - .equals(other.getIfElse())) 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 (hasIfElse()) { - hash = (37 * hash) + IF_ELSE_FIELD_NUMBER; - hash = (53 * hash) + getIfElse().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.BranchNode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.BranchNode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.BranchNode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.BranchNode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.BranchNode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.BranchNode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.BranchNode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.BranchNode 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 flyteidl.core.Workflow.BranchNode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.BranchNode 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 flyteidl.core.Workflow.BranchNode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.BranchNode 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(flyteidl.core.Workflow.BranchNode 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; - } - /** - *
-     * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
-     * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives).
-     * 
- * - * Protobuf type {@code flyteidl.core.BranchNode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BranchNode) - flyteidl.core.Workflow.BranchNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); - } - - // Construct using flyteidl.core.Workflow.BranchNode.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 (ifElseBuilder_ == null) { - ifElse_ = null; - } else { - ifElse_ = null; - ifElseBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.BranchNode getDefaultInstanceForType() { - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.BranchNode build() { - flyteidl.core.Workflow.BranchNode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.BranchNode buildPartial() { - flyteidl.core.Workflow.BranchNode result = new flyteidl.core.Workflow.BranchNode(this); - if (ifElseBuilder_ == null) { - result.ifElse_ = ifElse_; - } else { - result.ifElse_ = ifElseBuilder_.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 flyteidl.core.Workflow.BranchNode) { - return mergeFrom((flyteidl.core.Workflow.BranchNode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.BranchNode other) { - if (other == flyteidl.core.Workflow.BranchNode.getDefaultInstance()) return this; - if (other.hasIfElse()) { - mergeIfElse(other.getIfElse()); - } - 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 { - flyteidl.core.Workflow.BranchNode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.BranchNode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Workflow.IfElseBlock ifElse_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> ifElseBuilder_; - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public boolean hasIfElse() { - return ifElseBuilder_ != null || ifElse_ != null; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlock getIfElse() { - if (ifElseBuilder_ == null) { - return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; - } else { - return ifElseBuilder_.getMessage(); - } - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public Builder setIfElse(flyteidl.core.Workflow.IfElseBlock value) { - if (ifElseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ifElse_ = value; - onChanged(); - } else { - ifElseBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public Builder setIfElse( - flyteidl.core.Workflow.IfElseBlock.Builder builderForValue) { - if (ifElseBuilder_ == null) { - ifElse_ = builderForValue.build(); - onChanged(); - } else { - ifElseBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public Builder mergeIfElse(flyteidl.core.Workflow.IfElseBlock value) { - if (ifElseBuilder_ == null) { - if (ifElse_ != null) { - ifElse_ = - flyteidl.core.Workflow.IfElseBlock.newBuilder(ifElse_).mergeFrom(value).buildPartial(); - } else { - ifElse_ = value; - } - onChanged(); - } else { - ifElseBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public Builder clearIfElse() { - if (ifElseBuilder_ == null) { - ifElse_ = null; - onChanged(); - } else { - ifElse_ = null; - ifElseBuilder_ = null; - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlock.Builder getIfElseBuilder() { - - onChanged(); - return getIfElseFieldBuilder().getBuilder(); - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { - if (ifElseBuilder_ != null) { - return ifElseBuilder_.getMessageOrBuilder(); - } else { - return ifElse_ == null ? - flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; - } - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> - getIfElseFieldBuilder() { - if (ifElseBuilder_ == null) { - ifElseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder>( - getIfElse(), - getParentForChildren(), - isClean()); - ifElse_ = null; - } - return ifElseBuilder_; - } - @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:flyteidl.core.BranchNode) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BranchNode) - private static final flyteidl.core.Workflow.BranchNode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.BranchNode(); - } - - public static flyteidl.core.Workflow.BranchNode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BranchNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BranchNode(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 flyteidl.core.Workflow.BranchNode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskNode) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - boolean hasReferenceId(); - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getReferenceId(); - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder(); - - public flyteidl.core.Workflow.TaskNode.ReferenceCase getReferenceCase(); - } - /** - *
-   * Refers to the task that the Node is to execute.
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskNode} - */ - public static final class TaskNode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskNode) - TaskNodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskNode.newBuilder() to construct. - private TaskNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskNode() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskNode( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (referenceCase_ == 1) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); - } - reference_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); - reference_ = subBuilder.buildPartial(); - } - referenceCase_ = 1; - 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 flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); - } - - private int referenceCase_ = 0; - private java.lang.Object reference_; - public enum ReferenceCase - implements com.google.protobuf.Internal.EnumLite { - REFERENCE_ID(1), - REFERENCE_NOT_SET(0); - private final int value; - private ReferenceCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReferenceCase valueOf(int value) { - return forNumber(value); - } - - public static ReferenceCase forNumber(int value) { - switch (value) { - case 1: return REFERENCE_ID; - case 0: return REFERENCE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReferenceCase - getReferenceCase() { - return ReferenceCase.forNumber( - referenceCase_); - } - - public static final int REFERENCE_ID_FIELD_NUMBER = 1; - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public boolean hasReferenceId() { - return referenceCase_ == 1; - } - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (referenceCase_ == 1) { - output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (referenceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - 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 flyteidl.core.Workflow.TaskNode)) { - return super.equals(obj); - } - flyteidl.core.Workflow.TaskNode other = (flyteidl.core.Workflow.TaskNode) obj; - - if (!getReferenceCase().equals(other.getReferenceCase())) return false; - switch (referenceCase_) { - case 1: - if (!getReferenceId() - .equals(other.getReferenceId())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (referenceCase_) { - case 1: - hash = (37 * hash) + REFERENCE_ID_FIELD_NUMBER; - hash = (53 * hash) + getReferenceId().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.TaskNode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.TaskNode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.TaskNode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.TaskNode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.TaskNode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.TaskNode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.TaskNode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.TaskNode 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 flyteidl.core.Workflow.TaskNode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.TaskNode 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 flyteidl.core.Workflow.TaskNode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.TaskNode 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(flyteidl.core.Workflow.TaskNode 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; - } - /** - *
-     * Refers to the task that the Node is to execute.
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskNode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskNode) - flyteidl.core.Workflow.TaskNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); - } - - // Construct using flyteidl.core.Workflow.TaskNode.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(); - referenceCase_ = 0; - reference_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.TaskNode getDefaultInstanceForType() { - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.TaskNode build() { - flyteidl.core.Workflow.TaskNode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.TaskNode buildPartial() { - flyteidl.core.Workflow.TaskNode result = new flyteidl.core.Workflow.TaskNode(this); - if (referenceCase_ == 1) { - if (referenceIdBuilder_ == null) { - result.reference_ = reference_; - } else { - result.reference_ = referenceIdBuilder_.build(); - } - } - result.referenceCase_ = referenceCase_; - 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 flyteidl.core.Workflow.TaskNode) { - return mergeFrom((flyteidl.core.Workflow.TaskNode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.TaskNode other) { - if (other == flyteidl.core.Workflow.TaskNode.getDefaultInstance()) return this; - switch (other.getReferenceCase()) { - case REFERENCE_ID: { - mergeReferenceId(other.getReferenceId()); - break; - } - case REFERENCE_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 { - flyteidl.core.Workflow.TaskNode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.TaskNode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int referenceCase_ = 0; - private java.lang.Object reference_; - public ReferenceCase - getReferenceCase() { - return ReferenceCase.forNumber( - referenceCase_); - } - - public Builder clearReference() { - referenceCase_ = 0; - reference_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> referenceIdBuilder_; - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public boolean hasReferenceId() { - return referenceCase_ == 1; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { - if (referenceIdBuilder_ == null) { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } else { - if (referenceCase_ == 1) { - return referenceIdBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public Builder setReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (referenceIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - } else { - referenceIdBuilder_.setMessage(value); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public Builder setReferenceId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (referenceIdBuilder_ == null) { - reference_ = builderForValue.build(); - onChanged(); - } else { - referenceIdBuilder_.setMessage(builderForValue.build()); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public Builder mergeReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (referenceIdBuilder_ == null) { - if (referenceCase_ == 1 && - reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) - .mergeFrom(value).buildPartial(); - } else { - reference_ = value; - } - onChanged(); - } else { - if (referenceCase_ == 1) { - referenceIdBuilder_.mergeFrom(value); - } - referenceIdBuilder_.setMessage(value); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public Builder clearReferenceId() { - if (referenceIdBuilder_ == null) { - if (referenceCase_ == 1) { - referenceCase_ = 0; - reference_ = null; - onChanged(); - } - } else { - if (referenceCase_ == 1) { - referenceCase_ = 0; - reference_ = null; - } - referenceIdBuilder_.clear(); - } - return this; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getReferenceIdBuilder() { - return getReferenceIdFieldBuilder().getBuilder(); - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { - if ((referenceCase_ == 1) && (referenceIdBuilder_ != null)) { - return referenceIdBuilder_.getMessageOrBuilder(); - } else { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getReferenceIdFieldBuilder() { - if (referenceIdBuilder_ == null) { - if (!(referenceCase_ == 1)) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - referenceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.Identifier) reference_, - getParentForChildren(), - isClean()); - reference_ = null; - } - referenceCase_ = 1; - onChanged();; - return referenceIdBuilder_; - } - @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:flyteidl.core.TaskNode) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNode) - private static final flyteidl.core.Workflow.TaskNode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.TaskNode(); - } - - public static flyteidl.core.Workflow.TaskNode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskNode(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 flyteidl.core.Workflow.TaskNode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowNode) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - boolean hasLaunchplanRef(); - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef(); - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder(); - - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - boolean hasSubWorkflowRef(); - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef(); - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder(); - - public flyteidl.core.Workflow.WorkflowNode.ReferenceCase getReferenceCase(); - } - /** - *
-   * Refers to a the workflow the node is to execute.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowNode} - */ - public static final class WorkflowNode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowNode) - WorkflowNodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowNode.newBuilder() to construct. - private WorkflowNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowNode() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowNode( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (referenceCase_ == 1) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); - } - reference_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); - reference_ = subBuilder.buildPartial(); - } - referenceCase_ = 1; - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (referenceCase_ == 2) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); - } - reference_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); - reference_ = subBuilder.buildPartial(); - } - referenceCase_ = 2; - 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 flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); - } - - private int referenceCase_ = 0; - private java.lang.Object reference_; - public enum ReferenceCase - implements com.google.protobuf.Internal.EnumLite { - LAUNCHPLAN_REF(1), - SUB_WORKFLOW_REF(2), - REFERENCE_NOT_SET(0); - private final int value; - private ReferenceCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReferenceCase valueOf(int value) { - return forNumber(value); - } - - public static ReferenceCase forNumber(int value) { - switch (value) { - case 1: return LAUNCHPLAN_REF; - case 2: return SUB_WORKFLOW_REF; - case 0: return REFERENCE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReferenceCase - getReferenceCase() { - return ReferenceCase.forNumber( - referenceCase_); - } - - public static final int LAUNCHPLAN_REF_FIELD_NUMBER = 1; - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public boolean hasLaunchplanRef() { - return referenceCase_ == 1; - } - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - - public static final int SUB_WORKFLOW_REF_FIELD_NUMBER = 2; - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public boolean hasSubWorkflowRef() { - return referenceCase_ == 2; - } - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { - if (referenceCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { - if (referenceCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (referenceCase_ == 1) { - output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - if (referenceCase_ == 2) { - output.writeMessage(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (referenceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - if (referenceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - 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 flyteidl.core.Workflow.WorkflowNode)) { - return super.equals(obj); - } - flyteidl.core.Workflow.WorkflowNode other = (flyteidl.core.Workflow.WorkflowNode) obj; - - if (!getReferenceCase().equals(other.getReferenceCase())) return false; - switch (referenceCase_) { - case 1: - if (!getLaunchplanRef() - .equals(other.getLaunchplanRef())) return false; - break; - case 2: - if (!getSubWorkflowRef() - .equals(other.getSubWorkflowRef())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (referenceCase_) { - case 1: - hash = (37 * hash) + LAUNCHPLAN_REF_FIELD_NUMBER; - hash = (53 * hash) + getLaunchplanRef().hashCode(); - break; - case 2: - hash = (37 * hash) + SUB_WORKFLOW_REF_FIELD_NUMBER; - hash = (53 * hash) + getSubWorkflowRef().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowNode 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 flyteidl.core.Workflow.WorkflowNode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowNode 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 flyteidl.core.Workflow.WorkflowNode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowNode 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(flyteidl.core.Workflow.WorkflowNode 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; - } - /** - *
-     * Refers to a the workflow the node is to execute.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowNode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowNode) - flyteidl.core.Workflow.WorkflowNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); - } - - // Construct using flyteidl.core.Workflow.WorkflowNode.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(); - referenceCase_ = 0; - reference_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowNode getDefaultInstanceForType() { - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowNode build() { - flyteidl.core.Workflow.WorkflowNode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowNode buildPartial() { - flyteidl.core.Workflow.WorkflowNode result = new flyteidl.core.Workflow.WorkflowNode(this); - if (referenceCase_ == 1) { - if (launchplanRefBuilder_ == null) { - result.reference_ = reference_; - } else { - result.reference_ = launchplanRefBuilder_.build(); - } - } - if (referenceCase_ == 2) { - if (subWorkflowRefBuilder_ == null) { - result.reference_ = reference_; - } else { - result.reference_ = subWorkflowRefBuilder_.build(); - } - } - result.referenceCase_ = referenceCase_; - 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 flyteidl.core.Workflow.WorkflowNode) { - return mergeFrom((flyteidl.core.Workflow.WorkflowNode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.WorkflowNode other) { - if (other == flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) return this; - switch (other.getReferenceCase()) { - case LAUNCHPLAN_REF: { - mergeLaunchplanRef(other.getLaunchplanRef()); - break; - } - case SUB_WORKFLOW_REF: { - mergeSubWorkflowRef(other.getSubWorkflowRef()); - break; - } - case REFERENCE_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 { - flyteidl.core.Workflow.WorkflowNode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.WorkflowNode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int referenceCase_ = 0; - private java.lang.Object reference_; - public ReferenceCase - getReferenceCase() { - return ReferenceCase.forNumber( - referenceCase_); - } - - public Builder clearReference() { - referenceCase_ = 0; - reference_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchplanRefBuilder_; - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public boolean hasLaunchplanRef() { - return referenceCase_ == 1; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { - if (launchplanRefBuilder_ == null) { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } else { - if (referenceCase_ == 1) { - return launchplanRefBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public Builder setLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchplanRefBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - } else { - launchplanRefBuilder_.setMessage(value); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public Builder setLaunchplanRef( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (launchplanRefBuilder_ == null) { - reference_ = builderForValue.build(); - onChanged(); - } else { - launchplanRefBuilder_.setMessage(builderForValue.build()); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public Builder mergeLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchplanRefBuilder_ == null) { - if (referenceCase_ == 1 && - reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) - .mergeFrom(value).buildPartial(); - } else { - reference_ = value; - } - onChanged(); - } else { - if (referenceCase_ == 1) { - launchplanRefBuilder_.mergeFrom(value); - } - launchplanRefBuilder_.setMessage(value); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public Builder clearLaunchplanRef() { - if (launchplanRefBuilder_ == null) { - if (referenceCase_ == 1) { - referenceCase_ = 0; - reference_ = null; - onChanged(); - } - } else { - if (referenceCase_ == 1) { - referenceCase_ = 0; - reference_ = null; - } - launchplanRefBuilder_.clear(); - } - return this; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchplanRefBuilder() { - return getLaunchplanRefFieldBuilder().getBuilder(); - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { - if ((referenceCase_ == 1) && (launchplanRefBuilder_ != null)) { - return launchplanRefBuilder_.getMessageOrBuilder(); - } else { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getLaunchplanRefFieldBuilder() { - if (launchplanRefBuilder_ == null) { - if (!(referenceCase_ == 1)) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - launchplanRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.Identifier) reference_, - getParentForChildren(), - isClean()); - reference_ = null; - } - referenceCase_ = 1; - onChanged();; - return launchplanRefBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> subWorkflowRefBuilder_; - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public boolean hasSubWorkflowRef() { - return referenceCase_ == 2; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { - if (subWorkflowRefBuilder_ == null) { - if (referenceCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } else { - if (referenceCase_ == 2) { - return subWorkflowRefBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public Builder setSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (subWorkflowRefBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - } else { - subWorkflowRefBuilder_.setMessage(value); - } - referenceCase_ = 2; - return this; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public Builder setSubWorkflowRef( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (subWorkflowRefBuilder_ == null) { - reference_ = builderForValue.build(); - onChanged(); - } else { - subWorkflowRefBuilder_.setMessage(builderForValue.build()); - } - referenceCase_ = 2; - return this; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public Builder mergeSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (subWorkflowRefBuilder_ == null) { - if (referenceCase_ == 2 && - reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) - .mergeFrom(value).buildPartial(); - } else { - reference_ = value; - } - onChanged(); - } else { - if (referenceCase_ == 2) { - subWorkflowRefBuilder_.mergeFrom(value); - } - subWorkflowRefBuilder_.setMessage(value); - } - referenceCase_ = 2; - return this; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public Builder clearSubWorkflowRef() { - if (subWorkflowRefBuilder_ == null) { - if (referenceCase_ == 2) { - referenceCase_ = 0; - reference_ = null; - onChanged(); - } - } else { - if (referenceCase_ == 2) { - referenceCase_ = 0; - reference_ = null; - } - subWorkflowRefBuilder_.clear(); - } - return this; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getSubWorkflowRefBuilder() { - return getSubWorkflowRefFieldBuilder().getBuilder(); - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { - if ((referenceCase_ == 2) && (subWorkflowRefBuilder_ != null)) { - return subWorkflowRefBuilder_.getMessageOrBuilder(); - } else { - if (referenceCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getSubWorkflowRefFieldBuilder() { - if (subWorkflowRefBuilder_ == null) { - if (!(referenceCase_ == 2)) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - subWorkflowRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.Identifier) reference_, - getParentForChildren(), - isClean()); - reference_ = null; - } - referenceCase_ = 2; - onChanged();; - return subWorkflowRefBuilder_; - } - @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:flyteidl.core.WorkflowNode) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowNode) - private static final flyteidl.core.Workflow.WorkflowNode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowNode(); - } - - public static flyteidl.core.Workflow.WorkflowNode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowNode(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 flyteidl.core.Workflow.WorkflowNode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A friendly name for the Node
-     * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-     * A friendly name for the Node
-     * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - boolean hasTimeout(); - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - com.google.protobuf.Duration getTimeout(); - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); - - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - boolean hasRetries(); - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - flyteidl.core.Literals.RetryStrategy getRetries(); - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); - - /** - * bool interruptible = 6; - */ - boolean getInterruptible(); - - public flyteidl.core.Workflow.NodeMetadata.InterruptibleValueCase getInterruptibleValueCase(); - } - /** - *
-   * Defines extra information about the Node.
-   * 
- * - * Protobuf type {@code flyteidl.core.NodeMetadata} - */ - public static final class NodeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.NodeMetadata) - NodeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeMetadata.newBuilder() to construct. - private NodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeMetadata() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeMetadata( - 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 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeout_ != null) { - subBuilder = timeout_.toBuilder(); - } - timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeout_); - timeout_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; - if (retries_ != null) { - subBuilder = retries_.toBuilder(); - } - retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retries_); - retries_ = subBuilder.buildPartial(); - } - - break; - } - case 48: { - interruptibleValueCase_ = 6; - interruptibleValue_ = input.readBool(); - 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 flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); - } - - private int interruptibleValueCase_ = 0; - private java.lang.Object interruptibleValue_; - public enum InterruptibleValueCase - implements com.google.protobuf.Internal.EnumLite { - INTERRUPTIBLE(6), - INTERRUPTIBLEVALUE_NOT_SET(0); - private final int value; - private InterruptibleValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InterruptibleValueCase valueOf(int value) { - return forNumber(value); - } - - public static InterruptibleValueCase forNumber(int value) { - switch (value) { - case 6: return INTERRUPTIBLE; - case 0: return INTERRUPTIBLEVALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public InterruptibleValueCase - getInterruptibleValueCase() { - return InterruptibleValueCase.forNumber( - interruptibleValueCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * A friendly name for the Node
-     * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-     * A friendly name for the Node
-     * 
- * - * string name = 1; - */ - 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 TIMEOUT_FIELD_NUMBER = 4; - private com.google.protobuf.Duration timeout_; - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public boolean hasTimeout() { - return timeout_ != null; - } - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration getTimeout() { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - return getTimeout(); - } - - public static final int RETRIES_FIELD_NUMBER = 5; - private flyteidl.core.Literals.RetryStrategy retries_; - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public boolean hasRetries() { - return retries_ != null; - } - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy getRetries() { - return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { - return getRetries(); - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 6; - /** - * bool interruptible = 6; - */ - public boolean getInterruptible() { - if (interruptibleValueCase_ == 6) { - return (java.lang.Boolean) interruptibleValue_; - } - return false; - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (timeout_ != null) { - output.writeMessage(4, getTimeout()); - } - if (retries_ != null) { - output.writeMessage(5, getRetries()); - } - if (interruptibleValueCase_ == 6) { - output.writeBool( - 6, (boolean)((java.lang.Boolean) interruptibleValue_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTimeout()); - } - if (retries_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getRetries()); - } - if (interruptibleValueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 6, (boolean)((java.lang.Boolean) interruptibleValue_)); - } - 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 flyteidl.core.Workflow.NodeMetadata)) { - return super.equals(obj); - } - flyteidl.core.Workflow.NodeMetadata other = (flyteidl.core.Workflow.NodeMetadata) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasTimeout() != other.hasTimeout()) return false; - if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; - } - if (hasRetries() != other.hasRetries()) return false; - if (hasRetries()) { - if (!getRetries() - .equals(other.getRetries())) return false; - } - if (!getInterruptibleValueCase().equals(other.getInterruptibleValueCase())) return false; - switch (interruptibleValueCase_) { - case 6: - if (getInterruptible() - != other.getInterruptible()) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasTimeout()) { - hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getTimeout().hashCode(); - } - if (hasRetries()) { - hash = (37 * hash) + RETRIES_FIELD_NUMBER; - hash = (53 * hash) + getRetries().hashCode(); - } - switch (interruptibleValueCase_) { - case 6: - hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterruptible()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.NodeMetadata 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 flyteidl.core.Workflow.NodeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.NodeMetadata 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 flyteidl.core.Workflow.NodeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.NodeMetadata 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(flyteidl.core.Workflow.NodeMetadata 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; - } - /** - *
-     * Defines extra information about the Node.
-     * 
- * - * Protobuf type {@code flyteidl.core.NodeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeMetadata) - flyteidl.core.Workflow.NodeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); - } - - // Construct using flyteidl.core.Workflow.NodeMetadata.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_ = ""; - - if (timeoutBuilder_ == null) { - timeout_ = null; - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - if (retriesBuilder_ == null) { - retries_ = null; - } else { - retries_ = null; - retriesBuilder_ = null; - } - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.NodeMetadata getDefaultInstanceForType() { - return flyteidl.core.Workflow.NodeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.NodeMetadata build() { - flyteidl.core.Workflow.NodeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.NodeMetadata buildPartial() { - flyteidl.core.Workflow.NodeMetadata result = new flyteidl.core.Workflow.NodeMetadata(this); - result.name_ = name_; - if (timeoutBuilder_ == null) { - result.timeout_ = timeout_; - } else { - result.timeout_ = timeoutBuilder_.build(); - } - if (retriesBuilder_ == null) { - result.retries_ = retries_; - } else { - result.retries_ = retriesBuilder_.build(); - } - if (interruptibleValueCase_ == 6) { - result.interruptibleValue_ = interruptibleValue_; - } - result.interruptibleValueCase_ = interruptibleValueCase_; - 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 flyteidl.core.Workflow.NodeMetadata) { - return mergeFrom((flyteidl.core.Workflow.NodeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.NodeMetadata other) { - if (other == flyteidl.core.Workflow.NodeMetadata.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasTimeout()) { - mergeTimeout(other.getTimeout()); - } - if (other.hasRetries()) { - mergeRetries(other.getRetries()); - } - switch (other.getInterruptibleValueCase()) { - case INTERRUPTIBLE: { - setInterruptible(other.getInterruptible()); - break; - } - case INTERRUPTIBLEVALUE_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 { - flyteidl.core.Workflow.NodeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.NodeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int interruptibleValueCase_ = 0; - private java.lang.Object interruptibleValue_; - public InterruptibleValueCase - getInterruptibleValueCase() { - return InterruptibleValueCase.forNumber( - interruptibleValueCase_); - } - - public Builder clearInterruptibleValue() { - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - onChanged(); - return this; - } - - - private java.lang.Object name_ = ""; - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - 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.Duration timeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public boolean hasTimeout() { - return timeoutBuilder_ != null || timeout_ != null; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration getTimeout() { - if (timeoutBuilder_ == null) { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } else { - return timeoutBuilder_.getMessage(); - } - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder setTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timeout_ = value; - onChanged(); - } else { - timeoutBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder setTimeout( - com.google.protobuf.Duration.Builder builderForValue) { - if (timeoutBuilder_ == null) { - timeout_ = builderForValue.build(); - onChanged(); - } else { - timeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder mergeTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (timeout_ != null) { - timeout_ = - com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); - } else { - timeout_ = value; - } - onChanged(); - } else { - timeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder clearTimeout() { - if (timeoutBuilder_ == null) { - timeout_ = null; - onChanged(); - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - - return this; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - - onChanged(); - return getTimeoutFieldBuilder().getBuilder(); - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - if (timeoutBuilder_ != null) { - return timeoutBuilder_.getMessageOrBuilder(); - } else { - return timeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getTimeoutFieldBuilder() { - if (timeoutBuilder_ == null) { - timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTimeout(), - getParentForChildren(), - isClean()); - timeout_ = null; - } - return timeoutBuilder_; - } - - private flyteidl.core.Literals.RetryStrategy retries_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public boolean hasRetries() { - return retriesBuilder_ != null || retries_ != null; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy getRetries() { - if (retriesBuilder_ == null) { - return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } else { - return retriesBuilder_.getMessage(); - } - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { - if (retriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - retries_ = value; - onChanged(); - } else { - retriesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder setRetries( - flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { - if (retriesBuilder_ == null) { - retries_ = builderForValue.build(); - onChanged(); - } else { - retriesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { - if (retriesBuilder_ == null) { - if (retries_ != null) { - retries_ = - flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); - } else { - retries_ = value; - } - onChanged(); - } else { - retriesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder clearRetries() { - if (retriesBuilder_ == null) { - retries_ = null; - onChanged(); - } else { - retries_ = null; - retriesBuilder_ = null; - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { - - onChanged(); - return getRetriesFieldBuilder().getBuilder(); - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { - if (retriesBuilder_ != null) { - return retriesBuilder_.getMessageOrBuilder(); - } else { - return retries_ == null ? - flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> - getRetriesFieldBuilder() { - if (retriesBuilder_ == null) { - retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( - getRetries(), - getParentForChildren(), - isClean()); - retries_ = null; - } - return retriesBuilder_; - } - - /** - * bool interruptible = 6; - */ - public boolean getInterruptible() { - if (interruptibleValueCase_ == 6) { - return (java.lang.Boolean) interruptibleValue_; - } - return false; - } - /** - * bool interruptible = 6; - */ - public Builder setInterruptible(boolean value) { - interruptibleValueCase_ = 6; - interruptibleValue_ = value; - onChanged(); - return this; - } - /** - * bool interruptible = 6; - */ - public Builder clearInterruptible() { - if (interruptibleValueCase_ == 6) { - interruptibleValueCase_ = 0; - interruptibleValue_ = 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:flyteidl.core.NodeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.NodeMetadata) - private static final flyteidl.core.Workflow.NodeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.NodeMetadata(); - } - - public static flyteidl.core.Workflow.NodeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeMetadata(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 flyteidl.core.Workflow.NodeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AliasOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Alias) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Must match one of the output variable names on a node.
-     * 
- * - * string var = 1; - */ - java.lang.String getVar(); - /** - *
-     * Must match one of the output variable names on a node.
-     * 
- * - * string var = 1; - */ - com.google.protobuf.ByteString - getVarBytes(); - - /** - *
-     * A workflow-level unique alias that downstream nodes can refer to in their input.
-     * 
- * - * string alias = 2; - */ - java.lang.String getAlias(); - /** - *
-     * A workflow-level unique alias that downstream nodes can refer to in their input.
-     * 
- * - * string alias = 2; - */ - com.google.protobuf.ByteString - getAliasBytes(); - } - /** - *
-   * Links a variable to an alias.
-   * 
- * - * Protobuf type {@code flyteidl.core.Alias} - */ - public static final class Alias extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Alias) - AliasOrBuilder { - private static final long serialVersionUID = 0L; - // Use Alias.newBuilder() to construct. - private Alias(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Alias() { - var_ = ""; - alias_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Alias( - 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(); - - var_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - alias_ = 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 flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); - } - - public static final int VAR_FIELD_NUMBER = 1; - private volatile java.lang.Object var_; - /** - *
-     * Must match one of the output variable names on a node.
-     * 
- * - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - 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(); - var_ = s; - return s; - } - } - /** - *
-     * Must match one of the output variable names on a node.
-     * 
- * - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALIAS_FIELD_NUMBER = 2; - private volatile java.lang.Object alias_; - /** - *
-     * A workflow-level unique alias that downstream nodes can refer to in their input.
-     * 
- * - * string alias = 2; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - 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(); - alias_ = s; - return s; - } - } - /** - *
-     * A workflow-level unique alias that downstream nodes can refer to in their input.
-     * 
- * - * string alias = 2; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = 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 (!getVarBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); - } - if (!getAliasBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alias_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getVarBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); - } - if (!getAliasBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alias_); - } - 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 flyteidl.core.Workflow.Alias)) { - return super.equals(obj); - } - flyteidl.core.Workflow.Alias other = (flyteidl.core.Workflow.Alias) obj; - - if (!getVar() - .equals(other.getVar())) return false; - if (!getAlias() - .equals(other.getAlias())) 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) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - hash = (37 * hash) + ALIAS_FIELD_NUMBER; - hash = (53 * hash) + getAlias().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.Alias parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Alias parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Alias parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Alias parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Alias parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Alias parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Alias parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Alias 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 flyteidl.core.Workflow.Alias parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Alias 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 flyteidl.core.Workflow.Alias parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Alias 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(flyteidl.core.Workflow.Alias 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; - } - /** - *
-     * Links a variable to an alias.
-     * 
- * - * Protobuf type {@code flyteidl.core.Alias} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Alias) - flyteidl.core.Workflow.AliasOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); - } - - // Construct using flyteidl.core.Workflow.Alias.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(); - var_ = ""; - - alias_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.Alias getDefaultInstanceForType() { - return flyteidl.core.Workflow.Alias.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.Alias build() { - flyteidl.core.Workflow.Alias result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.Alias buildPartial() { - flyteidl.core.Workflow.Alias result = new flyteidl.core.Workflow.Alias(this); - result.var_ = var_; - result.alias_ = alias_; - 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 flyteidl.core.Workflow.Alias) { - return mergeFrom((flyteidl.core.Workflow.Alias)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.Alias other) { - if (other == flyteidl.core.Workflow.Alias.getDefaultInstance()) return this; - if (!other.getVar().isEmpty()) { - var_ = other.var_; - onChanged(); - } - if (!other.getAlias().isEmpty()) { - alias_ = other.alias_; - 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 { - flyteidl.core.Workflow.Alias parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.Alias) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object var_ = ""; - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public Builder setVar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - var_ = value; - onChanged(); - return this; - } - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public Builder clearVar() { - - var_ = getDefaultInstance().getVar(); - onChanged(); - return this; - } - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public Builder setVarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - var_ = value; - onChanged(); - return this; - } - - private java.lang.Object alias_ = ""; - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public Builder setAlias( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - alias_ = value; - onChanged(); - return this; - } - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public Builder clearAlias() { - - alias_ = getDefaultInstance().getAlias(); - onChanged(); - return this; - } - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public Builder setAliasBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - alias_ = 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:flyteidl.core.Alias) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Alias) - private static final flyteidl.core.Workflow.Alias DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.Alias(); - } - - public static flyteidl.core.Workflow.Alias getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Alias parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Alias(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 flyteidl.core.Workflow.Alias getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Node) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-     * node ids that cannot be used by other nodes.
-     * 
- * - * string id = 1; - */ - java.lang.String getId(); - /** - *
-     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-     * node ids that cannot be used by other nodes.
-     * 
- * - * string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - boolean hasMetadata(); - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - flyteidl.core.Workflow.NodeMetadata getMetadata(); - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - java.util.List - getInputsList(); - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - flyteidl.core.Literals.Binding getInputs(int index); - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - int getInputsCount(); - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - java.util.List - getInputsOrBuilderList(); - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( - int index); - - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - java.util.List - getUpstreamNodeIdsList(); - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - int getUpstreamNodeIdsCount(); - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - java.lang.String getUpstreamNodeIds(int index); - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - com.google.protobuf.ByteString - getUpstreamNodeIdsBytes(int index); - - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - java.util.List - getOutputAliasesList(); - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - flyteidl.core.Workflow.Alias getOutputAliases(int index); - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - int getOutputAliasesCount(); - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - java.util.List - getOutputAliasesOrBuilderList(); - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( - int index); - - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - boolean hasTaskNode(); - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - flyteidl.core.Workflow.TaskNode getTaskNode(); - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder(); - - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - boolean hasWorkflowNode(); - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - flyteidl.core.Workflow.WorkflowNode getWorkflowNode(); - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder(); - - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - boolean hasBranchNode(); - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - flyteidl.core.Workflow.BranchNode getBranchNode(); - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder(); - - public flyteidl.core.Workflow.Node.TargetCase getTargetCase(); - } - /** - *
-   * A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
-   * node.
-   * 
- * - * Protobuf type {@code flyteidl.core.Node} - */ - public static final class Node extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Node) - NodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use Node.newBuilder() to construct. - private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Node() { - id_ = ""; - inputs_ = java.util.Collections.emptyList(); - upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - outputAliases_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Node( - 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: { - flyteidl.core.Workflow.NodeMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Workflow.NodeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - inputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - inputs_.add( - input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - upstreamNodeIds_.add(s); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - outputAliases_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - outputAliases_.add( - input.readMessage(flyteidl.core.Workflow.Alias.parser(), extensionRegistry)); - break; - } - case 50: { - flyteidl.core.Workflow.TaskNode.Builder subBuilder = null; - if (targetCase_ == 6) { - subBuilder = ((flyteidl.core.Workflow.TaskNode) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Workflow.TaskNode.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.TaskNode) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 6; - break; - } - case 58: { - flyteidl.core.Workflow.WorkflowNode.Builder subBuilder = null; - if (targetCase_ == 7) { - subBuilder = ((flyteidl.core.Workflow.WorkflowNode) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Workflow.WorkflowNode.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.WorkflowNode) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 7; - break; - } - case 66: { - flyteidl.core.Workflow.BranchNode.Builder subBuilder = null; - if (targetCase_ == 8) { - subBuilder = ((flyteidl.core.Workflow.BranchNode) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Workflow.BranchNode.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.BranchNode) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 8; - 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_ & 0x00000004) != 0)) { - inputs_ = java.util.Collections.unmodifiableList(inputs_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); - } - - private int bitField0_; - private int targetCase_ = 0; - private java.lang.Object target_; - public enum TargetCase - implements com.google.protobuf.Internal.EnumLite { - TASK_NODE(6), - WORKFLOW_NODE(7), - BRANCH_NODE(8), - TARGET_NOT_SET(0); - private final int value; - private TargetCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetCase valueOf(int value) { - return forNumber(value); - } - - public static TargetCase forNumber(int value) { - switch (value) { - case 6: return TASK_NODE; - case 7: return WORKFLOW_NODE; - case 8: return BRANCH_NODE; - case 0: return TARGET_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-     * node ids that cannot be used by other nodes.
-     * 
- * - * string id = 1; - */ - 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; - } - } - /** - *
-     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-     * node ids that cannot be used by other nodes.
-     * 
- * - * string id = 1; - */ - 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 METADATA_FIELD_NUMBER = 2; - private flyteidl.core.Workflow.NodeMetadata metadata_; - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int INPUTS_FIELD_NUMBER = 3; - private java.util.List inputs_; - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List getInputsList() { - return inputs_; - } - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List - getInputsOrBuilderList() { - return inputs_; - } - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public int getInputsCount() { - return inputs_.size(); - } - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding getInputs(int index) { - return inputs_.get(index); - } - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( - int index) { - return inputs_.get(index); - } - - public static final int UPSTREAM_NODE_IDS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList upstreamNodeIds_; - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - public com.google.protobuf.ProtocolStringList - getUpstreamNodeIdsList() { - return upstreamNodeIds_; - } - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - public int getUpstreamNodeIdsCount() { - return upstreamNodeIds_.size(); - } - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - public java.lang.String getUpstreamNodeIds(int index) { - return upstreamNodeIds_.get(index); - } - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - public com.google.protobuf.ByteString - getUpstreamNodeIdsBytes(int index) { - return upstreamNodeIds_.getByteString(index); - } - - public static final int OUTPUT_ALIASES_FIELD_NUMBER = 5; - private java.util.List outputAliases_; - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List getOutputAliasesList() { - return outputAliases_; - } - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List - getOutputAliasesOrBuilderList() { - return outputAliases_; - } - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public int getOutputAliasesCount() { - return outputAliases_.size(); - } - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias getOutputAliases(int index) { - return outputAliases_.get(index); - } - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( - int index) { - return outputAliases_.get(index); - } - - public static final int TASK_NODE_FIELD_NUMBER = 6; - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public boolean hasTaskNode() { - return targetCase_ == 6; - } - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNode getTaskNode() { - if (targetCase_ == 6) { - return (flyteidl.core.Workflow.TaskNode) target_; - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { - if (targetCase_ == 6) { - return (flyteidl.core.Workflow.TaskNode) target_; - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - - public static final int WORKFLOW_NODE_FIELD_NUMBER = 7; - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public boolean hasWorkflowNode() { - return targetCase_ == 7; - } - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { - if (targetCase_ == 7) { - return (flyteidl.core.Workflow.WorkflowNode) target_; - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { - if (targetCase_ == 7) { - return (flyteidl.core.Workflow.WorkflowNode) target_; - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - - public static final int BRANCH_NODE_FIELD_NUMBER = 8; - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public boolean hasBranchNode() { - return targetCase_ == 8; - } - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNode getBranchNode() { - if (targetCase_ == 8) { - return (flyteidl.core.Workflow.BranchNode) target_; - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { - if (targetCase_ == 8) { - return (flyteidl.core.Workflow.BranchNode) target_; - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (metadata_ != null) { - output.writeMessage(2, getMetadata()); - } - for (int i = 0; i < inputs_.size(); i++) { - output.writeMessage(3, inputs_.get(i)); - } - for (int i = 0; i < upstreamNodeIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, upstreamNodeIds_.getRaw(i)); - } - for (int i = 0; i < outputAliases_.size(); i++) { - output.writeMessage(5, outputAliases_.get(i)); - } - if (targetCase_ == 6) { - output.writeMessage(6, (flyteidl.core.Workflow.TaskNode) target_); - } - if (targetCase_ == 7) { - output.writeMessage(7, (flyteidl.core.Workflow.WorkflowNode) target_); - } - if (targetCase_ == 8) { - output.writeMessage(8, (flyteidl.core.Workflow.BranchNode) target_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMetadata()); - } - for (int i = 0; i < inputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, inputs_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < upstreamNodeIds_.size(); i++) { - dataSize += computeStringSizeNoTag(upstreamNodeIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getUpstreamNodeIdsList().size(); - } - for (int i = 0; i < outputAliases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, outputAliases_.get(i)); - } - if (targetCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (flyteidl.core.Workflow.TaskNode) target_); - } - if (targetCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (flyteidl.core.Workflow.WorkflowNode) target_); - } - if (targetCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (flyteidl.core.Workflow.BranchNode) target_); - } - 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 flyteidl.core.Workflow.Node)) { - return super.equals(obj); - } - flyteidl.core.Workflow.Node other = (flyteidl.core.Workflow.Node) obj; - - if (!getId() - .equals(other.getId())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!getInputsList() - .equals(other.getInputsList())) return false; - if (!getUpstreamNodeIdsList() - .equals(other.getUpstreamNodeIdsList())) return false; - if (!getOutputAliasesList() - .equals(other.getOutputAliasesList())) return false; - if (!getTargetCase().equals(other.getTargetCase())) return false; - switch (targetCase_) { - case 6: - if (!getTaskNode() - .equals(other.getTaskNode())) return false; - break; - case 7: - if (!getWorkflowNode() - .equals(other.getWorkflowNode())) return false; - break; - case 8: - if (!getBranchNode() - .equals(other.getBranchNode())) 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) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (getInputsCount() > 0) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputsList().hashCode(); - } - if (getUpstreamNodeIdsCount() > 0) { - hash = (37 * hash) + UPSTREAM_NODE_IDS_FIELD_NUMBER; - hash = (53 * hash) + getUpstreamNodeIdsList().hashCode(); - } - if (getOutputAliasesCount() > 0) { - hash = (37 * hash) + OUTPUT_ALIASES_FIELD_NUMBER; - hash = (53 * hash) + getOutputAliasesList().hashCode(); - } - switch (targetCase_) { - case 6: - hash = (37 * hash) + TASK_NODE_FIELD_NUMBER; - hash = (53 * hash) + getTaskNode().hashCode(); - break; - case 7: - hash = (37 * hash) + WORKFLOW_NODE_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowNode().hashCode(); - break; - case 8: - hash = (37 * hash) + BRANCH_NODE_FIELD_NUMBER; - hash = (53 * hash) + getBranchNode().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.Node parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Node parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Node parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Node parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Node parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Node parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Node parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Node 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 flyteidl.core.Workflow.Node parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Node 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 flyteidl.core.Workflow.Node parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Node 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(flyteidl.core.Workflow.Node 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 Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
-     * node.
-     * 
- * - * Protobuf type {@code flyteidl.core.Node} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Node) - flyteidl.core.Workflow.NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); - } - - // Construct using flyteidl.core.Workflow.Node.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInputsFieldBuilder(); - getOutputAliasesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - inputsBuilder_.clear(); - } - upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - if (outputAliasesBuilder_ == null) { - outputAliases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - outputAliasesBuilder_.clear(); - } - targetCase_ = 0; - target_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.Node getDefaultInstanceForType() { - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.Node build() { - flyteidl.core.Workflow.Node result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.Node buildPartial() { - flyteidl.core.Workflow.Node result = new flyteidl.core.Workflow.Node(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.id_ = id_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (inputsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - inputs_ = java.util.Collections.unmodifiableList(inputs_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (((bitField0_ & 0x00000008) != 0)) { - upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.upstreamNodeIds_ = upstreamNodeIds_; - if (outputAliasesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.outputAliases_ = outputAliases_; - } else { - result.outputAliases_ = outputAliasesBuilder_.build(); - } - if (targetCase_ == 6) { - if (taskNodeBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = taskNodeBuilder_.build(); - } - } - if (targetCase_ == 7) { - if (workflowNodeBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = workflowNodeBuilder_.build(); - } - } - if (targetCase_ == 8) { - if (branchNodeBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = branchNodeBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.targetCase_ = targetCase_; - 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 flyteidl.core.Workflow.Node) { - return mergeFrom((flyteidl.core.Workflow.Node)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.Node other) { - if (other == flyteidl.core.Workflow.Node.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (inputsBuilder_ == null) { - if (!other.inputs_.isEmpty()) { - if (inputs_.isEmpty()) { - inputs_ = other.inputs_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureInputsIsMutable(); - inputs_.addAll(other.inputs_); - } - onChanged(); - } - } else { - if (!other.inputs_.isEmpty()) { - if (inputsBuilder_.isEmpty()) { - inputsBuilder_.dispose(); - inputsBuilder_ = null; - inputs_ = other.inputs_; - bitField0_ = (bitField0_ & ~0x00000004); - inputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputsFieldBuilder() : null; - } else { - inputsBuilder_.addAllMessages(other.inputs_); - } - } - } - if (!other.upstreamNodeIds_.isEmpty()) { - if (upstreamNodeIds_.isEmpty()) { - upstreamNodeIds_ = other.upstreamNodeIds_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureUpstreamNodeIdsIsMutable(); - upstreamNodeIds_.addAll(other.upstreamNodeIds_); - } - onChanged(); - } - if (outputAliasesBuilder_ == null) { - if (!other.outputAliases_.isEmpty()) { - if (outputAliases_.isEmpty()) { - outputAliases_ = other.outputAliases_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureOutputAliasesIsMutable(); - outputAliases_.addAll(other.outputAliases_); - } - onChanged(); - } - } else { - if (!other.outputAliases_.isEmpty()) { - if (outputAliasesBuilder_.isEmpty()) { - outputAliasesBuilder_.dispose(); - outputAliasesBuilder_ = null; - outputAliases_ = other.outputAliases_; - bitField0_ = (bitField0_ & ~0x00000010); - outputAliasesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutputAliasesFieldBuilder() : null; - } else { - outputAliasesBuilder_.addAllMessages(other.outputAliases_); - } - } - } - switch (other.getTargetCase()) { - case TASK_NODE: { - mergeTaskNode(other.getTaskNode()); - break; - } - case WORKFLOW_NODE: { - mergeWorkflowNode(other.getWorkflowNode()); - break; - } - case BRANCH_NODE: { - mergeBranchNode(other.getBranchNode()); - break; - } - case TARGET_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 { - flyteidl.core.Workflow.Node parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.Node) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int targetCase_ = 0; - private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public Builder clearTarget() { - targetCase_ = 0; - target_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - 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; - } - } - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - 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; - } - } - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Workflow.NodeMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public Builder setMetadata(flyteidl.core.Workflow.NodeMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public Builder setMetadata( - flyteidl.core.Workflow.NodeMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public Builder mergeMetadata(flyteidl.core.Workflow.NodeMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Workflow.NodeMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private java.util.List inputs_ = - java.util.Collections.emptyList(); - private void ensureInputsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - inputs_ = new java.util.ArrayList(inputs_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> inputsBuilder_; - - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List getInputsList() { - if (inputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(inputs_); - } else { - return inputsBuilder_.getMessageList(); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public int getInputsCount() { - if (inputsBuilder_ == null) { - return inputs_.size(); - } else { - return inputsBuilder_.getCount(); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding getInputs(int index) { - if (inputsBuilder_ == null) { - return inputs_.get(index); - } else { - return inputsBuilder_.getMessage(index); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder setInputs( - int index, flyteidl.core.Literals.Binding value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.set(index, value); - onChanged(); - } else { - inputsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder setInputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.set(index, builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addInputs(flyteidl.core.Literals.Binding value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.add(value); - onChanged(); - } else { - inputsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addInputs( - int index, flyteidl.core.Literals.Binding value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.add(index, value); - onChanged(); - } else { - inputsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addInputs( - flyteidl.core.Literals.Binding.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.add(builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addInputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.add(index, builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addAllInputs( - java.lang.Iterable values) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputs_); - onChanged(); - } else { - inputsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - inputsBuilder_.clear(); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder removeInputs(int index) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.remove(index); - onChanged(); - } else { - inputsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder getInputsBuilder( - int index) { - return getInputsFieldBuilder().getBuilder(index); - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( - int index) { - if (inputsBuilder_ == null) { - return inputs_.get(index); } else { - return inputsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List - getInputsOrBuilderList() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(inputs_); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder addInputsBuilder() { - return getInputsFieldBuilder().addBuilder( - flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder addInputsBuilder( - int index) { - return getInputsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List - getInputsBuilderList() { - return getInputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( - inputs_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private com.google.protobuf.LazyStringList upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureUpstreamNodeIdsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(upstreamNodeIds_); - bitField0_ |= 0x00000008; - } - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public com.google.protobuf.ProtocolStringList - getUpstreamNodeIdsList() { - return upstreamNodeIds_.getUnmodifiableView(); - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public int getUpstreamNodeIdsCount() { - return upstreamNodeIds_.size(); - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public java.lang.String getUpstreamNodeIds(int index) { - return upstreamNodeIds_.get(index); - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public com.google.protobuf.ByteString - getUpstreamNodeIdsBytes(int index) { - return upstreamNodeIds_.getByteString(index); - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder setUpstreamNodeIds( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUpstreamNodeIdsIsMutable(); - upstreamNodeIds_.set(index, value); - onChanged(); - return this; - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder addUpstreamNodeIds( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUpstreamNodeIdsIsMutable(); - upstreamNodeIds_.add(value); - onChanged(); - return this; - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder addAllUpstreamNodeIds( - java.lang.Iterable values) { - ensureUpstreamNodeIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, upstreamNodeIds_); - onChanged(); - return this; - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder clearUpstreamNodeIds() { - upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder addUpstreamNodeIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUpstreamNodeIdsIsMutable(); - upstreamNodeIds_.add(value); - onChanged(); - return this; - } - - private java.util.List outputAliases_ = - java.util.Collections.emptyList(); - private void ensureOutputAliasesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - outputAliases_ = new java.util.ArrayList(outputAliases_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> outputAliasesBuilder_; - - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List getOutputAliasesList() { - if (outputAliasesBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputAliases_); - } else { - return outputAliasesBuilder_.getMessageList(); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public int getOutputAliasesCount() { - if (outputAliasesBuilder_ == null) { - return outputAliases_.size(); - } else { - return outputAliasesBuilder_.getCount(); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias getOutputAliases(int index) { - if (outputAliasesBuilder_ == null) { - return outputAliases_.get(index); - } else { - return outputAliasesBuilder_.getMessage(index); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder setOutputAliases( - int index, flyteidl.core.Workflow.Alias value) { - if (outputAliasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputAliasesIsMutable(); - outputAliases_.set(index, value); - onChanged(); - } else { - outputAliasesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder setOutputAliases( - int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - outputAliases_.set(index, builderForValue.build()); - onChanged(); - } else { - outputAliasesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addOutputAliases(flyteidl.core.Workflow.Alias value) { - if (outputAliasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputAliasesIsMutable(); - outputAliases_.add(value); - onChanged(); - } else { - outputAliasesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addOutputAliases( - int index, flyteidl.core.Workflow.Alias value) { - if (outputAliasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputAliasesIsMutable(); - outputAliases_.add(index, value); - onChanged(); - } else { - outputAliasesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addOutputAliases( - flyteidl.core.Workflow.Alias.Builder builderForValue) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - outputAliases_.add(builderForValue.build()); - onChanged(); - } else { - outputAliasesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addOutputAliases( - int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - outputAliases_.add(index, builderForValue.build()); - onChanged(); - } else { - outputAliasesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addAllOutputAliases( - java.lang.Iterable values) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputAliases_); - onChanged(); - } else { - outputAliasesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder clearOutputAliases() { - if (outputAliasesBuilder_ == null) { - outputAliases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - outputAliasesBuilder_.clear(); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder removeOutputAliases(int index) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - outputAliases_.remove(index); - onChanged(); - } else { - outputAliasesBuilder_.remove(index); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias.Builder getOutputAliasesBuilder( - int index) { - return getOutputAliasesFieldBuilder().getBuilder(index); - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( - int index) { - if (outputAliasesBuilder_ == null) { - return outputAliases_.get(index); } else { - return outputAliasesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List - getOutputAliasesOrBuilderList() { - if (outputAliasesBuilder_ != null) { - return outputAliasesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outputAliases_); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder() { - return getOutputAliasesFieldBuilder().addBuilder( - flyteidl.core.Workflow.Alias.getDefaultInstance()); - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder( - int index) { - return getOutputAliasesFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.Alias.getDefaultInstance()); - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List - getOutputAliasesBuilderList() { - return getOutputAliasesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> - getOutputAliasesFieldBuilder() { - if (outputAliasesBuilder_ == null) { - outputAliasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder>( - outputAliases_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - outputAliases_ = null; - } - return outputAliasesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> taskNodeBuilder_; - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public boolean hasTaskNode() { - return targetCase_ == 6; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNode getTaskNode() { - if (taskNodeBuilder_ == null) { - if (targetCase_ == 6) { - return (flyteidl.core.Workflow.TaskNode) target_; - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } else { - if (targetCase_ == 6) { - return taskNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public Builder setTaskNode(flyteidl.core.Workflow.TaskNode value) { - if (taskNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - taskNodeBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public Builder setTaskNode( - flyteidl.core.Workflow.TaskNode.Builder builderForValue) { - if (taskNodeBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - taskNodeBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 6; - return this; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public Builder mergeTaskNode(flyteidl.core.Workflow.TaskNode value) { - if (taskNodeBuilder_ == null) { - if (targetCase_ == 6 && - target_ != flyteidl.core.Workflow.TaskNode.getDefaultInstance()) { - target_ = flyteidl.core.Workflow.TaskNode.newBuilder((flyteidl.core.Workflow.TaskNode) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 6) { - taskNodeBuilder_.mergeFrom(value); - } - taskNodeBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public Builder clearTaskNode() { - if (taskNodeBuilder_ == null) { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - } - taskNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNode.Builder getTaskNodeBuilder() { - return getTaskNodeFieldBuilder().getBuilder(); - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { - if ((targetCase_ == 6) && (taskNodeBuilder_ != null)) { - return taskNodeBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 6) { - return (flyteidl.core.Workflow.TaskNode) target_; - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> - getTaskNodeFieldBuilder() { - if (taskNodeBuilder_ == null) { - if (!(targetCase_ == 6)) { - target_ = flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - taskNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder>( - (flyteidl.core.Workflow.TaskNode) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 6; - onChanged();; - return taskNodeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> workflowNodeBuilder_; - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public boolean hasWorkflowNode() { - return targetCase_ == 7; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { - if (workflowNodeBuilder_ == null) { - if (targetCase_ == 7) { - return (flyteidl.core.Workflow.WorkflowNode) target_; - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } else { - if (targetCase_ == 7) { - return workflowNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public Builder setWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { - if (workflowNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - workflowNodeBuilder_.setMessage(value); - } - targetCase_ = 7; - return this; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public Builder setWorkflowNode( - flyteidl.core.Workflow.WorkflowNode.Builder builderForValue) { - if (workflowNodeBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - workflowNodeBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 7; - return this; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public Builder mergeWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { - if (workflowNodeBuilder_ == null) { - if (targetCase_ == 7 && - target_ != flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) { - target_ = flyteidl.core.Workflow.WorkflowNode.newBuilder((flyteidl.core.Workflow.WorkflowNode) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 7) { - workflowNodeBuilder_.mergeFrom(value); - } - workflowNodeBuilder_.setMessage(value); - } - targetCase_ = 7; - return this; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public Builder clearWorkflowNode() { - if (workflowNodeBuilder_ == null) { - if (targetCase_ == 7) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 7) { - targetCase_ = 0; - target_ = null; - } - workflowNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNode.Builder getWorkflowNodeBuilder() { - return getWorkflowNodeFieldBuilder().getBuilder(); - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { - if ((targetCase_ == 7) && (workflowNodeBuilder_ != null)) { - return workflowNodeBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 7) { - return (flyteidl.core.Workflow.WorkflowNode) target_; - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> - getWorkflowNodeFieldBuilder() { - if (workflowNodeBuilder_ == null) { - if (!(targetCase_ == 7)) { - target_ = flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - workflowNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder>( - (flyteidl.core.Workflow.WorkflowNode) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 7; - onChanged();; - return workflowNodeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> branchNodeBuilder_; - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public boolean hasBranchNode() { - return targetCase_ == 8; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNode getBranchNode() { - if (branchNodeBuilder_ == null) { - if (targetCase_ == 8) { - return (flyteidl.core.Workflow.BranchNode) target_; - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } else { - if (targetCase_ == 8) { - return branchNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public Builder setBranchNode(flyteidl.core.Workflow.BranchNode value) { - if (branchNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - branchNodeBuilder_.setMessage(value); - } - targetCase_ = 8; - return this; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public Builder setBranchNode( - flyteidl.core.Workflow.BranchNode.Builder builderForValue) { - if (branchNodeBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - branchNodeBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 8; - return this; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public Builder mergeBranchNode(flyteidl.core.Workflow.BranchNode value) { - if (branchNodeBuilder_ == null) { - if (targetCase_ == 8 && - target_ != flyteidl.core.Workflow.BranchNode.getDefaultInstance()) { - target_ = flyteidl.core.Workflow.BranchNode.newBuilder((flyteidl.core.Workflow.BranchNode) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 8) { - branchNodeBuilder_.mergeFrom(value); - } - branchNodeBuilder_.setMessage(value); - } - targetCase_ = 8; - return this; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public Builder clearBranchNode() { - if (branchNodeBuilder_ == null) { - if (targetCase_ == 8) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 8) { - targetCase_ = 0; - target_ = null; - } - branchNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNode.Builder getBranchNodeBuilder() { - return getBranchNodeFieldBuilder().getBuilder(); - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { - if ((targetCase_ == 8) && (branchNodeBuilder_ != null)) { - return branchNodeBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 8) { - return (flyteidl.core.Workflow.BranchNode) target_; - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> - getBranchNodeFieldBuilder() { - if (branchNodeBuilder_ == null) { - if (!(targetCase_ == 8)) { - target_ = flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - branchNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder>( - (flyteidl.core.Workflow.BranchNode) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 8; - onChanged();; - return branchNodeBuilder_; - } - @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:flyteidl.core.Node) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Node) - private static final flyteidl.core.Workflow.Node DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.Node(); - } - - public static flyteidl.core.Workflow.Node getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Node(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 flyteidl.core.Workflow.Node getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - boolean hasQualityOfService(); - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - flyteidl.core.Execution.QualityOfService getQualityOfService(); - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); - - /** - *
-     * Defines how the system should behave when a failure is detected in the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - int getOnFailureValue(); - /** - *
-     * Defines how the system should behave when a failure is detected in the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure(); - } - /** - *
-   * Metadata for the entire workflow. Defines execution behavior that does not change the final outputs of the workflow.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowMetadata} - */ - public static final class WorkflowMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowMetadata) - WorkflowMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowMetadata.newBuilder() to construct. - private WorkflowMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowMetadata() { - onFailure_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowMetadata( - 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: { - flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; - if (qualityOfService_ != null) { - subBuilder = qualityOfService_.toBuilder(); - } - qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qualityOfService_); - qualityOfService_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - onFailure_ = rawValue; - 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 flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); - } - - /** - *
-     * Failure Handling Strategy
-     * 
- * - * Protobuf enum {@code flyteidl.core.WorkflowMetadata.OnFailurePolicy} - */ - public enum OnFailurePolicy - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically
-       * abort all currently running nodes and clean up resources before finally marking the workflow executions as
-       * failed.
-       * 
- * - * FAIL_IMMEDIATELY = 0; - */ - FAIL_IMMEDIATELY(0), - /** - *
-       * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will
-       * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run.
-       * Other nodes that will be executed to completion before cleaning up resources and marking the workflow
-       * execution as failed.
-       * 
- * - * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; - */ - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE(1), - UNRECOGNIZED(-1), - ; - - /** - *
-       * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically
-       * abort all currently running nodes and clean up resources before finally marking the workflow executions as
-       * failed.
-       * 
- * - * FAIL_IMMEDIATELY = 0; - */ - public static final int FAIL_IMMEDIATELY_VALUE = 0; - /** - *
-       * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will
-       * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run.
-       * Other nodes that will be executed to completion before cleaning up resources and marking the workflow
-       * execution as failed.
-       * 
- * - * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; - */ - public static final int FAIL_AFTER_EXECUTABLE_NODES_COMPLETE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OnFailurePolicy valueOf(int value) { - return forNumber(value); - } - - public static OnFailurePolicy forNumber(int value) { - switch (value) { - case 0: return FAIL_IMMEDIATELY; - case 1: return FAIL_AFTER_EXECUTABLE_NODES_COMPLETE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - OnFailurePolicy> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OnFailurePolicy findValueByNumber(int number) { - return OnFailurePolicy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Workflow.WorkflowMetadata.getDescriptor().getEnumTypes().get(0); - } - - private static final OnFailurePolicy[] VALUES = values(); - - public static OnFailurePolicy 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 OnFailurePolicy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowMetadata.OnFailurePolicy) - } - - public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 1; - private flyteidl.core.Execution.QualityOfService qualityOfService_; - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public boolean hasQualityOfService() { - return qualityOfService_ != null; - } - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - return getQualityOfService(); - } - - public static final int ON_FAILURE_FIELD_NUMBER = 2; - private int onFailure_; - /** - *
-     * Defines how the system should behave when a failure is detected in the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public int getOnFailureValue() { - return onFailure_; - } - /** - *
-     * Defines how the system should behave when a failure is detected in the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure() { - @SuppressWarnings("deprecation") - flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy result = flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.valueOf(onFailure_); - return result == null ? flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.UNRECOGNIZED : result; - } - - 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 (qualityOfService_ != null) { - output.writeMessage(1, getQualityOfService()); - } - if (onFailure_ != flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.FAIL_IMMEDIATELY.getNumber()) { - output.writeEnum(2, onFailure_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (qualityOfService_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getQualityOfService()); - } - if (onFailure_ != flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.FAIL_IMMEDIATELY.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, onFailure_); - } - 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 flyteidl.core.Workflow.WorkflowMetadata)) { - return super.equals(obj); - } - flyteidl.core.Workflow.WorkflowMetadata other = (flyteidl.core.Workflow.WorkflowMetadata) obj; - - if (hasQualityOfService() != other.hasQualityOfService()) return false; - if (hasQualityOfService()) { - if (!getQualityOfService() - .equals(other.getQualityOfService())) return false; - } - if (onFailure_ != other.onFailure_) 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 (hasQualityOfService()) { - hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getQualityOfService().hashCode(); - } - hash = (37 * hash) + ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + onFailure_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadata 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 flyteidl.core.Workflow.WorkflowMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadata 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 flyteidl.core.Workflow.WorkflowMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadata 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(flyteidl.core.Workflow.WorkflowMetadata 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; - } - /** - *
-     * Metadata for the entire workflow. Defines execution behavior that does not change the final outputs of the workflow.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowMetadata) - flyteidl.core.Workflow.WorkflowMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); - } - - // Construct using flyteidl.core.Workflow.WorkflowMetadata.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 (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - onFailure_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { - return flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadata build() { - flyteidl.core.Workflow.WorkflowMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadata buildPartial() { - flyteidl.core.Workflow.WorkflowMetadata result = new flyteidl.core.Workflow.WorkflowMetadata(this); - if (qualityOfServiceBuilder_ == null) { - result.qualityOfService_ = qualityOfService_; - } else { - result.qualityOfService_ = qualityOfServiceBuilder_.build(); - } - result.onFailure_ = onFailure_; - 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 flyteidl.core.Workflow.WorkflowMetadata) { - return mergeFrom((flyteidl.core.Workflow.WorkflowMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.WorkflowMetadata other) { - if (other == flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance()) return this; - if (other.hasQualityOfService()) { - mergeQualityOfService(other.getQualityOfService()); - } - if (other.onFailure_ != 0) { - setOnFailureValue(other.getOnFailureValue()); - } - 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 { - flyteidl.core.Workflow.WorkflowMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.WorkflowMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Execution.QualityOfService qualityOfService_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public boolean hasQualityOfService() { - return qualityOfServiceBuilder_ != null || qualityOfService_ != null; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } else { - return qualityOfServiceBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qualityOfService_ = value; - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public Builder setQualityOfService( - flyteidl.core.Execution.QualityOfService.Builder builderForValue) { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = builderForValue.build(); - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (qualityOfService_ != null) { - qualityOfService_ = - flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); - } else { - qualityOfService_ = value; - } - onChanged(); - } else { - qualityOfServiceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public Builder clearQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - onChanged(); - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { - - onChanged(); - return getQualityOfServiceFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if (qualityOfServiceBuilder_ != null) { - return qualityOfServiceBuilder_.getMessageOrBuilder(); - } else { - return qualityOfService_ == null ? - flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> - getQualityOfServiceFieldBuilder() { - if (qualityOfServiceBuilder_ == null) { - qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( - getQualityOfService(), - getParentForChildren(), - isClean()); - qualityOfService_ = null; - } - return qualityOfServiceBuilder_; - } - - private int onFailure_ = 0; - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public int getOnFailureValue() { - return onFailure_; - } - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public Builder setOnFailureValue(int value) { - onFailure_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure() { - @SuppressWarnings("deprecation") - flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy result = flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.valueOf(onFailure_); - return result == null ? flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.UNRECOGNIZED : result; - } - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public Builder setOnFailure(flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy value) { - if (value == null) { - throw new NullPointerException(); - } - - onFailure_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public Builder clearOnFailure() { - - onFailure_ = 0; - 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:flyteidl.core.WorkflowMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadata) - private static final flyteidl.core.Workflow.WorkflowMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowMetadata(); - } - - public static flyteidl.core.Workflow.WorkflowMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowMetadata(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 flyteidl.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowMetadataDefaultsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowMetadataDefaults) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identify whether workflow is interruptible.
-     * The value set at the workflow level will be the defualt value used for nodes
-     * unless explicitly set at the node level.
-     * 
- * - * bool interruptible = 1; - */ - boolean getInterruptible(); - } - /** - *
-   * Default Workflow Metadata for the entire workflow.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowMetadataDefaults} - */ - public static final class WorkflowMetadataDefaults extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowMetadataDefaults) - WorkflowMetadataDefaultsOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowMetadataDefaults.newBuilder() to construct. - private WorkflowMetadataDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowMetadataDefaults() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowMetadataDefaults( - 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 8: { - - interruptible_ = input.readBool(); - 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 flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowMetadataDefaults.class, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder.class); - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 1; - private boolean interruptible_; - /** - *
-     * Identify whether workflow is interruptible.
-     * The value set at the workflow level will be the defualt value used for nodes
-     * unless explicitly set at the node level.
-     * 
- * - * bool interruptible = 1; - */ - public boolean getInterruptible() { - return interruptible_; - } - - 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 (interruptible_ != false) { - output.writeBool(1, interruptible_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (interruptible_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, interruptible_); - } - 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 flyteidl.core.Workflow.WorkflowMetadataDefaults)) { - return super.equals(obj); - } - flyteidl.core.Workflow.WorkflowMetadataDefaults other = (flyteidl.core.Workflow.WorkflowMetadataDefaults) obj; - - if (getInterruptible() - != other.getInterruptible()) 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) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterruptible()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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 flyteidl.core.Workflow.WorkflowMetadataDefaults parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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 flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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(flyteidl.core.Workflow.WorkflowMetadataDefaults 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 Workflow Metadata for the entire workflow.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowMetadataDefaults} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowMetadataDefaults) - flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowMetadataDefaults.class, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder.class); - } - - // Construct using flyteidl.core.Workflow.WorkflowMetadataDefaults.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(); - interruptible_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstanceForType() { - return flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadataDefaults build() { - flyteidl.core.Workflow.WorkflowMetadataDefaults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadataDefaults buildPartial() { - flyteidl.core.Workflow.WorkflowMetadataDefaults result = new flyteidl.core.Workflow.WorkflowMetadataDefaults(this); - result.interruptible_ = interruptible_; - 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 flyteidl.core.Workflow.WorkflowMetadataDefaults) { - return mergeFrom((flyteidl.core.Workflow.WorkflowMetadataDefaults)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.WorkflowMetadataDefaults other) { - if (other == flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance()) return this; - if (other.getInterruptible() != false) { - setInterruptible(other.getInterruptible()); - } - 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 { - flyteidl.core.Workflow.WorkflowMetadataDefaults parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.WorkflowMetadataDefaults) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean interruptible_ ; - /** - *
-       * Identify whether workflow is interruptible.
-       * The value set at the workflow level will be the defualt value used for nodes
-       * unless explicitly set at the node level.
-       * 
- * - * bool interruptible = 1; - */ - public boolean getInterruptible() { - return interruptible_; - } - /** - *
-       * Identify whether workflow is interruptible.
-       * The value set at the workflow level will be the defualt value used for nodes
-       * unless explicitly set at the node level.
-       * 
- * - * bool interruptible = 1; - */ - public Builder setInterruptible(boolean value) { - - interruptible_ = value; - onChanged(); - return this; - } - /** - *
-       * Identify whether workflow is interruptible.
-       * The value set at the workflow level will be the defualt value used for nodes
-       * unless explicitly set at the node level.
-       * 
- * - * bool interruptible = 1; - */ - public Builder clearInterruptible() { - - interruptible_ = false; - 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:flyteidl.core.WorkflowMetadataDefaults) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadataDefaults) - private static final flyteidl.core.Workflow.WorkflowMetadataDefaults DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowMetadataDefaults(); - } - - public static flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowMetadataDefaults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowMetadataDefaults(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 flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowTemplateOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - boolean hasMetadata(); - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - flyteidl.core.Workflow.WorkflowMetadata getMetadata(); - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - boolean hasInterface(); - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - flyteidl.core.Interface.TypedInterface getInterface(); - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); - - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - java.util.List - getNodesList(); - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - flyteidl.core.Workflow.Node getNodes(int index); - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - int getNodesCount(); - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - java.util.List - getNodesOrBuilderList(); - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index); - - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - java.util.List - getOutputsList(); - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - flyteidl.core.Literals.Binding getOutputs(int index); - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - int getOutputsCount(); - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - java.util.List - getOutputsOrBuilderList(); - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index); - - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named "error" of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - boolean hasFailureNode(); - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named "error" of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - flyteidl.core.Workflow.Node getFailureNode(); - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named "error" of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder(); - - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - boolean hasMetadataDefaults(); - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults(); - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder(); - } - /** - *
-   * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
-   * directed acyclic graph.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowTemplate} - */ - public static final class WorkflowTemplate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowTemplate) - WorkflowTemplateOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowTemplate.newBuilder() to construct. - private WorkflowTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowTemplate() { - nodes_ = java.util.Collections.emptyList(); - outputs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowTemplate( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Workflow.WorkflowMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Workflow.WorkflowMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; - if (interface_ != null) { - subBuilder = interface_.toBuilder(); - } - interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(interface_); - interface_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - nodes_.add( - input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - outputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - outputs_.add( - input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); - break; - } - case 50: { - flyteidl.core.Workflow.Node.Builder subBuilder = null; - if (failureNode_ != null) { - subBuilder = failureNode_.toBuilder(); - } - failureNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(failureNode_); - failureNode_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder subBuilder = null; - if (metadataDefaults_ != null) { - subBuilder = metadataDefaults_.toBuilder(); - } - metadataDefaults_ = input.readMessage(flyteidl.core.Workflow.WorkflowMetadataDefaults.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadataDefaults_); - metadataDefaults_ = 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_ & 0x00000008) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int METADATA_FIELD_NUMBER = 2; - private flyteidl.core.Workflow.WorkflowMetadata metadata_; - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int INTERFACE_FIELD_NUMBER = 3; - private flyteidl.core.Interface.TypedInterface interface_; - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public boolean hasInterface() { - return interface_ != null; - } - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterface getInterface() { - return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { - return getInterface(); - } - - public static final int NODES_FIELD_NUMBER = 4; - private java.util.List nodes_; - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List getNodesList() { - return nodes_; - } - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List - getNodesOrBuilderList() { - return nodes_; - } - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public int getNodesCount() { - return nodes_.size(); - } - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node getNodes(int index) { - return nodes_.get(index); - } - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index) { - return nodes_.get(index); - } - - public static final int OUTPUTS_FIELD_NUMBER = 5; - private java.util.List outputs_; - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List getOutputsList() { - return outputs_; - } - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List - getOutputsOrBuilderList() { - return outputs_; - } - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public int getOutputsCount() { - return outputs_.size(); - } - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding getOutputs(int index) { - return outputs_.get(index); - } - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index) { - return outputs_.get(index); - } - - public static final int FAILURE_NODE_FIELD_NUMBER = 6; - private flyteidl.core.Workflow.Node failureNode_; - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named "error" of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public boolean hasFailureNode() { - return failureNode_ != null; - } - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named "error" of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.Node getFailureNode() { - return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; - } - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named "error" of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { - return getFailureNode(); - } - - public static final int METADATA_DEFAULTS_FIELD_NUMBER = 7; - private flyteidl.core.Workflow.WorkflowMetadataDefaults metadataDefaults_; - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public boolean hasMetadataDefaults() { - return metadataDefaults_ != null; - } - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults() { - return metadataDefaults_ == null ? flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; - } - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder() { - return getMetadataDefaults(); - } - - 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 (metadata_ != null) { - output.writeMessage(2, getMetadata()); - } - if (interface_ != null) { - output.writeMessage(3, getInterface()); - } - for (int i = 0; i < nodes_.size(); i++) { - output.writeMessage(4, nodes_.get(i)); - } - for (int i = 0; i < outputs_.size(); i++) { - output.writeMessage(5, outputs_.get(i)); - } - if (failureNode_ != null) { - output.writeMessage(6, getFailureNode()); - } - if (metadataDefaults_ != null) { - output.writeMessage(7, getMetadataDefaults()); - } - 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 (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMetadata()); - } - if (interface_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInterface()); - } - for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, nodes_.get(i)); - } - for (int i = 0; i < outputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, outputs_.get(i)); - } - if (failureNode_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getFailureNode()); - } - if (metadataDefaults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getMetadataDefaults()); - } - 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 flyteidl.core.Workflow.WorkflowTemplate)) { - return super.equals(obj); - } - flyteidl.core.Workflow.WorkflowTemplate other = (flyteidl.core.Workflow.WorkflowTemplate) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (hasInterface() != other.hasInterface()) return false; - if (hasInterface()) { - if (!getInterface() - .equals(other.getInterface())) return false; - } - if (!getNodesList() - .equals(other.getNodesList())) return false; - if (!getOutputsList() - .equals(other.getOutputsList())) return false; - if (hasFailureNode() != other.hasFailureNode()) return false; - if (hasFailureNode()) { - if (!getFailureNode() - .equals(other.getFailureNode())) return false; - } - if (hasMetadataDefaults() != other.hasMetadataDefaults()) return false; - if (hasMetadataDefaults()) { - if (!getMetadataDefaults() - .equals(other.getMetadataDefaults())) 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(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasInterface()) { - hash = (37 * hash) + INTERFACE_FIELD_NUMBER; - hash = (53 * hash) + getInterface().hashCode(); - } - if (getNodesCount() > 0) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + getNodesList().hashCode(); - } - if (getOutputsCount() > 0) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputsList().hashCode(); - } - if (hasFailureNode()) { - hash = (37 * hash) + FAILURE_NODE_FIELD_NUMBER; - hash = (53 * hash) + getFailureNode().hashCode(); - } - if (hasMetadataDefaults()) { - hash = (37 * hash) + METADATA_DEFAULTS_FIELD_NUMBER; - hash = (53 * hash) + getMetadataDefaults().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowTemplate 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 flyteidl.core.Workflow.WorkflowTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowTemplate 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 flyteidl.core.Workflow.WorkflowTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowTemplate 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(flyteidl.core.Workflow.WorkflowTemplate 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; - } - /** - *
-     * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
-     * directed acyclic graph.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowTemplate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowTemplate) - flyteidl.core.Workflow.WorkflowTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); - } - - // Construct using flyteidl.core.Workflow.WorkflowTemplate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodesFieldBuilder(); - getOutputsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (interfaceBuilder_ == null) { - interface_ = null; - } else { - interface_ = null; - interfaceBuilder_ = null; - } - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - nodesBuilder_.clear(); - } - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - outputsBuilder_.clear(); - } - if (failureNodeBuilder_ == null) { - failureNode_ = null; - } else { - failureNode_ = null; - failureNodeBuilder_ = null; - } - if (metadataDefaultsBuilder_ == null) { - metadataDefaults_ = null; - } else { - metadataDefaults_ = null; - metadataDefaultsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { - return flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowTemplate build() { - flyteidl.core.Workflow.WorkflowTemplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowTemplate buildPartial() { - flyteidl.core.Workflow.WorkflowTemplate result = new flyteidl.core.Workflow.WorkflowTemplate(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (interfaceBuilder_ == null) { - result.interface_ = interface_; - } else { - result.interface_ = interfaceBuilder_.build(); - } - if (nodesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.nodes_ = nodes_; - } else { - result.nodes_ = nodesBuilder_.build(); - } - if (outputsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - if (failureNodeBuilder_ == null) { - result.failureNode_ = failureNode_; - } else { - result.failureNode_ = failureNodeBuilder_.build(); - } - if (metadataDefaultsBuilder_ == null) { - result.metadataDefaults_ = metadataDefaults_; - } else { - result.metadataDefaults_ = metadataDefaultsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.core.Workflow.WorkflowTemplate) { - return mergeFrom((flyteidl.core.Workflow.WorkflowTemplate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.WorkflowTemplate other) { - if (other == flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasInterface()) { - mergeInterface(other.getInterface()); - } - if (nodesBuilder_ == null) { - if (!other.nodes_.isEmpty()) { - if (nodes_.isEmpty()) { - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureNodesIsMutable(); - nodes_.addAll(other.nodes_); - } - onChanged(); - } - } else { - if (!other.nodes_.isEmpty()) { - if (nodesBuilder_.isEmpty()) { - nodesBuilder_.dispose(); - nodesBuilder_ = null; - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000008); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; - } else { - nodesBuilder_.addAllMessages(other.nodes_); - } - } - } - if (outputsBuilder_ == null) { - if (!other.outputs_.isEmpty()) { - if (outputs_.isEmpty()) { - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureOutputsIsMutable(); - outputs_.addAll(other.outputs_); - } - onChanged(); - } - } else { - if (!other.outputs_.isEmpty()) { - if (outputsBuilder_.isEmpty()) { - outputsBuilder_.dispose(); - outputsBuilder_ = null; - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000010); - outputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutputsFieldBuilder() : null; - } else { - outputsBuilder_.addAllMessages(other.outputs_); - } - } - } - if (other.hasFailureNode()) { - mergeFailureNode(other.getFailureNode()); - } - if (other.hasMetadataDefaults()) { - mergeMetadataDefaults(other.getMetadataDefaults()); - } - 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 { - flyteidl.core.Workflow.WorkflowTemplate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.WorkflowTemplate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.core.Workflow.WorkflowMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public Builder setMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public Builder setMetadata( - flyteidl.core.Workflow.WorkflowMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public Builder mergeMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Workflow.WorkflowMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private flyteidl.core.Interface.TypedInterface interface_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public boolean hasInterface() { - return interfaceBuilder_ != null || interface_ != null; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterface getInterface() { - if (interfaceBuilder_ == null) { - return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } else { - return interfaceBuilder_.getMessage(); - } - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { - if (interfaceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - interface_ = value; - onChanged(); - } else { - interfaceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public Builder setInterface( - flyteidl.core.Interface.TypedInterface.Builder builderForValue) { - if (interfaceBuilder_ == null) { - interface_ = builderForValue.build(); - onChanged(); - } else { - interfaceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { - if (interfaceBuilder_ == null) { - if (interface_ != null) { - interface_ = - flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); - } else { - interface_ = value; - } - onChanged(); - } else { - interfaceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public Builder clearInterface() { - if (interfaceBuilder_ == null) { - interface_ = null; - onChanged(); - } else { - interface_ = null; - interfaceBuilder_ = null; - } - - return this; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { - - onChanged(); - return getInterfaceFieldBuilder().getBuilder(); - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { - if (interfaceBuilder_ != null) { - return interfaceBuilder_.getMessageOrBuilder(); - } else { - return interface_ == null ? - flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> - getInterfaceFieldBuilder() { - if (interfaceBuilder_ == null) { - interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( - getInterface(), - getParentForChildren(), - isClean()); - interface_ = null; - } - return interfaceBuilder_; - } - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; - - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); - } else { - return nodesBuilder_.getCount(); - } - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder setNodes( - int index, flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); - } else { - nodesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder setNodes( - int index, flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addNodes(flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addNodes( - int index, flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addNodes( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addNodes( - int index, flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - nodesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); - } else { - nodesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node.Builder getNodesBuilder( - int index) { - return getNodesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); } else { - return nodesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); - } - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - flyteidl.core.Workflow.Node.getDefaultInstance()); - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.Node.getDefaultInstance()); - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List - getNodesBuilderList() { - return getNodesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - nodes_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - nodes_ = null; - } - return nodesBuilder_; - } - - private java.util.List outputs_ = - java.util.Collections.emptyList(); - private void ensureOutputsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - outputs_ = new java.util.ArrayList(outputs_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; - - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List getOutputsList() { - if (outputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputs_); - } else { - return outputsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public int getOutputsCount() { - if (outputsBuilder_ == null) { - return outputs_.size(); - } else { - return outputsBuilder_.getCount(); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding getOutputs(int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); - } else { - return outputsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder setOutputs( - int index, flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.set(index, value); - onChanged(); - } else { - outputsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder setOutputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.set(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addOutputs(flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(value); - onChanged(); - } else { - outputsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addOutputs( - int index, flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(index, value); - onChanged(); - } else { - outputsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addOutputs( - flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addOutputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addAllOutputs( - java.lang.Iterable values) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputs_); - onChanged(); - } else { - outputsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - outputsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder removeOutputs(int index) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.remove(index); - onChanged(); - } else { - outputsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( - int index) { - return getOutputsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); } else { - return outputsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List - getOutputsOrBuilderList() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outputs_); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { - return getOutputsFieldBuilder().addBuilder( - flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( - int index) { - return getOutputsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List - getOutputsBuilderList() { - return getOutputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( - outputs_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - - private flyteidl.core.Workflow.Node failureNode_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> failureNodeBuilder_; - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public boolean hasFailureNode() { - return failureNodeBuilder_ != null || failureNode_ != null; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.Node getFailureNode() { - if (failureNodeBuilder_ == null) { - return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; - } else { - return failureNodeBuilder_.getMessage(); - } - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public Builder setFailureNode(flyteidl.core.Workflow.Node value) { - if (failureNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - failureNode_ = value; - onChanged(); - } else { - failureNodeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public Builder setFailureNode( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (failureNodeBuilder_ == null) { - failureNode_ = builderForValue.build(); - onChanged(); - } else { - failureNodeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public Builder mergeFailureNode(flyteidl.core.Workflow.Node value) { - if (failureNodeBuilder_ == null) { - if (failureNode_ != null) { - failureNode_ = - flyteidl.core.Workflow.Node.newBuilder(failureNode_).mergeFrom(value).buildPartial(); - } else { - failureNode_ = value; - } - onChanged(); - } else { - failureNodeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public Builder clearFailureNode() { - if (failureNodeBuilder_ == null) { - failureNode_ = null; - onChanged(); - } else { - failureNode_ = null; - failureNodeBuilder_ = null; - } - - return this; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.Node.Builder getFailureNodeBuilder() { - - onChanged(); - return getFailureNodeFieldBuilder().getBuilder(); - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { - if (failureNodeBuilder_ != null) { - return failureNodeBuilder_.getMessageOrBuilder(); - } else { - return failureNode_ == null ? - flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; - } - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getFailureNodeFieldBuilder() { - if (failureNodeBuilder_ == null) { - failureNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - getFailureNode(), - getParentForChildren(), - isClean()); - failureNode_ = null; - } - return failureNodeBuilder_; - } - - private flyteidl.core.Workflow.WorkflowMetadataDefaults metadataDefaults_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder> metadataDefaultsBuilder_; - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public boolean hasMetadataDefaults() { - return metadataDefaultsBuilder_ != null || metadataDefaults_ != null; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults() { - if (metadataDefaultsBuilder_ == null) { - return metadataDefaults_ == null ? flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; - } else { - return metadataDefaultsBuilder_.getMessage(); - } - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public Builder setMetadataDefaults(flyteidl.core.Workflow.WorkflowMetadataDefaults value) { - if (metadataDefaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadataDefaults_ = value; - onChanged(); - } else { - metadataDefaultsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public Builder setMetadataDefaults( - flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder builderForValue) { - if (metadataDefaultsBuilder_ == null) { - metadataDefaults_ = builderForValue.build(); - onChanged(); - } else { - metadataDefaultsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public Builder mergeMetadataDefaults(flyteidl.core.Workflow.WorkflowMetadataDefaults value) { - if (metadataDefaultsBuilder_ == null) { - if (metadataDefaults_ != null) { - metadataDefaults_ = - flyteidl.core.Workflow.WorkflowMetadataDefaults.newBuilder(metadataDefaults_).mergeFrom(value).buildPartial(); - } else { - metadataDefaults_ = value; - } - onChanged(); - } else { - metadataDefaultsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public Builder clearMetadataDefaults() { - if (metadataDefaultsBuilder_ == null) { - metadataDefaults_ = null; - onChanged(); - } else { - metadataDefaults_ = null; - metadataDefaultsBuilder_ = null; - } - - return this; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder getMetadataDefaultsBuilder() { - - onChanged(); - return getMetadataDefaultsFieldBuilder().getBuilder(); - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder() { - if (metadataDefaultsBuilder_ != null) { - return metadataDefaultsBuilder_.getMessageOrBuilder(); - } else { - return metadataDefaults_ == null ? - flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; - } - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder> - getMetadataDefaultsFieldBuilder() { - if (metadataDefaultsBuilder_ == null) { - metadataDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder>( - getMetadataDefaults(), - getParentForChildren(), - isClean()); - metadataDefaults_ = null; - } - return metadataDefaultsBuilder_; - } - @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:flyteidl.core.WorkflowTemplate) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowTemplate) - private static final flyteidl.core.Workflow.WorkflowTemplate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowTemplate(); - } - - public static flyteidl.core.Workflow.WorkflowTemplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowTemplate(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 flyteidl.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_IfBlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_IfBlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_IfElseBlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BranchNode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BranchNode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskNode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskNode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowNode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_NodeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Alias_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Alias_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Node_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Node_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowTemplate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowTemplate_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\034flyteidl/core/workflow.proto\022\rflyteidl" + - ".core\032\035flyteidl/core/condition.proto\032\035fl" + - "yteidl/core/execution.proto\032\036flyteidl/co" + - "re/identifier.proto\032\035flyteidl/core/inter" + - "face.proto\032\034flyteidl/core/literals.proto" + - "\032\031flyteidl/core/types.proto\032\036google/prot" + - "obuf/duration.proto\"f\n\007IfBlock\0223\n\tcondit" + - "ion\030\001 \001(\0132 .flyteidl.core.BooleanExpress" + - "ion\022&\n\tthen_node\030\002 \001(\0132\023.flyteidl.core.N" + - "ode\"\266\001\n\013IfElseBlock\022$\n\004case\030\001 \001(\0132\026.flyt" + - "eidl.core.IfBlock\022%\n\005other\030\002 \003(\0132\026.flyte" + - "idl.core.IfBlock\022(\n\telse_node\030\003 \001(\0132\023.fl" + - "yteidl.core.NodeH\000\022%\n\005error\030\004 \001(\0132\024.flyt" + - "eidl.core.ErrorH\000B\t\n\007default\"9\n\nBranchNo" + - "de\022+\n\007if_else\030\001 \001(\0132\032.flyteidl.core.IfEl" + - "seBlock\"J\n\010TaskNode\0221\n\014reference_id\030\001 \001(" + - "\0132\031.flyteidl.core.IdentifierH\000B\013\n\trefere" + - "nce\"\207\001\n\014WorkflowNode\0223\n\016launchplan_ref\030\001" + - " \001(\0132\031.flyteidl.core.IdentifierH\000\0225\n\020sub" + - "_workflow_ref\030\002 \001(\0132\031.flyteidl.core.Iden" + - "tifierH\000B\013\n\treference\"\247\001\n\014NodeMetadata\022\014" + - "\n\004name\030\001 \001(\t\022*\n\007timeout\030\004 \001(\0132\031.google.p" + - "rotobuf.Duration\022-\n\007retries\030\005 \001(\0132\034.flyt" + - "eidl.core.RetryStrategy\022\027\n\rinterruptible" + - "\030\006 \001(\010H\000B\025\n\023interruptible_value\"#\n\005Alias" + - "\022\013\n\003var\030\001 \001(\t\022\r\n\005alias\030\002 \001(\t\"\322\002\n\004Node\022\n\n" + - "\002id\030\001 \001(\t\022-\n\010metadata\030\002 \001(\0132\033.flyteidl.c" + - "ore.NodeMetadata\022&\n\006inputs\030\003 \003(\0132\026.flyte" + - "idl.core.Binding\022\031\n\021upstream_node_ids\030\004 " + - "\003(\t\022,\n\016output_aliases\030\005 \003(\0132\024.flyteidl.c" + - "ore.Alias\022,\n\ttask_node\030\006 \001(\0132\027.flyteidl." + - "core.TaskNodeH\000\0224\n\rworkflow_node\030\007 \001(\0132\033" + - ".flyteidl.core.WorkflowNodeH\000\0220\n\013branch_" + - "node\030\010 \001(\0132\031.flyteidl.core.BranchNodeH\000B" + - "\010\n\006target\"\347\001\n\020WorkflowMetadata\022;\n\022qualit" + - "y_of_service\030\001 \001(\0132\037.flyteidl.core.Quali" + - "tyOfService\022C\n\non_failure\030\002 \001(\0162/.flytei" + - "dl.core.WorkflowMetadata.OnFailurePolicy" + - "\"Q\n\017OnFailurePolicy\022\024\n\020FAIL_IMMEDIATELY\020" + - "\000\022(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLET" + - "E\020\001\"1\n\030WorkflowMetadataDefaults\022\025\n\rinter" + - "ruptible\030\001 \001(\010\"\332\002\n\020WorkflowTemplate\022%\n\002i" + - "d\030\001 \001(\0132\031.flyteidl.core.Identifier\0221\n\010me" + - "tadata\030\002 \001(\0132\037.flyteidl.core.WorkflowMet" + - "adata\0220\n\tinterface\030\003 \001(\0132\035.flyteidl.core" + - ".TypedInterface\022\"\n\005nodes\030\004 \003(\0132\023.flyteid" + - "l.core.Node\022\'\n\007outputs\030\005 \003(\0132\026.flyteidl." + - "core.Binding\022)\n\014failure_node\030\006 \001(\0132\023.fly" + - "teidl.core.Node\022B\n\021metadata_defaults\030\007 \001" + - "(\0132\'.flyteidl.core.WorkflowMetadataDefau" + - "ltsB2Z0github.com/lyft/flyteidl/gen/pb-g" + - "o/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Condition.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Interface.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.Types.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_IfBlock_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_IfBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_IfBlock_descriptor, - new java.lang.String[] { "Condition", "ThenNode", }); - internal_static_flyteidl_core_IfElseBlock_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_IfElseBlock_descriptor, - new java.lang.String[] { "Case", "Other", "ElseNode", "Error", "Default", }); - internal_static_flyteidl_core_BranchNode_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_BranchNode_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BranchNode_descriptor, - new java.lang.String[] { "IfElse", }); - internal_static_flyteidl_core_TaskNode_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_TaskNode_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TaskNode_descriptor, - new java.lang.String[] { "ReferenceId", "Reference", }); - internal_static_flyteidl_core_WorkflowNode_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowNode_descriptor, - new java.lang.String[] { "LaunchplanRef", "SubWorkflowRef", "Reference", }); - internal_static_flyteidl_core_NodeMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_NodeMetadata_descriptor, - new java.lang.String[] { "Name", "Timeout", "Retries", "Interruptible", "InterruptibleValue", }); - internal_static_flyteidl_core_Alias_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_core_Alias_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Alias_descriptor, - new java.lang.String[] { "Var", "Alias", }); - internal_static_flyteidl_core_Node_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_core_Node_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Node_descriptor, - new java.lang.String[] { "Id", "Metadata", "Inputs", "UpstreamNodeIds", "OutputAliases", "TaskNode", "WorkflowNode", "BranchNode", "Target", }); - internal_static_flyteidl_core_WorkflowMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowMetadata_descriptor, - new java.lang.String[] { "QualityOfService", "OnFailure", }); - internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor, - new java.lang.String[] { "Interruptible", }); - internal_static_flyteidl_core_WorkflowTemplate_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowTemplate_descriptor, - new java.lang.String[] { "Id", "Metadata", "Interface", "Nodes", "Outputs", "FailureNode", "MetadataDefaults", }); - flyteidl.core.Condition.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Interface.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.Types.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java b/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java deleted file mode 100644 index d1e0ffbff..000000000 --- a/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java +++ /dev/null @@ -1,1251 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/workflow_closure.proto - -package flyteidl.core; - -public final class WorkflowClosureOuterClass { - private WorkflowClosureOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorkflowClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - boolean hasWorkflow(); - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - flyteidl.core.Workflow.WorkflowTemplate getWorkflow(); - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder(); - - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - java.util.List - getTasksList(); - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - flyteidl.core.Tasks.TaskTemplate getTasks(int index); - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - int getTasksCount(); - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - java.util.List - getTasksOrBuilderList(); - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index); - } - /** - *
-   * Defines an enclosed package of workflow and tasks it references.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowClosure} - */ - public static final class WorkflowClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowClosure) - WorkflowClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowClosure.newBuilder() to construct. - private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowClosure() { - tasks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowClosure( - 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: { - flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; - if (workflow_ != null) { - subBuilder = workflow_.toBuilder(); - } - workflow_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflow_); - workflow_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - tasks_.add( - input.readMessage(flyteidl.core.Tasks.TaskTemplate.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_ & 0x00000002) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); - } - - private int bitField0_; - public static final int WORKFLOW_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.WorkflowTemplate workflow_; - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public boolean hasWorkflow() { - return workflow_ != null; - } - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { - return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; - } - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { - return getWorkflow(); - } - - public static final int TASKS_FIELD_NUMBER = 2; - private java.util.List tasks_; - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { - return tasks_.get(index); - } - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index) { - return tasks_.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 (workflow_ != null) { - output.writeMessage(1, getWorkflow()); - } - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(2, tasks_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkflow()); - } - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, tasks_.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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure)) { - return super.equals(obj); - } - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) obj; - - if (hasWorkflow() != other.hasWorkflow()) return false; - if (hasWorkflow()) { - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - } - if (!getTasksList() - .equals(other.getTasksList())) 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 (hasWorkflow()) { - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - } - if (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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(flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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; - } - /** - *
-     * Defines an enclosed package of workflow and tasks it references.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowClosure) - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); - } - - // Construct using flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTasksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (workflowBuilder_ == null) { - workflow_ = null; - } else { - workflow_ = null; - workflowBuilder_ = null; - } - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - tasksBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; - } - - @java.lang.Override - public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { - return flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure build() { - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure buildPartial() { - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (workflowBuilder_ == null) { - result.workflow_ = workflow_; - } else { - result.workflow_ = workflowBuilder_.build(); - } - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) { - return mergeFrom((flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other) { - if (other == flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance()) return this; - if (other.hasWorkflow()) { - mergeWorkflow(other.getWorkflow()); - } - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000002); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - 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 { - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.Workflow.WorkflowTemplate workflow_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> workflowBuilder_; - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public boolean hasWorkflow() { - return workflowBuilder_ != null || workflow_ != null; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { - if (workflowBuilder_ == null) { - return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; - } else { - return workflowBuilder_.getMessage(); - } - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public Builder setWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { - if (workflowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflow_ = value; - onChanged(); - } else { - workflowBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public Builder setWorkflow( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (workflowBuilder_ == null) { - workflow_ = builderForValue.build(); - onChanged(); - } else { - workflowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public Builder mergeWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { - if (workflowBuilder_ == null) { - if (workflow_ != null) { - workflow_ = - flyteidl.core.Workflow.WorkflowTemplate.newBuilder(workflow_).mergeFrom(value).buildPartial(); - } else { - workflow_ = value; - } - onChanged(); - } else { - workflowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public Builder clearWorkflow() { - if (workflowBuilder_ == null) { - workflow_ = null; - onChanged(); - } else { - workflow_ = null; - workflowBuilder_ = null; - } - - return this; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getWorkflowBuilder() { - - onChanged(); - return getWorkflowFieldBuilder().getBuilder(); - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { - if (workflowBuilder_ != null) { - return workflowBuilder_.getMessageOrBuilder(); - } else { - return workflow_ == null ? - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; - } - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getWorkflowFieldBuilder() { - if (workflowBuilder_ == null) { - workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - getWorkflow(), - getParentForChildren(), - isClean()); - workflow_ = null; - } - return workflowBuilder_; - } - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; - - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder setTasks( - int index, flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder setTasks( - int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addTasks( - int index, flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addTasks( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addTasks( - int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - tasks_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - @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:flyteidl.core.WorkflowClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowClosure) - private static final flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(); - } - - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowClosure(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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowClosure_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$flyteidl/core/workflow_closure.proto\022\r" + - "flyteidl.core\032\034flyteidl/core/workflow.pr" + - "oto\032\031flyteidl/core/tasks.proto\"p\n\017Workfl" + - "owClosure\0221\n\010workflow\030\001 \001(\0132\037.flyteidl.c" + - "ore.WorkflowTemplate\022*\n\005tasks\030\002 \003(\0132\033.fl" + - "yteidl.core.TaskTemplateB2Z0github.com/l" + - "yft/flyteidl/gen/pb-go/flyteidl/coreb\006pr" + - "oto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Workflow.getDescriptor(), - flyteidl.core.Tasks.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_WorkflowClosure_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowClosure_descriptor, - new java.lang.String[] { "Workflow", "Tasks", }); - flyteidl.core.Workflow.getDescriptor(); - flyteidl.core.Tasks.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/event/Event.java b/gen/pb-java/flyteidl/event/Event.java deleted file mode 100644 index 36ca67248..000000000 --- a/gen/pb-java/flyteidl/event/Event.java +++ /dev/null @@ -1,8733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/event/event.proto - -package flyteidl.event; - -public final class Event { - private Event() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorkflowExecutionEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowExecutionEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - boolean hasExecutionId(); - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - java.lang.String getProducerId(); - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - com.google.protobuf.ByteString - getProducerIdBytes(); - - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - int getPhaseValue(); - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); - - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - boolean hasOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - com.google.protobuf.Timestamp getOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); - - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 5; - */ - java.lang.String getOutputUri(); - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 5; - */ - com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - boolean hasError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - public flyteidl.event.Event.WorkflowExecutionEvent.OutputResultCase getOutputResultCase(); - } - /** - * Protobuf type {@code flyteidl.event.WorkflowExecutionEvent} - */ - public static final class WorkflowExecutionEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowExecutionEvent) - WorkflowExecutionEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionEvent.newBuilder() to construct. - private WorkflowExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionEvent() { - producerId_ = ""; - phase_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionEvent( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - producerId_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (occurredAt_ != null) { - subBuilder = occurredAt_.toBuilder(); - } - occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(occurredAt_); - occurredAt_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 5; - outputResult_ = s; - break; - } - case 50: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 6) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 6; - 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 flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); - } - - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUT_URI(5), - ERROR(6), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 5: return OUTPUT_URI; - case 6: return ERROR; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public static final int EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - public static final int PRODUCER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object producerId_; - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - 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(); - producerId_ = s; - return s; - } - } - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PHASE_FIELD_NUMBER = 3; - private int phase_; - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - - public static final int OCCURRED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp occurredAt_; - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public boolean hasOccurredAt() { - return occurredAt_ != null; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - return getOccurredAt(); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 5; - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 5; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 5) { - ref = outputResult_; - } - 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(); - if (outputResultCase_ == 5) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 5; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 5) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 5) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 6; - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public boolean hasError() { - return outputResultCase_ == 6; - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 6) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 6) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (executionId_ != null) { - output.writeMessage(1, getExecutionId()); - } - if (!getProducerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(3, phase_); - } - if (occurredAt_ != null) { - output.writeMessage(4, getOccurredAt()); - } - if (outputResultCase_ == 5) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputResult_); - } - if (outputResultCase_ == 6) { - output.writeMessage(6, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecutionId()); - } - if (!getProducerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, phase_); - } - if (occurredAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOccurredAt()); - } - if (outputResultCase_ == 5) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputResult_); - } - if (outputResultCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - 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 flyteidl.event.Event.WorkflowExecutionEvent)) { - return super.equals(obj); - } - flyteidl.event.Event.WorkflowExecutionEvent other = (flyteidl.event.Event.WorkflowExecutionEvent) obj; - - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) return false; - } - if (!getProducerId() - .equals(other.getProducerId())) return false; - if (phase_ != other.phase_) return false; - if (hasOccurredAt() != other.hasOccurredAt()) return false; - if (hasOccurredAt()) { - if (!getOccurredAt() - .equals(other.getOccurredAt())) return false; - } - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 5: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 6: - if (!getError() - .equals(other.getError())) 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(); - if (hasExecutionId()) { - hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; - hash = (53 * hash) + getProducerId().hashCode(); - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (hasOccurredAt()) { - hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; - hash = (53 * hash) + getOccurredAt().hashCode(); - } - switch (outputResultCase_) { - case 5: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 6: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowExecutionEvent 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 flyteidl.event.Event.WorkflowExecutionEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowExecutionEvent 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 flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowExecutionEvent 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(flyteidl.event.Event.WorkflowExecutionEvent 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 flyteidl.event.WorkflowExecutionEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowExecutionEvent) - flyteidl.event.Event.WorkflowExecutionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); - } - - // Construct using flyteidl.event.Event.WorkflowExecutionEvent.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 (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - producerId_ = ""; - - phase_ = 0; - - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - outputResultCase_ = 0; - outputResult_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { - return flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowExecutionEvent build() { - flyteidl.event.Event.WorkflowExecutionEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowExecutionEvent buildPartial() { - flyteidl.event.Event.WorkflowExecutionEvent result = new flyteidl.event.Event.WorkflowExecutionEvent(this); - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.build(); - } - result.producerId_ = producerId_; - result.phase_ = phase_; - if (occurredAtBuilder_ == null) { - result.occurredAt_ = occurredAt_; - } else { - result.occurredAt_ = occurredAtBuilder_.build(); - } - if (outputResultCase_ == 5) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 6) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - result.outputResultCase_ = outputResultCase_; - 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 flyteidl.event.Event.WorkflowExecutionEvent) { - return mergeFrom((flyteidl.event.Event.WorkflowExecutionEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.WorkflowExecutionEvent other) { - if (other == flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance()) return this; - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - if (!other.getProducerId().isEmpty()) { - producerId_ = other.producerId_; - onChanged(); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.hasOccurredAt()) { - mergeOccurredAt(other.getOccurredAt()); - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 5; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUTRESULT_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 { - flyteidl.event.Event.WorkflowExecutionEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.WorkflowExecutionEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - - private java.lang.Object producerId_ = ""; - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - producerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder setProducerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - producerId_ = value; - onChanged(); - return this; - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder clearProducerId() { - - producerId_ = getDefaultInstance().getProducerId(); - onChanged(); - return this; - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder setProducerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - producerId_ = value; - onChanged(); - return this; - } - - private int phase_ = 0; - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp occurredAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public boolean hasOccurredAt() { - return occurredAtBuilder_ != null || occurredAt_ != null; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - if (occurredAtBuilder_ == null) { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } else { - return occurredAtBuilder_.getMessage(); - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder setOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - occurredAt_ = value; - onChanged(); - } else { - occurredAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder setOccurredAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (occurredAtBuilder_ == null) { - occurredAt_ = builderForValue.build(); - onChanged(); - } else { - occurredAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (occurredAt_ != null) { - occurredAt_ = - com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); - } else { - occurredAt_ = value; - } - onChanged(); - } else { - occurredAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder clearOccurredAt() { - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - onChanged(); - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { - - onChanged(); - return getOccurredAtFieldBuilder().getBuilder(); - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - if (occurredAtBuilder_ != null) { - return occurredAtBuilder_.getMessageOrBuilder(); - } else { - return occurredAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOccurredAtFieldBuilder() { - if (occurredAtBuilder_ == null) { - occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOccurredAt(), - getParentForChildren(), - isClean()); - occurredAt_ = null; - } - return occurredAtBuilder_; - } - - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 5) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 5) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 5) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 5) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 5; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public Builder clearOutputUri() { - if (outputResultCase_ == 5) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 5; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public boolean hasError() { - return outputResultCase_ == 6; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 6) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 6) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 6; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 6; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 6 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 6) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 6; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 6) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 6) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 6) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 6) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 6)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 6; - onChanged();; - return errorBuilder_; - } - @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:flyteidl.event.WorkflowExecutionEvent) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowExecutionEvent) - private static final flyteidl.event.Event.WorkflowExecutionEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowExecutionEvent(); - } - - public static flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionEvent(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 flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.NodeExecutionEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - java.lang.String getProducerId(); - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - com.google.protobuf.ByteString - getProducerIdBytes(); - - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - int getPhaseValue(); - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - flyteidl.core.Execution.NodeExecution.Phase getPhase(); - - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - boolean hasOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - com.google.protobuf.Timestamp getOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); - - /** - * string input_uri = 5; - */ - java.lang.String getInputUri(); - /** - * string input_uri = 5; - */ - com.google.protobuf.ByteString - getInputUriBytes(); - - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 6; - */ - java.lang.String getOutputUri(); - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 6; - */ - com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - boolean hasError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - boolean hasWorkflowNodeMetadata(); - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata(); - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); - - /** - *
-     * Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - boolean hasParentTaskMetadata(); - /** - *
-     * Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata(); - /** - *
-     * Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder(); - - public flyteidl.event.Event.NodeExecutionEvent.OutputResultCase getOutputResultCase(); - - public flyteidl.event.Event.NodeExecutionEvent.TargetMetadataCase getTargetMetadataCase(); - } - /** - * Protobuf type {@code flyteidl.event.NodeExecutionEvent} - */ - public static final class NodeExecutionEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.NodeExecutionEvent) - NodeExecutionEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionEvent.newBuilder() to construct. - private NodeExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionEvent() { - producerId_ = ""; - phase_ = 0; - inputUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionEvent( - 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: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - producerId_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (occurredAt_ != null) { - subBuilder = occurredAt_.toBuilder(); - } - occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(occurredAt_); - occurredAt_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - inputUri_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 6; - outputResult_ = s; - break; - } - case 58: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 7) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 7; - break; - } - case 66: { - flyteidl.event.Event.WorkflowNodeMetadata.Builder subBuilder = null; - if (targetMetadataCase_ == 8) { - subBuilder = ((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_).toBuilder(); - } - targetMetadata_ = - input.readMessage(flyteidl.event.Event.WorkflowNodeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); - targetMetadata_ = subBuilder.buildPartial(); - } - targetMetadataCase_ = 8; - break; - } - case 74: { - flyteidl.event.Event.ParentTaskExecutionMetadata.Builder subBuilder = null; - if (parentTaskMetadata_ != null) { - subBuilder = parentTaskMetadata_.toBuilder(); - } - parentTaskMetadata_ = input.readMessage(flyteidl.event.Event.ParentTaskExecutionMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parentTaskMetadata_); - parentTaskMetadata_ = 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 flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); - } - - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUT_URI(6), - ERROR(7), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 6: return OUTPUT_URI; - case 7: return ERROR; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - private int targetMetadataCase_ = 0; - private java.lang.Object targetMetadata_; - public enum TargetMetadataCase - implements com.google.protobuf.Internal.EnumLite { - WORKFLOW_NODE_METADATA(8), - TARGETMETADATA_NOT_SET(0); - private final int value; - private TargetMetadataCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetMetadataCase valueOf(int value) { - return forNumber(value); - } - - public static TargetMetadataCase forNumber(int value) { - switch (value) { - case 8: return WORKFLOW_NODE_METADATA; - case 0: return TARGETMETADATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetMetadataCase - getTargetMetadataCase() { - return TargetMetadataCase.forNumber( - targetMetadataCase_); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int PRODUCER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object producerId_; - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - 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(); - producerId_ = s; - return s; - } - } - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PHASE_FIELD_NUMBER = 3; - private int phase_; - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.NodeExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; - } - - public static final int OCCURRED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp occurredAt_; - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public boolean hasOccurredAt() { - return occurredAt_ != null; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - return getOccurredAt(); - } - - public static final int INPUT_URI_FIELD_NUMBER = 5; - private volatile java.lang.Object inputUri_; - /** - * string input_uri = 5; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - 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(); - inputUri_ = s; - return s; - } - } - /** - * string input_uri = 5; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 6; - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 6; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 6) { - ref = outputResult_; - } - 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(); - if (outputResultCase_ == 6) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 6; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 6) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 6) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 7; - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public boolean hasError() { - return outputResultCase_ == 7; - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 7) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 7) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public boolean hasWorkflowNodeMetadata() { - return targetMetadataCase_ == 8; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { - if (targetMetadataCase_ == 8) { - return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { - if (targetMetadataCase_ == 8) { - return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - - public static final int PARENT_TASK_METADATA_FIELD_NUMBER = 9; - private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_; - /** - *
-     * Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public boolean hasParentTaskMetadata() { - return parentTaskMetadata_ != null; - } - /** - *
-     * Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { - return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; - } - /** - *
-     * Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { - return getParentTaskMetadata(); - } - - 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 (!getProducerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); - } - if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(3, phase_); - } - if (occurredAt_ != null) { - output.writeMessage(4, getOccurredAt()); - } - if (!getInputUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, inputUri_); - } - if (outputResultCase_ == 6) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, outputResult_); - } - if (outputResultCase_ == 7) { - output.writeMessage(7, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (targetMetadataCase_ == 8) { - output.writeMessage(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); - } - if (parentTaskMetadata_ != null) { - output.writeMessage(9, getParentTaskMetadata()); - } - 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 (!getProducerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); - } - if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, phase_); - } - if (occurredAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOccurredAt()); - } - if (!getInputUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputUri_); - } - if (outputResultCase_ == 6) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, outputResult_); - } - if (outputResultCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (targetMetadataCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); - } - if (parentTaskMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getParentTaskMetadata()); - } - 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 flyteidl.event.Event.NodeExecutionEvent)) { - return super.equals(obj); - } - flyteidl.event.Event.NodeExecutionEvent other = (flyteidl.event.Event.NodeExecutionEvent) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getProducerId() - .equals(other.getProducerId())) return false; - if (phase_ != other.phase_) return false; - if (hasOccurredAt() != other.hasOccurredAt()) return false; - if (hasOccurredAt()) { - if (!getOccurredAt() - .equals(other.getOccurredAt())) return false; - } - if (!getInputUri() - .equals(other.getInputUri())) return false; - if (hasParentTaskMetadata() != other.hasParentTaskMetadata()) return false; - if (hasParentTaskMetadata()) { - if (!getParentTaskMetadata() - .equals(other.getParentTaskMetadata())) return false; - } - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 6: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 7: - if (!getError() - .equals(other.getError())) return false; - break; - case 0: - default: - } - if (!getTargetMetadataCase().equals(other.getTargetMetadataCase())) return false; - switch (targetMetadataCase_) { - case 8: - if (!getWorkflowNodeMetadata() - .equals(other.getWorkflowNodeMetadata())) 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(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; - hash = (53 * hash) + getProducerId().hashCode(); - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (hasOccurredAt()) { - hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; - hash = (53 * hash) + getOccurredAt().hashCode(); - } - hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getInputUri().hashCode(); - if (hasParentTaskMetadata()) { - hash = (37 * hash) + PARENT_TASK_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getParentTaskMetadata().hashCode(); - } - switch (outputResultCase_) { - case 6: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 7: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - switch (targetMetadataCase_) { - case 8: - hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.NodeExecutionEvent 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 flyteidl.event.Event.NodeExecutionEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.NodeExecutionEvent 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 flyteidl.event.Event.NodeExecutionEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.NodeExecutionEvent 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(flyteidl.event.Event.NodeExecutionEvent 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 flyteidl.event.NodeExecutionEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.NodeExecutionEvent) - flyteidl.event.Event.NodeExecutionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); - } - - // Construct using flyteidl.event.Event.NodeExecutionEvent.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - producerId_ = ""; - - phase_ = 0; - - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - inputUri_ = ""; - - if (parentTaskMetadataBuilder_ == null) { - parentTaskMetadata_ = null; - } else { - parentTaskMetadata_ = null; - parentTaskMetadataBuilder_ = null; - } - outputResultCase_ = 0; - outputResult_ = null; - targetMetadataCase_ = 0; - targetMetadata_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.NodeExecutionEvent getDefaultInstanceForType() { - return flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.NodeExecutionEvent build() { - flyteidl.event.Event.NodeExecutionEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.NodeExecutionEvent buildPartial() { - flyteidl.event.Event.NodeExecutionEvent result = new flyteidl.event.Event.NodeExecutionEvent(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.producerId_ = producerId_; - result.phase_ = phase_; - if (occurredAtBuilder_ == null) { - result.occurredAt_ = occurredAt_; - } else { - result.occurredAt_ = occurredAtBuilder_.build(); - } - result.inputUri_ = inputUri_; - if (outputResultCase_ == 6) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 7) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - if (targetMetadataCase_ == 8) { - if (workflowNodeMetadataBuilder_ == null) { - result.targetMetadata_ = targetMetadata_; - } else { - result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); - } - } - if (parentTaskMetadataBuilder_ == null) { - result.parentTaskMetadata_ = parentTaskMetadata_; - } else { - result.parentTaskMetadata_ = parentTaskMetadataBuilder_.build(); - } - result.outputResultCase_ = outputResultCase_; - result.targetMetadataCase_ = targetMetadataCase_; - 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 flyteidl.event.Event.NodeExecutionEvent) { - return mergeFrom((flyteidl.event.Event.NodeExecutionEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.NodeExecutionEvent other) { - if (other == flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getProducerId().isEmpty()) { - producerId_ = other.producerId_; - onChanged(); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.hasOccurredAt()) { - mergeOccurredAt(other.getOccurredAt()); - } - if (!other.getInputUri().isEmpty()) { - inputUri_ = other.inputUri_; - onChanged(); - } - if (other.hasParentTaskMetadata()) { - mergeParentTaskMetadata(other.getParentTaskMetadata()); - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 6; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUTRESULT_NOT_SET: { - break; - } - } - switch (other.getTargetMetadataCase()) { - case WORKFLOW_NODE_METADATA: { - mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); - break; - } - case TARGETMETADATA_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 { - flyteidl.event.Event.NodeExecutionEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.NodeExecutionEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int targetMetadataCase_ = 0; - private java.lang.Object targetMetadata_; - public TargetMetadataCase - getTargetMetadataCase() { - return TargetMetadataCase.forNumber( - targetMetadataCase_); - } - - public Builder clearTargetMetadata() { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object producerId_ = ""; - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - producerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder setProducerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - producerId_ = value; - onChanged(); - return this; - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder clearProducerId() { - - producerId_ = getDefaultInstance().getProducerId(); - onChanged(); - return this; - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder setProducerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - producerId_ = value; - onChanged(); - return this; - } - - private int phase_ = 0; - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.NodeExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp occurredAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public boolean hasOccurredAt() { - return occurredAtBuilder_ != null || occurredAt_ != null; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - if (occurredAtBuilder_ == null) { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } else { - return occurredAtBuilder_.getMessage(); - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder setOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - occurredAt_ = value; - onChanged(); - } else { - occurredAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder setOccurredAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (occurredAtBuilder_ == null) { - occurredAt_ = builderForValue.build(); - onChanged(); - } else { - occurredAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (occurredAt_ != null) { - occurredAt_ = - com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); - } else { - occurredAt_ = value; - } - onChanged(); - } else { - occurredAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder clearOccurredAt() { - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - onChanged(); - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { - - onChanged(); - return getOccurredAtFieldBuilder().getBuilder(); - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - if (occurredAtBuilder_ != null) { - return occurredAtBuilder_.getMessageOrBuilder(); - } else { - return occurredAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOccurredAtFieldBuilder() { - if (occurredAtBuilder_ == null) { - occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOccurredAt(), - getParentForChildren(), - isClean()); - occurredAt_ = null; - } - return occurredAtBuilder_; - } - - private java.lang.Object inputUri_ = ""; - /** - * string input_uri = 5; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string input_uri = 5; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string input_uri = 5; - */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputUri_ = value; - onChanged(); - return this; - } - /** - * string input_uri = 5; - */ - public Builder clearInputUri() { - - inputUri_ = getDefaultInstance().getInputUri(); - onChanged(); - return this; - } - /** - * string input_uri = 5; - */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputUri_ = value; - onChanged(); - return this; - } - - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 6) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 6) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 6) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 6) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 6; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public Builder clearOutputUri() { - if (outputResultCase_ == 6) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 6; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public boolean hasError() { - return outputResultCase_ == 7; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 7) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 7) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 7; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 7; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 7 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 7) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 7; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 7) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 7) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 7) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 7) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 7)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 7; - onChanged();; - return errorBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public boolean hasWorkflowNodeMetadata() { - return targetMetadataCase_ == 8; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8) { - return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } else { - if (targetMetadataCase_ == 8) { - return workflowNodeMetadataBuilder_.getMessage(); - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder setWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { - if (workflowNodeMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetMetadata_ = value; - onChanged(); - } else { - workflowNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder setWorkflowNodeMetadata( - flyteidl.event.Event.WorkflowNodeMetadata.Builder builderForValue) { - if (workflowNodeMetadataBuilder_ == null) { - targetMetadata_ = builderForValue.build(); - onChanged(); - } else { - workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder mergeWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8 && - targetMetadata_ != flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) { - targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.newBuilder((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_) - .mergeFrom(value).buildPartial(); - } else { - targetMetadata_ = value; - } - onChanged(); - } else { - if (targetMetadataCase_ == 8) { - workflowNodeMetadataBuilder_.mergeFrom(value); - } - workflowNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder clearWorkflowNodeMetadata() { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - } - } else { - if (targetMetadataCase_ == 8) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - } - workflowNodeMetadataBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { - return getWorkflowNodeMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { - if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { - return workflowNodeMetadataBuilder_.getMessageOrBuilder(); - } else { - if (targetMetadataCase_ == 8) { - return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> - getWorkflowNodeMetadataFieldBuilder() { - if (workflowNodeMetadataBuilder_ == null) { - if (!(targetMetadataCase_ == 8)) { - targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder>( - (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_, - getParentForChildren(), - isClean()); - targetMetadata_ = null; - } - targetMetadataCase_ = 8; - onChanged();; - return workflowNodeMetadataBuilder_; - } - - private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> parentTaskMetadataBuilder_; - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public boolean hasParentTaskMetadata() { - return parentTaskMetadataBuilder_ != null || parentTaskMetadata_ != null; - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { - if (parentTaskMetadataBuilder_ == null) { - return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; - } else { - return parentTaskMetadataBuilder_.getMessage(); - } - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public Builder setParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { - if (parentTaskMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parentTaskMetadata_ = value; - onChanged(); - } else { - parentTaskMetadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public Builder setParentTaskMetadata( - flyteidl.event.Event.ParentTaskExecutionMetadata.Builder builderForValue) { - if (parentTaskMetadataBuilder_ == null) { - parentTaskMetadata_ = builderForValue.build(); - onChanged(); - } else { - parentTaskMetadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public Builder mergeParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { - if (parentTaskMetadataBuilder_ == null) { - if (parentTaskMetadata_ != null) { - parentTaskMetadata_ = - flyteidl.event.Event.ParentTaskExecutionMetadata.newBuilder(parentTaskMetadata_).mergeFrom(value).buildPartial(); - } else { - parentTaskMetadata_ = value; - } - onChanged(); - } else { - parentTaskMetadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public Builder clearParentTaskMetadata() { - if (parentTaskMetadataBuilder_ == null) { - parentTaskMetadata_ = null; - onChanged(); - } else { - parentTaskMetadata_ = null; - parentTaskMetadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadata.Builder getParentTaskMetadataBuilder() { - - onChanged(); - return getParentTaskMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { - if (parentTaskMetadataBuilder_ != null) { - return parentTaskMetadataBuilder_.getMessageOrBuilder(); - } else { - return parentTaskMetadata_ == null ? - flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; - } - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> - getParentTaskMetadataFieldBuilder() { - if (parentTaskMetadataBuilder_ == null) { - parentTaskMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder>( - getParentTaskMetadata(), - getParentForChildren(), - isClean()); - parentTaskMetadata_ = null; - } - return parentTaskMetadataBuilder_; - } - @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:flyteidl.event.NodeExecutionEvent) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.NodeExecutionEvent) - private static final flyteidl.event.Event.NodeExecutionEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.NodeExecutionEvent(); - } - - public static flyteidl.event.Event.NodeExecutionEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionEvent(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 flyteidl.event.Event.NodeExecutionEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowNodeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowNodeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - boolean hasExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - } - /** - *
-   * For Workflow Nodes we need to send information about the workflow that's launched
-   * 
- * - * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} - */ - public static final class WorkflowNodeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowNodeMetadata) - WorkflowNodeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowNodeMetadata.newBuilder() to construct. - private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowNodeMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowNodeMetadata( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = 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 flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); - } - - public static final int EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - 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 (executionId_ != null) { - output.writeMessage(1, getExecutionId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecutionId()); - } - 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 flyteidl.event.Event.WorkflowNodeMetadata)) { - return super.equals(obj); - } - flyteidl.event.Event.WorkflowNodeMetadata other = (flyteidl.event.Event.WorkflowNodeMetadata) obj; - - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) 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 (hasExecutionId()) { - hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowNodeMetadata 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 flyteidl.event.Event.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowNodeMetadata 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 flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowNodeMetadata 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(flyteidl.event.Event.WorkflowNodeMetadata 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; - } - /** - *
-     * For Workflow Nodes we need to send information about the workflow that's launched
-     * 
- * - * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowNodeMetadata) - flyteidl.event.Event.WorkflowNodeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); - } - - // Construct using flyteidl.event.Event.WorkflowNodeMetadata.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 (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowNodeMetadata build() { - flyteidl.event.Event.WorkflowNodeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowNodeMetadata buildPartial() { - flyteidl.event.Event.WorkflowNodeMetadata result = new flyteidl.event.Event.WorkflowNodeMetadata(this); - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.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 flyteidl.event.Event.WorkflowNodeMetadata) { - return mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.WorkflowNodeMetadata other) { - if (other == flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) return this; - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - 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 { - flyteidl.event.Event.WorkflowNodeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.WorkflowNodeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - @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:flyteidl.event.WorkflowNodeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowNodeMetadata) - private static final flyteidl.event.Event.WorkflowNodeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowNodeMetadata(); - } - - public static flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowNodeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowNodeMetadata(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 flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParentTaskExecutionMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.ParentTaskExecutionMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.event.ParentTaskExecutionMetadata} - */ - public static final class ParentTaskExecutionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.ParentTaskExecutionMetadata) - ParentTaskExecutionMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParentTaskExecutionMetadata.newBuilder() to construct. - private ParentTaskExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParentTaskExecutionMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParentTaskExecutionMetadata( - 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: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.event.Event.ParentTaskExecutionMetadata)) { - return super.equals(obj); - } - flyteidl.event.Event.ParentTaskExecutionMetadata other = (flyteidl.event.Event.ParentTaskExecutionMetadata) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata 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 flyteidl.event.Event.ParentTaskExecutionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata 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 flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata 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(flyteidl.event.Event.ParentTaskExecutionMetadata 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 flyteidl.event.ParentTaskExecutionMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.ParentTaskExecutionMetadata) - flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); - } - - // Construct using flyteidl.event.Event.ParentTaskExecutionMetadata.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { - return flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.ParentTaskExecutionMetadata build() { - flyteidl.event.Event.ParentTaskExecutionMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.ParentTaskExecutionMetadata buildPartial() { - flyteidl.event.Event.ParentTaskExecutionMetadata result = new flyteidl.event.Event.ParentTaskExecutionMetadata(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.event.Event.ParentTaskExecutionMetadata) { - return mergeFrom((flyteidl.event.Event.ParentTaskExecutionMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.ParentTaskExecutionMetadata other) { - if (other == flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.event.Event.ParentTaskExecutionMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.ParentTaskExecutionMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.event.ParentTaskExecutionMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.ParentTaskExecutionMetadata) - private static final flyteidl.event.Event.ParentTaskExecutionMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.ParentTaskExecutionMetadata(); - } - - public static flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParentTaskExecutionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParentTaskExecutionMetadata(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 flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.TaskExecutionEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - boolean hasTaskId(); - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); - - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - boolean hasParentNodeExecutionId(); - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId(); - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder(); - - /** - *
-     * retry attempt number for this task, ie., 2 for the second attempt
-     * 
- * - * uint32 retry_attempt = 3; - */ - int getRetryAttempt(); - - /** - *
-     * Phase associated with the event
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - int getPhaseValue(); - /** - *
-     * Phase associated with the event
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - flyteidl.core.Execution.TaskExecution.Phase getPhase(); - - /** - *
-     * id of the process that sent this event, mainly for trace debugging
-     * 
- * - * string producer_id = 5; - */ - java.lang.String getProducerId(); - /** - *
-     * id of the process that sent this event, mainly for trace debugging
-     * 
- * - * string producer_id = 5; - */ - com.google.protobuf.ByteString - getProducerIdBytes(); - - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - java.util.List - getLogsList(); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - flyteidl.core.Execution.TaskLog getLogs(int index); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - int getLogsCount(); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - java.util.List - getLogsOrBuilderList(); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index); - - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - boolean hasOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - com.google.protobuf.Timestamp getOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); - - /** - *
-     * URI of the input file, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string input_uri = 8; - */ - java.lang.String getInputUri(); - /** - *
-     * URI of the input file, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string input_uri = 8; - */ - com.google.protobuf.ByteString - getInputUriBytes(); - - /** - *
-     * URI to the output of the execution, it will be in a format that encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 9; - */ - java.lang.String getOutputUri(); - /** - *
-     * URI to the output of the execution, it will be in a format that encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 9; - */ - com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - boolean hasError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - boolean hasCustomInfo(); - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - com.google.protobuf.Struct getCustomInfo(); - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); - - /** - *
-     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-     * that should be recorded regardless of the lack of phase change.
-     * The version field should be incremented when metadata changes across the duration of an individual phase.
-     * 
- * - * uint32 phase_version = 12; - */ - int getPhaseVersion(); - - public flyteidl.event.Event.TaskExecutionEvent.OutputResultCase getOutputResultCase(); - } - /** - *
-   * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
-   * 
- * - * Protobuf type {@code flyteidl.event.TaskExecutionEvent} - */ - public static final class TaskExecutionEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.TaskExecutionEvent) - TaskExecutionEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionEvent.newBuilder() to construct. - private TaskExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionEvent() { - phase_ = 0; - producerId_ = ""; - logs_ = java.util.Collections.emptyList(); - inputUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionEvent( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (taskId_ != null) { - subBuilder = taskId_.toBuilder(); - } - taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskId_); - taskId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (parentNodeExecutionId_ != null) { - subBuilder = parentNodeExecutionId_.toBuilder(); - } - parentNodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parentNodeExecutionId_); - parentNodeExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - retryAttempt_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - producerId_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - logs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - logs_.add( - input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (occurredAt_ != null) { - subBuilder = occurredAt_.toBuilder(); - } - occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(occurredAt_); - occurredAt_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - inputUri_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 9; - outputResult_ = s; - break; - } - case 82: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 10) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 10; - break; - } - case 90: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (customInfo_ != null) { - subBuilder = customInfo_.toBuilder(); - } - customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customInfo_); - customInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 96: { - - phaseVersion_ = input.readUInt32(); - 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_ & 0x00000020) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); - } - - private int bitField0_; - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUT_URI(9), - ERROR(10), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 9: return OUTPUT_URI; - case 10: return ERROR; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public static final int TASK_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public boolean hasTaskId() { - return taskId_ != null; - } - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - return getTaskId(); - } - - public static final int PARENT_NODE_EXECUTION_ID_FIELD_NUMBER = 2; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_; - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public boolean hasParentNodeExecutionId() { - return parentNodeExecutionId_ != null; - } - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { - return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; - } - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { - return getParentNodeExecutionId(); - } - - public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; - private int retryAttempt_; - /** - *
-     * retry attempt number for this task, ie., 2 for the second attempt
-     * 
- * - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - - public static final int PHASE_FIELD_NUMBER = 4; - private int phase_; - /** - *
-     * Phase associated with the event
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-     * Phase associated with the event
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - - public static final int PRODUCER_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object producerId_; - /** - *
-     * id of the process that sent this event, mainly for trace debugging
-     * 
- * - * string producer_id = 5; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - 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(); - producerId_ = s; - return s; - } - } - /** - *
-     * id of the process that sent this event, mainly for trace debugging
-     * 
- * - * string producer_id = 5; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOGS_FIELD_NUMBER = 6; - private java.util.List logs_; - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List getLogsList() { - return logs_; - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public int getLogsCount() { - return logs_.size(); - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - return logs_.get(index); - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - return logs_.get(index); - } - - public static final int OCCURRED_AT_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp occurredAt_; - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public boolean hasOccurredAt() { - return occurredAt_ != null; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - return getOccurredAt(); - } - - public static final int INPUT_URI_FIELD_NUMBER = 8; - private volatile java.lang.Object inputUri_; - /** - *
-     * URI of the input file, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string input_uri = 8; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - 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(); - inputUri_ = s; - return s; - } - } - /** - *
-     * URI of the input file, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string input_uri = 8; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 9; - /** - *
-     * URI to the output of the execution, it will be in a format that encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 9; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 9) { - ref = outputResult_; - } - 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(); - if (outputResultCase_ == 9) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * URI to the output of the execution, it will be in a format that encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 9; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 9) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 9) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 10; - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public boolean hasError() { - return outputResultCase_ == 10; - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 10) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 10) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int CUSTOM_INFO_FIELD_NUMBER = 11; - private com.google.protobuf.Struct customInfo_; - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public boolean hasCustomInfo() { - return customInfo_ != null; - } - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.Struct getCustomInfo() { - return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { - return getCustomInfo(); - } - - public static final int PHASE_VERSION_FIELD_NUMBER = 12; - private int phaseVersion_; - /** - *
-     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-     * that should be recorded regardless of the lack of phase change.
-     * The version field should be incremented when metadata changes across the duration of an individual phase.
-     * 
- * - * uint32 phase_version = 12; - */ - public int getPhaseVersion() { - return phaseVersion_; - } - - 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 (taskId_ != null) { - output.writeMessage(1, getTaskId()); - } - if (parentNodeExecutionId_ != null) { - output.writeMessage(2, getParentNodeExecutionId()); - } - if (retryAttempt_ != 0) { - output.writeUInt32(3, retryAttempt_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(4, phase_); - } - if (!getProducerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, producerId_); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(6, logs_.get(i)); - } - if (occurredAt_ != null) { - output.writeMessage(7, getOccurredAt()); - } - if (!getInputUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, inputUri_); - } - if (outputResultCase_ == 9) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, outputResult_); - } - if (outputResultCase_ == 10) { - output.writeMessage(10, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (customInfo_ != null) { - output.writeMessage(11, getCustomInfo()); - } - if (phaseVersion_ != 0) { - output.writeUInt32(12, phaseVersion_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (taskId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTaskId()); - } - if (parentNodeExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getParentNodeExecutionId()); - } - if (retryAttempt_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, retryAttempt_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, phase_); - } - if (!getProducerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, producerId_); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, logs_.get(i)); - } - if (occurredAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getOccurredAt()); - } - if (!getInputUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, inputUri_); - } - if (outputResultCase_ == 9) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, outputResult_); - } - if (outputResultCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (customInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getCustomInfo()); - } - if (phaseVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, phaseVersion_); - } - 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 flyteidl.event.Event.TaskExecutionEvent)) { - return super.equals(obj); - } - flyteidl.event.Event.TaskExecutionEvent other = (flyteidl.event.Event.TaskExecutionEvent) obj; - - if (hasTaskId() != other.hasTaskId()) return false; - if (hasTaskId()) { - if (!getTaskId() - .equals(other.getTaskId())) return false; - } - if (hasParentNodeExecutionId() != other.hasParentNodeExecutionId()) return false; - if (hasParentNodeExecutionId()) { - if (!getParentNodeExecutionId() - .equals(other.getParentNodeExecutionId())) return false; - } - if (getRetryAttempt() - != other.getRetryAttempt()) return false; - if (phase_ != other.phase_) return false; - if (!getProducerId() - .equals(other.getProducerId())) return false; - if (!getLogsList() - .equals(other.getLogsList())) return false; - if (hasOccurredAt() != other.hasOccurredAt()) return false; - if (hasOccurredAt()) { - if (!getOccurredAt() - .equals(other.getOccurredAt())) return false; - } - if (!getInputUri() - .equals(other.getInputUri())) return false; - if (hasCustomInfo() != other.hasCustomInfo()) return false; - if (hasCustomInfo()) { - if (!getCustomInfo() - .equals(other.getCustomInfo())) return false; - } - if (getPhaseVersion() - != other.getPhaseVersion()) return false; - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 9: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 10: - if (!getError() - .equals(other.getError())) 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(); - if (hasTaskId()) { - hash = (37 * hash) + TASK_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskId().hashCode(); - } - if (hasParentNodeExecutionId()) { - hash = (37 * hash) + PARENT_NODE_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getParentNodeExecutionId().hashCode(); - } - hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; - hash = (53 * hash) + getRetryAttempt(); - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; - hash = (53 * hash) + getProducerId().hashCode(); - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - if (hasOccurredAt()) { - hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; - hash = (53 * hash) + getOccurredAt().hashCode(); - } - hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getInputUri().hashCode(); - if (hasCustomInfo()) { - hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; - hash = (53 * hash) + getCustomInfo().hashCode(); - } - hash = (37 * hash) + PHASE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getPhaseVersion(); - switch (outputResultCase_) { - case 9: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 10: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskExecutionEvent 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 flyteidl.event.Event.TaskExecutionEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskExecutionEvent 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 flyteidl.event.Event.TaskExecutionEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskExecutionEvent 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(flyteidl.event.Event.TaskExecutionEvent 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; - } - /** - *
-     * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
-     * 
- * - * Protobuf type {@code flyteidl.event.TaskExecutionEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.TaskExecutionEvent) - flyteidl.event.Event.TaskExecutionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); - } - - // Construct using flyteidl.event.Event.TaskExecutionEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (taskIdBuilder_ == null) { - taskId_ = null; - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - if (parentNodeExecutionIdBuilder_ == null) { - parentNodeExecutionId_ = null; - } else { - parentNodeExecutionId_ = null; - parentNodeExecutionIdBuilder_ = null; - } - retryAttempt_ = 0; - - phase_ = 0; - - producerId_ = ""; - - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - logsBuilder_.clear(); - } - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - inputUri_ = ""; - - if (customInfoBuilder_ == null) { - customInfo_ = null; - } else { - customInfo_ = null; - customInfoBuilder_ = null; - } - phaseVersion_ = 0; - - outputResultCase_ = 0; - outputResult_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.TaskExecutionEvent getDefaultInstanceForType() { - return flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.TaskExecutionEvent build() { - flyteidl.event.Event.TaskExecutionEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.TaskExecutionEvent buildPartial() { - flyteidl.event.Event.TaskExecutionEvent result = new flyteidl.event.Event.TaskExecutionEvent(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (taskIdBuilder_ == null) { - result.taskId_ = taskId_; - } else { - result.taskId_ = taskIdBuilder_.build(); - } - if (parentNodeExecutionIdBuilder_ == null) { - result.parentNodeExecutionId_ = parentNodeExecutionId_; - } else { - result.parentNodeExecutionId_ = parentNodeExecutionIdBuilder_.build(); - } - result.retryAttempt_ = retryAttempt_; - result.phase_ = phase_; - result.producerId_ = producerId_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - if (occurredAtBuilder_ == null) { - result.occurredAt_ = occurredAt_; - } else { - result.occurredAt_ = occurredAtBuilder_.build(); - } - result.inputUri_ = inputUri_; - if (outputResultCase_ == 9) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 10) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - if (customInfoBuilder_ == null) { - result.customInfo_ = customInfo_; - } else { - result.customInfo_ = customInfoBuilder_.build(); - } - result.phaseVersion_ = phaseVersion_; - result.bitField0_ = to_bitField0_; - result.outputResultCase_ = outputResultCase_; - 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 flyteidl.event.Event.TaskExecutionEvent) { - return mergeFrom((flyteidl.event.Event.TaskExecutionEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.TaskExecutionEvent other) { - if (other == flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance()) return this; - if (other.hasTaskId()) { - mergeTaskId(other.getTaskId()); - } - if (other.hasParentNodeExecutionId()) { - mergeParentNodeExecutionId(other.getParentNodeExecutionId()); - } - if (other.getRetryAttempt() != 0) { - setRetryAttempt(other.getRetryAttempt()); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (!other.getProducerId().isEmpty()) { - producerId_ = other.producerId_; - onChanged(); - } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000020); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogsFieldBuilder() : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - if (other.hasOccurredAt()) { - mergeOccurredAt(other.getOccurredAt()); - } - if (!other.getInputUri().isEmpty()) { - inputUri_ = other.inputUri_; - onChanged(); - } - if (other.hasCustomInfo()) { - mergeCustomInfo(other.getCustomInfo()); - } - if (other.getPhaseVersion() != 0) { - setPhaseVersion(other.getPhaseVersion()); - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 9; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUTRESULT_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 { - flyteidl.event.Event.TaskExecutionEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.TaskExecutionEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public boolean hasTaskId() { - return taskIdBuilder_ != null || taskId_ != null; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - if (taskIdBuilder_ == null) { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } else { - return taskIdBuilder_.getMessage(); - } - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskId_ = value; - onChanged(); - } else { - taskIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder setTaskId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (taskIdBuilder_ == null) { - taskId_ = builderForValue.build(); - onChanged(); - } else { - taskIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (taskId_ != null) { - taskId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); - } else { - taskId_ = value; - } - onChanged(); - } else { - taskIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder clearTaskId() { - if (taskIdBuilder_ == null) { - taskId_ = null; - onChanged(); - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - - return this; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { - - onChanged(); - return getTaskIdFieldBuilder().getBuilder(); - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - if (taskIdBuilder_ != null) { - return taskIdBuilder_.getMessageOrBuilder(); - } else { - return taskId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getTaskIdFieldBuilder() { - if (taskIdBuilder_ == null) { - taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getTaskId(), - getParentForChildren(), - isClean()); - taskId_ = null; - } - return taskIdBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionIdBuilder_; - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public boolean hasParentNodeExecutionId() { - return parentNodeExecutionIdBuilder_ != null || parentNodeExecutionId_ != null; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { - if (parentNodeExecutionIdBuilder_ == null) { - return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; - } else { - return parentNodeExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public Builder setParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (parentNodeExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parentNodeExecutionId_ = value; - onChanged(); - } else { - parentNodeExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public Builder setParentNodeExecutionId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (parentNodeExecutionIdBuilder_ == null) { - parentNodeExecutionId_ = builderForValue.build(); - onChanged(); - } else { - parentNodeExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public Builder mergeParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (parentNodeExecutionIdBuilder_ == null) { - if (parentNodeExecutionId_ != null) { - parentNodeExecutionId_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecutionId_).mergeFrom(value).buildPartial(); - } else { - parentNodeExecutionId_ = value; - } - onChanged(); - } else { - parentNodeExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public Builder clearParentNodeExecutionId() { - if (parentNodeExecutionIdBuilder_ == null) { - parentNodeExecutionId_ = null; - onChanged(); - } else { - parentNodeExecutionId_ = null; - parentNodeExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionIdBuilder() { - - onChanged(); - return getParentNodeExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { - if (parentNodeExecutionIdBuilder_ != null) { - return parentNodeExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return parentNodeExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; - } - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getParentNodeExecutionIdFieldBuilder() { - if (parentNodeExecutionIdBuilder_ == null) { - parentNodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getParentNodeExecutionId(), - getParentForChildren(), - isClean()); - parentNodeExecutionId_ = null; - } - return parentNodeExecutionIdBuilder_; - } - - private int retryAttempt_ ; - /** - *
-       * retry attempt number for this task, ie., 2 for the second attempt
-       * 
- * - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - /** - *
-       * retry attempt number for this task, ie., 2 for the second attempt
-       * 
- * - * uint32 retry_attempt = 3; - */ - public Builder setRetryAttempt(int value) { - - retryAttempt_ = value; - onChanged(); - return this; - } - /** - *
-       * retry attempt number for this task, ie., 2 for the second attempt
-       * 
- * - * uint32 retry_attempt = 3; - */ - public Builder clearRetryAttempt() { - - retryAttempt_ = 0; - onChanged(); - return this; - } - - private int phase_ = 0; - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private java.lang.Object producerId_ = ""; - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - producerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public Builder setProducerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - producerId_ = value; - onChanged(); - return this; - } - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public Builder clearProducerId() { - - producerId_ = getDefaultInstance().getProducerId(); - onChanged(); - return this; - } - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public Builder setProducerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - producerId_ = value; - onChanged(); - return this; - } - - private java.util.List logs_ = - java.util.Collections.emptyList(); - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; - - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs(flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs( - flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( - int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - if (logsBuilder_ == null) { - return logs_.get(index); } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( - logs_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - - private com.google.protobuf.Timestamp occurredAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public boolean hasOccurredAt() { - return occurredAtBuilder_ != null || occurredAt_ != null; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - if (occurredAtBuilder_ == null) { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } else { - return occurredAtBuilder_.getMessage(); - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public Builder setOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - occurredAt_ = value; - onChanged(); - } else { - occurredAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public Builder setOccurredAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (occurredAtBuilder_ == null) { - occurredAt_ = builderForValue.build(); - onChanged(); - } else { - occurredAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (occurredAt_ != null) { - occurredAt_ = - com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); - } else { - occurredAt_ = value; - } - onChanged(); - } else { - occurredAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public Builder clearOccurredAt() { - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - onChanged(); - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { - - onChanged(); - return getOccurredAtFieldBuilder().getBuilder(); - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - if (occurredAtBuilder_ != null) { - return occurredAtBuilder_.getMessageOrBuilder(); - } else { - return occurredAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOccurredAtFieldBuilder() { - if (occurredAtBuilder_ == null) { - occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOccurredAt(), - getParentForChildren(), - isClean()); - occurredAt_ = null; - } - return occurredAtBuilder_; - } - - private java.lang.Object inputUri_ = ""; - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputUri_ = value; - onChanged(); - return this; - } - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public Builder clearInputUri() { - - inputUri_ = getDefaultInstance().getInputUri(); - onChanged(); - return this; - } - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputUri_ = value; - onChanged(); - return this; - } - - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 9) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 9) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 9) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 9) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 9; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public Builder clearOutputUri() { - if (outputResultCase_ == 9) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 9; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public boolean hasError() { - return outputResultCase_ == 10; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 10) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 10) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 10; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 10; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 10 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 10) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 10; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 10) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 10) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 10) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 10) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 10)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 10; - onChanged();; - return errorBuilder_; - } - - private com.google.protobuf.Struct customInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public boolean hasCustomInfo() { - return customInfoBuilder_ != null || customInfo_ != null; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.Struct getCustomInfo() { - if (customInfoBuilder_ == null) { - return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } else { - return customInfoBuilder_.getMessage(); - } - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public Builder setCustomInfo(com.google.protobuf.Struct value) { - if (customInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customInfo_ = value; - onChanged(); - } else { - customInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public Builder setCustomInfo( - com.google.protobuf.Struct.Builder builderForValue) { - if (customInfoBuilder_ == null) { - customInfo_ = builderForValue.build(); - onChanged(); - } else { - customInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public Builder mergeCustomInfo(com.google.protobuf.Struct value) { - if (customInfoBuilder_ == null) { - if (customInfo_ != null) { - customInfo_ = - com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); - } else { - customInfo_ = value; - } - onChanged(); - } else { - customInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public Builder clearCustomInfo() { - if (customInfoBuilder_ == null) { - customInfo_ = null; - onChanged(); - } else { - customInfo_ = null; - customInfoBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { - - onChanged(); - return getCustomInfoFieldBuilder().getBuilder(); - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { - if (customInfoBuilder_ != null) { - return customInfoBuilder_.getMessageOrBuilder(); - } else { - return customInfo_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getCustomInfoFieldBuilder() { - if (customInfoBuilder_ == null) { - customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getCustomInfo(), - getParentForChildren(), - isClean()); - customInfo_ = null; - } - return customInfoBuilder_; - } - - private int phaseVersion_ ; - /** - *
-       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-       * that should be recorded regardless of the lack of phase change.
-       * The version field should be incremented when metadata changes across the duration of an individual phase.
-       * 
- * - * uint32 phase_version = 12; - */ - public int getPhaseVersion() { - return phaseVersion_; - } - /** - *
-       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-       * that should be recorded regardless of the lack of phase change.
-       * The version field should be incremented when metadata changes across the duration of an individual phase.
-       * 
- * - * uint32 phase_version = 12; - */ - public Builder setPhaseVersion(int value) { - - phaseVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-       * that should be recorded regardless of the lack of phase change.
-       * The version field should be incremented when metadata changes across the duration of an individual phase.
-       * 
- * - * uint32 phase_version = 12; - */ - public Builder clearPhaseVersion() { - - phaseVersion_ = 0; - 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:flyteidl.event.TaskExecutionEvent) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionEvent) - private static final flyteidl.event.Event.TaskExecutionEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.TaskExecutionEvent(); - } - - public static flyteidl.event.Event.TaskExecutionEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionEvent(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 flyteidl.event.Event.TaskExecutionEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_NodeExecutionEvent_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_TaskExecutionEvent_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_TaskExecutionEvent_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\032flyteidl/event/event.proto\022\016flyteidl.e" + - "vent\032\035flyteidl/core/execution.proto\032\036fly" + - "teidl/core/identifier.proto\032\037google/prot" + - "obuf/timestamp.proto\032\034google/protobuf/st" + - "ruct.proto\"\256\002\n\026WorkflowExecutionEvent\022@\n" + - "\014execution_id\030\001 \001(\0132*.flyteidl.core.Work" + - "flowExecutionIdentifier\022\023\n\013producer_id\030\002" + - " \001(\t\0225\n\005phase\030\003 \001(\0162&.flyteidl.core.Work" + - "flowExecution.Phase\022/\n\013occurred_at\030\004 \001(\013" + - "2\032.google.protobuf.Timestamp\022\024\n\noutput_u" + - "ri\030\005 \001(\tH\000\022.\n\005error\030\006 \001(\0132\035.flyteidl.cor" + - "e.ExecutionErrorH\000B\017\n\routput_result\"\321\003\n\022" + - "NodeExecutionEvent\0222\n\002id\030\001 \001(\0132&.flyteid" + - "l.core.NodeExecutionIdentifier\022\023\n\013produc" + - "er_id\030\002 \001(\t\0221\n\005phase\030\003 \001(\0162\".flyteidl.co" + - "re.NodeExecution.Phase\022/\n\013occurred_at\030\004 " + - "\001(\0132\032.google.protobuf.Timestamp\022\021\n\tinput" + - "_uri\030\005 \001(\t\022\024\n\noutput_uri\030\006 \001(\tH\000\022.\n\005erro" + - "r\030\007 \001(\0132\035.flyteidl.core.ExecutionErrorH\000" + - "\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyte" + - "idl.event.WorkflowNodeMetadataH\001\022I\n\024pare" + - "nt_task_metadata\030\t \001(\0132+.flyteidl.event." + - "ParentTaskExecutionMetadataB\017\n\routput_re" + - "sultB\021\n\017target_metadata\"X\n\024WorkflowNodeM" + - "etadata\022@\n\014execution_id\030\001 \001(\0132*.flyteidl" + - ".core.WorkflowExecutionIdentifier\"Q\n\033Par" + - "entTaskExecutionMetadata\0222\n\002id\030\001 \001(\0132&.f" + - "lyteidl.core.TaskExecutionIdentifier\"\357\003\n" + - "\022TaskExecutionEvent\022*\n\007task_id\030\001 \001(\0132\031.f" + - "lyteidl.core.Identifier\022H\n\030parent_node_e" + - "xecution_id\030\002 \001(\0132&.flyteidl.core.NodeEx" + - "ecutionIdentifier\022\025\n\rretry_attempt\030\003 \001(\r" + - "\0221\n\005phase\030\004 \001(\0162\".flyteidl.core.TaskExec" + - "ution.Phase\022\023\n\013producer_id\030\005 \001(\t\022$\n\004logs" + - "\030\006 \003(\0132\026.flyteidl.core.TaskLog\022/\n\013occurr" + - "ed_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022" + - "\021\n\tinput_uri\030\010 \001(\t\022\024\n\noutput_uri\030\t \001(\tH\000" + - "\022.\n\005error\030\n \001(\0132\035.flyteidl.core.Executio" + - "nErrorH\000\022,\n\013custom_info\030\013 \001(\0132\027.google.p" + - "rotobuf.Struct\022\025\n\rphase_version\030\014 \001(\rB\017\n" + - "\routput_resultB3Z1github.com/lyft/flytei" + - "dl/gen/pb-go/flyteidl/eventb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor, - new java.lang.String[] { "ExecutionId", "ProducerId", "Phase", "OccurredAt", "OutputUri", "Error", "OutputResult", }); - internal_static_flyteidl_event_NodeExecutionEvent_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_NodeExecutionEvent_descriptor, - new java.lang.String[] { "Id", "ProducerId", "Phase", "OccurredAt", "InputUri", "OutputUri", "Error", "WorkflowNodeMetadata", "ParentTaskMetadata", "OutputResult", "TargetMetadata", }); - internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor, - new java.lang.String[] { "ExecutionId", }); - internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_event_TaskExecutionEvent_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_TaskExecutionEvent_descriptor, - new java.lang.String[] { "TaskId", "ParentNodeExecutionId", "RetryAttempt", "Phase", "ProducerId", "Logs", "OccurredAt", "InputUri", "OutputUri", "Error", "CustomInfo", "PhaseVersion", "OutputResult", }); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java b/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java deleted file mode 100644 index 2d04618c4..000000000 --- a/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java +++ /dev/null @@ -1,759 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/array_job.proto - -package flyteidl.plugins; - -public final class ArrayJobOuterClass { - private ArrayJobOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ArrayJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.ArrayJob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
-     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-     * running instances might be more. This has to be a positive number if assigned. Default value is size.
-     * 
- * - * int64 parallelism = 1; - */ - long getParallelism(); - - /** - *
-     * Defines the number of instances to launch at most. This number should match the size of the input if the job
-     * requires processing of all input data. This has to be a positive number.
-     * +required.
-     * 
- * - * int64 size = 2; - */ - long getSize(); - - /** - *
-     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-     * assigned. Default value is size.
-     * 
- * - * int64 min_successes = 3; - */ - long getMinSuccesses(); - } - /** - *
-   * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
-   * will be executed concurrently.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.ArrayJob} - */ - public static final class ArrayJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.ArrayJob) - ArrayJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArrayJob.newBuilder() to construct. - private ArrayJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArrayJob() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArrayJob( - 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 8: { - - parallelism_ = input.readInt64(); - break; - } - case 16: { - - size_ = input.readInt64(); - break; - } - case 24: { - - minSuccesses_ = 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 flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); - } - - public static final int PARALLELISM_FIELD_NUMBER = 1; - private long parallelism_; - /** - *
-     * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
-     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-     * running instances might be more. This has to be a positive number if assigned. Default value is size.
-     * 
- * - * int64 parallelism = 1; - */ - public long getParallelism() { - return parallelism_; - } - - public static final int SIZE_FIELD_NUMBER = 2; - private long size_; - /** - *
-     * Defines the number of instances to launch at most. This number should match the size of the input if the job
-     * requires processing of all input data. This has to be a positive number.
-     * +required.
-     * 
- * - * int64 size = 2; - */ - public long getSize() { - return size_; - } - - public static final int MIN_SUCCESSES_FIELD_NUMBER = 3; - private long minSuccesses_; - /** - *
-     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-     * assigned. Default value is size.
-     * 
- * - * int64 min_successes = 3; - */ - public long getMinSuccesses() { - return minSuccesses_; - } - - 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 (parallelism_ != 0L) { - output.writeInt64(1, parallelism_); - } - if (size_ != 0L) { - output.writeInt64(2, size_); - } - if (minSuccesses_ != 0L) { - output.writeInt64(3, minSuccesses_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (parallelism_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, parallelism_); - } - if (size_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, size_); - } - if (minSuccesses_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, minSuccesses_); - } - 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob)) { - return super.equals(obj); - } - flyteidl.plugins.ArrayJobOuterClass.ArrayJob other = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) obj; - - if (getParallelism() - != other.getParallelism()) return false; - if (getSize() - != other.getSize()) return false; - if (getMinSuccesses() - != other.getMinSuccesses()) 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) + PARALLELISM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getParallelism()); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSize()); - hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinSuccesses()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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(flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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; - } - /** - *
-     * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
-     * will be executed concurrently.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.ArrayJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.ArrayJob) - flyteidl.plugins.ArrayJobOuterClass.ArrayJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); - } - - // Construct using flyteidl.plugins.ArrayJobOuterClass.ArrayJob.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(); - parallelism_ = 0L; - - size_ = 0L; - - minSuccesses_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { - return flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.ArrayJobOuterClass.ArrayJob build() { - flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.ArrayJobOuterClass.ArrayJob buildPartial() { - flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(this); - result.parallelism_ = parallelism_; - result.size_ = size_; - result.minSuccesses_ = minSuccesses_; - 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob) { - return mergeFrom((flyteidl.plugins.ArrayJobOuterClass.ArrayJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.ArrayJobOuterClass.ArrayJob other) { - if (other == flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance()) return this; - if (other.getParallelism() != 0L) { - setParallelism(other.getParallelism()); - } - if (other.getSize() != 0L) { - setSize(other.getSize()); - } - if (other.getMinSuccesses() != 0L) { - setMinSuccesses(other.getMinSuccesses()); - } - 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 { - flyteidl.plugins.ArrayJobOuterClass.ArrayJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long parallelism_ ; - /** - *
-       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
-       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-       * running instances might be more. This has to be a positive number if assigned. Default value is size.
-       * 
- * - * int64 parallelism = 1; - */ - public long getParallelism() { - return parallelism_; - } - /** - *
-       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
-       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-       * running instances might be more. This has to be a positive number if assigned. Default value is size.
-       * 
- * - * int64 parallelism = 1; - */ - public Builder setParallelism(long value) { - - parallelism_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
-       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-       * running instances might be more. This has to be a positive number if assigned. Default value is size.
-       * 
- * - * int64 parallelism = 1; - */ - public Builder clearParallelism() { - - parallelism_ = 0L; - onChanged(); - return this; - } - - private long size_ ; - /** - *
-       * Defines the number of instances to launch at most. This number should match the size of the input if the job
-       * requires processing of all input data. This has to be a positive number.
-       * +required.
-       * 
- * - * int64 size = 2; - */ - public long getSize() { - return size_; - } - /** - *
-       * Defines the number of instances to launch at most. This number should match the size of the input if the job
-       * requires processing of all input data. This has to be a positive number.
-       * +required.
-       * 
- * - * int64 size = 2; - */ - public Builder setSize(long value) { - - size_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines the number of instances to launch at most. This number should match the size of the input if the job
-       * requires processing of all input data. This has to be a positive number.
-       * +required.
-       * 
- * - * int64 size = 2; - */ - public Builder clearSize() { - - size_ = 0L; - onChanged(); - return this; - } - - private long minSuccesses_ ; - /** - *
-       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-       * assigned. Default value is size.
-       * 
- * - * int64 min_successes = 3; - */ - public long getMinSuccesses() { - return minSuccesses_; - } - /** - *
-       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-       * assigned. Default value is size.
-       * 
- * - * int64 min_successes = 3; - */ - public Builder setMinSuccesses(long value) { - - minSuccesses_ = value; - onChanged(); - return this; - } - /** - *
-       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-       * assigned. Default value is size.
-       * 
- * - * int64 min_successes = 3; - */ - public Builder clearMinSuccesses() { - - minSuccesses_ = 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:flyteidl.plugins.ArrayJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.ArrayJob) - private static final flyteidl.plugins.ArrayJobOuterClass.ArrayJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(); - } - - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrayJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArrayJob(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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_ArrayJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_ArrayJob_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 flyteidl/plugins/array_job.proto\022\020flyt" + - "eidl.plugins\"D\n\010ArrayJob\022\023\n\013parallelism\030" + - "\001 \001(\003\022\014\n\004size\030\002 \001(\003\022\025\n\rmin_successes\030\003 \001" + - "(\003B5Z3github.com/lyft/flyteidl/gen/pb-go" + - "/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_ArrayJob_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_ArrayJob_descriptor, - new java.lang.String[] { "Parallelism", "Size", "MinSuccesses", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/Presto.java b/gen/pb-java/flyteidl/plugins/Presto.java deleted file mode 100644 index 4ebb9a8be..000000000 --- a/gen/pb-java/flyteidl/plugins/Presto.java +++ /dev/null @@ -1,1031 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/presto.proto - -package flyteidl.plugins; - -public final class Presto { - private Presto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PrestoQueryOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.PrestoQuery) - com.google.protobuf.MessageOrBuilder { - - /** - * string routing_group = 1; - */ - java.lang.String getRoutingGroup(); - /** - * string routing_group = 1; - */ - com.google.protobuf.ByteString - getRoutingGroupBytes(); - - /** - * string catalog = 2; - */ - java.lang.String getCatalog(); - /** - * string catalog = 2; - */ - com.google.protobuf.ByteString - getCatalogBytes(); - - /** - * string schema = 3; - */ - java.lang.String getSchema(); - /** - * string schema = 3; - */ - com.google.protobuf.ByteString - getSchemaBytes(); - - /** - * string statement = 4; - */ - java.lang.String getStatement(); - /** - * string statement = 4; - */ - com.google.protobuf.ByteString - getStatementBytes(); - } - /** - *
-   * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field
-   * of a Presto task's TaskTemplate
-   * 
- * - * Protobuf type {@code flyteidl.plugins.PrestoQuery} - */ - public static final class PrestoQuery extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.PrestoQuery) - PrestoQueryOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrestoQuery.newBuilder() to construct. - private PrestoQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrestoQuery() { - routingGroup_ = ""; - catalog_ = ""; - schema_ = ""; - statement_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrestoQuery( - 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(); - - routingGroup_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - catalog_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - schema_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - statement_ = 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 flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Presto.PrestoQuery.class, flyteidl.plugins.Presto.PrestoQuery.Builder.class); - } - - public static final int ROUTING_GROUP_FIELD_NUMBER = 1; - private volatile java.lang.Object routingGroup_; - /** - * string routing_group = 1; - */ - public java.lang.String getRoutingGroup() { - java.lang.Object ref = routingGroup_; - 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(); - routingGroup_ = s; - return s; - } - } - /** - * string routing_group = 1; - */ - public com.google.protobuf.ByteString - getRoutingGroupBytes() { - java.lang.Object ref = routingGroup_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routingGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CATALOG_FIELD_NUMBER = 2; - private volatile java.lang.Object catalog_; - /** - * string catalog = 2; - */ - public java.lang.String getCatalog() { - java.lang.Object ref = catalog_; - 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(); - catalog_ = s; - return s; - } - } - /** - * string catalog = 2; - */ - public com.google.protobuf.ByteString - getCatalogBytes() { - java.lang.Object ref = catalog_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - catalog_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCHEMA_FIELD_NUMBER = 3; - private volatile java.lang.Object schema_; - /** - * string schema = 3; - */ - public java.lang.String getSchema() { - java.lang.Object ref = schema_; - 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(); - schema_ = s; - return s; - } - } - /** - * string schema = 3; - */ - public com.google.protobuf.ByteString - getSchemaBytes() { - java.lang.Object ref = schema_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATEMENT_FIELD_NUMBER = 4; - private volatile java.lang.Object statement_; - /** - * string statement = 4; - */ - public java.lang.String getStatement() { - java.lang.Object ref = statement_; - 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(); - statement_ = s; - return s; - } - } - /** - * string statement = 4; - */ - public com.google.protobuf.ByteString - getStatementBytes() { - java.lang.Object ref = statement_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statement_ = 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 (!getRoutingGroupBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, routingGroup_); - } - if (!getCatalogBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, catalog_); - } - if (!getSchemaBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schema_); - } - if (!getStatementBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, statement_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRoutingGroupBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, routingGroup_); - } - if (!getCatalogBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, catalog_); - } - if (!getSchemaBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schema_); - } - if (!getStatementBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, statement_); - } - 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 flyteidl.plugins.Presto.PrestoQuery)) { - return super.equals(obj); - } - flyteidl.plugins.Presto.PrestoQuery other = (flyteidl.plugins.Presto.PrestoQuery) obj; - - if (!getRoutingGroup() - .equals(other.getRoutingGroup())) return false; - if (!getCatalog() - .equals(other.getCatalog())) return false; - if (!getSchema() - .equals(other.getSchema())) return false; - if (!getStatement() - .equals(other.getStatement())) 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) + ROUTING_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getRoutingGroup().hashCode(); - hash = (37 * hash) + CATALOG_FIELD_NUMBER; - hash = (53 * hash) + getCatalog().hashCode(); - hash = (37 * hash) + SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSchema().hashCode(); - hash = (37 * hash) + STATEMENT_FIELD_NUMBER; - hash = (53 * hash) + getStatement().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Presto.PrestoQuery 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 flyteidl.plugins.Presto.PrestoQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Presto.PrestoQuery 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 flyteidl.plugins.Presto.PrestoQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Presto.PrestoQuery 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(flyteidl.plugins.Presto.PrestoQuery 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; - } - /** - *
-     * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field
-     * of a Presto task's TaskTemplate
-     * 
- * - * Protobuf type {@code flyteidl.plugins.PrestoQuery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.PrestoQuery) - flyteidl.plugins.Presto.PrestoQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Presto.PrestoQuery.class, flyteidl.plugins.Presto.PrestoQuery.Builder.class); - } - - // Construct using flyteidl.plugins.Presto.PrestoQuery.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(); - routingGroup_ = ""; - - catalog_ = ""; - - schema_ = ""; - - statement_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Presto.PrestoQuery getDefaultInstanceForType() { - return flyteidl.plugins.Presto.PrestoQuery.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Presto.PrestoQuery build() { - flyteidl.plugins.Presto.PrestoQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Presto.PrestoQuery buildPartial() { - flyteidl.plugins.Presto.PrestoQuery result = new flyteidl.plugins.Presto.PrestoQuery(this); - result.routingGroup_ = routingGroup_; - result.catalog_ = catalog_; - result.schema_ = schema_; - result.statement_ = statement_; - 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 flyteidl.plugins.Presto.PrestoQuery) { - return mergeFrom((flyteidl.plugins.Presto.PrestoQuery)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Presto.PrestoQuery other) { - if (other == flyteidl.plugins.Presto.PrestoQuery.getDefaultInstance()) return this; - if (!other.getRoutingGroup().isEmpty()) { - routingGroup_ = other.routingGroup_; - onChanged(); - } - if (!other.getCatalog().isEmpty()) { - catalog_ = other.catalog_; - onChanged(); - } - if (!other.getSchema().isEmpty()) { - schema_ = other.schema_; - onChanged(); - } - if (!other.getStatement().isEmpty()) { - statement_ = other.statement_; - 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 { - flyteidl.plugins.Presto.PrestoQuery parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Presto.PrestoQuery) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object routingGroup_ = ""; - /** - * string routing_group = 1; - */ - public java.lang.String getRoutingGroup() { - java.lang.Object ref = routingGroup_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - routingGroup_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string routing_group = 1; - */ - public com.google.protobuf.ByteString - getRoutingGroupBytes() { - java.lang.Object ref = routingGroup_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routingGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string routing_group = 1; - */ - public Builder setRoutingGroup( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - routingGroup_ = value; - onChanged(); - return this; - } - /** - * string routing_group = 1; - */ - public Builder clearRoutingGroup() { - - routingGroup_ = getDefaultInstance().getRoutingGroup(); - onChanged(); - return this; - } - /** - * string routing_group = 1; - */ - public Builder setRoutingGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - routingGroup_ = value; - onChanged(); - return this; - } - - private java.lang.Object catalog_ = ""; - /** - * string catalog = 2; - */ - public java.lang.String getCatalog() { - java.lang.Object ref = catalog_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - catalog_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string catalog = 2; - */ - public com.google.protobuf.ByteString - getCatalogBytes() { - java.lang.Object ref = catalog_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - catalog_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string catalog = 2; - */ - public Builder setCatalog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - catalog_ = value; - onChanged(); - return this; - } - /** - * string catalog = 2; - */ - public Builder clearCatalog() { - - catalog_ = getDefaultInstance().getCatalog(); - onChanged(); - return this; - } - /** - * string catalog = 2; - */ - public Builder setCatalogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - catalog_ = value; - onChanged(); - return this; - } - - private java.lang.Object schema_ = ""; - /** - * string schema = 3; - */ - public java.lang.String getSchema() { - java.lang.Object ref = schema_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schema_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string schema = 3; - */ - public com.google.protobuf.ByteString - getSchemaBytes() { - java.lang.Object ref = schema_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string schema = 3; - */ - public Builder setSchema( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - schema_ = value; - onChanged(); - return this; - } - /** - * string schema = 3; - */ - public Builder clearSchema() { - - schema_ = getDefaultInstance().getSchema(); - onChanged(); - return this; - } - /** - * string schema = 3; - */ - public Builder setSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - schema_ = value; - onChanged(); - return this; - } - - private java.lang.Object statement_ = ""; - /** - * string statement = 4; - */ - public java.lang.String getStatement() { - java.lang.Object ref = statement_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statement_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string statement = 4; - */ - public com.google.protobuf.ByteString - getStatementBytes() { - java.lang.Object ref = statement_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string statement = 4; - */ - public Builder setStatement( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statement_ = value; - onChanged(); - return this; - } - /** - * string statement = 4; - */ - public Builder clearStatement() { - - statement_ = getDefaultInstance().getStatement(); - onChanged(); - return this; - } - /** - * string statement = 4; - */ - public Builder setStatementBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statement_ = 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:flyteidl.plugins.PrestoQuery) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.PrestoQuery) - private static final flyteidl.plugins.Presto.PrestoQuery DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Presto.PrestoQuery(); - } - - public static flyteidl.plugins.Presto.PrestoQuery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrestoQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrestoQuery(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 flyteidl.plugins.Presto.PrestoQuery getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_PrestoQuery_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_PrestoQuery_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\035flyteidl/plugins/presto.proto\022\020flyteid" + - "l.plugins\032\031flyteidl/core/tasks.proto\"X\n\013" + - "PrestoQuery\022\025\n\rrouting_group\030\001 \001(\t\022\017\n\007ca" + - "talog\030\002 \001(\t\022\016\n\006schema\030\003 \001(\t\022\021\n\tstatement" + - "\030\004 \001(\tB5Z3github.com/lyft/flyteidl/gen/p" + - "b-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Tasks.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_PrestoQuery_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_PrestoQuery_descriptor, - new java.lang.String[] { "RoutingGroup", "Catalog", "Schema", "Statement", }); - flyteidl.core.Tasks.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/Pytorch.java b/gen/pb-java/flyteidl/plugins/Pytorch.java deleted file mode 100644 index 020941bc0..000000000 --- a/gen/pb-java/flyteidl/plugins/Pytorch.java +++ /dev/null @@ -1,560 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/pytorch.proto - -package flyteidl.plugins; - -public final class Pytorch { - private Pytorch() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DistributedPyTorchTrainingTaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedPyTorchTrainingTask) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * number of worker replicas spawned in the cluster for this job
-     * 
- * - * int32 workers = 1; - */ - int getWorkers(); - } - /** - *
-   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
-   * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedPyTorchTrainingTask} - */ - public static final class DistributedPyTorchTrainingTask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedPyTorchTrainingTask) - DistributedPyTorchTrainingTaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use DistributedPyTorchTrainingTask.newBuilder() to construct. - private DistributedPyTorchTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributedPyTorchTrainingTask() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributedPyTorchTrainingTask( - 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 8: { - - workers_ = input.readInt32(); - 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 flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.Builder.class); - } - - public static final int WORKERS_FIELD_NUMBER = 1; - private int workers_; - /** - *
-     * number of worker replicas spawned in the cluster for this job
-     * 
- * - * int32 workers = 1; - */ - public int getWorkers() { - return workers_; - } - - 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 (workers_ != 0) { - output.writeInt32(1, workers_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workers_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, workers_); - } - 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask)) { - return super.equals(obj); - } - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask other = (flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) obj; - - if (getWorkers() - != other.getWorkers()) 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) + WORKERS_FIELD_NUMBER; - hash = (53 * hash) + getWorkers(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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(flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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; - } - /** - *
-     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
-     * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedPyTorchTrainingTask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedPyTorchTrainingTask) - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.Builder.class); - } - - // Construct using flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.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(); - workers_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { - return flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask build() { - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask buildPartial() { - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask result = new flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask(this); - result.workers_ = workers_; - 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) { - return mergeFrom((flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask other) { - if (other == flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance()) return this; - if (other.getWorkers() != 0) { - setWorkers(other.getWorkers()); - } - 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 { - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int workers_ ; - /** - *
-       * number of worker replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public int getWorkers() { - return workers_; - } - /** - *
-       * number of worker replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public Builder setWorkers(int value) { - - workers_ = value; - onChanged(); - return this; - } - /** - *
-       * number of worker replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public Builder clearWorkers() { - - workers_ = 0; - 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:flyteidl.plugins.DistributedPyTorchTrainingTask) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedPyTorchTrainingTask) - private static final flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask(); - } - - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributedPyTorchTrainingTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributedPyTorchTrainingTask(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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_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\036flyteidl/plugins/pytorch.proto\022\020flytei" + - "dl.plugins\"1\n\036DistributedPyTorchTraining" + - "Task\022\017\n\007workers\030\001 \001(\005B5Z3github.com/lyft" + - "/flyteidl/gen/pb-go/flyteidl/pluginsb\006pr" + - "oto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor, - new java.lang.String[] { "Workers", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/Qubole.java b/gen/pb-java/flyteidl/plugins/Qubole.java deleted file mode 100644 index 28cadb493..000000000 --- a/gen/pb-java/flyteidl/plugins/Qubole.java +++ /dev/null @@ -1,2700 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/qubole.proto - -package flyteidl.plugins; - -public final class Qubole { - private Qubole() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface HiveQueryOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQuery) - com.google.protobuf.MessageOrBuilder { - - /** - * string query = 1; - */ - java.lang.String getQuery(); - /** - * string query = 1; - */ - com.google.protobuf.ByteString - getQueryBytes(); - - /** - * uint32 timeout_sec = 2; - */ - int getTimeoutSec(); - - /** - * uint32 retryCount = 3; - */ - int getRetryCount(); - } - /** - *
-   * Defines a query to execute on a hive cluster.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.HiveQuery} - */ - public static final class HiveQuery extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQuery) - HiveQueryOrBuilder { - private static final long serialVersionUID = 0L; - // Use HiveQuery.newBuilder() to construct. - private HiveQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HiveQuery() { - query_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HiveQuery( - 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(); - - query_ = s; - break; - } - case 16: { - - timeoutSec_ = input.readUInt32(); - break; - } - case 24: { - - retryCount_ = input.readUInt32(); - 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 flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); - } - - public static final int QUERY_FIELD_NUMBER = 1; - private volatile java.lang.Object query_; - /** - * string query = 1; - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - 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(); - query_ = s; - return s; - } - } - /** - * string query = 1; - */ - public com.google.protobuf.ByteString - getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIMEOUT_SEC_FIELD_NUMBER = 2; - private int timeoutSec_; - /** - * uint32 timeout_sec = 2; - */ - public int getTimeoutSec() { - return timeoutSec_; - } - - public static final int RETRYCOUNT_FIELD_NUMBER = 3; - private int retryCount_; - /** - * uint32 retryCount = 3; - */ - public int getRetryCount() { - return retryCount_; - } - - 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 (!getQueryBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); - } - if (timeoutSec_ != 0) { - output.writeUInt32(2, timeoutSec_); - } - if (retryCount_ != 0) { - output.writeUInt32(3, retryCount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getQueryBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); - } - if (timeoutSec_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, timeoutSec_); - } - if (retryCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, retryCount_); - } - 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 flyteidl.plugins.Qubole.HiveQuery)) { - return super.equals(obj); - } - flyteidl.plugins.Qubole.HiveQuery other = (flyteidl.plugins.Qubole.HiveQuery) obj; - - if (!getQuery() - .equals(other.getQuery())) return false; - if (getTimeoutSec() - != other.getTimeoutSec()) return false; - if (getRetryCount() - != other.getRetryCount()) 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) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - hash = (37 * hash) + TIMEOUT_SEC_FIELD_NUMBER; - hash = (53 * hash) + getTimeoutSec(); - hash = (37 * hash) + RETRYCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getRetryCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQuery 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 flyteidl.plugins.Qubole.HiveQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQuery 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 flyteidl.plugins.Qubole.HiveQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQuery 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(flyteidl.plugins.Qubole.HiveQuery 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; - } - /** - *
-     * Defines a query to execute on a hive cluster.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.HiveQuery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQuery) - flyteidl.plugins.Qubole.HiveQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); - } - - // Construct using flyteidl.plugins.Qubole.HiveQuery.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(); - query_ = ""; - - timeoutSec_ = 0; - - retryCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQuery getDefaultInstanceForType() { - return flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQuery build() { - flyteidl.plugins.Qubole.HiveQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQuery buildPartial() { - flyteidl.plugins.Qubole.HiveQuery result = new flyteidl.plugins.Qubole.HiveQuery(this); - result.query_ = query_; - result.timeoutSec_ = timeoutSec_; - result.retryCount_ = retryCount_; - 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 flyteidl.plugins.Qubole.HiveQuery) { - return mergeFrom((flyteidl.plugins.Qubole.HiveQuery)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQuery other) { - if (other == flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()) return this; - if (!other.getQuery().isEmpty()) { - query_ = other.query_; - onChanged(); - } - if (other.getTimeoutSec() != 0) { - setTimeoutSec(other.getTimeoutSec()); - } - if (other.getRetryCount() != 0) { - setRetryCount(other.getRetryCount()); - } - 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 { - flyteidl.plugins.Qubole.HiveQuery parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Qubole.HiveQuery) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object query_ = ""; - /** - * string query = 1; - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string query = 1; - */ - public com.google.protobuf.ByteString - getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string query = 1; - */ - public Builder setQuery( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - query_ = value; - onChanged(); - return this; - } - /** - * string query = 1; - */ - public Builder clearQuery() { - - query_ = getDefaultInstance().getQuery(); - onChanged(); - return this; - } - /** - * string query = 1; - */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - query_ = value; - onChanged(); - return this; - } - - private int timeoutSec_ ; - /** - * uint32 timeout_sec = 2; - */ - public int getTimeoutSec() { - return timeoutSec_; - } - /** - * uint32 timeout_sec = 2; - */ - public Builder setTimeoutSec(int value) { - - timeoutSec_ = value; - onChanged(); - return this; - } - /** - * uint32 timeout_sec = 2; - */ - public Builder clearTimeoutSec() { - - timeoutSec_ = 0; - onChanged(); - return this; - } - - private int retryCount_ ; - /** - * uint32 retryCount = 3; - */ - public int getRetryCount() { - return retryCount_; - } - /** - * uint32 retryCount = 3; - */ - public Builder setRetryCount(int value) { - - retryCount_ = value; - onChanged(); - return this; - } - /** - * uint32 retryCount = 3; - */ - public Builder clearRetryCount() { - - retryCount_ = 0; - 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:flyteidl.plugins.HiveQuery) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQuery) - private static final flyteidl.plugins.Qubole.HiveQuery DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQuery(); - } - - public static flyteidl.plugins.Qubole.HiveQuery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HiveQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HiveQuery(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 flyteidl.plugins.Qubole.HiveQuery getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HiveQueryCollectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQueryCollection) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - java.util.List - getQueriesList(); - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - flyteidl.plugins.Qubole.HiveQuery getQueries(int index); - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - int getQueriesCount(); - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - java.util.List - getQueriesOrBuilderList(); - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( - int index); - } - /** - *
-   * Defines a collection of hive queries.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} - */ - public static final class HiveQueryCollection extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQueryCollection) - HiveQueryCollectionOrBuilder { - private static final long serialVersionUID = 0L; - // Use HiveQueryCollection.newBuilder() to construct. - private HiveQueryCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HiveQueryCollection() { - queries_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HiveQueryCollection( - 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 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - queries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - queries_.add( - input.readMessage(flyteidl.plugins.Qubole.HiveQuery.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)) { - queries_ = java.util.Collections.unmodifiableList(queries_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); - } - - public static final int QUERIES_FIELD_NUMBER = 2; - private java.util.List queries_; - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List getQueriesList() { - return queries_; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List - getQueriesOrBuilderList() { - return queries_; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public int getQueriesCount() { - return queries_.size(); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { - return queries_.get(index); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( - int index) { - return queries_.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 < queries_.size(); i++) { - output.writeMessage(2, queries_.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 < queries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, queries_.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 flyteidl.plugins.Qubole.HiveQueryCollection)) { - return super.equals(obj); - } - flyteidl.plugins.Qubole.HiveQueryCollection other = (flyteidl.plugins.Qubole.HiveQueryCollection) obj; - - if (!getQueriesList() - .equals(other.getQueriesList())) 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 (getQueriesCount() > 0) { - hash = (37 * hash) + QUERIES_FIELD_NUMBER; - hash = (53 * hash) + getQueriesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection 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 flyteidl.plugins.Qubole.HiveQueryCollection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection 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 flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection 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(flyteidl.plugins.Qubole.HiveQueryCollection 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; - } - /** - *
-     * Defines a collection of hive queries.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQueryCollection) - flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); - } - - // Construct using flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getQueriesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (queriesBuilder_ == null) { - queries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - queriesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { - return flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQueryCollection build() { - flyteidl.plugins.Qubole.HiveQueryCollection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQueryCollection buildPartial() { - flyteidl.plugins.Qubole.HiveQueryCollection result = new flyteidl.plugins.Qubole.HiveQueryCollection(this); - int from_bitField0_ = bitField0_; - if (queriesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - queries_ = java.util.Collections.unmodifiableList(queries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.queries_ = queries_; - } else { - result.queries_ = queriesBuilder_.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 flyteidl.plugins.Qubole.HiveQueryCollection) { - return mergeFrom((flyteidl.plugins.Qubole.HiveQueryCollection)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQueryCollection other) { - if (other == flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance()) return this; - if (queriesBuilder_ == null) { - if (!other.queries_.isEmpty()) { - if (queries_.isEmpty()) { - queries_ = other.queries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureQueriesIsMutable(); - queries_.addAll(other.queries_); - } - onChanged(); - } - } else { - if (!other.queries_.isEmpty()) { - if (queriesBuilder_.isEmpty()) { - queriesBuilder_.dispose(); - queriesBuilder_ = null; - queries_ = other.queries_; - bitField0_ = (bitField0_ & ~0x00000001); - queriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getQueriesFieldBuilder() : null; - } else { - queriesBuilder_.addAllMessages(other.queries_); - } - } - } - 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 { - flyteidl.plugins.Qubole.HiveQueryCollection parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Qubole.HiveQueryCollection) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List queries_ = - java.util.Collections.emptyList(); - private void ensureQueriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - queries_ = new java.util.ArrayList(queries_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> queriesBuilder_; - - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List getQueriesList() { - if (queriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(queries_); - } else { - return queriesBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public int getQueriesCount() { - if (queriesBuilder_ == null) { - return queries_.size(); - } else { - return queriesBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { - if (queriesBuilder_ == null) { - return queries_.get(index); - } else { - return queriesBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder setQueries( - int index, flyteidl.plugins.Qubole.HiveQuery value) { - if (queriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.set(index, value); - onChanged(); - } else { - queriesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder setQueries( - int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - queries_.set(index, builderForValue.build()); - onChanged(); - } else { - queriesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addQueries(flyteidl.plugins.Qubole.HiveQuery value) { - if (queriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.add(value); - onChanged(); - } else { - queriesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addQueries( - int index, flyteidl.plugins.Qubole.HiveQuery value) { - if (queriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.add(index, value); - onChanged(); - } else { - queriesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addQueries( - flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - queries_.add(builderForValue.build()); - onChanged(); - } else { - queriesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addQueries( - int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - queries_.add(index, builderForValue.build()); - onChanged(); - } else { - queriesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addAllQueries( - java.lang.Iterable values) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, queries_); - onChanged(); - } else { - queriesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder clearQueries() { - if (queriesBuilder_ == null) { - queries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - queriesBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder removeQueries(int index) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - queries_.remove(index); - onChanged(); - } else { - queriesBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery.Builder getQueriesBuilder( - int index) { - return getQueriesFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( - int index) { - if (queriesBuilder_ == null) { - return queries_.get(index); } else { - return queriesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List - getQueriesOrBuilderList() { - if (queriesBuilder_ != null) { - return queriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(queries_); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder() { - return getQueriesFieldBuilder().addBuilder( - flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder( - int index) { - return getQueriesFieldBuilder().addBuilder( - index, flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List - getQueriesBuilderList() { - return getQueriesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> - getQueriesFieldBuilder() { - if (queriesBuilder_ == null) { - queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder>( - queries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - queries_ = null; - } - return queriesBuilder_; - } - @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:flyteidl.plugins.HiveQueryCollection) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQueryCollection) - private static final flyteidl.plugins.Qubole.HiveQueryCollection DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQueryCollection(); - } - - public static flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HiveQueryCollection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HiveQueryCollection(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 flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QuboleHiveJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.QuboleHiveJob) - com.google.protobuf.MessageOrBuilder { - - /** - * string cluster_label = 1; - */ - java.lang.String getClusterLabel(); - /** - * string cluster_label = 1; - */ - com.google.protobuf.ByteString - getClusterLabelBytes(); - - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasQueryCollection(); - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection(); - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder(); - - /** - * repeated string tags = 3; - */ - java.util.List - getTagsList(); - /** - * repeated string tags = 3; - */ - int getTagsCount(); - /** - * repeated string tags = 3; - */ - java.lang.String getTags(int index); - /** - * repeated string tags = 3; - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - boolean hasQuery(); - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - flyteidl.plugins.Qubole.HiveQuery getQuery(); - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder(); - } - /** - *
-   * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
-   * of a hive task's TaskTemplate
-   * 
- * - * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} - */ - public static final class QuboleHiveJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.QuboleHiveJob) - QuboleHiveJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use QuboleHiveJob.newBuilder() to construct. - private QuboleHiveJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuboleHiveJob() { - clusterLabel_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuboleHiveJob( - 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(); - - clusterLabel_ = s; - break; - } - case 18: { - flyteidl.plugins.Qubole.HiveQueryCollection.Builder subBuilder = null; - if (queryCollection_ != null) { - subBuilder = queryCollection_.toBuilder(); - } - queryCollection_ = input.readMessage(flyteidl.plugins.Qubole.HiveQueryCollection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queryCollection_); - queryCollection_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - tags_.add(s); - break; - } - case 34: { - flyteidl.plugins.Qubole.HiveQuery.Builder subBuilder = null; - if (query_ != null) { - subBuilder = query_.toBuilder(); - } - query_ = input.readMessage(flyteidl.plugins.Qubole.HiveQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(query_); - query_ = 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_ & 0x00000004) != 0)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); - } - - private int bitField0_; - public static final int CLUSTER_LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object clusterLabel_; - /** - * string cluster_label = 1; - */ - public java.lang.String getClusterLabel() { - java.lang.Object ref = clusterLabel_; - 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(); - clusterLabel_ = s; - return s; - } - } - /** - * string cluster_label = 1; - */ - public com.google.protobuf.ByteString - getClusterLabelBytes() { - java.lang.Object ref = clusterLabel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterLabel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUERY_COLLECTION_FIELD_NUMBER = 2; - private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_; - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasQueryCollection() { - return queryCollection_ != null; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { - return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { - return getQueryCollection(); - } - - public static final int TAGS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList tags_; - /** - * repeated string tags = 3; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - * repeated string tags = 3; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 3; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 3; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int QUERY_FIELD_NUMBER = 4; - private flyteidl.plugins.Qubole.HiveQuery query_; - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public boolean hasQuery() { - return query_ != null; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQuery getQuery() { - return query_ == null ? flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder() { - return getQuery(); - } - - 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 (!getClusterLabelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterLabel_); - } - if (queryCollection_ != null) { - output.writeMessage(2, getQueryCollection()); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i)); - } - if (query_ != null) { - output.writeMessage(4, getQuery()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClusterLabelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterLabel_); - } - if (queryCollection_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getQueryCollection()); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - if (query_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getQuery()); - } - 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 flyteidl.plugins.Qubole.QuboleHiveJob)) { - return super.equals(obj); - } - flyteidl.plugins.Qubole.QuboleHiveJob other = (flyteidl.plugins.Qubole.QuboleHiveJob) obj; - - if (!getClusterLabel() - .equals(other.getClusterLabel())) return false; - if (hasQueryCollection() != other.hasQueryCollection()) return false; - if (hasQueryCollection()) { - if (!getQueryCollection() - .equals(other.getQueryCollection())) return false; - } - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (hasQuery() != other.hasQuery()) return false; - if (hasQuery()) { - if (!getQuery() - .equals(other.getQuery())) 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) + CLUSTER_LABEL_FIELD_NUMBER; - hash = (53 * hash) + getClusterLabel().hashCode(); - if (hasQueryCollection()) { - hash = (37 * hash) + QUERY_COLLECTION_FIELD_NUMBER; - hash = (53 * hash) + getQueryCollection().hashCode(); - } - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - if (hasQuery()) { - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob 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 flyteidl.plugins.Qubole.QuboleHiveJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob 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 flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob 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(flyteidl.plugins.Qubole.QuboleHiveJob 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; - } - /** - *
-     * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
-     * of a hive task's TaskTemplate
-     * 
- * - * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.QuboleHiveJob) - flyteidl.plugins.Qubole.QuboleHiveJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); - } - - // Construct using flyteidl.plugins.Qubole.QuboleHiveJob.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(); - clusterLabel_ = ""; - - if (queryCollectionBuilder_ == null) { - queryCollection_ = null; - } else { - queryCollection_ = null; - queryCollectionBuilder_ = null; - } - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (queryBuilder_ == null) { - query_ = null; - } else { - query_ = null; - queryBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { - return flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Qubole.QuboleHiveJob build() { - flyteidl.plugins.Qubole.QuboleHiveJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.QuboleHiveJob buildPartial() { - flyteidl.plugins.Qubole.QuboleHiveJob result = new flyteidl.plugins.Qubole.QuboleHiveJob(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.clusterLabel_ = clusterLabel_; - if (queryCollectionBuilder_ == null) { - result.queryCollection_ = queryCollection_; - } else { - result.queryCollection_ = queryCollectionBuilder_.build(); - } - if (((bitField0_ & 0x00000004) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.tags_ = tags_; - if (queryBuilder_ == null) { - result.query_ = query_; - } else { - result.query_ = queryBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.plugins.Qubole.QuboleHiveJob) { - return mergeFrom((flyteidl.plugins.Qubole.QuboleHiveJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Qubole.QuboleHiveJob other) { - if (other == flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance()) return this; - if (!other.getClusterLabel().isEmpty()) { - clusterLabel_ = other.clusterLabel_; - onChanged(); - } - if (other.hasQueryCollection()) { - mergeQueryCollection(other.getQueryCollection()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.hasQuery()) { - mergeQuery(other.getQuery()); - } - 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 { - flyteidl.plugins.Qubole.QuboleHiveJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Qubole.QuboleHiveJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object clusterLabel_ = ""; - /** - * string cluster_label = 1; - */ - public java.lang.String getClusterLabel() { - java.lang.Object ref = clusterLabel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterLabel_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cluster_label = 1; - */ - public com.google.protobuf.ByteString - getClusterLabelBytes() { - java.lang.Object ref = clusterLabel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterLabel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cluster_label = 1; - */ - public Builder setClusterLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterLabel_ = value; - onChanged(); - return this; - } - /** - * string cluster_label = 1; - */ - public Builder clearClusterLabel() { - - clusterLabel_ = getDefaultInstance().getClusterLabel(); - onChanged(); - return this; - } - /** - * string cluster_label = 1; - */ - public Builder setClusterLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterLabel_ = value; - onChanged(); - return this; - } - - private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> queryCollectionBuilder_; - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasQueryCollection() { - return queryCollectionBuilder_ != null || queryCollection_ != null; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { - if (queryCollectionBuilder_ == null) { - return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; - } else { - return queryCollectionBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { - if (queryCollectionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queryCollection_ = value; - onChanged(); - } else { - queryCollectionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setQueryCollection( - flyteidl.plugins.Qubole.HiveQueryCollection.Builder builderForValue) { - if (queryCollectionBuilder_ == null) { - queryCollection_ = builderForValue.build(); - onChanged(); - } else { - queryCollectionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { - if (queryCollectionBuilder_ == null) { - if (queryCollection_ != null) { - queryCollection_ = - flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder(queryCollection_).mergeFrom(value).buildPartial(); - } else { - queryCollection_ = value; - } - onChanged(); - } else { - queryCollectionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearQueryCollection() { - if (queryCollectionBuilder_ == null) { - queryCollection_ = null; - onChanged(); - } else { - queryCollection_ = null; - queryCollectionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection.Builder getQueryCollectionBuilder() { - - onChanged(); - return getQueryCollectionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { - if (queryCollectionBuilder_ != null) { - return queryCollectionBuilder_.getMessageOrBuilder(); - } else { - return queryCollection_ == null ? - flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; - } - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> - getQueryCollectionFieldBuilder() { - if (queryCollectionBuilder_ == null) { - queryCollectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder>( - getQueryCollection(), - getParentForChildren(), - isClean()); - queryCollection_ = null; - } - return queryCollectionBuilder_; - } - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated string tags = 3; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - * repeated string tags = 3; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 3; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 3; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * repeated string tags = 3; - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string tags = 3; - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - * repeated string tags = 3; - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - * repeated string tags = 3; - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * repeated string tags = 3; - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - - private flyteidl.plugins.Qubole.HiveQuery query_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> queryBuilder_; - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public boolean hasQuery() { - return queryBuilder_ != null || query_ != null; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQuery getQuery() { - if (queryBuilder_ == null) { - return query_ == null ? flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; - } else { - return queryBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public Builder setQuery(flyteidl.plugins.Qubole.HiveQuery value) { - if (queryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - query_ = value; - onChanged(); - } else { - queryBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public Builder setQuery( - flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { - if (queryBuilder_ == null) { - query_ = builderForValue.build(); - onChanged(); - } else { - queryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public Builder mergeQuery(flyteidl.plugins.Qubole.HiveQuery value) { - if (queryBuilder_ == null) { - if (query_ != null) { - query_ = - flyteidl.plugins.Qubole.HiveQuery.newBuilder(query_).mergeFrom(value).buildPartial(); - } else { - query_ = value; - } - onChanged(); - } else { - queryBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public Builder clearQuery() { - if (queryBuilder_ == null) { - query_ = null; - onChanged(); - } else { - query_ = null; - queryBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQuery.Builder getQueryBuilder() { - - onChanged(); - return getQueryFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder() { - if (queryBuilder_ != null) { - return queryBuilder_.getMessageOrBuilder(); - } else { - return query_ == null ? - flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; - } - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> - getQueryFieldBuilder() { - if (queryBuilder_ == null) { - queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder>( - getQuery(), - getParentForChildren(), - isClean()); - query_ = null; - } - return queryBuilder_; - } - @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:flyteidl.plugins.QuboleHiveJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.QuboleHiveJob) - private static final flyteidl.plugins.Qubole.QuboleHiveJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.QuboleHiveJob(); - } - - public static flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuboleHiveJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuboleHiveJob(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 flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_HiveQuery_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_QuboleHiveJob_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\035flyteidl/plugins/qubole.proto\022\020flyteid" + - "l.plugins\032\031flyteidl/core/tasks.proto\"C\n\t" + - "HiveQuery\022\r\n\005query\030\001 \001(\t\022\023\n\013timeout_sec\030" + - "\002 \001(\r\022\022\n\nretryCount\030\003 \001(\r\"C\n\023HiveQueryCo" + - "llection\022,\n\007queries\030\002 \003(\0132\033.flyteidl.plu" + - "gins.HiveQuery\"\245\001\n\rQuboleHiveJob\022\025\n\rclus" + - "ter_label\030\001 \001(\t\022C\n\020query_collection\030\002 \001(" + - "\0132%.flyteidl.plugins.HiveQueryCollection" + - "B\002\030\001\022\014\n\004tags\030\003 \003(\t\022*\n\005query\030\004 \001(\0132\033.flyt" + - "eidl.plugins.HiveQueryB5Z3github.com/lyf" + - "t/flyteidl/gen/pb-go/flyteidl/pluginsb\006p" + - "roto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Tasks.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_HiveQuery_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_HiveQuery_descriptor, - new java.lang.String[] { "Query", "TimeoutSec", "RetryCount", }); - internal_static_flyteidl_plugins_HiveQueryCollection_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_HiveQueryCollection_descriptor, - new java.lang.String[] { "Queries", }); - internal_static_flyteidl_plugins_QuboleHiveJob_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_QuboleHiveJob_descriptor, - new java.lang.String[] { "ClusterLabel", "QueryCollection", "Tags", "Query", }); - flyteidl.core.Tasks.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/Sidecar.java b/gen/pb-java/flyteidl/plugins/Sidecar.java deleted file mode 100644 index ae8690617..000000000 --- a/gen/pb-java/flyteidl/plugins/Sidecar.java +++ /dev/null @@ -1,817 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sidecar.proto - -package flyteidl.plugins; - -public final class Sidecar { - private Sidecar() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SidecarJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SidecarJob) - com.google.protobuf.MessageOrBuilder { - - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - boolean hasPodSpec(); - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - k8s.io.api.core.v1.Generated.PodSpec getPodSpec(); - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder(); - - /** - * string primary_container_name = 2; - */ - java.lang.String getPrimaryContainerName(); - /** - * string primary_container_name = 2; - */ - com.google.protobuf.ByteString - getPrimaryContainerNameBytes(); - } - /** - *
-   * A sidecar job brings up the desired pod_spec.
-   * The plugin executor is responsible for keeping the pod alive until the primary container terminates
-   * or the task itself times out.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.SidecarJob} - */ - public static final class SidecarJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.SidecarJob) - SidecarJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use SidecarJob.newBuilder() to construct. - private SidecarJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SidecarJob() { - primaryContainerName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SidecarJob( - 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: { - k8s.io.api.core.v1.Generated.PodSpec.Builder subBuilder = null; - if (podSpec_ != null) { - subBuilder = podSpec_.toBuilder(); - } - podSpec_ = input.readMessage(k8s.io.api.core.v1.Generated.PodSpec.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(podSpec_); - podSpec_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - primaryContainerName_ = 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 flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Sidecar.SidecarJob.class, flyteidl.plugins.Sidecar.SidecarJob.Builder.class); - } - - public static final int POD_SPEC_FIELD_NUMBER = 1; - private k8s.io.api.core.v1.Generated.PodSpec podSpec_; - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public boolean hasPodSpec() { - return podSpec_ != null; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public k8s.io.api.core.v1.Generated.PodSpec getPodSpec() { - return podSpec_ == null ? k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder() { - return getPodSpec(); - } - - public static final int PRIMARY_CONTAINER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object primaryContainerName_; - /** - * string primary_container_name = 2; - */ - public java.lang.String getPrimaryContainerName() { - java.lang.Object ref = primaryContainerName_; - 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(); - primaryContainerName_ = s; - return s; - } - } - /** - * string primary_container_name = 2; - */ - public com.google.protobuf.ByteString - getPrimaryContainerNameBytes() { - java.lang.Object ref = primaryContainerName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - primaryContainerName_ = 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 (podSpec_ != null) { - output.writeMessage(1, getPodSpec()); - } - if (!getPrimaryContainerNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, primaryContainerName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (podSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPodSpec()); - } - if (!getPrimaryContainerNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, primaryContainerName_); - } - 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 flyteidl.plugins.Sidecar.SidecarJob)) { - return super.equals(obj); - } - flyteidl.plugins.Sidecar.SidecarJob other = (flyteidl.plugins.Sidecar.SidecarJob) obj; - - if (hasPodSpec() != other.hasPodSpec()) return false; - if (hasPodSpec()) { - if (!getPodSpec() - .equals(other.getPodSpec())) return false; - } - if (!getPrimaryContainerName() - .equals(other.getPrimaryContainerName())) 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 (hasPodSpec()) { - hash = (37 * hash) + POD_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getPodSpec().hashCode(); - } - hash = (37 * hash) + PRIMARY_CONTAINER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPrimaryContainerName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Sidecar.SidecarJob 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 flyteidl.plugins.Sidecar.SidecarJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Sidecar.SidecarJob 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 flyteidl.plugins.Sidecar.SidecarJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Sidecar.SidecarJob 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(flyteidl.plugins.Sidecar.SidecarJob 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 sidecar job brings up the desired pod_spec.
-     * The plugin executor is responsible for keeping the pod alive until the primary container terminates
-     * or the task itself times out.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.SidecarJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SidecarJob) - flyteidl.plugins.Sidecar.SidecarJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Sidecar.SidecarJob.class, flyteidl.plugins.Sidecar.SidecarJob.Builder.class); - } - - // Construct using flyteidl.plugins.Sidecar.SidecarJob.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 (podSpecBuilder_ == null) { - podSpec_ = null; - } else { - podSpec_ = null; - podSpecBuilder_ = null; - } - primaryContainerName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Sidecar.SidecarJob getDefaultInstanceForType() { - return flyteidl.plugins.Sidecar.SidecarJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Sidecar.SidecarJob build() { - flyteidl.plugins.Sidecar.SidecarJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Sidecar.SidecarJob buildPartial() { - flyteidl.plugins.Sidecar.SidecarJob result = new flyteidl.plugins.Sidecar.SidecarJob(this); - if (podSpecBuilder_ == null) { - result.podSpec_ = podSpec_; - } else { - result.podSpec_ = podSpecBuilder_.build(); - } - result.primaryContainerName_ = primaryContainerName_; - 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 flyteidl.plugins.Sidecar.SidecarJob) { - return mergeFrom((flyteidl.plugins.Sidecar.SidecarJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Sidecar.SidecarJob other) { - if (other == flyteidl.plugins.Sidecar.SidecarJob.getDefaultInstance()) return this; - if (other.hasPodSpec()) { - mergePodSpec(other.getPodSpec()); - } - if (!other.getPrimaryContainerName().isEmpty()) { - primaryContainerName_ = other.primaryContainerName_; - 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 { - flyteidl.plugins.Sidecar.SidecarJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Sidecar.SidecarJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private k8s.io.api.core.v1.Generated.PodSpec podSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder> podSpecBuilder_; - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public boolean hasPodSpec() { - return podSpecBuilder_ != null || podSpec_ != null; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public k8s.io.api.core.v1.Generated.PodSpec getPodSpec() { - if (podSpecBuilder_ == null) { - return podSpec_ == null ? k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; - } else { - return podSpecBuilder_.getMessage(); - } - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public Builder setPodSpec(k8s.io.api.core.v1.Generated.PodSpec value) { - if (podSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - podSpec_ = value; - onChanged(); - } else { - podSpecBuilder_.setMessage(value); - } - - return this; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public Builder setPodSpec( - k8s.io.api.core.v1.Generated.PodSpec.Builder builderForValue) { - if (podSpecBuilder_ == null) { - podSpec_ = builderForValue.build(); - onChanged(); - } else { - podSpecBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public Builder mergePodSpec(k8s.io.api.core.v1.Generated.PodSpec value) { - if (podSpecBuilder_ == null) { - if (podSpec_ != null) { - podSpec_ = - k8s.io.api.core.v1.Generated.PodSpec.newBuilder(podSpec_).mergeFrom(value).buildPartial(); - } else { - podSpec_ = value; - } - onChanged(); - } else { - podSpecBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public Builder clearPodSpec() { - if (podSpecBuilder_ == null) { - podSpec_ = null; - onChanged(); - } else { - podSpec_ = null; - podSpecBuilder_ = null; - } - - return this; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public k8s.io.api.core.v1.Generated.PodSpec.Builder getPodSpecBuilder() { - - onChanged(); - return getPodSpecFieldBuilder().getBuilder(); - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder() { - if (podSpecBuilder_ != null) { - return podSpecBuilder_.getMessageOrBuilder(); - } else { - return podSpec_ == null ? - k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; - } - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder> - getPodSpecFieldBuilder() { - if (podSpecBuilder_ == null) { - podSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder>( - getPodSpec(), - getParentForChildren(), - isClean()); - podSpec_ = null; - } - return podSpecBuilder_; - } - - private java.lang.Object primaryContainerName_ = ""; - /** - * string primary_container_name = 2; - */ - public java.lang.String getPrimaryContainerName() { - java.lang.Object ref = primaryContainerName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - primaryContainerName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string primary_container_name = 2; - */ - public com.google.protobuf.ByteString - getPrimaryContainerNameBytes() { - java.lang.Object ref = primaryContainerName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - primaryContainerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string primary_container_name = 2; - */ - public Builder setPrimaryContainerName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - primaryContainerName_ = value; - onChanged(); - return this; - } - /** - * string primary_container_name = 2; - */ - public Builder clearPrimaryContainerName() { - - primaryContainerName_ = getDefaultInstance().getPrimaryContainerName(); - onChanged(); - return this; - } - /** - * string primary_container_name = 2; - */ - public Builder setPrimaryContainerNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - primaryContainerName_ = 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:flyteidl.plugins.SidecarJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.SidecarJob) - private static final flyteidl.plugins.Sidecar.SidecarJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Sidecar.SidecarJob(); - } - - public static flyteidl.plugins.Sidecar.SidecarJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SidecarJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SidecarJob(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 flyteidl.plugins.Sidecar.SidecarJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SidecarJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SidecarJob_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\036flyteidl/plugins/sidecar.proto\022\020flytei" + - "dl.plugins\032\"k8s.io/api/core/v1/generated" + - ".proto\"[\n\nSidecarJob\022-\n\010pod_spec\030\001 \001(\0132\033" + - ".k8s.io.api.core.v1.PodSpec\022\036\n\026primary_c" + - "ontainer_name\030\002 \001(\tB5Z3github.com/lyft/f" + - "lyteidl/gen/pb-go/flyteidl/pluginsb\006prot" + - "o3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - k8s.io.api.core.v1.Generated.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_SidecarJob_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SidecarJob_descriptor, - new java.lang.String[] { "PodSpec", "PrimaryContainerName", }); - k8s.io.api.core.v1.Generated.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/Spark.java b/gen/pb-java/flyteidl/plugins/Spark.java deleted file mode 100644 index 692a657e0..000000000 --- a/gen/pb-java/flyteidl/plugins/Spark.java +++ /dev/null @@ -1,2179 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/spark.proto - -package flyteidl.plugins; - -public final class Spark { - private Spark() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SparkApplicationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkApplication) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.plugins.SparkApplication} - */ - public static final class SparkApplication extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkApplication) - SparkApplicationOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkApplication.newBuilder() to construct. - private SparkApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SparkApplication() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SparkApplication( - 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; - 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 flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.plugins.SparkApplication.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * PYTHON = 0; - */ - PYTHON(0), - /** - * JAVA = 1; - */ - JAVA(1), - /** - * SCALA = 2; - */ - SCALA(2), - /** - * R = 3; - */ - R(3), - UNRECOGNIZED(-1), - ; - - /** - * PYTHON = 0; - */ - public static final int PYTHON_VALUE = 0; - /** - * JAVA = 1; - */ - public static final int JAVA_VALUE = 1; - /** - * SCALA = 2; - */ - public static final int SCALA_VALUE = 2; - /** - * R = 3; - */ - public static final int R_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - public static Type forNumber(int value) { - switch (value) { - case 0: return PYTHON; - case 1: return JAVA; - case 2: return SCALA; - case 3: return R; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.Spark.SparkApplication.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = values(); - - public static Type 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 Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.SparkApplication.Type) - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.plugins.Spark.SparkApplication)) { - return super.equals(obj); - } - flyteidl.plugins.Spark.SparkApplication other = (flyteidl.plugins.Spark.SparkApplication) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkApplication 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 flyteidl.plugins.Spark.SparkApplication parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkApplication 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 flyteidl.plugins.Spark.SparkApplication parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkApplication 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(flyteidl.plugins.Spark.SparkApplication 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 flyteidl.plugins.SparkApplication} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkApplication) - flyteidl.plugins.Spark.SparkApplicationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); - } - - // Construct using flyteidl.plugins.Spark.SparkApplication.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkApplication getDefaultInstanceForType() { - return flyteidl.plugins.Spark.SparkApplication.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkApplication build() { - flyteidl.plugins.Spark.SparkApplication result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkApplication buildPartial() { - flyteidl.plugins.Spark.SparkApplication result = new flyteidl.plugins.Spark.SparkApplication(this); - 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 flyteidl.plugins.Spark.SparkApplication) { - return mergeFrom((flyteidl.plugins.Spark.SparkApplication)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Spark.SparkApplication other) { - if (other == flyteidl.plugins.Spark.SparkApplication.getDefaultInstance()) return this; - 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 { - flyteidl.plugins.Spark.SparkApplication parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Spark.SparkApplication) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.plugins.SparkApplication) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkApplication) - private static final flyteidl.plugins.Spark.SparkApplication DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkApplication(); - } - - public static flyteidl.plugins.Spark.SparkApplication getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkApplication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkApplication(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 flyteidl.plugins.Spark.SparkApplication getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SparkJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkJob) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - int getApplicationTypeValue(); - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - flyteidl.plugins.Spark.SparkApplication.Type getApplicationType(); - - /** - * string mainApplicationFile = 2; - */ - java.lang.String getMainApplicationFile(); - /** - * string mainApplicationFile = 2; - */ - com.google.protobuf.ByteString - getMainApplicationFileBytes(); - - /** - * string mainClass = 3; - */ - java.lang.String getMainClass(); - /** - * string mainClass = 3; - */ - com.google.protobuf.ByteString - getMainClassBytes(); - - /** - * map<string, string> sparkConf = 4; - */ - int getSparkConfCount(); - /** - * map<string, string> sparkConf = 4; - */ - boolean containsSparkConf( - java.lang.String key); - /** - * Use {@link #getSparkConfMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getSparkConf(); - /** - * map<string, string> sparkConf = 4; - */ - java.util.Map - getSparkConfMap(); - /** - * map<string, string> sparkConf = 4; - */ - - java.lang.String getSparkConfOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - * map<string, string> sparkConf = 4; - */ - - java.lang.String getSparkConfOrThrow( - java.lang.String key); - - /** - * map<string, string> hadoopConf = 5; - */ - int getHadoopConfCount(); - /** - * map<string, string> hadoopConf = 5; - */ - boolean containsHadoopConf( - java.lang.String key); - /** - * Use {@link #getHadoopConfMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getHadoopConf(); - /** - * map<string, string> hadoopConf = 5; - */ - java.util.Map - getHadoopConfMap(); - /** - * map<string, string> hadoopConf = 5; - */ - - java.lang.String getHadoopConfOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - * map<string, string> hadoopConf = 5; - */ - - java.lang.String getHadoopConfOrThrow( - java.lang.String key); - - /** - *
-     * Executor path for Python jobs.
-     * 
- * - * string executorPath = 6; - */ - java.lang.String getExecutorPath(); - /** - *
-     * Executor path for Python jobs.
-     * 
- * - * string executorPath = 6; - */ - com.google.protobuf.ByteString - getExecutorPathBytes(); - } - /** - *
-   * Custom Proto for Spark Plugin.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.SparkJob} - */ - public static final class SparkJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkJob) - SparkJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkJob.newBuilder() to construct. - private SparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SparkJob() { - applicationType_ = 0; - mainApplicationFile_ = ""; - mainClass_ = ""; - executorPath_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SparkJob( - 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 8: { - int rawValue = input.readEnum(); - - applicationType_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - mainApplicationFile_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - mainClass_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - sparkConf_ = com.google.protobuf.MapField.newMapField( - SparkConfDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry - sparkConf__ = input.readMessage( - SparkConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - sparkConf_.getMutableMap().put( - sparkConf__.getKey(), sparkConf__.getValue()); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - hadoopConf_ = com.google.protobuf.MapField.newMapField( - HadoopConfDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry - hadoopConf__ = input.readMessage( - HadoopConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - hadoopConf_.getMutableMap().put( - hadoopConf__.getKey(), hadoopConf__.getValue()); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - executorPath_ = 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 flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetSparkConf(); - case 5: - return internalGetHadoopConf(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); - } - - private int bitField0_; - public static final int APPLICATIONTYPE_FIELD_NUMBER = 1; - private int applicationType_; - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public int getApplicationTypeValue() { - return applicationType_; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); - return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; - } - - public static final int MAINAPPLICATIONFILE_FIELD_NUMBER = 2; - private volatile java.lang.Object mainApplicationFile_; - /** - * string mainApplicationFile = 2; - */ - public java.lang.String getMainApplicationFile() { - java.lang.Object ref = mainApplicationFile_; - 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(); - mainApplicationFile_ = s; - return s; - } - } - /** - * string mainApplicationFile = 2; - */ - public com.google.protobuf.ByteString - getMainApplicationFileBytes() { - java.lang.Object ref = mainApplicationFile_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mainApplicationFile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAINCLASS_FIELD_NUMBER = 3; - private volatile java.lang.Object mainClass_; - /** - * string mainClass = 3; - */ - public java.lang.String getMainClass() { - java.lang.Object ref = mainClass_; - 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(); - mainClass_ = s; - return s; - } - } - /** - * string mainClass = 3; - */ - public com.google.protobuf.ByteString - getMainClassBytes() { - java.lang.Object ref = mainClass_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mainClass_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPARKCONF_FIELD_NUMBER = 4; - private static final class SparkConfDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> sparkConf_; - private com.google.protobuf.MapField - internalGetSparkConf() { - if (sparkConf_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SparkConfDefaultEntryHolder.defaultEntry); - } - return sparkConf_; - } - - public int getSparkConfCount() { - return internalGetSparkConf().getMap().size(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public boolean containsSparkConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetSparkConf().getMap().containsKey(key); - } - /** - * Use {@link #getSparkConfMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getSparkConf() { - return getSparkConfMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.util.Map getSparkConfMap() { - return internalGetSparkConf().getMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.lang.String getSparkConfOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSparkConf().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.lang.String getSparkConfOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSparkConf().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int HADOOPCONF_FIELD_NUMBER = 5; - private static final class HadoopConfDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> hadoopConf_; - private com.google.protobuf.MapField - internalGetHadoopConf() { - if (hadoopConf_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HadoopConfDefaultEntryHolder.defaultEntry); - } - return hadoopConf_; - } - - public int getHadoopConfCount() { - return internalGetHadoopConf().getMap().size(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public boolean containsHadoopConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetHadoopConf().getMap().containsKey(key); - } - /** - * Use {@link #getHadoopConfMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getHadoopConf() { - return getHadoopConfMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.util.Map getHadoopConfMap() { - return internalGetHadoopConf().getMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.lang.String getHadoopConfOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHadoopConf().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.lang.String getHadoopConfOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHadoopConf().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int EXECUTORPATH_FIELD_NUMBER = 6; - private volatile java.lang.Object executorPath_; - /** - *
-     * Executor path for Python jobs.
-     * 
- * - * string executorPath = 6; - */ - public java.lang.String getExecutorPath() { - java.lang.Object ref = executorPath_; - 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(); - executorPath_ = s; - return s; - } - } - /** - *
-     * Executor path for Python jobs.
-     * 
- * - * string executorPath = 6; - */ - public com.google.protobuf.ByteString - getExecutorPathBytes() { - java.lang.Object ref = executorPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executorPath_ = 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 (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { - output.writeEnum(1, applicationType_); - } - if (!getMainApplicationFileBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mainApplicationFile_); - } - if (!getMainClassBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mainClass_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetSparkConf(), - SparkConfDefaultEntryHolder.defaultEntry, - 4); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetHadoopConf(), - HadoopConfDefaultEntryHolder.defaultEntry, - 5); - if (!getExecutorPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, executorPath_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, applicationType_); - } - if (!getMainApplicationFileBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mainApplicationFile_); - } - if (!getMainClassBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mainClass_); - } - for (java.util.Map.Entry entry - : internalGetSparkConf().getMap().entrySet()) { - com.google.protobuf.MapEntry - sparkConf__ = SparkConfDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, sparkConf__); - } - for (java.util.Map.Entry entry - : internalGetHadoopConf().getMap().entrySet()) { - com.google.protobuf.MapEntry - hadoopConf__ = HadoopConfDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, hadoopConf__); - } - if (!getExecutorPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, executorPath_); - } - 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 flyteidl.plugins.Spark.SparkJob)) { - return super.equals(obj); - } - flyteidl.plugins.Spark.SparkJob other = (flyteidl.plugins.Spark.SparkJob) obj; - - if (applicationType_ != other.applicationType_) return false; - if (!getMainApplicationFile() - .equals(other.getMainApplicationFile())) return false; - if (!getMainClass() - .equals(other.getMainClass())) return false; - if (!internalGetSparkConf().equals( - other.internalGetSparkConf())) return false; - if (!internalGetHadoopConf().equals( - other.internalGetHadoopConf())) return false; - if (!getExecutorPath() - .equals(other.getExecutorPath())) 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) + APPLICATIONTYPE_FIELD_NUMBER; - hash = (53 * hash) + applicationType_; - hash = (37 * hash) + MAINAPPLICATIONFILE_FIELD_NUMBER; - hash = (53 * hash) + getMainApplicationFile().hashCode(); - hash = (37 * hash) + MAINCLASS_FIELD_NUMBER; - hash = (53 * hash) + getMainClass().hashCode(); - if (!internalGetSparkConf().getMap().isEmpty()) { - hash = (37 * hash) + SPARKCONF_FIELD_NUMBER; - hash = (53 * hash) + internalGetSparkConf().hashCode(); - } - if (!internalGetHadoopConf().getMap().isEmpty()) { - hash = (37 * hash) + HADOOPCONF_FIELD_NUMBER; - hash = (53 * hash) + internalGetHadoopConf().hashCode(); - } - hash = (37 * hash) + EXECUTORPATH_FIELD_NUMBER; - hash = (53 * hash) + getExecutorPath().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Spark.SparkJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkJob 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 flyteidl.plugins.Spark.SparkJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkJob 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 flyteidl.plugins.Spark.SparkJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkJob 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(flyteidl.plugins.Spark.SparkJob 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; - } - /** - *
-     * Custom Proto for Spark Plugin.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.SparkJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkJob) - flyteidl.plugins.Spark.SparkJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetSparkConf(); - case 5: - return internalGetHadoopConf(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableSparkConf(); - case 5: - return internalGetMutableHadoopConf(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); - } - - // Construct using flyteidl.plugins.Spark.SparkJob.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(); - applicationType_ = 0; - - mainApplicationFile_ = ""; - - mainClass_ = ""; - - internalGetMutableSparkConf().clear(); - internalGetMutableHadoopConf().clear(); - executorPath_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkJob getDefaultInstanceForType() { - return flyteidl.plugins.Spark.SparkJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkJob build() { - flyteidl.plugins.Spark.SparkJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkJob buildPartial() { - flyteidl.plugins.Spark.SparkJob result = new flyteidl.plugins.Spark.SparkJob(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.applicationType_ = applicationType_; - result.mainApplicationFile_ = mainApplicationFile_; - result.mainClass_ = mainClass_; - result.sparkConf_ = internalGetSparkConf(); - result.sparkConf_.makeImmutable(); - result.hadoopConf_ = internalGetHadoopConf(); - result.hadoopConf_.makeImmutable(); - result.executorPath_ = executorPath_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.plugins.Spark.SparkJob) { - return mergeFrom((flyteidl.plugins.Spark.SparkJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Spark.SparkJob other) { - if (other == flyteidl.plugins.Spark.SparkJob.getDefaultInstance()) return this; - if (other.applicationType_ != 0) { - setApplicationTypeValue(other.getApplicationTypeValue()); - } - if (!other.getMainApplicationFile().isEmpty()) { - mainApplicationFile_ = other.mainApplicationFile_; - onChanged(); - } - if (!other.getMainClass().isEmpty()) { - mainClass_ = other.mainClass_; - onChanged(); - } - internalGetMutableSparkConf().mergeFrom( - other.internalGetSparkConf()); - internalGetMutableHadoopConf().mergeFrom( - other.internalGetHadoopConf()); - if (!other.getExecutorPath().isEmpty()) { - executorPath_ = other.executorPath_; - 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 { - flyteidl.plugins.Spark.SparkJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Spark.SparkJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int applicationType_ = 0; - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public int getApplicationTypeValue() { - return applicationType_; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public Builder setApplicationTypeValue(int value) { - applicationType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); - return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public Builder setApplicationType(flyteidl.plugins.Spark.SparkApplication.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - applicationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public Builder clearApplicationType() { - - applicationType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object mainApplicationFile_ = ""; - /** - * string mainApplicationFile = 2; - */ - public java.lang.String getMainApplicationFile() { - java.lang.Object ref = mainApplicationFile_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainApplicationFile_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string mainApplicationFile = 2; - */ - public com.google.protobuf.ByteString - getMainApplicationFileBytes() { - java.lang.Object ref = mainApplicationFile_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mainApplicationFile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string mainApplicationFile = 2; - */ - public Builder setMainApplicationFile( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mainApplicationFile_ = value; - onChanged(); - return this; - } - /** - * string mainApplicationFile = 2; - */ - public Builder clearMainApplicationFile() { - - mainApplicationFile_ = getDefaultInstance().getMainApplicationFile(); - onChanged(); - return this; - } - /** - * string mainApplicationFile = 2; - */ - public Builder setMainApplicationFileBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mainApplicationFile_ = value; - onChanged(); - return this; - } - - private java.lang.Object mainClass_ = ""; - /** - * string mainClass = 3; - */ - public java.lang.String getMainClass() { - java.lang.Object ref = mainClass_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainClass_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string mainClass = 3; - */ - public com.google.protobuf.ByteString - getMainClassBytes() { - java.lang.Object ref = mainClass_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mainClass_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string mainClass = 3; - */ - public Builder setMainClass( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mainClass_ = value; - onChanged(); - return this; - } - /** - * string mainClass = 3; - */ - public Builder clearMainClass() { - - mainClass_ = getDefaultInstance().getMainClass(); - onChanged(); - return this; - } - /** - * string mainClass = 3; - */ - public Builder setMainClassBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mainClass_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> sparkConf_; - private com.google.protobuf.MapField - internalGetSparkConf() { - if (sparkConf_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SparkConfDefaultEntryHolder.defaultEntry); - } - return sparkConf_; - } - private com.google.protobuf.MapField - internalGetMutableSparkConf() { - onChanged();; - if (sparkConf_ == null) { - sparkConf_ = com.google.protobuf.MapField.newMapField( - SparkConfDefaultEntryHolder.defaultEntry); - } - if (!sparkConf_.isMutable()) { - sparkConf_ = sparkConf_.copy(); - } - return sparkConf_; - } - - public int getSparkConfCount() { - return internalGetSparkConf().getMap().size(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public boolean containsSparkConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetSparkConf().getMap().containsKey(key); - } - /** - * Use {@link #getSparkConfMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getSparkConf() { - return getSparkConfMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.util.Map getSparkConfMap() { - return internalGetSparkConf().getMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.lang.String getSparkConfOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSparkConf().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.lang.String getSparkConfOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSparkConf().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSparkConf() { - internalGetMutableSparkConf().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> sparkConf = 4; - */ - - public Builder removeSparkConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableSparkConf().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableSparkConf() { - return internalGetMutableSparkConf().getMutableMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - public Builder putSparkConf( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableSparkConf().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, string> sparkConf = 4; - */ - - public Builder putAllSparkConf( - java.util.Map values) { - internalGetMutableSparkConf().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> hadoopConf_; - private com.google.protobuf.MapField - internalGetHadoopConf() { - if (hadoopConf_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HadoopConfDefaultEntryHolder.defaultEntry); - } - return hadoopConf_; - } - private com.google.protobuf.MapField - internalGetMutableHadoopConf() { - onChanged();; - if (hadoopConf_ == null) { - hadoopConf_ = com.google.protobuf.MapField.newMapField( - HadoopConfDefaultEntryHolder.defaultEntry); - } - if (!hadoopConf_.isMutable()) { - hadoopConf_ = hadoopConf_.copy(); - } - return hadoopConf_; - } - - public int getHadoopConfCount() { - return internalGetHadoopConf().getMap().size(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public boolean containsHadoopConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetHadoopConf().getMap().containsKey(key); - } - /** - * Use {@link #getHadoopConfMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getHadoopConf() { - return getHadoopConfMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.util.Map getHadoopConfMap() { - return internalGetHadoopConf().getMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.lang.String getHadoopConfOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHadoopConf().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.lang.String getHadoopConfOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHadoopConf().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearHadoopConf() { - internalGetMutableHadoopConf().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> hadoopConf = 5; - */ - - public Builder removeHadoopConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableHadoopConf().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableHadoopConf() { - return internalGetMutableHadoopConf().getMutableMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - public Builder putHadoopConf( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableHadoopConf().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, string> hadoopConf = 5; - */ - - public Builder putAllHadoopConf( - java.util.Map values) { - internalGetMutableHadoopConf().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object executorPath_ = ""; - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public java.lang.String getExecutorPath() { - java.lang.Object ref = executorPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executorPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public com.google.protobuf.ByteString - getExecutorPathBytes() { - java.lang.Object ref = executorPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executorPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public Builder setExecutorPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - executorPath_ = value; - onChanged(); - return this; - } - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public Builder clearExecutorPath() { - - executorPath_ = getDefaultInstance().getExecutorPath(); - onChanged(); - return this; - } - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public Builder setExecutorPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - executorPath_ = 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:flyteidl.plugins.SparkJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkJob) - private static final flyteidl.plugins.Spark.SparkJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkJob(); - } - - public static flyteidl.plugins.Spark.SparkJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkJob(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 flyteidl.plugins.Spark.SparkJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SparkApplication_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SparkJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_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\034flyteidl/plugins/spark.proto\022\020flyteidl" + - ".plugins\"B\n\020SparkApplication\".\n\004Type\022\n\n\006" + - "PYTHON\020\000\022\010\n\004JAVA\020\001\022\t\n\005SCALA\020\002\022\005\n\001R\020\003\"\365\002\n" + - "\010SparkJob\022@\n\017applicationType\030\001 \001(\0162\'.fly" + - "teidl.plugins.SparkApplication.Type\022\033\n\023m" + - "ainApplicationFile\030\002 \001(\t\022\021\n\tmainClass\030\003 " + - "\001(\t\022<\n\tsparkConf\030\004 \003(\0132).flyteidl.plugin" + - "s.SparkJob.SparkConfEntry\022>\n\nhadoopConf\030" + - "\005 \003(\0132*.flyteidl.plugins.SparkJob.Hadoop" + - "ConfEntry\022\024\n\014executorPath\030\006 \001(\t\0320\n\016Spark" + - "ConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\0321\n\017HadoopConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001B5Z3github.com/lyft/flyteidl" + - "/gen/pb-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_SparkApplication_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SparkApplication_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_plugins_SparkJob_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SparkJob_descriptor, - new java.lang.String[] { "ApplicationType", "MainApplicationFile", "MainClass", "SparkConf", "HadoopConf", "ExecutorPath", }); - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor = - internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor = - internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(1); - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/Tensorflow.java b/gen/pb-java/flyteidl/plugins/Tensorflow.java deleted file mode 100644 index e8d80be10..000000000 --- a/gen/pb-java/flyteidl/plugins/Tensorflow.java +++ /dev/null @@ -1,705 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/tensorflow.proto - -package flyteidl.plugins; - -public final class Tensorflow { - private Tensorflow() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DistributedTensorflowTrainingTaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedTensorflowTrainingTask) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * number of worker, ps, chief replicas spawned in the cluster for this job
-     * 
- * - * int32 workers = 1; - */ - int getWorkers(); - - /** - *
-     * PS -> Parameter server
-     * 
- * - * int32 ps_replicas = 2; - */ - int getPsReplicas(); - - /** - * int32 chief_replicas = 3; - */ - int getChiefReplicas(); - } - /** - *
-   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
-   * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedTensorflowTrainingTask} - */ - public static final class DistributedTensorflowTrainingTask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedTensorflowTrainingTask) - DistributedTensorflowTrainingTaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use DistributedTensorflowTrainingTask.newBuilder() to construct. - private DistributedTensorflowTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributedTensorflowTrainingTask() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributedTensorflowTrainingTask( - 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 8: { - - workers_ = input.readInt32(); - break; - } - case 16: { - - psReplicas_ = input.readInt32(); - break; - } - case 24: { - - chiefReplicas_ = input.readInt32(); - 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 flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); - } - - public static final int WORKERS_FIELD_NUMBER = 1; - private int workers_; - /** - *
-     * number of worker, ps, chief replicas spawned in the cluster for this job
-     * 
- * - * int32 workers = 1; - */ - public int getWorkers() { - return workers_; - } - - public static final int PS_REPLICAS_FIELD_NUMBER = 2; - private int psReplicas_; - /** - *
-     * PS -> Parameter server
-     * 
- * - * int32 ps_replicas = 2; - */ - public int getPsReplicas() { - return psReplicas_; - } - - public static final int CHIEF_REPLICAS_FIELD_NUMBER = 3; - private int chiefReplicas_; - /** - * int32 chief_replicas = 3; - */ - public int getChiefReplicas() { - return chiefReplicas_; - } - - 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 (workers_ != 0) { - output.writeInt32(1, workers_); - } - if (psReplicas_ != 0) { - output.writeInt32(2, psReplicas_); - } - if (chiefReplicas_ != 0) { - output.writeInt32(3, chiefReplicas_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workers_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, workers_); - } - if (psReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, psReplicas_); - } - if (chiefReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, chiefReplicas_); - } - 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask)) { - return super.equals(obj); - } - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask other = (flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) obj; - - if (getWorkers() - != other.getWorkers()) return false; - if (getPsReplicas() - != other.getPsReplicas()) return false; - if (getChiefReplicas() - != other.getChiefReplicas()) 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) + WORKERS_FIELD_NUMBER; - hash = (53 * hash) + getWorkers(); - hash = (37 * hash) + PS_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getPsReplicas(); - hash = (37 * hash) + CHIEF_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getChiefReplicas(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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(flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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; - } - /** - *
-     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
-     * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedTensorflowTrainingTask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedTensorflowTrainingTask) - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); - } - - // Construct using flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.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(); - workers_ = 0; - - psReplicas_ = 0; - - chiefReplicas_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { - return flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask build() { - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask buildPartial() { - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask result = new flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask(this); - result.workers_ = workers_; - result.psReplicas_ = psReplicas_; - result.chiefReplicas_ = chiefReplicas_; - 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) { - return mergeFrom((flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask other) { - if (other == flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance()) return this; - if (other.getWorkers() != 0) { - setWorkers(other.getWorkers()); - } - if (other.getPsReplicas() != 0) { - setPsReplicas(other.getPsReplicas()); - } - if (other.getChiefReplicas() != 0) { - setChiefReplicas(other.getChiefReplicas()); - } - 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 { - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int workers_ ; - /** - *
-       * number of worker, ps, chief replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public int getWorkers() { - return workers_; - } - /** - *
-       * number of worker, ps, chief replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public Builder setWorkers(int value) { - - workers_ = value; - onChanged(); - return this; - } - /** - *
-       * number of worker, ps, chief replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public Builder clearWorkers() { - - workers_ = 0; - onChanged(); - return this; - } - - private int psReplicas_ ; - /** - *
-       * PS -> Parameter server
-       * 
- * - * int32 ps_replicas = 2; - */ - public int getPsReplicas() { - return psReplicas_; - } - /** - *
-       * PS -> Parameter server
-       * 
- * - * int32 ps_replicas = 2; - */ - public Builder setPsReplicas(int value) { - - psReplicas_ = value; - onChanged(); - return this; - } - /** - *
-       * PS -> Parameter server
-       * 
- * - * int32 ps_replicas = 2; - */ - public Builder clearPsReplicas() { - - psReplicas_ = 0; - onChanged(); - return this; - } - - private int chiefReplicas_ ; - /** - * int32 chief_replicas = 3; - */ - public int getChiefReplicas() { - return chiefReplicas_; - } - /** - * int32 chief_replicas = 3; - */ - public Builder setChiefReplicas(int value) { - - chiefReplicas_ = value; - onChanged(); - return this; - } - /** - * int32 chief_replicas = 3; - */ - public Builder clearChiefReplicas() { - - chiefReplicas_ = 0; - 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:flyteidl.plugins.DistributedTensorflowTrainingTask) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedTensorflowTrainingTask) - private static final flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask(); - } - - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributedTensorflowTrainingTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributedTensorflowTrainingTask(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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_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!flyteidl/plugins/tensorflow.proto\022\020fly" + - "teidl.plugins\"a\n!DistributedTensorflowTr" + - "ainingTask\022\017\n\007workers\030\001 \001(\005\022\023\n\013ps_replic" + - "as\030\002 \001(\005\022\026\n\016chief_replicas\030\003 \001(\005B5Z3gith" + - "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" + - "pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor, - new java.lang.String[] { "Workers", "PsReplicas", "ChiefReplicas", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java b/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java deleted file mode 100644 index 775bfea76..000000000 --- a/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java +++ /dev/null @@ -1,911 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/waitable.proto - -package flyteidl.plugins; - -public final class WaitableOuterClass { - private WaitableOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WaitableOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.Waitable) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - boolean hasWfExecId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder(); - - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - int getPhaseValue(); - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); - - /** - * string workflow_id = 3; - */ - java.lang.String getWorkflowId(); - /** - * string workflow_id = 3; - */ - com.google.protobuf.ByteString - getWorkflowIdBytes(); - } - /** - *
-   * Represents an Execution that was launched and could be waited on.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.Waitable} - */ - public static final class Waitable extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.Waitable) - WaitableOrBuilder { - private static final long serialVersionUID = 0L; - // Use Waitable.newBuilder() to construct. - private Waitable(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Waitable() { - phase_ = 0; - workflowId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Waitable( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (wfExecId_ != null) { - subBuilder = wfExecId_.toBuilder(); - } - wfExecId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(wfExecId_); - wfExecId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - workflowId_ = 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 flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); - } - - public static final int WF_EXEC_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public boolean hasWfExecId() { - return wfExecId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { - return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { - return getWfExecId(); - } - - public static final int PHASE_FIELD_NUMBER = 2; - private int phase_; - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - - public static final int WORKFLOW_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object workflowId_; - /** - * string workflow_id = 3; - */ - public java.lang.String getWorkflowId() { - java.lang.Object ref = workflowId_; - 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(); - workflowId_ = s; - return s; - } - } - /** - * string workflow_id = 3; - */ - public com.google.protobuf.ByteString - getWorkflowIdBytes() { - java.lang.Object ref = workflowId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflowId_ = 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 (wfExecId_ != null) { - output.writeMessage(1, getWfExecId()); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(2, phase_); - } - if (!getWorkflowIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (wfExecId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWfExecId()); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, phase_); - } - if (!getWorkflowIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_); - } - 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 flyteidl.plugins.WaitableOuterClass.Waitable)) { - return super.equals(obj); - } - flyteidl.plugins.WaitableOuterClass.Waitable other = (flyteidl.plugins.WaitableOuterClass.Waitable) obj; - - if (hasWfExecId() != other.hasWfExecId()) return false; - if (hasWfExecId()) { - if (!getWfExecId() - .equals(other.getWfExecId())) return false; - } - if (phase_ != other.phase_) return false; - if (!getWorkflowId() - .equals(other.getWorkflowId())) 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 (hasWfExecId()) { - hash = (37 * hash) + WF_EXEC_ID_FIELD_NUMBER; - hash = (53 * hash) + getWfExecId().hashCode(); - } - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable 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 flyteidl.plugins.WaitableOuterClass.Waitable parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable 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 flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable 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(flyteidl.plugins.WaitableOuterClass.Waitable 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; - } - /** - *
-     * Represents an Execution that was launched and could be waited on.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.Waitable} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.Waitable) - flyteidl.plugins.WaitableOuterClass.WaitableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); - } - - // Construct using flyteidl.plugins.WaitableOuterClass.Waitable.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 (wfExecIdBuilder_ == null) { - wfExecId_ = null; - } else { - wfExecId_ = null; - wfExecIdBuilder_ = null; - } - phase_ = 0; - - workflowId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { - return flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.WaitableOuterClass.Waitable build() { - flyteidl.plugins.WaitableOuterClass.Waitable result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.WaitableOuterClass.Waitable buildPartial() { - flyteidl.plugins.WaitableOuterClass.Waitable result = new flyteidl.plugins.WaitableOuterClass.Waitable(this); - if (wfExecIdBuilder_ == null) { - result.wfExecId_ = wfExecId_; - } else { - result.wfExecId_ = wfExecIdBuilder_.build(); - } - result.phase_ = phase_; - result.workflowId_ = workflowId_; - 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 flyteidl.plugins.WaitableOuterClass.Waitable) { - return mergeFrom((flyteidl.plugins.WaitableOuterClass.Waitable)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.WaitableOuterClass.Waitable other) { - if (other == flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance()) return this; - if (other.hasWfExecId()) { - mergeWfExecId(other.getWfExecId()); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (!other.getWorkflowId().isEmpty()) { - workflowId_ = other.workflowId_; - 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 { - flyteidl.plugins.WaitableOuterClass.Waitable parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.WaitableOuterClass.Waitable) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> wfExecIdBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public boolean hasWfExecId() { - return wfExecIdBuilder_ != null || wfExecId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { - if (wfExecIdBuilder_ == null) { - return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; - } else { - return wfExecIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public Builder setWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (wfExecIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - wfExecId_ = value; - onChanged(); - } else { - wfExecIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public Builder setWfExecId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (wfExecIdBuilder_ == null) { - wfExecId_ = builderForValue.build(); - onChanged(); - } else { - wfExecIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public Builder mergeWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (wfExecIdBuilder_ == null) { - if (wfExecId_ != null) { - wfExecId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(wfExecId_).mergeFrom(value).buildPartial(); - } else { - wfExecId_ = value; - } - onChanged(); - } else { - wfExecIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public Builder clearWfExecId() { - if (wfExecIdBuilder_ == null) { - wfExecId_ = null; - onChanged(); - } else { - wfExecId_ = null; - wfExecIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWfExecIdBuilder() { - - onChanged(); - return getWfExecIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { - if (wfExecIdBuilder_ != null) { - return wfExecIdBuilder_.getMessageOrBuilder(); - } else { - return wfExecId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getWfExecIdFieldBuilder() { - if (wfExecIdBuilder_ == null) { - wfExecIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getWfExecId(), - getParentForChildren(), - isClean()); - wfExecId_ = null; - } - return wfExecIdBuilder_; - } - - private int phase_ = 0; - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private java.lang.Object workflowId_ = ""; - /** - * string workflow_id = 3; - */ - public java.lang.String getWorkflowId() { - java.lang.Object ref = workflowId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflowId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string workflow_id = 3; - */ - public com.google.protobuf.ByteString - getWorkflowIdBytes() { - java.lang.Object ref = workflowId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflowId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string workflow_id = 3; - */ - public Builder setWorkflowId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflowId_ = value; - onChanged(); - return this; - } - /** - * string workflow_id = 3; - */ - public Builder clearWorkflowId() { - - workflowId_ = getDefaultInstance().getWorkflowId(); - onChanged(); - return this; - } - /** - * string workflow_id = 3; - */ - public Builder setWorkflowIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflowId_ = 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:flyteidl.plugins.Waitable) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.Waitable) - private static final flyteidl.plugins.WaitableOuterClass.Waitable DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.WaitableOuterClass.Waitable(); - } - - public static flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Waitable parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Waitable(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 flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_Waitable_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_Waitable_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\037flyteidl/plugins/waitable.proto\022\020flyte" + - "idl.plugins\032\035flyteidl/core/execution.pro" + - "to\032\036flyteidl/core/identifier.proto\"\226\001\n\010W" + - "aitable\022>\n\nwf_exec_id\030\001 \001(\0132*.flyteidl.c" + - "ore.WorkflowExecutionIdentifier\0225\n\005phase" + - "\030\002 \001(\0162&.flyteidl.core.WorkflowExecution" + - ".Phase\022\023\n\013workflow_id\030\003 \001(\tB5Z3github.co" + - "m/lyft/flyteidl/gen/pb-go/flyteidl/plugi" + - "nsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_Waitable_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_Waitable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_Waitable_descriptor, - new java.lang.String[] { "WfExecId", "Phase", "WorkflowId", }); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java deleted file mode 100644 index 87ed539e5..000000000 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ /dev/null @@ -1,2824 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpo_job.proto - -package flyteidl.plugins.sagemaker; - -public final class HpoJob { - private HpoJob() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface HyperparameterTuningObjectiveOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - int getObjectiveTypeValue(); - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); - - /** - * string metric_name = 2; - */ - java.lang.String getMetricName(); - /** - * string metric_name = 2; - */ - com.google.protobuf.ByteString - getMetricNameBytes(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} - */ - public static final class HyperparameterTuningObjective extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - HyperparameterTuningObjectiveOrBuilder { - private static final long serialVersionUID = 0L; - // Use HyperparameterTuningObjective.newBuilder() to construct. - private HyperparameterTuningObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HyperparameterTuningObjective() { - objectiveType_ = 0; - metricName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HyperparameterTuningObjective( - 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 8: { - int rawValue = input.readEnum(); - - objectiveType_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - metricName_ = 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType} - */ - public enum HyperparameterTuningObjectiveType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * MINIMIZE = 0; - */ - MINIMIZE(0), - /** - * MAXIMIZE = 1; - */ - MAXIMIZE(1), - UNRECOGNIZED(-1), - ; - - /** - * MINIMIZE = 0; - */ - public static final int MINIMIZE_VALUE = 0; - /** - * MAXIMIZE = 1; - */ - public static final int MAXIMIZE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HyperparameterTuningObjectiveType valueOf(int value) { - return forNumber(value); - } - - public static HyperparameterTuningObjectiveType forNumber(int value) { - switch (value) { - case 0: return MINIMIZE; - case 1: return MAXIMIZE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HyperparameterTuningObjectiveType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HyperparameterTuningObjectiveType findValueByNumber(int number) { - return HyperparameterTuningObjectiveType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0); - } - - private static final HyperparameterTuningObjectiveType[] VALUES = values(); - - public static HyperparameterTuningObjectiveType 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 HyperparameterTuningObjectiveType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType) - } - - public static final int OBJECTIVE_TYPE_FIELD_NUMBER = 1; - private int objectiveType_; - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public int getObjectiveTypeValue() { - return objectiveType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; - } - - public static final int METRIC_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object metricName_; - /** - * string metric_name = 2; - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - 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(); - metricName_ = s; - return s; - } - } - /** - * string metric_name = 2; - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = 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 (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { - output.writeEnum(1, objectiveType_); - } - if (!getMetricNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, objectiveType_); - } - if (!getMetricNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricName_); - } - 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) obj; - - if (objectiveType_ != other.objectiveType_) return false; - if (!getMetricName() - .equals(other.getMetricName())) 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) + OBJECTIVE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + objectiveType_; - hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HyperparameterTuningObjective} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.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(); - objectiveType_ = 0; - - metricName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective build() { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective buildPartial() { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(this); - result.objectiveType_ = objectiveType_; - result.metricName_ = metricName_; - 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) { - return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other) { - if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance()) return this; - if (other.objectiveType_ != 0) { - setObjectiveTypeValue(other.getObjectiveTypeValue()); - } - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - 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 { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int objectiveType_ = 0; - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public int getObjectiveTypeValue() { - return objectiveType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public Builder setObjectiveTypeValue(int value) { - objectiveType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public Builder setObjectiveType(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) { - if (value == null) { - throw new NullPointerException(); - } - - objectiveType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public Builder clearObjectiveType() { - - objectiveType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object metricName_ = ""; - /** - * string metric_name = 2; - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string metric_name = 2; - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string metric_name = 2; - */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metricName_ = value; - onChanged(); - return this; - } - /** - * string metric_name = 2; - */ - public Builder clearMetricName() { - - metricName_ = getDefaultInstance().getMetricName(); - onChanged(); - return this; - } - /** - * string metric_name = 2; - */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metricName_ = 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:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(); - } - - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HyperparameterTuningObjective parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HyperparameterTuningObjective(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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HPOJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - boolean hasTrainingJob(); - /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob(); - /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder(); - - /** - * int64 max_number_of_training_jobs = 2; - */ - long getMaxNumberOfTrainingJobs(); - - /** - * int64 max_parallel_training_jobs = 3; - */ - long getMaxParallelTrainingJobs(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJob} - */ - public static final class HPOJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJob) - HPOJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use HPOJob.newBuilder() to construct. - private HPOJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HPOJob() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HPOJob( - 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: { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder subBuilder = null; - if (trainingJob_ != null) { - subBuilder = trainingJob_.toBuilder(); - } - trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trainingJob_); - trainingJob_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - maxNumberOfTrainingJobs_ = input.readInt64(); - break; - } - case 24: { - - maxParallelTrainingJobs_ = 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class); - } - - public static final int TRAINING_JOB_FIELD_NUMBER = 1; - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; - /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public boolean hasTrainingJob() { - return trainingJob_ != null; - } - /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { - return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; - } - /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { - return getTrainingJob(); - } - - public static final int MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER = 2; - private long maxNumberOfTrainingJobs_; - /** - * int64 max_number_of_training_jobs = 2; - */ - public long getMaxNumberOfTrainingJobs() { - return maxNumberOfTrainingJobs_; - } - - public static final int MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER = 3; - private long maxParallelTrainingJobs_; - /** - * int64 max_parallel_training_jobs = 3; - */ - public long getMaxParallelTrainingJobs() { - return maxParallelTrainingJobs_; - } - - 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 (trainingJob_ != null) { - output.writeMessage(1, getTrainingJob()); - } - if (maxNumberOfTrainingJobs_ != 0L) { - output.writeInt64(2, maxNumberOfTrainingJobs_); - } - if (maxParallelTrainingJobs_ != 0L) { - output.writeInt64(3, maxParallelTrainingJobs_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (trainingJob_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTrainingJob()); - } - if (maxNumberOfTrainingJobs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxNumberOfTrainingJobs_); - } - if (maxParallelTrainingJobs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, maxParallelTrainingJobs_); - } - 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.HpoJob.HPOJob other = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) obj; - - if (hasTrainingJob() != other.hasTrainingJob()) return false; - if (hasTrainingJob()) { - if (!getTrainingJob() - .equals(other.getTrainingJob())) return false; - } - if (getMaxNumberOfTrainingJobs() - != other.getMaxNumberOfTrainingJobs()) return false; - if (getMaxParallelTrainingJobs() - != other.getMaxParallelTrainingJobs()) 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 (hasTrainingJob()) { - hash = (37 * hash) + TRAINING_JOB_FIELD_NUMBER; - hash = (53 * hash) + getTrainingJob().hashCode(); - } - hash = (37 * hash) + MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxNumberOfTrainingJobs()); - hash = (37 * hash) + MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxParallelTrainingJobs()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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(flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.HPOJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJob) - flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJob.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 (trainingJobBuilder_ == null) { - trainingJob_ = null; - } else { - trainingJob_ = null; - trainingJobBuilder_ = null; - } - maxNumberOfTrainingJobs_ = 0L; - - maxParallelTrainingJobs_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJob build() { - flyteidl.plugins.sagemaker.HpoJob.HPOJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJob buildPartial() { - flyteidl.plugins.sagemaker.HpoJob.HPOJob result = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(this); - if (trainingJobBuilder_ == null) { - result.trainingJob_ = trainingJob_; - } else { - result.trainingJob_ = trainingJobBuilder_.build(); - } - result.maxNumberOfTrainingJobs_ = maxNumberOfTrainingJobs_; - result.maxParallelTrainingJobs_ = maxParallelTrainingJobs_; - 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob) { - return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJob other) { - if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance()) return this; - if (other.hasTrainingJob()) { - mergeTrainingJob(other.getTrainingJob()); - } - if (other.getMaxNumberOfTrainingJobs() != 0L) { - setMaxNumberOfTrainingJobs(other.getMaxNumberOfTrainingJobs()); - } - if (other.getMaxParallelTrainingJobs() != 0L) { - setMaxParallelTrainingJobs(other.getMaxParallelTrainingJobs()); - } - 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 { - flyteidl.plugins.sagemaker.HpoJob.HPOJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> trainingJobBuilder_; - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public boolean hasTrainingJob() { - return trainingJobBuilder_ != null || trainingJob_ != null; - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { - if (trainingJobBuilder_ == null) { - return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; - } else { - return trainingJobBuilder_.getMessage(); - } - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public Builder setTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { - if (trainingJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trainingJob_ = value; - onChanged(); - } else { - trainingJobBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public Builder setTrainingJob( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder builderForValue) { - if (trainingJobBuilder_ == null) { - trainingJob_ = builderForValue.build(); - onChanged(); - } else { - trainingJobBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { - if (trainingJobBuilder_ == null) { - if (trainingJob_ != null) { - trainingJob_ = - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); - } else { - trainingJob_ = value; - } - onChanged(); - } else { - trainingJobBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public Builder clearTrainingJob() { - if (trainingJobBuilder_ == null) { - trainingJob_ = null; - onChanged(); - } else { - trainingJob_ = null; - trainingJobBuilder_ = null; - } - - return this; - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder getTrainingJobBuilder() { - - onChanged(); - return getTrainingJobFieldBuilder().getBuilder(); - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { - if (trainingJobBuilder_ != null) { - return trainingJobBuilder_.getMessageOrBuilder(); - } else { - return trainingJob_ == null ? - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; - } - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> - getTrainingJobFieldBuilder() { - if (trainingJobBuilder_ == null) { - trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder>( - getTrainingJob(), - getParentForChildren(), - isClean()); - trainingJob_ = null; - } - return trainingJobBuilder_; - } - - private long maxNumberOfTrainingJobs_ ; - /** - * int64 max_number_of_training_jobs = 2; - */ - public long getMaxNumberOfTrainingJobs() { - return maxNumberOfTrainingJobs_; - } - /** - * int64 max_number_of_training_jobs = 2; - */ - public Builder setMaxNumberOfTrainingJobs(long value) { - - maxNumberOfTrainingJobs_ = value; - onChanged(); - return this; - } - /** - * int64 max_number_of_training_jobs = 2; - */ - public Builder clearMaxNumberOfTrainingJobs() { - - maxNumberOfTrainingJobs_ = 0L; - onChanged(); - return this; - } - - private long maxParallelTrainingJobs_ ; - /** - * int64 max_parallel_training_jobs = 3; - */ - public long getMaxParallelTrainingJobs() { - return maxParallelTrainingJobs_; - } - /** - * int64 max_parallel_training_jobs = 3; - */ - public Builder setMaxParallelTrainingJobs(long value) { - - maxParallelTrainingJobs_ = value; - onChanged(); - return this; - } - /** - * int64 max_parallel_training_jobs = 3; - */ - public Builder clearMaxParallelTrainingJobs() { - - maxParallelTrainingJobs_ = 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:flyteidl.plugins.sagemaker.HPOJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) - private static final flyteidl.plugins.sagemaker.HpoJob.HPOJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(); - } - - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HPOJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HPOJob(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 flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HPOJobConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJobConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - boolean hasHyperparameterRanges(); - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges(); - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - int getTuningStrategyValue(); - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy(); - - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - boolean hasTuningObjective(); - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective(); - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - int getTrainingJobEarlyStoppingTypeValue(); - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobConfig} - */ - public static final class HPOJobConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJobConfig) - HPOJobConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use HPOJobConfig.newBuilder() to construct. - private HPOJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HPOJobConfig() { - tuningStrategy_ = 0; - trainingJobEarlyStoppingType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HPOJobConfig( - 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: { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder subBuilder = null; - if (hyperparameterRanges_ != null) { - subBuilder = hyperparameterRanges_.toBuilder(); - } - hyperparameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hyperparameterRanges_); - hyperparameterRanges_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - tuningStrategy_ = rawValue; - break; - } - case 26: { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder subBuilder = null; - if (tuningObjective_ != null) { - subBuilder = tuningObjective_.toBuilder(); - } - tuningObjective_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tuningObjective_); - tuningObjective_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - int rawValue = input.readEnum(); - - trainingJobEarlyStoppingType_ = rawValue; - 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy} - */ - public enum HyperparameterTuningStrategy - implements com.google.protobuf.ProtocolMessageEnum { - /** - * BAYESIAN = 0; - */ - BAYESIAN(0), - /** - * RANDOM = 1; - */ - RANDOM(1), - UNRECOGNIZED(-1), - ; - - /** - * BAYESIAN = 0; - */ - public static final int BAYESIAN_VALUE = 0; - /** - * RANDOM = 1; - */ - public static final int RANDOM_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HyperparameterTuningStrategy valueOf(int value) { - return forNumber(value); - } - - public static HyperparameterTuningStrategy forNumber(int value) { - switch (value) { - case 0: return BAYESIAN; - case 1: return RANDOM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HyperparameterTuningStrategy> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HyperparameterTuningStrategy findValueByNumber(int number) { - return HyperparameterTuningStrategy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final HyperparameterTuningStrategy[] VALUES = values(); - - public static HyperparameterTuningStrategy 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 HyperparameterTuningStrategy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy) - } - - /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType} - */ - public enum TrainingJobEarlyStoppingType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * OFF = 0; - */ - OFF(0), - /** - * AUTO = 1; - */ - AUTO(1), - UNRECOGNIZED(-1), - ; - - /** - * OFF = 0; - */ - public static final int OFF_VALUE = 0; - /** - * AUTO = 1; - */ - public static final int AUTO_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TrainingJobEarlyStoppingType valueOf(int value) { - return forNumber(value); - } - - public static TrainingJobEarlyStoppingType forNumber(int value) { - switch (value) { - case 0: return OFF; - case 1: return AUTO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TrainingJobEarlyStoppingType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TrainingJobEarlyStoppingType findValueByNumber(int number) { - return TrainingJobEarlyStoppingType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(1); - } - - private static final TrainingJobEarlyStoppingType[] VALUES = values(); - - public static TrainingJobEarlyStoppingType 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 TrainingJobEarlyStoppingType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType) - } - - public static final int HYPERPARAMETER_RANGES_FIELD_NUMBER = 1; - private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_; - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public boolean hasHyperparameterRanges() { - return hyperparameterRanges_ != null; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { - return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { - return getHyperparameterRanges(); - } - - public static final int TUNING_STRATEGY_FIELD_NUMBER = 2; - private int tuningStrategy_; - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public int getTuningStrategyValue() { - return tuningStrategy_; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result; - } - - public static final int TUNING_OBJECTIVE_FIELD_NUMBER = 3; - private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_; - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public boolean hasTuningObjective() { - return tuningObjective_ != null; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() { - return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { - return getTuningObjective(); - } - - public static final int TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER = 4; - private int trainingJobEarlyStoppingType_; - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public int getTrainingJobEarlyStoppingTypeValue() { - return trainingJobEarlyStoppingType_; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; - } - - 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 (hyperparameterRanges_ != null) { - output.writeMessage(1, getHyperparameterRanges()); - } - if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { - output.writeEnum(2, tuningStrategy_); - } - if (tuningObjective_ != null) { - output.writeMessage(3, getTuningObjective()); - } - if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) { - output.writeEnum(4, trainingJobEarlyStoppingType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (hyperparameterRanges_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHyperparameterRanges()); - } - if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, tuningStrategy_); - } - if (tuningObjective_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTuningObjective()); - } - if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, trainingJobEarlyStoppingType_); - } - 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) obj; - - if (hasHyperparameterRanges() != other.hasHyperparameterRanges()) return false; - if (hasHyperparameterRanges()) { - if (!getHyperparameterRanges() - .equals(other.getHyperparameterRanges())) return false; - } - if (tuningStrategy_ != other.tuningStrategy_) return false; - if (hasTuningObjective() != other.hasTuningObjective()) return false; - if (hasTuningObjective()) { - if (!getTuningObjective() - .equals(other.getTuningObjective())) return false; - } - if (trainingJobEarlyStoppingType_ != other.trainingJobEarlyStoppingType_) 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 (hasHyperparameterRanges()) { - hash = (37 * hash) + HYPERPARAMETER_RANGES_FIELD_NUMBER; - hash = (53 * hash) + getHyperparameterRanges().hashCode(); - } - hash = (37 * hash) + TUNING_STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + tuningStrategy_; - if (hasTuningObjective()) { - hash = (37 * hash) + TUNING_OBJECTIVE_FIELD_NUMBER; - hash = (53 * hash) + getTuningObjective().hashCode(); - } - hash = (37 * hash) + TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER; - hash = (53 * hash) + trainingJobEarlyStoppingType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HPOJobConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobConfig) - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.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 (hyperparameterRangesBuilder_ == null) { - hyperparameterRanges_ = null; - } else { - hyperparameterRanges_ = null; - hyperparameterRangesBuilder_ = null; - } - tuningStrategy_ = 0; - - if (tuningObjectiveBuilder_ == null) { - tuningObjective_ = null; - } else { - tuningObjective_ = null; - tuningObjectiveBuilder_ = null; - } - trainingJobEarlyStoppingType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig build() { - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig buildPartial() { - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(this); - if (hyperparameterRangesBuilder_ == null) { - result.hyperparameterRanges_ = hyperparameterRanges_; - } else { - result.hyperparameterRanges_ = hyperparameterRangesBuilder_.build(); - } - result.tuningStrategy_ = tuningStrategy_; - if (tuningObjectiveBuilder_ == null) { - result.tuningObjective_ = tuningObjective_; - } else { - result.tuningObjective_ = tuningObjectiveBuilder_.build(); - } - result.trainingJobEarlyStoppingType_ = trainingJobEarlyStoppingType_; - 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) { - return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other) { - if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance()) return this; - if (other.hasHyperparameterRanges()) { - mergeHyperparameterRanges(other.getHyperparameterRanges()); - } - if (other.tuningStrategy_ != 0) { - setTuningStrategyValue(other.getTuningStrategyValue()); - } - if (other.hasTuningObjective()) { - mergeTuningObjective(other.getTuningObjective()); - } - if (other.trainingJobEarlyStoppingType_ != 0) { - setTrainingJobEarlyStoppingTypeValue(other.getTrainingJobEarlyStoppingTypeValue()); - } - 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 { - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> hyperparameterRangesBuilder_; - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public boolean hasHyperparameterRanges() { - return hyperparameterRangesBuilder_ != null || hyperparameterRanges_ != null; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { - if (hyperparameterRangesBuilder_ == null) { - return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; - } else { - return hyperparameterRangesBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { - if (hyperparameterRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hyperparameterRanges_ = value; - onChanged(); - } else { - hyperparameterRangesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public Builder setHyperparameterRanges( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder builderForValue) { - if (hyperparameterRangesBuilder_ == null) { - hyperparameterRanges_ = builderForValue.build(); - onChanged(); - } else { - hyperparameterRangesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public Builder mergeHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { - if (hyperparameterRangesBuilder_ == null) { - if (hyperparameterRanges_ != null) { - hyperparameterRanges_ = - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.newBuilder(hyperparameterRanges_).mergeFrom(value).buildPartial(); - } else { - hyperparameterRanges_ = value; - } - onChanged(); - } else { - hyperparameterRangesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public Builder clearHyperparameterRanges() { - if (hyperparameterRangesBuilder_ == null) { - hyperparameterRanges_ = null; - onChanged(); - } else { - hyperparameterRanges_ = null; - hyperparameterRangesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder getHyperparameterRangesBuilder() { - - onChanged(); - return getHyperparameterRangesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { - if (hyperparameterRangesBuilder_ != null) { - return hyperparameterRangesBuilder_.getMessageOrBuilder(); - } else { - return hyperparameterRanges_ == null ? - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; - } - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> - getHyperparameterRangesFieldBuilder() { - if (hyperparameterRangesBuilder_ == null) { - hyperparameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder>( - getHyperparameterRanges(), - getParentForChildren(), - isClean()); - hyperparameterRanges_ = null; - } - return hyperparameterRangesBuilder_; - } - - private int tuningStrategy_ = 0; - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public int getTuningStrategyValue() { - return tuningStrategy_; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public Builder setTuningStrategyValue(int value) { - tuningStrategy_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy value) { - if (value == null) { - throw new NullPointerException(); - } - - tuningStrategy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public Builder clearTuningStrategy() { - - tuningStrategy_ = 0; - onChanged(); - return this; - } - - private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> tuningObjectiveBuilder_; - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public boolean hasTuningObjective() { - return tuningObjectiveBuilder_ != null || tuningObjective_ != null; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() { - if (tuningObjectiveBuilder_ == null) { - return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; - } else { - return tuningObjectiveBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public Builder setTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) { - if (tuningObjectiveBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tuningObjective_ = value; - onChanged(); - } else { - tuningObjectiveBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public Builder setTuningObjective( - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder builderForValue) { - if (tuningObjectiveBuilder_ == null) { - tuningObjective_ = builderForValue.build(); - onChanged(); - } else { - tuningObjectiveBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) { - if (tuningObjectiveBuilder_ == null) { - if (tuningObjective_ != null) { - tuningObjective_ = - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder(tuningObjective_).mergeFrom(value).buildPartial(); - } else { - tuningObjective_ = value; - } - onChanged(); - } else { - tuningObjectiveBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public Builder clearTuningObjective() { - if (tuningObjectiveBuilder_ == null) { - tuningObjective_ = null; - onChanged(); - } else { - tuningObjective_ = null; - tuningObjectiveBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder getTuningObjectiveBuilder() { - - onChanged(); - return getTuningObjectiveFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { - if (tuningObjectiveBuilder_ != null) { - return tuningObjectiveBuilder_.getMessageOrBuilder(); - } else { - return tuningObjective_ == null ? - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; - } - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> - getTuningObjectiveFieldBuilder() { - if (tuningObjectiveBuilder_ == null) { - tuningObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder>( - getTuningObjective(), - getParentForChildren(), - isClean()); - tuningObjective_ = null; - } - return tuningObjectiveBuilder_; - } - - private int trainingJobEarlyStoppingType_ = 0; - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public int getTrainingJobEarlyStoppingTypeValue() { - return trainingJobEarlyStoppingType_; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public Builder setTrainingJobEarlyStoppingTypeValue(int value) { - trainingJobEarlyStoppingType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType value) { - if (value == null) { - throw new NullPointerException(); - } - - trainingJobEarlyStoppingType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public Builder clearTrainingJobEarlyStoppingType() { - - trainingJobEarlyStoppingType_ = 0; - 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:flyteidl.plugins.sagemaker.HPOJobConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) - private static final flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(); - } - - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HPOJobConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HPOJobConfig(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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_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(flyteidl/plugins/sagemaker/hpo_job.pro" + - "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" + - "/plugins/sagemaker/parameter_ranges.prot" + - "o\032-flyteidl/plugins/sagemaker/training_j" + - "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" + - "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" + - "ugins.sagemaker.HyperparameterTuningObje" + - "ctive.HyperparameterTuningObjectiveType\022" + - "\023\n\013metric_name\030\002 \001(\t\"?\n!HyperparameterTu" + - "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" + - "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" + - ".flyteidl.plugins.sagemaker.TrainingJob\022" + - "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" + - "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" + - "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" + - "2+.flyteidl.plugins.sagemaker.ParameterR" + - "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" + - "l.plugins.sagemaker.HPOJobConfig.Hyperpa" + - "rameterTuningStrategy\022S\n\020tuning_objectiv" + - "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" + - "erparameterTuningObjective\022o\n training_j" + - "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." + - "plugins.sagemaker.HPOJobConfig.TrainingJ" + - "obEarlyStoppingType\"8\n\034HyperparameterTun" + - "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" + - "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" + - "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" + - "/pb-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(), - flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor, - new java.lang.String[] { "ObjectiveType", "MetricName", }); - internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor, - new java.lang.String[] { "TrainingJob", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", }); - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor, - new java.lang.String[] { "HyperparameterRanges", "TuningStrategy", "TuningObjective", "TrainingJobEarlyStoppingType", }); - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); - flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java deleted file mode 100644 index 85e2b73f0..000000000 --- a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java +++ /dev/null @@ -1,3973 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/parameter_ranges.proto - -package flyteidl.plugins.sagemaker; - -public final class ParameterRangesOuterClass { - private ParameterRangesOuterClass() {} - 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 flyteidl.plugins.sagemaker.HyperparameterScalingType} - */ - public enum HyperparameterScalingType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * AUTO = 0; - */ - AUTO(0), - /** - * LINEAR = 1; - */ - LINEAR(1), - /** - * LOGARITHMIC = 2; - */ - LOGARITHMIC(2), - /** - * REVERSELOGARITHMIC = 3; - */ - REVERSELOGARITHMIC(3), - UNRECOGNIZED(-1), - ; - - /** - * AUTO = 0; - */ - public static final int AUTO_VALUE = 0; - /** - * LINEAR = 1; - */ - public static final int LINEAR_VALUE = 1; - /** - * LOGARITHMIC = 2; - */ - public static final int LOGARITHMIC_VALUE = 2; - /** - * REVERSELOGARITHMIC = 3; - */ - public static final int REVERSELOGARITHMIC_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HyperparameterScalingType valueOf(int value) { - return forNumber(value); - } - - public static HyperparameterScalingType forNumber(int value) { - switch (value) { - case 0: return AUTO; - case 1: return LINEAR; - case 2: return LOGARITHMIC; - case 3: return REVERSELOGARITHMIC; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HyperparameterScalingType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HyperparameterScalingType findValueByNumber(int number) { - return HyperparameterScalingType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final HyperparameterScalingType[] VALUES = values(); - - public static HyperparameterScalingType 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 HyperparameterScalingType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) - } - - public interface ContinuousParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ContinuousParameterRange) - com.google.protobuf.MessageOrBuilder { - - /** - * double max_value = 1; - */ - double getMaxValue(); - - /** - * double min_value = 2; - */ - double getMinValue(); - - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - int getScalingTypeValue(); - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} - */ - public static final class ContinuousParameterRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) - ContinuousParameterRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use ContinuousParameterRange.newBuilder() to construct. - private ContinuousParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ContinuousParameterRange() { - scalingType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContinuousParameterRange( - 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 9: { - - maxValue_ = input.readDouble(); - break; - } - case 17: { - - minValue_ = input.readDouble(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - scalingType_ = rawValue; - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class); - } - - public static final int MAX_VALUE_FIELD_NUMBER = 1; - private double maxValue_; - /** - * double max_value = 1; - */ - public double getMaxValue() { - return maxValue_; - } - - public static final int MIN_VALUE_FIELD_NUMBER = 2; - private double minValue_; - /** - * double min_value = 2; - */ - public double getMinValue() { - return minValue_; - } - - public static final int SCALING_TYPE_FIELD_NUMBER = 3; - private int scalingType_; - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public int getScalingTypeValue() { - return scalingType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; - } - - 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 (maxValue_ != 0D) { - output.writeDouble(1, maxValue_); - } - if (minValue_ != 0D) { - output.writeDouble(2, minValue_); - } - if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { - output.writeEnum(3, scalingType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxValue_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, maxValue_); - } - if (minValue_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, minValue_); - } - if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, scalingType_); - } - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) obj; - - if (java.lang.Double.doubleToLongBits(getMaxValue()) - != java.lang.Double.doubleToLongBits( - other.getMaxValue())) return false; - if (java.lang.Double.doubleToLongBits(getMinValue()) - != java.lang.Double.doubleToLongBits( - other.getMinValue())) return false; - if (scalingType_ != other.scalingType_) 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) + MAX_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMaxValue())); - hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMinValue())); - hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; - hash = (53 * hash) + scalingType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ContinuousParameterRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.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(); - maxValue_ = 0D; - - minValue_ = 0D; - - scalingType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange build() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange buildPartial() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(this); - result.maxValue_ = maxValue_; - result.minValue_ = minValue_; - result.scalingType_ = scalingType_; - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) { - return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other) { - if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) return this; - if (other.getMaxValue() != 0D) { - setMaxValue(other.getMaxValue()); - } - if (other.getMinValue() != 0D) { - setMinValue(other.getMinValue()); - } - if (other.scalingType_ != 0) { - setScalingTypeValue(other.getScalingTypeValue()); - } - 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 { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private double maxValue_ ; - /** - * double max_value = 1; - */ - public double getMaxValue() { - return maxValue_; - } - /** - * double max_value = 1; - */ - public Builder setMaxValue(double value) { - - maxValue_ = value; - onChanged(); - return this; - } - /** - * double max_value = 1; - */ - public Builder clearMaxValue() { - - maxValue_ = 0D; - onChanged(); - return this; - } - - private double minValue_ ; - /** - * double min_value = 2; - */ - public double getMinValue() { - return minValue_; - } - /** - * double min_value = 2; - */ - public Builder setMinValue(double value) { - - minValue_ = value; - onChanged(); - return this; - } - /** - * double min_value = 2; - */ - public Builder clearMinValue() { - - minValue_ = 0D; - onChanged(); - return this; - } - - private int scalingType_ = 0; - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public int getScalingTypeValue() { - return scalingType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public Builder setScalingTypeValue(int value) { - scalingType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) { - if (value == null) { - throw new NullPointerException(); - } - - scalingType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public Builder clearScalingType() { - - scalingType_ = 0; - 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:flyteidl.plugins.sagemaker.ContinuousParameterRange) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) - private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(); - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContinuousParameterRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContinuousParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IntegerParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.IntegerParameterRange) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 max_value = 1; - */ - long getMaxValue(); - - /** - * int64 min_value = 2; - */ - long getMinValue(); - - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - int getScalingTypeValue(); - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} - */ - public static final class IntegerParameterRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) - IntegerParameterRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use IntegerParameterRange.newBuilder() to construct. - private IntegerParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IntegerParameterRange() { - scalingType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IntegerParameterRange( - 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 8: { - - maxValue_ = input.readInt64(); - break; - } - case 16: { - - minValue_ = input.readInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - scalingType_ = rawValue; - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class); - } - - public static final int MAX_VALUE_FIELD_NUMBER = 1; - private long maxValue_; - /** - * int64 max_value = 1; - */ - public long getMaxValue() { - return maxValue_; - } - - public static final int MIN_VALUE_FIELD_NUMBER = 2; - private long minValue_; - /** - * int64 min_value = 2; - */ - public long getMinValue() { - return minValue_; - } - - public static final int SCALING_TYPE_FIELD_NUMBER = 3; - private int scalingType_; - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public int getScalingTypeValue() { - return scalingType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; - } - - 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 (maxValue_ != 0L) { - output.writeInt64(1, maxValue_); - } - if (minValue_ != 0L) { - output.writeInt64(2, minValue_); - } - if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { - output.writeEnum(3, scalingType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxValue_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, maxValue_); - } - if (minValue_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, minValue_); - } - if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, scalingType_); - } - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) obj; - - if (getMaxValue() - != other.getMaxValue()) return false; - if (getMinValue() - != other.getMinValue()) return false; - if (scalingType_ != other.scalingType_) 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) + MAX_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxValue()); - hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinValue()); - hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; - hash = (53 * hash) + scalingType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.IntegerParameterRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.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(); - maxValue_ = 0L; - - minValue_ = 0L; - - scalingType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange build() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange buildPartial() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(this); - result.maxValue_ = maxValue_; - result.minValue_ = minValue_; - result.scalingType_ = scalingType_; - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) { - return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other) { - if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) return this; - if (other.getMaxValue() != 0L) { - setMaxValue(other.getMaxValue()); - } - if (other.getMinValue() != 0L) { - setMinValue(other.getMinValue()); - } - if (other.scalingType_ != 0) { - setScalingTypeValue(other.getScalingTypeValue()); - } - 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 { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long maxValue_ ; - /** - * int64 max_value = 1; - */ - public long getMaxValue() { - return maxValue_; - } - /** - * int64 max_value = 1; - */ - public Builder setMaxValue(long value) { - - maxValue_ = value; - onChanged(); - return this; - } - /** - * int64 max_value = 1; - */ - public Builder clearMaxValue() { - - maxValue_ = 0L; - onChanged(); - return this; - } - - private long minValue_ ; - /** - * int64 min_value = 2; - */ - public long getMinValue() { - return minValue_; - } - /** - * int64 min_value = 2; - */ - public Builder setMinValue(long value) { - - minValue_ = value; - onChanged(); - return this; - } - /** - * int64 min_value = 2; - */ - public Builder clearMinValue() { - - minValue_ = 0L; - onChanged(); - return this; - } - - private int scalingType_ = 0; - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public int getScalingTypeValue() { - return scalingType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public Builder setScalingTypeValue(int value) { - scalingType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) { - if (value == null) { - throw new NullPointerException(); - } - - scalingType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public Builder clearScalingType() { - - scalingType_ = 0; - 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:flyteidl.plugins.sagemaker.IntegerParameterRange) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) - private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(); - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IntegerParameterRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IntegerParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CategoricalParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.CategoricalParameterRange) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string values = 1; - */ - java.util.List - getValuesList(); - /** - * repeated string values = 1; - */ - int getValuesCount(); - /** - * repeated string values = 1; - */ - java.lang.String getValues(int index); - /** - * repeated string values = 1; - */ - com.google.protobuf.ByteString - getValuesBytes(int index); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} - */ - public static final class CategoricalParameterRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) - CategoricalParameterRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use CategoricalParameterRange.newBuilder() to construct. - private CategoricalParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CategoricalParameterRange() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CategoricalParameterRange( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add(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)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList values_; - /** - * repeated string values = 1; - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - * repeated string values = 1; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string values = 1; - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string values = 1; - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(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 < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) obj; - - if (!getValuesList() - .equals(other.getValuesList())) 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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.CategoricalParameterRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.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(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange build() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange buildPartial() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) { - return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other) { - if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - 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 { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string values = 1; - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * repeated string values = 1; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string values = 1; - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string values = 1; - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - * repeated string values = 1; - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(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:flyteidl.plugins.sagemaker.CategoricalParameterRange) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) - private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(); - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CategoricalParameterRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CategoricalParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParameterRangeOneOfOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - boolean hasContinuousParameterRange(); - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange(); - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - boolean hasIntegerParameterRange(); - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange(); - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - boolean hasCategoricalParameterRange(); - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange(); - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder(); - - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.ParameterRangeTypeCase getParameterRangeTypeCase(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf} - */ - public static final class ParameterRangeOneOf extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - ParameterRangeOneOfOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParameterRangeOneOf.newBuilder() to construct. - private ParameterRangeOneOf(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParameterRangeOneOf() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParameterRangeOneOf( - 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: { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder subBuilder = null; - if (parameterRangeTypeCase_ == 1) { - subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_).toBuilder(); - } - parameterRangeType_ = - input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); - parameterRangeType_ = subBuilder.buildPartial(); - } - parameterRangeTypeCase_ = 1; - break; - } - case 18: { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder subBuilder = null; - if (parameterRangeTypeCase_ == 2) { - subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_).toBuilder(); - } - parameterRangeType_ = - input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); - parameterRangeType_ = subBuilder.buildPartial(); - } - parameterRangeTypeCase_ = 2; - break; - } - case 26: { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder subBuilder = null; - if (parameterRangeTypeCase_ == 3) { - subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_).toBuilder(); - } - parameterRangeType_ = - input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); - parameterRangeType_ = subBuilder.buildPartial(); - } - parameterRangeTypeCase_ = 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class); - } - - private int parameterRangeTypeCase_ = 0; - private java.lang.Object parameterRangeType_; - public enum ParameterRangeTypeCase - implements com.google.protobuf.Internal.EnumLite { - CONTINUOUS_PARAMETER_RANGE(1), - INTEGER_PARAMETER_RANGE(2), - CATEGORICAL_PARAMETER_RANGE(3), - PARAMETERRANGETYPE_NOT_SET(0); - private final int value; - private ParameterRangeTypeCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ParameterRangeTypeCase valueOf(int value) { - return forNumber(value); - } - - public static ParameterRangeTypeCase forNumber(int value) { - switch (value) { - case 1: return CONTINUOUS_PARAMETER_RANGE; - case 2: return INTEGER_PARAMETER_RANGE; - case 3: return CATEGORICAL_PARAMETER_RANGE; - case 0: return PARAMETERRANGETYPE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ParameterRangeTypeCase - getParameterRangeTypeCase() { - return ParameterRangeTypeCase.forNumber( - parameterRangeTypeCase_); - } - - public static final int CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER = 1; - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public boolean hasContinuousParameterRange() { - return parameterRangeTypeCase_ == 1; - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() { - if (parameterRangeTypeCase_ == 1) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { - if (parameterRangeTypeCase_ == 1) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } - - public static final int INTEGER_PARAMETER_RANGE_FIELD_NUMBER = 2; - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public boolean hasIntegerParameterRange() { - return parameterRangeTypeCase_ == 2; - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() { - if (parameterRangeTypeCase_ == 2) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { - if (parameterRangeTypeCase_ == 2) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } - - public static final int CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER = 3; - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public boolean hasCategoricalParameterRange() { - return parameterRangeTypeCase_ == 3; - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() { - if (parameterRangeTypeCase_ == 3) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { - if (parameterRangeTypeCase_ == 3) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (parameterRangeTypeCase_ == 1) { - output.writeMessage(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); - } - if (parameterRangeTypeCase_ == 2) { - output.writeMessage(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); - } - if (parameterRangeTypeCase_ == 3) { - output.writeMessage(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (parameterRangeTypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); - } - if (parameterRangeTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); - } - if (parameterRangeTypeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); - } - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) obj; - - if (!getParameterRangeTypeCase().equals(other.getParameterRangeTypeCase())) return false; - switch (parameterRangeTypeCase_) { - case 1: - if (!getContinuousParameterRange() - .equals(other.getContinuousParameterRange())) return false; - break; - case 2: - if (!getIntegerParameterRange() - .equals(other.getIntegerParameterRange())) return false; - break; - case 3: - if (!getCategoricalParameterRange() - .equals(other.getCategoricalParameterRange())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (parameterRangeTypeCase_) { - case 1: - hash = (37 * hash) + CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getContinuousParameterRange().hashCode(); - break; - case 2: - hash = (37 * hash) + INTEGER_PARAMETER_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getIntegerParameterRange().hashCode(); - break; - case 3: - hash = (37 * hash) + CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getCategoricalParameterRange().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangeOneOf} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOfOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.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(); - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf build() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf buildPartial() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(this); - if (parameterRangeTypeCase_ == 1) { - if (continuousParameterRangeBuilder_ == null) { - result.parameterRangeType_ = parameterRangeType_; - } else { - result.parameterRangeType_ = continuousParameterRangeBuilder_.build(); - } - } - if (parameterRangeTypeCase_ == 2) { - if (integerParameterRangeBuilder_ == null) { - result.parameterRangeType_ = parameterRangeType_; - } else { - result.parameterRangeType_ = integerParameterRangeBuilder_.build(); - } - } - if (parameterRangeTypeCase_ == 3) { - if (categoricalParameterRangeBuilder_ == null) { - result.parameterRangeType_ = parameterRangeType_; - } else { - result.parameterRangeType_ = categoricalParameterRangeBuilder_.build(); - } - } - result.parameterRangeTypeCase_ = parameterRangeTypeCase_; - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) { - return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other) { - if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()) return this; - switch (other.getParameterRangeTypeCase()) { - case CONTINUOUS_PARAMETER_RANGE: { - mergeContinuousParameterRange(other.getContinuousParameterRange()); - break; - } - case INTEGER_PARAMETER_RANGE: { - mergeIntegerParameterRange(other.getIntegerParameterRange()); - break; - } - case CATEGORICAL_PARAMETER_RANGE: { - mergeCategoricalParameterRange(other.getCategoricalParameterRange()); - break; - } - case PARAMETERRANGETYPE_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 { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int parameterRangeTypeCase_ = 0; - private java.lang.Object parameterRangeType_; - public ParameterRangeTypeCase - getParameterRangeTypeCase() { - return ParameterRangeTypeCase.forNumber( - parameterRangeTypeCase_); - } - - public Builder clearParameterRangeType() { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> continuousParameterRangeBuilder_; - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public boolean hasContinuousParameterRange() { - return parameterRangeTypeCase_ == 1; - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() { - if (continuousParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 1) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } else { - if (parameterRangeTypeCase_ == 1) { - return continuousParameterRangeBuilder_.getMessage(); - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) { - if (continuousParameterRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parameterRangeType_ = value; - onChanged(); - } else { - continuousParameterRangeBuilder_.setMessage(value); - } - parameterRangeTypeCase_ = 1; - return this; - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public Builder setContinuousParameterRange( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder builderForValue) { - if (continuousParameterRangeBuilder_ == null) { - parameterRangeType_ = builderForValue.build(); - onChanged(); - } else { - continuousParameterRangeBuilder_.setMessage(builderForValue.build()); - } - parameterRangeTypeCase_ = 1; - return this; - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) { - if (continuousParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 1 && - parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) { - parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_) - .mergeFrom(value).buildPartial(); - } else { - parameterRangeType_ = value; - } - onChanged(); - } else { - if (parameterRangeTypeCase_ == 1) { - continuousParameterRangeBuilder_.mergeFrom(value); - } - continuousParameterRangeBuilder_.setMessage(value); - } - parameterRangeTypeCase_ = 1; - return this; - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public Builder clearContinuousParameterRange() { - if (continuousParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 1) { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - onChanged(); - } - } else { - if (parameterRangeTypeCase_ == 1) { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - } - continuousParameterRangeBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder getContinuousParameterRangeBuilder() { - return getContinuousParameterRangeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { - if ((parameterRangeTypeCase_ == 1) && (continuousParameterRangeBuilder_ != null)) { - return continuousParameterRangeBuilder_.getMessageOrBuilder(); - } else { - if (parameterRangeTypeCase_ == 1) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> - getContinuousParameterRangeFieldBuilder() { - if (continuousParameterRangeBuilder_ == null) { - if (!(parameterRangeTypeCase_ == 1)) { - parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } - continuousParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder>( - (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_, - getParentForChildren(), - isClean()); - parameterRangeType_ = null; - } - parameterRangeTypeCase_ = 1; - onChanged();; - return continuousParameterRangeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> integerParameterRangeBuilder_; - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public boolean hasIntegerParameterRange() { - return parameterRangeTypeCase_ == 2; - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() { - if (integerParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 2) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } else { - if (parameterRangeTypeCase_ == 2) { - return integerParameterRangeBuilder_.getMessage(); - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) { - if (integerParameterRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parameterRangeType_ = value; - onChanged(); - } else { - integerParameterRangeBuilder_.setMessage(value); - } - parameterRangeTypeCase_ = 2; - return this; - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public Builder setIntegerParameterRange( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder builderForValue) { - if (integerParameterRangeBuilder_ == null) { - parameterRangeType_ = builderForValue.build(); - onChanged(); - } else { - integerParameterRangeBuilder_.setMessage(builderForValue.build()); - } - parameterRangeTypeCase_ = 2; - return this; - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) { - if (integerParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 2 && - parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) { - parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_) - .mergeFrom(value).buildPartial(); - } else { - parameterRangeType_ = value; - } - onChanged(); - } else { - if (parameterRangeTypeCase_ == 2) { - integerParameterRangeBuilder_.mergeFrom(value); - } - integerParameterRangeBuilder_.setMessage(value); - } - parameterRangeTypeCase_ = 2; - return this; - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public Builder clearIntegerParameterRange() { - if (integerParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 2) { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - onChanged(); - } - } else { - if (parameterRangeTypeCase_ == 2) { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - } - integerParameterRangeBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder getIntegerParameterRangeBuilder() { - return getIntegerParameterRangeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { - if ((parameterRangeTypeCase_ == 2) && (integerParameterRangeBuilder_ != null)) { - return integerParameterRangeBuilder_.getMessageOrBuilder(); - } else { - if (parameterRangeTypeCase_ == 2) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> - getIntegerParameterRangeFieldBuilder() { - if (integerParameterRangeBuilder_ == null) { - if (!(parameterRangeTypeCase_ == 2)) { - parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } - integerParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder>( - (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_, - getParentForChildren(), - isClean()); - parameterRangeType_ = null; - } - parameterRangeTypeCase_ = 2; - onChanged();; - return integerParameterRangeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> categoricalParameterRangeBuilder_; - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public boolean hasCategoricalParameterRange() { - return parameterRangeTypeCase_ == 3; - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() { - if (categoricalParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 3) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } else { - if (parameterRangeTypeCase_ == 3) { - return categoricalParameterRangeBuilder_.getMessage(); - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) { - if (categoricalParameterRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parameterRangeType_ = value; - onChanged(); - } else { - categoricalParameterRangeBuilder_.setMessage(value); - } - parameterRangeTypeCase_ = 3; - return this; - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public Builder setCategoricalParameterRange( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder builderForValue) { - if (categoricalParameterRangeBuilder_ == null) { - parameterRangeType_ = builderForValue.build(); - onChanged(); - } else { - categoricalParameterRangeBuilder_.setMessage(builderForValue.build()); - } - parameterRangeTypeCase_ = 3; - return this; - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) { - if (categoricalParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 3 && - parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) { - parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_) - .mergeFrom(value).buildPartial(); - } else { - parameterRangeType_ = value; - } - onChanged(); - } else { - if (parameterRangeTypeCase_ == 3) { - categoricalParameterRangeBuilder_.mergeFrom(value); - } - categoricalParameterRangeBuilder_.setMessage(value); - } - parameterRangeTypeCase_ = 3; - return this; - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public Builder clearCategoricalParameterRange() { - if (categoricalParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 3) { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - onChanged(); - } - } else { - if (parameterRangeTypeCase_ == 3) { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - } - categoricalParameterRangeBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder getCategoricalParameterRangeBuilder() { - return getCategoricalParameterRangeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { - if ((parameterRangeTypeCase_ == 3) && (categoricalParameterRangeBuilder_ != null)) { - return categoricalParameterRangeBuilder_.getMessageOrBuilder(); - } else { - if (parameterRangeTypeCase_ == 3) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> - getCategoricalParameterRangeFieldBuilder() { - if (categoricalParameterRangeBuilder_ == null) { - if (!(parameterRangeTypeCase_ == 3)) { - parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } - categoricalParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder>( - (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_, - getParentForChildren(), - isClean()); - parameterRangeType_ = null; - } - parameterRangeTypeCase_ = 3; - onChanged();; - return categoricalParameterRangeBuilder_; - } - @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:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(); - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterRangeOneOf parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParameterRangeOneOf(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParameterRangesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRanges) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - int getParameterRangeMapCount(); - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - boolean containsParameterRangeMap( - java.lang.String key); - /** - * Use {@link #getParameterRangeMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getParameterRangeMap(); - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - java.util.Map - getParameterRangeMapMap(); - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( - java.lang.String key, - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue); - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} - */ - public static final class ParameterRanges extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRanges) - ParameterRangesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParameterRanges.newBuilder() to construct. - private ParameterRanges(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParameterRanges() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParameterRanges( - 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)) { - parameterRangeMap_ = com.google.protobuf.MapField.newMapField( - ParameterRangeMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - parameterRangeMap__ = input.readMessage( - ParameterRangeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - parameterRangeMap_.getMutableMap().put( - parameterRangeMap__.getKey(), parameterRangeMap__.getValue()); - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetParameterRangeMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class); - } - - public static final int PARAMETER_RANGE_MAP_FIELD_NUMBER = 1; - private static final class ParameterRangeMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_; - private com.google.protobuf.MapField - internalGetParameterRangeMap() { - if (parameterRangeMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParameterRangeMapDefaultEntryHolder.defaultEntry); - } - return parameterRangeMap_; - } - - public int getParameterRangeMapCount() { - return internalGetParameterRangeMap().getMap().size(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public boolean containsParameterRangeMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetParameterRangeMap().getMap().containsKey(key); - } - /** - * Use {@link #getParameterRangeMapMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getParameterRangeMap() { - return getParameterRangeMapMap(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public java.util.Map getParameterRangeMapMap() { - return internalGetParameterRangeMap().getMap(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( - java.lang.String key, - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameterRangeMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameterRangeMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetParameterRangeMap(), - ParameterRangeMapDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetParameterRangeMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - parameterRangeMap__ = ParameterRangeMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, parameterRangeMap__); - } - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) obj; - - if (!internalGetParameterRangeMap().equals( - other.internalGetParameterRangeMap())) 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 (!internalGetParameterRangeMap().getMap().isEmpty()) { - hash = (37 * hash) + PARAMETER_RANGE_MAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetParameterRangeMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRanges} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRanges) - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetParameterRangeMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableParameterRangeMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.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(); - internalGetMutableParameterRangeMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges build() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges buildPartial() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(this); - int from_bitField0_ = bitField0_; - result.parameterRangeMap_ = internalGetParameterRangeMap(); - result.parameterRangeMap_.makeImmutable(); - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) { - return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other) { - if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance()) return this; - internalGetMutableParameterRangeMap().mergeFrom( - other.internalGetParameterRangeMap()); - 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 { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_; - private com.google.protobuf.MapField - internalGetParameterRangeMap() { - if (parameterRangeMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParameterRangeMapDefaultEntryHolder.defaultEntry); - } - return parameterRangeMap_; - } - private com.google.protobuf.MapField - internalGetMutableParameterRangeMap() { - onChanged();; - if (parameterRangeMap_ == null) { - parameterRangeMap_ = com.google.protobuf.MapField.newMapField( - ParameterRangeMapDefaultEntryHolder.defaultEntry); - } - if (!parameterRangeMap_.isMutable()) { - parameterRangeMap_ = parameterRangeMap_.copy(); - } - return parameterRangeMap_; - } - - public int getParameterRangeMapCount() { - return internalGetParameterRangeMap().getMap().size(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public boolean containsParameterRangeMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetParameterRangeMap().getMap().containsKey(key); - } - /** - * Use {@link #getParameterRangeMapMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getParameterRangeMap() { - return getParameterRangeMapMap(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public java.util.Map getParameterRangeMapMap() { - return internalGetParameterRangeMap().getMap(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( - java.lang.String key, - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameterRangeMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameterRangeMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearParameterRangeMap() { - internalGetMutableParameterRangeMap().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public Builder removeParameterRangeMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableParameterRangeMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableParameterRangeMap() { - return internalGetMutableParameterRangeMap().getMutableMap(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - public Builder putParameterRangeMap( - java.lang.String key, - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableParameterRangeMap().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public Builder putAllParameterRangeMap( - java.util.Map values) { - internalGetMutableParameterRangeMap().getMutableMap() - .putAll(values); - 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:flyteidl.plugins.sagemaker.ParameterRanges) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) - private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(); - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterRanges parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParameterRanges(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1flyteidl/plugins/sagemaker/parameter_r" + - "anges.proto\022\032flyteidl.plugins.sagemaker\"" + - "\215\001\n\030ContinuousParameterRange\022\021\n\tmax_valu" + - "e\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_ty" + - "pe\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hy" + - "perparameterScalingType\"\212\001\n\025IntegerParam" + - "eterRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_valu" + - "e\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl" + - ".plugins.sagemaker.HyperparameterScaling" + - "Type\"+\n\031CategoricalParameterRange\022\016\n\006val" + - "ues\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032con" + - "tinuous_parameter_range\030\001 \001(\01324.flyteidl" + - ".plugins.sagemaker.ContinuousParameterRa" + - "ngeH\000\022T\n\027integer_parameter_range\030\002 \001(\01321" + - ".flyteidl.plugins.sagemaker.IntegerParam" + - "eterRangeH\000\022\\\n\033categorical_parameter_ran" + - "ge\030\003 \001(\01325.flyteidl.plugins.sagemaker.Ca" + - "tegoricalParameterRangeH\000B\026\n\024parameter_r" + - "ange_type\"\335\001\n\017ParameterRanges\022_\n\023paramet" + - "er_range_map\030\001 \003(\0132B.flyteidl.plugins.sa" + - "gemaker.ParameterRanges.ParameterRangeMa" + - "pEntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030" + - "\001 \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins." + - "sagemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyp" + - "erparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINE" + - "AR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITH" + - "MIC\020\003B5Z3github.com/lyft/flyteidl/gen/pb" + - "-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor, - new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor, - new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor, - new java.lang.String[] { "Values", }); - internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor, - new java.lang.String[] { "ContinuousParameterRange", "IntegerParameterRange", "CategoricalParameterRange", "ParameterRangeType", }); - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor, - new java.lang.String[] { "ParameterRangeMap", }); - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor = - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java deleted file mode 100644 index c7c7a93f1..000000000 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ /dev/null @@ -1,4208 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/training_job.proto - -package flyteidl.plugins.sagemaker; - -public final class TrainingJobOuterClass { - private TrainingJobOuterClass() {} - 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 flyteidl.plugins.sagemaker.InputMode} - */ - public enum InputMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - * FILE = 0; - */ - FILE(0), - /** - * PIPE = 1; - */ - PIPE(1), - UNRECOGNIZED(-1), - ; - - /** - * FILE = 0; - */ - public static final int FILE_VALUE = 0; - /** - * PIPE = 1; - */ - public static final int PIPE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InputMode valueOf(int value) { - return forNumber(value); - } - - public static InputMode forNumber(int value) { - switch (value) { - case 0: return FILE; - case 1: return PIPE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - InputMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InputMode findValueByNumber(int number) { - return InputMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final InputMode[] VALUES = values(); - - public static InputMode 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 InputMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputMode) - } - - /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.AlgorithmName} - */ - public enum AlgorithmName - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CUSTOM = 0; - */ - CUSTOM(0), - /** - * XGBOOST = 1; - */ - XGBOOST(1), - UNRECOGNIZED(-1), - ; - - /** - * CUSTOM = 0; - */ - public static final int CUSTOM_VALUE = 0; - /** - * XGBOOST = 1; - */ - public static final int XGBOOST_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AlgorithmName valueOf(int value) { - return forNumber(value); - } - - public static AlgorithmName forNumber(int value) { - switch (value) { - case 0: return CUSTOM; - case 1: return XGBOOST; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AlgorithmName> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AlgorithmName findValueByNumber(int number) { - return AlgorithmName.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(1); - } - - private static final AlgorithmName[] VALUES = values(); - - public static AlgorithmName 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 AlgorithmName(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.AlgorithmName) - } - - public interface AlgorithmSpecificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - int getInputModeValue(); - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode(); - - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - int getAlgorithmNameValue(); - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName(); - - /** - * string algorithm_version = 3; - */ - java.lang.String getAlgorithmVersion(); - /** - * string algorithm_version = 3; - */ - com.google.protobuf.ByteString - getAlgorithmVersionBytes(); - - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - java.util.List - getMetricDefinitionsList(); - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - int getMetricDefinitionsCount(); - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - java.util.List - getMetricDefinitionsOrBuilderList(); - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} - */ - public static final class AlgorithmSpecification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) - AlgorithmSpecificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use AlgorithmSpecification.newBuilder() to construct. - private AlgorithmSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AlgorithmSpecification() { - inputMode_ = 0; - algorithmName_ = 0; - algorithmVersion_ = ""; - metricDefinitions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AlgorithmSpecification( - 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 8: { - int rawValue = input.readEnum(); - - inputMode_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - algorithmName_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - algorithmVersion_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - metricDefinitions_.add( - input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.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_ & 0x00000008) != 0)) { - metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); - } - - public interface MetricDefinitionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * string regex = 2; - */ - java.lang.String getRegex(); - /** - * string regex = 2; - */ - com.google.protobuf.ByteString - getRegexBytes(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} - */ - public static final class MetricDefinition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - MetricDefinitionOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetricDefinition.newBuilder() to construct. - private MetricDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MetricDefinition() { - name_ = ""; - regex_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MetricDefinition( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - regex_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - 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; - } - } - /** - * string name = 1; - */ - 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 REGEX_FIELD_NUMBER = 2; - private volatile java.lang.Object regex_; - /** - * string regex = 2; - */ - public java.lang.String getRegex() { - java.lang.Object ref = regex_; - 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(); - regex_ = s; - return s; - } - } - /** - * string regex = 2; - */ - public com.google.protobuf.ByteString - getRegexBytes() { - java.lang.Object ref = regex_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - regex_ = 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getRegexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regex_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getRegexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regex_); - } - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getRegex() - .equals(other.getRegex())) 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) + REGEX_FIELD_NUMBER; - hash = (53 * hash) + getRegex().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.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_ = ""; - - regex_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(this); - result.name_ = name_; - result.regex_ = regex_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getRegex().isEmpty()) { - regex_ = other.regex_; - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - 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; - } - } - /** - * string name = 1; - */ - 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; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - 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 regex_ = ""; - /** - * string regex = 2; - */ - public java.lang.String getRegex() { - java.lang.Object ref = regex_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - regex_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string regex = 2; - */ - public com.google.protobuf.ByteString - getRegexBytes() { - java.lang.Object ref = regex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - regex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string regex = 2; - */ - public Builder setRegex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - regex_ = value; - onChanged(); - return this; - } - /** - * string regex = 2; - */ - public Builder clearRegex() { - - regex_ = getDefaultInstance().getRegex(); - onChanged(); - return this; - } - /** - * string regex = 2; - */ - public Builder setRegexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - regex_ = 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:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricDefinition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricDefinition(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int INPUT_MODE_FIELD_NUMBER = 1; - private int inputMode_; - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public int getInputModeValue() { - return inputMode_; - } - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result; - } - - public static final int ALGORITHM_NAME_FIELD_NUMBER = 2; - private int algorithmName_; - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public int getAlgorithmNameValue() { - return algorithmName_; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result; - } - - public static final int ALGORITHM_VERSION_FIELD_NUMBER = 3; - private volatile java.lang.Object algorithmVersion_; - /** - * string algorithm_version = 3; - */ - public java.lang.String getAlgorithmVersion() { - java.lang.Object ref = algorithmVersion_; - 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(); - algorithmVersion_ = s; - return s; - } - } - /** - * string algorithm_version = 3; - */ - public com.google.protobuf.ByteString - getAlgorithmVersionBytes() { - java.lang.Object ref = algorithmVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - algorithmVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METRIC_DEFINITIONS_FIELD_NUMBER = 4; - private java.util.List metricDefinitions_; - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public java.util.List getMetricDefinitionsList() { - return metricDefinitions_; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public java.util.List - getMetricDefinitionsOrBuilderList() { - return metricDefinitions_; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public int getMetricDefinitionsCount() { - return metricDefinitions_.size(); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { - return metricDefinitions_.get(index); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( - int index) { - return metricDefinitions_.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 (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) { - output.writeEnum(1, inputMode_); - } - if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) { - output.writeEnum(2, algorithmName_); - } - if (!getAlgorithmVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, algorithmVersion_); - } - for (int i = 0; i < metricDefinitions_.size(); i++) { - output.writeMessage(4, metricDefinitions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, inputMode_); - } - if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, algorithmName_); - } - if (!getAlgorithmVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, algorithmVersion_); - } - for (int i = 0; i < metricDefinitions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, metricDefinitions_.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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) obj; - - if (inputMode_ != other.inputMode_) return false; - if (algorithmName_ != other.algorithmName_) return false; - if (!getAlgorithmVersion() - .equals(other.getAlgorithmVersion())) return false; - if (!getMetricDefinitionsList() - .equals(other.getMetricDefinitionsList())) 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) + INPUT_MODE_FIELD_NUMBER; - hash = (53 * hash) + inputMode_; - hash = (37 * hash) + ALGORITHM_NAME_FIELD_NUMBER; - hash = (53 * hash) + algorithmName_; - hash = (37 * hash) + ALGORITHM_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getAlgorithmVersion().hashCode(); - if (getMetricDefinitionsCount() > 0) { - hash = (37 * hash) + METRIC_DEFINITIONS_FIELD_NUMBER; - hash = (53 * hash) + getMetricDefinitionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.AlgorithmSpecification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMetricDefinitionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - inputMode_ = 0; - - algorithmName_ = 0; - - algorithmVersion_ = ""; - - if (metricDefinitionsBuilder_ == null) { - metricDefinitions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - metricDefinitionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.inputMode_ = inputMode_; - result.algorithmName_ = algorithmName_; - result.algorithmVersion_ = algorithmVersion_; - if (metricDefinitionsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.metricDefinitions_ = metricDefinitions_; - } else { - result.metricDefinitions_ = metricDefinitionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance()) return this; - if (other.inputMode_ != 0) { - setInputModeValue(other.getInputModeValue()); - } - if (other.algorithmName_ != 0) { - setAlgorithmNameValue(other.getAlgorithmNameValue()); - } - if (!other.getAlgorithmVersion().isEmpty()) { - algorithmVersion_ = other.algorithmVersion_; - onChanged(); - } - if (metricDefinitionsBuilder_ == null) { - if (!other.metricDefinitions_.isEmpty()) { - if (metricDefinitions_.isEmpty()) { - metricDefinitions_ = other.metricDefinitions_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.addAll(other.metricDefinitions_); - } - onChanged(); - } - } else { - if (!other.metricDefinitions_.isEmpty()) { - if (metricDefinitionsBuilder_.isEmpty()) { - metricDefinitionsBuilder_.dispose(); - metricDefinitionsBuilder_ = null; - metricDefinitions_ = other.metricDefinitions_; - bitField0_ = (bitField0_ & ~0x00000008); - metricDefinitionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricDefinitionsFieldBuilder() : null; - } else { - metricDefinitionsBuilder_.addAllMessages(other.metricDefinitions_); - } - } - } - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int inputMode_ = 0; - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public int getInputModeValue() { - return inputMode_; - } - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public Builder setInputModeValue(int value) { - inputMode_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public Builder setInputMode(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode value) { - if (value == null) { - throw new NullPointerException(); - } - - inputMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public Builder clearInputMode() { - - inputMode_ = 0; - onChanged(); - return this; - } - - private int algorithmName_ = 0; - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public int getAlgorithmNameValue() { - return algorithmName_; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public Builder setAlgorithmNameValue(int value) { - algorithmName_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName value) { - if (value == null) { - throw new NullPointerException(); - } - - algorithmName_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public Builder clearAlgorithmName() { - - algorithmName_ = 0; - onChanged(); - return this; - } - - private java.lang.Object algorithmVersion_ = ""; - /** - * string algorithm_version = 3; - */ - public java.lang.String getAlgorithmVersion() { - java.lang.Object ref = algorithmVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - algorithmVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string algorithm_version = 3; - */ - public com.google.protobuf.ByteString - getAlgorithmVersionBytes() { - java.lang.Object ref = algorithmVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - algorithmVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string algorithm_version = 3; - */ - public Builder setAlgorithmVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - algorithmVersion_ = value; - onChanged(); - return this; - } - /** - * string algorithm_version = 3; - */ - public Builder clearAlgorithmVersion() { - - algorithmVersion_ = getDefaultInstance().getAlgorithmVersion(); - onChanged(); - return this; - } - /** - * string algorithm_version = 3; - */ - public Builder setAlgorithmVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - algorithmVersion_ = value; - onChanged(); - return this; - } - - private java.util.List metricDefinitions_ = - java.util.Collections.emptyList(); - private void ensureMetricDefinitionsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; - - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public java.util.List getMetricDefinitionsList() { - if (metricDefinitionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metricDefinitions_); - } else { - return metricDefinitionsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public int getMetricDefinitionsCount() { - if (metricDefinitionsBuilder_ == null) { - return metricDefinitions_.size(); - } else { - return metricDefinitionsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { - if (metricDefinitionsBuilder_ == null) { - return metricDefinitions_.get(index); - } else { - return metricDefinitionsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder setMetricDefinitions( - int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { - if (metricDefinitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.set(index, value); - onChanged(); - } else { - metricDefinitionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder setMetricDefinitions( - int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.set(index, builderForValue.build()); - onChanged(); - } else { - metricDefinitionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { - if (metricDefinitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.add(value); - onChanged(); - } else { - metricDefinitionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder addMetricDefinitions( - int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { - if (metricDefinitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.add(index, value); - onChanged(); - } else { - metricDefinitionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder addMetricDefinitions( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.add(builderForValue.build()); - onChanged(); - } else { - metricDefinitionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder addMetricDefinitions( - int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.add(index, builderForValue.build()); - onChanged(); - } else { - metricDefinitionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder addAllMetricDefinitions( - java.lang.Iterable values) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metricDefinitions_); - onChanged(); - } else { - metricDefinitionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder clearMetricDefinitions() { - if (metricDefinitionsBuilder_ == null) { - metricDefinitions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - metricDefinitionsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder removeMetricDefinitions(int index) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.remove(index); - onChanged(); - } else { - metricDefinitionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( - int index) { - return getMetricDefinitionsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( - int index) { - if (metricDefinitionsBuilder_ == null) { - return metricDefinitions_.get(index); } else { - return metricDefinitionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public java.util.List - getMetricDefinitionsOrBuilderList() { - if (metricDefinitionsBuilder_ != null) { - return metricDefinitionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metricDefinitions_); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { - return getMetricDefinitionsFieldBuilder().addBuilder( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( - int index) { - return getMetricDefinitionsFieldBuilder().addBuilder( - index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public java.util.List - getMetricDefinitionsBuilderList() { - return getMetricDefinitionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> - getMetricDefinitionsFieldBuilder() { - if (metricDefinitionsBuilder_ == null) { - metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder>( - metricDefinitions_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - metricDefinitions_ = null; - } - return metricDefinitionsBuilder_; - } - @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:flyteidl.plugins.sagemaker.AlgorithmSpecification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AlgorithmSpecification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AlgorithmSpecification(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TrainingJobConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJobConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * For multi-node training, not multi-GPU training
-     * 
- * - * int64 instance_count = 1; - */ - long getInstanceCount(); - - /** - * string instance_type = 2; - */ - java.lang.String getInstanceType(); - /** - * string instance_type = 2; - */ - com.google.protobuf.ByteString - getInstanceTypeBytes(); - - /** - * int64 volume_size_in_gb = 3; - */ - long getVolumeSizeInGb(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobConfig} - */ - public static final class TrainingJobConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) - TrainingJobConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use TrainingJobConfig.newBuilder() to construct. - private TrainingJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TrainingJobConfig() { - instanceType_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TrainingJobConfig( - 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 8: { - - instanceCount_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - instanceType_ = s; - break; - } - case 24: { - - volumeSizeInGb_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); - } - - public static final int INSTANCE_COUNT_FIELD_NUMBER = 1; - private long instanceCount_; - /** - *
-     * For multi-node training, not multi-GPU training
-     * 
- * - * int64 instance_count = 1; - */ - public long getInstanceCount() { - return instanceCount_; - } - - public static final int INSTANCE_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object instanceType_; - /** - * string instance_type = 2; - */ - public java.lang.String getInstanceType() { - java.lang.Object ref = instanceType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceType_ = s; - return s; - } - } - /** - * string instance_type = 2; - */ - public com.google.protobuf.ByteString - getInstanceTypeBytes() { - java.lang.Object ref = instanceType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VOLUME_SIZE_IN_GB_FIELD_NUMBER = 3; - private long volumeSizeInGb_; - /** - * int64 volume_size_in_gb = 3; - */ - public long getVolumeSizeInGb() { - return volumeSizeInGb_; - } - - 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 (instanceCount_ != 0L) { - output.writeInt64(1, instanceCount_); - } - if (!getInstanceTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceType_); - } - if (volumeSizeInGb_ != 0L) { - output.writeInt64(3, volumeSizeInGb_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (instanceCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, instanceCount_); - } - if (!getInstanceTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceType_); - } - if (volumeSizeInGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, volumeSizeInGb_); - } - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) obj; - - if (getInstanceCount() - != other.getInstanceCount()) return false; - if (!getInstanceType() - .equals(other.getInstanceType())) return false; - if (getVolumeSizeInGb() - != other.getVolumeSizeInGb()) 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) + INSTANCE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInstanceCount()); - hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getInstanceType().hashCode(); - hash = (37 * hash) + VOLUME_SIZE_IN_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVolumeSizeInGb()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.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(); - instanceCount_ = 0L; - - instanceType_ = ""; - - volumeSizeInGb_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(this); - result.instanceCount_ = instanceCount_; - result.instanceType_ = instanceType_; - result.volumeSizeInGb_ = volumeSizeInGb_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance()) return this; - if (other.getInstanceCount() != 0L) { - setInstanceCount(other.getInstanceCount()); - } - if (!other.getInstanceType().isEmpty()) { - instanceType_ = other.instanceType_; - onChanged(); - } - if (other.getVolumeSizeInGb() != 0L) { - setVolumeSizeInGb(other.getVolumeSizeInGb()); - } - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long instanceCount_ ; - /** - *
-       * For multi-node training, not multi-GPU training
-       * 
- * - * int64 instance_count = 1; - */ - public long getInstanceCount() { - return instanceCount_; - } - /** - *
-       * For multi-node training, not multi-GPU training
-       * 
- * - * int64 instance_count = 1; - */ - public Builder setInstanceCount(long value) { - - instanceCount_ = value; - onChanged(); - return this; - } - /** - *
-       * For multi-node training, not multi-GPU training
-       * 
- * - * int64 instance_count = 1; - */ - public Builder clearInstanceCount() { - - instanceCount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object instanceType_ = ""; - /** - * string instance_type = 2; - */ - public java.lang.String getInstanceType() { - java.lang.Object ref = instanceType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string instance_type = 2; - */ - public com.google.protobuf.ByteString - getInstanceTypeBytes() { - java.lang.Object ref = instanceType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string instance_type = 2; - */ - public Builder setInstanceType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - instanceType_ = value; - onChanged(); - return this; - } - /** - * string instance_type = 2; - */ - public Builder clearInstanceType() { - - instanceType_ = getDefaultInstance().getInstanceType(); - onChanged(); - return this; - } - /** - * string instance_type = 2; - */ - public Builder setInstanceTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instanceType_ = value; - onChanged(); - return this; - } - - private long volumeSizeInGb_ ; - /** - * int64 volume_size_in_gb = 3; - */ - public long getVolumeSizeInGb() { - return volumeSizeInGb_; - } - /** - * int64 volume_size_in_gb = 3; - */ - public Builder setVolumeSizeInGb(long value) { - - volumeSizeInGb_ = value; - onChanged(); - return this; - } - /** - * int64 volume_size_in_gb = 3; - */ - public Builder clearVolumeSizeInGb() { - - volumeSizeInGb_ = 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:flyteidl.plugins.sagemaker.TrainingJobConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TrainingJobConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrainingJobConfig(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StoppingConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.StoppingCondition) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 max_runtime_in_seconds = 1; - */ - long getMaxRuntimeInSeconds(); - - /** - * int64 max_wait_time_in_seconds = 2; - */ - long getMaxWaitTimeInSeconds(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} - */ - public static final class StoppingCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.StoppingCondition) - StoppingConditionOrBuilder { - private static final long serialVersionUID = 0L; - // Use StoppingCondition.newBuilder() to construct. - private StoppingCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StoppingCondition() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StoppingCondition( - 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 8: { - - maxRuntimeInSeconds_ = input.readInt64(); - break; - } - case 16: { - - maxWaitTimeInSeconds_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); - } - - public static final int MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER = 1; - private long maxRuntimeInSeconds_; - /** - * int64 max_runtime_in_seconds = 1; - */ - public long getMaxRuntimeInSeconds() { - return maxRuntimeInSeconds_; - } - - public static final int MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER = 2; - private long maxWaitTimeInSeconds_; - /** - * int64 max_wait_time_in_seconds = 2; - */ - public long getMaxWaitTimeInSeconds() { - return maxWaitTimeInSeconds_; - } - - 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 (maxRuntimeInSeconds_ != 0L) { - output.writeInt64(1, maxRuntimeInSeconds_); - } - if (maxWaitTimeInSeconds_ != 0L) { - output.writeInt64(2, maxWaitTimeInSeconds_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxRuntimeInSeconds_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, maxRuntimeInSeconds_); - } - if (maxWaitTimeInSeconds_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxWaitTimeInSeconds_); - } - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) obj; - - if (getMaxRuntimeInSeconds() - != other.getMaxRuntimeInSeconds()) return false; - if (getMaxWaitTimeInSeconds() - != other.getMaxWaitTimeInSeconds()) 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) + MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxRuntimeInSeconds()); - hash = (37 * hash) + MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxWaitTimeInSeconds()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.StoppingCondition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.StoppingCondition) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.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(); - maxRuntimeInSeconds_ = 0L; - - maxWaitTimeInSeconds_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(this); - result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; - result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance()) return this; - if (other.getMaxRuntimeInSeconds() != 0L) { - setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); - } - if (other.getMaxWaitTimeInSeconds() != 0L) { - setMaxWaitTimeInSeconds(other.getMaxWaitTimeInSeconds()); - } - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long maxRuntimeInSeconds_ ; - /** - * int64 max_runtime_in_seconds = 1; - */ - public long getMaxRuntimeInSeconds() { - return maxRuntimeInSeconds_; - } - /** - * int64 max_runtime_in_seconds = 1; - */ - public Builder setMaxRuntimeInSeconds(long value) { - - maxRuntimeInSeconds_ = value; - onChanged(); - return this; - } - /** - * int64 max_runtime_in_seconds = 1; - */ - public Builder clearMaxRuntimeInSeconds() { - - maxRuntimeInSeconds_ = 0L; - onChanged(); - return this; - } - - private long maxWaitTimeInSeconds_ ; - /** - * int64 max_wait_time_in_seconds = 2; - */ - public long getMaxWaitTimeInSeconds() { - return maxWaitTimeInSeconds_; - } - /** - * int64 max_wait_time_in_seconds = 2; - */ - public Builder setMaxWaitTimeInSeconds(long value) { - - maxWaitTimeInSeconds_ = value; - onChanged(); - return this; - } - /** - * int64 max_wait_time_in_seconds = 2; - */ - public Builder clearMaxWaitTimeInSeconds() { - - maxWaitTimeInSeconds_ = 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:flyteidl.plugins.sagemaker.StoppingCondition) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StoppingCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StoppingCondition(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TrainingJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJob) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - boolean hasAlgorithmSpecification(); - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification(); - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - boolean hasTrainingJobConfig(); - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig(); - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder(); - - /** - * bool interruptible = 4; - */ - boolean getInterruptible(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} - */ - public static final class TrainingJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJob) - TrainingJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use TrainingJob.newBuilder() to construct. - private TrainingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TrainingJob() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TrainingJob( - 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: { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder subBuilder = null; - if (algorithmSpecification_ != null) { - subBuilder = algorithmSpecification_.toBuilder(); - } - algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(algorithmSpecification_); - algorithmSpecification_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder subBuilder = null; - if (trainingJobConfig_ != null) { - subBuilder = trainingJobConfig_.toBuilder(); - } - trainingJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trainingJobConfig_); - trainingJobConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - interruptible_ = input.readBool(); - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); - } - - public static final int ALGORITHM_SPECIFICATION_FIELD_NUMBER = 1; - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public boolean hasAlgorithmSpecification() { - return algorithmSpecification_ != null; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { - return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { - return getAlgorithmSpecification(); - } - - public static final int TRAINING_JOB_CONFIG_FIELD_NUMBER = 2; - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public boolean hasTrainingJobConfig() { - return trainingJobConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { - return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { - return getTrainingJobConfig(); - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 4; - private boolean interruptible_; - /** - * bool interruptible = 4; - */ - public boolean getInterruptible() { - return interruptible_; - } - - 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 (algorithmSpecification_ != null) { - output.writeMessage(1, getAlgorithmSpecification()); - } - if (trainingJobConfig_ != null) { - output.writeMessage(2, getTrainingJobConfig()); - } - if (interruptible_ != false) { - output.writeBool(4, interruptible_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (algorithmSpecification_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAlgorithmSpecification()); - } - if (trainingJobConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTrainingJobConfig()); - } - if (interruptible_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, interruptible_); - } - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) obj; - - if (hasAlgorithmSpecification() != other.hasAlgorithmSpecification()) return false; - if (hasAlgorithmSpecification()) { - if (!getAlgorithmSpecification() - .equals(other.getAlgorithmSpecification())) return false; - } - if (hasTrainingJobConfig() != other.hasTrainingJobConfig()) return false; - if (hasTrainingJobConfig()) { - if (!getTrainingJobConfig() - .equals(other.getTrainingJobConfig())) return false; - } - if (getInterruptible() - != other.getInterruptible()) 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 (hasAlgorithmSpecification()) { - hash = (37 * hash) + ALGORITHM_SPECIFICATION_FIELD_NUMBER; - hash = (53 * hash) + getAlgorithmSpecification().hashCode(); - } - if (hasTrainingJobConfig()) { - hash = (37 * hash) + TRAINING_JOB_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getTrainingJobConfig().hashCode(); - } - hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterruptible()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJob) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.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 (algorithmSpecificationBuilder_ == null) { - algorithmSpecification_ = null; - } else { - algorithmSpecification_ = null; - algorithmSpecificationBuilder_ = null; - } - if (trainingJobConfigBuilder_ == null) { - trainingJobConfig_ = null; - } else { - trainingJobConfig_ = null; - trainingJobConfigBuilder_ = null; - } - interruptible_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(this); - if (algorithmSpecificationBuilder_ == null) { - result.algorithmSpecification_ = algorithmSpecification_; - } else { - result.algorithmSpecification_ = algorithmSpecificationBuilder_.build(); - } - if (trainingJobConfigBuilder_ == null) { - result.trainingJobConfig_ = trainingJobConfig_; - } else { - result.trainingJobConfig_ = trainingJobConfigBuilder_.build(); - } - result.interruptible_ = interruptible_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance()) return this; - if (other.hasAlgorithmSpecification()) { - mergeAlgorithmSpecification(other.getAlgorithmSpecification()); - } - if (other.hasTrainingJobConfig()) { - mergeTrainingJobConfig(other.getTrainingJobConfig()); - } - if (other.getInterruptible() != false) { - setInterruptible(other.getInterruptible()); - } - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public boolean hasAlgorithmSpecification() { - return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { - if (algorithmSpecificationBuilder_ == null) { - return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } else { - return algorithmSpecificationBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { - if (algorithmSpecificationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - algorithmSpecification_ = value; - onChanged(); - } else { - algorithmSpecificationBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public Builder setAlgorithmSpecification( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder builderForValue) { - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecification_ = builderForValue.build(); - onChanged(); - } else { - algorithmSpecificationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { - if (algorithmSpecificationBuilder_ == null) { - if (algorithmSpecification_ != null) { - algorithmSpecification_ = - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); - } else { - algorithmSpecification_ = value; - } - onChanged(); - } else { - algorithmSpecificationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public Builder clearAlgorithmSpecification() { - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecification_ = null; - onChanged(); - } else { - algorithmSpecification_ = null; - algorithmSpecificationBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { - - onChanged(); - return getAlgorithmSpecificationFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { - if (algorithmSpecificationBuilder_ != null) { - return algorithmSpecificationBuilder_.getMessageOrBuilder(); - } else { - return algorithmSpecification_ == null ? - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> - getAlgorithmSpecificationFieldBuilder() { - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder>( - getAlgorithmSpecification(), - getParentForChildren(), - isClean()); - algorithmSpecification_ = null; - } - return algorithmSpecificationBuilder_; - } - - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> trainingJobConfigBuilder_; - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public boolean hasTrainingJobConfig() { - return trainingJobConfigBuilder_ != null || trainingJobConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { - if (trainingJobConfigBuilder_ == null) { - return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; - } else { - return trainingJobConfigBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { - if (trainingJobConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trainingJobConfig_ = value; - onChanged(); - } else { - trainingJobConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public Builder setTrainingJobConfig( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder builderForValue) { - if (trainingJobConfigBuilder_ == null) { - trainingJobConfig_ = builderForValue.build(); - onChanged(); - } else { - trainingJobConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public Builder mergeTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { - if (trainingJobConfigBuilder_ == null) { - if (trainingJobConfig_ != null) { - trainingJobConfig_ = - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.newBuilder(trainingJobConfig_).mergeFrom(value).buildPartial(); - } else { - trainingJobConfig_ = value; - } - onChanged(); - } else { - trainingJobConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public Builder clearTrainingJobConfig() { - if (trainingJobConfigBuilder_ == null) { - trainingJobConfig_ = null; - onChanged(); - } else { - trainingJobConfig_ = null; - trainingJobConfigBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder getTrainingJobConfigBuilder() { - - onChanged(); - return getTrainingJobConfigFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { - if (trainingJobConfigBuilder_ != null) { - return trainingJobConfigBuilder_.getMessageOrBuilder(); - } else { - return trainingJobConfig_ == null ? - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; - } - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> - getTrainingJobConfigFieldBuilder() { - if (trainingJobConfigBuilder_ == null) { - trainingJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder>( - getTrainingJobConfig(), - getParentForChildren(), - isClean()); - trainingJobConfig_ = null; - } - return trainingJobConfigBuilder_; - } - - private boolean interruptible_ ; - /** - * bool interruptible = 4; - */ - public boolean getInterruptible() { - return interruptible_; - } - /** - * bool interruptible = 4; - */ - public Builder setInterruptible(boolean value) { - - interruptible_ = value; - onChanged(); - return this; - } - /** - * bool interruptible = 4; - */ - public Builder clearInterruptible() { - - interruptible_ = false; - 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:flyteidl.plugins.sagemaker.TrainingJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TrainingJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrainingJob(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_TrainingJob_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-flyteidl/plugins/sagemaker/training_jo" + - "b.proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026" + - "AlgorithmSpecification\0229\n\ninput_mode\030\001 \001" + - "(\0162%.flyteidl.plugins.sagemaker.InputMod" + - "e\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plu" + - "gins.sagemaker.AlgorithmName\022\031\n\021algorith" + - "m_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 " + - "\003(\0132C.flyteidl.plugins.sagemaker.Algorit" + - "hmSpecification.MetricDefinition\032/\n\020Metr" + - "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(" + - "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count" + - "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_" + - "size_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n" + - "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai" + - "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022" + - "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + - "idl.plugins.sagemaker.AlgorithmSpecifica" + - "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt" + - "eidl.plugins.sagemaker.TrainingJobConfig" + - "\022\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004" + - "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS" + - "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl" + - "yteidl/gen/pb-go/flyteidl/pluginsb\006proto" + - "3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, - new java.lang.String[] { "InputMode", "AlgorithmName", "AlgorithmVersion", "MetricDefinitions", }); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor = - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, - new java.lang.String[] { "Name", "Regex", }); - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor, - new java.lang.String[] { "InstanceCount", "InstanceType", "VolumeSizeInGb", }); - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor, - new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", }); - internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor, - new java.lang.String[] { "AlgorithmSpecification", "TrainingJobConfig", "Interruptible", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/service/Admin.java b/gen/pb-java/flyteidl/service/Admin.java deleted file mode 100644 index bb5982e25..000000000 --- a/gen/pb-java/flyteidl/service/Admin.java +++ /dev/null @@ -1,395 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/admin.proto - -package flyteidl.service; - -public final class Admin { - private Admin() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034flyteidl/service/admin.proto\022\020flyteidl" + - ".service\032\034google/api/annotations.proto\032\034" + - "flyteidl/admin/project.proto\032.flyteidl/a" + - "dmin/project_domain_attributes.proto\032\031fl" + - "yteidl/admin/task.proto\032\035flyteidl/admin/" + - "workflow.proto\032(flyteidl/admin/workflow_" + - "attributes.proto\032 flyteidl/admin/launch_" + - "plan.proto\032\032flyteidl/admin/event.proto\032\036" + - "flyteidl/admin/execution.proto\032\'flyteidl" + - "/admin/matchable_resource.proto\032#flyteid" + - "l/admin/node_execution.proto\032#flyteidl/a" + - "dmin/task_execution.proto\032\033flyteidl/admi" + - "n/common.proto\032,protoc-gen-swagger/optio" + - "ns/annotations.proto2\331^\n\014AdminService\022\305\002" + - "\n\nCreateTask\022!.flyteidl.admin.TaskCreate" + - "Request\032\".flyteidl.admin.TaskCreateRespo" + - "nse\"\357\001\202\323\344\223\002\022\"\r/api/v1/tasks:\001*\222A\323\001\032&Crea" + - "te and register a task definition.JB\n\00340" + - "0\022;\n9Returned for bad request that may h" + - "ave failed validation.Je\n\003409\022^\n\\Returne" + - "d for a request that references an ident" + - "ical entity that has already been regist" + - "ered.\022\262\001\n\007GetTask\022 .flyteidl.admin.Objec" + - "tGetRequest\032\024.flyteidl.admin.Task\"o\202\323\344\223\002" + - "?\022=/api/v1/tasks/{id.project}/{id.domain" + - "}/{id.name}/{id.version}\222A\'\032%Retrieve an" + - " existing task definition.\022\336\001\n\013ListTaskI" + - "ds\0220.flyteidl.admin.NamedEntityIdentifie" + - "rListRequest\032).flyteidl.admin.NamedEntit" + - "yIdentifierList\"r\202\323\344\223\002%\022#/api/v1/task_id" + - "s/{project}/{domain}\222AD\032BFetch existing " + - "task definition identifiers matching inp" + - "ut filters.\022\353\001\n\tListTasks\022#.flyteidl.adm" + - "in.ResourceListRequest\032\030.flyteidl.admin." + - "TaskList\"\236\001\202\323\344\223\002\\\0220/api/v1/tasks/{id.pro" + - "ject}/{id.domain}/{id.name}Z(\022&/api/v1/t" + - "asks/{id.project}/{id.domain}\222A9\0327Fetch " + - "existing task definitions matching input" + - " filters.\022\331\002\n\016CreateWorkflow\022%.flyteidl." + - "admin.WorkflowCreateRequest\032&.flyteidl.a" + - "dmin.WorkflowCreateResponse\"\367\001\202\323\344\223\002\026\"\021/a" + - "pi/v1/workflows:\001*\222A\327\001\032*Create and regis" + - "ter a workflow definition.JB\n\003400\022;\n9Ret" + - "urned for bad request that may have fail" + - "ed validation.Je\n\003409\022^\n\\Returned for a " + - "request that references an identical ent" + - "ity that has already been registered.\022\302\001" + - "\n\013GetWorkflow\022 .flyteidl.admin.ObjectGet" + - "Request\032\030.flyteidl.admin.Workflow\"w\202\323\344\223\002" + - "C\022A/api/v1/workflows/{id.project}/{id.do" + - "main}/{id.name}/{id.version}\222A+\032)Retriev" + - "e an existing workflow definition.\022\355\001\n\017L" + - "istWorkflowIds\0220.flyteidl.admin.NamedEnt" + - "ityIdentifierListRequest\032).flyteidl.admi" + - "n.NamedEntityIdentifierList\"}\202\323\344\223\002)\022\'/ap" + - "i/v1/workflow_ids/{project}/{domain}\222AK\032" + - "IFetch an existing workflow definition i" + - "dentifiers matching input filters.\022\377\001\n\rL" + - "istWorkflows\022#.flyteidl.admin.ResourceLi" + - "stRequest\032\034.flyteidl.admin.WorkflowList\"" + - "\252\001\202\323\344\223\002d\0224/api/v1/workflows/{id.project}" + - "/{id.domain}/{id.name}Z,\022*/api/v1/workfl" + - "ows/{id.project}/{id.domain}\222A=\032;Fetch e" + - "xisting workflow definitions matching in" + - "put filters.\022\345\002\n\020CreateLaunchPlan\022\'.flyt" + - "eidl.admin.LaunchPlanCreateRequest\032(.fly" + - "teidl.admin.LaunchPlanCreateResponse\"\375\001\202" + - "\323\344\223\002\031\"\024/api/v1/launch_plans:\001*\222A\332\001\032-Crea" + - "te and register a launch plan definition" + - ".JB\n\003400\022;\n9Returned for bad request tha" + - "t may have failed validation.Je\n\003409\022^\n\\" + - "Returned for a request that references a" + - "n identical entity that has already been" + - " registered.\022\314\001\n\rGetLaunchPlan\022 .flyteid" + - "l.admin.ObjectGetRequest\032\032.flyteidl.admi" + - "n.LaunchPlan\"}\202\323\344\223\002F\022D/api/v1/launch_pla" + - "ns/{id.project}/{id.domain}/{id.name}/{i" + - "d.version}\222A.\032,Retrieve an existing laun" + - "ch plan definition.\022\363\001\n\023GetActiveLaunchP" + - "lan\022\'.flyteidl.admin.ActiveLaunchPlanReq" + - "uest\032\032.flyteidl.admin.LaunchPlan\"\226\001\202\323\344\223\002" + - "@\022>/api/v1/active_launch_plans/{id.proje" + - "ct}/{id.domain}/{id.name}\222AM\032KRetrieve t" + - "he active launch plan version specified " + - "by input request filters.\022\353\001\n\025ListActive" + - "LaunchPlans\022+.flyteidl.admin.ActiveLaunc" + - "hPlanListRequest\032\036.flyteidl.admin.Launch" + - "PlanList\"\204\001\202\323\344\223\0020\022./api/v1/active_launch" + - "_plans/{project}/{domain}\222AK\032IFetch the " + - "active launch plan versions specified by" + - " input request filters.\022\363\001\n\021ListLaunchPl" + - "anIds\0220.flyteidl.admin.NamedEntityIdenti" + - "fierListRequest\032).flyteidl.admin.NamedEn" + - "tityIdentifierList\"\200\001\202\323\344\223\002,\022*/api/v1/lau" + - "nch_plan_ids/{project}/{domain}\222AK\032IFetc" + - "h existing launch plan definition identi" + - "fiers matching input filters.\022\214\002\n\017ListLa" + - "unchPlans\022#.flyteidl.admin.ResourceListR" + - "equest\032\036.flyteidl.admin.LaunchPlanList\"\263" + - "\001\202\323\344\223\002j\0227/api/v1/launch_plans/{id.projec" + - "t}/{id.domain}/{id.name}Z/\022-/api/v1/laun" + - "ch_plans/{id.project}/{id.domain}\222A@\032>Fe" + - "tch existing launch plan definitions mat" + - "ching input filters.\022\300\006\n\020UpdateLaunchPla" + - "n\022\'.flyteidl.admin.LaunchPlanUpdateReque" + - "st\032(.flyteidl.admin.LaunchPlanUpdateResp" + - "onse\"\330\005\202\323\344\223\002I\032D/api/v1/launch_plans/{id." + - "project}/{id.domain}/{id.name}/{id.versi" + - "on}:\001*\222A\205\005\032\202\005Update the status of an exi" + - "sting launch plan definition. At most on" + - "e launch plan version for a given {proje" + - "ct, domain, name} can be active at a tim" + - "e. If this call sets a launch plan to ac" + - "tive and existing version is already act" + - "ive, the result of this call will be tha" + - "t the formerly active launch plan will b" + - "e made inactive and specified launch pla" + - "n in this request will be made active. I" + - "n the event that the formerly active lau" + - "nch plan had a schedule associated it wi" + - "th it, this schedule will be disabled. I" + - "f the reference launch plan in this requ" + - "est is being set to active and has a sch" + - "edule associated with it, the schedule w" + - "ill be enabled.\022\242\001\n\017CreateExecution\022&.fl" + - "yteidl.admin.ExecutionCreateRequest\032\'.fl" + - "yteidl.admin.ExecutionCreateResponse\">\202\323" + - "\344\223\002\027\"\022/api/v1/executions:\001*\222A\036\032\034Create a" + - " workflow execution.\022\261\001\n\021RelaunchExecuti" + - "on\022(.flyteidl.admin.ExecutionRelaunchReq" + - "uest\032\'.flyteidl.admin.ExecutionCreateRes" + - "ponse\"I\202\323\344\223\002 \"\033/api/v1/executions/relaun" + - "ch:\001*\222A \032\036Relaunch a workflow execution." + - "\022\302\001\n\014GetExecution\022+.flyteidl.admin.Workf" + - "lowExecutionGetRequest\032\031.flyteidl.admin." + - "Execution\"j\202\323\344\223\0027\0225/api/v1/executions/{i" + - "d.project}/{id.domain}/{id.name}\222A*\032(Ret" + - "rieve an existing workflow execution.\022\202\002" + - "\n\020GetExecutionData\022/.flyteidl.admin.Work" + - "flowExecutionGetDataRequest\0320.flyteidl.a" + - "dmin.WorkflowExecutionGetDataResponse\"\212\001" + - "\202\323\344\223\002<\022:/api/v1/data/executions/{id.proj" + - "ect}/{id.domain}/{id.name}\222AE\032CRetrieve " + - "input and output data from an existing w" + - "orkflow execution.\022\310\001\n\016ListExecutions\022#." + - "flyteidl.admin.ResourceListRequest\032\035.fly" + - "teidl.admin.ExecutionList\"r\202\323\344\223\002-\022+/api/" + - "v1/executions/{id.project}/{id.domain}\222A" + - "<\032:Fetch existing workflow executions ma" + - "tching input filters.\022\364\001\n\022TerminateExecu" + - "tion\022).flyteidl.admin.ExecutionTerminate" + - "Request\032*.flyteidl.admin.ExecutionTermin" + - "ateResponse\"\206\001\202\323\344\223\002:*5/api/v1/executions" + - "/{id.project}/{id.domain}/{id.name}:\001*\222A" + - "C\032ATerminate the active workflow executi" + - "on specified in the request.\022\374\001\n\020GetNode" + - "Execution\022\'.flyteidl.admin.NodeExecution" + - "GetRequest\032\035.flyteidl.admin.NodeExecutio" + - "n\"\237\001\202\323\344\223\002p\022n/api/v1/node_executions/{id." + - "execution_id.project}/{id.execution_id.d" + - "omain}/{id.execution_id.name}/{id.node_i" + - "d}\222A&\032$Retrieve an existing node executi" + - "on.\022\232\002\n\022ListNodeExecutions\022(.flyteidl.ad" + - "min.NodeExecutionListRequest\032!.flyteidl." + - "admin.NodeExecutionList\"\266\001\202\323\344\223\002u\022s/api/v" + - "1/node_executions/{workflow_execution_id" + - ".project}/{workflow_execution_id.domain}" + - "/{workflow_execution_id.name}\222A8\0326Fetch " + - "existing node executions matching input " + - "filters.\022\357\004\n\031ListNodeExecutionsForTask\022/" + - ".flyteidl.admin.NodeExecutionForTaskList" + - "Request\032!.flyteidl.admin.NodeExecutionLi" + - "st\"\375\003\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_exe" + - "cutions/{task_execution_id.node_executio" + - "n_id.execution_id.project}/{task_executi" + - "on_id.node_execution_id.execution_id.dom" + - "ain}/{task_execution_id.node_execution_i" + - "d.execution_id.name}/{task_execution_id." + - "node_execution_id.node_id}/{task_executi" + - "on_id.task_id.project}/{task_execution_i" + - "d.task_id.domain}/{task_execution_id.tas" + - "k_id.name}/{task_execution_id.task_id.ve" + - "rsion}/{task_execution_id.retry_attempt}" + - "\222AG\032EFetch child node executions launche" + - "d by the specified task execution.\022\263\002\n\024G" + - "etNodeExecutionData\022+.flyteidl.admin.Nod" + - "eExecutionGetDataRequest\032,.flyteidl.admi" + - "n.NodeExecutionGetDataResponse\"\277\001\202\323\344\223\002u\022" + - "s/api/v1/data/node_executions/{id.execut" + - "ion_id.project}/{id.execution_id.domain}" + - "/{id.execution_id.name}/{id.node_id}\222AA\032" + - "?Retrieve input and output data from an " + - "existing node execution.\022\227\001\n\017RegisterPro" + - "ject\022&.flyteidl.admin.ProjectRegisterReq" + - "uest\032\'.flyteidl.admin.ProjectRegisterRes" + - "ponse\"3\202\323\344\223\002\025\"\020/api/v1/projects:\001*\222A\025\032\023R" + - "egister a project.\022\205\001\n\014ListProjects\022\".fl" + - "yteidl.admin.ProjectListRequest\032\030.flytei" + - "dl.admin.Projects\"7\202\323\344\223\002\022\022\020/api/v1/proje" + - "cts\222A\034\032\032Fetch registered projects.\022\335\001\n\023C" + - "reateWorkflowEvent\022-.flyteidl.admin.Work" + - "flowExecutionEventRequest\032..flyteidl.adm" + - "in.WorkflowExecutionEventResponse\"g\202\323\344\223\002" + - "\035\"\030/api/v1/events/workflows:\001*\222AA\032?Creat" + - "e a workflow execution event recording a" + - " phase transition.\022\311\001\n\017CreateNodeEvent\022)" + - ".flyteidl.admin.NodeExecutionEventReques" + - "t\032*.flyteidl.admin.NodeExecutionEventRes" + - "ponse\"_\202\323\344\223\002\031\"\024/api/v1/events/nodes:\001*\222A" + - "=\032;Create a node execution event recordi" + - "ng a phase transition.\022\311\001\n\017CreateTaskEve" + - "nt\022).flyteidl.admin.TaskExecutionEventRe" + - "quest\032*.flyteidl.admin.TaskExecutionEven" + - "tResponse\"_\202\323\344\223\002\031\"\024/api/v1/events/tasks:" + - "\001*\222A=\032;Create a task execution event rec" + - "ording a phase transition.\022\251\003\n\020GetTaskEx" + - "ecution\022\'.flyteidl.admin.TaskExecutionGe" + - "tRequest\032\035.flyteidl.admin.TaskExecution\"" + - "\314\002\202\323\344\223\002\234\002\022\231\002/api/v1/task_executions/{id." + - "node_execution_id.execution_id.project}/" + - "{id.node_execution_id.execution_id.domai" + - "n}/{id.node_execution_id.execution_id.na" + - "me}/{id.node_execution_id.node_id}/{id.t" + - "ask_id.project}/{id.task_id.domain}/{id." + - "task_id.name}/{id.task_id.version}/{id.r" + - "etry_attempt}\222A&\032$Retrieve an existing t" + - "ask execution.\022\323\002\n\022ListTaskExecutions\022(." + - "flyteidl.admin.TaskExecutionListRequest\032" + - "!.flyteidl.admin.TaskExecutionList\"\357\001\202\323\344" + - "\223\002\255\001\022\252\001/api/v1/task_executions/{node_exe" + - "cution_id.execution_id.project}/{node_ex" + - "ecution_id.execution_id.domain}/{node_ex" + - "ecution_id.execution_id.name}/{node_exec" + - "ution_id.node_id}\222A8\0326Fetch existing tas" + - "k executions matching input filters.\022\340\003\n" + - "\024GetTaskExecutionData\022+.flyteidl.admin.T" + - "askExecutionGetDataRequest\032,.flyteidl.ad" + - "min.TaskExecutionGetDataResponse\"\354\002\202\323\344\223\002" + - "\241\002\022\236\002/api/v1/data/task_executions/{id.no" + - "de_execution_id.execution_id.project}/{i" + - "d.node_execution_id.execution_id.domain}" + - "/{id.node_execution_id.execution_id.name" + - "}/{id.node_execution_id.node_id}/{id.tas" + - "k_id.project}/{id.task_id.domain}/{id.ta" + - "sk_id.name}/{id.task_id.version}/{id.ret" + - "ry_attempt}\222AA\032?Retrieve input and outpu" + - "t data from an existing task execution.\022" + - "\277\002\n\035UpdateProjectDomainAttributes\0224.flyt" + - "eidl.admin.ProjectDomainAttributesUpdate" + - "Request\0325.flyteidl.admin.ProjectDomainAt" + - "tributesUpdateResponse\"\260\001\202\323\344\223\002O\032J/api/v1" + - "/project_domain_attributes/{attributes.p" + - "roject}/{attributes.domain}:\001*\222AX\032VUpdat" + - "e the customized resource attributes ass" + - "ociated with a project-domain combinatio" + - "n\022\237\002\n\032GetProjectDomainAttributes\0221.flyte" + - "idl.admin.ProjectDomainAttributesGetRequ" + - "est\0322.flyteidl.admin.ProjectDomainAttrib" + - "utesGetResponse\"\231\001\202\323\344\223\0026\0224/api/v1/projec" + - "t_domain_attributes/{project}/{domain}\222A" + - "Z\032XRetrieve the customized resource attr" + - "ibutes associated with a project-domain " + - "combination\022\251\002\n\035DeleteProjectDomainAttri" + - "butes\0224.flyteidl.admin.ProjectDomainAttr" + - "ibutesDeleteRequest\0325.flyteidl.admin.Pro" + - "jectDomainAttributesDeleteResponse\"\232\001\202\323\344" + - "\223\0029*4/api/v1/project_domain_attributes/{" + - "project}/{domain}:\001*\222AX\032VDelete the cust" + - "omized resource attributes associated wi" + - "th a project-domain combination\022\316\002\n\030Upda" + - "teWorkflowAttributes\022/.flyteidl.admin.Wo" + - "rkflowAttributesUpdateRequest\0320.flyteidl" + - ".admin.WorkflowAttributesUpdateResponse\"" + - "\316\001\202\323\344\223\002_\032Z/api/v1/workflow_attributes/{a" + - "ttributes.project}/{attributes.domain}/{" + - "attributes.workflow}:\001*\222Af\032dUpdate the c" + - "ustomized resource attributes associated" + - " with a project, domain and workflow com" + - "bination\022\243\002\n\025GetWorkflowAttributes\022,.fly" + - "teidl.admin.WorkflowAttributesGetRequest" + - "\032-.flyteidl.admin.WorkflowAttributesGetR" + - "esponse\"\254\001\202\323\344\223\002;\0229/api/v1/workflow_attri" + - "butes/{project}/{domain}/{workflow}\222Ah\032f" + - "Retrieve the customized resource attribu" + - "tes associated with a project, domain an" + - "d workflow combination\022\255\002\n\030DeleteWorkflo" + - "wAttributes\022/.flyteidl.admin.WorkflowAtt" + - "ributesDeleteRequest\0320.flyteidl.admin.Wo" + - "rkflowAttributesDeleteResponse\"\255\001\202\323\344\223\002>*" + - "9/api/v1/workflow_attributes/{project}/{" + - "domain}/{workflow}:\001*\222Af\032dDelete the cus" + - "tomized resource attributes associated w" + - "ith a project, domain and workflow combi" + - "nation\022\341\001\n\027ListMatchableAttributes\022..fly" + - "teidl.admin.ListMatchableAttributesReque" + - "st\032/.flyteidl.admin.ListMatchableAttribu" + - "tesResponse\"e\202\323\344\223\002\036\022\034/api/v1/matchable_a" + - "ttributes\222A>\032 Date: Thu, 23 Jul 2020 17:01:53 -0700 Subject: [PATCH 30/64] Fix casing --- gen/pb-java/flyteidl/admin/Common.java | 20107 +++++++++++++++ gen/pb-java/flyteidl/admin/Event.java | 5194 ++++ .../flyteidl/admin/ExecutionOuterClass.java | 20558 ++++++++++++++++ .../flyteidl/admin/LaunchPlanOuterClass.java | 13189 ++++++++++ .../admin/MatchableResourceOuterClass.java | 8238 +++++++ .../admin/NodeExecutionOuterClass.java | 11025 +++++++++ gen/pb-java/flyteidl/admin/Notification.java | 1325 + .../ProjectDomainAttributesOuterClass.java | 4856 ++++ .../flyteidl/admin/ProjectOuterClass.java | 4299 ++++ .../flyteidl/admin/ScheduleOuterClass.java | 1848 ++ .../admin/TaskExecutionOuterClass.java | 8862 +++++++ .../flyteidl/admin/TaskOuterClass.java | 5102 ++++ .../admin/WorkflowAttributesOuterClass.java | 5375 ++++ .../flyteidl/admin/WorkflowOuterClass.java | 5646 +++++ gen/pb-java/flyteidl/core/Compiler.java | 5243 ++++ gen/pb-java/flyteidl/core/Condition.java | 4070 +++ gen/pb-java/flyteidl/core/DynamicJob.java | 2542 ++ gen/pb-java/flyteidl/core/Errors.java | 1882 ++ gen/pb-java/flyteidl/core/Execution.java | 5764 +++++ .../flyteidl/core/IdentifierOuterClass.java | 4043 +++ gen/pb-java/flyteidl/core/Interface.java | 4503 ++++ gen/pb-java/flyteidl/core/Literals.java | 14859 +++++++++++ gen/pb-java/flyteidl/core/Tasks.java | 13257 ++++++++++ gen/pb-java/flyteidl/core/Types.java | 6407 +++++ gen/pb-java/flyteidl/core/Workflow.java | 14708 +++++++++++ .../core/WorkflowClosureOuterClass.java | 1251 + gen/pb-java/flyteidl/event/Event.java | 8733 +++++++ .../flyteidl/plugins/ArrayJobOuterClass.java | 759 + gen/pb-java/flyteidl/plugins/Presto.java | 1031 + gen/pb-java/flyteidl/plugins/Pytorch.java | 560 + gen/pb-java/flyteidl/plugins/Qubole.java | 2700 ++ gen/pb-java/flyteidl/plugins/Sidecar.java | 817 + gen/pb-java/flyteidl/plugins/Spark.java | 2179 ++ gen/pb-java/flyteidl/plugins/Tensorflow.java | 705 + .../flyteidl/plugins/WaitableOuterClass.java | 911 + .../flyteidl/plugins/sagemaker/HpoJob.java | 2824 +++ .../sagemaker/ParameterRangesOuterClass.java | 3973 +++ .../sagemaker/TrainingJobOuterClass.java | 4208 ++++ gen/pb-java/flyteidl/service/Admin.java | 395 + 39 files changed, 223948 insertions(+) create mode 100644 gen/pb-java/flyteidl/admin/Common.java create mode 100644 gen/pb-java/flyteidl/admin/Event.java create mode 100644 gen/pb-java/flyteidl/admin/ExecutionOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/Notification.java create mode 100644 gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/ProjectOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/ScheduleOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/TaskOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/WorkflowOuterClass.java create mode 100644 gen/pb-java/flyteidl/core/Compiler.java create mode 100644 gen/pb-java/flyteidl/core/Condition.java create mode 100644 gen/pb-java/flyteidl/core/DynamicJob.java create mode 100644 gen/pb-java/flyteidl/core/Errors.java create mode 100644 gen/pb-java/flyteidl/core/Execution.java create mode 100644 gen/pb-java/flyteidl/core/IdentifierOuterClass.java create mode 100644 gen/pb-java/flyteidl/core/Interface.java create mode 100644 gen/pb-java/flyteidl/core/Literals.java create mode 100644 gen/pb-java/flyteidl/core/Tasks.java create mode 100644 gen/pb-java/flyteidl/core/Types.java create mode 100644 gen/pb-java/flyteidl/core/Workflow.java create mode 100644 gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java create mode 100644 gen/pb-java/flyteidl/event/Event.java create mode 100644 gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java create mode 100644 gen/pb-java/flyteidl/plugins/Presto.java create mode 100644 gen/pb-java/flyteidl/plugins/Pytorch.java create mode 100644 gen/pb-java/flyteidl/plugins/Qubole.java create mode 100644 gen/pb-java/flyteidl/plugins/Sidecar.java create mode 100644 gen/pb-java/flyteidl/plugins/Spark.java create mode 100644 gen/pb-java/flyteidl/plugins/Tensorflow.java create mode 100644 gen/pb-java/flyteidl/plugins/WaitableOuterClass.java create mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java create mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java create mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java create mode 100644 gen/pb-java/flyteidl/service/Admin.java diff --git a/gen/pb-java/flyteidl/admin/Common.java b/gen/pb-java/flyteidl/admin/Common.java new file mode 100644 index 000000000..aedc37089 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/Common.java @@ -0,0 +1,20107 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/common.proto + +package flyteidl.admin; + +public final class Common { + private Common() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * The status of the named entity is used to control its visibility in the UI.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.NamedEntityState} + */ + public enum NamedEntityState + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * By default, all named entities are considered active and under development.
+     * 
+ * + * NAMED_ENTITY_ACTIVE = 0; + */ + NAMED_ENTITY_ACTIVE(0), + /** + *
+     * Archived named entities are no longer visible in the UI.
+     * 
+ * + * NAMED_ENTITY_ARCHIVED = 1; + */ + NAMED_ENTITY_ARCHIVED(1), + /** + *
+     * System generated entities that aren't explicitly created or managed by a user.
+     * 
+ * + * SYSTEM_GENERATED = 2; + */ + SYSTEM_GENERATED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * By default, all named entities are considered active and under development.
+     * 
+ * + * NAMED_ENTITY_ACTIVE = 0; + */ + public static final int NAMED_ENTITY_ACTIVE_VALUE = 0; + /** + *
+     * Archived named entities are no longer visible in the UI.
+     * 
+ * + * NAMED_ENTITY_ARCHIVED = 1; + */ + public static final int NAMED_ENTITY_ARCHIVED_VALUE = 1; + /** + *
+     * System generated entities that aren't explicitly created or managed by a user.
+     * 
+ * + * SYSTEM_GENERATED = 2; + */ + public static final int SYSTEM_GENERATED_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NamedEntityState valueOf(int value) { + return forNumber(value); + } + + public static NamedEntityState forNumber(int value) { + switch (value) { + case 0: return NAMED_ENTITY_ACTIVE; + case 1: return NAMED_ENTITY_ARCHIVED; + case 2: return SYSTEM_GENERATED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NamedEntityState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NamedEntityState findValueByNumber(int number) { + return NamedEntityState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.admin.Common.getDescriptor().getEnumTypes().get(0); + } + + private static final NamedEntityState[] VALUES = values(); + + public static NamedEntityState 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 NamedEntityState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.NamedEntityState) + } + + public interface NamedEntityIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Encapsulation of fields that identifies a Flyte resource.
+   * A resource can internally have multiple versions.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} + */ + public static final class NamedEntityIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifier) + NamedEntityIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityIdentifier.newBuilder() to construct. + private NamedEntityIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityIdentifier() { + project_ = ""; + domain_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityIdentifier( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.NamedEntityIdentifier)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityIdentifier other = (flyteidl.admin.Common.NamedEntityIdentifier) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifier 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 flyteidl.admin.Common.NamedEntityIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifier 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 flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifier 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(flyteidl.admin.Common.NamedEntityIdentifier 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; + } + /** + *
+     * Encapsulation of fields that identifies a Flyte resource.
+     * A resource can internally have multiple versions.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifier) + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityIdentifier.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(); + project_ = ""; + + domain_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifier build() { + flyteidl.admin.Common.NamedEntityIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifier buildPartial() { + flyteidl.admin.Common.NamedEntityIdentifier result = new flyteidl.admin.Common.NamedEntityIdentifier(this); + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityIdentifier) { + return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifier other) { + if (other == flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifier) + private static final flyteidl.admin.Common.NamedEntityIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifier(); + } + + public static flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityIdentifier(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 flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Common description across all versions of the entity
+     * +optional
+     * 
+ * + * string description = 1; + */ + java.lang.String getDescription(); + /** + *
+     * Common description across all versions of the entity
+     * +optional
+     * 
+ * + * string description = 1; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+     * Shared state across all version of the entity
+     * At this point in time, only workflow entities can have their state archived.
+     * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + int getStateValue(); + /** + *
+     * Shared state across all version of the entity
+     * At this point in time, only workflow entities can have their state archived.
+     * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + flyteidl.admin.Common.NamedEntityState getState(); + } + /** + * Protobuf type {@code flyteidl.admin.NamedEntityMetadata} + */ + public static final class NamedEntityMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityMetadata) + NamedEntityMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityMetadata.newBuilder() to construct. + private NamedEntityMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityMetadata() { + description_ = ""; + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityMetadata( + 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(); + + description_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + state_ = rawValue; + 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityMetadata.class, flyteidl.admin.Common.NamedEntityMetadata.Builder.class); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object description_; + /** + *
+     * Common description across all versions of the entity
+     * +optional
+     * 
+ * + * string description = 1; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + *
+     * Common description across all versions of the entity
+     * +optional
+     * 
+ * + * string description = 1; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + *
+     * Shared state across all version of the entity
+     * At this point in time, only workflow entities can have their state archived.
+     * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * Shared state across all version of the entity
+     * At this point in time, only workflow entities can have their state archived.
+     * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public flyteidl.admin.Common.NamedEntityState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.Common.NamedEntityState result = flyteidl.admin.Common.NamedEntityState.valueOf(state_); + return result == null ? flyteidl.admin.Common.NamedEntityState.UNRECOGNIZED : result; + } + + 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 (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); + } + if (state_ != flyteidl.admin.Common.NamedEntityState.NAMED_ENTITY_ACTIVE.getNumber()) { + output.writeEnum(2, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); + } + if (state_ != flyteidl.admin.Common.NamedEntityState.NAMED_ENTITY_ACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + 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 flyteidl.admin.Common.NamedEntityMetadata)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityMetadata other = (flyteidl.admin.Common.NamedEntityMetadata) obj; + + if (!getDescription() + .equals(other.getDescription())) return false; + if (state_ != other.state_) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityMetadata 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 flyteidl.admin.Common.NamedEntityMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityMetadata 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 flyteidl.admin.Common.NamedEntityMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityMetadata 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(flyteidl.admin.Common.NamedEntityMetadata 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 flyteidl.admin.NamedEntityMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityMetadata) + flyteidl.admin.Common.NamedEntityMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityMetadata.class, flyteidl.admin.Common.NamedEntityMetadata.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityMetadata.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(); + description_ = ""; + + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityMetadata getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityMetadata build() { + flyteidl.admin.Common.NamedEntityMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityMetadata buildPartial() { + flyteidl.admin.Common.NamedEntityMetadata result = new flyteidl.admin.Common.NamedEntityMetadata(this); + result.description_ = description_; + result.state_ = state_; + 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 flyteidl.admin.Common.NamedEntityMetadata) { + return mergeFrom((flyteidl.admin.Common.NamedEntityMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityMetadata other) { + if (other == flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance()) return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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 { + flyteidl.admin.Common.NamedEntityMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public flyteidl.admin.Common.NamedEntityState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.Common.NamedEntityState result = flyteidl.admin.Common.NamedEntityState.valueOf(state_); + return result == null ? flyteidl.admin.Common.NamedEntityState.UNRECOGNIZED : result; + } + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public Builder setState(flyteidl.admin.Common.NamedEntityState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public Builder clearState() { + + state_ = 0; + 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:flyteidl.admin.NamedEntityMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityMetadata) + private static final flyteidl.admin.Common.NamedEntityMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityMetadata(); + } + + public static flyteidl.admin.Common.NamedEntityMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityMetadata(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 flyteidl.admin.Common.NamedEntityMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + boolean hasId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + flyteidl.admin.Common.NamedEntityMetadata getMetadata(); + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder(); + } + /** + *
+   * Describes information common to a NamedEntity, identified by a project /
+   * domain / name / resource type combination
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntity} + */ + public static final class NamedEntity extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntity) + NamedEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntity.newBuilder() to construct. + private NamedEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntity() { + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntity( + 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 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.Common.NamedEntityMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.Common.NamedEntityMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntity.class, flyteidl.admin.Common.NamedEntity.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int ID_FIELD_NUMBER = 2; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.admin.Common.NamedEntityMetadata metadata_; + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { + return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (id_ != null) { + output.writeMessage(2, getId()); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getId()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + 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 flyteidl.admin.Common.NamedEntity)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntity other = (flyteidl.admin.Common.NamedEntity) obj; + + if (resourceType_ != other.resourceType_) return false; + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) 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) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntity 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 flyteidl.admin.Common.NamedEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntity 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 flyteidl.admin.Common.NamedEntity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntity 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(flyteidl.admin.Common.NamedEntity 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; + } + /** + *
+     * Describes information common to a NamedEntity, identified by a project /
+     * domain / name / resource type combination
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntity) + flyteidl.admin.Common.NamedEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntity.class, flyteidl.admin.Common.NamedEntity.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntity.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(); + resourceType_ = 0; + + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntity getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntity.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntity build() { + flyteidl.admin.Common.NamedEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntity buildPartial() { + flyteidl.admin.Common.NamedEntity result = new flyteidl.admin.Common.NamedEntity(this); + result.resourceType_ = resourceType_; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.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 flyteidl.admin.Common.NamedEntity) { + return mergeFrom((flyteidl.admin.Common.NamedEntity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntity other) { + if (other == flyteidl.admin.Common.NamedEntity.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + 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 { + flyteidl.admin.Common.NamedEntity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.Common.NamedEntityMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> metadataBuilder_; + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.admin.Common.NamedEntityMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.Common.NamedEntityMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @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:flyteidl.admin.NamedEntity) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntity) + private static final flyteidl.admin.Common.NamedEntity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntity(); + } + + public static flyteidl.admin.Common.NamedEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntity(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 flyteidl.admin.Common.NamedEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SortOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Sort) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates an attribute to sort the response values.
+     * TODO(katrogan): Add string validation here. This should never be empty.
+     * 
+ * + * string key = 1; + */ + java.lang.String getKey(); + /** + *
+     * Indicates an attribute to sort the response values.
+     * TODO(katrogan): Add string validation here. This should never be empty.
+     * 
+ * + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + int getDirectionValue(); + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + flyteidl.admin.Common.Sort.Direction getDirection(); + } + /** + *
+   * Species sort ordering in a list request.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Sort} + */ + public static final class Sort extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Sort) + SortOrBuilder { + private static final long serialVersionUID = 0L; + // Use Sort.newBuilder() to construct. + private Sort(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Sort() { + key_ = ""; + direction_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Sort( + 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(); + + key_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + direction_ = rawValue; + 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 flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.admin.Sort.Direction} + */ + public enum Direction + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DESCENDING = 0; + */ + DESCENDING(0), + /** + * ASCENDING = 1; + */ + ASCENDING(1), + UNRECOGNIZED(-1), + ; + + /** + * DESCENDING = 0; + */ + public static final int DESCENDING_VALUE = 0; + /** + * ASCENDING = 1; + */ + public static final int ASCENDING_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Direction valueOf(int value) { + return forNumber(value); + } + + public static Direction forNumber(int value) { + switch (value) { + case 0: return DESCENDING; + case 1: return ASCENDING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Direction> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Direction findValueByNumber(int number) { + return Direction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.admin.Common.Sort.getDescriptor().getEnumTypes().get(0); + } + + private static final Direction[] VALUES = values(); + + public static Direction 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 Direction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.Sort.Direction) + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
+     * Indicates an attribute to sort the response values.
+     * TODO(katrogan): Add string validation here. This should never be empty.
+     * 
+ * + * string key = 1; + */ + 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; + } + } + /** + *
+     * Indicates an attribute to sort the response values.
+     * TODO(katrogan): Add string validation here. This should never be empty.
+     * 
+ * + * string key = 1; + */ + 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 DIRECTION_FIELD_NUMBER = 2; + private int direction_; + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public int getDirectionValue() { + return direction_; + } + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public flyteidl.admin.Common.Sort.Direction getDirection() { + @SuppressWarnings("deprecation") + flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); + return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; + } + + 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 (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { + output.writeEnum(2, direction_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, direction_); + } + 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 flyteidl.admin.Common.Sort)) { + return super.equals(obj); + } + flyteidl.admin.Common.Sort other = (flyteidl.admin.Common.Sort) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (direction_ != other.direction_) 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) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Sort parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Sort parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Sort parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Sort parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Sort parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Sort parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Sort parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Sort 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 flyteidl.admin.Common.Sort parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Sort 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 flyteidl.admin.Common.Sort parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Sort 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(flyteidl.admin.Common.Sort 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; + } + /** + *
+     * Species sort ordering in a list request.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Sort} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Sort) + flyteidl.admin.Common.SortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); + } + + // Construct using flyteidl.admin.Common.Sort.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_ = ""; + + direction_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.Sort getDefaultInstanceForType() { + return flyteidl.admin.Common.Sort.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.Sort build() { + flyteidl.admin.Common.Sort result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.Sort buildPartial() { + flyteidl.admin.Common.Sort result = new flyteidl.admin.Common.Sort(this); + result.key_ = key_; + result.direction_ = direction_; + 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 flyteidl.admin.Common.Sort) { + return mergeFrom((flyteidl.admin.Common.Sort)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Sort other) { + if (other == flyteidl.admin.Common.Sort.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + 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 { + flyteidl.admin.Common.Sort parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Sort) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + 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; + } + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + 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; + } + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private int direction_ = 0; + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public int getDirectionValue() { + return direction_; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public Builder setDirectionValue(int value) { + direction_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public flyteidl.admin.Common.Sort.Direction getDirection() { + @SuppressWarnings("deprecation") + flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); + return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public Builder setDirection(flyteidl.admin.Common.Sort.Direction value) { + if (value == null) { + throw new NullPointerException(); + } + + direction_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public Builder clearDirection() { + + direction_ = 0; + 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:flyteidl.admin.Sort) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Sort) + private static final flyteidl.admin.Common.Sort DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Sort(); + } + + public static flyteidl.admin.Common.Sort getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Sort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Sort(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 flyteidl.admin.Common.Sort getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityIdentifierListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 3; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 6; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 6; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + } + /** + *
+   * Represents a request structure to list identifiers.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} + */ + public static final class NamedEntityIdentifierListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierListRequest) + NamedEntityIdentifierListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityIdentifierListRequest.newBuilder() to construct. + private NamedEntityIdentifierListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityIdentifierListRequest() { + project_ = ""; + domain_ = ""; + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityIdentifierListRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 24: { + + limit_ = input.readUInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 3; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + public static final int FILTERS_FIELD_NUMBER = 6; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 6; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 6; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (limit_ != 0) { + output.writeUInt32(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, filters_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, filters_); + } + 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityIdentifierListRequest other = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!getFilters() + .equals(other.getFilters())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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(flyteidl.admin.Common.NamedEntityIdentifierListRequest 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; + } + /** + *
+     * Represents a request structure to list identifiers.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierListRequest) + flyteidl.admin.Common.NamedEntityIdentifierListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityIdentifierListRequest.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(); + project_ = ""; + + domain_ = ""; + + limit_ = 0; + + token_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + filters_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierListRequest build() { + flyteidl.admin.Common.NamedEntityIdentifierListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierListRequest buildPartial() { + flyteidl.admin.Common.NamedEntityIdentifierListRequest result = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.limit_ = limit_; + result.token_ = token_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + result.filters_ = filters_; + 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest) { + return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierListRequest other) { + if (other == flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + 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 { + flyteidl.admin.Common.NamedEntityIdentifierListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = 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:flyteidl.admin.NamedEntityIdentifierListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierListRequest) + private static final flyteidl.admin.Common.NamedEntityIdentifierListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(); + } + + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityIdentifierListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityIdentifierListRequest(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 flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 2; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 2; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 3; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 3; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 4; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 5; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 5; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 7; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 7; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + } + /** + *
+   * Represents a request structure to list NamedEntity objects
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityListRequest} + */ + public static final class NamedEntityListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityListRequest) + NamedEntityListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityListRequest.newBuilder() to construct. + private NamedEntityListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityListRequest() { + resourceType_ = 0; + project_ = ""; + domain_ = ""; + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityListRequest( + 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 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 32: { + + limit_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 50: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityListRequest.class, flyteidl.admin.Common.NamedEntityListRequest.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int PROJECT_FIELD_NUMBER = 2; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 3; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 4; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 4; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 5; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 5; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 5; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 6; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + public static final int FILTERS_FIELD_NUMBER = 7; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 7; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 7; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); + } + if (limit_ != 0) { + output.writeUInt32(4, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, token_); + } + if (sortBy_ != null) { + output.writeMessage(6, getSortBy()); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filters_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, token_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getSortBy()); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filters_); + } + 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 flyteidl.admin.Common.NamedEntityListRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityListRequest other = (flyteidl.admin.Common.NamedEntityListRequest) obj; + + if (resourceType_ != other.resourceType_) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!getFilters() + .equals(other.getFilters())) 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) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityListRequest 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 flyteidl.admin.Common.NamedEntityListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityListRequest 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 flyteidl.admin.Common.NamedEntityListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityListRequest 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(flyteidl.admin.Common.NamedEntityListRequest 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; + } + /** + *
+     * Represents a request structure to list NamedEntity objects
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityListRequest) + flyteidl.admin.Common.NamedEntityListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityListRequest.class, flyteidl.admin.Common.NamedEntityListRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityListRequest.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(); + resourceType_ = 0; + + project_ = ""; + + domain_ = ""; + + limit_ = 0; + + token_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + filters_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityListRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityListRequest build() { + flyteidl.admin.Common.NamedEntityListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityListRequest buildPartial() { + flyteidl.admin.Common.NamedEntityListRequest result = new flyteidl.admin.Common.NamedEntityListRequest(this); + result.resourceType_ = resourceType_; + result.project_ = project_; + result.domain_ = domain_; + result.limit_ = limit_; + result.token_ = token_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + result.filters_ = filters_; + 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 flyteidl.admin.Common.NamedEntityListRequest) { + return mergeFrom((flyteidl.admin.Common.NamedEntityListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityListRequest other) { + if (other == flyteidl.admin.Common.NamedEntityListRequest.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + 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 { + flyteidl.admin.Common.NamedEntityListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 2; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 2; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 2; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 4; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 4; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 4; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = 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:flyteidl.admin.NamedEntityListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityListRequest) + private static final flyteidl.admin.Common.NamedEntityListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityListRequest(); + } + + public static flyteidl.admin.Common.NamedEntityListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityListRequest(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 flyteidl.admin.Common.NamedEntityListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityIdentifierListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + java.util.List + getEntitiesList(); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + int getEntitiesCount(); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + java.util.List + getEntitiesOrBuilderList(); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of NamedEntityIdentifiers.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} + */ + public static final class NamedEntityIdentifierList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierList) + NamedEntityIdentifierListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityIdentifierList.newBuilder() to construct. + private NamedEntityIdentifierList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityIdentifierList() { + entities_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityIdentifierList( + 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)) { + entities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + entities_.add( + input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); + } + + private int bitField0_; + public static final int ENTITIES_FIELD_NUMBER = 1; + private java.util.List entities_; + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List getEntitiesList() { + return entities_; + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + return entities_; + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public int getEntitiesCount() { + return entities_.size(); + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { + return entities_.get(index); + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( + int index) { + return entities_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < entities_.size(); i++) { + output.writeMessage(1, entities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, entities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.Common.NamedEntityIdentifierList)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityIdentifierList other = (flyteidl.admin.Common.NamedEntityIdentifierList) obj; + + if (!getEntitiesList() + .equals(other.getEntitiesList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getEntitiesCount() > 0) { + hash = (37 * hash) + ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getEntitiesList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList 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 flyteidl.admin.Common.NamedEntityIdentifierList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList 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 flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList 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(flyteidl.admin.Common.NamedEntityIdentifierList 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; + } + /** + *
+     * Represents a list of NamedEntityIdentifiers.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierList) + flyteidl.admin.Common.NamedEntityIdentifierListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityIdentifierList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEntitiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + entitiesBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierList build() { + flyteidl.admin.Common.NamedEntityIdentifierList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierList buildPartial() { + flyteidl.admin.Common.NamedEntityIdentifierList result = new flyteidl.admin.Common.NamedEntityIdentifierList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entities_ = entities_; + } else { + result.entities_ = entitiesBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.Common.NamedEntityIdentifierList) { + return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierList other) { + if (other == flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance()) return this; + if (entitiesBuilder_ == null) { + if (!other.entities_.isEmpty()) { + if (entities_.isEmpty()) { + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntitiesIsMutable(); + entities_.addAll(other.entities_); + } + onChanged(); + } + } else { + if (!other.entities_.isEmpty()) { + if (entitiesBuilder_.isEmpty()) { + entitiesBuilder_.dispose(); + entitiesBuilder_ = null; + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + entitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntitiesFieldBuilder() : null; + } else { + entitiesBuilder_.addAllMessages(other.entities_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.Common.NamedEntityIdentifierList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List entities_ = + java.util.Collections.emptyList(); + private void ensureEntitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entities_ = new java.util.ArrayList(entities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> entitiesBuilder_; + + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List getEntitiesList() { + if (entitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entities_); + } else { + return entitiesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public int getEntitiesCount() { + if (entitiesBuilder_ == null) { + return entities_.size(); + } else { + return entitiesBuilder_.getCount(); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); + } else { + return entitiesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.set(index, value); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.set(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(value); + onChanged(); + } else { + entitiesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(index, value); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addAllEntities( + java.lang.Iterable values) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entities_); + onChanged(); + } else { + entitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder clearEntities() { + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entitiesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder removeEntities(int index) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.remove(index); + onChanged(); + } else { + entitiesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( + int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); } else { + return entitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + if (entitiesBuilder_ != null) { + return entitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entities_); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder() { + return getEntitiesFieldBuilder().addBuilder( + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().addBuilder( + index, flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List + getEntitiesBuilderList() { + return getEntitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getEntitiesFieldBuilder() { + if (entitiesBuilder_ == null) { + entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + entities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + entities_ = null; + } + return entitiesBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.NamedEntityIdentifierList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierList) + private static final flyteidl.admin.Common.NamedEntityIdentifierList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierList(); + } + + public static flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityIdentifierList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityIdentifierList(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 flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + java.util.List + getEntitiesList(); + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + flyteidl.admin.Common.NamedEntity getEntities(int index); + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + int getEntitiesCount(); + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + java.util.List + getEntitiesOrBuilderList(); + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of NamedEntityIdentifiers.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityList} + */ + public static final class NamedEntityList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityList) + NamedEntityListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityList.newBuilder() to construct. + private NamedEntityList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityList() { + entities_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityList( + 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)) { + entities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + entities_.add( + input.readMessage(flyteidl.admin.Common.NamedEntity.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityList.class, flyteidl.admin.Common.NamedEntityList.Builder.class); + } + + private int bitField0_; + public static final int ENTITIES_FIELD_NUMBER = 1; + private java.util.List entities_; + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List getEntitiesList() { + return entities_; + } + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + return entities_; + } + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public int getEntitiesCount() { + return entities_.size(); + } + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity getEntities(int index) { + return entities_.get(index); + } + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( + int index) { + return entities_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < entities_.size(); i++) { + output.writeMessage(1, entities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, entities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.Common.NamedEntityList)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityList other = (flyteidl.admin.Common.NamedEntityList) obj; + + if (!getEntitiesList() + .equals(other.getEntitiesList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getEntitiesCount() > 0) { + hash = (37 * hash) + ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getEntitiesList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityList 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 flyteidl.admin.Common.NamedEntityList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityList 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 flyteidl.admin.Common.NamedEntityList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityList 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(flyteidl.admin.Common.NamedEntityList 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; + } + /** + *
+     * Represents a list of NamedEntityIdentifiers.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityList) + flyteidl.admin.Common.NamedEntityListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityList.class, flyteidl.admin.Common.NamedEntityList.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEntitiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + entitiesBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityList getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityList build() { + flyteidl.admin.Common.NamedEntityList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityList buildPartial() { + flyteidl.admin.Common.NamedEntityList result = new flyteidl.admin.Common.NamedEntityList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entities_ = entities_; + } else { + result.entities_ = entitiesBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.Common.NamedEntityList) { + return mergeFrom((flyteidl.admin.Common.NamedEntityList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityList other) { + if (other == flyteidl.admin.Common.NamedEntityList.getDefaultInstance()) return this; + if (entitiesBuilder_ == null) { + if (!other.entities_.isEmpty()) { + if (entities_.isEmpty()) { + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntitiesIsMutable(); + entities_.addAll(other.entities_); + } + onChanged(); + } + } else { + if (!other.entities_.isEmpty()) { + if (entitiesBuilder_.isEmpty()) { + entitiesBuilder_.dispose(); + entitiesBuilder_ = null; + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + entitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntitiesFieldBuilder() : null; + } else { + entitiesBuilder_.addAllMessages(other.entities_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.Common.NamedEntityList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List entities_ = + java.util.Collections.emptyList(); + private void ensureEntitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entities_ = new java.util.ArrayList(entities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder> entitiesBuilder_; + + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List getEntitiesList() { + if (entitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entities_); + } else { + return entitiesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public int getEntitiesCount() { + if (entitiesBuilder_ == null) { + return entities_.size(); + } else { + return entitiesBuilder_.getCount(); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity getEntities(int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); + } else { + return entitiesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntity value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.set(index, value); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntity.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.set(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addEntities(flyteidl.admin.Common.NamedEntity value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(value); + onChanged(); + } else { + entitiesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntity value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(index, value); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addEntities( + flyteidl.admin.Common.NamedEntity.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntity.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addAllEntities( + java.lang.Iterable values) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entities_); + onChanged(); + } else { + entitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder clearEntities() { + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entitiesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder removeEntities(int index) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.remove(index); + onChanged(); + } else { + entitiesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity.Builder getEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( + int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); } else { + return entitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + if (entitiesBuilder_ != null) { + return entitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entities_); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity.Builder addEntitiesBuilder() { + return getEntitiesFieldBuilder().addBuilder( + flyteidl.admin.Common.NamedEntity.getDefaultInstance()); + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity.Builder addEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().addBuilder( + index, flyteidl.admin.Common.NamedEntity.getDefaultInstance()); + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List + getEntitiesBuilderList() { + return getEntitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder> + getEntitiesFieldBuilder() { + if (entitiesBuilder_ == null) { + entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder>( + entities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + entities_ = null; + } + return entitiesBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.NamedEntityList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityList) + private static final flyteidl.admin.Common.NamedEntityList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityList(); + } + + public static flyteidl.admin.Common.NamedEntityList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityList(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 flyteidl.admin.Common.NamedEntityList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + boolean hasId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A request to retrieve the metadata associated with a NamedEntityIdentifier
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityGetRequest} + */ + public static final class NamedEntityGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityGetRequest) + NamedEntityGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityGetRequest.newBuilder() to construct. + private NamedEntityGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityGetRequest() { + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityGetRequest( + 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 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityGetRequest.class, flyteidl.admin.Common.NamedEntityGetRequest.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int ID_FIELD_NUMBER = 2; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (id_ != null) { + output.writeMessage(2, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getId()); + } + 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 flyteidl.admin.Common.NamedEntityGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityGetRequest other = (flyteidl.admin.Common.NamedEntityGetRequest) obj; + + if (resourceType_ != other.resourceType_) return false; + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityGetRequest 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 flyteidl.admin.Common.NamedEntityGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityGetRequest 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 flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityGetRequest 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(flyteidl.admin.Common.NamedEntityGetRequest 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 request to retrieve the metadata associated with a NamedEntityIdentifier
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityGetRequest) + flyteidl.admin.Common.NamedEntityGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityGetRequest.class, flyteidl.admin.Common.NamedEntityGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityGetRequest.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(); + resourceType_ = 0; + + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityGetRequest build() { + flyteidl.admin.Common.NamedEntityGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityGetRequest buildPartial() { + flyteidl.admin.Common.NamedEntityGetRequest result = new flyteidl.admin.Common.NamedEntityGetRequest(this); + result.resourceType_ = resourceType_; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.Common.NamedEntityGetRequest) { + return mergeFrom((flyteidl.admin.Common.NamedEntityGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityGetRequest other) { + if (other == flyteidl.admin.Common.NamedEntityGetRequest.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.Common.NamedEntityGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.NamedEntityGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityGetRequest) + private static final flyteidl.admin.Common.NamedEntityGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityGetRequest(); + } + + public static flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityGetRequest(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 flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Resource type of the metadata to update
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + *
+     * Resource type of the metadata to update
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + *
+     * Identifier of the metadata to update
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + boolean hasId(); + /** + *
+     * Identifier of the metadata to update
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + *
+     * Identifier of the metadata to update
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Metadata object to set as the new value
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + *
+     * Metadata object to set as the new value
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + flyteidl.admin.Common.NamedEntityMetadata getMetadata(); + /** + *
+     * Metadata object to set as the new value
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder(); + } + /** + *
+   * Request to set the referenced launch plan state to the configured value.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityUpdateRequest} + */ + public static final class NamedEntityUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityUpdateRequest) + NamedEntityUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityUpdateRequest.newBuilder() to construct. + private NamedEntityUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityUpdateRequest() { + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityUpdateRequest( + 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 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.Common.NamedEntityMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.Common.NamedEntityMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityUpdateRequest.class, flyteidl.admin.Common.NamedEntityUpdateRequest.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + *
+     * Resource type of the metadata to update
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Resource type of the metadata to update
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int ID_FIELD_NUMBER = 2; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + *
+     * Identifier of the metadata to update
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Identifier of the metadata to update
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Identifier of the metadata to update
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.admin.Common.NamedEntityMetadata metadata_; + /** + *
+     * Metadata object to set as the new value
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Metadata object to set as the new value
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { + return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Metadata object to set as the new value
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (id_ != null) { + output.writeMessage(2, getId()); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getId()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + 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 flyteidl.admin.Common.NamedEntityUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityUpdateRequest other = (flyteidl.admin.Common.NamedEntityUpdateRequest) obj; + + if (resourceType_ != other.resourceType_) return false; + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) 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) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest 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 flyteidl.admin.Common.NamedEntityUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest 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 flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest 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(flyteidl.admin.Common.NamedEntityUpdateRequest 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; + } + /** + *
+     * Request to set the referenced launch plan state to the configured value.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityUpdateRequest) + flyteidl.admin.Common.NamedEntityUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityUpdateRequest.class, flyteidl.admin.Common.NamedEntityUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityUpdateRequest.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(); + resourceType_ = 0; + + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateRequest build() { + flyteidl.admin.Common.NamedEntityUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateRequest buildPartial() { + flyteidl.admin.Common.NamedEntityUpdateRequest result = new flyteidl.admin.Common.NamedEntityUpdateRequest(this); + result.resourceType_ = resourceType_; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.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 flyteidl.admin.Common.NamedEntityUpdateRequest) { + return mergeFrom((flyteidl.admin.Common.NamedEntityUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityUpdateRequest other) { + if (other == flyteidl.admin.Common.NamedEntityUpdateRequest.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + 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 { + flyteidl.admin.Common.NamedEntityUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Resource type of the metadata to update
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Resource type of the metadata to update
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Resource type of the metadata to update
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + *
+       * Resource type of the metadata to update
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Resource type of the metadata to update
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.Common.NamedEntityMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.admin.Common.NamedEntityMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.Common.NamedEntityMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @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:flyteidl.admin.NamedEntityUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateRequest) + private static final flyteidl.admin.Common.NamedEntityUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityUpdateRequest(); + } + + public static flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityUpdateRequest(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 flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityUpdateResponse} + */ + public static final class NamedEntityUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityUpdateResponse) + NamedEntityUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityUpdateResponse.newBuilder() to construct. + private NamedEntityUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityUpdateResponse( + 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; + 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityUpdateResponse.class, flyteidl.admin.Common.NamedEntityUpdateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.Common.NamedEntityUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityUpdateResponse other = (flyteidl.admin.Common.NamedEntityUpdateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse 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 flyteidl.admin.Common.NamedEntityUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse 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 flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse 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(flyteidl.admin.Common.NamedEntityUpdateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityUpdateResponse) + flyteidl.admin.Common.NamedEntityUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityUpdateResponse.class, flyteidl.admin.Common.NamedEntityUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityUpdateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateResponse build() { + flyteidl.admin.Common.NamedEntityUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateResponse buildPartial() { + flyteidl.admin.Common.NamedEntityUpdateResponse result = new flyteidl.admin.Common.NamedEntityUpdateResponse(this); + 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 flyteidl.admin.Common.NamedEntityUpdateResponse) { + return mergeFrom((flyteidl.admin.Common.NamedEntityUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityUpdateResponse other) { + if (other == flyteidl.admin.Common.NamedEntityUpdateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.Common.NamedEntityUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.NamedEntityUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateResponse) + private static final flyteidl.admin.Common.NamedEntityUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityUpdateResponse(); + } + + public static flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityUpdateResponse(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 flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ObjectGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ObjectGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Represents a structure to fetch a single resource.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ObjectGetRequest} + */ + public static final class ObjectGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ObjectGetRequest) + ObjectGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ObjectGetRequest.newBuilder() to construct. + private ObjectGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ObjectGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ObjectGetRequest( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.Common.ObjectGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.ObjectGetRequest other = (flyteidl.admin.Common.ObjectGetRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ObjectGetRequest 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 flyteidl.admin.Common.ObjectGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ObjectGetRequest 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 flyteidl.admin.Common.ObjectGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ObjectGetRequest 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(flyteidl.admin.Common.ObjectGetRequest 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; + } + /** + *
+     * Represents a structure to fetch a single resource.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ObjectGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ObjectGetRequest) + flyteidl.admin.Common.ObjectGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.ObjectGetRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.ObjectGetRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.ObjectGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.ObjectGetRequest build() { + flyteidl.admin.Common.ObjectGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.ObjectGetRequest buildPartial() { + flyteidl.admin.Common.ObjectGetRequest result = new flyteidl.admin.Common.ObjectGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.Common.ObjectGetRequest) { + return mergeFrom((flyteidl.admin.Common.ObjectGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.ObjectGetRequest other) { + if (other == flyteidl.admin.Common.ObjectGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.Common.ObjectGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.ObjectGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.ObjectGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ObjectGetRequest) + private static final flyteidl.admin.Common.ObjectGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.ObjectGetRequest(); + } + + public static flyteidl.admin.Common.ObjectGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectGetRequest(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 flyteidl.admin.Common.ObjectGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ResourceListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of resources.
+   * Resources include: Task, Workflow, LaunchPlan
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ResourceListRequest} + */ + public static final class ResourceListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ResourceListRequest) + ResourceListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceListRequest.newBuilder() to construct. + private ResourceListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceListRequest() { + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceListRequest( + 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: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + 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 (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + 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 (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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 flyteidl.admin.Common.ResourceListRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.ResourceListRequest other = (flyteidl.admin.Common.ResourceListRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) 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) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ResourceListRequest 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 flyteidl.admin.Common.ResourceListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ResourceListRequest 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 flyteidl.admin.Common.ResourceListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ResourceListRequest 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(flyteidl.admin.Common.ResourceListRequest 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; + } + /** + *
+     * Represents a request structure to retrieve a list of resources.
+     * Resources include: Task, Workflow, LaunchPlan
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ResourceListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ResourceListRequest) + flyteidl.admin.Common.ResourceListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.ResourceListRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.ResourceListRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.ResourceListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.ResourceListRequest build() { + flyteidl.admin.Common.ResourceListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.ResourceListRequest buildPartial() { + flyteidl.admin.Common.ResourceListRequest result = new flyteidl.admin.Common.ResourceListRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.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 flyteidl.admin.Common.ResourceListRequest) { + return mergeFrom((flyteidl.admin.Common.ResourceListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.ResourceListRequest other) { + if (other == flyteidl.admin.Common.ResourceListRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + 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 { + flyteidl.admin.Common.ResourceListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.ResourceListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @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:flyteidl.admin.ResourceListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ResourceListRequest) + private static final flyteidl.admin.Common.ResourceListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.ResourceListRequest(); + } + + public static flyteidl.admin.Common.ResourceListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceListRequest(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 flyteidl.admin.Common.ResourceListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EmailNotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailNotification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + } + /** + * Protobuf type {@code flyteidl.admin.EmailNotification} + */ + public static final class EmailNotification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailNotification) + EmailNotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmailNotification.newBuilder() to construct. + private EmailNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EmailNotification() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EmailNotification( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(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)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); + } + + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(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 < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + 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 flyteidl.admin.Common.EmailNotification)) { + return super.equals(obj); + } + flyteidl.admin.Common.EmailNotification other = (flyteidl.admin.Common.EmailNotification) obj; + + if (!getRecipientsEmailList() + .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.EmailNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.EmailNotification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.EmailNotification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.EmailNotification 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 flyteidl.admin.Common.EmailNotification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.EmailNotification 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 flyteidl.admin.Common.EmailNotification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.EmailNotification 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(flyteidl.admin.Common.EmailNotification 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 flyteidl.admin.EmailNotification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailNotification) + flyteidl.admin.Common.EmailNotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); + } + + // Construct using flyteidl.admin.Common.EmailNotification.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(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.EmailNotification getDefaultInstanceForType() { + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.EmailNotification build() { + flyteidl.admin.Common.EmailNotification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.EmailNotification buildPartial() { + flyteidl.admin.Common.EmailNotification result = new flyteidl.admin.Common.EmailNotification(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + 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 flyteidl.admin.Common.EmailNotification) { + return mergeFrom((flyteidl.admin.Common.EmailNotification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.EmailNotification other) { + if (other == flyteidl.admin.Common.EmailNotification.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + 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 { + flyteidl.admin.Common.EmailNotification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.EmailNotification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(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:flyteidl.admin.EmailNotification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailNotification) + private static final flyteidl.admin.Common.EmailNotification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.EmailNotification(); + } + + public static flyteidl.admin.Common.EmailNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmailNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmailNotification(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 flyteidl.admin.Common.EmailNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PagerDutyNotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.PagerDutyNotification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + } + /** + * Protobuf type {@code flyteidl.admin.PagerDutyNotification} + */ + public static final class PagerDutyNotification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.PagerDutyNotification) + PagerDutyNotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use PagerDutyNotification.newBuilder() to construct. + private PagerDutyNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PagerDutyNotification() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PagerDutyNotification( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(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)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); + } + + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(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 < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + 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 flyteidl.admin.Common.PagerDutyNotification)) { + return super.equals(obj); + } + flyteidl.admin.Common.PagerDutyNotification other = (flyteidl.admin.Common.PagerDutyNotification) obj; + + if (!getRecipientsEmailList() + .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.PagerDutyNotification 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 flyteidl.admin.Common.PagerDutyNotification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.PagerDutyNotification 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 flyteidl.admin.Common.PagerDutyNotification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.PagerDutyNotification 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(flyteidl.admin.Common.PagerDutyNotification 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 flyteidl.admin.PagerDutyNotification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.PagerDutyNotification) + flyteidl.admin.Common.PagerDutyNotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); + } + + // Construct using flyteidl.admin.Common.PagerDutyNotification.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(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.PagerDutyNotification getDefaultInstanceForType() { + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.PagerDutyNotification build() { + flyteidl.admin.Common.PagerDutyNotification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.PagerDutyNotification buildPartial() { + flyteidl.admin.Common.PagerDutyNotification result = new flyteidl.admin.Common.PagerDutyNotification(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + 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 flyteidl.admin.Common.PagerDutyNotification) { + return mergeFrom((flyteidl.admin.Common.PagerDutyNotification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.PagerDutyNotification other) { + if (other == flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + 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 { + flyteidl.admin.Common.PagerDutyNotification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.PagerDutyNotification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(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:flyteidl.admin.PagerDutyNotification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.PagerDutyNotification) + private static final flyteidl.admin.Common.PagerDutyNotification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.PagerDutyNotification(); + } + + public static flyteidl.admin.Common.PagerDutyNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PagerDutyNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PagerDutyNotification(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 flyteidl.admin.Common.PagerDutyNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SlackNotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.SlackNotification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + } + /** + * Protobuf type {@code flyteidl.admin.SlackNotification} + */ + public static final class SlackNotification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.SlackNotification) + SlackNotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use SlackNotification.newBuilder() to construct. + private SlackNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SlackNotification() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SlackNotification( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(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)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); + } + + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(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 < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + 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 flyteidl.admin.Common.SlackNotification)) { + return super.equals(obj); + } + flyteidl.admin.Common.SlackNotification other = (flyteidl.admin.Common.SlackNotification) obj; + + if (!getRecipientsEmailList() + .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.SlackNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.SlackNotification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.SlackNotification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.SlackNotification 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 flyteidl.admin.Common.SlackNotification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.SlackNotification 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 flyteidl.admin.Common.SlackNotification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.SlackNotification 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(flyteidl.admin.Common.SlackNotification 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 flyteidl.admin.SlackNotification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.SlackNotification) + flyteidl.admin.Common.SlackNotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); + } + + // Construct using flyteidl.admin.Common.SlackNotification.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(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.SlackNotification getDefaultInstanceForType() { + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.SlackNotification build() { + flyteidl.admin.Common.SlackNotification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.SlackNotification buildPartial() { + flyteidl.admin.Common.SlackNotification result = new flyteidl.admin.Common.SlackNotification(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + 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 flyteidl.admin.Common.SlackNotification) { + return mergeFrom((flyteidl.admin.Common.SlackNotification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.SlackNotification other) { + if (other == flyteidl.admin.Common.SlackNotification.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + 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 { + flyteidl.admin.Common.SlackNotification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.SlackNotification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(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:flyteidl.admin.SlackNotification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SlackNotification) + private static final flyteidl.admin.Common.SlackNotification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.SlackNotification(); + } + + public static flyteidl.admin.Common.SlackNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SlackNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SlackNotification(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 flyteidl.admin.Common.SlackNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Notification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + java.util.List getPhasesList(); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + int getPhasesCount(); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + java.util.List + getPhasesValueList(); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + int getPhasesValue(int index); + + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + boolean hasEmail(); + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + flyteidl.admin.Common.EmailNotification getEmail(); + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder(); + + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + boolean hasPagerDuty(); + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + flyteidl.admin.Common.PagerDutyNotification getPagerDuty(); + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder(); + + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + boolean hasSlack(); + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + flyteidl.admin.Common.SlackNotification getSlack(); + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder(); + + public flyteidl.admin.Common.Notification.TypeCase getTypeCase(); + } + /** + *
+   * Represents a structure for notifications based on execution status.
+   * The Notification content is configured within Admin. Future iterations could
+   * expose configuring notifications with custom content.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Notification} + */ + public static final class Notification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Notification) + NotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Notification.newBuilder() to construct. + private Notification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Notification() { + phases_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Notification( + 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 8: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phases_.add(rawValue); + break; + } + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phases_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 18: { + flyteidl.admin.Common.EmailNotification.Builder subBuilder = null; + if (typeCase_ == 2) { + subBuilder = ((flyteidl.admin.Common.EmailNotification) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.admin.Common.EmailNotification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Common.EmailNotification) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 2; + break; + } + case 26: { + flyteidl.admin.Common.PagerDutyNotification.Builder subBuilder = null; + if (typeCase_ == 3) { + subBuilder = ((flyteidl.admin.Common.PagerDutyNotification) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.admin.Common.PagerDutyNotification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Common.PagerDutyNotification) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 3; + break; + } + case 34: { + flyteidl.admin.Common.SlackNotification.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = ((flyteidl.admin.Common.SlackNotification) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.admin.Common.SlackNotification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Common.SlackNotification) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + phases_ = java.util.Collections.unmodifiableList(phases_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); + } + + private int bitField0_; + private int typeCase_ = 0; + private java.lang.Object type_; + public enum TypeCase + implements com.google.protobuf.Internal.EnumLite { + EMAIL(2), + PAGER_DUTY(3), + SLACK(4), + TYPE_NOT_SET(0); + private final int value; + private TypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 2: return EMAIL; + case 3: return PAGER_DUTY; + case 4: return SLACK; + case 0: return TYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public static final int PHASES_FIELD_NUMBER = 1; + private java.util.List phases_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase> phases_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>() { + public flyteidl.core.Execution.WorkflowExecution.Phase convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(from); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + }; + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List getPhasesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesCount() { + return phases_.size(); + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { + return phases_converter_.convert(phases_.get(index)); + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List + getPhasesValueList() { + return phases_; + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesValue(int index) { + return phases_.get(index); + } + private int phasesMemoizedSerializedSize; + + public static final int EMAIL_FIELD_NUMBER = 2; + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public boolean hasEmail() { + return typeCase_ == 2; + } + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotification getEmail() { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + + public static final int PAGER_DUTY_FIELD_NUMBER = 3; + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public boolean hasPagerDuty() { + return typeCase_ == 3; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + + public static final int SLACK_FIELD_NUMBER = 4; + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public boolean hasSlack() { + return typeCase_ == 4; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotification getSlack() { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getPhasesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(phasesMemoizedSerializedSize); + } + for (int i = 0; i < phases_.size(); i++) { + output.writeEnumNoTag(phases_.get(i)); + } + if (typeCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.Common.EmailNotification) type_); + } + if (typeCase_ == 3) { + output.writeMessage(3, (flyteidl.admin.Common.PagerDutyNotification) type_); + } + if (typeCase_ == 4) { + output.writeMessage(4, (flyteidl.admin.Common.SlackNotification) type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < phases_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(phases_.get(i)); + } + size += dataSize; + if (!getPhasesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }phasesMemoizedSerializedSize = dataSize; + } + if (typeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.Common.EmailNotification) type_); + } + if (typeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.admin.Common.PagerDutyNotification) type_); + } + if (typeCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.admin.Common.SlackNotification) type_); + } + 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 flyteidl.admin.Common.Notification)) { + return super.equals(obj); + } + flyteidl.admin.Common.Notification other = (flyteidl.admin.Common.Notification) obj; + + if (!phases_.equals(other.phases_)) return false; + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 2: + if (!getEmail() + .equals(other.getEmail())) return false; + break; + case 3: + if (!getPagerDuty() + .equals(other.getPagerDuty())) return false; + break; + case 4: + if (!getSlack() + .equals(other.getSlack())) 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(); + if (getPhasesCount() > 0) { + hash = (37 * hash) + PHASES_FIELD_NUMBER; + hash = (53 * hash) + phases_.hashCode(); + } + switch (typeCase_) { + case 2: + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + break; + case 3: + hash = (37 * hash) + PAGER_DUTY_FIELD_NUMBER; + hash = (53 * hash) + getPagerDuty().hashCode(); + break; + case 4: + hash = (37 * hash) + SLACK_FIELD_NUMBER; + hash = (53 * hash) + getSlack().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Notification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Notification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Notification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Notification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Notification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Notification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Notification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Notification 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 flyteidl.admin.Common.Notification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Notification 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 flyteidl.admin.Common.Notification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Notification 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(flyteidl.admin.Common.Notification 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; + } + /** + *
+     * Represents a structure for notifications based on execution status.
+     * The Notification content is configured within Admin. Future iterations could
+     * expose configuring notifications with custom content.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Notification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Notification) + flyteidl.admin.Common.NotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); + } + + // Construct using flyteidl.admin.Common.Notification.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(); + phases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.Notification getDefaultInstanceForType() { + return flyteidl.admin.Common.Notification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.Notification build() { + flyteidl.admin.Common.Notification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.Notification buildPartial() { + flyteidl.admin.Common.Notification result = new flyteidl.admin.Common.Notification(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) != 0)) { + phases_ = java.util.Collections.unmodifiableList(phases_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.phases_ = phases_; + if (typeCase_ == 2) { + if (emailBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = emailBuilder_.build(); + } + } + if (typeCase_ == 3) { + if (pagerDutyBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = pagerDutyBuilder_.build(); + } + } + if (typeCase_ == 4) { + if (slackBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = slackBuilder_.build(); + } + } + result.bitField0_ = to_bitField0_; + result.typeCase_ = typeCase_; + 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 flyteidl.admin.Common.Notification) { + return mergeFrom((flyteidl.admin.Common.Notification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Notification other) { + if (other == flyteidl.admin.Common.Notification.getDefaultInstance()) return this; + if (!other.phases_.isEmpty()) { + if (phases_.isEmpty()) { + phases_ = other.phases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePhasesIsMutable(); + phases_.addAll(other.phases_); + } + onChanged(); + } + switch (other.getTypeCase()) { + case EMAIL: { + mergeEmail(other.getEmail()); + break; + } + case PAGER_DUTY: { + mergePagerDuty(other.getPagerDuty()); + break; + } + case SLACK: { + mergeSlack(other.getSlack()); + break; + } + case TYPE_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 { + flyteidl.admin.Common.Notification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Notification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int typeCase_ = 0; + private java.lang.Object type_; + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.util.List phases_ = + java.util.Collections.emptyList(); + private void ensurePhasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + phases_ = new java.util.ArrayList(phases_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List getPhasesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesCount() { + return phases_.size(); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { + return phases_converter_.convert(phases_.get(index)); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder setPhases( + int index, flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhasesIsMutable(); + phases_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addPhases(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhasesIsMutable(); + phases_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addAllPhases( + java.lang.Iterable values) { + ensurePhasesIsMutable(); + for (flyteidl.core.Execution.WorkflowExecution.Phase value : values) { + phases_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder clearPhases() { + phases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List + getPhasesValueList() { + return java.util.Collections.unmodifiableList(phases_); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesValue(int index) { + return phases_.get(index); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder setPhasesValue( + int index, int value) { + ensurePhasesIsMutable(); + phases_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addPhasesValue(int value) { + ensurePhasesIsMutable(); + phases_.add(value); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addAllPhasesValue( + java.lang.Iterable values) { + ensurePhasesIsMutable(); + for (int value : values) { + phases_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> emailBuilder_; + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public boolean hasEmail() { + return typeCase_ == 2; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotification getEmail() { + if (emailBuilder_ == null) { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return emailBuilder_.getMessage(); + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder setEmail(flyteidl.admin.Common.EmailNotification value) { + if (emailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + emailBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder setEmail( + flyteidl.admin.Common.EmailNotification.Builder builderForValue) { + if (emailBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + emailBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder mergeEmail(flyteidl.admin.Common.EmailNotification value) { + if (emailBuilder_ == null) { + if (typeCase_ == 2 && + type_ != flyteidl.admin.Common.EmailNotification.getDefaultInstance()) { + type_ = flyteidl.admin.Common.EmailNotification.newBuilder((flyteidl.admin.Common.EmailNotification) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + emailBuilder_.mergeFrom(value); + } + emailBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder clearEmail() { + if (emailBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + emailBuilder_.clear(); + } + return this; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotification.Builder getEmailBuilder() { + return getEmailFieldBuilder().getBuilder(); + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { + if ((typeCase_ == 2) && (emailBuilder_ != null)) { + return emailBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> + getEmailFieldBuilder() { + if (emailBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + emailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder>( + (flyteidl.admin.Common.EmailNotification) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged();; + return emailBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> pagerDutyBuilder_; + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public boolean hasPagerDuty() { + return typeCase_ == 3; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { + if (pagerDutyBuilder_ == null) { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } else { + if (typeCase_ == 3) { + return pagerDutyBuilder_.getMessage(); + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder setPagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { + if (pagerDutyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + pagerDutyBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder setPagerDuty( + flyteidl.admin.Common.PagerDutyNotification.Builder builderForValue) { + if (pagerDutyBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + pagerDutyBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 3; + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder mergePagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { + if (pagerDutyBuilder_ == null) { + if (typeCase_ == 3 && + type_ != flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) { + type_ = flyteidl.admin.Common.PagerDutyNotification.newBuilder((flyteidl.admin.Common.PagerDutyNotification) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 3) { + pagerDutyBuilder_.mergeFrom(value); + } + pagerDutyBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder clearPagerDuty() { + if (pagerDutyBuilder_ == null) { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + } + pagerDutyBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotification.Builder getPagerDutyBuilder() { + return getPagerDutyFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { + if ((typeCase_ == 3) && (pagerDutyBuilder_ != null)) { + return pagerDutyBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> + getPagerDutyFieldBuilder() { + if (pagerDutyBuilder_ == null) { + if (!(typeCase_ == 3)) { + type_ = flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + pagerDutyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder>( + (flyteidl.admin.Common.PagerDutyNotification) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 3; + onChanged();; + return pagerDutyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> slackBuilder_; + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public boolean hasSlack() { + return typeCase_ == 4; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotification getSlack() { + if (slackBuilder_ == null) { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } else { + if (typeCase_ == 4) { + return slackBuilder_.getMessage(); + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder setSlack(flyteidl.admin.Common.SlackNotification value) { + if (slackBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + slackBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder setSlack( + flyteidl.admin.Common.SlackNotification.Builder builderForValue) { + if (slackBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + slackBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 4; + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder mergeSlack(flyteidl.admin.Common.SlackNotification value) { + if (slackBuilder_ == null) { + if (typeCase_ == 4 && + type_ != flyteidl.admin.Common.SlackNotification.getDefaultInstance()) { + type_ = flyteidl.admin.Common.SlackNotification.newBuilder((flyteidl.admin.Common.SlackNotification) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 4) { + slackBuilder_.mergeFrom(value); + } + slackBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder clearSlack() { + if (slackBuilder_ == null) { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + } + slackBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotification.Builder getSlackBuilder() { + return getSlackFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { + if ((typeCase_ == 4) && (slackBuilder_ != null)) { + return slackBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> + getSlackFieldBuilder() { + if (slackBuilder_ == null) { + if (!(typeCase_ == 4)) { + type_ = flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + slackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder>( + (flyteidl.admin.Common.SlackNotification) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 4; + onChanged();; + return slackBuilder_; + } + @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:flyteidl.admin.Notification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Notification) + private static final flyteidl.admin.Common.Notification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Notification(); + } + + public static flyteidl.admin.Common.Notification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Notification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Notification(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 flyteidl.admin.Common.Notification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UrlBlobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.UrlBlob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + java.lang.String getUrl(); + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + com.google.protobuf.ByteString + getUrlBytes(); + + /** + *
+     * Represents the size of the file accessible at the above url.
+     * 
+ * + * int64 bytes = 2; + */ + long getBytes(); + } + /** + *
+   * Represents a string url and associated metadata used throughout the platform.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.UrlBlob} + */ + public static final class UrlBlob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.UrlBlob) + UrlBlobOrBuilder { + private static final long serialVersionUID = 0L; + // Use UrlBlob.newBuilder() to construct. + private UrlBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UrlBlob() { + url_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UrlBlob( + 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(); + + url_ = s; + break; + } + case 16: { + + bytes_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); + } + + public static final int URL_FIELD_NUMBER = 1; + private volatile java.lang.Object url_; + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + 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(); + url_ = s; + return s; + } + } + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BYTES_FIELD_NUMBER = 2; + private long bytes_; + /** + *
+     * Represents the size of the file accessible at the above url.
+     * 
+ * + * int64 bytes = 2; + */ + public long getBytes() { + return bytes_; + } + + 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 (!getUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); + } + if (bytes_ != 0L) { + output.writeInt64(2, bytes_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); + } + if (bytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, bytes_); + } + 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 flyteidl.admin.Common.UrlBlob)) { + return super.equals(obj); + } + flyteidl.admin.Common.UrlBlob other = (flyteidl.admin.Common.UrlBlob) obj; + + if (!getUrl() + .equals(other.getUrl())) return false; + if (getBytes() + != other.getBytes()) 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) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBytes()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.UrlBlob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.UrlBlob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.UrlBlob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.UrlBlob 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 flyteidl.admin.Common.UrlBlob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.UrlBlob 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 flyteidl.admin.Common.UrlBlob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.UrlBlob 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(flyteidl.admin.Common.UrlBlob 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; + } + /** + *
+     * Represents a string url and associated metadata used throughout the platform.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.UrlBlob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.UrlBlob) + flyteidl.admin.Common.UrlBlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); + } + + // Construct using flyteidl.admin.Common.UrlBlob.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(); + url_ = ""; + + bytes_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.UrlBlob getDefaultInstanceForType() { + return flyteidl.admin.Common.UrlBlob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.UrlBlob build() { + flyteidl.admin.Common.UrlBlob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.UrlBlob buildPartial() { + flyteidl.admin.Common.UrlBlob result = new flyteidl.admin.Common.UrlBlob(this); + result.url_ = url_; + result.bytes_ = bytes_; + 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 flyteidl.admin.Common.UrlBlob) { + return mergeFrom((flyteidl.admin.Common.UrlBlob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.UrlBlob other) { + if (other == flyteidl.admin.Common.UrlBlob.getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + onChanged(); + } + if (other.getBytes() != 0L) { + setBytes(other.getBytes()); + } + 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 { + flyteidl.admin.Common.UrlBlob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.UrlBlob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object url_ = ""; + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + url_ = value; + onChanged(); + return this; + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public Builder clearUrl() { + + url_ = getDefaultInstance().getUrl(); + onChanged(); + return this; + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + url_ = value; + onChanged(); + return this; + } + + private long bytes_ ; + /** + *
+       * Represents the size of the file accessible at the above url.
+       * 
+ * + * int64 bytes = 2; + */ + public long getBytes() { + return bytes_; + } + /** + *
+       * Represents the size of the file accessible at the above url.
+       * 
+ * + * int64 bytes = 2; + */ + public Builder setBytes(long value) { + + bytes_ = value; + onChanged(); + return this; + } + /** + *
+       * Represents the size of the file accessible at the above url.
+       * 
+ * + * int64 bytes = 2; + */ + public Builder clearBytes() { + + bytes_ = 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:flyteidl.admin.UrlBlob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.UrlBlob) + private static final flyteidl.admin.Common.UrlBlob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.UrlBlob(); + } + + public static flyteidl.admin.Common.UrlBlob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UrlBlob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UrlBlob(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 flyteidl.admin.Common.UrlBlob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LabelsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Labels) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + int getValuesCount(); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + boolean containsValues( + java.lang.String key); + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getValues(); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + java.util.Map + getValuesMap(); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrThrow( + java.lang.String key); + } + /** + *
+   * Label values to be applied to an execution resource.
+   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+   * to specify how to merge labels defined at registration and execution time.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Labels} + */ + public static final class Labels extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Labels) + LabelsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Labels.newBuilder() to construct. + private Labels(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Labels() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Labels( + 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)) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + values__ = input.readMessage( + ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + values_.getMutableMap().put( + values__.getKey(), values__.getValue()); + 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 flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private static final class ValuesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetValues(), + ValuesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetValues().getMap().entrySet()) { + com.google.protobuf.MapEntry + values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values__); + } + 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 flyteidl.admin.Common.Labels)) { + return super.equals(obj); + } + flyteidl.admin.Common.Labels other = (flyteidl.admin.Common.Labels) obj; + + if (!internalGetValues().equals( + other.internalGetValues())) 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 (!internalGetValues().getMap().isEmpty()) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + internalGetValues().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Labels parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Labels parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Labels parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Labels parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Labels parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Labels parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Labels parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Labels 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 flyteidl.admin.Common.Labels parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Labels 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 flyteidl.admin.Common.Labels parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Labels 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(flyteidl.admin.Common.Labels 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; + } + /** + *
+     * Label values to be applied to an execution resource.
+     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+     * to specify how to merge labels defined at registration and execution time.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Labels} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Labels) + flyteidl.admin.Common.LabelsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); + } + + // Construct using flyteidl.admin.Common.Labels.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(); + internalGetMutableValues().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.Labels getDefaultInstanceForType() { + return flyteidl.admin.Common.Labels.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.Labels build() { + flyteidl.admin.Common.Labels result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.Labels buildPartial() { + flyteidl.admin.Common.Labels result = new flyteidl.admin.Common.Labels(this); + int from_bitField0_ = bitField0_; + result.values_ = internalGetValues(); + result.values_.makeImmutable(); + 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 flyteidl.admin.Common.Labels) { + return mergeFrom((flyteidl.admin.Common.Labels)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Labels other) { + if (other == flyteidl.admin.Common.Labels.getDefaultInstance()) return this; + internalGetMutableValues().mergeFrom( + other.internalGetValues()); + 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 { + flyteidl.admin.Common.Labels parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Labels) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + private com.google.protobuf.MapField + internalGetMutableValues() { + onChanged();; + if (values_ == null) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + if (!values_.isMutable()) { + values_ = values_.copy(); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearValues() { + internalGetMutableValues().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder removeValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableValues() { + return internalGetMutableValues().getMutableMap(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + public Builder putValues( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder putAllValues( + java.util.Map values) { + internalGetMutableValues().getMutableMap() + .putAll(values); + 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:flyteidl.admin.Labels) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Labels) + private static final flyteidl.admin.Common.Labels DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Labels(); + } + + public static flyteidl.admin.Common.Labels getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Labels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Labels(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 flyteidl.admin.Common.Labels getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AnnotationsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Annotations) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + int getValuesCount(); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + boolean containsValues( + java.lang.String key); + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getValues(); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + java.util.Map + getValuesMap(); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrThrow( + java.lang.String key); + } + /** + *
+   * Annotation values to be applied to an execution resource.
+   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+   * to specify how to merge annotations defined at registration and execution time.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Annotations} + */ + public static final class Annotations extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Annotations) + AnnotationsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Annotations.newBuilder() to construct. + private Annotations(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Annotations() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Annotations( + 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)) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + values__ = input.readMessage( + ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + values_.getMutableMap().put( + values__.getKey(), values__.getValue()); + 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 flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private static final class ValuesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetValues(), + ValuesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetValues().getMap().entrySet()) { + com.google.protobuf.MapEntry + values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values__); + } + 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 flyteidl.admin.Common.Annotations)) { + return super.equals(obj); + } + flyteidl.admin.Common.Annotations other = (flyteidl.admin.Common.Annotations) obj; + + if (!internalGetValues().equals( + other.internalGetValues())) 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 (!internalGetValues().getMap().isEmpty()) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + internalGetValues().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Annotations parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Annotations parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Annotations parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Annotations parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Annotations parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Annotations parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Annotations parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Annotations 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 flyteidl.admin.Common.Annotations parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Annotations 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 flyteidl.admin.Common.Annotations parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Annotations 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(flyteidl.admin.Common.Annotations 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; + } + /** + *
+     * Annotation values to be applied to an execution resource.
+     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+     * to specify how to merge annotations defined at registration and execution time.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Annotations} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Annotations) + flyteidl.admin.Common.AnnotationsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); + } + + // Construct using flyteidl.admin.Common.Annotations.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(); + internalGetMutableValues().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.Annotations getDefaultInstanceForType() { + return flyteidl.admin.Common.Annotations.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.Annotations build() { + flyteidl.admin.Common.Annotations result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.Annotations buildPartial() { + flyteidl.admin.Common.Annotations result = new flyteidl.admin.Common.Annotations(this); + int from_bitField0_ = bitField0_; + result.values_ = internalGetValues(); + result.values_.makeImmutable(); + 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 flyteidl.admin.Common.Annotations) { + return mergeFrom((flyteidl.admin.Common.Annotations)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Annotations other) { + if (other == flyteidl.admin.Common.Annotations.getDefaultInstance()) return this; + internalGetMutableValues().mergeFrom( + other.internalGetValues()); + 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 { + flyteidl.admin.Common.Annotations parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Annotations) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + private com.google.protobuf.MapField + internalGetMutableValues() { + onChanged();; + if (values_ == null) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + if (!values_.isMutable()) { + values_ = values_.copy(); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearValues() { + internalGetMutableValues().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder removeValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableValues() { + return internalGetMutableValues().getMutableMap(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + public Builder putValues( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder putAllValues( + java.util.Map values) { + internalGetMutableValues().getMutableMap() + .putAll(values); + 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:flyteidl.admin.Annotations) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Annotations) + private static final flyteidl.admin.Common.Annotations DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Annotations(); + } + + public static flyteidl.admin.Common.Annotations getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Annotations parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Annotations(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 flyteidl.admin.Common.Annotations getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AuthRoleOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.AuthRole) + com.google.protobuf.MessageOrBuilder { + + /** + * string assumable_iam_role = 1; + */ + java.lang.String getAssumableIamRole(); + /** + * string assumable_iam_role = 1; + */ + com.google.protobuf.ByteString + getAssumableIamRoleBytes(); + + /** + * string kubernetes_service_account = 2; + */ + java.lang.String getKubernetesServiceAccount(); + /** + * string kubernetes_service_account = 2; + */ + com.google.protobuf.ByteString + getKubernetesServiceAccountBytes(); + + public flyteidl.admin.Common.AuthRole.MethodCase getMethodCase(); + } + /** + *
+   * Defines permissions associated with executions.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.AuthRole} + */ + public static final class AuthRole extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.AuthRole) + AuthRoleOrBuilder { + private static final long serialVersionUID = 0L; + // Use AuthRole.newBuilder() to construct. + private AuthRole(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRole() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRole( + 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(); + methodCase_ = 1; + method_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + methodCase_ = 2; + method_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.AuthRole.class, flyteidl.admin.Common.AuthRole.Builder.class); + } + + private int methodCase_ = 0; + private java.lang.Object method_; + public enum MethodCase + implements com.google.protobuf.Internal.EnumLite { + ASSUMABLE_IAM_ROLE(1), + KUBERNETES_SERVICE_ACCOUNT(2), + METHOD_NOT_SET(0); + private final int value; + private MethodCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MethodCase valueOf(int value) { + return forNumber(value); + } + + public static MethodCase forNumber(int value) { + switch (value) { + case 1: return ASSUMABLE_IAM_ROLE; + case 2: return KUBERNETES_SERVICE_ACCOUNT; + case 0: return METHOD_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public MethodCase + getMethodCase() { + return MethodCase.forNumber( + methodCase_); + } + + public static final int ASSUMABLE_IAM_ROLE_FIELD_NUMBER = 1; + /** + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + 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(); + if (methodCase_ == 1) { + method_ = s; + } + return s; + } + } + /** + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 1) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + /** + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + 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(); + if (methodCase_ == 2) { + method_ = s; + } + return s; + } + } + /** + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 2) { + method_ = 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 (methodCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); + } + if (methodCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (methodCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); + } + if (methodCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); + } + 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 flyteidl.admin.Common.AuthRole)) { + return super.equals(obj); + } + flyteidl.admin.Common.AuthRole other = (flyteidl.admin.Common.AuthRole) obj; + + if (!getMethodCase().equals(other.getMethodCase())) return false; + switch (methodCase_) { + case 1: + if (!getAssumableIamRole() + .equals(other.getAssumableIamRole())) return false; + break; + case 2: + if (!getKubernetesServiceAccount() + .equals(other.getKubernetesServiceAccount())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (methodCase_) { + case 1: + hash = (37 * hash) + ASSUMABLE_IAM_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAssumableIamRole().hashCode(); + break; + case 2: + hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.AuthRole parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.AuthRole parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.AuthRole parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.AuthRole 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 flyteidl.admin.Common.AuthRole parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.AuthRole 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 flyteidl.admin.Common.AuthRole parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.AuthRole 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(flyteidl.admin.Common.AuthRole 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; + } + /** + *
+     * Defines permissions associated with executions.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.AuthRole} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.AuthRole) + flyteidl.admin.Common.AuthRoleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.AuthRole.class, flyteidl.admin.Common.AuthRole.Builder.class); + } + + // Construct using flyteidl.admin.Common.AuthRole.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(); + methodCase_ = 0; + method_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.AuthRole getDefaultInstanceForType() { + return flyteidl.admin.Common.AuthRole.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.AuthRole build() { + flyteidl.admin.Common.AuthRole result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.AuthRole buildPartial() { + flyteidl.admin.Common.AuthRole result = new flyteidl.admin.Common.AuthRole(this); + if (methodCase_ == 1) { + result.method_ = method_; + } + if (methodCase_ == 2) { + result.method_ = method_; + } + result.methodCase_ = methodCase_; + 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 flyteidl.admin.Common.AuthRole) { + return mergeFrom((flyteidl.admin.Common.AuthRole)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.AuthRole other) { + if (other == flyteidl.admin.Common.AuthRole.getDefaultInstance()) return this; + switch (other.getMethodCase()) { + case ASSUMABLE_IAM_ROLE: { + methodCase_ = 1; + method_ = other.method_; + onChanged(); + break; + } + case KUBERNETES_SERVICE_ACCOUNT: { + methodCase_ = 2; + method_ = other.method_; + onChanged(); + break; + } + case METHOD_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 { + flyteidl.admin.Common.AuthRole parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.AuthRole) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int methodCase_ = 0; + private java.lang.Object method_; + public MethodCase + getMethodCase() { + return MethodCase.forNumber( + methodCase_); + } + + public Builder clearMethod() { + methodCase_ = 0; + method_ = null; + onChanged(); + return this; + } + + + /** + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (methodCase_ == 1) { + method_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 1) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + methodCase_ = 1; + method_ = value; + onChanged(); + return this; + } + /** + * string assumable_iam_role = 1; + */ + public Builder clearAssumableIamRole() { + if (methodCase_ == 1) { + methodCase_ = 0; + method_ = null; + onChanged(); + } + return this; + } + /** + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + methodCase_ = 1; + method_ = value; + onChanged(); + return this; + } + + /** + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (methodCase_ == 2) { + method_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 2) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + methodCase_ = 2; + method_ = value; + onChanged(); + return this; + } + /** + * string kubernetes_service_account = 2; + */ + public Builder clearKubernetesServiceAccount() { + if (methodCase_ == 2) { + methodCase_ = 0; + method_ = null; + onChanged(); + } + return this; + } + /** + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + methodCase_ = 2; + method_ = 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:flyteidl.admin.AuthRole) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.AuthRole) + private static final flyteidl.admin.Common.AuthRole DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.AuthRole(); + } + + public static flyteidl.admin.Common.AuthRole getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRole parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRole(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 flyteidl.admin.Common.AuthRole getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntity_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Sort_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Sort_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ResourceListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EmailNotification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_SlackNotification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Notification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Notification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_UrlBlob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Labels_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Labels_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Annotations_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Annotations_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_AuthRole_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_AuthRole_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\033flyteidl/admin/common.proto\022\016flyteidl." + + "admin\032\035flyteidl/core/execution.proto\032\036fl" + + "yteidl/core/identifier.proto\"F\n\025NamedEnt" + + "ityIdentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain" + + "\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"[\n\023NamedEntityMetad" + + "ata\022\023\n\013description\030\001 \001(\t\022/\n\005state\030\002 \001(\0162" + + " .flyteidl.admin.NamedEntityState\"\253\001\n\013Na" + + "medEntity\0222\n\rresource_type\030\001 \001(\0162\033.flyte" + + "idl.core.ResourceType\0221\n\002id\030\002 \001(\0132%.flyt" + + "eidl.admin.NamedEntityIdentifier\0225\n\010meta" + + "data\030\003 \001(\0132#.flyteidl.admin.NamedEntityM" + + "etadata\"r\n\004Sort\022\013\n\003key\030\001 \001(\t\0221\n\tdirectio" + + "n\030\002 \001(\0162\036.flyteidl.admin.Sort.Direction\"" + + "*\n\tDirection\022\016\n\nDESCENDING\020\000\022\r\n\tASCENDIN" + + "G\020\001\"\231\001\n NamedEntityIdentifierListRequest" + + "\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\r\n\005lim" + + "it\030\003 \001(\r\022\r\n\005token\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\013" + + "2\024.flyteidl.admin.Sort\022\017\n\007filters\030\006 \001(\t\"" + + "\303\001\n\026NamedEntityListRequest\0222\n\rresource_t" + + "ype\030\001 \001(\0162\033.flyteidl.core.ResourceType\022\017" + + "\n\007project\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\r\n\005limit" + + "\030\004 \001(\r\022\r\n\005token\030\005 \001(\t\022%\n\007sort_by\030\006 \001(\0132\024" + + ".flyteidl.admin.Sort\022\017\n\007filters\030\007 \001(\t\"c\n" + + "\031NamedEntityIdentifierList\0227\n\010entities\030\001" + + " \003(\0132%.flyteidl.admin.NamedEntityIdentif" + + "ier\022\r\n\005token\030\002 \001(\t\"O\n\017NamedEntityList\022-\n" + + "\010entities\030\001 \003(\0132\033.flyteidl.admin.NamedEn" + + "tity\022\r\n\005token\030\002 \001(\t\"~\n\025NamedEntityGetReq" + + "uest\0222\n\rresource_type\030\001 \001(\0162\033.flyteidl.c" + + "ore.ResourceType\0221\n\002id\030\002 \001(\0132%.flyteidl." + + "admin.NamedEntityIdentifier\"\270\001\n\030NamedEnt" + + "ityUpdateRequest\0222\n\rresource_type\030\001 \001(\0162" + + "\033.flyteidl.core.ResourceType\0221\n\002id\030\002 \001(\013" + + "2%.flyteidl.admin.NamedEntityIdentifier\022" + + "5\n\010metadata\030\003 \001(\0132#.flyteidl.admin.Named" + + "EntityMetadata\"\033\n\031NamedEntityUpdateRespo" + + "nse\"9\n\020ObjectGetRequest\022%\n\002id\030\001 \001(\0132\031.fl" + + "yteidl.core.Identifier\"\236\001\n\023ResourceListR" + + "equest\0221\n\002id\030\001 \001(\0132%.flyteidl.admin.Name" + + "dEntityIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005toke" + + "n\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(" + + "\0132\024.flyteidl.admin.Sort\"-\n\021EmailNotifica" + + "tion\022\030\n\020recipients_email\030\001 \003(\t\"1\n\025PagerD" + + "utyNotification\022\030\n\020recipients_email\030\001 \003(" + + "\t\"-\n\021SlackNotification\022\030\n\020recipients_ema" + + "il\030\001 \003(\t\"\363\001\n\014Notification\0226\n\006phases\030\001 \003(" + + "\0162&.flyteidl.core.WorkflowExecution.Phas" + + "e\0222\n\005email\030\002 \001(\0132!.flyteidl.admin.EmailN" + + "otificationH\000\022;\n\npager_duty\030\003 \001(\0132%.flyt" + + "eidl.admin.PagerDutyNotificationH\000\0222\n\005sl" + + "ack\030\004 \001(\0132!.flyteidl.admin.SlackNotifica" + + "tionH\000B\006\n\004type\"%\n\007UrlBlob\022\013\n\003url\030\001 \001(\t\022\r" + + "\n\005bytes\030\002 \001(\003\"k\n\006Labels\0222\n\006values\030\001 \003(\0132" + + "\".flyteidl.admin.Labels.ValuesEntry\032-\n\013V" + + "aluesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"u\n\013Annotations\0227\n\006values\030\001 \003(\0132\'.flyt" + + "eidl.admin.Annotations.ValuesEntry\032-\n\013Va" + + "luesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"X\n\010AuthRole\022\034\n\022assumable_iam_role\030\001 \001(" + + "\tH\000\022$\n\032kubernetes_service_account\030\002 \001(\tH" + + "\000B\010\n\006method*\\\n\020NamedEntityState\022\027\n\023NAMED" + + "_ENTITY_ACTIVE\020\000\022\031\n\025NAMED_ENTITY_ARCHIVE" + + "D\020\001\022\024\n\020SYSTEM_GENERATED\020\002B3Z1github.com/" + + "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + + "proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor, + new java.lang.String[] { "Project", "Domain", "Name", }); + internal_static_flyteidl_admin_NamedEntityMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityMetadata_descriptor, + new java.lang.String[] { "Description", "State", }); + internal_static_flyteidl_admin_NamedEntity_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntity_descriptor, + new java.lang.String[] { "ResourceType", "Id", "Metadata", }); + internal_static_flyteidl_admin_Sort_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_Sort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Sort_descriptor, + new java.lang.String[] { "Key", "Direction", }); + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Limit", "Token", "SortBy", "Filters", }); + internal_static_flyteidl_admin_NamedEntityListRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityListRequest_descriptor, + new java.lang.String[] { "ResourceType", "Project", "Domain", "Limit", "Token", "SortBy", "Filters", }); + internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor, + new java.lang.String[] { "Entities", "Token", }); + internal_static_flyteidl_admin_NamedEntityList_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityList_descriptor, + new java.lang.String[] { "Entities", "Token", }); + internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor, + new java.lang.String[] { "ResourceType", "Id", }); + internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor, + new java.lang.String[] { "ResourceType", "Id", "Metadata", }); + internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ObjectGetRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ObjectGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_ResourceListRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ResourceListRequest_descriptor, + new java.lang.String[] { "Id", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_EmailNotification_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EmailNotification_descriptor, + new java.lang.String[] { "RecipientsEmail", }); + internal_static_flyteidl_admin_PagerDutyNotification_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_PagerDutyNotification_descriptor, + new java.lang.String[] { "RecipientsEmail", }); + internal_static_flyteidl_admin_SlackNotification_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_SlackNotification_descriptor, + new java.lang.String[] { "RecipientsEmail", }); + internal_static_flyteidl_admin_Notification_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_flyteidl_admin_Notification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Notification_descriptor, + new java.lang.String[] { "Phases", "Email", "PagerDuty", "Slack", "Type", }); + internal_static_flyteidl_admin_UrlBlob_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_UrlBlob_descriptor, + new java.lang.String[] { "Url", "Bytes", }); + internal_static_flyteidl_admin_Labels_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_flyteidl_admin_Labels_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Labels_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor = + internal_static_flyteidl_admin_Labels_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_admin_Annotations_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_flyteidl_admin_Annotations_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Annotations_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor = + internal_static_flyteidl_admin_Annotations_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_admin_AuthRole_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_flyteidl_admin_AuthRole_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_AuthRole_descriptor, + new java.lang.String[] { "AssumableIamRole", "KubernetesServiceAccount", "Method", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/Event.java b/gen/pb-java/flyteidl/admin/Event.java new file mode 100644 index 000000000..0d1084c72 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/Event.java @@ -0,0 +1,5194 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/event.proto + +package flyteidl.admin; + +public final class Event { + private Event() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface EventErrorAlreadyInTerminalStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventErrorAlreadyInTerminalState) + com.google.protobuf.MessageOrBuilder { + + /** + * string current_phase = 1; + */ + java.lang.String getCurrentPhase(); + /** + * string current_phase = 1; + */ + com.google.protobuf.ByteString + getCurrentPhaseBytes(); + } + /** + * Protobuf type {@code flyteidl.admin.EventErrorAlreadyInTerminalState} + */ + public static final class EventErrorAlreadyInTerminalState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) + EventErrorAlreadyInTerminalStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventErrorAlreadyInTerminalState.newBuilder() to construct. + private EventErrorAlreadyInTerminalState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventErrorAlreadyInTerminalState() { + currentPhase_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventErrorAlreadyInTerminalState( + 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(); + + currentPhase_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); + } + + public static final int CURRENT_PHASE_FIELD_NUMBER = 1; + private volatile java.lang.Object currentPhase_; + /** + * string current_phase = 1; + */ + public java.lang.String getCurrentPhase() { + java.lang.Object ref = currentPhase_; + 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(); + currentPhase_ = s; + return s; + } + } + /** + * string current_phase = 1; + */ + public com.google.protobuf.ByteString + getCurrentPhaseBytes() { + java.lang.Object ref = currentPhase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentPhase_ = 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 (!getCurrentPhaseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentPhase_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCurrentPhaseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currentPhase_); + } + 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState)) { + return super.equals(obj); + } + flyteidl.admin.Event.EventErrorAlreadyInTerminalState other = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) obj; + + if (!getCurrentPhase() + .equals(other.getCurrentPhase())) 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) + CURRENT_PHASE_FIELD_NUMBER; + hash = (53 * hash) + getCurrentPhase().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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(flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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 flyteidl.admin.EventErrorAlreadyInTerminalState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) + flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); + } + + // Construct using flyteidl.admin.Event.EventErrorAlreadyInTerminalState.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(); + currentPhase_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState build() { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState buildPartial() { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(this); + result.currentPhase_ = currentPhase_; + 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState) { + return mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.EventErrorAlreadyInTerminalState other) { + if (other == flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) return this; + if (!other.getCurrentPhase().isEmpty()) { + currentPhase_ = other.currentPhase_; + 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 { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object currentPhase_ = ""; + /** + * string current_phase = 1; + */ + public java.lang.String getCurrentPhase() { + java.lang.Object ref = currentPhase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentPhase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string current_phase = 1; + */ + public com.google.protobuf.ByteString + getCurrentPhaseBytes() { + java.lang.Object ref = currentPhase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentPhase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string current_phase = 1; + */ + public Builder setCurrentPhase( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentPhase_ = value; + onChanged(); + return this; + } + /** + * string current_phase = 1; + */ + public Builder clearCurrentPhase() { + + currentPhase_ = getDefaultInstance().getCurrentPhase(); + onChanged(); + return this; + } + /** + * string current_phase = 1; + */ + public Builder setCurrentPhaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentPhase_ = 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:flyteidl.admin.EventErrorAlreadyInTerminalState) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorAlreadyInTerminalState) + private static final flyteidl.admin.Event.EventErrorAlreadyInTerminalState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(); + } + + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventErrorAlreadyInTerminalState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventErrorAlreadyInTerminalState(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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EventFailureReasonOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventFailureReason) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + boolean hasAlreadyInTerminalState(); + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState(); + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder(); + + public flyteidl.admin.Event.EventFailureReason.ReasonCase getReasonCase(); + } + /** + * Protobuf type {@code flyteidl.admin.EventFailureReason} + */ + public static final class EventFailureReason extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EventFailureReason) + EventFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventFailureReason.newBuilder() to construct. + private EventFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventFailureReason() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventFailureReason( + 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: { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder subBuilder = null; + if (reasonCase_ == 1) { + subBuilder = ((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_).toBuilder(); + } + reason_ = + input.readMessage(flyteidl.admin.Event.EventErrorAlreadyInTerminalState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); + reason_ = subBuilder.buildPartial(); + } + reasonCase_ = 1; + 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 flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + public enum ReasonCase + implements com.google.protobuf.Internal.EnumLite { + ALREADY_IN_TERMINAL_STATE(1), + REASON_NOT_SET(0); + private final int value; + private ReasonCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 1: return ALREADY_IN_TERMINAL_STATE; + case 0: return REASON_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public static final int ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER = 1; + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public boolean hasAlreadyInTerminalState() { + return reasonCase_ == 1; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reasonCase_ == 1) { + output.writeMessage(1, (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reasonCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); + } + 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 flyteidl.admin.Event.EventFailureReason)) { + return super.equals(obj); + } + flyteidl.admin.Event.EventFailureReason other = (flyteidl.admin.Event.EventFailureReason) obj; + + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 1: + if (!getAlreadyInTerminalState() + .equals(other.getAlreadyInTerminalState())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (reasonCase_) { + case 1: + hash = (37 * hash) + ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER; + hash = (53 * hash) + getAlreadyInTerminalState().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.EventFailureReason parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventFailureReason 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 flyteidl.admin.Event.EventFailureReason parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventFailureReason 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 flyteidl.admin.Event.EventFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventFailureReason 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(flyteidl.admin.Event.EventFailureReason 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 flyteidl.admin.EventFailureReason} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventFailureReason) + flyteidl.admin.Event.EventFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); + } + + // Construct using flyteidl.admin.Event.EventFailureReason.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(); + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.EventFailureReason getDefaultInstanceForType() { + return flyteidl.admin.Event.EventFailureReason.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.EventFailureReason build() { + flyteidl.admin.Event.EventFailureReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.EventFailureReason buildPartial() { + flyteidl.admin.Event.EventFailureReason result = new flyteidl.admin.Event.EventFailureReason(this); + if (reasonCase_ == 1) { + if (alreadyInTerminalStateBuilder_ == null) { + result.reason_ = reason_; + } else { + result.reason_ = alreadyInTerminalStateBuilder_.build(); + } + } + result.reasonCase_ = reasonCase_; + 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 flyteidl.admin.Event.EventFailureReason) { + return mergeFrom((flyteidl.admin.Event.EventFailureReason)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.EventFailureReason other) { + if (other == flyteidl.admin.Event.EventFailureReason.getDefaultInstance()) return this; + switch (other.getReasonCase()) { + case ALREADY_IN_TERMINAL_STATE: { + mergeAlreadyInTerminalState(other.getAlreadyInTerminalState()); + break; + } + case REASON_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 { + flyteidl.admin.Event.EventFailureReason parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.EventFailureReason) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int reasonCase_ = 0; + private java.lang.Object reason_; + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> alreadyInTerminalStateBuilder_; + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public boolean hasAlreadyInTerminalState() { + return reasonCase_ == 1; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { + if (alreadyInTerminalStateBuilder_ == null) { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } else { + if (reasonCase_ == 1) { + return alreadyInTerminalStateBuilder_.getMessage(); + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder setAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { + if (alreadyInTerminalStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + alreadyInTerminalStateBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder setAlreadyInTerminalState( + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder builderForValue) { + if (alreadyInTerminalStateBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + alreadyInTerminalStateBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder mergeAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { + if (alreadyInTerminalStateBuilder_ == null) { + if (reasonCase_ == 1 && + reason_ != flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) { + reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.newBuilder((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 1) { + alreadyInTerminalStateBuilder_.mergeFrom(value); + } + alreadyInTerminalStateBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder clearAlreadyInTerminalState() { + if (alreadyInTerminalStateBuilder_ == null) { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + } + alreadyInTerminalStateBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder getAlreadyInTerminalStateBuilder() { + return getAlreadyInTerminalStateFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { + if ((reasonCase_ == 1) && (alreadyInTerminalStateBuilder_ != null)) { + return alreadyInTerminalStateBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> + getAlreadyInTerminalStateFieldBuilder() { + if (alreadyInTerminalStateBuilder_ == null) { + if (!(reasonCase_ == 1)) { + reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + alreadyInTerminalStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder>( + (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 1; + onChanged();; + return alreadyInTerminalStateBuilder_; + } + @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:flyteidl.admin.EventFailureReason) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventFailureReason) + private static final flyteidl.admin.Event.EventFailureReason DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.EventFailureReason(); + } + + public static flyteidl.admin.Event.EventFailureReason getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventFailureReason(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 flyteidl.admin.Event.EventFailureReason getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + boolean hasEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + flyteidl.event.Event.WorkflowExecutionEvent getEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder(); + } + /** + *
+   * Request to send a notification that a workflow execution event has occurred.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} + */ + public static final class WorkflowExecutionEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventRequest) + WorkflowExecutionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionEventRequest.newBuilder() to construct. + private WorkflowExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionEventRequest() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionEventRequest( + 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(); + + requestId_ = s; + break; + } + case 18: { + flyteidl.event.Event.WorkflowExecutionEvent.Builder subBuilder = null; + if (event_ != null) { + subBuilder = event_.toBuilder(); + } + event_ = input.readMessage(flyteidl.event.Event.WorkflowExecutionEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(event_); + event_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 2; + private flyteidl.event.Event.WorkflowExecutionEvent event_; + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public boolean hasEvent() { + return event_ != null; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { + return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { + return getEvent(); + } + + 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 (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (event_ != null) { + output.writeMessage(2, getEvent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (event_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); + } + 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 flyteidl.admin.Event.WorkflowExecutionEventRequest)) { + return super.equals(obj); + } + flyteidl.admin.Event.WorkflowExecutionEventRequest other = (flyteidl.admin.Event.WorkflowExecutionEventRequest) obj; + + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (hasEvent() != other.hasEvent()) return false; + if (hasEvent()) { + if (!getEvent() + .equals(other.getEvent())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasEvent()) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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 flyteidl.admin.Event.WorkflowExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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 flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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(flyteidl.admin.Event.WorkflowExecutionEventRequest 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; + } + /** + *
+     * Request to send a notification that a workflow execution event has occurred.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventRequest) + flyteidl.admin.Event.WorkflowExecutionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); + } + + // Construct using flyteidl.admin.Event.WorkflowExecutionEventRequest.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(); + requestId_ = ""; + + if (eventBuilder_ == null) { + event_ = null; + } else { + event_ = null; + eventBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { + return flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventRequest build() { + flyteidl.admin.Event.WorkflowExecutionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventRequest buildPartial() { + flyteidl.admin.Event.WorkflowExecutionEventRequest result = new flyteidl.admin.Event.WorkflowExecutionEventRequest(this); + result.requestId_ = requestId_; + if (eventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = eventBuilder_.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 flyteidl.admin.Event.WorkflowExecutionEventRequest) { + return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventRequest other) { + if (other == flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.hasEvent()) { + mergeEvent(other.getEvent()); + } + 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 { + flyteidl.admin.Event.WorkflowExecutionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.WorkflowExecutionEvent event_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> eventBuilder_; + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public boolean hasEvent() { + return eventBuilder_ != null || event_ != null; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { + if (eventBuilder_ == null) { + return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; + } else { + return eventBuilder_.getMessage(); + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder setEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + eventBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder setEvent( + flyteidl.event.Event.WorkflowExecutionEvent.Builder builderForValue) { + if (eventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + eventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder mergeEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { + if (eventBuilder_ == null) { + if (event_ != null) { + event_ = + flyteidl.event.Event.WorkflowExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + eventBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = null; + onChanged(); + } else { + event_ = null; + eventBuilder_ = null; + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEvent.Builder getEventBuilder() { + + onChanged(); + return getEventFieldBuilder().getBuilder(); + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilder(); + } else { + return event_ == null ? + flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> + getEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); + event_ = null; + } + return eventBuilder_; + } + @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:flyteidl.admin.WorkflowExecutionEventRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventRequest) + private static final flyteidl.admin.Event.WorkflowExecutionEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventRequest(); + } + + public static flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionEventRequest(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 flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionEventResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * a placeholder for now
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} + */ + public static final class WorkflowExecutionEventResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventResponse) + WorkflowExecutionEventResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionEventResponse.newBuilder() to construct. + private WorkflowExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionEventResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionEventResponse( + 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; + 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 flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.Event.WorkflowExecutionEventResponse)) { + return super.equals(obj); + } + flyteidl.admin.Event.WorkflowExecutionEventResponse other = (flyteidl.admin.Event.WorkflowExecutionEventResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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 flyteidl.admin.Event.WorkflowExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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 flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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(flyteidl.admin.Event.WorkflowExecutionEventResponse 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 placeholder for now
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventResponse) + flyteidl.admin.Event.WorkflowExecutionEventResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); + } + + // Construct using flyteidl.admin.Event.WorkflowExecutionEventResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { + return flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventResponse build() { + flyteidl.admin.Event.WorkflowExecutionEventResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventResponse buildPartial() { + flyteidl.admin.Event.WorkflowExecutionEventResponse result = new flyteidl.admin.Event.WorkflowExecutionEventResponse(this); + 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 flyteidl.admin.Event.WorkflowExecutionEventResponse) { + return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventResponse other) { + if (other == flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.Event.WorkflowExecutionEventResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.WorkflowExecutionEventResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventResponse) + private static final flyteidl.admin.Event.WorkflowExecutionEventResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventResponse(); + } + + public static flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionEventResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionEventResponse(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 flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + boolean hasEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + flyteidl.event.Event.NodeExecutionEvent getEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder(); + } + /** + *
+   * Request to send a notification that a node execution event has occurred.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} + */ + public static final class NodeExecutionEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventRequest) + NodeExecutionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionEventRequest.newBuilder() to construct. + private NodeExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionEventRequest() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionEventRequest( + 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(); + + requestId_ = s; + break; + } + case 18: { + flyteidl.event.Event.NodeExecutionEvent.Builder subBuilder = null; + if (event_ != null) { + subBuilder = event_.toBuilder(); + } + event_ = input.readMessage(flyteidl.event.Event.NodeExecutionEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(event_); + event_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 2; + private flyteidl.event.Event.NodeExecutionEvent event_; + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public boolean hasEvent() { + return event_ != null; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEvent getEvent() { + return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { + return getEvent(); + } + + 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 (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (event_ != null) { + output.writeMessage(2, getEvent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (event_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); + } + 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 flyteidl.admin.Event.NodeExecutionEventRequest)) { + return super.equals(obj); + } + flyteidl.admin.Event.NodeExecutionEventRequest other = (flyteidl.admin.Event.NodeExecutionEventRequest) obj; + + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (hasEvent() != other.hasEvent()) return false; + if (hasEvent()) { + if (!getEvent() + .equals(other.getEvent())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasEvent()) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest 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 flyteidl.admin.Event.NodeExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest 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 flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest 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(flyteidl.admin.Event.NodeExecutionEventRequest 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; + } + /** + *
+     * Request to send a notification that a node execution event has occurred.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventRequest) + flyteidl.admin.Event.NodeExecutionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); + } + + // Construct using flyteidl.admin.Event.NodeExecutionEventRequest.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(); + requestId_ = ""; + + if (eventBuilder_ == null) { + event_ = null; + } else { + event_ = null; + eventBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstanceForType() { + return flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventRequest build() { + flyteidl.admin.Event.NodeExecutionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventRequest buildPartial() { + flyteidl.admin.Event.NodeExecutionEventRequest result = new flyteidl.admin.Event.NodeExecutionEventRequest(this); + result.requestId_ = requestId_; + if (eventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = eventBuilder_.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 flyteidl.admin.Event.NodeExecutionEventRequest) { + return mergeFrom((flyteidl.admin.Event.NodeExecutionEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventRequest other) { + if (other == flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.hasEvent()) { + mergeEvent(other.getEvent()); + } + 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 { + flyteidl.admin.Event.NodeExecutionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.NodeExecutionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.NodeExecutionEvent event_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> eventBuilder_; + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public boolean hasEvent() { + return eventBuilder_ != null || event_ != null; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEvent getEvent() { + if (eventBuilder_ == null) { + return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; + } else { + return eventBuilder_.getMessage(); + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder setEvent(flyteidl.event.Event.NodeExecutionEvent value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + eventBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder setEvent( + flyteidl.event.Event.NodeExecutionEvent.Builder builderForValue) { + if (eventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + eventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder mergeEvent(flyteidl.event.Event.NodeExecutionEvent value) { + if (eventBuilder_ == null) { + if (event_ != null) { + event_ = + flyteidl.event.Event.NodeExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + eventBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = null; + onChanged(); + } else { + event_ = null; + eventBuilder_ = null; + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEvent.Builder getEventBuilder() { + + onChanged(); + return getEventFieldBuilder().getBuilder(); + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilder(); + } else { + return event_ == null ? + flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> + getEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); + event_ = null; + } + return eventBuilder_; + } + @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:flyteidl.admin.NodeExecutionEventRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventRequest) + private static final flyteidl.admin.Event.NodeExecutionEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventRequest(); + } + + public static flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionEventRequest(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 flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionEventResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * a placeholder for now
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} + */ + public static final class NodeExecutionEventResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventResponse) + NodeExecutionEventResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionEventResponse.newBuilder() to construct. + private NodeExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionEventResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionEventResponse( + 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; + 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 flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.Event.NodeExecutionEventResponse)) { + return super.equals(obj); + } + flyteidl.admin.Event.NodeExecutionEventResponse other = (flyteidl.admin.Event.NodeExecutionEventResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse 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 flyteidl.admin.Event.NodeExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse 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 flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse 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(flyteidl.admin.Event.NodeExecutionEventResponse 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 placeholder for now
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventResponse) + flyteidl.admin.Event.NodeExecutionEventResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); + } + + // Construct using flyteidl.admin.Event.NodeExecutionEventResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstanceForType() { + return flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventResponse build() { + flyteidl.admin.Event.NodeExecutionEventResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventResponse buildPartial() { + flyteidl.admin.Event.NodeExecutionEventResponse result = new flyteidl.admin.Event.NodeExecutionEventResponse(this); + 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 flyteidl.admin.Event.NodeExecutionEventResponse) { + return mergeFrom((flyteidl.admin.Event.NodeExecutionEventResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventResponse other) { + if (other == flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.Event.NodeExecutionEventResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.NodeExecutionEventResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.NodeExecutionEventResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventResponse) + private static final flyteidl.admin.Event.NodeExecutionEventResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventResponse(); + } + + public static flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionEventResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionEventResponse(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 flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + boolean hasEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + flyteidl.event.Event.TaskExecutionEvent getEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder(); + } + /** + *
+   * Request to send a notification that a task execution event has occurred.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} + */ + public static final class TaskExecutionEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventRequest) + TaskExecutionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionEventRequest.newBuilder() to construct. + private TaskExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionEventRequest() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionEventRequest( + 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(); + + requestId_ = s; + break; + } + case 18: { + flyteidl.event.Event.TaskExecutionEvent.Builder subBuilder = null; + if (event_ != null) { + subBuilder = event_.toBuilder(); + } + event_ = input.readMessage(flyteidl.event.Event.TaskExecutionEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(event_); + event_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 2; + private flyteidl.event.Event.TaskExecutionEvent event_; + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public boolean hasEvent() { + return event_ != null; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEvent getEvent() { + return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { + return getEvent(); + } + + 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 (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (event_ != null) { + output.writeMessage(2, getEvent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (event_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); + } + 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 flyteidl.admin.Event.TaskExecutionEventRequest)) { + return super.equals(obj); + } + flyteidl.admin.Event.TaskExecutionEventRequest other = (flyteidl.admin.Event.TaskExecutionEventRequest) obj; + + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (hasEvent() != other.hasEvent()) return false; + if (hasEvent()) { + if (!getEvent() + .equals(other.getEvent())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasEvent()) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest 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 flyteidl.admin.Event.TaskExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest 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 flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest 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(flyteidl.admin.Event.TaskExecutionEventRequest 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; + } + /** + *
+     * Request to send a notification that a task execution event has occurred.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventRequest) + flyteidl.admin.Event.TaskExecutionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); + } + + // Construct using flyteidl.admin.Event.TaskExecutionEventRequest.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(); + requestId_ = ""; + + if (eventBuilder_ == null) { + event_ = null; + } else { + event_ = null; + eventBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstanceForType() { + return flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventRequest build() { + flyteidl.admin.Event.TaskExecutionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventRequest buildPartial() { + flyteidl.admin.Event.TaskExecutionEventRequest result = new flyteidl.admin.Event.TaskExecutionEventRequest(this); + result.requestId_ = requestId_; + if (eventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = eventBuilder_.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 flyteidl.admin.Event.TaskExecutionEventRequest) { + return mergeFrom((flyteidl.admin.Event.TaskExecutionEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventRequest other) { + if (other == flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.hasEvent()) { + mergeEvent(other.getEvent()); + } + 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 { + flyteidl.admin.Event.TaskExecutionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.TaskExecutionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.TaskExecutionEvent event_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> eventBuilder_; + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public boolean hasEvent() { + return eventBuilder_ != null || event_ != null; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEvent getEvent() { + if (eventBuilder_ == null) { + return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; + } else { + return eventBuilder_.getMessage(); + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder setEvent(flyteidl.event.Event.TaskExecutionEvent value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + eventBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder setEvent( + flyteidl.event.Event.TaskExecutionEvent.Builder builderForValue) { + if (eventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + eventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder mergeEvent(flyteidl.event.Event.TaskExecutionEvent value) { + if (eventBuilder_ == null) { + if (event_ != null) { + event_ = + flyteidl.event.Event.TaskExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + eventBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = null; + onChanged(); + } else { + event_ = null; + eventBuilder_ = null; + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEvent.Builder getEventBuilder() { + + onChanged(); + return getEventFieldBuilder().getBuilder(); + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilder(); + } else { + return event_ == null ? + flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> + getEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); + event_ = null; + } + return eventBuilder_; + } + @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:flyteidl.admin.TaskExecutionEventRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventRequest) + private static final flyteidl.admin.Event.TaskExecutionEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventRequest(); + } + + public static flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionEventRequest(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 flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionEventResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * a placeholder for now
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} + */ + public static final class TaskExecutionEventResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventResponse) + TaskExecutionEventResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionEventResponse.newBuilder() to construct. + private TaskExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionEventResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionEventResponse( + 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; + 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 flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.Event.TaskExecutionEventResponse)) { + return super.equals(obj); + } + flyteidl.admin.Event.TaskExecutionEventResponse other = (flyteidl.admin.Event.TaskExecutionEventResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse 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 flyteidl.admin.Event.TaskExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse 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 flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse 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(flyteidl.admin.Event.TaskExecutionEventResponse 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 placeholder for now
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventResponse) + flyteidl.admin.Event.TaskExecutionEventResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); + } + + // Construct using flyteidl.admin.Event.TaskExecutionEventResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstanceForType() { + return flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventResponse build() { + flyteidl.admin.Event.TaskExecutionEventResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventResponse buildPartial() { + flyteidl.admin.Event.TaskExecutionEventResponse result = new flyteidl.admin.Event.TaskExecutionEventResponse(this); + 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 flyteidl.admin.Event.TaskExecutionEventResponse) { + return mergeFrom((flyteidl.admin.Event.TaskExecutionEventResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventResponse other) { + if (other == flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.Event.TaskExecutionEventResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.TaskExecutionEventResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.TaskExecutionEventResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventResponse) + private static final flyteidl.admin.Event.TaskExecutionEventResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventResponse(); + } + + public static flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionEventResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionEventResponse(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 flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EventFailureReason_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionEventResponse_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\032flyteidl/admin/event.proto\022\016flyteidl.a" + + "dmin\032\032flyteidl/event/event.proto\"9\n Even" + + "tErrorAlreadyInTerminalState\022\025\n\rcurrent_" + + "phase\030\001 \001(\t\"u\n\022EventFailureReason\022U\n\031alr" + + "eady_in_terminal_state\030\001 \001(\01320.flyteidl." + + "admin.EventErrorAlreadyInTerminalStateH\000" + + "B\010\n\006reason\"j\n\035WorkflowExecutionEventRequ" + + "est\022\022\n\nrequest_id\030\001 \001(\t\0225\n\005event\030\002 \001(\0132&" + + ".flyteidl.event.WorkflowExecutionEvent\" " + + "\n\036WorkflowExecutionEventResponse\"b\n\031Node" + + "ExecutionEventRequest\022\022\n\nrequest_id\030\001 \001(" + + "\t\0221\n\005event\030\002 \001(\0132\".flyteidl.event.NodeEx" + + "ecutionEvent\"\034\n\032NodeExecutionEventRespon" + + "se\"b\n\031TaskExecutionEventRequest\022\022\n\nreque" + + "st_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".flyteidl.ev" + + "ent.TaskExecutionEvent\"\034\n\032TaskExecutionE" + + "ventResponseB3Z1github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.event.Event.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor, + new java.lang.String[] { "CurrentPhase", }); + internal_static_flyteidl_admin_EventFailureReason_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EventFailureReason_descriptor, + new java.lang.String[] { "AlreadyInTerminalState", "Reason", }); + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor, + new java.lang.String[] { "RequestId", "Event", }); + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor, + new java.lang.String[] { "RequestId", "Event", }); + internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor, + new java.lang.String[] { "RequestId", "Event", }); + internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor, + new java.lang.String[] { }); + flyteidl.event.Event.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java b/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java new file mode 100644 index 000000000..0e344e51e --- /dev/null +++ b/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java @@ -0,0 +1,20558 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/execution.proto + +package flyteidl.admin; + +public final class ExecutionOuterClass { + private ExecutionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ExecutionCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project the execution belongs to. 
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the execution belongs to. 
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the execution belongs to. 
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the execution belongs to. 
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + boolean hasSpec(); + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + boolean hasInputs(); + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + flyteidl.core.Literals.LiteralMap getInputs(); + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); + } + /** + *
+   * Request to launch an execution with the given project, domain and optionally name.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} + */ + public static final class ExecutionCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateRequest) + ExecutionCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionCreateRequest.newBuilder() to construct. + private ExecutionCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionCreateRequest() { + project_ = ""; + domain_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionCreateRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the execution belongs to. 
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the execution belongs to. 
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the execution belongs to. 
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the execution belongs to. 
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + 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 SPEC_FIELD_NUMBER = 4; + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int INPUTS_FIELD_NUMBER = 5; + private flyteidl.core.Literals.LiteralMap inputs_; + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + if (spec_ != null) { + output.writeMessage(4, getSpec()); + } + if (inputs_ != null) { + output.writeMessage(5, getInputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSpec()); + } + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInputs()); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getName() + .equals(other.getName())) return false; + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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(flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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; + } + /** + *
+     * Request to launch an execution with the given project, domain and optionally name.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.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(); + project_ = ""; + + domain_ = ""; + + name_ = ""; + + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder setSpec( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private flyteidl.core.Literals.LiteralMap inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public Builder setInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + @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:flyteidl.admin.ExecutionCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionCreateRequest(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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionRelaunchRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionRelaunchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Request to relaunch the referenced execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} + */ + public static final class ExecutionRelaunchRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionRelaunchRequest) + ExecutionRelaunchRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionRelaunchRequest.newBuilder() to construct. + private ExecutionRelaunchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionRelaunchRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionRelaunchRequest( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + 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 (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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(flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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; + } + /** + *
+     * Request to relaunch the referenced execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionRelaunchRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionRelaunchRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRelaunchRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionRelaunchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionRelaunchRequest(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 flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * The unique identifier for a successfully created execution.
+   * If the name was *not* specified in the create request, this identifier will include a generated name.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} + */ + public static final class ExecutionCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateResponse) + ExecutionCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionCreateResponse.newBuilder() to construct. + private ExecutionCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionCreateResponse( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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(flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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; + } + /** + *
+     * The unique identifier for a successfully created execution.
+     * If the name was *not* specified in the create request, this identifier will include a generated name.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateResponse) + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse build() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.ExecutionCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateResponse) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionCreateResponse(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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A message used to fetch a single workflow execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} + */ + public static final class WorkflowExecutionGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetRequest) + WorkflowExecutionGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetRequest.newBuilder() to construct. + private WorkflowExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetRequest( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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 message used to fetch a single workflow execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetRequest) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.WorkflowExecutionGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetRequest) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetRequest(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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Execution) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + boolean hasClosure(); + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure(); + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * A workflow execution represents an instantiated workflow, including all inputs and additional
+   * metadata as well as computed results included state, outputs, and duration-based attributes.
+   * Used as a response object used in Get and List execution requests.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Execution} + */ + public static final class Execution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Execution) + ExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Execution.newBuilder() to construct. + private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Execution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Execution( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_; + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { + return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; + } + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + 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 (spec_ != null) { + output.writeMessage(2, getSpec()); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + 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 (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + 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 flyteidl.admin.ExecutionOuterClass.Execution)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.Execution other = (flyteidl.admin.ExecutionOuterClass.Execution) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) 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(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.Execution 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 flyteidl.admin.ExecutionOuterClass.Execution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.Execution 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 flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.Execution 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(flyteidl.admin.ExecutionOuterClass.Execution 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 workflow execution represents an instantiated workflow, including all inputs and additional
+     * metadata as well as computed results included state, outputs, and duration-based attributes.
+     * Used as a response object used in Get and List execution requests.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Execution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Execution) + flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.Execution.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.Execution build() { + flyteidl.admin.ExecutionOuterClass.Execution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.Execution buildPartial() { + flyteidl.admin.ExecutionOuterClass.Execution result = new flyteidl.admin.ExecutionOuterClass.Execution(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.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 flyteidl.admin.ExecutionOuterClass.Execution) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.Execution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.Execution other) { + if (other == flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.Execution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.Execution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> closureBuilder_; + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + @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:flyteidl.admin.Execution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Execution) + private static final flyteidl.admin.ExecutionOuterClass.Execution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.Execution(); + } + + public static flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Execution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Execution(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 flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + java.util.List + getExecutionsList(); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + int getExecutionsCount(); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + java.util.List + getExecutionsOrBuilderList(); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Used as a response for request to list executions.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionList} + */ + public static final class ExecutionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionList) + ExecutionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionList.newBuilder() to construct. + private ExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionList() { + executions_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionList( + 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)) { + executions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + executions_.add( + input.readMessage(flyteidl.admin.ExecutionOuterClass.Execution.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); + } + + private int bitField0_; + public static final int EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List executions_; + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List getExecutionsList() { + return executions_; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List + getExecutionsOrBuilderList() { + return executions_; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public int getExecutionsCount() { + return executions_.size(); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { + return executions_.get(index); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( + int index) { + return executions_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < executions_.size(); i++) { + output.writeMessage(1, executions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < executions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, executions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionList)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionList other = (flyteidl.admin.ExecutionOuterClass.ExecutionList) obj; + + if (!getExecutionsList() + .equals(other.getExecutionsList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getExecutionsCount() > 0) { + hash = (37 * hash) + EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExecutionsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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 flyteidl.admin.ExecutionOuterClass.ExecutionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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 flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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(flyteidl.admin.ExecutionOuterClass.ExecutionList 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; + } + /** + *
+     * Used as a response for request to list executions.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionList) + flyteidl.admin.ExecutionOuterClass.ExecutionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getExecutionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + executionsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionList build() { + flyteidl.admin.ExecutionOuterClass.ExecutionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionList buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionList result = new flyteidl.admin.ExecutionOuterClass.ExecutionList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (executionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.executions_ = executions_; + } else { + result.executions_ = executionsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.ExecutionOuterClass.ExecutionList) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionList other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance()) return this; + if (executionsBuilder_ == null) { + if (!other.executions_.isEmpty()) { + if (executions_.isEmpty()) { + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExecutionsIsMutable(); + executions_.addAll(other.executions_); + } + onChanged(); + } + } else { + if (!other.executions_.isEmpty()) { + if (executionsBuilder_.isEmpty()) { + executionsBuilder_.dispose(); + executionsBuilder_ = null; + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + executionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExecutionsFieldBuilder() : null; + } else { + executionsBuilder_.addAllMessages(other.executions_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.ExecutionOuterClass.ExecutionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List executions_ = + java.util.Collections.emptyList(); + private void ensureExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + executions_ = new java.util.ArrayList(executions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> executionsBuilder_; + + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List getExecutionsList() { + if (executionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(executions_); + } else { + return executionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public int getExecutionsCount() { + if (executionsBuilder_ == null) { + return executions_.size(); + } else { + return executionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); + } else { + return executionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder setExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.set(index, value); + onChanged(); + } else { + executionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder setExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.set(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions(flyteidl.admin.ExecutionOuterClass.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(value); + onChanged(); + } else { + executionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(index, value); + onChanged(); + } else { + executionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions( + flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addAllExecutions( + java.lang.Iterable values) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, executions_); + onChanged(); + } else { + executionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder clearExecutions() { + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + executionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder removeExecutions(int index) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.remove(index); + onChanged(); + } else { + executionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution.Builder getExecutionsBuilder( + int index) { + return getExecutionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( + int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); } else { + return executionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List + getExecutionsOrBuilderList() { + if (executionsBuilder_ != null) { + return executionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(executions_); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder() { + return getExecutionsFieldBuilder().addBuilder( + flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder( + int index) { + return getExecutionsFieldBuilder().addBuilder( + index, flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List + getExecutionsBuilderList() { + return getExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> + getExecutionsFieldBuilder() { + if (executionsBuilder_ == null) { + executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder>( + executions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + executions_ = null; + } + return executionsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.ExecutionList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionList) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionList(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionList(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 flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralMapBlobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LiteralMapBlob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + boolean hasValues(); + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + flyteidl.core.Literals.LiteralMap getValues(); + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder(); + + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + java.lang.String getUri(); + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + com.google.protobuf.ByteString + getUriBytes(); + + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.DataCase getDataCase(); + } + /** + *
+   * Input/output data can represented by actual values or a link to where values are stored
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LiteralMapBlob} + */ + public static final class LiteralMapBlob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LiteralMapBlob) + LiteralMapBlobOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralMapBlob.newBuilder() to construct. + private LiteralMapBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralMapBlob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralMapBlob( + 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: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (dataCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) data_).toBuilder(); + } + data_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) data_); + data_ = subBuilder.buildPartial(); + } + dataCase_ = 1; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + dataCase_ = 2; + data_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); + } + + private int dataCase_ = 0; + private java.lang.Object data_; + public enum DataCase + implements com.google.protobuf.Internal.EnumLite { + VALUES(1), + URI(2), + DATA_NOT_SET(0); + private final int value; + private DataCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 1: return VALUES; + case 2: return URI; + case 0: return DATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public static final int VALUES_FIELD_NUMBER = 1; + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public boolean hasValues() { + return dataCase_ == 1; + } + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMap getValues() { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public static final int URI_FIELD_NUMBER = 2; + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + 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(); + if (dataCase_ == 2) { + data_ = s; + } + return s; + } + } + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (dataCase_ == 2) { + data_ = 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 (dataCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.LiteralMap) data_); + } + if (dataCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.LiteralMap) data_); + } + if (dataCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_); + } + 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) obj; + + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 1: + if (!getValues() + .equals(other.getValues())) return false; + break; + case 2: + if (!getUri() + .equals(other.getUri())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (dataCase_) { + case 1: + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValues().hashCode(); + break; + case 2: + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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; + } + /** + *
+     * Input/output data can represented by actual values or a link to where values are stored
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LiteralMapBlob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LiteralMapBlob) + flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.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(); + dataCase_ = 0; + data_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob build() { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob buildPartial() { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(this); + if (dataCase_ == 1) { + if (valuesBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = valuesBuilder_.build(); + } + } + if (dataCase_ == 2) { + result.data_ = data_; + } + result.dataCase_ = dataCase_; + 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other) { + if (other == flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) return this; + switch (other.getDataCase()) { + case VALUES: { + mergeValues(other.getValues()); + break; + } + case URI: { + dataCase_ = 2; + data_ = other.data_; + onChanged(); + break; + } + case DATA_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 { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int dataCase_ = 0; + private java.lang.Object data_; + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> valuesBuilder_; + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public boolean hasValues() { + return dataCase_ == 1; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMap getValues() { + if (valuesBuilder_ == null) { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (dataCase_ == 1) { + return valuesBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public Builder setValues(flyteidl.core.Literals.LiteralMap value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + valuesBuilder_.setMessage(value); + } + dataCase_ = 1; + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public Builder setValues( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (valuesBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + valuesBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 1; + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public Builder mergeValues(flyteidl.core.Literals.LiteralMap value) { + if (valuesBuilder_ == null) { + if (dataCase_ == 1 && + data_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + data_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) data_) + .mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 1) { + valuesBuilder_.mergeFrom(value); + } + valuesBuilder_.setMessage(value); + } + dataCase_ = 1; + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + } + valuesBuilder_.clear(); + } + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMap.Builder getValuesBuilder() { + return getValuesFieldBuilder().getBuilder(); + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { + if ((dataCase_ == 1) && (valuesBuilder_ != null)) { + return valuesBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + if (!(dataCase_ == 1)) { + data_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 1; + onChanged();; + return valuesBuilder_; + } + + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 2) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (dataCase_ == 2) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataCase_ = 2; + data_ = value; + onChanged(); + return this; + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public Builder clearUri() { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataCase_ = 2; + data_ = 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:flyteidl.admin.LiteralMapBlob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LiteralMapBlob) + private static final flyteidl.admin.ExecutionOuterClass.LiteralMapBlob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(); + } + + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiteralMapBlob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralMapBlob(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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AbortMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.AbortMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string cause = 1; + */ + java.lang.String getCause(); + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string cause = 1; + */ + com.google.protobuf.ByteString + getCauseBytes(); + + /** + *
+     * Identifies the entity (if any) responsible for terminating the execution
+     * 
+ * + * string principal = 2; + */ + java.lang.String getPrincipal(); + /** + *
+     * Identifies the entity (if any) responsible for terminating the execution
+     * 
+ * + * string principal = 2; + */ + com.google.protobuf.ByteString + getPrincipalBytes(); + } + /** + * Protobuf type {@code flyteidl.admin.AbortMetadata} + */ + public static final class AbortMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.AbortMetadata) + AbortMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use AbortMetadata.newBuilder() to construct. + private AbortMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AbortMetadata() { + cause_ = ""; + principal_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AbortMetadata( + 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(); + + cause_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + principal_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.AbortMetadata.class, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder.class); + } + + public static final int CAUSE_FIELD_NUMBER = 1; + private volatile java.lang.Object cause_; + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string cause = 1; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + 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(); + cause_ = s; + return s; + } + } + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string cause = 1; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRINCIPAL_FIELD_NUMBER = 2; + private volatile java.lang.Object principal_; + /** + *
+     * Identifies the entity (if any) responsible for terminating the execution
+     * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + 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(); + principal_ = s; + return s; + } + } + /** + *
+     * Identifies the entity (if any) responsible for terminating the execution
+     * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = 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 (!getCauseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cause_); + } + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCauseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cause_); + } + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); + } + 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.AbortMetadata other = (flyteidl.admin.ExecutionOuterClass.AbortMetadata) obj; + + if (!getCause() + .equals(other.getCause())) return false; + if (!getPrincipal() + .equals(other.getPrincipal())) 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) + CAUSE_FIELD_NUMBER; + hash = (53 * hash) + getCause().hashCode(); + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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(flyteidl.admin.ExecutionOuterClass.AbortMetadata 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 flyteidl.admin.AbortMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.AbortMetadata) + flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.AbortMetadata.class, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.AbortMetadata.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(); + cause_ = ""; + + principal_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.AbortMetadata build() { + flyteidl.admin.ExecutionOuterClass.AbortMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.AbortMetadata buildPartial() { + flyteidl.admin.ExecutionOuterClass.AbortMetadata result = new flyteidl.admin.ExecutionOuterClass.AbortMetadata(this); + result.cause_ = cause_; + result.principal_ = principal_; + 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.AbortMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.AbortMetadata other) { + if (other == flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance()) return this; + if (!other.getCause().isEmpty()) { + cause_ = other.cause_; + onChanged(); + } + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + 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 { + flyteidl.admin.ExecutionOuterClass.AbortMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.AbortMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object cause_ = ""; + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cause_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public Builder setCause( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cause_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public Builder clearCause() { + + cause_ = getDefaultInstance().getCause(); + onChanged(); + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public Builder setCauseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cause_ = value; + onChanged(); + return this; + } + + private java.lang.Object principal_ = ""; + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principal_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public Builder clearPrincipal() { + + principal_ = getDefaultInstance().getPrincipal(); + onChanged(); + return this; + } + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principal_ = 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:flyteidl.admin.AbortMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.AbortMetadata) + private static final flyteidl.admin.ExecutionOuterClass.AbortMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.AbortMetadata(); + } + + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AbortMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AbortMetadata(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 flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + boolean hasOutputs(); + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs(); + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder(); + + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + boolean hasError(); + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getAbortCause(); + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getAbortCauseBytes(); + + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + boolean hasAbortMetadata(); + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata(); + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder(); + + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasComputedInputs(); + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getComputedInputs(); + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder(); + + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + int getPhaseValue(); + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); + + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + boolean hasStartedAt(); + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.Timestamp getStartedAt(); + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); + + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + boolean hasDuration(); + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.Duration getDuration(); + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + boolean hasCreatedAt(); + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + boolean hasUpdatedAt(); + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + java.util.List + getNotificationsList(); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + flyteidl.admin.Common.Notification getNotifications(int index); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + int getNotificationsCount(); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + java.util.List + getNotificationsOrBuilderList(); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index); + + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + boolean hasWorkflowId(); + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); + + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.OutputResultCase getOutputResultCase(); + } + /** + *
+   * Encapsulates the results of the Execution
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionClosure} + */ + public static final class ExecutionClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionClosure) + ExecutionClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionClosure.newBuilder() to construct. + private ExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionClosure() { + phase_ = 0; + notifications_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionClosure( + 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: { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder subBuilder = null; + if (outputResultCase_ == 1) { + subBuilder = ((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 1; + break; + } + case 18: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 2; + break; + } + case 26: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (computedInputs_ != null) { + subBuilder = computedInputs_.toBuilder(); + } + computedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(computedInputs_); + computedInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startedAt_ != null) { + subBuilder = startedAt_.toBuilder(); + } + startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startedAt_); + startedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + 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 66: { + 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; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000400) != 0)) { + notifications_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + notifications_.add( + input.readMessage(flyteidl.admin.Common.Notification.parser(), extensionRegistry)); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 10; + outputResult_ = s; + break; + } + case 90: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (workflowId_ != null) { + subBuilder = workflowId_.toBuilder(); + } + workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowId_); + workflowId_ = subBuilder.buildPartial(); + } + + break; + } + case 98: { + flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder subBuilder = null; + if (outputResultCase_ == 12) { + subBuilder = ((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.admin.ExecutionOuterClass.AbortMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 12; + 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_ & 0x00000400) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); + } + + private int bitField0_; + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUTS(1), + ERROR(2), + @java.lang.Deprecated ABORT_CAUSE(10), + ABORT_METADATA(12), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 1: return OUTPUTS; + case 2: return ERROR; + case 10: return ABORT_CAUSE; + case 12: return ABORT_METADATA; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int OUTPUTS_FIELD_NUMBER = 1; + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public boolean hasOutputs() { + return outputResultCase_ == 1; + } + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int ABORT_CAUSE_FIELD_NUMBER = 10; + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getAbortCause() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 10) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getAbortCauseBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 10) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ABORT_METADATA_FIELD_NUMBER = 12; + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public boolean hasAbortMetadata() { + return outputResultCase_ == 12; + } + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata() { + if (outputResultCase_ == 12) { + return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder() { + if (outputResultCase_ == 12) { + return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + + public static final int COMPUTED_INPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Literals.LiteralMap computedInputs_; + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasComputedInputs() { + return computedInputs_ != null; + } + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getComputedInputs() { + return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; + } + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { + return getComputedInputs(); + } + + public static final int PHASE_FIELD_NUMBER = 4; + private int phase_; + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + + public static final int STARTED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp startedAt_; + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAt_ != null; + } + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + return getStartedAt(); + } + + public static final int DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration duration_; + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 9; + private java.util.List notifications_; + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List getNotificationsList() { + return notifications_; + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List + getNotificationsOrBuilderList() { + return notifications_; + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public int getNotificationsCount() { + return notifications_.size(); + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + return notifications_.get(index); + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + return notifications_.get(index); + } + + public static final int WORKFLOW_ID_FIELD_NUMBER = 11; + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public boolean hasWorkflowId() { + return workflowId_ != null; + } + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + return getWorkflowId(); + } + + 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 (outputResultCase_ == 1) { + output.writeMessage(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); + } + if (outputResultCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (computedInputs_ != null) { + output.writeMessage(3, getComputedInputs()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(4, phase_); + } + if (startedAt_ != null) { + output.writeMessage(5, getStartedAt()); + } + if (duration_ != null) { + output.writeMessage(6, getDuration()); + } + if (createdAt_ != null) { + output.writeMessage(7, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(8, getUpdatedAt()); + } + for (int i = 0; i < notifications_.size(); i++) { + output.writeMessage(9, notifications_.get(i)); + } + if (outputResultCase_ == 10) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, outputResult_); + } + if (workflowId_ != null) { + output.writeMessage(11, getWorkflowId()); + } + if (outputResultCase_ == 12) { + output.writeMessage(12, (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputResultCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); + } + if (outputResultCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (computedInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getComputedInputs()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, phase_); + } + if (startedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartedAt()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDuration()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdatedAt()); + } + for (int i = 0; i < notifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, notifications_.get(i)); + } + if (outputResultCase_ == 10) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, outputResult_); + } + if (workflowId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getWorkflowId()); + } + if (outputResultCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionClosure other = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) obj; + + if (hasComputedInputs() != other.hasComputedInputs()) return false; + if (hasComputedInputs()) { + if (!getComputedInputs() + .equals(other.getComputedInputs())) return false; + } + if (phase_ != other.phase_) return false; + if (hasStartedAt() != other.hasStartedAt()) return false; + if (hasStartedAt()) { + if (!getStartedAt() + .equals(other.getStartedAt())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) 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 (!getNotificationsList() + .equals(other.getNotificationsList())) return false; + if (hasWorkflowId() != other.hasWorkflowId()) return false; + if (hasWorkflowId()) { + if (!getWorkflowId() + .equals(other.getWorkflowId())) return false; + } + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 1: + if (!getOutputs() + .equals(other.getOutputs())) return false; + break; + case 2: + if (!getError() + .equals(other.getError())) return false; + break; + case 10: + if (!getAbortCause() + .equals(other.getAbortCause())) return false; + break; + case 12: + if (!getAbortMetadata() + .equals(other.getAbortMetadata())) 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(); + if (hasComputedInputs()) { + hash = (37 * hash) + COMPUTED_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getComputedInputs().hashCode(); + } + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasStartedAt()) { + hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getStartedAt().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().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(); + } + if (getNotificationsCount() > 0) { + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationsList().hashCode(); + } + if (hasWorkflowId()) { + hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId().hashCode(); + } + switch (outputResultCase_) { + case 1: + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 10: + hash = (37 * hash) + ABORT_CAUSE_FIELD_NUMBER; + hash = (53 * hash) + getAbortCause().hashCode(); + break; + case 12: + hash = (37 * hash) + ABORT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getAbortMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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(flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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; + } + /** + *
+     * Encapsulates the results of the Execution
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionClosure) + flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNotificationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (computedInputsBuilder_ == null) { + computedInputs_ = null; + } else { + computedInputs_ = null; + computedInputsBuilder_ = null; + } + phase_ = 0; + + if (startedAtBuilder_ == null) { + startedAt_ = null; + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + notificationsBuilder_.clear(); + } + if (workflowIdBuilder_ == null) { + workflowId_ = null; + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure build() { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (outputResultCase_ == 1) { + if (outputsBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = outputsBuilder_.build(); + } + } + if (outputResultCase_ == 2) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (outputResultCase_ == 10) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 12) { + if (abortMetadataBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = abortMetadataBuilder_.build(); + } + } + if (computedInputsBuilder_ == null) { + result.computedInputs_ = computedInputs_; + } else { + result.computedInputs_ = computedInputsBuilder_.build(); + } + result.phase_ = phase_; + if (startedAtBuilder_ == null) { + result.startedAt_ = startedAt_; + } else { + result.startedAt_ = startedAtBuilder_.build(); + } + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + if (notificationsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.notifications_ = notifications_; + } else { + result.notifications_ = notificationsBuilder_.build(); + } + if (workflowIdBuilder_ == null) { + result.workflowId_ = workflowId_; + } else { + result.workflowId_ = workflowIdBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.outputResultCase_ = outputResultCase_; + 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionClosure other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance()) return this; + if (other.hasComputedInputs()) { + mergeComputedInputs(other.getComputedInputs()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasStartedAt()) { + mergeStartedAt(other.getStartedAt()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + if (notificationsBuilder_ == null) { + if (!other.notifications_.isEmpty()) { + if (notifications_.isEmpty()) { + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureNotificationsIsMutable(); + notifications_.addAll(other.notifications_); + } + onChanged(); + } + } else { + if (!other.notifications_.isEmpty()) { + if (notificationsBuilder_.isEmpty()) { + notificationsBuilder_.dispose(); + notificationsBuilder_ = null; + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000400); + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; + } else { + notificationsBuilder_.addAllMessages(other.notifications_); + } + } + } + if (other.hasWorkflowId()) { + mergeWorkflowId(other.getWorkflowId()); + } + switch (other.getOutputResultCase()) { + case OUTPUTS: { + mergeOutputs(other.getOutputs()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case ABORT_CAUSE: { + outputResultCase_ = 10; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ABORT_METADATA: { + mergeAbortMetadata(other.getAbortMetadata()); + break; + } + case OUTPUTRESULT_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 { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> outputsBuilder_; + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public boolean hasOutputs() { + return outputResultCase_ == 1; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { + if (outputsBuilder_ == null) { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } else { + if (outputResultCase_ == 1) { + return outputsBuilder_.getMessage(); + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public Builder setOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + outputResultCase_ = 1; + return this; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public Builder setOutputs( + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 1; + return this; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public Builder mergeOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { + if (outputsBuilder_ == null) { + if (outputResultCase_ == 1 && + outputResult_ != flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.newBuilder((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 1) { + outputsBuilder_.mergeFrom(value); + } + outputsBuilder_.setMessage(value); + } + outputResultCase_ = 1; + return this; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + } + outputsBuilder_.clear(); + } + return this; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder getOutputsBuilder() { + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { + if ((outputResultCase_ == 1) && (outputsBuilder_ != null)) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + if (!(outputResultCase_ == 1)) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder>( + (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 1; + onChanged();; + return outputsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 2)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 2; + onChanged();; + return errorBuilder_; + } + + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getAbortCause() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 10) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getAbortCauseBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 10) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAbortCause( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 10; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearAbortCause() { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAbortCauseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 10; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder> abortMetadataBuilder_; + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public boolean hasAbortMetadata() { + return outputResultCase_ == 12; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata() { + if (abortMetadataBuilder_ == null) { + if (outputResultCase_ == 12) { + return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } else { + if (outputResultCase_ == 12) { + return abortMetadataBuilder_.getMessage(); + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public Builder setAbortMetadata(flyteidl.admin.ExecutionOuterClass.AbortMetadata value) { + if (abortMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + abortMetadataBuilder_.setMessage(value); + } + outputResultCase_ = 12; + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public Builder setAbortMetadata( + flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder builderForValue) { + if (abortMetadataBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + abortMetadataBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 12; + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public Builder mergeAbortMetadata(flyteidl.admin.ExecutionOuterClass.AbortMetadata value) { + if (abortMetadataBuilder_ == null) { + if (outputResultCase_ == 12 && + outputResult_ != flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance()) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.AbortMetadata.newBuilder((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 12) { + abortMetadataBuilder_.mergeFrom(value); + } + abortMetadataBuilder_.setMessage(value); + } + outputResultCase_ = 12; + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public Builder clearAbortMetadata() { + if (abortMetadataBuilder_ == null) { + if (outputResultCase_ == 12) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 12) { + outputResultCase_ = 0; + outputResult_ = null; + } + abortMetadataBuilder_.clear(); + } + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder getAbortMetadataBuilder() { + return getAbortMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder() { + if ((outputResultCase_ == 12) && (abortMetadataBuilder_ != null)) { + return abortMetadataBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 12) { + return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder> + getAbortMetadataFieldBuilder() { + if (abortMetadataBuilder_ == null) { + if (!(outputResultCase_ == 12)) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + abortMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder>( + (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 12; + onChanged();; + return abortMetadataBuilder_; + } + + private flyteidl.core.Literals.LiteralMap computedInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> computedInputsBuilder_; + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasComputedInputs() { + return computedInputsBuilder_ != null || computedInputs_ != null; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getComputedInputs() { + if (computedInputsBuilder_ == null) { + return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; + } else { + return computedInputsBuilder_.getMessage(); + } + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setComputedInputs(flyteidl.core.Literals.LiteralMap value) { + if (computedInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + computedInputs_ = value; + onChanged(); + } else { + computedInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setComputedInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (computedInputsBuilder_ == null) { + computedInputs_ = builderForValue.build(); + onChanged(); + } else { + computedInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeComputedInputs(flyteidl.core.Literals.LiteralMap value) { + if (computedInputsBuilder_ == null) { + if (computedInputs_ != null) { + computedInputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(computedInputs_).mergeFrom(value).buildPartial(); + } else { + computedInputs_ = value; + } + onChanged(); + } else { + computedInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearComputedInputs() { + if (computedInputsBuilder_ == null) { + computedInputs_ = null; + onChanged(); + } else { + computedInputs_ = null; + computedInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getComputedInputsBuilder() { + + onChanged(); + return getComputedInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { + if (computedInputsBuilder_ != null) { + return computedInputsBuilder_.getMessageOrBuilder(); + } else { + return computedInputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; + } + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getComputedInputsFieldBuilder() { + if (computedInputsBuilder_ == null) { + computedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getComputedInputs(), + getParentForChildren(), + isClean()); + computedInputs_ = null; + } + return computedInputsBuilder_; + } + + private int phase_ = 0; + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAtBuilder_ != null || startedAt_ != null; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + if (startedAtBuilder_ == null) { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } else { + return startedAtBuilder_.getMessage(); + } + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedAt_ = value; + onChanged(); + } else { + startedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedAtBuilder_ == null) { + startedAt_ = builderForValue.build(); + onChanged(); + } else { + startedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (startedAt_ != null) { + startedAt_ = + com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); + } else { + startedAt_ = value; + } + onChanged(); + } else { + startedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder clearStartedAt() { + if (startedAtBuilder_ == null) { + startedAt_ = null; + onChanged(); + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { + + onChanged(); + return getStartedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + if (startedAtBuilder_ != null) { + return startedAtBuilder_.getMessageOrBuilder(); + } else { + return startedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedAtFieldBuilder() { + if (startedAtBuilder_ == null) { + startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedAt(), + getParentForChildren(), + isClean()); + startedAt_ = null; + } + return startedAtBuilder_; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + 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_; + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + 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; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + 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; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + 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_; + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + 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; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + 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; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + 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_; + } + + private java.util.List notifications_ = + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + notifications_ = new java.util.ArrayList(notifications_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; + + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List getNotificationsList() { + if (notificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notifications_); + } else { + return notificationsBuilder_.getMessageList(); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public int getNotificationsCount() { + if (notificationsBuilder_ == null) { + return notifications_.size(); + } else { + return notificationsBuilder_.getCount(); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); + } else { + return notificationsBuilder_.getMessage(index); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.set(index, value); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.set(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications(flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(value); + onChanged(); + } else { + notificationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(index, value); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications( + flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addAllNotifications( + java.lang.Iterable values) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); + onChanged(); + } else { + notificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + notificationsBuilder_.clear(); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder removeNotifications(int index) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.remove(index); + onChanged(); + } else { + notificationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().getBuilder(index); + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); } else { + return notificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List + getNotificationsOrBuilderList() { + if (notificationsBuilder_ != null) { + return notificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notifications_); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { + return getNotificationsFieldBuilder().addBuilder( + flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().addBuilder( + index, flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List + getNotificationsBuilderList() { + return getNotificationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( + notifications_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + notifications_ = null; + } + return notificationsBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public boolean hasWorkflowId() { + return workflowIdBuilder_ != null || workflowId_ != null; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + if (workflowIdBuilder_ == null) { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } else { + return workflowIdBuilder_.getMessage(); + } + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowId_ = value; + onChanged(); + } else { + workflowIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder setWorkflowId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (workflowIdBuilder_ == null) { + workflowId_ = builderForValue.build(); + onChanged(); + } else { + workflowIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (workflowId_ != null) { + workflowId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); + } else { + workflowId_ = value; + } + onChanged(); + } else { + workflowIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder clearWorkflowId() { + if (workflowIdBuilder_ == null) { + workflowId_ = null; + onChanged(); + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { + + onChanged(); + return getWorkflowIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + if (workflowIdBuilder_ != null) { + return workflowIdBuilder_.getMessageOrBuilder(); + } else { + return workflowId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getWorkflowIdFieldBuilder() { + if (workflowIdBuilder_ == null) { + workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getWorkflowId(), + getParentForChildren(), + isClean()); + workflowId_ = null; + } + return workflowIdBuilder_; + } + @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:flyteidl.admin.ExecutionClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClosure) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionClosure(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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SystemMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.SystemMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Which execution cluster this execution ran on.
+     * 
+ * + * string execution_cluster = 1; + */ + java.lang.String getExecutionCluster(); + /** + *
+     * Which execution cluster this execution ran on.
+     * 
+ * + * string execution_cluster = 1; + */ + com.google.protobuf.ByteString + getExecutionClusterBytes(); + } + /** + *
+   * Represents system rather than user-facing metadata about an execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.SystemMetadata} + */ + public static final class SystemMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.SystemMetadata) + SystemMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use SystemMetadata.newBuilder() to construct. + private SystemMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SystemMetadata() { + executionCluster_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SystemMetadata( + 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(); + + executionCluster_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.SystemMetadata.class, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder.class); + } + + public static final int EXECUTION_CLUSTER_FIELD_NUMBER = 1; + private volatile java.lang.Object executionCluster_; + /** + *
+     * Which execution cluster this execution ran on.
+     * 
+ * + * string execution_cluster = 1; + */ + public java.lang.String getExecutionCluster() { + java.lang.Object ref = executionCluster_; + 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(); + executionCluster_ = s; + return s; + } + } + /** + *
+     * Which execution cluster this execution ran on.
+     * 
+ * + * string execution_cluster = 1; + */ + public com.google.protobuf.ByteString + getExecutionClusterBytes() { + java.lang.Object ref = executionCluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executionCluster_ = 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 (!getExecutionClusterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executionCluster_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getExecutionClusterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executionCluster_); + } + 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.SystemMetadata other = (flyteidl.admin.ExecutionOuterClass.SystemMetadata) obj; + + if (!getExecutionCluster() + .equals(other.getExecutionCluster())) 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) + EXECUTION_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getExecutionCluster().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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(flyteidl.admin.ExecutionOuterClass.SystemMetadata 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; + } + /** + *
+     * Represents system rather than user-facing metadata about an execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.SystemMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.SystemMetadata) + flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.SystemMetadata.class, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.SystemMetadata.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(); + executionCluster_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.SystemMetadata build() { + flyteidl.admin.ExecutionOuterClass.SystemMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.SystemMetadata buildPartial() { + flyteidl.admin.ExecutionOuterClass.SystemMetadata result = new flyteidl.admin.ExecutionOuterClass.SystemMetadata(this); + result.executionCluster_ = executionCluster_; + 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.SystemMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.SystemMetadata other) { + if (other == flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance()) return this; + if (!other.getExecutionCluster().isEmpty()) { + executionCluster_ = other.executionCluster_; + 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 { + flyteidl.admin.ExecutionOuterClass.SystemMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.SystemMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object executionCluster_ = ""; + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public java.lang.String getExecutionCluster() { + java.lang.Object ref = executionCluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executionCluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public com.google.protobuf.ByteString + getExecutionClusterBytes() { + java.lang.Object ref = executionCluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executionCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public Builder setExecutionCluster( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + executionCluster_ = value; + onChanged(); + return this; + } + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public Builder clearExecutionCluster() { + + executionCluster_ = getDefaultInstance().getExecutionCluster(); + onChanged(); + return this; + } + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public Builder setExecutionClusterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + executionCluster_ = 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:flyteidl.admin.SystemMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SystemMetadata) + private static final flyteidl.admin.ExecutionOuterClass.SystemMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.SystemMetadata(); + } + + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SystemMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SystemMetadata(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 flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * [(validate.rules).enum.defined_only = true];
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + int getModeValue(); + /** + *
+     * [(validate.rules).enum.defined_only = true];
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode(); + + /** + *
+     * Identifier of the entity that triggered this execution.
+     * For systems using back-end authentication any value set here will be discarded in favor of the
+     * authenticated user context.
+     * 
+ * + * string principal = 2; + */ + java.lang.String getPrincipal(); + /** + *
+     * Identifier of the entity that triggered this execution.
+     * For systems using back-end authentication any value set here will be discarded in favor of the
+     * authenticated user context.
+     * 
+ * + * string principal = 2; + */ + com.google.protobuf.ByteString + getPrincipalBytes(); + + /** + *
+     * Indicates the "nestedness" of this execution.
+     * If a user launches a workflow execution, the default nesting is 0.
+     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+     * nesting = k + 1.
+     * 
+ * + * uint32 nesting = 3; + */ + int getNesting(); + + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + boolean hasScheduledAt(); + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + com.google.protobuf.Timestamp getScheduledAt(); + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder(); + + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + boolean hasParentNodeExecution(); + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution(); + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder(); + + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + boolean hasReferenceExecution(); + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution(); + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder(); + + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + boolean hasSystemMetadata(); + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata(); + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder(); + } + /** + *
+   * Represents attributes about an execution which are not required to launch the execution but are useful to record.
+   * These attributes are assigned at launch time and do not change.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionMetadata} + */ + public static final class ExecutionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionMetadata) + ExecutionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionMetadata.newBuilder() to construct. + private ExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionMetadata() { + mode_ = 0; + principal_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionMetadata( + 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 8: { + int rawValue = input.readEnum(); + + mode_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + principal_ = s; + break; + } + case 24: { + + nesting_ = input.readUInt32(); + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduledAt_ != null) { + subBuilder = scheduledAt_.toBuilder(); + } + scheduledAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduledAt_); + scheduledAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (parentNodeExecution_ != null) { + subBuilder = parentNodeExecution_.toBuilder(); + } + parentNodeExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentNodeExecution_); + parentNodeExecution_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (referenceExecution_ != null) { + subBuilder = referenceExecution_.toBuilder(); + } + referenceExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(referenceExecution_); + referenceExecution_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder subBuilder = null; + if (systemMetadata_ != null) { + subBuilder = systemMetadata_.toBuilder(); + } + systemMetadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.SystemMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(systemMetadata_); + systemMetadata_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); + } + + /** + *
+     * The method by which this execution was launched.
+     * 
+ * + * Protobuf enum {@code flyteidl.admin.ExecutionMetadata.ExecutionMode} + */ + public enum ExecutionMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * The default execution mode, MANUAL implies that an execution was launched by an individual.
+       * 
+ * + * MANUAL = 0; + */ + MANUAL(0), + /** + *
+       * A schedule triggered this execution launch.
+       * 
+ * + * SCHEDULED = 1; + */ + SCHEDULED(1), + /** + *
+       * A system process was responsible for launching this execution rather an individual.
+       * 
+ * + * SYSTEM = 2; + */ + SYSTEM(2), + /** + *
+       * This execution was launched with identical inputs as a previous execution.
+       * 
+ * + * RELAUNCH = 3; + */ + RELAUNCH(3), + /** + *
+       * This execution was triggered by another execution.
+       * 
+ * + * CHILD_WORKFLOW = 4; + */ + CHILD_WORKFLOW(4), + UNRECOGNIZED(-1), + ; + + /** + *
+       * The default execution mode, MANUAL implies that an execution was launched by an individual.
+       * 
+ * + * MANUAL = 0; + */ + public static final int MANUAL_VALUE = 0; + /** + *
+       * A schedule triggered this execution launch.
+       * 
+ * + * SCHEDULED = 1; + */ + public static final int SCHEDULED_VALUE = 1; + /** + *
+       * A system process was responsible for launching this execution rather an individual.
+       * 
+ * + * SYSTEM = 2; + */ + public static final int SYSTEM_VALUE = 2; + /** + *
+       * This execution was launched with identical inputs as a previous execution.
+       * 
+ * + * RELAUNCH = 3; + */ + public static final int RELAUNCH_VALUE = 3; + /** + *
+       * This execution was triggered by another execution.
+       * 
+ * + * CHILD_WORKFLOW = 4; + */ + public static final int CHILD_WORKFLOW_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExecutionMode valueOf(int value) { + return forNumber(value); + } + + public static ExecutionMode forNumber(int value) { + switch (value) { + case 0: return MANUAL; + case 1: return SCHEDULED; + case 2: return SYSTEM; + case 3: return RELAUNCH; + case 4: return CHILD_WORKFLOW; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionMode findValueByNumber(int number) { + return ExecutionMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final ExecutionMode[] VALUES = values(); + + public static ExecutionMode 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 ExecutionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.ExecutionMetadata.ExecutionMode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_; + /** + *
+     * [(validate.rules).enum.defined_only = true];
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public int getModeValue() { + return mode_; + } + /** + *
+     * [(validate.rules).enum.defined_only = true];
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { + @SuppressWarnings("deprecation") + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); + return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; + } + + public static final int PRINCIPAL_FIELD_NUMBER = 2; + private volatile java.lang.Object principal_; + /** + *
+     * Identifier of the entity that triggered this execution.
+     * For systems using back-end authentication any value set here will be discarded in favor of the
+     * authenticated user context.
+     * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + 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(); + principal_ = s; + return s; + } + } + /** + *
+     * Identifier of the entity that triggered this execution.
+     * For systems using back-end authentication any value set here will be discarded in favor of the
+     * authenticated user context.
+     * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NESTING_FIELD_NUMBER = 3; + private int nesting_; + /** + *
+     * Indicates the "nestedness" of this execution.
+     * If a user launches a workflow execution, the default nesting is 0.
+     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+     * nesting = k + 1.
+     * 
+ * + * uint32 nesting = 3; + */ + public int getNesting() { + return nesting_; + } + + public static final int SCHEDULED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp scheduledAt_; + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public boolean hasScheduledAt() { + return scheduledAt_ != null; + } + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.Timestamp getScheduledAt() { + return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + } + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { + return getScheduledAt(); + } + + public static final int PARENT_NODE_EXECUTION_FIELD_NUMBER = 5; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public boolean hasParentNodeExecution() { + return parentNodeExecution_ != null; + } + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { + return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; + } + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { + return getParentNodeExecution(); + } + + public static final int REFERENCE_EXECUTION_FIELD_NUMBER = 16; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public boolean hasReferenceExecution() { + return referenceExecution_ != null; + } + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { + return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; + } + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { + return getReferenceExecution(); + } + + public static final int SYSTEM_METADATA_FIELD_NUMBER = 17; + private flyteidl.admin.ExecutionOuterClass.SystemMetadata systemMetadata_; + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public boolean hasSystemMetadata() { + return systemMetadata_ != null; + } + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata() { + return systemMetadata_ == null ? flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; + } + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder() { + return getSystemMetadata(); + } + + 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_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { + output.writeEnum(1, mode_); + } + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); + } + if (nesting_ != 0) { + output.writeUInt32(3, nesting_); + } + if (scheduledAt_ != null) { + output.writeMessage(4, getScheduledAt()); + } + if (parentNodeExecution_ != null) { + output.writeMessage(5, getParentNodeExecution()); + } + if (referenceExecution_ != null) { + output.writeMessage(16, getReferenceExecution()); + } + if (systemMetadata_ != null) { + output.writeMessage(17, getSystemMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, mode_); + } + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); + } + if (nesting_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, nesting_); + } + if (scheduledAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getScheduledAt()); + } + if (parentNodeExecution_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getParentNodeExecution()); + } + if (referenceExecution_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getReferenceExecution()); + } + if (systemMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getSystemMetadata()); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) obj; + + if (mode_ != other.mode_) return false; + if (!getPrincipal() + .equals(other.getPrincipal())) return false; + if (getNesting() + != other.getNesting()) return false; + if (hasScheduledAt() != other.hasScheduledAt()) return false; + if (hasScheduledAt()) { + if (!getScheduledAt() + .equals(other.getScheduledAt())) return false; + } + if (hasParentNodeExecution() != other.hasParentNodeExecution()) return false; + if (hasParentNodeExecution()) { + if (!getParentNodeExecution() + .equals(other.getParentNodeExecution())) return false; + } + if (hasReferenceExecution() != other.hasReferenceExecution()) return false; + if (hasReferenceExecution()) { + if (!getReferenceExecution() + .equals(other.getReferenceExecution())) return false; + } + if (hasSystemMetadata() != other.hasSystemMetadata()) return false; + if (hasSystemMetadata()) { + if (!getSystemMetadata() + .equals(other.getSystemMetadata())) 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) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); + hash = (37 * hash) + NESTING_FIELD_NUMBER; + hash = (53 * hash) + getNesting(); + if (hasScheduledAt()) { + hash = (37 * hash) + SCHEDULED_AT_FIELD_NUMBER; + hash = (53 * hash) + getScheduledAt().hashCode(); + } + if (hasParentNodeExecution()) { + hash = (37 * hash) + PARENT_NODE_EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getParentNodeExecution().hashCode(); + } + if (hasReferenceExecution()) { + hash = (37 * hash) + REFERENCE_EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getReferenceExecution().hashCode(); + } + if (hasSystemMetadata()) { + hash = (37 * hash) + SYSTEM_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getSystemMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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; + } + /** + *
+     * Represents attributes about an execution which are not required to launch the execution but are useful to record.
+     * These attributes are assigned at launch time and do not change.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionMetadata) + flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.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; + + principal_ = ""; + + nesting_ = 0; + + if (scheduledAtBuilder_ == null) { + scheduledAt_ = null; + } else { + scheduledAt_ = null; + scheduledAtBuilder_ = null; + } + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecution_ = null; + } else { + parentNodeExecution_ = null; + parentNodeExecutionBuilder_ = null; + } + if (referenceExecutionBuilder_ == null) { + referenceExecution_ = null; + } else { + referenceExecution_ = null; + referenceExecutionBuilder_ = null; + } + if (systemMetadataBuilder_ == null) { + systemMetadata_ = null; + } else { + systemMetadata_ = null; + systemMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata build() { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(this); + result.mode_ = mode_; + result.principal_ = principal_; + result.nesting_ = nesting_; + if (scheduledAtBuilder_ == null) { + result.scheduledAt_ = scheduledAt_; + } else { + result.scheduledAt_ = scheduledAtBuilder_.build(); + } + if (parentNodeExecutionBuilder_ == null) { + result.parentNodeExecution_ = parentNodeExecution_; + } else { + result.parentNodeExecution_ = parentNodeExecutionBuilder_.build(); + } + if (referenceExecutionBuilder_ == null) { + result.referenceExecution_ = referenceExecution_; + } else { + result.referenceExecution_ = referenceExecutionBuilder_.build(); + } + if (systemMetadataBuilder_ == null) { + result.systemMetadata_ = systemMetadata_; + } else { + result.systemMetadata_ = systemMetadataBuilder_.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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance()) return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + onChanged(); + } + if (other.getNesting() != 0) { + setNesting(other.getNesting()); + } + if (other.hasScheduledAt()) { + mergeScheduledAt(other.getScheduledAt()); + } + if (other.hasParentNodeExecution()) { + mergeParentNodeExecution(other.getParentNodeExecution()); + } + if (other.hasReferenceExecution()) { + mergeReferenceExecution(other.getReferenceExecution()); + } + if (other.hasSystemMetadata()) { + mergeSystemMetadata(other.getSystemMetadata()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int mode_ = 0; + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public int getModeValue() { + return mode_; + } + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public Builder setModeValue(int value) { + mode_ = value; + onChanged(); + return this; + } + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { + @SuppressWarnings("deprecation") + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); + return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; + } + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public Builder setMode(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode value) { + if (value == null) { + throw new NullPointerException(); + } + + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public Builder clearMode() { + + mode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object principal_ = ""; + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principal_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public Builder clearPrincipal() { + + principal_ = getDefaultInstance().getPrincipal(); + onChanged(); + return this; + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principal_ = value; + onChanged(); + return this; + } + + private int nesting_ ; + /** + *
+       * Indicates the "nestedness" of this execution.
+       * If a user launches a workflow execution, the default nesting is 0.
+       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+       * nesting = k + 1.
+       * 
+ * + * uint32 nesting = 3; + */ + public int getNesting() { + return nesting_; + } + /** + *
+       * Indicates the "nestedness" of this execution.
+       * If a user launches a workflow execution, the default nesting is 0.
+       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+       * nesting = k + 1.
+       * 
+ * + * uint32 nesting = 3; + */ + public Builder setNesting(int value) { + + nesting_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the "nestedness" of this execution.
+       * If a user launches a workflow execution, the default nesting is 0.
+       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+       * nesting = k + 1.
+       * 
+ * + * uint32 nesting = 3; + */ + public Builder clearNesting() { + + nesting_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp scheduledAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduledAtBuilder_; + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public boolean hasScheduledAt() { + return scheduledAtBuilder_ != null || scheduledAt_ != null; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.Timestamp getScheduledAt() { + if (scheduledAtBuilder_ == null) { + return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + } else { + return scheduledAtBuilder_.getMessage(); + } + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder setScheduledAt(com.google.protobuf.Timestamp value) { + if (scheduledAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduledAt_ = value; + onChanged(); + } else { + scheduledAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder setScheduledAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (scheduledAtBuilder_ == null) { + scheduledAt_ = builderForValue.build(); + onChanged(); + } else { + scheduledAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder mergeScheduledAt(com.google.protobuf.Timestamp value) { + if (scheduledAtBuilder_ == null) { + if (scheduledAt_ != null) { + scheduledAt_ = + com.google.protobuf.Timestamp.newBuilder(scheduledAt_).mergeFrom(value).buildPartial(); + } else { + scheduledAt_ = value; + } + onChanged(); + } else { + scheduledAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder clearScheduledAt() { + if (scheduledAtBuilder_ == null) { + scheduledAt_ = null; + onChanged(); + } else { + scheduledAt_ = null; + scheduledAtBuilder_ = null; + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getScheduledAtBuilder() { + + onChanged(); + return getScheduledAtFieldBuilder().getBuilder(); + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { + if (scheduledAtBuilder_ != null) { + return scheduledAtBuilder_.getMessageOrBuilder(); + } else { + return scheduledAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + } + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getScheduledAtFieldBuilder() { + if (scheduledAtBuilder_ == null) { + scheduledAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getScheduledAt(), + getParentForChildren(), + isClean()); + scheduledAt_ = null; + } + return scheduledAtBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionBuilder_; + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public boolean hasParentNodeExecution() { + return parentNodeExecutionBuilder_ != null || parentNodeExecution_ != null; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { + if (parentNodeExecutionBuilder_ == null) { + return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; + } else { + return parentNodeExecutionBuilder_.getMessage(); + } + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder setParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentNodeExecution_ = value; + onChanged(); + } else { + parentNodeExecutionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder setParentNodeExecution( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecution_ = builderForValue.build(); + onChanged(); + } else { + parentNodeExecutionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder mergeParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionBuilder_ == null) { + if (parentNodeExecution_ != null) { + parentNodeExecution_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecution_).mergeFrom(value).buildPartial(); + } else { + parentNodeExecution_ = value; + } + onChanged(); + } else { + parentNodeExecutionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder clearParentNodeExecution() { + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecution_ = null; + onChanged(); + } else { + parentNodeExecution_ = null; + parentNodeExecutionBuilder_ = null; + } + + return this; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionBuilder() { + + onChanged(); + return getParentNodeExecutionFieldBuilder().getBuilder(); + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { + if (parentNodeExecutionBuilder_ != null) { + return parentNodeExecutionBuilder_.getMessageOrBuilder(); + } else { + return parentNodeExecution_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; + } + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getParentNodeExecutionFieldBuilder() { + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getParentNodeExecution(), + getParentForChildren(), + isClean()); + parentNodeExecution_ = null; + } + return parentNodeExecutionBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> referenceExecutionBuilder_; + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public boolean hasReferenceExecution() { + return referenceExecutionBuilder_ != null || referenceExecution_ != null; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { + if (referenceExecutionBuilder_ == null) { + return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; + } else { + return referenceExecutionBuilder_.getMessage(); + } + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder setReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (referenceExecutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceExecution_ = value; + onChanged(); + } else { + referenceExecutionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder setReferenceExecution( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (referenceExecutionBuilder_ == null) { + referenceExecution_ = builderForValue.build(); + onChanged(); + } else { + referenceExecutionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder mergeReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (referenceExecutionBuilder_ == null) { + if (referenceExecution_ != null) { + referenceExecution_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(referenceExecution_).mergeFrom(value).buildPartial(); + } else { + referenceExecution_ = value; + } + onChanged(); + } else { + referenceExecutionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder clearReferenceExecution() { + if (referenceExecutionBuilder_ == null) { + referenceExecution_ = null; + onChanged(); + } else { + referenceExecution_ = null; + referenceExecutionBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getReferenceExecutionBuilder() { + + onChanged(); + return getReferenceExecutionFieldBuilder().getBuilder(); + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { + if (referenceExecutionBuilder_ != null) { + return referenceExecutionBuilder_.getMessageOrBuilder(); + } else { + return referenceExecution_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; + } + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getReferenceExecutionFieldBuilder() { + if (referenceExecutionBuilder_ == null) { + referenceExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getReferenceExecution(), + getParentForChildren(), + isClean()); + referenceExecution_ = null; + } + return referenceExecutionBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.SystemMetadata systemMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder> systemMetadataBuilder_; + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public boolean hasSystemMetadata() { + return systemMetadataBuilder_ != null || systemMetadata_ != null; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata() { + if (systemMetadataBuilder_ == null) { + return systemMetadata_ == null ? flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; + } else { + return systemMetadataBuilder_.getMessage(); + } + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public Builder setSystemMetadata(flyteidl.admin.ExecutionOuterClass.SystemMetadata value) { + if (systemMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + systemMetadata_ = value; + onChanged(); + } else { + systemMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public Builder setSystemMetadata( + flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder builderForValue) { + if (systemMetadataBuilder_ == null) { + systemMetadata_ = builderForValue.build(); + onChanged(); + } else { + systemMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public Builder mergeSystemMetadata(flyteidl.admin.ExecutionOuterClass.SystemMetadata value) { + if (systemMetadataBuilder_ == null) { + if (systemMetadata_ != null) { + systemMetadata_ = + flyteidl.admin.ExecutionOuterClass.SystemMetadata.newBuilder(systemMetadata_).mergeFrom(value).buildPartial(); + } else { + systemMetadata_ = value; + } + onChanged(); + } else { + systemMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public Builder clearSystemMetadata() { + if (systemMetadataBuilder_ == null) { + systemMetadata_ = null; + onChanged(); + } else { + systemMetadata_ = null; + systemMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder getSystemMetadataBuilder() { + + onChanged(); + return getSystemMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder() { + if (systemMetadataBuilder_ != null) { + return systemMetadataBuilder_.getMessageOrBuilder(); + } else { + return systemMetadata_ == null ? + flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; + } + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder> + getSystemMetadataFieldBuilder() { + if (systemMetadataBuilder_ == null) { + systemMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder>( + getSystemMetadata(), + getParentForChildren(), + isClean()); + systemMetadata_ = null; + } + return systemMetadataBuilder_; + } + @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:flyteidl.admin.ExecutionMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionMetadata) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionMetadata(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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NotificationListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NotificationList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + java.util.List + getNotificationsList(); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + flyteidl.admin.Common.Notification getNotifications(int index); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + int getNotificationsCount(); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + java.util.List + getNotificationsOrBuilderList(); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.admin.NotificationList} + */ + public static final class NotificationList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NotificationList) + NotificationListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NotificationList.newBuilder() to construct. + private NotificationList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NotificationList() { + notifications_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NotificationList( + 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)) { + notifications_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + notifications_.add( + input.readMessage(flyteidl.admin.Common.Notification.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)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 1; + private java.util.List notifications_; + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List getNotificationsList() { + return notifications_; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List + getNotificationsOrBuilderList() { + return notifications_; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public int getNotificationsCount() { + return notifications_.size(); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + return notifications_.get(index); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + return notifications_.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 < notifications_.size(); i++) { + output.writeMessage(1, notifications_.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 < notifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, notifications_.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 flyteidl.admin.ExecutionOuterClass.NotificationList)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.NotificationList other = (flyteidl.admin.ExecutionOuterClass.NotificationList) obj; + + if (!getNotificationsList() + .equals(other.getNotificationsList())) 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 (getNotificationsCount() > 0) { + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList 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 flyteidl.admin.ExecutionOuterClass.NotificationList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList 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 flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList 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(flyteidl.admin.ExecutionOuterClass.NotificationList 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 flyteidl.admin.NotificationList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NotificationList) + flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNotificationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + notificationsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.NotificationList build() { + flyteidl.admin.ExecutionOuterClass.NotificationList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.NotificationList buildPartial() { + flyteidl.admin.ExecutionOuterClass.NotificationList result = new flyteidl.admin.ExecutionOuterClass.NotificationList(this); + int from_bitField0_ = bitField0_; + if (notificationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.notifications_ = notifications_; + } else { + result.notifications_ = notificationsBuilder_.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 flyteidl.admin.ExecutionOuterClass.NotificationList) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.NotificationList other) { + if (other == flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) return this; + if (notificationsBuilder_ == null) { + if (!other.notifications_.isEmpty()) { + if (notifications_.isEmpty()) { + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNotificationsIsMutable(); + notifications_.addAll(other.notifications_); + } + onChanged(); + } + } else { + if (!other.notifications_.isEmpty()) { + if (notificationsBuilder_.isEmpty()) { + notificationsBuilder_.dispose(); + notificationsBuilder_ = null; + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000001); + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; + } else { + notificationsBuilder_.addAllMessages(other.notifications_); + } + } + } + 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 { + flyteidl.admin.ExecutionOuterClass.NotificationList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.NotificationList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List notifications_ = + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + notifications_ = new java.util.ArrayList(notifications_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; + + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List getNotificationsList() { + if (notificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notifications_); + } else { + return notificationsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public int getNotificationsCount() { + if (notificationsBuilder_ == null) { + return notifications_.size(); + } else { + return notificationsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); + } else { + return notificationsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.set(index, value); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.set(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications(flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(value); + onChanged(); + } else { + notificationsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(index, value); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications( + flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addAllNotifications( + java.lang.Iterable values) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); + onChanged(); + } else { + notificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + notificationsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder removeNotifications(int index) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.remove(index); + onChanged(); + } else { + notificationsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); } else { + return notificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List + getNotificationsOrBuilderList() { + if (notificationsBuilder_ != null) { + return notificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notifications_); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { + return getNotificationsFieldBuilder().addBuilder( + flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().addBuilder( + index, flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List + getNotificationsBuilderList() { + return getNotificationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( + notifications_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + notifications_ = null; + } + return notificationsBuilder_; + } + @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:flyteidl.admin.NotificationList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NotificationList) + private static final flyteidl.admin.ExecutionOuterClass.NotificationList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.NotificationList(); + } + + public static flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationList(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 flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + boolean hasLaunchPlan(); + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan(); + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder(); + + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); + + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata(); + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + boolean hasNotifications(); + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications(); + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder(); + + /** + *
+     * This should be set to true if all notifications are intended to be disabled for this execution.
+     * 
+ * + * bool disable_all = 6; + */ + boolean getDisableAll(); + + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + boolean hasLabels(); + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + flyteidl.admin.Common.Labels getLabels(); + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); + + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + boolean hasAnnotations(); + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + flyteidl.admin.Common.Annotations getAnnotations(); + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); + + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + boolean hasAuthRole(); + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + flyteidl.admin.Common.AuthRole getAuthRole(); + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder(); + + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + boolean hasQualityOfService(); + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + flyteidl.core.Execution.QualityOfService getQualityOfService(); + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); + + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.NotificationOverridesCase getNotificationOverridesCase(); + } + /** + *
+   * An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
+   * of an execution as it progresses across phase changes..
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionSpec} + */ + public static final class ExecutionSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionSpec) + ExecutionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionSpec.newBuilder() to construct. + private ExecutionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionSpec( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (launchPlan_ != null) { + subBuilder = launchPlan_.toBuilder(); + } + launchPlan_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(launchPlan_); + launchPlan_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.admin.ExecutionOuterClass.NotificationList.Builder subBuilder = null; + if (notificationOverridesCase_ == 5) { + subBuilder = ((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_).toBuilder(); + } + notificationOverrides_ = + input.readMessage(flyteidl.admin.ExecutionOuterClass.NotificationList.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); + notificationOverrides_ = subBuilder.buildPartial(); + } + notificationOverridesCase_ = 5; + break; + } + case 48: { + notificationOverridesCase_ = 6; + notificationOverrides_ = input.readBool(); + break; + } + case 58: { + flyteidl.admin.Common.Labels.Builder subBuilder = null; + if (labels_ != null) { + subBuilder = labels_.toBuilder(); + } + labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labels_); + labels_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + flyteidl.admin.Common.Annotations.Builder subBuilder = null; + if (annotations_ != null) { + subBuilder = annotations_.toBuilder(); + } + annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotations_); + annotations_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + flyteidl.admin.Common.AuthRole.Builder subBuilder = null; + if (authRole_ != null) { + subBuilder = authRole_.toBuilder(); + } + authRole_ = input.readMessage(flyteidl.admin.Common.AuthRole.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authRole_); + authRole_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; + if (qualityOfService_ != null) { + subBuilder = qualityOfService_.toBuilder(); + } + qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qualityOfService_); + qualityOfService_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); + } + + private int notificationOverridesCase_ = 0; + private java.lang.Object notificationOverrides_; + public enum NotificationOverridesCase + implements com.google.protobuf.Internal.EnumLite { + NOTIFICATIONS(5), + DISABLE_ALL(6), + NOTIFICATIONOVERRIDES_NOT_SET(0); + private final int value; + private NotificationOverridesCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NotificationOverridesCase valueOf(int value) { + return forNumber(value); + } + + public static NotificationOverridesCase forNumber(int value) { + switch (value) { + case 5: return NOTIFICATIONS; + case 6: return DISABLE_ALL; + case 0: return NOTIFICATIONOVERRIDES_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public NotificationOverridesCase + getNotificationOverridesCase() { + return NotificationOverridesCase.forNumber( + notificationOverridesCase_); + } + + public static final int LAUNCH_PLAN_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_; + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public boolean hasLaunchPlan() { + return launchPlan_ != null; + } + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { + return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; + } + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { + return getLaunchPlan(); + } + + public static final int INPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Literals.LiteralMap inputs_; + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getInputs() { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { + return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 5; + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public boolean hasNotifications() { + return notificationOverridesCase_ == 5; + } + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + + public static final int DISABLE_ALL_FIELD_NUMBER = 6; + /** + *
+     * This should be set to true if all notifications are intended to be disabled for this execution.
+     * 
+ * + * bool disable_all = 6; + */ + public boolean getDisableAll() { + if (notificationOverridesCase_ == 6) { + return (java.lang.Boolean) notificationOverrides_; + } + return false; + } + + public static final int LABELS_FIELD_NUMBER = 7; + private flyteidl.admin.Common.Labels labels_; + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public boolean hasLabels() { + return labels_ != null; + } + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.Labels getLabels() { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + return getLabels(); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 8; + private flyteidl.admin.Common.Annotations annotations_; + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public boolean hasAnnotations() { + return annotations_ != null; + } + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + return getAnnotations(); + } + + public static final int AUTH_ROLE_FIELD_NUMBER = 16; + private flyteidl.admin.Common.AuthRole authRole_; + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public boolean hasAuthRole() { + return authRole_ != null; + } + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public flyteidl.admin.Common.AuthRole getAuthRole() { + return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { + return getAuthRole(); + } + + public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 17; + private flyteidl.core.Execution.QualityOfService qualityOfService_; + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public boolean hasQualityOfService() { + return qualityOfService_ != null; + } + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + return getQualityOfService(); + } + + 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 (launchPlan_ != null) { + output.writeMessage(1, getLaunchPlan()); + } + if (inputs_ != null) { + output.writeMessage(2, getInputs()); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + if (notificationOverridesCase_ == 5) { + output.writeMessage(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); + } + if (notificationOverridesCase_ == 6) { + output.writeBool( + 6, (boolean)((java.lang.Boolean) notificationOverrides_)); + } + if (labels_ != null) { + output.writeMessage(7, getLabels()); + } + if (annotations_ != null) { + output.writeMessage(8, getAnnotations()); + } + if (authRole_ != null) { + output.writeMessage(16, getAuthRole()); + } + if (qualityOfService_ != null) { + output.writeMessage(17, getQualityOfService()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (launchPlan_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLaunchPlan()); + } + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInputs()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + if (notificationOverridesCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); + } + if (notificationOverridesCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 6, (boolean)((java.lang.Boolean) notificationOverrides_)); + } + if (labels_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getLabels()); + } + if (annotations_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAnnotations()); + } + if (authRole_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getAuthRole()); + } + if (qualityOfService_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getQualityOfService()); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionSpec other = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) obj; + + if (hasLaunchPlan() != other.hasLaunchPlan()) return false; + if (hasLaunchPlan()) { + if (!getLaunchPlan() + .equals(other.getLaunchPlan())) return false; + } + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasLabels() != other.hasLabels()) return false; + if (hasLabels()) { + if (!getLabels() + .equals(other.getLabels())) return false; + } + if (hasAnnotations() != other.hasAnnotations()) return false; + if (hasAnnotations()) { + if (!getAnnotations() + .equals(other.getAnnotations())) return false; + } + if (hasAuthRole() != other.hasAuthRole()) return false; + if (hasAuthRole()) { + if (!getAuthRole() + .equals(other.getAuthRole())) return false; + } + if (hasQualityOfService() != other.hasQualityOfService()) return false; + if (hasQualityOfService()) { + if (!getQualityOfService() + .equals(other.getQualityOfService())) return false; + } + if (!getNotificationOverridesCase().equals(other.getNotificationOverridesCase())) return false; + switch (notificationOverridesCase_) { + case 5: + if (!getNotifications() + .equals(other.getNotifications())) return false; + break; + case 6: + if (getDisableAll() + != other.getDisableAll()) 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(); + if (hasLaunchPlan()) { + hash = (37 * hash) + LAUNCH_PLAN_FIELD_NUMBER; + hash = (53 * hash) + getLaunchPlan().hashCode(); + } + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasLabels()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabels().hashCode(); + } + if (hasAnnotations()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotations().hashCode(); + } + if (hasAuthRole()) { + hash = (37 * hash) + AUTH_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAuthRole().hashCode(); + } + if (hasQualityOfService()) { + hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getQualityOfService().hashCode(); + } + switch (notificationOverridesCase_) { + case 5: + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotifications().hashCode(); + break; + case 6: + hash = (37 * hash) + DISABLE_ALL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableAll()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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(flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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 ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
+     * of an execution as it progresses across phase changes..
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionSpec) + flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionSpec.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 (launchPlanBuilder_ == null) { + launchPlan_ = null; + } else { + launchPlan_ = null; + launchPlanBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (labelsBuilder_ == null) { + labels_ = null; + } else { + labels_ = null; + labelsBuilder_ = null; + } + if (annotationsBuilder_ == null) { + annotations_ = null; + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + if (authRoleBuilder_ == null) { + authRole_ = null; + } else { + authRole_ = null; + authRoleBuilder_ = null; + } + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec build() { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(this); + if (launchPlanBuilder_ == null) { + result.launchPlan_ = launchPlan_; + } else { + result.launchPlan_ = launchPlanBuilder_.build(); + } + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (notificationOverridesCase_ == 5) { + if (notificationsBuilder_ == null) { + result.notificationOverrides_ = notificationOverrides_; + } else { + result.notificationOverrides_ = notificationsBuilder_.build(); + } + } + if (notificationOverridesCase_ == 6) { + result.notificationOverrides_ = notificationOverrides_; + } + if (labelsBuilder_ == null) { + result.labels_ = labels_; + } else { + result.labels_ = labelsBuilder_.build(); + } + if (annotationsBuilder_ == null) { + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + if (authRoleBuilder_ == null) { + result.authRole_ = authRole_; + } else { + result.authRole_ = authRoleBuilder_.build(); + } + if (qualityOfServiceBuilder_ == null) { + result.qualityOfService_ = qualityOfService_; + } else { + result.qualityOfService_ = qualityOfServiceBuilder_.build(); + } + result.notificationOverridesCase_ = notificationOverridesCase_; + 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionSpec other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance()) return this; + if (other.hasLaunchPlan()) { + mergeLaunchPlan(other.getLaunchPlan()); + } + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasLabels()) { + mergeLabels(other.getLabels()); + } + if (other.hasAnnotations()) { + mergeAnnotations(other.getAnnotations()); + } + if (other.hasAuthRole()) { + mergeAuthRole(other.getAuthRole()); + } + if (other.hasQualityOfService()) { + mergeQualityOfService(other.getQualityOfService()); + } + switch (other.getNotificationOverridesCase()) { + case NOTIFICATIONS: { + mergeNotifications(other.getNotifications()); + break; + } + case DISABLE_ALL: { + setDisableAll(other.getDisableAll()); + break; + } + case NOTIFICATIONOVERRIDES_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 { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int notificationOverridesCase_ = 0; + private java.lang.Object notificationOverrides_; + public NotificationOverridesCase + getNotificationOverridesCase() { + return NotificationOverridesCase.forNumber( + notificationOverridesCase_); + } + + public Builder clearNotificationOverrides() { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanBuilder_; + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public boolean hasLaunchPlan() { + return launchPlanBuilder_ != null || launchPlan_ != null; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { + if (launchPlanBuilder_ == null) { + return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; + } else { + return launchPlanBuilder_.getMessage(); + } + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder setLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchPlanBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + launchPlan_ = value; + onChanged(); + } else { + launchPlanBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder setLaunchPlan( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (launchPlanBuilder_ == null) { + launchPlan_ = builderForValue.build(); + onChanged(); + } else { + launchPlanBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder mergeLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchPlanBuilder_ == null) { + if (launchPlan_ != null) { + launchPlan_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(launchPlan_).mergeFrom(value).buildPartial(); + } else { + launchPlan_ = value; + } + onChanged(); + } else { + launchPlanBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder clearLaunchPlan() { + if (launchPlanBuilder_ == null) { + launchPlan_ = null; + onChanged(); + } else { + launchPlan_ = null; + launchPlanBuilder_ = null; + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanBuilder() { + + onChanged(); + return getLaunchPlanFieldBuilder().getBuilder(); + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { + if (launchPlanBuilder_ != null) { + return launchPlanBuilder_.getMessageOrBuilder(); + } else { + return launchPlan_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; + } + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getLaunchPlanFieldBuilder() { + if (launchPlanBuilder_ == null) { + launchPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getLaunchPlan(), + getParentForChildren(), + isClean()); + launchPlan_ = null; + } + return launchPlanBuilder_; + } + + private flyteidl.core.Literals.LiteralMap inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> notificationsBuilder_; + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public boolean hasNotifications() { + return notificationOverridesCase_ == 5; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { + if (notificationsBuilder_ == null) { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } else { + if (notificationOverridesCase_ == 5) { + return notificationsBuilder_.getMessage(); + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder setNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notificationOverrides_ = value; + onChanged(); + } else { + notificationsBuilder_.setMessage(value); + } + notificationOverridesCase_ = 5; + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder setNotifications( + flyteidl.admin.ExecutionOuterClass.NotificationList.Builder builderForValue) { + if (notificationsBuilder_ == null) { + notificationOverrides_ = builderForValue.build(); + onChanged(); + } else { + notificationsBuilder_.setMessage(builderForValue.build()); + } + notificationOverridesCase_ = 5; + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder mergeNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { + if (notificationsBuilder_ == null) { + if (notificationOverridesCase_ == 5 && + notificationOverrides_ != flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) { + notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_) + .mergeFrom(value).buildPartial(); + } else { + notificationOverrides_ = value; + } + onChanged(); + } else { + if (notificationOverridesCase_ == 5) { + notificationsBuilder_.mergeFrom(value); + } + notificationsBuilder_.setMessage(value); + } + notificationOverridesCase_ = 5; + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + if (notificationOverridesCase_ == 5) { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + onChanged(); + } + } else { + if (notificationOverridesCase_ == 5) { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + } + notificationsBuilder_.clear(); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationList.Builder getNotificationsBuilder() { + return getNotificationsFieldBuilder().getBuilder(); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { + if ((notificationOverridesCase_ == 5) && (notificationsBuilder_ != null)) { + return notificationsBuilder_.getMessageOrBuilder(); + } else { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + if (!(notificationOverridesCase_ == 5)) { + notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + notificationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder>( + (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_, + getParentForChildren(), + isClean()); + notificationOverrides_ = null; + } + notificationOverridesCase_ = 5; + onChanged();; + return notificationsBuilder_; + } + + /** + *
+       * This should be set to true if all notifications are intended to be disabled for this execution.
+       * 
+ * + * bool disable_all = 6; + */ + public boolean getDisableAll() { + if (notificationOverridesCase_ == 6) { + return (java.lang.Boolean) notificationOverrides_; + } + return false; + } + /** + *
+       * This should be set to true if all notifications are intended to be disabled for this execution.
+       * 
+ * + * bool disable_all = 6; + */ + public Builder setDisableAll(boolean value) { + notificationOverridesCase_ = 6; + notificationOverrides_ = value; + onChanged(); + return this; + } + /** + *
+       * This should be set to true if all notifications are intended to be disabled for this execution.
+       * 
+ * + * bool disable_all = 6; + */ + public Builder clearDisableAll() { + if (notificationOverridesCase_ == 6) { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + onChanged(); + } + return this; + } + + private flyteidl.admin.Common.Labels labels_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public boolean hasLabels() { + return labelsBuilder_ != null || labels_ != null; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.Labels getLabels() { + if (labelsBuilder_ == null) { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } else { + return labelsBuilder_.getMessage(); + } + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder setLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labels_ = value; + onChanged(); + } else { + labelsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder setLabels( + flyteidl.admin.Common.Labels.Builder builderForValue) { + if (labelsBuilder_ == null) { + labels_ = builderForValue.build(); + onChanged(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder mergeLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (labels_ != null) { + labels_ = + flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); + } else { + labels_ = value; + } + onChanged(); + } else { + labelsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder clearLabels() { + if (labelsBuilder_ == null) { + labels_ = null; + onChanged(); + } else { + labels_ = null; + labelsBuilder_ = null; + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { + + onChanged(); + return getLabelsFieldBuilder().getBuilder(); + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + if (labelsBuilder_ != null) { + return labelsBuilder_.getMessageOrBuilder(); + } else { + return labels_ == null ? + flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> + getLabelsFieldBuilder() { + if (labelsBuilder_ == null) { + labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( + getLabels(), + getParentForChildren(), + isClean()); + labels_ = null; + } + return labelsBuilder_; + } + + private flyteidl.admin.Common.Annotations annotations_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public boolean hasAnnotations() { + return annotationsBuilder_ != null || annotations_ != null; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + if (annotationsBuilder_ == null) { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } else { + return annotationsBuilder_.getMessage(); + } + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotations_ = value; + onChanged(); + } else { + annotationsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder setAnnotations( + flyteidl.admin.Common.Annotations.Builder builderForValue) { + if (annotationsBuilder_ == null) { + annotations_ = builderForValue.build(); + onChanged(); + } else { + annotationsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (annotations_ != null) { + annotations_ = + flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); + } else { + annotations_ = value; + } + onChanged(); + } else { + annotationsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = null; + onChanged(); + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { + + onChanged(); + return getAnnotationsFieldBuilder().getBuilder(); + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilder(); + } else { + return annotations_ == null ? + flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> + getAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( + getAnnotations(), + getParentForChildren(), + isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + + private flyteidl.admin.Common.AuthRole authRole_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> authRoleBuilder_; + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public boolean hasAuthRole() { + return authRoleBuilder_ != null || authRole_ != null; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public flyteidl.admin.Common.AuthRole getAuthRole() { + if (authRoleBuilder_ == null) { + return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } else { + return authRoleBuilder_.getMessage(); + } + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public Builder setAuthRole(flyteidl.admin.Common.AuthRole value) { + if (authRoleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authRole_ = value; + onChanged(); + } else { + authRoleBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public Builder setAuthRole( + flyteidl.admin.Common.AuthRole.Builder builderForValue) { + if (authRoleBuilder_ == null) { + authRole_ = builderForValue.build(); + onChanged(); + } else { + authRoleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public Builder mergeAuthRole(flyteidl.admin.Common.AuthRole value) { + if (authRoleBuilder_ == null) { + if (authRole_ != null) { + authRole_ = + flyteidl.admin.Common.AuthRole.newBuilder(authRole_).mergeFrom(value).buildPartial(); + } else { + authRole_ = value; + } + onChanged(); + } else { + authRoleBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public Builder clearAuthRole() { + if (authRoleBuilder_ == null) { + authRole_ = null; + onChanged(); + } else { + authRole_ = null; + authRoleBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public flyteidl.admin.Common.AuthRole.Builder getAuthRoleBuilder() { + + onChanged(); + return getAuthRoleFieldBuilder().getBuilder(); + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { + if (authRoleBuilder_ != null) { + return authRoleBuilder_.getMessageOrBuilder(); + } else { + return authRole_ == null ? + flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> + getAuthRoleFieldBuilder() { + if (authRoleBuilder_ == null) { + authRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder>( + getAuthRole(), + getParentForChildren(), + isClean()); + authRole_ = null; + } + return authRoleBuilder_; + } + + private flyteidl.core.Execution.QualityOfService qualityOfService_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public boolean hasQualityOfService() { + return qualityOfServiceBuilder_ != null || qualityOfService_ != null; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } else { + return qualityOfServiceBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualityOfService_ = value; + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public Builder setQualityOfService( + flyteidl.core.Execution.QualityOfService.Builder builderForValue) { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = builderForValue.build(); + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (qualityOfService_ != null) { + qualityOfService_ = + flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); + } else { + qualityOfService_ = value; + } + onChanged(); + } else { + qualityOfServiceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public Builder clearQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + onChanged(); + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { + + onChanged(); + return getQualityOfServiceFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if (qualityOfServiceBuilder_ != null) { + return qualityOfServiceBuilder_.getMessageOrBuilder(); + } else { + return qualityOfService_ == null ? + flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> + getQualityOfServiceFieldBuilder() { + if (qualityOfServiceBuilder_ == null) { + qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( + getQualityOfService(), + getParentForChildren(), + isClean()); + qualityOfService_ = null; + } + return qualityOfServiceBuilder_; + } + @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:flyteidl.admin.ExecutionSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionSpec) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionSpec(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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionTerminateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + java.lang.String getCause(); + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + com.google.protobuf.ByteString + getCauseBytes(); + } + /** + *
+   * Request to terminate an in-progress execution.  This action is irreversible.
+   * If an execution is already terminated, this request will simply be a no-op.
+   * This request will fail if it references a non-existent execution.
+   * If the request succeeds the phase "ABORTED" will be recorded for the termination
+   * with the optional cause added to the output_result.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} + */ + public static final class ExecutionTerminateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateRequest) + ExecutionTerminateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionTerminateRequest.newBuilder() to construct. + private ExecutionTerminateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionTerminateRequest() { + cause_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionTerminateRequest( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + cause_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int CAUSE_FIELD_NUMBER = 2; + private volatile java.lang.Object cause_; + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + 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(); + cause_ = s; + return s; + } + } + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = 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 (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getCauseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cause_); + } + 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 (!getCauseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cause_); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getCause() + .equals(other.getCause())) 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) + CAUSE_FIELD_NUMBER; + hash = (53 * hash) + getCause().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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; + } + /** + *
+     * Request to terminate an in-progress execution.  This action is irreversible.
+     * If an execution is already terminated, this request will simply be a no-op.
+     * This request will fail if it references a non-existent execution.
+     * If the request succeeds the phase "ABORTED" will be recorded for the termination
+     * with the optional cause added to the output_result.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + cause_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.cause_ = cause_; + 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getCause().isEmpty()) { + cause_ = other.cause_; + 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 { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object cause_ = ""; + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cause_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public Builder setCause( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cause_ = value; + onChanged(); + return this; + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public Builder clearCause() { + + cause_ = getDefaultInstance().getCause(); + onChanged(); + return this; + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public Builder setCauseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cause_ = 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:flyteidl.admin.ExecutionTerminateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionTerminateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionTerminateRequest(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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionTerminateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} + */ + public static final class ExecutionTerminateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateResponse) + ExecutionTerminateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionTerminateResponse.newBuilder() to construct. + private ExecutionTerminateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionTerminateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionTerminateResponse( + 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; + 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateResponse) + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse build() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(this); + 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.ExecutionTerminateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateResponse) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionTerminateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionTerminateResponse(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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Request structure to fetch inputs and output urls for an execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} + */ + public static final class WorkflowExecutionGetDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) + WorkflowExecutionGetDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetDataRequest.newBuilder() to construct. + private WorkflowExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetDataRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetDataRequest( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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; + } + /** + *
+     * Request structure to fetch inputs and output urls for an execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.WorkflowExecutionGetDataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataRequest) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionGetDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetDataRequest(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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + boolean hasOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + flyteidl.admin.Common.UrlBlob getOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); + + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + boolean hasInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + flyteidl.admin.Common.UrlBlob getInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); + } + /** + *
+   * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} + */ + public static final class WorkflowExecutionGetDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) + WorkflowExecutionGetDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetDataResponse.newBuilder() to construct. + private WorkflowExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetDataResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetDataResponse( + 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: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); + } + + public static final int OUTPUTS_FIELD_NUMBER = 1; + private flyteidl.admin.Common.UrlBlob outputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + public static final int INPUTS_FIELD_NUMBER = 2; + private flyteidl.admin.Common.UrlBlob inputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + 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 (outputs_ != null) { + output.writeMessage(1, getOutputs()); + } + if (inputs_ != null) { + output.writeMessage(2, getInputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOutputs()); + } + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInputs()); + } + 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) obj; + + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) return false; + } + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) 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 (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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; + } + /** + *
+     * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.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 (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(this); + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance()) return this; + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.UrlBlob outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public Builder setOutputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private flyteidl.admin.Common.UrlBlob inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public Builder setInputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + @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:flyteidl.admin.WorkflowExecutionGetDataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataResponse) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionGetDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetDataResponse(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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Execution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Execution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_AbortMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_SystemMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NotificationList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NotificationList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_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\036flyteidl/admin/execution.proto\022\016flytei" + + "dl.admin\032\033flyteidl/admin/common.proto\032\034f" + + "lyteidl/core/literals.proto\032\035flyteidl/co" + + "re/execution.proto\032\036flyteidl/core/identi" + + "fier.proto\032\036google/protobuf/duration.pro" + + "to\032\037google/protobuf/timestamp.proto\"\237\001\n\026" + + "ExecutionCreateRequest\022\017\n\007project\030\001 \001(\t\022" + + "\016\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022+\n\004spec\030\004 " + + "\001(\0132\035.flyteidl.admin.ExecutionSpec\022)\n\006in" + + "puts\030\005 \001(\0132\031.flyteidl.core.LiteralMap\"`\n" + + "\030ExecutionRelaunchRequest\0226\n\002id\030\001 \001(\0132*." + + "flyteidl.core.WorkflowExecutionIdentifie" + + "r\022\014\n\004name\030\003 \001(\t\"Q\n\027ExecutionCreateRespon" + + "se\0226\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowE" + + "xecutionIdentifier\"U\n\033WorkflowExecutionG" + + "etRequest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.Wo" + + "rkflowExecutionIdentifier\"\243\001\n\tExecution\022" + + "6\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExec" + + "utionIdentifier\022+\n\004spec\030\002 \001(\0132\035.flyteidl" + + ".admin.ExecutionSpec\0221\n\007closure\030\003 \001(\0132 ." + + "flyteidl.admin.ExecutionClosure\"M\n\rExecu" + + "tionList\022-\n\nexecutions\030\001 \003(\0132\031.flyteidl." + + "admin.Execution\022\r\n\005token\030\002 \001(\t\"T\n\016Litera" + + "lMapBlob\022+\n\006values\030\001 \001(\0132\031.flyteidl.core" + + ".LiteralMapH\000\022\r\n\003uri\030\002 \001(\tH\000B\006\n\004data\"1\n\r" + + "AbortMetadata\022\r\n\005cause\030\001 \001(\t\022\021\n\tprincipa" + + "l\030\002 \001(\t\"\353\004\n\020ExecutionClosure\0221\n\007outputs\030" + + "\001 \001(\0132\036.flyteidl.admin.LiteralMapBlobH\000\022" + + ".\n\005error\030\002 \001(\0132\035.flyteidl.core.Execution" + + "ErrorH\000\022\031\n\013abort_cause\030\n \001(\tB\002\030\001H\000\0227\n\016ab" + + "ort_metadata\030\014 \001(\0132\035.flyteidl.admin.Abor" + + "tMetadataH\000\0226\n\017computed_inputs\030\003 \001(\0132\031.f" + + "lyteidl.core.LiteralMapB\002\030\001\0225\n\005phase\030\004 \001" + + "(\0162&.flyteidl.core.WorkflowExecution.Pha" + + "se\022.\n\nstarted_at\030\005 \001(\0132\032.google.protobuf" + + ".Timestamp\022+\n\010duration\030\006 \001(\0132\031.google.pr" + + "otobuf.Duration\022.\n\ncreated_at\030\007 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022.\n\nupdated_at\030\010 " + + "\001(\0132\032.google.protobuf.Timestamp\0223\n\rnotif" + + "ications\030\t \003(\0132\034.flyteidl.admin.Notifica" + + "tion\022.\n\013workflow_id\030\013 \001(\0132\031.flyteidl.cor" + + "e.IdentifierB\017\n\routput_result\"+\n\016SystemM" + + "etadata\022\031\n\021execution_cluster\030\001 \001(\t\"\313\003\n\021E" + + "xecutionMetadata\022=\n\004mode\030\001 \001(\0162/.flyteid" + + "l.admin.ExecutionMetadata.ExecutionMode\022" + + "\021\n\tprincipal\030\002 \001(\t\022\017\n\007nesting\030\003 \001(\r\0220\n\014s" + + "cheduled_at\030\004 \001(\0132\032.google.protobuf.Time" + + "stamp\022E\n\025parent_node_execution\030\005 \001(\0132&.f" + + "lyteidl.core.NodeExecutionIdentifier\022G\n\023" + + "reference_execution\030\020 \001(\0132*.flyteidl.cor" + + "e.WorkflowExecutionIdentifier\0227\n\017system_" + + "metadata\030\021 \001(\0132\036.flyteidl.admin.SystemMe" + + "tadata\"X\n\rExecutionMode\022\n\n\006MANUAL\020\000\022\r\n\tS" + + "CHEDULED\020\001\022\n\n\006SYSTEM\020\002\022\014\n\010RELAUNCH\020\003\022\022\n\016" + + "CHILD_WORKFLOW\020\004\"G\n\020NotificationList\0223\n\r" + + "notifications\030\001 \003(\0132\034.flyteidl.admin.Not" + + "ification\"\331\003\n\rExecutionSpec\022.\n\013launch_pl" + + "an\030\001 \001(\0132\031.flyteidl.core.Identifier\022-\n\006i" + + "nputs\030\002 \001(\0132\031.flyteidl.core.LiteralMapB\002" + + "\030\001\0223\n\010metadata\030\003 \001(\0132!.flyteidl.admin.Ex" + + "ecutionMetadata\0229\n\rnotifications\030\005 \001(\0132 " + + ".flyteidl.admin.NotificationListH\000\022\025\n\013di" + + "sable_all\030\006 \001(\010H\000\022&\n\006labels\030\007 \001(\0132\026.flyt" + + "eidl.admin.Labels\0220\n\013annotations\030\010 \001(\0132\033" + + ".flyteidl.admin.Annotations\022+\n\tauth_role" + + "\030\020 \001(\0132\030.flyteidl.admin.AuthRole\022;\n\022qual" + + "ity_of_service\030\021 \001(\0132\037.flyteidl.core.Qua" + + "lityOfServiceB\030\n\026notification_overridesJ" + + "\004\010\004\020\005\"b\n\031ExecutionTerminateRequest\0226\n\002id" + + "\030\001 \001(\0132*.flyteidl.core.WorkflowExecution" + + "Identifier\022\r\n\005cause\030\002 \001(\t\"\034\n\032ExecutionTe" + + "rminateResponse\"Y\n\037WorkflowExecutionGetD" + + "ataRequest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.W" + + "orkflowExecutionIdentifier\"u\n WorkflowEx" + + "ecutionGetDataResponse\022(\n\007outputs\030\001 \001(\0132" + + "\027.flyteidl.admin.UrlBlob\022\'\n\006inputs\030\002 \001(\013" + + "2\027.flyteidl.admin.UrlBlobB3Z1github.com/" + + "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + + "proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Name", "Spec", "Inputs", }); + internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor, + new java.lang.String[] { "Id", "Name", }); + internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_Execution_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_Execution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Execution_descriptor, + new java.lang.String[] { "Id", "Spec", "Closure", }); + internal_static_flyteidl_admin_ExecutionList_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionList_descriptor, + new java.lang.String[] { "Executions", "Token", }); + internal_static_flyteidl_admin_LiteralMapBlob_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LiteralMapBlob_descriptor, + new java.lang.String[] { "Values", "Uri", "Data", }); + internal_static_flyteidl_admin_AbortMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_AbortMetadata_descriptor, + new java.lang.String[] { "Cause", "Principal", }); + internal_static_flyteidl_admin_ExecutionClosure_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionClosure_descriptor, + new java.lang.String[] { "Outputs", "Error", "AbortCause", "AbortMetadata", "ComputedInputs", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "Notifications", "WorkflowId", "OutputResult", }); + internal_static_flyteidl_admin_SystemMetadata_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_SystemMetadata_descriptor, + new java.lang.String[] { "ExecutionCluster", }); + internal_static_flyteidl_admin_ExecutionMetadata_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionMetadata_descriptor, + new java.lang.String[] { "Mode", "Principal", "Nesting", "ScheduledAt", "ParentNodeExecution", "ReferenceExecution", "SystemMetadata", }); + internal_static_flyteidl_admin_NotificationList_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_admin_NotificationList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NotificationList_descriptor, + new java.lang.String[] { "Notifications", }); + internal_static_flyteidl_admin_ExecutionSpec_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionSpec_descriptor, + new java.lang.String[] { "LaunchPlan", "Inputs", "Metadata", "Notifications", "DisableAll", "Labels", "Annotations", "AuthRole", "QualityOfService", "NotificationOverrides", }); + internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor, + new java.lang.String[] { "Id", "Cause", }); + internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor, + new java.lang.String[] { "Outputs", "Inputs", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java b/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java new file mode 100644 index 000000000..65080c0fe --- /dev/null +++ b/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java @@ -0,0 +1,13189 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/launch_plan.proto + +package flyteidl.admin; + +public final class LaunchPlanOuterClass { + private LaunchPlanOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * By default any launch plan regardless of state can be used to launch a workflow execution.
+   * However, at most one version of a launch plan
+   * (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be
+   * active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier
+   * group will be observed and trigger executions at a defined cadence.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.LaunchPlanState} + */ + public enum LaunchPlanState + implements com.google.protobuf.ProtocolMessageEnum { + /** + * INACTIVE = 0; + */ + INACTIVE(0), + /** + * ACTIVE = 1; + */ + ACTIVE(1), + UNRECOGNIZED(-1), + ; + + /** + * INACTIVE = 0; + */ + public static final int INACTIVE_VALUE = 0; + /** + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LaunchPlanState valueOf(int value) { + return forNumber(value); + } + + public static LaunchPlanState forNumber(int value) { + switch (value) { + case 0: return INACTIVE; + case 1: return ACTIVE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LaunchPlanState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LaunchPlanState findValueByNumber(int number) { + return LaunchPlanState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.admin.LaunchPlanOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final LaunchPlanState[] VALUES = values(); + + public static LaunchPlanState 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 LaunchPlanState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.LaunchPlanState) + } + + public interface LaunchPlanCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required
+   * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
+   * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} + */ + public static final class LaunchPlanCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateRequest) + LaunchPlanCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanCreateRequest.newBuilder() to construct. + private LaunchPlanCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanCreateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanCreateRequest( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + 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 (spec_ != null) { + output.writeMessage(2, getSpec()); + } + 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 (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) 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(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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; + } + /** + *
+     * Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required
+     * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
+     * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateRequest) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @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:flyteidl.admin.LaunchPlanCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanCreateRequest(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} + */ + public static final class LaunchPlanCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateResponse) + LaunchPlanCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanCreateResponse.newBuilder() to construct. + private LaunchPlanCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanCreateResponse( + 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; + 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateResponse) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(this); + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.LaunchPlanCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateResponse) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanCreateResponse(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlan) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + boolean hasSpec(); + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); + + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + boolean hasClosure(); + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure(); + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * A LaunchPlan provides the capability to templatize workflow executions.
+   * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
+   * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
+   * definition doesn't necessarily have a default value for said input.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlan} + */ + public static final class LaunchPlan extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlan) + LaunchPlanOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlan.newBuilder() to construct. + private LaunchPlan(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlan() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlan( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_; + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { + return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + 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 (spec_ != null) { + output.writeMessage(2, getSpec()); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + 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 (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) 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(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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 LaunchPlan provides the capability to templatize workflow executions.
+     * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
+     * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
+     * definition doesn't necessarily have a default value for said input.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlan} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlan) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlan)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> closureBuilder_; + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; + } + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + @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:flyteidl.admin.LaunchPlan) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlan) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlan DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlan parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlan(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + java.util.List + getLaunchPlansList(); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + int getLaunchPlansCount(); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + java.util.List + getLaunchPlansOrBuilderList(); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Response object for list launch plan requests.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanList} + */ + public static final class LaunchPlanList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanList) + LaunchPlanListOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanList.newBuilder() to construct. + private LaunchPlanList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanList() { + launchPlans_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanList( + 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)) { + launchPlans_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + launchPlans_.add( + input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); + } + + private int bitField0_; + public static final int LAUNCH_PLANS_FIELD_NUMBER = 1; + private java.util.List launchPlans_; + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List getLaunchPlansList() { + return launchPlans_; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List + getLaunchPlansOrBuilderList() { + return launchPlans_; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public int getLaunchPlansCount() { + return launchPlans_.size(); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { + return launchPlans_.get(index); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( + int index) { + return launchPlans_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < launchPlans_.size(); i++) { + output.writeMessage(1, launchPlans_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < launchPlans_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, launchPlans_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) obj; + + if (!getLaunchPlansList() + .equals(other.getLaunchPlansList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getLaunchPlansCount() > 0) { + hash = (37 * hash) + LAUNCH_PLANS_FIELD_NUMBER; + hash = (53 * hash) + getLaunchPlansList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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; + } + /** + *
+     * Response object for list launch plan requests.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanList) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLaunchPlansFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (launchPlansBuilder_ == null) { + launchPlans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + launchPlansBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (launchPlansBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.launchPlans_ = launchPlans_; + } else { + result.launchPlans_ = launchPlansBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance()) return this; + if (launchPlansBuilder_ == null) { + if (!other.launchPlans_.isEmpty()) { + if (launchPlans_.isEmpty()) { + launchPlans_ = other.launchPlans_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLaunchPlansIsMutable(); + launchPlans_.addAll(other.launchPlans_); + } + onChanged(); + } + } else { + if (!other.launchPlans_.isEmpty()) { + if (launchPlansBuilder_.isEmpty()) { + launchPlansBuilder_.dispose(); + launchPlansBuilder_ = null; + launchPlans_ = other.launchPlans_; + bitField0_ = (bitField0_ & ~0x00000001); + launchPlansBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLaunchPlansFieldBuilder() : null; + } else { + launchPlansBuilder_.addAllMessages(other.launchPlans_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List launchPlans_ = + java.util.Collections.emptyList(); + private void ensureLaunchPlansIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + launchPlans_ = new java.util.ArrayList(launchPlans_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> launchPlansBuilder_; + + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List getLaunchPlansList() { + if (launchPlansBuilder_ == null) { + return java.util.Collections.unmodifiableList(launchPlans_); + } else { + return launchPlansBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public int getLaunchPlansCount() { + if (launchPlansBuilder_ == null) { + return launchPlans_.size(); + } else { + return launchPlansBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { + if (launchPlansBuilder_ == null) { + return launchPlans_.get(index); + } else { + return launchPlansBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder setLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { + if (launchPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchPlansIsMutable(); + launchPlans_.set(index, value); + onChanged(); + } else { + launchPlansBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder setLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.set(index, builderForValue.build()); + onChanged(); + } else { + launchPlansBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { + if (launchPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchPlansIsMutable(); + launchPlans_.add(value); + onChanged(); + } else { + launchPlansBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { + if (launchPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchPlansIsMutable(); + launchPlans_.add(index, value); + onChanged(); + } else { + launchPlansBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.add(builderForValue.build()); + onChanged(); + } else { + launchPlansBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.add(index, builderForValue.build()); + onChanged(); + } else { + launchPlansBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addAllLaunchPlans( + java.lang.Iterable values) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, launchPlans_); + onChanged(); + } else { + launchPlansBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder clearLaunchPlans() { + if (launchPlansBuilder_ == null) { + launchPlans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + launchPlansBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder removeLaunchPlans(int index) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.remove(index); + onChanged(); + } else { + launchPlansBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder getLaunchPlansBuilder( + int index) { + return getLaunchPlansFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( + int index) { + if (launchPlansBuilder_ == null) { + return launchPlans_.get(index); } else { + return launchPlansBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List + getLaunchPlansOrBuilderList() { + if (launchPlansBuilder_ != null) { + return launchPlansBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(launchPlans_); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder() { + return getLaunchPlansFieldBuilder().addBuilder( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder( + int index) { + return getLaunchPlansFieldBuilder().addBuilder( + index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List + getLaunchPlansBuilderList() { + return getLaunchPlansFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> + getLaunchPlansFieldBuilder() { + if (launchPlansBuilder_ == null) { + launchPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder>( + launchPlans_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + launchPlans_ = null; + } + return launchPlansBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.LaunchPlanList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanList) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanList(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AuthOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Auth) + com.google.protobuf.MessageOrBuilder { + + /** + * string assumable_iam_role = 1; + */ + java.lang.String getAssumableIamRole(); + /** + * string assumable_iam_role = 1; + */ + com.google.protobuf.ByteString + getAssumableIamRoleBytes(); + + /** + * string kubernetes_service_account = 2; + */ + java.lang.String getKubernetesServiceAccount(); + /** + * string kubernetes_service_account = 2; + */ + com.google.protobuf.ByteString + getKubernetesServiceAccountBytes(); + + public flyteidl.admin.LaunchPlanOuterClass.Auth.MethodCase getMethodCase(); + } + /** + *
+   * Defines permissions associated with executions created by this launch plan spec.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Auth} + */ + public static final class Auth extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Auth) + AuthOrBuilder { + private static final long serialVersionUID = 0L; + // Use Auth.newBuilder() to construct. + private Auth(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Auth() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Auth( + 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(); + methodCase_ = 1; + method_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + methodCase_ = 2; + method_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); + } + + private int methodCase_ = 0; + private java.lang.Object method_; + public enum MethodCase + implements com.google.protobuf.Internal.EnumLite { + ASSUMABLE_IAM_ROLE(1), + KUBERNETES_SERVICE_ACCOUNT(2), + METHOD_NOT_SET(0); + private final int value; + private MethodCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MethodCase valueOf(int value) { + return forNumber(value); + } + + public static MethodCase forNumber(int value) { + switch (value) { + case 1: return ASSUMABLE_IAM_ROLE; + case 2: return KUBERNETES_SERVICE_ACCOUNT; + case 0: return METHOD_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public MethodCase + getMethodCase() { + return MethodCase.forNumber( + methodCase_); + } + + public static final int ASSUMABLE_IAM_ROLE_FIELD_NUMBER = 1; + /** + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + 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(); + if (methodCase_ == 1) { + method_ = s; + } + return s; + } + } + /** + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 1) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + /** + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + 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(); + if (methodCase_ == 2) { + method_ = s; + } + return s; + } + } + /** + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 2) { + method_ = 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 (methodCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); + } + if (methodCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (methodCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); + } + if (methodCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); + } + 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 flyteidl.admin.LaunchPlanOuterClass.Auth)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.Auth other = (flyteidl.admin.LaunchPlanOuterClass.Auth) obj; + + if (!getMethodCase().equals(other.getMethodCase())) return false; + switch (methodCase_) { + case 1: + if (!getAssumableIamRole() + .equals(other.getAssumableIamRole())) return false; + break; + case 2: + if (!getKubernetesServiceAccount() + .equals(other.getKubernetesServiceAccount())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (methodCase_) { + case 1: + hash = (37 * hash) + ASSUMABLE_IAM_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAssumableIamRole().hashCode(); + break; + case 2: + hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth 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 flyteidl.admin.LaunchPlanOuterClass.Auth parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth 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 flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth 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(flyteidl.admin.LaunchPlanOuterClass.Auth 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; + } + /** + *
+     * Defines permissions associated with executions created by this launch plan spec.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Auth} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Auth) + flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.Auth.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(); + methodCase_ = 0; + method_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.Auth build() { + flyteidl.admin.LaunchPlanOuterClass.Auth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.Auth buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.Auth result = new flyteidl.admin.LaunchPlanOuterClass.Auth(this); + if (methodCase_ == 1) { + result.method_ = method_; + } + if (methodCase_ == 2) { + result.method_ = method_; + } + result.methodCase_ = methodCase_; + 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 flyteidl.admin.LaunchPlanOuterClass.Auth) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.Auth)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.Auth other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance()) return this; + switch (other.getMethodCase()) { + case ASSUMABLE_IAM_ROLE: { + methodCase_ = 1; + method_ = other.method_; + onChanged(); + break; + } + case KUBERNETES_SERVICE_ACCOUNT: { + methodCase_ = 2; + method_ = other.method_; + onChanged(); + break; + } + case METHOD_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 { + flyteidl.admin.LaunchPlanOuterClass.Auth parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.Auth) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int methodCase_ = 0; + private java.lang.Object method_; + public MethodCase + getMethodCase() { + return MethodCase.forNumber( + methodCase_); + } + + public Builder clearMethod() { + methodCase_ = 0; + method_ = null; + onChanged(); + return this; + } + + + /** + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (methodCase_ == 1) { + method_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 1) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + methodCase_ = 1; + method_ = value; + onChanged(); + return this; + } + /** + * string assumable_iam_role = 1; + */ + public Builder clearAssumableIamRole() { + if (methodCase_ == 1) { + methodCase_ = 0; + method_ = null; + onChanged(); + } + return this; + } + /** + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + methodCase_ = 1; + method_ = value; + onChanged(); + return this; + } + + /** + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (methodCase_ == 2) { + method_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 2) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + methodCase_ = 2; + method_ = value; + onChanged(); + return this; + } + /** + * string kubernetes_service_account = 2; + */ + public Builder clearKubernetesServiceAccount() { + if (methodCase_ == 2) { + methodCase_ = 0; + method_ = null; + onChanged(); + } + return this; + } + /** + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + methodCase_ = 2; + method_ = 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:flyteidl.admin.Auth) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Auth) + private static final flyteidl.admin.LaunchPlanOuterClass.Auth DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.Auth(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Auth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Auth(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 flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + boolean hasWorkflowId(); + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); + + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + boolean hasEntityMetadata(); + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata(); + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder(); + + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + boolean hasDefaultInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + flyteidl.core.Interface.ParameterMap getDefaultInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder(); + + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + boolean hasFixedInputs(); + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + flyteidl.core.Literals.LiteralMap getFixedInputs(); + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder(); + + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getRole(); + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getRoleBytes(); + + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + boolean hasLabels(); + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + flyteidl.admin.Common.Labels getLabels(); + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); + + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + boolean hasAnnotations(); + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + flyteidl.admin.Common.Annotations getAnnotations(); + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); + + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasAuth(); + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.LaunchPlanOuterClass.Auth getAuth(); + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder(); + + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + boolean hasAuthRole(); + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + flyteidl.admin.Common.AuthRole getAuthRole(); + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder(); + + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + boolean hasQualityOfService(); + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + flyteidl.core.Execution.QualityOfService getQualityOfService(); + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); + } + /** + *
+   * User-provided launch plan definition and configuration values.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} + */ + public static final class LaunchPlanSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanSpec) + LaunchPlanSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanSpec.newBuilder() to construct. + private LaunchPlanSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanSpec() { + role_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanSpec( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (workflowId_ != null) { + subBuilder = workflowId_.toBuilder(); + } + workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowId_); + workflowId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder subBuilder = null; + if (entityMetadata_ != null) { + subBuilder = entityMetadata_.toBuilder(); + } + entityMetadata_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entityMetadata_); + entityMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; + if (defaultInputs_ != null) { + subBuilder = defaultInputs_.toBuilder(); + } + defaultInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultInputs_); + defaultInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (fixedInputs_ != null) { + subBuilder = fixedInputs_.toBuilder(); + } + fixedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fixedInputs_); + fixedInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + role_ = s; + break; + } + case 50: { + flyteidl.admin.Common.Labels.Builder subBuilder = null; + if (labels_ != null) { + subBuilder = labels_.toBuilder(); + } + labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labels_); + labels_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + flyteidl.admin.Common.Annotations.Builder subBuilder = null; + if (annotations_ != null) { + subBuilder = annotations_.toBuilder(); + } + annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotations_); + annotations_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + flyteidl.admin.LaunchPlanOuterClass.Auth.Builder subBuilder = null; + if (auth_ != null) { + subBuilder = auth_.toBuilder(); + } + auth_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.Auth.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(auth_); + auth_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + flyteidl.admin.Common.AuthRole.Builder subBuilder = null; + if (authRole_ != null) { + subBuilder = authRole_.toBuilder(); + } + authRole_ = input.readMessage(flyteidl.admin.Common.AuthRole.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authRole_); + authRole_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; + if (qualityOfService_ != null) { + subBuilder = qualityOfService_.toBuilder(); + } + qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qualityOfService_); + qualityOfService_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); + } + + public static final int WORKFLOW_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public boolean hasWorkflowId() { + return workflowId_ != null; + } + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + return getWorkflowId(); + } + + public static final int ENTITY_METADATA_FIELD_NUMBER = 2; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_; + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public boolean hasEntityMetadata() { + return entityMetadata_ != null; + } + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { + return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; + } + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { + return getEntityMetadata(); + } + + public static final int DEFAULT_INPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Interface.ParameterMap defaultInputs_; + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public boolean hasDefaultInputs() { + return defaultInputs_ != null; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMap getDefaultInputs() { + return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { + return getDefaultInputs(); + } + + public static final int FIXED_INPUTS_FIELD_NUMBER = 4; + private flyteidl.core.Literals.LiteralMap fixedInputs_; + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public boolean hasFixedInputs() { + return fixedInputs_ != null; + } + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFixedInputs() { + return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; + } + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { + return getFixedInputs(); + } + + public static final int ROLE_FIELD_NUMBER = 5; + private volatile java.lang.Object role_; + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getRole() { + java.lang.Object ref = role_; + 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(); + role_ = s; + return s; + } + } + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 6; + private flyteidl.admin.Common.Labels labels_; + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public boolean hasLabels() { + return labels_ != null; + } + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.Labels getLabels() { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + return getLabels(); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 7; + private flyteidl.admin.Common.Annotations annotations_; + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public boolean hasAnnotations() { + return annotations_ != null; + } + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + return getAnnotations(); + } + + public static final int AUTH_FIELD_NUMBER = 8; + private flyteidl.admin.LaunchPlanOuterClass.Auth auth_; + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasAuth() { + return auth_ != null; + } + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { + return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; + } + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { + return getAuth(); + } + + public static final int AUTH_ROLE_FIELD_NUMBER = 9; + private flyteidl.admin.Common.AuthRole authRole_; + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public boolean hasAuthRole() { + return authRole_ != null; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public flyteidl.admin.Common.AuthRole getAuthRole() { + return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { + return getAuthRole(); + } + + public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 16; + private flyteidl.core.Execution.QualityOfService qualityOfService_; + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public boolean hasQualityOfService() { + return qualityOfService_ != null; + } + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + return getQualityOfService(); + } + + 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 (workflowId_ != null) { + output.writeMessage(1, getWorkflowId()); + } + if (entityMetadata_ != null) { + output.writeMessage(2, getEntityMetadata()); + } + if (defaultInputs_ != null) { + output.writeMessage(3, getDefaultInputs()); + } + if (fixedInputs_ != null) { + output.writeMessage(4, getFixedInputs()); + } + if (!getRoleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, role_); + } + if (labels_ != null) { + output.writeMessage(6, getLabels()); + } + if (annotations_ != null) { + output.writeMessage(7, getAnnotations()); + } + if (auth_ != null) { + output.writeMessage(8, getAuth()); + } + if (authRole_ != null) { + output.writeMessage(9, getAuthRole()); + } + if (qualityOfService_ != null) { + output.writeMessage(16, getQualityOfService()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflowId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflowId()); + } + if (entityMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEntityMetadata()); + } + if (defaultInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDefaultInputs()); + } + if (fixedInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getFixedInputs()); + } + if (!getRoleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, role_); + } + if (labels_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getLabels()); + } + if (annotations_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getAnnotations()); + } + if (auth_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAuth()); + } + if (authRole_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getAuthRole()); + } + if (qualityOfService_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getQualityOfService()); + } + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) obj; + + if (hasWorkflowId() != other.hasWorkflowId()) return false; + if (hasWorkflowId()) { + if (!getWorkflowId() + .equals(other.getWorkflowId())) return false; + } + if (hasEntityMetadata() != other.hasEntityMetadata()) return false; + if (hasEntityMetadata()) { + if (!getEntityMetadata() + .equals(other.getEntityMetadata())) return false; + } + if (hasDefaultInputs() != other.hasDefaultInputs()) return false; + if (hasDefaultInputs()) { + if (!getDefaultInputs() + .equals(other.getDefaultInputs())) return false; + } + if (hasFixedInputs() != other.hasFixedInputs()) return false; + if (hasFixedInputs()) { + if (!getFixedInputs() + .equals(other.getFixedInputs())) return false; + } + if (!getRole() + .equals(other.getRole())) return false; + if (hasLabels() != other.hasLabels()) return false; + if (hasLabels()) { + if (!getLabels() + .equals(other.getLabels())) return false; + } + if (hasAnnotations() != other.hasAnnotations()) return false; + if (hasAnnotations()) { + if (!getAnnotations() + .equals(other.getAnnotations())) return false; + } + if (hasAuth() != other.hasAuth()) return false; + if (hasAuth()) { + if (!getAuth() + .equals(other.getAuth())) return false; + } + if (hasAuthRole() != other.hasAuthRole()) return false; + if (hasAuthRole()) { + if (!getAuthRole() + .equals(other.getAuthRole())) return false; + } + if (hasQualityOfService() != other.hasQualityOfService()) return false; + if (hasQualityOfService()) { + if (!getQualityOfService() + .equals(other.getQualityOfService())) 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 (hasWorkflowId()) { + hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId().hashCode(); + } + if (hasEntityMetadata()) { + hash = (37 * hash) + ENTITY_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getEntityMetadata().hashCode(); + } + if (hasDefaultInputs()) { + hash = (37 * hash) + DEFAULT_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getDefaultInputs().hashCode(); + } + if (hasFixedInputs()) { + hash = (37 * hash) + FIXED_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getFixedInputs().hashCode(); + } + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + if (hasLabels()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabels().hashCode(); + } + if (hasAnnotations()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotations().hashCode(); + } + if (hasAuth()) { + hash = (37 * hash) + AUTH_FIELD_NUMBER; + hash = (53 * hash) + getAuth().hashCode(); + } + if (hasAuthRole()) { + hash = (37 * hash) + AUTH_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAuthRole().hashCode(); + } + if (hasQualityOfService()) { + hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getQualityOfService().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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; + } + /** + *
+     * User-provided launch plan definition and configuration values.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanSpec) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.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 (workflowIdBuilder_ == null) { + workflowId_ = null; + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + if (entityMetadataBuilder_ == null) { + entityMetadata_ = null; + } else { + entityMetadata_ = null; + entityMetadataBuilder_ = null; + } + if (defaultInputsBuilder_ == null) { + defaultInputs_ = null; + } else { + defaultInputs_ = null; + defaultInputsBuilder_ = null; + } + if (fixedInputsBuilder_ == null) { + fixedInputs_ = null; + } else { + fixedInputs_ = null; + fixedInputsBuilder_ = null; + } + role_ = ""; + + if (labelsBuilder_ == null) { + labels_ = null; + } else { + labels_ = null; + labelsBuilder_ = null; + } + if (annotationsBuilder_ == null) { + annotations_ = null; + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + if (authBuilder_ == null) { + auth_ = null; + } else { + auth_ = null; + authBuilder_ = null; + } + if (authRoleBuilder_ == null) { + authRole_ = null; + } else { + authRole_ = null; + authRoleBuilder_ = null; + } + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(this); + if (workflowIdBuilder_ == null) { + result.workflowId_ = workflowId_; + } else { + result.workflowId_ = workflowIdBuilder_.build(); + } + if (entityMetadataBuilder_ == null) { + result.entityMetadata_ = entityMetadata_; + } else { + result.entityMetadata_ = entityMetadataBuilder_.build(); + } + if (defaultInputsBuilder_ == null) { + result.defaultInputs_ = defaultInputs_; + } else { + result.defaultInputs_ = defaultInputsBuilder_.build(); + } + if (fixedInputsBuilder_ == null) { + result.fixedInputs_ = fixedInputs_; + } else { + result.fixedInputs_ = fixedInputsBuilder_.build(); + } + result.role_ = role_; + if (labelsBuilder_ == null) { + result.labels_ = labels_; + } else { + result.labels_ = labelsBuilder_.build(); + } + if (annotationsBuilder_ == null) { + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + if (authBuilder_ == null) { + result.auth_ = auth_; + } else { + result.auth_ = authBuilder_.build(); + } + if (authRoleBuilder_ == null) { + result.authRole_ = authRole_; + } else { + result.authRole_ = authRoleBuilder_.build(); + } + if (qualityOfServiceBuilder_ == null) { + result.qualityOfService_ = qualityOfService_; + } else { + result.qualityOfService_ = qualityOfServiceBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance()) return this; + if (other.hasWorkflowId()) { + mergeWorkflowId(other.getWorkflowId()); + } + if (other.hasEntityMetadata()) { + mergeEntityMetadata(other.getEntityMetadata()); + } + if (other.hasDefaultInputs()) { + mergeDefaultInputs(other.getDefaultInputs()); + } + if (other.hasFixedInputs()) { + mergeFixedInputs(other.getFixedInputs()); + } + if (!other.getRole().isEmpty()) { + role_ = other.role_; + onChanged(); + } + if (other.hasLabels()) { + mergeLabels(other.getLabels()); + } + if (other.hasAnnotations()) { + mergeAnnotations(other.getAnnotations()); + } + if (other.hasAuth()) { + mergeAuth(other.getAuth()); + } + if (other.hasAuthRole()) { + mergeAuthRole(other.getAuthRole()); + } + if (other.hasQualityOfService()) { + mergeQualityOfService(other.getQualityOfService()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public boolean hasWorkflowId() { + return workflowIdBuilder_ != null || workflowId_ != null; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + if (workflowIdBuilder_ == null) { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } else { + return workflowIdBuilder_.getMessage(); + } + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowId_ = value; + onChanged(); + } else { + workflowIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder setWorkflowId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (workflowIdBuilder_ == null) { + workflowId_ = builderForValue.build(); + onChanged(); + } else { + workflowIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (workflowId_ != null) { + workflowId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); + } else { + workflowId_ = value; + } + onChanged(); + } else { + workflowIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder clearWorkflowId() { + if (workflowIdBuilder_ == null) { + workflowId_ = null; + onChanged(); + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { + + onChanged(); + return getWorkflowIdFieldBuilder().getBuilder(); + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + if (workflowIdBuilder_ != null) { + return workflowIdBuilder_.getMessageOrBuilder(); + } else { + return workflowId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getWorkflowIdFieldBuilder() { + if (workflowIdBuilder_ == null) { + workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getWorkflowId(), + getParentForChildren(), + isClean()); + workflowId_ = null; + } + return workflowIdBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> entityMetadataBuilder_; + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public boolean hasEntityMetadata() { + return entityMetadataBuilder_ != null || entityMetadata_ != null; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { + if (entityMetadataBuilder_ == null) { + return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; + } else { + return entityMetadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder setEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { + if (entityMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityMetadata_ = value; + onChanged(); + } else { + entityMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder setEntityMetadata( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder builderForValue) { + if (entityMetadataBuilder_ == null) { + entityMetadata_ = builderForValue.build(); + onChanged(); + } else { + entityMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder mergeEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { + if (entityMetadataBuilder_ == null) { + if (entityMetadata_ != null) { + entityMetadata_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder(entityMetadata_).mergeFrom(value).buildPartial(); + } else { + entityMetadata_ = value; + } + onChanged(); + } else { + entityMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder clearEntityMetadata() { + if (entityMetadataBuilder_ == null) { + entityMetadata_ = null; + onChanged(); + } else { + entityMetadata_ = null; + entityMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder getEntityMetadataBuilder() { + + onChanged(); + return getEntityMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { + if (entityMetadataBuilder_ != null) { + return entityMetadataBuilder_.getMessageOrBuilder(); + } else { + return entityMetadata_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; + } + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> + getEntityMetadataFieldBuilder() { + if (entityMetadataBuilder_ == null) { + entityMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder>( + getEntityMetadata(), + getParentForChildren(), + isClean()); + entityMetadata_ = null; + } + return entityMetadataBuilder_; + } + + private flyteidl.core.Interface.ParameterMap defaultInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> defaultInputsBuilder_; + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public boolean hasDefaultInputs() { + return defaultInputsBuilder_ != null || defaultInputs_ != null; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMap getDefaultInputs() { + if (defaultInputsBuilder_ == null) { + return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; + } else { + return defaultInputsBuilder_.getMessage(); + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder setDefaultInputs(flyteidl.core.Interface.ParameterMap value) { + if (defaultInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultInputs_ = value; + onChanged(); + } else { + defaultInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder setDefaultInputs( + flyteidl.core.Interface.ParameterMap.Builder builderForValue) { + if (defaultInputsBuilder_ == null) { + defaultInputs_ = builderForValue.build(); + onChanged(); + } else { + defaultInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder mergeDefaultInputs(flyteidl.core.Interface.ParameterMap value) { + if (defaultInputsBuilder_ == null) { + if (defaultInputs_ != null) { + defaultInputs_ = + flyteidl.core.Interface.ParameterMap.newBuilder(defaultInputs_).mergeFrom(value).buildPartial(); + } else { + defaultInputs_ = value; + } + onChanged(); + } else { + defaultInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder clearDefaultInputs() { + if (defaultInputsBuilder_ == null) { + defaultInputs_ = null; + onChanged(); + } else { + defaultInputs_ = null; + defaultInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMap.Builder getDefaultInputsBuilder() { + + onChanged(); + return getDefaultInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { + if (defaultInputsBuilder_ != null) { + return defaultInputsBuilder_.getMessageOrBuilder(); + } else { + return defaultInputs_ == null ? + flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> + getDefaultInputsFieldBuilder() { + if (defaultInputsBuilder_ == null) { + defaultInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( + getDefaultInputs(), + getParentForChildren(), + isClean()); + defaultInputs_ = null; + } + return defaultInputsBuilder_; + } + + private flyteidl.core.Literals.LiteralMap fixedInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fixedInputsBuilder_; + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public boolean hasFixedInputs() { + return fixedInputsBuilder_ != null || fixedInputs_ != null; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFixedInputs() { + if (fixedInputsBuilder_ == null) { + return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; + } else { + return fixedInputsBuilder_.getMessage(); + } + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder setFixedInputs(flyteidl.core.Literals.LiteralMap value) { + if (fixedInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fixedInputs_ = value; + onChanged(); + } else { + fixedInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder setFixedInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (fixedInputsBuilder_ == null) { + fixedInputs_ = builderForValue.build(); + onChanged(); + } else { + fixedInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder mergeFixedInputs(flyteidl.core.Literals.LiteralMap value) { + if (fixedInputsBuilder_ == null) { + if (fixedInputs_ != null) { + fixedInputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(fixedInputs_).mergeFrom(value).buildPartial(); + } else { + fixedInputs_ = value; + } + onChanged(); + } else { + fixedInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder clearFixedInputs() { + if (fixedInputsBuilder_ == null) { + fixedInputs_ = null; + onChanged(); + } else { + fixedInputs_ = null; + fixedInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMap.Builder getFixedInputsBuilder() { + + onChanged(); + return getFixedInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { + if (fixedInputsBuilder_ != null) { + return fixedInputsBuilder_.getMessageOrBuilder(); + } else { + return fixedInputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; + } + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getFixedInputsFieldBuilder() { + if (fixedInputsBuilder_ == null) { + fixedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getFixedInputs(), + getParentForChildren(), + isClean()); + fixedInputs_ = null; + } + return fixedInputsBuilder_; + } + + private java.lang.Object role_ = ""; + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + role_ = value; + onChanged(); + return this; + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearRole() { + + role_ = getDefaultInstance().getRole(); + onChanged(); + return this; + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + role_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Labels labels_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public boolean hasLabels() { + return labelsBuilder_ != null || labels_ != null; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.Labels getLabels() { + if (labelsBuilder_ == null) { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } else { + return labelsBuilder_.getMessage(); + } + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder setLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labels_ = value; + onChanged(); + } else { + labelsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder setLabels( + flyteidl.admin.Common.Labels.Builder builderForValue) { + if (labelsBuilder_ == null) { + labels_ = builderForValue.build(); + onChanged(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder mergeLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (labels_ != null) { + labels_ = + flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); + } else { + labels_ = value; + } + onChanged(); + } else { + labelsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder clearLabels() { + if (labelsBuilder_ == null) { + labels_ = null; + onChanged(); + } else { + labels_ = null; + labelsBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { + + onChanged(); + return getLabelsFieldBuilder().getBuilder(); + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + if (labelsBuilder_ != null) { + return labelsBuilder_.getMessageOrBuilder(); + } else { + return labels_ == null ? + flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> + getLabelsFieldBuilder() { + if (labelsBuilder_ == null) { + labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( + getLabels(), + getParentForChildren(), + isClean()); + labels_ = null; + } + return labelsBuilder_; + } + + private flyteidl.admin.Common.Annotations annotations_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public boolean hasAnnotations() { + return annotationsBuilder_ != null || annotations_ != null; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + if (annotationsBuilder_ == null) { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } else { + return annotationsBuilder_.getMessage(); + } + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotations_ = value; + onChanged(); + } else { + annotationsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder setAnnotations( + flyteidl.admin.Common.Annotations.Builder builderForValue) { + if (annotationsBuilder_ == null) { + annotations_ = builderForValue.build(); + onChanged(); + } else { + annotationsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (annotations_ != null) { + annotations_ = + flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); + } else { + annotations_ = value; + } + onChanged(); + } else { + annotationsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = null; + onChanged(); + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { + + onChanged(); + return getAnnotationsFieldBuilder().getBuilder(); + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilder(); + } else { + return annotations_ == null ? + flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> + getAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( + getAnnotations(), + getParentForChildren(), + isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.Auth auth_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> authBuilder_; + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasAuth() { + return authBuilder_ != null || auth_ != null; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { + if (authBuilder_ == null) { + return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; + } else { + return authBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { + if (authBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + auth_ = value; + onChanged(); + } else { + authBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAuth( + flyteidl.admin.LaunchPlanOuterClass.Auth.Builder builderForValue) { + if (authBuilder_ == null) { + auth_ = builderForValue.build(); + onChanged(); + } else { + authBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { + if (authBuilder_ == null) { + if (auth_ != null) { + auth_ = + flyteidl.admin.LaunchPlanOuterClass.Auth.newBuilder(auth_).mergeFrom(value).buildPartial(); + } else { + auth_ = value; + } + onChanged(); + } else { + authBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearAuth() { + if (authBuilder_ == null) { + auth_ = null; + onChanged(); + } else { + auth_ = null; + authBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth.Builder getAuthBuilder() { + + onChanged(); + return getAuthFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { + if (authBuilder_ != null) { + return authBuilder_.getMessageOrBuilder(); + } else { + return auth_ == null ? + flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; + } + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> + getAuthFieldBuilder() { + if (authBuilder_ == null) { + authBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder>( + getAuth(), + getParentForChildren(), + isClean()); + auth_ = null; + } + return authBuilder_; + } + + private flyteidl.admin.Common.AuthRole authRole_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> authRoleBuilder_; + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public boolean hasAuthRole() { + return authRoleBuilder_ != null || authRole_ != null; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public flyteidl.admin.Common.AuthRole getAuthRole() { + if (authRoleBuilder_ == null) { + return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } else { + return authRoleBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public Builder setAuthRole(flyteidl.admin.Common.AuthRole value) { + if (authRoleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authRole_ = value; + onChanged(); + } else { + authRoleBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public Builder setAuthRole( + flyteidl.admin.Common.AuthRole.Builder builderForValue) { + if (authRoleBuilder_ == null) { + authRole_ = builderForValue.build(); + onChanged(); + } else { + authRoleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public Builder mergeAuthRole(flyteidl.admin.Common.AuthRole value) { + if (authRoleBuilder_ == null) { + if (authRole_ != null) { + authRole_ = + flyteidl.admin.Common.AuthRole.newBuilder(authRole_).mergeFrom(value).buildPartial(); + } else { + authRole_ = value; + } + onChanged(); + } else { + authRoleBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public Builder clearAuthRole() { + if (authRoleBuilder_ == null) { + authRole_ = null; + onChanged(); + } else { + authRole_ = null; + authRoleBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public flyteidl.admin.Common.AuthRole.Builder getAuthRoleBuilder() { + + onChanged(); + return getAuthRoleFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { + if (authRoleBuilder_ != null) { + return authRoleBuilder_.getMessageOrBuilder(); + } else { + return authRole_ == null ? + flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> + getAuthRoleFieldBuilder() { + if (authRoleBuilder_ == null) { + authRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder>( + getAuthRole(), + getParentForChildren(), + isClean()); + authRole_ = null; + } + return authRoleBuilder_; + } + + private flyteidl.core.Execution.QualityOfService qualityOfService_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public boolean hasQualityOfService() { + return qualityOfServiceBuilder_ != null || qualityOfService_ != null; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } else { + return qualityOfServiceBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualityOfService_ = value; + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public Builder setQualityOfService( + flyteidl.core.Execution.QualityOfService.Builder builderForValue) { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = builderForValue.build(); + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (qualityOfService_ != null) { + qualityOfService_ = + flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); + } else { + qualityOfService_ = value; + } + onChanged(); + } else { + qualityOfServiceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public Builder clearQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + onChanged(); + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { + + onChanged(); + return getQualityOfServiceFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if (qualityOfServiceBuilder_ != null) { + return qualityOfServiceBuilder_.getMessageOrBuilder(); + } else { + return qualityOfService_ == null ? + flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> + getQualityOfServiceFieldBuilder() { + if (qualityOfServiceBuilder_ == null) { + qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( + getQualityOfService(), + getParentForChildren(), + isClean()); + qualityOfService_ = null; + } + return qualityOfServiceBuilder_; + } + @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:flyteidl.admin.LaunchPlanSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanSpec) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanSpec(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicate the Launch plan phase
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + int getStateValue(); + /** + *
+     * Indicate the Launch plan phase
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); + + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + boolean hasExpectedInputs(); + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + flyteidl.core.Interface.ParameterMap getExpectedInputs(); + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder(); + + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + boolean hasExpectedOutputs(); + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + flyteidl.core.Interface.VariableMap getExpectedOutputs(); + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder(); + + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + boolean hasUpdatedAt(); + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + } + /** + *
+   * Values computed by the flyte platform after launch plan registration.
+   * These include expected_inputs required to be present in a CreateExecutionRequest
+   * to launch the reference workflow as well timestamp values associated with the launch plan.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} + */ + public static final class LaunchPlanClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanClosure) + LaunchPlanClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanClosure.newBuilder() to construct. + private LaunchPlanClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanClosure() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanClosure( + 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 8: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 18: { + flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; + if (expectedInputs_ != null) { + subBuilder = expectedInputs_.toBuilder(); + } + expectedInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedInputs_); + expectedInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Interface.VariableMap.Builder subBuilder = null; + if (expectedOutputs_ != null) { + subBuilder = expectedOutputs_.toBuilder(); + } + expectedOutputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedOutputs_); + expectedOutputs_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + 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 42: { + 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_; + /** + *
+     * Indicate the Launch plan phase
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * Indicate the Launch plan phase
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + + public static final int EXPECTED_INPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Interface.ParameterMap expectedInputs_; + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public boolean hasExpectedInputs() { + return expectedInputs_ != null; + } + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMap getExpectedInputs() { + return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; + } + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { + return getExpectedInputs(); + } + + public static final int EXPECTED_OUTPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Interface.VariableMap expectedOutputs_; + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public boolean hasExpectedOutputs() { + return expectedOutputs_ != null; + } + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMap getExpectedOutputs() { + return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; + } + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { + return getExpectedOutputs(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + 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 (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + output.writeEnum(1, state_); + } + if (expectedInputs_ != null) { + output.writeMessage(2, getExpectedInputs()); + } + if (expectedOutputs_ != null) { + output.writeMessage(3, getExpectedOutputs()); + } + if (createdAt_ != null) { + output.writeMessage(4, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(5, getUpdatedAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); + } + if (expectedInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpectedInputs()); + } + if (expectedOutputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getExpectedOutputs()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) obj; + + if (state_ != other.state_) return false; + if (hasExpectedInputs() != other.hasExpectedInputs()) return false; + if (hasExpectedInputs()) { + if (!getExpectedInputs() + .equals(other.getExpectedInputs())) return false; + } + if (hasExpectedOutputs() != other.hasExpectedOutputs()) return false; + if (hasExpectedOutputs()) { + if (!getExpectedOutputs() + .equals(other.getExpectedOutputs())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasExpectedInputs()) { + hash = (37 * hash) + EXPECTED_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getExpectedInputs().hashCode(); + } + if (hasExpectedOutputs()) { + hash = (37 * hash) + EXPECTED_OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getExpectedOutputs().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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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; + } + /** + *
+     * Values computed by the flyte platform after launch plan registration.
+     * These include expected_inputs required to be present in a CreateExecutionRequest
+     * to launch the reference workflow as well timestamp values associated with the launch plan.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanClosure) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.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(); + state_ = 0; + + if (expectedInputsBuilder_ == null) { + expectedInputs_ = null; + } else { + expectedInputs_ = null; + expectedInputsBuilder_ = null; + } + if (expectedOutputsBuilder_ == null) { + expectedOutputs_ = null; + } else { + expectedOutputs_ = null; + expectedOutputsBuilder_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(this); + result.state_ = state_; + if (expectedInputsBuilder_ == null) { + result.expectedInputs_ = expectedInputs_; + } else { + result.expectedInputs_ = expectedInputsBuilder_.build(); + } + if (expectedOutputsBuilder_ == null) { + result.expectedOutputs_ = expectedOutputs_; + } else { + result.expectedOutputs_ = expectedOutputsBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasExpectedInputs()) { + mergeExpectedInputs(other.getExpectedInputs()); + } + if (other.hasExpectedOutputs()) { + mergeExpectedOutputs(other.getExpectedOutputs()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Interface.ParameterMap expectedInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> expectedInputsBuilder_; + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public boolean hasExpectedInputs() { + return expectedInputsBuilder_ != null || expectedInputs_ != null; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMap getExpectedInputs() { + if (expectedInputsBuilder_ == null) { + return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; + } else { + return expectedInputsBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder setExpectedInputs(flyteidl.core.Interface.ParameterMap value) { + if (expectedInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedInputs_ = value; + onChanged(); + } else { + expectedInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder setExpectedInputs( + flyteidl.core.Interface.ParameterMap.Builder builderForValue) { + if (expectedInputsBuilder_ == null) { + expectedInputs_ = builderForValue.build(); + onChanged(); + } else { + expectedInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder mergeExpectedInputs(flyteidl.core.Interface.ParameterMap value) { + if (expectedInputsBuilder_ == null) { + if (expectedInputs_ != null) { + expectedInputs_ = + flyteidl.core.Interface.ParameterMap.newBuilder(expectedInputs_).mergeFrom(value).buildPartial(); + } else { + expectedInputs_ = value; + } + onChanged(); + } else { + expectedInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder clearExpectedInputs() { + if (expectedInputsBuilder_ == null) { + expectedInputs_ = null; + onChanged(); + } else { + expectedInputs_ = null; + expectedInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMap.Builder getExpectedInputsBuilder() { + + onChanged(); + return getExpectedInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { + if (expectedInputsBuilder_ != null) { + return expectedInputsBuilder_.getMessageOrBuilder(); + } else { + return expectedInputs_ == null ? + flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; + } + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> + getExpectedInputsFieldBuilder() { + if (expectedInputsBuilder_ == null) { + expectedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( + getExpectedInputs(), + getParentForChildren(), + isClean()); + expectedInputs_ = null; + } + return expectedInputsBuilder_; + } + + private flyteidl.core.Interface.VariableMap expectedOutputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> expectedOutputsBuilder_; + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public boolean hasExpectedOutputs() { + return expectedOutputsBuilder_ != null || expectedOutputs_ != null; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMap getExpectedOutputs() { + if (expectedOutputsBuilder_ == null) { + return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; + } else { + return expectedOutputsBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder setExpectedOutputs(flyteidl.core.Interface.VariableMap value) { + if (expectedOutputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedOutputs_ = value; + onChanged(); + } else { + expectedOutputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder setExpectedOutputs( + flyteidl.core.Interface.VariableMap.Builder builderForValue) { + if (expectedOutputsBuilder_ == null) { + expectedOutputs_ = builderForValue.build(); + onChanged(); + } else { + expectedOutputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder mergeExpectedOutputs(flyteidl.core.Interface.VariableMap value) { + if (expectedOutputsBuilder_ == null) { + if (expectedOutputs_ != null) { + expectedOutputs_ = + flyteidl.core.Interface.VariableMap.newBuilder(expectedOutputs_).mergeFrom(value).buildPartial(); + } else { + expectedOutputs_ = value; + } + onChanged(); + } else { + expectedOutputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder clearExpectedOutputs() { + if (expectedOutputsBuilder_ == null) { + expectedOutputs_ = null; + onChanged(); + } else { + expectedOutputs_ = null; + expectedOutputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMap.Builder getExpectedOutputsBuilder() { + + onChanged(); + return getExpectedOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { + if (expectedOutputsBuilder_ != null) { + return expectedOutputsBuilder_.getMessageOrBuilder(); + } else { + return expectedOutputs_ == null ? + flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; + } + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> + getExpectedOutputsFieldBuilder() { + if (expectedOutputsBuilder_ == null) { + expectedOutputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( + getExpectedOutputs(), + getParentForChildren(), + isClean()); + expectedOutputs_ = null; + } + return expectedOutputsBuilder_; + } + + 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_; + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + 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; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + 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; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + 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_; + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + 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; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + 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; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + 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:flyteidl.admin.LaunchPlanClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanClosure) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanClosure(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + boolean hasSchedule(); + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + flyteidl.admin.ScheduleOuterClass.Schedule getSchedule(); + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder(); + + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + java.util.List + getNotificationsList(); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + flyteidl.admin.Common.Notification getNotifications(int index); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + int getNotificationsCount(); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + java.util.List + getNotificationsOrBuilderList(); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index); + } + /** + *
+   * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
+   * the reference workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} + */ + public static final class LaunchPlanMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanMetadata) + LaunchPlanMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanMetadata.newBuilder() to construct. + private LaunchPlanMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanMetadata() { + notifications_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanMetadata( + 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: { + flyteidl.admin.ScheduleOuterClass.Schedule.Builder subBuilder = null; + if (schedule_ != null) { + subBuilder = schedule_.toBuilder(); + } + schedule_ = input.readMessage(flyteidl.admin.ScheduleOuterClass.Schedule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schedule_); + schedule_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + notifications_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + notifications_.add( + input.readMessage(flyteidl.admin.Common.Notification.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_ & 0x00000002) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); + } + + private int bitField0_; + public static final int SCHEDULE_FIELD_NUMBER = 1; + private flyteidl.admin.ScheduleOuterClass.Schedule schedule_; + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public boolean hasSchedule() { + return schedule_ != null; + } + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { + return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; + } + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { + return getSchedule(); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 2; + private java.util.List notifications_; + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List getNotificationsList() { + return notifications_; + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List + getNotificationsOrBuilderList() { + return notifications_; + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public int getNotificationsCount() { + return notifications_.size(); + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + return notifications_.get(index); + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + return notifications_.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 (schedule_ != null) { + output.writeMessage(1, getSchedule()); + } + for (int i = 0; i < notifications_.size(); i++) { + output.writeMessage(2, notifications_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (schedule_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSchedule()); + } + for (int i = 0; i < notifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, notifications_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) obj; + + if (hasSchedule() != other.hasSchedule()) return false; + if (hasSchedule()) { + if (!getSchedule() + .equals(other.getSchedule())) return false; + } + if (!getNotificationsList() + .equals(other.getNotificationsList())) 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 (hasSchedule()) { + hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getSchedule().hashCode(); + } + if (getNotificationsCount() > 0) { + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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; + } + /** + *
+     * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
+     * the reference workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanMetadata) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNotificationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (scheduleBuilder_ == null) { + schedule_ = null; + } else { + schedule_ = null; + scheduleBuilder_ = null; + } + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + notificationsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (scheduleBuilder_ == null) { + result.schedule_ = schedule_; + } else { + result.schedule_ = scheduleBuilder_.build(); + } + if (notificationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.notifications_ = notifications_; + } else { + result.notifications_ = notificationsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance()) return this; + if (other.hasSchedule()) { + mergeSchedule(other.getSchedule()); + } + if (notificationsBuilder_ == null) { + if (!other.notifications_.isEmpty()) { + if (notifications_.isEmpty()) { + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNotificationsIsMutable(); + notifications_.addAll(other.notifications_); + } + onChanged(); + } + } else { + if (!other.notifications_.isEmpty()) { + if (notificationsBuilder_.isEmpty()) { + notificationsBuilder_.dispose(); + notificationsBuilder_ = null; + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000002); + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; + } else { + notificationsBuilder_.addAllMessages(other.notifications_); + } + } + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.admin.ScheduleOuterClass.Schedule schedule_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> scheduleBuilder_; + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public boolean hasSchedule() { + return scheduleBuilder_ != null || schedule_ != null; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { + if (scheduleBuilder_ == null) { + return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; + } else { + return scheduleBuilder_.getMessage(); + } + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder setSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { + if (scheduleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schedule_ = value; + onChanged(); + } else { + scheduleBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder setSchedule( + flyteidl.admin.ScheduleOuterClass.Schedule.Builder builderForValue) { + if (scheduleBuilder_ == null) { + schedule_ = builderForValue.build(); + onChanged(); + } else { + scheduleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder mergeSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { + if (scheduleBuilder_ == null) { + if (schedule_ != null) { + schedule_ = + flyteidl.admin.ScheduleOuterClass.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); + } else { + schedule_ = value; + } + onChanged(); + } else { + scheduleBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder clearSchedule() { + if (scheduleBuilder_ == null) { + schedule_ = null; + onChanged(); + } else { + schedule_ = null; + scheduleBuilder_ = null; + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.Schedule.Builder getScheduleBuilder() { + + onChanged(); + return getScheduleFieldBuilder().getBuilder(); + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { + if (scheduleBuilder_ != null) { + return scheduleBuilder_.getMessageOrBuilder(); + } else { + return schedule_ == null ? + flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; + } + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> + getScheduleFieldBuilder() { + if (scheduleBuilder_ == null) { + scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder>( + getSchedule(), + getParentForChildren(), + isClean()); + schedule_ = null; + } + return scheduleBuilder_; + } + + private java.util.List notifications_ = + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + notifications_ = new java.util.ArrayList(notifications_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; + + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List getNotificationsList() { + if (notificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notifications_); + } else { + return notificationsBuilder_.getMessageList(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public int getNotificationsCount() { + if (notificationsBuilder_ == null) { + return notifications_.size(); + } else { + return notificationsBuilder_.getCount(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); + } else { + return notificationsBuilder_.getMessage(index); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.set(index, value); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.set(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications(flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(value); + onChanged(); + } else { + notificationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(index, value); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications( + flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addAllNotifications( + java.lang.Iterable values) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); + onChanged(); + } else { + notificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + notificationsBuilder_.clear(); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder removeNotifications(int index) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.remove(index); + onChanged(); + } else { + notificationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().getBuilder(index); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); } else { + return notificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List + getNotificationsOrBuilderList() { + if (notificationsBuilder_ != null) { + return notificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notifications_); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { + return getNotificationsFieldBuilder().addBuilder( + flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().addBuilder( + index, flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List + getNotificationsBuilderList() { + return getNotificationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( + notifications_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + notifications_ = null; + } + return notificationsBuilder_; + } + @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:flyteidl.admin.LaunchPlanMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanMetadata) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanMetadata(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Desired state to apply to the launch plan.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + int getStateValue(); + /** + *
+     * Desired state to apply to the launch plan.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); + } + /** + *
+   * Request to set the referenced launch plan state to the configured value.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} + */ + public static final class LaunchPlanUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateRequest) + LaunchPlanUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanUpdateRequest.newBuilder() to construct. + private LaunchPlanUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanUpdateRequest() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanUpdateRequest( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + state_ = rawValue; + 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + *
+     * Desired state to apply to the launch plan.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * Desired state to apply to the launch plan.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + + 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 (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + output.writeEnum(2, state_); + } + 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 (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (state_ != other.state_) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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; + } + /** + *
+     * Request to set the referenced launch plan state to the configured value.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateRequest) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.state_ = state_; + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private int state_ = 0; + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public Builder clearState() { + + state_ = 0; + 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:flyteidl.admin.LaunchPlanUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanUpdateRequest(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} + */ + public static final class LaunchPlanUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateResponse) + LaunchPlanUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanUpdateResponse.newBuilder() to construct. + private LaunchPlanUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanUpdateResponse( + 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; + 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateResponse) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(this); + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.LaunchPlanUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateResponse) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanUpdateResponse(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ActiveLaunchPlanRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ActiveLaunchPlanRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanRequest} + */ + public static final class ActiveLaunchPlanRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ActiveLaunchPlanRequest) + ActiveLaunchPlanRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ActiveLaunchPlanRequest.newBuilder() to construct. + private ActiveLaunchPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ActiveLaunchPlanRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ActiveLaunchPlanRequest( + 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: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest other = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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; + } + /** + *
+     * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ActiveLaunchPlanRequest) + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest build() { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest result = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.ActiveLaunchPlanRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActiveLaunchPlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ActiveLaunchPlanRequest(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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ActiveLaunchPlanListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ActiveLaunchPlanListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 3; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to list active launch plans within a project/domain.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanListRequest} + */ + public static final class ActiveLaunchPlanListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ActiveLaunchPlanListRequest) + ActiveLaunchPlanListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ActiveLaunchPlanListRequest.newBuilder() to construct. + private ActiveLaunchPlanListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ActiveLaunchPlanListRequest() { + project_ = ""; + domain_ = ""; + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ActiveLaunchPlanListRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 24: { + + limit_ = input.readUInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 3; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (limit_ != 0) { + output.writeUInt32(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest other = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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; + } + /** + *
+     * Represents a request structure to list active launch plans within a project/domain.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ActiveLaunchPlanListRequest) + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.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(); + project_ = ""; + + domain_ = ""; + + limit_ = 0; + + token_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest build() { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest result = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.limit_ = limit_; + result.token_ = token_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @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:flyteidl.admin.ActiveLaunchPlanListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanListRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActiveLaunchPlanListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ActiveLaunchPlanListRequest(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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlan_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Auth_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Auth_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_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 flyteidl/admin/launch_plan.proto\022\016flyt" + + "eidl.admin\032\035flyteidl/core/execution.prot" + + "o\032\034flyteidl/core/literals.proto\032\036flyteid" + + "l/core/identifier.proto\032\035flyteidl/core/i" + + "nterface.proto\032\035flyteidl/admin/schedule." + + "proto\032\033flyteidl/admin/common.proto\032\037goog" + + "le/protobuf/timestamp.proto\"n\n\027LaunchPla" + + "nCreateRequest\022%\n\002id\030\001 \001(\0132\031.flyteidl.co" + + "re.Identifier\022,\n\004spec\030\002 \001(\0132\036.flyteidl.a" + + "dmin.LaunchPlanSpec\"\032\n\030LaunchPlanCreateR" + + "esponse\"\225\001\n\nLaunchPlan\022%\n\002id\030\001 \001(\0132\031.fly" + + "teidl.core.Identifier\022,\n\004spec\030\002 \001(\0132\036.fl" + + "yteidl.admin.LaunchPlanSpec\0222\n\007closure\030\003" + + " \001(\0132!.flyteidl.admin.LaunchPlanClosure\"" + + "Q\n\016LaunchPlanList\0220\n\014launch_plans\030\001 \003(\0132" + + "\032.flyteidl.admin.LaunchPlan\022\r\n\005token\030\002 \001" + + "(\t\"T\n\004Auth\022\034\n\022assumable_iam_role\030\001 \001(\tH\000" + + "\022$\n\032kubernetes_service_account\030\002 \001(\tH\000B\010" + + "\n\006method\"\341\003\n\016LaunchPlanSpec\022.\n\013workflow_" + + "id\030\001 \001(\0132\031.flyteidl.core.Identifier\022;\n\017e" + + "ntity_metadata\030\002 \001(\0132\".flyteidl.admin.La" + + "unchPlanMetadata\0223\n\016default_inputs\030\003 \001(\013" + + "2\033.flyteidl.core.ParameterMap\022/\n\014fixed_i" + + "nputs\030\004 \001(\0132\031.flyteidl.core.LiteralMap\022\020" + + "\n\004role\030\005 \001(\tB\002\030\001\022&\n\006labels\030\006 \001(\0132\026.flyte" + + "idl.admin.Labels\0220\n\013annotations\030\007 \001(\0132\033." + + "flyteidl.admin.Annotations\022&\n\004auth\030\010 \001(\013" + + "2\024.flyteidl.admin.AuthB\002\030\001\022+\n\tauth_role\030" + + "\t \001(\0132\030.flyteidl.admin.AuthRole\022;\n\022quali" + + "ty_of_service\030\020 \001(\0132\037.flyteidl.core.Qual" + + "ityOfService\"\217\002\n\021LaunchPlanClosure\022.\n\005st" + + "ate\030\001 \001(\0162\037.flyteidl.admin.LaunchPlanSta" + + "te\0224\n\017expected_inputs\030\002 \001(\0132\033.flyteidl.c" + + "ore.ParameterMap\0224\n\020expected_outputs\030\003 \001" + + "(\0132\032.flyteidl.core.VariableMap\022.\n\ncreate" + + "d_at\030\004 \001(\0132\032.google.protobuf.Timestamp\022." + + "\n\nupdated_at\030\005 \001(\0132\032.google.protobuf.Tim" + + "estamp\"u\n\022LaunchPlanMetadata\022*\n\010schedule" + + "\030\001 \001(\0132\030.flyteidl.admin.Schedule\0223\n\rnoti" + + "fications\030\002 \003(\0132\034.flyteidl.admin.Notific" + + "ation\"p\n\027LaunchPlanUpdateRequest\022%\n\002id\030\001" + + " \001(\0132\031.flyteidl.core.Identifier\022.\n\005state" + + "\030\002 \001(\0162\037.flyteidl.admin.LaunchPlanState\"" + + "\032\n\030LaunchPlanUpdateResponse\"L\n\027ActiveLau" + + "nchPlanRequest\0221\n\002id\030\001 \001(\0132%.flyteidl.ad" + + "min.NamedEntityIdentifier\"\203\001\n\033ActiveLaun" + + "chPlanListRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006do" + + "main\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t" + + "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort*" + + "+\n\017LaunchPlanState\022\014\n\010INACTIVE\020\000\022\n\n\006ACTI" + + "VE\020\001B3Z1github.com/lyft/flyteidl/gen/pb-" + + "go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + flyteidl.admin.ScheduleOuterClass.getDescriptor(), + flyteidl.admin.Common.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor, + new java.lang.String[] { "Id", "Spec", }); + internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_LaunchPlan_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlan_descriptor, + new java.lang.String[] { "Id", "Spec", "Closure", }); + internal_static_flyteidl_admin_LaunchPlanList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanList_descriptor, + new java.lang.String[] { "LaunchPlans", "Token", }); + internal_static_flyteidl_admin_Auth_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_Auth_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Auth_descriptor, + new java.lang.String[] { "AssumableIamRole", "KubernetesServiceAccount", "Method", }); + internal_static_flyteidl_admin_LaunchPlanSpec_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanSpec_descriptor, + new java.lang.String[] { "WorkflowId", "EntityMetadata", "DefaultInputs", "FixedInputs", "Role", "Labels", "Annotations", "Auth", "AuthRole", "QualityOfService", }); + internal_static_flyteidl_admin_LaunchPlanClosure_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanClosure_descriptor, + new java.lang.String[] { "State", "ExpectedInputs", "ExpectedOutputs", "CreatedAt", "UpdatedAt", }); + internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor, + new java.lang.String[] { "Schedule", "Notifications", }); + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor, + new java.lang.String[] { "Id", "State", }); + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Limit", "Token", "SortBy", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + flyteidl.admin.ScheduleOuterClass.getDescriptor(); + flyteidl.admin.Common.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java b/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java new file mode 100644 index 000000000..80d6676fa --- /dev/null +++ b/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java @@ -0,0 +1,8238 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/matchable_resource.proto + +package flyteidl.admin; + +public final class MatchableResourceOuterClass { + private MatchableResourceOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes
+   * based on matching tags.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.MatchableResource} + */ + public enum MatchableResource + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Applies to customizable task resource requests and limits.
+     * 
+ * + * TASK_RESOURCE = 0; + */ + TASK_RESOURCE(0), + /** + *
+     * Applies to configuring templated kubernetes cluster resources.
+     * 
+ * + * CLUSTER_RESOURCE = 1; + */ + CLUSTER_RESOURCE(1), + /** + *
+     * Configures task and dynamic task execution queue assignment.
+     * 
+ * + * EXECUTION_QUEUE = 2; + */ + EXECUTION_QUEUE(2), + /** + *
+     * Configures the K8s cluster label to be used for execution to be run
+     * 
+ * + * EXECUTION_CLUSTER_LABEL = 3; + */ + EXECUTION_CLUSTER_LABEL(3), + /** + *
+     * Configures default quality of service when undefined in an execution spec.
+     * 
+ * + * QUALITY_OF_SERVICE_SPECIFICATION = 4; + */ + QUALITY_OF_SERVICE_SPECIFICATION(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Applies to customizable task resource requests and limits.
+     * 
+ * + * TASK_RESOURCE = 0; + */ + public static final int TASK_RESOURCE_VALUE = 0; + /** + *
+     * Applies to configuring templated kubernetes cluster resources.
+     * 
+ * + * CLUSTER_RESOURCE = 1; + */ + public static final int CLUSTER_RESOURCE_VALUE = 1; + /** + *
+     * Configures task and dynamic task execution queue assignment.
+     * 
+ * + * EXECUTION_QUEUE = 2; + */ + public static final int EXECUTION_QUEUE_VALUE = 2; + /** + *
+     * Configures the K8s cluster label to be used for execution to be run
+     * 
+ * + * EXECUTION_CLUSTER_LABEL = 3; + */ + public static final int EXECUTION_CLUSTER_LABEL_VALUE = 3; + /** + *
+     * Configures default quality of service when undefined in an execution spec.
+     * 
+ * + * QUALITY_OF_SERVICE_SPECIFICATION = 4; + */ + public static final int QUALITY_OF_SERVICE_SPECIFICATION_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchableResource valueOf(int value) { + return forNumber(value); + } + + public static MatchableResource forNumber(int value) { + switch (value) { + case 0: return TASK_RESOURCE; + case 1: return CLUSTER_RESOURCE; + case 2: return EXECUTION_QUEUE; + case 3: return EXECUTION_CLUSTER_LABEL; + case 4: return QUALITY_OF_SERVICE_SPECIFICATION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MatchableResource> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchableResource findValueByNumber(int number) { + return MatchableResource.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.admin.MatchableResourceOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final MatchableResource[] VALUES = values(); + + public static MatchableResource 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 MatchableResource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.MatchableResource) + } + + public interface TaskResourceSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskResourceSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * string cpu = 1; + */ + java.lang.String getCpu(); + /** + * string cpu = 1; + */ + com.google.protobuf.ByteString + getCpuBytes(); + + /** + * string gpu = 2; + */ + java.lang.String getGpu(); + /** + * string gpu = 2; + */ + com.google.protobuf.ByteString + getGpuBytes(); + + /** + * string memory = 3; + */ + java.lang.String getMemory(); + /** + * string memory = 3; + */ + com.google.protobuf.ByteString + getMemoryBytes(); + + /** + * string storage = 4; + */ + java.lang.String getStorage(); + /** + * string storage = 4; + */ + com.google.protobuf.ByteString + getStorageBytes(); + } + /** + * Protobuf type {@code flyteidl.admin.TaskResourceSpec} + */ + public static final class TaskResourceSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskResourceSpec) + TaskResourceSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskResourceSpec.newBuilder() to construct. + private TaskResourceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskResourceSpec() { + cpu_ = ""; + gpu_ = ""; + memory_ = ""; + storage_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskResourceSpec( + 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(); + + cpu_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + gpu_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + memory_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + storage_ = 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder.class); + } + + public static final int CPU_FIELD_NUMBER = 1; + private volatile java.lang.Object cpu_; + /** + * string cpu = 1; + */ + public java.lang.String getCpu() { + java.lang.Object ref = cpu_; + 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(); + cpu_ = s; + return s; + } + } + /** + * string cpu = 1; + */ + public com.google.protobuf.ByteString + getCpuBytes() { + java.lang.Object ref = cpu_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GPU_FIELD_NUMBER = 2; + private volatile java.lang.Object gpu_; + /** + * string gpu = 2; + */ + public java.lang.String getGpu() { + java.lang.Object ref = gpu_; + 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(); + gpu_ = s; + return s; + } + } + /** + * string gpu = 2; + */ + public com.google.protobuf.ByteString + getGpuBytes() { + java.lang.Object ref = gpu_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEMORY_FIELD_NUMBER = 3; + private volatile java.lang.Object memory_; + /** + * string memory = 3; + */ + public java.lang.String getMemory() { + java.lang.Object ref = memory_; + 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(); + memory_ = s; + return s; + } + } + /** + * string memory = 3; + */ + public com.google.protobuf.ByteString + getMemoryBytes() { + java.lang.Object ref = memory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + memory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STORAGE_FIELD_NUMBER = 4; + private volatile java.lang.Object storage_; + /** + * string storage = 4; + */ + public java.lang.String getStorage() { + java.lang.Object ref = storage_; + 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(); + storage_ = s; + return s; + } + } + /** + * string storage = 4; + */ + public com.google.protobuf.ByteString + getStorageBytes() { + java.lang.Object ref = storage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storage_ = 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 (!getCpuBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpu_); + } + if (!getGpuBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gpu_); + } + if (!getMemoryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, memory_); + } + if (!getStorageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storage_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCpuBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpu_); + } + if (!getGpuBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gpu_); + } + if (!getMemoryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, memory_); + } + if (!getStorageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storage_); + } + 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec other = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) obj; + + if (!getCpu() + .equals(other.getCpu())) return false; + if (!getGpu() + .equals(other.getGpu())) return false; + if (!getMemory() + .equals(other.getMemory())) return false; + if (!getStorage() + .equals(other.getStorage())) 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) + CPU_FIELD_NUMBER; + hash = (53 * hash) + getCpu().hashCode(); + hash = (37 * hash) + GPU_FIELD_NUMBER; + hash = (53 * hash) + getGpu().hashCode(); + hash = (37 * hash) + MEMORY_FIELD_NUMBER; + hash = (53 * hash) + getMemory().hashCode(); + hash = (37 * hash) + STORAGE_FIELD_NUMBER; + hash = (53 * hash) + getStorage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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 flyteidl.admin.TaskResourceSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskResourceSpec) + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.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(); + cpu_ = ""; + + gpu_ = ""; + + memory_ = ""; + + storage_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec build() { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec result = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec(this); + result.cpu_ = cpu_; + result.gpu_ = gpu_; + result.memory_ = memory_; + result.storage_ = storage_; + 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance()) return this; + if (!other.getCpu().isEmpty()) { + cpu_ = other.cpu_; + onChanged(); + } + if (!other.getGpu().isEmpty()) { + gpu_ = other.gpu_; + onChanged(); + } + if (!other.getMemory().isEmpty()) { + memory_ = other.memory_; + onChanged(); + } + if (!other.getStorage().isEmpty()) { + storage_ = other.storage_; + 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 { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object cpu_ = ""; + /** + * string cpu = 1; + */ + public java.lang.String getCpu() { + java.lang.Object ref = cpu_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpu_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cpu = 1; + */ + public com.google.protobuf.ByteString + getCpuBytes() { + java.lang.Object ref = cpu_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cpu = 1; + */ + public Builder setCpu( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cpu_ = value; + onChanged(); + return this; + } + /** + * string cpu = 1; + */ + public Builder clearCpu() { + + cpu_ = getDefaultInstance().getCpu(); + onChanged(); + return this; + } + /** + * string cpu = 1; + */ + public Builder setCpuBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cpu_ = value; + onChanged(); + return this; + } + + private java.lang.Object gpu_ = ""; + /** + * string gpu = 2; + */ + public java.lang.String getGpu() { + java.lang.Object ref = gpu_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpu_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string gpu = 2; + */ + public com.google.protobuf.ByteString + getGpuBytes() { + java.lang.Object ref = gpu_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string gpu = 2; + */ + public Builder setGpu( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gpu_ = value; + onChanged(); + return this; + } + /** + * string gpu = 2; + */ + public Builder clearGpu() { + + gpu_ = getDefaultInstance().getGpu(); + onChanged(); + return this; + } + /** + * string gpu = 2; + */ + public Builder setGpuBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gpu_ = value; + onChanged(); + return this; + } + + private java.lang.Object memory_ = ""; + /** + * string memory = 3; + */ + public java.lang.String getMemory() { + java.lang.Object ref = memory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + memory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string memory = 3; + */ + public com.google.protobuf.ByteString + getMemoryBytes() { + java.lang.Object ref = memory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + memory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string memory = 3; + */ + public Builder setMemory( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + memory_ = value; + onChanged(); + return this; + } + /** + * string memory = 3; + */ + public Builder clearMemory() { + + memory_ = getDefaultInstance().getMemory(); + onChanged(); + return this; + } + /** + * string memory = 3; + */ + public Builder setMemoryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + memory_ = value; + onChanged(); + return this; + } + + private java.lang.Object storage_ = ""; + /** + * string storage = 4; + */ + public java.lang.String getStorage() { + java.lang.Object ref = storage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string storage = 4; + */ + public com.google.protobuf.ByteString + getStorageBytes() { + java.lang.Object ref = storage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string storage = 4; + */ + public Builder setStorage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + storage_ = value; + onChanged(); + return this; + } + /** + * string storage = 4; + */ + public Builder clearStorage() { + + storage_ = getDefaultInstance().getStorage(); + onChanged(); + return this; + } + /** + * string storage = 4; + */ + public Builder setStorageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + storage_ = 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:flyteidl.admin.TaskResourceSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceSpec) + private static final flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskResourceSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskResourceSpec(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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskResourceAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskResourceAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + boolean hasDefaults(); + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults(); + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder(); + + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + boolean hasLimits(); + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits(); + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.TaskResourceAttributes} + */ + public static final class TaskResourceAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskResourceAttributes) + TaskResourceAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskResourceAttributes.newBuilder() to construct. + private TaskResourceAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskResourceAttributes() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskResourceAttributes( + 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: { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder subBuilder = null; + if (defaults_ != null) { + subBuilder = defaults_.toBuilder(); + } + defaults_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaults_); + defaults_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder subBuilder = null; + if (limits_ != null) { + subBuilder = limits_.toBuilder(); + } + limits_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(limits_); + limits_ = 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder.class); + } + + public static final int DEFAULTS_FIELD_NUMBER = 1; + private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec defaults_; + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public boolean hasDefaults() { + return defaults_ != null; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults() { + return defaults_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder() { + return getDefaults(); + } + + public static final int LIMITS_FIELD_NUMBER = 2; + private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec limits_; + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public boolean hasLimits() { + return limits_ != null; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits() { + return limits_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder() { + return getLimits(); + } + + 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 (defaults_ != null) { + output.writeMessage(1, getDefaults()); + } + if (limits_ != null) { + output.writeMessage(2, getLimits()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (defaults_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDefaults()); + } + if (limits_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLimits()); + } + 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes other = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) obj; + + if (hasDefaults() != other.hasDefaults()) return false; + if (hasDefaults()) { + if (!getDefaults() + .equals(other.getDefaults())) return false; + } + if (hasLimits() != other.hasLimits()) return false; + if (hasLimits()) { + if (!getLimits() + .equals(other.getLimits())) 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 (hasDefaults()) { + hash = (37 * hash) + DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getDefaults().hashCode(); + } + if (hasLimits()) { + hash = (37 * hash) + LIMITS_FIELD_NUMBER; + hash = (53 * hash) + getLimits().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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 flyteidl.admin.TaskResourceAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskResourceAttributes) + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.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 (defaultsBuilder_ == null) { + defaults_ = null; + } else { + defaults_ = null; + defaultsBuilder_ = null; + } + if (limitsBuilder_ == null) { + limits_ = null; + } else { + limits_ = null; + limitsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes build() { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes result = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes(this); + if (defaultsBuilder_ == null) { + result.defaults_ = defaults_; + } else { + result.defaults_ = defaultsBuilder_.build(); + } + if (limitsBuilder_ == null) { + result.limits_ = limits_; + } else { + result.limits_ = limitsBuilder_.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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance()) return this; + if (other.hasDefaults()) { + mergeDefaults(other.getDefaults()); + } + if (other.hasLimits()) { + mergeLimits(other.getLimits()); + } + 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 { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec defaults_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> defaultsBuilder_; + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public boolean hasDefaults() { + return defaultsBuilder_ != null || defaults_ != null; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults() { + if (defaultsBuilder_ == null) { + return defaults_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; + } else { + return defaultsBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public Builder setDefaults(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { + if (defaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaults_ = value; + onChanged(); + } else { + defaultsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public Builder setDefaults( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder builderForValue) { + if (defaultsBuilder_ == null) { + defaults_ = builderForValue.build(); + onChanged(); + } else { + defaultsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public Builder mergeDefaults(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { + if (defaultsBuilder_ == null) { + if (defaults_ != null) { + defaults_ = + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.newBuilder(defaults_).mergeFrom(value).buildPartial(); + } else { + defaults_ = value; + } + onChanged(); + } else { + defaultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public Builder clearDefaults() { + if (defaultsBuilder_ == null) { + defaults_ = null; + onChanged(); + } else { + defaults_ = null; + defaultsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder getDefaultsBuilder() { + + onChanged(); + return getDefaultsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder() { + if (defaultsBuilder_ != null) { + return defaultsBuilder_.getMessageOrBuilder(); + } else { + return defaults_ == null ? + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; + } + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> + getDefaultsFieldBuilder() { + if (defaultsBuilder_ == null) { + defaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder>( + getDefaults(), + getParentForChildren(), + isClean()); + defaults_ = null; + } + return defaultsBuilder_; + } + + private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec limits_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> limitsBuilder_; + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public boolean hasLimits() { + return limitsBuilder_ != null || limits_ != null; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits() { + if (limitsBuilder_ == null) { + return limits_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; + } else { + return limitsBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public Builder setLimits(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + limits_ = value; + onChanged(); + } else { + limitsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public Builder setLimits( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder builderForValue) { + if (limitsBuilder_ == null) { + limits_ = builderForValue.build(); + onChanged(); + } else { + limitsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public Builder mergeLimits(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { + if (limitsBuilder_ == null) { + if (limits_ != null) { + limits_ = + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.newBuilder(limits_).mergeFrom(value).buildPartial(); + } else { + limits_ = value; + } + onChanged(); + } else { + limitsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public Builder clearLimits() { + if (limitsBuilder_ == null) { + limits_ = null; + onChanged(); + } else { + limits_ = null; + limitsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder getLimitsBuilder() { + + onChanged(); + return getLimitsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder() { + if (limitsBuilder_ != null) { + return limitsBuilder_.getMessageOrBuilder(); + } else { + return limits_ == null ? + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; + } + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> + getLimitsFieldBuilder() { + if (limitsBuilder_ == null) { + limitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder>( + getLimits(), + getParentForChildren(), + isClean()); + limits_ = null; + } + return limitsBuilder_; + } + @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:flyteidl.admin.TaskResourceAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceAttributes) + private static final flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskResourceAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskResourceAttributes(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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ClusterResourceAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ClusterResourceAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + int getAttributesCount(); + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + boolean containsAttributes( + java.lang.String key); + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAttributes(); + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + java.util.Map + getAttributesMap(); + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + java.lang.String getAttributesOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code flyteidl.admin.ClusterResourceAttributes} + */ + public static final class ClusterResourceAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ClusterResourceAttributes) + ClusterResourceAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterResourceAttributes.newBuilder() to construct. + private ClusterResourceAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClusterResourceAttributes() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClusterResourceAttributes( + 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)) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + attributes__ = input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + attributes_.getMutableMap().put( + attributes__.getKey(), attributes__.getValue()); + 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private static final class AttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + public java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + public java.lang.String getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttributes(), + AttributesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, attributes__); + } + 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes other = (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) obj; + + if (!internalGetAttributes().equals( + other.internalGetAttributes())) 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 (!internalGetAttributes().getMap().isEmpty()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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 flyteidl.admin.ClusterResourceAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ClusterResourceAttributes) + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.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(); + internalGetMutableAttributes().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes build() { + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes result = new flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes(this); + int from_bitField0_ = bitField0_; + result.attributes_ = internalGetAttributes(); + result.attributes_.makeImmutable(); + 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance()) return this; + internalGetMutableAttributes().mergeFrom( + other.internalGetAttributes()); + 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 { + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + private com.google.protobuf.MapField + internalGetMutableAttributes() { + onChanged();; + if (attributes_ == null) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + if (!attributes_.isMutable()) { + attributes_ = attributes_.copy(); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public java.lang.String getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAttributes() { + internalGetMutableAttributes().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public Builder removeAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAttributes().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAttributes() { + return internalGetMutableAttributes().getMutableMap(); + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + public Builder putAttributes( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAttributes().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public Builder putAllAttributes( + java.util.Map values) { + internalGetMutableAttributes().getMutableMap() + .putAll(values); + 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:flyteidl.admin.ClusterResourceAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ClusterResourceAttributes) + private static final flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterResourceAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterResourceAttributes(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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionQueueAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionQueueAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + java.util.List + getTagsList(); + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + int getTagsCount(); + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + java.lang.String getTags(int index); + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionQueueAttributes} + */ + public static final class ExecutionQueueAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionQueueAttributes) + ExecutionQueueAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionQueueAttributes.newBuilder() to construct. + private ExecutionQueueAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionQueueAttributes() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionQueueAttributes( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tags_.add(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)) { + tags_ = tags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder.class); + } + + public static final int TAGS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList tags_; + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(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 < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes other = (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) obj; + + if (!getTagsList() + .equals(other.getTagsList())) 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 (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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 flyteidl.admin.ExecutionQueueAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionQueueAttributes) + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.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(); + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes build() { + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes result = new flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tags_ = tags_; + 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance()) return this; + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + 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 { + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(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:flyteidl.admin.ExecutionQueueAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionQueueAttributes) + private static final flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionQueueAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionQueueAttributes(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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionClusterLabelOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionClusterLabel) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Label value to determine where the execution will be run
+     * 
+ * + * string value = 1; + */ + java.lang.String getValue(); + /** + *
+     * Label value to determine where the execution will be run
+     * 
+ * + * string value = 1; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionClusterLabel} + */ + public static final class ExecutionClusterLabel extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionClusterLabel) + ExecutionClusterLabelOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionClusterLabel.newBuilder() to construct. + private ExecutionClusterLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionClusterLabel() { + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionClusterLabel( + 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(); + + 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private volatile java.lang.Object value_; + /** + *
+     * Label value to determine where the execution will be run
+     * 
+ * + * string value = 1; + */ + 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; + } + } + /** + *
+     * Label value to determine where the execution will be run
+     * 
+ * + * string value = 1; + */ + 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 (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel other = (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) obj; + + 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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 flyteidl.admin.ExecutionClusterLabel} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionClusterLabel) + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.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(); + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel build() { + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel result = new flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel(this); + 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance()) return this; + 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 { + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + 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; + } + } + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + 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; + } + } + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + 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:flyteidl.admin.ExecutionClusterLabel) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClusterLabel) + private static final flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionClusterLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionClusterLabel(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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MatchingAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.MatchingAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + boolean hasTaskResourceAttributes(); + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes(); + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder(); + + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + boolean hasClusterResourceAttributes(); + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes(); + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder(); + + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + boolean hasExecutionQueueAttributes(); + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes(); + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder(); + + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + boolean hasExecutionClusterLabel(); + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel(); + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder(); + + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + boolean hasQualityOfService(); + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + flyteidl.core.Execution.QualityOfService getQualityOfService(); + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); + + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.TargetCase getTargetCase(); + } + /** + *
+   * Generic container for encapsulating all types of the above attributes messages.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.MatchingAttributes} + */ + public static final class MatchingAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.MatchingAttributes) + MatchingAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use MatchingAttributes.newBuilder() to construct. + private MatchingAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MatchingAttributes() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MatchingAttributes( + 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: { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder subBuilder = null; + if (targetCase_ == 1) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 1; + break; + } + case 18: { + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder subBuilder = null; + if (targetCase_ == 2) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 2; + break; + } + case 26: { + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder subBuilder = null; + if (targetCase_ == 3) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 3; + break; + } + case 34: { + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder subBuilder = null; + if (targetCase_ == 4) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 4; + break; + } + case 42: { + flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; + if (targetCase_ == 5) { + subBuilder = ((flyteidl.core.Execution.QualityOfService) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.QualityOfService) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 5; + 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.class, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder.class); + } + + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite { + TASK_RESOURCE_ATTRIBUTES(1), + CLUSTER_RESOURCE_ATTRIBUTES(2), + EXECUTION_QUEUE_ATTRIBUTES(3), + EXECUTION_CLUSTER_LABEL(4), + QUALITY_OF_SERVICE(5), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 1: return TASK_RESOURCE_ATTRIBUTES; + case 2: return CLUSTER_RESOURCE_ATTRIBUTES; + case 3: return EXECUTION_QUEUE_ATTRIBUTES; + case 4: return EXECUTION_CLUSTER_LABEL; + case 5: return QUALITY_OF_SERVICE; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public static final int TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER = 1; + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public boolean hasTaskResourceAttributes() { + return targetCase_ == 1; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes() { + if (targetCase_ == 1) { + return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder() { + if (targetCase_ == 1) { + return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + + public static final int CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER = 2; + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public boolean hasClusterResourceAttributes() { + return targetCase_ == 2; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes() { + if (targetCase_ == 2) { + return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder() { + if (targetCase_ == 2) { + return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + + public static final int EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER = 3; + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public boolean hasExecutionQueueAttributes() { + return targetCase_ == 3; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes() { + if (targetCase_ == 3) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder() { + if (targetCase_ == 3) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + + public static final int EXECUTION_CLUSTER_LABEL_FIELD_NUMBER = 4; + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public boolean hasExecutionClusterLabel() { + return targetCase_ == 4; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel() { + if (targetCase_ == 4) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder() { + if (targetCase_ == 4) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + + public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 5; + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public boolean hasQualityOfService() { + return targetCase_ == 5; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (targetCase_ == 5) { + return (flyteidl.core.Execution.QualityOfService) target_; + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if (targetCase_ == 5) { + return (flyteidl.core.Execution.QualityOfService) target_; + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (targetCase_ == 1) { + output.writeMessage(1, (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); + } + if (targetCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); + } + if (targetCase_ == 3) { + output.writeMessage(3, (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); + } + if (targetCase_ == 4) { + output.writeMessage(4, (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); + } + if (targetCase_ == 5) { + output.writeMessage(5, (flyteidl.core.Execution.QualityOfService) target_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (targetCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); + } + if (targetCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); + } + if (targetCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); + } + if (targetCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); + } + if (targetCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.core.Execution.QualityOfService) target_); + } + 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes other = (flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) obj; + + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 1: + if (!getTaskResourceAttributes() + .equals(other.getTaskResourceAttributes())) return false; + break; + case 2: + if (!getClusterResourceAttributes() + .equals(other.getClusterResourceAttributes())) return false; + break; + case 3: + if (!getExecutionQueueAttributes() + .equals(other.getExecutionQueueAttributes())) return false; + break; + case 4: + if (!getExecutionClusterLabel() + .equals(other.getExecutionClusterLabel())) return false; + break; + case 5: + if (!getQualityOfService() + .equals(other.getQualityOfService())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (targetCase_) { + case 1: + hash = (37 * hash) + TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getTaskResourceAttributes().hashCode(); + break; + case 2: + hash = (37 * hash) + CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getClusterResourceAttributes().hashCode(); + break; + case 3: + hash = (37 * hash) + EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getExecutionQueueAttributes().hashCode(); + break; + case 4: + hash = (37 * hash) + EXECUTION_CLUSTER_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getExecutionClusterLabel().hashCode(); + break; + case 5: + hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getQualityOfService().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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; + } + /** + *
+     * Generic container for encapsulating all types of the above attributes messages.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.MatchingAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.MatchingAttributes) + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.class, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.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(); + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes build() { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes result = new flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes(this); + if (targetCase_ == 1) { + if (taskResourceAttributesBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = taskResourceAttributesBuilder_.build(); + } + } + if (targetCase_ == 2) { + if (clusterResourceAttributesBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = clusterResourceAttributesBuilder_.build(); + } + } + if (targetCase_ == 3) { + if (executionQueueAttributesBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = executionQueueAttributesBuilder_.build(); + } + } + if (targetCase_ == 4) { + if (executionClusterLabelBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = executionClusterLabelBuilder_.build(); + } + } + if (targetCase_ == 5) { + if (qualityOfServiceBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = qualityOfServiceBuilder_.build(); + } + } + result.targetCase_ = targetCase_; + 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance()) return this; + switch (other.getTargetCase()) { + case TASK_RESOURCE_ATTRIBUTES: { + mergeTaskResourceAttributes(other.getTaskResourceAttributes()); + break; + } + case CLUSTER_RESOURCE_ATTRIBUTES: { + mergeClusterResourceAttributes(other.getClusterResourceAttributes()); + break; + } + case EXECUTION_QUEUE_ATTRIBUTES: { + mergeExecutionQueueAttributes(other.getExecutionQueueAttributes()); + break; + } + case EXECUTION_CLUSTER_LABEL: { + mergeExecutionClusterLabel(other.getExecutionClusterLabel()); + break; + } + case QUALITY_OF_SERVICE: { + mergeQualityOfService(other.getQualityOfService()); + break; + } + case TARGET_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 { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder> taskResourceAttributesBuilder_; + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public boolean hasTaskResourceAttributes() { + return targetCase_ == 1; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes() { + if (taskResourceAttributesBuilder_ == null) { + if (targetCase_ == 1) { + return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } else { + if (targetCase_ == 1) { + return taskResourceAttributesBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public Builder setTaskResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes value) { + if (taskResourceAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + taskResourceAttributesBuilder_.setMessage(value); + } + targetCase_ = 1; + return this; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public Builder setTaskResourceAttributes( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder builderForValue) { + if (taskResourceAttributesBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + taskResourceAttributesBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 1; + return this; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public Builder mergeTaskResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes value) { + if (taskResourceAttributesBuilder_ == null) { + if (targetCase_ == 1 && + target_ != flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 1) { + taskResourceAttributesBuilder_.mergeFrom(value); + } + taskResourceAttributesBuilder_.setMessage(value); + } + targetCase_ = 1; + return this; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public Builder clearTaskResourceAttributes() { + if (taskResourceAttributesBuilder_ == null) { + if (targetCase_ == 1) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 1) { + targetCase_ = 0; + target_ = null; + } + taskResourceAttributesBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder getTaskResourceAttributesBuilder() { + return getTaskResourceAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder() { + if ((targetCase_ == 1) && (taskResourceAttributesBuilder_ != null)) { + return taskResourceAttributesBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 1) { + return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder> + getTaskResourceAttributesFieldBuilder() { + if (taskResourceAttributesBuilder_ == null) { + if (!(targetCase_ == 1)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + taskResourceAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 1; + onChanged();; + return taskResourceAttributesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder> clusterResourceAttributesBuilder_; + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public boolean hasClusterResourceAttributes() { + return targetCase_ == 2; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes() { + if (clusterResourceAttributesBuilder_ == null) { + if (targetCase_ == 2) { + return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } else { + if (targetCase_ == 2) { + return clusterResourceAttributesBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public Builder setClusterResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes value) { + if (clusterResourceAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + clusterResourceAttributesBuilder_.setMessage(value); + } + targetCase_ = 2; + return this; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public Builder setClusterResourceAttributes( + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder builderForValue) { + if (clusterResourceAttributesBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + clusterResourceAttributesBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 2; + return this; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public Builder mergeClusterResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes value) { + if (clusterResourceAttributesBuilder_ == null) { + if (targetCase_ == 2 && + target_ != flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 2) { + clusterResourceAttributesBuilder_.mergeFrom(value); + } + clusterResourceAttributesBuilder_.setMessage(value); + } + targetCase_ = 2; + return this; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public Builder clearClusterResourceAttributes() { + if (clusterResourceAttributesBuilder_ == null) { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + } + clusterResourceAttributesBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder getClusterResourceAttributesBuilder() { + return getClusterResourceAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder() { + if ((targetCase_ == 2) && (clusterResourceAttributesBuilder_ != null)) { + return clusterResourceAttributesBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 2) { + return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder> + getClusterResourceAttributesFieldBuilder() { + if (clusterResourceAttributesBuilder_ == null) { + if (!(targetCase_ == 2)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + clusterResourceAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 2; + onChanged();; + return clusterResourceAttributesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder> executionQueueAttributesBuilder_; + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public boolean hasExecutionQueueAttributes() { + return targetCase_ == 3; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes() { + if (executionQueueAttributesBuilder_ == null) { + if (targetCase_ == 3) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } else { + if (targetCase_ == 3) { + return executionQueueAttributesBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public Builder setExecutionQueueAttributes(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes value) { + if (executionQueueAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + executionQueueAttributesBuilder_.setMessage(value); + } + targetCase_ = 3; + return this; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public Builder setExecutionQueueAttributes( + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder builderForValue) { + if (executionQueueAttributesBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + executionQueueAttributesBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 3; + return this; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public Builder mergeExecutionQueueAttributes(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes value) { + if (executionQueueAttributesBuilder_ == null) { + if (targetCase_ == 3 && + target_ != flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 3) { + executionQueueAttributesBuilder_.mergeFrom(value); + } + executionQueueAttributesBuilder_.setMessage(value); + } + targetCase_ = 3; + return this; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public Builder clearExecutionQueueAttributes() { + if (executionQueueAttributesBuilder_ == null) { + if (targetCase_ == 3) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 3) { + targetCase_ = 0; + target_ = null; + } + executionQueueAttributesBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder getExecutionQueueAttributesBuilder() { + return getExecutionQueueAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder() { + if ((targetCase_ == 3) && (executionQueueAttributesBuilder_ != null)) { + return executionQueueAttributesBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 3) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder> + getExecutionQueueAttributesFieldBuilder() { + if (executionQueueAttributesBuilder_ == null) { + if (!(targetCase_ == 3)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + executionQueueAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 3; + onChanged();; + return executionQueueAttributesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder> executionClusterLabelBuilder_; + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public boolean hasExecutionClusterLabel() { + return targetCase_ == 4; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel() { + if (executionClusterLabelBuilder_ == null) { + if (targetCase_ == 4) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } else { + if (targetCase_ == 4) { + return executionClusterLabelBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public Builder setExecutionClusterLabel(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel value) { + if (executionClusterLabelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + executionClusterLabelBuilder_.setMessage(value); + } + targetCase_ = 4; + return this; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public Builder setExecutionClusterLabel( + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder builderForValue) { + if (executionClusterLabelBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + executionClusterLabelBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 4; + return this; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public Builder mergeExecutionClusterLabel(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel value) { + if (executionClusterLabelBuilder_ == null) { + if (targetCase_ == 4 && + target_ != flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 4) { + executionClusterLabelBuilder_.mergeFrom(value); + } + executionClusterLabelBuilder_.setMessage(value); + } + targetCase_ = 4; + return this; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public Builder clearExecutionClusterLabel() { + if (executionClusterLabelBuilder_ == null) { + if (targetCase_ == 4) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 4) { + targetCase_ = 0; + target_ = null; + } + executionClusterLabelBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder getExecutionClusterLabelBuilder() { + return getExecutionClusterLabelFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder() { + if ((targetCase_ == 4) && (executionClusterLabelBuilder_ != null)) { + return executionClusterLabelBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 4) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder> + getExecutionClusterLabelFieldBuilder() { + if (executionClusterLabelBuilder_ == null) { + if (!(targetCase_ == 4)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + executionClusterLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 4; + onChanged();; + return executionClusterLabelBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public boolean hasQualityOfService() { + return targetCase_ == 5; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + if (targetCase_ == 5) { + return (flyteidl.core.Execution.QualityOfService) target_; + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } else { + if (targetCase_ == 5) { + return qualityOfServiceBuilder_.getMessage(); + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(value); + } + targetCase_ = 5; + return this; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public Builder setQualityOfService( + flyteidl.core.Execution.QualityOfService.Builder builderForValue) { + if (qualityOfServiceBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 5; + return this; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (targetCase_ == 5 && + target_ != flyteidl.core.Execution.QualityOfService.getDefaultInstance()) { + target_ = flyteidl.core.Execution.QualityOfService.newBuilder((flyteidl.core.Execution.QualityOfService) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 5) { + qualityOfServiceBuilder_.mergeFrom(value); + } + qualityOfServiceBuilder_.setMessage(value); + } + targetCase_ = 5; + return this; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public Builder clearQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + if (targetCase_ == 5) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 5) { + targetCase_ = 0; + target_ = null; + } + qualityOfServiceBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { + return getQualityOfServiceFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if ((targetCase_ == 5) && (qualityOfServiceBuilder_ != null)) { + return qualityOfServiceBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 5) { + return (flyteidl.core.Execution.QualityOfService) target_; + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> + getQualityOfServiceFieldBuilder() { + if (qualityOfServiceBuilder_ == null) { + if (!(targetCase_ == 5)) { + target_ = flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( + (flyteidl.core.Execution.QualityOfService) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 5; + onChanged();; + return qualityOfServiceBuilder_; + } + @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:flyteidl.admin.MatchingAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchingAttributes) + private static final flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchingAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MatchingAttributes(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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MatchableAttributesConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.MatchableAttributesConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes(); + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder(); + + /** + * string domain = 2; + */ + java.lang.String getDomain(); + /** + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * string project = 3; + */ + java.lang.String getProject(); + /** + * string project = 3; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + * string workflow = 4; + */ + java.lang.String getWorkflow(); + /** + * string workflow = 4; + */ + com.google.protobuf.ByteString + getWorkflowBytes(); + + /** + * string launch_plan = 5; + */ + java.lang.String getLaunchPlan(); + /** + * string launch_plan = 5; + */ + com.google.protobuf.ByteString + getLaunchPlanBytes(); + } + /** + *
+   * Represents a custom set of attributes applied for either a domain; a domain and project; or
+   * domain, project and workflow name.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.MatchableAttributesConfiguration} + */ + public static final class MatchableAttributesConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.MatchableAttributesConfiguration) + MatchableAttributesConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use MatchableAttributesConfiguration.newBuilder() to construct. + private MatchableAttributesConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MatchableAttributesConfiguration() { + domain_ = ""; + project_ = ""; + workflow_ = ""; + launchPlan_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MatchableAttributesConfiguration( + 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: { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + workflow_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + launchPlan_ = 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.class, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes attributes_; + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 3; + private volatile java.lang.Object project_; + /** + * string project = 3; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + * string project = 3; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_FIELD_NUMBER = 4; + private volatile java.lang.Object workflow_; + /** + * string workflow = 4; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + 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(); + workflow_ = s; + return s; + } + } + /** + * string workflow = 4; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAUNCH_PLAN_FIELD_NUMBER = 5; + private volatile java.lang.Object launchPlan_; + /** + * string launch_plan = 5; + */ + public java.lang.String getLaunchPlan() { + java.lang.Object ref = launchPlan_; + 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(); + launchPlan_ = s; + return s; + } + } + /** + * string launch_plan = 5; + */ + public com.google.protobuf.ByteString + getLaunchPlanBytes() { + java.lang.Object ref = launchPlan_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + launchPlan_ = 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 (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, project_); + } + if (!getWorkflowBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, workflow_); + } + if (!getLaunchPlanBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, launchPlan_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, project_); + } + if (!getWorkflowBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, workflow_); + } + if (!getLaunchPlanBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, launchPlan_); + } + 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration other = (flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) return false; + } + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + if (!getLaunchPlan() + .equals(other.getLaunchPlan())) 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 (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + hash = (37 * hash) + LAUNCH_PLAN_FIELD_NUMBER; + hash = (53 * hash) + getLaunchPlan().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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; + } + /** + *
+     * Represents a custom set of attributes applied for either a domain; a domain and project; or
+     * domain, project and workflow name.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.MatchableAttributesConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.MatchableAttributesConfiguration) + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.class, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.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 (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + domain_ = ""; + + project_ = ""; + + workflow_ = ""; + + launchPlan_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration build() { + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration result = new flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } + result.domain_ = domain_; + result.project_ = project_; + result.workflow_ = workflow_; + result.launchPlan_ = launchPlan_; + 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getWorkflow().isEmpty()) { + workflow_ = other.workflow_; + onChanged(); + } + if (!other.getLaunchPlan().isEmpty()) { + launchPlan_ = other.launchPlan_; + 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 { + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + + private java.lang.Object domain_ = ""; + /** + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * string project = 3; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string project = 3; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string project = 3; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + * string project = 3; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + * string project = 3; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object workflow_ = ""; + /** + * string workflow = 4; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workflow = 4; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workflow = 4; + */ + public Builder setWorkflow( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflow_ = value; + onChanged(); + return this; + } + /** + * string workflow = 4; + */ + public Builder clearWorkflow() { + + workflow_ = getDefaultInstance().getWorkflow(); + onChanged(); + return this; + } + /** + * string workflow = 4; + */ + public Builder setWorkflowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflow_ = value; + onChanged(); + return this; + } + + private java.lang.Object launchPlan_ = ""; + /** + * string launch_plan = 5; + */ + public java.lang.String getLaunchPlan() { + java.lang.Object ref = launchPlan_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + launchPlan_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string launch_plan = 5; + */ + public com.google.protobuf.ByteString + getLaunchPlanBytes() { + java.lang.Object ref = launchPlan_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + launchPlan_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string launch_plan = 5; + */ + public Builder setLaunchPlan( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + launchPlan_ = value; + onChanged(); + return this; + } + /** + * string launch_plan = 5; + */ + public Builder clearLaunchPlan() { + + launchPlan_ = getDefaultInstance().getLaunchPlan(); + onChanged(); + return this; + } + /** + * string launch_plan = 5; + */ + public Builder setLaunchPlanBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + launchPlan_ = 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:flyteidl.admin.MatchableAttributesConfiguration) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchableAttributesConfiguration) + private static final flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchableAttributesConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MatchableAttributesConfiguration(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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListMatchableAttributesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListMatchableAttributesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + int getResourceTypeValue(); + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + *
+   * Request all matching resource attributes.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ListMatchableAttributesRequest} + */ + public static final class ListMatchableAttributesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ListMatchableAttributesRequest) + ListMatchableAttributesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMatchableAttributesRequest.newBuilder() to construct. + private ListMatchableAttributesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListMatchableAttributesRequest() { + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListMatchableAttributesRequest( + 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 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + 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 (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(1, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest other = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) obj; + + if (resourceType_ != other.resourceType_) 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) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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; + } + /** + *
+     * Request all matching resource attributes.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ListMatchableAttributesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListMatchableAttributesRequest) + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.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(); + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest build() { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest result = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest(this); + result.resourceType_ = resourceType_; + 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + 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 { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + 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:flyteidl.admin.ListMatchableAttributesRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesRequest) + private static final flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMatchableAttributesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMatchableAttributesRequest(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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListMatchableAttributesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListMatchableAttributesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + java.util.List + getConfigurationsList(); + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index); + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + int getConfigurationsCount(); + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + java.util.List + getConfigurationsOrBuilderList(); + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( + int index); + } + /** + *
+   * Response for a request for all matching resource attributes.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ListMatchableAttributesResponse} + */ + public static final class ListMatchableAttributesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ListMatchableAttributesResponse) + ListMatchableAttributesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMatchableAttributesResponse.newBuilder() to construct. + private ListMatchableAttributesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListMatchableAttributesResponse() { + configurations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListMatchableAttributesResponse( + 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)) { + configurations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + configurations_.add( + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.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)) { + configurations_ = java.util.Collections.unmodifiableList(configurations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.Builder.class); + } + + public static final int CONFIGURATIONS_FIELD_NUMBER = 1; + private java.util.List configurations_; + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List getConfigurationsList() { + return configurations_; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List + getConfigurationsOrBuilderList() { + return configurations_; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public int getConfigurationsCount() { + return configurations_.size(); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index) { + return configurations_.get(index); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( + int index) { + return configurations_.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 < configurations_.size(); i++) { + output.writeMessage(1, configurations_.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 < configurations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, configurations_.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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse other = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) obj; + + if (!getConfigurationsList() + .equals(other.getConfigurationsList())) 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 (getConfigurationsCount() > 0) { + hash = (37 * hash) + CONFIGURATIONS_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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; + } + /** + *
+     * Response for a request for all matching resource attributes.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ListMatchableAttributesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListMatchableAttributesResponse) + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConfigurationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (configurationsBuilder_ == null) { + configurations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + configurationsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse build() { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse result = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse(this); + int from_bitField0_ = bitField0_; + if (configurationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + configurations_ = java.util.Collections.unmodifiableList(configurations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.configurations_ = configurations_; + } else { + result.configurations_ = configurationsBuilder_.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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.getDefaultInstance()) return this; + if (configurationsBuilder_ == null) { + if (!other.configurations_.isEmpty()) { + if (configurations_.isEmpty()) { + configurations_ = other.configurations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConfigurationsIsMutable(); + configurations_.addAll(other.configurations_); + } + onChanged(); + } + } else { + if (!other.configurations_.isEmpty()) { + if (configurationsBuilder_.isEmpty()) { + configurationsBuilder_.dispose(); + configurationsBuilder_ = null; + configurations_ = other.configurations_; + bitField0_ = (bitField0_ & ~0x00000001); + configurationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConfigurationsFieldBuilder() : null; + } else { + configurationsBuilder_.addAllMessages(other.configurations_); + } + } + } + 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 { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List configurations_ = + java.util.Collections.emptyList(); + private void ensureConfigurationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + configurations_ = new java.util.ArrayList(configurations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder> configurationsBuilder_; + + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List getConfigurationsList() { + if (configurationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(configurations_); + } else { + return configurationsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public int getConfigurationsCount() { + if (configurationsBuilder_ == null) { + return configurations_.size(); + } else { + return configurationsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index) { + if (configurationsBuilder_ == null) { + return configurations_.get(index); + } else { + return configurationsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder setConfigurations( + int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.set(index, value); + onChanged(); + } else { + configurationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder setConfigurations( + int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.set(index, builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addConfigurations(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.add(value); + onChanged(); + } else { + configurationsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addConfigurations( + int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.add(index, value); + onChanged(); + } else { + configurationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addConfigurations( + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addConfigurations( + int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(index, builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addAllConfigurations( + java.lang.Iterable values) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, configurations_); + onChanged(); + } else { + configurationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder clearConfigurations() { + if (configurationsBuilder_ == null) { + configurations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + configurationsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder removeConfigurations(int index) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.remove(index); + onChanged(); + } else { + configurationsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder getConfigurationsBuilder( + int index) { + return getConfigurationsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( + int index) { + if (configurationsBuilder_ == null) { + return configurations_.get(index); } else { + return configurationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List + getConfigurationsOrBuilderList() { + if (configurationsBuilder_ != null) { + return configurationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(configurations_); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder addConfigurationsBuilder() { + return getConfigurationsFieldBuilder().addBuilder( + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder addConfigurationsBuilder( + int index) { + return getConfigurationsFieldBuilder().addBuilder( + index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List + getConfigurationsBuilderList() { + return getConfigurationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder> + getConfigurationsFieldBuilder() { + if (configurationsBuilder_ == null) { + configurationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder>( + configurations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + configurations_ = null; + } + return configurationsBuilder_; + } + @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:flyteidl.admin.ListMatchableAttributesResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesResponse) + private static final flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMatchableAttributesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMatchableAttributesResponse(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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskResourceSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_MatchingAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ListMatchableAttributesResponse_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\'flyteidl/admin/matchable_resource.prot" + + "o\022\016flyteidl.admin\032\033flyteidl/admin/common" + + ".proto\032\035flyteidl/core/execution.proto\"M\n" + + "\020TaskResourceSpec\022\013\n\003cpu\030\001 \001(\t\022\013\n\003gpu\030\002 " + + "\001(\t\022\016\n\006memory\030\003 \001(\t\022\017\n\007storage\030\004 \001(\t\"~\n\026" + + "TaskResourceAttributes\0222\n\010defaults\030\001 \001(\013" + + "2 .flyteidl.admin.TaskResourceSpec\0220\n\006li" + + "mits\030\002 \001(\0132 .flyteidl.admin.TaskResource" + + "Spec\"\235\001\n\031ClusterResourceAttributes\022M\n\nat" + + "tributes\030\001 \003(\01329.flyteidl.admin.ClusterR" + + "esourceAttributes.AttributesEntry\0321\n\017Att" + + "ributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"(\n\030ExecutionQueueAttributes\022\014\n\004tags" + + "\030\001 \003(\t\"&\n\025ExecutionClusterLabel\022\r\n\005value" + + "\030\001 \001(\t\"\225\003\n\022MatchingAttributes\022J\n\030task_re" + + "source_attributes\030\001 \001(\0132&.flyteidl.admin" + + ".TaskResourceAttributesH\000\022P\n\033cluster_res" + + "ource_attributes\030\002 \001(\0132).flyteidl.admin." + + "ClusterResourceAttributesH\000\022N\n\032execution" + + "_queue_attributes\030\003 \001(\0132(.flyteidl.admin" + + ".ExecutionQueueAttributesH\000\022H\n\027execution" + + "_cluster_label\030\004 \001(\0132%.flyteidl.admin.Ex" + + "ecutionClusterLabelH\000\022=\n\022quality_of_serv" + + "ice\030\005 \001(\0132\037.flyteidl.core.QualityOfServi" + + "ceH\000B\010\n\006target\"\242\001\n MatchableAttributesCo" + + "nfiguration\0226\n\nattributes\030\001 \001(\0132\".flytei" + + "dl.admin.MatchingAttributes\022\016\n\006domain\030\002 " + + "\001(\t\022\017\n\007project\030\003 \001(\t\022\020\n\010workflow\030\004 \001(\t\022\023" + + "\n\013launch_plan\030\005 \001(\t\"Z\n\036ListMatchableAttr" + + "ibutesRequest\0228\n\rresource_type\030\001 \001(\0162!.f" + + "lyteidl.admin.MatchableResource\"k\n\037ListM" + + "atchableAttributesResponse\022H\n\016configurat" + + "ions\030\001 \003(\01320.flyteidl.admin.MatchableAtt" + + "ributesConfiguration*\224\001\n\021MatchableResour" + + "ce\022\021\n\rTASK_RESOURCE\020\000\022\024\n\020CLUSTER_RESOURC" + + "E\020\001\022\023\n\017EXECUTION_QUEUE\020\002\022\033\n\027EXECUTION_CL" + + "USTER_LABEL\020\003\022$\n QUALITY_OF_SERVICE_SPEC" + + "IFICATION\020\004B3Z1github.com/lyft/flyteidl/" + + "gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_TaskResourceSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskResourceSpec_descriptor, + new java.lang.String[] { "Cpu", "Gpu", "Memory", "Storage", }); + internal_static_flyteidl_admin_TaskResourceAttributes_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskResourceAttributes_descriptor, + new java.lang.String[] { "Defaults", "Limits", }); + internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor = + internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor, + new java.lang.String[] { "Tags", }); + internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor, + new java.lang.String[] { "Value", }); + internal_static_flyteidl_admin_MatchingAttributes_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_MatchingAttributes_descriptor, + new java.lang.String[] { "TaskResourceAttributes", "ClusterResourceAttributes", "ExecutionQueueAttributes", "ExecutionClusterLabel", "QualityOfService", "Target", }); + internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor, + new java.lang.String[] { "Attributes", "Domain", "Project", "Workflow", "LaunchPlan", }); + internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor, + new java.lang.String[] { "ResourceType", }); + internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor, + new java.lang.String[] { "Configurations", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java b/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java new file mode 100644 index 000000000..d8233be20 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java @@ -0,0 +1,11025 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/node_execution.proto + +package flyteidl.admin; + +public final class NodeExecutionOuterClass { + private NodeExecutionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface NodeExecutionGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A message used to fetch a single node execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} + */ + public static final class NodeExecutionGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetRequest) + NodeExecutionGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionGetRequest.newBuilder() to construct. + private NodeExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionGetRequest( + 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: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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 message used to fetch a single node execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.NodeExecutionGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionGetRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + boolean hasWorkflowExecutionId(); + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId(); + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of node execution entities.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} + */ + public static final class NodeExecutionListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionListRequest) + NodeExecutionListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionListRequest.newBuilder() to construct. + private NodeExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionListRequest() { + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionListRequest( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (workflowExecutionId_ != null) { + subBuilder = workflowExecutionId_.toBuilder(); + } + workflowExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowExecutionId_); + workflowExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); + } + + public static final int WORKFLOW_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public boolean hasWorkflowExecutionId() { + return workflowExecutionId_ != null; + } + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { + return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { + return getWorkflowExecutionId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + 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 (workflowExecutionId_ != null) { + output.writeMessage(1, getWorkflowExecutionId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflowExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflowExecutionId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) obj; + + if (hasWorkflowExecutionId() != other.hasWorkflowExecutionId()) return false; + if (hasWorkflowExecutionId()) { + if (!getWorkflowExecutionId() + .equals(other.getWorkflowExecutionId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) 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 (hasWorkflowExecutionId()) { + hash = (37 * hash) + WORKFLOW_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowExecutionId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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; + } + /** + *
+     * Represents a request structure to retrieve a list of node execution entities.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionListRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.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 (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = null; + } else { + workflowExecutionId_ = null; + workflowExecutionIdBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(this); + if (workflowExecutionIdBuilder_ == null) { + result.workflowExecutionId_ = workflowExecutionId_; + } else { + result.workflowExecutionId_ = workflowExecutionIdBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance()) return this; + if (other.hasWorkflowExecutionId()) { + mergeWorkflowExecutionId(other.getWorkflowExecutionId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowExecutionIdBuilder_; + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public boolean hasWorkflowExecutionId() { + return workflowExecutionIdBuilder_ != null || workflowExecutionId_ != null; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { + if (workflowExecutionIdBuilder_ == null) { + return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } else { + return workflowExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder setWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowExecutionId_ = value; + onChanged(); + } else { + workflowExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder setWorkflowExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = builderForValue.build(); + onChanged(); + } else { + workflowExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder mergeWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionIdBuilder_ == null) { + if (workflowExecutionId_ != null) { + workflowExecutionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(workflowExecutionId_).mergeFrom(value).buildPartial(); + } else { + workflowExecutionId_ = value; + } + onChanged(); + } else { + workflowExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder clearWorkflowExecutionId() { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = null; + onChanged(); + } else { + workflowExecutionId_ = null; + workflowExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowExecutionIdBuilder() { + + onChanged(); + return getWorkflowExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { + if (workflowExecutionIdBuilder_ != null) { + return workflowExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return workflowExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getWorkflowExecutionIdFieldBuilder() { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getWorkflowExecutionId(), + getParentForChildren(), + isClean()); + workflowExecutionId_ = null; + } + return workflowExecutionIdBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @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:flyteidl.admin.NodeExecutionListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionListRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionListRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionForTaskListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionForTaskListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + boolean hasTaskExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} + */ + public static final class NodeExecutionForTaskListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionForTaskListRequest) + NodeExecutionForTaskListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionForTaskListRequest.newBuilder() to construct. + private NodeExecutionForTaskListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionForTaskListRequest() { + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionForTaskListRequest( + 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: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (taskExecutionId_ != null) { + subBuilder = taskExecutionId_.toBuilder(); + } + taskExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskExecutionId_); + taskExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); + } + + public static final int TASK_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public boolean hasTaskExecutionId() { + return taskExecutionId_ != null; + } + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { + return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { + return getTaskExecutionId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + 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 (taskExecutionId_ != null) { + output.writeMessage(1, getTaskExecutionId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTaskExecutionId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) obj; + + if (hasTaskExecutionId() != other.hasTaskExecutionId()) return false; + if (hasTaskExecutionId()) { + if (!getTaskExecutionId() + .equals(other.getTaskExecutionId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) 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 (hasTaskExecutionId()) { + hash = (37 * hash) + TASK_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskExecutionId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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; + } + /** + *
+     * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionForTaskListRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.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 (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = null; + } else { + taskExecutionId_ = null; + taskExecutionIdBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(this); + if (taskExecutionIdBuilder_ == null) { + result.taskExecutionId_ = taskExecutionId_; + } else { + result.taskExecutionId_ = taskExecutionIdBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance()) return this; + if (other.hasTaskExecutionId()) { + mergeTaskExecutionId(other.getTaskExecutionId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskExecutionIdBuilder_; + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public boolean hasTaskExecutionId() { + return taskExecutionIdBuilder_ != null || taskExecutionId_ != null; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { + if (taskExecutionIdBuilder_ == null) { + return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } else { + return taskExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder setTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (taskExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskExecutionId_ = value; + onChanged(); + } else { + taskExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder setTaskExecutionId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = builderForValue.build(); + onChanged(); + } else { + taskExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder mergeTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (taskExecutionIdBuilder_ == null) { + if (taskExecutionId_ != null) { + taskExecutionId_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(taskExecutionId_).mergeFrom(value).buildPartial(); + } else { + taskExecutionId_ = value; + } + onChanged(); + } else { + taskExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder clearTaskExecutionId() { + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = null; + onChanged(); + } else { + taskExecutionId_ = null; + taskExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskExecutionIdBuilder() { + + onChanged(); + return getTaskExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { + if (taskExecutionIdBuilder_ != null) { + return taskExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return taskExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getTaskExecutionIdFieldBuilder() { + if (taskExecutionIdBuilder_ == null) { + taskExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getTaskExecutionId(), + getParentForChildren(), + isClean()); + taskExecutionId_ = null; + } + return taskExecutionIdBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @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:flyteidl.admin.NodeExecutionForTaskListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionForTaskListRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionForTaskListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionForTaskListRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecution) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + java.lang.String getInputUri(); + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + boolean hasClosure(); + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure(); + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder(); + + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + boolean hasMetadata(); + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata(); + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder(); + } + /** + *
+   * Encapsulates all details for a single node execution entity.
+   * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
+   * sub-workflow, or even a separate child-workflow execution.
+   * The same task can be called repeatedly in a single workflow but each node is unique.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecution} + */ + public static final class NodeExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecution) + NodeExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecution.newBuilder() to construct. + private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecution() { + inputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecution( + 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: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 26: { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object inputUri_; + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + 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(); + inputUri_ = s; + return s; + } + } + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_; + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { + return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; + } + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + public static final int METADATA_FIELD_NUMBER = 4; + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData metadata_; + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata() { + return metadata_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; + } + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + 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 (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + if (metadata_ != null) { + output.writeMessage(4, getMetadata()); + } + 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 (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMetadata()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecution other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getInputUri() + .equals(other.getInputUri())) return false; + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) 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) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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; + } + /** + *
+     * Encapsulates all details for a single node execution entity.
+     * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
+     * sub-workflow, or even a separate child-workflow execution.
+     * The same task can be called repeatedly in a single workflow but each node is unique.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecution) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecution.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + inputUri_ = ""; + + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecution other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> closureBuilder_; + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder> metadataBuilder_; + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public Builder setMetadata(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public Builder setMetadata( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public Builder mergeMetadata(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @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:flyteidl.admin.NodeExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecution) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecution(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionMetaDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionMetaData) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Represents additional attributes related to a Node Execution
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionMetaData} + */ + public static final class NodeExecutionMetaData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionMetaData) + NodeExecutionMetaDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionMetaData.newBuilder() to construct. + private NodeExecutionMetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionMetaData() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionMetaData( + 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; + 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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; + } + /** + *
+     * Represents additional attributes related to a Node Execution
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionMetaData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionMetaData) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData(this); + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance()) return this; + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.NodeExecutionMetaData) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionMetaData) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionMetaData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionMetaData(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + java.util.List + getNodeExecutionsList(); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + int getNodeExecutionsCount(); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + java.util.List + getNodeExecutionsOrBuilderList(); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Request structure to retrieve a list of node execution entities.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionList} + */ + public static final class NodeExecutionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionList) + NodeExecutionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionList.newBuilder() to construct. + private NodeExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionList() { + nodeExecutions_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionList( + 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)) { + nodeExecutions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodeExecutions_.add( + input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecution.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); + } + + private int bitField0_; + public static final int NODE_EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List nodeExecutions_; + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List getNodeExecutionsList() { + return nodeExecutions_; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List + getNodeExecutionsOrBuilderList() { + return nodeExecutions_; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public int getNodeExecutionsCount() { + return nodeExecutions_.size(); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { + return nodeExecutions_.get(index); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( + int index) { + return nodeExecutions_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < nodeExecutions_.size(); i++) { + output.writeMessage(1, nodeExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodeExecutions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodeExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) obj; + + if (!getNodeExecutionsList() + .equals(other.getNodeExecutionsList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getNodeExecutionsCount() > 0) { + hash = (37 * hash) + NODE_EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getNodeExecutionsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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; + } + /** + *
+     * Request structure to retrieve a list of node execution entities.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionList) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodeExecutionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeExecutionsBuilder_ == null) { + nodeExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodeExecutionsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (nodeExecutionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodeExecutions_ = nodeExecutions_; + } else { + result.nodeExecutions_ = nodeExecutionsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance()) return this; + if (nodeExecutionsBuilder_ == null) { + if (!other.nodeExecutions_.isEmpty()) { + if (nodeExecutions_.isEmpty()) { + nodeExecutions_ = other.nodeExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.addAll(other.nodeExecutions_); + } + onChanged(); + } + } else { + if (!other.nodeExecutions_.isEmpty()) { + if (nodeExecutionsBuilder_.isEmpty()) { + nodeExecutionsBuilder_.dispose(); + nodeExecutionsBuilder_ = null; + nodeExecutions_ = other.nodeExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeExecutionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeExecutionsFieldBuilder() : null; + } else { + nodeExecutionsBuilder_.addAllMessages(other.nodeExecutions_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List nodeExecutions_ = + java.util.Collections.emptyList(); + private void ensureNodeExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodeExecutions_ = new java.util.ArrayList(nodeExecutions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> nodeExecutionsBuilder_; + + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List getNodeExecutionsList() { + if (nodeExecutionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeExecutions_); + } else { + return nodeExecutionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public int getNodeExecutionsCount() { + if (nodeExecutionsBuilder_ == null) { + return nodeExecutions_.size(); + } else { + return nodeExecutionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { + if (nodeExecutionsBuilder_ == null) { + return nodeExecutions_.get(index); + } else { + return nodeExecutionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder setNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { + if (nodeExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeExecutionsIsMutable(); + nodeExecutions_.set(index, value); + onChanged(); + } else { + nodeExecutionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder setNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeExecutionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions(flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { + if (nodeExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(value); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { + if (nodeExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(index, value); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(builderForValue.build()); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addAllNodeExecutions( + java.lang.Iterable values) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeExecutions_); + onChanged(); + } else { + nodeExecutionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder clearNodeExecutions() { + if (nodeExecutionsBuilder_ == null) { + nodeExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeExecutionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder removeNodeExecutions(int index) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.remove(index); + onChanged(); + } else { + nodeExecutionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder getNodeExecutionsBuilder( + int index) { + return getNodeExecutionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( + int index) { + if (nodeExecutionsBuilder_ == null) { + return nodeExecutions_.get(index); } else { + return nodeExecutionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List + getNodeExecutionsOrBuilderList() { + if (nodeExecutionsBuilder_ != null) { + return nodeExecutionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeExecutions_); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder() { + return getNodeExecutionsFieldBuilder().addBuilder( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder( + int index) { + return getNodeExecutionsFieldBuilder().addBuilder( + index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List + getNodeExecutionsBuilderList() { + return getNodeExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> + getNodeExecutionsFieldBuilder() { + if (nodeExecutionsBuilder_ == null) { + nodeExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder>( + nodeExecutions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nodeExecutions_ = null; + } + return nodeExecutionsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.NodeExecutionList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionList) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionList(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionClosure) + com.google.protobuf.MessageOrBuilder { + + /** + * string output_uri = 1; + */ + java.lang.String getOutputUri(); + /** + * string output_uri = 1; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + boolean hasError(); + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + flyteidl.core.Execution.NodeExecution.Phase getPhase(); + + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + boolean hasStartedAt(); + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + com.google.protobuf.Timestamp getStartedAt(); + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); + + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + boolean hasDuration(); + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + com.google.protobuf.Duration getDuration(); + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + boolean hasUpdatedAt(); + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + boolean hasWorkflowNodeMetadata(); + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata(); + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.OutputResultCase getOutputResultCase(); + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.TargetMetadataCase getTargetMetadataCase(); + } + /** + *
+   * Container for node execution details and results.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} + */ + public static final class NodeExecutionClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionClosure) + NodeExecutionClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionClosure.newBuilder() to construct. + private NodeExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionClosure() { + phase_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionClosure( + 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(); + outputResultCase_ = 1; + outputResult_ = s; + break; + } + case 18: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 2; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startedAt_ != null) { + subBuilder = startedAt_.toBuilder(); + } + startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startedAt_); + startedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + 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 58: { + 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; + } + case 66: { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder subBuilder = null; + if (targetMetadataCase_ == 8) { + subBuilder = ((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_).toBuilder(); + } + targetMetadata_ = + input.readMessage(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); + targetMetadata_ = subBuilder.buildPartial(); + } + targetMetadataCase_ = 8; + 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(1), + ERROR(2), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 1: return OUTPUT_URI; + case 2: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public enum TargetMetadataCase + implements com.google.protobuf.Internal.EnumLite { + WORKFLOW_NODE_METADATA(8), + TARGETMETADATA_NOT_SET(0); + private final int value; + private TargetMetadataCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static TargetMetadataCase forNumber(int value) { + switch (value) { + case 8: return WORKFLOW_NODE_METADATA; + case 0: return TARGETMETADATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 1; + /** + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } + } + /** + * string output_uri = 1; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + + public static final int STARTED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startedAt_; + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public boolean hasStartedAt() { + return startedAt_ != null; + } + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.Timestamp getStartedAt() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + return getStartedAt(); + } + + public static final int DURATION_FIELD_NUMBER = 5; + private com.google.protobuf.Duration duration_; + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (outputResultCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); + } + if (outputResultCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + if (startedAt_ != null) { + output.writeMessage(4, getStartedAt()); + } + if (duration_ != null) { + output.writeMessage(5, getDuration()); + } + if (createdAt_ != null) { + output.writeMessage(6, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(7, getUpdatedAt()); + } + if (targetMetadataCase_ == 8) { + output.writeMessage(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputResultCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); + } + if (outputResultCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + if (startedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartedAt()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getDuration()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdatedAt()); + } + if (targetMetadataCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) obj; + + if (phase_ != other.phase_) return false; + if (hasStartedAt() != other.hasStartedAt()) return false; + if (hasStartedAt()) { + if (!getStartedAt() + .equals(other.getStartedAt())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) 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 (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 1: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 2: + if (!getError() + .equals(other.getError())) return false; + break; + case 0: + default: + } + if (!getTargetMetadataCase().equals(other.getTargetMetadataCase())) return false; + switch (targetMetadataCase_) { + case 8: + if (!getWorkflowNodeMetadata() + .equals(other.getWorkflowNodeMetadata())) 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) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasStartedAt()) { + hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getStartedAt().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().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(); + } + switch (outputResultCase_) { + case 1: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + switch (targetMetadataCase_) { + case 8: + hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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; + } + /** + *
+     * Container for node execution details and results.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionClosure) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.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(); + phase_ = 0; + + if (startedAtBuilder_ == null) { + startedAt_ = null; + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + targetMetadataCase_ = 0; + targetMetadata_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(this); + if (outputResultCase_ == 1) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 2) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + result.phase_ = phase_; + if (startedAtBuilder_ == null) { + result.startedAt_ = startedAt_; + } else { + result.startedAt_ = startedAtBuilder_.build(); + } + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + if (targetMetadataCase_ == 8) { + if (workflowNodeMetadataBuilder_ == null) { + result.targetMetadata_ = targetMetadata_; + } else { + result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); + } + } + result.outputResultCase_ = outputResultCase_; + result.targetMetadataCase_ = targetMetadataCase_; + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance()) return this; + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasStartedAt()) { + mergeStartedAt(other.getStartedAt()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 1; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + switch (other.getTargetMetadataCase()) { + case WORKFLOW_NODE_METADATA: { + mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); + break; + } + case TARGETMETADATA_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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public Builder clearTargetMetadata() { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + return this; + } + + + /** + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string output_uri = 1; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string output_uri = 1; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + /** + * string output_uri = 1; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + * string output_uri = 1; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 2)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 2; + onChanged();; + return errorBuilder_; + } + + private int phase_ = 0; + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public boolean hasStartedAt() { + return startedAtBuilder_ != null || startedAt_ != null; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.Timestamp getStartedAt() { + if (startedAtBuilder_ == null) { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } else { + return startedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder setStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedAt_ = value; + onChanged(); + } else { + startedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder setStartedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedAtBuilder_ == null) { + startedAt_ = builderForValue.build(); + onChanged(); + } else { + startedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (startedAt_ != null) { + startedAt_ = + com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); + } else { + startedAt_ = value; + } + onChanged(); + } else { + startedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder clearStartedAt() { + if (startedAtBuilder_ == null) { + startedAt_ = null; + onChanged(); + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { + + onChanged(); + return getStartedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + if (startedAtBuilder_ != null) { + return startedAtBuilder_.getMessageOrBuilder(); + } else { + return startedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedAtFieldBuilder() { + if (startedAtBuilder_ == null) { + startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedAt(), + getParentForChildren(), + isClean()); + startedAt_ = null; + } + return startedAtBuilder_; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + 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_; + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + 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; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + 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; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + 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_; + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + 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; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + 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; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + 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_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } else { + if (targetMetadataCase_ == 8) { + return workflowNodeMetadataBuilder_.getMessage(); + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetMetadata_ = value; + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata( + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder builderForValue) { + if (workflowNodeMetadataBuilder_ == null) { + targetMetadata_ = builderForValue.build(); + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder mergeWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8 && + targetMetadata_ != flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) { + targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.newBuilder((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_) + .mergeFrom(value).buildPartial(); + } else { + targetMetadata_ = value; + } + onChanged(); + } else { + if (targetMetadataCase_ == 8) { + workflowNodeMetadataBuilder_.mergeFrom(value); + } + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder clearWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + } + } else { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + } + workflowNodeMetadataBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { + return getWorkflowNodeMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { + return workflowNodeMetadataBuilder_.getMessageOrBuilder(); + } else { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> + getWorkflowNodeMetadataFieldBuilder() { + if (workflowNodeMetadataBuilder_ == null) { + if (!(targetMetadataCase_ == 8)) { + targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder>( + (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_, + getParentForChildren(), + isClean()); + targetMetadata_ = null; + } + targetMetadataCase_ = 8; + onChanged();; + return workflowNodeMetadataBuilder_; + } + @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:flyteidl.admin.NodeExecutionClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionClosure) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionClosure(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowNodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowNodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + boolean hasExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + } + /** + *
+   * Metadata for a WorkflowNode
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} + */ + public static final class WorkflowNodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowNodeMetadata) + WorkflowNodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowNodeMetadata.newBuilder() to construct. + private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowNodeMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowNodeMetadata( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); + } + + public static final int EXECUTIONID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + 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 (executionId_ != null) { + output.writeMessage(1, getExecutionId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getExecutionId()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) obj; + + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) 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 (hasExecutionId()) { + hash = (37 * hash) + EXECUTIONID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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; + } + /** + *
+     * Metadata for a WorkflowNode
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowNodeMetadata) + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.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 (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata build() { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(this); + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) return this; + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + @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:flyteidl.admin.WorkflowNodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowNodeMetadata) + private static final flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowNodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowNodeMetadata(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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionGetDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Request structure to fetch inputs and output urls for a node execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} + */ + public static final class NodeExecutionGetDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataRequest) + NodeExecutionGetDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionGetDataRequest.newBuilder() to construct. + private NodeExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionGetDataRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionGetDataRequest( + 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: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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; + } + /** + *
+     * Request structure to fetch inputs and output urls for a node execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.NodeExecutionGetDataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionGetDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionGetDataRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionGetDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + boolean hasInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + flyteidl.admin.Common.UrlBlob getInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); + + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + boolean hasOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + flyteidl.admin.Common.UrlBlob getOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); + } + /** + *
+   * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} + */ + public static final class NodeExecutionGetDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataResponse) + NodeExecutionGetDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionGetDataResponse.newBuilder() to construct. + private NodeExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionGetDataResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionGetDataResponse( + 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: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.admin.Common.UrlBlob inputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.admin.Common.UrlBlob outputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + 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 (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) obj; + + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) 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 (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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; + } + /** + *
+     * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataResponse) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.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 (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.UrlBlob inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder setInputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.admin.Common.UrlBlob outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder setOutputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + @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:flyteidl.admin.NodeExecutionGetDataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataResponse) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionGetDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionGetDataResponse(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_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#flyteidl/admin/node_execution.proto\022\016f" + + "lyteidl.admin\032\033flyteidl/admin/common.pro" + + "to\032\035flyteidl/core/execution.proto\032\036flyte" + + "idl/core/identifier.proto\032\037google/protob" + + "uf/timestamp.proto\032\036google/protobuf/dura" + + "tion.proto\"M\n\027NodeExecutionGetRequest\0222\n" + + "\002id\030\001 \001(\0132&.flyteidl.core.NodeExecutionI" + + "dentifier\"\273\001\n\030NodeExecutionListRequest\022I" + + "\n\025workflow_execution_id\030\001 \001(\0132*.flyteidl" + + ".core.WorkflowExecutionIdentifier\022\r\n\005lim" + + "it\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t" + + "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"" + + "\272\001\n\037NodeExecutionForTaskListRequest\022A\n\021t" + + "ask_execution_id\030\001 \001(\0132&.flyteidl.core.T" + + "askExecutionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n" + + "\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by" + + "\030\005 \001(\0132\024.flyteidl.admin.Sort\"\306\001\n\rNodeExe" + + "cution\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeE" + + "xecutionIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n" + + "\007closure\030\003 \001(\0132$.flyteidl.admin.NodeExec" + + "utionClosure\0227\n\010metadata\030\004 \001(\0132%.flyteid" + + "l.admin.NodeExecutionMetaData\"\027\n\025NodeExe" + + "cutionMetaData\"Z\n\021NodeExecutionList\0226\n\017n" + + "ode_executions\030\001 \003(\0132\035.flyteidl.admin.No" + + "deExecution\022\r\n\005token\030\002 \001(\t\"\270\003\n\024NodeExecu" + + "tionClosure\022\024\n\noutput_uri\030\001 \001(\tH\000\022.\n\005err" + + "or\030\002 \001(\0132\035.flyteidl.core.ExecutionErrorH" + + "\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.core.NodeExe" + + "cution.Phase\022.\n\nstarted_at\030\004 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022+\n\010duration\030\005 \001(\0132\031" + + ".google.protobuf.Duration\022.\n\ncreated_at\030" + + "\006 \001(\0132\032.google.protobuf.Timestamp\022.\n\nupd" + + "ated_at\030\007 \001(\0132\032.google.protobuf.Timestam" + + "p\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyt" + + "eidl.admin.WorkflowNodeMetadataH\001B\017\n\rout" + + "put_resultB\021\n\017target_metadata\"W\n\024Workflo" + + "wNodeMetadata\022?\n\013executionId\030\001 \001(\0132*.fly" + + "teidl.core.WorkflowExecutionIdentifier\"Q" + + "\n\033NodeExecutionGetDataRequest\0222\n\002id\030\001 \001(" + + "\0132&.flyteidl.core.NodeExecutionIdentifie" + + "r\"q\n\034NodeExecutionGetDataResponse\022\'\n\006inp" + + "uts\030\001 \001(\0132\027.flyteidl.admin.UrlBlob\022(\n\007ou" + + "tputs\030\002 \001(\0132\027.flyteidl.admin.UrlBlobB3Z1" + + "github.com/lyft/flyteidl/gen/pb-go/flyte" + + "idl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor, + new java.lang.String[] { "WorkflowExecutionId", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor, + new java.lang.String[] { "TaskExecutionId", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_NodeExecution_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecution_descriptor, + new java.lang.String[] { "Id", "InputUri", "Closure", "Metadata", }); + internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_NodeExecutionList_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionList_descriptor, + new java.lang.String[] { "NodeExecutions", "Token", }); + internal_static_flyteidl_admin_NodeExecutionClosure_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionClosure_descriptor, + new java.lang.String[] { "OutputUri", "Error", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "WorkflowNodeMetadata", "OutputResult", "TargetMetadata", }); + internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor, + new java.lang.String[] { "ExecutionId", }); + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor, + new java.lang.String[] { "Inputs", "Outputs", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/Notification.java b/gen/pb-java/flyteidl/admin/Notification.java new file mode 100644 index 000000000..97b698ff0 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/Notification.java @@ -0,0 +1,1325 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/notification.proto + +package flyteidl.admin; + +public final class Notification { + private Notification() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface EmailMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + java.lang.String getSenderEmail(); + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + com.google.protobuf.ByteString + getSenderEmailBytes(); + + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + java.lang.String getSubjectLine(); + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + com.google.protobuf.ByteString + getSubjectLineBytes(); + + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + java.lang.String getBody(); + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + com.google.protobuf.ByteString + getBodyBytes(); + } + /** + *
+   * Represents the Email object that is sent to a publisher/subscriber
+   * to forward the notification.
+   * Note: This is internal to Admin and doesn't need to be exposed to other components.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.EmailMessage} + */ + public static final class EmailMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailMessage) + EmailMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmailMessage.newBuilder() to construct. + private EmailMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EmailMessage() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + senderEmail_ = ""; + subjectLine_ = ""; + body_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EmailMessage( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + senderEmail_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + subjectLine_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + body_ = 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)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); + } + + private int bitField0_; + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + + public static final int SENDER_EMAIL_FIELD_NUMBER = 2; + private volatile java.lang.Object senderEmail_; + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + public java.lang.String getSenderEmail() { + java.lang.Object ref = senderEmail_; + 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(); + senderEmail_ = s; + return s; + } + } + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + public com.google.protobuf.ByteString + getSenderEmailBytes() { + java.lang.Object ref = senderEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + senderEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_LINE_FIELD_NUMBER = 3; + private volatile java.lang.Object subjectLine_; + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + public java.lang.String getSubjectLine() { + java.lang.Object ref = subjectLine_; + 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(); + subjectLine_ = s; + return s; + } + } + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + public com.google.protobuf.ByteString + getSubjectLineBytes() { + java.lang.Object ref = subjectLine_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectLine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BODY_FIELD_NUMBER = 4; + private volatile java.lang.Object body_; + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + public java.lang.String getBody() { + java.lang.Object ref = body_; + 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(); + body_ = s; + return s; + } + } + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + public com.google.protobuf.ByteString + getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + body_ = 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 { + for (int i = 0; i < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + if (!getSenderEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, senderEmail_); + } + if (!getSubjectLineBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subjectLine_); + } + if (!getBodyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, body_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + if (!getSenderEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, senderEmail_); + } + if (!getSubjectLineBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subjectLine_); + } + if (!getBodyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, body_); + } + 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 flyteidl.admin.Notification.EmailMessage)) { + return super.equals(obj); + } + flyteidl.admin.Notification.EmailMessage other = (flyteidl.admin.Notification.EmailMessage) obj; + + if (!getRecipientsEmailList() + .equals(other.getRecipientsEmailList())) return false; + if (!getSenderEmail() + .equals(other.getSenderEmail())) return false; + if (!getSubjectLine() + .equals(other.getSubjectLine())) return false; + if (!getBody() + .equals(other.getBody())) 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 (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (37 * hash) + SENDER_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getSenderEmail().hashCode(); + hash = (37 * hash) + SUBJECT_LINE_FIELD_NUMBER; + hash = (53 * hash) + getSubjectLine().hashCode(); + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Notification.EmailMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Notification.EmailMessage 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 flyteidl.admin.Notification.EmailMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Notification.EmailMessage 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 flyteidl.admin.Notification.EmailMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Notification.EmailMessage 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(flyteidl.admin.Notification.EmailMessage 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; + } + /** + *
+     * Represents the Email object that is sent to a publisher/subscriber
+     * to forward the notification.
+     * Note: This is internal to Admin and doesn't need to be exposed to other components.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.EmailMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailMessage) + flyteidl.admin.Notification.EmailMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); + } + + // Construct using flyteidl.admin.Notification.EmailMessage.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(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + senderEmail_ = ""; + + subjectLine_ = ""; + + body_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Notification.EmailMessage getDefaultInstanceForType() { + return flyteidl.admin.Notification.EmailMessage.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Notification.EmailMessage build() { + flyteidl.admin.Notification.EmailMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Notification.EmailMessage buildPartial() { + flyteidl.admin.Notification.EmailMessage result = new flyteidl.admin.Notification.EmailMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + result.senderEmail_ = senderEmail_; + result.subjectLine_ = subjectLine_; + result.body_ = body_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.Notification.EmailMessage) { + return mergeFrom((flyteidl.admin.Notification.EmailMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Notification.EmailMessage other) { + if (other == flyteidl.admin.Notification.EmailMessage.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + onChanged(); + } + if (!other.getSenderEmail().isEmpty()) { + senderEmail_ = other.senderEmail_; + onChanged(); + } + if (!other.getSubjectLine().isEmpty()) { + subjectLine_ = other.subjectLine_; + onChanged(); + } + if (!other.getBody().isEmpty()) { + body_ = other.body_; + 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 { + flyteidl.admin.Notification.EmailMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Notification.EmailMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + + private java.lang.Object senderEmail_ = ""; + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public java.lang.String getSenderEmail() { + java.lang.Object ref = senderEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + senderEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public com.google.protobuf.ByteString + getSenderEmailBytes() { + java.lang.Object ref = senderEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + senderEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public Builder setSenderEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + senderEmail_ = value; + onChanged(); + return this; + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public Builder clearSenderEmail() { + + senderEmail_ = getDefaultInstance().getSenderEmail(); + onChanged(); + return this; + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public Builder setSenderEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + senderEmail_ = value; + onChanged(); + return this; + } + + private java.lang.Object subjectLine_ = ""; + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public java.lang.String getSubjectLine() { + java.lang.Object ref = subjectLine_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectLine_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public com.google.protobuf.ByteString + getSubjectLineBytes() { + java.lang.Object ref = subjectLine_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectLine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public Builder setSubjectLine( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subjectLine_ = value; + onChanged(); + return this; + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public Builder clearSubjectLine() { + + subjectLine_ = getDefaultInstance().getSubjectLine(); + onChanged(); + return this; + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public Builder setSubjectLineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subjectLine_ = value; + onChanged(); + return this; + } + + private java.lang.Object body_ = ""; + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public com.google.protobuf.ByteString + getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public Builder setBody( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + body_ = value; + onChanged(); + return this; + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public Builder clearBody() { + + body_ = getDefaultInstance().getBody(); + onChanged(); + return this; + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + body_ = 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:flyteidl.admin.EmailMessage) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailMessage) + private static final flyteidl.admin.Notification.EmailMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Notification.EmailMessage(); + } + + public static flyteidl.admin.Notification.EmailMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmailMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmailMessage(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 flyteidl.admin.Notification.EmailMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EmailMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EmailMessage_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!flyteidl/admin/notification.proto\022\016fly" + + "teidl.admin\"b\n\014EmailMessage\022\030\n\020recipient" + + "s_email\030\001 \003(\t\022\024\n\014sender_email\030\002 \001(\t\022\024\n\014s" + + "ubject_line\030\003 \001(\t\022\014\n\004body\030\004 \001(\tB3Z1githu" + + "b.com/lyft/flyteidl/gen/pb-go/flyteidl/a" + + "dminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_admin_EmailMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EmailMessage_descriptor, + new java.lang.String[] { "RecipientsEmail", "SenderEmail", "SubjectLine", "Body", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java b/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java new file mode 100644 index 000000000..329aae51e --- /dev/null +++ b/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java @@ -0,0 +1,4856 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project_domain_attributes.proto + +package flyteidl.admin; + +public final class ProjectDomainAttributesOuterClass { + private ProjectDomainAttributesOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ProjectDomainAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + boolean hasMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributes} + */ + public static final class ProjectDomainAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributes) + ProjectDomainAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributes.newBuilder() to construct. + private ProjectDomainAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributes() { + project_ = ""; + domain_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributes( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; + if (matchingAttributes_ != null) { + subBuilder = matchingAttributes_.toBuilder(); + } + matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(matchingAttributes_); + matchingAttributes_ = 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 3; + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public boolean hasMatchingAttributes() { + return matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + return getMatchingAttributes(); + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (matchingAttributes_ != null) { + output.writeMessage(3, getMatchingAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (matchingAttributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMatchingAttributes()); + } + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; + if (hasMatchingAttributes()) { + if (!getMatchingAttributes() + .equals(other.getMatchingAttributes())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + if (hasMatchingAttributes()) { + hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getMatchingAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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 flyteidl.admin.ProjectDomainAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributes) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.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(); + project_ = ""; + + domain_ = ""; + + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes(this); + result.project_ = project_; + result.domain_ = domain_; + if (matchingAttributesBuilder_ == null) { + result.matchingAttributes_ = matchingAttributes_; + } else { + result.matchingAttributes_ = matchingAttributesBuilder_.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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.hasMatchingAttributes()) { + mergeMatchingAttributes(other.getMatchingAttributes()); + } + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public boolean hasMatchingAttributes() { + return matchingAttributesBuilder_ != null || matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } else { + return matchingAttributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + matchingAttributes_ = value; + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public Builder setMatchingAttributes( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = builderForValue.build(); + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (matchingAttributes_ != null) { + matchingAttributes_ = + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); + } else { + matchingAttributes_ = value; + } + onChanged(); + } else { + matchingAttributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public Builder clearMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + onChanged(); + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { + + onChanged(); + return getMatchingAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + if (matchingAttributesBuilder_ != null) { + return matchingAttributesBuilder_.getMessageOrBuilder(); + } else { + return matchingAttributes_ == null ? + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> + getMatchingAttributesFieldBuilder() { + if (matchingAttributesBuilder_ == null) { + matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( + getMatchingAttributes(), + getParentForChildren(), + isClean()); + matchingAttributes_ = null; + } + return matchingAttributesBuilder_; + } + @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:flyteidl.admin.ProjectDomainAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributes) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributes(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes(); + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder(); + } + /** + *
+   * Sets custom attributes for a project-domain combination.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateRequest} + */ + public static final class ProjectDomainAttributesUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + ProjectDomainAttributesUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesUpdateRequest.newBuilder() to construct. + private ProjectDomainAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesUpdateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesUpdateRequest( + 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: { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + 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 (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) 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 (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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; + } + /** + *
+     * Sets custom attributes for a project-domain combination.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.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 (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @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:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesUpdateRequest(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateResponse} + */ + public static final class ProjectDomainAttributesUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + ProjectDomainAttributesUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesUpdateResponse.newBuilder() to construct. + private ProjectDomainAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesUpdateResponse( + 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; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse(this); + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesUpdateResponse(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + int getResourceTypeValue(); + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetRequest} + */ + public static final class ProjectDomainAttributesGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesGetRequest) + ProjectDomainAttributesGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesGetRequest.newBuilder() to construct. + private ProjectDomainAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesGetRequest() { + project_ = ""; + domain_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesGetRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; + private int resourceType_; + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(3, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, resourceType_); + } + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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 flyteidl.admin.ProjectDomainAttributesGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesGetRequest) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.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(); + project_ = ""; + + domain_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.resourceType_ = resourceType_; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + 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:flyteidl.admin.ProjectDomainAttributesGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetRequest) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesGetRequest(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesGetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesGetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes(); + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetResponse} + */ + public static final class ProjectDomainAttributesGetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesGetResponse) + ProjectDomainAttributesGetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesGetResponse.newBuilder() to construct. + private ProjectDomainAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesGetResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesGetResponse( + 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: { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + 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 (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) 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 (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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 flyteidl.admin.ProjectDomainAttributesGetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesGetResponse) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.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 (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @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:flyteidl.admin.ProjectDomainAttributesGetResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetResponse) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesGetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesGetResponse(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesDeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + int getResourceTypeValue(); + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteRequest} + */ + public static final class ProjectDomainAttributesDeleteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + ProjectDomainAttributesDeleteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesDeleteRequest.newBuilder() to construct. + private ProjectDomainAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesDeleteRequest() { + project_ = ""; + domain_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesDeleteRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; + private int resourceType_; + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(3, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, resourceType_); + } + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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 flyteidl.admin.ProjectDomainAttributesDeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.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(); + project_ = ""; + + domain_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.resourceType_ = resourceType_; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + 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:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesDeleteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesDeleteRequest(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesDeleteResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteResponse} + */ + public static final class ProjectDomainAttributesDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + ProjectDomainAttributesDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesDeleteResponse.newBuilder() to construct. + private ProjectDomainAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesDeleteResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesDeleteResponse( + 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; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse(this); + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesDeleteResponse(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_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.flyteidl/admin/project_domain_attribut" + + "es.proto\022\016flyteidl.admin\032\'flyteidl/admin" + + "/matchable_resource.proto\"{\n\027ProjectDoma" + + "inAttributes\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030" + + "\002 \001(\t\022?\n\023matching_attributes\030\003 \001(\0132\".fly" + + "teidl.admin.MatchingAttributes\"c\n$Projec" + + "tDomainAttributesUpdateRequest\022;\n\nattrib" + + "utes\030\001 \001(\0132\'.flyteidl.admin.ProjectDomai" + + "nAttributes\"\'\n%ProjectDomainAttributesUp" + + "dateResponse\"~\n!ProjectDomainAttributesG" + + "etRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + + "(\t\0228\n\rresource_type\030\003 \001(\0162!.flyteidl.adm" + + "in.MatchableResource\"a\n\"ProjectDomainAtt" + + "ributesGetResponse\022;\n\nattributes\030\001 \001(\0132\'" + + ".flyteidl.admin.ProjectDomainAttributes\"" + + "\201\001\n$ProjectDomainAttributesDeleteRequest" + + "\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\0228\n\rres" + + "ource_type\030\003 \001(\0162!.flyteidl.admin.Matcha" + + "bleResource\"\'\n%ProjectDomainAttributesDe" + + "leteResponseB3Z1github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor, + new java.lang.String[] { "Project", "Domain", "MatchingAttributes", }); + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "ResourceType", }); + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "ResourceType", }); + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor, + new java.lang.String[] { }); + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/ProjectOuterClass.java b/gen/pb-java/flyteidl/admin/ProjectOuterClass.java new file mode 100644 index 000000000..e0777663a --- /dev/null +++ b/gen/pb-java/flyteidl/admin/ProjectOuterClass.java @@ -0,0 +1,4299 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project.proto + +package flyteidl.admin; + +public final class ProjectOuterClass { + private ProjectOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DomainOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Domain) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1; + */ + java.lang.String getId(); + /** + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Namespace within a project commonly used to differentiate between different service instances.
+   * e.g. "production", "development", etc.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Domain} + */ + public static final class Domain extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Domain) + DomainOrBuilder { + private static final long serialVersionUID = 0L; + // Use Domain.newBuilder() to construct. + private Domain(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Domain() { + id_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Domain( + 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; + } + 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * string id = 1; + */ + 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; + } + } + /** + * string id = 1; + */ + 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_; + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectOuterClass.Domain)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.Domain other = (flyteidl.admin.ProjectOuterClass.Domain) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Domain 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 flyteidl.admin.ProjectOuterClass.Domain parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Domain 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 flyteidl.admin.ProjectOuterClass.Domain parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Domain 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(flyteidl.admin.ProjectOuterClass.Domain 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; + } + /** + *
+     * Namespace within a project commonly used to differentiate between different service instances.
+     * e.g. "production", "development", etc.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Domain} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Domain) + flyteidl.admin.ProjectOuterClass.DomainOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.Domain.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_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Domain getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Domain build() { + flyteidl.admin.ProjectOuterClass.Domain result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Domain buildPartial() { + flyteidl.admin.ProjectOuterClass.Domain result = new flyteidl.admin.ProjectOuterClass.Domain(this); + result.id_ = id_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.Domain) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.Domain)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Domain other) { + if (other == flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.Domain parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.Domain) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; + /** + * string id = 1; + */ + 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; + } + } + /** + * string id = 1; + */ + 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; + } + } + /** + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * string id = 1; + */ + 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_ = ""; + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Domain) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Domain) + private static final flyteidl.admin.ProjectOuterClass.Domain DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Domain(); + } + + public static flyteidl.admin.ProjectOuterClass.Domain getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Domain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Domain(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 flyteidl.admin.ProjectOuterClass.Domain getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Project) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1; + */ + java.lang.String getId(); + /** + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + java.util.List + getDomainsList(); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + flyteidl.admin.ProjectOuterClass.Domain getDomains(int index); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + int getDomainsCount(); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + java.util.List + getDomainsOrBuilderList(); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( + int index); + + /** + * string description = 4; + */ + java.lang.String getDescription(); + /** + * string description = 4; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + *
+   * Top-level namespace used to classify different entities like workflows and executions.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Project} + */ + public static final class Project extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Project) + ProjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use Project.newBuilder() to construct. + private Project(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Project() { + id_ = ""; + name_ = ""; + domains_ = java.util.Collections.emptyList(); + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Project( + 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: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + domains_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + domains_.add( + input.readMessage(flyteidl.admin.ProjectOuterClass.Domain.parser(), extensionRegistry)); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = 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_ & 0x00000004) != 0)) { + domains_ = java.util.Collections.unmodifiableList(domains_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * string id = 1; + */ + 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; + } + } + /** + * string id = 1; + */ + 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_; + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + 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 DOMAINS_FIELD_NUMBER = 3; + private java.util.List domains_; + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List getDomainsList() { + return domains_; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List + getDomainsOrBuilderList() { + return domains_; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public int getDomainsCount() { + return domains_.size(); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { + return domains_.get(index); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( + int index) { + return domains_.get(index); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + private volatile java.lang.Object description_; + /** + * string description = 4; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * string description = 4; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = 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 (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + for (int i = 0; i < domains_.size(); i++) { + output.writeMessage(3, domains_.get(i)); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + for (int i = 0; i < domains_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, domains_.get(i)); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + 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 flyteidl.admin.ProjectOuterClass.Project)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.Project other = (flyteidl.admin.ProjectOuterClass.Project) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDomainsList() + .equals(other.getDomainsList())) return false; + if (!getDescription() + .equals(other.getDescription())) 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(); + if (getDomainsCount() > 0) { + hash = (37 * hash) + DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getDomainsList().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Project 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 flyteidl.admin.ProjectOuterClass.Project parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Project 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 flyteidl.admin.ProjectOuterClass.Project parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Project 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(flyteidl.admin.ProjectOuterClass.Project 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; + } + /** + *
+     * Top-level namespace used to classify different entities like workflows and executions.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Project} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Project) + flyteidl.admin.ProjectOuterClass.ProjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.Project.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDomainsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + name_ = ""; + + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + domainsBuilder_.clear(); + } + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Project getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Project build() { + flyteidl.admin.ProjectOuterClass.Project result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Project buildPartial() { + flyteidl.admin.ProjectOuterClass.Project result = new flyteidl.admin.ProjectOuterClass.Project(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.id_ = id_; + result.name_ = name_; + if (domainsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + domains_ = java.util.Collections.unmodifiableList(domains_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.domains_ = domains_; + } else { + result.domains_ = domainsBuilder_.build(); + } + result.description_ = description_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.ProjectOuterClass.Project) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.Project)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Project other) { + if (other == flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (domainsBuilder_ == null) { + if (!other.domains_.isEmpty()) { + if (domains_.isEmpty()) { + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDomainsIsMutable(); + domains_.addAll(other.domains_); + } + onChanged(); + } + } else { + if (!other.domains_.isEmpty()) { + if (domainsBuilder_.isEmpty()) { + domainsBuilder_.dispose(); + domainsBuilder_ = null; + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x00000004); + domainsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDomainsFieldBuilder() : null; + } else { + domainsBuilder_.addAllMessages(other.domains_); + } + } + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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 { + flyteidl.admin.ProjectOuterClass.Project parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.Project) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1; + */ + 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; + } + } + /** + * string id = 1; + */ + 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; + } + } + /** + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * string id = 1; + */ + 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_ = ""; + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.util.List domains_ = + java.util.Collections.emptyList(); + private void ensureDomainsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + domains_ = new java.util.ArrayList(domains_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> domainsBuilder_; + + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List getDomainsList() { + if (domainsBuilder_ == null) { + return java.util.Collections.unmodifiableList(domains_); + } else { + return domainsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public int getDomainsCount() { + if (domainsBuilder_ == null) { + return domains_.size(); + } else { + return domainsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); + } else { + return domainsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder setDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.set(index, value); + onChanged(); + } else { + domainsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder setDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.set(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains(flyteidl.admin.ProjectOuterClass.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(value); + onChanged(); + } else { + domainsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(index, value); + onChanged(); + } else { + domainsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains( + flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addAllDomains( + java.lang.Iterable values) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, domains_); + onChanged(); + } else { + domainsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder clearDomains() { + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + domainsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder removeDomains(int index) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.remove(index); + onChanged(); + } else { + domainsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain.Builder getDomainsBuilder( + int index) { + return getDomainsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( + int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); } else { + return domainsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List + getDomainsOrBuilderList() { + if (domainsBuilder_ != null) { + return domainsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(domains_); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder() { + return getDomainsFieldBuilder().addBuilder( + flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder( + int index) { + return getDomainsFieldBuilder().addBuilder( + index, flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List + getDomainsBuilderList() { + return getDomainsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> + getDomainsFieldBuilder() { + if (domainsBuilder_ == null) { + domainsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder>( + domains_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + domains_ = null; + } + return domainsBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * string description = 4; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string description = 4; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string description = 4; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * string description = 4; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * string description = 4; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = 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:flyteidl.admin.Project) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Project) + private static final flyteidl.admin.ProjectOuterClass.Project DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Project(); + } + + public static flyteidl.admin.ProjectOuterClass.Project getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Project parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Project(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 flyteidl.admin.ProjectOuterClass.Project getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Projects) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + java.util.List + getProjectsList(); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + flyteidl.admin.ProjectOuterClass.Project getProjects(int index); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + int getProjectsCount(); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + java.util.List + getProjectsOrBuilderList(); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.admin.Projects} + */ + public static final class Projects extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Projects) + ProjectsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Projects.newBuilder() to construct. + private Projects(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Projects() { + projects_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Projects( + 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)) { + projects_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + projects_.add( + input.readMessage(flyteidl.admin.ProjectOuterClass.Project.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)) { + projects_ = java.util.Collections.unmodifiableList(projects_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); + } + + public static final int PROJECTS_FIELD_NUMBER = 1; + private java.util.List projects_; + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List getProjectsList() { + return projects_; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List + getProjectsOrBuilderList() { + return projects_; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public int getProjectsCount() { + return projects_.size(); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { + return projects_.get(index); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( + int index) { + return projects_.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 < projects_.size(); i++) { + output.writeMessage(1, projects_.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 < projects_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, projects_.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 flyteidl.admin.ProjectOuterClass.Projects)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.Projects other = (flyteidl.admin.ProjectOuterClass.Projects) obj; + + if (!getProjectsList() + .equals(other.getProjectsList())) 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 (getProjectsCount() > 0) { + hash = (37 * hash) + PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getProjectsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Projects 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 flyteidl.admin.ProjectOuterClass.Projects parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Projects 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 flyteidl.admin.ProjectOuterClass.Projects parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Projects 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(flyteidl.admin.ProjectOuterClass.Projects 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 flyteidl.admin.Projects} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Projects) + flyteidl.admin.ProjectOuterClass.ProjectsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.Projects.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getProjectsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (projectsBuilder_ == null) { + projects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + projectsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Projects getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Projects build() { + flyteidl.admin.ProjectOuterClass.Projects result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Projects buildPartial() { + flyteidl.admin.ProjectOuterClass.Projects result = new flyteidl.admin.ProjectOuterClass.Projects(this); + int from_bitField0_ = bitField0_; + if (projectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + projects_ = java.util.Collections.unmodifiableList(projects_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.projects_ = projects_; + } else { + result.projects_ = projectsBuilder_.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 flyteidl.admin.ProjectOuterClass.Projects) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.Projects)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Projects other) { + if (other == flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance()) return this; + if (projectsBuilder_ == null) { + if (!other.projects_.isEmpty()) { + if (projects_.isEmpty()) { + projects_ = other.projects_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProjectsIsMutable(); + projects_.addAll(other.projects_); + } + onChanged(); + } + } else { + if (!other.projects_.isEmpty()) { + if (projectsBuilder_.isEmpty()) { + projectsBuilder_.dispose(); + projectsBuilder_ = null; + projects_ = other.projects_; + bitField0_ = (bitField0_ & ~0x00000001); + projectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProjectsFieldBuilder() : null; + } else { + projectsBuilder_.addAllMessages(other.projects_); + } + } + } + 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 { + flyteidl.admin.ProjectOuterClass.Projects parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.Projects) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List projects_ = + java.util.Collections.emptyList(); + private void ensureProjectsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + projects_ = new java.util.ArrayList(projects_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectsBuilder_; + + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List getProjectsList() { + if (projectsBuilder_ == null) { + return java.util.Collections.unmodifiableList(projects_); + } else { + return projectsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public int getProjectsCount() { + if (projectsBuilder_ == null) { + return projects_.size(); + } else { + return projectsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { + if (projectsBuilder_ == null) { + return projects_.get(index); + } else { + return projectsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder setProjects( + int index, flyteidl.admin.ProjectOuterClass.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.set(index, value); + onChanged(); + } else { + projectsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder setProjects( + int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.set(index, builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects(flyteidl.admin.ProjectOuterClass.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.add(value); + onChanged(); + } else { + projectsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects( + int index, flyteidl.admin.ProjectOuterClass.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.add(index, value); + onChanged(); + } else { + projectsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects( + flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.add(builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects( + int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.add(index, builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addAllProjects( + java.lang.Iterable values) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projects_); + onChanged(); + } else { + projectsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder clearProjects() { + if (projectsBuilder_ == null) { + projects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + projectsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder removeProjects(int index) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.remove(index); + onChanged(); + } else { + projectsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectsBuilder( + int index) { + return getProjectsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( + int index) { + if (projectsBuilder_ == null) { + return projects_.get(index); } else { + return projectsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List + getProjectsOrBuilderList() { + if (projectsBuilder_ != null) { + return projectsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(projects_); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder() { + return getProjectsFieldBuilder().addBuilder( + flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder( + int index) { + return getProjectsFieldBuilder().addBuilder( + index, flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List + getProjectsBuilderList() { + return getProjectsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> + getProjectsFieldBuilder() { + if (projectsBuilder_ == null) { + projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( + projects_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + projects_ = null; + } + return projectsBuilder_; + } + @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:flyteidl.admin.Projects) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Projects) + private static final flyteidl.admin.ProjectOuterClass.Projects DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Projects(); + } + + public static flyteidl.admin.ProjectOuterClass.Projects getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Projects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Projects(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 flyteidl.admin.ProjectOuterClass.Projects getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectListRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.admin.ProjectListRequest} + */ + public static final class ProjectListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectListRequest) + ProjectListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectListRequest.newBuilder() to construct. + private ProjectListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectListRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectListRequest( + 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; + 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.ProjectListRequest other = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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(flyteidl.admin.ProjectOuterClass.ProjectListRequest 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 flyteidl.admin.ProjectListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectListRequest) + flyteidl.admin.ProjectOuterClass.ProjectListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.ProjectListRequest.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectListRequest build() { + flyteidl.admin.ProjectOuterClass.ProjectListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectListRequest buildPartial() { + flyteidl.admin.ProjectOuterClass.ProjectListRequest result = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(this); + 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectListRequest other) { + if (other == flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance()) return this; + 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 { + flyteidl.admin.ProjectOuterClass.ProjectListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.ProjectListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectListRequest) + private static final flyteidl.admin.ProjectOuterClass.ProjectListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(); + } + + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectListRequest(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 flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectRegisterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.Project project = 1; + */ + boolean hasProject(); + /** + * .flyteidl.admin.Project project = 1; + */ + flyteidl.admin.ProjectOuterClass.Project getProject(); + /** + * .flyteidl.admin.Project project = 1; + */ + flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.ProjectRegisterRequest} + */ + public static final class ProjectRegisterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterRequest) + ProjectRegisterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectRegisterRequest.newBuilder() to construct. + private ProjectRegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectRegisterRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectRegisterRequest( + 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: { + flyteidl.admin.ProjectOuterClass.Project.Builder subBuilder = null; + if (project_ != null) { + subBuilder = project_.toBuilder(); + } + project_ = input.readMessage(flyteidl.admin.ProjectOuterClass.Project.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(project_); + project_ = 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private flyteidl.admin.ProjectOuterClass.Project project_; + /** + * .flyteidl.admin.Project project = 1; + */ + public boolean hasProject() { + return project_ != null; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProject() { + return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { + return getProject(); + } + + 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 (project_ != null) { + output.writeMessage(1, getProject()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (project_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProject()); + } + 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) obj; + + if (hasProject() != other.hasProject()) return false; + if (hasProject()) { + if (!getProject() + .equals(other.getProject())) 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 (hasProject()) { + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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(flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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 flyteidl.admin.ProjectRegisterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterRequest) + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.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 (projectBuilder_ == null) { + project_ = null; + } else { + project_ = null; + projectBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest build() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest buildPartial() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(this); + if (projectBuilder_ == null) { + result.project_ = project_; + } else { + result.project_ = projectBuilder_.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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other) { + if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance()) return this; + if (other.hasProject()) { + mergeProject(other.getProject()); + } + 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 { + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.ProjectOuterClass.Project project_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectBuilder_; + /** + * .flyteidl.admin.Project project = 1; + */ + public boolean hasProject() { + return projectBuilder_ != null || project_ != null; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProject() { + if (projectBuilder_ == null) { + return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; + } else { + return projectBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.Project project = 1; + */ + public Builder setProject(flyteidl.admin.ProjectOuterClass.Project value) { + if (projectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + onChanged(); + } else { + projectBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public Builder setProject( + flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectBuilder_ == null) { + project_ = builderForValue.build(); + onChanged(); + } else { + projectBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public Builder mergeProject(flyteidl.admin.ProjectOuterClass.Project value) { + if (projectBuilder_ == null) { + if (project_ != null) { + project_ = + flyteidl.admin.ProjectOuterClass.Project.newBuilder(project_).mergeFrom(value).buildPartial(); + } else { + project_ = value; + } + onChanged(); + } else { + projectBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public Builder clearProject() { + if (projectBuilder_ == null) { + project_ = null; + onChanged(); + } else { + project_ = null; + projectBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectBuilder() { + + onChanged(); + return getProjectFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { + if (projectBuilder_ != null) { + return projectBuilder_.getMessageOrBuilder(); + } else { + return project_ == null ? + flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; + } + } + /** + * .flyteidl.admin.Project project = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> + getProjectFieldBuilder() { + if (projectBuilder_ == null) { + projectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( + getProject(), + getParentForChildren(), + isClean()); + project_ = null; + } + return projectBuilder_; + } + @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:flyteidl.admin.ProjectRegisterRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterRequest) + private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(); + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectRegisterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectRegisterRequest(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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectRegisterResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.admin.ProjectRegisterResponse} + */ + public static final class ProjectRegisterResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterResponse) + ProjectRegisterResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectRegisterResponse.newBuilder() to construct. + private ProjectRegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectRegisterResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectRegisterResponse( + 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; + 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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(flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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 flyteidl.admin.ProjectRegisterResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterResponse) + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse build() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse buildPartial() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(this); + 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other) { + if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.ProjectRegisterResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterResponse) + private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(); + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectRegisterResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectRegisterResponse(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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Domain_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Domain_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Project_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Project_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Projects_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Projects_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectRegisterResponse_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\034flyteidl/admin/project.proto\022\016flyteidl" + + ".admin\"\"\n\006Domain\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001" + + "(\t\"a\n\007Project\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022" + + "\'\n\007domains\030\003 \003(\0132\026.flyteidl.admin.Domain" + + "\022\023\n\013description\030\004 \001(\t\"5\n\010Projects\022)\n\010pro" + + "jects\030\001 \003(\0132\027.flyteidl.admin.Project\"\024\n\022" + + "ProjectListRequest\"B\n\026ProjectRegisterReq" + + "uest\022(\n\007project\030\001 \001(\0132\027.flyteidl.admin.P" + + "roject\"\031\n\027ProjectRegisterResponseB3Z1git" + + "hub.com/lyft/flyteidl/gen/pb-go/flyteidl" + + "/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_admin_Domain_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_Domain_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Domain_descriptor, + new java.lang.String[] { "Id", "Name", }); + internal_static_flyteidl_admin_Project_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_Project_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Project_descriptor, + new java.lang.String[] { "Id", "Name", "Domains", "Description", }); + internal_static_flyteidl_admin_Projects_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_Projects_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Projects_descriptor, + new java.lang.String[] { "Projects", }); + internal_static_flyteidl_admin_ProjectListRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectListRequest_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor, + new java.lang.String[] { "Project", }); + internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java b/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java new file mode 100644 index 000000000..a43038512 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java @@ -0,0 +1,1848 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/schedule.proto + +package flyteidl.admin; + +public final class ScheduleOuterClass { + private ScheduleOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Represents a frequency at which to run a schedule.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.FixedRateUnit} + */ + public enum FixedRateUnit + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MINUTE = 0; + */ + MINUTE(0), + /** + * HOUR = 1; + */ + HOUR(1), + /** + * DAY = 2; + */ + DAY(2), + UNRECOGNIZED(-1), + ; + + /** + * MINUTE = 0; + */ + public static final int MINUTE_VALUE = 0; + /** + * HOUR = 1; + */ + public static final int HOUR_VALUE = 1; + /** + * DAY = 2; + */ + public static final int DAY_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FixedRateUnit valueOf(int value) { + return forNumber(value); + } + + public static FixedRateUnit forNumber(int value) { + switch (value) { + case 0: return MINUTE; + case 1: return HOUR; + case 2: return DAY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FixedRateUnit> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FixedRateUnit findValueByNumber(int number) { + return FixedRateUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.admin.ScheduleOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final FixedRateUnit[] VALUES = values(); + + public static FixedRateUnit 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 FixedRateUnit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.FixedRateUnit) + } + + public interface FixedRateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.FixedRate) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 value = 1; + */ + int getValue(); + + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + int getUnitValue(); + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit(); + } + /** + *
+   * Option for schedules run at a certain frequency, e.g. every 2 minutes.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.FixedRate} + */ + public static final class FixedRate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.FixedRate) + FixedRateOrBuilder { + private static final long serialVersionUID = 0L; + // Use FixedRate.newBuilder() to construct. + private FixedRate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FixedRate() { + unit_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FixedRate( + 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 8: { + + value_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + unit_ = rawValue; + 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 flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private int value_; + /** + * uint32 value = 1; + */ + public int getValue() { + return value_; + } + + public static final int UNIT_FIELD_NUMBER = 2; + private int unit_; + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { + @SuppressWarnings("deprecation") + flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); + return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; + } + + 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 (value_ != 0) { + output.writeUInt32(1, value_); + } + if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { + output.writeEnum(2, unit_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (value_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, value_); + } + if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, unit_); + } + 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 flyteidl.admin.ScheduleOuterClass.FixedRate)) { + return super.equals(obj); + } + flyteidl.admin.ScheduleOuterClass.FixedRate other = (flyteidl.admin.ScheduleOuterClass.FixedRate) obj; + + if (getValue() + != other.getValue()) return false; + if (unit_ != other.unit_) 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue(); + hash = (37 * hash) + UNIT_FIELD_NUMBER; + hash = (53 * hash) + unit_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate 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 flyteidl.admin.ScheduleOuterClass.FixedRate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate 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 flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate 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(flyteidl.admin.ScheduleOuterClass.FixedRate 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; + } + /** + *
+     * Option for schedules run at a certain frequency, e.g. every 2 minutes.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.FixedRate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.FixedRate) + flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); + } + + // Construct using flyteidl.admin.ScheduleOuterClass.FixedRate.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(); + value_ = 0; + + unit_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.FixedRate build() { + flyteidl.admin.ScheduleOuterClass.FixedRate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.FixedRate buildPartial() { + flyteidl.admin.ScheduleOuterClass.FixedRate result = new flyteidl.admin.ScheduleOuterClass.FixedRate(this); + result.value_ = value_; + result.unit_ = unit_; + 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 flyteidl.admin.ScheduleOuterClass.FixedRate) { + return mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.FixedRate other) { + if (other == flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) return this; + if (other.getValue() != 0) { + setValue(other.getValue()); + } + if (other.unit_ != 0) { + setUnitValue(other.getUnitValue()); + } + 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 { + flyteidl.admin.ScheduleOuterClass.FixedRate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ScheduleOuterClass.FixedRate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int value_ ; + /** + * uint32 value = 1; + */ + public int getValue() { + return value_; + } + /** + * uint32 value = 1; + */ + public Builder setValue(int value) { + + value_ = value; + onChanged(); + return this; + } + /** + * uint32 value = 1; + */ + public Builder clearValue() { + + value_ = 0; + onChanged(); + return this; + } + + private int unit_ = 0; + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public Builder setUnitValue(int value) { + unit_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { + @SuppressWarnings("deprecation") + flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); + return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public Builder setUnit(flyteidl.admin.ScheduleOuterClass.FixedRateUnit value) { + if (value == null) { + throw new NullPointerException(); + } + + unit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public Builder clearUnit() { + + unit_ = 0; + 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:flyteidl.admin.FixedRate) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.FixedRate) + private static final flyteidl.admin.ScheduleOuterClass.FixedRate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.FixedRate(); + } + + public static flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FixedRate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FixedRate(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 flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ScheduleOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Schedule) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+     * 
+ * + * string cron_expression = 1; + */ + java.lang.String getCronExpression(); + /** + *
+     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+     * 
+ * + * string cron_expression = 1; + */ + com.google.protobuf.ByteString + getCronExpressionBytes(); + + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + boolean hasRate(); + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + flyteidl.admin.ScheduleOuterClass.FixedRate getRate(); + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder(); + + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + java.lang.String getKickoffTimeInputArg(); + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + com.google.protobuf.ByteString + getKickoffTimeInputArgBytes(); + + public flyteidl.admin.ScheduleOuterClass.Schedule.ScheduleExpressionCase getScheduleExpressionCase(); + } + /** + *
+   * Defines complete set of information required to trigger an execution on a schedule.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Schedule} + */ + public static final class Schedule extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Schedule) + ScheduleOrBuilder { + private static final long serialVersionUID = 0L; + // Use Schedule.newBuilder() to construct. + private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Schedule() { + kickoffTimeInputArg_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Schedule( + 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(); + scheduleExpressionCase_ = 1; + scheduleExpression_ = s; + break; + } + case 18: { + flyteidl.admin.ScheduleOuterClass.FixedRate.Builder subBuilder = null; + if (scheduleExpressionCase_ == 2) { + subBuilder = ((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_).toBuilder(); + } + scheduleExpression_ = + input.readMessage(flyteidl.admin.ScheduleOuterClass.FixedRate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); + scheduleExpression_ = subBuilder.buildPartial(); + } + scheduleExpressionCase_ = 2; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + kickoffTimeInputArg_ = 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 flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); + } + + private int scheduleExpressionCase_ = 0; + private java.lang.Object scheduleExpression_; + public enum ScheduleExpressionCase + implements com.google.protobuf.Internal.EnumLite { + CRON_EXPRESSION(1), + RATE(2), + SCHEDULEEXPRESSION_NOT_SET(0); + private final int value; + private ScheduleExpressionCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScheduleExpressionCase valueOf(int value) { + return forNumber(value); + } + + public static ScheduleExpressionCase forNumber(int value) { + switch (value) { + case 1: return CRON_EXPRESSION; + case 2: return RATE; + case 0: return SCHEDULEEXPRESSION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ScheduleExpressionCase + getScheduleExpressionCase() { + return ScheduleExpressionCase.forNumber( + scheduleExpressionCase_); + } + + public static final int CRON_EXPRESSION_FIELD_NUMBER = 1; + /** + *
+     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+     * 
+ * + * string cron_expression = 1; + */ + public java.lang.String getCronExpression() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + 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(); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = s; + } + return s; + } + } + /** + *
+     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+     * 
+ * + * string cron_expression = 1; + */ + public com.google.protobuf.ByteString + getCronExpressionBytes() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RATE_FIELD_NUMBER = 2; + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public boolean hasRate() { + return scheduleExpressionCase_ == 2; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + + public static final int KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER = 3; + private volatile java.lang.Object kickoffTimeInputArg_; + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + public java.lang.String getKickoffTimeInputArg() { + java.lang.Object ref = kickoffTimeInputArg_; + 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(); + kickoffTimeInputArg_ = s; + return s; + } + } + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + public com.google.protobuf.ByteString + getKickoffTimeInputArgBytes() { + java.lang.Object ref = kickoffTimeInputArg_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kickoffTimeInputArg_ = 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 (scheduleExpressionCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scheduleExpression_); + } + if (scheduleExpressionCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); + } + if (!getKickoffTimeInputArgBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kickoffTimeInputArg_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scheduleExpressionCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scheduleExpression_); + } + if (scheduleExpressionCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); + } + if (!getKickoffTimeInputArgBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kickoffTimeInputArg_); + } + 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 flyteidl.admin.ScheduleOuterClass.Schedule)) { + return super.equals(obj); + } + flyteidl.admin.ScheduleOuterClass.Schedule other = (flyteidl.admin.ScheduleOuterClass.Schedule) obj; + + if (!getKickoffTimeInputArg() + .equals(other.getKickoffTimeInputArg())) return false; + if (!getScheduleExpressionCase().equals(other.getScheduleExpressionCase())) return false; + switch (scheduleExpressionCase_) { + case 1: + if (!getCronExpression() + .equals(other.getCronExpression())) return false; + break; + case 2: + if (!getRate() + .equals(other.getRate())) 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) + KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER; + hash = (53 * hash) + getKickoffTimeInputArg().hashCode(); + switch (scheduleExpressionCase_) { + case 1: + hash = (37 * hash) + CRON_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getCronExpression().hashCode(); + break; + case 2: + hash = (37 * hash) + RATE_FIELD_NUMBER; + hash = (53 * hash) + getRate().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule 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 flyteidl.admin.ScheduleOuterClass.Schedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule 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 flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule 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(flyteidl.admin.ScheduleOuterClass.Schedule 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; + } + /** + *
+     * Defines complete set of information required to trigger an execution on a schedule.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Schedule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Schedule) + flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); + } + + // Construct using flyteidl.admin.ScheduleOuterClass.Schedule.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(); + kickoffTimeInputArg_ = ""; + + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstanceForType() { + return flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.Schedule build() { + flyteidl.admin.ScheduleOuterClass.Schedule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.Schedule buildPartial() { + flyteidl.admin.ScheduleOuterClass.Schedule result = new flyteidl.admin.ScheduleOuterClass.Schedule(this); + if (scheduleExpressionCase_ == 1) { + result.scheduleExpression_ = scheduleExpression_; + } + if (scheduleExpressionCase_ == 2) { + if (rateBuilder_ == null) { + result.scheduleExpression_ = scheduleExpression_; + } else { + result.scheduleExpression_ = rateBuilder_.build(); + } + } + result.kickoffTimeInputArg_ = kickoffTimeInputArg_; + result.scheduleExpressionCase_ = scheduleExpressionCase_; + 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 flyteidl.admin.ScheduleOuterClass.Schedule) { + return mergeFrom((flyteidl.admin.ScheduleOuterClass.Schedule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.Schedule other) { + if (other == flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance()) return this; + if (!other.getKickoffTimeInputArg().isEmpty()) { + kickoffTimeInputArg_ = other.kickoffTimeInputArg_; + onChanged(); + } + switch (other.getScheduleExpressionCase()) { + case CRON_EXPRESSION: { + scheduleExpressionCase_ = 1; + scheduleExpression_ = other.scheduleExpression_; + onChanged(); + break; + } + case RATE: { + mergeRate(other.getRate()); + break; + } + case SCHEDULEEXPRESSION_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 { + flyteidl.admin.ScheduleOuterClass.Schedule parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ScheduleOuterClass.Schedule) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int scheduleExpressionCase_ = 0; + private java.lang.Object scheduleExpression_; + public ScheduleExpressionCase + getScheduleExpressionCase() { + return ScheduleExpressionCase.forNumber( + scheduleExpressionCase_); + } + + public Builder clearScheduleExpression() { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + onChanged(); + return this; + } + + + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public java.lang.String getCronExpression() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public com.google.protobuf.ByteString + getCronExpressionBytes() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public Builder setCronExpression( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scheduleExpressionCase_ = 1; + scheduleExpression_ = value; + onChanged(); + return this; + } + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public Builder clearCronExpression() { + if (scheduleExpressionCase_ == 1) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public Builder setCronExpressionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scheduleExpressionCase_ = 1; + scheduleExpression_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> rateBuilder_; + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public boolean hasRate() { + return scheduleExpressionCase_ == 2; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { + if (rateBuilder_ == null) { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } else { + if (scheduleExpressionCase_ == 2) { + return rateBuilder_.getMessage(); + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder setRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { + if (rateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduleExpression_ = value; + onChanged(); + } else { + rateBuilder_.setMessage(value); + } + scheduleExpressionCase_ = 2; + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder setRate( + flyteidl.admin.ScheduleOuterClass.FixedRate.Builder builderForValue) { + if (rateBuilder_ == null) { + scheduleExpression_ = builderForValue.build(); + onChanged(); + } else { + rateBuilder_.setMessage(builderForValue.build()); + } + scheduleExpressionCase_ = 2; + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder mergeRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { + if (rateBuilder_ == null) { + if (scheduleExpressionCase_ == 2 && + scheduleExpression_ != flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) { + scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.newBuilder((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_) + .mergeFrom(value).buildPartial(); + } else { + scheduleExpression_ = value; + } + onChanged(); + } else { + if (scheduleExpressionCase_ == 2) { + rateBuilder_.mergeFrom(value); + } + rateBuilder_.setMessage(value); + } + scheduleExpressionCase_ = 2; + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder clearRate() { + if (rateBuilder_ == null) { + if (scheduleExpressionCase_ == 2) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + onChanged(); + } + } else { + if (scheduleExpressionCase_ == 2) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + } + rateBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRate.Builder getRateBuilder() { + return getRateFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { + if ((scheduleExpressionCase_ == 2) && (rateBuilder_ != null)) { + return rateBuilder_.getMessageOrBuilder(); + } else { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> + getRateFieldBuilder() { + if (rateBuilder_ == null) { + if (!(scheduleExpressionCase_ == 2)) { + scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + rateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder>( + (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_, + getParentForChildren(), + isClean()); + scheduleExpression_ = null; + } + scheduleExpressionCase_ = 2; + onChanged();; + return rateBuilder_; + } + + private java.lang.Object kickoffTimeInputArg_ = ""; + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public java.lang.String getKickoffTimeInputArg() { + java.lang.Object ref = kickoffTimeInputArg_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kickoffTimeInputArg_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public com.google.protobuf.ByteString + getKickoffTimeInputArgBytes() { + java.lang.Object ref = kickoffTimeInputArg_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kickoffTimeInputArg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public Builder setKickoffTimeInputArg( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kickoffTimeInputArg_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public Builder clearKickoffTimeInputArg() { + + kickoffTimeInputArg_ = getDefaultInstance().getKickoffTimeInputArg(); + onChanged(); + return this; + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public Builder setKickoffTimeInputArgBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kickoffTimeInputArg_ = 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:flyteidl.admin.Schedule) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Schedule) + private static final flyteidl.admin.ScheduleOuterClass.Schedule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.Schedule(); + } + + public static flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(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 flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_FixedRate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_FixedRate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Schedule_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Schedule_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\035flyteidl/admin/schedule.proto\022\016flyteid" + + "l.admin\"G\n\tFixedRate\022\r\n\005value\030\001 \001(\r\022+\n\004u" + + "nit\030\002 \001(\0162\035.flyteidl.admin.FixedRateUnit" + + "\"\206\001\n\010Schedule\022\031\n\017cron_expression\030\001 \001(\tH\000" + + "\022)\n\004rate\030\002 \001(\0132\031.flyteidl.admin.FixedRat" + + "eH\000\022\036\n\026kickoff_time_input_arg\030\003 \001(\tB\024\n\022S" + + "cheduleExpression*.\n\rFixedRateUnit\022\n\n\006MI" + + "NUTE\020\000\022\010\n\004HOUR\020\001\022\007\n\003DAY\020\002B3Z1github.com/" + + "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + + "proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_admin_FixedRate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_FixedRate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_FixedRate_descriptor, + new java.lang.String[] { "Value", "Unit", }); + internal_static_flyteidl_admin_Schedule_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_Schedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Schedule_descriptor, + new java.lang.String[] { "CronExpression", "Rate", "KickoffTimeInputArg", "ScheduleExpression", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java b/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java new file mode 100644 index 000000000..1b76dda2a --- /dev/null +++ b/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java @@ -0,0 +1,8862 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task_execution.proto + +package flyteidl.admin; + +public final class TaskExecutionOuterClass { + private TaskExecutionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface TaskExecutionGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A message used to fetch a single task execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} + */ + public static final class TaskExecutionGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetRequest) + TaskExecutionGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionGetRequest.newBuilder() to construct. + private TaskExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionGetRequest( + 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: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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 message used to fetch a single task execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetRequest) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.TaskExecutionGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetRequest) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionGetRequest(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + boolean hasNodeExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of task execution entities.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} + */ + public static final class TaskExecutionListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionListRequest) + TaskExecutionListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionListRequest.newBuilder() to construct. + private TaskExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionListRequest() { + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionListRequest( + 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: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (nodeExecutionId_ != null) { + subBuilder = nodeExecutionId_.toBuilder(); + } + nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeExecutionId_); + nodeExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); + } + + public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionId_ != null; + } + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + return getNodeExecutionId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + 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 (nodeExecutionId_ != null) { + output.writeMessage(1, getNodeExecutionId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNodeExecutionId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) obj; + + if (hasNodeExecutionId() != other.hasNodeExecutionId()) return false; + if (hasNodeExecutionId()) { + if (!getNodeExecutionId() + .equals(other.getNodeExecutionId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) 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 (hasNodeExecutionId()) { + hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeExecutionId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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; + } + /** + *
+     * Represents a request structure to retrieve a list of task execution entities.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionListRequest) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.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 (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(this); + if (nodeExecutionIdBuilder_ == null) { + result.nodeExecutionId_ = nodeExecutionId_; + } else { + result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance()) return this; + if (other.hasNodeExecutionId()) { + mergeNodeExecutionId(other.getNodeExecutionId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + 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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } else { + return nodeExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeExecutionId_ = value; + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder setNodeExecutionId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = builderForValue.build(); + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (nodeExecutionId_ != null) { + nodeExecutionId_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); + } else { + nodeExecutionId_ = value; + } + onChanged(); + } else { + nodeExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder clearNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + onChanged(); + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { + + onChanged(); + return getNodeExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + if (nodeExecutionIdBuilder_ != null) { + return nodeExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return nodeExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getNodeExecutionIdFieldBuilder() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getNodeExecutionId(), + getParentForChildren(), + isClean()); + nodeExecutionId_ = null; + } + return nodeExecutionIdBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @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:flyteidl.admin.TaskExecutionListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionListRequest) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionListRequest(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecution) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + java.lang.String getInputUri(); + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + boolean hasClosure(); + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure(); + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder(); + + /** + *
+     * Whether this task spawned nodes.
+     * 
+ * + * bool is_parent = 4; + */ + boolean getIsParent(); + } + /** + *
+   * Encapsulates all details for a single task execution entity.
+   * A task execution represents an instantiated task, including all inputs and additional
+   * metadata as well as computed results included state, outputs, and duration-based attributes.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecution} + */ + public static final class TaskExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecution) + TaskExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecution.newBuilder() to construct. + private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecution() { + inputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecution( + 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: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 26: { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + isParent_ = input.readBool(); + 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object inputUri_; + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + 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(); + inputUri_ = s; + return s; + } + } + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_; + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { + return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; + } + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + public static final int IS_PARENT_FIELD_NUMBER = 4; + private boolean isParent_; + /** + *
+     * Whether this task spawned nodes.
+     * 
+ * + * bool is_parent = 4; + */ + public boolean getIsParent() { + return isParent_; + } + + 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 (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + if (isParent_ != false) { + output.writeBool(4, isParent_); + } + 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 (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + if (isParent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, isParent_); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecution other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getInputUri() + .equals(other.getInputUri())) return false; + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) return false; + } + if (getIsParent() + != other.getIsParent()) 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) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (37 * hash) + IS_PARENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsParent()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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; + } + /** + *
+     * Encapsulates all details for a single task execution entity.
+     * A task execution represents an instantiated task, including all inputs and additional
+     * metadata as well as computed results included state, outputs, and duration-based attributes.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecution) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecution.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + inputUri_ = ""; + + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + isParent_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + result.isParent_ = isParent_; + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecution other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + if (other.getIsParent() != false) { + setIsParent(other.getIsParent()); + } + 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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> closureBuilder_; + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + + private boolean isParent_ ; + /** + *
+       * Whether this task spawned nodes.
+       * 
+ * + * bool is_parent = 4; + */ + public boolean getIsParent() { + return isParent_; + } + /** + *
+       * Whether this task spawned nodes.
+       * 
+ * + * bool is_parent = 4; + */ + public Builder setIsParent(boolean value) { + + isParent_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether this task spawned nodes.
+       * 
+ * + * bool is_parent = 4; + */ + public Builder clearIsParent() { + + isParent_ = false; + 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:flyteidl.admin.TaskExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecution) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecution(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + java.util.List + getTaskExecutionsList(); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + int getTaskExecutionsCount(); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + java.util.List + getTaskExecutionsOrBuilderList(); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Response structure for a query to list of task execution entities.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionList} + */ + public static final class TaskExecutionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionList) + TaskExecutionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionList.newBuilder() to construct. + private TaskExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionList() { + taskExecutions_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionList( + 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)) { + taskExecutions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + taskExecutions_.add( + input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecution.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); + } + + private int bitField0_; + public static final int TASK_EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List taskExecutions_; + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List getTaskExecutionsList() { + return taskExecutions_; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List + getTaskExecutionsOrBuilderList() { + return taskExecutions_; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public int getTaskExecutionsCount() { + return taskExecutions_.size(); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { + return taskExecutions_.get(index); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( + int index) { + return taskExecutions_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < taskExecutions_.size(); i++) { + output.writeMessage(1, taskExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < taskExecutions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, taskExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) obj; + + if (!getTaskExecutionsList() + .equals(other.getTaskExecutionsList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getTaskExecutionsCount() > 0) { + hash = (37 * hash) + TASK_EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getTaskExecutionsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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; + } + /** + *
+     * Response structure for a query to list of task execution entities.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionList) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTaskExecutionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (taskExecutionsBuilder_ == null) { + taskExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + taskExecutionsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (taskExecutionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.taskExecutions_ = taskExecutions_; + } else { + result.taskExecutions_ = taskExecutionsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance()) return this; + if (taskExecutionsBuilder_ == null) { + if (!other.taskExecutions_.isEmpty()) { + if (taskExecutions_.isEmpty()) { + taskExecutions_ = other.taskExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTaskExecutionsIsMutable(); + taskExecutions_.addAll(other.taskExecutions_); + } + onChanged(); + } + } else { + if (!other.taskExecutions_.isEmpty()) { + if (taskExecutionsBuilder_.isEmpty()) { + taskExecutionsBuilder_.dispose(); + taskExecutionsBuilder_ = null; + taskExecutions_ = other.taskExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + taskExecutionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTaskExecutionsFieldBuilder() : null; + } else { + taskExecutionsBuilder_.addAllMessages(other.taskExecutions_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List taskExecutions_ = + java.util.Collections.emptyList(); + private void ensureTaskExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + taskExecutions_ = new java.util.ArrayList(taskExecutions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> taskExecutionsBuilder_; + + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List getTaskExecutionsList() { + if (taskExecutionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taskExecutions_); + } else { + return taskExecutionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public int getTaskExecutionsCount() { + if (taskExecutionsBuilder_ == null) { + return taskExecutions_.size(); + } else { + return taskExecutionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { + if (taskExecutionsBuilder_ == null) { + return taskExecutions_.get(index); + } else { + return taskExecutionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder setTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { + if (taskExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskExecutionsIsMutable(); + taskExecutions_.set(index, value); + onChanged(); + } else { + taskExecutionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder setTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.set(index, builderForValue.build()); + onChanged(); + } else { + taskExecutionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions(flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { + if (taskExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(value); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { + if (taskExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(index, value); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(builderForValue.build()); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(index, builderForValue.build()); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addAllTaskExecutions( + java.lang.Iterable values) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, taskExecutions_); + onChanged(); + } else { + taskExecutionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder clearTaskExecutions() { + if (taskExecutionsBuilder_ == null) { + taskExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + taskExecutionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder removeTaskExecutions(int index) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.remove(index); + onChanged(); + } else { + taskExecutionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder getTaskExecutionsBuilder( + int index) { + return getTaskExecutionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( + int index) { + if (taskExecutionsBuilder_ == null) { + return taskExecutions_.get(index); } else { + return taskExecutionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List + getTaskExecutionsOrBuilderList() { + if (taskExecutionsBuilder_ != null) { + return taskExecutionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(taskExecutions_); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder() { + return getTaskExecutionsFieldBuilder().addBuilder( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder( + int index) { + return getTaskExecutionsFieldBuilder().addBuilder( + index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List + getTaskExecutionsBuilderList() { + return getTaskExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> + getTaskExecutionsFieldBuilder() { + if (taskExecutionsBuilder_ == null) { + taskExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder>( + taskExecutions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + taskExecutions_ = null; + } + return taskExecutionsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.TaskExecutionList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionList) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionList(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * 
+ * + * string output_uri = 1; + */ + java.lang.String getOutputUri(); + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * 
+ * + * string output_uri = 1; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + boolean hasError(); + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + flyteidl.core.Execution.TaskExecution.Phase getPhase(); + + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + java.util.List + getLogsList(); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + flyteidl.core.Execution.TaskLog getLogs(int index); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + int getLogsCount(); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + java.util.List + getLogsOrBuilderList(); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index); + + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + boolean hasStartedAt(); + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.Timestamp getStartedAt(); + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); + + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + boolean hasDuration(); + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.Duration getDuration(); + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + boolean hasUpdatedAt(); + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + boolean hasCustomInfo(); + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + com.google.protobuf.Struct getCustomInfo(); + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.OutputResultCase getOutputResultCase(); + } + /** + *
+   * Container for task execution details and results.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} + */ + public static final class TaskExecutionClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionClosure) + TaskExecutionClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionClosure.newBuilder() to construct. + private TaskExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionClosure() { + phase_ = 0; + logs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionClosure( + 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(); + outputResultCase_ = 1; + outputResult_ = s; + break; + } + case 18: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 2; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + logs_.add( + input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startedAt_ != null) { + subBuilder = startedAt_.toBuilder(); + } + startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startedAt_); + startedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + 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 66: { + 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; + } + case 74: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (customInfo_ != null) { + subBuilder = customInfo_.toBuilder(); + } + customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customInfo_); + customInfo_ = 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_ & 0x00000008) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); + } + + private int bitField0_; + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(1), + ERROR(2), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 1: return OUTPUT_URI; + case 2: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 1; + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * 
+ * + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * 
+ * + * string output_uri = 1; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + + public static final int LOGS_FIELD_NUMBER = 4; + private java.util.List logs_; + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List getLogsList() { + return logs_; + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public int getLogsCount() { + return logs_.size(); + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + return logs_.get(index); + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); + } + + public static final int STARTED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp startedAt_; + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAt_ != null; + } + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + return getStartedAt(); + } + + public static final int DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration duration_; + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + public static final int CUSTOM_INFO_FIELD_NUMBER = 9; + private com.google.protobuf.Struct customInfo_; + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public boolean hasCustomInfo() { + return customInfo_ != null; + } + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.Struct getCustomInfo() { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + return getCustomInfo(); + } + + 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 (outputResultCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); + } + if (outputResultCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(4, logs_.get(i)); + } + if (startedAt_ != null) { + output.writeMessage(5, getStartedAt()); + } + if (duration_ != null) { + output.writeMessage(6, getDuration()); + } + if (createdAt_ != null) { + output.writeMessage(7, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(8, getUpdatedAt()); + } + if (customInfo_ != null) { + output.writeMessage(9, getCustomInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputResultCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); + } + if (outputResultCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, logs_.get(i)); + } + if (startedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartedAt()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDuration()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdatedAt()); + } + if (customInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getCustomInfo()); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) obj; + + if (phase_ != other.phase_) return false; + if (!getLogsList() + .equals(other.getLogsList())) return false; + if (hasStartedAt() != other.hasStartedAt()) return false; + if (hasStartedAt()) { + if (!getStartedAt() + .equals(other.getStartedAt())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) 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 (hasCustomInfo() != other.hasCustomInfo()) return false; + if (hasCustomInfo()) { + if (!getCustomInfo() + .equals(other.getCustomInfo())) return false; + } + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 1: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 2: + if (!getError() + .equals(other.getError())) 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) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + if (hasStartedAt()) { + hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getStartedAt().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().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(); + } + if (hasCustomInfo()) { + hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCustomInfo().hashCode(); + } + switch (outputResultCase_) { + case 1: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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; + } + /** + *
+     * Container for task execution details and results.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionClosure) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + phase_ = 0; + + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + logsBuilder_.clear(); + } + if (startedAtBuilder_ == null) { + startedAt_ = null; + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + if (customInfoBuilder_ == null) { + customInfo_ = null; + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (outputResultCase_ == 1) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 2) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + result.phase_ = phase_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + if (startedAtBuilder_ == null) { + result.startedAt_ = startedAt_; + } else { + result.startedAt_ = startedAtBuilder_.build(); + } + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + if (customInfoBuilder_ == null) { + result.customInfo_ = customInfo_; + } else { + result.customInfo_ = customInfoBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.outputResultCase_ = outputResultCase_; + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance()) return this; + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000008); + logsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + if (other.hasStartedAt()) { + mergeStartedAt(other.getStartedAt()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + if (other.hasCustomInfo()) { + mergeCustomInfo(other.getCustomInfo()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 1; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 2)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 2; + onChanged();; + return errorBuilder_; + } + + private int phase_ = 0; + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private java.util.List logs_ = + java.util.Collections.emptyList(); + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; + + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs(flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs( + flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder( + index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( + logs_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } + + private com.google.protobuf.Timestamp startedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAtBuilder_ != null || startedAt_ != null; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + if (startedAtBuilder_ == null) { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } else { + return startedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedAt_ = value; + onChanged(); + } else { + startedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedAtBuilder_ == null) { + startedAt_ = builderForValue.build(); + onChanged(); + } else { + startedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (startedAt_ != null) { + startedAt_ = + com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); + } else { + startedAt_ = value; + } + onChanged(); + } else { + startedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder clearStartedAt() { + if (startedAtBuilder_ == null) { + startedAt_ = null; + onChanged(); + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { + + onChanged(); + return getStartedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + if (startedAtBuilder_ != null) { + return startedAtBuilder_.getMessageOrBuilder(); + } else { + return startedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedAtFieldBuilder() { + if (startedAtBuilder_ == null) { + startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedAt(), + getParentForChildren(), + isClean()); + startedAt_ = null; + } + return startedAtBuilder_; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + 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_; + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + 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; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + 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; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + 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_; + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + 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; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + 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; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + 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_; + } + + private com.google.protobuf.Struct customInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public boolean hasCustomInfo() { + return customInfoBuilder_ != null || customInfo_ != null; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.Struct getCustomInfo() { + if (customInfoBuilder_ == null) { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } else { + return customInfoBuilder_.getMessage(); + } + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder setCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customInfo_ = value; + onChanged(); + } else { + customInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder setCustomInfo( + com.google.protobuf.Struct.Builder builderForValue) { + if (customInfoBuilder_ == null) { + customInfo_ = builderForValue.build(); + onChanged(); + } else { + customInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder mergeCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (customInfo_ != null) { + customInfo_ = + com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); + } else { + customInfo_ = value; + } + onChanged(); + } else { + customInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder clearCustomInfo() { + if (customInfoBuilder_ == null) { + customInfo_ = null; + onChanged(); + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { + + onChanged(); + return getCustomInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + if (customInfoBuilder_ != null) { + return customInfoBuilder_.getMessageOrBuilder(); + } else { + return customInfo_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomInfoFieldBuilder() { + if (customInfoBuilder_ == null) { + customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustomInfo(), + getParentForChildren(), + isClean()); + customInfo_ = null; + } + return customInfoBuilder_; + } + @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:flyteidl.admin.TaskExecutionClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionClosure) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionClosure(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionGetDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Request structure to fetch inputs and output urls for a task execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} + */ + public static final class TaskExecutionGetDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataRequest) + TaskExecutionGetDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionGetDataRequest.newBuilder() to construct. + private TaskExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionGetDataRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionGetDataRequest( + 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: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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; + } + /** + *
+     * Request structure to fetch inputs and output urls for a task execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataRequest) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.TaskExecutionGetDataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataRequest) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionGetDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionGetDataRequest(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionGetDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + boolean hasInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + flyteidl.admin.Common.UrlBlob getInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); + + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + boolean hasOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + flyteidl.admin.Common.UrlBlob getOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); + } + /** + *
+   * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} + */ + public static final class TaskExecutionGetDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataResponse) + TaskExecutionGetDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionGetDataResponse.newBuilder() to construct. + private TaskExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionGetDataResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionGetDataResponse( + 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: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.admin.Common.UrlBlob inputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.admin.Common.UrlBlob outputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + 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 (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) obj; + + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) 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 (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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; + } + /** + *
+     * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataResponse) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.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 (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + 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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.UrlBlob inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder setInputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.admin.Common.UrlBlob outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder setOutputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + @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:flyteidl.admin.TaskExecutionGetDataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataResponse) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionGetDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionGetDataResponse(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_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#flyteidl/admin/task_execution.proto\022\016f" + + "lyteidl.admin\032\033flyteidl/admin/common.pro" + + "to\032\035flyteidl/core/execution.proto\032\036flyte" + + "idl/core/identifier.proto\032\037google/protob" + + "uf/timestamp.proto\032\036google/protobuf/dura" + + "tion.proto\032\034google/protobuf/struct.proto" + + "\"M\n\027TaskExecutionGetRequest\0222\n\002id\030\001 \001(\0132" + + "&.flyteidl.core.TaskExecutionIdentifier\"" + + "\263\001\n\030TaskExecutionListRequest\022A\n\021node_exe" + + "cution_id\030\001 \001(\0132&.flyteidl.core.NodeExec" + + "utionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030" + + "\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132" + + "\024.flyteidl.admin.Sort\"\240\001\n\rTaskExecution\022" + + "2\n\002id\030\001 \001(\0132&.flyteidl.core.TaskExecutio" + + "nIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n\007closur" + + "e\030\003 \001(\0132$.flyteidl.admin.TaskExecutionCl" + + "osure\022\021\n\tis_parent\030\004 \001(\010\"Z\n\021TaskExecutio" + + "nList\0226\n\017task_executions\030\001 \003(\0132\035.flyteid" + + "l.admin.TaskExecution\022\r\n\005token\030\002 \001(\t\"\261\003\n" + + "\024TaskExecutionClosure\022\024\n\noutput_uri\030\001 \001(" + + "\tH\000\022.\n\005error\030\002 \001(\0132\035.flyteidl.core.Execu" + + "tionErrorH\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.co" + + "re.TaskExecution.Phase\022$\n\004logs\030\004 \003(\0132\026.f" + + "lyteidl.core.TaskLog\022.\n\nstarted_at\030\005 \001(\013" + + "2\032.google.protobuf.Timestamp\022+\n\010duration" + + "\030\006 \001(\0132\031.google.protobuf.Duration\022.\n\ncre" + + "ated_at\030\007 \001(\0132\032.google.protobuf.Timestam" + + "p\022.\n\nupdated_at\030\010 \001(\0132\032.google.protobuf." + + "Timestamp\022,\n\013custom_info\030\t \001(\0132\027.google." + + "protobuf.StructB\017\n\routput_result\"Q\n\033Task" + + "ExecutionGetDataRequest\0222\n\002id\030\001 \001(\0132&.fl" + + "yteidl.core.TaskExecutionIdentifier\"q\n\034T" + + "askExecutionGetDataResponse\022\'\n\006inputs\030\001 " + + "\001(\0132\027.flyteidl.admin.UrlBlob\022(\n\007outputs\030" + + "\002 \001(\0132\027.flyteidl.admin.UrlBlobB3Z1github" + + ".com/lyft/flyteidl/gen/pb-go/flyteidl/ad" + + "minb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor, + new java.lang.String[] { "NodeExecutionId", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_TaskExecution_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecution_descriptor, + new java.lang.String[] { "Id", "InputUri", "Closure", "IsParent", }); + internal_static_flyteidl_admin_TaskExecutionList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionList_descriptor, + new java.lang.String[] { "TaskExecutions", "Token", }); + internal_static_flyteidl_admin_TaskExecutionClosure_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionClosure_descriptor, + new java.lang.String[] { "OutputUri", "Error", "Phase", "Logs", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "CustomInfo", "OutputResult", }); + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor, + new java.lang.String[] { "Inputs", "Outputs", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/TaskOuterClass.java b/gen/pb-java/flyteidl/admin/TaskOuterClass.java new file mode 100644 index 000000000..00cb436f8 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/TaskOuterClass.java @@ -0,0 +1,5102 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task.proto + +package flyteidl.admin; + +public final class TaskOuterClass { + private TaskOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface TaskCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + flyteidl.admin.TaskOuterClass.TaskSpec getSpec(); + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Represents a request structure to create a revision of a task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateRequest} + */ + public static final class TaskCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateRequest) + TaskCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskCreateRequest.newBuilder() to construct. + private TaskCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskCreateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskCreateRequest( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.TaskOuterClass.TaskSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.TaskOuterClass.TaskSpec spec_; + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { + return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + 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 (spec_ != null) { + output.writeMessage(2, getSpec()); + } + 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 (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + 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 flyteidl.admin.TaskOuterClass.TaskCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskCreateRequest other = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) 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(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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 flyteidl.admin.TaskOuterClass.TaskCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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 flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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(flyteidl.admin.TaskOuterClass.TaskCreateRequest 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; + } + /** + *
+     * Represents a request structure to create a revision of a task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateRequest) + flyteidl.admin.TaskOuterClass.TaskCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskCreateRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateRequest build() { + flyteidl.admin.TaskOuterClass.TaskCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateRequest buildPartial() { + flyteidl.admin.TaskOuterClass.TaskCreateRequest result = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.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 flyteidl.admin.TaskOuterClass.TaskCreateRequest) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateRequest other) { + if (other == flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + 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 { + flyteidl.admin.TaskOuterClass.TaskCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.TaskOuterClass.TaskSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> specBuilder_; + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.TaskOuterClass.TaskSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.TaskOuterClass.TaskSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @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:flyteidl.admin.TaskCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateRequest) + private static final flyteidl.admin.TaskOuterClass.TaskCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(); + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskCreateRequest(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 flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Represents a response structure if task creation succeeds.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateResponse} + */ + public static final class TaskCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateResponse) + TaskCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskCreateResponse.newBuilder() to construct. + private TaskCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskCreateResponse( + 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; + 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskCreateResponse other = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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(flyteidl.admin.TaskOuterClass.TaskCreateResponse 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; + } + /** + *
+     * Represents a response structure if task creation succeeds.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateResponse) + flyteidl.admin.TaskOuterClass.TaskCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskCreateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateResponse build() { + flyteidl.admin.TaskOuterClass.TaskCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateResponse buildPartial() { + flyteidl.admin.TaskOuterClass.TaskCreateResponse result = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(this); + 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateResponse other) { + if (other == flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.TaskOuterClass.TaskCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.TaskCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateResponse) + private static final flyteidl.admin.TaskOuterClass.TaskCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(); + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskCreateResponse(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 flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Task) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + boolean hasClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + flyteidl.admin.TaskOuterClass.TaskClosure getClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
+   * arranged to process workflow inputs and produce a deterministic set of outputs.
+   * Tasks can come in many varieties tuned for specialized behavior. 
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Task} + */ + public static final class Task extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Task) + TaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use Task.newBuilder() to construct. + private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Task() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Task( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.TaskOuterClass.TaskClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int CLOSURE_FIELD_NUMBER = 2; + private flyteidl.admin.TaskOuterClass.TaskClosure closure_; + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { + return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + 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 (closure_ != null) { + output.writeMessage(2, getClosure()); + } + 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 (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getClosure()); + } + 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 flyteidl.admin.TaskOuterClass.Task)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.Task other = (flyteidl.admin.TaskOuterClass.Task) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) 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(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.Task 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 flyteidl.admin.TaskOuterClass.Task parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.Task 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 flyteidl.admin.TaskOuterClass.Task parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.Task 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(flyteidl.admin.TaskOuterClass.Task 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; + } + /** + *
+     * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
+     * arranged to process workflow inputs and produce a deterministic set of outputs.
+     * Tasks can come in many varieties tuned for specialized behavior. 
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Task} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Task) + flyteidl.admin.TaskOuterClass.TaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.Task.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.Task getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.Task.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.Task build() { + flyteidl.admin.TaskOuterClass.Task result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.Task buildPartial() { + flyteidl.admin.TaskOuterClass.Task result = new flyteidl.admin.TaskOuterClass.Task(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.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 flyteidl.admin.TaskOuterClass.Task) { + return mergeFrom((flyteidl.admin.TaskOuterClass.Task)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.Task other) { + if (other == flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + 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 { + flyteidl.admin.TaskOuterClass.Task parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.Task) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.TaskOuterClass.TaskClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> closureBuilder_; + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder setClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder setClosure( + flyteidl.admin.TaskOuterClass.TaskClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder mergeClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.TaskOuterClass.TaskClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + @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:flyteidl.admin.Task) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Task) + private static final flyteidl.admin.TaskOuterClass.Task DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.Task(); + } + + public static flyteidl.admin.TaskOuterClass.Task getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Task parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Task(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 flyteidl.admin.TaskOuterClass.Task getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + java.util.List + getTasksList(); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + flyteidl.admin.TaskOuterClass.Task getTasks(int index); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + int getTasksCount(); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of tasks returned from the admin.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskList} + */ + public static final class TaskList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskList) + TaskListOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskList.newBuilder() to construct. + private TaskList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskList() { + tasks_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskList( + 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)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tasks_.add( + input.readMessage(flyteidl.admin.TaskOuterClass.Task.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); + } + + private int bitField0_; + public static final int TASKS_FIELD_NUMBER = 1; + private java.util.List tasks_; + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( + int index) { + return tasks_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(1, tasks_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tasks_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.TaskOuterClass.TaskList)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskList other = (flyteidl.admin.TaskOuterClass.TaskList) obj; + + if (!getTasksList() + .equals(other.getTasksList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskList 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 flyteidl.admin.TaskOuterClass.TaskList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskList 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 flyteidl.admin.TaskOuterClass.TaskList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskList 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(flyteidl.admin.TaskOuterClass.TaskList 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; + } + /** + *
+     * Represents a list of tasks returned from the admin.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskList) + flyteidl.admin.TaskOuterClass.TaskListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTasksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tasksBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskList getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskList build() { + flyteidl.admin.TaskOuterClass.TaskList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskList buildPartial() { + flyteidl.admin.TaskOuterClass.TaskList result = new flyteidl.admin.TaskOuterClass.TaskList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.TaskOuterClass.TaskList) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskList other) { + if (other == flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance()) return this; + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000001); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.TaskOuterClass.TaskList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> tasksBuilder_; + + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder setTasks( + int index, flyteidl.admin.TaskOuterClass.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder setTasks( + int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks(flyteidl.admin.TaskOuterClass.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks( + int index, flyteidl.admin.TaskOuterClass.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks( + flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks( + int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder>( + tasks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.TaskList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskList) + private static final flyteidl.admin.TaskOuterClass.TaskList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskList(); + } + + public static flyteidl.admin.TaskOuterClass.TaskList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskList(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 flyteidl.admin.TaskOuterClass.TaskList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplate getTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); + } + /** + *
+   * Represents a structure that encapsulates the user-configured specification of the task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskSpec} + */ + public static final class TaskSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskSpec) + TaskSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskSpec.newBuilder() to construct. + private TaskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskSpec( + 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: { + flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); + } + + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Tasks.TaskTemplate template_; + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + 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 (template_ != null) { + output.writeMessage(1, getTemplate()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + 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 flyteidl.admin.TaskOuterClass.TaskSpec)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskSpec other = (flyteidl.admin.TaskOuterClass.TaskSpec) obj; + + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) 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 (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec 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 flyteidl.admin.TaskOuterClass.TaskSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec 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 flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec 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(flyteidl.admin.TaskOuterClass.TaskSpec 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; + } + /** + *
+     * Represents a structure that encapsulates the user-configured specification of the task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskSpec) + flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskSpec.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 (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskSpec build() { + flyteidl.admin.TaskOuterClass.TaskSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskSpec buildPartial() { + flyteidl.admin.TaskOuterClass.TaskSpec result = new flyteidl.admin.TaskOuterClass.TaskSpec(this); + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.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 flyteidl.admin.TaskOuterClass.TaskSpec) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskSpec other) { + if (other == flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + 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 { + flyteidl.admin.TaskOuterClass.TaskSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Tasks.TaskTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + @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:flyteidl.admin.TaskSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskSpec) + private static final flyteidl.admin.TaskOuterClass.TaskSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskSpec(); + } + + public static flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskSpec(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 flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + boolean hasCompiledTask(); + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + flyteidl.core.Compiler.CompiledTask getCompiledTask(); + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder(); + + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + } + /** + *
+   * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
+   * and task metadata.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskClosure} + */ + public static final class TaskClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskClosure) + TaskClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskClosure.newBuilder() to construct. + private TaskClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskClosure() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskClosure( + 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: { + flyteidl.core.Compiler.CompiledTask.Builder subBuilder = null; + if (compiledTask_ != null) { + subBuilder = compiledTask_.toBuilder(); + } + compiledTask_ = input.readMessage(flyteidl.core.Compiler.CompiledTask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compiledTask_); + compiledTask_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + 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; + } + 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); + } + + public static final int COMPILED_TASK_FIELD_NUMBER = 1; + private flyteidl.core.Compiler.CompiledTask compiledTask_; + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public boolean hasCompiledTask() { + return compiledTask_ != null; + } + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTask getCompiledTask() { + return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; + } + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { + return getCompiledTask(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + 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 (compiledTask_ != null) { + output.writeMessage(1, getCompiledTask()); + } + if (createdAt_ != null) { + output.writeMessage(2, getCreatedAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (compiledTask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCompiledTask()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreatedAt()); + } + 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 flyteidl.admin.TaskOuterClass.TaskClosure)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskClosure other = (flyteidl.admin.TaskOuterClass.TaskClosure) obj; + + if (hasCompiledTask() != other.hasCompiledTask()) return false; + if (hasCompiledTask()) { + if (!getCompiledTask() + .equals(other.getCompiledTask())) return false; + } + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) 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 (hasCompiledTask()) { + hash = (37 * hash) + COMPILED_TASK_FIELD_NUMBER; + hash = (53 * hash) + getCompiledTask().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure 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 flyteidl.admin.TaskOuterClass.TaskClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure 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 flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure 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(flyteidl.admin.TaskOuterClass.TaskClosure 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; + } + /** + *
+     * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
+     * and task metadata.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskClosure) + flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskClosure.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 (compiledTaskBuilder_ == null) { + compiledTask_ = null; + } else { + compiledTask_ = null; + compiledTaskBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskClosure build() { + flyteidl.admin.TaskOuterClass.TaskClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskClosure buildPartial() { + flyteidl.admin.TaskOuterClass.TaskClosure result = new flyteidl.admin.TaskOuterClass.TaskClosure(this); + if (compiledTaskBuilder_ == null) { + result.compiledTask_ = compiledTask_; + } else { + result.compiledTask_ = compiledTaskBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.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 flyteidl.admin.TaskOuterClass.TaskClosure) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskClosure other) { + if (other == flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance()) return this; + if (other.hasCompiledTask()) { + mergeCompiledTask(other.getCompiledTask()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + 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 { + flyteidl.admin.TaskOuterClass.TaskClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Compiler.CompiledTask compiledTask_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> compiledTaskBuilder_; + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public boolean hasCompiledTask() { + return compiledTaskBuilder_ != null || compiledTask_ != null; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTask getCompiledTask() { + if (compiledTaskBuilder_ == null) { + return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; + } else { + return compiledTaskBuilder_.getMessage(); + } + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder setCompiledTask(flyteidl.core.Compiler.CompiledTask value) { + if (compiledTaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compiledTask_ = value; + onChanged(); + } else { + compiledTaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder setCompiledTask( + flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (compiledTaskBuilder_ == null) { + compiledTask_ = builderForValue.build(); + onChanged(); + } else { + compiledTaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder mergeCompiledTask(flyteidl.core.Compiler.CompiledTask value) { + if (compiledTaskBuilder_ == null) { + if (compiledTask_ != null) { + compiledTask_ = + flyteidl.core.Compiler.CompiledTask.newBuilder(compiledTask_).mergeFrom(value).buildPartial(); + } else { + compiledTask_ = value; + } + onChanged(); + } else { + compiledTaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder clearCompiledTask() { + if (compiledTaskBuilder_ == null) { + compiledTask_ = null; + onChanged(); + } else { + compiledTask_ = null; + compiledTaskBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTask.Builder getCompiledTaskBuilder() { + + onChanged(); + return getCompiledTaskFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { + if (compiledTaskBuilder_ != null) { + return compiledTaskBuilder_.getMessageOrBuilder(); + } else { + return compiledTask_ == null ? + flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; + } + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> + getCompiledTaskFieldBuilder() { + if (compiledTaskBuilder_ == null) { + compiledTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( + getCompiledTask(), + getParentForChildren(), + isClean()); + compiledTask_ = null; + } + return compiledTaskBuilder_; + } + + 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_; + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + 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; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + 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; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + 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_; + } + @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:flyteidl.admin.TaskClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskClosure) + private static final flyteidl.admin.TaskOuterClass.TaskClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskClosure(); + } + + public static flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskClosure(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 flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Task_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Task_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskClosure_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\031flyteidl/admin/task.proto\022\016flyteidl.ad" + + "min\032\036flyteidl/core/identifier.proto\032\031fly" + + "teidl/core/tasks.proto\032\034flyteidl/core/co" + + "mpiler.proto\032\037google/protobuf/timestamp." + + "proto\"b\n\021TaskCreateRequest\022%\n\002id\030\001 \001(\0132\031" + + ".flyteidl.core.Identifier\022&\n\004spec\030\002 \001(\0132" + + "\030.flyteidl.admin.TaskSpec\"\024\n\022TaskCreateR" + + "esponse\"[\n\004Task\022%\n\002id\030\001 \001(\0132\031.flyteidl.c" + + "ore.Identifier\022,\n\007closure\030\002 \001(\0132\033.flytei" + + "dl.admin.TaskClosure\">\n\010TaskList\022#\n\005task" + + "s\030\001 \003(\0132\024.flyteidl.admin.Task\022\r\n\005token\030\002" + + " \001(\t\"9\n\010TaskSpec\022-\n\010template\030\001 \001(\0132\033.fly" + + "teidl.core.TaskTemplate\"q\n\013TaskClosure\0222" + + "\n\rcompiled_task\030\001 \001(\0132\033.flyteidl.core.Co" + + "mpiledTask\022.\n\ncreated_at\030\002 \001(\0132\032.google." + + "protobuf.TimestampB3Z1github.com/lyft/fl" + + "yteidl/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + flyteidl.core.Compiler.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_TaskCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskCreateRequest_descriptor, + new java.lang.String[] { "Id", "Spec", }); + internal_static_flyteidl_admin_TaskCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskCreateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_Task_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_Task_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Task_descriptor, + new java.lang.String[] { "Id", "Closure", }); + internal_static_flyteidl_admin_TaskList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_TaskList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskList_descriptor, + new java.lang.String[] { "Tasks", "Token", }); + internal_static_flyteidl_admin_TaskSpec_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskSpec_descriptor, + new java.lang.String[] { "Template", }); + internal_static_flyteidl_admin_TaskClosure_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskClosure_descriptor, + new java.lang.String[] { "CompiledTask", "CreatedAt", }); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.core.Compiler.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java b/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java new file mode 100644 index 000000000..0d6544885 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java @@ -0,0 +1,5375 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/workflow_attributes.proto + +package flyteidl.admin; + +public final class WorkflowAttributesOuterClass { + private WorkflowAttributesOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Workflow name for which this set of attributes will be applied.
+     * 
+ * + * string workflow = 3; + */ + java.lang.String getWorkflow(); + /** + *
+     * Workflow name for which this set of attributes will be applied.
+     * 
+ * + * string workflow = 3; + */ + com.google.protobuf.ByteString + getWorkflowBytes(); + + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + boolean hasMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.WorkflowAttributes} + */ + public static final class WorkflowAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributes) + WorkflowAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributes.newBuilder() to construct. + private WorkflowAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributes() { + project_ = ""; + domain_ = ""; + workflow_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributes( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + workflow_ = s; + break; + } + case 34: { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; + if (matchingAttributes_ != null) { + subBuilder = matchingAttributes_.toBuilder(); + } + matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(matchingAttributes_); + matchingAttributes_ = 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_FIELD_NUMBER = 3; + private volatile java.lang.Object workflow_; + /** + *
+     * Workflow name for which this set of attributes will be applied.
+     * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + 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(); + workflow_ = s; + return s; + } + } + /** + *
+     * Workflow name for which this set of attributes will be applied.
+     * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 4; + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public boolean hasMatchingAttributes() { + return matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + return getMatchingAttributes(); + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); + } + if (matchingAttributes_ != null) { + output.writeMessage(4, getMatchingAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); + } + if (matchingAttributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMatchingAttributes()); + } + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; + if (hasMatchingAttributes()) { + if (!getMatchingAttributes() + .equals(other.getMatchingAttributes())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + if (hasMatchingAttributes()) { + hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getMatchingAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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 flyteidl.admin.WorkflowAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributes) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.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(); + project_ = ""; + + domain_ = ""; + + workflow_ = ""; + + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes(this); + result.project_ = project_; + result.domain_ = domain_; + result.workflow_ = workflow_; + if (matchingAttributesBuilder_ == null) { + result.matchingAttributes_ = matchingAttributes_; + } else { + result.matchingAttributes_ = matchingAttributesBuilder_.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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getWorkflow().isEmpty()) { + workflow_ = other.workflow_; + onChanged(); + } + if (other.hasMatchingAttributes()) { + mergeMatchingAttributes(other.getMatchingAttributes()); + } + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object workflow_ = ""; + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflow( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflow_ = value; + onChanged(); + return this; + } + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public Builder clearWorkflow() { + + workflow_ = getDefaultInstance().getWorkflow(); + onChanged(); + return this; + } + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflow_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public boolean hasMatchingAttributes() { + return matchingAttributesBuilder_ != null || matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } else { + return matchingAttributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + matchingAttributes_ = value; + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public Builder setMatchingAttributes( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = builderForValue.build(); + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (matchingAttributes_ != null) { + matchingAttributes_ = + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); + } else { + matchingAttributes_ = value; + } + onChanged(); + } else { + matchingAttributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public Builder clearMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + onChanged(); + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { + + onChanged(); + return getMatchingAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + if (matchingAttributesBuilder_ != null) { + return matchingAttributesBuilder_.getMessageOrBuilder(); + } else { + return matchingAttributes_ == null ? + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> + getMatchingAttributesFieldBuilder() { + if (matchingAttributesBuilder_ == null) { + matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( + getMatchingAttributes(), + getParentForChildren(), + isClean()); + matchingAttributes_ = null; + } + return matchingAttributesBuilder_; + } + @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:flyteidl.admin.WorkflowAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributes) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributes(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes(); + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder(); + } + /** + *
+   * Sets custom attributes for a project, domain and workflow combination.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateRequest} + */ + public static final class WorkflowAttributesUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesUpdateRequest) + WorkflowAttributesUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesUpdateRequest.newBuilder() to construct. + private WorkflowAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesUpdateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesUpdateRequest( + 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: { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + 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 (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) 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 (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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; + } + /** + *
+     * Sets custom attributes for a project, domain and workflow combination.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesUpdateRequest) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.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 (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @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:flyteidl.admin.WorkflowAttributesUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateRequest) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesUpdateRequest(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateResponse} + */ + public static final class WorkflowAttributesUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesUpdateResponse) + WorkflowAttributesUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesUpdateResponse.newBuilder() to construct. + private WorkflowAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesUpdateResponse( + 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; + 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesUpdateResponse) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse(this); + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.WorkflowAttributesUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateResponse) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesUpdateResponse(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + java.lang.String getWorkflow(); + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + com.google.protobuf.ByteString + getWorkflowBytes(); + + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + int getResourceTypeValue(); + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetRequest} + */ + public static final class WorkflowAttributesGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesGetRequest) + WorkflowAttributesGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesGetRequest.newBuilder() to construct. + private WorkflowAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesGetRequest() { + project_ = ""; + domain_ = ""; + workflow_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesGetRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + workflow_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_FIELD_NUMBER = 3; + private volatile java.lang.Object workflow_; + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + 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(); + workflow_ = s; + return s; + } + } + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 4; + private int resourceType_; + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(4, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, resourceType_); + } + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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 flyteidl.admin.WorkflowAttributesGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesGetRequest) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.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(); + project_ = ""; + + domain_ = ""; + + workflow_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.workflow_ = workflow_; + result.resourceType_ = resourceType_; + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getWorkflow().isEmpty()) { + workflow_ = other.workflow_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object workflow_ = ""; + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflow( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflow_ = value; + onChanged(); + return this; + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public Builder clearWorkflow() { + + workflow_ = getDefaultInstance().getWorkflow(); + onChanged(); + return this; + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflow_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + 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:flyteidl.admin.WorkflowAttributesGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetRequest) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesGetRequest(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesGetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesGetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes(); + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetResponse} + */ + public static final class WorkflowAttributesGetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesGetResponse) + WorkflowAttributesGetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesGetResponse.newBuilder() to construct. + private WorkflowAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesGetResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesGetResponse( + 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: { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + 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 (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) 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 (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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 flyteidl.admin.WorkflowAttributesGetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesGetResponse) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.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 (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @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:flyteidl.admin.WorkflowAttributesGetResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetResponse) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesGetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesGetResponse(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesDeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesDeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + java.lang.String getWorkflow(); + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + com.google.protobuf.ByteString + getWorkflowBytes(); + + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + int getResourceTypeValue(); + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteRequest} + */ + public static final class WorkflowAttributesDeleteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesDeleteRequest) + WorkflowAttributesDeleteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesDeleteRequest.newBuilder() to construct. + private WorkflowAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesDeleteRequest() { + project_ = ""; + domain_ = ""; + workflow_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesDeleteRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + workflow_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_FIELD_NUMBER = 3; + private volatile java.lang.Object workflow_; + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + 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(); + workflow_ = s; + return s; + } + } + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 4; + private int resourceType_; + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(4, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, resourceType_); + } + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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 flyteidl.admin.WorkflowAttributesDeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesDeleteRequest) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.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(); + project_ = ""; + + domain_ = ""; + + workflow_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.workflow_ = workflow_; + result.resourceType_ = resourceType_; + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getWorkflow().isEmpty()) { + workflow_ = other.workflow_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object workflow_ = ""; + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflow( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflow_ = value; + onChanged(); + return this; + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public Builder clearWorkflow() { + + workflow_ = getDefaultInstance().getWorkflow(); + onChanged(); + return this; + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflow_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + 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:flyteidl.admin.WorkflowAttributesDeleteRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteRequest) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesDeleteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesDeleteRequest(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesDeleteResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesDeleteResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteResponse} + */ + public static final class WorkflowAttributesDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesDeleteResponse) + WorkflowAttributesDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesDeleteResponse.newBuilder() to construct. + private WorkflowAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesDeleteResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesDeleteResponse( + 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; + 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesDeleteResponse) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse(this); + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.WorkflowAttributesDeleteResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteResponse) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesDeleteResponse(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_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(flyteidl/admin/workflow_attributes.pro" + + "to\022\016flyteidl.admin\032\'flyteidl/admin/match" + + "able_resource.proto\"\210\001\n\022WorkflowAttribut" + + "es\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010w" + + "orkflow\030\003 \001(\t\022?\n\023matching_attributes\030\004 \001" + + "(\0132\".flyteidl.admin.MatchingAttributes\"Y" + + "\n\037WorkflowAttributesUpdateRequest\0226\n\natt" + + "ributes\030\001 \001(\0132\".flyteidl.admin.WorkflowA" + + "ttributes\"\"\n WorkflowAttributesUpdateRes" + + "ponse\"\213\001\n\034WorkflowAttributesGetRequest\022\017" + + "\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workf" + + "low\030\003 \001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyte" + + "idl.admin.MatchableResource\"W\n\035WorkflowA" + + "ttributesGetResponse\0226\n\nattributes\030\001 \001(\013" + + "2\".flyteidl.admin.WorkflowAttributes\"\216\001\n" + + "\037WorkflowAttributesDeleteRequest\022\017\n\007proj" + + "ect\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workflow\030\003 " + + "\001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyteidl.ad" + + "min.MatchableResource\"\"\n WorkflowAttribu" + + "tesDeleteResponseB3Z1github.com/lyft/fly" + + "teidl/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_WorkflowAttributes_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributes_descriptor, + new java.lang.String[] { "Project", "Domain", "Workflow", "MatchingAttributes", }); + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Workflow", "ResourceType", }); + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Workflow", "ResourceType", }); + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor, + new java.lang.String[] { }); + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java b/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java new file mode 100644 index 000000000..d52dfb944 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java @@ -0,0 +1,5646 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/workflow.proto + +package flyteidl.admin; + +public final class WorkflowOuterClass { + private WorkflowOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec(); + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Represents a request structure to create a revision of a workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} + */ + public static final class WorkflowCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateRequest) + WorkflowCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowCreateRequest.newBuilder() to construct. + private WorkflowCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowCreateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowCreateRequest( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_; + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { + return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + 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 (spec_ != null) { + output.writeMessage(2, getSpec()); + } + 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 (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) 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(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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(flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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; + } + /** + *
+     * Represents a request structure to create a revision of a workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateRequest) + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest build() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + 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 { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> specBuilder_; + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @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:flyteidl.admin.WorkflowCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateRequest) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowCreateRequest(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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future. 
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} + */ + public static final class WorkflowCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateResponse) + WorkflowCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowCreateResponse.newBuilder() to construct. + private WorkflowCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowCreateResponse( + 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; + 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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(flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future. 
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateResponse) + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse build() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(this); + 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.WorkflowCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateResponse) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowCreateResponse(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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Workflow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + boolean hasClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * Represents the workflow structure stored in the Admin
+   * A workflow is created by ordering tasks and associating outputs to inputs
+   * in order to produce a directed-acyclic execution graph.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Workflow} + */ + public static final class Workflow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Workflow) + WorkflowOrBuilder { + private static final long serialVersionUID = 0L; + // Use Workflow.newBuilder() to construct. + private Workflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Workflow() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Workflow( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int CLOSURE_FIELD_NUMBER = 2; + private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_; + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { + return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + 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 (closure_ != null) { + output.writeMessage(2, getClosure()); + } + 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 (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getClosure()); + } + 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 flyteidl.admin.WorkflowOuterClass.Workflow)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.Workflow other = (flyteidl.admin.WorkflowOuterClass.Workflow) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) 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(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow 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 flyteidl.admin.WorkflowOuterClass.Workflow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow 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 flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow 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(flyteidl.admin.WorkflowOuterClass.Workflow 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; + } + /** + *
+     * Represents the workflow structure stored in the Admin
+     * A workflow is created by ordering tasks and associating outputs to inputs
+     * in order to produce a directed-acyclic execution graph.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Workflow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Workflow) + flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.Workflow.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.Workflow build() { + flyteidl.admin.WorkflowOuterClass.Workflow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.Workflow buildPartial() { + flyteidl.admin.WorkflowOuterClass.Workflow result = new flyteidl.admin.WorkflowOuterClass.Workflow(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.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 flyteidl.admin.WorkflowOuterClass.Workflow) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.Workflow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.Workflow other) { + if (other == flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + 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 { + flyteidl.admin.WorkflowOuterClass.Workflow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.Workflow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> closureBuilder_; + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder setClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder setClosure( + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder mergeClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + @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:flyteidl.admin.Workflow) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Workflow) + private static final flyteidl.admin.WorkflowOuterClass.Workflow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.Workflow(); + } + + public static flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Workflow(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 flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + java.util.List + getWorkflowsList(); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + int getWorkflowsCount(); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + java.util.List + getWorkflowsOrBuilderList(); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of workflows returned from the admin.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowList} + */ + public static final class WorkflowList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowList) + WorkflowListOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowList.newBuilder() to construct. + private WorkflowList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowList() { + workflows_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowList( + 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)) { + workflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + workflows_.add( + input.readMessage(flyteidl.admin.WorkflowOuterClass.Workflow.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + workflows_ = java.util.Collections.unmodifiableList(workflows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); + } + + private int bitField0_; + public static final int WORKFLOWS_FIELD_NUMBER = 1; + private java.util.List workflows_; + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List getWorkflowsList() { + return workflows_; + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List + getWorkflowsOrBuilderList() { + return workflows_; + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public int getWorkflowsCount() { + return workflows_.size(); + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { + return workflows_.get(index); + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( + int index) { + return workflows_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < workflows_.size(); i++) { + output.writeMessage(1, workflows_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < workflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workflows_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.WorkflowOuterClass.WorkflowList)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowList other = (flyteidl.admin.WorkflowOuterClass.WorkflowList) obj; + + if (!getWorkflowsList() + .equals(other.getWorkflowsList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getWorkflowsCount() > 0) { + hash = (37 * hash) + WORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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 flyteidl.admin.WorkflowOuterClass.WorkflowList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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 flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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(flyteidl.admin.WorkflowOuterClass.WorkflowList 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; + } + /** + *
+     * Represents a list of workflows returned from the admin.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowList) + flyteidl.admin.WorkflowOuterClass.WorkflowListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getWorkflowsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (workflowsBuilder_ == null) { + workflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + workflowsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowList build() { + flyteidl.admin.WorkflowOuterClass.WorkflowList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowList buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowList result = new flyteidl.admin.WorkflowOuterClass.WorkflowList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (workflowsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + workflows_ = java.util.Collections.unmodifiableList(workflows_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.workflows_ = workflows_; + } else { + result.workflows_ = workflowsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.WorkflowOuterClass.WorkflowList) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowList other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance()) return this; + if (workflowsBuilder_ == null) { + if (!other.workflows_.isEmpty()) { + if (workflows_.isEmpty()) { + workflows_ = other.workflows_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWorkflowsIsMutable(); + workflows_.addAll(other.workflows_); + } + onChanged(); + } + } else { + if (!other.workflows_.isEmpty()) { + if (workflowsBuilder_.isEmpty()) { + workflowsBuilder_.dispose(); + workflowsBuilder_ = null; + workflows_ = other.workflows_; + bitField0_ = (bitField0_ & ~0x00000001); + workflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkflowsFieldBuilder() : null; + } else { + workflowsBuilder_.addAllMessages(other.workflows_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.WorkflowOuterClass.WorkflowList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List workflows_ = + java.util.Collections.emptyList(); + private void ensureWorkflowsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + workflows_ = new java.util.ArrayList(workflows_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> workflowsBuilder_; + + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List getWorkflowsList() { + if (workflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(workflows_); + } else { + return workflowsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public int getWorkflowsCount() { + if (workflowsBuilder_ == null) { + return workflows_.size(); + } else { + return workflowsBuilder_.getCount(); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { + if (workflowsBuilder_ == null) { + return workflows_.get(index); + } else { + return workflowsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder setWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { + if (workflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowsIsMutable(); + workflows_.set(index, value); + onChanged(); + } else { + workflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder setWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.set(index, builderForValue.build()); + onChanged(); + } else { + workflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows(flyteidl.admin.WorkflowOuterClass.Workflow value) { + if (workflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowsIsMutable(); + workflows_.add(value); + onChanged(); + } else { + workflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { + if (workflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowsIsMutable(); + workflows_.add(index, value); + onChanged(); + } else { + workflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows( + flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.add(builderForValue.build()); + onChanged(); + } else { + workflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.add(index, builderForValue.build()); + onChanged(); + } else { + workflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addAllWorkflows( + java.lang.Iterable values) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workflows_); + onChanged(); + } else { + workflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder clearWorkflows() { + if (workflowsBuilder_ == null) { + workflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + workflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder removeWorkflows(int index) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.remove(index); + onChanged(); + } else { + workflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow.Builder getWorkflowsBuilder( + int index) { + return getWorkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( + int index) { + if (workflowsBuilder_ == null) { + return workflows_.get(index); } else { + return workflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List + getWorkflowsOrBuilderList() { + if (workflowsBuilder_ != null) { + return workflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workflows_); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder() { + return getWorkflowsFieldBuilder().addBuilder( + flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder( + int index) { + return getWorkflowsFieldBuilder().addBuilder( + index, flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List + getWorkflowsBuilderList() { + return getWorkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> + getWorkflowsFieldBuilder() { + if (workflowsBuilder_ == null) { + workflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder>( + workflows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + workflows_ = null; + } + return workflowsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.WorkflowList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowList) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowList(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowList(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 flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplate getTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); + + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + java.util.List + getSubWorkflowsList(); + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index); + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + int getSubWorkflowsCount(); + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + java.util.List + getSubWorkflowsOrBuilderList(); + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( + int index); + } + /** + *
+   * Represents a structure that encapsulates the specification of the workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowSpec} + */ + public static final class WorkflowSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowSpec) + WorkflowSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowSpec.newBuilder() to construct. + private WorkflowSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowSpec() { + subWorkflows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowSpec( + 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: { + flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + subWorkflows_.add( + input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.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_ & 0x00000002) != 0)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); + } + + private int bitField0_; + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.WorkflowTemplate template_; + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + public static final int SUB_WORKFLOWS_FIELD_NUMBER = 2; + private java.util.List subWorkflows_; + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + return subWorkflows_; + } + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + return subWorkflows_; + } + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + return subWorkflows_.size(); + } + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index) { + return subWorkflows_.get(index); + } + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( + int index) { + return subWorkflows_.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 (template_ != null) { + output.writeMessage(1, getTemplate()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + output.writeMessage(2, subWorkflows_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, subWorkflows_.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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowSpec other = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) obj; + + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) return false; + } + if (!getSubWorkflowsList() + .equals(other.getSubWorkflowsList())) 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 (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + if (getSubWorkflowsCount() > 0) { + hash = (37 * hash) + SUB_WORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getSubWorkflowsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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(flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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; + } + /** + *
+     * Represents a structure that encapsulates the specification of the workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowSpec) + flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSubWorkflowsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + subWorkflowsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec build() { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + if (subWorkflowsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.subWorkflows_ = subWorkflows_; + } else { + result.subWorkflows_ = subWorkflowsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowSpec other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + if (subWorkflowsBuilder_ == null) { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflows_.isEmpty()) { + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubWorkflowsIsMutable(); + subWorkflows_.addAll(other.subWorkflows_); + } + onChanged(); + } + } else { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflowsBuilder_.isEmpty()) { + subWorkflowsBuilder_.dispose(); + subWorkflowsBuilder_ = null; + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + subWorkflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubWorkflowsFieldBuilder() : null; + } else { + subWorkflowsBuilder_.addAllMessages(other.subWorkflows_); + } + } + } + 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 { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.Workflow.WorkflowTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + + private java.util.List subWorkflows_ = + java.util.Collections.emptyList(); + private void ensureSubWorkflowsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = new java.util.ArrayList(subWorkflows_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> subWorkflowsBuilder_; + + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + if (subWorkflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subWorkflows_); + } else { + return subWorkflowsBuilder_.getMessageList(); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.size(); + } else { + return subWorkflowsBuilder_.getCount(); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); + } else { + return subWorkflowsBuilder_.getMessage(index); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addSubWorkflows(flyteidl.core.Workflow.WorkflowTemplate value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addSubWorkflows( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addAllSubWorkflows( + java.lang.Iterable values) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subWorkflows_); + onChanged(); + } else { + subWorkflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder clearSubWorkflows() { + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + subWorkflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder removeSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.remove(index); + onChanged(); + } else { + subWorkflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( + int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); } else { + return subWorkflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + if (subWorkflowsBuilder_ != null) { + return subWorkflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subWorkflows_); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubWorkflowsBuilder() { + return getSubWorkflowsFieldBuilder().addBuilder( + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsBuilderList() { + return getSubWorkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getSubWorkflowsFieldBuilder() { + if (subWorkflowsBuilder_ == null) { + subWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + subWorkflows_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + subWorkflows_ = null; + } + return subWorkflowsBuilder_; + } + @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:flyteidl.admin.WorkflowSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowSpec) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowSpec(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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + boolean hasCompiledWorkflow(); + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow(); + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder(); + + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + } + /** + *
+   * A container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowClosure} + */ + public static final class WorkflowClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowClosure) + WorkflowClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowClosure.newBuilder() to construct. + private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowClosure() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowClosure( + 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: { + flyteidl.core.Compiler.CompiledWorkflowClosure.Builder subBuilder = null; + if (compiledWorkflow_ != null) { + subBuilder = compiledWorkflow_.toBuilder(); + } + compiledWorkflow_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflowClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compiledWorkflow_); + compiledWorkflow_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + 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; + } + 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); + } + + public static final int COMPILED_WORKFLOW_FIELD_NUMBER = 1; + private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public boolean hasCompiledWorkflow() { + return compiledWorkflow_ != null; + } + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { + return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { + return getCompiledWorkflow(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + 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 (compiledWorkflow_ != null) { + output.writeMessage(1, getCompiledWorkflow()); + } + if (createdAt_ != null) { + output.writeMessage(2, getCreatedAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (compiledWorkflow_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCompiledWorkflow()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreatedAt()); + } + 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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowClosure other = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) obj; + + if (hasCompiledWorkflow() != other.hasCompiledWorkflow()) return false; + if (hasCompiledWorkflow()) { + if (!getCompiledWorkflow() + .equals(other.getCompiledWorkflow())) return false; + } + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) 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 (hasCompiledWorkflow()) { + hash = (37 * hash) + COMPILED_WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getCompiledWorkflow().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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(flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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 container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowClosure) + flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowClosure.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 (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = null; + } else { + compiledWorkflow_ = null; + compiledWorkflowBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure build() { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(this); + if (compiledWorkflowBuilder_ == null) { + result.compiledWorkflow_ = compiledWorkflow_; + } else { + result.compiledWorkflow_ = compiledWorkflowBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowClosure other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance()) return this; + if (other.hasCompiledWorkflow()) { + mergeCompiledWorkflow(other.getCompiledWorkflow()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + 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 { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> compiledWorkflowBuilder_; + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public boolean hasCompiledWorkflow() { + return compiledWorkflowBuilder_ != null || compiledWorkflow_ != null; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { + if (compiledWorkflowBuilder_ == null) { + return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } else { + return compiledWorkflowBuilder_.getMessage(); + } + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder setCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { + if (compiledWorkflowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compiledWorkflow_ = value; + onChanged(); + } else { + compiledWorkflowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder setCompiledWorkflow( + flyteidl.core.Compiler.CompiledWorkflowClosure.Builder builderForValue) { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = builderForValue.build(); + onChanged(); + } else { + compiledWorkflowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder mergeCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { + if (compiledWorkflowBuilder_ == null) { + if (compiledWorkflow_ != null) { + compiledWorkflow_ = + flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder(compiledWorkflow_).mergeFrom(value).buildPartial(); + } else { + compiledWorkflow_ = value; + } + onChanged(); + } else { + compiledWorkflowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder clearCompiledWorkflow() { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = null; + onChanged(); + } else { + compiledWorkflow_ = null; + compiledWorkflowBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure.Builder getCompiledWorkflowBuilder() { + + onChanged(); + return getCompiledWorkflowFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { + if (compiledWorkflowBuilder_ != null) { + return compiledWorkflowBuilder_.getMessageOrBuilder(); + } else { + return compiledWorkflow_ == null ? + flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> + getCompiledWorkflowFieldBuilder() { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder>( + getCompiledWorkflow(), + getParentForChildren(), + isClean()); + compiledWorkflow_ = null; + } + return compiledWorkflowBuilder_; + } + + 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_; + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + 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; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + 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; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + 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_; + } + @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:flyteidl.admin.WorkflowClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowClosure) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowClosure(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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Workflow_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Workflow_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowClosure_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\035flyteidl/admin/workflow.proto\022\016flyteid" + + "l.admin\032\034flyteidl/core/compiler.proto\032\036f" + + "lyteidl/core/identifier.proto\032\034flyteidl/" + + "core/workflow.proto\032\033flyteidl/admin/comm" + + "on.proto\032\037google/protobuf/timestamp.prot" + + "o\"j\n\025WorkflowCreateRequest\022%\n\002id\030\001 \001(\0132\031" + + ".flyteidl.core.Identifier\022*\n\004spec\030\002 \001(\0132" + + "\034.flyteidl.admin.WorkflowSpec\"\030\n\026Workflo" + + "wCreateResponse\"c\n\010Workflow\022%\n\002id\030\001 \001(\0132" + + "\031.flyteidl.core.Identifier\0220\n\007closure\030\002 " + + "\001(\0132\037.flyteidl.admin.WorkflowClosure\"J\n\014" + + "WorkflowList\022+\n\tworkflows\030\001 \003(\0132\030.flytei" + + "dl.admin.Workflow\022\r\n\005token\030\002 \001(\t\"y\n\014Work" + + "flowSpec\0221\n\010template\030\001 \001(\0132\037.flyteidl.co" + + "re.WorkflowTemplate\0226\n\rsub_workflows\030\002 \003" + + "(\0132\037.flyteidl.core.WorkflowTemplate\"\204\001\n\017" + + "WorkflowClosure\022A\n\021compiled_workflow\030\001 \001" + + "(\0132&.flyteidl.core.CompiledWorkflowClosu" + + "re\022.\n\ncreated_at\030\002 \001(\0132\032.google.protobuf" + + ".TimestampB3Z1github.com/lyft/flyteidl/g" + + "en/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Compiler.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Workflow.getDescriptor(), + flyteidl.admin.Common.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor, + new java.lang.String[] { "Id", "Spec", }); + internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_Workflow_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_Workflow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Workflow_descriptor, + new java.lang.String[] { "Id", "Closure", }); + internal_static_flyteidl_admin_WorkflowList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowList_descriptor, + new java.lang.String[] { "Workflows", "Token", }); + internal_static_flyteidl_admin_WorkflowSpec_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowSpec_descriptor, + new java.lang.String[] { "Template", "SubWorkflows", }); + internal_static_flyteidl_admin_WorkflowClosure_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowClosure_descriptor, + new java.lang.String[] { "CompiledWorkflow", "CreatedAt", }); + flyteidl.core.Compiler.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.admin.Common.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Compiler.java b/gen/pb-java/flyteidl/core/Compiler.java new file mode 100644 index 000000000..94d5d5990 --- /dev/null +++ b/gen/pb-java/flyteidl/core/Compiler.java @@ -0,0 +1,5243 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/compiler.proto + +package flyteidl.core; + +public final class Compiler { + private Compiler() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ConnectionSetOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ConnectionSet) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + int getDownstreamCount(); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + boolean containsDownstream( + java.lang.String key); + /** + * Use {@link #getDownstreamMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDownstream(); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + java.util.Map + getDownstreamMap(); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( + java.lang.String key); + + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + int getUpstreamCount(); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + boolean containsUpstream( + java.lang.String key); + /** + * Use {@link #getUpstreamMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getUpstream(); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + java.util.Map + getUpstreamMap(); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( + java.lang.String key); + } + /** + *
+   * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
+   * step uses this created ConnectionSet
+   * 
+ * + * Protobuf type {@code flyteidl.core.ConnectionSet} + */ + public static final class ConnectionSet extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet) + ConnectionSetOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectionSet.newBuilder() to construct. + private ConnectionSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConnectionSet() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConnectionSet( + 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 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + downstream_ = com.google.protobuf.MapField.newMapField( + DownstreamDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + downstream__ = input.readMessage( + DownstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + downstream_.getMutableMap().put( + downstream__.getKey(), downstream__.getValue()); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + upstream_ = com.google.protobuf.MapField.newMapField( + UpstreamDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + upstream__ = input.readMessage( + UpstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + upstream_.getMutableMap().put( + upstream__.getKey(), upstream__.getValue()); + 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 flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetDownstream(); + case 8: + return internalGetUpstream(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); + } + + public interface IdListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ConnectionSet.IdList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string ids = 1; + */ + java.util.List + getIdsList(); + /** + * repeated string ids = 1; + */ + int getIdsCount(); + /** + * repeated string ids = 1; + */ + java.lang.String getIds(int index); + /** + * repeated string ids = 1; + */ + com.google.protobuf.ByteString + getIdsBytes(int index); + } + /** + * Protobuf type {@code flyteidl.core.ConnectionSet.IdList} + */ + public static final class IdList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet.IdList) + IdListOrBuilder { + private static final long serialVersionUID = 0L; + // Use IdList.newBuilder() to construct. + private IdList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IdList() { + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IdList( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + ids_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + ids_.add(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)) { + ids_ = ids_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); + } + + public static final int IDS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList ids_; + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ProtocolStringList + getIdsList() { + return ids_; + } + /** + * repeated string ids = 1; + */ + public int getIdsCount() { + return ids_.size(); + } + /** + * repeated string ids = 1; + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ByteString + getIdsBytes(int index) { + return ids_.getByteString(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 < ids_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ids_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < ids_.size(); i++) { + dataSize += computeStringSizeNoTag(ids_.getRaw(i)); + } + size += dataSize; + size += 1 * getIdsList().size(); + } + 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 flyteidl.core.Compiler.ConnectionSet.IdList)) { + return super.equals(obj); + } + flyteidl.core.Compiler.ConnectionSet.IdList other = (flyteidl.core.Compiler.ConnectionSet.IdList) obj; + + if (!getIdsList() + .equals(other.getIdsList())) 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 (getIdsCount() > 0) { + hash = (37 * hash) + IDS_FIELD_NUMBER; + hash = (53 * hash) + getIdsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList 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 flyteidl.core.Compiler.ConnectionSet.IdList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList 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 flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList 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(flyteidl.core.Compiler.ConnectionSet.IdList 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 flyteidl.core.ConnectionSet.IdList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet.IdList) + flyteidl.core.Compiler.ConnectionSet.IdListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); + } + + // Construct using flyteidl.core.Compiler.ConnectionSet.IdList.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(); + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { + return flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet.IdList build() { + flyteidl.core.Compiler.ConnectionSet.IdList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet.IdList buildPartial() { + flyteidl.core.Compiler.ConnectionSet.IdList result = new flyteidl.core.Compiler.ConnectionSet.IdList(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + ids_ = ids_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ids_ = ids_; + 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 flyteidl.core.Compiler.ConnectionSet.IdList) { + return mergeFrom((flyteidl.core.Compiler.ConnectionSet.IdList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet.IdList other) { + if (other == flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()) return this; + if (!other.ids_.isEmpty()) { + if (ids_.isEmpty()) { + ids_ = other.ids_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIdsIsMutable(); + ids_.addAll(other.ids_); + } + 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 { + flyteidl.core.Compiler.ConnectionSet.IdList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.ConnectionSet.IdList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ids_ = new com.google.protobuf.LazyStringArrayList(ids_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ProtocolStringList + getIdsList() { + return ids_.getUnmodifiableView(); + } + /** + * repeated string ids = 1; + */ + public int getIdsCount() { + return ids_.size(); + } + /** + * repeated string ids = 1; + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ByteString + getIdsBytes(int index) { + return ids_.getByteString(index); + } + /** + * repeated string ids = 1; + */ + public Builder setIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder addIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.add(value); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder addAllIds( + java.lang.Iterable values) { + ensureIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ids_); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder clearIds() { + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder addIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIdsIsMutable(); + ids_.add(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:flyteidl.core.ConnectionSet.IdList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet.IdList) + private static final flyteidl.core.Compiler.ConnectionSet.IdList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet.IdList(); + } + + public static flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IdList(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 flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int DOWNSTREAM_FIELD_NUMBER = 7; + private static final class DownstreamDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; + private com.google.protobuf.MapField + internalGetDownstream() { + if (downstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DownstreamDefaultEntryHolder.defaultEntry); + } + return downstream_; + } + + public int getDownstreamCount() { + return internalGetDownstream().getMap().size(); + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public boolean containsDownstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetDownstream().getMap().containsKey(key); + } + /** + * Use {@link #getDownstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getDownstream() { + return getDownstreamMap(); + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public java.util.Map getDownstreamMap() { + return internalGetDownstream().getMap(); + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UPSTREAM_FIELD_NUMBER = 8; + private static final class UpstreamDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; + private com.google.protobuf.MapField + internalGetUpstream() { + if (upstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UpstreamDefaultEntryHolder.defaultEntry); + } + return upstream_; + } + + public int getUpstreamCount() { + return internalGetUpstream().getMap().size(); + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public boolean containsUpstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetUpstream().getMap().containsKey(key); + } + /** + * Use {@link #getUpstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getUpstream() { + return getUpstreamMap(); + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public java.util.Map getUpstreamMap() { + return internalGetUpstream().getMap(); + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetDownstream(), + DownstreamDefaultEntryHolder.defaultEntry, + 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUpstream(), + UpstreamDefaultEntryHolder.defaultEntry, + 8); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetDownstream().getMap().entrySet()) { + com.google.protobuf.MapEntry + downstream__ = DownstreamDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, downstream__); + } + for (java.util.Map.Entry entry + : internalGetUpstream().getMap().entrySet()) { + com.google.protobuf.MapEntry + upstream__ = UpstreamDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, upstream__); + } + 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 flyteidl.core.Compiler.ConnectionSet)) { + return super.equals(obj); + } + flyteidl.core.Compiler.ConnectionSet other = (flyteidl.core.Compiler.ConnectionSet) obj; + + if (!internalGetDownstream().equals( + other.internalGetDownstream())) return false; + if (!internalGetUpstream().equals( + other.internalGetUpstream())) 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 (!internalGetDownstream().getMap().isEmpty()) { + hash = (37 * hash) + DOWNSTREAM_FIELD_NUMBER; + hash = (53 * hash) + internalGetDownstream().hashCode(); + } + if (!internalGetUpstream().getMap().isEmpty()) { + hash = (37 * hash) + UPSTREAM_FIELD_NUMBER; + hash = (53 * hash) + internalGetUpstream().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet 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 flyteidl.core.Compiler.ConnectionSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet 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 flyteidl.core.Compiler.ConnectionSet parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet 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(flyteidl.core.Compiler.ConnectionSet 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; + } + /** + *
+     * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
+     * step uses this created ConnectionSet
+     * 
+ * + * Protobuf type {@code flyteidl.core.ConnectionSet} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet) + flyteidl.core.Compiler.ConnectionSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetDownstream(); + case 8: + return internalGetUpstream(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 7: + return internalGetMutableDownstream(); + case 8: + return internalGetMutableUpstream(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); + } + + // Construct using flyteidl.core.Compiler.ConnectionSet.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(); + internalGetMutableDownstream().clear(); + internalGetMutableUpstream().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet getDefaultInstanceForType() { + return flyteidl.core.Compiler.ConnectionSet.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet build() { + flyteidl.core.Compiler.ConnectionSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet buildPartial() { + flyteidl.core.Compiler.ConnectionSet result = new flyteidl.core.Compiler.ConnectionSet(this); + int from_bitField0_ = bitField0_; + result.downstream_ = internalGetDownstream(); + result.downstream_.makeImmutable(); + result.upstream_ = internalGetUpstream(); + result.upstream_.makeImmutable(); + 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 flyteidl.core.Compiler.ConnectionSet) { + return mergeFrom((flyteidl.core.Compiler.ConnectionSet)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet other) { + if (other == flyteidl.core.Compiler.ConnectionSet.getDefaultInstance()) return this; + internalGetMutableDownstream().mergeFrom( + other.internalGetDownstream()); + internalGetMutableUpstream().mergeFrom( + other.internalGetUpstream()); + 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 { + flyteidl.core.Compiler.ConnectionSet parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.ConnectionSet) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; + private com.google.protobuf.MapField + internalGetDownstream() { + if (downstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DownstreamDefaultEntryHolder.defaultEntry); + } + return downstream_; + } + private com.google.protobuf.MapField + internalGetMutableDownstream() { + onChanged();; + if (downstream_ == null) { + downstream_ = com.google.protobuf.MapField.newMapField( + DownstreamDefaultEntryHolder.defaultEntry); + } + if (!downstream_.isMutable()) { + downstream_ = downstream_.copy(); + } + return downstream_; + } + + public int getDownstreamCount() { + return internalGetDownstream().getMap().size(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public boolean containsDownstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetDownstream().getMap().containsKey(key); + } + /** + * Use {@link #getDownstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getDownstream() { + return getDownstreamMap(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public java.util.Map getDownstreamMap() { + return internalGetDownstream().getMap(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDownstream() { + internalGetMutableDownstream().getMutableMap() + .clear(); + return this; + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public Builder removeDownstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableDownstream().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableDownstream() { + return internalGetMutableDownstream().getMutableMap(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + public Builder putDownstream( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableDownstream().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public Builder putAllDownstream( + java.util.Map values) { + internalGetMutableDownstream().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; + private com.google.protobuf.MapField + internalGetUpstream() { + if (upstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UpstreamDefaultEntryHolder.defaultEntry); + } + return upstream_; + } + private com.google.protobuf.MapField + internalGetMutableUpstream() { + onChanged();; + if (upstream_ == null) { + upstream_ = com.google.protobuf.MapField.newMapField( + UpstreamDefaultEntryHolder.defaultEntry); + } + if (!upstream_.isMutable()) { + upstream_ = upstream_.copy(); + } + return upstream_; + } + + public int getUpstreamCount() { + return internalGetUpstream().getMap().size(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public boolean containsUpstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetUpstream().getMap().containsKey(key); + } + /** + * Use {@link #getUpstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getUpstream() { + return getUpstreamMap(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public java.util.Map getUpstreamMap() { + return internalGetUpstream().getMap(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearUpstream() { + internalGetMutableUpstream().getMutableMap() + .clear(); + return this; + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public Builder removeUpstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableUpstream().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableUpstream() { + return internalGetMutableUpstream().getMutableMap(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + public Builder putUpstream( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableUpstream().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public Builder putAllUpstream( + java.util.Map values) { + internalGetMutableUpstream().getMutableMap() + .putAll(values); + 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:flyteidl.core.ConnectionSet) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet) + private static final flyteidl.core.Compiler.ConnectionSet DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet(); + } + + public static flyteidl.core.Compiler.ConnectionSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectionSet(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 flyteidl.core.Compiler.ConnectionSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompiledWorkflowOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplate getTemplate(); + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); + + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + boolean hasConnections(); + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + flyteidl.core.Compiler.ConnectionSet getConnections(); + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder(); + } + /** + *
+   * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
+   * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflow} + */ + public static final class CompiledWorkflow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflow) + CompiledWorkflowOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompiledWorkflow.newBuilder() to construct. + private CompiledWorkflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompiledWorkflow() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompiledWorkflow( + 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: { + flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Compiler.ConnectionSet.Builder subBuilder = null; + if (connections_ != null) { + subBuilder = connections_.toBuilder(); + } + connections_ = input.readMessage(flyteidl.core.Compiler.ConnectionSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connections_); + connections_ = 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 flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); + } + + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.WorkflowTemplate template_; + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + public static final int CONNECTIONS_FIELD_NUMBER = 2; + private flyteidl.core.Compiler.ConnectionSet connections_; + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public boolean hasConnections() { + return connections_ != null; + } + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSet getConnections() { + return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; + } + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { + return getConnections(); + } + + 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 (template_ != null) { + output.writeMessage(1, getTemplate()); + } + if (connections_ != null) { + output.writeMessage(2, getConnections()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + if (connections_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConnections()); + } + 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 flyteidl.core.Compiler.CompiledWorkflow)) { + return super.equals(obj); + } + flyteidl.core.Compiler.CompiledWorkflow other = (flyteidl.core.Compiler.CompiledWorkflow) obj; + + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) return false; + } + if (hasConnections() != other.hasConnections()) return false; + if (hasConnections()) { + if (!getConnections() + .equals(other.getConnections())) 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 (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + if (hasConnections()) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnections().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflow 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 flyteidl.core.Compiler.CompiledWorkflow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflow 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 flyteidl.core.Compiler.CompiledWorkflow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflow 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(flyteidl.core.Compiler.CompiledWorkflow 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; + } + /** + *
+     * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
+     * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflow) + flyteidl.core.Compiler.CompiledWorkflowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); + } + + // Construct using flyteidl.core.Compiler.CompiledWorkflow.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 (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + if (connectionsBuilder_ == null) { + connections_ = null; + } else { + connections_ = null; + connectionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { + return flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflow build() { + flyteidl.core.Compiler.CompiledWorkflow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflow buildPartial() { + flyteidl.core.Compiler.CompiledWorkflow result = new flyteidl.core.Compiler.CompiledWorkflow(this); + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + if (connectionsBuilder_ == null) { + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.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 flyteidl.core.Compiler.CompiledWorkflow) { + return mergeFrom((flyteidl.core.Compiler.CompiledWorkflow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflow other) { + if (other == flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + if (other.hasConnections()) { + mergeConnections(other.getConnections()); + } + 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 { + flyteidl.core.Compiler.CompiledWorkflow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.CompiledWorkflow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Workflow.WorkflowTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + + private flyteidl.core.Compiler.ConnectionSet connections_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> connectionsBuilder_; + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public boolean hasConnections() { + return connectionsBuilder_ != null || connections_ != null; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSet getConnections() { + if (connectionsBuilder_ == null) { + return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; + } else { + return connectionsBuilder_.getMessage(); + } + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder setConnections(flyteidl.core.Compiler.ConnectionSet value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connections_ = value; + onChanged(); + } else { + connectionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder setConnections( + flyteidl.core.Compiler.ConnectionSet.Builder builderForValue) { + if (connectionsBuilder_ == null) { + connections_ = builderForValue.build(); + onChanged(); + } else { + connectionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder mergeConnections(flyteidl.core.Compiler.ConnectionSet value) { + if (connectionsBuilder_ == null) { + if (connections_ != null) { + connections_ = + flyteidl.core.Compiler.ConnectionSet.newBuilder(connections_).mergeFrom(value).buildPartial(); + } else { + connections_ = value; + } + onChanged(); + } else { + connectionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = null; + onChanged(); + } else { + connections_ = null; + connectionsBuilder_ = null; + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSet.Builder getConnectionsBuilder() { + + onChanged(); + return getConnectionsFieldBuilder().getBuilder(); + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilder(); + } else { + return connections_ == null ? + flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; + } + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> + getConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder>( + getConnections(), + getParentForChildren(), + isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + @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:flyteidl.core.CompiledWorkflow) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflow) + private static final flyteidl.core.Compiler.CompiledWorkflow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflow(); + } + + public static flyteidl.core.Compiler.CompiledWorkflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompiledWorkflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompiledWorkflow(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 flyteidl.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompiledTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplate getTemplate(); + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); + } + /** + *
+   * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
+   * 
+ * + * Protobuf type {@code flyteidl.core.CompiledTask} + */ + public static final class CompiledTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledTask) + CompiledTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompiledTask.newBuilder() to construct. + private CompiledTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompiledTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompiledTask( + 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: { + flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = 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 flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); + } + + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Tasks.TaskTemplate template_; + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + 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 (template_ != null) { + output.writeMessage(1, getTemplate()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + 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 flyteidl.core.Compiler.CompiledTask)) { + return super.equals(obj); + } + flyteidl.core.Compiler.CompiledTask other = (flyteidl.core.Compiler.CompiledTask) obj; + + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) 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 (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.CompiledTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledTask 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 flyteidl.core.Compiler.CompiledTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledTask 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 flyteidl.core.Compiler.CompiledTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledTask 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(flyteidl.core.Compiler.CompiledTask 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; + } + /** + *
+     * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
+     * 
+ * + * Protobuf type {@code flyteidl.core.CompiledTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledTask) + flyteidl.core.Compiler.CompiledTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); + } + + // Construct using flyteidl.core.Compiler.CompiledTask.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 (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledTask getDefaultInstanceForType() { + return flyteidl.core.Compiler.CompiledTask.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledTask build() { + flyteidl.core.Compiler.CompiledTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledTask buildPartial() { + flyteidl.core.Compiler.CompiledTask result = new flyteidl.core.Compiler.CompiledTask(this); + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.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 flyteidl.core.Compiler.CompiledTask) { + return mergeFrom((flyteidl.core.Compiler.CompiledTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.CompiledTask other) { + if (other == flyteidl.core.Compiler.CompiledTask.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + 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 { + flyteidl.core.Compiler.CompiledTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.CompiledTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Tasks.TaskTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + @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:flyteidl.core.CompiledTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledTask) + private static final flyteidl.core.Compiler.CompiledTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledTask(); + } + + public static flyteidl.core.Compiler.CompiledTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompiledTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompiledTask(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 flyteidl.core.Compiler.CompiledTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompiledWorkflowClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflowClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + boolean hasPrimary(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + flyteidl.core.Compiler.CompiledWorkflow getPrimary(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder(); + + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + java.util.List + getSubWorkflowsList(); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + int getSubWorkflowsCount(); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + java.util.List + getSubWorkflowsOrBuilderList(); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( + int index); + + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + java.util.List + getTasksList(); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + flyteidl.core.Compiler.CompiledTask getTasks(int index); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + int getTasksCount(); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( + int index); + } + /** + *
+   * A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
+   * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
+   * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
+   * compiled subworkflows.
+   * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} + */ + public static final class CompiledWorkflowClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflowClosure) + CompiledWorkflowClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompiledWorkflowClosure.newBuilder() to construct. + private CompiledWorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompiledWorkflowClosure() { + subWorkflows_ = java.util.Collections.emptyList(); + tasks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompiledWorkflowClosure( + 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: { + flyteidl.core.Compiler.CompiledWorkflow.Builder subBuilder = null; + if (primary_ != null) { + subBuilder = primary_.toBuilder(); + } + primary_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(primary_); + primary_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + subWorkflows_.add( + input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + tasks_.add( + input.readMessage(flyteidl.core.Compiler.CompiledTask.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_ & 0x00000002) != 0)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); + } + + private int bitField0_; + public static final int PRIMARY_FIELD_NUMBER = 1; + private flyteidl.core.Compiler.CompiledWorkflow primary_; + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public boolean hasPrimary() { + return primary_ != null; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { + return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { + return getPrimary(); + } + + public static final int SUB_WORKFLOWS_FIELD_NUMBER = 2; + private java.util.List subWorkflows_; + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + return subWorkflows_; + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + return subWorkflows_; + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + return subWorkflows_.size(); + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { + return subWorkflows_.get(index); + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( + int index) { + return subWorkflows_.get(index); + } + + public static final int TASKS_FIELD_NUMBER = 3; + private java.util.List tasks_; + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( + int index) { + return tasks_.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 (primary_ != null) { + output.writeMessage(1, getPrimary()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + output.writeMessage(2, subWorkflows_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(3, tasks_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (primary_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPrimary()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, subWorkflows_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, tasks_.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 flyteidl.core.Compiler.CompiledWorkflowClosure)) { + return super.equals(obj); + } + flyteidl.core.Compiler.CompiledWorkflowClosure other = (flyteidl.core.Compiler.CompiledWorkflowClosure) obj; + + if (hasPrimary() != other.hasPrimary()) return false; + if (hasPrimary()) { + if (!getPrimary() + .equals(other.getPrimary())) return false; + } + if (!getSubWorkflowsList() + .equals(other.getSubWorkflowsList())) return false; + if (!getTasksList() + .equals(other.getTasksList())) 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 (hasPrimary()) { + hash = (37 * hash) + PRIMARY_FIELD_NUMBER; + hash = (53 * hash) + getPrimary().hashCode(); + } + if (getSubWorkflowsCount() > 0) { + hash = (37 * hash) + SUB_WORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getSubWorkflowsList().hashCode(); + } + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure 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 flyteidl.core.Compiler.CompiledWorkflowClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure 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 flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure 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(flyteidl.core.Compiler.CompiledWorkflowClosure 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 Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
+     * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
+     * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
+     * compiled subworkflows.
+     * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflowClosure) + flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); + } + + // Construct using flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSubWorkflowsFieldBuilder(); + getTasksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (primaryBuilder_ == null) { + primary_ = null; + } else { + primary_ = null; + primaryBuilder_ = null; + } + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + subWorkflowsBuilder_.clear(); + } + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + tasksBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { + return flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflowClosure build() { + flyteidl.core.Compiler.CompiledWorkflowClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflowClosure buildPartial() { + flyteidl.core.Compiler.CompiledWorkflowClosure result = new flyteidl.core.Compiler.CompiledWorkflowClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (primaryBuilder_ == null) { + result.primary_ = primary_; + } else { + result.primary_ = primaryBuilder_.build(); + } + if (subWorkflowsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.subWorkflows_ = subWorkflows_; + } else { + result.subWorkflows_ = subWorkflowsBuilder_.build(); + } + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.core.Compiler.CompiledWorkflowClosure) { + return mergeFrom((flyteidl.core.Compiler.CompiledWorkflowClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflowClosure other) { + if (other == flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance()) return this; + if (other.hasPrimary()) { + mergePrimary(other.getPrimary()); + } + if (subWorkflowsBuilder_ == null) { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflows_.isEmpty()) { + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubWorkflowsIsMutable(); + subWorkflows_.addAll(other.subWorkflows_); + } + onChanged(); + } + } else { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflowsBuilder_.isEmpty()) { + subWorkflowsBuilder_.dispose(); + subWorkflowsBuilder_ = null; + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + subWorkflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubWorkflowsFieldBuilder() : null; + } else { + subWorkflowsBuilder_.addAllMessages(other.subWorkflows_); + } + } + } + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000004); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + 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 { + flyteidl.core.Compiler.CompiledWorkflowClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.CompiledWorkflowClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.Compiler.CompiledWorkflow primary_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> primaryBuilder_; + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public boolean hasPrimary() { + return primaryBuilder_ != null || primary_ != null; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { + if (primaryBuilder_ == null) { + return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; + } else { + return primaryBuilder_.getMessage(); + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder setPrimary(flyteidl.core.Compiler.CompiledWorkflow value) { + if (primaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + primary_ = value; + onChanged(); + } else { + primaryBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder setPrimary( + flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (primaryBuilder_ == null) { + primary_ = builderForValue.build(); + onChanged(); + } else { + primaryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder mergePrimary(flyteidl.core.Compiler.CompiledWorkflow value) { + if (primaryBuilder_ == null) { + if (primary_ != null) { + primary_ = + flyteidl.core.Compiler.CompiledWorkflow.newBuilder(primary_).mergeFrom(value).buildPartial(); + } else { + primary_ = value; + } + onChanged(); + } else { + primaryBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder clearPrimary() { + if (primaryBuilder_ == null) { + primary_ = null; + onChanged(); + } else { + primary_ = null; + primaryBuilder_ = null; + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder getPrimaryBuilder() { + + onChanged(); + return getPrimaryFieldBuilder().getBuilder(); + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { + if (primaryBuilder_ != null) { + return primaryBuilder_.getMessageOrBuilder(); + } else { + return primary_ == null ? + flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> + getPrimaryFieldBuilder() { + if (primaryBuilder_ == null) { + primaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( + getPrimary(), + getParentForChildren(), + isClean()); + primary_ = null; + } + return primaryBuilder_; + } + + private java.util.List subWorkflows_ = + java.util.Collections.emptyList(); + private void ensureSubWorkflowsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = new java.util.ArrayList(subWorkflows_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> subWorkflowsBuilder_; + + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + if (subWorkflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subWorkflows_); + } else { + return subWorkflowsBuilder_.getMessageList(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.size(); + } else { + return subWorkflowsBuilder_.getCount(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); + } else { + return subWorkflowsBuilder_.getMessage(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows(flyteidl.core.Compiler.CompiledWorkflow value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows( + flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addAllSubWorkflows( + java.lang.Iterable values) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subWorkflows_); + onChanged(); + } else { + subWorkflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder clearSubWorkflows() { + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + subWorkflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder removeSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.remove(index); + onChanged(); + } else { + subWorkflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder getSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( + int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); } else { + return subWorkflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + if (subWorkflowsBuilder_ != null) { + return subWorkflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subWorkflows_); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder() { + return getSubWorkflowsFieldBuilder().addBuilder( + flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().addBuilder( + index, flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsBuilderList() { + return getSubWorkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> + getSubWorkflowsFieldBuilder() { + if (subWorkflowsBuilder_ == null) { + subWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( + subWorkflows_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + subWorkflows_ = null; + } + return subWorkflowsBuilder_; + } + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> tasksBuilder_; + + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder setTasks( + int index, flyteidl.core.Compiler.CompiledTask value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder setTasks( + int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks(flyteidl.core.Compiler.CompiledTask value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks( + int index, flyteidl.core.Compiler.CompiledTask value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks( + flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks( + int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( + tasks_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + @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:flyteidl.core.CompiledWorkflowClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflowClosure) + private static final flyteidl.core.Compiler.CompiledWorkflowClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflowClosure(); + } + + public static flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompiledWorkflowClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompiledWorkflowClosure(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 flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CompiledWorkflow_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CompiledTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CompiledTask_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CompiledWorkflowClosure_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\034flyteidl/core/compiler.proto\022\rflyteidl" + + ".core\032\034flyteidl/core/workflow.proto\032\031fly" + + "teidl/core/tasks.proto\"\324\002\n\rConnectionSet" + + "\022@\n\ndownstream\030\007 \003(\0132,.flyteidl.core.Con" + + "nectionSet.DownstreamEntry\022<\n\010upstream\030\010" + + " \003(\0132*.flyteidl.core.ConnectionSet.Upstr" + + "eamEntry\032\025\n\006IdList\022\013\n\003ids\030\001 \003(\t\032V\n\017Downs" + + "treamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#" + + ".flyteidl.core.ConnectionSet.IdList:\0028\001\032" + + "T\n\rUpstreamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002" + + " \001(\0132#.flyteidl.core.ConnectionSet.IdLis" + + "t:\0028\001\"x\n\020CompiledWorkflow\0221\n\010template\030\001 " + + "\001(\0132\037.flyteidl.core.WorkflowTemplate\0221\n\013" + + "connections\030\002 \001(\0132\034.flyteidl.core.Connec" + + "tionSet\"=\n\014CompiledTask\022-\n\010template\030\001 \001(" + + "\0132\033.flyteidl.core.TaskTemplate\"\257\001\n\027Compi" + + "ledWorkflowClosure\0220\n\007primary\030\001 \001(\0132\037.fl" + + "yteidl.core.CompiledWorkflow\0226\n\rsub_work" + + "flows\030\002 \003(\0132\037.flyteidl.core.CompiledWork" + + "flow\022*\n\005tasks\030\003 \003(\0132\033.flyteidl.core.Comp" + + "iledTaskB2Z0github.com/lyft/flyteidl/gen" + + "/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Workflow.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_ConnectionSet_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_descriptor, + new java.lang.String[] { "Downstream", "Upstream", }); + internal_static_flyteidl_core_ConnectionSet_IdList_descriptor = + internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_IdList_descriptor, + new java.lang.String[] { "Ids", }); + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor = + internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(1); + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor = + internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(2); + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_CompiledWorkflow_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CompiledWorkflow_descriptor, + new java.lang.String[] { "Template", "Connections", }); + internal_static_flyteidl_core_CompiledTask_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_CompiledTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CompiledTask_descriptor, + new java.lang.String[] { "Template", }); + internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor, + new java.lang.String[] { "Primary", "SubWorkflows", "Tasks", }); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Condition.java b/gen/pb-java/flyteidl/core/Condition.java new file mode 100644 index 000000000..fab054101 --- /dev/null +++ b/gen/pb-java/flyteidl/core/Condition.java @@ -0,0 +1,4070 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/condition.proto + +package flyteidl.core; + +public final class Condition { + private Condition() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ComparisonExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ComparisonExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + int getOperatorValue(); + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + flyteidl.core.Condition.ComparisonExpression.Operator getOperator(); + + /** + * .flyteidl.core.Operand left_value = 2; + */ + boolean hasLeftValue(); + /** + * .flyteidl.core.Operand left_value = 2; + */ + flyteidl.core.Condition.Operand getLeftValue(); + /** + * .flyteidl.core.Operand left_value = 2; + */ + flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder(); + + /** + * .flyteidl.core.Operand right_value = 3; + */ + boolean hasRightValue(); + /** + * .flyteidl.core.Operand right_value = 3; + */ + flyteidl.core.Condition.Operand getRightValue(); + /** + * .flyteidl.core.Operand right_value = 3; + */ + flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder(); + } + /** + *
+   * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
+   * Each expression results in a boolean result.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ComparisonExpression} + */ + public static final class ComparisonExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ComparisonExpression) + ComparisonExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ComparisonExpression.newBuilder() to construct. + private ComparisonExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ComparisonExpression() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ComparisonExpression( + 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 8: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + case 18: { + flyteidl.core.Condition.Operand.Builder subBuilder = null; + if (leftValue_ != null) { + subBuilder = leftValue_.toBuilder(); + } + leftValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(leftValue_); + leftValue_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Condition.Operand.Builder subBuilder = null; + if (rightValue_ != null) { + subBuilder = rightValue_.toBuilder(); + } + rightValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rightValue_); + rightValue_ = 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 flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); + } + + /** + *
+     * Binary Operator for each expression
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ComparisonExpression.Operator} + */ + public enum Operator + implements com.google.protobuf.ProtocolMessageEnum { + /** + * EQ = 0; + */ + EQ(0), + /** + * NEQ = 1; + */ + NEQ(1), + /** + *
+       * Greater Than
+       * 
+ * + * GT = 2; + */ + GT(2), + /** + * GTE = 3; + */ + GTE(3), + /** + *
+       * Less Than
+       * 
+ * + * LT = 4; + */ + LT(4), + /** + * LTE = 5; + */ + LTE(5), + UNRECOGNIZED(-1), + ; + + /** + * EQ = 0; + */ + public static final int EQ_VALUE = 0; + /** + * NEQ = 1; + */ + public static final int NEQ_VALUE = 1; + /** + *
+       * Greater Than
+       * 
+ * + * GT = 2; + */ + public static final int GT_VALUE = 2; + /** + * GTE = 3; + */ + public static final int GTE_VALUE = 3; + /** + *
+       * Less Than
+       * 
+ * + * LT = 4; + */ + public static final int LT_VALUE = 4; + /** + * LTE = 5; + */ + public static final int LTE_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Operator valueOf(int value) { + return forNumber(value); + } + + public static Operator forNumber(int value) { + switch (value) { + case 0: return EQ; + case 1: return NEQ; + case 2: return GT; + case 3: return GTE; + case 4: return LT; + case 5: return LTE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Operator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operator findValueByNumber(int number) { + return Operator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Condition.ComparisonExpression.getDescriptor().getEnumTypes().get(0); + } + + private static final Operator[] VALUES = values(); + + public static Operator 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 Operator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ComparisonExpression.Operator) + } + + public static final int OPERATOR_FIELD_NUMBER = 1; + private int operator_; + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { + @SuppressWarnings("deprecation") + flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; + } + + public static final int LEFT_VALUE_FIELD_NUMBER = 2; + private flyteidl.core.Condition.Operand leftValue_; + /** + * .flyteidl.core.Operand left_value = 2; + */ + public boolean hasLeftValue() { + return leftValue_ != null; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.Operand getLeftValue() { + return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { + return getLeftValue(); + } + + public static final int RIGHT_VALUE_FIELD_NUMBER = 3; + private flyteidl.core.Condition.Operand rightValue_; + /** + * .flyteidl.core.Operand right_value = 3; + */ + public boolean hasRightValue() { + return rightValue_ != null; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.Operand getRightValue() { + return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { + return getRightValue(); + } + + 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 (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { + output.writeEnum(1, operator_); + } + if (leftValue_ != null) { + output.writeMessage(2, getLeftValue()); + } + if (rightValue_ != null) { + output.writeMessage(3, getRightValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operator_); + } + if (leftValue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLeftValue()); + } + if (rightValue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRightValue()); + } + 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 flyteidl.core.Condition.ComparisonExpression)) { + return super.equals(obj); + } + flyteidl.core.Condition.ComparisonExpression other = (flyteidl.core.Condition.ComparisonExpression) obj; + + if (operator_ != other.operator_) return false; + if (hasLeftValue() != other.hasLeftValue()) return false; + if (hasLeftValue()) { + if (!getLeftValue() + .equals(other.getLeftValue())) return false; + } + if (hasRightValue() != other.hasRightValue()) return false; + if (hasRightValue()) { + if (!getRightValue() + .equals(other.getRightValue())) 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) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (hasLeftValue()) { + hash = (37 * hash) + LEFT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getLeftValue().hashCode(); + } + if (hasRightValue()) { + hash = (37 * hash) + RIGHT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRightValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ComparisonExpression 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 flyteidl.core.Condition.ComparisonExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ComparisonExpression 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 flyteidl.core.Condition.ComparisonExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ComparisonExpression 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(flyteidl.core.Condition.ComparisonExpression 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; + } + /** + *
+     * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
+     * Each expression results in a boolean result.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ComparisonExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ComparisonExpression) + flyteidl.core.Condition.ComparisonExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); + } + + // Construct using flyteidl.core.Condition.ComparisonExpression.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(); + operator_ = 0; + + if (leftValueBuilder_ == null) { + leftValue_ = null; + } else { + leftValue_ = null; + leftValueBuilder_ = null; + } + if (rightValueBuilder_ == null) { + rightValue_ = null; + } else { + rightValue_ = null; + rightValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; + } + + @java.lang.Override + public flyteidl.core.Condition.ComparisonExpression getDefaultInstanceForType() { + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Condition.ComparisonExpression build() { + flyteidl.core.Condition.ComparisonExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Condition.ComparisonExpression buildPartial() { + flyteidl.core.Condition.ComparisonExpression result = new flyteidl.core.Condition.ComparisonExpression(this); + result.operator_ = operator_; + if (leftValueBuilder_ == null) { + result.leftValue_ = leftValue_; + } else { + result.leftValue_ = leftValueBuilder_.build(); + } + if (rightValueBuilder_ == null) { + result.rightValue_ = rightValue_; + } else { + result.rightValue_ = rightValueBuilder_.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 flyteidl.core.Condition.ComparisonExpression) { + return mergeFrom((flyteidl.core.Condition.ComparisonExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.ComparisonExpression other) { + if (other == flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (other.hasLeftValue()) { + mergeLeftValue(other.getLeftValue()); + } + if (other.hasRightValue()) { + mergeRightValue(other.getRightValue()); + } + 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 { + flyteidl.core.Condition.ComparisonExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.ComparisonExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operator_ = 0; + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { + @SuppressWarnings("deprecation") + flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public Builder setOperator(flyteidl.core.Condition.ComparisonExpression.Operator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Condition.Operand leftValue_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> leftValueBuilder_; + /** + * .flyteidl.core.Operand left_value = 2; + */ + public boolean hasLeftValue() { + return leftValueBuilder_ != null || leftValue_ != null; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.Operand getLeftValue() { + if (leftValueBuilder_ == null) { + return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; + } else { + return leftValueBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder setLeftValue(flyteidl.core.Condition.Operand value) { + if (leftValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + leftValue_ = value; + onChanged(); + } else { + leftValueBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder setLeftValue( + flyteidl.core.Condition.Operand.Builder builderForValue) { + if (leftValueBuilder_ == null) { + leftValue_ = builderForValue.build(); + onChanged(); + } else { + leftValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder mergeLeftValue(flyteidl.core.Condition.Operand value) { + if (leftValueBuilder_ == null) { + if (leftValue_ != null) { + leftValue_ = + flyteidl.core.Condition.Operand.newBuilder(leftValue_).mergeFrom(value).buildPartial(); + } else { + leftValue_ = value; + } + onChanged(); + } else { + leftValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder clearLeftValue() { + if (leftValueBuilder_ == null) { + leftValue_ = null; + onChanged(); + } else { + leftValue_ = null; + leftValueBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.Operand.Builder getLeftValueBuilder() { + + onChanged(); + return getLeftValueFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { + if (leftValueBuilder_ != null) { + return leftValueBuilder_.getMessageOrBuilder(); + } else { + return leftValue_ == null ? + flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; + } + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> + getLeftValueFieldBuilder() { + if (leftValueBuilder_ == null) { + leftValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( + getLeftValue(), + getParentForChildren(), + isClean()); + leftValue_ = null; + } + return leftValueBuilder_; + } + + private flyteidl.core.Condition.Operand rightValue_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> rightValueBuilder_; + /** + * .flyteidl.core.Operand right_value = 3; + */ + public boolean hasRightValue() { + return rightValueBuilder_ != null || rightValue_ != null; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.Operand getRightValue() { + if (rightValueBuilder_ == null) { + return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; + } else { + return rightValueBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder setRightValue(flyteidl.core.Condition.Operand value) { + if (rightValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rightValue_ = value; + onChanged(); + } else { + rightValueBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder setRightValue( + flyteidl.core.Condition.Operand.Builder builderForValue) { + if (rightValueBuilder_ == null) { + rightValue_ = builderForValue.build(); + onChanged(); + } else { + rightValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder mergeRightValue(flyteidl.core.Condition.Operand value) { + if (rightValueBuilder_ == null) { + if (rightValue_ != null) { + rightValue_ = + flyteidl.core.Condition.Operand.newBuilder(rightValue_).mergeFrom(value).buildPartial(); + } else { + rightValue_ = value; + } + onChanged(); + } else { + rightValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder clearRightValue() { + if (rightValueBuilder_ == null) { + rightValue_ = null; + onChanged(); + } else { + rightValue_ = null; + rightValueBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.Operand.Builder getRightValueBuilder() { + + onChanged(); + return getRightValueFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { + if (rightValueBuilder_ != null) { + return rightValueBuilder_.getMessageOrBuilder(); + } else { + return rightValue_ == null ? + flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; + } + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> + getRightValueFieldBuilder() { + if (rightValueBuilder_ == null) { + rightValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( + getRightValue(), + getParentForChildren(), + isClean()); + rightValue_ = null; + } + return rightValueBuilder_; + } + @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:flyteidl.core.ComparisonExpression) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ComparisonExpression) + private static final flyteidl.core.Condition.ComparisonExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.ComparisonExpression(); + } + + public static flyteidl.core.Condition.ComparisonExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComparisonExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComparisonExpression(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 flyteidl.core.Condition.ComparisonExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OperandOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Operand) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + boolean hasPrimitive(); + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.Primitive getPrimitive(); + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); + + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + java.lang.String getVar(); + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + com.google.protobuf.ByteString + getVarBytes(); + + public flyteidl.core.Condition.Operand.ValCase getValCase(); + } + /** + *
+   * Defines an operand to a comparison expression.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Operand} + */ + public static final class Operand extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Operand) + OperandOrBuilder { + private static final long serialVersionUID = 0L; + // Use Operand.newBuilder() to construct. + private Operand(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Operand() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Operand( + 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: { + flyteidl.core.Literals.Primitive.Builder subBuilder = null; + if (valCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Primitive) val_).toBuilder(); + } + val_ = + input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) val_); + val_ = subBuilder.buildPartial(); + } + valCase_ = 1; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + valCase_ = 2; + val_ = 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 flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); + } + + private int valCase_ = 0; + private java.lang.Object val_; + public enum ValCase + implements com.google.protobuf.Internal.EnumLite { + PRIMITIVE(1), + VAR(2), + VAL_NOT_SET(0); + private final int value; + private ValCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValCase valueOf(int value) { + return forNumber(value); + } + + public static ValCase forNumber(int value) { + switch (value) { + case 1: return PRIMITIVE; + case 2: return VAR; + case 0: return VAL_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValCase + getValCase() { + return ValCase.forNumber( + valCase_); + } + + public static final int PRIMITIVE_FIELD_NUMBER = 1; + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valCase_ == 1; + } + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + + public static final int VAR_FIELD_NUMBER = 2; + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + 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(); + if (valCase_ == 2) { + val_ = s; + } + return s; + } + } + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valCase_ == 2) { + val_ = 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 (valCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Primitive) val_); + } + if (valCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, val_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Primitive) val_); + } + if (valCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, val_); + } + 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 flyteidl.core.Condition.Operand)) { + return super.equals(obj); + } + flyteidl.core.Condition.Operand other = (flyteidl.core.Condition.Operand) obj; + + if (!getValCase().equals(other.getValCase())) return false; + switch (valCase_) { + case 1: + if (!getPrimitive() + .equals(other.getPrimitive())) return false; + break; + case 2: + if (!getVar() + .equals(other.getVar())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valCase_) { + case 1: + hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; + hash = (53 * hash) + getPrimitive().hashCode(); + break; + case 2: + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.Operand parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.Operand parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.Operand parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.Operand parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.Operand parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.Operand parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.Operand parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.Operand 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 flyteidl.core.Condition.Operand parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.Operand 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 flyteidl.core.Condition.Operand parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.Operand 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(flyteidl.core.Condition.Operand 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; + } + /** + *
+     * Defines an operand to a comparison expression.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Operand} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Operand) + flyteidl.core.Condition.OperandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); + } + + // Construct using flyteidl.core.Condition.Operand.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(); + valCase_ = 0; + val_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; + } + + @java.lang.Override + public flyteidl.core.Condition.Operand getDefaultInstanceForType() { + return flyteidl.core.Condition.Operand.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Condition.Operand build() { + flyteidl.core.Condition.Operand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Condition.Operand buildPartial() { + flyteidl.core.Condition.Operand result = new flyteidl.core.Condition.Operand(this); + if (valCase_ == 1) { + if (primitiveBuilder_ == null) { + result.val_ = val_; + } else { + result.val_ = primitiveBuilder_.build(); + } + } + if (valCase_ == 2) { + result.val_ = val_; + } + result.valCase_ = valCase_; + 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 flyteidl.core.Condition.Operand) { + return mergeFrom((flyteidl.core.Condition.Operand)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.Operand other) { + if (other == flyteidl.core.Condition.Operand.getDefaultInstance()) return this; + switch (other.getValCase()) { + case PRIMITIVE: { + mergePrimitive(other.getPrimitive()); + break; + } + case VAR: { + valCase_ = 2; + val_ = other.val_; + onChanged(); + break; + } + case VAL_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 { + flyteidl.core.Condition.Operand parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.Operand) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valCase_ = 0; + private java.lang.Object val_; + public ValCase + getValCase() { + return ValCase.forNumber( + valCase_); + } + + public Builder clearVal() { + valCase_ = 0; + val_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valCase_ == 1; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (primitiveBuilder_ == null) { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } else { + if (valCase_ == 1) { + return primitiveBuilder_.getMessage(); + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + val_ = value; + onChanged(); + } else { + primitiveBuilder_.setMessage(value); + } + valCase_ = 1; + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive( + flyteidl.core.Literals.Primitive.Builder builderForValue) { + if (primitiveBuilder_ == null) { + val_ = builderForValue.build(); + onChanged(); + } else { + primitiveBuilder_.setMessage(builderForValue.build()); + } + valCase_ = 1; + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (valCase_ == 1 && + val_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { + val_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) val_) + .mergeFrom(value).buildPartial(); + } else { + val_ = value; + } + onChanged(); + } else { + if (valCase_ == 1) { + primitiveBuilder_.mergeFrom(value); + } + primitiveBuilder_.setMessage(value); + } + valCase_ = 1; + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder clearPrimitive() { + if (primitiveBuilder_ == null) { + if (valCase_ == 1) { + valCase_ = 0; + val_ = null; + onChanged(); + } + } else { + if (valCase_ == 1) { + valCase_ = 0; + val_ = null; + } + primitiveBuilder_.clear(); + } + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { + return getPrimitiveFieldBuilder().getBuilder(); + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if ((valCase_ == 1) && (primitiveBuilder_ != null)) { + return primitiveBuilder_.getMessageOrBuilder(); + } else { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> + getPrimitiveFieldBuilder() { + if (primitiveBuilder_ == null) { + if (!(valCase_ == 1)) { + val_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( + (flyteidl.core.Literals.Primitive) val_, + getParentForChildren(), + isClean()); + val_ = null; + } + valCase_ = 1; + onChanged();; + return primitiveBuilder_; + } + + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valCase_ == 2) { + val_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valCase_ == 2) { + val_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valCase_ = 2; + val_ = value; + onChanged(); + return this; + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public Builder clearVar() { + if (valCase_ == 2) { + valCase_ = 0; + val_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valCase_ = 2; + val_ = 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:flyteidl.core.Operand) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Operand) + private static final flyteidl.core.Condition.Operand DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.Operand(); + } + + public static flyteidl.core.Condition.Operand getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Operand parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Operand(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 flyteidl.core.Condition.Operand getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BooleanExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BooleanExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + boolean hasConjunction(); + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + flyteidl.core.Condition.ConjunctionExpression getConjunction(); + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder(); + + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + boolean hasComparison(); + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + flyteidl.core.Condition.ComparisonExpression getComparison(); + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder(); + + public flyteidl.core.Condition.BooleanExpression.ExprCase getExprCase(); + } + /** + *
+   * Defines a boolean expression tree. It can be a simple or a conjunction expression.
+   * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BooleanExpression} + */ + public static final class BooleanExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BooleanExpression) + BooleanExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BooleanExpression.newBuilder() to construct. + private BooleanExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BooleanExpression() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BooleanExpression( + 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: { + flyteidl.core.Condition.ConjunctionExpression.Builder subBuilder = null; + if (exprCase_ == 1) { + subBuilder = ((flyteidl.core.Condition.ConjunctionExpression) expr_).toBuilder(); + } + expr_ = + input.readMessage(flyteidl.core.Condition.ConjunctionExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Condition.ConjunctionExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 1; + break; + } + case 18: { + flyteidl.core.Condition.ComparisonExpression.Builder subBuilder = null; + if (exprCase_ == 2) { + subBuilder = ((flyteidl.core.Condition.ComparisonExpression) expr_).toBuilder(); + } + expr_ = + input.readMessage(flyteidl.core.Condition.ComparisonExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Condition.ComparisonExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 2; + 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 flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + public enum ExprCase + implements com.google.protobuf.Internal.EnumLite { + CONJUNCTION(1), + COMPARISON(2), + EXPR_NOT_SET(0); + private final int value; + private ExprCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: return CONJUNCTION; + case 2: return COMPARISON; + case 0: return EXPR_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ExprCase + getExprCase() { + return ExprCase.forNumber( + exprCase_); + } + + public static final int CONJUNCTION_FIELD_NUMBER = 1; + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public boolean hasConjunction() { + return exprCase_ == 1; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression getConjunction() { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + + public static final int COMPARISON_FIELD_NUMBER = 2; + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public boolean hasComparison() { + return exprCase_ == 2; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpression getComparison() { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (exprCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); + } + if (exprCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Condition.ComparisonExpression) expr_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exprCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); + } + if (exprCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Condition.ComparisonExpression) expr_); + } + 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 flyteidl.core.Condition.BooleanExpression)) { + return super.equals(obj); + } + flyteidl.core.Condition.BooleanExpression other = (flyteidl.core.Condition.BooleanExpression) obj; + + if (!getExprCase().equals(other.getExprCase())) return false; + switch (exprCase_) { + case 1: + if (!getConjunction() + .equals(other.getConjunction())) return false; + break; + case 2: + if (!getComparison() + .equals(other.getComparison())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (exprCase_) { + case 1: + hash = (37 * hash) + CONJUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getConjunction().hashCode(); + break; + case 2: + hash = (37 * hash) + COMPARISON_FIELD_NUMBER; + hash = (53 * hash) + getComparison().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.BooleanExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.BooleanExpression 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 flyteidl.core.Condition.BooleanExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.BooleanExpression 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 flyteidl.core.Condition.BooleanExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.BooleanExpression 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(flyteidl.core.Condition.BooleanExpression 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; + } + /** + *
+     * Defines a boolean expression tree. It can be a simple or a conjunction expression.
+     * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BooleanExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BooleanExpression) + flyteidl.core.Condition.BooleanExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); + } + + // Construct using flyteidl.core.Condition.BooleanExpression.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(); + exprCase_ = 0; + expr_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; + } + + @java.lang.Override + public flyteidl.core.Condition.BooleanExpression getDefaultInstanceForType() { + return flyteidl.core.Condition.BooleanExpression.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Condition.BooleanExpression build() { + flyteidl.core.Condition.BooleanExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Condition.BooleanExpression buildPartial() { + flyteidl.core.Condition.BooleanExpression result = new flyteidl.core.Condition.BooleanExpression(this); + if (exprCase_ == 1) { + if (conjunctionBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = conjunctionBuilder_.build(); + } + } + if (exprCase_ == 2) { + if (comparisonBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = comparisonBuilder_.build(); + } + } + result.exprCase_ = exprCase_; + 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 flyteidl.core.Condition.BooleanExpression) { + return mergeFrom((flyteidl.core.Condition.BooleanExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.BooleanExpression other) { + if (other == flyteidl.core.Condition.BooleanExpression.getDefaultInstance()) return this; + switch (other.getExprCase()) { + case CONJUNCTION: { + mergeConjunction(other.getConjunction()); + break; + } + case COMPARISON: { + mergeComparison(other.getComparison()); + break; + } + case EXPR_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 { + flyteidl.core.Condition.BooleanExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.BooleanExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int exprCase_ = 0; + private java.lang.Object expr_; + public ExprCase + getExprCase() { + return ExprCase.forNumber( + exprCase_); + } + + public Builder clearExpr() { + exprCase_ = 0; + expr_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> conjunctionBuilder_; + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public boolean hasConjunction() { + return exprCase_ == 1; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression getConjunction() { + if (conjunctionBuilder_ == null) { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return conjunctionBuilder_.getMessage(); + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder setConjunction(flyteidl.core.Condition.ConjunctionExpression value) { + if (conjunctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + conjunctionBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder setConjunction( + flyteidl.core.Condition.ConjunctionExpression.Builder builderForValue) { + if (conjunctionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + conjunctionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder mergeConjunction(flyteidl.core.Condition.ConjunctionExpression value) { + if (conjunctionBuilder_ == null) { + if (exprCase_ == 1 && + expr_ != flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) { + expr_ = flyteidl.core.Condition.ConjunctionExpression.newBuilder((flyteidl.core.Condition.ConjunctionExpression) expr_) + .mergeFrom(value).buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + conjunctionBuilder_.mergeFrom(value); + } + conjunctionBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder clearConjunction() { + if (conjunctionBuilder_ == null) { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + } + conjunctionBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression.Builder getConjunctionBuilder() { + return getConjunctionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { + if ((exprCase_ == 1) && (conjunctionBuilder_ != null)) { + return conjunctionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> + getConjunctionFieldBuilder() { + if (conjunctionBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + conjunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder>( + (flyteidl.core.Condition.ConjunctionExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged();; + return conjunctionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> comparisonBuilder_; + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public boolean hasComparison() { + return exprCase_ == 2; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpression getComparison() { + if (comparisonBuilder_ == null) { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return comparisonBuilder_.getMessage(); + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder setComparison(flyteidl.core.Condition.ComparisonExpression value) { + if (comparisonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + comparisonBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder setComparison( + flyteidl.core.Condition.ComparisonExpression.Builder builderForValue) { + if (comparisonBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + comparisonBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder mergeComparison(flyteidl.core.Condition.ComparisonExpression value) { + if (comparisonBuilder_ == null) { + if (exprCase_ == 2 && + expr_ != flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) { + expr_ = flyteidl.core.Condition.ComparisonExpression.newBuilder((flyteidl.core.Condition.ComparisonExpression) expr_) + .mergeFrom(value).buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + comparisonBuilder_.mergeFrom(value); + } + comparisonBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder clearComparison() { + if (comparisonBuilder_ == null) { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + } + comparisonBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpression.Builder getComparisonBuilder() { + return getComparisonFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { + if ((exprCase_ == 2) && (comparisonBuilder_ != null)) { + return comparisonBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> + getComparisonFieldBuilder() { + if (comparisonBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + comparisonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder>( + (flyteidl.core.Condition.ComparisonExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged();; + return comparisonBuilder_; + } + @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:flyteidl.core.BooleanExpression) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BooleanExpression) + private static final flyteidl.core.Condition.BooleanExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.BooleanExpression(); + } + + public static flyteidl.core.Condition.BooleanExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BooleanExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BooleanExpression(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 flyteidl.core.Condition.BooleanExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConjunctionExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ConjunctionExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + int getOperatorValue(); + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator(); + + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + boolean hasLeftExpression(); + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + flyteidl.core.Condition.BooleanExpression getLeftExpression(); + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder(); + + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + boolean hasRightExpression(); + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + flyteidl.core.Condition.BooleanExpression getRightExpression(); + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder(); + } + /** + *
+   * Defines a conjunction expression of two boolean expressions.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ConjunctionExpression} + */ + public static final class ConjunctionExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ConjunctionExpression) + ConjunctionExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConjunctionExpression.newBuilder() to construct. + private ConjunctionExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConjunctionExpression() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConjunctionExpression( + 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 8: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + case 18: { + flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; + if (leftExpression_ != null) { + subBuilder = leftExpression_.toBuilder(); + } + leftExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(leftExpression_); + leftExpression_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; + if (rightExpression_ != null) { + subBuilder = rightExpression_.toBuilder(); + } + rightExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rightExpression_); + rightExpression_ = 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 flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); + } + + /** + *
+     * Nested conditions. They can be conjoined using AND / OR
+     * Order of evaluation is not important as the operators are Commutative
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ConjunctionExpression.LogicalOperator} + */ + public enum LogicalOperator + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Conjunction
+       * 
+ * + * AND = 0; + */ + AND(0), + /** + * OR = 1; + */ + OR(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Conjunction
+       * 
+ * + * AND = 0; + */ + public static final int AND_VALUE = 0; + /** + * OR = 1; + */ + public static final int OR_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LogicalOperator valueOf(int value) { + return forNumber(value); + } + + public static LogicalOperator forNumber(int value) { + switch (value) { + case 0: return AND; + case 1: return OR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LogicalOperator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LogicalOperator findValueByNumber(int number) { + return LogicalOperator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Condition.ConjunctionExpression.getDescriptor().getEnumTypes().get(0); + } + + private static final LogicalOperator[] VALUES = values(); + + public static LogicalOperator 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 LogicalOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ConjunctionExpression.LogicalOperator) + } + + public static final int OPERATOR_FIELD_NUMBER = 1; + private int operator_; + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { + @SuppressWarnings("deprecation") + flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; + } + + public static final int LEFT_EXPRESSION_FIELD_NUMBER = 2; + private flyteidl.core.Condition.BooleanExpression leftExpression_; + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public boolean hasLeftExpression() { + return leftExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpression getLeftExpression() { + return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { + return getLeftExpression(); + } + + public static final int RIGHT_EXPRESSION_FIELD_NUMBER = 3; + private flyteidl.core.Condition.BooleanExpression rightExpression_; + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public boolean hasRightExpression() { + return rightExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpression getRightExpression() { + return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { + return getRightExpression(); + } + + 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 (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { + output.writeEnum(1, operator_); + } + if (leftExpression_ != null) { + output.writeMessage(2, getLeftExpression()); + } + if (rightExpression_ != null) { + output.writeMessage(3, getRightExpression()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operator_); + } + if (leftExpression_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLeftExpression()); + } + if (rightExpression_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRightExpression()); + } + 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 flyteidl.core.Condition.ConjunctionExpression)) { + return super.equals(obj); + } + flyteidl.core.Condition.ConjunctionExpression other = (flyteidl.core.Condition.ConjunctionExpression) obj; + + if (operator_ != other.operator_) return false; + if (hasLeftExpression() != other.hasLeftExpression()) return false; + if (hasLeftExpression()) { + if (!getLeftExpression() + .equals(other.getLeftExpression())) return false; + } + if (hasRightExpression() != other.hasRightExpression()) return false; + if (hasRightExpression()) { + if (!getRightExpression() + .equals(other.getRightExpression())) 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) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (hasLeftExpression()) { + hash = (37 * hash) + LEFT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getLeftExpression().hashCode(); + } + if (hasRightExpression()) { + hash = (37 * hash) + RIGHT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getRightExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ConjunctionExpression 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 flyteidl.core.Condition.ConjunctionExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ConjunctionExpression 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 flyteidl.core.Condition.ConjunctionExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ConjunctionExpression 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(flyteidl.core.Condition.ConjunctionExpression 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; + } + /** + *
+     * Defines a conjunction expression of two boolean expressions.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ConjunctionExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ConjunctionExpression) + flyteidl.core.Condition.ConjunctionExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); + } + + // Construct using flyteidl.core.Condition.ConjunctionExpression.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(); + operator_ = 0; + + if (leftExpressionBuilder_ == null) { + leftExpression_ = null; + } else { + leftExpression_ = null; + leftExpressionBuilder_ = null; + } + if (rightExpressionBuilder_ == null) { + rightExpression_ = null; + } else { + rightExpression_ = null; + rightExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; + } + + @java.lang.Override + public flyteidl.core.Condition.ConjunctionExpression getDefaultInstanceForType() { + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Condition.ConjunctionExpression build() { + flyteidl.core.Condition.ConjunctionExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Condition.ConjunctionExpression buildPartial() { + flyteidl.core.Condition.ConjunctionExpression result = new flyteidl.core.Condition.ConjunctionExpression(this); + result.operator_ = operator_; + if (leftExpressionBuilder_ == null) { + result.leftExpression_ = leftExpression_; + } else { + result.leftExpression_ = leftExpressionBuilder_.build(); + } + if (rightExpressionBuilder_ == null) { + result.rightExpression_ = rightExpression_; + } else { + result.rightExpression_ = rightExpressionBuilder_.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 flyteidl.core.Condition.ConjunctionExpression) { + return mergeFrom((flyteidl.core.Condition.ConjunctionExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.ConjunctionExpression other) { + if (other == flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (other.hasLeftExpression()) { + mergeLeftExpression(other.getLeftExpression()); + } + if (other.hasRightExpression()) { + mergeRightExpression(other.getRightExpression()); + } + 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 { + flyteidl.core.Condition.ConjunctionExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.ConjunctionExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operator_ = 0; + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { + @SuppressWarnings("deprecation") + flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public Builder setOperator(flyteidl.core.Condition.ConjunctionExpression.LogicalOperator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Condition.BooleanExpression leftExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> leftExpressionBuilder_; + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public boolean hasLeftExpression() { + return leftExpressionBuilder_ != null || leftExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpression getLeftExpression() { + if (leftExpressionBuilder_ == null) { + return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; + } else { + return leftExpressionBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder setLeftExpression(flyteidl.core.Condition.BooleanExpression value) { + if (leftExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + leftExpression_ = value; + onChanged(); + } else { + leftExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder setLeftExpression( + flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { + if (leftExpressionBuilder_ == null) { + leftExpression_ = builderForValue.build(); + onChanged(); + } else { + leftExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder mergeLeftExpression(flyteidl.core.Condition.BooleanExpression value) { + if (leftExpressionBuilder_ == null) { + if (leftExpression_ != null) { + leftExpression_ = + flyteidl.core.Condition.BooleanExpression.newBuilder(leftExpression_).mergeFrom(value).buildPartial(); + } else { + leftExpression_ = value; + } + onChanged(); + } else { + leftExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder clearLeftExpression() { + if (leftExpressionBuilder_ == null) { + leftExpression_ = null; + onChanged(); + } else { + leftExpression_ = null; + leftExpressionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpression.Builder getLeftExpressionBuilder() { + + onChanged(); + return getLeftExpressionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { + if (leftExpressionBuilder_ != null) { + return leftExpressionBuilder_.getMessageOrBuilder(); + } else { + return leftExpression_ == null ? + flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; + } + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> + getLeftExpressionFieldBuilder() { + if (leftExpressionBuilder_ == null) { + leftExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( + getLeftExpression(), + getParentForChildren(), + isClean()); + leftExpression_ = null; + } + return leftExpressionBuilder_; + } + + private flyteidl.core.Condition.BooleanExpression rightExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> rightExpressionBuilder_; + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public boolean hasRightExpression() { + return rightExpressionBuilder_ != null || rightExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpression getRightExpression() { + if (rightExpressionBuilder_ == null) { + return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; + } else { + return rightExpressionBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder setRightExpression(flyteidl.core.Condition.BooleanExpression value) { + if (rightExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rightExpression_ = value; + onChanged(); + } else { + rightExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder setRightExpression( + flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { + if (rightExpressionBuilder_ == null) { + rightExpression_ = builderForValue.build(); + onChanged(); + } else { + rightExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder mergeRightExpression(flyteidl.core.Condition.BooleanExpression value) { + if (rightExpressionBuilder_ == null) { + if (rightExpression_ != null) { + rightExpression_ = + flyteidl.core.Condition.BooleanExpression.newBuilder(rightExpression_).mergeFrom(value).buildPartial(); + } else { + rightExpression_ = value; + } + onChanged(); + } else { + rightExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder clearRightExpression() { + if (rightExpressionBuilder_ == null) { + rightExpression_ = null; + onChanged(); + } else { + rightExpression_ = null; + rightExpressionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpression.Builder getRightExpressionBuilder() { + + onChanged(); + return getRightExpressionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { + if (rightExpressionBuilder_ != null) { + return rightExpressionBuilder_.getMessageOrBuilder(); + } else { + return rightExpression_ == null ? + flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; + } + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> + getRightExpressionFieldBuilder() { + if (rightExpressionBuilder_ == null) { + rightExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( + getRightExpression(), + getParentForChildren(), + isClean()); + rightExpression_ = null; + } + return rightExpressionBuilder_; + } + @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:flyteidl.core.ConjunctionExpression) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConjunctionExpression) + private static final flyteidl.core.Condition.ConjunctionExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.ConjunctionExpression(); + } + + public static flyteidl.core.Condition.ConjunctionExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConjunctionExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConjunctionExpression(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 flyteidl.core.Condition.ConjunctionExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ComparisonExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Operand_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Operand_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BooleanExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConjunctionExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConjunctionExpression_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\035flyteidl/core/condition.proto\022\rflyteid" + + "l.core\032\034flyteidl/core/literals.proto\"\356\001\n" + + "\024ComparisonExpression\022>\n\010operator\030\001 \001(\0162" + + ",.flyteidl.core.ComparisonExpression.Ope" + + "rator\022*\n\nleft_value\030\002 \001(\0132\026.flyteidl.cor" + + "e.Operand\022+\n\013right_value\030\003 \001(\0132\026.flyteid" + + "l.core.Operand\"=\n\010Operator\022\006\n\002EQ\020\000\022\007\n\003NE" + + "Q\020\001\022\006\n\002GT\020\002\022\007\n\003GTE\020\003\022\006\n\002LT\020\004\022\007\n\003LTE\020\005\"N\n" + + "\007Operand\022-\n\tprimitive\030\001 \001(\0132\030.flyteidl.c" + + "ore.PrimitiveH\000\022\r\n\003var\030\002 \001(\tH\000B\005\n\003val\"\223\001" + + "\n\021BooleanExpression\022;\n\013conjunction\030\001 \001(\013" + + "2$.flyteidl.core.ConjunctionExpressionH\000" + + "\0229\n\ncomparison\030\002 \001(\0132#.flyteidl.core.Com" + + "parisonExpressionH\000B\006\n\004expr\"\372\001\n\025Conjunct" + + "ionExpression\022F\n\010operator\030\001 \001(\01624.flytei" + + "dl.core.ConjunctionExpression.LogicalOpe" + + "rator\0229\n\017left_expression\030\002 \001(\0132 .flyteid" + + "l.core.BooleanExpression\022:\n\020right_expres" + + "sion\030\003 \001(\0132 .flyteidl.core.BooleanExpres" + + "sion\"\"\n\017LogicalOperator\022\007\n\003AND\020\000\022\006\n\002OR\020\001" + + "B2Z0github.com/lyft/flyteidl/gen/pb-go/f" + + "lyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Literals.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_ComparisonExpression_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ComparisonExpression_descriptor, + new java.lang.String[] { "Operator", "LeftValue", "RightValue", }); + internal_static_flyteidl_core_Operand_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_Operand_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Operand_descriptor, + new java.lang.String[] { "Primitive", "Var", "Val", }); + internal_static_flyteidl_core_BooleanExpression_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BooleanExpression_descriptor, + new java.lang.String[] { "Conjunction", "Comparison", "Expr", }); + internal_static_flyteidl_core_ConjunctionExpression_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConjunctionExpression_descriptor, + new java.lang.String[] { "Operator", "LeftExpression", "RightExpression", }); + flyteidl.core.Literals.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/DynamicJob.java b/gen/pb-java/flyteidl/core/DynamicJob.java new file mode 100644 index 000000000..4b7962408 --- /dev/null +++ b/gen/pb-java/flyteidl/core/DynamicJob.java @@ -0,0 +1,2542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/dynamic_job.proto + +package flyteidl.core; + +public final class DynamicJob { + private DynamicJob() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DynamicJobSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.DynamicJobSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + java.util.List + getNodesList(); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + flyteidl.core.Workflow.Node getNodes(int index); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + int getNodesCount(); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + java.util.List + getNodesOrBuilderList(); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index); + + /** + *
+     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+     * specified, is the count of nodes repeated field.
+     * 
+ * + * int64 min_successes = 2; + */ + long getMinSuccesses(); + + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + java.util.List + getOutputsList(); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + flyteidl.core.Literals.Binding getOutputs(int index); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + int getOutputsCount(); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + java.util.List + getOutputsOrBuilderList(); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index); + + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + java.util.List + getTasksList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + flyteidl.core.Tasks.TaskTemplate getTasks(int index); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + int getTasksCount(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index); + + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + java.util.List + getSubworkflowsList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + int getSubworkflowsCount(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + java.util.List + getSubworkflowsOrBuilderList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( + int index); + } + /** + *
+   * Describes a set of tasks to execute and how the final outputs are produced.
+   * 
+ * + * Protobuf type {@code flyteidl.core.DynamicJobSpec} + */ + public static final class DynamicJobSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.DynamicJobSpec) + DynamicJobSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DynamicJobSpec.newBuilder() to construct. + private DynamicJobSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DynamicJobSpec() { + nodes_ = java.util.Collections.emptyList(); + outputs_ = java.util.Collections.emptyList(); + tasks_ = java.util.Collections.emptyList(); + subworkflows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DynamicJobSpec( + 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)) { + nodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodes_.add( + input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); + break; + } + case 16: { + + minSuccesses_ = input.readInt64(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + outputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + outputs_.add( + input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + tasks_.add( + input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + subworkflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + subworkflows_.add( + input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.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)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); + } + + private int bitField0_; + public static final int NODES_FIELD_NUMBER = 1; + private java.util.List nodes_; + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List getNodesList() { + return nodes_; + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List + getNodesOrBuilderList() { + return nodes_; + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public int getNodesCount() { + return nodes_.size(); + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + return nodes_.get(index); + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + return nodes_.get(index); + } + + public static final int MIN_SUCCESSES_FIELD_NUMBER = 2; + private long minSuccesses_; + /** + *
+     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+     * specified, is the count of nodes repeated field.
+     * 
+ * + * int64 min_successes = 2; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + + public static final int OUTPUTS_FIELD_NUMBER = 3; + private java.util.List outputs_; + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List getOutputsList() { + return outputs_; + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public int getOutputsCount() { + return outputs_.size(); + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + return outputs_.get(index); + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + return outputs_.get(index); + } + + public static final int TASKS_FIELD_NUMBER = 4; + private java.util.List tasks_; + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + return tasks_.get(index); + } + + public static final int SUBWORKFLOWS_FIELD_NUMBER = 5; + private java.util.List subworkflows_; + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List getSubworkflowsList() { + return subworkflows_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List + getSubworkflowsOrBuilderList() { + return subworkflows_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public int getSubworkflowsCount() { + return subworkflows_.size(); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { + return subworkflows_.get(index); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( + int index) { + return subworkflows_.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 < nodes_.size(); i++) { + output.writeMessage(1, nodes_.get(i)); + } + if (minSuccesses_ != 0L) { + output.writeInt64(2, minSuccesses_); + } + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(3, outputs_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(4, tasks_.get(i)); + } + for (int i = 0; i < subworkflows_.size(); i++) { + output.writeMessage(5, subworkflows_.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 < nodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodes_.get(i)); + } + if (minSuccesses_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, minSuccesses_); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, outputs_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, tasks_.get(i)); + } + for (int i = 0; i < subworkflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, subworkflows_.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 flyteidl.core.DynamicJob.DynamicJobSpec)) { + return super.equals(obj); + } + flyteidl.core.DynamicJob.DynamicJobSpec other = (flyteidl.core.DynamicJob.DynamicJobSpec) obj; + + if (!getNodesList() + .equals(other.getNodesList())) return false; + if (getMinSuccesses() + != other.getMinSuccesses()) return false; + if (!getOutputsList() + .equals(other.getOutputsList())) return false; + if (!getTasksList() + .equals(other.getTasksList())) return false; + if (!getSubworkflowsList() + .equals(other.getSubworkflowsList())) 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 (getNodesCount() > 0) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + getNodesList().hashCode(); + } + hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinSuccesses()); + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + if (getSubworkflowsCount() > 0) { + hash = (37 * hash) + SUBWORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getSubworkflowsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec 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 flyteidl.core.DynamicJob.DynamicJobSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec 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 flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec 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(flyteidl.core.DynamicJob.DynamicJobSpec 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; + } + /** + *
+     * Describes a set of tasks to execute and how the final outputs are produced.
+     * 
+ * + * Protobuf type {@code flyteidl.core.DynamicJobSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.DynamicJobSpec) + flyteidl.core.DynamicJob.DynamicJobSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); + } + + // Construct using flyteidl.core.DynamicJob.DynamicJobSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodesFieldBuilder(); + getOutputsFieldBuilder(); + getTasksFieldBuilder(); + getSubworkflowsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodesBuilder_.clear(); + } + minSuccesses_ = 0L; + + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + outputsBuilder_.clear(); + } + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + tasksBuilder_.clear(); + } + if (subworkflowsBuilder_ == null) { + subworkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + subworkflowsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; + } + + @java.lang.Override + public flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { + return flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.DynamicJob.DynamicJobSpec build() { + flyteidl.core.DynamicJob.DynamicJobSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.DynamicJob.DynamicJobSpec buildPartial() { + flyteidl.core.DynamicJob.DynamicJobSpec result = new flyteidl.core.DynamicJob.DynamicJobSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (nodesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodes_ = nodes_; + } else { + result.nodes_ = nodesBuilder_.build(); + } + result.minSuccesses_ = minSuccesses_; + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + if (subworkflowsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.subworkflows_ = subworkflows_; + } else { + result.subworkflows_ = subworkflowsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.core.DynamicJob.DynamicJobSpec) { + return mergeFrom((flyteidl.core.DynamicJob.DynamicJobSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.DynamicJob.DynamicJobSpec other) { + if (other == flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance()) return this; + if (nodesBuilder_ == null) { + if (!other.nodes_.isEmpty()) { + if (nodes_.isEmpty()) { + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodesIsMutable(); + nodes_.addAll(other.nodes_); + } + onChanged(); + } + } else { + if (!other.nodes_.isEmpty()) { + if (nodesBuilder_.isEmpty()) { + nodesBuilder_.dispose(); + nodesBuilder_ = null; + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodesFieldBuilder() : null; + } else { + nodesBuilder_.addAllMessages(other.nodes_); + } + } + } + if (other.getMinSuccesses() != 0L) { + setMinSuccesses(other.getMinSuccesses()); + } + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000004); + outputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputsFieldBuilder() : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000008); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + if (subworkflowsBuilder_ == null) { + if (!other.subworkflows_.isEmpty()) { + if (subworkflows_.isEmpty()) { + subworkflows_ = other.subworkflows_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSubworkflowsIsMutable(); + subworkflows_.addAll(other.subworkflows_); + } + onChanged(); + } + } else { + if (!other.subworkflows_.isEmpty()) { + if (subworkflowsBuilder_.isEmpty()) { + subworkflowsBuilder_.dispose(); + subworkflowsBuilder_ = null; + subworkflows_ = other.subworkflows_; + bitField0_ = (bitField0_ & ~0x00000010); + subworkflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubworkflowsFieldBuilder() : null; + } else { + subworkflowsBuilder_.addAllMessages(other.subworkflows_); + } + } + } + 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 { + flyteidl.core.DynamicJob.DynamicJobSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.DynamicJob.DynamicJobSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List nodes_ = + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; + + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes(flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodes_); + onChanged(); + } else { + nodesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodesBuilder_.clear(); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node.Builder getNodesBuilder( + int index) { + return getNodesFieldBuilder().getBuilder(index); + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { + return nodesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { + return getNodesFieldBuilder().addBuilder( + flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder( + int index) { + return getNodesFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List + getNodesBuilderList() { + return getNodesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + nodes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nodes_ = null; + } + return nodesBuilder_; + } + + private long minSuccesses_ ; + /** + *
+       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+       * specified, is the count of nodes repeated field.
+       * 
+ * + * int64 min_successes = 2; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + /** + *
+       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+       * specified, is the count of nodes repeated field.
+       * 
+ * + * int64 min_successes = 2; + */ + public Builder setMinSuccesses(long value) { + + minSuccesses_ = value; + onChanged(); + return this; + } + /** + *
+       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+       * specified, is the count of nodes repeated field.
+       * 
+ * + * int64 min_successes = 2; + */ + public Builder clearMinSuccesses() { + + minSuccesses_ = 0L; + onChanged(); + return this; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; + + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs(flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs( + flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( + int index) { + return getOutputsFieldBuilder().getBuilder(index); + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { + return getOutputsFieldBuilder().addBuilder( + flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( + int index) { + return getOutputsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List + getOutputsBuilderList() { + return getOutputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( + outputs_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; + + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + tasks_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + + private java.util.List subworkflows_ = + java.util.Collections.emptyList(); + private void ensureSubworkflowsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + subworkflows_ = new java.util.ArrayList(subworkflows_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> subworkflowsBuilder_; + + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List getSubworkflowsList() { + if (subworkflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subworkflows_); + } else { + return subworkflowsBuilder_.getMessageList(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public int getSubworkflowsCount() { + if (subworkflowsBuilder_ == null) { + return subworkflows_.size(); + } else { + return subworkflowsBuilder_.getCount(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { + if (subworkflowsBuilder_ == null) { + return subworkflows_.get(index); + } else { + return subworkflowsBuilder_.getMessage(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder setSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subworkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubworkflowsIsMutable(); + subworkflows_.set(index, value); + onChanged(); + } else { + subworkflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder setSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.set(index, builderForValue.build()); + onChanged(); + } else { + subworkflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows(flyteidl.core.Workflow.WorkflowTemplate value) { + if (subworkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubworkflowsIsMutable(); + subworkflows_.add(value); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subworkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubworkflowsIsMutable(); + subworkflows_.add(index, value); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.add(builderForValue.build()); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.add(index, builderForValue.build()); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addAllSubworkflows( + java.lang.Iterable values) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subworkflows_); + onChanged(); + } else { + subworkflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder clearSubworkflows() { + if (subworkflowsBuilder_ == null) { + subworkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + subworkflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder removeSubworkflows(int index) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.remove(index); + onChanged(); + } else { + subworkflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getSubworkflowsBuilder( + int index) { + return getSubworkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( + int index) { + if (subworkflowsBuilder_ == null) { + return subworkflows_.get(index); } else { + return subworkflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List + getSubworkflowsOrBuilderList() { + if (subworkflowsBuilder_ != null) { + return subworkflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subworkflows_); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder() { + return getSubworkflowsFieldBuilder().addBuilder( + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder( + int index) { + return getSubworkflowsFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List + getSubworkflowsBuilderList() { + return getSubworkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getSubworkflowsFieldBuilder() { + if (subworkflowsBuilder_ == null) { + subworkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + subworkflows_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + subworkflows_ = null; + } + return subworkflowsBuilder_; + } + @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:flyteidl.core.DynamicJobSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.DynamicJobSpec) + private static final flyteidl.core.DynamicJob.DynamicJobSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.DynamicJob.DynamicJobSpec(); + } + + public static flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DynamicJobSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DynamicJobSpec(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 flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_DynamicJobSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_DynamicJobSpec_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\037flyteidl/core/dynamic_job.proto\022\rflyte" + + "idl.core\032\031flyteidl/core/tasks.proto\032\034fly" + + "teidl/core/workflow.proto\032\034flyteidl/core" + + "/literals.proto\"\327\001\n\016DynamicJobSpec\022\"\n\005no" + + "des\030\001 \003(\0132\023.flyteidl.core.Node\022\025\n\rmin_su" + + "ccesses\030\002 \001(\003\022\'\n\007outputs\030\003 \003(\0132\026.flyteid" + + "l.core.Binding\022*\n\005tasks\030\004 \003(\0132\033.flyteidl" + + ".core.TaskTemplate\0225\n\014subworkflows\030\005 \003(\013" + + "2\037.flyteidl.core.WorkflowTemplateB2Z0git" + + "hub.com/lyft/flyteidl/gen/pb-go/flyteidl" + + "/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Tasks.getDescriptor(), + flyteidl.core.Workflow.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_DynamicJobSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_DynamicJobSpec_descriptor, + new java.lang.String[] { "Nodes", "MinSuccesses", "Outputs", "Tasks", "Subworkflows", }); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Errors.java b/gen/pb-java/flyteidl/core/Errors.java new file mode 100644 index 000000000..077cb58e0 --- /dev/null +++ b/gen/pb-java/flyteidl/core/Errors.java @@ -0,0 +1,1882 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/errors.proto + +package flyteidl.core; + +public final class Errors { + private Errors() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ContainerErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ContainerError) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + java.lang.String getCode(); + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + com.google.protobuf.ByteString + getCodeBytes(); + + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + int getKindValue(); + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + flyteidl.core.Errors.ContainerError.Kind getKind(); + + /** + *
+     * Defines the origin of the error (system, user, unknown).
+     * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + int getOriginValue(); + /** + *
+     * Defines the origin of the error (system, user, unknown).
+     * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin(); + } + /** + *
+   * Error message to propagate detailed errors from container executions to the execution
+   * engine.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ContainerError} + */ + public static final class ContainerError extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerError) + ContainerErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContainerError.newBuilder() to construct. + private ContainerError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContainerError() { + code_ = ""; + message_ = ""; + kind_ = 0; + origin_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContainerError( + 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(); + + code_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + kind_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); + + origin_ = rawValue; + 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 flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); + } + + /** + *
+     * Defines a generic error type that dictates the behavior of the retry strategy.
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ContainerError.Kind} + */ + public enum Kind + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NON_RECOVERABLE = 0; + */ + NON_RECOVERABLE(0), + /** + * RECOVERABLE = 1; + */ + RECOVERABLE(1), + UNRECOGNIZED(-1), + ; + + /** + * NON_RECOVERABLE = 0; + */ + public static final int NON_RECOVERABLE_VALUE = 0; + /** + * RECOVERABLE = 1; + */ + public static final int RECOVERABLE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Kind valueOf(int value) { + return forNumber(value); + } + + public static Kind forNumber(int value) { + switch (value) { + case 0: return NON_RECOVERABLE; + case 1: return RECOVERABLE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Kind> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Kind findValueByNumber(int number) { + return Kind.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Errors.ContainerError.getDescriptor().getEnumTypes().get(0); + } + + private static final Kind[] VALUES = values(); + + public static Kind 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 Kind(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ContainerError.Kind) + } + + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + 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(); + code_ = s; + return s; + } + } + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KIND_FIELD_NUMBER = 3; + private int kind_; + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public int getKindValue() { + return kind_; + } + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public flyteidl.core.Errors.ContainerError.Kind getKind() { + @SuppressWarnings("deprecation") + flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); + return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; + } + + public static final int ORIGIN_FIELD_NUMBER = 4; + private int origin_; + /** + *
+     * Defines the origin of the error (system, user, unknown).
+     * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public int getOriginValue() { + return origin_; + } + /** + *
+     * Defines the origin of the error (system, user, unknown).
+     * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(origin_); + return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; + } + + 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 (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { + output.writeEnum(3, kind_); + } + if (origin_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { + output.writeEnum(4, origin_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, kind_); + } + if (origin_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, origin_); + } + 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 flyteidl.core.Errors.ContainerError)) { + return super.equals(obj); + } + flyteidl.core.Errors.ContainerError other = (flyteidl.core.Errors.ContainerError) obj; + + if (!getCode() + .equals(other.getCode())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (kind_ != other.kind_) return false; + if (origin_ != other.origin_) 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) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + kind_; + hash = (37 * hash) + ORIGIN_FIELD_NUMBER; + hash = (53 * hash) + origin_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Errors.ContainerError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ContainerError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ContainerError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ContainerError 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 flyteidl.core.Errors.ContainerError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ContainerError 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 flyteidl.core.Errors.ContainerError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ContainerError 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(flyteidl.core.Errors.ContainerError 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; + } + /** + *
+     * Error message to propagate detailed errors from container executions to the execution
+     * engine.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ContainerError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerError) + flyteidl.core.Errors.ContainerErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); + } + + // Construct using flyteidl.core.Errors.ContainerError.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(); + code_ = ""; + + message_ = ""; + + kind_ = 0; + + origin_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; + } + + @java.lang.Override + public flyteidl.core.Errors.ContainerError getDefaultInstanceForType() { + return flyteidl.core.Errors.ContainerError.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Errors.ContainerError build() { + flyteidl.core.Errors.ContainerError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Errors.ContainerError buildPartial() { + flyteidl.core.Errors.ContainerError result = new flyteidl.core.Errors.ContainerError(this); + result.code_ = code_; + result.message_ = message_; + result.kind_ = kind_; + result.origin_ = origin_; + 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 flyteidl.core.Errors.ContainerError) { + return mergeFrom((flyteidl.core.Errors.ContainerError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Errors.ContainerError other) { + if (other == flyteidl.core.Errors.ContainerError.getDefaultInstance()) return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.kind_ != 0) { + setKindValue(other.getKindValue()); + } + if (other.origin_ != 0) { + setOriginValue(other.getOriginValue()); + } + 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 { + flyteidl.core.Errors.ContainerError parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Errors.ContainerError) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private int kind_ = 0; + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public int getKindValue() { + return kind_; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public Builder setKindValue(int value) { + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public flyteidl.core.Errors.ContainerError.Kind getKind() { + @SuppressWarnings("deprecation") + flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); + return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public Builder setKind(flyteidl.core.Errors.ContainerError.Kind value) { + if (value == null) { + throw new NullPointerException(); + } + + kind_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public Builder clearKind() { + + kind_ = 0; + onChanged(); + return this; + } + + private int origin_ = 0; + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public int getOriginValue() { + return origin_; + } + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public Builder setOriginValue(int value) { + origin_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(origin_); + return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; + } + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public Builder setOrigin(flyteidl.core.Execution.ExecutionError.ErrorKind value) { + if (value == null) { + throw new NullPointerException(); + } + + origin_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public Builder clearOrigin() { + + origin_ = 0; + 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:flyteidl.core.ContainerError) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerError) + private static final flyteidl.core.Errors.ContainerError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Errors.ContainerError(); + } + + public static flyteidl.core.Errors.ContainerError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContainerError(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 flyteidl.core.Errors.ContainerError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ErrorDocumentOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ErrorDocument) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + boolean hasError(); + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + flyteidl.core.Errors.ContainerError getError(); + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder(); + } + /** + *
+   * Defines the errors.pb file format the container can produce to communicate
+   * failure reasons to the execution engine.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ErrorDocument} + */ + public static final class ErrorDocument extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ErrorDocument) + ErrorDocumentOrBuilder { + private static final long serialVersionUID = 0L; + // Use ErrorDocument.newBuilder() to construct. + private ErrorDocument(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ErrorDocument() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ErrorDocument( + 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: { + flyteidl.core.Errors.ContainerError.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(flyteidl.core.Errors.ContainerError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = 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 flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); + } + + public static final int ERROR_FIELD_NUMBER = 1; + private flyteidl.core.Errors.ContainerError error_; + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public boolean hasError() { + return error_ != null; + } + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerError getError() { + return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; + } + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { + return getError(); + } + + 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 (error_ != null) { + output.writeMessage(1, getError()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getError()); + } + 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 flyteidl.core.Errors.ErrorDocument)) { + return super.equals(obj); + } + flyteidl.core.Errors.ErrorDocument other = (flyteidl.core.Errors.ErrorDocument) obj; + + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError() + .equals(other.getError())) 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 (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Errors.ErrorDocument parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ErrorDocument 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 flyteidl.core.Errors.ErrorDocument parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ErrorDocument 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 flyteidl.core.Errors.ErrorDocument parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ErrorDocument 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(flyteidl.core.Errors.ErrorDocument 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; + } + /** + *
+     * Defines the errors.pb file format the container can produce to communicate
+     * failure reasons to the execution engine.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ErrorDocument} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ErrorDocument) + flyteidl.core.Errors.ErrorDocumentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); + } + + // Construct using flyteidl.core.Errors.ErrorDocument.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 (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; + } + + @java.lang.Override + public flyteidl.core.Errors.ErrorDocument getDefaultInstanceForType() { + return flyteidl.core.Errors.ErrorDocument.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Errors.ErrorDocument build() { + flyteidl.core.Errors.ErrorDocument result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Errors.ErrorDocument buildPartial() { + flyteidl.core.Errors.ErrorDocument result = new flyteidl.core.Errors.ErrorDocument(this); + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.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 flyteidl.core.Errors.ErrorDocument) { + return mergeFrom((flyteidl.core.Errors.ErrorDocument)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Errors.ErrorDocument other) { + if (other == flyteidl.core.Errors.ErrorDocument.getDefaultInstance()) return this; + if (other.hasError()) { + mergeError(other.getError()); + } + 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 { + flyteidl.core.Errors.ErrorDocument parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Errors.ErrorDocument) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Errors.ContainerError error_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> errorBuilder_; + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerError getError() { + if (errorBuilder_ == null) { + return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder setError(flyteidl.core.Errors.ContainerError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder setError( + flyteidl.core.Errors.ContainerError.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder mergeError(flyteidl.core.Errors.ContainerError value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = + flyteidl.core.Errors.ContainerError.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerError.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? + flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; + } + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder>( + getError(), + getParentForChildren(), + isClean()); + error_ = null; + } + return errorBuilder_; + } + @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:flyteidl.core.ErrorDocument) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ErrorDocument) + private static final flyteidl.core.Errors.ErrorDocument DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Errors.ErrorDocument(); + } + + public static flyteidl.core.Errors.ErrorDocument getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorDocument parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorDocument(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 flyteidl.core.Errors.ErrorDocument getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ContainerError_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ContainerError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ErrorDocument_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ErrorDocument_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\032flyteidl/core/errors.proto\022\rflyteidl.c" + + "ore\032\035flyteidl/core/execution.proto\"\310\001\n\016C" + + "ontainerError\022\014\n\004code\030\001 \001(\t\022\017\n\007message\030\002" + + " \001(\t\0220\n\004kind\030\003 \001(\0162\".flyteidl.core.Conta" + + "inerError.Kind\0227\n\006origin\030\004 \001(\0162\'.flyteid" + + "l.core.ExecutionError.ErrorKind\",\n\004Kind\022" + + "\023\n\017NON_RECOVERABLE\020\000\022\017\n\013RECOVERABLE\020\001\"=\n" + + "\rErrorDocument\022,\n\005error\030\001 \001(\0132\035.flyteidl" + + ".core.ContainerErrorB2Z0github.com/lyft/" + + "flyteidl/gen/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_ContainerError_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_ContainerError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ContainerError_descriptor, + new java.lang.String[] { "Code", "Message", "Kind", "Origin", }); + internal_static_flyteidl_core_ErrorDocument_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ErrorDocument_descriptor, + new java.lang.String[] { "Error", }); + flyteidl.core.Execution.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Execution.java b/gen/pb-java/flyteidl/core/Execution.java new file mode 100644 index 000000000..35c7a3c95 --- /dev/null +++ b/gen/pb-java/flyteidl/core/Execution.java @@ -0,0 +1,5764 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/execution.proto + +package flyteidl.core; + +public final class Execution { + private Execution() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecution) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Indicates various phases of Workflow Execution
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecution} + */ + public static final class WorkflowExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecution) + WorkflowExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecution.newBuilder() to construct. + private WorkflowExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecution( + 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; + 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 flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.WorkflowExecution.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * QUEUED = 1; + */ + QUEUED(1), + /** + * RUNNING = 2; + */ + RUNNING(2), + /** + * SUCCEEDING = 3; + */ + SUCCEEDING(3), + /** + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + /** + * FAILING = 5; + */ + FAILING(5), + /** + * FAILED = 6; + */ + FAILED(6), + /** + * ABORTED = 7; + */ + ABORTED(7), + /** + * TIMED_OUT = 8; + */ + TIMED_OUT(8), + UNRECOGNIZED(-1), + ; + + /** + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + /** + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * SUCCEEDING = 3; + */ + public static final int SUCCEEDING_VALUE = 3; + /** + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + /** + * FAILING = 5; + */ + public static final int FAILING_VALUE = 5; + /** + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + /** + * ABORTED = 7; + */ + public static final int ABORTED_VALUE = 7; + /** + * TIMED_OUT = 8; + */ + public static final int TIMED_OUT_VALUE = 8; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + public static Phase forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return QUEUED; + case 2: return RUNNING; + case 3: return SUCCEEDING; + case 4: return SUCCEEDED; + case 5: return FAILING; + case 6: return FAILED; + case 7: return ABORTED; + case 8: return TIMED_OUT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Execution.WorkflowExecution.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase 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 Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowExecution.Phase) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.core.Execution.WorkflowExecution)) { + return super.equals(obj); + } + flyteidl.core.Execution.WorkflowExecution other = (flyteidl.core.Execution.WorkflowExecution) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.WorkflowExecution 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 flyteidl.core.Execution.WorkflowExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.WorkflowExecution 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 flyteidl.core.Execution.WorkflowExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.WorkflowExecution 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(flyteidl.core.Execution.WorkflowExecution 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; + } + /** + *
+     * Indicates various phases of Workflow Execution
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecution) + flyteidl.core.Execution.WorkflowExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); + } + + // Construct using flyteidl.core.Execution.WorkflowExecution.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() { + return flyteidl.core.Execution.WorkflowExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.WorkflowExecution build() { + flyteidl.core.Execution.WorkflowExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.WorkflowExecution buildPartial() { + flyteidl.core.Execution.WorkflowExecution result = new flyteidl.core.Execution.WorkflowExecution(this); + 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 flyteidl.core.Execution.WorkflowExecution) { + return mergeFrom((flyteidl.core.Execution.WorkflowExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.WorkflowExecution other) { + if (other == flyteidl.core.Execution.WorkflowExecution.getDefaultInstance()) return this; + 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 { + flyteidl.core.Execution.WorkflowExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.WorkflowExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.core.WorkflowExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecution) + private static final flyteidl.core.Execution.WorkflowExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.WorkflowExecution(); + } + + public static flyteidl.core.Execution.WorkflowExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecution(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 flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecution) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Indicates various phases of Node Execution
+   * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecution} + */ + public static final class NodeExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecution) + NodeExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecution.newBuilder() to construct. + private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecution( + 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; + 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 flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.NodeExecution.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * QUEUED = 1; + */ + QUEUED(1), + /** + * RUNNING = 2; + */ + RUNNING(2), + /** + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * FAILING = 4; + */ + FAILING(4), + /** + * FAILED = 5; + */ + FAILED(5), + /** + * ABORTED = 6; + */ + ABORTED(6), + /** + * SKIPPED = 7; + */ + SKIPPED(7), + /** + * TIMED_OUT = 8; + */ + TIMED_OUT(8), + UNRECOGNIZED(-1), + ; + + /** + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + /** + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + /** + * FAILING = 4; + */ + public static final int FAILING_VALUE = 4; + /** + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + /** + * ABORTED = 6; + */ + public static final int ABORTED_VALUE = 6; + /** + * SKIPPED = 7; + */ + public static final int SKIPPED_VALUE = 7; + /** + * TIMED_OUT = 8; + */ + public static final int TIMED_OUT_VALUE = 8; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + public static Phase forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return QUEUED; + case 2: return RUNNING; + case 3: return SUCCEEDED; + case 4: return FAILING; + case 5: return FAILED; + case 6: return ABORTED; + case 7: return SKIPPED; + case 8: return TIMED_OUT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Execution.NodeExecution.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase 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 Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.NodeExecution.Phase) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.core.Execution.NodeExecution)) { + return super.equals(obj); + } + flyteidl.core.Execution.NodeExecution other = (flyteidl.core.Execution.NodeExecution) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.NodeExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.NodeExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.NodeExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.NodeExecution 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 flyteidl.core.Execution.NodeExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.NodeExecution 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 flyteidl.core.Execution.NodeExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.NodeExecution 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(flyteidl.core.Execution.NodeExecution 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; + } + /** + *
+     * Indicates various phases of Node Execution
+     * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecution) + flyteidl.core.Execution.NodeExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); + } + + // Construct using flyteidl.core.Execution.NodeExecution.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() { + return flyteidl.core.Execution.NodeExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.NodeExecution build() { + flyteidl.core.Execution.NodeExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.NodeExecution buildPartial() { + flyteidl.core.Execution.NodeExecution result = new flyteidl.core.Execution.NodeExecution(this); + 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 flyteidl.core.Execution.NodeExecution) { + return mergeFrom((flyteidl.core.Execution.NodeExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.NodeExecution other) { + if (other == flyteidl.core.Execution.NodeExecution.getDefaultInstance()) return this; + 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 { + flyteidl.core.Execution.NodeExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.NodeExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.core.NodeExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecution) + private static final flyteidl.core.Execution.NodeExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.NodeExecution(); + } + + public static flyteidl.core.Execution.NodeExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecution(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 flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecution) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
+   * but this is the cumulative list that customers may want to know about for their task.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecution} + */ + public static final class TaskExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecution) + TaskExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecution.newBuilder() to construct. + private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecution( + 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; + 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 flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.TaskExecution.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * QUEUED = 1; + */ + QUEUED(1), + /** + * RUNNING = 2; + */ + RUNNING(2), + /** + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * ABORTED = 4; + */ + ABORTED(4), + /** + * FAILED = 5; + */ + FAILED(5), + /** + *
+       * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
+       * 
+ * + * INITIALIZING = 6; + */ + INITIALIZING(6), + /** + *
+       * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
+       * 
+ * + * WAITING_FOR_RESOURCES = 7; + */ + WAITING_FOR_RESOURCES(7), + UNRECOGNIZED(-1), + ; + + /** + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + /** + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + /** + * ABORTED = 4; + */ + public static final int ABORTED_VALUE = 4; + /** + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + /** + *
+       * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
+       * 
+ * + * INITIALIZING = 6; + */ + public static final int INITIALIZING_VALUE = 6; + /** + *
+       * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
+       * 
+ * + * WAITING_FOR_RESOURCES = 7; + */ + public static final int WAITING_FOR_RESOURCES_VALUE = 7; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + public static Phase forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return QUEUED; + case 2: return RUNNING; + case 3: return SUCCEEDED; + case 4: return ABORTED; + case 5: return FAILED; + case 6: return INITIALIZING; + case 7: return WAITING_FOR_RESOURCES; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Execution.TaskExecution.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase 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 Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskExecution.Phase) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.core.Execution.TaskExecution)) { + return super.equals(obj); + } + flyteidl.core.Execution.TaskExecution other = (flyteidl.core.Execution.TaskExecution) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.TaskExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskExecution 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 flyteidl.core.Execution.TaskExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskExecution 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 flyteidl.core.Execution.TaskExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskExecution 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(flyteidl.core.Execution.TaskExecution 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; + } + /** + *
+     * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
+     * but this is the cumulative list that customers may want to know about for their task.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecution) + flyteidl.core.Execution.TaskExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); + } + + // Construct using flyteidl.core.Execution.TaskExecution.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() { + return flyteidl.core.Execution.TaskExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.TaskExecution build() { + flyteidl.core.Execution.TaskExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskExecution buildPartial() { + flyteidl.core.Execution.TaskExecution result = new flyteidl.core.Execution.TaskExecution(this); + 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 flyteidl.core.Execution.TaskExecution) { + return mergeFrom((flyteidl.core.Execution.TaskExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.TaskExecution other) { + if (other == flyteidl.core.Execution.TaskExecution.getDefaultInstance()) return this; + 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 { + flyteidl.core.Execution.TaskExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.TaskExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.core.TaskExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecution) + private static final flyteidl.core.Execution.TaskExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskExecution(); + } + + public static flyteidl.core.Execution.TaskExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecution(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 flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ExecutionError) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + java.lang.String getCode(); + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + com.google.protobuf.ByteString + getCodeBytes(); + + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + java.lang.String getErrorUri(); + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + com.google.protobuf.ByteString + getErrorUriBytes(); + + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + int getKindValue(); + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + flyteidl.core.Execution.ExecutionError.ErrorKind getKind(); + } + /** + *
+   * Represents the error message from the execution.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ExecutionError} + */ + public static final class ExecutionError extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ExecutionError) + ExecutionErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionError.newBuilder() to construct. + private ExecutionError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionError() { + code_ = ""; + message_ = ""; + errorUri_ = ""; + kind_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionError( + 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(); + + code_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + errorUri_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + kind_ = rawValue; + 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 flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); + } + + /** + *
+     * Error type: System or User
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ExecutionError.ErrorKind} + */ + public enum ErrorKind + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * USER = 1; + */ + USER(1), + /** + * SYSTEM = 2; + */ + SYSTEM(2), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * USER = 1; + */ + public static final int USER_VALUE = 1; + /** + * SYSTEM = 2; + */ + public static final int SYSTEM_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ErrorKind valueOf(int value) { + return forNumber(value); + } + + public static ErrorKind forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return USER; + case 2: return SYSTEM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ErrorKind> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ErrorKind findValueByNumber(int number) { + return ErrorKind.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Execution.ExecutionError.getDescriptor().getEnumTypes().get(0); + } + + private static final ErrorKind[] VALUES = values(); + + public static ErrorKind 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 ErrorKind(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ExecutionError.ErrorKind) + } + + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + 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(); + code_ = s; + return s; + } + } + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object errorUri_; + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + public java.lang.String getErrorUri() { + java.lang.Object ref = errorUri_; + 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(); + errorUri_ = s; + return s; + } + } + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + public com.google.protobuf.ByteString + getErrorUriBytes() { + java.lang.Object ref = errorUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KIND_FIELD_NUMBER = 4; + private int kind_; + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public int getKindValue() { + return kind_; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_); + return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; + } + + 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 (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (!getErrorUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorUri_); + } + if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { + output.writeEnum(4, kind_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (!getErrorUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorUri_); + } + if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, kind_); + } + 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 flyteidl.core.Execution.ExecutionError)) { + return super.equals(obj); + } + flyteidl.core.Execution.ExecutionError other = (flyteidl.core.Execution.ExecutionError) obj; + + if (!getCode() + .equals(other.getCode())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!getErrorUri() + .equals(other.getErrorUri())) return false; + if (kind_ != other.kind_) 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) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + ERROR_URI_FIELD_NUMBER; + hash = (53 * hash) + getErrorUri().hashCode(); + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + kind_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.ExecutionError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.ExecutionError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.ExecutionError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.ExecutionError 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 flyteidl.core.Execution.ExecutionError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.ExecutionError 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 flyteidl.core.Execution.ExecutionError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.ExecutionError 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(flyteidl.core.Execution.ExecutionError 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; + } + /** + *
+     * Represents the error message from the execution.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ExecutionError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ExecutionError) + flyteidl.core.Execution.ExecutionErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); + } + + // Construct using flyteidl.core.Execution.ExecutionError.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(); + code_ = ""; + + message_ = ""; + + errorUri_ = ""; + + kind_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() { + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.ExecutionError build() { + flyteidl.core.Execution.ExecutionError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.ExecutionError buildPartial() { + flyteidl.core.Execution.ExecutionError result = new flyteidl.core.Execution.ExecutionError(this); + result.code_ = code_; + result.message_ = message_; + result.errorUri_ = errorUri_; + result.kind_ = kind_; + 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 flyteidl.core.Execution.ExecutionError) { + return mergeFrom((flyteidl.core.Execution.ExecutionError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.ExecutionError other) { + if (other == flyteidl.core.Execution.ExecutionError.getDefaultInstance()) return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getErrorUri().isEmpty()) { + errorUri_ = other.errorUri_; + onChanged(); + } + if (other.kind_ != 0) { + setKindValue(other.getKindValue()); + } + 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 { + flyteidl.core.Execution.ExecutionError parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.ExecutionError) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private java.lang.Object errorUri_ = ""; + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public java.lang.String getErrorUri() { + java.lang.Object ref = errorUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public com.google.protobuf.ByteString + getErrorUriBytes() { + java.lang.Object ref = errorUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public Builder setErrorUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + errorUri_ = value; + onChanged(); + return this; + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public Builder clearErrorUri() { + + errorUri_ = getDefaultInstance().getErrorUri(); + onChanged(); + return this; + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public Builder setErrorUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + errorUri_ = value; + onChanged(); + return this; + } + + private int kind_ = 0; + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public int getKindValue() { + return kind_; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public Builder setKindValue(int value) { + kind_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_); + return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public Builder setKind(flyteidl.core.Execution.ExecutionError.ErrorKind value) { + if (value == null) { + throw new NullPointerException(); + } + + kind_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public Builder clearKind() { + + kind_ = 0; + 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:flyteidl.core.ExecutionError) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionError) + private static final flyteidl.core.Execution.ExecutionError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.ExecutionError(); + } + + public static flyteidl.core.Execution.ExecutionError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionError(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 flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskLogOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskLog) + com.google.protobuf.MessageOrBuilder { + + /** + * string uri = 1; + */ + java.lang.String getUri(); + /** + * string uri = 1; + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + * string name = 2; + */ + java.lang.String getName(); + /** + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + int getMessageFormatValue(); + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat(); + + /** + * .google.protobuf.Duration ttl = 4; + */ + boolean hasTtl(); + /** + * .google.protobuf.Duration ttl = 4; + */ + com.google.protobuf.Duration getTtl(); + /** + * .google.protobuf.Duration ttl = 4; + */ + com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); + } + /** + *
+   * Log information for the task that is specific to a log sink
+   * When our log story is flushed out, we may have more metadata here like log link expiry
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskLog} + */ + public static final class TaskLog extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskLog) + TaskLogOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskLog.newBuilder() to construct. + private TaskLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskLog() { + uri_ = ""; + name_ = ""; + messageFormat_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskLog( + 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(); + + uri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + messageFormat_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (ttl_ != null) { + subBuilder = ttl_.toBuilder(); + } + ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ttl_); + ttl_ = 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 flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.TaskLog.MessageFormat} + */ + public enum MessageFormat + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * CSV = 1; + */ + CSV(1), + /** + * JSON = 2; + */ + JSON(2), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * CSV = 1; + */ + public static final int CSV_VALUE = 1; + /** + * JSON = 2; + */ + public static final int JSON_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MessageFormat valueOf(int value) { + return forNumber(value); + } + + public static MessageFormat forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return CSV; + case 2: return JSON; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MessageFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MessageFormat findValueByNumber(int number) { + return MessageFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Execution.TaskLog.getDescriptor().getEnumTypes().get(0); + } + + private static final MessageFormat[] VALUES = values(); + + public static MessageFormat 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 MessageFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskLog.MessageFormat) + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * string name = 2; + */ + 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; + } + } + /** + * string name = 2; + */ + 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 MESSAGE_FORMAT_FIELD_NUMBER = 3; + private int messageFormat_; + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public int getMessageFormatValue() { + return messageFormat_; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); + return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; + } + + public static final int TTL_FIELD_NUMBER = 4; + private com.google.protobuf.Duration ttl_; + /** + * .google.protobuf.Duration ttl = 4; + */ + public boolean hasTtl() { + return ttl_ != null; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.Duration getTtl() { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + return getTtl(); + } + + 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 (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { + output.writeEnum(3, messageFormat_); + } + if (ttl_ != null) { + output.writeMessage(4, getTtl()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, messageFormat_); + } + if (ttl_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTtl()); + } + 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 flyteidl.core.Execution.TaskLog)) { + return super.equals(obj); + } + flyteidl.core.Execution.TaskLog other = (flyteidl.core.Execution.TaskLog) obj; + + if (!getUri() + .equals(other.getUri())) return false; + if (!getName() + .equals(other.getName())) return false; + if (messageFormat_ != other.messageFormat_) return false; + if (hasTtl() != other.hasTtl()) return false; + if (hasTtl()) { + if (!getTtl() + .equals(other.getTtl())) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MESSAGE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + messageFormat_; + if (hasTtl()) { + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTtl().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.TaskLog parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskLog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskLog 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 flyteidl.core.Execution.TaskLog parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskLog 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 flyteidl.core.Execution.TaskLog parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskLog 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(flyteidl.core.Execution.TaskLog 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; + } + /** + *
+     * Log information for the task that is specific to a log sink
+     * When our log story is flushed out, we may have more metadata here like log link expiry
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskLog} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskLog) + flyteidl.core.Execution.TaskLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); + } + + // Construct using flyteidl.core.Execution.TaskLog.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(); + uri_ = ""; + + name_ = ""; + + messageFormat_ = 0; + + if (ttlBuilder_ == null) { + ttl_ = null; + } else { + ttl_ = null; + ttlBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskLog getDefaultInstanceForType() { + return flyteidl.core.Execution.TaskLog.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.TaskLog build() { + flyteidl.core.Execution.TaskLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskLog buildPartial() { + flyteidl.core.Execution.TaskLog result = new flyteidl.core.Execution.TaskLog(this); + result.uri_ = uri_; + result.name_ = name_; + result.messageFormat_ = messageFormat_; + if (ttlBuilder_ == null) { + result.ttl_ = ttl_; + } else { + result.ttl_ = ttlBuilder_.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 flyteidl.core.Execution.TaskLog) { + return mergeFrom((flyteidl.core.Execution.TaskLog)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.TaskLog other) { + if (other == flyteidl.core.Execution.TaskLog.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.messageFormat_ != 0) { + setMessageFormatValue(other.getMessageFormatValue()); + } + if (other.hasTtl()) { + mergeTtl(other.getTtl()); + } + 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 { + flyteidl.core.Execution.TaskLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.TaskLog) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uri_ = ""; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uri = 1; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2; + */ + 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; + } + } + /** + * string name = 2; + */ + 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; + } + } + /** + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int messageFormat_ = 0; + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public int getMessageFormatValue() { + return messageFormat_; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public Builder setMessageFormatValue(int value) { + messageFormat_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); + return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public Builder setMessageFormat(flyteidl.core.Execution.TaskLog.MessageFormat value) { + if (value == null) { + throw new NullPointerException(); + } + + messageFormat_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public Builder clearMessageFormat() { + + messageFormat_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration ttl_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; + /** + * .google.protobuf.Duration ttl = 4; + */ + public boolean hasTtl() { + return ttlBuilder_ != null || ttl_ != null; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.Duration getTtl() { + if (ttlBuilder_ == null) { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } else { + return ttlBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder setTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ttl_ = value; + onChanged(); + } else { + ttlBuilder_.setMessage(value); + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder setTtl( + com.google.protobuf.Duration.Builder builderForValue) { + if (ttlBuilder_ == null) { + ttl_ = builderForValue.build(); + onChanged(); + } else { + ttlBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder mergeTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (ttl_ != null) { + ttl_ = + com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial(); + } else { + ttl_ = value; + } + onChanged(); + } else { + ttlBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder clearTtl() { + if (ttlBuilder_ == null) { + ttl_ = null; + onChanged(); + } else { + ttl_ = null; + ttlBuilder_ = null; + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.Duration.Builder getTtlBuilder() { + + onChanged(); + return getTtlFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if (ttlBuilder_ != null) { + return ttlBuilder_.getMessageOrBuilder(); + } else { + return ttl_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + } + /** + * .google.protobuf.Duration ttl = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTtlFieldBuilder() { + if (ttlBuilder_ == null) { + ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTtl(), + getParentForChildren(), + isClean()); + ttl_ = null; + } + return ttlBuilder_; + } + @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:flyteidl.core.TaskLog) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskLog) + private static final flyteidl.core.Execution.TaskLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskLog(); + } + + public static flyteidl.core.Execution.TaskLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskLog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskLog(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 flyteidl.core.Execution.TaskLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QualityOfServiceSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.QualityOfServiceSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + boolean hasQueueingBudget(); + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + com.google.protobuf.Duration getQueueingBudget(); + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder(); + } + /** + *
+   * Represents customized execution run-time attributes.
+   * 
+ * + * Protobuf type {@code flyteidl.core.QualityOfServiceSpec} + */ + public static final class QualityOfServiceSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.QualityOfServiceSpec) + QualityOfServiceSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use QualityOfServiceSpec.newBuilder() to construct. + private QualityOfServiceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QualityOfServiceSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QualityOfServiceSpec( + 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.Duration.Builder subBuilder = null; + if (queueingBudget_ != null) { + subBuilder = queueingBudget_.toBuilder(); + } + queueingBudget_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queueingBudget_); + queueingBudget_ = 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 flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.QualityOfServiceSpec.class, flyteidl.core.Execution.QualityOfServiceSpec.Builder.class); + } + + public static final int QUEUEING_BUDGET_FIELD_NUMBER = 1; + private com.google.protobuf.Duration queueingBudget_; + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public boolean hasQueueingBudget() { + return queueingBudget_ != null; + } + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.Duration getQueueingBudget() { + return queueingBudget_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; + } + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder() { + return getQueueingBudget(); + } + + 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 (queueingBudget_ != null) { + output.writeMessage(1, getQueueingBudget()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (queueingBudget_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getQueueingBudget()); + } + 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 flyteidl.core.Execution.QualityOfServiceSpec)) { + return super.equals(obj); + } + flyteidl.core.Execution.QualityOfServiceSpec other = (flyteidl.core.Execution.QualityOfServiceSpec) obj; + + if (hasQueueingBudget() != other.hasQueueingBudget()) return false; + if (hasQueueingBudget()) { + if (!getQueueingBudget() + .equals(other.getQueueingBudget())) 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 (hasQueueingBudget()) { + hash = (37 * hash) + QUEUEING_BUDGET_FIELD_NUMBER; + hash = (53 * hash) + getQueueingBudget().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfServiceSpec 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 flyteidl.core.Execution.QualityOfServiceSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfServiceSpec 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 flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfServiceSpec 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(flyteidl.core.Execution.QualityOfServiceSpec 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; + } + /** + *
+     * Represents customized execution run-time attributes.
+     * 
+ * + * Protobuf type {@code flyteidl.core.QualityOfServiceSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.QualityOfServiceSpec) + flyteidl.core.Execution.QualityOfServiceSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.QualityOfServiceSpec.class, flyteidl.core.Execution.QualityOfServiceSpec.Builder.class); + } + + // Construct using flyteidl.core.Execution.QualityOfServiceSpec.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 (queueingBudgetBuilder_ == null) { + queueingBudget_ = null; + } else { + queueingBudget_ = null; + queueingBudgetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstanceForType() { + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfServiceSpec build() { + flyteidl.core.Execution.QualityOfServiceSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfServiceSpec buildPartial() { + flyteidl.core.Execution.QualityOfServiceSpec result = new flyteidl.core.Execution.QualityOfServiceSpec(this); + if (queueingBudgetBuilder_ == null) { + result.queueingBudget_ = queueingBudget_; + } else { + result.queueingBudget_ = queueingBudgetBuilder_.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 flyteidl.core.Execution.QualityOfServiceSpec) { + return mergeFrom((flyteidl.core.Execution.QualityOfServiceSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.QualityOfServiceSpec other) { + if (other == flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance()) return this; + if (other.hasQueueingBudget()) { + mergeQueueingBudget(other.getQueueingBudget()); + } + 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 { + flyteidl.core.Execution.QualityOfServiceSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.QualityOfServiceSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration queueingBudget_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> queueingBudgetBuilder_; + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public boolean hasQueueingBudget() { + return queueingBudgetBuilder_ != null || queueingBudget_ != null; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.Duration getQueueingBudget() { + if (queueingBudgetBuilder_ == null) { + return queueingBudget_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; + } else { + return queueingBudgetBuilder_.getMessage(); + } + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public Builder setQueueingBudget(com.google.protobuf.Duration value) { + if (queueingBudgetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queueingBudget_ = value; + onChanged(); + } else { + queueingBudgetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public Builder setQueueingBudget( + com.google.protobuf.Duration.Builder builderForValue) { + if (queueingBudgetBuilder_ == null) { + queueingBudget_ = builderForValue.build(); + onChanged(); + } else { + queueingBudgetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public Builder mergeQueueingBudget(com.google.protobuf.Duration value) { + if (queueingBudgetBuilder_ == null) { + if (queueingBudget_ != null) { + queueingBudget_ = + com.google.protobuf.Duration.newBuilder(queueingBudget_).mergeFrom(value).buildPartial(); + } else { + queueingBudget_ = value; + } + onChanged(); + } else { + queueingBudgetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public Builder clearQueueingBudget() { + if (queueingBudgetBuilder_ == null) { + queueingBudget_ = null; + onChanged(); + } else { + queueingBudget_ = null; + queueingBudgetBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.Duration.Builder getQueueingBudgetBuilder() { + + onChanged(); + return getQueueingBudgetFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder() { + if (queueingBudgetBuilder_ != null) { + return queueingBudgetBuilder_.getMessageOrBuilder(); + } else { + return queueingBudget_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; + } + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getQueueingBudgetFieldBuilder() { + if (queueingBudgetBuilder_ == null) { + queueingBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getQueueingBudget(), + getParentForChildren(), + isClean()); + queueingBudget_ = null; + } + return queueingBudgetBuilder_; + } + @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:flyteidl.core.QualityOfServiceSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfServiceSpec) + private static final flyteidl.core.Execution.QualityOfServiceSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.QualityOfServiceSpec(); + } + + public static flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QualityOfServiceSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QualityOfServiceSpec(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 flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QualityOfServiceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.QualityOfService) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + int getTierValue(); + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + flyteidl.core.Execution.QualityOfService.Tier getTier(); + + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + boolean hasSpec(); + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + flyteidl.core.Execution.QualityOfServiceSpec getSpec(); + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder(); + + public flyteidl.core.Execution.QualityOfService.DesignationCase getDesignationCase(); + } + /** + *
+   * Indicates the priority of an execution.
+   * 
+ * + * Protobuf type {@code flyteidl.core.QualityOfService} + */ + public static final class QualityOfService extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.QualityOfService) + QualityOfServiceOrBuilder { + private static final long serialVersionUID = 0L; + // Use QualityOfService.newBuilder() to construct. + private QualityOfService(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QualityOfService() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QualityOfService( + 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 8: { + int rawValue = input.readEnum(); + designationCase_ = 1; + designation_ = rawValue; + break; + } + case 18: { + flyteidl.core.Execution.QualityOfServiceSpec.Builder subBuilder = null; + if (designationCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.QualityOfServiceSpec) designation_).toBuilder(); + } + designation_ = + input.readMessage(flyteidl.core.Execution.QualityOfServiceSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.QualityOfServiceSpec) designation_); + designation_ = subBuilder.buildPartial(); + } + designationCase_ = 2; + 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 flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.QualityOfService.class, flyteidl.core.Execution.QualityOfService.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.QualityOfService.Tier} + */ + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Default: no quality of service specified.
+       * 
+ * + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * HIGH = 1; + */ + HIGH(1), + /** + * MEDIUM = 2; + */ + MEDIUM(2), + /** + * LOW = 3; + */ + LOW(3), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Default: no quality of service specified.
+       * 
+ * + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * HIGH = 1; + */ + public static final int HIGH_VALUE = 1; + /** + * MEDIUM = 2; + */ + public static final int MEDIUM_VALUE = 2; + /** + * LOW = 3; + */ + public static final int LOW_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Tier valueOf(int value) { + return forNumber(value); + } + + public static Tier forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return HIGH; + case 2: return MEDIUM; + case 3: return LOW; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Execution.QualityOfService.getDescriptor().getEnumTypes().get(0); + } + + private static final Tier[] VALUES = values(); + + public static Tier 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 Tier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.QualityOfService.Tier) + } + + private int designationCase_ = 0; + private java.lang.Object designation_; + public enum DesignationCase + implements com.google.protobuf.Internal.EnumLite { + TIER(1), + SPEC(2), + DESIGNATION_NOT_SET(0); + private final int value; + private DesignationCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DesignationCase valueOf(int value) { + return forNumber(value); + } + + public static DesignationCase forNumber(int value) { + switch (value) { + case 1: return TIER; + case 2: return SPEC; + case 0: return DESIGNATION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DesignationCase + getDesignationCase() { + return DesignationCase.forNumber( + designationCase_); + } + + public static final int TIER_FIELD_NUMBER = 1; + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public int getTierValue() { + if (designationCase_ == 1) { + return (java.lang.Integer) designation_; + } + return 0; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public flyteidl.core.Execution.QualityOfService.Tier getTier() { + if (designationCase_ == 1) { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.QualityOfService.Tier result = flyteidl.core.Execution.QualityOfService.Tier.valueOf( + (java.lang.Integer) designation_); + return result == null ? flyteidl.core.Execution.QualityOfService.Tier.UNRECOGNIZED : result; + } + return flyteidl.core.Execution.QualityOfService.Tier.UNDEFINED; + } + + public static final int SPEC_FIELD_NUMBER = 2; + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public boolean hasSpec() { + return designationCase_ == 2; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpec getSpec() { + if (designationCase_ == 2) { + return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder() { + if (designationCase_ == 2) { + return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (designationCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) designation_)); + } + if (designationCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.QualityOfServiceSpec) designation_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (designationCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, ((java.lang.Integer) designation_)); + } + if (designationCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.QualityOfServiceSpec) designation_); + } + 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 flyteidl.core.Execution.QualityOfService)) { + return super.equals(obj); + } + flyteidl.core.Execution.QualityOfService other = (flyteidl.core.Execution.QualityOfService) obj; + + if (!getDesignationCase().equals(other.getDesignationCase())) return false; + switch (designationCase_) { + case 1: + if (getTierValue() + != other.getTierValue()) return false; + break; + case 2: + if (!getSpec() + .equals(other.getSpec())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (designationCase_) { + case 1: + hash = (37 * hash) + TIER_FIELD_NUMBER; + hash = (53 * hash) + getTierValue(); + break; + case 2: + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.QualityOfService parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfService parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfService parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfService 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 flyteidl.core.Execution.QualityOfService parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfService 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 flyteidl.core.Execution.QualityOfService parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfService 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(flyteidl.core.Execution.QualityOfService 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; + } + /** + *
+     * Indicates the priority of an execution.
+     * 
+ * + * Protobuf type {@code flyteidl.core.QualityOfService} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.QualityOfService) + flyteidl.core.Execution.QualityOfServiceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.QualityOfService.class, flyteidl.core.Execution.QualityOfService.Builder.class); + } + + // Construct using flyteidl.core.Execution.QualityOfService.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(); + designationCase_ = 0; + designation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfService getDefaultInstanceForType() { + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfService build() { + flyteidl.core.Execution.QualityOfService result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfService buildPartial() { + flyteidl.core.Execution.QualityOfService result = new flyteidl.core.Execution.QualityOfService(this); + if (designationCase_ == 1) { + result.designation_ = designation_; + } + if (designationCase_ == 2) { + if (specBuilder_ == null) { + result.designation_ = designation_; + } else { + result.designation_ = specBuilder_.build(); + } + } + result.designationCase_ = designationCase_; + 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 flyteidl.core.Execution.QualityOfService) { + return mergeFrom((flyteidl.core.Execution.QualityOfService)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.QualityOfService other) { + if (other == flyteidl.core.Execution.QualityOfService.getDefaultInstance()) return this; + switch (other.getDesignationCase()) { + case TIER: { + setTierValue(other.getTierValue()); + break; + } + case SPEC: { + mergeSpec(other.getSpec()); + break; + } + case DESIGNATION_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 { + flyteidl.core.Execution.QualityOfService parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.QualityOfService) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int designationCase_ = 0; + private java.lang.Object designation_; + public DesignationCase + getDesignationCase() { + return DesignationCase.forNumber( + designationCase_); + } + + public Builder clearDesignation() { + designationCase_ = 0; + designation_ = null; + onChanged(); + return this; + } + + + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public int getTierValue() { + if (designationCase_ == 1) { + return ((java.lang.Integer) designation_).intValue(); + } + return 0; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public Builder setTierValue(int value) { + designationCase_ = 1; + designation_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public flyteidl.core.Execution.QualityOfService.Tier getTier() { + if (designationCase_ == 1) { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.QualityOfService.Tier result = flyteidl.core.Execution.QualityOfService.Tier.valueOf( + (java.lang.Integer) designation_); + return result == null ? flyteidl.core.Execution.QualityOfService.Tier.UNRECOGNIZED : result; + } + return flyteidl.core.Execution.QualityOfService.Tier.UNDEFINED; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public Builder setTier(flyteidl.core.Execution.QualityOfService.Tier value) { + if (value == null) { + throw new NullPointerException(); + } + designationCase_ = 1; + designation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public Builder clearTier() { + if (designationCase_ == 1) { + designationCase_ = 0; + designation_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder> specBuilder_; + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public boolean hasSpec() { + return designationCase_ == 2; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpec getSpec() { + if (specBuilder_ == null) { + if (designationCase_ == 2) { + return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } else { + if (designationCase_ == 2) { + return specBuilder_.getMessage(); + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public Builder setSpec(flyteidl.core.Execution.QualityOfServiceSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + designation_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + designationCase_ = 2; + return this; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public Builder setSpec( + flyteidl.core.Execution.QualityOfServiceSpec.Builder builderForValue) { + if (specBuilder_ == null) { + designation_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + designationCase_ = 2; + return this; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.core.Execution.QualityOfServiceSpec value) { + if (specBuilder_ == null) { + if (designationCase_ == 2 && + designation_ != flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance()) { + designation_ = flyteidl.core.Execution.QualityOfServiceSpec.newBuilder((flyteidl.core.Execution.QualityOfServiceSpec) designation_) + .mergeFrom(value).buildPartial(); + } else { + designation_ = value; + } + onChanged(); + } else { + if (designationCase_ == 2) { + specBuilder_.mergeFrom(value); + } + specBuilder_.setMessage(value); + } + designationCase_ = 2; + return this; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + if (designationCase_ == 2) { + designationCase_ = 0; + designation_ = null; + onChanged(); + } + } else { + if (designationCase_ == 2) { + designationCase_ = 0; + designation_ = null; + } + specBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpec.Builder getSpecBuilder() { + return getSpecFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder() { + if ((designationCase_ == 2) && (specBuilder_ != null)) { + return specBuilder_.getMessageOrBuilder(); + } else { + if (designationCase_ == 2) { + return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + if (!(designationCase_ == 2)) { + designation_ = flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder>( + (flyteidl.core.Execution.QualityOfServiceSpec) designation_, + getParentForChildren(), + isClean()); + designation_ = null; + } + designationCase_ = 2; + onChanged();; + return specBuilder_; + } + @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:flyteidl.core.QualityOfService) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfService) + private static final flyteidl.core.Execution.QualityOfService DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.QualityOfService(); + } + + public static flyteidl.core.Execution.QualityOfService getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QualityOfService parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QualityOfService(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 flyteidl.core.Execution.QualityOfService getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_NodeExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_NodeExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ExecutionError_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ExecutionError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskLog_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskLog_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_QualityOfService_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_QualityOfService_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\035flyteidl/core/execution.proto\022\rflyteid" + + "l.core\032\036google/protobuf/duration.proto\"\231" + + "\001\n\021WorkflowExecution\"\203\001\n\005Phase\022\r\n\tUNDEFI" + + "NED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\016\n\nSUCCEE" + + "DING\020\003\022\r\n\tSUCCEEDED\020\004\022\013\n\007FAILING\020\005\022\n\n\006FA" + + "ILED\020\006\022\013\n\007ABORTED\020\007\022\r\n\tTIMED_OUT\020\010\"\222\001\n\rN" + + "odeExecution\"\200\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n" + + "\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n" + + "\007FAILING\020\004\022\n\n\006FAILED\020\005\022\013\n\007ABORTED\020\006\022\013\n\007S" + + "KIPPED\020\007\022\r\n\tTIMED_OUT\020\010\"\226\001\n\rTaskExecutio" + + "n\"\204\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n\006QUEUED\020\001\022\013" + + "\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n\007ABORTED\020\004\022" + + "\n\n\006FAILED\020\005\022\020\n\014INITIALIZING\020\006\022\031\n\025WAITING" + + "_FOR_RESOURCES\020\007\"\251\001\n\016ExecutionError\022\014\n\004c" + + "ode\030\001 \001(\t\022\017\n\007message\030\002 \001(\t\022\021\n\terror_uri\030" + + "\003 \001(\t\0225\n\004kind\030\004 \001(\0162\'.flyteidl.core.Exec" + + "utionError.ErrorKind\".\n\tErrorKind\022\013\n\007UNK" + + "NOWN\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\"\273\001\n\007TaskLog" + + "\022\013\n\003uri\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022<\n\016message_f" + + "ormat\030\003 \001(\0162$.flyteidl.core.TaskLog.Mess" + + "ageFormat\022&\n\003ttl\030\004 \001(\0132\031.google.protobuf" + + ".Duration\"/\n\rMessageFormat\022\013\n\007UNKNOWN\020\000\022" + + "\007\n\003CSV\020\001\022\010\n\004JSON\020\002\"J\n\024QualityOfServiceSp" + + "ec\0222\n\017queueing_budget\030\001 \001(\0132\031.google.pro" + + "tobuf.Duration\"\302\001\n\020QualityOfService\0224\n\004t" + + "ier\030\001 \001(\0162$.flyteidl.core.QualityOfServi" + + "ce.TierH\000\0223\n\004spec\030\002 \001(\0132#.flyteidl.core." + + "QualityOfServiceSpecH\000\"4\n\004Tier\022\r\n\tUNDEFI" + + "NED\020\000\022\010\n\004HIGH\020\001\022\n\n\006MEDIUM\020\002\022\007\n\003LOW\020\003B\r\n\013" + + "designationB2Z0github.com/lyft/flyteidl/" + + "gen/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_WorkflowExecution_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowExecution_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_NodeExecution_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_NodeExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_NodeExecution_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_TaskExecution_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_TaskExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskExecution_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_ExecutionError_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_ExecutionError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ExecutionError_descriptor, + new java.lang.String[] { "Code", "Message", "ErrorUri", "Kind", }); + internal_static_flyteidl_core_TaskLog_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_TaskLog_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskLog_descriptor, + new java.lang.String[] { "Uri", "Name", "MessageFormat", "Ttl", }); + internal_static_flyteidl_core_QualityOfServiceSpec_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_QualityOfServiceSpec_descriptor, + new java.lang.String[] { "QueueingBudget", }); + internal_static_flyteidl_core_QualityOfService_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_QualityOfService_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_QualityOfService_descriptor, + new java.lang.String[] { "Tier", "Spec", "Designation", }); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/IdentifierOuterClass.java b/gen/pb-java/flyteidl/core/IdentifierOuterClass.java new file mode 100644 index 000000000..43d9f5e3b --- /dev/null +++ b/gen/pb-java/flyteidl/core/IdentifierOuterClass.java @@ -0,0 +1,4043 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/identifier.proto + +package flyteidl.core; + +public final class IdentifierOuterClass { + private IdentifierOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Indicates a resource type within Flyte.
+   * 
+ * + * Protobuf enum {@code flyteidl.core.ResourceType} + */ + public enum ResourceType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * TASK = 1; + */ + TASK(1), + /** + * WORKFLOW = 2; + */ + WORKFLOW(2), + /** + * LAUNCH_PLAN = 3; + */ + LAUNCH_PLAN(3), + UNRECOGNIZED(-1), + ; + + /** + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * TASK = 1; + */ + public static final int TASK_VALUE = 1; + /** + * WORKFLOW = 2; + */ + public static final int WORKFLOW_VALUE = 2; + /** + * LAUNCH_PLAN = 3; + */ + public static final int LAUNCH_PLAN_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResourceType valueOf(int value) { + return forNumber(value); + } + + public static ResourceType forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return TASK; + case 2: return WORKFLOW; + case 3: return LAUNCH_PLAN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResourceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResourceType findValueByNumber(int number) { + return ResourceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.IdentifierOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final ResourceType[] VALUES = values(); + + public static ResourceType 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 ResourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ResourceType) + } + + public interface IdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Identifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifies the specific type of resource that this identifer corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + *
+     * Identifies the specific type of resource that this identifer corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + java.lang.String getVersion(); + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + com.google.protobuf.ByteString + getVersionBytes(); + } + /** + *
+   * Encapsulation of fields that uniquely identifies a Flyte resource.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Identifier} + */ + public static final class Identifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Identifier) + IdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use Identifier.newBuilder() to construct. + private Identifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Identifier() { + resourceType_ = 0; + project_ = ""; + domain_ = ""; + name_ = ""; + version_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Identifier( + 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 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = 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 flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + *
+     * Identifies the specific type of resource that this identifer corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Identifies the specific type of resource that this identifer corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int PROJECT_FIELD_NUMBER = 2; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 3; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + 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; + } + } + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + 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 VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object version_; + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); + } + 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 flyteidl.core.IdentifierOuterClass.Identifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.Identifier other = (flyteidl.core.IdentifierOuterClass.Identifier) obj; + + if (resourceType_ != other.resourceType_) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getVersion() + .equals(other.getVersion())) 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) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.Identifier 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 flyteidl.core.IdentifierOuterClass.Identifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.Identifier 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 flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.Identifier 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(flyteidl.core.IdentifierOuterClass.Identifier 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; + } + /** + *
+     * Encapsulation of fields that uniquely identifies a Flyte resource.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Identifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Identifier) + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.Identifier.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(); + resourceType_ = 0; + + project_ = ""; + + domain_ = ""; + + name_ = ""; + + version_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.Identifier build() { + flyteidl.core.IdentifierOuterClass.Identifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.Identifier buildPartial() { + flyteidl.core.IdentifierOuterClass.Identifier result = new flyteidl.core.IdentifierOuterClass.Identifier(this); + result.resourceType_ = resourceType_; + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + result.version_ = version_; + 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 flyteidl.core.IdentifierOuterClass.Identifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.Identifier other) { + if (other == flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + 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 { + flyteidl.core.IdentifierOuterClass.Identifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.Identifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + 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; + } + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + 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; + } + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + 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 version_ = ""; + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = 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:flyteidl.core.Identifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Identifier) + private static final flyteidl.core.IdentifierOuterClass.Identifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.Identifier(); + } + + public static flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Identifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Identifier(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 flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecutionIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Encapsulation of fields that uniquely identifies a Flyte workflow execution
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} + */ + public static final class WorkflowExecutionIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecutionIdentifier) + WorkflowExecutionIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionIdentifier.newBuilder() to construct. + private WorkflowExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionIdentifier() { + project_ = ""; + domain_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionIdentifier( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + 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; + } + } + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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; + } + /** + *
+     * Encapsulation of fields that uniquely identifies a Flyte workflow execution
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecutionIdentifier) + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.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(); + project_ = ""; + + domain_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier build() { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier buildPartial() { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(this); + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other) { + if (other == flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + 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; + } + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + 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; + } + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowExecutionIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecutionIdentifier) + private static final flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(); + } + + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionIdentifier(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 flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecutionIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * string node_id = 1; + */ + java.lang.String getNodeId(); + /** + * string node_id = 1; + */ + com.google.protobuf.ByteString + getNodeIdBytes(); + + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + boolean hasExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + } + /** + *
+   * Encapsulation of fields that identify a Flyte node execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} + */ + public static final class NodeExecutionIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecutionIdentifier) + NodeExecutionIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionIdentifier.newBuilder() to construct. + private NodeExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionIdentifier() { + nodeId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionIdentifier( + 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(); + + nodeId_ = s; + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = 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 flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object nodeId_; + /** + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + 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(); + nodeId_ = s; + return s; + } + } + /** + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 2; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + 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 (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); + } + if (executionId_ != null) { + output.writeMessage(2, getExecutionId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); + } + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExecutionId()); + } + 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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) obj; + + if (!getNodeId() + .equals(other.getNodeId())) return false; + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) 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) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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; + } + /** + *
+     * Encapsulation of fields that identify a Flyte node execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecutionIdentifier) + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.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(); + nodeId_ = ""; + + if (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier build() { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier buildPartial() { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(this); + result.nodeId_ = nodeId_; + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other) { + if (other == flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance()) return this; + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); + } + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + 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 { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object nodeId_ = ""; + /** + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string node_id = 1; + */ + public Builder setNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); + return this; + } + /** + * string node_id = 1; + */ + public Builder clearNodeId() { + + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); + return this; + } + /** + * string node_id = 1; + */ + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeId_ = value; + onChanged(); + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + @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:flyteidl.core.NodeExecutionIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecutionIdentifier) + private static final flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(); + } + + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionIdentifier(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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecutionIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Identifier task_id = 1; + */ + boolean hasTaskId(); + /** + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); + /** + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); + + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + boolean hasNodeExecutionId(); + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); + + /** + * uint32 retry_attempt = 3; + */ + int getRetryAttempt(); + } + /** + *
+   * Encapsulation of fields that identify a Flyte task execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} + */ + public static final class TaskExecutionIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecutionIdentifier) + TaskExecutionIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionIdentifier.newBuilder() to construct. + private TaskExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionIdentifier() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionIdentifier( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (taskId_ != null) { + subBuilder = taskId_.toBuilder(); + } + taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskId_); + taskId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (nodeExecutionId_ != null) { + subBuilder = nodeExecutionId_.toBuilder(); + } + nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeExecutionId_); + nodeExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + retryAttempt_ = input.readUInt32(); + 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 flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); + } + + public static final int TASK_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskId_ != null; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + return getTaskId(); + } + + public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 2; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionId_ != null; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + return getNodeExecutionId(); + } + + public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; + private int retryAttempt_; + /** + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + + 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 (taskId_ != null) { + output.writeMessage(1, getTaskId()); + } + if (nodeExecutionId_ != null) { + output.writeMessage(2, getNodeExecutionId()); + } + if (retryAttempt_ != 0) { + output.writeUInt32(3, retryAttempt_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTaskId()); + } + if (nodeExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNodeExecutionId()); + } + if (retryAttempt_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, retryAttempt_); + } + 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) obj; + + if (hasTaskId() != other.hasTaskId()) return false; + if (hasTaskId()) { + if (!getTaskId() + .equals(other.getTaskId())) return false; + } + if (hasNodeExecutionId() != other.hasNodeExecutionId()) return false; + if (hasNodeExecutionId()) { + if (!getNodeExecutionId() + .equals(other.getNodeExecutionId())) return false; + } + if (getRetryAttempt() + != other.getRetryAttempt()) 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 (hasTaskId()) { + hash = (37 * hash) + TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskId().hashCode(); + } + if (hasNodeExecutionId()) { + hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeExecutionId().hashCode(); + } + hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; + hash = (53 * hash) + getRetryAttempt(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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; + } + /** + *
+     * Encapsulation of fields that identify a Flyte task execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecutionIdentifier) + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.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 (taskIdBuilder_ == null) { + taskId_ = null; + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + retryAttempt_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier build() { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier buildPartial() { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(this); + if (taskIdBuilder_ == null) { + result.taskId_ = taskId_; + } else { + result.taskId_ = taskIdBuilder_.build(); + } + if (nodeExecutionIdBuilder_ == null) { + result.nodeExecutionId_ = nodeExecutionId_; + } else { + result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); + } + result.retryAttempt_ = retryAttempt_; + 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other) { + if (other == flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance()) return this; + if (other.hasTaskId()) { + mergeTaskId(other.getTaskId()); + } + if (other.hasNodeExecutionId()) { + mergeNodeExecutionId(other.getNodeExecutionId()); + } + if (other.getRetryAttempt() != 0) { + setRetryAttempt(other.getRetryAttempt()); + } + 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 { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskIdBuilder_ != null || taskId_ != null; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + if (taskIdBuilder_ == null) { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } else { + return taskIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskId_ = value; + onChanged(); + } else { + taskIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (taskIdBuilder_ == null) { + taskId_ = builderForValue.build(); + onChanged(); + } else { + taskIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (taskId_ != null) { + taskId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); + } else { + taskId_ = value; + } + onChanged(); + } else { + taskIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder clearTaskId() { + if (taskIdBuilder_ == null) { + taskId_ = null; + onChanged(); + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { + + onChanged(); + return getTaskIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + if (taskIdBuilder_ != null) { + return taskIdBuilder_.getMessageOrBuilder(); + } else { + return taskId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getTaskIdFieldBuilder() { + if (taskIdBuilder_ == null) { + taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getTaskId(), + getParentForChildren(), + isClean()); + taskId_ = null; + } + return taskIdBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } else { + return nodeExecutionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeExecutionId_ = value; + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder setNodeExecutionId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = builderForValue.build(); + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (nodeExecutionId_ != null) { + nodeExecutionId_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); + } else { + nodeExecutionId_ = value; + } + onChanged(); + } else { + nodeExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder clearNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + onChanged(); + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { + + onChanged(); + return getNodeExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + if (nodeExecutionIdBuilder_ != null) { + return nodeExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return nodeExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getNodeExecutionIdFieldBuilder() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getNodeExecutionId(), + getParentForChildren(), + isClean()); + nodeExecutionId_ = null; + } + return nodeExecutionIdBuilder_; + } + + private int retryAttempt_ ; + /** + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + /** + * uint32 retry_attempt = 3; + */ + public Builder setRetryAttempt(int value) { + + retryAttempt_ = value; + onChanged(); + return this; + } + /** + * uint32 retry_attempt = 3; + */ + public Builder clearRetryAttempt() { + + retryAttempt_ = 0; + 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:flyteidl.core.TaskExecutionIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecutionIdentifier) + private static final flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(); + } + + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionIdentifier(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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Identifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Identifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskExecutionIdentifier_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\036flyteidl/core/identifier.proto\022\rflytei" + + "dl.core\"\200\001\n\nIdentifier\0222\n\rresource_type\030" + + "\001 \001(\0162\033.flyteidl.core.ResourceType\022\017\n\007pr" + + "oject\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\014\n\004name\030\004 \001(" + + "\t\022\017\n\007version\030\005 \001(\t\"L\n\033WorkflowExecutionI" + + "dentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + + "(\t\022\014\n\004name\030\004 \001(\t\"l\n\027NodeExecutionIdentif" + + "ier\022\017\n\007node_id\030\001 \001(\t\022@\n\014execution_id\030\002 \001" + + "(\0132*.flyteidl.core.WorkflowExecutionIden" + + "tifier\"\237\001\n\027TaskExecutionIdentifier\022*\n\007ta" + + "sk_id\030\001 \001(\0132\031.flyteidl.core.Identifier\022A" + + "\n\021node_execution_id\030\002 \001(\0132&.flyteidl.cor" + + "e.NodeExecutionIdentifier\022\025\n\rretry_attem" + + "pt\030\003 \001(\r*H\n\014ResourceType\022\017\n\013UNSPECIFIED\020" + + "\000\022\010\n\004TASK\020\001\022\014\n\010WORKFLOW\020\002\022\017\n\013LAUNCH_PLAN" + + "\020\003B2Z0github.com/lyft/flyteidl/gen/pb-go" + + "/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_core_Identifier_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Identifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Identifier_descriptor, + new java.lang.String[] { "ResourceType", "Project", "Domain", "Name", "Version", }); + internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor, + new java.lang.String[] { "Project", "Domain", "Name", }); + internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor, + new java.lang.String[] { "NodeId", "ExecutionId", }); + internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor, + new java.lang.String[] { "TaskId", "NodeExecutionId", "RetryAttempt", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Interface.java b/gen/pb-java/flyteidl/core/Interface.java new file mode 100644 index 000000000..386586380 --- /dev/null +++ b/gen/pb-java/flyteidl/core/Interface.java @@ -0,0 +1,4503 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/interface.proto + +package flyteidl.core; + +public final class Interface { + private Interface() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface VariableOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Variable) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + boolean hasType(); + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + flyteidl.core.Types.LiteralType getType(); + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); + + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + *
+   * Defines a strongly typed variable.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Variable} + */ + public static final class Variable extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Variable) + VariableOrBuilder { + private static final long serialVersionUID = 0L; + // Use Variable.newBuilder() to construct. + private Variable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Variable() { + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Variable( + 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: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = 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 flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private flyteidl.core.Types.LiteralType type_; + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public boolean hasType() { + return type_ != null; + } + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralType getType() { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = 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 (type_ != null) { + output.writeMessage(1, getType()); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getType()); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + 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 flyteidl.core.Interface.Variable)) { + return super.equals(obj); + } + flyteidl.core.Interface.Variable other = (flyteidl.core.Interface.Variable) obj; + + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (!getDescription() + .equals(other.getDescription())) 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 (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.Variable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Variable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Variable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Variable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Variable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Variable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Variable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Variable 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 flyteidl.core.Interface.Variable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Variable 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 flyteidl.core.Interface.Variable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Variable 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(flyteidl.core.Interface.Variable 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; + } + /** + *
+     * Defines a strongly typed variable.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Variable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Variable) + flyteidl.core.Interface.VariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); + } + + // Construct using flyteidl.core.Interface.Variable.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 (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.Variable getDefaultInstanceForType() { + return flyteidl.core.Interface.Variable.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.Variable build() { + flyteidl.core.Interface.Variable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.Variable buildPartial() { + flyteidl.core.Interface.Variable result = new flyteidl.core.Interface.Variable(this); + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + result.description_ = description_; + 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 flyteidl.core.Interface.Variable) { + return mergeFrom((flyteidl.core.Interface.Variable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.Variable other) { + if (other == flyteidl.core.Interface.Variable.getDefaultInstance()) return this; + if (other.hasType()) { + mergeType(other.getType()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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 { + flyteidl.core.Interface.Variable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.Variable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Types.LiteralType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder setType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder setType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder mergeType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = 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:flyteidl.core.Variable) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Variable) + private static final flyteidl.core.Interface.Variable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.Variable(); + } + + public static flyteidl.core.Interface.Variable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Variable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Variable(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 flyteidl.core.Interface.Variable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VariableMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.VariableMap) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + int getVariablesCount(); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + boolean containsVariables( + java.lang.String key); + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getVariables(); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + java.util.Map + getVariablesMap(); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + flyteidl.core.Interface.Variable getVariablesOrDefault( + java.lang.String key, + flyteidl.core.Interface.Variable defaultValue); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + flyteidl.core.Interface.Variable getVariablesOrThrow( + java.lang.String key); + } + /** + *
+   * A map of Variables
+   * 
+ * + * Protobuf type {@code flyteidl.core.VariableMap} + */ + public static final class VariableMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.VariableMap) + VariableMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use VariableMap.newBuilder() to construct. + private VariableMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VariableMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VariableMap( + 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)) { + variables_ = com.google.protobuf.MapField.newMapField( + VariablesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + variables__ = input.readMessage( + VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + variables_.getMutableMap().put( + variables__.getKey(), variables__.getValue()); + 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 flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); + } + + public static final int VARIABLES_FIELD_NUMBER = 1; + private static final class VariablesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Interface.Variable> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Interface.Variable.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Variable> variables_; + private com.google.protobuf.MapField + internalGetVariables() { + if (variables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + VariablesDefaultEntryHolder.defaultEntry); + } + return variables_; + } + + public int getVariablesCount() { + return internalGetVariables().getMap().size(); + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public boolean containsVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetVariables().getMap().containsKey(key); + } + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getVariables() { + return getVariablesMap(); + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public java.util.Map getVariablesMap() { + return internalGetVariables().getMap(); + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrDefault( + java.lang.String key, + flyteidl.core.Interface.Variable defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetVariables(), + VariablesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + variables__ = VariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, variables__); + } + 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 flyteidl.core.Interface.VariableMap)) { + return super.equals(obj); + } + flyteidl.core.Interface.VariableMap other = (flyteidl.core.Interface.VariableMap) obj; + + if (!internalGetVariables().equals( + other.internalGetVariables())) 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 (!internalGetVariables().getMap().isEmpty()) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + internalGetVariables().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.VariableMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.VariableMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.VariableMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.VariableMap 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 flyteidl.core.Interface.VariableMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.VariableMap 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 flyteidl.core.Interface.VariableMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.VariableMap 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(flyteidl.core.Interface.VariableMap 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 map of Variables
+     * 
+ * + * Protobuf type {@code flyteidl.core.VariableMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.VariableMap) + flyteidl.core.Interface.VariableMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); + } + + // Construct using flyteidl.core.Interface.VariableMap.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(); + internalGetMutableVariables().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.VariableMap getDefaultInstanceForType() { + return flyteidl.core.Interface.VariableMap.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.VariableMap build() { + flyteidl.core.Interface.VariableMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.VariableMap buildPartial() { + flyteidl.core.Interface.VariableMap result = new flyteidl.core.Interface.VariableMap(this); + int from_bitField0_ = bitField0_; + result.variables_ = internalGetVariables(); + result.variables_.makeImmutable(); + 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 flyteidl.core.Interface.VariableMap) { + return mergeFrom((flyteidl.core.Interface.VariableMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.VariableMap other) { + if (other == flyteidl.core.Interface.VariableMap.getDefaultInstance()) return this; + internalGetMutableVariables().mergeFrom( + other.internalGetVariables()); + 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 { + flyteidl.core.Interface.VariableMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.VariableMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Variable> variables_; + private com.google.protobuf.MapField + internalGetVariables() { + if (variables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + VariablesDefaultEntryHolder.defaultEntry); + } + return variables_; + } + private com.google.protobuf.MapField + internalGetMutableVariables() { + onChanged();; + if (variables_ == null) { + variables_ = com.google.protobuf.MapField.newMapField( + VariablesDefaultEntryHolder.defaultEntry); + } + if (!variables_.isMutable()) { + variables_ = variables_.copy(); + } + return variables_; + } + + public int getVariablesCount() { + return internalGetVariables().getMap().size(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public boolean containsVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetVariables().getMap().containsKey(key); + } + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getVariables() { + return getVariablesMap(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public java.util.Map getVariablesMap() { + return internalGetVariables().getMap(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrDefault( + java.lang.String key, + flyteidl.core.Interface.Variable defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearVariables() { + internalGetMutableVariables().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public Builder removeVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableVariables().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableVariables() { + return internalGetMutableVariables().getMutableMap(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + public Builder putVariables( + java.lang.String key, + flyteidl.core.Interface.Variable value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableVariables().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public Builder putAllVariables( + java.util.Map values) { + internalGetMutableVariables().getMutableMap() + .putAll(values); + 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:flyteidl.core.VariableMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.VariableMap) + private static final flyteidl.core.Interface.VariableMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.VariableMap(); + } + + public static flyteidl.core.Interface.VariableMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VariableMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VariableMap(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 flyteidl.core.Interface.VariableMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TypedInterfaceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TypedInterface) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + boolean hasInputs(); + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + flyteidl.core.Interface.VariableMap getInputs(); + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder(); + + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + boolean hasOutputs(); + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + flyteidl.core.Interface.VariableMap getOutputs(); + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder(); + } + /** + *
+   * Defines strongly typed inputs and outputs.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TypedInterface} + */ + public static final class TypedInterface extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TypedInterface) + TypedInterfaceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TypedInterface.newBuilder() to construct. + private TypedInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TypedInterface() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TypedInterface( + 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: { + flyteidl.core.Interface.VariableMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Interface.VariableMap.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = 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 flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.core.Interface.VariableMap inputs_; + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMap getInputs() { + return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Interface.VariableMap outputs_; + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMap getOutputs() { + return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + 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 (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + 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 flyteidl.core.Interface.TypedInterface)) { + return super.equals(obj); + } + flyteidl.core.Interface.TypedInterface other = (flyteidl.core.Interface.TypedInterface) obj; + + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) 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 (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.TypedInterface parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.TypedInterface parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.TypedInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.TypedInterface 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 flyteidl.core.Interface.TypedInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.TypedInterface 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 flyteidl.core.Interface.TypedInterface parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.TypedInterface 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(flyteidl.core.Interface.TypedInterface 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; + } + /** + *
+     * Defines strongly typed inputs and outputs.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TypedInterface} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TypedInterface) + flyteidl.core.Interface.TypedInterfaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); + } + + // Construct using flyteidl.core.Interface.TypedInterface.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 (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.TypedInterface getDefaultInstanceForType() { + return flyteidl.core.Interface.TypedInterface.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.TypedInterface build() { + flyteidl.core.Interface.TypedInterface result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.TypedInterface buildPartial() { + flyteidl.core.Interface.TypedInterface result = new flyteidl.core.Interface.TypedInterface(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.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 flyteidl.core.Interface.TypedInterface) { + return mergeFrom((flyteidl.core.Interface.TypedInterface)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.TypedInterface other) { + if (other == flyteidl.core.Interface.TypedInterface.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + 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 { + flyteidl.core.Interface.TypedInterface parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.TypedInterface) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Interface.VariableMap inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> inputsBuilder_; + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder setInputs(flyteidl.core.Interface.VariableMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder setInputs( + flyteidl.core.Interface.VariableMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder mergeInputs(flyteidl.core.Interface.VariableMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Interface.VariableMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; + } + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.core.Interface.VariableMap outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> outputsBuilder_; + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMap getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder setOutputs(flyteidl.core.Interface.VariableMap value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder setOutputs( + flyteidl.core.Interface.VariableMap.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder mergeOutputs(flyteidl.core.Interface.VariableMap value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.core.Interface.VariableMap.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMap.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; + } + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + @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:flyteidl.core.TypedInterface) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TypedInterface) + private static final flyteidl.core.Interface.TypedInterface DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.TypedInterface(); + } + + public static flyteidl.core.Interface.TypedInterface getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypedInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TypedInterface(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 flyteidl.core.Interface.TypedInterface getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Parameter) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + boolean hasVar(); + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + flyteidl.core.Interface.Variable getVar(); + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder(); + + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + boolean hasDefault(); + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + flyteidl.core.Literals.Literal getDefault(); + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder(); + + /** + *
+     *+optional, is this value required to be filled.
+     * 
+ * + * bool required = 3; + */ + boolean getRequired(); + + public flyteidl.core.Interface.Parameter.BehaviorCase getBehaviorCase(); + } + /** + *
+   * A parameter is used as input to a launch plan and has
+   * the special ability to have a default value or mark itself as required.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Parameter} + */ + public static final class Parameter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Parameter) + ParameterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Parameter.newBuilder() to construct. + private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Parameter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Parameter( + 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: { + flyteidl.core.Interface.Variable.Builder subBuilder = null; + if (var_ != null) { + subBuilder = var_.toBuilder(); + } + var_ = input.readMessage(flyteidl.core.Interface.Variable.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(var_); + var_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Literals.Literal.Builder subBuilder = null; + if (behaviorCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.Literal) behavior_).toBuilder(); + } + behavior_ = + input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Literal) behavior_); + behavior_ = subBuilder.buildPartial(); + } + behaviorCase_ = 2; + break; + } + case 24: { + behaviorCase_ = 3; + behavior_ = input.readBool(); + 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 flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); + } + + private int behaviorCase_ = 0; + private java.lang.Object behavior_; + public enum BehaviorCase + implements com.google.protobuf.Internal.EnumLite { + DEFAULT(2), + REQUIRED(3), + BEHAVIOR_NOT_SET(0); + private final int value; + private BehaviorCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BehaviorCase valueOf(int value) { + return forNumber(value); + } + + public static BehaviorCase forNumber(int value) { + switch (value) { + case 2: return DEFAULT; + case 3: return REQUIRED; + case 0: return BEHAVIOR_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public BehaviorCase + getBehaviorCase() { + return BehaviorCase.forNumber( + behaviorCase_); + } + + public static final int VAR_FIELD_NUMBER = 1; + private flyteidl.core.Interface.Variable var_; + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public boolean hasVar() { + return var_ != null; + } + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.Variable getVar() { + return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; + } + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { + return getVar(); + } + + public static final int DEFAULT_FIELD_NUMBER = 2; + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public boolean hasDefault() { + return behaviorCase_ == 2; + } + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.Literal getDefault() { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + + public static final int REQUIRED_FIELD_NUMBER = 3; + /** + *
+     *+optional, is this value required to be filled.
+     * 
+ * + * bool required = 3; + */ + public boolean getRequired() { + if (behaviorCase_ == 3) { + return (java.lang.Boolean) behavior_; + } + return false; + } + + 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 (var_ != null) { + output.writeMessage(1, getVar()); + } + if (behaviorCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.Literal) behavior_); + } + if (behaviorCase_ == 3) { + output.writeBool( + 3, (boolean)((java.lang.Boolean) behavior_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (var_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVar()); + } + if (behaviorCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.Literal) behavior_); + } + if (behaviorCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 3, (boolean)((java.lang.Boolean) behavior_)); + } + 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 flyteidl.core.Interface.Parameter)) { + return super.equals(obj); + } + flyteidl.core.Interface.Parameter other = (flyteidl.core.Interface.Parameter) obj; + + if (hasVar() != other.hasVar()) return false; + if (hasVar()) { + if (!getVar() + .equals(other.getVar())) return false; + } + if (!getBehaviorCase().equals(other.getBehaviorCase())) return false; + switch (behaviorCase_) { + case 2: + if (!getDefault() + .equals(other.getDefault())) return false; + break; + case 3: + if (getRequired() + != other.getRequired()) 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(); + if (hasVar()) { + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + } + switch (behaviorCase_) { + case 2: + hash = (37 * hash) + DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + getDefault().hashCode(); + break; + case 3: + hash = (37 * hash) + REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequired()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.Parameter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Parameter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Parameter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Parameter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Parameter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Parameter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Parameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Parameter 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 flyteidl.core.Interface.Parameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Parameter 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 flyteidl.core.Interface.Parameter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Parameter 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(flyteidl.core.Interface.Parameter 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 parameter is used as input to a launch plan and has
+     * the special ability to have a default value or mark itself as required.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Parameter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Parameter) + flyteidl.core.Interface.ParameterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); + } + + // Construct using flyteidl.core.Interface.Parameter.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 (varBuilder_ == null) { + var_ = null; + } else { + var_ = null; + varBuilder_ = null; + } + behaviorCase_ = 0; + behavior_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.Parameter getDefaultInstanceForType() { + return flyteidl.core.Interface.Parameter.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.Parameter build() { + flyteidl.core.Interface.Parameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.Parameter buildPartial() { + flyteidl.core.Interface.Parameter result = new flyteidl.core.Interface.Parameter(this); + if (varBuilder_ == null) { + result.var_ = var_; + } else { + result.var_ = varBuilder_.build(); + } + if (behaviorCase_ == 2) { + if (defaultBuilder_ == null) { + result.behavior_ = behavior_; + } else { + result.behavior_ = defaultBuilder_.build(); + } + } + if (behaviorCase_ == 3) { + result.behavior_ = behavior_; + } + result.behaviorCase_ = behaviorCase_; + 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 flyteidl.core.Interface.Parameter) { + return mergeFrom((flyteidl.core.Interface.Parameter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.Parameter other) { + if (other == flyteidl.core.Interface.Parameter.getDefaultInstance()) return this; + if (other.hasVar()) { + mergeVar(other.getVar()); + } + switch (other.getBehaviorCase()) { + case DEFAULT: { + mergeDefault(other.getDefault()); + break; + } + case REQUIRED: { + setRequired(other.getRequired()); + break; + } + case BEHAVIOR_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 { + flyteidl.core.Interface.Parameter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.Parameter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int behaviorCase_ = 0; + private java.lang.Object behavior_; + public BehaviorCase + getBehaviorCase() { + return BehaviorCase.forNumber( + behaviorCase_); + } + + public Builder clearBehavior() { + behaviorCase_ = 0; + behavior_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.Interface.Variable var_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> varBuilder_; + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public boolean hasVar() { + return varBuilder_ != null || var_ != null; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.Variable getVar() { + if (varBuilder_ == null) { + return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; + } else { + return varBuilder_.getMessage(); + } + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder setVar(flyteidl.core.Interface.Variable value) { + if (varBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + var_ = value; + onChanged(); + } else { + varBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder setVar( + flyteidl.core.Interface.Variable.Builder builderForValue) { + if (varBuilder_ == null) { + var_ = builderForValue.build(); + onChanged(); + } else { + varBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder mergeVar(flyteidl.core.Interface.Variable value) { + if (varBuilder_ == null) { + if (var_ != null) { + var_ = + flyteidl.core.Interface.Variable.newBuilder(var_).mergeFrom(value).buildPartial(); + } else { + var_ = value; + } + onChanged(); + } else { + varBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder clearVar() { + if (varBuilder_ == null) { + var_ = null; + onChanged(); + } else { + var_ = null; + varBuilder_ = null; + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.Variable.Builder getVarBuilder() { + + onChanged(); + return getVarFieldBuilder().getBuilder(); + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { + if (varBuilder_ != null) { + return varBuilder_.getMessageOrBuilder(); + } else { + return var_ == null ? + flyteidl.core.Interface.Variable.getDefaultInstance() : var_; + } + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> + getVarFieldBuilder() { + if (varBuilder_ == null) { + varBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder>( + getVar(), + getParentForChildren(), + isClean()); + var_ = null; + } + return varBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> defaultBuilder_; + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public boolean hasDefault() { + return behaviorCase_ == 2; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.Literal getDefault() { + if (defaultBuilder_ == null) { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } else { + if (behaviorCase_ == 2) { + return defaultBuilder_.getMessage(); + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder setDefault(flyteidl.core.Literals.Literal value) { + if (defaultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + behavior_ = value; + onChanged(); + } else { + defaultBuilder_.setMessage(value); + } + behaviorCase_ = 2; + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder setDefault( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (defaultBuilder_ == null) { + behavior_ = builderForValue.build(); + onChanged(); + } else { + defaultBuilder_.setMessage(builderForValue.build()); + } + behaviorCase_ = 2; + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder mergeDefault(flyteidl.core.Literals.Literal value) { + if (defaultBuilder_ == null) { + if (behaviorCase_ == 2 && + behavior_ != flyteidl.core.Literals.Literal.getDefaultInstance()) { + behavior_ = flyteidl.core.Literals.Literal.newBuilder((flyteidl.core.Literals.Literal) behavior_) + .mergeFrom(value).buildPartial(); + } else { + behavior_ = value; + } + onChanged(); + } else { + if (behaviorCase_ == 2) { + defaultBuilder_.mergeFrom(value); + } + defaultBuilder_.setMessage(value); + } + behaviorCase_ = 2; + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder clearDefault() { + if (defaultBuilder_ == null) { + if (behaviorCase_ == 2) { + behaviorCase_ = 0; + behavior_ = null; + onChanged(); + } + } else { + if (behaviorCase_ == 2) { + behaviorCase_ = 0; + behavior_ = null; + } + defaultBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.Literal.Builder getDefaultBuilder() { + return getDefaultFieldBuilder().getBuilder(); + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { + if ((behaviorCase_ == 2) && (defaultBuilder_ != null)) { + return defaultBuilder_.getMessageOrBuilder(); + } else { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getDefaultFieldBuilder() { + if (defaultBuilder_ == null) { + if (!(behaviorCase_ == 2)) { + behavior_ = flyteidl.core.Literals.Literal.getDefaultInstance(); + } + defaultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + (flyteidl.core.Literals.Literal) behavior_, + getParentForChildren(), + isClean()); + behavior_ = null; + } + behaviorCase_ = 2; + onChanged();; + return defaultBuilder_; + } + + /** + *
+       *+optional, is this value required to be filled.
+       * 
+ * + * bool required = 3; + */ + public boolean getRequired() { + if (behaviorCase_ == 3) { + return (java.lang.Boolean) behavior_; + } + return false; + } + /** + *
+       *+optional, is this value required to be filled.
+       * 
+ * + * bool required = 3; + */ + public Builder setRequired(boolean value) { + behaviorCase_ = 3; + behavior_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional, is this value required to be filled.
+       * 
+ * + * bool required = 3; + */ + public Builder clearRequired() { + if (behaviorCase_ == 3) { + behaviorCase_ = 0; + behavior_ = 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:flyteidl.core.Parameter) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Parameter) + private static final flyteidl.core.Interface.Parameter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.Parameter(); + } + + public static flyteidl.core.Interface.Parameter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Parameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Parameter(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 flyteidl.core.Interface.Parameter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ParameterMap) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + int getParametersCount(); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + boolean containsParameters( + java.lang.String key); + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameters(); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + java.util.Map + getParametersMap(); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + flyteidl.core.Interface.Parameter getParametersOrDefault( + java.lang.String key, + flyteidl.core.Interface.Parameter defaultValue); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + flyteidl.core.Interface.Parameter getParametersOrThrow( + java.lang.String key); + } + /** + *
+   * A map of Parameters.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ParameterMap} + */ + public static final class ParameterMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ParameterMap) + ParameterMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterMap.newBuilder() to construct. + private ParameterMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterMap( + 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)) { + parameters_ = com.google.protobuf.MapField.newMapField( + ParametersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + parameters__ = input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + parameters_.getMutableMap().put( + parameters__.getKey(), parameters__.getValue()); + 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 flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); + } + + public static final int PARAMETERS_FIELD_NUMBER = 1; + private static final class ParametersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Interface.Parameter> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Interface.Parameter.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Parameter> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameters().getMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrDefault( + java.lang.String key, + flyteidl.core.Interface.Parameter defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParameters(), + ParametersDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, parameters__); + } + 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 flyteidl.core.Interface.ParameterMap)) { + return super.equals(obj); + } + flyteidl.core.Interface.ParameterMap other = (flyteidl.core.Interface.ParameterMap) obj; + + if (!internalGetParameters().equals( + other.internalGetParameters())) 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 (!internalGetParameters().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameters().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.ParameterMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.ParameterMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.ParameterMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.ParameterMap 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 flyteidl.core.Interface.ParameterMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.ParameterMap 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 flyteidl.core.Interface.ParameterMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.ParameterMap 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(flyteidl.core.Interface.ParameterMap 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 map of Parameters.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ParameterMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ParameterMap) + flyteidl.core.Interface.ParameterMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); + } + + // Construct using flyteidl.core.Interface.ParameterMap.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(); + internalGetMutableParameters().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.ParameterMap getDefaultInstanceForType() { + return flyteidl.core.Interface.ParameterMap.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.ParameterMap build() { + flyteidl.core.Interface.ParameterMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.ParameterMap buildPartial() { + flyteidl.core.Interface.ParameterMap result = new flyteidl.core.Interface.ParameterMap(this); + int from_bitField0_ = bitField0_; + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + 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 flyteidl.core.Interface.ParameterMap) { + return mergeFrom((flyteidl.core.Interface.ParameterMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.ParameterMap other) { + if (other == flyteidl.core.Interface.ParameterMap.getDefaultInstance()) return this; + internalGetMutableParameters().mergeFrom( + other.internalGetParameters()); + 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 { + flyteidl.core.Interface.ParameterMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.ParameterMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Parameter> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + private com.google.protobuf.MapField + internalGetMutableParameters() { + onChanged();; + if (parameters_ == null) { + parameters_ = com.google.protobuf.MapField.newMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + if (!parameters_.isMutable()) { + parameters_ = parameters_.copy(); + } + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameters().getMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrDefault( + java.lang.String key, + flyteidl.core.Interface.Parameter defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameters() { + internalGetMutableParameters().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public Builder removeParameters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameters().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameters() { + return internalGetMutableParameters().getMutableMap(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + public Builder putParameters( + java.lang.String key, + flyteidl.core.Interface.Parameter value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameters().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public Builder putAllParameters( + java.util.Map values) { + internalGetMutableParameters().getMutableMap() + .putAll(values); + 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:flyteidl.core.ParameterMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ParameterMap) + private static final flyteidl.core.Interface.ParameterMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.ParameterMap(); + } + + public static flyteidl.core.Interface.ParameterMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterMap(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 flyteidl.core.Interface.ParameterMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Variable_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Variable_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_VariableMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_VariableMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_VariableMap_VariablesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TypedInterface_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TypedInterface_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Parameter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Parameter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ParameterMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ParameterMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ParameterMap_ParametersEntry_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\035flyteidl/core/interface.proto\022\rflyteid" + + "l.core\032\031flyteidl/core/types.proto\032\034flyte" + + "idl/core/literals.proto\"I\n\010Variable\022(\n\004t" + + "ype\030\001 \001(\0132\032.flyteidl.core.LiteralType\022\023\n" + + "\013description\030\002 \001(\t\"\226\001\n\013VariableMap\022<\n\tva" + + "riables\030\001 \003(\0132).flyteidl.core.VariableMa" + + "p.VariablesEntry\032I\n\016VariablesEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.flyteidl.core.V" + + "ariable:\0028\001\"i\n\016TypedInterface\022*\n\006inputs\030" + + "\001 \001(\0132\032.flyteidl.core.VariableMap\022+\n\007out" + + "puts\030\002 \001(\0132\032.flyteidl.core.VariableMap\"|" + + "\n\tParameter\022$\n\003var\030\001 \001(\0132\027.flyteidl.core" + + ".Variable\022)\n\007default\030\002 \001(\0132\026.flyteidl.co" + + "re.LiteralH\000\022\022\n\010required\030\003 \001(\010H\000B\n\n\010beha" + + "vior\"\234\001\n\014ParameterMap\022?\n\nparameters\030\001 \003(" + + "\0132+.flyteidl.core.ParameterMap.Parameter" + + "sEntry\032K\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\'" + + "\n\005value\030\002 \001(\0132\030.flyteidl.core.Parameter:" + + "\0028\001B2Z0github.com/lyft/flyteidl/gen/pb-g" + + "o/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Types.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_Variable_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Variable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Variable_descriptor, + new java.lang.String[] { "Type", "Description", }); + internal_static_flyteidl_core_VariableMap_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_VariableMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_VariableMap_descriptor, + new java.lang.String[] { "Variables", }); + internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor = + internal_static_flyteidl_core_VariableMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_VariableMap_VariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_TypedInterface_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_TypedInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TypedInterface_descriptor, + new java.lang.String[] { "Inputs", "Outputs", }); + internal_static_flyteidl_core_Parameter_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_Parameter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Parameter_descriptor, + new java.lang.String[] { "Var", "Default", "Required", "Behavior", }); + internal_static_flyteidl_core_ParameterMap_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_ParameterMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ParameterMap_descriptor, + new java.lang.String[] { "Parameters", }); + internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor = + internal_static_flyteidl_core_ParameterMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_ParameterMap_ParametersEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + flyteidl.core.Types.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Literals.java b/gen/pb-java/flyteidl/core/Literals.java new file mode 100644 index 000000000..78b622533 --- /dev/null +++ b/gen/pb-java/flyteidl/core/Literals.java @@ -0,0 +1,14859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/literals.proto + +package flyteidl.core; + +public final class Literals { + private Literals() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface PrimitiveOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Primitive) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 integer = 1; + */ + long getInteger(); + + /** + * double float_value = 2; + */ + double getFloatValue(); + + /** + * string string_value = 3; + */ + java.lang.String getStringValue(); + /** + * string string_value = 3; + */ + com.google.protobuf.ByteString + getStringValueBytes(); + + /** + * bool boolean = 4; + */ + boolean getBoolean(); + + /** + * .google.protobuf.Timestamp datetime = 5; + */ + boolean hasDatetime(); + /** + * .google.protobuf.Timestamp datetime = 5; + */ + com.google.protobuf.Timestamp getDatetime(); + /** + * .google.protobuf.Timestamp datetime = 5; + */ + com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder(); + + /** + * .google.protobuf.Duration duration = 6; + */ + boolean hasDuration(); + /** + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.Duration getDuration(); + /** + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + public flyteidl.core.Literals.Primitive.ValueCase getValueCase(); + } + /** + *
+   * Primitive Types
+   * 
+ * + * Protobuf type {@code flyteidl.core.Primitive} + */ + public static final class Primitive extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Primitive) + PrimitiveOrBuilder { + private static final long serialVersionUID = 0L; + // Use Primitive.newBuilder() to construct. + private Primitive(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Primitive() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Primitive( + 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 8: { + valueCase_ = 1; + value_ = input.readInt64(); + break; + } + case 17: { + valueCase_ = 2; + value_ = input.readDouble(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 3; + value_ = s; + break; + } + case 32: { + valueCase_ = 4; + value_ = input.readBool(); + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((com.google.protobuf.Timestamp) value_).toBuilder(); + } + value_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (valueCase_ == 6) { + subBuilder = ((com.google.protobuf.Duration) value_).toBuilder(); + } + value_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Duration) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 6; + 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 flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + INTEGER(1), + FLOAT_VALUE(2), + STRING_VALUE(3), + BOOLEAN(4), + DATETIME(5), + DURATION(6), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return INTEGER; + case 2: return FLOAT_VALUE; + case 3: return STRING_VALUE; + case 4: return BOOLEAN; + case 5: return DATETIME; + case 6: return DURATION; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int INTEGER_FIELD_NUMBER = 1; + /** + * int64 integer = 1; + */ + public long getInteger() { + if (valueCase_ == 1) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int FLOAT_VALUE_FIELD_NUMBER = 2; + /** + * double float_value = 2; + */ + public double getFloatValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 3; + /** + * string string_value = 3; + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + 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(); + if (valueCase_ == 3) { + value_ = s; + } + return s; + } + } + /** + * string string_value = 3; + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 3) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOLEAN_FIELD_NUMBER = 4; + /** + * bool boolean = 4; + */ + public boolean getBoolean() { + if (valueCase_ == 4) { + return (java.lang.Boolean) value_; + } + return false; + } + + public static final int DATETIME_FIELD_NUMBER = 5; + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public boolean hasDatetime() { + return valueCase_ == 5; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.Timestamp getDatetime() { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int DURATION_FIELD_NUMBER = 6; + /** + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return valueCase_ == 6; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeInt64( + 1, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 2) { + output.writeDouble( + 2, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + if (valueCase_ == 4) { + output.writeBool( + 4, (boolean)((java.lang.Boolean) value_)); + } + if (valueCase_ == 5) { + output.writeMessage(5, (com.google.protobuf.Timestamp) value_); + } + if (valueCase_ == 6) { + output.writeMessage(6, (com.google.protobuf.Duration) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 1, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 2, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 4, (boolean)((java.lang.Boolean) value_)); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.protobuf.Timestamp) value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.protobuf.Duration) 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 flyteidl.core.Literals.Primitive)) { + return super.equals(obj); + } + flyteidl.core.Literals.Primitive other = (flyteidl.core.Literals.Primitive) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (getInteger() + != other.getInteger()) return false; + break; + case 2: + if (java.lang.Double.doubleToLongBits(getFloatValue()) + != java.lang.Double.doubleToLongBits( + other.getFloatValue())) return false; + break; + case 3: + if (!getStringValue() + .equals(other.getStringValue())) return false; + break; + case 4: + if (getBoolean() + != other.getBoolean()) return false; + break; + case 5: + if (!getDatetime() + .equals(other.getDatetime())) return false; + break; + case 6: + if (!getDuration() + .equals(other.getDuration())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + INTEGER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInteger()); + break; + case 2: + hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFloatValue())); + break; + case 3: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 4: + hash = (37 * hash) + BOOLEAN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBoolean()); + break; + case 5: + hash = (37 * hash) + DATETIME_FIELD_NUMBER; + hash = (53 * hash) + getDatetime().hashCode(); + break; + case 6: + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Primitive parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Primitive parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Primitive parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Primitive parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Primitive parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Primitive parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Primitive parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Primitive 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 flyteidl.core.Literals.Primitive parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Primitive 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 flyteidl.core.Literals.Primitive parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Primitive 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(flyteidl.core.Literals.Primitive 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; + } + /** + *
+     * Primitive Types
+     * 
+ * + * Protobuf type {@code flyteidl.core.Primitive} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Primitive) + flyteidl.core.Literals.PrimitiveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); + } + + // Construct using flyteidl.core.Literals.Primitive.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(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Primitive getDefaultInstanceForType() { + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Primitive build() { + flyteidl.core.Literals.Primitive result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Primitive buildPartial() { + flyteidl.core.Literals.Primitive result = new flyteidl.core.Literals.Primitive(this); + if (valueCase_ == 1) { + result.value_ = value_; + } + if (valueCase_ == 2) { + result.value_ = value_; + } + if (valueCase_ == 3) { + result.value_ = value_; + } + if (valueCase_ == 4) { + result.value_ = value_; + } + if (valueCase_ == 5) { + if (datetimeBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = datetimeBuilder_.build(); + } + } + if (valueCase_ == 6) { + if (durationBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = durationBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + 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 flyteidl.core.Literals.Primitive) { + return mergeFrom((flyteidl.core.Literals.Primitive)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Primitive other) { + if (other == flyteidl.core.Literals.Primitive.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case INTEGER: { + setInteger(other.getInteger()); + break; + } + case FLOAT_VALUE: { + setFloatValue(other.getFloatValue()); + break; + } + case STRING_VALUE: { + valueCase_ = 3; + value_ = other.value_; + onChanged(); + break; + } + case BOOLEAN: { + setBoolean(other.getBoolean()); + break; + } + case DATETIME: { + mergeDatetime(other.getDatetime()); + break; + } + case DURATION: { + mergeDuration(other.getDuration()); + break; + } + case VALUE_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 { + flyteidl.core.Literals.Primitive parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Primitive) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + /** + * int64 integer = 1; + */ + public long getInteger() { + if (valueCase_ == 1) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * int64 integer = 1; + */ + public Builder setInteger(long value) { + valueCase_ = 1; + value_ = value; + onChanged(); + return this; + } + /** + * int64 integer = 1; + */ + public Builder clearInteger() { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * double float_value = 2; + */ + public double getFloatValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + /** + * double float_value = 2; + */ + public Builder setFloatValue(double value) { + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + * double float_value = 2; + */ + public Builder clearFloatValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * string string_value = 3; + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 3) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string string_value = 3; + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 3) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string string_value = 3; + */ + public Builder setStringValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + * string string_value = 3; + */ + public Builder clearStringValue() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + * string string_value = 3; + */ + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + + /** + * bool boolean = 4; + */ + public boolean getBoolean() { + if (valueCase_ == 4) { + return (java.lang.Boolean) value_; + } + return false; + } + /** + * bool boolean = 4; + */ + public Builder setBoolean(boolean value) { + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + /** + * bool boolean = 4; + */ + public Builder clearBoolean() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> datetimeBuilder_; + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public boolean hasDatetime() { + return valueCase_ == 5; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.Timestamp getDatetime() { + if (datetimeBuilder_ == null) { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return datetimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder setDatetime(com.google.protobuf.Timestamp value) { + if (datetimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + datetimeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder setDatetime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (datetimeBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + datetimeBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder mergeDatetime(com.google.protobuf.Timestamp value) { + if (datetimeBuilder_ == null) { + if (valueCase_ == 5 && + value_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + value_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + datetimeBuilder_.mergeFrom(value); + } + datetimeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder clearDatetime() { + if (datetimeBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + datetimeBuilder_.clear(); + } + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.Timestamp.Builder getDatetimeBuilder() { + return getDatetimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { + if ((valueCase_ == 5) && (datetimeBuilder_ != null)) { + return datetimeBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getDatetimeFieldBuilder() { + if (datetimeBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + datetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged();; + return datetimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return valueCase_ == 6; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (valueCase_ == 6) { + return durationBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 6; + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (valueCase_ == 6 && + value_ != com.google.protobuf.Duration.getDefaultInstance()) { + value_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 6) { + durationBuilder_.mergeFrom(value); + } + durationBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + durationBuilder_.clear(); + } + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + return getDurationFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if ((valueCase_ == 6) && (durationBuilder_ != null)) { + return durationBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * .google.protobuf.Duration duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + if (!(valueCase_ == 6)) { + value_ = com.google.protobuf.Duration.getDefaultInstance(); + } + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 6; + onChanged();; + return durationBuilder_; + } + @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:flyteidl.core.Primitive) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Primitive) + private static final flyteidl.core.Literals.Primitive DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Primitive(); + } + + public static flyteidl.core.Literals.Primitive getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Primitive parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Primitive(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 flyteidl.core.Literals.Primitive getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VoidOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Void) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
+   * undefined since it can be assigned to a scalar of any LiteralType.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Void} + */ + public static final class Void extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Void) + VoidOrBuilder { + private static final long serialVersionUID = 0L; + // Use Void.newBuilder() to construct. + private Void(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Void() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Void( + 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; + 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 flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.core.Literals.Void)) { + return super.equals(obj); + } + flyteidl.core.Literals.Void other = (flyteidl.core.Literals.Void) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Void parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Void parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Void parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Void parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Void parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Void parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Void parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Void 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 flyteidl.core.Literals.Void parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Void 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 flyteidl.core.Literals.Void parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Void 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(flyteidl.core.Literals.Void 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; + } + /** + *
+     * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
+     * undefined since it can be assigned to a scalar of any LiteralType.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Void} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Void) + flyteidl.core.Literals.VoidOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); + } + + // Construct using flyteidl.core.Literals.Void.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Void getDefaultInstanceForType() { + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Void build() { + flyteidl.core.Literals.Void result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Void buildPartial() { + flyteidl.core.Literals.Void result = new flyteidl.core.Literals.Void(this); + 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 flyteidl.core.Literals.Void) { + return mergeFrom((flyteidl.core.Literals.Void)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Void other) { + if (other == flyteidl.core.Literals.Void.getDefaultInstance()) return this; + 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 { + flyteidl.core.Literals.Void parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Void) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.core.Void) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Void) + private static final flyteidl.core.Literals.Void DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Void(); + } + + public static flyteidl.core.Literals.Void getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Void parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Void(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 flyteidl.core.Literals.Void getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Blob) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + boolean hasMetadata(); + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + flyteidl.core.Literals.BlobMetadata getMetadata(); + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder(); + + /** + * string uri = 3; + */ + java.lang.String getUri(); + /** + * string uri = 3; + */ + com.google.protobuf.ByteString + getUriBytes(); + } + /** + *
+   * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
+   * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Blob} + */ + public static final class Blob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Blob) + BlobOrBuilder { + private static final long serialVersionUID = 0L; + // Use Blob.newBuilder() to construct. + private Blob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Blob() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Blob( + 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: { + flyteidl.core.Literals.BlobMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Literals.BlobMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); + } + + public static final int METADATA_FIELD_NUMBER = 1; + private flyteidl.core.Literals.BlobMetadata metadata_; + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int URI_FIELD_NUMBER = 3; + private volatile java.lang.Object uri_; + /** + * string uri = 3; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * string uri = 3; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = 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 (metadata_ != null) { + output.writeMessage(1, getMetadata()); + } + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); + } + 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 flyteidl.core.Literals.Blob)) { + return super.equals(obj); + } + flyteidl.core.Literals.Blob other = (flyteidl.core.Literals.Blob) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getUri() + .equals(other.getUri())) 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 (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Blob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Blob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Blob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Blob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Blob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Blob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Blob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Blob 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 flyteidl.core.Literals.Blob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Blob 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 flyteidl.core.Literals.Blob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Blob 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(flyteidl.core.Literals.Blob 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; + } + /** + *
+     * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
+     * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Blob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Blob) + flyteidl.core.Literals.BlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); + } + + // Construct using flyteidl.core.Literals.Blob.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 (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + uri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Blob getDefaultInstanceForType() { + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Blob build() { + flyteidl.core.Literals.Blob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Blob buildPartial() { + flyteidl.core.Literals.Blob result = new flyteidl.core.Literals.Blob(this); + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.uri_ = uri_; + 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 flyteidl.core.Literals.Blob) { + return mergeFrom((flyteidl.core.Literals.Blob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Blob other) { + if (other == flyteidl.core.Literals.Blob.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + 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 { + flyteidl.core.Literals.Blob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Blob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Literals.BlobMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> metadataBuilder_; + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder setMetadata(flyteidl.core.Literals.BlobMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder setMetadata( + flyteidl.core.Literals.BlobMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder mergeMetadata(flyteidl.core.Literals.BlobMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Literals.BlobMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; + } + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object uri_ = ""; + /** + * string uri = 3; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uri = 3; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uri = 3; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * string uri = 3; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * string uri = 3; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = 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:flyteidl.core.Blob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Blob) + private static final flyteidl.core.Literals.Blob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Blob(); + } + + public static flyteidl.core.Literals.Blob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Blob(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 flyteidl.core.Literals.Blob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlobMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.BlobType type = 1; + */ + boolean hasType(); + /** + * .flyteidl.core.BlobType type = 1; + */ + flyteidl.core.Types.BlobType getType(); + /** + * .flyteidl.core.BlobType type = 1; + */ + flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.core.BlobMetadata} + */ + public static final class BlobMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BlobMetadata) + BlobMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BlobMetadata.newBuilder() to construct. + private BlobMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlobMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BlobMetadata( + 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: { + flyteidl.core.Types.BlobType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private flyteidl.core.Types.BlobType type_; + /** + * .flyteidl.core.BlobType type = 1; + */ + public boolean hasType() { + return type_ != null; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobType getType() { + return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + 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 (type_ != null) { + output.writeMessage(1, getType()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getType()); + } + 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 flyteidl.core.Literals.BlobMetadata)) { + return super.equals(obj); + } + flyteidl.core.Literals.BlobMetadata other = (flyteidl.core.Literals.BlobMetadata) obj; + + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) 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 (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BlobMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BlobMetadata 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 flyteidl.core.Literals.BlobMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BlobMetadata 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 flyteidl.core.Literals.BlobMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BlobMetadata 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(flyteidl.core.Literals.BlobMetadata 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 flyteidl.core.BlobMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobMetadata) + flyteidl.core.Literals.BlobMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); + } + + // Construct using flyteidl.core.Literals.BlobMetadata.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 (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.BlobMetadata getDefaultInstanceForType() { + return flyteidl.core.Literals.BlobMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.BlobMetadata build() { + flyteidl.core.Literals.BlobMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.BlobMetadata buildPartial() { + flyteidl.core.Literals.BlobMetadata result = new flyteidl.core.Literals.BlobMetadata(this); + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.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 flyteidl.core.Literals.BlobMetadata) { + return mergeFrom((flyteidl.core.Literals.BlobMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BlobMetadata other) { + if (other == flyteidl.core.Literals.BlobMetadata.getDefaultInstance()) return this; + if (other.hasType()) { + mergeType(other.getType()); + } + 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 { + flyteidl.core.Literals.BlobMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BlobMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Types.BlobType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> typeBuilder_; + /** + * .flyteidl.core.BlobType type = 1; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder setType(flyteidl.core.Types.BlobType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder setType( + flyteidl.core.Types.BlobType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder mergeType(flyteidl.core.Types.BlobType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.BlobType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.BlobType.getDefaultInstance() : type_; + } + } + /** + * .flyteidl.core.BlobType type = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + @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:flyteidl.core.BlobMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BlobMetadata) + private static final flyteidl.core.Literals.BlobMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BlobMetadata(); + } + + public static flyteidl.core.Literals.BlobMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlobMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlobMetadata(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 flyteidl.core.Literals.BlobMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BinaryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Binary) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes value = 1; + */ + com.google.protobuf.ByteString getValue(); + + /** + * string tag = 2; + */ + java.lang.String getTag(); + /** + * string tag = 2; + */ + com.google.protobuf.ByteString + getTagBytes(); + } + /** + *
+   * A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
+   * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Binary} + */ + public static final class Binary extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Binary) + BinaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use Binary.newBuilder() to construct. + private Binary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Binary() { + value_ = com.google.protobuf.ByteString.EMPTY; + tag_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Binary( + 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: { + + value_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + tag_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 1; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + public static final int TAG_FIELD_NUMBER = 2; + private volatile java.lang.Object tag_; + /** + * string tag = 2; + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + 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(); + tag_ = s; + return s; + } + } + /** + * string tag = 2; + */ + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tag_ = 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 (!value_.isEmpty()) { + output.writeBytes(1, value_); + } + if (!getTagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, value_); + } + if (!getTagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); + } + 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 flyteidl.core.Literals.Binary)) { + return super.equals(obj); + } + flyteidl.core.Literals.Binary other = (flyteidl.core.Literals.Binary) obj; + + if (!getValue() + .equals(other.getValue())) return false; + if (!getTag() + .equals(other.getTag())) 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Binary parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binary parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binary parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binary 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 flyteidl.core.Literals.Binary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binary 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 flyteidl.core.Literals.Binary parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binary 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(flyteidl.core.Literals.Binary 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 simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
+     * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Binary} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Binary) + flyteidl.core.Literals.BinaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); + } + + // Construct using flyteidl.core.Literals.Binary.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(); + value_ = com.google.protobuf.ByteString.EMPTY; + + tag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Binary getDefaultInstanceForType() { + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Binary build() { + flyteidl.core.Literals.Binary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Binary buildPartial() { + flyteidl.core.Literals.Binary result = new flyteidl.core.Literals.Binary(this); + result.value_ = value_; + result.tag_ = tag_; + 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 flyteidl.core.Literals.Binary) { + return mergeFrom((flyteidl.core.Literals.Binary)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Binary other) { + if (other == flyteidl.core.Literals.Binary.getDefaultInstance()) return this; + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (!other.getTag().isEmpty()) { + tag_ = other.tag_; + 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 { + flyteidl.core.Literals.Binary parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Binary) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 1; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 1; + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 1; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private java.lang.Object tag_ = ""; + /** + * string tag = 2; + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag = 2; + */ + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag = 2; + */ + public Builder setTag( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tag_ = value; + onChanged(); + return this; + } + /** + * string tag = 2; + */ + public Builder clearTag() { + + tag_ = getDefaultInstance().getTag(); + onChanged(); + return this; + } + /** + * string tag = 2; + */ + public Builder setTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tag_ = 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:flyteidl.core.Binary) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Binary) + private static final flyteidl.core.Literals.Binary DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Binary(); + } + + public static flyteidl.core.Literals.Binary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Binary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Binary(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 flyteidl.core.Literals.Binary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SchemaOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Schema) + com.google.protobuf.MessageOrBuilder { + + /** + * string uri = 1; + */ + java.lang.String getUri(); + /** + * string uri = 1; + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + * .flyteidl.core.SchemaType type = 3; + */ + boolean hasType(); + /** + * .flyteidl.core.SchemaType type = 3; + */ + flyteidl.core.Types.SchemaType getType(); + /** + * .flyteidl.core.SchemaType type = 3; + */ + flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder(); + } + /** + *
+   * A strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Schema} + */ + public static final class Schema extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Schema) + SchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use Schema.newBuilder() to construct. + private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Schema() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Schema( + 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(); + + uri_ = s; + break; + } + case 26: { + flyteidl.core.Types.SchemaType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private flyteidl.core.Types.SchemaType type_; + /** + * .flyteidl.core.SchemaType type = 3; + */ + public boolean hasType() { + return type_ != null; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaType getType() { + return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + 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 (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (type_ != null) { + output.writeMessage(3, getType()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getType()); + } + 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 flyteidl.core.Literals.Schema)) { + return super.equals(obj); + } + flyteidl.core.Literals.Schema other = (flyteidl.core.Literals.Schema) obj; + + if (!getUri() + .equals(other.getUri())) return false; + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Schema parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Schema parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Schema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Schema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Schema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Schema parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Schema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Schema 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 flyteidl.core.Literals.Schema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Schema 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 flyteidl.core.Literals.Schema parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Schema 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(flyteidl.core.Literals.Schema 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 strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Schema} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Schema) + flyteidl.core.Literals.SchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); + } + + // Construct using flyteidl.core.Literals.Schema.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(); + uri_ = ""; + + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Schema getDefaultInstanceForType() { + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Schema build() { + flyteidl.core.Literals.Schema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Schema buildPartial() { + flyteidl.core.Literals.Schema result = new flyteidl.core.Literals.Schema(this); + result.uri_ = uri_; + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.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 flyteidl.core.Literals.Schema) { + return mergeFrom((flyteidl.core.Literals.Schema)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Schema other) { + if (other == flyteidl.core.Literals.Schema.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (other.hasType()) { + mergeType(other.getType()); + } + 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 { + flyteidl.core.Literals.Schema parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Schema) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uri_ = ""; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uri = 1; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Types.SchemaType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> typeBuilder_; + /** + * .flyteidl.core.SchemaType type = 3; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder setType(flyteidl.core.Types.SchemaType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder setType( + flyteidl.core.Types.SchemaType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder mergeType(flyteidl.core.Types.SchemaType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.SchemaType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; + } + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + @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:flyteidl.core.Schema) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Schema) + private static final flyteidl.core.Literals.Schema DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Schema(); + } + + public static flyteidl.core.Literals.Schema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schema(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 flyteidl.core.Literals.Schema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ScalarOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Scalar) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Primitive primitive = 1; + */ + boolean hasPrimitive(); + /** + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.Primitive getPrimitive(); + /** + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); + + /** + * .flyteidl.core.Blob blob = 2; + */ + boolean hasBlob(); + /** + * .flyteidl.core.Blob blob = 2; + */ + flyteidl.core.Literals.Blob getBlob(); + /** + * .flyteidl.core.Blob blob = 2; + */ + flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder(); + + /** + * .flyteidl.core.Binary binary = 3; + */ + boolean hasBinary(); + /** + * .flyteidl.core.Binary binary = 3; + */ + flyteidl.core.Literals.Binary getBinary(); + /** + * .flyteidl.core.Binary binary = 3; + */ + flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder(); + + /** + * .flyteidl.core.Schema schema = 4; + */ + boolean hasSchema(); + /** + * .flyteidl.core.Schema schema = 4; + */ + flyteidl.core.Literals.Schema getSchema(); + /** + * .flyteidl.core.Schema schema = 4; + */ + flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder(); + + /** + * .flyteidl.core.Void none_type = 5; + */ + boolean hasNoneType(); + /** + * .flyteidl.core.Void none_type = 5; + */ + flyteidl.core.Literals.Void getNoneType(); + /** + * .flyteidl.core.Void none_type = 5; + */ + flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder(); + + /** + * .flyteidl.core.Error error = 6; + */ + boolean hasError(); + /** + * .flyteidl.core.Error error = 6; + */ + flyteidl.core.Types.Error getError(); + /** + * .flyteidl.core.Error error = 6; + */ + flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); + + /** + * .google.protobuf.Struct generic = 7; + */ + boolean hasGeneric(); + /** + * .google.protobuf.Struct generic = 7; + */ + com.google.protobuf.Struct getGeneric(); + /** + * .google.protobuf.Struct generic = 7; + */ + com.google.protobuf.StructOrBuilder getGenericOrBuilder(); + + public flyteidl.core.Literals.Scalar.ValueCase getValueCase(); + } + /** + * Protobuf type {@code flyteidl.core.Scalar} + */ + public static final class Scalar extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Scalar) + ScalarOrBuilder { + private static final long serialVersionUID = 0L; + // Use Scalar.newBuilder() to construct. + private Scalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Scalar() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Scalar( + 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: { + flyteidl.core.Literals.Primitive.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Primitive) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + flyteidl.core.Literals.Blob.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.Blob) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Blob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Blob) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + flyteidl.core.Literals.Binary.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((flyteidl.core.Literals.Binary) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Binary.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Binary) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + flyteidl.core.Literals.Schema.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((flyteidl.core.Literals.Schema) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Schema) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + flyteidl.core.Literals.Void.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((flyteidl.core.Literals.Void) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Void.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Void) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 50: { + flyteidl.core.Types.Error.Builder subBuilder = null; + if (valueCase_ == 6) { + subBuilder = ((flyteidl.core.Types.Error) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.Error) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 6; + break; + } + case 58: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (valueCase_ == 7) { + subBuilder = ((com.google.protobuf.Struct) value_).toBuilder(); + } + value_ = + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Struct) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 7; + 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 flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + PRIMITIVE(1), + BLOB(2), + BINARY(3), + SCHEMA(4), + NONE_TYPE(5), + ERROR(6), + GENERIC(7), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return PRIMITIVE; + case 2: return BLOB; + case 3: return BINARY; + case 4: return SCHEMA; + case 5: return NONE_TYPE; + case 6: return ERROR; + case 7: return GENERIC; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int PRIMITIVE_FIELD_NUMBER = 1; + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valueCase_ == 1; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + + public static final int BLOB_FIELD_NUMBER = 2; + /** + * .flyteidl.core.Blob blob = 2; + */ + public boolean hasBlob() { + return valueCase_ == 2; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.Blob getBlob() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + + public static final int BINARY_FIELD_NUMBER = 3; + /** + * .flyteidl.core.Binary binary = 3; + */ + public boolean hasBinary() { + return valueCase_ == 3; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.Binary getBinary() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + + public static final int SCHEMA_FIELD_NUMBER = 4; + /** + * .flyteidl.core.Schema schema = 4; + */ + public boolean hasSchema() { + return valueCase_ == 4; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.Schema getSchema() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + + public static final int NONE_TYPE_FIELD_NUMBER = 5; + /** + * .flyteidl.core.Void none_type = 5; + */ + public boolean hasNoneType() { + return valueCase_ == 5; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.Void getNoneType() { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 6; + /** + * .flyteidl.core.Error error = 6; + */ + public boolean hasError() { + return valueCase_ == 6; + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.Error getError() { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + + public static final int GENERIC_FIELD_NUMBER = 7; + /** + * .google.protobuf.Struct generic = 7; + */ + public boolean hasGeneric() { + return valueCase_ == 7; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.Struct getGeneric() { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Primitive) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.Blob) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Literals.Binary) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Literals.Schema) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, (flyteidl.core.Literals.Void) value_); + } + if (valueCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Types.Error) value_); + } + if (valueCase_ == 7) { + output.writeMessage(7, (com.google.protobuf.Struct) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Primitive) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.Blob) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Literals.Binary) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Literals.Schema) value_); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.core.Literals.Void) value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Types.Error) value_); + } + if (valueCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.protobuf.Struct) 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 flyteidl.core.Literals.Scalar)) { + return super.equals(obj); + } + flyteidl.core.Literals.Scalar other = (flyteidl.core.Literals.Scalar) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (!getPrimitive() + .equals(other.getPrimitive())) return false; + break; + case 2: + if (!getBlob() + .equals(other.getBlob())) return false; + break; + case 3: + if (!getBinary() + .equals(other.getBinary())) return false; + break; + case 4: + if (!getSchema() + .equals(other.getSchema())) return false; + break; + case 5: + if (!getNoneType() + .equals(other.getNoneType())) return false; + break; + case 6: + if (!getError() + .equals(other.getError())) return false; + break; + case 7: + if (!getGeneric() + .equals(other.getGeneric())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; + hash = (53 * hash) + getPrimitive().hashCode(); + break; + case 2: + hash = (37 * hash) + BLOB_FIELD_NUMBER; + hash = (53 * hash) + getBlob().hashCode(); + break; + case 3: + hash = (37 * hash) + BINARY_FIELD_NUMBER; + hash = (53 * hash) + getBinary().hashCode(); + break; + case 4: + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + break; + case 5: + hash = (37 * hash) + NONE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getNoneType().hashCode(); + break; + case 6: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 7: + hash = (37 * hash) + GENERIC_FIELD_NUMBER; + hash = (53 * hash) + getGeneric().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Scalar parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Scalar parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Scalar parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Scalar parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Scalar parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Scalar parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Scalar parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Scalar 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 flyteidl.core.Literals.Scalar parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Scalar 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 flyteidl.core.Literals.Scalar parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Scalar 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(flyteidl.core.Literals.Scalar 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 flyteidl.core.Scalar} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Scalar) + flyteidl.core.Literals.ScalarOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); + } + + // Construct using flyteidl.core.Literals.Scalar.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(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Scalar getDefaultInstanceForType() { + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Scalar build() { + flyteidl.core.Literals.Scalar result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Scalar buildPartial() { + flyteidl.core.Literals.Scalar result = new flyteidl.core.Literals.Scalar(this); + if (valueCase_ == 1) { + if (primitiveBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = primitiveBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (blobBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = blobBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (binaryBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = binaryBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (schemaBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = schemaBuilder_.build(); + } + } + if (valueCase_ == 5) { + if (noneTypeBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = noneTypeBuilder_.build(); + } + } + if (valueCase_ == 6) { + if (errorBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = errorBuilder_.build(); + } + } + if (valueCase_ == 7) { + if (genericBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = genericBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + 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 flyteidl.core.Literals.Scalar) { + return mergeFrom((flyteidl.core.Literals.Scalar)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Scalar other) { + if (other == flyteidl.core.Literals.Scalar.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case PRIMITIVE: { + mergePrimitive(other.getPrimitive()); + break; + } + case BLOB: { + mergeBlob(other.getBlob()); + break; + } + case BINARY: { + mergeBinary(other.getBinary()); + break; + } + case SCHEMA: { + mergeSchema(other.getSchema()); + break; + } + case NONE_TYPE: { + mergeNoneType(other.getNoneType()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case GENERIC: { + mergeGeneric(other.getGeneric()); + break; + } + case VALUE_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 { + flyteidl.core.Literals.Scalar parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Scalar) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valueCase_ == 1; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (primitiveBuilder_ == null) { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return primitiveBuilder_.getMessage(); + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + primitiveBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive( + flyteidl.core.Literals.Primitive.Builder builderForValue) { + if (primitiveBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + primitiveBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (valueCase_ == 1 && + value_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + primitiveBuilder_.mergeFrom(value); + } + primitiveBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder clearPrimitive() { + if (primitiveBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + primitiveBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { + return getPrimitiveFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if ((valueCase_ == 1) && (primitiveBuilder_ != null)) { + return primitiveBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> + getPrimitiveFieldBuilder() { + if (primitiveBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( + (flyteidl.core.Literals.Primitive) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return primitiveBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> blobBuilder_; + /** + * .flyteidl.core.Blob blob = 2; + */ + public boolean hasBlob() { + return valueCase_ == 2; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.Blob getBlob() { + if (blobBuilder_ == null) { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return blobBuilder_.getMessage(); + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder setBlob(flyteidl.core.Literals.Blob value) { + if (blobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + blobBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder setBlob( + flyteidl.core.Literals.Blob.Builder builderForValue) { + if (blobBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + blobBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder mergeBlob(flyteidl.core.Literals.Blob value) { + if (blobBuilder_ == null) { + if (valueCase_ == 2 && + value_ != flyteidl.core.Literals.Blob.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Blob.newBuilder((flyteidl.core.Literals.Blob) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + blobBuilder_.mergeFrom(value); + } + blobBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder clearBlob() { + if (blobBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + blobBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.Blob.Builder getBlobBuilder() { + return getBlobFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { + if ((valueCase_ == 2) && (blobBuilder_ != null)) { + return blobBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Blob blob = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> + getBlobFieldBuilder() { + if (blobBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = flyteidl.core.Literals.Blob.getDefaultInstance(); + } + blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder>( + (flyteidl.core.Literals.Blob) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged();; + return blobBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> binaryBuilder_; + /** + * .flyteidl.core.Binary binary = 3; + */ + public boolean hasBinary() { + return valueCase_ == 3; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.Binary getBinary() { + if (binaryBuilder_ == null) { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return binaryBuilder_.getMessage(); + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder setBinary(flyteidl.core.Literals.Binary value) { + if (binaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + binaryBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder setBinary( + flyteidl.core.Literals.Binary.Builder builderForValue) { + if (binaryBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + binaryBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder mergeBinary(flyteidl.core.Literals.Binary value) { + if (binaryBuilder_ == null) { + if (valueCase_ == 3 && + value_ != flyteidl.core.Literals.Binary.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Binary.newBuilder((flyteidl.core.Literals.Binary) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + binaryBuilder_.mergeFrom(value); + } + binaryBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder clearBinary() { + if (binaryBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + binaryBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.Binary.Builder getBinaryBuilder() { + return getBinaryFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { + if ((valueCase_ == 3) && (binaryBuilder_ != null)) { + return binaryBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Binary binary = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> + getBinaryFieldBuilder() { + if (binaryBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = flyteidl.core.Literals.Binary.getDefaultInstance(); + } + binaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder>( + (flyteidl.core.Literals.Binary) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged();; + return binaryBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> schemaBuilder_; + /** + * .flyteidl.core.Schema schema = 4; + */ + public boolean hasSchema() { + return valueCase_ == 4; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.Schema getSchema() { + if (schemaBuilder_ == null) { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return schemaBuilder_.getMessage(); + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder setSchema(flyteidl.core.Literals.Schema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder setSchema( + flyteidl.core.Literals.Schema.Builder builderForValue) { + if (schemaBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder mergeSchema(flyteidl.core.Literals.Schema value) { + if (schemaBuilder_ == null) { + if (valueCase_ == 4 && + value_ != flyteidl.core.Literals.Schema.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Schema.newBuilder((flyteidl.core.Literals.Schema) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + schemaBuilder_.mergeFrom(value); + } + schemaBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + schemaBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.Schema.Builder getSchemaBuilder() { + return getSchemaFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { + if ((valueCase_ == 4) && (schemaBuilder_ != null)) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Schema schema = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = flyteidl.core.Literals.Schema.getDefaultInstance(); + } + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder>( + (flyteidl.core.Literals.Schema) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged();; + return schemaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> noneTypeBuilder_; + /** + * .flyteidl.core.Void none_type = 5; + */ + public boolean hasNoneType() { + return valueCase_ == 5; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.Void getNoneType() { + if (noneTypeBuilder_ == null) { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return noneTypeBuilder_.getMessage(); + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder setNoneType(flyteidl.core.Literals.Void value) { + if (noneTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + noneTypeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder setNoneType( + flyteidl.core.Literals.Void.Builder builderForValue) { + if (noneTypeBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + noneTypeBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder mergeNoneType(flyteidl.core.Literals.Void value) { + if (noneTypeBuilder_ == null) { + if (valueCase_ == 5 && + value_ != flyteidl.core.Literals.Void.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Void.newBuilder((flyteidl.core.Literals.Void) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + noneTypeBuilder_.mergeFrom(value); + } + noneTypeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder clearNoneType() { + if (noneTypeBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + noneTypeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.Void.Builder getNoneTypeBuilder() { + return getNoneTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { + if ((valueCase_ == 5) && (noneTypeBuilder_ != null)) { + return noneTypeBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Void none_type = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> + getNoneTypeFieldBuilder() { + if (noneTypeBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = flyteidl.core.Literals.Void.getDefaultInstance(); + } + noneTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder>( + (flyteidl.core.Literals.Void) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged();; + return noneTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; + /** + * .flyteidl.core.Error error = 6; + */ + public boolean hasError() { + return valueCase_ == 6; + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.Error getError() { + if (errorBuilder_ == null) { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } else { + if (valueCase_ == 6) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder setError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder setError( + flyteidl.core.Types.Error.Builder builderForValue) { + if (errorBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 6; + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder mergeError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (valueCase_ == 6 && + value_ != flyteidl.core.Types.Error.getDefaultInstance()) { + value_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 6) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.Error.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if ((valueCase_ == 6) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Error error = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(valueCase_ == 6)) { + value_ = flyteidl.core.Types.Error.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( + (flyteidl.core.Types.Error) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 6; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> genericBuilder_; + /** + * .google.protobuf.Struct generic = 7; + */ + public boolean hasGeneric() { + return valueCase_ == 7; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.Struct getGeneric() { + if (genericBuilder_ == null) { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (valueCase_ == 7) { + return genericBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder setGeneric(com.google.protobuf.Struct value) { + if (genericBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + genericBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder setGeneric( + com.google.protobuf.Struct.Builder builderForValue) { + if (genericBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + genericBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 7; + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder mergeGeneric(com.google.protobuf.Struct value) { + if (genericBuilder_ == null) { + if (valueCase_ == 7 && + value_ != com.google.protobuf.Struct.getDefaultInstance()) { + value_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 7) { + genericBuilder_.mergeFrom(value); + } + genericBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder clearGeneric() { + if (genericBuilder_ == null) { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + } + genericBuilder_.clear(); + } + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.Struct.Builder getGenericBuilder() { + return getGenericFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { + if ((valueCase_ == 7) && (genericBuilder_ != null)) { + return genericBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + /** + * .google.protobuf.Struct generic = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getGenericFieldBuilder() { + if (genericBuilder_ == null) { + if (!(valueCase_ == 7)) { + value_ = com.google.protobuf.Struct.getDefaultInstance(); + } + genericBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 7; + onChanged();; + return genericBuilder_; + } + @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:flyteidl.core.Scalar) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Scalar) + private static final flyteidl.core.Literals.Scalar DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Scalar(); + } + + public static flyteidl.core.Literals.Scalar getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Scalar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Scalar(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 flyteidl.core.Literals.Scalar getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Literal) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + boolean hasScalar(); + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.Scalar getScalar(); + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); + + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + boolean hasCollection(); + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + flyteidl.core.Literals.LiteralCollection getCollection(); + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder(); + + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + boolean hasMap(); + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + flyteidl.core.Literals.LiteralMap getMap(); + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder(); + + public flyteidl.core.Literals.Literal.ValueCase getValueCase(); + } + /** + *
+   * A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Literal} + */ + public static final class Literal extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Literal) + LiteralOrBuilder { + private static final long serialVersionUID = 0L; + // Use Literal.newBuilder() to construct. + private Literal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Literal() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Literal( + 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: { + flyteidl.core.Literals.Scalar.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + flyteidl.core.Literals.LiteralCollection.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.LiteralCollection) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.LiteralCollection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralCollection) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + SCALAR(1), + COLLECTION(2), + MAP(3), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return SCALAR; + case 2: return COLLECTION; + case 3: return MAP; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int SCALAR_FIELD_NUMBER = 1; + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + + public static final int COLLECTION_FIELD_NUMBER = 2; + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollection getCollection() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + + public static final int MAP_FIELD_NUMBER = 3; + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public boolean hasMap() { + return valueCase_ == 3; + } + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMap getMap() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.LiteralCollection) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Literals.LiteralMap) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.LiteralCollection) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Literals.LiteralMap) 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 flyteidl.core.Literals.Literal)) { + return super.equals(obj); + } + flyteidl.core.Literals.Literal other = (flyteidl.core.Literals.Literal) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (!getScalar() + .equals(other.getScalar())) return false; + break; + case 2: + if (!getCollection() + .equals(other.getCollection())) return false; + break; + case 3: + if (!getMap() + .equals(other.getMap())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + SCALAR_FIELD_NUMBER; + hash = (53 * hash) + getScalar().hashCode(); + break; + case 2: + hash = (37 * hash) + COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getCollection().hashCode(); + break; + case 3: + hash = (37 * hash) + MAP_FIELD_NUMBER; + hash = (53 * hash) + getMap().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Literal parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Literal parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Literal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Literal parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Literal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Literal parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Literal parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Literal 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 flyteidl.core.Literals.Literal parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Literal 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 flyteidl.core.Literals.Literal parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Literal 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(flyteidl.core.Literals.Literal 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 simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Literal} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Literal) + flyteidl.core.Literals.LiteralOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); + } + + // Construct using flyteidl.core.Literals.Literal.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(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Literal getDefaultInstanceForType() { + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Literal build() { + flyteidl.core.Literals.Literal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Literal buildPartial() { + flyteidl.core.Literals.Literal result = new flyteidl.core.Literals.Literal(this); + if (valueCase_ == 1) { + if (scalarBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = scalarBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (collectionBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = collectionBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (mapBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = mapBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + 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 flyteidl.core.Literals.Literal) { + return mergeFrom((flyteidl.core.Literals.Literal)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Literal other) { + if (other == flyteidl.core.Literals.Literal.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case SCALAR: { + mergeScalar(other.getScalar()); + break; + } + case COLLECTION: { + mergeCollection(other.getCollection()); + break; + } + case MAP: { + mergeMap(other.getMap()); + break; + } + case VALUE_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 { + flyteidl.core.Literals.Literal parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Literal) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return scalarBuilder_.getMessage(); + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar( + flyteidl.core.Literals.Scalar.Builder builderForValue) { + if (scalarBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + scalarBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (valueCase_ == 1 && + value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + scalarBuilder_.mergeFrom(value); + } + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder clearScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + scalarBuilder_.clear(); + } + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { + return getScalarFieldBuilder().getBuilder(); + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if ((valueCase_ == 1) && (scalarBuilder_ != null)) { + return scalarBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> + getScalarFieldBuilder() { + if (scalarBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( + (flyteidl.core.Literals.Scalar) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return scalarBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> collectionBuilder_; + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollection getCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return collectionBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder setCollection(flyteidl.core.Literals.LiteralCollection value) { + if (collectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder setCollection( + flyteidl.core.Literals.LiteralCollection.Builder builderForValue) { + if (collectionBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + collectionBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder mergeCollection(flyteidl.core.Literals.LiteralCollection value) { + if (collectionBuilder_ == null) { + if (valueCase_ == 2 && + value_ != flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) { + value_ = flyteidl.core.Literals.LiteralCollection.newBuilder((flyteidl.core.Literals.LiteralCollection) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + collectionBuilder_.mergeFrom(value); + } + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder clearCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + collectionBuilder_.clear(); + } + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollection.Builder getCollectionBuilder() { + return getCollectionFieldBuilder().getBuilder(); + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { + if ((valueCase_ == 2) && (collectionBuilder_ != null)) { + return collectionBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> + getCollectionFieldBuilder() { + if (collectionBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder>( + (flyteidl.core.Literals.LiteralCollection) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged();; + return collectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> mapBuilder_; + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public boolean hasMap() { + return valueCase_ == 3; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMap getMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return mapBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder setMap(flyteidl.core.Literals.LiteralMap value) { + if (mapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + mapBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder setMap( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (mapBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + mapBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder mergeMap(flyteidl.core.Literals.LiteralMap value) { + if (mapBuilder_ == null) { + if (valueCase_ == 3 && + value_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + value_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + mapBuilder_.mergeFrom(value); + } + mapBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder clearMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + mapBuilder_.clear(); + } + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMap.Builder getMapBuilder() { + return getMapFieldBuilder().getBuilder(); + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { + if ((valueCase_ == 3) && (mapBuilder_ != null)) { + return mapBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getMapFieldBuilder() { + if (mapBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged();; + return mapBuilder_; + } + @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:flyteidl.core.Literal) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Literal) + private static final flyteidl.core.Literals.Literal DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Literal(); + } + + public static flyteidl.core.Literals.Literal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Literal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Literal(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 flyteidl.core.Literals.Literal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralCollectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + java.util.List + getLiteralsList(); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + flyteidl.core.Literals.Literal getLiterals(int index); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + int getLiteralsCount(); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + java.util.List + getLiteralsOrBuilderList(); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( + int index); + } + /** + *
+   * A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+   * 
+ * + * Protobuf type {@code flyteidl.core.LiteralCollection} + */ + public static final class LiteralCollection extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralCollection) + LiteralCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralCollection.newBuilder() to construct. + private LiteralCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralCollection() { + literals_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralCollection( + 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)) { + literals_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + literals_.add( + input.readMessage(flyteidl.core.Literals.Literal.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)) { + literals_ = java.util.Collections.unmodifiableList(literals_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); + } + + public static final int LITERALS_FIELD_NUMBER = 1; + private java.util.List literals_; + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List getLiteralsList() { + return literals_; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List + getLiteralsOrBuilderList() { + return literals_; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public int getLiteralsCount() { + return literals_.size(); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal getLiterals(int index) { + return literals_.get(index); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( + int index) { + return literals_.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 < literals_.size(); i++) { + output.writeMessage(1, literals_.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 < literals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, literals_.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 flyteidl.core.Literals.LiteralCollection)) { + return super.equals(obj); + } + flyteidl.core.Literals.LiteralCollection other = (flyteidl.core.Literals.LiteralCollection) obj; + + if (!getLiteralsList() + .equals(other.getLiteralsList())) 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 (getLiteralsCount() > 0) { + hash = (37 * hash) + LITERALS_FIELD_NUMBER; + hash = (53 * hash) + getLiteralsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.LiteralCollection parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralCollection 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 flyteidl.core.Literals.LiteralCollection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralCollection 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 flyteidl.core.Literals.LiteralCollection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralCollection 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(flyteidl.core.Literals.LiteralCollection 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 collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+     * 
+ * + * Protobuf type {@code flyteidl.core.LiteralCollection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralCollection) + flyteidl.core.Literals.LiteralCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); + } + + // Construct using flyteidl.core.Literals.LiteralCollection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLiteralsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (literalsBuilder_ == null) { + literals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + literalsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralCollection getDefaultInstanceForType() { + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralCollection build() { + flyteidl.core.Literals.LiteralCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralCollection buildPartial() { + flyteidl.core.Literals.LiteralCollection result = new flyteidl.core.Literals.LiteralCollection(this); + int from_bitField0_ = bitField0_; + if (literalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + literals_ = java.util.Collections.unmodifiableList(literals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.literals_ = literals_; + } else { + result.literals_ = literalsBuilder_.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 flyteidl.core.Literals.LiteralCollection) { + return mergeFrom((flyteidl.core.Literals.LiteralCollection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.LiteralCollection other) { + if (other == flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) return this; + if (literalsBuilder_ == null) { + if (!other.literals_.isEmpty()) { + if (literals_.isEmpty()) { + literals_ = other.literals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLiteralsIsMutable(); + literals_.addAll(other.literals_); + } + onChanged(); + } + } else { + if (!other.literals_.isEmpty()) { + if (literalsBuilder_.isEmpty()) { + literalsBuilder_.dispose(); + literalsBuilder_ = null; + literals_ = other.literals_; + bitField0_ = (bitField0_ & ~0x00000001); + literalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLiteralsFieldBuilder() : null; + } else { + literalsBuilder_.addAllMessages(other.literals_); + } + } + } + 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 { + flyteidl.core.Literals.LiteralCollection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.LiteralCollection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List literals_ = + java.util.Collections.emptyList(); + private void ensureLiteralsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + literals_ = new java.util.ArrayList(literals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> literalsBuilder_; + + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List getLiteralsList() { + if (literalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(literals_); + } else { + return literalsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public int getLiteralsCount() { + if (literalsBuilder_ == null) { + return literals_.size(); + } else { + return literalsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal getLiterals(int index) { + if (literalsBuilder_ == null) { + return literals_.get(index); + } else { + return literalsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder setLiterals( + int index, flyteidl.core.Literals.Literal value) { + if (literalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLiteralsIsMutable(); + literals_.set(index, value); + onChanged(); + } else { + literalsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder setLiterals( + int index, flyteidl.core.Literals.Literal.Builder builderForValue) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.set(index, builderForValue.build()); + onChanged(); + } else { + literalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals(flyteidl.core.Literals.Literal value) { + if (literalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLiteralsIsMutable(); + literals_.add(value); + onChanged(); + } else { + literalsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals( + int index, flyteidl.core.Literals.Literal value) { + if (literalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLiteralsIsMutable(); + literals_.add(index, value); + onChanged(); + } else { + literalsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.add(builderForValue.build()); + onChanged(); + } else { + literalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals( + int index, flyteidl.core.Literals.Literal.Builder builderForValue) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.add(index, builderForValue.build()); + onChanged(); + } else { + literalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addAllLiterals( + java.lang.Iterable values) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, literals_); + onChanged(); + } else { + literalsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder clearLiterals() { + if (literalsBuilder_ == null) { + literals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + literalsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder removeLiterals(int index) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.remove(index); + onChanged(); + } else { + literalsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal.Builder getLiteralsBuilder( + int index) { + return getLiteralsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( + int index) { + if (literalsBuilder_ == null) { + return literals_.get(index); } else { + return literalsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List + getLiteralsOrBuilderList() { + if (literalsBuilder_ != null) { + return literalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(literals_); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder() { + return getLiteralsFieldBuilder().addBuilder( + flyteidl.core.Literals.Literal.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder( + int index) { + return getLiteralsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Literal.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List + getLiteralsBuilderList() { + return getLiteralsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getLiteralsFieldBuilder() { + if (literalsBuilder_ == null) { + literalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + literals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + literals_ = null; + } + return literalsBuilder_; + } + @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:flyteidl.core.LiteralCollection) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralCollection) + private static final flyteidl.core.Literals.LiteralCollection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralCollection(); + } + + public static flyteidl.core.Literals.LiteralCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiteralCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralCollection(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 flyteidl.core.Literals.LiteralCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralMap) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + int getLiteralsCount(); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + boolean containsLiterals( + java.lang.String key); + /** + * Use {@link #getLiteralsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLiterals(); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + java.util.Map + getLiteralsMap(); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + flyteidl.core.Literals.Literal getLiteralsOrDefault( + java.lang.String key, + flyteidl.core.Literals.Literal defaultValue); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + flyteidl.core.Literals.Literal getLiteralsOrThrow( + java.lang.String key); + } + /** + *
+   * A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+   * 
+ * + * Protobuf type {@code flyteidl.core.LiteralMap} + */ + public static final class LiteralMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralMap) + LiteralMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralMap.newBuilder() to construct. + private LiteralMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralMap( + 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)) { + literals_ = com.google.protobuf.MapField.newMapField( + LiteralsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + literals__ = input.readMessage( + LiteralsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + literals_.getMutableMap().put( + literals__.getKey(), literals__.getValue()); + 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 flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLiterals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); + } + + public static final int LITERALS_FIELD_NUMBER = 1; + private static final class LiteralsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Literals.Literal> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Literals.Literal.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.Literal> literals_; + private com.google.protobuf.MapField + internalGetLiterals() { + if (literals_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LiteralsDefaultEntryHolder.defaultEntry); + } + return literals_; + } + + public int getLiteralsCount() { + return internalGetLiterals().getMap().size(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public boolean containsLiterals( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLiterals().getMap().containsKey(key); + } + /** + * Use {@link #getLiteralsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLiterals() { + return getLiteralsMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public java.util.Map getLiteralsMap() { + return internalGetLiterals().getMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrDefault( + java.lang.String key, + flyteidl.core.Literals.Literal defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLiterals(), + LiteralsDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetLiterals().getMap().entrySet()) { + com.google.protobuf.MapEntry + literals__ = LiteralsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, literals__); + } + 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 flyteidl.core.Literals.LiteralMap)) { + return super.equals(obj); + } + flyteidl.core.Literals.LiteralMap other = (flyteidl.core.Literals.LiteralMap) obj; + + if (!internalGetLiterals().equals( + other.internalGetLiterals())) 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 (!internalGetLiterals().getMap().isEmpty()) { + hash = (37 * hash) + LITERALS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLiterals().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.LiteralMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralMap 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 flyteidl.core.Literals.LiteralMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralMap 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 flyteidl.core.Literals.LiteralMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralMap 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(flyteidl.core.Literals.LiteralMap 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 map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+     * 
+ * + * Protobuf type {@code flyteidl.core.LiteralMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralMap) + flyteidl.core.Literals.LiteralMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLiterals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableLiterals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); + } + + // Construct using flyteidl.core.Literals.LiteralMap.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(); + internalGetMutableLiterals().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralMap getDefaultInstanceForType() { + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralMap build() { + flyteidl.core.Literals.LiteralMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralMap buildPartial() { + flyteidl.core.Literals.LiteralMap result = new flyteidl.core.Literals.LiteralMap(this); + int from_bitField0_ = bitField0_; + result.literals_ = internalGetLiterals(); + result.literals_.makeImmutable(); + 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 flyteidl.core.Literals.LiteralMap) { + return mergeFrom((flyteidl.core.Literals.LiteralMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.LiteralMap other) { + if (other == flyteidl.core.Literals.LiteralMap.getDefaultInstance()) return this; + internalGetMutableLiterals().mergeFrom( + other.internalGetLiterals()); + 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 { + flyteidl.core.Literals.LiteralMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.LiteralMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.Literal> literals_; + private com.google.protobuf.MapField + internalGetLiterals() { + if (literals_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LiteralsDefaultEntryHolder.defaultEntry); + } + return literals_; + } + private com.google.protobuf.MapField + internalGetMutableLiterals() { + onChanged();; + if (literals_ == null) { + literals_ = com.google.protobuf.MapField.newMapField( + LiteralsDefaultEntryHolder.defaultEntry); + } + if (!literals_.isMutable()) { + literals_ = literals_.copy(); + } + return literals_; + } + + public int getLiteralsCount() { + return internalGetLiterals().getMap().size(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public boolean containsLiterals( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLiterals().getMap().containsKey(key); + } + /** + * Use {@link #getLiteralsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLiterals() { + return getLiteralsMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public java.util.Map getLiteralsMap() { + return internalGetLiterals().getMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrDefault( + java.lang.String key, + flyteidl.core.Literals.Literal defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLiterals() { + internalGetMutableLiterals().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public Builder removeLiterals( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLiterals().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLiterals() { + return internalGetMutableLiterals().getMutableMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + public Builder putLiterals( + java.lang.String key, + flyteidl.core.Literals.Literal value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLiterals().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public Builder putAllLiterals( + java.util.Map values) { + internalGetMutableLiterals().getMutableMap() + .putAll(values); + 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:flyteidl.core.LiteralMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralMap) + private static final flyteidl.core.Literals.LiteralMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralMap(); + } + + public static flyteidl.core.Literals.LiteralMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiteralMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralMap(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 flyteidl.core.Literals.LiteralMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingDataCollectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + java.util.List + getBindingsList(); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + flyteidl.core.Literals.BindingData getBindings(int index); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + int getBindingsCount(); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + java.util.List + getBindingsOrBuilderList(); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( + int index); + } + /** + *
+   * A collection of BindingData items.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataCollection} + */ + public static final class BindingDataCollection extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataCollection) + BindingDataCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BindingDataCollection.newBuilder() to construct. + private BindingDataCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BindingDataCollection() { + bindings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BindingDataCollection( + 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)) { + bindings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + bindings_.add( + input.readMessage(flyteidl.core.Literals.BindingData.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)) { + bindings_ = java.util.Collections.unmodifiableList(bindings_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); + } + + public static final int BINDINGS_FIELD_NUMBER = 1; + private java.util.List bindings_; + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List getBindingsList() { + return bindings_; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List + getBindingsOrBuilderList() { + return bindings_; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public int getBindingsCount() { + return bindings_.size(); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData getBindings(int index) { + return bindings_.get(index); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( + int index) { + return bindings_.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 < bindings_.size(); i++) { + output.writeMessage(1, bindings_.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 < bindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, bindings_.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 flyteidl.core.Literals.BindingDataCollection)) { + return super.equals(obj); + } + flyteidl.core.Literals.BindingDataCollection other = (flyteidl.core.Literals.BindingDataCollection) obj; + + if (!getBindingsList() + .equals(other.getBindingsList())) 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 (getBindingsCount() > 0) { + hash = (37 * hash) + BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getBindingsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataCollection 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 flyteidl.core.Literals.BindingDataCollection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataCollection 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 flyteidl.core.Literals.BindingDataCollection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataCollection 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(flyteidl.core.Literals.BindingDataCollection 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 collection of BindingData items.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataCollection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataCollection) + flyteidl.core.Literals.BindingDataCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); + } + + // Construct using flyteidl.core.Literals.BindingDataCollection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBindingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + bindingsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataCollection getDefaultInstanceForType() { + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataCollection build() { + flyteidl.core.Literals.BindingDataCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataCollection buildPartial() { + flyteidl.core.Literals.BindingDataCollection result = new flyteidl.core.Literals.BindingDataCollection(this); + int from_bitField0_ = bitField0_; + if (bindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + bindings_ = java.util.Collections.unmodifiableList(bindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bindings_ = bindings_; + } else { + result.bindings_ = bindingsBuilder_.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 flyteidl.core.Literals.BindingDataCollection) { + return mergeFrom((flyteidl.core.Literals.BindingDataCollection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BindingDataCollection other) { + if (other == flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) return this; + if (bindingsBuilder_ == null) { + if (!other.bindings_.isEmpty()) { + if (bindings_.isEmpty()) { + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBindingsIsMutable(); + bindings_.addAll(other.bindings_); + } + onChanged(); + } + } else { + if (!other.bindings_.isEmpty()) { + if (bindingsBuilder_.isEmpty()) { + bindingsBuilder_.dispose(); + bindingsBuilder_ = null; + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + bindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBindingsFieldBuilder() : null; + } else { + bindingsBuilder_.addAllMessages(other.bindings_); + } + } + } + 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 { + flyteidl.core.Literals.BindingDataCollection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BindingDataCollection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List bindings_ = + java.util.Collections.emptyList(); + private void ensureBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bindings_ = new java.util.ArrayList(bindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingsBuilder_; + + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List getBindingsList() { + if (bindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(bindings_); + } else { + return bindingsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public int getBindingsCount() { + if (bindingsBuilder_ == null) { + return bindings_.size(); + } else { + return bindingsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData getBindings(int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); + } else { + return bindingsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder setBindings( + int index, flyteidl.core.Literals.BindingData value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.set(index, value); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder setBindings( + int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.set(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings(flyteidl.core.Literals.BindingData value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(value); + onChanged(); + } else { + bindingsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings( + int index, flyteidl.core.Literals.BindingData value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(index, value); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings( + flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings( + int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addAllBindings( + java.lang.Iterable values) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bindings_); + onChanged(); + } else { + bindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder clearBindings() { + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + bindingsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder removeBindings(int index) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.remove(index); + onChanged(); + } else { + bindingsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData.Builder getBindingsBuilder( + int index) { + return getBindingsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( + int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); } else { + return bindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List + getBindingsOrBuilderList() { + if (bindingsBuilder_ != null) { + return bindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bindings_); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder() { + return getBindingsFieldBuilder().addBuilder( + flyteidl.core.Literals.BindingData.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder( + int index) { + return getBindingsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.BindingData.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List + getBindingsBuilderList() { + return getBindingsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> + getBindingsFieldBuilder() { + if (bindingsBuilder_ == null) { + bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( + bindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + bindings_ = null; + } + return bindingsBuilder_; + } + @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:flyteidl.core.BindingDataCollection) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataCollection) + private static final flyteidl.core.Literals.BindingDataCollection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataCollection(); + } + + public static flyteidl.core.Literals.BindingDataCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingDataCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingDataCollection(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 flyteidl.core.Literals.BindingDataCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingDataMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataMap) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + int getBindingsCount(); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + boolean containsBindings( + java.lang.String key); + /** + * Use {@link #getBindingsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getBindings(); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + java.util.Map + getBindingsMap(); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + flyteidl.core.Literals.BindingData getBindingsOrDefault( + java.lang.String key, + flyteidl.core.Literals.BindingData defaultValue); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + flyteidl.core.Literals.BindingData getBindingsOrThrow( + java.lang.String key); + } + /** + *
+   * A map of BindingData items.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataMap} + */ + public static final class BindingDataMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataMap) + BindingDataMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use BindingDataMap.newBuilder() to construct. + private BindingDataMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BindingDataMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BindingDataMap( + 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)) { + bindings_ = com.google.protobuf.MapField.newMapField( + BindingsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + bindings__ = input.readMessage( + BindingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + bindings_.getMutableMap().put( + bindings__.getKey(), bindings__.getValue()); + 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 flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetBindings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); + } + + public static final int BINDINGS_FIELD_NUMBER = 1; + private static final class BindingsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Literals.BindingData> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Literals.BindingData.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.BindingData> bindings_; + private com.google.protobuf.MapField + internalGetBindings() { + if (bindings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + BindingsDefaultEntryHolder.defaultEntry); + } + return bindings_; + } + + public int getBindingsCount() { + return internalGetBindings().getMap().size(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public boolean containsBindings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetBindings().getMap().containsKey(key); + } + /** + * Use {@link #getBindingsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getBindings() { + return getBindingsMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public java.util.Map getBindingsMap() { + return internalGetBindings().getMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrDefault( + java.lang.String key, + flyteidl.core.Literals.BindingData defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetBindings(), + BindingsDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetBindings().getMap().entrySet()) { + com.google.protobuf.MapEntry + bindings__ = BindingsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, bindings__); + } + 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 flyteidl.core.Literals.BindingDataMap)) { + return super.equals(obj); + } + flyteidl.core.Literals.BindingDataMap other = (flyteidl.core.Literals.BindingDataMap) obj; + + if (!internalGetBindings().equals( + other.internalGetBindings())) 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 (!internalGetBindings().getMap().isEmpty()) { + hash = (37 * hash) + BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetBindings().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BindingDataMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataMap 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 flyteidl.core.Literals.BindingDataMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataMap 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 flyteidl.core.Literals.BindingDataMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataMap 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(flyteidl.core.Literals.BindingDataMap 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 map of BindingData items.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataMap) + flyteidl.core.Literals.BindingDataMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetBindings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableBindings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); + } + + // Construct using flyteidl.core.Literals.BindingDataMap.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(); + internalGetMutableBindings().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataMap getDefaultInstanceForType() { + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataMap build() { + flyteidl.core.Literals.BindingDataMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataMap buildPartial() { + flyteidl.core.Literals.BindingDataMap result = new flyteidl.core.Literals.BindingDataMap(this); + int from_bitField0_ = bitField0_; + result.bindings_ = internalGetBindings(); + result.bindings_.makeImmutable(); + 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 flyteidl.core.Literals.BindingDataMap) { + return mergeFrom((flyteidl.core.Literals.BindingDataMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BindingDataMap other) { + if (other == flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) return this; + internalGetMutableBindings().mergeFrom( + other.internalGetBindings()); + 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 { + flyteidl.core.Literals.BindingDataMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BindingDataMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.BindingData> bindings_; + private com.google.protobuf.MapField + internalGetBindings() { + if (bindings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + BindingsDefaultEntryHolder.defaultEntry); + } + return bindings_; + } + private com.google.protobuf.MapField + internalGetMutableBindings() { + onChanged();; + if (bindings_ == null) { + bindings_ = com.google.protobuf.MapField.newMapField( + BindingsDefaultEntryHolder.defaultEntry); + } + if (!bindings_.isMutable()) { + bindings_ = bindings_.copy(); + } + return bindings_; + } + + public int getBindingsCount() { + return internalGetBindings().getMap().size(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public boolean containsBindings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetBindings().getMap().containsKey(key); + } + /** + * Use {@link #getBindingsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getBindings() { + return getBindingsMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public java.util.Map getBindingsMap() { + return internalGetBindings().getMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrDefault( + java.lang.String key, + flyteidl.core.Literals.BindingData defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearBindings() { + internalGetMutableBindings().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public Builder removeBindings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableBindings().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableBindings() { + return internalGetMutableBindings().getMutableMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + public Builder putBindings( + java.lang.String key, + flyteidl.core.Literals.BindingData value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableBindings().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public Builder putAllBindings( + java.util.Map values) { + internalGetMutableBindings().getMutableMap() + .putAll(values); + 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:flyteidl.core.BindingDataMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataMap) + private static final flyteidl.core.Literals.BindingDataMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataMap(); + } + + public static flyteidl.core.Literals.BindingDataMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingDataMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingDataMap(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 flyteidl.core.Literals.BindingDataMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + boolean hasScalar(); + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.Scalar getScalar(); + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); + + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + boolean hasCollection(); + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + flyteidl.core.Literals.BindingDataCollection getCollection(); + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder(); + + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + boolean hasPromise(); + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + flyteidl.core.Types.OutputReference getPromise(); + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder(); + + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + boolean hasMap(); + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + flyteidl.core.Literals.BindingDataMap getMap(); + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder(); + + public flyteidl.core.Literals.BindingData.ValueCase getValueCase(); + } + /** + *
+   * Specifies either a simple value or a reference to another output.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BindingData} + */ + public static final class BindingData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BindingData) + BindingDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BindingData.newBuilder() to construct. + private BindingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BindingData() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BindingData( + 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: { + flyteidl.core.Literals.Scalar.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + flyteidl.core.Literals.BindingDataCollection.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.BindingDataCollection) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.BindingDataCollection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataCollection) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + flyteidl.core.Types.OutputReference.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((flyteidl.core.Types.OutputReference) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Types.OutputReference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.OutputReference) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + flyteidl.core.Literals.BindingDataMap.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((flyteidl.core.Literals.BindingDataMap) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.BindingDataMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataMap) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + SCALAR(1), + COLLECTION(2), + PROMISE(3), + MAP(4), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return SCALAR; + case 2: return COLLECTION; + case 3: return PROMISE; + case 4: return MAP; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int SCALAR_FIELD_NUMBER = 1; + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + + public static final int COLLECTION_FIELD_NUMBER = 2; + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollection getCollection() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + + public static final int PROMISE_FIELD_NUMBER = 3; + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public boolean hasPromise() { + return valueCase_ == 3; + } + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReference getPromise() { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + + public static final int MAP_FIELD_NUMBER = 4; + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public boolean hasMap() { + return valueCase_ == 4; + } + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMap getMap() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.BindingDataCollection) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Types.OutputReference) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Literals.BindingDataMap) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.BindingDataCollection) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Types.OutputReference) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Literals.BindingDataMap) 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 flyteidl.core.Literals.BindingData)) { + return super.equals(obj); + } + flyteidl.core.Literals.BindingData other = (flyteidl.core.Literals.BindingData) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (!getScalar() + .equals(other.getScalar())) return false; + break; + case 2: + if (!getCollection() + .equals(other.getCollection())) return false; + break; + case 3: + if (!getPromise() + .equals(other.getPromise())) return false; + break; + case 4: + if (!getMap() + .equals(other.getMap())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + SCALAR_FIELD_NUMBER; + hash = (53 * hash) + getScalar().hashCode(); + break; + case 2: + hash = (37 * hash) + COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getCollection().hashCode(); + break; + case 3: + hash = (37 * hash) + PROMISE_FIELD_NUMBER; + hash = (53 * hash) + getPromise().hashCode(); + break; + case 4: + hash = (37 * hash) + MAP_FIELD_NUMBER; + hash = (53 * hash) + getMap().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BindingData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingData 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 flyteidl.core.Literals.BindingData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingData 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 flyteidl.core.Literals.BindingData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingData 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(flyteidl.core.Literals.BindingData 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; + } + /** + *
+     * Specifies either a simple value or a reference to another output.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BindingData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingData) + flyteidl.core.Literals.BindingDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); + } + + // Construct using flyteidl.core.Literals.BindingData.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(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingData getDefaultInstanceForType() { + return flyteidl.core.Literals.BindingData.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.BindingData build() { + flyteidl.core.Literals.BindingData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingData buildPartial() { + flyteidl.core.Literals.BindingData result = new flyteidl.core.Literals.BindingData(this); + if (valueCase_ == 1) { + if (scalarBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = scalarBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (collectionBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = collectionBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (promiseBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = promiseBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (mapBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = mapBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + 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 flyteidl.core.Literals.BindingData) { + return mergeFrom((flyteidl.core.Literals.BindingData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BindingData other) { + if (other == flyteidl.core.Literals.BindingData.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case SCALAR: { + mergeScalar(other.getScalar()); + break; + } + case COLLECTION: { + mergeCollection(other.getCollection()); + break; + } + case PROMISE: { + mergePromise(other.getPromise()); + break; + } + case MAP: { + mergeMap(other.getMap()); + break; + } + case VALUE_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 { + flyteidl.core.Literals.BindingData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BindingData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return scalarBuilder_.getMessage(); + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar( + flyteidl.core.Literals.Scalar.Builder builderForValue) { + if (scalarBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + scalarBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (valueCase_ == 1 && + value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + scalarBuilder_.mergeFrom(value); + } + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder clearScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + scalarBuilder_.clear(); + } + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { + return getScalarFieldBuilder().getBuilder(); + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if ((valueCase_ == 1) && (scalarBuilder_ != null)) { + return scalarBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> + getScalarFieldBuilder() { + if (scalarBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( + (flyteidl.core.Literals.Scalar) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return scalarBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> collectionBuilder_; + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollection getCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return collectionBuilder_.getMessage(); + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder setCollection(flyteidl.core.Literals.BindingDataCollection value) { + if (collectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder setCollection( + flyteidl.core.Literals.BindingDataCollection.Builder builderForValue) { + if (collectionBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + collectionBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder mergeCollection(flyteidl.core.Literals.BindingDataCollection value) { + if (collectionBuilder_ == null) { + if (valueCase_ == 2 && + value_ != flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) { + value_ = flyteidl.core.Literals.BindingDataCollection.newBuilder((flyteidl.core.Literals.BindingDataCollection) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + collectionBuilder_.mergeFrom(value); + } + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder clearCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + collectionBuilder_.clear(); + } + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollection.Builder getCollectionBuilder() { + return getCollectionFieldBuilder().getBuilder(); + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { + if ((valueCase_ == 2) && (collectionBuilder_ != null)) { + return collectionBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> + getCollectionFieldBuilder() { + if (collectionBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder>( + (flyteidl.core.Literals.BindingDataCollection) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged();; + return collectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> promiseBuilder_; + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public boolean hasPromise() { + return valueCase_ == 3; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReference getPromise() { + if (promiseBuilder_ == null) { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return promiseBuilder_.getMessage(); + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder setPromise(flyteidl.core.Types.OutputReference value) { + if (promiseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + promiseBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder setPromise( + flyteidl.core.Types.OutputReference.Builder builderForValue) { + if (promiseBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + promiseBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder mergePromise(flyteidl.core.Types.OutputReference value) { + if (promiseBuilder_ == null) { + if (valueCase_ == 3 && + value_ != flyteidl.core.Types.OutputReference.getDefaultInstance()) { + value_ = flyteidl.core.Types.OutputReference.newBuilder((flyteidl.core.Types.OutputReference) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + promiseBuilder_.mergeFrom(value); + } + promiseBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder clearPromise() { + if (promiseBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + promiseBuilder_.clear(); + } + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReference.Builder getPromiseBuilder() { + return getPromiseFieldBuilder().getBuilder(); + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { + if ((valueCase_ == 3) && (promiseBuilder_ != null)) { + return promiseBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> + getPromiseFieldBuilder() { + if (promiseBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + promiseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder>( + (flyteidl.core.Types.OutputReference) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged();; + return promiseBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> mapBuilder_; + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public boolean hasMap() { + return valueCase_ == 4; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMap getMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return mapBuilder_.getMessage(); + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder setMap(flyteidl.core.Literals.BindingDataMap value) { + if (mapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + mapBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder setMap( + flyteidl.core.Literals.BindingDataMap.Builder builderForValue) { + if (mapBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + mapBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder mergeMap(flyteidl.core.Literals.BindingDataMap value) { + if (mapBuilder_ == null) { + if (valueCase_ == 4 && + value_ != flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) { + value_ = flyteidl.core.Literals.BindingDataMap.newBuilder((flyteidl.core.Literals.BindingDataMap) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + mapBuilder_.mergeFrom(value); + } + mapBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder clearMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + mapBuilder_.clear(); + } + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMap.Builder getMapBuilder() { + return getMapFieldBuilder().getBuilder(); + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { + if ((valueCase_ == 4) && (mapBuilder_ != null)) { + return mapBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> + getMapFieldBuilder() { + if (mapBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder>( + (flyteidl.core.Literals.BindingDataMap) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged();; + return mapBuilder_; + } + @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:flyteidl.core.BindingData) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingData) + private static final flyteidl.core.Literals.BindingData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingData(); + } + + public static flyteidl.core.Literals.BindingData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingData(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 flyteidl.core.Literals.BindingData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Binding) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + java.lang.String getVar(); + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + com.google.protobuf.ByteString + getVarBytes(); + + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + boolean hasBinding(); + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + flyteidl.core.Literals.BindingData getBinding(); + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder(); + } + /** + *
+   * An input/output binding of a variable to either static value or a node output.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Binding} + */ + public static final class Binding extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Binding) + BindingOrBuilder { + private static final long serialVersionUID = 0L; + // Use Binding.newBuilder() to construct. + private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Binding() { + var_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Binding( + 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(); + + var_ = s; + break; + } + case 18: { + flyteidl.core.Literals.BindingData.Builder subBuilder = null; + if (binding_ != null) { + subBuilder = binding_.toBuilder(); + } + binding_ = input.readMessage(flyteidl.core.Literals.BindingData.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binding_); + binding_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); + } + + public static final int VAR_FIELD_NUMBER = 1; + private volatile java.lang.Object var_; + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + 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(); + var_ = s; + return s; + } + } + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BINDING_FIELD_NUMBER = 2; + private flyteidl.core.Literals.BindingData binding_; + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public boolean hasBinding() { + return binding_ != null; + } + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingData getBinding() { + return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; + } + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { + return getBinding(); + } + + 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 (!getVarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); + } + if (binding_ != null) { + output.writeMessage(2, getBinding()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getVarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); + } + if (binding_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBinding()); + } + 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 flyteidl.core.Literals.Binding)) { + return super.equals(obj); + } + flyteidl.core.Literals.Binding other = (flyteidl.core.Literals.Binding) obj; + + if (!getVar() + .equals(other.getVar())) return false; + if (hasBinding() != other.hasBinding()) return false; + if (hasBinding()) { + if (!getBinding() + .equals(other.getBinding())) 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) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + if (hasBinding()) { + hash = (37 * hash) + BINDING_FIELD_NUMBER; + hash = (53 * hash) + getBinding().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Binding parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binding parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binding parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binding parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binding 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 flyteidl.core.Literals.Binding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binding 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 flyteidl.core.Literals.Binding parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binding 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(flyteidl.core.Literals.Binding 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 input/output binding of a variable to either static value or a node output.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Binding} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Binding) + flyteidl.core.Literals.BindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); + } + + // Construct using flyteidl.core.Literals.Binding.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(); + var_ = ""; + + if (bindingBuilder_ == null) { + binding_ = null; + } else { + binding_ = null; + bindingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Binding getDefaultInstanceForType() { + return flyteidl.core.Literals.Binding.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Binding build() { + flyteidl.core.Literals.Binding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Binding buildPartial() { + flyteidl.core.Literals.Binding result = new flyteidl.core.Literals.Binding(this); + result.var_ = var_; + if (bindingBuilder_ == null) { + result.binding_ = binding_; + } else { + result.binding_ = bindingBuilder_.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 flyteidl.core.Literals.Binding) { + return mergeFrom((flyteidl.core.Literals.Binding)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Binding other) { + if (other == flyteidl.core.Literals.Binding.getDefaultInstance()) return this; + if (!other.getVar().isEmpty()) { + var_ = other.var_; + onChanged(); + } + if (other.hasBinding()) { + mergeBinding(other.getBinding()); + } + 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 { + flyteidl.core.Literals.Binding parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Binding) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object var_ = ""; + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + var_ = value; + onChanged(); + return this; + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public Builder clearVar() { + + var_ = getDefaultInstance().getVar(); + onChanged(); + return this; + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + var_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Literals.BindingData binding_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingBuilder_; + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public boolean hasBinding() { + return bindingBuilder_ != null || binding_ != null; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingData getBinding() { + if (bindingBuilder_ == null) { + return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; + } else { + return bindingBuilder_.getMessage(); + } + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder setBinding(flyteidl.core.Literals.BindingData value) { + if (bindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binding_ = value; + onChanged(); + } else { + bindingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder setBinding( + flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingBuilder_ == null) { + binding_ = builderForValue.build(); + onChanged(); + } else { + bindingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder mergeBinding(flyteidl.core.Literals.BindingData value) { + if (bindingBuilder_ == null) { + if (binding_ != null) { + binding_ = + flyteidl.core.Literals.BindingData.newBuilder(binding_).mergeFrom(value).buildPartial(); + } else { + binding_ = value; + } + onChanged(); + } else { + bindingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder clearBinding() { + if (bindingBuilder_ == null) { + binding_ = null; + onChanged(); + } else { + binding_ = null; + bindingBuilder_ = null; + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingData.Builder getBindingBuilder() { + + onChanged(); + return getBindingFieldBuilder().getBuilder(); + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { + if (bindingBuilder_ != null) { + return bindingBuilder_.getMessageOrBuilder(); + } else { + return binding_ == null ? + flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; + } + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> + getBindingFieldBuilder() { + if (bindingBuilder_ == null) { + bindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( + getBinding(), + getParentForChildren(), + isClean()); + binding_ = null; + } + return bindingBuilder_; + } + @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:flyteidl.core.Binding) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Binding) + private static final flyteidl.core.Literals.Binding DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Binding(); + } + + public static flyteidl.core.Literals.Binding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Binding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Binding(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 flyteidl.core.Literals.Binding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface KeyValuePairOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.KeyValuePair) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + java.lang.String getKey(); + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + java.lang.String getValue(); + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + *
+   * A generic key value pair.
+   * 
+ * + * Protobuf type {@code flyteidl.core.KeyValuePair} + */ + public static final class KeyValuePair extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.KeyValuePair) + KeyValuePairOrBuilder { + private static final long serialVersionUID = 0L; + // Use KeyValuePair.newBuilder() to construct. + private KeyValuePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private KeyValuePair() { + key_ = ""; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KeyValuePair( + 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(); + + 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 flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + 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; + } + } + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + 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_; + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + 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; + } + } + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + 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 (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + 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 (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + 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 flyteidl.core.Literals.KeyValuePair)) { + return super.equals(obj); + } + flyteidl.core.Literals.KeyValuePair other = (flyteidl.core.Literals.KeyValuePair) 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 flyteidl.core.Literals.KeyValuePair parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.KeyValuePair 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 flyteidl.core.Literals.KeyValuePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.KeyValuePair 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 flyteidl.core.Literals.KeyValuePair parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.KeyValuePair 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(flyteidl.core.Literals.KeyValuePair 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 generic key value pair.
+     * 
+ * + * Protobuf type {@code flyteidl.core.KeyValuePair} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.KeyValuePair) + flyteidl.core.Literals.KeyValuePairOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); + } + + // Construct using flyteidl.core.Literals.KeyValuePair.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 flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.KeyValuePair getDefaultInstanceForType() { + return flyteidl.core.Literals.KeyValuePair.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.KeyValuePair build() { + flyteidl.core.Literals.KeyValuePair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.KeyValuePair buildPartial() { + flyteidl.core.Literals.KeyValuePair result = new flyteidl.core.Literals.KeyValuePair(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 flyteidl.core.Literals.KeyValuePair) { + return mergeFrom((flyteidl.core.Literals.KeyValuePair)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.KeyValuePair other) { + if (other == flyteidl.core.Literals.KeyValuePair.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 { + flyteidl.core.Literals.KeyValuePair parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.KeyValuePair) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + 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; + } + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + 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; + } + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + 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_ = ""; + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + 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; + } + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + 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; + } + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + 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:flyteidl.core.KeyValuePair) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.KeyValuePair) + private static final flyteidl.core.Literals.KeyValuePair DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.KeyValuePair(); + } + + public static flyteidl.core.Literals.KeyValuePair getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValuePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValuePair(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 flyteidl.core.Literals.KeyValuePair getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RetryStrategyOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.RetryStrategy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+     * The number of retries must be less than or equals to 10.
+     * 
+ * + * uint32 retries = 5; + */ + int getRetries(); + } + /** + *
+   * Retry strategy associated with an executable unit.
+   * 
+ * + * Protobuf type {@code flyteidl.core.RetryStrategy} + */ + public static final class RetryStrategy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.RetryStrategy) + RetryStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetryStrategy.newBuilder() to construct. + private RetryStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RetryStrategy() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RetryStrategy( + 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 40: { + + retries_ = input.readUInt32(); + 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 flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); + } + + public static final int RETRIES_FIELD_NUMBER = 5; + private int retries_; + /** + *
+     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+     * The number of retries must be less than or equals to 10.
+     * 
+ * + * uint32 retries = 5; + */ + public int getRetries() { + return retries_; + } + + 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 (retries_ != 0) { + output.writeUInt32(5, retries_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retries_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, retries_); + } + 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 flyteidl.core.Literals.RetryStrategy)) { + return super.equals(obj); + } + flyteidl.core.Literals.RetryStrategy other = (flyteidl.core.Literals.RetryStrategy) obj; + + if (getRetries() + != other.getRetries()) 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) + RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getRetries(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.RetryStrategy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.RetryStrategy 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 flyteidl.core.Literals.RetryStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.RetryStrategy 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 flyteidl.core.Literals.RetryStrategy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.RetryStrategy 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(flyteidl.core.Literals.RetryStrategy 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; + } + /** + *
+     * Retry strategy associated with an executable unit.
+     * 
+ * + * Protobuf type {@code flyteidl.core.RetryStrategy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.RetryStrategy) + flyteidl.core.Literals.RetryStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); + } + + // Construct using flyteidl.core.Literals.RetryStrategy.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(); + retries_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.RetryStrategy getDefaultInstanceForType() { + return flyteidl.core.Literals.RetryStrategy.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.RetryStrategy build() { + flyteidl.core.Literals.RetryStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.RetryStrategy buildPartial() { + flyteidl.core.Literals.RetryStrategy result = new flyteidl.core.Literals.RetryStrategy(this); + result.retries_ = retries_; + 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 flyteidl.core.Literals.RetryStrategy) { + return mergeFrom((flyteidl.core.Literals.RetryStrategy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.RetryStrategy other) { + if (other == flyteidl.core.Literals.RetryStrategy.getDefaultInstance()) return this; + if (other.getRetries() != 0) { + setRetries(other.getRetries()); + } + 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 { + flyteidl.core.Literals.RetryStrategy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.RetryStrategy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int retries_ ; + /** + *
+       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+       * The number of retries must be less than or equals to 10.
+       * 
+ * + * uint32 retries = 5; + */ + public int getRetries() { + return retries_; + } + /** + *
+       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+       * The number of retries must be less than or equals to 10.
+       * 
+ * + * uint32 retries = 5; + */ + public Builder setRetries(int value) { + + retries_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+       * The number of retries must be less than or equals to 10.
+       * 
+ * + * uint32 retries = 5; + */ + public Builder clearRetries() { + + retries_ = 0; + 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:flyteidl.core.RetryStrategy) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.RetryStrategy) + private static final flyteidl.core.Literals.RetryStrategy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.RetryStrategy(); + } + + public static flyteidl.core.Literals.RetryStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetryStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RetryStrategy(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 flyteidl.core.Literals.RetryStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Primitive_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Primitive_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Void_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Void_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Blob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Blob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BlobMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Binary_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Binary_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Schema_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Schema_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Scalar_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Scalar_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Literal_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Literal_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralCollection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingDataCollection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingDataMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Binding_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Binding_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_KeyValuePair_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_RetryStrategy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_RetryStrategy_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\034flyteidl/core/literals.proto\022\rflyteidl" + + ".core\032\037google/protobuf/timestamp.proto\032\036" + + "google/protobuf/duration.proto\032\034google/p" + + "rotobuf/struct.proto\032\031flyteidl/core/type" + + "s.proto\"\310\001\n\tPrimitive\022\021\n\007integer\030\001 \001(\003H\000" + + "\022\025\n\013float_value\030\002 \001(\001H\000\022\026\n\014string_value\030" + + "\003 \001(\tH\000\022\021\n\007boolean\030\004 \001(\010H\000\022.\n\010datetime\030\005" + + " \001(\0132\032.google.protobuf.TimestampH\000\022-\n\010du" + + "ration\030\006 \001(\0132\031.google.protobuf.DurationH" + + "\000B\007\n\005value\"\006\n\004Void\"B\n\004Blob\022-\n\010metadata\030\001" + + " \001(\0132\033.flyteidl.core.BlobMetadata\022\013\n\003uri" + + "\030\003 \001(\t\"5\n\014BlobMetadata\022%\n\004type\030\001 \001(\0132\027.f" + + "lyteidl.core.BlobType\"$\n\006Binary\022\r\n\005value" + + "\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\">\n\006Schema\022\013\n\003uri\030\001 \001" + + "(\t\022\'\n\004type\030\003 \001(\0132\031.flyteidl.core.SchemaT" + + "ype\"\264\002\n\006Scalar\022-\n\tprimitive\030\001 \001(\0132\030.flyt" + + "eidl.core.PrimitiveH\000\022#\n\004blob\030\002 \001(\0132\023.fl" + + "yteidl.core.BlobH\000\022\'\n\006binary\030\003 \001(\0132\025.fly" + + "teidl.core.BinaryH\000\022\'\n\006schema\030\004 \001(\0132\025.fl" + + "yteidl.core.SchemaH\000\022(\n\tnone_type\030\005 \001(\0132" + + "\023.flyteidl.core.VoidH\000\022%\n\005error\030\006 \001(\0132\024." + + "flyteidl.core.ErrorH\000\022*\n\007generic\030\007 \001(\0132\027" + + ".google.protobuf.StructH\000B\007\n\005value\"\235\001\n\007L" + + "iteral\022\'\n\006scalar\030\001 \001(\0132\025.flyteidl.core.S" + + "calarH\000\0226\n\ncollection\030\002 \001(\0132 .flyteidl.c" + + "ore.LiteralCollectionH\000\022(\n\003map\030\003 \001(\0132\031.f" + + "lyteidl.core.LiteralMapH\000B\007\n\005value\"=\n\021Li" + + "teralCollection\022(\n\010literals\030\001 \003(\0132\026.flyt" + + "eidl.core.Literal\"\220\001\n\nLiteralMap\0229\n\010lite" + + "rals\030\001 \003(\0132\'.flyteidl.core.LiteralMap.Li" + + "teralsEntry\032G\n\rLiteralsEntry\022\013\n\003key\030\001 \001(" + + "\t\022%\n\005value\030\002 \001(\0132\026.flyteidl.core.Literal" + + ":\0028\001\"E\n\025BindingDataCollection\022,\n\010binding" + + "s\030\001 \003(\0132\032.flyteidl.core.BindingData\"\234\001\n\016" + + "BindingDataMap\022=\n\010bindings\030\001 \003(\0132+.flyte" + + "idl.core.BindingDataMap.BindingsEntry\032K\n" + + "\rBindingsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001" + + "(\0132\032.flyteidl.core.BindingData:\0028\001\"\334\001\n\013B" + + "indingData\022\'\n\006scalar\030\001 \001(\0132\025.flyteidl.co" + + "re.ScalarH\000\022:\n\ncollection\030\002 \001(\0132$.flytei" + + "dl.core.BindingDataCollectionH\000\0221\n\007promi" + + "se\030\003 \001(\0132\036.flyteidl.core.OutputReference" + + "H\000\022,\n\003map\030\004 \001(\0132\035.flyteidl.core.BindingD" + + "ataMapH\000B\007\n\005value\"C\n\007Binding\022\013\n\003var\030\001 \001(" + + "\t\022+\n\007binding\030\002 \001(\0132\032.flyteidl.core.Bindi" + + "ngData\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t\" \n\rRetryStrategy\022\017\n\007retries\030\005" + + " \001(\rB2Z0github.com/lyft/flyteidl/gen/pb-" + + "go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + flyteidl.core.Types.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_Primitive_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Primitive_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Primitive_descriptor, + new java.lang.String[] { "Integer", "FloatValue", "StringValue", "Boolean", "Datetime", "Duration", "Value", }); + internal_static_flyteidl_core_Void_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_Void_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Void_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_Blob_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_Blob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Blob_descriptor, + new java.lang.String[] { "Metadata", "Uri", }); + internal_static_flyteidl_core_BlobMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BlobMetadata_descriptor, + new java.lang.String[] { "Type", }); + internal_static_flyteidl_core_Binary_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_Binary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Binary_descriptor, + new java.lang.String[] { "Value", "Tag", }); + internal_static_flyteidl_core_Schema_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_Schema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Schema_descriptor, + new java.lang.String[] { "Uri", "Type", }); + internal_static_flyteidl_core_Scalar_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_Scalar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Scalar_descriptor, + new java.lang.String[] { "Primitive", "Blob", "Binary", "Schema", "NoneType", "Error", "Generic", "Value", }); + internal_static_flyteidl_core_Literal_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_core_Literal_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Literal_descriptor, + new java.lang.String[] { "Scalar", "Collection", "Map", "Value", }); + internal_static_flyteidl_core_LiteralCollection_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralCollection_descriptor, + new java.lang.String[] { "Literals", }); + internal_static_flyteidl_core_LiteralMap_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_core_LiteralMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralMap_descriptor, + new java.lang.String[] { "Literals", }); + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor = + internal_static_flyteidl_core_LiteralMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_BindingDataCollection_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingDataCollection_descriptor, + new java.lang.String[] { "Bindings", }); + internal_static_flyteidl_core_BindingDataMap_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingDataMap_descriptor, + new java.lang.String[] { "Bindings", }); + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor = + internal_static_flyteidl_core_BindingDataMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_BindingData_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_flyteidl_core_BindingData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingData_descriptor, + new java.lang.String[] { "Scalar", "Collection", "Promise", "Map", "Value", }); + internal_static_flyteidl_core_Binding_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_flyteidl_core_Binding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Binding_descriptor, + new java.lang.String[] { "Var", "Binding", }); + internal_static_flyteidl_core_KeyValuePair_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_KeyValuePair_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_RetryStrategy_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_RetryStrategy_descriptor, + new java.lang.String[] { "Retries", }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + flyteidl.core.Types.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Tasks.java b/gen/pb-java/flyteidl/core/Tasks.java new file mode 100644 index 000000000..5fc56386e --- /dev/null +++ b/gen/pb-java/flyteidl/core/Tasks.java @@ -0,0 +1,13257 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/tasks.proto + +package flyteidl.core; + +public final class Tasks { + private Tasks() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ResourcesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Resources) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + java.util.List + getRequestsList(); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + int getRequestsCount(); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( + int index); + + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + java.util.List + getLimitsList(); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + int getLimitsCount(); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + java.util.List + getLimitsOrBuilderList(); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( + int index); + } + /** + *
+   * A customizable interface to convey resources requested for a container. This can be interpretted differently for different
+   * container engines.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Resources} + */ + public static final class Resources extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Resources) + ResourcesOrBuilder { + private static final long serialVersionUID = 0L; + // Use Resources.newBuilder() to construct. + private Resources(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Resources() { + requests_ = java.util.Collections.emptyList(); + limits_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Resources( + 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)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + limits_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + limits_.add( + input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.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)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + limits_ = java.util.Collections.unmodifiableList(limits_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); + } + + /** + *
+     * Known resource names.
+     * 
+ * + * Protobuf enum {@code flyteidl.core.Resources.ResourceName} + */ + public enum ResourceName + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * CPU = 1; + */ + CPU(1), + /** + * GPU = 2; + */ + GPU(2), + /** + * MEMORY = 3; + */ + MEMORY(3), + /** + * STORAGE = 4; + */ + STORAGE(4), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * CPU = 1; + */ + public static final int CPU_VALUE = 1; + /** + * GPU = 2; + */ + public static final int GPU_VALUE = 2; + /** + * MEMORY = 3; + */ + public static final int MEMORY_VALUE = 3; + /** + * STORAGE = 4; + */ + public static final int STORAGE_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResourceName valueOf(int value) { + return forNumber(value); + } + + public static ResourceName forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return CPU; + case 2: return GPU; + case 3: return MEMORY; + case 4: return STORAGE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResourceName> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResourceName findValueByNumber(int number) { + return ResourceName.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Tasks.Resources.getDescriptor().getEnumTypes().get(0); + } + + private static final ResourceName[] VALUES = values(); + + public static ResourceName 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 ResourceName(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.Resources.ResourceName) + } + + public interface ResourceEntryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Resources.ResourceEntry) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + int getNameValue(); + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + flyteidl.core.Tasks.Resources.ResourceName getName(); + + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + java.lang.String getValue(); + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + *
+     * Encapsulates a resource name and value.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} + */ + public static final class ResourceEntry extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Resources.ResourceEntry) + ResourceEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceEntry.newBuilder() to construct. + private ResourceEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceEntry() { + name_ = 0; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceEntry( + 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 8: { + int rawValue = input.readEnum(); + + name_ = rawValue; + 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 flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private int name_; + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public int getNameValue() { + return name_; + } + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceName getName() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); + return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + 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 must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + 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 (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { + output.writeEnum(1, name_); + } + if (!getValueBytes().isEmpty()) { + 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 (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, name_); + } + if (!getValueBytes().isEmpty()) { + 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 flyteidl.core.Tasks.Resources.ResourceEntry)) { + return super.equals(obj); + } + flyteidl.core.Tasks.Resources.ResourceEntry other = (flyteidl.core.Tasks.Resources.ResourceEntry) obj; + + if (name_ != other.name_) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + name_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry 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 flyteidl.core.Tasks.Resources.ResourceEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry 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 flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry 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(flyteidl.core.Tasks.Resources.ResourceEntry 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; + } + /** + *
+       * Encapsulates a resource name and value.
+       * 
+ * + * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources.ResourceEntry) + flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); + } + + // Construct using flyteidl.core.Tasks.Resources.ResourceEntry.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_ = 0; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { + return flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources.ResourceEntry build() { + flyteidl.core.Tasks.Resources.ResourceEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources.ResourceEntry buildPartial() { + flyteidl.core.Tasks.Resources.ResourceEntry result = new flyteidl.core.Tasks.Resources.ResourceEntry(this); + result.name_ = name_; + 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 flyteidl.core.Tasks.Resources.ResourceEntry) { + return mergeFrom((flyteidl.core.Tasks.Resources.ResourceEntry)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.Resources.ResourceEntry other) { + if (other == flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()) return this; + if (other.name_ != 0) { + setNameValue(other.getNameValue()); + } + 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 { + flyteidl.core.Tasks.Resources.ResourceEntry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.Resources.ResourceEntry) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int name_ = 0; + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public int getNameValue() { + return name_; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public Builder setNameValue(int value) { + name_ = value; + onChanged(); + return this; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceName getName() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); + return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public Builder setName(flyteidl.core.Tasks.Resources.ResourceName value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public Builder clearName() { + + name_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + 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 must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + 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 must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + 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:flyteidl.core.Resources.ResourceEntry) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Resources.ResourceEntry) + private static final flyteidl.core.Tasks.Resources.ResourceEntry DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources.ResourceEntry(); + } + + public static flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceEntry(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 flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int REQUESTS_FIELD_NUMBER = 1; + private java.util.List requests_; + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List getRequestsList() { + return requests_; + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public int getRequestsCount() { + return requests_.size(); + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { + return requests_.get(index); + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( + int index) { + return requests_.get(index); + } + + public static final int LIMITS_FIELD_NUMBER = 2; + private java.util.List limits_; + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List getLimitsList() { + return limits_; + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List + getLimitsOrBuilderList() { + return limits_; + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public int getLimitsCount() { + return limits_.size(); + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { + return limits_.get(index); + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( + int index) { + return limits_.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 < requests_.size(); i++) { + output.writeMessage(1, requests_.get(i)); + } + for (int i = 0; i < limits_.size(); i++) { + output.writeMessage(2, limits_.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 < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); + } + for (int i = 0; i < limits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, limits_.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 flyteidl.core.Tasks.Resources)) { + return super.equals(obj); + } + flyteidl.core.Tasks.Resources other = (flyteidl.core.Tasks.Resources) obj; + + if (!getRequestsList() + .equals(other.getRequestsList())) return false; + if (!getLimitsList() + .equals(other.getLimitsList())) 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 (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + if (getLimitsCount() > 0) { + hash = (37 * hash) + LIMITS_FIELD_NUMBER; + hash = (53 * hash) + getLimitsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.Resources parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources 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 flyteidl.core.Tasks.Resources parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources 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 flyteidl.core.Tasks.Resources parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources 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(flyteidl.core.Tasks.Resources 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 customizable interface to convey resources requested for a container. This can be interpretted differently for different
+     * container engines.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Resources} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources) + flyteidl.core.Tasks.ResourcesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); + } + + // Construct using flyteidl.core.Tasks.Resources.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + getLimitsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + requestsBuilder_.clear(); + } + if (limitsBuilder_ == null) { + limits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + limitsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources getDefaultInstanceForType() { + return flyteidl.core.Tasks.Resources.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources build() { + flyteidl.core.Tasks.Resources result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources buildPartial() { + flyteidl.core.Tasks.Resources result = new flyteidl.core.Tasks.Resources(this); + int from_bitField0_ = bitField0_; + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + if (limitsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + limits_ = java.util.Collections.unmodifiableList(limits_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.limits_ = limits_; + } else { + result.limits_ = limitsBuilder_.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 flyteidl.core.Tasks.Resources) { + return mergeFrom((flyteidl.core.Tasks.Resources)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.Resources other) { + if (other == flyteidl.core.Tasks.Resources.getDefaultInstance()) return this; + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + if (limitsBuilder_ == null) { + if (!other.limits_.isEmpty()) { + if (limits_.isEmpty()) { + limits_ = other.limits_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLimitsIsMutable(); + limits_.addAll(other.limits_); + } + onChanged(); + } + } else { + if (!other.limits_.isEmpty()) { + if (limitsBuilder_.isEmpty()) { + limitsBuilder_.dispose(); + limitsBuilder_ = null; + limits_ = other.limits_; + bitField0_ = (bitField0_ & ~0x00000002); + limitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLimitsFieldBuilder() : null; + } else { + limitsBuilder_.addAllMessages(other.limits_); + } + } + } + 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 { + flyteidl.core.Tasks.Resources parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.Resources) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List requests_ = + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(requests_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> requestsBuilder_; + + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder setRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder setRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests(flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests( + flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder() { + return getRequestsFieldBuilder().addBuilder( + flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + private java.util.List limits_ = + java.util.Collections.emptyList(); + private void ensureLimitsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + limits_ = new java.util.ArrayList(limits_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> limitsBuilder_; + + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List getLimitsList() { + if (limitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(limits_); + } else { + return limitsBuilder_.getMessageList(); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public int getLimitsCount() { + if (limitsBuilder_ == null) { + return limits_.size(); + } else { + return limitsBuilder_.getCount(); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { + if (limitsBuilder_ == null) { + return limits_.get(index); + } else { + return limitsBuilder_.getMessage(index); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder setLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLimitsIsMutable(); + limits_.set(index, value); + onChanged(); + } else { + limitsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder setLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.set(index, builderForValue.build()); + onChanged(); + } else { + limitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits(flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLimitsIsMutable(); + limits_.add(value); + onChanged(); + } else { + limitsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLimitsIsMutable(); + limits_.add(index, value); + onChanged(); + } else { + limitsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits( + flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.add(builderForValue.build()); + onChanged(); + } else { + limitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.add(index, builderForValue.build()); + onChanged(); + } else { + limitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addAllLimits( + java.lang.Iterable values) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, limits_); + onChanged(); + } else { + limitsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder clearLimits() { + if (limitsBuilder_ == null) { + limits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + limitsBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder removeLimits(int index) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.remove(index); + onChanged(); + } else { + limitsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getLimitsBuilder( + int index) { + return getLimitsFieldBuilder().getBuilder(index); + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( + int index) { + if (limitsBuilder_ == null) { + return limits_.get(index); } else { + return limitsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List + getLimitsOrBuilderList() { + if (limitsBuilder_ != null) { + return limitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(limits_); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder() { + return getLimitsFieldBuilder().addBuilder( + flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder( + int index) { + return getLimitsFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List + getLimitsBuilderList() { + return getLimitsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> + getLimitsFieldBuilder() { + if (limitsBuilder_ == null) { + limitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( + limits_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + limits_ = null; + } + return limitsBuilder_; + } + @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:flyteidl.core.Resources) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Resources) + private static final flyteidl.core.Tasks.Resources DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources(); + } + + public static flyteidl.core.Tasks.Resources getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resources parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resources(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 flyteidl.core.Tasks.Resources getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RuntimeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.RuntimeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + int getTypeValue(); + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType(); + + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + java.lang.String getVersion(); + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + java.lang.String getFlavor(); + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + com.google.protobuf.ByteString + getFlavorBytes(); + } + /** + *
+   * Runtime information. This is losely defined to allow for extensibility.
+   * 
+ * + * Protobuf type {@code flyteidl.core.RuntimeMetadata} + */ + public static final class RuntimeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.RuntimeMetadata) + RuntimeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RuntimeMetadata.newBuilder() to construct. + private RuntimeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RuntimeMetadata() { + type_ = 0; + version_ = ""; + flavor_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RuntimeMetadata( + 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 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + flavor_ = 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 flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.RuntimeMetadata.RuntimeType} + */ + public enum RuntimeType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * OTHER = 0; + */ + OTHER(0), + /** + * FLYTE_SDK = 1; + */ + FLYTE_SDK(1), + UNRECOGNIZED(-1), + ; + + /** + * OTHER = 0; + */ + public static final int OTHER_VALUE = 0; + /** + * FLYTE_SDK = 1; + */ + public static final int FLYTE_SDK_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RuntimeType valueOf(int value) { + return forNumber(value); + } + + public static RuntimeType forNumber(int value) { + switch (value) { + case 0: return OTHER; + case 1: return FLYTE_SDK; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RuntimeType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RuntimeType findValueByNumber(int number) { + return RuntimeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Tasks.RuntimeMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final RuntimeType[] VALUES = values(); + + public static RuntimeType 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 RuntimeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.RuntimeMetadata.RuntimeType) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); + return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; + } + + public static final int VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object version_; + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLAVOR_FIELD_NUMBER = 3; + private volatile java.lang.Object flavor_; + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + public java.lang.String getFlavor() { + java.lang.Object ref = flavor_; + 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(); + flavor_ = s; + return s; + } + } + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + public com.google.protobuf.ByteString + getFlavorBytes() { + java.lang.Object ref = flavor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + flavor_ = 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 (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { + output.writeEnum(1, type_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (!getFlavorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, flavor_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (!getFlavorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, flavor_); + } + 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 flyteidl.core.Tasks.RuntimeMetadata)) { + return super.equals(obj); + } + flyteidl.core.Tasks.RuntimeMetadata other = (flyteidl.core.Tasks.RuntimeMetadata) obj; + + if (type_ != other.type_) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getFlavor() + .equals(other.getFlavor())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + FLAVOR_FIELD_NUMBER; + hash = (53 * hash) + getFlavor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.RuntimeMetadata 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 flyteidl.core.Tasks.RuntimeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.RuntimeMetadata 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 flyteidl.core.Tasks.RuntimeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.RuntimeMetadata 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(flyteidl.core.Tasks.RuntimeMetadata 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; + } + /** + *
+     * Runtime information. This is losely defined to allow for extensibility.
+     * 
+ * + * Protobuf type {@code flyteidl.core.RuntimeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.RuntimeMetadata) + flyteidl.core.Tasks.RuntimeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); + } + + // Construct using flyteidl.core.Tasks.RuntimeMetadata.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(); + type_ = 0; + + version_ = ""; + + flavor_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { + return flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.RuntimeMetadata build() { + flyteidl.core.Tasks.RuntimeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.RuntimeMetadata buildPartial() { + flyteidl.core.Tasks.RuntimeMetadata result = new flyteidl.core.Tasks.RuntimeMetadata(this); + result.type_ = type_; + result.version_ = version_; + result.flavor_ = flavor_; + 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 flyteidl.core.Tasks.RuntimeMetadata) { + return mergeFrom((flyteidl.core.Tasks.RuntimeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.RuntimeMetadata other) { + if (other == flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getFlavor().isEmpty()) { + flavor_ = other.flavor_; + 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 { + flyteidl.core.Tasks.RuntimeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.RuntimeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); + return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public Builder setType(flyteidl.core.Tasks.RuntimeMetadata.RuntimeType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object flavor_ = ""; + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public java.lang.String getFlavor() { + java.lang.Object ref = flavor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flavor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public com.google.protobuf.ByteString + getFlavorBytes() { + java.lang.Object ref = flavor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + flavor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public Builder setFlavor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + flavor_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public Builder clearFlavor() { + + flavor_ = getDefaultInstance().getFlavor(); + onChanged(); + return this; + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public Builder setFlavorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + flavor_ = 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:flyteidl.core.RuntimeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.RuntimeMetadata) + private static final flyteidl.core.Tasks.RuntimeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.RuntimeMetadata(); + } + + public static flyteidl.core.Tasks.RuntimeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RuntimeMetadata(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 flyteidl.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+     * 
+ * + * bool discoverable = 1; + */ + boolean getDiscoverable(); + + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + boolean hasRuntime(); + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + flyteidl.core.Tasks.RuntimeMetadata getRuntime(); + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder(); + + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + boolean hasTimeout(); + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.Duration getTimeout(); + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + boolean hasRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategy getRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); + + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + java.lang.String getDiscoveryVersion(); + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + com.google.protobuf.ByteString + getDiscoveryVersionBytes(); + + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + java.lang.String getDeprecatedErrorMessage(); + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + com.google.protobuf.ByteString + getDeprecatedErrorMessageBytes(); + + /** + * bool interruptible = 8; + */ + boolean getInterruptible(); + + public flyteidl.core.Tasks.TaskMetadata.InterruptibleValueCase getInterruptibleValueCase(); + } + /** + *
+   * Task Metadata
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskMetadata} + */ + public static final class TaskMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskMetadata) + TaskMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskMetadata.newBuilder() to construct. + private TaskMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskMetadata() { + discoveryVersion_ = ""; + deprecatedErrorMessage_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskMetadata( + 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 8: { + + discoverable_ = input.readBool(); + break; + } + case 18: { + flyteidl.core.Tasks.RuntimeMetadata.Builder subBuilder = null; + if (runtime_ != null) { + subBuilder = runtime_.toBuilder(); + } + runtime_ = input.readMessage(flyteidl.core.Tasks.RuntimeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runtime_); + runtime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeout_ != null) { + subBuilder = timeout_.toBuilder(); + } + timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeout_); + timeout_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; + if (retries_ != null) { + subBuilder = retries_.toBuilder(); + } + retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retries_); + retries_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + discoveryVersion_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + deprecatedErrorMessage_ = s; + break; + } + case 64: { + interruptibleValueCase_ = 8; + interruptibleValue_ = input.readBool(); + 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 flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); + } + + private int interruptibleValueCase_ = 0; + private java.lang.Object interruptibleValue_; + public enum InterruptibleValueCase + implements com.google.protobuf.Internal.EnumLite { + INTERRUPTIBLE(8), + INTERRUPTIBLEVALUE_NOT_SET(0); + private final int value; + private InterruptibleValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InterruptibleValueCase valueOf(int value) { + return forNumber(value); + } + + public static InterruptibleValueCase forNumber(int value) { + switch (value) { + case 8: return INTERRUPTIBLE; + case 0: return INTERRUPTIBLEVALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public InterruptibleValueCase + getInterruptibleValueCase() { + return InterruptibleValueCase.forNumber( + interruptibleValueCase_); + } + + public static final int DISCOVERABLE_FIELD_NUMBER = 1; + private boolean discoverable_; + /** + *
+     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+     * 
+ * + * bool discoverable = 1; + */ + public boolean getDiscoverable() { + return discoverable_; + } + + public static final int RUNTIME_FIELD_NUMBER = 2; + private flyteidl.core.Tasks.RuntimeMetadata runtime_; + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public boolean hasRuntime() { + return runtime_ != null; + } + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { + return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; + } + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { + return getRuntime(); + } + + public static final int TIMEOUT_FIELD_NUMBER = 4; + private com.google.protobuf.Duration timeout_; + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeout_ != null; + } + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + return getTimeout(); + } + + public static final int RETRIES_FIELD_NUMBER = 5; + private flyteidl.core.Literals.RetryStrategy retries_; + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retries_ != null; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + return getRetries(); + } + + public static final int DISCOVERY_VERSION_FIELD_NUMBER = 6; + private volatile java.lang.Object discoveryVersion_; + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + public java.lang.String getDiscoveryVersion() { + java.lang.Object ref = discoveryVersion_; + 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(); + discoveryVersion_ = s; + return s; + } + } + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + public com.google.protobuf.ByteString + getDiscoveryVersionBytes() { + java.lang.Object ref = discoveryVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + discoveryVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER = 7; + private volatile java.lang.Object deprecatedErrorMessage_; + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + public java.lang.String getDeprecatedErrorMessage() { + java.lang.Object ref = deprecatedErrorMessage_; + 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(); + deprecatedErrorMessage_ = s; + return s; + } + } + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + public com.google.protobuf.ByteString + getDeprecatedErrorMessageBytes() { + java.lang.Object ref = deprecatedErrorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deprecatedErrorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 8; + /** + * bool interruptible = 8; + */ + public boolean getInterruptible() { + if (interruptibleValueCase_ == 8) { + return (java.lang.Boolean) interruptibleValue_; + } + return false; + } + + 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 (discoverable_ != false) { + output.writeBool(1, discoverable_); + } + if (runtime_ != null) { + output.writeMessage(2, getRuntime()); + } + if (timeout_ != null) { + output.writeMessage(4, getTimeout()); + } + if (retries_ != null) { + output.writeMessage(5, getRetries()); + } + if (!getDiscoveryVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, discoveryVersion_); + } + if (!getDeprecatedErrorMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deprecatedErrorMessage_); + } + if (interruptibleValueCase_ == 8) { + output.writeBool( + 8, (boolean)((java.lang.Boolean) interruptibleValue_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (discoverable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, discoverable_); + } + if (runtime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRuntime()); + } + if (timeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTimeout()); + } + if (retries_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRetries()); + } + if (!getDiscoveryVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, discoveryVersion_); + } + if (!getDeprecatedErrorMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deprecatedErrorMessage_); + } + if (interruptibleValueCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 8, (boolean)((java.lang.Boolean) interruptibleValue_)); + } + 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 flyteidl.core.Tasks.TaskMetadata)) { + return super.equals(obj); + } + flyteidl.core.Tasks.TaskMetadata other = (flyteidl.core.Tasks.TaskMetadata) obj; + + if (getDiscoverable() + != other.getDiscoverable()) return false; + if (hasRuntime() != other.hasRuntime()) return false; + if (hasRuntime()) { + if (!getRuntime() + .equals(other.getRuntime())) return false; + } + if (hasTimeout() != other.hasTimeout()) return false; + if (hasTimeout()) { + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (hasRetries() != other.hasRetries()) return false; + if (hasRetries()) { + if (!getRetries() + .equals(other.getRetries())) return false; + } + if (!getDiscoveryVersion() + .equals(other.getDiscoveryVersion())) return false; + if (!getDeprecatedErrorMessage() + .equals(other.getDeprecatedErrorMessage())) return false; + if (!getInterruptibleValueCase().equals(other.getInterruptibleValueCase())) return false; + switch (interruptibleValueCase_) { + case 8: + if (getInterruptible() + != other.getInterruptible()) 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) + DISCOVERABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDiscoverable()); + if (hasRuntime()) { + hash = (37 * hash) + RUNTIME_FIELD_NUMBER; + hash = (53 * hash) + getRuntime().hashCode(); + } + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + if (hasRetries()) { + hash = (37 * hash) + RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getRetries().hashCode(); + } + hash = (37 * hash) + DISCOVERY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDiscoveryVersion().hashCode(); + hash = (37 * hash) + DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getDeprecatedErrorMessage().hashCode(); + switch (interruptibleValueCase_) { + case 8: + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterruptible()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskMetadata 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 flyteidl.core.Tasks.TaskMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskMetadata 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 flyteidl.core.Tasks.TaskMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskMetadata 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(flyteidl.core.Tasks.TaskMetadata 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; + } + /** + *
+     * Task Metadata
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskMetadata) + flyteidl.core.Tasks.TaskMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); + } + + // Construct using flyteidl.core.Tasks.TaskMetadata.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(); + discoverable_ = false; + + if (runtimeBuilder_ == null) { + runtime_ = null; + } else { + runtime_ = null; + runtimeBuilder_ = null; + } + if (timeoutBuilder_ == null) { + timeout_ = null; + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + if (retriesBuilder_ == null) { + retries_ = null; + } else { + retries_ = null; + retriesBuilder_ = null; + } + discoveryVersion_ = ""; + + deprecatedErrorMessage_ = ""; + + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskMetadata getDefaultInstanceForType() { + return flyteidl.core.Tasks.TaskMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskMetadata build() { + flyteidl.core.Tasks.TaskMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskMetadata buildPartial() { + flyteidl.core.Tasks.TaskMetadata result = new flyteidl.core.Tasks.TaskMetadata(this); + result.discoverable_ = discoverable_; + if (runtimeBuilder_ == null) { + result.runtime_ = runtime_; + } else { + result.runtime_ = runtimeBuilder_.build(); + } + if (timeoutBuilder_ == null) { + result.timeout_ = timeout_; + } else { + result.timeout_ = timeoutBuilder_.build(); + } + if (retriesBuilder_ == null) { + result.retries_ = retries_; + } else { + result.retries_ = retriesBuilder_.build(); + } + result.discoveryVersion_ = discoveryVersion_; + result.deprecatedErrorMessage_ = deprecatedErrorMessage_; + if (interruptibleValueCase_ == 8) { + result.interruptibleValue_ = interruptibleValue_; + } + result.interruptibleValueCase_ = interruptibleValueCase_; + 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 flyteidl.core.Tasks.TaskMetadata) { + return mergeFrom((flyteidl.core.Tasks.TaskMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.TaskMetadata other) { + if (other == flyteidl.core.Tasks.TaskMetadata.getDefaultInstance()) return this; + if (other.getDiscoverable() != false) { + setDiscoverable(other.getDiscoverable()); + } + if (other.hasRuntime()) { + mergeRuntime(other.getRuntime()); + } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (other.hasRetries()) { + mergeRetries(other.getRetries()); + } + if (!other.getDiscoveryVersion().isEmpty()) { + discoveryVersion_ = other.discoveryVersion_; + onChanged(); + } + if (!other.getDeprecatedErrorMessage().isEmpty()) { + deprecatedErrorMessage_ = other.deprecatedErrorMessage_; + onChanged(); + } + switch (other.getInterruptibleValueCase()) { + case INTERRUPTIBLE: { + setInterruptible(other.getInterruptible()); + break; + } + case INTERRUPTIBLEVALUE_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 { + flyteidl.core.Tasks.TaskMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.TaskMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int interruptibleValueCase_ = 0; + private java.lang.Object interruptibleValue_; + public InterruptibleValueCase + getInterruptibleValueCase() { + return InterruptibleValueCase.forNumber( + interruptibleValueCase_); + } + + public Builder clearInterruptibleValue() { + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + onChanged(); + return this; + } + + + private boolean discoverable_ ; + /** + *
+       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+       * 
+ * + * bool discoverable = 1; + */ + public boolean getDiscoverable() { + return discoverable_; + } + /** + *
+       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+       * 
+ * + * bool discoverable = 1; + */ + public Builder setDiscoverable(boolean value) { + + discoverable_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+       * 
+ * + * bool discoverable = 1; + */ + public Builder clearDiscoverable() { + + discoverable_ = false; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.RuntimeMetadata runtime_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> runtimeBuilder_; + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public boolean hasRuntime() { + return runtimeBuilder_ != null || runtime_ != null; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { + if (runtimeBuilder_ == null) { + return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; + } else { + return runtimeBuilder_.getMessage(); + } + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder setRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { + if (runtimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runtime_ = value; + onChanged(); + } else { + runtimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder setRuntime( + flyteidl.core.Tasks.RuntimeMetadata.Builder builderForValue) { + if (runtimeBuilder_ == null) { + runtime_ = builderForValue.build(); + onChanged(); + } else { + runtimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder mergeRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { + if (runtimeBuilder_ == null) { + if (runtime_ != null) { + runtime_ = + flyteidl.core.Tasks.RuntimeMetadata.newBuilder(runtime_).mergeFrom(value).buildPartial(); + } else { + runtime_ = value; + } + onChanged(); + } else { + runtimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder clearRuntime() { + if (runtimeBuilder_ == null) { + runtime_ = null; + onChanged(); + } else { + runtime_ = null; + runtimeBuilder_ = null; + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadata.Builder getRuntimeBuilder() { + + onChanged(); + return getRuntimeFieldBuilder().getBuilder(); + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { + if (runtimeBuilder_ != null) { + return runtimeBuilder_.getMessageOrBuilder(); + } else { + return runtime_ == null ? + flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; + } + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> + getRuntimeFieldBuilder() { + if (runtimeBuilder_ == null) { + runtimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder>( + getRuntime(), + getParentForChildren(), + isClean()); + runtime_ = null; + } + return runtimeBuilder_; + } + + private com.google.protobuf.Duration timeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeoutBuilder_ != null || timeout_ != null; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + onChanged(); + } else { + timeoutBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + onChanged(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (timeout_ != null) { + timeout_ = + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + } else { + timeout_ = value; + } + onChanged(); + } else { + timeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder clearTimeout() { + if (timeoutBuilder_ == null) { + timeout_ = null; + onChanged(); + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeoutFieldBuilder() { + if (timeoutBuilder_ == null) { + timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeout(), + getParentForChildren(), + isClean()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private flyteidl.core.Literals.RetryStrategy retries_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retriesBuilder_ != null || retries_ != null; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + if (retriesBuilder_ == null) { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } else { + return retriesBuilder_.getMessage(); + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retries_ = value; + onChanged(); + } else { + retriesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries( + flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { + if (retriesBuilder_ == null) { + retries_ = builderForValue.build(); + onChanged(); + } else { + retriesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (retries_ != null) { + retries_ = + flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); + } else { + retries_ = value; + } + onChanged(); + } else { + retriesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder clearRetries() { + if (retriesBuilder_ == null) { + retries_ = null; + onChanged(); + } else { + retries_ = null; + retriesBuilder_ = null; + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { + + onChanged(); + return getRetriesFieldBuilder().getBuilder(); + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + if (retriesBuilder_ != null) { + return retriesBuilder_.getMessageOrBuilder(); + } else { + return retries_ == null ? + flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> + getRetriesFieldBuilder() { + if (retriesBuilder_ == null) { + retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( + getRetries(), + getParentForChildren(), + isClean()); + retries_ = null; + } + return retriesBuilder_; + } + + private java.lang.Object discoveryVersion_ = ""; + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public java.lang.String getDiscoveryVersion() { + java.lang.Object ref = discoveryVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + discoveryVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public com.google.protobuf.ByteString + getDiscoveryVersionBytes() { + java.lang.Object ref = discoveryVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + discoveryVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public Builder setDiscoveryVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + discoveryVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public Builder clearDiscoveryVersion() { + + discoveryVersion_ = getDefaultInstance().getDiscoveryVersion(); + onChanged(); + return this; + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public Builder setDiscoveryVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + discoveryVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object deprecatedErrorMessage_ = ""; + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public java.lang.String getDeprecatedErrorMessage() { + java.lang.Object ref = deprecatedErrorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deprecatedErrorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public com.google.protobuf.ByteString + getDeprecatedErrorMessageBytes() { + java.lang.Object ref = deprecatedErrorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deprecatedErrorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public Builder setDeprecatedErrorMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deprecatedErrorMessage_ = value; + onChanged(); + return this; + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public Builder clearDeprecatedErrorMessage() { + + deprecatedErrorMessage_ = getDefaultInstance().getDeprecatedErrorMessage(); + onChanged(); + return this; + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public Builder setDeprecatedErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deprecatedErrorMessage_ = value; + onChanged(); + return this; + } + + /** + * bool interruptible = 8; + */ + public boolean getInterruptible() { + if (interruptibleValueCase_ == 8) { + return (java.lang.Boolean) interruptibleValue_; + } + return false; + } + /** + * bool interruptible = 8; + */ + public Builder setInterruptible(boolean value) { + interruptibleValueCase_ = 8; + interruptibleValue_ = value; + onChanged(); + return this; + } + /** + * bool interruptible = 8; + */ + public Builder clearInterruptible() { + if (interruptibleValueCase_ == 8) { + interruptibleValueCase_ = 0; + interruptibleValue_ = 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:flyteidl.core.TaskMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskMetadata) + private static final flyteidl.core.Tasks.TaskMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskMetadata(); + } + + public static flyteidl.core.Tasks.TaskMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskMetadata(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 flyteidl.core.Tasks.TaskMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskTemplateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + java.lang.String getType(); + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + flyteidl.core.Tasks.TaskMetadata getMetadata(); + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + boolean hasInterface(); + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + flyteidl.core.Interface.TypedInterface getInterface(); + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); + + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + boolean hasCustom(); + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + com.google.protobuf.Struct getCustom(); + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + com.google.protobuf.StructOrBuilder getCustomOrBuilder(); + + /** + * .flyteidl.core.Container container = 6; + */ + boolean hasContainer(); + /** + * .flyteidl.core.Container container = 6; + */ + flyteidl.core.Tasks.Container getContainer(); + /** + * .flyteidl.core.Container container = 6; + */ + flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder(); + + public flyteidl.core.Tasks.TaskTemplate.TargetCase getTargetCase(); + } + /** + *
+   * A Task structure that uniquely identifies a task in the system
+   * Tasks are registered as a first step in the system.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskTemplate} + */ + public static final class TaskTemplate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskTemplate) + TaskTemplateOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskTemplate.newBuilder() to construct. + private TaskTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskTemplate() { + type_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskTemplate( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + case 26: { + flyteidl.core.Tasks.TaskMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Tasks.TaskMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; + if (interface_ != null) { + subBuilder = interface_.toBuilder(); + } + interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(interface_); + interface_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (custom_ != null) { + subBuilder = custom_.toBuilder(); + } + custom_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(custom_); + custom_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + flyteidl.core.Tasks.Container.Builder subBuilder = null; + if (targetCase_ == 6) { + subBuilder = ((flyteidl.core.Tasks.Container) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Tasks.Container.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Tasks.Container) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 6; + 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 flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); + } + + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite { + CONTAINER(6), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 6: return CONTAINER; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object type_; + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.core.Tasks.TaskMetadata metadata_; + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int INTERFACE_FIELD_NUMBER = 4; + private flyteidl.core.Interface.TypedInterface interface_; + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public boolean hasInterface() { + return interface_ != null; + } + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + return getInterface(); + } + + public static final int CUSTOM_FIELD_NUMBER = 5; + private com.google.protobuf.Struct custom_; + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public boolean hasCustom() { + return custom_ != null; + } + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.Struct getCustom() { + return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; + } + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { + return getCustom(); + } + + public static final int CONTAINER_FIELD_NUMBER = 6; + /** + * .flyteidl.core.Container container = 6; + */ + public boolean hasContainer() { + return targetCase_ == 6; + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.Container getContainer() { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + if (interface_ != null) { + output.writeMessage(4, getInterface()); + } + if (custom_ != null) { + output.writeMessage(5, getCustom()); + } + if (targetCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Tasks.Container) target_); + } + 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 (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + if (interface_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getInterface()); + } + if (custom_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCustom()); + } + if (targetCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Tasks.Container) target_); + } + 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 flyteidl.core.Tasks.TaskTemplate)) { + return super.equals(obj); + } + flyteidl.core.Tasks.TaskTemplate other = (flyteidl.core.Tasks.TaskTemplate) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getType() + .equals(other.getType())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasInterface() != other.hasInterface()) return false; + if (hasInterface()) { + if (!getInterface() + .equals(other.getInterface())) return false; + } + if (hasCustom() != other.hasCustom()) return false; + if (hasCustom()) { + if (!getCustom() + .equals(other.getCustom())) return false; + } + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 6: + if (!getContainer() + .equals(other.getContainer())) 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(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasInterface()) { + hash = (37 * hash) + INTERFACE_FIELD_NUMBER; + hash = (53 * hash) + getInterface().hashCode(); + } + if (hasCustom()) { + hash = (37 * hash) + CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + getCustom().hashCode(); + } + switch (targetCase_) { + case 6: + hash = (37 * hash) + CONTAINER_FIELD_NUMBER; + hash = (53 * hash) + getContainer().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskTemplate 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 flyteidl.core.Tasks.TaskTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskTemplate 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 flyteidl.core.Tasks.TaskTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskTemplate 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(flyteidl.core.Tasks.TaskTemplate 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 Task structure that uniquely identifies a task in the system
+     * Tasks are registered as a first step in the system.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskTemplate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskTemplate) + flyteidl.core.Tasks.TaskTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); + } + + // Construct using flyteidl.core.Tasks.TaskTemplate.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + type_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (interfaceBuilder_ == null) { + interface_ = null; + } else { + interface_ = null; + interfaceBuilder_ = null; + } + if (customBuilder_ == null) { + custom_ = null; + } else { + custom_ = null; + customBuilder_ = null; + } + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskTemplate getDefaultInstanceForType() { + return flyteidl.core.Tasks.TaskTemplate.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskTemplate build() { + flyteidl.core.Tasks.TaskTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskTemplate buildPartial() { + flyteidl.core.Tasks.TaskTemplate result = new flyteidl.core.Tasks.TaskTemplate(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.type_ = type_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (interfaceBuilder_ == null) { + result.interface_ = interface_; + } else { + result.interface_ = interfaceBuilder_.build(); + } + if (customBuilder_ == null) { + result.custom_ = custom_; + } else { + result.custom_ = customBuilder_.build(); + } + if (targetCase_ == 6) { + if (containerBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = containerBuilder_.build(); + } + } + result.targetCase_ = targetCase_; + 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 flyteidl.core.Tasks.TaskTemplate) { + return mergeFrom((flyteidl.core.Tasks.TaskTemplate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.TaskTemplate other) { + if (other == flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasInterface()) { + mergeInterface(other.getInterface()); + } + if (other.hasCustom()) { + mergeCustom(other.getCustom()); + } + switch (other.getTargetCase()) { + case CONTAINER: { + mergeContainer(other.getContainer()); + break; + } + case TARGET_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 { + flyteidl.core.Tasks.TaskTemplate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.TaskTemplate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object type_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.TaskMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.core.Tasks.TaskMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.core.Tasks.TaskMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.core.Tasks.TaskMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Tasks.TaskMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private flyteidl.core.Interface.TypedInterface interface_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public boolean hasInterface() { + return interfaceBuilder_ != null || interface_ != null; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + if (interfaceBuilder_ == null) { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } else { + return interfaceBuilder_.getMessage(); + } + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interface_ = value; + onChanged(); + } else { + interfaceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder setInterface( + flyteidl.core.Interface.TypedInterface.Builder builderForValue) { + if (interfaceBuilder_ == null) { + interface_ = builderForValue.build(); + onChanged(); + } else { + interfaceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (interface_ != null) { + interface_ = + flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); + } else { + interface_ = value; + } + onChanged(); + } else { + interfaceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder clearInterface() { + if (interfaceBuilder_ == null) { + interface_ = null; + onChanged(); + } else { + interface_ = null; + interfaceBuilder_ = null; + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { + + onChanged(); + return getInterfaceFieldBuilder().getBuilder(); + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + if (interfaceBuilder_ != null) { + return interfaceBuilder_.getMessageOrBuilder(); + } else { + return interface_ == null ? + flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> + getInterfaceFieldBuilder() { + if (interfaceBuilder_ == null) { + interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( + getInterface(), + getParentForChildren(), + isClean()); + interface_ = null; + } + return interfaceBuilder_; + } + + private com.google.protobuf.Struct custom_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customBuilder_; + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public boolean hasCustom() { + return customBuilder_ != null || custom_ != null; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.Struct getCustom() { + if (customBuilder_ == null) { + return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; + } else { + return customBuilder_.getMessage(); + } + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder setCustom(com.google.protobuf.Struct value) { + if (customBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + custom_ = value; + onChanged(); + } else { + customBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder setCustom( + com.google.protobuf.Struct.Builder builderForValue) { + if (customBuilder_ == null) { + custom_ = builderForValue.build(); + onChanged(); + } else { + customBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder mergeCustom(com.google.protobuf.Struct value) { + if (customBuilder_ == null) { + if (custom_ != null) { + custom_ = + com.google.protobuf.Struct.newBuilder(custom_).mergeFrom(value).buildPartial(); + } else { + custom_ = value; + } + onChanged(); + } else { + customBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder clearCustom() { + if (customBuilder_ == null) { + custom_ = null; + onChanged(); + } else { + custom_ = null; + customBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.Struct.Builder getCustomBuilder() { + + onChanged(); + return getCustomFieldBuilder().getBuilder(); + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { + if (customBuilder_ != null) { + return customBuilder_.getMessageOrBuilder(); + } else { + return custom_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : custom_; + } + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomFieldBuilder() { + if (customBuilder_ == null) { + customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustom(), + getParentForChildren(), + isClean()); + custom_ = null; + } + return customBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> containerBuilder_; + /** + * .flyteidl.core.Container container = 6; + */ + public boolean hasContainer() { + return targetCase_ == 6; + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.Container getContainer() { + if (containerBuilder_ == null) { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } else { + if (targetCase_ == 6) { + return containerBuilder_.getMessage(); + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder setContainer(flyteidl.core.Tasks.Container value) { + if (containerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + containerBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder setContainer( + flyteidl.core.Tasks.Container.Builder builderForValue) { + if (containerBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + containerBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder mergeContainer(flyteidl.core.Tasks.Container value) { + if (containerBuilder_ == null) { + if (targetCase_ == 6 && + target_ != flyteidl.core.Tasks.Container.getDefaultInstance()) { + target_ = flyteidl.core.Tasks.Container.newBuilder((flyteidl.core.Tasks.Container) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 6) { + containerBuilder_.mergeFrom(value); + } + containerBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder clearContainer() { + if (containerBuilder_ == null) { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + } + containerBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.Container.Builder getContainerBuilder() { + return getContainerFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { + if ((targetCase_ == 6) && (containerBuilder_ != null)) { + return containerBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Container container = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> + getContainerFieldBuilder() { + if (containerBuilder_ == null) { + if (!(targetCase_ == 6)) { + target_ = flyteidl.core.Tasks.Container.getDefaultInstance(); + } + containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder>( + (flyteidl.core.Tasks.Container) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 6; + onChanged();; + return containerBuilder_; + } + @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:flyteidl.core.TaskTemplate) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskTemplate) + private static final flyteidl.core.Tasks.TaskTemplate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskTemplate(); + } + + public static flyteidl.core.Tasks.TaskTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskTemplate(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 flyteidl.core.Tasks.TaskTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ContainerPortOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ContainerPort) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Number of port to expose on the pod's IP address.
+     * This must be a valid port number, 0 < x < 65536.
+     * 
+ * + * uint32 container_port = 1; + */ + int getContainerPort(); + } + /** + *
+   * Defines port properties for a container.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ContainerPort} + */ + public static final class ContainerPort extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerPort) + ContainerPortOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContainerPort.newBuilder() to construct. + private ContainerPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContainerPort() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContainerPort( + 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 8: { + + containerPort_ = input.readUInt32(); + 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 flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); + } + + public static final int CONTAINER_PORT_FIELD_NUMBER = 1; + private int containerPort_; + /** + *
+     * Number of port to expose on the pod's IP address.
+     * This must be a valid port number, 0 < x < 65536.
+     * 
+ * + * uint32 container_port = 1; + */ + public int getContainerPort() { + return containerPort_; + } + + 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 (containerPort_ != 0) { + output.writeUInt32(1, containerPort_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (containerPort_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, containerPort_); + } + 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 flyteidl.core.Tasks.ContainerPort)) { + return super.equals(obj); + } + flyteidl.core.Tasks.ContainerPort other = (flyteidl.core.Tasks.ContainerPort) obj; + + if (getContainerPort() + != other.getContainerPort()) 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) + CONTAINER_PORT_FIELD_NUMBER; + hash = (53 * hash) + getContainerPort(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.ContainerPort parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.ContainerPort 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 flyteidl.core.Tasks.ContainerPort parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.ContainerPort 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 flyteidl.core.Tasks.ContainerPort parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.ContainerPort 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(flyteidl.core.Tasks.ContainerPort 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; + } + /** + *
+     * Defines port properties for a container.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ContainerPort} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerPort) + flyteidl.core.Tasks.ContainerPortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); + } + + // Construct using flyteidl.core.Tasks.ContainerPort.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(); + containerPort_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.ContainerPort getDefaultInstanceForType() { + return flyteidl.core.Tasks.ContainerPort.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.ContainerPort build() { + flyteidl.core.Tasks.ContainerPort result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.ContainerPort buildPartial() { + flyteidl.core.Tasks.ContainerPort result = new flyteidl.core.Tasks.ContainerPort(this); + result.containerPort_ = containerPort_; + 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 flyteidl.core.Tasks.ContainerPort) { + return mergeFrom((flyteidl.core.Tasks.ContainerPort)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.ContainerPort other) { + if (other == flyteidl.core.Tasks.ContainerPort.getDefaultInstance()) return this; + if (other.getContainerPort() != 0) { + setContainerPort(other.getContainerPort()); + } + 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 { + flyteidl.core.Tasks.ContainerPort parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.ContainerPort) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int containerPort_ ; + /** + *
+       * Number of port to expose on the pod's IP address.
+       * This must be a valid port number, 0 < x < 65536.
+       * 
+ * + * uint32 container_port = 1; + */ + public int getContainerPort() { + return containerPort_; + } + /** + *
+       * Number of port to expose on the pod's IP address.
+       * This must be a valid port number, 0 < x < 65536.
+       * 
+ * + * uint32 container_port = 1; + */ + public Builder setContainerPort(int value) { + + containerPort_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of port to expose on the pod's IP address.
+       * This must be a valid port number, 0 < x < 65536.
+       * 
+ * + * uint32 container_port = 1; + */ + public Builder clearContainerPort() { + + containerPort_ = 0; + 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:flyteidl.core.ContainerPort) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerPort) + private static final flyteidl.core.Tasks.ContainerPort DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.ContainerPort(); + } + + public static flyteidl.core.Tasks.ContainerPort getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerPort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContainerPort(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 flyteidl.core.Tasks.ContainerPort getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ContainerOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Container) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + java.lang.String getImage(); + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + com.google.protobuf.ByteString + getImageBytes(); + + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + java.util.List + getCommandList(); + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + int getCommandCount(); + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + java.lang.String getCommand(int index); + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + com.google.protobuf.ByteString + getCommandBytes(int index); + + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + java.util.List + getArgsList(); + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + int getArgsCount(); + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + java.lang.String getArgs(int index); + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + com.google.protobuf.ByteString + getArgsBytes(int index); + + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + boolean hasResources(); + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + flyteidl.core.Tasks.Resources getResources(); + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); + + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + java.util.List + getEnvList(); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + flyteidl.core.Literals.KeyValuePair getEnv(int index); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + int getEnvCount(); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + java.util.List + getEnvOrBuilderList(); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( + int index); + + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + java.util.List + getConfigList(); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + flyteidl.core.Literals.KeyValuePair getConfig(int index); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + int getConfigCount(); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + java.util.List + getConfigOrBuilderList(); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( + int index); + + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + java.util.List + getPortsList(); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + flyteidl.core.Tasks.ContainerPort getPorts(int index); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + int getPortsCount(); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + java.util.List + getPortsOrBuilderList(); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( + int index); + + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + boolean hasDataConfig(); + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + flyteidl.core.Tasks.DataLoadingConfig getDataConfig(); + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.core.Container} + */ + public static final class Container extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Container) + ContainerOrBuilder { + private static final long serialVersionUID = 0L; + // Use Container.newBuilder() to construct. + private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Container() { + image_ = ""; + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + env_ = java.util.Collections.emptyList(); + config_ = java.util.Collections.emptyList(); + ports_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Container( + 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(); + + image_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + command_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + command_.add(s); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + args_.add(s); + break; + } + case 34: { + flyteidl.core.Tasks.Resources.Builder subBuilder = null; + if (resources_ != null) { + subBuilder = resources_.toBuilder(); + } + resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resources_); + resources_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + env_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + env_.add( + input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + config_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + config_.add( + input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { + ports_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + ports_.add( + input.readMessage(flyteidl.core.Tasks.ContainerPort.parser(), extensionRegistry)); + break; + } + case 74: { + flyteidl.core.Tasks.DataLoadingConfig.Builder subBuilder = null; + if (dataConfig_ != null) { + subBuilder = dataConfig_.toBuilder(); + } + dataConfig_ = input.readMessage(flyteidl.core.Tasks.DataLoadingConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataConfig_); + dataConfig_ = 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_ & 0x00000002) != 0)) { + command_ = command_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + args_ = args_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + env_ = java.util.Collections.unmodifiableList(env_); + } + if (((mutable_bitField0_ & 0x00000020) != 0)) { + config_ = java.util.Collections.unmodifiableList(config_); + } + if (((mutable_bitField0_ & 0x00000040) != 0)) { + ports_ = java.util.Collections.unmodifiableList(ports_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); + } + + private int bitField0_; + public static final int IMAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object image_; + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + 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(); + image_ = s; + return s; + } + } + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMAND_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList command_; + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ProtocolStringList + getCommandList() { + return command_; + } + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public int getCommandCount() { + return command_.size(); + } + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public java.lang.String getCommand(int index) { + return command_.get(index); + } + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ByteString + getCommandBytes(int index) { + return command_.getByteString(index); + } + + public static final int ARGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList args_; + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_; + } + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public int getArgsCount() { + return args_.size(); + } + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + + public static final int RESOURCES_FIELD_NUMBER = 4; + private flyteidl.core.Tasks.Resources resources_; + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public boolean hasResources() { + return resources_ != null; + } + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.Resources getResources() { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + return getResources(); + } + + public static final int ENV_FIELD_NUMBER = 5; + private java.util.List env_; + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List getEnvList() { + return env_; + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List + getEnvOrBuilderList() { + return env_; + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public int getEnvCount() { + return env_.size(); + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair getEnv(int index) { + return env_.get(index); + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( + int index) { + return env_.get(index); + } + + public static final int CONFIG_FIELD_NUMBER = 6; + private java.util.List config_; + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List getConfigList() { + return config_; + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List + getConfigOrBuilderList() { + return config_; + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public int getConfigCount() { + return config_.size(); + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair getConfig(int index) { + return config_.get(index); + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( + int index) { + return config_.get(index); + } + + public static final int PORTS_FIELD_NUMBER = 7; + private java.util.List ports_; + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List getPortsList() { + return ports_; + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List + getPortsOrBuilderList() { + return ports_; + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public int getPortsCount() { + return ports_.size(); + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort getPorts(int index) { + return ports_.get(index); + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( + int index) { + return ports_.get(index); + } + + public static final int DATA_CONFIG_FIELD_NUMBER = 9; + private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public boolean hasDataConfig() { + return dataConfig_ != null; + } + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { + return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; + } + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { + return getDataConfig(); + } + + 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 (!getImageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); + } + for (int i = 0; i < command_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, command_.getRaw(i)); + } + for (int i = 0; i < args_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); + } + if (resources_ != null) { + output.writeMessage(4, getResources()); + } + for (int i = 0; i < env_.size(); i++) { + output.writeMessage(5, env_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + output.writeMessage(6, config_.get(i)); + } + for (int i = 0; i < ports_.size(); i++) { + output.writeMessage(7, ports_.get(i)); + } + if (dataConfig_ != null) { + output.writeMessage(9, getDataConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getImageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); + } + { + int dataSize = 0; + for (int i = 0; i < command_.size(); i++) { + dataSize += computeStringSizeNoTag(command_.getRaw(i)); + } + size += dataSize; + size += 1 * getCommandList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < args_.size(); i++) { + dataSize += computeStringSizeNoTag(args_.getRaw(i)); + } + size += dataSize; + size += 1 * getArgsList().size(); + } + if (resources_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResources()); + } + for (int i = 0; i < env_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, env_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, config_.get(i)); + } + for (int i = 0; i < ports_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, ports_.get(i)); + } + if (dataConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getDataConfig()); + } + 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 flyteidl.core.Tasks.Container)) { + return super.equals(obj); + } + flyteidl.core.Tasks.Container other = (flyteidl.core.Tasks.Container) obj; + + if (!getImage() + .equals(other.getImage())) return false; + if (!getCommandList() + .equals(other.getCommandList())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (hasResources() != other.hasResources()) return false; + if (hasResources()) { + if (!getResources() + .equals(other.getResources())) return false; + } + if (!getEnvList() + .equals(other.getEnvList())) return false; + if (!getConfigList() + .equals(other.getConfigList())) return false; + if (!getPortsList() + .equals(other.getPortsList())) return false; + if (hasDataConfig() != other.hasDataConfig()) return false; + if (hasDataConfig()) { + if (!getDataConfig() + .equals(other.getDataConfig())) 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) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + if (getCommandCount() > 0) { + hash = (37 * hash) + COMMAND_FIELD_NUMBER; + hash = (53 * hash) + getCommandList().hashCode(); + } + if (getArgsCount() > 0) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgsList().hashCode(); + } + if (hasResources()) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResources().hashCode(); + } + if (getEnvCount() > 0) { + hash = (37 * hash) + ENV_FIELD_NUMBER; + hash = (53 * hash) + getEnvList().hashCode(); + } + if (getConfigCount() > 0) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfigList().hashCode(); + } + if (getPortsCount() > 0) { + hash = (37 * hash) + PORTS_FIELD_NUMBER; + hash = (53 * hash) + getPortsList().hashCode(); + } + if (hasDataConfig()) { + hash = (37 * hash) + DATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDataConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.Container parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Container parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Container parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Container parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Container parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Container parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Container parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Container 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 flyteidl.core.Tasks.Container parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Container 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 flyteidl.core.Tasks.Container parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Container 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(flyteidl.core.Tasks.Container 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 flyteidl.core.Container} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Container) + flyteidl.core.Tasks.ContainerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); + } + + // Construct using flyteidl.core.Tasks.Container.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEnvFieldBuilder(); + getConfigFieldBuilder(); + getPortsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + image_ = ""; + + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (resourcesBuilder_ == null) { + resources_ = null; + } else { + resources_ = null; + resourcesBuilder_ = null; + } + if (envBuilder_ == null) { + env_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + envBuilder_.clear(); + } + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + configBuilder_.clear(); + } + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + portsBuilder_.clear(); + } + if (dataConfigBuilder_ == null) { + dataConfig_ = null; + } else { + dataConfig_ = null; + dataConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.Container getDefaultInstanceForType() { + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.Container build() { + flyteidl.core.Tasks.Container result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.Container buildPartial() { + flyteidl.core.Tasks.Container result = new flyteidl.core.Tasks.Container(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.image_ = image_; + if (((bitField0_ & 0x00000002) != 0)) { + command_ = command_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.command_ = command_; + if (((bitField0_ & 0x00000004) != 0)) { + args_ = args_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.args_ = args_; + if (resourcesBuilder_ == null) { + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + if (envBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + env_ = java.util.Collections.unmodifiableList(env_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.env_ = env_; + } else { + result.env_ = envBuilder_.build(); + } + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + config_ = java.util.Collections.unmodifiableList(config_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.config_ = config_; + } else { + result.config_ = configBuilder_.build(); + } + if (portsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + ports_ = java.util.Collections.unmodifiableList(ports_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.ports_ = ports_; + } else { + result.ports_ = portsBuilder_.build(); + } + if (dataConfigBuilder_ == null) { + result.dataConfig_ = dataConfig_; + } else { + result.dataConfig_ = dataConfigBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.core.Tasks.Container) { + return mergeFrom((flyteidl.core.Tasks.Container)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.Container other) { + if (other == flyteidl.core.Tasks.Container.getDefaultInstance()) return this; + if (!other.getImage().isEmpty()) { + image_ = other.image_; + onChanged(); + } + if (!other.command_.isEmpty()) { + if (command_.isEmpty()) { + command_ = other.command_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCommandIsMutable(); + command_.addAll(other.command_); + } + onChanged(); + } + if (!other.args_.isEmpty()) { + if (args_.isEmpty()) { + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureArgsIsMutable(); + args_.addAll(other.args_); + } + onChanged(); + } + if (other.hasResources()) { + mergeResources(other.getResources()); + } + if (envBuilder_ == null) { + if (!other.env_.isEmpty()) { + if (env_.isEmpty()) { + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureEnvIsMutable(); + env_.addAll(other.env_); + } + onChanged(); + } + } else { + if (!other.env_.isEmpty()) { + if (envBuilder_.isEmpty()) { + envBuilder_.dispose(); + envBuilder_ = null; + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000010); + envBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEnvFieldBuilder() : null; + } else { + envBuilder_.addAllMessages(other.env_); + } + } + } + if (configBuilder_ == null) { + if (!other.config_.isEmpty()) { + if (config_.isEmpty()) { + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureConfigIsMutable(); + config_.addAll(other.config_); + } + onChanged(); + } + } else { + if (!other.config_.isEmpty()) { + if (configBuilder_.isEmpty()) { + configBuilder_.dispose(); + configBuilder_ = null; + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000020); + configBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConfigFieldBuilder() : null; + } else { + configBuilder_.addAllMessages(other.config_); + } + } + } + if (portsBuilder_ == null) { + if (!other.ports_.isEmpty()) { + if (ports_.isEmpty()) { + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensurePortsIsMutable(); + ports_.addAll(other.ports_); + } + onChanged(); + } + } else { + if (!other.ports_.isEmpty()) { + if (portsBuilder_.isEmpty()) { + portsBuilder_.dispose(); + portsBuilder_ = null; + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000040); + portsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPortsFieldBuilder() : null; + } else { + portsBuilder_.addAllMessages(other.ports_); + } + } + } + if (other.hasDataConfig()) { + mergeDataConfig(other.getDataConfig()); + } + 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 { + flyteidl.core.Tasks.Container parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.Container) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object image_ = ""; + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public Builder setImage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + image_ = value; + onChanged(); + return this; + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public Builder clearImage() { + + image_ = getDefaultInstance().getImage(); + onChanged(); + return this; + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + image_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCommandIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + command_ = new com.google.protobuf.LazyStringArrayList(command_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ProtocolStringList + getCommandList() { + return command_.getUnmodifiableView(); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public int getCommandCount() { + return command_.size(); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public java.lang.String getCommand(int index) { + return command_.get(index); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ByteString + getCommandBytes(int index) { + return command_.getByteString(index); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder setCommand( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandIsMutable(); + command_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder addCommand( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandIsMutable(); + command_.add(value); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder addAllCommand( + java.lang.Iterable values) { + ensureCommandIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, command_); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder clearCommand() { + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder addCommandBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCommandIsMutable(); + command_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(args_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_.getUnmodifiableView(); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public int getArgsCount() { + return args_.size(); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder setArgs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder addArgs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder addAllArgs( + java.lang.Iterable values) { + ensureArgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder clearArgs() { + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + + private flyteidl.core.Tasks.Resources resources_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public boolean hasResources() { + return resourcesBuilder_ != null || resources_ != null; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.Resources getResources() { + if (resourcesBuilder_ == null) { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } else { + return resourcesBuilder_.getMessage(); + } + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder setResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resources_ = value; + onChanged(); + } else { + resourcesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder setResources( + flyteidl.core.Tasks.Resources.Builder builderForValue) { + if (resourcesBuilder_ == null) { + resources_ = builderForValue.build(); + onChanged(); + } else { + resourcesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder mergeResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (resources_ != null) { + resources_ = + flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); + } else { + resources_ = value; + } + onChanged(); + } else { + resourcesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = null; + onChanged(); + } else { + resources_ = null; + resourcesBuilder_ = null; + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { + + onChanged(); + return getResourcesFieldBuilder().getBuilder(); + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilder(); + } else { + return resources_ == null ? + flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( + getResources(), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + private java.util.List env_ = + java.util.Collections.emptyList(); + private void ensureEnvIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + env_ = new java.util.ArrayList(env_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> envBuilder_; + + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List getEnvList() { + if (envBuilder_ == null) { + return java.util.Collections.unmodifiableList(env_); + } else { + return envBuilder_.getMessageList(); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public int getEnvCount() { + if (envBuilder_ == null) { + return env_.size(); + } else { + return envBuilder_.getCount(); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair getEnv(int index) { + if (envBuilder_ == null) { + return env_.get(index); + } else { + return envBuilder_.getMessage(index); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder setEnv( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.set(index, value); + onChanged(); + } else { + envBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder setEnv( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.set(index, builderForValue.build()); + onChanged(); + } else { + envBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv(flyteidl.core.Literals.KeyValuePair value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(value); + onChanged(); + } else { + envBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(index, value); + onChanged(); + } else { + envBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv( + flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.add(builderForValue.build()); + onChanged(); + } else { + envBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.add(index, builderForValue.build()); + onChanged(); + } else { + envBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addAllEnv( + java.lang.Iterable values) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, env_); + onChanged(); + } else { + envBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder clearEnv() { + if (envBuilder_ == null) { + env_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + envBuilder_.clear(); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder removeEnv(int index) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.remove(index); + onChanged(); + } else { + envBuilder_.remove(index); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair.Builder getEnvBuilder( + int index) { + return getEnvFieldBuilder().getBuilder(index); + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( + int index) { + if (envBuilder_ == null) { + return env_.get(index); } else { + return envBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List + getEnvOrBuilderList() { + if (envBuilder_ != null) { + return envBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(env_); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder() { + return getEnvFieldBuilder().addBuilder( + flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder( + int index) { + return getEnvFieldBuilder().addBuilder( + index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List + getEnvBuilderList() { + return getEnvFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> + getEnvFieldBuilder() { + if (envBuilder_ == null) { + envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( + env_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + env_ = null; + } + return envBuilder_; + } + + private java.util.List config_ = + java.util.Collections.emptyList(); + private void ensureConfigIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + config_ = new java.util.ArrayList(config_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> configBuilder_; + + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List getConfigList() { + if (configBuilder_ == null) { + return java.util.Collections.unmodifiableList(config_); + } else { + return configBuilder_.getMessageList(); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public int getConfigCount() { + if (configBuilder_ == null) { + return config_.size(); + } else { + return configBuilder_.getCount(); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair getConfig(int index) { + if (configBuilder_ == null) { + return config_.get(index); + } else { + return configBuilder_.getMessage(index); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder setConfig( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.set(index, value); + onChanged(); + } else { + configBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder setConfig( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.set(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addConfig(flyteidl.core.Literals.KeyValuePair value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(value); + onChanged(); + } else { + configBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addConfig( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(index, value); + onChanged(); + } else { + configBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addConfig( + flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addConfig( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addAllConfig( + java.lang.Iterable values) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, config_); + onChanged(); + } else { + configBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + configBuilder_.clear(); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder removeConfig(int index) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.remove(index); + onChanged(); + } else { + configBuilder_.remove(index); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair.Builder getConfigBuilder( + int index) { + return getConfigFieldBuilder().getBuilder(index); + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( + int index) { + if (configBuilder_ == null) { + return config_.get(index); } else { + return configBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List + getConfigOrBuilderList() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(config_); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder() { + return getConfigFieldBuilder().addBuilder( + flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder( + int index) { + return getConfigFieldBuilder().addBuilder( + index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List + getConfigBuilderList() { + return getConfigFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( + config_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + + private java.util.List ports_ = + java.util.Collections.emptyList(); + private void ensurePortsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + ports_ = new java.util.ArrayList(ports_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> portsBuilder_; + + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List getPortsList() { + if (portsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ports_); + } else { + return portsBuilder_.getMessageList(); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public int getPortsCount() { + if (portsBuilder_ == null) { + return ports_.size(); + } else { + return portsBuilder_.getCount(); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort getPorts(int index) { + if (portsBuilder_ == null) { + return ports_.get(index); + } else { + return portsBuilder_.getMessage(index); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder setPorts( + int index, flyteidl.core.Tasks.ContainerPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.set(index, value); + onChanged(); + } else { + portsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder setPorts( + int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.set(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts(flyteidl.core.Tasks.ContainerPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(value); + onChanged(); + } else { + portsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts( + int index, flyteidl.core.Tasks.ContainerPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(index, value); + onChanged(); + } else { + portsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts( + flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts( + int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addAllPorts( + java.lang.Iterable values) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ports_); + onChanged(); + } else { + portsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder clearPorts() { + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + portsBuilder_.clear(); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder removePorts(int index) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.remove(index); + onChanged(); + } else { + portsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort.Builder getPortsBuilder( + int index) { + return getPortsFieldBuilder().getBuilder(index); + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( + int index) { + if (portsBuilder_ == null) { + return ports_.get(index); } else { + return portsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List + getPortsOrBuilderList() { + if (portsBuilder_ != null) { + return portsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ports_); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder() { + return getPortsFieldBuilder().addBuilder( + flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder( + int index) { + return getPortsFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List + getPortsBuilderList() { + return getPortsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> + getPortsFieldBuilder() { + if (portsBuilder_ == null) { + portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder>( + ports_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + ports_ = null; + } + return portsBuilder_; + } + + private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> dataConfigBuilder_; + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public boolean hasDataConfig() { + return dataConfigBuilder_ != null || dataConfig_ != null; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { + if (dataConfigBuilder_ == null) { + return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; + } else { + return dataConfigBuilder_.getMessage(); + } + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public Builder setDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { + if (dataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataConfig_ = value; + onChanged(); + } else { + dataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public Builder setDataConfig( + flyteidl.core.Tasks.DataLoadingConfig.Builder builderForValue) { + if (dataConfigBuilder_ == null) { + dataConfig_ = builderForValue.build(); + onChanged(); + } else { + dataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public Builder mergeDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { + if (dataConfigBuilder_ == null) { + if (dataConfig_ != null) { + dataConfig_ = + flyteidl.core.Tasks.DataLoadingConfig.newBuilder(dataConfig_).mergeFrom(value).buildPartial(); + } else { + dataConfig_ = value; + } + onChanged(); + } else { + dataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public Builder clearDataConfig() { + if (dataConfigBuilder_ == null) { + dataConfig_ = null; + onChanged(); + } else { + dataConfig_ = null; + dataConfigBuilder_ = null; + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfig.Builder getDataConfigBuilder() { + + onChanged(); + return getDataConfigFieldBuilder().getBuilder(); + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { + if (dataConfigBuilder_ != null) { + return dataConfigBuilder_.getMessageOrBuilder(); + } else { + return dataConfig_ == null ? + flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; + } + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> + getDataConfigFieldBuilder() { + if (dataConfigBuilder_ == null) { + dataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder>( + getDataConfig(), + getParentForChildren(), + isClean()); + dataConfig_ = null; + } + return dataConfigBuilder_; + } + @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:flyteidl.core.Container) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Container) + private static final flyteidl.core.Tasks.Container DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.Container(); + } + + public static flyteidl.core.Tasks.Container getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Container(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 flyteidl.core.Tasks.Container getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IOStrategyOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.IOStrategy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Mode to use to manage downloads
+     * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + int getDownloadModeValue(); + /** + *
+     * Mode to use to manage downloads
+     * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode(); + + /** + *
+     * Mode to use to manage uploads
+     * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + int getUploadModeValue(); + /** + *
+     * Mode to use to manage uploads
+     * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode(); + } + /** + *
+   * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)
+   * 
+ * + * Protobuf type {@code flyteidl.core.IOStrategy} + */ + public static final class IOStrategy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.IOStrategy) + IOStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use IOStrategy.newBuilder() to construct. + private IOStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IOStrategy() { + downloadMode_ = 0; + uploadMode_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IOStrategy( + 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 8: { + int rawValue = input.readEnum(); + + downloadMode_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + uploadMode_ = rawValue; + 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 flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.IOStrategy.class, flyteidl.core.Tasks.IOStrategy.Builder.class); + } + + /** + *
+     * Mode to use for downloading
+     * 
+ * + * Protobuf enum {@code flyteidl.core.IOStrategy.DownloadMode} + */ + public enum DownloadMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * All data will be downloaded before the main container is executed
+       * 
+ * + * DOWNLOAD_EAGER = 0; + */ + DOWNLOAD_EAGER(0), + /** + *
+       * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details
+       * 
+ * + * DOWNLOAD_STREAM = 1; + */ + DOWNLOAD_STREAM(1), + /** + *
+       * Large objects (offloaded) will not be downloaded
+       * 
+ * + * DO_NOT_DOWNLOAD = 2; + */ + DO_NOT_DOWNLOAD(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * All data will be downloaded before the main container is executed
+       * 
+ * + * DOWNLOAD_EAGER = 0; + */ + public static final int DOWNLOAD_EAGER_VALUE = 0; + /** + *
+       * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details
+       * 
+ * + * DOWNLOAD_STREAM = 1; + */ + public static final int DOWNLOAD_STREAM_VALUE = 1; + /** + *
+       * Large objects (offloaded) will not be downloaded
+       * 
+ * + * DO_NOT_DOWNLOAD = 2; + */ + public static final int DO_NOT_DOWNLOAD_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DownloadMode valueOf(int value) { + return forNumber(value); + } + + public static DownloadMode forNumber(int value) { + switch (value) { + case 0: return DOWNLOAD_EAGER; + case 1: return DOWNLOAD_STREAM; + case 2: return DO_NOT_DOWNLOAD; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DownloadMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DownloadMode findValueByNumber(int number) { + return DownloadMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Tasks.IOStrategy.getDescriptor().getEnumTypes().get(0); + } + + private static final DownloadMode[] VALUES = values(); + + public static DownloadMode 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 DownloadMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.IOStrategy.DownloadMode) + } + + /** + *
+     * Mode to use for uploading
+     * 
+ * + * Protobuf enum {@code flyteidl.core.IOStrategy.UploadMode} + */ + public enum UploadMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * All data will be uploaded after the main container exits
+       * 
+ * + * UPLOAD_ON_EXIT = 0; + */ + UPLOAD_ON_EXIT(0), + /** + *
+       * Data will be uploaded as it appears. Refer to protocol specification for details
+       * 
+ * + * UPLOAD_EAGER = 1; + */ + UPLOAD_EAGER(1), + /** + *
+       * Data will not be uploaded, only references will be written
+       * 
+ * + * DO_NOT_UPLOAD = 2; + */ + DO_NOT_UPLOAD(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * All data will be uploaded after the main container exits
+       * 
+ * + * UPLOAD_ON_EXIT = 0; + */ + public static final int UPLOAD_ON_EXIT_VALUE = 0; + /** + *
+       * Data will be uploaded as it appears. Refer to protocol specification for details
+       * 
+ * + * UPLOAD_EAGER = 1; + */ + public static final int UPLOAD_EAGER_VALUE = 1; + /** + *
+       * Data will not be uploaded, only references will be written
+       * 
+ * + * DO_NOT_UPLOAD = 2; + */ + public static final int DO_NOT_UPLOAD_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UploadMode valueOf(int value) { + return forNumber(value); + } + + public static UploadMode forNumber(int value) { + switch (value) { + case 0: return UPLOAD_ON_EXIT; + case 1: return UPLOAD_EAGER; + case 2: return DO_NOT_UPLOAD; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UploadMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UploadMode findValueByNumber(int number) { + return UploadMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Tasks.IOStrategy.getDescriptor().getEnumTypes().get(1); + } + + private static final UploadMode[] VALUES = values(); + + public static UploadMode 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 UploadMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.IOStrategy.UploadMode) + } + + public static final int DOWNLOAD_MODE_FIELD_NUMBER = 1; + private int downloadMode_; + /** + *
+     * Mode to use to manage downloads
+     * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public int getDownloadModeValue() { + return downloadMode_; + } + /** + *
+     * Mode to use to manage downloads
+     * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.IOStrategy.DownloadMode result = flyteidl.core.Tasks.IOStrategy.DownloadMode.valueOf(downloadMode_); + return result == null ? flyteidl.core.Tasks.IOStrategy.DownloadMode.UNRECOGNIZED : result; + } + + public static final int UPLOAD_MODE_FIELD_NUMBER = 2; + private int uploadMode_; + /** + *
+     * Mode to use to manage uploads
+     * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public int getUploadModeValue() { + return uploadMode_; + } + /** + *
+     * Mode to use to manage uploads
+     * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.IOStrategy.UploadMode result = flyteidl.core.Tasks.IOStrategy.UploadMode.valueOf(uploadMode_); + return result == null ? flyteidl.core.Tasks.IOStrategy.UploadMode.UNRECOGNIZED : result; + } + + 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 (downloadMode_ != flyteidl.core.Tasks.IOStrategy.DownloadMode.DOWNLOAD_EAGER.getNumber()) { + output.writeEnum(1, downloadMode_); + } + if (uploadMode_ != flyteidl.core.Tasks.IOStrategy.UploadMode.UPLOAD_ON_EXIT.getNumber()) { + output.writeEnum(2, uploadMode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (downloadMode_ != flyteidl.core.Tasks.IOStrategy.DownloadMode.DOWNLOAD_EAGER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, downloadMode_); + } + if (uploadMode_ != flyteidl.core.Tasks.IOStrategy.UploadMode.UPLOAD_ON_EXIT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, uploadMode_); + } + 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 flyteidl.core.Tasks.IOStrategy)) { + return super.equals(obj); + } + flyteidl.core.Tasks.IOStrategy other = (flyteidl.core.Tasks.IOStrategy) obj; + + if (downloadMode_ != other.downloadMode_) return false; + if (uploadMode_ != other.uploadMode_) 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) + DOWNLOAD_MODE_FIELD_NUMBER; + hash = (53 * hash) + downloadMode_; + hash = (37 * hash) + UPLOAD_MODE_FIELD_NUMBER; + hash = (53 * hash) + uploadMode_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.IOStrategy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.IOStrategy 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 flyteidl.core.Tasks.IOStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.IOStrategy 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 flyteidl.core.Tasks.IOStrategy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.IOStrategy 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(flyteidl.core.Tasks.IOStrategy 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; + } + /** + *
+     * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)
+     * 
+ * + * Protobuf type {@code flyteidl.core.IOStrategy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.IOStrategy) + flyteidl.core.Tasks.IOStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.IOStrategy.class, flyteidl.core.Tasks.IOStrategy.Builder.class); + } + + // Construct using flyteidl.core.Tasks.IOStrategy.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(); + downloadMode_ = 0; + + uploadMode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.IOStrategy getDefaultInstanceForType() { + return flyteidl.core.Tasks.IOStrategy.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.IOStrategy build() { + flyteidl.core.Tasks.IOStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.IOStrategy buildPartial() { + flyteidl.core.Tasks.IOStrategy result = new flyteidl.core.Tasks.IOStrategy(this); + result.downloadMode_ = downloadMode_; + result.uploadMode_ = uploadMode_; + 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 flyteidl.core.Tasks.IOStrategy) { + return mergeFrom((flyteidl.core.Tasks.IOStrategy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.IOStrategy other) { + if (other == flyteidl.core.Tasks.IOStrategy.getDefaultInstance()) return this; + if (other.downloadMode_ != 0) { + setDownloadModeValue(other.getDownloadModeValue()); + } + if (other.uploadMode_ != 0) { + setUploadModeValue(other.getUploadModeValue()); + } + 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 { + flyteidl.core.Tasks.IOStrategy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.IOStrategy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int downloadMode_ = 0; + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public int getDownloadModeValue() { + return downloadMode_; + } + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public Builder setDownloadModeValue(int value) { + downloadMode_ = value; + onChanged(); + return this; + } + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.IOStrategy.DownloadMode result = flyteidl.core.Tasks.IOStrategy.DownloadMode.valueOf(downloadMode_); + return result == null ? flyteidl.core.Tasks.IOStrategy.DownloadMode.UNRECOGNIZED : result; + } + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public Builder setDownloadMode(flyteidl.core.Tasks.IOStrategy.DownloadMode value) { + if (value == null) { + throw new NullPointerException(); + } + + downloadMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public Builder clearDownloadMode() { + + downloadMode_ = 0; + onChanged(); + return this; + } + + private int uploadMode_ = 0; + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public int getUploadModeValue() { + return uploadMode_; + } + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public Builder setUploadModeValue(int value) { + uploadMode_ = value; + onChanged(); + return this; + } + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.IOStrategy.UploadMode result = flyteidl.core.Tasks.IOStrategy.UploadMode.valueOf(uploadMode_); + return result == null ? flyteidl.core.Tasks.IOStrategy.UploadMode.UNRECOGNIZED : result; + } + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public Builder setUploadMode(flyteidl.core.Tasks.IOStrategy.UploadMode value) { + if (value == null) { + throw new NullPointerException(); + } + + uploadMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public Builder clearUploadMode() { + + uploadMode_ = 0; + 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:flyteidl.core.IOStrategy) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.IOStrategy) + private static final flyteidl.core.Tasks.IOStrategy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.IOStrategy(); + } + + public static flyteidl.core.Tasks.IOStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IOStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IOStrategy(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 flyteidl.core.Tasks.IOStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DataLoadingConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.DataLoadingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
+     * 
+ * + * bool enabled = 1; + */ + boolean getEnabled(); + + /** + *
+     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+     * /var/flyte/inputs/y -> Y is a file in Binary format
+     * /var/flyte/inputs/z/... -> Note Z itself is a directory
+     * More information about the protocol - refer to docs #TODO reference docs here
+     * 
+ * + * string input_path = 2; + */ + java.lang.String getInputPath(); + /** + *
+     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+     * /var/flyte/inputs/y -> Y is a file in Binary format
+     * /var/flyte/inputs/z/... -> Note Z itself is a directory
+     * More information about the protocol - refer to docs #TODO reference docs here
+     * 
+ * + * string input_path = 2; + */ + com.google.protobuf.ByteString + getInputPathBytes(); + + /** + *
+     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+     * 
+ * + * string output_path = 3; + */ + java.lang.String getOutputPath(); + /** + *
+     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+     * 
+ * + * string output_path = 3; + */ + com.google.protobuf.ByteString + getOutputPathBytes(); + + /** + *
+     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+     * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + int getFormatValue(); + /** + *
+     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+     * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat(); + + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + boolean hasIoStrategy(); + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + flyteidl.core.Tasks.IOStrategy getIoStrategy(); + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder(); + } + /** + *
+   * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.
+   * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path
+   * Any outputs generated by the user container - within output_path are automatically uploaded.
+   * 
+ * + * Protobuf type {@code flyteidl.core.DataLoadingConfig} + */ + public static final class DataLoadingConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.DataLoadingConfig) + DataLoadingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataLoadingConfig.newBuilder() to construct. + private DataLoadingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DataLoadingConfig() { + inputPath_ = ""; + outputPath_ = ""; + format_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DataLoadingConfig( + 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 8: { + + enabled_ = input.readBool(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inputPath_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + outputPath_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + format_ = rawValue; + break; + } + case 42: { + flyteidl.core.Tasks.IOStrategy.Builder subBuilder = null; + if (ioStrategy_ != null) { + subBuilder = ioStrategy_.toBuilder(); + } + ioStrategy_ = input.readMessage(flyteidl.core.Tasks.IOStrategy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ioStrategy_); + ioStrategy_ = 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 flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.DataLoadingConfig.class, flyteidl.core.Tasks.DataLoadingConfig.Builder.class); + } + + /** + *
+     * LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. 
+     * If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.
+     * JSON and YAML do not need any protobuf definitions to read it
+     * All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)
+     * 
+ * + * Protobuf enum {@code flyteidl.core.DataLoadingConfig.LiteralMapFormat} + */ + public enum LiteralMapFormat + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html
+       * 
+ * + * JSON = 0; + */ + JSON(0), + /** + * YAML = 1; + */ + YAML(1), + /** + *
+       * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core
+       * 
+ * + * PROTO = 2; + */ + PROTO(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html
+       * 
+ * + * JSON = 0; + */ + public static final int JSON_VALUE = 0; + /** + * YAML = 1; + */ + public static final int YAML_VALUE = 1; + /** + *
+       * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core
+       * 
+ * + * PROTO = 2; + */ + public static final int PROTO_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LiteralMapFormat valueOf(int value) { + return forNumber(value); + } + + public static LiteralMapFormat forNumber(int value) { + switch (value) { + case 0: return JSON; + case 1: return YAML; + case 2: return PROTO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LiteralMapFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LiteralMapFormat findValueByNumber(int number) { + return LiteralMapFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Tasks.DataLoadingConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final LiteralMapFormat[] VALUES = values(); + + public static LiteralMapFormat 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 LiteralMapFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.DataLoadingConfig.LiteralMapFormat) + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + *
+     * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
+     * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + + public static final int INPUT_PATH_FIELD_NUMBER = 2; + private volatile java.lang.Object inputPath_; + /** + *
+     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+     * /var/flyte/inputs/y -> Y is a file in Binary format
+     * /var/flyte/inputs/z/... -> Note Z itself is a directory
+     * More information about the protocol - refer to docs #TODO reference docs here
+     * 
+ * + * string input_path = 2; + */ + public java.lang.String getInputPath() { + java.lang.Object ref = inputPath_; + 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(); + inputPath_ = s; + return s; + } + } + /** + *
+     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+     * /var/flyte/inputs/y -> Y is a file in Binary format
+     * /var/flyte/inputs/z/... -> Note Z itself is a directory
+     * More information about the protocol - refer to docs #TODO reference docs here
+     * 
+ * + * string input_path = 2; + */ + public com.google.protobuf.ByteString + getInputPathBytes() { + java.lang.Object ref = inputPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_PATH_FIELD_NUMBER = 3; + private volatile java.lang.Object outputPath_; + /** + *
+     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+     * 
+ * + * string output_path = 3; + */ + public java.lang.String getOutputPath() { + java.lang.Object ref = outputPath_; + 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(); + outputPath_ = s; + return s; + } + } + /** + *
+     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+     * 
+ * + * string output_path = 3; + */ + public com.google.protobuf.ByteString + getOutputPathBytes() { + java.lang.Object ref = outputPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORMAT_FIELD_NUMBER = 4; + private int format_; + /** + *
+     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+     * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public int getFormatValue() { + return format_; + } + /** + *
+     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+     * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat result = flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.valueOf(format_); + return result == null ? flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.UNRECOGNIZED : result; + } + + public static final int IO_STRATEGY_FIELD_NUMBER = 5; + private flyteidl.core.Tasks.IOStrategy ioStrategy_; + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public boolean hasIoStrategy() { + return ioStrategy_ != null; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategy getIoStrategy() { + return ioStrategy_ == null ? flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder() { + return getIoStrategy(); + } + + 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 (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!getInputPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputPath_); + } + if (!getOutputPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputPath_); + } + if (format_ != flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.JSON.getNumber()) { + output.writeEnum(4, format_); + } + if (ioStrategy_ != null) { + output.writeMessage(5, getIoStrategy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + if (!getInputPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputPath_); + } + if (!getOutputPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputPath_); + } + if (format_ != flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.JSON.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, format_); + } + if (ioStrategy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getIoStrategy()); + } + 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 flyteidl.core.Tasks.DataLoadingConfig)) { + return super.equals(obj); + } + flyteidl.core.Tasks.DataLoadingConfig other = (flyteidl.core.Tasks.DataLoadingConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getInputPath() + .equals(other.getInputPath())) return false; + if (!getOutputPath() + .equals(other.getOutputPath())) return false; + if (format_ != other.format_) return false; + if (hasIoStrategy() != other.hasIoStrategy()) return false; + if (hasIoStrategy()) { + if (!getIoStrategy() + .equals(other.getIoStrategy())) 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) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (37 * hash) + INPUT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getInputPath().hashCode(); + hash = (37 * hash) + OUTPUT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getOutputPath().hashCode(); + hash = (37 * hash) + FORMAT_FIELD_NUMBER; + hash = (53 * hash) + format_; + if (hasIoStrategy()) { + hash = (37 * hash) + IO_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getIoStrategy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.DataLoadingConfig 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 flyteidl.core.Tasks.DataLoadingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.DataLoadingConfig 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 flyteidl.core.Tasks.DataLoadingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.DataLoadingConfig 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(flyteidl.core.Tasks.DataLoadingConfig 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; + } + /** + *
+     * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.
+     * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path
+     * Any outputs generated by the user container - within output_path are automatically uploaded.
+     * 
+ * + * Protobuf type {@code flyteidl.core.DataLoadingConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.DataLoadingConfig) + flyteidl.core.Tasks.DataLoadingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.DataLoadingConfig.class, flyteidl.core.Tasks.DataLoadingConfig.Builder.class); + } + + // Construct using flyteidl.core.Tasks.DataLoadingConfig.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(); + enabled_ = false; + + inputPath_ = ""; + + outputPath_ = ""; + + format_ = 0; + + if (ioStrategyBuilder_ == null) { + ioStrategy_ = null; + } else { + ioStrategy_ = null; + ioStrategyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.DataLoadingConfig getDefaultInstanceForType() { + return flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.DataLoadingConfig build() { + flyteidl.core.Tasks.DataLoadingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.DataLoadingConfig buildPartial() { + flyteidl.core.Tasks.DataLoadingConfig result = new flyteidl.core.Tasks.DataLoadingConfig(this); + result.enabled_ = enabled_; + result.inputPath_ = inputPath_; + result.outputPath_ = outputPath_; + result.format_ = format_; + if (ioStrategyBuilder_ == null) { + result.ioStrategy_ = ioStrategy_; + } else { + result.ioStrategy_ = ioStrategyBuilder_.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 flyteidl.core.Tasks.DataLoadingConfig) { + return mergeFrom((flyteidl.core.Tasks.DataLoadingConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.DataLoadingConfig other) { + if (other == flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getInputPath().isEmpty()) { + inputPath_ = other.inputPath_; + onChanged(); + } + if (!other.getOutputPath().isEmpty()) { + outputPath_ = other.outputPath_; + onChanged(); + } + if (other.format_ != 0) { + setFormatValue(other.getFormatValue()); + } + if (other.hasIoStrategy()) { + mergeIoStrategy(other.getIoStrategy()); + } + 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 { + flyteidl.core.Tasks.DataLoadingConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.DataLoadingConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_ ; + /** + *
+       * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
+       * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+       * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
+       * 
+ * + * bool enabled = 1; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+       * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
+       * 
+ * + * bool enabled = 1; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object inputPath_ = ""; + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public java.lang.String getInputPath() { + java.lang.Object ref = inputPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public com.google.protobuf.ByteString + getInputPathBytes() { + java.lang.Object ref = inputPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public Builder setInputPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputPath_ = value; + onChanged(); + return this; + } + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public Builder clearInputPath() { + + inputPath_ = getDefaultInstance().getInputPath(); + onChanged(); + return this; + } + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public Builder setInputPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputPath_ = value; + onChanged(); + return this; + } + + private java.lang.Object outputPath_ = ""; + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public java.lang.String getOutputPath() { + java.lang.Object ref = outputPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public com.google.protobuf.ByteString + getOutputPathBytes() { + java.lang.Object ref = outputPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public Builder setOutputPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputPath_ = value; + onChanged(); + return this; + } + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public Builder clearOutputPath() { + + outputPath_ = getDefaultInstance().getOutputPath(); + onChanged(); + return this; + } + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public Builder setOutputPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputPath_ = value; + onChanged(); + return this; + } + + private int format_ = 0; + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public int getFormatValue() { + return format_; + } + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public Builder setFormatValue(int value) { + format_ = value; + onChanged(); + return this; + } + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat result = flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.valueOf(format_); + return result == null ? flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.UNRECOGNIZED : result; + } + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public Builder setFormat(flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat value) { + if (value == null) { + throw new NullPointerException(); + } + + format_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public Builder clearFormat() { + + format_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.IOStrategy ioStrategy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder> ioStrategyBuilder_; + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public boolean hasIoStrategy() { + return ioStrategyBuilder_ != null || ioStrategy_ != null; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategy getIoStrategy() { + if (ioStrategyBuilder_ == null) { + return ioStrategy_ == null ? flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; + } else { + return ioStrategyBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public Builder setIoStrategy(flyteidl.core.Tasks.IOStrategy value) { + if (ioStrategyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ioStrategy_ = value; + onChanged(); + } else { + ioStrategyBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public Builder setIoStrategy( + flyteidl.core.Tasks.IOStrategy.Builder builderForValue) { + if (ioStrategyBuilder_ == null) { + ioStrategy_ = builderForValue.build(); + onChanged(); + } else { + ioStrategyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public Builder mergeIoStrategy(flyteidl.core.Tasks.IOStrategy value) { + if (ioStrategyBuilder_ == null) { + if (ioStrategy_ != null) { + ioStrategy_ = + flyteidl.core.Tasks.IOStrategy.newBuilder(ioStrategy_).mergeFrom(value).buildPartial(); + } else { + ioStrategy_ = value; + } + onChanged(); + } else { + ioStrategyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public Builder clearIoStrategy() { + if (ioStrategyBuilder_ == null) { + ioStrategy_ = null; + onChanged(); + } else { + ioStrategy_ = null; + ioStrategyBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategy.Builder getIoStrategyBuilder() { + + onChanged(); + return getIoStrategyFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder() { + if (ioStrategyBuilder_ != null) { + return ioStrategyBuilder_.getMessageOrBuilder(); + } else { + return ioStrategy_ == null ? + flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; + } + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder> + getIoStrategyFieldBuilder() { + if (ioStrategyBuilder_ == null) { + ioStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder>( + getIoStrategy(), + getParentForChildren(), + isClean()); + ioStrategy_ = null; + } + return ioStrategyBuilder_; + } + @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:flyteidl.core.DataLoadingConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.DataLoadingConfig) + private static final flyteidl.core.Tasks.DataLoadingConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.DataLoadingConfig(); + } + + public static flyteidl.core.Tasks.DataLoadingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataLoadingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataLoadingConfig(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 flyteidl.core.Tasks.DataLoadingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Resources_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Resources_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_RuntimeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskTemplate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ContainerPort_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ContainerPort_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Container_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Container_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_IOStrategy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_IOStrategy_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_DataLoadingConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_DataLoadingConfig_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\031flyteidl/core/tasks.proto\022\rflyteidl.co" + + "re\032\036flyteidl/core/identifier.proto\032\035flyt" + + "eidl/core/interface.proto\032\034flyteidl/core" + + "/literals.proto\032\036google/protobuf/duratio" + + "n.proto\032\034google/protobuf/struct.proto\"\232\002" + + "\n\tResources\0228\n\010requests\030\001 \003(\0132&.flyteidl" + + ".core.Resources.ResourceEntry\0226\n\006limits\030" + + "\002 \003(\0132&.flyteidl.core.Resources.Resource" + + "Entry\032S\n\rResourceEntry\0223\n\004name\030\001 \001(\0162%.f" + + "lyteidl.core.Resources.ResourceName\022\r\n\005v" + + "alue\030\002 \001(\t\"F\n\014ResourceName\022\013\n\007UNKNOWN\020\000\022" + + "\007\n\003CPU\020\001\022\007\n\003GPU\020\002\022\n\n\006MEMORY\020\003\022\013\n\007STORAGE" + + "\020\004\"\225\001\n\017RuntimeMetadata\0228\n\004type\030\001 \001(\0162*.f" + + "lyteidl.core.RuntimeMetadata.RuntimeType" + + "\022\017\n\007version\030\002 \001(\t\022\016\n\006flavor\030\003 \001(\t\"\'\n\013Run" + + "timeType\022\t\n\005OTHER\020\000\022\r\n\tFLYTE_SDK\020\001\"\235\002\n\014T" + + "askMetadata\022\024\n\014discoverable\030\001 \001(\010\022/\n\007run" + + "time\030\002 \001(\0132\036.flyteidl.core.RuntimeMetada" + + "ta\022*\n\007timeout\030\004 \001(\0132\031.google.protobuf.Du" + + "ration\022-\n\007retries\030\005 \001(\0132\034.flyteidl.core." + + "RetryStrategy\022\031\n\021discovery_version\030\006 \001(\t" + + "\022 \n\030deprecated_error_message\030\007 \001(\t\022\027\n\rin" + + "terruptible\030\010 \001(\010H\000B\025\n\023interruptible_val" + + "ue\"\206\002\n\014TaskTemplate\022%\n\002id\030\001 \001(\0132\031.flytei" + + "dl.core.Identifier\022\014\n\004type\030\002 \001(\t\022-\n\010meta" + + "data\030\003 \001(\0132\033.flyteidl.core.TaskMetadata\022" + + "0\n\tinterface\030\004 \001(\0132\035.flyteidl.core.Typed" + + "Interface\022\'\n\006custom\030\005 \001(\0132\027.google.proto" + + "buf.Struct\022-\n\tcontainer\030\006 \001(\0132\030.flyteidl" + + ".core.ContainerH\000B\010\n\006target\"\'\n\rContainer" + + "Port\022\026\n\016container_port\030\001 \001(\r\"\241\002\n\tContain" + + "er\022\r\n\005image\030\001 \001(\t\022\017\n\007command\030\002 \003(\t\022\014\n\004ar" + + "gs\030\003 \003(\t\022+\n\tresources\030\004 \001(\0132\030.flyteidl.c" + + "ore.Resources\022(\n\003env\030\005 \003(\0132\033.flyteidl.co" + + "re.KeyValuePair\022+\n\006config\030\006 \003(\0132\033.flytei" + + "dl.core.KeyValuePair\022+\n\005ports\030\007 \003(\0132\034.fl" + + "yteidl.core.ContainerPort\0225\n\013data_config" + + "\030\t \001(\0132 .flyteidl.core.DataLoadingConfig" + + "\"\233\002\n\nIOStrategy\022=\n\rdownload_mode\030\001 \001(\0162&" + + ".flyteidl.core.IOStrategy.DownloadMode\0229" + + "\n\013upload_mode\030\002 \001(\0162$.flyteidl.core.IOSt" + + "rategy.UploadMode\"L\n\014DownloadMode\022\022\n\016DOW" + + "NLOAD_EAGER\020\000\022\023\n\017DOWNLOAD_STREAM\020\001\022\023\n\017DO" + + "_NOT_DOWNLOAD\020\002\"E\n\nUploadMode\022\022\n\016UPLOAD_" + + "ON_EXIT\020\000\022\020\n\014UPLOAD_EAGER\020\001\022\021\n\rDO_NOT_UP" + + "LOAD\020\002\"\363\001\n\021DataLoadingConfig\022\017\n\007enabled\030" + + "\001 \001(\010\022\022\n\ninput_path\030\002 \001(\t\022\023\n\013output_path" + + "\030\003 \001(\t\022A\n\006format\030\004 \001(\01621.flyteidl.core.D" + + "ataLoadingConfig.LiteralMapFormat\022.\n\013io_" + + "strategy\030\005 \001(\0132\031.flyteidl.core.IOStrateg" + + "y\"1\n\020LiteralMapFormat\022\010\n\004JSON\020\000\022\010\n\004YAML\020" + + "\001\022\t\n\005PROTO\020\002B2Z0github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_Resources_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Resources_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Resources_descriptor, + new java.lang.String[] { "Requests", "Limits", }); + internal_static_flyteidl_core_Resources_ResourceEntry_descriptor = + internal_static_flyteidl_core_Resources_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Resources_ResourceEntry_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_flyteidl_core_RuntimeMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_RuntimeMetadata_descriptor, + new java.lang.String[] { "Type", "Version", "Flavor", }); + internal_static_flyteidl_core_TaskMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskMetadata_descriptor, + new java.lang.String[] { "Discoverable", "Runtime", "Timeout", "Retries", "DiscoveryVersion", "DeprecatedErrorMessage", "Interruptible", "InterruptibleValue", }); + internal_static_flyteidl_core_TaskTemplate_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskTemplate_descriptor, + new java.lang.String[] { "Id", "Type", "Metadata", "Interface", "Custom", "Container", "Target", }); + internal_static_flyteidl_core_ContainerPort_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_ContainerPort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ContainerPort_descriptor, + new java.lang.String[] { "ContainerPort", }); + internal_static_flyteidl_core_Container_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_Container_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Container_descriptor, + new java.lang.String[] { "Image", "Command", "Args", "Resources", "Env", "Config", "Ports", "DataConfig", }); + internal_static_flyteidl_core_IOStrategy_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_IOStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_IOStrategy_descriptor, + new java.lang.String[] { "DownloadMode", "UploadMode", }); + internal_static_flyteidl_core_DataLoadingConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_DataLoadingConfig_descriptor, + new java.lang.String[] { "Enabled", "InputPath", "OutputPath", "Format", "IoStrategy", }); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Types.java b/gen/pb-java/flyteidl/core/Types.java new file mode 100644 index 000000000..63ed77fdb --- /dev/null +++ b/gen/pb-java/flyteidl/core/Types.java @@ -0,0 +1,6407 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/types.proto + +package flyteidl.core; + +public final class Types { + private Types() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Define a set of simple types.
+   * 
+ * + * Protobuf enum {@code flyteidl.core.SimpleType} + */ + public enum SimpleType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NONE = 0; + */ + NONE(0), + /** + * INTEGER = 1; + */ + INTEGER(1), + /** + * FLOAT = 2; + */ + FLOAT(2), + /** + * STRING = 3; + */ + STRING(3), + /** + * BOOLEAN = 4; + */ + BOOLEAN(4), + /** + * DATETIME = 5; + */ + DATETIME(5), + /** + * DURATION = 6; + */ + DURATION(6), + /** + * BINARY = 7; + */ + BINARY(7), + /** + * ERROR = 8; + */ + ERROR(8), + /** + * STRUCT = 9; + */ + STRUCT(9), + UNRECOGNIZED(-1), + ; + + /** + * NONE = 0; + */ + public static final int NONE_VALUE = 0; + /** + * INTEGER = 1; + */ + public static final int INTEGER_VALUE = 1; + /** + * FLOAT = 2; + */ + public static final int FLOAT_VALUE = 2; + /** + * STRING = 3; + */ + public static final int STRING_VALUE = 3; + /** + * BOOLEAN = 4; + */ + public static final int BOOLEAN_VALUE = 4; + /** + * DATETIME = 5; + */ + public static final int DATETIME_VALUE = 5; + /** + * DURATION = 6; + */ + public static final int DURATION_VALUE = 6; + /** + * BINARY = 7; + */ + public static final int BINARY_VALUE = 7; + /** + * ERROR = 8; + */ + public static final int ERROR_VALUE = 8; + /** + * STRUCT = 9; + */ + public static final int STRUCT_VALUE = 9; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SimpleType valueOf(int value) { + return forNumber(value); + } + + public static SimpleType forNumber(int value) { + switch (value) { + case 0: return NONE; + case 1: return INTEGER; + case 2: return FLOAT; + case 3: return STRING; + case 4: return BOOLEAN; + case 5: return DATETIME; + case 6: return DURATION; + case 7: return BINARY; + case 8: return ERROR; + case 9: return STRUCT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SimpleType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SimpleType findValueByNumber(int number) { + return SimpleType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Types.getDescriptor().getEnumTypes().get(0); + } + + private static final SimpleType[] VALUES = values(); + + public static SimpleType 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 SimpleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.SimpleType) + } + + public interface SchemaTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + java.util.List + getColumnsList(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + int getColumnsCount(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + java.util.List + getColumnsOrBuilderList(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( + int index); + } + /** + *
+   * Defines schema columns and types to strongly type-validate schemas interoperability.
+   * 
+ * + * Protobuf type {@code flyteidl.core.SchemaType} + */ + public static final class SchemaType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType) + SchemaTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use SchemaType.newBuilder() to construct. + private SchemaType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SchemaType() { + columns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SchemaType( + 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 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + columns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + columns_.add( + input.readMessage(flyteidl.core.Types.SchemaType.SchemaColumn.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)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); + } + + public interface SchemaColumnOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType.SchemaColumn) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + int getTypeValue(); + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType(); + } + /** + * Protobuf type {@code flyteidl.core.SchemaType.SchemaColumn} + */ + public static final class SchemaColumn extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType.SchemaColumn) + SchemaColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use SchemaColumn.newBuilder() to construct. + private SchemaColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SchemaColumn() { + name_ = ""; + type_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SchemaColumn( + 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(); + + type_ = rawValue; + 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 flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} + */ + public enum SchemaColumnType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * INTEGER = 0; + */ + INTEGER(0), + /** + * FLOAT = 1; + */ + FLOAT(1), + /** + * STRING = 2; + */ + STRING(2), + /** + * BOOLEAN = 3; + */ + BOOLEAN(3), + /** + * DATETIME = 4; + */ + DATETIME(4), + /** + * DURATION = 5; + */ + DURATION(5), + UNRECOGNIZED(-1), + ; + + /** + * INTEGER = 0; + */ + public static final int INTEGER_VALUE = 0; + /** + * FLOAT = 1; + */ + public static final int FLOAT_VALUE = 1; + /** + * STRING = 2; + */ + public static final int STRING_VALUE = 2; + /** + * BOOLEAN = 3; + */ + public static final int BOOLEAN_VALUE = 3; + /** + * DATETIME = 4; + */ + public static final int DATETIME_VALUE = 4; + /** + * DURATION = 5; + */ + public static final int DURATION_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SchemaColumnType valueOf(int value) { + return forNumber(value); + } + + public static SchemaColumnType forNumber(int value) { + switch (value) { + case 0: return INTEGER; + case 1: return FLOAT; + case 2: return STRING; + case 3: return BOOLEAN; + case 4: return DATETIME; + case 5: return DURATION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SchemaColumnType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SchemaColumnType findValueByNumber(int number) { + return SchemaColumnType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Types.SchemaType.SchemaColumn.getDescriptor().getEnumTypes().get(0); + } + + private static final SchemaColumnType[] VALUES = values(); + + public static SchemaColumnType 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 SchemaColumnType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + 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 TYPE_FIELD_NUMBER = 2; + private int type_; + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); + return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { + output.writeEnum(2, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); + } + 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 flyteidl.core.Types.SchemaType.SchemaColumn)) { + return super.equals(obj); + } + flyteidl.core.Types.SchemaType.SchemaColumn other = (flyteidl.core.Types.SchemaType.SchemaColumn) obj; + + if (!getName() + .equals(other.getName())) return false; + if (type_ != other.type_) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn 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 flyteidl.core.Types.SchemaType.SchemaColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn 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 flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn 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(flyteidl.core.Types.SchemaType.SchemaColumn 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 flyteidl.core.SchemaType.SchemaColumn} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType.SchemaColumn) + flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); + } + + // Construct using flyteidl.core.Types.SchemaType.SchemaColumn.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_ = ""; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { + return flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType.SchemaColumn build() { + flyteidl.core.Types.SchemaType.SchemaColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType.SchemaColumn buildPartial() { + flyteidl.core.Types.SchemaType.SchemaColumn result = new flyteidl.core.Types.SchemaType.SchemaColumn(this); + result.name_ = name_; + result.type_ = type_; + 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 flyteidl.core.Types.SchemaType.SchemaColumn) { + return mergeFrom((flyteidl.core.Types.SchemaType.SchemaColumn)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.SchemaType.SchemaColumn other) { + if (other == flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + 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 { + flyteidl.core.Types.SchemaType.SchemaColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.SchemaType.SchemaColumn) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); + return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public Builder setType(flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public Builder clearType() { + + type_ = 0; + 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:flyteidl.core.SchemaType.SchemaColumn) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType.SchemaColumn) + private static final flyteidl.core.Types.SchemaType.SchemaColumn DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType.SchemaColumn(); + } + + public static flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SchemaColumn(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 flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int COLUMNS_FIELD_NUMBER = 3; + private java.util.List columns_; + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List getColumnsList() { + return columns_; + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List + getColumnsOrBuilderList() { + return columns_; + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public int getColumnsCount() { + return columns_.size(); + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { + return columns_.get(index); + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( + int index) { + return columns_.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 < columns_.size(); i++) { + output.writeMessage(3, columns_.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 < columns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, columns_.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 flyteidl.core.Types.SchemaType)) { + return super.equals(obj); + } + flyteidl.core.Types.SchemaType other = (flyteidl.core.Types.SchemaType) obj; + + if (!getColumnsList() + .equals(other.getColumnsList())) 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 (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.SchemaType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType 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 flyteidl.core.Types.SchemaType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType 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 flyteidl.core.Types.SchemaType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType 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(flyteidl.core.Types.SchemaType 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; + } + /** + *
+     * Defines schema columns and types to strongly type-validate schemas interoperability.
+     * 
+ * + * Protobuf type {@code flyteidl.core.SchemaType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType) + flyteidl.core.Types.SchemaTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); + } + + // Construct using flyteidl.core.Types.SchemaType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getColumnsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + columnsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType getDefaultInstanceForType() { + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType build() { + flyteidl.core.Types.SchemaType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType buildPartial() { + flyteidl.core.Types.SchemaType result = new flyteidl.core.Types.SchemaType(this); + int from_bitField0_ = bitField0_; + if (columnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columns_ = columns_; + } else { + result.columns_ = columnsBuilder_.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 flyteidl.core.Types.SchemaType) { + return mergeFrom((flyteidl.core.Types.SchemaType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.SchemaType other) { + if (other == flyteidl.core.Types.SchemaType.getDefaultInstance()) return this; + if (columnsBuilder_ == null) { + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + } else { + if (!other.columns_.isEmpty()) { + if (columnsBuilder_.isEmpty()) { + columnsBuilder_.dispose(); + columnsBuilder_ = null; + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + columnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColumnsFieldBuilder() : null; + } else { + columnsBuilder_.addAllMessages(other.columns_); + } + } + } + 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 { + flyteidl.core.Types.SchemaType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.SchemaType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List columns_ = + java.util.Collections.emptyList(); + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columns_ = new java.util.ArrayList(columns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> columnsBuilder_; + + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List getColumnsList() { + if (columnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columns_); + } else { + return columnsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public int getColumnsCount() { + if (columnsBuilder_ == null) { + return columns_.size(); + } else { + return columnsBuilder_.getCount(); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder setColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + onChanged(); + } else { + columnsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder setColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.set(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns(flyteidl.core.Types.SchemaType.SchemaColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + } else { + columnsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(index, value); + onChanged(); + } else { + columnsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns( + flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addAllColumns( + java.lang.Iterable values) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columns_); + onChanged(); + } else { + columnsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder clearColumns() { + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + columnsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder removeColumns(int index) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.remove(index); + onChanged(); + } else { + columnsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.Builder getColumnsBuilder( + int index) { + return getColumnsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( + int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); } else { + return columnsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List + getColumnsOrBuilderList() { + if (columnsBuilder_ != null) { + return columnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columns_); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder() { + return getColumnsFieldBuilder().addBuilder( + flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder( + int index) { + return getColumnsFieldBuilder().addBuilder( + index, flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List + getColumnsBuilderList() { + return getColumnsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> + getColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder>( + columns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + columns_ = null; + } + return columnsBuilder_; + } + @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:flyteidl.core.SchemaType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType) + private static final flyteidl.core.Types.SchemaType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType(); + } + + public static flyteidl.core.Types.SchemaType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SchemaType(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 flyteidl.core.Types.SchemaType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlobTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + java.lang.String getFormat(); + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + com.google.protobuf.ByteString + getFormatBytes(); + + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + int getDimensionalityValue(); + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality(); + } + /** + *
+   * Defines type behavior for blob objects
+   * 
+ * + * Protobuf type {@code flyteidl.core.BlobType} + */ + public static final class BlobType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BlobType) + BlobTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use BlobType.newBuilder() to construct. + private BlobType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlobType() { + format_ = ""; + dimensionality_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BlobType( + 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(); + + format_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + dimensionality_ = rawValue; + 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 flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.BlobType.BlobDimensionality} + */ + public enum BlobDimensionality + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SINGLE = 0; + */ + SINGLE(0), + /** + * MULTIPART = 1; + */ + MULTIPART(1), + UNRECOGNIZED(-1), + ; + + /** + * SINGLE = 0; + */ + public static final int SINGLE_VALUE = 0; + /** + * MULTIPART = 1; + */ + public static final int MULTIPART_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BlobDimensionality valueOf(int value) { + return forNumber(value); + } + + public static BlobDimensionality forNumber(int value) { + switch (value) { + case 0: return SINGLE; + case 1: return MULTIPART; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + BlobDimensionality> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlobDimensionality findValueByNumber(int number) { + return BlobDimensionality.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Types.BlobType.getDescriptor().getEnumTypes().get(0); + } + + private static final BlobDimensionality[] VALUES = values(); + + public static BlobDimensionality 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 BlobDimensionality(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.BlobType.BlobDimensionality) + } + + public static final int FORMAT_FIELD_NUMBER = 1; + private volatile java.lang.Object format_; + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + public java.lang.String getFormat() { + java.lang.Object ref = format_; + 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(); + format_ = s; + return s; + } + } + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + public com.google.protobuf.ByteString + getFormatBytes() { + java.lang.Object ref = format_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + format_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIMENSIONALITY_FIELD_NUMBER = 2; + private int dimensionality_; + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public int getDimensionalityValue() { + return dimensionality_; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { + @SuppressWarnings("deprecation") + flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); + return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; + } + + 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 (!getFormatBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, format_); + } + if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { + output.writeEnum(2, dimensionality_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFormatBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, format_); + } + if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, dimensionality_); + } + 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 flyteidl.core.Types.BlobType)) { + return super.equals(obj); + } + flyteidl.core.Types.BlobType other = (flyteidl.core.Types.BlobType) obj; + + if (!getFormat() + .equals(other.getFormat())) return false; + if (dimensionality_ != other.dimensionality_) 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) + FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getFormat().hashCode(); + hash = (37 * hash) + DIMENSIONALITY_FIELD_NUMBER; + hash = (53 * hash) + dimensionality_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.BlobType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.BlobType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.BlobType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.BlobType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.BlobType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.BlobType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.BlobType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.BlobType 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 flyteidl.core.Types.BlobType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.BlobType 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 flyteidl.core.Types.BlobType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.BlobType 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(flyteidl.core.Types.BlobType 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; + } + /** + *
+     * Defines type behavior for blob objects
+     * 
+ * + * Protobuf type {@code flyteidl.core.BlobType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobType) + flyteidl.core.Types.BlobTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); + } + + // Construct using flyteidl.core.Types.BlobType.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(); + format_ = ""; + + dimensionality_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.BlobType getDefaultInstanceForType() { + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.BlobType build() { + flyteidl.core.Types.BlobType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.BlobType buildPartial() { + flyteidl.core.Types.BlobType result = new flyteidl.core.Types.BlobType(this); + result.format_ = format_; + result.dimensionality_ = dimensionality_; + 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 flyteidl.core.Types.BlobType) { + return mergeFrom((flyteidl.core.Types.BlobType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.BlobType other) { + if (other == flyteidl.core.Types.BlobType.getDefaultInstance()) return this; + if (!other.getFormat().isEmpty()) { + format_ = other.format_; + onChanged(); + } + if (other.dimensionality_ != 0) { + setDimensionalityValue(other.getDimensionalityValue()); + } + 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 { + flyteidl.core.Types.BlobType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.BlobType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object format_ = ""; + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public java.lang.String getFormat() { + java.lang.Object ref = format_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + format_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public com.google.protobuf.ByteString + getFormatBytes() { + java.lang.Object ref = format_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + format_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public Builder setFormat( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + format_ = value; + onChanged(); + return this; + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public Builder clearFormat() { + + format_ = getDefaultInstance().getFormat(); + onChanged(); + return this; + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public Builder setFormatBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + format_ = value; + onChanged(); + return this; + } + + private int dimensionality_ = 0; + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public int getDimensionalityValue() { + return dimensionality_; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public Builder setDimensionalityValue(int value) { + dimensionality_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { + @SuppressWarnings("deprecation") + flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); + return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public Builder setDimensionality(flyteidl.core.Types.BlobType.BlobDimensionality value) { + if (value == null) { + throw new NullPointerException(); + } + + dimensionality_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public Builder clearDimensionality() { + + dimensionality_ = 0; + 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:flyteidl.core.BlobType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BlobType) + private static final flyteidl.core.Types.BlobType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.BlobType(); + } + + public static flyteidl.core.Types.BlobType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlobType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlobType(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 flyteidl.core.Types.BlobType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + int getSimpleValue(); + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + flyteidl.core.Types.SimpleType getSimple(); + + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + boolean hasSchema(); + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + flyteidl.core.Types.SchemaType getSchema(); + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder(); + + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + boolean hasCollectionType(); + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + flyteidl.core.Types.LiteralType getCollectionType(); + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder(); + + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + boolean hasMapValueType(); + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + flyteidl.core.Types.LiteralType getMapValueType(); + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder(); + + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + boolean hasBlob(); + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + flyteidl.core.Types.BlobType getBlob(); + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder(); + + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + boolean hasMetadata(); + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + com.google.protobuf.Struct getMetadata(); + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + + public flyteidl.core.Types.LiteralType.TypeCase getTypeCase(); + } + /** + *
+   * Defines a strong type to allow type checking between interfaces.
+   * 
+ * + * Protobuf type {@code flyteidl.core.LiteralType} + */ + public static final class LiteralType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralType) + LiteralTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralType.newBuilder() to construct. + private LiteralType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralType() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralType( + 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 8: { + int rawValue = input.readEnum(); + typeCase_ = 1; + type_ = rawValue; + break; + } + case 18: { + flyteidl.core.Types.SchemaType.Builder subBuilder = null; + if (typeCase_ == 2) { + subBuilder = ((flyteidl.core.Types.SchemaType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.SchemaType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 2; + break; + } + case 26: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (typeCase_ == 3) { + subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 3; + break; + } + case 34: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 4; + break; + } + case 42: { + flyteidl.core.Types.BlobType.Builder subBuilder = null; + if (typeCase_ == 5) { + subBuilder = ((flyteidl.core.Types.BlobType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.BlobType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 5; + break; + } + case 50: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = 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 flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); + } + + private int typeCase_ = 0; + private java.lang.Object type_; + public enum TypeCase + implements com.google.protobuf.Internal.EnumLite { + SIMPLE(1), + SCHEMA(2), + COLLECTION_TYPE(3), + MAP_VALUE_TYPE(4), + BLOB(5), + TYPE_NOT_SET(0); + private final int value; + private TypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 1: return SIMPLE; + case 2: return SCHEMA; + case 3: return COLLECTION_TYPE; + case 4: return MAP_VALUE_TYPE; + case 5: return BLOB; + case 0: return TYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public static final int SIMPLE_FIELD_NUMBER = 1; + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public int getSimpleValue() { + if (typeCase_ == 1) { + return (java.lang.Integer) type_; + } + return 0; + } + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public flyteidl.core.Types.SimpleType getSimple() { + if (typeCase_ == 1) { + @SuppressWarnings("deprecation") + flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( + (java.lang.Integer) type_); + return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; + } + return flyteidl.core.Types.SimpleType.NONE; + } + + public static final int SCHEMA_FIELD_NUMBER = 2; + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public boolean hasSchema() { + return typeCase_ == 2; + } + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaType getSchema() { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + + public static final int COLLECTION_TYPE_FIELD_NUMBER = 3; + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public boolean hasCollectionType() { + return typeCase_ == 3; + } + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralType getCollectionType() { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + + public static final int MAP_VALUE_TYPE_FIELD_NUMBER = 4; + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public boolean hasMapValueType() { + return typeCase_ == 4; + } + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralType getMapValueType() { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + + public static final int BLOB_FIELD_NUMBER = 5; + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public boolean hasBlob() { + return typeCase_ == 5; + } + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobType getBlob() { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + + public static final int METADATA_FIELD_NUMBER = 6; + private com.google.protobuf.Struct metadata_; + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + 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 (typeCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) type_)); + } + if (typeCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Types.SchemaType) type_); + } + if (typeCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 5) { + output.writeMessage(5, (flyteidl.core.Types.BlobType) type_); + } + if (metadata_ != null) { + output.writeMessage(6, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, ((java.lang.Integer) type_)); + } + if (typeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Types.SchemaType) type_); + } + if (typeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.core.Types.BlobType) type_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getMetadata()); + } + 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 flyteidl.core.Types.LiteralType)) { + return super.equals(obj); + } + flyteidl.core.Types.LiteralType other = (flyteidl.core.Types.LiteralType) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 1: + if (getSimpleValue() + != other.getSimpleValue()) return false; + break; + case 2: + if (!getSchema() + .equals(other.getSchema())) return false; + break; + case 3: + if (!getCollectionType() + .equals(other.getCollectionType())) return false; + break; + case 4: + if (!getMapValueType() + .equals(other.getMapValueType())) return false; + break; + case 5: + if (!getBlob() + .equals(other.getBlob())) 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(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + switch (typeCase_) { + case 1: + hash = (37 * hash) + SIMPLE_FIELD_NUMBER; + hash = (53 * hash) + getSimpleValue(); + break; + case 2: + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + break; + case 3: + hash = (37 * hash) + COLLECTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getCollectionType().hashCode(); + break; + case 4: + hash = (37 * hash) + MAP_VALUE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMapValueType().hashCode(); + break; + case 5: + hash = (37 * hash) + BLOB_FIELD_NUMBER; + hash = (53 * hash) + getBlob().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.LiteralType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.LiteralType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.LiteralType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.LiteralType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.LiteralType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.LiteralType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.LiteralType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.LiteralType 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 flyteidl.core.Types.LiteralType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.LiteralType 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 flyteidl.core.Types.LiteralType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.LiteralType 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(flyteidl.core.Types.LiteralType 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; + } + /** + *
+     * Defines a strong type to allow type checking between interfaces.
+     * 
+ * + * Protobuf type {@code flyteidl.core.LiteralType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralType) + flyteidl.core.Types.LiteralTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); + } + + // Construct using flyteidl.core.Types.LiteralType.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 (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.LiteralType getDefaultInstanceForType() { + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.LiteralType build() { + flyteidl.core.Types.LiteralType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.LiteralType buildPartial() { + flyteidl.core.Types.LiteralType result = new flyteidl.core.Types.LiteralType(this); + if (typeCase_ == 1) { + result.type_ = type_; + } + if (typeCase_ == 2) { + if (schemaBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = schemaBuilder_.build(); + } + } + if (typeCase_ == 3) { + if (collectionTypeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = collectionTypeBuilder_.build(); + } + } + if (typeCase_ == 4) { + if (mapValueTypeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = mapValueTypeBuilder_.build(); + } + } + if (typeCase_ == 5) { + if (blobBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = blobBuilder_.build(); + } + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.typeCase_ = typeCase_; + 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 flyteidl.core.Types.LiteralType) { + return mergeFrom((flyteidl.core.Types.LiteralType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.LiteralType other) { + if (other == flyteidl.core.Types.LiteralType.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + switch (other.getTypeCase()) { + case SIMPLE: { + setSimpleValue(other.getSimpleValue()); + break; + } + case SCHEMA: { + mergeSchema(other.getSchema()); + break; + } + case COLLECTION_TYPE: { + mergeCollectionType(other.getCollectionType()); + break; + } + case MAP_VALUE_TYPE: { + mergeMapValueType(other.getMapValueType()); + break; + } + case BLOB: { + mergeBlob(other.getBlob()); + break; + } + case TYPE_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 { + flyteidl.core.Types.LiteralType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.LiteralType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int typeCase_ = 0; + private java.lang.Object type_; + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public int getSimpleValue() { + if (typeCase_ == 1) { + return ((java.lang.Integer) type_).intValue(); + } + return 0; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public Builder setSimpleValue(int value) { + typeCase_ = 1; + type_ = value; + onChanged(); + return this; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public flyteidl.core.Types.SimpleType getSimple() { + if (typeCase_ == 1) { + @SuppressWarnings("deprecation") + flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( + (java.lang.Integer) type_); + return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; + } + return flyteidl.core.Types.SimpleType.NONE; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public Builder setSimple(flyteidl.core.Types.SimpleType value) { + if (value == null) { + throw new NullPointerException(); + } + typeCase_ = 1; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public Builder clearSimple() { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> schemaBuilder_; + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public boolean hasSchema() { + return typeCase_ == 2; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaType getSchema() { + if (schemaBuilder_ == null) { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return schemaBuilder_.getMessage(); + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder setSchema(flyteidl.core.Types.SchemaType value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder setSchema( + flyteidl.core.Types.SchemaType.Builder builderForValue) { + if (schemaBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder mergeSchema(flyteidl.core.Types.SchemaType value) { + if (schemaBuilder_ == null) { + if (typeCase_ == 2 && + type_ != flyteidl.core.Types.SchemaType.getDefaultInstance()) { + type_ = flyteidl.core.Types.SchemaType.newBuilder((flyteidl.core.Types.SchemaType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + schemaBuilder_.mergeFrom(value); + } + schemaBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + schemaBuilder_.clear(); + } + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaType.Builder getSchemaBuilder() { + return getSchemaFieldBuilder().getBuilder(); + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { + if ((typeCase_ == 2) && (schemaBuilder_ != null)) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( + (flyteidl.core.Types.SchemaType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged();; + return schemaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> collectionTypeBuilder_; + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public boolean hasCollectionType() { + return typeCase_ == 3; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralType getCollectionType() { + if (collectionTypeBuilder_ == null) { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } else { + if (typeCase_ == 3) { + return collectionTypeBuilder_.getMessage(); + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder setCollectionType(flyteidl.core.Types.LiteralType value) { + if (collectionTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + collectionTypeBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder setCollectionType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (collectionTypeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + collectionTypeBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 3; + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder mergeCollectionType(flyteidl.core.Types.LiteralType value) { + if (collectionTypeBuilder_ == null) { + if (typeCase_ == 3 && + type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { + type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 3) { + collectionTypeBuilder_.mergeFrom(value); + } + collectionTypeBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder clearCollectionType() { + if (collectionTypeBuilder_ == null) { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + } + collectionTypeBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralType.Builder getCollectionTypeBuilder() { + return getCollectionTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { + if ((typeCase_ == 3) && (collectionTypeBuilder_ != null)) { + return collectionTypeBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getCollectionTypeFieldBuilder() { + if (collectionTypeBuilder_ == null) { + if (!(typeCase_ == 3)) { + type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + collectionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + (flyteidl.core.Types.LiteralType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 3; + onChanged();; + return collectionTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> mapValueTypeBuilder_; + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public boolean hasMapValueType() { + return typeCase_ == 4; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralType getMapValueType() { + if (mapValueTypeBuilder_ == null) { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } else { + if (typeCase_ == 4) { + return mapValueTypeBuilder_.getMessage(); + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder setMapValueType(flyteidl.core.Types.LiteralType value) { + if (mapValueTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + mapValueTypeBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder setMapValueType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (mapValueTypeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + mapValueTypeBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 4; + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder mergeMapValueType(flyteidl.core.Types.LiteralType value) { + if (mapValueTypeBuilder_ == null) { + if (typeCase_ == 4 && + type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { + type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 4) { + mapValueTypeBuilder_.mergeFrom(value); + } + mapValueTypeBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder clearMapValueType() { + if (mapValueTypeBuilder_ == null) { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + } + mapValueTypeBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralType.Builder getMapValueTypeBuilder() { + return getMapValueTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { + if ((typeCase_ == 4) && (mapValueTypeBuilder_ != null)) { + return mapValueTypeBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getMapValueTypeFieldBuilder() { + if (mapValueTypeBuilder_ == null) { + if (!(typeCase_ == 4)) { + type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + mapValueTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + (flyteidl.core.Types.LiteralType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 4; + onChanged();; + return mapValueTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> blobBuilder_; + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public boolean hasBlob() { + return typeCase_ == 5; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobType getBlob() { + if (blobBuilder_ == null) { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } else { + if (typeCase_ == 5) { + return blobBuilder_.getMessage(); + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder setBlob(flyteidl.core.Types.BlobType value) { + if (blobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + blobBuilder_.setMessage(value); + } + typeCase_ = 5; + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder setBlob( + flyteidl.core.Types.BlobType.Builder builderForValue) { + if (blobBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + blobBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 5; + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder mergeBlob(flyteidl.core.Types.BlobType value) { + if (blobBuilder_ == null) { + if (typeCase_ == 5 && + type_ != flyteidl.core.Types.BlobType.getDefaultInstance()) { + type_ = flyteidl.core.Types.BlobType.newBuilder((flyteidl.core.Types.BlobType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 5) { + blobBuilder_.mergeFrom(value); + } + blobBuilder_.setMessage(value); + } + typeCase_ = 5; + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder clearBlob() { + if (blobBuilder_ == null) { + if (typeCase_ == 5) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 5) { + typeCase_ = 0; + type_ = null; + } + blobBuilder_.clear(); + } + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobType.Builder getBlobBuilder() { + return getBlobFieldBuilder().getBuilder(); + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { + if ((typeCase_ == 5) && (blobBuilder_ != null)) { + return blobBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> + getBlobFieldBuilder() { + if (blobBuilder_ == null) { + if (!(typeCase_ == 5)) { + type_ = flyteidl.core.Types.BlobType.getDefaultInstance(); + } + blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( + (flyteidl.core.Types.BlobType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 5; + onChanged();; + return blobBuilder_; + } + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_; + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder setMetadata( + com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @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:flyteidl.core.LiteralType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralType) + private static final flyteidl.core.Types.LiteralType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.LiteralType(); + } + + public static flyteidl.core.Types.LiteralType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiteralType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralType(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 flyteidl.core.Types.LiteralType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OutputReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.OutputReference) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + java.lang.String getNodeId(); + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + com.google.protobuf.ByteString + getNodeIdBytes(); + + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + java.lang.String getVar(); + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + com.google.protobuf.ByteString + getVarBytes(); + } + /** + *
+   * A reference to an output produced by a node. The type can be retrieved -and validated- from
+   * the underlying interface of the node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.OutputReference} + */ + public static final class OutputReference extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.OutputReference) + OutputReferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use OutputReference.newBuilder() to construct. + private OutputReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OutputReference() { + nodeId_ = ""; + var_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OutputReference( + 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(); + + nodeId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + var_ = 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 flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object nodeId_; + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + 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(); + nodeId_ = s; + return s; + } + } + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VAR_FIELD_NUMBER = 2; + private volatile java.lang.Object var_; + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + 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(); + var_ = s; + return s; + } + } + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = 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 (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); + } + if (!getVarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, var_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); + } + if (!getVarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, var_); + } + 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 flyteidl.core.Types.OutputReference)) { + return super.equals(obj); + } + flyteidl.core.Types.OutputReference other = (flyteidl.core.Types.OutputReference) obj; + + if (!getNodeId() + .equals(other.getNodeId())) return false; + if (!getVar() + .equals(other.getVar())) 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) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.OutputReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.OutputReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.OutputReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.OutputReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.OutputReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.OutputReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.OutputReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.OutputReference 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 flyteidl.core.Types.OutputReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.OutputReference 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 flyteidl.core.Types.OutputReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.OutputReference 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(flyteidl.core.Types.OutputReference 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 reference to an output produced by a node. The type can be retrieved -and validated- from
+     * the underlying interface of the node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.OutputReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.OutputReference) + flyteidl.core.Types.OutputReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); + } + + // Construct using flyteidl.core.Types.OutputReference.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(); + nodeId_ = ""; + + var_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.OutputReference getDefaultInstanceForType() { + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.OutputReference build() { + flyteidl.core.Types.OutputReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.OutputReference buildPartial() { + flyteidl.core.Types.OutputReference result = new flyteidl.core.Types.OutputReference(this); + result.nodeId_ = nodeId_; + result.var_ = var_; + 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 flyteidl.core.Types.OutputReference) { + return mergeFrom((flyteidl.core.Types.OutputReference)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.OutputReference other) { + if (other == flyteidl.core.Types.OutputReference.getDefaultInstance()) return this; + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); + } + if (!other.getVar().isEmpty()) { + var_ = other.var_; + 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 { + flyteidl.core.Types.OutputReference parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.OutputReference) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object nodeId_ = ""; + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public Builder setNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); + return this; + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public Builder clearNodeId() { + + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); + return this; + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeId_ = value; + onChanged(); + return this; + } + + private java.lang.Object var_ = ""; + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + var_ = value; + onChanged(); + return this; + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public Builder clearVar() { + + var_ = getDefaultInstance().getVar(); + onChanged(); + return this; + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + var_ = 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:flyteidl.core.OutputReference) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.OutputReference) + private static final flyteidl.core.Types.OutputReference DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.OutputReference(); + } + + public static flyteidl.core.Types.OutputReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputReference(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 flyteidl.core.Types.OutputReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Error) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + java.lang.String getFailedNodeId(); + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + com.google.protobuf.ByteString + getFailedNodeIdBytes(); + + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + *
+   * Represents an error thrown from a node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Error} + */ + public static final class Error extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Error) + ErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use Error.newBuilder() to construct. + private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Error() { + failedNodeId_ = ""; + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Error( + 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(); + + failedNodeId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = 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 flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); + } + + public static final int FAILED_NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object failedNodeId_; + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + public java.lang.String getFailedNodeId() { + java.lang.Object ref = failedNodeId_; + 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(); + failedNodeId_ = s; + return s; + } + } + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + public com.google.protobuf.ByteString + getFailedNodeIdBytes() { + java.lang.Object ref = failedNodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failedNodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = 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 (!getFailedNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, failedNodeId_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFailedNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, failedNodeId_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + 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 flyteidl.core.Types.Error)) { + return super.equals(obj); + } + flyteidl.core.Types.Error other = (flyteidl.core.Types.Error) obj; + + if (!getFailedNodeId() + .equals(other.getFailedNodeId())) return false; + if (!getMessage() + .equals(other.getMessage())) 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) + FAILED_NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getFailedNodeId().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.Error parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.Error parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.Error parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.Error parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.Error parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.Error parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.Error parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.Error 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 flyteidl.core.Types.Error parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.Error 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 flyteidl.core.Types.Error parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.Error 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(flyteidl.core.Types.Error 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; + } + /** + *
+     * Represents an error thrown from a node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Error} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Error) + flyteidl.core.Types.ErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); + } + + // Construct using flyteidl.core.Types.Error.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(); + failedNodeId_ = ""; + + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.Error getDefaultInstanceForType() { + return flyteidl.core.Types.Error.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.Error build() { + flyteidl.core.Types.Error result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.Error buildPartial() { + flyteidl.core.Types.Error result = new flyteidl.core.Types.Error(this); + result.failedNodeId_ = failedNodeId_; + result.message_ = message_; + 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 flyteidl.core.Types.Error) { + return mergeFrom((flyteidl.core.Types.Error)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.Error other) { + if (other == flyteidl.core.Types.Error.getDefaultInstance()) return this; + if (!other.getFailedNodeId().isEmpty()) { + failedNodeId_ = other.failedNodeId_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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 { + flyteidl.core.Types.Error parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.Error) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object failedNodeId_ = ""; + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public java.lang.String getFailedNodeId() { + java.lang.Object ref = failedNodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failedNodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public com.google.protobuf.ByteString + getFailedNodeIdBytes() { + java.lang.Object ref = failedNodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failedNodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public Builder setFailedNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + failedNodeId_ = value; + onChanged(); + return this; + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public Builder clearFailedNodeId() { + + failedNodeId_ = getDefaultInstance().getFailedNodeId(); + onChanged(); + return this; + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public Builder setFailedNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + failedNodeId_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = 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:flyteidl.core.Error) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Error) + private static final flyteidl.core.Types.Error DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.Error(); + } + + public static flyteidl.core.Types.Error getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Error(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 flyteidl.core.Types.Error getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_SchemaType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_SchemaType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BlobType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BlobType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_OutputReference_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_OutputReference_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Error_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Error_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\031flyteidl/core/types.proto\022\rflyteidl.co" + + "re\032\034google/protobuf/struct.proto\"\214\002\n\nSch" + + "emaType\0227\n\007columns\030\003 \003(\0132&.flyteidl.core" + + ".SchemaType.SchemaColumn\032\304\001\n\014SchemaColum" + + "n\022\014\n\004name\030\001 \001(\t\022E\n\004type\030\002 \001(\01627.flyteidl" + + ".core.SchemaType.SchemaColumn.SchemaColu" + + "mnType\"_\n\020SchemaColumnType\022\013\n\007INTEGER\020\000\022" + + "\t\n\005FLOAT\020\001\022\n\n\006STRING\020\002\022\013\n\007BOOLEAN\020\003\022\014\n\010D" + + "ATETIME\020\004\022\014\n\010DURATION\020\005\"\217\001\n\010BlobType\022\016\n\006" + + "format\030\001 \001(\t\022B\n\016dimensionality\030\002 \001(\0162*.f" + + "lyteidl.core.BlobType.BlobDimensionality" + + "\"/\n\022BlobDimensionality\022\n\n\006SINGLE\020\000\022\r\n\tMU" + + "LTIPART\020\001\"\260\002\n\013LiteralType\022+\n\006simple\030\001 \001(" + + "\0162\031.flyteidl.core.SimpleTypeH\000\022+\n\006schema" + + "\030\002 \001(\0132\031.flyteidl.core.SchemaTypeH\000\0225\n\017c" + + "ollection_type\030\003 \001(\0132\032.flyteidl.core.Lit" + + "eralTypeH\000\0224\n\016map_value_type\030\004 \001(\0132\032.fly" + + "teidl.core.LiteralTypeH\000\022\'\n\004blob\030\005 \001(\0132\027" + + ".flyteidl.core.BlobTypeH\000\022)\n\010metadata\030\006 " + + "\001(\0132\027.google.protobuf.StructB\006\n\004type\"/\n\017" + + "OutputReference\022\017\n\007node_id\030\001 \001(\t\022\013\n\003var\030" + + "\002 \001(\t\"0\n\005Error\022\026\n\016failed_node_id\030\001 \001(\t\022\017" + + "\n\007message\030\002 \001(\t*\206\001\n\nSimpleType\022\010\n\004NONE\020\000" + + "\022\013\n\007INTEGER\020\001\022\t\n\005FLOAT\020\002\022\n\n\006STRING\020\003\022\013\n\007" + + "BOOLEAN\020\004\022\014\n\010DATETIME\020\005\022\014\n\010DURATION\020\006\022\n\n" + + "\006BINARY\020\007\022\t\n\005ERROR\020\010\022\n\n\006STRUCT\020\tB2Z0gith" + + "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" + + "coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_SchemaType_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_SchemaType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_SchemaType_descriptor, + new java.lang.String[] { "Columns", }); + internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor = + internal_static_flyteidl_core_SchemaType_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor, + new java.lang.String[] { "Name", "Type", }); + internal_static_flyteidl_core_BlobType_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_BlobType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BlobType_descriptor, + new java.lang.String[] { "Format", "Dimensionality", }); + internal_static_flyteidl_core_LiteralType_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_LiteralType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralType_descriptor, + new java.lang.String[] { "Simple", "Schema", "CollectionType", "MapValueType", "Blob", "Metadata", "Type", }); + internal_static_flyteidl_core_OutputReference_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_OutputReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_OutputReference_descriptor, + new java.lang.String[] { "NodeId", "Var", }); + internal_static_flyteidl_core_Error_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_Error_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Error_descriptor, + new java.lang.String[] { "FailedNodeId", "Message", }); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Workflow.java b/gen/pb-java/flyteidl/core/Workflow.java new file mode 100644 index 000000000..e0eed4bcd --- /dev/null +++ b/gen/pb-java/flyteidl/core/Workflow.java @@ -0,0 +1,14708 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow.proto + +package flyteidl.core; + +public final class Workflow { + private Workflow() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface IfBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.IfBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + boolean hasCondition(); + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + flyteidl.core.Condition.BooleanExpression getCondition(); + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder(); + + /** + * .flyteidl.core.Node then_node = 2; + */ + boolean hasThenNode(); + /** + * .flyteidl.core.Node then_node = 2; + */ + flyteidl.core.Workflow.Node getThenNode(); + /** + * .flyteidl.core.Node then_node = 2; + */ + flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder(); + } + /** + *
+   * Defines a condition and the execution unit that should be executed if the condition is satisfied.
+   * 
+ * + * Protobuf type {@code flyteidl.core.IfBlock} + */ + public static final class IfBlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.IfBlock) + IfBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use IfBlock.newBuilder() to construct. + private IfBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IfBlock() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IfBlock( + 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: { + flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; + if (condition_ != null) { + subBuilder = condition_.toBuilder(); + } + condition_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(condition_); + condition_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Workflow.Node.Builder subBuilder = null; + if (thenNode_ != null) { + subBuilder = thenNode_.toBuilder(); + } + thenNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(thenNode_); + thenNode_ = 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 flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); + } + + public static final int CONDITION_FIELD_NUMBER = 1; + private flyteidl.core.Condition.BooleanExpression condition_; + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public boolean hasCondition() { + return condition_ != null; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpression getCondition() { + return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { + return getCondition(); + } + + public static final int THEN_NODE_FIELD_NUMBER = 2; + private flyteidl.core.Workflow.Node thenNode_; + /** + * .flyteidl.core.Node then_node = 2; + */ + public boolean hasThenNode() { + return thenNode_ != null; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.Node getThenNode() { + return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { + return getThenNode(); + } + + 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 (thenNode_ != null) { + output.writeMessage(2, getThenNode()); + } + 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 (thenNode_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getThenNode()); + } + 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 flyteidl.core.Workflow.IfBlock)) { + return super.equals(obj); + } + flyteidl.core.Workflow.IfBlock other = (flyteidl.core.Workflow.IfBlock) obj; + + if (hasCondition() != other.hasCondition()) return false; + if (hasCondition()) { + if (!getCondition() + .equals(other.getCondition())) return false; + } + if (hasThenNode() != other.hasThenNode()) return false; + if (hasThenNode()) { + if (!getThenNode() + .equals(other.getThenNode())) 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 (hasThenNode()) { + hash = (37 * hash) + THEN_NODE_FIELD_NUMBER; + hash = (53 * hash) + getThenNode().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.IfBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfBlock 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 flyteidl.core.Workflow.IfBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfBlock 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 flyteidl.core.Workflow.IfBlock parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfBlock 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(flyteidl.core.Workflow.IfBlock 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; + } + /** + *
+     * Defines a condition and the execution unit that should be executed if the condition is satisfied.
+     * 
+ * + * Protobuf type {@code flyteidl.core.IfBlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.IfBlock) + flyteidl.core.Workflow.IfBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); + } + + // Construct using flyteidl.core.Workflow.IfBlock.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 (thenNodeBuilder_ == null) { + thenNode_ = null; + } else { + thenNode_ = null; + thenNodeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfBlock getDefaultInstanceForType() { + return flyteidl.core.Workflow.IfBlock.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.IfBlock build() { + flyteidl.core.Workflow.IfBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfBlock buildPartial() { + flyteidl.core.Workflow.IfBlock result = new flyteidl.core.Workflow.IfBlock(this); + if (conditionBuilder_ == null) { + result.condition_ = condition_; + } else { + result.condition_ = conditionBuilder_.build(); + } + if (thenNodeBuilder_ == null) { + result.thenNode_ = thenNode_; + } else { + result.thenNode_ = thenNodeBuilder_.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 flyteidl.core.Workflow.IfBlock) { + return mergeFrom((flyteidl.core.Workflow.IfBlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.IfBlock other) { + if (other == flyteidl.core.Workflow.IfBlock.getDefaultInstance()) return this; + if (other.hasCondition()) { + mergeCondition(other.getCondition()); + } + if (other.hasThenNode()) { + mergeThenNode(other.getThenNode()); + } + 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 { + flyteidl.core.Workflow.IfBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.IfBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Condition.BooleanExpression condition_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> conditionBuilder_; + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public boolean hasCondition() { + return conditionBuilder_ != null || condition_ != null; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpression getCondition() { + if (conditionBuilder_ == null) { + return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; + } else { + return conditionBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder setCondition(flyteidl.core.Condition.BooleanExpression value) { + if (conditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + onChanged(); + } else { + conditionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder setCondition( + flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { + if (conditionBuilder_ == null) { + condition_ = builderForValue.build(); + onChanged(); + } else { + conditionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder mergeCondition(flyteidl.core.Condition.BooleanExpression value) { + if (conditionBuilder_ == null) { + if (condition_ != null) { + condition_ = + flyteidl.core.Condition.BooleanExpression.newBuilder(condition_).mergeFrom(value).buildPartial(); + } else { + condition_ = value; + } + onChanged(); + } else { + conditionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder clearCondition() { + if (conditionBuilder_ == null) { + condition_ = null; + onChanged(); + } else { + condition_ = null; + conditionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpression.Builder getConditionBuilder() { + + onChanged(); + return getConditionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { + if (conditionBuilder_ != null) { + return conditionBuilder_.getMessageOrBuilder(); + } else { + return condition_ == null ? + flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; + } + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> + getConditionFieldBuilder() { + if (conditionBuilder_ == null) { + conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( + getCondition(), + getParentForChildren(), + isClean()); + condition_ = null; + } + return conditionBuilder_; + } + + private flyteidl.core.Workflow.Node thenNode_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> thenNodeBuilder_; + /** + * .flyteidl.core.Node then_node = 2; + */ + public boolean hasThenNode() { + return thenNodeBuilder_ != null || thenNode_ != null; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.Node getThenNode() { + if (thenNodeBuilder_ == null) { + return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; + } else { + return thenNodeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder setThenNode(flyteidl.core.Workflow.Node value) { + if (thenNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + thenNode_ = value; + onChanged(); + } else { + thenNodeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder setThenNode( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (thenNodeBuilder_ == null) { + thenNode_ = builderForValue.build(); + onChanged(); + } else { + thenNodeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder mergeThenNode(flyteidl.core.Workflow.Node value) { + if (thenNodeBuilder_ == null) { + if (thenNode_ != null) { + thenNode_ = + flyteidl.core.Workflow.Node.newBuilder(thenNode_).mergeFrom(value).buildPartial(); + } else { + thenNode_ = value; + } + onChanged(); + } else { + thenNodeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder clearThenNode() { + if (thenNodeBuilder_ == null) { + thenNode_ = null; + onChanged(); + } else { + thenNode_ = null; + thenNodeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.Node.Builder getThenNodeBuilder() { + + onChanged(); + return getThenNodeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { + if (thenNodeBuilder_ != null) { + return thenNodeBuilder_.getMessageOrBuilder(); + } else { + return thenNode_ == null ? + flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; + } + } + /** + * .flyteidl.core.Node then_node = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getThenNodeFieldBuilder() { + if (thenNodeBuilder_ == null) { + thenNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + getThenNode(), + getParentForChildren(), + isClean()); + thenNode_ = null; + } + return thenNodeBuilder_; + } + @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:flyteidl.core.IfBlock) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.IfBlock) + private static final flyteidl.core.Workflow.IfBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfBlock(); + } + + public static flyteidl.core.Workflow.IfBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IfBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IfBlock(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 flyteidl.core.Workflow.IfBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IfElseBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.IfElseBlock) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + boolean hasCase(); + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + flyteidl.core.Workflow.IfBlock getCase(); + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder(); + + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + java.util.List + getOtherList(); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + flyteidl.core.Workflow.IfBlock getOther(int index); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + int getOtherCount(); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + java.util.List + getOtherOrBuilderList(); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( + int index); + + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + boolean hasElseNode(); + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + flyteidl.core.Workflow.Node getElseNode(); + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder(); + + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + boolean hasError(); + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + flyteidl.core.Types.Error getError(); + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); + + public flyteidl.core.Workflow.IfElseBlock.DefaultCase getDefaultCase(); + } + /** + *
+   * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
+   * If no conditions were satisfied, the else_node or the error will execute.
+   * 
+ * + * Protobuf type {@code flyteidl.core.IfElseBlock} + */ + public static final class IfElseBlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.IfElseBlock) + IfElseBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use IfElseBlock.newBuilder() to construct. + private IfElseBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IfElseBlock() { + other_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IfElseBlock( + 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: { + flyteidl.core.Workflow.IfBlock.Builder subBuilder = null; + if (case_ != null) { + subBuilder = case_.toBuilder(); + } + case_ = input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(case_); + case_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + other_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + other_.add( + input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry)); + break; + } + case 26: { + flyteidl.core.Workflow.Node.Builder subBuilder = null; + if (defaultCase_ == 3) { + subBuilder = ((flyteidl.core.Workflow.Node) default_).toBuilder(); + } + default_ = + input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.Node) default_); + default_ = subBuilder.buildPartial(); + } + defaultCase_ = 3; + break; + } + case 34: { + flyteidl.core.Types.Error.Builder subBuilder = null; + if (defaultCase_ == 4) { + subBuilder = ((flyteidl.core.Types.Error) default_).toBuilder(); + } + default_ = + input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.Error) default_); + default_ = subBuilder.buildPartial(); + } + defaultCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + other_ = java.util.Collections.unmodifiableList(other_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); + } + + private int bitField0_; + private int defaultCase_ = 0; + private java.lang.Object default_; + public enum DefaultCase + implements com.google.protobuf.Internal.EnumLite { + ELSE_NODE(3), + ERROR(4), + DEFAULT_NOT_SET(0); + private final int value; + private DefaultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DefaultCase valueOf(int value) { + return forNumber(value); + } + + public static DefaultCase forNumber(int value) { + switch (value) { + case 3: return ELSE_NODE; + case 4: return ERROR; + case 0: return DEFAULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DefaultCase + getDefaultCase() { + return DefaultCase.forNumber( + defaultCase_); + } + + public static final int CASE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.IfBlock case_; + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public boolean hasCase() { + return case_ != null; + } + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlock getCase() { + return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; + } + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { + return getCase(); + } + + public static final int OTHER_FIELD_NUMBER = 2; + private java.util.List other_; + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List getOtherList() { + return other_; + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List + getOtherOrBuilderList() { + return other_; + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public int getOtherCount() { + return other_.size(); + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock getOther(int index) { + return other_.get(index); + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( + int index) { + return other_.get(index); + } + + public static final int ELSE_NODE_FIELD_NUMBER = 3; + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public boolean hasElseNode() { + return defaultCase_ == 3; + } + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.Node getElseNode() { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 4; + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + public boolean hasError() { + return defaultCase_ == 4; + } + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.Error getError() { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (case_ != null) { + output.writeMessage(1, getCase()); + } + for (int i = 0; i < other_.size(); i++) { + output.writeMessage(2, other_.get(i)); + } + if (defaultCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Workflow.Node) default_); + } + if (defaultCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Types.Error) default_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (case_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCase()); + } + for (int i = 0; i < other_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, other_.get(i)); + } + if (defaultCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Workflow.Node) default_); + } + if (defaultCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Types.Error) default_); + } + 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 flyteidl.core.Workflow.IfElseBlock)) { + return super.equals(obj); + } + flyteidl.core.Workflow.IfElseBlock other = (flyteidl.core.Workflow.IfElseBlock) obj; + + if (hasCase() != other.hasCase()) return false; + if (hasCase()) { + if (!getCase() + .equals(other.getCase())) return false; + } + if (!getOtherList() + .equals(other.getOtherList())) return false; + if (!getDefaultCase().equals(other.getDefaultCase())) return false; + switch (defaultCase_) { + case 3: + if (!getElseNode() + .equals(other.getElseNode())) return false; + break; + case 4: + if (!getError() + .equals(other.getError())) 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(); + if (hasCase()) { + hash = (37 * hash) + CASE_FIELD_NUMBER; + hash = (53 * hash) + getCase().hashCode(); + } + if (getOtherCount() > 0) { + hash = (37 * hash) + OTHER_FIELD_NUMBER; + hash = (53 * hash) + getOtherList().hashCode(); + } + switch (defaultCase_) { + case 3: + hash = (37 * hash) + ELSE_NODE_FIELD_NUMBER; + hash = (53 * hash) + getElseNode().hashCode(); + break; + case 4: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfElseBlock 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 flyteidl.core.Workflow.IfElseBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfElseBlock 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 flyteidl.core.Workflow.IfElseBlock parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfElseBlock 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(flyteidl.core.Workflow.IfElseBlock 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; + } + /** + *
+     * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
+     * If no conditions were satisfied, the else_node or the error will execute.
+     * 
+ * + * Protobuf type {@code flyteidl.core.IfElseBlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.IfElseBlock) + flyteidl.core.Workflow.IfElseBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); + } + + // Construct using flyteidl.core.Workflow.IfElseBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOtherFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (caseBuilder_ == null) { + case_ = null; + } else { + case_ = null; + caseBuilder_ = null; + } + if (otherBuilder_ == null) { + other_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + otherBuilder_.clear(); + } + defaultCase_ = 0; + default_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfElseBlock getDefaultInstanceForType() { + return flyteidl.core.Workflow.IfElseBlock.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.IfElseBlock build() { + flyteidl.core.Workflow.IfElseBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfElseBlock buildPartial() { + flyteidl.core.Workflow.IfElseBlock result = new flyteidl.core.Workflow.IfElseBlock(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (caseBuilder_ == null) { + result.case_ = case_; + } else { + result.case_ = caseBuilder_.build(); + } + if (otherBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + other_ = java.util.Collections.unmodifiableList(other_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.other_ = other_; + } else { + result.other_ = otherBuilder_.build(); + } + if (defaultCase_ == 3) { + if (elseNodeBuilder_ == null) { + result.default_ = default_; + } else { + result.default_ = elseNodeBuilder_.build(); + } + } + if (defaultCase_ == 4) { + if (errorBuilder_ == null) { + result.default_ = default_; + } else { + result.default_ = errorBuilder_.build(); + } + } + result.bitField0_ = to_bitField0_; + result.defaultCase_ = defaultCase_; + 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 flyteidl.core.Workflow.IfElseBlock) { + return mergeFrom((flyteidl.core.Workflow.IfElseBlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.IfElseBlock other) { + if (other == flyteidl.core.Workflow.IfElseBlock.getDefaultInstance()) return this; + if (other.hasCase()) { + mergeCase(other.getCase()); + } + if (otherBuilder_ == null) { + if (!other.other_.isEmpty()) { + if (other_.isEmpty()) { + other_ = other.other_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureOtherIsMutable(); + other_.addAll(other.other_); + } + onChanged(); + } + } else { + if (!other.other_.isEmpty()) { + if (otherBuilder_.isEmpty()) { + otherBuilder_.dispose(); + otherBuilder_ = null; + other_ = other.other_; + bitField0_ = (bitField0_ & ~0x00000002); + otherBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOtherFieldBuilder() : null; + } else { + otherBuilder_.addAllMessages(other.other_); + } + } + } + switch (other.getDefaultCase()) { + case ELSE_NODE: { + mergeElseNode(other.getElseNode()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case DEFAULT_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 { + flyteidl.core.Workflow.IfElseBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.IfElseBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int defaultCase_ = 0; + private java.lang.Object default_; + public DefaultCase + getDefaultCase() { + return DefaultCase.forNumber( + defaultCase_); + } + + public Builder clearDefault() { + defaultCase_ = 0; + default_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private flyteidl.core.Workflow.IfBlock case_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> caseBuilder_; + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public boolean hasCase() { + return caseBuilder_ != null || case_ != null; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlock getCase() { + if (caseBuilder_ == null) { + return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; + } else { + return caseBuilder_.getMessage(); + } + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder setCase(flyteidl.core.Workflow.IfBlock value) { + if (caseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + case_ = value; + onChanged(); + } else { + caseBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder setCase( + flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (caseBuilder_ == null) { + case_ = builderForValue.build(); + onChanged(); + } else { + caseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder mergeCase(flyteidl.core.Workflow.IfBlock value) { + if (caseBuilder_ == null) { + if (case_ != null) { + case_ = + flyteidl.core.Workflow.IfBlock.newBuilder(case_).mergeFrom(value).buildPartial(); + } else { + case_ = value; + } + onChanged(); + } else { + caseBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder clearCase() { + if (caseBuilder_ == null) { + case_ = null; + onChanged(); + } else { + case_ = null; + caseBuilder_ = null; + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlock.Builder getCaseBuilder() { + + onChanged(); + return getCaseFieldBuilder().getBuilder(); + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { + if (caseBuilder_ != null) { + return caseBuilder_.getMessageOrBuilder(); + } else { + return case_ == null ? + flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; + } + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> + getCaseFieldBuilder() { + if (caseBuilder_ == null) { + caseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( + getCase(), + getParentForChildren(), + isClean()); + case_ = null; + } + return caseBuilder_; + } + + private java.util.List other_ = + java.util.Collections.emptyList(); + private void ensureOtherIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + other_ = new java.util.ArrayList(other_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> otherBuilder_; + + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List getOtherList() { + if (otherBuilder_ == null) { + return java.util.Collections.unmodifiableList(other_); + } else { + return otherBuilder_.getMessageList(); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public int getOtherCount() { + if (otherBuilder_ == null) { + return other_.size(); + } else { + return otherBuilder_.getCount(); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock getOther(int index) { + if (otherBuilder_ == null) { + return other_.get(index); + } else { + return otherBuilder_.getMessage(index); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder setOther( + int index, flyteidl.core.Workflow.IfBlock value) { + if (otherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOtherIsMutable(); + other_.set(index, value); + onChanged(); + } else { + otherBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder setOther( + int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.set(index, builderForValue.build()); + onChanged(); + } else { + otherBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther(flyteidl.core.Workflow.IfBlock value) { + if (otherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOtherIsMutable(); + other_.add(value); + onChanged(); + } else { + otherBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther( + int index, flyteidl.core.Workflow.IfBlock value) { + if (otherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOtherIsMutable(); + other_.add(index, value); + onChanged(); + } else { + otherBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther( + flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.add(builderForValue.build()); + onChanged(); + } else { + otherBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther( + int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.add(index, builderForValue.build()); + onChanged(); + } else { + otherBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addAllOther( + java.lang.Iterable values) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, other_); + onChanged(); + } else { + otherBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder clearOther() { + if (otherBuilder_ == null) { + other_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + otherBuilder_.clear(); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder removeOther(int index) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.remove(index); + onChanged(); + } else { + otherBuilder_.remove(index); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock.Builder getOtherBuilder( + int index) { + return getOtherFieldBuilder().getBuilder(index); + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( + int index) { + if (otherBuilder_ == null) { + return other_.get(index); } else { + return otherBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List + getOtherOrBuilderList() { + if (otherBuilder_ != null) { + return otherBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(other_); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder() { + return getOtherFieldBuilder().addBuilder( + flyteidl.core.Workflow.IfBlock.getDefaultInstance()); + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder( + int index) { + return getOtherFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.IfBlock.getDefaultInstance()); + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List + getOtherBuilderList() { + return getOtherFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> + getOtherFieldBuilder() { + if (otherBuilder_ == null) { + otherBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( + other_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + other_ = null; + } + return otherBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> elseNodeBuilder_; + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public boolean hasElseNode() { + return defaultCase_ == 3; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.Node getElseNode() { + if (elseNodeBuilder_ == null) { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } else { + if (defaultCase_ == 3) { + return elseNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder setElseNode(flyteidl.core.Workflow.Node value) { + if (elseNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + default_ = value; + onChanged(); + } else { + elseNodeBuilder_.setMessage(value); + } + defaultCase_ = 3; + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder setElseNode( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (elseNodeBuilder_ == null) { + default_ = builderForValue.build(); + onChanged(); + } else { + elseNodeBuilder_.setMessage(builderForValue.build()); + } + defaultCase_ = 3; + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder mergeElseNode(flyteidl.core.Workflow.Node value) { + if (elseNodeBuilder_ == null) { + if (defaultCase_ == 3 && + default_ != flyteidl.core.Workflow.Node.getDefaultInstance()) { + default_ = flyteidl.core.Workflow.Node.newBuilder((flyteidl.core.Workflow.Node) default_) + .mergeFrom(value).buildPartial(); + } else { + default_ = value; + } + onChanged(); + } else { + if (defaultCase_ == 3) { + elseNodeBuilder_.mergeFrom(value); + } + elseNodeBuilder_.setMessage(value); + } + defaultCase_ = 3; + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder clearElseNode() { + if (elseNodeBuilder_ == null) { + if (defaultCase_ == 3) { + defaultCase_ = 0; + default_ = null; + onChanged(); + } + } else { + if (defaultCase_ == 3) { + defaultCase_ = 0; + default_ = null; + } + elseNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.Node.Builder getElseNodeBuilder() { + return getElseNodeFieldBuilder().getBuilder(); + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { + if ((defaultCase_ == 3) && (elseNodeBuilder_ != null)) { + return elseNodeBuilder_.getMessageOrBuilder(); + } else { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getElseNodeFieldBuilder() { + if (elseNodeBuilder_ == null) { + if (!(defaultCase_ == 3)) { + default_ = flyteidl.core.Workflow.Node.getDefaultInstance(); + } + elseNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + (flyteidl.core.Workflow.Node) default_, + getParentForChildren(), + isClean()); + default_ = null; + } + defaultCase_ = 3; + onChanged();; + return elseNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public boolean hasError() { + return defaultCase_ == 4; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.Error getError() { + if (errorBuilder_ == null) { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } else { + if (defaultCase_ == 4) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder setError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + default_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + defaultCase_ = 4; + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder setError( + flyteidl.core.Types.Error.Builder builderForValue) { + if (errorBuilder_ == null) { + default_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + defaultCase_ = 4; + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder mergeError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (defaultCase_ == 4 && + default_ != flyteidl.core.Types.Error.getDefaultInstance()) { + default_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) default_) + .mergeFrom(value).buildPartial(); + } else { + default_ = value; + } + onChanged(); + } else { + if (defaultCase_ == 4) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + defaultCase_ = 4; + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (defaultCase_ == 4) { + defaultCase_ = 0; + default_ = null; + onChanged(); + } + } else { + if (defaultCase_ == 4) { + defaultCase_ = 0; + default_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.Error.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if ((defaultCase_ == 4) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(defaultCase_ == 4)) { + default_ = flyteidl.core.Types.Error.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( + (flyteidl.core.Types.Error) default_, + getParentForChildren(), + isClean()); + default_ = null; + } + defaultCase_ = 4; + onChanged();; + return errorBuilder_; + } + @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:flyteidl.core.IfElseBlock) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.IfElseBlock) + private static final flyteidl.core.Workflow.IfElseBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfElseBlock(); + } + + public static flyteidl.core.Workflow.IfElseBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IfElseBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IfElseBlock(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 flyteidl.core.Workflow.IfElseBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BranchNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BranchNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + boolean hasIfElse(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + flyteidl.core.Workflow.IfElseBlock getIfElse(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder(); + } + /** + *
+   * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
+   * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives).
+   * 
+ * + * Protobuf type {@code flyteidl.core.BranchNode} + */ + public static final class BranchNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BranchNode) + BranchNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use BranchNode.newBuilder() to construct. + private BranchNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BranchNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BranchNode( + 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: { + flyteidl.core.Workflow.IfElseBlock.Builder subBuilder = null; + if (ifElse_ != null) { + subBuilder = ifElse_.toBuilder(); + } + ifElse_ = input.readMessage(flyteidl.core.Workflow.IfElseBlock.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ifElse_); + ifElse_ = 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 flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); + } + + public static final int IF_ELSE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.IfElseBlock ifElse_; + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public boolean hasIfElse() { + return ifElse_ != null; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlock getIfElse() { + return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { + return getIfElse(); + } + + 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 (ifElse_ != null) { + output.writeMessage(1, getIfElse()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ifElse_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIfElse()); + } + 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 flyteidl.core.Workflow.BranchNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.BranchNode other = (flyteidl.core.Workflow.BranchNode) obj; + + if (hasIfElse() != other.hasIfElse()) return false; + if (hasIfElse()) { + if (!getIfElse() + .equals(other.getIfElse())) 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 (hasIfElse()) { + hash = (37 * hash) + IF_ELSE_FIELD_NUMBER; + hash = (53 * hash) + getIfElse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.BranchNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.BranchNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.BranchNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.BranchNode 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 flyteidl.core.Workflow.BranchNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.BranchNode 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 flyteidl.core.Workflow.BranchNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.BranchNode 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(flyteidl.core.Workflow.BranchNode 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; + } + /** + *
+     * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
+     * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives).
+     * 
+ * + * Protobuf type {@code flyteidl.core.BranchNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BranchNode) + flyteidl.core.Workflow.BranchNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.BranchNode.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 (ifElseBuilder_ == null) { + ifElse_ = null; + } else { + ifElse_ = null; + ifElseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.BranchNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.BranchNode build() { + flyteidl.core.Workflow.BranchNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.BranchNode buildPartial() { + flyteidl.core.Workflow.BranchNode result = new flyteidl.core.Workflow.BranchNode(this); + if (ifElseBuilder_ == null) { + result.ifElse_ = ifElse_; + } else { + result.ifElse_ = ifElseBuilder_.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 flyteidl.core.Workflow.BranchNode) { + return mergeFrom((flyteidl.core.Workflow.BranchNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.BranchNode other) { + if (other == flyteidl.core.Workflow.BranchNode.getDefaultInstance()) return this; + if (other.hasIfElse()) { + mergeIfElse(other.getIfElse()); + } + 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 { + flyteidl.core.Workflow.BranchNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.BranchNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Workflow.IfElseBlock ifElse_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> ifElseBuilder_; + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public boolean hasIfElse() { + return ifElseBuilder_ != null || ifElse_ != null; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlock getIfElse() { + if (ifElseBuilder_ == null) { + return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; + } else { + return ifElseBuilder_.getMessage(); + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder setIfElse(flyteidl.core.Workflow.IfElseBlock value) { + if (ifElseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ifElse_ = value; + onChanged(); + } else { + ifElseBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder setIfElse( + flyteidl.core.Workflow.IfElseBlock.Builder builderForValue) { + if (ifElseBuilder_ == null) { + ifElse_ = builderForValue.build(); + onChanged(); + } else { + ifElseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder mergeIfElse(flyteidl.core.Workflow.IfElseBlock value) { + if (ifElseBuilder_ == null) { + if (ifElse_ != null) { + ifElse_ = + flyteidl.core.Workflow.IfElseBlock.newBuilder(ifElse_).mergeFrom(value).buildPartial(); + } else { + ifElse_ = value; + } + onChanged(); + } else { + ifElseBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder clearIfElse() { + if (ifElseBuilder_ == null) { + ifElse_ = null; + onChanged(); + } else { + ifElse_ = null; + ifElseBuilder_ = null; + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlock.Builder getIfElseBuilder() { + + onChanged(); + return getIfElseFieldBuilder().getBuilder(); + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { + if (ifElseBuilder_ != null) { + return ifElseBuilder_.getMessageOrBuilder(); + } else { + return ifElse_ == null ? + flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> + getIfElseFieldBuilder() { + if (ifElseBuilder_ == null) { + ifElseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder>( + getIfElse(), + getParentForChildren(), + isClean()); + ifElse_ = null; + } + return ifElseBuilder_; + } + @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:flyteidl.core.BranchNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BranchNode) + private static final flyteidl.core.Workflow.BranchNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.BranchNode(); + } + + public static flyteidl.core.Workflow.BranchNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BranchNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BranchNode(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 flyteidl.core.Workflow.BranchNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + boolean hasReferenceId(); + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getReferenceId(); + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder(); + + public flyteidl.core.Workflow.TaskNode.ReferenceCase getReferenceCase(); + } + /** + *
+   * Refers to the task that the Node is to execute.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskNode} + */ + public static final class TaskNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskNode) + TaskNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskNode.newBuilder() to construct. + private TaskNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskNode( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (referenceCase_ == 1) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); + } + reference_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); + reference_ = subBuilder.buildPartial(); + } + referenceCase_ = 1; + 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 flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); + } + + private int referenceCase_ = 0; + private java.lang.Object reference_; + public enum ReferenceCase + implements com.google.protobuf.Internal.EnumLite { + REFERENCE_ID(1), + REFERENCE_NOT_SET(0); + private final int value; + private ReferenceCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReferenceCase valueOf(int value) { + return forNumber(value); + } + + public static ReferenceCase forNumber(int value) { + switch (value) { + case 1: return REFERENCE_ID; + case 0: return REFERENCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public static final int REFERENCE_ID_FIELD_NUMBER = 1; + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public boolean hasReferenceId() { + return referenceCase_ == 1; + } + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (referenceCase_ == 1) { + output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (referenceCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + 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 flyteidl.core.Workflow.TaskNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.TaskNode other = (flyteidl.core.Workflow.TaskNode) obj; + + if (!getReferenceCase().equals(other.getReferenceCase())) return false; + switch (referenceCase_) { + case 1: + if (!getReferenceId() + .equals(other.getReferenceId())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (referenceCase_) { + case 1: + hash = (37 * hash) + REFERENCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getReferenceId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.TaskNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNode 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 flyteidl.core.Workflow.TaskNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNode 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 flyteidl.core.Workflow.TaskNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNode 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(flyteidl.core.Workflow.TaskNode 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; + } + /** + *
+     * Refers to the task that the Node is to execute.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskNode) + flyteidl.core.Workflow.TaskNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.TaskNode.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(); + referenceCase_ = 0; + reference_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNode build() { + flyteidl.core.Workflow.TaskNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNode buildPartial() { + flyteidl.core.Workflow.TaskNode result = new flyteidl.core.Workflow.TaskNode(this); + if (referenceCase_ == 1) { + if (referenceIdBuilder_ == null) { + result.reference_ = reference_; + } else { + result.reference_ = referenceIdBuilder_.build(); + } + } + result.referenceCase_ = referenceCase_; + 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 flyteidl.core.Workflow.TaskNode) { + return mergeFrom((flyteidl.core.Workflow.TaskNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.TaskNode other) { + if (other == flyteidl.core.Workflow.TaskNode.getDefaultInstance()) return this; + switch (other.getReferenceCase()) { + case REFERENCE_ID: { + mergeReferenceId(other.getReferenceId()); + break; + } + case REFERENCE_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 { + flyteidl.core.Workflow.TaskNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.TaskNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int referenceCase_ = 0; + private java.lang.Object reference_; + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public Builder clearReference() { + referenceCase_ = 0; + reference_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> referenceIdBuilder_; + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public boolean hasReferenceId() { + return referenceCase_ == 1; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { + if (referenceIdBuilder_ == null) { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } else { + if (referenceCase_ == 1) { + return referenceIdBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder setReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (referenceIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + referenceIdBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder setReferenceId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (referenceIdBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + referenceIdBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder mergeReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (referenceIdBuilder_ == null) { + if (referenceCase_ == 1 && + reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) + .mergeFrom(value).buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 1) { + referenceIdBuilder_.mergeFrom(value); + } + referenceIdBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder clearReferenceId() { + if (referenceIdBuilder_ == null) { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + } + referenceIdBuilder_.clear(); + } + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getReferenceIdBuilder() { + return getReferenceIdFieldBuilder().getBuilder(); + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { + if ((referenceCase_ == 1) && (referenceIdBuilder_ != null)) { + return referenceIdBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getReferenceIdFieldBuilder() { + if (referenceIdBuilder_ == null) { + if (!(referenceCase_ == 1)) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + referenceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.Identifier) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 1; + onChanged();; + return referenceIdBuilder_; + } + @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:flyteidl.core.TaskNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNode) + private static final flyteidl.core.Workflow.TaskNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.TaskNode(); + } + + public static flyteidl.core.Workflow.TaskNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskNode(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 flyteidl.core.Workflow.TaskNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + boolean hasLaunchplanRef(); + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef(); + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder(); + + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + boolean hasSubWorkflowRef(); + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef(); + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder(); + + public flyteidl.core.Workflow.WorkflowNode.ReferenceCase getReferenceCase(); + } + /** + *
+   * Refers to a the workflow the node is to execute.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowNode} + */ + public static final class WorkflowNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowNode) + WorkflowNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowNode.newBuilder() to construct. + private WorkflowNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowNode( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (referenceCase_ == 1) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); + } + reference_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); + reference_ = subBuilder.buildPartial(); + } + referenceCase_ = 1; + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (referenceCase_ == 2) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); + } + reference_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); + reference_ = subBuilder.buildPartial(); + } + referenceCase_ = 2; + 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 flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); + } + + private int referenceCase_ = 0; + private java.lang.Object reference_; + public enum ReferenceCase + implements com.google.protobuf.Internal.EnumLite { + LAUNCHPLAN_REF(1), + SUB_WORKFLOW_REF(2), + REFERENCE_NOT_SET(0); + private final int value; + private ReferenceCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReferenceCase valueOf(int value) { + return forNumber(value); + } + + public static ReferenceCase forNumber(int value) { + switch (value) { + case 1: return LAUNCHPLAN_REF; + case 2: return SUB_WORKFLOW_REF; + case 0: return REFERENCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public static final int LAUNCHPLAN_REF_FIELD_NUMBER = 1; + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public boolean hasLaunchplanRef() { + return referenceCase_ == 1; + } + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + public static final int SUB_WORKFLOW_REF_FIELD_NUMBER = 2; + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public boolean hasSubWorkflowRef() { + return referenceCase_ == 2; + } + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (referenceCase_ == 1) { + output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + if (referenceCase_ == 2) { + output.writeMessage(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (referenceCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + if (referenceCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + 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 flyteidl.core.Workflow.WorkflowNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowNode other = (flyteidl.core.Workflow.WorkflowNode) obj; + + if (!getReferenceCase().equals(other.getReferenceCase())) return false; + switch (referenceCase_) { + case 1: + if (!getLaunchplanRef() + .equals(other.getLaunchplanRef())) return false; + break; + case 2: + if (!getSubWorkflowRef() + .equals(other.getSubWorkflowRef())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (referenceCase_) { + case 1: + hash = (37 * hash) + LAUNCHPLAN_REF_FIELD_NUMBER; + hash = (53 * hash) + getLaunchplanRef().hashCode(); + break; + case 2: + hash = (37 * hash) + SUB_WORKFLOW_REF_FIELD_NUMBER; + hash = (53 * hash) + getSubWorkflowRef().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowNode 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 flyteidl.core.Workflow.WorkflowNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowNode 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 flyteidl.core.Workflow.WorkflowNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowNode 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(flyteidl.core.Workflow.WorkflowNode 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; + } + /** + *
+     * Refers to a the workflow the node is to execute.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowNode) + flyteidl.core.Workflow.WorkflowNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowNode.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(); + referenceCase_ = 0; + reference_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowNode build() { + flyteidl.core.Workflow.WorkflowNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowNode buildPartial() { + flyteidl.core.Workflow.WorkflowNode result = new flyteidl.core.Workflow.WorkflowNode(this); + if (referenceCase_ == 1) { + if (launchplanRefBuilder_ == null) { + result.reference_ = reference_; + } else { + result.reference_ = launchplanRefBuilder_.build(); + } + } + if (referenceCase_ == 2) { + if (subWorkflowRefBuilder_ == null) { + result.reference_ = reference_; + } else { + result.reference_ = subWorkflowRefBuilder_.build(); + } + } + result.referenceCase_ = referenceCase_; + 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 flyteidl.core.Workflow.WorkflowNode) { + return mergeFrom((flyteidl.core.Workflow.WorkflowNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowNode other) { + if (other == flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) return this; + switch (other.getReferenceCase()) { + case LAUNCHPLAN_REF: { + mergeLaunchplanRef(other.getLaunchplanRef()); + break; + } + case SUB_WORKFLOW_REF: { + mergeSubWorkflowRef(other.getSubWorkflowRef()); + break; + } + case REFERENCE_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 { + flyteidl.core.Workflow.WorkflowNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int referenceCase_ = 0; + private java.lang.Object reference_; + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public Builder clearReference() { + referenceCase_ = 0; + reference_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchplanRefBuilder_; + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public boolean hasLaunchplanRef() { + return referenceCase_ == 1; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { + if (launchplanRefBuilder_ == null) { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } else { + if (referenceCase_ == 1) { + return launchplanRefBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder setLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchplanRefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + launchplanRefBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder setLaunchplanRef( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (launchplanRefBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + launchplanRefBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder mergeLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchplanRefBuilder_ == null) { + if (referenceCase_ == 1 && + reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) + .mergeFrom(value).buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 1) { + launchplanRefBuilder_.mergeFrom(value); + } + launchplanRefBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder clearLaunchplanRef() { + if (launchplanRefBuilder_ == null) { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + } + launchplanRefBuilder_.clear(); + } + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchplanRefBuilder() { + return getLaunchplanRefFieldBuilder().getBuilder(); + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { + if ((referenceCase_ == 1) && (launchplanRefBuilder_ != null)) { + return launchplanRefBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getLaunchplanRefFieldBuilder() { + if (launchplanRefBuilder_ == null) { + if (!(referenceCase_ == 1)) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + launchplanRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.Identifier) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 1; + onChanged();; + return launchplanRefBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> subWorkflowRefBuilder_; + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public boolean hasSubWorkflowRef() { + return referenceCase_ == 2; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { + if (subWorkflowRefBuilder_ == null) { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } else { + if (referenceCase_ == 2) { + return subWorkflowRefBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder setSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (subWorkflowRefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + subWorkflowRefBuilder_.setMessage(value); + } + referenceCase_ = 2; + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder setSubWorkflowRef( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (subWorkflowRefBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + subWorkflowRefBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 2; + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder mergeSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (subWorkflowRefBuilder_ == null) { + if (referenceCase_ == 2 && + reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) + .mergeFrom(value).buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 2) { + subWorkflowRefBuilder_.mergeFrom(value); + } + subWorkflowRefBuilder_.setMessage(value); + } + referenceCase_ = 2; + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder clearSubWorkflowRef() { + if (subWorkflowRefBuilder_ == null) { + if (referenceCase_ == 2) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 2) { + referenceCase_ = 0; + reference_ = null; + } + subWorkflowRefBuilder_.clear(); + } + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getSubWorkflowRefBuilder() { + return getSubWorkflowRefFieldBuilder().getBuilder(); + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { + if ((referenceCase_ == 2) && (subWorkflowRefBuilder_ != null)) { + return subWorkflowRefBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getSubWorkflowRefFieldBuilder() { + if (subWorkflowRefBuilder_ == null) { + if (!(referenceCase_ == 2)) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + subWorkflowRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.Identifier) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 2; + onChanged();; + return subWorkflowRefBuilder_; + } + @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:flyteidl.core.WorkflowNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowNode) + private static final flyteidl.core.Workflow.WorkflowNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowNode(); + } + + public static flyteidl.core.Workflow.WorkflowNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowNode(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 flyteidl.core.Workflow.WorkflowNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + boolean hasTimeout(); + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.Duration getTimeout(); + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + boolean hasRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategy getRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); + + /** + * bool interruptible = 6; + */ + boolean getInterruptible(); + + public flyteidl.core.Workflow.NodeMetadata.InterruptibleValueCase getInterruptibleValueCase(); + } + /** + *
+   * Defines extra information about the Node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.NodeMetadata} + */ + public static final class NodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.NodeMetadata) + NodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeMetadata.newBuilder() to construct. + private NodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeMetadata() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeMetadata( + 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 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeout_ != null) { + subBuilder = timeout_.toBuilder(); + } + timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeout_); + timeout_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; + if (retries_ != null) { + subBuilder = retries_.toBuilder(); + } + retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retries_); + retries_ = subBuilder.buildPartial(); + } + + break; + } + case 48: { + interruptibleValueCase_ = 6; + interruptibleValue_ = input.readBool(); + 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 flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); + } + + private int interruptibleValueCase_ = 0; + private java.lang.Object interruptibleValue_; + public enum InterruptibleValueCase + implements com.google.protobuf.Internal.EnumLite { + INTERRUPTIBLE(6), + INTERRUPTIBLEVALUE_NOT_SET(0); + private final int value; + private InterruptibleValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InterruptibleValueCase valueOf(int value) { + return forNumber(value); + } + + public static InterruptibleValueCase forNumber(int value) { + switch (value) { + case 6: return INTERRUPTIBLE; + case 0: return INTERRUPTIBLEVALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public InterruptibleValueCase + getInterruptibleValueCase() { + return InterruptibleValueCase.forNumber( + interruptibleValueCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + 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 TIMEOUT_FIELD_NUMBER = 4; + private com.google.protobuf.Duration timeout_; + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeout_ != null; + } + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + return getTimeout(); + } + + public static final int RETRIES_FIELD_NUMBER = 5; + private flyteidl.core.Literals.RetryStrategy retries_; + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retries_ != null; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + return getRetries(); + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 6; + /** + * bool interruptible = 6; + */ + public boolean getInterruptible() { + if (interruptibleValueCase_ == 6) { + return (java.lang.Boolean) interruptibleValue_; + } + return false; + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (timeout_ != null) { + output.writeMessage(4, getTimeout()); + } + if (retries_ != null) { + output.writeMessage(5, getRetries()); + } + if (interruptibleValueCase_ == 6) { + output.writeBool( + 6, (boolean)((java.lang.Boolean) interruptibleValue_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (timeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTimeout()); + } + if (retries_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRetries()); + } + if (interruptibleValueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 6, (boolean)((java.lang.Boolean) interruptibleValue_)); + } + 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 flyteidl.core.Workflow.NodeMetadata)) { + return super.equals(obj); + } + flyteidl.core.Workflow.NodeMetadata other = (flyteidl.core.Workflow.NodeMetadata) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasTimeout() != other.hasTimeout()) return false; + if (hasTimeout()) { + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (hasRetries() != other.hasRetries()) return false; + if (hasRetries()) { + if (!getRetries() + .equals(other.getRetries())) return false; + } + if (!getInterruptibleValueCase().equals(other.getInterruptibleValueCase())) return false; + switch (interruptibleValueCase_) { + case 6: + if (getInterruptible() + != other.getInterruptible()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + if (hasRetries()) { + hash = (37 * hash) + RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getRetries().hashCode(); + } + switch (interruptibleValueCase_) { + case 6: + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterruptible()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.NodeMetadata 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 flyteidl.core.Workflow.NodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.NodeMetadata 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 flyteidl.core.Workflow.NodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.NodeMetadata 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(flyteidl.core.Workflow.NodeMetadata 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; + } + /** + *
+     * Defines extra information about the Node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.NodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeMetadata) + flyteidl.core.Workflow.NodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); + } + + // Construct using flyteidl.core.Workflow.NodeMetadata.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_ = ""; + + if (timeoutBuilder_ == null) { + timeout_ = null; + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + if (retriesBuilder_ == null) { + retries_ = null; + } else { + retries_ = null; + retriesBuilder_ = null; + } + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.NodeMetadata getDefaultInstanceForType() { + return flyteidl.core.Workflow.NodeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.NodeMetadata build() { + flyteidl.core.Workflow.NodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.NodeMetadata buildPartial() { + flyteidl.core.Workflow.NodeMetadata result = new flyteidl.core.Workflow.NodeMetadata(this); + result.name_ = name_; + if (timeoutBuilder_ == null) { + result.timeout_ = timeout_; + } else { + result.timeout_ = timeoutBuilder_.build(); + } + if (retriesBuilder_ == null) { + result.retries_ = retries_; + } else { + result.retries_ = retriesBuilder_.build(); + } + if (interruptibleValueCase_ == 6) { + result.interruptibleValue_ = interruptibleValue_; + } + result.interruptibleValueCase_ = interruptibleValueCase_; + 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 flyteidl.core.Workflow.NodeMetadata) { + return mergeFrom((flyteidl.core.Workflow.NodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.NodeMetadata other) { + if (other == flyteidl.core.Workflow.NodeMetadata.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (other.hasRetries()) { + mergeRetries(other.getRetries()); + } + switch (other.getInterruptibleValueCase()) { + case INTERRUPTIBLE: { + setInterruptible(other.getInterruptible()); + break; + } + case INTERRUPTIBLEVALUE_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 { + flyteidl.core.Workflow.NodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.NodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int interruptibleValueCase_ = 0; + private java.lang.Object interruptibleValue_; + public InterruptibleValueCase + getInterruptibleValueCase() { + return InterruptibleValueCase.forNumber( + interruptibleValueCase_); + } + + public Builder clearInterruptibleValue() { + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + onChanged(); + return this; + } + + + private java.lang.Object name_ = ""; + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + 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.Duration timeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeoutBuilder_ != null || timeout_ != null; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + onChanged(); + } else { + timeoutBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + onChanged(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (timeout_ != null) { + timeout_ = + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + } else { + timeout_ = value; + } + onChanged(); + } else { + timeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder clearTimeout() { + if (timeoutBuilder_ == null) { + timeout_ = null; + onChanged(); + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeoutFieldBuilder() { + if (timeoutBuilder_ == null) { + timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeout(), + getParentForChildren(), + isClean()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private flyteidl.core.Literals.RetryStrategy retries_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retriesBuilder_ != null || retries_ != null; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + if (retriesBuilder_ == null) { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } else { + return retriesBuilder_.getMessage(); + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retries_ = value; + onChanged(); + } else { + retriesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries( + flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { + if (retriesBuilder_ == null) { + retries_ = builderForValue.build(); + onChanged(); + } else { + retriesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (retries_ != null) { + retries_ = + flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); + } else { + retries_ = value; + } + onChanged(); + } else { + retriesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder clearRetries() { + if (retriesBuilder_ == null) { + retries_ = null; + onChanged(); + } else { + retries_ = null; + retriesBuilder_ = null; + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { + + onChanged(); + return getRetriesFieldBuilder().getBuilder(); + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + if (retriesBuilder_ != null) { + return retriesBuilder_.getMessageOrBuilder(); + } else { + return retries_ == null ? + flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> + getRetriesFieldBuilder() { + if (retriesBuilder_ == null) { + retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( + getRetries(), + getParentForChildren(), + isClean()); + retries_ = null; + } + return retriesBuilder_; + } + + /** + * bool interruptible = 6; + */ + public boolean getInterruptible() { + if (interruptibleValueCase_ == 6) { + return (java.lang.Boolean) interruptibleValue_; + } + return false; + } + /** + * bool interruptible = 6; + */ + public Builder setInterruptible(boolean value) { + interruptibleValueCase_ = 6; + interruptibleValue_ = value; + onChanged(); + return this; + } + /** + * bool interruptible = 6; + */ + public Builder clearInterruptible() { + if (interruptibleValueCase_ == 6) { + interruptibleValueCase_ = 0; + interruptibleValue_ = 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:flyteidl.core.NodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeMetadata) + private static final flyteidl.core.Workflow.NodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.NodeMetadata(); + } + + public static flyteidl.core.Workflow.NodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeMetadata(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 flyteidl.core.Workflow.NodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AliasOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Alias) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + java.lang.String getVar(); + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + com.google.protobuf.ByteString + getVarBytes(); + + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + java.lang.String getAlias(); + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + com.google.protobuf.ByteString + getAliasBytes(); + } + /** + *
+   * Links a variable to an alias.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Alias} + */ + public static final class Alias extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Alias) + AliasOrBuilder { + private static final long serialVersionUID = 0L; + // Use Alias.newBuilder() to construct. + private Alias(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Alias() { + var_ = ""; + alias_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Alias( + 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(); + + var_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + alias_ = 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 flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); + } + + public static final int VAR_FIELD_NUMBER = 1; + private volatile java.lang.Object var_; + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + 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(); + var_ = s; + return s; + } + } + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALIAS_FIELD_NUMBER = 2; + private volatile java.lang.Object alias_; + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + 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(); + alias_ = s; + return s; + } + } + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = 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 (!getVarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); + } + if (!getAliasBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alias_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getVarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); + } + if (!getAliasBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alias_); + } + 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 flyteidl.core.Workflow.Alias)) { + return super.equals(obj); + } + flyteidl.core.Workflow.Alias other = (flyteidl.core.Workflow.Alias) obj; + + if (!getVar() + .equals(other.getVar())) return false; + if (!getAlias() + .equals(other.getAlias())) 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) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.Alias parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Alias parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Alias parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Alias parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Alias parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Alias parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Alias parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Alias 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 flyteidl.core.Workflow.Alias parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Alias 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 flyteidl.core.Workflow.Alias parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Alias 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(flyteidl.core.Workflow.Alias 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; + } + /** + *
+     * Links a variable to an alias.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Alias} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Alias) + flyteidl.core.Workflow.AliasOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); + } + + // Construct using flyteidl.core.Workflow.Alias.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(); + var_ = ""; + + alias_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.Alias getDefaultInstanceForType() { + return flyteidl.core.Workflow.Alias.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.Alias build() { + flyteidl.core.Workflow.Alias result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.Alias buildPartial() { + flyteidl.core.Workflow.Alias result = new flyteidl.core.Workflow.Alias(this); + result.var_ = var_; + result.alias_ = alias_; + 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 flyteidl.core.Workflow.Alias) { + return mergeFrom((flyteidl.core.Workflow.Alias)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.Alias other) { + if (other == flyteidl.core.Workflow.Alias.getDefaultInstance()) return this; + if (!other.getVar().isEmpty()) { + var_ = other.var_; + onChanged(); + } + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + 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 { + flyteidl.core.Workflow.Alias parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.Alias) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object var_ = ""; + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + var_ = value; + onChanged(); + return this; + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public Builder clearVar() { + + var_ = getDefaultInstance().getVar(); + onChanged(); + return this; + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + var_ = value; + onChanged(); + return this; + } + + private java.lang.Object alias_ = ""; + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public Builder setAlias( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alias_ = value; + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public Builder clearAlias() { + + alias_ = getDefaultInstance().getAlias(); + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public Builder setAliasBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alias_ = 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:flyteidl.core.Alias) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Alias) + private static final flyteidl.core.Workflow.Alias DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.Alias(); + } + + public static flyteidl.core.Workflow.Alias getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Alias parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Alias(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 flyteidl.core.Workflow.Alias getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Node) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + java.lang.String getId(); + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + boolean hasMetadata(); + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + flyteidl.core.Workflow.NodeMetadata getMetadata(); + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + java.util.List + getInputsList(); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + flyteidl.core.Literals.Binding getInputs(int index); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + int getInputsCount(); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + java.util.List + getInputsOrBuilderList(); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( + int index); + + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + java.util.List + getUpstreamNodeIdsList(); + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + int getUpstreamNodeIdsCount(); + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + java.lang.String getUpstreamNodeIds(int index); + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + com.google.protobuf.ByteString + getUpstreamNodeIdsBytes(int index); + + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + java.util.List + getOutputAliasesList(); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + flyteidl.core.Workflow.Alias getOutputAliases(int index); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + int getOutputAliasesCount(); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + java.util.List + getOutputAliasesOrBuilderList(); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( + int index); + + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + boolean hasTaskNode(); + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + flyteidl.core.Workflow.TaskNode getTaskNode(); + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder(); + + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + boolean hasWorkflowNode(); + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + flyteidl.core.Workflow.WorkflowNode getWorkflowNode(); + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder(); + + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + boolean hasBranchNode(); + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + flyteidl.core.Workflow.BranchNode getBranchNode(); + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder(); + + public flyteidl.core.Workflow.Node.TargetCase getTargetCase(); + } + /** + *
+   * A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
+   * node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Node} + */ + public static final class Node extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Node) + NodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Node.newBuilder() to construct. + private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Node() { + id_ = ""; + inputs_ = java.util.Collections.emptyList(); + upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + outputAliases_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Node( + 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: { + flyteidl.core.Workflow.NodeMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Workflow.NodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + inputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + inputs_.add( + input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + upstreamNodeIds_.add(s); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + outputAliases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + outputAliases_.add( + input.readMessage(flyteidl.core.Workflow.Alias.parser(), extensionRegistry)); + break; + } + case 50: { + flyteidl.core.Workflow.TaskNode.Builder subBuilder = null; + if (targetCase_ == 6) { + subBuilder = ((flyteidl.core.Workflow.TaskNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.TaskNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.TaskNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 6; + break; + } + case 58: { + flyteidl.core.Workflow.WorkflowNode.Builder subBuilder = null; + if (targetCase_ == 7) { + subBuilder = ((flyteidl.core.Workflow.WorkflowNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.WorkflowNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.WorkflowNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 7; + break; + } + case 66: { + flyteidl.core.Workflow.BranchNode.Builder subBuilder = null; + if (targetCase_ == 8) { + subBuilder = ((flyteidl.core.Workflow.BranchNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.BranchNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.BranchNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 8; + 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_ & 0x00000004) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); + } + + private int bitField0_; + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite { + TASK_NODE(6), + WORKFLOW_NODE(7), + BRANCH_NODE(8), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 6: return TASK_NODE; + case 7: return WORKFLOW_NODE; + case 8: return BRANCH_NODE; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + 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; + } + } + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + 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 METADATA_FIELD_NUMBER = 2; + private flyteidl.core.Workflow.NodeMetadata metadata_; + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int INPUTS_FIELD_NUMBER = 3; + private java.util.List inputs_; + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List getInputsList() { + return inputs_; + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List + getInputsOrBuilderList() { + return inputs_; + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public int getInputsCount() { + return inputs_.size(); + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding getInputs(int index) { + return inputs_.get(index); + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( + int index) { + return inputs_.get(index); + } + + public static final int UPSTREAM_NODE_IDS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList upstreamNodeIds_; + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ProtocolStringList + getUpstreamNodeIdsList() { + return upstreamNodeIds_; + } + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public int getUpstreamNodeIdsCount() { + return upstreamNodeIds_.size(); + } + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public java.lang.String getUpstreamNodeIds(int index) { + return upstreamNodeIds_.get(index); + } + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ByteString + getUpstreamNodeIdsBytes(int index) { + return upstreamNodeIds_.getByteString(index); + } + + public static final int OUTPUT_ALIASES_FIELD_NUMBER = 5; + private java.util.List outputAliases_; + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List getOutputAliasesList() { + return outputAliases_; + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List + getOutputAliasesOrBuilderList() { + return outputAliases_; + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public int getOutputAliasesCount() { + return outputAliases_.size(); + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias getOutputAliases(int index) { + return outputAliases_.get(index); + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( + int index) { + return outputAliases_.get(index); + } + + public static final int TASK_NODE_FIELD_NUMBER = 6; + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public boolean hasTaskNode() { + return targetCase_ == 6; + } + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNode getTaskNode() { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + + public static final int WORKFLOW_NODE_FIELD_NUMBER = 7; + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public boolean hasWorkflowNode() { + return targetCase_ == 7; + } + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + + public static final int BRANCH_NODE_FIELD_NUMBER = 8; + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public boolean hasBranchNode() { + return targetCase_ == 8; + } + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNode getBranchNode() { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + for (int i = 0; i < inputs_.size(); i++) { + output.writeMessage(3, inputs_.get(i)); + } + for (int i = 0; i < upstreamNodeIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, upstreamNodeIds_.getRaw(i)); + } + for (int i = 0; i < outputAliases_.size(); i++) { + output.writeMessage(5, outputAliases_.get(i)); + } + if (targetCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Workflow.TaskNode) target_); + } + if (targetCase_ == 7) { + output.writeMessage(7, (flyteidl.core.Workflow.WorkflowNode) target_); + } + if (targetCase_ == 8) { + output.writeMessage(8, (flyteidl.core.Workflow.BranchNode) target_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + for (int i = 0; i < inputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, inputs_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < upstreamNodeIds_.size(); i++) { + dataSize += computeStringSizeNoTag(upstreamNodeIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getUpstreamNodeIdsList().size(); + } + for (int i = 0; i < outputAliases_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, outputAliases_.get(i)); + } + if (targetCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Workflow.TaskNode) target_); + } + if (targetCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (flyteidl.core.Workflow.WorkflowNode) target_); + } + if (targetCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.core.Workflow.BranchNode) target_); + } + 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 flyteidl.core.Workflow.Node)) { + return super.equals(obj); + } + flyteidl.core.Workflow.Node other = (flyteidl.core.Workflow.Node) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getInputsList() + .equals(other.getInputsList())) return false; + if (!getUpstreamNodeIdsList() + .equals(other.getUpstreamNodeIdsList())) return false; + if (!getOutputAliasesList() + .equals(other.getOutputAliasesList())) return false; + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 6: + if (!getTaskNode() + .equals(other.getTaskNode())) return false; + break; + case 7: + if (!getWorkflowNode() + .equals(other.getWorkflowNode())) return false; + break; + case 8: + if (!getBranchNode() + .equals(other.getBranchNode())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getInputsCount() > 0) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputsList().hashCode(); + } + if (getUpstreamNodeIdsCount() > 0) { + hash = (37 * hash) + UPSTREAM_NODE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getUpstreamNodeIdsList().hashCode(); + } + if (getOutputAliasesCount() > 0) { + hash = (37 * hash) + OUTPUT_ALIASES_FIELD_NUMBER; + hash = (53 * hash) + getOutputAliasesList().hashCode(); + } + switch (targetCase_) { + case 6: + hash = (37 * hash) + TASK_NODE_FIELD_NUMBER; + hash = (53 * hash) + getTaskNode().hashCode(); + break; + case 7: + hash = (37 * hash) + WORKFLOW_NODE_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowNode().hashCode(); + break; + case 8: + hash = (37 * hash) + BRANCH_NODE_FIELD_NUMBER; + hash = (53 * hash) + getBranchNode().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.Node parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Node parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Node parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Node parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Node parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Node parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Node parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Node 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 flyteidl.core.Workflow.Node parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Node 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 flyteidl.core.Workflow.Node parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Node 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(flyteidl.core.Workflow.Node 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 Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
+     * node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Node} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Node) + flyteidl.core.Workflow.NodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); + } + + // Construct using flyteidl.core.Workflow.Node.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInputsFieldBuilder(); + getOutputAliasesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + inputsBuilder_.clear(); + } + upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + if (outputAliasesBuilder_ == null) { + outputAliases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + outputAliasesBuilder_.clear(); + } + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.Node getDefaultInstanceForType() { + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.Node build() { + flyteidl.core.Workflow.Node result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.Node buildPartial() { + flyteidl.core.Workflow.Node result = new flyteidl.core.Workflow.Node(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.id_ = id_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (inputsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (((bitField0_ & 0x00000008) != 0)) { + upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.upstreamNodeIds_ = upstreamNodeIds_; + if (outputAliasesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.outputAliases_ = outputAliases_; + } else { + result.outputAliases_ = outputAliasesBuilder_.build(); + } + if (targetCase_ == 6) { + if (taskNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = taskNodeBuilder_.build(); + } + } + if (targetCase_ == 7) { + if (workflowNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = workflowNodeBuilder_.build(); + } + } + if (targetCase_ == 8) { + if (branchNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = branchNodeBuilder_.build(); + } + } + result.bitField0_ = to_bitField0_; + result.targetCase_ = targetCase_; + 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 flyteidl.core.Workflow.Node) { + return mergeFrom((flyteidl.core.Workflow.Node)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.Node other) { + if (other == flyteidl.core.Workflow.Node.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (inputsBuilder_ == null) { + if (!other.inputs_.isEmpty()) { + if (inputs_.isEmpty()) { + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureInputsIsMutable(); + inputs_.addAll(other.inputs_); + } + onChanged(); + } + } else { + if (!other.inputs_.isEmpty()) { + if (inputsBuilder_.isEmpty()) { + inputsBuilder_.dispose(); + inputsBuilder_ = null; + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000004); + inputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputsFieldBuilder() : null; + } else { + inputsBuilder_.addAllMessages(other.inputs_); + } + } + } + if (!other.upstreamNodeIds_.isEmpty()) { + if (upstreamNodeIds_.isEmpty()) { + upstreamNodeIds_ = other.upstreamNodeIds_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.addAll(other.upstreamNodeIds_); + } + onChanged(); + } + if (outputAliasesBuilder_ == null) { + if (!other.outputAliases_.isEmpty()) { + if (outputAliases_.isEmpty()) { + outputAliases_ = other.outputAliases_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureOutputAliasesIsMutable(); + outputAliases_.addAll(other.outputAliases_); + } + onChanged(); + } + } else { + if (!other.outputAliases_.isEmpty()) { + if (outputAliasesBuilder_.isEmpty()) { + outputAliasesBuilder_.dispose(); + outputAliasesBuilder_ = null; + outputAliases_ = other.outputAliases_; + bitField0_ = (bitField0_ & ~0x00000010); + outputAliasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputAliasesFieldBuilder() : null; + } else { + outputAliasesBuilder_.addAllMessages(other.outputAliases_); + } + } + } + switch (other.getTargetCase()) { + case TASK_NODE: { + mergeTaskNode(other.getTaskNode()); + break; + } + case WORKFLOW_NODE: { + mergeWorkflowNode(other.getWorkflowNode()); + break; + } + case BRANCH_NODE: { + mergeBranchNode(other.getBranchNode()); + break; + } + case TARGET_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 { + flyteidl.core.Workflow.Node parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.Node) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + 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; + } + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + 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; + } + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Workflow.NodeMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder setMetadata(flyteidl.core.Workflow.NodeMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder setMetadata( + flyteidl.core.Workflow.NodeMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder mergeMetadata(flyteidl.core.Workflow.NodeMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Workflow.NodeMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List inputs_ = + java.util.Collections.emptyList(); + private void ensureInputsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + inputs_ = new java.util.ArrayList(inputs_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> inputsBuilder_; + + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List getInputsList() { + if (inputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputs_); + } else { + return inputsBuilder_.getMessageList(); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public int getInputsCount() { + if (inputsBuilder_ == null) { + return inputs_.size(); + } else { + return inputsBuilder_.getCount(); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding getInputs(int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); + } else { + return inputsBuilder_.getMessage(index); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder setInputs( + int index, flyteidl.core.Literals.Binding value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.set(index, value); + onChanged(); + } else { + inputsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder setInputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.set(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs(flyteidl.core.Literals.Binding value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(value); + onChanged(); + } else { + inputsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs( + int index, flyteidl.core.Literals.Binding value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(index, value); + onChanged(); + } else { + inputsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs( + flyteidl.core.Literals.Binding.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addAllInputs( + java.lang.Iterable values) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputs_); + onChanged(); + } else { + inputsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + inputsBuilder_.clear(); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder removeInputs(int index) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.remove(index); + onChanged(); + } else { + inputsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder getInputsBuilder( + int index) { + return getInputsFieldBuilder().getBuilder(index); + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( + int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); } else { + return inputsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List + getInputsOrBuilderList() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputs_); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addInputsBuilder() { + return getInputsFieldBuilder().addBuilder( + flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addInputsBuilder( + int index) { + return getInputsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List + getInputsBuilderList() { + return getInputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( + inputs_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private com.google.protobuf.LazyStringList upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUpstreamNodeIdsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(upstreamNodeIds_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ProtocolStringList + getUpstreamNodeIdsList() { + return upstreamNodeIds_.getUnmodifiableView(); + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public int getUpstreamNodeIdsCount() { + return upstreamNodeIds_.size(); + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public java.lang.String getUpstreamNodeIds(int index) { + return upstreamNodeIds_.get(index); + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ByteString + getUpstreamNodeIdsBytes(int index) { + return upstreamNodeIds_.getByteString(index); + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder setUpstreamNodeIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder addUpstreamNodeIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.add(value); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder addAllUpstreamNodeIds( + java.lang.Iterable values) { + ensureUpstreamNodeIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, upstreamNodeIds_); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder clearUpstreamNodeIds() { + upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder addUpstreamNodeIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.add(value); + onChanged(); + return this; + } + + private java.util.List outputAliases_ = + java.util.Collections.emptyList(); + private void ensureOutputAliasesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + outputAliases_ = new java.util.ArrayList(outputAliases_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> outputAliasesBuilder_; + + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List getOutputAliasesList() { + if (outputAliasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputAliases_); + } else { + return outputAliasesBuilder_.getMessageList(); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public int getOutputAliasesCount() { + if (outputAliasesBuilder_ == null) { + return outputAliases_.size(); + } else { + return outputAliasesBuilder_.getCount(); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias getOutputAliases(int index) { + if (outputAliasesBuilder_ == null) { + return outputAliases_.get(index); + } else { + return outputAliasesBuilder_.getMessage(index); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder setOutputAliases( + int index, flyteidl.core.Workflow.Alias value) { + if (outputAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputAliasesIsMutable(); + outputAliases_.set(index, value); + onChanged(); + } else { + outputAliasesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder setOutputAliases( + int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.set(index, builderForValue.build()); + onChanged(); + } else { + outputAliasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases(flyteidl.core.Workflow.Alias value) { + if (outputAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputAliasesIsMutable(); + outputAliases_.add(value); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases( + int index, flyteidl.core.Workflow.Alias value) { + if (outputAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputAliasesIsMutable(); + outputAliases_.add(index, value); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases( + flyteidl.core.Workflow.Alias.Builder builderForValue) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.add(builderForValue.build()); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases( + int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.add(index, builderForValue.build()); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addAllOutputAliases( + java.lang.Iterable values) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputAliases_); + onChanged(); + } else { + outputAliasesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder clearOutputAliases() { + if (outputAliasesBuilder_ == null) { + outputAliases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + outputAliasesBuilder_.clear(); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder removeOutputAliases(int index) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.remove(index); + onChanged(); + } else { + outputAliasesBuilder_.remove(index); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias.Builder getOutputAliasesBuilder( + int index) { + return getOutputAliasesFieldBuilder().getBuilder(index); + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( + int index) { + if (outputAliasesBuilder_ == null) { + return outputAliases_.get(index); } else { + return outputAliasesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List + getOutputAliasesOrBuilderList() { + if (outputAliasesBuilder_ != null) { + return outputAliasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputAliases_); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder() { + return getOutputAliasesFieldBuilder().addBuilder( + flyteidl.core.Workflow.Alias.getDefaultInstance()); + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder( + int index) { + return getOutputAliasesFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.Alias.getDefaultInstance()); + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List + getOutputAliasesBuilderList() { + return getOutputAliasesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> + getOutputAliasesFieldBuilder() { + if (outputAliasesBuilder_ == null) { + outputAliasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder>( + outputAliases_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + outputAliases_ = null; + } + return outputAliasesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> taskNodeBuilder_; + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public boolean hasTaskNode() { + return targetCase_ == 6; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNode getTaskNode() { + if (taskNodeBuilder_ == null) { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } else { + if (targetCase_ == 6) { + return taskNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder setTaskNode(flyteidl.core.Workflow.TaskNode value) { + if (taskNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + taskNodeBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder setTaskNode( + flyteidl.core.Workflow.TaskNode.Builder builderForValue) { + if (taskNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + taskNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 6; + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder mergeTaskNode(flyteidl.core.Workflow.TaskNode value) { + if (taskNodeBuilder_ == null) { + if (targetCase_ == 6 && + target_ != flyteidl.core.Workflow.TaskNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.TaskNode.newBuilder((flyteidl.core.Workflow.TaskNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 6) { + taskNodeBuilder_.mergeFrom(value); + } + taskNodeBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder clearTaskNode() { + if (taskNodeBuilder_ == null) { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + } + taskNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNode.Builder getTaskNodeBuilder() { + return getTaskNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { + if ((targetCase_ == 6) && (taskNodeBuilder_ != null)) { + return taskNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> + getTaskNodeFieldBuilder() { + if (taskNodeBuilder_ == null) { + if (!(targetCase_ == 6)) { + target_ = flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + taskNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder>( + (flyteidl.core.Workflow.TaskNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 6; + onChanged();; + return taskNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> workflowNodeBuilder_; + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public boolean hasWorkflowNode() { + return targetCase_ == 7; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { + if (workflowNodeBuilder_ == null) { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } else { + if (targetCase_ == 7) { + return workflowNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder setWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { + if (workflowNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + workflowNodeBuilder_.setMessage(value); + } + targetCase_ = 7; + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder setWorkflowNode( + flyteidl.core.Workflow.WorkflowNode.Builder builderForValue) { + if (workflowNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + workflowNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 7; + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder mergeWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { + if (workflowNodeBuilder_ == null) { + if (targetCase_ == 7 && + target_ != flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.WorkflowNode.newBuilder((flyteidl.core.Workflow.WorkflowNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 7) { + workflowNodeBuilder_.mergeFrom(value); + } + workflowNodeBuilder_.setMessage(value); + } + targetCase_ = 7; + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder clearWorkflowNode() { + if (workflowNodeBuilder_ == null) { + if (targetCase_ == 7) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 7) { + targetCase_ = 0; + target_ = null; + } + workflowNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNode.Builder getWorkflowNodeBuilder() { + return getWorkflowNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { + if ((targetCase_ == 7) && (workflowNodeBuilder_ != null)) { + return workflowNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> + getWorkflowNodeFieldBuilder() { + if (workflowNodeBuilder_ == null) { + if (!(targetCase_ == 7)) { + target_ = flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + workflowNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder>( + (flyteidl.core.Workflow.WorkflowNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 7; + onChanged();; + return workflowNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> branchNodeBuilder_; + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public boolean hasBranchNode() { + return targetCase_ == 8; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNode getBranchNode() { + if (branchNodeBuilder_ == null) { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } else { + if (targetCase_ == 8) { + return branchNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder setBranchNode(flyteidl.core.Workflow.BranchNode value) { + if (branchNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + branchNodeBuilder_.setMessage(value); + } + targetCase_ = 8; + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder setBranchNode( + flyteidl.core.Workflow.BranchNode.Builder builderForValue) { + if (branchNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + branchNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 8; + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder mergeBranchNode(flyteidl.core.Workflow.BranchNode value) { + if (branchNodeBuilder_ == null) { + if (targetCase_ == 8 && + target_ != flyteidl.core.Workflow.BranchNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.BranchNode.newBuilder((flyteidl.core.Workflow.BranchNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 8) { + branchNodeBuilder_.mergeFrom(value); + } + branchNodeBuilder_.setMessage(value); + } + targetCase_ = 8; + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder clearBranchNode() { + if (branchNodeBuilder_ == null) { + if (targetCase_ == 8) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 8) { + targetCase_ = 0; + target_ = null; + } + branchNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNode.Builder getBranchNodeBuilder() { + return getBranchNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { + if ((targetCase_ == 8) && (branchNodeBuilder_ != null)) { + return branchNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> + getBranchNodeFieldBuilder() { + if (branchNodeBuilder_ == null) { + if (!(targetCase_ == 8)) { + target_ = flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + branchNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder>( + (flyteidl.core.Workflow.BranchNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 8; + onChanged();; + return branchNodeBuilder_; + } + @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:flyteidl.core.Node) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Node) + private static final flyteidl.core.Workflow.Node DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.Node(); + } + + public static flyteidl.core.Workflow.Node getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Node(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 flyteidl.core.Workflow.Node getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + boolean hasQualityOfService(); + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + flyteidl.core.Execution.QualityOfService getQualityOfService(); + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); + + /** + *
+     * Defines how the system should behave when a failure is detected in the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + int getOnFailureValue(); + /** + *
+     * Defines how the system should behave when a failure is detected in the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure(); + } + /** + *
+   * Metadata for the entire workflow. Defines execution behavior that does not change the final outputs of the workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadata} + */ + public static final class WorkflowMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowMetadata) + WorkflowMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowMetadata.newBuilder() to construct. + private WorkflowMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowMetadata() { + onFailure_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowMetadata( + 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: { + flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; + if (qualityOfService_ != null) { + subBuilder = qualityOfService_.toBuilder(); + } + qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qualityOfService_); + qualityOfService_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + onFailure_ = rawValue; + 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 flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); + } + + /** + *
+     * Failure Handling Strategy
+     * 
+ * + * Protobuf enum {@code flyteidl.core.WorkflowMetadata.OnFailurePolicy} + */ + public enum OnFailurePolicy + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically
+       * abort all currently running nodes and clean up resources before finally marking the workflow executions as
+       * failed.
+       * 
+ * + * FAIL_IMMEDIATELY = 0; + */ + FAIL_IMMEDIATELY(0), + /** + *
+       * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will
+       * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run.
+       * Other nodes that will be executed to completion before cleaning up resources and marking the workflow
+       * execution as failed.
+       * 
+ * + * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; + */ + FAIL_AFTER_EXECUTABLE_NODES_COMPLETE(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically
+       * abort all currently running nodes and clean up resources before finally marking the workflow executions as
+       * failed.
+       * 
+ * + * FAIL_IMMEDIATELY = 0; + */ + public static final int FAIL_IMMEDIATELY_VALUE = 0; + /** + *
+       * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will
+       * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run.
+       * Other nodes that will be executed to completion before cleaning up resources and marking the workflow
+       * execution as failed.
+       * 
+ * + * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; + */ + public static final int FAIL_AFTER_EXECUTABLE_NODES_COMPLETE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OnFailurePolicy valueOf(int value) { + return forNumber(value); + } + + public static OnFailurePolicy forNumber(int value) { + switch (value) { + case 0: return FAIL_IMMEDIATELY; + case 1: return FAIL_AFTER_EXECUTABLE_NODES_COMPLETE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + OnFailurePolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OnFailurePolicy findValueByNumber(int number) { + return OnFailurePolicy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Workflow.WorkflowMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final OnFailurePolicy[] VALUES = values(); + + public static OnFailurePolicy 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 OnFailurePolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowMetadata.OnFailurePolicy) + } + + public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 1; + private flyteidl.core.Execution.QualityOfService qualityOfService_; + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public boolean hasQualityOfService() { + return qualityOfService_ != null; + } + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + return getQualityOfService(); + } + + public static final int ON_FAILURE_FIELD_NUMBER = 2; + private int onFailure_; + /** + *
+     * Defines how the system should behave when a failure is detected in the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public int getOnFailureValue() { + return onFailure_; + } + /** + *
+     * Defines how the system should behave when a failure is detected in the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure() { + @SuppressWarnings("deprecation") + flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy result = flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.valueOf(onFailure_); + return result == null ? flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.UNRECOGNIZED : result; + } + + 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 (qualityOfService_ != null) { + output.writeMessage(1, getQualityOfService()); + } + if (onFailure_ != flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.FAIL_IMMEDIATELY.getNumber()) { + output.writeEnum(2, onFailure_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (qualityOfService_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getQualityOfService()); + } + if (onFailure_ != flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.FAIL_IMMEDIATELY.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, onFailure_); + } + 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 flyteidl.core.Workflow.WorkflowMetadata)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowMetadata other = (flyteidl.core.Workflow.WorkflowMetadata) obj; + + if (hasQualityOfService() != other.hasQualityOfService()) return false; + if (hasQualityOfService()) { + if (!getQualityOfService() + .equals(other.getQualityOfService())) return false; + } + if (onFailure_ != other.onFailure_) 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 (hasQualityOfService()) { + hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getQualityOfService().hashCode(); + } + hash = (37 * hash) + ON_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + onFailure_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadata 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 flyteidl.core.Workflow.WorkflowMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadata 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 flyteidl.core.Workflow.WorkflowMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadata 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(flyteidl.core.Workflow.WorkflowMetadata 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; + } + /** + *
+     * Metadata for the entire workflow. Defines execution behavior that does not change the final outputs of the workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowMetadata) + flyteidl.core.Workflow.WorkflowMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowMetadata.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 (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + onFailure_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadata build() { + flyteidl.core.Workflow.WorkflowMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadata buildPartial() { + flyteidl.core.Workflow.WorkflowMetadata result = new flyteidl.core.Workflow.WorkflowMetadata(this); + if (qualityOfServiceBuilder_ == null) { + result.qualityOfService_ = qualityOfService_; + } else { + result.qualityOfService_ = qualityOfServiceBuilder_.build(); + } + result.onFailure_ = onFailure_; + 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 flyteidl.core.Workflow.WorkflowMetadata) { + return mergeFrom((flyteidl.core.Workflow.WorkflowMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowMetadata other) { + if (other == flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance()) return this; + if (other.hasQualityOfService()) { + mergeQualityOfService(other.getQualityOfService()); + } + if (other.onFailure_ != 0) { + setOnFailureValue(other.getOnFailureValue()); + } + 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 { + flyteidl.core.Workflow.WorkflowMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Execution.QualityOfService qualityOfService_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public boolean hasQualityOfService() { + return qualityOfServiceBuilder_ != null || qualityOfService_ != null; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } else { + return qualityOfServiceBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualityOfService_ = value; + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public Builder setQualityOfService( + flyteidl.core.Execution.QualityOfService.Builder builderForValue) { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = builderForValue.build(); + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (qualityOfService_ != null) { + qualityOfService_ = + flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); + } else { + qualityOfService_ = value; + } + onChanged(); + } else { + qualityOfServiceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public Builder clearQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + onChanged(); + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { + + onChanged(); + return getQualityOfServiceFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if (qualityOfServiceBuilder_ != null) { + return qualityOfServiceBuilder_.getMessageOrBuilder(); + } else { + return qualityOfService_ == null ? + flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> + getQualityOfServiceFieldBuilder() { + if (qualityOfServiceBuilder_ == null) { + qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( + getQualityOfService(), + getParentForChildren(), + isClean()); + qualityOfService_ = null; + } + return qualityOfServiceBuilder_; + } + + private int onFailure_ = 0; + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public int getOnFailureValue() { + return onFailure_; + } + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public Builder setOnFailureValue(int value) { + onFailure_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure() { + @SuppressWarnings("deprecation") + flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy result = flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.valueOf(onFailure_); + return result == null ? flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.UNRECOGNIZED : result; + } + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public Builder setOnFailure(flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy value) { + if (value == null) { + throw new NullPointerException(); + } + + onFailure_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public Builder clearOnFailure() { + + onFailure_ = 0; + 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:flyteidl.core.WorkflowMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadata) + private static final flyteidl.core.Workflow.WorkflowMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowMetadata(); + } + + public static flyteidl.core.Workflow.WorkflowMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowMetadata(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 flyteidl.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowMetadataDefaultsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowMetadataDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identify whether workflow is interruptible.
+     * The value set at the workflow level will be the defualt value used for nodes
+     * unless explicitly set at the node level.
+     * 
+ * + * bool interruptible = 1; + */ + boolean getInterruptible(); + } + /** + *
+   * Default Workflow Metadata for the entire workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadataDefaults} + */ + public static final class WorkflowMetadataDefaults extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowMetadataDefaults) + WorkflowMetadataDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowMetadataDefaults.newBuilder() to construct. + private WorkflowMetadataDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowMetadataDefaults() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowMetadataDefaults( + 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 8: { + + interruptible_ = input.readBool(); + 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 flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadataDefaults.class, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder.class); + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 1; + private boolean interruptible_; + /** + *
+     * Identify whether workflow is interruptible.
+     * The value set at the workflow level will be the defualt value used for nodes
+     * unless explicitly set at the node level.
+     * 
+ * + * bool interruptible = 1; + */ + public boolean getInterruptible() { + return interruptible_; + } + + 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 (interruptible_ != false) { + output.writeBool(1, interruptible_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (interruptible_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, interruptible_); + } + 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 flyteidl.core.Workflow.WorkflowMetadataDefaults)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowMetadataDefaults other = (flyteidl.core.Workflow.WorkflowMetadataDefaults) obj; + + if (getInterruptible() + != other.getInterruptible()) 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) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterruptible()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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 flyteidl.core.Workflow.WorkflowMetadataDefaults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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 flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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(flyteidl.core.Workflow.WorkflowMetadataDefaults 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 Workflow Metadata for the entire workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadataDefaults} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowMetadataDefaults) + flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadataDefaults.class, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowMetadataDefaults.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(); + interruptible_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadataDefaults build() { + flyteidl.core.Workflow.WorkflowMetadataDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadataDefaults buildPartial() { + flyteidl.core.Workflow.WorkflowMetadataDefaults result = new flyteidl.core.Workflow.WorkflowMetadataDefaults(this); + result.interruptible_ = interruptible_; + 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 flyteidl.core.Workflow.WorkflowMetadataDefaults) { + return mergeFrom((flyteidl.core.Workflow.WorkflowMetadataDefaults)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowMetadataDefaults other) { + if (other == flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance()) return this; + if (other.getInterruptible() != false) { + setInterruptible(other.getInterruptible()); + } + 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 { + flyteidl.core.Workflow.WorkflowMetadataDefaults parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowMetadataDefaults) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean interruptible_ ; + /** + *
+       * Identify whether workflow is interruptible.
+       * The value set at the workflow level will be the defualt value used for nodes
+       * unless explicitly set at the node level.
+       * 
+ * + * bool interruptible = 1; + */ + public boolean getInterruptible() { + return interruptible_; + } + /** + *
+       * Identify whether workflow is interruptible.
+       * The value set at the workflow level will be the defualt value used for nodes
+       * unless explicitly set at the node level.
+       * 
+ * + * bool interruptible = 1; + */ + public Builder setInterruptible(boolean value) { + + interruptible_ = value; + onChanged(); + return this; + } + /** + *
+       * Identify whether workflow is interruptible.
+       * The value set at the workflow level will be the defualt value used for nodes
+       * unless explicitly set at the node level.
+       * 
+ * + * bool interruptible = 1; + */ + public Builder clearInterruptible() { + + interruptible_ = false; + 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:flyteidl.core.WorkflowMetadataDefaults) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadataDefaults) + private static final flyteidl.core.Workflow.WorkflowMetadataDefaults DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowMetadataDefaults(); + } + + public static flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowMetadataDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowMetadataDefaults(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 flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowTemplateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + boolean hasMetadata(); + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + flyteidl.core.Workflow.WorkflowMetadata getMetadata(); + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + boolean hasInterface(); + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + flyteidl.core.Interface.TypedInterface getInterface(); + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); + + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + java.util.List + getNodesList(); + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + flyteidl.core.Workflow.Node getNodes(int index); + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + int getNodesCount(); + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + java.util.List + getNodesOrBuilderList(); + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index); + + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + java.util.List + getOutputsList(); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + flyteidl.core.Literals.Binding getOutputs(int index); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + int getOutputsCount(); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + java.util.List + getOutputsOrBuilderList(); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index); + + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + boolean hasFailureNode(); + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + flyteidl.core.Workflow.Node getFailureNode(); + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder(); + + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + boolean hasMetadataDefaults(); + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults(); + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder(); + } + /** + *
+   * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
+   * directed acyclic graph.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowTemplate} + */ + public static final class WorkflowTemplate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowTemplate) + WorkflowTemplateOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowTemplate.newBuilder() to construct. + private WorkflowTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowTemplate() { + nodes_ = java.util.Collections.emptyList(); + outputs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowTemplate( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Workflow.WorkflowMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Workflow.WorkflowMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; + if (interface_ != null) { + subBuilder = interface_.toBuilder(); + } + interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(interface_); + interface_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + nodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + nodes_.add( + input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + outputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + outputs_.add( + input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); + break; + } + case 50: { + flyteidl.core.Workflow.Node.Builder subBuilder = null; + if (failureNode_ != null) { + subBuilder = failureNode_.toBuilder(); + } + failureNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(failureNode_); + failureNode_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder subBuilder = null; + if (metadataDefaults_ != null) { + subBuilder = metadataDefaults_.toBuilder(); + } + metadataDefaults_ = input.readMessage(flyteidl.core.Workflow.WorkflowMetadataDefaults.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadataDefaults_); + metadataDefaults_ = 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_ & 0x00000008) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int METADATA_FIELD_NUMBER = 2; + private flyteidl.core.Workflow.WorkflowMetadata metadata_; + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int INTERFACE_FIELD_NUMBER = 3; + private flyteidl.core.Interface.TypedInterface interface_; + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public boolean hasInterface() { + return interface_ != null; + } + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + return getInterface(); + } + + public static final int NODES_FIELD_NUMBER = 4; + private java.util.List nodes_; + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List getNodesList() { + return nodes_; + } + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List + getNodesOrBuilderList() { + return nodes_; + } + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public int getNodesCount() { + return nodes_.size(); + } + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + return nodes_.get(index); + } + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + return nodes_.get(index); + } + + public static final int OUTPUTS_FIELD_NUMBER = 5; + private java.util.List outputs_; + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List getOutputsList() { + return outputs_; + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public int getOutputsCount() { + return outputs_.size(); + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + return outputs_.get(index); + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + return outputs_.get(index); + } + + public static final int FAILURE_NODE_FIELD_NUMBER = 6; + private flyteidl.core.Workflow.Node failureNode_; + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public boolean hasFailureNode() { + return failureNode_ != null; + } + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.Node getFailureNode() { + return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; + } + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { + return getFailureNode(); + } + + public static final int METADATA_DEFAULTS_FIELD_NUMBER = 7; + private flyteidl.core.Workflow.WorkflowMetadataDefaults metadataDefaults_; + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public boolean hasMetadataDefaults() { + return metadataDefaults_ != null; + } + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults() { + return metadataDefaults_ == null ? flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; + } + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder() { + return getMetadataDefaults(); + } + + 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 (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + if (interface_ != null) { + output.writeMessage(3, getInterface()); + } + for (int i = 0; i < nodes_.size(); i++) { + output.writeMessage(4, nodes_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(5, outputs_.get(i)); + } + if (failureNode_ != null) { + output.writeMessage(6, getFailureNode()); + } + if (metadataDefaults_ != null) { + output.writeMessage(7, getMetadataDefaults()); + } + 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 (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + if (interface_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInterface()); + } + for (int i = 0; i < nodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, nodes_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, outputs_.get(i)); + } + if (failureNode_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getFailureNode()); + } + if (metadataDefaults_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getMetadataDefaults()); + } + 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 flyteidl.core.Workflow.WorkflowTemplate)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowTemplate other = (flyteidl.core.Workflow.WorkflowTemplate) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasInterface() != other.hasInterface()) return false; + if (hasInterface()) { + if (!getInterface() + .equals(other.getInterface())) return false; + } + if (!getNodesList() + .equals(other.getNodesList())) return false; + if (!getOutputsList() + .equals(other.getOutputsList())) return false; + if (hasFailureNode() != other.hasFailureNode()) return false; + if (hasFailureNode()) { + if (!getFailureNode() + .equals(other.getFailureNode())) return false; + } + if (hasMetadataDefaults() != other.hasMetadataDefaults()) return false; + if (hasMetadataDefaults()) { + if (!getMetadataDefaults() + .equals(other.getMetadataDefaults())) 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(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasInterface()) { + hash = (37 * hash) + INTERFACE_FIELD_NUMBER; + hash = (53 * hash) + getInterface().hashCode(); + } + if (getNodesCount() > 0) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + getNodesList().hashCode(); + } + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + if (hasFailureNode()) { + hash = (37 * hash) + FAILURE_NODE_FIELD_NUMBER; + hash = (53 * hash) + getFailureNode().hashCode(); + } + if (hasMetadataDefaults()) { + hash = (37 * hash) + METADATA_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getMetadataDefaults().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowTemplate 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 flyteidl.core.Workflow.WorkflowTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowTemplate 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 flyteidl.core.Workflow.WorkflowTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowTemplate 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(flyteidl.core.Workflow.WorkflowTemplate 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; + } + /** + *
+     * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
+     * directed acyclic graph.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowTemplate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowTemplate) + flyteidl.core.Workflow.WorkflowTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodesFieldBuilder(); + getOutputsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (interfaceBuilder_ == null) { + interface_ = null; + } else { + interface_ = null; + interfaceBuilder_ = null; + } + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + nodesBuilder_.clear(); + } + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + outputsBuilder_.clear(); + } + if (failureNodeBuilder_ == null) { + failureNode_ = null; + } else { + failureNode_ = null; + failureNodeBuilder_ = null; + } + if (metadataDefaultsBuilder_ == null) { + metadataDefaults_ = null; + } else { + metadataDefaults_ = null; + metadataDefaultsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowTemplate build() { + flyteidl.core.Workflow.WorkflowTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowTemplate buildPartial() { + flyteidl.core.Workflow.WorkflowTemplate result = new flyteidl.core.Workflow.WorkflowTemplate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (interfaceBuilder_ == null) { + result.interface_ = interface_; + } else { + result.interface_ = interfaceBuilder_.build(); + } + if (nodesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.nodes_ = nodes_; + } else { + result.nodes_ = nodesBuilder_.build(); + } + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (failureNodeBuilder_ == null) { + result.failureNode_ = failureNode_; + } else { + result.failureNode_ = failureNodeBuilder_.build(); + } + if (metadataDefaultsBuilder_ == null) { + result.metadataDefaults_ = metadataDefaults_; + } else { + result.metadataDefaults_ = metadataDefaultsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.core.Workflow.WorkflowTemplate) { + return mergeFrom((flyteidl.core.Workflow.WorkflowTemplate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowTemplate other) { + if (other == flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasInterface()) { + mergeInterface(other.getInterface()); + } + if (nodesBuilder_ == null) { + if (!other.nodes_.isEmpty()) { + if (nodes_.isEmpty()) { + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureNodesIsMutable(); + nodes_.addAll(other.nodes_); + } + onChanged(); + } + } else { + if (!other.nodes_.isEmpty()) { + if (nodesBuilder_.isEmpty()) { + nodesBuilder_.dispose(); + nodesBuilder_ = null; + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000008); + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodesFieldBuilder() : null; + } else { + nodesBuilder_.addAllMessages(other.nodes_); + } + } + } + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000010); + outputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputsFieldBuilder() : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + if (other.hasFailureNode()) { + mergeFailureNode(other.getFailureNode()); + } + if (other.hasMetadataDefaults()) { + mergeMetadataDefaults(other.getMetadataDefaults()); + } + 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 { + flyteidl.core.Workflow.WorkflowTemplate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowTemplate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.core.Workflow.WorkflowMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder setMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder setMetadata( + flyteidl.core.Workflow.WorkflowMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder mergeMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Workflow.WorkflowMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private flyteidl.core.Interface.TypedInterface interface_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public boolean hasInterface() { + return interfaceBuilder_ != null || interface_ != null; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + if (interfaceBuilder_ == null) { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } else { + return interfaceBuilder_.getMessage(); + } + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interface_ = value; + onChanged(); + } else { + interfaceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder setInterface( + flyteidl.core.Interface.TypedInterface.Builder builderForValue) { + if (interfaceBuilder_ == null) { + interface_ = builderForValue.build(); + onChanged(); + } else { + interfaceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (interface_ != null) { + interface_ = + flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); + } else { + interface_ = value; + } + onChanged(); + } else { + interfaceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder clearInterface() { + if (interfaceBuilder_ == null) { + interface_ = null; + onChanged(); + } else { + interface_ = null; + interfaceBuilder_ = null; + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { + + onChanged(); + return getInterfaceFieldBuilder().getBuilder(); + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + if (interfaceBuilder_ != null) { + return interfaceBuilder_.getMessageOrBuilder(); + } else { + return interface_ == null ? + flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> + getInterfaceFieldBuilder() { + if (interfaceBuilder_ == null) { + interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( + getInterface(), + getParentForChildren(), + isClean()); + interface_ = null; + } + return interfaceBuilder_; + } + + private java.util.List nodes_ = + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; + + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes(flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodes_); + onChanged(); + } else { + nodesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + nodesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node.Builder getNodesBuilder( + int index) { + return getNodesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { + return nodesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { + return getNodesFieldBuilder().addBuilder( + flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder( + int index) { + return getNodesFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List + getNodesBuilderList() { + return getNodesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + nodes_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + nodes_ = null; + } + return nodesBuilder_; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; + + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs(flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs( + flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( + int index) { + return getOutputsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { + return getOutputsFieldBuilder().addBuilder( + flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( + int index) { + return getOutputsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List + getOutputsBuilderList() { + return getOutputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( + outputs_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private flyteidl.core.Workflow.Node failureNode_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> failureNodeBuilder_; + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public boolean hasFailureNode() { + return failureNodeBuilder_ != null || failureNode_ != null; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.Node getFailureNode() { + if (failureNodeBuilder_ == null) { + return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; + } else { + return failureNodeBuilder_.getMessage(); + } + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder setFailureNode(flyteidl.core.Workflow.Node value) { + if (failureNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failureNode_ = value; + onChanged(); + } else { + failureNodeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder setFailureNode( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (failureNodeBuilder_ == null) { + failureNode_ = builderForValue.build(); + onChanged(); + } else { + failureNodeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder mergeFailureNode(flyteidl.core.Workflow.Node value) { + if (failureNodeBuilder_ == null) { + if (failureNode_ != null) { + failureNode_ = + flyteidl.core.Workflow.Node.newBuilder(failureNode_).mergeFrom(value).buildPartial(); + } else { + failureNode_ = value; + } + onChanged(); + } else { + failureNodeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder clearFailureNode() { + if (failureNodeBuilder_ == null) { + failureNode_ = null; + onChanged(); + } else { + failureNode_ = null; + failureNodeBuilder_ = null; + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.Node.Builder getFailureNodeBuilder() { + + onChanged(); + return getFailureNodeFieldBuilder().getBuilder(); + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { + if (failureNodeBuilder_ != null) { + return failureNodeBuilder_.getMessageOrBuilder(); + } else { + return failureNode_ == null ? + flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; + } + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getFailureNodeFieldBuilder() { + if (failureNodeBuilder_ == null) { + failureNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + getFailureNode(), + getParentForChildren(), + isClean()); + failureNode_ = null; + } + return failureNodeBuilder_; + } + + private flyteidl.core.Workflow.WorkflowMetadataDefaults metadataDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder> metadataDefaultsBuilder_; + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public boolean hasMetadataDefaults() { + return metadataDefaultsBuilder_ != null || metadataDefaults_ != null; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults() { + if (metadataDefaultsBuilder_ == null) { + return metadataDefaults_ == null ? flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; + } else { + return metadataDefaultsBuilder_.getMessage(); + } + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public Builder setMetadataDefaults(flyteidl.core.Workflow.WorkflowMetadataDefaults value) { + if (metadataDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadataDefaults_ = value; + onChanged(); + } else { + metadataDefaultsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public Builder setMetadataDefaults( + flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder builderForValue) { + if (metadataDefaultsBuilder_ == null) { + metadataDefaults_ = builderForValue.build(); + onChanged(); + } else { + metadataDefaultsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public Builder mergeMetadataDefaults(flyteidl.core.Workflow.WorkflowMetadataDefaults value) { + if (metadataDefaultsBuilder_ == null) { + if (metadataDefaults_ != null) { + metadataDefaults_ = + flyteidl.core.Workflow.WorkflowMetadataDefaults.newBuilder(metadataDefaults_).mergeFrom(value).buildPartial(); + } else { + metadataDefaults_ = value; + } + onChanged(); + } else { + metadataDefaultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public Builder clearMetadataDefaults() { + if (metadataDefaultsBuilder_ == null) { + metadataDefaults_ = null; + onChanged(); + } else { + metadataDefaults_ = null; + metadataDefaultsBuilder_ = null; + } + + return this; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder getMetadataDefaultsBuilder() { + + onChanged(); + return getMetadataDefaultsFieldBuilder().getBuilder(); + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder() { + if (metadataDefaultsBuilder_ != null) { + return metadataDefaultsBuilder_.getMessageOrBuilder(); + } else { + return metadataDefaults_ == null ? + flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; + } + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder> + getMetadataDefaultsFieldBuilder() { + if (metadataDefaultsBuilder_ == null) { + metadataDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder>( + getMetadataDefaults(), + getParentForChildren(), + isClean()); + metadataDefaults_ = null; + } + return metadataDefaultsBuilder_; + } + @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:flyteidl.core.WorkflowTemplate) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowTemplate) + private static final flyteidl.core.Workflow.WorkflowTemplate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowTemplate(); + } + + public static flyteidl.core.Workflow.WorkflowTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowTemplate(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 flyteidl.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_IfBlock_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_IfBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_IfElseBlock_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BranchNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BranchNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_NodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Alias_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Alias_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Node_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Node_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowTemplate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowTemplate_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\034flyteidl/core/workflow.proto\022\rflyteidl" + + ".core\032\035flyteidl/core/condition.proto\032\035fl" + + "yteidl/core/execution.proto\032\036flyteidl/co" + + "re/identifier.proto\032\035flyteidl/core/inter" + + "face.proto\032\034flyteidl/core/literals.proto" + + "\032\031flyteidl/core/types.proto\032\036google/prot" + + "obuf/duration.proto\"f\n\007IfBlock\0223\n\tcondit" + + "ion\030\001 \001(\0132 .flyteidl.core.BooleanExpress" + + "ion\022&\n\tthen_node\030\002 \001(\0132\023.flyteidl.core.N" + + "ode\"\266\001\n\013IfElseBlock\022$\n\004case\030\001 \001(\0132\026.flyt" + + "eidl.core.IfBlock\022%\n\005other\030\002 \003(\0132\026.flyte" + + "idl.core.IfBlock\022(\n\telse_node\030\003 \001(\0132\023.fl" + + "yteidl.core.NodeH\000\022%\n\005error\030\004 \001(\0132\024.flyt" + + "eidl.core.ErrorH\000B\t\n\007default\"9\n\nBranchNo" + + "de\022+\n\007if_else\030\001 \001(\0132\032.flyteidl.core.IfEl" + + "seBlock\"J\n\010TaskNode\0221\n\014reference_id\030\001 \001(" + + "\0132\031.flyteidl.core.IdentifierH\000B\013\n\trefere" + + "nce\"\207\001\n\014WorkflowNode\0223\n\016launchplan_ref\030\001" + + " \001(\0132\031.flyteidl.core.IdentifierH\000\0225\n\020sub" + + "_workflow_ref\030\002 \001(\0132\031.flyteidl.core.Iden" + + "tifierH\000B\013\n\treference\"\247\001\n\014NodeMetadata\022\014" + + "\n\004name\030\001 \001(\t\022*\n\007timeout\030\004 \001(\0132\031.google.p" + + "rotobuf.Duration\022-\n\007retries\030\005 \001(\0132\034.flyt" + + "eidl.core.RetryStrategy\022\027\n\rinterruptible" + + "\030\006 \001(\010H\000B\025\n\023interruptible_value\"#\n\005Alias" + + "\022\013\n\003var\030\001 \001(\t\022\r\n\005alias\030\002 \001(\t\"\322\002\n\004Node\022\n\n" + + "\002id\030\001 \001(\t\022-\n\010metadata\030\002 \001(\0132\033.flyteidl.c" + + "ore.NodeMetadata\022&\n\006inputs\030\003 \003(\0132\026.flyte" + + "idl.core.Binding\022\031\n\021upstream_node_ids\030\004 " + + "\003(\t\022,\n\016output_aliases\030\005 \003(\0132\024.flyteidl.c" + + "ore.Alias\022,\n\ttask_node\030\006 \001(\0132\027.flyteidl." + + "core.TaskNodeH\000\0224\n\rworkflow_node\030\007 \001(\0132\033" + + ".flyteidl.core.WorkflowNodeH\000\0220\n\013branch_" + + "node\030\010 \001(\0132\031.flyteidl.core.BranchNodeH\000B" + + "\010\n\006target\"\347\001\n\020WorkflowMetadata\022;\n\022qualit" + + "y_of_service\030\001 \001(\0132\037.flyteidl.core.Quali" + + "tyOfService\022C\n\non_failure\030\002 \001(\0162/.flytei" + + "dl.core.WorkflowMetadata.OnFailurePolicy" + + "\"Q\n\017OnFailurePolicy\022\024\n\020FAIL_IMMEDIATELY\020" + + "\000\022(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLET" + + "E\020\001\"1\n\030WorkflowMetadataDefaults\022\025\n\rinter" + + "ruptible\030\001 \001(\010\"\332\002\n\020WorkflowTemplate\022%\n\002i" + + "d\030\001 \001(\0132\031.flyteidl.core.Identifier\0221\n\010me" + + "tadata\030\002 \001(\0132\037.flyteidl.core.WorkflowMet" + + "adata\0220\n\tinterface\030\003 \001(\0132\035.flyteidl.core" + + ".TypedInterface\022\"\n\005nodes\030\004 \003(\0132\023.flyteid" + + "l.core.Node\022\'\n\007outputs\030\005 \003(\0132\026.flyteidl." + + "core.Binding\022)\n\014failure_node\030\006 \001(\0132\023.fly" + + "teidl.core.Node\022B\n\021metadata_defaults\030\007 \001" + + "(\0132\'.flyteidl.core.WorkflowMetadataDefau" + + "ltsB2Z0github.com/lyft/flyteidl/gen/pb-g" + + "o/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Condition.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Types.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_IfBlock_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_IfBlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_IfBlock_descriptor, + new java.lang.String[] { "Condition", "ThenNode", }); + internal_static_flyteidl_core_IfElseBlock_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_IfElseBlock_descriptor, + new java.lang.String[] { "Case", "Other", "ElseNode", "Error", "Default", }); + internal_static_flyteidl_core_BranchNode_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_BranchNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BranchNode_descriptor, + new java.lang.String[] { "IfElse", }); + internal_static_flyteidl_core_TaskNode_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_TaskNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskNode_descriptor, + new java.lang.String[] { "ReferenceId", "Reference", }); + internal_static_flyteidl_core_WorkflowNode_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowNode_descriptor, + new java.lang.String[] { "LaunchplanRef", "SubWorkflowRef", "Reference", }); + internal_static_flyteidl_core_NodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_NodeMetadata_descriptor, + new java.lang.String[] { "Name", "Timeout", "Retries", "Interruptible", "InterruptibleValue", }); + internal_static_flyteidl_core_Alias_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_Alias_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Alias_descriptor, + new java.lang.String[] { "Var", "Alias", }); + internal_static_flyteidl_core_Node_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_core_Node_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Node_descriptor, + new java.lang.String[] { "Id", "Metadata", "Inputs", "UpstreamNodeIds", "OutputAliases", "TaskNode", "WorkflowNode", "BranchNode", "Target", }); + internal_static_flyteidl_core_WorkflowMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowMetadata_descriptor, + new java.lang.String[] { "QualityOfService", "OnFailure", }); + internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor, + new java.lang.String[] { "Interruptible", }); + internal_static_flyteidl_core_WorkflowTemplate_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowTemplate_descriptor, + new java.lang.String[] { "Id", "Metadata", "Interface", "Nodes", "Outputs", "FailureNode", "MetadataDefaults", }); + flyteidl.core.Condition.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Types.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java b/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java new file mode 100644 index 000000000..d1e0ffbff --- /dev/null +++ b/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java @@ -0,0 +1,1251 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow_closure.proto + +package flyteidl.core; + +public final class WorkflowClosureOuterClass { + private WorkflowClosureOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + boolean hasWorkflow(); + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + flyteidl.core.Workflow.WorkflowTemplate getWorkflow(); + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder(); + + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + java.util.List + getTasksList(); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + flyteidl.core.Tasks.TaskTemplate getTasks(int index); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + int getTasksCount(); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index); + } + /** + *
+   * Defines an enclosed package of workflow and tasks it references.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowClosure} + */ + public static final class WorkflowClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowClosure) + WorkflowClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowClosure.newBuilder() to construct. + private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowClosure() { + tasks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowClosure( + 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: { + flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; + if (workflow_ != null) { + subBuilder = workflow_.toBuilder(); + } + workflow_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflow_); + workflow_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + tasks_.add( + input.readMessage(flyteidl.core.Tasks.TaskTemplate.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_ & 0x00000002) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); + } + + private int bitField0_; + public static final int WORKFLOW_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.WorkflowTemplate workflow_; + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public boolean hasWorkflow() { + return workflow_ != null; + } + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { + return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; + } + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { + return getWorkflow(); + } + + public static final int TASKS_FIELD_NUMBER = 2; + private java.util.List tasks_; + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + return tasks_.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 (workflow_ != null) { + output.writeMessage(1, getWorkflow()); + } + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(2, tasks_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflow_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflow()); + } + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, tasks_.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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure)) { + return super.equals(obj); + } + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) obj; + + if (hasWorkflow() != other.hasWorkflow()) return false; + if (hasWorkflow()) { + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + } + if (!getTasksList() + .equals(other.getTasksList())) 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 (hasWorkflow()) { + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + } + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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(flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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; + } + /** + *
+     * Defines an enclosed package of workflow and tasks it references.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowClosure) + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); + } + + // Construct using flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTasksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (workflowBuilder_ == null) { + workflow_ = null; + } else { + workflow_ = null; + workflowBuilder_ = null; + } + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + tasksBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; + } + + @java.lang.Override + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { + return flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure build() { + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure buildPartial() { + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (workflowBuilder_ == null) { + result.workflow_ = workflow_; + } else { + result.workflow_ = workflowBuilder_.build(); + } + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) { + return mergeFrom((flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other) { + if (other == flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance()) return this; + if (other.hasWorkflow()) { + mergeWorkflow(other.getWorkflow()); + } + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000002); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + 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 { + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.Workflow.WorkflowTemplate workflow_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> workflowBuilder_; + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public boolean hasWorkflow() { + return workflowBuilder_ != null || workflow_ != null; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { + if (workflowBuilder_ == null) { + return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; + } else { + return workflowBuilder_.getMessage(); + } + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder setWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { + if (workflowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflow_ = value; + onChanged(); + } else { + workflowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder setWorkflow( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (workflowBuilder_ == null) { + workflow_ = builderForValue.build(); + onChanged(); + } else { + workflowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder mergeWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { + if (workflowBuilder_ == null) { + if (workflow_ != null) { + workflow_ = + flyteidl.core.Workflow.WorkflowTemplate.newBuilder(workflow_).mergeFrom(value).buildPartial(); + } else { + workflow_ = value; + } + onChanged(); + } else { + workflowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder clearWorkflow() { + if (workflowBuilder_ == null) { + workflow_ = null; + onChanged(); + } else { + workflow_ = null; + workflowBuilder_ = null; + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getWorkflowBuilder() { + + onChanged(); + return getWorkflowFieldBuilder().getBuilder(); + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { + if (workflowBuilder_ != null) { + return workflowBuilder_.getMessageOrBuilder(); + } else { + return workflow_ == null ? + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; + } + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getWorkflowFieldBuilder() { + if (workflowBuilder_ == null) { + workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + getWorkflow(), + getParentForChildren(), + isClean()); + workflow_ = null; + } + return workflowBuilder_; + } + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; + + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + tasks_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + @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:flyteidl.core.WorkflowClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowClosure) + private static final flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(); + } + + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowClosure(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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowClosure_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$flyteidl/core/workflow_closure.proto\022\r" + + "flyteidl.core\032\034flyteidl/core/workflow.pr" + + "oto\032\031flyteidl/core/tasks.proto\"p\n\017Workfl" + + "owClosure\0221\n\010workflow\030\001 \001(\0132\037.flyteidl.c" + + "ore.WorkflowTemplate\022*\n\005tasks\030\002 \003(\0132\033.fl" + + "yteidl.core.TaskTemplateB2Z0github.com/l" + + "yft/flyteidl/gen/pb-go/flyteidl/coreb\006pr" + + "oto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Workflow.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_WorkflowClosure_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowClosure_descriptor, + new java.lang.String[] { "Workflow", "Tasks", }); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/event/Event.java b/gen/pb-java/flyteidl/event/Event.java new file mode 100644 index 000000000..36ca67248 --- /dev/null +++ b/gen/pb-java/flyteidl/event/Event.java @@ -0,0 +1,8733 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/event/event.proto + +package flyteidl.event; + +public final class Event { + private Event() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowExecutionEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowExecutionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + boolean hasExecutionId(); + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + java.lang.String getProducerId(); + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + com.google.protobuf.ByteString + getProducerIdBytes(); + + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); + + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + boolean hasOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + java.lang.String getOutputUri(); + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + boolean hasError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + public flyteidl.event.Event.WorkflowExecutionEvent.OutputResultCase getOutputResultCase(); + } + /** + * Protobuf type {@code flyteidl.event.WorkflowExecutionEvent} + */ + public static final class WorkflowExecutionEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowExecutionEvent) + WorkflowExecutionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionEvent.newBuilder() to construct. + private WorkflowExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionEvent() { + producerId_ = ""; + phase_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionEvent( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + producerId_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 5; + outputResult_ = s; + break; + } + case 50: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 6) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 6; + 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 flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(5), + ERROR(6), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 5: return OUTPUT_URI; + case 6: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + public static final int PRODUCER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object producerId_; + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + 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(); + producerId_ = s; + return s; + } + } + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 5; + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 5) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 5) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 6; + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public boolean hasError() { + return outputResultCase_ == 6; + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (executionId_ != null) { + output.writeMessage(1, getExecutionId()); + } + if (!getProducerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + if (occurredAt_ != null) { + output.writeMessage(4, getOccurredAt()); + } + if (outputResultCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputResult_); + } + if (outputResultCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getExecutionId()); + } + if (!getProducerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOccurredAt()); + } + if (outputResultCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputResult_); + } + if (outputResultCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + 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 flyteidl.event.Event.WorkflowExecutionEvent)) { + return super.equals(obj); + } + flyteidl.event.Event.WorkflowExecutionEvent other = (flyteidl.event.Event.WorkflowExecutionEvent) obj; + + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) return false; + } + if (!getProducerId() + .equals(other.getProducerId())) return false; + if (phase_ != other.phase_) return false; + if (hasOccurredAt() != other.hasOccurredAt()) return false; + if (hasOccurredAt()) { + if (!getOccurredAt() + .equals(other.getOccurredAt())) return false; + } + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 5: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 6: + if (!getError() + .equals(other.getError())) 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(); + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; + hash = (53 * hash) + getProducerId().hashCode(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + switch (outputResultCase_) { + case 5: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 6: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowExecutionEvent 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 flyteidl.event.Event.WorkflowExecutionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowExecutionEvent 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 flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowExecutionEvent 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(flyteidl.event.Event.WorkflowExecutionEvent 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 flyteidl.event.WorkflowExecutionEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowExecutionEvent) + flyteidl.event.Event.WorkflowExecutionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); + } + + // Construct using flyteidl.event.Event.WorkflowExecutionEvent.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 (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + producerId_ = ""; + + phase_ = 0; + + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { + return flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowExecutionEvent build() { + flyteidl.event.Event.WorkflowExecutionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowExecutionEvent buildPartial() { + flyteidl.event.Event.WorkflowExecutionEvent result = new flyteidl.event.Event.WorkflowExecutionEvent(this); + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.build(); + } + result.producerId_ = producerId_; + result.phase_ = phase_; + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + if (outputResultCase_ == 5) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 6) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + result.outputResultCase_ = outputResultCase_; + 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 flyteidl.event.Event.WorkflowExecutionEvent) { + return mergeFrom((flyteidl.event.Event.WorkflowExecutionEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.WorkflowExecutionEvent other) { + if (other == flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance()) return this; + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + if (!other.getProducerId().isEmpty()) { + producerId_ = other.producerId_; + onChanged(); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 5; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_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 { + flyteidl.event.Event.WorkflowExecutionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.WorkflowExecutionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + + private java.lang.Object producerId_ = ""; + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + producerId_ = value; + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder clearProducerId() { + + producerId_ = getDefaultInstance().getProducerId(); + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + producerId_ = value; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp occurredAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 5) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 5) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 5; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 5) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 5; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public boolean hasError() { + return outputResultCase_ == 6; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 6) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 6; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 6; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 6 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 6) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 6; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 6) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 6) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 6) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 6)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 6; + onChanged();; + return errorBuilder_; + } + @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:flyteidl.event.WorkflowExecutionEvent) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowExecutionEvent) + private static final flyteidl.event.Event.WorkflowExecutionEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowExecutionEvent(); + } + + public static flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionEvent(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 flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.NodeExecutionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + java.lang.String getProducerId(); + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + com.google.protobuf.ByteString + getProducerIdBytes(); + + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + flyteidl.core.Execution.NodeExecution.Phase getPhase(); + + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + boolean hasOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + * string input_uri = 5; + */ + java.lang.String getInputUri(); + /** + * string input_uri = 5; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + java.lang.String getOutputUri(); + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + boolean hasError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + boolean hasWorkflowNodeMetadata(); + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata(); + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); + + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + boolean hasParentTaskMetadata(); + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata(); + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder(); + + public flyteidl.event.Event.NodeExecutionEvent.OutputResultCase getOutputResultCase(); + + public flyteidl.event.Event.NodeExecutionEvent.TargetMetadataCase getTargetMetadataCase(); + } + /** + * Protobuf type {@code flyteidl.event.NodeExecutionEvent} + */ + public static final class NodeExecutionEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.NodeExecutionEvent) + NodeExecutionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionEvent.newBuilder() to construct. + private NodeExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionEvent() { + producerId_ = ""; + phase_ = 0; + inputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionEvent( + 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: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + producerId_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 6; + outputResult_ = s; + break; + } + case 58: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 7) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 7; + break; + } + case 66: { + flyteidl.event.Event.WorkflowNodeMetadata.Builder subBuilder = null; + if (targetMetadataCase_ == 8) { + subBuilder = ((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_).toBuilder(); + } + targetMetadata_ = + input.readMessage(flyteidl.event.Event.WorkflowNodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); + targetMetadata_ = subBuilder.buildPartial(); + } + targetMetadataCase_ = 8; + break; + } + case 74: { + flyteidl.event.Event.ParentTaskExecutionMetadata.Builder subBuilder = null; + if (parentTaskMetadata_ != null) { + subBuilder = parentTaskMetadata_.toBuilder(); + } + parentTaskMetadata_ = input.readMessage(flyteidl.event.Event.ParentTaskExecutionMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentTaskMetadata_); + parentTaskMetadata_ = 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 flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(6), + ERROR(7), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 6: return OUTPUT_URI; + case 7: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public enum TargetMetadataCase + implements com.google.protobuf.Internal.EnumLite { + WORKFLOW_NODE_METADATA(8), + TARGETMETADATA_NOT_SET(0); + private final int value; + private TargetMetadataCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static TargetMetadataCase forNumber(int value) { + switch (value) { + case 8: return WORKFLOW_NODE_METADATA; + case 0: return TARGETMETADATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int PRODUCER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object producerId_; + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + 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(); + producerId_ = s; + return s; + } + } + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 5; + private volatile java.lang.Object inputUri_; + /** + * string input_uri = 5; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + 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(); + inputUri_ = s; + return s; + } + } + /** + * string input_uri = 5; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 6; + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 6) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 6) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 7; + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public boolean hasError() { + return outputResultCase_ == 7; + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + + public static final int PARENT_TASK_METADATA_FIELD_NUMBER = 9; + private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_; + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public boolean hasParentTaskMetadata() { + return parentTaskMetadata_ != null; + } + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { + return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; + } + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { + return getParentTaskMetadata(); + } + + 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 (!getProducerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + if (occurredAt_ != null) { + output.writeMessage(4, getOccurredAt()); + } + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, inputUri_); + } + if (outputResultCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, outputResult_); + } + if (outputResultCase_ == 7) { + output.writeMessage(7, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (targetMetadataCase_ == 8) { + output.writeMessage(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); + } + if (parentTaskMetadata_ != null) { + output.writeMessage(9, getParentTaskMetadata()); + } + 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 (!getProducerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOccurredAt()); + } + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputUri_); + } + if (outputResultCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, outputResult_); + } + if (outputResultCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (targetMetadataCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); + } + if (parentTaskMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getParentTaskMetadata()); + } + 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 flyteidl.event.Event.NodeExecutionEvent)) { + return super.equals(obj); + } + flyteidl.event.Event.NodeExecutionEvent other = (flyteidl.event.Event.NodeExecutionEvent) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getProducerId() + .equals(other.getProducerId())) return false; + if (phase_ != other.phase_) return false; + if (hasOccurredAt() != other.hasOccurredAt()) return false; + if (hasOccurredAt()) { + if (!getOccurredAt() + .equals(other.getOccurredAt())) return false; + } + if (!getInputUri() + .equals(other.getInputUri())) return false; + if (hasParentTaskMetadata() != other.hasParentTaskMetadata()) return false; + if (hasParentTaskMetadata()) { + if (!getParentTaskMetadata() + .equals(other.getParentTaskMetadata())) return false; + } + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 6: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 7: + if (!getError() + .equals(other.getError())) return false; + break; + case 0: + default: + } + if (!getTargetMetadataCase().equals(other.getTargetMetadataCase())) return false; + switch (targetMetadataCase_) { + case 8: + if (!getWorkflowNodeMetadata() + .equals(other.getWorkflowNodeMetadata())) 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(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; + hash = (53 * hash) + getProducerId().hashCode(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasParentTaskMetadata()) { + hash = (37 * hash) + PARENT_TASK_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getParentTaskMetadata().hashCode(); + } + switch (outputResultCase_) { + case 6: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 7: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + switch (targetMetadataCase_) { + case 8: + hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.NodeExecutionEvent 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 flyteidl.event.Event.NodeExecutionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.NodeExecutionEvent 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 flyteidl.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.NodeExecutionEvent 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(flyteidl.event.Event.NodeExecutionEvent 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 flyteidl.event.NodeExecutionEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.NodeExecutionEvent) + flyteidl.event.Event.NodeExecutionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); + } + + // Construct using flyteidl.event.Event.NodeExecutionEvent.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + producerId_ = ""; + + phase_ = 0; + + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + inputUri_ = ""; + + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadata_ = null; + } else { + parentTaskMetadata_ = null; + parentTaskMetadataBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + targetMetadataCase_ = 0; + targetMetadata_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.NodeExecutionEvent getDefaultInstanceForType() { + return flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.NodeExecutionEvent build() { + flyteidl.event.Event.NodeExecutionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.NodeExecutionEvent buildPartial() { + flyteidl.event.Event.NodeExecutionEvent result = new flyteidl.event.Event.NodeExecutionEvent(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.producerId_ = producerId_; + result.phase_ = phase_; + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (outputResultCase_ == 6) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 7) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (targetMetadataCase_ == 8) { + if (workflowNodeMetadataBuilder_ == null) { + result.targetMetadata_ = targetMetadata_; + } else { + result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); + } + } + if (parentTaskMetadataBuilder_ == null) { + result.parentTaskMetadata_ = parentTaskMetadata_; + } else { + result.parentTaskMetadata_ = parentTaskMetadataBuilder_.build(); + } + result.outputResultCase_ = outputResultCase_; + result.targetMetadataCase_ = targetMetadataCase_; + 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 flyteidl.event.Event.NodeExecutionEvent) { + return mergeFrom((flyteidl.event.Event.NodeExecutionEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.NodeExecutionEvent other) { + if (other == flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getProducerId().isEmpty()) { + producerId_ = other.producerId_; + onChanged(); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasParentTaskMetadata()) { + mergeParentTaskMetadata(other.getParentTaskMetadata()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 6; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + switch (other.getTargetMetadataCase()) { + case WORKFLOW_NODE_METADATA: { + mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); + break; + } + case TARGETMETADATA_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 { + flyteidl.event.Event.NodeExecutionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.NodeExecutionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public Builder clearTargetMetadata() { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object producerId_ = ""; + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + producerId_ = value; + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder clearProducerId() { + + producerId_ = getDefaultInstance().getProducerId(); + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + producerId_ = value; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp occurredAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + * string input_uri = 5; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string input_uri = 5; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string input_uri = 5; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + * string input_uri = 5; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + * string input_uri = 5; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 6) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 6) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 6; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 6) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 6; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public boolean hasError() { + return outputResultCase_ == 7; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 7) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 7 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 7) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 7) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 7) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 7) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 7)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 7; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } else { + if (targetMetadataCase_ == 8) { + return workflowNodeMetadataBuilder_.getMessage(); + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetMetadata_ = value; + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata( + flyteidl.event.Event.WorkflowNodeMetadata.Builder builderForValue) { + if (workflowNodeMetadataBuilder_ == null) { + targetMetadata_ = builderForValue.build(); + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder mergeWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8 && + targetMetadata_ != flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) { + targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.newBuilder((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_) + .mergeFrom(value).buildPartial(); + } else { + targetMetadata_ = value; + } + onChanged(); + } else { + if (targetMetadataCase_ == 8) { + workflowNodeMetadataBuilder_.mergeFrom(value); + } + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder clearWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + } + } else { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + } + workflowNodeMetadataBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { + return getWorkflowNodeMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { + return workflowNodeMetadataBuilder_.getMessageOrBuilder(); + } else { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> + getWorkflowNodeMetadataFieldBuilder() { + if (workflowNodeMetadataBuilder_ == null) { + if (!(targetMetadataCase_ == 8)) { + targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder>( + (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_, + getParentForChildren(), + isClean()); + targetMetadata_ = null; + } + targetMetadataCase_ = 8; + onChanged();; + return workflowNodeMetadataBuilder_; + } + + private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> parentTaskMetadataBuilder_; + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public boolean hasParentTaskMetadata() { + return parentTaskMetadataBuilder_ != null || parentTaskMetadata_ != null; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { + if (parentTaskMetadataBuilder_ == null) { + return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; + } else { + return parentTaskMetadataBuilder_.getMessage(); + } + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder setParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { + if (parentTaskMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentTaskMetadata_ = value; + onChanged(); + } else { + parentTaskMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder setParentTaskMetadata( + flyteidl.event.Event.ParentTaskExecutionMetadata.Builder builderForValue) { + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadata_ = builderForValue.build(); + onChanged(); + } else { + parentTaskMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder mergeParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { + if (parentTaskMetadataBuilder_ == null) { + if (parentTaskMetadata_ != null) { + parentTaskMetadata_ = + flyteidl.event.Event.ParentTaskExecutionMetadata.newBuilder(parentTaskMetadata_).mergeFrom(value).buildPartial(); + } else { + parentTaskMetadata_ = value; + } + onChanged(); + } else { + parentTaskMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder clearParentTaskMetadata() { + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadata_ = null; + onChanged(); + } else { + parentTaskMetadata_ = null; + parentTaskMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadata.Builder getParentTaskMetadataBuilder() { + + onChanged(); + return getParentTaskMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { + if (parentTaskMetadataBuilder_ != null) { + return parentTaskMetadataBuilder_.getMessageOrBuilder(); + } else { + return parentTaskMetadata_ == null ? + flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; + } + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> + getParentTaskMetadataFieldBuilder() { + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder>( + getParentTaskMetadata(), + getParentForChildren(), + isClean()); + parentTaskMetadata_ = null; + } + return parentTaskMetadataBuilder_; + } + @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:flyteidl.event.NodeExecutionEvent) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.NodeExecutionEvent) + private static final flyteidl.event.Event.NodeExecutionEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.NodeExecutionEvent(); + } + + public static flyteidl.event.Event.NodeExecutionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionEvent(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 flyteidl.event.Event.NodeExecutionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowNodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowNodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + boolean hasExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + } + /** + *
+   * For Workflow Nodes we need to send information about the workflow that's launched
+   * 
+ * + * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} + */ + public static final class WorkflowNodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowNodeMetadata) + WorkflowNodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowNodeMetadata.newBuilder() to construct. + private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowNodeMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowNodeMetadata( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = 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 flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + 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 (executionId_ != null) { + output.writeMessage(1, getExecutionId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getExecutionId()); + } + 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 flyteidl.event.Event.WorkflowNodeMetadata)) { + return super.equals(obj); + } + flyteidl.event.Event.WorkflowNodeMetadata other = (flyteidl.event.Event.WorkflowNodeMetadata) obj; + + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) 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 (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowNodeMetadata 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 flyteidl.event.Event.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowNodeMetadata 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 flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowNodeMetadata 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(flyteidl.event.Event.WorkflowNodeMetadata 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; + } + /** + *
+     * For Workflow Nodes we need to send information about the workflow that's launched
+     * 
+ * + * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowNodeMetadata) + flyteidl.event.Event.WorkflowNodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); + } + + // Construct using flyteidl.event.Event.WorkflowNodeMetadata.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 (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowNodeMetadata build() { + flyteidl.event.Event.WorkflowNodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowNodeMetadata buildPartial() { + flyteidl.event.Event.WorkflowNodeMetadata result = new flyteidl.event.Event.WorkflowNodeMetadata(this); + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.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 flyteidl.event.Event.WorkflowNodeMetadata) { + return mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.WorkflowNodeMetadata other) { + if (other == flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) return this; + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + 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 { + flyteidl.event.Event.WorkflowNodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.WorkflowNodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + @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:flyteidl.event.WorkflowNodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowNodeMetadata) + private static final flyteidl.event.Event.WorkflowNodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowNodeMetadata(); + } + + public static flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowNodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowNodeMetadata(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 flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParentTaskExecutionMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.ParentTaskExecutionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.event.ParentTaskExecutionMetadata} + */ + public static final class ParentTaskExecutionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.ParentTaskExecutionMetadata) + ParentTaskExecutionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParentTaskExecutionMetadata.newBuilder() to construct. + private ParentTaskExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParentTaskExecutionMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParentTaskExecutionMetadata( + 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: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.event.Event.ParentTaskExecutionMetadata)) { + return super.equals(obj); + } + flyteidl.event.Event.ParentTaskExecutionMetadata other = (flyteidl.event.Event.ParentTaskExecutionMetadata) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata 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 flyteidl.event.Event.ParentTaskExecutionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata 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 flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata 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(flyteidl.event.Event.ParentTaskExecutionMetadata 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 flyteidl.event.ParentTaskExecutionMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.ParentTaskExecutionMetadata) + flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); + } + + // Construct using flyteidl.event.Event.ParentTaskExecutionMetadata.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { + return flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.ParentTaskExecutionMetadata build() { + flyteidl.event.Event.ParentTaskExecutionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.ParentTaskExecutionMetadata buildPartial() { + flyteidl.event.Event.ParentTaskExecutionMetadata result = new flyteidl.event.Event.ParentTaskExecutionMetadata(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.event.Event.ParentTaskExecutionMetadata) { + return mergeFrom((flyteidl.event.Event.ParentTaskExecutionMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.ParentTaskExecutionMetadata other) { + if (other == flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.event.Event.ParentTaskExecutionMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.ParentTaskExecutionMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.event.ParentTaskExecutionMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.ParentTaskExecutionMetadata) + private static final flyteidl.event.Event.ParentTaskExecutionMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.ParentTaskExecutionMetadata(); + } + + public static flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParentTaskExecutionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParentTaskExecutionMetadata(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 flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.TaskExecutionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + boolean hasTaskId(); + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); + + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + boolean hasParentNodeExecutionId(); + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId(); + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder(); + + /** + *
+     * retry attempt number for this task, ie., 2 for the second attempt
+     * 
+ * + * uint32 retry_attempt = 3; + */ + int getRetryAttempt(); + + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + int getPhaseValue(); + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + flyteidl.core.Execution.TaskExecution.Phase getPhase(); + + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + java.lang.String getProducerId(); + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + com.google.protobuf.ByteString + getProducerIdBytes(); + + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + java.util.List + getLogsList(); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + flyteidl.core.Execution.TaskLog getLogs(int index); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + int getLogsCount(); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + java.util.List + getLogsOrBuilderList(); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index); + + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + boolean hasOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + java.lang.String getInputUri(); + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + java.lang.String getOutputUri(); + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + boolean hasError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + boolean hasCustomInfo(); + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + com.google.protobuf.Struct getCustomInfo(); + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); + + /** + *
+     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+     * that should be recorded regardless of the lack of phase change.
+     * The version field should be incremented when metadata changes across the duration of an individual phase.
+     * 
+ * + * uint32 phase_version = 12; + */ + int getPhaseVersion(); + + public flyteidl.event.Event.TaskExecutionEvent.OutputResultCase getOutputResultCase(); + } + /** + *
+   * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
+   * 
+ * + * Protobuf type {@code flyteidl.event.TaskExecutionEvent} + */ + public static final class TaskExecutionEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.TaskExecutionEvent) + TaskExecutionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionEvent.newBuilder() to construct. + private TaskExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionEvent() { + phase_ = 0; + producerId_ = ""; + logs_ = java.util.Collections.emptyList(); + inputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionEvent( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (taskId_ != null) { + subBuilder = taskId_.toBuilder(); + } + taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskId_); + taskId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (parentNodeExecutionId_ != null) { + subBuilder = parentNodeExecutionId_.toBuilder(); + } + parentNodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentNodeExecutionId_); + parentNodeExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + retryAttempt_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + producerId_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + logs_.add( + input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 9; + outputResult_ = s; + break; + } + case 82: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 10) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 10; + break; + } + case 90: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (customInfo_ != null) { + subBuilder = customInfo_.toBuilder(); + } + customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customInfo_); + customInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 96: { + + phaseVersion_ = input.readUInt32(); + 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_ & 0x00000020) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); + } + + private int bitField0_; + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(9), + ERROR(10), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 9: return OUTPUT_URI; + case 10: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int TASK_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskId_ != null; + } + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + return getTaskId(); + } + + public static final int PARENT_NODE_EXECUTION_ID_FIELD_NUMBER = 2; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_; + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public boolean hasParentNodeExecutionId() { + return parentNodeExecutionId_ != null; + } + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { + return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; + } + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { + return getParentNodeExecutionId(); + } + + public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; + private int retryAttempt_; + /** + *
+     * retry attempt number for this task, ie., 2 for the second attempt
+     * 
+ * + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + + public static final int PHASE_FIELD_NUMBER = 4; + private int phase_; + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + + public static final int PRODUCER_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object producerId_; + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + 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(); + producerId_ = s; + return s; + } + } + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGS_FIELD_NUMBER = 6; + private java.util.List logs_; + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List getLogsList() { + return logs_; + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public int getLogsCount() { + return logs_.size(); + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + return logs_.get(index); + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 8; + private volatile java.lang.Object inputUri_; + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + 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(); + inputUri_ = s; + return s; + } + } + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 9; + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 9) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 9) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 10; + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public boolean hasError() { + return outputResultCase_ == 10; + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int CUSTOM_INFO_FIELD_NUMBER = 11; + private com.google.protobuf.Struct customInfo_; + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public boolean hasCustomInfo() { + return customInfo_ != null; + } + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.Struct getCustomInfo() { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + return getCustomInfo(); + } + + public static final int PHASE_VERSION_FIELD_NUMBER = 12; + private int phaseVersion_; + /** + *
+     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+     * that should be recorded regardless of the lack of phase change.
+     * The version field should be incremented when metadata changes across the duration of an individual phase.
+     * 
+ * + * uint32 phase_version = 12; + */ + public int getPhaseVersion() { + return phaseVersion_; + } + + 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 (taskId_ != null) { + output.writeMessage(1, getTaskId()); + } + if (parentNodeExecutionId_ != null) { + output.writeMessage(2, getParentNodeExecutionId()); + } + if (retryAttempt_ != 0) { + output.writeUInt32(3, retryAttempt_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(4, phase_); + } + if (!getProducerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, producerId_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(6, logs_.get(i)); + } + if (occurredAt_ != null) { + output.writeMessage(7, getOccurredAt()); + } + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, inputUri_); + } + if (outputResultCase_ == 9) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, outputResult_); + } + if (outputResultCase_ == 10) { + output.writeMessage(10, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (customInfo_ != null) { + output.writeMessage(11, getCustomInfo()); + } + if (phaseVersion_ != 0) { + output.writeUInt32(12, phaseVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTaskId()); + } + if (parentNodeExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getParentNodeExecutionId()); + } + if (retryAttempt_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, retryAttempt_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, phase_); + } + if (!getProducerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, producerId_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, logs_.get(i)); + } + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getOccurredAt()); + } + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, inputUri_); + } + if (outputResultCase_ == 9) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, outputResult_); + } + if (outputResultCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (customInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getCustomInfo()); + } + if (phaseVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(12, phaseVersion_); + } + 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 flyteidl.event.Event.TaskExecutionEvent)) { + return super.equals(obj); + } + flyteidl.event.Event.TaskExecutionEvent other = (flyteidl.event.Event.TaskExecutionEvent) obj; + + if (hasTaskId() != other.hasTaskId()) return false; + if (hasTaskId()) { + if (!getTaskId() + .equals(other.getTaskId())) return false; + } + if (hasParentNodeExecutionId() != other.hasParentNodeExecutionId()) return false; + if (hasParentNodeExecutionId()) { + if (!getParentNodeExecutionId() + .equals(other.getParentNodeExecutionId())) return false; + } + if (getRetryAttempt() + != other.getRetryAttempt()) return false; + if (phase_ != other.phase_) return false; + if (!getProducerId() + .equals(other.getProducerId())) return false; + if (!getLogsList() + .equals(other.getLogsList())) return false; + if (hasOccurredAt() != other.hasOccurredAt()) return false; + if (hasOccurredAt()) { + if (!getOccurredAt() + .equals(other.getOccurredAt())) return false; + } + if (!getInputUri() + .equals(other.getInputUri())) return false; + if (hasCustomInfo() != other.hasCustomInfo()) return false; + if (hasCustomInfo()) { + if (!getCustomInfo() + .equals(other.getCustomInfo())) return false; + } + if (getPhaseVersion() + != other.getPhaseVersion()) return false; + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 9: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 10: + if (!getError() + .equals(other.getError())) 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(); + if (hasTaskId()) { + hash = (37 * hash) + TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskId().hashCode(); + } + if (hasParentNodeExecutionId()) { + hash = (37 * hash) + PARENT_NODE_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getParentNodeExecutionId().hashCode(); + } + hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; + hash = (53 * hash) + getRetryAttempt(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; + hash = (53 * hash) + getProducerId().hashCode(); + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasCustomInfo()) { + hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCustomInfo().hashCode(); + } + hash = (37 * hash) + PHASE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPhaseVersion(); + switch (outputResultCase_) { + case 9: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 10: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionEvent 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 flyteidl.event.Event.TaskExecutionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionEvent 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 flyteidl.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionEvent 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(flyteidl.event.Event.TaskExecutionEvent 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; + } + /** + *
+     * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
+     * 
+ * + * Protobuf type {@code flyteidl.event.TaskExecutionEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.TaskExecutionEvent) + flyteidl.event.Event.TaskExecutionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); + } + + // Construct using flyteidl.event.Event.TaskExecutionEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (taskIdBuilder_ == null) { + taskId_ = null; + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionId_ = null; + } else { + parentNodeExecutionId_ = null; + parentNodeExecutionIdBuilder_ = null; + } + retryAttempt_ = 0; + + phase_ = 0; + + producerId_ = ""; + + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + logsBuilder_.clear(); + } + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + inputUri_ = ""; + + if (customInfoBuilder_ == null) { + customInfo_ = null; + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + phaseVersion_ = 0; + + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionEvent getDefaultInstanceForType() { + return flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionEvent build() { + flyteidl.event.Event.TaskExecutionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionEvent buildPartial() { + flyteidl.event.Event.TaskExecutionEvent result = new flyteidl.event.Event.TaskExecutionEvent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (taskIdBuilder_ == null) { + result.taskId_ = taskId_; + } else { + result.taskId_ = taskIdBuilder_.build(); + } + if (parentNodeExecutionIdBuilder_ == null) { + result.parentNodeExecutionId_ = parentNodeExecutionId_; + } else { + result.parentNodeExecutionId_ = parentNodeExecutionIdBuilder_.build(); + } + result.retryAttempt_ = retryAttempt_; + result.phase_ = phase_; + result.producerId_ = producerId_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (outputResultCase_ == 9) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 10) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (customInfoBuilder_ == null) { + result.customInfo_ = customInfo_; + } else { + result.customInfo_ = customInfoBuilder_.build(); + } + result.phaseVersion_ = phaseVersion_; + result.bitField0_ = to_bitField0_; + result.outputResultCase_ = outputResultCase_; + 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 flyteidl.event.Event.TaskExecutionEvent) { + return mergeFrom((flyteidl.event.Event.TaskExecutionEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.TaskExecutionEvent other) { + if (other == flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance()) return this; + if (other.hasTaskId()) { + mergeTaskId(other.getTaskId()); + } + if (other.hasParentNodeExecutionId()) { + mergeParentNodeExecutionId(other.getParentNodeExecutionId()); + } + if (other.getRetryAttempt() != 0) { + setRetryAttempt(other.getRetryAttempt()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (!other.getProducerId().isEmpty()) { + producerId_ = other.producerId_; + onChanged(); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000020); + logsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasCustomInfo()) { + mergeCustomInfo(other.getCustomInfo()); + } + if (other.getPhaseVersion() != 0) { + setPhaseVersion(other.getPhaseVersion()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 9; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_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 { + flyteidl.event.Event.TaskExecutionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.TaskExecutionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskIdBuilder_ != null || taskId_ != null; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + if (taskIdBuilder_ == null) { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } else { + return taskIdBuilder_.getMessage(); + } + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskId_ = value; + onChanged(); + } else { + taskIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (taskIdBuilder_ == null) { + taskId_ = builderForValue.build(); + onChanged(); + } else { + taskIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (taskId_ != null) { + taskId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); + } else { + taskId_ = value; + } + onChanged(); + } else { + taskIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder clearTaskId() { + if (taskIdBuilder_ == null) { + taskId_ = null; + onChanged(); + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { + + onChanged(); + return getTaskIdFieldBuilder().getBuilder(); + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + if (taskIdBuilder_ != null) { + return taskIdBuilder_.getMessageOrBuilder(); + } else { + return taskId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getTaskIdFieldBuilder() { + if (taskIdBuilder_ == null) { + taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getTaskId(), + getParentForChildren(), + isClean()); + taskId_ = null; + } + return taskIdBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionIdBuilder_; + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public boolean hasParentNodeExecutionId() { + return parentNodeExecutionIdBuilder_ != null || parentNodeExecutionId_ != null; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { + if (parentNodeExecutionIdBuilder_ == null) { + return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; + } else { + return parentNodeExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder setParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentNodeExecutionId_ = value; + onChanged(); + } else { + parentNodeExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder setParentNodeExecutionId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionId_ = builderForValue.build(); + onChanged(); + } else { + parentNodeExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder mergeParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionIdBuilder_ == null) { + if (parentNodeExecutionId_ != null) { + parentNodeExecutionId_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecutionId_).mergeFrom(value).buildPartial(); + } else { + parentNodeExecutionId_ = value; + } + onChanged(); + } else { + parentNodeExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder clearParentNodeExecutionId() { + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionId_ = null; + onChanged(); + } else { + parentNodeExecutionId_ = null; + parentNodeExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionIdBuilder() { + + onChanged(); + return getParentNodeExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { + if (parentNodeExecutionIdBuilder_ != null) { + return parentNodeExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return parentNodeExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; + } + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getParentNodeExecutionIdFieldBuilder() { + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getParentNodeExecutionId(), + getParentForChildren(), + isClean()); + parentNodeExecutionId_ = null; + } + return parentNodeExecutionIdBuilder_; + } + + private int retryAttempt_ ; + /** + *
+       * retry attempt number for this task, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + /** + *
+       * retry attempt number for this task, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public Builder setRetryAttempt(int value) { + + retryAttempt_ = value; + onChanged(); + return this; + } + /** + *
+       * retry attempt number for this task, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public Builder clearRetryAttempt() { + + retryAttempt_ = 0; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private java.lang.Object producerId_ = ""; + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public Builder setProducerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + producerId_ = value; + onChanged(); + return this; + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public Builder clearProducerId() { + + producerId_ = getDefaultInstance().getProducerId(); + onChanged(); + return this; + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public Builder setProducerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + producerId_ = value; + onChanged(); + return this; + } + + private java.util.List logs_ = + java.util.Collections.emptyList(); + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; + + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs(flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder( + index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( + logs_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } + + private com.google.protobuf.Timestamp occurredAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 9) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 9) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 9; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 9) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 9; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public boolean hasError() { + return outputResultCase_ == 10; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 10) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 10 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 10) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 10) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 10)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 10; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.Struct customInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public boolean hasCustomInfo() { + return customInfoBuilder_ != null || customInfo_ != null; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.Struct getCustomInfo() { + if (customInfoBuilder_ == null) { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } else { + return customInfoBuilder_.getMessage(); + } + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder setCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customInfo_ = value; + onChanged(); + } else { + customInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder setCustomInfo( + com.google.protobuf.Struct.Builder builderForValue) { + if (customInfoBuilder_ == null) { + customInfo_ = builderForValue.build(); + onChanged(); + } else { + customInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder mergeCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (customInfo_ != null) { + customInfo_ = + com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); + } else { + customInfo_ = value; + } + onChanged(); + } else { + customInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder clearCustomInfo() { + if (customInfoBuilder_ == null) { + customInfo_ = null; + onChanged(); + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { + + onChanged(); + return getCustomInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + if (customInfoBuilder_ != null) { + return customInfoBuilder_.getMessageOrBuilder(); + } else { + return customInfo_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomInfoFieldBuilder() { + if (customInfoBuilder_ == null) { + customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustomInfo(), + getParentForChildren(), + isClean()); + customInfo_ = null; + } + return customInfoBuilder_; + } + + private int phaseVersion_ ; + /** + *
+       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+       * that should be recorded regardless of the lack of phase change.
+       * The version field should be incremented when metadata changes across the duration of an individual phase.
+       * 
+ * + * uint32 phase_version = 12; + */ + public int getPhaseVersion() { + return phaseVersion_; + } + /** + *
+       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+       * that should be recorded regardless of the lack of phase change.
+       * The version field should be incremented when metadata changes across the duration of an individual phase.
+       * 
+ * + * uint32 phase_version = 12; + */ + public Builder setPhaseVersion(int value) { + + phaseVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+       * that should be recorded regardless of the lack of phase change.
+       * The version field should be incremented when metadata changes across the duration of an individual phase.
+       * 
+ * + * uint32 phase_version = 12; + */ + public Builder clearPhaseVersion() { + + phaseVersion_ = 0; + 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:flyteidl.event.TaskExecutionEvent) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionEvent) + private static final flyteidl.event.Event.TaskExecutionEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.TaskExecutionEvent(); + } + + public static flyteidl.event.Event.TaskExecutionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionEvent(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 flyteidl.event.Event.TaskExecutionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_TaskExecutionEvent_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\032flyteidl/event/event.proto\022\016flyteidl.e" + + "vent\032\035flyteidl/core/execution.proto\032\036fly" + + "teidl/core/identifier.proto\032\037google/prot" + + "obuf/timestamp.proto\032\034google/protobuf/st" + + "ruct.proto\"\256\002\n\026WorkflowExecutionEvent\022@\n" + + "\014execution_id\030\001 \001(\0132*.flyteidl.core.Work" + + "flowExecutionIdentifier\022\023\n\013producer_id\030\002" + + " \001(\t\0225\n\005phase\030\003 \001(\0162&.flyteidl.core.Work" + + "flowExecution.Phase\022/\n\013occurred_at\030\004 \001(\013" + + "2\032.google.protobuf.Timestamp\022\024\n\noutput_u" + + "ri\030\005 \001(\tH\000\022.\n\005error\030\006 \001(\0132\035.flyteidl.cor" + + "e.ExecutionErrorH\000B\017\n\routput_result\"\321\003\n\022" + + "NodeExecutionEvent\0222\n\002id\030\001 \001(\0132&.flyteid" + + "l.core.NodeExecutionIdentifier\022\023\n\013produc" + + "er_id\030\002 \001(\t\0221\n\005phase\030\003 \001(\0162\".flyteidl.co" + + "re.NodeExecution.Phase\022/\n\013occurred_at\030\004 " + + "\001(\0132\032.google.protobuf.Timestamp\022\021\n\tinput" + + "_uri\030\005 \001(\t\022\024\n\noutput_uri\030\006 \001(\tH\000\022.\n\005erro" + + "r\030\007 \001(\0132\035.flyteidl.core.ExecutionErrorH\000" + + "\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyte" + + "idl.event.WorkflowNodeMetadataH\001\022I\n\024pare" + + "nt_task_metadata\030\t \001(\0132+.flyteidl.event." + + "ParentTaskExecutionMetadataB\017\n\routput_re" + + "sultB\021\n\017target_metadata\"X\n\024WorkflowNodeM" + + "etadata\022@\n\014execution_id\030\001 \001(\0132*.flyteidl" + + ".core.WorkflowExecutionIdentifier\"Q\n\033Par" + + "entTaskExecutionMetadata\0222\n\002id\030\001 \001(\0132&.f" + + "lyteidl.core.TaskExecutionIdentifier\"\357\003\n" + + "\022TaskExecutionEvent\022*\n\007task_id\030\001 \001(\0132\031.f" + + "lyteidl.core.Identifier\022H\n\030parent_node_e" + + "xecution_id\030\002 \001(\0132&.flyteidl.core.NodeEx" + + "ecutionIdentifier\022\025\n\rretry_attempt\030\003 \001(\r" + + "\0221\n\005phase\030\004 \001(\0162\".flyteidl.core.TaskExec" + + "ution.Phase\022\023\n\013producer_id\030\005 \001(\t\022$\n\004logs" + + "\030\006 \003(\0132\026.flyteidl.core.TaskLog\022/\n\013occurr" + + "ed_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022" + + "\021\n\tinput_uri\030\010 \001(\t\022\024\n\noutput_uri\030\t \001(\tH\000" + + "\022.\n\005error\030\n \001(\0132\035.flyteidl.core.Executio" + + "nErrorH\000\022,\n\013custom_info\030\013 \001(\0132\027.google.p" + + "rotobuf.Struct\022\025\n\rphase_version\030\014 \001(\rB\017\n" + + "\routput_resultB3Z1github.com/lyft/flytei" + + "dl/gen/pb-go/flyteidl/eventb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor, + new java.lang.String[] { "ExecutionId", "ProducerId", "Phase", "OccurredAt", "OutputUri", "Error", "OutputResult", }); + internal_static_flyteidl_event_NodeExecutionEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_NodeExecutionEvent_descriptor, + new java.lang.String[] { "Id", "ProducerId", "Phase", "OccurredAt", "InputUri", "OutputUri", "Error", "WorkflowNodeMetadata", "ParentTaskMetadata", "OutputResult", "TargetMetadata", }); + internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor, + new java.lang.String[] { "ExecutionId", }); + internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_event_TaskExecutionEvent_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_TaskExecutionEvent_descriptor, + new java.lang.String[] { "TaskId", "ParentNodeExecutionId", "RetryAttempt", "Phase", "ProducerId", "Logs", "OccurredAt", "InputUri", "OutputUri", "Error", "CustomInfo", "PhaseVersion", "OutputResult", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java b/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java new file mode 100644 index 000000000..2d04618c4 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java @@ -0,0 +1,759 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/array_job.proto + +package flyteidl.plugins; + +public final class ArrayJobOuterClass { + private ArrayJobOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ArrayJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.ArrayJob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+     * running instances might be more. This has to be a positive number if assigned. Default value is size.
+     * 
+ * + * int64 parallelism = 1; + */ + long getParallelism(); + + /** + *
+     * Defines the number of instances to launch at most. This number should match the size of the input if the job
+     * requires processing of all input data. This has to be a positive number.
+     * +required.
+     * 
+ * + * int64 size = 2; + */ + long getSize(); + + /** + *
+     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+     * assigned. Default value is size.
+     * 
+ * + * int64 min_successes = 3; + */ + long getMinSuccesses(); + } + /** + *
+   * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
+   * will be executed concurrently.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.ArrayJob} + */ + public static final class ArrayJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.ArrayJob) + ArrayJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArrayJob.newBuilder() to construct. + private ArrayJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ArrayJob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ArrayJob( + 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 8: { + + parallelism_ = input.readInt64(); + break; + } + case 16: { + + size_ = input.readInt64(); + break; + } + case 24: { + + minSuccesses_ = 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 flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); + } + + public static final int PARALLELISM_FIELD_NUMBER = 1; + private long parallelism_; + /** + *
+     * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+     * running instances might be more. This has to be a positive number if assigned. Default value is size.
+     * 
+ * + * int64 parallelism = 1; + */ + public long getParallelism() { + return parallelism_; + } + + public static final int SIZE_FIELD_NUMBER = 2; + private long size_; + /** + *
+     * Defines the number of instances to launch at most. This number should match the size of the input if the job
+     * requires processing of all input data. This has to be a positive number.
+     * +required.
+     * 
+ * + * int64 size = 2; + */ + public long getSize() { + return size_; + } + + public static final int MIN_SUCCESSES_FIELD_NUMBER = 3; + private long minSuccesses_; + /** + *
+     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+     * assigned. Default value is size.
+     * 
+ * + * int64 min_successes = 3; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + + 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 (parallelism_ != 0L) { + output.writeInt64(1, parallelism_); + } + if (size_ != 0L) { + output.writeInt64(2, size_); + } + if (minSuccesses_ != 0L) { + output.writeInt64(3, minSuccesses_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (parallelism_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, parallelism_); + } + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, size_); + } + if (minSuccesses_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, minSuccesses_); + } + 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob)) { + return super.equals(obj); + } + flyteidl.plugins.ArrayJobOuterClass.ArrayJob other = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) obj; + + if (getParallelism() + != other.getParallelism()) return false; + if (getSize() + != other.getSize()) return false; + if (getMinSuccesses() + != other.getMinSuccesses()) 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) + PARALLELISM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getParallelism()); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); + hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinSuccesses()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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(flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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; + } + /** + *
+     * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
+     * will be executed concurrently.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.ArrayJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.ArrayJob) + flyteidl.plugins.ArrayJobOuterClass.ArrayJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); + } + + // Construct using flyteidl.plugins.ArrayJobOuterClass.ArrayJob.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(); + parallelism_ = 0L; + + size_ = 0L; + + minSuccesses_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { + return flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob build() { + flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob buildPartial() { + flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(this); + result.parallelism_ = parallelism_; + result.size_ = size_; + result.minSuccesses_ = minSuccesses_; + 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob) { + return mergeFrom((flyteidl.plugins.ArrayJobOuterClass.ArrayJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.ArrayJobOuterClass.ArrayJob other) { + if (other == flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance()) return this; + if (other.getParallelism() != 0L) { + setParallelism(other.getParallelism()); + } + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + if (other.getMinSuccesses() != 0L) { + setMinSuccesses(other.getMinSuccesses()); + } + 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 { + flyteidl.plugins.ArrayJobOuterClass.ArrayJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long parallelism_ ; + /** + *
+       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+       * running instances might be more. This has to be a positive number if assigned. Default value is size.
+       * 
+ * + * int64 parallelism = 1; + */ + public long getParallelism() { + return parallelism_; + } + /** + *
+       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+       * running instances might be more. This has to be a positive number if assigned. Default value is size.
+       * 
+ * + * int64 parallelism = 1; + */ + public Builder setParallelism(long value) { + + parallelism_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+       * running instances might be more. This has to be a positive number if assigned. Default value is size.
+       * 
+ * + * int64 parallelism = 1; + */ + public Builder clearParallelism() { + + parallelism_ = 0L; + onChanged(); + return this; + } + + private long size_ ; + /** + *
+       * Defines the number of instances to launch at most. This number should match the size of the input if the job
+       * requires processing of all input data. This has to be a positive number.
+       * +required.
+       * 
+ * + * int64 size = 2; + */ + public long getSize() { + return size_; + } + /** + *
+       * Defines the number of instances to launch at most. This number should match the size of the input if the job
+       * requires processing of all input data. This has to be a positive number.
+       * +required.
+       * 
+ * + * int64 size = 2; + */ + public Builder setSize(long value) { + + size_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the number of instances to launch at most. This number should match the size of the input if the job
+       * requires processing of all input data. This has to be a positive number.
+       * +required.
+       * 
+ * + * int64 size = 2; + */ + public Builder clearSize() { + + size_ = 0L; + onChanged(); + return this; + } + + private long minSuccesses_ ; + /** + *
+       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+       * assigned. Default value is size.
+       * 
+ * + * int64 min_successes = 3; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + /** + *
+       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+       * assigned. Default value is size.
+       * 
+ * + * int64 min_successes = 3; + */ + public Builder setMinSuccesses(long value) { + + minSuccesses_ = value; + onChanged(); + return this; + } + /** + *
+       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+       * assigned. Default value is size.
+       * 
+ * + * int64 min_successes = 3; + */ + public Builder clearMinSuccesses() { + + minSuccesses_ = 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:flyteidl.plugins.ArrayJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.ArrayJob) + private static final flyteidl.plugins.ArrayJobOuterClass.ArrayJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(); + } + + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrayJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArrayJob(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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_ArrayJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_ArrayJob_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 flyteidl/plugins/array_job.proto\022\020flyt" + + "eidl.plugins\"D\n\010ArrayJob\022\023\n\013parallelism\030" + + "\001 \001(\003\022\014\n\004size\030\002 \001(\003\022\025\n\rmin_successes\030\003 \001" + + "(\003B5Z3github.com/lyft/flyteidl/gen/pb-go" + + "/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_ArrayJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_ArrayJob_descriptor, + new java.lang.String[] { "Parallelism", "Size", "MinSuccesses", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/Presto.java b/gen/pb-java/flyteidl/plugins/Presto.java new file mode 100644 index 000000000..4ebb9a8be --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/Presto.java @@ -0,0 +1,1031 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/presto.proto + +package flyteidl.plugins; + +public final class Presto { + private Presto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface PrestoQueryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.PrestoQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * string routing_group = 1; + */ + java.lang.String getRoutingGroup(); + /** + * string routing_group = 1; + */ + com.google.protobuf.ByteString + getRoutingGroupBytes(); + + /** + * string catalog = 2; + */ + java.lang.String getCatalog(); + /** + * string catalog = 2; + */ + com.google.protobuf.ByteString + getCatalogBytes(); + + /** + * string schema = 3; + */ + java.lang.String getSchema(); + /** + * string schema = 3; + */ + com.google.protobuf.ByteString + getSchemaBytes(); + + /** + * string statement = 4; + */ + java.lang.String getStatement(); + /** + * string statement = 4; + */ + com.google.protobuf.ByteString + getStatementBytes(); + } + /** + *
+   * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field
+   * of a Presto task's TaskTemplate
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.PrestoQuery} + */ + public static final class PrestoQuery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.PrestoQuery) + PrestoQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrestoQuery.newBuilder() to construct. + private PrestoQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PrestoQuery() { + routingGroup_ = ""; + catalog_ = ""; + schema_ = ""; + statement_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PrestoQuery( + 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(); + + routingGroup_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + catalog_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + schema_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + statement_ = 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 flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Presto.PrestoQuery.class, flyteidl.plugins.Presto.PrestoQuery.Builder.class); + } + + public static final int ROUTING_GROUP_FIELD_NUMBER = 1; + private volatile java.lang.Object routingGroup_; + /** + * string routing_group = 1; + */ + public java.lang.String getRoutingGroup() { + java.lang.Object ref = routingGroup_; + 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(); + routingGroup_ = s; + return s; + } + } + /** + * string routing_group = 1; + */ + public com.google.protobuf.ByteString + getRoutingGroupBytes() { + java.lang.Object ref = routingGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + routingGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATALOG_FIELD_NUMBER = 2; + private volatile java.lang.Object catalog_; + /** + * string catalog = 2; + */ + public java.lang.String getCatalog() { + java.lang.Object ref = catalog_; + 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(); + catalog_ = s; + return s; + } + } + /** + * string catalog = 2; + */ + public com.google.protobuf.ByteString + getCatalogBytes() { + java.lang.Object ref = catalog_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalog_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 3; + private volatile java.lang.Object schema_; + /** + * string schema = 3; + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + 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(); + schema_ = s; + return s; + } + } + /** + * string schema = 3; + */ + public com.google.protobuf.ByteString + getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATEMENT_FIELD_NUMBER = 4; + private volatile java.lang.Object statement_; + /** + * string statement = 4; + */ + public java.lang.String getStatement() { + java.lang.Object ref = statement_; + 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(); + statement_ = s; + return s; + } + } + /** + * string statement = 4; + */ + public com.google.protobuf.ByteString + getStatementBytes() { + java.lang.Object ref = statement_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statement_ = 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 (!getRoutingGroupBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, routingGroup_); + } + if (!getCatalogBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, catalog_); + } + if (!getSchemaBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schema_); + } + if (!getStatementBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, statement_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRoutingGroupBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, routingGroup_); + } + if (!getCatalogBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, catalog_); + } + if (!getSchemaBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schema_); + } + if (!getStatementBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, statement_); + } + 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 flyteidl.plugins.Presto.PrestoQuery)) { + return super.equals(obj); + } + flyteidl.plugins.Presto.PrestoQuery other = (flyteidl.plugins.Presto.PrestoQuery) obj; + + if (!getRoutingGroup() + .equals(other.getRoutingGroup())) return false; + if (!getCatalog() + .equals(other.getCatalog())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; + if (!getStatement() + .equals(other.getStatement())) 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) + ROUTING_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getRoutingGroup().hashCode(); + hash = (37 * hash) + CATALOG_FIELD_NUMBER; + hash = (53 * hash) + getCatalog().hashCode(); + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + hash = (37 * hash) + STATEMENT_FIELD_NUMBER; + hash = (53 * hash) + getStatement().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Presto.PrestoQuery 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 flyteidl.plugins.Presto.PrestoQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Presto.PrestoQuery 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 flyteidl.plugins.Presto.PrestoQuery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Presto.PrestoQuery 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(flyteidl.plugins.Presto.PrestoQuery 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; + } + /** + *
+     * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field
+     * of a Presto task's TaskTemplate
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.PrestoQuery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.PrestoQuery) + flyteidl.plugins.Presto.PrestoQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Presto.PrestoQuery.class, flyteidl.plugins.Presto.PrestoQuery.Builder.class); + } + + // Construct using flyteidl.plugins.Presto.PrestoQuery.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(); + routingGroup_ = ""; + + catalog_ = ""; + + schema_ = ""; + + statement_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Presto.PrestoQuery getDefaultInstanceForType() { + return flyteidl.plugins.Presto.PrestoQuery.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Presto.PrestoQuery build() { + flyteidl.plugins.Presto.PrestoQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Presto.PrestoQuery buildPartial() { + flyteidl.plugins.Presto.PrestoQuery result = new flyteidl.plugins.Presto.PrestoQuery(this); + result.routingGroup_ = routingGroup_; + result.catalog_ = catalog_; + result.schema_ = schema_; + result.statement_ = statement_; + 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 flyteidl.plugins.Presto.PrestoQuery) { + return mergeFrom((flyteidl.plugins.Presto.PrestoQuery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Presto.PrestoQuery other) { + if (other == flyteidl.plugins.Presto.PrestoQuery.getDefaultInstance()) return this; + if (!other.getRoutingGroup().isEmpty()) { + routingGroup_ = other.routingGroup_; + onChanged(); + } + if (!other.getCatalog().isEmpty()) { + catalog_ = other.catalog_; + onChanged(); + } + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + onChanged(); + } + if (!other.getStatement().isEmpty()) { + statement_ = other.statement_; + 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 { + flyteidl.plugins.Presto.PrestoQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Presto.PrestoQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object routingGroup_ = ""; + /** + * string routing_group = 1; + */ + public java.lang.String getRoutingGroup() { + java.lang.Object ref = routingGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + routingGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string routing_group = 1; + */ + public com.google.protobuf.ByteString + getRoutingGroupBytes() { + java.lang.Object ref = routingGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + routingGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string routing_group = 1; + */ + public Builder setRoutingGroup( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + routingGroup_ = value; + onChanged(); + return this; + } + /** + * string routing_group = 1; + */ + public Builder clearRoutingGroup() { + + routingGroup_ = getDefaultInstance().getRoutingGroup(); + onChanged(); + return this; + } + /** + * string routing_group = 1; + */ + public Builder setRoutingGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + routingGroup_ = value; + onChanged(); + return this; + } + + private java.lang.Object catalog_ = ""; + /** + * string catalog = 2; + */ + public java.lang.String getCatalog() { + java.lang.Object ref = catalog_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalog_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string catalog = 2; + */ + public com.google.protobuf.ByteString + getCatalogBytes() { + java.lang.Object ref = catalog_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalog_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string catalog = 2; + */ + public Builder setCatalog( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + catalog_ = value; + onChanged(); + return this; + } + /** + * string catalog = 2; + */ + public Builder clearCatalog() { + + catalog_ = getDefaultInstance().getCatalog(); + onChanged(); + return this; + } + /** + * string catalog = 2; + */ + public Builder setCatalogBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + catalog_ = value; + onChanged(); + return this; + } + + private java.lang.Object schema_ = ""; + /** + * string schema = 3; + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string schema = 3; + */ + public com.google.protobuf.ByteString + getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string schema = 3; + */ + public Builder setSchema( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schema_ = value; + onChanged(); + return this; + } + /** + * string schema = 3; + */ + public Builder clearSchema() { + + schema_ = getDefaultInstance().getSchema(); + onChanged(); + return this; + } + /** + * string schema = 3; + */ + public Builder setSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schema_ = value; + onChanged(); + return this; + } + + private java.lang.Object statement_ = ""; + /** + * string statement = 4; + */ + public java.lang.String getStatement() { + java.lang.Object ref = statement_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statement_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string statement = 4; + */ + public com.google.protobuf.ByteString + getStatementBytes() { + java.lang.Object ref = statement_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string statement = 4; + */ + public Builder setStatement( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statement_ = value; + onChanged(); + return this; + } + /** + * string statement = 4; + */ + public Builder clearStatement() { + + statement_ = getDefaultInstance().getStatement(); + onChanged(); + return this; + } + /** + * string statement = 4; + */ + public Builder setStatementBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statement_ = 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:flyteidl.plugins.PrestoQuery) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.PrestoQuery) + private static final flyteidl.plugins.Presto.PrestoQuery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Presto.PrestoQuery(); + } + + public static flyteidl.plugins.Presto.PrestoQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrestoQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrestoQuery(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 flyteidl.plugins.Presto.PrestoQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_PrestoQuery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_PrestoQuery_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\035flyteidl/plugins/presto.proto\022\020flyteid" + + "l.plugins\032\031flyteidl/core/tasks.proto\"X\n\013" + + "PrestoQuery\022\025\n\rrouting_group\030\001 \001(\t\022\017\n\007ca" + + "talog\030\002 \001(\t\022\016\n\006schema\030\003 \001(\t\022\021\n\tstatement" + + "\030\004 \001(\tB5Z3github.com/lyft/flyteidl/gen/p" + + "b-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_PrestoQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_PrestoQuery_descriptor, + new java.lang.String[] { "RoutingGroup", "Catalog", "Schema", "Statement", }); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/Pytorch.java b/gen/pb-java/flyteidl/plugins/Pytorch.java new file mode 100644 index 000000000..020941bc0 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/Pytorch.java @@ -0,0 +1,560 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/pytorch.proto + +package flyteidl.plugins; + +public final class Pytorch { + private Pytorch() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DistributedPyTorchTrainingTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedPyTorchTrainingTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * number of worker replicas spawned in the cluster for this job
+     * 
+ * + * int32 workers = 1; + */ + int getWorkers(); + } + /** + *
+   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedPyTorchTrainingTask} + */ + public static final class DistributedPyTorchTrainingTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedPyTorchTrainingTask) + DistributedPyTorchTrainingTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedPyTorchTrainingTask.newBuilder() to construct. + private DistributedPyTorchTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedPyTorchTrainingTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedPyTorchTrainingTask( + 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 8: { + + workers_ = input.readInt32(); + 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 flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.Builder.class); + } + + public static final int WORKERS_FIELD_NUMBER = 1; + private int workers_; + /** + *
+     * number of worker replicas spawned in the cluster for this job
+     * 
+ * + * int32 workers = 1; + */ + public int getWorkers() { + return workers_; + } + + 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 (workers_ != 0) { + output.writeInt32(1, workers_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workers_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, workers_); + } + 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask)) { + return super.equals(obj); + } + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask other = (flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) obj; + + if (getWorkers() + != other.getWorkers()) 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) + WORKERS_FIELD_NUMBER; + hash = (53 * hash) + getWorkers(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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(flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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; + } + /** + *
+     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedPyTorchTrainingTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedPyTorchTrainingTask) + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.Builder.class); + } + + // Construct using flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.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(); + workers_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { + return flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask build() { + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask buildPartial() { + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask result = new flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask(this); + result.workers_ = workers_; + 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) { + return mergeFrom((flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask other) { + if (other == flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance()) return this; + if (other.getWorkers() != 0) { + setWorkers(other.getWorkers()); + } + 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 { + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int workers_ ; + /** + *
+       * number of worker replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public int getWorkers() { + return workers_; + } + /** + *
+       * number of worker replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public Builder setWorkers(int value) { + + workers_ = value; + onChanged(); + return this; + } + /** + *
+       * number of worker replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public Builder clearWorkers() { + + workers_ = 0; + 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:flyteidl.plugins.DistributedPyTorchTrainingTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedPyTorchTrainingTask) + private static final flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask(); + } + + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedPyTorchTrainingTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedPyTorchTrainingTask(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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_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\036flyteidl/plugins/pytorch.proto\022\020flytei" + + "dl.plugins\"1\n\036DistributedPyTorchTraining" + + "Task\022\017\n\007workers\030\001 \001(\005B5Z3github.com/lyft" + + "/flyteidl/gen/pb-go/flyteidl/pluginsb\006pr" + + "oto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor, + new java.lang.String[] { "Workers", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/Qubole.java b/gen/pb-java/flyteidl/plugins/Qubole.java new file mode 100644 index 000000000..28cadb493 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/Qubole.java @@ -0,0 +1,2700 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/qubole.proto + +package flyteidl.plugins; + +public final class Qubole { + private Qubole() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface HiveQueryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * string query = 1; + */ + java.lang.String getQuery(); + /** + * string query = 1; + */ + com.google.protobuf.ByteString + getQueryBytes(); + + /** + * uint32 timeout_sec = 2; + */ + int getTimeoutSec(); + + /** + * uint32 retryCount = 3; + */ + int getRetryCount(); + } + /** + *
+   * Defines a query to execute on a hive cluster.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQuery} + */ + public static final class HiveQuery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQuery) + HiveQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use HiveQuery.newBuilder() to construct. + private HiveQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HiveQuery() { + query_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HiveQuery( + 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(); + + query_ = s; + break; + } + case 16: { + + timeoutSec_ = input.readUInt32(); + break; + } + case 24: { + + retryCount_ = input.readUInt32(); + 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 flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); + } + + public static final int QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object query_; + /** + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * string query = 1; + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEOUT_SEC_FIELD_NUMBER = 2; + private int timeoutSec_; + /** + * uint32 timeout_sec = 2; + */ + public int getTimeoutSec() { + return timeoutSec_; + } + + public static final int RETRYCOUNT_FIELD_NUMBER = 3; + private int retryCount_; + /** + * uint32 retryCount = 3; + */ + public int getRetryCount() { + return retryCount_; + } + + 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 (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + if (timeoutSec_ != 0) { + output.writeUInt32(2, timeoutSec_); + } + if (retryCount_ != 0) { + output.writeUInt32(3, retryCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + if (timeoutSec_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, timeoutSec_); + } + if (retryCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, retryCount_); + } + 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 flyteidl.plugins.Qubole.HiveQuery)) { + return super.equals(obj); + } + flyteidl.plugins.Qubole.HiveQuery other = (flyteidl.plugins.Qubole.HiveQuery) obj; + + if (!getQuery() + .equals(other.getQuery())) return false; + if (getTimeoutSec() + != other.getTimeoutSec()) return false; + if (getRetryCount() + != other.getRetryCount()) 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) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + TIMEOUT_SEC_FIELD_NUMBER; + hash = (53 * hash) + getTimeoutSec(); + hash = (37 * hash) + RETRYCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getRetryCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQuery 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 flyteidl.plugins.Qubole.HiveQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQuery 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 flyteidl.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQuery 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(flyteidl.plugins.Qubole.HiveQuery 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; + } + /** + *
+     * Defines a query to execute on a hive cluster.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQuery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQuery) + flyteidl.plugins.Qubole.HiveQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); + } + + // Construct using flyteidl.plugins.Qubole.HiveQuery.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(); + query_ = ""; + + timeoutSec_ = 0; + + retryCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQuery getDefaultInstanceForType() { + return flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQuery build() { + flyteidl.plugins.Qubole.HiveQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQuery buildPartial() { + flyteidl.plugins.Qubole.HiveQuery result = new flyteidl.plugins.Qubole.HiveQuery(this); + result.query_ = query_; + result.timeoutSec_ = timeoutSec_; + result.retryCount_ = retryCount_; + 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 flyteidl.plugins.Qubole.HiveQuery) { + return mergeFrom((flyteidl.plugins.Qubole.HiveQuery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQuery other) { + if (other == flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (other.getTimeoutSec() != 0) { + setTimeoutSec(other.getTimeoutSec()); + } + if (other.getRetryCount() != 0) { + setRetryCount(other.getRetryCount()); + } + 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 { + flyteidl.plugins.Qubole.HiveQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Qubole.HiveQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object query_ = ""; + /** + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string query = 1; + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string query = 1; + */ + public Builder setQuery( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * string query = 1; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * string query = 1; + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private int timeoutSec_ ; + /** + * uint32 timeout_sec = 2; + */ + public int getTimeoutSec() { + return timeoutSec_; + } + /** + * uint32 timeout_sec = 2; + */ + public Builder setTimeoutSec(int value) { + + timeoutSec_ = value; + onChanged(); + return this; + } + /** + * uint32 timeout_sec = 2; + */ + public Builder clearTimeoutSec() { + + timeoutSec_ = 0; + onChanged(); + return this; + } + + private int retryCount_ ; + /** + * uint32 retryCount = 3; + */ + public int getRetryCount() { + return retryCount_; + } + /** + * uint32 retryCount = 3; + */ + public Builder setRetryCount(int value) { + + retryCount_ = value; + onChanged(); + return this; + } + /** + * uint32 retryCount = 3; + */ + public Builder clearRetryCount() { + + retryCount_ = 0; + 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:flyteidl.plugins.HiveQuery) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQuery) + private static final flyteidl.plugins.Qubole.HiveQuery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQuery(); + } + + public static flyteidl.plugins.Qubole.HiveQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HiveQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HiveQuery(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 flyteidl.plugins.Qubole.HiveQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HiveQueryCollectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQueryCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + java.util.List + getQueriesList(); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + flyteidl.plugins.Qubole.HiveQuery getQueries(int index); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + int getQueriesCount(); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + java.util.List + getQueriesOrBuilderList(); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( + int index); + } + /** + *
+   * Defines a collection of hive queries.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} + */ + public static final class HiveQueryCollection extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQueryCollection) + HiveQueryCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use HiveQueryCollection.newBuilder() to construct. + private HiveQueryCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HiveQueryCollection() { + queries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HiveQueryCollection( + 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 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + queries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + queries_.add( + input.readMessage(flyteidl.plugins.Qubole.HiveQuery.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)) { + queries_ = java.util.Collections.unmodifiableList(queries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); + } + + public static final int QUERIES_FIELD_NUMBER = 2; + private java.util.List queries_; + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List getQueriesList() { + return queries_; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List + getQueriesOrBuilderList() { + return queries_; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public int getQueriesCount() { + return queries_.size(); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { + return queries_.get(index); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( + int index) { + return queries_.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 < queries_.size(); i++) { + output.writeMessage(2, queries_.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 < queries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, queries_.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 flyteidl.plugins.Qubole.HiveQueryCollection)) { + return super.equals(obj); + } + flyteidl.plugins.Qubole.HiveQueryCollection other = (flyteidl.plugins.Qubole.HiveQueryCollection) obj; + + if (!getQueriesList() + .equals(other.getQueriesList())) 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 (getQueriesCount() > 0) { + hash = (37 * hash) + QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getQueriesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection 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 flyteidl.plugins.Qubole.HiveQueryCollection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection 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 flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection 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(flyteidl.plugins.Qubole.HiveQueryCollection 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; + } + /** + *
+     * Defines a collection of hive queries.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQueryCollection) + flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); + } + + // Construct using flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getQueriesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + queriesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { + return flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQueryCollection build() { + flyteidl.plugins.Qubole.HiveQueryCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQueryCollection buildPartial() { + flyteidl.plugins.Qubole.HiveQueryCollection result = new flyteidl.plugins.Qubole.HiveQueryCollection(this); + int from_bitField0_ = bitField0_; + if (queriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + queries_ = java.util.Collections.unmodifiableList(queries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.queries_ = queries_; + } else { + result.queries_ = queriesBuilder_.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 flyteidl.plugins.Qubole.HiveQueryCollection) { + return mergeFrom((flyteidl.plugins.Qubole.HiveQueryCollection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQueryCollection other) { + if (other == flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance()) return this; + if (queriesBuilder_ == null) { + if (!other.queries_.isEmpty()) { + if (queries_.isEmpty()) { + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQueriesIsMutable(); + queries_.addAll(other.queries_); + } + onChanged(); + } + } else { + if (!other.queries_.isEmpty()) { + if (queriesBuilder_.isEmpty()) { + queriesBuilder_.dispose(); + queriesBuilder_ = null; + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000001); + queriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getQueriesFieldBuilder() : null; + } else { + queriesBuilder_.addAllMessages(other.queries_); + } + } + } + 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 { + flyteidl.plugins.Qubole.HiveQueryCollection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Qubole.HiveQueryCollection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List queries_ = + java.util.Collections.emptyList(); + private void ensureQueriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + queries_ = new java.util.ArrayList(queries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> queriesBuilder_; + + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List getQueriesList() { + if (queriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(queries_); + } else { + return queriesBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public int getQueriesCount() { + if (queriesBuilder_ == null) { + return queries_.size(); + } else { + return queriesBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); + } else { + return queriesBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder setQueries( + int index, flyteidl.plugins.Qubole.HiveQuery value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.set(index, value); + onChanged(); + } else { + queriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder setQueries( + int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.set(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries(flyteidl.plugins.Qubole.HiveQuery value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(value); + onChanged(); + } else { + queriesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries( + int index, flyteidl.plugins.Qubole.HiveQuery value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(index, value); + onChanged(); + } else { + queriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries( + flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries( + int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addAllQueries( + java.lang.Iterable values) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, queries_); + onChanged(); + } else { + queriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder clearQueries() { + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + queriesBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder removeQueries(int index) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.remove(index); + onChanged(); + } else { + queriesBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder getQueriesBuilder( + int index) { + return getQueriesFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( + int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); } else { + return queriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List + getQueriesOrBuilderList() { + if (queriesBuilder_ != null) { + return queriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(queries_); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder() { + return getQueriesFieldBuilder().addBuilder( + flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder( + int index) { + return getQueriesFieldBuilder().addBuilder( + index, flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List + getQueriesBuilderList() { + return getQueriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> + getQueriesFieldBuilder() { + if (queriesBuilder_ == null) { + queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder>( + queries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + queries_ = null; + } + return queriesBuilder_; + } + @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:flyteidl.plugins.HiveQueryCollection) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQueryCollection) + private static final flyteidl.plugins.Qubole.HiveQueryCollection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQueryCollection(); + } + + public static flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HiveQueryCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HiveQueryCollection(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 flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QuboleHiveJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.QuboleHiveJob) + com.google.protobuf.MessageOrBuilder { + + /** + * string cluster_label = 1; + */ + java.lang.String getClusterLabel(); + /** + * string cluster_label = 1; + */ + com.google.protobuf.ByteString + getClusterLabelBytes(); + + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasQueryCollection(); + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection(); + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder(); + + /** + * repeated string tags = 3; + */ + java.util.List + getTagsList(); + /** + * repeated string tags = 3; + */ + int getTagsCount(); + /** + * repeated string tags = 3; + */ + java.lang.String getTags(int index); + /** + * repeated string tags = 3; + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + boolean hasQuery(); + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + flyteidl.plugins.Qubole.HiveQuery getQuery(); + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder(); + } + /** + *
+   * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
+   * of a hive task's TaskTemplate
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} + */ + public static final class QuboleHiveJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.QuboleHiveJob) + QuboleHiveJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use QuboleHiveJob.newBuilder() to construct. + private QuboleHiveJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QuboleHiveJob() { + clusterLabel_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QuboleHiveJob( + 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(); + + clusterLabel_ = s; + break; + } + case 18: { + flyteidl.plugins.Qubole.HiveQueryCollection.Builder subBuilder = null; + if (queryCollection_ != null) { + subBuilder = queryCollection_.toBuilder(); + } + queryCollection_ = input.readMessage(flyteidl.plugins.Qubole.HiveQueryCollection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queryCollection_); + queryCollection_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + tags_.add(s); + break; + } + case 34: { + flyteidl.plugins.Qubole.HiveQuery.Builder subBuilder = null; + if (query_ != null) { + subBuilder = query_.toBuilder(); + } + query_ = input.readMessage(flyteidl.plugins.Qubole.HiveQuery.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(query_); + query_ = 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_ & 0x00000004) != 0)) { + tags_ = tags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); + } + + private int bitField0_; + public static final int CLUSTER_LABEL_FIELD_NUMBER = 1; + private volatile java.lang.Object clusterLabel_; + /** + * string cluster_label = 1; + */ + public java.lang.String getClusterLabel() { + java.lang.Object ref = clusterLabel_; + 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(); + clusterLabel_ = s; + return s; + } + } + /** + * string cluster_label = 1; + */ + public com.google.protobuf.ByteString + getClusterLabelBytes() { + java.lang.Object ref = clusterLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_COLLECTION_FIELD_NUMBER = 2; + private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_; + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasQueryCollection() { + return queryCollection_ != null; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { + return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { + return getQueryCollection(); + } + + public static final int TAGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList tags_; + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + * repeated string tags = 3; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 3; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int QUERY_FIELD_NUMBER = 4; + private flyteidl.plugins.Qubole.HiveQuery query_; + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public boolean hasQuery() { + return query_ != null; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQuery getQuery() { + return query_ == null ? flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder() { + return getQuery(); + } + + 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 (!getClusterLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterLabel_); + } + if (queryCollection_ != null) { + output.writeMessage(2, getQueryCollection()); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i)); + } + if (query_ != null) { + output.writeMessage(4, getQuery()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getClusterLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterLabel_); + } + if (queryCollection_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQueryCollection()); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + if (query_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getQuery()); + } + 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 flyteidl.plugins.Qubole.QuboleHiveJob)) { + return super.equals(obj); + } + flyteidl.plugins.Qubole.QuboleHiveJob other = (flyteidl.plugins.Qubole.QuboleHiveJob) obj; + + if (!getClusterLabel() + .equals(other.getClusterLabel())) return false; + if (hasQueryCollection() != other.hasQueryCollection()) return false; + if (hasQueryCollection()) { + if (!getQueryCollection() + .equals(other.getQueryCollection())) return false; + } + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (hasQuery() != other.hasQuery()) return false; + if (hasQuery()) { + if (!getQuery() + .equals(other.getQuery())) 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) + CLUSTER_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getClusterLabel().hashCode(); + if (hasQueryCollection()) { + hash = (37 * hash) + QUERY_COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getQueryCollection().hashCode(); + } + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + if (hasQuery()) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob 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 flyteidl.plugins.Qubole.QuboleHiveJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob 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 flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob 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(flyteidl.plugins.Qubole.QuboleHiveJob 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; + } + /** + *
+     * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
+     * of a hive task's TaskTemplate
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.QuboleHiveJob) + flyteidl.plugins.Qubole.QuboleHiveJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); + } + + // Construct using flyteidl.plugins.Qubole.QuboleHiveJob.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(); + clusterLabel_ = ""; + + if (queryCollectionBuilder_ == null) { + queryCollection_ = null; + } else { + queryCollection_ = null; + queryCollectionBuilder_ = null; + } + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (queryBuilder_ == null) { + query_ = null; + } else { + query_ = null; + queryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { + return flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Qubole.QuboleHiveJob build() { + flyteidl.plugins.Qubole.QuboleHiveJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.QuboleHiveJob buildPartial() { + flyteidl.plugins.Qubole.QuboleHiveJob result = new flyteidl.plugins.Qubole.QuboleHiveJob(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.clusterLabel_ = clusterLabel_; + if (queryCollectionBuilder_ == null) { + result.queryCollection_ = queryCollection_; + } else { + result.queryCollection_ = queryCollectionBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tags_ = tags_; + if (queryBuilder_ == null) { + result.query_ = query_; + } else { + result.query_ = queryBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.plugins.Qubole.QuboleHiveJob) { + return mergeFrom((flyteidl.plugins.Qubole.QuboleHiveJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Qubole.QuboleHiveJob other) { + if (other == flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance()) return this; + if (!other.getClusterLabel().isEmpty()) { + clusterLabel_ = other.clusterLabel_; + onChanged(); + } + if (other.hasQueryCollection()) { + mergeQueryCollection(other.getQueryCollection()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.hasQuery()) { + mergeQuery(other.getQuery()); + } + 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 { + flyteidl.plugins.Qubole.QuboleHiveJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Qubole.QuboleHiveJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object clusterLabel_ = ""; + /** + * string cluster_label = 1; + */ + public java.lang.String getClusterLabel() { + java.lang.Object ref = clusterLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cluster_label = 1; + */ + public com.google.protobuf.ByteString + getClusterLabelBytes() { + java.lang.Object ref = clusterLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cluster_label = 1; + */ + public Builder setClusterLabel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterLabel_ = value; + onChanged(); + return this; + } + /** + * string cluster_label = 1; + */ + public Builder clearClusterLabel() { + + clusterLabel_ = getDefaultInstance().getClusterLabel(); + onChanged(); + return this; + } + /** + * string cluster_label = 1; + */ + public Builder setClusterLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterLabel_ = value; + onChanged(); + return this; + } + + private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> queryCollectionBuilder_; + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasQueryCollection() { + return queryCollectionBuilder_ != null || queryCollection_ != null; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { + if (queryCollectionBuilder_ == null) { + return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; + } else { + return queryCollectionBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { + if (queryCollectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryCollection_ = value; + onChanged(); + } else { + queryCollectionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setQueryCollection( + flyteidl.plugins.Qubole.HiveQueryCollection.Builder builderForValue) { + if (queryCollectionBuilder_ == null) { + queryCollection_ = builderForValue.build(); + onChanged(); + } else { + queryCollectionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { + if (queryCollectionBuilder_ == null) { + if (queryCollection_ != null) { + queryCollection_ = + flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder(queryCollection_).mergeFrom(value).buildPartial(); + } else { + queryCollection_ = value; + } + onChanged(); + } else { + queryCollectionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearQueryCollection() { + if (queryCollectionBuilder_ == null) { + queryCollection_ = null; + onChanged(); + } else { + queryCollection_ = null; + queryCollectionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection.Builder getQueryCollectionBuilder() { + + onChanged(); + return getQueryCollectionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { + if (queryCollectionBuilder_ != null) { + return queryCollectionBuilder_.getMessageOrBuilder(); + } else { + return queryCollection_ == null ? + flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; + } + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> + getQueryCollectionFieldBuilder() { + if (queryCollectionBuilder_ == null) { + queryCollectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder>( + getQueryCollection(), + getParentForChildren(), + isClean()); + queryCollection_ = null; + } + return queryCollectionBuilder_; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000004; + } + } + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * repeated string tags = 3; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 3; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * repeated string tags = 3; + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private flyteidl.plugins.Qubole.HiveQuery query_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> queryBuilder_; + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public boolean hasQuery() { + return queryBuilder_ != null || query_ != null; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQuery getQuery() { + if (queryBuilder_ == null) { + return query_ == null ? flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; + } else { + return queryBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public Builder setQuery(flyteidl.plugins.Qubole.HiveQuery value) { + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + onChanged(); + } else { + queryBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public Builder setQuery( + flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queryBuilder_ == null) { + query_ = builderForValue.build(); + onChanged(); + } else { + queryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public Builder mergeQuery(flyteidl.plugins.Qubole.HiveQuery value) { + if (queryBuilder_ == null) { + if (query_ != null) { + query_ = + flyteidl.plugins.Qubole.HiveQuery.newBuilder(query_).mergeFrom(value).buildPartial(); + } else { + query_ = value; + } + onChanged(); + } else { + queryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public Builder clearQuery() { + if (queryBuilder_ == null) { + query_ = null; + onChanged(); + } else { + query_ = null; + queryBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder getQueryBuilder() { + + onChanged(); + return getQueryFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder() { + if (queryBuilder_ != null) { + return queryBuilder_.getMessageOrBuilder(); + } else { + return query_ == null ? + flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; + } + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> + getQueryFieldBuilder() { + if (queryBuilder_ == null) { + queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder>( + getQuery(), + getParentForChildren(), + isClean()); + query_ = null; + } + return queryBuilder_; + } + @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:flyteidl.plugins.QuboleHiveJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.QuboleHiveJob) + private static final flyteidl.plugins.Qubole.QuboleHiveJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.QuboleHiveJob(); + } + + public static flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuboleHiveJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QuboleHiveJob(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 flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_HiveQuery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_QuboleHiveJob_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\035flyteidl/plugins/qubole.proto\022\020flyteid" + + "l.plugins\032\031flyteidl/core/tasks.proto\"C\n\t" + + "HiveQuery\022\r\n\005query\030\001 \001(\t\022\023\n\013timeout_sec\030" + + "\002 \001(\r\022\022\n\nretryCount\030\003 \001(\r\"C\n\023HiveQueryCo" + + "llection\022,\n\007queries\030\002 \003(\0132\033.flyteidl.plu" + + "gins.HiveQuery\"\245\001\n\rQuboleHiveJob\022\025\n\rclus" + + "ter_label\030\001 \001(\t\022C\n\020query_collection\030\002 \001(" + + "\0132%.flyteidl.plugins.HiveQueryCollection" + + "B\002\030\001\022\014\n\004tags\030\003 \003(\t\022*\n\005query\030\004 \001(\0132\033.flyt" + + "eidl.plugins.HiveQueryB5Z3github.com/lyf" + + "t/flyteidl/gen/pb-go/flyteidl/pluginsb\006p" + + "roto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_HiveQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_HiveQuery_descriptor, + new java.lang.String[] { "Query", "TimeoutSec", "RetryCount", }); + internal_static_flyteidl_plugins_HiveQueryCollection_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_HiveQueryCollection_descriptor, + new java.lang.String[] { "Queries", }); + internal_static_flyteidl_plugins_QuboleHiveJob_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_QuboleHiveJob_descriptor, + new java.lang.String[] { "ClusterLabel", "QueryCollection", "Tags", "Query", }); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/Sidecar.java b/gen/pb-java/flyteidl/plugins/Sidecar.java new file mode 100644 index 000000000..ae8690617 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/Sidecar.java @@ -0,0 +1,817 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sidecar.proto + +package flyteidl.plugins; + +public final class Sidecar { + private Sidecar() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SidecarJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SidecarJob) + com.google.protobuf.MessageOrBuilder { + + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + boolean hasPodSpec(); + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + k8s.io.api.core.v1.Generated.PodSpec getPodSpec(); + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder(); + + /** + * string primary_container_name = 2; + */ + java.lang.String getPrimaryContainerName(); + /** + * string primary_container_name = 2; + */ + com.google.protobuf.ByteString + getPrimaryContainerNameBytes(); + } + /** + *
+   * A sidecar job brings up the desired pod_spec.
+   * The plugin executor is responsible for keeping the pod alive until the primary container terminates
+   * or the task itself times out.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.SidecarJob} + */ + public static final class SidecarJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.SidecarJob) + SidecarJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use SidecarJob.newBuilder() to construct. + private SidecarJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SidecarJob() { + primaryContainerName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SidecarJob( + 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: { + k8s.io.api.core.v1.Generated.PodSpec.Builder subBuilder = null; + if (podSpec_ != null) { + subBuilder = podSpec_.toBuilder(); + } + podSpec_ = input.readMessage(k8s.io.api.core.v1.Generated.PodSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(podSpec_); + podSpec_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + primaryContainerName_ = 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 flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Sidecar.SidecarJob.class, flyteidl.plugins.Sidecar.SidecarJob.Builder.class); + } + + public static final int POD_SPEC_FIELD_NUMBER = 1; + private k8s.io.api.core.v1.Generated.PodSpec podSpec_; + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public boolean hasPodSpec() { + return podSpec_ != null; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpec getPodSpec() { + return podSpec_ == null ? k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder() { + return getPodSpec(); + } + + public static final int PRIMARY_CONTAINER_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object primaryContainerName_; + /** + * string primary_container_name = 2; + */ + public java.lang.String getPrimaryContainerName() { + java.lang.Object ref = primaryContainerName_; + 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(); + primaryContainerName_ = s; + return s; + } + } + /** + * string primary_container_name = 2; + */ + public com.google.protobuf.ByteString + getPrimaryContainerNameBytes() { + java.lang.Object ref = primaryContainerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryContainerName_ = 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 (podSpec_ != null) { + output.writeMessage(1, getPodSpec()); + } + if (!getPrimaryContainerNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, primaryContainerName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (podSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPodSpec()); + } + if (!getPrimaryContainerNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, primaryContainerName_); + } + 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 flyteidl.plugins.Sidecar.SidecarJob)) { + return super.equals(obj); + } + flyteidl.plugins.Sidecar.SidecarJob other = (flyteidl.plugins.Sidecar.SidecarJob) obj; + + if (hasPodSpec() != other.hasPodSpec()) return false; + if (hasPodSpec()) { + if (!getPodSpec() + .equals(other.getPodSpec())) return false; + } + if (!getPrimaryContainerName() + .equals(other.getPrimaryContainerName())) 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 (hasPodSpec()) { + hash = (37 * hash) + POD_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPodSpec().hashCode(); + } + hash = (37 * hash) + PRIMARY_CONTAINER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryContainerName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Sidecar.SidecarJob 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 flyteidl.plugins.Sidecar.SidecarJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Sidecar.SidecarJob 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 flyteidl.plugins.Sidecar.SidecarJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Sidecar.SidecarJob 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(flyteidl.plugins.Sidecar.SidecarJob 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 sidecar job brings up the desired pod_spec.
+     * The plugin executor is responsible for keeping the pod alive until the primary container terminates
+     * or the task itself times out.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.SidecarJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SidecarJob) + flyteidl.plugins.Sidecar.SidecarJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Sidecar.SidecarJob.class, flyteidl.plugins.Sidecar.SidecarJob.Builder.class); + } + + // Construct using flyteidl.plugins.Sidecar.SidecarJob.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 (podSpecBuilder_ == null) { + podSpec_ = null; + } else { + podSpec_ = null; + podSpecBuilder_ = null; + } + primaryContainerName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Sidecar.SidecarJob getDefaultInstanceForType() { + return flyteidl.plugins.Sidecar.SidecarJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Sidecar.SidecarJob build() { + flyteidl.plugins.Sidecar.SidecarJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Sidecar.SidecarJob buildPartial() { + flyteidl.plugins.Sidecar.SidecarJob result = new flyteidl.plugins.Sidecar.SidecarJob(this); + if (podSpecBuilder_ == null) { + result.podSpec_ = podSpec_; + } else { + result.podSpec_ = podSpecBuilder_.build(); + } + result.primaryContainerName_ = primaryContainerName_; + 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 flyteidl.plugins.Sidecar.SidecarJob) { + return mergeFrom((flyteidl.plugins.Sidecar.SidecarJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Sidecar.SidecarJob other) { + if (other == flyteidl.plugins.Sidecar.SidecarJob.getDefaultInstance()) return this; + if (other.hasPodSpec()) { + mergePodSpec(other.getPodSpec()); + } + if (!other.getPrimaryContainerName().isEmpty()) { + primaryContainerName_ = other.primaryContainerName_; + 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 { + flyteidl.plugins.Sidecar.SidecarJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Sidecar.SidecarJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private k8s.io.api.core.v1.Generated.PodSpec podSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder> podSpecBuilder_; + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public boolean hasPodSpec() { + return podSpecBuilder_ != null || podSpec_ != null; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpec getPodSpec() { + if (podSpecBuilder_ == null) { + return podSpec_ == null ? k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; + } else { + return podSpecBuilder_.getMessage(); + } + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public Builder setPodSpec(k8s.io.api.core.v1.Generated.PodSpec value) { + if (podSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + podSpec_ = value; + onChanged(); + } else { + podSpecBuilder_.setMessage(value); + } + + return this; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public Builder setPodSpec( + k8s.io.api.core.v1.Generated.PodSpec.Builder builderForValue) { + if (podSpecBuilder_ == null) { + podSpec_ = builderForValue.build(); + onChanged(); + } else { + podSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public Builder mergePodSpec(k8s.io.api.core.v1.Generated.PodSpec value) { + if (podSpecBuilder_ == null) { + if (podSpec_ != null) { + podSpec_ = + k8s.io.api.core.v1.Generated.PodSpec.newBuilder(podSpec_).mergeFrom(value).buildPartial(); + } else { + podSpec_ = value; + } + onChanged(); + } else { + podSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public Builder clearPodSpec() { + if (podSpecBuilder_ == null) { + podSpec_ = null; + onChanged(); + } else { + podSpec_ = null; + podSpecBuilder_ = null; + } + + return this; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpec.Builder getPodSpecBuilder() { + + onChanged(); + return getPodSpecFieldBuilder().getBuilder(); + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder() { + if (podSpecBuilder_ != null) { + return podSpecBuilder_.getMessageOrBuilder(); + } else { + return podSpec_ == null ? + k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; + } + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder> + getPodSpecFieldBuilder() { + if (podSpecBuilder_ == null) { + podSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder>( + getPodSpec(), + getParentForChildren(), + isClean()); + podSpec_ = null; + } + return podSpecBuilder_; + } + + private java.lang.Object primaryContainerName_ = ""; + /** + * string primary_container_name = 2; + */ + public java.lang.String getPrimaryContainerName() { + java.lang.Object ref = primaryContainerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryContainerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string primary_container_name = 2; + */ + public com.google.protobuf.ByteString + getPrimaryContainerNameBytes() { + java.lang.Object ref = primaryContainerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryContainerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string primary_container_name = 2; + */ + public Builder setPrimaryContainerName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + primaryContainerName_ = value; + onChanged(); + return this; + } + /** + * string primary_container_name = 2; + */ + public Builder clearPrimaryContainerName() { + + primaryContainerName_ = getDefaultInstance().getPrimaryContainerName(); + onChanged(); + return this; + } + /** + * string primary_container_name = 2; + */ + public Builder setPrimaryContainerNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + primaryContainerName_ = 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:flyteidl.plugins.SidecarJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SidecarJob) + private static final flyteidl.plugins.Sidecar.SidecarJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Sidecar.SidecarJob(); + } + + public static flyteidl.plugins.Sidecar.SidecarJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SidecarJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SidecarJob(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 flyteidl.plugins.Sidecar.SidecarJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SidecarJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SidecarJob_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\036flyteidl/plugins/sidecar.proto\022\020flytei" + + "dl.plugins\032\"k8s.io/api/core/v1/generated" + + ".proto\"[\n\nSidecarJob\022-\n\010pod_spec\030\001 \001(\0132\033" + + ".k8s.io.api.core.v1.PodSpec\022\036\n\026primary_c" + + "ontainer_name\030\002 \001(\tB5Z3github.com/lyft/f" + + "lyteidl/gen/pb-go/flyteidl/pluginsb\006prot" + + "o3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + k8s.io.api.core.v1.Generated.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_SidecarJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SidecarJob_descriptor, + new java.lang.String[] { "PodSpec", "PrimaryContainerName", }); + k8s.io.api.core.v1.Generated.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/Spark.java b/gen/pb-java/flyteidl/plugins/Spark.java new file mode 100644 index 000000000..692a657e0 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/Spark.java @@ -0,0 +1,2179 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/spark.proto + +package flyteidl.plugins; + +public final class Spark { + private Spark() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SparkApplicationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkApplication) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.plugins.SparkApplication} + */ + public static final class SparkApplication extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkApplication) + SparkApplicationOrBuilder { + private static final long serialVersionUID = 0L; + // Use SparkApplication.newBuilder() to construct. + private SparkApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SparkApplication() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SparkApplication( + 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; + 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 flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.SparkApplication.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * PYTHON = 0; + */ + PYTHON(0), + /** + * JAVA = 1; + */ + JAVA(1), + /** + * SCALA = 2; + */ + SCALA(2), + /** + * R = 3; + */ + R(3), + UNRECOGNIZED(-1), + ; + + /** + * PYTHON = 0; + */ + public static final int PYTHON_VALUE = 0; + /** + * JAVA = 1; + */ + public static final int JAVA_VALUE = 1; + /** + * SCALA = 2; + */ + public static final int SCALA_VALUE = 2; + /** + * R = 3; + */ + public static final int R_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + public static Type forNumber(int value) { + switch (value) { + case 0: return PYTHON; + case 1: return JAVA; + case 2: return SCALA; + case 3: return R; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.Spark.SparkApplication.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.SparkApplication.Type) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.plugins.Spark.SparkApplication)) { + return super.equals(obj); + } + flyteidl.plugins.Spark.SparkApplication other = (flyteidl.plugins.Spark.SparkApplication) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkApplication 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 flyteidl.plugins.Spark.SparkApplication parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkApplication 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 flyteidl.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkApplication 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(flyteidl.plugins.Spark.SparkApplication 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 flyteidl.plugins.SparkApplication} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkApplication) + flyteidl.plugins.Spark.SparkApplicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); + } + + // Construct using flyteidl.plugins.Spark.SparkApplication.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkApplication getDefaultInstanceForType() { + return flyteidl.plugins.Spark.SparkApplication.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkApplication build() { + flyteidl.plugins.Spark.SparkApplication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkApplication buildPartial() { + flyteidl.plugins.Spark.SparkApplication result = new flyteidl.plugins.Spark.SparkApplication(this); + 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 flyteidl.plugins.Spark.SparkApplication) { + return mergeFrom((flyteidl.plugins.Spark.SparkApplication)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Spark.SparkApplication other) { + if (other == flyteidl.plugins.Spark.SparkApplication.getDefaultInstance()) return this; + 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 { + flyteidl.plugins.Spark.SparkApplication parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Spark.SparkApplication) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.plugins.SparkApplication) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkApplication) + private static final flyteidl.plugins.Spark.SparkApplication DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkApplication(); + } + + public static flyteidl.plugins.Spark.SparkApplication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkApplication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SparkApplication(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 flyteidl.plugins.Spark.SparkApplication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SparkJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkJob) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + int getApplicationTypeValue(); + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + flyteidl.plugins.Spark.SparkApplication.Type getApplicationType(); + + /** + * string mainApplicationFile = 2; + */ + java.lang.String getMainApplicationFile(); + /** + * string mainApplicationFile = 2; + */ + com.google.protobuf.ByteString + getMainApplicationFileBytes(); + + /** + * string mainClass = 3; + */ + java.lang.String getMainClass(); + /** + * string mainClass = 3; + */ + com.google.protobuf.ByteString + getMainClassBytes(); + + /** + * map<string, string> sparkConf = 4; + */ + int getSparkConfCount(); + /** + * map<string, string> sparkConf = 4; + */ + boolean containsSparkConf( + java.lang.String key); + /** + * Use {@link #getSparkConfMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSparkConf(); + /** + * map<string, string> sparkConf = 4; + */ + java.util.Map + getSparkConfMap(); + /** + * map<string, string> sparkConf = 4; + */ + + java.lang.String getSparkConfOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + * map<string, string> sparkConf = 4; + */ + + java.lang.String getSparkConfOrThrow( + java.lang.String key); + + /** + * map<string, string> hadoopConf = 5; + */ + int getHadoopConfCount(); + /** + * map<string, string> hadoopConf = 5; + */ + boolean containsHadoopConf( + java.lang.String key); + /** + * Use {@link #getHadoopConfMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getHadoopConf(); + /** + * map<string, string> hadoopConf = 5; + */ + java.util.Map + getHadoopConfMap(); + /** + * map<string, string> hadoopConf = 5; + */ + + java.lang.String getHadoopConfOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + * map<string, string> hadoopConf = 5; + */ + + java.lang.String getHadoopConfOrThrow( + java.lang.String key); + + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + java.lang.String getExecutorPath(); + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + com.google.protobuf.ByteString + getExecutorPathBytes(); + } + /** + *
+   * Custom Proto for Spark Plugin.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.SparkJob} + */ + public static final class SparkJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkJob) + SparkJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use SparkJob.newBuilder() to construct. + private SparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SparkJob() { + applicationType_ = 0; + mainApplicationFile_ = ""; + mainClass_ = ""; + executorPath_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SparkJob( + 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 8: { + int rawValue = input.readEnum(); + + applicationType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + mainApplicationFile_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + mainClass_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + sparkConf_ = com.google.protobuf.MapField.newMapField( + SparkConfDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry + sparkConf__ = input.readMessage( + SparkConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + sparkConf_.getMutableMap().put( + sparkConf__.getKey(), sparkConf__.getValue()); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + hadoopConf_ = com.google.protobuf.MapField.newMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry + hadoopConf__ = input.readMessage( + HadoopConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + hadoopConf_.getMutableMap().put( + hadoopConf__.getKey(), hadoopConf__.getValue()); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + executorPath_ = 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 flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetSparkConf(); + case 5: + return internalGetHadoopConf(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); + } + + private int bitField0_; + public static final int APPLICATIONTYPE_FIELD_NUMBER = 1; + private int applicationType_; + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public int getApplicationTypeValue() { + return applicationType_; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); + return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; + } + + public static final int MAINAPPLICATIONFILE_FIELD_NUMBER = 2; + private volatile java.lang.Object mainApplicationFile_; + /** + * string mainApplicationFile = 2; + */ + public java.lang.String getMainApplicationFile() { + java.lang.Object ref = mainApplicationFile_; + 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(); + mainApplicationFile_ = s; + return s; + } + } + /** + * string mainApplicationFile = 2; + */ + public com.google.protobuf.ByteString + getMainApplicationFileBytes() { + java.lang.Object ref = mainApplicationFile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainApplicationFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAINCLASS_FIELD_NUMBER = 3; + private volatile java.lang.Object mainClass_; + /** + * string mainClass = 3; + */ + public java.lang.String getMainClass() { + java.lang.Object ref = mainClass_; + 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(); + mainClass_ = s; + return s; + } + } + /** + * string mainClass = 3; + */ + public com.google.protobuf.ByteString + getMainClassBytes() { + java.lang.Object ref = mainClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPARKCONF_FIELD_NUMBER = 4; + private static final class SparkConfDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> sparkConf_; + private com.google.protobuf.MapField + internalGetSparkConf() { + if (sparkConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SparkConfDefaultEntryHolder.defaultEntry); + } + return sparkConf_; + } + + public int getSparkConfCount() { + return internalGetSparkConf().getMap().size(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public boolean containsSparkConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSparkConf().getMap().containsKey(key); + } + /** + * Use {@link #getSparkConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getSparkConf() { + return getSparkConfMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.util.Map getSparkConfMap() { + return internalGetSparkConf().getMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int HADOOPCONF_FIELD_NUMBER = 5; + private static final class HadoopConfDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> hadoopConf_; + private com.google.protobuf.MapField + internalGetHadoopConf() { + if (hadoopConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + } + return hadoopConf_; + } + + public int getHadoopConfCount() { + return internalGetHadoopConf().getMap().size(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public boolean containsHadoopConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetHadoopConf().getMap().containsKey(key); + } + /** + * Use {@link #getHadoopConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getHadoopConf() { + return getHadoopConfMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.util.Map getHadoopConfMap() { + return internalGetHadoopConf().getMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int EXECUTORPATH_FIELD_NUMBER = 6; + private volatile java.lang.Object executorPath_; + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + public java.lang.String getExecutorPath() { + java.lang.Object ref = executorPath_; + 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(); + executorPath_ = s; + return s; + } + } + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + public com.google.protobuf.ByteString + getExecutorPathBytes() { + java.lang.Object ref = executorPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executorPath_ = 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 (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { + output.writeEnum(1, applicationType_); + } + if (!getMainApplicationFileBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mainApplicationFile_); + } + if (!getMainClassBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mainClass_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSparkConf(), + SparkConfDefaultEntryHolder.defaultEntry, + 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetHadoopConf(), + HadoopConfDefaultEntryHolder.defaultEntry, + 5); + if (!getExecutorPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, executorPath_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, applicationType_); + } + if (!getMainApplicationFileBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mainApplicationFile_); + } + if (!getMainClassBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mainClass_); + } + for (java.util.Map.Entry entry + : internalGetSparkConf().getMap().entrySet()) { + com.google.protobuf.MapEntry + sparkConf__ = SparkConfDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, sparkConf__); + } + for (java.util.Map.Entry entry + : internalGetHadoopConf().getMap().entrySet()) { + com.google.protobuf.MapEntry + hadoopConf__ = HadoopConfDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, hadoopConf__); + } + if (!getExecutorPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, executorPath_); + } + 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 flyteidl.plugins.Spark.SparkJob)) { + return super.equals(obj); + } + flyteidl.plugins.Spark.SparkJob other = (flyteidl.plugins.Spark.SparkJob) obj; + + if (applicationType_ != other.applicationType_) return false; + if (!getMainApplicationFile() + .equals(other.getMainApplicationFile())) return false; + if (!getMainClass() + .equals(other.getMainClass())) return false; + if (!internalGetSparkConf().equals( + other.internalGetSparkConf())) return false; + if (!internalGetHadoopConf().equals( + other.internalGetHadoopConf())) return false; + if (!getExecutorPath() + .equals(other.getExecutorPath())) 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) + APPLICATIONTYPE_FIELD_NUMBER; + hash = (53 * hash) + applicationType_; + hash = (37 * hash) + MAINAPPLICATIONFILE_FIELD_NUMBER; + hash = (53 * hash) + getMainApplicationFile().hashCode(); + hash = (37 * hash) + MAINCLASS_FIELD_NUMBER; + hash = (53 * hash) + getMainClass().hashCode(); + if (!internalGetSparkConf().getMap().isEmpty()) { + hash = (37 * hash) + SPARKCONF_FIELD_NUMBER; + hash = (53 * hash) + internalGetSparkConf().hashCode(); + } + if (!internalGetHadoopConf().getMap().isEmpty()) { + hash = (37 * hash) + HADOOPCONF_FIELD_NUMBER; + hash = (53 * hash) + internalGetHadoopConf().hashCode(); + } + hash = (37 * hash) + EXECUTORPATH_FIELD_NUMBER; + hash = (53 * hash) + getExecutorPath().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Spark.SparkJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkJob 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 flyteidl.plugins.Spark.SparkJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkJob 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 flyteidl.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkJob 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(flyteidl.plugins.Spark.SparkJob 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; + } + /** + *
+     * Custom Proto for Spark Plugin.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.SparkJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkJob) + flyteidl.plugins.Spark.SparkJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetSparkConf(); + case 5: + return internalGetHadoopConf(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableSparkConf(); + case 5: + return internalGetMutableHadoopConf(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); + } + + // Construct using flyteidl.plugins.Spark.SparkJob.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(); + applicationType_ = 0; + + mainApplicationFile_ = ""; + + mainClass_ = ""; + + internalGetMutableSparkConf().clear(); + internalGetMutableHadoopConf().clear(); + executorPath_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkJob getDefaultInstanceForType() { + return flyteidl.plugins.Spark.SparkJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkJob build() { + flyteidl.plugins.Spark.SparkJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkJob buildPartial() { + flyteidl.plugins.Spark.SparkJob result = new flyteidl.plugins.Spark.SparkJob(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.applicationType_ = applicationType_; + result.mainApplicationFile_ = mainApplicationFile_; + result.mainClass_ = mainClass_; + result.sparkConf_ = internalGetSparkConf(); + result.sparkConf_.makeImmutable(); + result.hadoopConf_ = internalGetHadoopConf(); + result.hadoopConf_.makeImmutable(); + result.executorPath_ = executorPath_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.plugins.Spark.SparkJob) { + return mergeFrom((flyteidl.plugins.Spark.SparkJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Spark.SparkJob other) { + if (other == flyteidl.plugins.Spark.SparkJob.getDefaultInstance()) return this; + if (other.applicationType_ != 0) { + setApplicationTypeValue(other.getApplicationTypeValue()); + } + if (!other.getMainApplicationFile().isEmpty()) { + mainApplicationFile_ = other.mainApplicationFile_; + onChanged(); + } + if (!other.getMainClass().isEmpty()) { + mainClass_ = other.mainClass_; + onChanged(); + } + internalGetMutableSparkConf().mergeFrom( + other.internalGetSparkConf()); + internalGetMutableHadoopConf().mergeFrom( + other.internalGetHadoopConf()); + if (!other.getExecutorPath().isEmpty()) { + executorPath_ = other.executorPath_; + 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 { + flyteidl.plugins.Spark.SparkJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Spark.SparkJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int applicationType_ = 0; + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public int getApplicationTypeValue() { + return applicationType_; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public Builder setApplicationTypeValue(int value) { + applicationType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); + return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public Builder setApplicationType(flyteidl.plugins.Spark.SparkApplication.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + applicationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public Builder clearApplicationType() { + + applicationType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object mainApplicationFile_ = ""; + /** + * string mainApplicationFile = 2; + */ + public java.lang.String getMainApplicationFile() { + java.lang.Object ref = mainApplicationFile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainApplicationFile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string mainApplicationFile = 2; + */ + public com.google.protobuf.ByteString + getMainApplicationFileBytes() { + java.lang.Object ref = mainApplicationFile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainApplicationFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string mainApplicationFile = 2; + */ + public Builder setMainApplicationFile( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mainApplicationFile_ = value; + onChanged(); + return this; + } + /** + * string mainApplicationFile = 2; + */ + public Builder clearMainApplicationFile() { + + mainApplicationFile_ = getDefaultInstance().getMainApplicationFile(); + onChanged(); + return this; + } + /** + * string mainApplicationFile = 2; + */ + public Builder setMainApplicationFileBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mainApplicationFile_ = value; + onChanged(); + return this; + } + + private java.lang.Object mainClass_ = ""; + /** + * string mainClass = 3; + */ + public java.lang.String getMainClass() { + java.lang.Object ref = mainClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string mainClass = 3; + */ + public com.google.protobuf.ByteString + getMainClassBytes() { + java.lang.Object ref = mainClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string mainClass = 3; + */ + public Builder setMainClass( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mainClass_ = value; + onChanged(); + return this; + } + /** + * string mainClass = 3; + */ + public Builder clearMainClass() { + + mainClass_ = getDefaultInstance().getMainClass(); + onChanged(); + return this; + } + /** + * string mainClass = 3; + */ + public Builder setMainClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mainClass_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> sparkConf_; + private com.google.protobuf.MapField + internalGetSparkConf() { + if (sparkConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SparkConfDefaultEntryHolder.defaultEntry); + } + return sparkConf_; + } + private com.google.protobuf.MapField + internalGetMutableSparkConf() { + onChanged();; + if (sparkConf_ == null) { + sparkConf_ = com.google.protobuf.MapField.newMapField( + SparkConfDefaultEntryHolder.defaultEntry); + } + if (!sparkConf_.isMutable()) { + sparkConf_ = sparkConf_.copy(); + } + return sparkConf_; + } + + public int getSparkConfCount() { + return internalGetSparkConf().getMap().size(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public boolean containsSparkConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSparkConf().getMap().containsKey(key); + } + /** + * Use {@link #getSparkConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getSparkConf() { + return getSparkConfMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.util.Map getSparkConfMap() { + return internalGetSparkConf().getMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSparkConf() { + internalGetMutableSparkConf().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> sparkConf = 4; + */ + + public Builder removeSparkConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSparkConf().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSparkConf() { + return internalGetMutableSparkConf().getMutableMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + public Builder putSparkConf( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSparkConf().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, string> sparkConf = 4; + */ + + public Builder putAllSparkConf( + java.util.Map values) { + internalGetMutableSparkConf().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> hadoopConf_; + private com.google.protobuf.MapField + internalGetHadoopConf() { + if (hadoopConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + } + return hadoopConf_; + } + private com.google.protobuf.MapField + internalGetMutableHadoopConf() { + onChanged();; + if (hadoopConf_ == null) { + hadoopConf_ = com.google.protobuf.MapField.newMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + } + if (!hadoopConf_.isMutable()) { + hadoopConf_ = hadoopConf_.copy(); + } + return hadoopConf_; + } + + public int getHadoopConfCount() { + return internalGetHadoopConf().getMap().size(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public boolean containsHadoopConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetHadoopConf().getMap().containsKey(key); + } + /** + * Use {@link #getHadoopConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getHadoopConf() { + return getHadoopConfMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.util.Map getHadoopConfMap() { + return internalGetHadoopConf().getMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHadoopConf() { + internalGetMutableHadoopConf().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public Builder removeHadoopConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableHadoopConf().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableHadoopConf() { + return internalGetMutableHadoopConf().getMutableMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + public Builder putHadoopConf( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableHadoopConf().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public Builder putAllHadoopConf( + java.util.Map values) { + internalGetMutableHadoopConf().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object executorPath_ = ""; + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public java.lang.String getExecutorPath() { + java.lang.Object ref = executorPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executorPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public com.google.protobuf.ByteString + getExecutorPathBytes() { + java.lang.Object ref = executorPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executorPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public Builder setExecutorPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + executorPath_ = value; + onChanged(); + return this; + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public Builder clearExecutorPath() { + + executorPath_ = getDefaultInstance().getExecutorPath(); + onChanged(); + return this; + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public Builder setExecutorPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + executorPath_ = 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:flyteidl.plugins.SparkJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkJob) + private static final flyteidl.plugins.Spark.SparkJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkJob(); + } + + public static flyteidl.plugins.Spark.SparkJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SparkJob(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 flyteidl.plugins.Spark.SparkJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkApplication_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_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\034flyteidl/plugins/spark.proto\022\020flyteidl" + + ".plugins\"B\n\020SparkApplication\".\n\004Type\022\n\n\006" + + "PYTHON\020\000\022\010\n\004JAVA\020\001\022\t\n\005SCALA\020\002\022\005\n\001R\020\003\"\365\002\n" + + "\010SparkJob\022@\n\017applicationType\030\001 \001(\0162\'.fly" + + "teidl.plugins.SparkApplication.Type\022\033\n\023m" + + "ainApplicationFile\030\002 \001(\t\022\021\n\tmainClass\030\003 " + + "\001(\t\022<\n\tsparkConf\030\004 \003(\0132).flyteidl.plugin" + + "s.SparkJob.SparkConfEntry\022>\n\nhadoopConf\030" + + "\005 \003(\0132*.flyteidl.plugins.SparkJob.Hadoop" + + "ConfEntry\022\024\n\014executorPath\030\006 \001(\t\0320\n\016Spark" + + "ConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\0321\n\017HadoopConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001B5Z3github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_SparkApplication_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkApplication_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_SparkJob_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkJob_descriptor, + new java.lang.String[] { "ApplicationType", "MainApplicationFile", "MainClass", "SparkConf", "HadoopConf", "ExecutorPath", }); + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor = + internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor = + internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(1); + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/Tensorflow.java b/gen/pb-java/flyteidl/plugins/Tensorflow.java new file mode 100644 index 000000000..e8d80be10 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/Tensorflow.java @@ -0,0 +1,705 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/tensorflow.proto + +package flyteidl.plugins; + +public final class Tensorflow { + private Tensorflow() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DistributedTensorflowTrainingTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedTensorflowTrainingTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * number of worker, ps, chief replicas spawned in the cluster for this job
+     * 
+ * + * int32 workers = 1; + */ + int getWorkers(); + + /** + *
+     * PS -> Parameter server
+     * 
+ * + * int32 ps_replicas = 2; + */ + int getPsReplicas(); + + /** + * int32 chief_replicas = 3; + */ + int getChiefReplicas(); + } + /** + *
+   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedTensorflowTrainingTask} + */ + public static final class DistributedTensorflowTrainingTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedTensorflowTrainingTask) + DistributedTensorflowTrainingTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedTensorflowTrainingTask.newBuilder() to construct. + private DistributedTensorflowTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedTensorflowTrainingTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedTensorflowTrainingTask( + 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 8: { + + workers_ = input.readInt32(); + break; + } + case 16: { + + psReplicas_ = input.readInt32(); + break; + } + case 24: { + + chiefReplicas_ = input.readInt32(); + 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 flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); + } + + public static final int WORKERS_FIELD_NUMBER = 1; + private int workers_; + /** + *
+     * number of worker, ps, chief replicas spawned in the cluster for this job
+     * 
+ * + * int32 workers = 1; + */ + public int getWorkers() { + return workers_; + } + + public static final int PS_REPLICAS_FIELD_NUMBER = 2; + private int psReplicas_; + /** + *
+     * PS -> Parameter server
+     * 
+ * + * int32 ps_replicas = 2; + */ + public int getPsReplicas() { + return psReplicas_; + } + + public static final int CHIEF_REPLICAS_FIELD_NUMBER = 3; + private int chiefReplicas_; + /** + * int32 chief_replicas = 3; + */ + public int getChiefReplicas() { + return chiefReplicas_; + } + + 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 (workers_ != 0) { + output.writeInt32(1, workers_); + } + if (psReplicas_ != 0) { + output.writeInt32(2, psReplicas_); + } + if (chiefReplicas_ != 0) { + output.writeInt32(3, chiefReplicas_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workers_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, workers_); + } + if (psReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, psReplicas_); + } + if (chiefReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, chiefReplicas_); + } + 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask)) { + return super.equals(obj); + } + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask other = (flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) obj; + + if (getWorkers() + != other.getWorkers()) return false; + if (getPsReplicas() + != other.getPsReplicas()) return false; + if (getChiefReplicas() + != other.getChiefReplicas()) 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) + WORKERS_FIELD_NUMBER; + hash = (53 * hash) + getWorkers(); + hash = (37 * hash) + PS_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getPsReplicas(); + hash = (37 * hash) + CHIEF_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getChiefReplicas(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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(flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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; + } + /** + *
+     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedTensorflowTrainingTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedTensorflowTrainingTask) + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); + } + + // Construct using flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.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(); + workers_ = 0; + + psReplicas_ = 0; + + chiefReplicas_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { + return flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask build() { + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask buildPartial() { + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask result = new flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask(this); + result.workers_ = workers_; + result.psReplicas_ = psReplicas_; + result.chiefReplicas_ = chiefReplicas_; + 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) { + return mergeFrom((flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask other) { + if (other == flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance()) return this; + if (other.getWorkers() != 0) { + setWorkers(other.getWorkers()); + } + if (other.getPsReplicas() != 0) { + setPsReplicas(other.getPsReplicas()); + } + if (other.getChiefReplicas() != 0) { + setChiefReplicas(other.getChiefReplicas()); + } + 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 { + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int workers_ ; + /** + *
+       * number of worker, ps, chief replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public int getWorkers() { + return workers_; + } + /** + *
+       * number of worker, ps, chief replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public Builder setWorkers(int value) { + + workers_ = value; + onChanged(); + return this; + } + /** + *
+       * number of worker, ps, chief replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public Builder clearWorkers() { + + workers_ = 0; + onChanged(); + return this; + } + + private int psReplicas_ ; + /** + *
+       * PS -> Parameter server
+       * 
+ * + * int32 ps_replicas = 2; + */ + public int getPsReplicas() { + return psReplicas_; + } + /** + *
+       * PS -> Parameter server
+       * 
+ * + * int32 ps_replicas = 2; + */ + public Builder setPsReplicas(int value) { + + psReplicas_ = value; + onChanged(); + return this; + } + /** + *
+       * PS -> Parameter server
+       * 
+ * + * int32 ps_replicas = 2; + */ + public Builder clearPsReplicas() { + + psReplicas_ = 0; + onChanged(); + return this; + } + + private int chiefReplicas_ ; + /** + * int32 chief_replicas = 3; + */ + public int getChiefReplicas() { + return chiefReplicas_; + } + /** + * int32 chief_replicas = 3; + */ + public Builder setChiefReplicas(int value) { + + chiefReplicas_ = value; + onChanged(); + return this; + } + /** + * int32 chief_replicas = 3; + */ + public Builder clearChiefReplicas() { + + chiefReplicas_ = 0; + 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:flyteidl.plugins.DistributedTensorflowTrainingTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedTensorflowTrainingTask) + private static final flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask(); + } + + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedTensorflowTrainingTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedTensorflowTrainingTask(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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_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!flyteidl/plugins/tensorflow.proto\022\020fly" + + "teidl.plugins\"a\n!DistributedTensorflowTr" + + "ainingTask\022\017\n\007workers\030\001 \001(\005\022\023\n\013ps_replic" + + "as\030\002 \001(\005\022\026\n\016chief_replicas\030\003 \001(\005B5Z3gith" + + "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" + + "pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor, + new java.lang.String[] { "Workers", "PsReplicas", "ChiefReplicas", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java b/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java new file mode 100644 index 000000000..775bfea76 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java @@ -0,0 +1,911 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/waitable.proto + +package flyteidl.plugins; + +public final class WaitableOuterClass { + private WaitableOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WaitableOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.Waitable) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + boolean hasWfExecId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder(); + + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + int getPhaseValue(); + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); + + /** + * string workflow_id = 3; + */ + java.lang.String getWorkflowId(); + /** + * string workflow_id = 3; + */ + com.google.protobuf.ByteString + getWorkflowIdBytes(); + } + /** + *
+   * Represents an Execution that was launched and could be waited on.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.Waitable} + */ + public static final class Waitable extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.Waitable) + WaitableOrBuilder { + private static final long serialVersionUID = 0L; + // Use Waitable.newBuilder() to construct. + private Waitable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Waitable() { + phase_ = 0; + workflowId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Waitable( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (wfExecId_ != null) { + subBuilder = wfExecId_.toBuilder(); + } + wfExecId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(wfExecId_); + wfExecId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + workflowId_ = 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 flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); + } + + public static final int WF_EXEC_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public boolean hasWfExecId() { + return wfExecId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { + return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { + return getWfExecId(); + } + + public static final int PHASE_FIELD_NUMBER = 2; + private int phase_; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + + public static final int WORKFLOW_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object workflowId_; + /** + * string workflow_id = 3; + */ + public java.lang.String getWorkflowId() { + java.lang.Object ref = workflowId_; + 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(); + workflowId_ = s; + return s; + } + } + /** + * string workflow_id = 3; + */ + public com.google.protobuf.ByteString + getWorkflowIdBytes() { + java.lang.Object ref = workflowId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflowId_ = 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 (wfExecId_ != null) { + output.writeMessage(1, getWfExecId()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(2, phase_); + } + if (!getWorkflowIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (wfExecId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWfExecId()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, phase_); + } + if (!getWorkflowIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_); + } + 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 flyteidl.plugins.WaitableOuterClass.Waitable)) { + return super.equals(obj); + } + flyteidl.plugins.WaitableOuterClass.Waitable other = (flyteidl.plugins.WaitableOuterClass.Waitable) obj; + + if (hasWfExecId() != other.hasWfExecId()) return false; + if (hasWfExecId()) { + if (!getWfExecId() + .equals(other.getWfExecId())) return false; + } + if (phase_ != other.phase_) return false; + if (!getWorkflowId() + .equals(other.getWorkflowId())) 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 (hasWfExecId()) { + hash = (37 * hash) + WF_EXEC_ID_FIELD_NUMBER; + hash = (53 * hash) + getWfExecId().hashCode(); + } + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable 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 flyteidl.plugins.WaitableOuterClass.Waitable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable 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 flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable 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(flyteidl.plugins.WaitableOuterClass.Waitable 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; + } + /** + *
+     * Represents an Execution that was launched and could be waited on.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.Waitable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.Waitable) + flyteidl.plugins.WaitableOuterClass.WaitableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); + } + + // Construct using flyteidl.plugins.WaitableOuterClass.Waitable.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 (wfExecIdBuilder_ == null) { + wfExecId_ = null; + } else { + wfExecId_ = null; + wfExecIdBuilder_ = null; + } + phase_ = 0; + + workflowId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { + return flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.WaitableOuterClass.Waitable build() { + flyteidl.plugins.WaitableOuterClass.Waitable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.WaitableOuterClass.Waitable buildPartial() { + flyteidl.plugins.WaitableOuterClass.Waitable result = new flyteidl.plugins.WaitableOuterClass.Waitable(this); + if (wfExecIdBuilder_ == null) { + result.wfExecId_ = wfExecId_; + } else { + result.wfExecId_ = wfExecIdBuilder_.build(); + } + result.phase_ = phase_; + result.workflowId_ = workflowId_; + 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 flyteidl.plugins.WaitableOuterClass.Waitable) { + return mergeFrom((flyteidl.plugins.WaitableOuterClass.Waitable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.WaitableOuterClass.Waitable other) { + if (other == flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance()) return this; + if (other.hasWfExecId()) { + mergeWfExecId(other.getWfExecId()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (!other.getWorkflowId().isEmpty()) { + workflowId_ = other.workflowId_; + 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 { + flyteidl.plugins.WaitableOuterClass.Waitable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.WaitableOuterClass.Waitable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> wfExecIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public boolean hasWfExecId() { + return wfExecIdBuilder_ != null || wfExecId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { + if (wfExecIdBuilder_ == null) { + return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; + } else { + return wfExecIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder setWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (wfExecIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + wfExecId_ = value; + onChanged(); + } else { + wfExecIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder setWfExecId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (wfExecIdBuilder_ == null) { + wfExecId_ = builderForValue.build(); + onChanged(); + } else { + wfExecIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder mergeWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (wfExecIdBuilder_ == null) { + if (wfExecId_ != null) { + wfExecId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(wfExecId_).mergeFrom(value).buildPartial(); + } else { + wfExecId_ = value; + } + onChanged(); + } else { + wfExecIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder clearWfExecId() { + if (wfExecIdBuilder_ == null) { + wfExecId_ = null; + onChanged(); + } else { + wfExecId_ = null; + wfExecIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWfExecIdBuilder() { + + onChanged(); + return getWfExecIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { + if (wfExecIdBuilder_ != null) { + return wfExecIdBuilder_.getMessageOrBuilder(); + } else { + return wfExecId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getWfExecIdFieldBuilder() { + if (wfExecIdBuilder_ == null) { + wfExecIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getWfExecId(), + getParentForChildren(), + isClean()); + wfExecId_ = null; + } + return wfExecIdBuilder_; + } + + private int phase_ = 0; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private java.lang.Object workflowId_ = ""; + /** + * string workflow_id = 3; + */ + public java.lang.String getWorkflowId() { + java.lang.Object ref = workflowId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflowId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workflow_id = 3; + */ + public com.google.protobuf.ByteString + getWorkflowIdBytes() { + java.lang.Object ref = workflowId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflowId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workflow_id = 3; + */ + public Builder setWorkflowId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflowId_ = value; + onChanged(); + return this; + } + /** + * string workflow_id = 3; + */ + public Builder clearWorkflowId() { + + workflowId_ = getDefaultInstance().getWorkflowId(); + onChanged(); + return this; + } + /** + * string workflow_id = 3; + */ + public Builder setWorkflowIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflowId_ = 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:flyteidl.plugins.Waitable) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.Waitable) + private static final flyteidl.plugins.WaitableOuterClass.Waitable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.WaitableOuterClass.Waitable(); + } + + public static flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Waitable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Waitable(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 flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_Waitable_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_Waitable_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\037flyteidl/plugins/waitable.proto\022\020flyte" + + "idl.plugins\032\035flyteidl/core/execution.pro" + + "to\032\036flyteidl/core/identifier.proto\"\226\001\n\010W" + + "aitable\022>\n\nwf_exec_id\030\001 \001(\0132*.flyteidl.c" + + "ore.WorkflowExecutionIdentifier\0225\n\005phase" + + "\030\002 \001(\0162&.flyteidl.core.WorkflowExecution" + + ".Phase\022\023\n\013workflow_id\030\003 \001(\tB5Z3github.co" + + "m/lyft/flyteidl/gen/pb-go/flyteidl/plugi" + + "nsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_Waitable_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_Waitable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_Waitable_descriptor, + new java.lang.String[] { "WfExecId", "Phase", "WorkflowId", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java b/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java new file mode 100644 index 000000000..87ed539e5 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java @@ -0,0 +1,2824 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/hpo_job.proto + +package flyteidl.plugins.sagemaker; + +public final class HpoJob { + private HpoJob() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface HyperparameterTuningObjectiveOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + int getObjectiveTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); + + /** + * string metric_name = 2; + */ + java.lang.String getMetricName(); + /** + * string metric_name = 2; + */ + com.google.protobuf.ByteString + getMetricNameBytes(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} + */ + public static final class HyperparameterTuningObjective extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + HyperparameterTuningObjectiveOrBuilder { + private static final long serialVersionUID = 0L; + // Use HyperparameterTuningObjective.newBuilder() to construct. + private HyperparameterTuningObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HyperparameterTuningObjective() { + objectiveType_ = 0; + metricName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HyperparameterTuningObjective( + 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 8: { + int rawValue = input.readEnum(); + + objectiveType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + metricName_ = 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType} + */ + public enum HyperparameterTuningObjectiveType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MINIMIZE = 0; + */ + MINIMIZE(0), + /** + * MAXIMIZE = 1; + */ + MAXIMIZE(1), + UNRECOGNIZED(-1), + ; + + /** + * MINIMIZE = 0; + */ + public static final int MINIMIZE_VALUE = 0; + /** + * MAXIMIZE = 1; + */ + public static final int MAXIMIZE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HyperparameterTuningObjectiveType valueOf(int value) { + return forNumber(value); + } + + public static HyperparameterTuningObjectiveType forNumber(int value) { + switch (value) { + case 0: return MINIMIZE; + case 1: return MAXIMIZE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HyperparameterTuningObjectiveType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HyperparameterTuningObjectiveType findValueByNumber(int number) { + return HyperparameterTuningObjectiveType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0); + } + + private static final HyperparameterTuningObjectiveType[] VALUES = values(); + + public static HyperparameterTuningObjectiveType 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 HyperparameterTuningObjectiveType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType) + } + + public static final int OBJECTIVE_TYPE_FIELD_NUMBER = 1; + private int objectiveType_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public int getObjectiveTypeValue() { + return objectiveType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; + } + + public static final int METRIC_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object metricName_; + /** + * string metric_name = 2; + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + 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(); + metricName_ = s; + return s; + } + } + /** + * string metric_name = 2; + */ + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = 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 (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { + output.writeEnum(1, objectiveType_); + } + if (!getMetricNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, objectiveType_); + } + if (!getMetricNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricName_); + } + 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) obj; + + if (objectiveType_ != other.objectiveType_) return false; + if (!getMetricName() + .equals(other.getMetricName())) 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) + OBJECTIVE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + objectiveType_; + hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HyperparameterTuningObjective} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.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(); + objectiveType_ = 0; + + metricName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective build() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(this); + result.objectiveType_ = objectiveType_; + result.metricName_ = metricName_; + 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance()) return this; + if (other.objectiveType_ != 0) { + setObjectiveTypeValue(other.getObjectiveTypeValue()); + } + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + 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 { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int objectiveType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public int getObjectiveTypeValue() { + return objectiveType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public Builder setObjectiveTypeValue(int value) { + objectiveType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public Builder setObjectiveType(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) { + if (value == null) { + throw new NullPointerException(); + } + + objectiveType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public Builder clearObjectiveType() { + + objectiveType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object metricName_ = ""; + /** + * string metric_name = 2; + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string metric_name = 2; + */ + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string metric_name = 2; + */ + public Builder setMetricName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metricName_ = value; + onChanged(); + return this; + } + /** + * string metric_name = 2; + */ + public Builder clearMetricName() { + + metricName_ = getDefaultInstance().getMetricName(); + onChanged(); + return this; + } + /** + * string metric_name = 2; + */ + public Builder setMetricNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metricName_ = 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:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(); + } + + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HyperparameterTuningObjective parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HyperparameterTuningObjective(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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HPOJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + boolean hasTrainingJob(); + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob(); + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder(); + + /** + * int64 max_number_of_training_jobs = 2; + */ + long getMaxNumberOfTrainingJobs(); + + /** + * int64 max_parallel_training_jobs = 3; + */ + long getMaxParallelTrainingJobs(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJob} + */ + public static final class HPOJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJob) + HPOJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use HPOJob.newBuilder() to construct. + private HPOJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HPOJob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HPOJob( + 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: { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder subBuilder = null; + if (trainingJob_ != null) { + subBuilder = trainingJob_.toBuilder(); + } + trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingJob_); + trainingJob_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + maxNumberOfTrainingJobs_ = input.readInt64(); + break; + } + case 24: { + + maxParallelTrainingJobs_ = 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class); + } + + public static final int TRAINING_JOB_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public boolean hasTrainingJob() { + return trainingJob_ != null; + } + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { + return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; + } + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { + return getTrainingJob(); + } + + public static final int MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER = 2; + private long maxNumberOfTrainingJobs_; + /** + * int64 max_number_of_training_jobs = 2; + */ + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; + } + + public static final int MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER = 3; + private long maxParallelTrainingJobs_; + /** + * int64 max_parallel_training_jobs = 3; + */ + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; + } + + 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 (trainingJob_ != null) { + output.writeMessage(1, getTrainingJob()); + } + if (maxNumberOfTrainingJobs_ != 0L) { + output.writeInt64(2, maxNumberOfTrainingJobs_); + } + if (maxParallelTrainingJobs_ != 0L) { + output.writeInt64(3, maxParallelTrainingJobs_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (trainingJob_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTrainingJob()); + } + if (maxNumberOfTrainingJobs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxNumberOfTrainingJobs_); + } + if (maxParallelTrainingJobs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, maxParallelTrainingJobs_); + } + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HpoJob.HPOJob other = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) obj; + + if (hasTrainingJob() != other.hasTrainingJob()) return false; + if (hasTrainingJob()) { + if (!getTrainingJob() + .equals(other.getTrainingJob())) return false; + } + if (getMaxNumberOfTrainingJobs() + != other.getMaxNumberOfTrainingJobs()) return false; + if (getMaxParallelTrainingJobs() + != other.getMaxParallelTrainingJobs()) 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 (hasTrainingJob()) { + hash = (37 * hash) + TRAINING_JOB_FIELD_NUMBER; + hash = (53 * hash) + getTrainingJob().hashCode(); + } + hash = (37 * hash) + MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxNumberOfTrainingJobs()); + hash = (37 * hash) + MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxParallelTrainingJobs()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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(flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.HPOJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJob) + flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJob.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 (trainingJobBuilder_ == null) { + trainingJob_ = null; + } else { + trainingJob_ = null; + trainingJobBuilder_ = null; + } + maxNumberOfTrainingJobs_ = 0L; + + maxParallelTrainingJobs_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJob build() { + flyteidl.plugins.sagemaker.HpoJob.HPOJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJob buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HPOJob result = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(this); + if (trainingJobBuilder_ == null) { + result.trainingJob_ = trainingJob_; + } else { + result.trainingJob_ = trainingJobBuilder_.build(); + } + result.maxNumberOfTrainingJobs_ = maxNumberOfTrainingJobs_; + result.maxParallelTrainingJobs_ = maxParallelTrainingJobs_; + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJob other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance()) return this; + if (other.hasTrainingJob()) { + mergeTrainingJob(other.getTrainingJob()); + } + if (other.getMaxNumberOfTrainingJobs() != 0L) { + setMaxNumberOfTrainingJobs(other.getMaxNumberOfTrainingJobs()); + } + if (other.getMaxParallelTrainingJobs() != 0L) { + setMaxParallelTrainingJobs(other.getMaxParallelTrainingJobs()); + } + 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 { + flyteidl.plugins.sagemaker.HpoJob.HPOJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> trainingJobBuilder_; + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public boolean hasTrainingJob() { + return trainingJobBuilder_ != null || trainingJob_ != null; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { + if (trainingJobBuilder_ == null) { + return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; + } else { + return trainingJobBuilder_.getMessage(); + } + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public Builder setTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { + if (trainingJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingJob_ = value; + onChanged(); + } else { + trainingJobBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public Builder setTrainingJob( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder builderForValue) { + if (trainingJobBuilder_ == null) { + trainingJob_ = builderForValue.build(); + onChanged(); + } else { + trainingJobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { + if (trainingJobBuilder_ == null) { + if (trainingJob_ != null) { + trainingJob_ = + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); + } else { + trainingJob_ = value; + } + onChanged(); + } else { + trainingJobBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public Builder clearTrainingJob() { + if (trainingJobBuilder_ == null) { + trainingJob_ = null; + onChanged(); + } else { + trainingJob_ = null; + trainingJobBuilder_ = null; + } + + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder getTrainingJobBuilder() { + + onChanged(); + return getTrainingJobFieldBuilder().getBuilder(); + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { + if (trainingJobBuilder_ != null) { + return trainingJobBuilder_.getMessageOrBuilder(); + } else { + return trainingJob_ == null ? + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; + } + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> + getTrainingJobFieldBuilder() { + if (trainingJobBuilder_ == null) { + trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder>( + getTrainingJob(), + getParentForChildren(), + isClean()); + trainingJob_ = null; + } + return trainingJobBuilder_; + } + + private long maxNumberOfTrainingJobs_ ; + /** + * int64 max_number_of_training_jobs = 2; + */ + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; + } + /** + * int64 max_number_of_training_jobs = 2; + */ + public Builder setMaxNumberOfTrainingJobs(long value) { + + maxNumberOfTrainingJobs_ = value; + onChanged(); + return this; + } + /** + * int64 max_number_of_training_jobs = 2; + */ + public Builder clearMaxNumberOfTrainingJobs() { + + maxNumberOfTrainingJobs_ = 0L; + onChanged(); + return this; + } + + private long maxParallelTrainingJobs_ ; + /** + * int64 max_parallel_training_jobs = 3; + */ + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; + } + /** + * int64 max_parallel_training_jobs = 3; + */ + public Builder setMaxParallelTrainingJobs(long value) { + + maxParallelTrainingJobs_ = value; + onChanged(); + return this; + } + /** + * int64 max_parallel_training_jobs = 3; + */ + public Builder clearMaxParallelTrainingJobs() { + + maxParallelTrainingJobs_ = 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:flyteidl.plugins.sagemaker.HPOJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) + private static final flyteidl.plugins.sagemaker.HpoJob.HPOJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(); + } + + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HPOJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HPOJob(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 flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HPOJobConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJobConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + boolean hasHyperparameterRanges(); + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges(); + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + int getTuningStrategyValue(); + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy(); + + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + boolean hasTuningObjective(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + int getTrainingJobEarlyStoppingTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobConfig} + */ + public static final class HPOJobConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJobConfig) + HPOJobConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use HPOJobConfig.newBuilder() to construct. + private HPOJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HPOJobConfig() { + tuningStrategy_ = 0; + trainingJobEarlyStoppingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HPOJobConfig( + 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: { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder subBuilder = null; + if (hyperparameterRanges_ != null) { + subBuilder = hyperparameterRanges_.toBuilder(); + } + hyperparameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hyperparameterRanges_); + hyperparameterRanges_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + tuningStrategy_ = rawValue; + break; + } + case 26: { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder subBuilder = null; + if (tuningObjective_ != null) { + subBuilder = tuningObjective_.toBuilder(); + } + tuningObjective_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tuningObjective_); + tuningObjective_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + trainingJobEarlyStoppingType_ = rawValue; + 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy} + */ + public enum HyperparameterTuningStrategy + implements com.google.protobuf.ProtocolMessageEnum { + /** + * BAYESIAN = 0; + */ + BAYESIAN(0), + /** + * RANDOM = 1; + */ + RANDOM(1), + UNRECOGNIZED(-1), + ; + + /** + * BAYESIAN = 0; + */ + public static final int BAYESIAN_VALUE = 0; + /** + * RANDOM = 1; + */ + public static final int RANDOM_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HyperparameterTuningStrategy valueOf(int value) { + return forNumber(value); + } + + public static HyperparameterTuningStrategy forNumber(int value) { + switch (value) { + case 0: return BAYESIAN; + case 1: return RANDOM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HyperparameterTuningStrategy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HyperparameterTuningStrategy findValueByNumber(int number) { + return HyperparameterTuningStrategy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final HyperparameterTuningStrategy[] VALUES = values(); + + public static HyperparameterTuningStrategy 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 HyperparameterTuningStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy) + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType} + */ + public enum TrainingJobEarlyStoppingType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * OFF = 0; + */ + OFF(0), + /** + * AUTO = 1; + */ + AUTO(1), + UNRECOGNIZED(-1), + ; + + /** + * OFF = 0; + */ + public static final int OFF_VALUE = 0; + /** + * AUTO = 1; + */ + public static final int AUTO_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TrainingJobEarlyStoppingType valueOf(int value) { + return forNumber(value); + } + + public static TrainingJobEarlyStoppingType forNumber(int value) { + switch (value) { + case 0: return OFF; + case 1: return AUTO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TrainingJobEarlyStoppingType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TrainingJobEarlyStoppingType findValueByNumber(int number) { + return TrainingJobEarlyStoppingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final TrainingJobEarlyStoppingType[] VALUES = values(); + + public static TrainingJobEarlyStoppingType 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 TrainingJobEarlyStoppingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType) + } + + public static final int HYPERPARAMETER_RANGES_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_; + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public boolean hasHyperparameterRanges() { + return hyperparameterRanges_ != null; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { + return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { + return getHyperparameterRanges(); + } + + public static final int TUNING_STRATEGY_FIELD_NUMBER = 2; + private int tuningStrategy_; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public int getTuningStrategyValue() { + return tuningStrategy_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result; + } + + public static final int TUNING_OBJECTIVE_FIELD_NUMBER = 3; + private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public boolean hasTuningObjective() { + return tuningObjective_ != null; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() { + return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { + return getTuningObjective(); + } + + public static final int TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER = 4; + private int trainingJobEarlyStoppingType_; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public int getTrainingJobEarlyStoppingTypeValue() { + return trainingJobEarlyStoppingType_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; + } + + 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 (hyperparameterRanges_ != null) { + output.writeMessage(1, getHyperparameterRanges()); + } + if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { + output.writeEnum(2, tuningStrategy_); + } + if (tuningObjective_ != null) { + output.writeMessage(3, getTuningObjective()); + } + if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) { + output.writeEnum(4, trainingJobEarlyStoppingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hyperparameterRanges_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHyperparameterRanges()); + } + if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, tuningStrategy_); + } + if (tuningObjective_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTuningObjective()); + } + if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, trainingJobEarlyStoppingType_); + } + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) obj; + + if (hasHyperparameterRanges() != other.hasHyperparameterRanges()) return false; + if (hasHyperparameterRanges()) { + if (!getHyperparameterRanges() + .equals(other.getHyperparameterRanges())) return false; + } + if (tuningStrategy_ != other.tuningStrategy_) return false; + if (hasTuningObjective() != other.hasTuningObjective()) return false; + if (hasTuningObjective()) { + if (!getTuningObjective() + .equals(other.getTuningObjective())) return false; + } + if (trainingJobEarlyStoppingType_ != other.trainingJobEarlyStoppingType_) 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 (hasHyperparameterRanges()) { + hash = (37 * hash) + HYPERPARAMETER_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getHyperparameterRanges().hashCode(); + } + hash = (37 * hash) + TUNING_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + tuningStrategy_; + if (hasTuningObjective()) { + hash = (37 * hash) + TUNING_OBJECTIVE_FIELD_NUMBER; + hash = (53 * hash) + getTuningObjective().hashCode(); + } + hash = (37 * hash) + TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + trainingJobEarlyStoppingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HPOJobConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobConfig) + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.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 (hyperparameterRangesBuilder_ == null) { + hyperparameterRanges_ = null; + } else { + hyperparameterRanges_ = null; + hyperparameterRangesBuilder_ = null; + } + tuningStrategy_ = 0; + + if (tuningObjectiveBuilder_ == null) { + tuningObjective_ = null; + } else { + tuningObjective_ = null; + tuningObjectiveBuilder_ = null; + } + trainingJobEarlyStoppingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig build() { + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(this); + if (hyperparameterRangesBuilder_ == null) { + result.hyperparameterRanges_ = hyperparameterRanges_; + } else { + result.hyperparameterRanges_ = hyperparameterRangesBuilder_.build(); + } + result.tuningStrategy_ = tuningStrategy_; + if (tuningObjectiveBuilder_ == null) { + result.tuningObjective_ = tuningObjective_; + } else { + result.tuningObjective_ = tuningObjectiveBuilder_.build(); + } + result.trainingJobEarlyStoppingType_ = trainingJobEarlyStoppingType_; + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance()) return this; + if (other.hasHyperparameterRanges()) { + mergeHyperparameterRanges(other.getHyperparameterRanges()); + } + if (other.tuningStrategy_ != 0) { + setTuningStrategyValue(other.getTuningStrategyValue()); + } + if (other.hasTuningObjective()) { + mergeTuningObjective(other.getTuningObjective()); + } + if (other.trainingJobEarlyStoppingType_ != 0) { + setTrainingJobEarlyStoppingTypeValue(other.getTrainingJobEarlyStoppingTypeValue()); + } + 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 { + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> hyperparameterRangesBuilder_; + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public boolean hasHyperparameterRanges() { + return hyperparameterRangesBuilder_ != null || hyperparameterRanges_ != null; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { + if (hyperparameterRangesBuilder_ == null) { + return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; + } else { + return hyperparameterRangesBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { + if (hyperparameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hyperparameterRanges_ = value; + onChanged(); + } else { + hyperparameterRangesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder setHyperparameterRanges( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder builderForValue) { + if (hyperparameterRangesBuilder_ == null) { + hyperparameterRanges_ = builderForValue.build(); + onChanged(); + } else { + hyperparameterRangesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder mergeHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { + if (hyperparameterRangesBuilder_ == null) { + if (hyperparameterRanges_ != null) { + hyperparameterRanges_ = + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.newBuilder(hyperparameterRanges_).mergeFrom(value).buildPartial(); + } else { + hyperparameterRanges_ = value; + } + onChanged(); + } else { + hyperparameterRangesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder clearHyperparameterRanges() { + if (hyperparameterRangesBuilder_ == null) { + hyperparameterRanges_ = null; + onChanged(); + } else { + hyperparameterRanges_ = null; + hyperparameterRangesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder getHyperparameterRangesBuilder() { + + onChanged(); + return getHyperparameterRangesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { + if (hyperparameterRangesBuilder_ != null) { + return hyperparameterRangesBuilder_.getMessageOrBuilder(); + } else { + return hyperparameterRanges_ == null ? + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; + } + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> + getHyperparameterRangesFieldBuilder() { + if (hyperparameterRangesBuilder_ == null) { + hyperparameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder>( + getHyperparameterRanges(), + getParentForChildren(), + isClean()); + hyperparameterRanges_ = null; + } + return hyperparameterRangesBuilder_; + } + + private int tuningStrategy_ = 0; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public int getTuningStrategyValue() { + return tuningStrategy_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public Builder setTuningStrategyValue(int value) { + tuningStrategy_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + + tuningStrategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public Builder clearTuningStrategy() { + + tuningStrategy_ = 0; + onChanged(); + return this; + } + + private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> tuningObjectiveBuilder_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public boolean hasTuningObjective() { + return tuningObjectiveBuilder_ != null || tuningObjective_ != null; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() { + if (tuningObjectiveBuilder_ == null) { + return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; + } else { + return tuningObjectiveBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder setTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) { + if (tuningObjectiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tuningObjective_ = value; + onChanged(); + } else { + tuningObjectiveBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder setTuningObjective( + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder builderForValue) { + if (tuningObjectiveBuilder_ == null) { + tuningObjective_ = builderForValue.build(); + onChanged(); + } else { + tuningObjectiveBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) { + if (tuningObjectiveBuilder_ == null) { + if (tuningObjective_ != null) { + tuningObjective_ = + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder(tuningObjective_).mergeFrom(value).buildPartial(); + } else { + tuningObjective_ = value; + } + onChanged(); + } else { + tuningObjectiveBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder clearTuningObjective() { + if (tuningObjectiveBuilder_ == null) { + tuningObjective_ = null; + onChanged(); + } else { + tuningObjective_ = null; + tuningObjectiveBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder getTuningObjectiveBuilder() { + + onChanged(); + return getTuningObjectiveFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { + if (tuningObjectiveBuilder_ != null) { + return tuningObjectiveBuilder_.getMessageOrBuilder(); + } else { + return tuningObjective_ == null ? + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; + } + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> + getTuningObjectiveFieldBuilder() { + if (tuningObjectiveBuilder_ == null) { + tuningObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder>( + getTuningObjective(), + getParentForChildren(), + isClean()); + tuningObjective_ = null; + } + return tuningObjectiveBuilder_; + } + + private int trainingJobEarlyStoppingType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public int getTrainingJobEarlyStoppingTypeValue() { + return trainingJobEarlyStoppingType_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public Builder setTrainingJobEarlyStoppingTypeValue(int value) { + trainingJobEarlyStoppingType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType value) { + if (value == null) { + throw new NullPointerException(); + } + + trainingJobEarlyStoppingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public Builder clearTrainingJobEarlyStoppingType() { + + trainingJobEarlyStoppingType_ = 0; + 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:flyteidl.plugins.sagemaker.HPOJobConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) + private static final flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(); + } + + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HPOJobConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HPOJobConfig(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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_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(flyteidl/plugins/sagemaker/hpo_job.pro" + + "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" + + "/plugins/sagemaker/parameter_ranges.prot" + + "o\032-flyteidl/plugins/sagemaker/training_j" + + "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" + + "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" + + "ugins.sagemaker.HyperparameterTuningObje" + + "ctive.HyperparameterTuningObjectiveType\022" + + "\023\n\013metric_name\030\002 \001(\t\"?\n!HyperparameterTu" + + "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" + + "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" + + ".flyteidl.plugins.sagemaker.TrainingJob\022" + + "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" + + "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" + + "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" + + "2+.flyteidl.plugins.sagemaker.ParameterR" + + "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" + + "l.plugins.sagemaker.HPOJobConfig.Hyperpa" + + "rameterTuningStrategy\022S\n\020tuning_objectiv" + + "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" + + "erparameterTuningObjective\022o\n training_j" + + "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." + + "plugins.sagemaker.HPOJobConfig.TrainingJ" + + "obEarlyStoppingType\"8\n\034HyperparameterTun" + + "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" + + "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" + + "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" + + "/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(), + flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor, + new java.lang.String[] { "ObjectiveType", "MetricName", }); + internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor, + new java.lang.String[] { "TrainingJob", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", }); + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor, + new java.lang.String[] { "HyperparameterRanges", "TuningStrategy", "TuningObjective", "TrainingJobEarlyStoppingType", }); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java new file mode 100644 index 000000000..85e2b73f0 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java @@ -0,0 +1,3973 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto + +package flyteidl.plugins.sagemaker; + +public final class ParameterRangesOuterClass { + private ParameterRangesOuterClass() {} + 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 flyteidl.plugins.sagemaker.HyperparameterScalingType} + */ + public enum HyperparameterScalingType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * AUTO = 0; + */ + AUTO(0), + /** + * LINEAR = 1; + */ + LINEAR(1), + /** + * LOGARITHMIC = 2; + */ + LOGARITHMIC(2), + /** + * REVERSELOGARITHMIC = 3; + */ + REVERSELOGARITHMIC(3), + UNRECOGNIZED(-1), + ; + + /** + * AUTO = 0; + */ + public static final int AUTO_VALUE = 0; + /** + * LINEAR = 1; + */ + public static final int LINEAR_VALUE = 1; + /** + * LOGARITHMIC = 2; + */ + public static final int LOGARITHMIC_VALUE = 2; + /** + * REVERSELOGARITHMIC = 3; + */ + public static final int REVERSELOGARITHMIC_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HyperparameterScalingType valueOf(int value) { + return forNumber(value); + } + + public static HyperparameterScalingType forNumber(int value) { + switch (value) { + case 0: return AUTO; + case 1: return LINEAR; + case 2: return LOGARITHMIC; + case 3: return REVERSELOGARITHMIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HyperparameterScalingType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HyperparameterScalingType findValueByNumber(int number) { + return HyperparameterScalingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final HyperparameterScalingType[] VALUES = values(); + + public static HyperparameterScalingType 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 HyperparameterScalingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) + } + + public interface ContinuousParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ContinuousParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * double max_value = 1; + */ + double getMaxValue(); + + /** + * double min_value = 2; + */ + double getMinValue(); + + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + int getScalingTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} + */ + public static final class ContinuousParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ContinuousParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContinuousParameterRange.newBuilder() to construct. + private ContinuousParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContinuousParameterRange() { + scalingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContinuousParameterRange( + 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 9: { + + maxValue_ = input.readDouble(); + break; + } + case 17: { + + minValue_ = input.readDouble(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + scalingType_ = rawValue; + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class); + } + + public static final int MAX_VALUE_FIELD_NUMBER = 1; + private double maxValue_; + /** + * double max_value = 1; + */ + public double getMaxValue() { + return maxValue_; + } + + public static final int MIN_VALUE_FIELD_NUMBER = 2; + private double minValue_; + /** + * double min_value = 2; + */ + public double getMinValue() { + return minValue_; + } + + public static final int SCALING_TYPE_FIELD_NUMBER = 3; + private int scalingType_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; + } + + 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 (maxValue_ != 0D) { + output.writeDouble(1, maxValue_); + } + if (minValue_ != 0D) { + output.writeDouble(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { + output.writeEnum(3, scalingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxValue_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, maxValue_); + } + if (minValue_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, scalingType_); + } + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) obj; + + if (java.lang.Double.doubleToLongBits(getMaxValue()) + != java.lang.Double.doubleToLongBits( + other.getMaxValue())) return false; + if (java.lang.Double.doubleToLongBits(getMinValue()) + != java.lang.Double.doubleToLongBits( + other.getMinValue())) return false; + if (scalingType_ != other.scalingType_) 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) + MAX_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaxValue())); + hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinValue())); + hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + scalingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ContinuousParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.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(); + maxValue_ = 0D; + + minValue_ = 0D; + + scalingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(this); + result.maxValue_ = maxValue_; + result.minValue_ = minValue_; + result.scalingType_ = scalingType_; + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) return this; + if (other.getMaxValue() != 0D) { + setMaxValue(other.getMaxValue()); + } + if (other.getMinValue() != 0D) { + setMinValue(other.getMinValue()); + } + if (other.scalingType_ != 0) { + setScalingTypeValue(other.getScalingTypeValue()); + } + 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 { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double maxValue_ ; + /** + * double max_value = 1; + */ + public double getMaxValue() { + return maxValue_; + } + /** + * double max_value = 1; + */ + public Builder setMaxValue(double value) { + + maxValue_ = value; + onChanged(); + return this; + } + /** + * double max_value = 1; + */ + public Builder clearMaxValue() { + + maxValue_ = 0D; + onChanged(); + return this; + } + + private double minValue_ ; + /** + * double min_value = 2; + */ + public double getMinValue() { + return minValue_; + } + /** + * double min_value = 2; + */ + public Builder setMinValue(double value) { + + minValue_ = value; + onChanged(); + return this; + } + /** + * double min_value = 2; + */ + public Builder clearMinValue() { + + minValue_ = 0D; + onChanged(); + return this; + } + + private int scalingType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder setScalingTypeValue(int value) { + scalingType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) { + if (value == null) { + throw new NullPointerException(); + } + + scalingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder clearScalingType() { + + scalingType_ = 0; + 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:flyteidl.plugins.sagemaker.ContinuousParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContinuousParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContinuousParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IntegerParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.IntegerParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 max_value = 1; + */ + long getMaxValue(); + + /** + * int64 min_value = 2; + */ + long getMinValue(); + + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + int getScalingTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} + */ + public static final class IntegerParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) + IntegerParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntegerParameterRange.newBuilder() to construct. + private IntegerParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IntegerParameterRange() { + scalingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IntegerParameterRange( + 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 8: { + + maxValue_ = input.readInt64(); + break; + } + case 16: { + + minValue_ = input.readInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + scalingType_ = rawValue; + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class); + } + + public static final int MAX_VALUE_FIELD_NUMBER = 1; + private long maxValue_; + /** + * int64 max_value = 1; + */ + public long getMaxValue() { + return maxValue_; + } + + public static final int MIN_VALUE_FIELD_NUMBER = 2; + private long minValue_; + /** + * int64 min_value = 2; + */ + public long getMinValue() { + return minValue_; + } + + public static final int SCALING_TYPE_FIELD_NUMBER = 3; + private int scalingType_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; + } + + 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 (maxValue_ != 0L) { + output.writeInt64(1, maxValue_); + } + if (minValue_ != 0L) { + output.writeInt64(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { + output.writeEnum(3, scalingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxValue_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxValue_); + } + if (minValue_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, scalingType_); + } + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) obj; + + if (getMaxValue() + != other.getMaxValue()) return false; + if (getMinValue() + != other.getMinValue()) return false; + if (scalingType_ != other.scalingType_) 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) + MAX_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxValue()); + hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinValue()); + hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + scalingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.IntegerParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.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(); + maxValue_ = 0L; + + minValue_ = 0L; + + scalingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(this); + result.maxValue_ = maxValue_; + result.minValue_ = minValue_; + result.scalingType_ = scalingType_; + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) return this; + if (other.getMaxValue() != 0L) { + setMaxValue(other.getMaxValue()); + } + if (other.getMinValue() != 0L) { + setMinValue(other.getMinValue()); + } + if (other.scalingType_ != 0) { + setScalingTypeValue(other.getScalingTypeValue()); + } + 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 { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxValue_ ; + /** + * int64 max_value = 1; + */ + public long getMaxValue() { + return maxValue_; + } + /** + * int64 max_value = 1; + */ + public Builder setMaxValue(long value) { + + maxValue_ = value; + onChanged(); + return this; + } + /** + * int64 max_value = 1; + */ + public Builder clearMaxValue() { + + maxValue_ = 0L; + onChanged(); + return this; + } + + private long minValue_ ; + /** + * int64 min_value = 2; + */ + public long getMinValue() { + return minValue_; + } + /** + * int64 min_value = 2; + */ + public Builder setMinValue(long value) { + + minValue_ = value; + onChanged(); + return this; + } + /** + * int64 min_value = 2; + */ + public Builder clearMinValue() { + + minValue_ = 0L; + onChanged(); + return this; + } + + private int scalingType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder setScalingTypeValue(int value) { + scalingType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) { + if (value == null) { + throw new NullPointerException(); + } + + scalingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder clearScalingType() { + + scalingType_ = 0; + 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:flyteidl.plugins.sagemaker.IntegerParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntegerParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IntegerParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CategoricalParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.CategoricalParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string values = 1; + */ + java.util.List + getValuesList(); + /** + * repeated string values = 1; + */ + int getValuesCount(); + /** + * repeated string values = 1; + */ + java.lang.String getValues(int index); + /** + * repeated string values = 1; + */ + com.google.protobuf.ByteString + getValuesBytes(int index); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} + */ + public static final class CategoricalParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) + CategoricalParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CategoricalParameterRange.newBuilder() to construct. + private CategoricalParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CategoricalParameterRange() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CategoricalParameterRange( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add(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)) { + values_ = values_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList values_; + /** + * repeated string values = 1; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_; + } + /** + * repeated string values = 1; + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(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 < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) obj; + + if (!getValuesList() + .equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.CategoricalParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.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(); + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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 { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string values = 1; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * repeated string values = 1; + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * repeated string values = 1; + */ + public Builder setValues( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder addValues( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(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:flyteidl.plugins.sagemaker.CategoricalParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CategoricalParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CategoricalParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterRangeOneOfOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + boolean hasContinuousParameterRange(); + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange(); + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + boolean hasIntegerParameterRange(); + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange(); + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + boolean hasCategoricalParameterRange(); + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange(); + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder(); + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.ParameterRangeTypeCase getParameterRangeTypeCase(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf} + */ + public static final class ParameterRangeOneOf extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ParameterRangeOneOfOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterRangeOneOf.newBuilder() to construct. + private ParameterRangeOneOf(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterRangeOneOf() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterRangeOneOf( + 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: { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder subBuilder = null; + if (parameterRangeTypeCase_ == 1) { + subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_).toBuilder(); + } + parameterRangeType_ = + input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); + } + parameterRangeTypeCase_ = 1; + break; + } + case 18: { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder subBuilder = null; + if (parameterRangeTypeCase_ == 2) { + subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_).toBuilder(); + } + parameterRangeType_ = + input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); + } + parameterRangeTypeCase_ = 2; + break; + } + case 26: { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder subBuilder = null; + if (parameterRangeTypeCase_ == 3) { + subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_).toBuilder(); + } + parameterRangeType_ = + input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); + } + parameterRangeTypeCase_ = 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class); + } + + private int parameterRangeTypeCase_ = 0; + private java.lang.Object parameterRangeType_; + public enum ParameterRangeTypeCase + implements com.google.protobuf.Internal.EnumLite { + CONTINUOUS_PARAMETER_RANGE(1), + INTEGER_PARAMETER_RANGE(2), + CATEGORICAL_PARAMETER_RANGE(3), + PARAMETERRANGETYPE_NOT_SET(0); + private final int value; + private ParameterRangeTypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ParameterRangeTypeCase valueOf(int value) { + return forNumber(value); + } + + public static ParameterRangeTypeCase forNumber(int value) { + switch (value) { + case 1: return CONTINUOUS_PARAMETER_RANGE; + case 2: return INTEGER_PARAMETER_RANGE; + case 3: return CATEGORICAL_PARAMETER_RANGE; + case 0: return PARAMETERRANGETYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ParameterRangeTypeCase + getParameterRangeTypeCase() { + return ParameterRangeTypeCase.forNumber( + parameterRangeTypeCase_); + } + + public static final int CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER = 1; + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public boolean hasContinuousParameterRange() { + return parameterRangeTypeCase_ == 1; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + + public static final int INTEGER_PARAMETER_RANGE_FIELD_NUMBER = 2; + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public boolean hasIntegerParameterRange() { + return parameterRangeTypeCase_ == 2; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + + public static final int CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER = 3; + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public boolean hasCategoricalParameterRange() { + return parameterRangeTypeCase_ == 3; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (parameterRangeTypeCase_ == 1) { + output.writeMessage(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 2) { + output.writeMessage(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 3) { + output.writeMessage(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (parameterRangeTypeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); + } + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) obj; + + if (!getParameterRangeTypeCase().equals(other.getParameterRangeTypeCase())) return false; + switch (parameterRangeTypeCase_) { + case 1: + if (!getContinuousParameterRange() + .equals(other.getContinuousParameterRange())) return false; + break; + case 2: + if (!getIntegerParameterRange() + .equals(other.getIntegerParameterRange())) return false; + break; + case 3: + if (!getCategoricalParameterRange() + .equals(other.getCategoricalParameterRange())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (parameterRangeTypeCase_) { + case 1: + hash = (37 * hash) + CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getContinuousParameterRange().hashCode(); + break; + case 2: + hash = (37 * hash) + INTEGER_PARAMETER_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIntegerParameterRange().hashCode(); + break; + case 3: + hash = (37 * hash) + CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getCategoricalParameterRange().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangeOneOf} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOfOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.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(); + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(this); + if (parameterRangeTypeCase_ == 1) { + if (continuousParameterRangeBuilder_ == null) { + result.parameterRangeType_ = parameterRangeType_; + } else { + result.parameterRangeType_ = continuousParameterRangeBuilder_.build(); + } + } + if (parameterRangeTypeCase_ == 2) { + if (integerParameterRangeBuilder_ == null) { + result.parameterRangeType_ = parameterRangeType_; + } else { + result.parameterRangeType_ = integerParameterRangeBuilder_.build(); + } + } + if (parameterRangeTypeCase_ == 3) { + if (categoricalParameterRangeBuilder_ == null) { + result.parameterRangeType_ = parameterRangeType_; + } else { + result.parameterRangeType_ = categoricalParameterRangeBuilder_.build(); + } + } + result.parameterRangeTypeCase_ = parameterRangeTypeCase_; + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()) return this; + switch (other.getParameterRangeTypeCase()) { + case CONTINUOUS_PARAMETER_RANGE: { + mergeContinuousParameterRange(other.getContinuousParameterRange()); + break; + } + case INTEGER_PARAMETER_RANGE: { + mergeIntegerParameterRange(other.getIntegerParameterRange()); + break; + } + case CATEGORICAL_PARAMETER_RANGE: { + mergeCategoricalParameterRange(other.getCategoricalParameterRange()); + break; + } + case PARAMETERRANGETYPE_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 { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int parameterRangeTypeCase_ = 0; + private java.lang.Object parameterRangeType_; + public ParameterRangeTypeCase + getParameterRangeTypeCase() { + return ParameterRangeTypeCase.forNumber( + parameterRangeTypeCase_); + } + + public Builder clearParameterRangeType() { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> continuousParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public boolean hasContinuousParameterRange() { + return parameterRangeTypeCase_ == 1; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypeCase_ == 1) { + return continuousParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) { + if (continuousParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeType_ = value; + onChanged(); + } else { + continuousParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder setContinuousParameterRange( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder builderForValue) { + if (continuousParameterRangeBuilder_ == null) { + parameterRangeType_ = builderForValue.build(); + onChanged(); + } else { + continuousParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypeCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 1 && + parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeType_ = value; + } + onChanged(); + } else { + if (parameterRangeTypeCase_ == 1) { + continuousParameterRangeBuilder_.mergeFrom(value); + } + continuousParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder clearContinuousParameterRange() { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 1) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + } + } else { + if (parameterRangeTypeCase_ == 1) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + } + continuousParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder getContinuousParameterRangeBuilder() { + return getContinuousParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { + if ((parameterRangeTypeCase_ == 1) && (continuousParameterRangeBuilder_ != null)) { + return continuousParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> + getContinuousParameterRangeFieldBuilder() { + if (continuousParameterRangeBuilder_ == null) { + if (!(parameterRangeTypeCase_ == 1)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + continuousParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_, + getParentForChildren(), + isClean()); + parameterRangeType_ = null; + } + parameterRangeTypeCase_ = 1; + onChanged();; + return continuousParameterRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> integerParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public boolean hasIntegerParameterRange() { + return parameterRangeTypeCase_ == 2; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypeCase_ == 2) { + return integerParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) { + if (integerParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeType_ = value; + onChanged(); + } else { + integerParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder setIntegerParameterRange( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder builderForValue) { + if (integerParameterRangeBuilder_ == null) { + parameterRangeType_ = builderForValue.build(); + onChanged(); + } else { + integerParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypeCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 2 && + parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeType_ = value; + } + onChanged(); + } else { + if (parameterRangeTypeCase_ == 2) { + integerParameterRangeBuilder_.mergeFrom(value); + } + integerParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder clearIntegerParameterRange() { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 2) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + } + } else { + if (parameterRangeTypeCase_ == 2) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + } + integerParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder getIntegerParameterRangeBuilder() { + return getIntegerParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { + if ((parameterRangeTypeCase_ == 2) && (integerParameterRangeBuilder_ != null)) { + return integerParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> + getIntegerParameterRangeFieldBuilder() { + if (integerParameterRangeBuilder_ == null) { + if (!(parameterRangeTypeCase_ == 2)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + integerParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_, + getParentForChildren(), + isClean()); + parameterRangeType_ = null; + } + parameterRangeTypeCase_ = 2; + onChanged();; + return integerParameterRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> categoricalParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public boolean hasCategoricalParameterRange() { + return parameterRangeTypeCase_ == 3; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypeCase_ == 3) { + return categoricalParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) { + if (categoricalParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeType_ = value; + onChanged(); + } else { + categoricalParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder setCategoricalParameterRange( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder builderForValue) { + if (categoricalParameterRangeBuilder_ == null) { + parameterRangeType_ = builderForValue.build(); + onChanged(); + } else { + categoricalParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypeCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 3 && + parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeType_ = value; + } + onChanged(); + } else { + if (parameterRangeTypeCase_ == 3) { + categoricalParameterRangeBuilder_.mergeFrom(value); + } + categoricalParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder clearCategoricalParameterRange() { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 3) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + } + } else { + if (parameterRangeTypeCase_ == 3) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + } + categoricalParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder getCategoricalParameterRangeBuilder() { + return getCategoricalParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { + if ((parameterRangeTypeCase_ == 3) && (categoricalParameterRangeBuilder_ != null)) { + return categoricalParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> + getCategoricalParameterRangeFieldBuilder() { + if (categoricalParameterRangeBuilder_ == null) { + if (!(parameterRangeTypeCase_ == 3)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + categoricalParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_, + getParentForChildren(), + isClean()); + parameterRangeType_ = null; + } + parameterRangeTypeCase_ = 3; + onChanged();; + return categoricalParameterRangeBuilder_; + } + @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:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterRangeOneOf parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterRangeOneOf(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterRangesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRanges) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + int getParameterRangeMapCount(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + boolean containsParameterRangeMap( + java.lang.String key); + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameterRangeMap(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + java.util.Map + getParameterRangeMapMap(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} + */ + public static final class ParameterRanges extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRanges) + ParameterRangesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterRanges.newBuilder() to construct. + private ParameterRanges(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterRanges() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterRanges( + 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)) { + parameterRangeMap_ = com.google.protobuf.MapField.newMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + parameterRangeMap__ = input.readMessage( + ParameterRangeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + parameterRangeMap_.getMutableMap().put( + parameterRangeMap__.getKey(), parameterRangeMap__.getValue()); + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class); + } + + public static final int PARAMETER_RANGE_MAP_FIELD_NUMBER = 1; + private static final class ParameterRangeMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_; + private com.google.protobuf.MapField + internalGetParameterRangeMap() { + if (parameterRangeMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + return parameterRangeMap_; + } + + public int getParameterRangeMapCount() { + return internalGetParameterRangeMap().getMap().size(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public boolean containsParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameterRangeMap().getMap().containsKey(key); + } + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameterRangeMap() { + return getParameterRangeMapMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public java.util.Map getParameterRangeMapMap() { + return internalGetParameterRangeMap().getMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParameterRangeMap(), + ParameterRangeMapDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetParameterRangeMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameterRangeMap__ = ParameterRangeMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, parameterRangeMap__); + } + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) obj; + + if (!internalGetParameterRangeMap().equals( + other.internalGetParameterRangeMap())) 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 (!internalGetParameterRangeMap().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETER_RANGE_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameterRangeMap().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRanges} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRanges) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.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(); + internalGetMutableParameterRangeMap().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(this); + int from_bitField0_ = bitField0_; + result.parameterRangeMap_ = internalGetParameterRangeMap(); + result.parameterRangeMap_.makeImmutable(); + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance()) return this; + internalGetMutableParameterRangeMap().mergeFrom( + other.internalGetParameterRangeMap()); + 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 { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_; + private com.google.protobuf.MapField + internalGetParameterRangeMap() { + if (parameterRangeMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + return parameterRangeMap_; + } + private com.google.protobuf.MapField + internalGetMutableParameterRangeMap() { + onChanged();; + if (parameterRangeMap_ == null) { + parameterRangeMap_ = com.google.protobuf.MapField.newMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + if (!parameterRangeMap_.isMutable()) { + parameterRangeMap_ = parameterRangeMap_.copy(); + } + return parameterRangeMap_; + } + + public int getParameterRangeMapCount() { + return internalGetParameterRangeMap().getMap().size(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public boolean containsParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameterRangeMap().getMap().containsKey(key); + } + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameterRangeMap() { + return getParameterRangeMapMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public java.util.Map getParameterRangeMapMap() { + return internalGetParameterRangeMap().getMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameterRangeMap() { + internalGetMutableParameterRangeMap().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public Builder removeParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameterRangeMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameterRangeMap() { + return internalGetMutableParameterRangeMap().getMutableMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + public Builder putParameterRangeMap( + java.lang.String key, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameterRangeMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public Builder putAllParameterRangeMap( + java.util.Map values) { + internalGetMutableParameterRangeMap().getMutableMap() + .putAll(values); + 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:flyteidl.plugins.sagemaker.ParameterRanges) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterRanges parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterRanges(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1flyteidl/plugins/sagemaker/parameter_r" + + "anges.proto\022\032flyteidl.plugins.sagemaker\"" + + "\215\001\n\030ContinuousParameterRange\022\021\n\tmax_valu" + + "e\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_ty" + + "pe\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hy" + + "perparameterScalingType\"\212\001\n\025IntegerParam" + + "eterRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_valu" + + "e\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl" + + ".plugins.sagemaker.HyperparameterScaling" + + "Type\"+\n\031CategoricalParameterRange\022\016\n\006val" + + "ues\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032con" + + "tinuous_parameter_range\030\001 \001(\01324.flyteidl" + + ".plugins.sagemaker.ContinuousParameterRa" + + "ngeH\000\022T\n\027integer_parameter_range\030\002 \001(\01321" + + ".flyteidl.plugins.sagemaker.IntegerParam" + + "eterRangeH\000\022\\\n\033categorical_parameter_ran" + + "ge\030\003 \001(\01325.flyteidl.plugins.sagemaker.Ca" + + "tegoricalParameterRangeH\000B\026\n\024parameter_r" + + "ange_type\"\335\001\n\017ParameterRanges\022_\n\023paramet" + + "er_range_map\030\001 \003(\0132B.flyteidl.plugins.sa" + + "gemaker.ParameterRanges.ParameterRangeMa" + + "pEntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030" + + "\001 \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins." + + "sagemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyp" + + "erparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINE" + + "AR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITH" + + "MIC\020\003B5Z3github.com/lyft/flyteidl/gen/pb" + + "-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor, + new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor, + new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor, + new java.lang.String[] { "ContinuousParameterRange", "IntegerParameterRange", "CategoricalParameterRange", "ParameterRangeType", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor, + new java.lang.String[] { "ParameterRangeMap", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor = + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java new file mode 100644 index 000000000..c7c7a93f1 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -0,0 +1,4208 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/training_job.proto + +package flyteidl.plugins.sagemaker; + +public final class TrainingJobOuterClass { + private TrainingJobOuterClass() {} + 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 flyteidl.plugins.sagemaker.InputMode} + */ + public enum InputMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + * FILE = 0; + */ + FILE(0), + /** + * PIPE = 1; + */ + PIPE(1), + UNRECOGNIZED(-1), + ; + + /** + * FILE = 0; + */ + public static final int FILE_VALUE = 0; + /** + * PIPE = 1; + */ + public static final int PIPE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InputMode valueOf(int value) { + return forNumber(value); + } + + public static InputMode forNumber(int value) { + switch (value) { + case 0: return FILE; + case 1: return PIPE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + InputMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InputMode findValueByNumber(int number) { + return InputMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final InputMode[] VALUES = values(); + + public static InputMode 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 InputMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputMode) + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.AlgorithmName} + */ + public enum AlgorithmName + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CUSTOM = 0; + */ + CUSTOM(0), + /** + * XGBOOST = 1; + */ + XGBOOST(1), + UNRECOGNIZED(-1), + ; + + /** + * CUSTOM = 0; + */ + public static final int CUSTOM_VALUE = 0; + /** + * XGBOOST = 1; + */ + public static final int XGBOOST_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AlgorithmName valueOf(int value) { + return forNumber(value); + } + + public static AlgorithmName forNumber(int value) { + switch (value) { + case 0: return CUSTOM; + case 1: return XGBOOST; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AlgorithmName> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AlgorithmName findValueByNumber(int number) { + return AlgorithmName.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(1); + } + + private static final AlgorithmName[] VALUES = values(); + + public static AlgorithmName 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 AlgorithmName(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.AlgorithmName) + } + + public interface AlgorithmSpecificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + int getInputModeValue(); + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode(); + + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + int getAlgorithmNameValue(); + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName(); + + /** + * string algorithm_version = 3; + */ + java.lang.String getAlgorithmVersion(); + /** + * string algorithm_version = 3; + */ + com.google.protobuf.ByteString + getAlgorithmVersionBytes(); + + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + java.util.List + getMetricDefinitionsList(); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + int getMetricDefinitionsCount(); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + java.util.List + getMetricDefinitionsOrBuilderList(); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} + */ + public static final class AlgorithmSpecification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) + AlgorithmSpecificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlgorithmSpecification.newBuilder() to construct. + private AlgorithmSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlgorithmSpecification() { + inputMode_ = 0; + algorithmName_ = 0; + algorithmVersion_ = ""; + metricDefinitions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AlgorithmSpecification( + 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 8: { + int rawValue = input.readEnum(); + + inputMode_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + algorithmName_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + algorithmVersion_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + metricDefinitions_.add( + input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.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_ & 0x00000008) != 0)) { + metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); + } + + public interface MetricDefinitionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + */ + java.lang.String getName(); + /** + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string regex = 2; + */ + java.lang.String getRegex(); + /** + * string regex = 2; + */ + com.google.protobuf.ByteString + getRegexBytes(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} + */ + public static final class MetricDefinition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + MetricDefinitionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricDefinition.newBuilder() to construct. + private MetricDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MetricDefinition() { + name_ = ""; + regex_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MetricDefinition( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + regex_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + */ + 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; + } + } + /** + * string name = 1; + */ + 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 REGEX_FIELD_NUMBER = 2; + private volatile java.lang.Object regex_; + /** + * string regex = 2; + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + 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(); + regex_ = s; + return s; + } + } + /** + * string regex = 2; + */ + public com.google.protobuf.ByteString + getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getRegexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regex_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getRegexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regex_); + } + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getRegex() + .equals(other.getRegex())) 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) + REGEX_FIELD_NUMBER; + hash = (53 * hash) + getRegex().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.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_ = ""; + + regex_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(this); + result.name_ = name_; + result.regex_ = regex_; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRegex().isEmpty()) { + regex_ = other.regex_; + 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 { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + */ + 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; + } + } + /** + * string name = 1; + */ + 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; + } + } + /** + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + */ + 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 regex_ = ""; + /** + * string regex = 2; + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string regex = 2; + */ + public com.google.protobuf.ByteString + getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string regex = 2; + */ + public Builder setRegex( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regex_ = value; + onChanged(); + return this; + } + /** + * string regex = 2; + */ + public Builder clearRegex() { + + regex_ = getDefaultInstance().getRegex(); + onChanged(); + return this; + } + /** + * string regex = 2; + */ + public Builder setRegexBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regex_ = 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:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricDefinition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MetricDefinition(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int INPUT_MODE_FIELD_NUMBER = 1; + private int inputMode_; + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public int getInputModeValue() { + return inputMode_; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result; + } + + public static final int ALGORITHM_NAME_FIELD_NUMBER = 2; + private int algorithmName_; + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public int getAlgorithmNameValue() { + return algorithmName_; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result; + } + + public static final int ALGORITHM_VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object algorithmVersion_; + /** + * string algorithm_version = 3; + */ + public java.lang.String getAlgorithmVersion() { + java.lang.Object ref = algorithmVersion_; + 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(); + algorithmVersion_ = s; + return s; + } + } + /** + * string algorithm_version = 3; + */ + public com.google.protobuf.ByteString + getAlgorithmVersionBytes() { + java.lang.Object ref = algorithmVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithmVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METRIC_DEFINITIONS_FIELD_NUMBER = 4; + private java.util.List metricDefinitions_; + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List getMetricDefinitionsList() { + return metricDefinitions_; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List + getMetricDefinitionsOrBuilderList() { + return metricDefinitions_; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public int getMetricDefinitionsCount() { + return metricDefinitions_.size(); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + return metricDefinitions_.get(index); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index) { + return metricDefinitions_.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 (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) { + output.writeEnum(1, inputMode_); + } + if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) { + output.writeEnum(2, algorithmName_); + } + if (!getAlgorithmVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, algorithmVersion_); + } + for (int i = 0; i < metricDefinitions_.size(); i++) { + output.writeMessage(4, metricDefinitions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, inputMode_); + } + if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, algorithmName_); + } + if (!getAlgorithmVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, algorithmVersion_); + } + for (int i = 0; i < metricDefinitions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, metricDefinitions_.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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) obj; + + if (inputMode_ != other.inputMode_) return false; + if (algorithmName_ != other.algorithmName_) return false; + if (!getAlgorithmVersion() + .equals(other.getAlgorithmVersion())) return false; + if (!getMetricDefinitionsList() + .equals(other.getMetricDefinitionsList())) 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) + INPUT_MODE_FIELD_NUMBER; + hash = (53 * hash) + inputMode_; + hash = (37 * hash) + ALGORITHM_NAME_FIELD_NUMBER; + hash = (53 * hash) + algorithmName_; + hash = (37 * hash) + ALGORITHM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmVersion().hashCode(); + if (getMetricDefinitionsCount() > 0) { + hash = (37 * hash) + METRIC_DEFINITIONS_FIELD_NUMBER; + hash = (53 * hash) + getMetricDefinitionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.AlgorithmSpecification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetricDefinitionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + inputMode_ = 0; + + algorithmName_ = 0; + + algorithmVersion_ = ""; + + if (metricDefinitionsBuilder_ == null) { + metricDefinitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + metricDefinitionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.inputMode_ = inputMode_; + result.algorithmName_ = algorithmName_; + result.algorithmVersion_ = algorithmVersion_; + if (metricDefinitionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.metricDefinitions_ = metricDefinitions_; + } else { + result.metricDefinitions_ = metricDefinitionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance()) return this; + if (other.inputMode_ != 0) { + setInputModeValue(other.getInputModeValue()); + } + if (other.algorithmName_ != 0) { + setAlgorithmNameValue(other.getAlgorithmNameValue()); + } + if (!other.getAlgorithmVersion().isEmpty()) { + algorithmVersion_ = other.algorithmVersion_; + onChanged(); + } + if (metricDefinitionsBuilder_ == null) { + if (!other.metricDefinitions_.isEmpty()) { + if (metricDefinitions_.isEmpty()) { + metricDefinitions_ = other.metricDefinitions_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.addAll(other.metricDefinitions_); + } + onChanged(); + } + } else { + if (!other.metricDefinitions_.isEmpty()) { + if (metricDefinitionsBuilder_.isEmpty()) { + metricDefinitionsBuilder_.dispose(); + metricDefinitionsBuilder_ = null; + metricDefinitions_ = other.metricDefinitions_; + bitField0_ = (bitField0_ & ~0x00000008); + metricDefinitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetricDefinitionsFieldBuilder() : null; + } else { + metricDefinitionsBuilder_.addAllMessages(other.metricDefinitions_); + } + } + } + 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 { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int inputMode_ = 0; + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public int getInputModeValue() { + return inputMode_; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public Builder setInputModeValue(int value) { + inputMode_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public Builder setInputMode(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode value) { + if (value == null) { + throw new NullPointerException(); + } + + inputMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public Builder clearInputMode() { + + inputMode_ = 0; + onChanged(); + return this; + } + + private int algorithmName_ = 0; + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public int getAlgorithmNameValue() { + return algorithmName_; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public Builder setAlgorithmNameValue(int value) { + algorithmName_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName value) { + if (value == null) { + throw new NullPointerException(); + } + + algorithmName_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public Builder clearAlgorithmName() { + + algorithmName_ = 0; + onChanged(); + return this; + } + + private java.lang.Object algorithmVersion_ = ""; + /** + * string algorithm_version = 3; + */ + public java.lang.String getAlgorithmVersion() { + java.lang.Object ref = algorithmVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + algorithmVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string algorithm_version = 3; + */ + public com.google.protobuf.ByteString + getAlgorithmVersionBytes() { + java.lang.Object ref = algorithmVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithmVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string algorithm_version = 3; + */ + public Builder setAlgorithmVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + algorithmVersion_ = value; + onChanged(); + return this; + } + /** + * string algorithm_version = 3; + */ + public Builder clearAlgorithmVersion() { + + algorithmVersion_ = getDefaultInstance().getAlgorithmVersion(); + onChanged(); + return this; + } + /** + * string algorithm_version = 3; + */ + public Builder setAlgorithmVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + algorithmVersion_ = value; + onChanged(); + return this; + } + + private java.util.List metricDefinitions_ = + java.util.Collections.emptyList(); + private void ensureMetricDefinitionsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; + + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List getMetricDefinitionsList() { + if (metricDefinitionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricDefinitions_); + } else { + return metricDefinitionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public int getMetricDefinitionsCount() { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.size(); + } else { + return metricDefinitionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.get(index); + } else { + return metricDefinitionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder setMetricDefinitions( + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.set(index, value); + onChanged(); + } else { + metricDefinitionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder setMetricDefinitions( + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.set(index, builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(value); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions( + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(index, value); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions( + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(index, builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addAllMetricDefinitions( + java.lang.Iterable values) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metricDefinitions_); + onChanged(); + } else { + metricDefinitionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder clearMetricDefinitions() { + if (metricDefinitionsBuilder_ == null) { + metricDefinitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + metricDefinitionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder removeMetricDefinitions(int index) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.remove(index); + onChanged(); + } else { + metricDefinitionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( + int index) { + return getMetricDefinitionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index) { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.get(index); } else { + return metricDefinitionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List + getMetricDefinitionsOrBuilderList() { + if (metricDefinitionsBuilder_ != null) { + return metricDefinitionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricDefinitions_); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { + return getMetricDefinitionsFieldBuilder().addBuilder( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( + int index) { + return getMetricDefinitionsFieldBuilder().addBuilder( + index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List + getMetricDefinitionsBuilderList() { + return getMetricDefinitionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> + getMetricDefinitionsFieldBuilder() { + if (metricDefinitionsBuilder_ == null) { + metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder>( + metricDefinitions_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + metricDefinitions_ = null; + } + return metricDefinitionsBuilder_; + } + @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:flyteidl.plugins.sagemaker.AlgorithmSpecification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlgorithmSpecification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AlgorithmSpecification(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TrainingJobConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJobConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * For multi-node training, not multi-GPU training
+     * 
+ * + * int64 instance_count = 1; + */ + long getInstanceCount(); + + /** + * string instance_type = 2; + */ + java.lang.String getInstanceType(); + /** + * string instance_type = 2; + */ + com.google.protobuf.ByteString + getInstanceTypeBytes(); + + /** + * int64 volume_size_in_gb = 3; + */ + long getVolumeSizeInGb(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobConfig} + */ + public static final class TrainingJobConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) + TrainingJobConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainingJobConfig.newBuilder() to construct. + private TrainingJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrainingJobConfig() { + instanceType_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrainingJobConfig( + 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 8: { + + instanceCount_ = input.readInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + instanceType_ = s; + break; + } + case 24: { + + volumeSizeInGb_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); + } + + public static final int INSTANCE_COUNT_FIELD_NUMBER = 1; + private long instanceCount_; + /** + *
+     * For multi-node training, not multi-GPU training
+     * 
+ * + * int64 instance_count = 1; + */ + public long getInstanceCount() { + return instanceCount_; + } + + public static final int INSTANCE_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object instanceType_; + /** + * string instance_type = 2; + */ + public java.lang.String getInstanceType() { + java.lang.Object ref = instanceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceType_ = s; + return s; + } + } + /** + * string instance_type = 2; + */ + public com.google.protobuf.ByteString + getInstanceTypeBytes() { + java.lang.Object ref = instanceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOLUME_SIZE_IN_GB_FIELD_NUMBER = 3; + private long volumeSizeInGb_; + /** + * int64 volume_size_in_gb = 3; + */ + public long getVolumeSizeInGb() { + return volumeSizeInGb_; + } + + 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 (instanceCount_ != 0L) { + output.writeInt64(1, instanceCount_); + } + if (!getInstanceTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceType_); + } + if (volumeSizeInGb_ != 0L) { + output.writeInt64(3, volumeSizeInGb_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (instanceCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, instanceCount_); + } + if (!getInstanceTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceType_); + } + if (volumeSizeInGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, volumeSizeInGb_); + } + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) obj; + + if (getInstanceCount() + != other.getInstanceCount()) return false; + if (!getInstanceType() + .equals(other.getInstanceType())) return false; + if (getVolumeSizeInGb() + != other.getVolumeSizeInGb()) 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) + INSTANCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInstanceCount()); + hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getInstanceType().hashCode(); + hash = (37 * hash) + VOLUME_SIZE_IN_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVolumeSizeInGb()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.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(); + instanceCount_ = 0L; + + instanceType_ = ""; + + volumeSizeInGb_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(this); + result.instanceCount_ = instanceCount_; + result.instanceType_ = instanceType_; + result.volumeSizeInGb_ = volumeSizeInGb_; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance()) return this; + if (other.getInstanceCount() != 0L) { + setInstanceCount(other.getInstanceCount()); + } + if (!other.getInstanceType().isEmpty()) { + instanceType_ = other.instanceType_; + onChanged(); + } + if (other.getVolumeSizeInGb() != 0L) { + setVolumeSizeInGb(other.getVolumeSizeInGb()); + } + 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 { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long instanceCount_ ; + /** + *
+       * For multi-node training, not multi-GPU training
+       * 
+ * + * int64 instance_count = 1; + */ + public long getInstanceCount() { + return instanceCount_; + } + /** + *
+       * For multi-node training, not multi-GPU training
+       * 
+ * + * int64 instance_count = 1; + */ + public Builder setInstanceCount(long value) { + + instanceCount_ = value; + onChanged(); + return this; + } + /** + *
+       * For multi-node training, not multi-GPU training
+       * 
+ * + * int64 instance_count = 1; + */ + public Builder clearInstanceCount() { + + instanceCount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object instanceType_ = ""; + /** + * string instance_type = 2; + */ + public java.lang.String getInstanceType() { + java.lang.Object ref = instanceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string instance_type = 2; + */ + public com.google.protobuf.ByteString + getInstanceTypeBytes() { + java.lang.Object ref = instanceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string instance_type = 2; + */ + public Builder setInstanceType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + instanceType_ = value; + onChanged(); + return this; + } + /** + * string instance_type = 2; + */ + public Builder clearInstanceType() { + + instanceType_ = getDefaultInstance().getInstanceType(); + onChanged(); + return this; + } + /** + * string instance_type = 2; + */ + public Builder setInstanceTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + instanceType_ = value; + onChanged(); + return this; + } + + private long volumeSizeInGb_ ; + /** + * int64 volume_size_in_gb = 3; + */ + public long getVolumeSizeInGb() { + return volumeSizeInGb_; + } + /** + * int64 volume_size_in_gb = 3; + */ + public Builder setVolumeSizeInGb(long value) { + + volumeSizeInGb_ = value; + onChanged(); + return this; + } + /** + * int64 volume_size_in_gb = 3; + */ + public Builder clearVolumeSizeInGb() { + + volumeSizeInGb_ = 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:flyteidl.plugins.sagemaker.TrainingJobConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainingJobConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainingJobConfig(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StoppingConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.StoppingCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 max_runtime_in_seconds = 1; + */ + long getMaxRuntimeInSeconds(); + + /** + * int64 max_wait_time_in_seconds = 2; + */ + long getMaxWaitTimeInSeconds(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} + */ + public static final class StoppingCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.StoppingCondition) + StoppingConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoppingCondition.newBuilder() to construct. + private StoppingCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StoppingCondition() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoppingCondition( + 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 8: { + + maxRuntimeInSeconds_ = input.readInt64(); + break; + } + case 16: { + + maxWaitTimeInSeconds_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); + } + + public static final int MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER = 1; + private long maxRuntimeInSeconds_; + /** + * int64 max_runtime_in_seconds = 1; + */ + public long getMaxRuntimeInSeconds() { + return maxRuntimeInSeconds_; + } + + public static final int MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER = 2; + private long maxWaitTimeInSeconds_; + /** + * int64 max_wait_time_in_seconds = 2; + */ + public long getMaxWaitTimeInSeconds() { + return maxWaitTimeInSeconds_; + } + + 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 (maxRuntimeInSeconds_ != 0L) { + output.writeInt64(1, maxRuntimeInSeconds_); + } + if (maxWaitTimeInSeconds_ != 0L) { + output.writeInt64(2, maxWaitTimeInSeconds_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxRuntimeInSeconds_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxRuntimeInSeconds_); + } + if (maxWaitTimeInSeconds_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxWaitTimeInSeconds_); + } + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) obj; + + if (getMaxRuntimeInSeconds() + != other.getMaxRuntimeInSeconds()) return false; + if (getMaxWaitTimeInSeconds() + != other.getMaxWaitTimeInSeconds()) 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) + MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxRuntimeInSeconds()); + hash = (37 * hash) + MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxWaitTimeInSeconds()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.StoppingCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.StoppingCondition) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.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(); + maxRuntimeInSeconds_ = 0L; + + maxWaitTimeInSeconds_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(this); + result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; + result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance()) return this; + if (other.getMaxRuntimeInSeconds() != 0L) { + setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); + } + if (other.getMaxWaitTimeInSeconds() != 0L) { + setMaxWaitTimeInSeconds(other.getMaxWaitTimeInSeconds()); + } + 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 { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxRuntimeInSeconds_ ; + /** + * int64 max_runtime_in_seconds = 1; + */ + public long getMaxRuntimeInSeconds() { + return maxRuntimeInSeconds_; + } + /** + * int64 max_runtime_in_seconds = 1; + */ + public Builder setMaxRuntimeInSeconds(long value) { + + maxRuntimeInSeconds_ = value; + onChanged(); + return this; + } + /** + * int64 max_runtime_in_seconds = 1; + */ + public Builder clearMaxRuntimeInSeconds() { + + maxRuntimeInSeconds_ = 0L; + onChanged(); + return this; + } + + private long maxWaitTimeInSeconds_ ; + /** + * int64 max_wait_time_in_seconds = 2; + */ + public long getMaxWaitTimeInSeconds() { + return maxWaitTimeInSeconds_; + } + /** + * int64 max_wait_time_in_seconds = 2; + */ + public Builder setMaxWaitTimeInSeconds(long value) { + + maxWaitTimeInSeconds_ = value; + onChanged(); + return this; + } + /** + * int64 max_wait_time_in_seconds = 2; + */ + public Builder clearMaxWaitTimeInSeconds() { + + maxWaitTimeInSeconds_ = 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:flyteidl.plugins.sagemaker.StoppingCondition) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoppingCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoppingCondition(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TrainingJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJob) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + boolean hasAlgorithmSpecification(); + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification(); + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + boolean hasTrainingJobConfig(); + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig(); + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder(); + + /** + * bool interruptible = 4; + */ + boolean getInterruptible(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} + */ + public static final class TrainingJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJob) + TrainingJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainingJob.newBuilder() to construct. + private TrainingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrainingJob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrainingJob( + 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: { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder subBuilder = null; + if (algorithmSpecification_ != null) { + subBuilder = algorithmSpecification_.toBuilder(); + } + algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(algorithmSpecification_); + algorithmSpecification_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder subBuilder = null; + if (trainingJobConfig_ != null) { + subBuilder = trainingJobConfig_.toBuilder(); + } + trainingJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingJobConfig_); + trainingJobConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + interruptible_ = input.readBool(); + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); + } + + public static final int ALGORITHM_SPECIFICATION_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public boolean hasAlgorithmSpecification() { + return algorithmSpecification_ != null; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + return getAlgorithmSpecification(); + } + + public static final int TRAINING_JOB_CONFIG_FIELD_NUMBER = 2; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public boolean hasTrainingJobConfig() { + return trainingJobConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { + return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { + return getTrainingJobConfig(); + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 4; + private boolean interruptible_; + /** + * bool interruptible = 4; + */ + public boolean getInterruptible() { + return interruptible_; + } + + 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 (algorithmSpecification_ != null) { + output.writeMessage(1, getAlgorithmSpecification()); + } + if (trainingJobConfig_ != null) { + output.writeMessage(2, getTrainingJobConfig()); + } + if (interruptible_ != false) { + output.writeBool(4, interruptible_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (algorithmSpecification_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAlgorithmSpecification()); + } + if (trainingJobConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTrainingJobConfig()); + } + if (interruptible_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, interruptible_); + } + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) obj; + + if (hasAlgorithmSpecification() != other.hasAlgorithmSpecification()) return false; + if (hasAlgorithmSpecification()) { + if (!getAlgorithmSpecification() + .equals(other.getAlgorithmSpecification())) return false; + } + if (hasTrainingJobConfig() != other.hasTrainingJobConfig()) return false; + if (hasTrainingJobConfig()) { + if (!getTrainingJobConfig() + .equals(other.getTrainingJobConfig())) return false; + } + if (getInterruptible() + != other.getInterruptible()) 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 (hasAlgorithmSpecification()) { + hash = (37 * hash) + ALGORITHM_SPECIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmSpecification().hashCode(); + } + if (hasTrainingJobConfig()) { + hash = (37 * hash) + TRAINING_JOB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTrainingJobConfig().hashCode(); + } + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterruptible()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJob) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.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 (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = null; + } else { + algorithmSpecification_ = null; + algorithmSpecificationBuilder_ = null; + } + if (trainingJobConfigBuilder_ == null) { + trainingJobConfig_ = null; + } else { + trainingJobConfig_ = null; + trainingJobConfigBuilder_ = null; + } + interruptible_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(this); + if (algorithmSpecificationBuilder_ == null) { + result.algorithmSpecification_ = algorithmSpecification_; + } else { + result.algorithmSpecification_ = algorithmSpecificationBuilder_.build(); + } + if (trainingJobConfigBuilder_ == null) { + result.trainingJobConfig_ = trainingJobConfig_; + } else { + result.trainingJobConfig_ = trainingJobConfigBuilder_.build(); + } + result.interruptible_ = interruptible_; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance()) return this; + if (other.hasAlgorithmSpecification()) { + mergeAlgorithmSpecification(other.getAlgorithmSpecification()); + } + if (other.hasTrainingJobConfig()) { + mergeTrainingJobConfig(other.getTrainingJobConfig()); + } + if (other.getInterruptible() != false) { + setInterruptible(other.getInterruptible()); + } + 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 { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public boolean hasAlgorithmSpecification() { + return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { + if (algorithmSpecificationBuilder_ == null) { + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } else { + return algorithmSpecificationBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { + if (algorithmSpecificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + algorithmSpecification_ = value; + onChanged(); + } else { + algorithmSpecificationBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder setAlgorithmSpecification( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder builderForValue) { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = builderForValue.build(); + onChanged(); + } else { + algorithmSpecificationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { + if (algorithmSpecificationBuilder_ == null) { + if (algorithmSpecification_ != null) { + algorithmSpecification_ = + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); + } else { + algorithmSpecification_ = value; + } + onChanged(); + } else { + algorithmSpecificationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder clearAlgorithmSpecification() { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = null; + onChanged(); + } else { + algorithmSpecification_ = null; + algorithmSpecificationBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { + + onChanged(); + return getAlgorithmSpecificationFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + if (algorithmSpecificationBuilder_ != null) { + return algorithmSpecificationBuilder_.getMessageOrBuilder(); + } else { + return algorithmSpecification_ == null ? + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> + getAlgorithmSpecificationFieldBuilder() { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder>( + getAlgorithmSpecification(), + getParentForChildren(), + isClean()); + algorithmSpecification_ = null; + } + return algorithmSpecificationBuilder_; + } + + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> trainingJobConfigBuilder_; + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public boolean hasTrainingJobConfig() { + return trainingJobConfigBuilder_ != null || trainingJobConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { + if (trainingJobConfigBuilder_ == null) { + return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; + } else { + return trainingJobConfigBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { + if (trainingJobConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingJobConfig_ = value; + onChanged(); + } else { + trainingJobConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public Builder setTrainingJobConfig( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder builderForValue) { + if (trainingJobConfigBuilder_ == null) { + trainingJobConfig_ = builderForValue.build(); + onChanged(); + } else { + trainingJobConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public Builder mergeTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { + if (trainingJobConfigBuilder_ == null) { + if (trainingJobConfig_ != null) { + trainingJobConfig_ = + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.newBuilder(trainingJobConfig_).mergeFrom(value).buildPartial(); + } else { + trainingJobConfig_ = value; + } + onChanged(); + } else { + trainingJobConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public Builder clearTrainingJobConfig() { + if (trainingJobConfigBuilder_ == null) { + trainingJobConfig_ = null; + onChanged(); + } else { + trainingJobConfig_ = null; + trainingJobConfigBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder getTrainingJobConfigBuilder() { + + onChanged(); + return getTrainingJobConfigFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { + if (trainingJobConfigBuilder_ != null) { + return trainingJobConfigBuilder_.getMessageOrBuilder(); + } else { + return trainingJobConfig_ == null ? + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; + } + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> + getTrainingJobConfigFieldBuilder() { + if (trainingJobConfigBuilder_ == null) { + trainingJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder>( + getTrainingJobConfig(), + getParentForChildren(), + isClean()); + trainingJobConfig_ = null; + } + return trainingJobConfigBuilder_; + } + + private boolean interruptible_ ; + /** + * bool interruptible = 4; + */ + public boolean getInterruptible() { + return interruptible_; + } + /** + * bool interruptible = 4; + */ + public Builder setInterruptible(boolean value) { + + interruptible_ = value; + onChanged(); + return this; + } + /** + * bool interruptible = 4; + */ + public Builder clearInterruptible() { + + interruptible_ = false; + 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:flyteidl.plugins.sagemaker.TrainingJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainingJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainingJob(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_TrainingJob_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-flyteidl/plugins/sagemaker/training_jo" + + "b.proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026" + + "AlgorithmSpecification\0229\n\ninput_mode\030\001 \001" + + "(\0162%.flyteidl.plugins.sagemaker.InputMod" + + "e\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plu" + + "gins.sagemaker.AlgorithmName\022\031\n\021algorith" + + "m_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 " + + "\003(\0132C.flyteidl.plugins.sagemaker.Algorit" + + "hmSpecification.MetricDefinition\032/\n\020Metr" + + "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(" + + "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count" + + "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_" + + "size_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n" + + "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai" + + "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022" + + "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + + "idl.plugins.sagemaker.AlgorithmSpecifica" + + "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt" + + "eidl.plugins.sagemaker.TrainingJobConfig" + + "\022\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004" + + "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS" + + "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl" + + "yteidl/gen/pb-go/flyteidl/pluginsb\006proto" + + "3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, + new java.lang.String[] { "InputMode", "AlgorithmName", "AlgorithmVersion", "MetricDefinitions", }); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor = + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, + new java.lang.String[] { "Name", "Regex", }); + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor, + new java.lang.String[] { "InstanceCount", "InstanceType", "VolumeSizeInGb", }); + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor, + new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", }); + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor, + new java.lang.String[] { "AlgorithmSpecification", "TrainingJobConfig", "Interruptible", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/service/Admin.java b/gen/pb-java/flyteidl/service/Admin.java new file mode 100644 index 000000000..bb5982e25 --- /dev/null +++ b/gen/pb-java/flyteidl/service/Admin.java @@ -0,0 +1,395 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/admin.proto + +package flyteidl.service; + +public final class Admin { + private Admin() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/service/admin.proto\022\020flyteidl" + + ".service\032\034google/api/annotations.proto\032\034" + + "flyteidl/admin/project.proto\032.flyteidl/a" + + "dmin/project_domain_attributes.proto\032\031fl" + + "yteidl/admin/task.proto\032\035flyteidl/admin/" + + "workflow.proto\032(flyteidl/admin/workflow_" + + "attributes.proto\032 flyteidl/admin/launch_" + + "plan.proto\032\032flyteidl/admin/event.proto\032\036" + + "flyteidl/admin/execution.proto\032\'flyteidl" + + "/admin/matchable_resource.proto\032#flyteid" + + "l/admin/node_execution.proto\032#flyteidl/a" + + "dmin/task_execution.proto\032\033flyteidl/admi" + + "n/common.proto\032,protoc-gen-swagger/optio" + + "ns/annotations.proto2\331^\n\014AdminService\022\305\002" + + "\n\nCreateTask\022!.flyteidl.admin.TaskCreate" + + "Request\032\".flyteidl.admin.TaskCreateRespo" + + "nse\"\357\001\202\323\344\223\002\022\"\r/api/v1/tasks:\001*\222A\323\001\032&Crea" + + "te and register a task definition.JB\n\00340" + + "0\022;\n9Returned for bad request that may h" + + "ave failed validation.Je\n\003409\022^\n\\Returne" + + "d for a request that references an ident" + + "ical entity that has already been regist" + + "ered.\022\262\001\n\007GetTask\022 .flyteidl.admin.Objec" + + "tGetRequest\032\024.flyteidl.admin.Task\"o\202\323\344\223\002" + + "?\022=/api/v1/tasks/{id.project}/{id.domain" + + "}/{id.name}/{id.version}\222A\'\032%Retrieve an" + + " existing task definition.\022\336\001\n\013ListTaskI" + + "ds\0220.flyteidl.admin.NamedEntityIdentifie" + + "rListRequest\032).flyteidl.admin.NamedEntit" + + "yIdentifierList\"r\202\323\344\223\002%\022#/api/v1/task_id" + + "s/{project}/{domain}\222AD\032BFetch existing " + + "task definition identifiers matching inp" + + "ut filters.\022\353\001\n\tListTasks\022#.flyteidl.adm" + + "in.ResourceListRequest\032\030.flyteidl.admin." + + "TaskList\"\236\001\202\323\344\223\002\\\0220/api/v1/tasks/{id.pro" + + "ject}/{id.domain}/{id.name}Z(\022&/api/v1/t" + + "asks/{id.project}/{id.domain}\222A9\0327Fetch " + + "existing task definitions matching input" + + " filters.\022\331\002\n\016CreateWorkflow\022%.flyteidl." + + "admin.WorkflowCreateRequest\032&.flyteidl.a" + + "dmin.WorkflowCreateResponse\"\367\001\202\323\344\223\002\026\"\021/a" + + "pi/v1/workflows:\001*\222A\327\001\032*Create and regis" + + "ter a workflow definition.JB\n\003400\022;\n9Ret" + + "urned for bad request that may have fail" + + "ed validation.Je\n\003409\022^\n\\Returned for a " + + "request that references an identical ent" + + "ity that has already been registered.\022\302\001" + + "\n\013GetWorkflow\022 .flyteidl.admin.ObjectGet" + + "Request\032\030.flyteidl.admin.Workflow\"w\202\323\344\223\002" + + "C\022A/api/v1/workflows/{id.project}/{id.do" + + "main}/{id.name}/{id.version}\222A+\032)Retriev" + + "e an existing workflow definition.\022\355\001\n\017L" + + "istWorkflowIds\0220.flyteidl.admin.NamedEnt" + + "ityIdentifierListRequest\032).flyteidl.admi" + + "n.NamedEntityIdentifierList\"}\202\323\344\223\002)\022\'/ap" + + "i/v1/workflow_ids/{project}/{domain}\222AK\032" + + "IFetch an existing workflow definition i" + + "dentifiers matching input filters.\022\377\001\n\rL" + + "istWorkflows\022#.flyteidl.admin.ResourceLi" + + "stRequest\032\034.flyteidl.admin.WorkflowList\"" + + "\252\001\202\323\344\223\002d\0224/api/v1/workflows/{id.project}" + + "/{id.domain}/{id.name}Z,\022*/api/v1/workfl" + + "ows/{id.project}/{id.domain}\222A=\032;Fetch e" + + "xisting workflow definitions matching in" + + "put filters.\022\345\002\n\020CreateLaunchPlan\022\'.flyt" + + "eidl.admin.LaunchPlanCreateRequest\032(.fly" + + "teidl.admin.LaunchPlanCreateResponse\"\375\001\202" + + "\323\344\223\002\031\"\024/api/v1/launch_plans:\001*\222A\332\001\032-Crea" + + "te and register a launch plan definition" + + ".JB\n\003400\022;\n9Returned for bad request tha" + + "t may have failed validation.Je\n\003409\022^\n\\" + + "Returned for a request that references a" + + "n identical entity that has already been" + + " registered.\022\314\001\n\rGetLaunchPlan\022 .flyteid" + + "l.admin.ObjectGetRequest\032\032.flyteidl.admi" + + "n.LaunchPlan\"}\202\323\344\223\002F\022D/api/v1/launch_pla" + + "ns/{id.project}/{id.domain}/{id.name}/{i" + + "d.version}\222A.\032,Retrieve an existing laun" + + "ch plan definition.\022\363\001\n\023GetActiveLaunchP" + + "lan\022\'.flyteidl.admin.ActiveLaunchPlanReq" + + "uest\032\032.flyteidl.admin.LaunchPlan\"\226\001\202\323\344\223\002" + + "@\022>/api/v1/active_launch_plans/{id.proje" + + "ct}/{id.domain}/{id.name}\222AM\032KRetrieve t" + + "he active launch plan version specified " + + "by input request filters.\022\353\001\n\025ListActive" + + "LaunchPlans\022+.flyteidl.admin.ActiveLaunc" + + "hPlanListRequest\032\036.flyteidl.admin.Launch" + + "PlanList\"\204\001\202\323\344\223\0020\022./api/v1/active_launch" + + "_plans/{project}/{domain}\222AK\032IFetch the " + + "active launch plan versions specified by" + + " input request filters.\022\363\001\n\021ListLaunchPl" + + "anIds\0220.flyteidl.admin.NamedEntityIdenti" + + "fierListRequest\032).flyteidl.admin.NamedEn" + + "tityIdentifierList\"\200\001\202\323\344\223\002,\022*/api/v1/lau" + + "nch_plan_ids/{project}/{domain}\222AK\032IFetc" + + "h existing launch plan definition identi" + + "fiers matching input filters.\022\214\002\n\017ListLa" + + "unchPlans\022#.flyteidl.admin.ResourceListR" + + "equest\032\036.flyteidl.admin.LaunchPlanList\"\263" + + "\001\202\323\344\223\002j\0227/api/v1/launch_plans/{id.projec" + + "t}/{id.domain}/{id.name}Z/\022-/api/v1/laun" + + "ch_plans/{id.project}/{id.domain}\222A@\032>Fe" + + "tch existing launch plan definitions mat" + + "ching input filters.\022\300\006\n\020UpdateLaunchPla" + + "n\022\'.flyteidl.admin.LaunchPlanUpdateReque" + + "st\032(.flyteidl.admin.LaunchPlanUpdateResp" + + "onse\"\330\005\202\323\344\223\002I\032D/api/v1/launch_plans/{id." + + "project}/{id.domain}/{id.name}/{id.versi" + + "on}:\001*\222A\205\005\032\202\005Update the status of an exi" + + "sting launch plan definition. At most on" + + "e launch plan version for a given {proje" + + "ct, domain, name} can be active at a tim" + + "e. If this call sets a launch plan to ac" + + "tive and existing version is already act" + + "ive, the result of this call will be tha" + + "t the formerly active launch plan will b" + + "e made inactive and specified launch pla" + + "n in this request will be made active. I" + + "n the event that the formerly active lau" + + "nch plan had a schedule associated it wi" + + "th it, this schedule will be disabled. I" + + "f the reference launch plan in this requ" + + "est is being set to active and has a sch" + + "edule associated with it, the schedule w" + + "ill be enabled.\022\242\001\n\017CreateExecution\022&.fl" + + "yteidl.admin.ExecutionCreateRequest\032\'.fl" + + "yteidl.admin.ExecutionCreateResponse\">\202\323" + + "\344\223\002\027\"\022/api/v1/executions:\001*\222A\036\032\034Create a" + + " workflow execution.\022\261\001\n\021RelaunchExecuti" + + "on\022(.flyteidl.admin.ExecutionRelaunchReq" + + "uest\032\'.flyteidl.admin.ExecutionCreateRes" + + "ponse\"I\202\323\344\223\002 \"\033/api/v1/executions/relaun" + + "ch:\001*\222A \032\036Relaunch a workflow execution." + + "\022\302\001\n\014GetExecution\022+.flyteidl.admin.Workf" + + "lowExecutionGetRequest\032\031.flyteidl.admin." + + "Execution\"j\202\323\344\223\0027\0225/api/v1/executions/{i" + + "d.project}/{id.domain}/{id.name}\222A*\032(Ret" + + "rieve an existing workflow execution.\022\202\002" + + "\n\020GetExecutionData\022/.flyteidl.admin.Work" + + "flowExecutionGetDataRequest\0320.flyteidl.a" + + "dmin.WorkflowExecutionGetDataResponse\"\212\001" + + "\202\323\344\223\002<\022:/api/v1/data/executions/{id.proj" + + "ect}/{id.domain}/{id.name}\222AE\032CRetrieve " + + "input and output data from an existing w" + + "orkflow execution.\022\310\001\n\016ListExecutions\022#." + + "flyteidl.admin.ResourceListRequest\032\035.fly" + + "teidl.admin.ExecutionList\"r\202\323\344\223\002-\022+/api/" + + "v1/executions/{id.project}/{id.domain}\222A" + + "<\032:Fetch existing workflow executions ma" + + "tching input filters.\022\364\001\n\022TerminateExecu" + + "tion\022).flyteidl.admin.ExecutionTerminate" + + "Request\032*.flyteidl.admin.ExecutionTermin" + + "ateResponse\"\206\001\202\323\344\223\002:*5/api/v1/executions" + + "/{id.project}/{id.domain}/{id.name}:\001*\222A" + + "C\032ATerminate the active workflow executi" + + "on specified in the request.\022\374\001\n\020GetNode" + + "Execution\022\'.flyteidl.admin.NodeExecution" + + "GetRequest\032\035.flyteidl.admin.NodeExecutio" + + "n\"\237\001\202\323\344\223\002p\022n/api/v1/node_executions/{id." + + "execution_id.project}/{id.execution_id.d" + + "omain}/{id.execution_id.name}/{id.node_i" + + "d}\222A&\032$Retrieve an existing node executi" + + "on.\022\232\002\n\022ListNodeExecutions\022(.flyteidl.ad" + + "min.NodeExecutionListRequest\032!.flyteidl." + + "admin.NodeExecutionList\"\266\001\202\323\344\223\002u\022s/api/v" + + "1/node_executions/{workflow_execution_id" + + ".project}/{workflow_execution_id.domain}" + + "/{workflow_execution_id.name}\222A8\0326Fetch " + + "existing node executions matching input " + + "filters.\022\357\004\n\031ListNodeExecutionsForTask\022/" + + ".flyteidl.admin.NodeExecutionForTaskList" + + "Request\032!.flyteidl.admin.NodeExecutionLi" + + "st\"\375\003\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_exe" + + "cutions/{task_execution_id.node_executio" + + "n_id.execution_id.project}/{task_executi" + + "on_id.node_execution_id.execution_id.dom" + + "ain}/{task_execution_id.node_execution_i" + + "d.execution_id.name}/{task_execution_id." + + "node_execution_id.node_id}/{task_executi" + + "on_id.task_id.project}/{task_execution_i" + + "d.task_id.domain}/{task_execution_id.tas" + + "k_id.name}/{task_execution_id.task_id.ve" + + "rsion}/{task_execution_id.retry_attempt}" + + "\222AG\032EFetch child node executions launche" + + "d by the specified task execution.\022\263\002\n\024G" + + "etNodeExecutionData\022+.flyteidl.admin.Nod" + + "eExecutionGetDataRequest\032,.flyteidl.admi" + + "n.NodeExecutionGetDataResponse\"\277\001\202\323\344\223\002u\022" + + "s/api/v1/data/node_executions/{id.execut" + + "ion_id.project}/{id.execution_id.domain}" + + "/{id.execution_id.name}/{id.node_id}\222AA\032" + + "?Retrieve input and output data from an " + + "existing node execution.\022\227\001\n\017RegisterPro" + + "ject\022&.flyteidl.admin.ProjectRegisterReq" + + "uest\032\'.flyteidl.admin.ProjectRegisterRes" + + "ponse\"3\202\323\344\223\002\025\"\020/api/v1/projects:\001*\222A\025\032\023R" + + "egister a project.\022\205\001\n\014ListProjects\022\".fl" + + "yteidl.admin.ProjectListRequest\032\030.flytei" + + "dl.admin.Projects\"7\202\323\344\223\002\022\022\020/api/v1/proje" + + "cts\222A\034\032\032Fetch registered projects.\022\335\001\n\023C" + + "reateWorkflowEvent\022-.flyteidl.admin.Work" + + "flowExecutionEventRequest\032..flyteidl.adm" + + "in.WorkflowExecutionEventResponse\"g\202\323\344\223\002" + + "\035\"\030/api/v1/events/workflows:\001*\222AA\032?Creat" + + "e a workflow execution event recording a" + + " phase transition.\022\311\001\n\017CreateNodeEvent\022)" + + ".flyteidl.admin.NodeExecutionEventReques" + + "t\032*.flyteidl.admin.NodeExecutionEventRes" + + "ponse\"_\202\323\344\223\002\031\"\024/api/v1/events/nodes:\001*\222A" + + "=\032;Create a node execution event recordi" + + "ng a phase transition.\022\311\001\n\017CreateTaskEve" + + "nt\022).flyteidl.admin.TaskExecutionEventRe" + + "quest\032*.flyteidl.admin.TaskExecutionEven" + + "tResponse\"_\202\323\344\223\002\031\"\024/api/v1/events/tasks:" + + "\001*\222A=\032;Create a task execution event rec" + + "ording a phase transition.\022\251\003\n\020GetTaskEx" + + "ecution\022\'.flyteidl.admin.TaskExecutionGe" + + "tRequest\032\035.flyteidl.admin.TaskExecution\"" + + "\314\002\202\323\344\223\002\234\002\022\231\002/api/v1/task_executions/{id." + + "node_execution_id.execution_id.project}/" + + "{id.node_execution_id.execution_id.domai" + + "n}/{id.node_execution_id.execution_id.na" + + "me}/{id.node_execution_id.node_id}/{id.t" + + "ask_id.project}/{id.task_id.domain}/{id." + + "task_id.name}/{id.task_id.version}/{id.r" + + "etry_attempt}\222A&\032$Retrieve an existing t" + + "ask execution.\022\323\002\n\022ListTaskExecutions\022(." + + "flyteidl.admin.TaskExecutionListRequest\032" + + "!.flyteidl.admin.TaskExecutionList\"\357\001\202\323\344" + + "\223\002\255\001\022\252\001/api/v1/task_executions/{node_exe" + + "cution_id.execution_id.project}/{node_ex" + + "ecution_id.execution_id.domain}/{node_ex" + + "ecution_id.execution_id.name}/{node_exec" + + "ution_id.node_id}\222A8\0326Fetch existing tas" + + "k executions matching input filters.\022\340\003\n" + + "\024GetTaskExecutionData\022+.flyteidl.admin.T" + + "askExecutionGetDataRequest\032,.flyteidl.ad" + + "min.TaskExecutionGetDataResponse\"\354\002\202\323\344\223\002" + + "\241\002\022\236\002/api/v1/data/task_executions/{id.no" + + "de_execution_id.execution_id.project}/{i" + + "d.node_execution_id.execution_id.domain}" + + "/{id.node_execution_id.execution_id.name" + + "}/{id.node_execution_id.node_id}/{id.tas" + + "k_id.project}/{id.task_id.domain}/{id.ta" + + "sk_id.name}/{id.task_id.version}/{id.ret" + + "ry_attempt}\222AA\032?Retrieve input and outpu" + + "t data from an existing task execution.\022" + + "\277\002\n\035UpdateProjectDomainAttributes\0224.flyt" + + "eidl.admin.ProjectDomainAttributesUpdate" + + "Request\0325.flyteidl.admin.ProjectDomainAt" + + "tributesUpdateResponse\"\260\001\202\323\344\223\002O\032J/api/v1" + + "/project_domain_attributes/{attributes.p" + + "roject}/{attributes.domain}:\001*\222AX\032VUpdat" + + "e the customized resource attributes ass" + + "ociated with a project-domain combinatio" + + "n\022\237\002\n\032GetProjectDomainAttributes\0221.flyte" + + "idl.admin.ProjectDomainAttributesGetRequ" + + "est\0322.flyteidl.admin.ProjectDomainAttrib" + + "utesGetResponse\"\231\001\202\323\344\223\0026\0224/api/v1/projec" + + "t_domain_attributes/{project}/{domain}\222A" + + "Z\032XRetrieve the customized resource attr" + + "ibutes associated with a project-domain " + + "combination\022\251\002\n\035DeleteProjectDomainAttri" + + "butes\0224.flyteidl.admin.ProjectDomainAttr" + + "ibutesDeleteRequest\0325.flyteidl.admin.Pro" + + "jectDomainAttributesDeleteResponse\"\232\001\202\323\344" + + "\223\0029*4/api/v1/project_domain_attributes/{" + + "project}/{domain}:\001*\222AX\032VDelete the cust" + + "omized resource attributes associated wi" + + "th a project-domain combination\022\316\002\n\030Upda" + + "teWorkflowAttributes\022/.flyteidl.admin.Wo" + + "rkflowAttributesUpdateRequest\0320.flyteidl" + + ".admin.WorkflowAttributesUpdateResponse\"" + + "\316\001\202\323\344\223\002_\032Z/api/v1/workflow_attributes/{a" + + "ttributes.project}/{attributes.domain}/{" + + "attributes.workflow}:\001*\222Af\032dUpdate the c" + + "ustomized resource attributes associated" + + " with a project, domain and workflow com" + + "bination\022\243\002\n\025GetWorkflowAttributes\022,.fly" + + "teidl.admin.WorkflowAttributesGetRequest" + + "\032-.flyteidl.admin.WorkflowAttributesGetR" + + "esponse\"\254\001\202\323\344\223\002;\0229/api/v1/workflow_attri" + + "butes/{project}/{domain}/{workflow}\222Ah\032f" + + "Retrieve the customized resource attribu" + + "tes associated with a project, domain an" + + "d workflow combination\022\255\002\n\030DeleteWorkflo" + + "wAttributes\022/.flyteidl.admin.WorkflowAtt" + + "ributesDeleteRequest\0320.flyteidl.admin.Wo" + + "rkflowAttributesDeleteResponse\"\255\001\202\323\344\223\002>*" + + "9/api/v1/workflow_attributes/{project}/{" + + "domain}/{workflow}:\001*\222Af\032dDelete the cus" + + "tomized resource attributes associated w" + + "ith a project, domain and workflow combi" + + "nation\022\341\001\n\027ListMatchableAttributes\022..fly" + + "teidl.admin.ListMatchableAttributesReque" + + "st\032/.flyteidl.admin.ListMatchableAttribu" + + "tesResponse\"e\202\323\344\223\002\036\022\034/api/v1/matchable_a" + + "ttributes\222A>\032 Date: Thu, 23 Jul 2020 17:13:05 -0700 Subject: [PATCH 31/64] renaming file names back to names with '_' in it --- .../{hpojob.grpc.pb.cc => hpo_job.grpc.pb.cc} | 6 +- .../{hpojob.grpc.pb.h => hpo_job.grpc.pb.h} | 10 +- .../sagemaker/{hpojob.pb.cc => hpo_job.pb.cc} | 170 ++-- .../sagemaker/{hpojob.pb.h => hpo_job.pb.h} | 24 +- ...grpc.pb.cc => parameter_ranges.grpc.pb.cc} | 6 +- ...s.grpc.pb.h => parameter_ranges.grpc.pb.h} | 10 +- ...terranges.pb.cc => parameter_ranges.pb.cc} | 206 ++--- ...meterranges.pb.h => parameter_ranges.pb.h} | 24 +- ...job.grpc.pb.cc => training_job.grpc.pb.cc} | 6 +- ...ngjob.grpc.pb.h => training_job.grpc.pb.h} | 10 +- .../{trainingjob.pb.cc => training_job.pb.cc} | 183 ++--- .../{trainingjob.pb.h => training_job.pb.h} | 24 +- .../sagemaker/{hpojob.pb.go => hpo_job.pb.go} | 92 +-- ....pb.validate.go => hpo_job.pb.validate.go} | 4 +- ...terranges.pb.go => parameter_ranges.pb.go} | 88 +- ...ate.go => parameter_ranges.pb.validate.go} | 4 +- .../{trainingjob.pb.go => training_job.pb.go} | 100 +-- ...alidate.go => training_job.pb.validate.go} | 4 +- .../flyteidl/plugins/sagemaker/Hpojob.java | 502 ++++++------ ...es.java => ParameterRangesOuterClass.java} | 766 +++++++++--------- ...ingjob.java => TrainingJobOuterClass.java} | 647 +++++++-------- .../{hpojob.proto.rst => hpo_job.proto.rst} | 18 +- .../flyteidl/plugins/sagemaker/index.rst | 6 +- ...s.proto.rst => parameter_ranges.proto.rst} | 18 +- ...ngjob.proto.rst => training_job.proto.rst} | 20 +- .../{hpojob_pb2.py => hpo_job_pb2.py} | 46 +- ...hpojob_pb2_grpc.py => hpo_job_pb2_grpc.py} | 0 ...rranges_pb2.py => parameter_ranges_pb2.py} | 46 +- ...2_grpc.py => parameter_ranges_pb2_grpc.py} | 0 ...trainingjob_pb2.py => training_job_pb2.py} | 44 +- ...b_pb2_grpc.py => training_job_pb2_grpc.py} | 0 .../sagemaker/{hpojob.proto => hpo_job.proto} | 4 +- ...terranges.proto => parameter_ranges.proto} | 0 .../{trainingjob.proto => training_job.proto} | 0 34 files changed, 1545 insertions(+), 1543 deletions(-) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{hpojob.grpc.pb.cc => hpo_job.grpc.pb.cc} (82%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{hpojob.grpc.pb.h => hpo_job.grpc.pb.h} (78%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{hpojob.pb.cc => hpo_job.pb.cc} (91%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{hpojob.pb.h => hpo_job.pb.h} (98%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{parameterranges.grpc.pb.cc => parameter_ranges.grpc.pb.cc} (80%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{parameterranges.grpc.pb.h => parameter_ranges.grpc.pb.h} (77%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{parameterranges.pb.cc => parameter_ranges.pb.cc} (92%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{parameterranges.pb.h => parameter_ranges.pb.h} (99%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{trainingjob.grpc.pb.cc => training_job.grpc.pb.cc} (81%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{trainingjob.grpc.pb.h => training_job.grpc.pb.h} (77%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{trainingjob.pb.cc => training_job.pb.cc} (93%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{trainingjob.pb.h => training_job.pb.h} (99%) rename gen/pb-go/flyteidl/plugins/sagemaker/{hpojob.pb.go => hpo_job.pb.go} (73%) rename gen/pb-go/flyteidl/plugins/sagemaker/{hpojob.pb.validate.go => hpo_job.pb.validate.go} (97%) rename gen/pb-go/flyteidl/plugins/sagemaker/{parameterranges.pb.go => parameter_ranges.pb.go} (78%) rename gen/pb-go/flyteidl/plugins/sagemaker/{parameterranges.pb.validate.go => parameter_ranges.pb.validate.go} (98%) rename gen/pb-go/flyteidl/plugins/sagemaker/{trainingjob.pb.go => training_job.pb.go} (74%) rename gen/pb-go/flyteidl/plugins/sagemaker/{trainingjob.pb.validate.go => training_job.pb.validate.go} (98%) rename gen/pb-java/flyteidl/plugins/sagemaker/{Parameterranges.java => ParameterRangesOuterClass.java} (74%) rename gen/pb-java/flyteidl/plugins/sagemaker/{Trainingjob.java => TrainingJobOuterClass.java} (78%) rename gen/pb-protodoc/flyteidl/plugins/sagemaker/{hpojob.proto.rst => hpo_job.proto.rst} (92%) rename gen/pb-protodoc/flyteidl/plugins/sagemaker/{parameterranges.proto.rst => parameter_ranges.proto.rst} (94%) rename gen/pb-protodoc/flyteidl/plugins/sagemaker/{trainingjob.proto.rst => training_job.proto.rst} (94%) rename gen/pb_python/flyteidl/plugins/sagemaker/{hpojob_pb2.py => hpo_job_pb2.py} (79%) rename gen/pb_python/flyteidl/plugins/sagemaker/{hpojob_pb2_grpc.py => hpo_job_pb2_grpc.py} (100%) rename gen/pb_python/flyteidl/plugins/sagemaker/{parameterranges_pb2.py => parameter_ranges_pb2.py} (84%) rename gen/pb_python/flyteidl/plugins/sagemaker/{parameterranges_pb2_grpc.py => parameter_ranges_pb2_grpc.py} (100%) rename gen/pb_python/flyteidl/plugins/sagemaker/{trainingjob_pb2.py => training_job_pb2.py} (85%) rename gen/pb_python/flyteidl/plugins/sagemaker/{trainingjob_pb2_grpc.py => training_job_pb2_grpc.py} (100%) rename protos/flyteidl/plugins/sagemaker/{hpojob.proto => hpo_job.proto} (90%) rename protos/flyteidl/plugins/sagemaker/{parameterranges.proto => parameter_ranges.proto} (100%) rename protos/flyteidl/plugins/sagemaker/{trainingjob.proto => training_job.proto} (100%) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.cc similarity index 82% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.cc index 37c9c99a7..e7c373c24 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.cc @@ -1,9 +1,9 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/hpojob.proto +// source: flyteidl/plugins/sagemaker/hpo_job.proto -#include "flyteidl/plugins/sagemaker/hpojob.pb.h" -#include "flyteidl/plugins/sagemaker/hpojob.grpc.pb.h" +#include "flyteidl/plugins/sagemaker/hpo_job.pb.h" +#include "flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h" #include #include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h similarity index 78% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h index a4849ff1f..13d190835 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h @@ -1,10 +1,10 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/hpojob.proto -#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto__INCLUDED +// source: flyteidl/plugins/sagemaker/hpo_job.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto__INCLUDED -#include "flyteidl/plugins/sagemaker/hpojob.pb.h" +#include "flyteidl/plugins/sagemaker/hpo_job.pb.h" #include #include @@ -46,4 +46,4 @@ namespace sagemaker { } // namespace flyteidl -#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto__INCLUDED +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc similarity index 91% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc index 326327207..8bfb8e986 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpojob.proto +// source: flyteidl/plugins/sagemaker/hpo_job.proto -#include "flyteidl/plugins/sagemaker/hpojob.pb.h" +#include "flyteidl/plugins/sagemaker/hpo_job.pb.h" #include @@ -16,9 +16,9 @@ // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; namespace flyteidl { namespace plugins { namespace sagemaker { @@ -37,7 +37,7 @@ class HPOJobConfigDefaultTypeInternal { } // namespace sagemaker } // namespace plugins } // namespace flyteidl -static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { +static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -48,10 +48,10 @@ static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagem ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, {}}; -static void InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { +static void InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -62,11 +62,11 @@ static void InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() ::flyteidl::plugins::sagemaker::HPOJob::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto}, { - &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<1> scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { + &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; -static void InitDefaultsHPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { +static void InitDefaultsHPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -77,22 +77,22 @@ static void InitDefaultsHPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpojob_2ep ::flyteidl::plugins::sagemaker::HPOJobConfig::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto}, { - &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base, - &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, + &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base,}}; -void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[3]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[3]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = nullptr; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[3]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[3]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, _internal_metadata_), ~0u, // no _extensions_ @@ -130,65 +130,65 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_), }; -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, "flyteidl/plugins/sagemaker/hpojob.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, "flyteidl/plugins/sagemaker/hpo_job.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, }; -const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[] = - "\n\'flyteidl/plugins/sagemaker/hpojob.prot" - "o\022\032flyteidl.plugins.sagemaker\0320flyteidl/" - "plugins/sagemaker/parameterranges.proto\032" - ",flyteidl/plugins/sagemaker/trainingjob." - "proto\"\352\001\n\035HyperparameterTuningObjective\022" - "s\n\016objective_type\030\001 \001(\0162[.flyteidl.plugi" - "ns.sagemaker.HyperparameterTuningObjecti" - "ve.HyperparameterTuningObjectiveType\022\023\n\013" - "metric_name\030\002 \001(\t\"\?\n!HyperparameterTunin" - "gObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE" - "\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'.fl" - "yteidl.plugins.sagemaker.TrainingJob\022#\n\033" - "max_number_of_training_jobs\030\002 \001(\003\022\"\n\032max" - "_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPOJob" - "Config\022J\n\025hyperparameter_ranges\030\001 \001(\0132+." - "flyteidl.plugins.sagemaker.ParameterRang" - "es\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteidl.p" - "lugins.sagemaker.HPOJobConfig.Hyperparam" - "eterTuningStrategy\022S\n\020tuning_objective\030\003" - " \001(\01329.flyteidl.plugins.sagemaker.Hyperp" - "arameterTuningObjective\022o\n training_job_" - "early_stopping_type\030\004 \001(\0162E.flyteidl.plu" - "gins.sagemaker.HPOJobConfig.TrainingJobE" - "arlyStoppingType\"8\n\034HyperparameterTuning" - "Strategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034Tr" - "ainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004A" - "UTO\020\001B5Z3github.com/lyft/flyteidl/gen/pb" - "-go/flyteidl/pluginsb\006proto3" +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[] = + "\n(flyteidl/plugins/sagemaker/hpo_job.pro" + "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" + "/plugins/sagemaker/parameter_ranges.prot" + "o\032-flyteidl/plugins/sagemaker/training_j" + "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" + "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" + "ugins.sagemaker.HyperparameterTuningObje" + "ctive.HyperparameterTuningObjectiveType\022" + "\023\n\013metric_name\030\002 \001(\t\"\?\n!HyperparameterTu" + "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" + "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" + ".flyteidl.plugins.sagemaker.TrainingJob\022" + "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" + "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" + "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" + "2+.flyteidl.plugins.sagemaker.ParameterR" + "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" + "l.plugins.sagemaker.HPOJobConfig.Hyperpa" + "rameterTuningStrategy\022S\n\020tuning_objectiv" + "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" + "erparameterTuningObjective\022o\n training_j" + "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." + "plugins.sagemaker.HPOJobConfig.TrainingJ" + "obEarlyStoppingType\"8\n\034HyperparameterTun" + "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" + "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" + "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" + "/pb-go/flyteidl/pluginsb\006proto3" ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, - "flyteidl/plugins/sagemaker/hpojob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, 1108, +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, + "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1111, }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto() { +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { static constexpr ::google::protobuf::internal::InitFunc deps[2] = { - ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, - ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, + ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, + ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto, deps, 2); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, deps, 2); } // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto(); return true; }(); +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto(); return true; }(); namespace flyteidl { namespace plugins { namespace sagemaker { const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[0]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[0]; } bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(int value) { switch (value) { @@ -208,8 +208,8 @@ const HyperparameterTuningObjective_HyperparameterTuningObjectiveType Hyperparam const int HyperparameterTuningObjective::HyperparameterTuningObjectiveType_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 const ::google::protobuf::EnumDescriptor* HPOJobConfig_HyperparameterTuningStrategy_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[1]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[1]; } bool HPOJobConfig_HyperparameterTuningStrategy_IsValid(int value) { switch (value) { @@ -229,8 +229,8 @@ const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::HyperparameterTuni const int HPOJobConfig::HyperparameterTuningStrategy_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 const ::google::protobuf::EnumDescriptor* HPOJobConfig_TrainingJobEarlyStoppingType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[2]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[2]; } bool HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(int value) { switch (value) { @@ -282,7 +282,7 @@ HyperparameterTuningObjective::HyperparameterTuningObjective(const Hyperparamete void HyperparameterTuningObjective::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); objective_type_ = 0; } @@ -300,7 +300,7 @@ void HyperparameterTuningObjective::SetCachedSize(int size) const { _cached_size_.Set(size); } const HyperparameterTuningObjective& HyperparameterTuningObjective::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); return *internal_default_instance(); } @@ -590,8 +590,8 @@ void HyperparameterTuningObjective::InternalSwap(HyperparameterTuningObjective* } ::google::protobuf::Metadata HyperparameterTuningObjective::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; } @@ -644,7 +644,7 @@ HPOJob::HPOJob(const HPOJob& from) void HPOJob::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + &scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); ::memset(&training_job_, 0, static_cast( reinterpret_cast(&max_parallel_training_jobs_) - reinterpret_cast(&training_job_)) + sizeof(max_parallel_training_jobs_)); @@ -663,7 +663,7 @@ void HPOJob::SetCachedSize(int size) const { _cached_size_.Set(size); } const HPOJob& HPOJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); return *internal_default_instance(); } @@ -975,8 +975,8 @@ void HPOJob::InternalSwap(HPOJob* other) { } ::google::protobuf::Metadata HPOJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; } @@ -1042,7 +1042,7 @@ HPOJobConfig::HPOJobConfig(const HPOJobConfig& from) void HPOJobConfig::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + &scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); ::memset(&hyperparameter_ranges_, 0, static_cast( reinterpret_cast(&training_job_early_stopping_type_) - reinterpret_cast(&hyperparameter_ranges_)) + sizeof(training_job_early_stopping_type_)); @@ -1062,7 +1062,7 @@ void HPOJobConfig::SetCachedSize(int size) const { _cached_size_.Set(size); } const HPOJobConfig& HPOJobConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); return *internal_default_instance(); } @@ -1432,8 +1432,8 @@ void HPOJobConfig::InternalSwap(HPOJobConfig* other) { } ::google::protobuf::Metadata HPOJobConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h similarity index 98% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h index c00ec5698..f578aa97f 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpojob.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h @@ -1,8 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpojob.proto +// source: flyteidl/plugins/sagemaker/hpo_job.proto -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto #include #include @@ -32,14 +32,14 @@ #include // IWYU pragma: export #include #include -#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" -#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" +#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" +#include "flyteidl/plugins/sagemaker/training_job.pb.h" // @@protoc_insertion_point(includes) #include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto // Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto { +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto { static const ::google::protobuf::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] @@ -50,7 +50,7 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto { static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto(); +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto(); namespace flyteidl { namespace plugins { namespace sagemaker { @@ -291,7 +291,7 @@ class HyperparameterTuningObjective final : ::google::protobuf::internal::ArenaStringPtr metric_name_; int objective_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; }; // ------------------------------------------------------------------- @@ -420,7 +420,7 @@ class HPOJob final : ::google::protobuf::int64 max_number_of_training_jobs_; ::google::protobuf::int64 max_parallel_training_jobs_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; }; // ------------------------------------------------------------------- @@ -611,7 +611,7 @@ class HPOJobConfig final : int tuning_strategy_; int training_job_early_stopping_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; }; // =================================================================== @@ -935,4 +935,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker:: // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpojob_2eproto +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.cc similarity index 80% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.cc index b39d9f1f5..7c840ad69 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.cc @@ -1,9 +1,9 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/parameterranges.proto +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto -#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" -#include "flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h" +#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" +#include "flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h" #include #include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h similarity index 77% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h index e7cdeb407..c314f50a3 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h @@ -1,10 +1,10 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/parameterranges.proto -#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto__INCLUDED +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto__INCLUDED -#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" +#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" #include #include @@ -46,4 +46,4 @@ namespace sagemaker { } // namespace flyteidl -#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto__INCLUDED +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc similarity index 92% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc index fd0c353da..57e32ef54 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/parameterranges.proto +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto -#include "flyteidl/plugins/sagemaker/parameterranges.pb.h" +#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" #include @@ -16,11 +16,11 @@ // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; namespace flyteidl { namespace plugins { namespace sagemaker { @@ -54,7 +54,7 @@ class ParameterRangesDefaultTypeInternal { } // namespace sagemaker } // namespace plugins } // namespace flyteidl -static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -65,10 +65,10 @@ static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_ ::flyteidl::plugins::sagemaker::ContinuousParameterRange::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}}; -static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -79,10 +79,10 @@ static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fp ::flyteidl::plugins::sagemaker::IntegerParameterRange::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}}; -static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -93,10 +93,10 @@ static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker ::flyteidl::plugins::sagemaker::CategoricalParameterRange::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}}; -static void InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +static void InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -107,13 +107,13 @@ static void InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fpar ::flyteidl::plugins::sagemaker::ParameterRangeOneOf::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, { - &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base, - &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base, - &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, { + &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, + &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,}}; -static void InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +static void InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -123,11 +123,11 @@ static void InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, { - &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, { + &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,}}; -static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -138,24 +138,24 @@ static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparamet ::flyteidl::plugins::sagemaker::ParameterRanges::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto}, { - &scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, { + &scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,}}; -void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[6]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = nullptr; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[6]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, _internal_metadata_), ~0u, // no _extensions_ @@ -221,63 +221,63 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_), }; -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, "flyteidl/plugins/sagemaker/parameterranges.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, "flyteidl/plugins/sagemaker/parameter_ranges.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, }; -const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[] = - "\n0flyteidl/plugins/sagemaker/parameterra" - "nges.proto\022\032flyteidl.plugins.sagemaker\"\215" - "\001\n\030ContinuousParameterRange\022\021\n\tmax_value" - "\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_typ" - "e\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hyp" - "erparameterScalingType\"\212\001\n\025IntegerParame" - "terRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_value" - "\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl." - "plugins.sagemaker.HyperparameterScalingT" - "ype\"+\n\031CategoricalParameterRange\022\016\n\006valu" - "es\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032cont" - "inuous_parameter_range\030\001 \001(\01324.flyteidl." - "plugins.sagemaker.ContinuousParameterRan" - "geH\000\022T\n\027integer_parameter_range\030\002 \001(\01321." - "flyteidl.plugins.sagemaker.IntegerParame" - "terRangeH\000\022\\\n\033categorical_parameter_rang" - "e\030\003 \001(\01325.flyteidl.plugins.sagemaker.Cat" - "egoricalParameterRangeH\000B\026\n\024parameter_ra" - "nge_type\"\335\001\n\017ParameterRanges\022_\n\023paramete" - "r_range_map\030\001 \003(\0132B.flyteidl.plugins.sag" - "emaker.ParameterRanges.ParameterRangeMap" - "Entry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001" - " \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins.s" - "agemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hype" - "rparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEA" - "R\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHM" - "IC\020\003B5Z3github.com/lyft/flyteidl/gen/pb-" - "go/flyteidl/pluginsb\006proto3" +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[] = + "\n1flyteidl/plugins/sagemaker/parameter_r" + "anges.proto\022\032flyteidl.plugins.sagemaker\"" + "\215\001\n\030ContinuousParameterRange\022\021\n\tmax_valu" + "e\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_ty" + "pe\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hy" + "perparameterScalingType\"\212\001\n\025IntegerParam" + "eterRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_valu" + "e\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl" + ".plugins.sagemaker.HyperparameterScaling" + "Type\"+\n\031CategoricalParameterRange\022\016\n\006val" + "ues\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032con" + "tinuous_parameter_range\030\001 \001(\01324.flyteidl" + ".plugins.sagemaker.ContinuousParameterRa" + "ngeH\000\022T\n\027integer_parameter_range\030\002 \001(\01321" + ".flyteidl.plugins.sagemaker.IntegerParam" + "eterRangeH\000\022\\\n\033categorical_parameter_ran" + "ge\030\003 \001(\01325.flyteidl.plugins.sagemaker.Ca" + "tegoricalParameterRangeH\000B\026\n\024parameter_r" + "ange_type\"\335\001\n\017ParameterRanges\022_\n\023paramet" + "er_range_map\030\001 \003(\0132B.flyteidl.plugins.sa" + "gemaker.ParameterRanges.ParameterRangeMa" + "pEntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030" + "\001 \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins." + "sagemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyp" + "erparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINE" + "AR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITH" + "MIC\020\003B5Z3github.com/lyft/flyteidl/gen/pb" + "-go/flyteidl/pluginsb\006proto3" ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, - "flyteidl/plugins/sagemaker/parameterranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, 1107, +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, + "flyteidl/plugins/sagemaker/parameter_ranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, 1108, }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto() { +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { static constexpr ::google::protobuf::internal::InitFunc deps[1] = { }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto, deps, 0); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, deps, 0); } // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto(); return true; }(); +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto(); return true; }(); namespace flyteidl { namespace plugins { namespace sagemaker { const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[0]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[0]; } bool HyperparameterScalingType_IsValid(int value) { switch (value) { @@ -339,7 +339,7 @@ void ContinuousParameterRange::SetCachedSize(int size) const { _cached_size_.Set(size); } const ContinuousParameterRange& ContinuousParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); return *internal_default_instance(); } @@ -636,8 +636,8 @@ void ContinuousParameterRange::InternalSwap(ContinuousParameterRange* other) { } ::google::protobuf::Metadata ContinuousParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; } @@ -688,7 +688,7 @@ void IntegerParameterRange::SetCachedSize(int size) const { _cached_size_.Set(size); } const IntegerParameterRange& IntegerParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); return *internal_default_instance(); } @@ -989,8 +989,8 @@ void IntegerParameterRange::InternalSwap(IntegerParameterRange* other) { } ::google::protobuf::Metadata IntegerParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; } @@ -1021,7 +1021,7 @@ CategoricalParameterRange::CategoricalParameterRange(const CategoricalParameterR void CategoricalParameterRange::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); } CategoricalParameterRange::~CategoricalParameterRange() { @@ -1036,7 +1036,7 @@ void CategoricalParameterRange::SetCachedSize(int size) const { _cached_size_.Set(size); } const CategoricalParameterRange& CategoricalParameterRange::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); return *internal_default_instance(); } @@ -1281,8 +1281,8 @@ void CategoricalParameterRange::InternalSwap(CategoricalParameterRange* other) { } ::google::protobuf::Metadata CategoricalParameterRange::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; } @@ -1395,7 +1395,7 @@ ParameterRangeOneOf::ParameterRangeOneOf(const ParameterRangeOneOf& from) void ParameterRangeOneOf::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); clear_has_parameter_range_type(); } @@ -1414,7 +1414,7 @@ void ParameterRangeOneOf::SetCachedSize(int size) const { _cached_size_.Set(size); } const ParameterRangeOneOf& ParameterRangeOneOf::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); return *internal_default_instance(); } @@ -1769,8 +1769,8 @@ void ParameterRangeOneOf::InternalSwap(ParameterRangeOneOf* other) { } ::google::protobuf::Metadata ParameterRangeOneOf::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; } @@ -1783,8 +1783,8 @@ void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom(const ParameterR MergeFromInternal(other); } ::google::protobuf::Metadata ParameterRanges_ParameterRangeMapEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[4]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[4]; } void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom( const ::google::protobuf::Message& other) { @@ -1838,7 +1838,7 @@ ParameterRanges::ParameterRanges(const ParameterRanges& from) void ParameterRanges::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); } ParameterRanges::~ParameterRanges() { @@ -1853,7 +1853,7 @@ void ParameterRanges::SetCachedSize(int size) const { _cached_size_.Set(size); } const ParameterRanges& ParameterRanges::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); return *internal_default_instance(); } @@ -2176,8 +2176,8 @@ void ParameterRanges::InternalSwap(ParameterRanges* other) { } ::google::protobuf::Metadata ParameterRanges::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h similarity index 99% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h index e4a9a0bac..2e9f9462b 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameterranges.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h @@ -1,8 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/parameterranges.proto +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto #include #include @@ -37,10 +37,10 @@ #include // @@protoc_insertion_point(includes) #include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto // Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto { +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto { static const ::google::protobuf::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] @@ -51,7 +51,7 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto { static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto(); +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto(); namespace flyteidl { namespace plugins { namespace sagemaker { @@ -237,7 +237,7 @@ class ContinuousParameterRange final : double min_value_; int scaling_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; }; // ------------------------------------------------------------------- @@ -363,7 +363,7 @@ class IntegerParameterRange final : ::google::protobuf::int64 min_value_; int scaling_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; }; // ------------------------------------------------------------------- @@ -491,7 +491,7 @@ class CategoricalParameterRange final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::RepeatedPtrField<::std::string> values_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; }; // ------------------------------------------------------------------- @@ -646,7 +646,7 @@ class ParameterRangeOneOf final : mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 _oneof_case_[1]; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; }; // ------------------------------------------------------------------- @@ -791,7 +791,7 @@ class ParameterRanges final : ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0 > parameter_range_map_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; }; // =================================================================== @@ -1160,4 +1160,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker:: // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameterranges_2eproto +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.cc similarity index 81% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.cc index 48c86fb46..e7b54a6ee 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.cc @@ -1,9 +1,9 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/trainingjob.proto +// source: flyteidl/plugins/sagemaker/training_job.proto -#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" -#include "flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h" +#include "flyteidl/plugins/sagemaker/training_job.pb.h" +#include "flyteidl/plugins/sagemaker/training_job.grpc.pb.h" #include #include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.h similarity index 77% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.h index b65b8a93d..802320ea7 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.h @@ -1,10 +1,10 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/trainingjob.proto -#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto__INCLUDED +// source: flyteidl/plugins/sagemaker/training_job.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto__INCLUDED -#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" +#include "flyteidl/plugins/sagemaker/training_job.pb.h" #include #include @@ -46,4 +46,4 @@ namespace sagemaker { } // namespace flyteidl -#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto__INCLUDED +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc similarity index 93% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc index 28518d539..d12672edc 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/trainingjob.proto +// source: flyteidl/plugins/sagemaker/training_job.proto -#include "flyteidl/plugins/sagemaker/trainingjob.pb.h" +#include "flyteidl/plugins/sagemaker/training_job.pb.h" #include @@ -16,9 +16,9 @@ // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; namespace flyteidl { namespace plugins { namespace sagemaker { @@ -45,7 +45,7 @@ class TrainingJobDefaultTypeInternal { } // namespace sagemaker } // namespace plugins } // namespace flyteidl -static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { +static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -56,10 +56,10 @@ static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugi ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; -static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { +static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -70,11 +70,11 @@ static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2f ::flyteidl::plugins::sagemaker::AlgorithmSpecification::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, { - &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, { + &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; -static void InitDefaultsTrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { +static void InitDefaultsTrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -85,10 +85,10 @@ static void InitDefaultsTrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrain ::flyteidl::plugins::sagemaker::TrainingJobConfig::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; -static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { +static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -99,10 +99,10 @@ static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrain ::flyteidl::plugins::sagemaker::StoppingCondition::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; -static void InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { +static void InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -113,24 +113,24 @@ static void InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob ::flyteidl::plugins::sagemaker::TrainingJob::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto}, { - &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base, - &scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, { + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base, + &scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; -void InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[5]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[2]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = nullptr; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[5]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, _internal_metadata_), ~0u, // no _extensions_ @@ -187,58 +187,59 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_), }; -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, "flyteidl/plugins/sagemaker/trainingjob.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, 5, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, "flyteidl/plugins/sagemaker/training_job.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 5, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, }; -const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[] = - "\n,flyteidl/plugins/sagemaker/trainingjob" - ".proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026A" - "lgorithmSpecification\0229\n\ninput_mode\030\001 \001(" - "\0162%.flyteidl.plugins.sagemaker.InputMode" - "\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plug" - "ins.sagemaker.AlgorithmName\022\031\n\021algorithm" - "_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 \003" - "(\0132C.flyteidl.plugins.sagemaker.Algorith" - "mSpecification.MetricDefinition\032/\n\020Metri" - "cDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t" - "\"]\n\021TrainingJobConfig\022\026\n\016instance_count\030" - "\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_s" - "ize_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n\026" - "max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wait" - "_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022S" - "\n\027algorithm_specification\030\001 \001(\01322.flytei" - "dl.plugins.sagemaker.AlgorithmSpecificat" - "ion\022J\n\023training_job_config\030\002 \001(\0132-.flyte" - "idl.plugins.sagemaker.TrainingJobConfig\022" - "\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004F" - "ILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUST" - "OM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fly" - "teidl/gen/pb-go/flyteidl/pluginsb\006proto3" +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[] = + "\n-flyteidl/plugins/sagemaker/training_jo" + "b.proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026" + "AlgorithmSpecification\0229\n\ninput_mode\030\001 \001" + "(\0162%.flyteidl.plugins.sagemaker.InputMod" + "e\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plu" + "gins.sagemaker.AlgorithmName\022\031\n\021algorith" + "m_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 " + "\003(\0132C.flyteidl.plugins.sagemaker.Algorit" + "hmSpecification.MetricDefinition\032/\n\020Metr" + "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(" + "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count" + "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_" + "size_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n" + "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai" + "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022" + "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + "idl.plugins.sagemaker.AlgorithmSpecifica" + "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt" + "eidl.plugins.sagemaker.TrainingJobConfig" + "\022\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004" + "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS" + "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl" + "yteidl/gen/pb-go/flyteidl/pluginsb\006proto" + "3" ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, - "flyteidl/plugins/sagemaker/trainingjob.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, 920, +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, + "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 921, }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto() { +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { static constexpr ::google::protobuf::internal::InitFunc deps[1] = { }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto, deps, 0); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, deps, 0); } // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto(); return true; }(); +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto(); return true; }(); namespace flyteidl { namespace plugins { namespace sagemaker { const ::google::protobuf::EnumDescriptor* InputMode_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[0]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[0]; } bool InputMode_IsValid(int value) { switch (value) { @@ -251,8 +252,8 @@ bool InputMode_IsValid(int value) { } const ::google::protobuf::EnumDescriptor* AlgorithmName_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[1]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[1]; } bool AlgorithmName_IsValid(int value) { switch (value) { @@ -300,7 +301,7 @@ AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition void AlgorithmSpecification_MetricDefinition::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -319,7 +320,7 @@ void AlgorithmSpecification_MetricDefinition::SetCachedSize(int size) const { _cached_size_.Set(size); } const AlgorithmSpecification_MetricDefinition& AlgorithmSpecification_MetricDefinition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); return *internal_default_instance(); } @@ -630,8 +631,8 @@ void AlgorithmSpecification_MetricDefinition::InternalSwap(AlgorithmSpecificatio } ::google::protobuf::Metadata AlgorithmSpecification_MetricDefinition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; } @@ -672,7 +673,7 @@ AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& fro void AlgorithmSpecification::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); algorithm_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&input_mode_, 0, static_cast( reinterpret_cast(&algorithm_name_) - @@ -692,7 +693,7 @@ void AlgorithmSpecification::SetCachedSize(int size) const { _cached_size_.Set(size); } const AlgorithmSpecification& AlgorithmSpecification::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); return *internal_default_instance(); } @@ -1086,8 +1087,8 @@ void AlgorithmSpecification::InternalSwap(AlgorithmSpecification* other) { } ::google::protobuf::Metadata AlgorithmSpecification::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; } @@ -1126,7 +1127,7 @@ TrainingJobConfig::TrainingJobConfig(const TrainingJobConfig& from) void TrainingJobConfig::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + &scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); instance_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&instance_count_, 0, static_cast( reinterpret_cast(&volume_size_in_gb_) - @@ -1146,7 +1147,7 @@ void TrainingJobConfig::SetCachedSize(int size) const { _cached_size_.Set(size); } const TrainingJobConfig& TrainingJobConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); return *internal_default_instance(); } @@ -1476,8 +1477,8 @@ void TrainingJobConfig::InternalSwap(TrainingJobConfig* other) { } ::google::protobuf::Metadata TrainingJobConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; } @@ -1527,7 +1528,7 @@ void StoppingCondition::SetCachedSize(int size) const { _cached_size_.Set(size); } const StoppingCondition& StoppingCondition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); return *internal_default_instance(); } @@ -1784,8 +1785,8 @@ void StoppingCondition::InternalSwap(StoppingCondition* other) { } ::google::protobuf::Metadata StoppingCondition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; } @@ -1842,7 +1843,7 @@ TrainingJob::TrainingJob(const TrainingJob& from) void TrainingJob::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); ::memset(&algorithm_specification_, 0, static_cast( reinterpret_cast(&interruptible_) - reinterpret_cast(&algorithm_specification_)) + sizeof(interruptible_)); @@ -1862,7 +1863,7 @@ void TrainingJob::SetCachedSize(int size) const { _cached_size_.Set(size); } const TrainingJob& TrainingJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); return *internal_default_instance(); } @@ -2181,8 +2182,8 @@ void TrainingJob::InternalSwap(TrainingJob* other) { } ::google::protobuf::Metadata TrainingJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h similarity index 99% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h index 11435a6aa..649108bd6 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/trainingjob.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h @@ -1,8 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/trainingjob.proto +// source: flyteidl/plugins/sagemaker/training_job.proto -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto #include #include @@ -34,10 +34,10 @@ #include // @@protoc_insertion_point(includes) #include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto // Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto { +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto { static const ::google::protobuf::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] @@ -48,7 +48,7 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto { static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto(); +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto(); namespace flyteidl { namespace plugins { namespace sagemaker { @@ -258,7 +258,7 @@ class AlgorithmSpecification_MetricDefinition final : ::google::protobuf::internal::ArenaStringPtr name_; ::google::protobuf::internal::ArenaStringPtr regex_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; // ------------------------------------------------------------------- @@ -407,7 +407,7 @@ class AlgorithmSpecification final : int input_mode_; int algorithm_name_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; // ------------------------------------------------------------------- @@ -541,7 +541,7 @@ class TrainingJobConfig final : ::google::protobuf::int64 instance_count_; ::google::protobuf::int64 volume_size_in_gb_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; // ------------------------------------------------------------------- @@ -660,7 +660,7 @@ class StoppingCondition final : ::google::protobuf::int64 max_runtime_in_seconds_; ::google::protobuf::int64 max_wait_time_in_seconds_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; // ------------------------------------------------------------------- @@ -792,7 +792,7 @@ class TrainingJob final : ::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config_; bool interruptible_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; // =================================================================== @@ -1301,4 +1301,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker:: // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftrainingjob_2eproto +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go similarity index 73% rename from gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go rename to gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go index ee220a5e0..60dd866e1 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/hpojob.proto +// source: flyteidl/plugins/sagemaker/hpo_job.proto package plugins @@ -42,7 +42,7 @@ func (x HyperparameterTuningObjective_HyperparameterTuningObjectiveType) String( } func (HyperparameterTuningObjective_HyperparameterTuningObjectiveType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_823bfe2a857513d9, []int{0, 0} + return fileDescriptor_50903433b4c088ac, []int{0, 0} } type HPOJobConfig_HyperparameterTuningStrategy int32 @@ -67,7 +67,7 @@ func (x HPOJobConfig_HyperparameterTuningStrategy) String() string { } func (HPOJobConfig_HyperparameterTuningStrategy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_823bfe2a857513d9, []int{2, 0} + return fileDescriptor_50903433b4c088ac, []int{2, 0} } type HPOJobConfig_TrainingJobEarlyStoppingType int32 @@ -92,7 +92,7 @@ func (x HPOJobConfig_TrainingJobEarlyStoppingType) String() string { } func (HPOJobConfig_TrainingJobEarlyStoppingType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_823bfe2a857513d9, []int{2, 1} + return fileDescriptor_50903433b4c088ac, []int{2, 1} } type HyperparameterTuningObjective struct { @@ -107,7 +107,7 @@ func (m *HyperparameterTuningObjective) Reset() { *m = HyperparameterTun func (m *HyperparameterTuningObjective) String() string { return proto.CompactTextString(m) } func (*HyperparameterTuningObjective) ProtoMessage() {} func (*HyperparameterTuningObjective) Descriptor() ([]byte, []int) { - return fileDescriptor_823bfe2a857513d9, []int{0} + return fileDescriptor_50903433b4c088ac, []int{0} } func (m *HyperparameterTuningObjective) XXX_Unmarshal(b []byte) error { @@ -155,7 +155,7 @@ func (m *HPOJob) Reset() { *m = HPOJob{} } func (m *HPOJob) String() string { return proto.CompactTextString(m) } func (*HPOJob) ProtoMessage() {} func (*HPOJob) Descriptor() ([]byte, []int) { - return fileDescriptor_823bfe2a857513d9, []int{1} + return fileDescriptor_50903433b4c088ac, []int{1} } func (m *HPOJob) XXX_Unmarshal(b []byte) error { @@ -211,7 +211,7 @@ func (m *HPOJobConfig) Reset() { *m = HPOJobConfig{} } func (m *HPOJobConfig) String() string { return proto.CompactTextString(m) } func (*HPOJobConfig) ProtoMessage() {} func (*HPOJobConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_823bfe2a857513d9, []int{2} + return fileDescriptor_50903433b4c088ac, []int{2} } func (m *HPOJobConfig) XXX_Unmarshal(b []byte) error { @@ -270,43 +270,43 @@ func init() { } func init() { - proto.RegisterFile("flyteidl/plugins/sagemaker/hpojob.proto", fileDescriptor_823bfe2a857513d9) -} - -var fileDescriptor_823bfe2a857513d9 = []byte{ - // 541 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x6f, 0xd3, 0x30, - 0x18, 0x5d, 0xd6, 0xaa, 0x8c, 0xaf, 0xa5, 0x44, 0x16, 0x88, 0xa9, 0x14, 0x51, 0x72, 0xd9, 0x24, - 0x20, 0x81, 0x4e, 0x48, 0x20, 0x90, 0x50, 0x07, 0x9d, 0xd6, 0x4a, 0x6d, 0xaa, 0xb4, 0x48, 0x30, - 0x0e, 0xc1, 0xe9, 0xdc, 0x34, 0x25, 0x89, 0x23, 0xc7, 0x45, 0xcb, 0x95, 0x03, 0x37, 0x7e, 0x15, - 0x3f, 0x80, 0xbf, 0x84, 0xe2, 0xa4, 0x59, 0x3a, 0x81, 0x11, 0x1c, 0x3f, 0xe7, 0xbd, 0x67, 0xbf, - 0x97, 0x67, 0xc3, 0xc1, 0xc2, 0x4f, 0x38, 0xf1, 0xce, 0x7d, 0x23, 0xf2, 0xd7, 0xae, 0x17, 0xc6, - 0x46, 0x8c, 0x5d, 0x12, 0xe0, 0xcf, 0x84, 0x19, 0xcb, 0x88, 0xae, 0xa8, 0xa3, 0x47, 0x8c, 0x72, - 0x8a, 0x5a, 0x1b, 0xa0, 0x9e, 0x03, 0xf5, 0x02, 0xd8, 0x7a, 0x22, 0x11, 0x89, 0x30, 0xc3, 0x01, - 0xe1, 0x84, 0x31, 0x1c, 0xba, 0x24, 0xce, 0xd4, 0x5a, 0x8f, 0x24, 0x0c, 0xce, 0xb0, 0x17, 0x7a, - 0xa1, 0x5b, 0xec, 0xad, 0x7d, 0xdb, 0x85, 0x7b, 0xa7, 0x49, 0x44, 0x58, 0x21, 0x36, 0x5b, 0xa7, - 0x08, 0xd3, 0x59, 0x91, 0x39, 0xf7, 0xbe, 0x10, 0xf4, 0x55, 0x81, 0x26, 0xdd, 0x4c, 0x36, 0x4f, - 0x22, 0xb2, 0xaf, 0x74, 0x94, 0xc3, 0x66, 0xf7, 0xa3, 0xfe, 0xe7, 0x73, 0xeb, 0x52, 0x4d, 0xf9, - 0xd7, 0x59, 0x12, 0x11, 0xeb, 0x06, 0x2d, 0x8f, 0xe8, 0x3e, 0xd4, 0x03, 0xc2, 0x99, 0x37, 0xb7, - 0x43, 0x1c, 0x90, 0xfd, 0xdd, 0x8e, 0x72, 0x78, 0xdd, 0x82, 0x6c, 0x69, 0x8c, 0x03, 0xa2, 0xbd, - 0x86, 0x07, 0x7f, 0x15, 0x45, 0x0d, 0xd8, 0x1b, 0x0d, 0xc6, 0x83, 0xd1, 0xe0, 0xac, 0xaf, 0xee, - 0x88, 0xa9, 0xf7, 0x3e, 0x9b, 0x14, 0xed, 0xa7, 0x02, 0xb5, 0xd3, 0x89, 0x39, 0xa4, 0x0e, 0x1a, - 0x42, 0x63, 0x13, 0x94, 0xbd, 0xa2, 0x8e, 0xb0, 0x5b, 0xef, 0x1e, 0xc8, 0xec, 0xce, 0x72, 0xfc, - 0x90, 0x3a, 0x56, 0x9d, 0x5f, 0x0e, 0xe8, 0x15, 0xdc, 0x0d, 0xf0, 0x85, 0x1d, 0xae, 0x03, 0x87, - 0x30, 0x9b, 0x2e, 0xec, 0xb2, 0x72, 0x2c, 0x8c, 0x54, 0xac, 0x3b, 0x01, 0xbe, 0x18, 0x0b, 0x84, - 0xb9, 0x28, 0x29, 0xc5, 0xe8, 0x25, 0xb4, 0x52, 0x76, 0x6a, 0xca, 0xf7, 0x89, 0x7f, 0x85, 0x5c, - 0x29, 0xc8, 0x93, 0x1c, 0x50, 0x26, 0x6b, 0x3f, 0xaa, 0xd0, 0xc8, 0x1c, 0xbd, 0xa1, 0xe1, 0xc2, - 0x73, 0xd1, 0x27, 0xb8, 0xbd, 0xdc, 0xca, 0xc8, 0xce, 0x8a, 0x93, 0x1b, 0x7c, 0x28, 0x33, 0x38, - 0xd9, 0x70, 0x2c, 0x41, 0xb1, 0x6e, 0x6d, 0x2b, 0x65, 0xab, 0x28, 0x84, 0x9b, 0x5c, 0xe4, 0x6e, - 0xc7, 0x9c, 0x61, 0x4e, 0xdc, 0x44, 0x38, 0x6c, 0x76, 0xfb, 0xd2, 0xae, 0x94, 0x0e, 0xf9, 0xdb, - 0x6a, 0x4c, 0x73, 0x31, 0xab, 0xc9, 0xb7, 0x66, 0x74, 0x0e, 0x6a, 0xbe, 0x5f, 0x51, 0x17, 0x91, - 0x4a, 0xbd, 0xfb, 0xe2, 0xbf, 0xcb, 0x69, 0xe5, 0x16, 0x2e, 0x6f, 0xc0, 0x77, 0x05, 0x3a, 0xe5, - 0xe4, 0x6d, 0x82, 0x99, 0x9f, 0xd8, 0x31, 0xa7, 0x51, 0x94, 0x2e, 0x89, 0x3b, 0x51, 0xfd, 0x47, - 0x9f, 0xa5, 0x5f, 0xd5, 0x4f, 0xe5, 0xa6, 0xb9, 0x9a, 0x68, 0x7f, 0x9b, 0x4b, 0xbe, 0x6a, 0xcf, - 0xa1, 0x2d, 0x4b, 0x29, 0x2d, 0xf6, 0x71, 0xef, 0x43, 0x7f, 0x3a, 0xe8, 0x8d, 0xd5, 0x1d, 0x04, - 0x50, 0xb3, 0x7a, 0xe3, 0xb7, 0xe6, 0x48, 0x55, 0xb4, 0xa7, 0xd0, 0x96, 0xed, 0x8b, 0xae, 0x41, - 0xc5, 0x3c, 0x39, 0x51, 0x77, 0xd0, 0x1e, 0x54, 0x7b, 0xef, 0x66, 0xa6, 0xaa, 0x1c, 0x3f, 0x3b, - 0x3b, 0x72, 0x3d, 0xbe, 0x5c, 0x3b, 0xfa, 0x9c, 0x06, 0x86, 0x9f, 0x2c, 0xb8, 0x51, 0x3c, 0x30, - 0x2e, 0x09, 0x8d, 0xc8, 0x79, 0xec, 0x52, 0xe3, 0xea, 0x9b, 0xe3, 0xd4, 0xc4, 0xf3, 0x72, 0xf4, - 0x2b, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xb3, 0xea, 0xdf, 0x05, 0x05, 0x00, 0x00, + proto.RegisterFile("flyteidl/plugins/sagemaker/hpo_job.proto", fileDescriptor_50903433b4c088ac) +} + +var fileDescriptor_50903433b4c088ac = []byte{ + // 539 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x8f, 0xd2, 0x40, + 0x18, 0xa5, 0x0b, 0xc1, 0xf5, 0x03, 0xb1, 0x99, 0x68, 0xdc, 0x20, 0x46, 0xec, 0x45, 0x12, 0xb3, + 0x6d, 0x96, 0x8d, 0x89, 0x46, 0x13, 0xc3, 0x2a, 0x9b, 0x85, 0x04, 0x4a, 0x0a, 0x26, 0xba, 0x1e, + 0xea, 0x94, 0x1d, 0x4a, 0xd7, 0xb6, 0xd3, 0x4c, 0x07, 0xb3, 0xbd, 0x7a, 0xf0, 0xe6, 0xaf, 0xf2, + 0x07, 0xf8, 0x97, 0x4c, 0x87, 0x52, 0xca, 0x46, 0xc7, 0xb8, 0xc7, 0x6f, 0xfa, 0xde, 0x9b, 0x79, + 0xaf, 0x6f, 0x06, 0x3a, 0x0b, 0x3f, 0xe1, 0xc4, 0xbb, 0xf0, 0x8d, 0xc8, 0x5f, 0xb9, 0x5e, 0x18, + 0x1b, 0x31, 0x76, 0x49, 0x80, 0xbf, 0x10, 0x66, 0x2c, 0x23, 0x6a, 0x5f, 0x52, 0x47, 0x8f, 0x18, + 0xe5, 0x14, 0x35, 0x37, 0x48, 0x3d, 0x43, 0xea, 0x39, 0xb2, 0x79, 0x24, 0x51, 0x89, 0x30, 0xc3, + 0x01, 0xe1, 0x84, 0xd9, 0x0c, 0x87, 0x2e, 0x89, 0xd7, 0x72, 0xcd, 0x43, 0x09, 0x85, 0x33, 0xec, + 0x85, 0x5e, 0xe8, 0x6e, 0x77, 0xd7, 0xbe, 0xef, 0xc1, 0xa3, 0xb3, 0x24, 0x22, 0x2c, 0x97, 0x9b, + 0xad, 0x52, 0x88, 0xe9, 0x5c, 0x92, 0x39, 0xf7, 0xbe, 0x12, 0xf4, 0x4d, 0x81, 0x06, 0xdd, 0x4c, + 0x36, 0x4f, 0x22, 0x72, 0xa0, 0xb4, 0x95, 0x4e, 0xa3, 0xfb, 0x49, 0xff, 0xfb, 0xc9, 0x75, 0xa9, + 0xa6, 0xfc, 0xeb, 0x2c, 0x89, 0x88, 0x75, 0x87, 0x16, 0x47, 0xf4, 0x18, 0x6a, 0x01, 0xe1, 0xcc, + 0x9b, 0xdb, 0x21, 0x0e, 0xc8, 0xc1, 0x5e, 0x5b, 0xe9, 0xdc, 0xb6, 0x60, 0xbd, 0x34, 0xc6, 0x01, + 0xd1, 0xde, 0xc0, 0x93, 0x7f, 0x8a, 0xa2, 0x3a, 0xec, 0x8f, 0x06, 0xe3, 0xc1, 0x68, 0x70, 0xde, + 0x57, 0x4b, 0x62, 0xea, 0x7d, 0x58, 0x4f, 0x8a, 0xf6, 0x4b, 0x81, 0xea, 0xd9, 0xc4, 0x1c, 0x52, + 0x07, 0x0d, 0xa1, 0x5e, 0x4c, 0x4a, 0xd8, 0xad, 0x75, 0x9f, 0xca, 0xec, 0xce, 0x32, 0xfc, 0x90, + 0x3a, 0x56, 0x8d, 0x6f, 0x07, 0xf4, 0x1a, 0x1e, 0x06, 0xf8, 0xca, 0x0e, 0x57, 0x81, 0x43, 0x98, + 0x4d, 0x17, 0x76, 0x51, 0x39, 0x16, 0x46, 0xca, 0xd6, 0x83, 0x00, 0x5f, 0x8d, 0x05, 0xc2, 0x5c, + 0x14, 0x94, 0x62, 0xf4, 0x0a, 0x9a, 0x29, 0x3b, 0x35, 0xe5, 0xfb, 0xc4, 0xbf, 0x46, 0x2e, 0xe7, + 0xe4, 0x49, 0x06, 0x28, 0x92, 0xb5, 0x9f, 0x15, 0xa8, 0xaf, 0x1d, 0xbd, 0xa5, 0xe1, 0xc2, 0x73, + 0xd1, 0x67, 0xb8, 0xbf, 0xdc, 0xc9, 0x28, 0x6b, 0x4e, 0x66, 0xf0, 0x99, 0xcc, 0xe0, 0x64, 0xc3, + 0xb1, 0x04, 0xc5, 0xba, 0xb7, 0xab, 0xb4, 0x5e, 0x45, 0x21, 0xdc, 0xe5, 0x22, 0x77, 0x3b, 0xe6, + 0x0c, 0x73, 0xe2, 0x26, 0xc2, 0x61, 0xa3, 0xdb, 0x97, 0x76, 0xa5, 0x70, 0xc8, 0x3f, 0x56, 0x63, + 0x9a, 0x89, 0x59, 0x0d, 0xbe, 0x33, 0xa3, 0x0b, 0x50, 0xb3, 0xfd, 0xf2, 0xba, 0x88, 0x54, 0x6a, + 0xdd, 0x97, 0x37, 0x2e, 0xa7, 0x95, 0x59, 0xd8, 0xde, 0x80, 0x1f, 0x0a, 0xb4, 0x8b, 0xc9, 0xdb, + 0x04, 0x33, 0x3f, 0xb1, 0x63, 0x4e, 0xa3, 0x28, 0x5d, 0x12, 0x77, 0xa2, 0xf2, 0x9f, 0x3e, 0x0b, + 0xbf, 0xaa, 0x9f, 0xca, 0x4d, 0x33, 0x35, 0xd1, 0xfe, 0x16, 0x97, 0x7c, 0xd5, 0x5e, 0x40, 0x4b, + 0x96, 0x52, 0x5a, 0xec, 0x93, 0xde, 0xc7, 0xfe, 0x74, 0xd0, 0x1b, 0xab, 0x25, 0x04, 0x50, 0xb5, + 0x7a, 0xe3, 0x77, 0xe6, 0x48, 0x55, 0xb4, 0x23, 0x68, 0xc9, 0xf6, 0x45, 0xb7, 0xa0, 0x6c, 0x9e, + 0x9e, 0xaa, 0x25, 0xb4, 0x0f, 0x95, 0xde, 0xfb, 0x99, 0xa9, 0x2a, 0x27, 0xcf, 0xcf, 0x8f, 0x5d, + 0x8f, 0x2f, 0x57, 0x8e, 0x3e, 0xa7, 0x81, 0xe1, 0x27, 0x0b, 0x6e, 0xe4, 0x2f, 0x8c, 0x4b, 0x42, + 0x23, 0x72, 0x0e, 0x5d, 0x6a, 0x5c, 0x7f, 0x74, 0x9c, 0xaa, 0x78, 0x5e, 0x8e, 0x7f, 0x07, 0x00, + 0x00, 0xff, 0xff, 0xc8, 0x08, 0xb2, 0xe9, 0x08, 0x05, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go similarity index 97% rename from gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go rename to gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go index 684e4caad..8ceadb5da 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpojob.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-validate. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/hpojob.proto +// source: flyteidl/plugins/sagemaker/hpo_job.proto package plugins @@ -34,7 +34,7 @@ var ( ) // define the regex for a UUID once up-front -var _hpojob_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") +var _hpo_job_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") // Validate checks the field values on HyperparameterTuningObjective with the // rules defined in the proto definition for this message. If any rules are diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go similarity index 78% rename from gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go rename to gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go index ad109c6f2..2f37913f8 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/parameterranges.proto +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto package plugins @@ -48,7 +48,7 @@ func (x HyperparameterScalingType) String() string { } func (HyperparameterScalingType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d87fa566d23b1e82, []int{0} + return fileDescriptor_5f31fcc87eba0a70, []int{0} } type ContinuousParameterRange struct { @@ -64,7 +64,7 @@ func (m *ContinuousParameterRange) Reset() { *m = ContinuousParameterRan func (m *ContinuousParameterRange) String() string { return proto.CompactTextString(m) } func (*ContinuousParameterRange) ProtoMessage() {} func (*ContinuousParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_d87fa566d23b1e82, []int{0} + return fileDescriptor_5f31fcc87eba0a70, []int{0} } func (m *ContinuousParameterRange) XXX_Unmarshal(b []byte) error { @@ -119,7 +119,7 @@ func (m *IntegerParameterRange) Reset() { *m = IntegerParameterRange{} } func (m *IntegerParameterRange) String() string { return proto.CompactTextString(m) } func (*IntegerParameterRange) ProtoMessage() {} func (*IntegerParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_d87fa566d23b1e82, []int{1} + return fileDescriptor_5f31fcc87eba0a70, []int{1} } func (m *IntegerParameterRange) XXX_Unmarshal(b []byte) error { @@ -172,7 +172,7 @@ func (m *CategoricalParameterRange) Reset() { *m = CategoricalParameterR func (m *CategoricalParameterRange) String() string { return proto.CompactTextString(m) } func (*CategoricalParameterRange) ProtoMessage() {} func (*CategoricalParameterRange) Descriptor() ([]byte, []int) { - return fileDescriptor_d87fa566d23b1e82, []int{2} + return fileDescriptor_5f31fcc87eba0a70, []int{2} } func (m *CategoricalParameterRange) XXX_Unmarshal(b []byte) error { @@ -215,7 +215,7 @@ func (m *ParameterRangeOneOf) Reset() { *m = ParameterRangeOneOf{} } func (m *ParameterRangeOneOf) String() string { return proto.CompactTextString(m) } func (*ParameterRangeOneOf) ProtoMessage() {} func (*ParameterRangeOneOf) Descriptor() ([]byte, []int) { - return fileDescriptor_d87fa566d23b1e82, []int{3} + return fileDescriptor_5f31fcc87eba0a70, []int{3} } func (m *ParameterRangeOneOf) XXX_Unmarshal(b []byte) error { @@ -306,7 +306,7 @@ func (m *ParameterRanges) Reset() { *m = ParameterRanges{} } func (m *ParameterRanges) String() string { return proto.CompactTextString(m) } func (*ParameterRanges) ProtoMessage() {} func (*ParameterRanges) Descriptor() ([]byte, []int) { - return fileDescriptor_d87fa566d23b1e82, []int{4} + return fileDescriptor_5f31fcc87eba0a70, []int{4} } func (m *ParameterRanges) XXX_Unmarshal(b []byte) error { @@ -345,41 +345,41 @@ func init() { } func init() { - proto.RegisterFile("flyteidl/plugins/sagemaker/parameterranges.proto", fileDescriptor_d87fa566d23b1e82) -} - -var fileDescriptor_d87fa566d23b1e82 = []byte{ - // 503 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xd1, 0x6e, 0x12, 0x41, - 0x14, 0x65, 0x58, 0x6d, 0xca, 0xc5, 0x58, 0x9c, 0x5a, 0x04, 0xfa, 0x42, 0x78, 0x22, 0x26, 0xee, - 0x2a, 0xd8, 0xc4, 0xf8, 0x06, 0x64, 0x23, 0x24, 0xad, 0x98, 0x29, 0x36, 0xa6, 0x2f, 0x64, 0x58, - 0x87, 0x75, 0xc2, 0xee, 0xec, 0x64, 0x76, 0x56, 0xbb, 0x9f, 0xe0, 0xb7, 0x98, 0xf8, 0x85, 0x3e, - 0x18, 0x06, 0x0a, 0x76, 0xcb, 0xa2, 0x4f, 0xbe, 0xed, 0x9d, 0x7b, 0xcf, 0x9e, 0x33, 0x73, 0x4e, - 0x2e, 0xbc, 0x9c, 0x07, 0xa9, 0x66, 0xfc, 0x73, 0xe0, 0xc8, 0x20, 0xf1, 0xb9, 0x88, 0x9d, 0x98, - 0xfa, 0x2c, 0xa4, 0x0b, 0xa6, 0x1c, 0x49, 0x15, 0x0d, 0x99, 0x66, 0x4a, 0x51, 0xe1, 0xb3, 0xd8, - 0x96, 0x2a, 0xd2, 0x11, 0x6e, 0xdc, 0x22, 0xec, 0x35, 0xc2, 0xde, 0x20, 0x5a, 0x3f, 0x11, 0xd4, - 0x06, 0x91, 0xd0, 0x5c, 0x24, 0x51, 0x12, 0x7f, 0xb8, 0xc5, 0x93, 0x25, 0x1e, 0x9f, 0x42, 0x29, - 0xa4, 0x37, 0xd3, 0xaf, 0x34, 0x48, 0x58, 0x0d, 0x35, 0x51, 0x1b, 0x91, 0xc3, 0x90, 0xde, 0x5c, - 0x2d, 0x6b, 0xd3, 0xe4, 0x62, 0xdd, 0x2c, 0xae, 0x9b, 0x5c, 0xac, 0x9a, 0x9f, 0xe0, 0x51, 0xec, - 0xd1, 0x80, 0x0b, 0x7f, 0xaa, 0x53, 0xc9, 0x6a, 0x56, 0x13, 0xb5, 0x1f, 0x77, 0xce, 0xec, 0x7c, - 0x25, 0xf6, 0x30, 0x95, 0x4c, 0x6d, 0x2e, 0x70, 0xb9, 0x42, 0x4f, 0x52, 0xc9, 0x48, 0x39, 0xde, - 0x16, 0xad, 0x1f, 0x08, 0x4e, 0x46, 0x42, 0x33, 0x9f, 0xa9, 0xbf, 0xa9, 0xb5, 0xf6, 0xa9, 0xb5, - 0xfe, 0x8b, 0xda, 0x2e, 0xd4, 0x07, 0x54, 0x33, 0x3f, 0x52, 0xdc, 0xa3, 0x41, 0x46, 0x70, 0x15, - 0x0e, 0x8c, 0x9e, 0xb8, 0x86, 0x9a, 0x56, 0xbb, 0x44, 0xd6, 0x55, 0xeb, 0xbb, 0x05, 0xc7, 0x77, - 0x47, 0xc7, 0x82, 0x8d, 0xe7, 0x58, 0x43, 0xc3, 0xdb, 0x58, 0x35, 0xdd, 0x90, 0x4f, 0x8d, 0xd9, - 0xe6, 0xc6, 0xe5, 0xce, 0xeb, 0x7d, 0xa2, 0xf3, 0x8c, 0x1e, 0x16, 0x48, 0xcd, 0xcb, 0x0b, 0xc1, - 0x02, 0x9e, 0xf1, 0xd5, 0x7b, 0xdf, 0xa3, 0x2c, 0x1a, 0xca, 0x57, 0xfb, 0x28, 0x77, 0x5a, 0x35, - 0x2c, 0x90, 0x13, 0xbe, 0xd3, 0xc3, 0x6f, 0x70, 0xea, 0x6d, 0xdf, 0xeb, 0x1e, 0xa1, 0x65, 0x08, - 0xf7, 0x1a, 0x93, 0xfb, 0xdc, 0xc3, 0x02, 0xa9, 0x7b, 0x79, 0xcd, 0x7e, 0x15, 0x9e, 0x66, 0xc8, - 0x4c, 0x14, 0x5a, 0xbf, 0x10, 0x1c, 0xdd, 0x1d, 0x8d, 0xb1, 0x82, 0xe3, 0xec, 0x6c, 0x48, 0xa5, - 0x31, 0xb1, 0xdc, 0xe9, 0xef, 0x13, 0x97, 0xf9, 0x53, 0xa6, 0xbe, 0xa0, 0xd2, 0x15, 0x5a, 0xa5, - 0xe4, 0x89, 0xcc, 0x9e, 0x37, 0x12, 0xa8, 0xee, 0x1e, 0xc6, 0x15, 0xb0, 0x16, 0x2c, 0x35, 0xf6, - 0x97, 0xc8, 0xf2, 0x13, 0xbb, 0xf0, 0x70, 0x9b, 0xf3, 0x72, 0xc7, 0xf9, 0x77, 0x45, 0x26, 0x67, - 0x64, 0x85, 0x7e, 0x5b, 0x7c, 0x83, 0x9e, 0x5f, 0x43, 0x3d, 0x37, 0xe9, 0xf8, 0x10, 0x1e, 0xf4, - 0x3e, 0x4e, 0xc6, 0x95, 0x02, 0x06, 0x38, 0x38, 0x1f, 0xbd, 0x77, 0x7b, 0xa4, 0x82, 0xf0, 0x11, - 0x94, 0xcf, 0xc7, 0xef, 0x7a, 0x64, 0x34, 0x19, 0x5e, 0x8c, 0x06, 0x95, 0x22, 0xae, 0x02, 0x26, - 0xee, 0x95, 0x4b, 0x2e, 0xdd, 0x3f, 0xcf, 0xad, 0xfe, 0xd9, 0x75, 0xd7, 0xe7, 0xfa, 0x4b, 0x32, - 0xb3, 0xbd, 0x28, 0x74, 0x82, 0x74, 0xae, 0x9d, 0xcd, 0x6a, 0xf3, 0x99, 0x70, 0xe4, 0xec, 0x85, - 0x1f, 0x39, 0xd9, 0x6d, 0x37, 0x3b, 0x30, 0x4b, 0xad, 0xfb, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xaf, - 0x48, 0xf7, 0xbe, 0x08, 0x05, 0x00, 0x00, + proto.RegisterFile("flyteidl/plugins/sagemaker/parameter_ranges.proto", fileDescriptor_5f31fcc87eba0a70) +} + +var fileDescriptor_5f31fcc87eba0a70 = []byte{ + // 502 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0x41, 0x6f, 0x12, 0x41, + 0x14, 0x66, 0x58, 0x6d, 0xca, 0xc3, 0x58, 0x9c, 0x5a, 0x04, 0x7a, 0x21, 0x9c, 0x88, 0x89, 0xbb, + 0x29, 0xd8, 0xc4, 0x78, 0x03, 0xb2, 0x11, 0x92, 0x56, 0xcc, 0x14, 0x1b, 0xd3, 0x0b, 0x19, 0xd6, + 0x61, 0x9d, 0xb0, 0x3b, 0x3b, 0x99, 0x9d, 0xd5, 0xee, 0x4f, 0xf0, 0xb7, 0x98, 0xf8, 0x0b, 0x3d, + 0x18, 0x06, 0x0a, 0x76, 0xcb, 0xa2, 0x27, 0x6f, 0xf3, 0xe6, 0xbd, 0x6f, 0xbe, 0x6f, 0xde, 0xf7, + 0xf2, 0xe0, 0x6c, 0x1e, 0xa4, 0x9a, 0xf1, 0xcf, 0x81, 0x23, 0x83, 0xc4, 0xe7, 0x22, 0x76, 0x62, + 0xea, 0xb3, 0x90, 0x2e, 0x98, 0x72, 0x24, 0x55, 0x34, 0x64, 0x9a, 0xa9, 0xa9, 0xa2, 0xc2, 0x67, + 0xb1, 0x2d, 0x55, 0xa4, 0x23, 0xdc, 0xb8, 0x83, 0xd8, 0x6b, 0x88, 0xbd, 0x81, 0xb4, 0x7e, 0x22, + 0xa8, 0x0d, 0x22, 0xa1, 0xb9, 0x48, 0xa2, 0x24, 0xfe, 0x70, 0xf7, 0x00, 0x59, 0xe2, 0xf1, 0x29, + 0x94, 0x42, 0x7a, 0x3b, 0xfd, 0x4a, 0x83, 0x84, 0xd5, 0x50, 0x13, 0xb5, 0x11, 0x39, 0x0c, 0xe9, + 0xed, 0xf5, 0x32, 0x36, 0x49, 0x2e, 0xd6, 0xc9, 0xe2, 0x3a, 0xc9, 0xc5, 0x2a, 0xf9, 0x09, 0x9e, + 0xc4, 0x1e, 0x0d, 0xb8, 0xf0, 0xa7, 0x3a, 0x95, 0xac, 0x66, 0x35, 0x51, 0xfb, 0x69, 0xe7, 0xdc, + 0xce, 0x57, 0x62, 0x0f, 0x53, 0xc9, 0xd4, 0xe6, 0x07, 0x57, 0x2b, 0xf4, 0x24, 0x95, 0x8c, 0x94, + 0xe3, 0x6d, 0xd0, 0xfa, 0x81, 0xe0, 0x64, 0x24, 0x34, 0xf3, 0x99, 0xfa, 0x9b, 0x5a, 0x6b, 0x9f, + 0x5a, 0xeb, 0xbf, 0xa8, 0xed, 0x42, 0x7d, 0x40, 0x35, 0xf3, 0x23, 0xc5, 0x3d, 0x1a, 0x64, 0x04, + 0x57, 0xe1, 0xc0, 0xe8, 0x89, 0x6b, 0xa8, 0x69, 0xb5, 0x4b, 0x64, 0x1d, 0xb5, 0xbe, 0x5b, 0x70, + 0x7c, 0xbf, 0x74, 0x2c, 0xd8, 0x78, 0x8e, 0x35, 0x34, 0xbc, 0x8d, 0x55, 0xd3, 0x8c, 0xd9, 0xe6, + 0xc7, 0xe5, 0xce, 0xeb, 0x7d, 0xa2, 0xf3, 0x8c, 0x1e, 0x16, 0x48, 0xcd, 0xcb, 0x1b, 0x82, 0x05, + 0xbc, 0xe0, 0xab, 0x7e, 0x3f, 0xa0, 0x2c, 0x1a, 0xca, 0xb3, 0x7d, 0x94, 0x3b, 0xad, 0x1a, 0x16, + 0xc8, 0x09, 0xdf, 0xe9, 0xe1, 0x37, 0x38, 0xf5, 0xb6, 0xfd, 0x7a, 0x40, 0x68, 0x19, 0xc2, 0xbd, + 0xc6, 0xe4, 0xb6, 0x7b, 0x58, 0x20, 0x75, 0x2f, 0x2f, 0xd9, 0xaf, 0xc2, 0xf3, 0x0c, 0x99, 0x19, + 0x85, 0xd6, 0x2f, 0x04, 0x47, 0xf7, 0x4b, 0x63, 0xac, 0xe0, 0x38, 0x5b, 0x1b, 0x52, 0x69, 0x4c, + 0x2c, 0x77, 0xfa, 0xfb, 0xc4, 0x65, 0x5e, 0xca, 0xc4, 0x97, 0x54, 0xba, 0x42, 0xab, 0x94, 0x3c, + 0x93, 0xd9, 0xfb, 0x46, 0x02, 0xd5, 0xdd, 0xc5, 0xb8, 0x02, 0xd6, 0x82, 0xa5, 0xc6, 0xfe, 0x12, + 0x59, 0x1e, 0xb1, 0x0b, 0x8f, 0xb7, 0x73, 0x5e, 0xee, 0x38, 0xff, 0xae, 0xc8, 0xcc, 0x19, 0x59, + 0xa1, 0xdf, 0x16, 0xdf, 0xa0, 0x97, 0x37, 0x50, 0xcf, 0x9d, 0x74, 0x7c, 0x08, 0x8f, 0x7a, 0x1f, + 0x27, 0xe3, 0x4a, 0x01, 0x03, 0x1c, 0x5c, 0x8c, 0xde, 0xbb, 0x3d, 0x52, 0x41, 0xf8, 0x08, 0xca, + 0x17, 0xe3, 0x77, 0x3d, 0x32, 0x9a, 0x0c, 0x2f, 0x47, 0x83, 0x4a, 0x11, 0x57, 0x01, 0x13, 0xf7, + 0xda, 0x25, 0x57, 0xee, 0x9f, 0xf7, 0x56, 0xff, 0xfc, 0xa6, 0xeb, 0x73, 0xfd, 0x25, 0x99, 0xd9, + 0x5e, 0x14, 0x3a, 0x41, 0x3a, 0xd7, 0xce, 0x66, 0xb7, 0xf9, 0x4c, 0x38, 0x72, 0xf6, 0xca, 0x8f, + 0x9c, 0xec, 0xba, 0x9b, 0x1d, 0x98, 0xa5, 0xd6, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x12, 0xe0, + 0xd5, 0x84, 0x09, 0x05, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go similarity index 98% rename from gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go rename to gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go index 8c1fd2c6f..89b7288a1 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/parameterranges.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-validate. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/parameterranges.proto +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto package plugins @@ -34,7 +34,7 @@ var ( ) // define the regex for a UUID once up-front -var _parameterranges_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") +var _parameter_ranges_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") // Validate checks the field values on ContinuousParameterRange with the rules // defined in the proto definition for this message. If any rules are diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go similarity index 74% rename from gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go rename to gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go index 36886972f..58c7b9ca6 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/trainingjob.proto +// source: flyteidl/plugins/sagemaker/training_job.proto package plugins @@ -42,7 +42,7 @@ func (x InputMode) String() string { } func (InputMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_030d49acd9e1f6e1, []int{0} + return fileDescriptor_6a68f64d8fd9fe30, []int{0} } type AlgorithmName int32 @@ -67,7 +67,7 @@ func (x AlgorithmName) String() string { } func (AlgorithmName) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_030d49acd9e1f6e1, []int{1} + return fileDescriptor_6a68f64d8fd9fe30, []int{1} } type AlgorithmSpecification struct { @@ -84,7 +84,7 @@ func (m *AlgorithmSpecification) Reset() { *m = AlgorithmSpecification{} func (m *AlgorithmSpecification) String() string { return proto.CompactTextString(m) } func (*AlgorithmSpecification) ProtoMessage() {} func (*AlgorithmSpecification) Descriptor() ([]byte, []int) { - return fileDescriptor_030d49acd9e1f6e1, []int{0} + return fileDescriptor_6a68f64d8fd9fe30, []int{0} } func (m *AlgorithmSpecification) XXX_Unmarshal(b []byte) error { @@ -147,7 +147,7 @@ func (m *AlgorithmSpecification_MetricDefinition) Reset() { func (m *AlgorithmSpecification_MetricDefinition) String() string { return proto.CompactTextString(m) } func (*AlgorithmSpecification_MetricDefinition) ProtoMessage() {} func (*AlgorithmSpecification_MetricDefinition) Descriptor() ([]byte, []int) { - return fileDescriptor_030d49acd9e1f6e1, []int{0, 0} + return fileDescriptor_6a68f64d8fd9fe30, []int{0, 0} } func (m *AlgorithmSpecification_MetricDefinition) XXX_Unmarshal(b []byte) error { @@ -195,7 +195,7 @@ func (m *TrainingJobConfig) Reset() { *m = TrainingJobConfig{} } func (m *TrainingJobConfig) String() string { return proto.CompactTextString(m) } func (*TrainingJobConfig) ProtoMessage() {} func (*TrainingJobConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_030d49acd9e1f6e1, []int{1} + return fileDescriptor_6a68f64d8fd9fe30, []int{1} } func (m *TrainingJobConfig) XXX_Unmarshal(b []byte) error { @@ -249,7 +249,7 @@ func (m *StoppingCondition) Reset() { *m = StoppingCondition{} } func (m *StoppingCondition) String() string { return proto.CompactTextString(m) } func (*StoppingCondition) ProtoMessage() {} func (*StoppingCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_030d49acd9e1f6e1, []int{2} + return fileDescriptor_6a68f64d8fd9fe30, []int{2} } func (m *StoppingCondition) XXX_Unmarshal(b []byte) error { @@ -297,7 +297,7 @@ func (m *TrainingJob) Reset() { *m = TrainingJob{} } func (m *TrainingJob) String() string { return proto.CompactTextString(m) } func (*TrainingJob) ProtoMessage() {} func (*TrainingJob) Descriptor() ([]byte, []int) { - return fileDescriptor_030d49acd9e1f6e1, []int{3} + return fileDescriptor_6a68f64d8fd9fe30, []int{3} } func (m *TrainingJob) XXX_Unmarshal(b []byte) error { @@ -350,46 +350,46 @@ func init() { } func init() { - proto.RegisterFile("flyteidl/plugins/sagemaker/trainingjob.proto", fileDescriptor_030d49acd9e1f6e1) -} - -var fileDescriptor_030d49acd9e1f6e1 = []byte{ - // 590 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x4f, 0xdb, 0x4c, - 0x10, 0xc5, 0x24, 0x1f, 0x1f, 0x99, 0x94, 0x28, 0x59, 0x10, 0x8d, 0xb8, 0x34, 0x4a, 0x8b, 0x14, - 0x68, 0xb1, 0xa5, 0xa0, 0xf6, 0xd4, 0x4b, 0x09, 0x14, 0xa5, 0x2a, 0x05, 0x39, 0xe9, 0x0f, 0x55, - 0xaa, 0x56, 0x6b, 0x67, 0x63, 0x06, 0xbc, 0xbb, 0x96, 0xbd, 0xa6, 0x09, 0xa7, 0x9e, 0x7b, 0xe9, - 0x9f, 0xdc, 0x2a, 0x9b, 0xd8, 0x84, 0xd0, 0xa2, 0xf6, 0x36, 0xfb, 0x66, 0xe6, 0xed, 0xcc, 0x3c, - 0xcd, 0xc0, 0xb3, 0x61, 0x38, 0xd6, 0x1c, 0x07, 0xa1, 0x13, 0x85, 0x69, 0x80, 0x32, 0x71, 0x12, - 0x16, 0x70, 0xc1, 0x2e, 0x79, 0xec, 0xe8, 0x98, 0xa1, 0x44, 0x19, 0x5c, 0x28, 0xcf, 0x8e, 0x62, - 0xa5, 0x15, 0xd9, 0xca, 0xa2, 0xed, 0x59, 0xb4, 0x9d, 0x47, 0x37, 0x7f, 0x14, 0x60, 0xf3, 0x55, - 0x18, 0xa8, 0x18, 0xf5, 0xb9, 0xe8, 0x45, 0xdc, 0xc7, 0x21, 0xfa, 0x4c, 0xa3, 0x92, 0xe4, 0x10, - 0x00, 0x65, 0x94, 0x6a, 0x2a, 0xd4, 0x80, 0xd7, 0xad, 0x86, 0xd5, 0xaa, 0xb4, 0xb7, 0xed, 0x3f, - 0x73, 0xd9, 0xdd, 0x49, 0xf4, 0x89, 0x1a, 0x70, 0xb7, 0x84, 0x99, 0x49, 0xce, 0xa0, 0xc2, 0x32, - 0x7e, 0x2a, 0x99, 0xe0, 0xf5, 0x65, 0xc3, 0xb4, 0x73, 0x1f, 0x53, 0x5e, 0xd1, 0x3b, 0x26, 0xb8, - 0xbb, 0xc6, 0xe6, 0x9f, 0xe4, 0x29, 0xd4, 0x6e, 0x18, 0xaf, 0x78, 0x9c, 0xa0, 0x92, 0xf5, 0x42, - 0xc3, 0x6a, 0x95, 0xdc, 0x6a, 0xee, 0xf8, 0x30, 0xc5, 0x49, 0x0c, 0x44, 0x70, 0x1d, 0xa3, 0x4f, - 0x07, 0x7c, 0x88, 0x12, 0x27, 0x9d, 0x25, 0xf5, 0x62, 0xa3, 0xd0, 0x2a, 0xb7, 0x3b, 0x7f, 0x55, - 0xc2, 0xad, 0xa1, 0xd8, 0x27, 0x86, 0xec, 0x30, 0xe7, 0x72, 0x6b, 0x62, 0x01, 0x49, 0xb6, 0x5e, - 0x42, 0x75, 0x31, 0x8c, 0x10, 0x28, 0x9a, 0xe6, 0x2d, 0x53, 0xa7, 0xb1, 0xc9, 0x06, 0xfc, 0x17, - 0xf3, 0x80, 0x8f, 0xcc, 0x44, 0x4a, 0xee, 0xf4, 0xd1, 0xfc, 0x6e, 0x41, 0xad, 0x3f, 0xd3, 0xf0, - 0x8d, 0xf2, 0x3a, 0x4a, 0x0e, 0x31, 0x20, 0xdb, 0x50, 0x41, 0x99, 0x68, 0x26, 0x7d, 0x4e, 0x7d, - 0x95, 0x4a, 0x6d, 0x98, 0x0a, 0xee, 0x5a, 0x86, 0x76, 0x26, 0x20, 0x79, 0x0c, 0x39, 0x40, 0xf5, - 0x38, 0xe2, 0x33, 0xea, 0x07, 0x19, 0xd8, 0x1f, 0x47, 0x9c, 0xec, 0x40, 0xed, 0x4a, 0x85, 0xa9, - 0xe0, 0x34, 0xc1, 0x6b, 0x4e, 0x51, 0xd2, 0xc0, 0x33, 0x03, 0x2c, 0xb8, 0x95, 0xa9, 0xa3, 0x87, - 0xd7, 0xbc, 0x2b, 0x8f, 0xbd, 0xe6, 0x37, 0x0b, 0x6a, 0x3d, 0xad, 0xa2, 0x08, 0x65, 0xd0, 0x51, - 0x72, 0x30, 0x6d, 0x66, 0x1f, 0x36, 0x05, 0x1b, 0xd1, 0x38, 0x95, 0x1a, 0x85, 0x21, 0x48, 0xb8, - 0xaf, 0xe4, 0x20, 0x99, 0x15, 0xb5, 0x2e, 0xd8, 0xc8, 0x9d, 0x3a, 0xbb, 0xb2, 0x37, 0x75, 0x91, - 0x17, 0x50, 0x9f, 0x24, 0x7d, 0x65, 0xa8, 0xe9, 0x62, 0xda, 0xb2, 0x49, 0xdb, 0x10, 0x6c, 0xf4, - 0x91, 0xa1, 0xee, 0xcf, 0xe7, 0x35, 0x7f, 0x5a, 0x50, 0x9e, 0x9b, 0x07, 0xb9, 0x84, 0x87, 0x37, - 0xf2, 0x27, 0xf3, 0xe2, 0x98, 0xdf, 0xcb, 0xed, 0xf6, 0xbf, 0xcb, 0xea, 0x6e, 0xb2, 0xdf, 0xef, - 0xc0, 0x17, 0x58, 0xcf, 0xf6, 0x89, 0x5e, 0x28, 0x8f, 0xfa, 0x46, 0x0d, 0x53, 0x6f, 0xb9, 0xbd, - 0x77, 0xdf, 0x47, 0x77, 0x24, 0x74, 0x6b, 0xfa, 0x8e, 0xaa, 0x4f, 0x26, 0x72, 0x69, 0x1e, 0xc7, - 0x69, 0xa4, 0xd1, 0x0b, 0x79, 0xbd, 0xd8, 0xb0, 0x5a, 0xab, 0xee, 0x6d, 0x70, 0xf7, 0x11, 0x94, - 0xf2, 0xd5, 0x22, 0xab, 0x50, 0x7c, 0xdd, 0x7d, 0x7b, 0x54, 0x5d, 0x9a, 0x58, 0x67, 0xdd, 0xb3, - 0xa3, 0xaa, 0xb5, 0xdb, 0x82, 0xb5, 0x5b, 0x1b, 0x43, 0x00, 0x56, 0x3a, 0xef, 0x7b, 0xfd, 0xd3, - 0x93, 0xea, 0x12, 0x29, 0xc3, 0xff, 0x9f, 0x8e, 0x0f, 0x4e, 0x4f, 0x7b, 0xfd, 0xaa, 0x75, 0xf0, - 0xfc, 0xf3, 0x7e, 0x80, 0xfa, 0x3c, 0xf5, 0x6c, 0x5f, 0x09, 0x27, 0x1c, 0x0f, 0xb5, 0x93, 0x9f, - 0x92, 0x80, 0x4b, 0x27, 0xf2, 0xf6, 0x02, 0xe5, 0x2c, 0x5e, 0x17, 0x6f, 0xc5, 0x1c, 0x92, 0xfd, - 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x7a, 0x3d, 0x2e, 0x78, 0x04, 0x00, 0x00, + proto.RegisterFile("flyteidl/plugins/sagemaker/training_job.proto", fileDescriptor_6a68f64d8fd9fe30) +} + +var fileDescriptor_6a68f64d8fd9fe30 = []byte{ + // 587 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x6f, 0xd3, 0x4c, + 0x10, 0xad, 0x9b, 0x7c, 0xfd, 0x9a, 0x09, 0x8d, 0x92, 0x6d, 0x55, 0xa2, 0x5e, 0x88, 0x02, 0x95, + 0xd2, 0xa2, 0xda, 0x52, 0x2a, 0x38, 0x71, 0xa1, 0x69, 0xa9, 0x82, 0x28, 0xad, 0x9c, 0xf0, 0x43, + 0x48, 0x68, 0xb5, 0x76, 0x36, 0xee, 0x50, 0xef, 0xae, 0x65, 0xaf, 0x4b, 0xd2, 0x13, 0x67, 0x2e, + 0xfc, 0xc9, 0xa0, 0xac, 0x13, 0x37, 0x49, 0xa1, 0x82, 0xdb, 0xec, 0x9b, 0x99, 0xb7, 0x33, 0xf3, + 0x34, 0x03, 0x07, 0xc3, 0x70, 0xac, 0x39, 0x0e, 0x42, 0x27, 0x0a, 0xd3, 0x00, 0x65, 0xe2, 0x24, + 0x2c, 0xe0, 0x82, 0x5d, 0xf1, 0xd8, 0xd1, 0x31, 0x43, 0x89, 0x32, 0xa0, 0x5f, 0x94, 0x67, 0x47, + 0xb1, 0xd2, 0x8a, 0xec, 0xcc, 0xc2, 0xed, 0x69, 0xb8, 0x9d, 0x87, 0x37, 0x7f, 0x14, 0x60, 0xfb, + 0x65, 0x18, 0xa8, 0x18, 0xf5, 0xa5, 0xe8, 0x45, 0xdc, 0xc7, 0x21, 0xfa, 0x4c, 0xa3, 0x92, 0xe4, + 0x18, 0x00, 0x65, 0x94, 0x6a, 0x2a, 0xd4, 0x80, 0xd7, 0xad, 0x86, 0xd5, 0xaa, 0xb4, 0x77, 0xed, + 0x3f, 0x73, 0xd9, 0xdd, 0x49, 0xf4, 0x99, 0x1a, 0x70, 0xb7, 0x84, 0x33, 0x93, 0x5c, 0x40, 0x85, + 0xcd, 0xf8, 0xa9, 0x64, 0x82, 0xd7, 0x57, 0x0d, 0xd3, 0xde, 0x7d, 0x4c, 0x79, 0x45, 0x6f, 0x99, + 0xe0, 0xee, 0x06, 0x9b, 0x7f, 0x92, 0xa7, 0x50, 0xbb, 0x65, 0xbc, 0xe6, 0x71, 0x82, 0x4a, 0xd6, + 0x0b, 0x0d, 0xab, 0x55, 0x72, 0xab, 0xb9, 0xe3, 0x7d, 0x86, 0x93, 0x18, 0x88, 0xe0, 0x3a, 0x46, + 0x9f, 0x0e, 0xf8, 0x10, 0x25, 0x4e, 0x3a, 0x4b, 0xea, 0xc5, 0x46, 0xa1, 0x55, 0x6e, 0x77, 0xfe, + 0xaa, 0x84, 0x85, 0xa1, 0xd8, 0x67, 0x86, 0xec, 0x38, 0xe7, 0x72, 0x6b, 0x62, 0x09, 0x49, 0x76, + 0x5e, 0x40, 0x75, 0x39, 0x8c, 0x10, 0x28, 0x9a, 0xe6, 0x2d, 0x53, 0xa7, 0xb1, 0xc9, 0x16, 0xfc, + 0x17, 0xf3, 0x80, 0x8f, 0xcc, 0x44, 0x4a, 0x6e, 0xf6, 0x68, 0x7e, 0xb7, 0xa0, 0xd6, 0x9f, 0x8a, + 0xf8, 0x5a, 0x79, 0x1d, 0x25, 0x87, 0x18, 0x90, 0x5d, 0xa8, 0xa0, 0x4c, 0x34, 0x93, 0x3e, 0xa7, + 0xbe, 0x4a, 0xa5, 0x36, 0x4c, 0x05, 0x77, 0x63, 0x86, 0x76, 0x26, 0x20, 0x79, 0x0c, 0x39, 0x40, + 0xf5, 0x38, 0xe2, 0x53, 0xea, 0x07, 0x33, 0xb0, 0x3f, 0x8e, 0x38, 0xd9, 0x83, 0xda, 0xb5, 0x0a, + 0x53, 0xc1, 0x69, 0x82, 0x37, 0x9c, 0xa2, 0xa4, 0x81, 0x67, 0x06, 0x58, 0x70, 0x2b, 0x99, 0xa3, + 0x87, 0x37, 0xbc, 0x2b, 0x4f, 0xbd, 0xe6, 0x37, 0x0b, 0x6a, 0x3d, 0xad, 0xa2, 0x08, 0x65, 0xd0, + 0x51, 0x72, 0x90, 0x35, 0x73, 0x08, 0xdb, 0x82, 0x8d, 0x68, 0x9c, 0x4a, 0x8d, 0xc2, 0x10, 0x24, + 0xdc, 0x57, 0x72, 0x90, 0x4c, 0x8b, 0xda, 0x14, 0x6c, 0xe4, 0x66, 0xce, 0xae, 0xec, 0x65, 0x2e, + 0xf2, 0x1c, 0xea, 0x93, 0xa4, 0xaf, 0x0c, 0x35, 0x5d, 0x4e, 0x5b, 0x35, 0x69, 0x5b, 0x82, 0x8d, + 0x3e, 0x30, 0xd4, 0xfd, 0xf9, 0xbc, 0xe6, 0x4f, 0x0b, 0xca, 0x73, 0xf3, 0x20, 0x57, 0xf0, 0xf0, + 0x56, 0xfe, 0x64, 0x5e, 0x1c, 0xf3, 0x7b, 0xb9, 0xdd, 0xfe, 0x77, 0x59, 0xdd, 0x6d, 0xf6, 0xfb, + 0x1d, 0xf8, 0x0c, 0x9b, 0xf3, 0x0b, 0x45, 0x7d, 0xa3, 0x86, 0xa9, 0xb7, 0xdc, 0x3e, 0xb8, 0xef, + 0xa3, 0x3b, 0x12, 0xba, 0x35, 0x7d, 0x47, 0xd5, 0x27, 0x13, 0xb9, 0x34, 0x8f, 0xe3, 0x34, 0xd2, + 0xe8, 0x85, 0xbc, 0x5e, 0x6c, 0x58, 0xad, 0x75, 0x77, 0x11, 0xdc, 0x7f, 0x04, 0xa5, 0x7c, 0xb5, + 0xc8, 0x3a, 0x14, 0x5f, 0x75, 0xdf, 0x9c, 0x54, 0x57, 0x26, 0xd6, 0x45, 0xf7, 0xe2, 0xa4, 0x6a, + 0xed, 0xb7, 0x60, 0x63, 0x61, 0x63, 0x08, 0xc0, 0x5a, 0xe7, 0x5d, 0xaf, 0x7f, 0x7e, 0x56, 0x5d, + 0x21, 0x65, 0xf8, 0xff, 0xe3, 0xe9, 0xd1, 0xf9, 0x79, 0xaf, 0x5f, 0xb5, 0x8e, 0x9e, 0x7d, 0x3a, + 0x0c, 0x50, 0x5f, 0xa6, 0x9e, 0xed, 0x2b, 0xe1, 0x84, 0xe3, 0xa1, 0x76, 0xf2, 0x5b, 0x12, 0x70, + 0xe9, 0x44, 0xde, 0x41, 0xa0, 0x9c, 0xe5, 0xf3, 0xe2, 0xad, 0x99, 0x43, 0x72, 0xf8, 0x2b, 0x00, + 0x00, 0xff, 0xff, 0xeb, 0xba, 0x3d, 0x69, 0x79, 0x04, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go similarity index 98% rename from gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go rename to gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go index b7c0f198f..0b83d2fa9 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/trainingjob.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-validate. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/trainingjob.proto +// source: flyteidl/plugins/sagemaker/training_job.proto package plugins @@ -34,7 +34,7 @@ var ( ) // define the regex for a UUID once up-front -var _trainingjob_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") +var _training_job_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") // Validate checks the field values on AlgorithmSpecification with the rules // defined in the proto definition for this message. If any rules are diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java index 1a59c1ac7..87ed539e5 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/Hpojob.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpojob.proto +// source: flyteidl/plugins/sagemaker/hpo_job.proto package flyteidl.plugins.sagemaker; -public final class Hpojob { - private Hpojob() {} +public final class HpoJob { + private HpoJob() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -25,7 +25,7 @@ public interface HyperparameterTuningObjectiveOrBuilder extends /** * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); /** * string metric_name = 2; @@ -111,15 +111,15 @@ private HyperparameterTuningObjective( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder.class); + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); } /** @@ -194,7 +194,7 @@ public HyperparameterTuningObjectiveType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0); + return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0); } private static final HyperparameterTuningObjectiveType[] VALUES = values(); @@ -231,10 +231,10 @@ public int getObjectiveTypeValue() { /** * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; } public static final int METRIC_NAME_FIELD_NUMBER = 2; @@ -285,7 +285,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (objectiveType_ != flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { + if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { output.writeEnum(1, objectiveType_); } if (!getMetricNameBytes().isEmpty()) { @@ -300,7 +300,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (objectiveType_ != flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { + if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, objectiveType_); } @@ -317,10 +317,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective) obj; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) obj; if (objectiveType_ != other.objectiveType_) return false; if (!getMetricName() @@ -345,69 +345,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -420,7 +420,7 @@ public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective pa public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -441,21 +441,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder.class); + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.newBuilder() + // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -483,17 +483,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.getDefaultInstance(); + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective build() { - flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective result = buildPartial(); + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective build() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -501,8 +501,8 @@ public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective buildPartial() { - flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective(this); + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(this); result.objectiveType_ = objectiveType_; result.metricName_ = metricName_; onBuilt(); @@ -543,16 +543,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective) { - return mergeFrom((flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective)other); + if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective other) { - if (other == flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance()) return this; if (other.objectiveType_ != 0) { setObjectiveTypeValue(other.getObjectiveTypeValue()); } @@ -575,11 +575,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective parsedMessage = null; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -607,15 +607,15 @@ public Builder setObjectiveTypeValue(int value) { /** * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; } /** * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public Builder setObjectiveType(flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) { + public Builder setObjectiveType(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) { if (value == null) { throw new NullPointerException(); } @@ -719,12 +719,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - private static final flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective DEFAULT_INSTANCE; + private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(); } - public static flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective getDefaultInstance() { + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -749,7 +749,7 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -774,7 +774,7 @@ public interface HPOJobOrBuilder extends * * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob(); /** *
      * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
@@ -782,7 +782,7 @@ public interface HPOJobOrBuilder extends
      *
      * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
      */
-    flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder();
+    flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder();
 
     /**
      * int64 max_number_of_training_jobs = 2;
@@ -834,11 +834,11 @@ private HPOJob(
               done = true;
               break;
             case 10: {
-              flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder subBuilder = null;
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder subBuilder = null;
               if (trainingJob_ != null) {
                 subBuilder = trainingJob_.toBuilder();
               }
-              trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.parser(), extensionRegistry);
+              trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.parser(), extensionRegistry);
               if (subBuilder != null) {
                 subBuilder.mergeFrom(trainingJob_);
                 trainingJob_ = subBuilder.buildPartial();
@@ -877,19 +877,19 @@ private HPOJob(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor;
+      return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.Hpojob.HPOJob.class, flyteidl.plugins.sagemaker.Hpojob.HPOJob.Builder.class);
+              flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class);
     }
 
     public static final int TRAINING_JOB_FIELD_NUMBER = 1;
-    private flyteidl.plugins.sagemaker.Trainingjob.TrainingJob trainingJob_;
+    private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_;
     /**
      * 
      * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
@@ -907,8 +907,8 @@ public boolean hasTrainingJob() {
      *
      * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
      */
-    public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() {
-      return trainingJob_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_;
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() {
+      return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_;
     }
     /**
      * 
@@ -917,7 +917,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() {
      *
      * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
      */
-    public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder() {
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() {
       return getTrainingJob();
     }
 
@@ -993,10 +993,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.Hpojob.HPOJob)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJob)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.Hpojob.HPOJob other = (flyteidl.plugins.sagemaker.Hpojob.HPOJob) obj;
+      flyteidl.plugins.sagemaker.HpoJob.HPOJob other = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) obj;
 
       if (hasTrainingJob() != other.hasTrainingJob()) return false;
       if (hasTrainingJob()) {
@@ -1033,69 +1033,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.Hpojob.HPOJob parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -1108,7 +1108,7 @@ public static flyteidl.plugins.sagemaker.Hpojob.HPOJob parseFrom(
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.Hpojob.HPOJob prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HPOJob prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -1129,21 +1129,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJob)
-        flyteidl.plugins.sagemaker.Hpojob.HPOJobOrBuilder {
+        flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor;
+        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.Hpojob.HPOJob.class, flyteidl.plugins.sagemaker.Hpojob.HPOJob.Builder.class);
+                flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.Hpojob.HPOJob.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJob.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -1177,17 +1177,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor;
+        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.Hpojob.HPOJob.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Hpojob.HPOJob build() {
-        flyteidl.plugins.sagemaker.Hpojob.HPOJob result = buildPartial();
+      public flyteidl.plugins.sagemaker.HpoJob.HPOJob build() {
+        flyteidl.plugins.sagemaker.HpoJob.HPOJob result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1195,8 +1195,8 @@ public flyteidl.plugins.sagemaker.Hpojob.HPOJob build() {
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Hpojob.HPOJob buildPartial() {
-        flyteidl.plugins.sagemaker.Hpojob.HPOJob result = new flyteidl.plugins.sagemaker.Hpojob.HPOJob(this);
+      public flyteidl.plugins.sagemaker.HpoJob.HPOJob buildPartial() {
+        flyteidl.plugins.sagemaker.HpoJob.HPOJob result = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(this);
         if (trainingJobBuilder_ == null) {
           result.trainingJob_ = trainingJob_;
         } else {
@@ -1242,16 +1242,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.Hpojob.HPOJob) {
-          return mergeFrom((flyteidl.plugins.sagemaker.Hpojob.HPOJob)other);
+        if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJob) {
+          return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJob)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.Hpojob.HPOJob other) {
-        if (other == flyteidl.plugins.sagemaker.Hpojob.HPOJob.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJob other) {
+        if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance()) return this;
         if (other.hasTrainingJob()) {
           mergeTrainingJob(other.getTrainingJob());
         }
@@ -1276,11 +1276,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.Hpojob.HPOJob parsedMessage = null;
+        flyteidl.plugins.sagemaker.HpoJob.HPOJob parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.Hpojob.HPOJob) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1290,9 +1290,9 @@ public Builder mergeFrom(
         return this;
       }
 
-      private flyteidl.plugins.sagemaker.Trainingjob.TrainingJob trainingJob_;
+      private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder> trainingJobBuilder_;
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> trainingJobBuilder_;
       /**
        * 
        * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
@@ -1310,9 +1310,9 @@ public boolean hasTrainingJob() {
        *
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() {
         if (trainingJobBuilder_ == null) {
-          return trainingJob_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_;
+          return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_;
         } else {
           return trainingJobBuilder_.getMessage();
         }
@@ -1324,7 +1324,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getTrainingJob() {
        *
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
-      public Builder setTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob value) {
+      public Builder setTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) {
         if (trainingJobBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -1345,7 +1345,7 @@ public Builder setTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
       public Builder setTrainingJob(
-          flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder builderForValue) {
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder builderForValue) {
         if (trainingJobBuilder_ == null) {
           trainingJob_ = builderForValue.build();
           onChanged();
@@ -1362,11 +1362,11 @@ public Builder setTrainingJob(
        *
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
-      public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob value) {
+      public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) {
         if (trainingJobBuilder_ == null) {
           if (trainingJob_ != null) {
             trainingJob_ =
-              flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial();
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial();
           } else {
             trainingJob_ = value;
           }
@@ -1402,7 +1402,7 @@ public Builder clearTrainingJob() {
        *
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder getTrainingJobBuilder() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder getTrainingJobBuilder() {
         
         onChanged();
         return getTrainingJobFieldBuilder().getBuilder();
@@ -1414,12 +1414,12 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder getTrainingJob
        *
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJobOrBuilder() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() {
         if (trainingJobBuilder_ != null) {
           return trainingJobBuilder_.getMessageOrBuilder();
         } else {
           return trainingJob_ == null ?
-              flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance() : trainingJob_;
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_;
         }
       }
       /**
@@ -1430,11 +1430,11 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder getTrainingJo
        * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder> 
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> 
           getTrainingJobFieldBuilder() {
         if (trainingJobBuilder_ == null) {
           trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.Trainingjob.TrainingJob, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder>(
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder>(
                   getTrainingJob(),
                   getParentForChildren(),
                   isClean());
@@ -1511,12 +1511,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob)
-    private static final flyteidl.plugins.sagemaker.Hpojob.HPOJob DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.HpoJob.HPOJob DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Hpojob.HPOJob();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJob();
     }
 
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -1541,7 +1541,7 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.Hpojob.HPOJob getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -1558,11 +1558,11 @@ public interface HPOJobConfigOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
      */
-    flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getHyperparameterRanges();
+    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges();
     /**
      * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
      */
-    flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder();
+    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder();
 
     /**
      * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2;
@@ -1571,7 +1571,7 @@ public interface HPOJobConfigOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2;
      */
-    flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy();
+    flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy();
 
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
@@ -1580,11 +1580,11 @@ public interface HPOJobConfigOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
-    flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective getTuningObjective();
+    flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective();
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
-    flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder();
+    flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder();
 
     /**
      * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
@@ -1593,7 +1593,7 @@ public interface HPOJobConfigOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
      */
-    flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType();
+    flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType();
   }
   /**
    * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobConfig}
@@ -1637,11 +1637,11 @@ private HPOJobConfig(
               done = true;
               break;
             case 10: {
-              flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder subBuilder = null;
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder subBuilder = null;
               if (hyperparameterRanges_ != null) {
                 subBuilder = hyperparameterRanges_.toBuilder();
               }
-              hyperparameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.parser(), extensionRegistry);
+              hyperparameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.parser(), extensionRegistry);
               if (subBuilder != null) {
                 subBuilder.mergeFrom(hyperparameterRanges_);
                 hyperparameterRanges_ = subBuilder.buildPartial();
@@ -1656,11 +1656,11 @@ private HPOJobConfig(
               break;
             }
             case 26: {
-              flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder subBuilder = null;
+              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder subBuilder = null;
               if (tuningObjective_ != null) {
                 subBuilder = tuningObjective_.toBuilder();
               }
-              tuningObjective_ = input.readMessage(flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.parser(), extensionRegistry);
+              tuningObjective_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.parser(), extensionRegistry);
               if (subBuilder != null) {
                 subBuilder.mergeFrom(tuningObjective_);
                 tuningObjective_ = subBuilder.buildPartial();
@@ -1695,15 +1695,15 @@ private HPOJobConfig(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor;
+      return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.class, flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.Builder.class);
+              flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class);
     }
 
     /**
@@ -1778,7 +1778,7 @@ public HyperparameterTuningStrategy findValueByNumber(int number) {
       }
       public static final com.google.protobuf.Descriptors.EnumDescriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.getDescriptor().getEnumTypes().get(0);
+        return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final HyperparameterTuningStrategy[] VALUES = values();
@@ -1876,7 +1876,7 @@ public TrainingJobEarlyStoppingType findValueByNumber(int number) {
       }
       public static final com.google.protobuf.Descriptors.EnumDescriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.getDescriptor().getEnumTypes().get(1);
+        return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(1);
       }
 
       private static final TrainingJobEarlyStoppingType[] VALUES = values();
@@ -1903,7 +1903,7 @@ private TrainingJobEarlyStoppingType(int value) {
     }
 
     public static final int HYPERPARAMETER_RANGES_FIELD_NUMBER = 1;
-    private flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges hyperparameterRanges_;
+    private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_;
     /**
      * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
      */
@@ -1913,13 +1913,13 @@ public boolean hasHyperparameterRanges() {
     /**
      * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
      */
-    public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getHyperparameterRanges() {
-      return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance() : hyperparameterRanges_;
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() {
+      return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_;
     }
     /**
      * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
      */
-    public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() {
       return getHyperparameterRanges();
     }
 
@@ -1934,14 +1934,14 @@ public int getTuningStrategyValue() {
     /**
      * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2;
      */
-    public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() {
+    public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() {
       @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_);
-      return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result;
+      flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_);
+      return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result;
     }
 
     public static final int TUNING_OBJECTIVE_FIELD_NUMBER = 3;
-    private flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective tuningObjective_;
+    private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_;
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
@@ -1951,13 +1951,13 @@ public boolean hasTuningObjective() {
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
-    public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective getTuningObjective() {
-      return tuningObjective_ == null ? flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
+    public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() {
+      return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
     }
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
-    public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() {
+    public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() {
       return getTuningObjective();
     }
 
@@ -1972,10 +1972,10 @@ public int getTrainingJobEarlyStoppingTypeValue() {
     /**
      * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
      */
-    public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() {
+    public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() {
       @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_);
-      return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result;
+      flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_);
+      return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result;
     }
 
     private byte memoizedIsInitialized = -1;
@@ -1995,13 +1995,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (hyperparameterRanges_ != null) {
         output.writeMessage(1, getHyperparameterRanges());
       }
-      if (tuningStrategy_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) {
+      if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) {
         output.writeEnum(2, tuningStrategy_);
       }
       if (tuningObjective_ != null) {
         output.writeMessage(3, getTuningObjective());
       }
-      if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) {
+      if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) {
         output.writeEnum(4, trainingJobEarlyStoppingType_);
       }
       unknownFields.writeTo(output);
@@ -2017,7 +2017,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(1, getHyperparameterRanges());
       }
-      if (tuningStrategy_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) {
+      if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) {
         size += com.google.protobuf.CodedOutputStream
           .computeEnumSize(2, tuningStrategy_);
       }
@@ -2025,7 +2025,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(3, getTuningObjective());
       }
-      if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) {
+      if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) {
         size += com.google.protobuf.CodedOutputStream
           .computeEnumSize(4, trainingJobEarlyStoppingType_);
       }
@@ -2039,10 +2039,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig other = (flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig) obj;
+      flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) obj;
 
       if (hasHyperparameterRanges() != other.hasHyperparameterRanges()) return false;
       if (hasHyperparameterRanges()) {
@@ -2084,69 +2084,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -2159,7 +2159,7 @@ public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parseFrom(
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -2180,21 +2180,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobConfig)
-        flyteidl.plugins.sagemaker.Hpojob.HPOJobConfigOrBuilder {
+        flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor;
+        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.class, flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.Builder.class);
+                flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -2234,17 +2234,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.Hpojob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor;
+        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig build() {
-        flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig result = buildPartial();
+      public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig build() {
+        flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2252,8 +2252,8 @@ public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig build() {
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig buildPartial() {
-        flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig result = new flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig(this);
+      public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig buildPartial() {
+        flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(this);
         if (hyperparameterRangesBuilder_ == null) {
           result.hyperparameterRanges_ = hyperparameterRanges_;
         } else {
@@ -2304,16 +2304,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig) {
-          return mergeFrom((flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig)other);
+        if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) {
+          return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig other) {
-        if (other == flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other) {
+        if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance()) return this;
         if (other.hasHyperparameterRanges()) {
           mergeHyperparameterRanges(other.getHyperparameterRanges());
         }
@@ -2341,11 +2341,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig parsedMessage = null;
+        flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2355,9 +2355,9 @@ public Builder mergeFrom(
         return this;
       }
 
-      private flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges hyperparameterRanges_;
+      private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder> hyperparameterRangesBuilder_;
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> hyperparameterRangesBuilder_;
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
@@ -2367,9 +2367,9 @@ public boolean hasHyperparameterRanges() {
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getHyperparameterRanges() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() {
         if (hyperparameterRangesBuilder_ == null) {
-          return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance() : hyperparameterRanges_;
+          return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_;
         } else {
           return hyperparameterRangesBuilder_.getMessage();
         }
@@ -2377,7 +2377,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getHyperparame
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
-      public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges value) {
+      public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) {
         if (hyperparameterRangesBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2394,7 +2394,7 @@ public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.Parameterrange
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
       public Builder setHyperparameterRanges(
-          flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder builderForValue) {
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder builderForValue) {
         if (hyperparameterRangesBuilder_ == null) {
           hyperparameterRanges_ = builderForValue.build();
           onChanged();
@@ -2407,11 +2407,11 @@ public Builder setHyperparameterRanges(
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
-      public Builder mergeHyperparameterRanges(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges value) {
+      public Builder mergeHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) {
         if (hyperparameterRangesBuilder_ == null) {
           if (hyperparameterRanges_ != null) {
             hyperparameterRanges_ =
-              flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.newBuilder(hyperparameterRanges_).mergeFrom(value).buildPartial();
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.newBuilder(hyperparameterRanges_).mergeFrom(value).buildPartial();
           } else {
             hyperparameterRanges_ = value;
           }
@@ -2439,7 +2439,7 @@ public Builder clearHyperparameterRanges() {
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder getHyperparameterRangesBuilder() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder getHyperparameterRangesBuilder() {
         
         onChanged();
         return getHyperparameterRangesFieldBuilder().getBuilder();
@@ -2447,23 +2447,23 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder getHyp
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() {
         if (hyperparameterRangesBuilder_ != null) {
           return hyperparameterRangesBuilder_.getMessageOrBuilder();
         } else {
           return hyperparameterRanges_ == null ?
-              flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance() : hyperparameterRanges_;
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_;
         }
       }
       /**
        * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder> 
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> 
           getHyperparameterRangesFieldBuilder() {
         if (hyperparameterRangesBuilder_ == null) {
           hyperparameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder>(
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder>(
                   getHyperparameterRanges(),
                   getParentForChildren(),
                   isClean());
@@ -2490,15 +2490,15 @@ public Builder setTuningStrategyValue(int value) {
       /**
        * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2;
        */
-      public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() {
+      public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() {
         @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_);
-        return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result;
+        flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_);
+        return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result;
       }
       /**
        * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2;
        */
-      public Builder setTuningStrategy(flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.HyperparameterTuningStrategy value) {
+      public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy value) {
         if (value == null) {
           throw new NullPointerException();
         }
@@ -2517,9 +2517,9 @@ public Builder clearTuningStrategy() {
         return this;
       }
 
-      private flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective tuningObjective_;
+      private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder> tuningObjectiveBuilder_;
+          flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> tuningObjectiveBuilder_;
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
@@ -2529,9 +2529,9 @@ public boolean hasTuningObjective() {
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective getTuningObjective() {
+      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() {
         if (tuningObjectiveBuilder_ == null) {
-          return tuningObjective_ == null ? flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
+          return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
         } else {
           return tuningObjectiveBuilder_.getMessage();
         }
@@ -2539,7 +2539,7 @@ public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective getTuning
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public Builder setTuningObjective(flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective value) {
+      public Builder setTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) {
         if (tuningObjectiveBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2556,7 +2556,7 @@ public Builder setTuningObjective(flyteidl.plugins.sagemaker.Hpojob.Hyperparamet
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
       public Builder setTuningObjective(
-          flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder builderForValue) {
+          flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder builderForValue) {
         if (tuningObjectiveBuilder_ == null) {
           tuningObjective_ = builderForValue.build();
           onChanged();
@@ -2569,11 +2569,11 @@ public Builder setTuningObjective(
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective value) {
+      public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) {
         if (tuningObjectiveBuilder_ == null) {
           if (tuningObjective_ != null) {
             tuningObjective_ =
-              flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.newBuilder(tuningObjective_).mergeFrom(value).buildPartial();
+              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder(tuningObjective_).mergeFrom(value).buildPartial();
           } else {
             tuningObjective_ = value;
           }
@@ -2601,7 +2601,7 @@ public Builder clearTuningObjective() {
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder getTuningObjectiveBuilder() {
+      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder getTuningObjectiveBuilder() {
         
         onChanged();
         return getTuningObjectiveFieldBuilder().getBuilder();
@@ -2609,23 +2609,23 @@ public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder g
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() {
+      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() {
         if (tuningObjectiveBuilder_ != null) {
           return tuningObjectiveBuilder_.getMessageOrBuilder();
         } else {
           return tuningObjective_ == null ?
-              flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
+              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
         }
       }
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder> 
+          flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> 
           getTuningObjectiveFieldBuilder() {
         if (tuningObjectiveBuilder_ == null) {
           tuningObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.Hpojob.HyperparameterTuningObjectiveOrBuilder>(
+              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder>(
                   getTuningObjective(),
                   getParentForChildren(),
                   isClean());
@@ -2652,15 +2652,15 @@ public Builder setTrainingJobEarlyStoppingTypeValue(int value) {
       /**
        * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
        */
-      public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() {
+      public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() {
         @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_);
-        return result == null ? flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result;
+        flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_);
+        return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result;
       }
       /**
        * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
        */
-      public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig.TrainingJobEarlyStoppingType value) {
+      public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType value) {
         if (value == null) {
           throw new NullPointerException();
         }
@@ -2695,12 +2695,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig)
-    private static final flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig();
     }
 
-    public static flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -2725,7 +2725,7 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -2755,34 +2755,34 @@ public flyteidl.plugins.sagemaker.Hpojob.HPOJobConfig getDefaultInstanceForType(
       descriptor;
   static {
     java.lang.String[] descriptorData = {
-      "\n\'flyteidl/plugins/sagemaker/hpojob.prot" +
-      "o\022\032flyteidl.plugins.sagemaker\0320flyteidl/" +
-      "plugins/sagemaker/parameterranges.proto\032" +
-      ",flyteidl/plugins/sagemaker/trainingjob." +
-      "proto\"\352\001\n\035HyperparameterTuningObjective\022" +
-      "s\n\016objective_type\030\001 \001(\0162[.flyteidl.plugi" +
-      "ns.sagemaker.HyperparameterTuningObjecti" +
-      "ve.HyperparameterTuningObjectiveType\022\023\n\013" +
-      "metric_name\030\002 \001(\t\"?\n!HyperparameterTunin" +
-      "gObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE" +
-      "\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'.fl" +
-      "yteidl.plugins.sagemaker.TrainingJob\022#\n\033" +
-      "max_number_of_training_jobs\030\002 \001(\003\022\"\n\032max" +
-      "_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPOJob" +
-      "Config\022J\n\025hyperparameter_ranges\030\001 \001(\0132+." +
-      "flyteidl.plugins.sagemaker.ParameterRang" +
-      "es\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteidl.p" +
-      "lugins.sagemaker.HPOJobConfig.Hyperparam" +
-      "eterTuningStrategy\022S\n\020tuning_objective\030\003" +
-      " \001(\01329.flyteidl.plugins.sagemaker.Hyperp" +
-      "arameterTuningObjective\022o\n training_job_" +
-      "early_stopping_type\030\004 \001(\0162E.flyteidl.plu" +
-      "gins.sagemaker.HPOJobConfig.TrainingJobE" +
-      "arlyStoppingType\"8\n\034HyperparameterTuning" +
-      "Strategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n\034Tr" +
-      "ainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010\n\004A" +
-      "UTO\020\001B5Z3github.com/lyft/flyteidl/gen/pb" +
-      "-go/flyteidl/pluginsb\006proto3"
+      "\n(flyteidl/plugins/sagemaker/hpo_job.pro" +
+      "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" +
+      "/plugins/sagemaker/parameter_ranges.prot" +
+      "o\032-flyteidl/plugins/sagemaker/training_j" +
+      "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" +
+      "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" +
+      "ugins.sagemaker.HyperparameterTuningObje" +
+      "ctive.HyperparameterTuningObjectiveType\022" +
+      "\023\n\013metric_name\030\002 \001(\t\"?\n!HyperparameterTu" +
+      "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" +
+      "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" +
+      ".flyteidl.plugins.sagemaker.TrainingJob\022" +
+      "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" +
+      "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" +
+      "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" +
+      "2+.flyteidl.plugins.sagemaker.ParameterR" +
+      "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" +
+      "l.plugins.sagemaker.HPOJobConfig.Hyperpa" +
+      "rameterTuningStrategy\022S\n\020tuning_objectiv" +
+      "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" +
+      "erparameterTuningObjective\022o\n training_j" +
+      "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." +
+      "plugins.sagemaker.HPOJobConfig.TrainingJ" +
+      "obEarlyStoppingType\"8\n\034HyperparameterTun" +
+      "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" +
+      "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" +
+      "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" +
+      "/pb-go/flyteidl/pluginsb\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
@@ -2795,8 +2795,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
         new com.google.protobuf.Descriptors.FileDescriptor[] {
-          flyteidl.plugins.sagemaker.Parameterranges.getDescriptor(),
-          flyteidl.plugins.sagemaker.Trainingjob.getDescriptor(),
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(),
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(),
         }, assigner);
     internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor =
       getDescriptor().getMessageTypes().get(0);
@@ -2816,8 +2816,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor,
         new java.lang.String[] { "HyperparameterRanges", "TuningStrategy", "TuningObjective", "TrainingJobEarlyStoppingType", });
-    flyteidl.plugins.sagemaker.Parameterranges.getDescriptor();
-    flyteidl.plugins.sagemaker.Trainingjob.getDescriptor();
+    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor();
+    flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java
similarity index 74%
rename from gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java
rename to gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java
index 7ff2be48e..85e2b73f0 100644
--- a/gen/pb-java/flyteidl/plugins/sagemaker/Parameterranges.java
+++ b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java
@@ -1,10 +1,10 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: flyteidl/plugins/sagemaker/parameterranges.proto
+// source: flyteidl/plugins/sagemaker/parameter_ranges.proto
 
 package flyteidl.plugins.sagemaker;
 
-public final class Parameterranges {
-  private Parameterranges() {}
+public final class ParameterRangesOuterClass {
+  private ParameterRangesOuterClass() {}
   public static void registerAllExtensions(
       com.google.protobuf.ExtensionRegistryLite registry) {
   }
@@ -104,7 +104,7 @@ public HyperparameterScalingType findValueByNumber(int number) {
     }
     public static final com.google.protobuf.Descriptors.EnumDescriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Parameterranges.getDescriptor().getEnumTypes().get(0);
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final HyperparameterScalingType[] VALUES = values();
@@ -151,7 +151,7 @@ public interface ContinuousParameterRangeOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
      */
-    flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType();
+    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType();
   }
   /**
    * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange}
@@ -230,15 +230,15 @@ private ContinuousParameterRange(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor;
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder.class);
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class);
     }
 
     public static final int MAX_VALUE_FIELD_NUMBER = 1;
@@ -270,10 +270,10 @@ public int getScalingTypeValue() {
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
      */
-    public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() {
       @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_);
-      return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result;
+      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_);
+      return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result;
     }
 
     private byte memoizedIsInitialized = -1;
@@ -296,7 +296,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (minValue_ != 0D) {
         output.writeDouble(2, minValue_);
       }
-      if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) {
+      if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) {
         output.writeEnum(3, scalingType_);
       }
       unknownFields.writeTo(output);
@@ -316,7 +316,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeDoubleSize(2, minValue_);
       }
-      if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) {
+      if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) {
         size += com.google.protobuf.CodedOutputStream
           .computeEnumSize(3, scalingType_);
       }
@@ -330,10 +330,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) obj;
+      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) obj;
 
       if (java.lang.Double.doubleToLongBits(getMaxValue())
           != java.lang.Double.doubleToLongBits(
@@ -366,69 +366,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -441,7 +441,7 @@ public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRang
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -462,21 +462,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange)
-        flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor;
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder.class);
+                flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -506,17 +506,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor;
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange build() {
-        flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange result = buildPartial();
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange build() {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -524,8 +524,8 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange build
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange buildPartial() {
-        flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange(this);
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange buildPartial() {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(this);
         result.maxValue_ = maxValue_;
         result.minValue_ = minValue_;
         result.scalingType_ = scalingType_;
@@ -567,16 +567,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) {
-          return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange)other);
+        if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) {
+          return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange other) {
-        if (other == flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other) {
+        if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) return this;
         if (other.getMaxValue() != 0D) {
           setMaxValue(other.getMaxValue());
         }
@@ -601,11 +601,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange parsedMessage = null;
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -685,15 +685,15 @@ public Builder setScalingTypeValue(int value) {
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() {
         @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_);
-        return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result;
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_);
+        return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result;
       }
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
        */
-      public Builder setScalingType(flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType value) {
+      public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) {
         if (value == null) {
           throw new NullPointerException();
         }
@@ -728,12 +728,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange)
-    private static final flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange();
     }
 
-    public static flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -758,7 +758,7 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -785,7 +785,7 @@ public interface IntegerParameterRangeOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
      */
-    flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType();
+    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType();
   }
   /**
    * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange}
@@ -864,15 +864,15 @@ private IntegerParameterRange(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor;
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder.class);
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class);
     }
 
     public static final int MAX_VALUE_FIELD_NUMBER = 1;
@@ -904,10 +904,10 @@ public int getScalingTypeValue() {
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
      */
-    public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() {
       @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_);
-      return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result;
+      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_);
+      return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result;
     }
 
     private byte memoizedIsInitialized = -1;
@@ -930,7 +930,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (minValue_ != 0L) {
         output.writeInt64(2, minValue_);
       }
-      if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) {
+      if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) {
         output.writeEnum(3, scalingType_);
       }
       unknownFields.writeTo(output);
@@ -950,7 +950,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeInt64Size(2, minValue_);
       }
-      if (scalingType_ != flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.AUTO.getNumber()) {
+      if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) {
         size += com.google.protobuf.CodedOutputStream
           .computeEnumSize(3, scalingType_);
       }
@@ -964,10 +964,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange other = (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) obj;
+      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) obj;
 
       if (getMaxValue()
           != other.getMaxValue()) return false;
@@ -998,69 +998,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -1073,7 +1073,7 @@ public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange p
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -1094,21 +1094,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.IntegerParameterRange)
-        flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor;
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder.class);
+                flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -1138,17 +1138,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor;
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange build() {
-        flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange result = buildPartial();
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange build() {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1156,8 +1156,8 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange build()
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange buildPartial() {
-        flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange result = new flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange(this);
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange buildPartial() {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(this);
         result.maxValue_ = maxValue_;
         result.minValue_ = minValue_;
         result.scalingType_ = scalingType_;
@@ -1199,16 +1199,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) {
-          return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange)other);
+        if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) {
+          return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange other) {
-        if (other == flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other) {
+        if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) return this;
         if (other.getMaxValue() != 0L) {
           setMaxValue(other.getMaxValue());
         }
@@ -1233,11 +1233,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange parsedMessage = null;
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1317,15 +1317,15 @@ public Builder setScalingTypeValue(int value) {
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType getScalingType() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() {
         @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType result = flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.valueOf(scalingType_);
-        return result == null ? flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType.UNRECOGNIZED : result;
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_);
+        return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result;
       }
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
        */
-      public Builder setScalingType(flyteidl.plugins.sagemaker.Parameterranges.HyperparameterScalingType value) {
+      public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) {
         if (value == null) {
           throw new NullPointerException();
         }
@@ -1360,12 +1360,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange)
-    private static final flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange();
     }
 
-    public static flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -1390,7 +1390,7 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -1492,15 +1492,15 @@ private CategoricalParameterRange(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor;
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder.class);
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class);
     }
 
     public static final int VALUES_FIELD_NUMBER = 1;
@@ -1576,10 +1576,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) obj;
+      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) obj;
 
       if (!getValuesList()
           .equals(other.getValuesList())) return false;
@@ -1603,69 +1603,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -1678,7 +1678,7 @@ public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRan
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -1699,21 +1699,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange)
-        flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor;
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder.class);
+                flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -1739,17 +1739,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor;
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange build() {
-        flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange result = buildPartial();
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange build() {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1757,8 +1757,8 @@ public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange buil
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange buildPartial() {
-        flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange(this);
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange buildPartial() {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(this);
         int from_bitField0_ = bitField0_;
         if (((bitField0_ & 0x00000001) != 0)) {
           values_ = values_.getUnmodifiableView();
@@ -1803,16 +1803,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) {
-          return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange)other);
+        if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) {
+          return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange other) {
-        if (other == flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other) {
+        if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) return this;
         if (!other.values_.isEmpty()) {
           if (values_.isEmpty()) {
             values_ = other.values_;
@@ -1838,11 +1838,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange parsedMessage = null;
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1963,12 +1963,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange)
-    private static final flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange();
     }
 
-    public static flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -1993,7 +1993,7 @@ public com.google.protobuf.Parser getParserForType()
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -2010,11 +2010,11 @@ public interface ParameterRangeOneOfOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
      */
-    flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange();
+    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange();
     /**
      * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
      */
-    flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder();
+    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder();
 
     /**
      * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
@@ -2023,11 +2023,11 @@ public interface ParameterRangeOneOfOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
      */
-    flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange();
+    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange();
     /**
      * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
      */
-    flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder();
+    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder();
 
     /**
      * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
@@ -2036,13 +2036,13 @@ public interface ParameterRangeOneOfOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
      */
-    flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange();
+    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange();
     /**
      * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
      */
-    flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder();
+    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder();
 
-    public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.ParameterRangeTypeCase getParameterRangeTypeCase();
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.ParameterRangeTypeCase getParameterRangeTypeCase();
   }
   /**
    * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf}
@@ -2084,42 +2084,42 @@ private ParameterRangeOneOf(
               done = true;
               break;
             case 10: {
-              flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder subBuilder = null;
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder subBuilder = null;
               if (parameterRangeTypeCase_ == 1) {
-                subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_).toBuilder();
+                subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_).toBuilder();
               }
               parameterRangeType_ =
-                  input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.parser(), extensionRegistry);
+                  input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.parser(), extensionRegistry);
               if (subBuilder != null) {
-                subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_);
+                subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_);
                 parameterRangeType_ = subBuilder.buildPartial();
               }
               parameterRangeTypeCase_ = 1;
               break;
             }
             case 18: {
-              flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder subBuilder = null;
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder subBuilder = null;
               if (parameterRangeTypeCase_ == 2) {
-                subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_).toBuilder();
+                subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_).toBuilder();
               }
               parameterRangeType_ =
-                  input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.parser(), extensionRegistry);
+                  input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.parser(), extensionRegistry);
               if (subBuilder != null) {
-                subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_);
+                subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_);
                 parameterRangeType_ = subBuilder.buildPartial();
               }
               parameterRangeTypeCase_ = 2;
               break;
             }
             case 26: {
-              flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder subBuilder = null;
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder subBuilder = null;
               if (parameterRangeTypeCase_ == 3) {
-                subBuilder = ((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_).toBuilder();
+                subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_).toBuilder();
               }
               parameterRangeType_ =
-                  input.readMessage(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.parser(), extensionRegistry);
+                  input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.parser(), extensionRegistry);
               if (subBuilder != null) {
-                subBuilder.mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_);
+                subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_);
                 parameterRangeType_ = subBuilder.buildPartial();
               }
               parameterRangeTypeCase_ = 3;
@@ -2146,15 +2146,15 @@ private ParameterRangeOneOf(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor;
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.Builder.class);
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class);
     }
 
     private int parameterRangeTypeCase_ = 0;
@@ -2207,20 +2207,20 @@ public boolean hasContinuousParameterRange() {
     /**
      * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
      */
-    public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() {
       if (parameterRangeTypeCase_ == 1) {
-         return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_;
+         return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_;
       }
-      return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance();
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
     }
     /**
      * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
      */
-    public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() {
       if (parameterRangeTypeCase_ == 1) {
-         return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_;
+         return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_;
       }
-      return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance();
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
     }
 
     public static final int INTEGER_PARAMETER_RANGE_FIELD_NUMBER = 2;
@@ -2233,20 +2233,20 @@ public boolean hasIntegerParameterRange() {
     /**
      * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
      */
-    public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() {
       if (parameterRangeTypeCase_ == 2) {
-         return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_;
+         return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_;
       }
-      return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance();
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
     }
     /**
      * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
      */
-    public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() {
       if (parameterRangeTypeCase_ == 2) {
-         return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_;
+         return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_;
       }
-      return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance();
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
     }
 
     public static final int CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER = 3;
@@ -2259,20 +2259,20 @@ public boolean hasCategoricalParameterRange() {
     /**
      * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
      */
-    public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() {
       if (parameterRangeTypeCase_ == 3) {
-         return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_;
+         return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_;
       }
-      return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance();
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
     }
     /**
      * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
      */
-    public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() {
       if (parameterRangeTypeCase_ == 3) {
-         return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_;
+         return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_;
       }
-      return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance();
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
     }
 
     private byte memoizedIsInitialized = -1;
@@ -2290,13 +2290,13 @@ public final boolean isInitialized() {
     public void writeTo(com.google.protobuf.CodedOutputStream output)
                         throws java.io.IOException {
       if (parameterRangeTypeCase_ == 1) {
-        output.writeMessage(1, (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_);
+        output.writeMessage(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_);
       }
       if (parameterRangeTypeCase_ == 2) {
-        output.writeMessage(2, (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_);
+        output.writeMessage(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_);
       }
       if (parameterRangeTypeCase_ == 3) {
-        output.writeMessage(3, (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_);
+        output.writeMessage(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_);
       }
       unknownFields.writeTo(output);
     }
@@ -2309,15 +2309,15 @@ public int getSerializedSize() {
       size = 0;
       if (parameterRangeTypeCase_ == 1) {
         size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_);
+          .computeMessageSize(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_);
       }
       if (parameterRangeTypeCase_ == 2) {
         size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_);
+          .computeMessageSize(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_);
       }
       if (parameterRangeTypeCase_ == 3) {
         size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_);
+          .computeMessageSize(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_);
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -2329,10 +2329,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf other = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf) obj;
+      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) obj;
 
       if (!getParameterRangeTypeCase().equals(other.getParameterRangeTypeCase())) return false;
       switch (parameterRangeTypeCase_) {
@@ -2383,69 +2383,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -2458,7 +2458,7 @@ public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf par
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -2479,21 +2479,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf)
-        flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOfOrBuilder {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOfOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor;
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.Builder.class);
+                flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -2519,17 +2519,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor;
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf build() {
-        flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf result = buildPartial();
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf build() {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2537,8 +2537,8 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf build() {
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf buildPartial() {
-        flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf result = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf(this);
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf buildPartial() {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(this);
         if (parameterRangeTypeCase_ == 1) {
           if (continuousParameterRangeBuilder_ == null) {
             result.parameterRangeType_ = parameterRangeType_;
@@ -2599,16 +2599,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf) {
-          return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf)other);
+        if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) {
+          return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf other) {
-        if (other == flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other) {
+        if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()) return this;
         switch (other.getParameterRangeTypeCase()) {
           case CONTINUOUS_PARAMETER_RANGE: {
             mergeContinuousParameterRange(other.getContinuousParameterRange());
@@ -2641,11 +2641,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf parsedMessage = null;
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2671,7 +2671,7 @@ public Builder clearParameterRangeType() {
 
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder> continuousParameterRangeBuilder_;
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> continuousParameterRangeBuilder_;
       /**
        * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
        */
@@ -2681,23 +2681,23 @@ public boolean hasContinuousParameterRange() {
       /**
        * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange getContinuousParameterRange() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() {
         if (continuousParameterRangeBuilder_ == null) {
           if (parameterRangeTypeCase_ == 1) {
-            return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_;
+            return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_;
           }
-          return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance();
+          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
         } else {
           if (parameterRangeTypeCase_ == 1) {
             return continuousParameterRangeBuilder_.getMessage();
           }
-          return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance();
+          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
         }
       }
       /**
        * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
        */
-      public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange value) {
+      public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) {
         if (continuousParameterRangeBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2714,7 +2714,7 @@ public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterr
        * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
        */
       public Builder setContinuousParameterRange(
-          flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder builderForValue) {
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder builderForValue) {
         if (continuousParameterRangeBuilder_ == null) {
           parameterRangeType_ = builderForValue.build();
           onChanged();
@@ -2727,11 +2727,11 @@ public Builder setContinuousParameterRange(
       /**
        * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
        */
-      public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange value) {
+      public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) {
         if (continuousParameterRangeBuilder_ == null) {
           if (parameterRangeTypeCase_ == 1 &&
-              parameterRangeType_ != flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance()) {
-            parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_)
+              parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) {
+            parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_)
                 .mergeFrom(value).buildPartial();
           } else {
             parameterRangeType_ = value;
@@ -2768,35 +2768,35 @@ public Builder clearContinuousParameterRange() {
       /**
        * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder getContinuousParameterRangeBuilder() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder getContinuousParameterRangeBuilder() {
         return getContinuousParameterRangeFieldBuilder().getBuilder();
       }
       /**
        * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() {
         if ((parameterRangeTypeCase_ == 1) && (continuousParameterRangeBuilder_ != null)) {
           return continuousParameterRangeBuilder_.getMessageOrBuilder();
         } else {
           if (parameterRangeTypeCase_ == 1) {
-            return (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_;
+            return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_;
           }
-          return flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance();
+          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
         }
       }
       /**
        * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder> 
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> 
           getContinuousParameterRangeFieldBuilder() {
         if (continuousParameterRangeBuilder_ == null) {
           if (!(parameterRangeTypeCase_ == 1)) {
-            parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.getDefaultInstance();
+            parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance();
           }
           continuousParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuilder>(
-                  (flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRange) parameterRangeType_,
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder>(
+                  (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_,
                   getParentForChildren(),
                   isClean());
           parameterRangeType_ = null;
@@ -2807,7 +2807,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.ContinuousParameterRangeOrBuil
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder> integerParameterRangeBuilder_;
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> integerParameterRangeBuilder_;
       /**
        * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
        */
@@ -2817,23 +2817,23 @@ public boolean hasIntegerParameterRange() {
       /**
        * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange getIntegerParameterRange() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() {
         if (integerParameterRangeBuilder_ == null) {
           if (parameterRangeTypeCase_ == 2) {
-            return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_;
+            return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_;
           }
-          return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance();
+          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
         } else {
           if (parameterRangeTypeCase_ == 2) {
             return integerParameterRangeBuilder_.getMessage();
           }
-          return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance();
+          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
         }
       }
       /**
        * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
        */
-      public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange value) {
+      public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) {
         if (integerParameterRangeBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2850,7 +2850,7 @@ public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterrang
        * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
        */
       public Builder setIntegerParameterRange(
-          flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder builderForValue) {
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder builderForValue) {
         if (integerParameterRangeBuilder_ == null) {
           parameterRangeType_ = builderForValue.build();
           onChanged();
@@ -2863,11 +2863,11 @@ public Builder setIntegerParameterRange(
       /**
        * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
        */
-      public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange value) {
+      public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) {
         if (integerParameterRangeBuilder_ == null) {
           if (parameterRangeTypeCase_ == 2 &&
-              parameterRangeType_ != flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance()) {
-            parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_)
+              parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) {
+            parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_)
                 .mergeFrom(value).buildPartial();
           } else {
             parameterRangeType_ = value;
@@ -2904,35 +2904,35 @@ public Builder clearIntegerParameterRange() {
       /**
        * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder getIntegerParameterRangeBuilder() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder getIntegerParameterRangeBuilder() {
         return getIntegerParameterRangeFieldBuilder().getBuilder();
       }
       /**
        * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() {
         if ((parameterRangeTypeCase_ == 2) && (integerParameterRangeBuilder_ != null)) {
           return integerParameterRangeBuilder_.getMessageOrBuilder();
         } else {
           if (parameterRangeTypeCase_ == 2) {
-            return (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_;
+            return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_;
           }
-          return flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance();
+          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
         }
       }
       /**
        * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder> 
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> 
           getIntegerParameterRangeFieldBuilder() {
         if (integerParameterRangeBuilder_ == null) {
           if (!(parameterRangeTypeCase_ == 2)) {
-            parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.getDefaultInstance();
+            parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance();
           }
           integerParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder>(
-                  (flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRange) parameterRangeType_,
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder>(
+                  (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_,
                   getParentForChildren(),
                   isClean());
           parameterRangeType_ = null;
@@ -2943,7 +2943,7 @@ public flyteidl.plugins.sagemaker.Parameterranges.IntegerParameterRangeOrBuilder
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder> categoricalParameterRangeBuilder_;
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> categoricalParameterRangeBuilder_;
       /**
        * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
        */
@@ -2953,23 +2953,23 @@ public boolean hasCategoricalParameterRange() {
       /**
        * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange getCategoricalParameterRange() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() {
         if (categoricalParameterRangeBuilder_ == null) {
           if (parameterRangeTypeCase_ == 3) {
-            return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_;
+            return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_;
           }
-          return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance();
+          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
         } else {
           if (parameterRangeTypeCase_ == 3) {
             return categoricalParameterRangeBuilder_.getMessage();
           }
-          return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance();
+          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
         }
       }
       /**
        * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
        */
-      public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange value) {
+      public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) {
         if (categoricalParameterRangeBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2986,7 +2986,7 @@ public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameter
        * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
        */
       public Builder setCategoricalParameterRange(
-          flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder builderForValue) {
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder builderForValue) {
         if (categoricalParameterRangeBuilder_ == null) {
           parameterRangeType_ = builderForValue.build();
           onChanged();
@@ -2999,11 +2999,11 @@ public Builder setCategoricalParameterRange(
       /**
        * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
        */
-      public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange value) {
+      public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) {
         if (categoricalParameterRangeBuilder_ == null) {
           if (parameterRangeTypeCase_ == 3 &&
-              parameterRangeType_ != flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance()) {
-            parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_)
+              parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) {
+            parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_)
                 .mergeFrom(value).buildPartial();
           } else {
             parameterRangeType_ = value;
@@ -3040,35 +3040,35 @@ public Builder clearCategoricalParameterRange() {
       /**
        * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder getCategoricalParameterRangeBuilder() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder getCategoricalParameterRangeBuilder() {
         return getCategoricalParameterRangeFieldBuilder().getBuilder();
       }
       /**
        * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
        */
-      public flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() {
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() {
         if ((parameterRangeTypeCase_ == 3) && (categoricalParameterRangeBuilder_ != null)) {
           return categoricalParameterRangeBuilder_.getMessageOrBuilder();
         } else {
           if (parameterRangeTypeCase_ == 3) {
-            return (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_;
+            return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_;
           }
-          return flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance();
+          return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
         }
       }
       /**
        * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder> 
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> 
           getCategoricalParameterRangeFieldBuilder() {
         if (categoricalParameterRangeBuilder_ == null) {
           if (!(parameterRangeTypeCase_ == 3)) {
-            parameterRangeType_ = flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.getDefaultInstance();
+            parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance();
           }
           categoricalParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRangeOrBuilder>(
-                  (flyteidl.plugins.sagemaker.Parameterranges.CategoricalParameterRange) parameterRangeType_,
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder>(
+                  (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_,
                   getParentForChildren(),
                   isClean());
           parameterRangeType_ = null;
@@ -3094,12 +3094,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf)
-    private static final flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf();
     }
 
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -3124,7 +3124,7 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -3147,25 +3147,25 @@ boolean containsParameterRangeMap(
      * Use {@link #getParameterRangeMapMap()} instead.
      */
     @java.lang.Deprecated
-    java.util.Map
+    java.util.Map
     getParameterRangeMap();
     /**
      * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
      */
-    java.util.Map
+    java.util.Map
     getParameterRangeMapMap();
     /**
      * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
      */
 
-    flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault(
+    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault(
         java.lang.String key,
-        flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf defaultValue);
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue);
     /**
      * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
      */
 
-    flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow(
+    flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow(
         java.lang.String key);
   }
   /**
@@ -3213,7 +3213,7 @@ private ParameterRanges(
                     ParameterRangeMapDefaultEntryHolder.defaultEntry);
                 mutable_bitField0_ |= 0x00000001;
               }
-              com.google.protobuf.MapEntry
+              com.google.protobuf.MapEntry
               parameterRangeMap__ = input.readMessage(
                   ParameterRangeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
               parameterRangeMap_.getMutableMap().put(
@@ -3241,7 +3241,7 @@ private ParameterRanges(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor;
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -3259,26 +3259,26 @@ protected com.google.protobuf.MapField internalGetMapField(
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder.class);
+              flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class);
     }
 
     public static final int PARAMETER_RANGE_MAP_FIELD_NUMBER = 1;
     private static final class ParameterRangeMapDefaultEntryHolder {
       static final com.google.protobuf.MapEntry<
-          java.lang.String, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf> defaultEntry =
+          java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> defaultEntry =
               com.google.protobuf.MapEntry
-              .newDefaultInstance(
-                  flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, 
+              .newDefaultInstance(
+                  flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, 
                   com.google.protobuf.WireFormat.FieldType.STRING,
                   "",
                   com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                  flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf.getDefaultInstance());
+                  flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance());
     }
     private com.google.protobuf.MapField<
-        java.lang.String, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf> parameterRangeMap_;
-    private com.google.protobuf.MapField
+        java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_;
+    private com.google.protobuf.MapField
     internalGetParameterRangeMap() {
       if (parameterRangeMap_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -3303,25 +3303,25 @@ public boolean containsParameterRangeMap(
      * Use {@link #getParameterRangeMapMap()} instead.
      */
     @java.lang.Deprecated
-    public java.util.Map getParameterRangeMap() {
+    public java.util.Map getParameterRangeMap() {
       return getParameterRangeMapMap();
     }
     /**
      * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
      */
 
-    public java.util.Map getParameterRangeMapMap() {
+    public java.util.Map getParameterRangeMapMap() {
       return internalGetParameterRangeMap().getMap();
     }
     /**
      * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
      */
 
-    public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault(
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault(
         java.lang.String key,
-        flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf defaultValue) {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) {
       if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
+      java.util.Map map =
           internalGetParameterRangeMap().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
@@ -3329,10 +3329,10 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParamet
      * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
      */
 
-    public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow(
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow(
         java.lang.String key) {
       if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
+      java.util.Map map =
           internalGetParameterRangeMap().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
@@ -3369,9 +3369,9 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      for (java.util.Map.Entry entry
+      for (java.util.Map.Entry entry
            : internalGetParameterRangeMap().getMap().entrySet()) {
-        com.google.protobuf.MapEntry
+        com.google.protobuf.MapEntry
         parameterRangeMap__ = ParameterRangeMapDefaultEntryHolder.defaultEntry.newBuilderForType()
             .setKey(entry.getKey())
             .setValue(entry.getValue())
@@ -3389,10 +3389,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges other = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges) obj;
+      flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) obj;
 
       if (!internalGetParameterRangeMap().equals(
           other.internalGetParameterRangeMap())) return false;
@@ -3416,69 +3416,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFrom(
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -3491,7 +3491,7 @@ public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parseFr
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -3512,10 +3512,10 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRanges)
-        flyteidl.plugins.sagemaker.Parameterranges.ParameterRangesOrBuilder {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor;
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
@@ -3543,12 +3543,12 @@ protected com.google.protobuf.MapField internalGetMutableMapField(
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.class, flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.Builder.class);
+                flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -3573,17 +3573,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.Parameterranges.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor;
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges build() {
-        flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges result = buildPartial();
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges build() {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -3591,8 +3591,8 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges build() {
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges buildPartial() {
-        flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges result = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges(this);
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges buildPartial() {
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(this);
         int from_bitField0_ = bitField0_;
         result.parameterRangeMap_ = internalGetParameterRangeMap();
         result.parameterRangeMap_.makeImmutable();
@@ -3634,16 +3634,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges) {
-          return mergeFrom((flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges)other);
+        if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) {
+          return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges other) {
-        if (other == flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other) {
+        if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance()) return this;
         internalGetMutableParameterRangeMap().mergeFrom(
             other.internalGetParameterRangeMap());
         this.mergeUnknownFields(other.unknownFields);
@@ -3661,11 +3661,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges parsedMessage = null;
+        flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3677,8 +3677,8 @@ public Builder mergeFrom(
       private int bitField0_;
 
       private com.google.protobuf.MapField<
-          java.lang.String, flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf> parameterRangeMap_;
-      private com.google.protobuf.MapField
+          java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_;
+      private com.google.protobuf.MapField
       internalGetParameterRangeMap() {
         if (parameterRangeMap_ == null) {
           return com.google.protobuf.MapField.emptyMapField(
@@ -3686,7 +3686,7 @@ public Builder mergeFrom(
         }
         return parameterRangeMap_;
       }
-      private com.google.protobuf.MapField
+      private com.google.protobuf.MapField
       internalGetMutableParameterRangeMap() {
         onChanged();;
         if (parameterRangeMap_ == null) {
@@ -3715,25 +3715,25 @@ public boolean containsParameterRangeMap(
        * Use {@link #getParameterRangeMapMap()} instead.
        */
       @java.lang.Deprecated
-      public java.util.Map getParameterRangeMap() {
+      public java.util.Map getParameterRangeMap() {
         return getParameterRangeMapMap();
       }
       /**
        * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
        */
 
-      public java.util.Map getParameterRangeMapMap() {
+      public java.util.Map getParameterRangeMapMap() {
         return internalGetParameterRangeMap().getMap();
       }
       /**
        * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
        */
 
-      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrDefault(
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault(
           java.lang.String key,
-          flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf defaultValue) {
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) {
         if (key == null) { throw new java.lang.NullPointerException(); }
-        java.util.Map map =
+        java.util.Map map =
             internalGetParameterRangeMap().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
@@ -3741,10 +3741,10 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParamet
        * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1;
        */
 
-      public flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf getParameterRangeMapOrThrow(
+      public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow(
           java.lang.String key) {
         if (key == null) { throw new java.lang.NullPointerException(); }
-        java.util.Map map =
+        java.util.Map map =
             internalGetParameterRangeMap().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
@@ -3772,7 +3772,7 @@ public Builder removeParameterRangeMap(
        * Use alternate mutation accessors instead.
        */
       @java.lang.Deprecated
-      public java.util.Map
+      public java.util.Map
       getMutableParameterRangeMap() {
         return internalGetMutableParameterRangeMap().getMutableMap();
       }
@@ -3781,7 +3781,7 @@ public Builder removeParameterRangeMap(
        */
       public Builder putParameterRangeMap(
           java.lang.String key,
-          flyteidl.plugins.sagemaker.Parameterranges.ParameterRangeOneOf value) {
+          flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf value) {
         if (key == null) { throw new java.lang.NullPointerException(); }
         if (value == null) { throw new java.lang.NullPointerException(); }
         internalGetMutableParameterRangeMap().getMutableMap()
@@ -3793,7 +3793,7 @@ public Builder putParameterRangeMap(
        */
 
       public Builder putAllParameterRangeMap(
-          java.util.Map values) {
+          java.util.Map values) {
         internalGetMutableParameterRangeMap().getMutableMap()
             .putAll(values);
         return this;
@@ -3815,12 +3815,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges)
-    private static final flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges();
     }
 
-    public static flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -3845,7 +3845,7 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -3890,34 +3890,34 @@ public flyteidl.plugins.sagemaker.Parameterranges.ParameterRanges getDefaultInst
       descriptor;
   static {
     java.lang.String[] descriptorData = {
-      "\n0flyteidl/plugins/sagemaker/parameterra" +
-      "nges.proto\022\032flyteidl.plugins.sagemaker\"\215" +
-      "\001\n\030ContinuousParameterRange\022\021\n\tmax_value" +
-      "\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_typ" +
-      "e\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hyp" +
-      "erparameterScalingType\"\212\001\n\025IntegerParame" +
-      "terRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_value" +
-      "\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl." +
-      "plugins.sagemaker.HyperparameterScalingT" +
-      "ype\"+\n\031CategoricalParameterRange\022\016\n\006valu" +
-      "es\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032cont" +
-      "inuous_parameter_range\030\001 \001(\01324.flyteidl." +
-      "plugins.sagemaker.ContinuousParameterRan" +
-      "geH\000\022T\n\027integer_parameter_range\030\002 \001(\01321." +
-      "flyteidl.plugins.sagemaker.IntegerParame" +
-      "terRangeH\000\022\\\n\033categorical_parameter_rang" +
-      "e\030\003 \001(\01325.flyteidl.plugins.sagemaker.Cat" +
-      "egoricalParameterRangeH\000B\026\n\024parameter_ra" +
-      "nge_type\"\335\001\n\017ParameterRanges\022_\n\023paramete" +
-      "r_range_map\030\001 \003(\0132B.flyteidl.plugins.sag" +
-      "emaker.ParameterRanges.ParameterRangeMap" +
-      "Entry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001" +
-      " \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins.s" +
-      "agemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hype" +
-      "rparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINEA" +
-      "R\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITHM" +
-      "IC\020\003B5Z3github.com/lyft/flyteidl/gen/pb-" +
-      "go/flyteidl/pluginsb\006proto3"
+      "\n1flyteidl/plugins/sagemaker/parameter_r" +
+      "anges.proto\022\032flyteidl.plugins.sagemaker\"" +
+      "\215\001\n\030ContinuousParameterRange\022\021\n\tmax_valu" +
+      "e\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_ty" +
+      "pe\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hy" +
+      "perparameterScalingType\"\212\001\n\025IntegerParam" +
+      "eterRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_valu" +
+      "e\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl" +
+      ".plugins.sagemaker.HyperparameterScaling" +
+      "Type\"+\n\031CategoricalParameterRange\022\016\n\006val" +
+      "ues\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032con" +
+      "tinuous_parameter_range\030\001 \001(\01324.flyteidl" +
+      ".plugins.sagemaker.ContinuousParameterRa" +
+      "ngeH\000\022T\n\027integer_parameter_range\030\002 \001(\01321" +
+      ".flyteidl.plugins.sagemaker.IntegerParam" +
+      "eterRangeH\000\022\\\n\033categorical_parameter_ran" +
+      "ge\030\003 \001(\01325.flyteidl.plugins.sagemaker.Ca" +
+      "tegoricalParameterRangeH\000B\026\n\024parameter_r" +
+      "ange_type\"\335\001\n\017ParameterRanges\022_\n\023paramet" +
+      "er_range_map\030\001 \003(\0132B.flyteidl.plugins.sa" +
+      "gemaker.ParameterRanges.ParameterRangeMa" +
+      "pEntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030" +
+      "\001 \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins." +
+      "sagemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyp" +
+      "erparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINE" +
+      "AR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITH" +
+      "MIC\020\003B5Z3github.com/lyft/flyteidl/gen/pb" +
+      "-go/flyteidl/pluginsb\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java
similarity index 78%
rename from gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java
rename to gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java
index a8637c2ce..c7c7a93f1 100644
--- a/gen/pb-java/flyteidl/plugins/sagemaker/Trainingjob.java
+++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java
@@ -1,10 +1,10 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: flyteidl/plugins/sagemaker/trainingjob.proto
+// source: flyteidl/plugins/sagemaker/training_job.proto
 
 package flyteidl.plugins.sagemaker;
 
-public final class Trainingjob {
-  private Trainingjob() {}
+public final class TrainingJobOuterClass {
+  private TrainingJobOuterClass() {}
   public static void registerAllExtensions(
       com.google.protobuf.ExtensionRegistryLite registry) {
   }
@@ -86,7 +86,7 @@ public InputMode findValueByNumber(int number) {
     }
     public static final com.google.protobuf.Descriptors.EnumDescriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Trainingjob.getDescriptor().getEnumTypes().get(0);
+      return flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final InputMode[] VALUES = values();
@@ -184,7 +184,7 @@ public AlgorithmName findValueByNumber(int number) {
     }
     public static final com.google.protobuf.Descriptors.EnumDescriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Trainingjob.getDescriptor().getEnumTypes().get(1);
+      return flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final AlgorithmName[] VALUES = values();
@@ -221,7 +221,7 @@ public interface AlgorithmSpecificationOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
      */
-    flyteidl.plugins.sagemaker.Trainingjob.InputMode getInputMode();
+    flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode();
 
     /**
      * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
@@ -230,7 +230,7 @@ public interface AlgorithmSpecificationOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
      */
-    flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName getAlgorithmName();
+    flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName();
 
     /**
      * string algorithm_version = 3;
@@ -245,12 +245,12 @@ public interface AlgorithmSpecificationOrBuilder extends
     /**
      * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
      */
-    java.util.List 
+    java.util.List 
         getMetricDefinitionsList();
     /**
      * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
      */
-    flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index);
+    flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index);
     /**
      * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
      */
@@ -258,12 +258,12 @@ public interface AlgorithmSpecificationOrBuilder extends
     /**
      * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
      */
-    java.util.List 
+    java.util.List 
         getMetricDefinitionsOrBuilderList();
     /**
      * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
      */
-    flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder(
+    flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder(
         int index);
   }
   /**
@@ -329,11 +329,11 @@ private AlgorithmSpecification(
             }
             case 34: {
               if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-                metricDefinitions_ = new java.util.ArrayList();
+                metricDefinitions_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000008;
               }
               metricDefinitions_.add(
-                  input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.parser(), extensionRegistry));
+                  input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.parser(), extensionRegistry));
               break;
             }
             default: {
@@ -360,15 +360,15 @@ private AlgorithmSpecification(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor;
+      return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder.class);
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class);
     }
 
     public interface MetricDefinitionOrBuilder extends
@@ -469,15 +469,15 @@ private MetricDefinition(
       }
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor;
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder.class);
+                flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class);
       }
 
       public static final int NAME_FIELD_NUMBER = 1;
@@ -593,10 +593,10 @@ public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
          return true;
         }
-        if (!(obj instanceof flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition)) {
+        if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)) {
           return super.equals(obj);
         }
-        flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition) obj;
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) obj;
 
         if (!getName()
             .equals(other.getName())) return false;
@@ -622,69 +622,69 @@ public int hashCode() {
         return hash;
       }
 
-      public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(
+      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
           java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-      public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(
+      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
           java.nio.ByteBuffer data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(
+      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-      public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(
+      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data)
+      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-      public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(
+      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
           byte[] data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input)
+      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input)
           throws java.io.IOException {
         return com.google.protobuf.GeneratedMessageV3
             .parseWithIOException(PARSER, input);
       }
-      public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(
+      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input)
+      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
         return com.google.protobuf.GeneratedMessageV3
             .parseDelimitedWithIOException(PARSER, input);
       }
-      public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(
+      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(
+      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
           com.google.protobuf.CodedInputStream input)
           throws java.io.IOException {
         return com.google.protobuf.GeneratedMessageV3
             .parseWithIOException(PARSER, input);
       }
-      public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parseFrom(
+      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
@@ -697,7 +697,7 @@ public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Metr
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
-      public static Builder newBuilder(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition prototype) {
+      public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
       @java.lang.Override
@@ -718,21 +718,21 @@ protected Builder newBuilderForType(
       public static final class Builder extends
           com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
-          flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder {
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor
             getDescriptor() {
-          return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor;
+          return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable
+          return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder.class);
+                  flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class);
         }
 
-        // Construct using flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.newBuilder()
+        // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.newBuilder()
         private Builder() {
           maybeForceBuilderInitialization();
         }
@@ -760,17 +760,17 @@ public Builder clear() {
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor
             getDescriptorForType() {
-          return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor;
+          return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor;
         }
 
         @java.lang.Override
-        public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() {
-          return flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance();
+        public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() {
+          return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance();
         }
 
         @java.lang.Override
-        public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition build() {
-          flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition result = buildPartial();
+        public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition build() {
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
@@ -778,8 +778,8 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefin
         }
 
         @java.lang.Override
-        public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition buildPartial() {
-          flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition(this);
+        public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition buildPartial() {
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(this);
           result.name_ = name_;
           result.regex_ = regex_;
           onBuilt();
@@ -820,16 +820,16 @@ public Builder addRepeatedField(
         }
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
-          if (other instanceof flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition) {
-            return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition)other);
+          if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) {
+            return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition other) {
-          if (other == flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this;
+        public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other) {
+          if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this;
           if (!other.getName().isEmpty()) {
             name_ = other.name_;
             onChanged();
@@ -853,11 +853,11 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
-          flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition parsedMessage = null;
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parsedMessage = null;
           try {
             parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage();
+            parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
             if (parsedMessage != null) {
@@ -1021,12 +1021,12 @@ public final Builder mergeUnknownFields(
       }
 
       // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
-      private static final flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE;
+      private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE;
       static {
-        DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition();
+        DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition();
       }
 
-      public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getDefaultInstance() {
+      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
 
@@ -1051,7 +1051,7 @@ public com.google.protobuf.Parser getParserForType() {
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
 
@@ -1069,10 +1069,10 @@ public int getInputModeValue() {
     /**
      * .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
      */
-    public flyteidl.plugins.sagemaker.Trainingjob.InputMode getInputMode() {
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() {
       @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.Trainingjob.InputMode result = flyteidl.plugins.sagemaker.Trainingjob.InputMode.valueOf(inputMode_);
-      return result == null ? flyteidl.plugins.sagemaker.Trainingjob.InputMode.UNRECOGNIZED : result;
+      flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_);
+      return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result;
     }
 
     public static final int ALGORITHM_NAME_FIELD_NUMBER = 2;
@@ -1086,10 +1086,10 @@ public int getAlgorithmNameValue() {
     /**
      * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
      */
-    public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName getAlgorithmName() {
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() {
       @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName result = flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName.valueOf(algorithmName_);
-      return result == null ? flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName.UNRECOGNIZED : result;
+      flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_);
+      return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result;
     }
 
     public static final int ALGORITHM_VERSION_FIELD_NUMBER = 3;
@@ -1127,17 +1127,17 @@ public java.lang.String getAlgorithmVersion() {
     }
 
     public static final int METRIC_DEFINITIONS_FIELD_NUMBER = 4;
-    private java.util.List metricDefinitions_;
+    private java.util.List metricDefinitions_;
     /**
      * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
      */
-    public java.util.List getMetricDefinitionsList() {
+    public java.util.List getMetricDefinitionsList() {
       return metricDefinitions_;
     }
     /**
      * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
      */
-    public java.util.List 
+    public java.util.List 
         getMetricDefinitionsOrBuilderList() {
       return metricDefinitions_;
     }
@@ -1150,13 +1150,13 @@ public int getMetricDefinitionsCount() {
     /**
      * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
      */
-    public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) {
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) {
       return metricDefinitions_.get(index);
     }
     /**
      * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
      */
-    public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder(
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder(
         int index) {
       return metricDefinitions_.get(index);
     }
@@ -1175,10 +1175,10 @@ public final boolean isInitialized() {
     @java.lang.Override
     public void writeTo(com.google.protobuf.CodedOutputStream output)
                         throws java.io.IOException {
-      if (inputMode_ != flyteidl.plugins.sagemaker.Trainingjob.InputMode.FILE.getNumber()) {
+      if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) {
         output.writeEnum(1, inputMode_);
       }
-      if (algorithmName_ != flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName.CUSTOM.getNumber()) {
+      if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) {
         output.writeEnum(2, algorithmName_);
       }
       if (!getAlgorithmVersionBytes().isEmpty()) {
@@ -1196,11 +1196,11 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (inputMode_ != flyteidl.plugins.sagemaker.Trainingjob.InputMode.FILE.getNumber()) {
+      if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) {
         size += com.google.protobuf.CodedOutputStream
           .computeEnumSize(1, inputMode_);
       }
-      if (algorithmName_ != flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName.CUSTOM.getNumber()) {
+      if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) {
         size += com.google.protobuf.CodedOutputStream
           .computeEnumSize(2, algorithmName_);
       }
@@ -1221,10 +1221,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification) obj;
+      flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) obj;
 
       if (inputMode_ != other.inputMode_) return false;
       if (algorithmName_ != other.algorithmName_) return false;
@@ -1258,69 +1258,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -1333,7 +1333,7 @@ public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification pars
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -1354,21 +1354,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification)
-        flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder {
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor;
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder.class);
+                flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -1405,17 +1405,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor;
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification build() {
-        flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification result = buildPartial();
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification build() {
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1423,8 +1423,8 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification build() {
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification buildPartial() {
-        flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification(this);
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification buildPartial() {
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(this);
         int from_bitField0_ = bitField0_;
         int to_bitField0_ = 0;
         result.inputMode_ = inputMode_;
@@ -1478,16 +1478,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification) {
-          return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification)other);
+        if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) {
+          return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification other) {
-        if (other == flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other) {
+        if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance()) return this;
         if (other.inputMode_ != 0) {
           setInputModeValue(other.getInputModeValue());
         }
@@ -1539,11 +1539,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification parsedMessage = null;
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1572,15 +1572,15 @@ public Builder setInputModeValue(int value) {
       /**
        * .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.InputMode getInputMode() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() {
         @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.Trainingjob.InputMode result = flyteidl.plugins.sagemaker.Trainingjob.InputMode.valueOf(inputMode_);
-        return result == null ? flyteidl.plugins.sagemaker.Trainingjob.InputMode.UNRECOGNIZED : result;
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_);
+        return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result;
       }
       /**
        * .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
        */
-      public Builder setInputMode(flyteidl.plugins.sagemaker.Trainingjob.InputMode value) {
+      public Builder setInputMode(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode value) {
         if (value == null) {
           throw new NullPointerException();
         }
@@ -1617,15 +1617,15 @@ public Builder setAlgorithmNameValue(int value) {
       /**
        * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName getAlgorithmName() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() {
         @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName result = flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName.valueOf(algorithmName_);
-        return result == null ? flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName.UNRECOGNIZED : result;
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_);
+        return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result;
       }
       /**
        * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
        */
-      public Builder setAlgorithmName(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmName value) {
+      public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName value) {
         if (value == null) {
           throw new NullPointerException();
         }
@@ -1713,22 +1713,22 @@ public Builder setAlgorithmVersionBytes(
         return this;
       }
 
-      private java.util.List metricDefinitions_ =
+      private java.util.List metricDefinitions_ =
         java.util.Collections.emptyList();
       private void ensureMetricDefinitionsIsMutable() {
         if (!((bitField0_ & 0x00000008) != 0)) {
-          metricDefinitions_ = new java.util.ArrayList(metricDefinitions_);
+          metricDefinitions_ = new java.util.ArrayList(metricDefinitions_);
           bitField0_ |= 0x00000008;
          }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_;
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_;
 
       /**
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
-      public java.util.List getMetricDefinitionsList() {
+      public java.util.List getMetricDefinitionsList() {
         if (metricDefinitionsBuilder_ == null) {
           return java.util.Collections.unmodifiableList(metricDefinitions_);
         } else {
@@ -1748,7 +1748,7 @@ public int getMetricDefinitionsCount() {
       /**
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) {
         if (metricDefinitionsBuilder_ == null) {
           return metricDefinitions_.get(index);
         } else {
@@ -1759,7 +1759,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefin
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
       public Builder setMetricDefinitions(
-          int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) {
+          int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) {
         if (metricDefinitionsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -1776,7 +1776,7 @@ public Builder setMetricDefinitions(
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
       public Builder setMetricDefinitions(
-          int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) {
+          int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) {
         if (metricDefinitionsBuilder_ == null) {
           ensureMetricDefinitionsIsMutable();
           metricDefinitions_.set(index, builderForValue.build());
@@ -1789,7 +1789,7 @@ public Builder setMetricDefinitions(
       /**
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
-      public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) {
+      public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) {
         if (metricDefinitionsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -1806,7 +1806,7 @@ public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.Trainingjob.Algor
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
       public Builder addMetricDefinitions(
-          int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition value) {
+          int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) {
         if (metricDefinitionsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -1823,7 +1823,7 @@ public Builder addMetricDefinitions(
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
       public Builder addMetricDefinitions(
-          flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) {
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) {
         if (metricDefinitionsBuilder_ == null) {
           ensureMetricDefinitionsIsMutable();
           metricDefinitions_.add(builderForValue.build());
@@ -1837,7 +1837,7 @@ public Builder addMetricDefinitions(
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
       public Builder addMetricDefinitions(
-          int index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder builderForValue) {
+          int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) {
         if (metricDefinitionsBuilder_ == null) {
           ensureMetricDefinitionsIsMutable();
           metricDefinitions_.add(index, builderForValue.build());
@@ -1851,7 +1851,7 @@ public Builder addMetricDefinitions(
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
       public Builder addAllMetricDefinitions(
-          java.lang.Iterable values) {
+          java.lang.Iterable values) {
         if (metricDefinitionsBuilder_ == null) {
           ensureMetricDefinitionsIsMutable();
           com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -1891,14 +1891,14 @@ public Builder removeMetricDefinitions(int index) {
       /**
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder(
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder(
           int index) {
         return getMetricDefinitionsFieldBuilder().getBuilder(index);
       }
       /**
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder(
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder(
           int index) {
         if (metricDefinitionsBuilder_ == null) {
           return metricDefinitions_.get(index);  } else {
@@ -1908,7 +1908,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefin
       /**
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
-      public java.util.List 
+      public java.util.List 
            getMetricDefinitionsOrBuilderList() {
         if (metricDefinitionsBuilder_ != null) {
           return metricDefinitionsBuilder_.getMessageOrBuilderList();
@@ -1919,31 +1919,31 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefin
       /**
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() {
         return getMetricDefinitionsFieldBuilder().addBuilder(
-            flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance());
+            flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance());
       }
       /**
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder(
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder(
           int index) {
         return getMetricDefinitionsFieldBuilder().addBuilder(
-            index, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.getDefaultInstance());
+            index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance());
       }
       /**
        * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
        */
-      public java.util.List 
+      public java.util.List 
            getMetricDefinitionsBuilderList() {
         return getMetricDefinitionsFieldBuilder().getBuilderList();
       }
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder> 
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> 
           getMetricDefinitionsFieldBuilder() {
         if (metricDefinitionsBuilder_ == null) {
           metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-              flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.MetricDefinitionOrBuilder>(
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder>(
                   metricDefinitions_,
                   ((bitField0_ & 0x00000008) != 0),
                   getParentForChildren(),
@@ -1969,12 +1969,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification)
-    private static final flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification();
     }
 
-    public static flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -1999,7 +1999,7 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -2110,15 +2110,15 @@ private TrainingJobConfig(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor;
+      return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.class, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder.class);
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class);
     }
 
     public static final int INSTANCE_COUNT_FIELD_NUMBER = 1;
@@ -2230,10 +2230,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig other = (flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig) obj;
+      flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) obj;
 
       if (getInstanceCount()
           != other.getInstanceCount()) return false;
@@ -2265,69 +2265,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -2340,7 +2340,7 @@ public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parseFrom
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -2361,21 +2361,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJobConfig)
-        flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder {
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor;
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.class, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder.class);
+                flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -2405,17 +2405,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor;
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig build() {
-        flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig result = buildPartial();
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig build() {
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2423,8 +2423,8 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig build() {
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig buildPartial() {
-        flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig result = new flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig(this);
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig buildPartial() {
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(this);
         result.instanceCount_ = instanceCount_;
         result.instanceType_ = instanceType_;
         result.volumeSizeInGb_ = volumeSizeInGb_;
@@ -2466,16 +2466,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig) {
-          return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig)other);
+        if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) {
+          return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig other) {
-        if (other == flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other) {
+        if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance()) return this;
         if (other.getInstanceCount() != 0L) {
           setInstanceCount(other.getInstanceCount());
         }
@@ -2501,11 +2501,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig parsedMessage = null;
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2664,12 +2664,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig)
-    private static final flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig();
     }
 
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -2694,7 +2694,7 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -2784,15 +2784,15 @@ private StoppingCondition(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor;
+      return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.class, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder.class);
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class);
     }
 
     public static final int MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER = 1;
@@ -2860,10 +2860,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition other = (flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition) obj;
+      flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) obj;
 
       if (getMaxRuntimeInSeconds()
           != other.getMaxRuntimeInSeconds()) return false;
@@ -2891,69 +2891,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -2966,7 +2966,7 @@ public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parseFrom
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -2987,21 +2987,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.StoppingCondition)
-        flyteidl.plugins.sagemaker.Trainingjob.StoppingConditionOrBuilder {
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingConditionOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor;
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.class, flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.Builder.class);
+                flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -3029,17 +3029,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor;
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition build() {
-        flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition result = buildPartial();
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition build() {
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -3047,8 +3047,8 @@ public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition build() {
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition buildPartial() {
-        flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition result = new flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition(this);
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition buildPartial() {
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(this);
         result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_;
         result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_;
         onBuilt();
@@ -3089,16 +3089,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition) {
-          return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition)other);
+        if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) {
+          return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition other) {
-        if (other == flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other) {
+        if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance()) return this;
         if (other.getMaxRuntimeInSeconds() != 0L) {
           setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds());
         }
@@ -3120,11 +3120,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition parsedMessage = null;
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3202,12 +3202,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition)
-    private static final flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition();
     }
 
-    public static flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -3232,7 +3232,7 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.Trainingjob.StoppingCondition getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -3249,11 +3249,11 @@ public interface TrainingJobOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1;
      */
-    flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification();
+    flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification();
     /**
      * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1;
      */
-    flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder();
+    flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder();
 
     /**
      * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
@@ -3262,11 +3262,11 @@ public interface TrainingJobOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
      */
-    flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig getTrainingJobConfig();
+    flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig();
     /**
      * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
      */
-    flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder();
+    flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder();
 
     /**
      * bool interruptible = 4;
@@ -3313,11 +3313,11 @@ private TrainingJob(
               done = true;
               break;
             case 10: {
-              flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder subBuilder = null;
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder subBuilder = null;
               if (algorithmSpecification_ != null) {
                 subBuilder = algorithmSpecification_.toBuilder();
               }
-              algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.parser(), extensionRegistry);
+              algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.parser(), extensionRegistry);
               if (subBuilder != null) {
                 subBuilder.mergeFrom(algorithmSpecification_);
                 algorithmSpecification_ = subBuilder.buildPartial();
@@ -3326,11 +3326,11 @@ private TrainingJob(
               break;
             }
             case 18: {
-              flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder subBuilder = null;
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder subBuilder = null;
               if (trainingJobConfig_ != null) {
                 subBuilder = trainingJobConfig_.toBuilder();
               }
-              trainingJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.parser(), extensionRegistry);
+              trainingJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.parser(), extensionRegistry);
               if (subBuilder != null) {
                 subBuilder.mergeFrom(trainingJobConfig_);
                 trainingJobConfig_ = subBuilder.buildPartial();
@@ -3364,19 +3364,19 @@ private TrainingJob(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor;
+      return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.class, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder.class);
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class);
     }
 
     public static final int ALGORITHM_SPECIFICATION_FIELD_NUMBER = 1;
-    private flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification algorithmSpecification_;
+    private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_;
     /**
      * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1;
      */
@@ -3386,18 +3386,18 @@ public boolean hasAlgorithmSpecification() {
     /**
      * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1;
      */
-    public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification() {
-      return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_;
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() {
+      return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_;
     }
     /**
      * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1;
      */
-    public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() {
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() {
       return getAlgorithmSpecification();
     }
 
     public static final int TRAINING_JOB_CONFIG_FIELD_NUMBER = 2;
-    private flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig trainingJobConfig_;
+    private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_;
     /**
      * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
      */
@@ -3407,13 +3407,13 @@ public boolean hasTrainingJobConfig() {
     /**
      * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
      */
-    public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig getTrainingJobConfig() {
-      return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_;
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() {
+      return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_;
     }
     /**
      * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
      */
-    public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() {
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() {
       return getTrainingJobConfig();
     }
 
@@ -3480,10 +3480,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.Trainingjob.TrainingJob)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.Trainingjob.TrainingJob other = (flyteidl.plugins.sagemaker.Trainingjob.TrainingJob) obj;
+      flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) obj;
 
       if (hasAlgorithmSpecification() != other.hasAlgorithmSpecification()) return false;
       if (hasAlgorithmSpecification()) {
@@ -3524,69 +3524,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -3599,7 +3599,7 @@ public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parseFrom(
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -3620,21 +3620,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJob)
-        flyteidl.plugins.sagemaker.Trainingjob.TrainingJobOrBuilder {
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor;
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.class, flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.Builder.class);
+                flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -3672,17 +3672,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.Trainingjob.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor;
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob build() {
-        flyteidl.plugins.sagemaker.Trainingjob.TrainingJob result = buildPartial();
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob build() {
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -3690,8 +3690,8 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob build() {
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob buildPartial() {
-        flyteidl.plugins.sagemaker.Trainingjob.TrainingJob result = new flyteidl.plugins.sagemaker.Trainingjob.TrainingJob(this);
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob buildPartial() {
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(this);
         if (algorithmSpecificationBuilder_ == null) {
           result.algorithmSpecification_ = algorithmSpecification_;
         } else {
@@ -3741,16 +3741,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.Trainingjob.TrainingJob) {
-          return mergeFrom((flyteidl.plugins.sagemaker.Trainingjob.TrainingJob)other);
+        if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) {
+          return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.Trainingjob.TrainingJob other) {
-        if (other == flyteidl.plugins.sagemaker.Trainingjob.TrainingJob.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other) {
+        if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance()) return this;
         if (other.hasAlgorithmSpecification()) {
           mergeAlgorithmSpecification(other.getAlgorithmSpecification());
         }
@@ -3775,11 +3775,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.Trainingjob.TrainingJob parsedMessage = null;
+        flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.Trainingjob.TrainingJob) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3789,9 +3789,9 @@ public Builder mergeFrom(
         return this;
       }
 
-      private flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification algorithmSpecification_;
+      private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_;
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_;
       /**
        * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1;
        */
@@ -3801,9 +3801,9 @@ public boolean hasAlgorithmSpecification() {
       /**
        * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorithmSpecification() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() {
         if (algorithmSpecificationBuilder_ == null) {
-          return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_;
+          return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_;
         } else {
           return algorithmSpecificationBuilder_.getMessage();
         }
@@ -3811,7 +3811,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification getAlgorith
       /**
        * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1;
        */
-      public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification value) {
+      public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) {
         if (algorithmSpecificationBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -3828,7 +3828,7 @@ public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjob.
        * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1;
        */
       public Builder setAlgorithmSpecification(
-          flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder builderForValue) {
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder builderForValue) {
         if (algorithmSpecificationBuilder_ == null) {
           algorithmSpecification_ = builderForValue.build();
           onChanged();
@@ -3841,11 +3841,11 @@ public Builder setAlgorithmSpecification(
       /**
        * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1;
        */
-      public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification value) {
+      public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) {
         if (algorithmSpecificationBuilder_ == null) {
           if (algorithmSpecification_ != null) {
             algorithmSpecification_ =
-              flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial();
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial();
           } else {
             algorithmSpecification_ = value;
           }
@@ -3873,7 +3873,7 @@ public Builder clearAlgorithmSpecification() {
       /**
        * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() {
         
         onChanged();
         return getAlgorithmSpecificationFieldBuilder().getBuilder();
@@ -3881,23 +3881,23 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder get
       /**
        * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() {
         if (algorithmSpecificationBuilder_ != null) {
           return algorithmSpecificationBuilder_.getMessageOrBuilder();
         } else {
           return algorithmSpecification_ == null ?
-              flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_;
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_;
         }
       }
       /**
        * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder> 
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> 
           getAlgorithmSpecificationFieldBuilder() {
         if (algorithmSpecificationBuilder_ == null) {
           algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder>(
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder>(
                   getAlgorithmSpecification(),
                   getParentForChildren(),
                   isClean());
@@ -3906,9 +3906,9 @@ public flyteidl.plugins.sagemaker.Trainingjob.AlgorithmSpecificationOrBuilder ge
         return algorithmSpecificationBuilder_;
       }
 
-      private flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig trainingJobConfig_;
+      private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder> trainingJobConfigBuilder_;
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> trainingJobConfigBuilder_;
       /**
        * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
        */
@@ -3918,9 +3918,9 @@ public boolean hasTrainingJobConfig() {
       /**
        * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig getTrainingJobConfig() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() {
         if (trainingJobConfigBuilder_ == null) {
-          return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_;
+          return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_;
         } else {
           return trainingJobConfigBuilder_.getMessage();
         }
@@ -3928,7 +3928,7 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig getTrainingJobCo
       /**
        * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
        */
-      public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig value) {
+      public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) {
         if (trainingJobConfigBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -3945,7 +3945,7 @@ public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.Trainingjob.Train
        * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
        */
       public Builder setTrainingJobConfig(
-          flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder builderForValue) {
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder builderForValue) {
         if (trainingJobConfigBuilder_ == null) {
           trainingJobConfig_ = builderForValue.build();
           onChanged();
@@ -3958,11 +3958,11 @@ public Builder setTrainingJobConfig(
       /**
        * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
        */
-      public Builder mergeTrainingJobConfig(flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig value) {
+      public Builder mergeTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) {
         if (trainingJobConfigBuilder_ == null) {
           if (trainingJobConfig_ != null) {
             trainingJobConfig_ =
-              flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.newBuilder(trainingJobConfig_).mergeFrom(value).buildPartial();
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.newBuilder(trainingJobConfig_).mergeFrom(value).buildPartial();
           } else {
             trainingJobConfig_ = value;
           }
@@ -3990,7 +3990,7 @@ public Builder clearTrainingJobConfig() {
       /**
        * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder getTrainingJobConfigBuilder() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder getTrainingJobConfigBuilder() {
         
         onChanged();
         return getTrainingJobConfigFieldBuilder().getBuilder();
@@ -3998,23 +3998,23 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder getTrain
       /**
        * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
        */
-      public flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() {
         if (trainingJobConfigBuilder_ != null) {
           return trainingJobConfigBuilder_.getMessageOrBuilder();
         } else {
           return trainingJobConfig_ == null ?
-              flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_;
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_;
         }
       }
       /**
        * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder> 
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> 
           getTrainingJobConfigFieldBuilder() {
         if (trainingJobConfigBuilder_ == null) {
           trainingJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.Trainingjob.TrainingJobConfigOrBuilder>(
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder>(
                   getTrainingJobConfig(),
                   getParentForChildren(),
                   isClean());
@@ -4065,12 +4065,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob)
-    private static final flyteidl.plugins.sagemaker.Trainingjob.TrainingJob DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.Trainingjob.TrainingJob();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob();
     }
 
-    public static flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -4095,7 +4095,7 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -4135,29 +4135,30 @@ public flyteidl.plugins.sagemaker.Trainingjob.TrainingJob getDefaultInstanceForT
       descriptor;
   static {
     java.lang.String[] descriptorData = {
-      "\n,flyteidl/plugins/sagemaker/trainingjob" +
-      ".proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026A" +
-      "lgorithmSpecification\0229\n\ninput_mode\030\001 \001(" +
-      "\0162%.flyteidl.plugins.sagemaker.InputMode" +
-      "\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plug" +
-      "ins.sagemaker.AlgorithmName\022\031\n\021algorithm" +
-      "_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 \003" +
-      "(\0132C.flyteidl.plugins.sagemaker.Algorith" +
-      "mSpecification.MetricDefinition\032/\n\020Metri" +
-      "cDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t" +
-      "\"]\n\021TrainingJobConfig\022\026\n\016instance_count\030" +
-      "\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_s" +
-      "ize_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n\026" +
-      "max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wait" +
-      "_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022S" +
-      "\n\027algorithm_specification\030\001 \001(\01322.flytei" +
-      "dl.plugins.sagemaker.AlgorithmSpecificat" +
-      "ion\022J\n\023training_job_config\030\002 \001(\0132-.flyte" +
-      "idl.plugins.sagemaker.TrainingJobConfig\022" +
-      "\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004F" +
-      "ILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUST" +
-      "OM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fly" +
-      "teidl/gen/pb-go/flyteidl/pluginsb\006proto3"
+      "\n-flyteidl/plugins/sagemaker/training_jo" +
+      "b.proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026" +
+      "AlgorithmSpecification\0229\n\ninput_mode\030\001 \001" +
+      "(\0162%.flyteidl.plugins.sagemaker.InputMod" +
+      "e\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plu" +
+      "gins.sagemaker.AlgorithmName\022\031\n\021algorith" +
+      "m_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 " +
+      "\003(\0132C.flyteidl.plugins.sagemaker.Algorit" +
+      "hmSpecification.MetricDefinition\032/\n\020Metr" +
+      "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(" +
+      "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count" +
+      "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_" +
+      "size_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n" +
+      "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai" +
+      "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022" +
+      "S\n\027algorithm_specification\030\001 \001(\01322.flyte" +
+      "idl.plugins.sagemaker.AlgorithmSpecifica" +
+      "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt" +
+      "eidl.plugins.sagemaker.TrainingJobConfig" +
+      "\022\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004" +
+      "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS" +
+      "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl" +
+      "yteidl/gen/pb-go/flyteidl/pluginsb\006proto" +
+      "3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst
similarity index 92%
rename from gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst
rename to gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst
index 46a10d6c4..4bfaa3f53 100644
--- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpojob.proto.rst
+++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst
@@ -1,14 +1,14 @@
-.. _api_file_flyteidl/plugins/sagemaker/hpojob.proto:
+.. _api_file_flyteidl/plugins/sagemaker/hpo_job.proto:
 
-hpojob.proto
-=======================================
+hpo_job.proto
+========================================
 
 .. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningObjective:
 
 flyteidl.plugins.sagemaker.HyperparameterTuningObjective
 --------------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_
+`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_
 
 
 .. code-block:: json
@@ -34,7 +34,7 @@ metric_name
 Enum flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType
 -----------------------------------------------------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_
+`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_
 
 
 .. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE:
@@ -53,7 +53,7 @@ MAXIMIZE
 flyteidl.plugins.sagemaker.HPOJob
 ---------------------------------
 
-`[flyteidl.plugins.sagemaker.HPOJob proto] `_
+`[flyteidl.plugins.sagemaker.HPOJob proto] `_
 
 
 .. code-block:: json
@@ -86,7 +86,7 @@ max_parallel_training_jobs
 flyteidl.plugins.sagemaker.HPOJobConfig
 ---------------------------------------
 
-`[flyteidl.plugins.sagemaker.HPOJobConfig proto] `_
+`[flyteidl.plugins.sagemaker.HPOJobConfig proto] `_
 
 
 .. code-block:: json
@@ -124,7 +124,7 @@ training_job_early_stopping_type
 Enum flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy
 -------------------------------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy proto] `_
+`[flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy proto] `_
 
 
 .. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN:
@@ -143,7 +143,7 @@ RANDOM
 Enum flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType
 -------------------------------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType proto] `_
+`[flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType proto] `_
 
 
 .. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType.OFF:
diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst
index 22253dc32..20fab8e86 100644
--- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst
+++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst
@@ -6,6 +6,6 @@ sagemaker
 	:caption: sagemaker
 	:name: sagemakertoc
 
-	hpojob.proto
-	parameterranges.proto
-	trainingjob.proto
+	hpo_job.proto
+	parameter_ranges.proto
+	training_job.proto
diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst
similarity index 94%
rename from gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst
rename to gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst
index 520c352dc..609908086 100644
--- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameterranges.proto.rst
+++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst
@@ -1,14 +1,14 @@
-.. _api_file_flyteidl/plugins/sagemaker/parameterranges.proto:
+.. _api_file_flyteidl/plugins/sagemaker/parameter_ranges.proto:
 
-parameterranges.proto
-================================================
+parameter_ranges.proto
+=================================================
 
 .. _api_msg_flyteidl.plugins.sagemaker.ContinuousParameterRange:
 
 flyteidl.plugins.sagemaker.ContinuousParameterRange
 ---------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_
+`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_
 
 
 .. code-block:: json
@@ -41,7 +41,7 @@ scaling_type
 flyteidl.plugins.sagemaker.IntegerParameterRange
 ------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_
+`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_
 
 
 .. code-block:: json
@@ -74,7 +74,7 @@ scaling_type
 flyteidl.plugins.sagemaker.CategoricalParameterRange
 ----------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_
+`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_
 
 
 .. code-block:: json
@@ -95,7 +95,7 @@ values
 flyteidl.plugins.sagemaker.ParameterRangeOneOf
 ----------------------------------------------
 
-`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_
+`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_
 
 
 .. code-block:: json
@@ -137,7 +137,7 @@ categorical_parameter_range
 flyteidl.plugins.sagemaker.ParameterRanges
 ------------------------------------------
 
-`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_
+`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_
 
 
 .. code-block:: json
@@ -157,7 +157,7 @@ parameter_range_map
 Enum flyteidl.plugins.sagemaker.HyperparameterScalingType
 ---------------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_
+`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_
 
 
 .. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.AUTO:
diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst
similarity index 94%
rename from gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst
rename to gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst
index 9b9849893..0866d86bf 100644
--- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/trainingjob.proto.rst
+++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst
@@ -1,14 +1,14 @@
-.. _api_file_flyteidl/plugins/sagemaker/trainingjob.proto:
+.. _api_file_flyteidl/plugins/sagemaker/training_job.proto:
 
-trainingjob.proto
-============================================
+training_job.proto
+=============================================
 
 .. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification:
 
 flyteidl.plugins.sagemaker.AlgorithmSpecification
 -------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_
+`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_
 
 
 .. code-block:: json
@@ -45,7 +45,7 @@ metric_definitions
 flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition
 ------------------------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_
+`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_
 
 
 .. code-block:: json
@@ -73,7 +73,7 @@ regex
 flyteidl.plugins.sagemaker.TrainingJobConfig
 --------------------------------------------
 
-`[flyteidl.plugins.sagemaker.TrainingJobConfig proto] `_
+`[flyteidl.plugins.sagemaker.TrainingJobConfig proto] `_
 
 
 .. code-block:: json
@@ -106,7 +106,7 @@ volume_size_in_gb
 flyteidl.plugins.sagemaker.StoppingCondition
 --------------------------------------------
 
-`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_
+`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_
 
 
 .. code-block:: json
@@ -133,7 +133,7 @@ max_wait_time_in_seconds
 flyteidl.plugins.sagemaker.TrainingJob
 --------------------------------------
 
-`[flyteidl.plugins.sagemaker.TrainingJob proto] `_
+`[flyteidl.plugins.sagemaker.TrainingJob proto] `_
 
 
 .. code-block:: json
@@ -165,7 +165,7 @@ interruptible
 Enum flyteidl.plugins.sagemaker.InputMode
 -----------------------------------------
 
-`[flyteidl.plugins.sagemaker.InputMode proto] `_
+`[flyteidl.plugins.sagemaker.InputMode proto] `_
 
 
 .. _api_enum_value_flyteidl.plugins.sagemaker.InputMode.FILE:
@@ -184,7 +184,7 @@ PIPE
 Enum flyteidl.plugins.sagemaker.AlgorithmName
 ---------------------------------------------
 
-`[flyteidl.plugins.sagemaker.AlgorithmName proto] `_
+`[flyteidl.plugins.sagemaker.AlgorithmName proto] `_
 
 
 .. _api_enum_value_flyteidl.plugins.sagemaker.AlgorithmName.CUSTOM:
diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py
similarity index 79%
rename from gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py
rename to gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py
index 28f580659..140d64ce4 100644
--- a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2.py
+++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 # Generated by the protocol buffer compiler.  DO NOT EDIT!
-# source: flyteidl/plugins/sagemaker/hpojob.proto
+# source: flyteidl/plugins/sagemaker/hpo_job.proto
 
 import sys
 _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
@@ -13,18 +13,18 @@
 _sym_db = _symbol_database.Default()
 
 
-from flyteidl.plugins.sagemaker import parameterranges_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2
-from flyteidl.plugins.sagemaker import trainingjob_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2
+from flyteidl.plugins.sagemaker import parameter_ranges_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2
+from flyteidl.plugins.sagemaker import training_job_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2
 
 
 DESCRIPTOR = _descriptor.FileDescriptor(
-  name='flyteidl/plugins/sagemaker/hpojob.proto',
+  name='flyteidl/plugins/sagemaker/hpo_job.proto',
   package='flyteidl.plugins.sagemaker',
   syntax='proto3',
   serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'),
-  serialized_pb=_b('\n\'flyteidl/plugins/sagemaker/hpojob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x30\x66lyteidl/plugins/sagemaker/parameterranges.proto\x1a,flyteidl/plugins/sagemaker/trainingjob.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3')
+  serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3')
   ,
-  dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2.DESCRIPTOR,])
+  dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,])
 
 
 
@@ -45,8 +45,8 @@
   ],
   containing_type=None,
   serialized_options=None,
-  serialized_start=339,
-  serialized_end=402,
+  serialized_start=342,
+  serialized_end=405,
 )
 _sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE)
 
@@ -67,8 +67,8 @@
   ],
   containing_type=None,
   serialized_options=None,
-  serialized_start=938,
-  serialized_end=994,
+  serialized_start=941,
+  serialized_end=997,
 )
 _sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY)
 
@@ -89,8 +89,8 @@
   ],
   containing_type=None,
   serialized_options=None,
-  serialized_start=996,
-  serialized_end=1045,
+  serialized_start=999,
+  serialized_end=1048,
 )
 _sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE)
 
@@ -129,8 +129,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=168,
-  serialized_end=402,
+  serialized_start=171,
+  serialized_end=405,
 )
 
 
@@ -174,8 +174,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=405,
-  serialized_end=549,
+  serialized_start=408,
+  serialized_end=552,
 )
 
 
@@ -228,14 +228,14 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=552,
-  serialized_end=1045,
+  serialized_start=555,
+  serialized_end=1048,
 )
 
 _HYPERPARAMETERTUNINGOBJECTIVE.fields_by_name['objective_type'].enum_type = _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE
 _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE.containing_type = _HYPERPARAMETERTUNINGOBJECTIVE
-_HPOJOB.fields_by_name['training_job'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_trainingjob__pb2._TRAININGJOB
-_HPOJOBCONFIG.fields_by_name['hyperparameter_ranges'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_parameterranges__pb2._PARAMETERRANGES
+_HPOJOB.fields_by_name['training_job'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2._TRAININGJOB
+_HPOJOBCONFIG.fields_by_name['hyperparameter_ranges'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2._PARAMETERRANGES
 _HPOJOBCONFIG.fields_by_name['tuning_strategy'].enum_type = _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY
 _HPOJOBCONFIG.fields_by_name['tuning_objective'].message_type = _HYPERPARAMETERTUNINGOBJECTIVE
 _HPOJOBCONFIG.fields_by_name['training_job_early_stopping_type'].enum_type = _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE
@@ -248,21 +248,21 @@
 
 HyperparameterTuningObjective = _reflection.GeneratedProtocolMessageType('HyperparameterTuningObjective', (_message.Message,), dict(
   DESCRIPTOR = _HYPERPARAMETERTUNINGOBJECTIVE,
-  __module__ = 'flyteidl.plugins.sagemaker.hpojob_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective)
   ))
 _sym_db.RegisterMessage(HyperparameterTuningObjective)
 
 HPOJob = _reflection.GeneratedProtocolMessageType('HPOJob', (_message.Message,), dict(
   DESCRIPTOR = _HPOJOB,
-  __module__ = 'flyteidl.plugins.sagemaker.hpojob_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob)
   ))
 _sym_db.RegisterMessage(HPOJob)
 
 HPOJobConfig = _reflection.GeneratedProtocolMessageType('HPOJobConfig', (_message.Message,), dict(
   DESCRIPTOR = _HPOJOBCONFIG,
-  __module__ = 'flyteidl.plugins.sagemaker.hpojob_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig)
   ))
 _sym_db.RegisterMessage(HPOJobConfig)
diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2_grpc.py
similarity index 100%
rename from gen/pb_python/flyteidl/plugins/sagemaker/hpojob_pb2_grpc.py
rename to gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2_grpc.py
diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py
similarity index 84%
rename from gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py
rename to gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py
index 043c4b72e..896671ffe 100644
--- a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2.py
+++ b/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 # Generated by the protocol buffer compiler.  DO NOT EDIT!
-# source: flyteidl/plugins/sagemaker/parameterranges.proto
+# source: flyteidl/plugins/sagemaker/parameter_ranges.proto
 
 import sys
 _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
@@ -17,11 +17,11 @@
 
 
 DESCRIPTOR = _descriptor.FileDescriptor(
-  name='flyteidl/plugins/sagemaker/parameterranges.proto',
+  name='flyteidl/plugins/sagemaker/parameter_ranges.proto',
   package='flyteidl.plugins.sagemaker',
   syntax='proto3',
   serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'),
-  serialized_pb=_b('\n0flyteidl/plugins/sagemaker/parameterranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x8d\x01\n\x18\x43ontinuousParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x01\x12\x11\n\tmin_value\x18\x02 \x01(\x01\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x8a\x01\n\x15IntegerParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x03\x12\x11\n\tmin_value\x18\x02 \x01(\x03\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"+\n\x19\x43\x61tegoricalParameterRange\x12\x0e\n\x06values\x18\x01 \x03(\t\"\xbd\x02\n\x13ParameterRangeOneOf\x12Z\n\x1a\x63ontinuous_parameter_range\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00\x12T\n\x17integer_parameter_range\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00\x12\\\n\x1b\x63\x61tegorical_parameter_range\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00\x42\x16\n\x14parameter_range_type\"\xdd\x01\n\x0fParameterRanges\x12_\n\x13parameter_range_map\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry\x1ai\n\x16ParameterRangeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOf:\x02\x38\x01*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3')
+  serialized_pb=_b('\n1flyteidl/plugins/sagemaker/parameter_ranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x8d\x01\n\x18\x43ontinuousParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x01\x12\x11\n\tmin_value\x18\x02 \x01(\x01\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x8a\x01\n\x15IntegerParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x03\x12\x11\n\tmin_value\x18\x02 \x01(\x03\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"+\n\x19\x43\x61tegoricalParameterRange\x12\x0e\n\x06values\x18\x01 \x03(\t\"\xbd\x02\n\x13ParameterRangeOneOf\x12Z\n\x1a\x63ontinuous_parameter_range\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00\x12T\n\x17integer_parameter_range\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00\x12\\\n\x1b\x63\x61tegorical_parameter_range\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00\x42\x16\n\x14parameter_range_type\"\xdd\x01\n\x0fParameterRanges\x12_\n\x13parameter_range_map\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry\x1ai\n\x16ParameterRangeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOf:\x02\x38\x01*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3')
 )
 
 _HYPERPARAMETERSCALINGTYPE = _descriptor.EnumDescriptor(
@@ -49,8 +49,8 @@
   ],
   containing_type=None,
   serialized_options=None,
-  serialized_start=954,
-  serialized_end=1044,
+  serialized_start=955,
+  serialized_end=1045,
 )
 _sym_db.RegisterEnumDescriptor(_HYPERPARAMETERSCALINGTYPE)
 
@@ -102,8 +102,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=81,
-  serialized_end=222,
+  serialized_start=82,
+  serialized_end=223,
 )
 
 
@@ -147,8 +147,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=225,
-  serialized_end=363,
+  serialized_start=226,
+  serialized_end=364,
 )
 
 
@@ -178,8 +178,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=365,
-  serialized_end=408,
+  serialized_start=366,
+  serialized_end=409,
 )
 
 
@@ -226,8 +226,8 @@
       name='parameter_range_type', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.parameter_range_type',
       index=0, containing_type=None, fields=[]),
   ],
-  serialized_start=411,
-  serialized_end=728,
+  serialized_start=412,
+  serialized_end=729,
 )
 
 
@@ -264,8 +264,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=847,
-  serialized_end=952,
+  serialized_start=848,
+  serialized_end=953,
 )
 
 _PARAMETERRANGES = _descriptor.Descriptor(
@@ -294,8 +294,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=731,
-  serialized_end=952,
+  serialized_start=732,
+  serialized_end=953,
 )
 
 _CONTINUOUSPARAMETERRANGE.fields_by_name['scaling_type'].enum_type = _HYPERPARAMETERSCALINGTYPE
@@ -325,28 +325,28 @@
 
 ContinuousParameterRange = _reflection.GeneratedProtocolMessageType('ContinuousParameterRange', (_message.Message,), dict(
   DESCRIPTOR = _CONTINUOUSPARAMETERRANGE,
-  __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange)
   ))
 _sym_db.RegisterMessage(ContinuousParameterRange)
 
 IntegerParameterRange = _reflection.GeneratedProtocolMessageType('IntegerParameterRange', (_message.Message,), dict(
   DESCRIPTOR = _INTEGERPARAMETERRANGE,
-  __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange)
   ))
 _sym_db.RegisterMessage(IntegerParameterRange)
 
 CategoricalParameterRange = _reflection.GeneratedProtocolMessageType('CategoricalParameterRange', (_message.Message,), dict(
   DESCRIPTOR = _CATEGORICALPARAMETERRANGE,
-  __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange)
   ))
 _sym_db.RegisterMessage(CategoricalParameterRange)
 
 ParameterRangeOneOf = _reflection.GeneratedProtocolMessageType('ParameterRangeOneOf', (_message.Message,), dict(
   DESCRIPTOR = _PARAMETERRANGEONEOF,
-  __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf)
   ))
 _sym_db.RegisterMessage(ParameterRangeOneOf)
@@ -355,12 +355,12 @@
 
   ParameterRangeMapEntry = _reflection.GeneratedProtocolMessageType('ParameterRangeMapEntry', (_message.Message,), dict(
     DESCRIPTOR = _PARAMETERRANGES_PARAMETERRANGEMAPENTRY,
-    __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2'
+    __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2'
     # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry)
     ))
   ,
   DESCRIPTOR = _PARAMETERRANGES,
-  __module__ = 'flyteidl.plugins.sagemaker.parameterranges_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges)
   ))
 _sym_db.RegisterMessage(ParameterRanges)
diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2_grpc.py
similarity index 100%
rename from gen/pb_python/flyteidl/plugins/sagemaker/parameterranges_pb2_grpc.py
rename to gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2_grpc.py
diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py
similarity index 85%
rename from gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py
rename to gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py
index 88c222c95..581c4359c 100644
--- a/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2.py
+++ b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 # Generated by the protocol buffer compiler.  DO NOT EDIT!
-# source: flyteidl/plugins/sagemaker/trainingjob.proto
+# source: flyteidl/plugins/sagemaker/training_job.proto
 
 import sys
 _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
@@ -17,11 +17,11 @@
 
 
 DESCRIPTOR = _descriptor.FileDescriptor(
-  name='flyteidl/plugins/sagemaker/trainingjob.proto',
+  name='flyteidl/plugins/sagemaker/training_job.proto',
   package='flyteidl.plugins.sagemaker',
   syntax='proto3',
   serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'),
-  serialized_pb=_b('\n,flyteidl/plugins/sagemaker/trainingjob.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xc3\x02\n\x16\x41lgorithmSpecification\x12\x39\n\ninput_mode\x18\x01 \x01(\x0e\x32%.flyteidl.plugins.sagemaker.InputMode\x12\x41\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32).flyteidl.plugins.sagemaker.AlgorithmName\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"]\n\x11TrainingJobConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"\xc5\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12J\n\x13training_job_config\x18\x02 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.TrainingJobConfig\x12\x15\n\rinterruptible\x18\x04 \x01(\x08*\x1f\n\tInputMode\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01*(\n\rAlgorithmName\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3')
+  serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xc3\x02\n\x16\x41lgorithmSpecification\x12\x39\n\ninput_mode\x18\x01 \x01(\x0e\x32%.flyteidl.plugins.sagemaker.InputMode\x12\x41\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32).flyteidl.plugins.sagemaker.AlgorithmName\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"]\n\x11TrainingJobConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"\xc5\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12J\n\x13training_job_config\x18\x02 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.TrainingJobConfig\x12\x15\n\rinterruptible\x18\x04 \x01(\x08*\x1f\n\tInputMode\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01*(\n\rAlgorithmName\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3')
 )
 
 _INPUTMODE = _descriptor.EnumDescriptor(
@@ -41,8 +41,8 @@
   ],
   containing_type=None,
   serialized_options=None,
-  serialized_start=784,
-  serialized_end=815,
+  serialized_start=785,
+  serialized_end=816,
 )
 _sym_db.RegisterEnumDescriptor(_INPUTMODE)
 
@@ -64,8 +64,8 @@
   ],
   containing_type=None,
   serialized_options=None,
-  serialized_start=817,
-  serialized_end=857,
+  serialized_start=818,
+  serialized_end=858,
 )
 _sym_db.RegisterEnumDescriptor(_ALGORITHMNAME)
 
@@ -110,8 +110,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=353,
-  serialized_end=400,
+  serialized_start=354,
+  serialized_end=401,
 )
 
 _ALGORITHMSPECIFICATION = _descriptor.Descriptor(
@@ -161,8 +161,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=77,
-  serialized_end=400,
+  serialized_start=78,
+  serialized_end=401,
 )
 
 
@@ -206,8 +206,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=402,
-  serialized_end=495,
+  serialized_start=403,
+  serialized_end=496,
 )
 
 
@@ -244,8 +244,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=497,
-  serialized_end=582,
+  serialized_start=498,
+  serialized_end=583,
 )
 
 
@@ -289,8 +289,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=585,
-  serialized_end=782,
+  serialized_start=586,
+  serialized_end=783,
 )
 
 _ALGORITHMSPECIFICATION_METRICDEFINITION.containing_type = _ALGORITHMSPECIFICATION
@@ -311,12 +311,12 @@
 
   MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict(
     DESCRIPTOR = _ALGORITHMSPECIFICATION_METRICDEFINITION,
-    __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2'
+    __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2'
     # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
     ))
   ,
   DESCRIPTOR = _ALGORITHMSPECIFICATION,
-  __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification)
   ))
 _sym_db.RegisterMessage(AlgorithmSpecification)
@@ -324,21 +324,21 @@
 
 TrainingJobConfig = _reflection.GeneratedProtocolMessageType('TrainingJobConfig', (_message.Message,), dict(
   DESCRIPTOR = _TRAININGJOBCONFIG,
-  __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig)
   ))
 _sym_db.RegisterMessage(TrainingJobConfig)
 
 StoppingCondition = _reflection.GeneratedProtocolMessageType('StoppingCondition', (_message.Message,), dict(
   DESCRIPTOR = _STOPPINGCONDITION,
-  __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition)
   ))
 _sym_db.RegisterMessage(StoppingCondition)
 
 TrainingJob = _reflection.GeneratedProtocolMessageType('TrainingJob', (_message.Message,), dict(
   DESCRIPTOR = _TRAININGJOB,
-  __module__ = 'flyteidl.plugins.sagemaker.trainingjob_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob)
   ))
 _sym_db.RegisterMessage(TrainingJob)
diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2_grpc.py
similarity index 100%
rename from gen/pb_python/flyteidl/plugins/sagemaker/trainingjob_pb2_grpc.py
rename to gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2_grpc.py
diff --git a/protos/flyteidl/plugins/sagemaker/hpojob.proto b/protos/flyteidl/plugins/sagemaker/hpo_job.proto
similarity index 90%
rename from protos/flyteidl/plugins/sagemaker/hpojob.proto
rename to protos/flyteidl/plugins/sagemaker/hpo_job.proto
index 39972873c..03e2df15d 100644
--- a/protos/flyteidl/plugins/sagemaker/hpojob.proto
+++ b/protos/flyteidl/plugins/sagemaker/hpo_job.proto
@@ -4,8 +4,8 @@ package flyteidl.plugins.sagemaker;
 
 option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins";
 
-import "flyteidl/plugins/sagemaker/parameterranges.proto";
-import "flyteidl/plugins/sagemaker/trainingjob.proto";
+import "flyteidl/plugins/sagemaker/parameter_ranges.proto";
+import "flyteidl/plugins/sagemaker/training_job.proto";
 
 message HyperparameterTuningObjective {
     enum HyperparameterTuningObjectiveType {
diff --git a/protos/flyteidl/plugins/sagemaker/parameterranges.proto b/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto
similarity index 100%
rename from protos/flyteidl/plugins/sagemaker/parameterranges.proto
rename to protos/flyteidl/plugins/sagemaker/parameter_ranges.proto
diff --git a/protos/flyteidl/plugins/sagemaker/trainingjob.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto
similarity index 100%
rename from protos/flyteidl/plugins/sagemaker/trainingjob.proto
rename to protos/flyteidl/plugins/sagemaker/training_job.proto

From 68d083118110436eda7c48737403f8165b42843b Mon Sep 17 00:00:00 2001
From: Haytham AbuelFutuh 
Date: Thu, 23 Jul 2020 17:16:01 -0700
Subject: [PATCH 32/64] delete java

---
 gen/pb-java/flyteidl/admin/Common.java        | 20107 ---------------
 gen/pb-java/flyteidl/admin/Event.java         |  5194 ----
 .../flyteidl/admin/ExecutionOuterClass.java   | 20558 ----------------
 .../flyteidl/admin/LaunchPlanOuterClass.java  | 13189 ----------
 .../admin/MatchableResourceOuterClass.java    |  8238 -------
 .../admin/NodeExecutionOuterClass.java        | 11025 ---------
 gen/pb-java/flyteidl/admin/Notification.java  |  1325 -
 .../ProjectDomainAttributesOuterClass.java    |  4856 ----
 .../flyteidl/admin/ProjectOuterClass.java     |  4299 ----
 .../flyteidl/admin/ScheduleOuterClass.java    |  1848 --
 .../admin/TaskExecutionOuterClass.java        |  8862 -------
 .../flyteidl/admin/TaskOuterClass.java        |  5102 ----
 .../admin/WorkflowAttributesOuterClass.java   |  5375 ----
 .../flyteidl/admin/WorkflowOuterClass.java    |  5646 -----
 gen/pb-java/flyteidl/core/Compiler.java       |  5243 ----
 gen/pb-java/flyteidl/core/Condition.java      |  4070 ---
 gen/pb-java/flyteidl/core/DynamicJob.java     |  2542 --
 gen/pb-java/flyteidl/core/Errors.java         |  1882 --
 gen/pb-java/flyteidl/core/Execution.java      |  5764 -----
 .../flyteidl/core/IdentifierOuterClass.java   |  4043 ---
 gen/pb-java/flyteidl/core/Interface.java      |  4503 ----
 gen/pb-java/flyteidl/core/Literals.java       | 14859 -----------
 gen/pb-java/flyteidl/core/Tasks.java          | 13257 ----------
 gen/pb-java/flyteidl/core/Types.java          |  6407 -----
 gen/pb-java/flyteidl/core/Workflow.java       | 14708 -----------
 .../core/WorkflowClosureOuterClass.java       |  1251 -
 gen/pb-java/flyteidl/event/Event.java         |  8733 -------
 .../flyteidl/plugins/ArrayJobOuterClass.java  |   759 -
 gen/pb-java/flyteidl/plugins/Presto.java      |  1031 -
 gen/pb-java/flyteidl/plugins/Pytorch.java     |   560 -
 gen/pb-java/flyteidl/plugins/Qubole.java      |  2700 --
 gen/pb-java/flyteidl/plugins/Sidecar.java     |   817 -
 gen/pb-java/flyteidl/plugins/Spark.java       |  2179 --
 gen/pb-java/flyteidl/plugins/Tensorflow.java  |   705 -
 .../flyteidl/plugins/WaitableOuterClass.java  |   911 -
 .../flyteidl/plugins/sagemaker/HpoJob.java    |  2824 ---
 .../sagemaker/ParameterRangesOuterClass.java  |  3973 ---
 .../sagemaker/TrainingJobOuterClass.java      |  4208 ----
 gen/pb-java/flyteidl/service/Admin.java       |   395 -
 39 files changed, 223948 deletions(-)
 delete mode 100644 gen/pb-java/flyteidl/admin/Common.java
 delete mode 100644 gen/pb-java/flyteidl/admin/Event.java
 delete mode 100644 gen/pb-java/flyteidl/admin/ExecutionOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/admin/Notification.java
 delete mode 100644 gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/admin/ProjectOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/admin/ScheduleOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/admin/TaskOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/admin/WorkflowOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/core/Compiler.java
 delete mode 100644 gen/pb-java/flyteidl/core/Condition.java
 delete mode 100644 gen/pb-java/flyteidl/core/DynamicJob.java
 delete mode 100644 gen/pb-java/flyteidl/core/Errors.java
 delete mode 100644 gen/pb-java/flyteidl/core/Execution.java
 delete mode 100644 gen/pb-java/flyteidl/core/IdentifierOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/core/Interface.java
 delete mode 100644 gen/pb-java/flyteidl/core/Literals.java
 delete mode 100644 gen/pb-java/flyteidl/core/Tasks.java
 delete mode 100644 gen/pb-java/flyteidl/core/Types.java
 delete mode 100644 gen/pb-java/flyteidl/core/Workflow.java
 delete mode 100644 gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/event/Event.java
 delete mode 100644 gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/plugins/Presto.java
 delete mode 100644 gen/pb-java/flyteidl/plugins/Pytorch.java
 delete mode 100644 gen/pb-java/flyteidl/plugins/Qubole.java
 delete mode 100644 gen/pb-java/flyteidl/plugins/Sidecar.java
 delete mode 100644 gen/pb-java/flyteidl/plugins/Spark.java
 delete mode 100644 gen/pb-java/flyteidl/plugins/Tensorflow.java
 delete mode 100644 gen/pb-java/flyteidl/plugins/WaitableOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java
 delete mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java
 delete mode 100644 gen/pb-java/flyteidl/service/Admin.java

diff --git a/gen/pb-java/flyteidl/admin/Common.java b/gen/pb-java/flyteidl/admin/Common.java
deleted file mode 100644
index aedc37089..000000000
--- a/gen/pb-java/flyteidl/admin/Common.java
+++ /dev/null
@@ -1,20107 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: flyteidl/admin/common.proto
-
-package flyteidl.admin;
-
-public final class Common {
-  private Common() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
-
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
-  }
-  /**
-   * 
-   * The status of the named entity is used to control its visibility in the UI.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.NamedEntityState} - */ - public enum NamedEntityState - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * By default, all named entities are considered active and under development.
-     * 
- * - * NAMED_ENTITY_ACTIVE = 0; - */ - NAMED_ENTITY_ACTIVE(0), - /** - *
-     * Archived named entities are no longer visible in the UI.
-     * 
- * - * NAMED_ENTITY_ARCHIVED = 1; - */ - NAMED_ENTITY_ARCHIVED(1), - /** - *
-     * System generated entities that aren't explicitly created or managed by a user.
-     * 
- * - * SYSTEM_GENERATED = 2; - */ - SYSTEM_GENERATED(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * By default, all named entities are considered active and under development.
-     * 
- * - * NAMED_ENTITY_ACTIVE = 0; - */ - public static final int NAMED_ENTITY_ACTIVE_VALUE = 0; - /** - *
-     * Archived named entities are no longer visible in the UI.
-     * 
- * - * NAMED_ENTITY_ARCHIVED = 1; - */ - public static final int NAMED_ENTITY_ARCHIVED_VALUE = 1; - /** - *
-     * System generated entities that aren't explicitly created or managed by a user.
-     * 
- * - * SYSTEM_GENERATED = 2; - */ - public static final int SYSTEM_GENERATED_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NamedEntityState valueOf(int value) { - return forNumber(value); - } - - public static NamedEntityState forNumber(int value) { - switch (value) { - case 0: return NAMED_ENTITY_ACTIVE; - case 1: return NAMED_ENTITY_ARCHIVED; - case 2: return SYSTEM_GENERATED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - NamedEntityState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public NamedEntityState findValueByNumber(int number) { - return NamedEntityState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.admin.Common.getDescriptor().getEnumTypes().get(0); - } - - private static final NamedEntityState[] VALUES = values(); - - public static NamedEntityState 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 NamedEntityState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.NamedEntityState) - } - - public interface NamedEntityIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * User provided value for the resource.
-     * The combination of project + domain + name uniquely identifies the resource.
-     * +optional - in certain contexts - like 'List API', 'Launch plans'
-     * 
- * - * string name = 3; - */ - java.lang.String getName(); - /** - *
-     * User provided value for the resource.
-     * The combination of project + domain + name uniquely identifies the resource.
-     * +optional - in certain contexts - like 'List API', 'Launch plans'
-     * 
- * - * string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - *
-   * Encapsulation of fields that identifies a Flyte resource.
-   * A resource can internally have multiple versions.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} - */ - public static final class NamedEntityIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifier) - NamedEntityIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityIdentifier.newBuilder() to construct. - private NamedEntityIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityIdentifier() { - project_ = ""; - domain_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityIdentifier( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - *
-     * User provided value for the resource.
-     * The combination of project + domain + name uniquely identifies the resource.
-     * +optional - in certain contexts - like 'List API', 'Launch plans'
-     * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-     * User provided value for the resource.
-     * The combination of project + domain + name uniquely identifies the resource.
-     * +optional - in certain contexts - like 'List API', 'Launch plans'
-     * 
- * - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof flyteidl.admin.Common.NamedEntityIdentifier)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityIdentifier other = (flyteidl.admin.Common.NamedEntityIdentifier) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifier 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 flyteidl.admin.Common.NamedEntityIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifier 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 flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifier 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(flyteidl.admin.Common.NamedEntityIdentifier 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; - } - /** - *
-     * Encapsulation of fields that identifies a Flyte resource.
-     * A resource can internally have multiple versions.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifier) - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityIdentifier.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(); - project_ = ""; - - domain_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifier build() { - flyteidl.admin.Common.NamedEntityIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifier buildPartial() { - flyteidl.admin.Common.NamedEntityIdentifier result = new flyteidl.admin.Common.NamedEntityIdentifier(this); - result.project_ = project_; - result.domain_ = domain_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.admin.Common.NamedEntityIdentifier) { - return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifier other) { - if (other == flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - flyteidl.admin.Common.NamedEntityIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityIdentifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifier) - private static final flyteidl.admin.Common.NamedEntityIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifier(); - } - - public static flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityIdentifier(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 flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Common description across all versions of the entity
-     * +optional
-     * 
- * - * string description = 1; - */ - java.lang.String getDescription(); - /** - *
-     * Common description across all versions of the entity
-     * +optional
-     * 
- * - * string description = 1; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-     * Shared state across all version of the entity
-     * At this point in time, only workflow entities can have their state archived.
-     * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - int getStateValue(); - /** - *
-     * Shared state across all version of the entity
-     * At this point in time, only workflow entities can have their state archived.
-     * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - flyteidl.admin.Common.NamedEntityState getState(); - } - /** - * Protobuf type {@code flyteidl.admin.NamedEntityMetadata} - */ - public static final class NamedEntityMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityMetadata) - NamedEntityMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityMetadata.newBuilder() to construct. - private NamedEntityMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityMetadata() { - description_ = ""; - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityMetadata( - 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(); - - description_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityMetadata.class, flyteidl.admin.Common.NamedEntityMetadata.Builder.class); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object description_; - /** - *
-     * Common description across all versions of the entity
-     * +optional
-     * 
- * - * string description = 1; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - *
-     * Common description across all versions of the entity
-     * +optional
-     * 
- * - * string description = 1; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_; - /** - *
-     * Shared state across all version of the entity
-     * At this point in time, only workflow entities can have their state archived.
-     * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * Shared state across all version of the entity
-     * At this point in time, only workflow entities can have their state archived.
-     * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public flyteidl.admin.Common.NamedEntityState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.Common.NamedEntityState result = flyteidl.admin.Common.NamedEntityState.valueOf(state_); - return result == null ? flyteidl.admin.Common.NamedEntityState.UNRECOGNIZED : result; - } - - 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 (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); - } - if (state_ != flyteidl.admin.Common.NamedEntityState.NAMED_ENTITY_ACTIVE.getNumber()) { - output.writeEnum(2, state_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); - } - if (state_ != flyteidl.admin.Common.NamedEntityState.NAMED_ENTITY_ACTIVE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); - } - 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 flyteidl.admin.Common.NamedEntityMetadata)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityMetadata other = (flyteidl.admin.Common.NamedEntityMetadata) obj; - - if (!getDescription() - .equals(other.getDescription())) return false; - if (state_ != other.state_) 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) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityMetadata 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 flyteidl.admin.Common.NamedEntityMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityMetadata 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 flyteidl.admin.Common.NamedEntityMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityMetadata 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(flyteidl.admin.Common.NamedEntityMetadata 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 flyteidl.admin.NamedEntityMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityMetadata) - flyteidl.admin.Common.NamedEntityMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityMetadata.class, flyteidl.admin.Common.NamedEntityMetadata.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityMetadata.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(); - description_ = ""; - - state_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityMetadata getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityMetadata build() { - flyteidl.admin.Common.NamedEntityMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityMetadata buildPartial() { - flyteidl.admin.Common.NamedEntityMetadata result = new flyteidl.admin.Common.NamedEntityMetadata(this); - result.description_ = description_; - result.state_ = state_; - 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 flyteidl.admin.Common.NamedEntityMetadata) { - return mergeFrom((flyteidl.admin.Common.NamedEntityMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityMetadata other) { - if (other == flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance()) return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - 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 { - flyteidl.admin.Common.NamedEntityMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private int state_ = 0; - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public flyteidl.admin.Common.NamedEntityState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.Common.NamedEntityState result = flyteidl.admin.Common.NamedEntityState.valueOf(state_); - return result == null ? flyteidl.admin.Common.NamedEntityState.UNRECOGNIZED : result; - } - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public Builder setState(flyteidl.admin.Common.NamedEntityState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public Builder clearState() { - - state_ = 0; - 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:flyteidl.admin.NamedEntityMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityMetadata) - private static final flyteidl.admin.Common.NamedEntityMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityMetadata(); - } - - public static flyteidl.admin.Common.NamedEntityMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityMetadata(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 flyteidl.admin.Common.NamedEntityMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntity) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - boolean hasId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - boolean hasMetadata(); - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - flyteidl.admin.Common.NamedEntityMetadata getMetadata(); - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder(); - } - /** - *
-   * Describes information common to a NamedEntity, identified by a project /
-   * domain / name / resource type combination
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntity} - */ - public static final class NamedEntity extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntity) - NamedEntityOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntity.newBuilder() to construct. - private NamedEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntity() { - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntity( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.Common.NamedEntityMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.admin.Common.NamedEntityMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntity.class, flyteidl.admin.Common.NamedEntity.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int ID_FIELD_NUMBER = 2; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private flyteidl.admin.Common.NamedEntityMetadata metadata_; - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { - return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (id_ != null) { - output.writeMessage(2, getId()); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (id_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getId()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - 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 flyteidl.admin.Common.NamedEntity)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntity other = (flyteidl.admin.Common.NamedEntity) obj; - - if (resourceType_ != other.resourceType_) return false; - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) 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) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntity 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 flyteidl.admin.Common.NamedEntity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntity 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 flyteidl.admin.Common.NamedEntity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntity 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(flyteidl.admin.Common.NamedEntity 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; - } - /** - *
-     * Describes information common to a NamedEntity, identified by a project /
-     * domain / name / resource type combination
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntity} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntity) - flyteidl.admin.Common.NamedEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntity.class, flyteidl.admin.Common.NamedEntity.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntity.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(); - resourceType_ = 0; - - if (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntity getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntity.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntity build() { - flyteidl.admin.Common.NamedEntity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntity buildPartial() { - flyteidl.admin.Common.NamedEntity result = new flyteidl.admin.Common.NamedEntity(this); - result.resourceType_ = resourceType_; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.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 flyteidl.admin.Common.NamedEntity) { - return mergeFrom((flyteidl.admin.Common.NamedEntity)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntity other) { - if (other == flyteidl.admin.Common.NamedEntity.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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 { - flyteidl.admin.Common.NamedEntity parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntity) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.Common.NamedEntityMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> metadataBuilder_; - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder setMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder setMetadata( - flyteidl.admin.Common.NamedEntityMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder mergeMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.admin.Common.NamedEntityMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } - } - /** - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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:flyteidl.admin.NamedEntity) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntity) - private static final flyteidl.admin.Common.NamedEntity DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntity(); - } - - public static flyteidl.admin.Common.NamedEntity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntity(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 flyteidl.admin.Common.NamedEntity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SortOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Sort) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates an attribute to sort the response values.
-     * TODO(katrogan): Add string validation here. This should never be empty.
-     * 
- * - * string key = 1; - */ - java.lang.String getKey(); - /** - *
-     * Indicates an attribute to sort the response values.
-     * TODO(katrogan): Add string validation here. This should never be empty.
-     * 
- * - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - *
-     * Indicates the direction to apply sort key for response values.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - int getDirectionValue(); - /** - *
-     * Indicates the direction to apply sort key for response values.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - flyteidl.admin.Common.Sort.Direction getDirection(); - } - /** - *
-   * Species sort ordering in a list request.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Sort} - */ - public static final class Sort extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Sort) - SortOrBuilder { - private static final long serialVersionUID = 0L; - // Use Sort.newBuilder() to construct. - private Sort(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Sort() { - key_ = ""; - direction_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Sort( - 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(); - - key_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - direction_ = rawValue; - 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 flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.admin.Sort.Direction} - */ - public enum Direction - implements com.google.protobuf.ProtocolMessageEnum { - /** - * DESCENDING = 0; - */ - DESCENDING(0), - /** - * ASCENDING = 1; - */ - ASCENDING(1), - UNRECOGNIZED(-1), - ; - - /** - * DESCENDING = 0; - */ - public static final int DESCENDING_VALUE = 0; - /** - * ASCENDING = 1; - */ - public static final int ASCENDING_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Direction valueOf(int value) { - return forNumber(value); - } - - public static Direction forNumber(int value) { - switch (value) { - case 0: return DESCENDING; - case 1: return ASCENDING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Direction> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Direction findValueByNumber(int number) { - return Direction.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.admin.Common.Sort.getDescriptor().getEnumTypes().get(0); - } - - private static final Direction[] VALUES = values(); - - public static Direction 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 Direction(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.Sort.Direction) - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - *
-     * Indicates an attribute to sort the response values.
-     * TODO(katrogan): Add string validation here. This should never be empty.
-     * 
- * - * string key = 1; - */ - 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; - } - } - /** - *
-     * Indicates an attribute to sort the response values.
-     * TODO(katrogan): Add string validation here. This should never be empty.
-     * 
- * - * string key = 1; - */ - 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 DIRECTION_FIELD_NUMBER = 2; - private int direction_; - /** - *
-     * Indicates the direction to apply sort key for response values.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public int getDirectionValue() { - return direction_; - } - /** - *
-     * Indicates the direction to apply sort key for response values.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public flyteidl.admin.Common.Sort.Direction getDirection() { - @SuppressWarnings("deprecation") - flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); - return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; - } - - 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 (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { - output.writeEnum(2, direction_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, direction_); - } - 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 flyteidl.admin.Common.Sort)) { - return super.equals(obj); - } - flyteidl.admin.Common.Sort other = (flyteidl.admin.Common.Sort) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (direction_ != other.direction_) 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) + DIRECTION_FIELD_NUMBER; - hash = (53 * hash) + direction_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.Sort parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Sort parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Sort parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Sort parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Sort parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Sort parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Sort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Sort 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 flyteidl.admin.Common.Sort parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Sort 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 flyteidl.admin.Common.Sort parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Sort 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(flyteidl.admin.Common.Sort 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; - } - /** - *
-     * Species sort ordering in a list request.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Sort} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Sort) - flyteidl.admin.Common.SortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); - } - - // Construct using flyteidl.admin.Common.Sort.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_ = ""; - - direction_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.Sort getDefaultInstanceForType() { - return flyteidl.admin.Common.Sort.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.Sort build() { - flyteidl.admin.Common.Sort result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.Sort buildPartial() { - flyteidl.admin.Common.Sort result = new flyteidl.admin.Common.Sort(this); - result.key_ = key_; - result.direction_ = direction_; - 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 flyteidl.admin.Common.Sort) { - return mergeFrom((flyteidl.admin.Common.Sort)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.Sort other) { - if (other == flyteidl.admin.Common.Sort.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.direction_ != 0) { - setDirectionValue(other.getDirectionValue()); - } - 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 { - flyteidl.admin.Common.Sort parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.Sort) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       * Indicates an attribute to sort the response values.
-       * TODO(katrogan): Add string validation here. This should never be empty.
-       * 
- * - * string key = 1; - */ - 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; - } - } - /** - *
-       * Indicates an attribute to sort the response values.
-       * TODO(katrogan): Add string validation here. This should never be empty.
-       * 
- * - * string key = 1; - */ - 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; - } - } - /** - *
-       * Indicates an attribute to sort the response values.
-       * TODO(katrogan): Add string validation here. This should never be empty.
-       * 
- * - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates an attribute to sort the response values.
-       * TODO(katrogan): Add string validation here. This should never be empty.
-       * 
- * - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       * Indicates an attribute to sort the response values.
-       * TODO(katrogan): Add string validation here. This should never be empty.
-       * 
- * - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private int direction_ = 0; - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public int getDirectionValue() { - return direction_; - } - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public Builder setDirectionValue(int value) { - direction_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public flyteidl.admin.Common.Sort.Direction getDirection() { - @SuppressWarnings("deprecation") - flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); - return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; - } - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public Builder setDirection(flyteidl.admin.Common.Sort.Direction value) { - if (value == null) { - throw new NullPointerException(); - } - - direction_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public Builder clearDirection() { - - direction_ = 0; - 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:flyteidl.admin.Sort) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Sort) - private static final flyteidl.admin.Common.Sort DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.Sort(); - } - - public static flyteidl.admin.Common.Sort getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Sort parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Sort(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 flyteidl.admin.Common.Sort getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityIdentifierListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 3; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 6; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 6; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - } - /** - *
-   * Represents a request structure to list identifiers.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} - */ - public static final class NamedEntityIdentifierListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierListRequest) - NamedEntityIdentifierListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityIdentifierListRequest.newBuilder() to construct. - private NamedEntityIdentifierListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityIdentifierListRequest() { - project_ = ""; - domain_ = ""; - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityIdentifierListRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 24: { - - limit_ = input.readUInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LIMIT_FIELD_NUMBER = 3; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - public static final int FILTERS_FIELD_NUMBER = 6; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 6; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - 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(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 6; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (limit_ != 0) { - output.writeUInt32(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, filters_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, filters_); - } - 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityIdentifierListRequest other = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) return false; - } - if (!getFilters() - .equals(other.getFilters())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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(flyteidl.admin.Common.NamedEntityIdentifierListRequest 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; - } - /** - *
-     * Represents a request structure to list identifiers.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierListRequest) - flyteidl.admin.Common.NamedEntityIdentifierListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityIdentifierListRequest.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(); - project_ = ""; - - domain_ = ""; - - limit_ = 0; - - token_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - filters_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierListRequest build() { - flyteidl.admin.Common.NamedEntityIdentifierListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierListRequest buildPartial() { - flyteidl.admin.Common.NamedEntityIdentifierListRequest result = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.limit_ = limit_; - result.token_ = token_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.build(); - } - result.filters_ = filters_; - 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest) { - return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierListRequest other) { - if (other == flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - 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 { - flyteidl.admin.Common.NamedEntityIdentifierListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 3; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 3; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = 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:flyteidl.admin.NamedEntityIdentifierListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierListRequest) - private static final flyteidl.admin.Common.NamedEntityIdentifierListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(); - } - - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityIdentifierListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityIdentifierListRequest(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 flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 2; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 2; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 3; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 3; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 4; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 5; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 5; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 7; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 7; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - } - /** - *
-   * Represents a request structure to list NamedEntity objects
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityListRequest} - */ - public static final class NamedEntityListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityListRequest) - NamedEntityListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityListRequest.newBuilder() to construct. - private NamedEntityListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityListRequest() { - resourceType_ = 0; - project_ = ""; - domain_ = ""; - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityListRequest( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 32: { - - limit_ = input.readUInt32(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 50: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityListRequest.class, flyteidl.admin.Common.NamedEntityListRequest.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int PROJECT_FIELD_NUMBER = 2; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 2; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 2; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 3; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LIMIT_FIELD_NUMBER = 4; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 4; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 5; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 5; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 5; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 6; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - public static final int FILTERS_FIELD_NUMBER = 7; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 7; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - 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(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 7; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); - } - if (limit_ != 0) { - output.writeUInt32(4, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, token_); - } - if (sortBy_ != null) { - output.writeMessage(6, getSortBy()); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filters_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, token_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSortBy()); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filters_); - } - 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 flyteidl.admin.Common.NamedEntityListRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityListRequest other = (flyteidl.admin.Common.NamedEntityListRequest) obj; - - if (resourceType_ != other.resourceType_) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) return false; - } - if (!getFilters() - .equals(other.getFilters())) 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) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityListRequest 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 flyteidl.admin.Common.NamedEntityListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityListRequest 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 flyteidl.admin.Common.NamedEntityListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityListRequest 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(flyteidl.admin.Common.NamedEntityListRequest 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; - } - /** - *
-     * Represents a request structure to list NamedEntity objects
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityListRequest) - flyteidl.admin.Common.NamedEntityListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityListRequest.class, flyteidl.admin.Common.NamedEntityListRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityListRequest.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(); - resourceType_ = 0; - - project_ = ""; - - domain_ = ""; - - limit_ = 0; - - token_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - filters_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityListRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityListRequest build() { - flyteidl.admin.Common.NamedEntityListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityListRequest buildPartial() { - flyteidl.admin.Common.NamedEntityListRequest result = new flyteidl.admin.Common.NamedEntityListRequest(this); - result.resourceType_ = resourceType_; - result.project_ = project_; - result.domain_ = domain_; - result.limit_ = limit_; - result.token_ = token_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.build(); - } - result.filters_ = filters_; - 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 flyteidl.admin.Common.NamedEntityListRequest) { - return mergeFrom((flyteidl.admin.Common.NamedEntityListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityListRequest other) { - if (other == flyteidl.admin.Common.NamedEntityListRequest.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - 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 { - flyteidl.admin.Common.NamedEntityListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 2; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 2; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 2; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 2; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 2; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 4; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 4; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 4; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = 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:flyteidl.admin.NamedEntityListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityListRequest) - private static final flyteidl.admin.Common.NamedEntityListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityListRequest(); - } - - public static flyteidl.admin.Common.NamedEntityListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityListRequest(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 flyteidl.admin.Common.NamedEntityListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityIdentifierListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - java.util.List - getEntitiesList(); - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index); - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - int getEntitiesCount(); - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - java.util.List - getEntitiesOrBuilderList(); - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of NamedEntityIdentifiers.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} - */ - public static final class NamedEntityIdentifierList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierList) - NamedEntityIdentifierListOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityIdentifierList.newBuilder() to construct. - private NamedEntityIdentifierList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityIdentifierList() { - entities_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityIdentifierList( - 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)) { - entities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entities_.add( - input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); - } - - private int bitField0_; - public static final int ENTITIES_FIELD_NUMBER = 1; - private java.util.List entities_; - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List getEntitiesList() { - return entities_; - } - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List - getEntitiesOrBuilderList() { - return entities_; - } - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public int getEntitiesCount() { - return entities_.size(); - } - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { - return entities_.get(index); - } - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( - int index) { - return entities_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < entities_.size(); i++) { - output.writeMessage(1, entities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.Common.NamedEntityIdentifierList)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityIdentifierList other = (flyteidl.admin.Common.NamedEntityIdentifierList) obj; - - if (!getEntitiesList() - .equals(other.getEntitiesList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getEntitiesCount() > 0) { - hash = (37 * hash) + ENTITIES_FIELD_NUMBER; - hash = (53 * hash) + getEntitiesList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList 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 flyteidl.admin.Common.NamedEntityIdentifierList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList 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 flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList 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(flyteidl.admin.Common.NamedEntityIdentifierList 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; - } - /** - *
-     * Represents a list of NamedEntityIdentifiers.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierList) - flyteidl.admin.Common.NamedEntityIdentifierListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityIdentifierList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEntitiesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (entitiesBuilder_ == null) { - entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - entitiesBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierList build() { - flyteidl.admin.Common.NamedEntityIdentifierList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierList buildPartial() { - flyteidl.admin.Common.NamedEntityIdentifierList result = new flyteidl.admin.Common.NamedEntityIdentifierList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (entitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entities_ = entities_; - } else { - result.entities_ = entitiesBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.Common.NamedEntityIdentifierList) { - return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierList other) { - if (other == flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance()) return this; - if (entitiesBuilder_ == null) { - if (!other.entities_.isEmpty()) { - if (entities_.isEmpty()) { - entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntitiesIsMutable(); - entities_.addAll(other.entities_); - } - onChanged(); - } - } else { - if (!other.entities_.isEmpty()) { - if (entitiesBuilder_.isEmpty()) { - entitiesBuilder_.dispose(); - entitiesBuilder_ = null; - entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); - entitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntitiesFieldBuilder() : null; - } else { - entitiesBuilder_.addAllMessages(other.entities_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.Common.NamedEntityIdentifierList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List entities_ = - java.util.Collections.emptyList(); - private void ensureEntitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entities_ = new java.util.ArrayList(entities_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> entitiesBuilder_; - - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List getEntitiesList() { - if (entitiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entities_); - } else { - return entitiesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public int getEntitiesCount() { - if (entitiesBuilder_ == null) { - return entities_.size(); - } else { - return entitiesBuilder_.getCount(); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { - if (entitiesBuilder_ == null) { - return entities_.get(index); - } else { - return entitiesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder setEntities( - int index, flyteidl.admin.Common.NamedEntityIdentifier value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.set(index, value); - onChanged(); - } else { - entitiesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder setEntities( - int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.set(index, builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addEntities(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.add(value); - onChanged(); - } else { - entitiesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addEntities( - int index, flyteidl.admin.Common.NamedEntityIdentifier value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.add(index, value); - onChanged(); - } else { - entitiesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addEntities( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.add(builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addEntities( - int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.add(index, builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addAllEntities( - java.lang.Iterable values) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entities_); - onChanged(); - } else { - entitiesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder clearEntities() { - if (entitiesBuilder_ == null) { - entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entitiesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder removeEntities(int index) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.remove(index); - onChanged(); - } else { - entitiesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getEntitiesBuilder( - int index) { - return getEntitiesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( - int index) { - if (entitiesBuilder_ == null) { - return entities_.get(index); } else { - return entitiesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List - getEntitiesOrBuilderList() { - if (entitiesBuilder_ != null) { - return entitiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entities_); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder() { - return getEntitiesFieldBuilder().addBuilder( - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder( - int index) { - return getEntitiesFieldBuilder().addBuilder( - index, flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List - getEntitiesBuilderList() { - return getEntitiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getEntitiesFieldBuilder() { - if (entitiesBuilder_ == null) { - entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - entities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - entities_ = null; - } - return entitiesBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.NamedEntityIdentifierList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierList) - private static final flyteidl.admin.Common.NamedEntityIdentifierList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierList(); - } - - public static flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityIdentifierList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityIdentifierList(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 flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - java.util.List - getEntitiesList(); - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - flyteidl.admin.Common.NamedEntity getEntities(int index); - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - int getEntitiesCount(); - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - java.util.List - getEntitiesOrBuilderList(); - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of NamedEntityIdentifiers.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityList} - */ - public static final class NamedEntityList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityList) - NamedEntityListOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityList.newBuilder() to construct. - private NamedEntityList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityList() { - entities_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityList( - 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)) { - entities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entities_.add( - input.readMessage(flyteidl.admin.Common.NamedEntity.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityList.class, flyteidl.admin.Common.NamedEntityList.Builder.class); - } - - private int bitField0_; - public static final int ENTITIES_FIELD_NUMBER = 1; - private java.util.List entities_; - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List getEntitiesList() { - return entities_; - } - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List - getEntitiesOrBuilderList() { - return entities_; - } - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public int getEntitiesCount() { - return entities_.size(); - } - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity getEntities(int index) { - return entities_.get(index); - } - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( - int index) { - return entities_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < entities_.size(); i++) { - output.writeMessage(1, entities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.Common.NamedEntityList)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityList other = (flyteidl.admin.Common.NamedEntityList) obj; - - if (!getEntitiesList() - .equals(other.getEntitiesList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getEntitiesCount() > 0) { - hash = (37 * hash) + ENTITIES_FIELD_NUMBER; - hash = (53 * hash) + getEntitiesList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityList 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 flyteidl.admin.Common.NamedEntityList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityList 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 flyteidl.admin.Common.NamedEntityList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityList 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(flyteidl.admin.Common.NamedEntityList 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; - } - /** - *
-     * Represents a list of NamedEntityIdentifiers.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityList) - flyteidl.admin.Common.NamedEntityListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityList.class, flyteidl.admin.Common.NamedEntityList.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEntitiesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (entitiesBuilder_ == null) { - entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - entitiesBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityList getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityList build() { - flyteidl.admin.Common.NamedEntityList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityList buildPartial() { - flyteidl.admin.Common.NamedEntityList result = new flyteidl.admin.Common.NamedEntityList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (entitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entities_ = entities_; - } else { - result.entities_ = entitiesBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.Common.NamedEntityList) { - return mergeFrom((flyteidl.admin.Common.NamedEntityList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityList other) { - if (other == flyteidl.admin.Common.NamedEntityList.getDefaultInstance()) return this; - if (entitiesBuilder_ == null) { - if (!other.entities_.isEmpty()) { - if (entities_.isEmpty()) { - entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntitiesIsMutable(); - entities_.addAll(other.entities_); - } - onChanged(); - } - } else { - if (!other.entities_.isEmpty()) { - if (entitiesBuilder_.isEmpty()) { - entitiesBuilder_.dispose(); - entitiesBuilder_ = null; - entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); - entitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntitiesFieldBuilder() : null; - } else { - entitiesBuilder_.addAllMessages(other.entities_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.Common.NamedEntityList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List entities_ = - java.util.Collections.emptyList(); - private void ensureEntitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entities_ = new java.util.ArrayList(entities_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder> entitiesBuilder_; - - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List getEntitiesList() { - if (entitiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entities_); - } else { - return entitiesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public int getEntitiesCount() { - if (entitiesBuilder_ == null) { - return entities_.size(); - } else { - return entitiesBuilder_.getCount(); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity getEntities(int index) { - if (entitiesBuilder_ == null) { - return entities_.get(index); - } else { - return entitiesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder setEntities( - int index, flyteidl.admin.Common.NamedEntity value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.set(index, value); - onChanged(); - } else { - entitiesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder setEntities( - int index, flyteidl.admin.Common.NamedEntity.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.set(index, builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addEntities(flyteidl.admin.Common.NamedEntity value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.add(value); - onChanged(); - } else { - entitiesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addEntities( - int index, flyteidl.admin.Common.NamedEntity value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.add(index, value); - onChanged(); - } else { - entitiesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addEntities( - flyteidl.admin.Common.NamedEntity.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.add(builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addEntities( - int index, flyteidl.admin.Common.NamedEntity.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.add(index, builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addAllEntities( - java.lang.Iterable values) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entities_); - onChanged(); - } else { - entitiesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder clearEntities() { - if (entitiesBuilder_ == null) { - entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entitiesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder removeEntities(int index) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.remove(index); - onChanged(); - } else { - entitiesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity.Builder getEntitiesBuilder( - int index) { - return getEntitiesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( - int index) { - if (entitiesBuilder_ == null) { - return entities_.get(index); } else { - return entitiesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List - getEntitiesOrBuilderList() { - if (entitiesBuilder_ != null) { - return entitiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entities_); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity.Builder addEntitiesBuilder() { - return getEntitiesFieldBuilder().addBuilder( - flyteidl.admin.Common.NamedEntity.getDefaultInstance()); - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity.Builder addEntitiesBuilder( - int index) { - return getEntitiesFieldBuilder().addBuilder( - index, flyteidl.admin.Common.NamedEntity.getDefaultInstance()); - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List - getEntitiesBuilderList() { - return getEntitiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder> - getEntitiesFieldBuilder() { - if (entitiesBuilder_ == null) { - entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder>( - entities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - entities_ = null; - } - return entitiesBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.NamedEntityList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityList) - private static final flyteidl.admin.Common.NamedEntityList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityList(); - } - - public static flyteidl.admin.Common.NamedEntityList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityList(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 flyteidl.admin.Common.NamedEntityList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - boolean hasId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * A request to retrieve the metadata associated with a NamedEntityIdentifier
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityGetRequest} - */ - public static final class NamedEntityGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityGetRequest) - NamedEntityGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityGetRequest.newBuilder() to construct. - private NamedEntityGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityGetRequest() { - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityGetRequest( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityGetRequest.class, flyteidl.admin.Common.NamedEntityGetRequest.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int ID_FIELD_NUMBER = 2; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (id_ != null) { - output.writeMessage(2, getId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (id_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getId()); - } - 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 flyteidl.admin.Common.NamedEntityGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityGetRequest other = (flyteidl.admin.Common.NamedEntityGetRequest) obj; - - if (resourceType_ != other.resourceType_) return false; - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityGetRequest 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 flyteidl.admin.Common.NamedEntityGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityGetRequest 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 flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityGetRequest 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(flyteidl.admin.Common.NamedEntityGetRequest 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 request to retrieve the metadata associated with a NamedEntityIdentifier
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityGetRequest) - flyteidl.admin.Common.NamedEntityGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityGetRequest.class, flyteidl.admin.Common.NamedEntityGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityGetRequest.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(); - resourceType_ = 0; - - if (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityGetRequest build() { - flyteidl.admin.Common.NamedEntityGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityGetRequest buildPartial() { - flyteidl.admin.Common.NamedEntityGetRequest result = new flyteidl.admin.Common.NamedEntityGetRequest(this); - result.resourceType_ = resourceType_; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.Common.NamedEntityGetRequest) { - return mergeFrom((flyteidl.admin.Common.NamedEntityGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityGetRequest other) { - if (other == flyteidl.admin.Common.NamedEntityGetRequest.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.Common.NamedEntityGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.NamedEntityGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityGetRequest) - private static final flyteidl.admin.Common.NamedEntityGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityGetRequest(); - } - - public static flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityGetRequest(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 flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Resource type of the metadata to update
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - *
-     * Resource type of the metadata to update
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - *
-     * Identifier of the metadata to update
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - boolean hasId(); - /** - *
-     * Identifier of the metadata to update
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - *
-     * Identifier of the metadata to update
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Metadata object to set as the new value
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - boolean hasMetadata(); - /** - *
-     * Metadata object to set as the new value
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - flyteidl.admin.Common.NamedEntityMetadata getMetadata(); - /** - *
-     * Metadata object to set as the new value
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder(); - } - /** - *
-   * Request to set the referenced launch plan state to the configured value.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityUpdateRequest} - */ - public static final class NamedEntityUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityUpdateRequest) - NamedEntityUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityUpdateRequest.newBuilder() to construct. - private NamedEntityUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityUpdateRequest() { - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityUpdateRequest( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.Common.NamedEntityMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.admin.Common.NamedEntityMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityUpdateRequest.class, flyteidl.admin.Common.NamedEntityUpdateRequest.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - *
-     * Resource type of the metadata to update
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Resource type of the metadata to update
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int ID_FIELD_NUMBER = 2; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - *
-     * Identifier of the metadata to update
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Identifier of the metadata to update
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Identifier of the metadata to update
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private flyteidl.admin.Common.NamedEntityMetadata metadata_; - /** - *
-     * Metadata object to set as the new value
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Metadata object to set as the new value
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { - return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Metadata object to set as the new value
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (id_ != null) { - output.writeMessage(2, getId()); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (id_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getId()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - 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 flyteidl.admin.Common.NamedEntityUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityUpdateRequest other = (flyteidl.admin.Common.NamedEntityUpdateRequest) obj; - - if (resourceType_ != other.resourceType_) return false; - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) 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) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest 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 flyteidl.admin.Common.NamedEntityUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest 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 flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest 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(flyteidl.admin.Common.NamedEntityUpdateRequest 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; - } - /** - *
-     * Request to set the referenced launch plan state to the configured value.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityUpdateRequest) - flyteidl.admin.Common.NamedEntityUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityUpdateRequest.class, flyteidl.admin.Common.NamedEntityUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityUpdateRequest.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(); - resourceType_ = 0; - - if (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateRequest build() { - flyteidl.admin.Common.NamedEntityUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateRequest buildPartial() { - flyteidl.admin.Common.NamedEntityUpdateRequest result = new flyteidl.admin.Common.NamedEntityUpdateRequest(this); - result.resourceType_ = resourceType_; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.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 flyteidl.admin.Common.NamedEntityUpdateRequest) { - return mergeFrom((flyteidl.admin.Common.NamedEntityUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityUpdateRequest other) { - if (other == flyteidl.admin.Common.NamedEntityUpdateRequest.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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 { - flyteidl.admin.Common.NamedEntityUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Resource type of the metadata to update
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Resource type of the metadata to update
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Resource type of the metadata to update
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - *
-       * Resource type of the metadata to update
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Resource type of the metadata to update
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Identifier of the metadata to update
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.Common.NamedEntityMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder setMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder setMetadata( - flyteidl.admin.Common.NamedEntityMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder mergeMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.admin.Common.NamedEntityMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Metadata object to set as the new value
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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:flyteidl.admin.NamedEntityUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateRequest) - private static final flyteidl.admin.Common.NamedEntityUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityUpdateRequest(); - } - - public static flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityUpdateRequest(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 flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityUpdateResponse} - */ - public static final class NamedEntityUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityUpdateResponse) - NamedEntityUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityUpdateResponse.newBuilder() to construct. - private NamedEntityUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityUpdateResponse( - 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; - 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityUpdateResponse.class, flyteidl.admin.Common.NamedEntityUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.Common.NamedEntityUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityUpdateResponse other = (flyteidl.admin.Common.NamedEntityUpdateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse 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 flyteidl.admin.Common.NamedEntityUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse 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 flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse 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(flyteidl.admin.Common.NamedEntityUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityUpdateResponse) - flyteidl.admin.Common.NamedEntityUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityUpdateResponse.class, flyteidl.admin.Common.NamedEntityUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateResponse build() { - flyteidl.admin.Common.NamedEntityUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateResponse buildPartial() { - flyteidl.admin.Common.NamedEntityUpdateResponse result = new flyteidl.admin.Common.NamedEntityUpdateResponse(this); - 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 flyteidl.admin.Common.NamedEntityUpdateResponse) { - return mergeFrom((flyteidl.admin.Common.NamedEntityUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityUpdateResponse other) { - if (other == flyteidl.admin.Common.NamedEntityUpdateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.Common.NamedEntityUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.NamedEntityUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateResponse) - private static final flyteidl.admin.Common.NamedEntityUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityUpdateResponse(); - } - - public static flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityUpdateResponse(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 flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObjectGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ObjectGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates a unique version of resource.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * Indicates a unique version of resource.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * Indicates a unique version of resource.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Represents a structure to fetch a single resource.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ObjectGetRequest} - */ - public static final class ObjectGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ObjectGetRequest) - ObjectGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObjectGetRequest.newBuilder() to construct. - private ObjectGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObjectGetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ObjectGetRequest( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * Indicates a unique version of resource.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Indicates a unique version of resource.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * Indicates a unique version of resource.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.Common.ObjectGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.ObjectGetRequest other = (flyteidl.admin.Common.ObjectGetRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.ObjectGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ObjectGetRequest 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 flyteidl.admin.Common.ObjectGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ObjectGetRequest 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 flyteidl.admin.Common.ObjectGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ObjectGetRequest 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(flyteidl.admin.Common.ObjectGetRequest 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; - } - /** - *
-     * Represents a structure to fetch a single resource.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ObjectGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ObjectGetRequest) - flyteidl.admin.Common.ObjectGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.ObjectGetRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.ObjectGetRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.ObjectGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.ObjectGetRequest build() { - flyteidl.admin.Common.ObjectGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.ObjectGetRequest buildPartial() { - flyteidl.admin.Common.ObjectGetRequest result = new flyteidl.admin.Common.ObjectGetRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.Common.ObjectGetRequest) { - return mergeFrom((flyteidl.admin.Common.ObjectGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.ObjectGetRequest other) { - if (other == flyteidl.admin.Common.ObjectGetRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.Common.ObjectGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.ObjectGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Indicates a unique version of resource.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.ObjectGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ObjectGetRequest) - private static final flyteidl.admin.Common.ObjectGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.ObjectGetRequest(); - } - - public static flyteidl.admin.Common.ObjectGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectGetRequest(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 flyteidl.admin.Common.ObjectGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ResourceListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ResourceListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the resource.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the resource.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - *
-     * id represents the unique identifier of the resource.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to retrieve a list of resources.
-   * Resources include: Task, Workflow, LaunchPlan
-   * 
- * - * Protobuf type {@code flyteidl.admin.ResourceListRequest} - */ - public static final class ResourceListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ResourceListRequest) - ResourceListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceListRequest.newBuilder() to construct. - private ResourceListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourceListRequest() { - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResourceListRequest( - 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: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - limit_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - *
-     * id represents the unique identifier of the resource.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the resource.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the resource.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 4; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - 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(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - 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 (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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 flyteidl.admin.Common.ResourceListRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.ResourceListRequest other = (flyteidl.admin.Common.ResourceListRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ResourceListRequest 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 flyteidl.admin.Common.ResourceListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ResourceListRequest 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 flyteidl.admin.Common.ResourceListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ResourceListRequest 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(flyteidl.admin.Common.ResourceListRequest 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; - } - /** - *
-     * Represents a request structure to retrieve a list of resources.
-     * Resources include: Task, Workflow, LaunchPlan
-     * 
- * - * Protobuf type {@code flyteidl.admin.ResourceListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ResourceListRequest) - flyteidl.admin.Common.ResourceListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.ResourceListRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.ResourceListRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.ResourceListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.ResourceListRequest build() { - flyteidl.admin.Common.ResourceListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.ResourceListRequest buildPartial() { - flyteidl.admin.Common.ResourceListRequest result = new flyteidl.admin.Common.ResourceListRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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 flyteidl.admin.Common.ResourceListRequest) { - return mergeFrom((flyteidl.admin.Common.ResourceListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.ResourceListRequest other) { - if (other == flyteidl.admin.Common.ResourceListRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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 { - flyteidl.admin.Common.ResourceListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.ResourceListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * id represents the unique identifier of the resource.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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:flyteidl.admin.ResourceListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ResourceListRequest) - private static final flyteidl.admin.Common.ResourceListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.ResourceListRequest(); - } - - public static flyteidl.admin.Common.ResourceListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceListRequest(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 flyteidl.admin.Common.ResourceListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EmailNotificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailNotification) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.util.List - getRecipientsEmailList(); - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - int getRecipientsEmailCount(); - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.lang.String getRecipientsEmail(int index); - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - com.google.protobuf.ByteString - getRecipientsEmailBytes(int index); - } - /** - * Protobuf type {@code flyteidl.admin.EmailNotification} - */ - public static final class EmailNotification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailNotification) - EmailNotificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use EmailNotification.newBuilder() to construct. - private EmailNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EmailNotification() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmailNotification( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recipientsEmail_.add(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)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); - } - - public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList recipientsEmail_; - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_; - } - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-     * The list of email addresses recipients for this notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(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 < recipientsEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < recipientsEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getRecipientsEmailList().size(); - } - 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 flyteidl.admin.Common.EmailNotification)) { - return super.equals(obj); - } - flyteidl.admin.Common.EmailNotification other = (flyteidl.admin.Common.EmailNotification) obj; - - if (!getRecipientsEmailList() - .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { - hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getRecipientsEmailList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.EmailNotification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.EmailNotification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.EmailNotification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.EmailNotification parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.EmailNotification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.EmailNotification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.EmailNotification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.EmailNotification 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 flyteidl.admin.Common.EmailNotification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.EmailNotification 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 flyteidl.admin.Common.EmailNotification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.EmailNotification 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(flyteidl.admin.Common.EmailNotification 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 flyteidl.admin.EmailNotification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailNotification) - flyteidl.admin.Common.EmailNotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); - } - - // Construct using flyteidl.admin.Common.EmailNotification.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(); - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.EmailNotification getDefaultInstanceForType() { - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.EmailNotification build() { - flyteidl.admin.Common.EmailNotification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.EmailNotification buildPartial() { - flyteidl.admin.Common.EmailNotification result = new flyteidl.admin.Common.EmailNotification(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.recipientsEmail_ = recipientsEmail_; - 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 flyteidl.admin.Common.EmailNotification) { - return mergeFrom((flyteidl.admin.Common.EmailNotification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.EmailNotification other) { - if (other == flyteidl.admin.Common.EmailNotification.getDefaultInstance()) return this; - if (!other.recipientsEmail_.isEmpty()) { - if (recipientsEmail_.isEmpty()) { - recipientsEmail_ = other.recipientsEmail_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRecipientsEmailIsMutable(); - recipientsEmail_.addAll(other.recipientsEmail_); - } - 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 { - flyteidl.admin.Common.EmailNotification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.EmailNotification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRecipientsEmailIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_.getUnmodifiableView(); - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder setRecipientsEmail( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addAllRecipientsEmail( - java.lang.Iterable values) { - ensureRecipientsEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipientsEmail_); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder clearRecipientsEmail() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(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:flyteidl.admin.EmailNotification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailNotification) - private static final flyteidl.admin.Common.EmailNotification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.EmailNotification(); - } - - public static flyteidl.admin.Common.EmailNotification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmailNotification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmailNotification(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 flyteidl.admin.Common.EmailNotification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PagerDutyNotificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.PagerDutyNotification) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.util.List - getRecipientsEmailList(); - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - int getRecipientsEmailCount(); - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.lang.String getRecipientsEmail(int index); - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - com.google.protobuf.ByteString - getRecipientsEmailBytes(int index); - } - /** - * Protobuf type {@code flyteidl.admin.PagerDutyNotification} - */ - public static final class PagerDutyNotification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.PagerDutyNotification) - PagerDutyNotificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use PagerDutyNotification.newBuilder() to construct. - private PagerDutyNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PagerDutyNotification() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PagerDutyNotification( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recipientsEmail_.add(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)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); - } - - public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList recipientsEmail_; - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_; - } - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(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 < recipientsEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < recipientsEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getRecipientsEmailList().size(); - } - 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 flyteidl.admin.Common.PagerDutyNotification)) { - return super.equals(obj); - } - flyteidl.admin.Common.PagerDutyNotification other = (flyteidl.admin.Common.PagerDutyNotification) obj; - - if (!getRecipientsEmailList() - .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { - hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getRecipientsEmailList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.PagerDutyNotification 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 flyteidl.admin.Common.PagerDutyNotification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.PagerDutyNotification 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 flyteidl.admin.Common.PagerDutyNotification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.PagerDutyNotification 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(flyteidl.admin.Common.PagerDutyNotification 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 flyteidl.admin.PagerDutyNotification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.PagerDutyNotification) - flyteidl.admin.Common.PagerDutyNotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); - } - - // Construct using flyteidl.admin.Common.PagerDutyNotification.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(); - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.PagerDutyNotification getDefaultInstanceForType() { - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.PagerDutyNotification build() { - flyteidl.admin.Common.PagerDutyNotification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.PagerDutyNotification buildPartial() { - flyteidl.admin.Common.PagerDutyNotification result = new flyteidl.admin.Common.PagerDutyNotification(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.recipientsEmail_ = recipientsEmail_; - 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 flyteidl.admin.Common.PagerDutyNotification) { - return mergeFrom((flyteidl.admin.Common.PagerDutyNotification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.PagerDutyNotification other) { - if (other == flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) return this; - if (!other.recipientsEmail_.isEmpty()) { - if (recipientsEmail_.isEmpty()) { - recipientsEmail_ = other.recipientsEmail_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRecipientsEmailIsMutable(); - recipientsEmail_.addAll(other.recipientsEmail_); - } - 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 { - flyteidl.admin.Common.PagerDutyNotification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.PagerDutyNotification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRecipientsEmailIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_.getUnmodifiableView(); - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder setRecipientsEmail( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addAllRecipientsEmail( - java.lang.Iterable values) { - ensureRecipientsEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipientsEmail_); - onChanged(); - return this; - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder clearRecipientsEmail() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(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:flyteidl.admin.PagerDutyNotification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.PagerDutyNotification) - private static final flyteidl.admin.Common.PagerDutyNotification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.PagerDutyNotification(); - } - - public static flyteidl.admin.Common.PagerDutyNotification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PagerDutyNotification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PagerDutyNotification(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 flyteidl.admin.Common.PagerDutyNotification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SlackNotificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.SlackNotification) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.util.List - getRecipientsEmailList(); - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - int getRecipientsEmailCount(); - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.lang.String getRecipientsEmail(int index); - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - com.google.protobuf.ByteString - getRecipientsEmailBytes(int index); - } - /** - * Protobuf type {@code flyteidl.admin.SlackNotification} - */ - public static final class SlackNotification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.SlackNotification) - SlackNotificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use SlackNotification.newBuilder() to construct. - private SlackNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SlackNotification() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SlackNotification( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recipientsEmail_.add(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)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); - } - - public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList recipientsEmail_; - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_; - } - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(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 < recipientsEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < recipientsEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getRecipientsEmailList().size(); - } - 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 flyteidl.admin.Common.SlackNotification)) { - return super.equals(obj); - } - flyteidl.admin.Common.SlackNotification other = (flyteidl.admin.Common.SlackNotification) obj; - - if (!getRecipientsEmailList() - .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { - hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getRecipientsEmailList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.SlackNotification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.SlackNotification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.SlackNotification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.SlackNotification parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.SlackNotification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.SlackNotification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.SlackNotification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.SlackNotification 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 flyteidl.admin.Common.SlackNotification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.SlackNotification 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 flyteidl.admin.Common.SlackNotification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.SlackNotification 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(flyteidl.admin.Common.SlackNotification 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 flyteidl.admin.SlackNotification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.SlackNotification) - flyteidl.admin.Common.SlackNotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); - } - - // Construct using flyteidl.admin.Common.SlackNotification.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(); - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.SlackNotification getDefaultInstanceForType() { - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.SlackNotification build() { - flyteidl.admin.Common.SlackNotification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.SlackNotification buildPartial() { - flyteidl.admin.Common.SlackNotification result = new flyteidl.admin.Common.SlackNotification(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.recipientsEmail_ = recipientsEmail_; - 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 flyteidl.admin.Common.SlackNotification) { - return mergeFrom((flyteidl.admin.Common.SlackNotification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.SlackNotification other) { - if (other == flyteidl.admin.Common.SlackNotification.getDefaultInstance()) return this; - if (!other.recipientsEmail_.isEmpty()) { - if (recipientsEmail_.isEmpty()) { - recipientsEmail_ = other.recipientsEmail_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRecipientsEmailIsMutable(); - recipientsEmail_.addAll(other.recipientsEmail_); - } - 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 { - flyteidl.admin.Common.SlackNotification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.SlackNotification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRecipientsEmailIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_.getUnmodifiableView(); - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder setRecipientsEmail( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addAllRecipientsEmail( - java.lang.Iterable values) { - ensureRecipientsEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipientsEmail_); - onChanged(); - return this; - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder clearRecipientsEmail() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(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:flyteidl.admin.SlackNotification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SlackNotification) - private static final flyteidl.admin.Common.SlackNotification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.SlackNotification(); - } - - public static flyteidl.admin.Common.SlackNotification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SlackNotification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SlackNotification(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 flyteidl.admin.Common.SlackNotification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NotificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Notification) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - java.util.List getPhasesList(); - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - int getPhasesCount(); - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index); - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - java.util.List - getPhasesValueList(); - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - int getPhasesValue(int index); - - /** - *
-     * option (validate.required) = true;
-     * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - boolean hasEmail(); - /** - *
-     * option (validate.required) = true;
-     * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - flyteidl.admin.Common.EmailNotification getEmail(); - /** - *
-     * option (validate.required) = true;
-     * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder(); - - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - boolean hasPagerDuty(); - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - flyteidl.admin.Common.PagerDutyNotification getPagerDuty(); - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder(); - - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - boolean hasSlack(); - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - flyteidl.admin.Common.SlackNotification getSlack(); - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder(); - - public flyteidl.admin.Common.Notification.TypeCase getTypeCase(); - } - /** - *
-   * Represents a structure for notifications based on execution status.
-   * The Notification content is configured within Admin. Future iterations could
-   * expose configuring notifications with custom content.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Notification} - */ - public static final class Notification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Notification) - NotificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Notification.newBuilder() to construct. - private Notification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Notification() { - phases_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Notification( - 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 8: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phases_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phases_.add(rawValue); - break; - } - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phases_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phases_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 18: { - flyteidl.admin.Common.EmailNotification.Builder subBuilder = null; - if (typeCase_ == 2) { - subBuilder = ((flyteidl.admin.Common.EmailNotification) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.admin.Common.EmailNotification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.Common.EmailNotification) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 2; - break; - } - case 26: { - flyteidl.admin.Common.PagerDutyNotification.Builder subBuilder = null; - if (typeCase_ == 3) { - subBuilder = ((flyteidl.admin.Common.PagerDutyNotification) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.admin.Common.PagerDutyNotification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.Common.PagerDutyNotification) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 3; - break; - } - case 34: { - flyteidl.admin.Common.SlackNotification.Builder subBuilder = null; - if (typeCase_ == 4) { - subBuilder = ((flyteidl.admin.Common.SlackNotification) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.admin.Common.SlackNotification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.Common.SlackNotification) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 4; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - phases_ = java.util.Collections.unmodifiableList(phases_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); - } - - private int bitField0_; - private int typeCase_ = 0; - private java.lang.Object type_; - public enum TypeCase - implements com.google.protobuf.Internal.EnumLite { - EMAIL(2), - PAGER_DUTY(3), - SLACK(4), - TYPE_NOT_SET(0); - private final int value; - private TypeCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TypeCase valueOf(int value) { - return forNumber(value); - } - - public static TypeCase forNumber(int value) { - switch (value) { - case 2: return EMAIL; - case 3: return PAGER_DUTY; - case 4: return SLACK; - case 0: return TYPE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public static final int PHASES_FIELD_NUMBER = 1; - private java.util.List phases_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase> phases_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>() { - public flyteidl.core.Execution.WorkflowExecution.Phase convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(from); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - }; - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public java.util.List getPhasesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); - } - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public int getPhasesCount() { - return phases_.size(); - } - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { - return phases_converter_.convert(phases_.get(index)); - } - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public java.util.List - getPhasesValueList() { - return phases_; - } - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public int getPhasesValue(int index) { - return phases_.get(index); - } - private int phasesMemoizedSerializedSize; - - public static final int EMAIL_FIELD_NUMBER = 2; - /** - *
-     * option (validate.required) = true;
-     * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public boolean hasEmail() { - return typeCase_ == 2; - } - /** - *
-     * option (validate.required) = true;
-     * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotification getEmail() { - if (typeCase_ == 2) { - return (flyteidl.admin.Common.EmailNotification) type_; - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - /** - *
-     * option (validate.required) = true;
-     * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { - if (typeCase_ == 2) { - return (flyteidl.admin.Common.EmailNotification) type_; - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - - public static final int PAGER_DUTY_FIELD_NUMBER = 3; - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public boolean hasPagerDuty() { - return typeCase_ == 3; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { - if (typeCase_ == 3) { - return (flyteidl.admin.Common.PagerDutyNotification) type_; - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { - if (typeCase_ == 3) { - return (flyteidl.admin.Common.PagerDutyNotification) type_; - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - - public static final int SLACK_FIELD_NUMBER = 4; - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public boolean hasSlack() { - return typeCase_ == 4; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotification getSlack() { - if (typeCase_ == 4) { - return (flyteidl.admin.Common.SlackNotification) type_; - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { - if (typeCase_ == 4) { - return (flyteidl.admin.Common.SlackNotification) type_; - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getPhasesList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(phasesMemoizedSerializedSize); - } - for (int i = 0; i < phases_.size(); i++) { - output.writeEnumNoTag(phases_.get(i)); - } - if (typeCase_ == 2) { - output.writeMessage(2, (flyteidl.admin.Common.EmailNotification) type_); - } - if (typeCase_ == 3) { - output.writeMessage(3, (flyteidl.admin.Common.PagerDutyNotification) type_); - } - if (typeCase_ == 4) { - output.writeMessage(4, (flyteidl.admin.Common.SlackNotification) type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < phases_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(phases_.get(i)); - } - size += dataSize; - if (!getPhasesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }phasesMemoizedSerializedSize = dataSize; - } - if (typeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.admin.Common.EmailNotification) type_); - } - if (typeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.admin.Common.PagerDutyNotification) type_); - } - if (typeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.admin.Common.SlackNotification) type_); - } - 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 flyteidl.admin.Common.Notification)) { - return super.equals(obj); - } - flyteidl.admin.Common.Notification other = (flyteidl.admin.Common.Notification) obj; - - if (!phases_.equals(other.phases_)) return false; - if (!getTypeCase().equals(other.getTypeCase())) return false; - switch (typeCase_) { - case 2: - if (!getEmail() - .equals(other.getEmail())) return false; - break; - case 3: - if (!getPagerDuty() - .equals(other.getPagerDuty())) return false; - break; - case 4: - if (!getSlack() - .equals(other.getSlack())) 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(); - if (getPhasesCount() > 0) { - hash = (37 * hash) + PHASES_FIELD_NUMBER; - hash = (53 * hash) + phases_.hashCode(); - } - switch (typeCase_) { - case 2: - hash = (37 * hash) + EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getEmail().hashCode(); - break; - case 3: - hash = (37 * hash) + PAGER_DUTY_FIELD_NUMBER; - hash = (53 * hash) + getPagerDuty().hashCode(); - break; - case 4: - hash = (37 * hash) + SLACK_FIELD_NUMBER; - hash = (53 * hash) + getSlack().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.Notification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Notification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Notification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Notification parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Notification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Notification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Notification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Notification 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 flyteidl.admin.Common.Notification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Notification 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 flyteidl.admin.Common.Notification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Notification 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(flyteidl.admin.Common.Notification 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; - } - /** - *
-     * Represents a structure for notifications based on execution status.
-     * The Notification content is configured within Admin. Future iterations could
-     * expose configuring notifications with custom content.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Notification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Notification) - flyteidl.admin.Common.NotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); - } - - // Construct using flyteidl.admin.Common.Notification.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(); - phases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - typeCase_ = 0; - type_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.Notification getDefaultInstanceForType() { - return flyteidl.admin.Common.Notification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.Notification build() { - flyteidl.admin.Common.Notification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.Notification buildPartial() { - flyteidl.admin.Common.Notification result = new flyteidl.admin.Common.Notification(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - phases_ = java.util.Collections.unmodifiableList(phases_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.phases_ = phases_; - if (typeCase_ == 2) { - if (emailBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = emailBuilder_.build(); - } - } - if (typeCase_ == 3) { - if (pagerDutyBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = pagerDutyBuilder_.build(); - } - } - if (typeCase_ == 4) { - if (slackBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = slackBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.typeCase_ = typeCase_; - 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 flyteidl.admin.Common.Notification) { - return mergeFrom((flyteidl.admin.Common.Notification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.Notification other) { - if (other == flyteidl.admin.Common.Notification.getDefaultInstance()) return this; - if (!other.phases_.isEmpty()) { - if (phases_.isEmpty()) { - phases_ = other.phases_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePhasesIsMutable(); - phases_.addAll(other.phases_); - } - onChanged(); - } - switch (other.getTypeCase()) { - case EMAIL: { - mergeEmail(other.getEmail()); - break; - } - case PAGER_DUTY: { - mergePagerDuty(other.getPagerDuty()); - break; - } - case SLACK: { - mergeSlack(other.getSlack()); - break; - } - case TYPE_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 { - flyteidl.admin.Common.Notification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.Notification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int typeCase_ = 0; - private java.lang.Object type_; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public Builder clearType() { - typeCase_ = 0; - type_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.util.List phases_ = - java.util.Collections.emptyList(); - private void ensurePhasesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - phases_ = new java.util.ArrayList(phases_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public java.util.List getPhasesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public int getPhasesCount() { - return phases_.size(); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { - return phases_converter_.convert(phases_.get(index)); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder setPhases( - int index, flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhasesIsMutable(); - phases_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder addPhases(flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhasesIsMutable(); - phases_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder addAllPhases( - java.lang.Iterable values) { - ensurePhasesIsMutable(); - for (flyteidl.core.Execution.WorkflowExecution.Phase value : values) { - phases_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder clearPhases() { - phases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public java.util.List - getPhasesValueList() { - return java.util.Collections.unmodifiableList(phases_); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public int getPhasesValue(int index) { - return phases_.get(index); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder setPhasesValue( - int index, int value) { - ensurePhasesIsMutable(); - phases_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder addPhasesValue(int value) { - ensurePhasesIsMutable(); - phases_.add(value); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder addAllPhasesValue( - java.lang.Iterable values) { - ensurePhasesIsMutable(); - for (int value : values) { - phases_.add(value); - } - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> emailBuilder_; - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public boolean hasEmail() { - return typeCase_ == 2; - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotification getEmail() { - if (emailBuilder_ == null) { - if (typeCase_ == 2) { - return (flyteidl.admin.Common.EmailNotification) type_; - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } else { - if (typeCase_ == 2) { - return emailBuilder_.getMessage(); - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public Builder setEmail(flyteidl.admin.Common.EmailNotification value) { - if (emailBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - emailBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public Builder setEmail( - flyteidl.admin.Common.EmailNotification.Builder builderForValue) { - if (emailBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - emailBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 2; - return this; - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public Builder mergeEmail(flyteidl.admin.Common.EmailNotification value) { - if (emailBuilder_ == null) { - if (typeCase_ == 2 && - type_ != flyteidl.admin.Common.EmailNotification.getDefaultInstance()) { - type_ = flyteidl.admin.Common.EmailNotification.newBuilder((flyteidl.admin.Common.EmailNotification) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 2) { - emailBuilder_.mergeFrom(value); - } - emailBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public Builder clearEmail() { - if (emailBuilder_ == null) { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - } - emailBuilder_.clear(); - } - return this; - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotification.Builder getEmailBuilder() { - return getEmailFieldBuilder().getBuilder(); - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { - if ((typeCase_ == 2) && (emailBuilder_ != null)) { - return emailBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 2) { - return (flyteidl.admin.Common.EmailNotification) type_; - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - } - /** - *
-       * option (validate.required) = true;
-       * 
- * - * .flyteidl.admin.EmailNotification email = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> - getEmailFieldBuilder() { - if (emailBuilder_ == null) { - if (!(typeCase_ == 2)) { - type_ = flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - emailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder>( - (flyteidl.admin.Common.EmailNotification) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 2; - onChanged();; - return emailBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> pagerDutyBuilder_; - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public boolean hasPagerDuty() { - return typeCase_ == 3; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { - if (pagerDutyBuilder_ == null) { - if (typeCase_ == 3) { - return (flyteidl.admin.Common.PagerDutyNotification) type_; - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } else { - if (typeCase_ == 3) { - return pagerDutyBuilder_.getMessage(); - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public Builder setPagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { - if (pagerDutyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - pagerDutyBuilder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public Builder setPagerDuty( - flyteidl.admin.Common.PagerDutyNotification.Builder builderForValue) { - if (pagerDutyBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - pagerDutyBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 3; - return this; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public Builder mergePagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { - if (pagerDutyBuilder_ == null) { - if (typeCase_ == 3 && - type_ != flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) { - type_ = flyteidl.admin.Common.PagerDutyNotification.newBuilder((flyteidl.admin.Common.PagerDutyNotification) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 3) { - pagerDutyBuilder_.mergeFrom(value); - } - pagerDutyBuilder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public Builder clearPagerDuty() { - if (pagerDutyBuilder_ == null) { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - } - pagerDutyBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotification.Builder getPagerDutyBuilder() { - return getPagerDutyFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { - if ((typeCase_ == 3) && (pagerDutyBuilder_ != null)) { - return pagerDutyBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 3) { - return (flyteidl.admin.Common.PagerDutyNotification) type_; - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> - getPagerDutyFieldBuilder() { - if (pagerDutyBuilder_ == null) { - if (!(typeCase_ == 3)) { - type_ = flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - pagerDutyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder>( - (flyteidl.admin.Common.PagerDutyNotification) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 3; - onChanged();; - return pagerDutyBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> slackBuilder_; - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public boolean hasSlack() { - return typeCase_ == 4; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotification getSlack() { - if (slackBuilder_ == null) { - if (typeCase_ == 4) { - return (flyteidl.admin.Common.SlackNotification) type_; - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } else { - if (typeCase_ == 4) { - return slackBuilder_.getMessage(); - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public Builder setSlack(flyteidl.admin.Common.SlackNotification value) { - if (slackBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - slackBuilder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public Builder setSlack( - flyteidl.admin.Common.SlackNotification.Builder builderForValue) { - if (slackBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - slackBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 4; - return this; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public Builder mergeSlack(flyteidl.admin.Common.SlackNotification value) { - if (slackBuilder_ == null) { - if (typeCase_ == 4 && - type_ != flyteidl.admin.Common.SlackNotification.getDefaultInstance()) { - type_ = flyteidl.admin.Common.SlackNotification.newBuilder((flyteidl.admin.Common.SlackNotification) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 4) { - slackBuilder_.mergeFrom(value); - } - slackBuilder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public Builder clearSlack() { - if (slackBuilder_ == null) { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - } - slackBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotification.Builder getSlackBuilder() { - return getSlackFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { - if ((typeCase_ == 4) && (slackBuilder_ != null)) { - return slackBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 4) { - return (flyteidl.admin.Common.SlackNotification) type_; - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> - getSlackFieldBuilder() { - if (slackBuilder_ == null) { - if (!(typeCase_ == 4)) { - type_ = flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - slackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder>( - (flyteidl.admin.Common.SlackNotification) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 4; - onChanged();; - return slackBuilder_; - } - @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:flyteidl.admin.Notification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Notification) - private static final flyteidl.admin.Common.Notification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.Notification(); - } - - public static flyteidl.admin.Common.Notification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Notification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Notification(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 flyteidl.admin.Common.Notification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UrlBlobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.UrlBlob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Actual url value.
-     * 
- * - * string url = 1; - */ - java.lang.String getUrl(); - /** - *
-     * Actual url value.
-     * 
- * - * string url = 1; - */ - com.google.protobuf.ByteString - getUrlBytes(); - - /** - *
-     * Represents the size of the file accessible at the above url.
-     * 
- * - * int64 bytes = 2; - */ - long getBytes(); - } - /** - *
-   * Represents a string url and associated metadata used throughout the platform.
-   * 
- * - * Protobuf type {@code flyteidl.admin.UrlBlob} - */ - public static final class UrlBlob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.UrlBlob) - UrlBlobOrBuilder { - private static final long serialVersionUID = 0L; - // Use UrlBlob.newBuilder() to construct. - private UrlBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UrlBlob() { - url_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UrlBlob( - 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(); - - url_ = s; - break; - } - case 16: { - - bytes_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); - } - - public static final int URL_FIELD_NUMBER = 1; - private volatile java.lang.Object url_; - /** - *
-     * Actual url value.
-     * 
- * - * string url = 1; - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - 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(); - url_ = s; - return s; - } - } - /** - *
-     * Actual url value.
-     * 
- * - * string url = 1; - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BYTES_FIELD_NUMBER = 2; - private long bytes_; - /** - *
-     * Represents the size of the file accessible at the above url.
-     * 
- * - * int64 bytes = 2; - */ - public long getBytes() { - return bytes_; - } - - 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 (!getUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); - } - if (bytes_ != 0L) { - output.writeInt64(2, bytes_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); - } - if (bytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, bytes_); - } - 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 flyteidl.admin.Common.UrlBlob)) { - return super.equals(obj); - } - flyteidl.admin.Common.UrlBlob other = (flyteidl.admin.Common.UrlBlob) obj; - - if (!getUrl() - .equals(other.getUrl())) return false; - if (getBytes() - != other.getBytes()) 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) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBytes()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.UrlBlob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.UrlBlob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.UrlBlob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.UrlBlob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.UrlBlob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.UrlBlob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.UrlBlob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.UrlBlob 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 flyteidl.admin.Common.UrlBlob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.UrlBlob 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 flyteidl.admin.Common.UrlBlob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.UrlBlob 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(flyteidl.admin.Common.UrlBlob 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; - } - /** - *
-     * Represents a string url and associated metadata used throughout the platform.
-     * 
- * - * Protobuf type {@code flyteidl.admin.UrlBlob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.UrlBlob) - flyteidl.admin.Common.UrlBlobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); - } - - // Construct using flyteidl.admin.Common.UrlBlob.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(); - url_ = ""; - - bytes_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.UrlBlob getDefaultInstanceForType() { - return flyteidl.admin.Common.UrlBlob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.UrlBlob build() { - flyteidl.admin.Common.UrlBlob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.UrlBlob buildPartial() { - flyteidl.admin.Common.UrlBlob result = new flyteidl.admin.Common.UrlBlob(this); - result.url_ = url_; - result.bytes_ = bytes_; - 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 flyteidl.admin.Common.UrlBlob) { - return mergeFrom((flyteidl.admin.Common.UrlBlob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.UrlBlob other) { - if (other == flyteidl.admin.Common.UrlBlob.getDefaultInstance()) return this; - if (!other.getUrl().isEmpty()) { - url_ = other.url_; - onChanged(); - } - if (other.getBytes() != 0L) { - setBytes(other.getBytes()); - } - 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 { - flyteidl.admin.Common.UrlBlob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.UrlBlob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object url_ = ""; - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public Builder setUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - url_ = value; - onChanged(); - return this; - } - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public Builder clearUrl() { - - url_ = getDefaultInstance().getUrl(); - onChanged(); - return this; - } - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - url_ = value; - onChanged(); - return this; - } - - private long bytes_ ; - /** - *
-       * Represents the size of the file accessible at the above url.
-       * 
- * - * int64 bytes = 2; - */ - public long getBytes() { - return bytes_; - } - /** - *
-       * Represents the size of the file accessible at the above url.
-       * 
- * - * int64 bytes = 2; - */ - public Builder setBytes(long value) { - - bytes_ = value; - onChanged(); - return this; - } - /** - *
-       * Represents the size of the file accessible at the above url.
-       * 
- * - * int64 bytes = 2; - */ - public Builder clearBytes() { - - bytes_ = 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:flyteidl.admin.UrlBlob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.UrlBlob) - private static final flyteidl.admin.Common.UrlBlob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.UrlBlob(); - } - - public static flyteidl.admin.Common.UrlBlob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UrlBlob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UrlBlob(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 flyteidl.admin.Common.UrlBlob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LabelsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Labels) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - int getValuesCount(); - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - boolean containsValues( - java.lang.String key); - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getValues(); - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - java.util.Map - getValuesMap(); - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - java.lang.String getValuesOrThrow( - java.lang.String key); - } - /** - *
-   * Label values to be applied to an execution resource.
-   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-   * to specify how to merge labels defined at registration and execution time.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Labels} - */ - public static final class Labels extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Labels) - LabelsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Labels.newBuilder() to construct. - private Labels(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Labels() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Labels( - 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)) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - values__ = input.readMessage( - ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - values_.getMutableMap().put( - values__.getKey(), values__.getValue()); - 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 flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private static final class ValuesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValues() { - return getValuesMap(); - } - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.util.Map getValuesMap() { - return internalGetValues().getMap(); - } - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetValues(), - ValuesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetValues().getMap().entrySet()) { - com.google.protobuf.MapEntry - values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values__); - } - 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 flyteidl.admin.Common.Labels)) { - return super.equals(obj); - } - flyteidl.admin.Common.Labels other = (flyteidl.admin.Common.Labels) obj; - - if (!internalGetValues().equals( - other.internalGetValues())) 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 (!internalGetValues().getMap().isEmpty()) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + internalGetValues().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.Labels parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Labels parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Labels parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Labels parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Labels parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Labels parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Labels parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Labels 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 flyteidl.admin.Common.Labels parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Labels 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 flyteidl.admin.Common.Labels parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Labels 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(flyteidl.admin.Common.Labels 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; - } - /** - *
-     * Label values to be applied to an execution resource.
-     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-     * to specify how to merge labels defined at registration and execution time.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Labels} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Labels) - flyteidl.admin.Common.LabelsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); - } - - // Construct using flyteidl.admin.Common.Labels.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(); - internalGetMutableValues().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.Labels getDefaultInstanceForType() { - return flyteidl.admin.Common.Labels.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.Labels build() { - flyteidl.admin.Common.Labels result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.Labels buildPartial() { - flyteidl.admin.Common.Labels result = new flyteidl.admin.Common.Labels(this); - int from_bitField0_ = bitField0_; - result.values_ = internalGetValues(); - result.values_.makeImmutable(); - 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 flyteidl.admin.Common.Labels) { - return mergeFrom((flyteidl.admin.Common.Labels)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.Labels other) { - if (other == flyteidl.admin.Common.Labels.getDefaultInstance()) return this; - internalGetMutableValues().mergeFrom( - other.internalGetValues()); - 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 { - flyteidl.admin.Common.Labels parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.Labels) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - private com.google.protobuf.MapField - internalGetMutableValues() { - onChanged();; - if (values_ == null) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - if (!values_.isMutable()) { - values_ = values_.copy(); - } - return values_; - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValues() { - return getValuesMap(); - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.util.Map getValuesMap() { - return internalGetValues().getMap(); - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearValues() { - internalGetMutableValues().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public Builder removeValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableValues() { - return internalGetMutableValues().getMutableMap(); - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - public Builder putValues( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public Builder putAllValues( - java.util.Map values) { - internalGetMutableValues().getMutableMap() - .putAll(values); - 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:flyteidl.admin.Labels) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Labels) - private static final flyteidl.admin.Common.Labels DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.Labels(); - } - - public static flyteidl.admin.Common.Labels getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Labels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Labels(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 flyteidl.admin.Common.Labels getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AnnotationsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Annotations) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - int getValuesCount(); - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - boolean containsValues( - java.lang.String key); - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getValues(); - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - java.util.Map - getValuesMap(); - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - java.lang.String getValuesOrThrow( - java.lang.String key); - } - /** - *
-   * Annotation values to be applied to an execution resource.
-   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-   * to specify how to merge annotations defined at registration and execution time.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Annotations} - */ - public static final class Annotations extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Annotations) - AnnotationsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Annotations.newBuilder() to construct. - private Annotations(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Annotations() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Annotations( - 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)) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - values__ = input.readMessage( - ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - values_.getMutableMap().put( - values__.getKey(), values__.getValue()); - 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 flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private static final class ValuesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValues() { - return getValuesMap(); - } - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.util.Map getValuesMap() { - return internalGetValues().getMap(); - } - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetValues(), - ValuesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetValues().getMap().entrySet()) { - com.google.protobuf.MapEntry - values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values__); - } - 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 flyteidl.admin.Common.Annotations)) { - return super.equals(obj); - } - flyteidl.admin.Common.Annotations other = (flyteidl.admin.Common.Annotations) obj; - - if (!internalGetValues().equals( - other.internalGetValues())) 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 (!internalGetValues().getMap().isEmpty()) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + internalGetValues().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.Annotations parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Annotations parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Annotations parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Annotations parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Annotations parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Annotations parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Annotations parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Annotations 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 flyteidl.admin.Common.Annotations parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Annotations 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 flyteidl.admin.Common.Annotations parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Annotations 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(flyteidl.admin.Common.Annotations 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; - } - /** - *
-     * Annotation values to be applied to an execution resource.
-     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-     * to specify how to merge annotations defined at registration and execution time.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Annotations} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Annotations) - flyteidl.admin.Common.AnnotationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); - } - - // Construct using flyteidl.admin.Common.Annotations.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(); - internalGetMutableValues().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.Annotations getDefaultInstanceForType() { - return flyteidl.admin.Common.Annotations.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.Annotations build() { - flyteidl.admin.Common.Annotations result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.Annotations buildPartial() { - flyteidl.admin.Common.Annotations result = new flyteidl.admin.Common.Annotations(this); - int from_bitField0_ = bitField0_; - result.values_ = internalGetValues(); - result.values_.makeImmutable(); - 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 flyteidl.admin.Common.Annotations) { - return mergeFrom((flyteidl.admin.Common.Annotations)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.Annotations other) { - if (other == flyteidl.admin.Common.Annotations.getDefaultInstance()) return this; - internalGetMutableValues().mergeFrom( - other.internalGetValues()); - 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 { - flyteidl.admin.Common.Annotations parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.Annotations) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - private com.google.protobuf.MapField - internalGetMutableValues() { - onChanged();; - if (values_ == null) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - if (!values_.isMutable()) { - values_ = values_.copy(); - } - return values_; - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValues() { - return getValuesMap(); - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.util.Map getValuesMap() { - return internalGetValues().getMap(); - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearValues() { - internalGetMutableValues().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public Builder removeValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableValues() { - return internalGetMutableValues().getMutableMap(); - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - public Builder putValues( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public Builder putAllValues( - java.util.Map values) { - internalGetMutableValues().getMutableMap() - .putAll(values); - 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:flyteidl.admin.Annotations) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Annotations) - private static final flyteidl.admin.Common.Annotations DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.Annotations(); - } - - public static flyteidl.admin.Common.Annotations getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Annotations parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Annotations(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 flyteidl.admin.Common.Annotations getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AuthRoleOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.AuthRole) - com.google.protobuf.MessageOrBuilder { - - /** - * string assumable_iam_role = 1; - */ - java.lang.String getAssumableIamRole(); - /** - * string assumable_iam_role = 1; - */ - com.google.protobuf.ByteString - getAssumableIamRoleBytes(); - - /** - * string kubernetes_service_account = 2; - */ - java.lang.String getKubernetesServiceAccount(); - /** - * string kubernetes_service_account = 2; - */ - com.google.protobuf.ByteString - getKubernetesServiceAccountBytes(); - - public flyteidl.admin.Common.AuthRole.MethodCase getMethodCase(); - } - /** - *
-   * Defines permissions associated with executions.
-   * 
- * - * Protobuf type {@code flyteidl.admin.AuthRole} - */ - public static final class AuthRole extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.AuthRole) - AuthRoleOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuthRole.newBuilder() to construct. - private AuthRole(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AuthRole() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AuthRole( - 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(); - methodCase_ = 1; - method_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - methodCase_ = 2; - method_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.AuthRole.class, flyteidl.admin.Common.AuthRole.Builder.class); - } - - private int methodCase_ = 0; - private java.lang.Object method_; - public enum MethodCase - implements com.google.protobuf.Internal.EnumLite { - ASSUMABLE_IAM_ROLE(1), - KUBERNETES_SERVICE_ACCOUNT(2), - METHOD_NOT_SET(0); - private final int value; - private MethodCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MethodCase valueOf(int value) { - return forNumber(value); - } - - public static MethodCase forNumber(int value) { - switch (value) { - case 1: return ASSUMABLE_IAM_ROLE; - case 2: return KUBERNETES_SERVICE_ACCOUNT; - case 0: return METHOD_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public MethodCase - getMethodCase() { - return MethodCase.forNumber( - methodCase_); - } - - public static final int ASSUMABLE_IAM_ROLE_FIELD_NUMBER = 1; - /** - * string assumable_iam_role = 1; - */ - public java.lang.String getAssumableIamRole() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - 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(); - if (methodCase_ == 1) { - method_ = s; - } - return s; - } - } - /** - * string assumable_iam_role = 1; - */ - public com.google.protobuf.ByteString - getAssumableIamRoleBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 1) { - method_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 2; - /** - * string kubernetes_service_account = 2; - */ - public java.lang.String getKubernetesServiceAccount() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - 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(); - if (methodCase_ == 2) { - method_ = s; - } - return s; - } - } - /** - * string kubernetes_service_account = 2; - */ - public com.google.protobuf.ByteString - getKubernetesServiceAccountBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 2) { - method_ = 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 (methodCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); - } - if (methodCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (methodCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); - } - if (methodCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); - } - 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 flyteidl.admin.Common.AuthRole)) { - return super.equals(obj); - } - flyteidl.admin.Common.AuthRole other = (flyteidl.admin.Common.AuthRole) obj; - - if (!getMethodCase().equals(other.getMethodCase())) return false; - switch (methodCase_) { - case 1: - if (!getAssumableIamRole() - .equals(other.getAssumableIamRole())) return false; - break; - case 2: - if (!getKubernetesServiceAccount() - .equals(other.getKubernetesServiceAccount())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (methodCase_) { - case 1: - hash = (37 * hash) + ASSUMABLE_IAM_ROLE_FIELD_NUMBER; - hash = (53 * hash) + getAssumableIamRole().hashCode(); - break; - case 2: - hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.AuthRole parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.AuthRole parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.AuthRole parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.AuthRole parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.AuthRole parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.AuthRole parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.AuthRole parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.AuthRole 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 flyteidl.admin.Common.AuthRole parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.AuthRole 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 flyteidl.admin.Common.AuthRole parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.AuthRole 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(flyteidl.admin.Common.AuthRole 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; - } - /** - *
-     * Defines permissions associated with executions.
-     * 
- * - * Protobuf type {@code flyteidl.admin.AuthRole} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.AuthRole) - flyteidl.admin.Common.AuthRoleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.AuthRole.class, flyteidl.admin.Common.AuthRole.Builder.class); - } - - // Construct using flyteidl.admin.Common.AuthRole.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(); - methodCase_ = 0; - method_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.AuthRole getDefaultInstanceForType() { - return flyteidl.admin.Common.AuthRole.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.AuthRole build() { - flyteidl.admin.Common.AuthRole result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.AuthRole buildPartial() { - flyteidl.admin.Common.AuthRole result = new flyteidl.admin.Common.AuthRole(this); - if (methodCase_ == 1) { - result.method_ = method_; - } - if (methodCase_ == 2) { - result.method_ = method_; - } - result.methodCase_ = methodCase_; - 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 flyteidl.admin.Common.AuthRole) { - return mergeFrom((flyteidl.admin.Common.AuthRole)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.AuthRole other) { - if (other == flyteidl.admin.Common.AuthRole.getDefaultInstance()) return this; - switch (other.getMethodCase()) { - case ASSUMABLE_IAM_ROLE: { - methodCase_ = 1; - method_ = other.method_; - onChanged(); - break; - } - case KUBERNETES_SERVICE_ACCOUNT: { - methodCase_ = 2; - method_ = other.method_; - onChanged(); - break; - } - case METHOD_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 { - flyteidl.admin.Common.AuthRole parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.AuthRole) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int methodCase_ = 0; - private java.lang.Object method_; - public MethodCase - getMethodCase() { - return MethodCase.forNumber( - methodCase_); - } - - public Builder clearMethod() { - methodCase_ = 0; - method_ = null; - onChanged(); - return this; - } - - - /** - * string assumable_iam_role = 1; - */ - public java.lang.String getAssumableIamRole() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (methodCase_ == 1) { - method_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string assumable_iam_role = 1; - */ - public com.google.protobuf.ByteString - getAssumableIamRoleBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 1) { - method_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string assumable_iam_role = 1; - */ - public Builder setAssumableIamRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - methodCase_ = 1; - method_ = value; - onChanged(); - return this; - } - /** - * string assumable_iam_role = 1; - */ - public Builder clearAssumableIamRole() { - if (methodCase_ == 1) { - methodCase_ = 0; - method_ = null; - onChanged(); - } - return this; - } - /** - * string assumable_iam_role = 1; - */ - public Builder setAssumableIamRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - methodCase_ = 1; - method_ = value; - onChanged(); - return this; - } - - /** - * string kubernetes_service_account = 2; - */ - public java.lang.String getKubernetesServiceAccount() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (methodCase_ == 2) { - method_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string kubernetes_service_account = 2; - */ - public com.google.protobuf.ByteString - getKubernetesServiceAccountBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 2) { - method_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string kubernetes_service_account = 2; - */ - public Builder setKubernetesServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - methodCase_ = 2; - method_ = value; - onChanged(); - return this; - } - /** - * string kubernetes_service_account = 2; - */ - public Builder clearKubernetesServiceAccount() { - if (methodCase_ == 2) { - methodCase_ = 0; - method_ = null; - onChanged(); - } - return this; - } - /** - * string kubernetes_service_account = 2; - */ - public Builder setKubernetesServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - methodCase_ = 2; - method_ = 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:flyteidl.admin.AuthRole) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.AuthRole) - private static final flyteidl.admin.Common.AuthRole DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.AuthRole(); - } - - public static flyteidl.admin.Common.AuthRole getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthRole parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthRole(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 flyteidl.admin.Common.AuthRole getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntity_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Sort_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Sort_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ObjectGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ResourceListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_EmailNotification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_PagerDutyNotification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_SlackNotification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Notification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Notification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_UrlBlob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Labels_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Labels_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Annotations_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Annotations_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_AuthRole_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_AuthRole_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\033flyteidl/admin/common.proto\022\016flyteidl." + - "admin\032\035flyteidl/core/execution.proto\032\036fl" + - "yteidl/core/identifier.proto\"F\n\025NamedEnt" + - "ityIdentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain" + - "\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"[\n\023NamedEntityMetad" + - "ata\022\023\n\013description\030\001 \001(\t\022/\n\005state\030\002 \001(\0162" + - " .flyteidl.admin.NamedEntityState\"\253\001\n\013Na" + - "medEntity\0222\n\rresource_type\030\001 \001(\0162\033.flyte" + - "idl.core.ResourceType\0221\n\002id\030\002 \001(\0132%.flyt" + - "eidl.admin.NamedEntityIdentifier\0225\n\010meta" + - "data\030\003 \001(\0132#.flyteidl.admin.NamedEntityM" + - "etadata\"r\n\004Sort\022\013\n\003key\030\001 \001(\t\0221\n\tdirectio" + - "n\030\002 \001(\0162\036.flyteidl.admin.Sort.Direction\"" + - "*\n\tDirection\022\016\n\nDESCENDING\020\000\022\r\n\tASCENDIN" + - "G\020\001\"\231\001\n NamedEntityIdentifierListRequest" + - "\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\r\n\005lim" + - "it\030\003 \001(\r\022\r\n\005token\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\013" + - "2\024.flyteidl.admin.Sort\022\017\n\007filters\030\006 \001(\t\"" + - "\303\001\n\026NamedEntityListRequest\0222\n\rresource_t" + - "ype\030\001 \001(\0162\033.flyteidl.core.ResourceType\022\017" + - "\n\007project\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\r\n\005limit" + - "\030\004 \001(\r\022\r\n\005token\030\005 \001(\t\022%\n\007sort_by\030\006 \001(\0132\024" + - ".flyteidl.admin.Sort\022\017\n\007filters\030\007 \001(\t\"c\n" + - "\031NamedEntityIdentifierList\0227\n\010entities\030\001" + - " \003(\0132%.flyteidl.admin.NamedEntityIdentif" + - "ier\022\r\n\005token\030\002 \001(\t\"O\n\017NamedEntityList\022-\n" + - "\010entities\030\001 \003(\0132\033.flyteidl.admin.NamedEn" + - "tity\022\r\n\005token\030\002 \001(\t\"~\n\025NamedEntityGetReq" + - "uest\0222\n\rresource_type\030\001 \001(\0162\033.flyteidl.c" + - "ore.ResourceType\0221\n\002id\030\002 \001(\0132%.flyteidl." + - "admin.NamedEntityIdentifier\"\270\001\n\030NamedEnt" + - "ityUpdateRequest\0222\n\rresource_type\030\001 \001(\0162" + - "\033.flyteidl.core.ResourceType\0221\n\002id\030\002 \001(\013" + - "2%.flyteidl.admin.NamedEntityIdentifier\022" + - "5\n\010metadata\030\003 \001(\0132#.flyteidl.admin.Named" + - "EntityMetadata\"\033\n\031NamedEntityUpdateRespo" + - "nse\"9\n\020ObjectGetRequest\022%\n\002id\030\001 \001(\0132\031.fl" + - "yteidl.core.Identifier\"\236\001\n\023ResourceListR" + - "equest\0221\n\002id\030\001 \001(\0132%.flyteidl.admin.Name" + - "dEntityIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005toke" + - "n\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(" + - "\0132\024.flyteidl.admin.Sort\"-\n\021EmailNotifica" + - "tion\022\030\n\020recipients_email\030\001 \003(\t\"1\n\025PagerD" + - "utyNotification\022\030\n\020recipients_email\030\001 \003(" + - "\t\"-\n\021SlackNotification\022\030\n\020recipients_ema" + - "il\030\001 \003(\t\"\363\001\n\014Notification\0226\n\006phases\030\001 \003(" + - "\0162&.flyteidl.core.WorkflowExecution.Phas" + - "e\0222\n\005email\030\002 \001(\0132!.flyteidl.admin.EmailN" + - "otificationH\000\022;\n\npager_duty\030\003 \001(\0132%.flyt" + - "eidl.admin.PagerDutyNotificationH\000\0222\n\005sl" + - "ack\030\004 \001(\0132!.flyteidl.admin.SlackNotifica" + - "tionH\000B\006\n\004type\"%\n\007UrlBlob\022\013\n\003url\030\001 \001(\t\022\r" + - "\n\005bytes\030\002 \001(\003\"k\n\006Labels\0222\n\006values\030\001 \003(\0132" + - "\".flyteidl.admin.Labels.ValuesEntry\032-\n\013V" + - "aluesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + - "8\001\"u\n\013Annotations\0227\n\006values\030\001 \003(\0132\'.flyt" + - "eidl.admin.Annotations.ValuesEntry\032-\n\013Va" + - "luesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\"X\n\010AuthRole\022\034\n\022assumable_iam_role\030\001 \001(" + - "\tH\000\022$\n\032kubernetes_service_account\030\002 \001(\tH" + - "\000B\010\n\006method*\\\n\020NamedEntityState\022\027\n\023NAMED" + - "_ENTITY_ACTIVE\020\000\022\031\n\025NAMED_ENTITY_ARCHIVE" + - "D\020\001\022\024\n\020SYSTEM_GENERATED\020\002B3Z1github.com/" + - "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + - "proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor, - new java.lang.String[] { "Project", "Domain", "Name", }); - internal_static_flyteidl_admin_NamedEntityMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityMetadata_descriptor, - new java.lang.String[] { "Description", "State", }); - internal_static_flyteidl_admin_NamedEntity_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntity_descriptor, - new java.lang.String[] { "ResourceType", "Id", "Metadata", }); - internal_static_flyteidl_admin_Sort_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_Sort_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Sort_descriptor, - new java.lang.String[] { "Key", "Direction", }); - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Limit", "Token", "SortBy", "Filters", }); - internal_static_flyteidl_admin_NamedEntityListRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityListRequest_descriptor, - new java.lang.String[] { "ResourceType", "Project", "Domain", "Limit", "Token", "SortBy", "Filters", }); - internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor, - new java.lang.String[] { "Entities", "Token", }); - internal_static_flyteidl_admin_NamedEntityList_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityList_descriptor, - new java.lang.String[] { "Entities", "Token", }); - internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor, - new java.lang.String[] { "ResourceType", "Id", }); - internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor, - new java.lang.String[] { "ResourceType", "Id", "Metadata", }); - internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ObjectGetRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ObjectGetRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_ResourceListRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ResourceListRequest_descriptor, - new java.lang.String[] { "Id", "Limit", "Token", "Filters", "SortBy", }); - internal_static_flyteidl_admin_EmailNotification_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_EmailNotification_descriptor, - new java.lang.String[] { "RecipientsEmail", }); - internal_static_flyteidl_admin_PagerDutyNotification_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_PagerDutyNotification_descriptor, - new java.lang.String[] { "RecipientsEmail", }); - internal_static_flyteidl_admin_SlackNotification_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_SlackNotification_descriptor, - new java.lang.String[] { "RecipientsEmail", }); - internal_static_flyteidl_admin_Notification_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_flyteidl_admin_Notification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Notification_descriptor, - new java.lang.String[] { "Phases", "Email", "PagerDuty", "Slack", "Type", }); - internal_static_flyteidl_admin_UrlBlob_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_UrlBlob_descriptor, - new java.lang.String[] { "Url", "Bytes", }); - internal_static_flyteidl_admin_Labels_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_flyteidl_admin_Labels_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Labels_descriptor, - new java.lang.String[] { "Values", }); - internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor = - internal_static_flyteidl_admin_Labels_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_admin_Annotations_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_flyteidl_admin_Annotations_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Annotations_descriptor, - new java.lang.String[] { "Values", }); - internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor = - internal_static_flyteidl_admin_Annotations_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_admin_AuthRole_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_flyteidl_admin_AuthRole_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_AuthRole_descriptor, - new java.lang.String[] { "AssumableIamRole", "KubernetesServiceAccount", "Method", }); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/Event.java b/gen/pb-java/flyteidl/admin/Event.java deleted file mode 100644 index 0d1084c72..000000000 --- a/gen/pb-java/flyteidl/admin/Event.java +++ /dev/null @@ -1,5194 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/event.proto - -package flyteidl.admin; - -public final class Event { - private Event() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EventErrorAlreadyInTerminalStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventErrorAlreadyInTerminalState) - com.google.protobuf.MessageOrBuilder { - - /** - * string current_phase = 1; - */ - java.lang.String getCurrentPhase(); - /** - * string current_phase = 1; - */ - com.google.protobuf.ByteString - getCurrentPhaseBytes(); - } - /** - * Protobuf type {@code flyteidl.admin.EventErrorAlreadyInTerminalState} - */ - public static final class EventErrorAlreadyInTerminalState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) - EventErrorAlreadyInTerminalStateOrBuilder { - private static final long serialVersionUID = 0L; - // Use EventErrorAlreadyInTerminalState.newBuilder() to construct. - private EventErrorAlreadyInTerminalState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EventErrorAlreadyInTerminalState() { - currentPhase_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EventErrorAlreadyInTerminalState( - 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(); - - currentPhase_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); - } - - public static final int CURRENT_PHASE_FIELD_NUMBER = 1; - private volatile java.lang.Object currentPhase_; - /** - * string current_phase = 1; - */ - public java.lang.String getCurrentPhase() { - java.lang.Object ref = currentPhase_; - 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(); - currentPhase_ = s; - return s; - } - } - /** - * string current_phase = 1; - */ - public com.google.protobuf.ByteString - getCurrentPhaseBytes() { - java.lang.Object ref = currentPhase_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentPhase_ = 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 (!getCurrentPhaseBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentPhase_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCurrentPhaseBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currentPhase_); - } - 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState)) { - return super.equals(obj); - } - flyteidl.admin.Event.EventErrorAlreadyInTerminalState other = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) obj; - - if (!getCurrentPhase() - .equals(other.getCurrentPhase())) 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) + CURRENT_PHASE_FIELD_NUMBER; - hash = (53 * hash) + getCurrentPhase().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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(flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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 flyteidl.admin.EventErrorAlreadyInTerminalState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) - flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); - } - - // Construct using flyteidl.admin.Event.EventErrorAlreadyInTerminalState.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(); - currentPhase_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState build() { - flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState buildPartial() { - flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(this); - result.currentPhase_ = currentPhase_; - 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState) { - return mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.EventErrorAlreadyInTerminalState other) { - if (other == flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) return this; - if (!other.getCurrentPhase().isEmpty()) { - currentPhase_ = other.currentPhase_; - 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 { - flyteidl.admin.Event.EventErrorAlreadyInTerminalState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object currentPhase_ = ""; - /** - * string current_phase = 1; - */ - public java.lang.String getCurrentPhase() { - java.lang.Object ref = currentPhase_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentPhase_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string current_phase = 1; - */ - public com.google.protobuf.ByteString - getCurrentPhaseBytes() { - java.lang.Object ref = currentPhase_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentPhase_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string current_phase = 1; - */ - public Builder setCurrentPhase( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentPhase_ = value; - onChanged(); - return this; - } - /** - * string current_phase = 1; - */ - public Builder clearCurrentPhase() { - - currentPhase_ = getDefaultInstance().getCurrentPhase(); - onChanged(); - return this; - } - /** - * string current_phase = 1; - */ - public Builder setCurrentPhaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentPhase_ = 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:flyteidl.admin.EventErrorAlreadyInTerminalState) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorAlreadyInTerminalState) - private static final flyteidl.admin.Event.EventErrorAlreadyInTerminalState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(); - } - - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventErrorAlreadyInTerminalState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventErrorAlreadyInTerminalState(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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EventFailureReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventFailureReason) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - boolean hasAlreadyInTerminalState(); - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState(); - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder(); - - public flyteidl.admin.Event.EventFailureReason.ReasonCase getReasonCase(); - } - /** - * Protobuf type {@code flyteidl.admin.EventFailureReason} - */ - public static final class EventFailureReason extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.EventFailureReason) - EventFailureReasonOrBuilder { - private static final long serialVersionUID = 0L; - // Use EventFailureReason.newBuilder() to construct. - private EventFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EventFailureReason() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EventFailureReason( - 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: { - flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder subBuilder = null; - if (reasonCase_ == 1) { - subBuilder = ((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_).toBuilder(); - } - reason_ = - input.readMessage(flyteidl.admin.Event.EventErrorAlreadyInTerminalState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); - reason_ = subBuilder.buildPartial(); - } - reasonCase_ = 1; - 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 flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); - } - - private int reasonCase_ = 0; - private java.lang.Object reason_; - public enum ReasonCase - implements com.google.protobuf.Internal.EnumLite { - ALREADY_IN_TERMINAL_STATE(1), - REASON_NOT_SET(0); - private final int value; - private ReasonCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReasonCase valueOf(int value) { - return forNumber(value); - } - - public static ReasonCase forNumber(int value) { - switch (value) { - case 1: return ALREADY_IN_TERMINAL_STATE; - case 0: return REASON_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReasonCase - getReasonCase() { - return ReasonCase.forNumber( - reasonCase_); - } - - public static final int ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER = 1; - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public boolean hasAlreadyInTerminalState() { - return reasonCase_ == 1; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { - if (reasonCase_ == 1) { - return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { - if (reasonCase_ == 1) { - return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (reasonCase_ == 1) { - output.writeMessage(1, (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reasonCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); - } - 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 flyteidl.admin.Event.EventFailureReason)) { - return super.equals(obj); - } - flyteidl.admin.Event.EventFailureReason other = (flyteidl.admin.Event.EventFailureReason) obj; - - if (!getReasonCase().equals(other.getReasonCase())) return false; - switch (reasonCase_) { - case 1: - if (!getAlreadyInTerminalState() - .equals(other.getAlreadyInTerminalState())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (reasonCase_) { - case 1: - hash = (37 * hash) + ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER; - hash = (53 * hash) + getAlreadyInTerminalState().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.EventFailureReason parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventFailureReason 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 flyteidl.admin.Event.EventFailureReason parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventFailureReason 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 flyteidl.admin.Event.EventFailureReason parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventFailureReason 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(flyteidl.admin.Event.EventFailureReason 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 flyteidl.admin.EventFailureReason} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventFailureReason) - flyteidl.admin.Event.EventFailureReasonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); - } - - // Construct using flyteidl.admin.Event.EventFailureReason.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(); - reasonCase_ = 0; - reason_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.EventFailureReason getDefaultInstanceForType() { - return flyteidl.admin.Event.EventFailureReason.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.EventFailureReason build() { - flyteidl.admin.Event.EventFailureReason result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.EventFailureReason buildPartial() { - flyteidl.admin.Event.EventFailureReason result = new flyteidl.admin.Event.EventFailureReason(this); - if (reasonCase_ == 1) { - if (alreadyInTerminalStateBuilder_ == null) { - result.reason_ = reason_; - } else { - result.reason_ = alreadyInTerminalStateBuilder_.build(); - } - } - result.reasonCase_ = reasonCase_; - 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 flyteidl.admin.Event.EventFailureReason) { - return mergeFrom((flyteidl.admin.Event.EventFailureReason)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.EventFailureReason other) { - if (other == flyteidl.admin.Event.EventFailureReason.getDefaultInstance()) return this; - switch (other.getReasonCase()) { - case ALREADY_IN_TERMINAL_STATE: { - mergeAlreadyInTerminalState(other.getAlreadyInTerminalState()); - break; - } - case REASON_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 { - flyteidl.admin.Event.EventFailureReason parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.EventFailureReason) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int reasonCase_ = 0; - private java.lang.Object reason_; - public ReasonCase - getReasonCase() { - return ReasonCase.forNumber( - reasonCase_); - } - - public Builder clearReason() { - reasonCase_ = 0; - reason_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> alreadyInTerminalStateBuilder_; - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public boolean hasAlreadyInTerminalState() { - return reasonCase_ == 1; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { - if (alreadyInTerminalStateBuilder_ == null) { - if (reasonCase_ == 1) { - return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } else { - if (reasonCase_ == 1) { - return alreadyInTerminalStateBuilder_.getMessage(); - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public Builder setAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { - if (alreadyInTerminalStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reason_ = value; - onChanged(); - } else { - alreadyInTerminalStateBuilder_.setMessage(value); - } - reasonCase_ = 1; - return this; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public Builder setAlreadyInTerminalState( - flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder builderForValue) { - if (alreadyInTerminalStateBuilder_ == null) { - reason_ = builderForValue.build(); - onChanged(); - } else { - alreadyInTerminalStateBuilder_.setMessage(builderForValue.build()); - } - reasonCase_ = 1; - return this; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public Builder mergeAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { - if (alreadyInTerminalStateBuilder_ == null) { - if (reasonCase_ == 1 && - reason_ != flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) { - reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.newBuilder((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_) - .mergeFrom(value).buildPartial(); - } else { - reason_ = value; - } - onChanged(); - } else { - if (reasonCase_ == 1) { - alreadyInTerminalStateBuilder_.mergeFrom(value); - } - alreadyInTerminalStateBuilder_.setMessage(value); - } - reasonCase_ = 1; - return this; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public Builder clearAlreadyInTerminalState() { - if (alreadyInTerminalStateBuilder_ == null) { - if (reasonCase_ == 1) { - reasonCase_ = 0; - reason_ = null; - onChanged(); - } - } else { - if (reasonCase_ == 1) { - reasonCase_ = 0; - reason_ = null; - } - alreadyInTerminalStateBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder getAlreadyInTerminalStateBuilder() { - return getAlreadyInTerminalStateFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { - if ((reasonCase_ == 1) && (alreadyInTerminalStateBuilder_ != null)) { - return alreadyInTerminalStateBuilder_.getMessageOrBuilder(); - } else { - if (reasonCase_ == 1) { - return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> - getAlreadyInTerminalStateFieldBuilder() { - if (alreadyInTerminalStateBuilder_ == null) { - if (!(reasonCase_ == 1)) { - reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - alreadyInTerminalStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder>( - (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_, - getParentForChildren(), - isClean()); - reason_ = null; - } - reasonCase_ = 1; - onChanged();; - return alreadyInTerminalStateBuilder_; - } - @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:flyteidl.admin.EventFailureReason) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EventFailureReason) - private static final flyteidl.admin.Event.EventFailureReason DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.EventFailureReason(); - } - - public static flyteidl.admin.Event.EventFailureReason getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventFailureReason parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventFailureReason(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 flyteidl.admin.Event.EventFailureReason getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - java.lang.String getRequestId(); - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - boolean hasEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - flyteidl.event.Event.WorkflowExecutionEvent getEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder(); - } - /** - *
-   * Request to send a notification that a workflow execution event has occurred.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} - */ - public static final class WorkflowExecutionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventRequest) - WorkflowExecutionEventRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionEventRequest.newBuilder() to construct. - private WorkflowExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionEventRequest() { - requestId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionEventRequest( - 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(); - - requestId_ = s; - break; - } - case 18: { - flyteidl.event.Event.WorkflowExecutionEvent.Builder subBuilder = null; - if (event_ != null) { - subBuilder = event_.toBuilder(); - } - event_ = input.readMessage(flyteidl.event.Event.WorkflowExecutionEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(event_); - event_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object requestId_; - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_FIELD_NUMBER = 2; - private flyteidl.event.Event.WorkflowExecutionEvent event_; - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public boolean hasEvent() { - return event_ != null; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { - return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { - return getEvent(); - } - - 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 (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); - } - if (event_ != null) { - output.writeMessage(2, getEvent()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); - } - if (event_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvent()); - } - 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 flyteidl.admin.Event.WorkflowExecutionEventRequest)) { - return super.equals(obj); - } - flyteidl.admin.Event.WorkflowExecutionEventRequest other = (flyteidl.admin.Event.WorkflowExecutionEventRequest) obj; - - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (hasEvent() != other.hasEvent()) return false; - if (hasEvent()) { - if (!getEvent() - .equals(other.getEvent())) 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) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - if (hasEvent()) { - hash = (37 * hash) + EVENT_FIELD_NUMBER; - hash = (53 * hash) + getEvent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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 flyteidl.admin.Event.WorkflowExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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 flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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(flyteidl.admin.Event.WorkflowExecutionEventRequest 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; - } - /** - *
-     * Request to send a notification that a workflow execution event has occurred.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventRequest) - flyteidl.admin.Event.WorkflowExecutionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); - } - - // Construct using flyteidl.admin.Event.WorkflowExecutionEventRequest.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(); - requestId_ = ""; - - if (eventBuilder_ == null) { - event_ = null; - } else { - event_ = null; - eventBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { - return flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventRequest build() { - flyteidl.admin.Event.WorkflowExecutionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventRequest buildPartial() { - flyteidl.admin.Event.WorkflowExecutionEventRequest result = new flyteidl.admin.Event.WorkflowExecutionEventRequest(this); - result.requestId_ = requestId_; - if (eventBuilder_ == null) { - result.event_ = event_; - } else { - result.event_ = eventBuilder_.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 flyteidl.admin.Event.WorkflowExecutionEventRequest) { - return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventRequest other) { - if (other == flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance()) return this; - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.hasEvent()) { - mergeEvent(other.getEvent()); - } - 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 { - flyteidl.admin.Event.WorkflowExecutionEventRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object requestId_ = ""; - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private flyteidl.event.Event.WorkflowExecutionEvent event_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> eventBuilder_; - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public boolean hasEvent() { - return eventBuilder_ != null || event_ != null; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { - if (eventBuilder_ == null) { - return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; - } else { - return eventBuilder_.getMessage(); - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public Builder setEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { - if (eventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - event_ = value; - onChanged(); - } else { - eventBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public Builder setEvent( - flyteidl.event.Event.WorkflowExecutionEvent.Builder builderForValue) { - if (eventBuilder_ == null) { - event_ = builderForValue.build(); - onChanged(); - } else { - eventBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public Builder mergeEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { - if (eventBuilder_ == null) { - if (event_ != null) { - event_ = - flyteidl.event.Event.WorkflowExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); - } else { - event_ = value; - } - onChanged(); - } else { - eventBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public Builder clearEvent() { - if (eventBuilder_ == null) { - event_ = null; - onChanged(); - } else { - event_ = null; - eventBuilder_ = null; - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEvent.Builder getEventBuilder() { - - onChanged(); - return getEventFieldBuilder().getBuilder(); - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { - if (eventBuilder_ != null) { - return eventBuilder_.getMessageOrBuilder(); - } else { - return event_ == null ? - flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> - getEventFieldBuilder() { - if (eventBuilder_ == null) { - eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder>( - getEvent(), - getParentForChildren(), - isClean()); - event_ = null; - } - return eventBuilder_; - } - @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:flyteidl.admin.WorkflowExecutionEventRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventRequest) - private static final flyteidl.admin.Event.WorkflowExecutionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventRequest(); - } - - public static flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionEventRequest(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 flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionEventResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * a placeholder for now
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} - */ - public static final class WorkflowExecutionEventResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventResponse) - WorkflowExecutionEventResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionEventResponse.newBuilder() to construct. - private WorkflowExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionEventResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionEventResponse( - 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; - 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 flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.Event.WorkflowExecutionEventResponse)) { - return super.equals(obj); - } - flyteidl.admin.Event.WorkflowExecutionEventResponse other = (flyteidl.admin.Event.WorkflowExecutionEventResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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 flyteidl.admin.Event.WorkflowExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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 flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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(flyteidl.admin.Event.WorkflowExecutionEventResponse 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 placeholder for now
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventResponse) - flyteidl.admin.Event.WorkflowExecutionEventResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); - } - - // Construct using flyteidl.admin.Event.WorkflowExecutionEventResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { - return flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventResponse build() { - flyteidl.admin.Event.WorkflowExecutionEventResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventResponse buildPartial() { - flyteidl.admin.Event.WorkflowExecutionEventResponse result = new flyteidl.admin.Event.WorkflowExecutionEventResponse(this); - 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 flyteidl.admin.Event.WorkflowExecutionEventResponse) { - return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventResponse other) { - if (other == flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.Event.WorkflowExecutionEventResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.WorkflowExecutionEventResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventResponse) - private static final flyteidl.admin.Event.WorkflowExecutionEventResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventResponse(); - } - - public static flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionEventResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionEventResponse(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 flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - java.lang.String getRequestId(); - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - boolean hasEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - flyteidl.event.Event.NodeExecutionEvent getEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder(); - } - /** - *
-   * Request to send a notification that a node execution event has occurred.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} - */ - public static final class NodeExecutionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventRequest) - NodeExecutionEventRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionEventRequest.newBuilder() to construct. - private NodeExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionEventRequest() { - requestId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionEventRequest( - 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(); - - requestId_ = s; - break; - } - case 18: { - flyteidl.event.Event.NodeExecutionEvent.Builder subBuilder = null; - if (event_ != null) { - subBuilder = event_.toBuilder(); - } - event_ = input.readMessage(flyteidl.event.Event.NodeExecutionEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(event_); - event_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object requestId_; - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_FIELD_NUMBER = 2; - private flyteidl.event.Event.NodeExecutionEvent event_; - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public boolean hasEvent() { - return event_ != null; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEvent getEvent() { - return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { - return getEvent(); - } - - 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 (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); - } - if (event_ != null) { - output.writeMessage(2, getEvent()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); - } - if (event_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvent()); - } - 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 flyteidl.admin.Event.NodeExecutionEventRequest)) { - return super.equals(obj); - } - flyteidl.admin.Event.NodeExecutionEventRequest other = (flyteidl.admin.Event.NodeExecutionEventRequest) obj; - - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (hasEvent() != other.hasEvent()) return false; - if (hasEvent()) { - if (!getEvent() - .equals(other.getEvent())) 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) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - if (hasEvent()) { - hash = (37 * hash) + EVENT_FIELD_NUMBER; - hash = (53 * hash) + getEvent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest 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 flyteidl.admin.Event.NodeExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest 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 flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest 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(flyteidl.admin.Event.NodeExecutionEventRequest 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; - } - /** - *
-     * Request to send a notification that a node execution event has occurred.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventRequest) - flyteidl.admin.Event.NodeExecutionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); - } - - // Construct using flyteidl.admin.Event.NodeExecutionEventRequest.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(); - requestId_ = ""; - - if (eventBuilder_ == null) { - event_ = null; - } else { - event_ = null; - eventBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstanceForType() { - return flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventRequest build() { - flyteidl.admin.Event.NodeExecutionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventRequest buildPartial() { - flyteidl.admin.Event.NodeExecutionEventRequest result = new flyteidl.admin.Event.NodeExecutionEventRequest(this); - result.requestId_ = requestId_; - if (eventBuilder_ == null) { - result.event_ = event_; - } else { - result.event_ = eventBuilder_.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 flyteidl.admin.Event.NodeExecutionEventRequest) { - return mergeFrom((flyteidl.admin.Event.NodeExecutionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventRequest other) { - if (other == flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance()) return this; - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.hasEvent()) { - mergeEvent(other.getEvent()); - } - 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 { - flyteidl.admin.Event.NodeExecutionEventRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.NodeExecutionEventRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object requestId_ = ""; - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private flyteidl.event.Event.NodeExecutionEvent event_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> eventBuilder_; - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public boolean hasEvent() { - return eventBuilder_ != null || event_ != null; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEvent getEvent() { - if (eventBuilder_ == null) { - return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; - } else { - return eventBuilder_.getMessage(); - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public Builder setEvent(flyteidl.event.Event.NodeExecutionEvent value) { - if (eventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - event_ = value; - onChanged(); - } else { - eventBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public Builder setEvent( - flyteidl.event.Event.NodeExecutionEvent.Builder builderForValue) { - if (eventBuilder_ == null) { - event_ = builderForValue.build(); - onChanged(); - } else { - eventBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public Builder mergeEvent(flyteidl.event.Event.NodeExecutionEvent value) { - if (eventBuilder_ == null) { - if (event_ != null) { - event_ = - flyteidl.event.Event.NodeExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); - } else { - event_ = value; - } - onChanged(); - } else { - eventBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public Builder clearEvent() { - if (eventBuilder_ == null) { - event_ = null; - onChanged(); - } else { - event_ = null; - eventBuilder_ = null; - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEvent.Builder getEventBuilder() { - - onChanged(); - return getEventFieldBuilder().getBuilder(); - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { - if (eventBuilder_ != null) { - return eventBuilder_.getMessageOrBuilder(); - } else { - return event_ == null ? - flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> - getEventFieldBuilder() { - if (eventBuilder_ == null) { - eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder>( - getEvent(), - getParentForChildren(), - isClean()); - event_ = null; - } - return eventBuilder_; - } - @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:flyteidl.admin.NodeExecutionEventRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventRequest) - private static final flyteidl.admin.Event.NodeExecutionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventRequest(); - } - - public static flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionEventRequest(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 flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionEventResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * a placeholder for now
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} - */ - public static final class NodeExecutionEventResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventResponse) - NodeExecutionEventResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionEventResponse.newBuilder() to construct. - private NodeExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionEventResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionEventResponse( - 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; - 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 flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.Event.NodeExecutionEventResponse)) { - return super.equals(obj); - } - flyteidl.admin.Event.NodeExecutionEventResponse other = (flyteidl.admin.Event.NodeExecutionEventResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse 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 flyteidl.admin.Event.NodeExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse 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 flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse 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(flyteidl.admin.Event.NodeExecutionEventResponse 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 placeholder for now
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventResponse) - flyteidl.admin.Event.NodeExecutionEventResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); - } - - // Construct using flyteidl.admin.Event.NodeExecutionEventResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstanceForType() { - return flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventResponse build() { - flyteidl.admin.Event.NodeExecutionEventResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventResponse buildPartial() { - flyteidl.admin.Event.NodeExecutionEventResponse result = new flyteidl.admin.Event.NodeExecutionEventResponse(this); - 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 flyteidl.admin.Event.NodeExecutionEventResponse) { - return mergeFrom((flyteidl.admin.Event.NodeExecutionEventResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventResponse other) { - if (other == flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.Event.NodeExecutionEventResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.NodeExecutionEventResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.NodeExecutionEventResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventResponse) - private static final flyteidl.admin.Event.NodeExecutionEventResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventResponse(); - } - - public static flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionEventResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionEventResponse(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 flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - java.lang.String getRequestId(); - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - boolean hasEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - flyteidl.event.Event.TaskExecutionEvent getEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder(); - } - /** - *
-   * Request to send a notification that a task execution event has occurred.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} - */ - public static final class TaskExecutionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventRequest) - TaskExecutionEventRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionEventRequest.newBuilder() to construct. - private TaskExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionEventRequest() { - requestId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionEventRequest( - 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(); - - requestId_ = s; - break; - } - case 18: { - flyteidl.event.Event.TaskExecutionEvent.Builder subBuilder = null; - if (event_ != null) { - subBuilder = event_.toBuilder(); - } - event_ = input.readMessage(flyteidl.event.Event.TaskExecutionEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(event_); - event_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object requestId_; - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_FIELD_NUMBER = 2; - private flyteidl.event.Event.TaskExecutionEvent event_; - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public boolean hasEvent() { - return event_ != null; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEvent getEvent() { - return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { - return getEvent(); - } - - 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 (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); - } - if (event_ != null) { - output.writeMessage(2, getEvent()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); - } - if (event_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvent()); - } - 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 flyteidl.admin.Event.TaskExecutionEventRequest)) { - return super.equals(obj); - } - flyteidl.admin.Event.TaskExecutionEventRequest other = (flyteidl.admin.Event.TaskExecutionEventRequest) obj; - - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (hasEvent() != other.hasEvent()) return false; - if (hasEvent()) { - if (!getEvent() - .equals(other.getEvent())) 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) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - if (hasEvent()) { - hash = (37 * hash) + EVENT_FIELD_NUMBER; - hash = (53 * hash) + getEvent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest 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 flyteidl.admin.Event.TaskExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest 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 flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest 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(flyteidl.admin.Event.TaskExecutionEventRequest 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; - } - /** - *
-     * Request to send a notification that a task execution event has occurred.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventRequest) - flyteidl.admin.Event.TaskExecutionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); - } - - // Construct using flyteidl.admin.Event.TaskExecutionEventRequest.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(); - requestId_ = ""; - - if (eventBuilder_ == null) { - event_ = null; - } else { - event_ = null; - eventBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstanceForType() { - return flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventRequest build() { - flyteidl.admin.Event.TaskExecutionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventRequest buildPartial() { - flyteidl.admin.Event.TaskExecutionEventRequest result = new flyteidl.admin.Event.TaskExecutionEventRequest(this); - result.requestId_ = requestId_; - if (eventBuilder_ == null) { - result.event_ = event_; - } else { - result.event_ = eventBuilder_.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 flyteidl.admin.Event.TaskExecutionEventRequest) { - return mergeFrom((flyteidl.admin.Event.TaskExecutionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventRequest other) { - if (other == flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance()) return this; - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.hasEvent()) { - mergeEvent(other.getEvent()); - } - 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 { - flyteidl.admin.Event.TaskExecutionEventRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.TaskExecutionEventRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object requestId_ = ""; - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private flyteidl.event.Event.TaskExecutionEvent event_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> eventBuilder_; - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public boolean hasEvent() { - return eventBuilder_ != null || event_ != null; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEvent getEvent() { - if (eventBuilder_ == null) { - return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; - } else { - return eventBuilder_.getMessage(); - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public Builder setEvent(flyteidl.event.Event.TaskExecutionEvent value) { - if (eventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - event_ = value; - onChanged(); - } else { - eventBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public Builder setEvent( - flyteidl.event.Event.TaskExecutionEvent.Builder builderForValue) { - if (eventBuilder_ == null) { - event_ = builderForValue.build(); - onChanged(); - } else { - eventBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public Builder mergeEvent(flyteidl.event.Event.TaskExecutionEvent value) { - if (eventBuilder_ == null) { - if (event_ != null) { - event_ = - flyteidl.event.Event.TaskExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); - } else { - event_ = value; - } - onChanged(); - } else { - eventBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public Builder clearEvent() { - if (eventBuilder_ == null) { - event_ = null; - onChanged(); - } else { - event_ = null; - eventBuilder_ = null; - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEvent.Builder getEventBuilder() { - - onChanged(); - return getEventFieldBuilder().getBuilder(); - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { - if (eventBuilder_ != null) { - return eventBuilder_.getMessageOrBuilder(); - } else { - return event_ == null ? - flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> - getEventFieldBuilder() { - if (eventBuilder_ == null) { - eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder>( - getEvent(), - getParentForChildren(), - isClean()); - event_ = null; - } - return eventBuilder_; - } - @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:flyteidl.admin.TaskExecutionEventRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventRequest) - private static final flyteidl.admin.Event.TaskExecutionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventRequest(); - } - - public static flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionEventRequest(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 flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionEventResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * a placeholder for now
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} - */ - public static final class TaskExecutionEventResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventResponse) - TaskExecutionEventResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionEventResponse.newBuilder() to construct. - private TaskExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionEventResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionEventResponse( - 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; - 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 flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.Event.TaskExecutionEventResponse)) { - return super.equals(obj); - } - flyteidl.admin.Event.TaskExecutionEventResponse other = (flyteidl.admin.Event.TaskExecutionEventResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse 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 flyteidl.admin.Event.TaskExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse 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 flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse 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(flyteidl.admin.Event.TaskExecutionEventResponse 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 placeholder for now
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventResponse) - flyteidl.admin.Event.TaskExecutionEventResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); - } - - // Construct using flyteidl.admin.Event.TaskExecutionEventResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstanceForType() { - return flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventResponse build() { - flyteidl.admin.Event.TaskExecutionEventResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventResponse buildPartial() { - flyteidl.admin.Event.TaskExecutionEventResponse result = new flyteidl.admin.Event.TaskExecutionEventResponse(this); - 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 flyteidl.admin.Event.TaskExecutionEventResponse) { - return mergeFrom((flyteidl.admin.Event.TaskExecutionEventResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventResponse other) { - if (other == flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.Event.TaskExecutionEventResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.TaskExecutionEventResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.TaskExecutionEventResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventResponse) - private static final flyteidl.admin.Event.TaskExecutionEventResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventResponse(); - } - - public static flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionEventResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionEventResponse(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 flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_EventFailureReason_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionEventResponse_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\032flyteidl/admin/event.proto\022\016flyteidl.a" + - "dmin\032\032flyteidl/event/event.proto\"9\n Even" + - "tErrorAlreadyInTerminalState\022\025\n\rcurrent_" + - "phase\030\001 \001(\t\"u\n\022EventFailureReason\022U\n\031alr" + - "eady_in_terminal_state\030\001 \001(\01320.flyteidl." + - "admin.EventErrorAlreadyInTerminalStateH\000" + - "B\010\n\006reason\"j\n\035WorkflowExecutionEventRequ" + - "est\022\022\n\nrequest_id\030\001 \001(\t\0225\n\005event\030\002 \001(\0132&" + - ".flyteidl.event.WorkflowExecutionEvent\" " + - "\n\036WorkflowExecutionEventResponse\"b\n\031Node" + - "ExecutionEventRequest\022\022\n\nrequest_id\030\001 \001(" + - "\t\0221\n\005event\030\002 \001(\0132\".flyteidl.event.NodeEx" + - "ecutionEvent\"\034\n\032NodeExecutionEventRespon" + - "se\"b\n\031TaskExecutionEventRequest\022\022\n\nreque" + - "st_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".flyteidl.ev" + - "ent.TaskExecutionEvent\"\034\n\032TaskExecutionE" + - "ventResponseB3Z1github.com/lyft/flyteidl" + - "/gen/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.event.Event.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor, - new java.lang.String[] { "CurrentPhase", }); - internal_static_flyteidl_admin_EventFailureReason_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_EventFailureReason_descriptor, - new java.lang.String[] { "AlreadyInTerminalState", "Reason", }); - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor, - new java.lang.String[] { "RequestId", "Event", }); - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor, - new java.lang.String[] { "RequestId", "Event", }); - internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor, - new java.lang.String[] { "RequestId", "Event", }); - internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor, - new java.lang.String[] { }); - flyteidl.event.Event.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java b/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java deleted file mode 100644 index 0e344e51e..000000000 --- a/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java +++ /dev/null @@ -1,20558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/execution.proto - -package flyteidl.admin; - -public final class ExecutionOuterClass { - private ExecutionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ExecutionCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project the execution belongs to. 
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project the execution belongs to. 
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the execution belongs to. 
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the execution belongs to. 
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * User provided value for the resource.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - java.lang.String getName(); - /** - *
-     * User provided value for the resource.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * Additional fields necessary to launch the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - boolean hasSpec(); - /** - *
-     * Additional fields necessary to launch the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); - /** - *
-     * Additional fields necessary to launch the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); - - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - boolean hasInputs(); - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - flyteidl.core.Literals.LiteralMap getInputs(); - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); - } - /** - *
-   * Request to launch an execution with the given project, domain and optionally name.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} - */ - public static final class ExecutionCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateRequest) - ExecutionCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionCreateRequest.newBuilder() to construct. - private ExecutionCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionCreateRequest() { - project_ = ""; - domain_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionCreateRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 34: { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project the execution belongs to. 
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project the execution belongs to. 
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the execution belongs to. 
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the execution belongs to. 
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - *
-     * User provided value for the resource.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-     * User provided value for the resource.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - 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 SPEC_FIELD_NUMBER = 4; - private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; - /** - *
-     * Additional fields necessary to launch the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * Additional fields necessary to launch the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { - return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } - /** - *
-     * Additional fields necessary to launch the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - public static final int INPUTS_FIELD_NUMBER = 5; - private flyteidl.core.Literals.LiteralMap inputs_; - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMap getInputs() { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - if (spec_ != null) { - output.writeMessage(4, getSpec()); - } - if (inputs_ != null) { - output.writeMessage(5, getInputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSpec()); - } - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getInputs()); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getName() - .equals(other.getName())) return false; - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; - } - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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(flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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; - } - /** - *
-     * Request to launch an execution with the given project, domain and optionally name.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateRequest) - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.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(); - project_ = ""; - - domain_ = ""; - - name_ = ""; - - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest build() { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.name_ = name_; - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.build(); - } - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project the execution belongs to. 
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project the execution belongs to. 
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project the execution belongs to. 
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project the execution belongs to. 
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project the execution belongs to. 
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the execution belongs to. 
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the execution belongs to. 
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the execution belongs to. 
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the execution belongs to. 
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the execution belongs to. 
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public Builder setSpec( - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - - private flyteidl.core.Literals.LiteralMap inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMap getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public Builder setInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - @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:flyteidl.admin.ExecutionCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateRequest) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionCreateRequest(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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionRelaunchRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionRelaunchRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * User provided value for the relaunched execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - java.lang.String getName(); - /** - *
-     * User provided value for the relaunched execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - *
-   * Request to relaunch the referenced execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} - */ - public static final class ExecutionRelaunchRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionRelaunchRequest) - ExecutionRelaunchRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionRelaunchRequest.newBuilder() to construct. - private ExecutionRelaunchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionRelaunchRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionRelaunchRequest( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - *
-     * User provided value for the relaunched execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-     * User provided value for the relaunched execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (id_ != null) { - output.writeMessage(1, getId()); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - 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 (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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(flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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; - } - /** - *
-     * Request to relaunch the referenced execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionRelaunchRequest) - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest build() { - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - 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; - } - } - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionRelaunchRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRelaunchRequest) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionRelaunchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionRelaunchRequest(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 flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionCreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * The unique identifier for a successfully created execution.
-   * If the name was *not* specified in the create request, this identifier will include a generated name.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} - */ - public static final class ExecutionCreateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateResponse) - ExecutionCreateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionCreateResponse.newBuilder() to construct. - private ExecutionCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionCreateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionCreateResponse( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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(flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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; - } - /** - *
-     * The unique identifier for a successfully created execution.
-     * If the name was *not* specified in the create request, this identifier will include a generated name.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateResponse) - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse build() { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.ExecutionCreateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateResponse) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionCreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionCreateResponse(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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * A message used to fetch a single workflow execution entity.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} - */ - public static final class WorkflowExecutionGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetRequest) - WorkflowExecutionGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionGetRequest.newBuilder() to construct. - private WorkflowExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionGetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionGetRequest( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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 message used to fetch a single workflow execution entity.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetRequest) - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest build() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.WorkflowExecutionGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetRequest) - private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionGetRequest(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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Execution) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - boolean hasSpec(); - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); - - /** - *
-     * Execution results. 
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - boolean hasClosure(); - /** - *
-     * Execution results. 
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure(); - /** - *
-     * Execution results. 
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder(); - } - /** - *
-   * A workflow execution represents an instantiated workflow, including all inputs and additional
-   * metadata as well as computed results included state, outputs, and duration-based attributes.
-   * Used as a response object used in Get and List execution requests.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Execution} - */ - public static final class Execution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Execution) - ExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Execution.newBuilder() to construct. - private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Execution() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Execution( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { - return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - public static final int CLOSURE_FIELD_NUMBER = 3; - private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_; - /** - *
-     * Execution results. 
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * Execution results. 
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { - return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; - } - /** - *
-     * Execution results. 
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - 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 (spec_ != null) { - output.writeMessage(2, getSpec()); - } - if (closure_ != null) { - output.writeMessage(3, getClosure()); - } - 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 (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClosure()); - } - 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 flyteidl.admin.ExecutionOuterClass.Execution)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.Execution other = (flyteidl.admin.ExecutionOuterClass.Execution) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; - } - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.Execution 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 flyteidl.admin.ExecutionOuterClass.Execution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.Execution 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 flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.Execution 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(flyteidl.admin.ExecutionOuterClass.Execution 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 workflow execution represents an instantiated workflow, including all inputs and additional
-     * metadata as well as computed results included state, outputs, and duration-based attributes.
-     * Used as a response object used in Get and List execution requests.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Execution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Execution) - flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.Execution.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.Execution build() { - flyteidl.admin.ExecutionOuterClass.Execution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.Execution buildPartial() { - flyteidl.admin.ExecutionOuterClass.Execution result = new flyteidl.admin.ExecutionOuterClass.Execution(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.build(); - } - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.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 flyteidl.admin.ExecutionOuterClass.Execution) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.Execution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.Execution other) { - if (other == flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.Execution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.Execution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> closureBuilder_; - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public Builder setClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public Builder setClosure( - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public Builder mergeClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * Execution results. 
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - @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:flyteidl.admin.Execution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Execution) - private static final flyteidl.admin.ExecutionOuterClass.Execution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.Execution(); - } - - public static flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Execution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Execution(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 flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - java.util.List - getExecutionsList(); - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index); - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - int getExecutionsCount(); - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - java.util.List - getExecutionsOrBuilderList(); - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Used as a response for request to list executions.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionList} - */ - public static final class ExecutionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionList) - ExecutionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionList.newBuilder() to construct. - private ExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionList() { - executions_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionList( - 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)) { - executions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - executions_.add( - input.readMessage(flyteidl.admin.ExecutionOuterClass.Execution.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - executions_ = java.util.Collections.unmodifiableList(executions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); - } - - private int bitField0_; - public static final int EXECUTIONS_FIELD_NUMBER = 1; - private java.util.List executions_; - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List getExecutionsList() { - return executions_; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List - getExecutionsOrBuilderList() { - return executions_; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public int getExecutionsCount() { - return executions_.size(); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { - return executions_.get(index); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( - int index) { - return executions_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < executions_.size(); i++) { - output.writeMessage(1, executions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < executions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, executions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionList)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionList other = (flyteidl.admin.ExecutionOuterClass.ExecutionList) obj; - - if (!getExecutionsList() - .equals(other.getExecutionsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getExecutionsCount() > 0) { - hash = (37 * hash) + EXECUTIONS_FIELD_NUMBER; - hash = (53 * hash) + getExecutionsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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 flyteidl.admin.ExecutionOuterClass.ExecutionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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 flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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(flyteidl.admin.ExecutionOuterClass.ExecutionList 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; - } - /** - *
-     * Used as a response for request to list executions.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionList) - flyteidl.admin.ExecutionOuterClass.ExecutionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getExecutionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (executionsBuilder_ == null) { - executions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - executionsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionList build() { - flyteidl.admin.ExecutionOuterClass.ExecutionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionList buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionList result = new flyteidl.admin.ExecutionOuterClass.ExecutionList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (executionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - executions_ = java.util.Collections.unmodifiableList(executions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.executions_ = executions_; - } else { - result.executions_ = executionsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.ExecutionOuterClass.ExecutionList) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionList other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance()) return this; - if (executionsBuilder_ == null) { - if (!other.executions_.isEmpty()) { - if (executions_.isEmpty()) { - executions_ = other.executions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureExecutionsIsMutable(); - executions_.addAll(other.executions_); - } - onChanged(); - } - } else { - if (!other.executions_.isEmpty()) { - if (executionsBuilder_.isEmpty()) { - executionsBuilder_.dispose(); - executionsBuilder_ = null; - executions_ = other.executions_; - bitField0_ = (bitField0_ & ~0x00000001); - executionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExecutionsFieldBuilder() : null; - } else { - executionsBuilder_.addAllMessages(other.executions_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.ExecutionOuterClass.ExecutionList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List executions_ = - java.util.Collections.emptyList(); - private void ensureExecutionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - executions_ = new java.util.ArrayList(executions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> executionsBuilder_; - - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List getExecutionsList() { - if (executionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(executions_); - } else { - return executionsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public int getExecutionsCount() { - if (executionsBuilder_ == null) { - return executions_.size(); - } else { - return executionsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { - if (executionsBuilder_ == null) { - return executions_.get(index); - } else { - return executionsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder setExecutions( - int index, flyteidl.admin.ExecutionOuterClass.Execution value) { - if (executionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecutionsIsMutable(); - executions_.set(index, value); - onChanged(); - } else { - executionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder setExecutions( - int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.set(index, builderForValue.build()); - onChanged(); - } else { - executionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addExecutions(flyteidl.admin.ExecutionOuterClass.Execution value) { - if (executionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecutionsIsMutable(); - executions_.add(value); - onChanged(); - } else { - executionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addExecutions( - int index, flyteidl.admin.ExecutionOuterClass.Execution value) { - if (executionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecutionsIsMutable(); - executions_.add(index, value); - onChanged(); - } else { - executionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addExecutions( - flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.add(builderForValue.build()); - onChanged(); - } else { - executionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addExecutions( - int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.add(index, builderForValue.build()); - onChanged(); - } else { - executionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addAllExecutions( - java.lang.Iterable values) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, executions_); - onChanged(); - } else { - executionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder clearExecutions() { - if (executionsBuilder_ == null) { - executions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - executionsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder removeExecutions(int index) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.remove(index); - onChanged(); - } else { - executionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution.Builder getExecutionsBuilder( - int index) { - return getExecutionsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( - int index) { - if (executionsBuilder_ == null) { - return executions_.get(index); } else { - return executionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List - getExecutionsOrBuilderList() { - if (executionsBuilder_ != null) { - return executionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(executions_); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder() { - return getExecutionsFieldBuilder().addBuilder( - flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder( - int index) { - return getExecutionsFieldBuilder().addBuilder( - index, flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List - getExecutionsBuilderList() { - return getExecutionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> - getExecutionsFieldBuilder() { - if (executionsBuilder_ == null) { - executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder>( - executions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - executions_ = null; - } - return executionsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.ExecutionList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionList) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionList(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionList(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 flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralMapBlobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LiteralMapBlob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - boolean hasValues(); - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - flyteidl.core.Literals.LiteralMap getValues(); - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder(); - - /** - *
-     * In the event that the map is too large, we return a uri to the data
-     * 
- * - * string uri = 2; - */ - java.lang.String getUri(); - /** - *
-     * In the event that the map is too large, we return a uri to the data
-     * 
- * - * string uri = 2; - */ - com.google.protobuf.ByteString - getUriBytes(); - - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.DataCase getDataCase(); - } - /** - *
-   * Input/output data can represented by actual values or a link to where values are stored
-   * 
- * - * Protobuf type {@code flyteidl.admin.LiteralMapBlob} - */ - public static final class LiteralMapBlob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LiteralMapBlob) - LiteralMapBlobOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiteralMapBlob.newBuilder() to construct. - private LiteralMapBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiteralMapBlob() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiteralMapBlob( - 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: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (dataCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) data_).toBuilder(); - } - data_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) data_); - data_ = subBuilder.buildPartial(); - } - dataCase_ = 1; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - dataCase_ = 2; - data_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); - } - - private int dataCase_ = 0; - private java.lang.Object data_; - public enum DataCase - implements com.google.protobuf.Internal.EnumLite { - VALUES(1), - URI(2), - DATA_NOT_SET(0); - private final int value; - private DataCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DataCase valueOf(int value) { - return forNumber(value); - } - - public static DataCase forNumber(int value) { - switch (value) { - case 1: return VALUES; - case 2: return URI; - case 0: return DATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); - } - - public static final int VALUES_FIELD_NUMBER = 1; - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public boolean hasValues() { - return dataCase_ == 1; - } - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public flyteidl.core.Literals.LiteralMap getValues() { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - public static final int URI_FIELD_NUMBER = 2; - /** - *
-     * In the event that the map is too large, we return a uri to the data
-     * 
- * - * string uri = 2; - */ - public java.lang.String getUri() { - java.lang.Object ref = ""; - if (dataCase_ == 2) { - ref = data_; - } - 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(); - if (dataCase_ == 2) { - data_ = s; - } - return s; - } - } - /** - *
-     * In the event that the map is too large, we return a uri to the data
-     * 
- * - * string uri = 2; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = ""; - if (dataCase_ == 2) { - ref = data_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (dataCase_ == 2) { - data_ = 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 (dataCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.LiteralMap) data_); - } - if (dataCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.LiteralMap) data_); - } - if (dataCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_); - } - 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) obj; - - if (!getDataCase().equals(other.getDataCase())) return false; - switch (dataCase_) { - case 1: - if (!getValues() - .equals(other.getValues())) return false; - break; - case 2: - if (!getUri() - .equals(other.getUri())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (dataCase_) { - case 1: - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValues().hashCode(); - break; - case 2: - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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; - } - /** - *
-     * Input/output data can represented by actual values or a link to where values are stored
-     * 
- * - * Protobuf type {@code flyteidl.admin.LiteralMapBlob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LiteralMapBlob) - flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.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(); - dataCase_ = 0; - data_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob build() { - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob buildPartial() { - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(this); - if (dataCase_ == 1) { - if (valuesBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = valuesBuilder_.build(); - } - } - if (dataCase_ == 2) { - result.data_ = data_; - } - result.dataCase_ = dataCase_; - 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other) { - if (other == flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) return this; - switch (other.getDataCase()) { - case VALUES: { - mergeValues(other.getValues()); - break; - } - case URI: { - dataCase_ = 2; - data_ = other.data_; - onChanged(); - break; - } - case DATA_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 { - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int dataCase_ = 0; - private java.lang.Object data_; - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); - } - - public Builder clearData() { - dataCase_ = 0; - data_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> valuesBuilder_; - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public boolean hasValues() { - return dataCase_ == 1; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public flyteidl.core.Literals.LiteralMap getValues() { - if (valuesBuilder_ == null) { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (dataCase_ == 1) { - return valuesBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public Builder setValues(flyteidl.core.Literals.LiteralMap value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - valuesBuilder_.setMessage(value); - } - dataCase_ = 1; - return this; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public Builder setValues( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (valuesBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - valuesBuilder_.setMessage(builderForValue.build()); - } - dataCase_ = 1; - return this; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public Builder mergeValues(flyteidl.core.Literals.LiteralMap value) { - if (valuesBuilder_ == null) { - if (dataCase_ == 1 && - data_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - data_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) data_) - .mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - if (dataCase_ == 1) { - valuesBuilder_.mergeFrom(value); - } - valuesBuilder_.setMessage(value); - } - dataCase_ = 1; - return this; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - if (dataCase_ == 1) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - } else { - if (dataCase_ == 1) { - dataCase_ = 0; - data_ = null; - } - valuesBuilder_.clear(); - } - return this; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public flyteidl.core.Literals.LiteralMap.Builder getValuesBuilder() { - return getValuesFieldBuilder().getBuilder(); - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { - if ((dataCase_ == 1) && (valuesBuilder_ != null)) { - return valuesBuilder_.getMessageOrBuilder(); - } else { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - if (!(dataCase_ == 1)) { - data_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) data_, - getParentForChildren(), - isClean()); - data_ = null; - } - dataCase_ = 1; - onChanged();; - return valuesBuilder_; - } - - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public java.lang.String getUri() { - java.lang.Object ref = ""; - if (dataCase_ == 2) { - ref = data_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (dataCase_ == 2) { - data_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = ""; - if (dataCase_ == 2) { - ref = data_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (dataCase_ == 2) { - data_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - dataCase_ = 2; - data_ = value; - onChanged(); - return this; - } - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public Builder clearUri() { - if (dataCase_ == 2) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - return this; - } - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - dataCase_ = 2; - data_ = 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:flyteidl.admin.LiteralMapBlob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LiteralMapBlob) - private static final flyteidl.admin.ExecutionOuterClass.LiteralMapBlob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(); - } - - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiteralMapBlob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiteralMapBlob(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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AbortMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.AbortMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string cause = 1; - */ - java.lang.String getCause(); - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string cause = 1; - */ - com.google.protobuf.ByteString - getCauseBytes(); - - /** - *
-     * Identifies the entity (if any) responsible for terminating the execution
-     * 
- * - * string principal = 2; - */ - java.lang.String getPrincipal(); - /** - *
-     * Identifies the entity (if any) responsible for terminating the execution
-     * 
- * - * string principal = 2; - */ - com.google.protobuf.ByteString - getPrincipalBytes(); - } - /** - * Protobuf type {@code flyteidl.admin.AbortMetadata} - */ - public static final class AbortMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.AbortMetadata) - AbortMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbortMetadata.newBuilder() to construct. - private AbortMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AbortMetadata() { - cause_ = ""; - principal_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbortMetadata( - 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(); - - cause_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - principal_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.AbortMetadata.class, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder.class); - } - - public static final int CAUSE_FIELD_NUMBER = 1; - private volatile java.lang.Object cause_; - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string cause = 1; - */ - public java.lang.String getCause() { - java.lang.Object ref = cause_; - 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(); - cause_ = s; - return s; - } - } - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string cause = 1; - */ - public com.google.protobuf.ByteString - getCauseBytes() { - java.lang.Object ref = cause_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cause_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRINCIPAL_FIELD_NUMBER = 2; - private volatile java.lang.Object principal_; - /** - *
-     * Identifies the entity (if any) responsible for terminating the execution
-     * 
- * - * string principal = 2; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - 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(); - principal_ = s; - return s; - } - } - /** - *
-     * Identifies the entity (if any) responsible for terminating the execution
-     * 
- * - * string principal = 2; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = 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 (!getCauseBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cause_); - } - if (!getPrincipalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCauseBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cause_); - } - if (!getPrincipalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); - } - 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.AbortMetadata other = (flyteidl.admin.ExecutionOuterClass.AbortMetadata) obj; - - if (!getCause() - .equals(other.getCause())) return false; - if (!getPrincipal() - .equals(other.getPrincipal())) 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) + CAUSE_FIELD_NUMBER; - hash = (53 * hash) + getCause().hashCode(); - hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; - hash = (53 * hash) + getPrincipal().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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(flyteidl.admin.ExecutionOuterClass.AbortMetadata 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 flyteidl.admin.AbortMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.AbortMetadata) - flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.AbortMetadata.class, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.AbortMetadata.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(); - cause_ = ""; - - principal_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.AbortMetadata build() { - flyteidl.admin.ExecutionOuterClass.AbortMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.AbortMetadata buildPartial() { - flyteidl.admin.ExecutionOuterClass.AbortMetadata result = new flyteidl.admin.ExecutionOuterClass.AbortMetadata(this); - result.cause_ = cause_; - result.principal_ = principal_; - 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.AbortMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.AbortMetadata other) { - if (other == flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance()) return this; - if (!other.getCause().isEmpty()) { - cause_ = other.cause_; - onChanged(); - } - if (!other.getPrincipal().isEmpty()) { - principal_ = other.principal_; - 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 { - flyteidl.admin.ExecutionOuterClass.AbortMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.AbortMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cause_ = ""; - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public java.lang.String getCause() { - java.lang.Object ref = cause_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cause_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public com.google.protobuf.ByteString - getCauseBytes() { - java.lang.Object ref = cause_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cause_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public Builder setCause( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cause_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public Builder clearCause() { - - cause_ = getDefaultInstance().getCause(); - onChanged(); - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public Builder setCauseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cause_ = value; - onChanged(); - return this; - } - - private java.lang.Object principal_ = ""; - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public Builder setPrincipal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - principal_ = value; - onChanged(); - return this; - } - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public Builder clearPrincipal() { - - principal_ = getDefaultInstance().getPrincipal(); - onChanged(); - return this; - } - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - principal_ = 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:flyteidl.admin.AbortMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.AbortMetadata) - private static final flyteidl.admin.ExecutionOuterClass.AbortMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.AbortMetadata(); - } - - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AbortMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbortMetadata(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 flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A map of outputs in the case of a successful execution.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - boolean hasOutputs(); - /** - *
-     * A map of outputs in the case of a successful execution.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs(); - /** - *
-     * A map of outputs in the case of a successful execution.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder(); - - /** - *
-     * Error information in the case of a failed execution. 
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - boolean hasError(); - /** - *
-     * Error information in the case of a failed execution. 
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information in the case of a failed execution. 
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated java.lang.String getAbortCause(); - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getAbortCauseBytes(); - - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - boolean hasAbortMetadata(); - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata(); - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder(); - - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasComputedInputs(); - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getComputedInputs(); - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder(); - - /** - *
-     * Most recent recorded phase for the execution.
-     * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - int getPhaseValue(); - /** - *
-     * Most recent recorded phase for the execution.
-     * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); - - /** - *
-     * Reported ime at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - boolean hasStartedAt(); - /** - *
-     * Reported ime at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - com.google.protobuf.Timestamp getStartedAt(); - /** - *
-     * Reported ime at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); - - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - boolean hasDuration(); - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.Duration getDuration(); - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - boolean hasCreatedAt(); - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - boolean hasUpdatedAt(); - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - com.google.protobuf.Timestamp getUpdatedAt(); - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); - - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - java.util.List - getNotificationsList(); - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - flyteidl.admin.Common.Notification getNotifications(int index); - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - int getNotificationsCount(); - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - java.util.List - getNotificationsOrBuilderList(); - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index); - - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - boolean hasWorkflowId(); - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); - - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.OutputResultCase getOutputResultCase(); - } - /** - *
-   * Encapsulates the results of the Execution
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionClosure} - */ - public static final class ExecutionClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionClosure) - ExecutionClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionClosure.newBuilder() to construct. - private ExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionClosure() { - phase_ = 0; - notifications_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionClosure( - 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: { - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder subBuilder = null; - if (outputResultCase_ == 1) { - subBuilder = ((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 1; - break; - } - case 18: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 2) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 2; - break; - } - case 26: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (computedInputs_ != null) { - subBuilder = computedInputs_.toBuilder(); - } - computedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(computedInputs_); - computedInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startedAt_ != null) { - subBuilder = startedAt_.toBuilder(); - } - startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startedAt_); - startedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - 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 66: { - 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; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000400) != 0)) { - notifications_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000400; - } - notifications_.add( - input.readMessage(flyteidl.admin.Common.Notification.parser(), extensionRegistry)); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 10; - outputResult_ = s; - break; - } - case 90: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (workflowId_ != null) { - subBuilder = workflowId_.toBuilder(); - } - workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflowId_); - workflowId_ = subBuilder.buildPartial(); - } - - break; - } - case 98: { - flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder subBuilder = null; - if (outputResultCase_ == 12) { - subBuilder = ((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.admin.ExecutionOuterClass.AbortMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 12; - 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_ & 0x00000400) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); - } - - private int bitField0_; - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUTS(1), - ERROR(2), - @java.lang.Deprecated ABORT_CAUSE(10), - ABORT_METADATA(12), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 1: return OUTPUTS; - case 2: return ERROR; - case 10: return ABORT_CAUSE; - case 12: return ABORT_METADATA; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public static final int OUTPUTS_FIELD_NUMBER = 1; - /** - *
-     * A map of outputs in the case of a successful execution.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public boolean hasOutputs() { - return outputResultCase_ == 1; - } - /** - *
-     * A map of outputs in the case of a successful execution.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { - if (outputResultCase_ == 1) { - return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - /** - *
-     * A map of outputs in the case of a successful execution.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { - if (outputResultCase_ == 1) { - return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - - public static final int ERROR_FIELD_NUMBER = 2; - /** - *
-     * Error information in the case of a failed execution. 
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-     * Error information in the case of a failed execution. 
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information in the case of a failed execution. 
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int ABORT_CAUSE_FIELD_NUMBER = 10; - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getAbortCause() { - java.lang.Object ref = ""; - if (outputResultCase_ == 10) { - ref = outputResult_; - } - 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(); - if (outputResultCase_ == 10) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getAbortCauseBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 10) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 10) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ABORT_METADATA_FIELD_NUMBER = 12; - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public boolean hasAbortMetadata() { - return outputResultCase_ == 12; - } - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata() { - if (outputResultCase_ == 12) { - return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder() { - if (outputResultCase_ == 12) { - return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - - public static final int COMPUTED_INPUTS_FIELD_NUMBER = 3; - private flyteidl.core.Literals.LiteralMap computedInputs_; - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasComputedInputs() { - return computedInputs_ != null; - } - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getComputedInputs() { - return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; - } - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { - return getComputedInputs(); - } - - public static final int PHASE_FIELD_NUMBER = 4; - private int phase_; - /** - *
-     * Most recent recorded phase for the execution.
-     * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-     * Most recent recorded phase for the execution.
-     * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - - public static final int STARTED_AT_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp startedAt_; - /** - *
-     * Reported ime at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public boolean hasStartedAt() { - return startedAt_ != null; - } - /** - *
-     * Reported ime at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp getStartedAt() { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - /** - *
-     * Reported ime at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - return getStartedAt(); - } - - public static final int DURATION_FIELD_NUMBER = 6; - private com.google.protobuf.Duration duration_; - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return duration_ != null; - } - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return getDuration(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - public static final int UPDATED_AT_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp updatedAt_; - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public boolean hasUpdatedAt() { - return updatedAt_ != null; - } - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - return getUpdatedAt(); - } - - public static final int NOTIFICATIONS_FIELD_NUMBER = 9; - private java.util.List notifications_; - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List getNotificationsList() { - return notifications_; - } - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List - getNotificationsOrBuilderList() { - return notifications_; - } - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public int getNotificationsCount() { - return notifications_.size(); - } - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - return notifications_.get(index); - } - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - return notifications_.get(index); - } - - public static final int WORKFLOW_ID_FIELD_NUMBER = 11; - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public boolean hasWorkflowId() { - return workflowId_ != null; - } - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - return getWorkflowId(); - } - - 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 (outputResultCase_ == 1) { - output.writeMessage(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); - } - if (outputResultCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (computedInputs_ != null) { - output.writeMessage(3, getComputedInputs()); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(4, phase_); - } - if (startedAt_ != null) { - output.writeMessage(5, getStartedAt()); - } - if (duration_ != null) { - output.writeMessage(6, getDuration()); - } - if (createdAt_ != null) { - output.writeMessage(7, getCreatedAt()); - } - if (updatedAt_ != null) { - output.writeMessage(8, getUpdatedAt()); - } - for (int i = 0; i < notifications_.size(); i++) { - output.writeMessage(9, notifications_.get(i)); - } - if (outputResultCase_ == 10) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, outputResult_); - } - if (workflowId_ != null) { - output.writeMessage(11, getWorkflowId()); - } - if (outputResultCase_ == 12) { - output.writeMessage(12, (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (outputResultCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); - } - if (outputResultCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (computedInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getComputedInputs()); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, phase_); - } - if (startedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getStartedAt()); - } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDuration()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreatedAt()); - } - if (updatedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdatedAt()); - } - for (int i = 0; i < notifications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, notifications_.get(i)); - } - if (outputResultCase_ == 10) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, outputResult_); - } - if (workflowId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getWorkflowId()); - } - if (outputResultCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionClosure other = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) obj; - - if (hasComputedInputs() != other.hasComputedInputs()) return false; - if (hasComputedInputs()) { - if (!getComputedInputs() - .equals(other.getComputedInputs())) return false; - } - if (phase_ != other.phase_) return false; - if (hasStartedAt() != other.hasStartedAt()) return false; - if (hasStartedAt()) { - if (!getStartedAt() - .equals(other.getStartedAt())) return false; - } - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) 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 (!getNotificationsList() - .equals(other.getNotificationsList())) return false; - if (hasWorkflowId() != other.hasWorkflowId()) return false; - if (hasWorkflowId()) { - if (!getWorkflowId() - .equals(other.getWorkflowId())) return false; - } - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 1: - if (!getOutputs() - .equals(other.getOutputs())) return false; - break; - case 2: - if (!getError() - .equals(other.getError())) return false; - break; - case 10: - if (!getAbortCause() - .equals(other.getAbortCause())) return false; - break; - case 12: - if (!getAbortMetadata() - .equals(other.getAbortMetadata())) 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(); - if (hasComputedInputs()) { - hash = (37 * hash) + COMPUTED_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getComputedInputs().hashCode(); - } - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (hasStartedAt()) { - hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; - hash = (53 * hash) + getStartedAt().hashCode(); - } - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().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(); - } - if (getNotificationsCount() > 0) { - hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getNotificationsList().hashCode(); - } - if (hasWorkflowId()) { - hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowId().hashCode(); - } - switch (outputResultCase_) { - case 1: - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - break; - case 2: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 10: - hash = (37 * hash) + ABORT_CAUSE_FIELD_NUMBER; - hash = (53 * hash) + getAbortCause().hashCode(); - break; - case 12: - hash = (37 * hash) + ABORT_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getAbortMetadata().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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(flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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; - } - /** - *
-     * Encapsulates the results of the Execution
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionClosure) - flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNotificationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (computedInputsBuilder_ == null) { - computedInputs_ = null; - } else { - computedInputs_ = null; - computedInputsBuilder_ = null; - } - phase_ = 0; - - if (startedAtBuilder_ == null) { - startedAt_ = null; - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - if (durationBuilder_ == null) { - duration_ = null; - } else { - duration_ = null; - durationBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - } else { - notificationsBuilder_.clear(); - } - if (workflowIdBuilder_ == null) { - workflowId_ = null; - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - outputResultCase_ = 0; - outputResult_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure build() { - flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (outputResultCase_ == 1) { - if (outputsBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = outputsBuilder_.build(); - } - } - if (outputResultCase_ == 2) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - if (outputResultCase_ == 10) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 12) { - if (abortMetadataBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = abortMetadataBuilder_.build(); - } - } - if (computedInputsBuilder_ == null) { - result.computedInputs_ = computedInputs_; - } else { - result.computedInputs_ = computedInputsBuilder_.build(); - } - result.phase_ = phase_; - if (startedAtBuilder_ == null) { - result.startedAt_ = startedAt_; - } else { - result.startedAt_ = startedAtBuilder_.build(); - } - if (durationBuilder_ == null) { - result.duration_ = duration_; - } else { - result.duration_ = durationBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.build(); - } - if (updatedAtBuilder_ == null) { - result.updatedAt_ = updatedAt_; - } else { - result.updatedAt_ = updatedAtBuilder_.build(); - } - if (notificationsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.notifications_ = notifications_; - } else { - result.notifications_ = notificationsBuilder_.build(); - } - if (workflowIdBuilder_ == null) { - result.workflowId_ = workflowId_; - } else { - result.workflowId_ = workflowIdBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - result.outputResultCase_ = outputResultCase_; - 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionClosure other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance()) return this; - if (other.hasComputedInputs()) { - mergeComputedInputs(other.getComputedInputs()); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.hasStartedAt()) { - mergeStartedAt(other.getStartedAt()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - if (other.hasUpdatedAt()) { - mergeUpdatedAt(other.getUpdatedAt()); - } - if (notificationsBuilder_ == null) { - if (!other.notifications_.isEmpty()) { - if (notifications_.isEmpty()) { - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureNotificationsIsMutable(); - notifications_.addAll(other.notifications_); - } - onChanged(); - } - } else { - if (!other.notifications_.isEmpty()) { - if (notificationsBuilder_.isEmpty()) { - notificationsBuilder_.dispose(); - notificationsBuilder_ = null; - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000400); - notificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNotificationsFieldBuilder() : null; - } else { - notificationsBuilder_.addAllMessages(other.notifications_); - } - } - } - if (other.hasWorkflowId()) { - mergeWorkflowId(other.getWorkflowId()); - } - switch (other.getOutputResultCase()) { - case OUTPUTS: { - mergeOutputs(other.getOutputs()); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case ABORT_CAUSE: { - outputResultCase_ = 10; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ABORT_METADATA: { - mergeAbortMetadata(other.getAbortMetadata()); - break; - } - case OUTPUTRESULT_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 { - flyteidl.admin.ExecutionOuterClass.ExecutionClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> outputsBuilder_; - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public boolean hasOutputs() { - return outputResultCase_ == 1; - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { - if (outputsBuilder_ == null) { - if (outputResultCase_ == 1) { - return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } else { - if (outputResultCase_ == 1) { - return outputsBuilder_.getMessage(); - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public Builder setOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - outputResultCase_ = 1; - return this; - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public Builder setOutputs( - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 1; - return this; - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public Builder mergeOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { - if (outputsBuilder_ == null) { - if (outputResultCase_ == 1 && - outputResult_ != flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) { - outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.newBuilder((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 1) { - outputsBuilder_.mergeFrom(value); - } - outputsBuilder_.setMessage(value); - } - outputResultCase_ = 1; - return this; - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - if (outputResultCase_ == 1) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 1) { - outputResultCase_ = 0; - outputResult_ = null; - } - outputsBuilder_.clear(); - } - return this; - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder getOutputsBuilder() { - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { - if ((outputResultCase_ == 1) && (outputsBuilder_ != null)) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 1) { - return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - } - /** - *
-       * A map of outputs in the case of a successful execution.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - if (!(outputResultCase_ == 1)) { - outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder>( - (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 1; - onChanged();; - return outputsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 2) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 2) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information in the case of a failed execution. 
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 2)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 2; - onChanged();; - return errorBuilder_; - } - - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getAbortCause() { - java.lang.Object ref = ""; - if (outputResultCase_ == 10) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 10) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getAbortCauseBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 10) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 10) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAbortCause( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 10; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearAbortCause() { - if (outputResultCase_ == 10) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAbortCauseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 10; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder> abortMetadataBuilder_; - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public boolean hasAbortMetadata() { - return outputResultCase_ == 12; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata() { - if (abortMetadataBuilder_ == null) { - if (outputResultCase_ == 12) { - return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } else { - if (outputResultCase_ == 12) { - return abortMetadataBuilder_.getMessage(); - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public Builder setAbortMetadata(flyteidl.admin.ExecutionOuterClass.AbortMetadata value) { - if (abortMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - abortMetadataBuilder_.setMessage(value); - } - outputResultCase_ = 12; - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public Builder setAbortMetadata( - flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder builderForValue) { - if (abortMetadataBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - abortMetadataBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 12; - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public Builder mergeAbortMetadata(flyteidl.admin.ExecutionOuterClass.AbortMetadata value) { - if (abortMetadataBuilder_ == null) { - if (outputResultCase_ == 12 && - outputResult_ != flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance()) { - outputResult_ = flyteidl.admin.ExecutionOuterClass.AbortMetadata.newBuilder((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 12) { - abortMetadataBuilder_.mergeFrom(value); - } - abortMetadataBuilder_.setMessage(value); - } - outputResultCase_ = 12; - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public Builder clearAbortMetadata() { - if (abortMetadataBuilder_ == null) { - if (outputResultCase_ == 12) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 12) { - outputResultCase_ = 0; - outputResult_ = null; - } - abortMetadataBuilder_.clear(); - } - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder getAbortMetadataBuilder() { - return getAbortMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder() { - if ((outputResultCase_ == 12) && (abortMetadataBuilder_ != null)) { - return abortMetadataBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 12) { - return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder> - getAbortMetadataFieldBuilder() { - if (abortMetadataBuilder_ == null) { - if (!(outputResultCase_ == 12)) { - outputResult_ = flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - abortMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder>( - (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 12; - onChanged();; - return abortMetadataBuilder_; - } - - private flyteidl.core.Literals.LiteralMap computedInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> computedInputsBuilder_; - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasComputedInputs() { - return computedInputsBuilder_ != null || computedInputs_ != null; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getComputedInputs() { - if (computedInputsBuilder_ == null) { - return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; - } else { - return computedInputsBuilder_.getMessage(); - } - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setComputedInputs(flyteidl.core.Literals.LiteralMap value) { - if (computedInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - computedInputs_ = value; - onChanged(); - } else { - computedInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setComputedInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (computedInputsBuilder_ == null) { - computedInputs_ = builderForValue.build(); - onChanged(); - } else { - computedInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeComputedInputs(flyteidl.core.Literals.LiteralMap value) { - if (computedInputsBuilder_ == null) { - if (computedInputs_ != null) { - computedInputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(computedInputs_).mergeFrom(value).buildPartial(); - } else { - computedInputs_ = value; - } - onChanged(); - } else { - computedInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearComputedInputs() { - if (computedInputsBuilder_ == null) { - computedInputs_ = null; - onChanged(); - } else { - computedInputs_ = null; - computedInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getComputedInputsBuilder() { - - onChanged(); - return getComputedInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { - if (computedInputsBuilder_ != null) { - return computedInputsBuilder_.getMessageOrBuilder(); - } else { - return computedInputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; - } - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getComputedInputsFieldBuilder() { - if (computedInputsBuilder_ == null) { - computedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getComputedInputs(), - getParentForChildren(), - isClean()); - computedInputs_ = null; - } - return computedInputsBuilder_; - } - - private int phase_ = 0; - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp startedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public boolean hasStartedAt() { - return startedAtBuilder_ != null || startedAt_ != null; - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp getStartedAt() { - if (startedAtBuilder_ == null) { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } else { - return startedAtBuilder_.getMessage(); - } - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder setStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startedAt_ = value; - onChanged(); - } else { - startedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder setStartedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (startedAtBuilder_ == null) { - startedAt_ = builderForValue.build(); - onChanged(); - } else { - startedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (startedAt_ != null) { - startedAt_ = - com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); - } else { - startedAt_ = value; - } - onChanged(); - } else { - startedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder clearStartedAt() { - if (startedAtBuilder_ == null) { - startedAt_ = null; - onChanged(); - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { - - onChanged(); - return getStartedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - if (startedAtBuilder_ != null) { - return startedAtBuilder_.getMessageOrBuilder(); - } else { - return startedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - } - /** - *
-       * Reported ime at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getStartedAtFieldBuilder() { - if (startedAtBuilder_ == null) { - startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartedAt(), - getParentForChildren(), - isClean()); - startedAt_ = null; - } - return startedAtBuilder_; - } - - private com.google.protobuf.Duration duration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return durationBuilder_ != null || duration_ != null; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } else { - return durationBuilder_.getMessage(); - } - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (duration_ != null) { - duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); - } else { - duration_ = value; - } - onChanged(); - } else { - durationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - duration_ = null; - onChanged(); - } else { - duration_ = null; - durationBuilder_ = null; - } - - return this; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); - duration_ = null; - } - return durationBuilder_; - } - - 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_; - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - 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; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - 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; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - 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_; - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public boolean hasUpdatedAt() { - return updatedAtBuilder_ != null || updatedAt_ != null; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - if (updatedAtBuilder_ == null) { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } else { - return updatedAtBuilder_.getMessage(); - } - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - 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; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder setUpdatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updatedAtBuilder_ == null) { - updatedAt_ = builderForValue.build(); - onChanged(); - } else { - updatedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - 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; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder clearUpdatedAt() { - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - onChanged(); - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { - - onChanged(); - return getUpdatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - if (updatedAtBuilder_ != null) { - return updatedAtBuilder_.getMessageOrBuilder(); - } else { - return updatedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - 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_; - } - - private java.util.List notifications_ = - java.util.Collections.emptyList(); - private void ensureNotificationsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - notifications_ = new java.util.ArrayList(notifications_); - bitField0_ |= 0x00000400; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; - - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List getNotificationsList() { - if (notificationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(notifications_); - } else { - return notificationsBuilder_.getMessageList(); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public int getNotificationsCount() { - if (notificationsBuilder_ == null) { - return notifications_.size(); - } else { - return notificationsBuilder_.getCount(); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); - } else { - return notificationsBuilder_.getMessage(index); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.set(index, value); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.set(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addNotifications(flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(value); - onChanged(); - } else { - notificationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(index, value); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addNotifications( - flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addAllNotifications( - java.lang.Iterable values) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notifications_); - onChanged(); - } else { - notificationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder clearNotifications() { - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - } else { - notificationsBuilder_.clear(); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder removeNotifications(int index) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.remove(index); - onChanged(); - } else { - notificationsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().getBuilder(index); - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); } else { - return notificationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List - getNotificationsOrBuilderList() { - if (notificationsBuilder_ != null) { - return notificationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(notifications_); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { - return getNotificationsFieldBuilder().addBuilder( - flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().addBuilder( - index, flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List - getNotificationsBuilderList() { - return getNotificationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> - getNotificationsFieldBuilder() { - if (notificationsBuilder_ == null) { - notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( - notifications_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); - notifications_ = null; - } - return notificationsBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public boolean hasWorkflowId() { - return workflowIdBuilder_ != null || workflowId_ != null; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - if (workflowIdBuilder_ == null) { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } else { - return workflowIdBuilder_.getMessage(); - } - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflowId_ = value; - onChanged(); - } else { - workflowIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public Builder setWorkflowId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (workflowIdBuilder_ == null) { - workflowId_ = builderForValue.build(); - onChanged(); - } else { - workflowIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (workflowId_ != null) { - workflowId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); - } else { - workflowId_ = value; - } - onChanged(); - } else { - workflowIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public Builder clearWorkflowId() { - if (workflowIdBuilder_ == null) { - workflowId_ = null; - onChanged(); - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { - - onChanged(); - return getWorkflowIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - if (workflowIdBuilder_ != null) { - return workflowIdBuilder_.getMessageOrBuilder(); - } else { - return workflowId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getWorkflowIdFieldBuilder() { - if (workflowIdBuilder_ == null) { - workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getWorkflowId(), - getParentForChildren(), - isClean()); - workflowId_ = null; - } - return workflowIdBuilder_; - } - @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:flyteidl.admin.ExecutionClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClosure) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionClosure(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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SystemMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.SystemMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Which execution cluster this execution ran on.
-     * 
- * - * string execution_cluster = 1; - */ - java.lang.String getExecutionCluster(); - /** - *
-     * Which execution cluster this execution ran on.
-     * 
- * - * string execution_cluster = 1; - */ - com.google.protobuf.ByteString - getExecutionClusterBytes(); - } - /** - *
-   * Represents system rather than user-facing metadata about an execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.SystemMetadata} - */ - public static final class SystemMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.SystemMetadata) - SystemMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use SystemMetadata.newBuilder() to construct. - private SystemMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SystemMetadata() { - executionCluster_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SystemMetadata( - 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(); - - executionCluster_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.SystemMetadata.class, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder.class); - } - - public static final int EXECUTION_CLUSTER_FIELD_NUMBER = 1; - private volatile java.lang.Object executionCluster_; - /** - *
-     * Which execution cluster this execution ran on.
-     * 
- * - * string execution_cluster = 1; - */ - public java.lang.String getExecutionCluster() { - java.lang.Object ref = executionCluster_; - 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(); - executionCluster_ = s; - return s; - } - } - /** - *
-     * Which execution cluster this execution ran on.
-     * 
- * - * string execution_cluster = 1; - */ - public com.google.protobuf.ByteString - getExecutionClusterBytes() { - java.lang.Object ref = executionCluster_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executionCluster_ = 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 (!getExecutionClusterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executionCluster_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getExecutionClusterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executionCluster_); - } - 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.SystemMetadata other = (flyteidl.admin.ExecutionOuterClass.SystemMetadata) obj; - - if (!getExecutionCluster() - .equals(other.getExecutionCluster())) 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) + EXECUTION_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getExecutionCluster().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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(flyteidl.admin.ExecutionOuterClass.SystemMetadata 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; - } - /** - *
-     * Represents system rather than user-facing metadata about an execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.SystemMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.SystemMetadata) - flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.SystemMetadata.class, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.SystemMetadata.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(); - executionCluster_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.SystemMetadata build() { - flyteidl.admin.ExecutionOuterClass.SystemMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.SystemMetadata buildPartial() { - flyteidl.admin.ExecutionOuterClass.SystemMetadata result = new flyteidl.admin.ExecutionOuterClass.SystemMetadata(this); - result.executionCluster_ = executionCluster_; - 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.SystemMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.SystemMetadata other) { - if (other == flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance()) return this; - if (!other.getExecutionCluster().isEmpty()) { - executionCluster_ = other.executionCluster_; - 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 { - flyteidl.admin.ExecutionOuterClass.SystemMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.SystemMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object executionCluster_ = ""; - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public java.lang.String getExecutionCluster() { - java.lang.Object ref = executionCluster_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executionCluster_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public com.google.protobuf.ByteString - getExecutionClusterBytes() { - java.lang.Object ref = executionCluster_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executionCluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public Builder setExecutionCluster( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - executionCluster_ = value; - onChanged(); - return this; - } - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public Builder clearExecutionCluster() { - - executionCluster_ = getDefaultInstance().getExecutionCluster(); - onChanged(); - return this; - } - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public Builder setExecutionClusterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - executionCluster_ = 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:flyteidl.admin.SystemMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SystemMetadata) - private static final flyteidl.admin.ExecutionOuterClass.SystemMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.SystemMetadata(); - } - - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SystemMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SystemMetadata(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 flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * [(validate.rules).enum.defined_only = true];
-     * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - int getModeValue(); - /** - *
-     * [(validate.rules).enum.defined_only = true];
-     * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode(); - - /** - *
-     * Identifier of the entity that triggered this execution.
-     * For systems using back-end authentication any value set here will be discarded in favor of the
-     * authenticated user context.
-     * 
- * - * string principal = 2; - */ - java.lang.String getPrincipal(); - /** - *
-     * Identifier of the entity that triggered this execution.
-     * For systems using back-end authentication any value set here will be discarded in favor of the
-     * authenticated user context.
-     * 
- * - * string principal = 2; - */ - com.google.protobuf.ByteString - getPrincipalBytes(); - - /** - *
-     * Indicates the "nestedness" of this execution.
-     * If a user launches a workflow execution, the default nesting is 0.
-     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-     * nesting = k + 1.
-     * 
- * - * uint32 nesting = 3; - */ - int getNesting(); - - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - boolean hasScheduledAt(); - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - com.google.protobuf.Timestamp getScheduledAt(); - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder(); - - /** - *
-     * Which subworkflow node launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - boolean hasParentNodeExecution(); - /** - *
-     * Which subworkflow node launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution(); - /** - *
-     * Which subworkflow node launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder(); - - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - boolean hasReferenceExecution(); - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution(); - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder(); - - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - boolean hasSystemMetadata(); - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata(); - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder(); - } - /** - *
-   * Represents attributes about an execution which are not required to launch the execution but are useful to record.
-   * These attributes are assigned at launch time and do not change.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionMetadata} - */ - public static final class ExecutionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionMetadata) - ExecutionMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionMetadata.newBuilder() to construct. - private ExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionMetadata() { - mode_ = 0; - principal_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionMetadata( - 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 8: { - int rawValue = input.readEnum(); - - mode_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - principal_ = s; - break; - } - case 24: { - - nesting_ = input.readUInt32(); - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduledAt_ != null) { - subBuilder = scheduledAt_.toBuilder(); - } - scheduledAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduledAt_); - scheduledAt_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (parentNodeExecution_ != null) { - subBuilder = parentNodeExecution_.toBuilder(); - } - parentNodeExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parentNodeExecution_); - parentNodeExecution_ = subBuilder.buildPartial(); - } - - break; - } - case 130: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (referenceExecution_ != null) { - subBuilder = referenceExecution_.toBuilder(); - } - referenceExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(referenceExecution_); - referenceExecution_ = subBuilder.buildPartial(); - } - - break; - } - case 138: { - flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder subBuilder = null; - if (systemMetadata_ != null) { - subBuilder = systemMetadata_.toBuilder(); - } - systemMetadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.SystemMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(systemMetadata_); - systemMetadata_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); - } - - /** - *
-     * The method by which this execution was launched.
-     * 
- * - * Protobuf enum {@code flyteidl.admin.ExecutionMetadata.ExecutionMode} - */ - public enum ExecutionMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * The default execution mode, MANUAL implies that an execution was launched by an individual.
-       * 
- * - * MANUAL = 0; - */ - MANUAL(0), - /** - *
-       * A schedule triggered this execution launch.
-       * 
- * - * SCHEDULED = 1; - */ - SCHEDULED(1), - /** - *
-       * A system process was responsible for launching this execution rather an individual.
-       * 
- * - * SYSTEM = 2; - */ - SYSTEM(2), - /** - *
-       * This execution was launched with identical inputs as a previous execution.
-       * 
- * - * RELAUNCH = 3; - */ - RELAUNCH(3), - /** - *
-       * This execution was triggered by another execution.
-       * 
- * - * CHILD_WORKFLOW = 4; - */ - CHILD_WORKFLOW(4), - UNRECOGNIZED(-1), - ; - - /** - *
-       * The default execution mode, MANUAL implies that an execution was launched by an individual.
-       * 
- * - * MANUAL = 0; - */ - public static final int MANUAL_VALUE = 0; - /** - *
-       * A schedule triggered this execution launch.
-       * 
- * - * SCHEDULED = 1; - */ - public static final int SCHEDULED_VALUE = 1; - /** - *
-       * A system process was responsible for launching this execution rather an individual.
-       * 
- * - * SYSTEM = 2; - */ - public static final int SYSTEM_VALUE = 2; - /** - *
-       * This execution was launched with identical inputs as a previous execution.
-       * 
- * - * RELAUNCH = 3; - */ - public static final int RELAUNCH_VALUE = 3; - /** - *
-       * This execution was triggered by another execution.
-       * 
- * - * CHILD_WORKFLOW = 4; - */ - public static final int CHILD_WORKFLOW_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExecutionMode valueOf(int value) { - return forNumber(value); - } - - public static ExecutionMode forNumber(int value) { - switch (value) { - case 0: return MANUAL; - case 1: return SCHEDULED; - case 2: return SYSTEM; - case 3: return RELAUNCH; - case 4: return CHILD_WORKFLOW; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExecutionMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionMode findValueByNumber(int number) { - return ExecutionMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDescriptor().getEnumTypes().get(0); - } - - private static final ExecutionMode[] VALUES = values(); - - public static ExecutionMode 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 ExecutionMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.ExecutionMetadata.ExecutionMode) - } - - public static final int MODE_FIELD_NUMBER = 1; - private int mode_; - /** - *
-     * [(validate.rules).enum.defined_only = true];
-     * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public int getModeValue() { - return mode_; - } - /** - *
-     * [(validate.rules).enum.defined_only = true];
-     * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { - @SuppressWarnings("deprecation") - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); - return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; - } - - public static final int PRINCIPAL_FIELD_NUMBER = 2; - private volatile java.lang.Object principal_; - /** - *
-     * Identifier of the entity that triggered this execution.
-     * For systems using back-end authentication any value set here will be discarded in favor of the
-     * authenticated user context.
-     * 
- * - * string principal = 2; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - 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(); - principal_ = s; - return s; - } - } - /** - *
-     * Identifier of the entity that triggered this execution.
-     * For systems using back-end authentication any value set here will be discarded in favor of the
-     * authenticated user context.
-     * 
- * - * string principal = 2; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NESTING_FIELD_NUMBER = 3; - private int nesting_; - /** - *
-     * Indicates the "nestedness" of this execution.
-     * If a user launches a workflow execution, the default nesting is 0.
-     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-     * nesting = k + 1.
-     * 
- * - * uint32 nesting = 3; - */ - public int getNesting() { - return nesting_; - } - - public static final int SCHEDULED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp scheduledAt_; - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public boolean hasScheduledAt() { - return scheduledAt_ != null; - } - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.Timestamp getScheduledAt() { - return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; - } - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { - return getScheduledAt(); - } - - public static final int PARENT_NODE_EXECUTION_FIELD_NUMBER = 5; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; - /** - *
-     * Which subworkflow node launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public boolean hasParentNodeExecution() { - return parentNodeExecution_ != null; - } - /** - *
-     * Which subworkflow node launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { - return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } - /** - *
-     * Which subworkflow node launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { - return getParentNodeExecution(); - } - - public static final int REFERENCE_EXECUTION_FIELD_NUMBER = 16; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public boolean hasReferenceExecution() { - return referenceExecution_ != null; - } - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { - return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { - return getReferenceExecution(); - } - - public static final int SYSTEM_METADATA_FIELD_NUMBER = 17; - private flyteidl.admin.ExecutionOuterClass.SystemMetadata systemMetadata_; - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public boolean hasSystemMetadata() { - return systemMetadata_ != null; - } - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata() { - return systemMetadata_ == null ? flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; - } - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder() { - return getSystemMetadata(); - } - - 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_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { - output.writeEnum(1, mode_); - } - if (!getPrincipalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); - } - if (nesting_ != 0) { - output.writeUInt32(3, nesting_); - } - if (scheduledAt_ != null) { - output.writeMessage(4, getScheduledAt()); - } - if (parentNodeExecution_ != null) { - output.writeMessage(5, getParentNodeExecution()); - } - if (referenceExecution_ != null) { - output.writeMessage(16, getReferenceExecution()); - } - if (systemMetadata_ != null) { - output.writeMessage(17, getSystemMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (mode_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, mode_); - } - if (!getPrincipalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); - } - if (nesting_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, nesting_); - } - if (scheduledAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getScheduledAt()); - } - if (parentNodeExecution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getParentNodeExecution()); - } - if (referenceExecution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getReferenceExecution()); - } - if (systemMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getSystemMetadata()); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) obj; - - if (mode_ != other.mode_) return false; - if (!getPrincipal() - .equals(other.getPrincipal())) return false; - if (getNesting() - != other.getNesting()) return false; - if (hasScheduledAt() != other.hasScheduledAt()) return false; - if (hasScheduledAt()) { - if (!getScheduledAt() - .equals(other.getScheduledAt())) return false; - } - if (hasParentNodeExecution() != other.hasParentNodeExecution()) return false; - if (hasParentNodeExecution()) { - if (!getParentNodeExecution() - .equals(other.getParentNodeExecution())) return false; - } - if (hasReferenceExecution() != other.hasReferenceExecution()) return false; - if (hasReferenceExecution()) { - if (!getReferenceExecution() - .equals(other.getReferenceExecution())) return false; - } - if (hasSystemMetadata() != other.hasSystemMetadata()) return false; - if (hasSystemMetadata()) { - if (!getSystemMetadata() - .equals(other.getSystemMetadata())) 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) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; - hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; - hash = (53 * hash) + getPrincipal().hashCode(); - hash = (37 * hash) + NESTING_FIELD_NUMBER; - hash = (53 * hash) + getNesting(); - if (hasScheduledAt()) { - hash = (37 * hash) + SCHEDULED_AT_FIELD_NUMBER; - hash = (53 * hash) + getScheduledAt().hashCode(); - } - if (hasParentNodeExecution()) { - hash = (37 * hash) + PARENT_NODE_EXECUTION_FIELD_NUMBER; - hash = (53 * hash) + getParentNodeExecution().hashCode(); - } - if (hasReferenceExecution()) { - hash = (37 * hash) + REFERENCE_EXECUTION_FIELD_NUMBER; - hash = (53 * hash) + getReferenceExecution().hashCode(); - } - if (hasSystemMetadata()) { - hash = (37 * hash) + SYSTEM_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getSystemMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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; - } - /** - *
-     * Represents attributes about an execution which are not required to launch the execution but are useful to record.
-     * These attributes are assigned at launch time and do not change.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionMetadata) - flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.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; - - principal_ = ""; - - nesting_ = 0; - - if (scheduledAtBuilder_ == null) { - scheduledAt_ = null; - } else { - scheduledAt_ = null; - scheduledAtBuilder_ = null; - } - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = null; - } else { - parentNodeExecution_ = null; - parentNodeExecutionBuilder_ = null; - } - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = null; - } else { - referenceExecution_ = null; - referenceExecutionBuilder_ = null; - } - if (systemMetadataBuilder_ == null) { - systemMetadata_ = null; - } else { - systemMetadata_ = null; - systemMetadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata build() { - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(this); - result.mode_ = mode_; - result.principal_ = principal_; - result.nesting_ = nesting_; - if (scheduledAtBuilder_ == null) { - result.scheduledAt_ = scheduledAt_; - } else { - result.scheduledAt_ = scheduledAtBuilder_.build(); - } - if (parentNodeExecutionBuilder_ == null) { - result.parentNodeExecution_ = parentNodeExecution_; - } else { - result.parentNodeExecution_ = parentNodeExecutionBuilder_.build(); - } - if (referenceExecutionBuilder_ == null) { - result.referenceExecution_ = referenceExecution_; - } else { - result.referenceExecution_ = referenceExecutionBuilder_.build(); - } - if (systemMetadataBuilder_ == null) { - result.systemMetadata_ = systemMetadata_; - } else { - result.systemMetadata_ = systemMetadataBuilder_.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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance()) return this; - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); - } - if (!other.getPrincipal().isEmpty()) { - principal_ = other.principal_; - onChanged(); - } - if (other.getNesting() != 0) { - setNesting(other.getNesting()); - } - if (other.hasScheduledAt()) { - mergeScheduledAt(other.getScheduledAt()); - } - if (other.hasParentNodeExecution()) { - mergeParentNodeExecution(other.getParentNodeExecution()); - } - if (other.hasReferenceExecution()) { - mergeReferenceExecution(other.getReferenceExecution()); - } - if (other.hasSystemMetadata()) { - mergeSystemMetadata(other.getSystemMetadata()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int mode_ = 0; - /** - *
-       * [(validate.rules).enum.defined_only = true];
-       * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public int getModeValue() { - return mode_; - } - /** - *
-       * [(validate.rules).enum.defined_only = true];
-       * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public Builder setModeValue(int value) { - mode_ = value; - onChanged(); - return this; - } - /** - *
-       * [(validate.rules).enum.defined_only = true];
-       * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { - @SuppressWarnings("deprecation") - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); - return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; - } - /** - *
-       * [(validate.rules).enum.defined_only = true];
-       * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public Builder setMode(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode value) { - if (value == null) { - throw new NullPointerException(); - } - - mode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * [(validate.rules).enum.defined_only = true];
-       * 
- * - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public Builder clearMode() { - - mode_ = 0; - onChanged(); - return this; - } - - private java.lang.Object principal_ = ""; - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public Builder setPrincipal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - principal_ = value; - onChanged(); - return this; - } - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public Builder clearPrincipal() { - - principal_ = getDefaultInstance().getPrincipal(); - onChanged(); - return this; - } - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - principal_ = value; - onChanged(); - return this; - } - - private int nesting_ ; - /** - *
-       * Indicates the "nestedness" of this execution.
-       * If a user launches a workflow execution, the default nesting is 0.
-       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-       * nesting = k + 1.
-       * 
- * - * uint32 nesting = 3; - */ - public int getNesting() { - return nesting_; - } - /** - *
-       * Indicates the "nestedness" of this execution.
-       * If a user launches a workflow execution, the default nesting is 0.
-       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-       * nesting = k + 1.
-       * 
- * - * uint32 nesting = 3; - */ - public Builder setNesting(int value) { - - nesting_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the "nestedness" of this execution.
-       * If a user launches a workflow execution, the default nesting is 0.
-       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-       * nesting = k + 1.
-       * 
- * - * uint32 nesting = 3; - */ - public Builder clearNesting() { - - nesting_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp scheduledAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduledAtBuilder_; - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public boolean hasScheduledAt() { - return scheduledAtBuilder_ != null || scheduledAt_ != null; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.Timestamp getScheduledAt() { - if (scheduledAtBuilder_ == null) { - return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; - } else { - return scheduledAtBuilder_.getMessage(); - } - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public Builder setScheduledAt(com.google.protobuf.Timestamp value) { - if (scheduledAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduledAt_ = value; - onChanged(); - } else { - scheduledAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public Builder setScheduledAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduledAtBuilder_ == null) { - scheduledAt_ = builderForValue.build(); - onChanged(); - } else { - scheduledAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public Builder mergeScheduledAt(com.google.protobuf.Timestamp value) { - if (scheduledAtBuilder_ == null) { - if (scheduledAt_ != null) { - scheduledAt_ = - com.google.protobuf.Timestamp.newBuilder(scheduledAt_).mergeFrom(value).buildPartial(); - } else { - scheduledAt_ = value; - } - onChanged(); - } else { - scheduledAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public Builder clearScheduledAt() { - if (scheduledAtBuilder_ == null) { - scheduledAt_ = null; - onChanged(); - } else { - scheduledAt_ = null; - scheduledAtBuilder_ = null; - } - - return this; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getScheduledAtBuilder() { - - onChanged(); - return getScheduledAtFieldBuilder().getBuilder(); - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { - if (scheduledAtBuilder_ != null) { - return scheduledAtBuilder_.getMessageOrBuilder(); - } else { - return scheduledAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; - } - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getScheduledAtFieldBuilder() { - if (scheduledAtBuilder_ == null) { - scheduledAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getScheduledAt(), - getParentForChildren(), - isClean()); - scheduledAt_ = null; - } - return scheduledAtBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionBuilder_; - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public boolean hasParentNodeExecution() { - return parentNodeExecutionBuilder_ != null || parentNodeExecution_ != null; - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { - if (parentNodeExecutionBuilder_ == null) { - return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } else { - return parentNodeExecutionBuilder_.getMessage(); - } - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public Builder setParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (parentNodeExecutionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parentNodeExecution_ = value; - onChanged(); - } else { - parentNodeExecutionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public Builder setParentNodeExecution( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = builderForValue.build(); - onChanged(); - } else { - parentNodeExecutionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public Builder mergeParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (parentNodeExecutionBuilder_ == null) { - if (parentNodeExecution_ != null) { - parentNodeExecution_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecution_).mergeFrom(value).buildPartial(); - } else { - parentNodeExecution_ = value; - } - onChanged(); - } else { - parentNodeExecutionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public Builder clearParentNodeExecution() { - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = null; - onChanged(); - } else { - parentNodeExecution_ = null; - parentNodeExecutionBuilder_ = null; - } - - return this; - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionBuilder() { - - onChanged(); - return getParentNodeExecutionFieldBuilder().getBuilder(); - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { - if (parentNodeExecutionBuilder_ != null) { - return parentNodeExecutionBuilder_.getMessageOrBuilder(); - } else { - return parentNodeExecution_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } - } - /** - *
-       * Which subworkflow node launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getParentNodeExecutionFieldBuilder() { - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getParentNodeExecution(), - getParentForChildren(), - isClean()); - parentNodeExecution_ = null; - } - return parentNodeExecutionBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> referenceExecutionBuilder_; - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public boolean hasReferenceExecution() { - return referenceExecutionBuilder_ != null || referenceExecution_ != null; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { - if (referenceExecutionBuilder_ == null) { - return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } else { - return referenceExecutionBuilder_.getMessage(); - } - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public Builder setReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (referenceExecutionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - referenceExecution_ = value; - onChanged(); - } else { - referenceExecutionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public Builder setReferenceExecution( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = builderForValue.build(); - onChanged(); - } else { - referenceExecutionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public Builder mergeReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (referenceExecutionBuilder_ == null) { - if (referenceExecution_ != null) { - referenceExecution_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(referenceExecution_).mergeFrom(value).buildPartial(); - } else { - referenceExecution_ = value; - } - onChanged(); - } else { - referenceExecutionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public Builder clearReferenceExecution() { - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = null; - onChanged(); - } else { - referenceExecution_ = null; - referenceExecutionBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getReferenceExecutionBuilder() { - - onChanged(); - return getReferenceExecutionFieldBuilder().getBuilder(); - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { - if (referenceExecutionBuilder_ != null) { - return referenceExecutionBuilder_.getMessageOrBuilder(); - } else { - return referenceExecution_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getReferenceExecutionFieldBuilder() { - if (referenceExecutionBuilder_ == null) { - referenceExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getReferenceExecution(), - getParentForChildren(), - isClean()); - referenceExecution_ = null; - } - return referenceExecutionBuilder_; - } - - private flyteidl.admin.ExecutionOuterClass.SystemMetadata systemMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder> systemMetadataBuilder_; - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public boolean hasSystemMetadata() { - return systemMetadataBuilder_ != null || systemMetadata_ != null; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata() { - if (systemMetadataBuilder_ == null) { - return systemMetadata_ == null ? flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; - } else { - return systemMetadataBuilder_.getMessage(); - } - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public Builder setSystemMetadata(flyteidl.admin.ExecutionOuterClass.SystemMetadata value) { - if (systemMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - systemMetadata_ = value; - onChanged(); - } else { - systemMetadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public Builder setSystemMetadata( - flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder builderForValue) { - if (systemMetadataBuilder_ == null) { - systemMetadata_ = builderForValue.build(); - onChanged(); - } else { - systemMetadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public Builder mergeSystemMetadata(flyteidl.admin.ExecutionOuterClass.SystemMetadata value) { - if (systemMetadataBuilder_ == null) { - if (systemMetadata_ != null) { - systemMetadata_ = - flyteidl.admin.ExecutionOuterClass.SystemMetadata.newBuilder(systemMetadata_).mergeFrom(value).buildPartial(); - } else { - systemMetadata_ = value; - } - onChanged(); - } else { - systemMetadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public Builder clearSystemMetadata() { - if (systemMetadataBuilder_ == null) { - systemMetadata_ = null; - onChanged(); - } else { - systemMetadata_ = null; - systemMetadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder getSystemMetadataBuilder() { - - onChanged(); - return getSystemMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder() { - if (systemMetadataBuilder_ != null) { - return systemMetadataBuilder_.getMessageOrBuilder(); - } else { - return systemMetadata_ == null ? - flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; - } - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder> - getSystemMetadataFieldBuilder() { - if (systemMetadataBuilder_ == null) { - systemMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder>( - getSystemMetadata(), - getParentForChildren(), - isClean()); - systemMetadata_ = null; - } - return systemMetadataBuilder_; - } - @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:flyteidl.admin.ExecutionMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionMetadata) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionMetadata(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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NotificationListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NotificationList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - java.util.List - getNotificationsList(); - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - flyteidl.admin.Common.Notification getNotifications(int index); - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - int getNotificationsCount(); - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - java.util.List - getNotificationsOrBuilderList(); - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.admin.NotificationList} - */ - public static final class NotificationList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NotificationList) - NotificationListOrBuilder { - private static final long serialVersionUID = 0L; - // Use NotificationList.newBuilder() to construct. - private NotificationList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NotificationList() { - notifications_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NotificationList( - 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)) { - notifications_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - notifications_.add( - input.readMessage(flyteidl.admin.Common.Notification.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)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); - } - - public static final int NOTIFICATIONS_FIELD_NUMBER = 1; - private java.util.List notifications_; - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List getNotificationsList() { - return notifications_; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List - getNotificationsOrBuilderList() { - return notifications_; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public int getNotificationsCount() { - return notifications_.size(); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - return notifications_.get(index); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - return notifications_.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 < notifications_.size(); i++) { - output.writeMessage(1, notifications_.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 < notifications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, notifications_.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 flyteidl.admin.ExecutionOuterClass.NotificationList)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.NotificationList other = (flyteidl.admin.ExecutionOuterClass.NotificationList) obj; - - if (!getNotificationsList() - .equals(other.getNotificationsList())) 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 (getNotificationsCount() > 0) { - hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getNotificationsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList 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 flyteidl.admin.ExecutionOuterClass.NotificationList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList 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 flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList 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(flyteidl.admin.ExecutionOuterClass.NotificationList 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 flyteidl.admin.NotificationList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NotificationList) - flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNotificationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - notificationsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.NotificationList build() { - flyteidl.admin.ExecutionOuterClass.NotificationList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.NotificationList buildPartial() { - flyteidl.admin.ExecutionOuterClass.NotificationList result = new flyteidl.admin.ExecutionOuterClass.NotificationList(this); - int from_bitField0_ = bitField0_; - if (notificationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.notifications_ = notifications_; - } else { - result.notifications_ = notificationsBuilder_.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 flyteidl.admin.ExecutionOuterClass.NotificationList) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.NotificationList other) { - if (other == flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) return this; - if (notificationsBuilder_ == null) { - if (!other.notifications_.isEmpty()) { - if (notifications_.isEmpty()) { - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNotificationsIsMutable(); - notifications_.addAll(other.notifications_); - } - onChanged(); - } - } else { - if (!other.notifications_.isEmpty()) { - if (notificationsBuilder_.isEmpty()) { - notificationsBuilder_.dispose(); - notificationsBuilder_ = null; - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000001); - notificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNotificationsFieldBuilder() : null; - } else { - notificationsBuilder_.addAllMessages(other.notifications_); - } - } - } - 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 { - flyteidl.admin.ExecutionOuterClass.NotificationList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.NotificationList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List notifications_ = - java.util.Collections.emptyList(); - private void ensureNotificationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - notifications_ = new java.util.ArrayList(notifications_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; - - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List getNotificationsList() { - if (notificationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(notifications_); - } else { - return notificationsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public int getNotificationsCount() { - if (notificationsBuilder_ == null) { - return notifications_.size(); - } else { - return notificationsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); - } else { - return notificationsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.set(index, value); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.set(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addNotifications(flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(value); - onChanged(); - } else { - notificationsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(index, value); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addNotifications( - flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addAllNotifications( - java.lang.Iterable values) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notifications_); - onChanged(); - } else { - notificationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder clearNotifications() { - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - notificationsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder removeNotifications(int index) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.remove(index); - onChanged(); - } else { - notificationsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); } else { - return notificationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List - getNotificationsOrBuilderList() { - if (notificationsBuilder_ != null) { - return notificationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(notifications_); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { - return getNotificationsFieldBuilder().addBuilder( - flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().addBuilder( - index, flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List - getNotificationsBuilderList() { - return getNotificationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> - getNotificationsFieldBuilder() { - if (notificationsBuilder_ == null) { - notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( - notifications_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - notifications_ = null; - } - return notificationsBuilder_; - } - @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:flyteidl.admin.NotificationList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NotificationList) - private static final flyteidl.admin.ExecutionOuterClass.NotificationList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.NotificationList(); - } - - public static flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NotificationList(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 flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - boolean hasLaunchPlan(); - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan(); - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder(); - - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasInputs(); - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getInputs(); - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); - - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - boolean hasMetadata(); - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata(); - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - boolean hasNotifications(); - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications(); - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder(); - - /** - *
-     * This should be set to true if all notifications are intended to be disabled for this execution.
-     * 
- * - * bool disable_all = 6; - */ - boolean getDisableAll(); - - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - boolean hasLabels(); - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - flyteidl.admin.Common.Labels getLabels(); - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); - - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - boolean hasAnnotations(); - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - flyteidl.admin.Common.Annotations getAnnotations(); - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); - - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - boolean hasAuthRole(); - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - flyteidl.admin.Common.AuthRole getAuthRole(); - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder(); - - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - boolean hasQualityOfService(); - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - flyteidl.core.Execution.QualityOfService getQualityOfService(); - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); - - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.NotificationOverridesCase getNotificationOverridesCase(); - } - /** - *
-   * An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
-   * of an execution as it progresses across phase changes..
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionSpec} - */ - public static final class ExecutionSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionSpec) - ExecutionSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionSpec.newBuilder() to construct. - private ExecutionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionSpec() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionSpec( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (launchPlan_ != null) { - subBuilder = launchPlan_.toBuilder(); - } - launchPlan_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(launchPlan_); - launchPlan_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.admin.ExecutionOuterClass.NotificationList.Builder subBuilder = null; - if (notificationOverridesCase_ == 5) { - subBuilder = ((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_).toBuilder(); - } - notificationOverrides_ = - input.readMessage(flyteidl.admin.ExecutionOuterClass.NotificationList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); - notificationOverrides_ = subBuilder.buildPartial(); - } - notificationOverridesCase_ = 5; - break; - } - case 48: { - notificationOverridesCase_ = 6; - notificationOverrides_ = input.readBool(); - break; - } - case 58: { - flyteidl.admin.Common.Labels.Builder subBuilder = null; - if (labels_ != null) { - subBuilder = labels_.toBuilder(); - } - labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(labels_); - labels_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - flyteidl.admin.Common.Annotations.Builder subBuilder = null; - if (annotations_ != null) { - subBuilder = annotations_.toBuilder(); - } - annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotations_); - annotations_ = subBuilder.buildPartial(); - } - - break; - } - case 130: { - flyteidl.admin.Common.AuthRole.Builder subBuilder = null; - if (authRole_ != null) { - subBuilder = authRole_.toBuilder(); - } - authRole_ = input.readMessage(flyteidl.admin.Common.AuthRole.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authRole_); - authRole_ = subBuilder.buildPartial(); - } - - break; - } - case 138: { - flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; - if (qualityOfService_ != null) { - subBuilder = qualityOfService_.toBuilder(); - } - qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qualityOfService_); - qualityOfService_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); - } - - private int notificationOverridesCase_ = 0; - private java.lang.Object notificationOverrides_; - public enum NotificationOverridesCase - implements com.google.protobuf.Internal.EnumLite { - NOTIFICATIONS(5), - DISABLE_ALL(6), - NOTIFICATIONOVERRIDES_NOT_SET(0); - private final int value; - private NotificationOverridesCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NotificationOverridesCase valueOf(int value) { - return forNumber(value); - } - - public static NotificationOverridesCase forNumber(int value) { - switch (value) { - case 5: return NOTIFICATIONS; - case 6: return DISABLE_ALL; - case 0: return NOTIFICATIONOVERRIDES_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public NotificationOverridesCase - getNotificationOverridesCase() { - return NotificationOverridesCase.forNumber( - notificationOverridesCase_); - } - - public static final int LAUNCH_PLAN_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_; - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public boolean hasLaunchPlan() { - return launchPlan_ != null; - } - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { - return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; - } - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { - return getLaunchPlan(); - } - - public static final int INPUTS_FIELD_NUMBER = 2; - private flyteidl.core.Literals.LiteralMap inputs_; - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getInputs() { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { - return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int NOTIFICATIONS_FIELD_NUMBER = 5; - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public boolean hasNotifications() { - return notificationOverridesCase_ == 5; - } - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { - if (notificationOverridesCase_ == 5) { - return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { - if (notificationOverridesCase_ == 5) { - return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - - public static final int DISABLE_ALL_FIELD_NUMBER = 6; - /** - *
-     * This should be set to true if all notifications are intended to be disabled for this execution.
-     * 
- * - * bool disable_all = 6; - */ - public boolean getDisableAll() { - if (notificationOverridesCase_ == 6) { - return (java.lang.Boolean) notificationOverrides_; - } - return false; - } - - public static final int LABELS_FIELD_NUMBER = 7; - private flyteidl.admin.Common.Labels labels_; - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public boolean hasLabels() { - return labels_ != null; - } - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.Labels getLabels() { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - return getLabels(); - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 8; - private flyteidl.admin.Common.Annotations annotations_; - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public boolean hasAnnotations() { - return annotations_ != null; - } - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - return getAnnotations(); - } - - public static final int AUTH_ROLE_FIELD_NUMBER = 16; - private flyteidl.admin.Common.AuthRole authRole_; - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public boolean hasAuthRole() { - return authRole_ != null; - } - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public flyteidl.admin.Common.AuthRole getAuthRole() { - return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { - return getAuthRole(); - } - - public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 17; - private flyteidl.core.Execution.QualityOfService qualityOfService_; - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public boolean hasQualityOfService() { - return qualityOfService_ != null; - } - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - return getQualityOfService(); - } - - 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 (launchPlan_ != null) { - output.writeMessage(1, getLaunchPlan()); - } - if (inputs_ != null) { - output.writeMessage(2, getInputs()); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - if (notificationOverridesCase_ == 5) { - output.writeMessage(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); - } - if (notificationOverridesCase_ == 6) { - output.writeBool( - 6, (boolean)((java.lang.Boolean) notificationOverrides_)); - } - if (labels_ != null) { - output.writeMessage(7, getLabels()); - } - if (annotations_ != null) { - output.writeMessage(8, getAnnotations()); - } - if (authRole_ != null) { - output.writeMessage(16, getAuthRole()); - } - if (qualityOfService_ != null) { - output.writeMessage(17, getQualityOfService()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (launchPlan_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLaunchPlan()); - } - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInputs()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - if (notificationOverridesCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); - } - if (notificationOverridesCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 6, (boolean)((java.lang.Boolean) notificationOverrides_)); - } - if (labels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getLabels()); - } - if (annotations_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getAnnotations()); - } - if (authRole_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getAuthRole()); - } - if (qualityOfService_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getQualityOfService()); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionSpec other = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) obj; - - if (hasLaunchPlan() != other.hasLaunchPlan()) return false; - if (hasLaunchPlan()) { - if (!getLaunchPlan() - .equals(other.getLaunchPlan())) return false; - } - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (hasLabels() != other.hasLabels()) return false; - if (hasLabels()) { - if (!getLabels() - .equals(other.getLabels())) return false; - } - if (hasAnnotations() != other.hasAnnotations()) return false; - if (hasAnnotations()) { - if (!getAnnotations() - .equals(other.getAnnotations())) return false; - } - if (hasAuthRole() != other.hasAuthRole()) return false; - if (hasAuthRole()) { - if (!getAuthRole() - .equals(other.getAuthRole())) return false; - } - if (hasQualityOfService() != other.hasQualityOfService()) return false; - if (hasQualityOfService()) { - if (!getQualityOfService() - .equals(other.getQualityOfService())) return false; - } - if (!getNotificationOverridesCase().equals(other.getNotificationOverridesCase())) return false; - switch (notificationOverridesCase_) { - case 5: - if (!getNotifications() - .equals(other.getNotifications())) return false; - break; - case 6: - if (getDisableAll() - != other.getDisableAll()) 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(); - if (hasLaunchPlan()) { - hash = (37 * hash) + LAUNCH_PLAN_FIELD_NUMBER; - hash = (53 * hash) + getLaunchPlan().hashCode(); - } - if (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasLabels()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + getLabels().hashCode(); - } - if (hasAnnotations()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + getAnnotations().hashCode(); - } - if (hasAuthRole()) { - hash = (37 * hash) + AUTH_ROLE_FIELD_NUMBER; - hash = (53 * hash) + getAuthRole().hashCode(); - } - if (hasQualityOfService()) { - hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getQualityOfService().hashCode(); - } - switch (notificationOverridesCase_) { - case 5: - hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getNotifications().hashCode(); - break; - case 6: - hash = (37 * hash) + DISABLE_ALL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableAll()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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(flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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 ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
-     * of an execution as it progresses across phase changes..
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionSpec) - flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionSpec.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 (launchPlanBuilder_ == null) { - launchPlan_ = null; - } else { - launchPlan_ = null; - launchPlanBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (labelsBuilder_ == null) { - labels_ = null; - } else { - labels_ = null; - labelsBuilder_ = null; - } - if (annotationsBuilder_ == null) { - annotations_ = null; - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - if (authRoleBuilder_ == null) { - authRole_ = null; - } else { - authRole_ = null; - authRoleBuilder_ = null; - } - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec build() { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(this); - if (launchPlanBuilder_ == null) { - result.launchPlan_ = launchPlan_; - } else { - result.launchPlan_ = launchPlanBuilder_.build(); - } - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (notificationOverridesCase_ == 5) { - if (notificationsBuilder_ == null) { - result.notificationOverrides_ = notificationOverrides_; - } else { - result.notificationOverrides_ = notificationsBuilder_.build(); - } - } - if (notificationOverridesCase_ == 6) { - result.notificationOverrides_ = notificationOverrides_; - } - if (labelsBuilder_ == null) { - result.labels_ = labels_; - } else { - result.labels_ = labelsBuilder_.build(); - } - if (annotationsBuilder_ == null) { - result.annotations_ = annotations_; - } else { - result.annotations_ = annotationsBuilder_.build(); - } - if (authRoleBuilder_ == null) { - result.authRole_ = authRole_; - } else { - result.authRole_ = authRoleBuilder_.build(); - } - if (qualityOfServiceBuilder_ == null) { - result.qualityOfService_ = qualityOfService_; - } else { - result.qualityOfService_ = qualityOfServiceBuilder_.build(); - } - result.notificationOverridesCase_ = notificationOverridesCase_; - 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionSpec other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance()) return this; - if (other.hasLaunchPlan()) { - mergeLaunchPlan(other.getLaunchPlan()); - } - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasLabels()) { - mergeLabels(other.getLabels()); - } - if (other.hasAnnotations()) { - mergeAnnotations(other.getAnnotations()); - } - if (other.hasAuthRole()) { - mergeAuthRole(other.getAuthRole()); - } - if (other.hasQualityOfService()) { - mergeQualityOfService(other.getQualityOfService()); - } - switch (other.getNotificationOverridesCase()) { - case NOTIFICATIONS: { - mergeNotifications(other.getNotifications()); - break; - } - case DISABLE_ALL: { - setDisableAll(other.getDisableAll()); - break; - } - case NOTIFICATIONOVERRIDES_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 { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int notificationOverridesCase_ = 0; - private java.lang.Object notificationOverrides_; - public NotificationOverridesCase - getNotificationOverridesCase() { - return NotificationOverridesCase.forNumber( - notificationOverridesCase_); - } - - public Builder clearNotificationOverrides() { - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanBuilder_; - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public boolean hasLaunchPlan() { - return launchPlanBuilder_ != null || launchPlan_ != null; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { - if (launchPlanBuilder_ == null) { - return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; - } else { - return launchPlanBuilder_.getMessage(); - } - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public Builder setLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - launchPlan_ = value; - onChanged(); - } else { - launchPlanBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public Builder setLaunchPlan( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (launchPlanBuilder_ == null) { - launchPlan_ = builderForValue.build(); - onChanged(); - } else { - launchPlanBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public Builder mergeLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanBuilder_ == null) { - if (launchPlan_ != null) { - launchPlan_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(launchPlan_).mergeFrom(value).buildPartial(); - } else { - launchPlan_ = value; - } - onChanged(); - } else { - launchPlanBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public Builder clearLaunchPlan() { - if (launchPlanBuilder_ == null) { - launchPlan_ = null; - onChanged(); - } else { - launchPlan_ = null; - launchPlanBuilder_ = null; - } - - return this; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanBuilder() { - - onChanged(); - return getLaunchPlanFieldBuilder().getBuilder(); - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { - if (launchPlanBuilder_ != null) { - return launchPlanBuilder_.getMessageOrBuilder(); - } else { - return launchPlan_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; - } - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getLaunchPlanFieldBuilder() { - if (launchPlanBuilder_ == null) { - launchPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getLaunchPlan(), - getParentForChildren(), - isClean()); - launchPlan_ = null; - } - return launchPlanBuilder_; - } - - private flyteidl.core.Literals.LiteralMap inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder setMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder setMetadata( - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder mergeMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> notificationsBuilder_; - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public boolean hasNotifications() { - return notificationOverridesCase_ == 5; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { - if (notificationsBuilder_ == null) { - if (notificationOverridesCase_ == 5) { - return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } else { - if (notificationOverridesCase_ == 5) { - return notificationsBuilder_.getMessage(); - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public Builder setNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - notificationOverrides_ = value; - onChanged(); - } else { - notificationsBuilder_.setMessage(value); - } - notificationOverridesCase_ = 5; - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public Builder setNotifications( - flyteidl.admin.ExecutionOuterClass.NotificationList.Builder builderForValue) { - if (notificationsBuilder_ == null) { - notificationOverrides_ = builderForValue.build(); - onChanged(); - } else { - notificationsBuilder_.setMessage(builderForValue.build()); - } - notificationOverridesCase_ = 5; - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public Builder mergeNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { - if (notificationsBuilder_ == null) { - if (notificationOverridesCase_ == 5 && - notificationOverrides_ != flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) { - notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_) - .mergeFrom(value).buildPartial(); - } else { - notificationOverrides_ = value; - } - onChanged(); - } else { - if (notificationOverridesCase_ == 5) { - notificationsBuilder_.mergeFrom(value); - } - notificationsBuilder_.setMessage(value); - } - notificationOverridesCase_ = 5; - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public Builder clearNotifications() { - if (notificationsBuilder_ == null) { - if (notificationOverridesCase_ == 5) { - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - onChanged(); - } - } else { - if (notificationOverridesCase_ == 5) { - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - } - notificationsBuilder_.clear(); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationList.Builder getNotificationsBuilder() { - return getNotificationsFieldBuilder().getBuilder(); - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { - if ((notificationOverridesCase_ == 5) && (notificationsBuilder_ != null)) { - return notificationsBuilder_.getMessageOrBuilder(); - } else { - if (notificationOverridesCase_ == 5) { - return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> - getNotificationsFieldBuilder() { - if (notificationsBuilder_ == null) { - if (!(notificationOverridesCase_ == 5)) { - notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - notificationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder>( - (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_, - getParentForChildren(), - isClean()); - notificationOverrides_ = null; - } - notificationOverridesCase_ = 5; - onChanged();; - return notificationsBuilder_; - } - - /** - *
-       * This should be set to true if all notifications are intended to be disabled for this execution.
-       * 
- * - * bool disable_all = 6; - */ - public boolean getDisableAll() { - if (notificationOverridesCase_ == 6) { - return (java.lang.Boolean) notificationOverrides_; - } - return false; - } - /** - *
-       * This should be set to true if all notifications are intended to be disabled for this execution.
-       * 
- * - * bool disable_all = 6; - */ - public Builder setDisableAll(boolean value) { - notificationOverridesCase_ = 6; - notificationOverrides_ = value; - onChanged(); - return this; - } - /** - *
-       * This should be set to true if all notifications are intended to be disabled for this execution.
-       * 
- * - * bool disable_all = 6; - */ - public Builder clearDisableAll() { - if (notificationOverridesCase_ == 6) { - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - onChanged(); - } - return this; - } - - private flyteidl.admin.Common.Labels labels_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public boolean hasLabels() { - return labelsBuilder_ != null || labels_ != null; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.Labels getLabels() { - if (labelsBuilder_ == null) { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } else { - return labelsBuilder_.getMessage(); - } - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public Builder setLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - labels_ = value; - onChanged(); - } else { - labelsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public Builder setLabels( - flyteidl.admin.Common.Labels.Builder builderForValue) { - if (labelsBuilder_ == null) { - labels_ = builderForValue.build(); - onChanged(); - } else { - labelsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public Builder mergeLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (labels_ != null) { - labels_ = - flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); - } else { - labels_ = value; - } - onChanged(); - } else { - labelsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public Builder clearLabels() { - if (labelsBuilder_ == null) { - labels_ = null; - onChanged(); - } else { - labels_ = null; - labelsBuilder_ = null; - } - - return this; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { - - onChanged(); - return getLabelsFieldBuilder().getBuilder(); - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - if (labelsBuilder_ != null) { - return labelsBuilder_.getMessageOrBuilder(); - } else { - return labels_ == null ? - flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> - getLabelsFieldBuilder() { - if (labelsBuilder_ == null) { - labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( - getLabels(), - getParentForChildren(), - isClean()); - labels_ = null; - } - return labelsBuilder_; - } - - private flyteidl.admin.Common.Annotations annotations_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public boolean hasAnnotations() { - return annotationsBuilder_ != null || annotations_ != null; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - if (annotationsBuilder_ == null) { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } else { - return annotationsBuilder_.getMessage(); - } - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - annotations_ = value; - onChanged(); - } else { - annotationsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public Builder setAnnotations( - flyteidl.admin.Common.Annotations.Builder builderForValue) { - if (annotationsBuilder_ == null) { - annotations_ = builderForValue.build(); - onChanged(); - } else { - annotationsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (annotations_ != null) { - annotations_ = - flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); - } else { - annotations_ = value; - } - onChanged(); - } else { - annotationsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public Builder clearAnnotations() { - if (annotationsBuilder_ == null) { - annotations_ = null; - onChanged(); - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - - return this; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { - - onChanged(); - return getAnnotationsFieldBuilder().getBuilder(); - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - if (annotationsBuilder_ != null) { - return annotationsBuilder_.getMessageOrBuilder(); - } else { - return annotations_ == null ? - flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> - getAnnotationsFieldBuilder() { - if (annotationsBuilder_ == null) { - annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( - getAnnotations(), - getParentForChildren(), - isClean()); - annotations_ = null; - } - return annotationsBuilder_; - } - - private flyteidl.admin.Common.AuthRole authRole_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> authRoleBuilder_; - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public boolean hasAuthRole() { - return authRoleBuilder_ != null || authRole_ != null; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public flyteidl.admin.Common.AuthRole getAuthRole() { - if (authRoleBuilder_ == null) { - return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } else { - return authRoleBuilder_.getMessage(); - } - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public Builder setAuthRole(flyteidl.admin.Common.AuthRole value) { - if (authRoleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authRole_ = value; - onChanged(); - } else { - authRoleBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public Builder setAuthRole( - flyteidl.admin.Common.AuthRole.Builder builderForValue) { - if (authRoleBuilder_ == null) { - authRole_ = builderForValue.build(); - onChanged(); - } else { - authRoleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public Builder mergeAuthRole(flyteidl.admin.Common.AuthRole value) { - if (authRoleBuilder_ == null) { - if (authRole_ != null) { - authRole_ = - flyteidl.admin.Common.AuthRole.newBuilder(authRole_).mergeFrom(value).buildPartial(); - } else { - authRole_ = value; - } - onChanged(); - } else { - authRoleBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public Builder clearAuthRole() { - if (authRoleBuilder_ == null) { - authRole_ = null; - onChanged(); - } else { - authRole_ = null; - authRoleBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public flyteidl.admin.Common.AuthRole.Builder getAuthRoleBuilder() { - - onChanged(); - return getAuthRoleFieldBuilder().getBuilder(); - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { - if (authRoleBuilder_ != null) { - return authRoleBuilder_.getMessageOrBuilder(); - } else { - return authRole_ == null ? - flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> - getAuthRoleFieldBuilder() { - if (authRoleBuilder_ == null) { - authRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder>( - getAuthRole(), - getParentForChildren(), - isClean()); - authRole_ = null; - } - return authRoleBuilder_; - } - - private flyteidl.core.Execution.QualityOfService qualityOfService_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public boolean hasQualityOfService() { - return qualityOfServiceBuilder_ != null || qualityOfService_ != null; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } else { - return qualityOfServiceBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qualityOfService_ = value; - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public Builder setQualityOfService( - flyteidl.core.Execution.QualityOfService.Builder builderForValue) { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = builderForValue.build(); - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (qualityOfService_ != null) { - qualityOfService_ = - flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); - } else { - qualityOfService_ = value; - } - onChanged(); - } else { - qualityOfServiceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public Builder clearQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - onChanged(); - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { - - onChanged(); - return getQualityOfServiceFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if (qualityOfServiceBuilder_ != null) { - return qualityOfServiceBuilder_.getMessageOrBuilder(); - } else { - return qualityOfService_ == null ? - flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> - getQualityOfServiceFieldBuilder() { - if (qualityOfServiceBuilder_ == null) { - qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( - getQualityOfService(), - getParentForChildren(), - isClean()); - qualityOfService_ = null; - } - return qualityOfServiceBuilder_; - } - @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:flyteidl.admin.ExecutionSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionSpec) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionSpec(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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionTerminateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated. 
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated. 
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated. 
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Optional reason for aborting.
-     * 
- * - * string cause = 2; - */ - java.lang.String getCause(); - /** - *
-     * Optional reason for aborting.
-     * 
- * - * string cause = 2; - */ - com.google.protobuf.ByteString - getCauseBytes(); - } - /** - *
-   * Request to terminate an in-progress execution.  This action is irreversible.
-   * If an execution is already terminated, this request will simply be a no-op.
-   * This request will fail if it references a non-existent execution.
-   * If the request succeeds the phase "ABORTED" will be recorded for the termination
-   * with the optional cause added to the output_result.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} - */ - public static final class ExecutionTerminateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateRequest) - ExecutionTerminateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionTerminateRequest.newBuilder() to construct. - private ExecutionTerminateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionTerminateRequest() { - cause_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionTerminateRequest( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - cause_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated. 
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated. 
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated. 
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int CAUSE_FIELD_NUMBER = 2; - private volatile java.lang.Object cause_; - /** - *
-     * Optional reason for aborting.
-     * 
- * - * string cause = 2; - */ - public java.lang.String getCause() { - java.lang.Object ref = cause_; - 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(); - cause_ = s; - return s; - } - } - /** - *
-     * Optional reason for aborting.
-     * 
- * - * string cause = 2; - */ - public com.google.protobuf.ByteString - getCauseBytes() { - java.lang.Object ref = cause_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cause_ = 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 (id_ != null) { - output.writeMessage(1, getId()); - } - if (!getCauseBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cause_); - } - 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 (!getCauseBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cause_); - } - 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getCause() - .equals(other.getCause())) 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) + CAUSE_FIELD_NUMBER; - hash = (53 * hash) + getCause().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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; - } - /** - *
-     * Request to terminate an in-progress execution.  This action is irreversible.
-     * If an execution is already terminated, this request will simply be a no-op.
-     * This request will fail if it references a non-existent execution.
-     * If the request succeeds the phase "ABORTED" will be recorded for the termination
-     * with the optional cause added to the output_result.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateRequest) - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - cause_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest build() { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.cause_ = cause_; - 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getCause().isEmpty()) { - cause_ = other.cause_; - 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 { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated. 
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object cause_ = ""; - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public java.lang.String getCause() { - java.lang.Object ref = cause_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cause_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public com.google.protobuf.ByteString - getCauseBytes() { - java.lang.Object ref = cause_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cause_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public Builder setCause( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cause_ = value; - onChanged(); - return this; - } - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public Builder clearCause() { - - cause_ = getDefaultInstance().getCause(); - onChanged(); - return this; - } - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public Builder setCauseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cause_ = 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:flyteidl.admin.ExecutionTerminateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateRequest) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionTerminateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionTerminateRequest(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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionTerminateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} - */ - public static final class ExecutionTerminateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateResponse) - ExecutionTerminateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionTerminateResponse.newBuilder() to construct. - private ExecutionTerminateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionTerminateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionTerminateResponse( - 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; - 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateResponse) - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse build() { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(this); - 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.ExecutionTerminateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateResponse) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionTerminateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionTerminateResponse(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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionGetDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Request structure to fetch inputs and output urls for an execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} - */ - public static final class WorkflowExecutionGetDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) - WorkflowExecutionGetDataRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionGetDataRequest.newBuilder() to construct. - private WorkflowExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionGetDataRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionGetDataRequest( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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; - } - /** - *
-     * Request structure to fetch inputs and output urls for an execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest build() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.WorkflowExecutionGetDataRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataRequest) - private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionGetDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionGetDataRequest(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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionGetDataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - boolean hasOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - flyteidl.admin.Common.UrlBlob getOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); - - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - boolean hasInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - flyteidl.admin.Common.UrlBlob getInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); - } - /** - *
-   * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} - */ - public static final class WorkflowExecutionGetDataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) - WorkflowExecutionGetDataResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionGetDataResponse.newBuilder() to construct. - private WorkflowExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionGetDataResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionGetDataResponse( - 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: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); - } - - public static final int OUTPUTS_FIELD_NUMBER = 1; - private flyteidl.admin.Common.UrlBlob outputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public boolean hasOutputs() { - return outputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public flyteidl.admin.Common.UrlBlob getOutputs() { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - public static final int INPUTS_FIELD_NUMBER = 2; - private flyteidl.admin.Common.UrlBlob inputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public flyteidl.admin.Common.UrlBlob getInputs() { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - 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 (outputs_ != null) { - output.writeMessage(1, getOutputs()); - } - if (inputs_ != null) { - output.writeMessage(2, getInputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOutputs()); - } - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInputs()); - } - 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) obj; - - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) return false; - } - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) 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 (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - if (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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; - } - /** - *
-     * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.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 (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse build() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse buildPartial() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(this); - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other) { - if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance()) return this; - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - 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 { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.UrlBlob outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public flyteidl.admin.Common.UrlBlob getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public Builder setOutputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - - private flyteidl.admin.Common.UrlBlob inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public flyteidl.admin.Common.UrlBlob getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public Builder setInputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - @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:flyteidl.admin.WorkflowExecutionGetDataResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataResponse) - private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(); - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionGetDataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionGetDataResponse(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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Execution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Execution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LiteralMapBlob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_AbortMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_SystemMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NotificationList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NotificationList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_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\036flyteidl/admin/execution.proto\022\016flytei" + - "dl.admin\032\033flyteidl/admin/common.proto\032\034f" + - "lyteidl/core/literals.proto\032\035flyteidl/co" + - "re/execution.proto\032\036flyteidl/core/identi" + - "fier.proto\032\036google/protobuf/duration.pro" + - "to\032\037google/protobuf/timestamp.proto\"\237\001\n\026" + - "ExecutionCreateRequest\022\017\n\007project\030\001 \001(\t\022" + - "\016\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022+\n\004spec\030\004 " + - "\001(\0132\035.flyteidl.admin.ExecutionSpec\022)\n\006in" + - "puts\030\005 \001(\0132\031.flyteidl.core.LiteralMap\"`\n" + - "\030ExecutionRelaunchRequest\0226\n\002id\030\001 \001(\0132*." + - "flyteidl.core.WorkflowExecutionIdentifie" + - "r\022\014\n\004name\030\003 \001(\t\"Q\n\027ExecutionCreateRespon" + - "se\0226\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowE" + - "xecutionIdentifier\"U\n\033WorkflowExecutionG" + - "etRequest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.Wo" + - "rkflowExecutionIdentifier\"\243\001\n\tExecution\022" + - "6\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExec" + - "utionIdentifier\022+\n\004spec\030\002 \001(\0132\035.flyteidl" + - ".admin.ExecutionSpec\0221\n\007closure\030\003 \001(\0132 ." + - "flyteidl.admin.ExecutionClosure\"M\n\rExecu" + - "tionList\022-\n\nexecutions\030\001 \003(\0132\031.flyteidl." + - "admin.Execution\022\r\n\005token\030\002 \001(\t\"T\n\016Litera" + - "lMapBlob\022+\n\006values\030\001 \001(\0132\031.flyteidl.core" + - ".LiteralMapH\000\022\r\n\003uri\030\002 \001(\tH\000B\006\n\004data\"1\n\r" + - "AbortMetadata\022\r\n\005cause\030\001 \001(\t\022\021\n\tprincipa" + - "l\030\002 \001(\t\"\353\004\n\020ExecutionClosure\0221\n\007outputs\030" + - "\001 \001(\0132\036.flyteidl.admin.LiteralMapBlobH\000\022" + - ".\n\005error\030\002 \001(\0132\035.flyteidl.core.Execution" + - "ErrorH\000\022\031\n\013abort_cause\030\n \001(\tB\002\030\001H\000\0227\n\016ab" + - "ort_metadata\030\014 \001(\0132\035.flyteidl.admin.Abor" + - "tMetadataH\000\0226\n\017computed_inputs\030\003 \001(\0132\031.f" + - "lyteidl.core.LiteralMapB\002\030\001\0225\n\005phase\030\004 \001" + - "(\0162&.flyteidl.core.WorkflowExecution.Pha" + - "se\022.\n\nstarted_at\030\005 \001(\0132\032.google.protobuf" + - ".Timestamp\022+\n\010duration\030\006 \001(\0132\031.google.pr" + - "otobuf.Duration\022.\n\ncreated_at\030\007 \001(\0132\032.go" + - "ogle.protobuf.Timestamp\022.\n\nupdated_at\030\010 " + - "\001(\0132\032.google.protobuf.Timestamp\0223\n\rnotif" + - "ications\030\t \003(\0132\034.flyteidl.admin.Notifica" + - "tion\022.\n\013workflow_id\030\013 \001(\0132\031.flyteidl.cor" + - "e.IdentifierB\017\n\routput_result\"+\n\016SystemM" + - "etadata\022\031\n\021execution_cluster\030\001 \001(\t\"\313\003\n\021E" + - "xecutionMetadata\022=\n\004mode\030\001 \001(\0162/.flyteid" + - "l.admin.ExecutionMetadata.ExecutionMode\022" + - "\021\n\tprincipal\030\002 \001(\t\022\017\n\007nesting\030\003 \001(\r\0220\n\014s" + - "cheduled_at\030\004 \001(\0132\032.google.protobuf.Time" + - "stamp\022E\n\025parent_node_execution\030\005 \001(\0132&.f" + - "lyteidl.core.NodeExecutionIdentifier\022G\n\023" + - "reference_execution\030\020 \001(\0132*.flyteidl.cor" + - "e.WorkflowExecutionIdentifier\0227\n\017system_" + - "metadata\030\021 \001(\0132\036.flyteidl.admin.SystemMe" + - "tadata\"X\n\rExecutionMode\022\n\n\006MANUAL\020\000\022\r\n\tS" + - "CHEDULED\020\001\022\n\n\006SYSTEM\020\002\022\014\n\010RELAUNCH\020\003\022\022\n\016" + - "CHILD_WORKFLOW\020\004\"G\n\020NotificationList\0223\n\r" + - "notifications\030\001 \003(\0132\034.flyteidl.admin.Not" + - "ification\"\331\003\n\rExecutionSpec\022.\n\013launch_pl" + - "an\030\001 \001(\0132\031.flyteidl.core.Identifier\022-\n\006i" + - "nputs\030\002 \001(\0132\031.flyteidl.core.LiteralMapB\002" + - "\030\001\0223\n\010metadata\030\003 \001(\0132!.flyteidl.admin.Ex" + - "ecutionMetadata\0229\n\rnotifications\030\005 \001(\0132 " + - ".flyteidl.admin.NotificationListH\000\022\025\n\013di" + - "sable_all\030\006 \001(\010H\000\022&\n\006labels\030\007 \001(\0132\026.flyt" + - "eidl.admin.Labels\0220\n\013annotations\030\010 \001(\0132\033" + - ".flyteidl.admin.Annotations\022+\n\tauth_role" + - "\030\020 \001(\0132\030.flyteidl.admin.AuthRole\022;\n\022qual" + - "ity_of_service\030\021 \001(\0132\037.flyteidl.core.Qua" + - "lityOfServiceB\030\n\026notification_overridesJ" + - "\004\010\004\020\005\"b\n\031ExecutionTerminateRequest\0226\n\002id" + - "\030\001 \001(\0132*.flyteidl.core.WorkflowExecution" + - "Identifier\022\r\n\005cause\030\002 \001(\t\"\034\n\032ExecutionTe" + - "rminateResponse\"Y\n\037WorkflowExecutionGetD" + - "ataRequest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.W" + - "orkflowExecutionIdentifier\"u\n WorkflowEx" + - "ecutionGetDataResponse\022(\n\007outputs\030\001 \001(\0132" + - "\027.flyteidl.admin.UrlBlob\022\'\n\006inputs\030\002 \001(\013" + - "2\027.flyteidl.admin.UrlBlobB3Z1github.com/" + - "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + - "proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.Common.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Name", "Spec", "Inputs", }); - internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor, - new java.lang.String[] { "Id", "Name", }); - internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_Execution_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_Execution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Execution_descriptor, - new java.lang.String[] { "Id", "Spec", "Closure", }); - internal_static_flyteidl_admin_ExecutionList_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionList_descriptor, - new java.lang.String[] { "Executions", "Token", }); - internal_static_flyteidl_admin_LiteralMapBlob_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LiteralMapBlob_descriptor, - new java.lang.String[] { "Values", "Uri", "Data", }); - internal_static_flyteidl_admin_AbortMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_AbortMetadata_descriptor, - new java.lang.String[] { "Cause", "Principal", }); - internal_static_flyteidl_admin_ExecutionClosure_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionClosure_descriptor, - new java.lang.String[] { "Outputs", "Error", "AbortCause", "AbortMetadata", "ComputedInputs", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "Notifications", "WorkflowId", "OutputResult", }); - internal_static_flyteidl_admin_SystemMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_SystemMetadata_descriptor, - new java.lang.String[] { "ExecutionCluster", }); - internal_static_flyteidl_admin_ExecutionMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionMetadata_descriptor, - new java.lang.String[] { "Mode", "Principal", "Nesting", "ScheduledAt", "ParentNodeExecution", "ReferenceExecution", "SystemMetadata", }); - internal_static_flyteidl_admin_NotificationList_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_admin_NotificationList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NotificationList_descriptor, - new java.lang.String[] { "Notifications", }); - internal_static_flyteidl_admin_ExecutionSpec_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionSpec_descriptor, - new java.lang.String[] { "LaunchPlan", "Inputs", "Metadata", "Notifications", "DisableAll", "Labels", "Annotations", "AuthRole", "QualityOfService", "NotificationOverrides", }); - internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor, - new java.lang.String[] { "Id", "Cause", }); - internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor, - new java.lang.String[] { "Outputs", "Inputs", }); - flyteidl.admin.Common.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java b/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java deleted file mode 100644 index 65080c0fe..000000000 --- a/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java +++ /dev/null @@ -1,13189 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/launch_plan.proto - -package flyteidl.admin; - -public final class LaunchPlanOuterClass { - private LaunchPlanOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * By default any launch plan regardless of state can be used to launch a workflow execution.
-   * However, at most one version of a launch plan
-   * (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be
-   * active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier
-   * group will be observed and trigger executions at a defined cadence.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.LaunchPlanState} - */ - public enum LaunchPlanState - implements com.google.protobuf.ProtocolMessageEnum { - /** - * INACTIVE = 0; - */ - INACTIVE(0), - /** - * ACTIVE = 1; - */ - ACTIVE(1), - UNRECOGNIZED(-1), - ; - - /** - * INACTIVE = 0; - */ - public static final int INACTIVE_VALUE = 0; - /** - * ACTIVE = 1; - */ - public static final int ACTIVE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LaunchPlanState valueOf(int value) { - return forNumber(value); - } - - public static LaunchPlanState forNumber(int value) { - switch (value) { - case 0: return INACTIVE; - case 1: return ACTIVE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LaunchPlanState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LaunchPlanState findValueByNumber(int number) { - return LaunchPlanState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.admin.LaunchPlanOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final LaunchPlanState[] VALUES = values(); - - public static LaunchPlanState 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 LaunchPlanState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.LaunchPlanState) - } - - public interface LaunchPlanCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - boolean hasSpec(); - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); - } - /** - *
-   * Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required
-   * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
-   * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} - */ - public static final class LaunchPlanCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateRequest) - LaunchPlanCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanCreateRequest.newBuilder() to construct. - private LaunchPlanCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanCreateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanCreateRequest( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { - return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - 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 (spec_ != null) { - output.writeMessage(2, getSpec()); - } - 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 (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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; - } - /** - *
-     * Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required
-     * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
-     * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateRequest) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - @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:flyteidl.admin.LaunchPlanCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateRequest) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanCreateRequest(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanCreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} - */ - public static final class LaunchPlanCreateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateResponse) - LaunchPlanCreateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanCreateResponse.newBuilder() to construct. - private LaunchPlanCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanCreateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanCreateResponse( - 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; - 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateResponse) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(this); - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.LaunchPlanCreateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateResponse) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanCreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanCreateResponse(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlan) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - boolean hasSpec(); - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); - - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - boolean hasClosure(); - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure(); - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder(); - } - /** - *
-   * A LaunchPlan provides the capability to templatize workflow executions.
-   * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
-   * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
-   * definition doesn't necessarily have a default value for said input.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlan} - */ - public static final class LaunchPlan extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlan) - LaunchPlanOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlan.newBuilder() to construct. - private LaunchPlan(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlan() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlan( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { - return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - public static final int CLOSURE_FIELD_NUMBER = 3; - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_; - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { - return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - 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 (spec_ != null) { - output.writeMessage(2, getSpec()); - } - if (closure_ != null) { - output.writeMessage(3, getClosure()); - } - 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 (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClosure()); - } - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; - } - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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 LaunchPlan provides the capability to templatize workflow executions.
-     * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
-     * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
-     * definition doesn't necessarily have a default value for said input.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlan} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlan) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.build(); - } - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlan)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } - } - /** - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> closureBuilder_; - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public Builder setClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public Builder setClosure( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public Builder mergeClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; - } - } - /** - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - @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:flyteidl.admin.LaunchPlan) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlan) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlan DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlan parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlan(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - java.util.List - getLaunchPlansList(); - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index); - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - int getLaunchPlansCount(); - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - java.util.List - getLaunchPlansOrBuilderList(); - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Response object for list launch plan requests.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanList} - */ - public static final class LaunchPlanList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanList) - LaunchPlanListOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanList.newBuilder() to construct. - private LaunchPlanList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanList() { - launchPlans_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanList( - 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)) { - launchPlans_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - launchPlans_.add( - input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); - } - - private int bitField0_; - public static final int LAUNCH_PLANS_FIELD_NUMBER = 1; - private java.util.List launchPlans_; - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List getLaunchPlansList() { - return launchPlans_; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List - getLaunchPlansOrBuilderList() { - return launchPlans_; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public int getLaunchPlansCount() { - return launchPlans_.size(); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { - return launchPlans_.get(index); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( - int index) { - return launchPlans_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < launchPlans_.size(); i++) { - output.writeMessage(1, launchPlans_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < launchPlans_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, launchPlans_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) obj; - - if (!getLaunchPlansList() - .equals(other.getLaunchPlansList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getLaunchPlansCount() > 0) { - hash = (37 * hash) + LAUNCH_PLANS_FIELD_NUMBER; - hash = (53 * hash) + getLaunchPlansList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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; - } - /** - *
-     * Response object for list launch plan requests.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanList) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLaunchPlansFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (launchPlansBuilder_ == null) { - launchPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - launchPlansBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (launchPlansBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.launchPlans_ = launchPlans_; - } else { - result.launchPlans_ = launchPlansBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance()) return this; - if (launchPlansBuilder_ == null) { - if (!other.launchPlans_.isEmpty()) { - if (launchPlans_.isEmpty()) { - launchPlans_ = other.launchPlans_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLaunchPlansIsMutable(); - launchPlans_.addAll(other.launchPlans_); - } - onChanged(); - } - } else { - if (!other.launchPlans_.isEmpty()) { - if (launchPlansBuilder_.isEmpty()) { - launchPlansBuilder_.dispose(); - launchPlansBuilder_ = null; - launchPlans_ = other.launchPlans_; - bitField0_ = (bitField0_ & ~0x00000001); - launchPlansBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLaunchPlansFieldBuilder() : null; - } else { - launchPlansBuilder_.addAllMessages(other.launchPlans_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List launchPlans_ = - java.util.Collections.emptyList(); - private void ensureLaunchPlansIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - launchPlans_ = new java.util.ArrayList(launchPlans_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> launchPlansBuilder_; - - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List getLaunchPlansList() { - if (launchPlansBuilder_ == null) { - return java.util.Collections.unmodifiableList(launchPlans_); - } else { - return launchPlansBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public int getLaunchPlansCount() { - if (launchPlansBuilder_ == null) { - return launchPlans_.size(); - } else { - return launchPlansBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { - if (launchPlansBuilder_ == null) { - return launchPlans_.get(index); - } else { - return launchPlansBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder setLaunchPlans( - int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { - if (launchPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLaunchPlansIsMutable(); - launchPlans_.set(index, value); - onChanged(); - } else { - launchPlansBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder setLaunchPlans( - int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - launchPlans_.set(index, builderForValue.build()); - onChanged(); - } else { - launchPlansBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addLaunchPlans(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { - if (launchPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLaunchPlansIsMutable(); - launchPlans_.add(value); - onChanged(); - } else { - launchPlansBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addLaunchPlans( - int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { - if (launchPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLaunchPlansIsMutable(); - launchPlans_.add(index, value); - onChanged(); - } else { - launchPlansBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addLaunchPlans( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - launchPlans_.add(builderForValue.build()); - onChanged(); - } else { - launchPlansBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addLaunchPlans( - int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - launchPlans_.add(index, builderForValue.build()); - onChanged(); - } else { - launchPlansBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addAllLaunchPlans( - java.lang.Iterable values) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, launchPlans_); - onChanged(); - } else { - launchPlansBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder clearLaunchPlans() { - if (launchPlansBuilder_ == null) { - launchPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - launchPlansBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder removeLaunchPlans(int index) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - launchPlans_.remove(index); - onChanged(); - } else { - launchPlansBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder getLaunchPlansBuilder( - int index) { - return getLaunchPlansFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( - int index) { - if (launchPlansBuilder_ == null) { - return launchPlans_.get(index); } else { - return launchPlansBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List - getLaunchPlansOrBuilderList() { - if (launchPlansBuilder_ != null) { - return launchPlansBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(launchPlans_); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder() { - return getLaunchPlansFieldBuilder().addBuilder( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder( - int index) { - return getLaunchPlansFieldBuilder().addBuilder( - index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List - getLaunchPlansBuilderList() { - return getLaunchPlansFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> - getLaunchPlansFieldBuilder() { - if (launchPlansBuilder_ == null) { - launchPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder>( - launchPlans_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - launchPlans_ = null; - } - return launchPlansBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.LaunchPlanList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanList) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanList(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AuthOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Auth) - com.google.protobuf.MessageOrBuilder { - - /** - * string assumable_iam_role = 1; - */ - java.lang.String getAssumableIamRole(); - /** - * string assumable_iam_role = 1; - */ - com.google.protobuf.ByteString - getAssumableIamRoleBytes(); - - /** - * string kubernetes_service_account = 2; - */ - java.lang.String getKubernetesServiceAccount(); - /** - * string kubernetes_service_account = 2; - */ - com.google.protobuf.ByteString - getKubernetesServiceAccountBytes(); - - public flyteidl.admin.LaunchPlanOuterClass.Auth.MethodCase getMethodCase(); - } - /** - *
-   * Defines permissions associated with executions created by this launch plan spec.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Auth} - */ - public static final class Auth extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Auth) - AuthOrBuilder { - private static final long serialVersionUID = 0L; - // Use Auth.newBuilder() to construct. - private Auth(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Auth() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Auth( - 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(); - methodCase_ = 1; - method_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - methodCase_ = 2; - method_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); - } - - private int methodCase_ = 0; - private java.lang.Object method_; - public enum MethodCase - implements com.google.protobuf.Internal.EnumLite { - ASSUMABLE_IAM_ROLE(1), - KUBERNETES_SERVICE_ACCOUNT(2), - METHOD_NOT_SET(0); - private final int value; - private MethodCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MethodCase valueOf(int value) { - return forNumber(value); - } - - public static MethodCase forNumber(int value) { - switch (value) { - case 1: return ASSUMABLE_IAM_ROLE; - case 2: return KUBERNETES_SERVICE_ACCOUNT; - case 0: return METHOD_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public MethodCase - getMethodCase() { - return MethodCase.forNumber( - methodCase_); - } - - public static final int ASSUMABLE_IAM_ROLE_FIELD_NUMBER = 1; - /** - * string assumable_iam_role = 1; - */ - public java.lang.String getAssumableIamRole() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - 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(); - if (methodCase_ == 1) { - method_ = s; - } - return s; - } - } - /** - * string assumable_iam_role = 1; - */ - public com.google.protobuf.ByteString - getAssumableIamRoleBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 1) { - method_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 2; - /** - * string kubernetes_service_account = 2; - */ - public java.lang.String getKubernetesServiceAccount() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - 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(); - if (methodCase_ == 2) { - method_ = s; - } - return s; - } - } - /** - * string kubernetes_service_account = 2; - */ - public com.google.protobuf.ByteString - getKubernetesServiceAccountBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 2) { - method_ = 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 (methodCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); - } - if (methodCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (methodCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); - } - if (methodCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); - } - 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 flyteidl.admin.LaunchPlanOuterClass.Auth)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.Auth other = (flyteidl.admin.LaunchPlanOuterClass.Auth) obj; - - if (!getMethodCase().equals(other.getMethodCase())) return false; - switch (methodCase_) { - case 1: - if (!getAssumableIamRole() - .equals(other.getAssumableIamRole())) return false; - break; - case 2: - if (!getKubernetesServiceAccount() - .equals(other.getKubernetesServiceAccount())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (methodCase_) { - case 1: - hash = (37 * hash) + ASSUMABLE_IAM_ROLE_FIELD_NUMBER; - hash = (53 * hash) + getAssumableIamRole().hashCode(); - break; - case 2: - hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth 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 flyteidl.admin.LaunchPlanOuterClass.Auth parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth 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 flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth 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(flyteidl.admin.LaunchPlanOuterClass.Auth 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; - } - /** - *
-     * Defines permissions associated with executions created by this launch plan spec.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Auth} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Auth) - flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.Auth.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(); - methodCase_ = 0; - method_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.Auth build() { - flyteidl.admin.LaunchPlanOuterClass.Auth result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.Auth buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.Auth result = new flyteidl.admin.LaunchPlanOuterClass.Auth(this); - if (methodCase_ == 1) { - result.method_ = method_; - } - if (methodCase_ == 2) { - result.method_ = method_; - } - result.methodCase_ = methodCase_; - 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 flyteidl.admin.LaunchPlanOuterClass.Auth) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.Auth)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.Auth other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance()) return this; - switch (other.getMethodCase()) { - case ASSUMABLE_IAM_ROLE: { - methodCase_ = 1; - method_ = other.method_; - onChanged(); - break; - } - case KUBERNETES_SERVICE_ACCOUNT: { - methodCase_ = 2; - method_ = other.method_; - onChanged(); - break; - } - case METHOD_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 { - flyteidl.admin.LaunchPlanOuterClass.Auth parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.Auth) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int methodCase_ = 0; - private java.lang.Object method_; - public MethodCase - getMethodCase() { - return MethodCase.forNumber( - methodCase_); - } - - public Builder clearMethod() { - methodCase_ = 0; - method_ = null; - onChanged(); - return this; - } - - - /** - * string assumable_iam_role = 1; - */ - public java.lang.String getAssumableIamRole() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (methodCase_ == 1) { - method_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string assumable_iam_role = 1; - */ - public com.google.protobuf.ByteString - getAssumableIamRoleBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 1) { - ref = method_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 1) { - method_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string assumable_iam_role = 1; - */ - public Builder setAssumableIamRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - methodCase_ = 1; - method_ = value; - onChanged(); - return this; - } - /** - * string assumable_iam_role = 1; - */ - public Builder clearAssumableIamRole() { - if (methodCase_ == 1) { - methodCase_ = 0; - method_ = null; - onChanged(); - } - return this; - } - /** - * string assumable_iam_role = 1; - */ - public Builder setAssumableIamRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - methodCase_ = 1; - method_ = value; - onChanged(); - return this; - } - - /** - * string kubernetes_service_account = 2; - */ - public java.lang.String getKubernetesServiceAccount() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (methodCase_ == 2) { - method_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string kubernetes_service_account = 2; - */ - public com.google.protobuf.ByteString - getKubernetesServiceAccountBytes() { - java.lang.Object ref = ""; - if (methodCase_ == 2) { - ref = method_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (methodCase_ == 2) { - method_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string kubernetes_service_account = 2; - */ - public Builder setKubernetesServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - methodCase_ = 2; - method_ = value; - onChanged(); - return this; - } - /** - * string kubernetes_service_account = 2; - */ - public Builder clearKubernetesServiceAccount() { - if (methodCase_ == 2) { - methodCase_ = 0; - method_ = null; - onChanged(); - } - return this; - } - /** - * string kubernetes_service_account = 2; - */ - public Builder setKubernetesServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - methodCase_ = 2; - method_ = 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:flyteidl.admin.Auth) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Auth) - private static final flyteidl.admin.LaunchPlanOuterClass.Auth DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.Auth(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Auth parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Auth(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 flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - boolean hasWorkflowId(); - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); - - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - boolean hasEntityMetadata(); - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata(); - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder(); - - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - boolean hasDefaultInputs(); - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - flyteidl.core.Interface.ParameterMap getDefaultInputs(); - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder(); - - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - boolean hasFixedInputs(); - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - flyteidl.core.Literals.LiteralMap getFixedInputs(); - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder(); - - /** - *
-     * String to indicate the role to use to execute the workflow underneath
-     * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated java.lang.String getRole(); - /** - *
-     * String to indicate the role to use to execute the workflow underneath
-     * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getRoleBytes(); - - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - boolean hasLabels(); - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - flyteidl.admin.Common.Labels getLabels(); - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); - - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - boolean hasAnnotations(); - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - flyteidl.admin.Common.Annotations getAnnotations(); - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); - - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasAuth(); - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.LaunchPlanOuterClass.Auth getAuth(); - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder(); - - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - boolean hasAuthRole(); - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - flyteidl.admin.Common.AuthRole getAuthRole(); - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder(); - - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - boolean hasQualityOfService(); - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - flyteidl.core.Execution.QualityOfService getQualityOfService(); - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); - } - /** - *
-   * User-provided launch plan definition and configuration values.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} - */ - public static final class LaunchPlanSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanSpec) - LaunchPlanSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanSpec.newBuilder() to construct. - private LaunchPlanSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanSpec() { - role_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanSpec( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (workflowId_ != null) { - subBuilder = workflowId_.toBuilder(); - } - workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflowId_); - workflowId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder subBuilder = null; - if (entityMetadata_ != null) { - subBuilder = entityMetadata_.toBuilder(); - } - entityMetadata_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityMetadata_); - entityMetadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; - if (defaultInputs_ != null) { - subBuilder = defaultInputs_.toBuilder(); - } - defaultInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultInputs_); - defaultInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (fixedInputs_ != null) { - subBuilder = fixedInputs_.toBuilder(); - } - fixedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fixedInputs_); - fixedInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - role_ = s; - break; - } - case 50: { - flyteidl.admin.Common.Labels.Builder subBuilder = null; - if (labels_ != null) { - subBuilder = labels_.toBuilder(); - } - labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(labels_); - labels_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - flyteidl.admin.Common.Annotations.Builder subBuilder = null; - if (annotations_ != null) { - subBuilder = annotations_.toBuilder(); - } - annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotations_); - annotations_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - flyteidl.admin.LaunchPlanOuterClass.Auth.Builder subBuilder = null; - if (auth_ != null) { - subBuilder = auth_.toBuilder(); - } - auth_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.Auth.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(auth_); - auth_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - flyteidl.admin.Common.AuthRole.Builder subBuilder = null; - if (authRole_ != null) { - subBuilder = authRole_.toBuilder(); - } - authRole_ = input.readMessage(flyteidl.admin.Common.AuthRole.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authRole_); - authRole_ = subBuilder.buildPartial(); - } - - break; - } - case 130: { - flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; - if (qualityOfService_ != null) { - subBuilder = qualityOfService_.toBuilder(); - } - qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qualityOfService_); - qualityOfService_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); - } - - public static final int WORKFLOW_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public boolean hasWorkflowId() { - return workflowId_ != null; - } - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - return getWorkflowId(); - } - - public static final int ENTITY_METADATA_FIELD_NUMBER = 2; - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_; - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public boolean hasEntityMetadata() { - return entityMetadata_ != null; - } - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { - return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; - } - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { - return getEntityMetadata(); - } - - public static final int DEFAULT_INPUTS_FIELD_NUMBER = 3; - private flyteidl.core.Interface.ParameterMap defaultInputs_; - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public boolean hasDefaultInputs() { - return defaultInputs_ != null; - } - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMap getDefaultInputs() { - return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; - } - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { - return getDefaultInputs(); - } - - public static final int FIXED_INPUTS_FIELD_NUMBER = 4; - private flyteidl.core.Literals.LiteralMap fixedInputs_; - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public boolean hasFixedInputs() { - return fixedInputs_ != null; - } - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMap getFixedInputs() { - return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; - } - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { - return getFixedInputs(); - } - - public static final int ROLE_FIELD_NUMBER = 5; - private volatile java.lang.Object role_; - /** - *
-     * String to indicate the role to use to execute the workflow underneath
-     * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getRole() { - java.lang.Object ref = role_; - 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(); - role_ = s; - return s; - } - } - /** - *
-     * String to indicate the role to use to execute the workflow underneath
-     * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 6; - private flyteidl.admin.Common.Labels labels_; - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public boolean hasLabels() { - return labels_ != null; - } - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.Labels getLabels() { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - return getLabels(); - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 7; - private flyteidl.admin.Common.Annotations annotations_; - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public boolean hasAnnotations() { - return annotations_ != null; - } - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - return getAnnotations(); - } - - public static final int AUTH_FIELD_NUMBER = 8; - private flyteidl.admin.LaunchPlanOuterClass.Auth auth_; - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasAuth() { - return auth_ != null; - } - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { - return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; - } - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { - return getAuth(); - } - - public static final int AUTH_ROLE_FIELD_NUMBER = 9; - private flyteidl.admin.Common.AuthRole authRole_; - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public boolean hasAuthRole() { - return authRole_ != null; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public flyteidl.admin.Common.AuthRole getAuthRole() { - return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { - return getAuthRole(); - } - - public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 16; - private flyteidl.core.Execution.QualityOfService qualityOfService_; - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public boolean hasQualityOfService() { - return qualityOfService_ != null; - } - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - /** - *
-     * Indicates the runtime priority of the execution. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - return getQualityOfService(); - } - - 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 (workflowId_ != null) { - output.writeMessage(1, getWorkflowId()); - } - if (entityMetadata_ != null) { - output.writeMessage(2, getEntityMetadata()); - } - if (defaultInputs_ != null) { - output.writeMessage(3, getDefaultInputs()); - } - if (fixedInputs_ != null) { - output.writeMessage(4, getFixedInputs()); - } - if (!getRoleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, role_); - } - if (labels_ != null) { - output.writeMessage(6, getLabels()); - } - if (annotations_ != null) { - output.writeMessage(7, getAnnotations()); - } - if (auth_ != null) { - output.writeMessage(8, getAuth()); - } - if (authRole_ != null) { - output.writeMessage(9, getAuthRole()); - } - if (qualityOfService_ != null) { - output.writeMessage(16, getQualityOfService()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workflowId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkflowId()); - } - if (entityMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEntityMetadata()); - } - if (defaultInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDefaultInputs()); - } - if (fixedInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getFixedInputs()); - } - if (!getRoleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, role_); - } - if (labels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getLabels()); - } - if (annotations_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getAnnotations()); - } - if (auth_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getAuth()); - } - if (authRole_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getAuthRole()); - } - if (qualityOfService_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getQualityOfService()); - } - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) obj; - - if (hasWorkflowId() != other.hasWorkflowId()) return false; - if (hasWorkflowId()) { - if (!getWorkflowId() - .equals(other.getWorkflowId())) return false; - } - if (hasEntityMetadata() != other.hasEntityMetadata()) return false; - if (hasEntityMetadata()) { - if (!getEntityMetadata() - .equals(other.getEntityMetadata())) return false; - } - if (hasDefaultInputs() != other.hasDefaultInputs()) return false; - if (hasDefaultInputs()) { - if (!getDefaultInputs() - .equals(other.getDefaultInputs())) return false; - } - if (hasFixedInputs() != other.hasFixedInputs()) return false; - if (hasFixedInputs()) { - if (!getFixedInputs() - .equals(other.getFixedInputs())) return false; - } - if (!getRole() - .equals(other.getRole())) return false; - if (hasLabels() != other.hasLabels()) return false; - if (hasLabels()) { - if (!getLabels() - .equals(other.getLabels())) return false; - } - if (hasAnnotations() != other.hasAnnotations()) return false; - if (hasAnnotations()) { - if (!getAnnotations() - .equals(other.getAnnotations())) return false; - } - if (hasAuth() != other.hasAuth()) return false; - if (hasAuth()) { - if (!getAuth() - .equals(other.getAuth())) return false; - } - if (hasAuthRole() != other.hasAuthRole()) return false; - if (hasAuthRole()) { - if (!getAuthRole() - .equals(other.getAuthRole())) return false; - } - if (hasQualityOfService() != other.hasQualityOfService()) return false; - if (hasQualityOfService()) { - if (!getQualityOfService() - .equals(other.getQualityOfService())) 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 (hasWorkflowId()) { - hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowId().hashCode(); - } - if (hasEntityMetadata()) { - hash = (37 * hash) + ENTITY_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getEntityMetadata().hashCode(); - } - if (hasDefaultInputs()) { - hash = (37 * hash) + DEFAULT_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getDefaultInputs().hashCode(); - } - if (hasFixedInputs()) { - hash = (37 * hash) + FIXED_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getFixedInputs().hashCode(); - } - hash = (37 * hash) + ROLE_FIELD_NUMBER; - hash = (53 * hash) + getRole().hashCode(); - if (hasLabels()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + getLabels().hashCode(); - } - if (hasAnnotations()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + getAnnotations().hashCode(); - } - if (hasAuth()) { - hash = (37 * hash) + AUTH_FIELD_NUMBER; - hash = (53 * hash) + getAuth().hashCode(); - } - if (hasAuthRole()) { - hash = (37 * hash) + AUTH_ROLE_FIELD_NUMBER; - hash = (53 * hash) + getAuthRole().hashCode(); - } - if (hasQualityOfService()) { - hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getQualityOfService().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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; - } - /** - *
-     * User-provided launch plan definition and configuration values.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanSpec) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.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 (workflowIdBuilder_ == null) { - workflowId_ = null; - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - if (entityMetadataBuilder_ == null) { - entityMetadata_ = null; - } else { - entityMetadata_ = null; - entityMetadataBuilder_ = null; - } - if (defaultInputsBuilder_ == null) { - defaultInputs_ = null; - } else { - defaultInputs_ = null; - defaultInputsBuilder_ = null; - } - if (fixedInputsBuilder_ == null) { - fixedInputs_ = null; - } else { - fixedInputs_ = null; - fixedInputsBuilder_ = null; - } - role_ = ""; - - if (labelsBuilder_ == null) { - labels_ = null; - } else { - labels_ = null; - labelsBuilder_ = null; - } - if (annotationsBuilder_ == null) { - annotations_ = null; - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - if (authBuilder_ == null) { - auth_ = null; - } else { - auth_ = null; - authBuilder_ = null; - } - if (authRoleBuilder_ == null) { - authRole_ = null; - } else { - authRole_ = null; - authRoleBuilder_ = null; - } - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(this); - if (workflowIdBuilder_ == null) { - result.workflowId_ = workflowId_; - } else { - result.workflowId_ = workflowIdBuilder_.build(); - } - if (entityMetadataBuilder_ == null) { - result.entityMetadata_ = entityMetadata_; - } else { - result.entityMetadata_ = entityMetadataBuilder_.build(); - } - if (defaultInputsBuilder_ == null) { - result.defaultInputs_ = defaultInputs_; - } else { - result.defaultInputs_ = defaultInputsBuilder_.build(); - } - if (fixedInputsBuilder_ == null) { - result.fixedInputs_ = fixedInputs_; - } else { - result.fixedInputs_ = fixedInputsBuilder_.build(); - } - result.role_ = role_; - if (labelsBuilder_ == null) { - result.labels_ = labels_; - } else { - result.labels_ = labelsBuilder_.build(); - } - if (annotationsBuilder_ == null) { - result.annotations_ = annotations_; - } else { - result.annotations_ = annotationsBuilder_.build(); - } - if (authBuilder_ == null) { - result.auth_ = auth_; - } else { - result.auth_ = authBuilder_.build(); - } - if (authRoleBuilder_ == null) { - result.authRole_ = authRole_; - } else { - result.authRole_ = authRoleBuilder_.build(); - } - if (qualityOfServiceBuilder_ == null) { - result.qualityOfService_ = qualityOfService_; - } else { - result.qualityOfService_ = qualityOfServiceBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance()) return this; - if (other.hasWorkflowId()) { - mergeWorkflowId(other.getWorkflowId()); - } - if (other.hasEntityMetadata()) { - mergeEntityMetadata(other.getEntityMetadata()); - } - if (other.hasDefaultInputs()) { - mergeDefaultInputs(other.getDefaultInputs()); - } - if (other.hasFixedInputs()) { - mergeFixedInputs(other.getFixedInputs()); - } - if (!other.getRole().isEmpty()) { - role_ = other.role_; - onChanged(); - } - if (other.hasLabels()) { - mergeLabels(other.getLabels()); - } - if (other.hasAnnotations()) { - mergeAnnotations(other.getAnnotations()); - } - if (other.hasAuth()) { - mergeAuth(other.getAuth()); - } - if (other.hasAuthRole()) { - mergeAuthRole(other.getAuthRole()); - } - if (other.hasQualityOfService()) { - mergeQualityOfService(other.getQualityOfService()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public boolean hasWorkflowId() { - return workflowIdBuilder_ != null || workflowId_ != null; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - if (workflowIdBuilder_ == null) { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } else { - return workflowIdBuilder_.getMessage(); - } - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflowId_ = value; - onChanged(); - } else { - workflowIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public Builder setWorkflowId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (workflowIdBuilder_ == null) { - workflowId_ = builderForValue.build(); - onChanged(); - } else { - workflowIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (workflowId_ != null) { - workflowId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); - } else { - workflowId_ = value; - } - onChanged(); - } else { - workflowIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public Builder clearWorkflowId() { - if (workflowIdBuilder_ == null) { - workflowId_ = null; - onChanged(); - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { - - onChanged(); - return getWorkflowIdFieldBuilder().getBuilder(); - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - if (workflowIdBuilder_ != null) { - return workflowIdBuilder_.getMessageOrBuilder(); - } else { - return workflowId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getWorkflowIdFieldBuilder() { - if (workflowIdBuilder_ == null) { - workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getWorkflowId(), - getParentForChildren(), - isClean()); - workflowId_ = null; - } - return workflowIdBuilder_; - } - - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> entityMetadataBuilder_; - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public boolean hasEntityMetadata() { - return entityMetadataBuilder_ != null || entityMetadata_ != null; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { - if (entityMetadataBuilder_ == null) { - return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; - } else { - return entityMetadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public Builder setEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { - if (entityMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entityMetadata_ = value; - onChanged(); - } else { - entityMetadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public Builder setEntityMetadata( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder builderForValue) { - if (entityMetadataBuilder_ == null) { - entityMetadata_ = builderForValue.build(); - onChanged(); - } else { - entityMetadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public Builder mergeEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { - if (entityMetadataBuilder_ == null) { - if (entityMetadata_ != null) { - entityMetadata_ = - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder(entityMetadata_).mergeFrom(value).buildPartial(); - } else { - entityMetadata_ = value; - } - onChanged(); - } else { - entityMetadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public Builder clearEntityMetadata() { - if (entityMetadataBuilder_ == null) { - entityMetadata_ = null; - onChanged(); - } else { - entityMetadata_ = null; - entityMetadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder getEntityMetadataBuilder() { - - onChanged(); - return getEntityMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { - if (entityMetadataBuilder_ != null) { - return entityMetadataBuilder_.getMessageOrBuilder(); - } else { - return entityMetadata_ == null ? - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; - } - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> - getEntityMetadataFieldBuilder() { - if (entityMetadataBuilder_ == null) { - entityMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder>( - getEntityMetadata(), - getParentForChildren(), - isClean()); - entityMetadata_ = null; - } - return entityMetadataBuilder_; - } - - private flyteidl.core.Interface.ParameterMap defaultInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> defaultInputsBuilder_; - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public boolean hasDefaultInputs() { - return defaultInputsBuilder_ != null || defaultInputs_ != null; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMap getDefaultInputs() { - if (defaultInputsBuilder_ == null) { - return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; - } else { - return defaultInputsBuilder_.getMessage(); - } - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public Builder setDefaultInputs(flyteidl.core.Interface.ParameterMap value) { - if (defaultInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultInputs_ = value; - onChanged(); - } else { - defaultInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public Builder setDefaultInputs( - flyteidl.core.Interface.ParameterMap.Builder builderForValue) { - if (defaultInputsBuilder_ == null) { - defaultInputs_ = builderForValue.build(); - onChanged(); - } else { - defaultInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public Builder mergeDefaultInputs(flyteidl.core.Interface.ParameterMap value) { - if (defaultInputsBuilder_ == null) { - if (defaultInputs_ != null) { - defaultInputs_ = - flyteidl.core.Interface.ParameterMap.newBuilder(defaultInputs_).mergeFrom(value).buildPartial(); - } else { - defaultInputs_ = value; - } - onChanged(); - } else { - defaultInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public Builder clearDefaultInputs() { - if (defaultInputsBuilder_ == null) { - defaultInputs_ = null; - onChanged(); - } else { - defaultInputs_ = null; - defaultInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMap.Builder getDefaultInputsBuilder() { - - onChanged(); - return getDefaultInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { - if (defaultInputsBuilder_ != null) { - return defaultInputsBuilder_.getMessageOrBuilder(); - } else { - return defaultInputs_ == null ? - flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; - } - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> - getDefaultInputsFieldBuilder() { - if (defaultInputsBuilder_ == null) { - defaultInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( - getDefaultInputs(), - getParentForChildren(), - isClean()); - defaultInputs_ = null; - } - return defaultInputsBuilder_; - } - - private flyteidl.core.Literals.LiteralMap fixedInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fixedInputsBuilder_; - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public boolean hasFixedInputs() { - return fixedInputsBuilder_ != null || fixedInputs_ != null; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMap getFixedInputs() { - if (fixedInputsBuilder_ == null) { - return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; - } else { - return fixedInputsBuilder_.getMessage(); - } - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public Builder setFixedInputs(flyteidl.core.Literals.LiteralMap value) { - if (fixedInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fixedInputs_ = value; - onChanged(); - } else { - fixedInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public Builder setFixedInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (fixedInputsBuilder_ == null) { - fixedInputs_ = builderForValue.build(); - onChanged(); - } else { - fixedInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public Builder mergeFixedInputs(flyteidl.core.Literals.LiteralMap value) { - if (fixedInputsBuilder_ == null) { - if (fixedInputs_ != null) { - fixedInputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(fixedInputs_).mergeFrom(value).buildPartial(); - } else { - fixedInputs_ = value; - } - onChanged(); - } else { - fixedInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public Builder clearFixedInputs() { - if (fixedInputsBuilder_ == null) { - fixedInputs_ = null; - onChanged(); - } else { - fixedInputs_ = null; - fixedInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMap.Builder getFixedInputsBuilder() { - - onChanged(); - return getFixedInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { - if (fixedInputsBuilder_ != null) { - return fixedInputsBuilder_.getMessageOrBuilder(); - } else { - return fixedInputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; - } - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getFixedInputsFieldBuilder() { - if (fixedInputsBuilder_ == null) { - fixedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getFixedInputs(), - getParentForChildren(), - isClean()); - fixedInputs_ = null; - } - return fixedInputsBuilder_; - } - - private java.lang.Object role_ = ""; - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getRole() { - java.lang.Object ref = role_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - role_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - role_ = value; - onChanged(); - return this; - } - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearRole() { - - role_ = getDefaultInstance().getRole(); - onChanged(); - return this; - } - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - role_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Labels labels_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public boolean hasLabels() { - return labelsBuilder_ != null || labels_ != null; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.Labels getLabels() { - if (labelsBuilder_ == null) { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } else { - return labelsBuilder_.getMessage(); - } - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public Builder setLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - labels_ = value; - onChanged(); - } else { - labelsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public Builder setLabels( - flyteidl.admin.Common.Labels.Builder builderForValue) { - if (labelsBuilder_ == null) { - labels_ = builderForValue.build(); - onChanged(); - } else { - labelsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public Builder mergeLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (labels_ != null) { - labels_ = - flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); - } else { - labels_ = value; - } - onChanged(); - } else { - labelsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public Builder clearLabels() { - if (labelsBuilder_ == null) { - labels_ = null; - onChanged(); - } else { - labels_ = null; - labelsBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { - - onChanged(); - return getLabelsFieldBuilder().getBuilder(); - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - if (labelsBuilder_ != null) { - return labelsBuilder_.getMessageOrBuilder(); - } else { - return labels_ == null ? - flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> - getLabelsFieldBuilder() { - if (labelsBuilder_ == null) { - labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( - getLabels(), - getParentForChildren(), - isClean()); - labels_ = null; - } - return labelsBuilder_; - } - - private flyteidl.admin.Common.Annotations annotations_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public boolean hasAnnotations() { - return annotationsBuilder_ != null || annotations_ != null; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - if (annotationsBuilder_ == null) { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } else { - return annotationsBuilder_.getMessage(); - } - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - annotations_ = value; - onChanged(); - } else { - annotationsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public Builder setAnnotations( - flyteidl.admin.Common.Annotations.Builder builderForValue) { - if (annotationsBuilder_ == null) { - annotations_ = builderForValue.build(); - onChanged(); - } else { - annotationsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (annotations_ != null) { - annotations_ = - flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); - } else { - annotations_ = value; - } - onChanged(); - } else { - annotationsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public Builder clearAnnotations() { - if (annotationsBuilder_ == null) { - annotations_ = null; - onChanged(); - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { - - onChanged(); - return getAnnotationsFieldBuilder().getBuilder(); - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - if (annotationsBuilder_ != null) { - return annotationsBuilder_.getMessageOrBuilder(); - } else { - return annotations_ == null ? - flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> - getAnnotationsFieldBuilder() { - if (annotationsBuilder_ == null) { - annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( - getAnnotations(), - getParentForChildren(), - isClean()); - annotations_ = null; - } - return annotationsBuilder_; - } - - private flyteidl.admin.LaunchPlanOuterClass.Auth auth_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> authBuilder_; - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasAuth() { - return authBuilder_ != null || auth_ != null; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { - if (authBuilder_ == null) { - return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; - } else { - return authBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { - if (authBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - auth_ = value; - onChanged(); - } else { - authBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAuth( - flyteidl.admin.LaunchPlanOuterClass.Auth.Builder builderForValue) { - if (authBuilder_ == null) { - auth_ = builderForValue.build(); - onChanged(); - } else { - authBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { - if (authBuilder_ == null) { - if (auth_ != null) { - auth_ = - flyteidl.admin.LaunchPlanOuterClass.Auth.newBuilder(auth_).mergeFrom(value).buildPartial(); - } else { - auth_ = value; - } - onChanged(); - } else { - authBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearAuth() { - if (authBuilder_ == null) { - auth_ = null; - onChanged(); - } else { - auth_ = null; - authBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth.Builder getAuthBuilder() { - - onChanged(); - return getAuthFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { - if (authBuilder_ != null) { - return authBuilder_.getMessageOrBuilder(); - } else { - return auth_ == null ? - flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; - } - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> - getAuthFieldBuilder() { - if (authBuilder_ == null) { - authBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder>( - getAuth(), - getParentForChildren(), - isClean()); - auth_ = null; - } - return authBuilder_; - } - - private flyteidl.admin.Common.AuthRole authRole_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> authRoleBuilder_; - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public boolean hasAuthRole() { - return authRoleBuilder_ != null || authRole_ != null; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public flyteidl.admin.Common.AuthRole getAuthRole() { - if (authRoleBuilder_ == null) { - return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } else { - return authRoleBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public Builder setAuthRole(flyteidl.admin.Common.AuthRole value) { - if (authRoleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authRole_ = value; - onChanged(); - } else { - authRoleBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public Builder setAuthRole( - flyteidl.admin.Common.AuthRole.Builder builderForValue) { - if (authRoleBuilder_ == null) { - authRole_ = builderForValue.build(); - onChanged(); - } else { - authRoleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public Builder mergeAuthRole(flyteidl.admin.Common.AuthRole value) { - if (authRoleBuilder_ == null) { - if (authRole_ != null) { - authRole_ = - flyteidl.admin.Common.AuthRole.newBuilder(authRole_).mergeFrom(value).buildPartial(); - } else { - authRole_ = value; - } - onChanged(); - } else { - authRoleBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public Builder clearAuthRole() { - if (authRoleBuilder_ == null) { - authRole_ = null; - onChanged(); - } else { - authRole_ = null; - authRoleBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public flyteidl.admin.Common.AuthRole.Builder getAuthRoleBuilder() { - - onChanged(); - return getAuthRoleFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { - if (authRoleBuilder_ != null) { - return authRoleBuilder_.getMessageOrBuilder(); - } else { - return authRole_ == null ? - flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } - } - /** - * .flyteidl.admin.AuthRole auth_role = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> - getAuthRoleFieldBuilder() { - if (authRoleBuilder_ == null) { - authRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder>( - getAuthRole(), - getParentForChildren(), - isClean()); - authRole_ = null; - } - return authRoleBuilder_; - } - - private flyteidl.core.Execution.QualityOfService qualityOfService_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public boolean hasQualityOfService() { - return qualityOfServiceBuilder_ != null || qualityOfService_ != null; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } else { - return qualityOfServiceBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qualityOfService_ = value; - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public Builder setQualityOfService( - flyteidl.core.Execution.QualityOfService.Builder builderForValue) { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = builderForValue.build(); - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (qualityOfService_ != null) { - qualityOfService_ = - flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); - } else { - qualityOfService_ = value; - } - onChanged(); - } else { - qualityOfServiceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public Builder clearQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - onChanged(); - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { - - onChanged(); - return getQualityOfServiceFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if (qualityOfServiceBuilder_ != null) { - return qualityOfServiceBuilder_.getMessageOrBuilder(); - } else { - return qualityOfService_ == null ? - flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - } - /** - *
-       * Indicates the runtime priority of the execution. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> - getQualityOfServiceFieldBuilder() { - if (qualityOfServiceBuilder_ == null) { - qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( - getQualityOfService(), - getParentForChildren(), - isClean()); - qualityOfService_ = null; - } - return qualityOfServiceBuilder_; - } - @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:flyteidl.admin.LaunchPlanSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanSpec) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanSpec(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicate the Launch plan phase
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - int getStateValue(); - /** - *
-     * Indicate the Launch plan phase
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); - - /** - *
-     * Indicates the set of inputs to execute the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - boolean hasExpectedInputs(); - /** - *
-     * Indicates the set of inputs to execute the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - flyteidl.core.Interface.ParameterMap getExpectedInputs(); - /** - *
-     * Indicates the set of inputs to execute the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder(); - - /** - *
-     * Indicates the set of outputs from the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - boolean hasExpectedOutputs(); - /** - *
-     * Indicates the set of outputs from the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - flyteidl.core.Interface.VariableMap getExpectedOutputs(); - /** - *
-     * Indicates the set of outputs from the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder(); - - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - boolean hasUpdatedAt(); - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - com.google.protobuf.Timestamp getUpdatedAt(); - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); - } - /** - *
-   * Values computed by the flyte platform after launch plan registration.
-   * These include expected_inputs required to be present in a CreateExecutionRequest
-   * to launch the reference workflow as well timestamp values associated with the launch plan.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} - */ - public static final class LaunchPlanClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanClosure) - LaunchPlanClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanClosure.newBuilder() to construct. - private LaunchPlanClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanClosure() { - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanClosure( - 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 8: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 18: { - flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; - if (expectedInputs_ != null) { - subBuilder = expectedInputs_.toBuilder(); - } - expectedInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expectedInputs_); - expectedInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Interface.VariableMap.Builder subBuilder = null; - if (expectedOutputs_ != null) { - subBuilder = expectedOutputs_.toBuilder(); - } - expectedOutputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expectedOutputs_); - expectedOutputs_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - 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 42: { - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - *
-     * Indicate the Launch plan phase
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * Indicate the Launch plan phase
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); - return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; - } - - public static final int EXPECTED_INPUTS_FIELD_NUMBER = 2; - private flyteidl.core.Interface.ParameterMap expectedInputs_; - /** - *
-     * Indicates the set of inputs to execute the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public boolean hasExpectedInputs() { - return expectedInputs_ != null; - } - /** - *
-     * Indicates the set of inputs to execute the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMap getExpectedInputs() { - return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; - } - /** - *
-     * Indicates the set of inputs to execute the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { - return getExpectedInputs(); - } - - public static final int EXPECTED_OUTPUTS_FIELD_NUMBER = 3; - private flyteidl.core.Interface.VariableMap expectedOutputs_; - /** - *
-     * Indicates the set of outputs from the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public boolean hasExpectedOutputs() { - return expectedOutputs_ != null; - } - /** - *
-     * Indicates the set of outputs from the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMap getExpectedOutputs() { - return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; - } - /** - *
-     * Indicates the set of outputs from the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { - return getExpectedOutputs(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - public static final int UPDATED_AT_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp updatedAt_; - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public boolean hasUpdatedAt() { - return updatedAt_ != null; - } - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - 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 (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { - output.writeEnum(1, state_); - } - if (expectedInputs_ != null) { - output.writeMessage(2, getExpectedInputs()); - } - if (expectedOutputs_ != null) { - output.writeMessage(3, getExpectedOutputs()); - } - if (createdAt_ != null) { - output.writeMessage(4, getCreatedAt()); - } - if (updatedAt_ != null) { - output.writeMessage(5, getUpdatedAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); - } - if (expectedInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpectedInputs()); - } - if (expectedOutputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getExpectedOutputs()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreatedAt()); - } - if (updatedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) obj; - - if (state_ != other.state_) return false; - if (hasExpectedInputs() != other.hasExpectedInputs()) return false; - if (hasExpectedInputs()) { - if (!getExpectedInputs() - .equals(other.getExpectedInputs())) return false; - } - if (hasExpectedOutputs() != other.hasExpectedOutputs()) return false; - if (hasExpectedOutputs()) { - if (!getExpectedOutputs() - .equals(other.getExpectedOutputs())) 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) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasExpectedInputs()) { - hash = (37 * hash) + EXPECTED_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getExpectedInputs().hashCode(); - } - if (hasExpectedOutputs()) { - hash = (37 * hash) + EXPECTED_OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getExpectedOutputs().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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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; - } - /** - *
-     * Values computed by the flyte platform after launch plan registration.
-     * These include expected_inputs required to be present in a CreateExecutionRequest
-     * to launch the reference workflow as well timestamp values associated with the launch plan.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanClosure) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.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(); - state_ = 0; - - if (expectedInputsBuilder_ == null) { - expectedInputs_ = null; - } else { - expectedInputs_ = null; - expectedInputsBuilder_ = null; - } - if (expectedOutputsBuilder_ == null) { - expectedOutputs_ = null; - } else { - expectedOutputs_ = null; - expectedOutputsBuilder_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(this); - result.state_ = state_; - if (expectedInputsBuilder_ == null) { - result.expectedInputs_ = expectedInputs_; - } else { - result.expectedInputs_ = expectedInputsBuilder_.build(); - } - if (expectedOutputsBuilder_ == null) { - result.expectedOutputs_ = expectedOutputs_; - } else { - result.expectedOutputs_ = expectedOutputsBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance()) return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasExpectedInputs()) { - mergeExpectedInputs(other.getExpectedInputs()); - } - if (other.hasExpectedOutputs()) { - mergeExpectedOutputs(other.getExpectedOutputs()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int state_ = 0; - /** - *
-       * Indicate the Launch plan phase
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-       * Indicate the Launch plan phase
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicate the Launch plan phase
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); - return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; - } - /** - *
-       * Indicate the Launch plan phase
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Indicate the Launch plan phase
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Interface.ParameterMap expectedInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> expectedInputsBuilder_; - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public boolean hasExpectedInputs() { - return expectedInputsBuilder_ != null || expectedInputs_ != null; - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMap getExpectedInputs() { - if (expectedInputsBuilder_ == null) { - return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; - } else { - return expectedInputsBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public Builder setExpectedInputs(flyteidl.core.Interface.ParameterMap value) { - if (expectedInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expectedInputs_ = value; - onChanged(); - } else { - expectedInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public Builder setExpectedInputs( - flyteidl.core.Interface.ParameterMap.Builder builderForValue) { - if (expectedInputsBuilder_ == null) { - expectedInputs_ = builderForValue.build(); - onChanged(); - } else { - expectedInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public Builder mergeExpectedInputs(flyteidl.core.Interface.ParameterMap value) { - if (expectedInputsBuilder_ == null) { - if (expectedInputs_ != null) { - expectedInputs_ = - flyteidl.core.Interface.ParameterMap.newBuilder(expectedInputs_).mergeFrom(value).buildPartial(); - } else { - expectedInputs_ = value; - } - onChanged(); - } else { - expectedInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public Builder clearExpectedInputs() { - if (expectedInputsBuilder_ == null) { - expectedInputs_ = null; - onChanged(); - } else { - expectedInputs_ = null; - expectedInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMap.Builder getExpectedInputsBuilder() { - - onChanged(); - return getExpectedInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { - if (expectedInputsBuilder_ != null) { - return expectedInputsBuilder_.getMessageOrBuilder(); - } else { - return expectedInputs_ == null ? - flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; - } - } - /** - *
-       * Indicates the set of inputs to execute the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> - getExpectedInputsFieldBuilder() { - if (expectedInputsBuilder_ == null) { - expectedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( - getExpectedInputs(), - getParentForChildren(), - isClean()); - expectedInputs_ = null; - } - return expectedInputsBuilder_; - } - - private flyteidl.core.Interface.VariableMap expectedOutputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> expectedOutputsBuilder_; - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public boolean hasExpectedOutputs() { - return expectedOutputsBuilder_ != null || expectedOutputs_ != null; - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMap getExpectedOutputs() { - if (expectedOutputsBuilder_ == null) { - return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; - } else { - return expectedOutputsBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public Builder setExpectedOutputs(flyteidl.core.Interface.VariableMap value) { - if (expectedOutputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expectedOutputs_ = value; - onChanged(); - } else { - expectedOutputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public Builder setExpectedOutputs( - flyteidl.core.Interface.VariableMap.Builder builderForValue) { - if (expectedOutputsBuilder_ == null) { - expectedOutputs_ = builderForValue.build(); - onChanged(); - } else { - expectedOutputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public Builder mergeExpectedOutputs(flyteidl.core.Interface.VariableMap value) { - if (expectedOutputsBuilder_ == null) { - if (expectedOutputs_ != null) { - expectedOutputs_ = - flyteidl.core.Interface.VariableMap.newBuilder(expectedOutputs_).mergeFrom(value).buildPartial(); - } else { - expectedOutputs_ = value; - } - onChanged(); - } else { - expectedOutputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public Builder clearExpectedOutputs() { - if (expectedOutputsBuilder_ == null) { - expectedOutputs_ = null; - onChanged(); - } else { - expectedOutputs_ = null; - expectedOutputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMap.Builder getExpectedOutputsBuilder() { - - onChanged(); - return getExpectedOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { - if (expectedOutputsBuilder_ != null) { - return expectedOutputsBuilder_.getMessageOrBuilder(); - } else { - return expectedOutputs_ == null ? - flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; - } - } - /** - *
-       * Indicates the set of outputs from the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> - getExpectedOutputsFieldBuilder() { - if (expectedOutputsBuilder_ == null) { - expectedOutputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( - getExpectedOutputs(), - getParentForChildren(), - isClean()); - expectedOutputs_ = null; - } - return expectedOutputsBuilder_; - } - - 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_; - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - 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; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - 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; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - 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_; - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public boolean hasUpdatedAt() { - return updatedAtBuilder_ != null || updatedAt_ != null; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - if (updatedAtBuilder_ == null) { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } else { - return updatedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - 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; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public Builder setUpdatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updatedAtBuilder_ == null) { - updatedAt_ = builderForValue.build(); - onChanged(); - } else { - updatedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - 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; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public Builder clearUpdatedAt() { - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - onChanged(); - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { - - onChanged(); - return getUpdatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - if (updatedAtBuilder_ != null) { - return updatedAtBuilder_.getMessageOrBuilder(); - } else { - return updatedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - 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:flyteidl.admin.LaunchPlanClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanClosure) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanClosure(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - boolean hasSchedule(); - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - flyteidl.admin.ScheduleOuterClass.Schedule getSchedule(); - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder(); - - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - java.util.List - getNotificationsList(); - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - flyteidl.admin.Common.Notification getNotifications(int index); - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - int getNotificationsCount(); - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - java.util.List - getNotificationsOrBuilderList(); - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index); - } - /** - *
-   * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
-   * the reference workflow.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} - */ - public static final class LaunchPlanMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanMetadata) - LaunchPlanMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanMetadata.newBuilder() to construct. - private LaunchPlanMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanMetadata() { - notifications_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanMetadata( - 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: { - flyteidl.admin.ScheduleOuterClass.Schedule.Builder subBuilder = null; - if (schedule_ != null) { - subBuilder = schedule_.toBuilder(); - } - schedule_ = input.readMessage(flyteidl.admin.ScheduleOuterClass.Schedule.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schedule_); - schedule_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - notifications_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - notifications_.add( - input.readMessage(flyteidl.admin.Common.Notification.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_ & 0x00000002) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); - } - - private int bitField0_; - public static final int SCHEDULE_FIELD_NUMBER = 1; - private flyteidl.admin.ScheduleOuterClass.Schedule schedule_; - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public boolean hasSchedule() { - return schedule_ != null; - } - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { - return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; - } - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { - return getSchedule(); - } - - public static final int NOTIFICATIONS_FIELD_NUMBER = 2; - private java.util.List notifications_; - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List getNotificationsList() { - return notifications_; - } - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List - getNotificationsOrBuilderList() { - return notifications_; - } - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public int getNotificationsCount() { - return notifications_.size(); - } - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - return notifications_.get(index); - } - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - return notifications_.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 (schedule_ != null) { - output.writeMessage(1, getSchedule()); - } - for (int i = 0; i < notifications_.size(); i++) { - output.writeMessage(2, notifications_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (schedule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSchedule()); - } - for (int i = 0; i < notifications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, notifications_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) obj; - - if (hasSchedule() != other.hasSchedule()) return false; - if (hasSchedule()) { - if (!getSchedule() - .equals(other.getSchedule())) return false; - } - if (!getNotificationsList() - .equals(other.getNotificationsList())) 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 (hasSchedule()) { - hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + getSchedule().hashCode(); - } - if (getNotificationsCount() > 0) { - hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getNotificationsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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; - } - /** - *
-     * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
-     * the reference workflow.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanMetadata) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNotificationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (scheduleBuilder_ == null) { - schedule_ = null; - } else { - schedule_ = null; - scheduleBuilder_ = null; - } - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - notificationsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (scheduleBuilder_ == null) { - result.schedule_ = schedule_; - } else { - result.schedule_ = scheduleBuilder_.build(); - } - if (notificationsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.notifications_ = notifications_; - } else { - result.notifications_ = notificationsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance()) return this; - if (other.hasSchedule()) { - mergeSchedule(other.getSchedule()); - } - if (notificationsBuilder_ == null) { - if (!other.notifications_.isEmpty()) { - if (notifications_.isEmpty()) { - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureNotificationsIsMutable(); - notifications_.addAll(other.notifications_); - } - onChanged(); - } - } else { - if (!other.notifications_.isEmpty()) { - if (notificationsBuilder_.isEmpty()) { - notificationsBuilder_.dispose(); - notificationsBuilder_ = null; - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000002); - notificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNotificationsFieldBuilder() : null; - } else { - notificationsBuilder_.addAllMessages(other.notifications_); - } - } - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.admin.ScheduleOuterClass.Schedule schedule_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> scheduleBuilder_; - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public boolean hasSchedule() { - return scheduleBuilder_ != null || schedule_ != null; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { - if (scheduleBuilder_ == null) { - return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; - } else { - return scheduleBuilder_.getMessage(); - } - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public Builder setSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { - if (scheduleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - schedule_ = value; - onChanged(); - } else { - scheduleBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public Builder setSchedule( - flyteidl.admin.ScheduleOuterClass.Schedule.Builder builderForValue) { - if (scheduleBuilder_ == null) { - schedule_ = builderForValue.build(); - onChanged(); - } else { - scheduleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public Builder mergeSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { - if (scheduleBuilder_ == null) { - if (schedule_ != null) { - schedule_ = - flyteidl.admin.ScheduleOuterClass.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); - } else { - schedule_ = value; - } - onChanged(); - } else { - scheduleBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public Builder clearSchedule() { - if (scheduleBuilder_ == null) { - schedule_ = null; - onChanged(); - } else { - schedule_ = null; - scheduleBuilder_ = null; - } - - return this; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.Schedule.Builder getScheduleBuilder() { - - onChanged(); - return getScheduleFieldBuilder().getBuilder(); - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { - if (scheduleBuilder_ != null) { - return scheduleBuilder_.getMessageOrBuilder(); - } else { - return schedule_ == null ? - flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; - } - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> - getScheduleFieldBuilder() { - if (scheduleBuilder_ == null) { - scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder>( - getSchedule(), - getParentForChildren(), - isClean()); - schedule_ = null; - } - return scheduleBuilder_; - } - - private java.util.List notifications_ = - java.util.Collections.emptyList(); - private void ensureNotificationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - notifications_ = new java.util.ArrayList(notifications_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; - - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List getNotificationsList() { - if (notificationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(notifications_); - } else { - return notificationsBuilder_.getMessageList(); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public int getNotificationsCount() { - if (notificationsBuilder_ == null) { - return notifications_.size(); - } else { - return notificationsBuilder_.getCount(); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); - } else { - return notificationsBuilder_.getMessage(index); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.set(index, value); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.set(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addNotifications(flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(value); - onChanged(); - } else { - notificationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(index, value); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addNotifications( - flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addAllNotifications( - java.lang.Iterable values) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notifications_); - onChanged(); - } else { - notificationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder clearNotifications() { - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - notificationsBuilder_.clear(); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder removeNotifications(int index) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.remove(index); - onChanged(); - } else { - notificationsBuilder_.remove(index); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().getBuilder(index); - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); } else { - return notificationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List - getNotificationsOrBuilderList() { - if (notificationsBuilder_ != null) { - return notificationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(notifications_); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { - return getNotificationsFieldBuilder().addBuilder( - flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().addBuilder( - index, flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List - getNotificationsBuilderList() { - return getNotificationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> - getNotificationsFieldBuilder() { - if (notificationsBuilder_ == null) { - notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( - notifications_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - notifications_ = null; - } - return notificationsBuilder_; - } - @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:flyteidl.admin.LaunchPlanMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanMetadata) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanMetadata(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identifier of launch plan for which to change state.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * Identifier of launch plan for which to change state.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * Identifier of launch plan for which to change state.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Desired state to apply to the launch plan.
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - int getStateValue(); - /** - *
-     * Desired state to apply to the launch plan.
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); - } - /** - *
-   * Request to set the referenced launch plan state to the configured value.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} - */ - public static final class LaunchPlanUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateRequest) - LaunchPlanUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanUpdateRequest.newBuilder() to construct. - private LaunchPlanUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanUpdateRequest() { - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanUpdateRequest( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * Identifier of launch plan for which to change state.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Identifier of launch plan for which to change state.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * Identifier of launch plan for which to change state.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_; - /** - *
-     * Desired state to apply to the launch plan.
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * Desired state to apply to the launch plan.
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); - return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; - } - - 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 (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { - output.writeEnum(2, state_); - } - 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 (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); - } - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (state_ != other.state_) 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) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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; - } - /** - *
-     * Request to set the referenced launch plan state to the configured value.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateRequest) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - state_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.state_ = state_; - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private int state_ = 0; - /** - *
-       * Desired state to apply to the launch plan.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-       * Desired state to apply to the launch plan.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-       * Desired state to apply to the launch plan.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); - return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; - } - /** - *
-       * Desired state to apply to the launch plan.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Desired state to apply to the launch plan.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public Builder clearState() { - - state_ = 0; - 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:flyteidl.admin.LaunchPlanUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateRequest) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanUpdateRequest(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} - */ - public static final class LaunchPlanUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateResponse) - LaunchPlanUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanUpdateResponse.newBuilder() to construct. - private LaunchPlanUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanUpdateResponse( - 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; - 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateResponse) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(this); - 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.LaunchPlanUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateResponse) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanUpdateResponse(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActiveLaunchPlanRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ActiveLaunchPlanRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - boolean hasId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier
-   * 
- * - * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanRequest} - */ - public static final class ActiveLaunchPlanRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ActiveLaunchPlanRequest) - ActiveLaunchPlanRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ActiveLaunchPlanRequest.newBuilder() to construct. - private ActiveLaunchPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ActiveLaunchPlanRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActiveLaunchPlanRequest( - 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: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest other = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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; - } - /** - *
-     * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier
-     * 
- * - * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ActiveLaunchPlanRequest) - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest build() { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest result = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.ActiveLaunchPlanRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanRequest) - private static final flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActiveLaunchPlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActiveLaunchPlanRequest(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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActiveLaunchPlanListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ActiveLaunchPlanListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 3; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to list active launch plans within a project/domain.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanListRequest} - */ - public static final class ActiveLaunchPlanListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ActiveLaunchPlanListRequest) - ActiveLaunchPlanListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ActiveLaunchPlanListRequest.newBuilder() to construct. - private ActiveLaunchPlanListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ActiveLaunchPlanListRequest() { - project_ = ""; - domain_ = ""; - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActiveLaunchPlanListRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 24: { - - limit_ = input.readUInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project that contains the identifiers.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LIMIT_FIELD_NUMBER = 3; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (limit_ != 0) { - output.writeUInt32(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest other = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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; - } - /** - *
-     * Represents a request structure to list active launch plans within a project/domain.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ActiveLaunchPlanListRequest) - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.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(); - project_ = ""; - - domain_ = ""; - - limit_ = 0; - - token_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest build() { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest result = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.limit_ = limit_; - result.token_ = token_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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 { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 3; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 3; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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:flyteidl.admin.ActiveLaunchPlanListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanListRequest) - private static final flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActiveLaunchPlanListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActiveLaunchPlanListRequest(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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlan_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Auth_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Auth_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_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 flyteidl/admin/launch_plan.proto\022\016flyt" + - "eidl.admin\032\035flyteidl/core/execution.prot" + - "o\032\034flyteidl/core/literals.proto\032\036flyteid" + - "l/core/identifier.proto\032\035flyteidl/core/i" + - "nterface.proto\032\035flyteidl/admin/schedule." + - "proto\032\033flyteidl/admin/common.proto\032\037goog" + - "le/protobuf/timestamp.proto\"n\n\027LaunchPla" + - "nCreateRequest\022%\n\002id\030\001 \001(\0132\031.flyteidl.co" + - "re.Identifier\022,\n\004spec\030\002 \001(\0132\036.flyteidl.a" + - "dmin.LaunchPlanSpec\"\032\n\030LaunchPlanCreateR" + - "esponse\"\225\001\n\nLaunchPlan\022%\n\002id\030\001 \001(\0132\031.fly" + - "teidl.core.Identifier\022,\n\004spec\030\002 \001(\0132\036.fl" + - "yteidl.admin.LaunchPlanSpec\0222\n\007closure\030\003" + - " \001(\0132!.flyteidl.admin.LaunchPlanClosure\"" + - "Q\n\016LaunchPlanList\0220\n\014launch_plans\030\001 \003(\0132" + - "\032.flyteidl.admin.LaunchPlan\022\r\n\005token\030\002 \001" + - "(\t\"T\n\004Auth\022\034\n\022assumable_iam_role\030\001 \001(\tH\000" + - "\022$\n\032kubernetes_service_account\030\002 \001(\tH\000B\010" + - "\n\006method\"\341\003\n\016LaunchPlanSpec\022.\n\013workflow_" + - "id\030\001 \001(\0132\031.flyteidl.core.Identifier\022;\n\017e" + - "ntity_metadata\030\002 \001(\0132\".flyteidl.admin.La" + - "unchPlanMetadata\0223\n\016default_inputs\030\003 \001(\013" + - "2\033.flyteidl.core.ParameterMap\022/\n\014fixed_i" + - "nputs\030\004 \001(\0132\031.flyteidl.core.LiteralMap\022\020" + - "\n\004role\030\005 \001(\tB\002\030\001\022&\n\006labels\030\006 \001(\0132\026.flyte" + - "idl.admin.Labels\0220\n\013annotations\030\007 \001(\0132\033." + - "flyteidl.admin.Annotations\022&\n\004auth\030\010 \001(\013" + - "2\024.flyteidl.admin.AuthB\002\030\001\022+\n\tauth_role\030" + - "\t \001(\0132\030.flyteidl.admin.AuthRole\022;\n\022quali" + - "ty_of_service\030\020 \001(\0132\037.flyteidl.core.Qual" + - "ityOfService\"\217\002\n\021LaunchPlanClosure\022.\n\005st" + - "ate\030\001 \001(\0162\037.flyteidl.admin.LaunchPlanSta" + - "te\0224\n\017expected_inputs\030\002 \001(\0132\033.flyteidl.c" + - "ore.ParameterMap\0224\n\020expected_outputs\030\003 \001" + - "(\0132\032.flyteidl.core.VariableMap\022.\n\ncreate" + - "d_at\030\004 \001(\0132\032.google.protobuf.Timestamp\022." + - "\n\nupdated_at\030\005 \001(\0132\032.google.protobuf.Tim" + - "estamp\"u\n\022LaunchPlanMetadata\022*\n\010schedule" + - "\030\001 \001(\0132\030.flyteidl.admin.Schedule\0223\n\rnoti" + - "fications\030\002 \003(\0132\034.flyteidl.admin.Notific" + - "ation\"p\n\027LaunchPlanUpdateRequest\022%\n\002id\030\001" + - " \001(\0132\031.flyteidl.core.Identifier\022.\n\005state" + - "\030\002 \001(\0162\037.flyteidl.admin.LaunchPlanState\"" + - "\032\n\030LaunchPlanUpdateResponse\"L\n\027ActiveLau" + - "nchPlanRequest\0221\n\002id\030\001 \001(\0132%.flyteidl.ad" + - "min.NamedEntityIdentifier\"\203\001\n\033ActiveLaun" + - "chPlanListRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006do" + - "main\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t" + - "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort*" + - "+\n\017LaunchPlanState\022\014\n\010INACTIVE\020\000\022\n\n\006ACTI" + - "VE\020\001B3Z1github.com/lyft/flyteidl/gen/pb-" + - "go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Interface.getDescriptor(), - flyteidl.admin.ScheduleOuterClass.getDescriptor(), - flyteidl.admin.Common.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor, - new java.lang.String[] { "Id", "Spec", }); - internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_LaunchPlan_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlan_descriptor, - new java.lang.String[] { "Id", "Spec", "Closure", }); - internal_static_flyteidl_admin_LaunchPlanList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanList_descriptor, - new java.lang.String[] { "LaunchPlans", "Token", }); - internal_static_flyteidl_admin_Auth_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_Auth_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Auth_descriptor, - new java.lang.String[] { "AssumableIamRole", "KubernetesServiceAccount", "Method", }); - internal_static_flyteidl_admin_LaunchPlanSpec_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanSpec_descriptor, - new java.lang.String[] { "WorkflowId", "EntityMetadata", "DefaultInputs", "FixedInputs", "Role", "Labels", "Annotations", "Auth", "AuthRole", "QualityOfService", }); - internal_static_flyteidl_admin_LaunchPlanClosure_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanClosure_descriptor, - new java.lang.String[] { "State", "ExpectedInputs", "ExpectedOutputs", "CreatedAt", "UpdatedAt", }); - internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor, - new java.lang.String[] { "Schedule", "Notifications", }); - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor, - new java.lang.String[] { "Id", "State", }); - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Limit", "Token", "SortBy", }); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Interface.getDescriptor(); - flyteidl.admin.ScheduleOuterClass.getDescriptor(); - flyteidl.admin.Common.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java b/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java deleted file mode 100644 index 80d6676fa..000000000 --- a/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java +++ /dev/null @@ -1,8238 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/matchable_resource.proto - -package flyteidl.admin; - -public final class MatchableResourceOuterClass { - private MatchableResourceOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes
-   * based on matching tags.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.MatchableResource} - */ - public enum MatchableResource - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Applies to customizable task resource requests and limits.
-     * 
- * - * TASK_RESOURCE = 0; - */ - TASK_RESOURCE(0), - /** - *
-     * Applies to configuring templated kubernetes cluster resources.
-     * 
- * - * CLUSTER_RESOURCE = 1; - */ - CLUSTER_RESOURCE(1), - /** - *
-     * Configures task and dynamic task execution queue assignment.
-     * 
- * - * EXECUTION_QUEUE = 2; - */ - EXECUTION_QUEUE(2), - /** - *
-     * Configures the K8s cluster label to be used for execution to be run
-     * 
- * - * EXECUTION_CLUSTER_LABEL = 3; - */ - EXECUTION_CLUSTER_LABEL(3), - /** - *
-     * Configures default quality of service when undefined in an execution spec.
-     * 
- * - * QUALITY_OF_SERVICE_SPECIFICATION = 4; - */ - QUALITY_OF_SERVICE_SPECIFICATION(4), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Applies to customizable task resource requests and limits.
-     * 
- * - * TASK_RESOURCE = 0; - */ - public static final int TASK_RESOURCE_VALUE = 0; - /** - *
-     * Applies to configuring templated kubernetes cluster resources.
-     * 
- * - * CLUSTER_RESOURCE = 1; - */ - public static final int CLUSTER_RESOURCE_VALUE = 1; - /** - *
-     * Configures task and dynamic task execution queue assignment.
-     * 
- * - * EXECUTION_QUEUE = 2; - */ - public static final int EXECUTION_QUEUE_VALUE = 2; - /** - *
-     * Configures the K8s cluster label to be used for execution to be run
-     * 
- * - * EXECUTION_CLUSTER_LABEL = 3; - */ - public static final int EXECUTION_CLUSTER_LABEL_VALUE = 3; - /** - *
-     * Configures default quality of service when undefined in an execution spec.
-     * 
- * - * QUALITY_OF_SERVICE_SPECIFICATION = 4; - */ - public static final int QUALITY_OF_SERVICE_SPECIFICATION_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MatchableResource valueOf(int value) { - return forNumber(value); - } - - public static MatchableResource forNumber(int value) { - switch (value) { - case 0: return TASK_RESOURCE; - case 1: return CLUSTER_RESOURCE; - case 2: return EXECUTION_QUEUE; - case 3: return EXECUTION_CLUSTER_LABEL; - case 4: return QUALITY_OF_SERVICE_SPECIFICATION; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MatchableResource> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MatchableResource findValueByNumber(int number) { - return MatchableResource.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.admin.MatchableResourceOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final MatchableResource[] VALUES = values(); - - public static MatchableResource 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 MatchableResource(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.MatchableResource) - } - - public interface TaskResourceSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskResourceSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * string cpu = 1; - */ - java.lang.String getCpu(); - /** - * string cpu = 1; - */ - com.google.protobuf.ByteString - getCpuBytes(); - - /** - * string gpu = 2; - */ - java.lang.String getGpu(); - /** - * string gpu = 2; - */ - com.google.protobuf.ByteString - getGpuBytes(); - - /** - * string memory = 3; - */ - java.lang.String getMemory(); - /** - * string memory = 3; - */ - com.google.protobuf.ByteString - getMemoryBytes(); - - /** - * string storage = 4; - */ - java.lang.String getStorage(); - /** - * string storage = 4; - */ - com.google.protobuf.ByteString - getStorageBytes(); - } - /** - * Protobuf type {@code flyteidl.admin.TaskResourceSpec} - */ - public static final class TaskResourceSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskResourceSpec) - TaskResourceSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskResourceSpec.newBuilder() to construct. - private TaskResourceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskResourceSpec() { - cpu_ = ""; - gpu_ = ""; - memory_ = ""; - storage_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskResourceSpec( - 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(); - - cpu_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - gpu_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - memory_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - storage_ = 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder.class); - } - - public static final int CPU_FIELD_NUMBER = 1; - private volatile java.lang.Object cpu_; - /** - * string cpu = 1; - */ - public java.lang.String getCpu() { - java.lang.Object ref = cpu_; - 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(); - cpu_ = s; - return s; - } - } - /** - * string cpu = 1; - */ - public com.google.protobuf.ByteString - getCpuBytes() { - java.lang.Object ref = cpu_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpu_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GPU_FIELD_NUMBER = 2; - private volatile java.lang.Object gpu_; - /** - * string gpu = 2; - */ - public java.lang.String getGpu() { - java.lang.Object ref = gpu_; - 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(); - gpu_ = s; - return s; - } - } - /** - * string gpu = 2; - */ - public com.google.protobuf.ByteString - getGpuBytes() { - java.lang.Object ref = gpu_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gpu_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MEMORY_FIELD_NUMBER = 3; - private volatile java.lang.Object memory_; - /** - * string memory = 3; - */ - public java.lang.String getMemory() { - java.lang.Object ref = memory_; - 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(); - memory_ = s; - return s; - } - } - /** - * string memory = 3; - */ - public com.google.protobuf.ByteString - getMemoryBytes() { - java.lang.Object ref = memory_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - memory_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STORAGE_FIELD_NUMBER = 4; - private volatile java.lang.Object storage_; - /** - * string storage = 4; - */ - public java.lang.String getStorage() { - java.lang.Object ref = storage_; - 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(); - storage_ = s; - return s; - } - } - /** - * string storage = 4; - */ - public com.google.protobuf.ByteString - getStorageBytes() { - java.lang.Object ref = storage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storage_ = 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 (!getCpuBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpu_); - } - if (!getGpuBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gpu_); - } - if (!getMemoryBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, memory_); - } - if (!getStorageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storage_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCpuBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpu_); - } - if (!getGpuBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gpu_); - } - if (!getMemoryBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, memory_); - } - if (!getStorageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storage_); - } - 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec other = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) obj; - - if (!getCpu() - .equals(other.getCpu())) return false; - if (!getGpu() - .equals(other.getGpu())) return false; - if (!getMemory() - .equals(other.getMemory())) return false; - if (!getStorage() - .equals(other.getStorage())) 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) + CPU_FIELD_NUMBER; - hash = (53 * hash) + getCpu().hashCode(); - hash = (37 * hash) + GPU_FIELD_NUMBER; - hash = (53 * hash) + getGpu().hashCode(); - hash = (37 * hash) + MEMORY_FIELD_NUMBER; - hash = (53 * hash) + getMemory().hashCode(); - hash = (37 * hash) + STORAGE_FIELD_NUMBER; - hash = (53 * hash) + getStorage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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 flyteidl.admin.TaskResourceSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskResourceSpec) - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.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(); - cpu_ = ""; - - gpu_ = ""; - - memory_ = ""; - - storage_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec build() { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec result = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec(this); - result.cpu_ = cpu_; - result.gpu_ = gpu_; - result.memory_ = memory_; - result.storage_ = storage_; - 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance()) return this; - if (!other.getCpu().isEmpty()) { - cpu_ = other.cpu_; - onChanged(); - } - if (!other.getGpu().isEmpty()) { - gpu_ = other.gpu_; - onChanged(); - } - if (!other.getMemory().isEmpty()) { - memory_ = other.memory_; - onChanged(); - } - if (!other.getStorage().isEmpty()) { - storage_ = other.storage_; - 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 { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cpu_ = ""; - /** - * string cpu = 1; - */ - public java.lang.String getCpu() { - java.lang.Object ref = cpu_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cpu_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cpu = 1; - */ - public com.google.protobuf.ByteString - getCpuBytes() { - java.lang.Object ref = cpu_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpu_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cpu = 1; - */ - public Builder setCpu( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cpu_ = value; - onChanged(); - return this; - } - /** - * string cpu = 1; - */ - public Builder clearCpu() { - - cpu_ = getDefaultInstance().getCpu(); - onChanged(); - return this; - } - /** - * string cpu = 1; - */ - public Builder setCpuBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cpu_ = value; - onChanged(); - return this; - } - - private java.lang.Object gpu_ = ""; - /** - * string gpu = 2; - */ - public java.lang.String getGpu() { - java.lang.Object ref = gpu_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gpu_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string gpu = 2; - */ - public com.google.protobuf.ByteString - getGpuBytes() { - java.lang.Object ref = gpu_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gpu_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string gpu = 2; - */ - public Builder setGpu( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gpu_ = value; - onChanged(); - return this; - } - /** - * string gpu = 2; - */ - public Builder clearGpu() { - - gpu_ = getDefaultInstance().getGpu(); - onChanged(); - return this; - } - /** - * string gpu = 2; - */ - public Builder setGpuBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gpu_ = value; - onChanged(); - return this; - } - - private java.lang.Object memory_ = ""; - /** - * string memory = 3; - */ - public java.lang.String getMemory() { - java.lang.Object ref = memory_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - memory_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string memory = 3; - */ - public com.google.protobuf.ByteString - getMemoryBytes() { - java.lang.Object ref = memory_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - memory_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string memory = 3; - */ - public Builder setMemory( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - memory_ = value; - onChanged(); - return this; - } - /** - * string memory = 3; - */ - public Builder clearMemory() { - - memory_ = getDefaultInstance().getMemory(); - onChanged(); - return this; - } - /** - * string memory = 3; - */ - public Builder setMemoryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - memory_ = value; - onChanged(); - return this; - } - - private java.lang.Object storage_ = ""; - /** - * string storage = 4; - */ - public java.lang.String getStorage() { - java.lang.Object ref = storage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string storage = 4; - */ - public com.google.protobuf.ByteString - getStorageBytes() { - java.lang.Object ref = storage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string storage = 4; - */ - public Builder setStorage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - storage_ = value; - onChanged(); - return this; - } - /** - * string storage = 4; - */ - public Builder clearStorage() { - - storage_ = getDefaultInstance().getStorage(); - onChanged(); - return this; - } - /** - * string storage = 4; - */ - public Builder setStorageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - storage_ = 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:flyteidl.admin.TaskResourceSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceSpec) - private static final flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskResourceSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskResourceSpec(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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskResourceAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskResourceAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - boolean hasDefaults(); - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults(); - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder(); - - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - boolean hasLimits(); - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits(); - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.admin.TaskResourceAttributes} - */ - public static final class TaskResourceAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskResourceAttributes) - TaskResourceAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskResourceAttributes.newBuilder() to construct. - private TaskResourceAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskResourceAttributes() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskResourceAttributes( - 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: { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder subBuilder = null; - if (defaults_ != null) { - subBuilder = defaults_.toBuilder(); - } - defaults_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaults_); - defaults_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder subBuilder = null; - if (limits_ != null) { - subBuilder = limits_.toBuilder(); - } - limits_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(limits_); - limits_ = 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder.class); - } - - public static final int DEFAULTS_FIELD_NUMBER = 1; - private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec defaults_; - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public boolean hasDefaults() { - return defaults_ != null; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults() { - return defaults_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder() { - return getDefaults(); - } - - public static final int LIMITS_FIELD_NUMBER = 2; - private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec limits_; - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public boolean hasLimits() { - return limits_ != null; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits() { - return limits_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder() { - return getLimits(); - } - - 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 (defaults_ != null) { - output.writeMessage(1, getDefaults()); - } - if (limits_ != null) { - output.writeMessage(2, getLimits()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (defaults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDefaults()); - } - if (limits_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLimits()); - } - 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes other = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) obj; - - if (hasDefaults() != other.hasDefaults()) return false; - if (hasDefaults()) { - if (!getDefaults() - .equals(other.getDefaults())) return false; - } - if (hasLimits() != other.hasLimits()) return false; - if (hasLimits()) { - if (!getLimits() - .equals(other.getLimits())) 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 (hasDefaults()) { - hash = (37 * hash) + DEFAULTS_FIELD_NUMBER; - hash = (53 * hash) + getDefaults().hashCode(); - } - if (hasLimits()) { - hash = (37 * hash) + LIMITS_FIELD_NUMBER; - hash = (53 * hash) + getLimits().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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 flyteidl.admin.TaskResourceAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskResourceAttributes) - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.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 (defaultsBuilder_ == null) { - defaults_ = null; - } else { - defaults_ = null; - defaultsBuilder_ = null; - } - if (limitsBuilder_ == null) { - limits_ = null; - } else { - limits_ = null; - limitsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes build() { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes result = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes(this); - if (defaultsBuilder_ == null) { - result.defaults_ = defaults_; - } else { - result.defaults_ = defaultsBuilder_.build(); - } - if (limitsBuilder_ == null) { - result.limits_ = limits_; - } else { - result.limits_ = limitsBuilder_.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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance()) return this; - if (other.hasDefaults()) { - mergeDefaults(other.getDefaults()); - } - if (other.hasLimits()) { - mergeLimits(other.getLimits()); - } - 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 { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec defaults_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> defaultsBuilder_; - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public boolean hasDefaults() { - return defaultsBuilder_ != null || defaults_ != null; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults() { - if (defaultsBuilder_ == null) { - return defaults_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; - } else { - return defaultsBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public Builder setDefaults(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { - if (defaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaults_ = value; - onChanged(); - } else { - defaultsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public Builder setDefaults( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder builderForValue) { - if (defaultsBuilder_ == null) { - defaults_ = builderForValue.build(); - onChanged(); - } else { - defaultsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public Builder mergeDefaults(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { - if (defaultsBuilder_ == null) { - if (defaults_ != null) { - defaults_ = - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.newBuilder(defaults_).mergeFrom(value).buildPartial(); - } else { - defaults_ = value; - } - onChanged(); - } else { - defaultsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public Builder clearDefaults() { - if (defaultsBuilder_ == null) { - defaults_ = null; - onChanged(); - } else { - defaults_ = null; - defaultsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder getDefaultsBuilder() { - - onChanged(); - return getDefaultsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder() { - if (defaultsBuilder_ != null) { - return defaultsBuilder_.getMessageOrBuilder(); - } else { - return defaults_ == null ? - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; - } - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> - getDefaultsFieldBuilder() { - if (defaultsBuilder_ == null) { - defaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder>( - getDefaults(), - getParentForChildren(), - isClean()); - defaults_ = null; - } - return defaultsBuilder_; - } - - private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec limits_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> limitsBuilder_; - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public boolean hasLimits() { - return limitsBuilder_ != null || limits_ != null; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits() { - if (limitsBuilder_ == null) { - return limits_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; - } else { - return limitsBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public Builder setLimits(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { - if (limitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - limits_ = value; - onChanged(); - } else { - limitsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public Builder setLimits( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder builderForValue) { - if (limitsBuilder_ == null) { - limits_ = builderForValue.build(); - onChanged(); - } else { - limitsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public Builder mergeLimits(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { - if (limitsBuilder_ == null) { - if (limits_ != null) { - limits_ = - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.newBuilder(limits_).mergeFrom(value).buildPartial(); - } else { - limits_ = value; - } - onChanged(); - } else { - limitsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public Builder clearLimits() { - if (limitsBuilder_ == null) { - limits_ = null; - onChanged(); - } else { - limits_ = null; - limitsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder getLimitsBuilder() { - - onChanged(); - return getLimitsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder() { - if (limitsBuilder_ != null) { - return limitsBuilder_.getMessageOrBuilder(); - } else { - return limits_ == null ? - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; - } - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> - getLimitsFieldBuilder() { - if (limitsBuilder_ == null) { - limitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder>( - getLimits(), - getParentForChildren(), - isClean()); - limits_ = null; - } - return limitsBuilder_; - } - @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:flyteidl.admin.TaskResourceAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceAttributes) - private static final flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskResourceAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskResourceAttributes(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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ClusterResourceAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ClusterResourceAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - int getAttributesCount(); - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - boolean containsAttributes( - java.lang.String key); - /** - * Use {@link #getAttributesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAttributes(); - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - java.util.Map - getAttributesMap(); - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - java.lang.String getAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - java.lang.String getAttributesOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code flyteidl.admin.ClusterResourceAttributes} - */ - public static final class ClusterResourceAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ClusterResourceAttributes) - ClusterResourceAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterResourceAttributes.newBuilder() to construct. - private ClusterResourceAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClusterResourceAttributes() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClusterResourceAttributes( - 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)) { - attributes_ = com.google.protobuf.MapField.newMapField( - AttributesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - attributes__ = input.readMessage( - AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - attributes_.getMutableMap().put( - attributes__.getKey(), attributes__.getValue()); - 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetAttributes(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private static final class AttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> attributes_; - private com.google.protobuf.MapField - internalGetAttributes() { - if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AttributesDefaultEntryHolder.defaultEntry); - } - return attributes_; - } - - public int getAttributesCount() { - return internalGetAttributes().getMap().size(); - } - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - public boolean containsAttributes( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAttributes().getMap().containsKey(key); - } - /** - * Use {@link #getAttributesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAttributes() { - return getAttributesMap(); - } - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - public java.util.Map getAttributesMap() { - return internalGetAttributes().getMap(); - } - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - public java.lang.String getAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - public java.lang.String getAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAttributes(), - AttributesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry - attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, attributes__); - } - 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes other = (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) obj; - - if (!internalGetAttributes().equals( - other.internalGetAttributes())) 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 (!internalGetAttributes().getMap().isEmpty()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + internalGetAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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 flyteidl.admin.ClusterResourceAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ClusterResourceAttributes) - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetAttributes(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableAttributes(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.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(); - internalGetMutableAttributes().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes build() { - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes result = new flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes(this); - int from_bitField0_ = bitField0_; - result.attributes_ = internalGetAttributes(); - result.attributes_.makeImmutable(); - 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance()) return this; - internalGetMutableAttributes().mergeFrom( - other.internalGetAttributes()); - 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 { - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> attributes_; - private com.google.protobuf.MapField - internalGetAttributes() { - if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AttributesDefaultEntryHolder.defaultEntry); - } - return attributes_; - } - private com.google.protobuf.MapField - internalGetMutableAttributes() { - onChanged();; - if (attributes_ == null) { - attributes_ = com.google.protobuf.MapField.newMapField( - AttributesDefaultEntryHolder.defaultEntry); - } - if (!attributes_.isMutable()) { - attributes_ = attributes_.copy(); - } - return attributes_; - } - - public int getAttributesCount() { - return internalGetAttributes().getMap().size(); - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public boolean containsAttributes( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAttributes().getMap().containsKey(key); - } - /** - * Use {@link #getAttributesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAttributes() { - return getAttributesMap(); - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public java.util.Map getAttributesMap() { - return internalGetAttributes().getMap(); - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public java.lang.String getAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public java.lang.String getAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAttributes() { - internalGetMutableAttributes().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public Builder removeAttributes( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAttributes().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAttributes() { - return internalGetMutableAttributes().getMutableMap(); - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - public Builder putAttributes( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAttributes().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public Builder putAllAttributes( - java.util.Map values) { - internalGetMutableAttributes().getMutableMap() - .putAll(values); - 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:flyteidl.admin.ClusterResourceAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ClusterResourceAttributes) - private static final flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterResourceAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterResourceAttributes(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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionQueueAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionQueueAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - java.util.List - getTagsList(); - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - int getTagsCount(); - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - java.lang.String getTags(int index); - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionQueueAttributes} - */ - public static final class ExecutionQueueAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionQueueAttributes) - ExecutionQueueAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionQueueAttributes.newBuilder() to construct. - private ExecutionQueueAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionQueueAttributes() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionQueueAttributes( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tags_.add(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)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder.class); - } - - public static final int TAGS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList tags_; - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(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 < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes other = (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) obj; - - if (!getTagsList() - .equals(other.getTagsList())) 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 (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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 flyteidl.admin.ExecutionQueueAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionQueueAttributes) - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.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(); - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes build() { - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes result = new flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tags_ = tags_; - 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance()) return this; - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - 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 { - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(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:flyteidl.admin.ExecutionQueueAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionQueueAttributes) - private static final flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionQueueAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionQueueAttributes(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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionClusterLabelOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionClusterLabel) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Label value to determine where the execution will be run
-     * 
- * - * string value = 1; - */ - java.lang.String getValue(); - /** - *
-     * Label value to determine where the execution will be run
-     * 
- * - * string value = 1; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionClusterLabel} - */ - public static final class ExecutionClusterLabel extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionClusterLabel) - ExecutionClusterLabelOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionClusterLabel.newBuilder() to construct. - private ExecutionClusterLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionClusterLabel() { - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionClusterLabel( - 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(); - - 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object value_; - /** - *
-     * Label value to determine where the execution will be run
-     * 
- * - * string value = 1; - */ - 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; - } - } - /** - *
-     * Label value to determine where the execution will be run
-     * 
- * - * string value = 1; - */ - 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 (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel other = (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) obj; - - 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) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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 flyteidl.admin.ExecutionClusterLabel} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionClusterLabel) - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.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(); - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel build() { - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel result = new flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel(this); - 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance()) return this; - 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 { - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - 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; - } - } - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - 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; - } - } - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - 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:flyteidl.admin.ExecutionClusterLabel) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClusterLabel) - private static final flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionClusterLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionClusterLabel(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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MatchingAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.MatchingAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - boolean hasTaskResourceAttributes(); - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes(); - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder(); - - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - boolean hasClusterResourceAttributes(); - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes(); - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder(); - - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - boolean hasExecutionQueueAttributes(); - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes(); - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder(); - - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - boolean hasExecutionClusterLabel(); - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel(); - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder(); - - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - boolean hasQualityOfService(); - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - flyteidl.core.Execution.QualityOfService getQualityOfService(); - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); - - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.TargetCase getTargetCase(); - } - /** - *
-   * Generic container for encapsulating all types of the above attributes messages.
-   * 
- * - * Protobuf type {@code flyteidl.admin.MatchingAttributes} - */ - public static final class MatchingAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.MatchingAttributes) - MatchingAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use MatchingAttributes.newBuilder() to construct. - private MatchingAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MatchingAttributes() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MatchingAttributes( - 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: { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder subBuilder = null; - if (targetCase_ == 1) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 1; - break; - } - case 18: { - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder subBuilder = null; - if (targetCase_ == 2) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 2; - break; - } - case 26: { - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder subBuilder = null; - if (targetCase_ == 3) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 3; - break; - } - case 34: { - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder subBuilder = null; - if (targetCase_ == 4) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 4; - break; - } - case 42: { - flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; - if (targetCase_ == 5) { - subBuilder = ((flyteidl.core.Execution.QualityOfService) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.QualityOfService) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 5; - 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.class, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder.class); - } - - private int targetCase_ = 0; - private java.lang.Object target_; - public enum TargetCase - implements com.google.protobuf.Internal.EnumLite { - TASK_RESOURCE_ATTRIBUTES(1), - CLUSTER_RESOURCE_ATTRIBUTES(2), - EXECUTION_QUEUE_ATTRIBUTES(3), - EXECUTION_CLUSTER_LABEL(4), - QUALITY_OF_SERVICE(5), - TARGET_NOT_SET(0); - private final int value; - private TargetCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetCase valueOf(int value) { - return forNumber(value); - } - - public static TargetCase forNumber(int value) { - switch (value) { - case 1: return TASK_RESOURCE_ATTRIBUTES; - case 2: return CLUSTER_RESOURCE_ATTRIBUTES; - case 3: return EXECUTION_QUEUE_ATTRIBUTES; - case 4: return EXECUTION_CLUSTER_LABEL; - case 5: return QUALITY_OF_SERVICE; - case 0: return TARGET_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public static final int TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER = 1; - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public boolean hasTaskResourceAttributes() { - return targetCase_ == 1; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes() { - if (targetCase_ == 1) { - return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder() { - if (targetCase_ == 1) { - return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - - public static final int CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER = 2; - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public boolean hasClusterResourceAttributes() { - return targetCase_ == 2; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes() { - if (targetCase_ == 2) { - return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder() { - if (targetCase_ == 2) { - return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - - public static final int EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER = 3; - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public boolean hasExecutionQueueAttributes() { - return targetCase_ == 3; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes() { - if (targetCase_ == 3) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder() { - if (targetCase_ == 3) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - - public static final int EXECUTION_CLUSTER_LABEL_FIELD_NUMBER = 4; - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public boolean hasExecutionClusterLabel() { - return targetCase_ == 4; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel() { - if (targetCase_ == 4) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder() { - if (targetCase_ == 4) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - - public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 5; - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public boolean hasQualityOfService() { - return targetCase_ == 5; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (targetCase_ == 5) { - return (flyteidl.core.Execution.QualityOfService) target_; - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if (targetCase_ == 5) { - return (flyteidl.core.Execution.QualityOfService) target_; - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetCase_ == 1) { - output.writeMessage(1, (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); - } - if (targetCase_ == 2) { - output.writeMessage(2, (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); - } - if (targetCase_ == 3) { - output.writeMessage(3, (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); - } - if (targetCase_ == 4) { - output.writeMessage(4, (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); - } - if (targetCase_ == 5) { - output.writeMessage(5, (flyteidl.core.Execution.QualityOfService) target_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); - } - if (targetCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); - } - if (targetCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); - } - if (targetCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); - } - if (targetCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.core.Execution.QualityOfService) target_); - } - 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes other = (flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) obj; - - if (!getTargetCase().equals(other.getTargetCase())) return false; - switch (targetCase_) { - case 1: - if (!getTaskResourceAttributes() - .equals(other.getTaskResourceAttributes())) return false; - break; - case 2: - if (!getClusterResourceAttributes() - .equals(other.getClusterResourceAttributes())) return false; - break; - case 3: - if (!getExecutionQueueAttributes() - .equals(other.getExecutionQueueAttributes())) return false; - break; - case 4: - if (!getExecutionClusterLabel() - .equals(other.getExecutionClusterLabel())) return false; - break; - case 5: - if (!getQualityOfService() - .equals(other.getQualityOfService())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (targetCase_) { - case 1: - hash = (37 * hash) + TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getTaskResourceAttributes().hashCode(); - break; - case 2: - hash = (37 * hash) + CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getClusterResourceAttributes().hashCode(); - break; - case 3: - hash = (37 * hash) + EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getExecutionQueueAttributes().hashCode(); - break; - case 4: - hash = (37 * hash) + EXECUTION_CLUSTER_LABEL_FIELD_NUMBER; - hash = (53 * hash) + getExecutionClusterLabel().hashCode(); - break; - case 5: - hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getQualityOfService().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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; - } - /** - *
-     * Generic container for encapsulating all types of the above attributes messages.
-     * 
- * - * Protobuf type {@code flyteidl.admin.MatchingAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.MatchingAttributes) - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.class, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.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(); - targetCase_ = 0; - target_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes build() { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes result = new flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes(this); - if (targetCase_ == 1) { - if (taskResourceAttributesBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = taskResourceAttributesBuilder_.build(); - } - } - if (targetCase_ == 2) { - if (clusterResourceAttributesBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = clusterResourceAttributesBuilder_.build(); - } - } - if (targetCase_ == 3) { - if (executionQueueAttributesBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = executionQueueAttributesBuilder_.build(); - } - } - if (targetCase_ == 4) { - if (executionClusterLabelBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = executionClusterLabelBuilder_.build(); - } - } - if (targetCase_ == 5) { - if (qualityOfServiceBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = qualityOfServiceBuilder_.build(); - } - } - result.targetCase_ = targetCase_; - 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance()) return this; - switch (other.getTargetCase()) { - case TASK_RESOURCE_ATTRIBUTES: { - mergeTaskResourceAttributes(other.getTaskResourceAttributes()); - break; - } - case CLUSTER_RESOURCE_ATTRIBUTES: { - mergeClusterResourceAttributes(other.getClusterResourceAttributes()); - break; - } - case EXECUTION_QUEUE_ATTRIBUTES: { - mergeExecutionQueueAttributes(other.getExecutionQueueAttributes()); - break; - } - case EXECUTION_CLUSTER_LABEL: { - mergeExecutionClusterLabel(other.getExecutionClusterLabel()); - break; - } - case QUALITY_OF_SERVICE: { - mergeQualityOfService(other.getQualityOfService()); - break; - } - case TARGET_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 { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int targetCase_ = 0; - private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public Builder clearTarget() { - targetCase_ = 0; - target_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder> taskResourceAttributesBuilder_; - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public boolean hasTaskResourceAttributes() { - return targetCase_ == 1; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes() { - if (taskResourceAttributesBuilder_ == null) { - if (targetCase_ == 1) { - return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } else { - if (targetCase_ == 1) { - return taskResourceAttributesBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public Builder setTaskResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes value) { - if (taskResourceAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - taskResourceAttributesBuilder_.setMessage(value); - } - targetCase_ = 1; - return this; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public Builder setTaskResourceAttributes( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder builderForValue) { - if (taskResourceAttributesBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - taskResourceAttributesBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 1; - return this; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public Builder mergeTaskResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes value) { - if (taskResourceAttributesBuilder_ == null) { - if (targetCase_ == 1 && - target_ != flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 1) { - taskResourceAttributesBuilder_.mergeFrom(value); - } - taskResourceAttributesBuilder_.setMessage(value); - } - targetCase_ = 1; - return this; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public Builder clearTaskResourceAttributes() { - if (taskResourceAttributesBuilder_ == null) { - if (targetCase_ == 1) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 1) { - targetCase_ = 0; - target_ = null; - } - taskResourceAttributesBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder getTaskResourceAttributesBuilder() { - return getTaskResourceAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder() { - if ((targetCase_ == 1) && (taskResourceAttributesBuilder_ != null)) { - return taskResourceAttributesBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 1) { - return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder> - getTaskResourceAttributesFieldBuilder() { - if (taskResourceAttributesBuilder_ == null) { - if (!(targetCase_ == 1)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - taskResourceAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 1; - onChanged();; - return taskResourceAttributesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder> clusterResourceAttributesBuilder_; - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public boolean hasClusterResourceAttributes() { - return targetCase_ == 2; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes() { - if (clusterResourceAttributesBuilder_ == null) { - if (targetCase_ == 2) { - return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } else { - if (targetCase_ == 2) { - return clusterResourceAttributesBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public Builder setClusterResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes value) { - if (clusterResourceAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - clusterResourceAttributesBuilder_.setMessage(value); - } - targetCase_ = 2; - return this; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public Builder setClusterResourceAttributes( - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder builderForValue) { - if (clusterResourceAttributesBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - clusterResourceAttributesBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 2; - return this; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public Builder mergeClusterResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes value) { - if (clusterResourceAttributesBuilder_ == null) { - if (targetCase_ == 2 && - target_ != flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 2) { - clusterResourceAttributesBuilder_.mergeFrom(value); - } - clusterResourceAttributesBuilder_.setMessage(value); - } - targetCase_ = 2; - return this; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public Builder clearClusterResourceAttributes() { - if (clusterResourceAttributesBuilder_ == null) { - if (targetCase_ == 2) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 2) { - targetCase_ = 0; - target_ = null; - } - clusterResourceAttributesBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder getClusterResourceAttributesBuilder() { - return getClusterResourceAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder() { - if ((targetCase_ == 2) && (clusterResourceAttributesBuilder_ != null)) { - return clusterResourceAttributesBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 2) { - return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder> - getClusterResourceAttributesFieldBuilder() { - if (clusterResourceAttributesBuilder_ == null) { - if (!(targetCase_ == 2)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - clusterResourceAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 2; - onChanged();; - return clusterResourceAttributesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder> executionQueueAttributesBuilder_; - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public boolean hasExecutionQueueAttributes() { - return targetCase_ == 3; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes() { - if (executionQueueAttributesBuilder_ == null) { - if (targetCase_ == 3) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } else { - if (targetCase_ == 3) { - return executionQueueAttributesBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public Builder setExecutionQueueAttributes(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes value) { - if (executionQueueAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - executionQueueAttributesBuilder_.setMessage(value); - } - targetCase_ = 3; - return this; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public Builder setExecutionQueueAttributes( - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder builderForValue) { - if (executionQueueAttributesBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - executionQueueAttributesBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 3; - return this; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public Builder mergeExecutionQueueAttributes(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes value) { - if (executionQueueAttributesBuilder_ == null) { - if (targetCase_ == 3 && - target_ != flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 3) { - executionQueueAttributesBuilder_.mergeFrom(value); - } - executionQueueAttributesBuilder_.setMessage(value); - } - targetCase_ = 3; - return this; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public Builder clearExecutionQueueAttributes() { - if (executionQueueAttributesBuilder_ == null) { - if (targetCase_ == 3) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 3) { - targetCase_ = 0; - target_ = null; - } - executionQueueAttributesBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder getExecutionQueueAttributesBuilder() { - return getExecutionQueueAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder() { - if ((targetCase_ == 3) && (executionQueueAttributesBuilder_ != null)) { - return executionQueueAttributesBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 3) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder> - getExecutionQueueAttributesFieldBuilder() { - if (executionQueueAttributesBuilder_ == null) { - if (!(targetCase_ == 3)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - executionQueueAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 3; - onChanged();; - return executionQueueAttributesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder> executionClusterLabelBuilder_; - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public boolean hasExecutionClusterLabel() { - return targetCase_ == 4; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel() { - if (executionClusterLabelBuilder_ == null) { - if (targetCase_ == 4) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } else { - if (targetCase_ == 4) { - return executionClusterLabelBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public Builder setExecutionClusterLabel(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel value) { - if (executionClusterLabelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - executionClusterLabelBuilder_.setMessage(value); - } - targetCase_ = 4; - return this; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public Builder setExecutionClusterLabel( - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder builderForValue) { - if (executionClusterLabelBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - executionClusterLabelBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 4; - return this; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public Builder mergeExecutionClusterLabel(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel value) { - if (executionClusterLabelBuilder_ == null) { - if (targetCase_ == 4 && - target_ != flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 4) { - executionClusterLabelBuilder_.mergeFrom(value); - } - executionClusterLabelBuilder_.setMessage(value); - } - targetCase_ = 4; - return this; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public Builder clearExecutionClusterLabel() { - if (executionClusterLabelBuilder_ == null) { - if (targetCase_ == 4) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 4) { - targetCase_ = 0; - target_ = null; - } - executionClusterLabelBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder getExecutionClusterLabelBuilder() { - return getExecutionClusterLabelFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder() { - if ((targetCase_ == 4) && (executionClusterLabelBuilder_ != null)) { - return executionClusterLabelBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 4) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder> - getExecutionClusterLabelFieldBuilder() { - if (executionClusterLabelBuilder_ == null) { - if (!(targetCase_ == 4)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - executionClusterLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 4; - onChanged();; - return executionClusterLabelBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public boolean hasQualityOfService() { - return targetCase_ == 5; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - if (targetCase_ == 5) { - return (flyteidl.core.Execution.QualityOfService) target_; - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } else { - if (targetCase_ == 5) { - return qualityOfServiceBuilder_.getMessage(); - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(value); - } - targetCase_ = 5; - return this; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public Builder setQualityOfService( - flyteidl.core.Execution.QualityOfService.Builder builderForValue) { - if (qualityOfServiceBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 5; - return this; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (targetCase_ == 5 && - target_ != flyteidl.core.Execution.QualityOfService.getDefaultInstance()) { - target_ = flyteidl.core.Execution.QualityOfService.newBuilder((flyteidl.core.Execution.QualityOfService) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 5) { - qualityOfServiceBuilder_.mergeFrom(value); - } - qualityOfServiceBuilder_.setMessage(value); - } - targetCase_ = 5; - return this; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public Builder clearQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - if (targetCase_ == 5) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 5) { - targetCase_ = 0; - target_ = null; - } - qualityOfServiceBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { - return getQualityOfServiceFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if ((targetCase_ == 5) && (qualityOfServiceBuilder_ != null)) { - return qualityOfServiceBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 5) { - return (flyteidl.core.Execution.QualityOfService) target_; - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> - getQualityOfServiceFieldBuilder() { - if (qualityOfServiceBuilder_ == null) { - if (!(targetCase_ == 5)) { - target_ = flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( - (flyteidl.core.Execution.QualityOfService) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 5; - onChanged();; - return qualityOfServiceBuilder_; - } - @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:flyteidl.admin.MatchingAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchingAttributes) - private static final flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MatchingAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MatchingAttributes(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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MatchableAttributesConfigurationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.MatchableAttributesConfiguration) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes(); - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder(); - - /** - * string domain = 2; - */ - java.lang.String getDomain(); - /** - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - * string project = 3; - */ - java.lang.String getProject(); - /** - * string project = 3; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - * string workflow = 4; - */ - java.lang.String getWorkflow(); - /** - * string workflow = 4; - */ - com.google.protobuf.ByteString - getWorkflowBytes(); - - /** - * string launch_plan = 5; - */ - java.lang.String getLaunchPlan(); - /** - * string launch_plan = 5; - */ - com.google.protobuf.ByteString - getLaunchPlanBytes(); - } - /** - *
-   * Represents a custom set of attributes applied for either a domain; a domain and project; or
-   * domain, project and workflow name.
-   * 
- * - * Protobuf type {@code flyteidl.admin.MatchableAttributesConfiguration} - */ - public static final class MatchableAttributesConfiguration extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.MatchableAttributesConfiguration) - MatchableAttributesConfigurationOrBuilder { - private static final long serialVersionUID = 0L; - // Use MatchableAttributesConfiguration.newBuilder() to construct. - private MatchableAttributesConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MatchableAttributesConfiguration() { - domain_ = ""; - project_ = ""; - workflow_ = ""; - launchPlan_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MatchableAttributesConfiguration( - 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: { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - workflow_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - launchPlan_ = 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.class, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes attributes_; - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECT_FIELD_NUMBER = 3; - private volatile java.lang.Object project_; - /** - * string project = 3; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - * string project = 3; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKFLOW_FIELD_NUMBER = 4; - private volatile java.lang.Object workflow_; - /** - * string workflow = 4; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - 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(); - workflow_ = s; - return s; - } - } - /** - * string workflow = 4; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LAUNCH_PLAN_FIELD_NUMBER = 5; - private volatile java.lang.Object launchPlan_; - /** - * string launch_plan = 5; - */ - public java.lang.String getLaunchPlan() { - java.lang.Object ref = launchPlan_; - 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(); - launchPlan_ = s; - return s; - } - } - /** - * string launch_plan = 5; - */ - public com.google.protobuf.ByteString - getLaunchPlanBytes() { - java.lang.Object ref = launchPlan_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - launchPlan_ = 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, project_); - } - if (!getWorkflowBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, workflow_); - } - if (!getLaunchPlanBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, launchPlan_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, project_); - } - if (!getWorkflowBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, workflow_); - } - if (!getLaunchPlanBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, launchPlan_); - } - 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration other = (flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) return false; - } - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - if (!getLaunchPlan() - .equals(other.getLaunchPlan())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - hash = (37 * hash) + LAUNCH_PLAN_FIELD_NUMBER; - hash = (53 * hash) + getLaunchPlan().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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; - } - /** - *
-     * Represents a custom set of attributes applied for either a domain; a domain and project; or
-     * domain, project and workflow name.
-     * 
- * - * Protobuf type {@code flyteidl.admin.MatchableAttributesConfiguration} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.MatchableAttributesConfiguration) - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.class, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - domain_ = ""; - - project_ = ""; - - workflow_ = ""; - - launchPlan_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration build() { - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration result = new flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.build(); - } - result.domain_ = domain_; - result.project_ = project_; - result.workflow_ = workflow_; - result.launchPlan_ = launchPlan_; - 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getWorkflow().isEmpty()) { - workflow_ = other.workflow_; - onChanged(); - } - if (!other.getLaunchPlan().isEmpty()) { - launchPlan_ = other.launchPlan_; - 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 { - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - - private java.lang.Object domain_ = ""; - /** - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - * string project = 3; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string project = 3; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string project = 3; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - * string project = 3; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - * string project = 3; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object workflow_ = ""; - /** - * string workflow = 4; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string workflow = 4; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string workflow = 4; - */ - public Builder setWorkflow( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflow_ = value; - onChanged(); - return this; - } - /** - * string workflow = 4; - */ - public Builder clearWorkflow() { - - workflow_ = getDefaultInstance().getWorkflow(); - onChanged(); - return this; - } - /** - * string workflow = 4; - */ - public Builder setWorkflowBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflow_ = value; - onChanged(); - return this; - } - - private java.lang.Object launchPlan_ = ""; - /** - * string launch_plan = 5; - */ - public java.lang.String getLaunchPlan() { - java.lang.Object ref = launchPlan_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - launchPlan_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string launch_plan = 5; - */ - public com.google.protobuf.ByteString - getLaunchPlanBytes() { - java.lang.Object ref = launchPlan_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - launchPlan_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string launch_plan = 5; - */ - public Builder setLaunchPlan( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - launchPlan_ = value; - onChanged(); - return this; - } - /** - * string launch_plan = 5; - */ - public Builder clearLaunchPlan() { - - launchPlan_ = getDefaultInstance().getLaunchPlan(); - onChanged(); - return this; - } - /** - * string launch_plan = 5; - */ - public Builder setLaunchPlanBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - launchPlan_ = 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:flyteidl.admin.MatchableAttributesConfiguration) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchableAttributesConfiguration) - private static final flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MatchableAttributesConfiguration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MatchableAttributesConfiguration(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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListMatchableAttributesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListMatchableAttributesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - int getResourceTypeValue(); - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - *
-   * Request all matching resource attributes.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ListMatchableAttributesRequest} - */ - public static final class ListMatchableAttributesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ListMatchableAttributesRequest) - ListMatchableAttributesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListMatchableAttributesRequest.newBuilder() to construct. - private ListMatchableAttributesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListMatchableAttributesRequest() { - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListMatchableAttributesRequest( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(1, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest other = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) obj; - - if (resourceType_ != other.resourceType_) 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) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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; - } - /** - *
-     * Request all matching resource attributes.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ListMatchableAttributesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListMatchableAttributesRequest) - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.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(); - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest build() { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest result = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest(this); - result.resourceType_ = resourceType_; - 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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 { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - 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:flyteidl.admin.ListMatchableAttributesRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesRequest) - private static final flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMatchableAttributesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMatchableAttributesRequest(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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListMatchableAttributesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListMatchableAttributesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - java.util.List - getConfigurationsList(); - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index); - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - int getConfigurationsCount(); - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - java.util.List - getConfigurationsOrBuilderList(); - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( - int index); - } - /** - *
-   * Response for a request for all matching resource attributes.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ListMatchableAttributesResponse} - */ - public static final class ListMatchableAttributesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ListMatchableAttributesResponse) - ListMatchableAttributesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListMatchableAttributesResponse.newBuilder() to construct. - private ListMatchableAttributesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListMatchableAttributesResponse() { - configurations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListMatchableAttributesResponse( - 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)) { - configurations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - configurations_.add( - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.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)) { - configurations_ = java.util.Collections.unmodifiableList(configurations_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.Builder.class); - } - - public static final int CONFIGURATIONS_FIELD_NUMBER = 1; - private java.util.List configurations_; - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List getConfigurationsList() { - return configurations_; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List - getConfigurationsOrBuilderList() { - return configurations_; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public int getConfigurationsCount() { - return configurations_.size(); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index) { - return configurations_.get(index); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( - int index) { - return configurations_.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 < configurations_.size(); i++) { - output.writeMessage(1, configurations_.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 < configurations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, configurations_.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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse other = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) obj; - - if (!getConfigurationsList() - .equals(other.getConfigurationsList())) 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 (getConfigurationsCount() > 0) { - hash = (37 * hash) + CONFIGURATIONS_FIELD_NUMBER; - hash = (53 * hash) + getConfigurationsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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; - } - /** - *
-     * Response for a request for all matching resource attributes.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ListMatchableAttributesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListMatchableAttributesResponse) - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConfigurationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (configurationsBuilder_ == null) { - configurations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - configurationsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse build() { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse result = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse(this); - int from_bitField0_ = bitField0_; - if (configurationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - configurations_ = java.util.Collections.unmodifiableList(configurations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.configurations_ = configurations_; - } else { - result.configurations_ = configurationsBuilder_.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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.getDefaultInstance()) return this; - if (configurationsBuilder_ == null) { - if (!other.configurations_.isEmpty()) { - if (configurations_.isEmpty()) { - configurations_ = other.configurations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConfigurationsIsMutable(); - configurations_.addAll(other.configurations_); - } - onChanged(); - } - } else { - if (!other.configurations_.isEmpty()) { - if (configurationsBuilder_.isEmpty()) { - configurationsBuilder_.dispose(); - configurationsBuilder_ = null; - configurations_ = other.configurations_; - bitField0_ = (bitField0_ & ~0x00000001); - configurationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConfigurationsFieldBuilder() : null; - } else { - configurationsBuilder_.addAllMessages(other.configurations_); - } - } - } - 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 { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List configurations_ = - java.util.Collections.emptyList(); - private void ensureConfigurationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - configurations_ = new java.util.ArrayList(configurations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder> configurationsBuilder_; - - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List getConfigurationsList() { - if (configurationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(configurations_); - } else { - return configurationsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public int getConfigurationsCount() { - if (configurationsBuilder_ == null) { - return configurations_.size(); - } else { - return configurationsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index) { - if (configurationsBuilder_ == null) { - return configurations_.get(index); - } else { - return configurationsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder setConfigurations( - int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { - if (configurationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigurationsIsMutable(); - configurations_.set(index, value); - onChanged(); - } else { - configurationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder setConfigurations( - int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.set(index, builderForValue.build()); - onChanged(); - } else { - configurationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addConfigurations(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { - if (configurationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigurationsIsMutable(); - configurations_.add(value); - onChanged(); - } else { - configurationsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addConfigurations( - int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { - if (configurationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigurationsIsMutable(); - configurations_.add(index, value); - onChanged(); - } else { - configurationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addConfigurations( - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.add(builderForValue.build()); - onChanged(); - } else { - configurationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addConfigurations( - int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.add(index, builderForValue.build()); - onChanged(); - } else { - configurationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addAllConfigurations( - java.lang.Iterable values) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, configurations_); - onChanged(); - } else { - configurationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder clearConfigurations() { - if (configurationsBuilder_ == null) { - configurations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - configurationsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder removeConfigurations(int index) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.remove(index); - onChanged(); - } else { - configurationsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder getConfigurationsBuilder( - int index) { - return getConfigurationsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( - int index) { - if (configurationsBuilder_ == null) { - return configurations_.get(index); } else { - return configurationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List - getConfigurationsOrBuilderList() { - if (configurationsBuilder_ != null) { - return configurationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(configurations_); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder addConfigurationsBuilder() { - return getConfigurationsFieldBuilder().addBuilder( - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder addConfigurationsBuilder( - int index) { - return getConfigurationsFieldBuilder().addBuilder( - index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List - getConfigurationsBuilderList() { - return getConfigurationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder> - getConfigurationsFieldBuilder() { - if (configurationsBuilder_ == null) { - configurationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder>( - configurations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - configurations_ = null; - } - return configurationsBuilder_; - } - @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:flyteidl.admin.ListMatchableAttributesResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesResponse) - private static final flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMatchableAttributesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMatchableAttributesResponse(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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskResourceSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_MatchingAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ListMatchableAttributesResponse_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\'flyteidl/admin/matchable_resource.prot" + - "o\022\016flyteidl.admin\032\033flyteidl/admin/common" + - ".proto\032\035flyteidl/core/execution.proto\"M\n" + - "\020TaskResourceSpec\022\013\n\003cpu\030\001 \001(\t\022\013\n\003gpu\030\002 " + - "\001(\t\022\016\n\006memory\030\003 \001(\t\022\017\n\007storage\030\004 \001(\t\"~\n\026" + - "TaskResourceAttributes\0222\n\010defaults\030\001 \001(\013" + - "2 .flyteidl.admin.TaskResourceSpec\0220\n\006li" + - "mits\030\002 \001(\0132 .flyteidl.admin.TaskResource" + - "Spec\"\235\001\n\031ClusterResourceAttributes\022M\n\nat" + - "tributes\030\001 \003(\01329.flyteidl.admin.ClusterR" + - "esourceAttributes.AttributesEntry\0321\n\017Att" + - "ributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + - ":\0028\001\"(\n\030ExecutionQueueAttributes\022\014\n\004tags" + - "\030\001 \003(\t\"&\n\025ExecutionClusterLabel\022\r\n\005value" + - "\030\001 \001(\t\"\225\003\n\022MatchingAttributes\022J\n\030task_re" + - "source_attributes\030\001 \001(\0132&.flyteidl.admin" + - ".TaskResourceAttributesH\000\022P\n\033cluster_res" + - "ource_attributes\030\002 \001(\0132).flyteidl.admin." + - "ClusterResourceAttributesH\000\022N\n\032execution" + - "_queue_attributes\030\003 \001(\0132(.flyteidl.admin" + - ".ExecutionQueueAttributesH\000\022H\n\027execution" + - "_cluster_label\030\004 \001(\0132%.flyteidl.admin.Ex" + - "ecutionClusterLabelH\000\022=\n\022quality_of_serv" + - "ice\030\005 \001(\0132\037.flyteidl.core.QualityOfServi" + - "ceH\000B\010\n\006target\"\242\001\n MatchableAttributesCo" + - "nfiguration\0226\n\nattributes\030\001 \001(\0132\".flytei" + - "dl.admin.MatchingAttributes\022\016\n\006domain\030\002 " + - "\001(\t\022\017\n\007project\030\003 \001(\t\022\020\n\010workflow\030\004 \001(\t\022\023" + - "\n\013launch_plan\030\005 \001(\t\"Z\n\036ListMatchableAttr" + - "ibutesRequest\0228\n\rresource_type\030\001 \001(\0162!.f" + - "lyteidl.admin.MatchableResource\"k\n\037ListM" + - "atchableAttributesResponse\022H\n\016configurat" + - "ions\030\001 \003(\01320.flyteidl.admin.MatchableAtt" + - "ributesConfiguration*\224\001\n\021MatchableResour" + - "ce\022\021\n\rTASK_RESOURCE\020\000\022\024\n\020CLUSTER_RESOURC" + - "E\020\001\022\023\n\017EXECUTION_QUEUE\020\002\022\033\n\027EXECUTION_CL" + - "USTER_LABEL\020\003\022$\n QUALITY_OF_SERVICE_SPEC" + - "IFICATION\020\004B3Z1github.com/lyft/flyteidl/" + - "gen/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.Common.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_TaskResourceSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskResourceSpec_descriptor, - new java.lang.String[] { "Cpu", "Gpu", "Memory", "Storage", }); - internal_static_flyteidl_admin_TaskResourceAttributes_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskResourceAttributes_descriptor, - new java.lang.String[] { "Defaults", "Limits", }); - internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor = - internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor, - new java.lang.String[] { "Tags", }); - internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor, - new java.lang.String[] { "Value", }); - internal_static_flyteidl_admin_MatchingAttributes_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_MatchingAttributes_descriptor, - new java.lang.String[] { "TaskResourceAttributes", "ClusterResourceAttributes", "ExecutionQueueAttributes", "ExecutionClusterLabel", "QualityOfService", "Target", }); - internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor, - new java.lang.String[] { "Attributes", "Domain", "Project", "Workflow", "LaunchPlan", }); - internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor, - new java.lang.String[] { "ResourceType", }); - internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor, - new java.lang.String[] { "Configurations", }); - flyteidl.admin.Common.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java b/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java deleted file mode 100644 index d8233be20..000000000 --- a/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java +++ /dev/null @@ -1,11025 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/node_execution.proto - -package flyteidl.admin; - -public final class NodeExecutionOuterClass { - private NodeExecutionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface NodeExecutionGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * A message used to fetch a single node execution entity.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} - */ - public static final class NodeExecutionGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetRequest) - NodeExecutionGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionGetRequest.newBuilder() to construct. - private NodeExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionGetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionGetRequest( - 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: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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 message used to fetch a single node execution entity.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetRequest) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.NodeExecutionGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetRequest) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionGetRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the workflow execution to filter by.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - boolean hasWorkflowExecutionId(); - /** - *
-     * Indicates the workflow execution to filter by.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId(); - /** - *
-     * Indicates the workflow execution to filter by.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to retrieve a list of node execution entities.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} - */ - public static final class NodeExecutionListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionListRequest) - NodeExecutionListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionListRequest.newBuilder() to construct. - private NodeExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionListRequest() { - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionListRequest( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (workflowExecutionId_ != null) { - subBuilder = workflowExecutionId_.toBuilder(); - } - workflowExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflowExecutionId_); - workflowExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - limit_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); - } - - public static final int WORKFLOW_EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; - /** - *
-     * Indicates the workflow execution to filter by.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public boolean hasWorkflowExecutionId() { - return workflowExecutionId_ != null; - } - /** - *
-     * Indicates the workflow execution to filter by.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { - return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; - } - /** - *
-     * Indicates the workflow execution to filter by.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { - return getWorkflowExecutionId(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 4; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - 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(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (workflowExecutionId_ != null) { - output.writeMessage(1, getWorkflowExecutionId()); - } - if (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workflowExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkflowExecutionId()); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) obj; - - if (hasWorkflowExecutionId() != other.hasWorkflowExecutionId()) return false; - if (hasWorkflowExecutionId()) { - if (!getWorkflowExecutionId() - .equals(other.getWorkflowExecutionId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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 (hasWorkflowExecutionId()) { - hash = (37 * hash) + WORKFLOW_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowExecutionId().hashCode(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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; - } - /** - *
-     * Represents a request structure to retrieve a list of node execution entities.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionListRequest) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.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 (workflowExecutionIdBuilder_ == null) { - workflowExecutionId_ = null; - } else { - workflowExecutionId_ = null; - workflowExecutionIdBuilder_ = null; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(this); - if (workflowExecutionIdBuilder_ == null) { - result.workflowExecutionId_ = workflowExecutionId_; - } else { - result.workflowExecutionId_ = workflowExecutionIdBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance()) return this; - if (other.hasWorkflowExecutionId()) { - mergeWorkflowExecutionId(other.getWorkflowExecutionId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowExecutionIdBuilder_; - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public boolean hasWorkflowExecutionId() { - return workflowExecutionIdBuilder_ != null || workflowExecutionId_ != null; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { - if (workflowExecutionIdBuilder_ == null) { - return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; - } else { - return workflowExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder setWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflowExecutionId_ = value; - onChanged(); - } else { - workflowExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder setWorkflowExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (workflowExecutionIdBuilder_ == null) { - workflowExecutionId_ = builderForValue.build(); - onChanged(); - } else { - workflowExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder mergeWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowExecutionIdBuilder_ == null) { - if (workflowExecutionId_ != null) { - workflowExecutionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(workflowExecutionId_).mergeFrom(value).buildPartial(); - } else { - workflowExecutionId_ = value; - } - onChanged(); - } else { - workflowExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder clearWorkflowExecutionId() { - if (workflowExecutionIdBuilder_ == null) { - workflowExecutionId_ = null; - onChanged(); - } else { - workflowExecutionId_ = null; - workflowExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowExecutionIdBuilder() { - - onChanged(); - return getWorkflowExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { - if (workflowExecutionIdBuilder_ != null) { - return workflowExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return workflowExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; - } - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getWorkflowExecutionIdFieldBuilder() { - if (workflowExecutionIdBuilder_ == null) { - workflowExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getWorkflowExecutionId(), - getParentForChildren(), - isClean()); - workflowExecutionId_ = null; - } - return workflowExecutionIdBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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:flyteidl.admin.NodeExecutionListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionListRequest) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionListRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionForTaskListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionForTaskListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - boolean hasTaskExecutionId(); - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId(); - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} - */ - public static final class NodeExecutionForTaskListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionForTaskListRequest) - NodeExecutionForTaskListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionForTaskListRequest.newBuilder() to construct. - private NodeExecutionForTaskListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionForTaskListRequest() { - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionForTaskListRequest( - 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: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (taskExecutionId_ != null) { - subBuilder = taskExecutionId_.toBuilder(); - } - taskExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskExecutionId_); - taskExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - limit_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); - } - - public static final int TASK_EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public boolean hasTaskExecutionId() { - return taskExecutionId_ != null; - } - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { - return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; - } - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { - return getTaskExecutionId(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 4; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - 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(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (taskExecutionId_ != null) { - output.writeMessage(1, getTaskExecutionId()); - } - if (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (taskExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTaskExecutionId()); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) obj; - - if (hasTaskExecutionId() != other.hasTaskExecutionId()) return false; - if (hasTaskExecutionId()) { - if (!getTaskExecutionId() - .equals(other.getTaskExecutionId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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 (hasTaskExecutionId()) { - hash = (37 * hash) + TASK_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskExecutionId().hashCode(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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; - } - /** - *
-     * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionForTaskListRequest) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.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 (taskExecutionIdBuilder_ == null) { - taskExecutionId_ = null; - } else { - taskExecutionId_ = null; - taskExecutionIdBuilder_ = null; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(this); - if (taskExecutionIdBuilder_ == null) { - result.taskExecutionId_ = taskExecutionId_; - } else { - result.taskExecutionId_ = taskExecutionIdBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance()) return this; - if (other.hasTaskExecutionId()) { - mergeTaskExecutionId(other.getTaskExecutionId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskExecutionIdBuilder_; - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public boolean hasTaskExecutionId() { - return taskExecutionIdBuilder_ != null || taskExecutionId_ != null; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { - if (taskExecutionIdBuilder_ == null) { - return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; - } else { - return taskExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder setTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskExecutionId_ = value; - onChanged(); - } else { - taskExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder setTaskExecutionId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (taskExecutionIdBuilder_ == null) { - taskExecutionId_ = builderForValue.build(); - onChanged(); - } else { - taskExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder mergeTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskExecutionIdBuilder_ == null) { - if (taskExecutionId_ != null) { - taskExecutionId_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(taskExecutionId_).mergeFrom(value).buildPartial(); - } else { - taskExecutionId_ = value; - } - onChanged(); - } else { - taskExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder clearTaskExecutionId() { - if (taskExecutionIdBuilder_ == null) { - taskExecutionId_ = null; - onChanged(); - } else { - taskExecutionId_ = null; - taskExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskExecutionIdBuilder() { - - onChanged(); - return getTaskExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { - if (taskExecutionIdBuilder_ != null) { - return taskExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return taskExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; - } - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getTaskExecutionIdFieldBuilder() { - if (taskExecutionIdBuilder_ == null) { - taskExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getTaskExecutionId(), - getParentForChildren(), - isClean()); - taskExecutionId_ = null; - } - return taskExecutionIdBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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:flyteidl.admin.NodeExecutionForTaskListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionForTaskListRequest) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionForTaskListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionForTaskListRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecution) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - java.lang.String getInputUri(); - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - com.google.protobuf.ByteString - getInputUriBytes(); - - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - boolean hasClosure(); - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure(); - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder(); - - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - boolean hasMetadata(); - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata(); - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder(); - } - /** - *
-   * Encapsulates all details for a single node execution entity.
-   * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
-   * sub-workflow, or even a separate child-workflow execution.
-   * The same task can be called repeatedly in a single workflow but each node is unique.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecution} - */ - public static final class NodeExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecution) - NodeExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecution.newBuilder() to construct. - private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecution() { - inputUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecution( - 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: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - inputUri_ = s; - break; - } - case 26: { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int INPUT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object inputUri_; - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - 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(); - inputUri_ = s; - return s; - } - } - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLOSURE_FIELD_NUMBER = 3; - private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_; - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { - return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; - } - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - public static final int METADATA_FIELD_NUMBER = 4; - private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData metadata_; - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata() { - return metadata_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; - } - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (!getInputUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); - } - if (closure_ != null) { - output.writeMessage(3, getClosure()); - } - if (metadata_ != null) { - output.writeMessage(4, getMetadata()); - } - 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 (!getInputUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClosure()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMetadata()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecution other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getInputUri() - .equals(other.getInputUri())) return false; - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) 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) + INPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getInputUri().hashCode(); - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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; - } - /** - *
-     * Encapsulates all details for a single node execution entity.
-     * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
-     * sub-workflow, or even a separate child-workflow execution.
-     * The same task can be called repeatedly in a single workflow but each node is unique.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecution) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecution.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - inputUri_ = ""; - - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.inputUri_ = inputUri_; - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecution other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getInputUri().isEmpty()) { - inputUri_ = other.inputUri_; - onChanged(); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object inputUri_ = ""; - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputUri_ = value; - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder clearInputUri() { - - inputUri_ = getDefaultInstance().getInputUri(); - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputUri_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> closureBuilder_; - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public Builder setClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public Builder setClosure( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public Builder mergeClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - - private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder> metadataBuilder_; - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public Builder setMetadata(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public Builder setMetadata( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public Builder mergeMetadata(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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:flyteidl.admin.NodeExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecution) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecution(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionMetaDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionMetaData) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Represents additional attributes related to a Node Execution
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionMetaData} - */ - public static final class NodeExecutionMetaData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionMetaData) - NodeExecutionMetaDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionMetaData.newBuilder() to construct. - private NodeExecutionMetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionMetaData() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionMetaData( - 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; - 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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; - } - /** - *
-     * Represents additional attributes related to a Node Execution
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionMetaData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionMetaData) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData(this); - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance()) return this; - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.NodeExecutionMetaData) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionMetaData) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionMetaData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionMetaData(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - java.util.List - getNodeExecutionsList(); - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index); - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - int getNodeExecutionsCount(); - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - java.util.List - getNodeExecutionsOrBuilderList(); - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Request structure to retrieve a list of node execution entities.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionList} - */ - public static final class NodeExecutionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionList) - NodeExecutionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionList.newBuilder() to construct. - private NodeExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionList() { - nodeExecutions_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionList( - 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)) { - nodeExecutions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodeExecutions_.add( - input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecution.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); - } - - private int bitField0_; - public static final int NODE_EXECUTIONS_FIELD_NUMBER = 1; - private java.util.List nodeExecutions_; - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List getNodeExecutionsList() { - return nodeExecutions_; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List - getNodeExecutionsOrBuilderList() { - return nodeExecutions_; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public int getNodeExecutionsCount() { - return nodeExecutions_.size(); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { - return nodeExecutions_.get(index); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( - int index) { - return nodeExecutions_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < nodeExecutions_.size(); i++) { - output.writeMessage(1, nodeExecutions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < nodeExecutions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodeExecutions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) obj; - - if (!getNodeExecutionsList() - .equals(other.getNodeExecutionsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getNodeExecutionsCount() > 0) { - hash = (37 * hash) + NODE_EXECUTIONS_FIELD_NUMBER; - hash = (53 * hash) + getNodeExecutionsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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; - } - /** - *
-     * Request structure to retrieve a list of node execution entities.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionList) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodeExecutionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodeExecutionsBuilder_ == null) { - nodeExecutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodeExecutionsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (nodeExecutionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodeExecutions_ = nodeExecutions_; - } else { - result.nodeExecutions_ = nodeExecutionsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance()) return this; - if (nodeExecutionsBuilder_ == null) { - if (!other.nodeExecutions_.isEmpty()) { - if (nodeExecutions_.isEmpty()) { - nodeExecutions_ = other.nodeExecutions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.addAll(other.nodeExecutions_); - } - onChanged(); - } - } else { - if (!other.nodeExecutions_.isEmpty()) { - if (nodeExecutionsBuilder_.isEmpty()) { - nodeExecutionsBuilder_.dispose(); - nodeExecutionsBuilder_ = null; - nodeExecutions_ = other.nodeExecutions_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeExecutionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodeExecutionsFieldBuilder() : null; - } else { - nodeExecutionsBuilder_.addAllMessages(other.nodeExecutions_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List nodeExecutions_ = - java.util.Collections.emptyList(); - private void ensureNodeExecutionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodeExecutions_ = new java.util.ArrayList(nodeExecutions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> nodeExecutionsBuilder_; - - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List getNodeExecutionsList() { - if (nodeExecutionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodeExecutions_); - } else { - return nodeExecutionsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public int getNodeExecutionsCount() { - if (nodeExecutionsBuilder_ == null) { - return nodeExecutions_.size(); - } else { - return nodeExecutionsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { - if (nodeExecutionsBuilder_ == null) { - return nodeExecutions_.get(index); - } else { - return nodeExecutionsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder setNodeExecutions( - int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { - if (nodeExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeExecutionsIsMutable(); - nodeExecutions_.set(index, value); - onChanged(); - } else { - nodeExecutionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder setNodeExecutions( - int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeExecutionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addNodeExecutions(flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { - if (nodeExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeExecutionsIsMutable(); - nodeExecutions_.add(value); - onChanged(); - } else { - nodeExecutionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addNodeExecutions( - int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { - if (nodeExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeExecutionsIsMutable(); - nodeExecutions_.add(index, value); - onChanged(); - } else { - nodeExecutionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addNodeExecutions( - flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.add(builderForValue.build()); - onChanged(); - } else { - nodeExecutionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addNodeExecutions( - int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeExecutionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addAllNodeExecutions( - java.lang.Iterable values) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodeExecutions_); - onChanged(); - } else { - nodeExecutionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder clearNodeExecutions() { - if (nodeExecutionsBuilder_ == null) { - nodeExecutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeExecutionsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder removeNodeExecutions(int index) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.remove(index); - onChanged(); - } else { - nodeExecutionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder getNodeExecutionsBuilder( - int index) { - return getNodeExecutionsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( - int index) { - if (nodeExecutionsBuilder_ == null) { - return nodeExecutions_.get(index); } else { - return nodeExecutionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List - getNodeExecutionsOrBuilderList() { - if (nodeExecutionsBuilder_ != null) { - return nodeExecutionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodeExecutions_); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder() { - return getNodeExecutionsFieldBuilder().addBuilder( - flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder( - int index) { - return getNodeExecutionsFieldBuilder().addBuilder( - index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List - getNodeExecutionsBuilderList() { - return getNodeExecutionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> - getNodeExecutionsFieldBuilder() { - if (nodeExecutionsBuilder_ == null) { - nodeExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder>( - nodeExecutions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodeExecutions_ = null; - } - return nodeExecutionsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.NodeExecutionList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionList) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionList(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionClosure) - com.google.protobuf.MessageOrBuilder { - - /** - * string output_uri = 1; - */ - java.lang.String getOutputUri(); - /** - * string output_uri = 1; - */ - com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - boolean hasError(); - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * The last recorded phase for this node execution.
-     * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - int getPhaseValue(); - /** - *
-     * The last recorded phase for this node execution.
-     * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - flyteidl.core.Execution.NodeExecution.Phase getPhase(); - - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - boolean hasStartedAt(); - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - com.google.protobuf.Timestamp getStartedAt(); - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); - - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - boolean hasDuration(); - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - com.google.protobuf.Duration getDuration(); - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - boolean hasUpdatedAt(); - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - com.google.protobuf.Timestamp getUpdatedAt(); - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); - - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - boolean hasWorkflowNodeMetadata(); - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata(); - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); - - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.OutputResultCase getOutputResultCase(); - - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.TargetMetadataCase getTargetMetadataCase(); - } - /** - *
-   * Container for node execution details and results.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} - */ - public static final class NodeExecutionClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionClosure) - NodeExecutionClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionClosure.newBuilder() to construct. - private NodeExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionClosure() { - phase_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionClosure( - 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(); - outputResultCase_ = 1; - outputResult_ = s; - break; - } - case 18: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 2) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 2; - break; - } - case 24: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startedAt_ != null) { - subBuilder = startedAt_.toBuilder(); - } - startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startedAt_); - startedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - 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 58: { - 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; - } - case 66: { - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder subBuilder = null; - if (targetMetadataCase_ == 8) { - subBuilder = ((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_).toBuilder(); - } - targetMetadata_ = - input.readMessage(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); - targetMetadata_ = subBuilder.buildPartial(); - } - targetMetadataCase_ = 8; - 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); - } - - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUT_URI(1), - ERROR(2), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 1: return OUTPUT_URI; - case 2: return ERROR; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - private int targetMetadataCase_ = 0; - private java.lang.Object targetMetadata_; - public enum TargetMetadataCase - implements com.google.protobuf.Internal.EnumLite { - WORKFLOW_NODE_METADATA(8), - TARGETMETADATA_NOT_SET(0); - private final int value; - private TargetMetadataCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetMetadataCase valueOf(int value) { - return forNumber(value); - } - - public static TargetMetadataCase forNumber(int value) { - switch (value) { - case 8: return WORKFLOW_NODE_METADATA; - case 0: return TARGETMETADATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetMetadataCase - getTargetMetadataCase() { - return TargetMetadataCase.forNumber( - targetMetadataCase_); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 1; - /** - * string output_uri = 1; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - 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(); - if (outputResultCase_ == 1) { - outputResult_ = s; - } - return s; - } - } - /** - * string output_uri = 1; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 1) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 2; - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int PHASE_FIELD_NUMBER = 3; - private int phase_; - /** - *
-     * The last recorded phase for this node execution.
-     * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-     * The last recorded phase for this node execution.
-     * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.NodeExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; - } - - public static final int STARTED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp startedAt_; - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public boolean hasStartedAt() { - return startedAt_ != null; - } - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.Timestamp getStartedAt() { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - return getStartedAt(); - } - - public static final int DURATION_FIELD_NUMBER = 5; - private com.google.protobuf.Duration duration_; - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public boolean hasDuration() { - return duration_ != null; - } - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return getDuration(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - public static final int UPDATED_AT_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp updatedAt_; - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public boolean hasUpdatedAt() { - return updatedAt_ != null; - } - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - return getUpdatedAt(); - } - - public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public boolean hasWorkflowNodeMetadata() { - return targetMetadataCase_ == 8; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { - if (targetMetadataCase_ == 8) { - return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { - if (targetMetadataCase_ == 8) { - return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (outputResultCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); - } - if (outputResultCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(3, phase_); - } - if (startedAt_ != null) { - output.writeMessage(4, getStartedAt()); - } - if (duration_ != null) { - output.writeMessage(5, getDuration()); - } - if (createdAt_ != null) { - output.writeMessage(6, getCreatedAt()); - } - if (updatedAt_ != null) { - output.writeMessage(7, getUpdatedAt()); - } - if (targetMetadataCase_ == 8) { - output.writeMessage(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (outputResultCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); - } - if (outputResultCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, phase_); - } - if (startedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStartedAt()); - } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getDuration()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreatedAt()); - } - if (updatedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdatedAt()); - } - if (targetMetadataCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) obj; - - if (phase_ != other.phase_) return false; - if (hasStartedAt() != other.hasStartedAt()) return false; - if (hasStartedAt()) { - if (!getStartedAt() - .equals(other.getStartedAt())) return false; - } - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) 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 (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 1: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 2: - if (!getError() - .equals(other.getError())) return false; - break; - case 0: - default: - } - if (!getTargetMetadataCase().equals(other.getTargetMetadataCase())) return false; - switch (targetMetadataCase_) { - case 8: - if (!getWorkflowNodeMetadata() - .equals(other.getWorkflowNodeMetadata())) 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) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (hasStartedAt()) { - hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; - hash = (53 * hash) + getStartedAt().hashCode(); - } - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().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(); - } - switch (outputResultCase_) { - case 1: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 2: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - switch (targetMetadataCase_) { - case 8: - hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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; - } - /** - *
-     * Container for node execution details and results.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionClosure) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.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(); - phase_ = 0; - - if (startedAtBuilder_ == null) { - startedAt_ = null; - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - if (durationBuilder_ == null) { - duration_ = null; - } else { - duration_ = null; - durationBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - outputResultCase_ = 0; - outputResult_ = null; - targetMetadataCase_ = 0; - targetMetadata_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(this); - if (outputResultCase_ == 1) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 2) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - result.phase_ = phase_; - if (startedAtBuilder_ == null) { - result.startedAt_ = startedAt_; - } else { - result.startedAt_ = startedAtBuilder_.build(); - } - if (durationBuilder_ == null) { - result.duration_ = duration_; - } else { - result.duration_ = durationBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.build(); - } - if (updatedAtBuilder_ == null) { - result.updatedAt_ = updatedAt_; - } else { - result.updatedAt_ = updatedAtBuilder_.build(); - } - if (targetMetadataCase_ == 8) { - if (workflowNodeMetadataBuilder_ == null) { - result.targetMetadata_ = targetMetadata_; - } else { - result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); - } - } - result.outputResultCase_ = outputResultCase_; - result.targetMetadataCase_ = targetMetadataCase_; - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance()) return this; - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.hasStartedAt()) { - mergeStartedAt(other.getStartedAt()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - if (other.hasUpdatedAt()) { - mergeUpdatedAt(other.getUpdatedAt()); - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 1; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUTRESULT_NOT_SET: { - break; - } - } - switch (other.getTargetMetadataCase()) { - case WORKFLOW_NODE_METADATA: { - mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); - break; - } - case TARGETMETADATA_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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int targetMetadataCase_ = 0; - private java.lang.Object targetMetadata_; - public TargetMetadataCase - getTargetMetadataCase() { - return TargetMetadataCase.forNumber( - targetMetadataCase_); - } - - public Builder clearTargetMetadata() { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - return this; - } - - - /** - * string output_uri = 1; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 1) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string output_uri = 1; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 1) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string output_uri = 1; - */ - public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 1; - outputResult_ = value; - onChanged(); - return this; - } - /** - * string output_uri = 1; - */ - public Builder clearOutputUri() { - if (outputResultCase_ == 1) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - * string output_uri = 1; - */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 1; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 2) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 2) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 2)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 2; - onChanged();; - return errorBuilder_; - } - - private int phase_ = 0; - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.NodeExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; - } - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp startedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public boolean hasStartedAt() { - return startedAtBuilder_ != null || startedAt_ != null; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.Timestamp getStartedAt() { - if (startedAtBuilder_ == null) { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } else { - return startedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public Builder setStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startedAt_ = value; - onChanged(); - } else { - startedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public Builder setStartedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (startedAtBuilder_ == null) { - startedAt_ = builderForValue.build(); - onChanged(); - } else { - startedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (startedAt_ != null) { - startedAt_ = - com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); - } else { - startedAt_ = value; - } - onChanged(); - } else { - startedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public Builder clearStartedAt() { - if (startedAtBuilder_ == null) { - startedAt_ = null; - onChanged(); - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { - - onChanged(); - return getStartedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - if (startedAtBuilder_ != null) { - return startedAtBuilder_.getMessageOrBuilder(); - } else { - return startedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getStartedAtFieldBuilder() { - if (startedAtBuilder_ == null) { - startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartedAt(), - getParentForChildren(), - isClean()); - startedAt_ = null; - } - return startedAtBuilder_; - } - - private com.google.protobuf.Duration duration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public boolean hasDuration() { - return durationBuilder_ != null || duration_ != null; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } else { - return durationBuilder_.getMessage(); - } - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (duration_ != null) { - duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); - } else { - duration_ = value; - } - onChanged(); - } else { - durationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - duration_ = null; - onChanged(); - } else { - duration_ = null; - durationBuilder_ = null; - } - - return this; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); - duration_ = null; - } - return durationBuilder_; - } - - 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_; - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - 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; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - 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; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - 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_; - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public boolean hasUpdatedAt() { - return updatedAtBuilder_ != null || updatedAt_ != null; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - if (updatedAtBuilder_ == null) { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } else { - return updatedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - 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; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public Builder setUpdatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updatedAtBuilder_ == null) { - updatedAt_ = builderForValue.build(); - onChanged(); - } else { - updatedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - 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; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public Builder clearUpdatedAt() { - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - onChanged(); - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { - - onChanged(); - return getUpdatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - if (updatedAtBuilder_ != null) { - return updatedAtBuilder_.getMessageOrBuilder(); - } else { - return updatedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - 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_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public boolean hasWorkflowNodeMetadata() { - return targetMetadataCase_ == 8; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8) { - return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } else { - if (targetMetadataCase_ == 8) { - return workflowNodeMetadataBuilder_.getMessage(); - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder setWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { - if (workflowNodeMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetMetadata_ = value; - onChanged(); - } else { - workflowNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder setWorkflowNodeMetadata( - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder builderForValue) { - if (workflowNodeMetadataBuilder_ == null) { - targetMetadata_ = builderForValue.build(); - onChanged(); - } else { - workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder mergeWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8 && - targetMetadata_ != flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) { - targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.newBuilder((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_) - .mergeFrom(value).buildPartial(); - } else { - targetMetadata_ = value; - } - onChanged(); - } else { - if (targetMetadataCase_ == 8) { - workflowNodeMetadataBuilder_.mergeFrom(value); - } - workflowNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder clearWorkflowNodeMetadata() { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - } - } else { - if (targetMetadataCase_ == 8) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - } - workflowNodeMetadataBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { - return getWorkflowNodeMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { - if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { - return workflowNodeMetadataBuilder_.getMessageOrBuilder(); - } else { - if (targetMetadataCase_ == 8) { - return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> - getWorkflowNodeMetadataFieldBuilder() { - if (workflowNodeMetadataBuilder_ == null) { - if (!(targetMetadataCase_ == 8)) { - targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder>( - (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_, - getParentForChildren(), - isClean()); - targetMetadata_ = null; - } - targetMetadataCase_ = 8; - onChanged();; - return workflowNodeMetadataBuilder_; - } - @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:flyteidl.admin.NodeExecutionClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionClosure) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionClosure(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowNodeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowNodeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - boolean hasExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - } - /** - *
-   * Metadata for a WorkflowNode
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} - */ - public static final class WorkflowNodeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowNodeMetadata) - WorkflowNodeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowNodeMetadata.newBuilder() to construct. - private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowNodeMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowNodeMetadata( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); - } - - public static final int EXECUTIONID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - 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 (executionId_ != null) { - output.writeMessage(1, getExecutionId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecutionId()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) obj; - - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) 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 (hasExecutionId()) { - hash = (37 * hash) + EXECUTIONID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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; - } - /** - *
-     * Metadata for a WorkflowNode
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowNodeMetadata) - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.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 (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata build() { - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(this); - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) return this; - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - @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:flyteidl.admin.WorkflowNodeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowNodeMetadata) - private static final flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowNodeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowNodeMetadata(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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionGetDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Request structure to fetch inputs and output urls for a node execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} - */ - public static final class NodeExecutionGetDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataRequest) - NodeExecutionGetDataRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionGetDataRequest.newBuilder() to construct. - private NodeExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionGetDataRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionGetDataRequest( - 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: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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; - } - /** - *
-     * Request structure to fetch inputs and output urls for a node execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataRequest) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.NodeExecutionGetDataRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataRequest) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionGetDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionGetDataRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionGetDataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - boolean hasInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - flyteidl.admin.Common.UrlBlob getInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); - - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - boolean hasOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - flyteidl.admin.Common.UrlBlob getOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); - } - /** - *
-   * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} - */ - public static final class NodeExecutionGetDataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataResponse) - NodeExecutionGetDataResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionGetDataResponse.newBuilder() to construct. - private NodeExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionGetDataResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionGetDataResponse( - 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: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private flyteidl.admin.Common.UrlBlob inputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlob getInputs() { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private flyteidl.admin.Common.UrlBlob outputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public boolean hasOutputs() { - return outputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlob getOutputs() { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - 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 (inputs_ != null) { - output.writeMessage(1, getInputs()); - } - if (outputs_ != null) { - output.writeMessage(2, getOutputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputs()); - } - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputs()); - } - 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) obj; - - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) 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 (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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; - } - /** - *
-     * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataResponse) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.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 (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance()) return this; - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - 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 { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.UrlBlob inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlob getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder setInputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.admin.Common.UrlBlob outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlob getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder setOutputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - @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:flyteidl.admin.NodeExecutionGetDataResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataResponse) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionGetDataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionGetDataResponse(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_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#flyteidl/admin/node_execution.proto\022\016f" + - "lyteidl.admin\032\033flyteidl/admin/common.pro" + - "to\032\035flyteidl/core/execution.proto\032\036flyte" + - "idl/core/identifier.proto\032\037google/protob" + - "uf/timestamp.proto\032\036google/protobuf/dura" + - "tion.proto\"M\n\027NodeExecutionGetRequest\0222\n" + - "\002id\030\001 \001(\0132&.flyteidl.core.NodeExecutionI" + - "dentifier\"\273\001\n\030NodeExecutionListRequest\022I" + - "\n\025workflow_execution_id\030\001 \001(\0132*.flyteidl" + - ".core.WorkflowExecutionIdentifier\022\r\n\005lim" + - "it\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t" + - "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"" + - "\272\001\n\037NodeExecutionForTaskListRequest\022A\n\021t" + - "ask_execution_id\030\001 \001(\0132&.flyteidl.core.T" + - "askExecutionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n" + - "\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by" + - "\030\005 \001(\0132\024.flyteidl.admin.Sort\"\306\001\n\rNodeExe" + - "cution\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeE" + - "xecutionIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n" + - "\007closure\030\003 \001(\0132$.flyteidl.admin.NodeExec" + - "utionClosure\0227\n\010metadata\030\004 \001(\0132%.flyteid" + - "l.admin.NodeExecutionMetaData\"\027\n\025NodeExe" + - "cutionMetaData\"Z\n\021NodeExecutionList\0226\n\017n" + - "ode_executions\030\001 \003(\0132\035.flyteidl.admin.No" + - "deExecution\022\r\n\005token\030\002 \001(\t\"\270\003\n\024NodeExecu" + - "tionClosure\022\024\n\noutput_uri\030\001 \001(\tH\000\022.\n\005err" + - "or\030\002 \001(\0132\035.flyteidl.core.ExecutionErrorH" + - "\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.core.NodeExe" + - "cution.Phase\022.\n\nstarted_at\030\004 \001(\0132\032.googl" + - "e.protobuf.Timestamp\022+\n\010duration\030\005 \001(\0132\031" + - ".google.protobuf.Duration\022.\n\ncreated_at\030" + - "\006 \001(\0132\032.google.protobuf.Timestamp\022.\n\nupd" + - "ated_at\030\007 \001(\0132\032.google.protobuf.Timestam" + - "p\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyt" + - "eidl.admin.WorkflowNodeMetadataH\001B\017\n\rout" + - "put_resultB\021\n\017target_metadata\"W\n\024Workflo" + - "wNodeMetadata\022?\n\013executionId\030\001 \001(\0132*.fly" + - "teidl.core.WorkflowExecutionIdentifier\"Q" + - "\n\033NodeExecutionGetDataRequest\0222\n\002id\030\001 \001(" + - "\0132&.flyteidl.core.NodeExecutionIdentifie" + - "r\"q\n\034NodeExecutionGetDataResponse\022\'\n\006inp" + - "uts\030\001 \001(\0132\027.flyteidl.admin.UrlBlob\022(\n\007ou" + - "tputs\030\002 \001(\0132\027.flyteidl.admin.UrlBlobB3Z1" + - "github.com/lyft/flyteidl/gen/pb-go/flyte" + - "idl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.Common.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor, - new java.lang.String[] { "WorkflowExecutionId", "Limit", "Token", "Filters", "SortBy", }); - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor, - new java.lang.String[] { "TaskExecutionId", "Limit", "Token", "Filters", "SortBy", }); - internal_static_flyteidl_admin_NodeExecution_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecution_descriptor, - new java.lang.String[] { "Id", "InputUri", "Closure", "Metadata", }); - internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_NodeExecutionList_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionList_descriptor, - new java.lang.String[] { "NodeExecutions", "Token", }); - internal_static_flyteidl_admin_NodeExecutionClosure_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionClosure_descriptor, - new java.lang.String[] { "OutputUri", "Error", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "WorkflowNodeMetadata", "OutputResult", "TargetMetadata", }); - internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor, - new java.lang.String[] { "ExecutionId", }); - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor, - new java.lang.String[] { "Inputs", "Outputs", }); - flyteidl.admin.Common.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/Notification.java b/gen/pb-java/flyteidl/admin/Notification.java deleted file mode 100644 index 97b698ff0..000000000 --- a/gen/pb-java/flyteidl/admin/Notification.java +++ /dev/null @@ -1,1325 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/notification.proto - -package flyteidl.admin; - -public final class Notification { - private Notification() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EmailMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailMessage) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.util.List - getRecipientsEmailList(); - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - int getRecipientsEmailCount(); - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.lang.String getRecipientsEmail(int index); - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - com.google.protobuf.ByteString - getRecipientsEmailBytes(int index); - - /** - *
-     * The email of the sender.
-     * This populates the FROM field.
-     * 
- * - * string sender_email = 2; - */ - java.lang.String getSenderEmail(); - /** - *
-     * The email of the sender.
-     * This populates the FROM field.
-     * 
- * - * string sender_email = 2; - */ - com.google.protobuf.ByteString - getSenderEmailBytes(); - - /** - *
-     * The content of the subject line.
-     * This populates the SUBJECT field.
-     * 
- * - * string subject_line = 3; - */ - java.lang.String getSubjectLine(); - /** - *
-     * The content of the subject line.
-     * This populates the SUBJECT field.
-     * 
- * - * string subject_line = 3; - */ - com.google.protobuf.ByteString - getSubjectLineBytes(); - - /** - *
-     * The content of the email body.
-     * This populates the BODY field.
-     * 
- * - * string body = 4; - */ - java.lang.String getBody(); - /** - *
-     * The content of the email body.
-     * This populates the BODY field.
-     * 
- * - * string body = 4; - */ - com.google.protobuf.ByteString - getBodyBytes(); - } - /** - *
-   * Represents the Email object that is sent to a publisher/subscriber
-   * to forward the notification.
-   * Note: This is internal to Admin and doesn't need to be exposed to other components.
-   * 
- * - * Protobuf type {@code flyteidl.admin.EmailMessage} - */ - public static final class EmailMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailMessage) - EmailMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use EmailMessage.newBuilder() to construct. - private EmailMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EmailMessage() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - senderEmail_ = ""; - subjectLine_ = ""; - body_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmailMessage( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recipientsEmail_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - senderEmail_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - subjectLine_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - body_ = 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)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); - } - - private int bitField0_; - public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList recipientsEmail_; - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_; - } - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - - public static final int SENDER_EMAIL_FIELD_NUMBER = 2; - private volatile java.lang.Object senderEmail_; - /** - *
-     * The email of the sender.
-     * This populates the FROM field.
-     * 
- * - * string sender_email = 2; - */ - public java.lang.String getSenderEmail() { - java.lang.Object ref = senderEmail_; - 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(); - senderEmail_ = s; - return s; - } - } - /** - *
-     * The email of the sender.
-     * This populates the FROM field.
-     * 
- * - * string sender_email = 2; - */ - public com.google.protobuf.ByteString - getSenderEmailBytes() { - java.lang.Object ref = senderEmail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - senderEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBJECT_LINE_FIELD_NUMBER = 3; - private volatile java.lang.Object subjectLine_; - /** - *
-     * The content of the subject line.
-     * This populates the SUBJECT field.
-     * 
- * - * string subject_line = 3; - */ - public java.lang.String getSubjectLine() { - java.lang.Object ref = subjectLine_; - 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(); - subjectLine_ = s; - return s; - } - } - /** - *
-     * The content of the subject line.
-     * This populates the SUBJECT field.
-     * 
- * - * string subject_line = 3; - */ - public com.google.protobuf.ByteString - getSubjectLineBytes() { - java.lang.Object ref = subjectLine_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subjectLine_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BODY_FIELD_NUMBER = 4; - private volatile java.lang.Object body_; - /** - *
-     * The content of the email body.
-     * This populates the BODY field.
-     * 
- * - * string body = 4; - */ - public java.lang.String getBody() { - java.lang.Object ref = body_; - 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(); - body_ = s; - return s; - } - } - /** - *
-     * The content of the email body.
-     * This populates the BODY field.
-     * 
- * - * string body = 4; - */ - public com.google.protobuf.ByteString - getBodyBytes() { - java.lang.Object ref = body_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - body_ = 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 { - for (int i = 0; i < recipientsEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); - } - if (!getSenderEmailBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, senderEmail_); - } - if (!getSubjectLineBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subjectLine_); - } - if (!getBodyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, body_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < recipientsEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getRecipientsEmailList().size(); - } - if (!getSenderEmailBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, senderEmail_); - } - if (!getSubjectLineBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subjectLine_); - } - if (!getBodyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, body_); - } - 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 flyteidl.admin.Notification.EmailMessage)) { - return super.equals(obj); - } - flyteidl.admin.Notification.EmailMessage other = (flyteidl.admin.Notification.EmailMessage) obj; - - if (!getRecipientsEmailList() - .equals(other.getRecipientsEmailList())) return false; - if (!getSenderEmail() - .equals(other.getSenderEmail())) return false; - if (!getSubjectLine() - .equals(other.getSubjectLine())) return false; - if (!getBody() - .equals(other.getBody())) 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 (getRecipientsEmailCount() > 0) { - hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getRecipientsEmailList().hashCode(); - } - hash = (37 * hash) + SENDER_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getSenderEmail().hashCode(); - hash = (37 * hash) + SUBJECT_LINE_FIELD_NUMBER; - hash = (53 * hash) + getSubjectLine().hashCode(); - hash = (37 * hash) + BODY_FIELD_NUMBER; - hash = (53 * hash) + getBody().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Notification.EmailMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Notification.EmailMessage 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 flyteidl.admin.Notification.EmailMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Notification.EmailMessage 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 flyteidl.admin.Notification.EmailMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Notification.EmailMessage 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(flyteidl.admin.Notification.EmailMessage 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; - } - /** - *
-     * Represents the Email object that is sent to a publisher/subscriber
-     * to forward the notification.
-     * Note: This is internal to Admin and doesn't need to be exposed to other components.
-     * 
- * - * Protobuf type {@code flyteidl.admin.EmailMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailMessage) - flyteidl.admin.Notification.EmailMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); - } - - // Construct using flyteidl.admin.Notification.EmailMessage.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(); - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - senderEmail_ = ""; - - subjectLine_ = ""; - - body_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Notification.EmailMessage getDefaultInstanceForType() { - return flyteidl.admin.Notification.EmailMessage.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Notification.EmailMessage build() { - flyteidl.admin.Notification.EmailMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Notification.EmailMessage buildPartial() { - flyteidl.admin.Notification.EmailMessage result = new flyteidl.admin.Notification.EmailMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.recipientsEmail_ = recipientsEmail_; - result.senderEmail_ = senderEmail_; - result.subjectLine_ = subjectLine_; - result.body_ = body_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.Notification.EmailMessage) { - return mergeFrom((flyteidl.admin.Notification.EmailMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Notification.EmailMessage other) { - if (other == flyteidl.admin.Notification.EmailMessage.getDefaultInstance()) return this; - if (!other.recipientsEmail_.isEmpty()) { - if (recipientsEmail_.isEmpty()) { - recipientsEmail_ = other.recipientsEmail_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRecipientsEmailIsMutable(); - recipientsEmail_.addAll(other.recipientsEmail_); - } - onChanged(); - } - if (!other.getSenderEmail().isEmpty()) { - senderEmail_ = other.senderEmail_; - onChanged(); - } - if (!other.getSubjectLine().isEmpty()) { - subjectLine_ = other.subjectLine_; - onChanged(); - } - if (!other.getBody().isEmpty()) { - body_ = other.body_; - 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 { - flyteidl.admin.Notification.EmailMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Notification.EmailMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRecipientsEmailIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_.getUnmodifiableView(); - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder setRecipientsEmail( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addAllRecipientsEmail( - java.lang.Iterable values) { - ensureRecipientsEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipientsEmail_); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder clearRecipientsEmail() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - - private java.lang.Object senderEmail_ = ""; - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public java.lang.String getSenderEmail() { - java.lang.Object ref = senderEmail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - senderEmail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public com.google.protobuf.ByteString - getSenderEmailBytes() { - java.lang.Object ref = senderEmail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - senderEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public Builder setSenderEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - senderEmail_ = value; - onChanged(); - return this; - } - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public Builder clearSenderEmail() { - - senderEmail_ = getDefaultInstance().getSenderEmail(); - onChanged(); - return this; - } - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public Builder setSenderEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - senderEmail_ = value; - onChanged(); - return this; - } - - private java.lang.Object subjectLine_ = ""; - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public java.lang.String getSubjectLine() { - java.lang.Object ref = subjectLine_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subjectLine_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public com.google.protobuf.ByteString - getSubjectLineBytes() { - java.lang.Object ref = subjectLine_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subjectLine_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public Builder setSubjectLine( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subjectLine_ = value; - onChanged(); - return this; - } - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public Builder clearSubjectLine() { - - subjectLine_ = getDefaultInstance().getSubjectLine(); - onChanged(); - return this; - } - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public Builder setSubjectLineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subjectLine_ = value; - onChanged(); - return this; - } - - private java.lang.Object body_ = ""; - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public java.lang.String getBody() { - java.lang.Object ref = body_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - body_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public com.google.protobuf.ByteString - getBodyBytes() { - java.lang.Object ref = body_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - body_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public Builder setBody( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - body_ = value; - onChanged(); - return this; - } - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public Builder clearBody() { - - body_ = getDefaultInstance().getBody(); - onChanged(); - return this; - } - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public Builder setBodyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - body_ = 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:flyteidl.admin.EmailMessage) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailMessage) - private static final flyteidl.admin.Notification.EmailMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Notification.EmailMessage(); - } - - public static flyteidl.admin.Notification.EmailMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmailMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmailMessage(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 flyteidl.admin.Notification.EmailMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_EmailMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_EmailMessage_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!flyteidl/admin/notification.proto\022\016fly" + - "teidl.admin\"b\n\014EmailMessage\022\030\n\020recipient" + - "s_email\030\001 \003(\t\022\024\n\014sender_email\030\002 \001(\t\022\024\n\014s" + - "ubject_line\030\003 \001(\t\022\014\n\004body\030\004 \001(\tB3Z1githu" + - "b.com/lyft/flyteidl/gen/pb-go/flyteidl/a" + - "dminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_admin_EmailMessage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_EmailMessage_descriptor, - new java.lang.String[] { "RecipientsEmail", "SenderEmail", "SubjectLine", "Body", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java b/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java deleted file mode 100644 index 329aae51e..000000000 --- a/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java +++ /dev/null @@ -1,4856 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/project_domain_attributes.proto - -package flyteidl.admin; - -public final class ProjectDomainAttributesOuterClass { - private ProjectDomainAttributesOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ProjectDomainAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - boolean hasMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributes} - */ - public static final class ProjectDomainAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributes) - ProjectDomainAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributes.newBuilder() to construct. - private ProjectDomainAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributes() { - project_ = ""; - domain_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributes( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; - if (matchingAttributes_ != null) { - subBuilder = matchingAttributes_.toBuilder(); - } - matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(matchingAttributes_); - matchingAttributes_ = 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 3; - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public boolean hasMatchingAttributes() { - return matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - return getMatchingAttributes(); - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (matchingAttributes_ != null) { - output.writeMessage(3, getMatchingAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (matchingAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMatchingAttributes()); - } - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; - if (hasMatchingAttributes()) { - if (!getMatchingAttributes() - .equals(other.getMatchingAttributes())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - if (hasMatchingAttributes()) { - hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getMatchingAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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 flyteidl.admin.ProjectDomainAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributes) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.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(); - project_ = ""; - - domain_ = ""; - - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes(this); - result.project_ = project_; - result.domain_ = domain_; - if (matchingAttributesBuilder_ == null) { - result.matchingAttributes_ = matchingAttributes_; - } else { - result.matchingAttributes_ = matchingAttributesBuilder_.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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.hasMatchingAttributes()) { - mergeMatchingAttributes(other.getMatchingAttributes()); - } - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public boolean hasMatchingAttributes() { - return matchingAttributesBuilder_ != null || matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } else { - return matchingAttributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - matchingAttributes_ = value; - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public Builder setMatchingAttributes( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = builderForValue.build(); - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (matchingAttributes_ != null) { - matchingAttributes_ = - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); - } else { - matchingAttributes_ = value; - } - onChanged(); - } else { - matchingAttributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public Builder clearMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - onChanged(); - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { - - onChanged(); - return getMatchingAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - if (matchingAttributesBuilder_ != null) { - return matchingAttributesBuilder_.getMessageOrBuilder(); - } else { - return matchingAttributes_ == null ? - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> - getMatchingAttributesFieldBuilder() { - if (matchingAttributesBuilder_ == null) { - matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( - getMatchingAttributes(), - getParentForChildren(), - isClean()); - matchingAttributes_ = null; - } - return matchingAttributesBuilder_; - } - @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:flyteidl.admin.ProjectDomainAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributes) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributes(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes(); - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder(); - } - /** - *
-   * Sets custom attributes for a project-domain combination.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateRequest} - */ - public static final class ProjectDomainAttributesUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - ProjectDomainAttributesUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesUpdateRequest.newBuilder() to construct. - private ProjectDomainAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesUpdateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesUpdateRequest( - 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: { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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; - } - /** - *
-     * Sets custom attributes for a project-domain combination.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesUpdateRequest(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateResponse} - */ - public static final class ProjectDomainAttributesUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - ProjectDomainAttributesUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesUpdateResponse.newBuilder() to construct. - private ProjectDomainAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesUpdateResponse( - 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; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse(this); - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesUpdateResponse(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - int getResourceTypeValue(); - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetRequest} - */ - public static final class ProjectDomainAttributesGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesGetRequest) - ProjectDomainAttributesGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesGetRequest.newBuilder() to construct. - private ProjectDomainAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesGetRequest() { - project_ = ""; - domain_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesGetRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; - private int resourceType_; - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(3, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, resourceType_); - } - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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 flyteidl.admin.ProjectDomainAttributesGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesGetRequest) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.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(); - project_ = ""; - - domain_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.resourceType_ = resourceType_; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - 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:flyteidl.admin.ProjectDomainAttributesGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetRequest) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesGetRequest(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesGetResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesGetResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes(); - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetResponse} - */ - public static final class ProjectDomainAttributesGetResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesGetResponse) - ProjectDomainAttributesGetResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesGetResponse.newBuilder() to construct. - private ProjectDomainAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesGetResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesGetResponse( - 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: { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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 flyteidl.admin.ProjectDomainAttributesGetResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesGetResponse) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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:flyteidl.admin.ProjectDomainAttributesGetResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetResponse) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesGetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesGetResponse(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesDeleteRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - int getResourceTypeValue(); - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteRequest} - */ - public static final class ProjectDomainAttributesDeleteRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - ProjectDomainAttributesDeleteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesDeleteRequest.newBuilder() to construct. - private ProjectDomainAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesDeleteRequest() { - project_ = ""; - domain_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesDeleteRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; - private int resourceType_; - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(3, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, resourceType_); - } - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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 flyteidl.admin.ProjectDomainAttributesDeleteRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.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(); - project_ = ""; - - domain_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.resourceType_ = resourceType_; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - 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:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesDeleteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesDeleteRequest(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesDeleteResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteResponse} - */ - public static final class ProjectDomainAttributesDeleteResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - ProjectDomainAttributesDeleteResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesDeleteResponse.newBuilder() to construct. - private ProjectDomainAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesDeleteResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesDeleteResponse( - 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; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse(this); - 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesDeleteResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesDeleteResponse(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_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.flyteidl/admin/project_domain_attribut" + - "es.proto\022\016flyteidl.admin\032\'flyteidl/admin" + - "/matchable_resource.proto\"{\n\027ProjectDoma" + - "inAttributes\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030" + - "\002 \001(\t\022?\n\023matching_attributes\030\003 \001(\0132\".fly" + - "teidl.admin.MatchingAttributes\"c\n$Projec" + - "tDomainAttributesUpdateRequest\022;\n\nattrib" + - "utes\030\001 \001(\0132\'.flyteidl.admin.ProjectDomai" + - "nAttributes\"\'\n%ProjectDomainAttributesUp" + - "dateResponse\"~\n!ProjectDomainAttributesG" + - "etRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + - "(\t\0228\n\rresource_type\030\003 \001(\0162!.flyteidl.adm" + - "in.MatchableResource\"a\n\"ProjectDomainAtt" + - "ributesGetResponse\022;\n\nattributes\030\001 \001(\0132\'" + - ".flyteidl.admin.ProjectDomainAttributes\"" + - "\201\001\n$ProjectDomainAttributesDeleteRequest" + - "\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\0228\n\rres" + - "ource_type\030\003 \001(\0162!.flyteidl.admin.Matcha" + - "bleResource\"\'\n%ProjectDomainAttributesDe" + - "leteResponseB3Z1github.com/lyft/flyteidl" + - "/gen/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor, - new java.lang.String[] { "Project", "Domain", "MatchingAttributes", }); - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "ResourceType", }); - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "ResourceType", }); - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor, - new java.lang.String[] { }); - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/ProjectOuterClass.java b/gen/pb-java/flyteidl/admin/ProjectOuterClass.java deleted file mode 100644 index e0777663a..000000000 --- a/gen/pb-java/flyteidl/admin/ProjectOuterClass.java +++ /dev/null @@ -1,4299 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/project.proto - -package flyteidl.admin; - -public final class ProjectOuterClass { - private ProjectOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DomainOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Domain) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - */ - java.lang.String getId(); - /** - * string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - java.lang.String getName(); - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - *
-   * Namespace within a project commonly used to differentiate between different service instances.
-   * e.g. "production", "development", etc.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Domain} - */ - public static final class Domain extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Domain) - DomainOrBuilder { - private static final long serialVersionUID = 0L; - // Use Domain.newBuilder() to construct. - private Domain(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Domain() { - id_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Domain( - 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; - } - 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * string id = 1; - */ - 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; - } - } - /** - * string id = 1; - */ - 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_; - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - 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; - } - } - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof flyteidl.admin.ProjectOuterClass.Domain)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.Domain other = (flyteidl.admin.ProjectOuterClass.Domain) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Domain 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 flyteidl.admin.ProjectOuterClass.Domain parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Domain 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 flyteidl.admin.ProjectOuterClass.Domain parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Domain 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(flyteidl.admin.ProjectOuterClass.Domain 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; - } - /** - *
-     * Namespace within a project commonly used to differentiate between different service instances.
-     * e.g. "production", "development", etc.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Domain} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Domain) - flyteidl.admin.ProjectOuterClass.DomainOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.Domain.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_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Domain getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Domain build() { - flyteidl.admin.ProjectOuterClass.Domain result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Domain buildPartial() { - flyteidl.admin.ProjectOuterClass.Domain result = new flyteidl.admin.ProjectOuterClass.Domain(this); - result.id_ = id_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.admin.ProjectOuterClass.Domain) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.Domain)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Domain other) { - if (other == flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - flyteidl.admin.ProjectOuterClass.Domain parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.Domain) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object id_ = ""; - /** - * string id = 1; - */ - 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; - } - } - /** - * string id = 1; - */ - 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; - } - } - /** - * string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - * string id = 1; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * string id = 1; - */ - 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_ = ""; - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - 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; - } - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - 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; - } - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:flyteidl.admin.Domain) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Domain) - private static final flyteidl.admin.ProjectOuterClass.Domain DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Domain(); - } - - public static flyteidl.admin.ProjectOuterClass.Domain getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Domain parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Domain(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 flyteidl.admin.ProjectOuterClass.Domain getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Project) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - */ - java.lang.String getId(); - /** - * string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - java.lang.String getName(); - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - java.util.List - getDomainsList(); - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - flyteidl.admin.ProjectOuterClass.Domain getDomains(int index); - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - int getDomainsCount(); - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - java.util.List - getDomainsOrBuilderList(); - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( - int index); - - /** - * string description = 4; - */ - java.lang.String getDescription(); - /** - * string description = 4; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - } - /** - *
-   * Top-level namespace used to classify different entities like workflows and executions.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Project} - */ - public static final class Project extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Project) - ProjectOrBuilder { - private static final long serialVersionUID = 0L; - // Use Project.newBuilder() to construct. - private Project(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Project() { - id_ = ""; - name_ = ""; - domains_ = java.util.Collections.emptyList(); - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Project( - 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: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - domains_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - domains_.add( - input.readMessage(flyteidl.admin.ProjectOuterClass.Domain.parser(), extensionRegistry)); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = 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_ & 0x00000004) != 0)) { - domains_ = java.util.Collections.unmodifiableList(domains_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * string id = 1; - */ - 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; - } - } - /** - * string id = 1; - */ - 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_; - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - 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; - } - } - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - 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 DOMAINS_FIELD_NUMBER = 3; - private java.util.List domains_; - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List getDomainsList() { - return domains_; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List - getDomainsOrBuilderList() { - return domains_; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public int getDomainsCount() { - return domains_.size(); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { - return domains_.get(index); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( - int index) { - return domains_.get(index); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - private volatile java.lang.Object description_; - /** - * string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - * string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = 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 (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - for (int i = 0; i < domains_.size(); i++) { - output.writeMessage(3, domains_.get(i)); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - for (int i = 0; i < domains_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, domains_.get(i)); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - 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 flyteidl.admin.ProjectOuterClass.Project)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.Project other = (flyteidl.admin.ProjectOuterClass.Project) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getDomainsList() - .equals(other.getDomainsList())) return false; - if (!getDescription() - .equals(other.getDescription())) 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(); - if (getDomainsCount() > 0) { - hash = (37 * hash) + DOMAINS_FIELD_NUMBER; - hash = (53 * hash) + getDomainsList().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Project 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 flyteidl.admin.ProjectOuterClass.Project parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Project 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 flyteidl.admin.ProjectOuterClass.Project parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Project 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(flyteidl.admin.ProjectOuterClass.Project 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; - } - /** - *
-     * Top-level namespace used to classify different entities like workflows and executions.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Project} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Project) - flyteidl.admin.ProjectOuterClass.ProjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.Project.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDomainsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - name_ = ""; - - if (domainsBuilder_ == null) { - domains_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - domainsBuilder_.clear(); - } - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Project getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Project build() { - flyteidl.admin.ProjectOuterClass.Project result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Project buildPartial() { - flyteidl.admin.ProjectOuterClass.Project result = new flyteidl.admin.ProjectOuterClass.Project(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.id_ = id_; - result.name_ = name_; - if (domainsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - domains_ = java.util.Collections.unmodifiableList(domains_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.domains_ = domains_; - } else { - result.domains_ = domainsBuilder_.build(); - } - result.description_ = description_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.ProjectOuterClass.Project) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.Project)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Project other) { - if (other == flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (domainsBuilder_ == null) { - if (!other.domains_.isEmpty()) { - if (domains_.isEmpty()) { - domains_ = other.domains_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureDomainsIsMutable(); - domains_.addAll(other.domains_); - } - onChanged(); - } - } else { - if (!other.domains_.isEmpty()) { - if (domainsBuilder_.isEmpty()) { - domainsBuilder_.dispose(); - domainsBuilder_ = null; - domains_ = other.domains_; - bitField0_ = (bitField0_ & ~0x00000004); - domainsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDomainsFieldBuilder() : null; - } else { - domainsBuilder_.addAllMessages(other.domains_); - } - } - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - 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 { - flyteidl.admin.ProjectOuterClass.Project parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.Project) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * string id = 1; - */ - 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; - } - } - /** - * string id = 1; - */ - 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; - } - } - /** - * string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - * string id = 1; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * string id = 1; - */ - 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_ = ""; - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - 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; - } - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - 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; - } - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.util.List domains_ = - java.util.Collections.emptyList(); - private void ensureDomainsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - domains_ = new java.util.ArrayList(domains_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> domainsBuilder_; - - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List getDomainsList() { - if (domainsBuilder_ == null) { - return java.util.Collections.unmodifiableList(domains_); - } else { - return domainsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public int getDomainsCount() { - if (domainsBuilder_ == null) { - return domains_.size(); - } else { - return domainsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { - if (domainsBuilder_ == null) { - return domains_.get(index); - } else { - return domainsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder setDomains( - int index, flyteidl.admin.ProjectOuterClass.Domain value) { - if (domainsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); - domains_.set(index, value); - onChanged(); - } else { - domainsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder setDomains( - int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - domains_.set(index, builderForValue.build()); - onChanged(); - } else { - domainsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addDomains(flyteidl.admin.ProjectOuterClass.Domain value) { - if (domainsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); - domains_.add(value); - onChanged(); - } else { - domainsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addDomains( - int index, flyteidl.admin.ProjectOuterClass.Domain value) { - if (domainsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); - domains_.add(index, value); - onChanged(); - } else { - domainsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addDomains( - flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - domains_.add(builderForValue.build()); - onChanged(); - } else { - domainsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addDomains( - int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - domains_.add(index, builderForValue.build()); - onChanged(); - } else { - domainsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addAllDomains( - java.lang.Iterable values) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, domains_); - onChanged(); - } else { - domainsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder clearDomains() { - if (domainsBuilder_ == null) { - domains_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - domainsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder removeDomains(int index) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - domains_.remove(index); - onChanged(); - } else { - domainsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain.Builder getDomainsBuilder( - int index) { - return getDomainsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( - int index) { - if (domainsBuilder_ == null) { - return domains_.get(index); } else { - return domainsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List - getDomainsOrBuilderList() { - if (domainsBuilder_ != null) { - return domainsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(domains_); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder() { - return getDomainsFieldBuilder().addBuilder( - flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder( - int index) { - return getDomainsFieldBuilder().addBuilder( - index, flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List - getDomainsBuilderList() { - return getDomainsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> - getDomainsFieldBuilder() { - if (domainsBuilder_ == null) { - domainsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder>( - domains_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - domains_ = null; - } - return domainsBuilder_; - } - - private java.lang.Object description_ = ""; - /** - * string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 4; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 4; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 4; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = 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:flyteidl.admin.Project) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Project) - private static final flyteidl.admin.ProjectOuterClass.Project DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Project(); - } - - public static flyteidl.admin.ProjectOuterClass.Project getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Project parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Project(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 flyteidl.admin.ProjectOuterClass.Project getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Projects) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - java.util.List - getProjectsList(); - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - flyteidl.admin.ProjectOuterClass.Project getProjects(int index); - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - int getProjectsCount(); - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - java.util.List - getProjectsOrBuilderList(); - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.admin.Projects} - */ - public static final class Projects extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Projects) - ProjectsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Projects.newBuilder() to construct. - private Projects(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Projects() { - projects_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Projects( - 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)) { - projects_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - projects_.add( - input.readMessage(flyteidl.admin.ProjectOuterClass.Project.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)) { - projects_ = java.util.Collections.unmodifiableList(projects_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); - } - - public static final int PROJECTS_FIELD_NUMBER = 1; - private java.util.List projects_; - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List getProjectsList() { - return projects_; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List - getProjectsOrBuilderList() { - return projects_; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public int getProjectsCount() { - return projects_.size(); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { - return projects_.get(index); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( - int index) { - return projects_.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 < projects_.size(); i++) { - output.writeMessage(1, projects_.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 < projects_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, projects_.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 flyteidl.admin.ProjectOuterClass.Projects)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.Projects other = (flyteidl.admin.ProjectOuterClass.Projects) obj; - - if (!getProjectsList() - .equals(other.getProjectsList())) 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 (getProjectsCount() > 0) { - hash = (37 * hash) + PROJECTS_FIELD_NUMBER; - hash = (53 * hash) + getProjectsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Projects 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 flyteidl.admin.ProjectOuterClass.Projects parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Projects 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 flyteidl.admin.ProjectOuterClass.Projects parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Projects 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(flyteidl.admin.ProjectOuterClass.Projects 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 flyteidl.admin.Projects} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Projects) - flyteidl.admin.ProjectOuterClass.ProjectsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.Projects.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getProjectsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (projectsBuilder_ == null) { - projects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - projectsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Projects getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Projects build() { - flyteidl.admin.ProjectOuterClass.Projects result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Projects buildPartial() { - flyteidl.admin.ProjectOuterClass.Projects result = new flyteidl.admin.ProjectOuterClass.Projects(this); - int from_bitField0_ = bitField0_; - if (projectsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - projects_ = java.util.Collections.unmodifiableList(projects_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.projects_ = projects_; - } else { - result.projects_ = projectsBuilder_.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 flyteidl.admin.ProjectOuterClass.Projects) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.Projects)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Projects other) { - if (other == flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance()) return this; - if (projectsBuilder_ == null) { - if (!other.projects_.isEmpty()) { - if (projects_.isEmpty()) { - projects_ = other.projects_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProjectsIsMutable(); - projects_.addAll(other.projects_); - } - onChanged(); - } - } else { - if (!other.projects_.isEmpty()) { - if (projectsBuilder_.isEmpty()) { - projectsBuilder_.dispose(); - projectsBuilder_ = null; - projects_ = other.projects_; - bitField0_ = (bitField0_ & ~0x00000001); - projectsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProjectsFieldBuilder() : null; - } else { - projectsBuilder_.addAllMessages(other.projects_); - } - } - } - 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 { - flyteidl.admin.ProjectOuterClass.Projects parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.Projects) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List projects_ = - java.util.Collections.emptyList(); - private void ensureProjectsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - projects_ = new java.util.ArrayList(projects_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectsBuilder_; - - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List getProjectsList() { - if (projectsBuilder_ == null) { - return java.util.Collections.unmodifiableList(projects_); - } else { - return projectsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public int getProjectsCount() { - if (projectsBuilder_ == null) { - return projects_.size(); - } else { - return projectsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { - if (projectsBuilder_ == null) { - return projects_.get(index); - } else { - return projectsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder setProjects( - int index, flyteidl.admin.ProjectOuterClass.Project value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.set(index, value); - onChanged(); - } else { - projectsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder setProjects( - int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.set(index, builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addProjects(flyteidl.admin.ProjectOuterClass.Project value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.add(value); - onChanged(); - } else { - projectsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addProjects( - int index, flyteidl.admin.ProjectOuterClass.Project value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.add(index, value); - onChanged(); - } else { - projectsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addProjects( - flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.add(builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addProjects( - int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.add(index, builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addAllProjects( - java.lang.Iterable values) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projects_); - onChanged(); - } else { - projectsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder clearProjects() { - if (projectsBuilder_ == null) { - projects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - projectsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder removeProjects(int index) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.remove(index); - onChanged(); - } else { - projectsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectsBuilder( - int index) { - return getProjectsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( - int index) { - if (projectsBuilder_ == null) { - return projects_.get(index); } else { - return projectsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List - getProjectsOrBuilderList() { - if (projectsBuilder_ != null) { - return projectsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(projects_); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder() { - return getProjectsFieldBuilder().addBuilder( - flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder( - int index) { - return getProjectsFieldBuilder().addBuilder( - index, flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List - getProjectsBuilderList() { - return getProjectsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> - getProjectsFieldBuilder() { - if (projectsBuilder_ == null) { - projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( - projects_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - projects_ = null; - } - return projectsBuilder_; - } - @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:flyteidl.admin.Projects) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Projects) - private static final flyteidl.admin.ProjectOuterClass.Projects DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Projects(); - } - - public static flyteidl.admin.ProjectOuterClass.Projects getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Projects parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Projects(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 flyteidl.admin.ProjectOuterClass.Projects getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectListRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.admin.ProjectListRequest} - */ - public static final class ProjectListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectListRequest) - ProjectListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectListRequest.newBuilder() to construct. - private ProjectListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectListRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectListRequest( - 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; - 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.ProjectListRequest other = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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(flyteidl.admin.ProjectOuterClass.ProjectListRequest 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 flyteidl.admin.ProjectListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectListRequest) - flyteidl.admin.ProjectOuterClass.ProjectListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.ProjectListRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectListRequest build() { - flyteidl.admin.ProjectOuterClass.ProjectListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectListRequest buildPartial() { - flyteidl.admin.ProjectOuterClass.ProjectListRequest result = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(this); - 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectListRequest other) { - if (other == flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance()) return this; - 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 { - flyteidl.admin.ProjectOuterClass.ProjectListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.ProjectListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectListRequest) - private static final flyteidl.admin.ProjectOuterClass.ProjectListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(); - } - - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectListRequest(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 flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectRegisterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.Project project = 1; - */ - boolean hasProject(); - /** - * .flyteidl.admin.Project project = 1; - */ - flyteidl.admin.ProjectOuterClass.Project getProject(); - /** - * .flyteidl.admin.Project project = 1; - */ - flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.admin.ProjectRegisterRequest} - */ - public static final class ProjectRegisterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterRequest) - ProjectRegisterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectRegisterRequest.newBuilder() to construct. - private ProjectRegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectRegisterRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectRegisterRequest( - 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: { - flyteidl.admin.ProjectOuterClass.Project.Builder subBuilder = null; - if (project_ != null) { - subBuilder = project_.toBuilder(); - } - project_ = input.readMessage(flyteidl.admin.ProjectOuterClass.Project.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(project_); - project_ = 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private flyteidl.admin.ProjectOuterClass.Project project_; - /** - * .flyteidl.admin.Project project = 1; - */ - public boolean hasProject() { - return project_ != null; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project getProject() { - return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { - return getProject(); - } - - 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 (project_ != null) { - output.writeMessage(1, getProject()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (project_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProject()); - } - 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) obj; - - if (hasProject() != other.hasProject()) return false; - if (hasProject()) { - if (!getProject() - .equals(other.getProject())) 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 (hasProject()) { - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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(flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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 flyteidl.admin.ProjectRegisterRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterRequest) - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.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 (projectBuilder_ == null) { - project_ = null; - } else { - project_ = null; - projectBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest build() { - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest buildPartial() { - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(this); - if (projectBuilder_ == null) { - result.project_ = project_; - } else { - result.project_ = projectBuilder_.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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other) { - if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance()) return this; - if (other.hasProject()) { - mergeProject(other.getProject()); - } - 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 { - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.ProjectOuterClass.Project project_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectBuilder_; - /** - * .flyteidl.admin.Project project = 1; - */ - public boolean hasProject() { - return projectBuilder_ != null || project_ != null; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project getProject() { - if (projectBuilder_ == null) { - return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; - } else { - return projectBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.Project project = 1; - */ - public Builder setProject(flyteidl.admin.ProjectOuterClass.Project value) { - if (projectBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - project_ = value; - onChanged(); - } else { - projectBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public Builder setProject( - flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { - if (projectBuilder_ == null) { - project_ = builderForValue.build(); - onChanged(); - } else { - projectBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public Builder mergeProject(flyteidl.admin.ProjectOuterClass.Project value) { - if (projectBuilder_ == null) { - if (project_ != null) { - project_ = - flyteidl.admin.ProjectOuterClass.Project.newBuilder(project_).mergeFrom(value).buildPartial(); - } else { - project_ = value; - } - onChanged(); - } else { - projectBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public Builder clearProject() { - if (projectBuilder_ == null) { - project_ = null; - onChanged(); - } else { - project_ = null; - projectBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectBuilder() { - - onChanged(); - return getProjectFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { - if (projectBuilder_ != null) { - return projectBuilder_.getMessageOrBuilder(); - } else { - return project_ == null ? - flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; - } - } - /** - * .flyteidl.admin.Project project = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> - getProjectFieldBuilder() { - if (projectBuilder_ == null) { - projectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( - getProject(), - getParentForChildren(), - isClean()); - project_ = null; - } - return projectBuilder_; - } - @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:flyteidl.admin.ProjectRegisterRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterRequest) - private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(); - } - - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectRegisterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectRegisterRequest(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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectRegisterResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.admin.ProjectRegisterResponse} - */ - public static final class ProjectRegisterResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterResponse) - ProjectRegisterResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectRegisterResponse.newBuilder() to construct. - private ProjectRegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectRegisterResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectRegisterResponse( - 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; - 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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(flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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 flyteidl.admin.ProjectRegisterResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterResponse) - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse build() { - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse buildPartial() { - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(this); - 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other) { - if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.ProjectRegisterResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterResponse) - private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(); - } - - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectRegisterResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectRegisterResponse(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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Domain_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Domain_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Project_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Project_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Projects_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Projects_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectRegisterResponse_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\034flyteidl/admin/project.proto\022\016flyteidl" + - ".admin\"\"\n\006Domain\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001" + - "(\t\"a\n\007Project\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022" + - "\'\n\007domains\030\003 \003(\0132\026.flyteidl.admin.Domain" + - "\022\023\n\013description\030\004 \001(\t\"5\n\010Projects\022)\n\010pro" + - "jects\030\001 \003(\0132\027.flyteidl.admin.Project\"\024\n\022" + - "ProjectListRequest\"B\n\026ProjectRegisterReq" + - "uest\022(\n\007project\030\001 \001(\0132\027.flyteidl.admin.P" + - "roject\"\031\n\027ProjectRegisterResponseB3Z1git" + - "hub.com/lyft/flyteidl/gen/pb-go/flyteidl" + - "/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_admin_Domain_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_Domain_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Domain_descriptor, - new java.lang.String[] { "Id", "Name", }); - internal_static_flyteidl_admin_Project_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_Project_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Project_descriptor, - new java.lang.String[] { "Id", "Name", "Domains", "Description", }); - internal_static_flyteidl_admin_Projects_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_Projects_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Projects_descriptor, - new java.lang.String[] { "Projects", }); - internal_static_flyteidl_admin_ProjectListRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectListRequest_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor, - new java.lang.String[] { "Project", }); - internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java b/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java deleted file mode 100644 index a43038512..000000000 --- a/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java +++ /dev/null @@ -1,1848 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/schedule.proto - -package flyteidl.admin; - -public final class ScheduleOuterClass { - private ScheduleOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * Represents a frequency at which to run a schedule.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.FixedRateUnit} - */ - public enum FixedRateUnit - implements com.google.protobuf.ProtocolMessageEnum { - /** - * MINUTE = 0; - */ - MINUTE(0), - /** - * HOUR = 1; - */ - HOUR(1), - /** - * DAY = 2; - */ - DAY(2), - UNRECOGNIZED(-1), - ; - - /** - * MINUTE = 0; - */ - public static final int MINUTE_VALUE = 0; - /** - * HOUR = 1; - */ - public static final int HOUR_VALUE = 1; - /** - * DAY = 2; - */ - public static final int DAY_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FixedRateUnit valueOf(int value) { - return forNumber(value); - } - - public static FixedRateUnit forNumber(int value) { - switch (value) { - case 0: return MINUTE; - case 1: return HOUR; - case 2: return DAY; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - FixedRateUnit> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FixedRateUnit findValueByNumber(int number) { - return FixedRateUnit.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.admin.ScheduleOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final FixedRateUnit[] VALUES = values(); - - public static FixedRateUnit 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 FixedRateUnit(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.FixedRateUnit) - } - - public interface FixedRateOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.FixedRate) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 value = 1; - */ - int getValue(); - - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - int getUnitValue(); - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit(); - } - /** - *
-   * Option for schedules run at a certain frequency, e.g. every 2 minutes.
-   * 
- * - * Protobuf type {@code flyteidl.admin.FixedRate} - */ - public static final class FixedRate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.FixedRate) - FixedRateOrBuilder { - private static final long serialVersionUID = 0L; - // Use FixedRate.newBuilder() to construct. - private FixedRate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FixedRate() { - unit_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FixedRate( - 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 8: { - - value_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - unit_ = rawValue; - 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 flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private int value_; - /** - * uint32 value = 1; - */ - public int getValue() { - return value_; - } - - public static final int UNIT_FIELD_NUMBER = 2; - private int unit_; - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public int getUnitValue() { - return unit_; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { - @SuppressWarnings("deprecation") - flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); - return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; - } - - 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 (value_ != 0) { - output.writeUInt32(1, value_); - } - if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { - output.writeEnum(2, unit_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, value_); - } - if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, unit_); - } - 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 flyteidl.admin.ScheduleOuterClass.FixedRate)) { - return super.equals(obj); - } - flyteidl.admin.ScheduleOuterClass.FixedRate other = (flyteidl.admin.ScheduleOuterClass.FixedRate) obj; - - if (getValue() - != other.getValue()) return false; - if (unit_ != other.unit_) 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) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue(); - hash = (37 * hash) + UNIT_FIELD_NUMBER; - hash = (53 * hash) + unit_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate 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 flyteidl.admin.ScheduleOuterClass.FixedRate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate 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 flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate 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(flyteidl.admin.ScheduleOuterClass.FixedRate 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; - } - /** - *
-     * Option for schedules run at a certain frequency, e.g. every 2 minutes.
-     * 
- * - * Protobuf type {@code flyteidl.admin.FixedRate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.FixedRate) - flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); - } - - // Construct using flyteidl.admin.ScheduleOuterClass.FixedRate.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(); - value_ = 0; - - unit_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.FixedRate build() { - flyteidl.admin.ScheduleOuterClass.FixedRate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.FixedRate buildPartial() { - flyteidl.admin.ScheduleOuterClass.FixedRate result = new flyteidl.admin.ScheduleOuterClass.FixedRate(this); - result.value_ = value_; - result.unit_ = unit_; - 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 flyteidl.admin.ScheduleOuterClass.FixedRate) { - return mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.FixedRate other) { - if (other == flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) return this; - if (other.getValue() != 0) { - setValue(other.getValue()); - } - if (other.unit_ != 0) { - setUnitValue(other.getUnitValue()); - } - 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 { - flyteidl.admin.ScheduleOuterClass.FixedRate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ScheduleOuterClass.FixedRate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int value_ ; - /** - * uint32 value = 1; - */ - public int getValue() { - return value_; - } - /** - * uint32 value = 1; - */ - public Builder setValue(int value) { - - value_ = value; - onChanged(); - return this; - } - /** - * uint32 value = 1; - */ - public Builder clearValue() { - - value_ = 0; - onChanged(); - return this; - } - - private int unit_ = 0; - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public int getUnitValue() { - return unit_; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public Builder setUnitValue(int value) { - unit_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { - @SuppressWarnings("deprecation") - flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); - return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public Builder setUnit(flyteidl.admin.ScheduleOuterClass.FixedRateUnit value) { - if (value == null) { - throw new NullPointerException(); - } - - unit_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public Builder clearUnit() { - - unit_ = 0; - 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:flyteidl.admin.FixedRate) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.FixedRate) - private static final flyteidl.admin.ScheduleOuterClass.FixedRate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.FixedRate(); - } - - public static flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FixedRate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FixedRate(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 flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ScheduleOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Schedule) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-     * 
- * - * string cron_expression = 1; - */ - java.lang.String getCronExpression(); - /** - *
-     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-     * 
- * - * string cron_expression = 1; - */ - com.google.protobuf.ByteString - getCronExpressionBytes(); - - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - boolean hasRate(); - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - flyteidl.admin.ScheduleOuterClass.FixedRate getRate(); - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder(); - - /** - *
-     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-     * 
- * - * string kickoff_time_input_arg = 3; - */ - java.lang.String getKickoffTimeInputArg(); - /** - *
-     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-     * 
- * - * string kickoff_time_input_arg = 3; - */ - com.google.protobuf.ByteString - getKickoffTimeInputArgBytes(); - - public flyteidl.admin.ScheduleOuterClass.Schedule.ScheduleExpressionCase getScheduleExpressionCase(); - } - /** - *
-   * Defines complete set of information required to trigger an execution on a schedule.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Schedule} - */ - public static final class Schedule extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Schedule) - ScheduleOrBuilder { - private static final long serialVersionUID = 0L; - // Use Schedule.newBuilder() to construct. - private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Schedule() { - kickoffTimeInputArg_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Schedule( - 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(); - scheduleExpressionCase_ = 1; - scheduleExpression_ = s; - break; - } - case 18: { - flyteidl.admin.ScheduleOuterClass.FixedRate.Builder subBuilder = null; - if (scheduleExpressionCase_ == 2) { - subBuilder = ((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_).toBuilder(); - } - scheduleExpression_ = - input.readMessage(flyteidl.admin.ScheduleOuterClass.FixedRate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); - scheduleExpression_ = subBuilder.buildPartial(); - } - scheduleExpressionCase_ = 2; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - kickoffTimeInputArg_ = 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 flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); - } - - private int scheduleExpressionCase_ = 0; - private java.lang.Object scheduleExpression_; - public enum ScheduleExpressionCase - implements com.google.protobuf.Internal.EnumLite { - CRON_EXPRESSION(1), - RATE(2), - SCHEDULEEXPRESSION_NOT_SET(0); - private final int value; - private ScheduleExpressionCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ScheduleExpressionCase valueOf(int value) { - return forNumber(value); - } - - public static ScheduleExpressionCase forNumber(int value) { - switch (value) { - case 1: return CRON_EXPRESSION; - case 2: return RATE; - case 0: return SCHEDULEEXPRESSION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ScheduleExpressionCase - getScheduleExpressionCase() { - return ScheduleExpressionCase.forNumber( - scheduleExpressionCase_); - } - - public static final int CRON_EXPRESSION_FIELD_NUMBER = 1; - /** - *
-     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-     * 
- * - * string cron_expression = 1; - */ - public java.lang.String getCronExpression() { - java.lang.Object ref = ""; - if (scheduleExpressionCase_ == 1) { - ref = scheduleExpression_; - } - 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(); - if (scheduleExpressionCase_ == 1) { - scheduleExpression_ = s; - } - return s; - } - } - /** - *
-     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-     * 
- * - * string cron_expression = 1; - */ - public com.google.protobuf.ByteString - getCronExpressionBytes() { - java.lang.Object ref = ""; - if (scheduleExpressionCase_ == 1) { - ref = scheduleExpression_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (scheduleExpressionCase_ == 1) { - scheduleExpression_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RATE_FIELD_NUMBER = 2; - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public boolean hasRate() { - return scheduleExpressionCase_ == 2; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { - if (scheduleExpressionCase_ == 2) { - return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { - if (scheduleExpressionCase_ == 2) { - return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - - public static final int KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER = 3; - private volatile java.lang.Object kickoffTimeInputArg_; - /** - *
-     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-     * 
- * - * string kickoff_time_input_arg = 3; - */ - public java.lang.String getKickoffTimeInputArg() { - java.lang.Object ref = kickoffTimeInputArg_; - 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(); - kickoffTimeInputArg_ = s; - return s; - } - } - /** - *
-     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-     * 
- * - * string kickoff_time_input_arg = 3; - */ - public com.google.protobuf.ByteString - getKickoffTimeInputArgBytes() { - java.lang.Object ref = kickoffTimeInputArg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kickoffTimeInputArg_ = 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 (scheduleExpressionCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scheduleExpression_); - } - if (scheduleExpressionCase_ == 2) { - output.writeMessage(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); - } - if (!getKickoffTimeInputArgBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kickoffTimeInputArg_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scheduleExpressionCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scheduleExpression_); - } - if (scheduleExpressionCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); - } - if (!getKickoffTimeInputArgBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kickoffTimeInputArg_); - } - 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 flyteidl.admin.ScheduleOuterClass.Schedule)) { - return super.equals(obj); - } - flyteidl.admin.ScheduleOuterClass.Schedule other = (flyteidl.admin.ScheduleOuterClass.Schedule) obj; - - if (!getKickoffTimeInputArg() - .equals(other.getKickoffTimeInputArg())) return false; - if (!getScheduleExpressionCase().equals(other.getScheduleExpressionCase())) return false; - switch (scheduleExpressionCase_) { - case 1: - if (!getCronExpression() - .equals(other.getCronExpression())) return false; - break; - case 2: - if (!getRate() - .equals(other.getRate())) 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) + KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER; - hash = (53 * hash) + getKickoffTimeInputArg().hashCode(); - switch (scheduleExpressionCase_) { - case 1: - hash = (37 * hash) + CRON_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getCronExpression().hashCode(); - break; - case 2: - hash = (37 * hash) + RATE_FIELD_NUMBER; - hash = (53 * hash) + getRate().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule 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 flyteidl.admin.ScheduleOuterClass.Schedule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule 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 flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule 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(flyteidl.admin.ScheduleOuterClass.Schedule 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; - } - /** - *
-     * Defines complete set of information required to trigger an execution on a schedule.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Schedule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Schedule) - flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); - } - - // Construct using flyteidl.admin.ScheduleOuterClass.Schedule.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(); - kickoffTimeInputArg_ = ""; - - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstanceForType() { - return flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.Schedule build() { - flyteidl.admin.ScheduleOuterClass.Schedule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.Schedule buildPartial() { - flyteidl.admin.ScheduleOuterClass.Schedule result = new flyteidl.admin.ScheduleOuterClass.Schedule(this); - if (scheduleExpressionCase_ == 1) { - result.scheduleExpression_ = scheduleExpression_; - } - if (scheduleExpressionCase_ == 2) { - if (rateBuilder_ == null) { - result.scheduleExpression_ = scheduleExpression_; - } else { - result.scheduleExpression_ = rateBuilder_.build(); - } - } - result.kickoffTimeInputArg_ = kickoffTimeInputArg_; - result.scheduleExpressionCase_ = scheduleExpressionCase_; - 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 flyteidl.admin.ScheduleOuterClass.Schedule) { - return mergeFrom((flyteidl.admin.ScheduleOuterClass.Schedule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.Schedule other) { - if (other == flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance()) return this; - if (!other.getKickoffTimeInputArg().isEmpty()) { - kickoffTimeInputArg_ = other.kickoffTimeInputArg_; - onChanged(); - } - switch (other.getScheduleExpressionCase()) { - case CRON_EXPRESSION: { - scheduleExpressionCase_ = 1; - scheduleExpression_ = other.scheduleExpression_; - onChanged(); - break; - } - case RATE: { - mergeRate(other.getRate()); - break; - } - case SCHEDULEEXPRESSION_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 { - flyteidl.admin.ScheduleOuterClass.Schedule parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ScheduleOuterClass.Schedule) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int scheduleExpressionCase_ = 0; - private java.lang.Object scheduleExpression_; - public ScheduleExpressionCase - getScheduleExpressionCase() { - return ScheduleExpressionCase.forNumber( - scheduleExpressionCase_); - } - - public Builder clearScheduleExpression() { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - onChanged(); - return this; - } - - - /** - *
-       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-       * 
- * - * string cron_expression = 1; - */ - public java.lang.String getCronExpression() { - java.lang.Object ref = ""; - if (scheduleExpressionCase_ == 1) { - ref = scheduleExpression_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (scheduleExpressionCase_ == 1) { - scheduleExpression_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-       * 
- * - * string cron_expression = 1; - */ - public com.google.protobuf.ByteString - getCronExpressionBytes() { - java.lang.Object ref = ""; - if (scheduleExpressionCase_ == 1) { - ref = scheduleExpression_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (scheduleExpressionCase_ == 1) { - scheduleExpression_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-       * 
- * - * string cron_expression = 1; - */ - public Builder setCronExpression( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - scheduleExpressionCase_ = 1; - scheduleExpression_ = value; - onChanged(); - return this; - } - /** - *
-       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-       * 
- * - * string cron_expression = 1; - */ - public Builder clearCronExpression() { - if (scheduleExpressionCase_ == 1) { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - onChanged(); - } - return this; - } - /** - *
-       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
-       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
-       * 
- * - * string cron_expression = 1; - */ - public Builder setCronExpressionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - scheduleExpressionCase_ = 1; - scheduleExpression_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> rateBuilder_; - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public boolean hasRate() { - return scheduleExpressionCase_ == 2; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { - if (rateBuilder_ == null) { - if (scheduleExpressionCase_ == 2) { - return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } else { - if (scheduleExpressionCase_ == 2) { - return rateBuilder_.getMessage(); - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public Builder setRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { - if (rateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleExpression_ = value; - onChanged(); - } else { - rateBuilder_.setMessage(value); - } - scheduleExpressionCase_ = 2; - return this; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public Builder setRate( - flyteidl.admin.ScheduleOuterClass.FixedRate.Builder builderForValue) { - if (rateBuilder_ == null) { - scheduleExpression_ = builderForValue.build(); - onChanged(); - } else { - rateBuilder_.setMessage(builderForValue.build()); - } - scheduleExpressionCase_ = 2; - return this; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public Builder mergeRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { - if (rateBuilder_ == null) { - if (scheduleExpressionCase_ == 2 && - scheduleExpression_ != flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) { - scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.newBuilder((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_) - .mergeFrom(value).buildPartial(); - } else { - scheduleExpression_ = value; - } - onChanged(); - } else { - if (scheduleExpressionCase_ == 2) { - rateBuilder_.mergeFrom(value); - } - rateBuilder_.setMessage(value); - } - scheduleExpressionCase_ = 2; - return this; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public Builder clearRate() { - if (rateBuilder_ == null) { - if (scheduleExpressionCase_ == 2) { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - onChanged(); - } - } else { - if (scheduleExpressionCase_ == 2) { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - } - rateBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRate.Builder getRateBuilder() { - return getRateFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { - if ((scheduleExpressionCase_ == 2) && (rateBuilder_ != null)) { - return rateBuilder_.getMessageOrBuilder(); - } else { - if (scheduleExpressionCase_ == 2) { - return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> - getRateFieldBuilder() { - if (rateBuilder_ == null) { - if (!(scheduleExpressionCase_ == 2)) { - scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - rateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder>( - (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_, - getParentForChildren(), - isClean()); - scheduleExpression_ = null; - } - scheduleExpressionCase_ = 2; - onChanged();; - return rateBuilder_; - } - - private java.lang.Object kickoffTimeInputArg_ = ""; - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public java.lang.String getKickoffTimeInputArg() { - java.lang.Object ref = kickoffTimeInputArg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kickoffTimeInputArg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public com.google.protobuf.ByteString - getKickoffTimeInputArgBytes() { - java.lang.Object ref = kickoffTimeInputArg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kickoffTimeInputArg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public Builder setKickoffTimeInputArg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kickoffTimeInputArg_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public Builder clearKickoffTimeInputArg() { - - kickoffTimeInputArg_ = getDefaultInstance().getKickoffTimeInputArg(); - onChanged(); - return this; - } - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public Builder setKickoffTimeInputArgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kickoffTimeInputArg_ = 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:flyteidl.admin.Schedule) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Schedule) - private static final flyteidl.admin.ScheduleOuterClass.Schedule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.Schedule(); - } - - public static flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(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 flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_FixedRate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_FixedRate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Schedule_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Schedule_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\035flyteidl/admin/schedule.proto\022\016flyteid" + - "l.admin\"G\n\tFixedRate\022\r\n\005value\030\001 \001(\r\022+\n\004u" + - "nit\030\002 \001(\0162\035.flyteidl.admin.FixedRateUnit" + - "\"\206\001\n\010Schedule\022\031\n\017cron_expression\030\001 \001(\tH\000" + - "\022)\n\004rate\030\002 \001(\0132\031.flyteidl.admin.FixedRat" + - "eH\000\022\036\n\026kickoff_time_input_arg\030\003 \001(\tB\024\n\022S" + - "cheduleExpression*.\n\rFixedRateUnit\022\n\n\006MI" + - "NUTE\020\000\022\010\n\004HOUR\020\001\022\007\n\003DAY\020\002B3Z1github.com/" + - "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + - "proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_admin_FixedRate_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_FixedRate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_FixedRate_descriptor, - new java.lang.String[] { "Value", "Unit", }); - internal_static_flyteidl_admin_Schedule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_Schedule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Schedule_descriptor, - new java.lang.String[] { "CronExpression", "Rate", "KickoffTimeInputArg", "ScheduleExpression", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java b/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java deleted file mode 100644 index 1b76dda2a..000000000 --- a/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java +++ /dev/null @@ -1,8862 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/task_execution.proto - -package flyteidl.admin; - -public final class TaskExecutionOuterClass { - private TaskExecutionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TaskExecutionGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * A message used to fetch a single task execution entity.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} - */ - public static final class TaskExecutionGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetRequest) - TaskExecutionGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionGetRequest.newBuilder() to construct. - private TaskExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionGetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionGetRequest( - 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: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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 message used to fetch a single task execution entity.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetRequest) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.TaskExecutionGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetRequest) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionGetRequest(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - boolean hasNodeExecutionId(); - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to retrieve a list of task execution entities.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} - */ - public static final class TaskExecutionListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionListRequest) - TaskExecutionListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionListRequest.newBuilder() to construct. - private TaskExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionListRequest() { - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionListRequest( - 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: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (nodeExecutionId_ != null) { - subBuilder = nodeExecutionId_.toBuilder(); - } - nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodeExecutionId_); - nodeExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - limit_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); - } - - public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public boolean hasNodeExecutionId() { - return nodeExecutionId_ != null; - } - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } - /** - *
-     * Indicates the node execution to filter by.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - return getNodeExecutionId(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 4; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - 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(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (nodeExecutionId_ != null) { - output.writeMessage(1, getNodeExecutionId()); - } - if (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nodeExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNodeExecutionId()); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) obj; - - if (hasNodeExecutionId() != other.hasNodeExecutionId()) return false; - if (hasNodeExecutionId()) { - if (!getNodeExecutionId() - .equals(other.getNodeExecutionId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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 (hasNodeExecutionId()) { - hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeExecutionId().hashCode(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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; - } - /** - *
-     * Represents a request structure to retrieve a list of task execution entities.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionListRequest) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.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 (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = null; - } else { - nodeExecutionId_ = null; - nodeExecutionIdBuilder_ = null; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(this); - if (nodeExecutionIdBuilder_ == null) { - result.nodeExecutionId_ = nodeExecutionId_; - } else { - result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance()) return this; - if (other.hasNodeExecutionId()) { - mergeNodeExecutionId(other.getNodeExecutionId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public boolean hasNodeExecutionId() { - return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } else { - return nodeExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeExecutionId_ = value; - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public Builder setNodeExecutionId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = builderForValue.build(); - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (nodeExecutionId_ != null) { - nodeExecutionId_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); - } else { - nodeExecutionId_ = value; - } - onChanged(); - } else { - nodeExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public Builder clearNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = null; - onChanged(); - } else { - nodeExecutionId_ = null; - nodeExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { - - onChanged(); - return getNodeExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - if (nodeExecutionIdBuilder_ != null) { - return nodeExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return nodeExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } - } - /** - *
-       * Indicates the node execution to filter by.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getNodeExecutionIdFieldBuilder() { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getNodeExecutionId(), - getParentForChildren(), - isClean()); - nodeExecutionId_ = null; - } - return nodeExecutionIdBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 2; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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:flyteidl.admin.TaskExecutionListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionListRequest) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionListRequest(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecution) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - java.lang.String getInputUri(); - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - com.google.protobuf.ByteString - getInputUriBytes(); - - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - boolean hasClosure(); - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure(); - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder(); - - /** - *
-     * Whether this task spawned nodes.
-     * 
- * - * bool is_parent = 4; - */ - boolean getIsParent(); - } - /** - *
-   * Encapsulates all details for a single task execution entity.
-   * A task execution represents an instantiated task, including all inputs and additional
-   * metadata as well as computed results included state, outputs, and duration-based attributes.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecution} - */ - public static final class TaskExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecution) - TaskExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecution.newBuilder() to construct. - private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecution() { - inputUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecution( - 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: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - inputUri_ = s; - break; - } - case 26: { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - isParent_ = input.readBool(); - 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int INPUT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object inputUri_; - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - 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(); - inputUri_ = s; - return s; - } - } - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLOSURE_FIELD_NUMBER = 3; - private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_; - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { - return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; - } - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - public static final int IS_PARENT_FIELD_NUMBER = 4; - private boolean isParent_; - /** - *
-     * Whether this task spawned nodes.
-     * 
- * - * bool is_parent = 4; - */ - public boolean getIsParent() { - return isParent_; - } - - 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 (!getInputUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); - } - if (closure_ != null) { - output.writeMessage(3, getClosure()); - } - if (isParent_ != false) { - output.writeBool(4, isParent_); - } - 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 (!getInputUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClosure()); - } - if (isParent_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isParent_); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecution other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getInputUri() - .equals(other.getInputUri())) return false; - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) return false; - } - if (getIsParent() - != other.getIsParent()) 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) + INPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getInputUri().hashCode(); - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (37 * hash) + IS_PARENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsParent()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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; - } - /** - *
-     * Encapsulates all details for a single task execution entity.
-     * A task execution represents an instantiated task, including all inputs and additional
-     * metadata as well as computed results included state, outputs, and duration-based attributes.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecution) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecution.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - inputUri_ = ""; - - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - isParent_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.inputUri_ = inputUri_; - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.build(); - } - result.isParent_ = isParent_; - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecution other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getInputUri().isEmpty()) { - inputUri_ = other.inputUri_; - onChanged(); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - if (other.getIsParent() != false) { - setIsParent(other.getIsParent()); - } - 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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object inputUri_ = ""; - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputUri_ = value; - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder clearInputUri() { - - inputUri_ = getDefaultInstance().getInputUri(); - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputUri_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> closureBuilder_; - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public Builder setClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public Builder setClosure( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public Builder mergeClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - - private boolean isParent_ ; - /** - *
-       * Whether this task spawned nodes.
-       * 
- * - * bool is_parent = 4; - */ - public boolean getIsParent() { - return isParent_; - } - /** - *
-       * Whether this task spawned nodes.
-       * 
- * - * bool is_parent = 4; - */ - public Builder setIsParent(boolean value) { - - isParent_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether this task spawned nodes.
-       * 
- * - * bool is_parent = 4; - */ - public Builder clearIsParent() { - - isParent_ = false; - 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:flyteidl.admin.TaskExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecution) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecution(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - java.util.List - getTaskExecutionsList(); - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index); - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - int getTaskExecutionsCount(); - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - java.util.List - getTaskExecutionsOrBuilderList(); - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Response structure for a query to list of task execution entities.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionList} - */ - public static final class TaskExecutionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionList) - TaskExecutionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionList.newBuilder() to construct. - private TaskExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionList() { - taskExecutions_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionList( - 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)) { - taskExecutions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - taskExecutions_.add( - input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecution.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); - } - - private int bitField0_; - public static final int TASK_EXECUTIONS_FIELD_NUMBER = 1; - private java.util.List taskExecutions_; - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List getTaskExecutionsList() { - return taskExecutions_; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List - getTaskExecutionsOrBuilderList() { - return taskExecutions_; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public int getTaskExecutionsCount() { - return taskExecutions_.size(); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { - return taskExecutions_.get(index); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( - int index) { - return taskExecutions_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < taskExecutions_.size(); i++) { - output.writeMessage(1, taskExecutions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < taskExecutions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, taskExecutions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) obj; - - if (!getTaskExecutionsList() - .equals(other.getTaskExecutionsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getTaskExecutionsCount() > 0) { - hash = (37 * hash) + TASK_EXECUTIONS_FIELD_NUMBER; - hash = (53 * hash) + getTaskExecutionsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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; - } - /** - *
-     * Response structure for a query to list of task execution entities.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionList) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTaskExecutionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (taskExecutionsBuilder_ == null) { - taskExecutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - taskExecutionsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (taskExecutionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taskExecutions_ = taskExecutions_; - } else { - result.taskExecutions_ = taskExecutionsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance()) return this; - if (taskExecutionsBuilder_ == null) { - if (!other.taskExecutions_.isEmpty()) { - if (taskExecutions_.isEmpty()) { - taskExecutions_ = other.taskExecutions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTaskExecutionsIsMutable(); - taskExecutions_.addAll(other.taskExecutions_); - } - onChanged(); - } - } else { - if (!other.taskExecutions_.isEmpty()) { - if (taskExecutionsBuilder_.isEmpty()) { - taskExecutionsBuilder_.dispose(); - taskExecutionsBuilder_ = null; - taskExecutions_ = other.taskExecutions_; - bitField0_ = (bitField0_ & ~0x00000001); - taskExecutionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTaskExecutionsFieldBuilder() : null; - } else { - taskExecutionsBuilder_.addAllMessages(other.taskExecutions_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List taskExecutions_ = - java.util.Collections.emptyList(); - private void ensureTaskExecutionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - taskExecutions_ = new java.util.ArrayList(taskExecutions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> taskExecutionsBuilder_; - - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List getTaskExecutionsList() { - if (taskExecutionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(taskExecutions_); - } else { - return taskExecutionsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public int getTaskExecutionsCount() { - if (taskExecutionsBuilder_ == null) { - return taskExecutions_.size(); - } else { - return taskExecutionsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { - if (taskExecutionsBuilder_ == null) { - return taskExecutions_.get(index); - } else { - return taskExecutionsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder setTaskExecutions( - int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { - if (taskExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaskExecutionsIsMutable(); - taskExecutions_.set(index, value); - onChanged(); - } else { - taskExecutionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder setTaskExecutions( - int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - taskExecutions_.set(index, builderForValue.build()); - onChanged(); - } else { - taskExecutionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addTaskExecutions(flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { - if (taskExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaskExecutionsIsMutable(); - taskExecutions_.add(value); - onChanged(); - } else { - taskExecutionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addTaskExecutions( - int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { - if (taskExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaskExecutionsIsMutable(); - taskExecutions_.add(index, value); - onChanged(); - } else { - taskExecutionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addTaskExecutions( - flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - taskExecutions_.add(builderForValue.build()); - onChanged(); - } else { - taskExecutionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addTaskExecutions( - int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - taskExecutions_.add(index, builderForValue.build()); - onChanged(); - } else { - taskExecutionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addAllTaskExecutions( - java.lang.Iterable values) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, taskExecutions_); - onChanged(); - } else { - taskExecutionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder clearTaskExecutions() { - if (taskExecutionsBuilder_ == null) { - taskExecutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - taskExecutionsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder removeTaskExecutions(int index) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - taskExecutions_.remove(index); - onChanged(); - } else { - taskExecutionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder getTaskExecutionsBuilder( - int index) { - return getTaskExecutionsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( - int index) { - if (taskExecutionsBuilder_ == null) { - return taskExecutions_.get(index); } else { - return taskExecutionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List - getTaskExecutionsOrBuilderList() { - if (taskExecutionsBuilder_ != null) { - return taskExecutionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taskExecutions_); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder() { - return getTaskExecutionsFieldBuilder().addBuilder( - flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder( - int index) { - return getTaskExecutionsFieldBuilder().addBuilder( - index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List - getTaskExecutionsBuilderList() { - return getTaskExecutionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> - getTaskExecutionsFieldBuilder() { - if (taskExecutionsBuilder_ == null) { - taskExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder>( - taskExecutions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - taskExecutions_ = null; - } - return taskExecutionsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.TaskExecutionList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionList) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionList(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-     * 
- * - * string output_uri = 1; - */ - java.lang.String getOutputUri(); - /** - *
-     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-     * 
- * - * string output_uri = 1; - */ - com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - boolean hasError(); - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * The last recorded phase for this task execution.
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - int getPhaseValue(); - /** - *
-     * The last recorded phase for this task execution.
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - flyteidl.core.Execution.TaskExecution.Phase getPhase(); - - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - java.util.List - getLogsList(); - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - flyteidl.core.Execution.TaskLog getLogs(int index); - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - int getLogsCount(); - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - java.util.List - getLogsOrBuilderList(); - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index); - - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - boolean hasStartedAt(); - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - com.google.protobuf.Timestamp getStartedAt(); - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); - - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - boolean hasDuration(); - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.Duration getDuration(); - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - boolean hasUpdatedAt(); - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - com.google.protobuf.Timestamp getUpdatedAt(); - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); - - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - boolean hasCustomInfo(); - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - com.google.protobuf.Struct getCustomInfo(); - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); - - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.OutputResultCase getOutputResultCase(); - } - /** - *
-   * Container for task execution details and results.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} - */ - public static final class TaskExecutionClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionClosure) - TaskExecutionClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionClosure.newBuilder() to construct. - private TaskExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionClosure() { - phase_ = 0; - logs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionClosure( - 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(); - outputResultCase_ = 1; - outputResult_ = s; - break; - } - case 18: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 2) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 2; - break; - } - case 24: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - logs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - logs_.add( - input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startedAt_ != null) { - subBuilder = startedAt_.toBuilder(); - } - startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startedAt_); - startedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - 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 66: { - 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; - } - case 74: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (customInfo_ != null) { - subBuilder = customInfo_.toBuilder(); - } - customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customInfo_); - customInfo_ = 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_ & 0x00000008) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); - } - - private int bitField0_; - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUT_URI(1), - ERROR(2), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 1: return OUTPUT_URI; - case 2: return ERROR; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 1; - /** - *
-     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-     * 
- * - * string output_uri = 1; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - 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(); - if (outputResultCase_ == 1) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-     * 
- * - * string output_uri = 1; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 1) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 2; - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int PHASE_FIELD_NUMBER = 3; - private int phase_; - /** - *
-     * The last recorded phase for this task execution.
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-     * The last recorded phase for this task execution.
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - - public static final int LOGS_FIELD_NUMBER = 4; - private java.util.List logs_; - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List getLogsList() { - return logs_; - } - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public int getLogsCount() { - return logs_.size(); - } - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - return logs_.get(index); - } - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - return logs_.get(index); - } - - public static final int STARTED_AT_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp startedAt_; - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public boolean hasStartedAt() { - return startedAt_ != null; - } - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp getStartedAt() { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - return getStartedAt(); - } - - public static final int DURATION_FIELD_NUMBER = 6; - private com.google.protobuf.Duration duration_; - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return duration_ != null; - } - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return getDuration(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - public static final int UPDATED_AT_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp updatedAt_; - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public boolean hasUpdatedAt() { - return updatedAt_ != null; - } - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - return getUpdatedAt(); - } - - public static final int CUSTOM_INFO_FIELD_NUMBER = 9; - private com.google.protobuf.Struct customInfo_; - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public boolean hasCustomInfo() { - return customInfo_ != null; - } - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.Struct getCustomInfo() { - return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { - return getCustomInfo(); - } - - 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 (outputResultCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); - } - if (outputResultCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(3, phase_); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(4, logs_.get(i)); - } - if (startedAt_ != null) { - output.writeMessage(5, getStartedAt()); - } - if (duration_ != null) { - output.writeMessage(6, getDuration()); - } - if (createdAt_ != null) { - output.writeMessage(7, getCreatedAt()); - } - if (updatedAt_ != null) { - output.writeMessage(8, getUpdatedAt()); - } - if (customInfo_ != null) { - output.writeMessage(9, getCustomInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (outputResultCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); - } - if (outputResultCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, phase_); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, logs_.get(i)); - } - if (startedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getStartedAt()); - } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDuration()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreatedAt()); - } - if (updatedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdatedAt()); - } - if (customInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCustomInfo()); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) obj; - - if (phase_ != other.phase_) return false; - if (!getLogsList() - .equals(other.getLogsList())) return false; - if (hasStartedAt() != other.hasStartedAt()) return false; - if (hasStartedAt()) { - if (!getStartedAt() - .equals(other.getStartedAt())) return false; - } - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) 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 (hasCustomInfo() != other.hasCustomInfo()) return false; - if (hasCustomInfo()) { - if (!getCustomInfo() - .equals(other.getCustomInfo())) return false; - } - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 1: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 2: - if (!getError() - .equals(other.getError())) 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) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - if (hasStartedAt()) { - hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; - hash = (53 * hash) + getStartedAt().hashCode(); - } - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().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(); - } - if (hasCustomInfo()) { - hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; - hash = (53 * hash) + getCustomInfo().hashCode(); - } - switch (outputResultCase_) { - case 1: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 2: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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; - } - /** - *
-     * Container for task execution details and results.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionClosure) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - phase_ = 0; - - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - logsBuilder_.clear(); - } - if (startedAtBuilder_ == null) { - startedAt_ = null; - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - if (durationBuilder_ == null) { - duration_ = null; - } else { - duration_ = null; - durationBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - if (customInfoBuilder_ == null) { - customInfo_ = null; - } else { - customInfo_ = null; - customInfoBuilder_ = null; - } - outputResultCase_ = 0; - outputResult_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (outputResultCase_ == 1) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 2) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - result.phase_ = phase_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - if (startedAtBuilder_ == null) { - result.startedAt_ = startedAt_; - } else { - result.startedAt_ = startedAtBuilder_.build(); - } - if (durationBuilder_ == null) { - result.duration_ = duration_; - } else { - result.duration_ = durationBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.build(); - } - if (updatedAtBuilder_ == null) { - result.updatedAt_ = updatedAt_; - } else { - result.updatedAt_ = updatedAtBuilder_.build(); - } - if (customInfoBuilder_ == null) { - result.customInfo_ = customInfo_; - } else { - result.customInfo_ = customInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - result.outputResultCase_ = outputResultCase_; - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance()) return this; - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000008); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogsFieldBuilder() : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - if (other.hasStartedAt()) { - mergeStartedAt(other.getStartedAt()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - if (other.hasUpdatedAt()) { - mergeUpdatedAt(other.getUpdatedAt()); - } - if (other.hasCustomInfo()) { - mergeCustomInfo(other.getCustomInfo()); - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 1; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUTRESULT_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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * 
- * - * string output_uri = 1; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 1) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * 
- * - * string output_uri = 1; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 1) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * 
- * - * string output_uri = 1; - */ - public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 1; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * 
- * - * string output_uri = 1; - */ - public Builder clearOutputUri() { - if (outputResultCase_ == 1) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * 
- * - * string output_uri = 1; - */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 1; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 2) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 2) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 2)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 2; - onChanged();; - return errorBuilder_; - } - - private int phase_ = 0; - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private java.util.List logs_ = - java.util.Collections.emptyList(); - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; - - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addLogs(flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addLogs( - flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( - int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - if (logsBuilder_ == null) { - return logs_.get(index); } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( - logs_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - - private com.google.protobuf.Timestamp startedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public boolean hasStartedAt() { - return startedAtBuilder_ != null || startedAt_ != null; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp getStartedAt() { - if (startedAtBuilder_ == null) { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } else { - return startedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder setStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startedAt_ = value; - onChanged(); - } else { - startedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder setStartedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (startedAtBuilder_ == null) { - startedAt_ = builderForValue.build(); - onChanged(); - } else { - startedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (startedAt_ != null) { - startedAt_ = - com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); - } else { - startedAt_ = value; - } - onChanged(); - } else { - startedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder clearStartedAt() { - if (startedAtBuilder_ == null) { - startedAt_ = null; - onChanged(); - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { - - onChanged(); - return getStartedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - if (startedAtBuilder_ != null) { - return startedAtBuilder_.getMessageOrBuilder(); - } else { - return startedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getStartedAtFieldBuilder() { - if (startedAtBuilder_ == null) { - startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartedAt(), - getParentForChildren(), - isClean()); - startedAt_ = null; - } - return startedAtBuilder_; - } - - private com.google.protobuf.Duration duration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return durationBuilder_ != null || duration_ != null; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } else { - return durationBuilder_.getMessage(); - } - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (duration_ != null) { - duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); - } else { - duration_ = value; - } - onChanged(); - } else { - durationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - duration_ = null; - onChanged(); - } else { - duration_ = null; - durationBuilder_ = null; - } - - return this; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); - duration_ = null; - } - return durationBuilder_; - } - - 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_; - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - 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; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - 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; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - 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_; - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public boolean hasUpdatedAt() { - return updatedAtBuilder_ != null || updatedAt_ != null; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - if (updatedAtBuilder_ == null) { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } else { - return updatedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - 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; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder setUpdatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updatedAtBuilder_ == null) { - updatedAt_ = builderForValue.build(); - onChanged(); - } else { - updatedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - 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; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder clearUpdatedAt() { - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - onChanged(); - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { - - onChanged(); - return getUpdatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - if (updatedAtBuilder_ != null) { - return updatedAtBuilder_.getMessageOrBuilder(); - } else { - return updatedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - 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_; - } - - private com.google.protobuf.Struct customInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public boolean hasCustomInfo() { - return customInfoBuilder_ != null || customInfo_ != null; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.Struct getCustomInfo() { - if (customInfoBuilder_ == null) { - return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } else { - return customInfoBuilder_.getMessage(); - } - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public Builder setCustomInfo(com.google.protobuf.Struct value) { - if (customInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customInfo_ = value; - onChanged(); - } else { - customInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public Builder setCustomInfo( - com.google.protobuf.Struct.Builder builderForValue) { - if (customInfoBuilder_ == null) { - customInfo_ = builderForValue.build(); - onChanged(); - } else { - customInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public Builder mergeCustomInfo(com.google.protobuf.Struct value) { - if (customInfoBuilder_ == null) { - if (customInfo_ != null) { - customInfo_ = - com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); - } else { - customInfo_ = value; - } - onChanged(); - } else { - customInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public Builder clearCustomInfo() { - if (customInfoBuilder_ == null) { - customInfo_ = null; - onChanged(); - } else { - customInfo_ = null; - customInfoBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { - - onChanged(); - return getCustomInfoFieldBuilder().getBuilder(); - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { - if (customInfoBuilder_ != null) { - return customInfoBuilder_.getMessageOrBuilder(); - } else { - return customInfo_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getCustomInfoFieldBuilder() { - if (customInfoBuilder_ == null) { - customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getCustomInfo(), - getParentForChildren(), - isClean()); - customInfo_ = null; - } - return customInfoBuilder_; - } - @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:flyteidl.admin.TaskExecutionClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionClosure) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionClosure(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionGetDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Request structure to fetch inputs and output urls for a task execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} - */ - public static final class TaskExecutionGetDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataRequest) - TaskExecutionGetDataRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionGetDataRequest.newBuilder() to construct. - private TaskExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionGetDataRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionGetDataRequest( - 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: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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; - } - /** - *
-     * Request structure to fetch inputs and output urls for a task execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataRequest) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.admin.TaskExecutionGetDataRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataRequest) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionGetDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionGetDataRequest(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionGetDataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - boolean hasInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - flyteidl.admin.Common.UrlBlob getInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); - - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - boolean hasOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - flyteidl.admin.Common.UrlBlob getOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); - } - /** - *
-   * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} - */ - public static final class TaskExecutionGetDataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataResponse) - TaskExecutionGetDataResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionGetDataResponse.newBuilder() to construct. - private TaskExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionGetDataResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionGetDataResponse( - 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: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private flyteidl.admin.Common.UrlBlob inputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlob getInputs() { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private flyteidl.admin.Common.UrlBlob outputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public boolean hasOutputs() { - return outputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlob getOutputs() { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - 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 (inputs_ != null) { - output.writeMessage(1, getInputs()); - } - if (outputs_ != null) { - output.writeMessage(2, getOutputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputs()); - } - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputs()); - } - 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) obj; - - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) 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 (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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; - } - /** - *
-     * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataResponse) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.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 (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance()) return this; - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - 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 { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.UrlBlob inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlob getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder setInputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.admin.Common.UrlBlob outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlob getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder setOutputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - @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:flyteidl.admin.TaskExecutionGetDataResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataResponse) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionGetDataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionGetDataResponse(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_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#flyteidl/admin/task_execution.proto\022\016f" + - "lyteidl.admin\032\033flyteidl/admin/common.pro" + - "to\032\035flyteidl/core/execution.proto\032\036flyte" + - "idl/core/identifier.proto\032\037google/protob" + - "uf/timestamp.proto\032\036google/protobuf/dura" + - "tion.proto\032\034google/protobuf/struct.proto" + - "\"M\n\027TaskExecutionGetRequest\0222\n\002id\030\001 \001(\0132" + - "&.flyteidl.core.TaskExecutionIdentifier\"" + - "\263\001\n\030TaskExecutionListRequest\022A\n\021node_exe" + - "cution_id\030\001 \001(\0132&.flyteidl.core.NodeExec" + - "utionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030" + - "\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132" + - "\024.flyteidl.admin.Sort\"\240\001\n\rTaskExecution\022" + - "2\n\002id\030\001 \001(\0132&.flyteidl.core.TaskExecutio" + - "nIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n\007closur" + - "e\030\003 \001(\0132$.flyteidl.admin.TaskExecutionCl" + - "osure\022\021\n\tis_parent\030\004 \001(\010\"Z\n\021TaskExecutio" + - "nList\0226\n\017task_executions\030\001 \003(\0132\035.flyteid" + - "l.admin.TaskExecution\022\r\n\005token\030\002 \001(\t\"\261\003\n" + - "\024TaskExecutionClosure\022\024\n\noutput_uri\030\001 \001(" + - "\tH\000\022.\n\005error\030\002 \001(\0132\035.flyteidl.core.Execu" + - "tionErrorH\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.co" + - "re.TaskExecution.Phase\022$\n\004logs\030\004 \003(\0132\026.f" + - "lyteidl.core.TaskLog\022.\n\nstarted_at\030\005 \001(\013" + - "2\032.google.protobuf.Timestamp\022+\n\010duration" + - "\030\006 \001(\0132\031.google.protobuf.Duration\022.\n\ncre" + - "ated_at\030\007 \001(\0132\032.google.protobuf.Timestam" + - "p\022.\n\nupdated_at\030\010 \001(\0132\032.google.protobuf." + - "Timestamp\022,\n\013custom_info\030\t \001(\0132\027.google." + - "protobuf.StructB\017\n\routput_result\"Q\n\033Task" + - "ExecutionGetDataRequest\0222\n\002id\030\001 \001(\0132&.fl" + - "yteidl.core.TaskExecutionIdentifier\"q\n\034T" + - "askExecutionGetDataResponse\022\'\n\006inputs\030\001 " + - "\001(\0132\027.flyteidl.admin.UrlBlob\022(\n\007outputs\030" + - "\002 \001(\0132\027.flyteidl.admin.UrlBlobB3Z1github" + - ".com/lyft/flyteidl/gen/pb-go/flyteidl/ad" + - "minb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.Common.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor, - new java.lang.String[] { "NodeExecutionId", "Limit", "Token", "Filters", "SortBy", }); - internal_static_flyteidl_admin_TaskExecution_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecution_descriptor, - new java.lang.String[] { "Id", "InputUri", "Closure", "IsParent", }); - internal_static_flyteidl_admin_TaskExecutionList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionList_descriptor, - new java.lang.String[] { "TaskExecutions", "Token", }); - internal_static_flyteidl_admin_TaskExecutionClosure_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionClosure_descriptor, - new java.lang.String[] { "OutputUri", "Error", "Phase", "Logs", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "CustomInfo", "OutputResult", }); - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor, - new java.lang.String[] { "Inputs", "Outputs", }); - flyteidl.admin.Common.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/TaskOuterClass.java b/gen/pb-java/flyteidl/admin/TaskOuterClass.java deleted file mode 100644 index 00cb436f8..000000000 --- a/gen/pb-java/flyteidl/admin/TaskOuterClass.java +++ /dev/null @@ -1,5102 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/task.proto - -package flyteidl.admin; - -public final class TaskOuterClass { - private TaskOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TaskCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Represents the specification for task.
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - boolean hasSpec(); - /** - *
-     * Represents the specification for task.
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - flyteidl.admin.TaskOuterClass.TaskSpec getSpec(); - /** - *
-     * Represents the specification for task.
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder(); - } - /** - *
-   * Represents a request structure to create a revision of a task.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskCreateRequest} - */ - public static final class TaskCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateRequest) - TaskCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskCreateRequest.newBuilder() to construct. - private TaskCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskCreateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskCreateRequest( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.TaskOuterClass.TaskSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.TaskOuterClass.TaskSpec spec_; - /** - *
-     * Represents the specification for task.
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * Represents the specification for task.
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { - return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; - } - /** - *
-     * Represents the specification for task.
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - 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 (spec_ != null) { - output.writeMessage(2, getSpec()); - } - 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 (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - 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 flyteidl.admin.TaskOuterClass.TaskCreateRequest)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskCreateRequest other = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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 flyteidl.admin.TaskOuterClass.TaskCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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 flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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(flyteidl.admin.TaskOuterClass.TaskCreateRequest 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; - } - /** - *
-     * Represents a request structure to create a revision of a task.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateRequest) - flyteidl.admin.TaskOuterClass.TaskCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskCreateRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateRequest build() { - flyteidl.admin.TaskOuterClass.TaskCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateRequest buildPartial() { - flyteidl.admin.TaskOuterClass.TaskCreateRequest result = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.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 flyteidl.admin.TaskOuterClass.TaskCreateRequest) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateRequest other) { - if (other == flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - 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 { - flyteidl.admin.TaskOuterClass.TaskCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.TaskOuterClass.TaskSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> specBuilder_; - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.TaskOuterClass.TaskSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.TaskOuterClass.TaskSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * Represents the specification for task.
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - @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:flyteidl.admin.TaskCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateRequest) - private static final flyteidl.admin.TaskOuterClass.TaskCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(); - } - - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskCreateRequest(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 flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskCreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Represents a response structure if task creation succeeds.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskCreateResponse} - */ - public static final class TaskCreateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateResponse) - TaskCreateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskCreateResponse.newBuilder() to construct. - private TaskCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskCreateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskCreateResponse( - 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; - 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskCreateResponse other = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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(flyteidl.admin.TaskOuterClass.TaskCreateResponse 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; - } - /** - *
-     * Represents a response structure if task creation succeeds.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskCreateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateResponse) - flyteidl.admin.TaskOuterClass.TaskCreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskCreateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateResponse build() { - flyteidl.admin.TaskOuterClass.TaskCreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateResponse buildPartial() { - flyteidl.admin.TaskOuterClass.TaskCreateResponse result = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(this); - 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateResponse other) { - if (other == flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.TaskOuterClass.TaskCreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.TaskCreateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateResponse) - private static final flyteidl.admin.TaskOuterClass.TaskCreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(); - } - - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskCreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskCreateResponse(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 flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Task) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - boolean hasClosure(); - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - flyteidl.admin.TaskOuterClass.TaskClosure getClosure(); - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder(); - } - /** - *
-   * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
-   * arranged to process workflow inputs and produce a deterministic set of outputs.
-   * Tasks can come in many varieties tuned for specialized behavior. 
-   * 
- * - * Protobuf type {@code flyteidl.admin.Task} - */ - public static final class Task extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Task) - TaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use Task.newBuilder() to construct. - private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Task() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Task( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.TaskOuterClass.TaskClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int CLOSURE_FIELD_NUMBER = 2; - private flyteidl.admin.TaskOuterClass.TaskClosure closure_; - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { - return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; - } - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - 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 (closure_ != null) { - output.writeMessage(2, getClosure()); - } - 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 (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getClosure()); - } - 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 flyteidl.admin.TaskOuterClass.Task)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.Task other = (flyteidl.admin.TaskOuterClass.Task) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) 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(); - } - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.Task 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 flyteidl.admin.TaskOuterClass.Task parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.Task 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 flyteidl.admin.TaskOuterClass.Task parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.Task 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(flyteidl.admin.TaskOuterClass.Task 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; - } - /** - *
-     * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
-     * arranged to process workflow inputs and produce a deterministic set of outputs.
-     * Tasks can come in many varieties tuned for specialized behavior. 
-     * 
- * - * Protobuf type {@code flyteidl.admin.Task} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Task) - flyteidl.admin.TaskOuterClass.TaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.Task.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.Task getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.Task.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.Task build() { - flyteidl.admin.TaskOuterClass.Task result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.Task buildPartial() { - flyteidl.admin.TaskOuterClass.Task result = new flyteidl.admin.TaskOuterClass.Task(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.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 flyteidl.admin.TaskOuterClass.Task) { - return mergeFrom((flyteidl.admin.TaskOuterClass.Task)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.Task other) { - if (other == flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - 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 { - flyteidl.admin.TaskOuterClass.Task parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.Task) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.TaskOuterClass.TaskClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> closureBuilder_; - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public Builder setClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public Builder setClosure( - flyteidl.admin.TaskOuterClass.TaskClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public Builder mergeClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.TaskOuterClass.TaskClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - @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:flyteidl.admin.Task) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Task) - private static final flyteidl.admin.TaskOuterClass.Task DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.Task(); - } - - public static flyteidl.admin.TaskOuterClass.Task getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Task parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Task(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 flyteidl.admin.TaskOuterClass.Task getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - java.util.List - getTasksList(); - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - flyteidl.admin.TaskOuterClass.Task getTasks(int index); - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - int getTasksCount(); - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - java.util.List - getTasksOrBuilderList(); - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of tasks returned from the admin.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskList} - */ - public static final class TaskList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskList) - TaskListOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskList.newBuilder() to construct. - private TaskList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskList() { - tasks_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskList( - 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)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tasks_.add( - input.readMessage(flyteidl.admin.TaskOuterClass.Task.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); - } - - private int bitField0_; - public static final int TASKS_FIELD_NUMBER = 1; - private java.util.List tasks_; - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { - return tasks_.get(index); - } - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( - int index) { - return tasks_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(1, tasks_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tasks_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.TaskOuterClass.TaskList)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskList other = (flyteidl.admin.TaskOuterClass.TaskList) obj; - - if (!getTasksList() - .equals(other.getTasksList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskList 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 flyteidl.admin.TaskOuterClass.TaskList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskList 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 flyteidl.admin.TaskOuterClass.TaskList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskList 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(flyteidl.admin.TaskOuterClass.TaskList 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; - } - /** - *
-     * Represents a list of tasks returned from the admin.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskList) - flyteidl.admin.TaskOuterClass.TaskListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTasksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - tasksBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskList getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskList build() { - flyteidl.admin.TaskOuterClass.TaskList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskList buildPartial() { - flyteidl.admin.TaskOuterClass.TaskList result = new flyteidl.admin.TaskOuterClass.TaskList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.TaskOuterClass.TaskList) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskList other) { - if (other == flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance()) return this; - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.TaskOuterClass.TaskList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> tasksBuilder_; - - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder setTasks( - int index, flyteidl.admin.TaskOuterClass.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder setTasks( - int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addTasks(flyteidl.admin.TaskOuterClass.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addTasks( - int index, flyteidl.admin.TaskOuterClass.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addTasks( - flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addTasks( - int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder>( - tasks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.TaskList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskList) - private static final flyteidl.admin.TaskOuterClass.TaskList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskList(); - } - - public static flyteidl.admin.TaskOuterClass.TaskList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskList(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 flyteidl.admin.TaskOuterClass.TaskList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - boolean hasTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - flyteidl.core.Tasks.TaskTemplate getTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); - } - /** - *
-   * Represents a structure that encapsulates the user-configured specification of the task.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskSpec} - */ - public static final class TaskSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskSpec) - TaskSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskSpec.newBuilder() to construct. - private TaskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskSpec() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskSpec( - 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: { - flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); - } - - public static final int TEMPLATE_FIELD_NUMBER = 1; - private flyteidl.core.Tasks.TaskTemplate template_; - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - 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 (template_ != null) { - output.writeMessage(1, getTemplate()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTemplate()); - } - 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 flyteidl.admin.TaskOuterClass.TaskSpec)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskSpec other = (flyteidl.admin.TaskOuterClass.TaskSpec) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) 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 (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec 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 flyteidl.admin.TaskOuterClass.TaskSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec 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 flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec 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(flyteidl.admin.TaskOuterClass.TaskSpec 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; - } - /** - *
-     * Represents a structure that encapsulates the user-configured specification of the task.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskSpec) - flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskSpec.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 (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskSpec build() { - flyteidl.admin.TaskOuterClass.TaskSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskSpec buildPartial() { - flyteidl.admin.TaskOuterClass.TaskSpec result = new flyteidl.admin.TaskOuterClass.TaskSpec(this); - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.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 flyteidl.admin.TaskOuterClass.TaskSpec) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskSpec other) { - if (other == flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance()) return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - 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 { - flyteidl.admin.TaskOuterClass.TaskSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Tasks.TaskTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder setTemplate( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - @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:flyteidl.admin.TaskSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskSpec) - private static final flyteidl.admin.TaskOuterClass.TaskSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskSpec(); - } - - public static flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskSpec(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 flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - boolean hasCompiledTask(); - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - flyteidl.core.Compiler.CompiledTask getCompiledTask(); - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder(); - - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - } - /** - *
-   * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
-   * and task metadata.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskClosure} - */ - public static final class TaskClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskClosure) - TaskClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskClosure.newBuilder() to construct. - private TaskClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskClosure() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskClosure( - 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: { - flyteidl.core.Compiler.CompiledTask.Builder subBuilder = null; - if (compiledTask_ != null) { - subBuilder = compiledTask_.toBuilder(); - } - compiledTask_ = input.readMessage(flyteidl.core.Compiler.CompiledTask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compiledTask_); - compiledTask_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - 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; - } - 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); - } - - public static final int COMPILED_TASK_FIELD_NUMBER = 1; - private flyteidl.core.Compiler.CompiledTask compiledTask_; - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public boolean hasCompiledTask() { - return compiledTask_ != null; - } - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTask getCompiledTask() { - return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; - } - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { - return getCompiledTask(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - 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 (compiledTask_ != null) { - output.writeMessage(1, getCompiledTask()); - } - if (createdAt_ != null) { - output.writeMessage(2, getCreatedAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (compiledTask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCompiledTask()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreatedAt()); - } - 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 flyteidl.admin.TaskOuterClass.TaskClosure)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskClosure other = (flyteidl.admin.TaskOuterClass.TaskClosure) obj; - - if (hasCompiledTask() != other.hasCompiledTask()) return false; - if (hasCompiledTask()) { - if (!getCompiledTask() - .equals(other.getCompiledTask())) return false; - } - if (hasCreatedAt() != other.hasCreatedAt()) return false; - if (hasCreatedAt()) { - if (!getCreatedAt() - .equals(other.getCreatedAt())) 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 (hasCompiledTask()) { - hash = (37 * hash) + COMPILED_TASK_FIELD_NUMBER; - hash = (53 * hash) + getCompiledTask().hashCode(); - } - if (hasCreatedAt()) { - hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getCreatedAt().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure 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 flyteidl.admin.TaskOuterClass.TaskClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure 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 flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure 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(flyteidl.admin.TaskOuterClass.TaskClosure 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; - } - /** - *
-     * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
-     * and task metadata.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskClosure) - flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskClosure.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 (compiledTaskBuilder_ == null) { - compiledTask_ = null; - } else { - compiledTask_ = null; - compiledTaskBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskClosure build() { - flyteidl.admin.TaskOuterClass.TaskClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskClosure buildPartial() { - flyteidl.admin.TaskOuterClass.TaskClosure result = new flyteidl.admin.TaskOuterClass.TaskClosure(this); - if (compiledTaskBuilder_ == null) { - result.compiledTask_ = compiledTask_; - } else { - result.compiledTask_ = compiledTaskBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.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 flyteidl.admin.TaskOuterClass.TaskClosure) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskClosure other) { - if (other == flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance()) return this; - if (other.hasCompiledTask()) { - mergeCompiledTask(other.getCompiledTask()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - 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 { - flyteidl.admin.TaskOuterClass.TaskClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Compiler.CompiledTask compiledTask_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> compiledTaskBuilder_; - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public boolean hasCompiledTask() { - return compiledTaskBuilder_ != null || compiledTask_ != null; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTask getCompiledTask() { - if (compiledTaskBuilder_ == null) { - return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; - } else { - return compiledTaskBuilder_.getMessage(); - } - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public Builder setCompiledTask(flyteidl.core.Compiler.CompiledTask value) { - if (compiledTaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compiledTask_ = value; - onChanged(); - } else { - compiledTaskBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public Builder setCompiledTask( - flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { - if (compiledTaskBuilder_ == null) { - compiledTask_ = builderForValue.build(); - onChanged(); - } else { - compiledTaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public Builder mergeCompiledTask(flyteidl.core.Compiler.CompiledTask value) { - if (compiledTaskBuilder_ == null) { - if (compiledTask_ != null) { - compiledTask_ = - flyteidl.core.Compiler.CompiledTask.newBuilder(compiledTask_).mergeFrom(value).buildPartial(); - } else { - compiledTask_ = value; - } - onChanged(); - } else { - compiledTaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public Builder clearCompiledTask() { - if (compiledTaskBuilder_ == null) { - compiledTask_ = null; - onChanged(); - } else { - compiledTask_ = null; - compiledTaskBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTask.Builder getCompiledTaskBuilder() { - - onChanged(); - return getCompiledTaskFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { - if (compiledTaskBuilder_ != null) { - return compiledTaskBuilder_.getMessageOrBuilder(); - } else { - return compiledTask_ == null ? - flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; - } - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> - getCompiledTaskFieldBuilder() { - if (compiledTaskBuilder_ == null) { - compiledTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( - getCompiledTask(), - getParentForChildren(), - isClean()); - compiledTask_ = null; - } - return compiledTaskBuilder_; - } - - 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_; - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - 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; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - 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; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - 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_; - } - @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:flyteidl.admin.TaskClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskClosure) - private static final flyteidl.admin.TaskOuterClass.TaskClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskClosure(); - } - - public static flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskClosure(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 flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskCreateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskCreateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Task_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Task_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskClosure_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\031flyteidl/admin/task.proto\022\016flyteidl.ad" + - "min\032\036flyteidl/core/identifier.proto\032\031fly" + - "teidl/core/tasks.proto\032\034flyteidl/core/co" + - "mpiler.proto\032\037google/protobuf/timestamp." + - "proto\"b\n\021TaskCreateRequest\022%\n\002id\030\001 \001(\0132\031" + - ".flyteidl.core.Identifier\022&\n\004spec\030\002 \001(\0132" + - "\030.flyteidl.admin.TaskSpec\"\024\n\022TaskCreateR" + - "esponse\"[\n\004Task\022%\n\002id\030\001 \001(\0132\031.flyteidl.c" + - "ore.Identifier\022,\n\007closure\030\002 \001(\0132\033.flytei" + - "dl.admin.TaskClosure\">\n\010TaskList\022#\n\005task" + - "s\030\001 \003(\0132\024.flyteidl.admin.Task\022\r\n\005token\030\002" + - " \001(\t\"9\n\010TaskSpec\022-\n\010template\030\001 \001(\0132\033.fly" + - "teidl.core.TaskTemplate\"q\n\013TaskClosure\0222" + - "\n\rcompiled_task\030\001 \001(\0132\033.flyteidl.core.Co" + - "mpiledTask\022.\n\ncreated_at\030\002 \001(\0132\032.google." + - "protobuf.TimestampB3Z1github.com/lyft/fl" + - "yteidl/gen/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Tasks.getDescriptor(), - flyteidl.core.Compiler.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_TaskCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskCreateRequest_descriptor, - new java.lang.String[] { "Id", "Spec", }); - internal_static_flyteidl_admin_TaskCreateResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskCreateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_Task_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_Task_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Task_descriptor, - new java.lang.String[] { "Id", "Closure", }); - internal_static_flyteidl_admin_TaskList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_TaskList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskList_descriptor, - new java.lang.String[] { "Tasks", "Token", }); - internal_static_flyteidl_admin_TaskSpec_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskSpec_descriptor, - new java.lang.String[] { "Template", }); - internal_static_flyteidl_admin_TaskClosure_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskClosure_descriptor, - new java.lang.String[] { "CompiledTask", "CreatedAt", }); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Tasks.getDescriptor(); - flyteidl.core.Compiler.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java b/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java deleted file mode 100644 index 0d6544885..000000000 --- a/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java +++ /dev/null @@ -1,5375 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/workflow_attributes.proto - -package flyteidl.admin; - -public final class WorkflowAttributesOuterClass { - private WorkflowAttributesOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorkflowAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Workflow name for which this set of attributes will be applied.
-     * 
- * - * string workflow = 3; - */ - java.lang.String getWorkflow(); - /** - *
-     * Workflow name for which this set of attributes will be applied.
-     * 
- * - * string workflow = 3; - */ - com.google.protobuf.ByteString - getWorkflowBytes(); - - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - boolean hasMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.admin.WorkflowAttributes} - */ - public static final class WorkflowAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributes) - WorkflowAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributes.newBuilder() to construct. - private WorkflowAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributes() { - project_ = ""; - domain_ = ""; - workflow_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributes( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - workflow_ = s; - break; - } - case 34: { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; - if (matchingAttributes_ != null) { - subBuilder = matchingAttributes_.toBuilder(); - } - matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(matchingAttributes_); - matchingAttributes_ = 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKFLOW_FIELD_NUMBER = 3; - private volatile java.lang.Object workflow_; - /** - *
-     * Workflow name for which this set of attributes will be applied.
-     * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - 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(); - workflow_ = s; - return s; - } - } - /** - *
-     * Workflow name for which this set of attributes will be applied.
-     * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 4; - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public boolean hasMatchingAttributes() { - return matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - return getMatchingAttributes(); - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); - } - if (matchingAttributes_ != null) { - output.writeMessage(4, getMatchingAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); - } - if (matchingAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMatchingAttributes()); - } - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; - if (hasMatchingAttributes()) { - if (!getMatchingAttributes() - .equals(other.getMatchingAttributes())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - if (hasMatchingAttributes()) { - hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getMatchingAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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 flyteidl.admin.WorkflowAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributes) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.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(); - project_ = ""; - - domain_ = ""; - - workflow_ = ""; - - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes(this); - result.project_ = project_; - result.domain_ = domain_; - result.workflow_ = workflow_; - if (matchingAttributesBuilder_ == null) { - result.matchingAttributes_ = matchingAttributes_; - } else { - result.matchingAttributes_ = matchingAttributesBuilder_.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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getWorkflow().isEmpty()) { - workflow_ = other.workflow_; - onChanged(); - } - if (other.hasMatchingAttributes()) { - mergeMatchingAttributes(other.getMatchingAttributes()); - } - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object workflow_ = ""; - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflow( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflow_ = value; - onChanged(); - return this; - } - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public Builder clearWorkflow() { - - workflow_ = getDefaultInstance().getWorkflow(); - onChanged(); - return this; - } - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflowBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflow_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public boolean hasMatchingAttributes() { - return matchingAttributesBuilder_ != null || matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } else { - return matchingAttributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - matchingAttributes_ = value; - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public Builder setMatchingAttributes( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = builderForValue.build(); - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (matchingAttributes_ != null) { - matchingAttributes_ = - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); - } else { - matchingAttributes_ = value; - } - onChanged(); - } else { - matchingAttributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public Builder clearMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - onChanged(); - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { - - onChanged(); - return getMatchingAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - if (matchingAttributesBuilder_ != null) { - return matchingAttributesBuilder_.getMessageOrBuilder(); - } else { - return matchingAttributes_ == null ? - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> - getMatchingAttributesFieldBuilder() { - if (matchingAttributesBuilder_ == null) { - matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( - getMatchingAttributes(), - getParentForChildren(), - isClean()); - matchingAttributes_ = null; - } - return matchingAttributesBuilder_; - } - @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:flyteidl.admin.WorkflowAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributes) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributes(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes(); - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder(); - } - /** - *
-   * Sets custom attributes for a project, domain and workflow combination.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateRequest} - */ - public static final class WorkflowAttributesUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesUpdateRequest) - WorkflowAttributesUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesUpdateRequest.newBuilder() to construct. - private WorkflowAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesUpdateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesUpdateRequest( - 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: { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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; - } - /** - *
-     * Sets custom attributes for a project, domain and workflow combination.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesUpdateRequest) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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:flyteidl.admin.WorkflowAttributesUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateRequest) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesUpdateRequest(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateResponse} - */ - public static final class WorkflowAttributesUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesUpdateResponse) - WorkflowAttributesUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesUpdateResponse.newBuilder() to construct. - private WorkflowAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesUpdateResponse( - 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; - 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesUpdateResponse) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse(this); - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.WorkflowAttributesUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateResponse) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesUpdateResponse(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - java.lang.String getWorkflow(); - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - com.google.protobuf.ByteString - getWorkflowBytes(); - - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - int getResourceTypeValue(); - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetRequest} - */ - public static final class WorkflowAttributesGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesGetRequest) - WorkflowAttributesGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesGetRequest.newBuilder() to construct. - private WorkflowAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesGetRequest() { - project_ = ""; - domain_ = ""; - workflow_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesGetRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - workflow_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKFLOW_FIELD_NUMBER = 3; - private volatile java.lang.Object workflow_; - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - 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(); - workflow_ = s; - return s; - } - } - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 4; - private int resourceType_; - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(4, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, resourceType_); - } - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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 flyteidl.admin.WorkflowAttributesGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesGetRequest) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.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(); - project_ = ""; - - domain_ = ""; - - workflow_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.workflow_ = workflow_; - result.resourceType_ = resourceType_; - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getWorkflow().isEmpty()) { - workflow_ = other.workflow_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object workflow_ = ""; - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflow( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflow_ = value; - onChanged(); - return this; - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public Builder clearWorkflow() { - - workflow_ = getDefaultInstance().getWorkflow(); - onChanged(); - return this; - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflowBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflow_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - 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:flyteidl.admin.WorkflowAttributesGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetRequest) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesGetRequest(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesGetResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesGetResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes(); - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetResponse} - */ - public static final class WorkflowAttributesGetResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesGetResponse) - WorkflowAttributesGetResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesGetResponse.newBuilder() to construct. - private WorkflowAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesGetResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesGetResponse( - 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: { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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 flyteidl.admin.WorkflowAttributesGetResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesGetResponse) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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:flyteidl.admin.WorkflowAttributesGetResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetResponse) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesGetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesGetResponse(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesDeleteRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesDeleteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - java.lang.String getWorkflow(); - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - com.google.protobuf.ByteString - getWorkflowBytes(); - - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - int getResourceTypeValue(); - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteRequest} - */ - public static final class WorkflowAttributesDeleteRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesDeleteRequest) - WorkflowAttributesDeleteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesDeleteRequest.newBuilder() to construct. - private WorkflowAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesDeleteRequest() { - project_ = ""; - domain_ = ""; - workflow_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesDeleteRequest( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - workflow_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id which this set of attributes references.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKFLOW_FIELD_NUMBER = 3; - private volatile java.lang.Object workflow_; - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - 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(); - workflow_ = s; - return s; - } - } - /** - *
-     * Workflow name which this set of attributes references.
-     * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 4; - private int resourceType_; - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(4, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, resourceType_); - } - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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 flyteidl.admin.WorkflowAttributesDeleteRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesDeleteRequest) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.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(); - project_ = ""; - - domain_ = ""; - - workflow_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.workflow_ = workflow_; - result.resourceType_ = resourceType_; - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getWorkflow().isEmpty()) { - workflow_ = other.workflow_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object workflow_ = ""; - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflow( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflow_ = value; - onChanged(); - return this; - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public Builder clearWorkflow() { - - workflow_ = getDefaultInstance().getWorkflow(); - onChanged(); - return this; - } - /** - *
-       * Workflow name which this set of attributes references.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflowBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflow_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - 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:flyteidl.admin.WorkflowAttributesDeleteRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteRequest) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesDeleteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesDeleteRequest(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesDeleteResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesDeleteResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteResponse} - */ - public static final class WorkflowAttributesDeleteResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesDeleteResponse) - WorkflowAttributesDeleteResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesDeleteResponse.newBuilder() to construct. - private WorkflowAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesDeleteResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesDeleteResponse( - 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; - 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesDeleteResponse) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse(this); - 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.WorkflowAttributesDeleteResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteResponse) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesDeleteResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesDeleteResponse(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_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(flyteidl/admin/workflow_attributes.pro" + - "to\022\016flyteidl.admin\032\'flyteidl/admin/match" + - "able_resource.proto\"\210\001\n\022WorkflowAttribut" + - "es\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010w" + - "orkflow\030\003 \001(\t\022?\n\023matching_attributes\030\004 \001" + - "(\0132\".flyteidl.admin.MatchingAttributes\"Y" + - "\n\037WorkflowAttributesUpdateRequest\0226\n\natt" + - "ributes\030\001 \001(\0132\".flyteidl.admin.WorkflowA" + - "ttributes\"\"\n WorkflowAttributesUpdateRes" + - "ponse\"\213\001\n\034WorkflowAttributesGetRequest\022\017" + - "\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workf" + - "low\030\003 \001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyte" + - "idl.admin.MatchableResource\"W\n\035WorkflowA" + - "ttributesGetResponse\0226\n\nattributes\030\001 \001(\013" + - "2\".flyteidl.admin.WorkflowAttributes\"\216\001\n" + - "\037WorkflowAttributesDeleteRequest\022\017\n\007proj" + - "ect\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workflow\030\003 " + - "\001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyteidl.ad" + - "min.MatchableResource\"\"\n WorkflowAttribu" + - "tesDeleteResponseB3Z1github.com/lyft/fly" + - "teidl/gen/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_WorkflowAttributes_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributes_descriptor, - new java.lang.String[] { "Project", "Domain", "Workflow", "MatchingAttributes", }); - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Workflow", "ResourceType", }); - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Workflow", "ResourceType", }); - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor, - new java.lang.String[] { }); - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java b/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java deleted file mode 100644 index d52dfb944..000000000 --- a/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java +++ /dev/null @@ -1,5646 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/workflow.proto - -package flyteidl.admin; - -public final class WorkflowOuterClass { - private WorkflowOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorkflowCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Represents the specification for workflow.
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - boolean hasSpec(); - /** - *
-     * Represents the specification for workflow.
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec(); - /** - *
-     * Represents the specification for workflow.
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder(); - } - /** - *
-   * Represents a request structure to create a revision of a workflow.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} - */ - public static final class WorkflowCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateRequest) - WorkflowCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowCreateRequest.newBuilder() to construct. - private WorkflowCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowCreateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowCreateRequest( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_; - /** - *
-     * Represents the specification for workflow.
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * Represents the specification for workflow.
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { - return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; - } - /** - *
-     * Represents the specification for workflow.
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - 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 (spec_ != null) { - output.writeMessage(2, getSpec()); - } - 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 (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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(flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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; - } - /** - *
-     * Represents a request structure to create a revision of a workflow.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateRequest) - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest build() { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - 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 { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> specBuilder_; - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * Represents the specification for workflow.
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - @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:flyteidl.admin.WorkflowCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateRequest) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowCreateRequest(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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowCreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future. 
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} - */ - public static final class WorkflowCreateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateResponse) - WorkflowCreateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowCreateResponse.newBuilder() to construct. - private WorkflowCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowCreateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowCreateResponse( - 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; - 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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(flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future. 
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateResponse) - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse build() { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(this); - 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance()) return this; - 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 { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.admin.WorkflowCreateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateResponse) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowCreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowCreateResponse(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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Workflow) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - boolean hasClosure(); - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure(); - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder(); - } - /** - *
-   * Represents the workflow structure stored in the Admin
-   * A workflow is created by ordering tasks and associating outputs to inputs
-   * in order to produce a directed-acyclic execution graph.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Workflow} - */ - public static final class Workflow extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Workflow) - WorkflowOrBuilder { - private static final long serialVersionUID = 0L; - // Use Workflow.newBuilder() to construct. - private Workflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Workflow() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Workflow( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int CLOSURE_FIELD_NUMBER = 2; - private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_; - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { - return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; - } - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - 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 (closure_ != null) { - output.writeMessage(2, getClosure()); - } - 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 (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getClosure()); - } - 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 flyteidl.admin.WorkflowOuterClass.Workflow)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.Workflow other = (flyteidl.admin.WorkflowOuterClass.Workflow) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) 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(); - } - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow 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 flyteidl.admin.WorkflowOuterClass.Workflow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow 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 flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow 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(flyteidl.admin.WorkflowOuterClass.Workflow 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; - } - /** - *
-     * Represents the workflow structure stored in the Admin
-     * A workflow is created by ordering tasks and associating outputs to inputs
-     * in order to produce a directed-acyclic execution graph.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Workflow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Workflow) - flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.Workflow.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.Workflow build() { - flyteidl.admin.WorkflowOuterClass.Workflow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.Workflow buildPartial() { - flyteidl.admin.WorkflowOuterClass.Workflow result = new flyteidl.admin.WorkflowOuterClass.Workflow(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.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 flyteidl.admin.WorkflowOuterClass.Workflow) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.Workflow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.Workflow other) { - if (other == flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - 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 { - flyteidl.admin.WorkflowOuterClass.Workflow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.Workflow) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> closureBuilder_; - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public Builder setClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public Builder setClosure( - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public Builder mergeClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - @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:flyteidl.admin.Workflow) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Workflow) - private static final flyteidl.admin.WorkflowOuterClass.Workflow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.Workflow(); - } - - public static flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Workflow(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 flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - java.util.List - getWorkflowsList(); - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index); - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - int getWorkflowsCount(); - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - java.util.List - getWorkflowsOrBuilderList(); - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of workflows returned from the admin.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowList} - */ - public static final class WorkflowList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowList) - WorkflowListOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowList.newBuilder() to construct. - private WorkflowList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowList() { - workflows_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowList( - 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)) { - workflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - workflows_.add( - input.readMessage(flyteidl.admin.WorkflowOuterClass.Workflow.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = 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)) { - workflows_ = java.util.Collections.unmodifiableList(workflows_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); - } - - private int bitField0_; - public static final int WORKFLOWS_FIELD_NUMBER = 1; - private java.util.List workflows_; - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List getWorkflowsList() { - return workflows_; - } - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List - getWorkflowsOrBuilderList() { - return workflows_; - } - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public int getWorkflowsCount() { - return workflows_.size(); - } - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { - return workflows_.get(index); - } - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( - int index) { - return workflows_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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 { - for (int i = 0; i < workflows_.size(); i++) { - output.writeMessage(1, workflows_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < workflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workflows_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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 flyteidl.admin.WorkflowOuterClass.WorkflowList)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowList other = (flyteidl.admin.WorkflowOuterClass.WorkflowList) obj; - - if (!getWorkflowsList() - .equals(other.getWorkflowsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getWorkflowsCount() > 0) { - hash = (37 * hash) + WORKFLOWS_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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 flyteidl.admin.WorkflowOuterClass.WorkflowList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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 flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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(flyteidl.admin.WorkflowOuterClass.WorkflowList 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; - } - /** - *
-     * Represents a list of workflows returned from the admin.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowList) - flyteidl.admin.WorkflowOuterClass.WorkflowListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getWorkflowsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (workflowsBuilder_ == null) { - workflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - workflowsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowList build() { - flyteidl.admin.WorkflowOuterClass.WorkflowList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowList buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowList result = new flyteidl.admin.WorkflowOuterClass.WorkflowList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (workflowsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - workflows_ = java.util.Collections.unmodifiableList(workflows_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.workflows_ = workflows_; - } else { - result.workflows_ = workflowsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.WorkflowOuterClass.WorkflowList) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowList other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance()) return this; - if (workflowsBuilder_ == null) { - if (!other.workflows_.isEmpty()) { - if (workflows_.isEmpty()) { - workflows_ = other.workflows_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWorkflowsIsMutable(); - workflows_.addAll(other.workflows_); - } - onChanged(); - } - } else { - if (!other.workflows_.isEmpty()) { - if (workflowsBuilder_.isEmpty()) { - workflowsBuilder_.dispose(); - workflowsBuilder_ = null; - workflows_ = other.workflows_; - bitField0_ = (bitField0_ & ~0x00000001); - workflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkflowsFieldBuilder() : null; - } else { - workflowsBuilder_.addAllMessages(other.workflows_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - 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 { - flyteidl.admin.WorkflowOuterClass.WorkflowList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List workflows_ = - java.util.Collections.emptyList(); - private void ensureWorkflowsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - workflows_ = new java.util.ArrayList(workflows_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> workflowsBuilder_; - - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List getWorkflowsList() { - if (workflowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(workflows_); - } else { - return workflowsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public int getWorkflowsCount() { - if (workflowsBuilder_ == null) { - return workflows_.size(); - } else { - return workflowsBuilder_.getCount(); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { - if (workflowsBuilder_ == null) { - return workflows_.get(index); - } else { - return workflowsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder setWorkflows( - int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { - if (workflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowsIsMutable(); - workflows_.set(index, value); - onChanged(); - } else { - workflowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder setWorkflows( - int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - workflows_.set(index, builderForValue.build()); - onChanged(); - } else { - workflowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addWorkflows(flyteidl.admin.WorkflowOuterClass.Workflow value) { - if (workflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowsIsMutable(); - workflows_.add(value); - onChanged(); - } else { - workflowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addWorkflows( - int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { - if (workflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowsIsMutable(); - workflows_.add(index, value); - onChanged(); - } else { - workflowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addWorkflows( - flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - workflows_.add(builderForValue.build()); - onChanged(); - } else { - workflowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addWorkflows( - int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - workflows_.add(index, builderForValue.build()); - onChanged(); - } else { - workflowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addAllWorkflows( - java.lang.Iterable values) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workflows_); - onChanged(); - } else { - workflowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder clearWorkflows() { - if (workflowsBuilder_ == null) { - workflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - workflowsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder removeWorkflows(int index) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - workflows_.remove(index); - onChanged(); - } else { - workflowsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow.Builder getWorkflowsBuilder( - int index) { - return getWorkflowsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( - int index) { - if (workflowsBuilder_ == null) { - return workflows_.get(index); } else { - return workflowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List - getWorkflowsOrBuilderList() { - if (workflowsBuilder_ != null) { - return workflowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(workflows_); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder() { - return getWorkflowsFieldBuilder().addBuilder( - flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder( - int index) { - return getWorkflowsFieldBuilder().addBuilder( - index, flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List - getWorkflowsBuilderList() { - return getWorkflowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> - getWorkflowsFieldBuilder() { - if (workflowsBuilder_ == null) { - workflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder>( - workflows_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - workflows_ = null; - } - return workflowsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = 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:flyteidl.admin.WorkflowList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowList) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowList(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowList(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 flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - boolean hasTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - flyteidl.core.Workflow.WorkflowTemplate getTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); - - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - java.util.List - getSubWorkflowsList(); - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index); - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - int getSubWorkflowsCount(); - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - java.util.List - getSubWorkflowsOrBuilderList(); - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( - int index); - } - /** - *
-   * Represents a structure that encapsulates the specification of the workflow.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowSpec} - */ - public static final class WorkflowSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowSpec) - WorkflowSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowSpec.newBuilder() to construct. - private WorkflowSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowSpec() { - subWorkflows_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowSpec( - 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: { - flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - subWorkflows_.add( - input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.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_ & 0x00000002) != 0)) { - subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); - } - - private int bitField0_; - public static final int TEMPLATE_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.WorkflowTemplate template_; - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { - return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - public static final int SUB_WORKFLOWS_FIELD_NUMBER = 2; - private java.util.List subWorkflows_; - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List getSubWorkflowsList() { - return subWorkflows_; - } - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsOrBuilderList() { - return subWorkflows_; - } - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public int getSubWorkflowsCount() { - return subWorkflows_.size(); - } - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index) { - return subWorkflows_.get(index); - } - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( - int index) { - return subWorkflows_.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 (template_ != null) { - output.writeMessage(1, getTemplate()); - } - for (int i = 0; i < subWorkflows_.size(); i++) { - output.writeMessage(2, subWorkflows_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTemplate()); - } - for (int i = 0; i < subWorkflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, subWorkflows_.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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowSpec other = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; - } - if (!getSubWorkflowsList() - .equals(other.getSubWorkflowsList())) 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 (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - if (getSubWorkflowsCount() > 0) { - hash = (37 * hash) + SUB_WORKFLOWS_FIELD_NUMBER; - hash = (53 * hash) + getSubWorkflowsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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(flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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; - } - /** - *
-     * Represents a structure that encapsulates the specification of the workflow.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowSpec) - flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSubWorkflowsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - if (subWorkflowsBuilder_ == null) { - subWorkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - subWorkflowsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec build() { - flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.build(); - } - if (subWorkflowsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.subWorkflows_ = subWorkflows_; - } else { - result.subWorkflows_ = subWorkflowsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowSpec other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance()) return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - if (subWorkflowsBuilder_ == null) { - if (!other.subWorkflows_.isEmpty()) { - if (subWorkflows_.isEmpty()) { - subWorkflows_ = other.subWorkflows_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSubWorkflowsIsMutable(); - subWorkflows_.addAll(other.subWorkflows_); - } - onChanged(); - } - } else { - if (!other.subWorkflows_.isEmpty()) { - if (subWorkflowsBuilder_.isEmpty()) { - subWorkflowsBuilder_.dispose(); - subWorkflowsBuilder_ = null; - subWorkflows_ = other.subWorkflows_; - bitField0_ = (bitField0_ & ~0x00000002); - subWorkflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubWorkflowsFieldBuilder() : null; - } else { - subWorkflowsBuilder_.addAllMessages(other.subWorkflows_); - } - } - } - 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 { - flyteidl.admin.WorkflowOuterClass.WorkflowSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.Workflow.WorkflowTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder setTemplate( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - - private java.util.List subWorkflows_ = - java.util.Collections.emptyList(); - private void ensureSubWorkflowsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = new java.util.ArrayList(subWorkflows_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> subWorkflowsBuilder_; - - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List getSubWorkflowsList() { - if (subWorkflowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subWorkflows_); - } else { - return subWorkflowsBuilder_.getMessageList(); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public int getSubWorkflowsCount() { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.size(); - } else { - return subWorkflowsBuilder_.getCount(); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index) { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.get(index); - } else { - return subWorkflowsBuilder_.getMessage(index); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder setSubWorkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.set(index, value); - onChanged(); - } else { - subWorkflowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder setSubWorkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.set(index, builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addSubWorkflows(flyteidl.core.Workflow.WorkflowTemplate value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(value); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addSubWorkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(index, value); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addSubWorkflows( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addSubWorkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(index, builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addAllSubWorkflows( - java.lang.Iterable values) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subWorkflows_); - onChanged(); - } else { - subWorkflowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder clearSubWorkflows() { - if (subWorkflowsBuilder_ == null) { - subWorkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - subWorkflowsBuilder_.clear(); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder removeSubWorkflows(int index) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.remove(index); - onChanged(); - } else { - subWorkflowsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getSubWorkflowsBuilder( - int index) { - return getSubWorkflowsFieldBuilder().getBuilder(index); - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( - int index) { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.get(index); } else { - return subWorkflowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsOrBuilderList() { - if (subWorkflowsBuilder_ != null) { - return subWorkflowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subWorkflows_); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubWorkflowsBuilder() { - return getSubWorkflowsFieldBuilder().addBuilder( - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubWorkflowsBuilder( - int index) { - return getSubWorkflowsFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsBuilderList() { - return getSubWorkflowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getSubWorkflowsFieldBuilder() { - if (subWorkflowsBuilder_ == null) { - subWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - subWorkflows_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - subWorkflows_ = null; - } - return subWorkflowsBuilder_; - } - @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:flyteidl.admin.WorkflowSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowSpec) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowSpec(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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - boolean hasCompiledWorkflow(); - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow(); - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder(); - - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - } - /** - *
-   * A container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowClosure} - */ - public static final class WorkflowClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowClosure) - WorkflowClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowClosure.newBuilder() to construct. - private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowClosure() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowClosure( - 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: { - flyteidl.core.Compiler.CompiledWorkflowClosure.Builder subBuilder = null; - if (compiledWorkflow_ != null) { - subBuilder = compiledWorkflow_.toBuilder(); - } - compiledWorkflow_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflowClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compiledWorkflow_); - compiledWorkflow_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - 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; - } - 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); - } - - public static final int COMPILED_WORKFLOW_FIELD_NUMBER = 1; - private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public boolean hasCompiledWorkflow() { - return compiledWorkflow_ != null; - } - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { - return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { - return getCompiledWorkflow(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - 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 (compiledWorkflow_ != null) { - output.writeMessage(1, getCompiledWorkflow()); - } - if (createdAt_ != null) { - output.writeMessage(2, getCreatedAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (compiledWorkflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCompiledWorkflow()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreatedAt()); - } - 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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowClosure other = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) obj; - - if (hasCompiledWorkflow() != other.hasCompiledWorkflow()) return false; - if (hasCompiledWorkflow()) { - if (!getCompiledWorkflow() - .equals(other.getCompiledWorkflow())) return false; - } - if (hasCreatedAt() != other.hasCreatedAt()) return false; - if (hasCreatedAt()) { - if (!getCreatedAt() - .equals(other.getCreatedAt())) 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 (hasCompiledWorkflow()) { - hash = (37 * hash) + COMPILED_WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getCompiledWorkflow().hashCode(); - } - if (hasCreatedAt()) { - hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getCreatedAt().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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(flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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 container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowClosure) - flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowClosure.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 (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = null; - } else { - compiledWorkflow_ = null; - compiledWorkflowBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure build() { - flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(this); - if (compiledWorkflowBuilder_ == null) { - result.compiledWorkflow_ = compiledWorkflow_; - } else { - result.compiledWorkflow_ = compiledWorkflowBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowClosure other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance()) return this; - if (other.hasCompiledWorkflow()) { - mergeCompiledWorkflow(other.getCompiledWorkflow()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - 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 { - flyteidl.admin.WorkflowOuterClass.WorkflowClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> compiledWorkflowBuilder_; - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public boolean hasCompiledWorkflow() { - return compiledWorkflowBuilder_ != null || compiledWorkflow_ != null; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { - if (compiledWorkflowBuilder_ == null) { - return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } else { - return compiledWorkflowBuilder_.getMessage(); - } - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public Builder setCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { - if (compiledWorkflowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compiledWorkflow_ = value; - onChanged(); - } else { - compiledWorkflowBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public Builder setCompiledWorkflow( - flyteidl.core.Compiler.CompiledWorkflowClosure.Builder builderForValue) { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = builderForValue.build(); - onChanged(); - } else { - compiledWorkflowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public Builder mergeCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { - if (compiledWorkflowBuilder_ == null) { - if (compiledWorkflow_ != null) { - compiledWorkflow_ = - flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder(compiledWorkflow_).mergeFrom(value).buildPartial(); - } else { - compiledWorkflow_ = value; - } - onChanged(); - } else { - compiledWorkflowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public Builder clearCompiledWorkflow() { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = null; - onChanged(); - } else { - compiledWorkflow_ = null; - compiledWorkflowBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure.Builder getCompiledWorkflowBuilder() { - - onChanged(); - return getCompiledWorkflowFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { - if (compiledWorkflowBuilder_ != null) { - return compiledWorkflowBuilder_.getMessageOrBuilder(); - } else { - return compiledWorkflow_ == null ? - flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> - getCompiledWorkflowFieldBuilder() { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder>( - getCompiledWorkflow(), - getParentForChildren(), - isClean()); - compiledWorkflow_ = null; - } - return compiledWorkflowBuilder_; - } - - 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_; - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - 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; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - 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; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - 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_; - } - @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:flyteidl.admin.WorkflowClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowClosure) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowClosure(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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Workflow_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Workflow_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowClosure_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\035flyteidl/admin/workflow.proto\022\016flyteid" + - "l.admin\032\034flyteidl/core/compiler.proto\032\036f" + - "lyteidl/core/identifier.proto\032\034flyteidl/" + - "core/workflow.proto\032\033flyteidl/admin/comm" + - "on.proto\032\037google/protobuf/timestamp.prot" + - "o\"j\n\025WorkflowCreateRequest\022%\n\002id\030\001 \001(\0132\031" + - ".flyteidl.core.Identifier\022*\n\004spec\030\002 \001(\0132" + - "\034.flyteidl.admin.WorkflowSpec\"\030\n\026Workflo" + - "wCreateResponse\"c\n\010Workflow\022%\n\002id\030\001 \001(\0132" + - "\031.flyteidl.core.Identifier\0220\n\007closure\030\002 " + - "\001(\0132\037.flyteidl.admin.WorkflowClosure\"J\n\014" + - "WorkflowList\022+\n\tworkflows\030\001 \003(\0132\030.flytei" + - "dl.admin.Workflow\022\r\n\005token\030\002 \001(\t\"y\n\014Work" + - "flowSpec\0221\n\010template\030\001 \001(\0132\037.flyteidl.co" + - "re.WorkflowTemplate\0226\n\rsub_workflows\030\002 \003" + - "(\0132\037.flyteidl.core.WorkflowTemplate\"\204\001\n\017" + - "WorkflowClosure\022A\n\021compiled_workflow\030\001 \001" + - "(\0132&.flyteidl.core.CompiledWorkflowClosu" + - "re\022.\n\ncreated_at\030\002 \001(\0132\032.google.protobuf" + - ".TimestampB3Z1github.com/lyft/flyteidl/g" + - "en/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Compiler.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Workflow.getDescriptor(), - flyteidl.admin.Common.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor, - new java.lang.String[] { "Id", "Spec", }); - internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_Workflow_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_Workflow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Workflow_descriptor, - new java.lang.String[] { "Id", "Closure", }); - internal_static_flyteidl_admin_WorkflowList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowList_descriptor, - new java.lang.String[] { "Workflows", "Token", }); - internal_static_flyteidl_admin_WorkflowSpec_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowSpec_descriptor, - new java.lang.String[] { "Template", "SubWorkflows", }); - internal_static_flyteidl_admin_WorkflowClosure_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowClosure_descriptor, - new java.lang.String[] { "CompiledWorkflow", "CreatedAt", }); - flyteidl.core.Compiler.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Workflow.getDescriptor(); - flyteidl.admin.Common.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Compiler.java b/gen/pb-java/flyteidl/core/Compiler.java deleted file mode 100644 index 94d5d5990..000000000 --- a/gen/pb-java/flyteidl/core/Compiler.java +++ /dev/null @@ -1,5243 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/compiler.proto - -package flyteidl.core; - -public final class Compiler { - private Compiler() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ConnectionSetOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ConnectionSet) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - int getDownstreamCount(); - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - boolean containsDownstream( - java.lang.String key); - /** - * Use {@link #getDownstreamMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getDownstream(); - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - java.util.Map - getDownstreamMap(); - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( - java.lang.String key); - - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - int getUpstreamCount(); - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - boolean containsUpstream( - java.lang.String key); - /** - * Use {@link #getUpstreamMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getUpstream(); - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - java.util.Map - getUpstreamMap(); - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( - java.lang.String key); - } - /** - *
-   * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
-   * step uses this created ConnectionSet
-   * 
- * - * Protobuf type {@code flyteidl.core.ConnectionSet} - */ - public static final class ConnectionSet extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet) - ConnectionSetOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConnectionSet.newBuilder() to construct. - private ConnectionSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConnectionSet() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConnectionSet( - 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 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - downstream_ = com.google.protobuf.MapField.newMapField( - DownstreamDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - downstream__ = input.readMessage( - DownstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - downstream_.getMutableMap().put( - downstream__.getKey(), downstream__.getValue()); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - upstream_ = com.google.protobuf.MapField.newMapField( - UpstreamDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - upstream__ = input.readMessage( - UpstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - upstream_.getMutableMap().put( - upstream__.getKey(), upstream__.getValue()); - 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 flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 7: - return internalGetDownstream(); - case 8: - return internalGetUpstream(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); - } - - public interface IdListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ConnectionSet.IdList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string ids = 1; - */ - java.util.List - getIdsList(); - /** - * repeated string ids = 1; - */ - int getIdsCount(); - /** - * repeated string ids = 1; - */ - java.lang.String getIds(int index); - /** - * repeated string ids = 1; - */ - com.google.protobuf.ByteString - getIdsBytes(int index); - } - /** - * Protobuf type {@code flyteidl.core.ConnectionSet.IdList} - */ - public static final class IdList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet.IdList) - IdListOrBuilder { - private static final long serialVersionUID = 0L; - // Use IdList.newBuilder() to construct. - private IdList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IdList() { - ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IdList( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ids_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - ids_.add(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)) { - ids_ = ids_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); - } - - public static final int IDS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList ids_; - /** - * repeated string ids = 1; - */ - public com.google.protobuf.ProtocolStringList - getIdsList() { - return ids_; - } - /** - * repeated string ids = 1; - */ - public int getIdsCount() { - return ids_.size(); - } - /** - * repeated string ids = 1; - */ - public java.lang.String getIds(int index) { - return ids_.get(index); - } - /** - * repeated string ids = 1; - */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { - return ids_.getByteString(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 < ids_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ids_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < ids_.size(); i++) { - dataSize += computeStringSizeNoTag(ids_.getRaw(i)); - } - size += dataSize; - size += 1 * getIdsList().size(); - } - 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 flyteidl.core.Compiler.ConnectionSet.IdList)) { - return super.equals(obj); - } - flyteidl.core.Compiler.ConnectionSet.IdList other = (flyteidl.core.Compiler.ConnectionSet.IdList) obj; - - if (!getIdsList() - .equals(other.getIdsList())) 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 (getIdsCount() > 0) { - hash = (37 * hash) + IDS_FIELD_NUMBER; - hash = (53 * hash) + getIdsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList 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 flyteidl.core.Compiler.ConnectionSet.IdList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList 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 flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList 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(flyteidl.core.Compiler.ConnectionSet.IdList 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 flyteidl.core.ConnectionSet.IdList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet.IdList) - flyteidl.core.Compiler.ConnectionSet.IdListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); - } - - // Construct using flyteidl.core.Compiler.ConnectionSet.IdList.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(); - ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { - return flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet.IdList build() { - flyteidl.core.Compiler.ConnectionSet.IdList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet.IdList buildPartial() { - flyteidl.core.Compiler.ConnectionSet.IdList result = new flyteidl.core.Compiler.ConnectionSet.IdList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - ids_ = ids_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.ids_ = ids_; - 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 flyteidl.core.Compiler.ConnectionSet.IdList) { - return mergeFrom((flyteidl.core.Compiler.ConnectionSet.IdList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet.IdList other) { - if (other == flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()) return this; - if (!other.ids_.isEmpty()) { - if (ids_.isEmpty()) { - ids_ = other.ids_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIdsIsMutable(); - ids_.addAll(other.ids_); - } - 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 { - flyteidl.core.Compiler.ConnectionSet.IdList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.ConnectionSet.IdList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - ids_ = new com.google.protobuf.LazyStringArrayList(ids_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string ids = 1; - */ - public com.google.protobuf.ProtocolStringList - getIdsList() { - return ids_.getUnmodifiableView(); - } - /** - * repeated string ids = 1; - */ - public int getIdsCount() { - return ids_.size(); - } - /** - * repeated string ids = 1; - */ - public java.lang.String getIds(int index) { - return ids_.get(index); - } - /** - * repeated string ids = 1; - */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { - return ids_.getByteString(index); - } - /** - * repeated string ids = 1; - */ - public Builder setIds( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); - ids_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string ids = 1; - */ - public Builder addIds( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); - ids_.add(value); - onChanged(); - return this; - } - /** - * repeated string ids = 1; - */ - public Builder addAllIds( - java.lang.Iterable values) { - ensureIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ids_); - onChanged(); - return this; - } - /** - * repeated string ids = 1; - */ - public Builder clearIds() { - ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string ids = 1; - */ - public Builder addIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIdsIsMutable(); - ids_.add(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:flyteidl.core.ConnectionSet.IdList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet.IdList) - private static final flyteidl.core.Compiler.ConnectionSet.IdList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet.IdList(); - } - - public static flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IdList(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 flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int DOWNSTREAM_FIELD_NUMBER = 7; - private static final class DownstreamDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; - private com.google.protobuf.MapField - internalGetDownstream() { - if (downstream_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DownstreamDefaultEntryHolder.defaultEntry); - } - return downstream_; - } - - public int getDownstreamCount() { - return internalGetDownstream().getMap().size(); - } - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public boolean containsDownstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetDownstream().getMap().containsKey(key); - } - /** - * Use {@link #getDownstreamMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getDownstream() { - return getDownstreamMap(); - } - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public java.util.Map getDownstreamMap() { - return internalGetDownstream().getMap(); - } - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDownstream().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDownstream().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int UPSTREAM_FIELD_NUMBER = 8; - private static final class UpstreamDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; - private com.google.protobuf.MapField - internalGetUpstream() { - if (upstream_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UpstreamDefaultEntryHolder.defaultEntry); - } - return upstream_; - } - - public int getUpstreamCount() { - return internalGetUpstream().getMap().size(); - } - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public boolean containsUpstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetUpstream().getMap().containsKey(key); - } - /** - * Use {@link #getUpstreamMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getUpstream() { - return getUpstreamMap(); - } - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public java.util.Map getUpstreamMap() { - return internalGetUpstream().getMap(); - } - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUpstream().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUpstream().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetDownstream(), - DownstreamDefaultEntryHolder.defaultEntry, - 7); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetUpstream(), - UpstreamDefaultEntryHolder.defaultEntry, - 8); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetDownstream().getMap().entrySet()) { - com.google.protobuf.MapEntry - downstream__ = DownstreamDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, downstream__); - } - for (java.util.Map.Entry entry - : internalGetUpstream().getMap().entrySet()) { - com.google.protobuf.MapEntry - upstream__ = UpstreamDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, upstream__); - } - 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 flyteidl.core.Compiler.ConnectionSet)) { - return super.equals(obj); - } - flyteidl.core.Compiler.ConnectionSet other = (flyteidl.core.Compiler.ConnectionSet) obj; - - if (!internalGetDownstream().equals( - other.internalGetDownstream())) return false; - if (!internalGetUpstream().equals( - other.internalGetUpstream())) 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 (!internalGetDownstream().getMap().isEmpty()) { - hash = (37 * hash) + DOWNSTREAM_FIELD_NUMBER; - hash = (53 * hash) + internalGetDownstream().hashCode(); - } - if (!internalGetUpstream().getMap().isEmpty()) { - hash = (37 * hash) + UPSTREAM_FIELD_NUMBER; - hash = (53 * hash) + internalGetUpstream().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet 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 flyteidl.core.Compiler.ConnectionSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet 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 flyteidl.core.Compiler.ConnectionSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet 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(flyteidl.core.Compiler.ConnectionSet 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; - } - /** - *
-     * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
-     * step uses this created ConnectionSet
-     * 
- * - * Protobuf type {@code flyteidl.core.ConnectionSet} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet) - flyteidl.core.Compiler.ConnectionSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 7: - return internalGetDownstream(); - case 8: - return internalGetUpstream(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 7: - return internalGetMutableDownstream(); - case 8: - return internalGetMutableUpstream(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); - } - - // Construct using flyteidl.core.Compiler.ConnectionSet.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(); - internalGetMutableDownstream().clear(); - internalGetMutableUpstream().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet getDefaultInstanceForType() { - return flyteidl.core.Compiler.ConnectionSet.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet build() { - flyteidl.core.Compiler.ConnectionSet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet buildPartial() { - flyteidl.core.Compiler.ConnectionSet result = new flyteidl.core.Compiler.ConnectionSet(this); - int from_bitField0_ = bitField0_; - result.downstream_ = internalGetDownstream(); - result.downstream_.makeImmutable(); - result.upstream_ = internalGetUpstream(); - result.upstream_.makeImmutable(); - 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 flyteidl.core.Compiler.ConnectionSet) { - return mergeFrom((flyteidl.core.Compiler.ConnectionSet)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet other) { - if (other == flyteidl.core.Compiler.ConnectionSet.getDefaultInstance()) return this; - internalGetMutableDownstream().mergeFrom( - other.internalGetDownstream()); - internalGetMutableUpstream().mergeFrom( - other.internalGetUpstream()); - 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 { - flyteidl.core.Compiler.ConnectionSet parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.ConnectionSet) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; - private com.google.protobuf.MapField - internalGetDownstream() { - if (downstream_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DownstreamDefaultEntryHolder.defaultEntry); - } - return downstream_; - } - private com.google.protobuf.MapField - internalGetMutableDownstream() { - onChanged();; - if (downstream_ == null) { - downstream_ = com.google.protobuf.MapField.newMapField( - DownstreamDefaultEntryHolder.defaultEntry); - } - if (!downstream_.isMutable()) { - downstream_ = downstream_.copy(); - } - return downstream_; - } - - public int getDownstreamCount() { - return internalGetDownstream().getMap().size(); - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public boolean containsDownstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetDownstream().getMap().containsKey(key); - } - /** - * Use {@link #getDownstreamMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getDownstream() { - return getDownstreamMap(); - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public java.util.Map getDownstreamMap() { - return internalGetDownstream().getMap(); - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDownstream().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDownstream().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearDownstream() { - internalGetMutableDownstream().getMutableMap() - .clear(); - return this; - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public Builder removeDownstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableDownstream().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableDownstream() { - return internalGetMutableDownstream().getMutableMap(); - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - public Builder putDownstream( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableDownstream().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public Builder putAllDownstream( - java.util.Map values) { - internalGetMutableDownstream().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; - private com.google.protobuf.MapField - internalGetUpstream() { - if (upstream_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UpstreamDefaultEntryHolder.defaultEntry); - } - return upstream_; - } - private com.google.protobuf.MapField - internalGetMutableUpstream() { - onChanged();; - if (upstream_ == null) { - upstream_ = com.google.protobuf.MapField.newMapField( - UpstreamDefaultEntryHolder.defaultEntry); - } - if (!upstream_.isMutable()) { - upstream_ = upstream_.copy(); - } - return upstream_; - } - - public int getUpstreamCount() { - return internalGetUpstream().getMap().size(); - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public boolean containsUpstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetUpstream().getMap().containsKey(key); - } - /** - * Use {@link #getUpstreamMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getUpstream() { - return getUpstreamMap(); - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public java.util.Map getUpstreamMap() { - return internalGetUpstream().getMap(); - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUpstream().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUpstream().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearUpstream() { - internalGetMutableUpstream().getMutableMap() - .clear(); - return this; - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public Builder removeUpstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableUpstream().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableUpstream() { - return internalGetMutableUpstream().getMutableMap(); - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - public Builder putUpstream( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableUpstream().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public Builder putAllUpstream( - java.util.Map values) { - internalGetMutableUpstream().getMutableMap() - .putAll(values); - 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:flyteidl.core.ConnectionSet) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet) - private static final flyteidl.core.Compiler.ConnectionSet DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet(); - } - - public static flyteidl.core.Compiler.ConnectionSet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectionSet(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 flyteidl.core.Compiler.ConnectionSet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CompiledWorkflowOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflow) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - boolean hasTemplate(); - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - flyteidl.core.Workflow.WorkflowTemplate getTemplate(); - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); - - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - boolean hasConnections(); - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - flyteidl.core.Compiler.ConnectionSet getConnections(); - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder(); - } - /** - *
-   * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
-   * 
- * - * Protobuf type {@code flyteidl.core.CompiledWorkflow} - */ - public static final class CompiledWorkflow extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflow) - CompiledWorkflowOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompiledWorkflow.newBuilder() to construct. - private CompiledWorkflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompiledWorkflow() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompiledWorkflow( - 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: { - flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Compiler.ConnectionSet.Builder subBuilder = null; - if (connections_ != null) { - subBuilder = connections_.toBuilder(); - } - connections_ = input.readMessage(flyteidl.core.Compiler.ConnectionSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connections_); - connections_ = 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 flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); - } - - public static final int TEMPLATE_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.WorkflowTemplate template_; - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { - return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - public static final int CONNECTIONS_FIELD_NUMBER = 2; - private flyteidl.core.Compiler.ConnectionSet connections_; - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public boolean hasConnections() { - return connections_ != null; - } - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSet getConnections() { - return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; - } - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { - return getConnections(); - } - - 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 (template_ != null) { - output.writeMessage(1, getTemplate()); - } - if (connections_ != null) { - output.writeMessage(2, getConnections()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTemplate()); - } - if (connections_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConnections()); - } - 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 flyteidl.core.Compiler.CompiledWorkflow)) { - return super.equals(obj); - } - flyteidl.core.Compiler.CompiledWorkflow other = (flyteidl.core.Compiler.CompiledWorkflow) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; - } - if (hasConnections() != other.hasConnections()) return false; - if (hasConnections()) { - if (!getConnections() - .equals(other.getConnections())) 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 (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - if (hasConnections()) { - hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; - hash = (53 * hash) + getConnections().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflow 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 flyteidl.core.Compiler.CompiledWorkflow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflow 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 flyteidl.core.Compiler.CompiledWorkflow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflow 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(flyteidl.core.Compiler.CompiledWorkflow 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; - } - /** - *
-     * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
-     * 
- * - * Protobuf type {@code flyteidl.core.CompiledWorkflow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflow) - flyteidl.core.Compiler.CompiledWorkflowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); - } - - // Construct using flyteidl.core.Compiler.CompiledWorkflow.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 (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - if (connectionsBuilder_ == null) { - connections_ = null; - } else { - connections_ = null; - connectionsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { - return flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflow build() { - flyteidl.core.Compiler.CompiledWorkflow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflow buildPartial() { - flyteidl.core.Compiler.CompiledWorkflow result = new flyteidl.core.Compiler.CompiledWorkflow(this); - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.build(); - } - if (connectionsBuilder_ == null) { - result.connections_ = connections_; - } else { - result.connections_ = connectionsBuilder_.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 flyteidl.core.Compiler.CompiledWorkflow) { - return mergeFrom((flyteidl.core.Compiler.CompiledWorkflow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflow other) { - if (other == flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()) return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - if (other.hasConnections()) { - mergeConnections(other.getConnections()); - } - 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 { - flyteidl.core.Compiler.CompiledWorkflow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.CompiledWorkflow) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Workflow.WorkflowTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder setTemplate( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - - private flyteidl.core.Compiler.ConnectionSet connections_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> connectionsBuilder_; - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public boolean hasConnections() { - return connectionsBuilder_ != null || connections_ != null; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSet getConnections() { - if (connectionsBuilder_ == null) { - return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; - } else { - return connectionsBuilder_.getMessage(); - } - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public Builder setConnections(flyteidl.core.Compiler.ConnectionSet value) { - if (connectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - connections_ = value; - onChanged(); - } else { - connectionsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public Builder setConnections( - flyteidl.core.Compiler.ConnectionSet.Builder builderForValue) { - if (connectionsBuilder_ == null) { - connections_ = builderForValue.build(); - onChanged(); - } else { - connectionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public Builder mergeConnections(flyteidl.core.Compiler.ConnectionSet value) { - if (connectionsBuilder_ == null) { - if (connections_ != null) { - connections_ = - flyteidl.core.Compiler.ConnectionSet.newBuilder(connections_).mergeFrom(value).buildPartial(); - } else { - connections_ = value; - } - onChanged(); - } else { - connectionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public Builder clearConnections() { - if (connectionsBuilder_ == null) { - connections_ = null; - onChanged(); - } else { - connections_ = null; - connectionsBuilder_ = null; - } - - return this; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSet.Builder getConnectionsBuilder() { - - onChanged(); - return getConnectionsFieldBuilder().getBuilder(); - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { - if (connectionsBuilder_ != null) { - return connectionsBuilder_.getMessageOrBuilder(); - } else { - return connections_ == null ? - flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; - } - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> - getConnectionsFieldBuilder() { - if (connectionsBuilder_ == null) { - connectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder>( - getConnections(), - getParentForChildren(), - isClean()); - connections_ = null; - } - return connectionsBuilder_; - } - @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:flyteidl.core.CompiledWorkflow) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflow) - private static final flyteidl.core.Compiler.CompiledWorkflow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflow(); - } - - public static flyteidl.core.Compiler.CompiledWorkflow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompiledWorkflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompiledWorkflow(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 flyteidl.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CompiledTaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledTask) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - boolean hasTemplate(); - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - flyteidl.core.Tasks.TaskTemplate getTemplate(); - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); - } - /** - *
-   * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
-   * 
- * - * Protobuf type {@code flyteidl.core.CompiledTask} - */ - public static final class CompiledTask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledTask) - CompiledTaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompiledTask.newBuilder() to construct. - private CompiledTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompiledTask() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompiledTask( - 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: { - flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = 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 flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); - } - - public static final int TEMPLATE_FIELD_NUMBER = 1; - private flyteidl.core.Tasks.TaskTemplate template_; - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - 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 (template_ != null) { - output.writeMessage(1, getTemplate()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTemplate()); - } - 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 flyteidl.core.Compiler.CompiledTask)) { - return super.equals(obj); - } - flyteidl.core.Compiler.CompiledTask other = (flyteidl.core.Compiler.CompiledTask) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) 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 (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.CompiledTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledTask 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 flyteidl.core.Compiler.CompiledTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledTask 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 flyteidl.core.Compiler.CompiledTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledTask 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(flyteidl.core.Compiler.CompiledTask 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; - } - /** - *
-     * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
-     * 
- * - * Protobuf type {@code flyteidl.core.CompiledTask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledTask) - flyteidl.core.Compiler.CompiledTaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); - } - - // Construct using flyteidl.core.Compiler.CompiledTask.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 (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledTask getDefaultInstanceForType() { - return flyteidl.core.Compiler.CompiledTask.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledTask build() { - flyteidl.core.Compiler.CompiledTask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledTask buildPartial() { - flyteidl.core.Compiler.CompiledTask result = new flyteidl.core.Compiler.CompiledTask(this); - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.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 flyteidl.core.Compiler.CompiledTask) { - return mergeFrom((flyteidl.core.Compiler.CompiledTask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.CompiledTask other) { - if (other == flyteidl.core.Compiler.CompiledTask.getDefaultInstance()) return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - 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 { - flyteidl.core.Compiler.CompiledTask parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.CompiledTask) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Tasks.TaskTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder setTemplate( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - @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:flyteidl.core.CompiledTask) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledTask) - private static final flyteidl.core.Compiler.CompiledTask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledTask(); - } - - public static flyteidl.core.Compiler.CompiledTask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompiledTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompiledTask(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 flyteidl.core.Compiler.CompiledTask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CompiledWorkflowClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflowClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - boolean hasPrimary(); - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - flyteidl.core.Compiler.CompiledWorkflow getPrimary(); - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder(); - - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - java.util.List - getSubWorkflowsList(); - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index); - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - int getSubWorkflowsCount(); - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - java.util.List - getSubWorkflowsOrBuilderList(); - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( - int index); - - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - java.util.List - getTasksList(); - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - flyteidl.core.Compiler.CompiledTask getTasks(int index); - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - int getTasksCount(); - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - java.util.List - getTasksOrBuilderList(); - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( - int index); - } - /** - *
-   * A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
-   * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
-   * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
-   * compiled subworkflows.
-   * 
- * - * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} - */ - public static final class CompiledWorkflowClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflowClosure) - CompiledWorkflowClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompiledWorkflowClosure.newBuilder() to construct. - private CompiledWorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompiledWorkflowClosure() { - subWorkflows_ = java.util.Collections.emptyList(); - tasks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompiledWorkflowClosure( - 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: { - flyteidl.core.Compiler.CompiledWorkflow.Builder subBuilder = null; - if (primary_ != null) { - subBuilder = primary_.toBuilder(); - } - primary_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(primary_); - primary_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - subWorkflows_.add( - input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - tasks_.add( - input.readMessage(flyteidl.core.Compiler.CompiledTask.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_ & 0x00000002) != 0)) { - subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); - } - - private int bitField0_; - public static final int PRIMARY_FIELD_NUMBER = 1; - private flyteidl.core.Compiler.CompiledWorkflow primary_; - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public boolean hasPrimary() { - return primary_ != null; - } - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { - return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; - } - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { - return getPrimary(); - } - - public static final int SUB_WORKFLOWS_FIELD_NUMBER = 2; - private java.util.List subWorkflows_; - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List getSubWorkflowsList() { - return subWorkflows_; - } - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsOrBuilderList() { - return subWorkflows_; - } - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public int getSubWorkflowsCount() { - return subWorkflows_.size(); - } - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { - return subWorkflows_.get(index); - } - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( - int index) { - return subWorkflows_.get(index); - } - - public static final int TASKS_FIELD_NUMBER = 3; - private java.util.List tasks_; - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask getTasks(int index) { - return tasks_.get(index); - } - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (atleast 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( - int index) { - return tasks_.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 (primary_ != null) { - output.writeMessage(1, getPrimary()); - } - for (int i = 0; i < subWorkflows_.size(); i++) { - output.writeMessage(2, subWorkflows_.get(i)); - } - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(3, tasks_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (primary_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPrimary()); - } - for (int i = 0; i < subWorkflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, subWorkflows_.get(i)); - } - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, tasks_.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 flyteidl.core.Compiler.CompiledWorkflowClosure)) { - return super.equals(obj); - } - flyteidl.core.Compiler.CompiledWorkflowClosure other = (flyteidl.core.Compiler.CompiledWorkflowClosure) obj; - - if (hasPrimary() != other.hasPrimary()) return false; - if (hasPrimary()) { - if (!getPrimary() - .equals(other.getPrimary())) return false; - } - if (!getSubWorkflowsList() - .equals(other.getSubWorkflowsList())) return false; - if (!getTasksList() - .equals(other.getTasksList())) 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 (hasPrimary()) { - hash = (37 * hash) + PRIMARY_FIELD_NUMBER; - hash = (53 * hash) + getPrimary().hashCode(); - } - if (getSubWorkflowsCount() > 0) { - hash = (37 * hash) + SUB_WORKFLOWS_FIELD_NUMBER; - hash = (53 * hash) + getSubWorkflowsList().hashCode(); - } - if (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure 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 flyteidl.core.Compiler.CompiledWorkflowClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure 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 flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure 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(flyteidl.core.Compiler.CompiledWorkflowClosure 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 Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
-     * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
-     * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
-     * compiled subworkflows.
-     * 
- * - * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflowClosure) - flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); - } - - // Construct using flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSubWorkflowsFieldBuilder(); - getTasksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (primaryBuilder_ == null) { - primary_ = null; - } else { - primary_ = null; - primaryBuilder_ = null; - } - if (subWorkflowsBuilder_ == null) { - subWorkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - subWorkflowsBuilder_.clear(); - } - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - tasksBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { - return flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflowClosure build() { - flyteidl.core.Compiler.CompiledWorkflowClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflowClosure buildPartial() { - flyteidl.core.Compiler.CompiledWorkflowClosure result = new flyteidl.core.Compiler.CompiledWorkflowClosure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (primaryBuilder_ == null) { - result.primary_ = primary_; - } else { - result.primary_ = primaryBuilder_.build(); - } - if (subWorkflowsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.subWorkflows_ = subWorkflows_; - } else { - result.subWorkflows_ = subWorkflowsBuilder_.build(); - } - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.core.Compiler.CompiledWorkflowClosure) { - return mergeFrom((flyteidl.core.Compiler.CompiledWorkflowClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflowClosure other) { - if (other == flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance()) return this; - if (other.hasPrimary()) { - mergePrimary(other.getPrimary()); - } - if (subWorkflowsBuilder_ == null) { - if (!other.subWorkflows_.isEmpty()) { - if (subWorkflows_.isEmpty()) { - subWorkflows_ = other.subWorkflows_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSubWorkflowsIsMutable(); - subWorkflows_.addAll(other.subWorkflows_); - } - onChanged(); - } - } else { - if (!other.subWorkflows_.isEmpty()) { - if (subWorkflowsBuilder_.isEmpty()) { - subWorkflowsBuilder_.dispose(); - subWorkflowsBuilder_ = null; - subWorkflows_ = other.subWorkflows_; - bitField0_ = (bitField0_ & ~0x00000002); - subWorkflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubWorkflowsFieldBuilder() : null; - } else { - subWorkflowsBuilder_.addAllMessages(other.subWorkflows_); - } - } - } - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000004); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - 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 { - flyteidl.core.Compiler.CompiledWorkflowClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.CompiledWorkflowClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.Compiler.CompiledWorkflow primary_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> primaryBuilder_; - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public boolean hasPrimary() { - return primaryBuilder_ != null || primary_ != null; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { - if (primaryBuilder_ == null) { - return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; - } else { - return primaryBuilder_.getMessage(); - } - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public Builder setPrimary(flyteidl.core.Compiler.CompiledWorkflow value) { - if (primaryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - primary_ = value; - onChanged(); - } else { - primaryBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public Builder setPrimary( - flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { - if (primaryBuilder_ == null) { - primary_ = builderForValue.build(); - onChanged(); - } else { - primaryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public Builder mergePrimary(flyteidl.core.Compiler.CompiledWorkflow value) { - if (primaryBuilder_ == null) { - if (primary_ != null) { - primary_ = - flyteidl.core.Compiler.CompiledWorkflow.newBuilder(primary_).mergeFrom(value).buildPartial(); - } else { - primary_ = value; - } - onChanged(); - } else { - primaryBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public Builder clearPrimary() { - if (primaryBuilder_ == null) { - primary_ = null; - onChanged(); - } else { - primary_ = null; - primaryBuilder_ = null; - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflow.Builder getPrimaryBuilder() { - - onChanged(); - return getPrimaryFieldBuilder().getBuilder(); - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { - if (primaryBuilder_ != null) { - return primaryBuilder_.getMessageOrBuilder(); - } else { - return primary_ == null ? - flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; - } - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> - getPrimaryFieldBuilder() { - if (primaryBuilder_ == null) { - primaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( - getPrimary(), - getParentForChildren(), - isClean()); - primary_ = null; - } - return primaryBuilder_; - } - - private java.util.List subWorkflows_ = - java.util.Collections.emptyList(); - private void ensureSubWorkflowsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = new java.util.ArrayList(subWorkflows_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> subWorkflowsBuilder_; - - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List getSubWorkflowsList() { - if (subWorkflowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subWorkflows_); - } else { - return subWorkflowsBuilder_.getMessageList(); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public int getSubWorkflowsCount() { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.size(); - } else { - return subWorkflowsBuilder_.getCount(); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.get(index); - } else { - return subWorkflowsBuilder_.getMessage(index); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder setSubWorkflows( - int index, flyteidl.core.Compiler.CompiledWorkflow value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.set(index, value); - onChanged(); - } else { - subWorkflowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder setSubWorkflows( - int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.set(index, builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addSubWorkflows(flyteidl.core.Compiler.CompiledWorkflow value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(value); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addSubWorkflows( - int index, flyteidl.core.Compiler.CompiledWorkflow value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(index, value); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addSubWorkflows( - flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addSubWorkflows( - int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(index, builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addAllSubWorkflows( - java.lang.Iterable values) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subWorkflows_); - onChanged(); - } else { - subWorkflowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder clearSubWorkflows() { - if (subWorkflowsBuilder_ == null) { - subWorkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - subWorkflowsBuilder_.clear(); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder removeSubWorkflows(int index) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.remove(index); - onChanged(); - } else { - subWorkflowsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow.Builder getSubWorkflowsBuilder( - int index) { - return getSubWorkflowsFieldBuilder().getBuilder(index); - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( - int index) { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.get(index); } else { - return subWorkflowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsOrBuilderList() { - if (subWorkflowsBuilder_ != null) { - return subWorkflowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subWorkflows_); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder() { - return getSubWorkflowsFieldBuilder().addBuilder( - flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder( - int index) { - return getSubWorkflowsFieldBuilder().addBuilder( - index, flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsBuilderList() { - return getSubWorkflowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> - getSubWorkflowsFieldBuilder() { - if (subWorkflowsBuilder_ == null) { - subWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( - subWorkflows_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - subWorkflows_ = null; - } - return subWorkflowsBuilder_; - } - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> tasksBuilder_; - - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder setTasks( - int index, flyteidl.core.Compiler.CompiledTask value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder setTasks( - int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addTasks(flyteidl.core.Compiler.CompiledTask value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addTasks( - int index, flyteidl.core.Compiler.CompiledTask value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addTasks( - flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addTasks( - int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (atleast 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( - tasks_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - @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:flyteidl.core.CompiledWorkflowClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflowClosure) - private static final flyteidl.core.Compiler.CompiledWorkflowClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflowClosure(); - } - - public static flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompiledWorkflowClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompiledWorkflowClosure(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 flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConnectionSet_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_CompiledWorkflow_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_CompiledTask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_CompiledTask_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_CompiledWorkflowClosure_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\034flyteidl/core/compiler.proto\022\rflyteidl" + - ".core\032\034flyteidl/core/workflow.proto\032\031fly" + - "teidl/core/tasks.proto\"\324\002\n\rConnectionSet" + - "\022@\n\ndownstream\030\007 \003(\0132,.flyteidl.core.Con" + - "nectionSet.DownstreamEntry\022<\n\010upstream\030\010" + - " \003(\0132*.flyteidl.core.ConnectionSet.Upstr" + - "eamEntry\032\025\n\006IdList\022\013\n\003ids\030\001 \003(\t\032V\n\017Downs" + - "treamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#" + - ".flyteidl.core.ConnectionSet.IdList:\0028\001\032" + - "T\n\rUpstreamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002" + - " \001(\0132#.flyteidl.core.ConnectionSet.IdLis" + - "t:\0028\001\"x\n\020CompiledWorkflow\0221\n\010template\030\001 " + - "\001(\0132\037.flyteidl.core.WorkflowTemplate\0221\n\013" + - "connections\030\002 \001(\0132\034.flyteidl.core.Connec" + - "tionSet\"=\n\014CompiledTask\022-\n\010template\030\001 \001(" + - "\0132\033.flyteidl.core.TaskTemplate\"\257\001\n\027Compi" + - "ledWorkflowClosure\0220\n\007primary\030\001 \001(\0132\037.fl" + - "yteidl.core.CompiledWorkflow\0226\n\rsub_work" + - "flows\030\002 \003(\0132\037.flyteidl.core.CompiledWork" + - "flow\022*\n\005tasks\030\003 \003(\0132\033.flyteidl.core.Comp" + - "iledTaskB2Z0github.com/lyft/flyteidl/gen" + - "/pb-go/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Workflow.getDescriptor(), - flyteidl.core.Tasks.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_ConnectionSet_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ConnectionSet_descriptor, - new java.lang.String[] { "Downstream", "Upstream", }); - internal_static_flyteidl_core_ConnectionSet_IdList_descriptor = - internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ConnectionSet_IdList_descriptor, - new java.lang.String[] { "Ids", }); - internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor = - internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(1); - internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor = - internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(2); - internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_core_CompiledWorkflow_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_CompiledWorkflow_descriptor, - new java.lang.String[] { "Template", "Connections", }); - internal_static_flyteidl_core_CompiledTask_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_CompiledTask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_CompiledTask_descriptor, - new java.lang.String[] { "Template", }); - internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor, - new java.lang.String[] { "Primary", "SubWorkflows", "Tasks", }); - flyteidl.core.Workflow.getDescriptor(); - flyteidl.core.Tasks.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Condition.java b/gen/pb-java/flyteidl/core/Condition.java deleted file mode 100644 index fab054101..000000000 --- a/gen/pb-java/flyteidl/core/Condition.java +++ /dev/null @@ -1,4070 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/condition.proto - -package flyteidl.core; - -public final class Condition { - private Condition() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ComparisonExpressionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ComparisonExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - int getOperatorValue(); - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - flyteidl.core.Condition.ComparisonExpression.Operator getOperator(); - - /** - * .flyteidl.core.Operand left_value = 2; - */ - boolean hasLeftValue(); - /** - * .flyteidl.core.Operand left_value = 2; - */ - flyteidl.core.Condition.Operand getLeftValue(); - /** - * .flyteidl.core.Operand left_value = 2; - */ - flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder(); - - /** - * .flyteidl.core.Operand right_value = 3; - */ - boolean hasRightValue(); - /** - * .flyteidl.core.Operand right_value = 3; - */ - flyteidl.core.Condition.Operand getRightValue(); - /** - * .flyteidl.core.Operand right_value = 3; - */ - flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder(); - } - /** - *
-   * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
-   * Each expression results in a boolean result.
-   * 
- * - * Protobuf type {@code flyteidl.core.ComparisonExpression} - */ - public static final class ComparisonExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ComparisonExpression) - ComparisonExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use ComparisonExpression.newBuilder() to construct. - private ComparisonExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ComparisonExpression() { - operator_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ComparisonExpression( - 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 8: { - int rawValue = input.readEnum(); - - operator_ = rawValue; - break; - } - case 18: { - flyteidl.core.Condition.Operand.Builder subBuilder = null; - if (leftValue_ != null) { - subBuilder = leftValue_.toBuilder(); - } - leftValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(leftValue_); - leftValue_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Condition.Operand.Builder subBuilder = null; - if (rightValue_ != null) { - subBuilder = rightValue_.toBuilder(); - } - rightValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rightValue_); - rightValue_ = 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 flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); - } - - /** - *
-     * Binary Operator for each expression
-     * 
- * - * Protobuf enum {@code flyteidl.core.ComparisonExpression.Operator} - */ - public enum Operator - implements com.google.protobuf.ProtocolMessageEnum { - /** - * EQ = 0; - */ - EQ(0), - /** - * NEQ = 1; - */ - NEQ(1), - /** - *
-       * Greater Than
-       * 
- * - * GT = 2; - */ - GT(2), - /** - * GTE = 3; - */ - GTE(3), - /** - *
-       * Less Than
-       * 
- * - * LT = 4; - */ - LT(4), - /** - * LTE = 5; - */ - LTE(5), - UNRECOGNIZED(-1), - ; - - /** - * EQ = 0; - */ - public static final int EQ_VALUE = 0; - /** - * NEQ = 1; - */ - public static final int NEQ_VALUE = 1; - /** - *
-       * Greater Than
-       * 
- * - * GT = 2; - */ - public static final int GT_VALUE = 2; - /** - * GTE = 3; - */ - public static final int GTE_VALUE = 3; - /** - *
-       * Less Than
-       * 
- * - * LT = 4; - */ - public static final int LT_VALUE = 4; - /** - * LTE = 5; - */ - public static final int LTE_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Operator valueOf(int value) { - return forNumber(value); - } - - public static Operator forNumber(int value) { - switch (value) { - case 0: return EQ; - case 1: return NEQ; - case 2: return GT; - case 3: return GTE; - case 4: return LT; - case 5: return LTE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Operator> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Operator findValueByNumber(int number) { - return Operator.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Condition.ComparisonExpression.getDescriptor().getEnumTypes().get(0); - } - - private static final Operator[] VALUES = values(); - - public static Operator 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 Operator(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ComparisonExpression.Operator) - } - - public static final int OPERATOR_FIELD_NUMBER = 1; - private int operator_; - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public int getOperatorValue() { - return operator_; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { - @SuppressWarnings("deprecation") - flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); - return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; - } - - public static final int LEFT_VALUE_FIELD_NUMBER = 2; - private flyteidl.core.Condition.Operand leftValue_; - /** - * .flyteidl.core.Operand left_value = 2; - */ - public boolean hasLeftValue() { - return leftValue_ != null; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.Operand getLeftValue() { - return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { - return getLeftValue(); - } - - public static final int RIGHT_VALUE_FIELD_NUMBER = 3; - private flyteidl.core.Condition.Operand rightValue_; - /** - * .flyteidl.core.Operand right_value = 3; - */ - public boolean hasRightValue() { - return rightValue_ != null; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.Operand getRightValue() { - return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { - return getRightValue(); - } - - 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 (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { - output.writeEnum(1, operator_); - } - if (leftValue_ != null) { - output.writeMessage(2, getLeftValue()); - } - if (rightValue_ != null) { - output.writeMessage(3, getRightValue()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, operator_); - } - if (leftValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLeftValue()); - } - if (rightValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRightValue()); - } - 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 flyteidl.core.Condition.ComparisonExpression)) { - return super.equals(obj); - } - flyteidl.core.Condition.ComparisonExpression other = (flyteidl.core.Condition.ComparisonExpression) obj; - - if (operator_ != other.operator_) return false; - if (hasLeftValue() != other.hasLeftValue()) return false; - if (hasLeftValue()) { - if (!getLeftValue() - .equals(other.getLeftValue())) return false; - } - if (hasRightValue() != other.hasRightValue()) return false; - if (hasRightValue()) { - if (!getRightValue() - .equals(other.getRightValue())) 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) + OPERATOR_FIELD_NUMBER; - hash = (53 * hash) + operator_; - if (hasLeftValue()) { - hash = (37 * hash) + LEFT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getLeftValue().hashCode(); - } - if (hasRightValue()) { - hash = (37 * hash) + RIGHT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getRightValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ComparisonExpression 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 flyteidl.core.Condition.ComparisonExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ComparisonExpression 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 flyteidl.core.Condition.ComparisonExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ComparisonExpression 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(flyteidl.core.Condition.ComparisonExpression 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; - } - /** - *
-     * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
-     * Each expression results in a boolean result.
-     * 
- * - * Protobuf type {@code flyteidl.core.ComparisonExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ComparisonExpression) - flyteidl.core.Condition.ComparisonExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); - } - - // Construct using flyteidl.core.Condition.ComparisonExpression.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(); - operator_ = 0; - - if (leftValueBuilder_ == null) { - leftValue_ = null; - } else { - leftValue_ = null; - leftValueBuilder_ = null; - } - if (rightValueBuilder_ == null) { - rightValue_ = null; - } else { - rightValue_ = null; - rightValueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; - } - - @java.lang.Override - public flyteidl.core.Condition.ComparisonExpression getDefaultInstanceForType() { - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Condition.ComparisonExpression build() { - flyteidl.core.Condition.ComparisonExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Condition.ComparisonExpression buildPartial() { - flyteidl.core.Condition.ComparisonExpression result = new flyteidl.core.Condition.ComparisonExpression(this); - result.operator_ = operator_; - if (leftValueBuilder_ == null) { - result.leftValue_ = leftValue_; - } else { - result.leftValue_ = leftValueBuilder_.build(); - } - if (rightValueBuilder_ == null) { - result.rightValue_ = rightValue_; - } else { - result.rightValue_ = rightValueBuilder_.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 flyteidl.core.Condition.ComparisonExpression) { - return mergeFrom((flyteidl.core.Condition.ComparisonExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Condition.ComparisonExpression other) { - if (other == flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) return this; - if (other.operator_ != 0) { - setOperatorValue(other.getOperatorValue()); - } - if (other.hasLeftValue()) { - mergeLeftValue(other.getLeftValue()); - } - if (other.hasRightValue()) { - mergeRightValue(other.getRightValue()); - } - 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 { - flyteidl.core.Condition.ComparisonExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Condition.ComparisonExpression) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int operator_ = 0; - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public int getOperatorValue() { - return operator_; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public Builder setOperatorValue(int value) { - operator_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { - @SuppressWarnings("deprecation") - flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); - return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public Builder setOperator(flyteidl.core.Condition.ComparisonExpression.Operator value) { - if (value == null) { - throw new NullPointerException(); - } - - operator_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public Builder clearOperator() { - - operator_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Condition.Operand leftValue_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> leftValueBuilder_; - /** - * .flyteidl.core.Operand left_value = 2; - */ - public boolean hasLeftValue() { - return leftValueBuilder_ != null || leftValue_ != null; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.Operand getLeftValue() { - if (leftValueBuilder_ == null) { - return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; - } else { - return leftValueBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public Builder setLeftValue(flyteidl.core.Condition.Operand value) { - if (leftValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - leftValue_ = value; - onChanged(); - } else { - leftValueBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public Builder setLeftValue( - flyteidl.core.Condition.Operand.Builder builderForValue) { - if (leftValueBuilder_ == null) { - leftValue_ = builderForValue.build(); - onChanged(); - } else { - leftValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public Builder mergeLeftValue(flyteidl.core.Condition.Operand value) { - if (leftValueBuilder_ == null) { - if (leftValue_ != null) { - leftValue_ = - flyteidl.core.Condition.Operand.newBuilder(leftValue_).mergeFrom(value).buildPartial(); - } else { - leftValue_ = value; - } - onChanged(); - } else { - leftValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public Builder clearLeftValue() { - if (leftValueBuilder_ == null) { - leftValue_ = null; - onChanged(); - } else { - leftValue_ = null; - leftValueBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.Operand.Builder getLeftValueBuilder() { - - onChanged(); - return getLeftValueFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { - if (leftValueBuilder_ != null) { - return leftValueBuilder_.getMessageOrBuilder(); - } else { - return leftValue_ == null ? - flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; - } - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> - getLeftValueFieldBuilder() { - if (leftValueBuilder_ == null) { - leftValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( - getLeftValue(), - getParentForChildren(), - isClean()); - leftValue_ = null; - } - return leftValueBuilder_; - } - - private flyteidl.core.Condition.Operand rightValue_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> rightValueBuilder_; - /** - * .flyteidl.core.Operand right_value = 3; - */ - public boolean hasRightValue() { - return rightValueBuilder_ != null || rightValue_ != null; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.Operand getRightValue() { - if (rightValueBuilder_ == null) { - return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; - } else { - return rightValueBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public Builder setRightValue(flyteidl.core.Condition.Operand value) { - if (rightValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rightValue_ = value; - onChanged(); - } else { - rightValueBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public Builder setRightValue( - flyteidl.core.Condition.Operand.Builder builderForValue) { - if (rightValueBuilder_ == null) { - rightValue_ = builderForValue.build(); - onChanged(); - } else { - rightValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public Builder mergeRightValue(flyteidl.core.Condition.Operand value) { - if (rightValueBuilder_ == null) { - if (rightValue_ != null) { - rightValue_ = - flyteidl.core.Condition.Operand.newBuilder(rightValue_).mergeFrom(value).buildPartial(); - } else { - rightValue_ = value; - } - onChanged(); - } else { - rightValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public Builder clearRightValue() { - if (rightValueBuilder_ == null) { - rightValue_ = null; - onChanged(); - } else { - rightValue_ = null; - rightValueBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.Operand.Builder getRightValueBuilder() { - - onChanged(); - return getRightValueFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { - if (rightValueBuilder_ != null) { - return rightValueBuilder_.getMessageOrBuilder(); - } else { - return rightValue_ == null ? - flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; - } - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> - getRightValueFieldBuilder() { - if (rightValueBuilder_ == null) { - rightValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( - getRightValue(), - getParentForChildren(), - isClean()); - rightValue_ = null; - } - return rightValueBuilder_; - } - @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:flyteidl.core.ComparisonExpression) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ComparisonExpression) - private static final flyteidl.core.Condition.ComparisonExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Condition.ComparisonExpression(); - } - - public static flyteidl.core.Condition.ComparisonExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComparisonExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ComparisonExpression(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 flyteidl.core.Condition.ComparisonExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OperandOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Operand) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - boolean hasPrimitive(); - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - flyteidl.core.Literals.Primitive getPrimitive(); - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); - - /** - *
-     * Or one of this node's input variables
-     * 
- * - * string var = 2; - */ - java.lang.String getVar(); - /** - *
-     * Or one of this node's input variables
-     * 
- * - * string var = 2; - */ - com.google.protobuf.ByteString - getVarBytes(); - - public flyteidl.core.Condition.Operand.ValCase getValCase(); - } - /** - *
-   * Defines an operand to a comparison expression.
-   * 
- * - * Protobuf type {@code flyteidl.core.Operand} - */ - public static final class Operand extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Operand) - OperandOrBuilder { - private static final long serialVersionUID = 0L; - // Use Operand.newBuilder() to construct. - private Operand(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Operand() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Operand( - 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: { - flyteidl.core.Literals.Primitive.Builder subBuilder = null; - if (valCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.Primitive) val_).toBuilder(); - } - val_ = - input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) val_); - val_ = subBuilder.buildPartial(); - } - valCase_ = 1; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - valCase_ = 2; - val_ = 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 flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); - } - - private int valCase_ = 0; - private java.lang.Object val_; - public enum ValCase - implements com.google.protobuf.Internal.EnumLite { - PRIMITIVE(1), - VAR(2), - VAL_NOT_SET(0); - private final int value; - private ValCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValCase valueOf(int value) { - return forNumber(value); - } - - public static ValCase forNumber(int value) { - switch (value) { - case 1: return PRIMITIVE; - case 2: return VAR; - case 0: return VAL_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public static final int PRIMITIVE_FIELD_NUMBER = 1; - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public boolean hasPrimitive() { - return valCase_ == 1; - } - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive getPrimitive() { - if (valCase_ == 1) { - return (flyteidl.core.Literals.Primitive) val_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { - if (valCase_ == 1) { - return (flyteidl.core.Literals.Primitive) val_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - - public static final int VAR_FIELD_NUMBER = 2; - /** - *
-     * Or one of this node's input variables
-     * 
- * - * string var = 2; - */ - public java.lang.String getVar() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - 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(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } - } - /** - *
-     * Or one of this node's input variables
-     * 
- * - * string var = 2; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = 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 (valCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.Primitive) val_); - } - if (valCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, val_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.Primitive) val_); - } - if (valCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, val_); - } - 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 flyteidl.core.Condition.Operand)) { - return super.equals(obj); - } - flyteidl.core.Condition.Operand other = (flyteidl.core.Condition.Operand) obj; - - if (!getValCase().equals(other.getValCase())) return false; - switch (valCase_) { - case 1: - if (!getPrimitive() - .equals(other.getPrimitive())) return false; - break; - case 2: - if (!getVar() - .equals(other.getVar())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valCase_) { - case 1: - hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; - hash = (53 * hash) + getPrimitive().hashCode(); - break; - case 2: - hash = (37 * hash) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Condition.Operand parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.Operand parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.Operand parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.Operand parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.Operand parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.Operand parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.Operand parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.Operand 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 flyteidl.core.Condition.Operand parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.Operand 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 flyteidl.core.Condition.Operand parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.Operand 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(flyteidl.core.Condition.Operand 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; - } - /** - *
-     * Defines an operand to a comparison expression.
-     * 
- * - * Protobuf type {@code flyteidl.core.Operand} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Operand) - flyteidl.core.Condition.OperandOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); - } - - // Construct using flyteidl.core.Condition.Operand.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(); - valCase_ = 0; - val_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; - } - - @java.lang.Override - public flyteidl.core.Condition.Operand getDefaultInstanceForType() { - return flyteidl.core.Condition.Operand.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Condition.Operand build() { - flyteidl.core.Condition.Operand result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Condition.Operand buildPartial() { - flyteidl.core.Condition.Operand result = new flyteidl.core.Condition.Operand(this); - if (valCase_ == 1) { - if (primitiveBuilder_ == null) { - result.val_ = val_; - } else { - result.val_ = primitiveBuilder_.build(); - } - } - if (valCase_ == 2) { - result.val_ = val_; - } - result.valCase_ = valCase_; - 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 flyteidl.core.Condition.Operand) { - return mergeFrom((flyteidl.core.Condition.Operand)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Condition.Operand other) { - if (other == flyteidl.core.Condition.Operand.getDefaultInstance()) return this; - switch (other.getValCase()) { - case PRIMITIVE: { - mergePrimitive(other.getPrimitive()); - break; - } - case VAR: { - valCase_ = 2; - val_ = other.val_; - onChanged(); - break; - } - case VAL_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 { - flyteidl.core.Condition.Operand parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Condition.Operand) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valCase_ = 0; - private java.lang.Object val_; - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public Builder clearVal() { - valCase_ = 0; - val_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public boolean hasPrimitive() { - return valCase_ == 1; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive getPrimitive() { - if (primitiveBuilder_ == null) { - if (valCase_ == 1) { - return (flyteidl.core.Literals.Primitive) val_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } else { - if (valCase_ == 1) { - return primitiveBuilder_.getMessage(); - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { - if (primitiveBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - onChanged(); - } else { - primitiveBuilder_.setMessage(value); - } - valCase_ = 1; - return this; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder setPrimitive( - flyteidl.core.Literals.Primitive.Builder builderForValue) { - if (primitiveBuilder_ == null) { - val_ = builderForValue.build(); - onChanged(); - } else { - primitiveBuilder_.setMessage(builderForValue.build()); - } - valCase_ = 1; - return this; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { - if (primitiveBuilder_ == null) { - if (valCase_ == 1 && - val_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { - val_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) val_) - .mergeFrom(value).buildPartial(); - } else { - val_ = value; - } - onChanged(); - } else { - if (valCase_ == 1) { - primitiveBuilder_.mergeFrom(value); - } - primitiveBuilder_.setMessage(value); - } - valCase_ = 1; - return this; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder clearPrimitive() { - if (primitiveBuilder_ == null) { - if (valCase_ == 1) { - valCase_ = 0; - val_ = null; - onChanged(); - } - } else { - if (valCase_ == 1) { - valCase_ = 0; - val_ = null; - } - primitiveBuilder_.clear(); - } - return this; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { - return getPrimitiveFieldBuilder().getBuilder(); - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { - if ((valCase_ == 1) && (primitiveBuilder_ != null)) { - return primitiveBuilder_.getMessageOrBuilder(); - } else { - if (valCase_ == 1) { - return (flyteidl.core.Literals.Primitive) val_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> - getPrimitiveFieldBuilder() { - if (primitiveBuilder_ == null) { - if (!(valCase_ == 1)) { - val_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( - (flyteidl.core.Literals.Primitive) val_, - getParentForChildren(), - isClean()); - val_ = null; - } - valCase_ = 1; - onChanged();; - return primitiveBuilder_; - } - - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public java.lang.String getVar() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public Builder setVar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public Builder clearVar() { - if (valCase_ == 2) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public Builder setVarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valCase_ = 2; - val_ = 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:flyteidl.core.Operand) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Operand) - private static final flyteidl.core.Condition.Operand DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Condition.Operand(); - } - - public static flyteidl.core.Condition.Operand getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Operand parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Operand(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 flyteidl.core.Condition.Operand getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BooleanExpressionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BooleanExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - boolean hasConjunction(); - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - flyteidl.core.Condition.ConjunctionExpression getConjunction(); - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder(); - - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - boolean hasComparison(); - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - flyteidl.core.Condition.ComparisonExpression getComparison(); - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder(); - - public flyteidl.core.Condition.BooleanExpression.ExprCase getExprCase(); - } - /** - *
-   * Defines a boolean expression tree. It can be a simple or a conjunction expression.
-   * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
-   * 
- * - * Protobuf type {@code flyteidl.core.BooleanExpression} - */ - public static final class BooleanExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BooleanExpression) - BooleanExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use BooleanExpression.newBuilder() to construct. - private BooleanExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BooleanExpression() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BooleanExpression( - 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: { - flyteidl.core.Condition.ConjunctionExpression.Builder subBuilder = null; - if (exprCase_ == 1) { - subBuilder = ((flyteidl.core.Condition.ConjunctionExpression) expr_).toBuilder(); - } - expr_ = - input.readMessage(flyteidl.core.Condition.ConjunctionExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Condition.ConjunctionExpression) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 1; - break; - } - case 18: { - flyteidl.core.Condition.ComparisonExpression.Builder subBuilder = null; - if (exprCase_ == 2) { - subBuilder = ((flyteidl.core.Condition.ComparisonExpression) expr_).toBuilder(); - } - expr_ = - input.readMessage(flyteidl.core.Condition.ComparisonExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Condition.ComparisonExpression) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 2; - 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 flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); - } - - private int exprCase_ = 0; - private java.lang.Object expr_; - public enum ExprCase - implements com.google.protobuf.Internal.EnumLite { - CONJUNCTION(1), - COMPARISON(2), - EXPR_NOT_SET(0); - private final int value; - private ExprCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExprCase valueOf(int value) { - return forNumber(value); - } - - public static ExprCase forNumber(int value) { - switch (value) { - case 1: return CONJUNCTION; - case 2: return COMPARISON; - case 0: return EXPR_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public static final int CONJUNCTION_FIELD_NUMBER = 1; - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public boolean hasConjunction() { - return exprCase_ == 1; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression getConjunction() { - if (exprCase_ == 1) { - return (flyteidl.core.Condition.ConjunctionExpression) expr_; - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { - if (exprCase_ == 1) { - return (flyteidl.core.Condition.ConjunctionExpression) expr_; - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - - public static final int COMPARISON_FIELD_NUMBER = 2; - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public boolean hasComparison() { - return exprCase_ == 2; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpression getComparison() { - if (exprCase_ == 2) { - return (flyteidl.core.Condition.ComparisonExpression) expr_; - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { - if (exprCase_ == 2) { - return (flyteidl.core.Condition.ComparisonExpression) expr_; - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (exprCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); - } - if (exprCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Condition.ComparisonExpression) expr_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (exprCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); - } - if (exprCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Condition.ComparisonExpression) expr_); - } - 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 flyteidl.core.Condition.BooleanExpression)) { - return super.equals(obj); - } - flyteidl.core.Condition.BooleanExpression other = (flyteidl.core.Condition.BooleanExpression) obj; - - if (!getExprCase().equals(other.getExprCase())) return false; - switch (exprCase_) { - case 1: - if (!getConjunction() - .equals(other.getConjunction())) return false; - break; - case 2: - if (!getComparison() - .equals(other.getComparison())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (exprCase_) { - case 1: - hash = (37 * hash) + CONJUNCTION_FIELD_NUMBER; - hash = (53 * hash) + getConjunction().hashCode(); - break; - case 2: - hash = (37 * hash) + COMPARISON_FIELD_NUMBER; - hash = (53 * hash) + getComparison().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Condition.BooleanExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.BooleanExpression 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 flyteidl.core.Condition.BooleanExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.BooleanExpression 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 flyteidl.core.Condition.BooleanExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.BooleanExpression 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(flyteidl.core.Condition.BooleanExpression 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; - } - /** - *
-     * Defines a boolean expression tree. It can be a simple or a conjunction expression.
-     * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
-     * 
- * - * Protobuf type {@code flyteidl.core.BooleanExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BooleanExpression) - flyteidl.core.Condition.BooleanExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); - } - - // Construct using flyteidl.core.Condition.BooleanExpression.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(); - exprCase_ = 0; - expr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; - } - - @java.lang.Override - public flyteidl.core.Condition.BooleanExpression getDefaultInstanceForType() { - return flyteidl.core.Condition.BooleanExpression.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Condition.BooleanExpression build() { - flyteidl.core.Condition.BooleanExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Condition.BooleanExpression buildPartial() { - flyteidl.core.Condition.BooleanExpression result = new flyteidl.core.Condition.BooleanExpression(this); - if (exprCase_ == 1) { - if (conjunctionBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = conjunctionBuilder_.build(); - } - } - if (exprCase_ == 2) { - if (comparisonBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = comparisonBuilder_.build(); - } - } - result.exprCase_ = exprCase_; - 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 flyteidl.core.Condition.BooleanExpression) { - return mergeFrom((flyteidl.core.Condition.BooleanExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Condition.BooleanExpression other) { - if (other == flyteidl.core.Condition.BooleanExpression.getDefaultInstance()) return this; - switch (other.getExprCase()) { - case CONJUNCTION: { - mergeConjunction(other.getConjunction()); - break; - } - case COMPARISON: { - mergeComparison(other.getComparison()); - break; - } - case EXPR_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 { - flyteidl.core.Condition.BooleanExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Condition.BooleanExpression) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int exprCase_ = 0; - private java.lang.Object expr_; - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public Builder clearExpr() { - exprCase_ = 0; - expr_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> conjunctionBuilder_; - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public boolean hasConjunction() { - return exprCase_ == 1; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression getConjunction() { - if (conjunctionBuilder_ == null) { - if (exprCase_ == 1) { - return (flyteidl.core.Condition.ConjunctionExpression) expr_; - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return conjunctionBuilder_.getMessage(); - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public Builder setConjunction(flyteidl.core.Condition.ConjunctionExpression value) { - if (conjunctionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - conjunctionBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public Builder setConjunction( - flyteidl.core.Condition.ConjunctionExpression.Builder builderForValue) { - if (conjunctionBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - conjunctionBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 1; - return this; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public Builder mergeConjunction(flyteidl.core.Condition.ConjunctionExpression value) { - if (conjunctionBuilder_ == null) { - if (exprCase_ == 1 && - expr_ != flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) { - expr_ = flyteidl.core.Condition.ConjunctionExpression.newBuilder((flyteidl.core.Condition.ConjunctionExpression) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 1) { - conjunctionBuilder_.mergeFrom(value); - } - conjunctionBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public Builder clearConjunction() { - if (conjunctionBuilder_ == null) { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - } - conjunctionBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression.Builder getConjunctionBuilder() { - return getConjunctionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { - if ((exprCase_ == 1) && (conjunctionBuilder_ != null)) { - return conjunctionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (flyteidl.core.Condition.ConjunctionExpression) expr_; - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> - getConjunctionFieldBuilder() { - if (conjunctionBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - conjunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder>( - (flyteidl.core.Condition.ConjunctionExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged();; - return conjunctionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> comparisonBuilder_; - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public boolean hasComparison() { - return exprCase_ == 2; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpression getComparison() { - if (comparisonBuilder_ == null) { - if (exprCase_ == 2) { - return (flyteidl.core.Condition.ComparisonExpression) expr_; - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return comparisonBuilder_.getMessage(); - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public Builder setComparison(flyteidl.core.Condition.ComparisonExpression value) { - if (comparisonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - comparisonBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public Builder setComparison( - flyteidl.core.Condition.ComparisonExpression.Builder builderForValue) { - if (comparisonBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - comparisonBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 2; - return this; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public Builder mergeComparison(flyteidl.core.Condition.ComparisonExpression value) { - if (comparisonBuilder_ == null) { - if (exprCase_ == 2 && - expr_ != flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) { - expr_ = flyteidl.core.Condition.ComparisonExpression.newBuilder((flyteidl.core.Condition.ComparisonExpression) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 2) { - comparisonBuilder_.mergeFrom(value); - } - comparisonBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public Builder clearComparison() { - if (comparisonBuilder_ == null) { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - } - comparisonBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpression.Builder getComparisonBuilder() { - return getComparisonFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { - if ((exprCase_ == 2) && (comparisonBuilder_ != null)) { - return comparisonBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (flyteidl.core.Condition.ComparisonExpression) expr_; - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> - getComparisonFieldBuilder() { - if (comparisonBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - comparisonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder>( - (flyteidl.core.Condition.ComparisonExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged();; - return comparisonBuilder_; - } - @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:flyteidl.core.BooleanExpression) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BooleanExpression) - private static final flyteidl.core.Condition.BooleanExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Condition.BooleanExpression(); - } - - public static flyteidl.core.Condition.BooleanExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BooleanExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BooleanExpression(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 flyteidl.core.Condition.BooleanExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConjunctionExpressionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ConjunctionExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - int getOperatorValue(); - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator(); - - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - boolean hasLeftExpression(); - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - flyteidl.core.Condition.BooleanExpression getLeftExpression(); - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder(); - - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - boolean hasRightExpression(); - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - flyteidl.core.Condition.BooleanExpression getRightExpression(); - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder(); - } - /** - *
-   * Defines a conjunction expression of two boolean expressions.
-   * 
- * - * Protobuf type {@code flyteidl.core.ConjunctionExpression} - */ - public static final class ConjunctionExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ConjunctionExpression) - ConjunctionExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConjunctionExpression.newBuilder() to construct. - private ConjunctionExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConjunctionExpression() { - operator_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConjunctionExpression( - 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 8: { - int rawValue = input.readEnum(); - - operator_ = rawValue; - break; - } - case 18: { - flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; - if (leftExpression_ != null) { - subBuilder = leftExpression_.toBuilder(); - } - leftExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(leftExpression_); - leftExpression_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; - if (rightExpression_ != null) { - subBuilder = rightExpression_.toBuilder(); - } - rightExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rightExpression_); - rightExpression_ = 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 flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); - } - - /** - *
-     * Nested conditions. They can be conjoined using AND / OR
-     * Order of evaluation is not important as the operators are Commutative
-     * 
- * - * Protobuf enum {@code flyteidl.core.ConjunctionExpression.LogicalOperator} - */ - public enum LogicalOperator - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Conjunction
-       * 
- * - * AND = 0; - */ - AND(0), - /** - * OR = 1; - */ - OR(1), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Conjunction
-       * 
- * - * AND = 0; - */ - public static final int AND_VALUE = 0; - /** - * OR = 1; - */ - public static final int OR_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LogicalOperator valueOf(int value) { - return forNumber(value); - } - - public static LogicalOperator forNumber(int value) { - switch (value) { - case 0: return AND; - case 1: return OR; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LogicalOperator> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LogicalOperator findValueByNumber(int number) { - return LogicalOperator.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Condition.ConjunctionExpression.getDescriptor().getEnumTypes().get(0); - } - - private static final LogicalOperator[] VALUES = values(); - - public static LogicalOperator 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 LogicalOperator(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ConjunctionExpression.LogicalOperator) - } - - public static final int OPERATOR_FIELD_NUMBER = 1; - private int operator_; - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public int getOperatorValue() { - return operator_; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { - @SuppressWarnings("deprecation") - flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); - return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; - } - - public static final int LEFT_EXPRESSION_FIELD_NUMBER = 2; - private flyteidl.core.Condition.BooleanExpression leftExpression_; - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public boolean hasLeftExpression() { - return leftExpression_ != null; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpression getLeftExpression() { - return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { - return getLeftExpression(); - } - - public static final int RIGHT_EXPRESSION_FIELD_NUMBER = 3; - private flyteidl.core.Condition.BooleanExpression rightExpression_; - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public boolean hasRightExpression() { - return rightExpression_ != null; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpression getRightExpression() { - return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { - return getRightExpression(); - } - - 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 (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { - output.writeEnum(1, operator_); - } - if (leftExpression_ != null) { - output.writeMessage(2, getLeftExpression()); - } - if (rightExpression_ != null) { - output.writeMessage(3, getRightExpression()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, operator_); - } - if (leftExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLeftExpression()); - } - if (rightExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRightExpression()); - } - 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 flyteidl.core.Condition.ConjunctionExpression)) { - return super.equals(obj); - } - flyteidl.core.Condition.ConjunctionExpression other = (flyteidl.core.Condition.ConjunctionExpression) obj; - - if (operator_ != other.operator_) return false; - if (hasLeftExpression() != other.hasLeftExpression()) return false; - if (hasLeftExpression()) { - if (!getLeftExpression() - .equals(other.getLeftExpression())) return false; - } - if (hasRightExpression() != other.hasRightExpression()) return false; - if (hasRightExpression()) { - if (!getRightExpression() - .equals(other.getRightExpression())) 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) + OPERATOR_FIELD_NUMBER; - hash = (53 * hash) + operator_; - if (hasLeftExpression()) { - hash = (37 * hash) + LEFT_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getLeftExpression().hashCode(); - } - if (hasRightExpression()) { - hash = (37 * hash) + RIGHT_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getRightExpression().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ConjunctionExpression 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 flyteidl.core.Condition.ConjunctionExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ConjunctionExpression 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 flyteidl.core.Condition.ConjunctionExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ConjunctionExpression 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(flyteidl.core.Condition.ConjunctionExpression 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; - } - /** - *
-     * Defines a conjunction expression of two boolean expressions.
-     * 
- * - * Protobuf type {@code flyteidl.core.ConjunctionExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ConjunctionExpression) - flyteidl.core.Condition.ConjunctionExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); - } - - // Construct using flyteidl.core.Condition.ConjunctionExpression.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(); - operator_ = 0; - - if (leftExpressionBuilder_ == null) { - leftExpression_ = null; - } else { - leftExpression_ = null; - leftExpressionBuilder_ = null; - } - if (rightExpressionBuilder_ == null) { - rightExpression_ = null; - } else { - rightExpression_ = null; - rightExpressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; - } - - @java.lang.Override - public flyteidl.core.Condition.ConjunctionExpression getDefaultInstanceForType() { - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Condition.ConjunctionExpression build() { - flyteidl.core.Condition.ConjunctionExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Condition.ConjunctionExpression buildPartial() { - flyteidl.core.Condition.ConjunctionExpression result = new flyteidl.core.Condition.ConjunctionExpression(this); - result.operator_ = operator_; - if (leftExpressionBuilder_ == null) { - result.leftExpression_ = leftExpression_; - } else { - result.leftExpression_ = leftExpressionBuilder_.build(); - } - if (rightExpressionBuilder_ == null) { - result.rightExpression_ = rightExpression_; - } else { - result.rightExpression_ = rightExpressionBuilder_.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 flyteidl.core.Condition.ConjunctionExpression) { - return mergeFrom((flyteidl.core.Condition.ConjunctionExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Condition.ConjunctionExpression other) { - if (other == flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) return this; - if (other.operator_ != 0) { - setOperatorValue(other.getOperatorValue()); - } - if (other.hasLeftExpression()) { - mergeLeftExpression(other.getLeftExpression()); - } - if (other.hasRightExpression()) { - mergeRightExpression(other.getRightExpression()); - } - 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 { - flyteidl.core.Condition.ConjunctionExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Condition.ConjunctionExpression) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int operator_ = 0; - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public int getOperatorValue() { - return operator_; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public Builder setOperatorValue(int value) { - operator_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { - @SuppressWarnings("deprecation") - flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); - return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public Builder setOperator(flyteidl.core.Condition.ConjunctionExpression.LogicalOperator value) { - if (value == null) { - throw new NullPointerException(); - } - - operator_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public Builder clearOperator() { - - operator_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Condition.BooleanExpression leftExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> leftExpressionBuilder_; - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public boolean hasLeftExpression() { - return leftExpressionBuilder_ != null || leftExpression_ != null; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpression getLeftExpression() { - if (leftExpressionBuilder_ == null) { - return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; - } else { - return leftExpressionBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public Builder setLeftExpression(flyteidl.core.Condition.BooleanExpression value) { - if (leftExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - leftExpression_ = value; - onChanged(); - } else { - leftExpressionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public Builder setLeftExpression( - flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { - if (leftExpressionBuilder_ == null) { - leftExpression_ = builderForValue.build(); - onChanged(); - } else { - leftExpressionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public Builder mergeLeftExpression(flyteidl.core.Condition.BooleanExpression value) { - if (leftExpressionBuilder_ == null) { - if (leftExpression_ != null) { - leftExpression_ = - flyteidl.core.Condition.BooleanExpression.newBuilder(leftExpression_).mergeFrom(value).buildPartial(); - } else { - leftExpression_ = value; - } - onChanged(); - } else { - leftExpressionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public Builder clearLeftExpression() { - if (leftExpressionBuilder_ == null) { - leftExpression_ = null; - onChanged(); - } else { - leftExpression_ = null; - leftExpressionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpression.Builder getLeftExpressionBuilder() { - - onChanged(); - return getLeftExpressionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { - if (leftExpressionBuilder_ != null) { - return leftExpressionBuilder_.getMessageOrBuilder(); - } else { - return leftExpression_ == null ? - flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; - } - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> - getLeftExpressionFieldBuilder() { - if (leftExpressionBuilder_ == null) { - leftExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( - getLeftExpression(), - getParentForChildren(), - isClean()); - leftExpression_ = null; - } - return leftExpressionBuilder_; - } - - private flyteidl.core.Condition.BooleanExpression rightExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> rightExpressionBuilder_; - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public boolean hasRightExpression() { - return rightExpressionBuilder_ != null || rightExpression_ != null; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpression getRightExpression() { - if (rightExpressionBuilder_ == null) { - return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; - } else { - return rightExpressionBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public Builder setRightExpression(flyteidl.core.Condition.BooleanExpression value) { - if (rightExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rightExpression_ = value; - onChanged(); - } else { - rightExpressionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public Builder setRightExpression( - flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { - if (rightExpressionBuilder_ == null) { - rightExpression_ = builderForValue.build(); - onChanged(); - } else { - rightExpressionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public Builder mergeRightExpression(flyteidl.core.Condition.BooleanExpression value) { - if (rightExpressionBuilder_ == null) { - if (rightExpression_ != null) { - rightExpression_ = - flyteidl.core.Condition.BooleanExpression.newBuilder(rightExpression_).mergeFrom(value).buildPartial(); - } else { - rightExpression_ = value; - } - onChanged(); - } else { - rightExpressionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public Builder clearRightExpression() { - if (rightExpressionBuilder_ == null) { - rightExpression_ = null; - onChanged(); - } else { - rightExpression_ = null; - rightExpressionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpression.Builder getRightExpressionBuilder() { - - onChanged(); - return getRightExpressionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { - if (rightExpressionBuilder_ != null) { - return rightExpressionBuilder_.getMessageOrBuilder(); - } else { - return rightExpression_ == null ? - flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; - } - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> - getRightExpressionFieldBuilder() { - if (rightExpressionBuilder_ == null) { - rightExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( - getRightExpression(), - getParentForChildren(), - isClean()); - rightExpression_ = null; - } - return rightExpressionBuilder_; - } - @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:flyteidl.core.ConjunctionExpression) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ConjunctionExpression) - private static final flyteidl.core.Condition.ConjunctionExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Condition.ConjunctionExpression(); - } - - public static flyteidl.core.Condition.ConjunctionExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConjunctionExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConjunctionExpression(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 flyteidl.core.Condition.ConjunctionExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ComparisonExpression_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Operand_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Operand_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BooleanExpression_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConjunctionExpression_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConjunctionExpression_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\035flyteidl/core/condition.proto\022\rflyteid" + - "l.core\032\034flyteidl/core/literals.proto\"\356\001\n" + - "\024ComparisonExpression\022>\n\010operator\030\001 \001(\0162" + - ",.flyteidl.core.ComparisonExpression.Ope" + - "rator\022*\n\nleft_value\030\002 \001(\0132\026.flyteidl.cor" + - "e.Operand\022+\n\013right_value\030\003 \001(\0132\026.flyteid" + - "l.core.Operand\"=\n\010Operator\022\006\n\002EQ\020\000\022\007\n\003NE" + - "Q\020\001\022\006\n\002GT\020\002\022\007\n\003GTE\020\003\022\006\n\002LT\020\004\022\007\n\003LTE\020\005\"N\n" + - "\007Operand\022-\n\tprimitive\030\001 \001(\0132\030.flyteidl.c" + - "ore.PrimitiveH\000\022\r\n\003var\030\002 \001(\tH\000B\005\n\003val\"\223\001" + - "\n\021BooleanExpression\022;\n\013conjunction\030\001 \001(\013" + - "2$.flyteidl.core.ConjunctionExpressionH\000" + - "\0229\n\ncomparison\030\002 \001(\0132#.flyteidl.core.Com" + - "parisonExpressionH\000B\006\n\004expr\"\372\001\n\025Conjunct" + - "ionExpression\022F\n\010operator\030\001 \001(\01624.flytei" + - "dl.core.ConjunctionExpression.LogicalOpe" + - "rator\0229\n\017left_expression\030\002 \001(\0132 .flyteid" + - "l.core.BooleanExpression\022:\n\020right_expres" + - "sion\030\003 \001(\0132 .flyteidl.core.BooleanExpres" + - "sion\"\"\n\017LogicalOperator\022\007\n\003AND\020\000\022\006\n\002OR\020\001" + - "B2Z0github.com/lyft/flyteidl/gen/pb-go/f" + - "lyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Literals.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_ComparisonExpression_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ComparisonExpression_descriptor, - new java.lang.String[] { "Operator", "LeftValue", "RightValue", }); - internal_static_flyteidl_core_Operand_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_Operand_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Operand_descriptor, - new java.lang.String[] { "Primitive", "Var", "Val", }); - internal_static_flyteidl_core_BooleanExpression_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BooleanExpression_descriptor, - new java.lang.String[] { "Conjunction", "Comparison", "Expr", }); - internal_static_flyteidl_core_ConjunctionExpression_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ConjunctionExpression_descriptor, - new java.lang.String[] { "Operator", "LeftExpression", "RightExpression", }); - flyteidl.core.Literals.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/DynamicJob.java b/gen/pb-java/flyteidl/core/DynamicJob.java deleted file mode 100644 index 4b7962408..000000000 --- a/gen/pb-java/flyteidl/core/DynamicJob.java +++ /dev/null @@ -1,2542 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/dynamic_job.proto - -package flyteidl.core; - -public final class DynamicJob { - private DynamicJob() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DynamicJobSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.DynamicJobSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - java.util.List - getNodesList(); - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - flyteidl.core.Workflow.Node getNodes(int index); - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - int getNodesCount(); - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - java.util.List - getNodesOrBuilderList(); - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index); - - /** - *
-     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-     * specified, is the count of nodes repeated field.
-     * 
- * - * int64 min_successes = 2; - */ - long getMinSuccesses(); - - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - java.util.List - getOutputsList(); - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - flyteidl.core.Literals.Binding getOutputs(int index); - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - int getOutputsCount(); - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - java.util.List - getOutputsOrBuilderList(); - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index); - - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - java.util.List - getTasksList(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - flyteidl.core.Tasks.TaskTemplate getTasks(int index); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - int getTasksCount(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - java.util.List - getTasksOrBuilderList(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index); - - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - java.util.List - getSubworkflowsList(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - int getSubworkflowsCount(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - java.util.List - getSubworkflowsOrBuilderList(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( - int index); - } - /** - *
-   * Describes a set of tasks to execute and how the final outputs are produced.
-   * 
- * - * Protobuf type {@code flyteidl.core.DynamicJobSpec} - */ - public static final class DynamicJobSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.DynamicJobSpec) - DynamicJobSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use DynamicJobSpec.newBuilder() to construct. - private DynamicJobSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DynamicJobSpec() { - nodes_ = java.util.Collections.emptyList(); - outputs_ = java.util.Collections.emptyList(); - tasks_ = java.util.Collections.emptyList(); - subworkflows_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DynamicJobSpec( - 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)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodes_.add( - input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); - break; - } - case 16: { - - minSuccesses_ = input.readInt64(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - outputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - outputs_.add( - input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - tasks_.add( - input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - subworkflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - subworkflows_.add( - input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.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)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); - } - - private int bitField0_; - public static final int NODES_FIELD_NUMBER = 1; - private java.util.List nodes_; - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List getNodesList() { - return nodes_; - } - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List - getNodesOrBuilderList() { - return nodes_; - } - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public int getNodesCount() { - return nodes_.size(); - } - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node getNodes(int index) { - return nodes_.get(index); - } - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index) { - return nodes_.get(index); - } - - public static final int MIN_SUCCESSES_FIELD_NUMBER = 2; - private long minSuccesses_; - /** - *
-     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-     * specified, is the count of nodes repeated field.
-     * 
- * - * int64 min_successes = 2; - */ - public long getMinSuccesses() { - return minSuccesses_; - } - - public static final int OUTPUTS_FIELD_NUMBER = 3; - private java.util.List outputs_; - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List getOutputsList() { - return outputs_; - } - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List - getOutputsOrBuilderList() { - return outputs_; - } - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public int getOutputsCount() { - return outputs_.size(); - } - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding getOutputs(int index) { - return outputs_.get(index); - } - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index) { - return outputs_.get(index); - } - - public static final int TASKS_FIELD_NUMBER = 4; - private java.util.List tasks_; - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { - return tasks_.get(index); - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index) { - return tasks_.get(index); - } - - public static final int SUBWORKFLOWS_FIELD_NUMBER = 5; - private java.util.List subworkflows_; - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List getSubworkflowsList() { - return subworkflows_; - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List - getSubworkflowsOrBuilderList() { - return subworkflows_; - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public int getSubworkflowsCount() { - return subworkflows_.size(); - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { - return subworkflows_.get(index); - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( - int index) { - return subworkflows_.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 < nodes_.size(); i++) { - output.writeMessage(1, nodes_.get(i)); - } - if (minSuccesses_ != 0L) { - output.writeInt64(2, minSuccesses_); - } - for (int i = 0; i < outputs_.size(); i++) { - output.writeMessage(3, outputs_.get(i)); - } - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(4, tasks_.get(i)); - } - for (int i = 0; i < subworkflows_.size(); i++) { - output.writeMessage(5, subworkflows_.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 < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodes_.get(i)); - } - if (minSuccesses_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, minSuccesses_); - } - for (int i = 0; i < outputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, outputs_.get(i)); - } - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, tasks_.get(i)); - } - for (int i = 0; i < subworkflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, subworkflows_.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 flyteidl.core.DynamicJob.DynamicJobSpec)) { - return super.equals(obj); - } - flyteidl.core.DynamicJob.DynamicJobSpec other = (flyteidl.core.DynamicJob.DynamicJobSpec) obj; - - if (!getNodesList() - .equals(other.getNodesList())) return false; - if (getMinSuccesses() - != other.getMinSuccesses()) return false; - if (!getOutputsList() - .equals(other.getOutputsList())) return false; - if (!getTasksList() - .equals(other.getTasksList())) return false; - if (!getSubworkflowsList() - .equals(other.getSubworkflowsList())) 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 (getNodesCount() > 0) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + getNodesList().hashCode(); - } - hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinSuccesses()); - if (getOutputsCount() > 0) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputsList().hashCode(); - } - if (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - if (getSubworkflowsCount() > 0) { - hash = (37 * hash) + SUBWORKFLOWS_FIELD_NUMBER; - hash = (53 * hash) + getSubworkflowsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec 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 flyteidl.core.DynamicJob.DynamicJobSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec 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 flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec 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(flyteidl.core.DynamicJob.DynamicJobSpec 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; - } - /** - *
-     * Describes a set of tasks to execute and how the final outputs are produced.
-     * 
- * - * Protobuf type {@code flyteidl.core.DynamicJobSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.DynamicJobSpec) - flyteidl.core.DynamicJob.DynamicJobSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); - } - - // Construct using flyteidl.core.DynamicJob.DynamicJobSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodesFieldBuilder(); - getOutputsFieldBuilder(); - getTasksFieldBuilder(); - getSubworkflowsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodesBuilder_.clear(); - } - minSuccesses_ = 0L; - - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - outputsBuilder_.clear(); - } - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - tasksBuilder_.clear(); - } - if (subworkflowsBuilder_ == null) { - subworkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - subworkflowsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; - } - - @java.lang.Override - public flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { - return flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.DynamicJob.DynamicJobSpec build() { - flyteidl.core.DynamicJob.DynamicJobSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.DynamicJob.DynamicJobSpec buildPartial() { - flyteidl.core.DynamicJob.DynamicJobSpec result = new flyteidl.core.DynamicJob.DynamicJobSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (nodesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodes_ = nodes_; - } else { - result.nodes_ = nodesBuilder_.build(); - } - result.minSuccesses_ = minSuccesses_; - if (outputsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - if (subworkflowsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.subworkflows_ = subworkflows_; - } else { - result.subworkflows_ = subworkflowsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.core.DynamicJob.DynamicJobSpec) { - return mergeFrom((flyteidl.core.DynamicJob.DynamicJobSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.DynamicJob.DynamicJobSpec other) { - if (other == flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance()) return this; - if (nodesBuilder_ == null) { - if (!other.nodes_.isEmpty()) { - if (nodes_.isEmpty()) { - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodesIsMutable(); - nodes_.addAll(other.nodes_); - } - onChanged(); - } - } else { - if (!other.nodes_.isEmpty()) { - if (nodesBuilder_.isEmpty()) { - nodesBuilder_.dispose(); - nodesBuilder_ = null; - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; - } else { - nodesBuilder_.addAllMessages(other.nodes_); - } - } - } - if (other.getMinSuccesses() != 0L) { - setMinSuccesses(other.getMinSuccesses()); - } - if (outputsBuilder_ == null) { - if (!other.outputs_.isEmpty()) { - if (outputs_.isEmpty()) { - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureOutputsIsMutable(); - outputs_.addAll(other.outputs_); - } - onChanged(); - } - } else { - if (!other.outputs_.isEmpty()) { - if (outputsBuilder_.isEmpty()) { - outputsBuilder_.dispose(); - outputsBuilder_ = null; - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000004); - outputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutputsFieldBuilder() : null; - } else { - outputsBuilder_.addAllMessages(other.outputs_); - } - } - } - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000008); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - if (subworkflowsBuilder_ == null) { - if (!other.subworkflows_.isEmpty()) { - if (subworkflows_.isEmpty()) { - subworkflows_ = other.subworkflows_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureSubworkflowsIsMutable(); - subworkflows_.addAll(other.subworkflows_); - } - onChanged(); - } - } else { - if (!other.subworkflows_.isEmpty()) { - if (subworkflowsBuilder_.isEmpty()) { - subworkflowsBuilder_.dispose(); - subworkflowsBuilder_ = null; - subworkflows_ = other.subworkflows_; - bitField0_ = (bitField0_ & ~0x00000010); - subworkflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubworkflowsFieldBuilder() : null; - } else { - subworkflowsBuilder_.addAllMessages(other.subworkflows_); - } - } - } - 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 { - flyteidl.core.DynamicJob.DynamicJobSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.DynamicJob.DynamicJobSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; - - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); - } else { - return nodesBuilder_.getCount(); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessage(index); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder setNodes( - int index, flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); - } else { - nodesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder setNodes( - int index, flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addNodes(flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addNodes( - int index, flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addNodes( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addNodes( - int index, flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodesBuilder_.clear(); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); - } else { - nodesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node.Builder getNodesBuilder( - int index) { - return getNodesFieldBuilder().getBuilder(index); - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); } else { - return nodesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - flyteidl.core.Workflow.Node.getDefaultInstance()); - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.Node.getDefaultInstance()); - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List - getNodesBuilderList() { - return getNodesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - nodes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodes_ = null; - } - return nodesBuilder_; - } - - private long minSuccesses_ ; - /** - *
-       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-       * specified, is the count of nodes repeated field.
-       * 
- * - * int64 min_successes = 2; - */ - public long getMinSuccesses() { - return minSuccesses_; - } - /** - *
-       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-       * specified, is the count of nodes repeated field.
-       * 
- * - * int64 min_successes = 2; - */ - public Builder setMinSuccesses(long value) { - - minSuccesses_ = value; - onChanged(); - return this; - } - /** - *
-       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-       * specified, is the count of nodes repeated field.
-       * 
- * - * int64 min_successes = 2; - */ - public Builder clearMinSuccesses() { - - minSuccesses_ = 0L; - onChanged(); - return this; - } - - private java.util.List outputs_ = - java.util.Collections.emptyList(); - private void ensureOutputsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - outputs_ = new java.util.ArrayList(outputs_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; - - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List getOutputsList() { - if (outputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputs_); - } else { - return outputsBuilder_.getMessageList(); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public int getOutputsCount() { - if (outputsBuilder_ == null) { - return outputs_.size(); - } else { - return outputsBuilder_.getCount(); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding getOutputs(int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); - } else { - return outputsBuilder_.getMessage(index); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder setOutputs( - int index, flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.set(index, value); - onChanged(); - } else { - outputsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder setOutputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.set(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addOutputs(flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(value); - onChanged(); - } else { - outputsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addOutputs( - int index, flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(index, value); - onChanged(); - } else { - outputsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addOutputs( - flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addOutputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addAllOutputs( - java.lang.Iterable values) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputs_); - onChanged(); - } else { - outputsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - outputsBuilder_.clear(); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder removeOutputs(int index) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.remove(index); - onChanged(); - } else { - outputsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( - int index) { - return getOutputsFieldBuilder().getBuilder(index); - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); } else { - return outputsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List - getOutputsOrBuilderList() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outputs_); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { - return getOutputsFieldBuilder().addBuilder( - flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( - int index) { - return getOutputsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List - getOutputsBuilderList() { - return getOutputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( - outputs_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; - - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder setTasks( - int index, flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder setTasks( - int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addTasks( - int index, flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addTasks( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addTasks( - int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - tasks_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - - private java.util.List subworkflows_ = - java.util.Collections.emptyList(); - private void ensureSubworkflowsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - subworkflows_ = new java.util.ArrayList(subworkflows_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> subworkflowsBuilder_; - - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List getSubworkflowsList() { - if (subworkflowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subworkflows_); - } else { - return subworkflowsBuilder_.getMessageList(); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public int getSubworkflowsCount() { - if (subworkflowsBuilder_ == null) { - return subworkflows_.size(); - } else { - return subworkflowsBuilder_.getCount(); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { - if (subworkflowsBuilder_ == null) { - return subworkflows_.get(index); - } else { - return subworkflowsBuilder_.getMessage(index); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder setSubworkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate value) { - if (subworkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubworkflowsIsMutable(); - subworkflows_.set(index, value); - onChanged(); - } else { - subworkflowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder setSubworkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - subworkflows_.set(index, builderForValue.build()); - onChanged(); - } else { - subworkflowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addSubworkflows(flyteidl.core.Workflow.WorkflowTemplate value) { - if (subworkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubworkflowsIsMutable(); - subworkflows_.add(value); - onChanged(); - } else { - subworkflowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addSubworkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate value) { - if (subworkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubworkflowsIsMutable(); - subworkflows_.add(index, value); - onChanged(); - } else { - subworkflowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addSubworkflows( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - subworkflows_.add(builderForValue.build()); - onChanged(); - } else { - subworkflowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addSubworkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - subworkflows_.add(index, builderForValue.build()); - onChanged(); - } else { - subworkflowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addAllSubworkflows( - java.lang.Iterable values) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subworkflows_); - onChanged(); - } else { - subworkflowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder clearSubworkflows() { - if (subworkflowsBuilder_ == null) { - subworkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - subworkflowsBuilder_.clear(); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder removeSubworkflows(int index) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - subworkflows_.remove(index); - onChanged(); - } else { - subworkflowsBuilder_.remove(index); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getSubworkflowsBuilder( - int index) { - return getSubworkflowsFieldBuilder().getBuilder(index); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( - int index) { - if (subworkflowsBuilder_ == null) { - return subworkflows_.get(index); } else { - return subworkflowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List - getSubworkflowsOrBuilderList() { - if (subworkflowsBuilder_ != null) { - return subworkflowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subworkflows_); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder() { - return getSubworkflowsFieldBuilder().addBuilder( - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder( - int index) { - return getSubworkflowsFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List - getSubworkflowsBuilderList() { - return getSubworkflowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getSubworkflowsFieldBuilder() { - if (subworkflowsBuilder_ == null) { - subworkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - subworkflows_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - subworkflows_ = null; - } - return subworkflowsBuilder_; - } - @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:flyteidl.core.DynamicJobSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.DynamicJobSpec) - private static final flyteidl.core.DynamicJob.DynamicJobSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.DynamicJob.DynamicJobSpec(); - } - - public static flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DynamicJobSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DynamicJobSpec(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 flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_DynamicJobSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_DynamicJobSpec_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\037flyteidl/core/dynamic_job.proto\022\rflyte" + - "idl.core\032\031flyteidl/core/tasks.proto\032\034fly" + - "teidl/core/workflow.proto\032\034flyteidl/core" + - "/literals.proto\"\327\001\n\016DynamicJobSpec\022\"\n\005no" + - "des\030\001 \003(\0132\023.flyteidl.core.Node\022\025\n\rmin_su" + - "ccesses\030\002 \001(\003\022\'\n\007outputs\030\003 \003(\0132\026.flyteid" + - "l.core.Binding\022*\n\005tasks\030\004 \003(\0132\033.flyteidl" + - ".core.TaskTemplate\0225\n\014subworkflows\030\005 \003(\013" + - "2\037.flyteidl.core.WorkflowTemplateB2Z0git" + - "hub.com/lyft/flyteidl/gen/pb-go/flyteidl" + - "/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Tasks.getDescriptor(), - flyteidl.core.Workflow.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_DynamicJobSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_DynamicJobSpec_descriptor, - new java.lang.String[] { "Nodes", "MinSuccesses", "Outputs", "Tasks", "Subworkflows", }); - flyteidl.core.Tasks.getDescriptor(); - flyteidl.core.Workflow.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Errors.java b/gen/pb-java/flyteidl/core/Errors.java deleted file mode 100644 index 077cb58e0..000000000 --- a/gen/pb-java/flyteidl/core/Errors.java +++ /dev/null @@ -1,1882 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/errors.proto - -package flyteidl.core; - -public final class Errors { - private Errors() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ContainerErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ContainerError) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A simplified code for errors, so that we can provide a glossary of all possible errors.
-     * 
- * - * string code = 1; - */ - java.lang.String getCode(); - /** - *
-     * A simplified code for errors, so that we can provide a glossary of all possible errors.
-     * 
- * - * string code = 1; - */ - com.google.protobuf.ByteString - getCodeBytes(); - - /** - *
-     * A detailed error message.
-     * 
- * - * string message = 2; - */ - java.lang.String getMessage(); - /** - *
-     * A detailed error message.
-     * 
- * - * string message = 2; - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-     * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - int getKindValue(); - /** - *
-     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-     * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - flyteidl.core.Errors.ContainerError.Kind getKind(); - - /** - *
-     * Defines the origin of the error (system, user, unknown).
-     * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - int getOriginValue(); - /** - *
-     * Defines the origin of the error (system, user, unknown).
-     * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin(); - } - /** - *
-   * Error message to propagate detailed errors from container executions to the execution
-   * engine.
-   * 
- * - * Protobuf type {@code flyteidl.core.ContainerError} - */ - public static final class ContainerError extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerError) - ContainerErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use ContainerError.newBuilder() to construct. - private ContainerError(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ContainerError() { - code_ = ""; - message_ = ""; - kind_ = 0; - origin_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContainerError( - 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(); - - code_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - kind_ = rawValue; - break; - } - case 32: { - int rawValue = input.readEnum(); - - origin_ = rawValue; - 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 flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); - } - - /** - *
-     * Defines a generic error type that dictates the behavior of the retry strategy.
-     * 
- * - * Protobuf enum {@code flyteidl.core.ContainerError.Kind} - */ - public enum Kind - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NON_RECOVERABLE = 0; - */ - NON_RECOVERABLE(0), - /** - * RECOVERABLE = 1; - */ - RECOVERABLE(1), - UNRECOGNIZED(-1), - ; - - /** - * NON_RECOVERABLE = 0; - */ - public static final int NON_RECOVERABLE_VALUE = 0; - /** - * RECOVERABLE = 1; - */ - public static final int RECOVERABLE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Kind valueOf(int value) { - return forNumber(value); - } - - public static Kind forNumber(int value) { - switch (value) { - case 0: return NON_RECOVERABLE; - case 1: return RECOVERABLE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Kind> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Kind findValueByNumber(int number) { - return Kind.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Errors.ContainerError.getDescriptor().getEnumTypes().get(0); - } - - private static final Kind[] VALUES = values(); - - public static Kind 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 Kind(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ContainerError.Kind) - } - - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** - *
-     * A simplified code for errors, so that we can provide a glossary of all possible errors.
-     * 
- * - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - 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(); - code_ = s; - return s; - } - } - /** - *
-     * A simplified code for errors, so that we can provide a glossary of all possible errors.
-     * 
- * - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - *
-     * A detailed error message.
-     * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - 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(); - message_ = s; - return s; - } - } - /** - *
-     * A detailed error message.
-     * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KIND_FIELD_NUMBER = 3; - private int kind_; - /** - *
-     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-     * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public int getKindValue() { - return kind_; - } - /** - *
-     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-     * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public flyteidl.core.Errors.ContainerError.Kind getKind() { - @SuppressWarnings("deprecation") - flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); - return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; - } - - public static final int ORIGIN_FIELD_NUMBER = 4; - private int origin_; - /** - *
-     * Defines the origin of the error (system, user, unknown).
-     * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public int getOriginValue() { - return origin_; - } - /** - *
-     * Defines the origin of the error (system, user, unknown).
-     * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(origin_); - return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; - } - - 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 (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { - output.writeEnum(3, kind_); - } - if (origin_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { - output.writeEnum(4, origin_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, kind_); - } - if (origin_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, origin_); - } - 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 flyteidl.core.Errors.ContainerError)) { - return super.equals(obj); - } - flyteidl.core.Errors.ContainerError other = (flyteidl.core.Errors.ContainerError) obj; - - if (!getCode() - .equals(other.getCode())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; - if (kind_ != other.kind_) return false; - if (origin_ != other.origin_) 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) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + kind_; - hash = (37 * hash) + ORIGIN_FIELD_NUMBER; - hash = (53 * hash) + origin_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Errors.ContainerError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ContainerError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ContainerError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ContainerError parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ContainerError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ContainerError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ContainerError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ContainerError 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 flyteidl.core.Errors.ContainerError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ContainerError 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 flyteidl.core.Errors.ContainerError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ContainerError 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(flyteidl.core.Errors.ContainerError 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; - } - /** - *
-     * Error message to propagate detailed errors from container executions to the execution
-     * engine.
-     * 
- * - * Protobuf type {@code flyteidl.core.ContainerError} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerError) - flyteidl.core.Errors.ContainerErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); - } - - // Construct using flyteidl.core.Errors.ContainerError.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(); - code_ = ""; - - message_ = ""; - - kind_ = 0; - - origin_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; - } - - @java.lang.Override - public flyteidl.core.Errors.ContainerError getDefaultInstanceForType() { - return flyteidl.core.Errors.ContainerError.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Errors.ContainerError build() { - flyteidl.core.Errors.ContainerError result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Errors.ContainerError buildPartial() { - flyteidl.core.Errors.ContainerError result = new flyteidl.core.Errors.ContainerError(this); - result.code_ = code_; - result.message_ = message_; - result.kind_ = kind_; - result.origin_ = origin_; - 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 flyteidl.core.Errors.ContainerError) { - return mergeFrom((flyteidl.core.Errors.ContainerError)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Errors.ContainerError other) { - if (other == flyteidl.core.Errors.ContainerError.getDefaultInstance()) return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (other.kind_ != 0) { - setKindValue(other.getKindValue()); - } - if (other.origin_ != 0) { - setOriginValue(other.getOriginValue()); - } - 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 { - flyteidl.core.Errors.ContainerError parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Errors.ContainerError) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object code_ = ""; - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private int kind_ = 0; - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public int getKindValue() { - return kind_; - } - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public Builder setKindValue(int value) { - kind_ = value; - onChanged(); - return this; - } - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public flyteidl.core.Errors.ContainerError.Kind getKind() { - @SuppressWarnings("deprecation") - flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); - return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; - } - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public Builder setKind(flyteidl.core.Errors.ContainerError.Kind value) { - if (value == null) { - throw new NullPointerException(); - } - - kind_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public Builder clearKind() { - - kind_ = 0; - onChanged(); - return this; - } - - private int origin_ = 0; - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public int getOriginValue() { - return origin_; - } - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public Builder setOriginValue(int value) { - origin_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(origin_); - return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; - } - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public Builder setOrigin(flyteidl.core.Execution.ExecutionError.ErrorKind value) { - if (value == null) { - throw new NullPointerException(); - } - - origin_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public Builder clearOrigin() { - - origin_ = 0; - 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:flyteidl.core.ContainerError) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerError) - private static final flyteidl.core.Errors.ContainerError DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Errors.ContainerError(); - } - - public static flyteidl.core.Errors.ContainerError getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContainerError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContainerError(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 flyteidl.core.Errors.ContainerError getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ErrorDocumentOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ErrorDocument) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - boolean hasError(); - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - flyteidl.core.Errors.ContainerError getError(); - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder(); - } - /** - *
-   * Defines the errors.pb file format the container can produce to communicate
-   * failure reasons to the execution engine.
-   * 
- * - * Protobuf type {@code flyteidl.core.ErrorDocument} - */ - public static final class ErrorDocument extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ErrorDocument) - ErrorDocumentOrBuilder { - private static final long serialVersionUID = 0L; - // Use ErrorDocument.newBuilder() to construct. - private ErrorDocument(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ErrorDocument() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ErrorDocument( - 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: { - flyteidl.core.Errors.ContainerError.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(flyteidl.core.Errors.ContainerError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = 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 flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); - } - - public static final int ERROR_FIELD_NUMBER = 1; - private flyteidl.core.Errors.ContainerError error_; - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public boolean hasError() { - return error_ != null; - } - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerError getError() { - return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; - } - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { - return getError(); - } - - 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 (error_ != null) { - output.writeMessage(1, getError()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getError()); - } - 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 flyteidl.core.Errors.ErrorDocument)) { - return super.equals(obj); - } - flyteidl.core.Errors.ErrorDocument other = (flyteidl.core.Errors.ErrorDocument) obj; - - if (hasError() != other.hasError()) return false; - if (hasError()) { - if (!getError() - .equals(other.getError())) 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 (hasError()) { - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Errors.ErrorDocument parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ErrorDocument 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 flyteidl.core.Errors.ErrorDocument parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ErrorDocument 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 flyteidl.core.Errors.ErrorDocument parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ErrorDocument 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(flyteidl.core.Errors.ErrorDocument 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; - } - /** - *
-     * Defines the errors.pb file format the container can produce to communicate
-     * failure reasons to the execution engine.
-     * 
- * - * Protobuf type {@code flyteidl.core.ErrorDocument} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ErrorDocument) - flyteidl.core.Errors.ErrorDocumentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); - } - - // Construct using flyteidl.core.Errors.ErrorDocument.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 (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; - errorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; - } - - @java.lang.Override - public flyteidl.core.Errors.ErrorDocument getDefaultInstanceForType() { - return flyteidl.core.Errors.ErrorDocument.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Errors.ErrorDocument build() { - flyteidl.core.Errors.ErrorDocument result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Errors.ErrorDocument buildPartial() { - flyteidl.core.Errors.ErrorDocument result = new flyteidl.core.Errors.ErrorDocument(this); - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.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 flyteidl.core.Errors.ErrorDocument) { - return mergeFrom((flyteidl.core.Errors.ErrorDocument)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Errors.ErrorDocument other) { - if (other == flyteidl.core.Errors.ErrorDocument.getDefaultInstance()) return this; - if (other.hasError()) { - mergeError(other.getError()); - } - 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 { - flyteidl.core.Errors.ErrorDocument parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Errors.ErrorDocument) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Errors.ContainerError error_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> errorBuilder_; - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public boolean hasError() { - return errorBuilder_ != null || error_ != null; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerError getError() { - if (errorBuilder_ == null) { - return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; - } else { - return errorBuilder_.getMessage(); - } - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public Builder setError(flyteidl.core.Errors.ContainerError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - error_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public Builder setError( - flyteidl.core.Errors.ContainerError.Builder builderForValue) { - if (errorBuilder_ == null) { - error_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public Builder mergeError(flyteidl.core.Errors.ContainerError value) { - if (errorBuilder_ == null) { - if (error_ != null) { - error_ = - flyteidl.core.Errors.ContainerError.newBuilder(error_).mergeFrom(value).buildPartial(); - } else { - error_ = value; - } - onChanged(); - } else { - errorBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; - errorBuilder_ = null; - } - - return this; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerError.Builder getErrorBuilder() { - - onChanged(); - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { - if (errorBuilder_ != null) { - return errorBuilder_.getMessageOrBuilder(); - } else { - return error_ == null ? - flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; - } - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder>( - getError(), - getParentForChildren(), - isClean()); - error_ = null; - } - return errorBuilder_; - } - @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:flyteidl.core.ErrorDocument) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ErrorDocument) - private static final flyteidl.core.Errors.ErrorDocument DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Errors.ErrorDocument(); - } - - public static flyteidl.core.Errors.ErrorDocument getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorDocument parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorDocument(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 flyteidl.core.Errors.ErrorDocument getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ContainerError_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ContainerError_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ErrorDocument_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ErrorDocument_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\032flyteidl/core/errors.proto\022\rflyteidl.c" + - "ore\032\035flyteidl/core/execution.proto\"\310\001\n\016C" + - "ontainerError\022\014\n\004code\030\001 \001(\t\022\017\n\007message\030\002" + - " \001(\t\0220\n\004kind\030\003 \001(\0162\".flyteidl.core.Conta" + - "inerError.Kind\0227\n\006origin\030\004 \001(\0162\'.flyteid" + - "l.core.ExecutionError.ErrorKind\",\n\004Kind\022" + - "\023\n\017NON_RECOVERABLE\020\000\022\017\n\013RECOVERABLE\020\001\"=\n" + - "\rErrorDocument\022,\n\005error\030\001 \001(\0132\035.flyteidl" + - ".core.ContainerErrorB2Z0github.com/lyft/" + - "flyteidl/gen/pb-go/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Execution.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_ContainerError_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_ContainerError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ContainerError_descriptor, - new java.lang.String[] { "Code", "Message", "Kind", "Origin", }); - internal_static_flyteidl_core_ErrorDocument_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ErrorDocument_descriptor, - new java.lang.String[] { "Error", }); - flyteidl.core.Execution.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Execution.java b/gen/pb-java/flyteidl/core/Execution.java deleted file mode 100644 index 35c7a3c95..000000000 --- a/gen/pb-java/flyteidl/core/Execution.java +++ /dev/null @@ -1,5764 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/execution.proto - -package flyteidl.core; - -public final class Execution { - private Execution() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorkflowExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecution) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Indicates various phases of Workflow Execution
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowExecution} - */ - public static final class WorkflowExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecution) - WorkflowExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecution.newBuilder() to construct. - private WorkflowExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecution() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecution( - 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; - 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 flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.WorkflowExecution.Phase} - */ - public enum Phase - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNDEFINED = 0; - */ - UNDEFINED(0), - /** - * QUEUED = 1; - */ - QUEUED(1), - /** - * RUNNING = 2; - */ - RUNNING(2), - /** - * SUCCEEDING = 3; - */ - SUCCEEDING(3), - /** - * SUCCEEDED = 4; - */ - SUCCEEDED(4), - /** - * FAILING = 5; - */ - FAILING(5), - /** - * FAILED = 6; - */ - FAILED(6), - /** - * ABORTED = 7; - */ - ABORTED(7), - /** - * TIMED_OUT = 8; - */ - TIMED_OUT(8), - UNRECOGNIZED(-1), - ; - - /** - * UNDEFINED = 0; - */ - public static final int UNDEFINED_VALUE = 0; - /** - * QUEUED = 1; - */ - public static final int QUEUED_VALUE = 1; - /** - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * SUCCEEDING = 3; - */ - public static final int SUCCEEDING_VALUE = 3; - /** - * SUCCEEDED = 4; - */ - public static final int SUCCEEDED_VALUE = 4; - /** - * FAILING = 5; - */ - public static final int FAILING_VALUE = 5; - /** - * FAILED = 6; - */ - public static final int FAILED_VALUE = 6; - /** - * ABORTED = 7; - */ - public static final int ABORTED_VALUE = 7; - /** - * TIMED_OUT = 8; - */ - public static final int TIMED_OUT_VALUE = 8; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Phase valueOf(int value) { - return forNumber(value); - } - - public static Phase forNumber(int value) { - switch (value) { - case 0: return UNDEFINED; - case 1: return QUEUED; - case 2: return RUNNING; - case 3: return SUCCEEDING; - case 4: return SUCCEEDED; - case 5: return FAILING; - case 6: return FAILED; - case 7: return ABORTED; - case 8: return TIMED_OUT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Phase> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Phase findValueByNumber(int number) { - return Phase.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Execution.WorkflowExecution.getDescriptor().getEnumTypes().get(0); - } - - private static final Phase[] VALUES = values(); - - public static Phase 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 Phase(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowExecution.Phase) - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.core.Execution.WorkflowExecution)) { - return super.equals(obj); - } - flyteidl.core.Execution.WorkflowExecution other = (flyteidl.core.Execution.WorkflowExecution) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.WorkflowExecution 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 flyteidl.core.Execution.WorkflowExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.WorkflowExecution 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 flyteidl.core.Execution.WorkflowExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.WorkflowExecution 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(flyteidl.core.Execution.WorkflowExecution 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; - } - /** - *
-     * Indicates various phases of Workflow Execution
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecution) - flyteidl.core.Execution.WorkflowExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); - } - - // Construct using flyteidl.core.Execution.WorkflowExecution.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() { - return flyteidl.core.Execution.WorkflowExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.WorkflowExecution build() { - flyteidl.core.Execution.WorkflowExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.WorkflowExecution buildPartial() { - flyteidl.core.Execution.WorkflowExecution result = new flyteidl.core.Execution.WorkflowExecution(this); - 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 flyteidl.core.Execution.WorkflowExecution) { - return mergeFrom((flyteidl.core.Execution.WorkflowExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.WorkflowExecution other) { - if (other == flyteidl.core.Execution.WorkflowExecution.getDefaultInstance()) return this; - 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 { - flyteidl.core.Execution.WorkflowExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.WorkflowExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.core.WorkflowExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecution) - private static final flyteidl.core.Execution.WorkflowExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.WorkflowExecution(); - } - - public static flyteidl.core.Execution.WorkflowExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecution(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 flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecution) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Indicates various phases of Node Execution
-   * 
- * - * Protobuf type {@code flyteidl.core.NodeExecution} - */ - public static final class NodeExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecution) - NodeExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecution.newBuilder() to construct. - private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecution() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecution( - 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; - 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 flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.NodeExecution.Phase} - */ - public enum Phase - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNDEFINED = 0; - */ - UNDEFINED(0), - /** - * QUEUED = 1; - */ - QUEUED(1), - /** - * RUNNING = 2; - */ - RUNNING(2), - /** - * SUCCEEDED = 3; - */ - SUCCEEDED(3), - /** - * FAILING = 4; - */ - FAILING(4), - /** - * FAILED = 5; - */ - FAILED(5), - /** - * ABORTED = 6; - */ - ABORTED(6), - /** - * SKIPPED = 7; - */ - SKIPPED(7), - /** - * TIMED_OUT = 8; - */ - TIMED_OUT(8), - UNRECOGNIZED(-1), - ; - - /** - * UNDEFINED = 0; - */ - public static final int UNDEFINED_VALUE = 0; - /** - * QUEUED = 1; - */ - public static final int QUEUED_VALUE = 1; - /** - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * SUCCEEDED = 3; - */ - public static final int SUCCEEDED_VALUE = 3; - /** - * FAILING = 4; - */ - public static final int FAILING_VALUE = 4; - /** - * FAILED = 5; - */ - public static final int FAILED_VALUE = 5; - /** - * ABORTED = 6; - */ - public static final int ABORTED_VALUE = 6; - /** - * SKIPPED = 7; - */ - public static final int SKIPPED_VALUE = 7; - /** - * TIMED_OUT = 8; - */ - public static final int TIMED_OUT_VALUE = 8; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Phase valueOf(int value) { - return forNumber(value); - } - - public static Phase forNumber(int value) { - switch (value) { - case 0: return UNDEFINED; - case 1: return QUEUED; - case 2: return RUNNING; - case 3: return SUCCEEDED; - case 4: return FAILING; - case 5: return FAILED; - case 6: return ABORTED; - case 7: return SKIPPED; - case 8: return TIMED_OUT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Phase> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Phase findValueByNumber(int number) { - return Phase.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Execution.NodeExecution.getDescriptor().getEnumTypes().get(0); - } - - private static final Phase[] VALUES = values(); - - public static Phase 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 Phase(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.NodeExecution.Phase) - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.core.Execution.NodeExecution)) { - return super.equals(obj); - } - flyteidl.core.Execution.NodeExecution other = (flyteidl.core.Execution.NodeExecution) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.NodeExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.NodeExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.NodeExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.NodeExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.NodeExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.NodeExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.NodeExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.NodeExecution 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 flyteidl.core.Execution.NodeExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.NodeExecution 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 flyteidl.core.Execution.NodeExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.NodeExecution 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(flyteidl.core.Execution.NodeExecution 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; - } - /** - *
-     * Indicates various phases of Node Execution
-     * 
- * - * Protobuf type {@code flyteidl.core.NodeExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecution) - flyteidl.core.Execution.NodeExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); - } - - // Construct using flyteidl.core.Execution.NodeExecution.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() { - return flyteidl.core.Execution.NodeExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.NodeExecution build() { - flyteidl.core.Execution.NodeExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.NodeExecution buildPartial() { - flyteidl.core.Execution.NodeExecution result = new flyteidl.core.Execution.NodeExecution(this); - 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 flyteidl.core.Execution.NodeExecution) { - return mergeFrom((flyteidl.core.Execution.NodeExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.NodeExecution other) { - if (other == flyteidl.core.Execution.NodeExecution.getDefaultInstance()) return this; - 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 { - flyteidl.core.Execution.NodeExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.NodeExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.core.NodeExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecution) - private static final flyteidl.core.Execution.NodeExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.NodeExecution(); - } - - public static flyteidl.core.Execution.NodeExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecution(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 flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecution) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
-   * but this is the cumulative list that customers may want to know about for their task.
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskExecution} - */ - public static final class TaskExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecution) - TaskExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecution.newBuilder() to construct. - private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecution() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecution( - 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; - 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 flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.TaskExecution.Phase} - */ - public enum Phase - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNDEFINED = 0; - */ - UNDEFINED(0), - /** - * QUEUED = 1; - */ - QUEUED(1), - /** - * RUNNING = 2; - */ - RUNNING(2), - /** - * SUCCEEDED = 3; - */ - SUCCEEDED(3), - /** - * ABORTED = 4; - */ - ABORTED(4), - /** - * FAILED = 5; - */ - FAILED(5), - /** - *
-       * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
-       * 
- * - * INITIALIZING = 6; - */ - INITIALIZING(6), - /** - *
-       * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
-       * 
- * - * WAITING_FOR_RESOURCES = 7; - */ - WAITING_FOR_RESOURCES(7), - UNRECOGNIZED(-1), - ; - - /** - * UNDEFINED = 0; - */ - public static final int UNDEFINED_VALUE = 0; - /** - * QUEUED = 1; - */ - public static final int QUEUED_VALUE = 1; - /** - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * SUCCEEDED = 3; - */ - public static final int SUCCEEDED_VALUE = 3; - /** - * ABORTED = 4; - */ - public static final int ABORTED_VALUE = 4; - /** - * FAILED = 5; - */ - public static final int FAILED_VALUE = 5; - /** - *
-       * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
-       * 
- * - * INITIALIZING = 6; - */ - public static final int INITIALIZING_VALUE = 6; - /** - *
-       * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
-       * 
- * - * WAITING_FOR_RESOURCES = 7; - */ - public static final int WAITING_FOR_RESOURCES_VALUE = 7; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Phase valueOf(int value) { - return forNumber(value); - } - - public static Phase forNumber(int value) { - switch (value) { - case 0: return UNDEFINED; - case 1: return QUEUED; - case 2: return RUNNING; - case 3: return SUCCEEDED; - case 4: return ABORTED; - case 5: return FAILED; - case 6: return INITIALIZING; - case 7: return WAITING_FOR_RESOURCES; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Phase> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Phase findValueByNumber(int number) { - return Phase.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Execution.TaskExecution.getDescriptor().getEnumTypes().get(0); - } - - private static final Phase[] VALUES = values(); - - public static Phase 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 Phase(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskExecution.Phase) - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.core.Execution.TaskExecution)) { - return super.equals(obj); - } - flyteidl.core.Execution.TaskExecution other = (flyteidl.core.Execution.TaskExecution) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.TaskExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskExecution 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 flyteidl.core.Execution.TaskExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskExecution 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 flyteidl.core.Execution.TaskExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskExecution 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(flyteidl.core.Execution.TaskExecution 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; - } - /** - *
-     * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
-     * but this is the cumulative list that customers may want to know about for their task.
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecution) - flyteidl.core.Execution.TaskExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); - } - - // Construct using flyteidl.core.Execution.TaskExecution.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() { - return flyteidl.core.Execution.TaskExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.TaskExecution build() { - flyteidl.core.Execution.TaskExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.TaskExecution buildPartial() { - flyteidl.core.Execution.TaskExecution result = new flyteidl.core.Execution.TaskExecution(this); - 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 flyteidl.core.Execution.TaskExecution) { - return mergeFrom((flyteidl.core.Execution.TaskExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.TaskExecution other) { - if (other == flyteidl.core.Execution.TaskExecution.getDefaultInstance()) return this; - 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 { - flyteidl.core.Execution.TaskExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.TaskExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.core.TaskExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecution) - private static final flyteidl.core.Execution.TaskExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskExecution(); - } - - public static flyteidl.core.Execution.TaskExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecution(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 flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ExecutionError) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Error code indicates a grouping of a type of error.
-     * More Info: <Link>
-     * 
- * - * string code = 1; - */ - java.lang.String getCode(); - /** - *
-     * Error code indicates a grouping of a type of error.
-     * More Info: <Link>
-     * 
- * - * string code = 1; - */ - com.google.protobuf.ByteString - getCodeBytes(); - - /** - *
-     * Detailed description of the error - including stack trace.
-     * 
- * - * string message = 2; - */ - java.lang.String getMessage(); - /** - *
-     * Detailed description of the error - including stack trace.
-     * 
- * - * string message = 2; - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-     * Full error contents accessible via a URI
-     * 
- * - * string error_uri = 3; - */ - java.lang.String getErrorUri(); - /** - *
-     * Full error contents accessible via a URI
-     * 
- * - * string error_uri = 3; - */ - com.google.protobuf.ByteString - getErrorUriBytes(); - - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - int getKindValue(); - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - flyteidl.core.Execution.ExecutionError.ErrorKind getKind(); - } - /** - *
-   * Represents the error message from the execution.
-   * 
- * - * Protobuf type {@code flyteidl.core.ExecutionError} - */ - public static final class ExecutionError extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ExecutionError) - ExecutionErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionError.newBuilder() to construct. - private ExecutionError(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionError() { - code_ = ""; - message_ = ""; - errorUri_ = ""; - kind_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionError( - 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(); - - code_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - errorUri_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - kind_ = rawValue; - 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 flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); - } - - /** - *
-     * Error type: System or User
-     * 
- * - * Protobuf enum {@code flyteidl.core.ExecutionError.ErrorKind} - */ - public enum ErrorKind - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * USER = 1; - */ - USER(1), - /** - * SYSTEM = 2; - */ - SYSTEM(2), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * USER = 1; - */ - public static final int USER_VALUE = 1; - /** - * SYSTEM = 2; - */ - public static final int SYSTEM_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ErrorKind valueOf(int value) { - return forNumber(value); - } - - public static ErrorKind forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return USER; - case 2: return SYSTEM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ErrorKind> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ErrorKind findValueByNumber(int number) { - return ErrorKind.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Execution.ExecutionError.getDescriptor().getEnumTypes().get(0); - } - - private static final ErrorKind[] VALUES = values(); - - public static ErrorKind 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 ErrorKind(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ExecutionError.ErrorKind) - } - - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** - *
-     * Error code indicates a grouping of a type of error.
-     * More Info: <Link>
-     * 
- * - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - 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(); - code_ = s; - return s; - } - } - /** - *
-     * Error code indicates a grouping of a type of error.
-     * More Info: <Link>
-     * 
- * - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - *
-     * Detailed description of the error - including stack trace.
-     * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - 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(); - message_ = s; - return s; - } - } - /** - *
-     * Detailed description of the error - including stack trace.
-     * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object errorUri_; - /** - *
-     * Full error contents accessible via a URI
-     * 
- * - * string error_uri = 3; - */ - public java.lang.String getErrorUri() { - java.lang.Object ref = errorUri_; - 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(); - errorUri_ = s; - return s; - } - } - /** - *
-     * Full error contents accessible via a URI
-     * 
- * - * string error_uri = 3; - */ - public com.google.protobuf.ByteString - getErrorUriBytes() { - java.lang.Object ref = errorUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - errorUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KIND_FIELD_NUMBER = 4; - private int kind_; - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public int getKindValue() { - return kind_; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_); - return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; - } - - 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 (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - if (!getErrorUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorUri_); - } - if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { - output.writeEnum(4, kind_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - if (!getErrorUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorUri_); - } - if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, kind_); - } - 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 flyteidl.core.Execution.ExecutionError)) { - return super.equals(obj); - } - flyteidl.core.Execution.ExecutionError other = (flyteidl.core.Execution.ExecutionError) obj; - - if (!getCode() - .equals(other.getCode())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getErrorUri() - .equals(other.getErrorUri())) return false; - if (kind_ != other.kind_) 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) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (37 * hash) + ERROR_URI_FIELD_NUMBER; - hash = (53 * hash) + getErrorUri().hashCode(); - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + kind_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.ExecutionError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.ExecutionError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.ExecutionError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.ExecutionError parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.ExecutionError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.ExecutionError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.ExecutionError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.ExecutionError 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 flyteidl.core.Execution.ExecutionError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.ExecutionError 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 flyteidl.core.Execution.ExecutionError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.ExecutionError 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(flyteidl.core.Execution.ExecutionError 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; - } - /** - *
-     * Represents the error message from the execution.
-     * 
- * - * Protobuf type {@code flyteidl.core.ExecutionError} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ExecutionError) - flyteidl.core.Execution.ExecutionErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); - } - - // Construct using flyteidl.core.Execution.ExecutionError.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(); - code_ = ""; - - message_ = ""; - - errorUri_ = ""; - - kind_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() { - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.ExecutionError build() { - flyteidl.core.Execution.ExecutionError result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.ExecutionError buildPartial() { - flyteidl.core.Execution.ExecutionError result = new flyteidl.core.Execution.ExecutionError(this); - result.code_ = code_; - result.message_ = message_; - result.errorUri_ = errorUri_; - result.kind_ = kind_; - 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 flyteidl.core.Execution.ExecutionError) { - return mergeFrom((flyteidl.core.Execution.ExecutionError)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.ExecutionError other) { - if (other == flyteidl.core.Execution.ExecutionError.getDefaultInstance()) return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (!other.getErrorUri().isEmpty()) { - errorUri_ = other.errorUri_; - onChanged(); - } - if (other.kind_ != 0) { - setKindValue(other.getKindValue()); - } - 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 { - flyteidl.core.Execution.ExecutionError parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.ExecutionError) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object code_ = ""; - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private java.lang.Object errorUri_ = ""; - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public java.lang.String getErrorUri() { - java.lang.Object ref = errorUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errorUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public com.google.protobuf.ByteString - getErrorUriBytes() { - java.lang.Object ref = errorUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - errorUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public Builder setErrorUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - errorUri_ = value; - onChanged(); - return this; - } - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public Builder clearErrorUri() { - - errorUri_ = getDefaultInstance().getErrorUri(); - onChanged(); - return this; - } - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public Builder setErrorUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - errorUri_ = value; - onChanged(); - return this; - } - - private int kind_ = 0; - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public int getKindValue() { - return kind_; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public Builder setKindValue(int value) { - kind_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_); - return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public Builder setKind(flyteidl.core.Execution.ExecutionError.ErrorKind value) { - if (value == null) { - throw new NullPointerException(); - } - - kind_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public Builder clearKind() { - - kind_ = 0; - 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:flyteidl.core.ExecutionError) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionError) - private static final flyteidl.core.Execution.ExecutionError DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.ExecutionError(); - } - - public static flyteidl.core.Execution.ExecutionError getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionError(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 flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskLogOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskLog) - com.google.protobuf.MessageOrBuilder { - - /** - * string uri = 1; - */ - java.lang.String getUri(); - /** - * string uri = 1; - */ - com.google.protobuf.ByteString - getUriBytes(); - - /** - * string name = 2; - */ - java.lang.String getName(); - /** - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - int getMessageFormatValue(); - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat(); - - /** - * .google.protobuf.Duration ttl = 4; - */ - boolean hasTtl(); - /** - * .google.protobuf.Duration ttl = 4; - */ - com.google.protobuf.Duration getTtl(); - /** - * .google.protobuf.Duration ttl = 4; - */ - com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); - } - /** - *
-   * Log information for the task that is specific to a log sink
-   * When our log story is flushed out, we may have more metadata here like log link expiry
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskLog} - */ - public static final class TaskLog extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskLog) - TaskLogOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskLog.newBuilder() to construct. - private TaskLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskLog() { - uri_ = ""; - name_ = ""; - messageFormat_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskLog( - 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(); - - uri_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - messageFormat_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (ttl_ != null) { - subBuilder = ttl_.toBuilder(); - } - ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ttl_); - ttl_ = 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 flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.TaskLog.MessageFormat} - */ - public enum MessageFormat - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * CSV = 1; - */ - CSV(1), - /** - * JSON = 2; - */ - JSON(2), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * CSV = 1; - */ - public static final int CSV_VALUE = 1; - /** - * JSON = 2; - */ - public static final int JSON_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MessageFormat valueOf(int value) { - return forNumber(value); - } - - public static MessageFormat forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return CSV; - case 2: return JSON; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MessageFormat> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MessageFormat findValueByNumber(int number) { - return MessageFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Execution.TaskLog.getDescriptor().getEnumTypes().get(0); - } - - private static final MessageFormat[] VALUES = values(); - - public static MessageFormat 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 MessageFormat(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskLog.MessageFormat) - } - - public static final int URI_FIELD_NUMBER = 1; - private volatile java.lang.Object uri_; - /** - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - 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(); - uri_ = s; - return s; - } - } - /** - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * string name = 2; - */ - 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; - } - } - /** - * string name = 2; - */ - 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 MESSAGE_FORMAT_FIELD_NUMBER = 3; - private int messageFormat_; - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public int getMessageFormatValue() { - return messageFormat_; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); - return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; - } - - public static final int TTL_FIELD_NUMBER = 4; - private com.google.protobuf.Duration ttl_; - /** - * .google.protobuf.Duration ttl = 4; - */ - public boolean hasTtl() { - return ttl_ != null; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.Duration getTtl() { - return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { - return getTtl(); - } - - 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 (!getUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { - output.writeEnum(3, messageFormat_); - } - if (ttl_ != null) { - output.writeMessage(4, getTtl()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, messageFormat_); - } - if (ttl_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTtl()); - } - 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 flyteidl.core.Execution.TaskLog)) { - return super.equals(obj); - } - flyteidl.core.Execution.TaskLog other = (flyteidl.core.Execution.TaskLog) obj; - - if (!getUri() - .equals(other.getUri())) return false; - if (!getName() - .equals(other.getName())) return false; - if (messageFormat_ != other.messageFormat_) return false; - if (hasTtl() != other.hasTtl()) return false; - if (hasTtl()) { - if (!getTtl() - .equals(other.getTtl())) 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) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + MESSAGE_FORMAT_FIELD_NUMBER; - hash = (53 * hash) + messageFormat_; - if (hasTtl()) { - hash = (37 * hash) + TTL_FIELD_NUMBER; - hash = (53 * hash) + getTtl().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.TaskLog parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskLog parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskLog parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskLog parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskLog parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskLog parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskLog parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskLog 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 flyteidl.core.Execution.TaskLog parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskLog 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 flyteidl.core.Execution.TaskLog parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskLog 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(flyteidl.core.Execution.TaskLog 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; - } - /** - *
-     * Log information for the task that is specific to a log sink
-     * When our log story is flushed out, we may have more metadata here like log link expiry
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskLog} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskLog) - flyteidl.core.Execution.TaskLogOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); - } - - // Construct using flyteidl.core.Execution.TaskLog.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(); - uri_ = ""; - - name_ = ""; - - messageFormat_ = 0; - - if (ttlBuilder_ == null) { - ttl_ = null; - } else { - ttl_ = null; - ttlBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.TaskLog getDefaultInstanceForType() { - return flyteidl.core.Execution.TaskLog.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.TaskLog build() { - flyteidl.core.Execution.TaskLog result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.TaskLog buildPartial() { - flyteidl.core.Execution.TaskLog result = new flyteidl.core.Execution.TaskLog(this); - result.uri_ = uri_; - result.name_ = name_; - result.messageFormat_ = messageFormat_; - if (ttlBuilder_ == null) { - result.ttl_ = ttl_; - } else { - result.ttl_ = ttlBuilder_.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 flyteidl.core.Execution.TaskLog) { - return mergeFrom((flyteidl.core.Execution.TaskLog)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.TaskLog other) { - if (other == flyteidl.core.Execution.TaskLog.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.messageFormat_ != 0) { - setMessageFormatValue(other.getMessageFormatValue()); - } - if (other.hasTtl()) { - mergeTtl(other.getTtl()); - } - 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 { - flyteidl.core.Execution.TaskLog parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.TaskLog) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object uri_ = ""; - /** - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uri = 1; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * string uri = 1; - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * string uri = 1; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 2; - */ - 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; - } - } - /** - * string name = 2; - */ - 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; - } - } - /** - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int messageFormat_ = 0; - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public int getMessageFormatValue() { - return messageFormat_; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public Builder setMessageFormatValue(int value) { - messageFormat_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); - return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public Builder setMessageFormat(flyteidl.core.Execution.TaskLog.MessageFormat value) { - if (value == null) { - throw new NullPointerException(); - } - - messageFormat_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public Builder clearMessageFormat() { - - messageFormat_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Duration ttl_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; - /** - * .google.protobuf.Duration ttl = 4; - */ - public boolean hasTtl() { - return ttlBuilder_ != null || ttl_ != null; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.Duration getTtl() { - if (ttlBuilder_ == null) { - return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; - } else { - return ttlBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public Builder setTtl(com.google.protobuf.Duration value) { - if (ttlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ttl_ = value; - onChanged(); - } else { - ttlBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public Builder setTtl( - com.google.protobuf.Duration.Builder builderForValue) { - if (ttlBuilder_ == null) { - ttl_ = builderForValue.build(); - onChanged(); - } else { - ttlBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public Builder mergeTtl(com.google.protobuf.Duration value) { - if (ttlBuilder_ == null) { - if (ttl_ != null) { - ttl_ = - com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial(); - } else { - ttl_ = value; - } - onChanged(); - } else { - ttlBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public Builder clearTtl() { - if (ttlBuilder_ == null) { - ttl_ = null; - onChanged(); - } else { - ttl_ = null; - ttlBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.Duration.Builder getTtlBuilder() { - - onChanged(); - return getTtlFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { - if (ttlBuilder_ != null) { - return ttlBuilder_.getMessageOrBuilder(); - } else { - return ttl_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : ttl_; - } - } - /** - * .google.protobuf.Duration ttl = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getTtlFieldBuilder() { - if (ttlBuilder_ == null) { - ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTtl(), - getParentForChildren(), - isClean()); - ttl_ = null; - } - return ttlBuilder_; - } - @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:flyteidl.core.TaskLog) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskLog) - private static final flyteidl.core.Execution.TaskLog DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskLog(); - } - - public static flyteidl.core.Execution.TaskLog getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskLog parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskLog(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 flyteidl.core.Execution.TaskLog getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QualityOfServiceSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.QualityOfServiceSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - boolean hasQueueingBudget(); - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - com.google.protobuf.Duration getQueueingBudget(); - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder(); - } - /** - *
-   * Represents customized execution run-time attributes.
-   * 
- * - * Protobuf type {@code flyteidl.core.QualityOfServiceSpec} - */ - public static final class QualityOfServiceSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.QualityOfServiceSpec) - QualityOfServiceSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use QualityOfServiceSpec.newBuilder() to construct. - private QualityOfServiceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QualityOfServiceSpec() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QualityOfServiceSpec( - 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.Duration.Builder subBuilder = null; - if (queueingBudget_ != null) { - subBuilder = queueingBudget_.toBuilder(); - } - queueingBudget_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queueingBudget_); - queueingBudget_ = 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 flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.QualityOfServiceSpec.class, flyteidl.core.Execution.QualityOfServiceSpec.Builder.class); - } - - public static final int QUEUEING_BUDGET_FIELD_NUMBER = 1; - private com.google.protobuf.Duration queueingBudget_; - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public boolean hasQueueingBudget() { - return queueingBudget_ != null; - } - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.Duration getQueueingBudget() { - return queueingBudget_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; - } - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder() { - return getQueueingBudget(); - } - - 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 (queueingBudget_ != null) { - output.writeMessage(1, getQueueingBudget()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queueingBudget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getQueueingBudget()); - } - 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 flyteidl.core.Execution.QualityOfServiceSpec)) { - return super.equals(obj); - } - flyteidl.core.Execution.QualityOfServiceSpec other = (flyteidl.core.Execution.QualityOfServiceSpec) obj; - - if (hasQueueingBudget() != other.hasQueueingBudget()) return false; - if (hasQueueingBudget()) { - if (!getQueueingBudget() - .equals(other.getQueueingBudget())) 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 (hasQueueingBudget()) { - hash = (37 * hash) + QUEUEING_BUDGET_FIELD_NUMBER; - hash = (53 * hash) + getQueueingBudget().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfServiceSpec 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 flyteidl.core.Execution.QualityOfServiceSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfServiceSpec 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 flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfServiceSpec 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(flyteidl.core.Execution.QualityOfServiceSpec 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; - } - /** - *
-     * Represents customized execution run-time attributes.
-     * 
- * - * Protobuf type {@code flyteidl.core.QualityOfServiceSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.QualityOfServiceSpec) - flyteidl.core.Execution.QualityOfServiceSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.QualityOfServiceSpec.class, flyteidl.core.Execution.QualityOfServiceSpec.Builder.class); - } - - // Construct using flyteidl.core.Execution.QualityOfServiceSpec.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 (queueingBudgetBuilder_ == null) { - queueingBudget_ = null; - } else { - queueingBudget_ = null; - queueingBudgetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstanceForType() { - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfServiceSpec build() { - flyteidl.core.Execution.QualityOfServiceSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfServiceSpec buildPartial() { - flyteidl.core.Execution.QualityOfServiceSpec result = new flyteidl.core.Execution.QualityOfServiceSpec(this); - if (queueingBudgetBuilder_ == null) { - result.queueingBudget_ = queueingBudget_; - } else { - result.queueingBudget_ = queueingBudgetBuilder_.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 flyteidl.core.Execution.QualityOfServiceSpec) { - return mergeFrom((flyteidl.core.Execution.QualityOfServiceSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.QualityOfServiceSpec other) { - if (other == flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance()) return this; - if (other.hasQueueingBudget()) { - mergeQueueingBudget(other.getQueueingBudget()); - } - 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 { - flyteidl.core.Execution.QualityOfServiceSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.QualityOfServiceSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Duration queueingBudget_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> queueingBudgetBuilder_; - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public boolean hasQueueingBudget() { - return queueingBudgetBuilder_ != null || queueingBudget_ != null; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.Duration getQueueingBudget() { - if (queueingBudgetBuilder_ == null) { - return queueingBudget_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; - } else { - return queueingBudgetBuilder_.getMessage(); - } - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public Builder setQueueingBudget(com.google.protobuf.Duration value) { - if (queueingBudgetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queueingBudget_ = value; - onChanged(); - } else { - queueingBudgetBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public Builder setQueueingBudget( - com.google.protobuf.Duration.Builder builderForValue) { - if (queueingBudgetBuilder_ == null) { - queueingBudget_ = builderForValue.build(); - onChanged(); - } else { - queueingBudgetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public Builder mergeQueueingBudget(com.google.protobuf.Duration value) { - if (queueingBudgetBuilder_ == null) { - if (queueingBudget_ != null) { - queueingBudget_ = - com.google.protobuf.Duration.newBuilder(queueingBudget_).mergeFrom(value).buildPartial(); - } else { - queueingBudget_ = value; - } - onChanged(); - } else { - queueingBudgetBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public Builder clearQueueingBudget() { - if (queueingBudgetBuilder_ == null) { - queueingBudget_ = null; - onChanged(); - } else { - queueingBudget_ = null; - queueingBudgetBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.Duration.Builder getQueueingBudgetBuilder() { - - onChanged(); - return getQueueingBudgetFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder() { - if (queueingBudgetBuilder_ != null) { - return queueingBudgetBuilder_.getMessageOrBuilder(); - } else { - return queueingBudget_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; - } - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getQueueingBudgetFieldBuilder() { - if (queueingBudgetBuilder_ == null) { - queueingBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getQueueingBudget(), - getParentForChildren(), - isClean()); - queueingBudget_ = null; - } - return queueingBudgetBuilder_; - } - @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:flyteidl.core.QualityOfServiceSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfServiceSpec) - private static final flyteidl.core.Execution.QualityOfServiceSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.QualityOfServiceSpec(); - } - - public static flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QualityOfServiceSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QualityOfServiceSpec(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 flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QualityOfServiceOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.QualityOfService) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - int getTierValue(); - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - flyteidl.core.Execution.QualityOfService.Tier getTier(); - - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - boolean hasSpec(); - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - flyteidl.core.Execution.QualityOfServiceSpec getSpec(); - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder(); - - public flyteidl.core.Execution.QualityOfService.DesignationCase getDesignationCase(); - } - /** - *
-   * Indicates the priority of an execution.
-   * 
- * - * Protobuf type {@code flyteidl.core.QualityOfService} - */ - public static final class QualityOfService extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.QualityOfService) - QualityOfServiceOrBuilder { - private static final long serialVersionUID = 0L; - // Use QualityOfService.newBuilder() to construct. - private QualityOfService(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QualityOfService() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QualityOfService( - 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 8: { - int rawValue = input.readEnum(); - designationCase_ = 1; - designation_ = rawValue; - break; - } - case 18: { - flyteidl.core.Execution.QualityOfServiceSpec.Builder subBuilder = null; - if (designationCase_ == 2) { - subBuilder = ((flyteidl.core.Execution.QualityOfServiceSpec) designation_).toBuilder(); - } - designation_ = - input.readMessage(flyteidl.core.Execution.QualityOfServiceSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.QualityOfServiceSpec) designation_); - designation_ = subBuilder.buildPartial(); - } - designationCase_ = 2; - 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 flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.QualityOfService.class, flyteidl.core.Execution.QualityOfService.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.QualityOfService.Tier} - */ - public enum Tier - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Default: no quality of service specified.
-       * 
- * - * UNDEFINED = 0; - */ - UNDEFINED(0), - /** - * HIGH = 1; - */ - HIGH(1), - /** - * MEDIUM = 2; - */ - MEDIUM(2), - /** - * LOW = 3; - */ - LOW(3), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Default: no quality of service specified.
-       * 
- * - * UNDEFINED = 0; - */ - public static final int UNDEFINED_VALUE = 0; - /** - * HIGH = 1; - */ - public static final int HIGH_VALUE = 1; - /** - * MEDIUM = 2; - */ - public static final int MEDIUM_VALUE = 2; - /** - * LOW = 3; - */ - public static final int LOW_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Tier valueOf(int value) { - return forNumber(value); - } - - public static Tier forNumber(int value) { - switch (value) { - case 0: return UNDEFINED; - case 1: return HIGH; - case 2: return MEDIUM; - case 3: return LOW; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Tier> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tier findValueByNumber(int number) { - return Tier.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Execution.QualityOfService.getDescriptor().getEnumTypes().get(0); - } - - private static final Tier[] VALUES = values(); - - public static Tier 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 Tier(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.QualityOfService.Tier) - } - - private int designationCase_ = 0; - private java.lang.Object designation_; - public enum DesignationCase - implements com.google.protobuf.Internal.EnumLite { - TIER(1), - SPEC(2), - DESIGNATION_NOT_SET(0); - private final int value; - private DesignationCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DesignationCase valueOf(int value) { - return forNumber(value); - } - - public static DesignationCase forNumber(int value) { - switch (value) { - case 1: return TIER; - case 2: return SPEC; - case 0: return DESIGNATION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DesignationCase - getDesignationCase() { - return DesignationCase.forNumber( - designationCase_); - } - - public static final int TIER_FIELD_NUMBER = 1; - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public int getTierValue() { - if (designationCase_ == 1) { - return (java.lang.Integer) designation_; - } - return 0; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public flyteidl.core.Execution.QualityOfService.Tier getTier() { - if (designationCase_ == 1) { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.QualityOfService.Tier result = flyteidl.core.Execution.QualityOfService.Tier.valueOf( - (java.lang.Integer) designation_); - return result == null ? flyteidl.core.Execution.QualityOfService.Tier.UNRECOGNIZED : result; - } - return flyteidl.core.Execution.QualityOfService.Tier.UNDEFINED; - } - - public static final int SPEC_FIELD_NUMBER = 2; - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public boolean hasSpec() { - return designationCase_ == 2; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpec getSpec() { - if (designationCase_ == 2) { - return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder() { - if (designationCase_ == 2) { - return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (designationCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) designation_)); - } - if (designationCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Execution.QualityOfServiceSpec) designation_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (designationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, ((java.lang.Integer) designation_)); - } - if (designationCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Execution.QualityOfServiceSpec) designation_); - } - 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 flyteidl.core.Execution.QualityOfService)) { - return super.equals(obj); - } - flyteidl.core.Execution.QualityOfService other = (flyteidl.core.Execution.QualityOfService) obj; - - if (!getDesignationCase().equals(other.getDesignationCase())) return false; - switch (designationCase_) { - case 1: - if (getTierValue() - != other.getTierValue()) return false; - break; - case 2: - if (!getSpec() - .equals(other.getSpec())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (designationCase_) { - case 1: - hash = (37 * hash) + TIER_FIELD_NUMBER; - hash = (53 * hash) + getTierValue(); - break; - case 2: - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.QualityOfService parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfService parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfService parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfService parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfService parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfService parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfService parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfService 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 flyteidl.core.Execution.QualityOfService parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfService 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 flyteidl.core.Execution.QualityOfService parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfService 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(flyteidl.core.Execution.QualityOfService 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; - } - /** - *
-     * Indicates the priority of an execution.
-     * 
- * - * Protobuf type {@code flyteidl.core.QualityOfService} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.QualityOfService) - flyteidl.core.Execution.QualityOfServiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.QualityOfService.class, flyteidl.core.Execution.QualityOfService.Builder.class); - } - - // Construct using flyteidl.core.Execution.QualityOfService.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(); - designationCase_ = 0; - designation_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfService getDefaultInstanceForType() { - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfService build() { - flyteidl.core.Execution.QualityOfService result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfService buildPartial() { - flyteidl.core.Execution.QualityOfService result = new flyteidl.core.Execution.QualityOfService(this); - if (designationCase_ == 1) { - result.designation_ = designation_; - } - if (designationCase_ == 2) { - if (specBuilder_ == null) { - result.designation_ = designation_; - } else { - result.designation_ = specBuilder_.build(); - } - } - result.designationCase_ = designationCase_; - 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 flyteidl.core.Execution.QualityOfService) { - return mergeFrom((flyteidl.core.Execution.QualityOfService)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.QualityOfService other) { - if (other == flyteidl.core.Execution.QualityOfService.getDefaultInstance()) return this; - switch (other.getDesignationCase()) { - case TIER: { - setTierValue(other.getTierValue()); - break; - } - case SPEC: { - mergeSpec(other.getSpec()); - break; - } - case DESIGNATION_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 { - flyteidl.core.Execution.QualityOfService parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.QualityOfService) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int designationCase_ = 0; - private java.lang.Object designation_; - public DesignationCase - getDesignationCase() { - return DesignationCase.forNumber( - designationCase_); - } - - public Builder clearDesignation() { - designationCase_ = 0; - designation_ = null; - onChanged(); - return this; - } - - - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public int getTierValue() { - if (designationCase_ == 1) { - return ((java.lang.Integer) designation_).intValue(); - } - return 0; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public Builder setTierValue(int value) { - designationCase_ = 1; - designation_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public flyteidl.core.Execution.QualityOfService.Tier getTier() { - if (designationCase_ == 1) { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.QualityOfService.Tier result = flyteidl.core.Execution.QualityOfService.Tier.valueOf( - (java.lang.Integer) designation_); - return result == null ? flyteidl.core.Execution.QualityOfService.Tier.UNRECOGNIZED : result; - } - return flyteidl.core.Execution.QualityOfService.Tier.UNDEFINED; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public Builder setTier(flyteidl.core.Execution.QualityOfService.Tier value) { - if (value == null) { - throw new NullPointerException(); - } - designationCase_ = 1; - designation_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public Builder clearTier() { - if (designationCase_ == 1) { - designationCase_ = 0; - designation_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder> specBuilder_; - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public boolean hasSpec() { - return designationCase_ == 2; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpec getSpec() { - if (specBuilder_ == null) { - if (designationCase_ == 2) { - return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } else { - if (designationCase_ == 2) { - return specBuilder_.getMessage(); - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public Builder setSpec(flyteidl.core.Execution.QualityOfServiceSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - designation_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - designationCase_ = 2; - return this; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public Builder setSpec( - flyteidl.core.Execution.QualityOfServiceSpec.Builder builderForValue) { - if (specBuilder_ == null) { - designation_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - designationCase_ = 2; - return this; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.core.Execution.QualityOfServiceSpec value) { - if (specBuilder_ == null) { - if (designationCase_ == 2 && - designation_ != flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance()) { - designation_ = flyteidl.core.Execution.QualityOfServiceSpec.newBuilder((flyteidl.core.Execution.QualityOfServiceSpec) designation_) - .mergeFrom(value).buildPartial(); - } else { - designation_ = value; - } - onChanged(); - } else { - if (designationCase_ == 2) { - specBuilder_.mergeFrom(value); - } - specBuilder_.setMessage(value); - } - designationCase_ = 2; - return this; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - if (designationCase_ == 2) { - designationCase_ = 0; - designation_ = null; - onChanged(); - } - } else { - if (designationCase_ == 2) { - designationCase_ = 0; - designation_ = null; - } - specBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpec.Builder getSpecBuilder() { - return getSpecFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder() { - if ((designationCase_ == 2) && (specBuilder_ != null)) { - return specBuilder_.getMessageOrBuilder(); - } else { - if (designationCase_ == 2) { - return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - if (!(designationCase_ == 2)) { - designation_ = flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder>( - (flyteidl.core.Execution.QualityOfServiceSpec) designation_, - getParentForChildren(), - isClean()); - designation_ = null; - } - designationCase_ = 2; - onChanged();; - return specBuilder_; - } - @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:flyteidl.core.QualityOfService) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfService) - private static final flyteidl.core.Execution.QualityOfService DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.QualityOfService(); - } - - public static flyteidl.core.Execution.QualityOfService getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QualityOfService parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QualityOfService(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 flyteidl.core.Execution.QualityOfService getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_NodeExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_NodeExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ExecutionError_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ExecutionError_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskLog_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskLog_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_QualityOfService_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_QualityOfService_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\035flyteidl/core/execution.proto\022\rflyteid" + - "l.core\032\036google/protobuf/duration.proto\"\231" + - "\001\n\021WorkflowExecution\"\203\001\n\005Phase\022\r\n\tUNDEFI" + - "NED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\016\n\nSUCCEE" + - "DING\020\003\022\r\n\tSUCCEEDED\020\004\022\013\n\007FAILING\020\005\022\n\n\006FA" + - "ILED\020\006\022\013\n\007ABORTED\020\007\022\r\n\tTIMED_OUT\020\010\"\222\001\n\rN" + - "odeExecution\"\200\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n" + - "\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n" + - "\007FAILING\020\004\022\n\n\006FAILED\020\005\022\013\n\007ABORTED\020\006\022\013\n\007S" + - "KIPPED\020\007\022\r\n\tTIMED_OUT\020\010\"\226\001\n\rTaskExecutio" + - "n\"\204\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n\006QUEUED\020\001\022\013" + - "\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n\007ABORTED\020\004\022" + - "\n\n\006FAILED\020\005\022\020\n\014INITIALIZING\020\006\022\031\n\025WAITING" + - "_FOR_RESOURCES\020\007\"\251\001\n\016ExecutionError\022\014\n\004c" + - "ode\030\001 \001(\t\022\017\n\007message\030\002 \001(\t\022\021\n\terror_uri\030" + - "\003 \001(\t\0225\n\004kind\030\004 \001(\0162\'.flyteidl.core.Exec" + - "utionError.ErrorKind\".\n\tErrorKind\022\013\n\007UNK" + - "NOWN\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\"\273\001\n\007TaskLog" + - "\022\013\n\003uri\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022<\n\016message_f" + - "ormat\030\003 \001(\0162$.flyteidl.core.TaskLog.Mess" + - "ageFormat\022&\n\003ttl\030\004 \001(\0132\031.google.protobuf" + - ".Duration\"/\n\rMessageFormat\022\013\n\007UNKNOWN\020\000\022" + - "\007\n\003CSV\020\001\022\010\n\004JSON\020\002\"J\n\024QualityOfServiceSp" + - "ec\0222\n\017queueing_budget\030\001 \001(\0132\031.google.pro" + - "tobuf.Duration\"\302\001\n\020QualityOfService\0224\n\004t" + - "ier\030\001 \001(\0162$.flyteidl.core.QualityOfServi" + - "ce.TierH\000\0223\n\004spec\030\002 \001(\0132#.flyteidl.core." + - "QualityOfServiceSpecH\000\"4\n\004Tier\022\r\n\tUNDEFI" + - "NED\020\000\022\010\n\004HIGH\020\001\022\n\n\006MEDIUM\020\002\022\007\n\003LOW\020\003B\r\n\013" + - "designationB2Z0github.com/lyft/flyteidl/" + - "gen/pb-go/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_WorkflowExecution_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowExecution_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_core_NodeExecution_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_NodeExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_NodeExecution_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_core_TaskExecution_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_TaskExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TaskExecution_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_core_ExecutionError_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_ExecutionError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ExecutionError_descriptor, - new java.lang.String[] { "Code", "Message", "ErrorUri", "Kind", }); - internal_static_flyteidl_core_TaskLog_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_core_TaskLog_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TaskLog_descriptor, - new java.lang.String[] { "Uri", "Name", "MessageFormat", "Ttl", }); - internal_static_flyteidl_core_QualityOfServiceSpec_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_QualityOfServiceSpec_descriptor, - new java.lang.String[] { "QueueingBudget", }); - internal_static_flyteidl_core_QualityOfService_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_core_QualityOfService_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_QualityOfService_descriptor, - new java.lang.String[] { "Tier", "Spec", "Designation", }); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/IdentifierOuterClass.java b/gen/pb-java/flyteidl/core/IdentifierOuterClass.java deleted file mode 100644 index 43d9f5e3b..000000000 --- a/gen/pb-java/flyteidl/core/IdentifierOuterClass.java +++ /dev/null @@ -1,4043 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/identifier.proto - -package flyteidl.core; - -public final class IdentifierOuterClass { - private IdentifierOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * Indicates a resource type within Flyte.
-   * 
- * - * Protobuf enum {@code flyteidl.core.ResourceType} - */ - public enum ResourceType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * TASK = 1; - */ - TASK(1), - /** - * WORKFLOW = 2; - */ - WORKFLOW(2), - /** - * LAUNCH_PLAN = 3; - */ - LAUNCH_PLAN(3), - UNRECOGNIZED(-1), - ; - - /** - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * TASK = 1; - */ - public static final int TASK_VALUE = 1; - /** - * WORKFLOW = 2; - */ - public static final int WORKFLOW_VALUE = 2; - /** - * LAUNCH_PLAN = 3; - */ - public static final int LAUNCH_PLAN_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResourceType valueOf(int value) { - return forNumber(value); - } - - public static ResourceType forNumber(int value) { - switch (value) { - case 0: return UNSPECIFIED; - case 1: return TASK; - case 2: return WORKFLOW; - case 3: return LAUNCH_PLAN; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ResourceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResourceType findValueByNumber(int number) { - return ResourceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.IdentifierOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final ResourceType[] VALUES = values(); - - public static ResourceType 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 ResourceType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ResourceType) - } - - public interface IdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Identifier) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identifies the specific type of resource that this identifer corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - *
-     * Identifies the specific type of resource that this identifer corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 2; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 2; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 3; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 3; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * User provided value for the resource.
-     * 
- * - * string name = 4; - */ - java.lang.String getName(); - /** - *
-     * User provided value for the resource.
-     * 
- * - * string name = 4; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * Specific version of the resource.
-     * 
- * - * string version = 5; - */ - java.lang.String getVersion(); - /** - *
-     * Specific version of the resource.
-     * 
- * - * string version = 5; - */ - com.google.protobuf.ByteString - getVersionBytes(); - } - /** - *
-   * Encapsulation of fields that uniquely identifies a Flyte resource.
-   * 
- * - * Protobuf type {@code flyteidl.core.Identifier} - */ - public static final class Identifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Identifier) - IdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use Identifier.newBuilder() to construct. - private Identifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Identifier() { - resourceType_ = 0; - project_ = ""; - domain_ = ""; - name_ = ""; - version_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Identifier( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = 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 flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - *
-     * Identifies the specific type of resource that this identifer corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Identifies the specific type of resource that this identifer corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int PROJECT_FIELD_NUMBER = 2; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 2; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 2; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 3; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - *
-     * User provided value for the resource.
-     * 
- * - * string name = 4; - */ - 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; - } - } - /** - *
-     * User provided value for the resource.
-     * 
- * - * string name = 4; - */ - 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 VERSION_FIELD_NUMBER = 5; - private volatile java.lang.Object version_; - /** - *
-     * Specific version of the resource.
-     * 
- * - * string version = 5; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - 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(); - version_ = s; - return s; - } - } - /** - *
-     * Specific version of the resource.
-     * 
- * - * string version = 5; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); - } - 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 flyteidl.core.IdentifierOuterClass.Identifier)) { - return super.equals(obj); - } - flyteidl.core.IdentifierOuterClass.Identifier other = (flyteidl.core.IdentifierOuterClass.Identifier) obj; - - if (resourceType_ != other.resourceType_) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getVersion() - .equals(other.getVersion())) 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) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.Identifier 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 flyteidl.core.IdentifierOuterClass.Identifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.Identifier 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 flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.Identifier 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(flyteidl.core.IdentifierOuterClass.Identifier 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; - } - /** - *
-     * Encapsulation of fields that uniquely identifies a Flyte resource.
-     * 
- * - * Protobuf type {@code flyteidl.core.Identifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Identifier) - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); - } - - // Construct using flyteidl.core.IdentifierOuterClass.Identifier.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(); - resourceType_ = 0; - - project_ = ""; - - domain_ = ""; - - name_ = ""; - - version_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.Identifier build() { - flyteidl.core.IdentifierOuterClass.Identifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.Identifier buildPartial() { - flyteidl.core.IdentifierOuterClass.Identifier result = new flyteidl.core.IdentifierOuterClass.Identifier(this); - result.resourceType_ = resourceType_; - result.project_ = project_; - result.domain_ = domain_; - result.name_ = name_; - result.version_ = version_; - 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 flyteidl.core.IdentifierOuterClass.Identifier) { - return mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.Identifier other) { - if (other == flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - 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 { - flyteidl.core.IdentifierOuterClass.Identifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.IdentifierOuterClass.Identifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Identifies the specific type of resource that this identifer corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Identifies the specific type of resource that this identifer corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Identifies the specific type of resource that this identifer corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - *
-       * Identifies the specific type of resource that this identifer corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Identifies the specific type of resource that this identifer corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - 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; - } - } - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - 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; - } - } - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - 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 version_ = ""; - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = 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:flyteidl.core.Identifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Identifier) - private static final flyteidl.core.IdentifierOuterClass.Identifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.Identifier(); - } - - public static flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Identifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Identifier(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 flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecutionIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * User or system provided value for the resource.
-     * 
- * - * string name = 4; - */ - java.lang.String getName(); - /** - *
-     * User or system provided value for the resource.
-     * 
- * - * string name = 4; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - *
-   * Encapsulation of fields that uniquely identifies a Flyte workflow execution
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} - */ - public static final class WorkflowExecutionIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecutionIdentifier) - WorkflowExecutionIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionIdentifier.newBuilder() to construct. - private WorkflowExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionIdentifier() { - project_ = ""; - domain_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionIdentifier( - 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(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - 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(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - *
-     * User or system provided value for the resource.
-     * 
- * - * string name = 4; - */ - 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; - } - } - /** - *
-     * User or system provided value for the resource.
-     * 
- * - * string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier)) { - return super.equals(obj); - } - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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; - } - /** - *
-     * Encapsulation of fields that uniquely identifies a Flyte workflow execution
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecutionIdentifier) - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); - } - - // Construct using flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.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(); - project_ = ""; - - domain_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { - return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier build() { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier buildPartial() { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(this); - result.project_ = project_; - result.domain_ = domain_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) { - return mergeFrom((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other) { - if (other == flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - 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; - } - } - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - 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; - } - } - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowExecutionIdentifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecutionIdentifier) - private static final flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(); - } - - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionIdentifier(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 flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecutionIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - * string node_id = 1; - */ - java.lang.String getNodeId(); - /** - * string node_id = 1; - */ - com.google.protobuf.ByteString - getNodeIdBytes(); - - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - boolean hasExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - } - /** - *
-   * Encapsulation of fields that identify a Flyte node execution entity.
-   * 
- * - * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} - */ - public static final class NodeExecutionIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecutionIdentifier) - NodeExecutionIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionIdentifier.newBuilder() to construct. - private NodeExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionIdentifier() { - nodeId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionIdentifier( - 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(); - - nodeId_ = s; - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = 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 flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); - } - - public static final int NODE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object nodeId_; - /** - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - 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(); - nodeId_ = s; - return s; - } - } - /** - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXECUTION_ID_FIELD_NUMBER = 2; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - 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 (!getNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); - } - if (executionId_ != null) { - output.writeMessage(2, getExecutionId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); - } - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExecutionId()); - } - 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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier)) { - return super.equals(obj); - } - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) obj; - - if (!getNodeId() - .equals(other.getNodeId())) return false; - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) 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) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId().hashCode(); - if (hasExecutionId()) { - hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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; - } - /** - *
-     * Encapsulation of fields that identify a Flyte node execution entity.
-     * 
- * - * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecutionIdentifier) - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); - } - - // Construct using flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.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(); - nodeId_ = ""; - - if (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { - return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier build() { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier buildPartial() { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(this); - result.nodeId_ = nodeId_; - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) { - return mergeFrom((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other) { - if (other == flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance()) return this; - if (!other.getNodeId().isEmpty()) { - nodeId_ = other.nodeId_; - onChanged(); - } - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - 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 { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object nodeId_ = ""; - /** - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string node_id = 1; - */ - public Builder setNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeId_ = value; - onChanged(); - return this; - } - /** - * string node_id = 1; - */ - public Builder clearNodeId() { - - nodeId_ = getDefaultInstance().getNodeId(); - onChanged(); - return this; - } - /** - * string node_id = 1; - */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeId_ = value; - onChanged(); - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - @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:flyteidl.core.NodeExecutionIdentifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecutionIdentifier) - private static final flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(); - } - - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionIdentifier(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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecutionIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.Identifier task_id = 1; - */ - boolean hasTaskId(); - /** - * .flyteidl.core.Identifier task_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); - /** - * .flyteidl.core.Identifier task_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); - - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - boolean hasNodeExecutionId(); - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); - - /** - * uint32 retry_attempt = 3; - */ - int getRetryAttempt(); - } - /** - *
-   * Encapsulation of fields that identify a Flyte task execution entity.
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} - */ - public static final class TaskExecutionIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecutionIdentifier) - TaskExecutionIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionIdentifier.newBuilder() to construct. - private TaskExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionIdentifier() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionIdentifier( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (taskId_ != null) { - subBuilder = taskId_.toBuilder(); - } - taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskId_); - taskId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (nodeExecutionId_ != null) { - subBuilder = nodeExecutionId_.toBuilder(); - } - nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodeExecutionId_); - nodeExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - retryAttempt_ = input.readUInt32(); - 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 flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); - } - - public static final int TASK_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public boolean hasTaskId() { - return taskId_ != null; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - return getTaskId(); - } - - public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 2; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public boolean hasNodeExecutionId() { - return nodeExecutionId_ != null; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - return getNodeExecutionId(); - } - - public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; - private int retryAttempt_; - /** - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - - 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 (taskId_ != null) { - output.writeMessage(1, getTaskId()); - } - if (nodeExecutionId_ != null) { - output.writeMessage(2, getNodeExecutionId()); - } - if (retryAttempt_ != 0) { - output.writeUInt32(3, retryAttempt_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (taskId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTaskId()); - } - if (nodeExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getNodeExecutionId()); - } - if (retryAttempt_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, retryAttempt_); - } - 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier)) { - return super.equals(obj); - } - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) obj; - - if (hasTaskId() != other.hasTaskId()) return false; - if (hasTaskId()) { - if (!getTaskId() - .equals(other.getTaskId())) return false; - } - if (hasNodeExecutionId() != other.hasNodeExecutionId()) return false; - if (hasNodeExecutionId()) { - if (!getNodeExecutionId() - .equals(other.getNodeExecutionId())) return false; - } - if (getRetryAttempt() - != other.getRetryAttempt()) 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 (hasTaskId()) { - hash = (37 * hash) + TASK_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskId().hashCode(); - } - if (hasNodeExecutionId()) { - hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeExecutionId().hashCode(); - } - hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; - hash = (53 * hash) + getRetryAttempt(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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; - } - /** - *
-     * Encapsulation of fields that identify a Flyte task execution entity.
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecutionIdentifier) - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); - } - - // Construct using flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.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 (taskIdBuilder_ == null) { - taskId_ = null; - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = null; - } else { - nodeExecutionId_ = null; - nodeExecutionIdBuilder_ = null; - } - retryAttempt_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier build() { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier buildPartial() { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(this); - if (taskIdBuilder_ == null) { - result.taskId_ = taskId_; - } else { - result.taskId_ = taskIdBuilder_.build(); - } - if (nodeExecutionIdBuilder_ == null) { - result.nodeExecutionId_ = nodeExecutionId_; - } else { - result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); - } - result.retryAttempt_ = retryAttempt_; - 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) { - return mergeFrom((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other) { - if (other == flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance()) return this; - if (other.hasTaskId()) { - mergeTaskId(other.getTaskId()); - } - if (other.hasNodeExecutionId()) { - mergeNodeExecutionId(other.getNodeExecutionId()); - } - if (other.getRetryAttempt() != 0) { - setRetryAttempt(other.getRetryAttempt()); - } - 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 { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public boolean hasTaskId() { - return taskIdBuilder_ != null || taskId_ != null; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - if (taskIdBuilder_ == null) { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } else { - return taskIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskId_ = value; - onChanged(); - } else { - taskIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder setTaskId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (taskIdBuilder_ == null) { - taskId_ = builderForValue.build(); - onChanged(); - } else { - taskIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (taskId_ != null) { - taskId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); - } else { - taskId_ = value; - } - onChanged(); - } else { - taskIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder clearTaskId() { - if (taskIdBuilder_ == null) { - taskId_ = null; - onChanged(); - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { - - onChanged(); - return getTaskIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - if (taskIdBuilder_ != null) { - return taskIdBuilder_.getMessageOrBuilder(); - } else { - return taskId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getTaskIdFieldBuilder() { - if (taskIdBuilder_ == null) { - taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getTaskId(), - getParentForChildren(), - isClean()); - taskId_ = null; - } - return taskIdBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public boolean hasNodeExecutionId() { - return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } else { - return nodeExecutionIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeExecutionId_ = value; - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public Builder setNodeExecutionId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = builderForValue.build(); - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (nodeExecutionId_ != null) { - nodeExecutionId_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); - } else { - nodeExecutionId_ = value; - } - onChanged(); - } else { - nodeExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public Builder clearNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = null; - onChanged(); - } else { - nodeExecutionId_ = null; - nodeExecutionIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { - - onChanged(); - return getNodeExecutionIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - if (nodeExecutionIdBuilder_ != null) { - return nodeExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return nodeExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getNodeExecutionIdFieldBuilder() { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getNodeExecutionId(), - getParentForChildren(), - isClean()); - nodeExecutionId_ = null; - } - return nodeExecutionIdBuilder_; - } - - private int retryAttempt_ ; - /** - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - /** - * uint32 retry_attempt = 3; - */ - public Builder setRetryAttempt(int value) { - - retryAttempt_ = value; - onChanged(); - return this; - } - /** - * uint32 retry_attempt = 3; - */ - public Builder clearRetryAttempt() { - - retryAttempt_ = 0; - 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:flyteidl.core.TaskExecutionIdentifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecutionIdentifier) - private static final flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(); - } - - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionIdentifier(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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Identifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Identifier_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskExecutionIdentifier_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\036flyteidl/core/identifier.proto\022\rflytei" + - "dl.core\"\200\001\n\nIdentifier\0222\n\rresource_type\030" + - "\001 \001(\0162\033.flyteidl.core.ResourceType\022\017\n\007pr" + - "oject\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\014\n\004name\030\004 \001(" + - "\t\022\017\n\007version\030\005 \001(\t\"L\n\033WorkflowExecutionI" + - "dentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + - "(\t\022\014\n\004name\030\004 \001(\t\"l\n\027NodeExecutionIdentif" + - "ier\022\017\n\007node_id\030\001 \001(\t\022@\n\014execution_id\030\002 \001" + - "(\0132*.flyteidl.core.WorkflowExecutionIden" + - "tifier\"\237\001\n\027TaskExecutionIdentifier\022*\n\007ta" + - "sk_id\030\001 \001(\0132\031.flyteidl.core.Identifier\022A" + - "\n\021node_execution_id\030\002 \001(\0132&.flyteidl.cor" + - "e.NodeExecutionIdentifier\022\025\n\rretry_attem" + - "pt\030\003 \001(\r*H\n\014ResourceType\022\017\n\013UNSPECIFIED\020" + - "\000\022\010\n\004TASK\020\001\022\014\n\010WORKFLOW\020\002\022\017\n\013LAUNCH_PLAN" + - "\020\003B2Z0github.com/lyft/flyteidl/gen/pb-go" + - "/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_core_Identifier_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_Identifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Identifier_descriptor, - new java.lang.String[] { "ResourceType", "Project", "Domain", "Name", "Version", }); - internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor, - new java.lang.String[] { "Project", "Domain", "Name", }); - internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor, - new java.lang.String[] { "NodeId", "ExecutionId", }); - internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor, - new java.lang.String[] { "TaskId", "NodeExecutionId", "RetryAttempt", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Interface.java b/gen/pb-java/flyteidl/core/Interface.java deleted file mode 100644 index 386586380..000000000 --- a/gen/pb-java/flyteidl/core/Interface.java +++ /dev/null @@ -1,4503 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/interface.proto - -package flyteidl.core; - -public final class Interface { - private Interface() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface VariableOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Variable) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - boolean hasType(); - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - flyteidl.core.Types.LiteralType getType(); - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); - - /** - *
-     *+optional string describing input variable
-     * 
- * - * string description = 2; - */ - java.lang.String getDescription(); - /** - *
-     *+optional string describing input variable
-     * 
- * - * string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - } - /** - *
-   * Defines a strongly typed variable.
-   * 
- * - * Protobuf type {@code flyteidl.core.Variable} - */ - public static final class Variable extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Variable) - VariableOrBuilder { - private static final long serialVersionUID = 0L; - // Use Variable.newBuilder() to construct. - private Variable(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Variable() { - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Variable( - 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: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = 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 flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private flyteidl.core.Types.LiteralType type_; - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public boolean hasType() { - return type_ != null; - } - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralType getType() { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - *
-     *+optional string describing input variable
-     * 
- * - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - *
-     *+optional string describing input variable
-     * 
- * - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = 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 (type_ != null) { - output.writeMessage(1, getType()); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getType()); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - 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 flyteidl.core.Interface.Variable)) { - return super.equals(obj); - } - flyteidl.core.Interface.Variable other = (flyteidl.core.Interface.Variable) obj; - - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) return false; - } - if (!getDescription() - .equals(other.getDescription())) 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 (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.Variable parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Variable parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Variable parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Variable parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Variable parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Variable parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Variable parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Variable 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 flyteidl.core.Interface.Variable parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Variable 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 flyteidl.core.Interface.Variable parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Variable 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(flyteidl.core.Interface.Variable 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; - } - /** - *
-     * Defines a strongly typed variable.
-     * 
- * - * Protobuf type {@code flyteidl.core.Variable} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Variable) - flyteidl.core.Interface.VariableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); - } - - // Construct using flyteidl.core.Interface.Variable.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 (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.Variable getDefaultInstanceForType() { - return flyteidl.core.Interface.Variable.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.Variable build() { - flyteidl.core.Interface.Variable result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.Variable buildPartial() { - flyteidl.core.Interface.Variable result = new flyteidl.core.Interface.Variable(this); - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.build(); - } - result.description_ = description_; - 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 flyteidl.core.Interface.Variable) { - return mergeFrom((flyteidl.core.Interface.Variable)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.Variable other) { - if (other == flyteidl.core.Interface.Variable.getDefaultInstance()) return this; - if (other.hasType()) { - mergeType(other.getType()); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - 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 { - flyteidl.core.Interface.Variable parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.Variable) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Types.LiteralType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public Builder setType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public Builder setType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public Builder mergeType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - - private java.lang.Object description_ = ""; - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = 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:flyteidl.core.Variable) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Variable) - private static final flyteidl.core.Interface.Variable DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.Variable(); - } - - public static flyteidl.core.Interface.Variable getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Variable parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Variable(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 flyteidl.core.Interface.Variable getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface VariableMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.VariableMap) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - int getVariablesCount(); - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - boolean containsVariables( - java.lang.String key); - /** - * Use {@link #getVariablesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVariables(); - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - java.util.Map - getVariablesMap(); - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - flyteidl.core.Interface.Variable getVariablesOrDefault( - java.lang.String key, - flyteidl.core.Interface.Variable defaultValue); - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - flyteidl.core.Interface.Variable getVariablesOrThrow( - java.lang.String key); - } - /** - *
-   * A map of Variables
-   * 
- * - * Protobuf type {@code flyteidl.core.VariableMap} - */ - public static final class VariableMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.VariableMap) - VariableMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use VariableMap.newBuilder() to construct. - private VariableMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VariableMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VariableMap( - 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)) { - variables_ = com.google.protobuf.MapField.newMapField( - VariablesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - variables__ = input.readMessage( - VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - variables_.getMutableMap().put( - variables__.getKey(), variables__.getValue()); - 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 flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetVariables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); - } - - public static final int VARIABLES_FIELD_NUMBER = 1; - private static final class VariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Interface.Variable> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Interface.Variable.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Interface.Variable> variables_; - private com.google.protobuf.MapField - internalGetVariables() { - if (variables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - VariablesDefaultEntryHolder.defaultEntry); - } - return variables_; - } - - public int getVariablesCount() { - return internalGetVariables().getMap().size(); - } - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public boolean containsVariables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetVariables().getMap().containsKey(key); - } - /** - * Use {@link #getVariablesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getVariables() { - return getVariablesMap(); - } - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public java.util.Map getVariablesMap() { - return internalGetVariables().getMap(); - } - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public flyteidl.core.Interface.Variable getVariablesOrDefault( - java.lang.String key, - flyteidl.core.Interface.Variable defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public flyteidl.core.Interface.Variable getVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetVariables(), - VariablesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - variables__ = VariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, variables__); - } - 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 flyteidl.core.Interface.VariableMap)) { - return super.equals(obj); - } - flyteidl.core.Interface.VariableMap other = (flyteidl.core.Interface.VariableMap) obj; - - if (!internalGetVariables().equals( - other.internalGetVariables())) 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 (!internalGetVariables().getMap().isEmpty()) { - hash = (37 * hash) + VARIABLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetVariables().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.VariableMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.VariableMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.VariableMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.VariableMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.VariableMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.VariableMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.VariableMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.VariableMap 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 flyteidl.core.Interface.VariableMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.VariableMap 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 flyteidl.core.Interface.VariableMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.VariableMap 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(flyteidl.core.Interface.VariableMap 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 map of Variables
-     * 
- * - * Protobuf type {@code flyteidl.core.VariableMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.VariableMap) - flyteidl.core.Interface.VariableMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetVariables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableVariables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); - } - - // Construct using flyteidl.core.Interface.VariableMap.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(); - internalGetMutableVariables().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.VariableMap getDefaultInstanceForType() { - return flyteidl.core.Interface.VariableMap.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.VariableMap build() { - flyteidl.core.Interface.VariableMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.VariableMap buildPartial() { - flyteidl.core.Interface.VariableMap result = new flyteidl.core.Interface.VariableMap(this); - int from_bitField0_ = bitField0_; - result.variables_ = internalGetVariables(); - result.variables_.makeImmutable(); - 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 flyteidl.core.Interface.VariableMap) { - return mergeFrom((flyteidl.core.Interface.VariableMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.VariableMap other) { - if (other == flyteidl.core.Interface.VariableMap.getDefaultInstance()) return this; - internalGetMutableVariables().mergeFrom( - other.internalGetVariables()); - 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 { - flyteidl.core.Interface.VariableMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.VariableMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Interface.Variable> variables_; - private com.google.protobuf.MapField - internalGetVariables() { - if (variables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - VariablesDefaultEntryHolder.defaultEntry); - } - return variables_; - } - private com.google.protobuf.MapField - internalGetMutableVariables() { - onChanged();; - if (variables_ == null) { - variables_ = com.google.protobuf.MapField.newMapField( - VariablesDefaultEntryHolder.defaultEntry); - } - if (!variables_.isMutable()) { - variables_ = variables_.copy(); - } - return variables_; - } - - public int getVariablesCount() { - return internalGetVariables().getMap().size(); - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public boolean containsVariables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetVariables().getMap().containsKey(key); - } - /** - * Use {@link #getVariablesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getVariables() { - return getVariablesMap(); - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public java.util.Map getVariablesMap() { - return internalGetVariables().getMap(); - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public flyteidl.core.Interface.Variable getVariablesOrDefault( - java.lang.String key, - flyteidl.core.Interface.Variable defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public flyteidl.core.Interface.Variable getVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearVariables() { - internalGetMutableVariables().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public Builder removeVariables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableVariables().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVariables() { - return internalGetMutableVariables().getMutableMap(); - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - public Builder putVariables( - java.lang.String key, - flyteidl.core.Interface.Variable value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableVariables().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public Builder putAllVariables( - java.util.Map values) { - internalGetMutableVariables().getMutableMap() - .putAll(values); - 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:flyteidl.core.VariableMap) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.VariableMap) - private static final flyteidl.core.Interface.VariableMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.VariableMap(); - } - - public static flyteidl.core.Interface.VariableMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VariableMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VariableMap(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 flyteidl.core.Interface.VariableMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TypedInterfaceOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TypedInterface) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - boolean hasInputs(); - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - flyteidl.core.Interface.VariableMap getInputs(); - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder(); - - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - boolean hasOutputs(); - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - flyteidl.core.Interface.VariableMap getOutputs(); - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder(); - } - /** - *
-   * Defines strongly typed inputs and outputs.
-   * 
- * - * Protobuf type {@code flyteidl.core.TypedInterface} - */ - public static final class TypedInterface extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TypedInterface) - TypedInterfaceOrBuilder { - private static final long serialVersionUID = 0L; - // Use TypedInterface.newBuilder() to construct. - private TypedInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TypedInterface() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TypedInterface( - 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: { - flyteidl.core.Interface.VariableMap.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Interface.VariableMap.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = 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 flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private flyteidl.core.Interface.VariableMap inputs_; - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMap getInputs() { - return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private flyteidl.core.Interface.VariableMap outputs_; - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public boolean hasOutputs() { - return outputs_ != null; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMap getOutputs() { - return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - 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 (inputs_ != null) { - output.writeMessage(1, getInputs()); - } - if (outputs_ != null) { - output.writeMessage(2, getOutputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputs()); - } - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputs()); - } - 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 flyteidl.core.Interface.TypedInterface)) { - return super.equals(obj); - } - flyteidl.core.Interface.TypedInterface other = (flyteidl.core.Interface.TypedInterface) obj; - - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) 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 (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.TypedInterface parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.TypedInterface parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.TypedInterface parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.TypedInterface parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.TypedInterface parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.TypedInterface parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.TypedInterface parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.TypedInterface 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 flyteidl.core.Interface.TypedInterface parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.TypedInterface 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 flyteidl.core.Interface.TypedInterface parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.TypedInterface 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(flyteidl.core.Interface.TypedInterface 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; - } - /** - *
-     * Defines strongly typed inputs and outputs.
-     * 
- * - * Protobuf type {@code flyteidl.core.TypedInterface} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TypedInterface) - flyteidl.core.Interface.TypedInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); - } - - // Construct using flyteidl.core.Interface.TypedInterface.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 (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.TypedInterface getDefaultInstanceForType() { - return flyteidl.core.Interface.TypedInterface.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.TypedInterface build() { - flyteidl.core.Interface.TypedInterface result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.TypedInterface buildPartial() { - flyteidl.core.Interface.TypedInterface result = new flyteidl.core.Interface.TypedInterface(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.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 flyteidl.core.Interface.TypedInterface) { - return mergeFrom((flyteidl.core.Interface.TypedInterface)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.TypedInterface other) { - if (other == flyteidl.core.Interface.TypedInterface.getDefaultInstance()) return this; - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - 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 { - flyteidl.core.Interface.TypedInterface parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.TypedInterface) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Interface.VariableMap inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> inputsBuilder_; - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMap getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public Builder setInputs(flyteidl.core.Interface.VariableMap value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public Builder setInputs( - flyteidl.core.Interface.VariableMap.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public Builder mergeInputs(flyteidl.core.Interface.VariableMap value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.core.Interface.VariableMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMap.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; - } - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.core.Interface.VariableMap outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> outputsBuilder_; - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMap getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder setOutputs(flyteidl.core.Interface.VariableMap value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder setOutputs( - flyteidl.core.Interface.VariableMap.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder mergeOutputs(flyteidl.core.Interface.VariableMap value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.core.Interface.VariableMap.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMap.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; - } - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - @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:flyteidl.core.TypedInterface) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TypedInterface) - private static final flyteidl.core.Interface.TypedInterface DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.TypedInterface(); - } - - public static flyteidl.core.Interface.TypedInterface getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypedInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TypedInterface(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 flyteidl.core.Interface.TypedInterface getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParameterOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Parameter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - boolean hasVar(); - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - flyteidl.core.Interface.Variable getVar(); - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder(); - - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - boolean hasDefault(); - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - flyteidl.core.Literals.Literal getDefault(); - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder(); - - /** - *
-     *+optional, is this value required to be filled.
-     * 
- * - * bool required = 3; - */ - boolean getRequired(); - - public flyteidl.core.Interface.Parameter.BehaviorCase getBehaviorCase(); - } - /** - *
-   * A parameter is used as input to a launch plan and has
-   * the special ability to have a default value or mark itself as required.
-   * 
- * - * Protobuf type {@code flyteidl.core.Parameter} - */ - public static final class Parameter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Parameter) - ParameterOrBuilder { - private static final long serialVersionUID = 0L; - // Use Parameter.newBuilder() to construct. - private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Parameter() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Parameter( - 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: { - flyteidl.core.Interface.Variable.Builder subBuilder = null; - if (var_ != null) { - subBuilder = var_.toBuilder(); - } - var_ = input.readMessage(flyteidl.core.Interface.Variable.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(var_); - var_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Literals.Literal.Builder subBuilder = null; - if (behaviorCase_ == 2) { - subBuilder = ((flyteidl.core.Literals.Literal) behavior_).toBuilder(); - } - behavior_ = - input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Literal) behavior_); - behavior_ = subBuilder.buildPartial(); - } - behaviorCase_ = 2; - break; - } - case 24: { - behaviorCase_ = 3; - behavior_ = input.readBool(); - 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 flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); - } - - private int behaviorCase_ = 0; - private java.lang.Object behavior_; - public enum BehaviorCase - implements com.google.protobuf.Internal.EnumLite { - DEFAULT(2), - REQUIRED(3), - BEHAVIOR_NOT_SET(0); - private final int value; - private BehaviorCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static BehaviorCase valueOf(int value) { - return forNumber(value); - } - - public static BehaviorCase forNumber(int value) { - switch (value) { - case 2: return DEFAULT; - case 3: return REQUIRED; - case 0: return BEHAVIOR_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public BehaviorCase - getBehaviorCase() { - return BehaviorCase.forNumber( - behaviorCase_); - } - - public static final int VAR_FIELD_NUMBER = 1; - private flyteidl.core.Interface.Variable var_; - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - public boolean hasVar() { - return var_ != null; - } - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.Variable getVar() { - return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; - } - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { - return getVar(); - } - - public static final int DEFAULT_FIELD_NUMBER = 2; - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - public boolean hasDefault() { - return behaviorCase_ == 2; - } - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.Literal getDefault() { - if (behaviorCase_ == 2) { - return (flyteidl.core.Literals.Literal) behavior_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { - if (behaviorCase_ == 2) { - return (flyteidl.core.Literals.Literal) behavior_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - - public static final int REQUIRED_FIELD_NUMBER = 3; - /** - *
-     *+optional, is this value required to be filled.
-     * 
- * - * bool required = 3; - */ - public boolean getRequired() { - if (behaviorCase_ == 3) { - return (java.lang.Boolean) behavior_; - } - return false; - } - - 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 (var_ != null) { - output.writeMessage(1, getVar()); - } - if (behaviorCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Literals.Literal) behavior_); - } - if (behaviorCase_ == 3) { - output.writeBool( - 3, (boolean)((java.lang.Boolean) behavior_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (var_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVar()); - } - if (behaviorCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Literals.Literal) behavior_); - } - if (behaviorCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 3, (boolean)((java.lang.Boolean) behavior_)); - } - 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 flyteidl.core.Interface.Parameter)) { - return super.equals(obj); - } - flyteidl.core.Interface.Parameter other = (flyteidl.core.Interface.Parameter) obj; - - if (hasVar() != other.hasVar()) return false; - if (hasVar()) { - if (!getVar() - .equals(other.getVar())) return false; - } - if (!getBehaviorCase().equals(other.getBehaviorCase())) return false; - switch (behaviorCase_) { - case 2: - if (!getDefault() - .equals(other.getDefault())) return false; - break; - case 3: - if (getRequired() - != other.getRequired()) 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(); - if (hasVar()) { - hash = (37 * hash) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - } - switch (behaviorCase_) { - case 2: - hash = (37 * hash) + DEFAULT_FIELD_NUMBER; - hash = (53 * hash) + getDefault().hashCode(); - break; - case 3: - hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequired()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.Parameter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Parameter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Parameter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Parameter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Parameter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Parameter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Parameter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Parameter 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 flyteidl.core.Interface.Parameter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Parameter 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 flyteidl.core.Interface.Parameter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Parameter 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(flyteidl.core.Interface.Parameter 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 parameter is used as input to a launch plan and has
-     * the special ability to have a default value or mark itself as required.
-     * 
- * - * Protobuf type {@code flyteidl.core.Parameter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Parameter) - flyteidl.core.Interface.ParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); - } - - // Construct using flyteidl.core.Interface.Parameter.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 (varBuilder_ == null) { - var_ = null; - } else { - var_ = null; - varBuilder_ = null; - } - behaviorCase_ = 0; - behavior_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.Parameter getDefaultInstanceForType() { - return flyteidl.core.Interface.Parameter.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.Parameter build() { - flyteidl.core.Interface.Parameter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.Parameter buildPartial() { - flyteidl.core.Interface.Parameter result = new flyteidl.core.Interface.Parameter(this); - if (varBuilder_ == null) { - result.var_ = var_; - } else { - result.var_ = varBuilder_.build(); - } - if (behaviorCase_ == 2) { - if (defaultBuilder_ == null) { - result.behavior_ = behavior_; - } else { - result.behavior_ = defaultBuilder_.build(); - } - } - if (behaviorCase_ == 3) { - result.behavior_ = behavior_; - } - result.behaviorCase_ = behaviorCase_; - 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 flyteidl.core.Interface.Parameter) { - return mergeFrom((flyteidl.core.Interface.Parameter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.Parameter other) { - if (other == flyteidl.core.Interface.Parameter.getDefaultInstance()) return this; - if (other.hasVar()) { - mergeVar(other.getVar()); - } - switch (other.getBehaviorCase()) { - case DEFAULT: { - mergeDefault(other.getDefault()); - break; - } - case REQUIRED: { - setRequired(other.getRequired()); - break; - } - case BEHAVIOR_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 { - flyteidl.core.Interface.Parameter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.Parameter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int behaviorCase_ = 0; - private java.lang.Object behavior_; - public BehaviorCase - getBehaviorCase() { - return BehaviorCase.forNumber( - behaviorCase_); - } - - public Builder clearBehavior() { - behaviorCase_ = 0; - behavior_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.Interface.Variable var_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> varBuilder_; - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public boolean hasVar() { - return varBuilder_ != null || var_ != null; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.Variable getVar() { - if (varBuilder_ == null) { - return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; - } else { - return varBuilder_.getMessage(); - } - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public Builder setVar(flyteidl.core.Interface.Variable value) { - if (varBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - var_ = value; - onChanged(); - } else { - varBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public Builder setVar( - flyteidl.core.Interface.Variable.Builder builderForValue) { - if (varBuilder_ == null) { - var_ = builderForValue.build(); - onChanged(); - } else { - varBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public Builder mergeVar(flyteidl.core.Interface.Variable value) { - if (varBuilder_ == null) { - if (var_ != null) { - var_ = - flyteidl.core.Interface.Variable.newBuilder(var_).mergeFrom(value).buildPartial(); - } else { - var_ = value; - } - onChanged(); - } else { - varBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public Builder clearVar() { - if (varBuilder_ == null) { - var_ = null; - onChanged(); - } else { - var_ = null; - varBuilder_ = null; - } - - return this; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.Variable.Builder getVarBuilder() { - - onChanged(); - return getVarFieldBuilder().getBuilder(); - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { - if (varBuilder_ != null) { - return varBuilder_.getMessageOrBuilder(); - } else { - return var_ == null ? - flyteidl.core.Interface.Variable.getDefaultInstance() : var_; - } - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> - getVarFieldBuilder() { - if (varBuilder_ == null) { - varBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder>( - getVar(), - getParentForChildren(), - isClean()); - var_ = null; - } - return varBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> defaultBuilder_; - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public boolean hasDefault() { - return behaviorCase_ == 2; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.Literal getDefault() { - if (defaultBuilder_ == null) { - if (behaviorCase_ == 2) { - return (flyteidl.core.Literals.Literal) behavior_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } else { - if (behaviorCase_ == 2) { - return defaultBuilder_.getMessage(); - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public Builder setDefault(flyteidl.core.Literals.Literal value) { - if (defaultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - behavior_ = value; - onChanged(); - } else { - defaultBuilder_.setMessage(value); - } - behaviorCase_ = 2; - return this; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public Builder setDefault( - flyteidl.core.Literals.Literal.Builder builderForValue) { - if (defaultBuilder_ == null) { - behavior_ = builderForValue.build(); - onChanged(); - } else { - defaultBuilder_.setMessage(builderForValue.build()); - } - behaviorCase_ = 2; - return this; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public Builder mergeDefault(flyteidl.core.Literals.Literal value) { - if (defaultBuilder_ == null) { - if (behaviorCase_ == 2 && - behavior_ != flyteidl.core.Literals.Literal.getDefaultInstance()) { - behavior_ = flyteidl.core.Literals.Literal.newBuilder((flyteidl.core.Literals.Literal) behavior_) - .mergeFrom(value).buildPartial(); - } else { - behavior_ = value; - } - onChanged(); - } else { - if (behaviorCase_ == 2) { - defaultBuilder_.mergeFrom(value); - } - defaultBuilder_.setMessage(value); - } - behaviorCase_ = 2; - return this; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public Builder clearDefault() { - if (defaultBuilder_ == null) { - if (behaviorCase_ == 2) { - behaviorCase_ = 0; - behavior_ = null; - onChanged(); - } - } else { - if (behaviorCase_ == 2) { - behaviorCase_ = 0; - behavior_ = null; - } - defaultBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.Literal.Builder getDefaultBuilder() { - return getDefaultFieldBuilder().getBuilder(); - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { - if ((behaviorCase_ == 2) && (defaultBuilder_ != null)) { - return defaultBuilder_.getMessageOrBuilder(); - } else { - if (behaviorCase_ == 2) { - return (flyteidl.core.Literals.Literal) behavior_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> - getDefaultFieldBuilder() { - if (defaultBuilder_ == null) { - if (!(behaviorCase_ == 2)) { - behavior_ = flyteidl.core.Literals.Literal.getDefaultInstance(); - } - defaultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( - (flyteidl.core.Literals.Literal) behavior_, - getParentForChildren(), - isClean()); - behavior_ = null; - } - behaviorCase_ = 2; - onChanged();; - return defaultBuilder_; - } - - /** - *
-       *+optional, is this value required to be filled.
-       * 
- * - * bool required = 3; - */ - public boolean getRequired() { - if (behaviorCase_ == 3) { - return (java.lang.Boolean) behavior_; - } - return false; - } - /** - *
-       *+optional, is this value required to be filled.
-       * 
- * - * bool required = 3; - */ - public Builder setRequired(boolean value) { - behaviorCase_ = 3; - behavior_ = value; - onChanged(); - return this; - } - /** - *
-       *+optional, is this value required to be filled.
-       * 
- * - * bool required = 3; - */ - public Builder clearRequired() { - if (behaviorCase_ == 3) { - behaviorCase_ = 0; - behavior_ = 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:flyteidl.core.Parameter) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Parameter) - private static final flyteidl.core.Interface.Parameter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.Parameter(); - } - - public static flyteidl.core.Interface.Parameter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Parameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Parameter(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 flyteidl.core.Interface.Parameter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParameterMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ParameterMap) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - int getParametersCount(); - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - boolean containsParameters( - java.lang.String key); - /** - * Use {@link #getParametersMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getParameters(); - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - java.util.Map - getParametersMap(); - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - flyteidl.core.Interface.Parameter getParametersOrDefault( - java.lang.String key, - flyteidl.core.Interface.Parameter defaultValue); - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - flyteidl.core.Interface.Parameter getParametersOrThrow( - java.lang.String key); - } - /** - *
-   * A map of Parameters.
-   * 
- * - * Protobuf type {@code flyteidl.core.ParameterMap} - */ - public static final class ParameterMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ParameterMap) - ParameterMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParameterMap.newBuilder() to construct. - private ParameterMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParameterMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParameterMap( - 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)) { - parameters_ = com.google.protobuf.MapField.newMapField( - ParametersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - parameters__ = input.readMessage( - ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - parameters_.getMutableMap().put( - parameters__.getKey(), parameters__.getValue()); - 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 flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetParameters(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); - } - - public static final int PARAMETERS_FIELD_NUMBER = 1; - private static final class ParametersDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Interface.Parameter> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Interface.Parameter.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Interface.Parameter> parameters_; - private com.google.protobuf.MapField - internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public boolean containsParameters( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetParameters().getMap().containsKey(key); - } - /** - * Use {@link #getParametersMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public flyteidl.core.Interface.Parameter getParametersOrDefault( - java.lang.String key, - flyteidl.core.Interface.Parameter defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public flyteidl.core.Interface.Parameter getParametersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetParameters(), - ParametersDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetParameters().getMap().entrySet()) { - com.google.protobuf.MapEntry - parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, parameters__); - } - 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 flyteidl.core.Interface.ParameterMap)) { - return super.equals(obj); - } - flyteidl.core.Interface.ParameterMap other = (flyteidl.core.Interface.ParameterMap) obj; - - if (!internalGetParameters().equals( - other.internalGetParameters())) 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 (!internalGetParameters().getMap().isEmpty()) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetParameters().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.ParameterMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.ParameterMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.ParameterMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.ParameterMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.ParameterMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.ParameterMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.ParameterMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.ParameterMap 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 flyteidl.core.Interface.ParameterMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.ParameterMap 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 flyteidl.core.Interface.ParameterMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.ParameterMap 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(flyteidl.core.Interface.ParameterMap 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 map of Parameters.
-     * 
- * - * Protobuf type {@code flyteidl.core.ParameterMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ParameterMap) - flyteidl.core.Interface.ParameterMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetParameters(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableParameters(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); - } - - // Construct using flyteidl.core.Interface.ParameterMap.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(); - internalGetMutableParameters().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.ParameterMap getDefaultInstanceForType() { - return flyteidl.core.Interface.ParameterMap.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.ParameterMap build() { - flyteidl.core.Interface.ParameterMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.ParameterMap buildPartial() { - flyteidl.core.Interface.ParameterMap result = new flyteidl.core.Interface.ParameterMap(this); - int from_bitField0_ = bitField0_; - result.parameters_ = internalGetParameters(); - result.parameters_.makeImmutable(); - 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 flyteidl.core.Interface.ParameterMap) { - return mergeFrom((flyteidl.core.Interface.ParameterMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.ParameterMap other) { - if (other == flyteidl.core.Interface.ParameterMap.getDefaultInstance()) return this; - internalGetMutableParameters().mergeFrom( - other.internalGetParameters()); - 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 { - flyteidl.core.Interface.ParameterMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.ParameterMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Interface.Parameter> parameters_; - private com.google.protobuf.MapField - internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - private com.google.protobuf.MapField - internalGetMutableParameters() { - onChanged();; - if (parameters_ == null) { - parameters_ = com.google.protobuf.MapField.newMapField( - ParametersDefaultEntryHolder.defaultEntry); - } - if (!parameters_.isMutable()) { - parameters_ = parameters_.copy(); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public boolean containsParameters( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetParameters().getMap().containsKey(key); - } - /** - * Use {@link #getParametersMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public flyteidl.core.Interface.Parameter getParametersOrDefault( - java.lang.String key, - flyteidl.core.Interface.Parameter defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public flyteidl.core.Interface.Parameter getParametersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearParameters() { - internalGetMutableParameters().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public Builder removeParameters( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableParameters().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableParameters() { - return internalGetMutableParameters().getMutableMap(); - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - public Builder putParameters( - java.lang.String key, - flyteidl.core.Interface.Parameter value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableParameters().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public Builder putAllParameters( - java.util.Map values) { - internalGetMutableParameters().getMutableMap() - .putAll(values); - 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:flyteidl.core.ParameterMap) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ParameterMap) - private static final flyteidl.core.Interface.ParameterMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.ParameterMap(); - } - - public static flyteidl.core.Interface.ParameterMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParameterMap(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 flyteidl.core.Interface.ParameterMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Variable_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Variable_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_VariableMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_VariableMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_VariableMap_VariablesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TypedInterface_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TypedInterface_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Parameter_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Parameter_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ParameterMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ParameterMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ParameterMap_ParametersEntry_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\035flyteidl/core/interface.proto\022\rflyteid" + - "l.core\032\031flyteidl/core/types.proto\032\034flyte" + - "idl/core/literals.proto\"I\n\010Variable\022(\n\004t" + - "ype\030\001 \001(\0132\032.flyteidl.core.LiteralType\022\023\n" + - "\013description\030\002 \001(\t\"\226\001\n\013VariableMap\022<\n\tva" + - "riables\030\001 \003(\0132).flyteidl.core.VariableMa" + - "p.VariablesEntry\032I\n\016VariablesEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.flyteidl.core.V" + - "ariable:\0028\001\"i\n\016TypedInterface\022*\n\006inputs\030" + - "\001 \001(\0132\032.flyteidl.core.VariableMap\022+\n\007out" + - "puts\030\002 \001(\0132\032.flyteidl.core.VariableMap\"|" + - "\n\tParameter\022$\n\003var\030\001 \001(\0132\027.flyteidl.core" + - ".Variable\022)\n\007default\030\002 \001(\0132\026.flyteidl.co" + - "re.LiteralH\000\022\022\n\010required\030\003 \001(\010H\000B\n\n\010beha" + - "vior\"\234\001\n\014ParameterMap\022?\n\nparameters\030\001 \003(" + - "\0132+.flyteidl.core.ParameterMap.Parameter" + - "sEntry\032K\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\'" + - "\n\005value\030\002 \001(\0132\030.flyteidl.core.Parameter:" + - "\0028\001B2Z0github.com/lyft/flyteidl/gen/pb-g" + - "o/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Types.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_Variable_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_Variable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Variable_descriptor, - new java.lang.String[] { "Type", "Description", }); - internal_static_flyteidl_core_VariableMap_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_VariableMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_VariableMap_descriptor, - new java.lang.String[] { "Variables", }); - internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor = - internal_static_flyteidl_core_VariableMap_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_VariableMap_VariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_core_TypedInterface_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_TypedInterface_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TypedInterface_descriptor, - new java.lang.String[] { "Inputs", "Outputs", }); - internal_static_flyteidl_core_Parameter_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_Parameter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Parameter_descriptor, - new java.lang.String[] { "Var", "Default", "Required", "Behavior", }); - internal_static_flyteidl_core_ParameterMap_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_core_ParameterMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ParameterMap_descriptor, - new java.lang.String[] { "Parameters", }); - internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor = - internal_static_flyteidl_core_ParameterMap_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_ParameterMap_ParametersEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - flyteidl.core.Types.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Literals.java b/gen/pb-java/flyteidl/core/Literals.java deleted file mode 100644 index 78b622533..000000000 --- a/gen/pb-java/flyteidl/core/Literals.java +++ /dev/null @@ -1,14859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/literals.proto - -package flyteidl.core; - -public final class Literals { - private Literals() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PrimitiveOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Primitive) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 integer = 1; - */ - long getInteger(); - - /** - * double float_value = 2; - */ - double getFloatValue(); - - /** - * string string_value = 3; - */ - java.lang.String getStringValue(); - /** - * string string_value = 3; - */ - com.google.protobuf.ByteString - getStringValueBytes(); - - /** - * bool boolean = 4; - */ - boolean getBoolean(); - - /** - * .google.protobuf.Timestamp datetime = 5; - */ - boolean hasDatetime(); - /** - * .google.protobuf.Timestamp datetime = 5; - */ - com.google.protobuf.Timestamp getDatetime(); - /** - * .google.protobuf.Timestamp datetime = 5; - */ - com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder(); - - /** - * .google.protobuf.Duration duration = 6; - */ - boolean hasDuration(); - /** - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.Duration getDuration(); - /** - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - - public flyteidl.core.Literals.Primitive.ValueCase getValueCase(); - } - /** - *
-   * Primitive Types
-   * 
- * - * Protobuf type {@code flyteidl.core.Primitive} - */ - public static final class Primitive extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Primitive) - PrimitiveOrBuilder { - private static final long serialVersionUID = 0L; - // Use Primitive.newBuilder() to construct. - private Primitive(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Primitive() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Primitive( - 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 8: { - valueCase_ = 1; - value_ = input.readInt64(); - break; - } - case 17: { - valueCase_ = 2; - value_ = input.readDouble(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 3; - value_ = s; - break; - } - case 32: { - valueCase_ = 4; - value_ = input.readBool(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((com.google.protobuf.Timestamp) value_).toBuilder(); - } - value_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - case 50: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (valueCase_ == 6) { - subBuilder = ((com.google.protobuf.Duration) value_).toBuilder(); - } - value_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Duration) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 6; - 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 flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - INTEGER(1), - FLOAT_VALUE(2), - STRING_VALUE(3), - BOOLEAN(4), - DATETIME(5), - DURATION(6), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return INTEGER; - case 2: return FLOAT_VALUE; - case 3: return STRING_VALUE; - case 4: return BOOLEAN; - case 5: return DATETIME; - case 6: return DURATION; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int INTEGER_FIELD_NUMBER = 1; - /** - * int64 integer = 1; - */ - public long getInteger() { - if (valueCase_ == 1) { - return (java.lang.Long) value_; - } - return 0L; - } - - public static final int FLOAT_VALUE_FIELD_NUMBER = 2; - /** - * double float_value = 2; - */ - public double getFloatValue() { - if (valueCase_ == 2) { - return (java.lang.Double) value_; - } - return 0D; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 3; - /** - * string string_value = 3; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - 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(); - if (valueCase_ == 3) { - value_ = s; - } - return s; - } - } - /** - * string string_value = 3; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 3) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BOOLEAN_FIELD_NUMBER = 4; - /** - * bool boolean = 4; - */ - public boolean getBoolean() { - if (valueCase_ == 4) { - return (java.lang.Boolean) value_; - } - return false; - } - - public static final int DATETIME_FIELD_NUMBER = 5; - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public boolean hasDatetime() { - return valueCase_ == 5; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.Timestamp getDatetime() { - if (valueCase_ == 5) { - return (com.google.protobuf.Timestamp) value_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { - if (valueCase_ == 5) { - return (com.google.protobuf.Timestamp) value_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - public static final int DURATION_FIELD_NUMBER = 6; - /** - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return valueCase_ == 6; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - if (valueCase_ == 6) { - return (com.google.protobuf.Duration) value_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (valueCase_ == 6) { - return (com.google.protobuf.Duration) value_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeInt64( - 1, (long)((java.lang.Long) value_)); - } - if (valueCase_ == 2) { - output.writeDouble( - 2, (double)((java.lang.Double) value_)); - } - if (valueCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); - } - if (valueCase_ == 4) { - output.writeBool( - 4, (boolean)((java.lang.Boolean) value_)); - } - if (valueCase_ == 5) { - output.writeMessage(5, (com.google.protobuf.Timestamp) value_); - } - if (valueCase_ == 6) { - output.writeMessage(6, (com.google.protobuf.Duration) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 1, (long)((java.lang.Long) value_)); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 2, (double)((java.lang.Double) value_)); - } - if (valueCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 4, (boolean)((java.lang.Boolean) value_)); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.protobuf.Timestamp) value_); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.protobuf.Duration) 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 flyteidl.core.Literals.Primitive)) { - return super.equals(obj); - } - flyteidl.core.Literals.Primitive other = (flyteidl.core.Literals.Primitive) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (getInteger() - != other.getInteger()) return false; - break; - case 2: - if (java.lang.Double.doubleToLongBits(getFloatValue()) - != java.lang.Double.doubleToLongBits( - other.getFloatValue())) return false; - break; - case 3: - if (!getStringValue() - .equals(other.getStringValue())) return false; - break; - case 4: - if (getBoolean() - != other.getBoolean()) return false; - break; - case 5: - if (!getDatetime() - .equals(other.getDatetime())) return false; - break; - case 6: - if (!getDuration() - .equals(other.getDuration())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + INTEGER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInteger()); - break; - case 2: - hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getFloatValue())); - break; - case 3: - hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringValue().hashCode(); - break; - case 4: - hash = (37 * hash) + BOOLEAN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoolean()); - break; - case 5: - hash = (37 * hash) + DATETIME_FIELD_NUMBER; - hash = (53 * hash) + getDatetime().hashCode(); - break; - case 6: - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Primitive parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Primitive parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Primitive parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Primitive parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Primitive parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Primitive parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Primitive parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Primitive 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 flyteidl.core.Literals.Primitive parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Primitive 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 flyteidl.core.Literals.Primitive parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Primitive 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(flyteidl.core.Literals.Primitive 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; - } - /** - *
-     * Primitive Types
-     * 
- * - * Protobuf type {@code flyteidl.core.Primitive} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Primitive) - flyteidl.core.Literals.PrimitiveOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); - } - - // Construct using flyteidl.core.Literals.Primitive.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(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Primitive getDefaultInstanceForType() { - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Primitive build() { - flyteidl.core.Literals.Primitive result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Primitive buildPartial() { - flyteidl.core.Literals.Primitive result = new flyteidl.core.Literals.Primitive(this); - if (valueCase_ == 1) { - result.value_ = value_; - } - if (valueCase_ == 2) { - result.value_ = value_; - } - if (valueCase_ == 3) { - result.value_ = value_; - } - if (valueCase_ == 4) { - result.value_ = value_; - } - if (valueCase_ == 5) { - if (datetimeBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = datetimeBuilder_.build(); - } - } - if (valueCase_ == 6) { - if (durationBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = durationBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - 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 flyteidl.core.Literals.Primitive) { - return mergeFrom((flyteidl.core.Literals.Primitive)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Primitive other) { - if (other == flyteidl.core.Literals.Primitive.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case INTEGER: { - setInteger(other.getInteger()); - break; - } - case FLOAT_VALUE: { - setFloatValue(other.getFloatValue()); - break; - } - case STRING_VALUE: { - valueCase_ = 3; - value_ = other.value_; - onChanged(); - break; - } - case BOOLEAN: { - setBoolean(other.getBoolean()); - break; - } - case DATETIME: { - mergeDatetime(other.getDatetime()); - break; - } - case DURATION: { - mergeDuration(other.getDuration()); - break; - } - case VALUE_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 { - flyteidl.core.Literals.Primitive parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Primitive) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - /** - * int64 integer = 1; - */ - public long getInteger() { - if (valueCase_ == 1) { - return (java.lang.Long) value_; - } - return 0L; - } - /** - * int64 integer = 1; - */ - public Builder setInteger(long value) { - valueCase_ = 1; - value_ = value; - onChanged(); - return this; - } - /** - * int64 integer = 1; - */ - public Builder clearInteger() { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * double float_value = 2; - */ - public double getFloatValue() { - if (valueCase_ == 2) { - return (java.lang.Double) value_; - } - return 0D; - } - /** - * double float_value = 2; - */ - public Builder setFloatValue(double value) { - valueCase_ = 2; - value_ = value; - onChanged(); - return this; - } - /** - * double float_value = 2; - */ - public Builder clearFloatValue() { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * string string_value = 3; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 3) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string string_value = 3; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 3) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string string_value = 3; - */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - /** - * string string_value = 3; - */ - public Builder clearStringValue() { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - /** - * string string_value = 3; - */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - - /** - * bool boolean = 4; - */ - public boolean getBoolean() { - if (valueCase_ == 4) { - return (java.lang.Boolean) value_; - } - return false; - } - /** - * bool boolean = 4; - */ - public Builder setBoolean(boolean value) { - valueCase_ = 4; - value_ = value; - onChanged(); - return this; - } - /** - * bool boolean = 4; - */ - public Builder clearBoolean() { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> datetimeBuilder_; - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public boolean hasDatetime() { - return valueCase_ == 5; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.Timestamp getDatetime() { - if (datetimeBuilder_ == null) { - if (valueCase_ == 5) { - return (com.google.protobuf.Timestamp) value_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return datetimeBuilder_.getMessage(); - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public Builder setDatetime(com.google.protobuf.Timestamp value) { - if (datetimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - datetimeBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public Builder setDatetime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (datetimeBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - datetimeBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 5; - return this; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public Builder mergeDatetime(com.google.protobuf.Timestamp value) { - if (datetimeBuilder_ == null) { - if (valueCase_ == 5 && - value_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - value_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - datetimeBuilder_.mergeFrom(value); - } - datetimeBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public Builder clearDatetime() { - if (datetimeBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - datetimeBuilder_.clear(); - } - return this; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.Timestamp.Builder getDatetimeBuilder() { - return getDatetimeFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { - if ((valueCase_ == 5) && (datetimeBuilder_ != null)) { - return datetimeBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (com.google.protobuf.Timestamp) value_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDatetimeFieldBuilder() { - if (datetimeBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - datetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 5; - onChanged();; - return datetimeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; - /** - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return valueCase_ == 6; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - if (valueCase_ == 6) { - return (com.google.protobuf.Duration) value_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } else { - if (valueCase_ == 6) { - return durationBuilder_.getMessage(); - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 6; - return this; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (valueCase_ == 6 && - value_ != com.google.protobuf.Duration.getDefaultInstance()) { - value_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 6) { - durationBuilder_.mergeFrom(value); - } - durationBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - } - durationBuilder_.clear(); - } - return this; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - return getDurationFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if ((valueCase_ == 6) && (durationBuilder_ != null)) { - return durationBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 6) { - return (com.google.protobuf.Duration) value_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - * .google.protobuf.Duration duration = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - if (!(valueCase_ == 6)) { - value_ = com.google.protobuf.Duration.getDefaultInstance(); - } - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 6; - onChanged();; - return durationBuilder_; - } - @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:flyteidl.core.Primitive) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Primitive) - private static final flyteidl.core.Literals.Primitive DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Primitive(); - } - - public static flyteidl.core.Literals.Primitive getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Primitive parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Primitive(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 flyteidl.core.Literals.Primitive getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface VoidOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Void) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
-   * undefined since it can be assigned to a scalar of any LiteralType.
-   * 
- * - * Protobuf type {@code flyteidl.core.Void} - */ - public static final class Void extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Void) - VoidOrBuilder { - private static final long serialVersionUID = 0L; - // Use Void.newBuilder() to construct. - private Void(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Void() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Void( - 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; - 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 flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.core.Literals.Void)) { - return super.equals(obj); - } - flyteidl.core.Literals.Void other = (flyteidl.core.Literals.Void) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Void parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Void parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Void parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Void parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Void parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Void parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Void parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Void 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 flyteidl.core.Literals.Void parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Void 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 flyteidl.core.Literals.Void parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Void 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(flyteidl.core.Literals.Void 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; - } - /** - *
-     * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
-     * undefined since it can be assigned to a scalar of any LiteralType.
-     * 
- * - * Protobuf type {@code flyteidl.core.Void} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Void) - flyteidl.core.Literals.VoidOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); - } - - // Construct using flyteidl.core.Literals.Void.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Void getDefaultInstanceForType() { - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Void build() { - flyteidl.core.Literals.Void result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Void buildPartial() { - flyteidl.core.Literals.Void result = new flyteidl.core.Literals.Void(this); - 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 flyteidl.core.Literals.Void) { - return mergeFrom((flyteidl.core.Literals.Void)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Void other) { - if (other == flyteidl.core.Literals.Void.getDefaultInstance()) return this; - 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 { - flyteidl.core.Literals.Void parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Void) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.core.Void) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Void) - private static final flyteidl.core.Literals.Void DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Void(); - } - - public static flyteidl.core.Literals.Void getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Void parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Void(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 flyteidl.core.Literals.Void getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BlobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Blob) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - boolean hasMetadata(); - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - flyteidl.core.Literals.BlobMetadata getMetadata(); - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder(); - - /** - * string uri = 3; - */ - java.lang.String getUri(); - /** - * string uri = 3; - */ - com.google.protobuf.ByteString - getUriBytes(); - } - /** - *
-   * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
-   * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
-   * 
- * - * Protobuf type {@code flyteidl.core.Blob} - */ - public static final class Blob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Blob) - BlobOrBuilder { - private static final long serialVersionUID = 0L; - // Use Blob.newBuilder() to construct. - private Blob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Blob() { - uri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Blob( - 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: { - flyteidl.core.Literals.BlobMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Literals.BlobMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - uri_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); - } - - public static final int METADATA_FIELD_NUMBER = 1; - private flyteidl.core.Literals.BlobMetadata metadata_; - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int URI_FIELD_NUMBER = 3; - private volatile java.lang.Object uri_; - /** - * string uri = 3; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - 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(); - uri_ = s; - return s; - } - } - /** - * string uri = 3; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = 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 (metadata_ != null) { - output.writeMessage(1, getMetadata()); - } - if (!getUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMetadata()); - } - if (!getUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); - } - 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 flyteidl.core.Literals.Blob)) { - return super.equals(obj); - } - flyteidl.core.Literals.Blob other = (flyteidl.core.Literals.Blob) obj; - - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!getUri() - .equals(other.getUri())) 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 (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Blob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Blob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Blob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Blob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Blob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Blob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Blob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Blob 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 flyteidl.core.Literals.Blob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Blob 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 flyteidl.core.Literals.Blob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Blob 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(flyteidl.core.Literals.Blob 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; - } - /** - *
-     * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
-     * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
-     * 
- * - * Protobuf type {@code flyteidl.core.Blob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Blob) - flyteidl.core.Literals.BlobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); - } - - // Construct using flyteidl.core.Literals.Blob.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 (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - uri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Blob getDefaultInstanceForType() { - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Blob build() { - flyteidl.core.Literals.Blob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Blob buildPartial() { - flyteidl.core.Literals.Blob result = new flyteidl.core.Literals.Blob(this); - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.uri_ = uri_; - 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 flyteidl.core.Literals.Blob) { - return mergeFrom((flyteidl.core.Literals.Blob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Blob other) { - if (other == flyteidl.core.Literals.Blob.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - 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 { - flyteidl.core.Literals.Blob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Blob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Literals.BlobMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> metadataBuilder_; - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public Builder setMetadata(flyteidl.core.Literals.BlobMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public Builder setMetadata( - flyteidl.core.Literals.BlobMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public Builder mergeMetadata(flyteidl.core.Literals.BlobMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Literals.BlobMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; - } - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private java.lang.Object uri_ = ""; - /** - * string uri = 3; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uri = 3; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uri = 3; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * string uri = 3; - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * string uri = 3; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = 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:flyteidl.core.Blob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Blob) - private static final flyteidl.core.Literals.Blob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Blob(); - } - - public static flyteidl.core.Literals.Blob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Blob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Blob(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 flyteidl.core.Literals.Blob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BlobMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.BlobType type = 1; - */ - boolean hasType(); - /** - * .flyteidl.core.BlobType type = 1; - */ - flyteidl.core.Types.BlobType getType(); - /** - * .flyteidl.core.BlobType type = 1; - */ - flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.core.BlobMetadata} - */ - public static final class BlobMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BlobMetadata) - BlobMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlobMetadata.newBuilder() to construct. - private BlobMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlobMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlobMetadata( - 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: { - flyteidl.core.Types.BlobType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private flyteidl.core.Types.BlobType type_; - /** - * .flyteidl.core.BlobType type = 1; - */ - public boolean hasType() { - return type_ != null; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobType getType() { - return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - 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 (type_ != null) { - output.writeMessage(1, getType()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getType()); - } - 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 flyteidl.core.Literals.BlobMetadata)) { - return super.equals(obj); - } - flyteidl.core.Literals.BlobMetadata other = (flyteidl.core.Literals.BlobMetadata) obj; - - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) 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 (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.BlobMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BlobMetadata 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 flyteidl.core.Literals.BlobMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BlobMetadata 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 flyteidl.core.Literals.BlobMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BlobMetadata 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(flyteidl.core.Literals.BlobMetadata 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 flyteidl.core.BlobMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobMetadata) - flyteidl.core.Literals.BlobMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); - } - - // Construct using flyteidl.core.Literals.BlobMetadata.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 (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.BlobMetadata getDefaultInstanceForType() { - return flyteidl.core.Literals.BlobMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.BlobMetadata build() { - flyteidl.core.Literals.BlobMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.BlobMetadata buildPartial() { - flyteidl.core.Literals.BlobMetadata result = new flyteidl.core.Literals.BlobMetadata(this); - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.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 flyteidl.core.Literals.BlobMetadata) { - return mergeFrom((flyteidl.core.Literals.BlobMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.BlobMetadata other) { - if (other == flyteidl.core.Literals.BlobMetadata.getDefaultInstance()) return this; - if (other.hasType()) { - mergeType(other.getType()); - } - 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 { - flyteidl.core.Literals.BlobMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.BlobMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Types.BlobType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> typeBuilder_; - /** - * .flyteidl.core.BlobType type = 1; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public Builder setType(flyteidl.core.Types.BlobType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public Builder setType( - flyteidl.core.Types.BlobType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public Builder mergeType(flyteidl.core.Types.BlobType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.BlobType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.BlobType.getDefaultInstance() : type_; - } - } - /** - * .flyteidl.core.BlobType type = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - @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:flyteidl.core.BlobMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BlobMetadata) - private static final flyteidl.core.Literals.BlobMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.BlobMetadata(); - } - - public static flyteidl.core.Literals.BlobMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlobMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlobMetadata(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 flyteidl.core.Literals.BlobMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BinaryOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Binary) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes value = 1; - */ - com.google.protobuf.ByteString getValue(); - - /** - * string tag = 2; - */ - java.lang.String getTag(); - /** - * string tag = 2; - */ - com.google.protobuf.ByteString - getTagBytes(); - } - /** - *
-   * A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
-   * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
-   * 
- * - * Protobuf type {@code flyteidl.core.Binary} - */ - public static final class Binary extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Binary) - BinaryOrBuilder { - private static final long serialVersionUID = 0L; - // Use Binary.newBuilder() to construct. - private Binary(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Binary() { - value_ = com.google.protobuf.ByteString.EMPTY; - tag_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Binary( - 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: { - - value_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - tag_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 1; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - public static final int TAG_FIELD_NUMBER = 2; - private volatile java.lang.Object tag_; - /** - * string tag = 2; - */ - public java.lang.String getTag() { - java.lang.Object ref = tag_; - 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(); - tag_ = s; - return s; - } - } - /** - * string tag = 2; - */ - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tag_ = 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 (!value_.isEmpty()) { - output.writeBytes(1, value_); - } - if (!getTagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, value_); - } - if (!getTagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); - } - 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 flyteidl.core.Literals.Binary)) { - return super.equals(obj); - } - flyteidl.core.Literals.Binary other = (flyteidl.core.Literals.Binary) obj; - - if (!getValue() - .equals(other.getValue())) return false; - if (!getTag() - .equals(other.getTag())) 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) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Binary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binary parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binary parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binary parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binary 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 flyteidl.core.Literals.Binary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binary 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 flyteidl.core.Literals.Binary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binary 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(flyteidl.core.Literals.Binary 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 simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
-     * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
-     * 
- * - * Protobuf type {@code flyteidl.core.Binary} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Binary) - flyteidl.core.Literals.BinaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); - } - - // Construct using flyteidl.core.Literals.Binary.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(); - value_ = com.google.protobuf.ByteString.EMPTY; - - tag_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Binary getDefaultInstanceForType() { - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Binary build() { - flyteidl.core.Literals.Binary result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Binary buildPartial() { - flyteidl.core.Literals.Binary result = new flyteidl.core.Literals.Binary(this); - result.value_ = value_; - result.tag_ = tag_; - 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 flyteidl.core.Literals.Binary) { - return mergeFrom((flyteidl.core.Literals.Binary)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Binary other) { - if (other == flyteidl.core.Literals.Binary.getDefaultInstance()) return this; - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (!other.getTag().isEmpty()) { - tag_ = other.tag_; - 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 { - flyteidl.core.Literals.Binary parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Binary) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 1; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 1; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 1; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private java.lang.Object tag_ = ""; - /** - * string tag = 2; - */ - public java.lang.String getTag() { - java.lang.Object ref = tag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tag = 2; - */ - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tag = 2; - */ - public Builder setTag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tag_ = value; - onChanged(); - return this; - } - /** - * string tag = 2; - */ - public Builder clearTag() { - - tag_ = getDefaultInstance().getTag(); - onChanged(); - return this; - } - /** - * string tag = 2; - */ - public Builder setTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tag_ = 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:flyteidl.core.Binary) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Binary) - private static final flyteidl.core.Literals.Binary DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Binary(); - } - - public static flyteidl.core.Literals.Binary getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Binary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Binary(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 flyteidl.core.Literals.Binary getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SchemaOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Schema) - com.google.protobuf.MessageOrBuilder { - - /** - * string uri = 1; - */ - java.lang.String getUri(); - /** - * string uri = 1; - */ - com.google.protobuf.ByteString - getUriBytes(); - - /** - * .flyteidl.core.SchemaType type = 3; - */ - boolean hasType(); - /** - * .flyteidl.core.SchemaType type = 3; - */ - flyteidl.core.Types.SchemaType getType(); - /** - * .flyteidl.core.SchemaType type = 3; - */ - flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder(); - } - /** - *
-   * A strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
-   * 
- * - * Protobuf type {@code flyteidl.core.Schema} - */ - public static final class Schema extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Schema) - SchemaOrBuilder { - private static final long serialVersionUID = 0L; - // Use Schema.newBuilder() to construct. - private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Schema() { - uri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Schema( - 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(); - - uri_ = s; - break; - } - case 26: { - flyteidl.core.Types.SchemaType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); - } - - public static final int URI_FIELD_NUMBER = 1; - private volatile java.lang.Object uri_; - /** - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - 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(); - uri_ = s; - return s; - } - } - /** - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 3; - private flyteidl.core.Types.SchemaType type_; - /** - * .flyteidl.core.SchemaType type = 3; - */ - public boolean hasType() { - return type_ != null; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaType getType() { - return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - 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 (!getUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); - } - if (type_ != null) { - output.writeMessage(3, getType()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); - } - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getType()); - } - 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 flyteidl.core.Literals.Schema)) { - return super.equals(obj); - } - flyteidl.core.Literals.Schema other = (flyteidl.core.Literals.Schema) obj; - - if (!getUri() - .equals(other.getUri())) return false; - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) 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) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Schema parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Schema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Schema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Schema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Schema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Schema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Schema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Schema 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 flyteidl.core.Literals.Schema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Schema 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 flyteidl.core.Literals.Schema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Schema 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(flyteidl.core.Literals.Schema 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 strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
-     * 
- * - * Protobuf type {@code flyteidl.core.Schema} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Schema) - flyteidl.core.Literals.SchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); - } - - // Construct using flyteidl.core.Literals.Schema.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(); - uri_ = ""; - - if (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Schema getDefaultInstanceForType() { - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Schema build() { - flyteidl.core.Literals.Schema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Schema buildPartial() { - flyteidl.core.Literals.Schema result = new flyteidl.core.Literals.Schema(this); - result.uri_ = uri_; - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.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 flyteidl.core.Literals.Schema) { - return mergeFrom((flyteidl.core.Literals.Schema)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Schema other) { - if (other == flyteidl.core.Literals.Schema.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - onChanged(); - } - if (other.hasType()) { - mergeType(other.getType()); - } - 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 { - flyteidl.core.Literals.Schema parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Schema) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object uri_ = ""; - /** - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uri = 1; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * string uri = 1; - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * string uri = 1; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Types.SchemaType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> typeBuilder_; - /** - * .flyteidl.core.SchemaType type = 3; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public Builder setType(flyteidl.core.Types.SchemaType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public Builder setType( - flyteidl.core.Types.SchemaType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public Builder mergeType(flyteidl.core.Types.SchemaType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.SchemaType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; - } - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - @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:flyteidl.core.Schema) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Schema) - private static final flyteidl.core.Literals.Schema DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Schema(); - } - - public static flyteidl.core.Literals.Schema getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schema(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 flyteidl.core.Literals.Schema getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ScalarOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Scalar) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.Primitive primitive = 1; - */ - boolean hasPrimitive(); - /** - * .flyteidl.core.Primitive primitive = 1; - */ - flyteidl.core.Literals.Primitive getPrimitive(); - /** - * .flyteidl.core.Primitive primitive = 1; - */ - flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); - - /** - * .flyteidl.core.Blob blob = 2; - */ - boolean hasBlob(); - /** - * .flyteidl.core.Blob blob = 2; - */ - flyteidl.core.Literals.Blob getBlob(); - /** - * .flyteidl.core.Blob blob = 2; - */ - flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder(); - - /** - * .flyteidl.core.Binary binary = 3; - */ - boolean hasBinary(); - /** - * .flyteidl.core.Binary binary = 3; - */ - flyteidl.core.Literals.Binary getBinary(); - /** - * .flyteidl.core.Binary binary = 3; - */ - flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder(); - - /** - * .flyteidl.core.Schema schema = 4; - */ - boolean hasSchema(); - /** - * .flyteidl.core.Schema schema = 4; - */ - flyteidl.core.Literals.Schema getSchema(); - /** - * .flyteidl.core.Schema schema = 4; - */ - flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder(); - - /** - * .flyteidl.core.Void none_type = 5; - */ - boolean hasNoneType(); - /** - * .flyteidl.core.Void none_type = 5; - */ - flyteidl.core.Literals.Void getNoneType(); - /** - * .flyteidl.core.Void none_type = 5; - */ - flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder(); - - /** - * .flyteidl.core.Error error = 6; - */ - boolean hasError(); - /** - * .flyteidl.core.Error error = 6; - */ - flyteidl.core.Types.Error getError(); - /** - * .flyteidl.core.Error error = 6; - */ - flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); - - /** - * .google.protobuf.Struct generic = 7; - */ - boolean hasGeneric(); - /** - * .google.protobuf.Struct generic = 7; - */ - com.google.protobuf.Struct getGeneric(); - /** - * .google.protobuf.Struct generic = 7; - */ - com.google.protobuf.StructOrBuilder getGenericOrBuilder(); - - public flyteidl.core.Literals.Scalar.ValueCase getValueCase(); - } - /** - * Protobuf type {@code flyteidl.core.Scalar} - */ - public static final class Scalar extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Scalar) - ScalarOrBuilder { - private static final long serialVersionUID = 0L; - // Use Scalar.newBuilder() to construct. - private Scalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Scalar() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Scalar( - 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: { - flyteidl.core.Literals.Primitive.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.Primitive) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - flyteidl.core.Literals.Blob.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((flyteidl.core.Literals.Blob) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Blob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Blob) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - flyteidl.core.Literals.Binary.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((flyteidl.core.Literals.Binary) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Binary.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Binary) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - flyteidl.core.Literals.Schema.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((flyteidl.core.Literals.Schema) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Schema.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Schema) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - case 42: { - flyteidl.core.Literals.Void.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((flyteidl.core.Literals.Void) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Void.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Void) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - case 50: { - flyteidl.core.Types.Error.Builder subBuilder = null; - if (valueCase_ == 6) { - subBuilder = ((flyteidl.core.Types.Error) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.Error) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 6; - break; - } - case 58: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (valueCase_ == 7) { - subBuilder = ((com.google.protobuf.Struct) value_).toBuilder(); - } - value_ = - input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Struct) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 7; - 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 flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - PRIMITIVE(1), - BLOB(2), - BINARY(3), - SCHEMA(4), - NONE_TYPE(5), - ERROR(6), - GENERIC(7), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return PRIMITIVE; - case 2: return BLOB; - case 3: return BINARY; - case 4: return SCHEMA; - case 5: return NONE_TYPE; - case 6: return ERROR; - case 7: return GENERIC; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int PRIMITIVE_FIELD_NUMBER = 1; - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public boolean hasPrimitive() { - return valueCase_ == 1; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive getPrimitive() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Primitive) value_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Primitive) value_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - - public static final int BLOB_FIELD_NUMBER = 2; - /** - * .flyteidl.core.Blob blob = 2; - */ - public boolean hasBlob() { - return valueCase_ == 2; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.Blob getBlob() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.Blob) value_; - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.Blob) value_; - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - - public static final int BINARY_FIELD_NUMBER = 3; - /** - * .flyteidl.core.Binary binary = 3; - */ - public boolean hasBinary() { - return valueCase_ == 3; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.Binary getBinary() { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.Binary) value_; - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.Binary) value_; - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - - public static final int SCHEMA_FIELD_NUMBER = 4; - /** - * .flyteidl.core.Schema schema = 4; - */ - public boolean hasSchema() { - return valueCase_ == 4; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.Schema getSchema() { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.Schema) value_; - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.Schema) value_; - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - - public static final int NONE_TYPE_FIELD_NUMBER = 5; - /** - * .flyteidl.core.Void none_type = 5; - */ - public boolean hasNoneType() { - return valueCase_ == 5; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.Void getNoneType() { - if (valueCase_ == 5) { - return (flyteidl.core.Literals.Void) value_; - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { - if (valueCase_ == 5) { - return (flyteidl.core.Literals.Void) value_; - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - - public static final int ERROR_FIELD_NUMBER = 6; - /** - * .flyteidl.core.Error error = 6; - */ - public boolean hasError() { - return valueCase_ == 6; - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.Error getError() { - if (valueCase_ == 6) { - return (flyteidl.core.Types.Error) value_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { - if (valueCase_ == 6) { - return (flyteidl.core.Types.Error) value_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - - public static final int GENERIC_FIELD_NUMBER = 7; - /** - * .google.protobuf.Struct generic = 7; - */ - public boolean hasGeneric() { - return valueCase_ == 7; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.Struct getGeneric() { - if (valueCase_ == 7) { - return (com.google.protobuf.Struct) value_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { - if (valueCase_ == 7) { - return (com.google.protobuf.Struct) value_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.Primitive) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Literals.Blob) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Literals.Binary) value_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (flyteidl.core.Literals.Schema) value_); - } - if (valueCase_ == 5) { - output.writeMessage(5, (flyteidl.core.Literals.Void) value_); - } - if (valueCase_ == 6) { - output.writeMessage(6, (flyteidl.core.Types.Error) value_); - } - if (valueCase_ == 7) { - output.writeMessage(7, (com.google.protobuf.Struct) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.Primitive) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Literals.Blob) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Literals.Binary) value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.Literals.Schema) value_); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.core.Literals.Void) value_); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (flyteidl.core.Types.Error) value_); - } - if (valueCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.protobuf.Struct) 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 flyteidl.core.Literals.Scalar)) { - return super.equals(obj); - } - flyteidl.core.Literals.Scalar other = (flyteidl.core.Literals.Scalar) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getPrimitive() - .equals(other.getPrimitive())) return false; - break; - case 2: - if (!getBlob() - .equals(other.getBlob())) return false; - break; - case 3: - if (!getBinary() - .equals(other.getBinary())) return false; - break; - case 4: - if (!getSchema() - .equals(other.getSchema())) return false; - break; - case 5: - if (!getNoneType() - .equals(other.getNoneType())) return false; - break; - case 6: - if (!getError() - .equals(other.getError())) return false; - break; - case 7: - if (!getGeneric() - .equals(other.getGeneric())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; - hash = (53 * hash) + getPrimitive().hashCode(); - break; - case 2: - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); - break; - case 3: - hash = (37 * hash) + BINARY_FIELD_NUMBER; - hash = (53 * hash) + getBinary().hashCode(); - break; - case 4: - hash = (37 * hash) + SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSchema().hashCode(); - break; - case 5: - hash = (37 * hash) + NONE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getNoneType().hashCode(); - break; - case 6: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 7: - hash = (37 * hash) + GENERIC_FIELD_NUMBER; - hash = (53 * hash) + getGeneric().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Scalar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Scalar parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Scalar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Scalar parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Scalar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Scalar parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Scalar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Scalar 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 flyteidl.core.Literals.Scalar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Scalar 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 flyteidl.core.Literals.Scalar parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Scalar 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(flyteidl.core.Literals.Scalar 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 flyteidl.core.Scalar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Scalar) - flyteidl.core.Literals.ScalarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); - } - - // Construct using flyteidl.core.Literals.Scalar.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(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Scalar getDefaultInstanceForType() { - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Scalar build() { - flyteidl.core.Literals.Scalar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Scalar buildPartial() { - flyteidl.core.Literals.Scalar result = new flyteidl.core.Literals.Scalar(this); - if (valueCase_ == 1) { - if (primitiveBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = primitiveBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (blobBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = blobBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (binaryBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = binaryBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (schemaBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = schemaBuilder_.build(); - } - } - if (valueCase_ == 5) { - if (noneTypeBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = noneTypeBuilder_.build(); - } - } - if (valueCase_ == 6) { - if (errorBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = errorBuilder_.build(); - } - } - if (valueCase_ == 7) { - if (genericBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = genericBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - 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 flyteidl.core.Literals.Scalar) { - return mergeFrom((flyteidl.core.Literals.Scalar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Scalar other) { - if (other == flyteidl.core.Literals.Scalar.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case PRIMITIVE: { - mergePrimitive(other.getPrimitive()); - break; - } - case BLOB: { - mergeBlob(other.getBlob()); - break; - } - case BINARY: { - mergeBinary(other.getBinary()); - break; - } - case SCHEMA: { - mergeSchema(other.getSchema()); - break; - } - case NONE_TYPE: { - mergeNoneType(other.getNoneType()); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case GENERIC: { - mergeGeneric(other.getGeneric()); - break; - } - case VALUE_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 { - flyteidl.core.Literals.Scalar parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Scalar) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public boolean hasPrimitive() { - return valueCase_ == 1; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive getPrimitive() { - if (primitiveBuilder_ == null) { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Primitive) value_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return primitiveBuilder_.getMessage(); - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { - if (primitiveBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - primitiveBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder setPrimitive( - flyteidl.core.Literals.Primitive.Builder builderForValue) { - if (primitiveBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - primitiveBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { - if (primitiveBuilder_ == null) { - if (valueCase_ == 1 && - value_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - primitiveBuilder_.mergeFrom(value); - } - primitiveBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder clearPrimitive() { - if (primitiveBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - primitiveBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { - return getPrimitiveFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { - if ((valueCase_ == 1) && (primitiveBuilder_ != null)) { - return primitiveBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Primitive) value_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> - getPrimitiveFieldBuilder() { - if (primitiveBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( - (flyteidl.core.Literals.Primitive) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return primitiveBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> blobBuilder_; - /** - * .flyteidl.core.Blob blob = 2; - */ - public boolean hasBlob() { - return valueCase_ == 2; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.Blob getBlob() { - if (blobBuilder_ == null) { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.Blob) value_; - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return blobBuilder_.getMessage(); - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public Builder setBlob(flyteidl.core.Literals.Blob value) { - if (blobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - blobBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public Builder setBlob( - flyteidl.core.Literals.Blob.Builder builderForValue) { - if (blobBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - blobBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public Builder mergeBlob(flyteidl.core.Literals.Blob value) { - if (blobBuilder_ == null) { - if (valueCase_ == 2 && - value_ != flyteidl.core.Literals.Blob.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Blob.newBuilder((flyteidl.core.Literals.Blob) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - blobBuilder_.mergeFrom(value); - } - blobBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public Builder clearBlob() { - if (blobBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - blobBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.Blob.Builder getBlobBuilder() { - return getBlobFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { - if ((valueCase_ == 2) && (blobBuilder_ != null)) { - return blobBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.Blob) value_; - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Blob blob = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> - getBlobFieldBuilder() { - if (blobBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = flyteidl.core.Literals.Blob.getDefaultInstance(); - } - blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder>( - (flyteidl.core.Literals.Blob) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return blobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> binaryBuilder_; - /** - * .flyteidl.core.Binary binary = 3; - */ - public boolean hasBinary() { - return valueCase_ == 3; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.Binary getBinary() { - if (binaryBuilder_ == null) { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.Binary) value_; - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return binaryBuilder_.getMessage(); - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public Builder setBinary(flyteidl.core.Literals.Binary value) { - if (binaryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - binaryBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public Builder setBinary( - flyteidl.core.Literals.Binary.Builder builderForValue) { - if (binaryBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - binaryBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public Builder mergeBinary(flyteidl.core.Literals.Binary value) { - if (binaryBuilder_ == null) { - if (valueCase_ == 3 && - value_ != flyteidl.core.Literals.Binary.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Binary.newBuilder((flyteidl.core.Literals.Binary) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - binaryBuilder_.mergeFrom(value); - } - binaryBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public Builder clearBinary() { - if (binaryBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - binaryBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.Binary.Builder getBinaryBuilder() { - return getBinaryFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { - if ((valueCase_ == 3) && (binaryBuilder_ != null)) { - return binaryBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.Binary) value_; - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Binary binary = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> - getBinaryFieldBuilder() { - if (binaryBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = flyteidl.core.Literals.Binary.getDefaultInstance(); - } - binaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder>( - (flyteidl.core.Literals.Binary) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return binaryBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> schemaBuilder_; - /** - * .flyteidl.core.Schema schema = 4; - */ - public boolean hasSchema() { - return valueCase_ == 4; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.Schema getSchema() { - if (schemaBuilder_ == null) { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.Schema) value_; - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return schemaBuilder_.getMessage(); - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public Builder setSchema(flyteidl.core.Literals.Schema value) { - if (schemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - schemaBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public Builder setSchema( - flyteidl.core.Literals.Schema.Builder builderForValue) { - if (schemaBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - schemaBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 4; - return this; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public Builder mergeSchema(flyteidl.core.Literals.Schema value) { - if (schemaBuilder_ == null) { - if (valueCase_ == 4 && - value_ != flyteidl.core.Literals.Schema.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Schema.newBuilder((flyteidl.core.Literals.Schema) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - schemaBuilder_.mergeFrom(value); - } - schemaBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public Builder clearSchema() { - if (schemaBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - schemaBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.Schema.Builder getSchemaBuilder() { - return getSchemaFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { - if ((valueCase_ == 4) && (schemaBuilder_ != null)) { - return schemaBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.Schema) value_; - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Schema schema = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> - getSchemaFieldBuilder() { - if (schemaBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = flyteidl.core.Literals.Schema.getDefaultInstance(); - } - schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder>( - (flyteidl.core.Literals.Schema) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 4; - onChanged();; - return schemaBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> noneTypeBuilder_; - /** - * .flyteidl.core.Void none_type = 5; - */ - public boolean hasNoneType() { - return valueCase_ == 5; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.Void getNoneType() { - if (noneTypeBuilder_ == null) { - if (valueCase_ == 5) { - return (flyteidl.core.Literals.Void) value_; - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return noneTypeBuilder_.getMessage(); - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public Builder setNoneType(flyteidl.core.Literals.Void value) { - if (noneTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - noneTypeBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public Builder setNoneType( - flyteidl.core.Literals.Void.Builder builderForValue) { - if (noneTypeBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - noneTypeBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 5; - return this; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public Builder mergeNoneType(flyteidl.core.Literals.Void value) { - if (noneTypeBuilder_ == null) { - if (valueCase_ == 5 && - value_ != flyteidl.core.Literals.Void.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Void.newBuilder((flyteidl.core.Literals.Void) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - noneTypeBuilder_.mergeFrom(value); - } - noneTypeBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public Builder clearNoneType() { - if (noneTypeBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - noneTypeBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.Void.Builder getNoneTypeBuilder() { - return getNoneTypeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { - if ((valueCase_ == 5) && (noneTypeBuilder_ != null)) { - return noneTypeBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (flyteidl.core.Literals.Void) value_; - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Void none_type = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> - getNoneTypeFieldBuilder() { - if (noneTypeBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = flyteidl.core.Literals.Void.getDefaultInstance(); - } - noneTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder>( - (flyteidl.core.Literals.Void) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 5; - onChanged();; - return noneTypeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; - /** - * .flyteidl.core.Error error = 6; - */ - public boolean hasError() { - return valueCase_ == 6; - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.Error getError() { - if (errorBuilder_ == null) { - if (valueCase_ == 6) { - return (flyteidl.core.Types.Error) value_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } else { - if (valueCase_ == 6) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Error error = 6; - */ - public Builder setError(flyteidl.core.Types.Error value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .flyteidl.core.Error error = 6; - */ - public Builder setError( - flyteidl.core.Types.Error.Builder builderForValue) { - if (errorBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 6; - return this; - } - /** - * .flyteidl.core.Error error = 6; - */ - public Builder mergeError(flyteidl.core.Types.Error value) { - if (errorBuilder_ == null) { - if (valueCase_ == 6 && - value_ != flyteidl.core.Types.Error.getDefaultInstance()) { - value_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 6) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .flyteidl.core.Error error = 6; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.Error.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { - if ((valueCase_ == 6) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 6) { - return (flyteidl.core.Types.Error) value_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Error error = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(valueCase_ == 6)) { - value_ = flyteidl.core.Types.Error.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( - (flyteidl.core.Types.Error) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 6; - onChanged();; - return errorBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> genericBuilder_; - /** - * .google.protobuf.Struct generic = 7; - */ - public boolean hasGeneric() { - return valueCase_ == 7; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.Struct getGeneric() { - if (genericBuilder_ == null) { - if (valueCase_ == 7) { - return (com.google.protobuf.Struct) value_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } else { - if (valueCase_ == 7) { - return genericBuilder_.getMessage(); - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - } - /** - * .google.protobuf.Struct generic = 7; - */ - public Builder setGeneric(com.google.protobuf.Struct value) { - if (genericBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - genericBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public Builder setGeneric( - com.google.protobuf.Struct.Builder builderForValue) { - if (genericBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - genericBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 7; - return this; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public Builder mergeGeneric(com.google.protobuf.Struct value) { - if (genericBuilder_ == null) { - if (valueCase_ == 7 && - value_ != com.google.protobuf.Struct.getDefaultInstance()) { - value_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 7) { - genericBuilder_.mergeFrom(value); - } - genericBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public Builder clearGeneric() { - if (genericBuilder_ == null) { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - } - genericBuilder_.clear(); - } - return this; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.Struct.Builder getGenericBuilder() { - return getGenericFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { - if ((valueCase_ == 7) && (genericBuilder_ != null)) { - return genericBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 7) { - return (com.google.protobuf.Struct) value_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - } - /** - * .google.protobuf.Struct generic = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getGenericFieldBuilder() { - if (genericBuilder_ == null) { - if (!(valueCase_ == 7)) { - value_ = com.google.protobuf.Struct.getDefaultInstance(); - } - genericBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - (com.google.protobuf.Struct) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 7; - onChanged();; - return genericBuilder_; - } - @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:flyteidl.core.Scalar) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Scalar) - private static final flyteidl.core.Literals.Scalar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Scalar(); - } - - public static flyteidl.core.Literals.Scalar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Scalar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Scalar(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 flyteidl.core.Literals.Scalar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Literal) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - boolean hasScalar(); - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - flyteidl.core.Literals.Scalar getScalar(); - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); - - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - boolean hasCollection(); - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - flyteidl.core.Literals.LiteralCollection getCollection(); - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder(); - - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - boolean hasMap(); - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - flyteidl.core.Literals.LiteralMap getMap(); - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder(); - - public flyteidl.core.Literals.Literal.ValueCase getValueCase(); - } - /** - *
-   * A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
-   * 
- * - * Protobuf type {@code flyteidl.core.Literal} - */ - public static final class Literal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Literal) - LiteralOrBuilder { - private static final long serialVersionUID = 0L; - // Use Literal.newBuilder() to construct. - private Literal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Literal() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Literal( - 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: { - flyteidl.core.Literals.Scalar.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - flyteidl.core.Literals.LiteralCollection.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((flyteidl.core.Literals.LiteralCollection) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.LiteralCollection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralCollection) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - SCALAR(1), - COLLECTION(2), - MAP(3), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return SCALAR; - case 2: return COLLECTION; - case 3: return MAP; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int SCALAR_FIELD_NUMBER = 1; - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public boolean hasScalar() { - return valueCase_ == 1; - } - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - - public static final int COLLECTION_FIELD_NUMBER = 2; - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public boolean hasCollection() { - return valueCase_ == 2; - } - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollection getCollection() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.LiteralCollection) value_; - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.LiteralCollection) value_; - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - - public static final int MAP_FIELD_NUMBER = 3; - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public boolean hasMap() { - return valueCase_ == 3; - } - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMap getMap() { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.LiteralMap) value_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.LiteralMap) value_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Literals.LiteralCollection) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Literals.LiteralMap) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Literals.LiteralCollection) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Literals.LiteralMap) 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 flyteidl.core.Literals.Literal)) { - return super.equals(obj); - } - flyteidl.core.Literals.Literal other = (flyteidl.core.Literals.Literal) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getScalar() - .equals(other.getScalar())) return false; - break; - case 2: - if (!getCollection() - .equals(other.getCollection())) return false; - break; - case 3: - if (!getMap() - .equals(other.getMap())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + SCALAR_FIELD_NUMBER; - hash = (53 * hash) + getScalar().hashCode(); - break; - case 2: - hash = (37 * hash) + COLLECTION_FIELD_NUMBER; - hash = (53 * hash) + getCollection().hashCode(); - break; - case 3: - hash = (37 * hash) + MAP_FIELD_NUMBER; - hash = (53 * hash) + getMap().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Literal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Literal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Literal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Literal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Literal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Literal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Literal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Literal 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 flyteidl.core.Literals.Literal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Literal 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 flyteidl.core.Literals.Literal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Literal 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(flyteidl.core.Literals.Literal 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 simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
-     * 
- * - * Protobuf type {@code flyteidl.core.Literal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Literal) - flyteidl.core.Literals.LiteralOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); - } - - // Construct using flyteidl.core.Literals.Literal.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(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Literal getDefaultInstanceForType() { - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Literal build() { - flyteidl.core.Literals.Literal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Literal buildPartial() { - flyteidl.core.Literals.Literal result = new flyteidl.core.Literals.Literal(this); - if (valueCase_ == 1) { - if (scalarBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = scalarBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (collectionBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = collectionBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (mapBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = mapBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - 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 flyteidl.core.Literals.Literal) { - return mergeFrom((flyteidl.core.Literals.Literal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Literal other) { - if (other == flyteidl.core.Literals.Literal.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case SCALAR: { - mergeScalar(other.getScalar()); - break; - } - case COLLECTION: { - mergeCollection(other.getCollection()); - break; - } - case MAP: { - mergeMap(other.getMap()); - break; - } - case VALUE_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 { - flyteidl.core.Literals.Literal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Literal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public boolean hasScalar() { - return valueCase_ == 1; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (scalarBuilder_ == null) { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return scalarBuilder_.getMessage(); - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder setScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - scalarBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder setScalar( - flyteidl.core.Literals.Scalar.Builder builderForValue) { - if (scalarBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - scalarBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (valueCase_ == 1 && - value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - scalarBuilder_.mergeFrom(value); - } - scalarBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder clearScalar() { - if (scalarBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - scalarBuilder_.clear(); - } - return this; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { - return getScalarFieldBuilder().getBuilder(); - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if ((valueCase_ == 1) && (scalarBuilder_ != null)) { - return scalarBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> - getScalarFieldBuilder() { - if (scalarBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( - (flyteidl.core.Literals.Scalar) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return scalarBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> collectionBuilder_; - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public boolean hasCollection() { - return valueCase_ == 2; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollection getCollection() { - if (collectionBuilder_ == null) { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.LiteralCollection) value_; - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return collectionBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public Builder setCollection(flyteidl.core.Literals.LiteralCollection value) { - if (collectionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - collectionBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public Builder setCollection( - flyteidl.core.Literals.LiteralCollection.Builder builderForValue) { - if (collectionBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - collectionBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public Builder mergeCollection(flyteidl.core.Literals.LiteralCollection value) { - if (collectionBuilder_ == null) { - if (valueCase_ == 2 && - value_ != flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) { - value_ = flyteidl.core.Literals.LiteralCollection.newBuilder((flyteidl.core.Literals.LiteralCollection) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - collectionBuilder_.mergeFrom(value); - } - collectionBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public Builder clearCollection() { - if (collectionBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - collectionBuilder_.clear(); - } - return this; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollection.Builder getCollectionBuilder() { - return getCollectionFieldBuilder().getBuilder(); - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { - if ((valueCase_ == 2) && (collectionBuilder_ != null)) { - return collectionBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.LiteralCollection) value_; - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> - getCollectionFieldBuilder() { - if (collectionBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder>( - (flyteidl.core.Literals.LiteralCollection) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return collectionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> mapBuilder_; - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public boolean hasMap() { - return valueCase_ == 3; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMap getMap() { - if (mapBuilder_ == null) { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.LiteralMap) value_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return mapBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public Builder setMap(flyteidl.core.Literals.LiteralMap value) { - if (mapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - mapBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public Builder setMap( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (mapBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - mapBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public Builder mergeMap(flyteidl.core.Literals.LiteralMap value) { - if (mapBuilder_ == null) { - if (valueCase_ == 3 && - value_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - value_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - mapBuilder_.mergeFrom(value); - } - mapBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public Builder clearMap() { - if (mapBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - mapBuilder_.clear(); - } - return this; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMap.Builder getMapBuilder() { - return getMapFieldBuilder().getBuilder(); - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { - if ((valueCase_ == 3) && (mapBuilder_ != null)) { - return mapBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.LiteralMap) value_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getMapFieldBuilder() { - if (mapBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return mapBuilder_; - } - @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:flyteidl.core.Literal) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Literal) - private static final flyteidl.core.Literals.Literal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Literal(); - } - - public static flyteidl.core.Literals.Literal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Literal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Literal(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 flyteidl.core.Literals.Literal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralCollectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralCollection) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - java.util.List - getLiteralsList(); - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - flyteidl.core.Literals.Literal getLiterals(int index); - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - int getLiteralsCount(); - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - java.util.List - getLiteralsOrBuilderList(); - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( - int index); - } - /** - *
-   * A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
-   * 
- * - * Protobuf type {@code flyteidl.core.LiteralCollection} - */ - public static final class LiteralCollection extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralCollection) - LiteralCollectionOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiteralCollection.newBuilder() to construct. - private LiteralCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiteralCollection() { - literals_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiteralCollection( - 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)) { - literals_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - literals_.add( - input.readMessage(flyteidl.core.Literals.Literal.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)) { - literals_ = java.util.Collections.unmodifiableList(literals_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); - } - - public static final int LITERALS_FIELD_NUMBER = 1; - private java.util.List literals_; - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List getLiteralsList() { - return literals_; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List - getLiteralsOrBuilderList() { - return literals_; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public int getLiteralsCount() { - return literals_.size(); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal getLiterals(int index) { - return literals_.get(index); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( - int index) { - return literals_.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 < literals_.size(); i++) { - output.writeMessage(1, literals_.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 < literals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, literals_.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 flyteidl.core.Literals.LiteralCollection)) { - return super.equals(obj); - } - flyteidl.core.Literals.LiteralCollection other = (flyteidl.core.Literals.LiteralCollection) obj; - - if (!getLiteralsList() - .equals(other.getLiteralsList())) 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 (getLiteralsCount() > 0) { - hash = (37 * hash) + LITERALS_FIELD_NUMBER; - hash = (53 * hash) + getLiteralsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.LiteralCollection parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralCollection 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 flyteidl.core.Literals.LiteralCollection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralCollection 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 flyteidl.core.Literals.LiteralCollection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralCollection 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(flyteidl.core.Literals.LiteralCollection 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 collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
-     * 
- * - * Protobuf type {@code flyteidl.core.LiteralCollection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralCollection) - flyteidl.core.Literals.LiteralCollectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); - } - - // Construct using flyteidl.core.Literals.LiteralCollection.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLiteralsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (literalsBuilder_ == null) { - literals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - literalsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralCollection getDefaultInstanceForType() { - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralCollection build() { - flyteidl.core.Literals.LiteralCollection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralCollection buildPartial() { - flyteidl.core.Literals.LiteralCollection result = new flyteidl.core.Literals.LiteralCollection(this); - int from_bitField0_ = bitField0_; - if (literalsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - literals_ = java.util.Collections.unmodifiableList(literals_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.literals_ = literals_; - } else { - result.literals_ = literalsBuilder_.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 flyteidl.core.Literals.LiteralCollection) { - return mergeFrom((flyteidl.core.Literals.LiteralCollection)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.LiteralCollection other) { - if (other == flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) return this; - if (literalsBuilder_ == null) { - if (!other.literals_.isEmpty()) { - if (literals_.isEmpty()) { - literals_ = other.literals_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLiteralsIsMutable(); - literals_.addAll(other.literals_); - } - onChanged(); - } - } else { - if (!other.literals_.isEmpty()) { - if (literalsBuilder_.isEmpty()) { - literalsBuilder_.dispose(); - literalsBuilder_ = null; - literals_ = other.literals_; - bitField0_ = (bitField0_ & ~0x00000001); - literalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLiteralsFieldBuilder() : null; - } else { - literalsBuilder_.addAllMessages(other.literals_); - } - } - } - 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 { - flyteidl.core.Literals.LiteralCollection parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.LiteralCollection) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List literals_ = - java.util.Collections.emptyList(); - private void ensureLiteralsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - literals_ = new java.util.ArrayList(literals_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> literalsBuilder_; - - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List getLiteralsList() { - if (literalsBuilder_ == null) { - return java.util.Collections.unmodifiableList(literals_); - } else { - return literalsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public int getLiteralsCount() { - if (literalsBuilder_ == null) { - return literals_.size(); - } else { - return literalsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal getLiterals(int index) { - if (literalsBuilder_ == null) { - return literals_.get(index); - } else { - return literalsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder setLiterals( - int index, flyteidl.core.Literals.Literal value) { - if (literalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiteralsIsMutable(); - literals_.set(index, value); - onChanged(); - } else { - literalsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder setLiterals( - int index, flyteidl.core.Literals.Literal.Builder builderForValue) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - literals_.set(index, builderForValue.build()); - onChanged(); - } else { - literalsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addLiterals(flyteidl.core.Literals.Literal value) { - if (literalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiteralsIsMutable(); - literals_.add(value); - onChanged(); - } else { - literalsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addLiterals( - int index, flyteidl.core.Literals.Literal value) { - if (literalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiteralsIsMutable(); - literals_.add(index, value); - onChanged(); - } else { - literalsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addLiterals( - flyteidl.core.Literals.Literal.Builder builderForValue) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - literals_.add(builderForValue.build()); - onChanged(); - } else { - literalsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addLiterals( - int index, flyteidl.core.Literals.Literal.Builder builderForValue) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - literals_.add(index, builderForValue.build()); - onChanged(); - } else { - literalsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addAllLiterals( - java.lang.Iterable values) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, literals_); - onChanged(); - } else { - literalsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder clearLiterals() { - if (literalsBuilder_ == null) { - literals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - literalsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder removeLiterals(int index) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - literals_.remove(index); - onChanged(); - } else { - literalsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal.Builder getLiteralsBuilder( - int index) { - return getLiteralsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( - int index) { - if (literalsBuilder_ == null) { - return literals_.get(index); } else { - return literalsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List - getLiteralsOrBuilderList() { - if (literalsBuilder_ != null) { - return literalsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(literals_); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder() { - return getLiteralsFieldBuilder().addBuilder( - flyteidl.core.Literals.Literal.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder( - int index) { - return getLiteralsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.Literal.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List - getLiteralsBuilderList() { - return getLiteralsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> - getLiteralsFieldBuilder() { - if (literalsBuilder_ == null) { - literalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( - literals_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - literals_ = null; - } - return literalsBuilder_; - } - @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:flyteidl.core.LiteralCollection) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralCollection) - private static final flyteidl.core.Literals.LiteralCollection DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralCollection(); - } - - public static flyteidl.core.Literals.LiteralCollection getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiteralCollection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiteralCollection(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 flyteidl.core.Literals.LiteralCollection getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralMap) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - int getLiteralsCount(); - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - boolean containsLiterals( - java.lang.String key); - /** - * Use {@link #getLiteralsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLiterals(); - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - java.util.Map - getLiteralsMap(); - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - flyteidl.core.Literals.Literal getLiteralsOrDefault( - java.lang.String key, - flyteidl.core.Literals.Literal defaultValue); - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - flyteidl.core.Literals.Literal getLiteralsOrThrow( - java.lang.String key); - } - /** - *
-   * A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
-   * 
- * - * Protobuf type {@code flyteidl.core.LiteralMap} - */ - public static final class LiteralMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralMap) - LiteralMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiteralMap.newBuilder() to construct. - private LiteralMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiteralMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiteralMap( - 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)) { - literals_ = com.google.protobuf.MapField.newMapField( - LiteralsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - literals__ = input.readMessage( - LiteralsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - literals_.getMutableMap().put( - literals__.getKey(), literals__.getValue()); - 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 flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetLiterals(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); - } - - public static final int LITERALS_FIELD_NUMBER = 1; - private static final class LiteralsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Literals.Literal> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Literals.Literal.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Literals.Literal> literals_; - private com.google.protobuf.MapField - internalGetLiterals() { - if (literals_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LiteralsDefaultEntryHolder.defaultEntry); - } - return literals_; - } - - public int getLiteralsCount() { - return internalGetLiterals().getMap().size(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public boolean containsLiterals( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetLiterals().getMap().containsKey(key); - } - /** - * Use {@link #getLiteralsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getLiterals() { - return getLiteralsMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public java.util.Map getLiteralsMap() { - return internalGetLiterals().getMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public flyteidl.core.Literals.Literal getLiteralsOrDefault( - java.lang.String key, - flyteidl.core.Literals.Literal defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLiterals().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public flyteidl.core.Literals.Literal getLiteralsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLiterals().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLiterals(), - LiteralsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetLiterals().getMap().entrySet()) { - com.google.protobuf.MapEntry - literals__ = LiteralsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, literals__); - } - 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 flyteidl.core.Literals.LiteralMap)) { - return super.equals(obj); - } - flyteidl.core.Literals.LiteralMap other = (flyteidl.core.Literals.LiteralMap) obj; - - if (!internalGetLiterals().equals( - other.internalGetLiterals())) 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 (!internalGetLiterals().getMap().isEmpty()) { - hash = (37 * hash) + LITERALS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLiterals().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.LiteralMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralMap 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 flyteidl.core.Literals.LiteralMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralMap 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 flyteidl.core.Literals.LiteralMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralMap 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(flyteidl.core.Literals.LiteralMap 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 map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
-     * 
- * - * Protobuf type {@code flyteidl.core.LiteralMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralMap) - flyteidl.core.Literals.LiteralMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetLiterals(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableLiterals(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); - } - - // Construct using flyteidl.core.Literals.LiteralMap.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(); - internalGetMutableLiterals().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralMap getDefaultInstanceForType() { - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralMap build() { - flyteidl.core.Literals.LiteralMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralMap buildPartial() { - flyteidl.core.Literals.LiteralMap result = new flyteidl.core.Literals.LiteralMap(this); - int from_bitField0_ = bitField0_; - result.literals_ = internalGetLiterals(); - result.literals_.makeImmutable(); - 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 flyteidl.core.Literals.LiteralMap) { - return mergeFrom((flyteidl.core.Literals.LiteralMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.LiteralMap other) { - if (other == flyteidl.core.Literals.LiteralMap.getDefaultInstance()) return this; - internalGetMutableLiterals().mergeFrom( - other.internalGetLiterals()); - 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 { - flyteidl.core.Literals.LiteralMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.LiteralMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Literals.Literal> literals_; - private com.google.protobuf.MapField - internalGetLiterals() { - if (literals_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LiteralsDefaultEntryHolder.defaultEntry); - } - return literals_; - } - private com.google.protobuf.MapField - internalGetMutableLiterals() { - onChanged();; - if (literals_ == null) { - literals_ = com.google.protobuf.MapField.newMapField( - LiteralsDefaultEntryHolder.defaultEntry); - } - if (!literals_.isMutable()) { - literals_ = literals_.copy(); - } - return literals_; - } - - public int getLiteralsCount() { - return internalGetLiterals().getMap().size(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public boolean containsLiterals( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetLiterals().getMap().containsKey(key); - } - /** - * Use {@link #getLiteralsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getLiterals() { - return getLiteralsMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public java.util.Map getLiteralsMap() { - return internalGetLiterals().getMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public flyteidl.core.Literals.Literal getLiteralsOrDefault( - java.lang.String key, - flyteidl.core.Literals.Literal defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLiterals().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public flyteidl.core.Literals.Literal getLiteralsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLiterals().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLiterals() { - internalGetMutableLiterals().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public Builder removeLiterals( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLiterals().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableLiterals() { - return internalGetMutableLiterals().getMutableMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - public Builder putLiterals( - java.lang.String key, - flyteidl.core.Literals.Literal value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLiterals().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public Builder putAllLiterals( - java.util.Map values) { - internalGetMutableLiterals().getMutableMap() - .putAll(values); - 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:flyteidl.core.LiteralMap) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralMap) - private static final flyteidl.core.Literals.LiteralMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralMap(); - } - - public static flyteidl.core.Literals.LiteralMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiteralMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiteralMap(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 flyteidl.core.Literals.LiteralMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BindingDataCollectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataCollection) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - java.util.List - getBindingsList(); - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - flyteidl.core.Literals.BindingData getBindings(int index); - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - int getBindingsCount(); - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - java.util.List - getBindingsOrBuilderList(); - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( - int index); - } - /** - *
-   * A collection of BindingData items.
-   * 
- * - * Protobuf type {@code flyteidl.core.BindingDataCollection} - */ - public static final class BindingDataCollection extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataCollection) - BindingDataCollectionOrBuilder { - private static final long serialVersionUID = 0L; - // Use BindingDataCollection.newBuilder() to construct. - private BindingDataCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BindingDataCollection() { - bindings_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BindingDataCollection( - 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)) { - bindings_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - bindings_.add( - input.readMessage(flyteidl.core.Literals.BindingData.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)) { - bindings_ = java.util.Collections.unmodifiableList(bindings_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); - } - - public static final int BINDINGS_FIELD_NUMBER = 1; - private java.util.List bindings_; - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List getBindingsList() { - return bindings_; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List - getBindingsOrBuilderList() { - return bindings_; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public int getBindingsCount() { - return bindings_.size(); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData getBindings(int index) { - return bindings_.get(index); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( - int index) { - return bindings_.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 < bindings_.size(); i++) { - output.writeMessage(1, bindings_.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 < bindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, bindings_.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 flyteidl.core.Literals.BindingDataCollection)) { - return super.equals(obj); - } - flyteidl.core.Literals.BindingDataCollection other = (flyteidl.core.Literals.BindingDataCollection) obj; - - if (!getBindingsList() - .equals(other.getBindingsList())) 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 (getBindingsCount() > 0) { - hash = (37 * hash) + BINDINGS_FIELD_NUMBER; - hash = (53 * hash) + getBindingsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataCollection 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 flyteidl.core.Literals.BindingDataCollection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataCollection 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 flyteidl.core.Literals.BindingDataCollection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataCollection 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(flyteidl.core.Literals.BindingDataCollection 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 collection of BindingData items.
-     * 
- * - * Protobuf type {@code flyteidl.core.BindingDataCollection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataCollection) - flyteidl.core.Literals.BindingDataCollectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); - } - - // Construct using flyteidl.core.Literals.BindingDataCollection.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBindingsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (bindingsBuilder_ == null) { - bindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - bindingsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataCollection getDefaultInstanceForType() { - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataCollection build() { - flyteidl.core.Literals.BindingDataCollection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataCollection buildPartial() { - flyteidl.core.Literals.BindingDataCollection result = new flyteidl.core.Literals.BindingDataCollection(this); - int from_bitField0_ = bitField0_; - if (bindingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - bindings_ = java.util.Collections.unmodifiableList(bindings_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.bindings_ = bindings_; - } else { - result.bindings_ = bindingsBuilder_.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 flyteidl.core.Literals.BindingDataCollection) { - return mergeFrom((flyteidl.core.Literals.BindingDataCollection)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.BindingDataCollection other) { - if (other == flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) return this; - if (bindingsBuilder_ == null) { - if (!other.bindings_.isEmpty()) { - if (bindings_.isEmpty()) { - bindings_ = other.bindings_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBindingsIsMutable(); - bindings_.addAll(other.bindings_); - } - onChanged(); - } - } else { - if (!other.bindings_.isEmpty()) { - if (bindingsBuilder_.isEmpty()) { - bindingsBuilder_.dispose(); - bindingsBuilder_ = null; - bindings_ = other.bindings_; - bitField0_ = (bitField0_ & ~0x00000001); - bindingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBindingsFieldBuilder() : null; - } else { - bindingsBuilder_.addAllMessages(other.bindings_); - } - } - } - 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 { - flyteidl.core.Literals.BindingDataCollection parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.BindingDataCollection) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List bindings_ = - java.util.Collections.emptyList(); - private void ensureBindingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - bindings_ = new java.util.ArrayList(bindings_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingsBuilder_; - - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List getBindingsList() { - if (bindingsBuilder_ == null) { - return java.util.Collections.unmodifiableList(bindings_); - } else { - return bindingsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public int getBindingsCount() { - if (bindingsBuilder_ == null) { - return bindings_.size(); - } else { - return bindingsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData getBindings(int index) { - if (bindingsBuilder_ == null) { - return bindings_.get(index); - } else { - return bindingsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder setBindings( - int index, flyteidl.core.Literals.BindingData value) { - if (bindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBindingsIsMutable(); - bindings_.set(index, value); - onChanged(); - } else { - bindingsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder setBindings( - int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.set(index, builderForValue.build()); - onChanged(); - } else { - bindingsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addBindings(flyteidl.core.Literals.BindingData value) { - if (bindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBindingsIsMutable(); - bindings_.add(value); - onChanged(); - } else { - bindingsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addBindings( - int index, flyteidl.core.Literals.BindingData value) { - if (bindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBindingsIsMutable(); - bindings_.add(index, value); - onChanged(); - } else { - bindingsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addBindings( - flyteidl.core.Literals.BindingData.Builder builderForValue) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.add(builderForValue.build()); - onChanged(); - } else { - bindingsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addBindings( - int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.add(index, builderForValue.build()); - onChanged(); - } else { - bindingsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addAllBindings( - java.lang.Iterable values) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bindings_); - onChanged(); - } else { - bindingsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder clearBindings() { - if (bindingsBuilder_ == null) { - bindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - bindingsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder removeBindings(int index) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.remove(index); - onChanged(); - } else { - bindingsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData.Builder getBindingsBuilder( - int index) { - return getBindingsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( - int index) { - if (bindingsBuilder_ == null) { - return bindings_.get(index); } else { - return bindingsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List - getBindingsOrBuilderList() { - if (bindingsBuilder_ != null) { - return bindingsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(bindings_); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder() { - return getBindingsFieldBuilder().addBuilder( - flyteidl.core.Literals.BindingData.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder( - int index) { - return getBindingsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.BindingData.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List - getBindingsBuilderList() { - return getBindingsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> - getBindingsFieldBuilder() { - if (bindingsBuilder_ == null) { - bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( - bindings_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - bindings_ = null; - } - return bindingsBuilder_; - } - @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:flyteidl.core.BindingDataCollection) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataCollection) - private static final flyteidl.core.Literals.BindingDataCollection DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataCollection(); - } - - public static flyteidl.core.Literals.BindingDataCollection getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindingDataCollection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindingDataCollection(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 flyteidl.core.Literals.BindingDataCollection getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BindingDataMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataMap) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - int getBindingsCount(); - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - boolean containsBindings( - java.lang.String key); - /** - * Use {@link #getBindingsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getBindings(); - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - java.util.Map - getBindingsMap(); - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - flyteidl.core.Literals.BindingData getBindingsOrDefault( - java.lang.String key, - flyteidl.core.Literals.BindingData defaultValue); - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - flyteidl.core.Literals.BindingData getBindingsOrThrow( - java.lang.String key); - } - /** - *
-   * A map of BindingData items.
-   * 
- * - * Protobuf type {@code flyteidl.core.BindingDataMap} - */ - public static final class BindingDataMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataMap) - BindingDataMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use BindingDataMap.newBuilder() to construct. - private BindingDataMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BindingDataMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BindingDataMap( - 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)) { - bindings_ = com.google.protobuf.MapField.newMapField( - BindingsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - bindings__ = input.readMessage( - BindingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - bindings_.getMutableMap().put( - bindings__.getKey(), bindings__.getValue()); - 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 flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetBindings(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); - } - - public static final int BINDINGS_FIELD_NUMBER = 1; - private static final class BindingsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Literals.BindingData> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Literals.BindingData.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Literals.BindingData> bindings_; - private com.google.protobuf.MapField - internalGetBindings() { - if (bindings_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BindingsDefaultEntryHolder.defaultEntry); - } - return bindings_; - } - - public int getBindingsCount() { - return internalGetBindings().getMap().size(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public boolean containsBindings( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetBindings().getMap().containsKey(key); - } - /** - * Use {@link #getBindingsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getBindings() { - return getBindingsMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public java.util.Map getBindingsMap() { - return internalGetBindings().getMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public flyteidl.core.Literals.BindingData getBindingsOrDefault( - java.lang.String key, - flyteidl.core.Literals.BindingData defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetBindings().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public flyteidl.core.Literals.BindingData getBindingsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetBindings().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetBindings(), - BindingsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetBindings().getMap().entrySet()) { - com.google.protobuf.MapEntry - bindings__ = BindingsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, bindings__); - } - 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 flyteidl.core.Literals.BindingDataMap)) { - return super.equals(obj); - } - flyteidl.core.Literals.BindingDataMap other = (flyteidl.core.Literals.BindingDataMap) obj; - - if (!internalGetBindings().equals( - other.internalGetBindings())) 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 (!internalGetBindings().getMap().isEmpty()) { - hash = (37 * hash) + BINDINGS_FIELD_NUMBER; - hash = (53 * hash) + internalGetBindings().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.BindingDataMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataMap 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 flyteidl.core.Literals.BindingDataMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataMap 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 flyteidl.core.Literals.BindingDataMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataMap 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(flyteidl.core.Literals.BindingDataMap 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 map of BindingData items.
-     * 
- * - * Protobuf type {@code flyteidl.core.BindingDataMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataMap) - flyteidl.core.Literals.BindingDataMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetBindings(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableBindings(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); - } - - // Construct using flyteidl.core.Literals.BindingDataMap.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(); - internalGetMutableBindings().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataMap getDefaultInstanceForType() { - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataMap build() { - flyteidl.core.Literals.BindingDataMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataMap buildPartial() { - flyteidl.core.Literals.BindingDataMap result = new flyteidl.core.Literals.BindingDataMap(this); - int from_bitField0_ = bitField0_; - result.bindings_ = internalGetBindings(); - result.bindings_.makeImmutable(); - 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 flyteidl.core.Literals.BindingDataMap) { - return mergeFrom((flyteidl.core.Literals.BindingDataMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.BindingDataMap other) { - if (other == flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) return this; - internalGetMutableBindings().mergeFrom( - other.internalGetBindings()); - 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 { - flyteidl.core.Literals.BindingDataMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.BindingDataMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Literals.BindingData> bindings_; - private com.google.protobuf.MapField - internalGetBindings() { - if (bindings_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BindingsDefaultEntryHolder.defaultEntry); - } - return bindings_; - } - private com.google.protobuf.MapField - internalGetMutableBindings() { - onChanged();; - if (bindings_ == null) { - bindings_ = com.google.protobuf.MapField.newMapField( - BindingsDefaultEntryHolder.defaultEntry); - } - if (!bindings_.isMutable()) { - bindings_ = bindings_.copy(); - } - return bindings_; - } - - public int getBindingsCount() { - return internalGetBindings().getMap().size(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public boolean containsBindings( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetBindings().getMap().containsKey(key); - } - /** - * Use {@link #getBindingsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getBindings() { - return getBindingsMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public java.util.Map getBindingsMap() { - return internalGetBindings().getMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public flyteidl.core.Literals.BindingData getBindingsOrDefault( - java.lang.String key, - flyteidl.core.Literals.BindingData defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetBindings().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public flyteidl.core.Literals.BindingData getBindingsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetBindings().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearBindings() { - internalGetMutableBindings().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public Builder removeBindings( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableBindings().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableBindings() { - return internalGetMutableBindings().getMutableMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - public Builder putBindings( - java.lang.String key, - flyteidl.core.Literals.BindingData value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableBindings().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public Builder putAllBindings( - java.util.Map values) { - internalGetMutableBindings().getMutableMap() - .putAll(values); - 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:flyteidl.core.BindingDataMap) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataMap) - private static final flyteidl.core.Literals.BindingDataMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataMap(); - } - - public static flyteidl.core.Literals.BindingDataMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindingDataMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindingDataMap(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 flyteidl.core.Literals.BindingDataMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BindingDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - boolean hasScalar(); - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - flyteidl.core.Literals.Scalar getScalar(); - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); - - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - boolean hasCollection(); - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - flyteidl.core.Literals.BindingDataCollection getCollection(); - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder(); - - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - boolean hasPromise(); - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - flyteidl.core.Types.OutputReference getPromise(); - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder(); - - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - boolean hasMap(); - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - flyteidl.core.Literals.BindingDataMap getMap(); - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder(); - - public flyteidl.core.Literals.BindingData.ValueCase getValueCase(); - } - /** - *
-   * Specifies either a simple value or a reference to another output.
-   * 
- * - * Protobuf type {@code flyteidl.core.BindingData} - */ - public static final class BindingData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BindingData) - BindingDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use BindingData.newBuilder() to construct. - private BindingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BindingData() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BindingData( - 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: { - flyteidl.core.Literals.Scalar.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - flyteidl.core.Literals.BindingDataCollection.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((flyteidl.core.Literals.BindingDataCollection) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.BindingDataCollection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataCollection) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - flyteidl.core.Types.OutputReference.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((flyteidl.core.Types.OutputReference) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Types.OutputReference.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.OutputReference) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - flyteidl.core.Literals.BindingDataMap.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((flyteidl.core.Literals.BindingDataMap) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.BindingDataMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataMap) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - SCALAR(1), - COLLECTION(2), - PROMISE(3), - MAP(4), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return SCALAR; - case 2: return COLLECTION; - case 3: return PROMISE; - case 4: return MAP; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int SCALAR_FIELD_NUMBER = 1; - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public boolean hasScalar() { - return valueCase_ == 1; - } - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - - public static final int COLLECTION_FIELD_NUMBER = 2; - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public boolean hasCollection() { - return valueCase_ == 2; - } - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollection getCollection() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.BindingDataCollection) value_; - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.BindingDataCollection) value_; - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - - public static final int PROMISE_FIELD_NUMBER = 3; - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public boolean hasPromise() { - return valueCase_ == 3; - } - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReference getPromise() { - if (valueCase_ == 3) { - return (flyteidl.core.Types.OutputReference) value_; - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { - if (valueCase_ == 3) { - return (flyteidl.core.Types.OutputReference) value_; - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - - public static final int MAP_FIELD_NUMBER = 4; - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public boolean hasMap() { - return valueCase_ == 4; - } - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMap getMap() { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.BindingDataMap) value_; - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.BindingDataMap) value_; - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (valueCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Literals.BindingDataCollection) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Types.OutputReference) value_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (flyteidl.core.Literals.BindingDataMap) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Literals.BindingDataCollection) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Types.OutputReference) value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.Literals.BindingDataMap) 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 flyteidl.core.Literals.BindingData)) { - return super.equals(obj); - } - flyteidl.core.Literals.BindingData other = (flyteidl.core.Literals.BindingData) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getScalar() - .equals(other.getScalar())) return false; - break; - case 2: - if (!getCollection() - .equals(other.getCollection())) return false; - break; - case 3: - if (!getPromise() - .equals(other.getPromise())) return false; - break; - case 4: - if (!getMap() - .equals(other.getMap())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + SCALAR_FIELD_NUMBER; - hash = (53 * hash) + getScalar().hashCode(); - break; - case 2: - hash = (37 * hash) + COLLECTION_FIELD_NUMBER; - hash = (53 * hash) + getCollection().hashCode(); - break; - case 3: - hash = (37 * hash) + PROMISE_FIELD_NUMBER; - hash = (53 * hash) + getPromise().hashCode(); - break; - case 4: - hash = (37 * hash) + MAP_FIELD_NUMBER; - hash = (53 * hash) + getMap().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.BindingData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingData 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 flyteidl.core.Literals.BindingData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingData 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 flyteidl.core.Literals.BindingData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingData 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(flyteidl.core.Literals.BindingData 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; - } - /** - *
-     * Specifies either a simple value or a reference to another output.
-     * 
- * - * Protobuf type {@code flyteidl.core.BindingData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingData) - flyteidl.core.Literals.BindingDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); - } - - // Construct using flyteidl.core.Literals.BindingData.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(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingData getDefaultInstanceForType() { - return flyteidl.core.Literals.BindingData.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.BindingData build() { - flyteidl.core.Literals.BindingData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingData buildPartial() { - flyteidl.core.Literals.BindingData result = new flyteidl.core.Literals.BindingData(this); - if (valueCase_ == 1) { - if (scalarBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = scalarBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (collectionBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = collectionBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (promiseBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = promiseBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (mapBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = mapBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - 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 flyteidl.core.Literals.BindingData) { - return mergeFrom((flyteidl.core.Literals.BindingData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.BindingData other) { - if (other == flyteidl.core.Literals.BindingData.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case SCALAR: { - mergeScalar(other.getScalar()); - break; - } - case COLLECTION: { - mergeCollection(other.getCollection()); - break; - } - case PROMISE: { - mergePromise(other.getPromise()); - break; - } - case MAP: { - mergeMap(other.getMap()); - break; - } - case VALUE_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 { - flyteidl.core.Literals.BindingData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.BindingData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public boolean hasScalar() { - return valueCase_ == 1; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (scalarBuilder_ == null) { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return scalarBuilder_.getMessage(); - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder setScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - scalarBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder setScalar( - flyteidl.core.Literals.Scalar.Builder builderForValue) { - if (scalarBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - scalarBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (valueCase_ == 1 && - value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - scalarBuilder_.mergeFrom(value); - } - scalarBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder clearScalar() { - if (scalarBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - scalarBuilder_.clear(); - } - return this; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { - return getScalarFieldBuilder().getBuilder(); - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if ((valueCase_ == 1) && (scalarBuilder_ != null)) { - return scalarBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> - getScalarFieldBuilder() { - if (scalarBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( - (flyteidl.core.Literals.Scalar) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return scalarBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> collectionBuilder_; - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public boolean hasCollection() { - return valueCase_ == 2; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollection getCollection() { - if (collectionBuilder_ == null) { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.BindingDataCollection) value_; - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return collectionBuilder_.getMessage(); - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public Builder setCollection(flyteidl.core.Literals.BindingDataCollection value) { - if (collectionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - collectionBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public Builder setCollection( - flyteidl.core.Literals.BindingDataCollection.Builder builderForValue) { - if (collectionBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - collectionBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public Builder mergeCollection(flyteidl.core.Literals.BindingDataCollection value) { - if (collectionBuilder_ == null) { - if (valueCase_ == 2 && - value_ != flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) { - value_ = flyteidl.core.Literals.BindingDataCollection.newBuilder((flyteidl.core.Literals.BindingDataCollection) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - collectionBuilder_.mergeFrom(value); - } - collectionBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public Builder clearCollection() { - if (collectionBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - collectionBuilder_.clear(); - } - return this; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollection.Builder getCollectionBuilder() { - return getCollectionFieldBuilder().getBuilder(); - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { - if ((valueCase_ == 2) && (collectionBuilder_ != null)) { - return collectionBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.BindingDataCollection) value_; - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> - getCollectionFieldBuilder() { - if (collectionBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder>( - (flyteidl.core.Literals.BindingDataCollection) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return collectionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> promiseBuilder_; - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public boolean hasPromise() { - return valueCase_ == 3; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReference getPromise() { - if (promiseBuilder_ == null) { - if (valueCase_ == 3) { - return (flyteidl.core.Types.OutputReference) value_; - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return promiseBuilder_.getMessage(); - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public Builder setPromise(flyteidl.core.Types.OutputReference value) { - if (promiseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - promiseBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public Builder setPromise( - flyteidl.core.Types.OutputReference.Builder builderForValue) { - if (promiseBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - promiseBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public Builder mergePromise(flyteidl.core.Types.OutputReference value) { - if (promiseBuilder_ == null) { - if (valueCase_ == 3 && - value_ != flyteidl.core.Types.OutputReference.getDefaultInstance()) { - value_ = flyteidl.core.Types.OutputReference.newBuilder((flyteidl.core.Types.OutputReference) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - promiseBuilder_.mergeFrom(value); - } - promiseBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public Builder clearPromise() { - if (promiseBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - promiseBuilder_.clear(); - } - return this; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReference.Builder getPromiseBuilder() { - return getPromiseFieldBuilder().getBuilder(); - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { - if ((valueCase_ == 3) && (promiseBuilder_ != null)) { - return promiseBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (flyteidl.core.Types.OutputReference) value_; - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> - getPromiseFieldBuilder() { - if (promiseBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - promiseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder>( - (flyteidl.core.Types.OutputReference) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return promiseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> mapBuilder_; - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public boolean hasMap() { - return valueCase_ == 4; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMap getMap() { - if (mapBuilder_ == null) { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.BindingDataMap) value_; - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return mapBuilder_.getMessage(); - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public Builder setMap(flyteidl.core.Literals.BindingDataMap value) { - if (mapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - mapBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public Builder setMap( - flyteidl.core.Literals.BindingDataMap.Builder builderForValue) { - if (mapBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - mapBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 4; - return this; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public Builder mergeMap(flyteidl.core.Literals.BindingDataMap value) { - if (mapBuilder_ == null) { - if (valueCase_ == 4 && - value_ != flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) { - value_ = flyteidl.core.Literals.BindingDataMap.newBuilder((flyteidl.core.Literals.BindingDataMap) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - mapBuilder_.mergeFrom(value); - } - mapBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public Builder clearMap() { - if (mapBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - mapBuilder_.clear(); - } - return this; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMap.Builder getMapBuilder() { - return getMapFieldBuilder().getBuilder(); - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { - if ((valueCase_ == 4) && (mapBuilder_ != null)) { - return mapBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.BindingDataMap) value_; - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> - getMapFieldBuilder() { - if (mapBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder>( - (flyteidl.core.Literals.BindingDataMap) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 4; - onChanged();; - return mapBuilder_; - } - @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:flyteidl.core.BindingData) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BindingData) - private static final flyteidl.core.Literals.BindingData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingData(); - } - - public static flyteidl.core.Literals.BindingData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindingData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindingData(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 flyteidl.core.Literals.BindingData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BindingOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Binding) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Variable name must match an input/output variable of the node.
-     * 
- * - * string var = 1; - */ - java.lang.String getVar(); - /** - *
-     * Variable name must match an input/output variable of the node.
-     * 
- * - * string var = 1; - */ - com.google.protobuf.ByteString - getVarBytes(); - - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - boolean hasBinding(); - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - flyteidl.core.Literals.BindingData getBinding(); - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder(); - } - /** - *
-   * An input/output binding of a variable to either static value or a node output.
-   * 
- * - * Protobuf type {@code flyteidl.core.Binding} - */ - public static final class Binding extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Binding) - BindingOrBuilder { - private static final long serialVersionUID = 0L; - // Use Binding.newBuilder() to construct. - private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Binding() { - var_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Binding( - 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(); - - var_ = s; - break; - } - case 18: { - flyteidl.core.Literals.BindingData.Builder subBuilder = null; - if (binding_ != null) { - subBuilder = binding_.toBuilder(); - } - binding_ = input.readMessage(flyteidl.core.Literals.BindingData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(binding_); - binding_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); - } - - public static final int VAR_FIELD_NUMBER = 1; - private volatile java.lang.Object var_; - /** - *
-     * Variable name must match an input/output variable of the node.
-     * 
- * - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - 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(); - var_ = s; - return s; - } - } - /** - *
-     * Variable name must match an input/output variable of the node.
-     * 
- * - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BINDING_FIELD_NUMBER = 2; - private flyteidl.core.Literals.BindingData binding_; - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public boolean hasBinding() { - return binding_ != null; - } - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingData getBinding() { - return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; - } - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { - return getBinding(); - } - - 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 (!getVarBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); - } - if (binding_ != null) { - output.writeMessage(2, getBinding()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getVarBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); - } - if (binding_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBinding()); - } - 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 flyteidl.core.Literals.Binding)) { - return super.equals(obj); - } - flyteidl.core.Literals.Binding other = (flyteidl.core.Literals.Binding) obj; - - if (!getVar() - .equals(other.getVar())) return false; - if (hasBinding() != other.hasBinding()) return false; - if (hasBinding()) { - if (!getBinding() - .equals(other.getBinding())) 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) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - if (hasBinding()) { - hash = (37 * hash) + BINDING_FIELD_NUMBER; - hash = (53 * hash) + getBinding().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Binding parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binding parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binding parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binding parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binding parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binding parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binding parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binding 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 flyteidl.core.Literals.Binding parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binding 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 flyteidl.core.Literals.Binding parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binding 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(flyteidl.core.Literals.Binding 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 input/output binding of a variable to either static value or a node output.
-     * 
- * - * Protobuf type {@code flyteidl.core.Binding} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Binding) - flyteidl.core.Literals.BindingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); - } - - // Construct using flyteidl.core.Literals.Binding.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(); - var_ = ""; - - if (bindingBuilder_ == null) { - binding_ = null; - } else { - binding_ = null; - bindingBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Binding getDefaultInstanceForType() { - return flyteidl.core.Literals.Binding.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Binding build() { - flyteidl.core.Literals.Binding result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Binding buildPartial() { - flyteidl.core.Literals.Binding result = new flyteidl.core.Literals.Binding(this); - result.var_ = var_; - if (bindingBuilder_ == null) { - result.binding_ = binding_; - } else { - result.binding_ = bindingBuilder_.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 flyteidl.core.Literals.Binding) { - return mergeFrom((flyteidl.core.Literals.Binding)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Binding other) { - if (other == flyteidl.core.Literals.Binding.getDefaultInstance()) return this; - if (!other.getVar().isEmpty()) { - var_ = other.var_; - onChanged(); - } - if (other.hasBinding()) { - mergeBinding(other.getBinding()); - } - 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 { - flyteidl.core.Literals.Binding parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Binding) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object var_ = ""; - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public Builder setVar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - var_ = value; - onChanged(); - return this; - } - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public Builder clearVar() { - - var_ = getDefaultInstance().getVar(); - onChanged(); - return this; - } - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public Builder setVarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - var_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Literals.BindingData binding_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingBuilder_; - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public boolean hasBinding() { - return bindingBuilder_ != null || binding_ != null; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingData getBinding() { - if (bindingBuilder_ == null) { - return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; - } else { - return bindingBuilder_.getMessage(); - } - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public Builder setBinding(flyteidl.core.Literals.BindingData value) { - if (bindingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - binding_ = value; - onChanged(); - } else { - bindingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public Builder setBinding( - flyteidl.core.Literals.BindingData.Builder builderForValue) { - if (bindingBuilder_ == null) { - binding_ = builderForValue.build(); - onChanged(); - } else { - bindingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public Builder mergeBinding(flyteidl.core.Literals.BindingData value) { - if (bindingBuilder_ == null) { - if (binding_ != null) { - binding_ = - flyteidl.core.Literals.BindingData.newBuilder(binding_).mergeFrom(value).buildPartial(); - } else { - binding_ = value; - } - onChanged(); - } else { - bindingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public Builder clearBinding() { - if (bindingBuilder_ == null) { - binding_ = null; - onChanged(); - } else { - binding_ = null; - bindingBuilder_ = null; - } - - return this; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingData.Builder getBindingBuilder() { - - onChanged(); - return getBindingFieldBuilder().getBuilder(); - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { - if (bindingBuilder_ != null) { - return bindingBuilder_.getMessageOrBuilder(); - } else { - return binding_ == null ? - flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; - } - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> - getBindingFieldBuilder() { - if (bindingBuilder_ == null) { - bindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( - getBinding(), - getParentForChildren(), - isClean()); - binding_ = null; - } - return bindingBuilder_; - } - @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:flyteidl.core.Binding) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Binding) - private static final flyteidl.core.Literals.Binding DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Binding(); - } - - public static flyteidl.core.Literals.Binding getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Binding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Binding(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 flyteidl.core.Literals.Binding getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface KeyValuePairOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.KeyValuePair) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *required.
-     * 
- * - * string key = 1; - */ - java.lang.String getKey(); - /** - *
-     *required.
-     * 
- * - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - *
-     *+optional.
-     * 
- * - * string value = 2; - */ - java.lang.String getValue(); - /** - *
-     *+optional.
-     * 
- * - * string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-   * A generic key value pair.
-   * 
- * - * Protobuf type {@code flyteidl.core.KeyValuePair} - */ - public static final class KeyValuePair extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.KeyValuePair) - KeyValuePairOrBuilder { - private static final long serialVersionUID = 0L; - // Use KeyValuePair.newBuilder() to construct. - private KeyValuePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private KeyValuePair() { - key_ = ""; - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private KeyValuePair( - 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(); - - 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 flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - *
-     *required.
-     * 
- * - * string key = 1; - */ - 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; - } - } - /** - *
-     *required.
-     * 
- * - * string key = 1; - */ - 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_; - /** - *
-     *+optional.
-     * 
- * - * string value = 2; - */ - 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; - } - } - /** - *
-     *+optional.
-     * 
- * - * string value = 2; - */ - 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 (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getValueBytes().isEmpty()) { - 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 (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getValueBytes().isEmpty()) { - 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 flyteidl.core.Literals.KeyValuePair)) { - return super.equals(obj); - } - flyteidl.core.Literals.KeyValuePair other = (flyteidl.core.Literals.KeyValuePair) 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 flyteidl.core.Literals.KeyValuePair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.KeyValuePair 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 flyteidl.core.Literals.KeyValuePair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.KeyValuePair 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 flyteidl.core.Literals.KeyValuePair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.KeyValuePair 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(flyteidl.core.Literals.KeyValuePair 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 generic key value pair.
-     * 
- * - * Protobuf type {@code flyteidl.core.KeyValuePair} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.KeyValuePair) - flyteidl.core.Literals.KeyValuePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); - } - - // Construct using flyteidl.core.Literals.KeyValuePair.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 flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.KeyValuePair getDefaultInstanceForType() { - return flyteidl.core.Literals.KeyValuePair.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.KeyValuePair build() { - flyteidl.core.Literals.KeyValuePair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.KeyValuePair buildPartial() { - flyteidl.core.Literals.KeyValuePair result = new flyteidl.core.Literals.KeyValuePair(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 flyteidl.core.Literals.KeyValuePair) { - return mergeFrom((flyteidl.core.Literals.KeyValuePair)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.KeyValuePair other) { - if (other == flyteidl.core.Literals.KeyValuePair.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 { - flyteidl.core.Literals.KeyValuePair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.KeyValuePair) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - 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; - } - } - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - 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; - } - } - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - 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_ = ""; - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - 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; - } - } - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - 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; - } - } - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - 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:flyteidl.core.KeyValuePair) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.KeyValuePair) - private static final flyteidl.core.Literals.KeyValuePair DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.KeyValuePair(); - } - - public static flyteidl.core.Literals.KeyValuePair getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyValuePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyValuePair(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 flyteidl.core.Literals.KeyValuePair getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RetryStrategyOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.RetryStrategy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-     * The number of retries must be less than or equals to 10.
-     * 
- * - * uint32 retries = 5; - */ - int getRetries(); - } - /** - *
-   * Retry strategy associated with an executable unit.
-   * 
- * - * Protobuf type {@code flyteidl.core.RetryStrategy} - */ - public static final class RetryStrategy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.RetryStrategy) - RetryStrategyOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetryStrategy.newBuilder() to construct. - private RetryStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RetryStrategy() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RetryStrategy( - 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 40: { - - retries_ = input.readUInt32(); - 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 flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); - } - - public static final int RETRIES_FIELD_NUMBER = 5; - private int retries_; - /** - *
-     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-     * The number of retries must be less than or equals to 10.
-     * 
- * - * uint32 retries = 5; - */ - public int getRetries() { - return retries_; - } - - 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 (retries_ != 0) { - output.writeUInt32(5, retries_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retries_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, retries_); - } - 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 flyteidl.core.Literals.RetryStrategy)) { - return super.equals(obj); - } - flyteidl.core.Literals.RetryStrategy other = (flyteidl.core.Literals.RetryStrategy) obj; - - if (getRetries() - != other.getRetries()) 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) + RETRIES_FIELD_NUMBER; - hash = (53 * hash) + getRetries(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.RetryStrategy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.RetryStrategy 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 flyteidl.core.Literals.RetryStrategy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.RetryStrategy 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 flyteidl.core.Literals.RetryStrategy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.RetryStrategy 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(flyteidl.core.Literals.RetryStrategy 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; - } - /** - *
-     * Retry strategy associated with an executable unit.
-     * 
- * - * Protobuf type {@code flyteidl.core.RetryStrategy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.RetryStrategy) - flyteidl.core.Literals.RetryStrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); - } - - // Construct using flyteidl.core.Literals.RetryStrategy.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(); - retries_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.RetryStrategy getDefaultInstanceForType() { - return flyteidl.core.Literals.RetryStrategy.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.RetryStrategy build() { - flyteidl.core.Literals.RetryStrategy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.RetryStrategy buildPartial() { - flyteidl.core.Literals.RetryStrategy result = new flyteidl.core.Literals.RetryStrategy(this); - result.retries_ = retries_; - 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 flyteidl.core.Literals.RetryStrategy) { - return mergeFrom((flyteidl.core.Literals.RetryStrategy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.RetryStrategy other) { - if (other == flyteidl.core.Literals.RetryStrategy.getDefaultInstance()) return this; - if (other.getRetries() != 0) { - setRetries(other.getRetries()); - } - 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 { - flyteidl.core.Literals.RetryStrategy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.RetryStrategy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retries_ ; - /** - *
-       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-       * The number of retries must be less than or equals to 10.
-       * 
- * - * uint32 retries = 5; - */ - public int getRetries() { - return retries_; - } - /** - *
-       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-       * The number of retries must be less than or equals to 10.
-       * 
- * - * uint32 retries = 5; - */ - public Builder setRetries(int value) { - - retries_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-       * The number of retries must be less than or equals to 10.
-       * 
- * - * uint32 retries = 5; - */ - public Builder clearRetries() { - - retries_ = 0; - 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:flyteidl.core.RetryStrategy) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.RetryStrategy) - private static final flyteidl.core.Literals.RetryStrategy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.RetryStrategy(); - } - - public static flyteidl.core.Literals.RetryStrategy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetryStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RetryStrategy(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 flyteidl.core.Literals.RetryStrategy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Primitive_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Primitive_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Void_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Void_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Blob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Blob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BlobMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Binary_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Binary_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Schema_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Schema_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Scalar_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Scalar_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Literal_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Literal_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_LiteralCollection_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_LiteralMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_LiteralMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_LiteralMap_LiteralsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BindingDataCollection_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BindingDataMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BindingDataMap_BindingsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BindingData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BindingData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Binding_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Binding_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_KeyValuePair_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_RetryStrategy_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_RetryStrategy_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\034flyteidl/core/literals.proto\022\rflyteidl" + - ".core\032\037google/protobuf/timestamp.proto\032\036" + - "google/protobuf/duration.proto\032\034google/p" + - "rotobuf/struct.proto\032\031flyteidl/core/type" + - "s.proto\"\310\001\n\tPrimitive\022\021\n\007integer\030\001 \001(\003H\000" + - "\022\025\n\013float_value\030\002 \001(\001H\000\022\026\n\014string_value\030" + - "\003 \001(\tH\000\022\021\n\007boolean\030\004 \001(\010H\000\022.\n\010datetime\030\005" + - " \001(\0132\032.google.protobuf.TimestampH\000\022-\n\010du" + - "ration\030\006 \001(\0132\031.google.protobuf.DurationH" + - "\000B\007\n\005value\"\006\n\004Void\"B\n\004Blob\022-\n\010metadata\030\001" + - " \001(\0132\033.flyteidl.core.BlobMetadata\022\013\n\003uri" + - "\030\003 \001(\t\"5\n\014BlobMetadata\022%\n\004type\030\001 \001(\0132\027.f" + - "lyteidl.core.BlobType\"$\n\006Binary\022\r\n\005value" + - "\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\">\n\006Schema\022\013\n\003uri\030\001 \001" + - "(\t\022\'\n\004type\030\003 \001(\0132\031.flyteidl.core.SchemaT" + - "ype\"\264\002\n\006Scalar\022-\n\tprimitive\030\001 \001(\0132\030.flyt" + - "eidl.core.PrimitiveH\000\022#\n\004blob\030\002 \001(\0132\023.fl" + - "yteidl.core.BlobH\000\022\'\n\006binary\030\003 \001(\0132\025.fly" + - "teidl.core.BinaryH\000\022\'\n\006schema\030\004 \001(\0132\025.fl" + - "yteidl.core.SchemaH\000\022(\n\tnone_type\030\005 \001(\0132" + - "\023.flyteidl.core.VoidH\000\022%\n\005error\030\006 \001(\0132\024." + - "flyteidl.core.ErrorH\000\022*\n\007generic\030\007 \001(\0132\027" + - ".google.protobuf.StructH\000B\007\n\005value\"\235\001\n\007L" + - "iteral\022\'\n\006scalar\030\001 \001(\0132\025.flyteidl.core.S" + - "calarH\000\0226\n\ncollection\030\002 \001(\0132 .flyteidl.c" + - "ore.LiteralCollectionH\000\022(\n\003map\030\003 \001(\0132\031.f" + - "lyteidl.core.LiteralMapH\000B\007\n\005value\"=\n\021Li" + - "teralCollection\022(\n\010literals\030\001 \003(\0132\026.flyt" + - "eidl.core.Literal\"\220\001\n\nLiteralMap\0229\n\010lite" + - "rals\030\001 \003(\0132\'.flyteidl.core.LiteralMap.Li" + - "teralsEntry\032G\n\rLiteralsEntry\022\013\n\003key\030\001 \001(" + - "\t\022%\n\005value\030\002 \001(\0132\026.flyteidl.core.Literal" + - ":\0028\001\"E\n\025BindingDataCollection\022,\n\010binding" + - "s\030\001 \003(\0132\032.flyteidl.core.BindingData\"\234\001\n\016" + - "BindingDataMap\022=\n\010bindings\030\001 \003(\0132+.flyte" + - "idl.core.BindingDataMap.BindingsEntry\032K\n" + - "\rBindingsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001" + - "(\0132\032.flyteidl.core.BindingData:\0028\001\"\334\001\n\013B" + - "indingData\022\'\n\006scalar\030\001 \001(\0132\025.flyteidl.co" + - "re.ScalarH\000\022:\n\ncollection\030\002 \001(\0132$.flytei" + - "dl.core.BindingDataCollectionH\000\0221\n\007promi" + - "se\030\003 \001(\0132\036.flyteidl.core.OutputReference" + - "H\000\022,\n\003map\030\004 \001(\0132\035.flyteidl.core.BindingD" + - "ataMapH\000B\007\n\005value\"C\n\007Binding\022\013\n\003var\030\001 \001(" + - "\t\022+\n\007binding\030\002 \001(\0132\032.flyteidl.core.Bindi" + - "ngData\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t\" \n\rRetryStrategy\022\017\n\007retries\030\005" + - " \001(\rB2Z0github.com/lyft/flyteidl/gen/pb-" + - "go/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - flyteidl.core.Types.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_Primitive_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_Primitive_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Primitive_descriptor, - new java.lang.String[] { "Integer", "FloatValue", "StringValue", "Boolean", "Datetime", "Duration", "Value", }); - internal_static_flyteidl_core_Void_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_Void_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Void_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_core_Blob_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_Blob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Blob_descriptor, - new java.lang.String[] { "Metadata", "Uri", }); - internal_static_flyteidl_core_BlobMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BlobMetadata_descriptor, - new java.lang.String[] { "Type", }); - internal_static_flyteidl_core_Binary_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_core_Binary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Binary_descriptor, - new java.lang.String[] { "Value", "Tag", }); - internal_static_flyteidl_core_Schema_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_core_Schema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Schema_descriptor, - new java.lang.String[] { "Uri", "Type", }); - internal_static_flyteidl_core_Scalar_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_core_Scalar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Scalar_descriptor, - new java.lang.String[] { "Primitive", "Blob", "Binary", "Schema", "NoneType", "Error", "Generic", "Value", }); - internal_static_flyteidl_core_Literal_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_core_Literal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Literal_descriptor, - new java.lang.String[] { "Scalar", "Collection", "Map", "Value", }); - internal_static_flyteidl_core_LiteralCollection_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_LiteralCollection_descriptor, - new java.lang.String[] { "Literals", }); - internal_static_flyteidl_core_LiteralMap_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_core_LiteralMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_LiteralMap_descriptor, - new java.lang.String[] { "Literals", }); - internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor = - internal_static_flyteidl_core_LiteralMap_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_LiteralMap_LiteralsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_core_BindingDataCollection_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BindingDataCollection_descriptor, - new java.lang.String[] { "Bindings", }); - internal_static_flyteidl_core_BindingDataMap_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BindingDataMap_descriptor, - new java.lang.String[] { "Bindings", }); - internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor = - internal_static_flyteidl_core_BindingDataMap_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_BindingDataMap_BindingsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_core_BindingData_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_flyteidl_core_BindingData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BindingData_descriptor, - new java.lang.String[] { "Scalar", "Collection", "Promise", "Map", "Value", }); - internal_static_flyteidl_core_Binding_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_flyteidl_core_Binding_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Binding_descriptor, - new java.lang.String[] { "Var", "Binding", }); - internal_static_flyteidl_core_KeyValuePair_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_KeyValuePair_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_core_RetryStrategy_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_RetryStrategy_descriptor, - new java.lang.String[] { "Retries", }); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - flyteidl.core.Types.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Tasks.java b/gen/pb-java/flyteidl/core/Tasks.java deleted file mode 100644 index 5fc56386e..000000000 --- a/gen/pb-java/flyteidl/core/Tasks.java +++ /dev/null @@ -1,13257 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/tasks.proto - -package flyteidl.core; - -public final class Tasks { - private Tasks() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ResourcesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Resources) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - java.util.List - getRequestsList(); - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index); - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - int getRequestsCount(); - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( - int index); - - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - java.util.List - getLimitsList(); - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index); - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - int getLimitsCount(); - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - java.util.List - getLimitsOrBuilderList(); - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( - int index); - } - /** - *
-   * A customizable interface to convey resources requested for a container. This can be interpretted differently for different
-   * container engines.
-   * 
- * - * Protobuf type {@code flyteidl.core.Resources} - */ - public static final class Resources extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Resources) - ResourcesOrBuilder { - private static final long serialVersionUID = 0L; - // Use Resources.newBuilder() to construct. - private Resources(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Resources() { - requests_ = java.util.Collections.emptyList(); - limits_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Resources( - 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)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - limits_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - limits_.add( - input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.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)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - limits_ = java.util.Collections.unmodifiableList(limits_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); - } - - /** - *
-     * Known resource names.
-     * 
- * - * Protobuf enum {@code flyteidl.core.Resources.ResourceName} - */ - public enum ResourceName - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * CPU = 1; - */ - CPU(1), - /** - * GPU = 2; - */ - GPU(2), - /** - * MEMORY = 3; - */ - MEMORY(3), - /** - * STORAGE = 4; - */ - STORAGE(4), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * CPU = 1; - */ - public static final int CPU_VALUE = 1; - /** - * GPU = 2; - */ - public static final int GPU_VALUE = 2; - /** - * MEMORY = 3; - */ - public static final int MEMORY_VALUE = 3; - /** - * STORAGE = 4; - */ - public static final int STORAGE_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResourceName valueOf(int value) { - return forNumber(value); - } - - public static ResourceName forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return CPU; - case 2: return GPU; - case 3: return MEMORY; - case 4: return STORAGE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ResourceName> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResourceName findValueByNumber(int number) { - return ResourceName.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Tasks.Resources.getDescriptor().getEnumTypes().get(0); - } - - private static final ResourceName[] VALUES = values(); - - public static ResourceName 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 ResourceName(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.Resources.ResourceName) - } - - public interface ResourceEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Resources.ResourceEntry) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * Resource name.
-       * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - int getNameValue(); - /** - *
-       * Resource name.
-       * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - flyteidl.core.Tasks.Resources.ResourceName getName(); - - /** - *
-       * Value must be a valid k8s quantity. See
-       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-       * 
- * - * string value = 2; - */ - java.lang.String getValue(); - /** - *
-       * Value must be a valid k8s quantity. See
-       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-       * 
- * - * string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-     * Encapsulates a resource name and value.
-     * 
- * - * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} - */ - public static final class ResourceEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Resources.ResourceEntry) - ResourceEntryOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceEntry.newBuilder() to construct. - private ResourceEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourceEntry() { - name_ = 0; - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResourceEntry( - 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 8: { - int rawValue = input.readEnum(); - - name_ = rawValue; - 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 flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private int name_; - /** - *
-       * Resource name.
-       * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public int getNameValue() { - return name_; - } - /** - *
-       * Resource name.
-       * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceName getName() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); - return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - *
-       * Value must be a valid k8s quantity. See
-       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-       * 
- * - * string value = 2; - */ - 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 must be a valid k8s quantity. See
-       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-       * 
- * - * string value = 2; - */ - 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 (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { - output.writeEnum(1, name_); - } - if (!getValueBytes().isEmpty()) { - 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 (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, name_); - } - if (!getValueBytes().isEmpty()) { - 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 flyteidl.core.Tasks.Resources.ResourceEntry)) { - return super.equals(obj); - } - flyteidl.core.Tasks.Resources.ResourceEntry other = (flyteidl.core.Tasks.Resources.ResourceEntry) obj; - - if (name_ != other.name_) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + name_; - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry 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 flyteidl.core.Tasks.Resources.ResourceEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry 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 flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry 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(flyteidl.core.Tasks.Resources.ResourceEntry 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; - } - /** - *
-       * Encapsulates a resource name and value.
-       * 
- * - * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources.ResourceEntry) - flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); - } - - // Construct using flyteidl.core.Tasks.Resources.ResourceEntry.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_ = 0; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { - return flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources.ResourceEntry build() { - flyteidl.core.Tasks.Resources.ResourceEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources.ResourceEntry buildPartial() { - flyteidl.core.Tasks.Resources.ResourceEntry result = new flyteidl.core.Tasks.Resources.ResourceEntry(this); - result.name_ = name_; - 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 flyteidl.core.Tasks.Resources.ResourceEntry) { - return mergeFrom((flyteidl.core.Tasks.Resources.ResourceEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.Resources.ResourceEntry other) { - if (other == flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()) return this; - if (other.name_ != 0) { - setNameValue(other.getNameValue()); - } - 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 { - flyteidl.core.Tasks.Resources.ResourceEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.Resources.ResourceEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int name_ = 0; - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public int getNameValue() { - return name_; - } - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public Builder setNameValue(int value) { - name_ = value; - onChanged(); - return this; - } - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceName getName() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); - return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; - } - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public Builder setName(flyteidl.core.Tasks.Resources.ResourceName value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public Builder clearName() { - - name_ = 0; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-         * Value must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - 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 must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - 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 must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-         * Value must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-         * Value must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - 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:flyteidl.core.Resources.ResourceEntry) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Resources.ResourceEntry) - private static final flyteidl.core.Tasks.Resources.ResourceEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources.ResourceEntry(); - } - - public static flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceEntry(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 flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int REQUESTS_FIELD_NUMBER = 1; - private java.util.List requests_; - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { - return requests_.get(index); - } - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - public static final int LIMITS_FIELD_NUMBER = 2; - private java.util.List limits_; - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List getLimitsList() { - return limits_; - } - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List - getLimitsOrBuilderList() { - return limits_; - } - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public int getLimitsCount() { - return limits_.size(); - } - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { - return limits_.get(index); - } - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( - int index) { - return limits_.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 < requests_.size(); i++) { - output.writeMessage(1, requests_.get(i)); - } - for (int i = 0; i < limits_.size(); i++) { - output.writeMessage(2, limits_.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 < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); - } - for (int i = 0; i < limits_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, limits_.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 flyteidl.core.Tasks.Resources)) { - return super.equals(obj); - } - flyteidl.core.Tasks.Resources other = (flyteidl.core.Tasks.Resources) obj; - - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getLimitsList() - .equals(other.getLimitsList())) 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 (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - if (getLimitsCount() > 0) { - hash = (37 * hash) + LIMITS_FIELD_NUMBER; - hash = (53 * hash) + getLimitsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.Resources parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources 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 flyteidl.core.Tasks.Resources parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources 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 flyteidl.core.Tasks.Resources parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources 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(flyteidl.core.Tasks.Resources 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 customizable interface to convey resources requested for a container. This can be interpretted differently for different
-     * container engines.
-     * 
- * - * Protobuf type {@code flyteidl.core.Resources} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources) - flyteidl.core.Tasks.ResourcesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); - } - - // Construct using flyteidl.core.Tasks.Resources.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRequestsFieldBuilder(); - getLimitsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - requestsBuilder_.clear(); - } - if (limitsBuilder_ == null) { - limits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - limitsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources getDefaultInstanceForType() { - return flyteidl.core.Tasks.Resources.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources build() { - flyteidl.core.Tasks.Resources result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources buildPartial() { - flyteidl.core.Tasks.Resources result = new flyteidl.core.Tasks.Resources(this); - int from_bitField0_ = bitField0_; - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - if (limitsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - limits_ = java.util.Collections.unmodifiableList(limits_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.limits_ = limits_; - } else { - result.limits_ = limitsBuilder_.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 flyteidl.core.Tasks.Resources) { - return mergeFrom((flyteidl.core.Tasks.Resources)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.Resources other) { - if (other == flyteidl.core.Tasks.Resources.getDefaultInstance()) return this; - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - if (limitsBuilder_ == null) { - if (!other.limits_.isEmpty()) { - if (limits_.isEmpty()) { - limits_ = other.limits_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLimitsIsMutable(); - limits_.addAll(other.limits_); - } - onChanged(); - } - } else { - if (!other.limits_.isEmpty()) { - if (limitsBuilder_.isEmpty()) { - limitsBuilder_.dispose(); - limitsBuilder_ = null; - limits_ = other.limits_; - bitField0_ = (bitField0_ & ~0x00000002); - limitsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLimitsFieldBuilder() : null; - } else { - limitsBuilder_.addAllMessages(other.limits_); - } - } - } - 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 { - flyteidl.core.Tasks.Resources parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.Resources) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> requestsBuilder_; - - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder setRequests( - int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder setRequests( - int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addRequests(flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addRequests( - int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addRequests( - flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addRequests( - int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - - private java.util.List limits_ = - java.util.Collections.emptyList(); - private void ensureLimitsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - limits_ = new java.util.ArrayList(limits_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> limitsBuilder_; - - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List getLimitsList() { - if (limitsBuilder_ == null) { - return java.util.Collections.unmodifiableList(limits_); - } else { - return limitsBuilder_.getMessageList(); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public int getLimitsCount() { - if (limitsBuilder_ == null) { - return limits_.size(); - } else { - return limitsBuilder_.getCount(); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { - if (limitsBuilder_ == null) { - return limits_.get(index); - } else { - return limitsBuilder_.getMessage(index); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder setLimits( - int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (limitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLimitsIsMutable(); - limits_.set(index, value); - onChanged(); - } else { - limitsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder setLimits( - int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - limits_.set(index, builderForValue.build()); - onChanged(); - } else { - limitsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addLimits(flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (limitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLimitsIsMutable(); - limits_.add(value); - onChanged(); - } else { - limitsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addLimits( - int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (limitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLimitsIsMutable(); - limits_.add(index, value); - onChanged(); - } else { - limitsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addLimits( - flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - limits_.add(builderForValue.build()); - onChanged(); - } else { - limitsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addLimits( - int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - limits_.add(index, builderForValue.build()); - onChanged(); - } else { - limitsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addAllLimits( - java.lang.Iterable values) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, limits_); - onChanged(); - } else { - limitsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder clearLimits() { - if (limitsBuilder_ == null) { - limits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - limitsBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder removeLimits(int index) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - limits_.remove(index); - onChanged(); - } else { - limitsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getLimitsBuilder( - int index) { - return getLimitsFieldBuilder().getBuilder(index); - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( - int index) { - if (limitsBuilder_ == null) { - return limits_.get(index); } else { - return limitsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List - getLimitsOrBuilderList() { - if (limitsBuilder_ != null) { - return limitsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(limits_); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder() { - return getLimitsFieldBuilder().addBuilder( - flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder( - int index) { - return getLimitsFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List - getLimitsBuilderList() { - return getLimitsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> - getLimitsFieldBuilder() { - if (limitsBuilder_ == null) { - limitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( - limits_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - limits_ = null; - } - return limitsBuilder_; - } - @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:flyteidl.core.Resources) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Resources) - private static final flyteidl.core.Tasks.Resources DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources(); - } - - public static flyteidl.core.Tasks.Resources getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Resources parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Resources(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 flyteidl.core.Tasks.Resources getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RuntimeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.RuntimeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Type of runtime.
-     * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - int getTypeValue(); - /** - *
-     * Type of runtime.
-     * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType(); - - /** - *
-     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-     * checks to ensure tighter validation or setting expectations.
-     * 
- * - * string version = 2; - */ - java.lang.String getVersion(); - /** - *
-     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-     * checks to ensure tighter validation or setting expectations.
-     * 
- * - * string version = 2; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-     * 
- * - * string flavor = 3; - */ - java.lang.String getFlavor(); - /** - *
-     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-     * 
- * - * string flavor = 3; - */ - com.google.protobuf.ByteString - getFlavorBytes(); - } - /** - *
-   * Runtime information. This is losely defined to allow for extensibility.
-   * 
- * - * Protobuf type {@code flyteidl.core.RuntimeMetadata} - */ - public static final class RuntimeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.RuntimeMetadata) - RuntimeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use RuntimeMetadata.newBuilder() to construct. - private RuntimeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RuntimeMetadata() { - type_ = 0; - version_ = ""; - flavor_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RuntimeMetadata( - 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 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - flavor_ = 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 flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.RuntimeMetadata.RuntimeType} - */ - public enum RuntimeType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * OTHER = 0; - */ - OTHER(0), - /** - * FLYTE_SDK = 1; - */ - FLYTE_SDK(1), - UNRECOGNIZED(-1), - ; - - /** - * OTHER = 0; - */ - public static final int OTHER_VALUE = 0; - /** - * FLYTE_SDK = 1; - */ - public static final int FLYTE_SDK_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RuntimeType valueOf(int value) { - return forNumber(value); - } - - public static RuntimeType forNumber(int value) { - switch (value) { - case 0: return OTHER; - case 1: return FLYTE_SDK; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RuntimeType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RuntimeType findValueByNumber(int number) { - return RuntimeType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Tasks.RuntimeMetadata.getDescriptor().getEnumTypes().get(0); - } - - private static final RuntimeType[] VALUES = values(); - - public static RuntimeType 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 RuntimeType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.RuntimeMetadata.RuntimeType) - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - *
-     * Type of runtime.
-     * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - *
-     * Type of runtime.
-     * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); - return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; - } - - public static final int VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object version_; - /** - *
-     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-     * checks to ensure tighter validation or setting expectations.
-     * 
- * - * string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - 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(); - version_ = s; - return s; - } - } - /** - *
-     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-     * checks to ensure tighter validation or setting expectations.
-     * 
- * - * string version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FLAVOR_FIELD_NUMBER = 3; - private volatile java.lang.Object flavor_; - /** - *
-     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-     * 
- * - * string flavor = 3; - */ - public java.lang.String getFlavor() { - java.lang.Object ref = flavor_; - 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(); - flavor_ = s; - return s; - } - } - /** - *
-     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-     * 
- * - * string flavor = 3; - */ - public com.google.protobuf.ByteString - getFlavorBytes() { - java.lang.Object ref = flavor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - flavor_ = 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 (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { - output.writeEnum(1, type_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); - } - if (!getFlavorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, flavor_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); - } - if (!getFlavorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, flavor_); - } - 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 flyteidl.core.Tasks.RuntimeMetadata)) { - return super.equals(obj); - } - flyteidl.core.Tasks.RuntimeMetadata other = (flyteidl.core.Tasks.RuntimeMetadata) obj; - - if (type_ != other.type_) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getFlavor() - .equals(other.getFlavor())) 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) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + FLAVOR_FIELD_NUMBER; - hash = (53 * hash) + getFlavor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.RuntimeMetadata 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 flyteidl.core.Tasks.RuntimeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.RuntimeMetadata 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 flyteidl.core.Tasks.RuntimeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.RuntimeMetadata 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(flyteidl.core.Tasks.RuntimeMetadata 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; - } - /** - *
-     * Runtime information. This is losely defined to allow for extensibility.
-     * 
- * - * Protobuf type {@code flyteidl.core.RuntimeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.RuntimeMetadata) - flyteidl.core.Tasks.RuntimeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); - } - - // Construct using flyteidl.core.Tasks.RuntimeMetadata.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(); - type_ = 0; - - version_ = ""; - - flavor_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { - return flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.RuntimeMetadata build() { - flyteidl.core.Tasks.RuntimeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.RuntimeMetadata buildPartial() { - flyteidl.core.Tasks.RuntimeMetadata result = new flyteidl.core.Tasks.RuntimeMetadata(this); - result.type_ = type_; - result.version_ = version_; - result.flavor_ = flavor_; - 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 flyteidl.core.Tasks.RuntimeMetadata) { - return mergeFrom((flyteidl.core.Tasks.RuntimeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.RuntimeMetadata other) { - if (other == flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getFlavor().isEmpty()) { - flavor_ = other.flavor_; - 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 { - flyteidl.core.Tasks.RuntimeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.RuntimeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); - return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; - } - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public Builder setType(flyteidl.core.Tasks.RuntimeMetadata.RuntimeType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object flavor_ = ""; - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public java.lang.String getFlavor() { - java.lang.Object ref = flavor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - flavor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public com.google.protobuf.ByteString - getFlavorBytes() { - java.lang.Object ref = flavor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - flavor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public Builder setFlavor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - flavor_ = value; - onChanged(); - return this; - } - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public Builder clearFlavor() { - - flavor_ = getDefaultInstance().getFlavor(); - onChanged(); - return this; - } - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public Builder setFlavorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - flavor_ = 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:flyteidl.core.RuntimeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.RuntimeMetadata) - private static final flyteidl.core.Tasks.RuntimeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.RuntimeMetadata(); - } - - public static flyteidl.core.Tasks.RuntimeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RuntimeMetadata(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 flyteidl.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-     * 
- * - * bool discoverable = 1; - */ - boolean getDiscoverable(); - - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - boolean hasRuntime(); - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - flyteidl.core.Tasks.RuntimeMetadata getRuntime(); - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder(); - - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - boolean hasTimeout(); - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - com.google.protobuf.Duration getTimeout(); - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); - - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - boolean hasRetries(); - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - flyteidl.core.Literals.RetryStrategy getRetries(); - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); - - /** - *
-     * Indicates a logical version to apply to this task for the purpose of discovery.
-     * 
- * - * string discovery_version = 6; - */ - java.lang.String getDiscoveryVersion(); - /** - *
-     * Indicates a logical version to apply to this task for the purpose of discovery.
-     * 
- * - * string discovery_version = 6; - */ - com.google.protobuf.ByteString - getDiscoveryVersionBytes(); - - /** - *
-     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-     * of the ending of support for a given task.
-     * 
- * - * string deprecated_error_message = 7; - */ - java.lang.String getDeprecatedErrorMessage(); - /** - *
-     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-     * of the ending of support for a given task.
-     * 
- * - * string deprecated_error_message = 7; - */ - com.google.protobuf.ByteString - getDeprecatedErrorMessageBytes(); - - /** - * bool interruptible = 8; - */ - boolean getInterruptible(); - - public flyteidl.core.Tasks.TaskMetadata.InterruptibleValueCase getInterruptibleValueCase(); - } - /** - *
-   * Task Metadata
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskMetadata} - */ - public static final class TaskMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskMetadata) - TaskMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskMetadata.newBuilder() to construct. - private TaskMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskMetadata() { - discoveryVersion_ = ""; - deprecatedErrorMessage_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskMetadata( - 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 8: { - - discoverable_ = input.readBool(); - break; - } - case 18: { - flyteidl.core.Tasks.RuntimeMetadata.Builder subBuilder = null; - if (runtime_ != null) { - subBuilder = runtime_.toBuilder(); - } - runtime_ = input.readMessage(flyteidl.core.Tasks.RuntimeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(runtime_); - runtime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeout_ != null) { - subBuilder = timeout_.toBuilder(); - } - timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeout_); - timeout_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; - if (retries_ != null) { - subBuilder = retries_.toBuilder(); - } - retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retries_); - retries_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - discoveryVersion_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - deprecatedErrorMessage_ = s; - break; - } - case 64: { - interruptibleValueCase_ = 8; - interruptibleValue_ = input.readBool(); - 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 flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); - } - - private int interruptibleValueCase_ = 0; - private java.lang.Object interruptibleValue_; - public enum InterruptibleValueCase - implements com.google.protobuf.Internal.EnumLite { - INTERRUPTIBLE(8), - INTERRUPTIBLEVALUE_NOT_SET(0); - private final int value; - private InterruptibleValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InterruptibleValueCase valueOf(int value) { - return forNumber(value); - } - - public static InterruptibleValueCase forNumber(int value) { - switch (value) { - case 8: return INTERRUPTIBLE; - case 0: return INTERRUPTIBLEVALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public InterruptibleValueCase - getInterruptibleValueCase() { - return InterruptibleValueCase.forNumber( - interruptibleValueCase_); - } - - public static final int DISCOVERABLE_FIELD_NUMBER = 1; - private boolean discoverable_; - /** - *
-     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-     * 
- * - * bool discoverable = 1; - */ - public boolean getDiscoverable() { - return discoverable_; - } - - public static final int RUNTIME_FIELD_NUMBER = 2; - private flyteidl.core.Tasks.RuntimeMetadata runtime_; - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public boolean hasRuntime() { - return runtime_ != null; - } - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { - return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; - } - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { - return getRuntime(); - } - - public static final int TIMEOUT_FIELD_NUMBER = 4; - private com.google.protobuf.Duration timeout_; - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public boolean hasTimeout() { - return timeout_ != null; - } - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration getTimeout() { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - return getTimeout(); - } - - public static final int RETRIES_FIELD_NUMBER = 5; - private flyteidl.core.Literals.RetryStrategy retries_; - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public boolean hasRetries() { - return retries_ != null; - } - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy getRetries() { - return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { - return getRetries(); - } - - public static final int DISCOVERY_VERSION_FIELD_NUMBER = 6; - private volatile java.lang.Object discoveryVersion_; - /** - *
-     * Indicates a logical version to apply to this task for the purpose of discovery.
-     * 
- * - * string discovery_version = 6; - */ - public java.lang.String getDiscoveryVersion() { - java.lang.Object ref = discoveryVersion_; - 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(); - discoveryVersion_ = s; - return s; - } - } - /** - *
-     * Indicates a logical version to apply to this task for the purpose of discovery.
-     * 
- * - * string discovery_version = 6; - */ - public com.google.protobuf.ByteString - getDiscoveryVersionBytes() { - java.lang.Object ref = discoveryVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - discoveryVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER = 7; - private volatile java.lang.Object deprecatedErrorMessage_; - /** - *
-     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-     * of the ending of support for a given task.
-     * 
- * - * string deprecated_error_message = 7; - */ - public java.lang.String getDeprecatedErrorMessage() { - java.lang.Object ref = deprecatedErrorMessage_; - 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(); - deprecatedErrorMessage_ = s; - return s; - } - } - /** - *
-     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-     * of the ending of support for a given task.
-     * 
- * - * string deprecated_error_message = 7; - */ - public com.google.protobuf.ByteString - getDeprecatedErrorMessageBytes() { - java.lang.Object ref = deprecatedErrorMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deprecatedErrorMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 8; - /** - * bool interruptible = 8; - */ - public boolean getInterruptible() { - if (interruptibleValueCase_ == 8) { - return (java.lang.Boolean) interruptibleValue_; - } - return false; - } - - 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 (discoverable_ != false) { - output.writeBool(1, discoverable_); - } - if (runtime_ != null) { - output.writeMessage(2, getRuntime()); - } - if (timeout_ != null) { - output.writeMessage(4, getTimeout()); - } - if (retries_ != null) { - output.writeMessage(5, getRetries()); - } - if (!getDiscoveryVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, discoveryVersion_); - } - if (!getDeprecatedErrorMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deprecatedErrorMessage_); - } - if (interruptibleValueCase_ == 8) { - output.writeBool( - 8, (boolean)((java.lang.Boolean) interruptibleValue_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (discoverable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, discoverable_); - } - if (runtime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRuntime()); - } - if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTimeout()); - } - if (retries_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getRetries()); - } - if (!getDiscoveryVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, discoveryVersion_); - } - if (!getDeprecatedErrorMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deprecatedErrorMessage_); - } - if (interruptibleValueCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 8, (boolean)((java.lang.Boolean) interruptibleValue_)); - } - 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 flyteidl.core.Tasks.TaskMetadata)) { - return super.equals(obj); - } - flyteidl.core.Tasks.TaskMetadata other = (flyteidl.core.Tasks.TaskMetadata) obj; - - if (getDiscoverable() - != other.getDiscoverable()) return false; - if (hasRuntime() != other.hasRuntime()) return false; - if (hasRuntime()) { - if (!getRuntime() - .equals(other.getRuntime())) return false; - } - if (hasTimeout() != other.hasTimeout()) return false; - if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; - } - if (hasRetries() != other.hasRetries()) return false; - if (hasRetries()) { - if (!getRetries() - .equals(other.getRetries())) return false; - } - if (!getDiscoveryVersion() - .equals(other.getDiscoveryVersion())) return false; - if (!getDeprecatedErrorMessage() - .equals(other.getDeprecatedErrorMessage())) return false; - if (!getInterruptibleValueCase().equals(other.getInterruptibleValueCase())) return false; - switch (interruptibleValueCase_) { - case 8: - if (getInterruptible() - != other.getInterruptible()) 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) + DISCOVERABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDiscoverable()); - if (hasRuntime()) { - hash = (37 * hash) + RUNTIME_FIELD_NUMBER; - hash = (53 * hash) + getRuntime().hashCode(); - } - if (hasTimeout()) { - hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getTimeout().hashCode(); - } - if (hasRetries()) { - hash = (37 * hash) + RETRIES_FIELD_NUMBER; - hash = (53 * hash) + getRetries().hashCode(); - } - hash = (37 * hash) + DISCOVERY_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDiscoveryVersion().hashCode(); - hash = (37 * hash) + DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getDeprecatedErrorMessage().hashCode(); - switch (interruptibleValueCase_) { - case 8: - hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterruptible()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskMetadata 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 flyteidl.core.Tasks.TaskMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskMetadata 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 flyteidl.core.Tasks.TaskMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskMetadata 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(flyteidl.core.Tasks.TaskMetadata 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; - } - /** - *
-     * Task Metadata
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskMetadata) - flyteidl.core.Tasks.TaskMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); - } - - // Construct using flyteidl.core.Tasks.TaskMetadata.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(); - discoverable_ = false; - - if (runtimeBuilder_ == null) { - runtime_ = null; - } else { - runtime_ = null; - runtimeBuilder_ = null; - } - if (timeoutBuilder_ == null) { - timeout_ = null; - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - if (retriesBuilder_ == null) { - retries_ = null; - } else { - retries_ = null; - retriesBuilder_ = null; - } - discoveryVersion_ = ""; - - deprecatedErrorMessage_ = ""; - - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskMetadata getDefaultInstanceForType() { - return flyteidl.core.Tasks.TaskMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskMetadata build() { - flyteidl.core.Tasks.TaskMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskMetadata buildPartial() { - flyteidl.core.Tasks.TaskMetadata result = new flyteidl.core.Tasks.TaskMetadata(this); - result.discoverable_ = discoverable_; - if (runtimeBuilder_ == null) { - result.runtime_ = runtime_; - } else { - result.runtime_ = runtimeBuilder_.build(); - } - if (timeoutBuilder_ == null) { - result.timeout_ = timeout_; - } else { - result.timeout_ = timeoutBuilder_.build(); - } - if (retriesBuilder_ == null) { - result.retries_ = retries_; - } else { - result.retries_ = retriesBuilder_.build(); - } - result.discoveryVersion_ = discoveryVersion_; - result.deprecatedErrorMessage_ = deprecatedErrorMessage_; - if (interruptibleValueCase_ == 8) { - result.interruptibleValue_ = interruptibleValue_; - } - result.interruptibleValueCase_ = interruptibleValueCase_; - 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 flyteidl.core.Tasks.TaskMetadata) { - return mergeFrom((flyteidl.core.Tasks.TaskMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.TaskMetadata other) { - if (other == flyteidl.core.Tasks.TaskMetadata.getDefaultInstance()) return this; - if (other.getDiscoverable() != false) { - setDiscoverable(other.getDiscoverable()); - } - if (other.hasRuntime()) { - mergeRuntime(other.getRuntime()); - } - if (other.hasTimeout()) { - mergeTimeout(other.getTimeout()); - } - if (other.hasRetries()) { - mergeRetries(other.getRetries()); - } - if (!other.getDiscoveryVersion().isEmpty()) { - discoveryVersion_ = other.discoveryVersion_; - onChanged(); - } - if (!other.getDeprecatedErrorMessage().isEmpty()) { - deprecatedErrorMessage_ = other.deprecatedErrorMessage_; - onChanged(); - } - switch (other.getInterruptibleValueCase()) { - case INTERRUPTIBLE: { - setInterruptible(other.getInterruptible()); - break; - } - case INTERRUPTIBLEVALUE_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 { - flyteidl.core.Tasks.TaskMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.TaskMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int interruptibleValueCase_ = 0; - private java.lang.Object interruptibleValue_; - public InterruptibleValueCase - getInterruptibleValueCase() { - return InterruptibleValueCase.forNumber( - interruptibleValueCase_); - } - - public Builder clearInterruptibleValue() { - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - onChanged(); - return this; - } - - - private boolean discoverable_ ; - /** - *
-       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-       * 
- * - * bool discoverable = 1; - */ - public boolean getDiscoverable() { - return discoverable_; - } - /** - *
-       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-       * 
- * - * bool discoverable = 1; - */ - public Builder setDiscoverable(boolean value) { - - discoverable_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-       * 
- * - * bool discoverable = 1; - */ - public Builder clearDiscoverable() { - - discoverable_ = false; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.RuntimeMetadata runtime_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> runtimeBuilder_; - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public boolean hasRuntime() { - return runtimeBuilder_ != null || runtime_ != null; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { - if (runtimeBuilder_ == null) { - return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; - } else { - return runtimeBuilder_.getMessage(); - } - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public Builder setRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { - if (runtimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - runtime_ = value; - onChanged(); - } else { - runtimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public Builder setRuntime( - flyteidl.core.Tasks.RuntimeMetadata.Builder builderForValue) { - if (runtimeBuilder_ == null) { - runtime_ = builderForValue.build(); - onChanged(); - } else { - runtimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public Builder mergeRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { - if (runtimeBuilder_ == null) { - if (runtime_ != null) { - runtime_ = - flyteidl.core.Tasks.RuntimeMetadata.newBuilder(runtime_).mergeFrom(value).buildPartial(); - } else { - runtime_ = value; - } - onChanged(); - } else { - runtimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public Builder clearRuntime() { - if (runtimeBuilder_ == null) { - runtime_ = null; - onChanged(); - } else { - runtime_ = null; - runtimeBuilder_ = null; - } - - return this; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadata.Builder getRuntimeBuilder() { - - onChanged(); - return getRuntimeFieldBuilder().getBuilder(); - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { - if (runtimeBuilder_ != null) { - return runtimeBuilder_.getMessageOrBuilder(); - } else { - return runtime_ == null ? - flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; - } - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> - getRuntimeFieldBuilder() { - if (runtimeBuilder_ == null) { - runtimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder>( - getRuntime(), - getParentForChildren(), - isClean()); - runtime_ = null; - } - return runtimeBuilder_; - } - - private com.google.protobuf.Duration timeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public boolean hasTimeout() { - return timeoutBuilder_ != null || timeout_ != null; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration getTimeout() { - if (timeoutBuilder_ == null) { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } else { - return timeoutBuilder_.getMessage(); - } - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder setTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timeout_ = value; - onChanged(); - } else { - timeoutBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder setTimeout( - com.google.protobuf.Duration.Builder builderForValue) { - if (timeoutBuilder_ == null) { - timeout_ = builderForValue.build(); - onChanged(); - } else { - timeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder mergeTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (timeout_ != null) { - timeout_ = - com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); - } else { - timeout_ = value; - } - onChanged(); - } else { - timeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder clearTimeout() { - if (timeoutBuilder_ == null) { - timeout_ = null; - onChanged(); - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - - return this; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - - onChanged(); - return getTimeoutFieldBuilder().getBuilder(); - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - if (timeoutBuilder_ != null) { - return timeoutBuilder_.getMessageOrBuilder(); - } else { - return timeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getTimeoutFieldBuilder() { - if (timeoutBuilder_ == null) { - timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTimeout(), - getParentForChildren(), - isClean()); - timeout_ = null; - } - return timeoutBuilder_; - } - - private flyteidl.core.Literals.RetryStrategy retries_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public boolean hasRetries() { - return retriesBuilder_ != null || retries_ != null; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy getRetries() { - if (retriesBuilder_ == null) { - return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } else { - return retriesBuilder_.getMessage(); - } - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { - if (retriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - retries_ = value; - onChanged(); - } else { - retriesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder setRetries( - flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { - if (retriesBuilder_ == null) { - retries_ = builderForValue.build(); - onChanged(); - } else { - retriesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { - if (retriesBuilder_ == null) { - if (retries_ != null) { - retries_ = - flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); - } else { - retries_ = value; - } - onChanged(); - } else { - retriesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder clearRetries() { - if (retriesBuilder_ == null) { - retries_ = null; - onChanged(); - } else { - retries_ = null; - retriesBuilder_ = null; - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { - - onChanged(); - return getRetriesFieldBuilder().getBuilder(); - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { - if (retriesBuilder_ != null) { - return retriesBuilder_.getMessageOrBuilder(); - } else { - return retries_ == null ? - flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> - getRetriesFieldBuilder() { - if (retriesBuilder_ == null) { - retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( - getRetries(), - getParentForChildren(), - isClean()); - retries_ = null; - } - return retriesBuilder_; - } - - private java.lang.Object discoveryVersion_ = ""; - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public java.lang.String getDiscoveryVersion() { - java.lang.Object ref = discoveryVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - discoveryVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public com.google.protobuf.ByteString - getDiscoveryVersionBytes() { - java.lang.Object ref = discoveryVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - discoveryVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public Builder setDiscoveryVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - discoveryVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public Builder clearDiscoveryVersion() { - - discoveryVersion_ = getDefaultInstance().getDiscoveryVersion(); - onChanged(); - return this; - } - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public Builder setDiscoveryVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - discoveryVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object deprecatedErrorMessage_ = ""; - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public java.lang.String getDeprecatedErrorMessage() { - java.lang.Object ref = deprecatedErrorMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deprecatedErrorMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public com.google.protobuf.ByteString - getDeprecatedErrorMessageBytes() { - java.lang.Object ref = deprecatedErrorMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deprecatedErrorMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public Builder setDeprecatedErrorMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deprecatedErrorMessage_ = value; - onChanged(); - return this; - } - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public Builder clearDeprecatedErrorMessage() { - - deprecatedErrorMessage_ = getDefaultInstance().getDeprecatedErrorMessage(); - onChanged(); - return this; - } - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public Builder setDeprecatedErrorMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deprecatedErrorMessage_ = value; - onChanged(); - return this; - } - - /** - * bool interruptible = 8; - */ - public boolean getInterruptible() { - if (interruptibleValueCase_ == 8) { - return (java.lang.Boolean) interruptibleValue_; - } - return false; - } - /** - * bool interruptible = 8; - */ - public Builder setInterruptible(boolean value) { - interruptibleValueCase_ = 8; - interruptibleValue_ = value; - onChanged(); - return this; - } - /** - * bool interruptible = 8; - */ - public Builder clearInterruptible() { - if (interruptibleValueCase_ == 8) { - interruptibleValueCase_ = 0; - interruptibleValue_ = 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:flyteidl.core.TaskMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskMetadata) - private static final flyteidl.core.Tasks.TaskMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskMetadata(); - } - - public static flyteidl.core.Tasks.TaskMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskMetadata(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 flyteidl.core.Tasks.TaskMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskTemplateOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-     * implementation registered for the TaskCategory.
-     * 
- * - * string type = 2; - */ - java.lang.String getType(); - /** - *
-     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-     * implementation registered for the TaskCategory.
-     * 
- * - * string type = 2; - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - boolean hasMetadata(); - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - flyteidl.core.Tasks.TaskMetadata getMetadata(); - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - boolean hasInterface(); - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - flyteidl.core.Interface.TypedInterface getInterface(); - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); - - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - boolean hasCustom(); - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - com.google.protobuf.Struct getCustom(); - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - com.google.protobuf.StructOrBuilder getCustomOrBuilder(); - - /** - * .flyteidl.core.Container container = 6; - */ - boolean hasContainer(); - /** - * .flyteidl.core.Container container = 6; - */ - flyteidl.core.Tasks.Container getContainer(); - /** - * .flyteidl.core.Container container = 6; - */ - flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder(); - - public flyteidl.core.Tasks.TaskTemplate.TargetCase getTargetCase(); - } - /** - *
-   * A Task structure that uniquely identifies a task in the system
-   * Tasks are registered as a first step in the system.
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskTemplate} - */ - public static final class TaskTemplate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskTemplate) - TaskTemplateOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskTemplate.newBuilder() to construct. - private TaskTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskTemplate() { - type_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskTemplate( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 26: { - flyteidl.core.Tasks.TaskMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Tasks.TaskMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; - if (interface_ != null) { - subBuilder = interface_.toBuilder(); - } - interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(interface_); - interface_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (custom_ != null) { - subBuilder = custom_.toBuilder(); - } - custom_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(custom_); - custom_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - flyteidl.core.Tasks.Container.Builder subBuilder = null; - if (targetCase_ == 6) { - subBuilder = ((flyteidl.core.Tasks.Container) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Tasks.Container.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Tasks.Container) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 6; - 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 flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); - } - - private int targetCase_ = 0; - private java.lang.Object target_; - public enum TargetCase - implements com.google.protobuf.Internal.EnumLite { - CONTAINER(6), - TARGET_NOT_SET(0); - private final int value; - private TargetCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetCase valueOf(int value) { - return forNumber(value); - } - - public static TargetCase forNumber(int value) { - switch (value) { - case 6: return CONTAINER; - case 0: return TARGET_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object type_; - /** - *
-     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-     * implementation registered for the TaskCategory.
-     * 
- * - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - 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(); - type_ = s; - return s; - } - } - /** - *
-     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-     * implementation registered for the TaskCategory.
-     * 
- * - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 3; - private flyteidl.core.Tasks.TaskMetadata metadata_; - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int INTERFACE_FIELD_NUMBER = 4; - private flyteidl.core.Interface.TypedInterface interface_; - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public boolean hasInterface() { - return interface_ != null; - } - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterface getInterface() { - return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { - return getInterface(); - } - - public static final int CUSTOM_FIELD_NUMBER = 5; - private com.google.protobuf.Struct custom_; - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - public boolean hasCustom() { - return custom_ != null; - } - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.Struct getCustom() { - return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; - } - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { - return getCustom(); - } - - public static final int CONTAINER_FIELD_NUMBER = 6; - /** - * .flyteidl.core.Container container = 6; - */ - public boolean hasContainer() { - return targetCase_ == 6; - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.Container getContainer() { - if (targetCase_ == 6) { - return (flyteidl.core.Tasks.Container) target_; - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { - if (targetCase_ == 6) { - return (flyteidl.core.Tasks.Container) target_; - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (id_ != null) { - output.writeMessage(1, getId()); - } - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - if (interface_ != null) { - output.writeMessage(4, getInterface()); - } - if (custom_ != null) { - output.writeMessage(5, getCustom()); - } - if (targetCase_ == 6) { - output.writeMessage(6, (flyteidl.core.Tasks.Container) target_); - } - 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 (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - if (interface_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getInterface()); - } - if (custom_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCustom()); - } - if (targetCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (flyteidl.core.Tasks.Container) target_); - } - 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 flyteidl.core.Tasks.TaskTemplate)) { - return super.equals(obj); - } - flyteidl.core.Tasks.TaskTemplate other = (flyteidl.core.Tasks.TaskTemplate) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getType() - .equals(other.getType())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (hasInterface() != other.hasInterface()) return false; - if (hasInterface()) { - if (!getInterface() - .equals(other.getInterface())) return false; - } - if (hasCustom() != other.hasCustom()) return false; - if (hasCustom()) { - if (!getCustom() - .equals(other.getCustom())) return false; - } - if (!getTargetCase().equals(other.getTargetCase())) return false; - switch (targetCase_) { - case 6: - if (!getContainer() - .equals(other.getContainer())) 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(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasInterface()) { - hash = (37 * hash) + INTERFACE_FIELD_NUMBER; - hash = (53 * hash) + getInterface().hashCode(); - } - if (hasCustom()) { - hash = (37 * hash) + CUSTOM_FIELD_NUMBER; - hash = (53 * hash) + getCustom().hashCode(); - } - switch (targetCase_) { - case 6: - hash = (37 * hash) + CONTAINER_FIELD_NUMBER; - hash = (53 * hash) + getContainer().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskTemplate 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 flyteidl.core.Tasks.TaskTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskTemplate 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 flyteidl.core.Tasks.TaskTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskTemplate 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(flyteidl.core.Tasks.TaskTemplate 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 Task structure that uniquely identifies a task in the system
-     * Tasks are registered as a first step in the system.
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskTemplate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskTemplate) - flyteidl.core.Tasks.TaskTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); - } - - // Construct using flyteidl.core.Tasks.TaskTemplate.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - type_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (interfaceBuilder_ == null) { - interface_ = null; - } else { - interface_ = null; - interfaceBuilder_ = null; - } - if (customBuilder_ == null) { - custom_ = null; - } else { - custom_ = null; - customBuilder_ = null; - } - targetCase_ = 0; - target_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskTemplate getDefaultInstanceForType() { - return flyteidl.core.Tasks.TaskTemplate.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskTemplate build() { - flyteidl.core.Tasks.TaskTemplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskTemplate buildPartial() { - flyteidl.core.Tasks.TaskTemplate result = new flyteidl.core.Tasks.TaskTemplate(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.type_ = type_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (interfaceBuilder_ == null) { - result.interface_ = interface_; - } else { - result.interface_ = interfaceBuilder_.build(); - } - if (customBuilder_ == null) { - result.custom_ = custom_; - } else { - result.custom_ = customBuilder_.build(); - } - if (targetCase_ == 6) { - if (containerBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = containerBuilder_.build(); - } - } - result.targetCase_ = targetCase_; - 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 flyteidl.core.Tasks.TaskTemplate) { - return mergeFrom((flyteidl.core.Tasks.TaskTemplate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.TaskTemplate other) { - if (other == flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasInterface()) { - mergeInterface(other.getInterface()); - } - if (other.hasCustom()) { - mergeCustom(other.getCustom()); - } - switch (other.getTargetCase()) { - case CONTAINER: { - mergeContainer(other.getContainer()); - break; - } - case TARGET_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 { - flyteidl.core.Tasks.TaskTemplate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.TaskTemplate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int targetCase_ = 0; - private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public Builder clearTarget() { - targetCase_ = 0; - target_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object type_ = ""; - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.TaskMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public Builder setMetadata(flyteidl.core.Tasks.TaskMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public Builder setMetadata( - flyteidl.core.Tasks.TaskMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public Builder mergeMetadata(flyteidl.core.Tasks.TaskMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Tasks.TaskMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private flyteidl.core.Interface.TypedInterface interface_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public boolean hasInterface() { - return interfaceBuilder_ != null || interface_ != null; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterface getInterface() { - if (interfaceBuilder_ == null) { - return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } else { - return interfaceBuilder_.getMessage(); - } - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { - if (interfaceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - interface_ = value; - onChanged(); - } else { - interfaceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public Builder setInterface( - flyteidl.core.Interface.TypedInterface.Builder builderForValue) { - if (interfaceBuilder_ == null) { - interface_ = builderForValue.build(); - onChanged(); - } else { - interfaceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { - if (interfaceBuilder_ == null) { - if (interface_ != null) { - interface_ = - flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); - } else { - interface_ = value; - } - onChanged(); - } else { - interfaceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public Builder clearInterface() { - if (interfaceBuilder_ == null) { - interface_ = null; - onChanged(); - } else { - interface_ = null; - interfaceBuilder_ = null; - } - - return this; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { - - onChanged(); - return getInterfaceFieldBuilder().getBuilder(); - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { - if (interfaceBuilder_ != null) { - return interfaceBuilder_.getMessageOrBuilder(); - } else { - return interface_ == null ? - flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> - getInterfaceFieldBuilder() { - if (interfaceBuilder_ == null) { - interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( - getInterface(), - getParentForChildren(), - isClean()); - interface_ = null; - } - return interfaceBuilder_; - } - - private com.google.protobuf.Struct custom_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customBuilder_; - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public boolean hasCustom() { - return customBuilder_ != null || custom_ != null; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.Struct getCustom() { - if (customBuilder_ == null) { - return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; - } else { - return customBuilder_.getMessage(); - } - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public Builder setCustom(com.google.protobuf.Struct value) { - if (customBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - custom_ = value; - onChanged(); - } else { - customBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public Builder setCustom( - com.google.protobuf.Struct.Builder builderForValue) { - if (customBuilder_ == null) { - custom_ = builderForValue.build(); - onChanged(); - } else { - customBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public Builder mergeCustom(com.google.protobuf.Struct value) { - if (customBuilder_ == null) { - if (custom_ != null) { - custom_ = - com.google.protobuf.Struct.newBuilder(custom_).mergeFrom(value).buildPartial(); - } else { - custom_ = value; - } - onChanged(); - } else { - customBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public Builder clearCustom() { - if (customBuilder_ == null) { - custom_ = null; - onChanged(); - } else { - custom_ = null; - customBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.Struct.Builder getCustomBuilder() { - - onChanged(); - return getCustomFieldBuilder().getBuilder(); - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { - if (customBuilder_ != null) { - return customBuilder_.getMessageOrBuilder(); - } else { - return custom_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : custom_; - } - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getCustomFieldBuilder() { - if (customBuilder_ == null) { - customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getCustom(), - getParentForChildren(), - isClean()); - custom_ = null; - } - return customBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> containerBuilder_; - /** - * .flyteidl.core.Container container = 6; - */ - public boolean hasContainer() { - return targetCase_ == 6; - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.Container getContainer() { - if (containerBuilder_ == null) { - if (targetCase_ == 6) { - return (flyteidl.core.Tasks.Container) target_; - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } else { - if (targetCase_ == 6) { - return containerBuilder_.getMessage(); - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Container container = 6; - */ - public Builder setContainer(flyteidl.core.Tasks.Container value) { - if (containerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - containerBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - * .flyteidl.core.Container container = 6; - */ - public Builder setContainer( - flyteidl.core.Tasks.Container.Builder builderForValue) { - if (containerBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - containerBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 6; - return this; - } - /** - * .flyteidl.core.Container container = 6; - */ - public Builder mergeContainer(flyteidl.core.Tasks.Container value) { - if (containerBuilder_ == null) { - if (targetCase_ == 6 && - target_ != flyteidl.core.Tasks.Container.getDefaultInstance()) { - target_ = flyteidl.core.Tasks.Container.newBuilder((flyteidl.core.Tasks.Container) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 6) { - containerBuilder_.mergeFrom(value); - } - containerBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - * .flyteidl.core.Container container = 6; - */ - public Builder clearContainer() { - if (containerBuilder_ == null) { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - } - containerBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.Container.Builder getContainerBuilder() { - return getContainerFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { - if ((targetCase_ == 6) && (containerBuilder_ != null)) { - return containerBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 6) { - return (flyteidl.core.Tasks.Container) target_; - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Container container = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> - getContainerFieldBuilder() { - if (containerBuilder_ == null) { - if (!(targetCase_ == 6)) { - target_ = flyteidl.core.Tasks.Container.getDefaultInstance(); - } - containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder>( - (flyteidl.core.Tasks.Container) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 6; - onChanged();; - return containerBuilder_; - } - @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:flyteidl.core.TaskTemplate) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskTemplate) - private static final flyteidl.core.Tasks.TaskTemplate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskTemplate(); - } - - public static flyteidl.core.Tasks.TaskTemplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskTemplate(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 flyteidl.core.Tasks.TaskTemplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ContainerPortOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ContainerPort) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Number of port to expose on the pod's IP address.
-     * This must be a valid port number, 0 < x < 65536.
-     * 
- * - * uint32 container_port = 1; - */ - int getContainerPort(); - } - /** - *
-   * Defines port properties for a container.
-   * 
- * - * Protobuf type {@code flyteidl.core.ContainerPort} - */ - public static final class ContainerPort extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerPort) - ContainerPortOrBuilder { - private static final long serialVersionUID = 0L; - // Use ContainerPort.newBuilder() to construct. - private ContainerPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ContainerPort() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContainerPort( - 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 8: { - - containerPort_ = input.readUInt32(); - 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 flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); - } - - public static final int CONTAINER_PORT_FIELD_NUMBER = 1; - private int containerPort_; - /** - *
-     * Number of port to expose on the pod's IP address.
-     * This must be a valid port number, 0 < x < 65536.
-     * 
- * - * uint32 container_port = 1; - */ - public int getContainerPort() { - return containerPort_; - } - - 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 (containerPort_ != 0) { - output.writeUInt32(1, containerPort_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (containerPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, containerPort_); - } - 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 flyteidl.core.Tasks.ContainerPort)) { - return super.equals(obj); - } - flyteidl.core.Tasks.ContainerPort other = (flyteidl.core.Tasks.ContainerPort) obj; - - if (getContainerPort() - != other.getContainerPort()) 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) + CONTAINER_PORT_FIELD_NUMBER; - hash = (53 * hash) + getContainerPort(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.ContainerPort parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.ContainerPort 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 flyteidl.core.Tasks.ContainerPort parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.ContainerPort 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 flyteidl.core.Tasks.ContainerPort parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.ContainerPort 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(flyteidl.core.Tasks.ContainerPort 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; - } - /** - *
-     * Defines port properties for a container.
-     * 
- * - * Protobuf type {@code flyteidl.core.ContainerPort} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerPort) - flyteidl.core.Tasks.ContainerPortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); - } - - // Construct using flyteidl.core.Tasks.ContainerPort.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(); - containerPort_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.ContainerPort getDefaultInstanceForType() { - return flyteidl.core.Tasks.ContainerPort.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.ContainerPort build() { - flyteidl.core.Tasks.ContainerPort result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.ContainerPort buildPartial() { - flyteidl.core.Tasks.ContainerPort result = new flyteidl.core.Tasks.ContainerPort(this); - result.containerPort_ = containerPort_; - 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 flyteidl.core.Tasks.ContainerPort) { - return mergeFrom((flyteidl.core.Tasks.ContainerPort)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.ContainerPort other) { - if (other == flyteidl.core.Tasks.ContainerPort.getDefaultInstance()) return this; - if (other.getContainerPort() != 0) { - setContainerPort(other.getContainerPort()); - } - 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 { - flyteidl.core.Tasks.ContainerPort parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.ContainerPort) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int containerPort_ ; - /** - *
-       * Number of port to expose on the pod's IP address.
-       * This must be a valid port number, 0 < x < 65536.
-       * 
- * - * uint32 container_port = 1; - */ - public int getContainerPort() { - return containerPort_; - } - /** - *
-       * Number of port to expose on the pod's IP address.
-       * This must be a valid port number, 0 < x < 65536.
-       * 
- * - * uint32 container_port = 1; - */ - public Builder setContainerPort(int value) { - - containerPort_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of port to expose on the pod's IP address.
-       * This must be a valid port number, 0 < x < 65536.
-       * 
- * - * uint32 container_port = 1; - */ - public Builder clearContainerPort() { - - containerPort_ = 0; - 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:flyteidl.core.ContainerPort) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerPort) - private static final flyteidl.core.Tasks.ContainerPort DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.ContainerPort(); - } - - public static flyteidl.core.Tasks.ContainerPort getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContainerPort parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContainerPort(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 flyteidl.core.Tasks.ContainerPort getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ContainerOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Container) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Container image url. Eg: docker/redis:latest
-     * 
- * - * string image = 1; - */ - java.lang.String getImage(); - /** - *
-     * Container image url. Eg: docker/redis:latest
-     * 
- * - * string image = 1; - */ - com.google.protobuf.ByteString - getImageBytes(); - - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - java.util.List - getCommandList(); - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - int getCommandCount(); - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - java.lang.String getCommand(int index); - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - com.google.protobuf.ByteString - getCommandBytes(int index); - - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - java.util.List - getArgsList(); - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - int getArgsCount(); - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - java.lang.String getArgs(int index); - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - com.google.protobuf.ByteString - getArgsBytes(int index); - - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - boolean hasResources(); - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - flyteidl.core.Tasks.Resources getResources(); - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); - - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - java.util.List - getEnvList(); - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - flyteidl.core.Literals.KeyValuePair getEnv(int index); - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - int getEnvCount(); - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - java.util.List - getEnvOrBuilderList(); - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( - int index); - - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - java.util.List - getConfigList(); - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - flyteidl.core.Literals.KeyValuePair getConfig(int index); - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - int getConfigCount(); - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - java.util.List - getConfigOrBuilderList(); - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( - int index); - - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - java.util.List - getPortsList(); - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - flyteidl.core.Tasks.ContainerPort getPorts(int index); - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - int getPortsCount(); - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - java.util.List - getPortsOrBuilderList(); - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( - int index); - - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - boolean hasDataConfig(); - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - flyteidl.core.Tasks.DataLoadingConfig getDataConfig(); - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.core.Container} - */ - public static final class Container extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Container) - ContainerOrBuilder { - private static final long serialVersionUID = 0L; - // Use Container.newBuilder() to construct. - private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Container() { - image_ = ""; - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - env_ = java.util.Collections.emptyList(); - config_ = java.util.Collections.emptyList(); - ports_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Container( - 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(); - - image_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - command_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - command_.add(s); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - args_.add(s); - break; - } - case 34: { - flyteidl.core.Tasks.Resources.Builder subBuilder = null; - if (resources_ != null) { - subBuilder = resources_.toBuilder(); - } - resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resources_); - resources_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - env_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - env_.add( - input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - config_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - config_.add( - input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - ports_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - ports_.add( - input.readMessage(flyteidl.core.Tasks.ContainerPort.parser(), extensionRegistry)); - break; - } - case 74: { - flyteidl.core.Tasks.DataLoadingConfig.Builder subBuilder = null; - if (dataConfig_ != null) { - subBuilder = dataConfig_.toBuilder(); - } - dataConfig_ = input.readMessage(flyteidl.core.Tasks.DataLoadingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataConfig_); - dataConfig_ = 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_ & 0x00000002) != 0)) { - command_ = command_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - env_ = java.util.Collections.unmodifiableList(env_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - config_ = java.util.Collections.unmodifiableList(config_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - ports_ = java.util.Collections.unmodifiableList(ports_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); - } - - private int bitField0_; - public static final int IMAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object image_; - /** - *
-     * Container image url. Eg: docker/redis:latest
-     * 
- * - * string image = 1; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - 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(); - image_ = s; - return s; - } - } - /** - *
-     * Container image url. Eg: docker/redis:latest
-     * 
- * - * string image = 1; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMMAND_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList command_; - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - public com.google.protobuf.ProtocolStringList - getCommandList() { - return command_; - } - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - public int getCommandCount() { - return command_.size(); - } - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - public java.lang.String getCommand(int index) { - return command_.get(index); - } - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { - return command_.getByteString(index); - } - - public static final int ARGS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList args_; - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - public com.google.protobuf.ProtocolStringList - getArgsList() { - return args_; - } - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - public int getArgsCount() { - return args_.size(); - } - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int RESOURCES_FIELD_NUMBER = 4; - private flyteidl.core.Tasks.Resources resources_; - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public boolean hasResources() { - return resources_ != null; - } - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.Resources getResources() { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - return getResources(); - } - - public static final int ENV_FIELD_NUMBER = 5; - private java.util.List env_; - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List getEnvList() { - return env_; - } - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List - getEnvOrBuilderList() { - return env_; - } - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public int getEnvCount() { - return env_.size(); - } - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair getEnv(int index) { - return env_.get(index); - } - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( - int index) { - return env_.get(index); - } - - public static final int CONFIG_FIELD_NUMBER = 6; - private java.util.List config_; - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public java.util.List getConfigList() { - return config_; - } - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public java.util.List - getConfigOrBuilderList() { - return config_; - } - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public int getConfigCount() { - return config_.size(); - } - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePair getConfig(int index) { - return config_.get(index); - } - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( - int index) { - return config_.get(index); - } - - public static final int PORTS_FIELD_NUMBER = 7; - private java.util.List ports_; - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List getPortsList() { - return ports_; - } - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List - getPortsOrBuilderList() { - return ports_; - } - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public int getPortsCount() { - return ports_.size(); - } - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort getPorts(int index) { - return ports_.get(index); - } - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( - int index) { - return ports_.get(index); - } - - public static final int DATA_CONFIG_FIELD_NUMBER = 9; - private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public boolean hasDataConfig() { - return dataConfig_ != null; - } - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { - return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; - } - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { - return getDataConfig(); - } - - 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 (!getImageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); - } - for (int i = 0; i < command_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, command_.getRaw(i)); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); - } - if (resources_ != null) { - output.writeMessage(4, getResources()); - } - for (int i = 0; i < env_.size(); i++) { - output.writeMessage(5, env_.get(i)); - } - for (int i = 0; i < config_.size(); i++) { - output.writeMessage(6, config_.get(i)); - } - for (int i = 0; i < ports_.size(); i++) { - output.writeMessage(7, ports_.get(i)); - } - if (dataConfig_ != null) { - output.writeMessage(9, getDataConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getImageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); - } - { - int dataSize = 0; - for (int i = 0; i < command_.size(); i++) { - dataSize += computeStringSizeNoTag(command_.getRaw(i)); - } - size += dataSize; - size += 1 * getCommandList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - if (resources_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResources()); - } - for (int i = 0; i < env_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, env_.get(i)); - } - for (int i = 0; i < config_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, config_.get(i)); - } - for (int i = 0; i < ports_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, ports_.get(i)); - } - if (dataConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getDataConfig()); - } - 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 flyteidl.core.Tasks.Container)) { - return super.equals(obj); - } - flyteidl.core.Tasks.Container other = (flyteidl.core.Tasks.Container) obj; - - if (!getImage() - .equals(other.getImage())) return false; - if (!getCommandList() - .equals(other.getCommandList())) return false; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (hasResources() != other.hasResources()) return false; - if (hasResources()) { - if (!getResources() - .equals(other.getResources())) return false; - } - if (!getEnvList() - .equals(other.getEnvList())) return false; - if (!getConfigList() - .equals(other.getConfigList())) return false; - if (!getPortsList() - .equals(other.getPortsList())) return false; - if (hasDataConfig() != other.hasDataConfig()) return false; - if (hasDataConfig()) { - if (!getDataConfig() - .equals(other.getDataConfig())) 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) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - if (getCommandCount() > 0) { - hash = (37 * hash) + COMMAND_FIELD_NUMBER; - hash = (53 * hash) + getCommandList().hashCode(); - } - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (hasResources()) { - hash = (37 * hash) + RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getResources().hashCode(); - } - if (getEnvCount() > 0) { - hash = (37 * hash) + ENV_FIELD_NUMBER; - hash = (53 * hash) + getEnvList().hashCode(); - } - if (getConfigCount() > 0) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfigList().hashCode(); - } - if (getPortsCount() > 0) { - hash = (37 * hash) + PORTS_FIELD_NUMBER; - hash = (53 * hash) + getPortsList().hashCode(); - } - if (hasDataConfig()) { - hash = (37 * hash) + DATA_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDataConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.Container parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Container parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Container parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Container parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Container parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Container parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Container parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Container 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 flyteidl.core.Tasks.Container parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Container 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 flyteidl.core.Tasks.Container parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Container 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(flyteidl.core.Tasks.Container 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 flyteidl.core.Container} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Container) - flyteidl.core.Tasks.ContainerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); - } - - // Construct using flyteidl.core.Tasks.Container.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEnvFieldBuilder(); - getConfigFieldBuilder(); - getPortsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - image_ = ""; - - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (resourcesBuilder_ == null) { - resources_ = null; - } else { - resources_ = null; - resourcesBuilder_ = null; - } - if (envBuilder_ == null) { - env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - envBuilder_.clear(); - } - if (configBuilder_ == null) { - config_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - configBuilder_.clear(); - } - if (portsBuilder_ == null) { - ports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - portsBuilder_.clear(); - } - if (dataConfigBuilder_ == null) { - dataConfig_ = null; - } else { - dataConfig_ = null; - dataConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.Container getDefaultInstanceForType() { - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.Container build() { - flyteidl.core.Tasks.Container result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.Container buildPartial() { - flyteidl.core.Tasks.Container result = new flyteidl.core.Tasks.Container(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.image_ = image_; - if (((bitField0_ & 0x00000002) != 0)) { - command_ = command_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.command_ = command_; - if (((bitField0_ & 0x00000004) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.args_ = args_; - if (resourcesBuilder_ == null) { - result.resources_ = resources_; - } else { - result.resources_ = resourcesBuilder_.build(); - } - if (envBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - env_ = java.util.Collections.unmodifiableList(env_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.env_ = env_; - } else { - result.env_ = envBuilder_.build(); - } - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - config_ = java.util.Collections.unmodifiableList(config_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); - } - if (portsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - ports_ = java.util.Collections.unmodifiableList(ports_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.ports_ = ports_; - } else { - result.ports_ = portsBuilder_.build(); - } - if (dataConfigBuilder_ == null) { - result.dataConfig_ = dataConfig_; - } else { - result.dataConfig_ = dataConfigBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.core.Tasks.Container) { - return mergeFrom((flyteidl.core.Tasks.Container)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.Container other) { - if (other == flyteidl.core.Tasks.Container.getDefaultInstance()) return this; - if (!other.getImage().isEmpty()) { - image_ = other.image_; - onChanged(); - } - if (!other.command_.isEmpty()) { - if (command_.isEmpty()) { - command_ = other.command_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCommandIsMutable(); - command_.addAll(other.command_); - } - onChanged(); - } - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (other.hasResources()) { - mergeResources(other.getResources()); - } - if (envBuilder_ == null) { - if (!other.env_.isEmpty()) { - if (env_.isEmpty()) { - env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureEnvIsMutable(); - env_.addAll(other.env_); - } - onChanged(); - } - } else { - if (!other.env_.isEmpty()) { - if (envBuilder_.isEmpty()) { - envBuilder_.dispose(); - envBuilder_ = null; - env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000010); - envBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEnvFieldBuilder() : null; - } else { - envBuilder_.addAllMessages(other.env_); - } - } - } - if (configBuilder_ == null) { - if (!other.config_.isEmpty()) { - if (config_.isEmpty()) { - config_ = other.config_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureConfigIsMutable(); - config_.addAll(other.config_); - } - onChanged(); - } - } else { - if (!other.config_.isEmpty()) { - if (configBuilder_.isEmpty()) { - configBuilder_.dispose(); - configBuilder_ = null; - config_ = other.config_; - bitField0_ = (bitField0_ & ~0x00000020); - configBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConfigFieldBuilder() : null; - } else { - configBuilder_.addAllMessages(other.config_); - } - } - } - if (portsBuilder_ == null) { - if (!other.ports_.isEmpty()) { - if (ports_.isEmpty()) { - ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensurePortsIsMutable(); - ports_.addAll(other.ports_); - } - onChanged(); - } - } else { - if (!other.ports_.isEmpty()) { - if (portsBuilder_.isEmpty()) { - portsBuilder_.dispose(); - portsBuilder_ = null; - ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000040); - portsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPortsFieldBuilder() : null; - } else { - portsBuilder_.addAllMessages(other.ports_); - } - } - } - if (other.hasDataConfig()) { - mergeDataConfig(other.getDataConfig()); - } - 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 { - flyteidl.core.Tasks.Container parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.Container) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object image_ = ""; - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public Builder setImage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - image_ = value; - onChanged(); - return this; - } - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public Builder clearImage() { - - image_ = getDefaultInstance().getImage(); - onChanged(); - return this; - } - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - image_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureCommandIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - command_ = new com.google.protobuf.LazyStringArrayList(command_); - bitField0_ |= 0x00000002; - } - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public com.google.protobuf.ProtocolStringList - getCommandList() { - return command_.getUnmodifiableView(); - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public int getCommandCount() { - return command_.size(); - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public java.lang.String getCommand(int index) { - return command_.get(index); - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { - return command_.getByteString(index); - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder setCommand( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommandIsMutable(); - command_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder addCommand( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommandIsMutable(); - command_.add(value); - onChanged(); - return this; - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder addAllCommand( - java.lang.Iterable values) { - ensureCommandIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, command_); - onChanged(); - return this; - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder clearCommand() { - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder addCommandBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureCommandIsMutable(); - command_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000004; - } - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public com.google.protobuf.ProtocolStringList - getArgsList() { - return args_.getUnmodifiableView(); - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public int getArgsCount() { - return args_.size(); - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder setArgs( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder addArgs( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder addAllArgs( - java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); - onChanged(); - return this; - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private flyteidl.core.Tasks.Resources resources_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public boolean hasResources() { - return resourcesBuilder_ != null || resources_ != null; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.Resources getResources() { - if (resourcesBuilder_ == null) { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } else { - return resourcesBuilder_.getMessage(); - } - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public Builder setResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resources_ = value; - onChanged(); - } else { - resourcesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public Builder setResources( - flyteidl.core.Tasks.Resources.Builder builderForValue) { - if (resourcesBuilder_ == null) { - resources_ = builderForValue.build(); - onChanged(); - } else { - resourcesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public Builder mergeResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (resources_ != null) { - resources_ = - flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); - } else { - resources_ = value; - } - onChanged(); - } else { - resourcesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public Builder clearResources() { - if (resourcesBuilder_ == null) { - resources_ = null; - onChanged(); - } else { - resources_ = null; - resourcesBuilder_ = null; - } - - return this; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { - - onChanged(); - return getResourcesFieldBuilder().getBuilder(); - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - if (resourcesBuilder_ != null) { - return resourcesBuilder_.getMessageOrBuilder(); - } else { - return resources_ == null ? - flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> - getResourcesFieldBuilder() { - if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( - getResources(), - getParentForChildren(), - isClean()); - resources_ = null; - } - return resourcesBuilder_; - } - - private java.util.List env_ = - java.util.Collections.emptyList(); - private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - env_ = new java.util.ArrayList(env_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> envBuilder_; - - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List getEnvList() { - if (envBuilder_ == null) { - return java.util.Collections.unmodifiableList(env_); - } else { - return envBuilder_.getMessageList(); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public int getEnvCount() { - if (envBuilder_ == null) { - return env_.size(); - } else { - return envBuilder_.getCount(); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair getEnv(int index) { - if (envBuilder_ == null) { - return env_.get(index); - } else { - return envBuilder_.getMessage(index); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder setEnv( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (envBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.set(index, value); - onChanged(); - } else { - envBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder setEnv( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.set(index, builderForValue.build()); - onChanged(); - } else { - envBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addEnv(flyteidl.core.Literals.KeyValuePair value) { - if (envBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.add(value); - onChanged(); - } else { - envBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addEnv( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (envBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.add(index, value); - onChanged(); - } else { - envBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addEnv( - flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.add(builderForValue.build()); - onChanged(); - } else { - envBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addEnv( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.add(index, builderForValue.build()); - onChanged(); - } else { - envBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addAllEnv( - java.lang.Iterable values) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, env_); - onChanged(); - } else { - envBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder clearEnv() { - if (envBuilder_ == null) { - env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - envBuilder_.clear(); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder removeEnv(int index) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.remove(index); - onChanged(); - } else { - envBuilder_.remove(index); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair.Builder getEnvBuilder( - int index) { - return getEnvFieldBuilder().getBuilder(index); - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( - int index) { - if (envBuilder_ == null) { - return env_.get(index); } else { - return envBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List - getEnvOrBuilderList() { - if (envBuilder_ != null) { - return envBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(env_); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder() { - return getEnvFieldBuilder().addBuilder( - flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder( - int index) { - return getEnvFieldBuilder().addBuilder( - index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List - getEnvBuilderList() { - return getEnvFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> - getEnvFieldBuilder() { - if (envBuilder_ == null) { - envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( - env_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - env_ = null; - } - return envBuilder_; - } - - private java.util.List config_ = - java.util.Collections.emptyList(); - private void ensureConfigIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - config_ = new java.util.ArrayList(config_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> configBuilder_; - - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public java.util.List getConfigList() { - if (configBuilder_ == null) { - return java.util.Collections.unmodifiableList(config_); - } else { - return configBuilder_.getMessageList(); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public int getConfigCount() { - if (configBuilder_ == null) { - return config_.size(); - } else { - return configBuilder_.getCount(); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePair getConfig(int index) { - if (configBuilder_ == null) { - return config_.get(index); - } else { - return configBuilder_.getMessage(index); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder setConfig( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigIsMutable(); - config_.set(index, value); - onChanged(); - } else { - configBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder setConfig( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - config_.set(index, builderForValue.build()); - onChanged(); - } else { - configBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder addConfig(flyteidl.core.Literals.KeyValuePair value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigIsMutable(); - config_.add(value); - onChanged(); - } else { - configBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder addConfig( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigIsMutable(); - config_.add(index, value); - onChanged(); - } else { - configBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder addConfig( - flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - config_.add(builderForValue.build()); - onChanged(); - } else { - configBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder addConfig( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - config_.add(index, builderForValue.build()); - onChanged(); - } else { - configBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder addAllConfig( - java.lang.Iterable values) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, config_); - onChanged(); - } else { - configBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - configBuilder_.clear(); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public Builder removeConfig(int index) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - config_.remove(index); - onChanged(); - } else { - configBuilder_.remove(index); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePair.Builder getConfigBuilder( - int index) { - return getConfigFieldBuilder().getBuilder(index); - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( - int index) { - if (configBuilder_ == null) { - return config_.get(index); } else { - return configBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public java.util.List - getConfigOrBuilderList() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(config_); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder() { - return getConfigFieldBuilder().addBuilder( - flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder( - int index) { - return getConfigFieldBuilder().addBuilder( - index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6; - */ - public java.util.List - getConfigBuilderList() { - return getConfigFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( - config_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - - private java.util.List ports_ = - java.util.Collections.emptyList(); - private void ensurePortsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - ports_ = new java.util.ArrayList(ports_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> portsBuilder_; - - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List getPortsList() { - if (portsBuilder_ == null) { - return java.util.Collections.unmodifiableList(ports_); - } else { - return portsBuilder_.getMessageList(); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public int getPortsCount() { - if (portsBuilder_ == null) { - return ports_.size(); - } else { - return portsBuilder_.getCount(); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort getPorts(int index) { - if (portsBuilder_ == null) { - return ports_.get(index); - } else { - return portsBuilder_.getMessage(index); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder setPorts( - int index, flyteidl.core.Tasks.ContainerPort value) { - if (portsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePortsIsMutable(); - ports_.set(index, value); - onChanged(); - } else { - portsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder setPorts( - int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.set(index, builderForValue.build()); - onChanged(); - } else { - portsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addPorts(flyteidl.core.Tasks.ContainerPort value) { - if (portsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePortsIsMutable(); - ports_.add(value); - onChanged(); - } else { - portsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addPorts( - int index, flyteidl.core.Tasks.ContainerPort value) { - if (portsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePortsIsMutable(); - ports_.add(index, value); - onChanged(); - } else { - portsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addPorts( - flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.add(builderForValue.build()); - onChanged(); - } else { - portsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addPorts( - int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.add(index, builderForValue.build()); - onChanged(); - } else { - portsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addAllPorts( - java.lang.Iterable values) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ports_); - onChanged(); - } else { - portsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder clearPorts() { - if (portsBuilder_ == null) { - ports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - portsBuilder_.clear(); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder removePorts(int index) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.remove(index); - onChanged(); - } else { - portsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort.Builder getPortsBuilder( - int index) { - return getPortsFieldBuilder().getBuilder(index); - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( - int index) { - if (portsBuilder_ == null) { - return ports_.get(index); } else { - return portsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List - getPortsOrBuilderList() { - if (portsBuilder_ != null) { - return portsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(ports_); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder() { - return getPortsFieldBuilder().addBuilder( - flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder( - int index) { - return getPortsFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List - getPortsBuilderList() { - return getPortsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> - getPortsFieldBuilder() { - if (portsBuilder_ == null) { - portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder>( - ports_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - ports_ = null; - } - return portsBuilder_; - } - - private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> dataConfigBuilder_; - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public boolean hasDataConfig() { - return dataConfigBuilder_ != null || dataConfig_ != null; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { - if (dataConfigBuilder_ == null) { - return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; - } else { - return dataConfigBuilder_.getMessage(); - } - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public Builder setDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { - if (dataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataConfig_ = value; - onChanged(); - } else { - dataConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public Builder setDataConfig( - flyteidl.core.Tasks.DataLoadingConfig.Builder builderForValue) { - if (dataConfigBuilder_ == null) { - dataConfig_ = builderForValue.build(); - onChanged(); - } else { - dataConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public Builder mergeDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { - if (dataConfigBuilder_ == null) { - if (dataConfig_ != null) { - dataConfig_ = - flyteidl.core.Tasks.DataLoadingConfig.newBuilder(dataConfig_).mergeFrom(value).buildPartial(); - } else { - dataConfig_ = value; - } - onChanged(); - } else { - dataConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public Builder clearDataConfig() { - if (dataConfigBuilder_ == null) { - dataConfig_ = null; - onChanged(); - } else { - dataConfig_ = null; - dataConfigBuilder_ = null; - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfig.Builder getDataConfigBuilder() { - - onChanged(); - return getDataConfigFieldBuilder().getBuilder(); - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { - if (dataConfigBuilder_ != null) { - return dataConfigBuilder_.getMessageOrBuilder(); - } else { - return dataConfig_ == null ? - flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; - } - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> - getDataConfigFieldBuilder() { - if (dataConfigBuilder_ == null) { - dataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder>( - getDataConfig(), - getParentForChildren(), - isClean()); - dataConfig_ = null; - } - return dataConfigBuilder_; - } - @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:flyteidl.core.Container) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Container) - private static final flyteidl.core.Tasks.Container DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.Container(); - } - - public static flyteidl.core.Tasks.Container getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Container parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Container(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 flyteidl.core.Tasks.Container getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IOStrategyOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.IOStrategy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Mode to use to manage downloads
-     * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - int getDownloadModeValue(); - /** - *
-     * Mode to use to manage downloads
-     * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode(); - - /** - *
-     * Mode to use to manage uploads
-     * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - int getUploadModeValue(); - /** - *
-     * Mode to use to manage uploads
-     * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode(); - } - /** - *
-   * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)
-   * 
- * - * Protobuf type {@code flyteidl.core.IOStrategy} - */ - public static final class IOStrategy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.IOStrategy) - IOStrategyOrBuilder { - private static final long serialVersionUID = 0L; - // Use IOStrategy.newBuilder() to construct. - private IOStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IOStrategy() { - downloadMode_ = 0; - uploadMode_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IOStrategy( - 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 8: { - int rawValue = input.readEnum(); - - downloadMode_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - uploadMode_ = rawValue; - 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 flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.IOStrategy.class, flyteidl.core.Tasks.IOStrategy.Builder.class); - } - - /** - *
-     * Mode to use for downloading
-     * 
- * - * Protobuf enum {@code flyteidl.core.IOStrategy.DownloadMode} - */ - public enum DownloadMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * All data will be downloaded before the main container is executed
-       * 
- * - * DOWNLOAD_EAGER = 0; - */ - DOWNLOAD_EAGER(0), - /** - *
-       * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details
-       * 
- * - * DOWNLOAD_STREAM = 1; - */ - DOWNLOAD_STREAM(1), - /** - *
-       * Large objects (offloaded) will not be downloaded
-       * 
- * - * DO_NOT_DOWNLOAD = 2; - */ - DO_NOT_DOWNLOAD(2), - UNRECOGNIZED(-1), - ; - - /** - *
-       * All data will be downloaded before the main container is executed
-       * 
- * - * DOWNLOAD_EAGER = 0; - */ - public static final int DOWNLOAD_EAGER_VALUE = 0; - /** - *
-       * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details
-       * 
- * - * DOWNLOAD_STREAM = 1; - */ - public static final int DOWNLOAD_STREAM_VALUE = 1; - /** - *
-       * Large objects (offloaded) will not be downloaded
-       * 
- * - * DO_NOT_DOWNLOAD = 2; - */ - public static final int DO_NOT_DOWNLOAD_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DownloadMode valueOf(int value) { - return forNumber(value); - } - - public static DownloadMode forNumber(int value) { - switch (value) { - case 0: return DOWNLOAD_EAGER; - case 1: return DOWNLOAD_STREAM; - case 2: return DO_NOT_DOWNLOAD; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DownloadMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DownloadMode findValueByNumber(int number) { - return DownloadMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Tasks.IOStrategy.getDescriptor().getEnumTypes().get(0); - } - - private static final DownloadMode[] VALUES = values(); - - public static DownloadMode 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 DownloadMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.IOStrategy.DownloadMode) - } - - /** - *
-     * Mode to use for uploading
-     * 
- * - * Protobuf enum {@code flyteidl.core.IOStrategy.UploadMode} - */ - public enum UploadMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * All data will be uploaded after the main container exits
-       * 
- * - * UPLOAD_ON_EXIT = 0; - */ - UPLOAD_ON_EXIT(0), - /** - *
-       * Data will be uploaded as it appears. Refer to protocol specification for details
-       * 
- * - * UPLOAD_EAGER = 1; - */ - UPLOAD_EAGER(1), - /** - *
-       * Data will not be uploaded, only references will be written
-       * 
- * - * DO_NOT_UPLOAD = 2; - */ - DO_NOT_UPLOAD(2), - UNRECOGNIZED(-1), - ; - - /** - *
-       * All data will be uploaded after the main container exits
-       * 
- * - * UPLOAD_ON_EXIT = 0; - */ - public static final int UPLOAD_ON_EXIT_VALUE = 0; - /** - *
-       * Data will be uploaded as it appears. Refer to protocol specification for details
-       * 
- * - * UPLOAD_EAGER = 1; - */ - public static final int UPLOAD_EAGER_VALUE = 1; - /** - *
-       * Data will not be uploaded, only references will be written
-       * 
- * - * DO_NOT_UPLOAD = 2; - */ - public static final int DO_NOT_UPLOAD_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static UploadMode valueOf(int value) { - return forNumber(value); - } - - public static UploadMode forNumber(int value) { - switch (value) { - case 0: return UPLOAD_ON_EXIT; - case 1: return UPLOAD_EAGER; - case 2: return DO_NOT_UPLOAD; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - UploadMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UploadMode findValueByNumber(int number) { - return UploadMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Tasks.IOStrategy.getDescriptor().getEnumTypes().get(1); - } - - private static final UploadMode[] VALUES = values(); - - public static UploadMode 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 UploadMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.IOStrategy.UploadMode) - } - - public static final int DOWNLOAD_MODE_FIELD_NUMBER = 1; - private int downloadMode_; - /** - *
-     * Mode to use to manage downloads
-     * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public int getDownloadModeValue() { - return downloadMode_; - } - /** - *
-     * Mode to use to manage downloads
-     * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.IOStrategy.DownloadMode result = flyteidl.core.Tasks.IOStrategy.DownloadMode.valueOf(downloadMode_); - return result == null ? flyteidl.core.Tasks.IOStrategy.DownloadMode.UNRECOGNIZED : result; - } - - public static final int UPLOAD_MODE_FIELD_NUMBER = 2; - private int uploadMode_; - /** - *
-     * Mode to use to manage uploads
-     * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public int getUploadModeValue() { - return uploadMode_; - } - /** - *
-     * Mode to use to manage uploads
-     * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.IOStrategy.UploadMode result = flyteidl.core.Tasks.IOStrategy.UploadMode.valueOf(uploadMode_); - return result == null ? flyteidl.core.Tasks.IOStrategy.UploadMode.UNRECOGNIZED : result; - } - - 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 (downloadMode_ != flyteidl.core.Tasks.IOStrategy.DownloadMode.DOWNLOAD_EAGER.getNumber()) { - output.writeEnum(1, downloadMode_); - } - if (uploadMode_ != flyteidl.core.Tasks.IOStrategy.UploadMode.UPLOAD_ON_EXIT.getNumber()) { - output.writeEnum(2, uploadMode_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (downloadMode_ != flyteidl.core.Tasks.IOStrategy.DownloadMode.DOWNLOAD_EAGER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, downloadMode_); - } - if (uploadMode_ != flyteidl.core.Tasks.IOStrategy.UploadMode.UPLOAD_ON_EXIT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, uploadMode_); - } - 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 flyteidl.core.Tasks.IOStrategy)) { - return super.equals(obj); - } - flyteidl.core.Tasks.IOStrategy other = (flyteidl.core.Tasks.IOStrategy) obj; - - if (downloadMode_ != other.downloadMode_) return false; - if (uploadMode_ != other.uploadMode_) 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) + DOWNLOAD_MODE_FIELD_NUMBER; - hash = (53 * hash) + downloadMode_; - hash = (37 * hash) + UPLOAD_MODE_FIELD_NUMBER; - hash = (53 * hash) + uploadMode_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.IOStrategy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.IOStrategy 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 flyteidl.core.Tasks.IOStrategy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.IOStrategy 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 flyteidl.core.Tasks.IOStrategy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.IOStrategy 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(flyteidl.core.Tasks.IOStrategy 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; - } - /** - *
-     * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)
-     * 
- * - * Protobuf type {@code flyteidl.core.IOStrategy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.IOStrategy) - flyteidl.core.Tasks.IOStrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.IOStrategy.class, flyteidl.core.Tasks.IOStrategy.Builder.class); - } - - // Construct using flyteidl.core.Tasks.IOStrategy.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(); - downloadMode_ = 0; - - uploadMode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.IOStrategy getDefaultInstanceForType() { - return flyteidl.core.Tasks.IOStrategy.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.IOStrategy build() { - flyteidl.core.Tasks.IOStrategy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.IOStrategy buildPartial() { - flyteidl.core.Tasks.IOStrategy result = new flyteidl.core.Tasks.IOStrategy(this); - result.downloadMode_ = downloadMode_; - result.uploadMode_ = uploadMode_; - 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 flyteidl.core.Tasks.IOStrategy) { - return mergeFrom((flyteidl.core.Tasks.IOStrategy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.IOStrategy other) { - if (other == flyteidl.core.Tasks.IOStrategy.getDefaultInstance()) return this; - if (other.downloadMode_ != 0) { - setDownloadModeValue(other.getDownloadModeValue()); - } - if (other.uploadMode_ != 0) { - setUploadModeValue(other.getUploadModeValue()); - } - 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 { - flyteidl.core.Tasks.IOStrategy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.IOStrategy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int downloadMode_ = 0; - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public int getDownloadModeValue() { - return downloadMode_; - } - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public Builder setDownloadModeValue(int value) { - downloadMode_ = value; - onChanged(); - return this; - } - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.IOStrategy.DownloadMode result = flyteidl.core.Tasks.IOStrategy.DownloadMode.valueOf(downloadMode_); - return result == null ? flyteidl.core.Tasks.IOStrategy.DownloadMode.UNRECOGNIZED : result; - } - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public Builder setDownloadMode(flyteidl.core.Tasks.IOStrategy.DownloadMode value) { - if (value == null) { - throw new NullPointerException(); - } - - downloadMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public Builder clearDownloadMode() { - - downloadMode_ = 0; - onChanged(); - return this; - } - - private int uploadMode_ = 0; - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public int getUploadModeValue() { - return uploadMode_; - } - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public Builder setUploadModeValue(int value) { - uploadMode_ = value; - onChanged(); - return this; - } - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.IOStrategy.UploadMode result = flyteidl.core.Tasks.IOStrategy.UploadMode.valueOf(uploadMode_); - return result == null ? flyteidl.core.Tasks.IOStrategy.UploadMode.UNRECOGNIZED : result; - } - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public Builder setUploadMode(flyteidl.core.Tasks.IOStrategy.UploadMode value) { - if (value == null) { - throw new NullPointerException(); - } - - uploadMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public Builder clearUploadMode() { - - uploadMode_ = 0; - 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:flyteidl.core.IOStrategy) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.IOStrategy) - private static final flyteidl.core.Tasks.IOStrategy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.IOStrategy(); - } - - public static flyteidl.core.Tasks.IOStrategy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IOStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IOStrategy(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 flyteidl.core.Tasks.IOStrategy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DataLoadingConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.DataLoadingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
-     * 
- * - * bool enabled = 1; - */ - boolean getEnabled(); - - /** - *
-     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-     * /var/flyte/inputs/y -> Y is a file in Binary format
-     * /var/flyte/inputs/z/... -> Note Z itself is a directory
-     * More information about the protocol - refer to docs #TODO reference docs here
-     * 
- * - * string input_path = 2; - */ - java.lang.String getInputPath(); - /** - *
-     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-     * /var/flyte/inputs/y -> Y is a file in Binary format
-     * /var/flyte/inputs/z/... -> Note Z itself is a directory
-     * More information about the protocol - refer to docs #TODO reference docs here
-     * 
- * - * string input_path = 2; - */ - com.google.protobuf.ByteString - getInputPathBytes(); - - /** - *
-     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-     * 
- * - * string output_path = 3; - */ - java.lang.String getOutputPath(); - /** - *
-     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-     * 
- * - * string output_path = 3; - */ - com.google.protobuf.ByteString - getOutputPathBytes(); - - /** - *
-     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-     * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - int getFormatValue(); - /** - *
-     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-     * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat(); - - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - boolean hasIoStrategy(); - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - flyteidl.core.Tasks.IOStrategy getIoStrategy(); - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder(); - } - /** - *
-   * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.
-   * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path
-   * Any outputs generated by the user container - within output_path are automatically uploaded.
-   * 
- * - * Protobuf type {@code flyteidl.core.DataLoadingConfig} - */ - public static final class DataLoadingConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.DataLoadingConfig) - DataLoadingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use DataLoadingConfig.newBuilder() to construct. - private DataLoadingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataLoadingConfig() { - inputPath_ = ""; - outputPath_ = ""; - format_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DataLoadingConfig( - 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 8: { - - enabled_ = input.readBool(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - inputPath_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - outputPath_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - format_ = rawValue; - break; - } - case 42: { - flyteidl.core.Tasks.IOStrategy.Builder subBuilder = null; - if (ioStrategy_ != null) { - subBuilder = ioStrategy_.toBuilder(); - } - ioStrategy_ = input.readMessage(flyteidl.core.Tasks.IOStrategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ioStrategy_); - ioStrategy_ = 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 flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.DataLoadingConfig.class, flyteidl.core.Tasks.DataLoadingConfig.Builder.class); - } - - /** - *
-     * LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. 
-     * If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.
-     * JSON and YAML do not need any protobuf definitions to read it
-     * All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)
-     * 
- * - * Protobuf enum {@code flyteidl.core.DataLoadingConfig.LiteralMapFormat} - */ - public enum LiteralMapFormat - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html
-       * 
- * - * JSON = 0; - */ - JSON(0), - /** - * YAML = 1; - */ - YAML(1), - /** - *
-       * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core
-       * 
- * - * PROTO = 2; - */ - PROTO(2), - UNRECOGNIZED(-1), - ; - - /** - *
-       * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html
-       * 
- * - * JSON = 0; - */ - public static final int JSON_VALUE = 0; - /** - * YAML = 1; - */ - public static final int YAML_VALUE = 1; - /** - *
-       * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core
-       * 
- * - * PROTO = 2; - */ - public static final int PROTO_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LiteralMapFormat valueOf(int value) { - return forNumber(value); - } - - public static LiteralMapFormat forNumber(int value) { - switch (value) { - case 0: return JSON; - case 1: return YAML; - case 2: return PROTO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LiteralMapFormat> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LiteralMapFormat findValueByNumber(int number) { - return LiteralMapFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Tasks.DataLoadingConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final LiteralMapFormat[] VALUES = values(); - - public static LiteralMapFormat 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 LiteralMapFormat(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.DataLoadingConfig.LiteralMapFormat) - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-     * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
-     * 
- * - * bool enabled = 1; - */ - public boolean getEnabled() { - return enabled_; - } - - public static final int INPUT_PATH_FIELD_NUMBER = 2; - private volatile java.lang.Object inputPath_; - /** - *
-     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-     * /var/flyte/inputs/y -> Y is a file in Binary format
-     * /var/flyte/inputs/z/... -> Note Z itself is a directory
-     * More information about the protocol - refer to docs #TODO reference docs here
-     * 
- * - * string input_path = 2; - */ - public java.lang.String getInputPath() { - java.lang.Object ref = inputPath_; - 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(); - inputPath_ = s; - return s; - } - } - /** - *
-     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-     * /var/flyte/inputs/y -> Y is a file in Binary format
-     * /var/flyte/inputs/z/... -> Note Z itself is a directory
-     * More information about the protocol - refer to docs #TODO reference docs here
-     * 
- * - * string input_path = 2; - */ - public com.google.protobuf.ByteString - getInputPathBytes() { - java.lang.Object ref = inputPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTPUT_PATH_FIELD_NUMBER = 3; - private volatile java.lang.Object outputPath_; - /** - *
-     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-     * 
- * - * string output_path = 3; - */ - public java.lang.String getOutputPath() { - java.lang.Object ref = outputPath_; - 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(); - outputPath_ = s; - return s; - } - } - /** - *
-     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-     * 
- * - * string output_path = 3; - */ - public com.google.protobuf.ByteString - getOutputPathBytes() { - java.lang.Object ref = outputPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORMAT_FIELD_NUMBER = 4; - private int format_; - /** - *
-     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-     * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public int getFormatValue() { - return format_; - } - /** - *
-     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-     * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat result = flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.valueOf(format_); - return result == null ? flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.UNRECOGNIZED : result; - } - - public static final int IO_STRATEGY_FIELD_NUMBER = 5; - private flyteidl.core.Tasks.IOStrategy ioStrategy_; - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public boolean hasIoStrategy() { - return ioStrategy_ != null; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategy getIoStrategy() { - return ioStrategy_ == null ? flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder() { - return getIoStrategy(); - } - - 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 (enabled_ != false) { - output.writeBool(1, enabled_); - } - if (!getInputPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputPath_); - } - if (!getOutputPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputPath_); - } - if (format_ != flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.JSON.getNumber()) { - output.writeEnum(4, format_); - } - if (ioStrategy_ != null) { - output.writeMessage(5, getIoStrategy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enabled_); - } - if (!getInputPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputPath_); - } - if (!getOutputPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputPath_); - } - if (format_ != flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.JSON.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, format_); - } - if (ioStrategy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getIoStrategy()); - } - 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 flyteidl.core.Tasks.DataLoadingConfig)) { - return super.equals(obj); - } - flyteidl.core.Tasks.DataLoadingConfig other = (flyteidl.core.Tasks.DataLoadingConfig) obj; - - if (getEnabled() - != other.getEnabled()) return false; - if (!getInputPath() - .equals(other.getInputPath())) return false; - if (!getOutputPath() - .equals(other.getOutputPath())) return false; - if (format_ != other.format_) return false; - if (hasIoStrategy() != other.hasIoStrategy()) return false; - if (hasIoStrategy()) { - if (!getIoStrategy() - .equals(other.getIoStrategy())) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); - hash = (37 * hash) + INPUT_PATH_FIELD_NUMBER; - hash = (53 * hash) + getInputPath().hashCode(); - hash = (37 * hash) + OUTPUT_PATH_FIELD_NUMBER; - hash = (53 * hash) + getOutputPath().hashCode(); - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + format_; - if (hasIoStrategy()) { - hash = (37 * hash) + IO_STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + getIoStrategy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.DataLoadingConfig 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 flyteidl.core.Tasks.DataLoadingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.DataLoadingConfig 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 flyteidl.core.Tasks.DataLoadingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.DataLoadingConfig 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(flyteidl.core.Tasks.DataLoadingConfig 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; - } - /** - *
-     * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.
-     * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path
-     * Any outputs generated by the user container - within output_path are automatically uploaded.
-     * 
- * - * Protobuf type {@code flyteidl.core.DataLoadingConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.DataLoadingConfig) - flyteidl.core.Tasks.DataLoadingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.DataLoadingConfig.class, flyteidl.core.Tasks.DataLoadingConfig.Builder.class); - } - - // Construct using flyteidl.core.Tasks.DataLoadingConfig.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(); - enabled_ = false; - - inputPath_ = ""; - - outputPath_ = ""; - - format_ = 0; - - if (ioStrategyBuilder_ == null) { - ioStrategy_ = null; - } else { - ioStrategy_ = null; - ioStrategyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.DataLoadingConfig getDefaultInstanceForType() { - return flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.DataLoadingConfig build() { - flyteidl.core.Tasks.DataLoadingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.DataLoadingConfig buildPartial() { - flyteidl.core.Tasks.DataLoadingConfig result = new flyteidl.core.Tasks.DataLoadingConfig(this); - result.enabled_ = enabled_; - result.inputPath_ = inputPath_; - result.outputPath_ = outputPath_; - result.format_ = format_; - if (ioStrategyBuilder_ == null) { - result.ioStrategy_ = ioStrategy_; - } else { - result.ioStrategy_ = ioStrategyBuilder_.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 flyteidl.core.Tasks.DataLoadingConfig) { - return mergeFrom((flyteidl.core.Tasks.DataLoadingConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.DataLoadingConfig other) { - if (other == flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (!other.getInputPath().isEmpty()) { - inputPath_ = other.inputPath_; - onChanged(); - } - if (!other.getOutputPath().isEmpty()) { - outputPath_ = other.outputPath_; - onChanged(); - } - if (other.format_ != 0) { - setFormatValue(other.getFormatValue()); - } - if (other.hasIoStrategy()) { - mergeIoStrategy(other.getIoStrategy()); - } - 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 { - flyteidl.core.Tasks.DataLoadingConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.DataLoadingConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_ ; - /** - *
-       * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
-       * 
- * - * bool enabled = 1; - */ - public boolean getEnabled() { - return enabled_; - } - /** - *
-       * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
-       * 
- * - * bool enabled = 1; - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-       * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
-       * 
- * - * bool enabled = 1; - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object inputPath_ = ""; - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public java.lang.String getInputPath() { - java.lang.Object ref = inputPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public com.google.protobuf.ByteString - getInputPathBytes() { - java.lang.Object ref = inputPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public Builder setInputPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputPath_ = value; - onChanged(); - return this; - } - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public Builder clearInputPath() { - - inputPath_ = getDefaultInstance().getInputPath(); - onChanged(); - return this; - } - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public Builder setInputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputPath_ = value; - onChanged(); - return this; - } - - private java.lang.Object outputPath_ = ""; - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public java.lang.String getOutputPath() { - java.lang.Object ref = outputPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public com.google.protobuf.ByteString - getOutputPathBytes() { - java.lang.Object ref = outputPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public Builder setOutputPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputPath_ = value; - onChanged(); - return this; - } - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public Builder clearOutputPath() { - - outputPath_ = getDefaultInstance().getOutputPath(); - onChanged(); - return this; - } - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public Builder setOutputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputPath_ = value; - onChanged(); - return this; - } - - private int format_ = 0; - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public int getFormatValue() { - return format_; - } - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public Builder setFormatValue(int value) { - format_ = value; - onChanged(); - return this; - } - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat result = flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.valueOf(format_); - return result == null ? flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.UNRECOGNIZED : result; - } - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public Builder setFormat(flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat value) { - if (value == null) { - throw new NullPointerException(); - } - - format_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public Builder clearFormat() { - - format_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.IOStrategy ioStrategy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder> ioStrategyBuilder_; - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public boolean hasIoStrategy() { - return ioStrategyBuilder_ != null || ioStrategy_ != null; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategy getIoStrategy() { - if (ioStrategyBuilder_ == null) { - return ioStrategy_ == null ? flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; - } else { - return ioStrategyBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public Builder setIoStrategy(flyteidl.core.Tasks.IOStrategy value) { - if (ioStrategyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ioStrategy_ = value; - onChanged(); - } else { - ioStrategyBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public Builder setIoStrategy( - flyteidl.core.Tasks.IOStrategy.Builder builderForValue) { - if (ioStrategyBuilder_ == null) { - ioStrategy_ = builderForValue.build(); - onChanged(); - } else { - ioStrategyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public Builder mergeIoStrategy(flyteidl.core.Tasks.IOStrategy value) { - if (ioStrategyBuilder_ == null) { - if (ioStrategy_ != null) { - ioStrategy_ = - flyteidl.core.Tasks.IOStrategy.newBuilder(ioStrategy_).mergeFrom(value).buildPartial(); - } else { - ioStrategy_ = value; - } - onChanged(); - } else { - ioStrategyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public Builder clearIoStrategy() { - if (ioStrategyBuilder_ == null) { - ioStrategy_ = null; - onChanged(); - } else { - ioStrategy_ = null; - ioStrategyBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategy.Builder getIoStrategyBuilder() { - - onChanged(); - return getIoStrategyFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder() { - if (ioStrategyBuilder_ != null) { - return ioStrategyBuilder_.getMessageOrBuilder(); - } else { - return ioStrategy_ == null ? - flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; - } - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder> - getIoStrategyFieldBuilder() { - if (ioStrategyBuilder_ == null) { - ioStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder>( - getIoStrategy(), - getParentForChildren(), - isClean()); - ioStrategy_ = null; - } - return ioStrategyBuilder_; - } - @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:flyteidl.core.DataLoadingConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.DataLoadingConfig) - private static final flyteidl.core.Tasks.DataLoadingConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.DataLoadingConfig(); - } - - public static flyteidl.core.Tasks.DataLoadingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataLoadingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DataLoadingConfig(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 flyteidl.core.Tasks.DataLoadingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Resources_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Resources_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_RuntimeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskTemplate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ContainerPort_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ContainerPort_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Container_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Container_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_IOStrategy_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_IOStrategy_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_DataLoadingConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_DataLoadingConfig_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\031flyteidl/core/tasks.proto\022\rflyteidl.co" + - "re\032\036flyteidl/core/identifier.proto\032\035flyt" + - "eidl/core/interface.proto\032\034flyteidl/core" + - "/literals.proto\032\036google/protobuf/duratio" + - "n.proto\032\034google/protobuf/struct.proto\"\232\002" + - "\n\tResources\0228\n\010requests\030\001 \003(\0132&.flyteidl" + - ".core.Resources.ResourceEntry\0226\n\006limits\030" + - "\002 \003(\0132&.flyteidl.core.Resources.Resource" + - "Entry\032S\n\rResourceEntry\0223\n\004name\030\001 \001(\0162%.f" + - "lyteidl.core.Resources.ResourceName\022\r\n\005v" + - "alue\030\002 \001(\t\"F\n\014ResourceName\022\013\n\007UNKNOWN\020\000\022" + - "\007\n\003CPU\020\001\022\007\n\003GPU\020\002\022\n\n\006MEMORY\020\003\022\013\n\007STORAGE" + - "\020\004\"\225\001\n\017RuntimeMetadata\0228\n\004type\030\001 \001(\0162*.f" + - "lyteidl.core.RuntimeMetadata.RuntimeType" + - "\022\017\n\007version\030\002 \001(\t\022\016\n\006flavor\030\003 \001(\t\"\'\n\013Run" + - "timeType\022\t\n\005OTHER\020\000\022\r\n\tFLYTE_SDK\020\001\"\235\002\n\014T" + - "askMetadata\022\024\n\014discoverable\030\001 \001(\010\022/\n\007run" + - "time\030\002 \001(\0132\036.flyteidl.core.RuntimeMetada" + - "ta\022*\n\007timeout\030\004 \001(\0132\031.google.protobuf.Du" + - "ration\022-\n\007retries\030\005 \001(\0132\034.flyteidl.core." + - "RetryStrategy\022\031\n\021discovery_version\030\006 \001(\t" + - "\022 \n\030deprecated_error_message\030\007 \001(\t\022\027\n\rin" + - "terruptible\030\010 \001(\010H\000B\025\n\023interruptible_val" + - "ue\"\206\002\n\014TaskTemplate\022%\n\002id\030\001 \001(\0132\031.flytei" + - "dl.core.Identifier\022\014\n\004type\030\002 \001(\t\022-\n\010meta" + - "data\030\003 \001(\0132\033.flyteidl.core.TaskMetadata\022" + - "0\n\tinterface\030\004 \001(\0132\035.flyteidl.core.Typed" + - "Interface\022\'\n\006custom\030\005 \001(\0132\027.google.proto" + - "buf.Struct\022-\n\tcontainer\030\006 \001(\0132\030.flyteidl" + - ".core.ContainerH\000B\010\n\006target\"\'\n\rContainer" + - "Port\022\026\n\016container_port\030\001 \001(\r\"\241\002\n\tContain" + - "er\022\r\n\005image\030\001 \001(\t\022\017\n\007command\030\002 \003(\t\022\014\n\004ar" + - "gs\030\003 \003(\t\022+\n\tresources\030\004 \001(\0132\030.flyteidl.c" + - "ore.Resources\022(\n\003env\030\005 \003(\0132\033.flyteidl.co" + - "re.KeyValuePair\022+\n\006config\030\006 \003(\0132\033.flytei" + - "dl.core.KeyValuePair\022+\n\005ports\030\007 \003(\0132\034.fl" + - "yteidl.core.ContainerPort\0225\n\013data_config" + - "\030\t \001(\0132 .flyteidl.core.DataLoadingConfig" + - "\"\233\002\n\nIOStrategy\022=\n\rdownload_mode\030\001 \001(\0162&" + - ".flyteidl.core.IOStrategy.DownloadMode\0229" + - "\n\013upload_mode\030\002 \001(\0162$.flyteidl.core.IOSt" + - "rategy.UploadMode\"L\n\014DownloadMode\022\022\n\016DOW" + - "NLOAD_EAGER\020\000\022\023\n\017DOWNLOAD_STREAM\020\001\022\023\n\017DO" + - "_NOT_DOWNLOAD\020\002\"E\n\nUploadMode\022\022\n\016UPLOAD_" + - "ON_EXIT\020\000\022\020\n\014UPLOAD_EAGER\020\001\022\021\n\rDO_NOT_UP" + - "LOAD\020\002\"\363\001\n\021DataLoadingConfig\022\017\n\007enabled\030" + - "\001 \001(\010\022\022\n\ninput_path\030\002 \001(\t\022\023\n\013output_path" + - "\030\003 \001(\t\022A\n\006format\030\004 \001(\01621.flyteidl.core.D" + - "ataLoadingConfig.LiteralMapFormat\022.\n\013io_" + - "strategy\030\005 \001(\0132\031.flyteidl.core.IOStrateg" + - "y\"1\n\020LiteralMapFormat\022\010\n\004JSON\020\000\022\010\n\004YAML\020" + - "\001\022\t\n\005PROTO\020\002B2Z0github.com/lyft/flyteidl" + - "/gen/pb-go/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Interface.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_Resources_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_Resources_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Resources_descriptor, - new java.lang.String[] { "Requests", "Limits", }); - internal_static_flyteidl_core_Resources_ResourceEntry_descriptor = - internal_static_flyteidl_core_Resources_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Resources_ResourceEntry_descriptor, - new java.lang.String[] { "Name", "Value", }); - internal_static_flyteidl_core_RuntimeMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_RuntimeMetadata_descriptor, - new java.lang.String[] { "Type", "Version", "Flavor", }); - internal_static_flyteidl_core_TaskMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TaskMetadata_descriptor, - new java.lang.String[] { "Discoverable", "Runtime", "Timeout", "Retries", "DiscoveryVersion", "DeprecatedErrorMessage", "Interruptible", "InterruptibleValue", }); - internal_static_flyteidl_core_TaskTemplate_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TaskTemplate_descriptor, - new java.lang.String[] { "Id", "Type", "Metadata", "Interface", "Custom", "Container", "Target", }); - internal_static_flyteidl_core_ContainerPort_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_core_ContainerPort_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_ContainerPort_descriptor, - new java.lang.String[] { "ContainerPort", }); - internal_static_flyteidl_core_Container_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_core_Container_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Container_descriptor, - new java.lang.String[] { "Image", "Command", "Args", "Resources", "Env", "Config", "Ports", "DataConfig", }); - internal_static_flyteidl_core_IOStrategy_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_core_IOStrategy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_IOStrategy_descriptor, - new java.lang.String[] { "DownloadMode", "UploadMode", }); - internal_static_flyteidl_core_DataLoadingConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_DataLoadingConfig_descriptor, - new java.lang.String[] { "Enabled", "InputPath", "OutputPath", "Format", "IoStrategy", }); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Interface.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Types.java b/gen/pb-java/flyteidl/core/Types.java deleted file mode 100644 index 63ed77fdb..000000000 --- a/gen/pb-java/flyteidl/core/Types.java +++ /dev/null @@ -1,6407 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/types.proto - -package flyteidl.core; - -public final class Types { - private Types() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * Define a set of simple types.
-   * 
- * - * Protobuf enum {@code flyteidl.core.SimpleType} - */ - public enum SimpleType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NONE = 0; - */ - NONE(0), - /** - * INTEGER = 1; - */ - INTEGER(1), - /** - * FLOAT = 2; - */ - FLOAT(2), - /** - * STRING = 3; - */ - STRING(3), - /** - * BOOLEAN = 4; - */ - BOOLEAN(4), - /** - * DATETIME = 5; - */ - DATETIME(5), - /** - * DURATION = 6; - */ - DURATION(6), - /** - * BINARY = 7; - */ - BINARY(7), - /** - * ERROR = 8; - */ - ERROR(8), - /** - * STRUCT = 9; - */ - STRUCT(9), - UNRECOGNIZED(-1), - ; - - /** - * NONE = 0; - */ - public static final int NONE_VALUE = 0; - /** - * INTEGER = 1; - */ - public static final int INTEGER_VALUE = 1; - /** - * FLOAT = 2; - */ - public static final int FLOAT_VALUE = 2; - /** - * STRING = 3; - */ - public static final int STRING_VALUE = 3; - /** - * BOOLEAN = 4; - */ - public static final int BOOLEAN_VALUE = 4; - /** - * DATETIME = 5; - */ - public static final int DATETIME_VALUE = 5; - /** - * DURATION = 6; - */ - public static final int DURATION_VALUE = 6; - /** - * BINARY = 7; - */ - public static final int BINARY_VALUE = 7; - /** - * ERROR = 8; - */ - public static final int ERROR_VALUE = 8; - /** - * STRUCT = 9; - */ - public static final int STRUCT_VALUE = 9; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SimpleType valueOf(int value) { - return forNumber(value); - } - - public static SimpleType forNumber(int value) { - switch (value) { - case 0: return NONE; - case 1: return INTEGER; - case 2: return FLOAT; - case 3: return STRING; - case 4: return BOOLEAN; - case 5: return DATETIME; - case 6: return DURATION; - case 7: return BINARY; - case 8: return ERROR; - case 9: return STRUCT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - SimpleType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SimpleType findValueByNumber(int number) { - return SimpleType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Types.getDescriptor().getEnumTypes().get(0); - } - - private static final SimpleType[] VALUES = values(); - - public static SimpleType 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 SimpleType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.SimpleType) - } - - public interface SchemaTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - java.util.List - getColumnsList(); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - int getColumnsCount(); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - java.util.List - getColumnsOrBuilderList(); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( - int index); - } - /** - *
-   * Defines schema columns and types to strongly type-validate schemas interoperability.
-   * 
- * - * Protobuf type {@code flyteidl.core.SchemaType} - */ - public static final class SchemaType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType) - SchemaTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use SchemaType.newBuilder() to construct. - private SchemaType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SchemaType() { - columns_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SchemaType( - 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 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - columns_.add( - input.readMessage(flyteidl.core.Types.SchemaType.SchemaColumn.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)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); - } - - public interface SchemaColumnOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType.SchemaColumn) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * A unique name -within the schema type- for the column
-       * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-       * A unique name -within the schema type- for the column
-       * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-       * The column type. This allows a limited set of types currently.
-       * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - int getTypeValue(); - /** - *
-       * The column type. This allows a limited set of types currently.
-       * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType(); - } - /** - * Protobuf type {@code flyteidl.core.SchemaType.SchemaColumn} - */ - public static final class SchemaColumn extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType.SchemaColumn) - SchemaColumnOrBuilder { - private static final long serialVersionUID = 0L; - // Use SchemaColumn.newBuilder() to construct. - private SchemaColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SchemaColumn() { - name_ = ""; - type_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SchemaColumn( - 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(); - - type_ = rawValue; - 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 flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} - */ - public enum SchemaColumnType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * INTEGER = 0; - */ - INTEGER(0), - /** - * FLOAT = 1; - */ - FLOAT(1), - /** - * STRING = 2; - */ - STRING(2), - /** - * BOOLEAN = 3; - */ - BOOLEAN(3), - /** - * DATETIME = 4; - */ - DATETIME(4), - /** - * DURATION = 5; - */ - DURATION(5), - UNRECOGNIZED(-1), - ; - - /** - * INTEGER = 0; - */ - public static final int INTEGER_VALUE = 0; - /** - * FLOAT = 1; - */ - public static final int FLOAT_VALUE = 1; - /** - * STRING = 2; - */ - public static final int STRING_VALUE = 2; - /** - * BOOLEAN = 3; - */ - public static final int BOOLEAN_VALUE = 3; - /** - * DATETIME = 4; - */ - public static final int DATETIME_VALUE = 4; - /** - * DURATION = 5; - */ - public static final int DURATION_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SchemaColumnType valueOf(int value) { - return forNumber(value); - } - - public static SchemaColumnType forNumber(int value) { - switch (value) { - case 0: return INTEGER; - case 1: return FLOAT; - case 2: return STRING; - case 3: return BOOLEAN; - case 4: return DATETIME; - case 5: return DURATION; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - SchemaColumnType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SchemaColumnType findValueByNumber(int number) { - return SchemaColumnType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Types.SchemaType.SchemaColumn.getDescriptor().getEnumTypes().get(0); - } - - private static final SchemaColumnType[] VALUES = values(); - - public static SchemaColumnType 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 SchemaColumnType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-       * A unique name -within the schema type- for the column
-       * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-       * A unique name -within the schema type- for the column
-       * 
- * - * string name = 1; - */ - 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 TYPE_FIELD_NUMBER = 2; - private int type_; - /** - *
-       * The column type. This allows a limited set of types currently.
-       * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public int getTypeValue() { - return type_; - } - /** - *
-       * The column type. This allows a limited set of types currently.
-       * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); - return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { - output.writeEnum(2, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); - } - 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 flyteidl.core.Types.SchemaType.SchemaColumn)) { - return super.equals(obj); - } - flyteidl.core.Types.SchemaType.SchemaColumn other = (flyteidl.core.Types.SchemaType.SchemaColumn) obj; - - if (!getName() - .equals(other.getName())) return false; - if (type_ != other.type_) 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) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn 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 flyteidl.core.Types.SchemaType.SchemaColumn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn 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 flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn 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(flyteidl.core.Types.SchemaType.SchemaColumn 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 flyteidl.core.SchemaType.SchemaColumn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType.SchemaColumn) - flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); - } - - // Construct using flyteidl.core.Types.SchemaType.SchemaColumn.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_ = ""; - - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { - return flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType.SchemaColumn build() { - flyteidl.core.Types.SchemaType.SchemaColumn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType.SchemaColumn buildPartial() { - flyteidl.core.Types.SchemaType.SchemaColumn result = new flyteidl.core.Types.SchemaType.SchemaColumn(this); - result.name_ = name_; - result.type_ = type_; - 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 flyteidl.core.Types.SchemaType.SchemaColumn) { - return mergeFrom((flyteidl.core.Types.SchemaType.SchemaColumn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.SchemaType.SchemaColumn other) { - if (other == flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - 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 { - flyteidl.core.Types.SchemaType.SchemaColumn parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.SchemaType.SchemaColumn) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public int getTypeValue() { - return type_; - } - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); - return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; - } - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public Builder setType(flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public Builder clearType() { - - type_ = 0; - 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:flyteidl.core.SchemaType.SchemaColumn) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType.SchemaColumn) - private static final flyteidl.core.Types.SchemaType.SchemaColumn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType.SchemaColumn(); - } - - public static flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SchemaColumn(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 flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int COLUMNS_FIELD_NUMBER = 3; - private java.util.List columns_; - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List getColumnsList() { - return columns_; - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List - getColumnsOrBuilderList() { - return columns_; - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public int getColumnsCount() { - return columns_.size(); - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { - return columns_.get(index); - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( - int index) { - return columns_.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 < columns_.size(); i++) { - output.writeMessage(3, columns_.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 < columns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, columns_.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 flyteidl.core.Types.SchemaType)) { - return super.equals(obj); - } - flyteidl.core.Types.SchemaType other = (flyteidl.core.Types.SchemaType) obj; - - if (!getColumnsList() - .equals(other.getColumnsList())) 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 (getColumnsCount() > 0) { - hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getColumnsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.SchemaType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType 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 flyteidl.core.Types.SchemaType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType 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 flyteidl.core.Types.SchemaType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType 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(flyteidl.core.Types.SchemaType 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; - } - /** - *
-     * Defines schema columns and types to strongly type-validate schemas interoperability.
-     * 
- * - * Protobuf type {@code flyteidl.core.SchemaType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType) - flyteidl.core.Types.SchemaTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); - } - - // Construct using flyteidl.core.Types.SchemaType.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getColumnsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - columnsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType getDefaultInstanceForType() { - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType build() { - flyteidl.core.Types.SchemaType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType buildPartial() { - flyteidl.core.Types.SchemaType result = new flyteidl.core.Types.SchemaType(this); - int from_bitField0_ = bitField0_; - if (columnsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.columns_ = columns_; - } else { - result.columns_ = columnsBuilder_.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 flyteidl.core.Types.SchemaType) { - return mergeFrom((flyteidl.core.Types.SchemaType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.SchemaType other) { - if (other == flyteidl.core.Types.SchemaType.getDefaultInstance()) return this; - if (columnsBuilder_ == null) { - if (!other.columns_.isEmpty()) { - if (columns_.isEmpty()) { - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureColumnsIsMutable(); - columns_.addAll(other.columns_); - } - onChanged(); - } - } else { - if (!other.columns_.isEmpty()) { - if (columnsBuilder_.isEmpty()) { - columnsBuilder_.dispose(); - columnsBuilder_ = null; - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - columnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColumnsFieldBuilder() : null; - } else { - columnsBuilder_.addAllMessages(other.columns_); - } - } - } - 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 { - flyteidl.core.Types.SchemaType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.SchemaType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List columns_ = - java.util.Collections.emptyList(); - private void ensureColumnsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(columns_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> columnsBuilder_; - - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List getColumnsList() { - if (columnsBuilder_ == null) { - return java.util.Collections.unmodifiableList(columns_); - } else { - return columnsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public int getColumnsCount() { - if (columnsBuilder_ == null) { - return columns_.size(); - } else { - return columnsBuilder_.getCount(); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); - } else { - return columnsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder setColumns( - int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.set(index, value); - onChanged(); - } else { - columnsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder setColumns( - int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.set(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addColumns(flyteidl.core.Types.SchemaType.SchemaColumn value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(value); - onChanged(); - } else { - columnsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addColumns( - int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(index, value); - onChanged(); - } else { - columnsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addColumns( - flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addColumns( - int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addAllColumns( - java.lang.Iterable values) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columns_); - onChanged(); - } else { - columnsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder clearColumns() { - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - columnsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder removeColumns(int index) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.remove(index); - onChanged(); - } else { - columnsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.Builder getColumnsBuilder( - int index) { - return getColumnsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( - int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); } else { - return columnsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List - getColumnsOrBuilderList() { - if (columnsBuilder_ != null) { - return columnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(columns_); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder() { - return getColumnsFieldBuilder().addBuilder( - flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder( - int index) { - return getColumnsFieldBuilder().addBuilder( - index, flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List - getColumnsBuilderList() { - return getColumnsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> - getColumnsFieldBuilder() { - if (columnsBuilder_ == null) { - columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder>( - columns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - columns_ = null; - } - return columnsBuilder_; - } - @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:flyteidl.core.SchemaType) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType) - private static final flyteidl.core.Types.SchemaType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType(); - } - - public static flyteidl.core.Types.SchemaType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SchemaType(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 flyteidl.core.Types.SchemaType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BlobTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobType) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Format can be a free form string understood by SDK/UI etc like
-     * csv, parquet etc
-     * 
- * - * string format = 1; - */ - java.lang.String getFormat(); - /** - *
-     * Format can be a free form string understood by SDK/UI etc like
-     * csv, parquet etc
-     * 
- * - * string format = 1; - */ - com.google.protobuf.ByteString - getFormatBytes(); - - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - int getDimensionalityValue(); - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality(); - } - /** - *
-   * Defines type behavior for blob objects
-   * 
- * - * Protobuf type {@code flyteidl.core.BlobType} - */ - public static final class BlobType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BlobType) - BlobTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlobType.newBuilder() to construct. - private BlobType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlobType() { - format_ = ""; - dimensionality_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlobType( - 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(); - - format_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - dimensionality_ = rawValue; - 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 flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.BlobType.BlobDimensionality} - */ - public enum BlobDimensionality - implements com.google.protobuf.ProtocolMessageEnum { - /** - * SINGLE = 0; - */ - SINGLE(0), - /** - * MULTIPART = 1; - */ - MULTIPART(1), - UNRECOGNIZED(-1), - ; - - /** - * SINGLE = 0; - */ - public static final int SINGLE_VALUE = 0; - /** - * MULTIPART = 1; - */ - public static final int MULTIPART_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static BlobDimensionality valueOf(int value) { - return forNumber(value); - } - - public static BlobDimensionality forNumber(int value) { - switch (value) { - case 0: return SINGLE; - case 1: return MULTIPART; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - BlobDimensionality> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlobDimensionality findValueByNumber(int number) { - return BlobDimensionality.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Types.BlobType.getDescriptor().getEnumTypes().get(0); - } - - private static final BlobDimensionality[] VALUES = values(); - - public static BlobDimensionality 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 BlobDimensionality(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.BlobType.BlobDimensionality) - } - - public static final int FORMAT_FIELD_NUMBER = 1; - private volatile java.lang.Object format_; - /** - *
-     * Format can be a free form string understood by SDK/UI etc like
-     * csv, parquet etc
-     * 
- * - * string format = 1; - */ - public java.lang.String getFormat() { - java.lang.Object ref = format_; - 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(); - format_ = s; - return s; - } - } - /** - *
-     * Format can be a free form string understood by SDK/UI etc like
-     * csv, parquet etc
-     * 
- * - * string format = 1; - */ - public com.google.protobuf.ByteString - getFormatBytes() { - java.lang.Object ref = format_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - format_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSIONALITY_FIELD_NUMBER = 2; - private int dimensionality_; - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public int getDimensionalityValue() { - return dimensionality_; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { - @SuppressWarnings("deprecation") - flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); - return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; - } - - 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 (!getFormatBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, format_); - } - if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { - output.writeEnum(2, dimensionality_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFormatBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, format_); - } - if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, dimensionality_); - } - 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 flyteidl.core.Types.BlobType)) { - return super.equals(obj); - } - flyteidl.core.Types.BlobType other = (flyteidl.core.Types.BlobType) obj; - - if (!getFormat() - .equals(other.getFormat())) return false; - if (dimensionality_ != other.dimensionality_) 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) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getFormat().hashCode(); - hash = (37 * hash) + DIMENSIONALITY_FIELD_NUMBER; - hash = (53 * hash) + dimensionality_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.BlobType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.BlobType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.BlobType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.BlobType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.BlobType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.BlobType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.BlobType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.BlobType 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 flyteidl.core.Types.BlobType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.BlobType 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 flyteidl.core.Types.BlobType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.BlobType 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(flyteidl.core.Types.BlobType 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; - } - /** - *
-     * Defines type behavior for blob objects
-     * 
- * - * Protobuf type {@code flyteidl.core.BlobType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobType) - flyteidl.core.Types.BlobTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); - } - - // Construct using flyteidl.core.Types.BlobType.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(); - format_ = ""; - - dimensionality_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.BlobType getDefaultInstanceForType() { - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.BlobType build() { - flyteidl.core.Types.BlobType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.BlobType buildPartial() { - flyteidl.core.Types.BlobType result = new flyteidl.core.Types.BlobType(this); - result.format_ = format_; - result.dimensionality_ = dimensionality_; - 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 flyteidl.core.Types.BlobType) { - return mergeFrom((flyteidl.core.Types.BlobType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.BlobType other) { - if (other == flyteidl.core.Types.BlobType.getDefaultInstance()) return this; - if (!other.getFormat().isEmpty()) { - format_ = other.format_; - onChanged(); - } - if (other.dimensionality_ != 0) { - setDimensionalityValue(other.getDimensionalityValue()); - } - 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 { - flyteidl.core.Types.BlobType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.BlobType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object format_ = ""; - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public java.lang.String getFormat() { - java.lang.Object ref = format_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - format_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public com.google.protobuf.ByteString - getFormatBytes() { - java.lang.Object ref = format_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - format_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public Builder setFormat( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - format_ = value; - onChanged(); - return this; - } - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public Builder clearFormat() { - - format_ = getDefaultInstance().getFormat(); - onChanged(); - return this; - } - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public Builder setFormatBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - format_ = value; - onChanged(); - return this; - } - - private int dimensionality_ = 0; - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public int getDimensionalityValue() { - return dimensionality_; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public Builder setDimensionalityValue(int value) { - dimensionality_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { - @SuppressWarnings("deprecation") - flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); - return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public Builder setDimensionality(flyteidl.core.Types.BlobType.BlobDimensionality value) { - if (value == null) { - throw new NullPointerException(); - } - - dimensionality_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public Builder clearDimensionality() { - - dimensionality_ = 0; - 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:flyteidl.core.BlobType) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BlobType) - private static final flyteidl.core.Types.BlobType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.BlobType(); - } - - public static flyteidl.core.Types.BlobType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlobType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlobType(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 flyteidl.core.Types.BlobType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralType) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A simple type that can be compared one-to-one with another.
-     * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - int getSimpleValue(); - /** - *
-     * A simple type that can be compared one-to-one with another.
-     * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - flyteidl.core.Types.SimpleType getSimple(); - - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - boolean hasSchema(); - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - flyteidl.core.Types.SchemaType getSchema(); - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder(); - - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - boolean hasCollectionType(); - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - flyteidl.core.Types.LiteralType getCollectionType(); - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder(); - - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - boolean hasMapValueType(); - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - flyteidl.core.Types.LiteralType getMapValueType(); - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder(); - - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - boolean hasBlob(); - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - flyteidl.core.Types.BlobType getBlob(); - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder(); - - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - boolean hasMetadata(); - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - com.google.protobuf.Struct getMetadata(); - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); - - public flyteidl.core.Types.LiteralType.TypeCase getTypeCase(); - } - /** - *
-   * Defines a strong type to allow type checking between interfaces.
-   * 
- * - * Protobuf type {@code flyteidl.core.LiteralType} - */ - public static final class LiteralType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralType) - LiteralTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiteralType.newBuilder() to construct. - private LiteralType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiteralType() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiteralType( - 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 8: { - int rawValue = input.readEnum(); - typeCase_ = 1; - type_ = rawValue; - break; - } - case 18: { - flyteidl.core.Types.SchemaType.Builder subBuilder = null; - if (typeCase_ == 2) { - subBuilder = ((flyteidl.core.Types.SchemaType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.SchemaType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 2; - break; - } - case 26: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (typeCase_ == 3) { - subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 3; - break; - } - case 34: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (typeCase_ == 4) { - subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 4; - break; - } - case 42: { - flyteidl.core.Types.BlobType.Builder subBuilder = null; - if (typeCase_ == 5) { - subBuilder = ((flyteidl.core.Types.BlobType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.BlobType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 5; - break; - } - case 50: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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 flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); - } - - private int typeCase_ = 0; - private java.lang.Object type_; - public enum TypeCase - implements com.google.protobuf.Internal.EnumLite { - SIMPLE(1), - SCHEMA(2), - COLLECTION_TYPE(3), - MAP_VALUE_TYPE(4), - BLOB(5), - TYPE_NOT_SET(0); - private final int value; - private TypeCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TypeCase valueOf(int value) { - return forNumber(value); - } - - public static TypeCase forNumber(int value) { - switch (value) { - case 1: return SIMPLE; - case 2: return SCHEMA; - case 3: return COLLECTION_TYPE; - case 4: return MAP_VALUE_TYPE; - case 5: return BLOB; - case 0: return TYPE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public static final int SIMPLE_FIELD_NUMBER = 1; - /** - *
-     * A simple type that can be compared one-to-one with another.
-     * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public int getSimpleValue() { - if (typeCase_ == 1) { - return (java.lang.Integer) type_; - } - return 0; - } - /** - *
-     * A simple type that can be compared one-to-one with another.
-     * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public flyteidl.core.Types.SimpleType getSimple() { - if (typeCase_ == 1) { - @SuppressWarnings("deprecation") - flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( - (java.lang.Integer) type_); - return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; - } - return flyteidl.core.Types.SimpleType.NONE; - } - - public static final int SCHEMA_FIELD_NUMBER = 2; - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public boolean hasSchema() { - return typeCase_ == 2; - } - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaType getSchema() { - if (typeCase_ == 2) { - return (flyteidl.core.Types.SchemaType) type_; - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { - if (typeCase_ == 2) { - return (flyteidl.core.Types.SchemaType) type_; - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - - public static final int COLLECTION_TYPE_FIELD_NUMBER = 3; - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public boolean hasCollectionType() { - return typeCase_ == 3; - } - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralType getCollectionType() { - if (typeCase_ == 3) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { - if (typeCase_ == 3) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - - public static final int MAP_VALUE_TYPE_FIELD_NUMBER = 4; - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public boolean hasMapValueType() { - return typeCase_ == 4; - } - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralType getMapValueType() { - if (typeCase_ == 4) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { - if (typeCase_ == 4) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - - public static final int BLOB_FIELD_NUMBER = 5; - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public boolean hasBlob() { - return typeCase_ == 5; - } - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobType getBlob() { - if (typeCase_ == 5) { - return (flyteidl.core.Types.BlobType) type_; - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { - if (typeCase_ == 5) { - return (flyteidl.core.Types.BlobType) type_; - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - - public static final int METADATA_FIELD_NUMBER = 6; - private com.google.protobuf.Struct metadata_; - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (typeCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) type_)); - } - if (typeCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Types.SchemaType) type_); - } - if (typeCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Types.LiteralType) type_); - } - if (typeCase_ == 4) { - output.writeMessage(4, (flyteidl.core.Types.LiteralType) type_); - } - if (typeCase_ == 5) { - output.writeMessage(5, (flyteidl.core.Types.BlobType) type_); - } - if (metadata_ != null) { - output.writeMessage(6, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (typeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, ((java.lang.Integer) type_)); - } - if (typeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Types.SchemaType) type_); - } - if (typeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Types.LiteralType) type_); - } - if (typeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.Types.LiteralType) type_); - } - if (typeCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.core.Types.BlobType) type_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getMetadata()); - } - 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 flyteidl.core.Types.LiteralType)) { - return super.equals(obj); - } - flyteidl.core.Types.LiteralType other = (flyteidl.core.Types.LiteralType) obj; - - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!getTypeCase().equals(other.getTypeCase())) return false; - switch (typeCase_) { - case 1: - if (getSimpleValue() - != other.getSimpleValue()) return false; - break; - case 2: - if (!getSchema() - .equals(other.getSchema())) return false; - break; - case 3: - if (!getCollectionType() - .equals(other.getCollectionType())) return false; - break; - case 4: - if (!getMapValueType() - .equals(other.getMapValueType())) return false; - break; - case 5: - if (!getBlob() - .equals(other.getBlob())) 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(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - switch (typeCase_) { - case 1: - hash = (37 * hash) + SIMPLE_FIELD_NUMBER; - hash = (53 * hash) + getSimpleValue(); - break; - case 2: - hash = (37 * hash) + SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSchema().hashCode(); - break; - case 3: - hash = (37 * hash) + COLLECTION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getCollectionType().hashCode(); - break; - case 4: - hash = (37 * hash) + MAP_VALUE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMapValueType().hashCode(); - break; - case 5: - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.LiteralType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.LiteralType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.LiteralType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.LiteralType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.LiteralType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.LiteralType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.LiteralType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.LiteralType 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 flyteidl.core.Types.LiteralType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.LiteralType 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 flyteidl.core.Types.LiteralType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.LiteralType 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(flyteidl.core.Types.LiteralType 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; - } - /** - *
-     * Defines a strong type to allow type checking between interfaces.
-     * 
- * - * Protobuf type {@code flyteidl.core.LiteralType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralType) - flyteidl.core.Types.LiteralTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); - } - - // Construct using flyteidl.core.Types.LiteralType.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 (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - typeCase_ = 0; - type_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.LiteralType getDefaultInstanceForType() { - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.LiteralType build() { - flyteidl.core.Types.LiteralType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.LiteralType buildPartial() { - flyteidl.core.Types.LiteralType result = new flyteidl.core.Types.LiteralType(this); - if (typeCase_ == 1) { - result.type_ = type_; - } - if (typeCase_ == 2) { - if (schemaBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = schemaBuilder_.build(); - } - } - if (typeCase_ == 3) { - if (collectionTypeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = collectionTypeBuilder_.build(); - } - } - if (typeCase_ == 4) { - if (mapValueTypeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = mapValueTypeBuilder_.build(); - } - } - if (typeCase_ == 5) { - if (blobBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = blobBuilder_.build(); - } - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.typeCase_ = typeCase_; - 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 flyteidl.core.Types.LiteralType) { - return mergeFrom((flyteidl.core.Types.LiteralType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.LiteralType other) { - if (other == flyteidl.core.Types.LiteralType.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - switch (other.getTypeCase()) { - case SIMPLE: { - setSimpleValue(other.getSimpleValue()); - break; - } - case SCHEMA: { - mergeSchema(other.getSchema()); - break; - } - case COLLECTION_TYPE: { - mergeCollectionType(other.getCollectionType()); - break; - } - case MAP_VALUE_TYPE: { - mergeMapValueType(other.getMapValueType()); - break; - } - case BLOB: { - mergeBlob(other.getBlob()); - break; - } - case TYPE_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 { - flyteidl.core.Types.LiteralType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.LiteralType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int typeCase_ = 0; - private java.lang.Object type_; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public Builder clearType() { - typeCase_ = 0; - type_ = null; - onChanged(); - return this; - } - - - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public int getSimpleValue() { - if (typeCase_ == 1) { - return ((java.lang.Integer) type_).intValue(); - } - return 0; - } - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public Builder setSimpleValue(int value) { - typeCase_ = 1; - type_ = value; - onChanged(); - return this; - } - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public flyteidl.core.Types.SimpleType getSimple() { - if (typeCase_ == 1) { - @SuppressWarnings("deprecation") - flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( - (java.lang.Integer) type_); - return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; - } - return flyteidl.core.Types.SimpleType.NONE; - } - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public Builder setSimple(flyteidl.core.Types.SimpleType value) { - if (value == null) { - throw new NullPointerException(); - } - typeCase_ = 1; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public Builder clearSimple() { - if (typeCase_ == 1) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> schemaBuilder_; - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public boolean hasSchema() { - return typeCase_ == 2; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaType getSchema() { - if (schemaBuilder_ == null) { - if (typeCase_ == 2) { - return (flyteidl.core.Types.SchemaType) type_; - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } else { - if (typeCase_ == 2) { - return schemaBuilder_.getMessage(); - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public Builder setSchema(flyteidl.core.Types.SchemaType value) { - if (schemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - schemaBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public Builder setSchema( - flyteidl.core.Types.SchemaType.Builder builderForValue) { - if (schemaBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - schemaBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 2; - return this; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public Builder mergeSchema(flyteidl.core.Types.SchemaType value) { - if (schemaBuilder_ == null) { - if (typeCase_ == 2 && - type_ != flyteidl.core.Types.SchemaType.getDefaultInstance()) { - type_ = flyteidl.core.Types.SchemaType.newBuilder((flyteidl.core.Types.SchemaType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 2) { - schemaBuilder_.mergeFrom(value); - } - schemaBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public Builder clearSchema() { - if (schemaBuilder_ == null) { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - } - schemaBuilder_.clear(); - } - return this; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaType.Builder getSchemaBuilder() { - return getSchemaFieldBuilder().getBuilder(); - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { - if ((typeCase_ == 2) && (schemaBuilder_ != null)) { - return schemaBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 2) { - return (flyteidl.core.Types.SchemaType) type_; - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> - getSchemaFieldBuilder() { - if (schemaBuilder_ == null) { - if (!(typeCase_ == 2)) { - type_ = flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( - (flyteidl.core.Types.SchemaType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 2; - onChanged();; - return schemaBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> collectionTypeBuilder_; - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public boolean hasCollectionType() { - return typeCase_ == 3; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralType getCollectionType() { - if (collectionTypeBuilder_ == null) { - if (typeCase_ == 3) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } else { - if (typeCase_ == 3) { - return collectionTypeBuilder_.getMessage(); - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public Builder setCollectionType(flyteidl.core.Types.LiteralType value) { - if (collectionTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - collectionTypeBuilder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public Builder setCollectionType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (collectionTypeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - collectionTypeBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 3; - return this; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public Builder mergeCollectionType(flyteidl.core.Types.LiteralType value) { - if (collectionTypeBuilder_ == null) { - if (typeCase_ == 3 && - type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { - type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 3) { - collectionTypeBuilder_.mergeFrom(value); - } - collectionTypeBuilder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public Builder clearCollectionType() { - if (collectionTypeBuilder_ == null) { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - } - collectionTypeBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralType.Builder getCollectionTypeBuilder() { - return getCollectionTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { - if ((typeCase_ == 3) && (collectionTypeBuilder_ != null)) { - return collectionTypeBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 3) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getCollectionTypeFieldBuilder() { - if (collectionTypeBuilder_ == null) { - if (!(typeCase_ == 3)) { - type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - collectionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - (flyteidl.core.Types.LiteralType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 3; - onChanged();; - return collectionTypeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> mapValueTypeBuilder_; - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public boolean hasMapValueType() { - return typeCase_ == 4; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralType getMapValueType() { - if (mapValueTypeBuilder_ == null) { - if (typeCase_ == 4) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } else { - if (typeCase_ == 4) { - return mapValueTypeBuilder_.getMessage(); - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public Builder setMapValueType(flyteidl.core.Types.LiteralType value) { - if (mapValueTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - mapValueTypeBuilder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public Builder setMapValueType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (mapValueTypeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - mapValueTypeBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 4; - return this; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public Builder mergeMapValueType(flyteidl.core.Types.LiteralType value) { - if (mapValueTypeBuilder_ == null) { - if (typeCase_ == 4 && - type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { - type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 4) { - mapValueTypeBuilder_.mergeFrom(value); - } - mapValueTypeBuilder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public Builder clearMapValueType() { - if (mapValueTypeBuilder_ == null) { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - } - mapValueTypeBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralType.Builder getMapValueTypeBuilder() { - return getMapValueTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { - if ((typeCase_ == 4) && (mapValueTypeBuilder_ != null)) { - return mapValueTypeBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 4) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getMapValueTypeFieldBuilder() { - if (mapValueTypeBuilder_ == null) { - if (!(typeCase_ == 4)) { - type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - mapValueTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - (flyteidl.core.Types.LiteralType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 4; - onChanged();; - return mapValueTypeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> blobBuilder_; - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public boolean hasBlob() { - return typeCase_ == 5; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobType getBlob() { - if (blobBuilder_ == null) { - if (typeCase_ == 5) { - return (flyteidl.core.Types.BlobType) type_; - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } else { - if (typeCase_ == 5) { - return blobBuilder_.getMessage(); - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public Builder setBlob(flyteidl.core.Types.BlobType value) { - if (blobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - blobBuilder_.setMessage(value); - } - typeCase_ = 5; - return this; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public Builder setBlob( - flyteidl.core.Types.BlobType.Builder builderForValue) { - if (blobBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - blobBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 5; - return this; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public Builder mergeBlob(flyteidl.core.Types.BlobType value) { - if (blobBuilder_ == null) { - if (typeCase_ == 5 && - type_ != flyteidl.core.Types.BlobType.getDefaultInstance()) { - type_ = flyteidl.core.Types.BlobType.newBuilder((flyteidl.core.Types.BlobType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 5) { - blobBuilder_.mergeFrom(value); - } - blobBuilder_.setMessage(value); - } - typeCase_ = 5; - return this; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public Builder clearBlob() { - if (blobBuilder_ == null) { - if (typeCase_ == 5) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 5) { - typeCase_ = 0; - type_ = null; - } - blobBuilder_.clear(); - } - return this; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobType.Builder getBlobBuilder() { - return getBlobFieldBuilder().getBuilder(); - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { - if ((typeCase_ == 5) && (blobBuilder_ != null)) { - return blobBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 5) { - return (flyteidl.core.Types.BlobType) type_; - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> - getBlobFieldBuilder() { - if (blobBuilder_ == null) { - if (!(typeCase_ == 5)) { - type_ = flyteidl.core.Types.BlobType.getDefaultInstance(); - } - blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( - (flyteidl.core.Types.BlobType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 5; - onChanged();; - return blobBuilder_; - } - - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_; - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public Builder setMetadata( - com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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:flyteidl.core.LiteralType) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralType) - private static final flyteidl.core.Types.LiteralType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.LiteralType(); - } - - public static flyteidl.core.Types.LiteralType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiteralType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiteralType(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 flyteidl.core.Types.LiteralType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OutputReferenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.OutputReference) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Node id must exist at the graph layer.
-     * 
- * - * string node_id = 1; - */ - java.lang.String getNodeId(); - /** - *
-     * Node id must exist at the graph layer.
-     * 
- * - * string node_id = 1; - */ - com.google.protobuf.ByteString - getNodeIdBytes(); - - /** - *
-     * Variable name must refer to an output variable for the node.
-     * 
- * - * string var = 2; - */ - java.lang.String getVar(); - /** - *
-     * Variable name must refer to an output variable for the node.
-     * 
- * - * string var = 2; - */ - com.google.protobuf.ByteString - getVarBytes(); - } - /** - *
-   * A reference to an output produced by a node. The type can be retrieved -and validated- from
-   * the underlying interface of the node.
-   * 
- * - * Protobuf type {@code flyteidl.core.OutputReference} - */ - public static final class OutputReference extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.OutputReference) - OutputReferenceOrBuilder { - private static final long serialVersionUID = 0L; - // Use OutputReference.newBuilder() to construct. - private OutputReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OutputReference() { - nodeId_ = ""; - var_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OutputReference( - 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(); - - nodeId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - var_ = 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 flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); - } - - public static final int NODE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object nodeId_; - /** - *
-     * Node id must exist at the graph layer.
-     * 
- * - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - 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(); - nodeId_ = s; - return s; - } - } - /** - *
-     * Node id must exist at the graph layer.
-     * 
- * - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VAR_FIELD_NUMBER = 2; - private volatile java.lang.Object var_; - /** - *
-     * Variable name must refer to an output variable for the node.
-     * 
- * - * string var = 2; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - 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(); - var_ = s; - return s; - } - } - /** - *
-     * Variable name must refer to an output variable for the node.
-     * 
- * - * string var = 2; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = 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 (!getNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); - } - if (!getVarBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, var_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); - } - if (!getVarBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, var_); - } - 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 flyteidl.core.Types.OutputReference)) { - return super.equals(obj); - } - flyteidl.core.Types.OutputReference other = (flyteidl.core.Types.OutputReference) obj; - - if (!getNodeId() - .equals(other.getNodeId())) return false; - if (!getVar() - .equals(other.getVar())) 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) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId().hashCode(); - hash = (37 * hash) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.OutputReference parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.OutputReference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.OutputReference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.OutputReference parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.OutputReference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.OutputReference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.OutputReference parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.OutputReference 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 flyteidl.core.Types.OutputReference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.OutputReference 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 flyteidl.core.Types.OutputReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.OutputReference 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(flyteidl.core.Types.OutputReference 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 reference to an output produced by a node. The type can be retrieved -and validated- from
-     * the underlying interface of the node.
-     * 
- * - * Protobuf type {@code flyteidl.core.OutputReference} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.OutputReference) - flyteidl.core.Types.OutputReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); - } - - // Construct using flyteidl.core.Types.OutputReference.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(); - nodeId_ = ""; - - var_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.OutputReference getDefaultInstanceForType() { - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.OutputReference build() { - flyteidl.core.Types.OutputReference result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.OutputReference buildPartial() { - flyteidl.core.Types.OutputReference result = new flyteidl.core.Types.OutputReference(this); - result.nodeId_ = nodeId_; - result.var_ = var_; - 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 flyteidl.core.Types.OutputReference) { - return mergeFrom((flyteidl.core.Types.OutputReference)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.OutputReference other) { - if (other == flyteidl.core.Types.OutputReference.getDefaultInstance()) return this; - if (!other.getNodeId().isEmpty()) { - nodeId_ = other.nodeId_; - onChanged(); - } - if (!other.getVar().isEmpty()) { - var_ = other.var_; - 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 { - flyteidl.core.Types.OutputReference parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.OutputReference) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object nodeId_ = ""; - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public Builder setNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeId_ = value; - onChanged(); - return this; - } - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public Builder clearNodeId() { - - nodeId_ = getDefaultInstance().getNodeId(); - onChanged(); - return this; - } - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeId_ = value; - onChanged(); - return this; - } - - private java.lang.Object var_ = ""; - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public Builder setVar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - var_ = value; - onChanged(); - return this; - } - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public Builder clearVar() { - - var_ = getDefaultInstance().getVar(); - onChanged(); - return this; - } - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public Builder setVarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - var_ = 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:flyteidl.core.OutputReference) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.OutputReference) - private static final flyteidl.core.Types.OutputReference DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.OutputReference(); - } - - public static flyteidl.core.Types.OutputReference getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputReference(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 flyteidl.core.Types.OutputReference getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Error) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The node id that threw the error.
-     * 
- * - * string failed_node_id = 1; - */ - java.lang.String getFailedNodeId(); - /** - *
-     * The node id that threw the error.
-     * 
- * - * string failed_node_id = 1; - */ - com.google.protobuf.ByteString - getFailedNodeIdBytes(); - - /** - *
-     * Error message thrown.
-     * 
- * - * string message = 2; - */ - java.lang.String getMessage(); - /** - *
-     * Error message thrown.
-     * 
- * - * string message = 2; - */ - com.google.protobuf.ByteString - getMessageBytes(); - } - /** - *
-   * Represents an error thrown from a node.
-   * 
- * - * Protobuf type {@code flyteidl.core.Error} - */ - public static final class Error extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Error) - ErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use Error.newBuilder() to construct. - private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Error() { - failedNodeId_ = ""; - message_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Error( - 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(); - - failedNodeId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = 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 flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); - } - - public static final int FAILED_NODE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object failedNodeId_; - /** - *
-     * The node id that threw the error.
-     * 
- * - * string failed_node_id = 1; - */ - public java.lang.String getFailedNodeId() { - java.lang.Object ref = failedNodeId_; - 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(); - failedNodeId_ = s; - return s; - } - } - /** - *
-     * The node id that threw the error.
-     * 
- * - * string failed_node_id = 1; - */ - public com.google.protobuf.ByteString - getFailedNodeIdBytes() { - java.lang.Object ref = failedNodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - failedNodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - *
-     * Error message thrown.
-     * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - 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(); - message_ = s; - return s; - } - } - /** - *
-     * Error message thrown.
-     * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = 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 (!getFailedNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, failedNodeId_); - } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFailedNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, failedNodeId_); - } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - 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 flyteidl.core.Types.Error)) { - return super.equals(obj); - } - flyteidl.core.Types.Error other = (flyteidl.core.Types.Error) obj; - - if (!getFailedNodeId() - .equals(other.getFailedNodeId())) return false; - if (!getMessage() - .equals(other.getMessage())) 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) + FAILED_NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getFailedNodeId().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.Error parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.Error parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.Error parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.Error parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.Error parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.Error parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.Error parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.Error 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 flyteidl.core.Types.Error parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.Error 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 flyteidl.core.Types.Error parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.Error 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(flyteidl.core.Types.Error 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; - } - /** - *
-     * Represents an error thrown from a node.
-     * 
- * - * Protobuf type {@code flyteidl.core.Error} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Error) - flyteidl.core.Types.ErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); - } - - // Construct using flyteidl.core.Types.Error.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(); - failedNodeId_ = ""; - - message_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.Error getDefaultInstanceForType() { - return flyteidl.core.Types.Error.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.Error build() { - flyteidl.core.Types.Error result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.Error buildPartial() { - flyteidl.core.Types.Error result = new flyteidl.core.Types.Error(this); - result.failedNodeId_ = failedNodeId_; - result.message_ = message_; - 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 flyteidl.core.Types.Error) { - return mergeFrom((flyteidl.core.Types.Error)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.Error other) { - if (other == flyteidl.core.Types.Error.getDefaultInstance()) return this; - if (!other.getFailedNodeId().isEmpty()) { - failedNodeId_ = other.failedNodeId_; - onChanged(); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - 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 { - flyteidl.core.Types.Error parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.Error) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object failedNodeId_ = ""; - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public java.lang.String getFailedNodeId() { - java.lang.Object ref = failedNodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - failedNodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public com.google.protobuf.ByteString - getFailedNodeIdBytes() { - java.lang.Object ref = failedNodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - failedNodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public Builder setFailedNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - failedNodeId_ = value; - onChanged(); - return this; - } - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public Builder clearFailedNodeId() { - - failedNodeId_ = getDefaultInstance().getFailedNodeId(); - onChanged(); - return this; - } - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public Builder setFailedNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - failedNodeId_ = value; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = 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:flyteidl.core.Error) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Error) - private static final flyteidl.core.Types.Error DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.Error(); - } - - public static flyteidl.core.Types.Error getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Error parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Error(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 flyteidl.core.Types.Error getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_SchemaType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_SchemaType_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BlobType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BlobType_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_LiteralType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_LiteralType_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_OutputReference_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_OutputReference_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Error_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Error_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\031flyteidl/core/types.proto\022\rflyteidl.co" + - "re\032\034google/protobuf/struct.proto\"\214\002\n\nSch" + - "emaType\0227\n\007columns\030\003 \003(\0132&.flyteidl.core" + - ".SchemaType.SchemaColumn\032\304\001\n\014SchemaColum" + - "n\022\014\n\004name\030\001 \001(\t\022E\n\004type\030\002 \001(\01627.flyteidl" + - ".core.SchemaType.SchemaColumn.SchemaColu" + - "mnType\"_\n\020SchemaColumnType\022\013\n\007INTEGER\020\000\022" + - "\t\n\005FLOAT\020\001\022\n\n\006STRING\020\002\022\013\n\007BOOLEAN\020\003\022\014\n\010D" + - "ATETIME\020\004\022\014\n\010DURATION\020\005\"\217\001\n\010BlobType\022\016\n\006" + - "format\030\001 \001(\t\022B\n\016dimensionality\030\002 \001(\0162*.f" + - "lyteidl.core.BlobType.BlobDimensionality" + - "\"/\n\022BlobDimensionality\022\n\n\006SINGLE\020\000\022\r\n\tMU" + - "LTIPART\020\001\"\260\002\n\013LiteralType\022+\n\006simple\030\001 \001(" + - "\0162\031.flyteidl.core.SimpleTypeH\000\022+\n\006schema" + - "\030\002 \001(\0132\031.flyteidl.core.SchemaTypeH\000\0225\n\017c" + - "ollection_type\030\003 \001(\0132\032.flyteidl.core.Lit" + - "eralTypeH\000\0224\n\016map_value_type\030\004 \001(\0132\032.fly" + - "teidl.core.LiteralTypeH\000\022\'\n\004blob\030\005 \001(\0132\027" + - ".flyteidl.core.BlobTypeH\000\022)\n\010metadata\030\006 " + - "\001(\0132\027.google.protobuf.StructB\006\n\004type\"/\n\017" + - "OutputReference\022\017\n\007node_id\030\001 \001(\t\022\013\n\003var\030" + - "\002 \001(\t\"0\n\005Error\022\026\n\016failed_node_id\030\001 \001(\t\022\017" + - "\n\007message\030\002 \001(\t*\206\001\n\nSimpleType\022\010\n\004NONE\020\000" + - "\022\013\n\007INTEGER\020\001\022\t\n\005FLOAT\020\002\022\n\n\006STRING\020\003\022\013\n\007" + - "BOOLEAN\020\004\022\014\n\010DATETIME\020\005\022\014\n\010DURATION\020\006\022\n\n" + - "\006BINARY\020\007\022\t\n\005ERROR\020\010\022\n\n\006STRUCT\020\tB2Z0gith" + - "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" + - "coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.StructProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_SchemaType_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_SchemaType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_SchemaType_descriptor, - new java.lang.String[] { "Columns", }); - internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor = - internal_static_flyteidl_core_SchemaType_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor, - new java.lang.String[] { "Name", "Type", }); - internal_static_flyteidl_core_BlobType_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_BlobType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BlobType_descriptor, - new java.lang.String[] { "Format", "Dimensionality", }); - internal_static_flyteidl_core_LiteralType_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_LiteralType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_LiteralType_descriptor, - new java.lang.String[] { "Simple", "Schema", "CollectionType", "MapValueType", "Blob", "Metadata", "Type", }); - internal_static_flyteidl_core_OutputReference_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_OutputReference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_OutputReference_descriptor, - new java.lang.String[] { "NodeId", "Var", }); - internal_static_flyteidl_core_Error_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_core_Error_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Error_descriptor, - new java.lang.String[] { "FailedNodeId", "Message", }); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/Workflow.java b/gen/pb-java/flyteidl/core/Workflow.java deleted file mode 100644 index e0eed4bcd..000000000 --- a/gen/pb-java/flyteidl/core/Workflow.java +++ /dev/null @@ -1,14708 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/workflow.proto - -package flyteidl.core; - -public final class Workflow { - private Workflow() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface IfBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.IfBlock) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - boolean hasCondition(); - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - flyteidl.core.Condition.BooleanExpression getCondition(); - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder(); - - /** - * .flyteidl.core.Node then_node = 2; - */ - boolean hasThenNode(); - /** - * .flyteidl.core.Node then_node = 2; - */ - flyteidl.core.Workflow.Node getThenNode(); - /** - * .flyteidl.core.Node then_node = 2; - */ - flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder(); - } - /** - *
-   * Defines a condition and the execution unit that should be executed if the condition is satisfied.
-   * 
- * - * Protobuf type {@code flyteidl.core.IfBlock} - */ - public static final class IfBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.IfBlock) - IfBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use IfBlock.newBuilder() to construct. - private IfBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IfBlock() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IfBlock( - 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: { - flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; - if (condition_ != null) { - subBuilder = condition_.toBuilder(); - } - condition_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(condition_); - condition_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Workflow.Node.Builder subBuilder = null; - if (thenNode_ != null) { - subBuilder = thenNode_.toBuilder(); - } - thenNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(thenNode_); - thenNode_ = 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 flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); - } - - public static final int CONDITION_FIELD_NUMBER = 1; - private flyteidl.core.Condition.BooleanExpression condition_; - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public boolean hasCondition() { - return condition_ != null; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpression getCondition() { - return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { - return getCondition(); - } - - public static final int THEN_NODE_FIELD_NUMBER = 2; - private flyteidl.core.Workflow.Node thenNode_; - /** - * .flyteidl.core.Node then_node = 2; - */ - public boolean hasThenNode() { - return thenNode_ != null; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.Node getThenNode() { - return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { - return getThenNode(); - } - - 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 (thenNode_ != null) { - output.writeMessage(2, getThenNode()); - } - 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 (thenNode_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getThenNode()); - } - 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 flyteidl.core.Workflow.IfBlock)) { - return super.equals(obj); - } - flyteidl.core.Workflow.IfBlock other = (flyteidl.core.Workflow.IfBlock) obj; - - if (hasCondition() != other.hasCondition()) return false; - if (hasCondition()) { - if (!getCondition() - .equals(other.getCondition())) return false; - } - if (hasThenNode() != other.hasThenNode()) return false; - if (hasThenNode()) { - if (!getThenNode() - .equals(other.getThenNode())) 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 (hasThenNode()) { - hash = (37 * hash) + THEN_NODE_FIELD_NUMBER; - hash = (53 * hash) + getThenNode().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.IfBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfBlock 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 flyteidl.core.Workflow.IfBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfBlock 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 flyteidl.core.Workflow.IfBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfBlock 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(flyteidl.core.Workflow.IfBlock 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; - } - /** - *
-     * Defines a condition and the execution unit that should be executed if the condition is satisfied.
-     * 
- * - * Protobuf type {@code flyteidl.core.IfBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.IfBlock) - flyteidl.core.Workflow.IfBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); - } - - // Construct using flyteidl.core.Workflow.IfBlock.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 (thenNodeBuilder_ == null) { - thenNode_ = null; - } else { - thenNode_ = null; - thenNodeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.IfBlock getDefaultInstanceForType() { - return flyteidl.core.Workflow.IfBlock.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.IfBlock build() { - flyteidl.core.Workflow.IfBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.IfBlock buildPartial() { - flyteidl.core.Workflow.IfBlock result = new flyteidl.core.Workflow.IfBlock(this); - if (conditionBuilder_ == null) { - result.condition_ = condition_; - } else { - result.condition_ = conditionBuilder_.build(); - } - if (thenNodeBuilder_ == null) { - result.thenNode_ = thenNode_; - } else { - result.thenNode_ = thenNodeBuilder_.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 flyteidl.core.Workflow.IfBlock) { - return mergeFrom((flyteidl.core.Workflow.IfBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.IfBlock other) { - if (other == flyteidl.core.Workflow.IfBlock.getDefaultInstance()) return this; - if (other.hasCondition()) { - mergeCondition(other.getCondition()); - } - if (other.hasThenNode()) { - mergeThenNode(other.getThenNode()); - } - 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 { - flyteidl.core.Workflow.IfBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.IfBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Condition.BooleanExpression condition_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> conditionBuilder_; - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public boolean hasCondition() { - return conditionBuilder_ != null || condition_ != null; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpression getCondition() { - if (conditionBuilder_ == null) { - return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; - } else { - return conditionBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public Builder setCondition(flyteidl.core.Condition.BooleanExpression value) { - if (conditionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - condition_ = value; - onChanged(); - } else { - conditionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public Builder setCondition( - flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { - if (conditionBuilder_ == null) { - condition_ = builderForValue.build(); - onChanged(); - } else { - conditionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public Builder mergeCondition(flyteidl.core.Condition.BooleanExpression value) { - if (conditionBuilder_ == null) { - if (condition_ != null) { - condition_ = - flyteidl.core.Condition.BooleanExpression.newBuilder(condition_).mergeFrom(value).buildPartial(); - } else { - condition_ = value; - } - onChanged(); - } else { - conditionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public Builder clearCondition() { - if (conditionBuilder_ == null) { - condition_ = null; - onChanged(); - } else { - condition_ = null; - conditionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpression.Builder getConditionBuilder() { - - onChanged(); - return getConditionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { - if (conditionBuilder_ != null) { - return conditionBuilder_.getMessageOrBuilder(); - } else { - return condition_ == null ? - flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; - } - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> - getConditionFieldBuilder() { - if (conditionBuilder_ == null) { - conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( - getCondition(), - getParentForChildren(), - isClean()); - condition_ = null; - } - return conditionBuilder_; - } - - private flyteidl.core.Workflow.Node thenNode_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> thenNodeBuilder_; - /** - * .flyteidl.core.Node then_node = 2; - */ - public boolean hasThenNode() { - return thenNodeBuilder_ != null || thenNode_ != null; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.Node getThenNode() { - if (thenNodeBuilder_ == null) { - return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; - } else { - return thenNodeBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public Builder setThenNode(flyteidl.core.Workflow.Node value) { - if (thenNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - thenNode_ = value; - onChanged(); - } else { - thenNodeBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public Builder setThenNode( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (thenNodeBuilder_ == null) { - thenNode_ = builderForValue.build(); - onChanged(); - } else { - thenNodeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public Builder mergeThenNode(flyteidl.core.Workflow.Node value) { - if (thenNodeBuilder_ == null) { - if (thenNode_ != null) { - thenNode_ = - flyteidl.core.Workflow.Node.newBuilder(thenNode_).mergeFrom(value).buildPartial(); - } else { - thenNode_ = value; - } - onChanged(); - } else { - thenNodeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public Builder clearThenNode() { - if (thenNodeBuilder_ == null) { - thenNode_ = null; - onChanged(); - } else { - thenNode_ = null; - thenNodeBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.Node.Builder getThenNodeBuilder() { - - onChanged(); - return getThenNodeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { - if (thenNodeBuilder_ != null) { - return thenNodeBuilder_.getMessageOrBuilder(); - } else { - return thenNode_ == null ? - flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; - } - } - /** - * .flyteidl.core.Node then_node = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getThenNodeFieldBuilder() { - if (thenNodeBuilder_ == null) { - thenNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - getThenNode(), - getParentForChildren(), - isClean()); - thenNode_ = null; - } - return thenNodeBuilder_; - } - @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:flyteidl.core.IfBlock) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.IfBlock) - private static final flyteidl.core.Workflow.IfBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfBlock(); - } - - public static flyteidl.core.Workflow.IfBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IfBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IfBlock(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 flyteidl.core.Workflow.IfBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IfElseBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.IfElseBlock) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - boolean hasCase(); - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - flyteidl.core.Workflow.IfBlock getCase(); - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder(); - - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - java.util.List - getOtherList(); - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - flyteidl.core.Workflow.IfBlock getOther(int index); - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - int getOtherCount(); - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - java.util.List - getOtherOrBuilderList(); - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( - int index); - - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - boolean hasElseNode(); - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - flyteidl.core.Workflow.Node getElseNode(); - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder(); - - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - boolean hasError(); - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - flyteidl.core.Types.Error getError(); - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); - - public flyteidl.core.Workflow.IfElseBlock.DefaultCase getDefaultCase(); - } - /** - *
-   * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
-   * If no conditions were satisfied, the else_node or the error will execute.
-   * 
- * - * Protobuf type {@code flyteidl.core.IfElseBlock} - */ - public static final class IfElseBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.IfElseBlock) - IfElseBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use IfElseBlock.newBuilder() to construct. - private IfElseBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IfElseBlock() { - other_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IfElseBlock( - 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: { - flyteidl.core.Workflow.IfBlock.Builder subBuilder = null; - if (case_ != null) { - subBuilder = case_.toBuilder(); - } - case_ = input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(case_); - case_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - other_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - other_.add( - input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry)); - break; - } - case 26: { - flyteidl.core.Workflow.Node.Builder subBuilder = null; - if (defaultCase_ == 3) { - subBuilder = ((flyteidl.core.Workflow.Node) default_).toBuilder(); - } - default_ = - input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.Node) default_); - default_ = subBuilder.buildPartial(); - } - defaultCase_ = 3; - break; - } - case 34: { - flyteidl.core.Types.Error.Builder subBuilder = null; - if (defaultCase_ == 4) { - subBuilder = ((flyteidl.core.Types.Error) default_).toBuilder(); - } - default_ = - input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.Error) default_); - default_ = subBuilder.buildPartial(); - } - defaultCase_ = 4; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - other_ = java.util.Collections.unmodifiableList(other_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); - } - - private int bitField0_; - private int defaultCase_ = 0; - private java.lang.Object default_; - public enum DefaultCase - implements com.google.protobuf.Internal.EnumLite { - ELSE_NODE(3), - ERROR(4), - DEFAULT_NOT_SET(0); - private final int value; - private DefaultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DefaultCase valueOf(int value) { - return forNumber(value); - } - - public static DefaultCase forNumber(int value) { - switch (value) { - case 3: return ELSE_NODE; - case 4: return ERROR; - case 0: return DEFAULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DefaultCase - getDefaultCase() { - return DefaultCase.forNumber( - defaultCase_); - } - - public static final int CASE_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.IfBlock case_; - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public boolean hasCase() { - return case_ != null; - } - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlock getCase() { - return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; - } - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { - return getCase(); - } - - public static final int OTHER_FIELD_NUMBER = 2; - private java.util.List other_; - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List getOtherList() { - return other_; - } - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List - getOtherOrBuilderList() { - return other_; - } - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public int getOtherCount() { - return other_.size(); - } - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock getOther(int index) { - return other_.get(index); - } - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( - int index) { - return other_.get(index); - } - - public static final int ELSE_NODE_FIELD_NUMBER = 3; - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public boolean hasElseNode() { - return defaultCase_ == 3; - } - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.Node getElseNode() { - if (defaultCase_ == 3) { - return (flyteidl.core.Workflow.Node) default_; - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { - if (defaultCase_ == 3) { - return (flyteidl.core.Workflow.Node) default_; - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - - public static final int ERROR_FIELD_NUMBER = 4; - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - public boolean hasError() { - return defaultCase_ == 4; - } - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.Error getError() { - if (defaultCase_ == 4) { - return (flyteidl.core.Types.Error) default_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { - if (defaultCase_ == 4) { - return (flyteidl.core.Types.Error) default_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (case_ != null) { - output.writeMessage(1, getCase()); - } - for (int i = 0; i < other_.size(); i++) { - output.writeMessage(2, other_.get(i)); - } - if (defaultCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Workflow.Node) default_); - } - if (defaultCase_ == 4) { - output.writeMessage(4, (flyteidl.core.Types.Error) default_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (case_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCase()); - } - for (int i = 0; i < other_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, other_.get(i)); - } - if (defaultCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Workflow.Node) default_); - } - if (defaultCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.Types.Error) default_); - } - 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 flyteidl.core.Workflow.IfElseBlock)) { - return super.equals(obj); - } - flyteidl.core.Workflow.IfElseBlock other = (flyteidl.core.Workflow.IfElseBlock) obj; - - if (hasCase() != other.hasCase()) return false; - if (hasCase()) { - if (!getCase() - .equals(other.getCase())) return false; - } - if (!getOtherList() - .equals(other.getOtherList())) return false; - if (!getDefaultCase().equals(other.getDefaultCase())) return false; - switch (defaultCase_) { - case 3: - if (!getElseNode() - .equals(other.getElseNode())) return false; - break; - case 4: - if (!getError() - .equals(other.getError())) 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(); - if (hasCase()) { - hash = (37 * hash) + CASE_FIELD_NUMBER; - hash = (53 * hash) + getCase().hashCode(); - } - if (getOtherCount() > 0) { - hash = (37 * hash) + OTHER_FIELD_NUMBER; - hash = (53 * hash) + getOtherList().hashCode(); - } - switch (defaultCase_) { - case 3: - hash = (37 * hash) + ELSE_NODE_FIELD_NUMBER; - hash = (53 * hash) + getElseNode().hashCode(); - break; - case 4: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfElseBlock 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 flyteidl.core.Workflow.IfElseBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfElseBlock 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 flyteidl.core.Workflow.IfElseBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfElseBlock 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(flyteidl.core.Workflow.IfElseBlock 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; - } - /** - *
-     * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
-     * If no conditions were satisfied, the else_node or the error will execute.
-     * 
- * - * Protobuf type {@code flyteidl.core.IfElseBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.IfElseBlock) - flyteidl.core.Workflow.IfElseBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); - } - - // Construct using flyteidl.core.Workflow.IfElseBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOtherFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (caseBuilder_ == null) { - case_ = null; - } else { - case_ = null; - caseBuilder_ = null; - } - if (otherBuilder_ == null) { - other_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - otherBuilder_.clear(); - } - defaultCase_ = 0; - default_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.IfElseBlock getDefaultInstanceForType() { - return flyteidl.core.Workflow.IfElseBlock.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.IfElseBlock build() { - flyteidl.core.Workflow.IfElseBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.IfElseBlock buildPartial() { - flyteidl.core.Workflow.IfElseBlock result = new flyteidl.core.Workflow.IfElseBlock(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (caseBuilder_ == null) { - result.case_ = case_; - } else { - result.case_ = caseBuilder_.build(); - } - if (otherBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - other_ = java.util.Collections.unmodifiableList(other_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.other_ = other_; - } else { - result.other_ = otherBuilder_.build(); - } - if (defaultCase_ == 3) { - if (elseNodeBuilder_ == null) { - result.default_ = default_; - } else { - result.default_ = elseNodeBuilder_.build(); - } - } - if (defaultCase_ == 4) { - if (errorBuilder_ == null) { - result.default_ = default_; - } else { - result.default_ = errorBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.defaultCase_ = defaultCase_; - 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 flyteidl.core.Workflow.IfElseBlock) { - return mergeFrom((flyteidl.core.Workflow.IfElseBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.IfElseBlock other) { - if (other == flyteidl.core.Workflow.IfElseBlock.getDefaultInstance()) return this; - if (other.hasCase()) { - mergeCase(other.getCase()); - } - if (otherBuilder_ == null) { - if (!other.other_.isEmpty()) { - if (other_.isEmpty()) { - other_ = other.other_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureOtherIsMutable(); - other_.addAll(other.other_); - } - onChanged(); - } - } else { - if (!other.other_.isEmpty()) { - if (otherBuilder_.isEmpty()) { - otherBuilder_.dispose(); - otherBuilder_ = null; - other_ = other.other_; - bitField0_ = (bitField0_ & ~0x00000002); - otherBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOtherFieldBuilder() : null; - } else { - otherBuilder_.addAllMessages(other.other_); - } - } - } - switch (other.getDefaultCase()) { - case ELSE_NODE: { - mergeElseNode(other.getElseNode()); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case DEFAULT_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 { - flyteidl.core.Workflow.IfElseBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.IfElseBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int defaultCase_ = 0; - private java.lang.Object default_; - public DefaultCase - getDefaultCase() { - return DefaultCase.forNumber( - defaultCase_); - } - - public Builder clearDefault() { - defaultCase_ = 0; - default_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private flyteidl.core.Workflow.IfBlock case_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> caseBuilder_; - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public boolean hasCase() { - return caseBuilder_ != null || case_ != null; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlock getCase() { - if (caseBuilder_ == null) { - return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; - } else { - return caseBuilder_.getMessage(); - } - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public Builder setCase(flyteidl.core.Workflow.IfBlock value) { - if (caseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - case_ = value; - onChanged(); - } else { - caseBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public Builder setCase( - flyteidl.core.Workflow.IfBlock.Builder builderForValue) { - if (caseBuilder_ == null) { - case_ = builderForValue.build(); - onChanged(); - } else { - caseBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public Builder mergeCase(flyteidl.core.Workflow.IfBlock value) { - if (caseBuilder_ == null) { - if (case_ != null) { - case_ = - flyteidl.core.Workflow.IfBlock.newBuilder(case_).mergeFrom(value).buildPartial(); - } else { - case_ = value; - } - onChanged(); - } else { - caseBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public Builder clearCase() { - if (caseBuilder_ == null) { - case_ = null; - onChanged(); - } else { - case_ = null; - caseBuilder_ = null; - } - - return this; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlock.Builder getCaseBuilder() { - - onChanged(); - return getCaseFieldBuilder().getBuilder(); - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { - if (caseBuilder_ != null) { - return caseBuilder_.getMessageOrBuilder(); - } else { - return case_ == null ? - flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; - } - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> - getCaseFieldBuilder() { - if (caseBuilder_ == null) { - caseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( - getCase(), - getParentForChildren(), - isClean()); - case_ = null; - } - return caseBuilder_; - } - - private java.util.List other_ = - java.util.Collections.emptyList(); - private void ensureOtherIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - other_ = new java.util.ArrayList(other_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> otherBuilder_; - - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List getOtherList() { - if (otherBuilder_ == null) { - return java.util.Collections.unmodifiableList(other_); - } else { - return otherBuilder_.getMessageList(); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public int getOtherCount() { - if (otherBuilder_ == null) { - return other_.size(); - } else { - return otherBuilder_.getCount(); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock getOther(int index) { - if (otherBuilder_ == null) { - return other_.get(index); - } else { - return otherBuilder_.getMessage(index); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder setOther( - int index, flyteidl.core.Workflow.IfBlock value) { - if (otherBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOtherIsMutable(); - other_.set(index, value); - onChanged(); - } else { - otherBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder setOther( - int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - other_.set(index, builderForValue.build()); - onChanged(); - } else { - otherBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addOther(flyteidl.core.Workflow.IfBlock value) { - if (otherBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOtherIsMutable(); - other_.add(value); - onChanged(); - } else { - otherBuilder_.addMessage(value); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addOther( - int index, flyteidl.core.Workflow.IfBlock value) { - if (otherBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOtherIsMutable(); - other_.add(index, value); - onChanged(); - } else { - otherBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addOther( - flyteidl.core.Workflow.IfBlock.Builder builderForValue) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - other_.add(builderForValue.build()); - onChanged(); - } else { - otherBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addOther( - int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - other_.add(index, builderForValue.build()); - onChanged(); - } else { - otherBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addAllOther( - java.lang.Iterable values) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, other_); - onChanged(); - } else { - otherBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder clearOther() { - if (otherBuilder_ == null) { - other_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - otherBuilder_.clear(); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder removeOther(int index) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - other_.remove(index); - onChanged(); - } else { - otherBuilder_.remove(index); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock.Builder getOtherBuilder( - int index) { - return getOtherFieldBuilder().getBuilder(index); - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( - int index) { - if (otherBuilder_ == null) { - return other_.get(index); } else { - return otherBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List - getOtherOrBuilderList() { - if (otherBuilder_ != null) { - return otherBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(other_); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder() { - return getOtherFieldBuilder().addBuilder( - flyteidl.core.Workflow.IfBlock.getDefaultInstance()); - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder( - int index) { - return getOtherFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.IfBlock.getDefaultInstance()); - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List - getOtherBuilderList() { - return getOtherFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> - getOtherFieldBuilder() { - if (otherBuilder_ == null) { - otherBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( - other_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - other_ = null; - } - return otherBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> elseNodeBuilder_; - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public boolean hasElseNode() { - return defaultCase_ == 3; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.Node getElseNode() { - if (elseNodeBuilder_ == null) { - if (defaultCase_ == 3) { - return (flyteidl.core.Workflow.Node) default_; - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } else { - if (defaultCase_ == 3) { - return elseNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public Builder setElseNode(flyteidl.core.Workflow.Node value) { - if (elseNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - default_ = value; - onChanged(); - } else { - elseNodeBuilder_.setMessage(value); - } - defaultCase_ = 3; - return this; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public Builder setElseNode( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (elseNodeBuilder_ == null) { - default_ = builderForValue.build(); - onChanged(); - } else { - elseNodeBuilder_.setMessage(builderForValue.build()); - } - defaultCase_ = 3; - return this; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public Builder mergeElseNode(flyteidl.core.Workflow.Node value) { - if (elseNodeBuilder_ == null) { - if (defaultCase_ == 3 && - default_ != flyteidl.core.Workflow.Node.getDefaultInstance()) { - default_ = flyteidl.core.Workflow.Node.newBuilder((flyteidl.core.Workflow.Node) default_) - .mergeFrom(value).buildPartial(); - } else { - default_ = value; - } - onChanged(); - } else { - if (defaultCase_ == 3) { - elseNodeBuilder_.mergeFrom(value); - } - elseNodeBuilder_.setMessage(value); - } - defaultCase_ = 3; - return this; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public Builder clearElseNode() { - if (elseNodeBuilder_ == null) { - if (defaultCase_ == 3) { - defaultCase_ = 0; - default_ = null; - onChanged(); - } - } else { - if (defaultCase_ == 3) { - defaultCase_ = 0; - default_ = null; - } - elseNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.Node.Builder getElseNodeBuilder() { - return getElseNodeFieldBuilder().getBuilder(); - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { - if ((defaultCase_ == 3) && (elseNodeBuilder_ != null)) { - return elseNodeBuilder_.getMessageOrBuilder(); - } else { - if (defaultCase_ == 3) { - return (flyteidl.core.Workflow.Node) default_; - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getElseNodeFieldBuilder() { - if (elseNodeBuilder_ == null) { - if (!(defaultCase_ == 3)) { - default_ = flyteidl.core.Workflow.Node.getDefaultInstance(); - } - elseNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - (flyteidl.core.Workflow.Node) default_, - getParentForChildren(), - isClean()); - default_ = null; - } - defaultCase_ = 3; - onChanged();; - return elseNodeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public boolean hasError() { - return defaultCase_ == 4; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.Error getError() { - if (errorBuilder_ == null) { - if (defaultCase_ == 4) { - return (flyteidl.core.Types.Error) default_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } else { - if (defaultCase_ == 4) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public Builder setError(flyteidl.core.Types.Error value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - default_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - defaultCase_ = 4; - return this; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public Builder setError( - flyteidl.core.Types.Error.Builder builderForValue) { - if (errorBuilder_ == null) { - default_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - defaultCase_ = 4; - return this; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public Builder mergeError(flyteidl.core.Types.Error value) { - if (errorBuilder_ == null) { - if (defaultCase_ == 4 && - default_ != flyteidl.core.Types.Error.getDefaultInstance()) { - default_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) default_) - .mergeFrom(value).buildPartial(); - } else { - default_ = value; - } - onChanged(); - } else { - if (defaultCase_ == 4) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - defaultCase_ = 4; - return this; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (defaultCase_ == 4) { - defaultCase_ = 0; - default_ = null; - onChanged(); - } - } else { - if (defaultCase_ == 4) { - defaultCase_ = 0; - default_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.Error.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { - if ((defaultCase_ == 4) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (defaultCase_ == 4) { - return (flyteidl.core.Types.Error) default_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(defaultCase_ == 4)) { - default_ = flyteidl.core.Types.Error.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( - (flyteidl.core.Types.Error) default_, - getParentForChildren(), - isClean()); - default_ = null; - } - defaultCase_ = 4; - onChanged();; - return errorBuilder_; - } - @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:flyteidl.core.IfElseBlock) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.IfElseBlock) - private static final flyteidl.core.Workflow.IfElseBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfElseBlock(); - } - - public static flyteidl.core.Workflow.IfElseBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IfElseBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IfElseBlock(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 flyteidl.core.Workflow.IfElseBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BranchNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BranchNode) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - boolean hasIfElse(); - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - flyteidl.core.Workflow.IfElseBlock getIfElse(); - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder(); - } - /** - *
-   * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
-   * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives).
-   * 
- * - * Protobuf type {@code flyteidl.core.BranchNode} - */ - public static final class BranchNode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BranchNode) - BranchNodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use BranchNode.newBuilder() to construct. - private BranchNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BranchNode() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BranchNode( - 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: { - flyteidl.core.Workflow.IfElseBlock.Builder subBuilder = null; - if (ifElse_ != null) { - subBuilder = ifElse_.toBuilder(); - } - ifElse_ = input.readMessage(flyteidl.core.Workflow.IfElseBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ifElse_); - ifElse_ = 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 flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); - } - - public static final int IF_ELSE_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.IfElseBlock ifElse_; - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public boolean hasIfElse() { - return ifElse_ != null; - } - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlock getIfElse() { - return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; - } - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { - return getIfElse(); - } - - 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 (ifElse_ != null) { - output.writeMessage(1, getIfElse()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (ifElse_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIfElse()); - } - 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 flyteidl.core.Workflow.BranchNode)) { - return super.equals(obj); - } - flyteidl.core.Workflow.BranchNode other = (flyteidl.core.Workflow.BranchNode) obj; - - if (hasIfElse() != other.hasIfElse()) return false; - if (hasIfElse()) { - if (!getIfElse() - .equals(other.getIfElse())) 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 (hasIfElse()) { - hash = (37 * hash) + IF_ELSE_FIELD_NUMBER; - hash = (53 * hash) + getIfElse().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.BranchNode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.BranchNode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.BranchNode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.BranchNode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.BranchNode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.BranchNode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.BranchNode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.BranchNode 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 flyteidl.core.Workflow.BranchNode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.BranchNode 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 flyteidl.core.Workflow.BranchNode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.BranchNode 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(flyteidl.core.Workflow.BranchNode 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; - } - /** - *
-     * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
-     * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives).
-     * 
- * - * Protobuf type {@code flyteidl.core.BranchNode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BranchNode) - flyteidl.core.Workflow.BranchNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); - } - - // Construct using flyteidl.core.Workflow.BranchNode.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 (ifElseBuilder_ == null) { - ifElse_ = null; - } else { - ifElse_ = null; - ifElseBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.BranchNode getDefaultInstanceForType() { - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.BranchNode build() { - flyteidl.core.Workflow.BranchNode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.BranchNode buildPartial() { - flyteidl.core.Workflow.BranchNode result = new flyteidl.core.Workflow.BranchNode(this); - if (ifElseBuilder_ == null) { - result.ifElse_ = ifElse_; - } else { - result.ifElse_ = ifElseBuilder_.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 flyteidl.core.Workflow.BranchNode) { - return mergeFrom((flyteidl.core.Workflow.BranchNode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.BranchNode other) { - if (other == flyteidl.core.Workflow.BranchNode.getDefaultInstance()) return this; - if (other.hasIfElse()) { - mergeIfElse(other.getIfElse()); - } - 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 { - flyteidl.core.Workflow.BranchNode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.BranchNode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Workflow.IfElseBlock ifElse_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> ifElseBuilder_; - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public boolean hasIfElse() { - return ifElseBuilder_ != null || ifElse_ != null; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlock getIfElse() { - if (ifElseBuilder_ == null) { - return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; - } else { - return ifElseBuilder_.getMessage(); - } - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public Builder setIfElse(flyteidl.core.Workflow.IfElseBlock value) { - if (ifElseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ifElse_ = value; - onChanged(); - } else { - ifElseBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public Builder setIfElse( - flyteidl.core.Workflow.IfElseBlock.Builder builderForValue) { - if (ifElseBuilder_ == null) { - ifElse_ = builderForValue.build(); - onChanged(); - } else { - ifElseBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public Builder mergeIfElse(flyteidl.core.Workflow.IfElseBlock value) { - if (ifElseBuilder_ == null) { - if (ifElse_ != null) { - ifElse_ = - flyteidl.core.Workflow.IfElseBlock.newBuilder(ifElse_).mergeFrom(value).buildPartial(); - } else { - ifElse_ = value; - } - onChanged(); - } else { - ifElseBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public Builder clearIfElse() { - if (ifElseBuilder_ == null) { - ifElse_ = null; - onChanged(); - } else { - ifElse_ = null; - ifElseBuilder_ = null; - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlock.Builder getIfElseBuilder() { - - onChanged(); - return getIfElseFieldBuilder().getBuilder(); - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { - if (ifElseBuilder_ != null) { - return ifElseBuilder_.getMessageOrBuilder(); - } else { - return ifElse_ == null ? - flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; - } - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> - getIfElseFieldBuilder() { - if (ifElseBuilder_ == null) { - ifElseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder>( - getIfElse(), - getParentForChildren(), - isClean()); - ifElse_ = null; - } - return ifElseBuilder_; - } - @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:flyteidl.core.BranchNode) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BranchNode) - private static final flyteidl.core.Workflow.BranchNode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.BranchNode(); - } - - public static flyteidl.core.Workflow.BranchNode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BranchNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BranchNode(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 flyteidl.core.Workflow.BranchNode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskNode) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - boolean hasReferenceId(); - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getReferenceId(); - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder(); - - public flyteidl.core.Workflow.TaskNode.ReferenceCase getReferenceCase(); - } - /** - *
-   * Refers to the task that the Node is to execute.
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskNode} - */ - public static final class TaskNode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskNode) - TaskNodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskNode.newBuilder() to construct. - private TaskNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskNode() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskNode( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (referenceCase_ == 1) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); - } - reference_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); - reference_ = subBuilder.buildPartial(); - } - referenceCase_ = 1; - 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 flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); - } - - private int referenceCase_ = 0; - private java.lang.Object reference_; - public enum ReferenceCase - implements com.google.protobuf.Internal.EnumLite { - REFERENCE_ID(1), - REFERENCE_NOT_SET(0); - private final int value; - private ReferenceCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReferenceCase valueOf(int value) { - return forNumber(value); - } - - public static ReferenceCase forNumber(int value) { - switch (value) { - case 1: return REFERENCE_ID; - case 0: return REFERENCE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReferenceCase - getReferenceCase() { - return ReferenceCase.forNumber( - referenceCase_); - } - - public static final int REFERENCE_ID_FIELD_NUMBER = 1; - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public boolean hasReferenceId() { - return referenceCase_ == 1; - } - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (referenceCase_ == 1) { - output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (referenceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - 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 flyteidl.core.Workflow.TaskNode)) { - return super.equals(obj); - } - flyteidl.core.Workflow.TaskNode other = (flyteidl.core.Workflow.TaskNode) obj; - - if (!getReferenceCase().equals(other.getReferenceCase())) return false; - switch (referenceCase_) { - case 1: - if (!getReferenceId() - .equals(other.getReferenceId())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (referenceCase_) { - case 1: - hash = (37 * hash) + REFERENCE_ID_FIELD_NUMBER; - hash = (53 * hash) + getReferenceId().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.TaskNode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.TaskNode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.TaskNode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.TaskNode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.TaskNode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.TaskNode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.TaskNode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.TaskNode 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 flyteidl.core.Workflow.TaskNode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.TaskNode 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 flyteidl.core.Workflow.TaskNode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.TaskNode 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(flyteidl.core.Workflow.TaskNode 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; - } - /** - *
-     * Refers to the task that the Node is to execute.
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskNode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskNode) - flyteidl.core.Workflow.TaskNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); - } - - // Construct using flyteidl.core.Workflow.TaskNode.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(); - referenceCase_ = 0; - reference_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.TaskNode getDefaultInstanceForType() { - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.TaskNode build() { - flyteidl.core.Workflow.TaskNode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.TaskNode buildPartial() { - flyteidl.core.Workflow.TaskNode result = new flyteidl.core.Workflow.TaskNode(this); - if (referenceCase_ == 1) { - if (referenceIdBuilder_ == null) { - result.reference_ = reference_; - } else { - result.reference_ = referenceIdBuilder_.build(); - } - } - result.referenceCase_ = referenceCase_; - 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 flyteidl.core.Workflow.TaskNode) { - return mergeFrom((flyteidl.core.Workflow.TaskNode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.TaskNode other) { - if (other == flyteidl.core.Workflow.TaskNode.getDefaultInstance()) return this; - switch (other.getReferenceCase()) { - case REFERENCE_ID: { - mergeReferenceId(other.getReferenceId()); - break; - } - case REFERENCE_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 { - flyteidl.core.Workflow.TaskNode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.TaskNode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int referenceCase_ = 0; - private java.lang.Object reference_; - public ReferenceCase - getReferenceCase() { - return ReferenceCase.forNumber( - referenceCase_); - } - - public Builder clearReference() { - referenceCase_ = 0; - reference_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> referenceIdBuilder_; - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public boolean hasReferenceId() { - return referenceCase_ == 1; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { - if (referenceIdBuilder_ == null) { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } else { - if (referenceCase_ == 1) { - return referenceIdBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public Builder setReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (referenceIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - } else { - referenceIdBuilder_.setMessage(value); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public Builder setReferenceId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (referenceIdBuilder_ == null) { - reference_ = builderForValue.build(); - onChanged(); - } else { - referenceIdBuilder_.setMessage(builderForValue.build()); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public Builder mergeReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (referenceIdBuilder_ == null) { - if (referenceCase_ == 1 && - reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) - .mergeFrom(value).buildPartial(); - } else { - reference_ = value; - } - onChanged(); - } else { - if (referenceCase_ == 1) { - referenceIdBuilder_.mergeFrom(value); - } - referenceIdBuilder_.setMessage(value); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public Builder clearReferenceId() { - if (referenceIdBuilder_ == null) { - if (referenceCase_ == 1) { - referenceCase_ = 0; - reference_ = null; - onChanged(); - } - } else { - if (referenceCase_ == 1) { - referenceCase_ = 0; - reference_ = null; - } - referenceIdBuilder_.clear(); - } - return this; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getReferenceIdBuilder() { - return getReferenceIdFieldBuilder().getBuilder(); - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { - if ((referenceCase_ == 1) && (referenceIdBuilder_ != null)) { - return referenceIdBuilder_.getMessageOrBuilder(); - } else { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getReferenceIdFieldBuilder() { - if (referenceIdBuilder_ == null) { - if (!(referenceCase_ == 1)) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - referenceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.Identifier) reference_, - getParentForChildren(), - isClean()); - reference_ = null; - } - referenceCase_ = 1; - onChanged();; - return referenceIdBuilder_; - } - @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:flyteidl.core.TaskNode) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNode) - private static final flyteidl.core.Workflow.TaskNode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.TaskNode(); - } - - public static flyteidl.core.Workflow.TaskNode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskNode(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 flyteidl.core.Workflow.TaskNode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowNode) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - boolean hasLaunchplanRef(); - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef(); - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder(); - - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - boolean hasSubWorkflowRef(); - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef(); - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder(); - - public flyteidl.core.Workflow.WorkflowNode.ReferenceCase getReferenceCase(); - } - /** - *
-   * Refers to a the workflow the node is to execute.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowNode} - */ - public static final class WorkflowNode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowNode) - WorkflowNodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowNode.newBuilder() to construct. - private WorkflowNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowNode() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowNode( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (referenceCase_ == 1) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); - } - reference_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); - reference_ = subBuilder.buildPartial(); - } - referenceCase_ = 1; - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (referenceCase_ == 2) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); - } - reference_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); - reference_ = subBuilder.buildPartial(); - } - referenceCase_ = 2; - 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 flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); - } - - private int referenceCase_ = 0; - private java.lang.Object reference_; - public enum ReferenceCase - implements com.google.protobuf.Internal.EnumLite { - LAUNCHPLAN_REF(1), - SUB_WORKFLOW_REF(2), - REFERENCE_NOT_SET(0); - private final int value; - private ReferenceCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReferenceCase valueOf(int value) { - return forNumber(value); - } - - public static ReferenceCase forNumber(int value) { - switch (value) { - case 1: return LAUNCHPLAN_REF; - case 2: return SUB_WORKFLOW_REF; - case 0: return REFERENCE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReferenceCase - getReferenceCase() { - return ReferenceCase.forNumber( - referenceCase_); - } - - public static final int LAUNCHPLAN_REF_FIELD_NUMBER = 1; - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public boolean hasLaunchplanRef() { - return referenceCase_ == 1; - } - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - - public static final int SUB_WORKFLOW_REF_FIELD_NUMBER = 2; - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public boolean hasSubWorkflowRef() { - return referenceCase_ == 2; - } - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { - if (referenceCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { - if (referenceCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (referenceCase_ == 1) { - output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - if (referenceCase_ == 2) { - output.writeMessage(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (referenceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - if (referenceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - 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 flyteidl.core.Workflow.WorkflowNode)) { - return super.equals(obj); - } - flyteidl.core.Workflow.WorkflowNode other = (flyteidl.core.Workflow.WorkflowNode) obj; - - if (!getReferenceCase().equals(other.getReferenceCase())) return false; - switch (referenceCase_) { - case 1: - if (!getLaunchplanRef() - .equals(other.getLaunchplanRef())) return false; - break; - case 2: - if (!getSubWorkflowRef() - .equals(other.getSubWorkflowRef())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (referenceCase_) { - case 1: - hash = (37 * hash) + LAUNCHPLAN_REF_FIELD_NUMBER; - hash = (53 * hash) + getLaunchplanRef().hashCode(); - break; - case 2: - hash = (37 * hash) + SUB_WORKFLOW_REF_FIELD_NUMBER; - hash = (53 * hash) + getSubWorkflowRef().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowNode 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 flyteidl.core.Workflow.WorkflowNode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowNode 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 flyteidl.core.Workflow.WorkflowNode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowNode 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(flyteidl.core.Workflow.WorkflowNode 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; - } - /** - *
-     * Refers to a the workflow the node is to execute.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowNode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowNode) - flyteidl.core.Workflow.WorkflowNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); - } - - // Construct using flyteidl.core.Workflow.WorkflowNode.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(); - referenceCase_ = 0; - reference_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowNode getDefaultInstanceForType() { - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowNode build() { - flyteidl.core.Workflow.WorkflowNode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowNode buildPartial() { - flyteidl.core.Workflow.WorkflowNode result = new flyteidl.core.Workflow.WorkflowNode(this); - if (referenceCase_ == 1) { - if (launchplanRefBuilder_ == null) { - result.reference_ = reference_; - } else { - result.reference_ = launchplanRefBuilder_.build(); - } - } - if (referenceCase_ == 2) { - if (subWorkflowRefBuilder_ == null) { - result.reference_ = reference_; - } else { - result.reference_ = subWorkflowRefBuilder_.build(); - } - } - result.referenceCase_ = referenceCase_; - 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 flyteidl.core.Workflow.WorkflowNode) { - return mergeFrom((flyteidl.core.Workflow.WorkflowNode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.WorkflowNode other) { - if (other == flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) return this; - switch (other.getReferenceCase()) { - case LAUNCHPLAN_REF: { - mergeLaunchplanRef(other.getLaunchplanRef()); - break; - } - case SUB_WORKFLOW_REF: { - mergeSubWorkflowRef(other.getSubWorkflowRef()); - break; - } - case REFERENCE_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 { - flyteidl.core.Workflow.WorkflowNode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.WorkflowNode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int referenceCase_ = 0; - private java.lang.Object reference_; - public ReferenceCase - getReferenceCase() { - return ReferenceCase.forNumber( - referenceCase_); - } - - public Builder clearReference() { - referenceCase_ = 0; - reference_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchplanRefBuilder_; - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public boolean hasLaunchplanRef() { - return referenceCase_ == 1; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { - if (launchplanRefBuilder_ == null) { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } else { - if (referenceCase_ == 1) { - return launchplanRefBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public Builder setLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchplanRefBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - } else { - launchplanRefBuilder_.setMessage(value); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public Builder setLaunchplanRef( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (launchplanRefBuilder_ == null) { - reference_ = builderForValue.build(); - onChanged(); - } else { - launchplanRefBuilder_.setMessage(builderForValue.build()); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public Builder mergeLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchplanRefBuilder_ == null) { - if (referenceCase_ == 1 && - reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) - .mergeFrom(value).buildPartial(); - } else { - reference_ = value; - } - onChanged(); - } else { - if (referenceCase_ == 1) { - launchplanRefBuilder_.mergeFrom(value); - } - launchplanRefBuilder_.setMessage(value); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public Builder clearLaunchplanRef() { - if (launchplanRefBuilder_ == null) { - if (referenceCase_ == 1) { - referenceCase_ = 0; - reference_ = null; - onChanged(); - } - } else { - if (referenceCase_ == 1) { - referenceCase_ = 0; - reference_ = null; - } - launchplanRefBuilder_.clear(); - } - return this; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchplanRefBuilder() { - return getLaunchplanRefFieldBuilder().getBuilder(); - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { - if ((referenceCase_ == 1) && (launchplanRefBuilder_ != null)) { - return launchplanRefBuilder_.getMessageOrBuilder(); - } else { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getLaunchplanRefFieldBuilder() { - if (launchplanRefBuilder_ == null) { - if (!(referenceCase_ == 1)) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - launchplanRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.Identifier) reference_, - getParentForChildren(), - isClean()); - reference_ = null; - } - referenceCase_ = 1; - onChanged();; - return launchplanRefBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> subWorkflowRefBuilder_; - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public boolean hasSubWorkflowRef() { - return referenceCase_ == 2; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { - if (subWorkflowRefBuilder_ == null) { - if (referenceCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } else { - if (referenceCase_ == 2) { - return subWorkflowRefBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public Builder setSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (subWorkflowRefBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - } else { - subWorkflowRefBuilder_.setMessage(value); - } - referenceCase_ = 2; - return this; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public Builder setSubWorkflowRef( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (subWorkflowRefBuilder_ == null) { - reference_ = builderForValue.build(); - onChanged(); - } else { - subWorkflowRefBuilder_.setMessage(builderForValue.build()); - } - referenceCase_ = 2; - return this; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public Builder mergeSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (subWorkflowRefBuilder_ == null) { - if (referenceCase_ == 2 && - reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) - .mergeFrom(value).buildPartial(); - } else { - reference_ = value; - } - onChanged(); - } else { - if (referenceCase_ == 2) { - subWorkflowRefBuilder_.mergeFrom(value); - } - subWorkflowRefBuilder_.setMessage(value); - } - referenceCase_ = 2; - return this; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public Builder clearSubWorkflowRef() { - if (subWorkflowRefBuilder_ == null) { - if (referenceCase_ == 2) { - referenceCase_ = 0; - reference_ = null; - onChanged(); - } - } else { - if (referenceCase_ == 2) { - referenceCase_ = 0; - reference_ = null; - } - subWorkflowRefBuilder_.clear(); - } - return this; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getSubWorkflowRefBuilder() { - return getSubWorkflowRefFieldBuilder().getBuilder(); - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { - if ((referenceCase_ == 2) && (subWorkflowRefBuilder_ != null)) { - return subWorkflowRefBuilder_.getMessageOrBuilder(); - } else { - if (referenceCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getSubWorkflowRefFieldBuilder() { - if (subWorkflowRefBuilder_ == null) { - if (!(referenceCase_ == 2)) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - subWorkflowRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.Identifier) reference_, - getParentForChildren(), - isClean()); - reference_ = null; - } - referenceCase_ = 2; - onChanged();; - return subWorkflowRefBuilder_; - } - @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:flyteidl.core.WorkflowNode) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowNode) - private static final flyteidl.core.Workflow.WorkflowNode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowNode(); - } - - public static flyteidl.core.Workflow.WorkflowNode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowNode(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 flyteidl.core.Workflow.WorkflowNode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A friendly name for the Node
-     * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-     * A friendly name for the Node
-     * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - boolean hasTimeout(); - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - com.google.protobuf.Duration getTimeout(); - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); - - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - boolean hasRetries(); - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - flyteidl.core.Literals.RetryStrategy getRetries(); - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); - - /** - * bool interruptible = 6; - */ - boolean getInterruptible(); - - public flyteidl.core.Workflow.NodeMetadata.InterruptibleValueCase getInterruptibleValueCase(); - } - /** - *
-   * Defines extra information about the Node.
-   * 
- * - * Protobuf type {@code flyteidl.core.NodeMetadata} - */ - public static final class NodeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.NodeMetadata) - NodeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeMetadata.newBuilder() to construct. - private NodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeMetadata() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeMetadata( - 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 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeout_ != null) { - subBuilder = timeout_.toBuilder(); - } - timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeout_); - timeout_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; - if (retries_ != null) { - subBuilder = retries_.toBuilder(); - } - retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retries_); - retries_ = subBuilder.buildPartial(); - } - - break; - } - case 48: { - interruptibleValueCase_ = 6; - interruptibleValue_ = input.readBool(); - 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 flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); - } - - private int interruptibleValueCase_ = 0; - private java.lang.Object interruptibleValue_; - public enum InterruptibleValueCase - implements com.google.protobuf.Internal.EnumLite { - INTERRUPTIBLE(6), - INTERRUPTIBLEVALUE_NOT_SET(0); - private final int value; - private InterruptibleValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InterruptibleValueCase valueOf(int value) { - return forNumber(value); - } - - public static InterruptibleValueCase forNumber(int value) { - switch (value) { - case 6: return INTERRUPTIBLE; - case 0: return INTERRUPTIBLEVALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public InterruptibleValueCase - getInterruptibleValueCase() { - return InterruptibleValueCase.forNumber( - interruptibleValueCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * A friendly name for the Node
-     * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-     * A friendly name for the Node
-     * 
- * - * string name = 1; - */ - 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 TIMEOUT_FIELD_NUMBER = 4; - private com.google.protobuf.Duration timeout_; - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public boolean hasTimeout() { - return timeout_ != null; - } - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration getTimeout() { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - return getTimeout(); - } - - public static final int RETRIES_FIELD_NUMBER = 5; - private flyteidl.core.Literals.RetryStrategy retries_; - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public boolean hasRetries() { - return retries_ != null; - } - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy getRetries() { - return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { - return getRetries(); - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 6; - /** - * bool interruptible = 6; - */ - public boolean getInterruptible() { - if (interruptibleValueCase_ == 6) { - return (java.lang.Boolean) interruptibleValue_; - } - return false; - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (timeout_ != null) { - output.writeMessage(4, getTimeout()); - } - if (retries_ != null) { - output.writeMessage(5, getRetries()); - } - if (interruptibleValueCase_ == 6) { - output.writeBool( - 6, (boolean)((java.lang.Boolean) interruptibleValue_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTimeout()); - } - if (retries_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getRetries()); - } - if (interruptibleValueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 6, (boolean)((java.lang.Boolean) interruptibleValue_)); - } - 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 flyteidl.core.Workflow.NodeMetadata)) { - return super.equals(obj); - } - flyteidl.core.Workflow.NodeMetadata other = (flyteidl.core.Workflow.NodeMetadata) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasTimeout() != other.hasTimeout()) return false; - if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; - } - if (hasRetries() != other.hasRetries()) return false; - if (hasRetries()) { - if (!getRetries() - .equals(other.getRetries())) return false; - } - if (!getInterruptibleValueCase().equals(other.getInterruptibleValueCase())) return false; - switch (interruptibleValueCase_) { - case 6: - if (getInterruptible() - != other.getInterruptible()) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasTimeout()) { - hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getTimeout().hashCode(); - } - if (hasRetries()) { - hash = (37 * hash) + RETRIES_FIELD_NUMBER; - hash = (53 * hash) + getRetries().hashCode(); - } - switch (interruptibleValueCase_) { - case 6: - hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterruptible()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.NodeMetadata 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 flyteidl.core.Workflow.NodeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.NodeMetadata 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 flyteidl.core.Workflow.NodeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.NodeMetadata 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(flyteidl.core.Workflow.NodeMetadata 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; - } - /** - *
-     * Defines extra information about the Node.
-     * 
- * - * Protobuf type {@code flyteidl.core.NodeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeMetadata) - flyteidl.core.Workflow.NodeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); - } - - // Construct using flyteidl.core.Workflow.NodeMetadata.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_ = ""; - - if (timeoutBuilder_ == null) { - timeout_ = null; - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - if (retriesBuilder_ == null) { - retries_ = null; - } else { - retries_ = null; - retriesBuilder_ = null; - } - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.NodeMetadata getDefaultInstanceForType() { - return flyteidl.core.Workflow.NodeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.NodeMetadata build() { - flyteidl.core.Workflow.NodeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.NodeMetadata buildPartial() { - flyteidl.core.Workflow.NodeMetadata result = new flyteidl.core.Workflow.NodeMetadata(this); - result.name_ = name_; - if (timeoutBuilder_ == null) { - result.timeout_ = timeout_; - } else { - result.timeout_ = timeoutBuilder_.build(); - } - if (retriesBuilder_ == null) { - result.retries_ = retries_; - } else { - result.retries_ = retriesBuilder_.build(); - } - if (interruptibleValueCase_ == 6) { - result.interruptibleValue_ = interruptibleValue_; - } - result.interruptibleValueCase_ = interruptibleValueCase_; - 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 flyteidl.core.Workflow.NodeMetadata) { - return mergeFrom((flyteidl.core.Workflow.NodeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.NodeMetadata other) { - if (other == flyteidl.core.Workflow.NodeMetadata.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasTimeout()) { - mergeTimeout(other.getTimeout()); - } - if (other.hasRetries()) { - mergeRetries(other.getRetries()); - } - switch (other.getInterruptibleValueCase()) { - case INTERRUPTIBLE: { - setInterruptible(other.getInterruptible()); - break; - } - case INTERRUPTIBLEVALUE_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 { - flyteidl.core.Workflow.NodeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.NodeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int interruptibleValueCase_ = 0; - private java.lang.Object interruptibleValue_; - public InterruptibleValueCase - getInterruptibleValueCase() { - return InterruptibleValueCase.forNumber( - interruptibleValueCase_); - } - - public Builder clearInterruptibleValue() { - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - onChanged(); - return this; - } - - - private java.lang.Object name_ = ""; - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - 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.Duration timeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public boolean hasTimeout() { - return timeoutBuilder_ != null || timeout_ != null; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration getTimeout() { - if (timeoutBuilder_ == null) { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } else { - return timeoutBuilder_.getMessage(); - } - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder setTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timeout_ = value; - onChanged(); - } else { - timeoutBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder setTimeout( - com.google.protobuf.Duration.Builder builderForValue) { - if (timeoutBuilder_ == null) { - timeout_ = builderForValue.build(); - onChanged(); - } else { - timeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder mergeTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (timeout_ != null) { - timeout_ = - com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); - } else { - timeout_ = value; - } - onChanged(); - } else { - timeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder clearTimeout() { - if (timeoutBuilder_ == null) { - timeout_ = null; - onChanged(); - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - - return this; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - - onChanged(); - return getTimeoutFieldBuilder().getBuilder(); - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - if (timeoutBuilder_ != null) { - return timeoutBuilder_.getMessageOrBuilder(); - } else { - return timeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getTimeoutFieldBuilder() { - if (timeoutBuilder_ == null) { - timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTimeout(), - getParentForChildren(), - isClean()); - timeout_ = null; - } - return timeoutBuilder_; - } - - private flyteidl.core.Literals.RetryStrategy retries_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public boolean hasRetries() { - return retriesBuilder_ != null || retries_ != null; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy getRetries() { - if (retriesBuilder_ == null) { - return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } else { - return retriesBuilder_.getMessage(); - } - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { - if (retriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - retries_ = value; - onChanged(); - } else { - retriesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder setRetries( - flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { - if (retriesBuilder_ == null) { - retries_ = builderForValue.build(); - onChanged(); - } else { - retriesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { - if (retriesBuilder_ == null) { - if (retries_ != null) { - retries_ = - flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); - } else { - retries_ = value; - } - onChanged(); - } else { - retriesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder clearRetries() { - if (retriesBuilder_ == null) { - retries_ = null; - onChanged(); - } else { - retries_ = null; - retriesBuilder_ = null; - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { - - onChanged(); - return getRetriesFieldBuilder().getBuilder(); - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { - if (retriesBuilder_ != null) { - return retriesBuilder_.getMessageOrBuilder(); - } else { - return retries_ == null ? - flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> - getRetriesFieldBuilder() { - if (retriesBuilder_ == null) { - retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( - getRetries(), - getParentForChildren(), - isClean()); - retries_ = null; - } - return retriesBuilder_; - } - - /** - * bool interruptible = 6; - */ - public boolean getInterruptible() { - if (interruptibleValueCase_ == 6) { - return (java.lang.Boolean) interruptibleValue_; - } - return false; - } - /** - * bool interruptible = 6; - */ - public Builder setInterruptible(boolean value) { - interruptibleValueCase_ = 6; - interruptibleValue_ = value; - onChanged(); - return this; - } - /** - * bool interruptible = 6; - */ - public Builder clearInterruptible() { - if (interruptibleValueCase_ == 6) { - interruptibleValueCase_ = 0; - interruptibleValue_ = 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:flyteidl.core.NodeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.NodeMetadata) - private static final flyteidl.core.Workflow.NodeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.NodeMetadata(); - } - - public static flyteidl.core.Workflow.NodeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeMetadata(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 flyteidl.core.Workflow.NodeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AliasOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Alias) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Must match one of the output variable names on a node.
-     * 
- * - * string var = 1; - */ - java.lang.String getVar(); - /** - *
-     * Must match one of the output variable names on a node.
-     * 
- * - * string var = 1; - */ - com.google.protobuf.ByteString - getVarBytes(); - - /** - *
-     * A workflow-level unique alias that downstream nodes can refer to in their input.
-     * 
- * - * string alias = 2; - */ - java.lang.String getAlias(); - /** - *
-     * A workflow-level unique alias that downstream nodes can refer to in their input.
-     * 
- * - * string alias = 2; - */ - com.google.protobuf.ByteString - getAliasBytes(); - } - /** - *
-   * Links a variable to an alias.
-   * 
- * - * Protobuf type {@code flyteidl.core.Alias} - */ - public static final class Alias extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Alias) - AliasOrBuilder { - private static final long serialVersionUID = 0L; - // Use Alias.newBuilder() to construct. - private Alias(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Alias() { - var_ = ""; - alias_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Alias( - 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(); - - var_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - alias_ = 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 flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); - } - - public static final int VAR_FIELD_NUMBER = 1; - private volatile java.lang.Object var_; - /** - *
-     * Must match one of the output variable names on a node.
-     * 
- * - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - 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(); - var_ = s; - return s; - } - } - /** - *
-     * Must match one of the output variable names on a node.
-     * 
- * - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALIAS_FIELD_NUMBER = 2; - private volatile java.lang.Object alias_; - /** - *
-     * A workflow-level unique alias that downstream nodes can refer to in their input.
-     * 
- * - * string alias = 2; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - 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(); - alias_ = s; - return s; - } - } - /** - *
-     * A workflow-level unique alias that downstream nodes can refer to in their input.
-     * 
- * - * string alias = 2; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = 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 (!getVarBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); - } - if (!getAliasBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alias_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getVarBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); - } - if (!getAliasBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alias_); - } - 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 flyteidl.core.Workflow.Alias)) { - return super.equals(obj); - } - flyteidl.core.Workflow.Alias other = (flyteidl.core.Workflow.Alias) obj; - - if (!getVar() - .equals(other.getVar())) return false; - if (!getAlias() - .equals(other.getAlias())) 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) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - hash = (37 * hash) + ALIAS_FIELD_NUMBER; - hash = (53 * hash) + getAlias().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.Alias parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Alias parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Alias parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Alias parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Alias parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Alias parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Alias parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Alias 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 flyteidl.core.Workflow.Alias parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Alias 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 flyteidl.core.Workflow.Alias parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Alias 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(flyteidl.core.Workflow.Alias 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; - } - /** - *
-     * Links a variable to an alias.
-     * 
- * - * Protobuf type {@code flyteidl.core.Alias} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Alias) - flyteidl.core.Workflow.AliasOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); - } - - // Construct using flyteidl.core.Workflow.Alias.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(); - var_ = ""; - - alias_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.Alias getDefaultInstanceForType() { - return flyteidl.core.Workflow.Alias.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.Alias build() { - flyteidl.core.Workflow.Alias result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.Alias buildPartial() { - flyteidl.core.Workflow.Alias result = new flyteidl.core.Workflow.Alias(this); - result.var_ = var_; - result.alias_ = alias_; - 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 flyteidl.core.Workflow.Alias) { - return mergeFrom((flyteidl.core.Workflow.Alias)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.Alias other) { - if (other == flyteidl.core.Workflow.Alias.getDefaultInstance()) return this; - if (!other.getVar().isEmpty()) { - var_ = other.var_; - onChanged(); - } - if (!other.getAlias().isEmpty()) { - alias_ = other.alias_; - 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 { - flyteidl.core.Workflow.Alias parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.Alias) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object var_ = ""; - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public Builder setVar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - var_ = value; - onChanged(); - return this; - } - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public Builder clearVar() { - - var_ = getDefaultInstance().getVar(); - onChanged(); - return this; - } - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public Builder setVarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - var_ = value; - onChanged(); - return this; - } - - private java.lang.Object alias_ = ""; - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public Builder setAlias( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - alias_ = value; - onChanged(); - return this; - } - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public Builder clearAlias() { - - alias_ = getDefaultInstance().getAlias(); - onChanged(); - return this; - } - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public Builder setAliasBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - alias_ = 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:flyteidl.core.Alias) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Alias) - private static final flyteidl.core.Workflow.Alias DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.Alias(); - } - - public static flyteidl.core.Workflow.Alias getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Alias parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Alias(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 flyteidl.core.Workflow.Alias getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Node) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-     * node ids that cannot be used by other nodes.
-     * 
- * - * string id = 1; - */ - java.lang.String getId(); - /** - *
-     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-     * node ids that cannot be used by other nodes.
-     * 
- * - * string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - boolean hasMetadata(); - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - flyteidl.core.Workflow.NodeMetadata getMetadata(); - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - java.util.List - getInputsList(); - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - flyteidl.core.Literals.Binding getInputs(int index); - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - int getInputsCount(); - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - java.util.List - getInputsOrBuilderList(); - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( - int index); - - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - java.util.List - getUpstreamNodeIdsList(); - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - int getUpstreamNodeIdsCount(); - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - java.lang.String getUpstreamNodeIds(int index); - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - com.google.protobuf.ByteString - getUpstreamNodeIdsBytes(int index); - - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - java.util.List - getOutputAliasesList(); - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - flyteidl.core.Workflow.Alias getOutputAliases(int index); - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - int getOutputAliasesCount(); - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - java.util.List - getOutputAliasesOrBuilderList(); - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( - int index); - - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - boolean hasTaskNode(); - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - flyteidl.core.Workflow.TaskNode getTaskNode(); - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder(); - - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - boolean hasWorkflowNode(); - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - flyteidl.core.Workflow.WorkflowNode getWorkflowNode(); - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder(); - - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - boolean hasBranchNode(); - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - flyteidl.core.Workflow.BranchNode getBranchNode(); - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder(); - - public flyteidl.core.Workflow.Node.TargetCase getTargetCase(); - } - /** - *
-   * A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
-   * node.
-   * 
- * - * Protobuf type {@code flyteidl.core.Node} - */ - public static final class Node extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Node) - NodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use Node.newBuilder() to construct. - private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Node() { - id_ = ""; - inputs_ = java.util.Collections.emptyList(); - upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - outputAliases_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Node( - 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: { - flyteidl.core.Workflow.NodeMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Workflow.NodeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - inputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - inputs_.add( - input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - upstreamNodeIds_.add(s); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - outputAliases_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - outputAliases_.add( - input.readMessage(flyteidl.core.Workflow.Alias.parser(), extensionRegistry)); - break; - } - case 50: { - flyteidl.core.Workflow.TaskNode.Builder subBuilder = null; - if (targetCase_ == 6) { - subBuilder = ((flyteidl.core.Workflow.TaskNode) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Workflow.TaskNode.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.TaskNode) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 6; - break; - } - case 58: { - flyteidl.core.Workflow.WorkflowNode.Builder subBuilder = null; - if (targetCase_ == 7) { - subBuilder = ((flyteidl.core.Workflow.WorkflowNode) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Workflow.WorkflowNode.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.WorkflowNode) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 7; - break; - } - case 66: { - flyteidl.core.Workflow.BranchNode.Builder subBuilder = null; - if (targetCase_ == 8) { - subBuilder = ((flyteidl.core.Workflow.BranchNode) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Workflow.BranchNode.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.BranchNode) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 8; - 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_ & 0x00000004) != 0)) { - inputs_ = java.util.Collections.unmodifiableList(inputs_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); - } - - private int bitField0_; - private int targetCase_ = 0; - private java.lang.Object target_; - public enum TargetCase - implements com.google.protobuf.Internal.EnumLite { - TASK_NODE(6), - WORKFLOW_NODE(7), - BRANCH_NODE(8), - TARGET_NOT_SET(0); - private final int value; - private TargetCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetCase valueOf(int value) { - return forNumber(value); - } - - public static TargetCase forNumber(int value) { - switch (value) { - case 6: return TASK_NODE; - case 7: return WORKFLOW_NODE; - case 8: return BRANCH_NODE; - case 0: return TARGET_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-     * node ids that cannot be used by other nodes.
-     * 
- * - * string id = 1; - */ - 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; - } - } - /** - *
-     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-     * node ids that cannot be used by other nodes.
-     * 
- * - * string id = 1; - */ - 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 METADATA_FIELD_NUMBER = 2; - private flyteidl.core.Workflow.NodeMetadata metadata_; - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int INPUTS_FIELD_NUMBER = 3; - private java.util.List inputs_; - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List getInputsList() { - return inputs_; - } - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List - getInputsOrBuilderList() { - return inputs_; - } - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public int getInputsCount() { - return inputs_.size(); - } - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding getInputs(int index) { - return inputs_.get(index); - } - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fullfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( - int index) { - return inputs_.get(index); - } - - public static final int UPSTREAM_NODE_IDS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList upstreamNodeIds_; - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - public com.google.protobuf.ProtocolStringList - getUpstreamNodeIdsList() { - return upstreamNodeIds_; - } - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - public int getUpstreamNodeIdsCount() { - return upstreamNodeIds_.size(); - } - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - public java.lang.String getUpstreamNodeIds(int index) { - return upstreamNodeIds_.get(index); - } - /** - *
-     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - public com.google.protobuf.ByteString - getUpstreamNodeIdsBytes(int index) { - return upstreamNodeIds_.getByteString(index); - } - - public static final int OUTPUT_ALIASES_FIELD_NUMBER = 5; - private java.util.List outputAliases_; - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List getOutputAliasesList() { - return outputAliases_; - } - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List - getOutputAliasesOrBuilderList() { - return outputAliases_; - } - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public int getOutputAliasesCount() { - return outputAliases_.size(); - } - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias getOutputAliases(int index) { - return outputAliases_.get(index); - } - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( - int index) { - return outputAliases_.get(index); - } - - public static final int TASK_NODE_FIELD_NUMBER = 6; - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public boolean hasTaskNode() { - return targetCase_ == 6; - } - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNode getTaskNode() { - if (targetCase_ == 6) { - return (flyteidl.core.Workflow.TaskNode) target_; - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { - if (targetCase_ == 6) { - return (flyteidl.core.Workflow.TaskNode) target_; - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - - public static final int WORKFLOW_NODE_FIELD_NUMBER = 7; - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public boolean hasWorkflowNode() { - return targetCase_ == 7; - } - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { - if (targetCase_ == 7) { - return (flyteidl.core.Workflow.WorkflowNode) target_; - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { - if (targetCase_ == 7) { - return (flyteidl.core.Workflow.WorkflowNode) target_; - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - - public static final int BRANCH_NODE_FIELD_NUMBER = 8; - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public boolean hasBranchNode() { - return targetCase_ == 8; - } - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNode getBranchNode() { - if (targetCase_ == 8) { - return (flyteidl.core.Workflow.BranchNode) target_; - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { - if (targetCase_ == 8) { - return (flyteidl.core.Workflow.BranchNode) target_; - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (metadata_ != null) { - output.writeMessage(2, getMetadata()); - } - for (int i = 0; i < inputs_.size(); i++) { - output.writeMessage(3, inputs_.get(i)); - } - for (int i = 0; i < upstreamNodeIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, upstreamNodeIds_.getRaw(i)); - } - for (int i = 0; i < outputAliases_.size(); i++) { - output.writeMessage(5, outputAliases_.get(i)); - } - if (targetCase_ == 6) { - output.writeMessage(6, (flyteidl.core.Workflow.TaskNode) target_); - } - if (targetCase_ == 7) { - output.writeMessage(7, (flyteidl.core.Workflow.WorkflowNode) target_); - } - if (targetCase_ == 8) { - output.writeMessage(8, (flyteidl.core.Workflow.BranchNode) target_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMetadata()); - } - for (int i = 0; i < inputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, inputs_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < upstreamNodeIds_.size(); i++) { - dataSize += computeStringSizeNoTag(upstreamNodeIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getUpstreamNodeIdsList().size(); - } - for (int i = 0; i < outputAliases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, outputAliases_.get(i)); - } - if (targetCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (flyteidl.core.Workflow.TaskNode) target_); - } - if (targetCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (flyteidl.core.Workflow.WorkflowNode) target_); - } - if (targetCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (flyteidl.core.Workflow.BranchNode) target_); - } - 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 flyteidl.core.Workflow.Node)) { - return super.equals(obj); - } - flyteidl.core.Workflow.Node other = (flyteidl.core.Workflow.Node) obj; - - if (!getId() - .equals(other.getId())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!getInputsList() - .equals(other.getInputsList())) return false; - if (!getUpstreamNodeIdsList() - .equals(other.getUpstreamNodeIdsList())) return false; - if (!getOutputAliasesList() - .equals(other.getOutputAliasesList())) return false; - if (!getTargetCase().equals(other.getTargetCase())) return false; - switch (targetCase_) { - case 6: - if (!getTaskNode() - .equals(other.getTaskNode())) return false; - break; - case 7: - if (!getWorkflowNode() - .equals(other.getWorkflowNode())) return false; - break; - case 8: - if (!getBranchNode() - .equals(other.getBranchNode())) 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) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (getInputsCount() > 0) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputsList().hashCode(); - } - if (getUpstreamNodeIdsCount() > 0) { - hash = (37 * hash) + UPSTREAM_NODE_IDS_FIELD_NUMBER; - hash = (53 * hash) + getUpstreamNodeIdsList().hashCode(); - } - if (getOutputAliasesCount() > 0) { - hash = (37 * hash) + OUTPUT_ALIASES_FIELD_NUMBER; - hash = (53 * hash) + getOutputAliasesList().hashCode(); - } - switch (targetCase_) { - case 6: - hash = (37 * hash) + TASK_NODE_FIELD_NUMBER; - hash = (53 * hash) + getTaskNode().hashCode(); - break; - case 7: - hash = (37 * hash) + WORKFLOW_NODE_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowNode().hashCode(); - break; - case 8: - hash = (37 * hash) + BRANCH_NODE_FIELD_NUMBER; - hash = (53 * hash) + getBranchNode().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.Node parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Node parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Node parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Node parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Node parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Node parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Node parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Node 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 flyteidl.core.Workflow.Node parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Node 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 flyteidl.core.Workflow.Node parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Node 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(flyteidl.core.Workflow.Node 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 Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
-     * node.
-     * 
- * - * Protobuf type {@code flyteidl.core.Node} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Node) - flyteidl.core.Workflow.NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); - } - - // Construct using flyteidl.core.Workflow.Node.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInputsFieldBuilder(); - getOutputAliasesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - inputsBuilder_.clear(); - } - upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - if (outputAliasesBuilder_ == null) { - outputAliases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - outputAliasesBuilder_.clear(); - } - targetCase_ = 0; - target_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.Node getDefaultInstanceForType() { - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.Node build() { - flyteidl.core.Workflow.Node result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.Node buildPartial() { - flyteidl.core.Workflow.Node result = new flyteidl.core.Workflow.Node(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.id_ = id_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (inputsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - inputs_ = java.util.Collections.unmodifiableList(inputs_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (((bitField0_ & 0x00000008) != 0)) { - upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.upstreamNodeIds_ = upstreamNodeIds_; - if (outputAliasesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.outputAliases_ = outputAliases_; - } else { - result.outputAliases_ = outputAliasesBuilder_.build(); - } - if (targetCase_ == 6) { - if (taskNodeBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = taskNodeBuilder_.build(); - } - } - if (targetCase_ == 7) { - if (workflowNodeBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = workflowNodeBuilder_.build(); - } - } - if (targetCase_ == 8) { - if (branchNodeBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = branchNodeBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.targetCase_ = targetCase_; - 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 flyteidl.core.Workflow.Node) { - return mergeFrom((flyteidl.core.Workflow.Node)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.Node other) { - if (other == flyteidl.core.Workflow.Node.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (inputsBuilder_ == null) { - if (!other.inputs_.isEmpty()) { - if (inputs_.isEmpty()) { - inputs_ = other.inputs_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureInputsIsMutable(); - inputs_.addAll(other.inputs_); - } - onChanged(); - } - } else { - if (!other.inputs_.isEmpty()) { - if (inputsBuilder_.isEmpty()) { - inputsBuilder_.dispose(); - inputsBuilder_ = null; - inputs_ = other.inputs_; - bitField0_ = (bitField0_ & ~0x00000004); - inputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputsFieldBuilder() : null; - } else { - inputsBuilder_.addAllMessages(other.inputs_); - } - } - } - if (!other.upstreamNodeIds_.isEmpty()) { - if (upstreamNodeIds_.isEmpty()) { - upstreamNodeIds_ = other.upstreamNodeIds_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureUpstreamNodeIdsIsMutable(); - upstreamNodeIds_.addAll(other.upstreamNodeIds_); - } - onChanged(); - } - if (outputAliasesBuilder_ == null) { - if (!other.outputAliases_.isEmpty()) { - if (outputAliases_.isEmpty()) { - outputAliases_ = other.outputAliases_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureOutputAliasesIsMutable(); - outputAliases_.addAll(other.outputAliases_); - } - onChanged(); - } - } else { - if (!other.outputAliases_.isEmpty()) { - if (outputAliasesBuilder_.isEmpty()) { - outputAliasesBuilder_.dispose(); - outputAliasesBuilder_ = null; - outputAliases_ = other.outputAliases_; - bitField0_ = (bitField0_ & ~0x00000010); - outputAliasesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutputAliasesFieldBuilder() : null; - } else { - outputAliasesBuilder_.addAllMessages(other.outputAliases_); - } - } - } - switch (other.getTargetCase()) { - case TASK_NODE: { - mergeTaskNode(other.getTaskNode()); - break; - } - case WORKFLOW_NODE: { - mergeWorkflowNode(other.getWorkflowNode()); - break; - } - case BRANCH_NODE: { - mergeBranchNode(other.getBranchNode()); - break; - } - case TARGET_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 { - flyteidl.core.Workflow.Node parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.Node) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int targetCase_ = 0; - private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public Builder clearTarget() { - targetCase_ = 0; - target_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - 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; - } - } - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - 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; - } - } - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Workflow.NodeMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public Builder setMetadata(flyteidl.core.Workflow.NodeMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public Builder setMetadata( - flyteidl.core.Workflow.NodeMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public Builder mergeMetadata(flyteidl.core.Workflow.NodeMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Workflow.NodeMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private java.util.List inputs_ = - java.util.Collections.emptyList(); - private void ensureInputsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - inputs_ = new java.util.ArrayList(inputs_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> inputsBuilder_; - - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List getInputsList() { - if (inputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(inputs_); - } else { - return inputsBuilder_.getMessageList(); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public int getInputsCount() { - if (inputsBuilder_ == null) { - return inputs_.size(); - } else { - return inputsBuilder_.getCount(); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding getInputs(int index) { - if (inputsBuilder_ == null) { - return inputs_.get(index); - } else { - return inputsBuilder_.getMessage(index); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder setInputs( - int index, flyteidl.core.Literals.Binding value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.set(index, value); - onChanged(); - } else { - inputsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder setInputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.set(index, builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addInputs(flyteidl.core.Literals.Binding value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.add(value); - onChanged(); - } else { - inputsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addInputs( - int index, flyteidl.core.Literals.Binding value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.add(index, value); - onChanged(); - } else { - inputsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addInputs( - flyteidl.core.Literals.Binding.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.add(builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addInputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.add(index, builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addAllInputs( - java.lang.Iterable values) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputs_); - onChanged(); - } else { - inputsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - inputsBuilder_.clear(); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder removeInputs(int index) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.remove(index); - onChanged(); - } else { - inputsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder getInputsBuilder( - int index) { - return getInputsFieldBuilder().getBuilder(index); - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( - int index) { - if (inputsBuilder_ == null) { - return inputs_.get(index); } else { - return inputsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List - getInputsOrBuilderList() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(inputs_); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder addInputsBuilder() { - return getInputsFieldBuilder().addBuilder( - flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder addInputsBuilder( - int index) { - return getInputsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fullfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List - getInputsBuilderList() { - return getInputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( - inputs_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private com.google.protobuf.LazyStringList upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureUpstreamNodeIdsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(upstreamNodeIds_); - bitField0_ |= 0x00000008; - } - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public com.google.protobuf.ProtocolStringList - getUpstreamNodeIdsList() { - return upstreamNodeIds_.getUnmodifiableView(); - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public int getUpstreamNodeIdsCount() { - return upstreamNodeIds_.size(); - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public java.lang.String getUpstreamNodeIds(int index) { - return upstreamNodeIds_.get(index); - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public com.google.protobuf.ByteString - getUpstreamNodeIdsBytes(int index) { - return upstreamNodeIds_.getByteString(index); - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder setUpstreamNodeIds( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUpstreamNodeIdsIsMutable(); - upstreamNodeIds_.set(index, value); - onChanged(); - return this; - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder addUpstreamNodeIds( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUpstreamNodeIdsIsMutable(); - upstreamNodeIds_.add(value); - onChanged(); - return this; - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder addAllUpstreamNodeIds( - java.lang.Iterable values) { - ensureUpstreamNodeIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, upstreamNodeIds_); - onChanged(); - return this; - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder clearUpstreamNodeIds() { - upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder addUpstreamNodeIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUpstreamNodeIdsIsMutable(); - upstreamNodeIds_.add(value); - onChanged(); - return this; - } - - private java.util.List outputAliases_ = - java.util.Collections.emptyList(); - private void ensureOutputAliasesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - outputAliases_ = new java.util.ArrayList(outputAliases_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> outputAliasesBuilder_; - - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List getOutputAliasesList() { - if (outputAliasesBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputAliases_); - } else { - return outputAliasesBuilder_.getMessageList(); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public int getOutputAliasesCount() { - if (outputAliasesBuilder_ == null) { - return outputAliases_.size(); - } else { - return outputAliasesBuilder_.getCount(); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias getOutputAliases(int index) { - if (outputAliasesBuilder_ == null) { - return outputAliases_.get(index); - } else { - return outputAliasesBuilder_.getMessage(index); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder setOutputAliases( - int index, flyteidl.core.Workflow.Alias value) { - if (outputAliasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputAliasesIsMutable(); - outputAliases_.set(index, value); - onChanged(); - } else { - outputAliasesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder setOutputAliases( - int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - outputAliases_.set(index, builderForValue.build()); - onChanged(); - } else { - outputAliasesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addOutputAliases(flyteidl.core.Workflow.Alias value) { - if (outputAliasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputAliasesIsMutable(); - outputAliases_.add(value); - onChanged(); - } else { - outputAliasesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addOutputAliases( - int index, flyteidl.core.Workflow.Alias value) { - if (outputAliasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputAliasesIsMutable(); - outputAliases_.add(index, value); - onChanged(); - } else { - outputAliasesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addOutputAliases( - flyteidl.core.Workflow.Alias.Builder builderForValue) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - outputAliases_.add(builderForValue.build()); - onChanged(); - } else { - outputAliasesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addOutputAliases( - int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - outputAliases_.add(index, builderForValue.build()); - onChanged(); - } else { - outputAliasesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addAllOutputAliases( - java.lang.Iterable values) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputAliases_); - onChanged(); - } else { - outputAliasesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder clearOutputAliases() { - if (outputAliasesBuilder_ == null) { - outputAliases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - outputAliasesBuilder_.clear(); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder removeOutputAliases(int index) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - outputAliases_.remove(index); - onChanged(); - } else { - outputAliasesBuilder_.remove(index); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias.Builder getOutputAliasesBuilder( - int index) { - return getOutputAliasesFieldBuilder().getBuilder(index); - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( - int index) { - if (outputAliasesBuilder_ == null) { - return outputAliases_.get(index); } else { - return outputAliasesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List - getOutputAliasesOrBuilderList() { - if (outputAliasesBuilder_ != null) { - return outputAliasesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outputAliases_); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder() { - return getOutputAliasesFieldBuilder().addBuilder( - flyteidl.core.Workflow.Alias.getDefaultInstance()); - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder( - int index) { - return getOutputAliasesFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.Alias.getDefaultInstance()); - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List - getOutputAliasesBuilderList() { - return getOutputAliasesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> - getOutputAliasesFieldBuilder() { - if (outputAliasesBuilder_ == null) { - outputAliasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder>( - outputAliases_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - outputAliases_ = null; - } - return outputAliasesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> taskNodeBuilder_; - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public boolean hasTaskNode() { - return targetCase_ == 6; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNode getTaskNode() { - if (taskNodeBuilder_ == null) { - if (targetCase_ == 6) { - return (flyteidl.core.Workflow.TaskNode) target_; - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } else { - if (targetCase_ == 6) { - return taskNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public Builder setTaskNode(flyteidl.core.Workflow.TaskNode value) { - if (taskNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - taskNodeBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public Builder setTaskNode( - flyteidl.core.Workflow.TaskNode.Builder builderForValue) { - if (taskNodeBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - taskNodeBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 6; - return this; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public Builder mergeTaskNode(flyteidl.core.Workflow.TaskNode value) { - if (taskNodeBuilder_ == null) { - if (targetCase_ == 6 && - target_ != flyteidl.core.Workflow.TaskNode.getDefaultInstance()) { - target_ = flyteidl.core.Workflow.TaskNode.newBuilder((flyteidl.core.Workflow.TaskNode) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 6) { - taskNodeBuilder_.mergeFrom(value); - } - taskNodeBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public Builder clearTaskNode() { - if (taskNodeBuilder_ == null) { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - } - taskNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNode.Builder getTaskNodeBuilder() { - return getTaskNodeFieldBuilder().getBuilder(); - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { - if ((targetCase_ == 6) && (taskNodeBuilder_ != null)) { - return taskNodeBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 6) { - return (flyteidl.core.Workflow.TaskNode) target_; - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> - getTaskNodeFieldBuilder() { - if (taskNodeBuilder_ == null) { - if (!(targetCase_ == 6)) { - target_ = flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - taskNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder>( - (flyteidl.core.Workflow.TaskNode) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 6; - onChanged();; - return taskNodeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> workflowNodeBuilder_; - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public boolean hasWorkflowNode() { - return targetCase_ == 7; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { - if (workflowNodeBuilder_ == null) { - if (targetCase_ == 7) { - return (flyteidl.core.Workflow.WorkflowNode) target_; - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } else { - if (targetCase_ == 7) { - return workflowNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public Builder setWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { - if (workflowNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - workflowNodeBuilder_.setMessage(value); - } - targetCase_ = 7; - return this; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public Builder setWorkflowNode( - flyteidl.core.Workflow.WorkflowNode.Builder builderForValue) { - if (workflowNodeBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - workflowNodeBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 7; - return this; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public Builder mergeWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { - if (workflowNodeBuilder_ == null) { - if (targetCase_ == 7 && - target_ != flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) { - target_ = flyteidl.core.Workflow.WorkflowNode.newBuilder((flyteidl.core.Workflow.WorkflowNode) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 7) { - workflowNodeBuilder_.mergeFrom(value); - } - workflowNodeBuilder_.setMessage(value); - } - targetCase_ = 7; - return this; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public Builder clearWorkflowNode() { - if (workflowNodeBuilder_ == null) { - if (targetCase_ == 7) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 7) { - targetCase_ = 0; - target_ = null; - } - workflowNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNode.Builder getWorkflowNodeBuilder() { - return getWorkflowNodeFieldBuilder().getBuilder(); - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { - if ((targetCase_ == 7) && (workflowNodeBuilder_ != null)) { - return workflowNodeBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 7) { - return (flyteidl.core.Workflow.WorkflowNode) target_; - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> - getWorkflowNodeFieldBuilder() { - if (workflowNodeBuilder_ == null) { - if (!(targetCase_ == 7)) { - target_ = flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - workflowNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder>( - (flyteidl.core.Workflow.WorkflowNode) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 7; - onChanged();; - return workflowNodeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> branchNodeBuilder_; - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public boolean hasBranchNode() { - return targetCase_ == 8; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNode getBranchNode() { - if (branchNodeBuilder_ == null) { - if (targetCase_ == 8) { - return (flyteidl.core.Workflow.BranchNode) target_; - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } else { - if (targetCase_ == 8) { - return branchNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public Builder setBranchNode(flyteidl.core.Workflow.BranchNode value) { - if (branchNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - branchNodeBuilder_.setMessage(value); - } - targetCase_ = 8; - return this; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public Builder setBranchNode( - flyteidl.core.Workflow.BranchNode.Builder builderForValue) { - if (branchNodeBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - branchNodeBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 8; - return this; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public Builder mergeBranchNode(flyteidl.core.Workflow.BranchNode value) { - if (branchNodeBuilder_ == null) { - if (targetCase_ == 8 && - target_ != flyteidl.core.Workflow.BranchNode.getDefaultInstance()) { - target_ = flyteidl.core.Workflow.BranchNode.newBuilder((flyteidl.core.Workflow.BranchNode) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 8) { - branchNodeBuilder_.mergeFrom(value); - } - branchNodeBuilder_.setMessage(value); - } - targetCase_ = 8; - return this; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public Builder clearBranchNode() { - if (branchNodeBuilder_ == null) { - if (targetCase_ == 8) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 8) { - targetCase_ = 0; - target_ = null; - } - branchNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNode.Builder getBranchNodeBuilder() { - return getBranchNodeFieldBuilder().getBuilder(); - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { - if ((targetCase_ == 8) && (branchNodeBuilder_ != null)) { - return branchNodeBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 8) { - return (flyteidl.core.Workflow.BranchNode) target_; - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> - getBranchNodeFieldBuilder() { - if (branchNodeBuilder_ == null) { - if (!(targetCase_ == 8)) { - target_ = flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - branchNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder>( - (flyteidl.core.Workflow.BranchNode) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 8; - onChanged();; - return branchNodeBuilder_; - } - @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:flyteidl.core.Node) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Node) - private static final flyteidl.core.Workflow.Node DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.Node(); - } - - public static flyteidl.core.Workflow.Node getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Node(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 flyteidl.core.Workflow.Node getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - boolean hasQualityOfService(); - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - flyteidl.core.Execution.QualityOfService getQualityOfService(); - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); - - /** - *
-     * Defines how the system should behave when a failure is detected in the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - int getOnFailureValue(); - /** - *
-     * Defines how the system should behave when a failure is detected in the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure(); - } - /** - *
-   * Metadata for the entire workflow. Defines execution behavior that does not change the final outputs of the workflow.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowMetadata} - */ - public static final class WorkflowMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowMetadata) - WorkflowMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowMetadata.newBuilder() to construct. - private WorkflowMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowMetadata() { - onFailure_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowMetadata( - 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: { - flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; - if (qualityOfService_ != null) { - subBuilder = qualityOfService_.toBuilder(); - } - qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qualityOfService_); - qualityOfService_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - onFailure_ = rawValue; - 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 flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); - } - - /** - *
-     * Failure Handling Strategy
-     * 
- * - * Protobuf enum {@code flyteidl.core.WorkflowMetadata.OnFailurePolicy} - */ - public enum OnFailurePolicy - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically
-       * abort all currently running nodes and clean up resources before finally marking the workflow executions as
-       * failed.
-       * 
- * - * FAIL_IMMEDIATELY = 0; - */ - FAIL_IMMEDIATELY(0), - /** - *
-       * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will
-       * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run.
-       * Other nodes that will be executed to completion before cleaning up resources and marking the workflow
-       * execution as failed.
-       * 
- * - * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; - */ - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE(1), - UNRECOGNIZED(-1), - ; - - /** - *
-       * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically
-       * abort all currently running nodes and clean up resources before finally marking the workflow executions as
-       * failed.
-       * 
- * - * FAIL_IMMEDIATELY = 0; - */ - public static final int FAIL_IMMEDIATELY_VALUE = 0; - /** - *
-       * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will
-       * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run.
-       * Other nodes that will be executed to completion before cleaning up resources and marking the workflow
-       * execution as failed.
-       * 
- * - * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; - */ - public static final int FAIL_AFTER_EXECUTABLE_NODES_COMPLETE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OnFailurePolicy valueOf(int value) { - return forNumber(value); - } - - public static OnFailurePolicy forNumber(int value) { - switch (value) { - case 0: return FAIL_IMMEDIATELY; - case 1: return FAIL_AFTER_EXECUTABLE_NODES_COMPLETE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - OnFailurePolicy> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OnFailurePolicy findValueByNumber(int number) { - return OnFailurePolicy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.core.Workflow.WorkflowMetadata.getDescriptor().getEnumTypes().get(0); - } - - private static final OnFailurePolicy[] VALUES = values(); - - public static OnFailurePolicy 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 OnFailurePolicy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowMetadata.OnFailurePolicy) - } - - public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 1; - private flyteidl.core.Execution.QualityOfService qualityOfService_; - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public boolean hasQualityOfService() { - return qualityOfService_ != null; - } - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - return getQualityOfService(); - } - - public static final int ON_FAILURE_FIELD_NUMBER = 2; - private int onFailure_; - /** - *
-     * Defines how the system should behave when a failure is detected in the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public int getOnFailureValue() { - return onFailure_; - } - /** - *
-     * Defines how the system should behave when a failure is detected in the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure() { - @SuppressWarnings("deprecation") - flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy result = flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.valueOf(onFailure_); - return result == null ? flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.UNRECOGNIZED : result; - } - - 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 (qualityOfService_ != null) { - output.writeMessage(1, getQualityOfService()); - } - if (onFailure_ != flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.FAIL_IMMEDIATELY.getNumber()) { - output.writeEnum(2, onFailure_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (qualityOfService_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getQualityOfService()); - } - if (onFailure_ != flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.FAIL_IMMEDIATELY.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, onFailure_); - } - 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 flyteidl.core.Workflow.WorkflowMetadata)) { - return super.equals(obj); - } - flyteidl.core.Workflow.WorkflowMetadata other = (flyteidl.core.Workflow.WorkflowMetadata) obj; - - if (hasQualityOfService() != other.hasQualityOfService()) return false; - if (hasQualityOfService()) { - if (!getQualityOfService() - .equals(other.getQualityOfService())) return false; - } - if (onFailure_ != other.onFailure_) 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 (hasQualityOfService()) { - hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getQualityOfService().hashCode(); - } - hash = (37 * hash) + ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + onFailure_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadata 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 flyteidl.core.Workflow.WorkflowMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadata 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 flyteidl.core.Workflow.WorkflowMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadata 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(flyteidl.core.Workflow.WorkflowMetadata 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; - } - /** - *
-     * Metadata for the entire workflow. Defines execution behavior that does not change the final outputs of the workflow.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowMetadata) - flyteidl.core.Workflow.WorkflowMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); - } - - // Construct using flyteidl.core.Workflow.WorkflowMetadata.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 (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - onFailure_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { - return flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadata build() { - flyteidl.core.Workflow.WorkflowMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadata buildPartial() { - flyteidl.core.Workflow.WorkflowMetadata result = new flyteidl.core.Workflow.WorkflowMetadata(this); - if (qualityOfServiceBuilder_ == null) { - result.qualityOfService_ = qualityOfService_; - } else { - result.qualityOfService_ = qualityOfServiceBuilder_.build(); - } - result.onFailure_ = onFailure_; - 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 flyteidl.core.Workflow.WorkflowMetadata) { - return mergeFrom((flyteidl.core.Workflow.WorkflowMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.WorkflowMetadata other) { - if (other == flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance()) return this; - if (other.hasQualityOfService()) { - mergeQualityOfService(other.getQualityOfService()); - } - if (other.onFailure_ != 0) { - setOnFailureValue(other.getOnFailureValue()); - } - 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 { - flyteidl.core.Workflow.WorkflowMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.WorkflowMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Execution.QualityOfService qualityOfService_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public boolean hasQualityOfService() { - return qualityOfServiceBuilder_ != null || qualityOfService_ != null; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } else { - return qualityOfServiceBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qualityOfService_ = value; - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public Builder setQualityOfService( - flyteidl.core.Execution.QualityOfService.Builder builderForValue) { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = builderForValue.build(); - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (qualityOfService_ != null) { - qualityOfService_ = - flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); - } else { - qualityOfService_ = value; - } - onChanged(); - } else { - qualityOfServiceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public Builder clearQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - onChanged(); - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { - - onChanged(); - return getQualityOfServiceFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if (qualityOfServiceBuilder_ != null) { - return qualityOfServiceBuilder_.getMessageOrBuilder(); - } else { - return qualityOfService_ == null ? - flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> - getQualityOfServiceFieldBuilder() { - if (qualityOfServiceBuilder_ == null) { - qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( - getQualityOfService(), - getParentForChildren(), - isClean()); - qualityOfService_ = null; - } - return qualityOfServiceBuilder_; - } - - private int onFailure_ = 0; - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public int getOnFailureValue() { - return onFailure_; - } - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public Builder setOnFailureValue(int value) { - onFailure_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure() { - @SuppressWarnings("deprecation") - flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy result = flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.valueOf(onFailure_); - return result == null ? flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.UNRECOGNIZED : result; - } - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public Builder setOnFailure(flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy value) { - if (value == null) { - throw new NullPointerException(); - } - - onFailure_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public Builder clearOnFailure() { - - onFailure_ = 0; - 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:flyteidl.core.WorkflowMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadata) - private static final flyteidl.core.Workflow.WorkflowMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowMetadata(); - } - - public static flyteidl.core.Workflow.WorkflowMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowMetadata(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 flyteidl.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowMetadataDefaultsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowMetadataDefaults) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identify whether workflow is interruptible.
-     * The value set at the workflow level will be the defualt value used for nodes
-     * unless explicitly set at the node level.
-     * 
- * - * bool interruptible = 1; - */ - boolean getInterruptible(); - } - /** - *
-   * Default Workflow Metadata for the entire workflow.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowMetadataDefaults} - */ - public static final class WorkflowMetadataDefaults extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowMetadataDefaults) - WorkflowMetadataDefaultsOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowMetadataDefaults.newBuilder() to construct. - private WorkflowMetadataDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowMetadataDefaults() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowMetadataDefaults( - 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 8: { - - interruptible_ = input.readBool(); - 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 flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowMetadataDefaults.class, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder.class); - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 1; - private boolean interruptible_; - /** - *
-     * Identify whether workflow is interruptible.
-     * The value set at the workflow level will be the defualt value used for nodes
-     * unless explicitly set at the node level.
-     * 
- * - * bool interruptible = 1; - */ - public boolean getInterruptible() { - return interruptible_; - } - - 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 (interruptible_ != false) { - output.writeBool(1, interruptible_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (interruptible_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, interruptible_); - } - 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 flyteidl.core.Workflow.WorkflowMetadataDefaults)) { - return super.equals(obj); - } - flyteidl.core.Workflow.WorkflowMetadataDefaults other = (flyteidl.core.Workflow.WorkflowMetadataDefaults) obj; - - if (getInterruptible() - != other.getInterruptible()) 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) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterruptible()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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 flyteidl.core.Workflow.WorkflowMetadataDefaults parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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 flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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(flyteidl.core.Workflow.WorkflowMetadataDefaults 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 Workflow Metadata for the entire workflow.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowMetadataDefaults} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowMetadataDefaults) - flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowMetadataDefaults.class, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder.class); - } - - // Construct using flyteidl.core.Workflow.WorkflowMetadataDefaults.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(); - interruptible_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstanceForType() { - return flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadataDefaults build() { - flyteidl.core.Workflow.WorkflowMetadataDefaults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadataDefaults buildPartial() { - flyteidl.core.Workflow.WorkflowMetadataDefaults result = new flyteidl.core.Workflow.WorkflowMetadataDefaults(this); - result.interruptible_ = interruptible_; - 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 flyteidl.core.Workflow.WorkflowMetadataDefaults) { - return mergeFrom((flyteidl.core.Workflow.WorkflowMetadataDefaults)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.WorkflowMetadataDefaults other) { - if (other == flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance()) return this; - if (other.getInterruptible() != false) { - setInterruptible(other.getInterruptible()); - } - 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 { - flyteidl.core.Workflow.WorkflowMetadataDefaults parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.WorkflowMetadataDefaults) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean interruptible_ ; - /** - *
-       * Identify whether workflow is interruptible.
-       * The value set at the workflow level will be the defualt value used for nodes
-       * unless explicitly set at the node level.
-       * 
- * - * bool interruptible = 1; - */ - public boolean getInterruptible() { - return interruptible_; - } - /** - *
-       * Identify whether workflow is interruptible.
-       * The value set at the workflow level will be the defualt value used for nodes
-       * unless explicitly set at the node level.
-       * 
- * - * bool interruptible = 1; - */ - public Builder setInterruptible(boolean value) { - - interruptible_ = value; - onChanged(); - return this; - } - /** - *
-       * Identify whether workflow is interruptible.
-       * The value set at the workflow level will be the defualt value used for nodes
-       * unless explicitly set at the node level.
-       * 
- * - * bool interruptible = 1; - */ - public Builder clearInterruptible() { - - interruptible_ = false; - 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:flyteidl.core.WorkflowMetadataDefaults) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadataDefaults) - private static final flyteidl.core.Workflow.WorkflowMetadataDefaults DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowMetadataDefaults(); - } - - public static flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowMetadataDefaults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowMetadataDefaults(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 flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowTemplateOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - boolean hasMetadata(); - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - flyteidl.core.Workflow.WorkflowMetadata getMetadata(); - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - boolean hasInterface(); - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - flyteidl.core.Interface.TypedInterface getInterface(); - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); - - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - java.util.List - getNodesList(); - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - flyteidl.core.Workflow.Node getNodes(int index); - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - int getNodesCount(); - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - java.util.List - getNodesOrBuilderList(); - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index); - - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - java.util.List - getOutputsList(); - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - flyteidl.core.Literals.Binding getOutputs(int index); - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - int getOutputsCount(); - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - java.util.List - getOutputsOrBuilderList(); - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index); - - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named "error" of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - boolean hasFailureNode(); - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named "error" of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - flyteidl.core.Workflow.Node getFailureNode(); - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named "error" of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder(); - - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - boolean hasMetadataDefaults(); - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults(); - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder(); - } - /** - *
-   * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
-   * directed acyclic graph.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowTemplate} - */ - public static final class WorkflowTemplate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowTemplate) - WorkflowTemplateOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowTemplate.newBuilder() to construct. - private WorkflowTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowTemplate() { - nodes_ = java.util.Collections.emptyList(); - outputs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowTemplate( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Workflow.WorkflowMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Workflow.WorkflowMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; - if (interface_ != null) { - subBuilder = interface_.toBuilder(); - } - interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(interface_); - interface_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - nodes_.add( - input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - outputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - outputs_.add( - input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); - break; - } - case 50: { - flyteidl.core.Workflow.Node.Builder subBuilder = null; - if (failureNode_ != null) { - subBuilder = failureNode_.toBuilder(); - } - failureNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(failureNode_); - failureNode_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder subBuilder = null; - if (metadataDefaults_ != null) { - subBuilder = metadataDefaults_.toBuilder(); - } - metadataDefaults_ = input.readMessage(flyteidl.core.Workflow.WorkflowMetadataDefaults.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadataDefaults_); - metadataDefaults_ = 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_ & 0x00000008) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int METADATA_FIELD_NUMBER = 2; - private flyteidl.core.Workflow.WorkflowMetadata metadata_; - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int INTERFACE_FIELD_NUMBER = 3; - private flyteidl.core.Interface.TypedInterface interface_; - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public boolean hasInterface() { - return interface_ != null; - } - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterface getInterface() { - return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { - return getInterface(); - } - - public static final int NODES_FIELD_NUMBER = 4; - private java.util.List nodes_; - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List getNodesList() { - return nodes_; - } - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List - getNodesOrBuilderList() { - return nodes_; - } - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public int getNodesCount() { - return nodes_.size(); - } - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node getNodes(int index) { - return nodes_.get(index); - } - /** - *
-     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index) { - return nodes_.get(index); - } - - public static final int OUTPUTS_FIELD_NUMBER = 5; - private java.util.List outputs_; - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List getOutputsList() { - return outputs_; - } - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List - getOutputsOrBuilderList() { - return outputs_; - } - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public int getOutputsCount() { - return outputs_.size(); - } - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding getOutputs(int index) { - return outputs_.get(index); - } - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index) { - return outputs_.get(index); - } - - public static final int FAILURE_NODE_FIELD_NUMBER = 6; - private flyteidl.core.Workflow.Node failureNode_; - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named "error" of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public boolean hasFailureNode() { - return failureNode_ != null; - } - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named "error" of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.Node getFailureNode() { - return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; - } - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named "error" of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { - return getFailureNode(); - } - - public static final int METADATA_DEFAULTS_FIELD_NUMBER = 7; - private flyteidl.core.Workflow.WorkflowMetadataDefaults metadataDefaults_; - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public boolean hasMetadataDefaults() { - return metadataDefaults_ != null; - } - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults() { - return metadataDefaults_ == null ? flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; - } - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder() { - return getMetadataDefaults(); - } - - 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 (metadata_ != null) { - output.writeMessage(2, getMetadata()); - } - if (interface_ != null) { - output.writeMessage(3, getInterface()); - } - for (int i = 0; i < nodes_.size(); i++) { - output.writeMessage(4, nodes_.get(i)); - } - for (int i = 0; i < outputs_.size(); i++) { - output.writeMessage(5, outputs_.get(i)); - } - if (failureNode_ != null) { - output.writeMessage(6, getFailureNode()); - } - if (metadataDefaults_ != null) { - output.writeMessage(7, getMetadataDefaults()); - } - 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 (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMetadata()); - } - if (interface_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInterface()); - } - for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, nodes_.get(i)); - } - for (int i = 0; i < outputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, outputs_.get(i)); - } - if (failureNode_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getFailureNode()); - } - if (metadataDefaults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getMetadataDefaults()); - } - 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 flyteidl.core.Workflow.WorkflowTemplate)) { - return super.equals(obj); - } - flyteidl.core.Workflow.WorkflowTemplate other = (flyteidl.core.Workflow.WorkflowTemplate) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (hasInterface() != other.hasInterface()) return false; - if (hasInterface()) { - if (!getInterface() - .equals(other.getInterface())) return false; - } - if (!getNodesList() - .equals(other.getNodesList())) return false; - if (!getOutputsList() - .equals(other.getOutputsList())) return false; - if (hasFailureNode() != other.hasFailureNode()) return false; - if (hasFailureNode()) { - if (!getFailureNode() - .equals(other.getFailureNode())) return false; - } - if (hasMetadataDefaults() != other.hasMetadataDefaults()) return false; - if (hasMetadataDefaults()) { - if (!getMetadataDefaults() - .equals(other.getMetadataDefaults())) 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(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasInterface()) { - hash = (37 * hash) + INTERFACE_FIELD_NUMBER; - hash = (53 * hash) + getInterface().hashCode(); - } - if (getNodesCount() > 0) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + getNodesList().hashCode(); - } - if (getOutputsCount() > 0) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputsList().hashCode(); - } - if (hasFailureNode()) { - hash = (37 * hash) + FAILURE_NODE_FIELD_NUMBER; - hash = (53 * hash) + getFailureNode().hashCode(); - } - if (hasMetadataDefaults()) { - hash = (37 * hash) + METADATA_DEFAULTS_FIELD_NUMBER; - hash = (53 * hash) + getMetadataDefaults().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowTemplate 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 flyteidl.core.Workflow.WorkflowTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowTemplate 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 flyteidl.core.Workflow.WorkflowTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowTemplate 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(flyteidl.core.Workflow.WorkflowTemplate 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; - } - /** - *
-     * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
-     * directed acyclic graph.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowTemplate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowTemplate) - flyteidl.core.Workflow.WorkflowTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); - } - - // Construct using flyteidl.core.Workflow.WorkflowTemplate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodesFieldBuilder(); - getOutputsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (interfaceBuilder_ == null) { - interface_ = null; - } else { - interface_ = null; - interfaceBuilder_ = null; - } - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - nodesBuilder_.clear(); - } - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - outputsBuilder_.clear(); - } - if (failureNodeBuilder_ == null) { - failureNode_ = null; - } else { - failureNode_ = null; - failureNodeBuilder_ = null; - } - if (metadataDefaultsBuilder_ == null) { - metadataDefaults_ = null; - } else { - metadataDefaults_ = null; - metadataDefaultsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { - return flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowTemplate build() { - flyteidl.core.Workflow.WorkflowTemplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowTemplate buildPartial() { - flyteidl.core.Workflow.WorkflowTemplate result = new flyteidl.core.Workflow.WorkflowTemplate(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (interfaceBuilder_ == null) { - result.interface_ = interface_; - } else { - result.interface_ = interfaceBuilder_.build(); - } - if (nodesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.nodes_ = nodes_; - } else { - result.nodes_ = nodesBuilder_.build(); - } - if (outputsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - if (failureNodeBuilder_ == null) { - result.failureNode_ = failureNode_; - } else { - result.failureNode_ = failureNodeBuilder_.build(); - } - if (metadataDefaultsBuilder_ == null) { - result.metadataDefaults_ = metadataDefaults_; - } else { - result.metadataDefaults_ = metadataDefaultsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.core.Workflow.WorkflowTemplate) { - return mergeFrom((flyteidl.core.Workflow.WorkflowTemplate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.WorkflowTemplate other) { - if (other == flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasInterface()) { - mergeInterface(other.getInterface()); - } - if (nodesBuilder_ == null) { - if (!other.nodes_.isEmpty()) { - if (nodes_.isEmpty()) { - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureNodesIsMutable(); - nodes_.addAll(other.nodes_); - } - onChanged(); - } - } else { - if (!other.nodes_.isEmpty()) { - if (nodesBuilder_.isEmpty()) { - nodesBuilder_.dispose(); - nodesBuilder_ = null; - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000008); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; - } else { - nodesBuilder_.addAllMessages(other.nodes_); - } - } - } - if (outputsBuilder_ == null) { - if (!other.outputs_.isEmpty()) { - if (outputs_.isEmpty()) { - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureOutputsIsMutable(); - outputs_.addAll(other.outputs_); - } - onChanged(); - } - } else { - if (!other.outputs_.isEmpty()) { - if (outputsBuilder_.isEmpty()) { - outputsBuilder_.dispose(); - outputsBuilder_ = null; - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000010); - outputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutputsFieldBuilder() : null; - } else { - outputsBuilder_.addAllMessages(other.outputs_); - } - } - } - if (other.hasFailureNode()) { - mergeFailureNode(other.getFailureNode()); - } - if (other.hasMetadataDefaults()) { - mergeMetadataDefaults(other.getMetadataDefaults()); - } - 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 { - flyteidl.core.Workflow.WorkflowTemplate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.WorkflowTemplate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.IdentifierOuterClass.Identifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.core.Workflow.WorkflowMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public Builder setMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public Builder setMetadata( - flyteidl.core.Workflow.WorkflowMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public Builder mergeMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Workflow.WorkflowMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private flyteidl.core.Interface.TypedInterface interface_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public boolean hasInterface() { - return interfaceBuilder_ != null || interface_ != null; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterface getInterface() { - if (interfaceBuilder_ == null) { - return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } else { - return interfaceBuilder_.getMessage(); - } - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { - if (interfaceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - interface_ = value; - onChanged(); - } else { - interfaceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public Builder setInterface( - flyteidl.core.Interface.TypedInterface.Builder builderForValue) { - if (interfaceBuilder_ == null) { - interface_ = builderForValue.build(); - onChanged(); - } else { - interfaceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { - if (interfaceBuilder_ == null) { - if (interface_ != null) { - interface_ = - flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); - } else { - interface_ = value; - } - onChanged(); - } else { - interfaceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public Builder clearInterface() { - if (interfaceBuilder_ == null) { - interface_ = null; - onChanged(); - } else { - interface_ = null; - interfaceBuilder_ = null; - } - - return this; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { - - onChanged(); - return getInterfaceFieldBuilder().getBuilder(); - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { - if (interfaceBuilder_ != null) { - return interfaceBuilder_.getMessageOrBuilder(); - } else { - return interface_ == null ? - flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> - getInterfaceFieldBuilder() { - if (interfaceBuilder_ == null) { - interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( - getInterface(), - getParentForChildren(), - isClean()); - interface_ = null; - } - return interfaceBuilder_; - } - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; - - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); - } else { - return nodesBuilder_.getCount(); - } - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder setNodes( - int index, flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); - } else { - nodesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder setNodes( - int index, flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addNodes(flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addNodes( - int index, flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addNodes( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addNodes( - int index, flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - nodesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); - } else { - nodesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node.Builder getNodesBuilder( - int index) { - return getNodesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); } else { - return nodesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); - } - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - flyteidl.core.Workflow.Node.getDefaultInstance()); - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.Node.getDefaultInstance()); - } - /** - *
-       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List - getNodesBuilderList() { - return getNodesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - nodes_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - nodes_ = null; - } - return nodesBuilder_; - } - - private java.util.List outputs_ = - java.util.Collections.emptyList(); - private void ensureOutputsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - outputs_ = new java.util.ArrayList(outputs_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; - - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List getOutputsList() { - if (outputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputs_); - } else { - return outputsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public int getOutputsCount() { - if (outputsBuilder_ == null) { - return outputs_.size(); - } else { - return outputsBuilder_.getCount(); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding getOutputs(int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); - } else { - return outputsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder setOutputs( - int index, flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.set(index, value); - onChanged(); - } else { - outputsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder setOutputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.set(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addOutputs(flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(value); - onChanged(); - } else { - outputsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addOutputs( - int index, flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(index, value); - onChanged(); - } else { - outputsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addOutputs( - flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addOutputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addAllOutputs( - java.lang.Iterable values) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputs_); - onChanged(); - } else { - outputsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - outputsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder removeOutputs(int index) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.remove(index); - onChanged(); - } else { - outputsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( - int index) { - return getOutputsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); } else { - return outputsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List - getOutputsOrBuilderList() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outputs_); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { - return getOutputsFieldBuilder().addBuilder( - flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( - int index) { - return getOutputsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List - getOutputsBuilderList() { - return getOutputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( - outputs_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - - private flyteidl.core.Workflow.Node failureNode_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> failureNodeBuilder_; - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public boolean hasFailureNode() { - return failureNodeBuilder_ != null || failureNode_ != null; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.Node getFailureNode() { - if (failureNodeBuilder_ == null) { - return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; - } else { - return failureNodeBuilder_.getMessage(); - } - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public Builder setFailureNode(flyteidl.core.Workflow.Node value) { - if (failureNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - failureNode_ = value; - onChanged(); - } else { - failureNodeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public Builder setFailureNode( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (failureNodeBuilder_ == null) { - failureNode_ = builderForValue.build(); - onChanged(); - } else { - failureNodeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public Builder mergeFailureNode(flyteidl.core.Workflow.Node value) { - if (failureNodeBuilder_ == null) { - if (failureNode_ != null) { - failureNode_ = - flyteidl.core.Workflow.Node.newBuilder(failureNode_).mergeFrom(value).buildPartial(); - } else { - failureNode_ = value; - } - onChanged(); - } else { - failureNodeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public Builder clearFailureNode() { - if (failureNodeBuilder_ == null) { - failureNode_ = null; - onChanged(); - } else { - failureNode_ = null; - failureNodeBuilder_ = null; - } - - return this; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.Node.Builder getFailureNodeBuilder() { - - onChanged(); - return getFailureNodeFieldBuilder().getBuilder(); - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { - if (failureNodeBuilder_ != null) { - return failureNodeBuilder_.getMessageOrBuilder(); - } else { - return failureNode_ == null ? - flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; - } - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named "error" of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getFailureNodeFieldBuilder() { - if (failureNodeBuilder_ == null) { - failureNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - getFailureNode(), - getParentForChildren(), - isClean()); - failureNode_ = null; - } - return failureNodeBuilder_; - } - - private flyteidl.core.Workflow.WorkflowMetadataDefaults metadataDefaults_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder> metadataDefaultsBuilder_; - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public boolean hasMetadataDefaults() { - return metadataDefaultsBuilder_ != null || metadataDefaults_ != null; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults() { - if (metadataDefaultsBuilder_ == null) { - return metadataDefaults_ == null ? flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; - } else { - return metadataDefaultsBuilder_.getMessage(); - } - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public Builder setMetadataDefaults(flyteidl.core.Workflow.WorkflowMetadataDefaults value) { - if (metadataDefaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadataDefaults_ = value; - onChanged(); - } else { - metadataDefaultsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public Builder setMetadataDefaults( - flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder builderForValue) { - if (metadataDefaultsBuilder_ == null) { - metadataDefaults_ = builderForValue.build(); - onChanged(); - } else { - metadataDefaultsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public Builder mergeMetadataDefaults(flyteidl.core.Workflow.WorkflowMetadataDefaults value) { - if (metadataDefaultsBuilder_ == null) { - if (metadataDefaults_ != null) { - metadataDefaults_ = - flyteidl.core.Workflow.WorkflowMetadataDefaults.newBuilder(metadataDefaults_).mergeFrom(value).buildPartial(); - } else { - metadataDefaults_ = value; - } - onChanged(); - } else { - metadataDefaultsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public Builder clearMetadataDefaults() { - if (metadataDefaultsBuilder_ == null) { - metadataDefaults_ = null; - onChanged(); - } else { - metadataDefaults_ = null; - metadataDefaultsBuilder_ = null; - } - - return this; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder getMetadataDefaultsBuilder() { - - onChanged(); - return getMetadataDefaultsFieldBuilder().getBuilder(); - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder() { - if (metadataDefaultsBuilder_ != null) { - return metadataDefaultsBuilder_.getMessageOrBuilder(); - } else { - return metadataDefaults_ == null ? - flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; - } - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder> - getMetadataDefaultsFieldBuilder() { - if (metadataDefaultsBuilder_ == null) { - metadataDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder>( - getMetadataDefaults(), - getParentForChildren(), - isClean()); - metadataDefaults_ = null; - } - return metadataDefaultsBuilder_; - } - @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:flyteidl.core.WorkflowTemplate) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowTemplate) - private static final flyteidl.core.Workflow.WorkflowTemplate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowTemplate(); - } - - public static flyteidl.core.Workflow.WorkflowTemplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowTemplate(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 flyteidl.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_IfBlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_IfBlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_IfElseBlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BranchNode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BranchNode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskNode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskNode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowNode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_NodeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Alias_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Alias_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Node_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Node_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowTemplate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowTemplate_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\034flyteidl/core/workflow.proto\022\rflyteidl" + - ".core\032\035flyteidl/core/condition.proto\032\035fl" + - "yteidl/core/execution.proto\032\036flyteidl/co" + - "re/identifier.proto\032\035flyteidl/core/inter" + - "face.proto\032\034flyteidl/core/literals.proto" + - "\032\031flyteidl/core/types.proto\032\036google/prot" + - "obuf/duration.proto\"f\n\007IfBlock\0223\n\tcondit" + - "ion\030\001 \001(\0132 .flyteidl.core.BooleanExpress" + - "ion\022&\n\tthen_node\030\002 \001(\0132\023.flyteidl.core.N" + - "ode\"\266\001\n\013IfElseBlock\022$\n\004case\030\001 \001(\0132\026.flyt" + - "eidl.core.IfBlock\022%\n\005other\030\002 \003(\0132\026.flyte" + - "idl.core.IfBlock\022(\n\telse_node\030\003 \001(\0132\023.fl" + - "yteidl.core.NodeH\000\022%\n\005error\030\004 \001(\0132\024.flyt" + - "eidl.core.ErrorH\000B\t\n\007default\"9\n\nBranchNo" + - "de\022+\n\007if_else\030\001 \001(\0132\032.flyteidl.core.IfEl" + - "seBlock\"J\n\010TaskNode\0221\n\014reference_id\030\001 \001(" + - "\0132\031.flyteidl.core.IdentifierH\000B\013\n\trefere" + - "nce\"\207\001\n\014WorkflowNode\0223\n\016launchplan_ref\030\001" + - " \001(\0132\031.flyteidl.core.IdentifierH\000\0225\n\020sub" + - "_workflow_ref\030\002 \001(\0132\031.flyteidl.core.Iden" + - "tifierH\000B\013\n\treference\"\247\001\n\014NodeMetadata\022\014" + - "\n\004name\030\001 \001(\t\022*\n\007timeout\030\004 \001(\0132\031.google.p" + - "rotobuf.Duration\022-\n\007retries\030\005 \001(\0132\034.flyt" + - "eidl.core.RetryStrategy\022\027\n\rinterruptible" + - "\030\006 \001(\010H\000B\025\n\023interruptible_value\"#\n\005Alias" + - "\022\013\n\003var\030\001 \001(\t\022\r\n\005alias\030\002 \001(\t\"\322\002\n\004Node\022\n\n" + - "\002id\030\001 \001(\t\022-\n\010metadata\030\002 \001(\0132\033.flyteidl.c" + - "ore.NodeMetadata\022&\n\006inputs\030\003 \003(\0132\026.flyte" + - "idl.core.Binding\022\031\n\021upstream_node_ids\030\004 " + - "\003(\t\022,\n\016output_aliases\030\005 \003(\0132\024.flyteidl.c" + - "ore.Alias\022,\n\ttask_node\030\006 \001(\0132\027.flyteidl." + - "core.TaskNodeH\000\0224\n\rworkflow_node\030\007 \001(\0132\033" + - ".flyteidl.core.WorkflowNodeH\000\0220\n\013branch_" + - "node\030\010 \001(\0132\031.flyteidl.core.BranchNodeH\000B" + - "\010\n\006target\"\347\001\n\020WorkflowMetadata\022;\n\022qualit" + - "y_of_service\030\001 \001(\0132\037.flyteidl.core.Quali" + - "tyOfService\022C\n\non_failure\030\002 \001(\0162/.flytei" + - "dl.core.WorkflowMetadata.OnFailurePolicy" + - "\"Q\n\017OnFailurePolicy\022\024\n\020FAIL_IMMEDIATELY\020" + - "\000\022(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLET" + - "E\020\001\"1\n\030WorkflowMetadataDefaults\022\025\n\rinter" + - "ruptible\030\001 \001(\010\"\332\002\n\020WorkflowTemplate\022%\n\002i" + - "d\030\001 \001(\0132\031.flyteidl.core.Identifier\0221\n\010me" + - "tadata\030\002 \001(\0132\037.flyteidl.core.WorkflowMet" + - "adata\0220\n\tinterface\030\003 \001(\0132\035.flyteidl.core" + - ".TypedInterface\022\"\n\005nodes\030\004 \003(\0132\023.flyteid" + - "l.core.Node\022\'\n\007outputs\030\005 \003(\0132\026.flyteidl." + - "core.Binding\022)\n\014failure_node\030\006 \001(\0132\023.fly" + - "teidl.core.Node\022B\n\021metadata_defaults\030\007 \001" + - "(\0132\'.flyteidl.core.WorkflowMetadataDefau" + - "ltsB2Z0github.com/lyft/flyteidl/gen/pb-g" + - "o/flyteidl/coreb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Condition.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Interface.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.Types.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_IfBlock_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_IfBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_IfBlock_descriptor, - new java.lang.String[] { "Condition", "ThenNode", }); - internal_static_flyteidl_core_IfElseBlock_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_IfElseBlock_descriptor, - new java.lang.String[] { "Case", "Other", "ElseNode", "Error", "Default", }); - internal_static_flyteidl_core_BranchNode_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_core_BranchNode_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_BranchNode_descriptor, - new java.lang.String[] { "IfElse", }); - internal_static_flyteidl_core_TaskNode_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_core_TaskNode_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_TaskNode_descriptor, - new java.lang.String[] { "ReferenceId", "Reference", }); - internal_static_flyteidl_core_WorkflowNode_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowNode_descriptor, - new java.lang.String[] { "LaunchplanRef", "SubWorkflowRef", "Reference", }); - internal_static_flyteidl_core_NodeMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_NodeMetadata_descriptor, - new java.lang.String[] { "Name", "Timeout", "Retries", "Interruptible", "InterruptibleValue", }); - internal_static_flyteidl_core_Alias_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_core_Alias_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Alias_descriptor, - new java.lang.String[] { "Var", "Alias", }); - internal_static_flyteidl_core_Node_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_core_Node_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_Node_descriptor, - new java.lang.String[] { "Id", "Metadata", "Inputs", "UpstreamNodeIds", "OutputAliases", "TaskNode", "WorkflowNode", "BranchNode", "Target", }); - internal_static_flyteidl_core_WorkflowMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowMetadata_descriptor, - new java.lang.String[] { "QualityOfService", "OnFailure", }); - internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor, - new java.lang.String[] { "Interruptible", }); - internal_static_flyteidl_core_WorkflowTemplate_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowTemplate_descriptor, - new java.lang.String[] { "Id", "Metadata", "Interface", "Nodes", "Outputs", "FailureNode", "MetadataDefaults", }); - flyteidl.core.Condition.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Interface.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.Types.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java b/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java deleted file mode 100644 index d1e0ffbff..000000000 --- a/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java +++ /dev/null @@ -1,1251 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/workflow_closure.proto - -package flyteidl.core; - -public final class WorkflowClosureOuterClass { - private WorkflowClosureOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorkflowClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - boolean hasWorkflow(); - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - flyteidl.core.Workflow.WorkflowTemplate getWorkflow(); - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder(); - - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - java.util.List - getTasksList(); - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - flyteidl.core.Tasks.TaskTemplate getTasks(int index); - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - int getTasksCount(); - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - java.util.List - getTasksOrBuilderList(); - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index); - } - /** - *
-   * Defines an enclosed package of workflow and tasks it references.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowClosure} - */ - public static final class WorkflowClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowClosure) - WorkflowClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowClosure.newBuilder() to construct. - private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowClosure() { - tasks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowClosure( - 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: { - flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; - if (workflow_ != null) { - subBuilder = workflow_.toBuilder(); - } - workflow_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflow_); - workflow_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - tasks_.add( - input.readMessage(flyteidl.core.Tasks.TaskTemplate.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_ & 0x00000002) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); - } - - private int bitField0_; - public static final int WORKFLOW_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.WorkflowTemplate workflow_; - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public boolean hasWorkflow() { - return workflow_ != null; - } - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { - return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; - } - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { - return getWorkflow(); - } - - public static final int TASKS_FIELD_NUMBER = 2; - private java.util.List tasks_; - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { - return tasks_.get(index); - } - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index) { - return tasks_.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 (workflow_ != null) { - output.writeMessage(1, getWorkflow()); - } - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(2, tasks_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkflow()); - } - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, tasks_.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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure)) { - return super.equals(obj); - } - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) obj; - - if (hasWorkflow() != other.hasWorkflow()) return false; - if (hasWorkflow()) { - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - } - if (!getTasksList() - .equals(other.getTasksList())) 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 (hasWorkflow()) { - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - } - if (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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(flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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; - } - /** - *
-     * Defines an enclosed package of workflow and tasks it references.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowClosure) - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); - } - - // Construct using flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTasksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (workflowBuilder_ == null) { - workflow_ = null; - } else { - workflow_ = null; - workflowBuilder_ = null; - } - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - tasksBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; - } - - @java.lang.Override - public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { - return flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure build() { - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure buildPartial() { - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (workflowBuilder_ == null) { - result.workflow_ = workflow_; - } else { - result.workflow_ = workflowBuilder_.build(); - } - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) { - return mergeFrom((flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other) { - if (other == flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance()) return this; - if (other.hasWorkflow()) { - mergeWorkflow(other.getWorkflow()); - } - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000002); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - 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 { - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.Workflow.WorkflowTemplate workflow_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> workflowBuilder_; - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public boolean hasWorkflow() { - return workflowBuilder_ != null || workflow_ != null; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { - if (workflowBuilder_ == null) { - return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; - } else { - return workflowBuilder_.getMessage(); - } - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public Builder setWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { - if (workflowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflow_ = value; - onChanged(); - } else { - workflowBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public Builder setWorkflow( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (workflowBuilder_ == null) { - workflow_ = builderForValue.build(); - onChanged(); - } else { - workflowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public Builder mergeWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { - if (workflowBuilder_ == null) { - if (workflow_ != null) { - workflow_ = - flyteidl.core.Workflow.WorkflowTemplate.newBuilder(workflow_).mergeFrom(value).buildPartial(); - } else { - workflow_ = value; - } - onChanged(); - } else { - workflowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public Builder clearWorkflow() { - if (workflowBuilder_ == null) { - workflow_ = null; - onChanged(); - } else { - workflow_ = null; - workflowBuilder_ = null; - } - - return this; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getWorkflowBuilder() { - - onChanged(); - return getWorkflowFieldBuilder().getBuilder(); - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { - if (workflowBuilder_ != null) { - return workflowBuilder_.getMessageOrBuilder(); - } else { - return workflow_ == null ? - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; - } - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getWorkflowFieldBuilder() { - if (workflowBuilder_ == null) { - workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - getWorkflow(), - getParentForChildren(), - isClean()); - workflow_ = null; - } - return workflowBuilder_; - } - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; - - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder setTasks( - int index, flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder setTasks( - int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addTasks( - int index, flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addTasks( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addTasks( - int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - tasks_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - @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:flyteidl.core.WorkflowClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowClosure) - private static final flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(); - } - - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowClosure(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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowClosure_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$flyteidl/core/workflow_closure.proto\022\r" + - "flyteidl.core\032\034flyteidl/core/workflow.pr" + - "oto\032\031flyteidl/core/tasks.proto\"p\n\017Workfl" + - "owClosure\0221\n\010workflow\030\001 \001(\0132\037.flyteidl.c" + - "ore.WorkflowTemplate\022*\n\005tasks\030\002 \003(\0132\033.fl" + - "yteidl.core.TaskTemplateB2Z0github.com/l" + - "yft/flyteidl/gen/pb-go/flyteidl/coreb\006pr" + - "oto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Workflow.getDescriptor(), - flyteidl.core.Tasks.getDescriptor(), - }, assigner); - internal_static_flyteidl_core_WorkflowClosure_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_core_WorkflowClosure_descriptor, - new java.lang.String[] { "Workflow", "Tasks", }); - flyteidl.core.Workflow.getDescriptor(); - flyteidl.core.Tasks.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/event/Event.java b/gen/pb-java/flyteidl/event/Event.java deleted file mode 100644 index 36ca67248..000000000 --- a/gen/pb-java/flyteidl/event/Event.java +++ /dev/null @@ -1,8733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/event/event.proto - -package flyteidl.event; - -public final class Event { - private Event() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorkflowExecutionEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowExecutionEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - boolean hasExecutionId(); - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - java.lang.String getProducerId(); - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - com.google.protobuf.ByteString - getProducerIdBytes(); - - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - int getPhaseValue(); - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); - - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - boolean hasOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - com.google.protobuf.Timestamp getOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); - - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 5; - */ - java.lang.String getOutputUri(); - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 5; - */ - com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - boolean hasError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - public flyteidl.event.Event.WorkflowExecutionEvent.OutputResultCase getOutputResultCase(); - } - /** - * Protobuf type {@code flyteidl.event.WorkflowExecutionEvent} - */ - public static final class WorkflowExecutionEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowExecutionEvent) - WorkflowExecutionEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionEvent.newBuilder() to construct. - private WorkflowExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionEvent() { - producerId_ = ""; - phase_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionEvent( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - producerId_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (occurredAt_ != null) { - subBuilder = occurredAt_.toBuilder(); - } - occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(occurredAt_); - occurredAt_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 5; - outputResult_ = s; - break; - } - case 50: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 6) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 6; - 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 flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); - } - - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUT_URI(5), - ERROR(6), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 5: return OUTPUT_URI; - case 6: return ERROR; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public static final int EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - public static final int PRODUCER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object producerId_; - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - 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(); - producerId_ = s; - return s; - } - } - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PHASE_FIELD_NUMBER = 3; - private int phase_; - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - - public static final int OCCURRED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp occurredAt_; - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public boolean hasOccurredAt() { - return occurredAt_ != null; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - return getOccurredAt(); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 5; - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 5; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 5) { - ref = outputResult_; - } - 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(); - if (outputResultCase_ == 5) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 5; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 5) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 5) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 6; - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public boolean hasError() { - return outputResultCase_ == 6; - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 6) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 6) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (executionId_ != null) { - output.writeMessage(1, getExecutionId()); - } - if (!getProducerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(3, phase_); - } - if (occurredAt_ != null) { - output.writeMessage(4, getOccurredAt()); - } - if (outputResultCase_ == 5) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputResult_); - } - if (outputResultCase_ == 6) { - output.writeMessage(6, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecutionId()); - } - if (!getProducerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, phase_); - } - if (occurredAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOccurredAt()); - } - if (outputResultCase_ == 5) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputResult_); - } - if (outputResultCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - 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 flyteidl.event.Event.WorkflowExecutionEvent)) { - return super.equals(obj); - } - flyteidl.event.Event.WorkflowExecutionEvent other = (flyteidl.event.Event.WorkflowExecutionEvent) obj; - - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) return false; - } - if (!getProducerId() - .equals(other.getProducerId())) return false; - if (phase_ != other.phase_) return false; - if (hasOccurredAt() != other.hasOccurredAt()) return false; - if (hasOccurredAt()) { - if (!getOccurredAt() - .equals(other.getOccurredAt())) return false; - } - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 5: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 6: - if (!getError() - .equals(other.getError())) 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(); - if (hasExecutionId()) { - hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; - hash = (53 * hash) + getProducerId().hashCode(); - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (hasOccurredAt()) { - hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; - hash = (53 * hash) + getOccurredAt().hashCode(); - } - switch (outputResultCase_) { - case 5: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 6: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowExecutionEvent 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 flyteidl.event.Event.WorkflowExecutionEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowExecutionEvent 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 flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowExecutionEvent 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(flyteidl.event.Event.WorkflowExecutionEvent 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 flyteidl.event.WorkflowExecutionEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowExecutionEvent) - flyteidl.event.Event.WorkflowExecutionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); - } - - // Construct using flyteidl.event.Event.WorkflowExecutionEvent.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 (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - producerId_ = ""; - - phase_ = 0; - - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - outputResultCase_ = 0; - outputResult_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { - return flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowExecutionEvent build() { - flyteidl.event.Event.WorkflowExecutionEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowExecutionEvent buildPartial() { - flyteidl.event.Event.WorkflowExecutionEvent result = new flyteidl.event.Event.WorkflowExecutionEvent(this); - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.build(); - } - result.producerId_ = producerId_; - result.phase_ = phase_; - if (occurredAtBuilder_ == null) { - result.occurredAt_ = occurredAt_; - } else { - result.occurredAt_ = occurredAtBuilder_.build(); - } - if (outputResultCase_ == 5) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 6) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - result.outputResultCase_ = outputResultCase_; - 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 flyteidl.event.Event.WorkflowExecutionEvent) { - return mergeFrom((flyteidl.event.Event.WorkflowExecutionEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.WorkflowExecutionEvent other) { - if (other == flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance()) return this; - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - if (!other.getProducerId().isEmpty()) { - producerId_ = other.producerId_; - onChanged(); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.hasOccurredAt()) { - mergeOccurredAt(other.getOccurredAt()); - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 5; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUTRESULT_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 { - flyteidl.event.Event.WorkflowExecutionEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.WorkflowExecutionEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - - private java.lang.Object producerId_ = ""; - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - producerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder setProducerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - producerId_ = value; - onChanged(); - return this; - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder clearProducerId() { - - producerId_ = getDefaultInstance().getProducerId(); - onChanged(); - return this; - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder setProducerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - producerId_ = value; - onChanged(); - return this; - } - - private int phase_ = 0; - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp occurredAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public boolean hasOccurredAt() { - return occurredAtBuilder_ != null || occurredAt_ != null; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - if (occurredAtBuilder_ == null) { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } else { - return occurredAtBuilder_.getMessage(); - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder setOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - occurredAt_ = value; - onChanged(); - } else { - occurredAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder setOccurredAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (occurredAtBuilder_ == null) { - occurredAt_ = builderForValue.build(); - onChanged(); - } else { - occurredAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (occurredAt_ != null) { - occurredAt_ = - com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); - } else { - occurredAt_ = value; - } - onChanged(); - } else { - occurredAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder clearOccurredAt() { - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - onChanged(); - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { - - onChanged(); - return getOccurredAtFieldBuilder().getBuilder(); - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - if (occurredAtBuilder_ != null) { - return occurredAtBuilder_.getMessageOrBuilder(); - } else { - return occurredAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOccurredAtFieldBuilder() { - if (occurredAtBuilder_ == null) { - occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOccurredAt(), - getParentForChildren(), - isClean()); - occurredAt_ = null; - } - return occurredAtBuilder_; - } - - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 5) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 5) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 5) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 5) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 5; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public Builder clearOutputUri() { - if (outputResultCase_ == 5) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 5; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public boolean hasError() { - return outputResultCase_ == 6; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 6) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 6) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 6; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 6; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 6 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 6) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 6; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 6) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 6) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 6) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 6) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 6)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 6; - onChanged();; - return errorBuilder_; - } - @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:flyteidl.event.WorkflowExecutionEvent) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowExecutionEvent) - private static final flyteidl.event.Event.WorkflowExecutionEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowExecutionEvent(); - } - - public static flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionEvent(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 flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.NodeExecutionEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - java.lang.String getProducerId(); - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - com.google.protobuf.ByteString - getProducerIdBytes(); - - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - int getPhaseValue(); - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - flyteidl.core.Execution.NodeExecution.Phase getPhase(); - - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - boolean hasOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - com.google.protobuf.Timestamp getOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); - - /** - * string input_uri = 5; - */ - java.lang.String getInputUri(); - /** - * string input_uri = 5; - */ - com.google.protobuf.ByteString - getInputUriBytes(); - - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 6; - */ - java.lang.String getOutputUri(); - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 6; - */ - com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - boolean hasError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - boolean hasWorkflowNodeMetadata(); - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata(); - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); - - /** - *
-     * Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - boolean hasParentTaskMetadata(); - /** - *
-     * Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata(); - /** - *
-     * Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder(); - - public flyteidl.event.Event.NodeExecutionEvent.OutputResultCase getOutputResultCase(); - - public flyteidl.event.Event.NodeExecutionEvent.TargetMetadataCase getTargetMetadataCase(); - } - /** - * Protobuf type {@code flyteidl.event.NodeExecutionEvent} - */ - public static final class NodeExecutionEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.NodeExecutionEvent) - NodeExecutionEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionEvent.newBuilder() to construct. - private NodeExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionEvent() { - producerId_ = ""; - phase_ = 0; - inputUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionEvent( - 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: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - producerId_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (occurredAt_ != null) { - subBuilder = occurredAt_.toBuilder(); - } - occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(occurredAt_); - occurredAt_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - inputUri_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 6; - outputResult_ = s; - break; - } - case 58: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 7) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 7; - break; - } - case 66: { - flyteidl.event.Event.WorkflowNodeMetadata.Builder subBuilder = null; - if (targetMetadataCase_ == 8) { - subBuilder = ((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_).toBuilder(); - } - targetMetadata_ = - input.readMessage(flyteidl.event.Event.WorkflowNodeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); - targetMetadata_ = subBuilder.buildPartial(); - } - targetMetadataCase_ = 8; - break; - } - case 74: { - flyteidl.event.Event.ParentTaskExecutionMetadata.Builder subBuilder = null; - if (parentTaskMetadata_ != null) { - subBuilder = parentTaskMetadata_.toBuilder(); - } - parentTaskMetadata_ = input.readMessage(flyteidl.event.Event.ParentTaskExecutionMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parentTaskMetadata_); - parentTaskMetadata_ = 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 flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); - } - - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUT_URI(6), - ERROR(7), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 6: return OUTPUT_URI; - case 7: return ERROR; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - private int targetMetadataCase_ = 0; - private java.lang.Object targetMetadata_; - public enum TargetMetadataCase - implements com.google.protobuf.Internal.EnumLite { - WORKFLOW_NODE_METADATA(8), - TARGETMETADATA_NOT_SET(0); - private final int value; - private TargetMetadataCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetMetadataCase valueOf(int value) { - return forNumber(value); - } - - public static TargetMetadataCase forNumber(int value) { - switch (value) { - case 8: return WORKFLOW_NODE_METADATA; - case 0: return TARGETMETADATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetMetadataCase - getTargetMetadataCase() { - return TargetMetadataCase.forNumber( - targetMetadataCase_); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int PRODUCER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object producerId_; - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - 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(); - producerId_ = s; - return s; - } - } - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PHASE_FIELD_NUMBER = 3; - private int phase_; - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.NodeExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; - } - - public static final int OCCURRED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp occurredAt_; - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public boolean hasOccurredAt() { - return occurredAt_ != null; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - return getOccurredAt(); - } - - public static final int INPUT_URI_FIELD_NUMBER = 5; - private volatile java.lang.Object inputUri_; - /** - * string input_uri = 5; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - 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(); - inputUri_ = s; - return s; - } - } - /** - * string input_uri = 5; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 6; - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 6; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 6) { - ref = outputResult_; - } - 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(); - if (outputResultCase_ == 6) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 6; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 6) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 6) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 7; - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public boolean hasError() { - return outputResultCase_ == 7; - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 7) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 7) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public boolean hasWorkflowNodeMetadata() { - return targetMetadataCase_ == 8; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { - if (targetMetadataCase_ == 8) { - return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { - if (targetMetadataCase_ == 8) { - return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - - public static final int PARENT_TASK_METADATA_FIELD_NUMBER = 9; - private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_; - /** - *
-     * Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public boolean hasParentTaskMetadata() { - return parentTaskMetadata_ != null; - } - /** - *
-     * Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { - return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; - } - /** - *
-     * Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { - return getParentTaskMetadata(); - } - - 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 (!getProducerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); - } - if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(3, phase_); - } - if (occurredAt_ != null) { - output.writeMessage(4, getOccurredAt()); - } - if (!getInputUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, inputUri_); - } - if (outputResultCase_ == 6) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, outputResult_); - } - if (outputResultCase_ == 7) { - output.writeMessage(7, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (targetMetadataCase_ == 8) { - output.writeMessage(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); - } - if (parentTaskMetadata_ != null) { - output.writeMessage(9, getParentTaskMetadata()); - } - 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 (!getProducerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); - } - if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, phase_); - } - if (occurredAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOccurredAt()); - } - if (!getInputUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputUri_); - } - if (outputResultCase_ == 6) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, outputResult_); - } - if (outputResultCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (targetMetadataCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); - } - if (parentTaskMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getParentTaskMetadata()); - } - 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 flyteidl.event.Event.NodeExecutionEvent)) { - return super.equals(obj); - } - flyteidl.event.Event.NodeExecutionEvent other = (flyteidl.event.Event.NodeExecutionEvent) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getProducerId() - .equals(other.getProducerId())) return false; - if (phase_ != other.phase_) return false; - if (hasOccurredAt() != other.hasOccurredAt()) return false; - if (hasOccurredAt()) { - if (!getOccurredAt() - .equals(other.getOccurredAt())) return false; - } - if (!getInputUri() - .equals(other.getInputUri())) return false; - if (hasParentTaskMetadata() != other.hasParentTaskMetadata()) return false; - if (hasParentTaskMetadata()) { - if (!getParentTaskMetadata() - .equals(other.getParentTaskMetadata())) return false; - } - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 6: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 7: - if (!getError() - .equals(other.getError())) return false; - break; - case 0: - default: - } - if (!getTargetMetadataCase().equals(other.getTargetMetadataCase())) return false; - switch (targetMetadataCase_) { - case 8: - if (!getWorkflowNodeMetadata() - .equals(other.getWorkflowNodeMetadata())) 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(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; - hash = (53 * hash) + getProducerId().hashCode(); - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (hasOccurredAt()) { - hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; - hash = (53 * hash) + getOccurredAt().hashCode(); - } - hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getInputUri().hashCode(); - if (hasParentTaskMetadata()) { - hash = (37 * hash) + PARENT_TASK_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getParentTaskMetadata().hashCode(); - } - switch (outputResultCase_) { - case 6: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 7: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - switch (targetMetadataCase_) { - case 8: - hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.NodeExecutionEvent 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 flyteidl.event.Event.NodeExecutionEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.NodeExecutionEvent 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 flyteidl.event.Event.NodeExecutionEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.NodeExecutionEvent 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(flyteidl.event.Event.NodeExecutionEvent 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 flyteidl.event.NodeExecutionEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.NodeExecutionEvent) - flyteidl.event.Event.NodeExecutionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); - } - - // Construct using flyteidl.event.Event.NodeExecutionEvent.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - producerId_ = ""; - - phase_ = 0; - - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - inputUri_ = ""; - - if (parentTaskMetadataBuilder_ == null) { - parentTaskMetadata_ = null; - } else { - parentTaskMetadata_ = null; - parentTaskMetadataBuilder_ = null; - } - outputResultCase_ = 0; - outputResult_ = null; - targetMetadataCase_ = 0; - targetMetadata_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.NodeExecutionEvent getDefaultInstanceForType() { - return flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.NodeExecutionEvent build() { - flyteidl.event.Event.NodeExecutionEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.NodeExecutionEvent buildPartial() { - flyteidl.event.Event.NodeExecutionEvent result = new flyteidl.event.Event.NodeExecutionEvent(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.producerId_ = producerId_; - result.phase_ = phase_; - if (occurredAtBuilder_ == null) { - result.occurredAt_ = occurredAt_; - } else { - result.occurredAt_ = occurredAtBuilder_.build(); - } - result.inputUri_ = inputUri_; - if (outputResultCase_ == 6) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 7) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - if (targetMetadataCase_ == 8) { - if (workflowNodeMetadataBuilder_ == null) { - result.targetMetadata_ = targetMetadata_; - } else { - result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); - } - } - if (parentTaskMetadataBuilder_ == null) { - result.parentTaskMetadata_ = parentTaskMetadata_; - } else { - result.parentTaskMetadata_ = parentTaskMetadataBuilder_.build(); - } - result.outputResultCase_ = outputResultCase_; - result.targetMetadataCase_ = targetMetadataCase_; - 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 flyteidl.event.Event.NodeExecutionEvent) { - return mergeFrom((flyteidl.event.Event.NodeExecutionEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.NodeExecutionEvent other) { - if (other == flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getProducerId().isEmpty()) { - producerId_ = other.producerId_; - onChanged(); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.hasOccurredAt()) { - mergeOccurredAt(other.getOccurredAt()); - } - if (!other.getInputUri().isEmpty()) { - inputUri_ = other.inputUri_; - onChanged(); - } - if (other.hasParentTaskMetadata()) { - mergeParentTaskMetadata(other.getParentTaskMetadata()); - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 6; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUTRESULT_NOT_SET: { - break; - } - } - switch (other.getTargetMetadataCase()) { - case WORKFLOW_NODE_METADATA: { - mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); - break; - } - case TARGETMETADATA_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 { - flyteidl.event.Event.NodeExecutionEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.NodeExecutionEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int targetMetadataCase_ = 0; - private java.lang.Object targetMetadata_; - public TargetMetadataCase - getTargetMetadataCase() { - return TargetMetadataCase.forNumber( - targetMetadataCase_); - } - - public Builder clearTargetMetadata() { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object producerId_ = ""; - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - producerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder setProducerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - producerId_ = value; - onChanged(); - return this; - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder clearProducerId() { - - producerId_ = getDefaultInstance().getProducerId(); - onChanged(); - return this; - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder setProducerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - producerId_ = value; - onChanged(); - return this; - } - - private int phase_ = 0; - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.NodeExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp occurredAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public boolean hasOccurredAt() { - return occurredAtBuilder_ != null || occurredAt_ != null; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - if (occurredAtBuilder_ == null) { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } else { - return occurredAtBuilder_.getMessage(); - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder setOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - occurredAt_ = value; - onChanged(); - } else { - occurredAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder setOccurredAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (occurredAtBuilder_ == null) { - occurredAt_ = builderForValue.build(); - onChanged(); - } else { - occurredAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (occurredAt_ != null) { - occurredAt_ = - com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); - } else { - occurredAt_ = value; - } - onChanged(); - } else { - occurredAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder clearOccurredAt() { - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - onChanged(); - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { - - onChanged(); - return getOccurredAtFieldBuilder().getBuilder(); - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - if (occurredAtBuilder_ != null) { - return occurredAtBuilder_.getMessageOrBuilder(); - } else { - return occurredAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOccurredAtFieldBuilder() { - if (occurredAtBuilder_ == null) { - occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOccurredAt(), - getParentForChildren(), - isClean()); - occurredAt_ = null; - } - return occurredAtBuilder_; - } - - private java.lang.Object inputUri_ = ""; - /** - * string input_uri = 5; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string input_uri = 5; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string input_uri = 5; - */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputUri_ = value; - onChanged(); - return this; - } - /** - * string input_uri = 5; - */ - public Builder clearInputUri() { - - inputUri_ = getDefaultInstance().getInputUri(); - onChanged(); - return this; - } - /** - * string input_uri = 5; - */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputUri_ = value; - onChanged(); - return this; - } - - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 6) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 6) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 6) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 6) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 6; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public Builder clearOutputUri() { - if (outputResultCase_ == 6) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 6; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public boolean hasError() { - return outputResultCase_ == 7; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 7) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 7) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 7; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 7; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 7 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 7) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 7; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 7) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 7) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 7) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 7) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 7)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 7; - onChanged();; - return errorBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public boolean hasWorkflowNodeMetadata() { - return targetMetadataCase_ == 8; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8) { - return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } else { - if (targetMetadataCase_ == 8) { - return workflowNodeMetadataBuilder_.getMessage(); - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder setWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { - if (workflowNodeMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetMetadata_ = value; - onChanged(); - } else { - workflowNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder setWorkflowNodeMetadata( - flyteidl.event.Event.WorkflowNodeMetadata.Builder builderForValue) { - if (workflowNodeMetadataBuilder_ == null) { - targetMetadata_ = builderForValue.build(); - onChanged(); - } else { - workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder mergeWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8 && - targetMetadata_ != flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) { - targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.newBuilder((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_) - .mergeFrom(value).buildPartial(); - } else { - targetMetadata_ = value; - } - onChanged(); - } else { - if (targetMetadataCase_ == 8) { - workflowNodeMetadataBuilder_.mergeFrom(value); - } - workflowNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder clearWorkflowNodeMetadata() { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - } - } else { - if (targetMetadataCase_ == 8) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - } - workflowNodeMetadataBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { - return getWorkflowNodeMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { - if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { - return workflowNodeMetadataBuilder_.getMessageOrBuilder(); - } else { - if (targetMetadataCase_ == 8) { - return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> - getWorkflowNodeMetadataFieldBuilder() { - if (workflowNodeMetadataBuilder_ == null) { - if (!(targetMetadataCase_ == 8)) { - targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder>( - (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_, - getParentForChildren(), - isClean()); - targetMetadata_ = null; - } - targetMetadataCase_ = 8; - onChanged();; - return workflowNodeMetadataBuilder_; - } - - private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> parentTaskMetadataBuilder_; - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public boolean hasParentTaskMetadata() { - return parentTaskMetadataBuilder_ != null || parentTaskMetadata_ != null; - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { - if (parentTaskMetadataBuilder_ == null) { - return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; - } else { - return parentTaskMetadataBuilder_.getMessage(); - } - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public Builder setParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { - if (parentTaskMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parentTaskMetadata_ = value; - onChanged(); - } else { - parentTaskMetadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public Builder setParentTaskMetadata( - flyteidl.event.Event.ParentTaskExecutionMetadata.Builder builderForValue) { - if (parentTaskMetadataBuilder_ == null) { - parentTaskMetadata_ = builderForValue.build(); - onChanged(); - } else { - parentTaskMetadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public Builder mergeParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { - if (parentTaskMetadataBuilder_ == null) { - if (parentTaskMetadata_ != null) { - parentTaskMetadata_ = - flyteidl.event.Event.ParentTaskExecutionMetadata.newBuilder(parentTaskMetadata_).mergeFrom(value).buildPartial(); - } else { - parentTaskMetadata_ = value; - } - onChanged(); - } else { - parentTaskMetadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public Builder clearParentTaskMetadata() { - if (parentTaskMetadataBuilder_ == null) { - parentTaskMetadata_ = null; - onChanged(); - } else { - parentTaskMetadata_ = null; - parentTaskMetadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadata.Builder getParentTaskMetadataBuilder() { - - onChanged(); - return getParentTaskMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { - if (parentTaskMetadataBuilder_ != null) { - return parentTaskMetadataBuilder_.getMessageOrBuilder(); - } else { - return parentTaskMetadata_ == null ? - flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; - } - } - /** - *
-       * Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> - getParentTaskMetadataFieldBuilder() { - if (parentTaskMetadataBuilder_ == null) { - parentTaskMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder>( - getParentTaskMetadata(), - getParentForChildren(), - isClean()); - parentTaskMetadata_ = null; - } - return parentTaskMetadataBuilder_; - } - @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:flyteidl.event.NodeExecutionEvent) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.NodeExecutionEvent) - private static final flyteidl.event.Event.NodeExecutionEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.NodeExecutionEvent(); - } - - public static flyteidl.event.Event.NodeExecutionEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionEvent(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 flyteidl.event.Event.NodeExecutionEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowNodeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowNodeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - boolean hasExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - } - /** - *
-   * For Workflow Nodes we need to send information about the workflow that's launched
-   * 
- * - * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} - */ - public static final class WorkflowNodeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowNodeMetadata) - WorkflowNodeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowNodeMetadata.newBuilder() to construct. - private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowNodeMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowNodeMetadata( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = 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 flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); - } - - public static final int EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - 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 (executionId_ != null) { - output.writeMessage(1, getExecutionId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecutionId()); - } - 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 flyteidl.event.Event.WorkflowNodeMetadata)) { - return super.equals(obj); - } - flyteidl.event.Event.WorkflowNodeMetadata other = (flyteidl.event.Event.WorkflowNodeMetadata) obj; - - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) 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 (hasExecutionId()) { - hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowNodeMetadata 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 flyteidl.event.Event.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowNodeMetadata 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 flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowNodeMetadata 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(flyteidl.event.Event.WorkflowNodeMetadata 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; - } - /** - *
-     * For Workflow Nodes we need to send information about the workflow that's launched
-     * 
- * - * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowNodeMetadata) - flyteidl.event.Event.WorkflowNodeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); - } - - // Construct using flyteidl.event.Event.WorkflowNodeMetadata.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 (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowNodeMetadata build() { - flyteidl.event.Event.WorkflowNodeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowNodeMetadata buildPartial() { - flyteidl.event.Event.WorkflowNodeMetadata result = new flyteidl.event.Event.WorkflowNodeMetadata(this); - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.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 flyteidl.event.Event.WorkflowNodeMetadata) { - return mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.WorkflowNodeMetadata other) { - if (other == flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) return this; - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - 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 { - flyteidl.event.Event.WorkflowNodeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.WorkflowNodeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - @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:flyteidl.event.WorkflowNodeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowNodeMetadata) - private static final flyteidl.event.Event.WorkflowNodeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowNodeMetadata(); - } - - public static flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowNodeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowNodeMetadata(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 flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParentTaskExecutionMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.ParentTaskExecutionMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.event.ParentTaskExecutionMetadata} - */ - public static final class ParentTaskExecutionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.ParentTaskExecutionMetadata) - ParentTaskExecutionMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParentTaskExecutionMetadata.newBuilder() to construct. - private ParentTaskExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParentTaskExecutionMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParentTaskExecutionMetadata( - 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: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = 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 flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - 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()); - } - 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()); - } - 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 flyteidl.event.Event.ParentTaskExecutionMetadata)) { - return super.equals(obj); - } - flyteidl.event.Event.ParentTaskExecutionMetadata other = (flyteidl.event.Event.ParentTaskExecutionMetadata) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata 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 flyteidl.event.Event.ParentTaskExecutionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata 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 flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata 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(flyteidl.event.Event.ParentTaskExecutionMetadata 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 flyteidl.event.ParentTaskExecutionMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.ParentTaskExecutionMetadata) - flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); - } - - // Construct using flyteidl.event.Event.ParentTaskExecutionMetadata.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 (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { - return flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.ParentTaskExecutionMetadata build() { - flyteidl.event.Event.ParentTaskExecutionMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.ParentTaskExecutionMetadata buildPartial() { - flyteidl.event.Event.ParentTaskExecutionMetadata result = new flyteidl.event.Event.ParentTaskExecutionMetadata(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.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 flyteidl.event.Event.ParentTaskExecutionMetadata) { - return mergeFrom((flyteidl.event.Event.ParentTaskExecutionMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.ParentTaskExecutionMetadata other) { - if (other == flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - 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 { - flyteidl.event.Event.ParentTaskExecutionMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.ParentTaskExecutionMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @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:flyteidl.event.ParentTaskExecutionMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.ParentTaskExecutionMetadata) - private static final flyteidl.event.Event.ParentTaskExecutionMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.ParentTaskExecutionMetadata(); - } - - public static flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParentTaskExecutionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParentTaskExecutionMetadata(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 flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.TaskExecutionEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - boolean hasTaskId(); - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); - - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - boolean hasParentNodeExecutionId(); - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId(); - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder(); - - /** - *
-     * retry attempt number for this task, ie., 2 for the second attempt
-     * 
- * - * uint32 retry_attempt = 3; - */ - int getRetryAttempt(); - - /** - *
-     * Phase associated with the event
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - int getPhaseValue(); - /** - *
-     * Phase associated with the event
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - flyteidl.core.Execution.TaskExecution.Phase getPhase(); - - /** - *
-     * id of the process that sent this event, mainly for trace debugging
-     * 
- * - * string producer_id = 5; - */ - java.lang.String getProducerId(); - /** - *
-     * id of the process that sent this event, mainly for trace debugging
-     * 
- * - * string producer_id = 5; - */ - com.google.protobuf.ByteString - getProducerIdBytes(); - - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - java.util.List - getLogsList(); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - flyteidl.core.Execution.TaskLog getLogs(int index); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - int getLogsCount(); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - java.util.List - getLogsOrBuilderList(); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index); - - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - boolean hasOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - com.google.protobuf.Timestamp getOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); - - /** - *
-     * URI of the input file, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string input_uri = 8; - */ - java.lang.String getInputUri(); - /** - *
-     * URI of the input file, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string input_uri = 8; - */ - com.google.protobuf.ByteString - getInputUriBytes(); - - /** - *
-     * URI to the output of the execution, it will be in a format that encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 9; - */ - java.lang.String getOutputUri(); - /** - *
-     * URI to the output of the execution, it will be in a format that encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 9; - */ - com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - boolean hasError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - boolean hasCustomInfo(); - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - com.google.protobuf.Struct getCustomInfo(); - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); - - /** - *
-     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-     * that should be recorded regardless of the lack of phase change.
-     * The version field should be incremented when metadata changes across the duration of an individual phase.
-     * 
- * - * uint32 phase_version = 12; - */ - int getPhaseVersion(); - - public flyteidl.event.Event.TaskExecutionEvent.OutputResultCase getOutputResultCase(); - } - /** - *
-   * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
-   * 
- * - * Protobuf type {@code flyteidl.event.TaskExecutionEvent} - */ - public static final class TaskExecutionEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.TaskExecutionEvent) - TaskExecutionEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionEvent.newBuilder() to construct. - private TaskExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionEvent() { - phase_ = 0; - producerId_ = ""; - logs_ = java.util.Collections.emptyList(); - inputUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionEvent( - 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: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (taskId_ != null) { - subBuilder = taskId_.toBuilder(); - } - taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskId_); - taskId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (parentNodeExecutionId_ != null) { - subBuilder = parentNodeExecutionId_.toBuilder(); - } - parentNodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parentNodeExecutionId_); - parentNodeExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - retryAttempt_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - producerId_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - logs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - logs_.add( - input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (occurredAt_ != null) { - subBuilder = occurredAt_.toBuilder(); - } - occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(occurredAt_); - occurredAt_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - inputUri_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 9; - outputResult_ = s; - break; - } - case 82: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 10) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 10; - break; - } - case 90: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (customInfo_ != null) { - subBuilder = customInfo_.toBuilder(); - } - customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customInfo_); - customInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 96: { - - phaseVersion_ = input.readUInt32(); - 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_ & 0x00000020) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); - } - - private int bitField0_; - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUT_URI(9), - ERROR(10), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 9: return OUTPUT_URI; - case 10: return ERROR; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public static final int TASK_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public boolean hasTaskId() { - return taskId_ != null; - } - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - return getTaskId(); - } - - public static final int PARENT_NODE_EXECUTION_ID_FIELD_NUMBER = 2; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_; - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public boolean hasParentNodeExecutionId() { - return parentNodeExecutionId_ != null; - } - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { - return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; - } - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { - return getParentNodeExecutionId(); - } - - public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; - private int retryAttempt_; - /** - *
-     * retry attempt number for this task, ie., 2 for the second attempt
-     * 
- * - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - - public static final int PHASE_FIELD_NUMBER = 4; - private int phase_; - /** - *
-     * Phase associated with the event
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-     * Phase associated with the event
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - - public static final int PRODUCER_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object producerId_; - /** - *
-     * id of the process that sent this event, mainly for trace debugging
-     * 
- * - * string producer_id = 5; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - 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(); - producerId_ = s; - return s; - } - } - /** - *
-     * id of the process that sent this event, mainly for trace debugging
-     * 
- * - * string producer_id = 5; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOGS_FIELD_NUMBER = 6; - private java.util.List logs_; - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List getLogsList() { - return logs_; - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public int getLogsCount() { - return logs_.size(); - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - return logs_.get(index); - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - return logs_.get(index); - } - - public static final int OCCURRED_AT_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp occurredAt_; - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public boolean hasOccurredAt() { - return occurredAt_ != null; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - return getOccurredAt(); - } - - public static final int INPUT_URI_FIELD_NUMBER = 8; - private volatile java.lang.Object inputUri_; - /** - *
-     * URI of the input file, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string input_uri = 8; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - 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(); - inputUri_ = s; - return s; - } - } - /** - *
-     * URI of the input file, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string input_uri = 8; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 9; - /** - *
-     * URI to the output of the execution, it will be in a format that encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 9; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 9) { - ref = outputResult_; - } - 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(); - if (outputResultCase_ == 9) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * URI to the output of the execution, it will be in a format that encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 9; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 9) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 9) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 10; - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public boolean hasError() { - return outputResultCase_ == 10; - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 10) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 10) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int CUSTOM_INFO_FIELD_NUMBER = 11; - private com.google.protobuf.Struct customInfo_; - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public boolean hasCustomInfo() { - return customInfo_ != null; - } - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.Struct getCustomInfo() { - return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { - return getCustomInfo(); - } - - public static final int PHASE_VERSION_FIELD_NUMBER = 12; - private int phaseVersion_; - /** - *
-     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-     * that should be recorded regardless of the lack of phase change.
-     * The version field should be incremented when metadata changes across the duration of an individual phase.
-     * 
- * - * uint32 phase_version = 12; - */ - public int getPhaseVersion() { - return phaseVersion_; - } - - 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 (taskId_ != null) { - output.writeMessage(1, getTaskId()); - } - if (parentNodeExecutionId_ != null) { - output.writeMessage(2, getParentNodeExecutionId()); - } - if (retryAttempt_ != 0) { - output.writeUInt32(3, retryAttempt_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(4, phase_); - } - if (!getProducerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, producerId_); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(6, logs_.get(i)); - } - if (occurredAt_ != null) { - output.writeMessage(7, getOccurredAt()); - } - if (!getInputUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, inputUri_); - } - if (outputResultCase_ == 9) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, outputResult_); - } - if (outputResultCase_ == 10) { - output.writeMessage(10, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (customInfo_ != null) { - output.writeMessage(11, getCustomInfo()); - } - if (phaseVersion_ != 0) { - output.writeUInt32(12, phaseVersion_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (taskId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTaskId()); - } - if (parentNodeExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getParentNodeExecutionId()); - } - if (retryAttempt_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, retryAttempt_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, phase_); - } - if (!getProducerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, producerId_); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, logs_.get(i)); - } - if (occurredAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getOccurredAt()); - } - if (!getInputUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, inputUri_); - } - if (outputResultCase_ == 9) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, outputResult_); - } - if (outputResultCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (customInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getCustomInfo()); - } - if (phaseVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, phaseVersion_); - } - 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 flyteidl.event.Event.TaskExecutionEvent)) { - return super.equals(obj); - } - flyteidl.event.Event.TaskExecutionEvent other = (flyteidl.event.Event.TaskExecutionEvent) obj; - - if (hasTaskId() != other.hasTaskId()) return false; - if (hasTaskId()) { - if (!getTaskId() - .equals(other.getTaskId())) return false; - } - if (hasParentNodeExecutionId() != other.hasParentNodeExecutionId()) return false; - if (hasParentNodeExecutionId()) { - if (!getParentNodeExecutionId() - .equals(other.getParentNodeExecutionId())) return false; - } - if (getRetryAttempt() - != other.getRetryAttempt()) return false; - if (phase_ != other.phase_) return false; - if (!getProducerId() - .equals(other.getProducerId())) return false; - if (!getLogsList() - .equals(other.getLogsList())) return false; - if (hasOccurredAt() != other.hasOccurredAt()) return false; - if (hasOccurredAt()) { - if (!getOccurredAt() - .equals(other.getOccurredAt())) return false; - } - if (!getInputUri() - .equals(other.getInputUri())) return false; - if (hasCustomInfo() != other.hasCustomInfo()) return false; - if (hasCustomInfo()) { - if (!getCustomInfo() - .equals(other.getCustomInfo())) return false; - } - if (getPhaseVersion() - != other.getPhaseVersion()) return false; - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 9: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 10: - if (!getError() - .equals(other.getError())) 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(); - if (hasTaskId()) { - hash = (37 * hash) + TASK_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskId().hashCode(); - } - if (hasParentNodeExecutionId()) { - hash = (37 * hash) + PARENT_NODE_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getParentNodeExecutionId().hashCode(); - } - hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; - hash = (53 * hash) + getRetryAttempt(); - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; - hash = (53 * hash) + getProducerId().hashCode(); - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - if (hasOccurredAt()) { - hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; - hash = (53 * hash) + getOccurredAt().hashCode(); - } - hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getInputUri().hashCode(); - if (hasCustomInfo()) { - hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; - hash = (53 * hash) + getCustomInfo().hashCode(); - } - hash = (37 * hash) + PHASE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getPhaseVersion(); - switch (outputResultCase_) { - case 9: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 10: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskExecutionEvent 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 flyteidl.event.Event.TaskExecutionEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskExecutionEvent 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 flyteidl.event.Event.TaskExecutionEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskExecutionEvent 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(flyteidl.event.Event.TaskExecutionEvent 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; - } - /** - *
-     * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
-     * 
- * - * Protobuf type {@code flyteidl.event.TaskExecutionEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.TaskExecutionEvent) - flyteidl.event.Event.TaskExecutionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); - } - - // Construct using flyteidl.event.Event.TaskExecutionEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (taskIdBuilder_ == null) { - taskId_ = null; - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - if (parentNodeExecutionIdBuilder_ == null) { - parentNodeExecutionId_ = null; - } else { - parentNodeExecutionId_ = null; - parentNodeExecutionIdBuilder_ = null; - } - retryAttempt_ = 0; - - phase_ = 0; - - producerId_ = ""; - - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - logsBuilder_.clear(); - } - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - inputUri_ = ""; - - if (customInfoBuilder_ == null) { - customInfo_ = null; - } else { - customInfo_ = null; - customInfoBuilder_ = null; - } - phaseVersion_ = 0; - - outputResultCase_ = 0; - outputResult_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.TaskExecutionEvent getDefaultInstanceForType() { - return flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.TaskExecutionEvent build() { - flyteidl.event.Event.TaskExecutionEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.TaskExecutionEvent buildPartial() { - flyteidl.event.Event.TaskExecutionEvent result = new flyteidl.event.Event.TaskExecutionEvent(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (taskIdBuilder_ == null) { - result.taskId_ = taskId_; - } else { - result.taskId_ = taskIdBuilder_.build(); - } - if (parentNodeExecutionIdBuilder_ == null) { - result.parentNodeExecutionId_ = parentNodeExecutionId_; - } else { - result.parentNodeExecutionId_ = parentNodeExecutionIdBuilder_.build(); - } - result.retryAttempt_ = retryAttempt_; - result.phase_ = phase_; - result.producerId_ = producerId_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - if (occurredAtBuilder_ == null) { - result.occurredAt_ = occurredAt_; - } else { - result.occurredAt_ = occurredAtBuilder_.build(); - } - result.inputUri_ = inputUri_; - if (outputResultCase_ == 9) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 10) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - if (customInfoBuilder_ == null) { - result.customInfo_ = customInfo_; - } else { - result.customInfo_ = customInfoBuilder_.build(); - } - result.phaseVersion_ = phaseVersion_; - result.bitField0_ = to_bitField0_; - result.outputResultCase_ = outputResultCase_; - 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 flyteidl.event.Event.TaskExecutionEvent) { - return mergeFrom((flyteidl.event.Event.TaskExecutionEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.TaskExecutionEvent other) { - if (other == flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance()) return this; - if (other.hasTaskId()) { - mergeTaskId(other.getTaskId()); - } - if (other.hasParentNodeExecutionId()) { - mergeParentNodeExecutionId(other.getParentNodeExecutionId()); - } - if (other.getRetryAttempt() != 0) { - setRetryAttempt(other.getRetryAttempt()); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (!other.getProducerId().isEmpty()) { - producerId_ = other.producerId_; - onChanged(); - } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000020); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogsFieldBuilder() : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - if (other.hasOccurredAt()) { - mergeOccurredAt(other.getOccurredAt()); - } - if (!other.getInputUri().isEmpty()) { - inputUri_ = other.inputUri_; - onChanged(); - } - if (other.hasCustomInfo()) { - mergeCustomInfo(other.getCustomInfo()); - } - if (other.getPhaseVersion() != 0) { - setPhaseVersion(other.getPhaseVersion()); - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 9; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUTRESULT_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 { - flyteidl.event.Event.TaskExecutionEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.TaskExecutionEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public boolean hasTaskId() { - return taskIdBuilder_ != null || taskId_ != null; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - if (taskIdBuilder_ == null) { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } else { - return taskIdBuilder_.getMessage(); - } - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskId_ = value; - onChanged(); - } else { - taskIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder setTaskId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (taskIdBuilder_ == null) { - taskId_ = builderForValue.build(); - onChanged(); - } else { - taskIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (taskId_ != null) { - taskId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); - } else { - taskId_ = value; - } - onChanged(); - } else { - taskIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder clearTaskId() { - if (taskIdBuilder_ == null) { - taskId_ = null; - onChanged(); - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - - return this; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { - - onChanged(); - return getTaskIdFieldBuilder().getBuilder(); - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - if (taskIdBuilder_ != null) { - return taskIdBuilder_.getMessageOrBuilder(); - } else { - return taskId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getTaskIdFieldBuilder() { - if (taskIdBuilder_ == null) { - taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getTaskId(), - getParentForChildren(), - isClean()); - taskId_ = null; - } - return taskIdBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionIdBuilder_; - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public boolean hasParentNodeExecutionId() { - return parentNodeExecutionIdBuilder_ != null || parentNodeExecutionId_ != null; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { - if (parentNodeExecutionIdBuilder_ == null) { - return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; - } else { - return parentNodeExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public Builder setParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (parentNodeExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parentNodeExecutionId_ = value; - onChanged(); - } else { - parentNodeExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public Builder setParentNodeExecutionId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (parentNodeExecutionIdBuilder_ == null) { - parentNodeExecutionId_ = builderForValue.build(); - onChanged(); - } else { - parentNodeExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public Builder mergeParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (parentNodeExecutionIdBuilder_ == null) { - if (parentNodeExecutionId_ != null) { - parentNodeExecutionId_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecutionId_).mergeFrom(value).buildPartial(); - } else { - parentNodeExecutionId_ = value; - } - onChanged(); - } else { - parentNodeExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public Builder clearParentNodeExecutionId() { - if (parentNodeExecutionIdBuilder_ == null) { - parentNodeExecutionId_ = null; - onChanged(); - } else { - parentNodeExecutionId_ = null; - parentNodeExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionIdBuilder() { - - onChanged(); - return getParentNodeExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { - if (parentNodeExecutionIdBuilder_ != null) { - return parentNodeExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return parentNodeExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; - } - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getParentNodeExecutionIdFieldBuilder() { - if (parentNodeExecutionIdBuilder_ == null) { - parentNodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getParentNodeExecutionId(), - getParentForChildren(), - isClean()); - parentNodeExecutionId_ = null; - } - return parentNodeExecutionIdBuilder_; - } - - private int retryAttempt_ ; - /** - *
-       * retry attempt number for this task, ie., 2 for the second attempt
-       * 
- * - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - /** - *
-       * retry attempt number for this task, ie., 2 for the second attempt
-       * 
- * - * uint32 retry_attempt = 3; - */ - public Builder setRetryAttempt(int value) { - - retryAttempt_ = value; - onChanged(); - return this; - } - /** - *
-       * retry attempt number for this task, ie., 2 for the second attempt
-       * 
- * - * uint32 retry_attempt = 3; - */ - public Builder clearRetryAttempt() { - - retryAttempt_ = 0; - onChanged(); - return this; - } - - private int phase_ = 0; - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private java.lang.Object producerId_ = ""; - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - producerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public Builder setProducerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - producerId_ = value; - onChanged(); - return this; - } - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public Builder clearProducerId() { - - producerId_ = getDefaultInstance().getProducerId(); - onChanged(); - return this; - } - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public Builder setProducerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - producerId_ = value; - onChanged(); - return this; - } - - private java.util.List logs_ = - java.util.Collections.emptyList(); - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; - - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs(flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs( - flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( - int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - if (logsBuilder_ == null) { - return logs_.get(index); } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( - logs_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - - private com.google.protobuf.Timestamp occurredAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public boolean hasOccurredAt() { - return occurredAtBuilder_ != null || occurredAt_ != null; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - if (occurredAtBuilder_ == null) { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } else { - return occurredAtBuilder_.getMessage(); - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public Builder setOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - occurredAt_ = value; - onChanged(); - } else { - occurredAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public Builder setOccurredAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (occurredAtBuilder_ == null) { - occurredAt_ = builderForValue.build(); - onChanged(); - } else { - occurredAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (occurredAt_ != null) { - occurredAt_ = - com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); - } else { - occurredAt_ = value; - } - onChanged(); - } else { - occurredAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public Builder clearOccurredAt() { - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - onChanged(); - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { - - onChanged(); - return getOccurredAtFieldBuilder().getBuilder(); - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - if (occurredAtBuilder_ != null) { - return occurredAtBuilder_.getMessageOrBuilder(); - } else { - return occurredAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOccurredAtFieldBuilder() { - if (occurredAtBuilder_ == null) { - occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOccurredAt(), - getParentForChildren(), - isClean()); - occurredAt_ = null; - } - return occurredAtBuilder_; - } - - private java.lang.Object inputUri_ = ""; - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputUri_ = value; - onChanged(); - return this; - } - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public Builder clearInputUri() { - - inputUri_ = getDefaultInstance().getInputUri(); - onChanged(); - return this; - } - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputUri_ = value; - onChanged(); - return this; - } - - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 9) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 9) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 9) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 9) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 9; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public Builder clearOutputUri() { - if (outputResultCase_ == 9) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 9; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public boolean hasError() { - return outputResultCase_ == 10; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 10) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 10) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 10; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 10; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 10 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 10) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 10; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 10) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 10) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 10) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 10) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 10)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 10; - onChanged();; - return errorBuilder_; - } - - private com.google.protobuf.Struct customInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public boolean hasCustomInfo() { - return customInfoBuilder_ != null || customInfo_ != null; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.Struct getCustomInfo() { - if (customInfoBuilder_ == null) { - return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } else { - return customInfoBuilder_.getMessage(); - } - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public Builder setCustomInfo(com.google.protobuf.Struct value) { - if (customInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customInfo_ = value; - onChanged(); - } else { - customInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public Builder setCustomInfo( - com.google.protobuf.Struct.Builder builderForValue) { - if (customInfoBuilder_ == null) { - customInfo_ = builderForValue.build(); - onChanged(); - } else { - customInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public Builder mergeCustomInfo(com.google.protobuf.Struct value) { - if (customInfoBuilder_ == null) { - if (customInfo_ != null) { - customInfo_ = - com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); - } else { - customInfo_ = value; - } - onChanged(); - } else { - customInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public Builder clearCustomInfo() { - if (customInfoBuilder_ == null) { - customInfo_ = null; - onChanged(); - } else { - customInfo_ = null; - customInfoBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { - - onChanged(); - return getCustomInfoFieldBuilder().getBuilder(); - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { - if (customInfoBuilder_ != null) { - return customInfoBuilder_.getMessageOrBuilder(); - } else { - return customInfo_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getCustomInfoFieldBuilder() { - if (customInfoBuilder_ == null) { - customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getCustomInfo(), - getParentForChildren(), - isClean()); - customInfo_ = null; - } - return customInfoBuilder_; - } - - private int phaseVersion_ ; - /** - *
-       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-       * that should be recorded regardless of the lack of phase change.
-       * The version field should be incremented when metadata changes across the duration of an individual phase.
-       * 
- * - * uint32 phase_version = 12; - */ - public int getPhaseVersion() { - return phaseVersion_; - } - /** - *
-       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-       * that should be recorded regardless of the lack of phase change.
-       * The version field should be incremented when metadata changes across the duration of an individual phase.
-       * 
- * - * uint32 phase_version = 12; - */ - public Builder setPhaseVersion(int value) { - - phaseVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-       * that should be recorded regardless of the lack of phase change.
-       * The version field should be incremented when metadata changes across the duration of an individual phase.
-       * 
- * - * uint32 phase_version = 12; - */ - public Builder clearPhaseVersion() { - - phaseVersion_ = 0; - 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:flyteidl.event.TaskExecutionEvent) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionEvent) - private static final flyteidl.event.Event.TaskExecutionEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.TaskExecutionEvent(); - } - - public static flyteidl.event.Event.TaskExecutionEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionEvent(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 flyteidl.event.Event.TaskExecutionEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_NodeExecutionEvent_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_TaskExecutionEvent_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_TaskExecutionEvent_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\032flyteidl/event/event.proto\022\016flyteidl.e" + - "vent\032\035flyteidl/core/execution.proto\032\036fly" + - "teidl/core/identifier.proto\032\037google/prot" + - "obuf/timestamp.proto\032\034google/protobuf/st" + - "ruct.proto\"\256\002\n\026WorkflowExecutionEvent\022@\n" + - "\014execution_id\030\001 \001(\0132*.flyteidl.core.Work" + - "flowExecutionIdentifier\022\023\n\013producer_id\030\002" + - " \001(\t\0225\n\005phase\030\003 \001(\0162&.flyteidl.core.Work" + - "flowExecution.Phase\022/\n\013occurred_at\030\004 \001(\013" + - "2\032.google.protobuf.Timestamp\022\024\n\noutput_u" + - "ri\030\005 \001(\tH\000\022.\n\005error\030\006 \001(\0132\035.flyteidl.cor" + - "e.ExecutionErrorH\000B\017\n\routput_result\"\321\003\n\022" + - "NodeExecutionEvent\0222\n\002id\030\001 \001(\0132&.flyteid" + - "l.core.NodeExecutionIdentifier\022\023\n\013produc" + - "er_id\030\002 \001(\t\0221\n\005phase\030\003 \001(\0162\".flyteidl.co" + - "re.NodeExecution.Phase\022/\n\013occurred_at\030\004 " + - "\001(\0132\032.google.protobuf.Timestamp\022\021\n\tinput" + - "_uri\030\005 \001(\t\022\024\n\noutput_uri\030\006 \001(\tH\000\022.\n\005erro" + - "r\030\007 \001(\0132\035.flyteidl.core.ExecutionErrorH\000" + - "\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyte" + - "idl.event.WorkflowNodeMetadataH\001\022I\n\024pare" + - "nt_task_metadata\030\t \001(\0132+.flyteidl.event." + - "ParentTaskExecutionMetadataB\017\n\routput_re" + - "sultB\021\n\017target_metadata\"X\n\024WorkflowNodeM" + - "etadata\022@\n\014execution_id\030\001 \001(\0132*.flyteidl" + - ".core.WorkflowExecutionIdentifier\"Q\n\033Par" + - "entTaskExecutionMetadata\0222\n\002id\030\001 \001(\0132&.f" + - "lyteidl.core.TaskExecutionIdentifier\"\357\003\n" + - "\022TaskExecutionEvent\022*\n\007task_id\030\001 \001(\0132\031.f" + - "lyteidl.core.Identifier\022H\n\030parent_node_e" + - "xecution_id\030\002 \001(\0132&.flyteidl.core.NodeEx" + - "ecutionIdentifier\022\025\n\rretry_attempt\030\003 \001(\r" + - "\0221\n\005phase\030\004 \001(\0162\".flyteidl.core.TaskExec" + - "ution.Phase\022\023\n\013producer_id\030\005 \001(\t\022$\n\004logs" + - "\030\006 \003(\0132\026.flyteidl.core.TaskLog\022/\n\013occurr" + - "ed_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022" + - "\021\n\tinput_uri\030\010 \001(\t\022\024\n\noutput_uri\030\t \001(\tH\000" + - "\022.\n\005error\030\n \001(\0132\035.flyteidl.core.Executio" + - "nErrorH\000\022,\n\013custom_info\030\013 \001(\0132\027.google.p" + - "rotobuf.Struct\022\025\n\rphase_version\030\014 \001(\rB\017\n" + - "\routput_resultB3Z1github.com/lyft/flytei" + - "dl/gen/pb-go/flyteidl/eventb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor, - new java.lang.String[] { "ExecutionId", "ProducerId", "Phase", "OccurredAt", "OutputUri", "Error", "OutputResult", }); - internal_static_flyteidl_event_NodeExecutionEvent_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_NodeExecutionEvent_descriptor, - new java.lang.String[] { "Id", "ProducerId", "Phase", "OccurredAt", "InputUri", "OutputUri", "Error", "WorkflowNodeMetadata", "ParentTaskMetadata", "OutputResult", "TargetMetadata", }); - internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor, - new java.lang.String[] { "ExecutionId", }); - internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_event_TaskExecutionEvent_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_TaskExecutionEvent_descriptor, - new java.lang.String[] { "TaskId", "ParentNodeExecutionId", "RetryAttempt", "Phase", "ProducerId", "Logs", "OccurredAt", "InputUri", "OutputUri", "Error", "CustomInfo", "PhaseVersion", "OutputResult", }); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java b/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java deleted file mode 100644 index 2d04618c4..000000000 --- a/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java +++ /dev/null @@ -1,759 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/array_job.proto - -package flyteidl.plugins; - -public final class ArrayJobOuterClass { - private ArrayJobOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ArrayJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.ArrayJob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
-     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-     * running instances might be more. This has to be a positive number if assigned. Default value is size.
-     * 
- * - * int64 parallelism = 1; - */ - long getParallelism(); - - /** - *
-     * Defines the number of instances to launch at most. This number should match the size of the input if the job
-     * requires processing of all input data. This has to be a positive number.
-     * +required.
-     * 
- * - * int64 size = 2; - */ - long getSize(); - - /** - *
-     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-     * assigned. Default value is size.
-     * 
- * - * int64 min_successes = 3; - */ - long getMinSuccesses(); - } - /** - *
-   * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
-   * will be executed concurrently.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.ArrayJob} - */ - public static final class ArrayJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.ArrayJob) - ArrayJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArrayJob.newBuilder() to construct. - private ArrayJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArrayJob() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArrayJob( - 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 8: { - - parallelism_ = input.readInt64(); - break; - } - case 16: { - - size_ = input.readInt64(); - break; - } - case 24: { - - minSuccesses_ = 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 flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); - } - - public static final int PARALLELISM_FIELD_NUMBER = 1; - private long parallelism_; - /** - *
-     * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
-     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-     * running instances might be more. This has to be a positive number if assigned. Default value is size.
-     * 
- * - * int64 parallelism = 1; - */ - public long getParallelism() { - return parallelism_; - } - - public static final int SIZE_FIELD_NUMBER = 2; - private long size_; - /** - *
-     * Defines the number of instances to launch at most. This number should match the size of the input if the job
-     * requires processing of all input data. This has to be a positive number.
-     * +required.
-     * 
- * - * int64 size = 2; - */ - public long getSize() { - return size_; - } - - public static final int MIN_SUCCESSES_FIELD_NUMBER = 3; - private long minSuccesses_; - /** - *
-     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-     * assigned. Default value is size.
-     * 
- * - * int64 min_successes = 3; - */ - public long getMinSuccesses() { - return minSuccesses_; - } - - 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 (parallelism_ != 0L) { - output.writeInt64(1, parallelism_); - } - if (size_ != 0L) { - output.writeInt64(2, size_); - } - if (minSuccesses_ != 0L) { - output.writeInt64(3, minSuccesses_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (parallelism_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, parallelism_); - } - if (size_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, size_); - } - if (minSuccesses_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, minSuccesses_); - } - 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob)) { - return super.equals(obj); - } - flyteidl.plugins.ArrayJobOuterClass.ArrayJob other = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) obj; - - if (getParallelism() - != other.getParallelism()) return false; - if (getSize() - != other.getSize()) return false; - if (getMinSuccesses() - != other.getMinSuccesses()) 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) + PARALLELISM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getParallelism()); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSize()); - hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinSuccesses()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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(flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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; - } - /** - *
-     * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
-     * will be executed concurrently.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.ArrayJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.ArrayJob) - flyteidl.plugins.ArrayJobOuterClass.ArrayJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); - } - - // Construct using flyteidl.plugins.ArrayJobOuterClass.ArrayJob.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(); - parallelism_ = 0L; - - size_ = 0L; - - minSuccesses_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { - return flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.ArrayJobOuterClass.ArrayJob build() { - flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.ArrayJobOuterClass.ArrayJob buildPartial() { - flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(this); - result.parallelism_ = parallelism_; - result.size_ = size_; - result.minSuccesses_ = minSuccesses_; - 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob) { - return mergeFrom((flyteidl.plugins.ArrayJobOuterClass.ArrayJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.ArrayJobOuterClass.ArrayJob other) { - if (other == flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance()) return this; - if (other.getParallelism() != 0L) { - setParallelism(other.getParallelism()); - } - if (other.getSize() != 0L) { - setSize(other.getSize()); - } - if (other.getMinSuccesses() != 0L) { - setMinSuccesses(other.getMinSuccesses()); - } - 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 { - flyteidl.plugins.ArrayJobOuterClass.ArrayJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long parallelism_ ; - /** - *
-       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
-       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-       * running instances might be more. This has to be a positive number if assigned. Default value is size.
-       * 
- * - * int64 parallelism = 1; - */ - public long getParallelism() { - return parallelism_; - } - /** - *
-       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
-       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-       * running instances might be more. This has to be a positive number if assigned. Default value is size.
-       * 
- * - * int64 parallelism = 1; - */ - public Builder setParallelism(long value) { - - parallelism_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
-       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-       * running instances might be more. This has to be a positive number if assigned. Default value is size.
-       * 
- * - * int64 parallelism = 1; - */ - public Builder clearParallelism() { - - parallelism_ = 0L; - onChanged(); - return this; - } - - private long size_ ; - /** - *
-       * Defines the number of instances to launch at most. This number should match the size of the input if the job
-       * requires processing of all input data. This has to be a positive number.
-       * +required.
-       * 
- * - * int64 size = 2; - */ - public long getSize() { - return size_; - } - /** - *
-       * Defines the number of instances to launch at most. This number should match the size of the input if the job
-       * requires processing of all input data. This has to be a positive number.
-       * +required.
-       * 
- * - * int64 size = 2; - */ - public Builder setSize(long value) { - - size_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines the number of instances to launch at most. This number should match the size of the input if the job
-       * requires processing of all input data. This has to be a positive number.
-       * +required.
-       * 
- * - * int64 size = 2; - */ - public Builder clearSize() { - - size_ = 0L; - onChanged(); - return this; - } - - private long minSuccesses_ ; - /** - *
-       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-       * assigned. Default value is size.
-       * 
- * - * int64 min_successes = 3; - */ - public long getMinSuccesses() { - return minSuccesses_; - } - /** - *
-       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-       * assigned. Default value is size.
-       * 
- * - * int64 min_successes = 3; - */ - public Builder setMinSuccesses(long value) { - - minSuccesses_ = value; - onChanged(); - return this; - } - /** - *
-       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-       * assigned. Default value is size.
-       * 
- * - * int64 min_successes = 3; - */ - public Builder clearMinSuccesses() { - - minSuccesses_ = 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:flyteidl.plugins.ArrayJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.ArrayJob) - private static final flyteidl.plugins.ArrayJobOuterClass.ArrayJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(); - } - - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrayJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArrayJob(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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_ArrayJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_ArrayJob_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 flyteidl/plugins/array_job.proto\022\020flyt" + - "eidl.plugins\"D\n\010ArrayJob\022\023\n\013parallelism\030" + - "\001 \001(\003\022\014\n\004size\030\002 \001(\003\022\025\n\rmin_successes\030\003 \001" + - "(\003B5Z3github.com/lyft/flyteidl/gen/pb-go" + - "/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_ArrayJob_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_ArrayJob_descriptor, - new java.lang.String[] { "Parallelism", "Size", "MinSuccesses", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/Presto.java b/gen/pb-java/flyteidl/plugins/Presto.java deleted file mode 100644 index 4ebb9a8be..000000000 --- a/gen/pb-java/flyteidl/plugins/Presto.java +++ /dev/null @@ -1,1031 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/presto.proto - -package flyteidl.plugins; - -public final class Presto { - private Presto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PrestoQueryOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.PrestoQuery) - com.google.protobuf.MessageOrBuilder { - - /** - * string routing_group = 1; - */ - java.lang.String getRoutingGroup(); - /** - * string routing_group = 1; - */ - com.google.protobuf.ByteString - getRoutingGroupBytes(); - - /** - * string catalog = 2; - */ - java.lang.String getCatalog(); - /** - * string catalog = 2; - */ - com.google.protobuf.ByteString - getCatalogBytes(); - - /** - * string schema = 3; - */ - java.lang.String getSchema(); - /** - * string schema = 3; - */ - com.google.protobuf.ByteString - getSchemaBytes(); - - /** - * string statement = 4; - */ - java.lang.String getStatement(); - /** - * string statement = 4; - */ - com.google.protobuf.ByteString - getStatementBytes(); - } - /** - *
-   * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field
-   * of a Presto task's TaskTemplate
-   * 
- * - * Protobuf type {@code flyteidl.plugins.PrestoQuery} - */ - public static final class PrestoQuery extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.PrestoQuery) - PrestoQueryOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrestoQuery.newBuilder() to construct. - private PrestoQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrestoQuery() { - routingGroup_ = ""; - catalog_ = ""; - schema_ = ""; - statement_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrestoQuery( - 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(); - - routingGroup_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - catalog_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - schema_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - statement_ = 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 flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Presto.PrestoQuery.class, flyteidl.plugins.Presto.PrestoQuery.Builder.class); - } - - public static final int ROUTING_GROUP_FIELD_NUMBER = 1; - private volatile java.lang.Object routingGroup_; - /** - * string routing_group = 1; - */ - public java.lang.String getRoutingGroup() { - java.lang.Object ref = routingGroup_; - 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(); - routingGroup_ = s; - return s; - } - } - /** - * string routing_group = 1; - */ - public com.google.protobuf.ByteString - getRoutingGroupBytes() { - java.lang.Object ref = routingGroup_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routingGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CATALOG_FIELD_NUMBER = 2; - private volatile java.lang.Object catalog_; - /** - * string catalog = 2; - */ - public java.lang.String getCatalog() { - java.lang.Object ref = catalog_; - 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(); - catalog_ = s; - return s; - } - } - /** - * string catalog = 2; - */ - public com.google.protobuf.ByteString - getCatalogBytes() { - java.lang.Object ref = catalog_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - catalog_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCHEMA_FIELD_NUMBER = 3; - private volatile java.lang.Object schema_; - /** - * string schema = 3; - */ - public java.lang.String getSchema() { - java.lang.Object ref = schema_; - 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(); - schema_ = s; - return s; - } - } - /** - * string schema = 3; - */ - public com.google.protobuf.ByteString - getSchemaBytes() { - java.lang.Object ref = schema_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATEMENT_FIELD_NUMBER = 4; - private volatile java.lang.Object statement_; - /** - * string statement = 4; - */ - public java.lang.String getStatement() { - java.lang.Object ref = statement_; - 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(); - statement_ = s; - return s; - } - } - /** - * string statement = 4; - */ - public com.google.protobuf.ByteString - getStatementBytes() { - java.lang.Object ref = statement_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statement_ = 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 (!getRoutingGroupBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, routingGroup_); - } - if (!getCatalogBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, catalog_); - } - if (!getSchemaBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schema_); - } - if (!getStatementBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, statement_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRoutingGroupBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, routingGroup_); - } - if (!getCatalogBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, catalog_); - } - if (!getSchemaBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schema_); - } - if (!getStatementBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, statement_); - } - 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 flyteidl.plugins.Presto.PrestoQuery)) { - return super.equals(obj); - } - flyteidl.plugins.Presto.PrestoQuery other = (flyteidl.plugins.Presto.PrestoQuery) obj; - - if (!getRoutingGroup() - .equals(other.getRoutingGroup())) return false; - if (!getCatalog() - .equals(other.getCatalog())) return false; - if (!getSchema() - .equals(other.getSchema())) return false; - if (!getStatement() - .equals(other.getStatement())) 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) + ROUTING_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getRoutingGroup().hashCode(); - hash = (37 * hash) + CATALOG_FIELD_NUMBER; - hash = (53 * hash) + getCatalog().hashCode(); - hash = (37 * hash) + SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSchema().hashCode(); - hash = (37 * hash) + STATEMENT_FIELD_NUMBER; - hash = (53 * hash) + getStatement().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Presto.PrestoQuery 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 flyteidl.plugins.Presto.PrestoQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Presto.PrestoQuery 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 flyteidl.plugins.Presto.PrestoQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Presto.PrestoQuery 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(flyteidl.plugins.Presto.PrestoQuery 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; - } - /** - *
-     * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field
-     * of a Presto task's TaskTemplate
-     * 
- * - * Protobuf type {@code flyteidl.plugins.PrestoQuery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.PrestoQuery) - flyteidl.plugins.Presto.PrestoQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Presto.PrestoQuery.class, flyteidl.plugins.Presto.PrestoQuery.Builder.class); - } - - // Construct using flyteidl.plugins.Presto.PrestoQuery.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(); - routingGroup_ = ""; - - catalog_ = ""; - - schema_ = ""; - - statement_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Presto.PrestoQuery getDefaultInstanceForType() { - return flyteidl.plugins.Presto.PrestoQuery.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Presto.PrestoQuery build() { - flyteidl.plugins.Presto.PrestoQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Presto.PrestoQuery buildPartial() { - flyteidl.plugins.Presto.PrestoQuery result = new flyteidl.plugins.Presto.PrestoQuery(this); - result.routingGroup_ = routingGroup_; - result.catalog_ = catalog_; - result.schema_ = schema_; - result.statement_ = statement_; - 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 flyteidl.plugins.Presto.PrestoQuery) { - return mergeFrom((flyteidl.plugins.Presto.PrestoQuery)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Presto.PrestoQuery other) { - if (other == flyteidl.plugins.Presto.PrestoQuery.getDefaultInstance()) return this; - if (!other.getRoutingGroup().isEmpty()) { - routingGroup_ = other.routingGroup_; - onChanged(); - } - if (!other.getCatalog().isEmpty()) { - catalog_ = other.catalog_; - onChanged(); - } - if (!other.getSchema().isEmpty()) { - schema_ = other.schema_; - onChanged(); - } - if (!other.getStatement().isEmpty()) { - statement_ = other.statement_; - 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 { - flyteidl.plugins.Presto.PrestoQuery parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Presto.PrestoQuery) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object routingGroup_ = ""; - /** - * string routing_group = 1; - */ - public java.lang.String getRoutingGroup() { - java.lang.Object ref = routingGroup_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - routingGroup_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string routing_group = 1; - */ - public com.google.protobuf.ByteString - getRoutingGroupBytes() { - java.lang.Object ref = routingGroup_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routingGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string routing_group = 1; - */ - public Builder setRoutingGroup( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - routingGroup_ = value; - onChanged(); - return this; - } - /** - * string routing_group = 1; - */ - public Builder clearRoutingGroup() { - - routingGroup_ = getDefaultInstance().getRoutingGroup(); - onChanged(); - return this; - } - /** - * string routing_group = 1; - */ - public Builder setRoutingGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - routingGroup_ = value; - onChanged(); - return this; - } - - private java.lang.Object catalog_ = ""; - /** - * string catalog = 2; - */ - public java.lang.String getCatalog() { - java.lang.Object ref = catalog_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - catalog_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string catalog = 2; - */ - public com.google.protobuf.ByteString - getCatalogBytes() { - java.lang.Object ref = catalog_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - catalog_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string catalog = 2; - */ - public Builder setCatalog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - catalog_ = value; - onChanged(); - return this; - } - /** - * string catalog = 2; - */ - public Builder clearCatalog() { - - catalog_ = getDefaultInstance().getCatalog(); - onChanged(); - return this; - } - /** - * string catalog = 2; - */ - public Builder setCatalogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - catalog_ = value; - onChanged(); - return this; - } - - private java.lang.Object schema_ = ""; - /** - * string schema = 3; - */ - public java.lang.String getSchema() { - java.lang.Object ref = schema_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schema_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string schema = 3; - */ - public com.google.protobuf.ByteString - getSchemaBytes() { - java.lang.Object ref = schema_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string schema = 3; - */ - public Builder setSchema( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - schema_ = value; - onChanged(); - return this; - } - /** - * string schema = 3; - */ - public Builder clearSchema() { - - schema_ = getDefaultInstance().getSchema(); - onChanged(); - return this; - } - /** - * string schema = 3; - */ - public Builder setSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - schema_ = value; - onChanged(); - return this; - } - - private java.lang.Object statement_ = ""; - /** - * string statement = 4; - */ - public java.lang.String getStatement() { - java.lang.Object ref = statement_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statement_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string statement = 4; - */ - public com.google.protobuf.ByteString - getStatementBytes() { - java.lang.Object ref = statement_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string statement = 4; - */ - public Builder setStatement( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statement_ = value; - onChanged(); - return this; - } - /** - * string statement = 4; - */ - public Builder clearStatement() { - - statement_ = getDefaultInstance().getStatement(); - onChanged(); - return this; - } - /** - * string statement = 4; - */ - public Builder setStatementBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statement_ = 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:flyteidl.plugins.PrestoQuery) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.PrestoQuery) - private static final flyteidl.plugins.Presto.PrestoQuery DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Presto.PrestoQuery(); - } - - public static flyteidl.plugins.Presto.PrestoQuery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrestoQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrestoQuery(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 flyteidl.plugins.Presto.PrestoQuery getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_PrestoQuery_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_PrestoQuery_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\035flyteidl/plugins/presto.proto\022\020flyteid" + - "l.plugins\032\031flyteidl/core/tasks.proto\"X\n\013" + - "PrestoQuery\022\025\n\rrouting_group\030\001 \001(\t\022\017\n\007ca" + - "talog\030\002 \001(\t\022\016\n\006schema\030\003 \001(\t\022\021\n\tstatement" + - "\030\004 \001(\tB5Z3github.com/lyft/flyteidl/gen/p" + - "b-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Tasks.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_PrestoQuery_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_PrestoQuery_descriptor, - new java.lang.String[] { "RoutingGroup", "Catalog", "Schema", "Statement", }); - flyteidl.core.Tasks.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/Pytorch.java b/gen/pb-java/flyteidl/plugins/Pytorch.java deleted file mode 100644 index 020941bc0..000000000 --- a/gen/pb-java/flyteidl/plugins/Pytorch.java +++ /dev/null @@ -1,560 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/pytorch.proto - -package flyteidl.plugins; - -public final class Pytorch { - private Pytorch() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DistributedPyTorchTrainingTaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedPyTorchTrainingTask) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * number of worker replicas spawned in the cluster for this job
-     * 
- * - * int32 workers = 1; - */ - int getWorkers(); - } - /** - *
-   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
-   * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedPyTorchTrainingTask} - */ - public static final class DistributedPyTorchTrainingTask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedPyTorchTrainingTask) - DistributedPyTorchTrainingTaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use DistributedPyTorchTrainingTask.newBuilder() to construct. - private DistributedPyTorchTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributedPyTorchTrainingTask() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributedPyTorchTrainingTask( - 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 8: { - - workers_ = input.readInt32(); - 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 flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.Builder.class); - } - - public static final int WORKERS_FIELD_NUMBER = 1; - private int workers_; - /** - *
-     * number of worker replicas spawned in the cluster for this job
-     * 
- * - * int32 workers = 1; - */ - public int getWorkers() { - return workers_; - } - - 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 (workers_ != 0) { - output.writeInt32(1, workers_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workers_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, workers_); - } - 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask)) { - return super.equals(obj); - } - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask other = (flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) obj; - - if (getWorkers() - != other.getWorkers()) 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) + WORKERS_FIELD_NUMBER; - hash = (53 * hash) + getWorkers(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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(flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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; - } - /** - *
-     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
-     * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedPyTorchTrainingTask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedPyTorchTrainingTask) - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.Builder.class); - } - - // Construct using flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.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(); - workers_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { - return flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask build() { - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask buildPartial() { - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask result = new flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask(this); - result.workers_ = workers_; - 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) { - return mergeFrom((flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask other) { - if (other == flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance()) return this; - if (other.getWorkers() != 0) { - setWorkers(other.getWorkers()); - } - 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 { - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int workers_ ; - /** - *
-       * number of worker replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public int getWorkers() { - return workers_; - } - /** - *
-       * number of worker replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public Builder setWorkers(int value) { - - workers_ = value; - onChanged(); - return this; - } - /** - *
-       * number of worker replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public Builder clearWorkers() { - - workers_ = 0; - 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:flyteidl.plugins.DistributedPyTorchTrainingTask) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedPyTorchTrainingTask) - private static final flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask(); - } - - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributedPyTorchTrainingTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributedPyTorchTrainingTask(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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_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\036flyteidl/plugins/pytorch.proto\022\020flytei" + - "dl.plugins\"1\n\036DistributedPyTorchTraining" + - "Task\022\017\n\007workers\030\001 \001(\005B5Z3github.com/lyft" + - "/flyteidl/gen/pb-go/flyteidl/pluginsb\006pr" + - "oto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor, - new java.lang.String[] { "Workers", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/Qubole.java b/gen/pb-java/flyteidl/plugins/Qubole.java deleted file mode 100644 index 28cadb493..000000000 --- a/gen/pb-java/flyteidl/plugins/Qubole.java +++ /dev/null @@ -1,2700 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/qubole.proto - -package flyteidl.plugins; - -public final class Qubole { - private Qubole() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface HiveQueryOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQuery) - com.google.protobuf.MessageOrBuilder { - - /** - * string query = 1; - */ - java.lang.String getQuery(); - /** - * string query = 1; - */ - com.google.protobuf.ByteString - getQueryBytes(); - - /** - * uint32 timeout_sec = 2; - */ - int getTimeoutSec(); - - /** - * uint32 retryCount = 3; - */ - int getRetryCount(); - } - /** - *
-   * Defines a query to execute on a hive cluster.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.HiveQuery} - */ - public static final class HiveQuery extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQuery) - HiveQueryOrBuilder { - private static final long serialVersionUID = 0L; - // Use HiveQuery.newBuilder() to construct. - private HiveQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HiveQuery() { - query_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HiveQuery( - 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(); - - query_ = s; - break; - } - case 16: { - - timeoutSec_ = input.readUInt32(); - break; - } - case 24: { - - retryCount_ = input.readUInt32(); - 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 flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); - } - - public static final int QUERY_FIELD_NUMBER = 1; - private volatile java.lang.Object query_; - /** - * string query = 1; - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - 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(); - query_ = s; - return s; - } - } - /** - * string query = 1; - */ - public com.google.protobuf.ByteString - getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIMEOUT_SEC_FIELD_NUMBER = 2; - private int timeoutSec_; - /** - * uint32 timeout_sec = 2; - */ - public int getTimeoutSec() { - return timeoutSec_; - } - - public static final int RETRYCOUNT_FIELD_NUMBER = 3; - private int retryCount_; - /** - * uint32 retryCount = 3; - */ - public int getRetryCount() { - return retryCount_; - } - - 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 (!getQueryBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); - } - if (timeoutSec_ != 0) { - output.writeUInt32(2, timeoutSec_); - } - if (retryCount_ != 0) { - output.writeUInt32(3, retryCount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getQueryBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); - } - if (timeoutSec_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, timeoutSec_); - } - if (retryCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, retryCount_); - } - 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 flyteidl.plugins.Qubole.HiveQuery)) { - return super.equals(obj); - } - flyteidl.plugins.Qubole.HiveQuery other = (flyteidl.plugins.Qubole.HiveQuery) obj; - - if (!getQuery() - .equals(other.getQuery())) return false; - if (getTimeoutSec() - != other.getTimeoutSec()) return false; - if (getRetryCount() - != other.getRetryCount()) 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) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - hash = (37 * hash) + TIMEOUT_SEC_FIELD_NUMBER; - hash = (53 * hash) + getTimeoutSec(); - hash = (37 * hash) + RETRYCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getRetryCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQuery 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 flyteidl.plugins.Qubole.HiveQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQuery 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 flyteidl.plugins.Qubole.HiveQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQuery 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(flyteidl.plugins.Qubole.HiveQuery 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; - } - /** - *
-     * Defines a query to execute on a hive cluster.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.HiveQuery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQuery) - flyteidl.plugins.Qubole.HiveQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); - } - - // Construct using flyteidl.plugins.Qubole.HiveQuery.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(); - query_ = ""; - - timeoutSec_ = 0; - - retryCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQuery getDefaultInstanceForType() { - return flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQuery build() { - flyteidl.plugins.Qubole.HiveQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQuery buildPartial() { - flyteidl.plugins.Qubole.HiveQuery result = new flyteidl.plugins.Qubole.HiveQuery(this); - result.query_ = query_; - result.timeoutSec_ = timeoutSec_; - result.retryCount_ = retryCount_; - 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 flyteidl.plugins.Qubole.HiveQuery) { - return mergeFrom((flyteidl.plugins.Qubole.HiveQuery)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQuery other) { - if (other == flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()) return this; - if (!other.getQuery().isEmpty()) { - query_ = other.query_; - onChanged(); - } - if (other.getTimeoutSec() != 0) { - setTimeoutSec(other.getTimeoutSec()); - } - if (other.getRetryCount() != 0) { - setRetryCount(other.getRetryCount()); - } - 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 { - flyteidl.plugins.Qubole.HiveQuery parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Qubole.HiveQuery) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object query_ = ""; - /** - * string query = 1; - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string query = 1; - */ - public com.google.protobuf.ByteString - getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string query = 1; - */ - public Builder setQuery( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - query_ = value; - onChanged(); - return this; - } - /** - * string query = 1; - */ - public Builder clearQuery() { - - query_ = getDefaultInstance().getQuery(); - onChanged(); - return this; - } - /** - * string query = 1; - */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - query_ = value; - onChanged(); - return this; - } - - private int timeoutSec_ ; - /** - * uint32 timeout_sec = 2; - */ - public int getTimeoutSec() { - return timeoutSec_; - } - /** - * uint32 timeout_sec = 2; - */ - public Builder setTimeoutSec(int value) { - - timeoutSec_ = value; - onChanged(); - return this; - } - /** - * uint32 timeout_sec = 2; - */ - public Builder clearTimeoutSec() { - - timeoutSec_ = 0; - onChanged(); - return this; - } - - private int retryCount_ ; - /** - * uint32 retryCount = 3; - */ - public int getRetryCount() { - return retryCount_; - } - /** - * uint32 retryCount = 3; - */ - public Builder setRetryCount(int value) { - - retryCount_ = value; - onChanged(); - return this; - } - /** - * uint32 retryCount = 3; - */ - public Builder clearRetryCount() { - - retryCount_ = 0; - 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:flyteidl.plugins.HiveQuery) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQuery) - private static final flyteidl.plugins.Qubole.HiveQuery DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQuery(); - } - - public static flyteidl.plugins.Qubole.HiveQuery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HiveQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HiveQuery(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 flyteidl.plugins.Qubole.HiveQuery getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HiveQueryCollectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQueryCollection) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - java.util.List - getQueriesList(); - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - flyteidl.plugins.Qubole.HiveQuery getQueries(int index); - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - int getQueriesCount(); - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - java.util.List - getQueriesOrBuilderList(); - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( - int index); - } - /** - *
-   * Defines a collection of hive queries.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} - */ - public static final class HiveQueryCollection extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQueryCollection) - HiveQueryCollectionOrBuilder { - private static final long serialVersionUID = 0L; - // Use HiveQueryCollection.newBuilder() to construct. - private HiveQueryCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HiveQueryCollection() { - queries_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HiveQueryCollection( - 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 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - queries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - queries_.add( - input.readMessage(flyteidl.plugins.Qubole.HiveQuery.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)) { - queries_ = java.util.Collections.unmodifiableList(queries_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); - } - - public static final int QUERIES_FIELD_NUMBER = 2; - private java.util.List queries_; - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List getQueriesList() { - return queries_; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List - getQueriesOrBuilderList() { - return queries_; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public int getQueriesCount() { - return queries_.size(); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { - return queries_.get(index); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( - int index) { - return queries_.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 < queries_.size(); i++) { - output.writeMessage(2, queries_.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 < queries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, queries_.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 flyteidl.plugins.Qubole.HiveQueryCollection)) { - return super.equals(obj); - } - flyteidl.plugins.Qubole.HiveQueryCollection other = (flyteidl.plugins.Qubole.HiveQueryCollection) obj; - - if (!getQueriesList() - .equals(other.getQueriesList())) 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 (getQueriesCount() > 0) { - hash = (37 * hash) + QUERIES_FIELD_NUMBER; - hash = (53 * hash) + getQueriesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection 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 flyteidl.plugins.Qubole.HiveQueryCollection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection 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 flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection 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(flyteidl.plugins.Qubole.HiveQueryCollection 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; - } - /** - *
-     * Defines a collection of hive queries.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQueryCollection) - flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); - } - - // Construct using flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getQueriesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (queriesBuilder_ == null) { - queries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - queriesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { - return flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQueryCollection build() { - flyteidl.plugins.Qubole.HiveQueryCollection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQueryCollection buildPartial() { - flyteidl.plugins.Qubole.HiveQueryCollection result = new flyteidl.plugins.Qubole.HiveQueryCollection(this); - int from_bitField0_ = bitField0_; - if (queriesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - queries_ = java.util.Collections.unmodifiableList(queries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.queries_ = queries_; - } else { - result.queries_ = queriesBuilder_.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 flyteidl.plugins.Qubole.HiveQueryCollection) { - return mergeFrom((flyteidl.plugins.Qubole.HiveQueryCollection)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQueryCollection other) { - if (other == flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance()) return this; - if (queriesBuilder_ == null) { - if (!other.queries_.isEmpty()) { - if (queries_.isEmpty()) { - queries_ = other.queries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureQueriesIsMutable(); - queries_.addAll(other.queries_); - } - onChanged(); - } - } else { - if (!other.queries_.isEmpty()) { - if (queriesBuilder_.isEmpty()) { - queriesBuilder_.dispose(); - queriesBuilder_ = null; - queries_ = other.queries_; - bitField0_ = (bitField0_ & ~0x00000001); - queriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getQueriesFieldBuilder() : null; - } else { - queriesBuilder_.addAllMessages(other.queries_); - } - } - } - 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 { - flyteidl.plugins.Qubole.HiveQueryCollection parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Qubole.HiveQueryCollection) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List queries_ = - java.util.Collections.emptyList(); - private void ensureQueriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - queries_ = new java.util.ArrayList(queries_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> queriesBuilder_; - - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List getQueriesList() { - if (queriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(queries_); - } else { - return queriesBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public int getQueriesCount() { - if (queriesBuilder_ == null) { - return queries_.size(); - } else { - return queriesBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { - if (queriesBuilder_ == null) { - return queries_.get(index); - } else { - return queriesBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder setQueries( - int index, flyteidl.plugins.Qubole.HiveQuery value) { - if (queriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.set(index, value); - onChanged(); - } else { - queriesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder setQueries( - int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - queries_.set(index, builderForValue.build()); - onChanged(); - } else { - queriesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addQueries(flyteidl.plugins.Qubole.HiveQuery value) { - if (queriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.add(value); - onChanged(); - } else { - queriesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addQueries( - int index, flyteidl.plugins.Qubole.HiveQuery value) { - if (queriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.add(index, value); - onChanged(); - } else { - queriesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addQueries( - flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - queries_.add(builderForValue.build()); - onChanged(); - } else { - queriesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addQueries( - int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - queries_.add(index, builderForValue.build()); - onChanged(); - } else { - queriesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addAllQueries( - java.lang.Iterable values) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, queries_); - onChanged(); - } else { - queriesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder clearQueries() { - if (queriesBuilder_ == null) { - queries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - queriesBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder removeQueries(int index) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - queries_.remove(index); - onChanged(); - } else { - queriesBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery.Builder getQueriesBuilder( - int index) { - return getQueriesFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( - int index) { - if (queriesBuilder_ == null) { - return queries_.get(index); } else { - return queriesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List - getQueriesOrBuilderList() { - if (queriesBuilder_ != null) { - return queriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(queries_); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder() { - return getQueriesFieldBuilder().addBuilder( - flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder( - int index) { - return getQueriesFieldBuilder().addBuilder( - index, flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List - getQueriesBuilderList() { - return getQueriesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> - getQueriesFieldBuilder() { - if (queriesBuilder_ == null) { - queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder>( - queries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - queries_ = null; - } - return queriesBuilder_; - } - @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:flyteidl.plugins.HiveQueryCollection) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQueryCollection) - private static final flyteidl.plugins.Qubole.HiveQueryCollection DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQueryCollection(); - } - - public static flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HiveQueryCollection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HiveQueryCollection(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 flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QuboleHiveJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.QuboleHiveJob) - com.google.protobuf.MessageOrBuilder { - - /** - * string cluster_label = 1; - */ - java.lang.String getClusterLabel(); - /** - * string cluster_label = 1; - */ - com.google.protobuf.ByteString - getClusterLabelBytes(); - - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasQueryCollection(); - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection(); - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder(); - - /** - * repeated string tags = 3; - */ - java.util.List - getTagsList(); - /** - * repeated string tags = 3; - */ - int getTagsCount(); - /** - * repeated string tags = 3; - */ - java.lang.String getTags(int index); - /** - * repeated string tags = 3; - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - boolean hasQuery(); - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - flyteidl.plugins.Qubole.HiveQuery getQuery(); - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder(); - } - /** - *
-   * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
-   * of a hive task's TaskTemplate
-   * 
- * - * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} - */ - public static final class QuboleHiveJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.QuboleHiveJob) - QuboleHiveJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use QuboleHiveJob.newBuilder() to construct. - private QuboleHiveJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuboleHiveJob() { - clusterLabel_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuboleHiveJob( - 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(); - - clusterLabel_ = s; - break; - } - case 18: { - flyteidl.plugins.Qubole.HiveQueryCollection.Builder subBuilder = null; - if (queryCollection_ != null) { - subBuilder = queryCollection_.toBuilder(); - } - queryCollection_ = input.readMessage(flyteidl.plugins.Qubole.HiveQueryCollection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queryCollection_); - queryCollection_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - tags_.add(s); - break; - } - case 34: { - flyteidl.plugins.Qubole.HiveQuery.Builder subBuilder = null; - if (query_ != null) { - subBuilder = query_.toBuilder(); - } - query_ = input.readMessage(flyteidl.plugins.Qubole.HiveQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(query_); - query_ = 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_ & 0x00000004) != 0)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); - } - - private int bitField0_; - public static final int CLUSTER_LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object clusterLabel_; - /** - * string cluster_label = 1; - */ - public java.lang.String getClusterLabel() { - java.lang.Object ref = clusterLabel_; - 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(); - clusterLabel_ = s; - return s; - } - } - /** - * string cluster_label = 1; - */ - public com.google.protobuf.ByteString - getClusterLabelBytes() { - java.lang.Object ref = clusterLabel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterLabel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUERY_COLLECTION_FIELD_NUMBER = 2; - private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_; - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasQueryCollection() { - return queryCollection_ != null; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { - return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { - return getQueryCollection(); - } - - public static final int TAGS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList tags_; - /** - * repeated string tags = 3; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - * repeated string tags = 3; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 3; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 3; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int QUERY_FIELD_NUMBER = 4; - private flyteidl.plugins.Qubole.HiveQuery query_; - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public boolean hasQuery() { - return query_ != null; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQuery getQuery() { - return query_ == null ? flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder() { - return getQuery(); - } - - 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 (!getClusterLabelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterLabel_); - } - if (queryCollection_ != null) { - output.writeMessage(2, getQueryCollection()); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i)); - } - if (query_ != null) { - output.writeMessage(4, getQuery()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClusterLabelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterLabel_); - } - if (queryCollection_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getQueryCollection()); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - if (query_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getQuery()); - } - 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 flyteidl.plugins.Qubole.QuboleHiveJob)) { - return super.equals(obj); - } - flyteidl.plugins.Qubole.QuboleHiveJob other = (flyteidl.plugins.Qubole.QuboleHiveJob) obj; - - if (!getClusterLabel() - .equals(other.getClusterLabel())) return false; - if (hasQueryCollection() != other.hasQueryCollection()) return false; - if (hasQueryCollection()) { - if (!getQueryCollection() - .equals(other.getQueryCollection())) return false; - } - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (hasQuery() != other.hasQuery()) return false; - if (hasQuery()) { - if (!getQuery() - .equals(other.getQuery())) 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) + CLUSTER_LABEL_FIELD_NUMBER; - hash = (53 * hash) + getClusterLabel().hashCode(); - if (hasQueryCollection()) { - hash = (37 * hash) + QUERY_COLLECTION_FIELD_NUMBER; - hash = (53 * hash) + getQueryCollection().hashCode(); - } - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - if (hasQuery()) { - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob 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 flyteidl.plugins.Qubole.QuboleHiveJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob 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 flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob 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(flyteidl.plugins.Qubole.QuboleHiveJob 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; - } - /** - *
-     * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
-     * of a hive task's TaskTemplate
-     * 
- * - * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.QuboleHiveJob) - flyteidl.plugins.Qubole.QuboleHiveJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); - } - - // Construct using flyteidl.plugins.Qubole.QuboleHiveJob.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(); - clusterLabel_ = ""; - - if (queryCollectionBuilder_ == null) { - queryCollection_ = null; - } else { - queryCollection_ = null; - queryCollectionBuilder_ = null; - } - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (queryBuilder_ == null) { - query_ = null; - } else { - query_ = null; - queryBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { - return flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Qubole.QuboleHiveJob build() { - flyteidl.plugins.Qubole.QuboleHiveJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.QuboleHiveJob buildPartial() { - flyteidl.plugins.Qubole.QuboleHiveJob result = new flyteidl.plugins.Qubole.QuboleHiveJob(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.clusterLabel_ = clusterLabel_; - if (queryCollectionBuilder_ == null) { - result.queryCollection_ = queryCollection_; - } else { - result.queryCollection_ = queryCollectionBuilder_.build(); - } - if (((bitField0_ & 0x00000004) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.tags_ = tags_; - if (queryBuilder_ == null) { - result.query_ = query_; - } else { - result.query_ = queryBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.plugins.Qubole.QuboleHiveJob) { - return mergeFrom((flyteidl.plugins.Qubole.QuboleHiveJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Qubole.QuboleHiveJob other) { - if (other == flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance()) return this; - if (!other.getClusterLabel().isEmpty()) { - clusterLabel_ = other.clusterLabel_; - onChanged(); - } - if (other.hasQueryCollection()) { - mergeQueryCollection(other.getQueryCollection()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.hasQuery()) { - mergeQuery(other.getQuery()); - } - 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 { - flyteidl.plugins.Qubole.QuboleHiveJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Qubole.QuboleHiveJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object clusterLabel_ = ""; - /** - * string cluster_label = 1; - */ - public java.lang.String getClusterLabel() { - java.lang.Object ref = clusterLabel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterLabel_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cluster_label = 1; - */ - public com.google.protobuf.ByteString - getClusterLabelBytes() { - java.lang.Object ref = clusterLabel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterLabel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cluster_label = 1; - */ - public Builder setClusterLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterLabel_ = value; - onChanged(); - return this; - } - /** - * string cluster_label = 1; - */ - public Builder clearClusterLabel() { - - clusterLabel_ = getDefaultInstance().getClusterLabel(); - onChanged(); - return this; - } - /** - * string cluster_label = 1; - */ - public Builder setClusterLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterLabel_ = value; - onChanged(); - return this; - } - - private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> queryCollectionBuilder_; - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasQueryCollection() { - return queryCollectionBuilder_ != null || queryCollection_ != null; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { - if (queryCollectionBuilder_ == null) { - return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; - } else { - return queryCollectionBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { - if (queryCollectionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queryCollection_ = value; - onChanged(); - } else { - queryCollectionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setQueryCollection( - flyteidl.plugins.Qubole.HiveQueryCollection.Builder builderForValue) { - if (queryCollectionBuilder_ == null) { - queryCollection_ = builderForValue.build(); - onChanged(); - } else { - queryCollectionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { - if (queryCollectionBuilder_ == null) { - if (queryCollection_ != null) { - queryCollection_ = - flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder(queryCollection_).mergeFrom(value).buildPartial(); - } else { - queryCollection_ = value; - } - onChanged(); - } else { - queryCollectionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearQueryCollection() { - if (queryCollectionBuilder_ == null) { - queryCollection_ = null; - onChanged(); - } else { - queryCollection_ = null; - queryCollectionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection.Builder getQueryCollectionBuilder() { - - onChanged(); - return getQueryCollectionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { - if (queryCollectionBuilder_ != null) { - return queryCollectionBuilder_.getMessageOrBuilder(); - } else { - return queryCollection_ == null ? - flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; - } - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> - getQueryCollectionFieldBuilder() { - if (queryCollectionBuilder_ == null) { - queryCollectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder>( - getQueryCollection(), - getParentForChildren(), - isClean()); - queryCollection_ = null; - } - return queryCollectionBuilder_; - } - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated string tags = 3; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - * repeated string tags = 3; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 3; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 3; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * repeated string tags = 3; - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string tags = 3; - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - * repeated string tags = 3; - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - * repeated string tags = 3; - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * repeated string tags = 3; - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - - private flyteidl.plugins.Qubole.HiveQuery query_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> queryBuilder_; - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public boolean hasQuery() { - return queryBuilder_ != null || query_ != null; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQuery getQuery() { - if (queryBuilder_ == null) { - return query_ == null ? flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; - } else { - return queryBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public Builder setQuery(flyteidl.plugins.Qubole.HiveQuery value) { - if (queryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - query_ = value; - onChanged(); - } else { - queryBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public Builder setQuery( - flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { - if (queryBuilder_ == null) { - query_ = builderForValue.build(); - onChanged(); - } else { - queryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public Builder mergeQuery(flyteidl.plugins.Qubole.HiveQuery value) { - if (queryBuilder_ == null) { - if (query_ != null) { - query_ = - flyteidl.plugins.Qubole.HiveQuery.newBuilder(query_).mergeFrom(value).buildPartial(); - } else { - query_ = value; - } - onChanged(); - } else { - queryBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public Builder clearQuery() { - if (queryBuilder_ == null) { - query_ = null; - onChanged(); - } else { - query_ = null; - queryBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQuery.Builder getQueryBuilder() { - - onChanged(); - return getQueryFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder() { - if (queryBuilder_ != null) { - return queryBuilder_.getMessageOrBuilder(); - } else { - return query_ == null ? - flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; - } - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> - getQueryFieldBuilder() { - if (queryBuilder_ == null) { - queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder>( - getQuery(), - getParentForChildren(), - isClean()); - query_ = null; - } - return queryBuilder_; - } - @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:flyteidl.plugins.QuboleHiveJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.QuboleHiveJob) - private static final flyteidl.plugins.Qubole.QuboleHiveJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.QuboleHiveJob(); - } - - public static flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuboleHiveJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuboleHiveJob(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 flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_HiveQuery_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_QuboleHiveJob_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\035flyteidl/plugins/qubole.proto\022\020flyteid" + - "l.plugins\032\031flyteidl/core/tasks.proto\"C\n\t" + - "HiveQuery\022\r\n\005query\030\001 \001(\t\022\023\n\013timeout_sec\030" + - "\002 \001(\r\022\022\n\nretryCount\030\003 \001(\r\"C\n\023HiveQueryCo" + - "llection\022,\n\007queries\030\002 \003(\0132\033.flyteidl.plu" + - "gins.HiveQuery\"\245\001\n\rQuboleHiveJob\022\025\n\rclus" + - "ter_label\030\001 \001(\t\022C\n\020query_collection\030\002 \001(" + - "\0132%.flyteidl.plugins.HiveQueryCollection" + - "B\002\030\001\022\014\n\004tags\030\003 \003(\t\022*\n\005query\030\004 \001(\0132\033.flyt" + - "eidl.plugins.HiveQueryB5Z3github.com/lyf" + - "t/flyteidl/gen/pb-go/flyteidl/pluginsb\006p" + - "roto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Tasks.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_HiveQuery_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_HiveQuery_descriptor, - new java.lang.String[] { "Query", "TimeoutSec", "RetryCount", }); - internal_static_flyteidl_plugins_HiveQueryCollection_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_HiveQueryCollection_descriptor, - new java.lang.String[] { "Queries", }); - internal_static_flyteidl_plugins_QuboleHiveJob_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_QuboleHiveJob_descriptor, - new java.lang.String[] { "ClusterLabel", "QueryCollection", "Tags", "Query", }); - flyteidl.core.Tasks.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/Sidecar.java b/gen/pb-java/flyteidl/plugins/Sidecar.java deleted file mode 100644 index ae8690617..000000000 --- a/gen/pb-java/flyteidl/plugins/Sidecar.java +++ /dev/null @@ -1,817 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sidecar.proto - -package flyteidl.plugins; - -public final class Sidecar { - private Sidecar() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SidecarJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SidecarJob) - com.google.protobuf.MessageOrBuilder { - - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - boolean hasPodSpec(); - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - k8s.io.api.core.v1.Generated.PodSpec getPodSpec(); - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder(); - - /** - * string primary_container_name = 2; - */ - java.lang.String getPrimaryContainerName(); - /** - * string primary_container_name = 2; - */ - com.google.protobuf.ByteString - getPrimaryContainerNameBytes(); - } - /** - *
-   * A sidecar job brings up the desired pod_spec.
-   * The plugin executor is responsible for keeping the pod alive until the primary container terminates
-   * or the task itself times out.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.SidecarJob} - */ - public static final class SidecarJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.SidecarJob) - SidecarJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use SidecarJob.newBuilder() to construct. - private SidecarJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SidecarJob() { - primaryContainerName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SidecarJob( - 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: { - k8s.io.api.core.v1.Generated.PodSpec.Builder subBuilder = null; - if (podSpec_ != null) { - subBuilder = podSpec_.toBuilder(); - } - podSpec_ = input.readMessage(k8s.io.api.core.v1.Generated.PodSpec.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(podSpec_); - podSpec_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - primaryContainerName_ = 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 flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Sidecar.SidecarJob.class, flyteidl.plugins.Sidecar.SidecarJob.Builder.class); - } - - public static final int POD_SPEC_FIELD_NUMBER = 1; - private k8s.io.api.core.v1.Generated.PodSpec podSpec_; - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public boolean hasPodSpec() { - return podSpec_ != null; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public k8s.io.api.core.v1.Generated.PodSpec getPodSpec() { - return podSpec_ == null ? k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder() { - return getPodSpec(); - } - - public static final int PRIMARY_CONTAINER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object primaryContainerName_; - /** - * string primary_container_name = 2; - */ - public java.lang.String getPrimaryContainerName() { - java.lang.Object ref = primaryContainerName_; - 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(); - primaryContainerName_ = s; - return s; - } - } - /** - * string primary_container_name = 2; - */ - public com.google.protobuf.ByteString - getPrimaryContainerNameBytes() { - java.lang.Object ref = primaryContainerName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - primaryContainerName_ = 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 (podSpec_ != null) { - output.writeMessage(1, getPodSpec()); - } - if (!getPrimaryContainerNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, primaryContainerName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (podSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPodSpec()); - } - if (!getPrimaryContainerNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, primaryContainerName_); - } - 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 flyteidl.plugins.Sidecar.SidecarJob)) { - return super.equals(obj); - } - flyteidl.plugins.Sidecar.SidecarJob other = (flyteidl.plugins.Sidecar.SidecarJob) obj; - - if (hasPodSpec() != other.hasPodSpec()) return false; - if (hasPodSpec()) { - if (!getPodSpec() - .equals(other.getPodSpec())) return false; - } - if (!getPrimaryContainerName() - .equals(other.getPrimaryContainerName())) 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 (hasPodSpec()) { - hash = (37 * hash) + POD_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getPodSpec().hashCode(); - } - hash = (37 * hash) + PRIMARY_CONTAINER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPrimaryContainerName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Sidecar.SidecarJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Sidecar.SidecarJob 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 flyteidl.plugins.Sidecar.SidecarJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Sidecar.SidecarJob 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 flyteidl.plugins.Sidecar.SidecarJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Sidecar.SidecarJob 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(flyteidl.plugins.Sidecar.SidecarJob 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 sidecar job brings up the desired pod_spec.
-     * The plugin executor is responsible for keeping the pod alive until the primary container terminates
-     * or the task itself times out.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.SidecarJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SidecarJob) - flyteidl.plugins.Sidecar.SidecarJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Sidecar.SidecarJob.class, flyteidl.plugins.Sidecar.SidecarJob.Builder.class); - } - - // Construct using flyteidl.plugins.Sidecar.SidecarJob.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 (podSpecBuilder_ == null) { - podSpec_ = null; - } else { - podSpec_ = null; - podSpecBuilder_ = null; - } - primaryContainerName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Sidecar.SidecarJob getDefaultInstanceForType() { - return flyteidl.plugins.Sidecar.SidecarJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Sidecar.SidecarJob build() { - flyteidl.plugins.Sidecar.SidecarJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Sidecar.SidecarJob buildPartial() { - flyteidl.plugins.Sidecar.SidecarJob result = new flyteidl.plugins.Sidecar.SidecarJob(this); - if (podSpecBuilder_ == null) { - result.podSpec_ = podSpec_; - } else { - result.podSpec_ = podSpecBuilder_.build(); - } - result.primaryContainerName_ = primaryContainerName_; - 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 flyteidl.plugins.Sidecar.SidecarJob) { - return mergeFrom((flyteidl.plugins.Sidecar.SidecarJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Sidecar.SidecarJob other) { - if (other == flyteidl.plugins.Sidecar.SidecarJob.getDefaultInstance()) return this; - if (other.hasPodSpec()) { - mergePodSpec(other.getPodSpec()); - } - if (!other.getPrimaryContainerName().isEmpty()) { - primaryContainerName_ = other.primaryContainerName_; - 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 { - flyteidl.plugins.Sidecar.SidecarJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Sidecar.SidecarJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private k8s.io.api.core.v1.Generated.PodSpec podSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder> podSpecBuilder_; - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public boolean hasPodSpec() { - return podSpecBuilder_ != null || podSpec_ != null; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public k8s.io.api.core.v1.Generated.PodSpec getPodSpec() { - if (podSpecBuilder_ == null) { - return podSpec_ == null ? k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; - } else { - return podSpecBuilder_.getMessage(); - } - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public Builder setPodSpec(k8s.io.api.core.v1.Generated.PodSpec value) { - if (podSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - podSpec_ = value; - onChanged(); - } else { - podSpecBuilder_.setMessage(value); - } - - return this; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public Builder setPodSpec( - k8s.io.api.core.v1.Generated.PodSpec.Builder builderForValue) { - if (podSpecBuilder_ == null) { - podSpec_ = builderForValue.build(); - onChanged(); - } else { - podSpecBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public Builder mergePodSpec(k8s.io.api.core.v1.Generated.PodSpec value) { - if (podSpecBuilder_ == null) { - if (podSpec_ != null) { - podSpec_ = - k8s.io.api.core.v1.Generated.PodSpec.newBuilder(podSpec_).mergeFrom(value).buildPartial(); - } else { - podSpec_ = value; - } - onChanged(); - } else { - podSpecBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public Builder clearPodSpec() { - if (podSpecBuilder_ == null) { - podSpec_ = null; - onChanged(); - } else { - podSpec_ = null; - podSpecBuilder_ = null; - } - - return this; - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public k8s.io.api.core.v1.Generated.PodSpec.Builder getPodSpecBuilder() { - - onChanged(); - return getPodSpecFieldBuilder().getBuilder(); - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - public k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder() { - if (podSpecBuilder_ != null) { - return podSpecBuilder_.getMessageOrBuilder(); - } else { - return podSpec_ == null ? - k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; - } - } - /** - * .k8s.io.api.core.v1.PodSpec pod_spec = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder> - getPodSpecFieldBuilder() { - if (podSpecBuilder_ == null) { - podSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder>( - getPodSpec(), - getParentForChildren(), - isClean()); - podSpec_ = null; - } - return podSpecBuilder_; - } - - private java.lang.Object primaryContainerName_ = ""; - /** - * string primary_container_name = 2; - */ - public java.lang.String getPrimaryContainerName() { - java.lang.Object ref = primaryContainerName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - primaryContainerName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string primary_container_name = 2; - */ - public com.google.protobuf.ByteString - getPrimaryContainerNameBytes() { - java.lang.Object ref = primaryContainerName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - primaryContainerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string primary_container_name = 2; - */ - public Builder setPrimaryContainerName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - primaryContainerName_ = value; - onChanged(); - return this; - } - /** - * string primary_container_name = 2; - */ - public Builder clearPrimaryContainerName() { - - primaryContainerName_ = getDefaultInstance().getPrimaryContainerName(); - onChanged(); - return this; - } - /** - * string primary_container_name = 2; - */ - public Builder setPrimaryContainerNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - primaryContainerName_ = 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:flyteidl.plugins.SidecarJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.SidecarJob) - private static final flyteidl.plugins.Sidecar.SidecarJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Sidecar.SidecarJob(); - } - - public static flyteidl.plugins.Sidecar.SidecarJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SidecarJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SidecarJob(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 flyteidl.plugins.Sidecar.SidecarJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SidecarJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SidecarJob_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\036flyteidl/plugins/sidecar.proto\022\020flytei" + - "dl.plugins\032\"k8s.io/api/core/v1/generated" + - ".proto\"[\n\nSidecarJob\022-\n\010pod_spec\030\001 \001(\0132\033" + - ".k8s.io.api.core.v1.PodSpec\022\036\n\026primary_c" + - "ontainer_name\030\002 \001(\tB5Z3github.com/lyft/f" + - "lyteidl/gen/pb-go/flyteidl/pluginsb\006prot" + - "o3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - k8s.io.api.core.v1.Generated.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_SidecarJob_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SidecarJob_descriptor, - new java.lang.String[] { "PodSpec", "PrimaryContainerName", }); - k8s.io.api.core.v1.Generated.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/Spark.java b/gen/pb-java/flyteidl/plugins/Spark.java deleted file mode 100644 index 692a657e0..000000000 --- a/gen/pb-java/flyteidl/plugins/Spark.java +++ /dev/null @@ -1,2179 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/spark.proto - -package flyteidl.plugins; - -public final class Spark { - private Spark() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SparkApplicationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkApplication) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.plugins.SparkApplication} - */ - public static final class SparkApplication extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkApplication) - SparkApplicationOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkApplication.newBuilder() to construct. - private SparkApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SparkApplication() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SparkApplication( - 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; - 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 flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.plugins.SparkApplication.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * PYTHON = 0; - */ - PYTHON(0), - /** - * JAVA = 1; - */ - JAVA(1), - /** - * SCALA = 2; - */ - SCALA(2), - /** - * R = 3; - */ - R(3), - UNRECOGNIZED(-1), - ; - - /** - * PYTHON = 0; - */ - public static final int PYTHON_VALUE = 0; - /** - * JAVA = 1; - */ - public static final int JAVA_VALUE = 1; - /** - * SCALA = 2; - */ - public static final int SCALA_VALUE = 2; - /** - * R = 3; - */ - public static final int R_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - public static Type forNumber(int value) { - switch (value) { - case 0: return PYTHON; - case 1: return JAVA; - case 2: return SCALA; - case 3: return R; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.Spark.SparkApplication.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = values(); - - public static Type 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 Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.SparkApplication.Type) - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 flyteidl.plugins.Spark.SparkApplication)) { - return super.equals(obj); - } - flyteidl.plugins.Spark.SparkApplication other = (flyteidl.plugins.Spark.SparkApplication) obj; - - 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkApplication 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 flyteidl.plugins.Spark.SparkApplication parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkApplication 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 flyteidl.plugins.Spark.SparkApplication parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkApplication 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(flyteidl.plugins.Spark.SparkApplication 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 flyteidl.plugins.SparkApplication} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkApplication) - flyteidl.plugins.Spark.SparkApplicationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); - } - - // Construct using flyteidl.plugins.Spark.SparkApplication.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkApplication getDefaultInstanceForType() { - return flyteidl.plugins.Spark.SparkApplication.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkApplication build() { - flyteidl.plugins.Spark.SparkApplication result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkApplication buildPartial() { - flyteidl.plugins.Spark.SparkApplication result = new flyteidl.plugins.Spark.SparkApplication(this); - 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 flyteidl.plugins.Spark.SparkApplication) { - return mergeFrom((flyteidl.plugins.Spark.SparkApplication)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Spark.SparkApplication other) { - if (other == flyteidl.plugins.Spark.SparkApplication.getDefaultInstance()) return this; - 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 { - flyteidl.plugins.Spark.SparkApplication parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Spark.SparkApplication) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:flyteidl.plugins.SparkApplication) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkApplication) - private static final flyteidl.plugins.Spark.SparkApplication DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkApplication(); - } - - public static flyteidl.plugins.Spark.SparkApplication getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkApplication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkApplication(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 flyteidl.plugins.Spark.SparkApplication getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SparkJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkJob) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - int getApplicationTypeValue(); - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - flyteidl.plugins.Spark.SparkApplication.Type getApplicationType(); - - /** - * string mainApplicationFile = 2; - */ - java.lang.String getMainApplicationFile(); - /** - * string mainApplicationFile = 2; - */ - com.google.protobuf.ByteString - getMainApplicationFileBytes(); - - /** - * string mainClass = 3; - */ - java.lang.String getMainClass(); - /** - * string mainClass = 3; - */ - com.google.protobuf.ByteString - getMainClassBytes(); - - /** - * map<string, string> sparkConf = 4; - */ - int getSparkConfCount(); - /** - * map<string, string> sparkConf = 4; - */ - boolean containsSparkConf( - java.lang.String key); - /** - * Use {@link #getSparkConfMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getSparkConf(); - /** - * map<string, string> sparkConf = 4; - */ - java.util.Map - getSparkConfMap(); - /** - * map<string, string> sparkConf = 4; - */ - - java.lang.String getSparkConfOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - * map<string, string> sparkConf = 4; - */ - - java.lang.String getSparkConfOrThrow( - java.lang.String key); - - /** - * map<string, string> hadoopConf = 5; - */ - int getHadoopConfCount(); - /** - * map<string, string> hadoopConf = 5; - */ - boolean containsHadoopConf( - java.lang.String key); - /** - * Use {@link #getHadoopConfMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getHadoopConf(); - /** - * map<string, string> hadoopConf = 5; - */ - java.util.Map - getHadoopConfMap(); - /** - * map<string, string> hadoopConf = 5; - */ - - java.lang.String getHadoopConfOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - * map<string, string> hadoopConf = 5; - */ - - java.lang.String getHadoopConfOrThrow( - java.lang.String key); - - /** - *
-     * Executor path for Python jobs.
-     * 
- * - * string executorPath = 6; - */ - java.lang.String getExecutorPath(); - /** - *
-     * Executor path for Python jobs.
-     * 
- * - * string executorPath = 6; - */ - com.google.protobuf.ByteString - getExecutorPathBytes(); - } - /** - *
-   * Custom Proto for Spark Plugin.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.SparkJob} - */ - public static final class SparkJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkJob) - SparkJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkJob.newBuilder() to construct. - private SparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SparkJob() { - applicationType_ = 0; - mainApplicationFile_ = ""; - mainClass_ = ""; - executorPath_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SparkJob( - 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 8: { - int rawValue = input.readEnum(); - - applicationType_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - mainApplicationFile_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - mainClass_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - sparkConf_ = com.google.protobuf.MapField.newMapField( - SparkConfDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry - sparkConf__ = input.readMessage( - SparkConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - sparkConf_.getMutableMap().put( - sparkConf__.getKey(), sparkConf__.getValue()); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - hadoopConf_ = com.google.protobuf.MapField.newMapField( - HadoopConfDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry - hadoopConf__ = input.readMessage( - HadoopConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - hadoopConf_.getMutableMap().put( - hadoopConf__.getKey(), hadoopConf__.getValue()); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - executorPath_ = 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 flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetSparkConf(); - case 5: - return internalGetHadoopConf(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); - } - - private int bitField0_; - public static final int APPLICATIONTYPE_FIELD_NUMBER = 1; - private int applicationType_; - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public int getApplicationTypeValue() { - return applicationType_; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); - return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; - } - - public static final int MAINAPPLICATIONFILE_FIELD_NUMBER = 2; - private volatile java.lang.Object mainApplicationFile_; - /** - * string mainApplicationFile = 2; - */ - public java.lang.String getMainApplicationFile() { - java.lang.Object ref = mainApplicationFile_; - 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(); - mainApplicationFile_ = s; - return s; - } - } - /** - * string mainApplicationFile = 2; - */ - public com.google.protobuf.ByteString - getMainApplicationFileBytes() { - java.lang.Object ref = mainApplicationFile_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mainApplicationFile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAINCLASS_FIELD_NUMBER = 3; - private volatile java.lang.Object mainClass_; - /** - * string mainClass = 3; - */ - public java.lang.String getMainClass() { - java.lang.Object ref = mainClass_; - 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(); - mainClass_ = s; - return s; - } - } - /** - * string mainClass = 3; - */ - public com.google.protobuf.ByteString - getMainClassBytes() { - java.lang.Object ref = mainClass_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mainClass_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPARKCONF_FIELD_NUMBER = 4; - private static final class SparkConfDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> sparkConf_; - private com.google.protobuf.MapField - internalGetSparkConf() { - if (sparkConf_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SparkConfDefaultEntryHolder.defaultEntry); - } - return sparkConf_; - } - - public int getSparkConfCount() { - return internalGetSparkConf().getMap().size(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public boolean containsSparkConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetSparkConf().getMap().containsKey(key); - } - /** - * Use {@link #getSparkConfMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getSparkConf() { - return getSparkConfMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.util.Map getSparkConfMap() { - return internalGetSparkConf().getMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.lang.String getSparkConfOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSparkConf().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.lang.String getSparkConfOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSparkConf().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int HADOOPCONF_FIELD_NUMBER = 5; - private static final class HadoopConfDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> hadoopConf_; - private com.google.protobuf.MapField - internalGetHadoopConf() { - if (hadoopConf_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HadoopConfDefaultEntryHolder.defaultEntry); - } - return hadoopConf_; - } - - public int getHadoopConfCount() { - return internalGetHadoopConf().getMap().size(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public boolean containsHadoopConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetHadoopConf().getMap().containsKey(key); - } - /** - * Use {@link #getHadoopConfMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getHadoopConf() { - return getHadoopConfMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.util.Map getHadoopConfMap() { - return internalGetHadoopConf().getMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.lang.String getHadoopConfOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHadoopConf().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.lang.String getHadoopConfOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHadoopConf().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int EXECUTORPATH_FIELD_NUMBER = 6; - private volatile java.lang.Object executorPath_; - /** - *
-     * Executor path for Python jobs.
-     * 
- * - * string executorPath = 6; - */ - public java.lang.String getExecutorPath() { - java.lang.Object ref = executorPath_; - 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(); - executorPath_ = s; - return s; - } - } - /** - *
-     * Executor path for Python jobs.
-     * 
- * - * string executorPath = 6; - */ - public com.google.protobuf.ByteString - getExecutorPathBytes() { - java.lang.Object ref = executorPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executorPath_ = 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 (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { - output.writeEnum(1, applicationType_); - } - if (!getMainApplicationFileBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mainApplicationFile_); - } - if (!getMainClassBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mainClass_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetSparkConf(), - SparkConfDefaultEntryHolder.defaultEntry, - 4); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetHadoopConf(), - HadoopConfDefaultEntryHolder.defaultEntry, - 5); - if (!getExecutorPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, executorPath_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, applicationType_); - } - if (!getMainApplicationFileBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mainApplicationFile_); - } - if (!getMainClassBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mainClass_); - } - for (java.util.Map.Entry entry - : internalGetSparkConf().getMap().entrySet()) { - com.google.protobuf.MapEntry - sparkConf__ = SparkConfDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, sparkConf__); - } - for (java.util.Map.Entry entry - : internalGetHadoopConf().getMap().entrySet()) { - com.google.protobuf.MapEntry - hadoopConf__ = HadoopConfDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, hadoopConf__); - } - if (!getExecutorPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, executorPath_); - } - 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 flyteidl.plugins.Spark.SparkJob)) { - return super.equals(obj); - } - flyteidl.plugins.Spark.SparkJob other = (flyteidl.plugins.Spark.SparkJob) obj; - - if (applicationType_ != other.applicationType_) return false; - if (!getMainApplicationFile() - .equals(other.getMainApplicationFile())) return false; - if (!getMainClass() - .equals(other.getMainClass())) return false; - if (!internalGetSparkConf().equals( - other.internalGetSparkConf())) return false; - if (!internalGetHadoopConf().equals( - other.internalGetHadoopConf())) return false; - if (!getExecutorPath() - .equals(other.getExecutorPath())) 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) + APPLICATIONTYPE_FIELD_NUMBER; - hash = (53 * hash) + applicationType_; - hash = (37 * hash) + MAINAPPLICATIONFILE_FIELD_NUMBER; - hash = (53 * hash) + getMainApplicationFile().hashCode(); - hash = (37 * hash) + MAINCLASS_FIELD_NUMBER; - hash = (53 * hash) + getMainClass().hashCode(); - if (!internalGetSparkConf().getMap().isEmpty()) { - hash = (37 * hash) + SPARKCONF_FIELD_NUMBER; - hash = (53 * hash) + internalGetSparkConf().hashCode(); - } - if (!internalGetHadoopConf().getMap().isEmpty()) { - hash = (37 * hash) + HADOOPCONF_FIELD_NUMBER; - hash = (53 * hash) + internalGetHadoopConf().hashCode(); - } - hash = (37 * hash) + EXECUTORPATH_FIELD_NUMBER; - hash = (53 * hash) + getExecutorPath().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Spark.SparkJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkJob 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 flyteidl.plugins.Spark.SparkJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkJob 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 flyteidl.plugins.Spark.SparkJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkJob 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(flyteidl.plugins.Spark.SparkJob 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; - } - /** - *
-     * Custom Proto for Spark Plugin.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.SparkJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkJob) - flyteidl.plugins.Spark.SparkJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetSparkConf(); - case 5: - return internalGetHadoopConf(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableSparkConf(); - case 5: - return internalGetMutableHadoopConf(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); - } - - // Construct using flyteidl.plugins.Spark.SparkJob.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(); - applicationType_ = 0; - - mainApplicationFile_ = ""; - - mainClass_ = ""; - - internalGetMutableSparkConf().clear(); - internalGetMutableHadoopConf().clear(); - executorPath_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkJob getDefaultInstanceForType() { - return flyteidl.plugins.Spark.SparkJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkJob build() { - flyteidl.plugins.Spark.SparkJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkJob buildPartial() { - flyteidl.plugins.Spark.SparkJob result = new flyteidl.plugins.Spark.SparkJob(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.applicationType_ = applicationType_; - result.mainApplicationFile_ = mainApplicationFile_; - result.mainClass_ = mainClass_; - result.sparkConf_ = internalGetSparkConf(); - result.sparkConf_.makeImmutable(); - result.hadoopConf_ = internalGetHadoopConf(); - result.hadoopConf_.makeImmutable(); - result.executorPath_ = executorPath_; - result.bitField0_ = to_bitField0_; - 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 flyteidl.plugins.Spark.SparkJob) { - return mergeFrom((flyteidl.plugins.Spark.SparkJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Spark.SparkJob other) { - if (other == flyteidl.plugins.Spark.SparkJob.getDefaultInstance()) return this; - if (other.applicationType_ != 0) { - setApplicationTypeValue(other.getApplicationTypeValue()); - } - if (!other.getMainApplicationFile().isEmpty()) { - mainApplicationFile_ = other.mainApplicationFile_; - onChanged(); - } - if (!other.getMainClass().isEmpty()) { - mainClass_ = other.mainClass_; - onChanged(); - } - internalGetMutableSparkConf().mergeFrom( - other.internalGetSparkConf()); - internalGetMutableHadoopConf().mergeFrom( - other.internalGetHadoopConf()); - if (!other.getExecutorPath().isEmpty()) { - executorPath_ = other.executorPath_; - 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 { - flyteidl.plugins.Spark.SparkJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Spark.SparkJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int applicationType_ = 0; - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public int getApplicationTypeValue() { - return applicationType_; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public Builder setApplicationTypeValue(int value) { - applicationType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); - return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public Builder setApplicationType(flyteidl.plugins.Spark.SparkApplication.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - applicationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public Builder clearApplicationType() { - - applicationType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object mainApplicationFile_ = ""; - /** - * string mainApplicationFile = 2; - */ - public java.lang.String getMainApplicationFile() { - java.lang.Object ref = mainApplicationFile_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainApplicationFile_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string mainApplicationFile = 2; - */ - public com.google.protobuf.ByteString - getMainApplicationFileBytes() { - java.lang.Object ref = mainApplicationFile_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mainApplicationFile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string mainApplicationFile = 2; - */ - public Builder setMainApplicationFile( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mainApplicationFile_ = value; - onChanged(); - return this; - } - /** - * string mainApplicationFile = 2; - */ - public Builder clearMainApplicationFile() { - - mainApplicationFile_ = getDefaultInstance().getMainApplicationFile(); - onChanged(); - return this; - } - /** - * string mainApplicationFile = 2; - */ - public Builder setMainApplicationFileBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mainApplicationFile_ = value; - onChanged(); - return this; - } - - private java.lang.Object mainClass_ = ""; - /** - * string mainClass = 3; - */ - public java.lang.String getMainClass() { - java.lang.Object ref = mainClass_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainClass_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string mainClass = 3; - */ - public com.google.protobuf.ByteString - getMainClassBytes() { - java.lang.Object ref = mainClass_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mainClass_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string mainClass = 3; - */ - public Builder setMainClass( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mainClass_ = value; - onChanged(); - return this; - } - /** - * string mainClass = 3; - */ - public Builder clearMainClass() { - - mainClass_ = getDefaultInstance().getMainClass(); - onChanged(); - return this; - } - /** - * string mainClass = 3; - */ - public Builder setMainClassBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mainClass_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> sparkConf_; - private com.google.protobuf.MapField - internalGetSparkConf() { - if (sparkConf_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SparkConfDefaultEntryHolder.defaultEntry); - } - return sparkConf_; - } - private com.google.protobuf.MapField - internalGetMutableSparkConf() { - onChanged();; - if (sparkConf_ == null) { - sparkConf_ = com.google.protobuf.MapField.newMapField( - SparkConfDefaultEntryHolder.defaultEntry); - } - if (!sparkConf_.isMutable()) { - sparkConf_ = sparkConf_.copy(); - } - return sparkConf_; - } - - public int getSparkConfCount() { - return internalGetSparkConf().getMap().size(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public boolean containsSparkConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetSparkConf().getMap().containsKey(key); - } - /** - * Use {@link #getSparkConfMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getSparkConf() { - return getSparkConfMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.util.Map getSparkConfMap() { - return internalGetSparkConf().getMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.lang.String getSparkConfOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSparkConf().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.lang.String getSparkConfOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSparkConf().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSparkConf() { - internalGetMutableSparkConf().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> sparkConf = 4; - */ - - public Builder removeSparkConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableSparkConf().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableSparkConf() { - return internalGetMutableSparkConf().getMutableMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - public Builder putSparkConf( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableSparkConf().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, string> sparkConf = 4; - */ - - public Builder putAllSparkConf( - java.util.Map values) { - internalGetMutableSparkConf().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> hadoopConf_; - private com.google.protobuf.MapField - internalGetHadoopConf() { - if (hadoopConf_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HadoopConfDefaultEntryHolder.defaultEntry); - } - return hadoopConf_; - } - private com.google.protobuf.MapField - internalGetMutableHadoopConf() { - onChanged();; - if (hadoopConf_ == null) { - hadoopConf_ = com.google.protobuf.MapField.newMapField( - HadoopConfDefaultEntryHolder.defaultEntry); - } - if (!hadoopConf_.isMutable()) { - hadoopConf_ = hadoopConf_.copy(); - } - return hadoopConf_; - } - - public int getHadoopConfCount() { - return internalGetHadoopConf().getMap().size(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public boolean containsHadoopConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetHadoopConf().getMap().containsKey(key); - } - /** - * Use {@link #getHadoopConfMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getHadoopConf() { - return getHadoopConfMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.util.Map getHadoopConfMap() { - return internalGetHadoopConf().getMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.lang.String getHadoopConfOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHadoopConf().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.lang.String getHadoopConfOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHadoopConf().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearHadoopConf() { - internalGetMutableHadoopConf().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> hadoopConf = 5; - */ - - public Builder removeHadoopConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableHadoopConf().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableHadoopConf() { - return internalGetMutableHadoopConf().getMutableMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - public Builder putHadoopConf( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableHadoopConf().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, string> hadoopConf = 5; - */ - - public Builder putAllHadoopConf( - java.util.Map values) { - internalGetMutableHadoopConf().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object executorPath_ = ""; - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public java.lang.String getExecutorPath() { - java.lang.Object ref = executorPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executorPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public com.google.protobuf.ByteString - getExecutorPathBytes() { - java.lang.Object ref = executorPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executorPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public Builder setExecutorPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - executorPath_ = value; - onChanged(); - return this; - } - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public Builder clearExecutorPath() { - - executorPath_ = getDefaultInstance().getExecutorPath(); - onChanged(); - return this; - } - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public Builder setExecutorPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - executorPath_ = 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:flyteidl.plugins.SparkJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkJob) - private static final flyteidl.plugins.Spark.SparkJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkJob(); - } - - public static flyteidl.plugins.Spark.SparkJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkJob(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 flyteidl.plugins.Spark.SparkJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SparkApplication_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SparkJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_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\034flyteidl/plugins/spark.proto\022\020flyteidl" + - ".plugins\"B\n\020SparkApplication\".\n\004Type\022\n\n\006" + - "PYTHON\020\000\022\010\n\004JAVA\020\001\022\t\n\005SCALA\020\002\022\005\n\001R\020\003\"\365\002\n" + - "\010SparkJob\022@\n\017applicationType\030\001 \001(\0162\'.fly" + - "teidl.plugins.SparkApplication.Type\022\033\n\023m" + - "ainApplicationFile\030\002 \001(\t\022\021\n\tmainClass\030\003 " + - "\001(\t\022<\n\tsparkConf\030\004 \003(\0132).flyteidl.plugin" + - "s.SparkJob.SparkConfEntry\022>\n\nhadoopConf\030" + - "\005 \003(\0132*.flyteidl.plugins.SparkJob.Hadoop" + - "ConfEntry\022\024\n\014executorPath\030\006 \001(\t\0320\n\016Spark" + - "ConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\0321\n\017HadoopConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001B5Z3github.com/lyft/flyteidl" + - "/gen/pb-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_SparkApplication_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SparkApplication_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_plugins_SparkJob_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SparkJob_descriptor, - new java.lang.String[] { "ApplicationType", "MainApplicationFile", "MainClass", "SparkConf", "HadoopConf", "ExecutorPath", }); - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor = - internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor = - internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(1); - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/Tensorflow.java b/gen/pb-java/flyteidl/plugins/Tensorflow.java deleted file mode 100644 index e8d80be10..000000000 --- a/gen/pb-java/flyteidl/plugins/Tensorflow.java +++ /dev/null @@ -1,705 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/tensorflow.proto - -package flyteidl.plugins; - -public final class Tensorflow { - private Tensorflow() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DistributedTensorflowTrainingTaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedTensorflowTrainingTask) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * number of worker, ps, chief replicas spawned in the cluster for this job
-     * 
- * - * int32 workers = 1; - */ - int getWorkers(); - - /** - *
-     * PS -> Parameter server
-     * 
- * - * int32 ps_replicas = 2; - */ - int getPsReplicas(); - - /** - * int32 chief_replicas = 3; - */ - int getChiefReplicas(); - } - /** - *
-   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
-   * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedTensorflowTrainingTask} - */ - public static final class DistributedTensorflowTrainingTask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedTensorflowTrainingTask) - DistributedTensorflowTrainingTaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use DistributedTensorflowTrainingTask.newBuilder() to construct. - private DistributedTensorflowTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributedTensorflowTrainingTask() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributedTensorflowTrainingTask( - 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 8: { - - workers_ = input.readInt32(); - break; - } - case 16: { - - psReplicas_ = input.readInt32(); - break; - } - case 24: { - - chiefReplicas_ = input.readInt32(); - 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 flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); - } - - public static final int WORKERS_FIELD_NUMBER = 1; - private int workers_; - /** - *
-     * number of worker, ps, chief replicas spawned in the cluster for this job
-     * 
- * - * int32 workers = 1; - */ - public int getWorkers() { - return workers_; - } - - public static final int PS_REPLICAS_FIELD_NUMBER = 2; - private int psReplicas_; - /** - *
-     * PS -> Parameter server
-     * 
- * - * int32 ps_replicas = 2; - */ - public int getPsReplicas() { - return psReplicas_; - } - - public static final int CHIEF_REPLICAS_FIELD_NUMBER = 3; - private int chiefReplicas_; - /** - * int32 chief_replicas = 3; - */ - public int getChiefReplicas() { - return chiefReplicas_; - } - - 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 (workers_ != 0) { - output.writeInt32(1, workers_); - } - if (psReplicas_ != 0) { - output.writeInt32(2, psReplicas_); - } - if (chiefReplicas_ != 0) { - output.writeInt32(3, chiefReplicas_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workers_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, workers_); - } - if (psReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, psReplicas_); - } - if (chiefReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, chiefReplicas_); - } - 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask)) { - return super.equals(obj); - } - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask other = (flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) obj; - - if (getWorkers() - != other.getWorkers()) return false; - if (getPsReplicas() - != other.getPsReplicas()) return false; - if (getChiefReplicas() - != other.getChiefReplicas()) 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) + WORKERS_FIELD_NUMBER; - hash = (53 * hash) + getWorkers(); - hash = (37 * hash) + PS_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getPsReplicas(); - hash = (37 * hash) + CHIEF_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getChiefReplicas(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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(flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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; - } - /** - *
-     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
-     * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedTensorflowTrainingTask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedTensorflowTrainingTask) - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); - } - - // Construct using flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.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(); - workers_ = 0; - - psReplicas_ = 0; - - chiefReplicas_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { - return flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask build() { - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask buildPartial() { - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask result = new flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask(this); - result.workers_ = workers_; - result.psReplicas_ = psReplicas_; - result.chiefReplicas_ = chiefReplicas_; - 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) { - return mergeFrom((flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask other) { - if (other == flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance()) return this; - if (other.getWorkers() != 0) { - setWorkers(other.getWorkers()); - } - if (other.getPsReplicas() != 0) { - setPsReplicas(other.getPsReplicas()); - } - if (other.getChiefReplicas() != 0) { - setChiefReplicas(other.getChiefReplicas()); - } - 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 { - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int workers_ ; - /** - *
-       * number of worker, ps, chief replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public int getWorkers() { - return workers_; - } - /** - *
-       * number of worker, ps, chief replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public Builder setWorkers(int value) { - - workers_ = value; - onChanged(); - return this; - } - /** - *
-       * number of worker, ps, chief replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public Builder clearWorkers() { - - workers_ = 0; - onChanged(); - return this; - } - - private int psReplicas_ ; - /** - *
-       * PS -> Parameter server
-       * 
- * - * int32 ps_replicas = 2; - */ - public int getPsReplicas() { - return psReplicas_; - } - /** - *
-       * PS -> Parameter server
-       * 
- * - * int32 ps_replicas = 2; - */ - public Builder setPsReplicas(int value) { - - psReplicas_ = value; - onChanged(); - return this; - } - /** - *
-       * PS -> Parameter server
-       * 
- * - * int32 ps_replicas = 2; - */ - public Builder clearPsReplicas() { - - psReplicas_ = 0; - onChanged(); - return this; - } - - private int chiefReplicas_ ; - /** - * int32 chief_replicas = 3; - */ - public int getChiefReplicas() { - return chiefReplicas_; - } - /** - * int32 chief_replicas = 3; - */ - public Builder setChiefReplicas(int value) { - - chiefReplicas_ = value; - onChanged(); - return this; - } - /** - * int32 chief_replicas = 3; - */ - public Builder clearChiefReplicas() { - - chiefReplicas_ = 0; - 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:flyteidl.plugins.DistributedTensorflowTrainingTask) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedTensorflowTrainingTask) - private static final flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask(); - } - - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributedTensorflowTrainingTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributedTensorflowTrainingTask(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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_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!flyteidl/plugins/tensorflow.proto\022\020fly" + - "teidl.plugins\"a\n!DistributedTensorflowTr" + - "ainingTask\022\017\n\007workers\030\001 \001(\005\022\023\n\013ps_replic" + - "as\030\002 \001(\005\022\026\n\016chief_replicas\030\003 \001(\005B5Z3gith" + - "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" + - "pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor, - new java.lang.String[] { "Workers", "PsReplicas", "ChiefReplicas", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java b/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java deleted file mode 100644 index 775bfea76..000000000 --- a/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java +++ /dev/null @@ -1,911 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/waitable.proto - -package flyteidl.plugins; - -public final class WaitableOuterClass { - private WaitableOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WaitableOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.Waitable) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - boolean hasWfExecId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder(); - - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - int getPhaseValue(); - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); - - /** - * string workflow_id = 3; - */ - java.lang.String getWorkflowId(); - /** - * string workflow_id = 3; - */ - com.google.protobuf.ByteString - getWorkflowIdBytes(); - } - /** - *
-   * Represents an Execution that was launched and could be waited on.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.Waitable} - */ - public static final class Waitable extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.Waitable) - WaitableOrBuilder { - private static final long serialVersionUID = 0L; - // Use Waitable.newBuilder() to construct. - private Waitable(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Waitable() { - phase_ = 0; - workflowId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Waitable( - 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: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (wfExecId_ != null) { - subBuilder = wfExecId_.toBuilder(); - } - wfExecId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(wfExecId_); - wfExecId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - workflowId_ = 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 flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); - } - - public static final int WF_EXEC_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public boolean hasWfExecId() { - return wfExecId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { - return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { - return getWfExecId(); - } - - public static final int PHASE_FIELD_NUMBER = 2; - private int phase_; - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - - public static final int WORKFLOW_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object workflowId_; - /** - * string workflow_id = 3; - */ - public java.lang.String getWorkflowId() { - java.lang.Object ref = workflowId_; - 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(); - workflowId_ = s; - return s; - } - } - /** - * string workflow_id = 3; - */ - public com.google.protobuf.ByteString - getWorkflowIdBytes() { - java.lang.Object ref = workflowId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflowId_ = 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 (wfExecId_ != null) { - output.writeMessage(1, getWfExecId()); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(2, phase_); - } - if (!getWorkflowIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (wfExecId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWfExecId()); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, phase_); - } - if (!getWorkflowIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_); - } - 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 flyteidl.plugins.WaitableOuterClass.Waitable)) { - return super.equals(obj); - } - flyteidl.plugins.WaitableOuterClass.Waitable other = (flyteidl.plugins.WaitableOuterClass.Waitable) obj; - - if (hasWfExecId() != other.hasWfExecId()) return false; - if (hasWfExecId()) { - if (!getWfExecId() - .equals(other.getWfExecId())) return false; - } - if (phase_ != other.phase_) return false; - if (!getWorkflowId() - .equals(other.getWorkflowId())) 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 (hasWfExecId()) { - hash = (37 * hash) + WF_EXEC_ID_FIELD_NUMBER; - hash = (53 * hash) + getWfExecId().hashCode(); - } - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable 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 flyteidl.plugins.WaitableOuterClass.Waitable parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable 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 flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable 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(flyteidl.plugins.WaitableOuterClass.Waitable 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; - } - /** - *
-     * Represents an Execution that was launched and could be waited on.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.Waitable} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.Waitable) - flyteidl.plugins.WaitableOuterClass.WaitableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); - } - - // Construct using flyteidl.plugins.WaitableOuterClass.Waitable.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 (wfExecIdBuilder_ == null) { - wfExecId_ = null; - } else { - wfExecId_ = null; - wfExecIdBuilder_ = null; - } - phase_ = 0; - - workflowId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { - return flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.WaitableOuterClass.Waitable build() { - flyteidl.plugins.WaitableOuterClass.Waitable result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.WaitableOuterClass.Waitable buildPartial() { - flyteidl.plugins.WaitableOuterClass.Waitable result = new flyteidl.plugins.WaitableOuterClass.Waitable(this); - if (wfExecIdBuilder_ == null) { - result.wfExecId_ = wfExecId_; - } else { - result.wfExecId_ = wfExecIdBuilder_.build(); - } - result.phase_ = phase_; - result.workflowId_ = workflowId_; - 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 flyteidl.plugins.WaitableOuterClass.Waitable) { - return mergeFrom((flyteidl.plugins.WaitableOuterClass.Waitable)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.WaitableOuterClass.Waitable other) { - if (other == flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance()) return this; - if (other.hasWfExecId()) { - mergeWfExecId(other.getWfExecId()); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (!other.getWorkflowId().isEmpty()) { - workflowId_ = other.workflowId_; - 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 { - flyteidl.plugins.WaitableOuterClass.Waitable parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.WaitableOuterClass.Waitable) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> wfExecIdBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public boolean hasWfExecId() { - return wfExecIdBuilder_ != null || wfExecId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { - if (wfExecIdBuilder_ == null) { - return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; - } else { - return wfExecIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public Builder setWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (wfExecIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - wfExecId_ = value; - onChanged(); - } else { - wfExecIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public Builder setWfExecId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (wfExecIdBuilder_ == null) { - wfExecId_ = builderForValue.build(); - onChanged(); - } else { - wfExecIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public Builder mergeWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (wfExecIdBuilder_ == null) { - if (wfExecId_ != null) { - wfExecId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(wfExecId_).mergeFrom(value).buildPartial(); - } else { - wfExecId_ = value; - } - onChanged(); - } else { - wfExecIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public Builder clearWfExecId() { - if (wfExecIdBuilder_ == null) { - wfExecId_ = null; - onChanged(); - } else { - wfExecId_ = null; - wfExecIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWfExecIdBuilder() { - - onChanged(); - return getWfExecIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { - if (wfExecIdBuilder_ != null) { - return wfExecIdBuilder_.getMessageOrBuilder(); - } else { - return wfExecId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getWfExecIdFieldBuilder() { - if (wfExecIdBuilder_ == null) { - wfExecIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getWfExecId(), - getParentForChildren(), - isClean()); - wfExecId_ = null; - } - return wfExecIdBuilder_; - } - - private int phase_ = 0; - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private java.lang.Object workflowId_ = ""; - /** - * string workflow_id = 3; - */ - public java.lang.String getWorkflowId() { - java.lang.Object ref = workflowId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflowId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string workflow_id = 3; - */ - public com.google.protobuf.ByteString - getWorkflowIdBytes() { - java.lang.Object ref = workflowId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflowId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string workflow_id = 3; - */ - public Builder setWorkflowId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflowId_ = value; - onChanged(); - return this; - } - /** - * string workflow_id = 3; - */ - public Builder clearWorkflowId() { - - workflowId_ = getDefaultInstance().getWorkflowId(); - onChanged(); - return this; - } - /** - * string workflow_id = 3; - */ - public Builder setWorkflowIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflowId_ = 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:flyteidl.plugins.Waitable) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.Waitable) - private static final flyteidl.plugins.WaitableOuterClass.Waitable DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.WaitableOuterClass.Waitable(); - } - - public static flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Waitable parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Waitable(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 flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_Waitable_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_Waitable_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\037flyteidl/plugins/waitable.proto\022\020flyte" + - "idl.plugins\032\035flyteidl/core/execution.pro" + - "to\032\036flyteidl/core/identifier.proto\"\226\001\n\010W" + - "aitable\022>\n\nwf_exec_id\030\001 \001(\0132*.flyteidl.c" + - "ore.WorkflowExecutionIdentifier\0225\n\005phase" + - "\030\002 \001(\0162&.flyteidl.core.WorkflowExecution" + - ".Phase\022\023\n\013workflow_id\030\003 \001(\tB5Z3github.co" + - "m/lyft/flyteidl/gen/pb-go/flyteidl/plugi" + - "nsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_Waitable_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_Waitable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_Waitable_descriptor, - new java.lang.String[] { "WfExecId", "Phase", "WorkflowId", }); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java b/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java deleted file mode 100644 index 87ed539e5..000000000 --- a/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java +++ /dev/null @@ -1,2824 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpo_job.proto - -package flyteidl.plugins.sagemaker; - -public final class HpoJob { - private HpoJob() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface HyperparameterTuningObjectiveOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - int getObjectiveTypeValue(); - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); - - /** - * string metric_name = 2; - */ - java.lang.String getMetricName(); - /** - * string metric_name = 2; - */ - com.google.protobuf.ByteString - getMetricNameBytes(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} - */ - public static final class HyperparameterTuningObjective extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - HyperparameterTuningObjectiveOrBuilder { - private static final long serialVersionUID = 0L; - // Use HyperparameterTuningObjective.newBuilder() to construct. - private HyperparameterTuningObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HyperparameterTuningObjective() { - objectiveType_ = 0; - metricName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HyperparameterTuningObjective( - 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 8: { - int rawValue = input.readEnum(); - - objectiveType_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - metricName_ = 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType} - */ - public enum HyperparameterTuningObjectiveType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * MINIMIZE = 0; - */ - MINIMIZE(0), - /** - * MAXIMIZE = 1; - */ - MAXIMIZE(1), - UNRECOGNIZED(-1), - ; - - /** - * MINIMIZE = 0; - */ - public static final int MINIMIZE_VALUE = 0; - /** - * MAXIMIZE = 1; - */ - public static final int MAXIMIZE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HyperparameterTuningObjectiveType valueOf(int value) { - return forNumber(value); - } - - public static HyperparameterTuningObjectiveType forNumber(int value) { - switch (value) { - case 0: return MINIMIZE; - case 1: return MAXIMIZE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HyperparameterTuningObjectiveType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HyperparameterTuningObjectiveType findValueByNumber(int number) { - return HyperparameterTuningObjectiveType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0); - } - - private static final HyperparameterTuningObjectiveType[] VALUES = values(); - - public static HyperparameterTuningObjectiveType 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 HyperparameterTuningObjectiveType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType) - } - - public static final int OBJECTIVE_TYPE_FIELD_NUMBER = 1; - private int objectiveType_; - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public int getObjectiveTypeValue() { - return objectiveType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; - } - - public static final int METRIC_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object metricName_; - /** - * string metric_name = 2; - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - 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(); - metricName_ = s; - return s; - } - } - /** - * string metric_name = 2; - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = 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 (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { - output.writeEnum(1, objectiveType_); - } - if (!getMetricNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, objectiveType_); - } - if (!getMetricNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricName_); - } - 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) obj; - - if (objectiveType_ != other.objectiveType_) return false; - if (!getMetricName() - .equals(other.getMetricName())) 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) + OBJECTIVE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + objectiveType_; - hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HyperparameterTuningObjective} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.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(); - objectiveType_ = 0; - - metricName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective build() { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective buildPartial() { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(this); - result.objectiveType_ = objectiveType_; - result.metricName_ = metricName_; - 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) { - return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other) { - if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance()) return this; - if (other.objectiveType_ != 0) { - setObjectiveTypeValue(other.getObjectiveTypeValue()); - } - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - 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 { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int objectiveType_ = 0; - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public int getObjectiveTypeValue() { - return objectiveType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public Builder setObjectiveTypeValue(int value) { - objectiveType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public Builder setObjectiveType(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) { - if (value == null) { - throw new NullPointerException(); - } - - objectiveType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public Builder clearObjectiveType() { - - objectiveType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object metricName_ = ""; - /** - * string metric_name = 2; - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string metric_name = 2; - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string metric_name = 2; - */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metricName_ = value; - onChanged(); - return this; - } - /** - * string metric_name = 2; - */ - public Builder clearMetricName() { - - metricName_ = getDefaultInstance().getMetricName(); - onChanged(); - return this; - } - /** - * string metric_name = 2; - */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metricName_ = 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:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(); - } - - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HyperparameterTuningObjective parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HyperparameterTuningObjective(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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HPOJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - boolean hasTrainingJob(); - /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob(); - /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder(); - - /** - * int64 max_number_of_training_jobs = 2; - */ - long getMaxNumberOfTrainingJobs(); - - /** - * int64 max_parallel_training_jobs = 3; - */ - long getMaxParallelTrainingJobs(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJob} - */ - public static final class HPOJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJob) - HPOJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use HPOJob.newBuilder() to construct. - private HPOJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HPOJob() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HPOJob( - 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: { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder subBuilder = null; - if (trainingJob_ != null) { - subBuilder = trainingJob_.toBuilder(); - } - trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trainingJob_); - trainingJob_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - maxNumberOfTrainingJobs_ = input.readInt64(); - break; - } - case 24: { - - maxParallelTrainingJobs_ = 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class); - } - - public static final int TRAINING_JOB_FIELD_NUMBER = 1; - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; - /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public boolean hasTrainingJob() { - return trainingJob_ != null; - } - /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { - return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; - } - /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { - return getTrainingJob(); - } - - public static final int MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER = 2; - private long maxNumberOfTrainingJobs_; - /** - * int64 max_number_of_training_jobs = 2; - */ - public long getMaxNumberOfTrainingJobs() { - return maxNumberOfTrainingJobs_; - } - - public static final int MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER = 3; - private long maxParallelTrainingJobs_; - /** - * int64 max_parallel_training_jobs = 3; - */ - public long getMaxParallelTrainingJobs() { - return maxParallelTrainingJobs_; - } - - 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 (trainingJob_ != null) { - output.writeMessage(1, getTrainingJob()); - } - if (maxNumberOfTrainingJobs_ != 0L) { - output.writeInt64(2, maxNumberOfTrainingJobs_); - } - if (maxParallelTrainingJobs_ != 0L) { - output.writeInt64(3, maxParallelTrainingJobs_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (trainingJob_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTrainingJob()); - } - if (maxNumberOfTrainingJobs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxNumberOfTrainingJobs_); - } - if (maxParallelTrainingJobs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, maxParallelTrainingJobs_); - } - 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.HpoJob.HPOJob other = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) obj; - - if (hasTrainingJob() != other.hasTrainingJob()) return false; - if (hasTrainingJob()) { - if (!getTrainingJob() - .equals(other.getTrainingJob())) return false; - } - if (getMaxNumberOfTrainingJobs() - != other.getMaxNumberOfTrainingJobs()) return false; - if (getMaxParallelTrainingJobs() - != other.getMaxParallelTrainingJobs()) 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 (hasTrainingJob()) { - hash = (37 * hash) + TRAINING_JOB_FIELD_NUMBER; - hash = (53 * hash) + getTrainingJob().hashCode(); - } - hash = (37 * hash) + MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxNumberOfTrainingJobs()); - hash = (37 * hash) + MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxParallelTrainingJobs()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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(flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.HPOJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJob) - flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJob.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 (trainingJobBuilder_ == null) { - trainingJob_ = null; - } else { - trainingJob_ = null; - trainingJobBuilder_ = null; - } - maxNumberOfTrainingJobs_ = 0L; - - maxParallelTrainingJobs_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJob build() { - flyteidl.plugins.sagemaker.HpoJob.HPOJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJob buildPartial() { - flyteidl.plugins.sagemaker.HpoJob.HPOJob result = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(this); - if (trainingJobBuilder_ == null) { - result.trainingJob_ = trainingJob_; - } else { - result.trainingJob_ = trainingJobBuilder_.build(); - } - result.maxNumberOfTrainingJobs_ = maxNumberOfTrainingJobs_; - result.maxParallelTrainingJobs_ = maxParallelTrainingJobs_; - 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob) { - return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJob other) { - if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance()) return this; - if (other.hasTrainingJob()) { - mergeTrainingJob(other.getTrainingJob()); - } - if (other.getMaxNumberOfTrainingJobs() != 0L) { - setMaxNumberOfTrainingJobs(other.getMaxNumberOfTrainingJobs()); - } - if (other.getMaxParallelTrainingJobs() != 0L) { - setMaxParallelTrainingJobs(other.getMaxParallelTrainingJobs()); - } - 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 { - flyteidl.plugins.sagemaker.HpoJob.HPOJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> trainingJobBuilder_; - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public boolean hasTrainingJob() { - return trainingJobBuilder_ != null || trainingJob_ != null; - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { - if (trainingJobBuilder_ == null) { - return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; - } else { - return trainingJobBuilder_.getMessage(); - } - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public Builder setTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { - if (trainingJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trainingJob_ = value; - onChanged(); - } else { - trainingJobBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public Builder setTrainingJob( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder builderForValue) { - if (trainingJobBuilder_ == null) { - trainingJob_ = builderForValue.build(); - onChanged(); - } else { - trainingJobBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { - if (trainingJobBuilder_ == null) { - if (trainingJob_ != null) { - trainingJob_ = - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); - } else { - trainingJob_ = value; - } - onChanged(); - } else { - trainingJobBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public Builder clearTrainingJob() { - if (trainingJobBuilder_ == null) { - trainingJob_ = null; - onChanged(); - } else { - trainingJob_ = null; - trainingJobBuilder_ = null; - } - - return this; - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder getTrainingJobBuilder() { - - onChanged(); - return getTrainingJobFieldBuilder().getBuilder(); - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { - if (trainingJobBuilder_ != null) { - return trainingJobBuilder_.getMessageOrBuilder(); - } else { - return trainingJob_ == null ? - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; - } - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> - getTrainingJobFieldBuilder() { - if (trainingJobBuilder_ == null) { - trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder>( - getTrainingJob(), - getParentForChildren(), - isClean()); - trainingJob_ = null; - } - return trainingJobBuilder_; - } - - private long maxNumberOfTrainingJobs_ ; - /** - * int64 max_number_of_training_jobs = 2; - */ - public long getMaxNumberOfTrainingJobs() { - return maxNumberOfTrainingJobs_; - } - /** - * int64 max_number_of_training_jobs = 2; - */ - public Builder setMaxNumberOfTrainingJobs(long value) { - - maxNumberOfTrainingJobs_ = value; - onChanged(); - return this; - } - /** - * int64 max_number_of_training_jobs = 2; - */ - public Builder clearMaxNumberOfTrainingJobs() { - - maxNumberOfTrainingJobs_ = 0L; - onChanged(); - return this; - } - - private long maxParallelTrainingJobs_ ; - /** - * int64 max_parallel_training_jobs = 3; - */ - public long getMaxParallelTrainingJobs() { - return maxParallelTrainingJobs_; - } - /** - * int64 max_parallel_training_jobs = 3; - */ - public Builder setMaxParallelTrainingJobs(long value) { - - maxParallelTrainingJobs_ = value; - onChanged(); - return this; - } - /** - * int64 max_parallel_training_jobs = 3; - */ - public Builder clearMaxParallelTrainingJobs() { - - maxParallelTrainingJobs_ = 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:flyteidl.plugins.sagemaker.HPOJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) - private static final flyteidl.plugins.sagemaker.HpoJob.HPOJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(); - } - - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HPOJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HPOJob(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 flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HPOJobConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJobConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - boolean hasHyperparameterRanges(); - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges(); - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - int getTuningStrategyValue(); - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy(); - - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - boolean hasTuningObjective(); - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective(); - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - int getTrainingJobEarlyStoppingTypeValue(); - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobConfig} - */ - public static final class HPOJobConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJobConfig) - HPOJobConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use HPOJobConfig.newBuilder() to construct. - private HPOJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HPOJobConfig() { - tuningStrategy_ = 0; - trainingJobEarlyStoppingType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HPOJobConfig( - 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: { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder subBuilder = null; - if (hyperparameterRanges_ != null) { - subBuilder = hyperparameterRanges_.toBuilder(); - } - hyperparameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hyperparameterRanges_); - hyperparameterRanges_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - tuningStrategy_ = rawValue; - break; - } - case 26: { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder subBuilder = null; - if (tuningObjective_ != null) { - subBuilder = tuningObjective_.toBuilder(); - } - tuningObjective_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tuningObjective_); - tuningObjective_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - int rawValue = input.readEnum(); - - trainingJobEarlyStoppingType_ = rawValue; - 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy} - */ - public enum HyperparameterTuningStrategy - implements com.google.protobuf.ProtocolMessageEnum { - /** - * BAYESIAN = 0; - */ - BAYESIAN(0), - /** - * RANDOM = 1; - */ - RANDOM(1), - UNRECOGNIZED(-1), - ; - - /** - * BAYESIAN = 0; - */ - public static final int BAYESIAN_VALUE = 0; - /** - * RANDOM = 1; - */ - public static final int RANDOM_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HyperparameterTuningStrategy valueOf(int value) { - return forNumber(value); - } - - public static HyperparameterTuningStrategy forNumber(int value) { - switch (value) { - case 0: return BAYESIAN; - case 1: return RANDOM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HyperparameterTuningStrategy> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HyperparameterTuningStrategy findValueByNumber(int number) { - return HyperparameterTuningStrategy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final HyperparameterTuningStrategy[] VALUES = values(); - - public static HyperparameterTuningStrategy 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 HyperparameterTuningStrategy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy) - } - - /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType} - */ - public enum TrainingJobEarlyStoppingType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * OFF = 0; - */ - OFF(0), - /** - * AUTO = 1; - */ - AUTO(1), - UNRECOGNIZED(-1), - ; - - /** - * OFF = 0; - */ - public static final int OFF_VALUE = 0; - /** - * AUTO = 1; - */ - public static final int AUTO_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TrainingJobEarlyStoppingType valueOf(int value) { - return forNumber(value); - } - - public static TrainingJobEarlyStoppingType forNumber(int value) { - switch (value) { - case 0: return OFF; - case 1: return AUTO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TrainingJobEarlyStoppingType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TrainingJobEarlyStoppingType findValueByNumber(int number) { - return TrainingJobEarlyStoppingType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(1); - } - - private static final TrainingJobEarlyStoppingType[] VALUES = values(); - - public static TrainingJobEarlyStoppingType 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 TrainingJobEarlyStoppingType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType) - } - - public static final int HYPERPARAMETER_RANGES_FIELD_NUMBER = 1; - private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_; - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public boolean hasHyperparameterRanges() { - return hyperparameterRanges_ != null; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { - return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { - return getHyperparameterRanges(); - } - - public static final int TUNING_STRATEGY_FIELD_NUMBER = 2; - private int tuningStrategy_; - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public int getTuningStrategyValue() { - return tuningStrategy_; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result; - } - - public static final int TUNING_OBJECTIVE_FIELD_NUMBER = 3; - private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_; - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public boolean hasTuningObjective() { - return tuningObjective_ != null; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() { - return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { - return getTuningObjective(); - } - - public static final int TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER = 4; - private int trainingJobEarlyStoppingType_; - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public int getTrainingJobEarlyStoppingTypeValue() { - return trainingJobEarlyStoppingType_; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; - } - - 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 (hyperparameterRanges_ != null) { - output.writeMessage(1, getHyperparameterRanges()); - } - if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { - output.writeEnum(2, tuningStrategy_); - } - if (tuningObjective_ != null) { - output.writeMessage(3, getTuningObjective()); - } - if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) { - output.writeEnum(4, trainingJobEarlyStoppingType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (hyperparameterRanges_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHyperparameterRanges()); - } - if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, tuningStrategy_); - } - if (tuningObjective_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTuningObjective()); - } - if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, trainingJobEarlyStoppingType_); - } - 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) obj; - - if (hasHyperparameterRanges() != other.hasHyperparameterRanges()) return false; - if (hasHyperparameterRanges()) { - if (!getHyperparameterRanges() - .equals(other.getHyperparameterRanges())) return false; - } - if (tuningStrategy_ != other.tuningStrategy_) return false; - if (hasTuningObjective() != other.hasTuningObjective()) return false; - if (hasTuningObjective()) { - if (!getTuningObjective() - .equals(other.getTuningObjective())) return false; - } - if (trainingJobEarlyStoppingType_ != other.trainingJobEarlyStoppingType_) 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 (hasHyperparameterRanges()) { - hash = (37 * hash) + HYPERPARAMETER_RANGES_FIELD_NUMBER; - hash = (53 * hash) + getHyperparameterRanges().hashCode(); - } - hash = (37 * hash) + TUNING_STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + tuningStrategy_; - if (hasTuningObjective()) { - hash = (37 * hash) + TUNING_OBJECTIVE_FIELD_NUMBER; - hash = (53 * hash) + getTuningObjective().hashCode(); - } - hash = (37 * hash) + TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER; - hash = (53 * hash) + trainingJobEarlyStoppingType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HPOJobConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobConfig) - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.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 (hyperparameterRangesBuilder_ == null) { - hyperparameterRanges_ = null; - } else { - hyperparameterRanges_ = null; - hyperparameterRangesBuilder_ = null; - } - tuningStrategy_ = 0; - - if (tuningObjectiveBuilder_ == null) { - tuningObjective_ = null; - } else { - tuningObjective_ = null; - tuningObjectiveBuilder_ = null; - } - trainingJobEarlyStoppingType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig build() { - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig buildPartial() { - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(this); - if (hyperparameterRangesBuilder_ == null) { - result.hyperparameterRanges_ = hyperparameterRanges_; - } else { - result.hyperparameterRanges_ = hyperparameterRangesBuilder_.build(); - } - result.tuningStrategy_ = tuningStrategy_; - if (tuningObjectiveBuilder_ == null) { - result.tuningObjective_ = tuningObjective_; - } else { - result.tuningObjective_ = tuningObjectiveBuilder_.build(); - } - result.trainingJobEarlyStoppingType_ = trainingJobEarlyStoppingType_; - 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) { - return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other) { - if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance()) return this; - if (other.hasHyperparameterRanges()) { - mergeHyperparameterRanges(other.getHyperparameterRanges()); - } - if (other.tuningStrategy_ != 0) { - setTuningStrategyValue(other.getTuningStrategyValue()); - } - if (other.hasTuningObjective()) { - mergeTuningObjective(other.getTuningObjective()); - } - if (other.trainingJobEarlyStoppingType_ != 0) { - setTrainingJobEarlyStoppingTypeValue(other.getTrainingJobEarlyStoppingTypeValue()); - } - 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 { - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> hyperparameterRangesBuilder_; - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public boolean hasHyperparameterRanges() { - return hyperparameterRangesBuilder_ != null || hyperparameterRanges_ != null; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { - if (hyperparameterRangesBuilder_ == null) { - return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; - } else { - return hyperparameterRangesBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { - if (hyperparameterRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hyperparameterRanges_ = value; - onChanged(); - } else { - hyperparameterRangesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public Builder setHyperparameterRanges( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder builderForValue) { - if (hyperparameterRangesBuilder_ == null) { - hyperparameterRanges_ = builderForValue.build(); - onChanged(); - } else { - hyperparameterRangesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public Builder mergeHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { - if (hyperparameterRangesBuilder_ == null) { - if (hyperparameterRanges_ != null) { - hyperparameterRanges_ = - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.newBuilder(hyperparameterRanges_).mergeFrom(value).buildPartial(); - } else { - hyperparameterRanges_ = value; - } - onChanged(); - } else { - hyperparameterRangesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public Builder clearHyperparameterRanges() { - if (hyperparameterRangesBuilder_ == null) { - hyperparameterRanges_ = null; - onChanged(); - } else { - hyperparameterRanges_ = null; - hyperparameterRangesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder getHyperparameterRangesBuilder() { - - onChanged(); - return getHyperparameterRangesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { - if (hyperparameterRangesBuilder_ != null) { - return hyperparameterRangesBuilder_.getMessageOrBuilder(); - } else { - return hyperparameterRanges_ == null ? - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; - } - } - /** - * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> - getHyperparameterRangesFieldBuilder() { - if (hyperparameterRangesBuilder_ == null) { - hyperparameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder>( - getHyperparameterRanges(), - getParentForChildren(), - isClean()); - hyperparameterRanges_ = null; - } - return hyperparameterRangesBuilder_; - } - - private int tuningStrategy_ = 0; - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public int getTuningStrategyValue() { - return tuningStrategy_; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public Builder setTuningStrategyValue(int value) { - tuningStrategy_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy value) { - if (value == null) { - throw new NullPointerException(); - } - - tuningStrategy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; - */ - public Builder clearTuningStrategy() { - - tuningStrategy_ = 0; - onChanged(); - return this; - } - - private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> tuningObjectiveBuilder_; - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public boolean hasTuningObjective() { - return tuningObjectiveBuilder_ != null || tuningObjective_ != null; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() { - if (tuningObjectiveBuilder_ == null) { - return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; - } else { - return tuningObjectiveBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public Builder setTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) { - if (tuningObjectiveBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tuningObjective_ = value; - onChanged(); - } else { - tuningObjectiveBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public Builder setTuningObjective( - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder builderForValue) { - if (tuningObjectiveBuilder_ == null) { - tuningObjective_ = builderForValue.build(); - onChanged(); - } else { - tuningObjectiveBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) { - if (tuningObjectiveBuilder_ == null) { - if (tuningObjective_ != null) { - tuningObjective_ = - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder(tuningObjective_).mergeFrom(value).buildPartial(); - } else { - tuningObjective_ = value; - } - onChanged(); - } else { - tuningObjectiveBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public Builder clearTuningObjective() { - if (tuningObjectiveBuilder_ == null) { - tuningObjective_ = null; - onChanged(); - } else { - tuningObjective_ = null; - tuningObjectiveBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder getTuningObjectiveBuilder() { - - onChanged(); - return getTuningObjectiveFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { - if (tuningObjectiveBuilder_ != null) { - return tuningObjectiveBuilder_.getMessageOrBuilder(); - } else { - return tuningObjective_ == null ? - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; - } - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> - getTuningObjectiveFieldBuilder() { - if (tuningObjectiveBuilder_ == null) { - tuningObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder>( - getTuningObjective(), - getParentForChildren(), - isClean()); - tuningObjective_ = null; - } - return tuningObjectiveBuilder_; - } - - private int trainingJobEarlyStoppingType_ = 0; - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public int getTrainingJobEarlyStoppingTypeValue() { - return trainingJobEarlyStoppingType_; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public Builder setTrainingJobEarlyStoppingTypeValue(int value) { - trainingJobEarlyStoppingType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType value) { - if (value == null) { - throw new NullPointerException(); - } - - trainingJobEarlyStoppingType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; - */ - public Builder clearTrainingJobEarlyStoppingType() { - - trainingJobEarlyStoppingType_ = 0; - 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:flyteidl.plugins.sagemaker.HPOJobConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) - private static final flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(); - } - - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HPOJobConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HPOJobConfig(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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_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(flyteidl/plugins/sagemaker/hpo_job.pro" + - "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" + - "/plugins/sagemaker/parameter_ranges.prot" + - "o\032-flyteidl/plugins/sagemaker/training_j" + - "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" + - "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" + - "ugins.sagemaker.HyperparameterTuningObje" + - "ctive.HyperparameterTuningObjectiveType\022" + - "\023\n\013metric_name\030\002 \001(\t\"?\n!HyperparameterTu" + - "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" + - "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" + - ".flyteidl.plugins.sagemaker.TrainingJob\022" + - "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" + - "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" + - "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" + - "2+.flyteidl.plugins.sagemaker.ParameterR" + - "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" + - "l.plugins.sagemaker.HPOJobConfig.Hyperpa" + - "rameterTuningStrategy\022S\n\020tuning_objectiv" + - "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" + - "erparameterTuningObjective\022o\n training_j" + - "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." + - "plugins.sagemaker.HPOJobConfig.TrainingJ" + - "obEarlyStoppingType\"8\n\034HyperparameterTun" + - "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" + - "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" + - "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" + - "/pb-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(), - flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor, - new java.lang.String[] { "ObjectiveType", "MetricName", }); - internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor, - new java.lang.String[] { "TrainingJob", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", }); - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor, - new java.lang.String[] { "HyperparameterRanges", "TuningStrategy", "TuningObjective", "TrainingJobEarlyStoppingType", }); - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); - flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java deleted file mode 100644 index 85e2b73f0..000000000 --- a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java +++ /dev/null @@ -1,3973 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/parameter_ranges.proto - -package flyteidl.plugins.sagemaker; - -public final class ParameterRangesOuterClass { - private ParameterRangesOuterClass() {} - 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 flyteidl.plugins.sagemaker.HyperparameterScalingType} - */ - public enum HyperparameterScalingType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * AUTO = 0; - */ - AUTO(0), - /** - * LINEAR = 1; - */ - LINEAR(1), - /** - * LOGARITHMIC = 2; - */ - LOGARITHMIC(2), - /** - * REVERSELOGARITHMIC = 3; - */ - REVERSELOGARITHMIC(3), - UNRECOGNIZED(-1), - ; - - /** - * AUTO = 0; - */ - public static final int AUTO_VALUE = 0; - /** - * LINEAR = 1; - */ - public static final int LINEAR_VALUE = 1; - /** - * LOGARITHMIC = 2; - */ - public static final int LOGARITHMIC_VALUE = 2; - /** - * REVERSELOGARITHMIC = 3; - */ - public static final int REVERSELOGARITHMIC_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HyperparameterScalingType valueOf(int value) { - return forNumber(value); - } - - public static HyperparameterScalingType forNumber(int value) { - switch (value) { - case 0: return AUTO; - case 1: return LINEAR; - case 2: return LOGARITHMIC; - case 3: return REVERSELOGARITHMIC; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HyperparameterScalingType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HyperparameterScalingType findValueByNumber(int number) { - return HyperparameterScalingType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final HyperparameterScalingType[] VALUES = values(); - - public static HyperparameterScalingType 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 HyperparameterScalingType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) - } - - public interface ContinuousParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ContinuousParameterRange) - com.google.protobuf.MessageOrBuilder { - - /** - * double max_value = 1; - */ - double getMaxValue(); - - /** - * double min_value = 2; - */ - double getMinValue(); - - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - int getScalingTypeValue(); - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} - */ - public static final class ContinuousParameterRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) - ContinuousParameterRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use ContinuousParameterRange.newBuilder() to construct. - private ContinuousParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ContinuousParameterRange() { - scalingType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContinuousParameterRange( - 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 9: { - - maxValue_ = input.readDouble(); - break; - } - case 17: { - - minValue_ = input.readDouble(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - scalingType_ = rawValue; - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class); - } - - public static final int MAX_VALUE_FIELD_NUMBER = 1; - private double maxValue_; - /** - * double max_value = 1; - */ - public double getMaxValue() { - return maxValue_; - } - - public static final int MIN_VALUE_FIELD_NUMBER = 2; - private double minValue_; - /** - * double min_value = 2; - */ - public double getMinValue() { - return minValue_; - } - - public static final int SCALING_TYPE_FIELD_NUMBER = 3; - private int scalingType_; - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public int getScalingTypeValue() { - return scalingType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; - } - - 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 (maxValue_ != 0D) { - output.writeDouble(1, maxValue_); - } - if (minValue_ != 0D) { - output.writeDouble(2, minValue_); - } - if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { - output.writeEnum(3, scalingType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxValue_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, maxValue_); - } - if (minValue_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, minValue_); - } - if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, scalingType_); - } - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) obj; - - if (java.lang.Double.doubleToLongBits(getMaxValue()) - != java.lang.Double.doubleToLongBits( - other.getMaxValue())) return false; - if (java.lang.Double.doubleToLongBits(getMinValue()) - != java.lang.Double.doubleToLongBits( - other.getMinValue())) return false; - if (scalingType_ != other.scalingType_) 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) + MAX_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMaxValue())); - hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMinValue())); - hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; - hash = (53 * hash) + scalingType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ContinuousParameterRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.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(); - maxValue_ = 0D; - - minValue_ = 0D; - - scalingType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange build() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange buildPartial() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(this); - result.maxValue_ = maxValue_; - result.minValue_ = minValue_; - result.scalingType_ = scalingType_; - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) { - return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other) { - if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) return this; - if (other.getMaxValue() != 0D) { - setMaxValue(other.getMaxValue()); - } - if (other.getMinValue() != 0D) { - setMinValue(other.getMinValue()); - } - if (other.scalingType_ != 0) { - setScalingTypeValue(other.getScalingTypeValue()); - } - 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 { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private double maxValue_ ; - /** - * double max_value = 1; - */ - public double getMaxValue() { - return maxValue_; - } - /** - * double max_value = 1; - */ - public Builder setMaxValue(double value) { - - maxValue_ = value; - onChanged(); - return this; - } - /** - * double max_value = 1; - */ - public Builder clearMaxValue() { - - maxValue_ = 0D; - onChanged(); - return this; - } - - private double minValue_ ; - /** - * double min_value = 2; - */ - public double getMinValue() { - return minValue_; - } - /** - * double min_value = 2; - */ - public Builder setMinValue(double value) { - - minValue_ = value; - onChanged(); - return this; - } - /** - * double min_value = 2; - */ - public Builder clearMinValue() { - - minValue_ = 0D; - onChanged(); - return this; - } - - private int scalingType_ = 0; - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public int getScalingTypeValue() { - return scalingType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public Builder setScalingTypeValue(int value) { - scalingType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) { - if (value == null) { - throw new NullPointerException(); - } - - scalingType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public Builder clearScalingType() { - - scalingType_ = 0; - 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:flyteidl.plugins.sagemaker.ContinuousParameterRange) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) - private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(); - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContinuousParameterRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContinuousParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IntegerParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.IntegerParameterRange) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 max_value = 1; - */ - long getMaxValue(); - - /** - * int64 min_value = 2; - */ - long getMinValue(); - - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - int getScalingTypeValue(); - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} - */ - public static final class IntegerParameterRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) - IntegerParameterRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use IntegerParameterRange.newBuilder() to construct. - private IntegerParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IntegerParameterRange() { - scalingType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IntegerParameterRange( - 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 8: { - - maxValue_ = input.readInt64(); - break; - } - case 16: { - - minValue_ = input.readInt64(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - scalingType_ = rawValue; - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class); - } - - public static final int MAX_VALUE_FIELD_NUMBER = 1; - private long maxValue_; - /** - * int64 max_value = 1; - */ - public long getMaxValue() { - return maxValue_; - } - - public static final int MIN_VALUE_FIELD_NUMBER = 2; - private long minValue_; - /** - * int64 min_value = 2; - */ - public long getMinValue() { - return minValue_; - } - - public static final int SCALING_TYPE_FIELD_NUMBER = 3; - private int scalingType_; - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public int getScalingTypeValue() { - return scalingType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; - } - - 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 (maxValue_ != 0L) { - output.writeInt64(1, maxValue_); - } - if (minValue_ != 0L) { - output.writeInt64(2, minValue_); - } - if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { - output.writeEnum(3, scalingType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxValue_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, maxValue_); - } - if (minValue_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, minValue_); - } - if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, scalingType_); - } - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) obj; - - if (getMaxValue() - != other.getMaxValue()) return false; - if (getMinValue() - != other.getMinValue()) return false; - if (scalingType_ != other.scalingType_) 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) + MAX_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxValue()); - hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinValue()); - hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; - hash = (53 * hash) + scalingType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.IntegerParameterRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.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(); - maxValue_ = 0L; - - minValue_ = 0L; - - scalingType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange build() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange buildPartial() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(this); - result.maxValue_ = maxValue_; - result.minValue_ = minValue_; - result.scalingType_ = scalingType_; - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) { - return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other) { - if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) return this; - if (other.getMaxValue() != 0L) { - setMaxValue(other.getMaxValue()); - } - if (other.getMinValue() != 0L) { - setMinValue(other.getMinValue()); - } - if (other.scalingType_ != 0) { - setScalingTypeValue(other.getScalingTypeValue()); - } - 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 { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long maxValue_ ; - /** - * int64 max_value = 1; - */ - public long getMaxValue() { - return maxValue_; - } - /** - * int64 max_value = 1; - */ - public Builder setMaxValue(long value) { - - maxValue_ = value; - onChanged(); - return this; - } - /** - * int64 max_value = 1; - */ - public Builder clearMaxValue() { - - maxValue_ = 0L; - onChanged(); - return this; - } - - private long minValue_ ; - /** - * int64 min_value = 2; - */ - public long getMinValue() { - return minValue_; - } - /** - * int64 min_value = 2; - */ - public Builder setMinValue(long value) { - - minValue_ = value; - onChanged(); - return this; - } - /** - * int64 min_value = 2; - */ - public Builder clearMinValue() { - - minValue_ = 0L; - onChanged(); - return this; - } - - private int scalingType_ = 0; - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public int getScalingTypeValue() { - return scalingType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public Builder setScalingTypeValue(int value) { - scalingType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) { - if (value == null) { - throw new NullPointerException(); - } - - scalingType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; - */ - public Builder clearScalingType() { - - scalingType_ = 0; - 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:flyteidl.plugins.sagemaker.IntegerParameterRange) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) - private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(); - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IntegerParameterRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IntegerParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CategoricalParameterRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.CategoricalParameterRange) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string values = 1; - */ - java.util.List - getValuesList(); - /** - * repeated string values = 1; - */ - int getValuesCount(); - /** - * repeated string values = 1; - */ - java.lang.String getValues(int index); - /** - * repeated string values = 1; - */ - com.google.protobuf.ByteString - getValuesBytes(int index); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} - */ - public static final class CategoricalParameterRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) - CategoricalParameterRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use CategoricalParameterRange.newBuilder() to construct. - private CategoricalParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CategoricalParameterRange() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CategoricalParameterRange( - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add(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)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList values_; - /** - * repeated string values = 1; - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - * repeated string values = 1; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string values = 1; - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string values = 1; - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(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 < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) obj; - - if (!getValuesList() - .equals(other.getValuesList())) 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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.CategoricalParameterRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.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(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange build() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange buildPartial() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) { - return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other) { - if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - 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 { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string values = 1; - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * repeated string values = 1; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string values = 1; - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string values = 1; - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - * repeated string values = 1; - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(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:flyteidl.plugins.sagemaker.CategoricalParameterRange) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) - private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(); - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CategoricalParameterRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CategoricalParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParameterRangeOneOfOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - boolean hasContinuousParameterRange(); - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange(); - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - boolean hasIntegerParameterRange(); - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange(); - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - boolean hasCategoricalParameterRange(); - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange(); - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder(); - - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.ParameterRangeTypeCase getParameterRangeTypeCase(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf} - */ - public static final class ParameterRangeOneOf extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - ParameterRangeOneOfOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParameterRangeOneOf.newBuilder() to construct. - private ParameterRangeOneOf(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParameterRangeOneOf() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParameterRangeOneOf( - 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: { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder subBuilder = null; - if (parameterRangeTypeCase_ == 1) { - subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_).toBuilder(); - } - parameterRangeType_ = - input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); - parameterRangeType_ = subBuilder.buildPartial(); - } - parameterRangeTypeCase_ = 1; - break; - } - case 18: { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder subBuilder = null; - if (parameterRangeTypeCase_ == 2) { - subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_).toBuilder(); - } - parameterRangeType_ = - input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); - parameterRangeType_ = subBuilder.buildPartial(); - } - parameterRangeTypeCase_ = 2; - break; - } - case 26: { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder subBuilder = null; - if (parameterRangeTypeCase_ == 3) { - subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_).toBuilder(); - } - parameterRangeType_ = - input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); - parameterRangeType_ = subBuilder.buildPartial(); - } - parameterRangeTypeCase_ = 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class); - } - - private int parameterRangeTypeCase_ = 0; - private java.lang.Object parameterRangeType_; - public enum ParameterRangeTypeCase - implements com.google.protobuf.Internal.EnumLite { - CONTINUOUS_PARAMETER_RANGE(1), - INTEGER_PARAMETER_RANGE(2), - CATEGORICAL_PARAMETER_RANGE(3), - PARAMETERRANGETYPE_NOT_SET(0); - private final int value; - private ParameterRangeTypeCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ParameterRangeTypeCase valueOf(int value) { - return forNumber(value); - } - - public static ParameterRangeTypeCase forNumber(int value) { - switch (value) { - case 1: return CONTINUOUS_PARAMETER_RANGE; - case 2: return INTEGER_PARAMETER_RANGE; - case 3: return CATEGORICAL_PARAMETER_RANGE; - case 0: return PARAMETERRANGETYPE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ParameterRangeTypeCase - getParameterRangeTypeCase() { - return ParameterRangeTypeCase.forNumber( - parameterRangeTypeCase_); - } - - public static final int CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER = 1; - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public boolean hasContinuousParameterRange() { - return parameterRangeTypeCase_ == 1; - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() { - if (parameterRangeTypeCase_ == 1) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { - if (parameterRangeTypeCase_ == 1) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } - - public static final int INTEGER_PARAMETER_RANGE_FIELD_NUMBER = 2; - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public boolean hasIntegerParameterRange() { - return parameterRangeTypeCase_ == 2; - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() { - if (parameterRangeTypeCase_ == 2) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { - if (parameterRangeTypeCase_ == 2) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } - - public static final int CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER = 3; - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public boolean hasCategoricalParameterRange() { - return parameterRangeTypeCase_ == 3; - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() { - if (parameterRangeTypeCase_ == 3) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { - if (parameterRangeTypeCase_ == 3) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (parameterRangeTypeCase_ == 1) { - output.writeMessage(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); - } - if (parameterRangeTypeCase_ == 2) { - output.writeMessage(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); - } - if (parameterRangeTypeCase_ == 3) { - output.writeMessage(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (parameterRangeTypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); - } - if (parameterRangeTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); - } - if (parameterRangeTypeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); - } - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) obj; - - if (!getParameterRangeTypeCase().equals(other.getParameterRangeTypeCase())) return false; - switch (parameterRangeTypeCase_) { - case 1: - if (!getContinuousParameterRange() - .equals(other.getContinuousParameterRange())) return false; - break; - case 2: - if (!getIntegerParameterRange() - .equals(other.getIntegerParameterRange())) return false; - break; - case 3: - if (!getCategoricalParameterRange() - .equals(other.getCategoricalParameterRange())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (parameterRangeTypeCase_) { - case 1: - hash = (37 * hash) + CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getContinuousParameterRange().hashCode(); - break; - case 2: - hash = (37 * hash) + INTEGER_PARAMETER_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getIntegerParameterRange().hashCode(); - break; - case 3: - hash = (37 * hash) + CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getCategoricalParameterRange().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangeOneOf} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOfOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.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(); - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf build() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf buildPartial() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(this); - if (parameterRangeTypeCase_ == 1) { - if (continuousParameterRangeBuilder_ == null) { - result.parameterRangeType_ = parameterRangeType_; - } else { - result.parameterRangeType_ = continuousParameterRangeBuilder_.build(); - } - } - if (parameterRangeTypeCase_ == 2) { - if (integerParameterRangeBuilder_ == null) { - result.parameterRangeType_ = parameterRangeType_; - } else { - result.parameterRangeType_ = integerParameterRangeBuilder_.build(); - } - } - if (parameterRangeTypeCase_ == 3) { - if (categoricalParameterRangeBuilder_ == null) { - result.parameterRangeType_ = parameterRangeType_; - } else { - result.parameterRangeType_ = categoricalParameterRangeBuilder_.build(); - } - } - result.parameterRangeTypeCase_ = parameterRangeTypeCase_; - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) { - return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other) { - if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()) return this; - switch (other.getParameterRangeTypeCase()) { - case CONTINUOUS_PARAMETER_RANGE: { - mergeContinuousParameterRange(other.getContinuousParameterRange()); - break; - } - case INTEGER_PARAMETER_RANGE: { - mergeIntegerParameterRange(other.getIntegerParameterRange()); - break; - } - case CATEGORICAL_PARAMETER_RANGE: { - mergeCategoricalParameterRange(other.getCategoricalParameterRange()); - break; - } - case PARAMETERRANGETYPE_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 { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int parameterRangeTypeCase_ = 0; - private java.lang.Object parameterRangeType_; - public ParameterRangeTypeCase - getParameterRangeTypeCase() { - return ParameterRangeTypeCase.forNumber( - parameterRangeTypeCase_); - } - - public Builder clearParameterRangeType() { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> continuousParameterRangeBuilder_; - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public boolean hasContinuousParameterRange() { - return parameterRangeTypeCase_ == 1; - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() { - if (continuousParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 1) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } else { - if (parameterRangeTypeCase_ == 1) { - return continuousParameterRangeBuilder_.getMessage(); - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) { - if (continuousParameterRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parameterRangeType_ = value; - onChanged(); - } else { - continuousParameterRangeBuilder_.setMessage(value); - } - parameterRangeTypeCase_ = 1; - return this; - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public Builder setContinuousParameterRange( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder builderForValue) { - if (continuousParameterRangeBuilder_ == null) { - parameterRangeType_ = builderForValue.build(); - onChanged(); - } else { - continuousParameterRangeBuilder_.setMessage(builderForValue.build()); - } - parameterRangeTypeCase_ = 1; - return this; - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) { - if (continuousParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 1 && - parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) { - parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_) - .mergeFrom(value).buildPartial(); - } else { - parameterRangeType_ = value; - } - onChanged(); - } else { - if (parameterRangeTypeCase_ == 1) { - continuousParameterRangeBuilder_.mergeFrom(value); - } - continuousParameterRangeBuilder_.setMessage(value); - } - parameterRangeTypeCase_ = 1; - return this; - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public Builder clearContinuousParameterRange() { - if (continuousParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 1) { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - onChanged(); - } - } else { - if (parameterRangeTypeCase_ == 1) { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - } - continuousParameterRangeBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder getContinuousParameterRangeBuilder() { - return getContinuousParameterRangeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { - if ((parameterRangeTypeCase_ == 1) && (continuousParameterRangeBuilder_ != null)) { - return continuousParameterRangeBuilder_.getMessageOrBuilder(); - } else { - if (parameterRangeTypeCase_ == 1) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } - } - /** - * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> - getContinuousParameterRangeFieldBuilder() { - if (continuousParameterRangeBuilder_ == null) { - if (!(parameterRangeTypeCase_ == 1)) { - parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); - } - continuousParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder>( - (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_, - getParentForChildren(), - isClean()); - parameterRangeType_ = null; - } - parameterRangeTypeCase_ = 1; - onChanged();; - return continuousParameterRangeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> integerParameterRangeBuilder_; - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public boolean hasIntegerParameterRange() { - return parameterRangeTypeCase_ == 2; - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() { - if (integerParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 2) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } else { - if (parameterRangeTypeCase_ == 2) { - return integerParameterRangeBuilder_.getMessage(); - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) { - if (integerParameterRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parameterRangeType_ = value; - onChanged(); - } else { - integerParameterRangeBuilder_.setMessage(value); - } - parameterRangeTypeCase_ = 2; - return this; - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public Builder setIntegerParameterRange( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder builderForValue) { - if (integerParameterRangeBuilder_ == null) { - parameterRangeType_ = builderForValue.build(); - onChanged(); - } else { - integerParameterRangeBuilder_.setMessage(builderForValue.build()); - } - parameterRangeTypeCase_ = 2; - return this; - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) { - if (integerParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 2 && - parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) { - parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_) - .mergeFrom(value).buildPartial(); - } else { - parameterRangeType_ = value; - } - onChanged(); - } else { - if (parameterRangeTypeCase_ == 2) { - integerParameterRangeBuilder_.mergeFrom(value); - } - integerParameterRangeBuilder_.setMessage(value); - } - parameterRangeTypeCase_ = 2; - return this; - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public Builder clearIntegerParameterRange() { - if (integerParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 2) { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - onChanged(); - } - } else { - if (parameterRangeTypeCase_ == 2) { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - } - integerParameterRangeBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder getIntegerParameterRangeBuilder() { - return getIntegerParameterRangeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { - if ((parameterRangeTypeCase_ == 2) && (integerParameterRangeBuilder_ != null)) { - return integerParameterRangeBuilder_.getMessageOrBuilder(); - } else { - if (parameterRangeTypeCase_ == 2) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } - } - /** - * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> - getIntegerParameterRangeFieldBuilder() { - if (integerParameterRangeBuilder_ == null) { - if (!(parameterRangeTypeCase_ == 2)) { - parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); - } - integerParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder>( - (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_, - getParentForChildren(), - isClean()); - parameterRangeType_ = null; - } - parameterRangeTypeCase_ = 2; - onChanged();; - return integerParameterRangeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> categoricalParameterRangeBuilder_; - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public boolean hasCategoricalParameterRange() { - return parameterRangeTypeCase_ == 3; - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() { - if (categoricalParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 3) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } else { - if (parameterRangeTypeCase_ == 3) { - return categoricalParameterRangeBuilder_.getMessage(); - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) { - if (categoricalParameterRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parameterRangeType_ = value; - onChanged(); - } else { - categoricalParameterRangeBuilder_.setMessage(value); - } - parameterRangeTypeCase_ = 3; - return this; - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public Builder setCategoricalParameterRange( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder builderForValue) { - if (categoricalParameterRangeBuilder_ == null) { - parameterRangeType_ = builderForValue.build(); - onChanged(); - } else { - categoricalParameterRangeBuilder_.setMessage(builderForValue.build()); - } - parameterRangeTypeCase_ = 3; - return this; - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) { - if (categoricalParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 3 && - parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) { - parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_) - .mergeFrom(value).buildPartial(); - } else { - parameterRangeType_ = value; - } - onChanged(); - } else { - if (parameterRangeTypeCase_ == 3) { - categoricalParameterRangeBuilder_.mergeFrom(value); - } - categoricalParameterRangeBuilder_.setMessage(value); - } - parameterRangeTypeCase_ = 3; - return this; - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public Builder clearCategoricalParameterRange() { - if (categoricalParameterRangeBuilder_ == null) { - if (parameterRangeTypeCase_ == 3) { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - onChanged(); - } - } else { - if (parameterRangeTypeCase_ == 3) { - parameterRangeTypeCase_ = 0; - parameterRangeType_ = null; - } - categoricalParameterRangeBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder getCategoricalParameterRangeBuilder() { - return getCategoricalParameterRangeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { - if ((parameterRangeTypeCase_ == 3) && (categoricalParameterRangeBuilder_ != null)) { - return categoricalParameterRangeBuilder_.getMessageOrBuilder(); - } else { - if (parameterRangeTypeCase_ == 3) { - return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; - } - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } - } - /** - * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> - getCategoricalParameterRangeFieldBuilder() { - if (categoricalParameterRangeBuilder_ == null) { - if (!(parameterRangeTypeCase_ == 3)) { - parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); - } - categoricalParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder>( - (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_, - getParentForChildren(), - isClean()); - parameterRangeType_ = null; - } - parameterRangeTypeCase_ = 3; - onChanged();; - return categoricalParameterRangeBuilder_; - } - @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:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) - private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(); - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterRangeOneOf parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParameterRangeOneOf(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParameterRangesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRanges) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - int getParameterRangeMapCount(); - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - boolean containsParameterRangeMap( - java.lang.String key); - /** - * Use {@link #getParameterRangeMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getParameterRangeMap(); - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - java.util.Map - getParameterRangeMapMap(); - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( - java.lang.String key, - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue); - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} - */ - public static final class ParameterRanges extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRanges) - ParameterRangesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParameterRanges.newBuilder() to construct. - private ParameterRanges(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParameterRanges() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParameterRanges( - 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)) { - parameterRangeMap_ = com.google.protobuf.MapField.newMapField( - ParameterRangeMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - parameterRangeMap__ = input.readMessage( - ParameterRangeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - parameterRangeMap_.getMutableMap().put( - parameterRangeMap__.getKey(), parameterRangeMap__.getValue()); - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetParameterRangeMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class); - } - - public static final int PARAMETER_RANGE_MAP_FIELD_NUMBER = 1; - private static final class ParameterRangeMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_; - private com.google.protobuf.MapField - internalGetParameterRangeMap() { - if (parameterRangeMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParameterRangeMapDefaultEntryHolder.defaultEntry); - } - return parameterRangeMap_; - } - - public int getParameterRangeMapCount() { - return internalGetParameterRangeMap().getMap().size(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public boolean containsParameterRangeMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetParameterRangeMap().getMap().containsKey(key); - } - /** - * Use {@link #getParameterRangeMapMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getParameterRangeMap() { - return getParameterRangeMapMap(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public java.util.Map getParameterRangeMapMap() { - return internalGetParameterRangeMap().getMap(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( - java.lang.String key, - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameterRangeMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameterRangeMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetParameterRangeMap(), - ParameterRangeMapDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetParameterRangeMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - parameterRangeMap__ = ParameterRangeMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, parameterRangeMap__); - } - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) obj; - - if (!internalGetParameterRangeMap().equals( - other.internalGetParameterRangeMap())) 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 (!internalGetParameterRangeMap().getMap().isEmpty()) { - hash = (37 * hash) + PARAMETER_RANGE_MAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetParameterRangeMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRanges} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRanges) - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetParameterRangeMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableParameterRangeMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.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(); - internalGetMutableParameterRangeMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges build() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges buildPartial() { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(this); - int from_bitField0_ = bitField0_; - result.parameterRangeMap_ = internalGetParameterRangeMap(); - result.parameterRangeMap_.makeImmutable(); - 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) { - return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other) { - if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance()) return this; - internalGetMutableParameterRangeMap().mergeFrom( - other.internalGetParameterRangeMap()); - 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 { - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_; - private com.google.protobuf.MapField - internalGetParameterRangeMap() { - if (parameterRangeMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParameterRangeMapDefaultEntryHolder.defaultEntry); - } - return parameterRangeMap_; - } - private com.google.protobuf.MapField - internalGetMutableParameterRangeMap() { - onChanged();; - if (parameterRangeMap_ == null) { - parameterRangeMap_ = com.google.protobuf.MapField.newMapField( - ParameterRangeMapDefaultEntryHolder.defaultEntry); - } - if (!parameterRangeMap_.isMutable()) { - parameterRangeMap_ = parameterRangeMap_.copy(); - } - return parameterRangeMap_; - } - - public int getParameterRangeMapCount() { - return internalGetParameterRangeMap().getMap().size(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public boolean containsParameterRangeMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetParameterRangeMap().getMap().containsKey(key); - } - /** - * Use {@link #getParameterRangeMapMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getParameterRangeMap() { - return getParameterRangeMapMap(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public java.util.Map getParameterRangeMapMap() { - return internalGetParameterRangeMap().getMap(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( - java.lang.String key, - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameterRangeMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameterRangeMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearParameterRangeMap() { - internalGetMutableParameterRangeMap().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public Builder removeParameterRangeMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableParameterRangeMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableParameterRangeMap() { - return internalGetMutableParameterRangeMap().getMutableMap(); - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - public Builder putParameterRangeMap( - java.lang.String key, - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableParameterRangeMap().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; - */ - - public Builder putAllParameterRangeMap( - java.util.Map values) { - internalGetMutableParameterRangeMap().getMutableMap() - .putAll(values); - 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:flyteidl.plugins.sagemaker.ParameterRanges) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) - private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(); - } - - public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterRanges parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParameterRanges(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1flyteidl/plugins/sagemaker/parameter_r" + - "anges.proto\022\032flyteidl.plugins.sagemaker\"" + - "\215\001\n\030ContinuousParameterRange\022\021\n\tmax_valu" + - "e\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_ty" + - "pe\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hy" + - "perparameterScalingType\"\212\001\n\025IntegerParam" + - "eterRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_valu" + - "e\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl" + - ".plugins.sagemaker.HyperparameterScaling" + - "Type\"+\n\031CategoricalParameterRange\022\016\n\006val" + - "ues\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032con" + - "tinuous_parameter_range\030\001 \001(\01324.flyteidl" + - ".plugins.sagemaker.ContinuousParameterRa" + - "ngeH\000\022T\n\027integer_parameter_range\030\002 \001(\01321" + - ".flyteidl.plugins.sagemaker.IntegerParam" + - "eterRangeH\000\022\\\n\033categorical_parameter_ran" + - "ge\030\003 \001(\01325.flyteidl.plugins.sagemaker.Ca" + - "tegoricalParameterRangeH\000B\026\n\024parameter_r" + - "ange_type\"\335\001\n\017ParameterRanges\022_\n\023paramet" + - "er_range_map\030\001 \003(\0132B.flyteidl.plugins.sa" + - "gemaker.ParameterRanges.ParameterRangeMa" + - "pEntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030" + - "\001 \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins." + - "sagemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyp" + - "erparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINE" + - "AR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITH" + - "MIC\020\003B5Z3github.com/lyft/flyteidl/gen/pb" + - "-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor, - new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor, - new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor, - new java.lang.String[] { "Values", }); - internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor, - new java.lang.String[] { "ContinuousParameterRange", "IntegerParameterRange", "CategoricalParameterRange", "ParameterRangeType", }); - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor, - new java.lang.String[] { "ParameterRangeMap", }); - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor = - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java deleted file mode 100644 index c7c7a93f1..000000000 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ /dev/null @@ -1,4208 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/training_job.proto - -package flyteidl.plugins.sagemaker; - -public final class TrainingJobOuterClass { - private TrainingJobOuterClass() {} - 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 flyteidl.plugins.sagemaker.InputMode} - */ - public enum InputMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - * FILE = 0; - */ - FILE(0), - /** - * PIPE = 1; - */ - PIPE(1), - UNRECOGNIZED(-1), - ; - - /** - * FILE = 0; - */ - public static final int FILE_VALUE = 0; - /** - * PIPE = 1; - */ - public static final int PIPE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InputMode valueOf(int value) { - return forNumber(value); - } - - public static InputMode forNumber(int value) { - switch (value) { - case 0: return FILE; - case 1: return PIPE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - InputMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InputMode findValueByNumber(int number) { - return InputMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final InputMode[] VALUES = values(); - - public static InputMode 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 InputMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputMode) - } - - /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.AlgorithmName} - */ - public enum AlgorithmName - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CUSTOM = 0; - */ - CUSTOM(0), - /** - * XGBOOST = 1; - */ - XGBOOST(1), - UNRECOGNIZED(-1), - ; - - /** - * CUSTOM = 0; - */ - public static final int CUSTOM_VALUE = 0; - /** - * XGBOOST = 1; - */ - public static final int XGBOOST_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AlgorithmName valueOf(int value) { - return forNumber(value); - } - - public static AlgorithmName forNumber(int value) { - switch (value) { - case 0: return CUSTOM; - case 1: return XGBOOST; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AlgorithmName> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AlgorithmName findValueByNumber(int number) { - return AlgorithmName.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(1); - } - - private static final AlgorithmName[] VALUES = values(); - - public static AlgorithmName 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 AlgorithmName(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.AlgorithmName) - } - - public interface AlgorithmSpecificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - int getInputModeValue(); - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode(); - - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - int getAlgorithmNameValue(); - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName(); - - /** - * string algorithm_version = 3; - */ - java.lang.String getAlgorithmVersion(); - /** - * string algorithm_version = 3; - */ - com.google.protobuf.ByteString - getAlgorithmVersionBytes(); - - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - java.util.List - getMetricDefinitionsList(); - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - int getMetricDefinitionsCount(); - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - java.util.List - getMetricDefinitionsOrBuilderList(); - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} - */ - public static final class AlgorithmSpecification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) - AlgorithmSpecificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use AlgorithmSpecification.newBuilder() to construct. - private AlgorithmSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AlgorithmSpecification() { - inputMode_ = 0; - algorithmName_ = 0; - algorithmVersion_ = ""; - metricDefinitions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AlgorithmSpecification( - 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 8: { - int rawValue = input.readEnum(); - - inputMode_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - algorithmName_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - algorithmVersion_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - metricDefinitions_.add( - input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.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_ & 0x00000008) != 0)) { - metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); - } - - public interface MetricDefinitionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * string regex = 2; - */ - java.lang.String getRegex(); - /** - * string regex = 2; - */ - com.google.protobuf.ByteString - getRegexBytes(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} - */ - public static final class MetricDefinition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - MetricDefinitionOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetricDefinition.newBuilder() to construct. - private MetricDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MetricDefinition() { - name_ = ""; - regex_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MetricDefinition( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - regex_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - 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; - } - } - /** - * string name = 1; - */ - 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 REGEX_FIELD_NUMBER = 2; - private volatile java.lang.Object regex_; - /** - * string regex = 2; - */ - public java.lang.String getRegex() { - java.lang.Object ref = regex_; - 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(); - regex_ = s; - return s; - } - } - /** - * string regex = 2; - */ - public com.google.protobuf.ByteString - getRegexBytes() { - java.lang.Object ref = regex_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - regex_ = 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getRegexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regex_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getRegexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regex_); - } - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getRegex() - .equals(other.getRegex())) 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) + REGEX_FIELD_NUMBER; - hash = (53 * hash) + getRegex().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.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_ = ""; - - regex_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(this); - result.name_ = name_; - result.regex_ = regex_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getRegex().isEmpty()) { - regex_ = other.regex_; - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - 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; - } - } - /** - * string name = 1; - */ - 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; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - 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 regex_ = ""; - /** - * string regex = 2; - */ - public java.lang.String getRegex() { - java.lang.Object ref = regex_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - regex_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string regex = 2; - */ - public com.google.protobuf.ByteString - getRegexBytes() { - java.lang.Object ref = regex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - regex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string regex = 2; - */ - public Builder setRegex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - regex_ = value; - onChanged(); - return this; - } - /** - * string regex = 2; - */ - public Builder clearRegex() { - - regex_ = getDefaultInstance().getRegex(); - onChanged(); - return this; - } - /** - * string regex = 2; - */ - public Builder setRegexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - regex_ = 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:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricDefinition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricDefinition(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int INPUT_MODE_FIELD_NUMBER = 1; - private int inputMode_; - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public int getInputModeValue() { - return inputMode_; - } - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result; - } - - public static final int ALGORITHM_NAME_FIELD_NUMBER = 2; - private int algorithmName_; - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public int getAlgorithmNameValue() { - return algorithmName_; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result; - } - - public static final int ALGORITHM_VERSION_FIELD_NUMBER = 3; - private volatile java.lang.Object algorithmVersion_; - /** - * string algorithm_version = 3; - */ - public java.lang.String getAlgorithmVersion() { - java.lang.Object ref = algorithmVersion_; - 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(); - algorithmVersion_ = s; - return s; - } - } - /** - * string algorithm_version = 3; - */ - public com.google.protobuf.ByteString - getAlgorithmVersionBytes() { - java.lang.Object ref = algorithmVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - algorithmVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METRIC_DEFINITIONS_FIELD_NUMBER = 4; - private java.util.List metricDefinitions_; - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public java.util.List getMetricDefinitionsList() { - return metricDefinitions_; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public java.util.List - getMetricDefinitionsOrBuilderList() { - return metricDefinitions_; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public int getMetricDefinitionsCount() { - return metricDefinitions_.size(); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { - return metricDefinitions_.get(index); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( - int index) { - return metricDefinitions_.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 (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) { - output.writeEnum(1, inputMode_); - } - if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) { - output.writeEnum(2, algorithmName_); - } - if (!getAlgorithmVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, algorithmVersion_); - } - for (int i = 0; i < metricDefinitions_.size(); i++) { - output.writeMessage(4, metricDefinitions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, inputMode_); - } - if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, algorithmName_); - } - if (!getAlgorithmVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, algorithmVersion_); - } - for (int i = 0; i < metricDefinitions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, metricDefinitions_.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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) obj; - - if (inputMode_ != other.inputMode_) return false; - if (algorithmName_ != other.algorithmName_) return false; - if (!getAlgorithmVersion() - .equals(other.getAlgorithmVersion())) return false; - if (!getMetricDefinitionsList() - .equals(other.getMetricDefinitionsList())) 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) + INPUT_MODE_FIELD_NUMBER; - hash = (53 * hash) + inputMode_; - hash = (37 * hash) + ALGORITHM_NAME_FIELD_NUMBER; - hash = (53 * hash) + algorithmName_; - hash = (37 * hash) + ALGORITHM_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getAlgorithmVersion().hashCode(); - if (getMetricDefinitionsCount() > 0) { - hash = (37 * hash) + METRIC_DEFINITIONS_FIELD_NUMBER; - hash = (53 * hash) + getMetricDefinitionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.AlgorithmSpecification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMetricDefinitionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - inputMode_ = 0; - - algorithmName_ = 0; - - algorithmVersion_ = ""; - - if (metricDefinitionsBuilder_ == null) { - metricDefinitions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - metricDefinitionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.inputMode_ = inputMode_; - result.algorithmName_ = algorithmName_; - result.algorithmVersion_ = algorithmVersion_; - if (metricDefinitionsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.metricDefinitions_ = metricDefinitions_; - } else { - result.metricDefinitions_ = metricDefinitionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance()) return this; - if (other.inputMode_ != 0) { - setInputModeValue(other.getInputModeValue()); - } - if (other.algorithmName_ != 0) { - setAlgorithmNameValue(other.getAlgorithmNameValue()); - } - if (!other.getAlgorithmVersion().isEmpty()) { - algorithmVersion_ = other.algorithmVersion_; - onChanged(); - } - if (metricDefinitionsBuilder_ == null) { - if (!other.metricDefinitions_.isEmpty()) { - if (metricDefinitions_.isEmpty()) { - metricDefinitions_ = other.metricDefinitions_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.addAll(other.metricDefinitions_); - } - onChanged(); - } - } else { - if (!other.metricDefinitions_.isEmpty()) { - if (metricDefinitionsBuilder_.isEmpty()) { - metricDefinitionsBuilder_.dispose(); - metricDefinitionsBuilder_ = null; - metricDefinitions_ = other.metricDefinitions_; - bitField0_ = (bitField0_ & ~0x00000008); - metricDefinitionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricDefinitionsFieldBuilder() : null; - } else { - metricDefinitionsBuilder_.addAllMessages(other.metricDefinitions_); - } - } - } - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int inputMode_ = 0; - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public int getInputModeValue() { - return inputMode_; - } - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public Builder setInputModeValue(int value) { - inputMode_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public Builder setInputMode(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode value) { - if (value == null) { - throw new NullPointerException(); - } - - inputMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; - */ - public Builder clearInputMode() { - - inputMode_ = 0; - onChanged(); - return this; - } - - private int algorithmName_ = 0; - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public int getAlgorithmNameValue() { - return algorithmName_; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public Builder setAlgorithmNameValue(int value) { - algorithmName_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName value) { - if (value == null) { - throw new NullPointerException(); - } - - algorithmName_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; - */ - public Builder clearAlgorithmName() { - - algorithmName_ = 0; - onChanged(); - return this; - } - - private java.lang.Object algorithmVersion_ = ""; - /** - * string algorithm_version = 3; - */ - public java.lang.String getAlgorithmVersion() { - java.lang.Object ref = algorithmVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - algorithmVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string algorithm_version = 3; - */ - public com.google.protobuf.ByteString - getAlgorithmVersionBytes() { - java.lang.Object ref = algorithmVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - algorithmVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string algorithm_version = 3; - */ - public Builder setAlgorithmVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - algorithmVersion_ = value; - onChanged(); - return this; - } - /** - * string algorithm_version = 3; - */ - public Builder clearAlgorithmVersion() { - - algorithmVersion_ = getDefaultInstance().getAlgorithmVersion(); - onChanged(); - return this; - } - /** - * string algorithm_version = 3; - */ - public Builder setAlgorithmVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - algorithmVersion_ = value; - onChanged(); - return this; - } - - private java.util.List metricDefinitions_ = - java.util.Collections.emptyList(); - private void ensureMetricDefinitionsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; - - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public java.util.List getMetricDefinitionsList() { - if (metricDefinitionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metricDefinitions_); - } else { - return metricDefinitionsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public int getMetricDefinitionsCount() { - if (metricDefinitionsBuilder_ == null) { - return metricDefinitions_.size(); - } else { - return metricDefinitionsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { - if (metricDefinitionsBuilder_ == null) { - return metricDefinitions_.get(index); - } else { - return metricDefinitionsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder setMetricDefinitions( - int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { - if (metricDefinitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.set(index, value); - onChanged(); - } else { - metricDefinitionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder setMetricDefinitions( - int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.set(index, builderForValue.build()); - onChanged(); - } else { - metricDefinitionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { - if (metricDefinitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.add(value); - onChanged(); - } else { - metricDefinitionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder addMetricDefinitions( - int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { - if (metricDefinitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.add(index, value); - onChanged(); - } else { - metricDefinitionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder addMetricDefinitions( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.add(builderForValue.build()); - onChanged(); - } else { - metricDefinitionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder addMetricDefinitions( - int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.add(index, builderForValue.build()); - onChanged(); - } else { - metricDefinitionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder addAllMetricDefinitions( - java.lang.Iterable values) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metricDefinitions_); - onChanged(); - } else { - metricDefinitionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder clearMetricDefinitions() { - if (metricDefinitionsBuilder_ == null) { - metricDefinitions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - metricDefinitionsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public Builder removeMetricDefinitions(int index) { - if (metricDefinitionsBuilder_ == null) { - ensureMetricDefinitionsIsMutable(); - metricDefinitions_.remove(index); - onChanged(); - } else { - metricDefinitionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( - int index) { - return getMetricDefinitionsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( - int index) { - if (metricDefinitionsBuilder_ == null) { - return metricDefinitions_.get(index); } else { - return metricDefinitionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public java.util.List - getMetricDefinitionsOrBuilderList() { - if (metricDefinitionsBuilder_ != null) { - return metricDefinitionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metricDefinitions_); - } - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { - return getMetricDefinitionsFieldBuilder().addBuilder( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( - int index) { - return getMetricDefinitionsFieldBuilder().addBuilder( - index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - public java.util.List - getMetricDefinitionsBuilderList() { - return getMetricDefinitionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> - getMetricDefinitionsFieldBuilder() { - if (metricDefinitionsBuilder_ == null) { - metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder>( - metricDefinitions_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - metricDefinitions_ = null; - } - return metricDefinitionsBuilder_; - } - @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:flyteidl.plugins.sagemaker.AlgorithmSpecification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AlgorithmSpecification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AlgorithmSpecification(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TrainingJobConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJobConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * For multi-node training, not multi-GPU training
-     * 
- * - * int64 instance_count = 1; - */ - long getInstanceCount(); - - /** - * string instance_type = 2; - */ - java.lang.String getInstanceType(); - /** - * string instance_type = 2; - */ - com.google.protobuf.ByteString - getInstanceTypeBytes(); - - /** - * int64 volume_size_in_gb = 3; - */ - long getVolumeSizeInGb(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobConfig} - */ - public static final class TrainingJobConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) - TrainingJobConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use TrainingJobConfig.newBuilder() to construct. - private TrainingJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TrainingJobConfig() { - instanceType_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TrainingJobConfig( - 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 8: { - - instanceCount_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - instanceType_ = s; - break; - } - case 24: { - - volumeSizeInGb_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); - } - - public static final int INSTANCE_COUNT_FIELD_NUMBER = 1; - private long instanceCount_; - /** - *
-     * For multi-node training, not multi-GPU training
-     * 
- * - * int64 instance_count = 1; - */ - public long getInstanceCount() { - return instanceCount_; - } - - public static final int INSTANCE_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object instanceType_; - /** - * string instance_type = 2; - */ - public java.lang.String getInstanceType() { - java.lang.Object ref = instanceType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceType_ = s; - return s; - } - } - /** - * string instance_type = 2; - */ - public com.google.protobuf.ByteString - getInstanceTypeBytes() { - java.lang.Object ref = instanceType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VOLUME_SIZE_IN_GB_FIELD_NUMBER = 3; - private long volumeSizeInGb_; - /** - * int64 volume_size_in_gb = 3; - */ - public long getVolumeSizeInGb() { - return volumeSizeInGb_; - } - - 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 (instanceCount_ != 0L) { - output.writeInt64(1, instanceCount_); - } - if (!getInstanceTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceType_); - } - if (volumeSizeInGb_ != 0L) { - output.writeInt64(3, volumeSizeInGb_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (instanceCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, instanceCount_); - } - if (!getInstanceTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceType_); - } - if (volumeSizeInGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, volumeSizeInGb_); - } - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) obj; - - if (getInstanceCount() - != other.getInstanceCount()) return false; - if (!getInstanceType() - .equals(other.getInstanceType())) return false; - if (getVolumeSizeInGb() - != other.getVolumeSizeInGb()) 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) + INSTANCE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInstanceCount()); - hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getInstanceType().hashCode(); - hash = (37 * hash) + VOLUME_SIZE_IN_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVolumeSizeInGb()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.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(); - instanceCount_ = 0L; - - instanceType_ = ""; - - volumeSizeInGb_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(this); - result.instanceCount_ = instanceCount_; - result.instanceType_ = instanceType_; - result.volumeSizeInGb_ = volumeSizeInGb_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance()) return this; - if (other.getInstanceCount() != 0L) { - setInstanceCount(other.getInstanceCount()); - } - if (!other.getInstanceType().isEmpty()) { - instanceType_ = other.instanceType_; - onChanged(); - } - if (other.getVolumeSizeInGb() != 0L) { - setVolumeSizeInGb(other.getVolumeSizeInGb()); - } - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long instanceCount_ ; - /** - *
-       * For multi-node training, not multi-GPU training
-       * 
- * - * int64 instance_count = 1; - */ - public long getInstanceCount() { - return instanceCount_; - } - /** - *
-       * For multi-node training, not multi-GPU training
-       * 
- * - * int64 instance_count = 1; - */ - public Builder setInstanceCount(long value) { - - instanceCount_ = value; - onChanged(); - return this; - } - /** - *
-       * For multi-node training, not multi-GPU training
-       * 
- * - * int64 instance_count = 1; - */ - public Builder clearInstanceCount() { - - instanceCount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object instanceType_ = ""; - /** - * string instance_type = 2; - */ - public java.lang.String getInstanceType() { - java.lang.Object ref = instanceType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string instance_type = 2; - */ - public com.google.protobuf.ByteString - getInstanceTypeBytes() { - java.lang.Object ref = instanceType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string instance_type = 2; - */ - public Builder setInstanceType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - instanceType_ = value; - onChanged(); - return this; - } - /** - * string instance_type = 2; - */ - public Builder clearInstanceType() { - - instanceType_ = getDefaultInstance().getInstanceType(); - onChanged(); - return this; - } - /** - * string instance_type = 2; - */ - public Builder setInstanceTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instanceType_ = value; - onChanged(); - return this; - } - - private long volumeSizeInGb_ ; - /** - * int64 volume_size_in_gb = 3; - */ - public long getVolumeSizeInGb() { - return volumeSizeInGb_; - } - /** - * int64 volume_size_in_gb = 3; - */ - public Builder setVolumeSizeInGb(long value) { - - volumeSizeInGb_ = value; - onChanged(); - return this; - } - /** - * int64 volume_size_in_gb = 3; - */ - public Builder clearVolumeSizeInGb() { - - volumeSizeInGb_ = 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:flyteidl.plugins.sagemaker.TrainingJobConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TrainingJobConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrainingJobConfig(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StoppingConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.StoppingCondition) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 max_runtime_in_seconds = 1; - */ - long getMaxRuntimeInSeconds(); - - /** - * int64 max_wait_time_in_seconds = 2; - */ - long getMaxWaitTimeInSeconds(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} - */ - public static final class StoppingCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.StoppingCondition) - StoppingConditionOrBuilder { - private static final long serialVersionUID = 0L; - // Use StoppingCondition.newBuilder() to construct. - private StoppingCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StoppingCondition() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StoppingCondition( - 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 8: { - - maxRuntimeInSeconds_ = input.readInt64(); - break; - } - case 16: { - - maxWaitTimeInSeconds_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); - } - - public static final int MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER = 1; - private long maxRuntimeInSeconds_; - /** - * int64 max_runtime_in_seconds = 1; - */ - public long getMaxRuntimeInSeconds() { - return maxRuntimeInSeconds_; - } - - public static final int MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER = 2; - private long maxWaitTimeInSeconds_; - /** - * int64 max_wait_time_in_seconds = 2; - */ - public long getMaxWaitTimeInSeconds() { - return maxWaitTimeInSeconds_; - } - - 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 (maxRuntimeInSeconds_ != 0L) { - output.writeInt64(1, maxRuntimeInSeconds_); - } - if (maxWaitTimeInSeconds_ != 0L) { - output.writeInt64(2, maxWaitTimeInSeconds_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxRuntimeInSeconds_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, maxRuntimeInSeconds_); - } - if (maxWaitTimeInSeconds_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxWaitTimeInSeconds_); - } - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) obj; - - if (getMaxRuntimeInSeconds() - != other.getMaxRuntimeInSeconds()) return false; - if (getMaxWaitTimeInSeconds() - != other.getMaxWaitTimeInSeconds()) 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) + MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxRuntimeInSeconds()); - hash = (37 * hash) + MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxWaitTimeInSeconds()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.StoppingCondition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.StoppingCondition) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.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(); - maxRuntimeInSeconds_ = 0L; - - maxWaitTimeInSeconds_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(this); - result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; - result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance()) return this; - if (other.getMaxRuntimeInSeconds() != 0L) { - setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); - } - if (other.getMaxWaitTimeInSeconds() != 0L) { - setMaxWaitTimeInSeconds(other.getMaxWaitTimeInSeconds()); - } - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long maxRuntimeInSeconds_ ; - /** - * int64 max_runtime_in_seconds = 1; - */ - public long getMaxRuntimeInSeconds() { - return maxRuntimeInSeconds_; - } - /** - * int64 max_runtime_in_seconds = 1; - */ - public Builder setMaxRuntimeInSeconds(long value) { - - maxRuntimeInSeconds_ = value; - onChanged(); - return this; - } - /** - * int64 max_runtime_in_seconds = 1; - */ - public Builder clearMaxRuntimeInSeconds() { - - maxRuntimeInSeconds_ = 0L; - onChanged(); - return this; - } - - private long maxWaitTimeInSeconds_ ; - /** - * int64 max_wait_time_in_seconds = 2; - */ - public long getMaxWaitTimeInSeconds() { - return maxWaitTimeInSeconds_; - } - /** - * int64 max_wait_time_in_seconds = 2; - */ - public Builder setMaxWaitTimeInSeconds(long value) { - - maxWaitTimeInSeconds_ = value; - onChanged(); - return this; - } - /** - * int64 max_wait_time_in_seconds = 2; - */ - public Builder clearMaxWaitTimeInSeconds() { - - maxWaitTimeInSeconds_ = 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:flyteidl.plugins.sagemaker.StoppingCondition) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StoppingCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StoppingCondition(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TrainingJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJob) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - boolean hasAlgorithmSpecification(); - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification(); - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); - - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - boolean hasTrainingJobConfig(); - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig(); - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder(); - - /** - * bool interruptible = 4; - */ - boolean getInterruptible(); - } - /** - * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} - */ - public static final class TrainingJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJob) - TrainingJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use TrainingJob.newBuilder() to construct. - private TrainingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TrainingJob() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TrainingJob( - 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: { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder subBuilder = null; - if (algorithmSpecification_ != null) { - subBuilder = algorithmSpecification_.toBuilder(); - } - algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(algorithmSpecification_); - algorithmSpecification_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder subBuilder = null; - if (trainingJobConfig_ != null) { - subBuilder = trainingJobConfig_.toBuilder(); - } - trainingJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trainingJobConfig_); - trainingJobConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - interruptible_ = input.readBool(); - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); - } - - public static final int ALGORITHM_SPECIFICATION_FIELD_NUMBER = 1; - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public boolean hasAlgorithmSpecification() { - return algorithmSpecification_ != null; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { - return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { - return getAlgorithmSpecification(); - } - - public static final int TRAINING_JOB_CONFIG_FIELD_NUMBER = 2; - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public boolean hasTrainingJobConfig() { - return trainingJobConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { - return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { - return getTrainingJobConfig(); - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 4; - private boolean interruptible_; - /** - * bool interruptible = 4; - */ - public boolean getInterruptible() { - return interruptible_; - } - - 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 (algorithmSpecification_ != null) { - output.writeMessage(1, getAlgorithmSpecification()); - } - if (trainingJobConfig_ != null) { - output.writeMessage(2, getTrainingJobConfig()); - } - if (interruptible_ != false) { - output.writeBool(4, interruptible_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (algorithmSpecification_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAlgorithmSpecification()); - } - if (trainingJobConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTrainingJobConfig()); - } - if (interruptible_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, interruptible_); - } - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) obj; - - if (hasAlgorithmSpecification() != other.hasAlgorithmSpecification()) return false; - if (hasAlgorithmSpecification()) { - if (!getAlgorithmSpecification() - .equals(other.getAlgorithmSpecification())) return false; - } - if (hasTrainingJobConfig() != other.hasTrainingJobConfig()) return false; - if (hasTrainingJobConfig()) { - if (!getTrainingJobConfig() - .equals(other.getTrainingJobConfig())) return false; - } - if (getInterruptible() - != other.getInterruptible()) 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 (hasAlgorithmSpecification()) { - hash = (37 * hash) + ALGORITHM_SPECIFICATION_FIELD_NUMBER; - hash = (53 * hash) + getAlgorithmSpecification().hashCode(); - } - if (hasTrainingJobConfig()) { - hash = (37 * hash) + TRAINING_JOB_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getTrainingJobConfig().hashCode(); - } - hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterruptible()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJob) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.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 (algorithmSpecificationBuilder_ == null) { - algorithmSpecification_ = null; - } else { - algorithmSpecification_ = null; - algorithmSpecificationBuilder_ = null; - } - if (trainingJobConfigBuilder_ == null) { - trainingJobConfig_ = null; - } else { - trainingJobConfig_ = null; - trainingJobConfigBuilder_ = null; - } - interruptible_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(this); - if (algorithmSpecificationBuilder_ == null) { - result.algorithmSpecification_ = algorithmSpecification_; - } else { - result.algorithmSpecification_ = algorithmSpecificationBuilder_.build(); - } - if (trainingJobConfigBuilder_ == null) { - result.trainingJobConfig_ = trainingJobConfig_; - } else { - result.trainingJobConfig_ = trainingJobConfigBuilder_.build(); - } - result.interruptible_ = interruptible_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance()) return this; - if (other.hasAlgorithmSpecification()) { - mergeAlgorithmSpecification(other.getAlgorithmSpecification()); - } - if (other.hasTrainingJobConfig()) { - mergeTrainingJobConfig(other.getTrainingJobConfig()); - } - if (other.getInterruptible() != false) { - setInterruptible(other.getInterruptible()); - } - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public boolean hasAlgorithmSpecification() { - return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { - if (algorithmSpecificationBuilder_ == null) { - return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } else { - return algorithmSpecificationBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { - if (algorithmSpecificationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - algorithmSpecification_ = value; - onChanged(); - } else { - algorithmSpecificationBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public Builder setAlgorithmSpecification( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder builderForValue) { - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecification_ = builderForValue.build(); - onChanged(); - } else { - algorithmSpecificationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { - if (algorithmSpecificationBuilder_ == null) { - if (algorithmSpecification_ != null) { - algorithmSpecification_ = - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); - } else { - algorithmSpecification_ = value; - } - onChanged(); - } else { - algorithmSpecificationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public Builder clearAlgorithmSpecification() { - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecification_ = null; - onChanged(); - } else { - algorithmSpecification_ = null; - algorithmSpecificationBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { - - onChanged(); - return getAlgorithmSpecificationFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { - if (algorithmSpecificationBuilder_ != null) { - return algorithmSpecificationBuilder_.getMessageOrBuilder(); - } else { - return algorithmSpecification_ == null ? - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; - } - } - /** - * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> - getAlgorithmSpecificationFieldBuilder() { - if (algorithmSpecificationBuilder_ == null) { - algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder>( - getAlgorithmSpecification(), - getParentForChildren(), - isClean()); - algorithmSpecification_ = null; - } - return algorithmSpecificationBuilder_; - } - - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> trainingJobConfigBuilder_; - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public boolean hasTrainingJobConfig() { - return trainingJobConfigBuilder_ != null || trainingJobConfig_ != null; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { - if (trainingJobConfigBuilder_ == null) { - return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; - } else { - return trainingJobConfigBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { - if (trainingJobConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trainingJobConfig_ = value; - onChanged(); - } else { - trainingJobConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public Builder setTrainingJobConfig( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder builderForValue) { - if (trainingJobConfigBuilder_ == null) { - trainingJobConfig_ = builderForValue.build(); - onChanged(); - } else { - trainingJobConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public Builder mergeTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { - if (trainingJobConfigBuilder_ == null) { - if (trainingJobConfig_ != null) { - trainingJobConfig_ = - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.newBuilder(trainingJobConfig_).mergeFrom(value).buildPartial(); - } else { - trainingJobConfig_ = value; - } - onChanged(); - } else { - trainingJobConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public Builder clearTrainingJobConfig() { - if (trainingJobConfigBuilder_ == null) { - trainingJobConfig_ = null; - onChanged(); - } else { - trainingJobConfig_ = null; - trainingJobConfigBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder getTrainingJobConfigBuilder() { - - onChanged(); - return getTrainingJobConfigFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { - if (trainingJobConfigBuilder_ != null) { - return trainingJobConfigBuilder_.getMessageOrBuilder(); - } else { - return trainingJobConfig_ == null ? - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; - } - } - /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> - getTrainingJobConfigFieldBuilder() { - if (trainingJobConfigBuilder_ == null) { - trainingJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder>( - getTrainingJobConfig(), - getParentForChildren(), - isClean()); - trainingJobConfig_ = null; - } - return trainingJobConfigBuilder_; - } - - private boolean interruptible_ ; - /** - * bool interruptible = 4; - */ - public boolean getInterruptible() { - return interruptible_; - } - /** - * bool interruptible = 4; - */ - public Builder setInterruptible(boolean value) { - - interruptible_ = value; - onChanged(); - return this; - } - /** - * bool interruptible = 4; - */ - public Builder clearInterruptible() { - - interruptible_ = false; - 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:flyteidl.plugins.sagemaker.TrainingJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TrainingJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrainingJob(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_TrainingJob_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-flyteidl/plugins/sagemaker/training_jo" + - "b.proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026" + - "AlgorithmSpecification\0229\n\ninput_mode\030\001 \001" + - "(\0162%.flyteidl.plugins.sagemaker.InputMod" + - "e\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plu" + - "gins.sagemaker.AlgorithmName\022\031\n\021algorith" + - "m_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 " + - "\003(\0132C.flyteidl.plugins.sagemaker.Algorit" + - "hmSpecification.MetricDefinition\032/\n\020Metr" + - "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(" + - "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count" + - "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_" + - "size_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n" + - "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai" + - "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022" + - "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + - "idl.plugins.sagemaker.AlgorithmSpecifica" + - "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt" + - "eidl.plugins.sagemaker.TrainingJobConfig" + - "\022\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004" + - "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS" + - "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl" + - "yteidl/gen/pb-go/flyteidl/pluginsb\006proto" + - "3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, - new java.lang.String[] { "InputMode", "AlgorithmName", "AlgorithmVersion", "MetricDefinitions", }); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor = - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, - new java.lang.String[] { "Name", "Regex", }); - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor, - new java.lang.String[] { "InstanceCount", "InstanceType", "VolumeSizeInGb", }); - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor, - new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", }); - internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor, - new java.lang.String[] { "AlgorithmSpecification", "TrainingJobConfig", "Interruptible", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gen/pb-java/flyteidl/service/Admin.java b/gen/pb-java/flyteidl/service/Admin.java deleted file mode 100644 index bb5982e25..000000000 --- a/gen/pb-java/flyteidl/service/Admin.java +++ /dev/null @@ -1,395 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/admin.proto - -package flyteidl.service; - -public final class Admin { - private Admin() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034flyteidl/service/admin.proto\022\020flyteidl" + - ".service\032\034google/api/annotations.proto\032\034" + - "flyteidl/admin/project.proto\032.flyteidl/a" + - "dmin/project_domain_attributes.proto\032\031fl" + - "yteidl/admin/task.proto\032\035flyteidl/admin/" + - "workflow.proto\032(flyteidl/admin/workflow_" + - "attributes.proto\032 flyteidl/admin/launch_" + - "plan.proto\032\032flyteidl/admin/event.proto\032\036" + - "flyteidl/admin/execution.proto\032\'flyteidl" + - "/admin/matchable_resource.proto\032#flyteid" + - "l/admin/node_execution.proto\032#flyteidl/a" + - "dmin/task_execution.proto\032\033flyteidl/admi" + - "n/common.proto\032,protoc-gen-swagger/optio" + - "ns/annotations.proto2\331^\n\014AdminService\022\305\002" + - "\n\nCreateTask\022!.flyteidl.admin.TaskCreate" + - "Request\032\".flyteidl.admin.TaskCreateRespo" + - "nse\"\357\001\202\323\344\223\002\022\"\r/api/v1/tasks:\001*\222A\323\001\032&Crea" + - "te and register a task definition.JB\n\00340" + - "0\022;\n9Returned for bad request that may h" + - "ave failed validation.Je\n\003409\022^\n\\Returne" + - "d for a request that references an ident" + - "ical entity that has already been regist" + - "ered.\022\262\001\n\007GetTask\022 .flyteidl.admin.Objec" + - "tGetRequest\032\024.flyteidl.admin.Task\"o\202\323\344\223\002" + - "?\022=/api/v1/tasks/{id.project}/{id.domain" + - "}/{id.name}/{id.version}\222A\'\032%Retrieve an" + - " existing task definition.\022\336\001\n\013ListTaskI" + - "ds\0220.flyteidl.admin.NamedEntityIdentifie" + - "rListRequest\032).flyteidl.admin.NamedEntit" + - "yIdentifierList\"r\202\323\344\223\002%\022#/api/v1/task_id" + - "s/{project}/{domain}\222AD\032BFetch existing " + - "task definition identifiers matching inp" + - "ut filters.\022\353\001\n\tListTasks\022#.flyteidl.adm" + - "in.ResourceListRequest\032\030.flyteidl.admin." + - "TaskList\"\236\001\202\323\344\223\002\\\0220/api/v1/tasks/{id.pro" + - "ject}/{id.domain}/{id.name}Z(\022&/api/v1/t" + - "asks/{id.project}/{id.domain}\222A9\0327Fetch " + - "existing task definitions matching input" + - " filters.\022\331\002\n\016CreateWorkflow\022%.flyteidl." + - "admin.WorkflowCreateRequest\032&.flyteidl.a" + - "dmin.WorkflowCreateResponse\"\367\001\202\323\344\223\002\026\"\021/a" + - "pi/v1/workflows:\001*\222A\327\001\032*Create and regis" + - "ter a workflow definition.JB\n\003400\022;\n9Ret" + - "urned for bad request that may have fail" + - "ed validation.Je\n\003409\022^\n\\Returned for a " + - "request that references an identical ent" + - "ity that has already been registered.\022\302\001" + - "\n\013GetWorkflow\022 .flyteidl.admin.ObjectGet" + - "Request\032\030.flyteidl.admin.Workflow\"w\202\323\344\223\002" + - "C\022A/api/v1/workflows/{id.project}/{id.do" + - "main}/{id.name}/{id.version}\222A+\032)Retriev" + - "e an existing workflow definition.\022\355\001\n\017L" + - "istWorkflowIds\0220.flyteidl.admin.NamedEnt" + - "ityIdentifierListRequest\032).flyteidl.admi" + - "n.NamedEntityIdentifierList\"}\202\323\344\223\002)\022\'/ap" + - "i/v1/workflow_ids/{project}/{domain}\222AK\032" + - "IFetch an existing workflow definition i" + - "dentifiers matching input filters.\022\377\001\n\rL" + - "istWorkflows\022#.flyteidl.admin.ResourceLi" + - "stRequest\032\034.flyteidl.admin.WorkflowList\"" + - "\252\001\202\323\344\223\002d\0224/api/v1/workflows/{id.project}" + - "/{id.domain}/{id.name}Z,\022*/api/v1/workfl" + - "ows/{id.project}/{id.domain}\222A=\032;Fetch e" + - "xisting workflow definitions matching in" + - "put filters.\022\345\002\n\020CreateLaunchPlan\022\'.flyt" + - "eidl.admin.LaunchPlanCreateRequest\032(.fly" + - "teidl.admin.LaunchPlanCreateResponse\"\375\001\202" + - "\323\344\223\002\031\"\024/api/v1/launch_plans:\001*\222A\332\001\032-Crea" + - "te and register a launch plan definition" + - ".JB\n\003400\022;\n9Returned for bad request tha" + - "t may have failed validation.Je\n\003409\022^\n\\" + - "Returned for a request that references a" + - "n identical entity that has already been" + - " registered.\022\314\001\n\rGetLaunchPlan\022 .flyteid" + - "l.admin.ObjectGetRequest\032\032.flyteidl.admi" + - "n.LaunchPlan\"}\202\323\344\223\002F\022D/api/v1/launch_pla" + - "ns/{id.project}/{id.domain}/{id.name}/{i" + - "d.version}\222A.\032,Retrieve an existing laun" + - "ch plan definition.\022\363\001\n\023GetActiveLaunchP" + - "lan\022\'.flyteidl.admin.ActiveLaunchPlanReq" + - "uest\032\032.flyteidl.admin.LaunchPlan\"\226\001\202\323\344\223\002" + - "@\022>/api/v1/active_launch_plans/{id.proje" + - "ct}/{id.domain}/{id.name}\222AM\032KRetrieve t" + - "he active launch plan version specified " + - "by input request filters.\022\353\001\n\025ListActive" + - "LaunchPlans\022+.flyteidl.admin.ActiveLaunc" + - "hPlanListRequest\032\036.flyteidl.admin.Launch" + - "PlanList\"\204\001\202\323\344\223\0020\022./api/v1/active_launch" + - "_plans/{project}/{domain}\222AK\032IFetch the " + - "active launch plan versions specified by" + - " input request filters.\022\363\001\n\021ListLaunchPl" + - "anIds\0220.flyteidl.admin.NamedEntityIdenti" + - "fierListRequest\032).flyteidl.admin.NamedEn" + - "tityIdentifierList\"\200\001\202\323\344\223\002,\022*/api/v1/lau" + - "nch_plan_ids/{project}/{domain}\222AK\032IFetc" + - "h existing launch plan definition identi" + - "fiers matching input filters.\022\214\002\n\017ListLa" + - "unchPlans\022#.flyteidl.admin.ResourceListR" + - "equest\032\036.flyteidl.admin.LaunchPlanList\"\263" + - "\001\202\323\344\223\002j\0227/api/v1/launch_plans/{id.projec" + - "t}/{id.domain}/{id.name}Z/\022-/api/v1/laun" + - "ch_plans/{id.project}/{id.domain}\222A@\032>Fe" + - "tch existing launch plan definitions mat" + - "ching input filters.\022\300\006\n\020UpdateLaunchPla" + - "n\022\'.flyteidl.admin.LaunchPlanUpdateReque" + - "st\032(.flyteidl.admin.LaunchPlanUpdateResp" + - "onse\"\330\005\202\323\344\223\002I\032D/api/v1/launch_plans/{id." + - "project}/{id.domain}/{id.name}/{id.versi" + - "on}:\001*\222A\205\005\032\202\005Update the status of an exi" + - "sting launch plan definition. At most on" + - "e launch plan version for a given {proje" + - "ct, domain, name} can be active at a tim" + - "e. If this call sets a launch plan to ac" + - "tive and existing version is already act" + - "ive, the result of this call will be tha" + - "t the formerly active launch plan will b" + - "e made inactive and specified launch pla" + - "n in this request will be made active. I" + - "n the event that the formerly active lau" + - "nch plan had a schedule associated it wi" + - "th it, this schedule will be disabled. I" + - "f the reference launch plan in this requ" + - "est is being set to active and has a sch" + - "edule associated with it, the schedule w" + - "ill be enabled.\022\242\001\n\017CreateExecution\022&.fl" + - "yteidl.admin.ExecutionCreateRequest\032\'.fl" + - "yteidl.admin.ExecutionCreateResponse\">\202\323" + - "\344\223\002\027\"\022/api/v1/executions:\001*\222A\036\032\034Create a" + - " workflow execution.\022\261\001\n\021RelaunchExecuti" + - "on\022(.flyteidl.admin.ExecutionRelaunchReq" + - "uest\032\'.flyteidl.admin.ExecutionCreateRes" + - "ponse\"I\202\323\344\223\002 \"\033/api/v1/executions/relaun" + - "ch:\001*\222A \032\036Relaunch a workflow execution." + - "\022\302\001\n\014GetExecution\022+.flyteidl.admin.Workf" + - "lowExecutionGetRequest\032\031.flyteidl.admin." + - "Execution\"j\202\323\344\223\0027\0225/api/v1/executions/{i" + - "d.project}/{id.domain}/{id.name}\222A*\032(Ret" + - "rieve an existing workflow execution.\022\202\002" + - "\n\020GetExecutionData\022/.flyteidl.admin.Work" + - "flowExecutionGetDataRequest\0320.flyteidl.a" + - "dmin.WorkflowExecutionGetDataResponse\"\212\001" + - "\202\323\344\223\002<\022:/api/v1/data/executions/{id.proj" + - "ect}/{id.domain}/{id.name}\222AE\032CRetrieve " + - "input and output data from an existing w" + - "orkflow execution.\022\310\001\n\016ListExecutions\022#." + - "flyteidl.admin.ResourceListRequest\032\035.fly" + - "teidl.admin.ExecutionList\"r\202\323\344\223\002-\022+/api/" + - "v1/executions/{id.project}/{id.domain}\222A" + - "<\032:Fetch existing workflow executions ma" + - "tching input filters.\022\364\001\n\022TerminateExecu" + - "tion\022).flyteidl.admin.ExecutionTerminate" + - "Request\032*.flyteidl.admin.ExecutionTermin" + - "ateResponse\"\206\001\202\323\344\223\002:*5/api/v1/executions" + - "/{id.project}/{id.domain}/{id.name}:\001*\222A" + - "C\032ATerminate the active workflow executi" + - "on specified in the request.\022\374\001\n\020GetNode" + - "Execution\022\'.flyteidl.admin.NodeExecution" + - "GetRequest\032\035.flyteidl.admin.NodeExecutio" + - "n\"\237\001\202\323\344\223\002p\022n/api/v1/node_executions/{id." + - "execution_id.project}/{id.execution_id.d" + - "omain}/{id.execution_id.name}/{id.node_i" + - "d}\222A&\032$Retrieve an existing node executi" + - "on.\022\232\002\n\022ListNodeExecutions\022(.flyteidl.ad" + - "min.NodeExecutionListRequest\032!.flyteidl." + - "admin.NodeExecutionList\"\266\001\202\323\344\223\002u\022s/api/v" + - "1/node_executions/{workflow_execution_id" + - ".project}/{workflow_execution_id.domain}" + - "/{workflow_execution_id.name}\222A8\0326Fetch " + - "existing node executions matching input " + - "filters.\022\357\004\n\031ListNodeExecutionsForTask\022/" + - ".flyteidl.admin.NodeExecutionForTaskList" + - "Request\032!.flyteidl.admin.NodeExecutionLi" + - "st\"\375\003\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_exe" + - "cutions/{task_execution_id.node_executio" + - "n_id.execution_id.project}/{task_executi" + - "on_id.node_execution_id.execution_id.dom" + - "ain}/{task_execution_id.node_execution_i" + - "d.execution_id.name}/{task_execution_id." + - "node_execution_id.node_id}/{task_executi" + - "on_id.task_id.project}/{task_execution_i" + - "d.task_id.domain}/{task_execution_id.tas" + - "k_id.name}/{task_execution_id.task_id.ve" + - "rsion}/{task_execution_id.retry_attempt}" + - "\222AG\032EFetch child node executions launche" + - "d by the specified task execution.\022\263\002\n\024G" + - "etNodeExecutionData\022+.flyteidl.admin.Nod" + - "eExecutionGetDataRequest\032,.flyteidl.admi" + - "n.NodeExecutionGetDataResponse\"\277\001\202\323\344\223\002u\022" + - "s/api/v1/data/node_executions/{id.execut" + - "ion_id.project}/{id.execution_id.domain}" + - "/{id.execution_id.name}/{id.node_id}\222AA\032" + - "?Retrieve input and output data from an " + - "existing node execution.\022\227\001\n\017RegisterPro" + - "ject\022&.flyteidl.admin.ProjectRegisterReq" + - "uest\032\'.flyteidl.admin.ProjectRegisterRes" + - "ponse\"3\202\323\344\223\002\025\"\020/api/v1/projects:\001*\222A\025\032\023R" + - "egister a project.\022\205\001\n\014ListProjects\022\".fl" + - "yteidl.admin.ProjectListRequest\032\030.flytei" + - "dl.admin.Projects\"7\202\323\344\223\002\022\022\020/api/v1/proje" + - "cts\222A\034\032\032Fetch registered projects.\022\335\001\n\023C" + - "reateWorkflowEvent\022-.flyteidl.admin.Work" + - "flowExecutionEventRequest\032..flyteidl.adm" + - "in.WorkflowExecutionEventResponse\"g\202\323\344\223\002" + - "\035\"\030/api/v1/events/workflows:\001*\222AA\032?Creat" + - "e a workflow execution event recording a" + - " phase transition.\022\311\001\n\017CreateNodeEvent\022)" + - ".flyteidl.admin.NodeExecutionEventReques" + - "t\032*.flyteidl.admin.NodeExecutionEventRes" + - "ponse\"_\202\323\344\223\002\031\"\024/api/v1/events/nodes:\001*\222A" + - "=\032;Create a node execution event recordi" + - "ng a phase transition.\022\311\001\n\017CreateTaskEve" + - "nt\022).flyteidl.admin.TaskExecutionEventRe" + - "quest\032*.flyteidl.admin.TaskExecutionEven" + - "tResponse\"_\202\323\344\223\002\031\"\024/api/v1/events/tasks:" + - "\001*\222A=\032;Create a task execution event rec" + - "ording a phase transition.\022\251\003\n\020GetTaskEx" + - "ecution\022\'.flyteidl.admin.TaskExecutionGe" + - "tRequest\032\035.flyteidl.admin.TaskExecution\"" + - "\314\002\202\323\344\223\002\234\002\022\231\002/api/v1/task_executions/{id." + - "node_execution_id.execution_id.project}/" + - "{id.node_execution_id.execution_id.domai" + - "n}/{id.node_execution_id.execution_id.na" + - "me}/{id.node_execution_id.node_id}/{id.t" + - "ask_id.project}/{id.task_id.domain}/{id." + - "task_id.name}/{id.task_id.version}/{id.r" + - "etry_attempt}\222A&\032$Retrieve an existing t" + - "ask execution.\022\323\002\n\022ListTaskExecutions\022(." + - "flyteidl.admin.TaskExecutionListRequest\032" + - "!.flyteidl.admin.TaskExecutionList\"\357\001\202\323\344" + - "\223\002\255\001\022\252\001/api/v1/task_executions/{node_exe" + - "cution_id.execution_id.project}/{node_ex" + - "ecution_id.execution_id.domain}/{node_ex" + - "ecution_id.execution_id.name}/{node_exec" + - "ution_id.node_id}\222A8\0326Fetch existing tas" + - "k executions matching input filters.\022\340\003\n" + - "\024GetTaskExecutionData\022+.flyteidl.admin.T" + - "askExecutionGetDataRequest\032,.flyteidl.ad" + - "min.TaskExecutionGetDataResponse\"\354\002\202\323\344\223\002" + - "\241\002\022\236\002/api/v1/data/task_executions/{id.no" + - "de_execution_id.execution_id.project}/{i" + - "d.node_execution_id.execution_id.domain}" + - "/{id.node_execution_id.execution_id.name" + - "}/{id.node_execution_id.node_id}/{id.tas" + - "k_id.project}/{id.task_id.domain}/{id.ta" + - "sk_id.name}/{id.task_id.version}/{id.ret" + - "ry_attempt}\222AA\032?Retrieve input and outpu" + - "t data from an existing task execution.\022" + - "\277\002\n\035UpdateProjectDomainAttributes\0224.flyt" + - "eidl.admin.ProjectDomainAttributesUpdate" + - "Request\0325.flyteidl.admin.ProjectDomainAt" + - "tributesUpdateResponse\"\260\001\202\323\344\223\002O\032J/api/v1" + - "/project_domain_attributes/{attributes.p" + - "roject}/{attributes.domain}:\001*\222AX\032VUpdat" + - "e the customized resource attributes ass" + - "ociated with a project-domain combinatio" + - "n\022\237\002\n\032GetProjectDomainAttributes\0221.flyte" + - "idl.admin.ProjectDomainAttributesGetRequ" + - "est\0322.flyteidl.admin.ProjectDomainAttrib" + - "utesGetResponse\"\231\001\202\323\344\223\0026\0224/api/v1/projec" + - "t_domain_attributes/{project}/{domain}\222A" + - "Z\032XRetrieve the customized resource attr" + - "ibutes associated with a project-domain " + - "combination\022\251\002\n\035DeleteProjectDomainAttri" + - "butes\0224.flyteidl.admin.ProjectDomainAttr" + - "ibutesDeleteRequest\0325.flyteidl.admin.Pro" + - "jectDomainAttributesDeleteResponse\"\232\001\202\323\344" + - "\223\0029*4/api/v1/project_domain_attributes/{" + - "project}/{domain}:\001*\222AX\032VDelete the cust" + - "omized resource attributes associated wi" + - "th a project-domain combination\022\316\002\n\030Upda" + - "teWorkflowAttributes\022/.flyteidl.admin.Wo" + - "rkflowAttributesUpdateRequest\0320.flyteidl" + - ".admin.WorkflowAttributesUpdateResponse\"" + - "\316\001\202\323\344\223\002_\032Z/api/v1/workflow_attributes/{a" + - "ttributes.project}/{attributes.domain}/{" + - "attributes.workflow}:\001*\222Af\032dUpdate the c" + - "ustomized resource attributes associated" + - " with a project, domain and workflow com" + - "bination\022\243\002\n\025GetWorkflowAttributes\022,.fly" + - "teidl.admin.WorkflowAttributesGetRequest" + - "\032-.flyteidl.admin.WorkflowAttributesGetR" + - "esponse\"\254\001\202\323\344\223\002;\0229/api/v1/workflow_attri" + - "butes/{project}/{domain}/{workflow}\222Ah\032f" + - "Retrieve the customized resource attribu" + - "tes associated with a project, domain an" + - "d workflow combination\022\255\002\n\030DeleteWorkflo" + - "wAttributes\022/.flyteidl.admin.WorkflowAtt" + - "ributesDeleteRequest\0320.flyteidl.admin.Wo" + - "rkflowAttributesDeleteResponse\"\255\001\202\323\344\223\002>*" + - "9/api/v1/workflow_attributes/{project}/{" + - "domain}/{workflow}:\001*\222Af\032dDelete the cus" + - "tomized resource attributes associated w" + - "ith a project, domain and workflow combi" + - "nation\022\341\001\n\027ListMatchableAttributes\022..fly" + - "teidl.admin.ListMatchableAttributesReque" + - "st\032/.flyteidl.admin.ListMatchableAttribu" + - "tesResponse\"e\202\323\344\223\002\036\022\034/api/v1/matchable_a" + - "ttributes\222A>\032 Date: Thu, 23 Jul 2020 17:18:02 -0700 Subject: [PATCH 33/64] Regenerate --- gen/pb-java/flyteidl/admin/Common.java | 20107 +++++++++++++++ gen/pb-java/flyteidl/admin/Event.java | 5194 ++++ .../flyteidl/admin/ExecutionOuterClass.java | 20558 ++++++++++++++++ .../flyteidl/admin/LaunchPlanOuterClass.java | 13189 ++++++++++ .../admin/MatchableResourceOuterClass.java | 8238 +++++++ .../admin/NodeExecutionOuterClass.java | 11025 +++++++++ gen/pb-java/flyteidl/admin/Notification.java | 1325 + .../ProjectDomainAttributesOuterClass.java | 4856 ++++ .../flyteidl/admin/ProjectOuterClass.java | 4299 ++++ .../flyteidl/admin/ScheduleOuterClass.java | 1848 ++ .../admin/TaskExecutionOuterClass.java | 8862 +++++++ .../flyteidl/admin/TaskOuterClass.java | 5102 ++++ .../admin/WorkflowAttributesOuterClass.java | 5375 ++++ .../flyteidl/admin/WorkflowOuterClass.java | 5646 +++++ gen/pb-java/flyteidl/core/Compiler.java | 5243 ++++ gen/pb-java/flyteidl/core/Condition.java | 4070 +++ gen/pb-java/flyteidl/core/DynamicJob.java | 2542 ++ gen/pb-java/flyteidl/core/Errors.java | 1882 ++ gen/pb-java/flyteidl/core/Execution.java | 5764 +++++ .../flyteidl/core/IdentifierOuterClass.java | 4043 +++ gen/pb-java/flyteidl/core/Interface.java | 4503 ++++ gen/pb-java/flyteidl/core/Literals.java | 14859 +++++++++++ gen/pb-java/flyteidl/core/Tasks.java | 13257 ++++++++++ gen/pb-java/flyteidl/core/Types.java | 6407 +++++ gen/pb-java/flyteidl/core/Workflow.java | 14708 +++++++++++ .../core/WorkflowClosureOuterClass.java | 1251 + gen/pb-java/flyteidl/event/Event.java | 8733 +++++++ .../flyteidl/plugins/ArrayJobOuterClass.java | 759 + gen/pb-java/flyteidl/plugins/Presto.java | 1031 + gen/pb-java/flyteidl/plugins/Pytorch.java | 560 + gen/pb-java/flyteidl/plugins/Qubole.java | 2700 ++ gen/pb-java/flyteidl/plugins/Sidecar.java | 817 + gen/pb-java/flyteidl/plugins/Spark.java | 2179 ++ gen/pb-java/flyteidl/plugins/Tensorflow.java | 705 + .../flyteidl/plugins/WaitableOuterClass.java | 911 + .../flyteidl/plugins/sagemaker/HpoJob.java | 2824 +++ .../sagemaker/ParameterRangesOuterClass.java | 3973 +++ .../sagemaker/TrainingJobOuterClass.java | 4208 ++++ gen/pb-java/flyteidl/service/Admin.java | 395 + 39 files changed, 223948 insertions(+) create mode 100644 gen/pb-java/flyteidl/admin/Common.java create mode 100644 gen/pb-java/flyteidl/admin/Event.java create mode 100644 gen/pb-java/flyteidl/admin/ExecutionOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/Notification.java create mode 100644 gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/ProjectOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/ScheduleOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/TaskOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java create mode 100644 gen/pb-java/flyteidl/admin/WorkflowOuterClass.java create mode 100644 gen/pb-java/flyteidl/core/Compiler.java create mode 100644 gen/pb-java/flyteidl/core/Condition.java create mode 100644 gen/pb-java/flyteidl/core/DynamicJob.java create mode 100644 gen/pb-java/flyteidl/core/Errors.java create mode 100644 gen/pb-java/flyteidl/core/Execution.java create mode 100644 gen/pb-java/flyteidl/core/IdentifierOuterClass.java create mode 100644 gen/pb-java/flyteidl/core/Interface.java create mode 100644 gen/pb-java/flyteidl/core/Literals.java create mode 100644 gen/pb-java/flyteidl/core/Tasks.java create mode 100644 gen/pb-java/flyteidl/core/Types.java create mode 100644 gen/pb-java/flyteidl/core/Workflow.java create mode 100644 gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java create mode 100644 gen/pb-java/flyteidl/event/Event.java create mode 100644 gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java create mode 100644 gen/pb-java/flyteidl/plugins/Presto.java create mode 100644 gen/pb-java/flyteidl/plugins/Pytorch.java create mode 100644 gen/pb-java/flyteidl/plugins/Qubole.java create mode 100644 gen/pb-java/flyteidl/plugins/Sidecar.java create mode 100644 gen/pb-java/flyteidl/plugins/Spark.java create mode 100644 gen/pb-java/flyteidl/plugins/Tensorflow.java create mode 100644 gen/pb-java/flyteidl/plugins/WaitableOuterClass.java create mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java create mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java create mode 100644 gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java create mode 100644 gen/pb-java/flyteidl/service/Admin.java diff --git a/gen/pb-java/flyteidl/admin/Common.java b/gen/pb-java/flyteidl/admin/Common.java new file mode 100644 index 000000000..aedc37089 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/Common.java @@ -0,0 +1,20107 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/common.proto + +package flyteidl.admin; + +public final class Common { + private Common() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * The status of the named entity is used to control its visibility in the UI.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.NamedEntityState} + */ + public enum NamedEntityState + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * By default, all named entities are considered active and under development.
+     * 
+ * + * NAMED_ENTITY_ACTIVE = 0; + */ + NAMED_ENTITY_ACTIVE(0), + /** + *
+     * Archived named entities are no longer visible in the UI.
+     * 
+ * + * NAMED_ENTITY_ARCHIVED = 1; + */ + NAMED_ENTITY_ARCHIVED(1), + /** + *
+     * System generated entities that aren't explicitly created or managed by a user.
+     * 
+ * + * SYSTEM_GENERATED = 2; + */ + SYSTEM_GENERATED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * By default, all named entities are considered active and under development.
+     * 
+ * + * NAMED_ENTITY_ACTIVE = 0; + */ + public static final int NAMED_ENTITY_ACTIVE_VALUE = 0; + /** + *
+     * Archived named entities are no longer visible in the UI.
+     * 
+ * + * NAMED_ENTITY_ARCHIVED = 1; + */ + public static final int NAMED_ENTITY_ARCHIVED_VALUE = 1; + /** + *
+     * System generated entities that aren't explicitly created or managed by a user.
+     * 
+ * + * SYSTEM_GENERATED = 2; + */ + public static final int SYSTEM_GENERATED_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NamedEntityState valueOf(int value) { + return forNumber(value); + } + + public static NamedEntityState forNumber(int value) { + switch (value) { + case 0: return NAMED_ENTITY_ACTIVE; + case 1: return NAMED_ENTITY_ARCHIVED; + case 2: return SYSTEM_GENERATED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NamedEntityState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NamedEntityState findValueByNumber(int number) { + return NamedEntityState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.admin.Common.getDescriptor().getEnumTypes().get(0); + } + + private static final NamedEntityState[] VALUES = values(); + + public static NamedEntityState 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 NamedEntityState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.NamedEntityState) + } + + public interface NamedEntityIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Encapsulation of fields that identifies a Flyte resource.
+   * A resource can internally have multiple versions.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} + */ + public static final class NamedEntityIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifier) + NamedEntityIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityIdentifier.newBuilder() to construct. + private NamedEntityIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityIdentifier() { + project_ = ""; + domain_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityIdentifier( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.NamedEntityIdentifier)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityIdentifier other = (flyteidl.admin.Common.NamedEntityIdentifier) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifier 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 flyteidl.admin.Common.NamedEntityIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifier 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 flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifier 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(flyteidl.admin.Common.NamedEntityIdentifier 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; + } + /** + *
+     * Encapsulation of fields that identifies a Flyte resource.
+     * A resource can internally have multiple versions.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifier) + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityIdentifier.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(); + project_ = ""; + + domain_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifier build() { + flyteidl.admin.Common.NamedEntityIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifier buildPartial() { + flyteidl.admin.Common.NamedEntityIdentifier result = new flyteidl.admin.Common.NamedEntityIdentifier(this); + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityIdentifier) { + return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifier other) { + if (other == flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifier) + private static final flyteidl.admin.Common.NamedEntityIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifier(); + } + + public static flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityIdentifier(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 flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Common description across all versions of the entity
+     * +optional
+     * 
+ * + * string description = 1; + */ + java.lang.String getDescription(); + /** + *
+     * Common description across all versions of the entity
+     * +optional
+     * 
+ * + * string description = 1; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+     * Shared state across all version of the entity
+     * At this point in time, only workflow entities can have their state archived.
+     * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + int getStateValue(); + /** + *
+     * Shared state across all version of the entity
+     * At this point in time, only workflow entities can have their state archived.
+     * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + flyteidl.admin.Common.NamedEntityState getState(); + } + /** + * Protobuf type {@code flyteidl.admin.NamedEntityMetadata} + */ + public static final class NamedEntityMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityMetadata) + NamedEntityMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityMetadata.newBuilder() to construct. + private NamedEntityMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityMetadata() { + description_ = ""; + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityMetadata( + 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(); + + description_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + state_ = rawValue; + 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityMetadata.class, flyteidl.admin.Common.NamedEntityMetadata.Builder.class); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object description_; + /** + *
+     * Common description across all versions of the entity
+     * +optional
+     * 
+ * + * string description = 1; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + *
+     * Common description across all versions of the entity
+     * +optional
+     * 
+ * + * string description = 1; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + *
+     * Shared state across all version of the entity
+     * At this point in time, only workflow entities can have their state archived.
+     * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * Shared state across all version of the entity
+     * At this point in time, only workflow entities can have their state archived.
+     * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public flyteidl.admin.Common.NamedEntityState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.Common.NamedEntityState result = flyteidl.admin.Common.NamedEntityState.valueOf(state_); + return result == null ? flyteidl.admin.Common.NamedEntityState.UNRECOGNIZED : result; + } + + 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 (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); + } + if (state_ != flyteidl.admin.Common.NamedEntityState.NAMED_ENTITY_ACTIVE.getNumber()) { + output.writeEnum(2, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); + } + if (state_ != flyteidl.admin.Common.NamedEntityState.NAMED_ENTITY_ACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + 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 flyteidl.admin.Common.NamedEntityMetadata)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityMetadata other = (flyteidl.admin.Common.NamedEntityMetadata) obj; + + if (!getDescription() + .equals(other.getDescription())) return false; + if (state_ != other.state_) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityMetadata 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 flyteidl.admin.Common.NamedEntityMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityMetadata 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 flyteidl.admin.Common.NamedEntityMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityMetadata 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(flyteidl.admin.Common.NamedEntityMetadata 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 flyteidl.admin.NamedEntityMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityMetadata) + flyteidl.admin.Common.NamedEntityMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityMetadata.class, flyteidl.admin.Common.NamedEntityMetadata.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityMetadata.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(); + description_ = ""; + + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityMetadata getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityMetadata build() { + flyteidl.admin.Common.NamedEntityMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityMetadata buildPartial() { + flyteidl.admin.Common.NamedEntityMetadata result = new flyteidl.admin.Common.NamedEntityMetadata(this); + result.description_ = description_; + result.state_ = state_; + 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 flyteidl.admin.Common.NamedEntityMetadata) { + return mergeFrom((flyteidl.admin.Common.NamedEntityMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityMetadata other) { + if (other == flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance()) return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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 { + flyteidl.admin.Common.NamedEntityMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public flyteidl.admin.Common.NamedEntityState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.Common.NamedEntityState result = flyteidl.admin.Common.NamedEntityState.valueOf(state_); + return result == null ? flyteidl.admin.Common.NamedEntityState.UNRECOGNIZED : result; + } + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public Builder setState(flyteidl.admin.Common.NamedEntityState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public Builder clearState() { + + state_ = 0; + 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:flyteidl.admin.NamedEntityMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityMetadata) + private static final flyteidl.admin.Common.NamedEntityMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityMetadata(); + } + + public static flyteidl.admin.Common.NamedEntityMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityMetadata(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 flyteidl.admin.Common.NamedEntityMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + boolean hasId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + flyteidl.admin.Common.NamedEntityMetadata getMetadata(); + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder(); + } + /** + *
+   * Describes information common to a NamedEntity, identified by a project /
+   * domain / name / resource type combination
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntity} + */ + public static final class NamedEntity extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntity) + NamedEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntity.newBuilder() to construct. + private NamedEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntity() { + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntity( + 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 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.Common.NamedEntityMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.Common.NamedEntityMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntity.class, flyteidl.admin.Common.NamedEntity.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int ID_FIELD_NUMBER = 2; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.admin.Common.NamedEntityMetadata metadata_; + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { + return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (id_ != null) { + output.writeMessage(2, getId()); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getId()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + 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 flyteidl.admin.Common.NamedEntity)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntity other = (flyteidl.admin.Common.NamedEntity) obj; + + if (resourceType_ != other.resourceType_) return false; + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) 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) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntity 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 flyteidl.admin.Common.NamedEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntity 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 flyteidl.admin.Common.NamedEntity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntity 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(flyteidl.admin.Common.NamedEntity 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; + } + /** + *
+     * Describes information common to a NamedEntity, identified by a project /
+     * domain / name / resource type combination
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntity) + flyteidl.admin.Common.NamedEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntity.class, flyteidl.admin.Common.NamedEntity.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntity.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(); + resourceType_ = 0; + + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntity getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntity.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntity build() { + flyteidl.admin.Common.NamedEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntity buildPartial() { + flyteidl.admin.Common.NamedEntity result = new flyteidl.admin.Common.NamedEntity(this); + result.resourceType_ = resourceType_; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.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 flyteidl.admin.Common.NamedEntity) { + return mergeFrom((flyteidl.admin.Common.NamedEntity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntity other) { + if (other == flyteidl.admin.Common.NamedEntity.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + 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 { + flyteidl.admin.Common.NamedEntity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.Common.NamedEntityMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> metadataBuilder_; + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.admin.Common.NamedEntityMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.Common.NamedEntityMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } + } + /** + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @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:flyteidl.admin.NamedEntity) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntity) + private static final flyteidl.admin.Common.NamedEntity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntity(); + } + + public static flyteidl.admin.Common.NamedEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntity(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 flyteidl.admin.Common.NamedEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SortOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Sort) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates an attribute to sort the response values.
+     * TODO(katrogan): Add string validation here. This should never be empty.
+     * 
+ * + * string key = 1; + */ + java.lang.String getKey(); + /** + *
+     * Indicates an attribute to sort the response values.
+     * TODO(katrogan): Add string validation here. This should never be empty.
+     * 
+ * + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + int getDirectionValue(); + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + flyteidl.admin.Common.Sort.Direction getDirection(); + } + /** + *
+   * Species sort ordering in a list request.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Sort} + */ + public static final class Sort extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Sort) + SortOrBuilder { + private static final long serialVersionUID = 0L; + // Use Sort.newBuilder() to construct. + private Sort(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Sort() { + key_ = ""; + direction_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Sort( + 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(); + + key_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + direction_ = rawValue; + 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 flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.admin.Sort.Direction} + */ + public enum Direction + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DESCENDING = 0; + */ + DESCENDING(0), + /** + * ASCENDING = 1; + */ + ASCENDING(1), + UNRECOGNIZED(-1), + ; + + /** + * DESCENDING = 0; + */ + public static final int DESCENDING_VALUE = 0; + /** + * ASCENDING = 1; + */ + public static final int ASCENDING_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Direction valueOf(int value) { + return forNumber(value); + } + + public static Direction forNumber(int value) { + switch (value) { + case 0: return DESCENDING; + case 1: return ASCENDING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Direction> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Direction findValueByNumber(int number) { + return Direction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.admin.Common.Sort.getDescriptor().getEnumTypes().get(0); + } + + private static final Direction[] VALUES = values(); + + public static Direction 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 Direction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.Sort.Direction) + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
+     * Indicates an attribute to sort the response values.
+     * TODO(katrogan): Add string validation here. This should never be empty.
+     * 
+ * + * string key = 1; + */ + 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; + } + } + /** + *
+     * Indicates an attribute to sort the response values.
+     * TODO(katrogan): Add string validation here. This should never be empty.
+     * 
+ * + * string key = 1; + */ + 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 DIRECTION_FIELD_NUMBER = 2; + private int direction_; + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public int getDirectionValue() { + return direction_; + } + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public flyteidl.admin.Common.Sort.Direction getDirection() { + @SuppressWarnings("deprecation") + flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); + return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; + } + + 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 (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { + output.writeEnum(2, direction_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, direction_); + } + 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 flyteidl.admin.Common.Sort)) { + return super.equals(obj); + } + flyteidl.admin.Common.Sort other = (flyteidl.admin.Common.Sort) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (direction_ != other.direction_) 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) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Sort parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Sort parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Sort parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Sort parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Sort parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Sort parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Sort parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Sort 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 flyteidl.admin.Common.Sort parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Sort 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 flyteidl.admin.Common.Sort parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Sort 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(flyteidl.admin.Common.Sort 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; + } + /** + *
+     * Species sort ordering in a list request.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Sort} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Sort) + flyteidl.admin.Common.SortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); + } + + // Construct using flyteidl.admin.Common.Sort.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_ = ""; + + direction_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.Sort getDefaultInstanceForType() { + return flyteidl.admin.Common.Sort.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.Sort build() { + flyteidl.admin.Common.Sort result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.Sort buildPartial() { + flyteidl.admin.Common.Sort result = new flyteidl.admin.Common.Sort(this); + result.key_ = key_; + result.direction_ = direction_; + 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 flyteidl.admin.Common.Sort) { + return mergeFrom((flyteidl.admin.Common.Sort)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Sort other) { + if (other == flyteidl.admin.Common.Sort.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + 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 { + flyteidl.admin.Common.Sort parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Sort) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + 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; + } + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + 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; + } + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private int direction_ = 0; + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public int getDirectionValue() { + return direction_; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public Builder setDirectionValue(int value) { + direction_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public flyteidl.admin.Common.Sort.Direction getDirection() { + @SuppressWarnings("deprecation") + flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); + return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public Builder setDirection(flyteidl.admin.Common.Sort.Direction value) { + if (value == null) { + throw new NullPointerException(); + } + + direction_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public Builder clearDirection() { + + direction_ = 0; + 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:flyteidl.admin.Sort) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Sort) + private static final flyteidl.admin.Common.Sort DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Sort(); + } + + public static flyteidl.admin.Common.Sort getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Sort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Sort(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 flyteidl.admin.Common.Sort getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityIdentifierListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 3; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 6; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 6; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + } + /** + *
+   * Represents a request structure to list identifiers.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} + */ + public static final class NamedEntityIdentifierListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierListRequest) + NamedEntityIdentifierListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityIdentifierListRequest.newBuilder() to construct. + private NamedEntityIdentifierListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityIdentifierListRequest() { + project_ = ""; + domain_ = ""; + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityIdentifierListRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 24: { + + limit_ = input.readUInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 3; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + public static final int FILTERS_FIELD_NUMBER = 6; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 6; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 6; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (limit_ != 0) { + output.writeUInt32(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, filters_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, filters_); + } + 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityIdentifierListRequest other = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!getFilters() + .equals(other.getFilters())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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(flyteidl.admin.Common.NamedEntityIdentifierListRequest 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; + } + /** + *
+     * Represents a request structure to list identifiers.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierListRequest) + flyteidl.admin.Common.NamedEntityIdentifierListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityIdentifierListRequest.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(); + project_ = ""; + + domain_ = ""; + + limit_ = 0; + + token_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + filters_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierListRequest build() { + flyteidl.admin.Common.NamedEntityIdentifierListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierListRequest buildPartial() { + flyteidl.admin.Common.NamedEntityIdentifierListRequest result = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.limit_ = limit_; + result.token_ = token_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + result.filters_ = filters_; + 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 flyteidl.admin.Common.NamedEntityIdentifierListRequest) { + return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierListRequest other) { + if (other == flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + 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 { + flyteidl.admin.Common.NamedEntityIdentifierListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = 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:flyteidl.admin.NamedEntityIdentifierListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierListRequest) + private static final flyteidl.admin.Common.NamedEntityIdentifierListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(); + } + + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityIdentifierListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityIdentifierListRequest(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 flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 2; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 2; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 3; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 3; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 4; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 5; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 5; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 7; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 7; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + } + /** + *
+   * Represents a request structure to list NamedEntity objects
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityListRequest} + */ + public static final class NamedEntityListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityListRequest) + NamedEntityListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityListRequest.newBuilder() to construct. + private NamedEntityListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityListRequest() { + resourceType_ = 0; + project_ = ""; + domain_ = ""; + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityListRequest( + 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 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 32: { + + limit_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 50: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityListRequest.class, flyteidl.admin.Common.NamedEntityListRequest.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int PROJECT_FIELD_NUMBER = 2; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 3; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 4; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 4; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 5; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 5; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 5; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 6; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + public static final int FILTERS_FIELD_NUMBER = 7; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 7; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 7; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); + } + if (limit_ != 0) { + output.writeUInt32(4, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, token_); + } + if (sortBy_ != null) { + output.writeMessage(6, getSortBy()); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filters_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, token_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getSortBy()); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filters_); + } + 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 flyteidl.admin.Common.NamedEntityListRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityListRequest other = (flyteidl.admin.Common.NamedEntityListRequest) obj; + + if (resourceType_ != other.resourceType_) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!getFilters() + .equals(other.getFilters())) 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) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityListRequest 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 flyteidl.admin.Common.NamedEntityListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityListRequest 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 flyteidl.admin.Common.NamedEntityListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityListRequest 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(flyteidl.admin.Common.NamedEntityListRequest 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; + } + /** + *
+     * Represents a request structure to list NamedEntity objects
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityListRequest) + flyteidl.admin.Common.NamedEntityListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityListRequest.class, flyteidl.admin.Common.NamedEntityListRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityListRequest.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(); + resourceType_ = 0; + + project_ = ""; + + domain_ = ""; + + limit_ = 0; + + token_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + filters_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityListRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityListRequest build() { + flyteidl.admin.Common.NamedEntityListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityListRequest buildPartial() { + flyteidl.admin.Common.NamedEntityListRequest result = new flyteidl.admin.Common.NamedEntityListRequest(this); + result.resourceType_ = resourceType_; + result.project_ = project_; + result.domain_ = domain_; + result.limit_ = limit_; + result.token_ = token_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + result.filters_ = filters_; + 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 flyteidl.admin.Common.NamedEntityListRequest) { + return mergeFrom((flyteidl.admin.Common.NamedEntityListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityListRequest other) { + if (other == flyteidl.admin.Common.NamedEntityListRequest.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + 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 { + flyteidl.admin.Common.NamedEntityListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 2; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 2; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 2; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 4; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 4; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 4; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = 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:flyteidl.admin.NamedEntityListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityListRequest) + private static final flyteidl.admin.Common.NamedEntityListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityListRequest(); + } + + public static flyteidl.admin.Common.NamedEntityListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityListRequest(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 flyteidl.admin.Common.NamedEntityListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityIdentifierListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + java.util.List + getEntitiesList(); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + int getEntitiesCount(); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + java.util.List + getEntitiesOrBuilderList(); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of NamedEntityIdentifiers.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} + */ + public static final class NamedEntityIdentifierList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierList) + NamedEntityIdentifierListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityIdentifierList.newBuilder() to construct. + private NamedEntityIdentifierList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityIdentifierList() { + entities_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityIdentifierList( + 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)) { + entities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + entities_.add( + input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); + } + + private int bitField0_; + public static final int ENTITIES_FIELD_NUMBER = 1; + private java.util.List entities_; + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List getEntitiesList() { + return entities_; + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + return entities_; + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public int getEntitiesCount() { + return entities_.size(); + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { + return entities_.get(index); + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( + int index) { + return entities_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < entities_.size(); i++) { + output.writeMessage(1, entities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, entities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.Common.NamedEntityIdentifierList)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityIdentifierList other = (flyteidl.admin.Common.NamedEntityIdentifierList) obj; + + if (!getEntitiesList() + .equals(other.getEntitiesList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getEntitiesCount() > 0) { + hash = (37 * hash) + ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getEntitiesList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList 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 flyteidl.admin.Common.NamedEntityIdentifierList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList 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 flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList 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(flyteidl.admin.Common.NamedEntityIdentifierList 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; + } + /** + *
+     * Represents a list of NamedEntityIdentifiers.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierList) + flyteidl.admin.Common.NamedEntityIdentifierListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityIdentifierList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEntitiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + entitiesBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierList build() { + flyteidl.admin.Common.NamedEntityIdentifierList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierList buildPartial() { + flyteidl.admin.Common.NamedEntityIdentifierList result = new flyteidl.admin.Common.NamedEntityIdentifierList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entities_ = entities_; + } else { + result.entities_ = entitiesBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.Common.NamedEntityIdentifierList) { + return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierList other) { + if (other == flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance()) return this; + if (entitiesBuilder_ == null) { + if (!other.entities_.isEmpty()) { + if (entities_.isEmpty()) { + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntitiesIsMutable(); + entities_.addAll(other.entities_); + } + onChanged(); + } + } else { + if (!other.entities_.isEmpty()) { + if (entitiesBuilder_.isEmpty()) { + entitiesBuilder_.dispose(); + entitiesBuilder_ = null; + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + entitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntitiesFieldBuilder() : null; + } else { + entitiesBuilder_.addAllMessages(other.entities_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.Common.NamedEntityIdentifierList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List entities_ = + java.util.Collections.emptyList(); + private void ensureEntitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entities_ = new java.util.ArrayList(entities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> entitiesBuilder_; + + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List getEntitiesList() { + if (entitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entities_); + } else { + return entitiesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public int getEntitiesCount() { + if (entitiesBuilder_ == null) { + return entities_.size(); + } else { + return entitiesBuilder_.getCount(); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); + } else { + return entitiesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.set(index, value); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.set(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(value); + onChanged(); + } else { + entitiesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(index, value); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addAllEntities( + java.lang.Iterable values) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entities_); + onChanged(); + } else { + entitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder clearEntities() { + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entitiesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder removeEntities(int index) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.remove(index); + onChanged(); + } else { + entitiesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( + int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); } else { + return entitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + if (entitiesBuilder_ != null) { + return entitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entities_); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder() { + return getEntitiesFieldBuilder().addBuilder( + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().addBuilder( + index, flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List + getEntitiesBuilderList() { + return getEntitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getEntitiesFieldBuilder() { + if (entitiesBuilder_ == null) { + entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + entities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + entities_ = null; + } + return entitiesBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.NamedEntityIdentifierList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierList) + private static final flyteidl.admin.Common.NamedEntityIdentifierList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierList(); + } + + public static flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityIdentifierList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityIdentifierList(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 flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + java.util.List + getEntitiesList(); + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + flyteidl.admin.Common.NamedEntity getEntities(int index); + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + int getEntitiesCount(); + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + java.util.List + getEntitiesOrBuilderList(); + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of NamedEntityIdentifiers.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityList} + */ + public static final class NamedEntityList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityList) + NamedEntityListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityList.newBuilder() to construct. + private NamedEntityList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityList() { + entities_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityList( + 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)) { + entities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + entities_.add( + input.readMessage(flyteidl.admin.Common.NamedEntity.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityList.class, flyteidl.admin.Common.NamedEntityList.Builder.class); + } + + private int bitField0_; + public static final int ENTITIES_FIELD_NUMBER = 1; + private java.util.List entities_; + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List getEntitiesList() { + return entities_; + } + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + return entities_; + } + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public int getEntitiesCount() { + return entities_.size(); + } + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity getEntities(int index) { + return entities_.get(index); + } + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( + int index) { + return entities_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < entities_.size(); i++) { + output.writeMessage(1, entities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, entities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.Common.NamedEntityList)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityList other = (flyteidl.admin.Common.NamedEntityList) obj; + + if (!getEntitiesList() + .equals(other.getEntitiesList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getEntitiesCount() > 0) { + hash = (37 * hash) + ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getEntitiesList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityList 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 flyteidl.admin.Common.NamedEntityList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityList 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 flyteidl.admin.Common.NamedEntityList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityList 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(flyteidl.admin.Common.NamedEntityList 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; + } + /** + *
+     * Represents a list of NamedEntityIdentifiers.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityList) + flyteidl.admin.Common.NamedEntityListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityList.class, flyteidl.admin.Common.NamedEntityList.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEntitiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + entitiesBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityList getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityList build() { + flyteidl.admin.Common.NamedEntityList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityList buildPartial() { + flyteidl.admin.Common.NamedEntityList result = new flyteidl.admin.Common.NamedEntityList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entities_ = entities_; + } else { + result.entities_ = entitiesBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.Common.NamedEntityList) { + return mergeFrom((flyteidl.admin.Common.NamedEntityList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityList other) { + if (other == flyteidl.admin.Common.NamedEntityList.getDefaultInstance()) return this; + if (entitiesBuilder_ == null) { + if (!other.entities_.isEmpty()) { + if (entities_.isEmpty()) { + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntitiesIsMutable(); + entities_.addAll(other.entities_); + } + onChanged(); + } + } else { + if (!other.entities_.isEmpty()) { + if (entitiesBuilder_.isEmpty()) { + entitiesBuilder_.dispose(); + entitiesBuilder_ = null; + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + entitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntitiesFieldBuilder() : null; + } else { + entitiesBuilder_.addAllMessages(other.entities_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.Common.NamedEntityList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List entities_ = + java.util.Collections.emptyList(); + private void ensureEntitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entities_ = new java.util.ArrayList(entities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder> entitiesBuilder_; + + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List getEntitiesList() { + if (entitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entities_); + } else { + return entitiesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public int getEntitiesCount() { + if (entitiesBuilder_ == null) { + return entities_.size(); + } else { + return entitiesBuilder_.getCount(); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity getEntities(int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); + } else { + return entitiesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntity value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.set(index, value); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntity.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.set(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addEntities(flyteidl.admin.Common.NamedEntity value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(value); + onChanged(); + } else { + entitiesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntity value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(index, value); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addEntities( + flyteidl.admin.Common.NamedEntity.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntity.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addAllEntities( + java.lang.Iterable values) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entities_); + onChanged(); + } else { + entitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder clearEntities() { + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entitiesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder removeEntities(int index) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.remove(index); + onChanged(); + } else { + entitiesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity.Builder getEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( + int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); } else { + return entitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + if (entitiesBuilder_ != null) { + return entitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entities_); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity.Builder addEntitiesBuilder() { + return getEntitiesFieldBuilder().addBuilder( + flyteidl.admin.Common.NamedEntity.getDefaultInstance()); + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity.Builder addEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().addBuilder( + index, flyteidl.admin.Common.NamedEntity.getDefaultInstance()); + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List + getEntitiesBuilderList() { + return getEntitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder> + getEntitiesFieldBuilder() { + if (entitiesBuilder_ == null) { + entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder>( + entities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + entities_ = null; + } + return entitiesBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.NamedEntityList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityList) + private static final flyteidl.admin.Common.NamedEntityList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityList(); + } + + public static flyteidl.admin.Common.NamedEntityList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityList(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 flyteidl.admin.Common.NamedEntityList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + boolean hasId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A request to retrieve the metadata associated with a NamedEntityIdentifier
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityGetRequest} + */ + public static final class NamedEntityGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityGetRequest) + NamedEntityGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityGetRequest.newBuilder() to construct. + private NamedEntityGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityGetRequest() { + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityGetRequest( + 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 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityGetRequest.class, flyteidl.admin.Common.NamedEntityGetRequest.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int ID_FIELD_NUMBER = 2; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (id_ != null) { + output.writeMessage(2, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getId()); + } + 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 flyteidl.admin.Common.NamedEntityGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityGetRequest other = (flyteidl.admin.Common.NamedEntityGetRequest) obj; + + if (resourceType_ != other.resourceType_) return false; + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityGetRequest 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 flyteidl.admin.Common.NamedEntityGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityGetRequest 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 flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityGetRequest 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(flyteidl.admin.Common.NamedEntityGetRequest 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 request to retrieve the metadata associated with a NamedEntityIdentifier
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityGetRequest) + flyteidl.admin.Common.NamedEntityGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityGetRequest.class, flyteidl.admin.Common.NamedEntityGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityGetRequest.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(); + resourceType_ = 0; + + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityGetRequest build() { + flyteidl.admin.Common.NamedEntityGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityGetRequest buildPartial() { + flyteidl.admin.Common.NamedEntityGetRequest result = new flyteidl.admin.Common.NamedEntityGetRequest(this); + result.resourceType_ = resourceType_; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.Common.NamedEntityGetRequest) { + return mergeFrom((flyteidl.admin.Common.NamedEntityGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityGetRequest other) { + if (other == flyteidl.admin.Common.NamedEntityGetRequest.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.Common.NamedEntityGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.NamedEntityGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityGetRequest) + private static final flyteidl.admin.Common.NamedEntityGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityGetRequest(); + } + + public static flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityGetRequest(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 flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Resource type of the metadata to update
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + *
+     * Resource type of the metadata to update
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + *
+     * Identifier of the metadata to update
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + boolean hasId(); + /** + *
+     * Identifier of the metadata to update
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + *
+     * Identifier of the metadata to update
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Metadata object to set as the new value
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + *
+     * Metadata object to set as the new value
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + flyteidl.admin.Common.NamedEntityMetadata getMetadata(); + /** + *
+     * Metadata object to set as the new value
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder(); + } + /** + *
+   * Request to set the referenced launch plan state to the configured value.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityUpdateRequest} + */ + public static final class NamedEntityUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityUpdateRequest) + NamedEntityUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityUpdateRequest.newBuilder() to construct. + private NamedEntityUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityUpdateRequest() { + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityUpdateRequest( + 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 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.Common.NamedEntityMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.Common.NamedEntityMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityUpdateRequest.class, flyteidl.admin.Common.NamedEntityUpdateRequest.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + *
+     * Resource type of the metadata to update
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Resource type of the metadata to update
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int ID_FIELD_NUMBER = 2; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + *
+     * Identifier of the metadata to update
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Identifier of the metadata to update
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Identifier of the metadata to update
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.admin.Common.NamedEntityMetadata metadata_; + /** + *
+     * Metadata object to set as the new value
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Metadata object to set as the new value
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { + return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Metadata object to set as the new value
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (id_ != null) { + output.writeMessage(2, getId()); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getId()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + 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 flyteidl.admin.Common.NamedEntityUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityUpdateRequest other = (flyteidl.admin.Common.NamedEntityUpdateRequest) obj; + + if (resourceType_ != other.resourceType_) return false; + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) 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) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest 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 flyteidl.admin.Common.NamedEntityUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest 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 flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest 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(flyteidl.admin.Common.NamedEntityUpdateRequest 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; + } + /** + *
+     * Request to set the referenced launch plan state to the configured value.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityUpdateRequest) + flyteidl.admin.Common.NamedEntityUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityUpdateRequest.class, flyteidl.admin.Common.NamedEntityUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityUpdateRequest.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(); + resourceType_ = 0; + + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateRequest build() { + flyteidl.admin.Common.NamedEntityUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateRequest buildPartial() { + flyteidl.admin.Common.NamedEntityUpdateRequest result = new flyteidl.admin.Common.NamedEntityUpdateRequest(this); + result.resourceType_ = resourceType_; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.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 flyteidl.admin.Common.NamedEntityUpdateRequest) { + return mergeFrom((flyteidl.admin.Common.NamedEntityUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityUpdateRequest other) { + if (other == flyteidl.admin.Common.NamedEntityUpdateRequest.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + 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 { + flyteidl.admin.Common.NamedEntityUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Resource type of the metadata to update
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Resource type of the metadata to update
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Resource type of the metadata to update
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + *
+       * Resource type of the metadata to update
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Resource type of the metadata to update
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Identifier of the metadata to update
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.Common.NamedEntityMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.admin.Common.NamedEntityMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.Common.NamedEntityMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Metadata object to set as the new value
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @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:flyteidl.admin.NamedEntityUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateRequest) + private static final flyteidl.admin.Common.NamedEntityUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityUpdateRequest(); + } + + public static flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityUpdateRequest(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 flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityUpdateResponse} + */ + public static final class NamedEntityUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityUpdateResponse) + NamedEntityUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityUpdateResponse.newBuilder() to construct. + private NamedEntityUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityUpdateResponse( + 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; + 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 flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityUpdateResponse.class, flyteidl.admin.Common.NamedEntityUpdateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.Common.NamedEntityUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityUpdateResponse other = (flyteidl.admin.Common.NamedEntityUpdateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse 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 flyteidl.admin.Common.NamedEntityUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse 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 flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse 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(flyteidl.admin.Common.NamedEntityUpdateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityUpdateResponse) + flyteidl.admin.Common.NamedEntityUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityUpdateResponse.class, flyteidl.admin.Common.NamedEntityUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityUpdateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateResponse build() { + flyteidl.admin.Common.NamedEntityUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateResponse buildPartial() { + flyteidl.admin.Common.NamedEntityUpdateResponse result = new flyteidl.admin.Common.NamedEntityUpdateResponse(this); + 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 flyteidl.admin.Common.NamedEntityUpdateResponse) { + return mergeFrom((flyteidl.admin.Common.NamedEntityUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityUpdateResponse other) { + if (other == flyteidl.admin.Common.NamedEntityUpdateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.Common.NamedEntityUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.NamedEntityUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateResponse) + private static final flyteidl.admin.Common.NamedEntityUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityUpdateResponse(); + } + + public static flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityUpdateResponse(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 flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ObjectGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ObjectGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Represents a structure to fetch a single resource.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ObjectGetRequest} + */ + public static final class ObjectGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ObjectGetRequest) + ObjectGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ObjectGetRequest.newBuilder() to construct. + private ObjectGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ObjectGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ObjectGetRequest( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.Common.ObjectGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.ObjectGetRequest other = (flyteidl.admin.Common.ObjectGetRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ObjectGetRequest 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 flyteidl.admin.Common.ObjectGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ObjectGetRequest 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 flyteidl.admin.Common.ObjectGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ObjectGetRequest 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(flyteidl.admin.Common.ObjectGetRequest 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; + } + /** + *
+     * Represents a structure to fetch a single resource.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ObjectGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ObjectGetRequest) + flyteidl.admin.Common.ObjectGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.ObjectGetRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.ObjectGetRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.ObjectGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.ObjectGetRequest build() { + flyteidl.admin.Common.ObjectGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.ObjectGetRequest buildPartial() { + flyteidl.admin.Common.ObjectGetRequest result = new flyteidl.admin.Common.ObjectGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.Common.ObjectGetRequest) { + return mergeFrom((flyteidl.admin.Common.ObjectGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.ObjectGetRequest other) { + if (other == flyteidl.admin.Common.ObjectGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.Common.ObjectGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.ObjectGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.ObjectGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ObjectGetRequest) + private static final flyteidl.admin.Common.ObjectGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.ObjectGetRequest(); + } + + public static flyteidl.admin.Common.ObjectGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectGetRequest(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 flyteidl.admin.Common.ObjectGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ResourceListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of resources.
+   * Resources include: Task, Workflow, LaunchPlan
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ResourceListRequest} + */ + public static final class ResourceListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ResourceListRequest) + ResourceListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceListRequest.newBuilder() to construct. + private ResourceListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceListRequest() { + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceListRequest( + 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: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + 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 (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + 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 (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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 flyteidl.admin.Common.ResourceListRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.ResourceListRequest other = (flyteidl.admin.Common.ResourceListRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) 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) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ResourceListRequest 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 flyteidl.admin.Common.ResourceListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ResourceListRequest 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 flyteidl.admin.Common.ResourceListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ResourceListRequest 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(flyteidl.admin.Common.ResourceListRequest 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; + } + /** + *
+     * Represents a request structure to retrieve a list of resources.
+     * Resources include: Task, Workflow, LaunchPlan
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ResourceListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ResourceListRequest) + flyteidl.admin.Common.ResourceListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.ResourceListRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.ResourceListRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.ResourceListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.ResourceListRequest build() { + flyteidl.admin.Common.ResourceListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.ResourceListRequest buildPartial() { + flyteidl.admin.Common.ResourceListRequest result = new flyteidl.admin.Common.ResourceListRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.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 flyteidl.admin.Common.ResourceListRequest) { + return mergeFrom((flyteidl.admin.Common.ResourceListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.ResourceListRequest other) { + if (other == flyteidl.admin.Common.ResourceListRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + 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 { + flyteidl.admin.Common.ResourceListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.ResourceListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @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:flyteidl.admin.ResourceListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ResourceListRequest) + private static final flyteidl.admin.Common.ResourceListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.ResourceListRequest(); + } + + public static flyteidl.admin.Common.ResourceListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceListRequest(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 flyteidl.admin.Common.ResourceListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EmailNotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailNotification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + } + /** + * Protobuf type {@code flyteidl.admin.EmailNotification} + */ + public static final class EmailNotification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailNotification) + EmailNotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmailNotification.newBuilder() to construct. + private EmailNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EmailNotification() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EmailNotification( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(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)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); + } + + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(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 < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + 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 flyteidl.admin.Common.EmailNotification)) { + return super.equals(obj); + } + flyteidl.admin.Common.EmailNotification other = (flyteidl.admin.Common.EmailNotification) obj; + + if (!getRecipientsEmailList() + .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.EmailNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.EmailNotification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.EmailNotification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.EmailNotification 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 flyteidl.admin.Common.EmailNotification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.EmailNotification 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 flyteidl.admin.Common.EmailNotification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.EmailNotification 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(flyteidl.admin.Common.EmailNotification 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 flyteidl.admin.EmailNotification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailNotification) + flyteidl.admin.Common.EmailNotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); + } + + // Construct using flyteidl.admin.Common.EmailNotification.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(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.EmailNotification getDefaultInstanceForType() { + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.EmailNotification build() { + flyteidl.admin.Common.EmailNotification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.EmailNotification buildPartial() { + flyteidl.admin.Common.EmailNotification result = new flyteidl.admin.Common.EmailNotification(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + 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 flyteidl.admin.Common.EmailNotification) { + return mergeFrom((flyteidl.admin.Common.EmailNotification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.EmailNotification other) { + if (other == flyteidl.admin.Common.EmailNotification.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + 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 { + flyteidl.admin.Common.EmailNotification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.EmailNotification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(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:flyteidl.admin.EmailNotification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailNotification) + private static final flyteidl.admin.Common.EmailNotification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.EmailNotification(); + } + + public static flyteidl.admin.Common.EmailNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmailNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmailNotification(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 flyteidl.admin.Common.EmailNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PagerDutyNotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.PagerDutyNotification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + } + /** + * Protobuf type {@code flyteidl.admin.PagerDutyNotification} + */ + public static final class PagerDutyNotification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.PagerDutyNotification) + PagerDutyNotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use PagerDutyNotification.newBuilder() to construct. + private PagerDutyNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PagerDutyNotification() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PagerDutyNotification( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(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)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); + } + + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(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 < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + 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 flyteidl.admin.Common.PagerDutyNotification)) { + return super.equals(obj); + } + flyteidl.admin.Common.PagerDutyNotification other = (flyteidl.admin.Common.PagerDutyNotification) obj; + + if (!getRecipientsEmailList() + .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.PagerDutyNotification 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 flyteidl.admin.Common.PagerDutyNotification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.PagerDutyNotification 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 flyteidl.admin.Common.PagerDutyNotification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.PagerDutyNotification 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(flyteidl.admin.Common.PagerDutyNotification 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 flyteidl.admin.PagerDutyNotification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.PagerDutyNotification) + flyteidl.admin.Common.PagerDutyNotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); + } + + // Construct using flyteidl.admin.Common.PagerDutyNotification.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(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.PagerDutyNotification getDefaultInstanceForType() { + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.PagerDutyNotification build() { + flyteidl.admin.Common.PagerDutyNotification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.PagerDutyNotification buildPartial() { + flyteidl.admin.Common.PagerDutyNotification result = new flyteidl.admin.Common.PagerDutyNotification(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + 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 flyteidl.admin.Common.PagerDutyNotification) { + return mergeFrom((flyteidl.admin.Common.PagerDutyNotification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.PagerDutyNotification other) { + if (other == flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + 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 { + flyteidl.admin.Common.PagerDutyNotification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.PagerDutyNotification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(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:flyteidl.admin.PagerDutyNotification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.PagerDutyNotification) + private static final flyteidl.admin.Common.PagerDutyNotification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.PagerDutyNotification(); + } + + public static flyteidl.admin.Common.PagerDutyNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PagerDutyNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PagerDutyNotification(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 flyteidl.admin.Common.PagerDutyNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SlackNotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.SlackNotification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + } + /** + * Protobuf type {@code flyteidl.admin.SlackNotification} + */ + public static final class SlackNotification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.SlackNotification) + SlackNotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use SlackNotification.newBuilder() to construct. + private SlackNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SlackNotification() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SlackNotification( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(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)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); + } + + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(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 < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + 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 flyteidl.admin.Common.SlackNotification)) { + return super.equals(obj); + } + flyteidl.admin.Common.SlackNotification other = (flyteidl.admin.Common.SlackNotification) obj; + + if (!getRecipientsEmailList() + .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.SlackNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.SlackNotification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.SlackNotification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.SlackNotification 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 flyteidl.admin.Common.SlackNotification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.SlackNotification 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 flyteidl.admin.Common.SlackNotification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.SlackNotification 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(flyteidl.admin.Common.SlackNotification 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 flyteidl.admin.SlackNotification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.SlackNotification) + flyteidl.admin.Common.SlackNotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); + } + + // Construct using flyteidl.admin.Common.SlackNotification.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(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.SlackNotification getDefaultInstanceForType() { + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.SlackNotification build() { + flyteidl.admin.Common.SlackNotification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.SlackNotification buildPartial() { + flyteidl.admin.Common.SlackNotification result = new flyteidl.admin.Common.SlackNotification(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + 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 flyteidl.admin.Common.SlackNotification) { + return mergeFrom((flyteidl.admin.Common.SlackNotification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.SlackNotification other) { + if (other == flyteidl.admin.Common.SlackNotification.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + 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 { + flyteidl.admin.Common.SlackNotification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.SlackNotification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(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:flyteidl.admin.SlackNotification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SlackNotification) + private static final flyteidl.admin.Common.SlackNotification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.SlackNotification(); + } + + public static flyteidl.admin.Common.SlackNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SlackNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SlackNotification(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 flyteidl.admin.Common.SlackNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Notification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + java.util.List getPhasesList(); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + int getPhasesCount(); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + java.util.List + getPhasesValueList(); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + int getPhasesValue(int index); + + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + boolean hasEmail(); + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + flyteidl.admin.Common.EmailNotification getEmail(); + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder(); + + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + boolean hasPagerDuty(); + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + flyteidl.admin.Common.PagerDutyNotification getPagerDuty(); + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder(); + + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + boolean hasSlack(); + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + flyteidl.admin.Common.SlackNotification getSlack(); + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder(); + + public flyteidl.admin.Common.Notification.TypeCase getTypeCase(); + } + /** + *
+   * Represents a structure for notifications based on execution status.
+   * The Notification content is configured within Admin. Future iterations could
+   * expose configuring notifications with custom content.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Notification} + */ + public static final class Notification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Notification) + NotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Notification.newBuilder() to construct. + private Notification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Notification() { + phases_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Notification( + 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 8: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phases_.add(rawValue); + break; + } + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phases_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 18: { + flyteidl.admin.Common.EmailNotification.Builder subBuilder = null; + if (typeCase_ == 2) { + subBuilder = ((flyteidl.admin.Common.EmailNotification) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.admin.Common.EmailNotification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Common.EmailNotification) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 2; + break; + } + case 26: { + flyteidl.admin.Common.PagerDutyNotification.Builder subBuilder = null; + if (typeCase_ == 3) { + subBuilder = ((flyteidl.admin.Common.PagerDutyNotification) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.admin.Common.PagerDutyNotification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Common.PagerDutyNotification) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 3; + break; + } + case 34: { + flyteidl.admin.Common.SlackNotification.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = ((flyteidl.admin.Common.SlackNotification) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.admin.Common.SlackNotification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Common.SlackNotification) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + phases_ = java.util.Collections.unmodifiableList(phases_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); + } + + private int bitField0_; + private int typeCase_ = 0; + private java.lang.Object type_; + public enum TypeCase + implements com.google.protobuf.Internal.EnumLite { + EMAIL(2), + PAGER_DUTY(3), + SLACK(4), + TYPE_NOT_SET(0); + private final int value; + private TypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 2: return EMAIL; + case 3: return PAGER_DUTY; + case 4: return SLACK; + case 0: return TYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public static final int PHASES_FIELD_NUMBER = 1; + private java.util.List phases_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase> phases_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>() { + public flyteidl.core.Execution.WorkflowExecution.Phase convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(from); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + }; + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List getPhasesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesCount() { + return phases_.size(); + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { + return phases_converter_.convert(phases_.get(index)); + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List + getPhasesValueList() { + return phases_; + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesValue(int index) { + return phases_.get(index); + } + private int phasesMemoizedSerializedSize; + + public static final int EMAIL_FIELD_NUMBER = 2; + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public boolean hasEmail() { + return typeCase_ == 2; + } + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotification getEmail() { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + + public static final int PAGER_DUTY_FIELD_NUMBER = 3; + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public boolean hasPagerDuty() { + return typeCase_ == 3; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + + public static final int SLACK_FIELD_NUMBER = 4; + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public boolean hasSlack() { + return typeCase_ == 4; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotification getSlack() { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getPhasesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(phasesMemoizedSerializedSize); + } + for (int i = 0; i < phases_.size(); i++) { + output.writeEnumNoTag(phases_.get(i)); + } + if (typeCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.Common.EmailNotification) type_); + } + if (typeCase_ == 3) { + output.writeMessage(3, (flyteidl.admin.Common.PagerDutyNotification) type_); + } + if (typeCase_ == 4) { + output.writeMessage(4, (flyteidl.admin.Common.SlackNotification) type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < phases_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(phases_.get(i)); + } + size += dataSize; + if (!getPhasesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }phasesMemoizedSerializedSize = dataSize; + } + if (typeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.Common.EmailNotification) type_); + } + if (typeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.admin.Common.PagerDutyNotification) type_); + } + if (typeCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.admin.Common.SlackNotification) type_); + } + 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 flyteidl.admin.Common.Notification)) { + return super.equals(obj); + } + flyteidl.admin.Common.Notification other = (flyteidl.admin.Common.Notification) obj; + + if (!phases_.equals(other.phases_)) return false; + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 2: + if (!getEmail() + .equals(other.getEmail())) return false; + break; + case 3: + if (!getPagerDuty() + .equals(other.getPagerDuty())) return false; + break; + case 4: + if (!getSlack() + .equals(other.getSlack())) 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(); + if (getPhasesCount() > 0) { + hash = (37 * hash) + PHASES_FIELD_NUMBER; + hash = (53 * hash) + phases_.hashCode(); + } + switch (typeCase_) { + case 2: + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + break; + case 3: + hash = (37 * hash) + PAGER_DUTY_FIELD_NUMBER; + hash = (53 * hash) + getPagerDuty().hashCode(); + break; + case 4: + hash = (37 * hash) + SLACK_FIELD_NUMBER; + hash = (53 * hash) + getSlack().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Notification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Notification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Notification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Notification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Notification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Notification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Notification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Notification 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 flyteidl.admin.Common.Notification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Notification 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 flyteidl.admin.Common.Notification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Notification 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(flyteidl.admin.Common.Notification 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; + } + /** + *
+     * Represents a structure for notifications based on execution status.
+     * The Notification content is configured within Admin. Future iterations could
+     * expose configuring notifications with custom content.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Notification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Notification) + flyteidl.admin.Common.NotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); + } + + // Construct using flyteidl.admin.Common.Notification.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(); + phases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.Notification getDefaultInstanceForType() { + return flyteidl.admin.Common.Notification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.Notification build() { + flyteidl.admin.Common.Notification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.Notification buildPartial() { + flyteidl.admin.Common.Notification result = new flyteidl.admin.Common.Notification(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) != 0)) { + phases_ = java.util.Collections.unmodifiableList(phases_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.phases_ = phases_; + if (typeCase_ == 2) { + if (emailBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = emailBuilder_.build(); + } + } + if (typeCase_ == 3) { + if (pagerDutyBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = pagerDutyBuilder_.build(); + } + } + if (typeCase_ == 4) { + if (slackBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = slackBuilder_.build(); + } + } + result.bitField0_ = to_bitField0_; + result.typeCase_ = typeCase_; + 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 flyteidl.admin.Common.Notification) { + return mergeFrom((flyteidl.admin.Common.Notification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Notification other) { + if (other == flyteidl.admin.Common.Notification.getDefaultInstance()) return this; + if (!other.phases_.isEmpty()) { + if (phases_.isEmpty()) { + phases_ = other.phases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePhasesIsMutable(); + phases_.addAll(other.phases_); + } + onChanged(); + } + switch (other.getTypeCase()) { + case EMAIL: { + mergeEmail(other.getEmail()); + break; + } + case PAGER_DUTY: { + mergePagerDuty(other.getPagerDuty()); + break; + } + case SLACK: { + mergeSlack(other.getSlack()); + break; + } + case TYPE_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 { + flyteidl.admin.Common.Notification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Notification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int typeCase_ = 0; + private java.lang.Object type_; + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.util.List phases_ = + java.util.Collections.emptyList(); + private void ensurePhasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + phases_ = new java.util.ArrayList(phases_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List getPhasesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesCount() { + return phases_.size(); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { + return phases_converter_.convert(phases_.get(index)); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder setPhases( + int index, flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhasesIsMutable(); + phases_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addPhases(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhasesIsMutable(); + phases_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addAllPhases( + java.lang.Iterable values) { + ensurePhasesIsMutable(); + for (flyteidl.core.Execution.WorkflowExecution.Phase value : values) { + phases_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder clearPhases() { + phases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List + getPhasesValueList() { + return java.util.Collections.unmodifiableList(phases_); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesValue(int index) { + return phases_.get(index); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder setPhasesValue( + int index, int value) { + ensurePhasesIsMutable(); + phases_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addPhasesValue(int value) { + ensurePhasesIsMutable(); + phases_.add(value); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addAllPhasesValue( + java.lang.Iterable values) { + ensurePhasesIsMutable(); + for (int value : values) { + phases_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> emailBuilder_; + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public boolean hasEmail() { + return typeCase_ == 2; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotification getEmail() { + if (emailBuilder_ == null) { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return emailBuilder_.getMessage(); + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder setEmail(flyteidl.admin.Common.EmailNotification value) { + if (emailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + emailBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder setEmail( + flyteidl.admin.Common.EmailNotification.Builder builderForValue) { + if (emailBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + emailBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder mergeEmail(flyteidl.admin.Common.EmailNotification value) { + if (emailBuilder_ == null) { + if (typeCase_ == 2 && + type_ != flyteidl.admin.Common.EmailNotification.getDefaultInstance()) { + type_ = flyteidl.admin.Common.EmailNotification.newBuilder((flyteidl.admin.Common.EmailNotification) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + emailBuilder_.mergeFrom(value); + } + emailBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder clearEmail() { + if (emailBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + emailBuilder_.clear(); + } + return this; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotification.Builder getEmailBuilder() { + return getEmailFieldBuilder().getBuilder(); + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { + if ((typeCase_ == 2) && (emailBuilder_ != null)) { + return emailBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> + getEmailFieldBuilder() { + if (emailBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + emailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder>( + (flyteidl.admin.Common.EmailNotification) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged();; + return emailBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> pagerDutyBuilder_; + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public boolean hasPagerDuty() { + return typeCase_ == 3; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { + if (pagerDutyBuilder_ == null) { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } else { + if (typeCase_ == 3) { + return pagerDutyBuilder_.getMessage(); + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder setPagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { + if (pagerDutyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + pagerDutyBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder setPagerDuty( + flyteidl.admin.Common.PagerDutyNotification.Builder builderForValue) { + if (pagerDutyBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + pagerDutyBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 3; + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder mergePagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { + if (pagerDutyBuilder_ == null) { + if (typeCase_ == 3 && + type_ != flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) { + type_ = flyteidl.admin.Common.PagerDutyNotification.newBuilder((flyteidl.admin.Common.PagerDutyNotification) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 3) { + pagerDutyBuilder_.mergeFrom(value); + } + pagerDutyBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder clearPagerDuty() { + if (pagerDutyBuilder_ == null) { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + } + pagerDutyBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotification.Builder getPagerDutyBuilder() { + return getPagerDutyFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { + if ((typeCase_ == 3) && (pagerDutyBuilder_ != null)) { + return pagerDutyBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> + getPagerDutyFieldBuilder() { + if (pagerDutyBuilder_ == null) { + if (!(typeCase_ == 3)) { + type_ = flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + pagerDutyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder>( + (flyteidl.admin.Common.PagerDutyNotification) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 3; + onChanged();; + return pagerDutyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> slackBuilder_; + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public boolean hasSlack() { + return typeCase_ == 4; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotification getSlack() { + if (slackBuilder_ == null) { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } else { + if (typeCase_ == 4) { + return slackBuilder_.getMessage(); + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder setSlack(flyteidl.admin.Common.SlackNotification value) { + if (slackBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + slackBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder setSlack( + flyteidl.admin.Common.SlackNotification.Builder builderForValue) { + if (slackBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + slackBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 4; + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder mergeSlack(flyteidl.admin.Common.SlackNotification value) { + if (slackBuilder_ == null) { + if (typeCase_ == 4 && + type_ != flyteidl.admin.Common.SlackNotification.getDefaultInstance()) { + type_ = flyteidl.admin.Common.SlackNotification.newBuilder((flyteidl.admin.Common.SlackNotification) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 4) { + slackBuilder_.mergeFrom(value); + } + slackBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder clearSlack() { + if (slackBuilder_ == null) { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + } + slackBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotification.Builder getSlackBuilder() { + return getSlackFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { + if ((typeCase_ == 4) && (slackBuilder_ != null)) { + return slackBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> + getSlackFieldBuilder() { + if (slackBuilder_ == null) { + if (!(typeCase_ == 4)) { + type_ = flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + slackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder>( + (flyteidl.admin.Common.SlackNotification) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 4; + onChanged();; + return slackBuilder_; + } + @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:flyteidl.admin.Notification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Notification) + private static final flyteidl.admin.Common.Notification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Notification(); + } + + public static flyteidl.admin.Common.Notification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Notification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Notification(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 flyteidl.admin.Common.Notification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UrlBlobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.UrlBlob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + java.lang.String getUrl(); + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + com.google.protobuf.ByteString + getUrlBytes(); + + /** + *
+     * Represents the size of the file accessible at the above url.
+     * 
+ * + * int64 bytes = 2; + */ + long getBytes(); + } + /** + *
+   * Represents a string url and associated metadata used throughout the platform.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.UrlBlob} + */ + public static final class UrlBlob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.UrlBlob) + UrlBlobOrBuilder { + private static final long serialVersionUID = 0L; + // Use UrlBlob.newBuilder() to construct. + private UrlBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UrlBlob() { + url_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UrlBlob( + 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(); + + url_ = s; + break; + } + case 16: { + + bytes_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); + } + + public static final int URL_FIELD_NUMBER = 1; + private volatile java.lang.Object url_; + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + 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(); + url_ = s; + return s; + } + } + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BYTES_FIELD_NUMBER = 2; + private long bytes_; + /** + *
+     * Represents the size of the file accessible at the above url.
+     * 
+ * + * int64 bytes = 2; + */ + public long getBytes() { + return bytes_; + } + + 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 (!getUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); + } + if (bytes_ != 0L) { + output.writeInt64(2, bytes_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); + } + if (bytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, bytes_); + } + 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 flyteidl.admin.Common.UrlBlob)) { + return super.equals(obj); + } + flyteidl.admin.Common.UrlBlob other = (flyteidl.admin.Common.UrlBlob) obj; + + if (!getUrl() + .equals(other.getUrl())) return false; + if (getBytes() + != other.getBytes()) 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) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBytes()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.UrlBlob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.UrlBlob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.UrlBlob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.UrlBlob 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 flyteidl.admin.Common.UrlBlob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.UrlBlob 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 flyteidl.admin.Common.UrlBlob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.UrlBlob 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(flyteidl.admin.Common.UrlBlob 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; + } + /** + *
+     * Represents a string url and associated metadata used throughout the platform.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.UrlBlob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.UrlBlob) + flyteidl.admin.Common.UrlBlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); + } + + // Construct using flyteidl.admin.Common.UrlBlob.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(); + url_ = ""; + + bytes_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.UrlBlob getDefaultInstanceForType() { + return flyteidl.admin.Common.UrlBlob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.UrlBlob build() { + flyteidl.admin.Common.UrlBlob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.UrlBlob buildPartial() { + flyteidl.admin.Common.UrlBlob result = new flyteidl.admin.Common.UrlBlob(this); + result.url_ = url_; + result.bytes_ = bytes_; + 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 flyteidl.admin.Common.UrlBlob) { + return mergeFrom((flyteidl.admin.Common.UrlBlob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.UrlBlob other) { + if (other == flyteidl.admin.Common.UrlBlob.getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + onChanged(); + } + if (other.getBytes() != 0L) { + setBytes(other.getBytes()); + } + 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 { + flyteidl.admin.Common.UrlBlob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.UrlBlob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object url_ = ""; + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + url_ = value; + onChanged(); + return this; + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public Builder clearUrl() { + + url_ = getDefaultInstance().getUrl(); + onChanged(); + return this; + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + url_ = value; + onChanged(); + return this; + } + + private long bytes_ ; + /** + *
+       * Represents the size of the file accessible at the above url.
+       * 
+ * + * int64 bytes = 2; + */ + public long getBytes() { + return bytes_; + } + /** + *
+       * Represents the size of the file accessible at the above url.
+       * 
+ * + * int64 bytes = 2; + */ + public Builder setBytes(long value) { + + bytes_ = value; + onChanged(); + return this; + } + /** + *
+       * Represents the size of the file accessible at the above url.
+       * 
+ * + * int64 bytes = 2; + */ + public Builder clearBytes() { + + bytes_ = 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:flyteidl.admin.UrlBlob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.UrlBlob) + private static final flyteidl.admin.Common.UrlBlob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.UrlBlob(); + } + + public static flyteidl.admin.Common.UrlBlob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UrlBlob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UrlBlob(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 flyteidl.admin.Common.UrlBlob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LabelsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Labels) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + int getValuesCount(); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + boolean containsValues( + java.lang.String key); + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getValues(); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + java.util.Map + getValuesMap(); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrThrow( + java.lang.String key); + } + /** + *
+   * Label values to be applied to an execution resource.
+   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+   * to specify how to merge labels defined at registration and execution time.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Labels} + */ + public static final class Labels extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Labels) + LabelsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Labels.newBuilder() to construct. + private Labels(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Labels() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Labels( + 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)) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + values__ = input.readMessage( + ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + values_.getMutableMap().put( + values__.getKey(), values__.getValue()); + 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 flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private static final class ValuesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetValues(), + ValuesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetValues().getMap().entrySet()) { + com.google.protobuf.MapEntry + values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values__); + } + 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 flyteidl.admin.Common.Labels)) { + return super.equals(obj); + } + flyteidl.admin.Common.Labels other = (flyteidl.admin.Common.Labels) obj; + + if (!internalGetValues().equals( + other.internalGetValues())) 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 (!internalGetValues().getMap().isEmpty()) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + internalGetValues().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Labels parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Labels parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Labels parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Labels parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Labels parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Labels parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Labels parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Labels 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 flyteidl.admin.Common.Labels parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Labels 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 flyteidl.admin.Common.Labels parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Labels 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(flyteidl.admin.Common.Labels 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; + } + /** + *
+     * Label values to be applied to an execution resource.
+     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+     * to specify how to merge labels defined at registration and execution time.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Labels} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Labels) + flyteidl.admin.Common.LabelsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); + } + + // Construct using flyteidl.admin.Common.Labels.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(); + internalGetMutableValues().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.Labels getDefaultInstanceForType() { + return flyteidl.admin.Common.Labels.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.Labels build() { + flyteidl.admin.Common.Labels result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.Labels buildPartial() { + flyteidl.admin.Common.Labels result = new flyteidl.admin.Common.Labels(this); + int from_bitField0_ = bitField0_; + result.values_ = internalGetValues(); + result.values_.makeImmutable(); + 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 flyteidl.admin.Common.Labels) { + return mergeFrom((flyteidl.admin.Common.Labels)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Labels other) { + if (other == flyteidl.admin.Common.Labels.getDefaultInstance()) return this; + internalGetMutableValues().mergeFrom( + other.internalGetValues()); + 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 { + flyteidl.admin.Common.Labels parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Labels) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + private com.google.protobuf.MapField + internalGetMutableValues() { + onChanged();; + if (values_ == null) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + if (!values_.isMutable()) { + values_ = values_.copy(); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearValues() { + internalGetMutableValues().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder removeValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableValues() { + return internalGetMutableValues().getMutableMap(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + public Builder putValues( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder putAllValues( + java.util.Map values) { + internalGetMutableValues().getMutableMap() + .putAll(values); + 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:flyteidl.admin.Labels) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Labels) + private static final flyteidl.admin.Common.Labels DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Labels(); + } + + public static flyteidl.admin.Common.Labels getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Labels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Labels(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 flyteidl.admin.Common.Labels getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AnnotationsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Annotations) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + int getValuesCount(); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + boolean containsValues( + java.lang.String key); + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getValues(); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + java.util.Map + getValuesMap(); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrThrow( + java.lang.String key); + } + /** + *
+   * Annotation values to be applied to an execution resource.
+   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+   * to specify how to merge annotations defined at registration and execution time.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Annotations} + */ + public static final class Annotations extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Annotations) + AnnotationsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Annotations.newBuilder() to construct. + private Annotations(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Annotations() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Annotations( + 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)) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + values__ = input.readMessage( + ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + values_.getMutableMap().put( + values__.getKey(), values__.getValue()); + 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 flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private static final class ValuesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetValues(), + ValuesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetValues().getMap().entrySet()) { + com.google.protobuf.MapEntry + values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values__); + } + 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 flyteidl.admin.Common.Annotations)) { + return super.equals(obj); + } + flyteidl.admin.Common.Annotations other = (flyteidl.admin.Common.Annotations) obj; + + if (!internalGetValues().equals( + other.internalGetValues())) 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 (!internalGetValues().getMap().isEmpty()) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + internalGetValues().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Annotations parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Annotations parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Annotations parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Annotations parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Annotations parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Annotations parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Annotations parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Annotations 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 flyteidl.admin.Common.Annotations parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Annotations 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 flyteidl.admin.Common.Annotations parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Annotations 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(flyteidl.admin.Common.Annotations 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; + } + /** + *
+     * Annotation values to be applied to an execution resource.
+     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+     * to specify how to merge annotations defined at registration and execution time.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Annotations} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Annotations) + flyteidl.admin.Common.AnnotationsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); + } + + // Construct using flyteidl.admin.Common.Annotations.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(); + internalGetMutableValues().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.Annotations getDefaultInstanceForType() { + return flyteidl.admin.Common.Annotations.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.Annotations build() { + flyteidl.admin.Common.Annotations result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.Annotations buildPartial() { + flyteidl.admin.Common.Annotations result = new flyteidl.admin.Common.Annotations(this); + int from_bitField0_ = bitField0_; + result.values_ = internalGetValues(); + result.values_.makeImmutable(); + 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 flyteidl.admin.Common.Annotations) { + return mergeFrom((flyteidl.admin.Common.Annotations)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Annotations other) { + if (other == flyteidl.admin.Common.Annotations.getDefaultInstance()) return this; + internalGetMutableValues().mergeFrom( + other.internalGetValues()); + 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 { + flyteidl.admin.Common.Annotations parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Annotations) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + private com.google.protobuf.MapField + internalGetMutableValues() { + onChanged();; + if (values_ == null) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + if (!values_.isMutable()) { + values_ = values_.copy(); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearValues() { + internalGetMutableValues().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder removeValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableValues() { + return internalGetMutableValues().getMutableMap(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + public Builder putValues( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder putAllValues( + java.util.Map values) { + internalGetMutableValues().getMutableMap() + .putAll(values); + 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:flyteidl.admin.Annotations) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Annotations) + private static final flyteidl.admin.Common.Annotations DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Annotations(); + } + + public static flyteidl.admin.Common.Annotations getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Annotations parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Annotations(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 flyteidl.admin.Common.Annotations getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AuthRoleOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.AuthRole) + com.google.protobuf.MessageOrBuilder { + + /** + * string assumable_iam_role = 1; + */ + java.lang.String getAssumableIamRole(); + /** + * string assumable_iam_role = 1; + */ + com.google.protobuf.ByteString + getAssumableIamRoleBytes(); + + /** + * string kubernetes_service_account = 2; + */ + java.lang.String getKubernetesServiceAccount(); + /** + * string kubernetes_service_account = 2; + */ + com.google.protobuf.ByteString + getKubernetesServiceAccountBytes(); + + public flyteidl.admin.Common.AuthRole.MethodCase getMethodCase(); + } + /** + *
+   * Defines permissions associated with executions.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.AuthRole} + */ + public static final class AuthRole extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.AuthRole) + AuthRoleOrBuilder { + private static final long serialVersionUID = 0L; + // Use AuthRole.newBuilder() to construct. + private AuthRole(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRole() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRole( + 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(); + methodCase_ = 1; + method_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + methodCase_ = 2; + method_ = 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 flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.AuthRole.class, flyteidl.admin.Common.AuthRole.Builder.class); + } + + private int methodCase_ = 0; + private java.lang.Object method_; + public enum MethodCase + implements com.google.protobuf.Internal.EnumLite { + ASSUMABLE_IAM_ROLE(1), + KUBERNETES_SERVICE_ACCOUNT(2), + METHOD_NOT_SET(0); + private final int value; + private MethodCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MethodCase valueOf(int value) { + return forNumber(value); + } + + public static MethodCase forNumber(int value) { + switch (value) { + case 1: return ASSUMABLE_IAM_ROLE; + case 2: return KUBERNETES_SERVICE_ACCOUNT; + case 0: return METHOD_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public MethodCase + getMethodCase() { + return MethodCase.forNumber( + methodCase_); + } + + public static final int ASSUMABLE_IAM_ROLE_FIELD_NUMBER = 1; + /** + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + 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(); + if (methodCase_ == 1) { + method_ = s; + } + return s; + } + } + /** + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 1) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + /** + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + 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(); + if (methodCase_ == 2) { + method_ = s; + } + return s; + } + } + /** + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 2) { + method_ = 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 (methodCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); + } + if (methodCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (methodCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); + } + if (methodCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); + } + 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 flyteidl.admin.Common.AuthRole)) { + return super.equals(obj); + } + flyteidl.admin.Common.AuthRole other = (flyteidl.admin.Common.AuthRole) obj; + + if (!getMethodCase().equals(other.getMethodCase())) return false; + switch (methodCase_) { + case 1: + if (!getAssumableIamRole() + .equals(other.getAssumableIamRole())) return false; + break; + case 2: + if (!getKubernetesServiceAccount() + .equals(other.getKubernetesServiceAccount())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (methodCase_) { + case 1: + hash = (37 * hash) + ASSUMABLE_IAM_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAssumableIamRole().hashCode(); + break; + case 2: + hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.AuthRole parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.AuthRole parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.AuthRole parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.AuthRole 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 flyteidl.admin.Common.AuthRole parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.AuthRole 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 flyteidl.admin.Common.AuthRole parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.AuthRole 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(flyteidl.admin.Common.AuthRole 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; + } + /** + *
+     * Defines permissions associated with executions.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.AuthRole} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.AuthRole) + flyteidl.admin.Common.AuthRoleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.AuthRole.class, flyteidl.admin.Common.AuthRole.Builder.class); + } + + // Construct using flyteidl.admin.Common.AuthRole.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(); + methodCase_ = 0; + method_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.AuthRole getDefaultInstanceForType() { + return flyteidl.admin.Common.AuthRole.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.AuthRole build() { + flyteidl.admin.Common.AuthRole result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.AuthRole buildPartial() { + flyteidl.admin.Common.AuthRole result = new flyteidl.admin.Common.AuthRole(this); + if (methodCase_ == 1) { + result.method_ = method_; + } + if (methodCase_ == 2) { + result.method_ = method_; + } + result.methodCase_ = methodCase_; + 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 flyteidl.admin.Common.AuthRole) { + return mergeFrom((flyteidl.admin.Common.AuthRole)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.AuthRole other) { + if (other == flyteidl.admin.Common.AuthRole.getDefaultInstance()) return this; + switch (other.getMethodCase()) { + case ASSUMABLE_IAM_ROLE: { + methodCase_ = 1; + method_ = other.method_; + onChanged(); + break; + } + case KUBERNETES_SERVICE_ACCOUNT: { + methodCase_ = 2; + method_ = other.method_; + onChanged(); + break; + } + case METHOD_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 { + flyteidl.admin.Common.AuthRole parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.AuthRole) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int methodCase_ = 0; + private java.lang.Object method_; + public MethodCase + getMethodCase() { + return MethodCase.forNumber( + methodCase_); + } + + public Builder clearMethod() { + methodCase_ = 0; + method_ = null; + onChanged(); + return this; + } + + + /** + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (methodCase_ == 1) { + method_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 1) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + methodCase_ = 1; + method_ = value; + onChanged(); + return this; + } + /** + * string assumable_iam_role = 1; + */ + public Builder clearAssumableIamRole() { + if (methodCase_ == 1) { + methodCase_ = 0; + method_ = null; + onChanged(); + } + return this; + } + /** + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + methodCase_ = 1; + method_ = value; + onChanged(); + return this; + } + + /** + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (methodCase_ == 2) { + method_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 2) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + methodCase_ = 2; + method_ = value; + onChanged(); + return this; + } + /** + * string kubernetes_service_account = 2; + */ + public Builder clearKubernetesServiceAccount() { + if (methodCase_ == 2) { + methodCase_ = 0; + method_ = null; + onChanged(); + } + return this; + } + /** + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + methodCase_ = 2; + method_ = 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:flyteidl.admin.AuthRole) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.AuthRole) + private static final flyteidl.admin.Common.AuthRole DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.AuthRole(); + } + + public static flyteidl.admin.Common.AuthRole getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRole parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRole(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 flyteidl.admin.Common.AuthRole getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntity_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Sort_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Sort_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ResourceListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EmailNotification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_SlackNotification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Notification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Notification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_UrlBlob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Labels_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Labels_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Annotations_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Annotations_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_AuthRole_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_AuthRole_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\033flyteidl/admin/common.proto\022\016flyteidl." + + "admin\032\035flyteidl/core/execution.proto\032\036fl" + + "yteidl/core/identifier.proto\"F\n\025NamedEnt" + + "ityIdentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain" + + "\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"[\n\023NamedEntityMetad" + + "ata\022\023\n\013description\030\001 \001(\t\022/\n\005state\030\002 \001(\0162" + + " .flyteidl.admin.NamedEntityState\"\253\001\n\013Na" + + "medEntity\0222\n\rresource_type\030\001 \001(\0162\033.flyte" + + "idl.core.ResourceType\0221\n\002id\030\002 \001(\0132%.flyt" + + "eidl.admin.NamedEntityIdentifier\0225\n\010meta" + + "data\030\003 \001(\0132#.flyteidl.admin.NamedEntityM" + + "etadata\"r\n\004Sort\022\013\n\003key\030\001 \001(\t\0221\n\tdirectio" + + "n\030\002 \001(\0162\036.flyteidl.admin.Sort.Direction\"" + + "*\n\tDirection\022\016\n\nDESCENDING\020\000\022\r\n\tASCENDIN" + + "G\020\001\"\231\001\n NamedEntityIdentifierListRequest" + + "\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\r\n\005lim" + + "it\030\003 \001(\r\022\r\n\005token\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\013" + + "2\024.flyteidl.admin.Sort\022\017\n\007filters\030\006 \001(\t\"" + + "\303\001\n\026NamedEntityListRequest\0222\n\rresource_t" + + "ype\030\001 \001(\0162\033.flyteidl.core.ResourceType\022\017" + + "\n\007project\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\r\n\005limit" + + "\030\004 \001(\r\022\r\n\005token\030\005 \001(\t\022%\n\007sort_by\030\006 \001(\0132\024" + + ".flyteidl.admin.Sort\022\017\n\007filters\030\007 \001(\t\"c\n" + + "\031NamedEntityIdentifierList\0227\n\010entities\030\001" + + " \003(\0132%.flyteidl.admin.NamedEntityIdentif" + + "ier\022\r\n\005token\030\002 \001(\t\"O\n\017NamedEntityList\022-\n" + + "\010entities\030\001 \003(\0132\033.flyteidl.admin.NamedEn" + + "tity\022\r\n\005token\030\002 \001(\t\"~\n\025NamedEntityGetReq" + + "uest\0222\n\rresource_type\030\001 \001(\0162\033.flyteidl.c" + + "ore.ResourceType\0221\n\002id\030\002 \001(\0132%.flyteidl." + + "admin.NamedEntityIdentifier\"\270\001\n\030NamedEnt" + + "ityUpdateRequest\0222\n\rresource_type\030\001 \001(\0162" + + "\033.flyteidl.core.ResourceType\0221\n\002id\030\002 \001(\013" + + "2%.flyteidl.admin.NamedEntityIdentifier\022" + + "5\n\010metadata\030\003 \001(\0132#.flyteidl.admin.Named" + + "EntityMetadata\"\033\n\031NamedEntityUpdateRespo" + + "nse\"9\n\020ObjectGetRequest\022%\n\002id\030\001 \001(\0132\031.fl" + + "yteidl.core.Identifier\"\236\001\n\023ResourceListR" + + "equest\0221\n\002id\030\001 \001(\0132%.flyteidl.admin.Name" + + "dEntityIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005toke" + + "n\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(" + + "\0132\024.flyteidl.admin.Sort\"-\n\021EmailNotifica" + + "tion\022\030\n\020recipients_email\030\001 \003(\t\"1\n\025PagerD" + + "utyNotification\022\030\n\020recipients_email\030\001 \003(" + + "\t\"-\n\021SlackNotification\022\030\n\020recipients_ema" + + "il\030\001 \003(\t\"\363\001\n\014Notification\0226\n\006phases\030\001 \003(" + + "\0162&.flyteidl.core.WorkflowExecution.Phas" + + "e\0222\n\005email\030\002 \001(\0132!.flyteidl.admin.EmailN" + + "otificationH\000\022;\n\npager_duty\030\003 \001(\0132%.flyt" + + "eidl.admin.PagerDutyNotificationH\000\0222\n\005sl" + + "ack\030\004 \001(\0132!.flyteidl.admin.SlackNotifica" + + "tionH\000B\006\n\004type\"%\n\007UrlBlob\022\013\n\003url\030\001 \001(\t\022\r" + + "\n\005bytes\030\002 \001(\003\"k\n\006Labels\0222\n\006values\030\001 \003(\0132" + + "\".flyteidl.admin.Labels.ValuesEntry\032-\n\013V" + + "aluesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"u\n\013Annotations\0227\n\006values\030\001 \003(\0132\'.flyt" + + "eidl.admin.Annotations.ValuesEntry\032-\n\013Va" + + "luesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"X\n\010AuthRole\022\034\n\022assumable_iam_role\030\001 \001(" + + "\tH\000\022$\n\032kubernetes_service_account\030\002 \001(\tH" + + "\000B\010\n\006method*\\\n\020NamedEntityState\022\027\n\023NAMED" + + "_ENTITY_ACTIVE\020\000\022\031\n\025NAMED_ENTITY_ARCHIVE" + + "D\020\001\022\024\n\020SYSTEM_GENERATED\020\002B3Z1github.com/" + + "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + + "proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor, + new java.lang.String[] { "Project", "Domain", "Name", }); + internal_static_flyteidl_admin_NamedEntityMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityMetadata_descriptor, + new java.lang.String[] { "Description", "State", }); + internal_static_flyteidl_admin_NamedEntity_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntity_descriptor, + new java.lang.String[] { "ResourceType", "Id", "Metadata", }); + internal_static_flyteidl_admin_Sort_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_Sort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Sort_descriptor, + new java.lang.String[] { "Key", "Direction", }); + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Limit", "Token", "SortBy", "Filters", }); + internal_static_flyteidl_admin_NamedEntityListRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityListRequest_descriptor, + new java.lang.String[] { "ResourceType", "Project", "Domain", "Limit", "Token", "SortBy", "Filters", }); + internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor, + new java.lang.String[] { "Entities", "Token", }); + internal_static_flyteidl_admin_NamedEntityList_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityList_descriptor, + new java.lang.String[] { "Entities", "Token", }); + internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor, + new java.lang.String[] { "ResourceType", "Id", }); + internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor, + new java.lang.String[] { "ResourceType", "Id", "Metadata", }); + internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ObjectGetRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ObjectGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_ResourceListRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ResourceListRequest_descriptor, + new java.lang.String[] { "Id", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_EmailNotification_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EmailNotification_descriptor, + new java.lang.String[] { "RecipientsEmail", }); + internal_static_flyteidl_admin_PagerDutyNotification_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_PagerDutyNotification_descriptor, + new java.lang.String[] { "RecipientsEmail", }); + internal_static_flyteidl_admin_SlackNotification_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_SlackNotification_descriptor, + new java.lang.String[] { "RecipientsEmail", }); + internal_static_flyteidl_admin_Notification_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_flyteidl_admin_Notification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Notification_descriptor, + new java.lang.String[] { "Phases", "Email", "PagerDuty", "Slack", "Type", }); + internal_static_flyteidl_admin_UrlBlob_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_UrlBlob_descriptor, + new java.lang.String[] { "Url", "Bytes", }); + internal_static_flyteidl_admin_Labels_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_flyteidl_admin_Labels_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Labels_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor = + internal_static_flyteidl_admin_Labels_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_admin_Annotations_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_flyteidl_admin_Annotations_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Annotations_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor = + internal_static_flyteidl_admin_Annotations_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_admin_AuthRole_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_flyteidl_admin_AuthRole_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_AuthRole_descriptor, + new java.lang.String[] { "AssumableIamRole", "KubernetesServiceAccount", "Method", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/Event.java b/gen/pb-java/flyteidl/admin/Event.java new file mode 100644 index 000000000..0d1084c72 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/Event.java @@ -0,0 +1,5194 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/event.proto + +package flyteidl.admin; + +public final class Event { + private Event() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface EventErrorAlreadyInTerminalStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventErrorAlreadyInTerminalState) + com.google.protobuf.MessageOrBuilder { + + /** + * string current_phase = 1; + */ + java.lang.String getCurrentPhase(); + /** + * string current_phase = 1; + */ + com.google.protobuf.ByteString + getCurrentPhaseBytes(); + } + /** + * Protobuf type {@code flyteidl.admin.EventErrorAlreadyInTerminalState} + */ + public static final class EventErrorAlreadyInTerminalState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) + EventErrorAlreadyInTerminalStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventErrorAlreadyInTerminalState.newBuilder() to construct. + private EventErrorAlreadyInTerminalState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventErrorAlreadyInTerminalState() { + currentPhase_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventErrorAlreadyInTerminalState( + 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(); + + currentPhase_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); + } + + public static final int CURRENT_PHASE_FIELD_NUMBER = 1; + private volatile java.lang.Object currentPhase_; + /** + * string current_phase = 1; + */ + public java.lang.String getCurrentPhase() { + java.lang.Object ref = currentPhase_; + 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(); + currentPhase_ = s; + return s; + } + } + /** + * string current_phase = 1; + */ + public com.google.protobuf.ByteString + getCurrentPhaseBytes() { + java.lang.Object ref = currentPhase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentPhase_ = 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 (!getCurrentPhaseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentPhase_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCurrentPhaseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currentPhase_); + } + 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState)) { + return super.equals(obj); + } + flyteidl.admin.Event.EventErrorAlreadyInTerminalState other = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) obj; + + if (!getCurrentPhase() + .equals(other.getCurrentPhase())) 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) + CURRENT_PHASE_FIELD_NUMBER; + hash = (53 * hash) + getCurrentPhase().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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(flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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 flyteidl.admin.EventErrorAlreadyInTerminalState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) + flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); + } + + // Construct using flyteidl.admin.Event.EventErrorAlreadyInTerminalState.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(); + currentPhase_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState build() { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState buildPartial() { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(this); + result.currentPhase_ = currentPhase_; + 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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState) { + return mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.EventErrorAlreadyInTerminalState other) { + if (other == flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) return this; + if (!other.getCurrentPhase().isEmpty()) { + currentPhase_ = other.currentPhase_; + 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 { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object currentPhase_ = ""; + /** + * string current_phase = 1; + */ + public java.lang.String getCurrentPhase() { + java.lang.Object ref = currentPhase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentPhase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string current_phase = 1; + */ + public com.google.protobuf.ByteString + getCurrentPhaseBytes() { + java.lang.Object ref = currentPhase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentPhase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string current_phase = 1; + */ + public Builder setCurrentPhase( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentPhase_ = value; + onChanged(); + return this; + } + /** + * string current_phase = 1; + */ + public Builder clearCurrentPhase() { + + currentPhase_ = getDefaultInstance().getCurrentPhase(); + onChanged(); + return this; + } + /** + * string current_phase = 1; + */ + public Builder setCurrentPhaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentPhase_ = 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:flyteidl.admin.EventErrorAlreadyInTerminalState) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorAlreadyInTerminalState) + private static final flyteidl.admin.Event.EventErrorAlreadyInTerminalState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(); + } + + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventErrorAlreadyInTerminalState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventErrorAlreadyInTerminalState(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 flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EventFailureReasonOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventFailureReason) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + boolean hasAlreadyInTerminalState(); + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState(); + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder(); + + public flyteidl.admin.Event.EventFailureReason.ReasonCase getReasonCase(); + } + /** + * Protobuf type {@code flyteidl.admin.EventFailureReason} + */ + public static final class EventFailureReason extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EventFailureReason) + EventFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventFailureReason.newBuilder() to construct. + private EventFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventFailureReason() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventFailureReason( + 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: { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder subBuilder = null; + if (reasonCase_ == 1) { + subBuilder = ((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_).toBuilder(); + } + reason_ = + input.readMessage(flyteidl.admin.Event.EventErrorAlreadyInTerminalState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); + reason_ = subBuilder.buildPartial(); + } + reasonCase_ = 1; + 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 flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + public enum ReasonCase + implements com.google.protobuf.Internal.EnumLite { + ALREADY_IN_TERMINAL_STATE(1), + REASON_NOT_SET(0); + private final int value; + private ReasonCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 1: return ALREADY_IN_TERMINAL_STATE; + case 0: return REASON_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public static final int ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER = 1; + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public boolean hasAlreadyInTerminalState() { + return reasonCase_ == 1; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reasonCase_ == 1) { + output.writeMessage(1, (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reasonCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); + } + 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 flyteidl.admin.Event.EventFailureReason)) { + return super.equals(obj); + } + flyteidl.admin.Event.EventFailureReason other = (flyteidl.admin.Event.EventFailureReason) obj; + + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 1: + if (!getAlreadyInTerminalState() + .equals(other.getAlreadyInTerminalState())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (reasonCase_) { + case 1: + hash = (37 * hash) + ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER; + hash = (53 * hash) + getAlreadyInTerminalState().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.EventFailureReason parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventFailureReason 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 flyteidl.admin.Event.EventFailureReason parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventFailureReason 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 flyteidl.admin.Event.EventFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventFailureReason 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(flyteidl.admin.Event.EventFailureReason 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 flyteidl.admin.EventFailureReason} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventFailureReason) + flyteidl.admin.Event.EventFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); + } + + // Construct using flyteidl.admin.Event.EventFailureReason.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(); + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.EventFailureReason getDefaultInstanceForType() { + return flyteidl.admin.Event.EventFailureReason.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.EventFailureReason build() { + flyteidl.admin.Event.EventFailureReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.EventFailureReason buildPartial() { + flyteidl.admin.Event.EventFailureReason result = new flyteidl.admin.Event.EventFailureReason(this); + if (reasonCase_ == 1) { + if (alreadyInTerminalStateBuilder_ == null) { + result.reason_ = reason_; + } else { + result.reason_ = alreadyInTerminalStateBuilder_.build(); + } + } + result.reasonCase_ = reasonCase_; + 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 flyteidl.admin.Event.EventFailureReason) { + return mergeFrom((flyteidl.admin.Event.EventFailureReason)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.EventFailureReason other) { + if (other == flyteidl.admin.Event.EventFailureReason.getDefaultInstance()) return this; + switch (other.getReasonCase()) { + case ALREADY_IN_TERMINAL_STATE: { + mergeAlreadyInTerminalState(other.getAlreadyInTerminalState()); + break; + } + case REASON_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 { + flyteidl.admin.Event.EventFailureReason parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.EventFailureReason) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int reasonCase_ = 0; + private java.lang.Object reason_; + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> alreadyInTerminalStateBuilder_; + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public boolean hasAlreadyInTerminalState() { + return reasonCase_ == 1; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { + if (alreadyInTerminalStateBuilder_ == null) { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } else { + if (reasonCase_ == 1) { + return alreadyInTerminalStateBuilder_.getMessage(); + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder setAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { + if (alreadyInTerminalStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + alreadyInTerminalStateBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder setAlreadyInTerminalState( + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder builderForValue) { + if (alreadyInTerminalStateBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + alreadyInTerminalStateBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder mergeAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { + if (alreadyInTerminalStateBuilder_ == null) { + if (reasonCase_ == 1 && + reason_ != flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) { + reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.newBuilder((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 1) { + alreadyInTerminalStateBuilder_.mergeFrom(value); + } + alreadyInTerminalStateBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder clearAlreadyInTerminalState() { + if (alreadyInTerminalStateBuilder_ == null) { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + } + alreadyInTerminalStateBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder getAlreadyInTerminalStateBuilder() { + return getAlreadyInTerminalStateFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { + if ((reasonCase_ == 1) && (alreadyInTerminalStateBuilder_ != null)) { + return alreadyInTerminalStateBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> + getAlreadyInTerminalStateFieldBuilder() { + if (alreadyInTerminalStateBuilder_ == null) { + if (!(reasonCase_ == 1)) { + reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + alreadyInTerminalStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder>( + (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 1; + onChanged();; + return alreadyInTerminalStateBuilder_; + } + @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:flyteidl.admin.EventFailureReason) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventFailureReason) + private static final flyteidl.admin.Event.EventFailureReason DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.EventFailureReason(); + } + + public static flyteidl.admin.Event.EventFailureReason getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventFailureReason(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 flyteidl.admin.Event.EventFailureReason getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + boolean hasEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + flyteidl.event.Event.WorkflowExecutionEvent getEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder(); + } + /** + *
+   * Request to send a notification that a workflow execution event has occurred.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} + */ + public static final class WorkflowExecutionEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventRequest) + WorkflowExecutionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionEventRequest.newBuilder() to construct. + private WorkflowExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionEventRequest() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionEventRequest( + 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(); + + requestId_ = s; + break; + } + case 18: { + flyteidl.event.Event.WorkflowExecutionEvent.Builder subBuilder = null; + if (event_ != null) { + subBuilder = event_.toBuilder(); + } + event_ = input.readMessage(flyteidl.event.Event.WorkflowExecutionEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(event_); + event_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 2; + private flyteidl.event.Event.WorkflowExecutionEvent event_; + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public boolean hasEvent() { + return event_ != null; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { + return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { + return getEvent(); + } + + 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 (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (event_ != null) { + output.writeMessage(2, getEvent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (event_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); + } + 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 flyteidl.admin.Event.WorkflowExecutionEventRequest)) { + return super.equals(obj); + } + flyteidl.admin.Event.WorkflowExecutionEventRequest other = (flyteidl.admin.Event.WorkflowExecutionEventRequest) obj; + + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (hasEvent() != other.hasEvent()) return false; + if (hasEvent()) { + if (!getEvent() + .equals(other.getEvent())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasEvent()) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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 flyteidl.admin.Event.WorkflowExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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 flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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(flyteidl.admin.Event.WorkflowExecutionEventRequest 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; + } + /** + *
+     * Request to send a notification that a workflow execution event has occurred.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventRequest) + flyteidl.admin.Event.WorkflowExecutionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); + } + + // Construct using flyteidl.admin.Event.WorkflowExecutionEventRequest.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(); + requestId_ = ""; + + if (eventBuilder_ == null) { + event_ = null; + } else { + event_ = null; + eventBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { + return flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventRequest build() { + flyteidl.admin.Event.WorkflowExecutionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventRequest buildPartial() { + flyteidl.admin.Event.WorkflowExecutionEventRequest result = new flyteidl.admin.Event.WorkflowExecutionEventRequest(this); + result.requestId_ = requestId_; + if (eventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = eventBuilder_.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 flyteidl.admin.Event.WorkflowExecutionEventRequest) { + return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventRequest other) { + if (other == flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.hasEvent()) { + mergeEvent(other.getEvent()); + } + 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 { + flyteidl.admin.Event.WorkflowExecutionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.WorkflowExecutionEvent event_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> eventBuilder_; + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public boolean hasEvent() { + return eventBuilder_ != null || event_ != null; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { + if (eventBuilder_ == null) { + return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; + } else { + return eventBuilder_.getMessage(); + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder setEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + eventBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder setEvent( + flyteidl.event.Event.WorkflowExecutionEvent.Builder builderForValue) { + if (eventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + eventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder mergeEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { + if (eventBuilder_ == null) { + if (event_ != null) { + event_ = + flyteidl.event.Event.WorkflowExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + eventBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = null; + onChanged(); + } else { + event_ = null; + eventBuilder_ = null; + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEvent.Builder getEventBuilder() { + + onChanged(); + return getEventFieldBuilder().getBuilder(); + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilder(); + } else { + return event_ == null ? + flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> + getEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); + event_ = null; + } + return eventBuilder_; + } + @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:flyteidl.admin.WorkflowExecutionEventRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventRequest) + private static final flyteidl.admin.Event.WorkflowExecutionEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventRequest(); + } + + public static flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionEventRequest(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 flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionEventResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * a placeholder for now
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} + */ + public static final class WorkflowExecutionEventResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventResponse) + WorkflowExecutionEventResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionEventResponse.newBuilder() to construct. + private WorkflowExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionEventResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionEventResponse( + 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; + 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 flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.Event.WorkflowExecutionEventResponse)) { + return super.equals(obj); + } + flyteidl.admin.Event.WorkflowExecutionEventResponse other = (flyteidl.admin.Event.WorkflowExecutionEventResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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 flyteidl.admin.Event.WorkflowExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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 flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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(flyteidl.admin.Event.WorkflowExecutionEventResponse 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 placeholder for now
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventResponse) + flyteidl.admin.Event.WorkflowExecutionEventResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); + } + + // Construct using flyteidl.admin.Event.WorkflowExecutionEventResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { + return flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventResponse build() { + flyteidl.admin.Event.WorkflowExecutionEventResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventResponse buildPartial() { + flyteidl.admin.Event.WorkflowExecutionEventResponse result = new flyteidl.admin.Event.WorkflowExecutionEventResponse(this); + 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 flyteidl.admin.Event.WorkflowExecutionEventResponse) { + return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventResponse other) { + if (other == flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.Event.WorkflowExecutionEventResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.WorkflowExecutionEventResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventResponse) + private static final flyteidl.admin.Event.WorkflowExecutionEventResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventResponse(); + } + + public static flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionEventResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionEventResponse(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 flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + boolean hasEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + flyteidl.event.Event.NodeExecutionEvent getEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder(); + } + /** + *
+   * Request to send a notification that a node execution event has occurred.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} + */ + public static final class NodeExecutionEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventRequest) + NodeExecutionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionEventRequest.newBuilder() to construct. + private NodeExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionEventRequest() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionEventRequest( + 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(); + + requestId_ = s; + break; + } + case 18: { + flyteidl.event.Event.NodeExecutionEvent.Builder subBuilder = null; + if (event_ != null) { + subBuilder = event_.toBuilder(); + } + event_ = input.readMessage(flyteidl.event.Event.NodeExecutionEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(event_); + event_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 2; + private flyteidl.event.Event.NodeExecutionEvent event_; + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public boolean hasEvent() { + return event_ != null; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEvent getEvent() { + return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { + return getEvent(); + } + + 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 (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (event_ != null) { + output.writeMessage(2, getEvent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (event_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); + } + 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 flyteidl.admin.Event.NodeExecutionEventRequest)) { + return super.equals(obj); + } + flyteidl.admin.Event.NodeExecutionEventRequest other = (flyteidl.admin.Event.NodeExecutionEventRequest) obj; + + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (hasEvent() != other.hasEvent()) return false; + if (hasEvent()) { + if (!getEvent() + .equals(other.getEvent())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasEvent()) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest 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 flyteidl.admin.Event.NodeExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest 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 flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest 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(flyteidl.admin.Event.NodeExecutionEventRequest 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; + } + /** + *
+     * Request to send a notification that a node execution event has occurred.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventRequest) + flyteidl.admin.Event.NodeExecutionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); + } + + // Construct using flyteidl.admin.Event.NodeExecutionEventRequest.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(); + requestId_ = ""; + + if (eventBuilder_ == null) { + event_ = null; + } else { + event_ = null; + eventBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstanceForType() { + return flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventRequest build() { + flyteidl.admin.Event.NodeExecutionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventRequest buildPartial() { + flyteidl.admin.Event.NodeExecutionEventRequest result = new flyteidl.admin.Event.NodeExecutionEventRequest(this); + result.requestId_ = requestId_; + if (eventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = eventBuilder_.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 flyteidl.admin.Event.NodeExecutionEventRequest) { + return mergeFrom((flyteidl.admin.Event.NodeExecutionEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventRequest other) { + if (other == flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.hasEvent()) { + mergeEvent(other.getEvent()); + } + 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 { + flyteidl.admin.Event.NodeExecutionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.NodeExecutionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.NodeExecutionEvent event_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> eventBuilder_; + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public boolean hasEvent() { + return eventBuilder_ != null || event_ != null; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEvent getEvent() { + if (eventBuilder_ == null) { + return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; + } else { + return eventBuilder_.getMessage(); + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder setEvent(flyteidl.event.Event.NodeExecutionEvent value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + eventBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder setEvent( + flyteidl.event.Event.NodeExecutionEvent.Builder builderForValue) { + if (eventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + eventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder mergeEvent(flyteidl.event.Event.NodeExecutionEvent value) { + if (eventBuilder_ == null) { + if (event_ != null) { + event_ = + flyteidl.event.Event.NodeExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + eventBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = null; + onChanged(); + } else { + event_ = null; + eventBuilder_ = null; + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEvent.Builder getEventBuilder() { + + onChanged(); + return getEventFieldBuilder().getBuilder(); + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilder(); + } else { + return event_ == null ? + flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> + getEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); + event_ = null; + } + return eventBuilder_; + } + @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:flyteidl.admin.NodeExecutionEventRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventRequest) + private static final flyteidl.admin.Event.NodeExecutionEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventRequest(); + } + + public static flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionEventRequest(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 flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionEventResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * a placeholder for now
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} + */ + public static final class NodeExecutionEventResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventResponse) + NodeExecutionEventResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionEventResponse.newBuilder() to construct. + private NodeExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionEventResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionEventResponse( + 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; + 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 flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.Event.NodeExecutionEventResponse)) { + return super.equals(obj); + } + flyteidl.admin.Event.NodeExecutionEventResponse other = (flyteidl.admin.Event.NodeExecutionEventResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse 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 flyteidl.admin.Event.NodeExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse 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 flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse 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(flyteidl.admin.Event.NodeExecutionEventResponse 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 placeholder for now
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventResponse) + flyteidl.admin.Event.NodeExecutionEventResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); + } + + // Construct using flyteidl.admin.Event.NodeExecutionEventResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstanceForType() { + return flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventResponse build() { + flyteidl.admin.Event.NodeExecutionEventResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventResponse buildPartial() { + flyteidl.admin.Event.NodeExecutionEventResponse result = new flyteidl.admin.Event.NodeExecutionEventResponse(this); + 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 flyteidl.admin.Event.NodeExecutionEventResponse) { + return mergeFrom((flyteidl.admin.Event.NodeExecutionEventResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventResponse other) { + if (other == flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.Event.NodeExecutionEventResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.NodeExecutionEventResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.NodeExecutionEventResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventResponse) + private static final flyteidl.admin.Event.NodeExecutionEventResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventResponse(); + } + + public static flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionEventResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionEventResponse(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 flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + boolean hasEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + flyteidl.event.Event.TaskExecutionEvent getEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder(); + } + /** + *
+   * Request to send a notification that a task execution event has occurred.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} + */ + public static final class TaskExecutionEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventRequest) + TaskExecutionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionEventRequest.newBuilder() to construct. + private TaskExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionEventRequest() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionEventRequest( + 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(); + + requestId_ = s; + break; + } + case 18: { + flyteidl.event.Event.TaskExecutionEvent.Builder subBuilder = null; + if (event_ != null) { + subBuilder = event_.toBuilder(); + } + event_ = input.readMessage(flyteidl.event.Event.TaskExecutionEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(event_); + event_ = 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 flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 2; + private flyteidl.event.Event.TaskExecutionEvent event_; + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public boolean hasEvent() { + return event_ != null; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEvent getEvent() { + return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { + return getEvent(); + } + + 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 (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (event_ != null) { + output.writeMessage(2, getEvent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (event_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); + } + 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 flyteidl.admin.Event.TaskExecutionEventRequest)) { + return super.equals(obj); + } + flyteidl.admin.Event.TaskExecutionEventRequest other = (flyteidl.admin.Event.TaskExecutionEventRequest) obj; + + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (hasEvent() != other.hasEvent()) return false; + if (hasEvent()) { + if (!getEvent() + .equals(other.getEvent())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasEvent()) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest 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 flyteidl.admin.Event.TaskExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest 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 flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest 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(flyteidl.admin.Event.TaskExecutionEventRequest 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; + } + /** + *
+     * Request to send a notification that a task execution event has occurred.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventRequest) + flyteidl.admin.Event.TaskExecutionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); + } + + // Construct using flyteidl.admin.Event.TaskExecutionEventRequest.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(); + requestId_ = ""; + + if (eventBuilder_ == null) { + event_ = null; + } else { + event_ = null; + eventBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstanceForType() { + return flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventRequest build() { + flyteidl.admin.Event.TaskExecutionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventRequest buildPartial() { + flyteidl.admin.Event.TaskExecutionEventRequest result = new flyteidl.admin.Event.TaskExecutionEventRequest(this); + result.requestId_ = requestId_; + if (eventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = eventBuilder_.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 flyteidl.admin.Event.TaskExecutionEventRequest) { + return mergeFrom((flyteidl.admin.Event.TaskExecutionEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventRequest other) { + if (other == flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.hasEvent()) { + mergeEvent(other.getEvent()); + } + 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 { + flyteidl.admin.Event.TaskExecutionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.TaskExecutionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.TaskExecutionEvent event_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> eventBuilder_; + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public boolean hasEvent() { + return eventBuilder_ != null || event_ != null; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEvent getEvent() { + if (eventBuilder_ == null) { + return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; + } else { + return eventBuilder_.getMessage(); + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder setEvent(flyteidl.event.Event.TaskExecutionEvent value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + eventBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder setEvent( + flyteidl.event.Event.TaskExecutionEvent.Builder builderForValue) { + if (eventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + eventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder mergeEvent(flyteidl.event.Event.TaskExecutionEvent value) { + if (eventBuilder_ == null) { + if (event_ != null) { + event_ = + flyteidl.event.Event.TaskExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + eventBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = null; + onChanged(); + } else { + event_ = null; + eventBuilder_ = null; + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEvent.Builder getEventBuilder() { + + onChanged(); + return getEventFieldBuilder().getBuilder(); + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilder(); + } else { + return event_ == null ? + flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> + getEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); + event_ = null; + } + return eventBuilder_; + } + @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:flyteidl.admin.TaskExecutionEventRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventRequest) + private static final flyteidl.admin.Event.TaskExecutionEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventRequest(); + } + + public static flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionEventRequest(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 flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionEventResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * a placeholder for now
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} + */ + public static final class TaskExecutionEventResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventResponse) + TaskExecutionEventResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionEventResponse.newBuilder() to construct. + private TaskExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionEventResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionEventResponse( + 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; + 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 flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.Event.TaskExecutionEventResponse)) { + return super.equals(obj); + } + flyteidl.admin.Event.TaskExecutionEventResponse other = (flyteidl.admin.Event.TaskExecutionEventResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse 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 flyteidl.admin.Event.TaskExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse 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 flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse 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(flyteidl.admin.Event.TaskExecutionEventResponse 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 placeholder for now
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventResponse) + flyteidl.admin.Event.TaskExecutionEventResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); + } + + // Construct using flyteidl.admin.Event.TaskExecutionEventResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstanceForType() { + return flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventResponse build() { + flyteidl.admin.Event.TaskExecutionEventResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventResponse buildPartial() { + flyteidl.admin.Event.TaskExecutionEventResponse result = new flyteidl.admin.Event.TaskExecutionEventResponse(this); + 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 flyteidl.admin.Event.TaskExecutionEventResponse) { + return mergeFrom((flyteidl.admin.Event.TaskExecutionEventResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventResponse other) { + if (other == flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.Event.TaskExecutionEventResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.TaskExecutionEventResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.TaskExecutionEventResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventResponse) + private static final flyteidl.admin.Event.TaskExecutionEventResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventResponse(); + } + + public static flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionEventResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionEventResponse(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 flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EventFailureReason_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionEventResponse_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\032flyteidl/admin/event.proto\022\016flyteidl.a" + + "dmin\032\032flyteidl/event/event.proto\"9\n Even" + + "tErrorAlreadyInTerminalState\022\025\n\rcurrent_" + + "phase\030\001 \001(\t\"u\n\022EventFailureReason\022U\n\031alr" + + "eady_in_terminal_state\030\001 \001(\01320.flyteidl." + + "admin.EventErrorAlreadyInTerminalStateH\000" + + "B\010\n\006reason\"j\n\035WorkflowExecutionEventRequ" + + "est\022\022\n\nrequest_id\030\001 \001(\t\0225\n\005event\030\002 \001(\0132&" + + ".flyteidl.event.WorkflowExecutionEvent\" " + + "\n\036WorkflowExecutionEventResponse\"b\n\031Node" + + "ExecutionEventRequest\022\022\n\nrequest_id\030\001 \001(" + + "\t\0221\n\005event\030\002 \001(\0132\".flyteidl.event.NodeEx" + + "ecutionEvent\"\034\n\032NodeExecutionEventRespon" + + "se\"b\n\031TaskExecutionEventRequest\022\022\n\nreque" + + "st_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".flyteidl.ev" + + "ent.TaskExecutionEvent\"\034\n\032TaskExecutionE" + + "ventResponseB3Z1github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.event.Event.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor, + new java.lang.String[] { "CurrentPhase", }); + internal_static_flyteidl_admin_EventFailureReason_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EventFailureReason_descriptor, + new java.lang.String[] { "AlreadyInTerminalState", "Reason", }); + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor, + new java.lang.String[] { "RequestId", "Event", }); + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor, + new java.lang.String[] { "RequestId", "Event", }); + internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor, + new java.lang.String[] { "RequestId", "Event", }); + internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor, + new java.lang.String[] { }); + flyteidl.event.Event.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java b/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java new file mode 100644 index 000000000..0e344e51e --- /dev/null +++ b/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java @@ -0,0 +1,20558 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/execution.proto + +package flyteidl.admin; + +public final class ExecutionOuterClass { + private ExecutionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ExecutionCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project the execution belongs to. 
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the execution belongs to. 
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the execution belongs to. 
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the execution belongs to. 
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + boolean hasSpec(); + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + boolean hasInputs(); + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + flyteidl.core.Literals.LiteralMap getInputs(); + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); + } + /** + *
+   * Request to launch an execution with the given project, domain and optionally name.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} + */ + public static final class ExecutionCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateRequest) + ExecutionCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionCreateRequest.newBuilder() to construct. + private ExecutionCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionCreateRequest() { + project_ = ""; + domain_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionCreateRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the execution belongs to. 
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the execution belongs to. 
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the execution belongs to. 
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the execution belongs to. 
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + 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 SPEC_FIELD_NUMBER = 4; + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int INPUTS_FIELD_NUMBER = 5; + private flyteidl.core.Literals.LiteralMap inputs_; + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + if (spec_ != null) { + output.writeMessage(4, getSpec()); + } + if (inputs_ != null) { + output.writeMessage(5, getInputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSpec()); + } + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInputs()); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getName() + .equals(other.getName())) return false; + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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(flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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; + } + /** + *
+     * Request to launch an execution with the given project, domain and optionally name.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.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(); + project_ = ""; + + domain_ = ""; + + name_ = ""; + + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder setSpec( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private flyteidl.core.Literals.LiteralMap inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public Builder setInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + @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:flyteidl.admin.ExecutionCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionCreateRequest(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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionRelaunchRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionRelaunchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Request to relaunch the referenced execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} + */ + public static final class ExecutionRelaunchRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionRelaunchRequest) + ExecutionRelaunchRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionRelaunchRequest.newBuilder() to construct. + private ExecutionRelaunchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionRelaunchRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionRelaunchRequest( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + 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 (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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(flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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; + } + /** + *
+     * Request to relaunch the referenced execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionRelaunchRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + 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; + } + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionRelaunchRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRelaunchRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionRelaunchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionRelaunchRequest(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 flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * The unique identifier for a successfully created execution.
+   * If the name was *not* specified in the create request, this identifier will include a generated name.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} + */ + public static final class ExecutionCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateResponse) + ExecutionCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionCreateResponse.newBuilder() to construct. + private ExecutionCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionCreateResponse( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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(flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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; + } + /** + *
+     * The unique identifier for a successfully created execution.
+     * If the name was *not* specified in the create request, this identifier will include a generated name.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateResponse) + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse build() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.ExecutionCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateResponse) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionCreateResponse(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 flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A message used to fetch a single workflow execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} + */ + public static final class WorkflowExecutionGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetRequest) + WorkflowExecutionGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetRequest.newBuilder() to construct. + private WorkflowExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetRequest( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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 message used to fetch a single workflow execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetRequest) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.WorkflowExecutionGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetRequest) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetRequest(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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Execution) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + boolean hasClosure(); + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure(); + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * A workflow execution represents an instantiated workflow, including all inputs and additional
+   * metadata as well as computed results included state, outputs, and duration-based attributes.
+   * Used as a response object used in Get and List execution requests.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Execution} + */ + public static final class Execution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Execution) + ExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Execution.newBuilder() to construct. + private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Execution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Execution( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_; + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { + return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; + } + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + 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 (spec_ != null) { + output.writeMessage(2, getSpec()); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + 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 (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + 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 flyteidl.admin.ExecutionOuterClass.Execution)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.Execution other = (flyteidl.admin.ExecutionOuterClass.Execution) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) 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(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.Execution 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 flyteidl.admin.ExecutionOuterClass.Execution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.Execution 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 flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.Execution 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(flyteidl.admin.ExecutionOuterClass.Execution 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 workflow execution represents an instantiated workflow, including all inputs and additional
+     * metadata as well as computed results included state, outputs, and duration-based attributes.
+     * Used as a response object used in Get and List execution requests.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Execution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Execution) + flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.Execution.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.Execution build() { + flyteidl.admin.ExecutionOuterClass.Execution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.Execution buildPartial() { + flyteidl.admin.ExecutionOuterClass.Execution result = new flyteidl.admin.ExecutionOuterClass.Execution(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.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 flyteidl.admin.ExecutionOuterClass.Execution) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.Execution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.Execution other) { + if (other == flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.Execution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.Execution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> closureBuilder_; + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + @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:flyteidl.admin.Execution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Execution) + private static final flyteidl.admin.ExecutionOuterClass.Execution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.Execution(); + } + + public static flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Execution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Execution(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 flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + java.util.List + getExecutionsList(); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + int getExecutionsCount(); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + java.util.List + getExecutionsOrBuilderList(); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Used as a response for request to list executions.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionList} + */ + public static final class ExecutionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionList) + ExecutionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionList.newBuilder() to construct. + private ExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionList() { + executions_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionList( + 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)) { + executions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + executions_.add( + input.readMessage(flyteidl.admin.ExecutionOuterClass.Execution.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); + } + + private int bitField0_; + public static final int EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List executions_; + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List getExecutionsList() { + return executions_; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List + getExecutionsOrBuilderList() { + return executions_; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public int getExecutionsCount() { + return executions_.size(); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { + return executions_.get(index); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( + int index) { + return executions_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < executions_.size(); i++) { + output.writeMessage(1, executions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < executions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, executions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionList)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionList other = (flyteidl.admin.ExecutionOuterClass.ExecutionList) obj; + + if (!getExecutionsList() + .equals(other.getExecutionsList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getExecutionsCount() > 0) { + hash = (37 * hash) + EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExecutionsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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 flyteidl.admin.ExecutionOuterClass.ExecutionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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 flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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(flyteidl.admin.ExecutionOuterClass.ExecutionList 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; + } + /** + *
+     * Used as a response for request to list executions.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionList) + flyteidl.admin.ExecutionOuterClass.ExecutionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getExecutionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + executionsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionList build() { + flyteidl.admin.ExecutionOuterClass.ExecutionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionList buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionList result = new flyteidl.admin.ExecutionOuterClass.ExecutionList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (executionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.executions_ = executions_; + } else { + result.executions_ = executionsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.ExecutionOuterClass.ExecutionList) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionList other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance()) return this; + if (executionsBuilder_ == null) { + if (!other.executions_.isEmpty()) { + if (executions_.isEmpty()) { + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExecutionsIsMutable(); + executions_.addAll(other.executions_); + } + onChanged(); + } + } else { + if (!other.executions_.isEmpty()) { + if (executionsBuilder_.isEmpty()) { + executionsBuilder_.dispose(); + executionsBuilder_ = null; + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + executionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExecutionsFieldBuilder() : null; + } else { + executionsBuilder_.addAllMessages(other.executions_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.ExecutionOuterClass.ExecutionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List executions_ = + java.util.Collections.emptyList(); + private void ensureExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + executions_ = new java.util.ArrayList(executions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> executionsBuilder_; + + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List getExecutionsList() { + if (executionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(executions_); + } else { + return executionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public int getExecutionsCount() { + if (executionsBuilder_ == null) { + return executions_.size(); + } else { + return executionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); + } else { + return executionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder setExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.set(index, value); + onChanged(); + } else { + executionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder setExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.set(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions(flyteidl.admin.ExecutionOuterClass.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(value); + onChanged(); + } else { + executionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(index, value); + onChanged(); + } else { + executionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions( + flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addAllExecutions( + java.lang.Iterable values) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, executions_); + onChanged(); + } else { + executionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder clearExecutions() { + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + executionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder removeExecutions(int index) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.remove(index); + onChanged(); + } else { + executionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution.Builder getExecutionsBuilder( + int index) { + return getExecutionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( + int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); } else { + return executionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List + getExecutionsOrBuilderList() { + if (executionsBuilder_ != null) { + return executionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(executions_); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder() { + return getExecutionsFieldBuilder().addBuilder( + flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder( + int index) { + return getExecutionsFieldBuilder().addBuilder( + index, flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List + getExecutionsBuilderList() { + return getExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> + getExecutionsFieldBuilder() { + if (executionsBuilder_ == null) { + executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder>( + executions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + executions_ = null; + } + return executionsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.ExecutionList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionList) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionList(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionList(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 flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralMapBlobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LiteralMapBlob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + boolean hasValues(); + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + flyteidl.core.Literals.LiteralMap getValues(); + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder(); + + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + java.lang.String getUri(); + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + com.google.protobuf.ByteString + getUriBytes(); + + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.DataCase getDataCase(); + } + /** + *
+   * Input/output data can represented by actual values or a link to where values are stored
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LiteralMapBlob} + */ + public static final class LiteralMapBlob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LiteralMapBlob) + LiteralMapBlobOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralMapBlob.newBuilder() to construct. + private LiteralMapBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralMapBlob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralMapBlob( + 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: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (dataCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) data_).toBuilder(); + } + data_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) data_); + data_ = subBuilder.buildPartial(); + } + dataCase_ = 1; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + dataCase_ = 2; + data_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); + } + + private int dataCase_ = 0; + private java.lang.Object data_; + public enum DataCase + implements com.google.protobuf.Internal.EnumLite { + VALUES(1), + URI(2), + DATA_NOT_SET(0); + private final int value; + private DataCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 1: return VALUES; + case 2: return URI; + case 0: return DATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public static final int VALUES_FIELD_NUMBER = 1; + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public boolean hasValues() { + return dataCase_ == 1; + } + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMap getValues() { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public static final int URI_FIELD_NUMBER = 2; + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + 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(); + if (dataCase_ == 2) { + data_ = s; + } + return s; + } + } + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (dataCase_ == 2) { + data_ = 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 (dataCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.LiteralMap) data_); + } + if (dataCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.LiteralMap) data_); + } + if (dataCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_); + } + 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) obj; + + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 1: + if (!getValues() + .equals(other.getValues())) return false; + break; + case 2: + if (!getUri() + .equals(other.getUri())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (dataCase_) { + case 1: + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValues().hashCode(); + break; + case 2: + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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; + } + /** + *
+     * Input/output data can represented by actual values or a link to where values are stored
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LiteralMapBlob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LiteralMapBlob) + flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.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(); + dataCase_ = 0; + data_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob build() { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob buildPartial() { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(this); + if (dataCase_ == 1) { + if (valuesBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = valuesBuilder_.build(); + } + } + if (dataCase_ == 2) { + result.data_ = data_; + } + result.dataCase_ = dataCase_; + 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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other) { + if (other == flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) return this; + switch (other.getDataCase()) { + case VALUES: { + mergeValues(other.getValues()); + break; + } + case URI: { + dataCase_ = 2; + data_ = other.data_; + onChanged(); + break; + } + case DATA_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 { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int dataCase_ = 0; + private java.lang.Object data_; + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> valuesBuilder_; + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public boolean hasValues() { + return dataCase_ == 1; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMap getValues() { + if (valuesBuilder_ == null) { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (dataCase_ == 1) { + return valuesBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public Builder setValues(flyteidl.core.Literals.LiteralMap value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + valuesBuilder_.setMessage(value); + } + dataCase_ = 1; + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public Builder setValues( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (valuesBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + valuesBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 1; + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public Builder mergeValues(flyteidl.core.Literals.LiteralMap value) { + if (valuesBuilder_ == null) { + if (dataCase_ == 1 && + data_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + data_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) data_) + .mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 1) { + valuesBuilder_.mergeFrom(value); + } + valuesBuilder_.setMessage(value); + } + dataCase_ = 1; + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + } + valuesBuilder_.clear(); + } + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMap.Builder getValuesBuilder() { + return getValuesFieldBuilder().getBuilder(); + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { + if ((dataCase_ == 1) && (valuesBuilder_ != null)) { + return valuesBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + if (!(dataCase_ == 1)) { + data_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 1; + onChanged();; + return valuesBuilder_; + } + + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 2) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (dataCase_ == 2) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataCase_ = 2; + data_ = value; + onChanged(); + return this; + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public Builder clearUri() { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataCase_ = 2; + data_ = 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:flyteidl.admin.LiteralMapBlob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LiteralMapBlob) + private static final flyteidl.admin.ExecutionOuterClass.LiteralMapBlob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(); + } + + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiteralMapBlob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralMapBlob(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 flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AbortMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.AbortMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string cause = 1; + */ + java.lang.String getCause(); + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string cause = 1; + */ + com.google.protobuf.ByteString + getCauseBytes(); + + /** + *
+     * Identifies the entity (if any) responsible for terminating the execution
+     * 
+ * + * string principal = 2; + */ + java.lang.String getPrincipal(); + /** + *
+     * Identifies the entity (if any) responsible for terminating the execution
+     * 
+ * + * string principal = 2; + */ + com.google.protobuf.ByteString + getPrincipalBytes(); + } + /** + * Protobuf type {@code flyteidl.admin.AbortMetadata} + */ + public static final class AbortMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.AbortMetadata) + AbortMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use AbortMetadata.newBuilder() to construct. + private AbortMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AbortMetadata() { + cause_ = ""; + principal_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AbortMetadata( + 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(); + + cause_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + principal_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.AbortMetadata.class, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder.class); + } + + public static final int CAUSE_FIELD_NUMBER = 1; + private volatile java.lang.Object cause_; + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string cause = 1; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + 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(); + cause_ = s; + return s; + } + } + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string cause = 1; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRINCIPAL_FIELD_NUMBER = 2; + private volatile java.lang.Object principal_; + /** + *
+     * Identifies the entity (if any) responsible for terminating the execution
+     * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + 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(); + principal_ = s; + return s; + } + } + /** + *
+     * Identifies the entity (if any) responsible for terminating the execution
+     * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = 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 (!getCauseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cause_); + } + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCauseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cause_); + } + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); + } + 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.AbortMetadata other = (flyteidl.admin.ExecutionOuterClass.AbortMetadata) obj; + + if (!getCause() + .equals(other.getCause())) return false; + if (!getPrincipal() + .equals(other.getPrincipal())) 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) + CAUSE_FIELD_NUMBER; + hash = (53 * hash) + getCause().hashCode(); + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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(flyteidl.admin.ExecutionOuterClass.AbortMetadata 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 flyteidl.admin.AbortMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.AbortMetadata) + flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.AbortMetadata.class, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.AbortMetadata.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(); + cause_ = ""; + + principal_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.AbortMetadata build() { + flyteidl.admin.ExecutionOuterClass.AbortMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.AbortMetadata buildPartial() { + flyteidl.admin.ExecutionOuterClass.AbortMetadata result = new flyteidl.admin.ExecutionOuterClass.AbortMetadata(this); + result.cause_ = cause_; + result.principal_ = principal_; + 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 flyteidl.admin.ExecutionOuterClass.AbortMetadata) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.AbortMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.AbortMetadata other) { + if (other == flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance()) return this; + if (!other.getCause().isEmpty()) { + cause_ = other.cause_; + onChanged(); + } + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + 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 { + flyteidl.admin.ExecutionOuterClass.AbortMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.AbortMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object cause_ = ""; + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cause_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public Builder setCause( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cause_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public Builder clearCause() { + + cause_ = getDefaultInstance().getCause(); + onChanged(); + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public Builder setCauseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cause_ = value; + onChanged(); + return this; + } + + private java.lang.Object principal_ = ""; + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principal_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public Builder clearPrincipal() { + + principal_ = getDefaultInstance().getPrincipal(); + onChanged(); + return this; + } + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principal_ = 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:flyteidl.admin.AbortMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.AbortMetadata) + private static final flyteidl.admin.ExecutionOuterClass.AbortMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.AbortMetadata(); + } + + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AbortMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AbortMetadata(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 flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + boolean hasOutputs(); + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs(); + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder(); + + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + boolean hasError(); + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getAbortCause(); + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getAbortCauseBytes(); + + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + boolean hasAbortMetadata(); + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata(); + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder(); + + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasComputedInputs(); + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getComputedInputs(); + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder(); + + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + int getPhaseValue(); + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); + + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + boolean hasStartedAt(); + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.Timestamp getStartedAt(); + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); + + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + boolean hasDuration(); + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.Duration getDuration(); + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + boolean hasCreatedAt(); + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + boolean hasUpdatedAt(); + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + java.util.List + getNotificationsList(); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + flyteidl.admin.Common.Notification getNotifications(int index); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + int getNotificationsCount(); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + java.util.List + getNotificationsOrBuilderList(); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index); + + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + boolean hasWorkflowId(); + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); + + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.OutputResultCase getOutputResultCase(); + } + /** + *
+   * Encapsulates the results of the Execution
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionClosure} + */ + public static final class ExecutionClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionClosure) + ExecutionClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionClosure.newBuilder() to construct. + private ExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionClosure() { + phase_ = 0; + notifications_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionClosure( + 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: { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder subBuilder = null; + if (outputResultCase_ == 1) { + subBuilder = ((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 1; + break; + } + case 18: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 2; + break; + } + case 26: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (computedInputs_ != null) { + subBuilder = computedInputs_.toBuilder(); + } + computedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(computedInputs_); + computedInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startedAt_ != null) { + subBuilder = startedAt_.toBuilder(); + } + startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startedAt_); + startedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + 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 66: { + 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; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000400) != 0)) { + notifications_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + notifications_.add( + input.readMessage(flyteidl.admin.Common.Notification.parser(), extensionRegistry)); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 10; + outputResult_ = s; + break; + } + case 90: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (workflowId_ != null) { + subBuilder = workflowId_.toBuilder(); + } + workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowId_); + workflowId_ = subBuilder.buildPartial(); + } + + break; + } + case 98: { + flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder subBuilder = null; + if (outputResultCase_ == 12) { + subBuilder = ((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.admin.ExecutionOuterClass.AbortMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 12; + 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_ & 0x00000400) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); + } + + private int bitField0_; + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUTS(1), + ERROR(2), + @java.lang.Deprecated ABORT_CAUSE(10), + ABORT_METADATA(12), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 1: return OUTPUTS; + case 2: return ERROR; + case 10: return ABORT_CAUSE; + case 12: return ABORT_METADATA; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int OUTPUTS_FIELD_NUMBER = 1; + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public boolean hasOutputs() { + return outputResultCase_ == 1; + } + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int ABORT_CAUSE_FIELD_NUMBER = 10; + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getAbortCause() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 10) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getAbortCauseBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 10) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ABORT_METADATA_FIELD_NUMBER = 12; + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public boolean hasAbortMetadata() { + return outputResultCase_ == 12; + } + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata() { + if (outputResultCase_ == 12) { + return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder() { + if (outputResultCase_ == 12) { + return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + + public static final int COMPUTED_INPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Literals.LiteralMap computedInputs_; + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasComputedInputs() { + return computedInputs_ != null; + } + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getComputedInputs() { + return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; + } + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { + return getComputedInputs(); + } + + public static final int PHASE_FIELD_NUMBER = 4; + private int phase_; + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + + public static final int STARTED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp startedAt_; + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAt_ != null; + } + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + return getStartedAt(); + } + + public static final int DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration duration_; + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 9; + private java.util.List notifications_; + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List getNotificationsList() { + return notifications_; + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List + getNotificationsOrBuilderList() { + return notifications_; + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public int getNotificationsCount() { + return notifications_.size(); + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + return notifications_.get(index); + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + return notifications_.get(index); + } + + public static final int WORKFLOW_ID_FIELD_NUMBER = 11; + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public boolean hasWorkflowId() { + return workflowId_ != null; + } + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + return getWorkflowId(); + } + + 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 (outputResultCase_ == 1) { + output.writeMessage(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); + } + if (outputResultCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (computedInputs_ != null) { + output.writeMessage(3, getComputedInputs()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(4, phase_); + } + if (startedAt_ != null) { + output.writeMessage(5, getStartedAt()); + } + if (duration_ != null) { + output.writeMessage(6, getDuration()); + } + if (createdAt_ != null) { + output.writeMessage(7, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(8, getUpdatedAt()); + } + for (int i = 0; i < notifications_.size(); i++) { + output.writeMessage(9, notifications_.get(i)); + } + if (outputResultCase_ == 10) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, outputResult_); + } + if (workflowId_ != null) { + output.writeMessage(11, getWorkflowId()); + } + if (outputResultCase_ == 12) { + output.writeMessage(12, (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputResultCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); + } + if (outputResultCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (computedInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getComputedInputs()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, phase_); + } + if (startedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartedAt()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDuration()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdatedAt()); + } + for (int i = 0; i < notifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, notifications_.get(i)); + } + if (outputResultCase_ == 10) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, outputResult_); + } + if (workflowId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getWorkflowId()); + } + if (outputResultCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionClosure other = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) obj; + + if (hasComputedInputs() != other.hasComputedInputs()) return false; + if (hasComputedInputs()) { + if (!getComputedInputs() + .equals(other.getComputedInputs())) return false; + } + if (phase_ != other.phase_) return false; + if (hasStartedAt() != other.hasStartedAt()) return false; + if (hasStartedAt()) { + if (!getStartedAt() + .equals(other.getStartedAt())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) 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 (!getNotificationsList() + .equals(other.getNotificationsList())) return false; + if (hasWorkflowId() != other.hasWorkflowId()) return false; + if (hasWorkflowId()) { + if (!getWorkflowId() + .equals(other.getWorkflowId())) return false; + } + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 1: + if (!getOutputs() + .equals(other.getOutputs())) return false; + break; + case 2: + if (!getError() + .equals(other.getError())) return false; + break; + case 10: + if (!getAbortCause() + .equals(other.getAbortCause())) return false; + break; + case 12: + if (!getAbortMetadata() + .equals(other.getAbortMetadata())) 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(); + if (hasComputedInputs()) { + hash = (37 * hash) + COMPUTED_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getComputedInputs().hashCode(); + } + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasStartedAt()) { + hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getStartedAt().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().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(); + } + if (getNotificationsCount() > 0) { + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationsList().hashCode(); + } + if (hasWorkflowId()) { + hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId().hashCode(); + } + switch (outputResultCase_) { + case 1: + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 10: + hash = (37 * hash) + ABORT_CAUSE_FIELD_NUMBER; + hash = (53 * hash) + getAbortCause().hashCode(); + break; + case 12: + hash = (37 * hash) + ABORT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getAbortMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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(flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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; + } + /** + *
+     * Encapsulates the results of the Execution
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionClosure) + flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNotificationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (computedInputsBuilder_ == null) { + computedInputs_ = null; + } else { + computedInputs_ = null; + computedInputsBuilder_ = null; + } + phase_ = 0; + + if (startedAtBuilder_ == null) { + startedAt_ = null; + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + notificationsBuilder_.clear(); + } + if (workflowIdBuilder_ == null) { + workflowId_ = null; + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure build() { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (outputResultCase_ == 1) { + if (outputsBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = outputsBuilder_.build(); + } + } + if (outputResultCase_ == 2) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (outputResultCase_ == 10) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 12) { + if (abortMetadataBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = abortMetadataBuilder_.build(); + } + } + if (computedInputsBuilder_ == null) { + result.computedInputs_ = computedInputs_; + } else { + result.computedInputs_ = computedInputsBuilder_.build(); + } + result.phase_ = phase_; + if (startedAtBuilder_ == null) { + result.startedAt_ = startedAt_; + } else { + result.startedAt_ = startedAtBuilder_.build(); + } + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + if (notificationsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.notifications_ = notifications_; + } else { + result.notifications_ = notificationsBuilder_.build(); + } + if (workflowIdBuilder_ == null) { + result.workflowId_ = workflowId_; + } else { + result.workflowId_ = workflowIdBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.outputResultCase_ = outputResultCase_; + 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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionClosure other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance()) return this; + if (other.hasComputedInputs()) { + mergeComputedInputs(other.getComputedInputs()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasStartedAt()) { + mergeStartedAt(other.getStartedAt()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + if (notificationsBuilder_ == null) { + if (!other.notifications_.isEmpty()) { + if (notifications_.isEmpty()) { + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureNotificationsIsMutable(); + notifications_.addAll(other.notifications_); + } + onChanged(); + } + } else { + if (!other.notifications_.isEmpty()) { + if (notificationsBuilder_.isEmpty()) { + notificationsBuilder_.dispose(); + notificationsBuilder_ = null; + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000400); + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; + } else { + notificationsBuilder_.addAllMessages(other.notifications_); + } + } + } + if (other.hasWorkflowId()) { + mergeWorkflowId(other.getWorkflowId()); + } + switch (other.getOutputResultCase()) { + case OUTPUTS: { + mergeOutputs(other.getOutputs()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case ABORT_CAUSE: { + outputResultCase_ = 10; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ABORT_METADATA: { + mergeAbortMetadata(other.getAbortMetadata()); + break; + } + case OUTPUTRESULT_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 { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> outputsBuilder_; + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public boolean hasOutputs() { + return outputResultCase_ == 1; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { + if (outputsBuilder_ == null) { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } else { + if (outputResultCase_ == 1) { + return outputsBuilder_.getMessage(); + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public Builder setOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + outputResultCase_ = 1; + return this; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public Builder setOutputs( + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 1; + return this; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public Builder mergeOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { + if (outputsBuilder_ == null) { + if (outputResultCase_ == 1 && + outputResult_ != flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.newBuilder((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 1) { + outputsBuilder_.mergeFrom(value); + } + outputsBuilder_.setMessage(value); + } + outputResultCase_ = 1; + return this; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + } + outputsBuilder_.clear(); + } + return this; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder getOutputsBuilder() { + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { + if ((outputResultCase_ == 1) && (outputsBuilder_ != null)) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + if (!(outputResultCase_ == 1)) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder>( + (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 1; + onChanged();; + return outputsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 2)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 2; + onChanged();; + return errorBuilder_; + } + + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getAbortCause() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 10) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getAbortCauseBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 10) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAbortCause( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 10; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearAbortCause() { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAbortCauseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 10; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder> abortMetadataBuilder_; + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public boolean hasAbortMetadata() { + return outputResultCase_ == 12; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata() { + if (abortMetadataBuilder_ == null) { + if (outputResultCase_ == 12) { + return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } else { + if (outputResultCase_ == 12) { + return abortMetadataBuilder_.getMessage(); + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public Builder setAbortMetadata(flyteidl.admin.ExecutionOuterClass.AbortMetadata value) { + if (abortMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + abortMetadataBuilder_.setMessage(value); + } + outputResultCase_ = 12; + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public Builder setAbortMetadata( + flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder builderForValue) { + if (abortMetadataBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + abortMetadataBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 12; + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public Builder mergeAbortMetadata(flyteidl.admin.ExecutionOuterClass.AbortMetadata value) { + if (abortMetadataBuilder_ == null) { + if (outputResultCase_ == 12 && + outputResult_ != flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance()) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.AbortMetadata.newBuilder((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 12) { + abortMetadataBuilder_.mergeFrom(value); + } + abortMetadataBuilder_.setMessage(value); + } + outputResultCase_ = 12; + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public Builder clearAbortMetadata() { + if (abortMetadataBuilder_ == null) { + if (outputResultCase_ == 12) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 12) { + outputResultCase_ = 0; + outputResult_ = null; + } + abortMetadataBuilder_.clear(); + } + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder getAbortMetadataBuilder() { + return getAbortMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder() { + if ((outputResultCase_ == 12) && (abortMetadataBuilder_ != null)) { + return abortMetadataBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 12) { + return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder> + getAbortMetadataFieldBuilder() { + if (abortMetadataBuilder_ == null) { + if (!(outputResultCase_ == 12)) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + abortMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder>( + (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 12; + onChanged();; + return abortMetadataBuilder_; + } + + private flyteidl.core.Literals.LiteralMap computedInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> computedInputsBuilder_; + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasComputedInputs() { + return computedInputsBuilder_ != null || computedInputs_ != null; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getComputedInputs() { + if (computedInputsBuilder_ == null) { + return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; + } else { + return computedInputsBuilder_.getMessage(); + } + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setComputedInputs(flyteidl.core.Literals.LiteralMap value) { + if (computedInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + computedInputs_ = value; + onChanged(); + } else { + computedInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setComputedInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (computedInputsBuilder_ == null) { + computedInputs_ = builderForValue.build(); + onChanged(); + } else { + computedInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeComputedInputs(flyteidl.core.Literals.LiteralMap value) { + if (computedInputsBuilder_ == null) { + if (computedInputs_ != null) { + computedInputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(computedInputs_).mergeFrom(value).buildPartial(); + } else { + computedInputs_ = value; + } + onChanged(); + } else { + computedInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearComputedInputs() { + if (computedInputsBuilder_ == null) { + computedInputs_ = null; + onChanged(); + } else { + computedInputs_ = null; + computedInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getComputedInputsBuilder() { + + onChanged(); + return getComputedInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { + if (computedInputsBuilder_ != null) { + return computedInputsBuilder_.getMessageOrBuilder(); + } else { + return computedInputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; + } + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getComputedInputsFieldBuilder() { + if (computedInputsBuilder_ == null) { + computedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getComputedInputs(), + getParentForChildren(), + isClean()); + computedInputs_ = null; + } + return computedInputsBuilder_; + } + + private int phase_ = 0; + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAtBuilder_ != null || startedAt_ != null; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + if (startedAtBuilder_ == null) { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } else { + return startedAtBuilder_.getMessage(); + } + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedAt_ = value; + onChanged(); + } else { + startedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedAtBuilder_ == null) { + startedAt_ = builderForValue.build(); + onChanged(); + } else { + startedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (startedAt_ != null) { + startedAt_ = + com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); + } else { + startedAt_ = value; + } + onChanged(); + } else { + startedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder clearStartedAt() { + if (startedAtBuilder_ == null) { + startedAt_ = null; + onChanged(); + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { + + onChanged(); + return getStartedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + if (startedAtBuilder_ != null) { + return startedAtBuilder_.getMessageOrBuilder(); + } else { + return startedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedAtFieldBuilder() { + if (startedAtBuilder_ == null) { + startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedAt(), + getParentForChildren(), + isClean()); + startedAt_ = null; + } + return startedAtBuilder_; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + 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_; + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + 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; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + 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; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + 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_; + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + 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; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + 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; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + 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_; + } + + private java.util.List notifications_ = + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + notifications_ = new java.util.ArrayList(notifications_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; + + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List getNotificationsList() { + if (notificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notifications_); + } else { + return notificationsBuilder_.getMessageList(); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public int getNotificationsCount() { + if (notificationsBuilder_ == null) { + return notifications_.size(); + } else { + return notificationsBuilder_.getCount(); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); + } else { + return notificationsBuilder_.getMessage(index); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.set(index, value); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.set(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications(flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(value); + onChanged(); + } else { + notificationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(index, value); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications( + flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addAllNotifications( + java.lang.Iterable values) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); + onChanged(); + } else { + notificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + notificationsBuilder_.clear(); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder removeNotifications(int index) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.remove(index); + onChanged(); + } else { + notificationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().getBuilder(index); + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); } else { + return notificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List + getNotificationsOrBuilderList() { + if (notificationsBuilder_ != null) { + return notificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notifications_); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { + return getNotificationsFieldBuilder().addBuilder( + flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().addBuilder( + index, flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List + getNotificationsBuilderList() { + return getNotificationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( + notifications_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + notifications_ = null; + } + return notificationsBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public boolean hasWorkflowId() { + return workflowIdBuilder_ != null || workflowId_ != null; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + if (workflowIdBuilder_ == null) { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } else { + return workflowIdBuilder_.getMessage(); + } + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowId_ = value; + onChanged(); + } else { + workflowIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder setWorkflowId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (workflowIdBuilder_ == null) { + workflowId_ = builderForValue.build(); + onChanged(); + } else { + workflowIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (workflowId_ != null) { + workflowId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); + } else { + workflowId_ = value; + } + onChanged(); + } else { + workflowIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder clearWorkflowId() { + if (workflowIdBuilder_ == null) { + workflowId_ = null; + onChanged(); + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { + + onChanged(); + return getWorkflowIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + if (workflowIdBuilder_ != null) { + return workflowIdBuilder_.getMessageOrBuilder(); + } else { + return workflowId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getWorkflowIdFieldBuilder() { + if (workflowIdBuilder_ == null) { + workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getWorkflowId(), + getParentForChildren(), + isClean()); + workflowId_ = null; + } + return workflowIdBuilder_; + } + @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:flyteidl.admin.ExecutionClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClosure) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionClosure(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 flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SystemMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.SystemMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Which execution cluster this execution ran on.
+     * 
+ * + * string execution_cluster = 1; + */ + java.lang.String getExecutionCluster(); + /** + *
+     * Which execution cluster this execution ran on.
+     * 
+ * + * string execution_cluster = 1; + */ + com.google.protobuf.ByteString + getExecutionClusterBytes(); + } + /** + *
+   * Represents system rather than user-facing metadata about an execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.SystemMetadata} + */ + public static final class SystemMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.SystemMetadata) + SystemMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use SystemMetadata.newBuilder() to construct. + private SystemMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SystemMetadata() { + executionCluster_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SystemMetadata( + 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(); + + executionCluster_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.SystemMetadata.class, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder.class); + } + + public static final int EXECUTION_CLUSTER_FIELD_NUMBER = 1; + private volatile java.lang.Object executionCluster_; + /** + *
+     * Which execution cluster this execution ran on.
+     * 
+ * + * string execution_cluster = 1; + */ + public java.lang.String getExecutionCluster() { + java.lang.Object ref = executionCluster_; + 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(); + executionCluster_ = s; + return s; + } + } + /** + *
+     * Which execution cluster this execution ran on.
+     * 
+ * + * string execution_cluster = 1; + */ + public com.google.protobuf.ByteString + getExecutionClusterBytes() { + java.lang.Object ref = executionCluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executionCluster_ = 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 (!getExecutionClusterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executionCluster_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getExecutionClusterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executionCluster_); + } + 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.SystemMetadata other = (flyteidl.admin.ExecutionOuterClass.SystemMetadata) obj; + + if (!getExecutionCluster() + .equals(other.getExecutionCluster())) 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) + EXECUTION_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getExecutionCluster().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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(flyteidl.admin.ExecutionOuterClass.SystemMetadata 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; + } + /** + *
+     * Represents system rather than user-facing metadata about an execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.SystemMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.SystemMetadata) + flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.SystemMetadata.class, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.SystemMetadata.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(); + executionCluster_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.SystemMetadata build() { + flyteidl.admin.ExecutionOuterClass.SystemMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.SystemMetadata buildPartial() { + flyteidl.admin.ExecutionOuterClass.SystemMetadata result = new flyteidl.admin.ExecutionOuterClass.SystemMetadata(this); + result.executionCluster_ = executionCluster_; + 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 flyteidl.admin.ExecutionOuterClass.SystemMetadata) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.SystemMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.SystemMetadata other) { + if (other == flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance()) return this; + if (!other.getExecutionCluster().isEmpty()) { + executionCluster_ = other.executionCluster_; + 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 { + flyteidl.admin.ExecutionOuterClass.SystemMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.SystemMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object executionCluster_ = ""; + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public java.lang.String getExecutionCluster() { + java.lang.Object ref = executionCluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executionCluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public com.google.protobuf.ByteString + getExecutionClusterBytes() { + java.lang.Object ref = executionCluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executionCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public Builder setExecutionCluster( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + executionCluster_ = value; + onChanged(); + return this; + } + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public Builder clearExecutionCluster() { + + executionCluster_ = getDefaultInstance().getExecutionCluster(); + onChanged(); + return this; + } + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public Builder setExecutionClusterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + executionCluster_ = 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:flyteidl.admin.SystemMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SystemMetadata) + private static final flyteidl.admin.ExecutionOuterClass.SystemMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.SystemMetadata(); + } + + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SystemMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SystemMetadata(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 flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * [(validate.rules).enum.defined_only = true];
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + int getModeValue(); + /** + *
+     * [(validate.rules).enum.defined_only = true];
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode(); + + /** + *
+     * Identifier of the entity that triggered this execution.
+     * For systems using back-end authentication any value set here will be discarded in favor of the
+     * authenticated user context.
+     * 
+ * + * string principal = 2; + */ + java.lang.String getPrincipal(); + /** + *
+     * Identifier of the entity that triggered this execution.
+     * For systems using back-end authentication any value set here will be discarded in favor of the
+     * authenticated user context.
+     * 
+ * + * string principal = 2; + */ + com.google.protobuf.ByteString + getPrincipalBytes(); + + /** + *
+     * Indicates the "nestedness" of this execution.
+     * If a user launches a workflow execution, the default nesting is 0.
+     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+     * nesting = k + 1.
+     * 
+ * + * uint32 nesting = 3; + */ + int getNesting(); + + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + boolean hasScheduledAt(); + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + com.google.protobuf.Timestamp getScheduledAt(); + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder(); + + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + boolean hasParentNodeExecution(); + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution(); + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder(); + + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + boolean hasReferenceExecution(); + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution(); + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder(); + + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + boolean hasSystemMetadata(); + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata(); + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder(); + } + /** + *
+   * Represents attributes about an execution which are not required to launch the execution but are useful to record.
+   * These attributes are assigned at launch time and do not change.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionMetadata} + */ + public static final class ExecutionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionMetadata) + ExecutionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionMetadata.newBuilder() to construct. + private ExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionMetadata() { + mode_ = 0; + principal_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionMetadata( + 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 8: { + int rawValue = input.readEnum(); + + mode_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + principal_ = s; + break; + } + case 24: { + + nesting_ = input.readUInt32(); + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduledAt_ != null) { + subBuilder = scheduledAt_.toBuilder(); + } + scheduledAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduledAt_); + scheduledAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (parentNodeExecution_ != null) { + subBuilder = parentNodeExecution_.toBuilder(); + } + parentNodeExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentNodeExecution_); + parentNodeExecution_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (referenceExecution_ != null) { + subBuilder = referenceExecution_.toBuilder(); + } + referenceExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(referenceExecution_); + referenceExecution_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder subBuilder = null; + if (systemMetadata_ != null) { + subBuilder = systemMetadata_.toBuilder(); + } + systemMetadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.SystemMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(systemMetadata_); + systemMetadata_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); + } + + /** + *
+     * The method by which this execution was launched.
+     * 
+ * + * Protobuf enum {@code flyteidl.admin.ExecutionMetadata.ExecutionMode} + */ + public enum ExecutionMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * The default execution mode, MANUAL implies that an execution was launched by an individual.
+       * 
+ * + * MANUAL = 0; + */ + MANUAL(0), + /** + *
+       * A schedule triggered this execution launch.
+       * 
+ * + * SCHEDULED = 1; + */ + SCHEDULED(1), + /** + *
+       * A system process was responsible for launching this execution rather an individual.
+       * 
+ * + * SYSTEM = 2; + */ + SYSTEM(2), + /** + *
+       * This execution was launched with identical inputs as a previous execution.
+       * 
+ * + * RELAUNCH = 3; + */ + RELAUNCH(3), + /** + *
+       * This execution was triggered by another execution.
+       * 
+ * + * CHILD_WORKFLOW = 4; + */ + CHILD_WORKFLOW(4), + UNRECOGNIZED(-1), + ; + + /** + *
+       * The default execution mode, MANUAL implies that an execution was launched by an individual.
+       * 
+ * + * MANUAL = 0; + */ + public static final int MANUAL_VALUE = 0; + /** + *
+       * A schedule triggered this execution launch.
+       * 
+ * + * SCHEDULED = 1; + */ + public static final int SCHEDULED_VALUE = 1; + /** + *
+       * A system process was responsible for launching this execution rather an individual.
+       * 
+ * + * SYSTEM = 2; + */ + public static final int SYSTEM_VALUE = 2; + /** + *
+       * This execution was launched with identical inputs as a previous execution.
+       * 
+ * + * RELAUNCH = 3; + */ + public static final int RELAUNCH_VALUE = 3; + /** + *
+       * This execution was triggered by another execution.
+       * 
+ * + * CHILD_WORKFLOW = 4; + */ + public static final int CHILD_WORKFLOW_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExecutionMode valueOf(int value) { + return forNumber(value); + } + + public static ExecutionMode forNumber(int value) { + switch (value) { + case 0: return MANUAL; + case 1: return SCHEDULED; + case 2: return SYSTEM; + case 3: return RELAUNCH; + case 4: return CHILD_WORKFLOW; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionMode findValueByNumber(int number) { + return ExecutionMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final ExecutionMode[] VALUES = values(); + + public static ExecutionMode 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 ExecutionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.ExecutionMetadata.ExecutionMode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_; + /** + *
+     * [(validate.rules).enum.defined_only = true];
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public int getModeValue() { + return mode_; + } + /** + *
+     * [(validate.rules).enum.defined_only = true];
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { + @SuppressWarnings("deprecation") + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); + return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; + } + + public static final int PRINCIPAL_FIELD_NUMBER = 2; + private volatile java.lang.Object principal_; + /** + *
+     * Identifier of the entity that triggered this execution.
+     * For systems using back-end authentication any value set here will be discarded in favor of the
+     * authenticated user context.
+     * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + 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(); + principal_ = s; + return s; + } + } + /** + *
+     * Identifier of the entity that triggered this execution.
+     * For systems using back-end authentication any value set here will be discarded in favor of the
+     * authenticated user context.
+     * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NESTING_FIELD_NUMBER = 3; + private int nesting_; + /** + *
+     * Indicates the "nestedness" of this execution.
+     * If a user launches a workflow execution, the default nesting is 0.
+     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+     * nesting = k + 1.
+     * 
+ * + * uint32 nesting = 3; + */ + public int getNesting() { + return nesting_; + } + + public static final int SCHEDULED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp scheduledAt_; + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public boolean hasScheduledAt() { + return scheduledAt_ != null; + } + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.Timestamp getScheduledAt() { + return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + } + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { + return getScheduledAt(); + } + + public static final int PARENT_NODE_EXECUTION_FIELD_NUMBER = 5; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public boolean hasParentNodeExecution() { + return parentNodeExecution_ != null; + } + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { + return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; + } + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { + return getParentNodeExecution(); + } + + public static final int REFERENCE_EXECUTION_FIELD_NUMBER = 16; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public boolean hasReferenceExecution() { + return referenceExecution_ != null; + } + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { + return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; + } + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { + return getReferenceExecution(); + } + + public static final int SYSTEM_METADATA_FIELD_NUMBER = 17; + private flyteidl.admin.ExecutionOuterClass.SystemMetadata systemMetadata_; + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public boolean hasSystemMetadata() { + return systemMetadata_ != null; + } + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata() { + return systemMetadata_ == null ? flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; + } + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder() { + return getSystemMetadata(); + } + + 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_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { + output.writeEnum(1, mode_); + } + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); + } + if (nesting_ != 0) { + output.writeUInt32(3, nesting_); + } + if (scheduledAt_ != null) { + output.writeMessage(4, getScheduledAt()); + } + if (parentNodeExecution_ != null) { + output.writeMessage(5, getParentNodeExecution()); + } + if (referenceExecution_ != null) { + output.writeMessage(16, getReferenceExecution()); + } + if (systemMetadata_ != null) { + output.writeMessage(17, getSystemMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, mode_); + } + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); + } + if (nesting_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, nesting_); + } + if (scheduledAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getScheduledAt()); + } + if (parentNodeExecution_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getParentNodeExecution()); + } + if (referenceExecution_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getReferenceExecution()); + } + if (systemMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getSystemMetadata()); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) obj; + + if (mode_ != other.mode_) return false; + if (!getPrincipal() + .equals(other.getPrincipal())) return false; + if (getNesting() + != other.getNesting()) return false; + if (hasScheduledAt() != other.hasScheduledAt()) return false; + if (hasScheduledAt()) { + if (!getScheduledAt() + .equals(other.getScheduledAt())) return false; + } + if (hasParentNodeExecution() != other.hasParentNodeExecution()) return false; + if (hasParentNodeExecution()) { + if (!getParentNodeExecution() + .equals(other.getParentNodeExecution())) return false; + } + if (hasReferenceExecution() != other.hasReferenceExecution()) return false; + if (hasReferenceExecution()) { + if (!getReferenceExecution() + .equals(other.getReferenceExecution())) return false; + } + if (hasSystemMetadata() != other.hasSystemMetadata()) return false; + if (hasSystemMetadata()) { + if (!getSystemMetadata() + .equals(other.getSystemMetadata())) 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) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); + hash = (37 * hash) + NESTING_FIELD_NUMBER; + hash = (53 * hash) + getNesting(); + if (hasScheduledAt()) { + hash = (37 * hash) + SCHEDULED_AT_FIELD_NUMBER; + hash = (53 * hash) + getScheduledAt().hashCode(); + } + if (hasParentNodeExecution()) { + hash = (37 * hash) + PARENT_NODE_EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getParentNodeExecution().hashCode(); + } + if (hasReferenceExecution()) { + hash = (37 * hash) + REFERENCE_EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getReferenceExecution().hashCode(); + } + if (hasSystemMetadata()) { + hash = (37 * hash) + SYSTEM_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getSystemMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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; + } + /** + *
+     * Represents attributes about an execution which are not required to launch the execution but are useful to record.
+     * These attributes are assigned at launch time and do not change.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionMetadata) + flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.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; + + principal_ = ""; + + nesting_ = 0; + + if (scheduledAtBuilder_ == null) { + scheduledAt_ = null; + } else { + scheduledAt_ = null; + scheduledAtBuilder_ = null; + } + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecution_ = null; + } else { + parentNodeExecution_ = null; + parentNodeExecutionBuilder_ = null; + } + if (referenceExecutionBuilder_ == null) { + referenceExecution_ = null; + } else { + referenceExecution_ = null; + referenceExecutionBuilder_ = null; + } + if (systemMetadataBuilder_ == null) { + systemMetadata_ = null; + } else { + systemMetadata_ = null; + systemMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata build() { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(this); + result.mode_ = mode_; + result.principal_ = principal_; + result.nesting_ = nesting_; + if (scheduledAtBuilder_ == null) { + result.scheduledAt_ = scheduledAt_; + } else { + result.scheduledAt_ = scheduledAtBuilder_.build(); + } + if (parentNodeExecutionBuilder_ == null) { + result.parentNodeExecution_ = parentNodeExecution_; + } else { + result.parentNodeExecution_ = parentNodeExecutionBuilder_.build(); + } + if (referenceExecutionBuilder_ == null) { + result.referenceExecution_ = referenceExecution_; + } else { + result.referenceExecution_ = referenceExecutionBuilder_.build(); + } + if (systemMetadataBuilder_ == null) { + result.systemMetadata_ = systemMetadata_; + } else { + result.systemMetadata_ = systemMetadataBuilder_.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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance()) return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + onChanged(); + } + if (other.getNesting() != 0) { + setNesting(other.getNesting()); + } + if (other.hasScheduledAt()) { + mergeScheduledAt(other.getScheduledAt()); + } + if (other.hasParentNodeExecution()) { + mergeParentNodeExecution(other.getParentNodeExecution()); + } + if (other.hasReferenceExecution()) { + mergeReferenceExecution(other.getReferenceExecution()); + } + if (other.hasSystemMetadata()) { + mergeSystemMetadata(other.getSystemMetadata()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int mode_ = 0; + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public int getModeValue() { + return mode_; + } + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public Builder setModeValue(int value) { + mode_ = value; + onChanged(); + return this; + } + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { + @SuppressWarnings("deprecation") + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); + return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; + } + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public Builder setMode(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode value) { + if (value == null) { + throw new NullPointerException(); + } + + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public Builder clearMode() { + + mode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object principal_ = ""; + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principal_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public Builder clearPrincipal() { + + principal_ = getDefaultInstance().getPrincipal(); + onChanged(); + return this; + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principal_ = value; + onChanged(); + return this; + } + + private int nesting_ ; + /** + *
+       * Indicates the "nestedness" of this execution.
+       * If a user launches a workflow execution, the default nesting is 0.
+       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+       * nesting = k + 1.
+       * 
+ * + * uint32 nesting = 3; + */ + public int getNesting() { + return nesting_; + } + /** + *
+       * Indicates the "nestedness" of this execution.
+       * If a user launches a workflow execution, the default nesting is 0.
+       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+       * nesting = k + 1.
+       * 
+ * + * uint32 nesting = 3; + */ + public Builder setNesting(int value) { + + nesting_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the "nestedness" of this execution.
+       * If a user launches a workflow execution, the default nesting is 0.
+       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+       * nesting = k + 1.
+       * 
+ * + * uint32 nesting = 3; + */ + public Builder clearNesting() { + + nesting_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp scheduledAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduledAtBuilder_; + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public boolean hasScheduledAt() { + return scheduledAtBuilder_ != null || scheduledAt_ != null; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.Timestamp getScheduledAt() { + if (scheduledAtBuilder_ == null) { + return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + } else { + return scheduledAtBuilder_.getMessage(); + } + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder setScheduledAt(com.google.protobuf.Timestamp value) { + if (scheduledAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduledAt_ = value; + onChanged(); + } else { + scheduledAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder setScheduledAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (scheduledAtBuilder_ == null) { + scheduledAt_ = builderForValue.build(); + onChanged(); + } else { + scheduledAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder mergeScheduledAt(com.google.protobuf.Timestamp value) { + if (scheduledAtBuilder_ == null) { + if (scheduledAt_ != null) { + scheduledAt_ = + com.google.protobuf.Timestamp.newBuilder(scheduledAt_).mergeFrom(value).buildPartial(); + } else { + scheduledAt_ = value; + } + onChanged(); + } else { + scheduledAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder clearScheduledAt() { + if (scheduledAtBuilder_ == null) { + scheduledAt_ = null; + onChanged(); + } else { + scheduledAt_ = null; + scheduledAtBuilder_ = null; + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getScheduledAtBuilder() { + + onChanged(); + return getScheduledAtFieldBuilder().getBuilder(); + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { + if (scheduledAtBuilder_ != null) { + return scheduledAtBuilder_.getMessageOrBuilder(); + } else { + return scheduledAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + } + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getScheduledAtFieldBuilder() { + if (scheduledAtBuilder_ == null) { + scheduledAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getScheduledAt(), + getParentForChildren(), + isClean()); + scheduledAt_ = null; + } + return scheduledAtBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionBuilder_; + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public boolean hasParentNodeExecution() { + return parentNodeExecutionBuilder_ != null || parentNodeExecution_ != null; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { + if (parentNodeExecutionBuilder_ == null) { + return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; + } else { + return parentNodeExecutionBuilder_.getMessage(); + } + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder setParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentNodeExecution_ = value; + onChanged(); + } else { + parentNodeExecutionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder setParentNodeExecution( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecution_ = builderForValue.build(); + onChanged(); + } else { + parentNodeExecutionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder mergeParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionBuilder_ == null) { + if (parentNodeExecution_ != null) { + parentNodeExecution_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecution_).mergeFrom(value).buildPartial(); + } else { + parentNodeExecution_ = value; + } + onChanged(); + } else { + parentNodeExecutionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder clearParentNodeExecution() { + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecution_ = null; + onChanged(); + } else { + parentNodeExecution_ = null; + parentNodeExecutionBuilder_ = null; + } + + return this; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionBuilder() { + + onChanged(); + return getParentNodeExecutionFieldBuilder().getBuilder(); + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { + if (parentNodeExecutionBuilder_ != null) { + return parentNodeExecutionBuilder_.getMessageOrBuilder(); + } else { + return parentNodeExecution_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; + } + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getParentNodeExecutionFieldBuilder() { + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getParentNodeExecution(), + getParentForChildren(), + isClean()); + parentNodeExecution_ = null; + } + return parentNodeExecutionBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> referenceExecutionBuilder_; + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public boolean hasReferenceExecution() { + return referenceExecutionBuilder_ != null || referenceExecution_ != null; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { + if (referenceExecutionBuilder_ == null) { + return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; + } else { + return referenceExecutionBuilder_.getMessage(); + } + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder setReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (referenceExecutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceExecution_ = value; + onChanged(); + } else { + referenceExecutionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder setReferenceExecution( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (referenceExecutionBuilder_ == null) { + referenceExecution_ = builderForValue.build(); + onChanged(); + } else { + referenceExecutionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder mergeReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (referenceExecutionBuilder_ == null) { + if (referenceExecution_ != null) { + referenceExecution_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(referenceExecution_).mergeFrom(value).buildPartial(); + } else { + referenceExecution_ = value; + } + onChanged(); + } else { + referenceExecutionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder clearReferenceExecution() { + if (referenceExecutionBuilder_ == null) { + referenceExecution_ = null; + onChanged(); + } else { + referenceExecution_ = null; + referenceExecutionBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getReferenceExecutionBuilder() { + + onChanged(); + return getReferenceExecutionFieldBuilder().getBuilder(); + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { + if (referenceExecutionBuilder_ != null) { + return referenceExecutionBuilder_.getMessageOrBuilder(); + } else { + return referenceExecution_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; + } + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getReferenceExecutionFieldBuilder() { + if (referenceExecutionBuilder_ == null) { + referenceExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getReferenceExecution(), + getParentForChildren(), + isClean()); + referenceExecution_ = null; + } + return referenceExecutionBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.SystemMetadata systemMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder> systemMetadataBuilder_; + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public boolean hasSystemMetadata() { + return systemMetadataBuilder_ != null || systemMetadata_ != null; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata() { + if (systemMetadataBuilder_ == null) { + return systemMetadata_ == null ? flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; + } else { + return systemMetadataBuilder_.getMessage(); + } + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public Builder setSystemMetadata(flyteidl.admin.ExecutionOuterClass.SystemMetadata value) { + if (systemMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + systemMetadata_ = value; + onChanged(); + } else { + systemMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public Builder setSystemMetadata( + flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder builderForValue) { + if (systemMetadataBuilder_ == null) { + systemMetadata_ = builderForValue.build(); + onChanged(); + } else { + systemMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public Builder mergeSystemMetadata(flyteidl.admin.ExecutionOuterClass.SystemMetadata value) { + if (systemMetadataBuilder_ == null) { + if (systemMetadata_ != null) { + systemMetadata_ = + flyteidl.admin.ExecutionOuterClass.SystemMetadata.newBuilder(systemMetadata_).mergeFrom(value).buildPartial(); + } else { + systemMetadata_ = value; + } + onChanged(); + } else { + systemMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public Builder clearSystemMetadata() { + if (systemMetadataBuilder_ == null) { + systemMetadata_ = null; + onChanged(); + } else { + systemMetadata_ = null; + systemMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder getSystemMetadataBuilder() { + + onChanged(); + return getSystemMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder() { + if (systemMetadataBuilder_ != null) { + return systemMetadataBuilder_.getMessageOrBuilder(); + } else { + return systemMetadata_ == null ? + flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; + } + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder> + getSystemMetadataFieldBuilder() { + if (systemMetadataBuilder_ == null) { + systemMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder>( + getSystemMetadata(), + getParentForChildren(), + isClean()); + systemMetadata_ = null; + } + return systemMetadataBuilder_; + } + @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:flyteidl.admin.ExecutionMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionMetadata) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionMetadata(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 flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NotificationListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NotificationList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + java.util.List + getNotificationsList(); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + flyteidl.admin.Common.Notification getNotifications(int index); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + int getNotificationsCount(); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + java.util.List + getNotificationsOrBuilderList(); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.admin.NotificationList} + */ + public static final class NotificationList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NotificationList) + NotificationListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NotificationList.newBuilder() to construct. + private NotificationList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NotificationList() { + notifications_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NotificationList( + 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)) { + notifications_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + notifications_.add( + input.readMessage(flyteidl.admin.Common.Notification.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)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 1; + private java.util.List notifications_; + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List getNotificationsList() { + return notifications_; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List + getNotificationsOrBuilderList() { + return notifications_; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public int getNotificationsCount() { + return notifications_.size(); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + return notifications_.get(index); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + return notifications_.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 < notifications_.size(); i++) { + output.writeMessage(1, notifications_.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 < notifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, notifications_.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 flyteidl.admin.ExecutionOuterClass.NotificationList)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.NotificationList other = (flyteidl.admin.ExecutionOuterClass.NotificationList) obj; + + if (!getNotificationsList() + .equals(other.getNotificationsList())) 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 (getNotificationsCount() > 0) { + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList 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 flyteidl.admin.ExecutionOuterClass.NotificationList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList 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 flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList 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(flyteidl.admin.ExecutionOuterClass.NotificationList 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 flyteidl.admin.NotificationList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NotificationList) + flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNotificationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + notificationsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.NotificationList build() { + flyteidl.admin.ExecutionOuterClass.NotificationList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.NotificationList buildPartial() { + flyteidl.admin.ExecutionOuterClass.NotificationList result = new flyteidl.admin.ExecutionOuterClass.NotificationList(this); + int from_bitField0_ = bitField0_; + if (notificationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.notifications_ = notifications_; + } else { + result.notifications_ = notificationsBuilder_.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 flyteidl.admin.ExecutionOuterClass.NotificationList) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.NotificationList other) { + if (other == flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) return this; + if (notificationsBuilder_ == null) { + if (!other.notifications_.isEmpty()) { + if (notifications_.isEmpty()) { + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNotificationsIsMutable(); + notifications_.addAll(other.notifications_); + } + onChanged(); + } + } else { + if (!other.notifications_.isEmpty()) { + if (notificationsBuilder_.isEmpty()) { + notificationsBuilder_.dispose(); + notificationsBuilder_ = null; + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000001); + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; + } else { + notificationsBuilder_.addAllMessages(other.notifications_); + } + } + } + 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 { + flyteidl.admin.ExecutionOuterClass.NotificationList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.NotificationList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List notifications_ = + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + notifications_ = new java.util.ArrayList(notifications_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; + + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List getNotificationsList() { + if (notificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notifications_); + } else { + return notificationsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public int getNotificationsCount() { + if (notificationsBuilder_ == null) { + return notifications_.size(); + } else { + return notificationsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); + } else { + return notificationsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.set(index, value); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.set(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications(flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(value); + onChanged(); + } else { + notificationsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(index, value); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications( + flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addAllNotifications( + java.lang.Iterable values) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); + onChanged(); + } else { + notificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + notificationsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder removeNotifications(int index) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.remove(index); + onChanged(); + } else { + notificationsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); } else { + return notificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List + getNotificationsOrBuilderList() { + if (notificationsBuilder_ != null) { + return notificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notifications_); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { + return getNotificationsFieldBuilder().addBuilder( + flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().addBuilder( + index, flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List + getNotificationsBuilderList() { + return getNotificationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( + notifications_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + notifications_ = null; + } + return notificationsBuilder_; + } + @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:flyteidl.admin.NotificationList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NotificationList) + private static final flyteidl.admin.ExecutionOuterClass.NotificationList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.NotificationList(); + } + + public static flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationList(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 flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + boolean hasLaunchPlan(); + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan(); + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder(); + + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); + + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata(); + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + boolean hasNotifications(); + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications(); + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder(); + + /** + *
+     * This should be set to true if all notifications are intended to be disabled for this execution.
+     * 
+ * + * bool disable_all = 6; + */ + boolean getDisableAll(); + + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + boolean hasLabels(); + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + flyteidl.admin.Common.Labels getLabels(); + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); + + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + boolean hasAnnotations(); + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + flyteidl.admin.Common.Annotations getAnnotations(); + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); + + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + boolean hasAuthRole(); + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + flyteidl.admin.Common.AuthRole getAuthRole(); + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder(); + + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + boolean hasQualityOfService(); + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + flyteidl.core.Execution.QualityOfService getQualityOfService(); + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); + + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.NotificationOverridesCase getNotificationOverridesCase(); + } + /** + *
+   * An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
+   * of an execution as it progresses across phase changes..
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionSpec} + */ + public static final class ExecutionSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionSpec) + ExecutionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionSpec.newBuilder() to construct. + private ExecutionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionSpec( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (launchPlan_ != null) { + subBuilder = launchPlan_.toBuilder(); + } + launchPlan_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(launchPlan_); + launchPlan_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.admin.ExecutionOuterClass.NotificationList.Builder subBuilder = null; + if (notificationOverridesCase_ == 5) { + subBuilder = ((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_).toBuilder(); + } + notificationOverrides_ = + input.readMessage(flyteidl.admin.ExecutionOuterClass.NotificationList.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); + notificationOverrides_ = subBuilder.buildPartial(); + } + notificationOverridesCase_ = 5; + break; + } + case 48: { + notificationOverridesCase_ = 6; + notificationOverrides_ = input.readBool(); + break; + } + case 58: { + flyteidl.admin.Common.Labels.Builder subBuilder = null; + if (labels_ != null) { + subBuilder = labels_.toBuilder(); + } + labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labels_); + labels_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + flyteidl.admin.Common.Annotations.Builder subBuilder = null; + if (annotations_ != null) { + subBuilder = annotations_.toBuilder(); + } + annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotations_); + annotations_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + flyteidl.admin.Common.AuthRole.Builder subBuilder = null; + if (authRole_ != null) { + subBuilder = authRole_.toBuilder(); + } + authRole_ = input.readMessage(flyteidl.admin.Common.AuthRole.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authRole_); + authRole_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; + if (qualityOfService_ != null) { + subBuilder = qualityOfService_.toBuilder(); + } + qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qualityOfService_); + qualityOfService_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); + } + + private int notificationOverridesCase_ = 0; + private java.lang.Object notificationOverrides_; + public enum NotificationOverridesCase + implements com.google.protobuf.Internal.EnumLite { + NOTIFICATIONS(5), + DISABLE_ALL(6), + NOTIFICATIONOVERRIDES_NOT_SET(0); + private final int value; + private NotificationOverridesCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NotificationOverridesCase valueOf(int value) { + return forNumber(value); + } + + public static NotificationOverridesCase forNumber(int value) { + switch (value) { + case 5: return NOTIFICATIONS; + case 6: return DISABLE_ALL; + case 0: return NOTIFICATIONOVERRIDES_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public NotificationOverridesCase + getNotificationOverridesCase() { + return NotificationOverridesCase.forNumber( + notificationOverridesCase_); + } + + public static final int LAUNCH_PLAN_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_; + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public boolean hasLaunchPlan() { + return launchPlan_ != null; + } + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { + return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; + } + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { + return getLaunchPlan(); + } + + public static final int INPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Literals.LiteralMap inputs_; + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getInputs() { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { + return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 5; + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public boolean hasNotifications() { + return notificationOverridesCase_ == 5; + } + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + + public static final int DISABLE_ALL_FIELD_NUMBER = 6; + /** + *
+     * This should be set to true if all notifications are intended to be disabled for this execution.
+     * 
+ * + * bool disable_all = 6; + */ + public boolean getDisableAll() { + if (notificationOverridesCase_ == 6) { + return (java.lang.Boolean) notificationOverrides_; + } + return false; + } + + public static final int LABELS_FIELD_NUMBER = 7; + private flyteidl.admin.Common.Labels labels_; + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public boolean hasLabels() { + return labels_ != null; + } + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.Labels getLabels() { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + return getLabels(); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 8; + private flyteidl.admin.Common.Annotations annotations_; + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public boolean hasAnnotations() { + return annotations_ != null; + } + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + return getAnnotations(); + } + + public static final int AUTH_ROLE_FIELD_NUMBER = 16; + private flyteidl.admin.Common.AuthRole authRole_; + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public boolean hasAuthRole() { + return authRole_ != null; + } + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public flyteidl.admin.Common.AuthRole getAuthRole() { + return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { + return getAuthRole(); + } + + public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 17; + private flyteidl.core.Execution.QualityOfService qualityOfService_; + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public boolean hasQualityOfService() { + return qualityOfService_ != null; + } + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + return getQualityOfService(); + } + + 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 (launchPlan_ != null) { + output.writeMessage(1, getLaunchPlan()); + } + if (inputs_ != null) { + output.writeMessage(2, getInputs()); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + if (notificationOverridesCase_ == 5) { + output.writeMessage(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); + } + if (notificationOverridesCase_ == 6) { + output.writeBool( + 6, (boolean)((java.lang.Boolean) notificationOverrides_)); + } + if (labels_ != null) { + output.writeMessage(7, getLabels()); + } + if (annotations_ != null) { + output.writeMessage(8, getAnnotations()); + } + if (authRole_ != null) { + output.writeMessage(16, getAuthRole()); + } + if (qualityOfService_ != null) { + output.writeMessage(17, getQualityOfService()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (launchPlan_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLaunchPlan()); + } + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInputs()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + if (notificationOverridesCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); + } + if (notificationOverridesCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 6, (boolean)((java.lang.Boolean) notificationOverrides_)); + } + if (labels_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getLabels()); + } + if (annotations_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAnnotations()); + } + if (authRole_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getAuthRole()); + } + if (qualityOfService_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getQualityOfService()); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionSpec other = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) obj; + + if (hasLaunchPlan() != other.hasLaunchPlan()) return false; + if (hasLaunchPlan()) { + if (!getLaunchPlan() + .equals(other.getLaunchPlan())) return false; + } + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasLabels() != other.hasLabels()) return false; + if (hasLabels()) { + if (!getLabels() + .equals(other.getLabels())) return false; + } + if (hasAnnotations() != other.hasAnnotations()) return false; + if (hasAnnotations()) { + if (!getAnnotations() + .equals(other.getAnnotations())) return false; + } + if (hasAuthRole() != other.hasAuthRole()) return false; + if (hasAuthRole()) { + if (!getAuthRole() + .equals(other.getAuthRole())) return false; + } + if (hasQualityOfService() != other.hasQualityOfService()) return false; + if (hasQualityOfService()) { + if (!getQualityOfService() + .equals(other.getQualityOfService())) return false; + } + if (!getNotificationOverridesCase().equals(other.getNotificationOverridesCase())) return false; + switch (notificationOverridesCase_) { + case 5: + if (!getNotifications() + .equals(other.getNotifications())) return false; + break; + case 6: + if (getDisableAll() + != other.getDisableAll()) 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(); + if (hasLaunchPlan()) { + hash = (37 * hash) + LAUNCH_PLAN_FIELD_NUMBER; + hash = (53 * hash) + getLaunchPlan().hashCode(); + } + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasLabels()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabels().hashCode(); + } + if (hasAnnotations()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotations().hashCode(); + } + if (hasAuthRole()) { + hash = (37 * hash) + AUTH_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAuthRole().hashCode(); + } + if (hasQualityOfService()) { + hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getQualityOfService().hashCode(); + } + switch (notificationOverridesCase_) { + case 5: + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotifications().hashCode(); + break; + case 6: + hash = (37 * hash) + DISABLE_ALL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableAll()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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(flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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 ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
+     * of an execution as it progresses across phase changes..
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionSpec) + flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionSpec.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 (launchPlanBuilder_ == null) { + launchPlan_ = null; + } else { + launchPlan_ = null; + launchPlanBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (labelsBuilder_ == null) { + labels_ = null; + } else { + labels_ = null; + labelsBuilder_ = null; + } + if (annotationsBuilder_ == null) { + annotations_ = null; + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + if (authRoleBuilder_ == null) { + authRole_ = null; + } else { + authRole_ = null; + authRoleBuilder_ = null; + } + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec build() { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(this); + if (launchPlanBuilder_ == null) { + result.launchPlan_ = launchPlan_; + } else { + result.launchPlan_ = launchPlanBuilder_.build(); + } + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (notificationOverridesCase_ == 5) { + if (notificationsBuilder_ == null) { + result.notificationOverrides_ = notificationOverrides_; + } else { + result.notificationOverrides_ = notificationsBuilder_.build(); + } + } + if (notificationOverridesCase_ == 6) { + result.notificationOverrides_ = notificationOverrides_; + } + if (labelsBuilder_ == null) { + result.labels_ = labels_; + } else { + result.labels_ = labelsBuilder_.build(); + } + if (annotationsBuilder_ == null) { + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + if (authRoleBuilder_ == null) { + result.authRole_ = authRole_; + } else { + result.authRole_ = authRoleBuilder_.build(); + } + if (qualityOfServiceBuilder_ == null) { + result.qualityOfService_ = qualityOfService_; + } else { + result.qualityOfService_ = qualityOfServiceBuilder_.build(); + } + result.notificationOverridesCase_ = notificationOverridesCase_; + 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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionSpec other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance()) return this; + if (other.hasLaunchPlan()) { + mergeLaunchPlan(other.getLaunchPlan()); + } + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasLabels()) { + mergeLabels(other.getLabels()); + } + if (other.hasAnnotations()) { + mergeAnnotations(other.getAnnotations()); + } + if (other.hasAuthRole()) { + mergeAuthRole(other.getAuthRole()); + } + if (other.hasQualityOfService()) { + mergeQualityOfService(other.getQualityOfService()); + } + switch (other.getNotificationOverridesCase()) { + case NOTIFICATIONS: { + mergeNotifications(other.getNotifications()); + break; + } + case DISABLE_ALL: { + setDisableAll(other.getDisableAll()); + break; + } + case NOTIFICATIONOVERRIDES_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 { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int notificationOverridesCase_ = 0; + private java.lang.Object notificationOverrides_; + public NotificationOverridesCase + getNotificationOverridesCase() { + return NotificationOverridesCase.forNumber( + notificationOverridesCase_); + } + + public Builder clearNotificationOverrides() { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanBuilder_; + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public boolean hasLaunchPlan() { + return launchPlanBuilder_ != null || launchPlan_ != null; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { + if (launchPlanBuilder_ == null) { + return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; + } else { + return launchPlanBuilder_.getMessage(); + } + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder setLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchPlanBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + launchPlan_ = value; + onChanged(); + } else { + launchPlanBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder setLaunchPlan( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (launchPlanBuilder_ == null) { + launchPlan_ = builderForValue.build(); + onChanged(); + } else { + launchPlanBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder mergeLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchPlanBuilder_ == null) { + if (launchPlan_ != null) { + launchPlan_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(launchPlan_).mergeFrom(value).buildPartial(); + } else { + launchPlan_ = value; + } + onChanged(); + } else { + launchPlanBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder clearLaunchPlan() { + if (launchPlanBuilder_ == null) { + launchPlan_ = null; + onChanged(); + } else { + launchPlan_ = null; + launchPlanBuilder_ = null; + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanBuilder() { + + onChanged(); + return getLaunchPlanFieldBuilder().getBuilder(); + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { + if (launchPlanBuilder_ != null) { + return launchPlanBuilder_.getMessageOrBuilder(); + } else { + return launchPlan_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; + } + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getLaunchPlanFieldBuilder() { + if (launchPlanBuilder_ == null) { + launchPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getLaunchPlan(), + getParentForChildren(), + isClean()); + launchPlan_ = null; + } + return launchPlanBuilder_; + } + + private flyteidl.core.Literals.LiteralMap inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> notificationsBuilder_; + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public boolean hasNotifications() { + return notificationOverridesCase_ == 5; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { + if (notificationsBuilder_ == null) { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } else { + if (notificationOverridesCase_ == 5) { + return notificationsBuilder_.getMessage(); + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder setNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notificationOverrides_ = value; + onChanged(); + } else { + notificationsBuilder_.setMessage(value); + } + notificationOverridesCase_ = 5; + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder setNotifications( + flyteidl.admin.ExecutionOuterClass.NotificationList.Builder builderForValue) { + if (notificationsBuilder_ == null) { + notificationOverrides_ = builderForValue.build(); + onChanged(); + } else { + notificationsBuilder_.setMessage(builderForValue.build()); + } + notificationOverridesCase_ = 5; + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder mergeNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { + if (notificationsBuilder_ == null) { + if (notificationOverridesCase_ == 5 && + notificationOverrides_ != flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) { + notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_) + .mergeFrom(value).buildPartial(); + } else { + notificationOverrides_ = value; + } + onChanged(); + } else { + if (notificationOverridesCase_ == 5) { + notificationsBuilder_.mergeFrom(value); + } + notificationsBuilder_.setMessage(value); + } + notificationOverridesCase_ = 5; + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + if (notificationOverridesCase_ == 5) { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + onChanged(); + } + } else { + if (notificationOverridesCase_ == 5) { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + } + notificationsBuilder_.clear(); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationList.Builder getNotificationsBuilder() { + return getNotificationsFieldBuilder().getBuilder(); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { + if ((notificationOverridesCase_ == 5) && (notificationsBuilder_ != null)) { + return notificationsBuilder_.getMessageOrBuilder(); + } else { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + if (!(notificationOverridesCase_ == 5)) { + notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + notificationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder>( + (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_, + getParentForChildren(), + isClean()); + notificationOverrides_ = null; + } + notificationOverridesCase_ = 5; + onChanged();; + return notificationsBuilder_; + } + + /** + *
+       * This should be set to true if all notifications are intended to be disabled for this execution.
+       * 
+ * + * bool disable_all = 6; + */ + public boolean getDisableAll() { + if (notificationOverridesCase_ == 6) { + return (java.lang.Boolean) notificationOverrides_; + } + return false; + } + /** + *
+       * This should be set to true if all notifications are intended to be disabled for this execution.
+       * 
+ * + * bool disable_all = 6; + */ + public Builder setDisableAll(boolean value) { + notificationOverridesCase_ = 6; + notificationOverrides_ = value; + onChanged(); + return this; + } + /** + *
+       * This should be set to true if all notifications are intended to be disabled for this execution.
+       * 
+ * + * bool disable_all = 6; + */ + public Builder clearDisableAll() { + if (notificationOverridesCase_ == 6) { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + onChanged(); + } + return this; + } + + private flyteidl.admin.Common.Labels labels_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public boolean hasLabels() { + return labelsBuilder_ != null || labels_ != null; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.Labels getLabels() { + if (labelsBuilder_ == null) { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } else { + return labelsBuilder_.getMessage(); + } + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder setLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labels_ = value; + onChanged(); + } else { + labelsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder setLabels( + flyteidl.admin.Common.Labels.Builder builderForValue) { + if (labelsBuilder_ == null) { + labels_ = builderForValue.build(); + onChanged(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder mergeLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (labels_ != null) { + labels_ = + flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); + } else { + labels_ = value; + } + onChanged(); + } else { + labelsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder clearLabels() { + if (labelsBuilder_ == null) { + labels_ = null; + onChanged(); + } else { + labels_ = null; + labelsBuilder_ = null; + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { + + onChanged(); + return getLabelsFieldBuilder().getBuilder(); + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + if (labelsBuilder_ != null) { + return labelsBuilder_.getMessageOrBuilder(); + } else { + return labels_ == null ? + flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> + getLabelsFieldBuilder() { + if (labelsBuilder_ == null) { + labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( + getLabels(), + getParentForChildren(), + isClean()); + labels_ = null; + } + return labelsBuilder_; + } + + private flyteidl.admin.Common.Annotations annotations_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public boolean hasAnnotations() { + return annotationsBuilder_ != null || annotations_ != null; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + if (annotationsBuilder_ == null) { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } else { + return annotationsBuilder_.getMessage(); + } + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotations_ = value; + onChanged(); + } else { + annotationsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder setAnnotations( + flyteidl.admin.Common.Annotations.Builder builderForValue) { + if (annotationsBuilder_ == null) { + annotations_ = builderForValue.build(); + onChanged(); + } else { + annotationsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (annotations_ != null) { + annotations_ = + flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); + } else { + annotations_ = value; + } + onChanged(); + } else { + annotationsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = null; + onChanged(); + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { + + onChanged(); + return getAnnotationsFieldBuilder().getBuilder(); + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilder(); + } else { + return annotations_ == null ? + flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> + getAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( + getAnnotations(), + getParentForChildren(), + isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + + private flyteidl.admin.Common.AuthRole authRole_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> authRoleBuilder_; + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public boolean hasAuthRole() { + return authRoleBuilder_ != null || authRole_ != null; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public flyteidl.admin.Common.AuthRole getAuthRole() { + if (authRoleBuilder_ == null) { + return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } else { + return authRoleBuilder_.getMessage(); + } + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public Builder setAuthRole(flyteidl.admin.Common.AuthRole value) { + if (authRoleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authRole_ = value; + onChanged(); + } else { + authRoleBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public Builder setAuthRole( + flyteidl.admin.Common.AuthRole.Builder builderForValue) { + if (authRoleBuilder_ == null) { + authRole_ = builderForValue.build(); + onChanged(); + } else { + authRoleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public Builder mergeAuthRole(flyteidl.admin.Common.AuthRole value) { + if (authRoleBuilder_ == null) { + if (authRole_ != null) { + authRole_ = + flyteidl.admin.Common.AuthRole.newBuilder(authRole_).mergeFrom(value).buildPartial(); + } else { + authRole_ = value; + } + onChanged(); + } else { + authRoleBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public Builder clearAuthRole() { + if (authRoleBuilder_ == null) { + authRole_ = null; + onChanged(); + } else { + authRole_ = null; + authRoleBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public flyteidl.admin.Common.AuthRole.Builder getAuthRoleBuilder() { + + onChanged(); + return getAuthRoleFieldBuilder().getBuilder(); + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { + if (authRoleBuilder_ != null) { + return authRoleBuilder_.getMessageOrBuilder(); + } else { + return authRole_ == null ? + flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> + getAuthRoleFieldBuilder() { + if (authRoleBuilder_ == null) { + authRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder>( + getAuthRole(), + getParentForChildren(), + isClean()); + authRole_ = null; + } + return authRoleBuilder_; + } + + private flyteidl.core.Execution.QualityOfService qualityOfService_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public boolean hasQualityOfService() { + return qualityOfServiceBuilder_ != null || qualityOfService_ != null; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } else { + return qualityOfServiceBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualityOfService_ = value; + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public Builder setQualityOfService( + flyteidl.core.Execution.QualityOfService.Builder builderForValue) { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = builderForValue.build(); + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (qualityOfService_ != null) { + qualityOfService_ = + flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); + } else { + qualityOfService_ = value; + } + onChanged(); + } else { + qualityOfServiceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public Builder clearQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + onChanged(); + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { + + onChanged(); + return getQualityOfServiceFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if (qualityOfServiceBuilder_ != null) { + return qualityOfServiceBuilder_.getMessageOrBuilder(); + } else { + return qualityOfService_ == null ? + flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> + getQualityOfServiceFieldBuilder() { + if (qualityOfServiceBuilder_ == null) { + qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( + getQualityOfService(), + getParentForChildren(), + isClean()); + qualityOfService_ = null; + } + return qualityOfServiceBuilder_; + } + @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:flyteidl.admin.ExecutionSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionSpec) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionSpec(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 flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionTerminateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + java.lang.String getCause(); + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + com.google.protobuf.ByteString + getCauseBytes(); + } + /** + *
+   * Request to terminate an in-progress execution.  This action is irreversible.
+   * If an execution is already terminated, this request will simply be a no-op.
+   * This request will fail if it references a non-existent execution.
+   * If the request succeeds the phase "ABORTED" will be recorded for the termination
+   * with the optional cause added to the output_result.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} + */ + public static final class ExecutionTerminateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateRequest) + ExecutionTerminateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionTerminateRequest.newBuilder() to construct. + private ExecutionTerminateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionTerminateRequest() { + cause_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionTerminateRequest( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + cause_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int CAUSE_FIELD_NUMBER = 2; + private volatile java.lang.Object cause_; + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + 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(); + cause_ = s; + return s; + } + } + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = 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 (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getCauseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cause_); + } + 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 (!getCauseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cause_); + } + 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getCause() + .equals(other.getCause())) 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) + CAUSE_FIELD_NUMBER; + hash = (53 * hash) + getCause().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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; + } + /** + *
+     * Request to terminate an in-progress execution.  This action is irreversible.
+     * If an execution is already terminated, this request will simply be a no-op.
+     * This request will fail if it references a non-existent execution.
+     * If the request succeeds the phase "ABORTED" will be recorded for the termination
+     * with the optional cause added to the output_result.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + cause_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.cause_ = cause_; + 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getCause().isEmpty()) { + cause_ = other.cause_; + 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 { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object cause_ = ""; + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cause_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public Builder setCause( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cause_ = value; + onChanged(); + return this; + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public Builder clearCause() { + + cause_ = getDefaultInstance().getCause(); + onChanged(); + return this; + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public Builder setCauseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cause_ = 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:flyteidl.admin.ExecutionTerminateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionTerminateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionTerminateRequest(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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionTerminateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} + */ + public static final class ExecutionTerminateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateResponse) + ExecutionTerminateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionTerminateResponse.newBuilder() to construct. + private ExecutionTerminateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionTerminateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionTerminateResponse( + 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; + 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateResponse) + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse build() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(this); + 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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.ExecutionTerminateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateResponse) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionTerminateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionTerminateResponse(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 flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Request structure to fetch inputs and output urls for an execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} + */ + public static final class WorkflowExecutionGetDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) + WorkflowExecutionGetDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetDataRequest.newBuilder() to construct. + private WorkflowExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetDataRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetDataRequest( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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; + } + /** + *
+     * Request structure to fetch inputs and output urls for an execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.WorkflowExecutionGetDataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataRequest) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionGetDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetDataRequest(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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + boolean hasOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + flyteidl.admin.Common.UrlBlob getOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); + + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + boolean hasInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + flyteidl.admin.Common.UrlBlob getInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); + } + /** + *
+   * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} + */ + public static final class WorkflowExecutionGetDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) + WorkflowExecutionGetDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetDataResponse.newBuilder() to construct. + private WorkflowExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetDataResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetDataResponse( + 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: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = 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 flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); + } + + public static final int OUTPUTS_FIELD_NUMBER = 1; + private flyteidl.admin.Common.UrlBlob outputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + public static final int INPUTS_FIELD_NUMBER = 2; + private flyteidl.admin.Common.UrlBlob inputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + 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 (outputs_ != null) { + output.writeMessage(1, getOutputs()); + } + if (inputs_ != null) { + output.writeMessage(2, getInputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOutputs()); + } + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInputs()); + } + 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) obj; + + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) return false; + } + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) 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 (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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; + } + /** + *
+     * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.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 (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(this); + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance()) return this; + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + 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 { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.UrlBlob outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public Builder setOutputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private flyteidl.admin.Common.UrlBlob inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public Builder setInputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + @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:flyteidl.admin.WorkflowExecutionGetDataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataResponse) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionGetDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetDataResponse(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 flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Execution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Execution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_AbortMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_SystemMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NotificationList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NotificationList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_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\036flyteidl/admin/execution.proto\022\016flytei" + + "dl.admin\032\033flyteidl/admin/common.proto\032\034f" + + "lyteidl/core/literals.proto\032\035flyteidl/co" + + "re/execution.proto\032\036flyteidl/core/identi" + + "fier.proto\032\036google/protobuf/duration.pro" + + "to\032\037google/protobuf/timestamp.proto\"\237\001\n\026" + + "ExecutionCreateRequest\022\017\n\007project\030\001 \001(\t\022" + + "\016\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022+\n\004spec\030\004 " + + "\001(\0132\035.flyteidl.admin.ExecutionSpec\022)\n\006in" + + "puts\030\005 \001(\0132\031.flyteidl.core.LiteralMap\"`\n" + + "\030ExecutionRelaunchRequest\0226\n\002id\030\001 \001(\0132*." + + "flyteidl.core.WorkflowExecutionIdentifie" + + "r\022\014\n\004name\030\003 \001(\t\"Q\n\027ExecutionCreateRespon" + + "se\0226\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowE" + + "xecutionIdentifier\"U\n\033WorkflowExecutionG" + + "etRequest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.Wo" + + "rkflowExecutionIdentifier\"\243\001\n\tExecution\022" + + "6\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExec" + + "utionIdentifier\022+\n\004spec\030\002 \001(\0132\035.flyteidl" + + ".admin.ExecutionSpec\0221\n\007closure\030\003 \001(\0132 ." + + "flyteidl.admin.ExecutionClosure\"M\n\rExecu" + + "tionList\022-\n\nexecutions\030\001 \003(\0132\031.flyteidl." + + "admin.Execution\022\r\n\005token\030\002 \001(\t\"T\n\016Litera" + + "lMapBlob\022+\n\006values\030\001 \001(\0132\031.flyteidl.core" + + ".LiteralMapH\000\022\r\n\003uri\030\002 \001(\tH\000B\006\n\004data\"1\n\r" + + "AbortMetadata\022\r\n\005cause\030\001 \001(\t\022\021\n\tprincipa" + + "l\030\002 \001(\t\"\353\004\n\020ExecutionClosure\0221\n\007outputs\030" + + "\001 \001(\0132\036.flyteidl.admin.LiteralMapBlobH\000\022" + + ".\n\005error\030\002 \001(\0132\035.flyteidl.core.Execution" + + "ErrorH\000\022\031\n\013abort_cause\030\n \001(\tB\002\030\001H\000\0227\n\016ab" + + "ort_metadata\030\014 \001(\0132\035.flyteidl.admin.Abor" + + "tMetadataH\000\0226\n\017computed_inputs\030\003 \001(\0132\031.f" + + "lyteidl.core.LiteralMapB\002\030\001\0225\n\005phase\030\004 \001" + + "(\0162&.flyteidl.core.WorkflowExecution.Pha" + + "se\022.\n\nstarted_at\030\005 \001(\0132\032.google.protobuf" + + ".Timestamp\022+\n\010duration\030\006 \001(\0132\031.google.pr" + + "otobuf.Duration\022.\n\ncreated_at\030\007 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022.\n\nupdated_at\030\010 " + + "\001(\0132\032.google.protobuf.Timestamp\0223\n\rnotif" + + "ications\030\t \003(\0132\034.flyteidl.admin.Notifica" + + "tion\022.\n\013workflow_id\030\013 \001(\0132\031.flyteidl.cor" + + "e.IdentifierB\017\n\routput_result\"+\n\016SystemM" + + "etadata\022\031\n\021execution_cluster\030\001 \001(\t\"\313\003\n\021E" + + "xecutionMetadata\022=\n\004mode\030\001 \001(\0162/.flyteid" + + "l.admin.ExecutionMetadata.ExecutionMode\022" + + "\021\n\tprincipal\030\002 \001(\t\022\017\n\007nesting\030\003 \001(\r\0220\n\014s" + + "cheduled_at\030\004 \001(\0132\032.google.protobuf.Time" + + "stamp\022E\n\025parent_node_execution\030\005 \001(\0132&.f" + + "lyteidl.core.NodeExecutionIdentifier\022G\n\023" + + "reference_execution\030\020 \001(\0132*.flyteidl.cor" + + "e.WorkflowExecutionIdentifier\0227\n\017system_" + + "metadata\030\021 \001(\0132\036.flyteidl.admin.SystemMe" + + "tadata\"X\n\rExecutionMode\022\n\n\006MANUAL\020\000\022\r\n\tS" + + "CHEDULED\020\001\022\n\n\006SYSTEM\020\002\022\014\n\010RELAUNCH\020\003\022\022\n\016" + + "CHILD_WORKFLOW\020\004\"G\n\020NotificationList\0223\n\r" + + "notifications\030\001 \003(\0132\034.flyteidl.admin.Not" + + "ification\"\331\003\n\rExecutionSpec\022.\n\013launch_pl" + + "an\030\001 \001(\0132\031.flyteidl.core.Identifier\022-\n\006i" + + "nputs\030\002 \001(\0132\031.flyteidl.core.LiteralMapB\002" + + "\030\001\0223\n\010metadata\030\003 \001(\0132!.flyteidl.admin.Ex" + + "ecutionMetadata\0229\n\rnotifications\030\005 \001(\0132 " + + ".flyteidl.admin.NotificationListH\000\022\025\n\013di" + + "sable_all\030\006 \001(\010H\000\022&\n\006labels\030\007 \001(\0132\026.flyt" + + "eidl.admin.Labels\0220\n\013annotations\030\010 \001(\0132\033" + + ".flyteidl.admin.Annotations\022+\n\tauth_role" + + "\030\020 \001(\0132\030.flyteidl.admin.AuthRole\022;\n\022qual" + + "ity_of_service\030\021 \001(\0132\037.flyteidl.core.Qua" + + "lityOfServiceB\030\n\026notification_overridesJ" + + "\004\010\004\020\005\"b\n\031ExecutionTerminateRequest\0226\n\002id" + + "\030\001 \001(\0132*.flyteidl.core.WorkflowExecution" + + "Identifier\022\r\n\005cause\030\002 \001(\t\"\034\n\032ExecutionTe" + + "rminateResponse\"Y\n\037WorkflowExecutionGetD" + + "ataRequest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.W" + + "orkflowExecutionIdentifier\"u\n WorkflowEx" + + "ecutionGetDataResponse\022(\n\007outputs\030\001 \001(\0132" + + "\027.flyteidl.admin.UrlBlob\022\'\n\006inputs\030\002 \001(\013" + + "2\027.flyteidl.admin.UrlBlobB3Z1github.com/" + + "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + + "proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Name", "Spec", "Inputs", }); + internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor, + new java.lang.String[] { "Id", "Name", }); + internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_Execution_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_Execution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Execution_descriptor, + new java.lang.String[] { "Id", "Spec", "Closure", }); + internal_static_flyteidl_admin_ExecutionList_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionList_descriptor, + new java.lang.String[] { "Executions", "Token", }); + internal_static_flyteidl_admin_LiteralMapBlob_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LiteralMapBlob_descriptor, + new java.lang.String[] { "Values", "Uri", "Data", }); + internal_static_flyteidl_admin_AbortMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_AbortMetadata_descriptor, + new java.lang.String[] { "Cause", "Principal", }); + internal_static_flyteidl_admin_ExecutionClosure_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionClosure_descriptor, + new java.lang.String[] { "Outputs", "Error", "AbortCause", "AbortMetadata", "ComputedInputs", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "Notifications", "WorkflowId", "OutputResult", }); + internal_static_flyteidl_admin_SystemMetadata_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_SystemMetadata_descriptor, + new java.lang.String[] { "ExecutionCluster", }); + internal_static_flyteidl_admin_ExecutionMetadata_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionMetadata_descriptor, + new java.lang.String[] { "Mode", "Principal", "Nesting", "ScheduledAt", "ParentNodeExecution", "ReferenceExecution", "SystemMetadata", }); + internal_static_flyteidl_admin_NotificationList_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_admin_NotificationList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NotificationList_descriptor, + new java.lang.String[] { "Notifications", }); + internal_static_flyteidl_admin_ExecutionSpec_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionSpec_descriptor, + new java.lang.String[] { "LaunchPlan", "Inputs", "Metadata", "Notifications", "DisableAll", "Labels", "Annotations", "AuthRole", "QualityOfService", "NotificationOverrides", }); + internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor, + new java.lang.String[] { "Id", "Cause", }); + internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor, + new java.lang.String[] { "Outputs", "Inputs", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java b/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java new file mode 100644 index 000000000..65080c0fe --- /dev/null +++ b/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java @@ -0,0 +1,13189 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/launch_plan.proto + +package flyteidl.admin; + +public final class LaunchPlanOuterClass { + private LaunchPlanOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * By default any launch plan regardless of state can be used to launch a workflow execution.
+   * However, at most one version of a launch plan
+   * (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be
+   * active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier
+   * group will be observed and trigger executions at a defined cadence.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.LaunchPlanState} + */ + public enum LaunchPlanState + implements com.google.protobuf.ProtocolMessageEnum { + /** + * INACTIVE = 0; + */ + INACTIVE(0), + /** + * ACTIVE = 1; + */ + ACTIVE(1), + UNRECOGNIZED(-1), + ; + + /** + * INACTIVE = 0; + */ + public static final int INACTIVE_VALUE = 0; + /** + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LaunchPlanState valueOf(int value) { + return forNumber(value); + } + + public static LaunchPlanState forNumber(int value) { + switch (value) { + case 0: return INACTIVE; + case 1: return ACTIVE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LaunchPlanState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LaunchPlanState findValueByNumber(int number) { + return LaunchPlanState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.admin.LaunchPlanOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final LaunchPlanState[] VALUES = values(); + + public static LaunchPlanState 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 LaunchPlanState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.LaunchPlanState) + } + + public interface LaunchPlanCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required
+   * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
+   * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} + */ + public static final class LaunchPlanCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateRequest) + LaunchPlanCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanCreateRequest.newBuilder() to construct. + private LaunchPlanCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanCreateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanCreateRequest( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + 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 (spec_ != null) { + output.writeMessage(2, getSpec()); + } + 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 (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) 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(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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; + } + /** + *
+     * Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required
+     * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
+     * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateRequest) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @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:flyteidl.admin.LaunchPlanCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanCreateRequest(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} + */ + public static final class LaunchPlanCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateResponse) + LaunchPlanCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanCreateResponse.newBuilder() to construct. + private LaunchPlanCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanCreateResponse( + 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; + 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateResponse) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(this); + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.LaunchPlanCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateResponse) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanCreateResponse(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlan) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + boolean hasSpec(); + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); + + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + boolean hasClosure(); + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure(); + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * A LaunchPlan provides the capability to templatize workflow executions.
+   * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
+   * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
+   * definition doesn't necessarily have a default value for said input.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlan} + */ + public static final class LaunchPlan extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlan) + LaunchPlanOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlan.newBuilder() to construct. + private LaunchPlan(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlan() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlan( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_; + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { + return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + 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 (spec_ != null) { + output.writeMessage(2, getSpec()); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + 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 (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) 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(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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 LaunchPlan provides the capability to templatize workflow executions.
+     * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
+     * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
+     * definition doesn't necessarily have a default value for said input.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlan} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlan) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlan)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> closureBuilder_; + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; + } + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + @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:flyteidl.admin.LaunchPlan) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlan) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlan DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlan parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlan(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + java.util.List + getLaunchPlansList(); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + int getLaunchPlansCount(); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + java.util.List + getLaunchPlansOrBuilderList(); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Response object for list launch plan requests.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanList} + */ + public static final class LaunchPlanList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanList) + LaunchPlanListOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanList.newBuilder() to construct. + private LaunchPlanList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanList() { + launchPlans_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanList( + 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)) { + launchPlans_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + launchPlans_.add( + input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); + } + + private int bitField0_; + public static final int LAUNCH_PLANS_FIELD_NUMBER = 1; + private java.util.List launchPlans_; + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List getLaunchPlansList() { + return launchPlans_; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List + getLaunchPlansOrBuilderList() { + return launchPlans_; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public int getLaunchPlansCount() { + return launchPlans_.size(); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { + return launchPlans_.get(index); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( + int index) { + return launchPlans_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < launchPlans_.size(); i++) { + output.writeMessage(1, launchPlans_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < launchPlans_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, launchPlans_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) obj; + + if (!getLaunchPlansList() + .equals(other.getLaunchPlansList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getLaunchPlansCount() > 0) { + hash = (37 * hash) + LAUNCH_PLANS_FIELD_NUMBER; + hash = (53 * hash) + getLaunchPlansList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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; + } + /** + *
+     * Response object for list launch plan requests.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanList) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLaunchPlansFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (launchPlansBuilder_ == null) { + launchPlans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + launchPlansBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (launchPlansBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.launchPlans_ = launchPlans_; + } else { + result.launchPlans_ = launchPlansBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance()) return this; + if (launchPlansBuilder_ == null) { + if (!other.launchPlans_.isEmpty()) { + if (launchPlans_.isEmpty()) { + launchPlans_ = other.launchPlans_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLaunchPlansIsMutable(); + launchPlans_.addAll(other.launchPlans_); + } + onChanged(); + } + } else { + if (!other.launchPlans_.isEmpty()) { + if (launchPlansBuilder_.isEmpty()) { + launchPlansBuilder_.dispose(); + launchPlansBuilder_ = null; + launchPlans_ = other.launchPlans_; + bitField0_ = (bitField0_ & ~0x00000001); + launchPlansBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLaunchPlansFieldBuilder() : null; + } else { + launchPlansBuilder_.addAllMessages(other.launchPlans_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List launchPlans_ = + java.util.Collections.emptyList(); + private void ensureLaunchPlansIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + launchPlans_ = new java.util.ArrayList(launchPlans_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> launchPlansBuilder_; + + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List getLaunchPlansList() { + if (launchPlansBuilder_ == null) { + return java.util.Collections.unmodifiableList(launchPlans_); + } else { + return launchPlansBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public int getLaunchPlansCount() { + if (launchPlansBuilder_ == null) { + return launchPlans_.size(); + } else { + return launchPlansBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { + if (launchPlansBuilder_ == null) { + return launchPlans_.get(index); + } else { + return launchPlansBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder setLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { + if (launchPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchPlansIsMutable(); + launchPlans_.set(index, value); + onChanged(); + } else { + launchPlansBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder setLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.set(index, builderForValue.build()); + onChanged(); + } else { + launchPlansBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { + if (launchPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchPlansIsMutable(); + launchPlans_.add(value); + onChanged(); + } else { + launchPlansBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { + if (launchPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchPlansIsMutable(); + launchPlans_.add(index, value); + onChanged(); + } else { + launchPlansBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.add(builderForValue.build()); + onChanged(); + } else { + launchPlansBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.add(index, builderForValue.build()); + onChanged(); + } else { + launchPlansBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addAllLaunchPlans( + java.lang.Iterable values) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, launchPlans_); + onChanged(); + } else { + launchPlansBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder clearLaunchPlans() { + if (launchPlansBuilder_ == null) { + launchPlans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + launchPlansBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder removeLaunchPlans(int index) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.remove(index); + onChanged(); + } else { + launchPlansBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder getLaunchPlansBuilder( + int index) { + return getLaunchPlansFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( + int index) { + if (launchPlansBuilder_ == null) { + return launchPlans_.get(index); } else { + return launchPlansBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List + getLaunchPlansOrBuilderList() { + if (launchPlansBuilder_ != null) { + return launchPlansBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(launchPlans_); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder() { + return getLaunchPlansFieldBuilder().addBuilder( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder( + int index) { + return getLaunchPlansFieldBuilder().addBuilder( + index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List + getLaunchPlansBuilderList() { + return getLaunchPlansFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> + getLaunchPlansFieldBuilder() { + if (launchPlansBuilder_ == null) { + launchPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder>( + launchPlans_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + launchPlans_ = null; + } + return launchPlansBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.LaunchPlanList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanList) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanList(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AuthOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Auth) + com.google.protobuf.MessageOrBuilder { + + /** + * string assumable_iam_role = 1; + */ + java.lang.String getAssumableIamRole(); + /** + * string assumable_iam_role = 1; + */ + com.google.protobuf.ByteString + getAssumableIamRoleBytes(); + + /** + * string kubernetes_service_account = 2; + */ + java.lang.String getKubernetesServiceAccount(); + /** + * string kubernetes_service_account = 2; + */ + com.google.protobuf.ByteString + getKubernetesServiceAccountBytes(); + + public flyteidl.admin.LaunchPlanOuterClass.Auth.MethodCase getMethodCase(); + } + /** + *
+   * Defines permissions associated with executions created by this launch plan spec.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Auth} + */ + public static final class Auth extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Auth) + AuthOrBuilder { + private static final long serialVersionUID = 0L; + // Use Auth.newBuilder() to construct. + private Auth(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Auth() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Auth( + 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(); + methodCase_ = 1; + method_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + methodCase_ = 2; + method_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); + } + + private int methodCase_ = 0; + private java.lang.Object method_; + public enum MethodCase + implements com.google.protobuf.Internal.EnumLite { + ASSUMABLE_IAM_ROLE(1), + KUBERNETES_SERVICE_ACCOUNT(2), + METHOD_NOT_SET(0); + private final int value; + private MethodCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MethodCase valueOf(int value) { + return forNumber(value); + } + + public static MethodCase forNumber(int value) { + switch (value) { + case 1: return ASSUMABLE_IAM_ROLE; + case 2: return KUBERNETES_SERVICE_ACCOUNT; + case 0: return METHOD_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public MethodCase + getMethodCase() { + return MethodCase.forNumber( + methodCase_); + } + + public static final int ASSUMABLE_IAM_ROLE_FIELD_NUMBER = 1; + /** + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + 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(); + if (methodCase_ == 1) { + method_ = s; + } + return s; + } + } + /** + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 1) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + /** + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + 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(); + if (methodCase_ == 2) { + method_ = s; + } + return s; + } + } + /** + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 2) { + method_ = 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 (methodCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); + } + if (methodCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (methodCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); + } + if (methodCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); + } + 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 flyteidl.admin.LaunchPlanOuterClass.Auth)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.Auth other = (flyteidl.admin.LaunchPlanOuterClass.Auth) obj; + + if (!getMethodCase().equals(other.getMethodCase())) return false; + switch (methodCase_) { + case 1: + if (!getAssumableIamRole() + .equals(other.getAssumableIamRole())) return false; + break; + case 2: + if (!getKubernetesServiceAccount() + .equals(other.getKubernetesServiceAccount())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (methodCase_) { + case 1: + hash = (37 * hash) + ASSUMABLE_IAM_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAssumableIamRole().hashCode(); + break; + case 2: + hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth 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 flyteidl.admin.LaunchPlanOuterClass.Auth parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth 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 flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth 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(flyteidl.admin.LaunchPlanOuterClass.Auth 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; + } + /** + *
+     * Defines permissions associated with executions created by this launch plan spec.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Auth} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Auth) + flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.Auth.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(); + methodCase_ = 0; + method_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.Auth build() { + flyteidl.admin.LaunchPlanOuterClass.Auth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.Auth buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.Auth result = new flyteidl.admin.LaunchPlanOuterClass.Auth(this); + if (methodCase_ == 1) { + result.method_ = method_; + } + if (methodCase_ == 2) { + result.method_ = method_; + } + result.methodCase_ = methodCase_; + 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 flyteidl.admin.LaunchPlanOuterClass.Auth) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.Auth)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.Auth other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance()) return this; + switch (other.getMethodCase()) { + case ASSUMABLE_IAM_ROLE: { + methodCase_ = 1; + method_ = other.method_; + onChanged(); + break; + } + case KUBERNETES_SERVICE_ACCOUNT: { + methodCase_ = 2; + method_ = other.method_; + onChanged(); + break; + } + case METHOD_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 { + flyteidl.admin.LaunchPlanOuterClass.Auth parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.Auth) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int methodCase_ = 0; + private java.lang.Object method_; + public MethodCase + getMethodCase() { + return MethodCase.forNumber( + methodCase_); + } + + public Builder clearMethod() { + methodCase_ = 0; + method_ = null; + onChanged(); + return this; + } + + + /** + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (methodCase_ == 1) { + method_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 1) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + methodCase_ = 1; + method_ = value; + onChanged(); + return this; + } + /** + * string assumable_iam_role = 1; + */ + public Builder clearAssumableIamRole() { + if (methodCase_ == 1) { + methodCase_ = 0; + method_ = null; + onChanged(); + } + return this; + } + /** + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + methodCase_ = 1; + method_ = value; + onChanged(); + return this; + } + + /** + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (methodCase_ == 2) { + method_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 2) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + methodCase_ = 2; + method_ = value; + onChanged(); + return this; + } + /** + * string kubernetes_service_account = 2; + */ + public Builder clearKubernetesServiceAccount() { + if (methodCase_ == 2) { + methodCase_ = 0; + method_ = null; + onChanged(); + } + return this; + } + /** + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + methodCase_ = 2; + method_ = 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:flyteidl.admin.Auth) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Auth) + private static final flyteidl.admin.LaunchPlanOuterClass.Auth DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.Auth(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Auth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Auth(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 flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + boolean hasWorkflowId(); + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); + + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + boolean hasEntityMetadata(); + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata(); + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder(); + + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + boolean hasDefaultInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + flyteidl.core.Interface.ParameterMap getDefaultInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder(); + + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + boolean hasFixedInputs(); + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + flyteidl.core.Literals.LiteralMap getFixedInputs(); + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder(); + + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getRole(); + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getRoleBytes(); + + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + boolean hasLabels(); + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + flyteidl.admin.Common.Labels getLabels(); + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); + + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + boolean hasAnnotations(); + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + flyteidl.admin.Common.Annotations getAnnotations(); + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); + + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasAuth(); + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.LaunchPlanOuterClass.Auth getAuth(); + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder(); + + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + boolean hasAuthRole(); + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + flyteidl.admin.Common.AuthRole getAuthRole(); + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder(); + + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + boolean hasQualityOfService(); + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + flyteidl.core.Execution.QualityOfService getQualityOfService(); + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); + } + /** + *
+   * User-provided launch plan definition and configuration values.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} + */ + public static final class LaunchPlanSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanSpec) + LaunchPlanSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanSpec.newBuilder() to construct. + private LaunchPlanSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanSpec() { + role_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanSpec( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (workflowId_ != null) { + subBuilder = workflowId_.toBuilder(); + } + workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowId_); + workflowId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder subBuilder = null; + if (entityMetadata_ != null) { + subBuilder = entityMetadata_.toBuilder(); + } + entityMetadata_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entityMetadata_); + entityMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; + if (defaultInputs_ != null) { + subBuilder = defaultInputs_.toBuilder(); + } + defaultInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultInputs_); + defaultInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (fixedInputs_ != null) { + subBuilder = fixedInputs_.toBuilder(); + } + fixedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fixedInputs_); + fixedInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + role_ = s; + break; + } + case 50: { + flyteidl.admin.Common.Labels.Builder subBuilder = null; + if (labels_ != null) { + subBuilder = labels_.toBuilder(); + } + labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labels_); + labels_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + flyteidl.admin.Common.Annotations.Builder subBuilder = null; + if (annotations_ != null) { + subBuilder = annotations_.toBuilder(); + } + annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotations_); + annotations_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + flyteidl.admin.LaunchPlanOuterClass.Auth.Builder subBuilder = null; + if (auth_ != null) { + subBuilder = auth_.toBuilder(); + } + auth_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.Auth.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(auth_); + auth_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + flyteidl.admin.Common.AuthRole.Builder subBuilder = null; + if (authRole_ != null) { + subBuilder = authRole_.toBuilder(); + } + authRole_ = input.readMessage(flyteidl.admin.Common.AuthRole.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authRole_); + authRole_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; + if (qualityOfService_ != null) { + subBuilder = qualityOfService_.toBuilder(); + } + qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qualityOfService_); + qualityOfService_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); + } + + public static final int WORKFLOW_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public boolean hasWorkflowId() { + return workflowId_ != null; + } + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + return getWorkflowId(); + } + + public static final int ENTITY_METADATA_FIELD_NUMBER = 2; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_; + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public boolean hasEntityMetadata() { + return entityMetadata_ != null; + } + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { + return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; + } + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { + return getEntityMetadata(); + } + + public static final int DEFAULT_INPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Interface.ParameterMap defaultInputs_; + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public boolean hasDefaultInputs() { + return defaultInputs_ != null; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMap getDefaultInputs() { + return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { + return getDefaultInputs(); + } + + public static final int FIXED_INPUTS_FIELD_NUMBER = 4; + private flyteidl.core.Literals.LiteralMap fixedInputs_; + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public boolean hasFixedInputs() { + return fixedInputs_ != null; + } + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFixedInputs() { + return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; + } + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { + return getFixedInputs(); + } + + public static final int ROLE_FIELD_NUMBER = 5; + private volatile java.lang.Object role_; + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getRole() { + java.lang.Object ref = role_; + 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(); + role_ = s; + return s; + } + } + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 6; + private flyteidl.admin.Common.Labels labels_; + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public boolean hasLabels() { + return labels_ != null; + } + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.Labels getLabels() { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + return getLabels(); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 7; + private flyteidl.admin.Common.Annotations annotations_; + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public boolean hasAnnotations() { + return annotations_ != null; + } + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + return getAnnotations(); + } + + public static final int AUTH_FIELD_NUMBER = 8; + private flyteidl.admin.LaunchPlanOuterClass.Auth auth_; + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasAuth() { + return auth_ != null; + } + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { + return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; + } + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { + return getAuth(); + } + + public static final int AUTH_ROLE_FIELD_NUMBER = 9; + private flyteidl.admin.Common.AuthRole authRole_; + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public boolean hasAuthRole() { + return authRole_ != null; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public flyteidl.admin.Common.AuthRole getAuthRole() { + return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { + return getAuthRole(); + } + + public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 16; + private flyteidl.core.Execution.QualityOfService qualityOfService_; + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public boolean hasQualityOfService() { + return qualityOfService_ != null; + } + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + /** + *
+     * Indicates the runtime priority of the execution. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + return getQualityOfService(); + } + + 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 (workflowId_ != null) { + output.writeMessage(1, getWorkflowId()); + } + if (entityMetadata_ != null) { + output.writeMessage(2, getEntityMetadata()); + } + if (defaultInputs_ != null) { + output.writeMessage(3, getDefaultInputs()); + } + if (fixedInputs_ != null) { + output.writeMessage(4, getFixedInputs()); + } + if (!getRoleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, role_); + } + if (labels_ != null) { + output.writeMessage(6, getLabels()); + } + if (annotations_ != null) { + output.writeMessage(7, getAnnotations()); + } + if (auth_ != null) { + output.writeMessage(8, getAuth()); + } + if (authRole_ != null) { + output.writeMessage(9, getAuthRole()); + } + if (qualityOfService_ != null) { + output.writeMessage(16, getQualityOfService()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflowId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflowId()); + } + if (entityMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEntityMetadata()); + } + if (defaultInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDefaultInputs()); + } + if (fixedInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getFixedInputs()); + } + if (!getRoleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, role_); + } + if (labels_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getLabels()); + } + if (annotations_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getAnnotations()); + } + if (auth_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAuth()); + } + if (authRole_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getAuthRole()); + } + if (qualityOfService_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getQualityOfService()); + } + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) obj; + + if (hasWorkflowId() != other.hasWorkflowId()) return false; + if (hasWorkflowId()) { + if (!getWorkflowId() + .equals(other.getWorkflowId())) return false; + } + if (hasEntityMetadata() != other.hasEntityMetadata()) return false; + if (hasEntityMetadata()) { + if (!getEntityMetadata() + .equals(other.getEntityMetadata())) return false; + } + if (hasDefaultInputs() != other.hasDefaultInputs()) return false; + if (hasDefaultInputs()) { + if (!getDefaultInputs() + .equals(other.getDefaultInputs())) return false; + } + if (hasFixedInputs() != other.hasFixedInputs()) return false; + if (hasFixedInputs()) { + if (!getFixedInputs() + .equals(other.getFixedInputs())) return false; + } + if (!getRole() + .equals(other.getRole())) return false; + if (hasLabels() != other.hasLabels()) return false; + if (hasLabels()) { + if (!getLabels() + .equals(other.getLabels())) return false; + } + if (hasAnnotations() != other.hasAnnotations()) return false; + if (hasAnnotations()) { + if (!getAnnotations() + .equals(other.getAnnotations())) return false; + } + if (hasAuth() != other.hasAuth()) return false; + if (hasAuth()) { + if (!getAuth() + .equals(other.getAuth())) return false; + } + if (hasAuthRole() != other.hasAuthRole()) return false; + if (hasAuthRole()) { + if (!getAuthRole() + .equals(other.getAuthRole())) return false; + } + if (hasQualityOfService() != other.hasQualityOfService()) return false; + if (hasQualityOfService()) { + if (!getQualityOfService() + .equals(other.getQualityOfService())) 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 (hasWorkflowId()) { + hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId().hashCode(); + } + if (hasEntityMetadata()) { + hash = (37 * hash) + ENTITY_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getEntityMetadata().hashCode(); + } + if (hasDefaultInputs()) { + hash = (37 * hash) + DEFAULT_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getDefaultInputs().hashCode(); + } + if (hasFixedInputs()) { + hash = (37 * hash) + FIXED_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getFixedInputs().hashCode(); + } + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + if (hasLabels()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabels().hashCode(); + } + if (hasAnnotations()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotations().hashCode(); + } + if (hasAuth()) { + hash = (37 * hash) + AUTH_FIELD_NUMBER; + hash = (53 * hash) + getAuth().hashCode(); + } + if (hasAuthRole()) { + hash = (37 * hash) + AUTH_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAuthRole().hashCode(); + } + if (hasQualityOfService()) { + hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getQualityOfService().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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; + } + /** + *
+     * User-provided launch plan definition and configuration values.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanSpec) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.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 (workflowIdBuilder_ == null) { + workflowId_ = null; + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + if (entityMetadataBuilder_ == null) { + entityMetadata_ = null; + } else { + entityMetadata_ = null; + entityMetadataBuilder_ = null; + } + if (defaultInputsBuilder_ == null) { + defaultInputs_ = null; + } else { + defaultInputs_ = null; + defaultInputsBuilder_ = null; + } + if (fixedInputsBuilder_ == null) { + fixedInputs_ = null; + } else { + fixedInputs_ = null; + fixedInputsBuilder_ = null; + } + role_ = ""; + + if (labelsBuilder_ == null) { + labels_ = null; + } else { + labels_ = null; + labelsBuilder_ = null; + } + if (annotationsBuilder_ == null) { + annotations_ = null; + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + if (authBuilder_ == null) { + auth_ = null; + } else { + auth_ = null; + authBuilder_ = null; + } + if (authRoleBuilder_ == null) { + authRole_ = null; + } else { + authRole_ = null; + authRoleBuilder_ = null; + } + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(this); + if (workflowIdBuilder_ == null) { + result.workflowId_ = workflowId_; + } else { + result.workflowId_ = workflowIdBuilder_.build(); + } + if (entityMetadataBuilder_ == null) { + result.entityMetadata_ = entityMetadata_; + } else { + result.entityMetadata_ = entityMetadataBuilder_.build(); + } + if (defaultInputsBuilder_ == null) { + result.defaultInputs_ = defaultInputs_; + } else { + result.defaultInputs_ = defaultInputsBuilder_.build(); + } + if (fixedInputsBuilder_ == null) { + result.fixedInputs_ = fixedInputs_; + } else { + result.fixedInputs_ = fixedInputsBuilder_.build(); + } + result.role_ = role_; + if (labelsBuilder_ == null) { + result.labels_ = labels_; + } else { + result.labels_ = labelsBuilder_.build(); + } + if (annotationsBuilder_ == null) { + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + if (authBuilder_ == null) { + result.auth_ = auth_; + } else { + result.auth_ = authBuilder_.build(); + } + if (authRoleBuilder_ == null) { + result.authRole_ = authRole_; + } else { + result.authRole_ = authRoleBuilder_.build(); + } + if (qualityOfServiceBuilder_ == null) { + result.qualityOfService_ = qualityOfService_; + } else { + result.qualityOfService_ = qualityOfServiceBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance()) return this; + if (other.hasWorkflowId()) { + mergeWorkflowId(other.getWorkflowId()); + } + if (other.hasEntityMetadata()) { + mergeEntityMetadata(other.getEntityMetadata()); + } + if (other.hasDefaultInputs()) { + mergeDefaultInputs(other.getDefaultInputs()); + } + if (other.hasFixedInputs()) { + mergeFixedInputs(other.getFixedInputs()); + } + if (!other.getRole().isEmpty()) { + role_ = other.role_; + onChanged(); + } + if (other.hasLabels()) { + mergeLabels(other.getLabels()); + } + if (other.hasAnnotations()) { + mergeAnnotations(other.getAnnotations()); + } + if (other.hasAuth()) { + mergeAuth(other.getAuth()); + } + if (other.hasAuthRole()) { + mergeAuthRole(other.getAuthRole()); + } + if (other.hasQualityOfService()) { + mergeQualityOfService(other.getQualityOfService()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public boolean hasWorkflowId() { + return workflowIdBuilder_ != null || workflowId_ != null; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + if (workflowIdBuilder_ == null) { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } else { + return workflowIdBuilder_.getMessage(); + } + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowId_ = value; + onChanged(); + } else { + workflowIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder setWorkflowId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (workflowIdBuilder_ == null) { + workflowId_ = builderForValue.build(); + onChanged(); + } else { + workflowIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (workflowId_ != null) { + workflowId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); + } else { + workflowId_ = value; + } + onChanged(); + } else { + workflowIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder clearWorkflowId() { + if (workflowIdBuilder_ == null) { + workflowId_ = null; + onChanged(); + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { + + onChanged(); + return getWorkflowIdFieldBuilder().getBuilder(); + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + if (workflowIdBuilder_ != null) { + return workflowIdBuilder_.getMessageOrBuilder(); + } else { + return workflowId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getWorkflowIdFieldBuilder() { + if (workflowIdBuilder_ == null) { + workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getWorkflowId(), + getParentForChildren(), + isClean()); + workflowId_ = null; + } + return workflowIdBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> entityMetadataBuilder_; + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public boolean hasEntityMetadata() { + return entityMetadataBuilder_ != null || entityMetadata_ != null; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { + if (entityMetadataBuilder_ == null) { + return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; + } else { + return entityMetadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder setEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { + if (entityMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityMetadata_ = value; + onChanged(); + } else { + entityMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder setEntityMetadata( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder builderForValue) { + if (entityMetadataBuilder_ == null) { + entityMetadata_ = builderForValue.build(); + onChanged(); + } else { + entityMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder mergeEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { + if (entityMetadataBuilder_ == null) { + if (entityMetadata_ != null) { + entityMetadata_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder(entityMetadata_).mergeFrom(value).buildPartial(); + } else { + entityMetadata_ = value; + } + onChanged(); + } else { + entityMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder clearEntityMetadata() { + if (entityMetadataBuilder_ == null) { + entityMetadata_ = null; + onChanged(); + } else { + entityMetadata_ = null; + entityMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder getEntityMetadataBuilder() { + + onChanged(); + return getEntityMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { + if (entityMetadataBuilder_ != null) { + return entityMetadataBuilder_.getMessageOrBuilder(); + } else { + return entityMetadata_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; + } + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> + getEntityMetadataFieldBuilder() { + if (entityMetadataBuilder_ == null) { + entityMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder>( + getEntityMetadata(), + getParentForChildren(), + isClean()); + entityMetadata_ = null; + } + return entityMetadataBuilder_; + } + + private flyteidl.core.Interface.ParameterMap defaultInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> defaultInputsBuilder_; + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public boolean hasDefaultInputs() { + return defaultInputsBuilder_ != null || defaultInputs_ != null; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMap getDefaultInputs() { + if (defaultInputsBuilder_ == null) { + return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; + } else { + return defaultInputsBuilder_.getMessage(); + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder setDefaultInputs(flyteidl.core.Interface.ParameterMap value) { + if (defaultInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultInputs_ = value; + onChanged(); + } else { + defaultInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder setDefaultInputs( + flyteidl.core.Interface.ParameterMap.Builder builderForValue) { + if (defaultInputsBuilder_ == null) { + defaultInputs_ = builderForValue.build(); + onChanged(); + } else { + defaultInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder mergeDefaultInputs(flyteidl.core.Interface.ParameterMap value) { + if (defaultInputsBuilder_ == null) { + if (defaultInputs_ != null) { + defaultInputs_ = + flyteidl.core.Interface.ParameterMap.newBuilder(defaultInputs_).mergeFrom(value).buildPartial(); + } else { + defaultInputs_ = value; + } + onChanged(); + } else { + defaultInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder clearDefaultInputs() { + if (defaultInputsBuilder_ == null) { + defaultInputs_ = null; + onChanged(); + } else { + defaultInputs_ = null; + defaultInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMap.Builder getDefaultInputsBuilder() { + + onChanged(); + return getDefaultInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { + if (defaultInputsBuilder_ != null) { + return defaultInputsBuilder_.getMessageOrBuilder(); + } else { + return defaultInputs_ == null ? + flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> + getDefaultInputsFieldBuilder() { + if (defaultInputsBuilder_ == null) { + defaultInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( + getDefaultInputs(), + getParentForChildren(), + isClean()); + defaultInputs_ = null; + } + return defaultInputsBuilder_; + } + + private flyteidl.core.Literals.LiteralMap fixedInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fixedInputsBuilder_; + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public boolean hasFixedInputs() { + return fixedInputsBuilder_ != null || fixedInputs_ != null; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFixedInputs() { + if (fixedInputsBuilder_ == null) { + return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; + } else { + return fixedInputsBuilder_.getMessage(); + } + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder setFixedInputs(flyteidl.core.Literals.LiteralMap value) { + if (fixedInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fixedInputs_ = value; + onChanged(); + } else { + fixedInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder setFixedInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (fixedInputsBuilder_ == null) { + fixedInputs_ = builderForValue.build(); + onChanged(); + } else { + fixedInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder mergeFixedInputs(flyteidl.core.Literals.LiteralMap value) { + if (fixedInputsBuilder_ == null) { + if (fixedInputs_ != null) { + fixedInputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(fixedInputs_).mergeFrom(value).buildPartial(); + } else { + fixedInputs_ = value; + } + onChanged(); + } else { + fixedInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder clearFixedInputs() { + if (fixedInputsBuilder_ == null) { + fixedInputs_ = null; + onChanged(); + } else { + fixedInputs_ = null; + fixedInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMap.Builder getFixedInputsBuilder() { + + onChanged(); + return getFixedInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { + if (fixedInputsBuilder_ != null) { + return fixedInputsBuilder_.getMessageOrBuilder(); + } else { + return fixedInputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; + } + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getFixedInputsFieldBuilder() { + if (fixedInputsBuilder_ == null) { + fixedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getFixedInputs(), + getParentForChildren(), + isClean()); + fixedInputs_ = null; + } + return fixedInputsBuilder_; + } + + private java.lang.Object role_ = ""; + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + role_ = value; + onChanged(); + return this; + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearRole() { + + role_ = getDefaultInstance().getRole(); + onChanged(); + return this; + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + role_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Labels labels_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public boolean hasLabels() { + return labelsBuilder_ != null || labels_ != null; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.Labels getLabels() { + if (labelsBuilder_ == null) { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } else { + return labelsBuilder_.getMessage(); + } + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder setLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labels_ = value; + onChanged(); + } else { + labelsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder setLabels( + flyteidl.admin.Common.Labels.Builder builderForValue) { + if (labelsBuilder_ == null) { + labels_ = builderForValue.build(); + onChanged(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder mergeLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (labels_ != null) { + labels_ = + flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); + } else { + labels_ = value; + } + onChanged(); + } else { + labelsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder clearLabels() { + if (labelsBuilder_ == null) { + labels_ = null; + onChanged(); + } else { + labels_ = null; + labelsBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { + + onChanged(); + return getLabelsFieldBuilder().getBuilder(); + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + if (labelsBuilder_ != null) { + return labelsBuilder_.getMessageOrBuilder(); + } else { + return labels_ == null ? + flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> + getLabelsFieldBuilder() { + if (labelsBuilder_ == null) { + labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( + getLabels(), + getParentForChildren(), + isClean()); + labels_ = null; + } + return labelsBuilder_; + } + + private flyteidl.admin.Common.Annotations annotations_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public boolean hasAnnotations() { + return annotationsBuilder_ != null || annotations_ != null; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + if (annotationsBuilder_ == null) { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } else { + return annotationsBuilder_.getMessage(); + } + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotations_ = value; + onChanged(); + } else { + annotationsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder setAnnotations( + flyteidl.admin.Common.Annotations.Builder builderForValue) { + if (annotationsBuilder_ == null) { + annotations_ = builderForValue.build(); + onChanged(); + } else { + annotationsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (annotations_ != null) { + annotations_ = + flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); + } else { + annotations_ = value; + } + onChanged(); + } else { + annotationsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = null; + onChanged(); + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { + + onChanged(); + return getAnnotationsFieldBuilder().getBuilder(); + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilder(); + } else { + return annotations_ == null ? + flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> + getAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( + getAnnotations(), + getParentForChildren(), + isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.Auth auth_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> authBuilder_; + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasAuth() { + return authBuilder_ != null || auth_ != null; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { + if (authBuilder_ == null) { + return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; + } else { + return authBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { + if (authBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + auth_ = value; + onChanged(); + } else { + authBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAuth( + flyteidl.admin.LaunchPlanOuterClass.Auth.Builder builderForValue) { + if (authBuilder_ == null) { + auth_ = builderForValue.build(); + onChanged(); + } else { + authBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { + if (authBuilder_ == null) { + if (auth_ != null) { + auth_ = + flyteidl.admin.LaunchPlanOuterClass.Auth.newBuilder(auth_).mergeFrom(value).buildPartial(); + } else { + auth_ = value; + } + onChanged(); + } else { + authBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearAuth() { + if (authBuilder_ == null) { + auth_ = null; + onChanged(); + } else { + auth_ = null; + authBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth.Builder getAuthBuilder() { + + onChanged(); + return getAuthFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { + if (authBuilder_ != null) { + return authBuilder_.getMessageOrBuilder(); + } else { + return auth_ == null ? + flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; + } + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> + getAuthFieldBuilder() { + if (authBuilder_ == null) { + authBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder>( + getAuth(), + getParentForChildren(), + isClean()); + auth_ = null; + } + return authBuilder_; + } + + private flyteidl.admin.Common.AuthRole authRole_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> authRoleBuilder_; + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public boolean hasAuthRole() { + return authRoleBuilder_ != null || authRole_ != null; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public flyteidl.admin.Common.AuthRole getAuthRole() { + if (authRoleBuilder_ == null) { + return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } else { + return authRoleBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public Builder setAuthRole(flyteidl.admin.Common.AuthRole value) { + if (authRoleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authRole_ = value; + onChanged(); + } else { + authRoleBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public Builder setAuthRole( + flyteidl.admin.Common.AuthRole.Builder builderForValue) { + if (authRoleBuilder_ == null) { + authRole_ = builderForValue.build(); + onChanged(); + } else { + authRoleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public Builder mergeAuthRole(flyteidl.admin.Common.AuthRole value) { + if (authRoleBuilder_ == null) { + if (authRole_ != null) { + authRole_ = + flyteidl.admin.Common.AuthRole.newBuilder(authRole_).mergeFrom(value).buildPartial(); + } else { + authRole_ = value; + } + onChanged(); + } else { + authRoleBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public Builder clearAuthRole() { + if (authRoleBuilder_ == null) { + authRole_ = null; + onChanged(); + } else { + authRole_ = null; + authRoleBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public flyteidl.admin.Common.AuthRole.Builder getAuthRoleBuilder() { + + onChanged(); + return getAuthRoleFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { + if (authRoleBuilder_ != null) { + return authRoleBuilder_.getMessageOrBuilder(); + } else { + return authRole_ == null ? + flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } + } + /** + * .flyteidl.admin.AuthRole auth_role = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> + getAuthRoleFieldBuilder() { + if (authRoleBuilder_ == null) { + authRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder>( + getAuthRole(), + getParentForChildren(), + isClean()); + authRole_ = null; + } + return authRoleBuilder_; + } + + private flyteidl.core.Execution.QualityOfService qualityOfService_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public boolean hasQualityOfService() { + return qualityOfServiceBuilder_ != null || qualityOfService_ != null; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } else { + return qualityOfServiceBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualityOfService_ = value; + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public Builder setQualityOfService( + flyteidl.core.Execution.QualityOfService.Builder builderForValue) { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = builderForValue.build(); + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (qualityOfService_ != null) { + qualityOfService_ = + flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); + } else { + qualityOfService_ = value; + } + onChanged(); + } else { + qualityOfServiceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public Builder clearQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + onChanged(); + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { + + onChanged(); + return getQualityOfServiceFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if (qualityOfServiceBuilder_ != null) { + return qualityOfServiceBuilder_.getMessageOrBuilder(); + } else { + return qualityOfService_ == null ? + flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + } + /** + *
+       * Indicates the runtime priority of the execution. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> + getQualityOfServiceFieldBuilder() { + if (qualityOfServiceBuilder_ == null) { + qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( + getQualityOfService(), + getParentForChildren(), + isClean()); + qualityOfService_ = null; + } + return qualityOfServiceBuilder_; + } + @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:flyteidl.admin.LaunchPlanSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanSpec) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanSpec(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicate the Launch plan phase
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + int getStateValue(); + /** + *
+     * Indicate the Launch plan phase
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); + + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + boolean hasExpectedInputs(); + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + flyteidl.core.Interface.ParameterMap getExpectedInputs(); + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder(); + + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + boolean hasExpectedOutputs(); + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + flyteidl.core.Interface.VariableMap getExpectedOutputs(); + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder(); + + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + boolean hasUpdatedAt(); + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + } + /** + *
+   * Values computed by the flyte platform after launch plan registration.
+   * These include expected_inputs required to be present in a CreateExecutionRequest
+   * to launch the reference workflow as well timestamp values associated with the launch plan.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} + */ + public static final class LaunchPlanClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanClosure) + LaunchPlanClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanClosure.newBuilder() to construct. + private LaunchPlanClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanClosure() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanClosure( + 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 8: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 18: { + flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; + if (expectedInputs_ != null) { + subBuilder = expectedInputs_.toBuilder(); + } + expectedInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedInputs_); + expectedInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Interface.VariableMap.Builder subBuilder = null; + if (expectedOutputs_ != null) { + subBuilder = expectedOutputs_.toBuilder(); + } + expectedOutputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedOutputs_); + expectedOutputs_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + 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 42: { + 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_; + /** + *
+     * Indicate the Launch plan phase
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * Indicate the Launch plan phase
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + + public static final int EXPECTED_INPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Interface.ParameterMap expectedInputs_; + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public boolean hasExpectedInputs() { + return expectedInputs_ != null; + } + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMap getExpectedInputs() { + return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; + } + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { + return getExpectedInputs(); + } + + public static final int EXPECTED_OUTPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Interface.VariableMap expectedOutputs_; + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public boolean hasExpectedOutputs() { + return expectedOutputs_ != null; + } + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMap getExpectedOutputs() { + return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; + } + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { + return getExpectedOutputs(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + 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 (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + output.writeEnum(1, state_); + } + if (expectedInputs_ != null) { + output.writeMessage(2, getExpectedInputs()); + } + if (expectedOutputs_ != null) { + output.writeMessage(3, getExpectedOutputs()); + } + if (createdAt_ != null) { + output.writeMessage(4, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(5, getUpdatedAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); + } + if (expectedInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpectedInputs()); + } + if (expectedOutputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getExpectedOutputs()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) obj; + + if (state_ != other.state_) return false; + if (hasExpectedInputs() != other.hasExpectedInputs()) return false; + if (hasExpectedInputs()) { + if (!getExpectedInputs() + .equals(other.getExpectedInputs())) return false; + } + if (hasExpectedOutputs() != other.hasExpectedOutputs()) return false; + if (hasExpectedOutputs()) { + if (!getExpectedOutputs() + .equals(other.getExpectedOutputs())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasExpectedInputs()) { + hash = (37 * hash) + EXPECTED_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getExpectedInputs().hashCode(); + } + if (hasExpectedOutputs()) { + hash = (37 * hash) + EXPECTED_OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getExpectedOutputs().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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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; + } + /** + *
+     * Values computed by the flyte platform after launch plan registration.
+     * These include expected_inputs required to be present in a CreateExecutionRequest
+     * to launch the reference workflow as well timestamp values associated with the launch plan.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanClosure) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.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(); + state_ = 0; + + if (expectedInputsBuilder_ == null) { + expectedInputs_ = null; + } else { + expectedInputs_ = null; + expectedInputsBuilder_ = null; + } + if (expectedOutputsBuilder_ == null) { + expectedOutputs_ = null; + } else { + expectedOutputs_ = null; + expectedOutputsBuilder_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(this); + result.state_ = state_; + if (expectedInputsBuilder_ == null) { + result.expectedInputs_ = expectedInputs_; + } else { + result.expectedInputs_ = expectedInputsBuilder_.build(); + } + if (expectedOutputsBuilder_ == null) { + result.expectedOutputs_ = expectedOutputs_; + } else { + result.expectedOutputs_ = expectedOutputsBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasExpectedInputs()) { + mergeExpectedInputs(other.getExpectedInputs()); + } + if (other.hasExpectedOutputs()) { + mergeExpectedOutputs(other.getExpectedOutputs()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Interface.ParameterMap expectedInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> expectedInputsBuilder_; + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public boolean hasExpectedInputs() { + return expectedInputsBuilder_ != null || expectedInputs_ != null; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMap getExpectedInputs() { + if (expectedInputsBuilder_ == null) { + return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; + } else { + return expectedInputsBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder setExpectedInputs(flyteidl.core.Interface.ParameterMap value) { + if (expectedInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedInputs_ = value; + onChanged(); + } else { + expectedInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder setExpectedInputs( + flyteidl.core.Interface.ParameterMap.Builder builderForValue) { + if (expectedInputsBuilder_ == null) { + expectedInputs_ = builderForValue.build(); + onChanged(); + } else { + expectedInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder mergeExpectedInputs(flyteidl.core.Interface.ParameterMap value) { + if (expectedInputsBuilder_ == null) { + if (expectedInputs_ != null) { + expectedInputs_ = + flyteidl.core.Interface.ParameterMap.newBuilder(expectedInputs_).mergeFrom(value).buildPartial(); + } else { + expectedInputs_ = value; + } + onChanged(); + } else { + expectedInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder clearExpectedInputs() { + if (expectedInputsBuilder_ == null) { + expectedInputs_ = null; + onChanged(); + } else { + expectedInputs_ = null; + expectedInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMap.Builder getExpectedInputsBuilder() { + + onChanged(); + return getExpectedInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { + if (expectedInputsBuilder_ != null) { + return expectedInputsBuilder_.getMessageOrBuilder(); + } else { + return expectedInputs_ == null ? + flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; + } + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> + getExpectedInputsFieldBuilder() { + if (expectedInputsBuilder_ == null) { + expectedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( + getExpectedInputs(), + getParentForChildren(), + isClean()); + expectedInputs_ = null; + } + return expectedInputsBuilder_; + } + + private flyteidl.core.Interface.VariableMap expectedOutputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> expectedOutputsBuilder_; + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public boolean hasExpectedOutputs() { + return expectedOutputsBuilder_ != null || expectedOutputs_ != null; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMap getExpectedOutputs() { + if (expectedOutputsBuilder_ == null) { + return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; + } else { + return expectedOutputsBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder setExpectedOutputs(flyteidl.core.Interface.VariableMap value) { + if (expectedOutputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedOutputs_ = value; + onChanged(); + } else { + expectedOutputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder setExpectedOutputs( + flyteidl.core.Interface.VariableMap.Builder builderForValue) { + if (expectedOutputsBuilder_ == null) { + expectedOutputs_ = builderForValue.build(); + onChanged(); + } else { + expectedOutputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder mergeExpectedOutputs(flyteidl.core.Interface.VariableMap value) { + if (expectedOutputsBuilder_ == null) { + if (expectedOutputs_ != null) { + expectedOutputs_ = + flyteidl.core.Interface.VariableMap.newBuilder(expectedOutputs_).mergeFrom(value).buildPartial(); + } else { + expectedOutputs_ = value; + } + onChanged(); + } else { + expectedOutputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder clearExpectedOutputs() { + if (expectedOutputsBuilder_ == null) { + expectedOutputs_ = null; + onChanged(); + } else { + expectedOutputs_ = null; + expectedOutputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMap.Builder getExpectedOutputsBuilder() { + + onChanged(); + return getExpectedOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { + if (expectedOutputsBuilder_ != null) { + return expectedOutputsBuilder_.getMessageOrBuilder(); + } else { + return expectedOutputs_ == null ? + flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; + } + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> + getExpectedOutputsFieldBuilder() { + if (expectedOutputsBuilder_ == null) { + expectedOutputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( + getExpectedOutputs(), + getParentForChildren(), + isClean()); + expectedOutputs_ = null; + } + return expectedOutputsBuilder_; + } + + 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_; + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + 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; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + 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; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + 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_; + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + 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; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + 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; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + 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:flyteidl.admin.LaunchPlanClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanClosure) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanClosure(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + boolean hasSchedule(); + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + flyteidl.admin.ScheduleOuterClass.Schedule getSchedule(); + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder(); + + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + java.util.List + getNotificationsList(); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + flyteidl.admin.Common.Notification getNotifications(int index); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + int getNotificationsCount(); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + java.util.List + getNotificationsOrBuilderList(); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index); + } + /** + *
+   * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
+   * the reference workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} + */ + public static final class LaunchPlanMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanMetadata) + LaunchPlanMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanMetadata.newBuilder() to construct. + private LaunchPlanMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanMetadata() { + notifications_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanMetadata( + 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: { + flyteidl.admin.ScheduleOuterClass.Schedule.Builder subBuilder = null; + if (schedule_ != null) { + subBuilder = schedule_.toBuilder(); + } + schedule_ = input.readMessage(flyteidl.admin.ScheduleOuterClass.Schedule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schedule_); + schedule_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + notifications_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + notifications_.add( + input.readMessage(flyteidl.admin.Common.Notification.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_ & 0x00000002) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); + } + + private int bitField0_; + public static final int SCHEDULE_FIELD_NUMBER = 1; + private flyteidl.admin.ScheduleOuterClass.Schedule schedule_; + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public boolean hasSchedule() { + return schedule_ != null; + } + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { + return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; + } + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { + return getSchedule(); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 2; + private java.util.List notifications_; + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List getNotificationsList() { + return notifications_; + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List + getNotificationsOrBuilderList() { + return notifications_; + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public int getNotificationsCount() { + return notifications_.size(); + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + return notifications_.get(index); + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + return notifications_.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 (schedule_ != null) { + output.writeMessage(1, getSchedule()); + } + for (int i = 0; i < notifications_.size(); i++) { + output.writeMessage(2, notifications_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (schedule_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSchedule()); + } + for (int i = 0; i < notifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, notifications_.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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) obj; + + if (hasSchedule() != other.hasSchedule()) return false; + if (hasSchedule()) { + if (!getSchedule() + .equals(other.getSchedule())) return false; + } + if (!getNotificationsList() + .equals(other.getNotificationsList())) 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 (hasSchedule()) { + hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getSchedule().hashCode(); + } + if (getNotificationsCount() > 0) { + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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; + } + /** + *
+     * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
+     * the reference workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanMetadata) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNotificationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (scheduleBuilder_ == null) { + schedule_ = null; + } else { + schedule_ = null; + scheduleBuilder_ = null; + } + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + notificationsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (scheduleBuilder_ == null) { + result.schedule_ = schedule_; + } else { + result.schedule_ = scheduleBuilder_.build(); + } + if (notificationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.notifications_ = notifications_; + } else { + result.notifications_ = notificationsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance()) return this; + if (other.hasSchedule()) { + mergeSchedule(other.getSchedule()); + } + if (notificationsBuilder_ == null) { + if (!other.notifications_.isEmpty()) { + if (notifications_.isEmpty()) { + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNotificationsIsMutable(); + notifications_.addAll(other.notifications_); + } + onChanged(); + } + } else { + if (!other.notifications_.isEmpty()) { + if (notificationsBuilder_.isEmpty()) { + notificationsBuilder_.dispose(); + notificationsBuilder_ = null; + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000002); + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; + } else { + notificationsBuilder_.addAllMessages(other.notifications_); + } + } + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.admin.ScheduleOuterClass.Schedule schedule_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> scheduleBuilder_; + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public boolean hasSchedule() { + return scheduleBuilder_ != null || schedule_ != null; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { + if (scheduleBuilder_ == null) { + return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; + } else { + return scheduleBuilder_.getMessage(); + } + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder setSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { + if (scheduleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schedule_ = value; + onChanged(); + } else { + scheduleBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder setSchedule( + flyteidl.admin.ScheduleOuterClass.Schedule.Builder builderForValue) { + if (scheduleBuilder_ == null) { + schedule_ = builderForValue.build(); + onChanged(); + } else { + scheduleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder mergeSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { + if (scheduleBuilder_ == null) { + if (schedule_ != null) { + schedule_ = + flyteidl.admin.ScheduleOuterClass.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); + } else { + schedule_ = value; + } + onChanged(); + } else { + scheduleBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder clearSchedule() { + if (scheduleBuilder_ == null) { + schedule_ = null; + onChanged(); + } else { + schedule_ = null; + scheduleBuilder_ = null; + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.Schedule.Builder getScheduleBuilder() { + + onChanged(); + return getScheduleFieldBuilder().getBuilder(); + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { + if (scheduleBuilder_ != null) { + return scheduleBuilder_.getMessageOrBuilder(); + } else { + return schedule_ == null ? + flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; + } + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> + getScheduleFieldBuilder() { + if (scheduleBuilder_ == null) { + scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder>( + getSchedule(), + getParentForChildren(), + isClean()); + schedule_ = null; + } + return scheduleBuilder_; + } + + private java.util.List notifications_ = + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + notifications_ = new java.util.ArrayList(notifications_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; + + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List getNotificationsList() { + if (notificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notifications_); + } else { + return notificationsBuilder_.getMessageList(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public int getNotificationsCount() { + if (notificationsBuilder_ == null) { + return notifications_.size(); + } else { + return notificationsBuilder_.getCount(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); + } else { + return notificationsBuilder_.getMessage(index); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.set(index, value); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.set(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications(flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(value); + onChanged(); + } else { + notificationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(index, value); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications( + flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addAllNotifications( + java.lang.Iterable values) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); + onChanged(); + } else { + notificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + notificationsBuilder_.clear(); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder removeNotifications(int index) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.remove(index); + onChanged(); + } else { + notificationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().getBuilder(index); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); } else { + return notificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List + getNotificationsOrBuilderList() { + if (notificationsBuilder_ != null) { + return notificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notifications_); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { + return getNotificationsFieldBuilder().addBuilder( + flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().addBuilder( + index, flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List + getNotificationsBuilderList() { + return getNotificationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( + notifications_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + notifications_ = null; + } + return notificationsBuilder_; + } + @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:flyteidl.admin.LaunchPlanMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanMetadata) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanMetadata(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Desired state to apply to the launch plan.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + int getStateValue(); + /** + *
+     * Desired state to apply to the launch plan.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); + } + /** + *
+   * Request to set the referenced launch plan state to the configured value.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} + */ + public static final class LaunchPlanUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateRequest) + LaunchPlanUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanUpdateRequest.newBuilder() to construct. + private LaunchPlanUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanUpdateRequest() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanUpdateRequest( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + state_ = rawValue; + 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + *
+     * Desired state to apply to the launch plan.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * Desired state to apply to the launch plan.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + + 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 (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + output.writeEnum(2, state_); + } + 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 (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (state_ != other.state_) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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; + } + /** + *
+     * Request to set the referenced launch plan state to the configured value.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateRequest) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.state_ = state_; + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private int state_ = 0; + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public Builder clearState() { + + state_ = 0; + 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:flyteidl.admin.LaunchPlanUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanUpdateRequest(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} + */ + public static final class LaunchPlanUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateResponse) + LaunchPlanUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanUpdateResponse.newBuilder() to construct. + private LaunchPlanUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanUpdateResponse( + 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; + 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateResponse) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(this); + 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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.LaunchPlanUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateResponse) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanUpdateResponse(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 flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ActiveLaunchPlanRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ActiveLaunchPlanRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanRequest} + */ + public static final class ActiveLaunchPlanRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ActiveLaunchPlanRequest) + ActiveLaunchPlanRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ActiveLaunchPlanRequest.newBuilder() to construct. + private ActiveLaunchPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ActiveLaunchPlanRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ActiveLaunchPlanRequest( + 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: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest other = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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; + } + /** + *
+     * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ActiveLaunchPlanRequest) + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest build() { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest result = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.ActiveLaunchPlanRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActiveLaunchPlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ActiveLaunchPlanRequest(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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ActiveLaunchPlanListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ActiveLaunchPlanListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 3; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to list active launch plans within a project/domain.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanListRequest} + */ + public static final class ActiveLaunchPlanListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ActiveLaunchPlanListRequest) + ActiveLaunchPlanListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ActiveLaunchPlanListRequest.newBuilder() to construct. + private ActiveLaunchPlanListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ActiveLaunchPlanListRequest() { + project_ = ""; + domain_ = ""; + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ActiveLaunchPlanListRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 24: { + + limit_ = input.readUInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = 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 flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 3; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (limit_ != 0) { + output.writeUInt32(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest other = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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; + } + /** + *
+     * Represents a request structure to list active launch plans within a project/domain.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ActiveLaunchPlanListRequest) + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.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(); + project_ = ""; + + domain_ = ""; + + limit_ = 0; + + token_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest build() { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest result = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.limit_ = limit_; + result.token_ = token_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + 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 { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @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:flyteidl.admin.ActiveLaunchPlanListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanListRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActiveLaunchPlanListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ActiveLaunchPlanListRequest(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 flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlan_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Auth_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Auth_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_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 flyteidl/admin/launch_plan.proto\022\016flyt" + + "eidl.admin\032\035flyteidl/core/execution.prot" + + "o\032\034flyteidl/core/literals.proto\032\036flyteid" + + "l/core/identifier.proto\032\035flyteidl/core/i" + + "nterface.proto\032\035flyteidl/admin/schedule." + + "proto\032\033flyteidl/admin/common.proto\032\037goog" + + "le/protobuf/timestamp.proto\"n\n\027LaunchPla" + + "nCreateRequest\022%\n\002id\030\001 \001(\0132\031.flyteidl.co" + + "re.Identifier\022,\n\004spec\030\002 \001(\0132\036.flyteidl.a" + + "dmin.LaunchPlanSpec\"\032\n\030LaunchPlanCreateR" + + "esponse\"\225\001\n\nLaunchPlan\022%\n\002id\030\001 \001(\0132\031.fly" + + "teidl.core.Identifier\022,\n\004spec\030\002 \001(\0132\036.fl" + + "yteidl.admin.LaunchPlanSpec\0222\n\007closure\030\003" + + " \001(\0132!.flyteidl.admin.LaunchPlanClosure\"" + + "Q\n\016LaunchPlanList\0220\n\014launch_plans\030\001 \003(\0132" + + "\032.flyteidl.admin.LaunchPlan\022\r\n\005token\030\002 \001" + + "(\t\"T\n\004Auth\022\034\n\022assumable_iam_role\030\001 \001(\tH\000" + + "\022$\n\032kubernetes_service_account\030\002 \001(\tH\000B\010" + + "\n\006method\"\341\003\n\016LaunchPlanSpec\022.\n\013workflow_" + + "id\030\001 \001(\0132\031.flyteidl.core.Identifier\022;\n\017e" + + "ntity_metadata\030\002 \001(\0132\".flyteidl.admin.La" + + "unchPlanMetadata\0223\n\016default_inputs\030\003 \001(\013" + + "2\033.flyteidl.core.ParameterMap\022/\n\014fixed_i" + + "nputs\030\004 \001(\0132\031.flyteidl.core.LiteralMap\022\020" + + "\n\004role\030\005 \001(\tB\002\030\001\022&\n\006labels\030\006 \001(\0132\026.flyte" + + "idl.admin.Labels\0220\n\013annotations\030\007 \001(\0132\033." + + "flyteidl.admin.Annotations\022&\n\004auth\030\010 \001(\013" + + "2\024.flyteidl.admin.AuthB\002\030\001\022+\n\tauth_role\030" + + "\t \001(\0132\030.flyteidl.admin.AuthRole\022;\n\022quali" + + "ty_of_service\030\020 \001(\0132\037.flyteidl.core.Qual" + + "ityOfService\"\217\002\n\021LaunchPlanClosure\022.\n\005st" + + "ate\030\001 \001(\0162\037.flyteidl.admin.LaunchPlanSta" + + "te\0224\n\017expected_inputs\030\002 \001(\0132\033.flyteidl.c" + + "ore.ParameterMap\0224\n\020expected_outputs\030\003 \001" + + "(\0132\032.flyteidl.core.VariableMap\022.\n\ncreate" + + "d_at\030\004 \001(\0132\032.google.protobuf.Timestamp\022." + + "\n\nupdated_at\030\005 \001(\0132\032.google.protobuf.Tim" + + "estamp\"u\n\022LaunchPlanMetadata\022*\n\010schedule" + + "\030\001 \001(\0132\030.flyteidl.admin.Schedule\0223\n\rnoti" + + "fications\030\002 \003(\0132\034.flyteidl.admin.Notific" + + "ation\"p\n\027LaunchPlanUpdateRequest\022%\n\002id\030\001" + + " \001(\0132\031.flyteidl.core.Identifier\022.\n\005state" + + "\030\002 \001(\0162\037.flyteidl.admin.LaunchPlanState\"" + + "\032\n\030LaunchPlanUpdateResponse\"L\n\027ActiveLau" + + "nchPlanRequest\0221\n\002id\030\001 \001(\0132%.flyteidl.ad" + + "min.NamedEntityIdentifier\"\203\001\n\033ActiveLaun" + + "chPlanListRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006do" + + "main\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t" + + "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort*" + + "+\n\017LaunchPlanState\022\014\n\010INACTIVE\020\000\022\n\n\006ACTI" + + "VE\020\001B3Z1github.com/lyft/flyteidl/gen/pb-" + + "go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + flyteidl.admin.ScheduleOuterClass.getDescriptor(), + flyteidl.admin.Common.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor, + new java.lang.String[] { "Id", "Spec", }); + internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_LaunchPlan_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlan_descriptor, + new java.lang.String[] { "Id", "Spec", "Closure", }); + internal_static_flyteidl_admin_LaunchPlanList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanList_descriptor, + new java.lang.String[] { "LaunchPlans", "Token", }); + internal_static_flyteidl_admin_Auth_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_Auth_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Auth_descriptor, + new java.lang.String[] { "AssumableIamRole", "KubernetesServiceAccount", "Method", }); + internal_static_flyteidl_admin_LaunchPlanSpec_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanSpec_descriptor, + new java.lang.String[] { "WorkflowId", "EntityMetadata", "DefaultInputs", "FixedInputs", "Role", "Labels", "Annotations", "Auth", "AuthRole", "QualityOfService", }); + internal_static_flyteidl_admin_LaunchPlanClosure_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanClosure_descriptor, + new java.lang.String[] { "State", "ExpectedInputs", "ExpectedOutputs", "CreatedAt", "UpdatedAt", }); + internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor, + new java.lang.String[] { "Schedule", "Notifications", }); + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor, + new java.lang.String[] { "Id", "State", }); + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Limit", "Token", "SortBy", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + flyteidl.admin.ScheduleOuterClass.getDescriptor(); + flyteidl.admin.Common.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java b/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java new file mode 100644 index 000000000..80d6676fa --- /dev/null +++ b/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java @@ -0,0 +1,8238 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/matchable_resource.proto + +package flyteidl.admin; + +public final class MatchableResourceOuterClass { + private MatchableResourceOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes
+   * based on matching tags.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.MatchableResource} + */ + public enum MatchableResource + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Applies to customizable task resource requests and limits.
+     * 
+ * + * TASK_RESOURCE = 0; + */ + TASK_RESOURCE(0), + /** + *
+     * Applies to configuring templated kubernetes cluster resources.
+     * 
+ * + * CLUSTER_RESOURCE = 1; + */ + CLUSTER_RESOURCE(1), + /** + *
+     * Configures task and dynamic task execution queue assignment.
+     * 
+ * + * EXECUTION_QUEUE = 2; + */ + EXECUTION_QUEUE(2), + /** + *
+     * Configures the K8s cluster label to be used for execution to be run
+     * 
+ * + * EXECUTION_CLUSTER_LABEL = 3; + */ + EXECUTION_CLUSTER_LABEL(3), + /** + *
+     * Configures default quality of service when undefined in an execution spec.
+     * 
+ * + * QUALITY_OF_SERVICE_SPECIFICATION = 4; + */ + QUALITY_OF_SERVICE_SPECIFICATION(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Applies to customizable task resource requests and limits.
+     * 
+ * + * TASK_RESOURCE = 0; + */ + public static final int TASK_RESOURCE_VALUE = 0; + /** + *
+     * Applies to configuring templated kubernetes cluster resources.
+     * 
+ * + * CLUSTER_RESOURCE = 1; + */ + public static final int CLUSTER_RESOURCE_VALUE = 1; + /** + *
+     * Configures task and dynamic task execution queue assignment.
+     * 
+ * + * EXECUTION_QUEUE = 2; + */ + public static final int EXECUTION_QUEUE_VALUE = 2; + /** + *
+     * Configures the K8s cluster label to be used for execution to be run
+     * 
+ * + * EXECUTION_CLUSTER_LABEL = 3; + */ + public static final int EXECUTION_CLUSTER_LABEL_VALUE = 3; + /** + *
+     * Configures default quality of service when undefined in an execution spec.
+     * 
+ * + * QUALITY_OF_SERVICE_SPECIFICATION = 4; + */ + public static final int QUALITY_OF_SERVICE_SPECIFICATION_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchableResource valueOf(int value) { + return forNumber(value); + } + + public static MatchableResource forNumber(int value) { + switch (value) { + case 0: return TASK_RESOURCE; + case 1: return CLUSTER_RESOURCE; + case 2: return EXECUTION_QUEUE; + case 3: return EXECUTION_CLUSTER_LABEL; + case 4: return QUALITY_OF_SERVICE_SPECIFICATION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MatchableResource> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchableResource findValueByNumber(int number) { + return MatchableResource.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.admin.MatchableResourceOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final MatchableResource[] VALUES = values(); + + public static MatchableResource 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 MatchableResource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.MatchableResource) + } + + public interface TaskResourceSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskResourceSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * string cpu = 1; + */ + java.lang.String getCpu(); + /** + * string cpu = 1; + */ + com.google.protobuf.ByteString + getCpuBytes(); + + /** + * string gpu = 2; + */ + java.lang.String getGpu(); + /** + * string gpu = 2; + */ + com.google.protobuf.ByteString + getGpuBytes(); + + /** + * string memory = 3; + */ + java.lang.String getMemory(); + /** + * string memory = 3; + */ + com.google.protobuf.ByteString + getMemoryBytes(); + + /** + * string storage = 4; + */ + java.lang.String getStorage(); + /** + * string storage = 4; + */ + com.google.protobuf.ByteString + getStorageBytes(); + } + /** + * Protobuf type {@code flyteidl.admin.TaskResourceSpec} + */ + public static final class TaskResourceSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskResourceSpec) + TaskResourceSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskResourceSpec.newBuilder() to construct. + private TaskResourceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskResourceSpec() { + cpu_ = ""; + gpu_ = ""; + memory_ = ""; + storage_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskResourceSpec( + 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(); + + cpu_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + gpu_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + memory_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + storage_ = 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder.class); + } + + public static final int CPU_FIELD_NUMBER = 1; + private volatile java.lang.Object cpu_; + /** + * string cpu = 1; + */ + public java.lang.String getCpu() { + java.lang.Object ref = cpu_; + 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(); + cpu_ = s; + return s; + } + } + /** + * string cpu = 1; + */ + public com.google.protobuf.ByteString + getCpuBytes() { + java.lang.Object ref = cpu_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GPU_FIELD_NUMBER = 2; + private volatile java.lang.Object gpu_; + /** + * string gpu = 2; + */ + public java.lang.String getGpu() { + java.lang.Object ref = gpu_; + 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(); + gpu_ = s; + return s; + } + } + /** + * string gpu = 2; + */ + public com.google.protobuf.ByteString + getGpuBytes() { + java.lang.Object ref = gpu_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEMORY_FIELD_NUMBER = 3; + private volatile java.lang.Object memory_; + /** + * string memory = 3; + */ + public java.lang.String getMemory() { + java.lang.Object ref = memory_; + 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(); + memory_ = s; + return s; + } + } + /** + * string memory = 3; + */ + public com.google.protobuf.ByteString + getMemoryBytes() { + java.lang.Object ref = memory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + memory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STORAGE_FIELD_NUMBER = 4; + private volatile java.lang.Object storage_; + /** + * string storage = 4; + */ + public java.lang.String getStorage() { + java.lang.Object ref = storage_; + 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(); + storage_ = s; + return s; + } + } + /** + * string storage = 4; + */ + public com.google.protobuf.ByteString + getStorageBytes() { + java.lang.Object ref = storage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storage_ = 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 (!getCpuBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpu_); + } + if (!getGpuBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gpu_); + } + if (!getMemoryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, memory_); + } + if (!getStorageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storage_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCpuBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpu_); + } + if (!getGpuBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gpu_); + } + if (!getMemoryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, memory_); + } + if (!getStorageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storage_); + } + 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec other = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) obj; + + if (!getCpu() + .equals(other.getCpu())) return false; + if (!getGpu() + .equals(other.getGpu())) return false; + if (!getMemory() + .equals(other.getMemory())) return false; + if (!getStorage() + .equals(other.getStorage())) 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) + CPU_FIELD_NUMBER; + hash = (53 * hash) + getCpu().hashCode(); + hash = (37 * hash) + GPU_FIELD_NUMBER; + hash = (53 * hash) + getGpu().hashCode(); + hash = (37 * hash) + MEMORY_FIELD_NUMBER; + hash = (53 * hash) + getMemory().hashCode(); + hash = (37 * hash) + STORAGE_FIELD_NUMBER; + hash = (53 * hash) + getStorage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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 flyteidl.admin.TaskResourceSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskResourceSpec) + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.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(); + cpu_ = ""; + + gpu_ = ""; + + memory_ = ""; + + storage_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec build() { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec result = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec(this); + result.cpu_ = cpu_; + result.gpu_ = gpu_; + result.memory_ = memory_; + result.storage_ = storage_; + 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance()) return this; + if (!other.getCpu().isEmpty()) { + cpu_ = other.cpu_; + onChanged(); + } + if (!other.getGpu().isEmpty()) { + gpu_ = other.gpu_; + onChanged(); + } + if (!other.getMemory().isEmpty()) { + memory_ = other.memory_; + onChanged(); + } + if (!other.getStorage().isEmpty()) { + storage_ = other.storage_; + 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 { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object cpu_ = ""; + /** + * string cpu = 1; + */ + public java.lang.String getCpu() { + java.lang.Object ref = cpu_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpu_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cpu = 1; + */ + public com.google.protobuf.ByteString + getCpuBytes() { + java.lang.Object ref = cpu_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cpu = 1; + */ + public Builder setCpu( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cpu_ = value; + onChanged(); + return this; + } + /** + * string cpu = 1; + */ + public Builder clearCpu() { + + cpu_ = getDefaultInstance().getCpu(); + onChanged(); + return this; + } + /** + * string cpu = 1; + */ + public Builder setCpuBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cpu_ = value; + onChanged(); + return this; + } + + private java.lang.Object gpu_ = ""; + /** + * string gpu = 2; + */ + public java.lang.String getGpu() { + java.lang.Object ref = gpu_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpu_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string gpu = 2; + */ + public com.google.protobuf.ByteString + getGpuBytes() { + java.lang.Object ref = gpu_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string gpu = 2; + */ + public Builder setGpu( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gpu_ = value; + onChanged(); + return this; + } + /** + * string gpu = 2; + */ + public Builder clearGpu() { + + gpu_ = getDefaultInstance().getGpu(); + onChanged(); + return this; + } + /** + * string gpu = 2; + */ + public Builder setGpuBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gpu_ = value; + onChanged(); + return this; + } + + private java.lang.Object memory_ = ""; + /** + * string memory = 3; + */ + public java.lang.String getMemory() { + java.lang.Object ref = memory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + memory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string memory = 3; + */ + public com.google.protobuf.ByteString + getMemoryBytes() { + java.lang.Object ref = memory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + memory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string memory = 3; + */ + public Builder setMemory( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + memory_ = value; + onChanged(); + return this; + } + /** + * string memory = 3; + */ + public Builder clearMemory() { + + memory_ = getDefaultInstance().getMemory(); + onChanged(); + return this; + } + /** + * string memory = 3; + */ + public Builder setMemoryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + memory_ = value; + onChanged(); + return this; + } + + private java.lang.Object storage_ = ""; + /** + * string storage = 4; + */ + public java.lang.String getStorage() { + java.lang.Object ref = storage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string storage = 4; + */ + public com.google.protobuf.ByteString + getStorageBytes() { + java.lang.Object ref = storage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string storage = 4; + */ + public Builder setStorage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + storage_ = value; + onChanged(); + return this; + } + /** + * string storage = 4; + */ + public Builder clearStorage() { + + storage_ = getDefaultInstance().getStorage(); + onChanged(); + return this; + } + /** + * string storage = 4; + */ + public Builder setStorageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + storage_ = 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:flyteidl.admin.TaskResourceSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceSpec) + private static final flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskResourceSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskResourceSpec(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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskResourceAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskResourceAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + boolean hasDefaults(); + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults(); + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder(); + + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + boolean hasLimits(); + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits(); + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.TaskResourceAttributes} + */ + public static final class TaskResourceAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskResourceAttributes) + TaskResourceAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskResourceAttributes.newBuilder() to construct. + private TaskResourceAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskResourceAttributes() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskResourceAttributes( + 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: { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder subBuilder = null; + if (defaults_ != null) { + subBuilder = defaults_.toBuilder(); + } + defaults_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaults_); + defaults_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder subBuilder = null; + if (limits_ != null) { + subBuilder = limits_.toBuilder(); + } + limits_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(limits_); + limits_ = 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder.class); + } + + public static final int DEFAULTS_FIELD_NUMBER = 1; + private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec defaults_; + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public boolean hasDefaults() { + return defaults_ != null; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults() { + return defaults_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder() { + return getDefaults(); + } + + public static final int LIMITS_FIELD_NUMBER = 2; + private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec limits_; + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public boolean hasLimits() { + return limits_ != null; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits() { + return limits_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder() { + return getLimits(); + } + + 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 (defaults_ != null) { + output.writeMessage(1, getDefaults()); + } + if (limits_ != null) { + output.writeMessage(2, getLimits()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (defaults_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDefaults()); + } + if (limits_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLimits()); + } + 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes other = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) obj; + + if (hasDefaults() != other.hasDefaults()) return false; + if (hasDefaults()) { + if (!getDefaults() + .equals(other.getDefaults())) return false; + } + if (hasLimits() != other.hasLimits()) return false; + if (hasLimits()) { + if (!getLimits() + .equals(other.getLimits())) 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 (hasDefaults()) { + hash = (37 * hash) + DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getDefaults().hashCode(); + } + if (hasLimits()) { + hash = (37 * hash) + LIMITS_FIELD_NUMBER; + hash = (53 * hash) + getLimits().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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 flyteidl.admin.TaskResourceAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskResourceAttributes) + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.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 (defaultsBuilder_ == null) { + defaults_ = null; + } else { + defaults_ = null; + defaultsBuilder_ = null; + } + if (limitsBuilder_ == null) { + limits_ = null; + } else { + limits_ = null; + limitsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes build() { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes result = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes(this); + if (defaultsBuilder_ == null) { + result.defaults_ = defaults_; + } else { + result.defaults_ = defaultsBuilder_.build(); + } + if (limitsBuilder_ == null) { + result.limits_ = limits_; + } else { + result.limits_ = limitsBuilder_.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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance()) return this; + if (other.hasDefaults()) { + mergeDefaults(other.getDefaults()); + } + if (other.hasLimits()) { + mergeLimits(other.getLimits()); + } + 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 { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec defaults_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> defaultsBuilder_; + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public boolean hasDefaults() { + return defaultsBuilder_ != null || defaults_ != null; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults() { + if (defaultsBuilder_ == null) { + return defaults_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; + } else { + return defaultsBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public Builder setDefaults(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { + if (defaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaults_ = value; + onChanged(); + } else { + defaultsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public Builder setDefaults( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder builderForValue) { + if (defaultsBuilder_ == null) { + defaults_ = builderForValue.build(); + onChanged(); + } else { + defaultsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public Builder mergeDefaults(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { + if (defaultsBuilder_ == null) { + if (defaults_ != null) { + defaults_ = + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.newBuilder(defaults_).mergeFrom(value).buildPartial(); + } else { + defaults_ = value; + } + onChanged(); + } else { + defaultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public Builder clearDefaults() { + if (defaultsBuilder_ == null) { + defaults_ = null; + onChanged(); + } else { + defaults_ = null; + defaultsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder getDefaultsBuilder() { + + onChanged(); + return getDefaultsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder() { + if (defaultsBuilder_ != null) { + return defaultsBuilder_.getMessageOrBuilder(); + } else { + return defaults_ == null ? + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; + } + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> + getDefaultsFieldBuilder() { + if (defaultsBuilder_ == null) { + defaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder>( + getDefaults(), + getParentForChildren(), + isClean()); + defaults_ = null; + } + return defaultsBuilder_; + } + + private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec limits_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> limitsBuilder_; + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public boolean hasLimits() { + return limitsBuilder_ != null || limits_ != null; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits() { + if (limitsBuilder_ == null) { + return limits_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; + } else { + return limitsBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public Builder setLimits(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + limits_ = value; + onChanged(); + } else { + limitsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public Builder setLimits( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder builderForValue) { + if (limitsBuilder_ == null) { + limits_ = builderForValue.build(); + onChanged(); + } else { + limitsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public Builder mergeLimits(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { + if (limitsBuilder_ == null) { + if (limits_ != null) { + limits_ = + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.newBuilder(limits_).mergeFrom(value).buildPartial(); + } else { + limits_ = value; + } + onChanged(); + } else { + limitsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public Builder clearLimits() { + if (limitsBuilder_ == null) { + limits_ = null; + onChanged(); + } else { + limits_ = null; + limitsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder getLimitsBuilder() { + + onChanged(); + return getLimitsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder() { + if (limitsBuilder_ != null) { + return limitsBuilder_.getMessageOrBuilder(); + } else { + return limits_ == null ? + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; + } + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> + getLimitsFieldBuilder() { + if (limitsBuilder_ == null) { + limitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder>( + getLimits(), + getParentForChildren(), + isClean()); + limits_ = null; + } + return limitsBuilder_; + } + @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:flyteidl.admin.TaskResourceAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceAttributes) + private static final flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskResourceAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskResourceAttributes(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 flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ClusterResourceAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ClusterResourceAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + int getAttributesCount(); + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + boolean containsAttributes( + java.lang.String key); + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAttributes(); + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + java.util.Map + getAttributesMap(); + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + java.lang.String getAttributesOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code flyteidl.admin.ClusterResourceAttributes} + */ + public static final class ClusterResourceAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ClusterResourceAttributes) + ClusterResourceAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterResourceAttributes.newBuilder() to construct. + private ClusterResourceAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClusterResourceAttributes() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClusterResourceAttributes( + 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)) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + attributes__ = input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + attributes_.getMutableMap().put( + attributes__.getKey(), attributes__.getValue()); + 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private static final class AttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + public java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + public java.lang.String getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttributes(), + AttributesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, attributes__); + } + 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes other = (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) obj; + + if (!internalGetAttributes().equals( + other.internalGetAttributes())) 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 (!internalGetAttributes().getMap().isEmpty()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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 flyteidl.admin.ClusterResourceAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ClusterResourceAttributes) + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.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(); + internalGetMutableAttributes().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes build() { + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes result = new flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes(this); + int from_bitField0_ = bitField0_; + result.attributes_ = internalGetAttributes(); + result.attributes_.makeImmutable(); + 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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance()) return this; + internalGetMutableAttributes().mergeFrom( + other.internalGetAttributes()); + 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 { + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + private com.google.protobuf.MapField + internalGetMutableAttributes() { + onChanged();; + if (attributes_ == null) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + if (!attributes_.isMutable()) { + attributes_ = attributes_.copy(); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public java.lang.String getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAttributes() { + internalGetMutableAttributes().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public Builder removeAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAttributes().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAttributes() { + return internalGetMutableAttributes().getMutableMap(); + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + public Builder putAttributes( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAttributes().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public Builder putAllAttributes( + java.util.Map values) { + internalGetMutableAttributes().getMutableMap() + .putAll(values); + 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:flyteidl.admin.ClusterResourceAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ClusterResourceAttributes) + private static final flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterResourceAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterResourceAttributes(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 flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionQueueAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionQueueAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + java.util.List + getTagsList(); + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + int getTagsCount(); + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + java.lang.String getTags(int index); + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionQueueAttributes} + */ + public static final class ExecutionQueueAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionQueueAttributes) + ExecutionQueueAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionQueueAttributes.newBuilder() to construct. + private ExecutionQueueAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionQueueAttributes() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionQueueAttributes( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tags_.add(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)) { + tags_ = tags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder.class); + } + + public static final int TAGS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList tags_; + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(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 < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes other = (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) obj; + + if (!getTagsList() + .equals(other.getTagsList())) 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 (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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 flyteidl.admin.ExecutionQueueAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionQueueAttributes) + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.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(); + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes build() { + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes result = new flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tags_ = tags_; + 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance()) return this; + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + 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 { + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(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:flyteidl.admin.ExecutionQueueAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionQueueAttributes) + private static final flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionQueueAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionQueueAttributes(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 flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionClusterLabelOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionClusterLabel) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Label value to determine where the execution will be run
+     * 
+ * + * string value = 1; + */ + java.lang.String getValue(); + /** + *
+     * Label value to determine where the execution will be run
+     * 
+ * + * string value = 1; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionClusterLabel} + */ + public static final class ExecutionClusterLabel extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionClusterLabel) + ExecutionClusterLabelOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionClusterLabel.newBuilder() to construct. + private ExecutionClusterLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionClusterLabel() { + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionClusterLabel( + 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(); + + 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private volatile java.lang.Object value_; + /** + *
+     * Label value to determine where the execution will be run
+     * 
+ * + * string value = 1; + */ + 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; + } + } + /** + *
+     * Label value to determine where the execution will be run
+     * 
+ * + * string value = 1; + */ + 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 (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel other = (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) obj; + + 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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 flyteidl.admin.ExecutionClusterLabel} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionClusterLabel) + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.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(); + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel build() { + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel result = new flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel(this); + 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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance()) return this; + 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 { + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + 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; + } + } + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + 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; + } + } + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + 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:flyteidl.admin.ExecutionClusterLabel) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClusterLabel) + private static final flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionClusterLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionClusterLabel(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 flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MatchingAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.MatchingAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + boolean hasTaskResourceAttributes(); + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes(); + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder(); + + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + boolean hasClusterResourceAttributes(); + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes(); + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder(); + + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + boolean hasExecutionQueueAttributes(); + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes(); + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder(); + + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + boolean hasExecutionClusterLabel(); + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel(); + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder(); + + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + boolean hasQualityOfService(); + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + flyteidl.core.Execution.QualityOfService getQualityOfService(); + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); + + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.TargetCase getTargetCase(); + } + /** + *
+   * Generic container for encapsulating all types of the above attributes messages.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.MatchingAttributes} + */ + public static final class MatchingAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.MatchingAttributes) + MatchingAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use MatchingAttributes.newBuilder() to construct. + private MatchingAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MatchingAttributes() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MatchingAttributes( + 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: { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder subBuilder = null; + if (targetCase_ == 1) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 1; + break; + } + case 18: { + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder subBuilder = null; + if (targetCase_ == 2) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 2; + break; + } + case 26: { + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder subBuilder = null; + if (targetCase_ == 3) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 3; + break; + } + case 34: { + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder subBuilder = null; + if (targetCase_ == 4) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 4; + break; + } + case 42: { + flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; + if (targetCase_ == 5) { + subBuilder = ((flyteidl.core.Execution.QualityOfService) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.QualityOfService) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 5; + 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.class, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder.class); + } + + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite { + TASK_RESOURCE_ATTRIBUTES(1), + CLUSTER_RESOURCE_ATTRIBUTES(2), + EXECUTION_QUEUE_ATTRIBUTES(3), + EXECUTION_CLUSTER_LABEL(4), + QUALITY_OF_SERVICE(5), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 1: return TASK_RESOURCE_ATTRIBUTES; + case 2: return CLUSTER_RESOURCE_ATTRIBUTES; + case 3: return EXECUTION_QUEUE_ATTRIBUTES; + case 4: return EXECUTION_CLUSTER_LABEL; + case 5: return QUALITY_OF_SERVICE; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public static final int TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER = 1; + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public boolean hasTaskResourceAttributes() { + return targetCase_ == 1; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes() { + if (targetCase_ == 1) { + return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder() { + if (targetCase_ == 1) { + return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + + public static final int CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER = 2; + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public boolean hasClusterResourceAttributes() { + return targetCase_ == 2; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes() { + if (targetCase_ == 2) { + return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder() { + if (targetCase_ == 2) { + return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + + public static final int EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER = 3; + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public boolean hasExecutionQueueAttributes() { + return targetCase_ == 3; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes() { + if (targetCase_ == 3) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder() { + if (targetCase_ == 3) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + + public static final int EXECUTION_CLUSTER_LABEL_FIELD_NUMBER = 4; + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public boolean hasExecutionClusterLabel() { + return targetCase_ == 4; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel() { + if (targetCase_ == 4) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder() { + if (targetCase_ == 4) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + + public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 5; + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public boolean hasQualityOfService() { + return targetCase_ == 5; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (targetCase_ == 5) { + return (flyteidl.core.Execution.QualityOfService) target_; + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if (targetCase_ == 5) { + return (flyteidl.core.Execution.QualityOfService) target_; + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (targetCase_ == 1) { + output.writeMessage(1, (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); + } + if (targetCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); + } + if (targetCase_ == 3) { + output.writeMessage(3, (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); + } + if (targetCase_ == 4) { + output.writeMessage(4, (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); + } + if (targetCase_ == 5) { + output.writeMessage(5, (flyteidl.core.Execution.QualityOfService) target_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (targetCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); + } + if (targetCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); + } + if (targetCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); + } + if (targetCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); + } + if (targetCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.core.Execution.QualityOfService) target_); + } + 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes other = (flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) obj; + + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 1: + if (!getTaskResourceAttributes() + .equals(other.getTaskResourceAttributes())) return false; + break; + case 2: + if (!getClusterResourceAttributes() + .equals(other.getClusterResourceAttributes())) return false; + break; + case 3: + if (!getExecutionQueueAttributes() + .equals(other.getExecutionQueueAttributes())) return false; + break; + case 4: + if (!getExecutionClusterLabel() + .equals(other.getExecutionClusterLabel())) return false; + break; + case 5: + if (!getQualityOfService() + .equals(other.getQualityOfService())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (targetCase_) { + case 1: + hash = (37 * hash) + TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getTaskResourceAttributes().hashCode(); + break; + case 2: + hash = (37 * hash) + CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getClusterResourceAttributes().hashCode(); + break; + case 3: + hash = (37 * hash) + EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getExecutionQueueAttributes().hashCode(); + break; + case 4: + hash = (37 * hash) + EXECUTION_CLUSTER_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getExecutionClusterLabel().hashCode(); + break; + case 5: + hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getQualityOfService().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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; + } + /** + *
+     * Generic container for encapsulating all types of the above attributes messages.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.MatchingAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.MatchingAttributes) + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.class, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.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(); + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes build() { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes result = new flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes(this); + if (targetCase_ == 1) { + if (taskResourceAttributesBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = taskResourceAttributesBuilder_.build(); + } + } + if (targetCase_ == 2) { + if (clusterResourceAttributesBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = clusterResourceAttributesBuilder_.build(); + } + } + if (targetCase_ == 3) { + if (executionQueueAttributesBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = executionQueueAttributesBuilder_.build(); + } + } + if (targetCase_ == 4) { + if (executionClusterLabelBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = executionClusterLabelBuilder_.build(); + } + } + if (targetCase_ == 5) { + if (qualityOfServiceBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = qualityOfServiceBuilder_.build(); + } + } + result.targetCase_ = targetCase_; + 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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance()) return this; + switch (other.getTargetCase()) { + case TASK_RESOURCE_ATTRIBUTES: { + mergeTaskResourceAttributes(other.getTaskResourceAttributes()); + break; + } + case CLUSTER_RESOURCE_ATTRIBUTES: { + mergeClusterResourceAttributes(other.getClusterResourceAttributes()); + break; + } + case EXECUTION_QUEUE_ATTRIBUTES: { + mergeExecutionQueueAttributes(other.getExecutionQueueAttributes()); + break; + } + case EXECUTION_CLUSTER_LABEL: { + mergeExecutionClusterLabel(other.getExecutionClusterLabel()); + break; + } + case QUALITY_OF_SERVICE: { + mergeQualityOfService(other.getQualityOfService()); + break; + } + case TARGET_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 { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder> taskResourceAttributesBuilder_; + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public boolean hasTaskResourceAttributes() { + return targetCase_ == 1; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes() { + if (taskResourceAttributesBuilder_ == null) { + if (targetCase_ == 1) { + return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } else { + if (targetCase_ == 1) { + return taskResourceAttributesBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public Builder setTaskResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes value) { + if (taskResourceAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + taskResourceAttributesBuilder_.setMessage(value); + } + targetCase_ = 1; + return this; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public Builder setTaskResourceAttributes( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder builderForValue) { + if (taskResourceAttributesBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + taskResourceAttributesBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 1; + return this; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public Builder mergeTaskResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes value) { + if (taskResourceAttributesBuilder_ == null) { + if (targetCase_ == 1 && + target_ != flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 1) { + taskResourceAttributesBuilder_.mergeFrom(value); + } + taskResourceAttributesBuilder_.setMessage(value); + } + targetCase_ = 1; + return this; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public Builder clearTaskResourceAttributes() { + if (taskResourceAttributesBuilder_ == null) { + if (targetCase_ == 1) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 1) { + targetCase_ = 0; + target_ = null; + } + taskResourceAttributesBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder getTaskResourceAttributesBuilder() { + return getTaskResourceAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder() { + if ((targetCase_ == 1) && (taskResourceAttributesBuilder_ != null)) { + return taskResourceAttributesBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 1) { + return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder> + getTaskResourceAttributesFieldBuilder() { + if (taskResourceAttributesBuilder_ == null) { + if (!(targetCase_ == 1)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + taskResourceAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 1; + onChanged();; + return taskResourceAttributesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder> clusterResourceAttributesBuilder_; + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public boolean hasClusterResourceAttributes() { + return targetCase_ == 2; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes() { + if (clusterResourceAttributesBuilder_ == null) { + if (targetCase_ == 2) { + return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } else { + if (targetCase_ == 2) { + return clusterResourceAttributesBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public Builder setClusterResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes value) { + if (clusterResourceAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + clusterResourceAttributesBuilder_.setMessage(value); + } + targetCase_ = 2; + return this; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public Builder setClusterResourceAttributes( + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder builderForValue) { + if (clusterResourceAttributesBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + clusterResourceAttributesBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 2; + return this; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public Builder mergeClusterResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes value) { + if (clusterResourceAttributesBuilder_ == null) { + if (targetCase_ == 2 && + target_ != flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 2) { + clusterResourceAttributesBuilder_.mergeFrom(value); + } + clusterResourceAttributesBuilder_.setMessage(value); + } + targetCase_ = 2; + return this; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public Builder clearClusterResourceAttributes() { + if (clusterResourceAttributesBuilder_ == null) { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + } + clusterResourceAttributesBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder getClusterResourceAttributesBuilder() { + return getClusterResourceAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder() { + if ((targetCase_ == 2) && (clusterResourceAttributesBuilder_ != null)) { + return clusterResourceAttributesBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 2) { + return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder> + getClusterResourceAttributesFieldBuilder() { + if (clusterResourceAttributesBuilder_ == null) { + if (!(targetCase_ == 2)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + clusterResourceAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 2; + onChanged();; + return clusterResourceAttributesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder> executionQueueAttributesBuilder_; + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public boolean hasExecutionQueueAttributes() { + return targetCase_ == 3; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes() { + if (executionQueueAttributesBuilder_ == null) { + if (targetCase_ == 3) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } else { + if (targetCase_ == 3) { + return executionQueueAttributesBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public Builder setExecutionQueueAttributes(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes value) { + if (executionQueueAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + executionQueueAttributesBuilder_.setMessage(value); + } + targetCase_ = 3; + return this; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public Builder setExecutionQueueAttributes( + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder builderForValue) { + if (executionQueueAttributesBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + executionQueueAttributesBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 3; + return this; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public Builder mergeExecutionQueueAttributes(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes value) { + if (executionQueueAttributesBuilder_ == null) { + if (targetCase_ == 3 && + target_ != flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 3) { + executionQueueAttributesBuilder_.mergeFrom(value); + } + executionQueueAttributesBuilder_.setMessage(value); + } + targetCase_ = 3; + return this; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public Builder clearExecutionQueueAttributes() { + if (executionQueueAttributesBuilder_ == null) { + if (targetCase_ == 3) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 3) { + targetCase_ = 0; + target_ = null; + } + executionQueueAttributesBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder getExecutionQueueAttributesBuilder() { + return getExecutionQueueAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder() { + if ((targetCase_ == 3) && (executionQueueAttributesBuilder_ != null)) { + return executionQueueAttributesBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 3) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder> + getExecutionQueueAttributesFieldBuilder() { + if (executionQueueAttributesBuilder_ == null) { + if (!(targetCase_ == 3)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + executionQueueAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 3; + onChanged();; + return executionQueueAttributesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder> executionClusterLabelBuilder_; + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public boolean hasExecutionClusterLabel() { + return targetCase_ == 4; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel() { + if (executionClusterLabelBuilder_ == null) { + if (targetCase_ == 4) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } else { + if (targetCase_ == 4) { + return executionClusterLabelBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public Builder setExecutionClusterLabel(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel value) { + if (executionClusterLabelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + executionClusterLabelBuilder_.setMessage(value); + } + targetCase_ = 4; + return this; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public Builder setExecutionClusterLabel( + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder builderForValue) { + if (executionClusterLabelBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + executionClusterLabelBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 4; + return this; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public Builder mergeExecutionClusterLabel(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel value) { + if (executionClusterLabelBuilder_ == null) { + if (targetCase_ == 4 && + target_ != flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 4) { + executionClusterLabelBuilder_.mergeFrom(value); + } + executionClusterLabelBuilder_.setMessage(value); + } + targetCase_ = 4; + return this; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public Builder clearExecutionClusterLabel() { + if (executionClusterLabelBuilder_ == null) { + if (targetCase_ == 4) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 4) { + targetCase_ = 0; + target_ = null; + } + executionClusterLabelBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder getExecutionClusterLabelBuilder() { + return getExecutionClusterLabelFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder() { + if ((targetCase_ == 4) && (executionClusterLabelBuilder_ != null)) { + return executionClusterLabelBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 4) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder> + getExecutionClusterLabelFieldBuilder() { + if (executionClusterLabelBuilder_ == null) { + if (!(targetCase_ == 4)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + executionClusterLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 4; + onChanged();; + return executionClusterLabelBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public boolean hasQualityOfService() { + return targetCase_ == 5; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + if (targetCase_ == 5) { + return (flyteidl.core.Execution.QualityOfService) target_; + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } else { + if (targetCase_ == 5) { + return qualityOfServiceBuilder_.getMessage(); + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(value); + } + targetCase_ = 5; + return this; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public Builder setQualityOfService( + flyteidl.core.Execution.QualityOfService.Builder builderForValue) { + if (qualityOfServiceBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 5; + return this; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (targetCase_ == 5 && + target_ != flyteidl.core.Execution.QualityOfService.getDefaultInstance()) { + target_ = flyteidl.core.Execution.QualityOfService.newBuilder((flyteidl.core.Execution.QualityOfService) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 5) { + qualityOfServiceBuilder_.mergeFrom(value); + } + qualityOfServiceBuilder_.setMessage(value); + } + targetCase_ = 5; + return this; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public Builder clearQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + if (targetCase_ == 5) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 5) { + targetCase_ = 0; + target_ = null; + } + qualityOfServiceBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { + return getQualityOfServiceFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if ((targetCase_ == 5) && (qualityOfServiceBuilder_ != null)) { + return qualityOfServiceBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 5) { + return (flyteidl.core.Execution.QualityOfService) target_; + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> + getQualityOfServiceFieldBuilder() { + if (qualityOfServiceBuilder_ == null) { + if (!(targetCase_ == 5)) { + target_ = flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( + (flyteidl.core.Execution.QualityOfService) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 5; + onChanged();; + return qualityOfServiceBuilder_; + } + @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:flyteidl.admin.MatchingAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchingAttributes) + private static final flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchingAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MatchingAttributes(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 flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MatchableAttributesConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.MatchableAttributesConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes(); + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder(); + + /** + * string domain = 2; + */ + java.lang.String getDomain(); + /** + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * string project = 3; + */ + java.lang.String getProject(); + /** + * string project = 3; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + * string workflow = 4; + */ + java.lang.String getWorkflow(); + /** + * string workflow = 4; + */ + com.google.protobuf.ByteString + getWorkflowBytes(); + + /** + * string launch_plan = 5; + */ + java.lang.String getLaunchPlan(); + /** + * string launch_plan = 5; + */ + com.google.protobuf.ByteString + getLaunchPlanBytes(); + } + /** + *
+   * Represents a custom set of attributes applied for either a domain; a domain and project; or
+   * domain, project and workflow name.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.MatchableAttributesConfiguration} + */ + public static final class MatchableAttributesConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.MatchableAttributesConfiguration) + MatchableAttributesConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use MatchableAttributesConfiguration.newBuilder() to construct. + private MatchableAttributesConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MatchableAttributesConfiguration() { + domain_ = ""; + project_ = ""; + workflow_ = ""; + launchPlan_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MatchableAttributesConfiguration( + 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: { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + workflow_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + launchPlan_ = 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.class, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes attributes_; + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 3; + private volatile java.lang.Object project_; + /** + * string project = 3; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + * string project = 3; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_FIELD_NUMBER = 4; + private volatile java.lang.Object workflow_; + /** + * string workflow = 4; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + 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(); + workflow_ = s; + return s; + } + } + /** + * string workflow = 4; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAUNCH_PLAN_FIELD_NUMBER = 5; + private volatile java.lang.Object launchPlan_; + /** + * string launch_plan = 5; + */ + public java.lang.String getLaunchPlan() { + java.lang.Object ref = launchPlan_; + 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(); + launchPlan_ = s; + return s; + } + } + /** + * string launch_plan = 5; + */ + public com.google.protobuf.ByteString + getLaunchPlanBytes() { + java.lang.Object ref = launchPlan_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + launchPlan_ = 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 (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, project_); + } + if (!getWorkflowBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, workflow_); + } + if (!getLaunchPlanBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, launchPlan_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, project_); + } + if (!getWorkflowBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, workflow_); + } + if (!getLaunchPlanBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, launchPlan_); + } + 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration other = (flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) return false; + } + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + if (!getLaunchPlan() + .equals(other.getLaunchPlan())) 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 (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + hash = (37 * hash) + LAUNCH_PLAN_FIELD_NUMBER; + hash = (53 * hash) + getLaunchPlan().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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; + } + /** + *
+     * Represents a custom set of attributes applied for either a domain; a domain and project; or
+     * domain, project and workflow name.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.MatchableAttributesConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.MatchableAttributesConfiguration) + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.class, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.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 (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + domain_ = ""; + + project_ = ""; + + workflow_ = ""; + + launchPlan_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration build() { + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration result = new flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } + result.domain_ = domain_; + result.project_ = project_; + result.workflow_ = workflow_; + result.launchPlan_ = launchPlan_; + 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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getWorkflow().isEmpty()) { + workflow_ = other.workflow_; + onChanged(); + } + if (!other.getLaunchPlan().isEmpty()) { + launchPlan_ = other.launchPlan_; + 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 { + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + + private java.lang.Object domain_ = ""; + /** + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * string project = 3; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string project = 3; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string project = 3; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + * string project = 3; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + * string project = 3; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object workflow_ = ""; + /** + * string workflow = 4; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workflow = 4; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workflow = 4; + */ + public Builder setWorkflow( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflow_ = value; + onChanged(); + return this; + } + /** + * string workflow = 4; + */ + public Builder clearWorkflow() { + + workflow_ = getDefaultInstance().getWorkflow(); + onChanged(); + return this; + } + /** + * string workflow = 4; + */ + public Builder setWorkflowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflow_ = value; + onChanged(); + return this; + } + + private java.lang.Object launchPlan_ = ""; + /** + * string launch_plan = 5; + */ + public java.lang.String getLaunchPlan() { + java.lang.Object ref = launchPlan_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + launchPlan_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string launch_plan = 5; + */ + public com.google.protobuf.ByteString + getLaunchPlanBytes() { + java.lang.Object ref = launchPlan_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + launchPlan_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string launch_plan = 5; + */ + public Builder setLaunchPlan( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + launchPlan_ = value; + onChanged(); + return this; + } + /** + * string launch_plan = 5; + */ + public Builder clearLaunchPlan() { + + launchPlan_ = getDefaultInstance().getLaunchPlan(); + onChanged(); + return this; + } + /** + * string launch_plan = 5; + */ + public Builder setLaunchPlanBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + launchPlan_ = 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:flyteidl.admin.MatchableAttributesConfiguration) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchableAttributesConfiguration) + private static final flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchableAttributesConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MatchableAttributesConfiguration(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 flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListMatchableAttributesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListMatchableAttributesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + int getResourceTypeValue(); + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + *
+   * Request all matching resource attributes.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ListMatchableAttributesRequest} + */ + public static final class ListMatchableAttributesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ListMatchableAttributesRequest) + ListMatchableAttributesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMatchableAttributesRequest.newBuilder() to construct. + private ListMatchableAttributesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListMatchableAttributesRequest() { + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListMatchableAttributesRequest( + 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 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + 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 flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + 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 (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(1, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest other = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) obj; + + if (resourceType_ != other.resourceType_) 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) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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; + } + /** + *
+     * Request all matching resource attributes.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ListMatchableAttributesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListMatchableAttributesRequest) + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.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(); + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest build() { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest result = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest(this); + result.resourceType_ = resourceType_; + 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + 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 { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + 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:flyteidl.admin.ListMatchableAttributesRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesRequest) + private static final flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMatchableAttributesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMatchableAttributesRequest(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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListMatchableAttributesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListMatchableAttributesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + java.util.List + getConfigurationsList(); + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index); + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + int getConfigurationsCount(); + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + java.util.List + getConfigurationsOrBuilderList(); + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( + int index); + } + /** + *
+   * Response for a request for all matching resource attributes.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ListMatchableAttributesResponse} + */ + public static final class ListMatchableAttributesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ListMatchableAttributesResponse) + ListMatchableAttributesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMatchableAttributesResponse.newBuilder() to construct. + private ListMatchableAttributesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListMatchableAttributesResponse() { + configurations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListMatchableAttributesResponse( + 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)) { + configurations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + configurations_.add( + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.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)) { + configurations_ = java.util.Collections.unmodifiableList(configurations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.Builder.class); + } + + public static final int CONFIGURATIONS_FIELD_NUMBER = 1; + private java.util.List configurations_; + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List getConfigurationsList() { + return configurations_; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List + getConfigurationsOrBuilderList() { + return configurations_; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public int getConfigurationsCount() { + return configurations_.size(); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index) { + return configurations_.get(index); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( + int index) { + return configurations_.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 < configurations_.size(); i++) { + output.writeMessage(1, configurations_.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 < configurations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, configurations_.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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse other = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) obj; + + if (!getConfigurationsList() + .equals(other.getConfigurationsList())) 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 (getConfigurationsCount() > 0) { + hash = (37 * hash) + CONFIGURATIONS_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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; + } + /** + *
+     * Response for a request for all matching resource attributes.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ListMatchableAttributesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListMatchableAttributesResponse) + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConfigurationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (configurationsBuilder_ == null) { + configurations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + configurationsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse build() { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse result = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse(this); + int from_bitField0_ = bitField0_; + if (configurationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + configurations_ = java.util.Collections.unmodifiableList(configurations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.configurations_ = configurations_; + } else { + result.configurations_ = configurationsBuilder_.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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.getDefaultInstance()) return this; + if (configurationsBuilder_ == null) { + if (!other.configurations_.isEmpty()) { + if (configurations_.isEmpty()) { + configurations_ = other.configurations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConfigurationsIsMutable(); + configurations_.addAll(other.configurations_); + } + onChanged(); + } + } else { + if (!other.configurations_.isEmpty()) { + if (configurationsBuilder_.isEmpty()) { + configurationsBuilder_.dispose(); + configurationsBuilder_ = null; + configurations_ = other.configurations_; + bitField0_ = (bitField0_ & ~0x00000001); + configurationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConfigurationsFieldBuilder() : null; + } else { + configurationsBuilder_.addAllMessages(other.configurations_); + } + } + } + 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 { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List configurations_ = + java.util.Collections.emptyList(); + private void ensureConfigurationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + configurations_ = new java.util.ArrayList(configurations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder> configurationsBuilder_; + + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List getConfigurationsList() { + if (configurationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(configurations_); + } else { + return configurationsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public int getConfigurationsCount() { + if (configurationsBuilder_ == null) { + return configurations_.size(); + } else { + return configurationsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index) { + if (configurationsBuilder_ == null) { + return configurations_.get(index); + } else { + return configurationsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder setConfigurations( + int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.set(index, value); + onChanged(); + } else { + configurationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder setConfigurations( + int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.set(index, builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addConfigurations(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.add(value); + onChanged(); + } else { + configurationsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addConfigurations( + int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.add(index, value); + onChanged(); + } else { + configurationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addConfigurations( + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addConfigurations( + int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(index, builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addAllConfigurations( + java.lang.Iterable values) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, configurations_); + onChanged(); + } else { + configurationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder clearConfigurations() { + if (configurationsBuilder_ == null) { + configurations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + configurationsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder removeConfigurations(int index) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.remove(index); + onChanged(); + } else { + configurationsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder getConfigurationsBuilder( + int index) { + return getConfigurationsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( + int index) { + if (configurationsBuilder_ == null) { + return configurations_.get(index); } else { + return configurationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List + getConfigurationsOrBuilderList() { + if (configurationsBuilder_ != null) { + return configurationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(configurations_); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder addConfigurationsBuilder() { + return getConfigurationsFieldBuilder().addBuilder( + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder addConfigurationsBuilder( + int index) { + return getConfigurationsFieldBuilder().addBuilder( + index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List + getConfigurationsBuilderList() { + return getConfigurationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder> + getConfigurationsFieldBuilder() { + if (configurationsBuilder_ == null) { + configurationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder>( + configurations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + configurations_ = null; + } + return configurationsBuilder_; + } + @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:flyteidl.admin.ListMatchableAttributesResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesResponse) + private static final flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMatchableAttributesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMatchableAttributesResponse(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 flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskResourceSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_MatchingAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ListMatchableAttributesResponse_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\'flyteidl/admin/matchable_resource.prot" + + "o\022\016flyteidl.admin\032\033flyteidl/admin/common" + + ".proto\032\035flyteidl/core/execution.proto\"M\n" + + "\020TaskResourceSpec\022\013\n\003cpu\030\001 \001(\t\022\013\n\003gpu\030\002 " + + "\001(\t\022\016\n\006memory\030\003 \001(\t\022\017\n\007storage\030\004 \001(\t\"~\n\026" + + "TaskResourceAttributes\0222\n\010defaults\030\001 \001(\013" + + "2 .flyteidl.admin.TaskResourceSpec\0220\n\006li" + + "mits\030\002 \001(\0132 .flyteidl.admin.TaskResource" + + "Spec\"\235\001\n\031ClusterResourceAttributes\022M\n\nat" + + "tributes\030\001 \003(\01329.flyteidl.admin.ClusterR" + + "esourceAttributes.AttributesEntry\0321\n\017Att" + + "ributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"(\n\030ExecutionQueueAttributes\022\014\n\004tags" + + "\030\001 \003(\t\"&\n\025ExecutionClusterLabel\022\r\n\005value" + + "\030\001 \001(\t\"\225\003\n\022MatchingAttributes\022J\n\030task_re" + + "source_attributes\030\001 \001(\0132&.flyteidl.admin" + + ".TaskResourceAttributesH\000\022P\n\033cluster_res" + + "ource_attributes\030\002 \001(\0132).flyteidl.admin." + + "ClusterResourceAttributesH\000\022N\n\032execution" + + "_queue_attributes\030\003 \001(\0132(.flyteidl.admin" + + ".ExecutionQueueAttributesH\000\022H\n\027execution" + + "_cluster_label\030\004 \001(\0132%.flyteidl.admin.Ex" + + "ecutionClusterLabelH\000\022=\n\022quality_of_serv" + + "ice\030\005 \001(\0132\037.flyteidl.core.QualityOfServi" + + "ceH\000B\010\n\006target\"\242\001\n MatchableAttributesCo" + + "nfiguration\0226\n\nattributes\030\001 \001(\0132\".flytei" + + "dl.admin.MatchingAttributes\022\016\n\006domain\030\002 " + + "\001(\t\022\017\n\007project\030\003 \001(\t\022\020\n\010workflow\030\004 \001(\t\022\023" + + "\n\013launch_plan\030\005 \001(\t\"Z\n\036ListMatchableAttr" + + "ibutesRequest\0228\n\rresource_type\030\001 \001(\0162!.f" + + "lyteidl.admin.MatchableResource\"k\n\037ListM" + + "atchableAttributesResponse\022H\n\016configurat" + + "ions\030\001 \003(\01320.flyteidl.admin.MatchableAtt" + + "ributesConfiguration*\224\001\n\021MatchableResour" + + "ce\022\021\n\rTASK_RESOURCE\020\000\022\024\n\020CLUSTER_RESOURC" + + "E\020\001\022\023\n\017EXECUTION_QUEUE\020\002\022\033\n\027EXECUTION_CL" + + "USTER_LABEL\020\003\022$\n QUALITY_OF_SERVICE_SPEC" + + "IFICATION\020\004B3Z1github.com/lyft/flyteidl/" + + "gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_TaskResourceSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskResourceSpec_descriptor, + new java.lang.String[] { "Cpu", "Gpu", "Memory", "Storage", }); + internal_static_flyteidl_admin_TaskResourceAttributes_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskResourceAttributes_descriptor, + new java.lang.String[] { "Defaults", "Limits", }); + internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor = + internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor, + new java.lang.String[] { "Tags", }); + internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor, + new java.lang.String[] { "Value", }); + internal_static_flyteidl_admin_MatchingAttributes_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_MatchingAttributes_descriptor, + new java.lang.String[] { "TaskResourceAttributes", "ClusterResourceAttributes", "ExecutionQueueAttributes", "ExecutionClusterLabel", "QualityOfService", "Target", }); + internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor, + new java.lang.String[] { "Attributes", "Domain", "Project", "Workflow", "LaunchPlan", }); + internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor, + new java.lang.String[] { "ResourceType", }); + internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor, + new java.lang.String[] { "Configurations", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java b/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java new file mode 100644 index 000000000..d8233be20 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java @@ -0,0 +1,11025 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/node_execution.proto + +package flyteidl.admin; + +public final class NodeExecutionOuterClass { + private NodeExecutionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface NodeExecutionGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A message used to fetch a single node execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} + */ + public static final class NodeExecutionGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetRequest) + NodeExecutionGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionGetRequest.newBuilder() to construct. + private NodeExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionGetRequest( + 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: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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 message used to fetch a single node execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.NodeExecutionGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionGetRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + boolean hasWorkflowExecutionId(); + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId(); + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of node execution entities.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} + */ + public static final class NodeExecutionListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionListRequest) + NodeExecutionListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionListRequest.newBuilder() to construct. + private NodeExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionListRequest() { + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionListRequest( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (workflowExecutionId_ != null) { + subBuilder = workflowExecutionId_.toBuilder(); + } + workflowExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowExecutionId_); + workflowExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); + } + + public static final int WORKFLOW_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public boolean hasWorkflowExecutionId() { + return workflowExecutionId_ != null; + } + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { + return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { + return getWorkflowExecutionId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + 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 (workflowExecutionId_ != null) { + output.writeMessage(1, getWorkflowExecutionId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflowExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflowExecutionId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) obj; + + if (hasWorkflowExecutionId() != other.hasWorkflowExecutionId()) return false; + if (hasWorkflowExecutionId()) { + if (!getWorkflowExecutionId() + .equals(other.getWorkflowExecutionId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) 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 (hasWorkflowExecutionId()) { + hash = (37 * hash) + WORKFLOW_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowExecutionId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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; + } + /** + *
+     * Represents a request structure to retrieve a list of node execution entities.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionListRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.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 (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = null; + } else { + workflowExecutionId_ = null; + workflowExecutionIdBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(this); + if (workflowExecutionIdBuilder_ == null) { + result.workflowExecutionId_ = workflowExecutionId_; + } else { + result.workflowExecutionId_ = workflowExecutionIdBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance()) return this; + if (other.hasWorkflowExecutionId()) { + mergeWorkflowExecutionId(other.getWorkflowExecutionId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowExecutionIdBuilder_; + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public boolean hasWorkflowExecutionId() { + return workflowExecutionIdBuilder_ != null || workflowExecutionId_ != null; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { + if (workflowExecutionIdBuilder_ == null) { + return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } else { + return workflowExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder setWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowExecutionId_ = value; + onChanged(); + } else { + workflowExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder setWorkflowExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = builderForValue.build(); + onChanged(); + } else { + workflowExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder mergeWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionIdBuilder_ == null) { + if (workflowExecutionId_ != null) { + workflowExecutionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(workflowExecutionId_).mergeFrom(value).buildPartial(); + } else { + workflowExecutionId_ = value; + } + onChanged(); + } else { + workflowExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder clearWorkflowExecutionId() { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = null; + onChanged(); + } else { + workflowExecutionId_ = null; + workflowExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowExecutionIdBuilder() { + + onChanged(); + return getWorkflowExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { + if (workflowExecutionIdBuilder_ != null) { + return workflowExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return workflowExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getWorkflowExecutionIdFieldBuilder() { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getWorkflowExecutionId(), + getParentForChildren(), + isClean()); + workflowExecutionId_ = null; + } + return workflowExecutionIdBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @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:flyteidl.admin.NodeExecutionListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionListRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionListRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionForTaskListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionForTaskListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + boolean hasTaskExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} + */ + public static final class NodeExecutionForTaskListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionForTaskListRequest) + NodeExecutionForTaskListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionForTaskListRequest.newBuilder() to construct. + private NodeExecutionForTaskListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionForTaskListRequest() { + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionForTaskListRequest( + 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: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (taskExecutionId_ != null) { + subBuilder = taskExecutionId_.toBuilder(); + } + taskExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskExecutionId_); + taskExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); + } + + public static final int TASK_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public boolean hasTaskExecutionId() { + return taskExecutionId_ != null; + } + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { + return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { + return getTaskExecutionId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + 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 (taskExecutionId_ != null) { + output.writeMessage(1, getTaskExecutionId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTaskExecutionId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) obj; + + if (hasTaskExecutionId() != other.hasTaskExecutionId()) return false; + if (hasTaskExecutionId()) { + if (!getTaskExecutionId() + .equals(other.getTaskExecutionId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) 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 (hasTaskExecutionId()) { + hash = (37 * hash) + TASK_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskExecutionId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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; + } + /** + *
+     * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionForTaskListRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.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 (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = null; + } else { + taskExecutionId_ = null; + taskExecutionIdBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(this); + if (taskExecutionIdBuilder_ == null) { + result.taskExecutionId_ = taskExecutionId_; + } else { + result.taskExecutionId_ = taskExecutionIdBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance()) return this; + if (other.hasTaskExecutionId()) { + mergeTaskExecutionId(other.getTaskExecutionId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskExecutionIdBuilder_; + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public boolean hasTaskExecutionId() { + return taskExecutionIdBuilder_ != null || taskExecutionId_ != null; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { + if (taskExecutionIdBuilder_ == null) { + return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } else { + return taskExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder setTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (taskExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskExecutionId_ = value; + onChanged(); + } else { + taskExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder setTaskExecutionId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = builderForValue.build(); + onChanged(); + } else { + taskExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder mergeTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (taskExecutionIdBuilder_ == null) { + if (taskExecutionId_ != null) { + taskExecutionId_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(taskExecutionId_).mergeFrom(value).buildPartial(); + } else { + taskExecutionId_ = value; + } + onChanged(); + } else { + taskExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder clearTaskExecutionId() { + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = null; + onChanged(); + } else { + taskExecutionId_ = null; + taskExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskExecutionIdBuilder() { + + onChanged(); + return getTaskExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { + if (taskExecutionIdBuilder_ != null) { + return taskExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return taskExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getTaskExecutionIdFieldBuilder() { + if (taskExecutionIdBuilder_ == null) { + taskExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getTaskExecutionId(), + getParentForChildren(), + isClean()); + taskExecutionId_ = null; + } + return taskExecutionIdBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @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:flyteidl.admin.NodeExecutionForTaskListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionForTaskListRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionForTaskListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionForTaskListRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecution) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + java.lang.String getInputUri(); + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + boolean hasClosure(); + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure(); + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder(); + + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + boolean hasMetadata(); + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata(); + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder(); + } + /** + *
+   * Encapsulates all details for a single node execution entity.
+   * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
+   * sub-workflow, or even a separate child-workflow execution.
+   * The same task can be called repeatedly in a single workflow but each node is unique.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecution} + */ + public static final class NodeExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecution) + NodeExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecution.newBuilder() to construct. + private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecution() { + inputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecution( + 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: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 26: { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object inputUri_; + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + 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(); + inputUri_ = s; + return s; + } + } + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_; + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { + return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; + } + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + public static final int METADATA_FIELD_NUMBER = 4; + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData metadata_; + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata() { + return metadata_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; + } + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + 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 (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + if (metadata_ != null) { + output.writeMessage(4, getMetadata()); + } + 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 (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMetadata()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecution other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getInputUri() + .equals(other.getInputUri())) return false; + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) 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) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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; + } + /** + *
+     * Encapsulates all details for a single node execution entity.
+     * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
+     * sub-workflow, or even a separate child-workflow execution.
+     * The same task can be called repeatedly in a single workflow but each node is unique.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecution) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecution.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + inputUri_ = ""; + + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecution other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> closureBuilder_; + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder> metadataBuilder_; + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public Builder setMetadata(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public Builder setMetadata( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public Builder mergeMetadata(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @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:flyteidl.admin.NodeExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecution) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecution(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionMetaDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionMetaData) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Represents additional attributes related to a Node Execution
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionMetaData} + */ + public static final class NodeExecutionMetaData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionMetaData) + NodeExecutionMetaDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionMetaData.newBuilder() to construct. + private NodeExecutionMetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionMetaData() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionMetaData( + 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; + 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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; + } + /** + *
+     * Represents additional attributes related to a Node Execution
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionMetaData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionMetaData) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData(this); + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance()) return this; + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.NodeExecutionMetaData) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionMetaData) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionMetaData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionMetaData(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + java.util.List + getNodeExecutionsList(); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + int getNodeExecutionsCount(); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + java.util.List + getNodeExecutionsOrBuilderList(); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Request structure to retrieve a list of node execution entities.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionList} + */ + public static final class NodeExecutionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionList) + NodeExecutionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionList.newBuilder() to construct. + private NodeExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionList() { + nodeExecutions_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionList( + 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)) { + nodeExecutions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodeExecutions_.add( + input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecution.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); + } + + private int bitField0_; + public static final int NODE_EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List nodeExecutions_; + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List getNodeExecutionsList() { + return nodeExecutions_; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List + getNodeExecutionsOrBuilderList() { + return nodeExecutions_; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public int getNodeExecutionsCount() { + return nodeExecutions_.size(); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { + return nodeExecutions_.get(index); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( + int index) { + return nodeExecutions_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < nodeExecutions_.size(); i++) { + output.writeMessage(1, nodeExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodeExecutions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodeExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) obj; + + if (!getNodeExecutionsList() + .equals(other.getNodeExecutionsList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getNodeExecutionsCount() > 0) { + hash = (37 * hash) + NODE_EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getNodeExecutionsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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; + } + /** + *
+     * Request structure to retrieve a list of node execution entities.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionList) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodeExecutionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeExecutionsBuilder_ == null) { + nodeExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodeExecutionsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (nodeExecutionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodeExecutions_ = nodeExecutions_; + } else { + result.nodeExecutions_ = nodeExecutionsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance()) return this; + if (nodeExecutionsBuilder_ == null) { + if (!other.nodeExecutions_.isEmpty()) { + if (nodeExecutions_.isEmpty()) { + nodeExecutions_ = other.nodeExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.addAll(other.nodeExecutions_); + } + onChanged(); + } + } else { + if (!other.nodeExecutions_.isEmpty()) { + if (nodeExecutionsBuilder_.isEmpty()) { + nodeExecutionsBuilder_.dispose(); + nodeExecutionsBuilder_ = null; + nodeExecutions_ = other.nodeExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeExecutionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeExecutionsFieldBuilder() : null; + } else { + nodeExecutionsBuilder_.addAllMessages(other.nodeExecutions_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List nodeExecutions_ = + java.util.Collections.emptyList(); + private void ensureNodeExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodeExecutions_ = new java.util.ArrayList(nodeExecutions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> nodeExecutionsBuilder_; + + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List getNodeExecutionsList() { + if (nodeExecutionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeExecutions_); + } else { + return nodeExecutionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public int getNodeExecutionsCount() { + if (nodeExecutionsBuilder_ == null) { + return nodeExecutions_.size(); + } else { + return nodeExecutionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { + if (nodeExecutionsBuilder_ == null) { + return nodeExecutions_.get(index); + } else { + return nodeExecutionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder setNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { + if (nodeExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeExecutionsIsMutable(); + nodeExecutions_.set(index, value); + onChanged(); + } else { + nodeExecutionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder setNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeExecutionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions(flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { + if (nodeExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(value); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { + if (nodeExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(index, value); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(builderForValue.build()); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addAllNodeExecutions( + java.lang.Iterable values) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeExecutions_); + onChanged(); + } else { + nodeExecutionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder clearNodeExecutions() { + if (nodeExecutionsBuilder_ == null) { + nodeExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeExecutionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder removeNodeExecutions(int index) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.remove(index); + onChanged(); + } else { + nodeExecutionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder getNodeExecutionsBuilder( + int index) { + return getNodeExecutionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( + int index) { + if (nodeExecutionsBuilder_ == null) { + return nodeExecutions_.get(index); } else { + return nodeExecutionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List + getNodeExecutionsOrBuilderList() { + if (nodeExecutionsBuilder_ != null) { + return nodeExecutionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeExecutions_); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder() { + return getNodeExecutionsFieldBuilder().addBuilder( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder( + int index) { + return getNodeExecutionsFieldBuilder().addBuilder( + index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List + getNodeExecutionsBuilderList() { + return getNodeExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> + getNodeExecutionsFieldBuilder() { + if (nodeExecutionsBuilder_ == null) { + nodeExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder>( + nodeExecutions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nodeExecutions_ = null; + } + return nodeExecutionsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.NodeExecutionList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionList) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionList(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionClosure) + com.google.protobuf.MessageOrBuilder { + + /** + * string output_uri = 1; + */ + java.lang.String getOutputUri(); + /** + * string output_uri = 1; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + boolean hasError(); + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + flyteidl.core.Execution.NodeExecution.Phase getPhase(); + + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + boolean hasStartedAt(); + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + com.google.protobuf.Timestamp getStartedAt(); + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); + + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + boolean hasDuration(); + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + com.google.protobuf.Duration getDuration(); + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + boolean hasUpdatedAt(); + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + boolean hasWorkflowNodeMetadata(); + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata(); + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.OutputResultCase getOutputResultCase(); + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.TargetMetadataCase getTargetMetadataCase(); + } + /** + *
+   * Container for node execution details and results.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} + */ + public static final class NodeExecutionClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionClosure) + NodeExecutionClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionClosure.newBuilder() to construct. + private NodeExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionClosure() { + phase_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionClosure( + 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(); + outputResultCase_ = 1; + outputResult_ = s; + break; + } + case 18: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 2; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startedAt_ != null) { + subBuilder = startedAt_.toBuilder(); + } + startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startedAt_); + startedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + 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 58: { + 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; + } + case 66: { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder subBuilder = null; + if (targetMetadataCase_ == 8) { + subBuilder = ((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_).toBuilder(); + } + targetMetadata_ = + input.readMessage(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); + targetMetadata_ = subBuilder.buildPartial(); + } + targetMetadataCase_ = 8; + 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(1), + ERROR(2), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 1: return OUTPUT_URI; + case 2: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public enum TargetMetadataCase + implements com.google.protobuf.Internal.EnumLite { + WORKFLOW_NODE_METADATA(8), + TARGETMETADATA_NOT_SET(0); + private final int value; + private TargetMetadataCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static TargetMetadataCase forNumber(int value) { + switch (value) { + case 8: return WORKFLOW_NODE_METADATA; + case 0: return TARGETMETADATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 1; + /** + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } + } + /** + * string output_uri = 1; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + + public static final int STARTED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startedAt_; + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public boolean hasStartedAt() { + return startedAt_ != null; + } + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.Timestamp getStartedAt() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + return getStartedAt(); + } + + public static final int DURATION_FIELD_NUMBER = 5; + private com.google.protobuf.Duration duration_; + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (outputResultCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); + } + if (outputResultCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + if (startedAt_ != null) { + output.writeMessage(4, getStartedAt()); + } + if (duration_ != null) { + output.writeMessage(5, getDuration()); + } + if (createdAt_ != null) { + output.writeMessage(6, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(7, getUpdatedAt()); + } + if (targetMetadataCase_ == 8) { + output.writeMessage(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputResultCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); + } + if (outputResultCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + if (startedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartedAt()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getDuration()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdatedAt()); + } + if (targetMetadataCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) obj; + + if (phase_ != other.phase_) return false; + if (hasStartedAt() != other.hasStartedAt()) return false; + if (hasStartedAt()) { + if (!getStartedAt() + .equals(other.getStartedAt())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) 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 (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 1: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 2: + if (!getError() + .equals(other.getError())) return false; + break; + case 0: + default: + } + if (!getTargetMetadataCase().equals(other.getTargetMetadataCase())) return false; + switch (targetMetadataCase_) { + case 8: + if (!getWorkflowNodeMetadata() + .equals(other.getWorkflowNodeMetadata())) 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) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasStartedAt()) { + hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getStartedAt().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().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(); + } + switch (outputResultCase_) { + case 1: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + switch (targetMetadataCase_) { + case 8: + hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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; + } + /** + *
+     * Container for node execution details and results.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionClosure) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.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(); + phase_ = 0; + + if (startedAtBuilder_ == null) { + startedAt_ = null; + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + targetMetadataCase_ = 0; + targetMetadata_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(this); + if (outputResultCase_ == 1) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 2) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + result.phase_ = phase_; + if (startedAtBuilder_ == null) { + result.startedAt_ = startedAt_; + } else { + result.startedAt_ = startedAtBuilder_.build(); + } + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + if (targetMetadataCase_ == 8) { + if (workflowNodeMetadataBuilder_ == null) { + result.targetMetadata_ = targetMetadata_; + } else { + result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); + } + } + result.outputResultCase_ = outputResultCase_; + result.targetMetadataCase_ = targetMetadataCase_; + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance()) return this; + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasStartedAt()) { + mergeStartedAt(other.getStartedAt()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 1; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + switch (other.getTargetMetadataCase()) { + case WORKFLOW_NODE_METADATA: { + mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); + break; + } + case TARGETMETADATA_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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public Builder clearTargetMetadata() { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + return this; + } + + + /** + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string output_uri = 1; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string output_uri = 1; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + /** + * string output_uri = 1; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + * string output_uri = 1; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 2)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 2; + onChanged();; + return errorBuilder_; + } + + private int phase_ = 0; + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public boolean hasStartedAt() { + return startedAtBuilder_ != null || startedAt_ != null; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.Timestamp getStartedAt() { + if (startedAtBuilder_ == null) { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } else { + return startedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder setStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedAt_ = value; + onChanged(); + } else { + startedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder setStartedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedAtBuilder_ == null) { + startedAt_ = builderForValue.build(); + onChanged(); + } else { + startedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (startedAt_ != null) { + startedAt_ = + com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); + } else { + startedAt_ = value; + } + onChanged(); + } else { + startedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder clearStartedAt() { + if (startedAtBuilder_ == null) { + startedAt_ = null; + onChanged(); + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { + + onChanged(); + return getStartedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + if (startedAtBuilder_ != null) { + return startedAtBuilder_.getMessageOrBuilder(); + } else { + return startedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedAtFieldBuilder() { + if (startedAtBuilder_ == null) { + startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedAt(), + getParentForChildren(), + isClean()); + startedAt_ = null; + } + return startedAtBuilder_; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + 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_; + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + 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; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + 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; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + 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_; + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + 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; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + 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; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + 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_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } else { + if (targetMetadataCase_ == 8) { + return workflowNodeMetadataBuilder_.getMessage(); + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetMetadata_ = value; + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata( + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder builderForValue) { + if (workflowNodeMetadataBuilder_ == null) { + targetMetadata_ = builderForValue.build(); + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder mergeWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8 && + targetMetadata_ != flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) { + targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.newBuilder((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_) + .mergeFrom(value).buildPartial(); + } else { + targetMetadata_ = value; + } + onChanged(); + } else { + if (targetMetadataCase_ == 8) { + workflowNodeMetadataBuilder_.mergeFrom(value); + } + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder clearWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + } + } else { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + } + workflowNodeMetadataBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { + return getWorkflowNodeMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { + return workflowNodeMetadataBuilder_.getMessageOrBuilder(); + } else { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> + getWorkflowNodeMetadataFieldBuilder() { + if (workflowNodeMetadataBuilder_ == null) { + if (!(targetMetadataCase_ == 8)) { + targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder>( + (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_, + getParentForChildren(), + isClean()); + targetMetadata_ = null; + } + targetMetadataCase_ = 8; + onChanged();; + return workflowNodeMetadataBuilder_; + } + @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:flyteidl.admin.NodeExecutionClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionClosure) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionClosure(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowNodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowNodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + boolean hasExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + } + /** + *
+   * Metadata for a WorkflowNode
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} + */ + public static final class WorkflowNodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowNodeMetadata) + WorkflowNodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowNodeMetadata.newBuilder() to construct. + private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowNodeMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowNodeMetadata( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); + } + + public static final int EXECUTIONID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + 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 (executionId_ != null) { + output.writeMessage(1, getExecutionId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getExecutionId()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) obj; + + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) 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 (hasExecutionId()) { + hash = (37 * hash) + EXECUTIONID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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; + } + /** + *
+     * Metadata for a WorkflowNode
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowNodeMetadata) + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.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 (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata build() { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(this); + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) return this; + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + @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:flyteidl.admin.WorkflowNodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowNodeMetadata) + private static final flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowNodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowNodeMetadata(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 flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionGetDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Request structure to fetch inputs and output urls for a node execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} + */ + public static final class NodeExecutionGetDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataRequest) + NodeExecutionGetDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionGetDataRequest.newBuilder() to construct. + private NodeExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionGetDataRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionGetDataRequest( + 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: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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; + } + /** + *
+     * Request structure to fetch inputs and output urls for a node execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.NodeExecutionGetDataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionGetDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionGetDataRequest(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionGetDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + boolean hasInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + flyteidl.admin.Common.UrlBlob getInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); + + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + boolean hasOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + flyteidl.admin.Common.UrlBlob getOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); + } + /** + *
+   * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} + */ + public static final class NodeExecutionGetDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataResponse) + NodeExecutionGetDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionGetDataResponse.newBuilder() to construct. + private NodeExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionGetDataResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionGetDataResponse( + 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: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = 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 flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.admin.Common.UrlBlob inputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.admin.Common.UrlBlob outputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + 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 (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) obj; + + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) 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 (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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; + } + /** + *
+     * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataResponse) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.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 (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + 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 { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.UrlBlob inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder setInputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.admin.Common.UrlBlob outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder setOutputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + @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:flyteidl.admin.NodeExecutionGetDataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataResponse) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionGetDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionGetDataResponse(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 flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_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#flyteidl/admin/node_execution.proto\022\016f" + + "lyteidl.admin\032\033flyteidl/admin/common.pro" + + "to\032\035flyteidl/core/execution.proto\032\036flyte" + + "idl/core/identifier.proto\032\037google/protob" + + "uf/timestamp.proto\032\036google/protobuf/dura" + + "tion.proto\"M\n\027NodeExecutionGetRequest\0222\n" + + "\002id\030\001 \001(\0132&.flyteidl.core.NodeExecutionI" + + "dentifier\"\273\001\n\030NodeExecutionListRequest\022I" + + "\n\025workflow_execution_id\030\001 \001(\0132*.flyteidl" + + ".core.WorkflowExecutionIdentifier\022\r\n\005lim" + + "it\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t" + + "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"" + + "\272\001\n\037NodeExecutionForTaskListRequest\022A\n\021t" + + "ask_execution_id\030\001 \001(\0132&.flyteidl.core.T" + + "askExecutionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n" + + "\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by" + + "\030\005 \001(\0132\024.flyteidl.admin.Sort\"\306\001\n\rNodeExe" + + "cution\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeE" + + "xecutionIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n" + + "\007closure\030\003 \001(\0132$.flyteidl.admin.NodeExec" + + "utionClosure\0227\n\010metadata\030\004 \001(\0132%.flyteid" + + "l.admin.NodeExecutionMetaData\"\027\n\025NodeExe" + + "cutionMetaData\"Z\n\021NodeExecutionList\0226\n\017n" + + "ode_executions\030\001 \003(\0132\035.flyteidl.admin.No" + + "deExecution\022\r\n\005token\030\002 \001(\t\"\270\003\n\024NodeExecu" + + "tionClosure\022\024\n\noutput_uri\030\001 \001(\tH\000\022.\n\005err" + + "or\030\002 \001(\0132\035.flyteidl.core.ExecutionErrorH" + + "\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.core.NodeExe" + + "cution.Phase\022.\n\nstarted_at\030\004 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022+\n\010duration\030\005 \001(\0132\031" + + ".google.protobuf.Duration\022.\n\ncreated_at\030" + + "\006 \001(\0132\032.google.protobuf.Timestamp\022.\n\nupd" + + "ated_at\030\007 \001(\0132\032.google.protobuf.Timestam" + + "p\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyt" + + "eidl.admin.WorkflowNodeMetadataH\001B\017\n\rout" + + "put_resultB\021\n\017target_metadata\"W\n\024Workflo" + + "wNodeMetadata\022?\n\013executionId\030\001 \001(\0132*.fly" + + "teidl.core.WorkflowExecutionIdentifier\"Q" + + "\n\033NodeExecutionGetDataRequest\0222\n\002id\030\001 \001(" + + "\0132&.flyteidl.core.NodeExecutionIdentifie" + + "r\"q\n\034NodeExecutionGetDataResponse\022\'\n\006inp" + + "uts\030\001 \001(\0132\027.flyteidl.admin.UrlBlob\022(\n\007ou" + + "tputs\030\002 \001(\0132\027.flyteidl.admin.UrlBlobB3Z1" + + "github.com/lyft/flyteidl/gen/pb-go/flyte" + + "idl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor, + new java.lang.String[] { "WorkflowExecutionId", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor, + new java.lang.String[] { "TaskExecutionId", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_NodeExecution_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecution_descriptor, + new java.lang.String[] { "Id", "InputUri", "Closure", "Metadata", }); + internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_NodeExecutionList_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionList_descriptor, + new java.lang.String[] { "NodeExecutions", "Token", }); + internal_static_flyteidl_admin_NodeExecutionClosure_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionClosure_descriptor, + new java.lang.String[] { "OutputUri", "Error", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "WorkflowNodeMetadata", "OutputResult", "TargetMetadata", }); + internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor, + new java.lang.String[] { "ExecutionId", }); + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor, + new java.lang.String[] { "Inputs", "Outputs", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/Notification.java b/gen/pb-java/flyteidl/admin/Notification.java new file mode 100644 index 000000000..97b698ff0 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/Notification.java @@ -0,0 +1,1325 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/notification.proto + +package flyteidl.admin; + +public final class Notification { + private Notification() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface EmailMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + java.lang.String getSenderEmail(); + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + com.google.protobuf.ByteString + getSenderEmailBytes(); + + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + java.lang.String getSubjectLine(); + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + com.google.protobuf.ByteString + getSubjectLineBytes(); + + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + java.lang.String getBody(); + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + com.google.protobuf.ByteString + getBodyBytes(); + } + /** + *
+   * Represents the Email object that is sent to a publisher/subscriber
+   * to forward the notification.
+   * Note: This is internal to Admin and doesn't need to be exposed to other components.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.EmailMessage} + */ + public static final class EmailMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailMessage) + EmailMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmailMessage.newBuilder() to construct. + private EmailMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EmailMessage() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + senderEmail_ = ""; + subjectLine_ = ""; + body_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EmailMessage( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + senderEmail_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + subjectLine_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + body_ = 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)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); + } + + private int bitField0_; + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + + public static final int SENDER_EMAIL_FIELD_NUMBER = 2; + private volatile java.lang.Object senderEmail_; + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + public java.lang.String getSenderEmail() { + java.lang.Object ref = senderEmail_; + 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(); + senderEmail_ = s; + return s; + } + } + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + public com.google.protobuf.ByteString + getSenderEmailBytes() { + java.lang.Object ref = senderEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + senderEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_LINE_FIELD_NUMBER = 3; + private volatile java.lang.Object subjectLine_; + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + public java.lang.String getSubjectLine() { + java.lang.Object ref = subjectLine_; + 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(); + subjectLine_ = s; + return s; + } + } + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + public com.google.protobuf.ByteString + getSubjectLineBytes() { + java.lang.Object ref = subjectLine_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectLine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BODY_FIELD_NUMBER = 4; + private volatile java.lang.Object body_; + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + public java.lang.String getBody() { + java.lang.Object ref = body_; + 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(); + body_ = s; + return s; + } + } + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + public com.google.protobuf.ByteString + getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + body_ = 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 { + for (int i = 0; i < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + if (!getSenderEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, senderEmail_); + } + if (!getSubjectLineBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subjectLine_); + } + if (!getBodyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, body_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + if (!getSenderEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, senderEmail_); + } + if (!getSubjectLineBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subjectLine_); + } + if (!getBodyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, body_); + } + 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 flyteidl.admin.Notification.EmailMessage)) { + return super.equals(obj); + } + flyteidl.admin.Notification.EmailMessage other = (flyteidl.admin.Notification.EmailMessage) obj; + + if (!getRecipientsEmailList() + .equals(other.getRecipientsEmailList())) return false; + if (!getSenderEmail() + .equals(other.getSenderEmail())) return false; + if (!getSubjectLine() + .equals(other.getSubjectLine())) return false; + if (!getBody() + .equals(other.getBody())) 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 (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (37 * hash) + SENDER_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getSenderEmail().hashCode(); + hash = (37 * hash) + SUBJECT_LINE_FIELD_NUMBER; + hash = (53 * hash) + getSubjectLine().hashCode(); + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Notification.EmailMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Notification.EmailMessage 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 flyteidl.admin.Notification.EmailMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Notification.EmailMessage 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 flyteidl.admin.Notification.EmailMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Notification.EmailMessage 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(flyteidl.admin.Notification.EmailMessage 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; + } + /** + *
+     * Represents the Email object that is sent to a publisher/subscriber
+     * to forward the notification.
+     * Note: This is internal to Admin and doesn't need to be exposed to other components.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.EmailMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailMessage) + flyteidl.admin.Notification.EmailMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); + } + + // Construct using flyteidl.admin.Notification.EmailMessage.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(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + senderEmail_ = ""; + + subjectLine_ = ""; + + body_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Notification.EmailMessage getDefaultInstanceForType() { + return flyteidl.admin.Notification.EmailMessage.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Notification.EmailMessage build() { + flyteidl.admin.Notification.EmailMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Notification.EmailMessage buildPartial() { + flyteidl.admin.Notification.EmailMessage result = new flyteidl.admin.Notification.EmailMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + result.senderEmail_ = senderEmail_; + result.subjectLine_ = subjectLine_; + result.body_ = body_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.Notification.EmailMessage) { + return mergeFrom((flyteidl.admin.Notification.EmailMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Notification.EmailMessage other) { + if (other == flyteidl.admin.Notification.EmailMessage.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + onChanged(); + } + if (!other.getSenderEmail().isEmpty()) { + senderEmail_ = other.senderEmail_; + onChanged(); + } + if (!other.getSubjectLine().isEmpty()) { + subjectLine_ = other.subjectLine_; + onChanged(); + } + if (!other.getBody().isEmpty()) { + body_ = other.body_; + 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 { + flyteidl.admin.Notification.EmailMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Notification.EmailMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + + private java.lang.Object senderEmail_ = ""; + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public java.lang.String getSenderEmail() { + java.lang.Object ref = senderEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + senderEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public com.google.protobuf.ByteString + getSenderEmailBytes() { + java.lang.Object ref = senderEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + senderEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public Builder setSenderEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + senderEmail_ = value; + onChanged(); + return this; + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public Builder clearSenderEmail() { + + senderEmail_ = getDefaultInstance().getSenderEmail(); + onChanged(); + return this; + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public Builder setSenderEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + senderEmail_ = value; + onChanged(); + return this; + } + + private java.lang.Object subjectLine_ = ""; + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public java.lang.String getSubjectLine() { + java.lang.Object ref = subjectLine_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectLine_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public com.google.protobuf.ByteString + getSubjectLineBytes() { + java.lang.Object ref = subjectLine_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectLine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public Builder setSubjectLine( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subjectLine_ = value; + onChanged(); + return this; + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public Builder clearSubjectLine() { + + subjectLine_ = getDefaultInstance().getSubjectLine(); + onChanged(); + return this; + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public Builder setSubjectLineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subjectLine_ = value; + onChanged(); + return this; + } + + private java.lang.Object body_ = ""; + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public com.google.protobuf.ByteString + getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public Builder setBody( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + body_ = value; + onChanged(); + return this; + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public Builder clearBody() { + + body_ = getDefaultInstance().getBody(); + onChanged(); + return this; + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + body_ = 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:flyteidl.admin.EmailMessage) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailMessage) + private static final flyteidl.admin.Notification.EmailMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Notification.EmailMessage(); + } + + public static flyteidl.admin.Notification.EmailMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmailMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmailMessage(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 flyteidl.admin.Notification.EmailMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EmailMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EmailMessage_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!flyteidl/admin/notification.proto\022\016fly" + + "teidl.admin\"b\n\014EmailMessage\022\030\n\020recipient" + + "s_email\030\001 \003(\t\022\024\n\014sender_email\030\002 \001(\t\022\024\n\014s" + + "ubject_line\030\003 \001(\t\022\014\n\004body\030\004 \001(\tB3Z1githu" + + "b.com/lyft/flyteidl/gen/pb-go/flyteidl/a" + + "dminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_admin_EmailMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EmailMessage_descriptor, + new java.lang.String[] { "RecipientsEmail", "SenderEmail", "SubjectLine", "Body", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java b/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java new file mode 100644 index 000000000..329aae51e --- /dev/null +++ b/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java @@ -0,0 +1,4856 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project_domain_attributes.proto + +package flyteidl.admin; + +public final class ProjectDomainAttributesOuterClass { + private ProjectDomainAttributesOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ProjectDomainAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + boolean hasMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributes} + */ + public static final class ProjectDomainAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributes) + ProjectDomainAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributes.newBuilder() to construct. + private ProjectDomainAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributes() { + project_ = ""; + domain_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributes( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; + if (matchingAttributes_ != null) { + subBuilder = matchingAttributes_.toBuilder(); + } + matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(matchingAttributes_); + matchingAttributes_ = 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 3; + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public boolean hasMatchingAttributes() { + return matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + return getMatchingAttributes(); + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (matchingAttributes_ != null) { + output.writeMessage(3, getMatchingAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (matchingAttributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMatchingAttributes()); + } + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; + if (hasMatchingAttributes()) { + if (!getMatchingAttributes() + .equals(other.getMatchingAttributes())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + if (hasMatchingAttributes()) { + hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getMatchingAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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 flyteidl.admin.ProjectDomainAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributes) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.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(); + project_ = ""; + + domain_ = ""; + + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes(this); + result.project_ = project_; + result.domain_ = domain_; + if (matchingAttributesBuilder_ == null) { + result.matchingAttributes_ = matchingAttributes_; + } else { + result.matchingAttributes_ = matchingAttributesBuilder_.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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.hasMatchingAttributes()) { + mergeMatchingAttributes(other.getMatchingAttributes()); + } + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public boolean hasMatchingAttributes() { + return matchingAttributesBuilder_ != null || matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } else { + return matchingAttributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + matchingAttributes_ = value; + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public Builder setMatchingAttributes( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = builderForValue.build(); + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (matchingAttributes_ != null) { + matchingAttributes_ = + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); + } else { + matchingAttributes_ = value; + } + onChanged(); + } else { + matchingAttributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public Builder clearMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + onChanged(); + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { + + onChanged(); + return getMatchingAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + if (matchingAttributesBuilder_ != null) { + return matchingAttributesBuilder_.getMessageOrBuilder(); + } else { + return matchingAttributes_ == null ? + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> + getMatchingAttributesFieldBuilder() { + if (matchingAttributesBuilder_ == null) { + matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( + getMatchingAttributes(), + getParentForChildren(), + isClean()); + matchingAttributes_ = null; + } + return matchingAttributesBuilder_; + } + @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:flyteidl.admin.ProjectDomainAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributes) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributes(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes(); + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder(); + } + /** + *
+   * Sets custom attributes for a project-domain combination.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateRequest} + */ + public static final class ProjectDomainAttributesUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + ProjectDomainAttributesUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesUpdateRequest.newBuilder() to construct. + private ProjectDomainAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesUpdateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesUpdateRequest( + 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: { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + 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 (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) 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 (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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; + } + /** + *
+     * Sets custom attributes for a project-domain combination.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.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 (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @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:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesUpdateRequest(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateResponse} + */ + public static final class ProjectDomainAttributesUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + ProjectDomainAttributesUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesUpdateResponse.newBuilder() to construct. + private ProjectDomainAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesUpdateResponse( + 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; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse(this); + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesUpdateResponse(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + int getResourceTypeValue(); + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetRequest} + */ + public static final class ProjectDomainAttributesGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesGetRequest) + ProjectDomainAttributesGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesGetRequest.newBuilder() to construct. + private ProjectDomainAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesGetRequest() { + project_ = ""; + domain_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesGetRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; + private int resourceType_; + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(3, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, resourceType_); + } + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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 flyteidl.admin.ProjectDomainAttributesGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesGetRequest) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.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(); + project_ = ""; + + domain_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.resourceType_ = resourceType_; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + 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:flyteidl.admin.ProjectDomainAttributesGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetRequest) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesGetRequest(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesGetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesGetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes(); + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetResponse} + */ + public static final class ProjectDomainAttributesGetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesGetResponse) + ProjectDomainAttributesGetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesGetResponse.newBuilder() to construct. + private ProjectDomainAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesGetResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesGetResponse( + 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: { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + 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 (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) 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 (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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 flyteidl.admin.ProjectDomainAttributesGetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesGetResponse) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.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 (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @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:flyteidl.admin.ProjectDomainAttributesGetResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetResponse) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesGetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesGetResponse(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesDeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + int getResourceTypeValue(); + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteRequest} + */ + public static final class ProjectDomainAttributesDeleteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + ProjectDomainAttributesDeleteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesDeleteRequest.newBuilder() to construct. + private ProjectDomainAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesDeleteRequest() { + project_ = ""; + domain_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesDeleteRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; + private int resourceType_; + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(3, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, resourceType_); + } + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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 flyteidl.admin.ProjectDomainAttributesDeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.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(); + project_ = ""; + + domain_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.resourceType_ = resourceType_; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + 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:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesDeleteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesDeleteRequest(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesDeleteResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteResponse} + */ + public static final class ProjectDomainAttributesDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + ProjectDomainAttributesDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesDeleteResponse.newBuilder() to construct. + private ProjectDomainAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesDeleteResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesDeleteResponse( + 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; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse(this); + 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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesDeleteResponse(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 flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_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.flyteidl/admin/project_domain_attribut" + + "es.proto\022\016flyteidl.admin\032\'flyteidl/admin" + + "/matchable_resource.proto\"{\n\027ProjectDoma" + + "inAttributes\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030" + + "\002 \001(\t\022?\n\023matching_attributes\030\003 \001(\0132\".fly" + + "teidl.admin.MatchingAttributes\"c\n$Projec" + + "tDomainAttributesUpdateRequest\022;\n\nattrib" + + "utes\030\001 \001(\0132\'.flyteidl.admin.ProjectDomai" + + "nAttributes\"\'\n%ProjectDomainAttributesUp" + + "dateResponse\"~\n!ProjectDomainAttributesG" + + "etRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + + "(\t\0228\n\rresource_type\030\003 \001(\0162!.flyteidl.adm" + + "in.MatchableResource\"a\n\"ProjectDomainAtt" + + "ributesGetResponse\022;\n\nattributes\030\001 \001(\0132\'" + + ".flyteidl.admin.ProjectDomainAttributes\"" + + "\201\001\n$ProjectDomainAttributesDeleteRequest" + + "\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\0228\n\rres" + + "ource_type\030\003 \001(\0162!.flyteidl.admin.Matcha" + + "bleResource\"\'\n%ProjectDomainAttributesDe" + + "leteResponseB3Z1github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor, + new java.lang.String[] { "Project", "Domain", "MatchingAttributes", }); + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "ResourceType", }); + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "ResourceType", }); + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor, + new java.lang.String[] { }); + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/ProjectOuterClass.java b/gen/pb-java/flyteidl/admin/ProjectOuterClass.java new file mode 100644 index 000000000..e0777663a --- /dev/null +++ b/gen/pb-java/flyteidl/admin/ProjectOuterClass.java @@ -0,0 +1,4299 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project.proto + +package flyteidl.admin; + +public final class ProjectOuterClass { + private ProjectOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DomainOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Domain) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1; + */ + java.lang.String getId(); + /** + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Namespace within a project commonly used to differentiate between different service instances.
+   * e.g. "production", "development", etc.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Domain} + */ + public static final class Domain extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Domain) + DomainOrBuilder { + private static final long serialVersionUID = 0L; + // Use Domain.newBuilder() to construct. + private Domain(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Domain() { + id_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Domain( + 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; + } + 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * string id = 1; + */ + 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; + } + } + /** + * string id = 1; + */ + 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_; + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectOuterClass.Domain)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.Domain other = (flyteidl.admin.ProjectOuterClass.Domain) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Domain 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 flyteidl.admin.ProjectOuterClass.Domain parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Domain 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 flyteidl.admin.ProjectOuterClass.Domain parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Domain 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(flyteidl.admin.ProjectOuterClass.Domain 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; + } + /** + *
+     * Namespace within a project commonly used to differentiate between different service instances.
+     * e.g. "production", "development", etc.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Domain} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Domain) + flyteidl.admin.ProjectOuterClass.DomainOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.Domain.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_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Domain getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Domain build() { + flyteidl.admin.ProjectOuterClass.Domain result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Domain buildPartial() { + flyteidl.admin.ProjectOuterClass.Domain result = new flyteidl.admin.ProjectOuterClass.Domain(this); + result.id_ = id_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.Domain) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.Domain)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Domain other) { + if (other == flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.Domain parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.Domain) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; + /** + * string id = 1; + */ + 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; + } + } + /** + * string id = 1; + */ + 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; + } + } + /** + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * string id = 1; + */ + 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_ = ""; + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Domain) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Domain) + private static final flyteidl.admin.ProjectOuterClass.Domain DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Domain(); + } + + public static flyteidl.admin.ProjectOuterClass.Domain getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Domain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Domain(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 flyteidl.admin.ProjectOuterClass.Domain getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Project) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1; + */ + java.lang.String getId(); + /** + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + java.util.List + getDomainsList(); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + flyteidl.admin.ProjectOuterClass.Domain getDomains(int index); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + int getDomainsCount(); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + java.util.List + getDomainsOrBuilderList(); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( + int index); + + /** + * string description = 4; + */ + java.lang.String getDescription(); + /** + * string description = 4; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + *
+   * Top-level namespace used to classify different entities like workflows and executions.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Project} + */ + public static final class Project extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Project) + ProjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use Project.newBuilder() to construct. + private Project(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Project() { + id_ = ""; + name_ = ""; + domains_ = java.util.Collections.emptyList(); + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Project( + 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: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + domains_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + domains_.add( + input.readMessage(flyteidl.admin.ProjectOuterClass.Domain.parser(), extensionRegistry)); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = 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_ & 0x00000004) != 0)) { + domains_ = java.util.Collections.unmodifiableList(domains_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * string id = 1; + */ + 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; + } + } + /** + * string id = 1; + */ + 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_; + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + 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 DOMAINS_FIELD_NUMBER = 3; + private java.util.List domains_; + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List getDomainsList() { + return domains_; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List + getDomainsOrBuilderList() { + return domains_; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public int getDomainsCount() { + return domains_.size(); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { + return domains_.get(index); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( + int index) { + return domains_.get(index); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + private volatile java.lang.Object description_; + /** + * string description = 4; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * string description = 4; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = 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 (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + for (int i = 0; i < domains_.size(); i++) { + output.writeMessage(3, domains_.get(i)); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + for (int i = 0; i < domains_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, domains_.get(i)); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + 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 flyteidl.admin.ProjectOuterClass.Project)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.Project other = (flyteidl.admin.ProjectOuterClass.Project) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDomainsList() + .equals(other.getDomainsList())) return false; + if (!getDescription() + .equals(other.getDescription())) 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(); + if (getDomainsCount() > 0) { + hash = (37 * hash) + DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getDomainsList().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Project 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 flyteidl.admin.ProjectOuterClass.Project parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Project 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 flyteidl.admin.ProjectOuterClass.Project parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Project 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(flyteidl.admin.ProjectOuterClass.Project 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; + } + /** + *
+     * Top-level namespace used to classify different entities like workflows and executions.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Project} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Project) + flyteidl.admin.ProjectOuterClass.ProjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.Project.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDomainsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + name_ = ""; + + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + domainsBuilder_.clear(); + } + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Project getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Project build() { + flyteidl.admin.ProjectOuterClass.Project result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Project buildPartial() { + flyteidl.admin.ProjectOuterClass.Project result = new flyteidl.admin.ProjectOuterClass.Project(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.id_ = id_; + result.name_ = name_; + if (domainsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + domains_ = java.util.Collections.unmodifiableList(domains_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.domains_ = domains_; + } else { + result.domains_ = domainsBuilder_.build(); + } + result.description_ = description_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.ProjectOuterClass.Project) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.Project)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Project other) { + if (other == flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (domainsBuilder_ == null) { + if (!other.domains_.isEmpty()) { + if (domains_.isEmpty()) { + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDomainsIsMutable(); + domains_.addAll(other.domains_); + } + onChanged(); + } + } else { + if (!other.domains_.isEmpty()) { + if (domainsBuilder_.isEmpty()) { + domainsBuilder_.dispose(); + domainsBuilder_ = null; + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x00000004); + domainsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDomainsFieldBuilder() : null; + } else { + domainsBuilder_.addAllMessages(other.domains_); + } + } + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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 { + flyteidl.admin.ProjectOuterClass.Project parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.Project) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1; + */ + 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; + } + } + /** + * string id = 1; + */ + 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; + } + } + /** + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * string id = 1; + */ + 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_ = ""; + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.util.List domains_ = + java.util.Collections.emptyList(); + private void ensureDomainsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + domains_ = new java.util.ArrayList(domains_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> domainsBuilder_; + + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List getDomainsList() { + if (domainsBuilder_ == null) { + return java.util.Collections.unmodifiableList(domains_); + } else { + return domainsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public int getDomainsCount() { + if (domainsBuilder_ == null) { + return domains_.size(); + } else { + return domainsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); + } else { + return domainsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder setDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.set(index, value); + onChanged(); + } else { + domainsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder setDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.set(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains(flyteidl.admin.ProjectOuterClass.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(value); + onChanged(); + } else { + domainsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(index, value); + onChanged(); + } else { + domainsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains( + flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addAllDomains( + java.lang.Iterable values) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, domains_); + onChanged(); + } else { + domainsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder clearDomains() { + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + domainsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder removeDomains(int index) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.remove(index); + onChanged(); + } else { + domainsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain.Builder getDomainsBuilder( + int index) { + return getDomainsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( + int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); } else { + return domainsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List + getDomainsOrBuilderList() { + if (domainsBuilder_ != null) { + return domainsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(domains_); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder() { + return getDomainsFieldBuilder().addBuilder( + flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder( + int index) { + return getDomainsFieldBuilder().addBuilder( + index, flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List + getDomainsBuilderList() { + return getDomainsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> + getDomainsFieldBuilder() { + if (domainsBuilder_ == null) { + domainsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder>( + domains_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + domains_ = null; + } + return domainsBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * string description = 4; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string description = 4; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string description = 4; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * string description = 4; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * string description = 4; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = 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:flyteidl.admin.Project) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Project) + private static final flyteidl.admin.ProjectOuterClass.Project DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Project(); + } + + public static flyteidl.admin.ProjectOuterClass.Project getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Project parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Project(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 flyteidl.admin.ProjectOuterClass.Project getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Projects) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + java.util.List + getProjectsList(); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + flyteidl.admin.ProjectOuterClass.Project getProjects(int index); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + int getProjectsCount(); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + java.util.List + getProjectsOrBuilderList(); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.admin.Projects} + */ + public static final class Projects extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Projects) + ProjectsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Projects.newBuilder() to construct. + private Projects(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Projects() { + projects_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Projects( + 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)) { + projects_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + projects_.add( + input.readMessage(flyteidl.admin.ProjectOuterClass.Project.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)) { + projects_ = java.util.Collections.unmodifiableList(projects_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); + } + + public static final int PROJECTS_FIELD_NUMBER = 1; + private java.util.List projects_; + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List getProjectsList() { + return projects_; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List + getProjectsOrBuilderList() { + return projects_; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public int getProjectsCount() { + return projects_.size(); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { + return projects_.get(index); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( + int index) { + return projects_.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 < projects_.size(); i++) { + output.writeMessage(1, projects_.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 < projects_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, projects_.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 flyteidl.admin.ProjectOuterClass.Projects)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.Projects other = (flyteidl.admin.ProjectOuterClass.Projects) obj; + + if (!getProjectsList() + .equals(other.getProjectsList())) 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 (getProjectsCount() > 0) { + hash = (37 * hash) + PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getProjectsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Projects 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 flyteidl.admin.ProjectOuterClass.Projects parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Projects 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 flyteidl.admin.ProjectOuterClass.Projects parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Projects 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(flyteidl.admin.ProjectOuterClass.Projects 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 flyteidl.admin.Projects} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Projects) + flyteidl.admin.ProjectOuterClass.ProjectsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.Projects.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getProjectsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (projectsBuilder_ == null) { + projects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + projectsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Projects getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Projects build() { + flyteidl.admin.ProjectOuterClass.Projects result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Projects buildPartial() { + flyteidl.admin.ProjectOuterClass.Projects result = new flyteidl.admin.ProjectOuterClass.Projects(this); + int from_bitField0_ = bitField0_; + if (projectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + projects_ = java.util.Collections.unmodifiableList(projects_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.projects_ = projects_; + } else { + result.projects_ = projectsBuilder_.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 flyteidl.admin.ProjectOuterClass.Projects) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.Projects)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Projects other) { + if (other == flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance()) return this; + if (projectsBuilder_ == null) { + if (!other.projects_.isEmpty()) { + if (projects_.isEmpty()) { + projects_ = other.projects_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProjectsIsMutable(); + projects_.addAll(other.projects_); + } + onChanged(); + } + } else { + if (!other.projects_.isEmpty()) { + if (projectsBuilder_.isEmpty()) { + projectsBuilder_.dispose(); + projectsBuilder_ = null; + projects_ = other.projects_; + bitField0_ = (bitField0_ & ~0x00000001); + projectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProjectsFieldBuilder() : null; + } else { + projectsBuilder_.addAllMessages(other.projects_); + } + } + } + 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 { + flyteidl.admin.ProjectOuterClass.Projects parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.Projects) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List projects_ = + java.util.Collections.emptyList(); + private void ensureProjectsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + projects_ = new java.util.ArrayList(projects_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectsBuilder_; + + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List getProjectsList() { + if (projectsBuilder_ == null) { + return java.util.Collections.unmodifiableList(projects_); + } else { + return projectsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public int getProjectsCount() { + if (projectsBuilder_ == null) { + return projects_.size(); + } else { + return projectsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { + if (projectsBuilder_ == null) { + return projects_.get(index); + } else { + return projectsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder setProjects( + int index, flyteidl.admin.ProjectOuterClass.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.set(index, value); + onChanged(); + } else { + projectsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder setProjects( + int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.set(index, builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects(flyteidl.admin.ProjectOuterClass.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.add(value); + onChanged(); + } else { + projectsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects( + int index, flyteidl.admin.ProjectOuterClass.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.add(index, value); + onChanged(); + } else { + projectsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects( + flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.add(builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects( + int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.add(index, builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addAllProjects( + java.lang.Iterable values) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projects_); + onChanged(); + } else { + projectsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder clearProjects() { + if (projectsBuilder_ == null) { + projects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + projectsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder removeProjects(int index) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.remove(index); + onChanged(); + } else { + projectsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectsBuilder( + int index) { + return getProjectsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( + int index) { + if (projectsBuilder_ == null) { + return projects_.get(index); } else { + return projectsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List + getProjectsOrBuilderList() { + if (projectsBuilder_ != null) { + return projectsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(projects_); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder() { + return getProjectsFieldBuilder().addBuilder( + flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder( + int index) { + return getProjectsFieldBuilder().addBuilder( + index, flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List + getProjectsBuilderList() { + return getProjectsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> + getProjectsFieldBuilder() { + if (projectsBuilder_ == null) { + projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( + projects_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + projects_ = null; + } + return projectsBuilder_; + } + @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:flyteidl.admin.Projects) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Projects) + private static final flyteidl.admin.ProjectOuterClass.Projects DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Projects(); + } + + public static flyteidl.admin.ProjectOuterClass.Projects getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Projects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Projects(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 flyteidl.admin.ProjectOuterClass.Projects getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectListRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.admin.ProjectListRequest} + */ + public static final class ProjectListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectListRequest) + ProjectListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectListRequest.newBuilder() to construct. + private ProjectListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectListRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectListRequest( + 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; + 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.ProjectListRequest other = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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(flyteidl.admin.ProjectOuterClass.ProjectListRequest 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 flyteidl.admin.ProjectListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectListRequest) + flyteidl.admin.ProjectOuterClass.ProjectListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.ProjectListRequest.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectListRequest build() { + flyteidl.admin.ProjectOuterClass.ProjectListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectListRequest buildPartial() { + flyteidl.admin.ProjectOuterClass.ProjectListRequest result = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(this); + 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 flyteidl.admin.ProjectOuterClass.ProjectListRequest) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectListRequest other) { + if (other == flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance()) return this; + 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 { + flyteidl.admin.ProjectOuterClass.ProjectListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.ProjectListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectListRequest) + private static final flyteidl.admin.ProjectOuterClass.ProjectListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(); + } + + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectListRequest(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 flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectRegisterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.Project project = 1; + */ + boolean hasProject(); + /** + * .flyteidl.admin.Project project = 1; + */ + flyteidl.admin.ProjectOuterClass.Project getProject(); + /** + * .flyteidl.admin.Project project = 1; + */ + flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.ProjectRegisterRequest} + */ + public static final class ProjectRegisterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterRequest) + ProjectRegisterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectRegisterRequest.newBuilder() to construct. + private ProjectRegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectRegisterRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectRegisterRequest( + 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: { + flyteidl.admin.ProjectOuterClass.Project.Builder subBuilder = null; + if (project_ != null) { + subBuilder = project_.toBuilder(); + } + project_ = input.readMessage(flyteidl.admin.ProjectOuterClass.Project.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(project_); + project_ = 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private flyteidl.admin.ProjectOuterClass.Project project_; + /** + * .flyteidl.admin.Project project = 1; + */ + public boolean hasProject() { + return project_ != null; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProject() { + return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { + return getProject(); + } + + 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 (project_ != null) { + output.writeMessage(1, getProject()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (project_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProject()); + } + 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) obj; + + if (hasProject() != other.hasProject()) return false; + if (hasProject()) { + if (!getProject() + .equals(other.getProject())) 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 (hasProject()) { + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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(flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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 flyteidl.admin.ProjectRegisterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterRequest) + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.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 (projectBuilder_ == null) { + project_ = null; + } else { + project_ = null; + projectBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest build() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest buildPartial() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(this); + if (projectBuilder_ == null) { + result.project_ = project_; + } else { + result.project_ = projectBuilder_.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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other) { + if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance()) return this; + if (other.hasProject()) { + mergeProject(other.getProject()); + } + 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 { + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.ProjectOuterClass.Project project_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectBuilder_; + /** + * .flyteidl.admin.Project project = 1; + */ + public boolean hasProject() { + return projectBuilder_ != null || project_ != null; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProject() { + if (projectBuilder_ == null) { + return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; + } else { + return projectBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.Project project = 1; + */ + public Builder setProject(flyteidl.admin.ProjectOuterClass.Project value) { + if (projectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + onChanged(); + } else { + projectBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public Builder setProject( + flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectBuilder_ == null) { + project_ = builderForValue.build(); + onChanged(); + } else { + projectBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public Builder mergeProject(flyteidl.admin.ProjectOuterClass.Project value) { + if (projectBuilder_ == null) { + if (project_ != null) { + project_ = + flyteidl.admin.ProjectOuterClass.Project.newBuilder(project_).mergeFrom(value).buildPartial(); + } else { + project_ = value; + } + onChanged(); + } else { + projectBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public Builder clearProject() { + if (projectBuilder_ == null) { + project_ = null; + onChanged(); + } else { + project_ = null; + projectBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectBuilder() { + + onChanged(); + return getProjectFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { + if (projectBuilder_ != null) { + return projectBuilder_.getMessageOrBuilder(); + } else { + return project_ == null ? + flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; + } + } + /** + * .flyteidl.admin.Project project = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> + getProjectFieldBuilder() { + if (projectBuilder_ == null) { + projectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( + getProject(), + getParentForChildren(), + isClean()); + project_ = null; + } + return projectBuilder_; + } + @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:flyteidl.admin.ProjectRegisterRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterRequest) + private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(); + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectRegisterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectRegisterRequest(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 flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectRegisterResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.admin.ProjectRegisterResponse} + */ + public static final class ProjectRegisterResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterResponse) + ProjectRegisterResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectRegisterResponse.newBuilder() to construct. + private ProjectRegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectRegisterResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectRegisterResponse( + 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; + 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 flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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(flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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 flyteidl.admin.ProjectRegisterResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterResponse) + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse build() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse buildPartial() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(this); + 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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other) { + if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.ProjectRegisterResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterResponse) + private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(); + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectRegisterResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectRegisterResponse(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 flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Domain_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Domain_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Project_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Project_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Projects_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Projects_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectRegisterResponse_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\034flyteidl/admin/project.proto\022\016flyteidl" + + ".admin\"\"\n\006Domain\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001" + + "(\t\"a\n\007Project\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022" + + "\'\n\007domains\030\003 \003(\0132\026.flyteidl.admin.Domain" + + "\022\023\n\013description\030\004 \001(\t\"5\n\010Projects\022)\n\010pro" + + "jects\030\001 \003(\0132\027.flyteidl.admin.Project\"\024\n\022" + + "ProjectListRequest\"B\n\026ProjectRegisterReq" + + "uest\022(\n\007project\030\001 \001(\0132\027.flyteidl.admin.P" + + "roject\"\031\n\027ProjectRegisterResponseB3Z1git" + + "hub.com/lyft/flyteidl/gen/pb-go/flyteidl" + + "/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_admin_Domain_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_Domain_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Domain_descriptor, + new java.lang.String[] { "Id", "Name", }); + internal_static_flyteidl_admin_Project_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_Project_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Project_descriptor, + new java.lang.String[] { "Id", "Name", "Domains", "Description", }); + internal_static_flyteidl_admin_Projects_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_Projects_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Projects_descriptor, + new java.lang.String[] { "Projects", }); + internal_static_flyteidl_admin_ProjectListRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectListRequest_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor, + new java.lang.String[] { "Project", }); + internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java b/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java new file mode 100644 index 000000000..a43038512 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java @@ -0,0 +1,1848 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/schedule.proto + +package flyteidl.admin; + +public final class ScheduleOuterClass { + private ScheduleOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Represents a frequency at which to run a schedule.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.FixedRateUnit} + */ + public enum FixedRateUnit + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MINUTE = 0; + */ + MINUTE(0), + /** + * HOUR = 1; + */ + HOUR(1), + /** + * DAY = 2; + */ + DAY(2), + UNRECOGNIZED(-1), + ; + + /** + * MINUTE = 0; + */ + public static final int MINUTE_VALUE = 0; + /** + * HOUR = 1; + */ + public static final int HOUR_VALUE = 1; + /** + * DAY = 2; + */ + public static final int DAY_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FixedRateUnit valueOf(int value) { + return forNumber(value); + } + + public static FixedRateUnit forNumber(int value) { + switch (value) { + case 0: return MINUTE; + case 1: return HOUR; + case 2: return DAY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FixedRateUnit> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FixedRateUnit findValueByNumber(int number) { + return FixedRateUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.admin.ScheduleOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final FixedRateUnit[] VALUES = values(); + + public static FixedRateUnit 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 FixedRateUnit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.FixedRateUnit) + } + + public interface FixedRateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.FixedRate) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 value = 1; + */ + int getValue(); + + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + int getUnitValue(); + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit(); + } + /** + *
+   * Option for schedules run at a certain frequency, e.g. every 2 minutes.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.FixedRate} + */ + public static final class FixedRate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.FixedRate) + FixedRateOrBuilder { + private static final long serialVersionUID = 0L; + // Use FixedRate.newBuilder() to construct. + private FixedRate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FixedRate() { + unit_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FixedRate( + 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 8: { + + value_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + unit_ = rawValue; + 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 flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private int value_; + /** + * uint32 value = 1; + */ + public int getValue() { + return value_; + } + + public static final int UNIT_FIELD_NUMBER = 2; + private int unit_; + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { + @SuppressWarnings("deprecation") + flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); + return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; + } + + 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 (value_ != 0) { + output.writeUInt32(1, value_); + } + if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { + output.writeEnum(2, unit_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (value_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, value_); + } + if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, unit_); + } + 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 flyteidl.admin.ScheduleOuterClass.FixedRate)) { + return super.equals(obj); + } + flyteidl.admin.ScheduleOuterClass.FixedRate other = (flyteidl.admin.ScheduleOuterClass.FixedRate) obj; + + if (getValue() + != other.getValue()) return false; + if (unit_ != other.unit_) 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue(); + hash = (37 * hash) + UNIT_FIELD_NUMBER; + hash = (53 * hash) + unit_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate 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 flyteidl.admin.ScheduleOuterClass.FixedRate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate 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 flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate 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(flyteidl.admin.ScheduleOuterClass.FixedRate 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; + } + /** + *
+     * Option for schedules run at a certain frequency, e.g. every 2 minutes.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.FixedRate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.FixedRate) + flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); + } + + // Construct using flyteidl.admin.ScheduleOuterClass.FixedRate.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(); + value_ = 0; + + unit_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.FixedRate build() { + flyteidl.admin.ScheduleOuterClass.FixedRate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.FixedRate buildPartial() { + flyteidl.admin.ScheduleOuterClass.FixedRate result = new flyteidl.admin.ScheduleOuterClass.FixedRate(this); + result.value_ = value_; + result.unit_ = unit_; + 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 flyteidl.admin.ScheduleOuterClass.FixedRate) { + return mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.FixedRate other) { + if (other == flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) return this; + if (other.getValue() != 0) { + setValue(other.getValue()); + } + if (other.unit_ != 0) { + setUnitValue(other.getUnitValue()); + } + 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 { + flyteidl.admin.ScheduleOuterClass.FixedRate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ScheduleOuterClass.FixedRate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int value_ ; + /** + * uint32 value = 1; + */ + public int getValue() { + return value_; + } + /** + * uint32 value = 1; + */ + public Builder setValue(int value) { + + value_ = value; + onChanged(); + return this; + } + /** + * uint32 value = 1; + */ + public Builder clearValue() { + + value_ = 0; + onChanged(); + return this; + } + + private int unit_ = 0; + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public Builder setUnitValue(int value) { + unit_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { + @SuppressWarnings("deprecation") + flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); + return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public Builder setUnit(flyteidl.admin.ScheduleOuterClass.FixedRateUnit value) { + if (value == null) { + throw new NullPointerException(); + } + + unit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public Builder clearUnit() { + + unit_ = 0; + 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:flyteidl.admin.FixedRate) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.FixedRate) + private static final flyteidl.admin.ScheduleOuterClass.FixedRate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.FixedRate(); + } + + public static flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FixedRate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FixedRate(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 flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ScheduleOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Schedule) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+     * 
+ * + * string cron_expression = 1; + */ + java.lang.String getCronExpression(); + /** + *
+     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+     * 
+ * + * string cron_expression = 1; + */ + com.google.protobuf.ByteString + getCronExpressionBytes(); + + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + boolean hasRate(); + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + flyteidl.admin.ScheduleOuterClass.FixedRate getRate(); + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder(); + + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + java.lang.String getKickoffTimeInputArg(); + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + com.google.protobuf.ByteString + getKickoffTimeInputArgBytes(); + + public flyteidl.admin.ScheduleOuterClass.Schedule.ScheduleExpressionCase getScheduleExpressionCase(); + } + /** + *
+   * Defines complete set of information required to trigger an execution on a schedule.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Schedule} + */ + public static final class Schedule extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Schedule) + ScheduleOrBuilder { + private static final long serialVersionUID = 0L; + // Use Schedule.newBuilder() to construct. + private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Schedule() { + kickoffTimeInputArg_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Schedule( + 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(); + scheduleExpressionCase_ = 1; + scheduleExpression_ = s; + break; + } + case 18: { + flyteidl.admin.ScheduleOuterClass.FixedRate.Builder subBuilder = null; + if (scheduleExpressionCase_ == 2) { + subBuilder = ((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_).toBuilder(); + } + scheduleExpression_ = + input.readMessage(flyteidl.admin.ScheduleOuterClass.FixedRate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); + scheduleExpression_ = subBuilder.buildPartial(); + } + scheduleExpressionCase_ = 2; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + kickoffTimeInputArg_ = 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 flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); + } + + private int scheduleExpressionCase_ = 0; + private java.lang.Object scheduleExpression_; + public enum ScheduleExpressionCase + implements com.google.protobuf.Internal.EnumLite { + CRON_EXPRESSION(1), + RATE(2), + SCHEDULEEXPRESSION_NOT_SET(0); + private final int value; + private ScheduleExpressionCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScheduleExpressionCase valueOf(int value) { + return forNumber(value); + } + + public static ScheduleExpressionCase forNumber(int value) { + switch (value) { + case 1: return CRON_EXPRESSION; + case 2: return RATE; + case 0: return SCHEDULEEXPRESSION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ScheduleExpressionCase + getScheduleExpressionCase() { + return ScheduleExpressionCase.forNumber( + scheduleExpressionCase_); + } + + public static final int CRON_EXPRESSION_FIELD_NUMBER = 1; + /** + *
+     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+     * 
+ * + * string cron_expression = 1; + */ + public java.lang.String getCronExpression() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + 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(); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = s; + } + return s; + } + } + /** + *
+     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+     * 
+ * + * string cron_expression = 1; + */ + public com.google.protobuf.ByteString + getCronExpressionBytes() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RATE_FIELD_NUMBER = 2; + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public boolean hasRate() { + return scheduleExpressionCase_ == 2; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + + public static final int KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER = 3; + private volatile java.lang.Object kickoffTimeInputArg_; + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + public java.lang.String getKickoffTimeInputArg() { + java.lang.Object ref = kickoffTimeInputArg_; + 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(); + kickoffTimeInputArg_ = s; + return s; + } + } + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + public com.google.protobuf.ByteString + getKickoffTimeInputArgBytes() { + java.lang.Object ref = kickoffTimeInputArg_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kickoffTimeInputArg_ = 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 (scheduleExpressionCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scheduleExpression_); + } + if (scheduleExpressionCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); + } + if (!getKickoffTimeInputArgBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kickoffTimeInputArg_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scheduleExpressionCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scheduleExpression_); + } + if (scheduleExpressionCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); + } + if (!getKickoffTimeInputArgBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kickoffTimeInputArg_); + } + 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 flyteidl.admin.ScheduleOuterClass.Schedule)) { + return super.equals(obj); + } + flyteidl.admin.ScheduleOuterClass.Schedule other = (flyteidl.admin.ScheduleOuterClass.Schedule) obj; + + if (!getKickoffTimeInputArg() + .equals(other.getKickoffTimeInputArg())) return false; + if (!getScheduleExpressionCase().equals(other.getScheduleExpressionCase())) return false; + switch (scheduleExpressionCase_) { + case 1: + if (!getCronExpression() + .equals(other.getCronExpression())) return false; + break; + case 2: + if (!getRate() + .equals(other.getRate())) 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) + KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER; + hash = (53 * hash) + getKickoffTimeInputArg().hashCode(); + switch (scheduleExpressionCase_) { + case 1: + hash = (37 * hash) + CRON_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getCronExpression().hashCode(); + break; + case 2: + hash = (37 * hash) + RATE_FIELD_NUMBER; + hash = (53 * hash) + getRate().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule 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 flyteidl.admin.ScheduleOuterClass.Schedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule 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 flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule 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(flyteidl.admin.ScheduleOuterClass.Schedule 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; + } + /** + *
+     * Defines complete set of information required to trigger an execution on a schedule.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Schedule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Schedule) + flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); + } + + // Construct using flyteidl.admin.ScheduleOuterClass.Schedule.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(); + kickoffTimeInputArg_ = ""; + + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstanceForType() { + return flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.Schedule build() { + flyteidl.admin.ScheduleOuterClass.Schedule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.Schedule buildPartial() { + flyteidl.admin.ScheduleOuterClass.Schedule result = new flyteidl.admin.ScheduleOuterClass.Schedule(this); + if (scheduleExpressionCase_ == 1) { + result.scheduleExpression_ = scheduleExpression_; + } + if (scheduleExpressionCase_ == 2) { + if (rateBuilder_ == null) { + result.scheduleExpression_ = scheduleExpression_; + } else { + result.scheduleExpression_ = rateBuilder_.build(); + } + } + result.kickoffTimeInputArg_ = kickoffTimeInputArg_; + result.scheduleExpressionCase_ = scheduleExpressionCase_; + 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 flyteidl.admin.ScheduleOuterClass.Schedule) { + return mergeFrom((flyteidl.admin.ScheduleOuterClass.Schedule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.Schedule other) { + if (other == flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance()) return this; + if (!other.getKickoffTimeInputArg().isEmpty()) { + kickoffTimeInputArg_ = other.kickoffTimeInputArg_; + onChanged(); + } + switch (other.getScheduleExpressionCase()) { + case CRON_EXPRESSION: { + scheduleExpressionCase_ = 1; + scheduleExpression_ = other.scheduleExpression_; + onChanged(); + break; + } + case RATE: { + mergeRate(other.getRate()); + break; + } + case SCHEDULEEXPRESSION_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 { + flyteidl.admin.ScheduleOuterClass.Schedule parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ScheduleOuterClass.Schedule) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int scheduleExpressionCase_ = 0; + private java.lang.Object scheduleExpression_; + public ScheduleExpressionCase + getScheduleExpressionCase() { + return ScheduleExpressionCase.forNumber( + scheduleExpressionCase_); + } + + public Builder clearScheduleExpression() { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + onChanged(); + return this; + } + + + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public java.lang.String getCronExpression() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public com.google.protobuf.ByteString + getCronExpressionBytes() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public Builder setCronExpression( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scheduleExpressionCase_ = 1; + scheduleExpression_ = value; + onChanged(); + return this; + } + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public Builder clearCronExpression() { + if (scheduleExpressionCase_ == 1) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public Builder setCronExpressionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scheduleExpressionCase_ = 1; + scheduleExpression_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> rateBuilder_; + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public boolean hasRate() { + return scheduleExpressionCase_ == 2; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { + if (rateBuilder_ == null) { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } else { + if (scheduleExpressionCase_ == 2) { + return rateBuilder_.getMessage(); + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder setRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { + if (rateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduleExpression_ = value; + onChanged(); + } else { + rateBuilder_.setMessage(value); + } + scheduleExpressionCase_ = 2; + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder setRate( + flyteidl.admin.ScheduleOuterClass.FixedRate.Builder builderForValue) { + if (rateBuilder_ == null) { + scheduleExpression_ = builderForValue.build(); + onChanged(); + } else { + rateBuilder_.setMessage(builderForValue.build()); + } + scheduleExpressionCase_ = 2; + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder mergeRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { + if (rateBuilder_ == null) { + if (scheduleExpressionCase_ == 2 && + scheduleExpression_ != flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) { + scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.newBuilder((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_) + .mergeFrom(value).buildPartial(); + } else { + scheduleExpression_ = value; + } + onChanged(); + } else { + if (scheduleExpressionCase_ == 2) { + rateBuilder_.mergeFrom(value); + } + rateBuilder_.setMessage(value); + } + scheduleExpressionCase_ = 2; + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder clearRate() { + if (rateBuilder_ == null) { + if (scheduleExpressionCase_ == 2) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + onChanged(); + } + } else { + if (scheduleExpressionCase_ == 2) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + } + rateBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRate.Builder getRateBuilder() { + return getRateFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { + if ((scheduleExpressionCase_ == 2) && (rateBuilder_ != null)) { + return rateBuilder_.getMessageOrBuilder(); + } else { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> + getRateFieldBuilder() { + if (rateBuilder_ == null) { + if (!(scheduleExpressionCase_ == 2)) { + scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + rateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder>( + (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_, + getParentForChildren(), + isClean()); + scheduleExpression_ = null; + } + scheduleExpressionCase_ = 2; + onChanged();; + return rateBuilder_; + } + + private java.lang.Object kickoffTimeInputArg_ = ""; + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public java.lang.String getKickoffTimeInputArg() { + java.lang.Object ref = kickoffTimeInputArg_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kickoffTimeInputArg_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public com.google.protobuf.ByteString + getKickoffTimeInputArgBytes() { + java.lang.Object ref = kickoffTimeInputArg_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kickoffTimeInputArg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public Builder setKickoffTimeInputArg( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kickoffTimeInputArg_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public Builder clearKickoffTimeInputArg() { + + kickoffTimeInputArg_ = getDefaultInstance().getKickoffTimeInputArg(); + onChanged(); + return this; + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public Builder setKickoffTimeInputArgBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kickoffTimeInputArg_ = 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:flyteidl.admin.Schedule) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Schedule) + private static final flyteidl.admin.ScheduleOuterClass.Schedule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.Schedule(); + } + + public static flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(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 flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_FixedRate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_FixedRate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Schedule_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Schedule_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\035flyteidl/admin/schedule.proto\022\016flyteid" + + "l.admin\"G\n\tFixedRate\022\r\n\005value\030\001 \001(\r\022+\n\004u" + + "nit\030\002 \001(\0162\035.flyteidl.admin.FixedRateUnit" + + "\"\206\001\n\010Schedule\022\031\n\017cron_expression\030\001 \001(\tH\000" + + "\022)\n\004rate\030\002 \001(\0132\031.flyteidl.admin.FixedRat" + + "eH\000\022\036\n\026kickoff_time_input_arg\030\003 \001(\tB\024\n\022S" + + "cheduleExpression*.\n\rFixedRateUnit\022\n\n\006MI" + + "NUTE\020\000\022\010\n\004HOUR\020\001\022\007\n\003DAY\020\002B3Z1github.com/" + + "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + + "proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_admin_FixedRate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_FixedRate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_FixedRate_descriptor, + new java.lang.String[] { "Value", "Unit", }); + internal_static_flyteidl_admin_Schedule_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_Schedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Schedule_descriptor, + new java.lang.String[] { "CronExpression", "Rate", "KickoffTimeInputArg", "ScheduleExpression", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java b/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java new file mode 100644 index 000000000..1b76dda2a --- /dev/null +++ b/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java @@ -0,0 +1,8862 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task_execution.proto + +package flyteidl.admin; + +public final class TaskExecutionOuterClass { + private TaskExecutionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface TaskExecutionGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A message used to fetch a single task execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} + */ + public static final class TaskExecutionGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetRequest) + TaskExecutionGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionGetRequest.newBuilder() to construct. + private TaskExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionGetRequest( + 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: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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 message used to fetch a single task execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetRequest) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.TaskExecutionGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetRequest) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionGetRequest(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + boolean hasNodeExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of task execution entities.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} + */ + public static final class TaskExecutionListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionListRequest) + TaskExecutionListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionListRequest.newBuilder() to construct. + private TaskExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionListRequest() { + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionListRequest( + 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: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (nodeExecutionId_ != null) { + subBuilder = nodeExecutionId_.toBuilder(); + } + nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeExecutionId_); + nodeExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); + } + + public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionId_ != null; + } + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + return getNodeExecutionId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + 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 (nodeExecutionId_ != null) { + output.writeMessage(1, getNodeExecutionId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNodeExecutionId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) obj; + + if (hasNodeExecutionId() != other.hasNodeExecutionId()) return false; + if (hasNodeExecutionId()) { + if (!getNodeExecutionId() + .equals(other.getNodeExecutionId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) 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 (hasNodeExecutionId()) { + hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeExecutionId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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; + } + /** + *
+     * Represents a request structure to retrieve a list of task execution entities.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionListRequest) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.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 (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(this); + if (nodeExecutionIdBuilder_ == null) { + result.nodeExecutionId_ = nodeExecutionId_; + } else { + result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance()) return this; + if (other.hasNodeExecutionId()) { + mergeNodeExecutionId(other.getNodeExecutionId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + 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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } else { + return nodeExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeExecutionId_ = value; + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder setNodeExecutionId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = builderForValue.build(); + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (nodeExecutionId_ != null) { + nodeExecutionId_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); + } else { + nodeExecutionId_ = value; + } + onChanged(); + } else { + nodeExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder clearNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + onChanged(); + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { + + onChanged(); + return getNodeExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + if (nodeExecutionIdBuilder_ != null) { + return nodeExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return nodeExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getNodeExecutionIdFieldBuilder() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getNodeExecutionId(), + getParentForChildren(), + isClean()); + nodeExecutionId_ = null; + } + return nodeExecutionIdBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @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:flyteidl.admin.TaskExecutionListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionListRequest) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionListRequest(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecution) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + java.lang.String getInputUri(); + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + boolean hasClosure(); + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure(); + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder(); + + /** + *
+     * Whether this task spawned nodes.
+     * 
+ * + * bool is_parent = 4; + */ + boolean getIsParent(); + } + /** + *
+   * Encapsulates all details for a single task execution entity.
+   * A task execution represents an instantiated task, including all inputs and additional
+   * metadata as well as computed results included state, outputs, and duration-based attributes.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecution} + */ + public static final class TaskExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecution) + TaskExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecution.newBuilder() to construct. + private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecution() { + inputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecution( + 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: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 26: { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + isParent_ = input.readBool(); + 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object inputUri_; + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + 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(); + inputUri_ = s; + return s; + } + } + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_; + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { + return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; + } + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + public static final int IS_PARENT_FIELD_NUMBER = 4; + private boolean isParent_; + /** + *
+     * Whether this task spawned nodes.
+     * 
+ * + * bool is_parent = 4; + */ + public boolean getIsParent() { + return isParent_; + } + + 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 (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + if (isParent_ != false) { + output.writeBool(4, isParent_); + } + 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 (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + if (isParent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, isParent_); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecution other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getInputUri() + .equals(other.getInputUri())) return false; + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) return false; + } + if (getIsParent() + != other.getIsParent()) 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) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (37 * hash) + IS_PARENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsParent()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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; + } + /** + *
+     * Encapsulates all details for a single task execution entity.
+     * A task execution represents an instantiated task, including all inputs and additional
+     * metadata as well as computed results included state, outputs, and duration-based attributes.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecution) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecution.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + inputUri_ = ""; + + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + isParent_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + result.isParent_ = isParent_; + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecution other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + if (other.getIsParent() != false) { + setIsParent(other.getIsParent()); + } + 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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> closureBuilder_; + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + + private boolean isParent_ ; + /** + *
+       * Whether this task spawned nodes.
+       * 
+ * + * bool is_parent = 4; + */ + public boolean getIsParent() { + return isParent_; + } + /** + *
+       * Whether this task spawned nodes.
+       * 
+ * + * bool is_parent = 4; + */ + public Builder setIsParent(boolean value) { + + isParent_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether this task spawned nodes.
+       * 
+ * + * bool is_parent = 4; + */ + public Builder clearIsParent() { + + isParent_ = false; + 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:flyteidl.admin.TaskExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecution) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecution(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + java.util.List + getTaskExecutionsList(); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + int getTaskExecutionsCount(); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + java.util.List + getTaskExecutionsOrBuilderList(); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Response structure for a query to list of task execution entities.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionList} + */ + public static final class TaskExecutionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionList) + TaskExecutionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionList.newBuilder() to construct. + private TaskExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionList() { + taskExecutions_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionList( + 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)) { + taskExecutions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + taskExecutions_.add( + input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecution.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); + } + + private int bitField0_; + public static final int TASK_EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List taskExecutions_; + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List getTaskExecutionsList() { + return taskExecutions_; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List + getTaskExecutionsOrBuilderList() { + return taskExecutions_; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public int getTaskExecutionsCount() { + return taskExecutions_.size(); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { + return taskExecutions_.get(index); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( + int index) { + return taskExecutions_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < taskExecutions_.size(); i++) { + output.writeMessage(1, taskExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < taskExecutions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, taskExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) obj; + + if (!getTaskExecutionsList() + .equals(other.getTaskExecutionsList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getTaskExecutionsCount() > 0) { + hash = (37 * hash) + TASK_EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getTaskExecutionsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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; + } + /** + *
+     * Response structure for a query to list of task execution entities.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionList) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTaskExecutionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (taskExecutionsBuilder_ == null) { + taskExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + taskExecutionsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (taskExecutionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.taskExecutions_ = taskExecutions_; + } else { + result.taskExecutions_ = taskExecutionsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance()) return this; + if (taskExecutionsBuilder_ == null) { + if (!other.taskExecutions_.isEmpty()) { + if (taskExecutions_.isEmpty()) { + taskExecutions_ = other.taskExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTaskExecutionsIsMutable(); + taskExecutions_.addAll(other.taskExecutions_); + } + onChanged(); + } + } else { + if (!other.taskExecutions_.isEmpty()) { + if (taskExecutionsBuilder_.isEmpty()) { + taskExecutionsBuilder_.dispose(); + taskExecutionsBuilder_ = null; + taskExecutions_ = other.taskExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + taskExecutionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTaskExecutionsFieldBuilder() : null; + } else { + taskExecutionsBuilder_.addAllMessages(other.taskExecutions_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List taskExecutions_ = + java.util.Collections.emptyList(); + private void ensureTaskExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + taskExecutions_ = new java.util.ArrayList(taskExecutions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> taskExecutionsBuilder_; + + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List getTaskExecutionsList() { + if (taskExecutionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taskExecutions_); + } else { + return taskExecutionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public int getTaskExecutionsCount() { + if (taskExecutionsBuilder_ == null) { + return taskExecutions_.size(); + } else { + return taskExecutionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { + if (taskExecutionsBuilder_ == null) { + return taskExecutions_.get(index); + } else { + return taskExecutionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder setTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { + if (taskExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskExecutionsIsMutable(); + taskExecutions_.set(index, value); + onChanged(); + } else { + taskExecutionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder setTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.set(index, builderForValue.build()); + onChanged(); + } else { + taskExecutionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions(flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { + if (taskExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(value); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { + if (taskExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(index, value); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(builderForValue.build()); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(index, builderForValue.build()); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addAllTaskExecutions( + java.lang.Iterable values) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, taskExecutions_); + onChanged(); + } else { + taskExecutionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder clearTaskExecutions() { + if (taskExecutionsBuilder_ == null) { + taskExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + taskExecutionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder removeTaskExecutions(int index) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.remove(index); + onChanged(); + } else { + taskExecutionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder getTaskExecutionsBuilder( + int index) { + return getTaskExecutionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( + int index) { + if (taskExecutionsBuilder_ == null) { + return taskExecutions_.get(index); } else { + return taskExecutionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List + getTaskExecutionsOrBuilderList() { + if (taskExecutionsBuilder_ != null) { + return taskExecutionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(taskExecutions_); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder() { + return getTaskExecutionsFieldBuilder().addBuilder( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder( + int index) { + return getTaskExecutionsFieldBuilder().addBuilder( + index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List + getTaskExecutionsBuilderList() { + return getTaskExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> + getTaskExecutionsFieldBuilder() { + if (taskExecutionsBuilder_ == null) { + taskExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder>( + taskExecutions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + taskExecutions_ = null; + } + return taskExecutionsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.TaskExecutionList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionList) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionList(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * 
+ * + * string output_uri = 1; + */ + java.lang.String getOutputUri(); + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * 
+ * + * string output_uri = 1; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + boolean hasError(); + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + flyteidl.core.Execution.TaskExecution.Phase getPhase(); + + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + java.util.List + getLogsList(); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + flyteidl.core.Execution.TaskLog getLogs(int index); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + int getLogsCount(); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + java.util.List + getLogsOrBuilderList(); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index); + + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + boolean hasStartedAt(); + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.Timestamp getStartedAt(); + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); + + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + boolean hasDuration(); + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.Duration getDuration(); + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + boolean hasUpdatedAt(); + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + boolean hasCustomInfo(); + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + com.google.protobuf.Struct getCustomInfo(); + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.OutputResultCase getOutputResultCase(); + } + /** + *
+   * Container for task execution details and results.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} + */ + public static final class TaskExecutionClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionClosure) + TaskExecutionClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionClosure.newBuilder() to construct. + private TaskExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionClosure() { + phase_ = 0; + logs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionClosure( + 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(); + outputResultCase_ = 1; + outputResult_ = s; + break; + } + case 18: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 2; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + logs_.add( + input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startedAt_ != null) { + subBuilder = startedAt_.toBuilder(); + } + startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startedAt_); + startedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + 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 66: { + 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; + } + case 74: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (customInfo_ != null) { + subBuilder = customInfo_.toBuilder(); + } + customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customInfo_); + customInfo_ = 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_ & 0x00000008) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); + } + + private int bitField0_; + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(1), + ERROR(2), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 1: return OUTPUT_URI; + case 2: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 1; + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * 
+ * + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * 
+ * + * string output_uri = 1; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + + public static final int LOGS_FIELD_NUMBER = 4; + private java.util.List logs_; + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List getLogsList() { + return logs_; + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public int getLogsCount() { + return logs_.size(); + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + return logs_.get(index); + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); + } + + public static final int STARTED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp startedAt_; + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAt_ != null; + } + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + return getStartedAt(); + } + + public static final int DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration duration_; + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + public static final int CUSTOM_INFO_FIELD_NUMBER = 9; + private com.google.protobuf.Struct customInfo_; + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public boolean hasCustomInfo() { + return customInfo_ != null; + } + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.Struct getCustomInfo() { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + return getCustomInfo(); + } + + 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 (outputResultCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); + } + if (outputResultCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(4, logs_.get(i)); + } + if (startedAt_ != null) { + output.writeMessage(5, getStartedAt()); + } + if (duration_ != null) { + output.writeMessage(6, getDuration()); + } + if (createdAt_ != null) { + output.writeMessage(7, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(8, getUpdatedAt()); + } + if (customInfo_ != null) { + output.writeMessage(9, getCustomInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputResultCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); + } + if (outputResultCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, logs_.get(i)); + } + if (startedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartedAt()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDuration()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdatedAt()); + } + if (customInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getCustomInfo()); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) obj; + + if (phase_ != other.phase_) return false; + if (!getLogsList() + .equals(other.getLogsList())) return false; + if (hasStartedAt() != other.hasStartedAt()) return false; + if (hasStartedAt()) { + if (!getStartedAt() + .equals(other.getStartedAt())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) 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 (hasCustomInfo() != other.hasCustomInfo()) return false; + if (hasCustomInfo()) { + if (!getCustomInfo() + .equals(other.getCustomInfo())) return false; + } + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 1: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 2: + if (!getError() + .equals(other.getError())) 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) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + if (hasStartedAt()) { + hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getStartedAt().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().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(); + } + if (hasCustomInfo()) { + hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCustomInfo().hashCode(); + } + switch (outputResultCase_) { + case 1: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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; + } + /** + *
+     * Container for task execution details and results.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionClosure) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + phase_ = 0; + + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + logsBuilder_.clear(); + } + if (startedAtBuilder_ == null) { + startedAt_ = null; + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + if (customInfoBuilder_ == null) { + customInfo_ = null; + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (outputResultCase_ == 1) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 2) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + result.phase_ = phase_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + if (startedAtBuilder_ == null) { + result.startedAt_ = startedAt_; + } else { + result.startedAt_ = startedAtBuilder_.build(); + } + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + if (customInfoBuilder_ == null) { + result.customInfo_ = customInfo_; + } else { + result.customInfo_ = customInfoBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.outputResultCase_ = outputResultCase_; + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance()) return this; + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000008); + logsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + if (other.hasStartedAt()) { + mergeStartedAt(other.getStartedAt()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + if (other.hasCustomInfo()) { + mergeCustomInfo(other.getCustomInfo()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 1; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 2)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 2; + onChanged();; + return errorBuilder_; + } + + private int phase_ = 0; + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private java.util.List logs_ = + java.util.Collections.emptyList(); + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; + + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs(flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs( + flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder( + index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( + logs_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } + + private com.google.protobuf.Timestamp startedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAtBuilder_ != null || startedAt_ != null; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + if (startedAtBuilder_ == null) { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } else { + return startedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedAt_ = value; + onChanged(); + } else { + startedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedAtBuilder_ == null) { + startedAt_ = builderForValue.build(); + onChanged(); + } else { + startedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (startedAt_ != null) { + startedAt_ = + com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); + } else { + startedAt_ = value; + } + onChanged(); + } else { + startedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder clearStartedAt() { + if (startedAtBuilder_ == null) { + startedAt_ = null; + onChanged(); + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { + + onChanged(); + return getStartedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + if (startedAtBuilder_ != null) { + return startedAtBuilder_.getMessageOrBuilder(); + } else { + return startedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedAtFieldBuilder() { + if (startedAtBuilder_ == null) { + startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedAt(), + getParentForChildren(), + isClean()); + startedAt_ = null; + } + return startedAtBuilder_; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + 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_; + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + 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; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + 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; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + 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_; + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + 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; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + 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; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + 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_; + } + + private com.google.protobuf.Struct customInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public boolean hasCustomInfo() { + return customInfoBuilder_ != null || customInfo_ != null; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.Struct getCustomInfo() { + if (customInfoBuilder_ == null) { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } else { + return customInfoBuilder_.getMessage(); + } + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder setCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customInfo_ = value; + onChanged(); + } else { + customInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder setCustomInfo( + com.google.protobuf.Struct.Builder builderForValue) { + if (customInfoBuilder_ == null) { + customInfo_ = builderForValue.build(); + onChanged(); + } else { + customInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder mergeCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (customInfo_ != null) { + customInfo_ = + com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); + } else { + customInfo_ = value; + } + onChanged(); + } else { + customInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder clearCustomInfo() { + if (customInfoBuilder_ == null) { + customInfo_ = null; + onChanged(); + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { + + onChanged(); + return getCustomInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + if (customInfoBuilder_ != null) { + return customInfoBuilder_.getMessageOrBuilder(); + } else { + return customInfo_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomInfoFieldBuilder() { + if (customInfoBuilder_ == null) { + customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustomInfo(), + getParentForChildren(), + isClean()); + customInfo_ = null; + } + return customInfoBuilder_; + } + @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:flyteidl.admin.TaskExecutionClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionClosure) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionClosure(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionGetDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Request structure to fetch inputs and output urls for a task execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} + */ + public static final class TaskExecutionGetDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataRequest) + TaskExecutionGetDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionGetDataRequest.newBuilder() to construct. + private TaskExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionGetDataRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionGetDataRequest( + 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: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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; + } + /** + *
+     * Request structure to fetch inputs and output urls for a task execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataRequest) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.admin.TaskExecutionGetDataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataRequest) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionGetDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionGetDataRequest(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionGetDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + boolean hasInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + flyteidl.admin.Common.UrlBlob getInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); + + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + boolean hasOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + flyteidl.admin.Common.UrlBlob getOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); + } + /** + *
+   * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} + */ + public static final class TaskExecutionGetDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataResponse) + TaskExecutionGetDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionGetDataResponse.newBuilder() to construct. + private TaskExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionGetDataResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionGetDataResponse( + 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: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = 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 flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.admin.Common.UrlBlob inputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.admin.Common.UrlBlob outputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + 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 (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) obj; + + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) 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 (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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; + } + /** + *
+     * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataResponse) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.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 (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + 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 { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.UrlBlob inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder setInputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.admin.Common.UrlBlob outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder setOutputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + @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:flyteidl.admin.TaskExecutionGetDataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataResponse) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionGetDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionGetDataResponse(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 flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_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#flyteidl/admin/task_execution.proto\022\016f" + + "lyteidl.admin\032\033flyteidl/admin/common.pro" + + "to\032\035flyteidl/core/execution.proto\032\036flyte" + + "idl/core/identifier.proto\032\037google/protob" + + "uf/timestamp.proto\032\036google/protobuf/dura" + + "tion.proto\032\034google/protobuf/struct.proto" + + "\"M\n\027TaskExecutionGetRequest\0222\n\002id\030\001 \001(\0132" + + "&.flyteidl.core.TaskExecutionIdentifier\"" + + "\263\001\n\030TaskExecutionListRequest\022A\n\021node_exe" + + "cution_id\030\001 \001(\0132&.flyteidl.core.NodeExec" + + "utionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030" + + "\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132" + + "\024.flyteidl.admin.Sort\"\240\001\n\rTaskExecution\022" + + "2\n\002id\030\001 \001(\0132&.flyteidl.core.TaskExecutio" + + "nIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n\007closur" + + "e\030\003 \001(\0132$.flyteidl.admin.TaskExecutionCl" + + "osure\022\021\n\tis_parent\030\004 \001(\010\"Z\n\021TaskExecutio" + + "nList\0226\n\017task_executions\030\001 \003(\0132\035.flyteid" + + "l.admin.TaskExecution\022\r\n\005token\030\002 \001(\t\"\261\003\n" + + "\024TaskExecutionClosure\022\024\n\noutput_uri\030\001 \001(" + + "\tH\000\022.\n\005error\030\002 \001(\0132\035.flyteidl.core.Execu" + + "tionErrorH\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.co" + + "re.TaskExecution.Phase\022$\n\004logs\030\004 \003(\0132\026.f" + + "lyteidl.core.TaskLog\022.\n\nstarted_at\030\005 \001(\013" + + "2\032.google.protobuf.Timestamp\022+\n\010duration" + + "\030\006 \001(\0132\031.google.protobuf.Duration\022.\n\ncre" + + "ated_at\030\007 \001(\0132\032.google.protobuf.Timestam" + + "p\022.\n\nupdated_at\030\010 \001(\0132\032.google.protobuf." + + "Timestamp\022,\n\013custom_info\030\t \001(\0132\027.google." + + "protobuf.StructB\017\n\routput_result\"Q\n\033Task" + + "ExecutionGetDataRequest\0222\n\002id\030\001 \001(\0132&.fl" + + "yteidl.core.TaskExecutionIdentifier\"q\n\034T" + + "askExecutionGetDataResponse\022\'\n\006inputs\030\001 " + + "\001(\0132\027.flyteidl.admin.UrlBlob\022(\n\007outputs\030" + + "\002 \001(\0132\027.flyteidl.admin.UrlBlobB3Z1github" + + ".com/lyft/flyteidl/gen/pb-go/flyteidl/ad" + + "minb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor, + new java.lang.String[] { "NodeExecutionId", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_TaskExecution_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecution_descriptor, + new java.lang.String[] { "Id", "InputUri", "Closure", "IsParent", }); + internal_static_flyteidl_admin_TaskExecutionList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionList_descriptor, + new java.lang.String[] { "TaskExecutions", "Token", }); + internal_static_flyteidl_admin_TaskExecutionClosure_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionClosure_descriptor, + new java.lang.String[] { "OutputUri", "Error", "Phase", "Logs", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "CustomInfo", "OutputResult", }); + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor, + new java.lang.String[] { "Inputs", "Outputs", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/TaskOuterClass.java b/gen/pb-java/flyteidl/admin/TaskOuterClass.java new file mode 100644 index 000000000..00cb436f8 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/TaskOuterClass.java @@ -0,0 +1,5102 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task.proto + +package flyteidl.admin; + +public final class TaskOuterClass { + private TaskOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface TaskCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + flyteidl.admin.TaskOuterClass.TaskSpec getSpec(); + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Represents a request structure to create a revision of a task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateRequest} + */ + public static final class TaskCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateRequest) + TaskCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskCreateRequest.newBuilder() to construct. + private TaskCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskCreateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskCreateRequest( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.TaskOuterClass.TaskSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.TaskOuterClass.TaskSpec spec_; + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { + return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + 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 (spec_ != null) { + output.writeMessage(2, getSpec()); + } + 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 (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + 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 flyteidl.admin.TaskOuterClass.TaskCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskCreateRequest other = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) 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(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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 flyteidl.admin.TaskOuterClass.TaskCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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 flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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(flyteidl.admin.TaskOuterClass.TaskCreateRequest 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; + } + /** + *
+     * Represents a request structure to create a revision of a task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateRequest) + flyteidl.admin.TaskOuterClass.TaskCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskCreateRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateRequest build() { + flyteidl.admin.TaskOuterClass.TaskCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateRequest buildPartial() { + flyteidl.admin.TaskOuterClass.TaskCreateRequest result = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.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 flyteidl.admin.TaskOuterClass.TaskCreateRequest) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateRequest other) { + if (other == flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + 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 { + flyteidl.admin.TaskOuterClass.TaskCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.TaskOuterClass.TaskSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> specBuilder_; + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.TaskOuterClass.TaskSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.TaskOuterClass.TaskSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @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:flyteidl.admin.TaskCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateRequest) + private static final flyteidl.admin.TaskOuterClass.TaskCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(); + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskCreateRequest(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 flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Represents a response structure if task creation succeeds.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateResponse} + */ + public static final class TaskCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateResponse) + TaskCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskCreateResponse.newBuilder() to construct. + private TaskCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskCreateResponse( + 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; + 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskCreateResponse other = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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(flyteidl.admin.TaskOuterClass.TaskCreateResponse 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; + } + /** + *
+     * Represents a response structure if task creation succeeds.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateResponse) + flyteidl.admin.TaskOuterClass.TaskCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskCreateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateResponse build() { + flyteidl.admin.TaskOuterClass.TaskCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateResponse buildPartial() { + flyteidl.admin.TaskOuterClass.TaskCreateResponse result = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(this); + 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 flyteidl.admin.TaskOuterClass.TaskCreateResponse) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateResponse other) { + if (other == flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.TaskOuterClass.TaskCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.TaskCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateResponse) + private static final flyteidl.admin.TaskOuterClass.TaskCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(); + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskCreateResponse(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 flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Task) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + boolean hasClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + flyteidl.admin.TaskOuterClass.TaskClosure getClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
+   * arranged to process workflow inputs and produce a deterministic set of outputs.
+   * Tasks can come in many varieties tuned for specialized behavior. 
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Task} + */ + public static final class Task extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Task) + TaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use Task.newBuilder() to construct. + private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Task() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Task( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.TaskOuterClass.TaskClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int CLOSURE_FIELD_NUMBER = 2; + private flyteidl.admin.TaskOuterClass.TaskClosure closure_; + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { + return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + 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 (closure_ != null) { + output.writeMessage(2, getClosure()); + } + 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 (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getClosure()); + } + 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 flyteidl.admin.TaskOuterClass.Task)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.Task other = (flyteidl.admin.TaskOuterClass.Task) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) 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(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.Task 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 flyteidl.admin.TaskOuterClass.Task parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.Task 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 flyteidl.admin.TaskOuterClass.Task parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.Task 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(flyteidl.admin.TaskOuterClass.Task 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; + } + /** + *
+     * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
+     * arranged to process workflow inputs and produce a deterministic set of outputs.
+     * Tasks can come in many varieties tuned for specialized behavior. 
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Task} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Task) + flyteidl.admin.TaskOuterClass.TaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.Task.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.Task getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.Task.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.Task build() { + flyteidl.admin.TaskOuterClass.Task result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.Task buildPartial() { + flyteidl.admin.TaskOuterClass.Task result = new flyteidl.admin.TaskOuterClass.Task(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.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 flyteidl.admin.TaskOuterClass.Task) { + return mergeFrom((flyteidl.admin.TaskOuterClass.Task)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.Task other) { + if (other == flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + 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 { + flyteidl.admin.TaskOuterClass.Task parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.Task) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.TaskOuterClass.TaskClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> closureBuilder_; + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder setClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder setClosure( + flyteidl.admin.TaskOuterClass.TaskClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder mergeClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.TaskOuterClass.TaskClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + @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:flyteidl.admin.Task) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Task) + private static final flyteidl.admin.TaskOuterClass.Task DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.Task(); + } + + public static flyteidl.admin.TaskOuterClass.Task getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Task parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Task(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 flyteidl.admin.TaskOuterClass.Task getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + java.util.List + getTasksList(); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + flyteidl.admin.TaskOuterClass.Task getTasks(int index); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + int getTasksCount(); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of tasks returned from the admin.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskList} + */ + public static final class TaskList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskList) + TaskListOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskList.newBuilder() to construct. + private TaskList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskList() { + tasks_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskList( + 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)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tasks_.add( + input.readMessage(flyteidl.admin.TaskOuterClass.Task.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); + } + + private int bitField0_; + public static final int TASKS_FIELD_NUMBER = 1; + private java.util.List tasks_; + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( + int index) { + return tasks_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(1, tasks_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tasks_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.TaskOuterClass.TaskList)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskList other = (flyteidl.admin.TaskOuterClass.TaskList) obj; + + if (!getTasksList() + .equals(other.getTasksList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskList 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 flyteidl.admin.TaskOuterClass.TaskList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskList 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 flyteidl.admin.TaskOuterClass.TaskList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskList 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(flyteidl.admin.TaskOuterClass.TaskList 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; + } + /** + *
+     * Represents a list of tasks returned from the admin.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskList) + flyteidl.admin.TaskOuterClass.TaskListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTasksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tasksBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskList getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskList build() { + flyteidl.admin.TaskOuterClass.TaskList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskList buildPartial() { + flyteidl.admin.TaskOuterClass.TaskList result = new flyteidl.admin.TaskOuterClass.TaskList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.TaskOuterClass.TaskList) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskList other) { + if (other == flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance()) return this; + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000001); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.TaskOuterClass.TaskList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> tasksBuilder_; + + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder setTasks( + int index, flyteidl.admin.TaskOuterClass.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder setTasks( + int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks(flyteidl.admin.TaskOuterClass.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks( + int index, flyteidl.admin.TaskOuterClass.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks( + flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks( + int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder>( + tasks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.TaskList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskList) + private static final flyteidl.admin.TaskOuterClass.TaskList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskList(); + } + + public static flyteidl.admin.TaskOuterClass.TaskList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskList(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 flyteidl.admin.TaskOuterClass.TaskList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplate getTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); + } + /** + *
+   * Represents a structure that encapsulates the user-configured specification of the task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskSpec} + */ + public static final class TaskSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskSpec) + TaskSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskSpec.newBuilder() to construct. + private TaskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskSpec( + 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: { + flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); + } + + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Tasks.TaskTemplate template_; + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + 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 (template_ != null) { + output.writeMessage(1, getTemplate()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + 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 flyteidl.admin.TaskOuterClass.TaskSpec)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskSpec other = (flyteidl.admin.TaskOuterClass.TaskSpec) obj; + + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) 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 (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec 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 flyteidl.admin.TaskOuterClass.TaskSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec 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 flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec 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(flyteidl.admin.TaskOuterClass.TaskSpec 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; + } + /** + *
+     * Represents a structure that encapsulates the user-configured specification of the task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskSpec) + flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskSpec.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 (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskSpec build() { + flyteidl.admin.TaskOuterClass.TaskSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskSpec buildPartial() { + flyteidl.admin.TaskOuterClass.TaskSpec result = new flyteidl.admin.TaskOuterClass.TaskSpec(this); + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.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 flyteidl.admin.TaskOuterClass.TaskSpec) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskSpec other) { + if (other == flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + 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 { + flyteidl.admin.TaskOuterClass.TaskSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Tasks.TaskTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + @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:flyteidl.admin.TaskSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskSpec) + private static final flyteidl.admin.TaskOuterClass.TaskSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskSpec(); + } + + public static flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskSpec(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 flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + boolean hasCompiledTask(); + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + flyteidl.core.Compiler.CompiledTask getCompiledTask(); + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder(); + + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + } + /** + *
+   * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
+   * and task metadata.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskClosure} + */ + public static final class TaskClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskClosure) + TaskClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskClosure.newBuilder() to construct. + private TaskClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskClosure() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskClosure( + 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: { + flyteidl.core.Compiler.CompiledTask.Builder subBuilder = null; + if (compiledTask_ != null) { + subBuilder = compiledTask_.toBuilder(); + } + compiledTask_ = input.readMessage(flyteidl.core.Compiler.CompiledTask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compiledTask_); + compiledTask_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + 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; + } + 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 flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); + } + + public static final int COMPILED_TASK_FIELD_NUMBER = 1; + private flyteidl.core.Compiler.CompiledTask compiledTask_; + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public boolean hasCompiledTask() { + return compiledTask_ != null; + } + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTask getCompiledTask() { + return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; + } + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { + return getCompiledTask(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + 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 (compiledTask_ != null) { + output.writeMessage(1, getCompiledTask()); + } + if (createdAt_ != null) { + output.writeMessage(2, getCreatedAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (compiledTask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCompiledTask()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreatedAt()); + } + 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 flyteidl.admin.TaskOuterClass.TaskClosure)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskClosure other = (flyteidl.admin.TaskOuterClass.TaskClosure) obj; + + if (hasCompiledTask() != other.hasCompiledTask()) return false; + if (hasCompiledTask()) { + if (!getCompiledTask() + .equals(other.getCompiledTask())) return false; + } + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) 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 (hasCompiledTask()) { + hash = (37 * hash) + COMPILED_TASK_FIELD_NUMBER; + hash = (53 * hash) + getCompiledTask().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure 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 flyteidl.admin.TaskOuterClass.TaskClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure 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 flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure 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(flyteidl.admin.TaskOuterClass.TaskClosure 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; + } + /** + *
+     * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
+     * and task metadata.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskClosure) + flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskClosure.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 (compiledTaskBuilder_ == null) { + compiledTask_ = null; + } else { + compiledTask_ = null; + compiledTaskBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskClosure build() { + flyteidl.admin.TaskOuterClass.TaskClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskClosure buildPartial() { + flyteidl.admin.TaskOuterClass.TaskClosure result = new flyteidl.admin.TaskOuterClass.TaskClosure(this); + if (compiledTaskBuilder_ == null) { + result.compiledTask_ = compiledTask_; + } else { + result.compiledTask_ = compiledTaskBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.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 flyteidl.admin.TaskOuterClass.TaskClosure) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskClosure other) { + if (other == flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance()) return this; + if (other.hasCompiledTask()) { + mergeCompiledTask(other.getCompiledTask()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + 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 { + flyteidl.admin.TaskOuterClass.TaskClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Compiler.CompiledTask compiledTask_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> compiledTaskBuilder_; + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public boolean hasCompiledTask() { + return compiledTaskBuilder_ != null || compiledTask_ != null; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTask getCompiledTask() { + if (compiledTaskBuilder_ == null) { + return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; + } else { + return compiledTaskBuilder_.getMessage(); + } + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder setCompiledTask(flyteidl.core.Compiler.CompiledTask value) { + if (compiledTaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compiledTask_ = value; + onChanged(); + } else { + compiledTaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder setCompiledTask( + flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (compiledTaskBuilder_ == null) { + compiledTask_ = builderForValue.build(); + onChanged(); + } else { + compiledTaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder mergeCompiledTask(flyteidl.core.Compiler.CompiledTask value) { + if (compiledTaskBuilder_ == null) { + if (compiledTask_ != null) { + compiledTask_ = + flyteidl.core.Compiler.CompiledTask.newBuilder(compiledTask_).mergeFrom(value).buildPartial(); + } else { + compiledTask_ = value; + } + onChanged(); + } else { + compiledTaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder clearCompiledTask() { + if (compiledTaskBuilder_ == null) { + compiledTask_ = null; + onChanged(); + } else { + compiledTask_ = null; + compiledTaskBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTask.Builder getCompiledTaskBuilder() { + + onChanged(); + return getCompiledTaskFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { + if (compiledTaskBuilder_ != null) { + return compiledTaskBuilder_.getMessageOrBuilder(); + } else { + return compiledTask_ == null ? + flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; + } + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> + getCompiledTaskFieldBuilder() { + if (compiledTaskBuilder_ == null) { + compiledTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( + getCompiledTask(), + getParentForChildren(), + isClean()); + compiledTask_ = null; + } + return compiledTaskBuilder_; + } + + 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_; + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + 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; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + 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; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + 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_; + } + @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:flyteidl.admin.TaskClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskClosure) + private static final flyteidl.admin.TaskOuterClass.TaskClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskClosure(); + } + + public static flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskClosure(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 flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Task_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Task_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskClosure_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\031flyteidl/admin/task.proto\022\016flyteidl.ad" + + "min\032\036flyteidl/core/identifier.proto\032\031fly" + + "teidl/core/tasks.proto\032\034flyteidl/core/co" + + "mpiler.proto\032\037google/protobuf/timestamp." + + "proto\"b\n\021TaskCreateRequest\022%\n\002id\030\001 \001(\0132\031" + + ".flyteidl.core.Identifier\022&\n\004spec\030\002 \001(\0132" + + "\030.flyteidl.admin.TaskSpec\"\024\n\022TaskCreateR" + + "esponse\"[\n\004Task\022%\n\002id\030\001 \001(\0132\031.flyteidl.c" + + "ore.Identifier\022,\n\007closure\030\002 \001(\0132\033.flytei" + + "dl.admin.TaskClosure\">\n\010TaskList\022#\n\005task" + + "s\030\001 \003(\0132\024.flyteidl.admin.Task\022\r\n\005token\030\002" + + " \001(\t\"9\n\010TaskSpec\022-\n\010template\030\001 \001(\0132\033.fly" + + "teidl.core.TaskTemplate\"q\n\013TaskClosure\0222" + + "\n\rcompiled_task\030\001 \001(\0132\033.flyteidl.core.Co" + + "mpiledTask\022.\n\ncreated_at\030\002 \001(\0132\032.google." + + "protobuf.TimestampB3Z1github.com/lyft/fl" + + "yteidl/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + flyteidl.core.Compiler.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_TaskCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskCreateRequest_descriptor, + new java.lang.String[] { "Id", "Spec", }); + internal_static_flyteidl_admin_TaskCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskCreateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_Task_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_Task_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Task_descriptor, + new java.lang.String[] { "Id", "Closure", }); + internal_static_flyteidl_admin_TaskList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_TaskList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskList_descriptor, + new java.lang.String[] { "Tasks", "Token", }); + internal_static_flyteidl_admin_TaskSpec_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskSpec_descriptor, + new java.lang.String[] { "Template", }); + internal_static_flyteidl_admin_TaskClosure_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskClosure_descriptor, + new java.lang.String[] { "CompiledTask", "CreatedAt", }); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.core.Compiler.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java b/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java new file mode 100644 index 000000000..0d6544885 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java @@ -0,0 +1,5375 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/workflow_attributes.proto + +package flyteidl.admin; + +public final class WorkflowAttributesOuterClass { + private WorkflowAttributesOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Workflow name for which this set of attributes will be applied.
+     * 
+ * + * string workflow = 3; + */ + java.lang.String getWorkflow(); + /** + *
+     * Workflow name for which this set of attributes will be applied.
+     * 
+ * + * string workflow = 3; + */ + com.google.protobuf.ByteString + getWorkflowBytes(); + + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + boolean hasMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.WorkflowAttributes} + */ + public static final class WorkflowAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributes) + WorkflowAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributes.newBuilder() to construct. + private WorkflowAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributes() { + project_ = ""; + domain_ = ""; + workflow_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributes( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + workflow_ = s; + break; + } + case 34: { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; + if (matchingAttributes_ != null) { + subBuilder = matchingAttributes_.toBuilder(); + } + matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(matchingAttributes_); + matchingAttributes_ = 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_FIELD_NUMBER = 3; + private volatile java.lang.Object workflow_; + /** + *
+     * Workflow name for which this set of attributes will be applied.
+     * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + 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(); + workflow_ = s; + return s; + } + } + /** + *
+     * Workflow name for which this set of attributes will be applied.
+     * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 4; + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public boolean hasMatchingAttributes() { + return matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + return getMatchingAttributes(); + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); + } + if (matchingAttributes_ != null) { + output.writeMessage(4, getMatchingAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); + } + if (matchingAttributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMatchingAttributes()); + } + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; + if (hasMatchingAttributes()) { + if (!getMatchingAttributes() + .equals(other.getMatchingAttributes())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + if (hasMatchingAttributes()) { + hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getMatchingAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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 flyteidl.admin.WorkflowAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributes) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.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(); + project_ = ""; + + domain_ = ""; + + workflow_ = ""; + + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes(this); + result.project_ = project_; + result.domain_ = domain_; + result.workflow_ = workflow_; + if (matchingAttributesBuilder_ == null) { + result.matchingAttributes_ = matchingAttributes_; + } else { + result.matchingAttributes_ = matchingAttributesBuilder_.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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getWorkflow().isEmpty()) { + workflow_ = other.workflow_; + onChanged(); + } + if (other.hasMatchingAttributes()) { + mergeMatchingAttributes(other.getMatchingAttributes()); + } + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object workflow_ = ""; + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflow( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflow_ = value; + onChanged(); + return this; + } + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public Builder clearWorkflow() { + + workflow_ = getDefaultInstance().getWorkflow(); + onChanged(); + return this; + } + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflow_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public boolean hasMatchingAttributes() { + return matchingAttributesBuilder_ != null || matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } else { + return matchingAttributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + matchingAttributes_ = value; + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public Builder setMatchingAttributes( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = builderForValue.build(); + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (matchingAttributes_ != null) { + matchingAttributes_ = + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); + } else { + matchingAttributes_ = value; + } + onChanged(); + } else { + matchingAttributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public Builder clearMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + onChanged(); + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { + + onChanged(); + return getMatchingAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + if (matchingAttributesBuilder_ != null) { + return matchingAttributesBuilder_.getMessageOrBuilder(); + } else { + return matchingAttributes_ == null ? + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> + getMatchingAttributesFieldBuilder() { + if (matchingAttributesBuilder_ == null) { + matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( + getMatchingAttributes(), + getParentForChildren(), + isClean()); + matchingAttributes_ = null; + } + return matchingAttributesBuilder_; + } + @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:flyteidl.admin.WorkflowAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributes) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributes(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes(); + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder(); + } + /** + *
+   * Sets custom attributes for a project, domain and workflow combination.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateRequest} + */ + public static final class WorkflowAttributesUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesUpdateRequest) + WorkflowAttributesUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesUpdateRequest.newBuilder() to construct. + private WorkflowAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesUpdateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesUpdateRequest( + 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: { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + 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 (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) 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 (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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; + } + /** + *
+     * Sets custom attributes for a project, domain and workflow combination.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesUpdateRequest) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.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 (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @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:flyteidl.admin.WorkflowAttributesUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateRequest) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesUpdateRequest(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateResponse} + */ + public static final class WorkflowAttributesUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesUpdateResponse) + WorkflowAttributesUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesUpdateResponse.newBuilder() to construct. + private WorkflowAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesUpdateResponse( + 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; + 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesUpdateResponse) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse(this); + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.WorkflowAttributesUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateResponse) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesUpdateResponse(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + java.lang.String getWorkflow(); + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + com.google.protobuf.ByteString + getWorkflowBytes(); + + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + int getResourceTypeValue(); + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetRequest} + */ + public static final class WorkflowAttributesGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesGetRequest) + WorkflowAttributesGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesGetRequest.newBuilder() to construct. + private WorkflowAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesGetRequest() { + project_ = ""; + domain_ = ""; + workflow_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesGetRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + workflow_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_FIELD_NUMBER = 3; + private volatile java.lang.Object workflow_; + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + 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(); + workflow_ = s; + return s; + } + } + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 4; + private int resourceType_; + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(4, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, resourceType_); + } + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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 flyteidl.admin.WorkflowAttributesGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesGetRequest) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.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(); + project_ = ""; + + domain_ = ""; + + workflow_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.workflow_ = workflow_; + result.resourceType_ = resourceType_; + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getWorkflow().isEmpty()) { + workflow_ = other.workflow_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object workflow_ = ""; + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflow( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflow_ = value; + onChanged(); + return this; + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public Builder clearWorkflow() { + + workflow_ = getDefaultInstance().getWorkflow(); + onChanged(); + return this; + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflow_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + 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:flyteidl.admin.WorkflowAttributesGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetRequest) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesGetRequest(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesGetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesGetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes(); + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetResponse} + */ + public static final class WorkflowAttributesGetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesGetResponse) + WorkflowAttributesGetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesGetResponse.newBuilder() to construct. + private WorkflowAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesGetResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesGetResponse( + 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: { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + 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 (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) 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 (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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 flyteidl.admin.WorkflowAttributesGetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesGetResponse) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.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 (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @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:flyteidl.admin.WorkflowAttributesGetResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetResponse) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesGetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesGetResponse(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesDeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesDeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + java.lang.String getWorkflow(); + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + com.google.protobuf.ByteString + getWorkflowBytes(); + + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + int getResourceTypeValue(); + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteRequest} + */ + public static final class WorkflowAttributesDeleteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesDeleteRequest) + WorkflowAttributesDeleteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesDeleteRequest.newBuilder() to construct. + private WorkflowAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesDeleteRequest() { + project_ = ""; + domain_ = ""; + workflow_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesDeleteRequest( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + workflow_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id which this set of attributes references.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_FIELD_NUMBER = 3; + private volatile java.lang.Object workflow_; + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + 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(); + workflow_ = s; + return s; + } + } + /** + *
+     * Workflow name which this set of attributes references.
+     * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 4; + private int resourceType_; + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(4, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, resourceType_); + } + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + if (resourceType_ != other.resourceType_) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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 flyteidl.admin.WorkflowAttributesDeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesDeleteRequest) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.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(); + project_ = ""; + + domain_ = ""; + + workflow_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.workflow_ = workflow_; + result.resourceType_ = resourceType_; + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getWorkflow().isEmpty()) { + workflow_ = other.workflow_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object workflow_ = ""; + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflow( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflow_ = value; + onChanged(); + return this; + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public Builder clearWorkflow() { + + workflow_ = getDefaultInstance().getWorkflow(); + onChanged(); + return this; + } + /** + *
+       * Workflow name which this set of attributes references.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflow_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + 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:flyteidl.admin.WorkflowAttributesDeleteRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteRequest) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesDeleteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesDeleteRequest(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesDeleteResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesDeleteResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteResponse} + */ + public static final class WorkflowAttributesDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesDeleteResponse) + WorkflowAttributesDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesDeleteResponse.newBuilder() to construct. + private WorkflowAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesDeleteResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesDeleteResponse( + 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; + 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 flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesDeleteResponse) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse(this); + 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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.WorkflowAttributesDeleteResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteResponse) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesDeleteResponse(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 flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_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(flyteidl/admin/workflow_attributes.pro" + + "to\022\016flyteidl.admin\032\'flyteidl/admin/match" + + "able_resource.proto\"\210\001\n\022WorkflowAttribut" + + "es\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010w" + + "orkflow\030\003 \001(\t\022?\n\023matching_attributes\030\004 \001" + + "(\0132\".flyteidl.admin.MatchingAttributes\"Y" + + "\n\037WorkflowAttributesUpdateRequest\0226\n\natt" + + "ributes\030\001 \001(\0132\".flyteidl.admin.WorkflowA" + + "ttributes\"\"\n WorkflowAttributesUpdateRes" + + "ponse\"\213\001\n\034WorkflowAttributesGetRequest\022\017" + + "\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workf" + + "low\030\003 \001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyte" + + "idl.admin.MatchableResource\"W\n\035WorkflowA" + + "ttributesGetResponse\0226\n\nattributes\030\001 \001(\013" + + "2\".flyteidl.admin.WorkflowAttributes\"\216\001\n" + + "\037WorkflowAttributesDeleteRequest\022\017\n\007proj" + + "ect\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workflow\030\003 " + + "\001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyteidl.ad" + + "min.MatchableResource\"\"\n WorkflowAttribu" + + "tesDeleteResponseB3Z1github.com/lyft/fly" + + "teidl/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_WorkflowAttributes_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributes_descriptor, + new java.lang.String[] { "Project", "Domain", "Workflow", "MatchingAttributes", }); + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Workflow", "ResourceType", }); + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Workflow", "ResourceType", }); + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor, + new java.lang.String[] { }); + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java b/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java new file mode 100644 index 000000000..d52dfb944 --- /dev/null +++ b/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java @@ -0,0 +1,5646 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/workflow.proto + +package flyteidl.admin; + +public final class WorkflowOuterClass { + private WorkflowOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec(); + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Represents a request structure to create a revision of a workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} + */ + public static final class WorkflowCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateRequest) + WorkflowCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowCreateRequest.newBuilder() to construct. + private WorkflowCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowCreateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowCreateRequest( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_; + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { + return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + 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 (spec_ != null) { + output.writeMessage(2, getSpec()); + } + 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 (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) 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(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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(flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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; + } + /** + *
+     * Represents a request structure to create a revision of a workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateRequest) + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest build() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + 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 { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> specBuilder_; + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @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:flyteidl.admin.WorkflowCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateRequest) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowCreateRequest(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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future. 
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} + */ + public static final class WorkflowCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateResponse) + WorkflowCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowCreateResponse.newBuilder() to construct. + private WorkflowCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowCreateResponse( + 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; + 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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(flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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; + } + /** + *
+     * Purposefully empty, may be populated in the future. 
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateResponse) + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse build() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(this); + 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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance()) return this; + 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 { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.admin.WorkflowCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateResponse) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowCreateResponse(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 flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Workflow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + boolean hasClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * Represents the workflow structure stored in the Admin
+   * A workflow is created by ordering tasks and associating outputs to inputs
+   * in order to produce a directed-acyclic execution graph.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Workflow} + */ + public static final class Workflow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Workflow) + WorkflowOrBuilder { + private static final long serialVersionUID = 0L; + // Use Workflow.newBuilder() to construct. + private Workflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Workflow() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Workflow( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int CLOSURE_FIELD_NUMBER = 2; + private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_; + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { + return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + 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 (closure_ != null) { + output.writeMessage(2, getClosure()); + } + 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 (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getClosure()); + } + 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 flyteidl.admin.WorkflowOuterClass.Workflow)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.Workflow other = (flyteidl.admin.WorkflowOuterClass.Workflow) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) 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(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow 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 flyteidl.admin.WorkflowOuterClass.Workflow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow 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 flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow 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(flyteidl.admin.WorkflowOuterClass.Workflow 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; + } + /** + *
+     * Represents the workflow structure stored in the Admin
+     * A workflow is created by ordering tasks and associating outputs to inputs
+     * in order to produce a directed-acyclic execution graph.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Workflow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Workflow) + flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.Workflow.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.Workflow build() { + flyteidl.admin.WorkflowOuterClass.Workflow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.Workflow buildPartial() { + flyteidl.admin.WorkflowOuterClass.Workflow result = new flyteidl.admin.WorkflowOuterClass.Workflow(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.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 flyteidl.admin.WorkflowOuterClass.Workflow) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.Workflow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.Workflow other) { + if (other == flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + 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 { + flyteidl.admin.WorkflowOuterClass.Workflow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.Workflow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> closureBuilder_; + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder setClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder setClosure( + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder mergeClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + @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:flyteidl.admin.Workflow) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Workflow) + private static final flyteidl.admin.WorkflowOuterClass.Workflow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.Workflow(); + } + + public static flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Workflow(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 flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + java.util.List + getWorkflowsList(); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + int getWorkflowsCount(); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + java.util.List + getWorkflowsOrBuilderList(); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of workflows returned from the admin.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowList} + */ + public static final class WorkflowList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowList) + WorkflowListOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowList.newBuilder() to construct. + private WorkflowList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowList() { + workflows_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowList( + 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)) { + workflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + workflows_.add( + input.readMessage(flyteidl.admin.WorkflowOuterClass.Workflow.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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)) { + workflows_ = java.util.Collections.unmodifiableList(workflows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); + } + + private int bitField0_; + public static final int WORKFLOWS_FIELD_NUMBER = 1; + private java.util.List workflows_; + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List getWorkflowsList() { + return workflows_; + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List + getWorkflowsOrBuilderList() { + return workflows_; + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public int getWorkflowsCount() { + return workflows_.size(); + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { + return workflows_.get(index); + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( + int index) { + return workflows_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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 { + for (int i = 0; i < workflows_.size(); i++) { + output.writeMessage(1, workflows_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < workflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workflows_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + 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 flyteidl.admin.WorkflowOuterClass.WorkflowList)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowList other = (flyteidl.admin.WorkflowOuterClass.WorkflowList) obj; + + if (!getWorkflowsList() + .equals(other.getWorkflowsList())) return false; + if (!getToken() + .equals(other.getToken())) 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 (getWorkflowsCount() > 0) { + hash = (37 * hash) + WORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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 flyteidl.admin.WorkflowOuterClass.WorkflowList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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 flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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(flyteidl.admin.WorkflowOuterClass.WorkflowList 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; + } + /** + *
+     * Represents a list of workflows returned from the admin.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowList) + flyteidl.admin.WorkflowOuterClass.WorkflowListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getWorkflowsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (workflowsBuilder_ == null) { + workflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + workflowsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowList build() { + flyteidl.admin.WorkflowOuterClass.WorkflowList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowList buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowList result = new flyteidl.admin.WorkflowOuterClass.WorkflowList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (workflowsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + workflows_ = java.util.Collections.unmodifiableList(workflows_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.workflows_ = workflows_; + } else { + result.workflows_ = workflowsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.WorkflowOuterClass.WorkflowList) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowList other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance()) return this; + if (workflowsBuilder_ == null) { + if (!other.workflows_.isEmpty()) { + if (workflows_.isEmpty()) { + workflows_ = other.workflows_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWorkflowsIsMutable(); + workflows_.addAll(other.workflows_); + } + onChanged(); + } + } else { + if (!other.workflows_.isEmpty()) { + if (workflowsBuilder_.isEmpty()) { + workflowsBuilder_.dispose(); + workflowsBuilder_ = null; + workflows_ = other.workflows_; + bitField0_ = (bitField0_ & ~0x00000001); + workflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkflowsFieldBuilder() : null; + } else { + workflowsBuilder_.addAllMessages(other.workflows_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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 { + flyteidl.admin.WorkflowOuterClass.WorkflowList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List workflows_ = + java.util.Collections.emptyList(); + private void ensureWorkflowsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + workflows_ = new java.util.ArrayList(workflows_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> workflowsBuilder_; + + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List getWorkflowsList() { + if (workflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(workflows_); + } else { + return workflowsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public int getWorkflowsCount() { + if (workflowsBuilder_ == null) { + return workflows_.size(); + } else { + return workflowsBuilder_.getCount(); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { + if (workflowsBuilder_ == null) { + return workflows_.get(index); + } else { + return workflowsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder setWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { + if (workflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowsIsMutable(); + workflows_.set(index, value); + onChanged(); + } else { + workflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder setWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.set(index, builderForValue.build()); + onChanged(); + } else { + workflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows(flyteidl.admin.WorkflowOuterClass.Workflow value) { + if (workflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowsIsMutable(); + workflows_.add(value); + onChanged(); + } else { + workflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { + if (workflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowsIsMutable(); + workflows_.add(index, value); + onChanged(); + } else { + workflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows( + flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.add(builderForValue.build()); + onChanged(); + } else { + workflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.add(index, builderForValue.build()); + onChanged(); + } else { + workflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addAllWorkflows( + java.lang.Iterable values) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workflows_); + onChanged(); + } else { + workflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder clearWorkflows() { + if (workflowsBuilder_ == null) { + workflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + workflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder removeWorkflows(int index) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.remove(index); + onChanged(); + } else { + workflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow.Builder getWorkflowsBuilder( + int index) { + return getWorkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( + int index) { + if (workflowsBuilder_ == null) { + return workflows_.get(index); } else { + return workflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List + getWorkflowsOrBuilderList() { + if (workflowsBuilder_ != null) { + return workflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workflows_); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder() { + return getWorkflowsFieldBuilder().addBuilder( + flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder( + int index) { + return getWorkflowsFieldBuilder().addBuilder( + index, flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List + getWorkflowsBuilderList() { + return getWorkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> + getWorkflowsFieldBuilder() { + if (workflowsBuilder_ == null) { + workflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder>( + workflows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + workflows_ = null; + } + return workflowsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = 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:flyteidl.admin.WorkflowList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowList) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowList(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowList(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 flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplate getTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); + + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + java.util.List + getSubWorkflowsList(); + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index); + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + int getSubWorkflowsCount(); + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + java.util.List + getSubWorkflowsOrBuilderList(); + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( + int index); + } + /** + *
+   * Represents a structure that encapsulates the specification of the workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowSpec} + */ + public static final class WorkflowSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowSpec) + WorkflowSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowSpec.newBuilder() to construct. + private WorkflowSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowSpec() { + subWorkflows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowSpec( + 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: { + flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + subWorkflows_.add( + input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.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_ & 0x00000002) != 0)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); + } + + private int bitField0_; + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.WorkflowTemplate template_; + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + public static final int SUB_WORKFLOWS_FIELD_NUMBER = 2; + private java.util.List subWorkflows_; + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + return subWorkflows_; + } + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + return subWorkflows_; + } + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + return subWorkflows_.size(); + } + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index) { + return subWorkflows_.get(index); + } + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( + int index) { + return subWorkflows_.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 (template_ != null) { + output.writeMessage(1, getTemplate()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + output.writeMessage(2, subWorkflows_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, subWorkflows_.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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowSpec other = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) obj; + + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) return false; + } + if (!getSubWorkflowsList() + .equals(other.getSubWorkflowsList())) 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 (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + if (getSubWorkflowsCount() > 0) { + hash = (37 * hash) + SUB_WORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getSubWorkflowsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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(flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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; + } + /** + *
+     * Represents a structure that encapsulates the specification of the workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowSpec) + flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSubWorkflowsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + subWorkflowsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec build() { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + if (subWorkflowsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.subWorkflows_ = subWorkflows_; + } else { + result.subWorkflows_ = subWorkflowsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowSpec other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + if (subWorkflowsBuilder_ == null) { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflows_.isEmpty()) { + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubWorkflowsIsMutable(); + subWorkflows_.addAll(other.subWorkflows_); + } + onChanged(); + } + } else { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflowsBuilder_.isEmpty()) { + subWorkflowsBuilder_.dispose(); + subWorkflowsBuilder_ = null; + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + subWorkflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubWorkflowsFieldBuilder() : null; + } else { + subWorkflowsBuilder_.addAllMessages(other.subWorkflows_); + } + } + } + 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 { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.Workflow.WorkflowTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + + private java.util.List subWorkflows_ = + java.util.Collections.emptyList(); + private void ensureSubWorkflowsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = new java.util.ArrayList(subWorkflows_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> subWorkflowsBuilder_; + + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + if (subWorkflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subWorkflows_); + } else { + return subWorkflowsBuilder_.getMessageList(); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.size(); + } else { + return subWorkflowsBuilder_.getCount(); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); + } else { + return subWorkflowsBuilder_.getMessage(index); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addSubWorkflows(flyteidl.core.Workflow.WorkflowTemplate value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addSubWorkflows( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addAllSubWorkflows( + java.lang.Iterable values) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subWorkflows_); + onChanged(); + } else { + subWorkflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder clearSubWorkflows() { + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + subWorkflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder removeSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.remove(index); + onChanged(); + } else { + subWorkflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( + int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); } else { + return subWorkflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + if (subWorkflowsBuilder_ != null) { + return subWorkflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subWorkflows_); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubWorkflowsBuilder() { + return getSubWorkflowsFieldBuilder().addBuilder( + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsBuilderList() { + return getSubWorkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getSubWorkflowsFieldBuilder() { + if (subWorkflowsBuilder_ == null) { + subWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + subWorkflows_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + subWorkflows_ = null; + } + return subWorkflowsBuilder_; + } + @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:flyteidl.admin.WorkflowSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowSpec) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowSpec(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 flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + boolean hasCompiledWorkflow(); + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow(); + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder(); + + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + } + /** + *
+   * A container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowClosure} + */ + public static final class WorkflowClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowClosure) + WorkflowClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowClosure.newBuilder() to construct. + private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowClosure() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowClosure( + 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: { + flyteidl.core.Compiler.CompiledWorkflowClosure.Builder subBuilder = null; + if (compiledWorkflow_ != null) { + subBuilder = compiledWorkflow_.toBuilder(); + } + compiledWorkflow_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflowClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compiledWorkflow_); + compiledWorkflow_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + 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; + } + 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 flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); + } + + public static final int COMPILED_WORKFLOW_FIELD_NUMBER = 1; + private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public boolean hasCompiledWorkflow() { + return compiledWorkflow_ != null; + } + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { + return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { + return getCompiledWorkflow(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + 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 (compiledWorkflow_ != null) { + output.writeMessage(1, getCompiledWorkflow()); + } + if (createdAt_ != null) { + output.writeMessage(2, getCreatedAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (compiledWorkflow_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCompiledWorkflow()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreatedAt()); + } + 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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowClosure other = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) obj; + + if (hasCompiledWorkflow() != other.hasCompiledWorkflow()) return false; + if (hasCompiledWorkflow()) { + if (!getCompiledWorkflow() + .equals(other.getCompiledWorkflow())) return false; + } + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) 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 (hasCompiledWorkflow()) { + hash = (37 * hash) + COMPILED_WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getCompiledWorkflow().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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(flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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 container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowClosure) + flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowClosure.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 (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = null; + } else { + compiledWorkflow_ = null; + compiledWorkflowBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure build() { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(this); + if (compiledWorkflowBuilder_ == null) { + result.compiledWorkflow_ = compiledWorkflow_; + } else { + result.compiledWorkflow_ = compiledWorkflowBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowClosure other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance()) return this; + if (other.hasCompiledWorkflow()) { + mergeCompiledWorkflow(other.getCompiledWorkflow()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + 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 { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> compiledWorkflowBuilder_; + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public boolean hasCompiledWorkflow() { + return compiledWorkflowBuilder_ != null || compiledWorkflow_ != null; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { + if (compiledWorkflowBuilder_ == null) { + return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } else { + return compiledWorkflowBuilder_.getMessage(); + } + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder setCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { + if (compiledWorkflowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compiledWorkflow_ = value; + onChanged(); + } else { + compiledWorkflowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder setCompiledWorkflow( + flyteidl.core.Compiler.CompiledWorkflowClosure.Builder builderForValue) { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = builderForValue.build(); + onChanged(); + } else { + compiledWorkflowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder mergeCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { + if (compiledWorkflowBuilder_ == null) { + if (compiledWorkflow_ != null) { + compiledWorkflow_ = + flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder(compiledWorkflow_).mergeFrom(value).buildPartial(); + } else { + compiledWorkflow_ = value; + } + onChanged(); + } else { + compiledWorkflowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder clearCompiledWorkflow() { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = null; + onChanged(); + } else { + compiledWorkflow_ = null; + compiledWorkflowBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure.Builder getCompiledWorkflowBuilder() { + + onChanged(); + return getCompiledWorkflowFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { + if (compiledWorkflowBuilder_ != null) { + return compiledWorkflowBuilder_.getMessageOrBuilder(); + } else { + return compiledWorkflow_ == null ? + flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> + getCompiledWorkflowFieldBuilder() { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder>( + getCompiledWorkflow(), + getParentForChildren(), + isClean()); + compiledWorkflow_ = null; + } + return compiledWorkflowBuilder_; + } + + 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_; + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + 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; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + 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; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + 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_; + } + @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:flyteidl.admin.WorkflowClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowClosure) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowClosure(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 flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Workflow_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Workflow_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowClosure_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\035flyteidl/admin/workflow.proto\022\016flyteid" + + "l.admin\032\034flyteidl/core/compiler.proto\032\036f" + + "lyteidl/core/identifier.proto\032\034flyteidl/" + + "core/workflow.proto\032\033flyteidl/admin/comm" + + "on.proto\032\037google/protobuf/timestamp.prot" + + "o\"j\n\025WorkflowCreateRequest\022%\n\002id\030\001 \001(\0132\031" + + ".flyteidl.core.Identifier\022*\n\004spec\030\002 \001(\0132" + + "\034.flyteidl.admin.WorkflowSpec\"\030\n\026Workflo" + + "wCreateResponse\"c\n\010Workflow\022%\n\002id\030\001 \001(\0132" + + "\031.flyteidl.core.Identifier\0220\n\007closure\030\002 " + + "\001(\0132\037.flyteidl.admin.WorkflowClosure\"J\n\014" + + "WorkflowList\022+\n\tworkflows\030\001 \003(\0132\030.flytei" + + "dl.admin.Workflow\022\r\n\005token\030\002 \001(\t\"y\n\014Work" + + "flowSpec\0221\n\010template\030\001 \001(\0132\037.flyteidl.co" + + "re.WorkflowTemplate\0226\n\rsub_workflows\030\002 \003" + + "(\0132\037.flyteidl.core.WorkflowTemplate\"\204\001\n\017" + + "WorkflowClosure\022A\n\021compiled_workflow\030\001 \001" + + "(\0132&.flyteidl.core.CompiledWorkflowClosu" + + "re\022.\n\ncreated_at\030\002 \001(\0132\032.google.protobuf" + + ".TimestampB3Z1github.com/lyft/flyteidl/g" + + "en/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Compiler.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Workflow.getDescriptor(), + flyteidl.admin.Common.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor, + new java.lang.String[] { "Id", "Spec", }); + internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_Workflow_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_Workflow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Workflow_descriptor, + new java.lang.String[] { "Id", "Closure", }); + internal_static_flyteidl_admin_WorkflowList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowList_descriptor, + new java.lang.String[] { "Workflows", "Token", }); + internal_static_flyteidl_admin_WorkflowSpec_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowSpec_descriptor, + new java.lang.String[] { "Template", "SubWorkflows", }); + internal_static_flyteidl_admin_WorkflowClosure_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowClosure_descriptor, + new java.lang.String[] { "CompiledWorkflow", "CreatedAt", }); + flyteidl.core.Compiler.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.admin.Common.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Compiler.java b/gen/pb-java/flyteidl/core/Compiler.java new file mode 100644 index 000000000..94d5d5990 --- /dev/null +++ b/gen/pb-java/flyteidl/core/Compiler.java @@ -0,0 +1,5243 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/compiler.proto + +package flyteidl.core; + +public final class Compiler { + private Compiler() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ConnectionSetOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ConnectionSet) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + int getDownstreamCount(); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + boolean containsDownstream( + java.lang.String key); + /** + * Use {@link #getDownstreamMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDownstream(); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + java.util.Map + getDownstreamMap(); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( + java.lang.String key); + + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + int getUpstreamCount(); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + boolean containsUpstream( + java.lang.String key); + /** + * Use {@link #getUpstreamMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getUpstream(); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + java.util.Map + getUpstreamMap(); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( + java.lang.String key); + } + /** + *
+   * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
+   * step uses this created ConnectionSet
+   * 
+ * + * Protobuf type {@code flyteidl.core.ConnectionSet} + */ + public static final class ConnectionSet extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet) + ConnectionSetOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectionSet.newBuilder() to construct. + private ConnectionSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConnectionSet() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConnectionSet( + 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 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + downstream_ = com.google.protobuf.MapField.newMapField( + DownstreamDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + downstream__ = input.readMessage( + DownstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + downstream_.getMutableMap().put( + downstream__.getKey(), downstream__.getValue()); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + upstream_ = com.google.protobuf.MapField.newMapField( + UpstreamDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + upstream__ = input.readMessage( + UpstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + upstream_.getMutableMap().put( + upstream__.getKey(), upstream__.getValue()); + 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 flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetDownstream(); + case 8: + return internalGetUpstream(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); + } + + public interface IdListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ConnectionSet.IdList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string ids = 1; + */ + java.util.List + getIdsList(); + /** + * repeated string ids = 1; + */ + int getIdsCount(); + /** + * repeated string ids = 1; + */ + java.lang.String getIds(int index); + /** + * repeated string ids = 1; + */ + com.google.protobuf.ByteString + getIdsBytes(int index); + } + /** + * Protobuf type {@code flyteidl.core.ConnectionSet.IdList} + */ + public static final class IdList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet.IdList) + IdListOrBuilder { + private static final long serialVersionUID = 0L; + // Use IdList.newBuilder() to construct. + private IdList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IdList() { + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IdList( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + ids_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + ids_.add(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)) { + ids_ = ids_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); + } + + public static final int IDS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList ids_; + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ProtocolStringList + getIdsList() { + return ids_; + } + /** + * repeated string ids = 1; + */ + public int getIdsCount() { + return ids_.size(); + } + /** + * repeated string ids = 1; + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ByteString + getIdsBytes(int index) { + return ids_.getByteString(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 < ids_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ids_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < ids_.size(); i++) { + dataSize += computeStringSizeNoTag(ids_.getRaw(i)); + } + size += dataSize; + size += 1 * getIdsList().size(); + } + 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 flyteidl.core.Compiler.ConnectionSet.IdList)) { + return super.equals(obj); + } + flyteidl.core.Compiler.ConnectionSet.IdList other = (flyteidl.core.Compiler.ConnectionSet.IdList) obj; + + if (!getIdsList() + .equals(other.getIdsList())) 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 (getIdsCount() > 0) { + hash = (37 * hash) + IDS_FIELD_NUMBER; + hash = (53 * hash) + getIdsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList 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 flyteidl.core.Compiler.ConnectionSet.IdList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList 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 flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList 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(flyteidl.core.Compiler.ConnectionSet.IdList 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 flyteidl.core.ConnectionSet.IdList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet.IdList) + flyteidl.core.Compiler.ConnectionSet.IdListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); + } + + // Construct using flyteidl.core.Compiler.ConnectionSet.IdList.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(); + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { + return flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet.IdList build() { + flyteidl.core.Compiler.ConnectionSet.IdList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet.IdList buildPartial() { + flyteidl.core.Compiler.ConnectionSet.IdList result = new flyteidl.core.Compiler.ConnectionSet.IdList(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + ids_ = ids_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ids_ = ids_; + 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 flyteidl.core.Compiler.ConnectionSet.IdList) { + return mergeFrom((flyteidl.core.Compiler.ConnectionSet.IdList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet.IdList other) { + if (other == flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()) return this; + if (!other.ids_.isEmpty()) { + if (ids_.isEmpty()) { + ids_ = other.ids_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIdsIsMutable(); + ids_.addAll(other.ids_); + } + 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 { + flyteidl.core.Compiler.ConnectionSet.IdList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.ConnectionSet.IdList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ids_ = new com.google.protobuf.LazyStringArrayList(ids_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ProtocolStringList + getIdsList() { + return ids_.getUnmodifiableView(); + } + /** + * repeated string ids = 1; + */ + public int getIdsCount() { + return ids_.size(); + } + /** + * repeated string ids = 1; + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ByteString + getIdsBytes(int index) { + return ids_.getByteString(index); + } + /** + * repeated string ids = 1; + */ + public Builder setIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder addIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.add(value); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder addAllIds( + java.lang.Iterable values) { + ensureIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ids_); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder clearIds() { + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder addIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIdsIsMutable(); + ids_.add(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:flyteidl.core.ConnectionSet.IdList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet.IdList) + private static final flyteidl.core.Compiler.ConnectionSet.IdList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet.IdList(); + } + + public static flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IdList(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 flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int DOWNSTREAM_FIELD_NUMBER = 7; + private static final class DownstreamDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; + private com.google.protobuf.MapField + internalGetDownstream() { + if (downstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DownstreamDefaultEntryHolder.defaultEntry); + } + return downstream_; + } + + public int getDownstreamCount() { + return internalGetDownstream().getMap().size(); + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public boolean containsDownstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetDownstream().getMap().containsKey(key); + } + /** + * Use {@link #getDownstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getDownstream() { + return getDownstreamMap(); + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public java.util.Map getDownstreamMap() { + return internalGetDownstream().getMap(); + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UPSTREAM_FIELD_NUMBER = 8; + private static final class UpstreamDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; + private com.google.protobuf.MapField + internalGetUpstream() { + if (upstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UpstreamDefaultEntryHolder.defaultEntry); + } + return upstream_; + } + + public int getUpstreamCount() { + return internalGetUpstream().getMap().size(); + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public boolean containsUpstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetUpstream().getMap().containsKey(key); + } + /** + * Use {@link #getUpstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getUpstream() { + return getUpstreamMap(); + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public java.util.Map getUpstreamMap() { + return internalGetUpstream().getMap(); + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetDownstream(), + DownstreamDefaultEntryHolder.defaultEntry, + 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUpstream(), + UpstreamDefaultEntryHolder.defaultEntry, + 8); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetDownstream().getMap().entrySet()) { + com.google.protobuf.MapEntry + downstream__ = DownstreamDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, downstream__); + } + for (java.util.Map.Entry entry + : internalGetUpstream().getMap().entrySet()) { + com.google.protobuf.MapEntry + upstream__ = UpstreamDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, upstream__); + } + 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 flyteidl.core.Compiler.ConnectionSet)) { + return super.equals(obj); + } + flyteidl.core.Compiler.ConnectionSet other = (flyteidl.core.Compiler.ConnectionSet) obj; + + if (!internalGetDownstream().equals( + other.internalGetDownstream())) return false; + if (!internalGetUpstream().equals( + other.internalGetUpstream())) 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 (!internalGetDownstream().getMap().isEmpty()) { + hash = (37 * hash) + DOWNSTREAM_FIELD_NUMBER; + hash = (53 * hash) + internalGetDownstream().hashCode(); + } + if (!internalGetUpstream().getMap().isEmpty()) { + hash = (37 * hash) + UPSTREAM_FIELD_NUMBER; + hash = (53 * hash) + internalGetUpstream().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet 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 flyteidl.core.Compiler.ConnectionSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet 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 flyteidl.core.Compiler.ConnectionSet parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet 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(flyteidl.core.Compiler.ConnectionSet 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; + } + /** + *
+     * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
+     * step uses this created ConnectionSet
+     * 
+ * + * Protobuf type {@code flyteidl.core.ConnectionSet} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet) + flyteidl.core.Compiler.ConnectionSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetDownstream(); + case 8: + return internalGetUpstream(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 7: + return internalGetMutableDownstream(); + case 8: + return internalGetMutableUpstream(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); + } + + // Construct using flyteidl.core.Compiler.ConnectionSet.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(); + internalGetMutableDownstream().clear(); + internalGetMutableUpstream().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet getDefaultInstanceForType() { + return flyteidl.core.Compiler.ConnectionSet.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet build() { + flyteidl.core.Compiler.ConnectionSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet buildPartial() { + flyteidl.core.Compiler.ConnectionSet result = new flyteidl.core.Compiler.ConnectionSet(this); + int from_bitField0_ = bitField0_; + result.downstream_ = internalGetDownstream(); + result.downstream_.makeImmutable(); + result.upstream_ = internalGetUpstream(); + result.upstream_.makeImmutable(); + 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 flyteidl.core.Compiler.ConnectionSet) { + return mergeFrom((flyteidl.core.Compiler.ConnectionSet)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet other) { + if (other == flyteidl.core.Compiler.ConnectionSet.getDefaultInstance()) return this; + internalGetMutableDownstream().mergeFrom( + other.internalGetDownstream()); + internalGetMutableUpstream().mergeFrom( + other.internalGetUpstream()); + 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 { + flyteidl.core.Compiler.ConnectionSet parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.ConnectionSet) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; + private com.google.protobuf.MapField + internalGetDownstream() { + if (downstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DownstreamDefaultEntryHolder.defaultEntry); + } + return downstream_; + } + private com.google.protobuf.MapField + internalGetMutableDownstream() { + onChanged();; + if (downstream_ == null) { + downstream_ = com.google.protobuf.MapField.newMapField( + DownstreamDefaultEntryHolder.defaultEntry); + } + if (!downstream_.isMutable()) { + downstream_ = downstream_.copy(); + } + return downstream_; + } + + public int getDownstreamCount() { + return internalGetDownstream().getMap().size(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public boolean containsDownstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetDownstream().getMap().containsKey(key); + } + /** + * Use {@link #getDownstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getDownstream() { + return getDownstreamMap(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public java.util.Map getDownstreamMap() { + return internalGetDownstream().getMap(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDownstream() { + internalGetMutableDownstream().getMutableMap() + .clear(); + return this; + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public Builder removeDownstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableDownstream().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableDownstream() { + return internalGetMutableDownstream().getMutableMap(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + public Builder putDownstream( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableDownstream().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public Builder putAllDownstream( + java.util.Map values) { + internalGetMutableDownstream().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; + private com.google.protobuf.MapField + internalGetUpstream() { + if (upstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UpstreamDefaultEntryHolder.defaultEntry); + } + return upstream_; + } + private com.google.protobuf.MapField + internalGetMutableUpstream() { + onChanged();; + if (upstream_ == null) { + upstream_ = com.google.protobuf.MapField.newMapField( + UpstreamDefaultEntryHolder.defaultEntry); + } + if (!upstream_.isMutable()) { + upstream_ = upstream_.copy(); + } + return upstream_; + } + + public int getUpstreamCount() { + return internalGetUpstream().getMap().size(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public boolean containsUpstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetUpstream().getMap().containsKey(key); + } + /** + * Use {@link #getUpstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getUpstream() { + return getUpstreamMap(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public java.util.Map getUpstreamMap() { + return internalGetUpstream().getMap(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearUpstream() { + internalGetMutableUpstream().getMutableMap() + .clear(); + return this; + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public Builder removeUpstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableUpstream().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableUpstream() { + return internalGetMutableUpstream().getMutableMap(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + public Builder putUpstream( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableUpstream().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public Builder putAllUpstream( + java.util.Map values) { + internalGetMutableUpstream().getMutableMap() + .putAll(values); + 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:flyteidl.core.ConnectionSet) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet) + private static final flyteidl.core.Compiler.ConnectionSet DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet(); + } + + public static flyteidl.core.Compiler.ConnectionSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectionSet(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 flyteidl.core.Compiler.ConnectionSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompiledWorkflowOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplate getTemplate(); + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); + + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + boolean hasConnections(); + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + flyteidl.core.Compiler.ConnectionSet getConnections(); + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder(); + } + /** + *
+   * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
+   * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflow} + */ + public static final class CompiledWorkflow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflow) + CompiledWorkflowOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompiledWorkflow.newBuilder() to construct. + private CompiledWorkflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompiledWorkflow() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompiledWorkflow( + 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: { + flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Compiler.ConnectionSet.Builder subBuilder = null; + if (connections_ != null) { + subBuilder = connections_.toBuilder(); + } + connections_ = input.readMessage(flyteidl.core.Compiler.ConnectionSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connections_); + connections_ = 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 flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); + } + + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.WorkflowTemplate template_; + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + public static final int CONNECTIONS_FIELD_NUMBER = 2; + private flyteidl.core.Compiler.ConnectionSet connections_; + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public boolean hasConnections() { + return connections_ != null; + } + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSet getConnections() { + return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; + } + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { + return getConnections(); + } + + 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 (template_ != null) { + output.writeMessage(1, getTemplate()); + } + if (connections_ != null) { + output.writeMessage(2, getConnections()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + if (connections_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConnections()); + } + 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 flyteidl.core.Compiler.CompiledWorkflow)) { + return super.equals(obj); + } + flyteidl.core.Compiler.CompiledWorkflow other = (flyteidl.core.Compiler.CompiledWorkflow) obj; + + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) return false; + } + if (hasConnections() != other.hasConnections()) return false; + if (hasConnections()) { + if (!getConnections() + .equals(other.getConnections())) 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 (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + if (hasConnections()) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnections().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflow 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 flyteidl.core.Compiler.CompiledWorkflow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflow 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 flyteidl.core.Compiler.CompiledWorkflow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflow 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(flyteidl.core.Compiler.CompiledWorkflow 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; + } + /** + *
+     * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
+     * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflow) + flyteidl.core.Compiler.CompiledWorkflowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); + } + + // Construct using flyteidl.core.Compiler.CompiledWorkflow.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 (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + if (connectionsBuilder_ == null) { + connections_ = null; + } else { + connections_ = null; + connectionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { + return flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflow build() { + flyteidl.core.Compiler.CompiledWorkflow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflow buildPartial() { + flyteidl.core.Compiler.CompiledWorkflow result = new flyteidl.core.Compiler.CompiledWorkflow(this); + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + if (connectionsBuilder_ == null) { + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.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 flyteidl.core.Compiler.CompiledWorkflow) { + return mergeFrom((flyteidl.core.Compiler.CompiledWorkflow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflow other) { + if (other == flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + if (other.hasConnections()) { + mergeConnections(other.getConnections()); + } + 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 { + flyteidl.core.Compiler.CompiledWorkflow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.CompiledWorkflow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Workflow.WorkflowTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + + private flyteidl.core.Compiler.ConnectionSet connections_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> connectionsBuilder_; + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public boolean hasConnections() { + return connectionsBuilder_ != null || connections_ != null; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSet getConnections() { + if (connectionsBuilder_ == null) { + return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; + } else { + return connectionsBuilder_.getMessage(); + } + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder setConnections(flyteidl.core.Compiler.ConnectionSet value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connections_ = value; + onChanged(); + } else { + connectionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder setConnections( + flyteidl.core.Compiler.ConnectionSet.Builder builderForValue) { + if (connectionsBuilder_ == null) { + connections_ = builderForValue.build(); + onChanged(); + } else { + connectionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder mergeConnections(flyteidl.core.Compiler.ConnectionSet value) { + if (connectionsBuilder_ == null) { + if (connections_ != null) { + connections_ = + flyteidl.core.Compiler.ConnectionSet.newBuilder(connections_).mergeFrom(value).buildPartial(); + } else { + connections_ = value; + } + onChanged(); + } else { + connectionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = null; + onChanged(); + } else { + connections_ = null; + connectionsBuilder_ = null; + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSet.Builder getConnectionsBuilder() { + + onChanged(); + return getConnectionsFieldBuilder().getBuilder(); + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilder(); + } else { + return connections_ == null ? + flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; + } + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> + getConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder>( + getConnections(), + getParentForChildren(), + isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + @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:flyteidl.core.CompiledWorkflow) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflow) + private static final flyteidl.core.Compiler.CompiledWorkflow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflow(); + } + + public static flyteidl.core.Compiler.CompiledWorkflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompiledWorkflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompiledWorkflow(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 flyteidl.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompiledTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplate getTemplate(); + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); + } + /** + *
+   * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
+   * 
+ * + * Protobuf type {@code flyteidl.core.CompiledTask} + */ + public static final class CompiledTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledTask) + CompiledTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompiledTask.newBuilder() to construct. + private CompiledTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompiledTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompiledTask( + 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: { + flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = 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 flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); + } + + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Tasks.TaskTemplate template_; + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + 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 (template_ != null) { + output.writeMessage(1, getTemplate()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + 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 flyteidl.core.Compiler.CompiledTask)) { + return super.equals(obj); + } + flyteidl.core.Compiler.CompiledTask other = (flyteidl.core.Compiler.CompiledTask) obj; + + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) 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 (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.CompiledTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledTask 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 flyteidl.core.Compiler.CompiledTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledTask 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 flyteidl.core.Compiler.CompiledTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledTask 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(flyteidl.core.Compiler.CompiledTask 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; + } + /** + *
+     * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
+     * 
+ * + * Protobuf type {@code flyteidl.core.CompiledTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledTask) + flyteidl.core.Compiler.CompiledTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); + } + + // Construct using flyteidl.core.Compiler.CompiledTask.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 (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledTask getDefaultInstanceForType() { + return flyteidl.core.Compiler.CompiledTask.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledTask build() { + flyteidl.core.Compiler.CompiledTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledTask buildPartial() { + flyteidl.core.Compiler.CompiledTask result = new flyteidl.core.Compiler.CompiledTask(this); + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.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 flyteidl.core.Compiler.CompiledTask) { + return mergeFrom((flyteidl.core.Compiler.CompiledTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.CompiledTask other) { + if (other == flyteidl.core.Compiler.CompiledTask.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + 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 { + flyteidl.core.Compiler.CompiledTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.CompiledTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Tasks.TaskTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + @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:flyteidl.core.CompiledTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledTask) + private static final flyteidl.core.Compiler.CompiledTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledTask(); + } + + public static flyteidl.core.Compiler.CompiledTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompiledTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompiledTask(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 flyteidl.core.Compiler.CompiledTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompiledWorkflowClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflowClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + boolean hasPrimary(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + flyteidl.core.Compiler.CompiledWorkflow getPrimary(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder(); + + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + java.util.List + getSubWorkflowsList(); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + int getSubWorkflowsCount(); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + java.util.List + getSubWorkflowsOrBuilderList(); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( + int index); + + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + java.util.List + getTasksList(); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + flyteidl.core.Compiler.CompiledTask getTasks(int index); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + int getTasksCount(); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( + int index); + } + /** + *
+   * A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
+   * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
+   * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
+   * compiled subworkflows.
+   * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} + */ + public static final class CompiledWorkflowClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflowClosure) + CompiledWorkflowClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompiledWorkflowClosure.newBuilder() to construct. + private CompiledWorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompiledWorkflowClosure() { + subWorkflows_ = java.util.Collections.emptyList(); + tasks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompiledWorkflowClosure( + 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: { + flyteidl.core.Compiler.CompiledWorkflow.Builder subBuilder = null; + if (primary_ != null) { + subBuilder = primary_.toBuilder(); + } + primary_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(primary_); + primary_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + subWorkflows_.add( + input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + tasks_.add( + input.readMessage(flyteidl.core.Compiler.CompiledTask.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_ & 0x00000002) != 0)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); + } + + private int bitField0_; + public static final int PRIMARY_FIELD_NUMBER = 1; + private flyteidl.core.Compiler.CompiledWorkflow primary_; + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public boolean hasPrimary() { + return primary_ != null; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { + return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { + return getPrimary(); + } + + public static final int SUB_WORKFLOWS_FIELD_NUMBER = 2; + private java.util.List subWorkflows_; + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + return subWorkflows_; + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + return subWorkflows_; + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + return subWorkflows_.size(); + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { + return subWorkflows_.get(index); + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( + int index) { + return subWorkflows_.get(index); + } + + public static final int TASKS_FIELD_NUMBER = 3; + private java.util.List tasks_; + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( + int index) { + return tasks_.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 (primary_ != null) { + output.writeMessage(1, getPrimary()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + output.writeMessage(2, subWorkflows_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(3, tasks_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (primary_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPrimary()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, subWorkflows_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, tasks_.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 flyteidl.core.Compiler.CompiledWorkflowClosure)) { + return super.equals(obj); + } + flyteidl.core.Compiler.CompiledWorkflowClosure other = (flyteidl.core.Compiler.CompiledWorkflowClosure) obj; + + if (hasPrimary() != other.hasPrimary()) return false; + if (hasPrimary()) { + if (!getPrimary() + .equals(other.getPrimary())) return false; + } + if (!getSubWorkflowsList() + .equals(other.getSubWorkflowsList())) return false; + if (!getTasksList() + .equals(other.getTasksList())) 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 (hasPrimary()) { + hash = (37 * hash) + PRIMARY_FIELD_NUMBER; + hash = (53 * hash) + getPrimary().hashCode(); + } + if (getSubWorkflowsCount() > 0) { + hash = (37 * hash) + SUB_WORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getSubWorkflowsList().hashCode(); + } + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure 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 flyteidl.core.Compiler.CompiledWorkflowClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure 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 flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure 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(flyteidl.core.Compiler.CompiledWorkflowClosure 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 Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
+     * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
+     * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
+     * compiled subworkflows.
+     * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflowClosure) + flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); + } + + // Construct using flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSubWorkflowsFieldBuilder(); + getTasksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (primaryBuilder_ == null) { + primary_ = null; + } else { + primary_ = null; + primaryBuilder_ = null; + } + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + subWorkflowsBuilder_.clear(); + } + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + tasksBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { + return flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflowClosure build() { + flyteidl.core.Compiler.CompiledWorkflowClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflowClosure buildPartial() { + flyteidl.core.Compiler.CompiledWorkflowClosure result = new flyteidl.core.Compiler.CompiledWorkflowClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (primaryBuilder_ == null) { + result.primary_ = primary_; + } else { + result.primary_ = primaryBuilder_.build(); + } + if (subWorkflowsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.subWorkflows_ = subWorkflows_; + } else { + result.subWorkflows_ = subWorkflowsBuilder_.build(); + } + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.core.Compiler.CompiledWorkflowClosure) { + return mergeFrom((flyteidl.core.Compiler.CompiledWorkflowClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflowClosure other) { + if (other == flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance()) return this; + if (other.hasPrimary()) { + mergePrimary(other.getPrimary()); + } + if (subWorkflowsBuilder_ == null) { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflows_.isEmpty()) { + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubWorkflowsIsMutable(); + subWorkflows_.addAll(other.subWorkflows_); + } + onChanged(); + } + } else { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflowsBuilder_.isEmpty()) { + subWorkflowsBuilder_.dispose(); + subWorkflowsBuilder_ = null; + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + subWorkflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubWorkflowsFieldBuilder() : null; + } else { + subWorkflowsBuilder_.addAllMessages(other.subWorkflows_); + } + } + } + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000004); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + 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 { + flyteidl.core.Compiler.CompiledWorkflowClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.CompiledWorkflowClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.Compiler.CompiledWorkflow primary_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> primaryBuilder_; + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public boolean hasPrimary() { + return primaryBuilder_ != null || primary_ != null; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { + if (primaryBuilder_ == null) { + return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; + } else { + return primaryBuilder_.getMessage(); + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder setPrimary(flyteidl.core.Compiler.CompiledWorkflow value) { + if (primaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + primary_ = value; + onChanged(); + } else { + primaryBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder setPrimary( + flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (primaryBuilder_ == null) { + primary_ = builderForValue.build(); + onChanged(); + } else { + primaryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder mergePrimary(flyteidl.core.Compiler.CompiledWorkflow value) { + if (primaryBuilder_ == null) { + if (primary_ != null) { + primary_ = + flyteidl.core.Compiler.CompiledWorkflow.newBuilder(primary_).mergeFrom(value).buildPartial(); + } else { + primary_ = value; + } + onChanged(); + } else { + primaryBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder clearPrimary() { + if (primaryBuilder_ == null) { + primary_ = null; + onChanged(); + } else { + primary_ = null; + primaryBuilder_ = null; + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder getPrimaryBuilder() { + + onChanged(); + return getPrimaryFieldBuilder().getBuilder(); + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { + if (primaryBuilder_ != null) { + return primaryBuilder_.getMessageOrBuilder(); + } else { + return primary_ == null ? + flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> + getPrimaryFieldBuilder() { + if (primaryBuilder_ == null) { + primaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( + getPrimary(), + getParentForChildren(), + isClean()); + primary_ = null; + } + return primaryBuilder_; + } + + private java.util.List subWorkflows_ = + java.util.Collections.emptyList(); + private void ensureSubWorkflowsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = new java.util.ArrayList(subWorkflows_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> subWorkflowsBuilder_; + + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + if (subWorkflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subWorkflows_); + } else { + return subWorkflowsBuilder_.getMessageList(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.size(); + } else { + return subWorkflowsBuilder_.getCount(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); + } else { + return subWorkflowsBuilder_.getMessage(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows(flyteidl.core.Compiler.CompiledWorkflow value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows( + flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addAllSubWorkflows( + java.lang.Iterable values) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subWorkflows_); + onChanged(); + } else { + subWorkflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder clearSubWorkflows() { + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + subWorkflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder removeSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.remove(index); + onChanged(); + } else { + subWorkflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder getSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( + int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); } else { + return subWorkflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + if (subWorkflowsBuilder_ != null) { + return subWorkflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subWorkflows_); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder() { + return getSubWorkflowsFieldBuilder().addBuilder( + flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().addBuilder( + index, flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsBuilderList() { + return getSubWorkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> + getSubWorkflowsFieldBuilder() { + if (subWorkflowsBuilder_ == null) { + subWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( + subWorkflows_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + subWorkflows_ = null; + } + return subWorkflowsBuilder_; + } + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> tasksBuilder_; + + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder setTasks( + int index, flyteidl.core.Compiler.CompiledTask value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder setTasks( + int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks(flyteidl.core.Compiler.CompiledTask value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks( + int index, flyteidl.core.Compiler.CompiledTask value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks( + flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks( + int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( + tasks_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + @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:flyteidl.core.CompiledWorkflowClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflowClosure) + private static final flyteidl.core.Compiler.CompiledWorkflowClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflowClosure(); + } + + public static flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompiledWorkflowClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompiledWorkflowClosure(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 flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CompiledWorkflow_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CompiledTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CompiledTask_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CompiledWorkflowClosure_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\034flyteidl/core/compiler.proto\022\rflyteidl" + + ".core\032\034flyteidl/core/workflow.proto\032\031fly" + + "teidl/core/tasks.proto\"\324\002\n\rConnectionSet" + + "\022@\n\ndownstream\030\007 \003(\0132,.flyteidl.core.Con" + + "nectionSet.DownstreamEntry\022<\n\010upstream\030\010" + + " \003(\0132*.flyteidl.core.ConnectionSet.Upstr" + + "eamEntry\032\025\n\006IdList\022\013\n\003ids\030\001 \003(\t\032V\n\017Downs" + + "treamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#" + + ".flyteidl.core.ConnectionSet.IdList:\0028\001\032" + + "T\n\rUpstreamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002" + + " \001(\0132#.flyteidl.core.ConnectionSet.IdLis" + + "t:\0028\001\"x\n\020CompiledWorkflow\0221\n\010template\030\001 " + + "\001(\0132\037.flyteidl.core.WorkflowTemplate\0221\n\013" + + "connections\030\002 \001(\0132\034.flyteidl.core.Connec" + + "tionSet\"=\n\014CompiledTask\022-\n\010template\030\001 \001(" + + "\0132\033.flyteidl.core.TaskTemplate\"\257\001\n\027Compi" + + "ledWorkflowClosure\0220\n\007primary\030\001 \001(\0132\037.fl" + + "yteidl.core.CompiledWorkflow\0226\n\rsub_work" + + "flows\030\002 \003(\0132\037.flyteidl.core.CompiledWork" + + "flow\022*\n\005tasks\030\003 \003(\0132\033.flyteidl.core.Comp" + + "iledTaskB2Z0github.com/lyft/flyteidl/gen" + + "/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Workflow.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_ConnectionSet_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_descriptor, + new java.lang.String[] { "Downstream", "Upstream", }); + internal_static_flyteidl_core_ConnectionSet_IdList_descriptor = + internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_IdList_descriptor, + new java.lang.String[] { "Ids", }); + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor = + internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(1); + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor = + internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(2); + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_CompiledWorkflow_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CompiledWorkflow_descriptor, + new java.lang.String[] { "Template", "Connections", }); + internal_static_flyteidl_core_CompiledTask_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_CompiledTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CompiledTask_descriptor, + new java.lang.String[] { "Template", }); + internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor, + new java.lang.String[] { "Primary", "SubWorkflows", "Tasks", }); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Condition.java b/gen/pb-java/flyteidl/core/Condition.java new file mode 100644 index 000000000..fab054101 --- /dev/null +++ b/gen/pb-java/flyteidl/core/Condition.java @@ -0,0 +1,4070 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/condition.proto + +package flyteidl.core; + +public final class Condition { + private Condition() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ComparisonExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ComparisonExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + int getOperatorValue(); + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + flyteidl.core.Condition.ComparisonExpression.Operator getOperator(); + + /** + * .flyteidl.core.Operand left_value = 2; + */ + boolean hasLeftValue(); + /** + * .flyteidl.core.Operand left_value = 2; + */ + flyteidl.core.Condition.Operand getLeftValue(); + /** + * .flyteidl.core.Operand left_value = 2; + */ + flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder(); + + /** + * .flyteidl.core.Operand right_value = 3; + */ + boolean hasRightValue(); + /** + * .flyteidl.core.Operand right_value = 3; + */ + flyteidl.core.Condition.Operand getRightValue(); + /** + * .flyteidl.core.Operand right_value = 3; + */ + flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder(); + } + /** + *
+   * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
+   * Each expression results in a boolean result.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ComparisonExpression} + */ + public static final class ComparisonExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ComparisonExpression) + ComparisonExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ComparisonExpression.newBuilder() to construct. + private ComparisonExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ComparisonExpression() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ComparisonExpression( + 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 8: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + case 18: { + flyteidl.core.Condition.Operand.Builder subBuilder = null; + if (leftValue_ != null) { + subBuilder = leftValue_.toBuilder(); + } + leftValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(leftValue_); + leftValue_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Condition.Operand.Builder subBuilder = null; + if (rightValue_ != null) { + subBuilder = rightValue_.toBuilder(); + } + rightValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rightValue_); + rightValue_ = 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 flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); + } + + /** + *
+     * Binary Operator for each expression
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ComparisonExpression.Operator} + */ + public enum Operator + implements com.google.protobuf.ProtocolMessageEnum { + /** + * EQ = 0; + */ + EQ(0), + /** + * NEQ = 1; + */ + NEQ(1), + /** + *
+       * Greater Than
+       * 
+ * + * GT = 2; + */ + GT(2), + /** + * GTE = 3; + */ + GTE(3), + /** + *
+       * Less Than
+       * 
+ * + * LT = 4; + */ + LT(4), + /** + * LTE = 5; + */ + LTE(5), + UNRECOGNIZED(-1), + ; + + /** + * EQ = 0; + */ + public static final int EQ_VALUE = 0; + /** + * NEQ = 1; + */ + public static final int NEQ_VALUE = 1; + /** + *
+       * Greater Than
+       * 
+ * + * GT = 2; + */ + public static final int GT_VALUE = 2; + /** + * GTE = 3; + */ + public static final int GTE_VALUE = 3; + /** + *
+       * Less Than
+       * 
+ * + * LT = 4; + */ + public static final int LT_VALUE = 4; + /** + * LTE = 5; + */ + public static final int LTE_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Operator valueOf(int value) { + return forNumber(value); + } + + public static Operator forNumber(int value) { + switch (value) { + case 0: return EQ; + case 1: return NEQ; + case 2: return GT; + case 3: return GTE; + case 4: return LT; + case 5: return LTE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Operator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operator findValueByNumber(int number) { + return Operator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Condition.ComparisonExpression.getDescriptor().getEnumTypes().get(0); + } + + private static final Operator[] VALUES = values(); + + public static Operator 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 Operator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ComparisonExpression.Operator) + } + + public static final int OPERATOR_FIELD_NUMBER = 1; + private int operator_; + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { + @SuppressWarnings("deprecation") + flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; + } + + public static final int LEFT_VALUE_FIELD_NUMBER = 2; + private flyteidl.core.Condition.Operand leftValue_; + /** + * .flyteidl.core.Operand left_value = 2; + */ + public boolean hasLeftValue() { + return leftValue_ != null; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.Operand getLeftValue() { + return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { + return getLeftValue(); + } + + public static final int RIGHT_VALUE_FIELD_NUMBER = 3; + private flyteidl.core.Condition.Operand rightValue_; + /** + * .flyteidl.core.Operand right_value = 3; + */ + public boolean hasRightValue() { + return rightValue_ != null; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.Operand getRightValue() { + return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { + return getRightValue(); + } + + 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 (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { + output.writeEnum(1, operator_); + } + if (leftValue_ != null) { + output.writeMessage(2, getLeftValue()); + } + if (rightValue_ != null) { + output.writeMessage(3, getRightValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operator_); + } + if (leftValue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLeftValue()); + } + if (rightValue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRightValue()); + } + 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 flyteidl.core.Condition.ComparisonExpression)) { + return super.equals(obj); + } + flyteidl.core.Condition.ComparisonExpression other = (flyteidl.core.Condition.ComparisonExpression) obj; + + if (operator_ != other.operator_) return false; + if (hasLeftValue() != other.hasLeftValue()) return false; + if (hasLeftValue()) { + if (!getLeftValue() + .equals(other.getLeftValue())) return false; + } + if (hasRightValue() != other.hasRightValue()) return false; + if (hasRightValue()) { + if (!getRightValue() + .equals(other.getRightValue())) 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) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (hasLeftValue()) { + hash = (37 * hash) + LEFT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getLeftValue().hashCode(); + } + if (hasRightValue()) { + hash = (37 * hash) + RIGHT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRightValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ComparisonExpression 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 flyteidl.core.Condition.ComparisonExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ComparisonExpression 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 flyteidl.core.Condition.ComparisonExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ComparisonExpression 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(flyteidl.core.Condition.ComparisonExpression 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; + } + /** + *
+     * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
+     * Each expression results in a boolean result.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ComparisonExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ComparisonExpression) + flyteidl.core.Condition.ComparisonExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); + } + + // Construct using flyteidl.core.Condition.ComparisonExpression.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(); + operator_ = 0; + + if (leftValueBuilder_ == null) { + leftValue_ = null; + } else { + leftValue_ = null; + leftValueBuilder_ = null; + } + if (rightValueBuilder_ == null) { + rightValue_ = null; + } else { + rightValue_ = null; + rightValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; + } + + @java.lang.Override + public flyteidl.core.Condition.ComparisonExpression getDefaultInstanceForType() { + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Condition.ComparisonExpression build() { + flyteidl.core.Condition.ComparisonExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Condition.ComparisonExpression buildPartial() { + flyteidl.core.Condition.ComparisonExpression result = new flyteidl.core.Condition.ComparisonExpression(this); + result.operator_ = operator_; + if (leftValueBuilder_ == null) { + result.leftValue_ = leftValue_; + } else { + result.leftValue_ = leftValueBuilder_.build(); + } + if (rightValueBuilder_ == null) { + result.rightValue_ = rightValue_; + } else { + result.rightValue_ = rightValueBuilder_.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 flyteidl.core.Condition.ComparisonExpression) { + return mergeFrom((flyteidl.core.Condition.ComparisonExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.ComparisonExpression other) { + if (other == flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (other.hasLeftValue()) { + mergeLeftValue(other.getLeftValue()); + } + if (other.hasRightValue()) { + mergeRightValue(other.getRightValue()); + } + 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 { + flyteidl.core.Condition.ComparisonExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.ComparisonExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operator_ = 0; + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { + @SuppressWarnings("deprecation") + flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public Builder setOperator(flyteidl.core.Condition.ComparisonExpression.Operator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Condition.Operand leftValue_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> leftValueBuilder_; + /** + * .flyteidl.core.Operand left_value = 2; + */ + public boolean hasLeftValue() { + return leftValueBuilder_ != null || leftValue_ != null; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.Operand getLeftValue() { + if (leftValueBuilder_ == null) { + return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; + } else { + return leftValueBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder setLeftValue(flyteidl.core.Condition.Operand value) { + if (leftValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + leftValue_ = value; + onChanged(); + } else { + leftValueBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder setLeftValue( + flyteidl.core.Condition.Operand.Builder builderForValue) { + if (leftValueBuilder_ == null) { + leftValue_ = builderForValue.build(); + onChanged(); + } else { + leftValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder mergeLeftValue(flyteidl.core.Condition.Operand value) { + if (leftValueBuilder_ == null) { + if (leftValue_ != null) { + leftValue_ = + flyteidl.core.Condition.Operand.newBuilder(leftValue_).mergeFrom(value).buildPartial(); + } else { + leftValue_ = value; + } + onChanged(); + } else { + leftValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder clearLeftValue() { + if (leftValueBuilder_ == null) { + leftValue_ = null; + onChanged(); + } else { + leftValue_ = null; + leftValueBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.Operand.Builder getLeftValueBuilder() { + + onChanged(); + return getLeftValueFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { + if (leftValueBuilder_ != null) { + return leftValueBuilder_.getMessageOrBuilder(); + } else { + return leftValue_ == null ? + flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; + } + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> + getLeftValueFieldBuilder() { + if (leftValueBuilder_ == null) { + leftValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( + getLeftValue(), + getParentForChildren(), + isClean()); + leftValue_ = null; + } + return leftValueBuilder_; + } + + private flyteidl.core.Condition.Operand rightValue_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> rightValueBuilder_; + /** + * .flyteidl.core.Operand right_value = 3; + */ + public boolean hasRightValue() { + return rightValueBuilder_ != null || rightValue_ != null; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.Operand getRightValue() { + if (rightValueBuilder_ == null) { + return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; + } else { + return rightValueBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder setRightValue(flyteidl.core.Condition.Operand value) { + if (rightValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rightValue_ = value; + onChanged(); + } else { + rightValueBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder setRightValue( + flyteidl.core.Condition.Operand.Builder builderForValue) { + if (rightValueBuilder_ == null) { + rightValue_ = builderForValue.build(); + onChanged(); + } else { + rightValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder mergeRightValue(flyteidl.core.Condition.Operand value) { + if (rightValueBuilder_ == null) { + if (rightValue_ != null) { + rightValue_ = + flyteidl.core.Condition.Operand.newBuilder(rightValue_).mergeFrom(value).buildPartial(); + } else { + rightValue_ = value; + } + onChanged(); + } else { + rightValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder clearRightValue() { + if (rightValueBuilder_ == null) { + rightValue_ = null; + onChanged(); + } else { + rightValue_ = null; + rightValueBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.Operand.Builder getRightValueBuilder() { + + onChanged(); + return getRightValueFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { + if (rightValueBuilder_ != null) { + return rightValueBuilder_.getMessageOrBuilder(); + } else { + return rightValue_ == null ? + flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; + } + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> + getRightValueFieldBuilder() { + if (rightValueBuilder_ == null) { + rightValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( + getRightValue(), + getParentForChildren(), + isClean()); + rightValue_ = null; + } + return rightValueBuilder_; + } + @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:flyteidl.core.ComparisonExpression) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ComparisonExpression) + private static final flyteidl.core.Condition.ComparisonExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.ComparisonExpression(); + } + + public static flyteidl.core.Condition.ComparisonExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComparisonExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComparisonExpression(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 flyteidl.core.Condition.ComparisonExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OperandOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Operand) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + boolean hasPrimitive(); + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.Primitive getPrimitive(); + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); + + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + java.lang.String getVar(); + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + com.google.protobuf.ByteString + getVarBytes(); + + public flyteidl.core.Condition.Operand.ValCase getValCase(); + } + /** + *
+   * Defines an operand to a comparison expression.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Operand} + */ + public static final class Operand extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Operand) + OperandOrBuilder { + private static final long serialVersionUID = 0L; + // Use Operand.newBuilder() to construct. + private Operand(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Operand() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Operand( + 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: { + flyteidl.core.Literals.Primitive.Builder subBuilder = null; + if (valCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Primitive) val_).toBuilder(); + } + val_ = + input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) val_); + val_ = subBuilder.buildPartial(); + } + valCase_ = 1; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + valCase_ = 2; + val_ = 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 flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); + } + + private int valCase_ = 0; + private java.lang.Object val_; + public enum ValCase + implements com.google.protobuf.Internal.EnumLite { + PRIMITIVE(1), + VAR(2), + VAL_NOT_SET(0); + private final int value; + private ValCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValCase valueOf(int value) { + return forNumber(value); + } + + public static ValCase forNumber(int value) { + switch (value) { + case 1: return PRIMITIVE; + case 2: return VAR; + case 0: return VAL_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValCase + getValCase() { + return ValCase.forNumber( + valCase_); + } + + public static final int PRIMITIVE_FIELD_NUMBER = 1; + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valCase_ == 1; + } + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + + public static final int VAR_FIELD_NUMBER = 2; + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + 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(); + if (valCase_ == 2) { + val_ = s; + } + return s; + } + } + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valCase_ == 2) { + val_ = 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 (valCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Primitive) val_); + } + if (valCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, val_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Primitive) val_); + } + if (valCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, val_); + } + 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 flyteidl.core.Condition.Operand)) { + return super.equals(obj); + } + flyteidl.core.Condition.Operand other = (flyteidl.core.Condition.Operand) obj; + + if (!getValCase().equals(other.getValCase())) return false; + switch (valCase_) { + case 1: + if (!getPrimitive() + .equals(other.getPrimitive())) return false; + break; + case 2: + if (!getVar() + .equals(other.getVar())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valCase_) { + case 1: + hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; + hash = (53 * hash) + getPrimitive().hashCode(); + break; + case 2: + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.Operand parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.Operand parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.Operand parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.Operand parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.Operand parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.Operand parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.Operand parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.Operand 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 flyteidl.core.Condition.Operand parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.Operand 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 flyteidl.core.Condition.Operand parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.Operand 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(flyteidl.core.Condition.Operand 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; + } + /** + *
+     * Defines an operand to a comparison expression.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Operand} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Operand) + flyteidl.core.Condition.OperandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); + } + + // Construct using flyteidl.core.Condition.Operand.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(); + valCase_ = 0; + val_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; + } + + @java.lang.Override + public flyteidl.core.Condition.Operand getDefaultInstanceForType() { + return flyteidl.core.Condition.Operand.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Condition.Operand build() { + flyteidl.core.Condition.Operand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Condition.Operand buildPartial() { + flyteidl.core.Condition.Operand result = new flyteidl.core.Condition.Operand(this); + if (valCase_ == 1) { + if (primitiveBuilder_ == null) { + result.val_ = val_; + } else { + result.val_ = primitiveBuilder_.build(); + } + } + if (valCase_ == 2) { + result.val_ = val_; + } + result.valCase_ = valCase_; + 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 flyteidl.core.Condition.Operand) { + return mergeFrom((flyteidl.core.Condition.Operand)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.Operand other) { + if (other == flyteidl.core.Condition.Operand.getDefaultInstance()) return this; + switch (other.getValCase()) { + case PRIMITIVE: { + mergePrimitive(other.getPrimitive()); + break; + } + case VAR: { + valCase_ = 2; + val_ = other.val_; + onChanged(); + break; + } + case VAL_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 { + flyteidl.core.Condition.Operand parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.Operand) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valCase_ = 0; + private java.lang.Object val_; + public ValCase + getValCase() { + return ValCase.forNumber( + valCase_); + } + + public Builder clearVal() { + valCase_ = 0; + val_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valCase_ == 1; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (primitiveBuilder_ == null) { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } else { + if (valCase_ == 1) { + return primitiveBuilder_.getMessage(); + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + val_ = value; + onChanged(); + } else { + primitiveBuilder_.setMessage(value); + } + valCase_ = 1; + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive( + flyteidl.core.Literals.Primitive.Builder builderForValue) { + if (primitiveBuilder_ == null) { + val_ = builderForValue.build(); + onChanged(); + } else { + primitiveBuilder_.setMessage(builderForValue.build()); + } + valCase_ = 1; + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (valCase_ == 1 && + val_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { + val_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) val_) + .mergeFrom(value).buildPartial(); + } else { + val_ = value; + } + onChanged(); + } else { + if (valCase_ == 1) { + primitiveBuilder_.mergeFrom(value); + } + primitiveBuilder_.setMessage(value); + } + valCase_ = 1; + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder clearPrimitive() { + if (primitiveBuilder_ == null) { + if (valCase_ == 1) { + valCase_ = 0; + val_ = null; + onChanged(); + } + } else { + if (valCase_ == 1) { + valCase_ = 0; + val_ = null; + } + primitiveBuilder_.clear(); + } + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { + return getPrimitiveFieldBuilder().getBuilder(); + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if ((valCase_ == 1) && (primitiveBuilder_ != null)) { + return primitiveBuilder_.getMessageOrBuilder(); + } else { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> + getPrimitiveFieldBuilder() { + if (primitiveBuilder_ == null) { + if (!(valCase_ == 1)) { + val_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( + (flyteidl.core.Literals.Primitive) val_, + getParentForChildren(), + isClean()); + val_ = null; + } + valCase_ = 1; + onChanged();; + return primitiveBuilder_; + } + + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valCase_ == 2) { + val_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valCase_ == 2) { + val_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valCase_ = 2; + val_ = value; + onChanged(); + return this; + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public Builder clearVar() { + if (valCase_ == 2) { + valCase_ = 0; + val_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valCase_ = 2; + val_ = 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:flyteidl.core.Operand) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Operand) + private static final flyteidl.core.Condition.Operand DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.Operand(); + } + + public static flyteidl.core.Condition.Operand getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Operand parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Operand(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 flyteidl.core.Condition.Operand getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BooleanExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BooleanExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + boolean hasConjunction(); + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + flyteidl.core.Condition.ConjunctionExpression getConjunction(); + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder(); + + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + boolean hasComparison(); + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + flyteidl.core.Condition.ComparisonExpression getComparison(); + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder(); + + public flyteidl.core.Condition.BooleanExpression.ExprCase getExprCase(); + } + /** + *
+   * Defines a boolean expression tree. It can be a simple or a conjunction expression.
+   * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BooleanExpression} + */ + public static final class BooleanExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BooleanExpression) + BooleanExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BooleanExpression.newBuilder() to construct. + private BooleanExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BooleanExpression() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BooleanExpression( + 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: { + flyteidl.core.Condition.ConjunctionExpression.Builder subBuilder = null; + if (exprCase_ == 1) { + subBuilder = ((flyteidl.core.Condition.ConjunctionExpression) expr_).toBuilder(); + } + expr_ = + input.readMessage(flyteidl.core.Condition.ConjunctionExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Condition.ConjunctionExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 1; + break; + } + case 18: { + flyteidl.core.Condition.ComparisonExpression.Builder subBuilder = null; + if (exprCase_ == 2) { + subBuilder = ((flyteidl.core.Condition.ComparisonExpression) expr_).toBuilder(); + } + expr_ = + input.readMessage(flyteidl.core.Condition.ComparisonExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Condition.ComparisonExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 2; + 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 flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + public enum ExprCase + implements com.google.protobuf.Internal.EnumLite { + CONJUNCTION(1), + COMPARISON(2), + EXPR_NOT_SET(0); + private final int value; + private ExprCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: return CONJUNCTION; + case 2: return COMPARISON; + case 0: return EXPR_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ExprCase + getExprCase() { + return ExprCase.forNumber( + exprCase_); + } + + public static final int CONJUNCTION_FIELD_NUMBER = 1; + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public boolean hasConjunction() { + return exprCase_ == 1; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression getConjunction() { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + + public static final int COMPARISON_FIELD_NUMBER = 2; + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public boolean hasComparison() { + return exprCase_ == 2; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpression getComparison() { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (exprCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); + } + if (exprCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Condition.ComparisonExpression) expr_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exprCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); + } + if (exprCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Condition.ComparisonExpression) expr_); + } + 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 flyteidl.core.Condition.BooleanExpression)) { + return super.equals(obj); + } + flyteidl.core.Condition.BooleanExpression other = (flyteidl.core.Condition.BooleanExpression) obj; + + if (!getExprCase().equals(other.getExprCase())) return false; + switch (exprCase_) { + case 1: + if (!getConjunction() + .equals(other.getConjunction())) return false; + break; + case 2: + if (!getComparison() + .equals(other.getComparison())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (exprCase_) { + case 1: + hash = (37 * hash) + CONJUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getConjunction().hashCode(); + break; + case 2: + hash = (37 * hash) + COMPARISON_FIELD_NUMBER; + hash = (53 * hash) + getComparison().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.BooleanExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.BooleanExpression 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 flyteidl.core.Condition.BooleanExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.BooleanExpression 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 flyteidl.core.Condition.BooleanExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.BooleanExpression 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(flyteidl.core.Condition.BooleanExpression 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; + } + /** + *
+     * Defines a boolean expression tree. It can be a simple or a conjunction expression.
+     * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BooleanExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BooleanExpression) + flyteidl.core.Condition.BooleanExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); + } + + // Construct using flyteidl.core.Condition.BooleanExpression.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(); + exprCase_ = 0; + expr_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; + } + + @java.lang.Override + public flyteidl.core.Condition.BooleanExpression getDefaultInstanceForType() { + return flyteidl.core.Condition.BooleanExpression.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Condition.BooleanExpression build() { + flyteidl.core.Condition.BooleanExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Condition.BooleanExpression buildPartial() { + flyteidl.core.Condition.BooleanExpression result = new flyteidl.core.Condition.BooleanExpression(this); + if (exprCase_ == 1) { + if (conjunctionBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = conjunctionBuilder_.build(); + } + } + if (exprCase_ == 2) { + if (comparisonBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = comparisonBuilder_.build(); + } + } + result.exprCase_ = exprCase_; + 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 flyteidl.core.Condition.BooleanExpression) { + return mergeFrom((flyteidl.core.Condition.BooleanExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.BooleanExpression other) { + if (other == flyteidl.core.Condition.BooleanExpression.getDefaultInstance()) return this; + switch (other.getExprCase()) { + case CONJUNCTION: { + mergeConjunction(other.getConjunction()); + break; + } + case COMPARISON: { + mergeComparison(other.getComparison()); + break; + } + case EXPR_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 { + flyteidl.core.Condition.BooleanExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.BooleanExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int exprCase_ = 0; + private java.lang.Object expr_; + public ExprCase + getExprCase() { + return ExprCase.forNumber( + exprCase_); + } + + public Builder clearExpr() { + exprCase_ = 0; + expr_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> conjunctionBuilder_; + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public boolean hasConjunction() { + return exprCase_ == 1; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression getConjunction() { + if (conjunctionBuilder_ == null) { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return conjunctionBuilder_.getMessage(); + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder setConjunction(flyteidl.core.Condition.ConjunctionExpression value) { + if (conjunctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + conjunctionBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder setConjunction( + flyteidl.core.Condition.ConjunctionExpression.Builder builderForValue) { + if (conjunctionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + conjunctionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder mergeConjunction(flyteidl.core.Condition.ConjunctionExpression value) { + if (conjunctionBuilder_ == null) { + if (exprCase_ == 1 && + expr_ != flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) { + expr_ = flyteidl.core.Condition.ConjunctionExpression.newBuilder((flyteidl.core.Condition.ConjunctionExpression) expr_) + .mergeFrom(value).buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + conjunctionBuilder_.mergeFrom(value); + } + conjunctionBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder clearConjunction() { + if (conjunctionBuilder_ == null) { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + } + conjunctionBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression.Builder getConjunctionBuilder() { + return getConjunctionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { + if ((exprCase_ == 1) && (conjunctionBuilder_ != null)) { + return conjunctionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> + getConjunctionFieldBuilder() { + if (conjunctionBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + conjunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder>( + (flyteidl.core.Condition.ConjunctionExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged();; + return conjunctionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> comparisonBuilder_; + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public boolean hasComparison() { + return exprCase_ == 2; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpression getComparison() { + if (comparisonBuilder_ == null) { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return comparisonBuilder_.getMessage(); + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder setComparison(flyteidl.core.Condition.ComparisonExpression value) { + if (comparisonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + comparisonBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder setComparison( + flyteidl.core.Condition.ComparisonExpression.Builder builderForValue) { + if (comparisonBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + comparisonBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder mergeComparison(flyteidl.core.Condition.ComparisonExpression value) { + if (comparisonBuilder_ == null) { + if (exprCase_ == 2 && + expr_ != flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) { + expr_ = flyteidl.core.Condition.ComparisonExpression.newBuilder((flyteidl.core.Condition.ComparisonExpression) expr_) + .mergeFrom(value).buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + comparisonBuilder_.mergeFrom(value); + } + comparisonBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder clearComparison() { + if (comparisonBuilder_ == null) { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + } + comparisonBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpression.Builder getComparisonBuilder() { + return getComparisonFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { + if ((exprCase_ == 2) && (comparisonBuilder_ != null)) { + return comparisonBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> + getComparisonFieldBuilder() { + if (comparisonBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + comparisonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder>( + (flyteidl.core.Condition.ComparisonExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged();; + return comparisonBuilder_; + } + @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:flyteidl.core.BooleanExpression) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BooleanExpression) + private static final flyteidl.core.Condition.BooleanExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.BooleanExpression(); + } + + public static flyteidl.core.Condition.BooleanExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BooleanExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BooleanExpression(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 flyteidl.core.Condition.BooleanExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConjunctionExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ConjunctionExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + int getOperatorValue(); + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator(); + + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + boolean hasLeftExpression(); + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + flyteidl.core.Condition.BooleanExpression getLeftExpression(); + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder(); + + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + boolean hasRightExpression(); + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + flyteidl.core.Condition.BooleanExpression getRightExpression(); + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder(); + } + /** + *
+   * Defines a conjunction expression of two boolean expressions.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ConjunctionExpression} + */ + public static final class ConjunctionExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ConjunctionExpression) + ConjunctionExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConjunctionExpression.newBuilder() to construct. + private ConjunctionExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConjunctionExpression() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConjunctionExpression( + 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 8: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + case 18: { + flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; + if (leftExpression_ != null) { + subBuilder = leftExpression_.toBuilder(); + } + leftExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(leftExpression_); + leftExpression_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; + if (rightExpression_ != null) { + subBuilder = rightExpression_.toBuilder(); + } + rightExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rightExpression_); + rightExpression_ = 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 flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); + } + + /** + *
+     * Nested conditions. They can be conjoined using AND / OR
+     * Order of evaluation is not important as the operators are Commutative
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ConjunctionExpression.LogicalOperator} + */ + public enum LogicalOperator + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Conjunction
+       * 
+ * + * AND = 0; + */ + AND(0), + /** + * OR = 1; + */ + OR(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Conjunction
+       * 
+ * + * AND = 0; + */ + public static final int AND_VALUE = 0; + /** + * OR = 1; + */ + public static final int OR_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LogicalOperator valueOf(int value) { + return forNumber(value); + } + + public static LogicalOperator forNumber(int value) { + switch (value) { + case 0: return AND; + case 1: return OR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LogicalOperator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LogicalOperator findValueByNumber(int number) { + return LogicalOperator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Condition.ConjunctionExpression.getDescriptor().getEnumTypes().get(0); + } + + private static final LogicalOperator[] VALUES = values(); + + public static LogicalOperator 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 LogicalOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ConjunctionExpression.LogicalOperator) + } + + public static final int OPERATOR_FIELD_NUMBER = 1; + private int operator_; + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { + @SuppressWarnings("deprecation") + flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; + } + + public static final int LEFT_EXPRESSION_FIELD_NUMBER = 2; + private flyteidl.core.Condition.BooleanExpression leftExpression_; + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public boolean hasLeftExpression() { + return leftExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpression getLeftExpression() { + return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { + return getLeftExpression(); + } + + public static final int RIGHT_EXPRESSION_FIELD_NUMBER = 3; + private flyteidl.core.Condition.BooleanExpression rightExpression_; + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public boolean hasRightExpression() { + return rightExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpression getRightExpression() { + return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { + return getRightExpression(); + } + + 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 (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { + output.writeEnum(1, operator_); + } + if (leftExpression_ != null) { + output.writeMessage(2, getLeftExpression()); + } + if (rightExpression_ != null) { + output.writeMessage(3, getRightExpression()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operator_); + } + if (leftExpression_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLeftExpression()); + } + if (rightExpression_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRightExpression()); + } + 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 flyteidl.core.Condition.ConjunctionExpression)) { + return super.equals(obj); + } + flyteidl.core.Condition.ConjunctionExpression other = (flyteidl.core.Condition.ConjunctionExpression) obj; + + if (operator_ != other.operator_) return false; + if (hasLeftExpression() != other.hasLeftExpression()) return false; + if (hasLeftExpression()) { + if (!getLeftExpression() + .equals(other.getLeftExpression())) return false; + } + if (hasRightExpression() != other.hasRightExpression()) return false; + if (hasRightExpression()) { + if (!getRightExpression() + .equals(other.getRightExpression())) 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) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (hasLeftExpression()) { + hash = (37 * hash) + LEFT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getLeftExpression().hashCode(); + } + if (hasRightExpression()) { + hash = (37 * hash) + RIGHT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getRightExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ConjunctionExpression 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 flyteidl.core.Condition.ConjunctionExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ConjunctionExpression 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 flyteidl.core.Condition.ConjunctionExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ConjunctionExpression 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(flyteidl.core.Condition.ConjunctionExpression 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; + } + /** + *
+     * Defines a conjunction expression of two boolean expressions.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ConjunctionExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ConjunctionExpression) + flyteidl.core.Condition.ConjunctionExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); + } + + // Construct using flyteidl.core.Condition.ConjunctionExpression.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(); + operator_ = 0; + + if (leftExpressionBuilder_ == null) { + leftExpression_ = null; + } else { + leftExpression_ = null; + leftExpressionBuilder_ = null; + } + if (rightExpressionBuilder_ == null) { + rightExpression_ = null; + } else { + rightExpression_ = null; + rightExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; + } + + @java.lang.Override + public flyteidl.core.Condition.ConjunctionExpression getDefaultInstanceForType() { + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Condition.ConjunctionExpression build() { + flyteidl.core.Condition.ConjunctionExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Condition.ConjunctionExpression buildPartial() { + flyteidl.core.Condition.ConjunctionExpression result = new flyteidl.core.Condition.ConjunctionExpression(this); + result.operator_ = operator_; + if (leftExpressionBuilder_ == null) { + result.leftExpression_ = leftExpression_; + } else { + result.leftExpression_ = leftExpressionBuilder_.build(); + } + if (rightExpressionBuilder_ == null) { + result.rightExpression_ = rightExpression_; + } else { + result.rightExpression_ = rightExpressionBuilder_.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 flyteidl.core.Condition.ConjunctionExpression) { + return mergeFrom((flyteidl.core.Condition.ConjunctionExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.ConjunctionExpression other) { + if (other == flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (other.hasLeftExpression()) { + mergeLeftExpression(other.getLeftExpression()); + } + if (other.hasRightExpression()) { + mergeRightExpression(other.getRightExpression()); + } + 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 { + flyteidl.core.Condition.ConjunctionExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.ConjunctionExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operator_ = 0; + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { + @SuppressWarnings("deprecation") + flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public Builder setOperator(flyteidl.core.Condition.ConjunctionExpression.LogicalOperator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Condition.BooleanExpression leftExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> leftExpressionBuilder_; + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public boolean hasLeftExpression() { + return leftExpressionBuilder_ != null || leftExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpression getLeftExpression() { + if (leftExpressionBuilder_ == null) { + return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; + } else { + return leftExpressionBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder setLeftExpression(flyteidl.core.Condition.BooleanExpression value) { + if (leftExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + leftExpression_ = value; + onChanged(); + } else { + leftExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder setLeftExpression( + flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { + if (leftExpressionBuilder_ == null) { + leftExpression_ = builderForValue.build(); + onChanged(); + } else { + leftExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder mergeLeftExpression(flyteidl.core.Condition.BooleanExpression value) { + if (leftExpressionBuilder_ == null) { + if (leftExpression_ != null) { + leftExpression_ = + flyteidl.core.Condition.BooleanExpression.newBuilder(leftExpression_).mergeFrom(value).buildPartial(); + } else { + leftExpression_ = value; + } + onChanged(); + } else { + leftExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder clearLeftExpression() { + if (leftExpressionBuilder_ == null) { + leftExpression_ = null; + onChanged(); + } else { + leftExpression_ = null; + leftExpressionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpression.Builder getLeftExpressionBuilder() { + + onChanged(); + return getLeftExpressionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { + if (leftExpressionBuilder_ != null) { + return leftExpressionBuilder_.getMessageOrBuilder(); + } else { + return leftExpression_ == null ? + flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; + } + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> + getLeftExpressionFieldBuilder() { + if (leftExpressionBuilder_ == null) { + leftExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( + getLeftExpression(), + getParentForChildren(), + isClean()); + leftExpression_ = null; + } + return leftExpressionBuilder_; + } + + private flyteidl.core.Condition.BooleanExpression rightExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> rightExpressionBuilder_; + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public boolean hasRightExpression() { + return rightExpressionBuilder_ != null || rightExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpression getRightExpression() { + if (rightExpressionBuilder_ == null) { + return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; + } else { + return rightExpressionBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder setRightExpression(flyteidl.core.Condition.BooleanExpression value) { + if (rightExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rightExpression_ = value; + onChanged(); + } else { + rightExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder setRightExpression( + flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { + if (rightExpressionBuilder_ == null) { + rightExpression_ = builderForValue.build(); + onChanged(); + } else { + rightExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder mergeRightExpression(flyteidl.core.Condition.BooleanExpression value) { + if (rightExpressionBuilder_ == null) { + if (rightExpression_ != null) { + rightExpression_ = + flyteidl.core.Condition.BooleanExpression.newBuilder(rightExpression_).mergeFrom(value).buildPartial(); + } else { + rightExpression_ = value; + } + onChanged(); + } else { + rightExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder clearRightExpression() { + if (rightExpressionBuilder_ == null) { + rightExpression_ = null; + onChanged(); + } else { + rightExpression_ = null; + rightExpressionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpression.Builder getRightExpressionBuilder() { + + onChanged(); + return getRightExpressionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { + if (rightExpressionBuilder_ != null) { + return rightExpressionBuilder_.getMessageOrBuilder(); + } else { + return rightExpression_ == null ? + flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; + } + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> + getRightExpressionFieldBuilder() { + if (rightExpressionBuilder_ == null) { + rightExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( + getRightExpression(), + getParentForChildren(), + isClean()); + rightExpression_ = null; + } + return rightExpressionBuilder_; + } + @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:flyteidl.core.ConjunctionExpression) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConjunctionExpression) + private static final flyteidl.core.Condition.ConjunctionExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.ConjunctionExpression(); + } + + public static flyteidl.core.Condition.ConjunctionExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConjunctionExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConjunctionExpression(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 flyteidl.core.Condition.ConjunctionExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ComparisonExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Operand_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Operand_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BooleanExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConjunctionExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConjunctionExpression_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\035flyteidl/core/condition.proto\022\rflyteid" + + "l.core\032\034flyteidl/core/literals.proto\"\356\001\n" + + "\024ComparisonExpression\022>\n\010operator\030\001 \001(\0162" + + ",.flyteidl.core.ComparisonExpression.Ope" + + "rator\022*\n\nleft_value\030\002 \001(\0132\026.flyteidl.cor" + + "e.Operand\022+\n\013right_value\030\003 \001(\0132\026.flyteid" + + "l.core.Operand\"=\n\010Operator\022\006\n\002EQ\020\000\022\007\n\003NE" + + "Q\020\001\022\006\n\002GT\020\002\022\007\n\003GTE\020\003\022\006\n\002LT\020\004\022\007\n\003LTE\020\005\"N\n" + + "\007Operand\022-\n\tprimitive\030\001 \001(\0132\030.flyteidl.c" + + "ore.PrimitiveH\000\022\r\n\003var\030\002 \001(\tH\000B\005\n\003val\"\223\001" + + "\n\021BooleanExpression\022;\n\013conjunction\030\001 \001(\013" + + "2$.flyteidl.core.ConjunctionExpressionH\000" + + "\0229\n\ncomparison\030\002 \001(\0132#.flyteidl.core.Com" + + "parisonExpressionH\000B\006\n\004expr\"\372\001\n\025Conjunct" + + "ionExpression\022F\n\010operator\030\001 \001(\01624.flytei" + + "dl.core.ConjunctionExpression.LogicalOpe" + + "rator\0229\n\017left_expression\030\002 \001(\0132 .flyteid" + + "l.core.BooleanExpression\022:\n\020right_expres" + + "sion\030\003 \001(\0132 .flyteidl.core.BooleanExpres" + + "sion\"\"\n\017LogicalOperator\022\007\n\003AND\020\000\022\006\n\002OR\020\001" + + "B2Z0github.com/lyft/flyteidl/gen/pb-go/f" + + "lyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Literals.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_ComparisonExpression_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ComparisonExpression_descriptor, + new java.lang.String[] { "Operator", "LeftValue", "RightValue", }); + internal_static_flyteidl_core_Operand_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_Operand_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Operand_descriptor, + new java.lang.String[] { "Primitive", "Var", "Val", }); + internal_static_flyteidl_core_BooleanExpression_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BooleanExpression_descriptor, + new java.lang.String[] { "Conjunction", "Comparison", "Expr", }); + internal_static_flyteidl_core_ConjunctionExpression_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConjunctionExpression_descriptor, + new java.lang.String[] { "Operator", "LeftExpression", "RightExpression", }); + flyteidl.core.Literals.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/DynamicJob.java b/gen/pb-java/flyteidl/core/DynamicJob.java new file mode 100644 index 000000000..4b7962408 --- /dev/null +++ b/gen/pb-java/flyteidl/core/DynamicJob.java @@ -0,0 +1,2542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/dynamic_job.proto + +package flyteidl.core; + +public final class DynamicJob { + private DynamicJob() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DynamicJobSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.DynamicJobSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + java.util.List + getNodesList(); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + flyteidl.core.Workflow.Node getNodes(int index); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + int getNodesCount(); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + java.util.List + getNodesOrBuilderList(); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index); + + /** + *
+     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+     * specified, is the count of nodes repeated field.
+     * 
+ * + * int64 min_successes = 2; + */ + long getMinSuccesses(); + + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + java.util.List + getOutputsList(); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + flyteidl.core.Literals.Binding getOutputs(int index); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + int getOutputsCount(); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + java.util.List + getOutputsOrBuilderList(); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index); + + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + java.util.List + getTasksList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + flyteidl.core.Tasks.TaskTemplate getTasks(int index); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + int getTasksCount(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index); + + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + java.util.List + getSubworkflowsList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + int getSubworkflowsCount(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + java.util.List + getSubworkflowsOrBuilderList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( + int index); + } + /** + *
+   * Describes a set of tasks to execute and how the final outputs are produced.
+   * 
+ * + * Protobuf type {@code flyteidl.core.DynamicJobSpec} + */ + public static final class DynamicJobSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.DynamicJobSpec) + DynamicJobSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DynamicJobSpec.newBuilder() to construct. + private DynamicJobSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DynamicJobSpec() { + nodes_ = java.util.Collections.emptyList(); + outputs_ = java.util.Collections.emptyList(); + tasks_ = java.util.Collections.emptyList(); + subworkflows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DynamicJobSpec( + 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)) { + nodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodes_.add( + input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); + break; + } + case 16: { + + minSuccesses_ = input.readInt64(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + outputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + outputs_.add( + input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + tasks_.add( + input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + subworkflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + subworkflows_.add( + input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.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)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); + } + + private int bitField0_; + public static final int NODES_FIELD_NUMBER = 1; + private java.util.List nodes_; + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List getNodesList() { + return nodes_; + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List + getNodesOrBuilderList() { + return nodes_; + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public int getNodesCount() { + return nodes_.size(); + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + return nodes_.get(index); + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + return nodes_.get(index); + } + + public static final int MIN_SUCCESSES_FIELD_NUMBER = 2; + private long minSuccesses_; + /** + *
+     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+     * specified, is the count of nodes repeated field.
+     * 
+ * + * int64 min_successes = 2; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + + public static final int OUTPUTS_FIELD_NUMBER = 3; + private java.util.List outputs_; + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List getOutputsList() { + return outputs_; + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public int getOutputsCount() { + return outputs_.size(); + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + return outputs_.get(index); + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + return outputs_.get(index); + } + + public static final int TASKS_FIELD_NUMBER = 4; + private java.util.List tasks_; + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + return tasks_.get(index); + } + + public static final int SUBWORKFLOWS_FIELD_NUMBER = 5; + private java.util.List subworkflows_; + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List getSubworkflowsList() { + return subworkflows_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List + getSubworkflowsOrBuilderList() { + return subworkflows_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public int getSubworkflowsCount() { + return subworkflows_.size(); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { + return subworkflows_.get(index); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( + int index) { + return subworkflows_.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 < nodes_.size(); i++) { + output.writeMessage(1, nodes_.get(i)); + } + if (minSuccesses_ != 0L) { + output.writeInt64(2, minSuccesses_); + } + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(3, outputs_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(4, tasks_.get(i)); + } + for (int i = 0; i < subworkflows_.size(); i++) { + output.writeMessage(5, subworkflows_.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 < nodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodes_.get(i)); + } + if (minSuccesses_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, minSuccesses_); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, outputs_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, tasks_.get(i)); + } + for (int i = 0; i < subworkflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, subworkflows_.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 flyteidl.core.DynamicJob.DynamicJobSpec)) { + return super.equals(obj); + } + flyteidl.core.DynamicJob.DynamicJobSpec other = (flyteidl.core.DynamicJob.DynamicJobSpec) obj; + + if (!getNodesList() + .equals(other.getNodesList())) return false; + if (getMinSuccesses() + != other.getMinSuccesses()) return false; + if (!getOutputsList() + .equals(other.getOutputsList())) return false; + if (!getTasksList() + .equals(other.getTasksList())) return false; + if (!getSubworkflowsList() + .equals(other.getSubworkflowsList())) 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 (getNodesCount() > 0) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + getNodesList().hashCode(); + } + hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinSuccesses()); + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + if (getSubworkflowsCount() > 0) { + hash = (37 * hash) + SUBWORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getSubworkflowsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec 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 flyteidl.core.DynamicJob.DynamicJobSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec 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 flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec 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(flyteidl.core.DynamicJob.DynamicJobSpec 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; + } + /** + *
+     * Describes a set of tasks to execute and how the final outputs are produced.
+     * 
+ * + * Protobuf type {@code flyteidl.core.DynamicJobSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.DynamicJobSpec) + flyteidl.core.DynamicJob.DynamicJobSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); + } + + // Construct using flyteidl.core.DynamicJob.DynamicJobSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodesFieldBuilder(); + getOutputsFieldBuilder(); + getTasksFieldBuilder(); + getSubworkflowsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodesBuilder_.clear(); + } + minSuccesses_ = 0L; + + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + outputsBuilder_.clear(); + } + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + tasksBuilder_.clear(); + } + if (subworkflowsBuilder_ == null) { + subworkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + subworkflowsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; + } + + @java.lang.Override + public flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { + return flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.DynamicJob.DynamicJobSpec build() { + flyteidl.core.DynamicJob.DynamicJobSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.DynamicJob.DynamicJobSpec buildPartial() { + flyteidl.core.DynamicJob.DynamicJobSpec result = new flyteidl.core.DynamicJob.DynamicJobSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (nodesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodes_ = nodes_; + } else { + result.nodes_ = nodesBuilder_.build(); + } + result.minSuccesses_ = minSuccesses_; + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + if (subworkflowsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.subworkflows_ = subworkflows_; + } else { + result.subworkflows_ = subworkflowsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.core.DynamicJob.DynamicJobSpec) { + return mergeFrom((flyteidl.core.DynamicJob.DynamicJobSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.DynamicJob.DynamicJobSpec other) { + if (other == flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance()) return this; + if (nodesBuilder_ == null) { + if (!other.nodes_.isEmpty()) { + if (nodes_.isEmpty()) { + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodesIsMutable(); + nodes_.addAll(other.nodes_); + } + onChanged(); + } + } else { + if (!other.nodes_.isEmpty()) { + if (nodesBuilder_.isEmpty()) { + nodesBuilder_.dispose(); + nodesBuilder_ = null; + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodesFieldBuilder() : null; + } else { + nodesBuilder_.addAllMessages(other.nodes_); + } + } + } + if (other.getMinSuccesses() != 0L) { + setMinSuccesses(other.getMinSuccesses()); + } + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000004); + outputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputsFieldBuilder() : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000008); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + if (subworkflowsBuilder_ == null) { + if (!other.subworkflows_.isEmpty()) { + if (subworkflows_.isEmpty()) { + subworkflows_ = other.subworkflows_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSubworkflowsIsMutable(); + subworkflows_.addAll(other.subworkflows_); + } + onChanged(); + } + } else { + if (!other.subworkflows_.isEmpty()) { + if (subworkflowsBuilder_.isEmpty()) { + subworkflowsBuilder_.dispose(); + subworkflowsBuilder_ = null; + subworkflows_ = other.subworkflows_; + bitField0_ = (bitField0_ & ~0x00000010); + subworkflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubworkflowsFieldBuilder() : null; + } else { + subworkflowsBuilder_.addAllMessages(other.subworkflows_); + } + } + } + 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 { + flyteidl.core.DynamicJob.DynamicJobSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.DynamicJob.DynamicJobSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List nodes_ = + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; + + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes(flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodes_); + onChanged(); + } else { + nodesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodesBuilder_.clear(); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node.Builder getNodesBuilder( + int index) { + return getNodesFieldBuilder().getBuilder(index); + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { + return nodesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { + return getNodesFieldBuilder().addBuilder( + flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder( + int index) { + return getNodesFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List + getNodesBuilderList() { + return getNodesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + nodes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nodes_ = null; + } + return nodesBuilder_; + } + + private long minSuccesses_ ; + /** + *
+       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+       * specified, is the count of nodes repeated field.
+       * 
+ * + * int64 min_successes = 2; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + /** + *
+       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+       * specified, is the count of nodes repeated field.
+       * 
+ * + * int64 min_successes = 2; + */ + public Builder setMinSuccesses(long value) { + + minSuccesses_ = value; + onChanged(); + return this; + } + /** + *
+       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+       * specified, is the count of nodes repeated field.
+       * 
+ * + * int64 min_successes = 2; + */ + public Builder clearMinSuccesses() { + + minSuccesses_ = 0L; + onChanged(); + return this; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; + + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs(flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs( + flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( + int index) { + return getOutputsFieldBuilder().getBuilder(index); + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { + return getOutputsFieldBuilder().addBuilder( + flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( + int index) { + return getOutputsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List + getOutputsBuilderList() { + return getOutputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( + outputs_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; + + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + tasks_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + + private java.util.List subworkflows_ = + java.util.Collections.emptyList(); + private void ensureSubworkflowsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + subworkflows_ = new java.util.ArrayList(subworkflows_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> subworkflowsBuilder_; + + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List getSubworkflowsList() { + if (subworkflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subworkflows_); + } else { + return subworkflowsBuilder_.getMessageList(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public int getSubworkflowsCount() { + if (subworkflowsBuilder_ == null) { + return subworkflows_.size(); + } else { + return subworkflowsBuilder_.getCount(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { + if (subworkflowsBuilder_ == null) { + return subworkflows_.get(index); + } else { + return subworkflowsBuilder_.getMessage(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder setSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subworkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubworkflowsIsMutable(); + subworkflows_.set(index, value); + onChanged(); + } else { + subworkflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder setSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.set(index, builderForValue.build()); + onChanged(); + } else { + subworkflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows(flyteidl.core.Workflow.WorkflowTemplate value) { + if (subworkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubworkflowsIsMutable(); + subworkflows_.add(value); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subworkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubworkflowsIsMutable(); + subworkflows_.add(index, value); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.add(builderForValue.build()); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.add(index, builderForValue.build()); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addAllSubworkflows( + java.lang.Iterable values) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subworkflows_); + onChanged(); + } else { + subworkflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder clearSubworkflows() { + if (subworkflowsBuilder_ == null) { + subworkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + subworkflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder removeSubworkflows(int index) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.remove(index); + onChanged(); + } else { + subworkflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getSubworkflowsBuilder( + int index) { + return getSubworkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( + int index) { + if (subworkflowsBuilder_ == null) { + return subworkflows_.get(index); } else { + return subworkflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List + getSubworkflowsOrBuilderList() { + if (subworkflowsBuilder_ != null) { + return subworkflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subworkflows_); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder() { + return getSubworkflowsFieldBuilder().addBuilder( + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder( + int index) { + return getSubworkflowsFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List + getSubworkflowsBuilderList() { + return getSubworkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getSubworkflowsFieldBuilder() { + if (subworkflowsBuilder_ == null) { + subworkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + subworkflows_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + subworkflows_ = null; + } + return subworkflowsBuilder_; + } + @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:flyteidl.core.DynamicJobSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.DynamicJobSpec) + private static final flyteidl.core.DynamicJob.DynamicJobSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.DynamicJob.DynamicJobSpec(); + } + + public static flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DynamicJobSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DynamicJobSpec(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 flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_DynamicJobSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_DynamicJobSpec_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\037flyteidl/core/dynamic_job.proto\022\rflyte" + + "idl.core\032\031flyteidl/core/tasks.proto\032\034fly" + + "teidl/core/workflow.proto\032\034flyteidl/core" + + "/literals.proto\"\327\001\n\016DynamicJobSpec\022\"\n\005no" + + "des\030\001 \003(\0132\023.flyteidl.core.Node\022\025\n\rmin_su" + + "ccesses\030\002 \001(\003\022\'\n\007outputs\030\003 \003(\0132\026.flyteid" + + "l.core.Binding\022*\n\005tasks\030\004 \003(\0132\033.flyteidl" + + ".core.TaskTemplate\0225\n\014subworkflows\030\005 \003(\013" + + "2\037.flyteidl.core.WorkflowTemplateB2Z0git" + + "hub.com/lyft/flyteidl/gen/pb-go/flyteidl" + + "/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Tasks.getDescriptor(), + flyteidl.core.Workflow.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_DynamicJobSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_DynamicJobSpec_descriptor, + new java.lang.String[] { "Nodes", "MinSuccesses", "Outputs", "Tasks", "Subworkflows", }); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Errors.java b/gen/pb-java/flyteidl/core/Errors.java new file mode 100644 index 000000000..077cb58e0 --- /dev/null +++ b/gen/pb-java/flyteidl/core/Errors.java @@ -0,0 +1,1882 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/errors.proto + +package flyteidl.core; + +public final class Errors { + private Errors() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ContainerErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ContainerError) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + java.lang.String getCode(); + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + com.google.protobuf.ByteString + getCodeBytes(); + + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + int getKindValue(); + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + flyteidl.core.Errors.ContainerError.Kind getKind(); + + /** + *
+     * Defines the origin of the error (system, user, unknown).
+     * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + int getOriginValue(); + /** + *
+     * Defines the origin of the error (system, user, unknown).
+     * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin(); + } + /** + *
+   * Error message to propagate detailed errors from container executions to the execution
+   * engine.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ContainerError} + */ + public static final class ContainerError extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerError) + ContainerErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContainerError.newBuilder() to construct. + private ContainerError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContainerError() { + code_ = ""; + message_ = ""; + kind_ = 0; + origin_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContainerError( + 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(); + + code_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + kind_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); + + origin_ = rawValue; + 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 flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); + } + + /** + *
+     * Defines a generic error type that dictates the behavior of the retry strategy.
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ContainerError.Kind} + */ + public enum Kind + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NON_RECOVERABLE = 0; + */ + NON_RECOVERABLE(0), + /** + * RECOVERABLE = 1; + */ + RECOVERABLE(1), + UNRECOGNIZED(-1), + ; + + /** + * NON_RECOVERABLE = 0; + */ + public static final int NON_RECOVERABLE_VALUE = 0; + /** + * RECOVERABLE = 1; + */ + public static final int RECOVERABLE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Kind valueOf(int value) { + return forNumber(value); + } + + public static Kind forNumber(int value) { + switch (value) { + case 0: return NON_RECOVERABLE; + case 1: return RECOVERABLE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Kind> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Kind findValueByNumber(int number) { + return Kind.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Errors.ContainerError.getDescriptor().getEnumTypes().get(0); + } + + private static final Kind[] VALUES = values(); + + public static Kind 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 Kind(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ContainerError.Kind) + } + + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + 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(); + code_ = s; + return s; + } + } + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KIND_FIELD_NUMBER = 3; + private int kind_; + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public int getKindValue() { + return kind_; + } + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public flyteidl.core.Errors.ContainerError.Kind getKind() { + @SuppressWarnings("deprecation") + flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); + return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; + } + + public static final int ORIGIN_FIELD_NUMBER = 4; + private int origin_; + /** + *
+     * Defines the origin of the error (system, user, unknown).
+     * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public int getOriginValue() { + return origin_; + } + /** + *
+     * Defines the origin of the error (system, user, unknown).
+     * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(origin_); + return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; + } + + 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 (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { + output.writeEnum(3, kind_); + } + if (origin_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { + output.writeEnum(4, origin_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, kind_); + } + if (origin_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, origin_); + } + 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 flyteidl.core.Errors.ContainerError)) { + return super.equals(obj); + } + flyteidl.core.Errors.ContainerError other = (flyteidl.core.Errors.ContainerError) obj; + + if (!getCode() + .equals(other.getCode())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (kind_ != other.kind_) return false; + if (origin_ != other.origin_) 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) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + kind_; + hash = (37 * hash) + ORIGIN_FIELD_NUMBER; + hash = (53 * hash) + origin_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Errors.ContainerError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ContainerError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ContainerError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ContainerError 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 flyteidl.core.Errors.ContainerError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ContainerError 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 flyteidl.core.Errors.ContainerError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ContainerError 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(flyteidl.core.Errors.ContainerError 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; + } + /** + *
+     * Error message to propagate detailed errors from container executions to the execution
+     * engine.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ContainerError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerError) + flyteidl.core.Errors.ContainerErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); + } + + // Construct using flyteidl.core.Errors.ContainerError.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(); + code_ = ""; + + message_ = ""; + + kind_ = 0; + + origin_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; + } + + @java.lang.Override + public flyteidl.core.Errors.ContainerError getDefaultInstanceForType() { + return flyteidl.core.Errors.ContainerError.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Errors.ContainerError build() { + flyteidl.core.Errors.ContainerError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Errors.ContainerError buildPartial() { + flyteidl.core.Errors.ContainerError result = new flyteidl.core.Errors.ContainerError(this); + result.code_ = code_; + result.message_ = message_; + result.kind_ = kind_; + result.origin_ = origin_; + 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 flyteidl.core.Errors.ContainerError) { + return mergeFrom((flyteidl.core.Errors.ContainerError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Errors.ContainerError other) { + if (other == flyteidl.core.Errors.ContainerError.getDefaultInstance()) return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.kind_ != 0) { + setKindValue(other.getKindValue()); + } + if (other.origin_ != 0) { + setOriginValue(other.getOriginValue()); + } + 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 { + flyteidl.core.Errors.ContainerError parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Errors.ContainerError) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private int kind_ = 0; + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public int getKindValue() { + return kind_; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public Builder setKindValue(int value) { + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public flyteidl.core.Errors.ContainerError.Kind getKind() { + @SuppressWarnings("deprecation") + flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); + return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public Builder setKind(flyteidl.core.Errors.ContainerError.Kind value) { + if (value == null) { + throw new NullPointerException(); + } + + kind_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public Builder clearKind() { + + kind_ = 0; + onChanged(); + return this; + } + + private int origin_ = 0; + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public int getOriginValue() { + return origin_; + } + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public Builder setOriginValue(int value) { + origin_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(origin_); + return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; + } + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public Builder setOrigin(flyteidl.core.Execution.ExecutionError.ErrorKind value) { + if (value == null) { + throw new NullPointerException(); + } + + origin_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public Builder clearOrigin() { + + origin_ = 0; + 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:flyteidl.core.ContainerError) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerError) + private static final flyteidl.core.Errors.ContainerError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Errors.ContainerError(); + } + + public static flyteidl.core.Errors.ContainerError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContainerError(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 flyteidl.core.Errors.ContainerError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ErrorDocumentOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ErrorDocument) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + boolean hasError(); + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + flyteidl.core.Errors.ContainerError getError(); + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder(); + } + /** + *
+   * Defines the errors.pb file format the container can produce to communicate
+   * failure reasons to the execution engine.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ErrorDocument} + */ + public static final class ErrorDocument extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ErrorDocument) + ErrorDocumentOrBuilder { + private static final long serialVersionUID = 0L; + // Use ErrorDocument.newBuilder() to construct. + private ErrorDocument(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ErrorDocument() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ErrorDocument( + 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: { + flyteidl.core.Errors.ContainerError.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(flyteidl.core.Errors.ContainerError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = 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 flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); + } + + public static final int ERROR_FIELD_NUMBER = 1; + private flyteidl.core.Errors.ContainerError error_; + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public boolean hasError() { + return error_ != null; + } + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerError getError() { + return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; + } + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { + return getError(); + } + + 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 (error_ != null) { + output.writeMessage(1, getError()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getError()); + } + 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 flyteidl.core.Errors.ErrorDocument)) { + return super.equals(obj); + } + flyteidl.core.Errors.ErrorDocument other = (flyteidl.core.Errors.ErrorDocument) obj; + + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError() + .equals(other.getError())) 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 (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Errors.ErrorDocument parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ErrorDocument 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 flyteidl.core.Errors.ErrorDocument parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ErrorDocument 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 flyteidl.core.Errors.ErrorDocument parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ErrorDocument 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(flyteidl.core.Errors.ErrorDocument 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; + } + /** + *
+     * Defines the errors.pb file format the container can produce to communicate
+     * failure reasons to the execution engine.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ErrorDocument} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ErrorDocument) + flyteidl.core.Errors.ErrorDocumentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); + } + + // Construct using flyteidl.core.Errors.ErrorDocument.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 (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; + } + + @java.lang.Override + public flyteidl.core.Errors.ErrorDocument getDefaultInstanceForType() { + return flyteidl.core.Errors.ErrorDocument.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Errors.ErrorDocument build() { + flyteidl.core.Errors.ErrorDocument result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Errors.ErrorDocument buildPartial() { + flyteidl.core.Errors.ErrorDocument result = new flyteidl.core.Errors.ErrorDocument(this); + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.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 flyteidl.core.Errors.ErrorDocument) { + return mergeFrom((flyteidl.core.Errors.ErrorDocument)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Errors.ErrorDocument other) { + if (other == flyteidl.core.Errors.ErrorDocument.getDefaultInstance()) return this; + if (other.hasError()) { + mergeError(other.getError()); + } + 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 { + flyteidl.core.Errors.ErrorDocument parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Errors.ErrorDocument) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Errors.ContainerError error_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> errorBuilder_; + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerError getError() { + if (errorBuilder_ == null) { + return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder setError(flyteidl.core.Errors.ContainerError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder setError( + flyteidl.core.Errors.ContainerError.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder mergeError(flyteidl.core.Errors.ContainerError value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = + flyteidl.core.Errors.ContainerError.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerError.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? + flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; + } + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder>( + getError(), + getParentForChildren(), + isClean()); + error_ = null; + } + return errorBuilder_; + } + @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:flyteidl.core.ErrorDocument) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ErrorDocument) + private static final flyteidl.core.Errors.ErrorDocument DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Errors.ErrorDocument(); + } + + public static flyteidl.core.Errors.ErrorDocument getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorDocument parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorDocument(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 flyteidl.core.Errors.ErrorDocument getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ContainerError_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ContainerError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ErrorDocument_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ErrorDocument_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\032flyteidl/core/errors.proto\022\rflyteidl.c" + + "ore\032\035flyteidl/core/execution.proto\"\310\001\n\016C" + + "ontainerError\022\014\n\004code\030\001 \001(\t\022\017\n\007message\030\002" + + " \001(\t\0220\n\004kind\030\003 \001(\0162\".flyteidl.core.Conta" + + "inerError.Kind\0227\n\006origin\030\004 \001(\0162\'.flyteid" + + "l.core.ExecutionError.ErrorKind\",\n\004Kind\022" + + "\023\n\017NON_RECOVERABLE\020\000\022\017\n\013RECOVERABLE\020\001\"=\n" + + "\rErrorDocument\022,\n\005error\030\001 \001(\0132\035.flyteidl" + + ".core.ContainerErrorB2Z0github.com/lyft/" + + "flyteidl/gen/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_ContainerError_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_ContainerError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ContainerError_descriptor, + new java.lang.String[] { "Code", "Message", "Kind", "Origin", }); + internal_static_flyteidl_core_ErrorDocument_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ErrorDocument_descriptor, + new java.lang.String[] { "Error", }); + flyteidl.core.Execution.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Execution.java b/gen/pb-java/flyteidl/core/Execution.java new file mode 100644 index 000000000..35c7a3c95 --- /dev/null +++ b/gen/pb-java/flyteidl/core/Execution.java @@ -0,0 +1,5764 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/execution.proto + +package flyteidl.core; + +public final class Execution { + private Execution() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecution) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Indicates various phases of Workflow Execution
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecution} + */ + public static final class WorkflowExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecution) + WorkflowExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecution.newBuilder() to construct. + private WorkflowExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecution( + 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; + 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 flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.WorkflowExecution.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * QUEUED = 1; + */ + QUEUED(1), + /** + * RUNNING = 2; + */ + RUNNING(2), + /** + * SUCCEEDING = 3; + */ + SUCCEEDING(3), + /** + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + /** + * FAILING = 5; + */ + FAILING(5), + /** + * FAILED = 6; + */ + FAILED(6), + /** + * ABORTED = 7; + */ + ABORTED(7), + /** + * TIMED_OUT = 8; + */ + TIMED_OUT(8), + UNRECOGNIZED(-1), + ; + + /** + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + /** + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * SUCCEEDING = 3; + */ + public static final int SUCCEEDING_VALUE = 3; + /** + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + /** + * FAILING = 5; + */ + public static final int FAILING_VALUE = 5; + /** + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + /** + * ABORTED = 7; + */ + public static final int ABORTED_VALUE = 7; + /** + * TIMED_OUT = 8; + */ + public static final int TIMED_OUT_VALUE = 8; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + public static Phase forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return QUEUED; + case 2: return RUNNING; + case 3: return SUCCEEDING; + case 4: return SUCCEEDED; + case 5: return FAILING; + case 6: return FAILED; + case 7: return ABORTED; + case 8: return TIMED_OUT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Execution.WorkflowExecution.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase 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 Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowExecution.Phase) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.core.Execution.WorkflowExecution)) { + return super.equals(obj); + } + flyteidl.core.Execution.WorkflowExecution other = (flyteidl.core.Execution.WorkflowExecution) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.WorkflowExecution 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 flyteidl.core.Execution.WorkflowExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.WorkflowExecution 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 flyteidl.core.Execution.WorkflowExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.WorkflowExecution 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(flyteidl.core.Execution.WorkflowExecution 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; + } + /** + *
+     * Indicates various phases of Workflow Execution
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecution) + flyteidl.core.Execution.WorkflowExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); + } + + // Construct using flyteidl.core.Execution.WorkflowExecution.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() { + return flyteidl.core.Execution.WorkflowExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.WorkflowExecution build() { + flyteidl.core.Execution.WorkflowExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.WorkflowExecution buildPartial() { + flyteidl.core.Execution.WorkflowExecution result = new flyteidl.core.Execution.WorkflowExecution(this); + 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 flyteidl.core.Execution.WorkflowExecution) { + return mergeFrom((flyteidl.core.Execution.WorkflowExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.WorkflowExecution other) { + if (other == flyteidl.core.Execution.WorkflowExecution.getDefaultInstance()) return this; + 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 { + flyteidl.core.Execution.WorkflowExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.WorkflowExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.core.WorkflowExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecution) + private static final flyteidl.core.Execution.WorkflowExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.WorkflowExecution(); + } + + public static flyteidl.core.Execution.WorkflowExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecution(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 flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecution) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Indicates various phases of Node Execution
+   * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecution} + */ + public static final class NodeExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecution) + NodeExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecution.newBuilder() to construct. + private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecution( + 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; + 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 flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.NodeExecution.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * QUEUED = 1; + */ + QUEUED(1), + /** + * RUNNING = 2; + */ + RUNNING(2), + /** + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * FAILING = 4; + */ + FAILING(4), + /** + * FAILED = 5; + */ + FAILED(5), + /** + * ABORTED = 6; + */ + ABORTED(6), + /** + * SKIPPED = 7; + */ + SKIPPED(7), + /** + * TIMED_OUT = 8; + */ + TIMED_OUT(8), + UNRECOGNIZED(-1), + ; + + /** + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + /** + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + /** + * FAILING = 4; + */ + public static final int FAILING_VALUE = 4; + /** + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + /** + * ABORTED = 6; + */ + public static final int ABORTED_VALUE = 6; + /** + * SKIPPED = 7; + */ + public static final int SKIPPED_VALUE = 7; + /** + * TIMED_OUT = 8; + */ + public static final int TIMED_OUT_VALUE = 8; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + public static Phase forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return QUEUED; + case 2: return RUNNING; + case 3: return SUCCEEDED; + case 4: return FAILING; + case 5: return FAILED; + case 6: return ABORTED; + case 7: return SKIPPED; + case 8: return TIMED_OUT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Execution.NodeExecution.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase 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 Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.NodeExecution.Phase) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.core.Execution.NodeExecution)) { + return super.equals(obj); + } + flyteidl.core.Execution.NodeExecution other = (flyteidl.core.Execution.NodeExecution) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.NodeExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.NodeExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.NodeExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.NodeExecution 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 flyteidl.core.Execution.NodeExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.NodeExecution 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 flyteidl.core.Execution.NodeExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.NodeExecution 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(flyteidl.core.Execution.NodeExecution 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; + } + /** + *
+     * Indicates various phases of Node Execution
+     * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecution) + flyteidl.core.Execution.NodeExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); + } + + // Construct using flyteidl.core.Execution.NodeExecution.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() { + return flyteidl.core.Execution.NodeExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.NodeExecution build() { + flyteidl.core.Execution.NodeExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.NodeExecution buildPartial() { + flyteidl.core.Execution.NodeExecution result = new flyteidl.core.Execution.NodeExecution(this); + 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 flyteidl.core.Execution.NodeExecution) { + return mergeFrom((flyteidl.core.Execution.NodeExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.NodeExecution other) { + if (other == flyteidl.core.Execution.NodeExecution.getDefaultInstance()) return this; + 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 { + flyteidl.core.Execution.NodeExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.NodeExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.core.NodeExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecution) + private static final flyteidl.core.Execution.NodeExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.NodeExecution(); + } + + public static flyteidl.core.Execution.NodeExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecution(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 flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecution) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
+   * but this is the cumulative list that customers may want to know about for their task.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecution} + */ + public static final class TaskExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecution) + TaskExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecution.newBuilder() to construct. + private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecution( + 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; + 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 flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.TaskExecution.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * QUEUED = 1; + */ + QUEUED(1), + /** + * RUNNING = 2; + */ + RUNNING(2), + /** + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * ABORTED = 4; + */ + ABORTED(4), + /** + * FAILED = 5; + */ + FAILED(5), + /** + *
+       * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
+       * 
+ * + * INITIALIZING = 6; + */ + INITIALIZING(6), + /** + *
+       * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
+       * 
+ * + * WAITING_FOR_RESOURCES = 7; + */ + WAITING_FOR_RESOURCES(7), + UNRECOGNIZED(-1), + ; + + /** + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + /** + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + /** + * ABORTED = 4; + */ + public static final int ABORTED_VALUE = 4; + /** + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + /** + *
+       * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
+       * 
+ * + * INITIALIZING = 6; + */ + public static final int INITIALIZING_VALUE = 6; + /** + *
+       * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
+       * 
+ * + * WAITING_FOR_RESOURCES = 7; + */ + public static final int WAITING_FOR_RESOURCES_VALUE = 7; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + public static Phase forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return QUEUED; + case 2: return RUNNING; + case 3: return SUCCEEDED; + case 4: return ABORTED; + case 5: return FAILED; + case 6: return INITIALIZING; + case 7: return WAITING_FOR_RESOURCES; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Execution.TaskExecution.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase 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 Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskExecution.Phase) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.core.Execution.TaskExecution)) { + return super.equals(obj); + } + flyteidl.core.Execution.TaskExecution other = (flyteidl.core.Execution.TaskExecution) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.TaskExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskExecution 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 flyteidl.core.Execution.TaskExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskExecution 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 flyteidl.core.Execution.TaskExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskExecution 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(flyteidl.core.Execution.TaskExecution 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; + } + /** + *
+     * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
+     * but this is the cumulative list that customers may want to know about for their task.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecution) + flyteidl.core.Execution.TaskExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); + } + + // Construct using flyteidl.core.Execution.TaskExecution.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() { + return flyteidl.core.Execution.TaskExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.TaskExecution build() { + flyteidl.core.Execution.TaskExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskExecution buildPartial() { + flyteidl.core.Execution.TaskExecution result = new flyteidl.core.Execution.TaskExecution(this); + 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 flyteidl.core.Execution.TaskExecution) { + return mergeFrom((flyteidl.core.Execution.TaskExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.TaskExecution other) { + if (other == flyteidl.core.Execution.TaskExecution.getDefaultInstance()) return this; + 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 { + flyteidl.core.Execution.TaskExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.TaskExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.core.TaskExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecution) + private static final flyteidl.core.Execution.TaskExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskExecution(); + } + + public static flyteidl.core.Execution.TaskExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecution(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 flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ExecutionError) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + java.lang.String getCode(); + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + com.google.protobuf.ByteString + getCodeBytes(); + + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + java.lang.String getErrorUri(); + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + com.google.protobuf.ByteString + getErrorUriBytes(); + + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + int getKindValue(); + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + flyteidl.core.Execution.ExecutionError.ErrorKind getKind(); + } + /** + *
+   * Represents the error message from the execution.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ExecutionError} + */ + public static final class ExecutionError extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ExecutionError) + ExecutionErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionError.newBuilder() to construct. + private ExecutionError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionError() { + code_ = ""; + message_ = ""; + errorUri_ = ""; + kind_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionError( + 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(); + + code_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + errorUri_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + kind_ = rawValue; + 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 flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); + } + + /** + *
+     * Error type: System or User
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ExecutionError.ErrorKind} + */ + public enum ErrorKind + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * USER = 1; + */ + USER(1), + /** + * SYSTEM = 2; + */ + SYSTEM(2), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * USER = 1; + */ + public static final int USER_VALUE = 1; + /** + * SYSTEM = 2; + */ + public static final int SYSTEM_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ErrorKind valueOf(int value) { + return forNumber(value); + } + + public static ErrorKind forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return USER; + case 2: return SYSTEM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ErrorKind> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ErrorKind findValueByNumber(int number) { + return ErrorKind.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Execution.ExecutionError.getDescriptor().getEnumTypes().get(0); + } + + private static final ErrorKind[] VALUES = values(); + + public static ErrorKind 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 ErrorKind(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ExecutionError.ErrorKind) + } + + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + 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(); + code_ = s; + return s; + } + } + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object errorUri_; + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + public java.lang.String getErrorUri() { + java.lang.Object ref = errorUri_; + 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(); + errorUri_ = s; + return s; + } + } + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + public com.google.protobuf.ByteString + getErrorUriBytes() { + java.lang.Object ref = errorUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KIND_FIELD_NUMBER = 4; + private int kind_; + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public int getKindValue() { + return kind_; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_); + return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; + } + + 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 (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (!getErrorUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorUri_); + } + if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { + output.writeEnum(4, kind_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (!getErrorUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorUri_); + } + if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, kind_); + } + 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 flyteidl.core.Execution.ExecutionError)) { + return super.equals(obj); + } + flyteidl.core.Execution.ExecutionError other = (flyteidl.core.Execution.ExecutionError) obj; + + if (!getCode() + .equals(other.getCode())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!getErrorUri() + .equals(other.getErrorUri())) return false; + if (kind_ != other.kind_) 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) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + ERROR_URI_FIELD_NUMBER; + hash = (53 * hash) + getErrorUri().hashCode(); + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + kind_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.ExecutionError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.ExecutionError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.ExecutionError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.ExecutionError 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 flyteidl.core.Execution.ExecutionError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.ExecutionError 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 flyteidl.core.Execution.ExecutionError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.ExecutionError 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(flyteidl.core.Execution.ExecutionError 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; + } + /** + *
+     * Represents the error message from the execution.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ExecutionError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ExecutionError) + flyteidl.core.Execution.ExecutionErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); + } + + // Construct using flyteidl.core.Execution.ExecutionError.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(); + code_ = ""; + + message_ = ""; + + errorUri_ = ""; + + kind_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() { + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.ExecutionError build() { + flyteidl.core.Execution.ExecutionError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.ExecutionError buildPartial() { + flyteidl.core.Execution.ExecutionError result = new flyteidl.core.Execution.ExecutionError(this); + result.code_ = code_; + result.message_ = message_; + result.errorUri_ = errorUri_; + result.kind_ = kind_; + 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 flyteidl.core.Execution.ExecutionError) { + return mergeFrom((flyteidl.core.Execution.ExecutionError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.ExecutionError other) { + if (other == flyteidl.core.Execution.ExecutionError.getDefaultInstance()) return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getErrorUri().isEmpty()) { + errorUri_ = other.errorUri_; + onChanged(); + } + if (other.kind_ != 0) { + setKindValue(other.getKindValue()); + } + 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 { + flyteidl.core.Execution.ExecutionError parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.ExecutionError) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private java.lang.Object errorUri_ = ""; + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public java.lang.String getErrorUri() { + java.lang.Object ref = errorUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public com.google.protobuf.ByteString + getErrorUriBytes() { + java.lang.Object ref = errorUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public Builder setErrorUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + errorUri_ = value; + onChanged(); + return this; + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public Builder clearErrorUri() { + + errorUri_ = getDefaultInstance().getErrorUri(); + onChanged(); + return this; + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public Builder setErrorUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + errorUri_ = value; + onChanged(); + return this; + } + + private int kind_ = 0; + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public int getKindValue() { + return kind_; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public Builder setKindValue(int value) { + kind_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_); + return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public Builder setKind(flyteidl.core.Execution.ExecutionError.ErrorKind value) { + if (value == null) { + throw new NullPointerException(); + } + + kind_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public Builder clearKind() { + + kind_ = 0; + 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:flyteidl.core.ExecutionError) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionError) + private static final flyteidl.core.Execution.ExecutionError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.ExecutionError(); + } + + public static flyteidl.core.Execution.ExecutionError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionError(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 flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskLogOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskLog) + com.google.protobuf.MessageOrBuilder { + + /** + * string uri = 1; + */ + java.lang.String getUri(); + /** + * string uri = 1; + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + * string name = 2; + */ + java.lang.String getName(); + /** + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + int getMessageFormatValue(); + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat(); + + /** + * .google.protobuf.Duration ttl = 4; + */ + boolean hasTtl(); + /** + * .google.protobuf.Duration ttl = 4; + */ + com.google.protobuf.Duration getTtl(); + /** + * .google.protobuf.Duration ttl = 4; + */ + com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); + } + /** + *
+   * Log information for the task that is specific to a log sink
+   * When our log story is flushed out, we may have more metadata here like log link expiry
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskLog} + */ + public static final class TaskLog extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskLog) + TaskLogOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskLog.newBuilder() to construct. + private TaskLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskLog() { + uri_ = ""; + name_ = ""; + messageFormat_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskLog( + 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(); + + uri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + messageFormat_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (ttl_ != null) { + subBuilder = ttl_.toBuilder(); + } + ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ttl_); + ttl_ = 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 flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.TaskLog.MessageFormat} + */ + public enum MessageFormat + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * CSV = 1; + */ + CSV(1), + /** + * JSON = 2; + */ + JSON(2), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * CSV = 1; + */ + public static final int CSV_VALUE = 1; + /** + * JSON = 2; + */ + public static final int JSON_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MessageFormat valueOf(int value) { + return forNumber(value); + } + + public static MessageFormat forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return CSV; + case 2: return JSON; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MessageFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MessageFormat findValueByNumber(int number) { + return MessageFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Execution.TaskLog.getDescriptor().getEnumTypes().get(0); + } + + private static final MessageFormat[] VALUES = values(); + + public static MessageFormat 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 MessageFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskLog.MessageFormat) + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * string name = 2; + */ + 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; + } + } + /** + * string name = 2; + */ + 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 MESSAGE_FORMAT_FIELD_NUMBER = 3; + private int messageFormat_; + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public int getMessageFormatValue() { + return messageFormat_; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); + return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; + } + + public static final int TTL_FIELD_NUMBER = 4; + private com.google.protobuf.Duration ttl_; + /** + * .google.protobuf.Duration ttl = 4; + */ + public boolean hasTtl() { + return ttl_ != null; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.Duration getTtl() { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + return getTtl(); + } + + 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 (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { + output.writeEnum(3, messageFormat_); + } + if (ttl_ != null) { + output.writeMessage(4, getTtl()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, messageFormat_); + } + if (ttl_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTtl()); + } + 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 flyteidl.core.Execution.TaskLog)) { + return super.equals(obj); + } + flyteidl.core.Execution.TaskLog other = (flyteidl.core.Execution.TaskLog) obj; + + if (!getUri() + .equals(other.getUri())) return false; + if (!getName() + .equals(other.getName())) return false; + if (messageFormat_ != other.messageFormat_) return false; + if (hasTtl() != other.hasTtl()) return false; + if (hasTtl()) { + if (!getTtl() + .equals(other.getTtl())) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MESSAGE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + messageFormat_; + if (hasTtl()) { + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTtl().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.TaskLog parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskLog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskLog 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 flyteidl.core.Execution.TaskLog parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskLog 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 flyteidl.core.Execution.TaskLog parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskLog 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(flyteidl.core.Execution.TaskLog 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; + } + /** + *
+     * Log information for the task that is specific to a log sink
+     * When our log story is flushed out, we may have more metadata here like log link expiry
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskLog} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskLog) + flyteidl.core.Execution.TaskLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); + } + + // Construct using flyteidl.core.Execution.TaskLog.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(); + uri_ = ""; + + name_ = ""; + + messageFormat_ = 0; + + if (ttlBuilder_ == null) { + ttl_ = null; + } else { + ttl_ = null; + ttlBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskLog getDefaultInstanceForType() { + return flyteidl.core.Execution.TaskLog.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.TaskLog build() { + flyteidl.core.Execution.TaskLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskLog buildPartial() { + flyteidl.core.Execution.TaskLog result = new flyteidl.core.Execution.TaskLog(this); + result.uri_ = uri_; + result.name_ = name_; + result.messageFormat_ = messageFormat_; + if (ttlBuilder_ == null) { + result.ttl_ = ttl_; + } else { + result.ttl_ = ttlBuilder_.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 flyteidl.core.Execution.TaskLog) { + return mergeFrom((flyteidl.core.Execution.TaskLog)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.TaskLog other) { + if (other == flyteidl.core.Execution.TaskLog.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.messageFormat_ != 0) { + setMessageFormatValue(other.getMessageFormatValue()); + } + if (other.hasTtl()) { + mergeTtl(other.getTtl()); + } + 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 { + flyteidl.core.Execution.TaskLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.TaskLog) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uri_ = ""; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uri = 1; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2; + */ + 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; + } + } + /** + * string name = 2; + */ + 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; + } + } + /** + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int messageFormat_ = 0; + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public int getMessageFormatValue() { + return messageFormat_; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public Builder setMessageFormatValue(int value) { + messageFormat_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); + return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public Builder setMessageFormat(flyteidl.core.Execution.TaskLog.MessageFormat value) { + if (value == null) { + throw new NullPointerException(); + } + + messageFormat_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public Builder clearMessageFormat() { + + messageFormat_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration ttl_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; + /** + * .google.protobuf.Duration ttl = 4; + */ + public boolean hasTtl() { + return ttlBuilder_ != null || ttl_ != null; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.Duration getTtl() { + if (ttlBuilder_ == null) { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } else { + return ttlBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder setTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ttl_ = value; + onChanged(); + } else { + ttlBuilder_.setMessage(value); + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder setTtl( + com.google.protobuf.Duration.Builder builderForValue) { + if (ttlBuilder_ == null) { + ttl_ = builderForValue.build(); + onChanged(); + } else { + ttlBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder mergeTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (ttl_ != null) { + ttl_ = + com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial(); + } else { + ttl_ = value; + } + onChanged(); + } else { + ttlBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder clearTtl() { + if (ttlBuilder_ == null) { + ttl_ = null; + onChanged(); + } else { + ttl_ = null; + ttlBuilder_ = null; + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.Duration.Builder getTtlBuilder() { + + onChanged(); + return getTtlFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if (ttlBuilder_ != null) { + return ttlBuilder_.getMessageOrBuilder(); + } else { + return ttl_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + } + /** + * .google.protobuf.Duration ttl = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTtlFieldBuilder() { + if (ttlBuilder_ == null) { + ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTtl(), + getParentForChildren(), + isClean()); + ttl_ = null; + } + return ttlBuilder_; + } + @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:flyteidl.core.TaskLog) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskLog) + private static final flyteidl.core.Execution.TaskLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskLog(); + } + + public static flyteidl.core.Execution.TaskLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskLog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskLog(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 flyteidl.core.Execution.TaskLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QualityOfServiceSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.QualityOfServiceSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + boolean hasQueueingBudget(); + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + com.google.protobuf.Duration getQueueingBudget(); + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder(); + } + /** + *
+   * Represents customized execution run-time attributes.
+   * 
+ * + * Protobuf type {@code flyteidl.core.QualityOfServiceSpec} + */ + public static final class QualityOfServiceSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.QualityOfServiceSpec) + QualityOfServiceSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use QualityOfServiceSpec.newBuilder() to construct. + private QualityOfServiceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QualityOfServiceSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QualityOfServiceSpec( + 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.Duration.Builder subBuilder = null; + if (queueingBudget_ != null) { + subBuilder = queueingBudget_.toBuilder(); + } + queueingBudget_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queueingBudget_); + queueingBudget_ = 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 flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.QualityOfServiceSpec.class, flyteidl.core.Execution.QualityOfServiceSpec.Builder.class); + } + + public static final int QUEUEING_BUDGET_FIELD_NUMBER = 1; + private com.google.protobuf.Duration queueingBudget_; + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public boolean hasQueueingBudget() { + return queueingBudget_ != null; + } + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.Duration getQueueingBudget() { + return queueingBudget_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; + } + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder() { + return getQueueingBudget(); + } + + 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 (queueingBudget_ != null) { + output.writeMessage(1, getQueueingBudget()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (queueingBudget_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getQueueingBudget()); + } + 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 flyteidl.core.Execution.QualityOfServiceSpec)) { + return super.equals(obj); + } + flyteidl.core.Execution.QualityOfServiceSpec other = (flyteidl.core.Execution.QualityOfServiceSpec) obj; + + if (hasQueueingBudget() != other.hasQueueingBudget()) return false; + if (hasQueueingBudget()) { + if (!getQueueingBudget() + .equals(other.getQueueingBudget())) 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 (hasQueueingBudget()) { + hash = (37 * hash) + QUEUEING_BUDGET_FIELD_NUMBER; + hash = (53 * hash) + getQueueingBudget().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfServiceSpec 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 flyteidl.core.Execution.QualityOfServiceSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfServiceSpec 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 flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfServiceSpec 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(flyteidl.core.Execution.QualityOfServiceSpec 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; + } + /** + *
+     * Represents customized execution run-time attributes.
+     * 
+ * + * Protobuf type {@code flyteidl.core.QualityOfServiceSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.QualityOfServiceSpec) + flyteidl.core.Execution.QualityOfServiceSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.QualityOfServiceSpec.class, flyteidl.core.Execution.QualityOfServiceSpec.Builder.class); + } + + // Construct using flyteidl.core.Execution.QualityOfServiceSpec.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 (queueingBudgetBuilder_ == null) { + queueingBudget_ = null; + } else { + queueingBudget_ = null; + queueingBudgetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstanceForType() { + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfServiceSpec build() { + flyteidl.core.Execution.QualityOfServiceSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfServiceSpec buildPartial() { + flyteidl.core.Execution.QualityOfServiceSpec result = new flyteidl.core.Execution.QualityOfServiceSpec(this); + if (queueingBudgetBuilder_ == null) { + result.queueingBudget_ = queueingBudget_; + } else { + result.queueingBudget_ = queueingBudgetBuilder_.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 flyteidl.core.Execution.QualityOfServiceSpec) { + return mergeFrom((flyteidl.core.Execution.QualityOfServiceSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.QualityOfServiceSpec other) { + if (other == flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance()) return this; + if (other.hasQueueingBudget()) { + mergeQueueingBudget(other.getQueueingBudget()); + } + 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 { + flyteidl.core.Execution.QualityOfServiceSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.QualityOfServiceSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration queueingBudget_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> queueingBudgetBuilder_; + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public boolean hasQueueingBudget() { + return queueingBudgetBuilder_ != null || queueingBudget_ != null; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.Duration getQueueingBudget() { + if (queueingBudgetBuilder_ == null) { + return queueingBudget_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; + } else { + return queueingBudgetBuilder_.getMessage(); + } + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public Builder setQueueingBudget(com.google.protobuf.Duration value) { + if (queueingBudgetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queueingBudget_ = value; + onChanged(); + } else { + queueingBudgetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public Builder setQueueingBudget( + com.google.protobuf.Duration.Builder builderForValue) { + if (queueingBudgetBuilder_ == null) { + queueingBudget_ = builderForValue.build(); + onChanged(); + } else { + queueingBudgetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public Builder mergeQueueingBudget(com.google.protobuf.Duration value) { + if (queueingBudgetBuilder_ == null) { + if (queueingBudget_ != null) { + queueingBudget_ = + com.google.protobuf.Duration.newBuilder(queueingBudget_).mergeFrom(value).buildPartial(); + } else { + queueingBudget_ = value; + } + onChanged(); + } else { + queueingBudgetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public Builder clearQueueingBudget() { + if (queueingBudgetBuilder_ == null) { + queueingBudget_ = null; + onChanged(); + } else { + queueingBudget_ = null; + queueingBudgetBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.Duration.Builder getQueueingBudgetBuilder() { + + onChanged(); + return getQueueingBudgetFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder() { + if (queueingBudgetBuilder_ != null) { + return queueingBudgetBuilder_.getMessageOrBuilder(); + } else { + return queueingBudget_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; + } + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getQueueingBudgetFieldBuilder() { + if (queueingBudgetBuilder_ == null) { + queueingBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getQueueingBudget(), + getParentForChildren(), + isClean()); + queueingBudget_ = null; + } + return queueingBudgetBuilder_; + } + @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:flyteidl.core.QualityOfServiceSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfServiceSpec) + private static final flyteidl.core.Execution.QualityOfServiceSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.QualityOfServiceSpec(); + } + + public static flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QualityOfServiceSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QualityOfServiceSpec(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 flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QualityOfServiceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.QualityOfService) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + int getTierValue(); + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + flyteidl.core.Execution.QualityOfService.Tier getTier(); + + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + boolean hasSpec(); + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + flyteidl.core.Execution.QualityOfServiceSpec getSpec(); + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder(); + + public flyteidl.core.Execution.QualityOfService.DesignationCase getDesignationCase(); + } + /** + *
+   * Indicates the priority of an execution.
+   * 
+ * + * Protobuf type {@code flyteidl.core.QualityOfService} + */ + public static final class QualityOfService extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.QualityOfService) + QualityOfServiceOrBuilder { + private static final long serialVersionUID = 0L; + // Use QualityOfService.newBuilder() to construct. + private QualityOfService(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QualityOfService() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QualityOfService( + 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 8: { + int rawValue = input.readEnum(); + designationCase_ = 1; + designation_ = rawValue; + break; + } + case 18: { + flyteidl.core.Execution.QualityOfServiceSpec.Builder subBuilder = null; + if (designationCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.QualityOfServiceSpec) designation_).toBuilder(); + } + designation_ = + input.readMessage(flyteidl.core.Execution.QualityOfServiceSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.QualityOfServiceSpec) designation_); + designation_ = subBuilder.buildPartial(); + } + designationCase_ = 2; + 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 flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.QualityOfService.class, flyteidl.core.Execution.QualityOfService.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.QualityOfService.Tier} + */ + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Default: no quality of service specified.
+       * 
+ * + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * HIGH = 1; + */ + HIGH(1), + /** + * MEDIUM = 2; + */ + MEDIUM(2), + /** + * LOW = 3; + */ + LOW(3), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Default: no quality of service specified.
+       * 
+ * + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * HIGH = 1; + */ + public static final int HIGH_VALUE = 1; + /** + * MEDIUM = 2; + */ + public static final int MEDIUM_VALUE = 2; + /** + * LOW = 3; + */ + public static final int LOW_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Tier valueOf(int value) { + return forNumber(value); + } + + public static Tier forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return HIGH; + case 2: return MEDIUM; + case 3: return LOW; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Execution.QualityOfService.getDescriptor().getEnumTypes().get(0); + } + + private static final Tier[] VALUES = values(); + + public static Tier 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 Tier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.QualityOfService.Tier) + } + + private int designationCase_ = 0; + private java.lang.Object designation_; + public enum DesignationCase + implements com.google.protobuf.Internal.EnumLite { + TIER(1), + SPEC(2), + DESIGNATION_NOT_SET(0); + private final int value; + private DesignationCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DesignationCase valueOf(int value) { + return forNumber(value); + } + + public static DesignationCase forNumber(int value) { + switch (value) { + case 1: return TIER; + case 2: return SPEC; + case 0: return DESIGNATION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DesignationCase + getDesignationCase() { + return DesignationCase.forNumber( + designationCase_); + } + + public static final int TIER_FIELD_NUMBER = 1; + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public int getTierValue() { + if (designationCase_ == 1) { + return (java.lang.Integer) designation_; + } + return 0; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public flyteidl.core.Execution.QualityOfService.Tier getTier() { + if (designationCase_ == 1) { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.QualityOfService.Tier result = flyteidl.core.Execution.QualityOfService.Tier.valueOf( + (java.lang.Integer) designation_); + return result == null ? flyteidl.core.Execution.QualityOfService.Tier.UNRECOGNIZED : result; + } + return flyteidl.core.Execution.QualityOfService.Tier.UNDEFINED; + } + + public static final int SPEC_FIELD_NUMBER = 2; + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public boolean hasSpec() { + return designationCase_ == 2; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpec getSpec() { + if (designationCase_ == 2) { + return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder() { + if (designationCase_ == 2) { + return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (designationCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) designation_)); + } + if (designationCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.QualityOfServiceSpec) designation_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (designationCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, ((java.lang.Integer) designation_)); + } + if (designationCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.QualityOfServiceSpec) designation_); + } + 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 flyteidl.core.Execution.QualityOfService)) { + return super.equals(obj); + } + flyteidl.core.Execution.QualityOfService other = (flyteidl.core.Execution.QualityOfService) obj; + + if (!getDesignationCase().equals(other.getDesignationCase())) return false; + switch (designationCase_) { + case 1: + if (getTierValue() + != other.getTierValue()) return false; + break; + case 2: + if (!getSpec() + .equals(other.getSpec())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (designationCase_) { + case 1: + hash = (37 * hash) + TIER_FIELD_NUMBER; + hash = (53 * hash) + getTierValue(); + break; + case 2: + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.QualityOfService parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfService parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfService parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfService 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 flyteidl.core.Execution.QualityOfService parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfService 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 flyteidl.core.Execution.QualityOfService parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfService 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(flyteidl.core.Execution.QualityOfService 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; + } + /** + *
+     * Indicates the priority of an execution.
+     * 
+ * + * Protobuf type {@code flyteidl.core.QualityOfService} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.QualityOfService) + flyteidl.core.Execution.QualityOfServiceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.QualityOfService.class, flyteidl.core.Execution.QualityOfService.Builder.class); + } + + // Construct using flyteidl.core.Execution.QualityOfService.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(); + designationCase_ = 0; + designation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfService getDefaultInstanceForType() { + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfService build() { + flyteidl.core.Execution.QualityOfService result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfService buildPartial() { + flyteidl.core.Execution.QualityOfService result = new flyteidl.core.Execution.QualityOfService(this); + if (designationCase_ == 1) { + result.designation_ = designation_; + } + if (designationCase_ == 2) { + if (specBuilder_ == null) { + result.designation_ = designation_; + } else { + result.designation_ = specBuilder_.build(); + } + } + result.designationCase_ = designationCase_; + 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 flyteidl.core.Execution.QualityOfService) { + return mergeFrom((flyteidl.core.Execution.QualityOfService)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.QualityOfService other) { + if (other == flyteidl.core.Execution.QualityOfService.getDefaultInstance()) return this; + switch (other.getDesignationCase()) { + case TIER: { + setTierValue(other.getTierValue()); + break; + } + case SPEC: { + mergeSpec(other.getSpec()); + break; + } + case DESIGNATION_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 { + flyteidl.core.Execution.QualityOfService parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.QualityOfService) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int designationCase_ = 0; + private java.lang.Object designation_; + public DesignationCase + getDesignationCase() { + return DesignationCase.forNumber( + designationCase_); + } + + public Builder clearDesignation() { + designationCase_ = 0; + designation_ = null; + onChanged(); + return this; + } + + + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public int getTierValue() { + if (designationCase_ == 1) { + return ((java.lang.Integer) designation_).intValue(); + } + return 0; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public Builder setTierValue(int value) { + designationCase_ = 1; + designation_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public flyteidl.core.Execution.QualityOfService.Tier getTier() { + if (designationCase_ == 1) { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.QualityOfService.Tier result = flyteidl.core.Execution.QualityOfService.Tier.valueOf( + (java.lang.Integer) designation_); + return result == null ? flyteidl.core.Execution.QualityOfService.Tier.UNRECOGNIZED : result; + } + return flyteidl.core.Execution.QualityOfService.Tier.UNDEFINED; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public Builder setTier(flyteidl.core.Execution.QualityOfService.Tier value) { + if (value == null) { + throw new NullPointerException(); + } + designationCase_ = 1; + designation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public Builder clearTier() { + if (designationCase_ == 1) { + designationCase_ = 0; + designation_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder> specBuilder_; + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public boolean hasSpec() { + return designationCase_ == 2; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpec getSpec() { + if (specBuilder_ == null) { + if (designationCase_ == 2) { + return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } else { + if (designationCase_ == 2) { + return specBuilder_.getMessage(); + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public Builder setSpec(flyteidl.core.Execution.QualityOfServiceSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + designation_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + designationCase_ = 2; + return this; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public Builder setSpec( + flyteidl.core.Execution.QualityOfServiceSpec.Builder builderForValue) { + if (specBuilder_ == null) { + designation_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + designationCase_ = 2; + return this; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.core.Execution.QualityOfServiceSpec value) { + if (specBuilder_ == null) { + if (designationCase_ == 2 && + designation_ != flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance()) { + designation_ = flyteidl.core.Execution.QualityOfServiceSpec.newBuilder((flyteidl.core.Execution.QualityOfServiceSpec) designation_) + .mergeFrom(value).buildPartial(); + } else { + designation_ = value; + } + onChanged(); + } else { + if (designationCase_ == 2) { + specBuilder_.mergeFrom(value); + } + specBuilder_.setMessage(value); + } + designationCase_ = 2; + return this; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + if (designationCase_ == 2) { + designationCase_ = 0; + designation_ = null; + onChanged(); + } + } else { + if (designationCase_ == 2) { + designationCase_ = 0; + designation_ = null; + } + specBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpec.Builder getSpecBuilder() { + return getSpecFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder() { + if ((designationCase_ == 2) && (specBuilder_ != null)) { + return specBuilder_.getMessageOrBuilder(); + } else { + if (designationCase_ == 2) { + return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + if (!(designationCase_ == 2)) { + designation_ = flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder>( + (flyteidl.core.Execution.QualityOfServiceSpec) designation_, + getParentForChildren(), + isClean()); + designation_ = null; + } + designationCase_ = 2; + onChanged();; + return specBuilder_; + } + @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:flyteidl.core.QualityOfService) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfService) + private static final flyteidl.core.Execution.QualityOfService DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.QualityOfService(); + } + + public static flyteidl.core.Execution.QualityOfService getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QualityOfService parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QualityOfService(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 flyteidl.core.Execution.QualityOfService getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_NodeExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_NodeExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ExecutionError_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ExecutionError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskLog_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskLog_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_QualityOfService_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_QualityOfService_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\035flyteidl/core/execution.proto\022\rflyteid" + + "l.core\032\036google/protobuf/duration.proto\"\231" + + "\001\n\021WorkflowExecution\"\203\001\n\005Phase\022\r\n\tUNDEFI" + + "NED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\016\n\nSUCCEE" + + "DING\020\003\022\r\n\tSUCCEEDED\020\004\022\013\n\007FAILING\020\005\022\n\n\006FA" + + "ILED\020\006\022\013\n\007ABORTED\020\007\022\r\n\tTIMED_OUT\020\010\"\222\001\n\rN" + + "odeExecution\"\200\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n" + + "\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n" + + "\007FAILING\020\004\022\n\n\006FAILED\020\005\022\013\n\007ABORTED\020\006\022\013\n\007S" + + "KIPPED\020\007\022\r\n\tTIMED_OUT\020\010\"\226\001\n\rTaskExecutio" + + "n\"\204\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n\006QUEUED\020\001\022\013" + + "\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n\007ABORTED\020\004\022" + + "\n\n\006FAILED\020\005\022\020\n\014INITIALIZING\020\006\022\031\n\025WAITING" + + "_FOR_RESOURCES\020\007\"\251\001\n\016ExecutionError\022\014\n\004c" + + "ode\030\001 \001(\t\022\017\n\007message\030\002 \001(\t\022\021\n\terror_uri\030" + + "\003 \001(\t\0225\n\004kind\030\004 \001(\0162\'.flyteidl.core.Exec" + + "utionError.ErrorKind\".\n\tErrorKind\022\013\n\007UNK" + + "NOWN\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\"\273\001\n\007TaskLog" + + "\022\013\n\003uri\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022<\n\016message_f" + + "ormat\030\003 \001(\0162$.flyteidl.core.TaskLog.Mess" + + "ageFormat\022&\n\003ttl\030\004 \001(\0132\031.google.protobuf" + + ".Duration\"/\n\rMessageFormat\022\013\n\007UNKNOWN\020\000\022" + + "\007\n\003CSV\020\001\022\010\n\004JSON\020\002\"J\n\024QualityOfServiceSp" + + "ec\0222\n\017queueing_budget\030\001 \001(\0132\031.google.pro" + + "tobuf.Duration\"\302\001\n\020QualityOfService\0224\n\004t" + + "ier\030\001 \001(\0162$.flyteidl.core.QualityOfServi" + + "ce.TierH\000\0223\n\004spec\030\002 \001(\0132#.flyteidl.core." + + "QualityOfServiceSpecH\000\"4\n\004Tier\022\r\n\tUNDEFI" + + "NED\020\000\022\010\n\004HIGH\020\001\022\n\n\006MEDIUM\020\002\022\007\n\003LOW\020\003B\r\n\013" + + "designationB2Z0github.com/lyft/flyteidl/" + + "gen/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_WorkflowExecution_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowExecution_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_NodeExecution_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_NodeExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_NodeExecution_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_TaskExecution_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_TaskExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskExecution_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_ExecutionError_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_ExecutionError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ExecutionError_descriptor, + new java.lang.String[] { "Code", "Message", "ErrorUri", "Kind", }); + internal_static_flyteidl_core_TaskLog_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_TaskLog_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskLog_descriptor, + new java.lang.String[] { "Uri", "Name", "MessageFormat", "Ttl", }); + internal_static_flyteidl_core_QualityOfServiceSpec_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_QualityOfServiceSpec_descriptor, + new java.lang.String[] { "QueueingBudget", }); + internal_static_flyteidl_core_QualityOfService_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_QualityOfService_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_QualityOfService_descriptor, + new java.lang.String[] { "Tier", "Spec", "Designation", }); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/IdentifierOuterClass.java b/gen/pb-java/flyteidl/core/IdentifierOuterClass.java new file mode 100644 index 000000000..43d9f5e3b --- /dev/null +++ b/gen/pb-java/flyteidl/core/IdentifierOuterClass.java @@ -0,0 +1,4043 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/identifier.proto + +package flyteidl.core; + +public final class IdentifierOuterClass { + private IdentifierOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Indicates a resource type within Flyte.
+   * 
+ * + * Protobuf enum {@code flyteidl.core.ResourceType} + */ + public enum ResourceType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * TASK = 1; + */ + TASK(1), + /** + * WORKFLOW = 2; + */ + WORKFLOW(2), + /** + * LAUNCH_PLAN = 3; + */ + LAUNCH_PLAN(3), + UNRECOGNIZED(-1), + ; + + /** + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * TASK = 1; + */ + public static final int TASK_VALUE = 1; + /** + * WORKFLOW = 2; + */ + public static final int WORKFLOW_VALUE = 2; + /** + * LAUNCH_PLAN = 3; + */ + public static final int LAUNCH_PLAN_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResourceType valueOf(int value) { + return forNumber(value); + } + + public static ResourceType forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return TASK; + case 2: return WORKFLOW; + case 3: return LAUNCH_PLAN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResourceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResourceType findValueByNumber(int number) { + return ResourceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.IdentifierOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final ResourceType[] VALUES = values(); + + public static ResourceType 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 ResourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ResourceType) + } + + public interface IdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Identifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifies the specific type of resource that this identifer corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + *
+     * Identifies the specific type of resource that this identifer corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + java.lang.String getVersion(); + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + com.google.protobuf.ByteString + getVersionBytes(); + } + /** + *
+   * Encapsulation of fields that uniquely identifies a Flyte resource.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Identifier} + */ + public static final class Identifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Identifier) + IdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use Identifier.newBuilder() to construct. + private Identifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Identifier() { + resourceType_ = 0; + project_ = ""; + domain_ = ""; + name_ = ""; + version_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Identifier( + 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 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = 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 flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + *
+     * Identifies the specific type of resource that this identifer corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Identifies the specific type of resource that this identifer corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int PROJECT_FIELD_NUMBER = 2; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 3; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + 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; + } + } + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + 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 VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object version_; + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); + } + 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 flyteidl.core.IdentifierOuterClass.Identifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.Identifier other = (flyteidl.core.IdentifierOuterClass.Identifier) obj; + + if (resourceType_ != other.resourceType_) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getVersion() + .equals(other.getVersion())) 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) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.Identifier 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 flyteidl.core.IdentifierOuterClass.Identifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.Identifier 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 flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.Identifier 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(flyteidl.core.IdentifierOuterClass.Identifier 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; + } + /** + *
+     * Encapsulation of fields that uniquely identifies a Flyte resource.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Identifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Identifier) + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.Identifier.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(); + resourceType_ = 0; + + project_ = ""; + + domain_ = ""; + + name_ = ""; + + version_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.Identifier build() { + flyteidl.core.IdentifierOuterClass.Identifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.Identifier buildPartial() { + flyteidl.core.IdentifierOuterClass.Identifier result = new flyteidl.core.IdentifierOuterClass.Identifier(this); + result.resourceType_ = resourceType_; + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + result.version_ = version_; + 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 flyteidl.core.IdentifierOuterClass.Identifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.Identifier other) { + if (other == flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + 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 { + flyteidl.core.IdentifierOuterClass.Identifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.Identifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + 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; + } + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + 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; + } + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + 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 version_ = ""; + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = 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:flyteidl.core.Identifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Identifier) + private static final flyteidl.core.IdentifierOuterClass.Identifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.Identifier(); + } + + public static flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Identifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Identifier(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 flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecutionIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Encapsulation of fields that uniquely identifies a Flyte workflow execution
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} + */ + public static final class WorkflowExecutionIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecutionIdentifier) + WorkflowExecutionIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionIdentifier.newBuilder() to construct. + private WorkflowExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionIdentifier() { + project_ = ""; + domain_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionIdentifier( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + 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; + } + } + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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; + } + /** + *
+     * Encapsulation of fields that uniquely identifies a Flyte workflow execution
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecutionIdentifier) + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.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(); + project_ = ""; + + domain_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier build() { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier buildPartial() { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(this); + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other) { + if (other == flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + 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; + } + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + 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; + } + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowExecutionIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecutionIdentifier) + private static final flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(); + } + + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionIdentifier(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 flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecutionIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * string node_id = 1; + */ + java.lang.String getNodeId(); + /** + * string node_id = 1; + */ + com.google.protobuf.ByteString + getNodeIdBytes(); + + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + boolean hasExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + } + /** + *
+   * Encapsulation of fields that identify a Flyte node execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} + */ + public static final class NodeExecutionIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecutionIdentifier) + NodeExecutionIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionIdentifier.newBuilder() to construct. + private NodeExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionIdentifier() { + nodeId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionIdentifier( + 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(); + + nodeId_ = s; + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = 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 flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object nodeId_; + /** + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + 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(); + nodeId_ = s; + return s; + } + } + /** + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 2; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + 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 (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); + } + if (executionId_ != null) { + output.writeMessage(2, getExecutionId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); + } + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExecutionId()); + } + 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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) obj; + + if (!getNodeId() + .equals(other.getNodeId())) return false; + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) 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) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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; + } + /** + *
+     * Encapsulation of fields that identify a Flyte node execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecutionIdentifier) + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.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(); + nodeId_ = ""; + + if (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier build() { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier buildPartial() { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(this); + result.nodeId_ = nodeId_; + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other) { + if (other == flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance()) return this; + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); + } + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + 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 { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object nodeId_ = ""; + /** + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string node_id = 1; + */ + public Builder setNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); + return this; + } + /** + * string node_id = 1; + */ + public Builder clearNodeId() { + + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); + return this; + } + /** + * string node_id = 1; + */ + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeId_ = value; + onChanged(); + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + @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:flyteidl.core.NodeExecutionIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecutionIdentifier) + private static final flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(); + } + + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionIdentifier(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 flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecutionIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Identifier task_id = 1; + */ + boolean hasTaskId(); + /** + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); + /** + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); + + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + boolean hasNodeExecutionId(); + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); + + /** + * uint32 retry_attempt = 3; + */ + int getRetryAttempt(); + } + /** + *
+   * Encapsulation of fields that identify a Flyte task execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} + */ + public static final class TaskExecutionIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecutionIdentifier) + TaskExecutionIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionIdentifier.newBuilder() to construct. + private TaskExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionIdentifier() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionIdentifier( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (taskId_ != null) { + subBuilder = taskId_.toBuilder(); + } + taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskId_); + taskId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (nodeExecutionId_ != null) { + subBuilder = nodeExecutionId_.toBuilder(); + } + nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeExecutionId_); + nodeExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + retryAttempt_ = input.readUInt32(); + 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 flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); + } + + public static final int TASK_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskId_ != null; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + return getTaskId(); + } + + public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 2; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionId_ != null; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + return getNodeExecutionId(); + } + + public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; + private int retryAttempt_; + /** + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + + 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 (taskId_ != null) { + output.writeMessage(1, getTaskId()); + } + if (nodeExecutionId_ != null) { + output.writeMessage(2, getNodeExecutionId()); + } + if (retryAttempt_ != 0) { + output.writeUInt32(3, retryAttempt_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTaskId()); + } + if (nodeExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNodeExecutionId()); + } + if (retryAttempt_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, retryAttempt_); + } + 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) obj; + + if (hasTaskId() != other.hasTaskId()) return false; + if (hasTaskId()) { + if (!getTaskId() + .equals(other.getTaskId())) return false; + } + if (hasNodeExecutionId() != other.hasNodeExecutionId()) return false; + if (hasNodeExecutionId()) { + if (!getNodeExecutionId() + .equals(other.getNodeExecutionId())) return false; + } + if (getRetryAttempt() + != other.getRetryAttempt()) 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 (hasTaskId()) { + hash = (37 * hash) + TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskId().hashCode(); + } + if (hasNodeExecutionId()) { + hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeExecutionId().hashCode(); + } + hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; + hash = (53 * hash) + getRetryAttempt(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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; + } + /** + *
+     * Encapsulation of fields that identify a Flyte task execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecutionIdentifier) + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.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 (taskIdBuilder_ == null) { + taskId_ = null; + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + retryAttempt_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier build() { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier buildPartial() { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(this); + if (taskIdBuilder_ == null) { + result.taskId_ = taskId_; + } else { + result.taskId_ = taskIdBuilder_.build(); + } + if (nodeExecutionIdBuilder_ == null) { + result.nodeExecutionId_ = nodeExecutionId_; + } else { + result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); + } + result.retryAttempt_ = retryAttempt_; + 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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other) { + if (other == flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance()) return this; + if (other.hasTaskId()) { + mergeTaskId(other.getTaskId()); + } + if (other.hasNodeExecutionId()) { + mergeNodeExecutionId(other.getNodeExecutionId()); + } + if (other.getRetryAttempt() != 0) { + setRetryAttempt(other.getRetryAttempt()); + } + 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 { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskIdBuilder_ != null || taskId_ != null; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + if (taskIdBuilder_ == null) { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } else { + return taskIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskId_ = value; + onChanged(); + } else { + taskIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (taskIdBuilder_ == null) { + taskId_ = builderForValue.build(); + onChanged(); + } else { + taskIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (taskId_ != null) { + taskId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); + } else { + taskId_ = value; + } + onChanged(); + } else { + taskIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder clearTaskId() { + if (taskIdBuilder_ == null) { + taskId_ = null; + onChanged(); + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { + + onChanged(); + return getTaskIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + if (taskIdBuilder_ != null) { + return taskIdBuilder_.getMessageOrBuilder(); + } else { + return taskId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getTaskIdFieldBuilder() { + if (taskIdBuilder_ == null) { + taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getTaskId(), + getParentForChildren(), + isClean()); + taskId_ = null; + } + return taskIdBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } else { + return nodeExecutionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeExecutionId_ = value; + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder setNodeExecutionId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = builderForValue.build(); + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (nodeExecutionId_ != null) { + nodeExecutionId_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); + } else { + nodeExecutionId_ = value; + } + onChanged(); + } else { + nodeExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder clearNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + onChanged(); + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { + + onChanged(); + return getNodeExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + if (nodeExecutionIdBuilder_ != null) { + return nodeExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return nodeExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getNodeExecutionIdFieldBuilder() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getNodeExecutionId(), + getParentForChildren(), + isClean()); + nodeExecutionId_ = null; + } + return nodeExecutionIdBuilder_; + } + + private int retryAttempt_ ; + /** + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + /** + * uint32 retry_attempt = 3; + */ + public Builder setRetryAttempt(int value) { + + retryAttempt_ = value; + onChanged(); + return this; + } + /** + * uint32 retry_attempt = 3; + */ + public Builder clearRetryAttempt() { + + retryAttempt_ = 0; + 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:flyteidl.core.TaskExecutionIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecutionIdentifier) + private static final flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(); + } + + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionIdentifier(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 flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Identifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Identifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskExecutionIdentifier_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\036flyteidl/core/identifier.proto\022\rflytei" + + "dl.core\"\200\001\n\nIdentifier\0222\n\rresource_type\030" + + "\001 \001(\0162\033.flyteidl.core.ResourceType\022\017\n\007pr" + + "oject\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\014\n\004name\030\004 \001(" + + "\t\022\017\n\007version\030\005 \001(\t\"L\n\033WorkflowExecutionI" + + "dentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + + "(\t\022\014\n\004name\030\004 \001(\t\"l\n\027NodeExecutionIdentif" + + "ier\022\017\n\007node_id\030\001 \001(\t\022@\n\014execution_id\030\002 \001" + + "(\0132*.flyteidl.core.WorkflowExecutionIden" + + "tifier\"\237\001\n\027TaskExecutionIdentifier\022*\n\007ta" + + "sk_id\030\001 \001(\0132\031.flyteidl.core.Identifier\022A" + + "\n\021node_execution_id\030\002 \001(\0132&.flyteidl.cor" + + "e.NodeExecutionIdentifier\022\025\n\rretry_attem" + + "pt\030\003 \001(\r*H\n\014ResourceType\022\017\n\013UNSPECIFIED\020" + + "\000\022\010\n\004TASK\020\001\022\014\n\010WORKFLOW\020\002\022\017\n\013LAUNCH_PLAN" + + "\020\003B2Z0github.com/lyft/flyteidl/gen/pb-go" + + "/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_core_Identifier_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Identifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Identifier_descriptor, + new java.lang.String[] { "ResourceType", "Project", "Domain", "Name", "Version", }); + internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor, + new java.lang.String[] { "Project", "Domain", "Name", }); + internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor, + new java.lang.String[] { "NodeId", "ExecutionId", }); + internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor, + new java.lang.String[] { "TaskId", "NodeExecutionId", "RetryAttempt", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Interface.java b/gen/pb-java/flyteidl/core/Interface.java new file mode 100644 index 000000000..386586380 --- /dev/null +++ b/gen/pb-java/flyteidl/core/Interface.java @@ -0,0 +1,4503 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/interface.proto + +package flyteidl.core; + +public final class Interface { + private Interface() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface VariableOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Variable) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + boolean hasType(); + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + flyteidl.core.Types.LiteralType getType(); + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); + + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + *
+   * Defines a strongly typed variable.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Variable} + */ + public static final class Variable extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Variable) + VariableOrBuilder { + private static final long serialVersionUID = 0L; + // Use Variable.newBuilder() to construct. + private Variable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Variable() { + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Variable( + 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: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = 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 flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private flyteidl.core.Types.LiteralType type_; + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public boolean hasType() { + return type_ != null; + } + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralType getType() { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = 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 (type_ != null) { + output.writeMessage(1, getType()); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getType()); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + 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 flyteidl.core.Interface.Variable)) { + return super.equals(obj); + } + flyteidl.core.Interface.Variable other = (flyteidl.core.Interface.Variable) obj; + + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (!getDescription() + .equals(other.getDescription())) 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 (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.Variable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Variable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Variable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Variable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Variable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Variable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Variable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Variable 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 flyteidl.core.Interface.Variable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Variable 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 flyteidl.core.Interface.Variable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Variable 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(flyteidl.core.Interface.Variable 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; + } + /** + *
+     * Defines a strongly typed variable.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Variable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Variable) + flyteidl.core.Interface.VariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); + } + + // Construct using flyteidl.core.Interface.Variable.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 (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.Variable getDefaultInstanceForType() { + return flyteidl.core.Interface.Variable.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.Variable build() { + flyteidl.core.Interface.Variable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.Variable buildPartial() { + flyteidl.core.Interface.Variable result = new flyteidl.core.Interface.Variable(this); + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + result.description_ = description_; + 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 flyteidl.core.Interface.Variable) { + return mergeFrom((flyteidl.core.Interface.Variable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.Variable other) { + if (other == flyteidl.core.Interface.Variable.getDefaultInstance()) return this; + if (other.hasType()) { + mergeType(other.getType()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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 { + flyteidl.core.Interface.Variable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.Variable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Types.LiteralType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder setType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder setType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder mergeType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = 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:flyteidl.core.Variable) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Variable) + private static final flyteidl.core.Interface.Variable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.Variable(); + } + + public static flyteidl.core.Interface.Variable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Variable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Variable(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 flyteidl.core.Interface.Variable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VariableMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.VariableMap) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + int getVariablesCount(); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + boolean containsVariables( + java.lang.String key); + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getVariables(); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + java.util.Map + getVariablesMap(); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + flyteidl.core.Interface.Variable getVariablesOrDefault( + java.lang.String key, + flyteidl.core.Interface.Variable defaultValue); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + flyteidl.core.Interface.Variable getVariablesOrThrow( + java.lang.String key); + } + /** + *
+   * A map of Variables
+   * 
+ * + * Protobuf type {@code flyteidl.core.VariableMap} + */ + public static final class VariableMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.VariableMap) + VariableMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use VariableMap.newBuilder() to construct. + private VariableMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VariableMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VariableMap( + 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)) { + variables_ = com.google.protobuf.MapField.newMapField( + VariablesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + variables__ = input.readMessage( + VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + variables_.getMutableMap().put( + variables__.getKey(), variables__.getValue()); + 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 flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); + } + + public static final int VARIABLES_FIELD_NUMBER = 1; + private static final class VariablesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Interface.Variable> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Interface.Variable.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Variable> variables_; + private com.google.protobuf.MapField + internalGetVariables() { + if (variables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + VariablesDefaultEntryHolder.defaultEntry); + } + return variables_; + } + + public int getVariablesCount() { + return internalGetVariables().getMap().size(); + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public boolean containsVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetVariables().getMap().containsKey(key); + } + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getVariables() { + return getVariablesMap(); + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public java.util.Map getVariablesMap() { + return internalGetVariables().getMap(); + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrDefault( + java.lang.String key, + flyteidl.core.Interface.Variable defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetVariables(), + VariablesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + variables__ = VariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, variables__); + } + 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 flyteidl.core.Interface.VariableMap)) { + return super.equals(obj); + } + flyteidl.core.Interface.VariableMap other = (flyteidl.core.Interface.VariableMap) obj; + + if (!internalGetVariables().equals( + other.internalGetVariables())) 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 (!internalGetVariables().getMap().isEmpty()) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + internalGetVariables().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.VariableMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.VariableMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.VariableMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.VariableMap 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 flyteidl.core.Interface.VariableMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.VariableMap 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 flyteidl.core.Interface.VariableMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.VariableMap 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(flyteidl.core.Interface.VariableMap 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 map of Variables
+     * 
+ * + * Protobuf type {@code flyteidl.core.VariableMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.VariableMap) + flyteidl.core.Interface.VariableMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); + } + + // Construct using flyteidl.core.Interface.VariableMap.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(); + internalGetMutableVariables().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.VariableMap getDefaultInstanceForType() { + return flyteidl.core.Interface.VariableMap.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.VariableMap build() { + flyteidl.core.Interface.VariableMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.VariableMap buildPartial() { + flyteidl.core.Interface.VariableMap result = new flyteidl.core.Interface.VariableMap(this); + int from_bitField0_ = bitField0_; + result.variables_ = internalGetVariables(); + result.variables_.makeImmutable(); + 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 flyteidl.core.Interface.VariableMap) { + return mergeFrom((flyteidl.core.Interface.VariableMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.VariableMap other) { + if (other == flyteidl.core.Interface.VariableMap.getDefaultInstance()) return this; + internalGetMutableVariables().mergeFrom( + other.internalGetVariables()); + 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 { + flyteidl.core.Interface.VariableMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.VariableMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Variable> variables_; + private com.google.protobuf.MapField + internalGetVariables() { + if (variables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + VariablesDefaultEntryHolder.defaultEntry); + } + return variables_; + } + private com.google.protobuf.MapField + internalGetMutableVariables() { + onChanged();; + if (variables_ == null) { + variables_ = com.google.protobuf.MapField.newMapField( + VariablesDefaultEntryHolder.defaultEntry); + } + if (!variables_.isMutable()) { + variables_ = variables_.copy(); + } + return variables_; + } + + public int getVariablesCount() { + return internalGetVariables().getMap().size(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public boolean containsVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetVariables().getMap().containsKey(key); + } + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getVariables() { + return getVariablesMap(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public java.util.Map getVariablesMap() { + return internalGetVariables().getMap(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrDefault( + java.lang.String key, + flyteidl.core.Interface.Variable defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearVariables() { + internalGetMutableVariables().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public Builder removeVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableVariables().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableVariables() { + return internalGetMutableVariables().getMutableMap(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + public Builder putVariables( + java.lang.String key, + flyteidl.core.Interface.Variable value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableVariables().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public Builder putAllVariables( + java.util.Map values) { + internalGetMutableVariables().getMutableMap() + .putAll(values); + 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:flyteidl.core.VariableMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.VariableMap) + private static final flyteidl.core.Interface.VariableMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.VariableMap(); + } + + public static flyteidl.core.Interface.VariableMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VariableMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VariableMap(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 flyteidl.core.Interface.VariableMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TypedInterfaceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TypedInterface) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + boolean hasInputs(); + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + flyteidl.core.Interface.VariableMap getInputs(); + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder(); + + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + boolean hasOutputs(); + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + flyteidl.core.Interface.VariableMap getOutputs(); + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder(); + } + /** + *
+   * Defines strongly typed inputs and outputs.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TypedInterface} + */ + public static final class TypedInterface extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TypedInterface) + TypedInterfaceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TypedInterface.newBuilder() to construct. + private TypedInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TypedInterface() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TypedInterface( + 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: { + flyteidl.core.Interface.VariableMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Interface.VariableMap.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = 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 flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.core.Interface.VariableMap inputs_; + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMap getInputs() { + return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Interface.VariableMap outputs_; + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMap getOutputs() { + return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + 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 (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + 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 flyteidl.core.Interface.TypedInterface)) { + return super.equals(obj); + } + flyteidl.core.Interface.TypedInterface other = (flyteidl.core.Interface.TypedInterface) obj; + + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) 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 (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.TypedInterface parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.TypedInterface parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.TypedInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.TypedInterface 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 flyteidl.core.Interface.TypedInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.TypedInterface 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 flyteidl.core.Interface.TypedInterface parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.TypedInterface 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(flyteidl.core.Interface.TypedInterface 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; + } + /** + *
+     * Defines strongly typed inputs and outputs.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TypedInterface} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TypedInterface) + flyteidl.core.Interface.TypedInterfaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); + } + + // Construct using flyteidl.core.Interface.TypedInterface.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 (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.TypedInterface getDefaultInstanceForType() { + return flyteidl.core.Interface.TypedInterface.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.TypedInterface build() { + flyteidl.core.Interface.TypedInterface result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.TypedInterface buildPartial() { + flyteidl.core.Interface.TypedInterface result = new flyteidl.core.Interface.TypedInterface(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.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 flyteidl.core.Interface.TypedInterface) { + return mergeFrom((flyteidl.core.Interface.TypedInterface)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.TypedInterface other) { + if (other == flyteidl.core.Interface.TypedInterface.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + 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 { + flyteidl.core.Interface.TypedInterface parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.TypedInterface) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Interface.VariableMap inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> inputsBuilder_; + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder setInputs(flyteidl.core.Interface.VariableMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder setInputs( + flyteidl.core.Interface.VariableMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder mergeInputs(flyteidl.core.Interface.VariableMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Interface.VariableMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; + } + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.core.Interface.VariableMap outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> outputsBuilder_; + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMap getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder setOutputs(flyteidl.core.Interface.VariableMap value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder setOutputs( + flyteidl.core.Interface.VariableMap.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder mergeOutputs(flyteidl.core.Interface.VariableMap value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.core.Interface.VariableMap.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMap.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; + } + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + @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:flyteidl.core.TypedInterface) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TypedInterface) + private static final flyteidl.core.Interface.TypedInterface DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.TypedInterface(); + } + + public static flyteidl.core.Interface.TypedInterface getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypedInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TypedInterface(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 flyteidl.core.Interface.TypedInterface getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Parameter) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + boolean hasVar(); + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + flyteidl.core.Interface.Variable getVar(); + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder(); + + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + boolean hasDefault(); + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + flyteidl.core.Literals.Literal getDefault(); + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder(); + + /** + *
+     *+optional, is this value required to be filled.
+     * 
+ * + * bool required = 3; + */ + boolean getRequired(); + + public flyteidl.core.Interface.Parameter.BehaviorCase getBehaviorCase(); + } + /** + *
+   * A parameter is used as input to a launch plan and has
+   * the special ability to have a default value or mark itself as required.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Parameter} + */ + public static final class Parameter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Parameter) + ParameterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Parameter.newBuilder() to construct. + private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Parameter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Parameter( + 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: { + flyteidl.core.Interface.Variable.Builder subBuilder = null; + if (var_ != null) { + subBuilder = var_.toBuilder(); + } + var_ = input.readMessage(flyteidl.core.Interface.Variable.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(var_); + var_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Literals.Literal.Builder subBuilder = null; + if (behaviorCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.Literal) behavior_).toBuilder(); + } + behavior_ = + input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Literal) behavior_); + behavior_ = subBuilder.buildPartial(); + } + behaviorCase_ = 2; + break; + } + case 24: { + behaviorCase_ = 3; + behavior_ = input.readBool(); + 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 flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); + } + + private int behaviorCase_ = 0; + private java.lang.Object behavior_; + public enum BehaviorCase + implements com.google.protobuf.Internal.EnumLite { + DEFAULT(2), + REQUIRED(3), + BEHAVIOR_NOT_SET(0); + private final int value; + private BehaviorCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BehaviorCase valueOf(int value) { + return forNumber(value); + } + + public static BehaviorCase forNumber(int value) { + switch (value) { + case 2: return DEFAULT; + case 3: return REQUIRED; + case 0: return BEHAVIOR_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public BehaviorCase + getBehaviorCase() { + return BehaviorCase.forNumber( + behaviorCase_); + } + + public static final int VAR_FIELD_NUMBER = 1; + private flyteidl.core.Interface.Variable var_; + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public boolean hasVar() { + return var_ != null; + } + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.Variable getVar() { + return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; + } + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { + return getVar(); + } + + public static final int DEFAULT_FIELD_NUMBER = 2; + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public boolean hasDefault() { + return behaviorCase_ == 2; + } + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.Literal getDefault() { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + + public static final int REQUIRED_FIELD_NUMBER = 3; + /** + *
+     *+optional, is this value required to be filled.
+     * 
+ * + * bool required = 3; + */ + public boolean getRequired() { + if (behaviorCase_ == 3) { + return (java.lang.Boolean) behavior_; + } + return false; + } + + 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 (var_ != null) { + output.writeMessage(1, getVar()); + } + if (behaviorCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.Literal) behavior_); + } + if (behaviorCase_ == 3) { + output.writeBool( + 3, (boolean)((java.lang.Boolean) behavior_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (var_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVar()); + } + if (behaviorCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.Literal) behavior_); + } + if (behaviorCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 3, (boolean)((java.lang.Boolean) behavior_)); + } + 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 flyteidl.core.Interface.Parameter)) { + return super.equals(obj); + } + flyteidl.core.Interface.Parameter other = (flyteidl.core.Interface.Parameter) obj; + + if (hasVar() != other.hasVar()) return false; + if (hasVar()) { + if (!getVar() + .equals(other.getVar())) return false; + } + if (!getBehaviorCase().equals(other.getBehaviorCase())) return false; + switch (behaviorCase_) { + case 2: + if (!getDefault() + .equals(other.getDefault())) return false; + break; + case 3: + if (getRequired() + != other.getRequired()) 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(); + if (hasVar()) { + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + } + switch (behaviorCase_) { + case 2: + hash = (37 * hash) + DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + getDefault().hashCode(); + break; + case 3: + hash = (37 * hash) + REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequired()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.Parameter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Parameter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Parameter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Parameter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Parameter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Parameter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Parameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Parameter 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 flyteidl.core.Interface.Parameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Parameter 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 flyteidl.core.Interface.Parameter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Parameter 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(flyteidl.core.Interface.Parameter 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 parameter is used as input to a launch plan and has
+     * the special ability to have a default value or mark itself as required.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Parameter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Parameter) + flyteidl.core.Interface.ParameterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); + } + + // Construct using flyteidl.core.Interface.Parameter.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 (varBuilder_ == null) { + var_ = null; + } else { + var_ = null; + varBuilder_ = null; + } + behaviorCase_ = 0; + behavior_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.Parameter getDefaultInstanceForType() { + return flyteidl.core.Interface.Parameter.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.Parameter build() { + flyteidl.core.Interface.Parameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.Parameter buildPartial() { + flyteidl.core.Interface.Parameter result = new flyteidl.core.Interface.Parameter(this); + if (varBuilder_ == null) { + result.var_ = var_; + } else { + result.var_ = varBuilder_.build(); + } + if (behaviorCase_ == 2) { + if (defaultBuilder_ == null) { + result.behavior_ = behavior_; + } else { + result.behavior_ = defaultBuilder_.build(); + } + } + if (behaviorCase_ == 3) { + result.behavior_ = behavior_; + } + result.behaviorCase_ = behaviorCase_; + 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 flyteidl.core.Interface.Parameter) { + return mergeFrom((flyteidl.core.Interface.Parameter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.Parameter other) { + if (other == flyteidl.core.Interface.Parameter.getDefaultInstance()) return this; + if (other.hasVar()) { + mergeVar(other.getVar()); + } + switch (other.getBehaviorCase()) { + case DEFAULT: { + mergeDefault(other.getDefault()); + break; + } + case REQUIRED: { + setRequired(other.getRequired()); + break; + } + case BEHAVIOR_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 { + flyteidl.core.Interface.Parameter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.Parameter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int behaviorCase_ = 0; + private java.lang.Object behavior_; + public BehaviorCase + getBehaviorCase() { + return BehaviorCase.forNumber( + behaviorCase_); + } + + public Builder clearBehavior() { + behaviorCase_ = 0; + behavior_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.Interface.Variable var_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> varBuilder_; + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public boolean hasVar() { + return varBuilder_ != null || var_ != null; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.Variable getVar() { + if (varBuilder_ == null) { + return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; + } else { + return varBuilder_.getMessage(); + } + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder setVar(flyteidl.core.Interface.Variable value) { + if (varBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + var_ = value; + onChanged(); + } else { + varBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder setVar( + flyteidl.core.Interface.Variable.Builder builderForValue) { + if (varBuilder_ == null) { + var_ = builderForValue.build(); + onChanged(); + } else { + varBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder mergeVar(flyteidl.core.Interface.Variable value) { + if (varBuilder_ == null) { + if (var_ != null) { + var_ = + flyteidl.core.Interface.Variable.newBuilder(var_).mergeFrom(value).buildPartial(); + } else { + var_ = value; + } + onChanged(); + } else { + varBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder clearVar() { + if (varBuilder_ == null) { + var_ = null; + onChanged(); + } else { + var_ = null; + varBuilder_ = null; + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.Variable.Builder getVarBuilder() { + + onChanged(); + return getVarFieldBuilder().getBuilder(); + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { + if (varBuilder_ != null) { + return varBuilder_.getMessageOrBuilder(); + } else { + return var_ == null ? + flyteidl.core.Interface.Variable.getDefaultInstance() : var_; + } + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> + getVarFieldBuilder() { + if (varBuilder_ == null) { + varBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder>( + getVar(), + getParentForChildren(), + isClean()); + var_ = null; + } + return varBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> defaultBuilder_; + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public boolean hasDefault() { + return behaviorCase_ == 2; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.Literal getDefault() { + if (defaultBuilder_ == null) { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } else { + if (behaviorCase_ == 2) { + return defaultBuilder_.getMessage(); + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder setDefault(flyteidl.core.Literals.Literal value) { + if (defaultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + behavior_ = value; + onChanged(); + } else { + defaultBuilder_.setMessage(value); + } + behaviorCase_ = 2; + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder setDefault( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (defaultBuilder_ == null) { + behavior_ = builderForValue.build(); + onChanged(); + } else { + defaultBuilder_.setMessage(builderForValue.build()); + } + behaviorCase_ = 2; + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder mergeDefault(flyteidl.core.Literals.Literal value) { + if (defaultBuilder_ == null) { + if (behaviorCase_ == 2 && + behavior_ != flyteidl.core.Literals.Literal.getDefaultInstance()) { + behavior_ = flyteidl.core.Literals.Literal.newBuilder((flyteidl.core.Literals.Literal) behavior_) + .mergeFrom(value).buildPartial(); + } else { + behavior_ = value; + } + onChanged(); + } else { + if (behaviorCase_ == 2) { + defaultBuilder_.mergeFrom(value); + } + defaultBuilder_.setMessage(value); + } + behaviorCase_ = 2; + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder clearDefault() { + if (defaultBuilder_ == null) { + if (behaviorCase_ == 2) { + behaviorCase_ = 0; + behavior_ = null; + onChanged(); + } + } else { + if (behaviorCase_ == 2) { + behaviorCase_ = 0; + behavior_ = null; + } + defaultBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.Literal.Builder getDefaultBuilder() { + return getDefaultFieldBuilder().getBuilder(); + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { + if ((behaviorCase_ == 2) && (defaultBuilder_ != null)) { + return defaultBuilder_.getMessageOrBuilder(); + } else { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getDefaultFieldBuilder() { + if (defaultBuilder_ == null) { + if (!(behaviorCase_ == 2)) { + behavior_ = flyteidl.core.Literals.Literal.getDefaultInstance(); + } + defaultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + (flyteidl.core.Literals.Literal) behavior_, + getParentForChildren(), + isClean()); + behavior_ = null; + } + behaviorCase_ = 2; + onChanged();; + return defaultBuilder_; + } + + /** + *
+       *+optional, is this value required to be filled.
+       * 
+ * + * bool required = 3; + */ + public boolean getRequired() { + if (behaviorCase_ == 3) { + return (java.lang.Boolean) behavior_; + } + return false; + } + /** + *
+       *+optional, is this value required to be filled.
+       * 
+ * + * bool required = 3; + */ + public Builder setRequired(boolean value) { + behaviorCase_ = 3; + behavior_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional, is this value required to be filled.
+       * 
+ * + * bool required = 3; + */ + public Builder clearRequired() { + if (behaviorCase_ == 3) { + behaviorCase_ = 0; + behavior_ = 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:flyteidl.core.Parameter) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Parameter) + private static final flyteidl.core.Interface.Parameter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.Parameter(); + } + + public static flyteidl.core.Interface.Parameter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Parameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Parameter(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 flyteidl.core.Interface.Parameter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ParameterMap) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + int getParametersCount(); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + boolean containsParameters( + java.lang.String key); + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameters(); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + java.util.Map + getParametersMap(); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + flyteidl.core.Interface.Parameter getParametersOrDefault( + java.lang.String key, + flyteidl.core.Interface.Parameter defaultValue); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + flyteidl.core.Interface.Parameter getParametersOrThrow( + java.lang.String key); + } + /** + *
+   * A map of Parameters.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ParameterMap} + */ + public static final class ParameterMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ParameterMap) + ParameterMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterMap.newBuilder() to construct. + private ParameterMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterMap( + 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)) { + parameters_ = com.google.protobuf.MapField.newMapField( + ParametersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + parameters__ = input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + parameters_.getMutableMap().put( + parameters__.getKey(), parameters__.getValue()); + 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 flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); + } + + public static final int PARAMETERS_FIELD_NUMBER = 1; + private static final class ParametersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Interface.Parameter> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Interface.Parameter.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Parameter> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameters().getMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrDefault( + java.lang.String key, + flyteidl.core.Interface.Parameter defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParameters(), + ParametersDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, parameters__); + } + 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 flyteidl.core.Interface.ParameterMap)) { + return super.equals(obj); + } + flyteidl.core.Interface.ParameterMap other = (flyteidl.core.Interface.ParameterMap) obj; + + if (!internalGetParameters().equals( + other.internalGetParameters())) 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 (!internalGetParameters().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameters().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.ParameterMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.ParameterMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.ParameterMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.ParameterMap 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 flyteidl.core.Interface.ParameterMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.ParameterMap 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 flyteidl.core.Interface.ParameterMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.ParameterMap 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(flyteidl.core.Interface.ParameterMap 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 map of Parameters.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ParameterMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ParameterMap) + flyteidl.core.Interface.ParameterMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); + } + + // Construct using flyteidl.core.Interface.ParameterMap.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(); + internalGetMutableParameters().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.ParameterMap getDefaultInstanceForType() { + return flyteidl.core.Interface.ParameterMap.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.ParameterMap build() { + flyteidl.core.Interface.ParameterMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.ParameterMap buildPartial() { + flyteidl.core.Interface.ParameterMap result = new flyteidl.core.Interface.ParameterMap(this); + int from_bitField0_ = bitField0_; + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + 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 flyteidl.core.Interface.ParameterMap) { + return mergeFrom((flyteidl.core.Interface.ParameterMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.ParameterMap other) { + if (other == flyteidl.core.Interface.ParameterMap.getDefaultInstance()) return this; + internalGetMutableParameters().mergeFrom( + other.internalGetParameters()); + 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 { + flyteidl.core.Interface.ParameterMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.ParameterMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Parameter> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + private com.google.protobuf.MapField + internalGetMutableParameters() { + onChanged();; + if (parameters_ == null) { + parameters_ = com.google.protobuf.MapField.newMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + if (!parameters_.isMutable()) { + parameters_ = parameters_.copy(); + } + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameters().getMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrDefault( + java.lang.String key, + flyteidl.core.Interface.Parameter defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameters() { + internalGetMutableParameters().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public Builder removeParameters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameters().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameters() { + return internalGetMutableParameters().getMutableMap(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + public Builder putParameters( + java.lang.String key, + flyteidl.core.Interface.Parameter value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameters().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public Builder putAllParameters( + java.util.Map values) { + internalGetMutableParameters().getMutableMap() + .putAll(values); + 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:flyteidl.core.ParameterMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ParameterMap) + private static final flyteidl.core.Interface.ParameterMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.ParameterMap(); + } + + public static flyteidl.core.Interface.ParameterMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterMap(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 flyteidl.core.Interface.ParameterMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Variable_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Variable_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_VariableMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_VariableMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_VariableMap_VariablesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TypedInterface_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TypedInterface_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Parameter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Parameter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ParameterMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ParameterMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ParameterMap_ParametersEntry_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\035flyteidl/core/interface.proto\022\rflyteid" + + "l.core\032\031flyteidl/core/types.proto\032\034flyte" + + "idl/core/literals.proto\"I\n\010Variable\022(\n\004t" + + "ype\030\001 \001(\0132\032.flyteidl.core.LiteralType\022\023\n" + + "\013description\030\002 \001(\t\"\226\001\n\013VariableMap\022<\n\tva" + + "riables\030\001 \003(\0132).flyteidl.core.VariableMa" + + "p.VariablesEntry\032I\n\016VariablesEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.flyteidl.core.V" + + "ariable:\0028\001\"i\n\016TypedInterface\022*\n\006inputs\030" + + "\001 \001(\0132\032.flyteidl.core.VariableMap\022+\n\007out" + + "puts\030\002 \001(\0132\032.flyteidl.core.VariableMap\"|" + + "\n\tParameter\022$\n\003var\030\001 \001(\0132\027.flyteidl.core" + + ".Variable\022)\n\007default\030\002 \001(\0132\026.flyteidl.co" + + "re.LiteralH\000\022\022\n\010required\030\003 \001(\010H\000B\n\n\010beha" + + "vior\"\234\001\n\014ParameterMap\022?\n\nparameters\030\001 \003(" + + "\0132+.flyteidl.core.ParameterMap.Parameter" + + "sEntry\032K\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\'" + + "\n\005value\030\002 \001(\0132\030.flyteidl.core.Parameter:" + + "\0028\001B2Z0github.com/lyft/flyteidl/gen/pb-g" + + "o/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Types.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_Variable_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Variable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Variable_descriptor, + new java.lang.String[] { "Type", "Description", }); + internal_static_flyteidl_core_VariableMap_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_VariableMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_VariableMap_descriptor, + new java.lang.String[] { "Variables", }); + internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor = + internal_static_flyteidl_core_VariableMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_VariableMap_VariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_TypedInterface_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_TypedInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TypedInterface_descriptor, + new java.lang.String[] { "Inputs", "Outputs", }); + internal_static_flyteidl_core_Parameter_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_Parameter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Parameter_descriptor, + new java.lang.String[] { "Var", "Default", "Required", "Behavior", }); + internal_static_flyteidl_core_ParameterMap_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_ParameterMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ParameterMap_descriptor, + new java.lang.String[] { "Parameters", }); + internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor = + internal_static_flyteidl_core_ParameterMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_ParameterMap_ParametersEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + flyteidl.core.Types.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Literals.java b/gen/pb-java/flyteidl/core/Literals.java new file mode 100644 index 000000000..78b622533 --- /dev/null +++ b/gen/pb-java/flyteidl/core/Literals.java @@ -0,0 +1,14859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/literals.proto + +package flyteidl.core; + +public final class Literals { + private Literals() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface PrimitiveOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Primitive) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 integer = 1; + */ + long getInteger(); + + /** + * double float_value = 2; + */ + double getFloatValue(); + + /** + * string string_value = 3; + */ + java.lang.String getStringValue(); + /** + * string string_value = 3; + */ + com.google.protobuf.ByteString + getStringValueBytes(); + + /** + * bool boolean = 4; + */ + boolean getBoolean(); + + /** + * .google.protobuf.Timestamp datetime = 5; + */ + boolean hasDatetime(); + /** + * .google.protobuf.Timestamp datetime = 5; + */ + com.google.protobuf.Timestamp getDatetime(); + /** + * .google.protobuf.Timestamp datetime = 5; + */ + com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder(); + + /** + * .google.protobuf.Duration duration = 6; + */ + boolean hasDuration(); + /** + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.Duration getDuration(); + /** + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + public flyteidl.core.Literals.Primitive.ValueCase getValueCase(); + } + /** + *
+   * Primitive Types
+   * 
+ * + * Protobuf type {@code flyteidl.core.Primitive} + */ + public static final class Primitive extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Primitive) + PrimitiveOrBuilder { + private static final long serialVersionUID = 0L; + // Use Primitive.newBuilder() to construct. + private Primitive(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Primitive() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Primitive( + 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 8: { + valueCase_ = 1; + value_ = input.readInt64(); + break; + } + case 17: { + valueCase_ = 2; + value_ = input.readDouble(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 3; + value_ = s; + break; + } + case 32: { + valueCase_ = 4; + value_ = input.readBool(); + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((com.google.protobuf.Timestamp) value_).toBuilder(); + } + value_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (valueCase_ == 6) { + subBuilder = ((com.google.protobuf.Duration) value_).toBuilder(); + } + value_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Duration) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 6; + 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 flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + INTEGER(1), + FLOAT_VALUE(2), + STRING_VALUE(3), + BOOLEAN(4), + DATETIME(5), + DURATION(6), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return INTEGER; + case 2: return FLOAT_VALUE; + case 3: return STRING_VALUE; + case 4: return BOOLEAN; + case 5: return DATETIME; + case 6: return DURATION; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int INTEGER_FIELD_NUMBER = 1; + /** + * int64 integer = 1; + */ + public long getInteger() { + if (valueCase_ == 1) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int FLOAT_VALUE_FIELD_NUMBER = 2; + /** + * double float_value = 2; + */ + public double getFloatValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 3; + /** + * string string_value = 3; + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + 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(); + if (valueCase_ == 3) { + value_ = s; + } + return s; + } + } + /** + * string string_value = 3; + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 3) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOLEAN_FIELD_NUMBER = 4; + /** + * bool boolean = 4; + */ + public boolean getBoolean() { + if (valueCase_ == 4) { + return (java.lang.Boolean) value_; + } + return false; + } + + public static final int DATETIME_FIELD_NUMBER = 5; + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public boolean hasDatetime() { + return valueCase_ == 5; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.Timestamp getDatetime() { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int DURATION_FIELD_NUMBER = 6; + /** + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return valueCase_ == 6; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeInt64( + 1, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 2) { + output.writeDouble( + 2, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + if (valueCase_ == 4) { + output.writeBool( + 4, (boolean)((java.lang.Boolean) value_)); + } + if (valueCase_ == 5) { + output.writeMessage(5, (com.google.protobuf.Timestamp) value_); + } + if (valueCase_ == 6) { + output.writeMessage(6, (com.google.protobuf.Duration) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 1, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 2, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 4, (boolean)((java.lang.Boolean) value_)); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.protobuf.Timestamp) value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.protobuf.Duration) 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 flyteidl.core.Literals.Primitive)) { + return super.equals(obj); + } + flyteidl.core.Literals.Primitive other = (flyteidl.core.Literals.Primitive) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (getInteger() + != other.getInteger()) return false; + break; + case 2: + if (java.lang.Double.doubleToLongBits(getFloatValue()) + != java.lang.Double.doubleToLongBits( + other.getFloatValue())) return false; + break; + case 3: + if (!getStringValue() + .equals(other.getStringValue())) return false; + break; + case 4: + if (getBoolean() + != other.getBoolean()) return false; + break; + case 5: + if (!getDatetime() + .equals(other.getDatetime())) return false; + break; + case 6: + if (!getDuration() + .equals(other.getDuration())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + INTEGER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInteger()); + break; + case 2: + hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFloatValue())); + break; + case 3: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 4: + hash = (37 * hash) + BOOLEAN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBoolean()); + break; + case 5: + hash = (37 * hash) + DATETIME_FIELD_NUMBER; + hash = (53 * hash) + getDatetime().hashCode(); + break; + case 6: + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Primitive parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Primitive parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Primitive parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Primitive parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Primitive parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Primitive parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Primitive parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Primitive 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 flyteidl.core.Literals.Primitive parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Primitive 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 flyteidl.core.Literals.Primitive parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Primitive 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(flyteidl.core.Literals.Primitive 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; + } + /** + *
+     * Primitive Types
+     * 
+ * + * Protobuf type {@code flyteidl.core.Primitive} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Primitive) + flyteidl.core.Literals.PrimitiveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); + } + + // Construct using flyteidl.core.Literals.Primitive.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(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Primitive getDefaultInstanceForType() { + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Primitive build() { + flyteidl.core.Literals.Primitive result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Primitive buildPartial() { + flyteidl.core.Literals.Primitive result = new flyteidl.core.Literals.Primitive(this); + if (valueCase_ == 1) { + result.value_ = value_; + } + if (valueCase_ == 2) { + result.value_ = value_; + } + if (valueCase_ == 3) { + result.value_ = value_; + } + if (valueCase_ == 4) { + result.value_ = value_; + } + if (valueCase_ == 5) { + if (datetimeBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = datetimeBuilder_.build(); + } + } + if (valueCase_ == 6) { + if (durationBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = durationBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + 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 flyteidl.core.Literals.Primitive) { + return mergeFrom((flyteidl.core.Literals.Primitive)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Primitive other) { + if (other == flyteidl.core.Literals.Primitive.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case INTEGER: { + setInteger(other.getInteger()); + break; + } + case FLOAT_VALUE: { + setFloatValue(other.getFloatValue()); + break; + } + case STRING_VALUE: { + valueCase_ = 3; + value_ = other.value_; + onChanged(); + break; + } + case BOOLEAN: { + setBoolean(other.getBoolean()); + break; + } + case DATETIME: { + mergeDatetime(other.getDatetime()); + break; + } + case DURATION: { + mergeDuration(other.getDuration()); + break; + } + case VALUE_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 { + flyteidl.core.Literals.Primitive parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Primitive) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + /** + * int64 integer = 1; + */ + public long getInteger() { + if (valueCase_ == 1) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * int64 integer = 1; + */ + public Builder setInteger(long value) { + valueCase_ = 1; + value_ = value; + onChanged(); + return this; + } + /** + * int64 integer = 1; + */ + public Builder clearInteger() { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * double float_value = 2; + */ + public double getFloatValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + /** + * double float_value = 2; + */ + public Builder setFloatValue(double value) { + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + * double float_value = 2; + */ + public Builder clearFloatValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * string string_value = 3; + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 3) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string string_value = 3; + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 3) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string string_value = 3; + */ + public Builder setStringValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + * string string_value = 3; + */ + public Builder clearStringValue() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + * string string_value = 3; + */ + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + + /** + * bool boolean = 4; + */ + public boolean getBoolean() { + if (valueCase_ == 4) { + return (java.lang.Boolean) value_; + } + return false; + } + /** + * bool boolean = 4; + */ + public Builder setBoolean(boolean value) { + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + /** + * bool boolean = 4; + */ + public Builder clearBoolean() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> datetimeBuilder_; + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public boolean hasDatetime() { + return valueCase_ == 5; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.Timestamp getDatetime() { + if (datetimeBuilder_ == null) { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return datetimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder setDatetime(com.google.protobuf.Timestamp value) { + if (datetimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + datetimeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder setDatetime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (datetimeBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + datetimeBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder mergeDatetime(com.google.protobuf.Timestamp value) { + if (datetimeBuilder_ == null) { + if (valueCase_ == 5 && + value_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + value_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + datetimeBuilder_.mergeFrom(value); + } + datetimeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder clearDatetime() { + if (datetimeBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + datetimeBuilder_.clear(); + } + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.Timestamp.Builder getDatetimeBuilder() { + return getDatetimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { + if ((valueCase_ == 5) && (datetimeBuilder_ != null)) { + return datetimeBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getDatetimeFieldBuilder() { + if (datetimeBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + datetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged();; + return datetimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return valueCase_ == 6; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (valueCase_ == 6) { + return durationBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 6; + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (valueCase_ == 6 && + value_ != com.google.protobuf.Duration.getDefaultInstance()) { + value_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 6) { + durationBuilder_.mergeFrom(value); + } + durationBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + durationBuilder_.clear(); + } + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + return getDurationFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if ((valueCase_ == 6) && (durationBuilder_ != null)) { + return durationBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * .google.protobuf.Duration duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + if (!(valueCase_ == 6)) { + value_ = com.google.protobuf.Duration.getDefaultInstance(); + } + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 6; + onChanged();; + return durationBuilder_; + } + @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:flyteidl.core.Primitive) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Primitive) + private static final flyteidl.core.Literals.Primitive DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Primitive(); + } + + public static flyteidl.core.Literals.Primitive getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Primitive parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Primitive(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 flyteidl.core.Literals.Primitive getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VoidOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Void) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
+   * undefined since it can be assigned to a scalar of any LiteralType.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Void} + */ + public static final class Void extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Void) + VoidOrBuilder { + private static final long serialVersionUID = 0L; + // Use Void.newBuilder() to construct. + private Void(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Void() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Void( + 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; + 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 flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.core.Literals.Void)) { + return super.equals(obj); + } + flyteidl.core.Literals.Void other = (flyteidl.core.Literals.Void) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Void parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Void parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Void parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Void parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Void parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Void parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Void parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Void 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 flyteidl.core.Literals.Void parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Void 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 flyteidl.core.Literals.Void parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Void 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(flyteidl.core.Literals.Void 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; + } + /** + *
+     * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
+     * undefined since it can be assigned to a scalar of any LiteralType.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Void} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Void) + flyteidl.core.Literals.VoidOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); + } + + // Construct using flyteidl.core.Literals.Void.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Void getDefaultInstanceForType() { + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Void build() { + flyteidl.core.Literals.Void result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Void buildPartial() { + flyteidl.core.Literals.Void result = new flyteidl.core.Literals.Void(this); + 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 flyteidl.core.Literals.Void) { + return mergeFrom((flyteidl.core.Literals.Void)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Void other) { + if (other == flyteidl.core.Literals.Void.getDefaultInstance()) return this; + 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 { + flyteidl.core.Literals.Void parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Void) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.core.Void) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Void) + private static final flyteidl.core.Literals.Void DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Void(); + } + + public static flyteidl.core.Literals.Void getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Void parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Void(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 flyteidl.core.Literals.Void getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Blob) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + boolean hasMetadata(); + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + flyteidl.core.Literals.BlobMetadata getMetadata(); + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder(); + + /** + * string uri = 3; + */ + java.lang.String getUri(); + /** + * string uri = 3; + */ + com.google.protobuf.ByteString + getUriBytes(); + } + /** + *
+   * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
+   * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Blob} + */ + public static final class Blob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Blob) + BlobOrBuilder { + private static final long serialVersionUID = 0L; + // Use Blob.newBuilder() to construct. + private Blob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Blob() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Blob( + 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: { + flyteidl.core.Literals.BlobMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Literals.BlobMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); + } + + public static final int METADATA_FIELD_NUMBER = 1; + private flyteidl.core.Literals.BlobMetadata metadata_; + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int URI_FIELD_NUMBER = 3; + private volatile java.lang.Object uri_; + /** + * string uri = 3; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * string uri = 3; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = 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 (metadata_ != null) { + output.writeMessage(1, getMetadata()); + } + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); + } + 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 flyteidl.core.Literals.Blob)) { + return super.equals(obj); + } + flyteidl.core.Literals.Blob other = (flyteidl.core.Literals.Blob) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getUri() + .equals(other.getUri())) 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 (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Blob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Blob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Blob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Blob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Blob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Blob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Blob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Blob 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 flyteidl.core.Literals.Blob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Blob 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 flyteidl.core.Literals.Blob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Blob 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(flyteidl.core.Literals.Blob 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; + } + /** + *
+     * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
+     * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Blob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Blob) + flyteidl.core.Literals.BlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); + } + + // Construct using flyteidl.core.Literals.Blob.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 (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + uri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Blob getDefaultInstanceForType() { + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Blob build() { + flyteidl.core.Literals.Blob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Blob buildPartial() { + flyteidl.core.Literals.Blob result = new flyteidl.core.Literals.Blob(this); + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.uri_ = uri_; + 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 flyteidl.core.Literals.Blob) { + return mergeFrom((flyteidl.core.Literals.Blob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Blob other) { + if (other == flyteidl.core.Literals.Blob.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + 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 { + flyteidl.core.Literals.Blob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Blob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Literals.BlobMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> metadataBuilder_; + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder setMetadata(flyteidl.core.Literals.BlobMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder setMetadata( + flyteidl.core.Literals.BlobMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder mergeMetadata(flyteidl.core.Literals.BlobMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Literals.BlobMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; + } + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object uri_ = ""; + /** + * string uri = 3; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uri = 3; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uri = 3; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * string uri = 3; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * string uri = 3; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = 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:flyteidl.core.Blob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Blob) + private static final flyteidl.core.Literals.Blob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Blob(); + } + + public static flyteidl.core.Literals.Blob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Blob(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 flyteidl.core.Literals.Blob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlobMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.BlobType type = 1; + */ + boolean hasType(); + /** + * .flyteidl.core.BlobType type = 1; + */ + flyteidl.core.Types.BlobType getType(); + /** + * .flyteidl.core.BlobType type = 1; + */ + flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.core.BlobMetadata} + */ + public static final class BlobMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BlobMetadata) + BlobMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BlobMetadata.newBuilder() to construct. + private BlobMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlobMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BlobMetadata( + 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: { + flyteidl.core.Types.BlobType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private flyteidl.core.Types.BlobType type_; + /** + * .flyteidl.core.BlobType type = 1; + */ + public boolean hasType() { + return type_ != null; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobType getType() { + return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + 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 (type_ != null) { + output.writeMessage(1, getType()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getType()); + } + 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 flyteidl.core.Literals.BlobMetadata)) { + return super.equals(obj); + } + flyteidl.core.Literals.BlobMetadata other = (flyteidl.core.Literals.BlobMetadata) obj; + + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) 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 (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BlobMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BlobMetadata 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 flyteidl.core.Literals.BlobMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BlobMetadata 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 flyteidl.core.Literals.BlobMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BlobMetadata 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(flyteidl.core.Literals.BlobMetadata 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 flyteidl.core.BlobMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobMetadata) + flyteidl.core.Literals.BlobMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); + } + + // Construct using flyteidl.core.Literals.BlobMetadata.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 (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.BlobMetadata getDefaultInstanceForType() { + return flyteidl.core.Literals.BlobMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.BlobMetadata build() { + flyteidl.core.Literals.BlobMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.BlobMetadata buildPartial() { + flyteidl.core.Literals.BlobMetadata result = new flyteidl.core.Literals.BlobMetadata(this); + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.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 flyteidl.core.Literals.BlobMetadata) { + return mergeFrom((flyteidl.core.Literals.BlobMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BlobMetadata other) { + if (other == flyteidl.core.Literals.BlobMetadata.getDefaultInstance()) return this; + if (other.hasType()) { + mergeType(other.getType()); + } + 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 { + flyteidl.core.Literals.BlobMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BlobMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Types.BlobType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> typeBuilder_; + /** + * .flyteidl.core.BlobType type = 1; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder setType(flyteidl.core.Types.BlobType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder setType( + flyteidl.core.Types.BlobType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder mergeType(flyteidl.core.Types.BlobType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.BlobType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.BlobType.getDefaultInstance() : type_; + } + } + /** + * .flyteidl.core.BlobType type = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + @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:flyteidl.core.BlobMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BlobMetadata) + private static final flyteidl.core.Literals.BlobMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BlobMetadata(); + } + + public static flyteidl.core.Literals.BlobMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlobMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlobMetadata(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 flyteidl.core.Literals.BlobMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BinaryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Binary) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes value = 1; + */ + com.google.protobuf.ByteString getValue(); + + /** + * string tag = 2; + */ + java.lang.String getTag(); + /** + * string tag = 2; + */ + com.google.protobuf.ByteString + getTagBytes(); + } + /** + *
+   * A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
+   * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Binary} + */ + public static final class Binary extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Binary) + BinaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use Binary.newBuilder() to construct. + private Binary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Binary() { + value_ = com.google.protobuf.ByteString.EMPTY; + tag_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Binary( + 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: { + + value_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + tag_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 1; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + public static final int TAG_FIELD_NUMBER = 2; + private volatile java.lang.Object tag_; + /** + * string tag = 2; + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + 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(); + tag_ = s; + return s; + } + } + /** + * string tag = 2; + */ + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tag_ = 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 (!value_.isEmpty()) { + output.writeBytes(1, value_); + } + if (!getTagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, value_); + } + if (!getTagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); + } + 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 flyteidl.core.Literals.Binary)) { + return super.equals(obj); + } + flyteidl.core.Literals.Binary other = (flyteidl.core.Literals.Binary) obj; + + if (!getValue() + .equals(other.getValue())) return false; + if (!getTag() + .equals(other.getTag())) 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Binary parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binary parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binary parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binary 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 flyteidl.core.Literals.Binary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binary 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 flyteidl.core.Literals.Binary parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binary 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(flyteidl.core.Literals.Binary 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 simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
+     * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Binary} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Binary) + flyteidl.core.Literals.BinaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); + } + + // Construct using flyteidl.core.Literals.Binary.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(); + value_ = com.google.protobuf.ByteString.EMPTY; + + tag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Binary getDefaultInstanceForType() { + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Binary build() { + flyteidl.core.Literals.Binary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Binary buildPartial() { + flyteidl.core.Literals.Binary result = new flyteidl.core.Literals.Binary(this); + result.value_ = value_; + result.tag_ = tag_; + 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 flyteidl.core.Literals.Binary) { + return mergeFrom((flyteidl.core.Literals.Binary)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Binary other) { + if (other == flyteidl.core.Literals.Binary.getDefaultInstance()) return this; + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (!other.getTag().isEmpty()) { + tag_ = other.tag_; + 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 { + flyteidl.core.Literals.Binary parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Binary) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 1; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 1; + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 1; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private java.lang.Object tag_ = ""; + /** + * string tag = 2; + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag = 2; + */ + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag = 2; + */ + public Builder setTag( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tag_ = value; + onChanged(); + return this; + } + /** + * string tag = 2; + */ + public Builder clearTag() { + + tag_ = getDefaultInstance().getTag(); + onChanged(); + return this; + } + /** + * string tag = 2; + */ + public Builder setTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tag_ = 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:flyteidl.core.Binary) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Binary) + private static final flyteidl.core.Literals.Binary DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Binary(); + } + + public static flyteidl.core.Literals.Binary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Binary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Binary(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 flyteidl.core.Literals.Binary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SchemaOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Schema) + com.google.protobuf.MessageOrBuilder { + + /** + * string uri = 1; + */ + java.lang.String getUri(); + /** + * string uri = 1; + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + * .flyteidl.core.SchemaType type = 3; + */ + boolean hasType(); + /** + * .flyteidl.core.SchemaType type = 3; + */ + flyteidl.core.Types.SchemaType getType(); + /** + * .flyteidl.core.SchemaType type = 3; + */ + flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder(); + } + /** + *
+   * A strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Schema} + */ + public static final class Schema extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Schema) + SchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use Schema.newBuilder() to construct. + private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Schema() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Schema( + 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(); + + uri_ = s; + break; + } + case 26: { + flyteidl.core.Types.SchemaType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private flyteidl.core.Types.SchemaType type_; + /** + * .flyteidl.core.SchemaType type = 3; + */ + public boolean hasType() { + return type_ != null; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaType getType() { + return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + 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 (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (type_ != null) { + output.writeMessage(3, getType()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getType()); + } + 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 flyteidl.core.Literals.Schema)) { + return super.equals(obj); + } + flyteidl.core.Literals.Schema other = (flyteidl.core.Literals.Schema) obj; + + if (!getUri() + .equals(other.getUri())) return false; + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Schema parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Schema parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Schema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Schema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Schema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Schema parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Schema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Schema 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 flyteidl.core.Literals.Schema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Schema 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 flyteidl.core.Literals.Schema parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Schema 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(flyteidl.core.Literals.Schema 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 strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Schema} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Schema) + flyteidl.core.Literals.SchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); + } + + // Construct using flyteidl.core.Literals.Schema.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(); + uri_ = ""; + + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Schema getDefaultInstanceForType() { + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Schema build() { + flyteidl.core.Literals.Schema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Schema buildPartial() { + flyteidl.core.Literals.Schema result = new flyteidl.core.Literals.Schema(this); + result.uri_ = uri_; + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.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 flyteidl.core.Literals.Schema) { + return mergeFrom((flyteidl.core.Literals.Schema)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Schema other) { + if (other == flyteidl.core.Literals.Schema.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (other.hasType()) { + mergeType(other.getType()); + } + 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 { + flyteidl.core.Literals.Schema parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Schema) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uri_ = ""; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uri = 1; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Types.SchemaType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> typeBuilder_; + /** + * .flyteidl.core.SchemaType type = 3; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder setType(flyteidl.core.Types.SchemaType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder setType( + flyteidl.core.Types.SchemaType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder mergeType(flyteidl.core.Types.SchemaType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.SchemaType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; + } + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + @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:flyteidl.core.Schema) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Schema) + private static final flyteidl.core.Literals.Schema DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Schema(); + } + + public static flyteidl.core.Literals.Schema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schema(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 flyteidl.core.Literals.Schema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ScalarOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Scalar) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Primitive primitive = 1; + */ + boolean hasPrimitive(); + /** + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.Primitive getPrimitive(); + /** + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); + + /** + * .flyteidl.core.Blob blob = 2; + */ + boolean hasBlob(); + /** + * .flyteidl.core.Blob blob = 2; + */ + flyteidl.core.Literals.Blob getBlob(); + /** + * .flyteidl.core.Blob blob = 2; + */ + flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder(); + + /** + * .flyteidl.core.Binary binary = 3; + */ + boolean hasBinary(); + /** + * .flyteidl.core.Binary binary = 3; + */ + flyteidl.core.Literals.Binary getBinary(); + /** + * .flyteidl.core.Binary binary = 3; + */ + flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder(); + + /** + * .flyteidl.core.Schema schema = 4; + */ + boolean hasSchema(); + /** + * .flyteidl.core.Schema schema = 4; + */ + flyteidl.core.Literals.Schema getSchema(); + /** + * .flyteidl.core.Schema schema = 4; + */ + flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder(); + + /** + * .flyteidl.core.Void none_type = 5; + */ + boolean hasNoneType(); + /** + * .flyteidl.core.Void none_type = 5; + */ + flyteidl.core.Literals.Void getNoneType(); + /** + * .flyteidl.core.Void none_type = 5; + */ + flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder(); + + /** + * .flyteidl.core.Error error = 6; + */ + boolean hasError(); + /** + * .flyteidl.core.Error error = 6; + */ + flyteidl.core.Types.Error getError(); + /** + * .flyteidl.core.Error error = 6; + */ + flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); + + /** + * .google.protobuf.Struct generic = 7; + */ + boolean hasGeneric(); + /** + * .google.protobuf.Struct generic = 7; + */ + com.google.protobuf.Struct getGeneric(); + /** + * .google.protobuf.Struct generic = 7; + */ + com.google.protobuf.StructOrBuilder getGenericOrBuilder(); + + public flyteidl.core.Literals.Scalar.ValueCase getValueCase(); + } + /** + * Protobuf type {@code flyteidl.core.Scalar} + */ + public static final class Scalar extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Scalar) + ScalarOrBuilder { + private static final long serialVersionUID = 0L; + // Use Scalar.newBuilder() to construct. + private Scalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Scalar() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Scalar( + 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: { + flyteidl.core.Literals.Primitive.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Primitive) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + flyteidl.core.Literals.Blob.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.Blob) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Blob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Blob) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + flyteidl.core.Literals.Binary.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((flyteidl.core.Literals.Binary) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Binary.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Binary) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + flyteidl.core.Literals.Schema.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((flyteidl.core.Literals.Schema) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Schema) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + flyteidl.core.Literals.Void.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((flyteidl.core.Literals.Void) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Void.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Void) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 50: { + flyteidl.core.Types.Error.Builder subBuilder = null; + if (valueCase_ == 6) { + subBuilder = ((flyteidl.core.Types.Error) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.Error) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 6; + break; + } + case 58: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (valueCase_ == 7) { + subBuilder = ((com.google.protobuf.Struct) value_).toBuilder(); + } + value_ = + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Struct) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 7; + 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 flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + PRIMITIVE(1), + BLOB(2), + BINARY(3), + SCHEMA(4), + NONE_TYPE(5), + ERROR(6), + GENERIC(7), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return PRIMITIVE; + case 2: return BLOB; + case 3: return BINARY; + case 4: return SCHEMA; + case 5: return NONE_TYPE; + case 6: return ERROR; + case 7: return GENERIC; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int PRIMITIVE_FIELD_NUMBER = 1; + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valueCase_ == 1; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + + public static final int BLOB_FIELD_NUMBER = 2; + /** + * .flyteidl.core.Blob blob = 2; + */ + public boolean hasBlob() { + return valueCase_ == 2; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.Blob getBlob() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + + public static final int BINARY_FIELD_NUMBER = 3; + /** + * .flyteidl.core.Binary binary = 3; + */ + public boolean hasBinary() { + return valueCase_ == 3; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.Binary getBinary() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + + public static final int SCHEMA_FIELD_NUMBER = 4; + /** + * .flyteidl.core.Schema schema = 4; + */ + public boolean hasSchema() { + return valueCase_ == 4; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.Schema getSchema() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + + public static final int NONE_TYPE_FIELD_NUMBER = 5; + /** + * .flyteidl.core.Void none_type = 5; + */ + public boolean hasNoneType() { + return valueCase_ == 5; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.Void getNoneType() { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 6; + /** + * .flyteidl.core.Error error = 6; + */ + public boolean hasError() { + return valueCase_ == 6; + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.Error getError() { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + + public static final int GENERIC_FIELD_NUMBER = 7; + /** + * .google.protobuf.Struct generic = 7; + */ + public boolean hasGeneric() { + return valueCase_ == 7; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.Struct getGeneric() { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Primitive) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.Blob) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Literals.Binary) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Literals.Schema) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, (flyteidl.core.Literals.Void) value_); + } + if (valueCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Types.Error) value_); + } + if (valueCase_ == 7) { + output.writeMessage(7, (com.google.protobuf.Struct) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Primitive) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.Blob) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Literals.Binary) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Literals.Schema) value_); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.core.Literals.Void) value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Types.Error) value_); + } + if (valueCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.protobuf.Struct) 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 flyteidl.core.Literals.Scalar)) { + return super.equals(obj); + } + flyteidl.core.Literals.Scalar other = (flyteidl.core.Literals.Scalar) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (!getPrimitive() + .equals(other.getPrimitive())) return false; + break; + case 2: + if (!getBlob() + .equals(other.getBlob())) return false; + break; + case 3: + if (!getBinary() + .equals(other.getBinary())) return false; + break; + case 4: + if (!getSchema() + .equals(other.getSchema())) return false; + break; + case 5: + if (!getNoneType() + .equals(other.getNoneType())) return false; + break; + case 6: + if (!getError() + .equals(other.getError())) return false; + break; + case 7: + if (!getGeneric() + .equals(other.getGeneric())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; + hash = (53 * hash) + getPrimitive().hashCode(); + break; + case 2: + hash = (37 * hash) + BLOB_FIELD_NUMBER; + hash = (53 * hash) + getBlob().hashCode(); + break; + case 3: + hash = (37 * hash) + BINARY_FIELD_NUMBER; + hash = (53 * hash) + getBinary().hashCode(); + break; + case 4: + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + break; + case 5: + hash = (37 * hash) + NONE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getNoneType().hashCode(); + break; + case 6: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 7: + hash = (37 * hash) + GENERIC_FIELD_NUMBER; + hash = (53 * hash) + getGeneric().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Scalar parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Scalar parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Scalar parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Scalar parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Scalar parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Scalar parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Scalar parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Scalar 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 flyteidl.core.Literals.Scalar parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Scalar 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 flyteidl.core.Literals.Scalar parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Scalar 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(flyteidl.core.Literals.Scalar 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 flyteidl.core.Scalar} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Scalar) + flyteidl.core.Literals.ScalarOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); + } + + // Construct using flyteidl.core.Literals.Scalar.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(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Scalar getDefaultInstanceForType() { + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Scalar build() { + flyteidl.core.Literals.Scalar result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Scalar buildPartial() { + flyteidl.core.Literals.Scalar result = new flyteidl.core.Literals.Scalar(this); + if (valueCase_ == 1) { + if (primitiveBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = primitiveBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (blobBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = blobBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (binaryBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = binaryBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (schemaBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = schemaBuilder_.build(); + } + } + if (valueCase_ == 5) { + if (noneTypeBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = noneTypeBuilder_.build(); + } + } + if (valueCase_ == 6) { + if (errorBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = errorBuilder_.build(); + } + } + if (valueCase_ == 7) { + if (genericBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = genericBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + 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 flyteidl.core.Literals.Scalar) { + return mergeFrom((flyteidl.core.Literals.Scalar)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Scalar other) { + if (other == flyteidl.core.Literals.Scalar.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case PRIMITIVE: { + mergePrimitive(other.getPrimitive()); + break; + } + case BLOB: { + mergeBlob(other.getBlob()); + break; + } + case BINARY: { + mergeBinary(other.getBinary()); + break; + } + case SCHEMA: { + mergeSchema(other.getSchema()); + break; + } + case NONE_TYPE: { + mergeNoneType(other.getNoneType()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case GENERIC: { + mergeGeneric(other.getGeneric()); + break; + } + case VALUE_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 { + flyteidl.core.Literals.Scalar parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Scalar) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valueCase_ == 1; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (primitiveBuilder_ == null) { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return primitiveBuilder_.getMessage(); + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + primitiveBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive( + flyteidl.core.Literals.Primitive.Builder builderForValue) { + if (primitiveBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + primitiveBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (valueCase_ == 1 && + value_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + primitiveBuilder_.mergeFrom(value); + } + primitiveBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder clearPrimitive() { + if (primitiveBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + primitiveBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { + return getPrimitiveFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if ((valueCase_ == 1) && (primitiveBuilder_ != null)) { + return primitiveBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> + getPrimitiveFieldBuilder() { + if (primitiveBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( + (flyteidl.core.Literals.Primitive) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return primitiveBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> blobBuilder_; + /** + * .flyteidl.core.Blob blob = 2; + */ + public boolean hasBlob() { + return valueCase_ == 2; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.Blob getBlob() { + if (blobBuilder_ == null) { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return blobBuilder_.getMessage(); + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder setBlob(flyteidl.core.Literals.Blob value) { + if (blobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + blobBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder setBlob( + flyteidl.core.Literals.Blob.Builder builderForValue) { + if (blobBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + blobBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder mergeBlob(flyteidl.core.Literals.Blob value) { + if (blobBuilder_ == null) { + if (valueCase_ == 2 && + value_ != flyteidl.core.Literals.Blob.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Blob.newBuilder((flyteidl.core.Literals.Blob) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + blobBuilder_.mergeFrom(value); + } + blobBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder clearBlob() { + if (blobBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + blobBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.Blob.Builder getBlobBuilder() { + return getBlobFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { + if ((valueCase_ == 2) && (blobBuilder_ != null)) { + return blobBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Blob blob = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> + getBlobFieldBuilder() { + if (blobBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = flyteidl.core.Literals.Blob.getDefaultInstance(); + } + blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder>( + (flyteidl.core.Literals.Blob) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged();; + return blobBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> binaryBuilder_; + /** + * .flyteidl.core.Binary binary = 3; + */ + public boolean hasBinary() { + return valueCase_ == 3; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.Binary getBinary() { + if (binaryBuilder_ == null) { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return binaryBuilder_.getMessage(); + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder setBinary(flyteidl.core.Literals.Binary value) { + if (binaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + binaryBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder setBinary( + flyteidl.core.Literals.Binary.Builder builderForValue) { + if (binaryBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + binaryBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder mergeBinary(flyteidl.core.Literals.Binary value) { + if (binaryBuilder_ == null) { + if (valueCase_ == 3 && + value_ != flyteidl.core.Literals.Binary.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Binary.newBuilder((flyteidl.core.Literals.Binary) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + binaryBuilder_.mergeFrom(value); + } + binaryBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder clearBinary() { + if (binaryBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + binaryBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.Binary.Builder getBinaryBuilder() { + return getBinaryFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { + if ((valueCase_ == 3) && (binaryBuilder_ != null)) { + return binaryBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Binary binary = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> + getBinaryFieldBuilder() { + if (binaryBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = flyteidl.core.Literals.Binary.getDefaultInstance(); + } + binaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder>( + (flyteidl.core.Literals.Binary) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged();; + return binaryBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> schemaBuilder_; + /** + * .flyteidl.core.Schema schema = 4; + */ + public boolean hasSchema() { + return valueCase_ == 4; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.Schema getSchema() { + if (schemaBuilder_ == null) { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return schemaBuilder_.getMessage(); + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder setSchema(flyteidl.core.Literals.Schema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder setSchema( + flyteidl.core.Literals.Schema.Builder builderForValue) { + if (schemaBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder mergeSchema(flyteidl.core.Literals.Schema value) { + if (schemaBuilder_ == null) { + if (valueCase_ == 4 && + value_ != flyteidl.core.Literals.Schema.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Schema.newBuilder((flyteidl.core.Literals.Schema) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + schemaBuilder_.mergeFrom(value); + } + schemaBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + schemaBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.Schema.Builder getSchemaBuilder() { + return getSchemaFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { + if ((valueCase_ == 4) && (schemaBuilder_ != null)) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Schema schema = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = flyteidl.core.Literals.Schema.getDefaultInstance(); + } + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder>( + (flyteidl.core.Literals.Schema) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged();; + return schemaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> noneTypeBuilder_; + /** + * .flyteidl.core.Void none_type = 5; + */ + public boolean hasNoneType() { + return valueCase_ == 5; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.Void getNoneType() { + if (noneTypeBuilder_ == null) { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return noneTypeBuilder_.getMessage(); + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder setNoneType(flyteidl.core.Literals.Void value) { + if (noneTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + noneTypeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder setNoneType( + flyteidl.core.Literals.Void.Builder builderForValue) { + if (noneTypeBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + noneTypeBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder mergeNoneType(flyteidl.core.Literals.Void value) { + if (noneTypeBuilder_ == null) { + if (valueCase_ == 5 && + value_ != flyteidl.core.Literals.Void.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Void.newBuilder((flyteidl.core.Literals.Void) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + noneTypeBuilder_.mergeFrom(value); + } + noneTypeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder clearNoneType() { + if (noneTypeBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + noneTypeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.Void.Builder getNoneTypeBuilder() { + return getNoneTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { + if ((valueCase_ == 5) && (noneTypeBuilder_ != null)) { + return noneTypeBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Void none_type = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> + getNoneTypeFieldBuilder() { + if (noneTypeBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = flyteidl.core.Literals.Void.getDefaultInstance(); + } + noneTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder>( + (flyteidl.core.Literals.Void) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged();; + return noneTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; + /** + * .flyteidl.core.Error error = 6; + */ + public boolean hasError() { + return valueCase_ == 6; + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.Error getError() { + if (errorBuilder_ == null) { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } else { + if (valueCase_ == 6) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder setError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder setError( + flyteidl.core.Types.Error.Builder builderForValue) { + if (errorBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 6; + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder mergeError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (valueCase_ == 6 && + value_ != flyteidl.core.Types.Error.getDefaultInstance()) { + value_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 6) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.Error.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if ((valueCase_ == 6) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Error error = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(valueCase_ == 6)) { + value_ = flyteidl.core.Types.Error.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( + (flyteidl.core.Types.Error) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 6; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> genericBuilder_; + /** + * .google.protobuf.Struct generic = 7; + */ + public boolean hasGeneric() { + return valueCase_ == 7; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.Struct getGeneric() { + if (genericBuilder_ == null) { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (valueCase_ == 7) { + return genericBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder setGeneric(com.google.protobuf.Struct value) { + if (genericBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + genericBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder setGeneric( + com.google.protobuf.Struct.Builder builderForValue) { + if (genericBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + genericBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 7; + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder mergeGeneric(com.google.protobuf.Struct value) { + if (genericBuilder_ == null) { + if (valueCase_ == 7 && + value_ != com.google.protobuf.Struct.getDefaultInstance()) { + value_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 7) { + genericBuilder_.mergeFrom(value); + } + genericBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder clearGeneric() { + if (genericBuilder_ == null) { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + } + genericBuilder_.clear(); + } + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.Struct.Builder getGenericBuilder() { + return getGenericFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { + if ((valueCase_ == 7) && (genericBuilder_ != null)) { + return genericBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + /** + * .google.protobuf.Struct generic = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getGenericFieldBuilder() { + if (genericBuilder_ == null) { + if (!(valueCase_ == 7)) { + value_ = com.google.protobuf.Struct.getDefaultInstance(); + } + genericBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 7; + onChanged();; + return genericBuilder_; + } + @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:flyteidl.core.Scalar) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Scalar) + private static final flyteidl.core.Literals.Scalar DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Scalar(); + } + + public static flyteidl.core.Literals.Scalar getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Scalar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Scalar(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 flyteidl.core.Literals.Scalar getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Literal) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + boolean hasScalar(); + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.Scalar getScalar(); + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); + + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + boolean hasCollection(); + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + flyteidl.core.Literals.LiteralCollection getCollection(); + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder(); + + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + boolean hasMap(); + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + flyteidl.core.Literals.LiteralMap getMap(); + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder(); + + public flyteidl.core.Literals.Literal.ValueCase getValueCase(); + } + /** + *
+   * A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Literal} + */ + public static final class Literal extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Literal) + LiteralOrBuilder { + private static final long serialVersionUID = 0L; + // Use Literal.newBuilder() to construct. + private Literal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Literal() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Literal( + 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: { + flyteidl.core.Literals.Scalar.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + flyteidl.core.Literals.LiteralCollection.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.LiteralCollection) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.LiteralCollection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralCollection) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + SCALAR(1), + COLLECTION(2), + MAP(3), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return SCALAR; + case 2: return COLLECTION; + case 3: return MAP; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int SCALAR_FIELD_NUMBER = 1; + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + + public static final int COLLECTION_FIELD_NUMBER = 2; + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollection getCollection() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + + public static final int MAP_FIELD_NUMBER = 3; + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public boolean hasMap() { + return valueCase_ == 3; + } + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMap getMap() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.LiteralCollection) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Literals.LiteralMap) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.LiteralCollection) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Literals.LiteralMap) 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 flyteidl.core.Literals.Literal)) { + return super.equals(obj); + } + flyteidl.core.Literals.Literal other = (flyteidl.core.Literals.Literal) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (!getScalar() + .equals(other.getScalar())) return false; + break; + case 2: + if (!getCollection() + .equals(other.getCollection())) return false; + break; + case 3: + if (!getMap() + .equals(other.getMap())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + SCALAR_FIELD_NUMBER; + hash = (53 * hash) + getScalar().hashCode(); + break; + case 2: + hash = (37 * hash) + COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getCollection().hashCode(); + break; + case 3: + hash = (37 * hash) + MAP_FIELD_NUMBER; + hash = (53 * hash) + getMap().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Literal parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Literal parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Literal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Literal parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Literal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Literal parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Literal parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Literal 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 flyteidl.core.Literals.Literal parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Literal 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 flyteidl.core.Literals.Literal parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Literal 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(flyteidl.core.Literals.Literal 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 simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Literal} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Literal) + flyteidl.core.Literals.LiteralOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); + } + + // Construct using flyteidl.core.Literals.Literal.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(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Literal getDefaultInstanceForType() { + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Literal build() { + flyteidl.core.Literals.Literal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Literal buildPartial() { + flyteidl.core.Literals.Literal result = new flyteidl.core.Literals.Literal(this); + if (valueCase_ == 1) { + if (scalarBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = scalarBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (collectionBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = collectionBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (mapBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = mapBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + 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 flyteidl.core.Literals.Literal) { + return mergeFrom((flyteidl.core.Literals.Literal)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Literal other) { + if (other == flyteidl.core.Literals.Literal.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case SCALAR: { + mergeScalar(other.getScalar()); + break; + } + case COLLECTION: { + mergeCollection(other.getCollection()); + break; + } + case MAP: { + mergeMap(other.getMap()); + break; + } + case VALUE_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 { + flyteidl.core.Literals.Literal parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Literal) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return scalarBuilder_.getMessage(); + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar( + flyteidl.core.Literals.Scalar.Builder builderForValue) { + if (scalarBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + scalarBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (valueCase_ == 1 && + value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + scalarBuilder_.mergeFrom(value); + } + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder clearScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + scalarBuilder_.clear(); + } + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { + return getScalarFieldBuilder().getBuilder(); + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if ((valueCase_ == 1) && (scalarBuilder_ != null)) { + return scalarBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> + getScalarFieldBuilder() { + if (scalarBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( + (flyteidl.core.Literals.Scalar) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return scalarBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> collectionBuilder_; + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollection getCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return collectionBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder setCollection(flyteidl.core.Literals.LiteralCollection value) { + if (collectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder setCollection( + flyteidl.core.Literals.LiteralCollection.Builder builderForValue) { + if (collectionBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + collectionBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder mergeCollection(flyteidl.core.Literals.LiteralCollection value) { + if (collectionBuilder_ == null) { + if (valueCase_ == 2 && + value_ != flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) { + value_ = flyteidl.core.Literals.LiteralCollection.newBuilder((flyteidl.core.Literals.LiteralCollection) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + collectionBuilder_.mergeFrom(value); + } + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder clearCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + collectionBuilder_.clear(); + } + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollection.Builder getCollectionBuilder() { + return getCollectionFieldBuilder().getBuilder(); + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { + if ((valueCase_ == 2) && (collectionBuilder_ != null)) { + return collectionBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> + getCollectionFieldBuilder() { + if (collectionBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder>( + (flyteidl.core.Literals.LiteralCollection) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged();; + return collectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> mapBuilder_; + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public boolean hasMap() { + return valueCase_ == 3; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMap getMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return mapBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder setMap(flyteidl.core.Literals.LiteralMap value) { + if (mapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + mapBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder setMap( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (mapBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + mapBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder mergeMap(flyteidl.core.Literals.LiteralMap value) { + if (mapBuilder_ == null) { + if (valueCase_ == 3 && + value_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + value_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + mapBuilder_.mergeFrom(value); + } + mapBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder clearMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + mapBuilder_.clear(); + } + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMap.Builder getMapBuilder() { + return getMapFieldBuilder().getBuilder(); + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { + if ((valueCase_ == 3) && (mapBuilder_ != null)) { + return mapBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getMapFieldBuilder() { + if (mapBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged();; + return mapBuilder_; + } + @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:flyteidl.core.Literal) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Literal) + private static final flyteidl.core.Literals.Literal DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Literal(); + } + + public static flyteidl.core.Literals.Literal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Literal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Literal(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 flyteidl.core.Literals.Literal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralCollectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + java.util.List + getLiteralsList(); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + flyteidl.core.Literals.Literal getLiterals(int index); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + int getLiteralsCount(); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + java.util.List + getLiteralsOrBuilderList(); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( + int index); + } + /** + *
+   * A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+   * 
+ * + * Protobuf type {@code flyteidl.core.LiteralCollection} + */ + public static final class LiteralCollection extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralCollection) + LiteralCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralCollection.newBuilder() to construct. + private LiteralCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralCollection() { + literals_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralCollection( + 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)) { + literals_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + literals_.add( + input.readMessage(flyteidl.core.Literals.Literal.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)) { + literals_ = java.util.Collections.unmodifiableList(literals_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); + } + + public static final int LITERALS_FIELD_NUMBER = 1; + private java.util.List literals_; + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List getLiteralsList() { + return literals_; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List + getLiteralsOrBuilderList() { + return literals_; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public int getLiteralsCount() { + return literals_.size(); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal getLiterals(int index) { + return literals_.get(index); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( + int index) { + return literals_.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 < literals_.size(); i++) { + output.writeMessage(1, literals_.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 < literals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, literals_.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 flyteidl.core.Literals.LiteralCollection)) { + return super.equals(obj); + } + flyteidl.core.Literals.LiteralCollection other = (flyteidl.core.Literals.LiteralCollection) obj; + + if (!getLiteralsList() + .equals(other.getLiteralsList())) 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 (getLiteralsCount() > 0) { + hash = (37 * hash) + LITERALS_FIELD_NUMBER; + hash = (53 * hash) + getLiteralsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.LiteralCollection parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralCollection 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 flyteidl.core.Literals.LiteralCollection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralCollection 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 flyteidl.core.Literals.LiteralCollection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralCollection 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(flyteidl.core.Literals.LiteralCollection 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 collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+     * 
+ * + * Protobuf type {@code flyteidl.core.LiteralCollection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralCollection) + flyteidl.core.Literals.LiteralCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); + } + + // Construct using flyteidl.core.Literals.LiteralCollection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLiteralsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (literalsBuilder_ == null) { + literals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + literalsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralCollection getDefaultInstanceForType() { + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralCollection build() { + flyteidl.core.Literals.LiteralCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralCollection buildPartial() { + flyteidl.core.Literals.LiteralCollection result = new flyteidl.core.Literals.LiteralCollection(this); + int from_bitField0_ = bitField0_; + if (literalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + literals_ = java.util.Collections.unmodifiableList(literals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.literals_ = literals_; + } else { + result.literals_ = literalsBuilder_.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 flyteidl.core.Literals.LiteralCollection) { + return mergeFrom((flyteidl.core.Literals.LiteralCollection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.LiteralCollection other) { + if (other == flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) return this; + if (literalsBuilder_ == null) { + if (!other.literals_.isEmpty()) { + if (literals_.isEmpty()) { + literals_ = other.literals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLiteralsIsMutable(); + literals_.addAll(other.literals_); + } + onChanged(); + } + } else { + if (!other.literals_.isEmpty()) { + if (literalsBuilder_.isEmpty()) { + literalsBuilder_.dispose(); + literalsBuilder_ = null; + literals_ = other.literals_; + bitField0_ = (bitField0_ & ~0x00000001); + literalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLiteralsFieldBuilder() : null; + } else { + literalsBuilder_.addAllMessages(other.literals_); + } + } + } + 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 { + flyteidl.core.Literals.LiteralCollection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.LiteralCollection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List literals_ = + java.util.Collections.emptyList(); + private void ensureLiteralsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + literals_ = new java.util.ArrayList(literals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> literalsBuilder_; + + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List getLiteralsList() { + if (literalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(literals_); + } else { + return literalsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public int getLiteralsCount() { + if (literalsBuilder_ == null) { + return literals_.size(); + } else { + return literalsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal getLiterals(int index) { + if (literalsBuilder_ == null) { + return literals_.get(index); + } else { + return literalsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder setLiterals( + int index, flyteidl.core.Literals.Literal value) { + if (literalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLiteralsIsMutable(); + literals_.set(index, value); + onChanged(); + } else { + literalsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder setLiterals( + int index, flyteidl.core.Literals.Literal.Builder builderForValue) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.set(index, builderForValue.build()); + onChanged(); + } else { + literalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals(flyteidl.core.Literals.Literal value) { + if (literalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLiteralsIsMutable(); + literals_.add(value); + onChanged(); + } else { + literalsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals( + int index, flyteidl.core.Literals.Literal value) { + if (literalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLiteralsIsMutable(); + literals_.add(index, value); + onChanged(); + } else { + literalsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.add(builderForValue.build()); + onChanged(); + } else { + literalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals( + int index, flyteidl.core.Literals.Literal.Builder builderForValue) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.add(index, builderForValue.build()); + onChanged(); + } else { + literalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addAllLiterals( + java.lang.Iterable values) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, literals_); + onChanged(); + } else { + literalsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder clearLiterals() { + if (literalsBuilder_ == null) { + literals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + literalsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder removeLiterals(int index) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.remove(index); + onChanged(); + } else { + literalsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal.Builder getLiteralsBuilder( + int index) { + return getLiteralsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( + int index) { + if (literalsBuilder_ == null) { + return literals_.get(index); } else { + return literalsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List + getLiteralsOrBuilderList() { + if (literalsBuilder_ != null) { + return literalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(literals_); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder() { + return getLiteralsFieldBuilder().addBuilder( + flyteidl.core.Literals.Literal.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder( + int index) { + return getLiteralsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Literal.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List + getLiteralsBuilderList() { + return getLiteralsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getLiteralsFieldBuilder() { + if (literalsBuilder_ == null) { + literalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + literals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + literals_ = null; + } + return literalsBuilder_; + } + @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:flyteidl.core.LiteralCollection) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralCollection) + private static final flyteidl.core.Literals.LiteralCollection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralCollection(); + } + + public static flyteidl.core.Literals.LiteralCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiteralCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralCollection(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 flyteidl.core.Literals.LiteralCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralMap) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + int getLiteralsCount(); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + boolean containsLiterals( + java.lang.String key); + /** + * Use {@link #getLiteralsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLiterals(); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + java.util.Map + getLiteralsMap(); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + flyteidl.core.Literals.Literal getLiteralsOrDefault( + java.lang.String key, + flyteidl.core.Literals.Literal defaultValue); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + flyteidl.core.Literals.Literal getLiteralsOrThrow( + java.lang.String key); + } + /** + *
+   * A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+   * 
+ * + * Protobuf type {@code flyteidl.core.LiteralMap} + */ + public static final class LiteralMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralMap) + LiteralMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralMap.newBuilder() to construct. + private LiteralMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralMap( + 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)) { + literals_ = com.google.protobuf.MapField.newMapField( + LiteralsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + literals__ = input.readMessage( + LiteralsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + literals_.getMutableMap().put( + literals__.getKey(), literals__.getValue()); + 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 flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLiterals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); + } + + public static final int LITERALS_FIELD_NUMBER = 1; + private static final class LiteralsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Literals.Literal> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Literals.Literal.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.Literal> literals_; + private com.google.protobuf.MapField + internalGetLiterals() { + if (literals_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LiteralsDefaultEntryHolder.defaultEntry); + } + return literals_; + } + + public int getLiteralsCount() { + return internalGetLiterals().getMap().size(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public boolean containsLiterals( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLiterals().getMap().containsKey(key); + } + /** + * Use {@link #getLiteralsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLiterals() { + return getLiteralsMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public java.util.Map getLiteralsMap() { + return internalGetLiterals().getMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrDefault( + java.lang.String key, + flyteidl.core.Literals.Literal defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLiterals(), + LiteralsDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetLiterals().getMap().entrySet()) { + com.google.protobuf.MapEntry + literals__ = LiteralsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, literals__); + } + 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 flyteidl.core.Literals.LiteralMap)) { + return super.equals(obj); + } + flyteidl.core.Literals.LiteralMap other = (flyteidl.core.Literals.LiteralMap) obj; + + if (!internalGetLiterals().equals( + other.internalGetLiterals())) 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 (!internalGetLiterals().getMap().isEmpty()) { + hash = (37 * hash) + LITERALS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLiterals().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.LiteralMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralMap 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 flyteidl.core.Literals.LiteralMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralMap 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 flyteidl.core.Literals.LiteralMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralMap 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(flyteidl.core.Literals.LiteralMap 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 map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+     * 
+ * + * Protobuf type {@code flyteidl.core.LiteralMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralMap) + flyteidl.core.Literals.LiteralMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLiterals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableLiterals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); + } + + // Construct using flyteidl.core.Literals.LiteralMap.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(); + internalGetMutableLiterals().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralMap getDefaultInstanceForType() { + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralMap build() { + flyteidl.core.Literals.LiteralMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralMap buildPartial() { + flyteidl.core.Literals.LiteralMap result = new flyteidl.core.Literals.LiteralMap(this); + int from_bitField0_ = bitField0_; + result.literals_ = internalGetLiterals(); + result.literals_.makeImmutable(); + 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 flyteidl.core.Literals.LiteralMap) { + return mergeFrom((flyteidl.core.Literals.LiteralMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.LiteralMap other) { + if (other == flyteidl.core.Literals.LiteralMap.getDefaultInstance()) return this; + internalGetMutableLiterals().mergeFrom( + other.internalGetLiterals()); + 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 { + flyteidl.core.Literals.LiteralMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.LiteralMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.Literal> literals_; + private com.google.protobuf.MapField + internalGetLiterals() { + if (literals_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LiteralsDefaultEntryHolder.defaultEntry); + } + return literals_; + } + private com.google.protobuf.MapField + internalGetMutableLiterals() { + onChanged();; + if (literals_ == null) { + literals_ = com.google.protobuf.MapField.newMapField( + LiteralsDefaultEntryHolder.defaultEntry); + } + if (!literals_.isMutable()) { + literals_ = literals_.copy(); + } + return literals_; + } + + public int getLiteralsCount() { + return internalGetLiterals().getMap().size(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public boolean containsLiterals( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLiterals().getMap().containsKey(key); + } + /** + * Use {@link #getLiteralsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLiterals() { + return getLiteralsMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public java.util.Map getLiteralsMap() { + return internalGetLiterals().getMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrDefault( + java.lang.String key, + flyteidl.core.Literals.Literal defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLiterals() { + internalGetMutableLiterals().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public Builder removeLiterals( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLiterals().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLiterals() { + return internalGetMutableLiterals().getMutableMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + public Builder putLiterals( + java.lang.String key, + flyteidl.core.Literals.Literal value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLiterals().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public Builder putAllLiterals( + java.util.Map values) { + internalGetMutableLiterals().getMutableMap() + .putAll(values); + 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:flyteidl.core.LiteralMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralMap) + private static final flyteidl.core.Literals.LiteralMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralMap(); + } + + public static flyteidl.core.Literals.LiteralMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiteralMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralMap(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 flyteidl.core.Literals.LiteralMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingDataCollectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + java.util.List + getBindingsList(); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + flyteidl.core.Literals.BindingData getBindings(int index); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + int getBindingsCount(); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + java.util.List + getBindingsOrBuilderList(); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( + int index); + } + /** + *
+   * A collection of BindingData items.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataCollection} + */ + public static final class BindingDataCollection extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataCollection) + BindingDataCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BindingDataCollection.newBuilder() to construct. + private BindingDataCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BindingDataCollection() { + bindings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BindingDataCollection( + 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)) { + bindings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + bindings_.add( + input.readMessage(flyteidl.core.Literals.BindingData.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)) { + bindings_ = java.util.Collections.unmodifiableList(bindings_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); + } + + public static final int BINDINGS_FIELD_NUMBER = 1; + private java.util.List bindings_; + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List getBindingsList() { + return bindings_; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List + getBindingsOrBuilderList() { + return bindings_; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public int getBindingsCount() { + return bindings_.size(); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData getBindings(int index) { + return bindings_.get(index); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( + int index) { + return bindings_.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 < bindings_.size(); i++) { + output.writeMessage(1, bindings_.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 < bindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, bindings_.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 flyteidl.core.Literals.BindingDataCollection)) { + return super.equals(obj); + } + flyteidl.core.Literals.BindingDataCollection other = (flyteidl.core.Literals.BindingDataCollection) obj; + + if (!getBindingsList() + .equals(other.getBindingsList())) 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 (getBindingsCount() > 0) { + hash = (37 * hash) + BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getBindingsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataCollection 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 flyteidl.core.Literals.BindingDataCollection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataCollection 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 flyteidl.core.Literals.BindingDataCollection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataCollection 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(flyteidl.core.Literals.BindingDataCollection 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 collection of BindingData items.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataCollection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataCollection) + flyteidl.core.Literals.BindingDataCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); + } + + // Construct using flyteidl.core.Literals.BindingDataCollection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBindingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + bindingsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataCollection getDefaultInstanceForType() { + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataCollection build() { + flyteidl.core.Literals.BindingDataCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataCollection buildPartial() { + flyteidl.core.Literals.BindingDataCollection result = new flyteidl.core.Literals.BindingDataCollection(this); + int from_bitField0_ = bitField0_; + if (bindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + bindings_ = java.util.Collections.unmodifiableList(bindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bindings_ = bindings_; + } else { + result.bindings_ = bindingsBuilder_.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 flyteidl.core.Literals.BindingDataCollection) { + return mergeFrom((flyteidl.core.Literals.BindingDataCollection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BindingDataCollection other) { + if (other == flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) return this; + if (bindingsBuilder_ == null) { + if (!other.bindings_.isEmpty()) { + if (bindings_.isEmpty()) { + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBindingsIsMutable(); + bindings_.addAll(other.bindings_); + } + onChanged(); + } + } else { + if (!other.bindings_.isEmpty()) { + if (bindingsBuilder_.isEmpty()) { + bindingsBuilder_.dispose(); + bindingsBuilder_ = null; + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + bindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBindingsFieldBuilder() : null; + } else { + bindingsBuilder_.addAllMessages(other.bindings_); + } + } + } + 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 { + flyteidl.core.Literals.BindingDataCollection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BindingDataCollection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List bindings_ = + java.util.Collections.emptyList(); + private void ensureBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bindings_ = new java.util.ArrayList(bindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingsBuilder_; + + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List getBindingsList() { + if (bindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(bindings_); + } else { + return bindingsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public int getBindingsCount() { + if (bindingsBuilder_ == null) { + return bindings_.size(); + } else { + return bindingsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData getBindings(int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); + } else { + return bindingsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder setBindings( + int index, flyteidl.core.Literals.BindingData value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.set(index, value); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder setBindings( + int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.set(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings(flyteidl.core.Literals.BindingData value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(value); + onChanged(); + } else { + bindingsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings( + int index, flyteidl.core.Literals.BindingData value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(index, value); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings( + flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings( + int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addAllBindings( + java.lang.Iterable values) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bindings_); + onChanged(); + } else { + bindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder clearBindings() { + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + bindingsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder removeBindings(int index) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.remove(index); + onChanged(); + } else { + bindingsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData.Builder getBindingsBuilder( + int index) { + return getBindingsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( + int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); } else { + return bindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List + getBindingsOrBuilderList() { + if (bindingsBuilder_ != null) { + return bindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bindings_); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder() { + return getBindingsFieldBuilder().addBuilder( + flyteidl.core.Literals.BindingData.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder( + int index) { + return getBindingsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.BindingData.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List + getBindingsBuilderList() { + return getBindingsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> + getBindingsFieldBuilder() { + if (bindingsBuilder_ == null) { + bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( + bindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + bindings_ = null; + } + return bindingsBuilder_; + } + @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:flyteidl.core.BindingDataCollection) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataCollection) + private static final flyteidl.core.Literals.BindingDataCollection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataCollection(); + } + + public static flyteidl.core.Literals.BindingDataCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingDataCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingDataCollection(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 flyteidl.core.Literals.BindingDataCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingDataMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataMap) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + int getBindingsCount(); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + boolean containsBindings( + java.lang.String key); + /** + * Use {@link #getBindingsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getBindings(); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + java.util.Map + getBindingsMap(); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + flyteidl.core.Literals.BindingData getBindingsOrDefault( + java.lang.String key, + flyteidl.core.Literals.BindingData defaultValue); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + flyteidl.core.Literals.BindingData getBindingsOrThrow( + java.lang.String key); + } + /** + *
+   * A map of BindingData items.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataMap} + */ + public static final class BindingDataMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataMap) + BindingDataMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use BindingDataMap.newBuilder() to construct. + private BindingDataMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BindingDataMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BindingDataMap( + 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)) { + bindings_ = com.google.protobuf.MapField.newMapField( + BindingsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + bindings__ = input.readMessage( + BindingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + bindings_.getMutableMap().put( + bindings__.getKey(), bindings__.getValue()); + 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 flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetBindings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); + } + + public static final int BINDINGS_FIELD_NUMBER = 1; + private static final class BindingsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Literals.BindingData> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Literals.BindingData.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.BindingData> bindings_; + private com.google.protobuf.MapField + internalGetBindings() { + if (bindings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + BindingsDefaultEntryHolder.defaultEntry); + } + return bindings_; + } + + public int getBindingsCount() { + return internalGetBindings().getMap().size(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public boolean containsBindings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetBindings().getMap().containsKey(key); + } + /** + * Use {@link #getBindingsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getBindings() { + return getBindingsMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public java.util.Map getBindingsMap() { + return internalGetBindings().getMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrDefault( + java.lang.String key, + flyteidl.core.Literals.BindingData defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetBindings(), + BindingsDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetBindings().getMap().entrySet()) { + com.google.protobuf.MapEntry + bindings__ = BindingsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, bindings__); + } + 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 flyteidl.core.Literals.BindingDataMap)) { + return super.equals(obj); + } + flyteidl.core.Literals.BindingDataMap other = (flyteidl.core.Literals.BindingDataMap) obj; + + if (!internalGetBindings().equals( + other.internalGetBindings())) 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 (!internalGetBindings().getMap().isEmpty()) { + hash = (37 * hash) + BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetBindings().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BindingDataMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataMap 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 flyteidl.core.Literals.BindingDataMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataMap 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 flyteidl.core.Literals.BindingDataMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataMap 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(flyteidl.core.Literals.BindingDataMap 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 map of BindingData items.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataMap) + flyteidl.core.Literals.BindingDataMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetBindings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableBindings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); + } + + // Construct using flyteidl.core.Literals.BindingDataMap.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(); + internalGetMutableBindings().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataMap getDefaultInstanceForType() { + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataMap build() { + flyteidl.core.Literals.BindingDataMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataMap buildPartial() { + flyteidl.core.Literals.BindingDataMap result = new flyteidl.core.Literals.BindingDataMap(this); + int from_bitField0_ = bitField0_; + result.bindings_ = internalGetBindings(); + result.bindings_.makeImmutable(); + 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 flyteidl.core.Literals.BindingDataMap) { + return mergeFrom((flyteidl.core.Literals.BindingDataMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BindingDataMap other) { + if (other == flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) return this; + internalGetMutableBindings().mergeFrom( + other.internalGetBindings()); + 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 { + flyteidl.core.Literals.BindingDataMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BindingDataMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.BindingData> bindings_; + private com.google.protobuf.MapField + internalGetBindings() { + if (bindings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + BindingsDefaultEntryHolder.defaultEntry); + } + return bindings_; + } + private com.google.protobuf.MapField + internalGetMutableBindings() { + onChanged();; + if (bindings_ == null) { + bindings_ = com.google.protobuf.MapField.newMapField( + BindingsDefaultEntryHolder.defaultEntry); + } + if (!bindings_.isMutable()) { + bindings_ = bindings_.copy(); + } + return bindings_; + } + + public int getBindingsCount() { + return internalGetBindings().getMap().size(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public boolean containsBindings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetBindings().getMap().containsKey(key); + } + /** + * Use {@link #getBindingsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getBindings() { + return getBindingsMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public java.util.Map getBindingsMap() { + return internalGetBindings().getMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrDefault( + java.lang.String key, + flyteidl.core.Literals.BindingData defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearBindings() { + internalGetMutableBindings().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public Builder removeBindings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableBindings().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableBindings() { + return internalGetMutableBindings().getMutableMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + public Builder putBindings( + java.lang.String key, + flyteidl.core.Literals.BindingData value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableBindings().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public Builder putAllBindings( + java.util.Map values) { + internalGetMutableBindings().getMutableMap() + .putAll(values); + 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:flyteidl.core.BindingDataMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataMap) + private static final flyteidl.core.Literals.BindingDataMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataMap(); + } + + public static flyteidl.core.Literals.BindingDataMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingDataMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingDataMap(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 flyteidl.core.Literals.BindingDataMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + boolean hasScalar(); + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.Scalar getScalar(); + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); + + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + boolean hasCollection(); + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + flyteidl.core.Literals.BindingDataCollection getCollection(); + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder(); + + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + boolean hasPromise(); + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + flyteidl.core.Types.OutputReference getPromise(); + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder(); + + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + boolean hasMap(); + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + flyteidl.core.Literals.BindingDataMap getMap(); + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder(); + + public flyteidl.core.Literals.BindingData.ValueCase getValueCase(); + } + /** + *
+   * Specifies either a simple value or a reference to another output.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BindingData} + */ + public static final class BindingData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BindingData) + BindingDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BindingData.newBuilder() to construct. + private BindingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BindingData() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BindingData( + 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: { + flyteidl.core.Literals.Scalar.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + flyteidl.core.Literals.BindingDataCollection.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.BindingDataCollection) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.BindingDataCollection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataCollection) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + flyteidl.core.Types.OutputReference.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((flyteidl.core.Types.OutputReference) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Types.OutputReference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.OutputReference) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + flyteidl.core.Literals.BindingDataMap.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((flyteidl.core.Literals.BindingDataMap) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.BindingDataMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataMap) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + SCALAR(1), + COLLECTION(2), + PROMISE(3), + MAP(4), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return SCALAR; + case 2: return COLLECTION; + case 3: return PROMISE; + case 4: return MAP; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int SCALAR_FIELD_NUMBER = 1; + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + + public static final int COLLECTION_FIELD_NUMBER = 2; + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollection getCollection() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + + public static final int PROMISE_FIELD_NUMBER = 3; + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public boolean hasPromise() { + return valueCase_ == 3; + } + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReference getPromise() { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + + public static final int MAP_FIELD_NUMBER = 4; + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public boolean hasMap() { + return valueCase_ == 4; + } + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMap getMap() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.BindingDataCollection) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Types.OutputReference) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Literals.BindingDataMap) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.BindingDataCollection) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Types.OutputReference) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Literals.BindingDataMap) 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 flyteidl.core.Literals.BindingData)) { + return super.equals(obj); + } + flyteidl.core.Literals.BindingData other = (flyteidl.core.Literals.BindingData) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (!getScalar() + .equals(other.getScalar())) return false; + break; + case 2: + if (!getCollection() + .equals(other.getCollection())) return false; + break; + case 3: + if (!getPromise() + .equals(other.getPromise())) return false; + break; + case 4: + if (!getMap() + .equals(other.getMap())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + SCALAR_FIELD_NUMBER; + hash = (53 * hash) + getScalar().hashCode(); + break; + case 2: + hash = (37 * hash) + COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getCollection().hashCode(); + break; + case 3: + hash = (37 * hash) + PROMISE_FIELD_NUMBER; + hash = (53 * hash) + getPromise().hashCode(); + break; + case 4: + hash = (37 * hash) + MAP_FIELD_NUMBER; + hash = (53 * hash) + getMap().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BindingData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingData 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 flyteidl.core.Literals.BindingData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingData 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 flyteidl.core.Literals.BindingData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingData 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(flyteidl.core.Literals.BindingData 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; + } + /** + *
+     * Specifies either a simple value or a reference to another output.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BindingData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingData) + flyteidl.core.Literals.BindingDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); + } + + // Construct using flyteidl.core.Literals.BindingData.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(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingData getDefaultInstanceForType() { + return flyteidl.core.Literals.BindingData.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.BindingData build() { + flyteidl.core.Literals.BindingData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingData buildPartial() { + flyteidl.core.Literals.BindingData result = new flyteidl.core.Literals.BindingData(this); + if (valueCase_ == 1) { + if (scalarBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = scalarBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (collectionBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = collectionBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (promiseBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = promiseBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (mapBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = mapBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + 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 flyteidl.core.Literals.BindingData) { + return mergeFrom((flyteidl.core.Literals.BindingData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BindingData other) { + if (other == flyteidl.core.Literals.BindingData.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case SCALAR: { + mergeScalar(other.getScalar()); + break; + } + case COLLECTION: { + mergeCollection(other.getCollection()); + break; + } + case PROMISE: { + mergePromise(other.getPromise()); + break; + } + case MAP: { + mergeMap(other.getMap()); + break; + } + case VALUE_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 { + flyteidl.core.Literals.BindingData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BindingData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return scalarBuilder_.getMessage(); + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar( + flyteidl.core.Literals.Scalar.Builder builderForValue) { + if (scalarBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + scalarBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (valueCase_ == 1 && + value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + scalarBuilder_.mergeFrom(value); + } + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder clearScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + scalarBuilder_.clear(); + } + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { + return getScalarFieldBuilder().getBuilder(); + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if ((valueCase_ == 1) && (scalarBuilder_ != null)) { + return scalarBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> + getScalarFieldBuilder() { + if (scalarBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( + (flyteidl.core.Literals.Scalar) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return scalarBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> collectionBuilder_; + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollection getCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return collectionBuilder_.getMessage(); + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder setCollection(flyteidl.core.Literals.BindingDataCollection value) { + if (collectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder setCollection( + flyteidl.core.Literals.BindingDataCollection.Builder builderForValue) { + if (collectionBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + collectionBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder mergeCollection(flyteidl.core.Literals.BindingDataCollection value) { + if (collectionBuilder_ == null) { + if (valueCase_ == 2 && + value_ != flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) { + value_ = flyteidl.core.Literals.BindingDataCollection.newBuilder((flyteidl.core.Literals.BindingDataCollection) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + collectionBuilder_.mergeFrom(value); + } + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder clearCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + collectionBuilder_.clear(); + } + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollection.Builder getCollectionBuilder() { + return getCollectionFieldBuilder().getBuilder(); + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { + if ((valueCase_ == 2) && (collectionBuilder_ != null)) { + return collectionBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> + getCollectionFieldBuilder() { + if (collectionBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder>( + (flyteidl.core.Literals.BindingDataCollection) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged();; + return collectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> promiseBuilder_; + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public boolean hasPromise() { + return valueCase_ == 3; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReference getPromise() { + if (promiseBuilder_ == null) { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return promiseBuilder_.getMessage(); + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder setPromise(flyteidl.core.Types.OutputReference value) { + if (promiseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + promiseBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder setPromise( + flyteidl.core.Types.OutputReference.Builder builderForValue) { + if (promiseBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + promiseBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder mergePromise(flyteidl.core.Types.OutputReference value) { + if (promiseBuilder_ == null) { + if (valueCase_ == 3 && + value_ != flyteidl.core.Types.OutputReference.getDefaultInstance()) { + value_ = flyteidl.core.Types.OutputReference.newBuilder((flyteidl.core.Types.OutputReference) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + promiseBuilder_.mergeFrom(value); + } + promiseBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder clearPromise() { + if (promiseBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + promiseBuilder_.clear(); + } + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReference.Builder getPromiseBuilder() { + return getPromiseFieldBuilder().getBuilder(); + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { + if ((valueCase_ == 3) && (promiseBuilder_ != null)) { + return promiseBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> + getPromiseFieldBuilder() { + if (promiseBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + promiseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder>( + (flyteidl.core.Types.OutputReference) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged();; + return promiseBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> mapBuilder_; + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public boolean hasMap() { + return valueCase_ == 4; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMap getMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return mapBuilder_.getMessage(); + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder setMap(flyteidl.core.Literals.BindingDataMap value) { + if (mapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + mapBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder setMap( + flyteidl.core.Literals.BindingDataMap.Builder builderForValue) { + if (mapBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + mapBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder mergeMap(flyteidl.core.Literals.BindingDataMap value) { + if (mapBuilder_ == null) { + if (valueCase_ == 4 && + value_ != flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) { + value_ = flyteidl.core.Literals.BindingDataMap.newBuilder((flyteidl.core.Literals.BindingDataMap) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + mapBuilder_.mergeFrom(value); + } + mapBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder clearMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + mapBuilder_.clear(); + } + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMap.Builder getMapBuilder() { + return getMapFieldBuilder().getBuilder(); + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { + if ((valueCase_ == 4) && (mapBuilder_ != null)) { + return mapBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> + getMapFieldBuilder() { + if (mapBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder>( + (flyteidl.core.Literals.BindingDataMap) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged();; + return mapBuilder_; + } + @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:flyteidl.core.BindingData) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingData) + private static final flyteidl.core.Literals.BindingData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingData(); + } + + public static flyteidl.core.Literals.BindingData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingData(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 flyteidl.core.Literals.BindingData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Binding) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + java.lang.String getVar(); + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + com.google.protobuf.ByteString + getVarBytes(); + + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + boolean hasBinding(); + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + flyteidl.core.Literals.BindingData getBinding(); + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder(); + } + /** + *
+   * An input/output binding of a variable to either static value or a node output.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Binding} + */ + public static final class Binding extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Binding) + BindingOrBuilder { + private static final long serialVersionUID = 0L; + // Use Binding.newBuilder() to construct. + private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Binding() { + var_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Binding( + 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(); + + var_ = s; + break; + } + case 18: { + flyteidl.core.Literals.BindingData.Builder subBuilder = null; + if (binding_ != null) { + subBuilder = binding_.toBuilder(); + } + binding_ = input.readMessage(flyteidl.core.Literals.BindingData.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binding_); + binding_ = 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 flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); + } + + public static final int VAR_FIELD_NUMBER = 1; + private volatile java.lang.Object var_; + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + 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(); + var_ = s; + return s; + } + } + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BINDING_FIELD_NUMBER = 2; + private flyteidl.core.Literals.BindingData binding_; + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public boolean hasBinding() { + return binding_ != null; + } + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingData getBinding() { + return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; + } + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { + return getBinding(); + } + + 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 (!getVarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); + } + if (binding_ != null) { + output.writeMessage(2, getBinding()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getVarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); + } + if (binding_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBinding()); + } + 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 flyteidl.core.Literals.Binding)) { + return super.equals(obj); + } + flyteidl.core.Literals.Binding other = (flyteidl.core.Literals.Binding) obj; + + if (!getVar() + .equals(other.getVar())) return false; + if (hasBinding() != other.hasBinding()) return false; + if (hasBinding()) { + if (!getBinding() + .equals(other.getBinding())) 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) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + if (hasBinding()) { + hash = (37 * hash) + BINDING_FIELD_NUMBER; + hash = (53 * hash) + getBinding().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Binding parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binding parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binding parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binding parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binding 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 flyteidl.core.Literals.Binding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binding 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 flyteidl.core.Literals.Binding parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binding 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(flyteidl.core.Literals.Binding 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 input/output binding of a variable to either static value or a node output.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Binding} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Binding) + flyteidl.core.Literals.BindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); + } + + // Construct using flyteidl.core.Literals.Binding.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(); + var_ = ""; + + if (bindingBuilder_ == null) { + binding_ = null; + } else { + binding_ = null; + bindingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Binding getDefaultInstanceForType() { + return flyteidl.core.Literals.Binding.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Binding build() { + flyteidl.core.Literals.Binding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Binding buildPartial() { + flyteidl.core.Literals.Binding result = new flyteidl.core.Literals.Binding(this); + result.var_ = var_; + if (bindingBuilder_ == null) { + result.binding_ = binding_; + } else { + result.binding_ = bindingBuilder_.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 flyteidl.core.Literals.Binding) { + return mergeFrom((flyteidl.core.Literals.Binding)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Binding other) { + if (other == flyteidl.core.Literals.Binding.getDefaultInstance()) return this; + if (!other.getVar().isEmpty()) { + var_ = other.var_; + onChanged(); + } + if (other.hasBinding()) { + mergeBinding(other.getBinding()); + } + 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 { + flyteidl.core.Literals.Binding parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Binding) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object var_ = ""; + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + var_ = value; + onChanged(); + return this; + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public Builder clearVar() { + + var_ = getDefaultInstance().getVar(); + onChanged(); + return this; + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + var_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Literals.BindingData binding_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingBuilder_; + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public boolean hasBinding() { + return bindingBuilder_ != null || binding_ != null; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingData getBinding() { + if (bindingBuilder_ == null) { + return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; + } else { + return bindingBuilder_.getMessage(); + } + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder setBinding(flyteidl.core.Literals.BindingData value) { + if (bindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binding_ = value; + onChanged(); + } else { + bindingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder setBinding( + flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingBuilder_ == null) { + binding_ = builderForValue.build(); + onChanged(); + } else { + bindingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder mergeBinding(flyteidl.core.Literals.BindingData value) { + if (bindingBuilder_ == null) { + if (binding_ != null) { + binding_ = + flyteidl.core.Literals.BindingData.newBuilder(binding_).mergeFrom(value).buildPartial(); + } else { + binding_ = value; + } + onChanged(); + } else { + bindingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder clearBinding() { + if (bindingBuilder_ == null) { + binding_ = null; + onChanged(); + } else { + binding_ = null; + bindingBuilder_ = null; + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingData.Builder getBindingBuilder() { + + onChanged(); + return getBindingFieldBuilder().getBuilder(); + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { + if (bindingBuilder_ != null) { + return bindingBuilder_.getMessageOrBuilder(); + } else { + return binding_ == null ? + flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; + } + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> + getBindingFieldBuilder() { + if (bindingBuilder_ == null) { + bindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( + getBinding(), + getParentForChildren(), + isClean()); + binding_ = null; + } + return bindingBuilder_; + } + @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:flyteidl.core.Binding) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Binding) + private static final flyteidl.core.Literals.Binding DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Binding(); + } + + public static flyteidl.core.Literals.Binding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Binding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Binding(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 flyteidl.core.Literals.Binding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface KeyValuePairOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.KeyValuePair) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + java.lang.String getKey(); + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + java.lang.String getValue(); + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + *
+   * A generic key value pair.
+   * 
+ * + * Protobuf type {@code flyteidl.core.KeyValuePair} + */ + public static final class KeyValuePair extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.KeyValuePair) + KeyValuePairOrBuilder { + private static final long serialVersionUID = 0L; + // Use KeyValuePair.newBuilder() to construct. + private KeyValuePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private KeyValuePair() { + key_ = ""; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KeyValuePair( + 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(); + + 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 flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + 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; + } + } + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + 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_; + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + 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; + } + } + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + 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 (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + 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 (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + 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 flyteidl.core.Literals.KeyValuePair)) { + return super.equals(obj); + } + flyteidl.core.Literals.KeyValuePair other = (flyteidl.core.Literals.KeyValuePair) 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 flyteidl.core.Literals.KeyValuePair parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.KeyValuePair 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 flyteidl.core.Literals.KeyValuePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.KeyValuePair 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 flyteidl.core.Literals.KeyValuePair parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.KeyValuePair 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(flyteidl.core.Literals.KeyValuePair 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 generic key value pair.
+     * 
+ * + * Protobuf type {@code flyteidl.core.KeyValuePair} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.KeyValuePair) + flyteidl.core.Literals.KeyValuePairOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); + } + + // Construct using flyteidl.core.Literals.KeyValuePair.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 flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.KeyValuePair getDefaultInstanceForType() { + return flyteidl.core.Literals.KeyValuePair.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.KeyValuePair build() { + flyteidl.core.Literals.KeyValuePair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.KeyValuePair buildPartial() { + flyteidl.core.Literals.KeyValuePair result = new flyteidl.core.Literals.KeyValuePair(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 flyteidl.core.Literals.KeyValuePair) { + return mergeFrom((flyteidl.core.Literals.KeyValuePair)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.KeyValuePair other) { + if (other == flyteidl.core.Literals.KeyValuePair.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 { + flyteidl.core.Literals.KeyValuePair parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.KeyValuePair) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + 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; + } + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + 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; + } + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + 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_ = ""; + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + 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; + } + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + 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; + } + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + 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:flyteidl.core.KeyValuePair) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.KeyValuePair) + private static final flyteidl.core.Literals.KeyValuePair DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.KeyValuePair(); + } + + public static flyteidl.core.Literals.KeyValuePair getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValuePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValuePair(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 flyteidl.core.Literals.KeyValuePair getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RetryStrategyOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.RetryStrategy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+     * The number of retries must be less than or equals to 10.
+     * 
+ * + * uint32 retries = 5; + */ + int getRetries(); + } + /** + *
+   * Retry strategy associated with an executable unit.
+   * 
+ * + * Protobuf type {@code flyteidl.core.RetryStrategy} + */ + public static final class RetryStrategy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.RetryStrategy) + RetryStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetryStrategy.newBuilder() to construct. + private RetryStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RetryStrategy() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RetryStrategy( + 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 40: { + + retries_ = input.readUInt32(); + 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 flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); + } + + public static final int RETRIES_FIELD_NUMBER = 5; + private int retries_; + /** + *
+     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+     * The number of retries must be less than or equals to 10.
+     * 
+ * + * uint32 retries = 5; + */ + public int getRetries() { + return retries_; + } + + 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 (retries_ != 0) { + output.writeUInt32(5, retries_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retries_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, retries_); + } + 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 flyteidl.core.Literals.RetryStrategy)) { + return super.equals(obj); + } + flyteidl.core.Literals.RetryStrategy other = (flyteidl.core.Literals.RetryStrategy) obj; + + if (getRetries() + != other.getRetries()) 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) + RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getRetries(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.RetryStrategy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.RetryStrategy 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 flyteidl.core.Literals.RetryStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.RetryStrategy 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 flyteidl.core.Literals.RetryStrategy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.RetryStrategy 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(flyteidl.core.Literals.RetryStrategy 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; + } + /** + *
+     * Retry strategy associated with an executable unit.
+     * 
+ * + * Protobuf type {@code flyteidl.core.RetryStrategy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.RetryStrategy) + flyteidl.core.Literals.RetryStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); + } + + // Construct using flyteidl.core.Literals.RetryStrategy.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(); + retries_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.RetryStrategy getDefaultInstanceForType() { + return flyteidl.core.Literals.RetryStrategy.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.RetryStrategy build() { + flyteidl.core.Literals.RetryStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.RetryStrategy buildPartial() { + flyteidl.core.Literals.RetryStrategy result = new flyteidl.core.Literals.RetryStrategy(this); + result.retries_ = retries_; + 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 flyteidl.core.Literals.RetryStrategy) { + return mergeFrom((flyteidl.core.Literals.RetryStrategy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.RetryStrategy other) { + if (other == flyteidl.core.Literals.RetryStrategy.getDefaultInstance()) return this; + if (other.getRetries() != 0) { + setRetries(other.getRetries()); + } + 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 { + flyteidl.core.Literals.RetryStrategy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.RetryStrategy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int retries_ ; + /** + *
+       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+       * The number of retries must be less than or equals to 10.
+       * 
+ * + * uint32 retries = 5; + */ + public int getRetries() { + return retries_; + } + /** + *
+       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+       * The number of retries must be less than or equals to 10.
+       * 
+ * + * uint32 retries = 5; + */ + public Builder setRetries(int value) { + + retries_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+       * The number of retries must be less than or equals to 10.
+       * 
+ * + * uint32 retries = 5; + */ + public Builder clearRetries() { + + retries_ = 0; + 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:flyteidl.core.RetryStrategy) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.RetryStrategy) + private static final flyteidl.core.Literals.RetryStrategy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.RetryStrategy(); + } + + public static flyteidl.core.Literals.RetryStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetryStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RetryStrategy(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 flyteidl.core.Literals.RetryStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Primitive_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Primitive_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Void_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Void_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Blob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Blob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BlobMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Binary_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Binary_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Schema_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Schema_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Scalar_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Scalar_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Literal_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Literal_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralCollection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingDataCollection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingDataMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Binding_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Binding_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_KeyValuePair_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_RetryStrategy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_RetryStrategy_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\034flyteidl/core/literals.proto\022\rflyteidl" + + ".core\032\037google/protobuf/timestamp.proto\032\036" + + "google/protobuf/duration.proto\032\034google/p" + + "rotobuf/struct.proto\032\031flyteidl/core/type" + + "s.proto\"\310\001\n\tPrimitive\022\021\n\007integer\030\001 \001(\003H\000" + + "\022\025\n\013float_value\030\002 \001(\001H\000\022\026\n\014string_value\030" + + "\003 \001(\tH\000\022\021\n\007boolean\030\004 \001(\010H\000\022.\n\010datetime\030\005" + + " \001(\0132\032.google.protobuf.TimestampH\000\022-\n\010du" + + "ration\030\006 \001(\0132\031.google.protobuf.DurationH" + + "\000B\007\n\005value\"\006\n\004Void\"B\n\004Blob\022-\n\010metadata\030\001" + + " \001(\0132\033.flyteidl.core.BlobMetadata\022\013\n\003uri" + + "\030\003 \001(\t\"5\n\014BlobMetadata\022%\n\004type\030\001 \001(\0132\027.f" + + "lyteidl.core.BlobType\"$\n\006Binary\022\r\n\005value" + + "\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\">\n\006Schema\022\013\n\003uri\030\001 \001" + + "(\t\022\'\n\004type\030\003 \001(\0132\031.flyteidl.core.SchemaT" + + "ype\"\264\002\n\006Scalar\022-\n\tprimitive\030\001 \001(\0132\030.flyt" + + "eidl.core.PrimitiveH\000\022#\n\004blob\030\002 \001(\0132\023.fl" + + "yteidl.core.BlobH\000\022\'\n\006binary\030\003 \001(\0132\025.fly" + + "teidl.core.BinaryH\000\022\'\n\006schema\030\004 \001(\0132\025.fl" + + "yteidl.core.SchemaH\000\022(\n\tnone_type\030\005 \001(\0132" + + "\023.flyteidl.core.VoidH\000\022%\n\005error\030\006 \001(\0132\024." + + "flyteidl.core.ErrorH\000\022*\n\007generic\030\007 \001(\0132\027" + + ".google.protobuf.StructH\000B\007\n\005value\"\235\001\n\007L" + + "iteral\022\'\n\006scalar\030\001 \001(\0132\025.flyteidl.core.S" + + "calarH\000\0226\n\ncollection\030\002 \001(\0132 .flyteidl.c" + + "ore.LiteralCollectionH\000\022(\n\003map\030\003 \001(\0132\031.f" + + "lyteidl.core.LiteralMapH\000B\007\n\005value\"=\n\021Li" + + "teralCollection\022(\n\010literals\030\001 \003(\0132\026.flyt" + + "eidl.core.Literal\"\220\001\n\nLiteralMap\0229\n\010lite" + + "rals\030\001 \003(\0132\'.flyteidl.core.LiteralMap.Li" + + "teralsEntry\032G\n\rLiteralsEntry\022\013\n\003key\030\001 \001(" + + "\t\022%\n\005value\030\002 \001(\0132\026.flyteidl.core.Literal" + + ":\0028\001\"E\n\025BindingDataCollection\022,\n\010binding" + + "s\030\001 \003(\0132\032.flyteidl.core.BindingData\"\234\001\n\016" + + "BindingDataMap\022=\n\010bindings\030\001 \003(\0132+.flyte" + + "idl.core.BindingDataMap.BindingsEntry\032K\n" + + "\rBindingsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001" + + "(\0132\032.flyteidl.core.BindingData:\0028\001\"\334\001\n\013B" + + "indingData\022\'\n\006scalar\030\001 \001(\0132\025.flyteidl.co" + + "re.ScalarH\000\022:\n\ncollection\030\002 \001(\0132$.flytei" + + "dl.core.BindingDataCollectionH\000\0221\n\007promi" + + "se\030\003 \001(\0132\036.flyteidl.core.OutputReference" + + "H\000\022,\n\003map\030\004 \001(\0132\035.flyteidl.core.BindingD" + + "ataMapH\000B\007\n\005value\"C\n\007Binding\022\013\n\003var\030\001 \001(" + + "\t\022+\n\007binding\030\002 \001(\0132\032.flyteidl.core.Bindi" + + "ngData\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t\" \n\rRetryStrategy\022\017\n\007retries\030\005" + + " \001(\rB2Z0github.com/lyft/flyteidl/gen/pb-" + + "go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + flyteidl.core.Types.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_Primitive_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Primitive_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Primitive_descriptor, + new java.lang.String[] { "Integer", "FloatValue", "StringValue", "Boolean", "Datetime", "Duration", "Value", }); + internal_static_flyteidl_core_Void_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_Void_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Void_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_Blob_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_Blob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Blob_descriptor, + new java.lang.String[] { "Metadata", "Uri", }); + internal_static_flyteidl_core_BlobMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BlobMetadata_descriptor, + new java.lang.String[] { "Type", }); + internal_static_flyteidl_core_Binary_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_Binary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Binary_descriptor, + new java.lang.String[] { "Value", "Tag", }); + internal_static_flyteidl_core_Schema_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_Schema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Schema_descriptor, + new java.lang.String[] { "Uri", "Type", }); + internal_static_flyteidl_core_Scalar_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_Scalar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Scalar_descriptor, + new java.lang.String[] { "Primitive", "Blob", "Binary", "Schema", "NoneType", "Error", "Generic", "Value", }); + internal_static_flyteidl_core_Literal_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_core_Literal_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Literal_descriptor, + new java.lang.String[] { "Scalar", "Collection", "Map", "Value", }); + internal_static_flyteidl_core_LiteralCollection_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralCollection_descriptor, + new java.lang.String[] { "Literals", }); + internal_static_flyteidl_core_LiteralMap_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_core_LiteralMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralMap_descriptor, + new java.lang.String[] { "Literals", }); + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor = + internal_static_flyteidl_core_LiteralMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_BindingDataCollection_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingDataCollection_descriptor, + new java.lang.String[] { "Bindings", }); + internal_static_flyteidl_core_BindingDataMap_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingDataMap_descriptor, + new java.lang.String[] { "Bindings", }); + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor = + internal_static_flyteidl_core_BindingDataMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_BindingData_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_flyteidl_core_BindingData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingData_descriptor, + new java.lang.String[] { "Scalar", "Collection", "Promise", "Map", "Value", }); + internal_static_flyteidl_core_Binding_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_flyteidl_core_Binding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Binding_descriptor, + new java.lang.String[] { "Var", "Binding", }); + internal_static_flyteidl_core_KeyValuePair_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_KeyValuePair_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_RetryStrategy_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_RetryStrategy_descriptor, + new java.lang.String[] { "Retries", }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + flyteidl.core.Types.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Tasks.java b/gen/pb-java/flyteidl/core/Tasks.java new file mode 100644 index 000000000..5fc56386e --- /dev/null +++ b/gen/pb-java/flyteidl/core/Tasks.java @@ -0,0 +1,13257 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/tasks.proto + +package flyteidl.core; + +public final class Tasks { + private Tasks() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ResourcesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Resources) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + java.util.List + getRequestsList(); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + int getRequestsCount(); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( + int index); + + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + java.util.List + getLimitsList(); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + int getLimitsCount(); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + java.util.List + getLimitsOrBuilderList(); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( + int index); + } + /** + *
+   * A customizable interface to convey resources requested for a container. This can be interpretted differently for different
+   * container engines.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Resources} + */ + public static final class Resources extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Resources) + ResourcesOrBuilder { + private static final long serialVersionUID = 0L; + // Use Resources.newBuilder() to construct. + private Resources(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Resources() { + requests_ = java.util.Collections.emptyList(); + limits_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Resources( + 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)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + limits_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + limits_.add( + input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.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)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + limits_ = java.util.Collections.unmodifiableList(limits_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); + } + + /** + *
+     * Known resource names.
+     * 
+ * + * Protobuf enum {@code flyteidl.core.Resources.ResourceName} + */ + public enum ResourceName + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * CPU = 1; + */ + CPU(1), + /** + * GPU = 2; + */ + GPU(2), + /** + * MEMORY = 3; + */ + MEMORY(3), + /** + * STORAGE = 4; + */ + STORAGE(4), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * CPU = 1; + */ + public static final int CPU_VALUE = 1; + /** + * GPU = 2; + */ + public static final int GPU_VALUE = 2; + /** + * MEMORY = 3; + */ + public static final int MEMORY_VALUE = 3; + /** + * STORAGE = 4; + */ + public static final int STORAGE_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResourceName valueOf(int value) { + return forNumber(value); + } + + public static ResourceName forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return CPU; + case 2: return GPU; + case 3: return MEMORY; + case 4: return STORAGE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResourceName> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResourceName findValueByNumber(int number) { + return ResourceName.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Tasks.Resources.getDescriptor().getEnumTypes().get(0); + } + + private static final ResourceName[] VALUES = values(); + + public static ResourceName 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 ResourceName(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.Resources.ResourceName) + } + + public interface ResourceEntryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Resources.ResourceEntry) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + int getNameValue(); + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + flyteidl.core.Tasks.Resources.ResourceName getName(); + + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + java.lang.String getValue(); + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + *
+     * Encapsulates a resource name and value.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} + */ + public static final class ResourceEntry extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Resources.ResourceEntry) + ResourceEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceEntry.newBuilder() to construct. + private ResourceEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceEntry() { + name_ = 0; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceEntry( + 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 8: { + int rawValue = input.readEnum(); + + name_ = rawValue; + 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 flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private int name_; + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public int getNameValue() { + return name_; + } + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceName getName() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); + return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + 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 must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + 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 (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { + output.writeEnum(1, name_); + } + if (!getValueBytes().isEmpty()) { + 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 (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, name_); + } + if (!getValueBytes().isEmpty()) { + 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 flyteidl.core.Tasks.Resources.ResourceEntry)) { + return super.equals(obj); + } + flyteidl.core.Tasks.Resources.ResourceEntry other = (flyteidl.core.Tasks.Resources.ResourceEntry) obj; + + if (name_ != other.name_) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + name_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry 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 flyteidl.core.Tasks.Resources.ResourceEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry 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 flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry 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(flyteidl.core.Tasks.Resources.ResourceEntry 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; + } + /** + *
+       * Encapsulates a resource name and value.
+       * 
+ * + * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources.ResourceEntry) + flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); + } + + // Construct using flyteidl.core.Tasks.Resources.ResourceEntry.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_ = 0; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { + return flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources.ResourceEntry build() { + flyteidl.core.Tasks.Resources.ResourceEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources.ResourceEntry buildPartial() { + flyteidl.core.Tasks.Resources.ResourceEntry result = new flyteidl.core.Tasks.Resources.ResourceEntry(this); + result.name_ = name_; + 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 flyteidl.core.Tasks.Resources.ResourceEntry) { + return mergeFrom((flyteidl.core.Tasks.Resources.ResourceEntry)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.Resources.ResourceEntry other) { + if (other == flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()) return this; + if (other.name_ != 0) { + setNameValue(other.getNameValue()); + } + 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 { + flyteidl.core.Tasks.Resources.ResourceEntry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.Resources.ResourceEntry) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int name_ = 0; + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public int getNameValue() { + return name_; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public Builder setNameValue(int value) { + name_ = value; + onChanged(); + return this; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceName getName() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); + return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public Builder setName(flyteidl.core.Tasks.Resources.ResourceName value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public Builder clearName() { + + name_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + 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 must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + 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 must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + 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:flyteidl.core.Resources.ResourceEntry) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Resources.ResourceEntry) + private static final flyteidl.core.Tasks.Resources.ResourceEntry DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources.ResourceEntry(); + } + + public static flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceEntry(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 flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int REQUESTS_FIELD_NUMBER = 1; + private java.util.List requests_; + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List getRequestsList() { + return requests_; + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public int getRequestsCount() { + return requests_.size(); + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { + return requests_.get(index); + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( + int index) { + return requests_.get(index); + } + + public static final int LIMITS_FIELD_NUMBER = 2; + private java.util.List limits_; + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List getLimitsList() { + return limits_; + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List + getLimitsOrBuilderList() { + return limits_; + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public int getLimitsCount() { + return limits_.size(); + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { + return limits_.get(index); + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( + int index) { + return limits_.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 < requests_.size(); i++) { + output.writeMessage(1, requests_.get(i)); + } + for (int i = 0; i < limits_.size(); i++) { + output.writeMessage(2, limits_.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 < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); + } + for (int i = 0; i < limits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, limits_.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 flyteidl.core.Tasks.Resources)) { + return super.equals(obj); + } + flyteidl.core.Tasks.Resources other = (flyteidl.core.Tasks.Resources) obj; + + if (!getRequestsList() + .equals(other.getRequestsList())) return false; + if (!getLimitsList() + .equals(other.getLimitsList())) 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 (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + if (getLimitsCount() > 0) { + hash = (37 * hash) + LIMITS_FIELD_NUMBER; + hash = (53 * hash) + getLimitsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.Resources parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources 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 flyteidl.core.Tasks.Resources parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources 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 flyteidl.core.Tasks.Resources parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources 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(flyteidl.core.Tasks.Resources 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 customizable interface to convey resources requested for a container. This can be interpretted differently for different
+     * container engines.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Resources} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources) + flyteidl.core.Tasks.ResourcesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); + } + + // Construct using flyteidl.core.Tasks.Resources.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + getLimitsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + requestsBuilder_.clear(); + } + if (limitsBuilder_ == null) { + limits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + limitsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources getDefaultInstanceForType() { + return flyteidl.core.Tasks.Resources.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources build() { + flyteidl.core.Tasks.Resources result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources buildPartial() { + flyteidl.core.Tasks.Resources result = new flyteidl.core.Tasks.Resources(this); + int from_bitField0_ = bitField0_; + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + if (limitsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + limits_ = java.util.Collections.unmodifiableList(limits_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.limits_ = limits_; + } else { + result.limits_ = limitsBuilder_.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 flyteidl.core.Tasks.Resources) { + return mergeFrom((flyteidl.core.Tasks.Resources)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.Resources other) { + if (other == flyteidl.core.Tasks.Resources.getDefaultInstance()) return this; + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + if (limitsBuilder_ == null) { + if (!other.limits_.isEmpty()) { + if (limits_.isEmpty()) { + limits_ = other.limits_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLimitsIsMutable(); + limits_.addAll(other.limits_); + } + onChanged(); + } + } else { + if (!other.limits_.isEmpty()) { + if (limitsBuilder_.isEmpty()) { + limitsBuilder_.dispose(); + limitsBuilder_ = null; + limits_ = other.limits_; + bitField0_ = (bitField0_ & ~0x00000002); + limitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLimitsFieldBuilder() : null; + } else { + limitsBuilder_.addAllMessages(other.limits_); + } + } + } + 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 { + flyteidl.core.Tasks.Resources parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.Resources) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List requests_ = + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(requests_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> requestsBuilder_; + + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder setRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder setRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests(flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests( + flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder() { + return getRequestsFieldBuilder().addBuilder( + flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + private java.util.List limits_ = + java.util.Collections.emptyList(); + private void ensureLimitsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + limits_ = new java.util.ArrayList(limits_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> limitsBuilder_; + + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List getLimitsList() { + if (limitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(limits_); + } else { + return limitsBuilder_.getMessageList(); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public int getLimitsCount() { + if (limitsBuilder_ == null) { + return limits_.size(); + } else { + return limitsBuilder_.getCount(); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { + if (limitsBuilder_ == null) { + return limits_.get(index); + } else { + return limitsBuilder_.getMessage(index); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder setLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLimitsIsMutable(); + limits_.set(index, value); + onChanged(); + } else { + limitsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder setLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.set(index, builderForValue.build()); + onChanged(); + } else { + limitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits(flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLimitsIsMutable(); + limits_.add(value); + onChanged(); + } else { + limitsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLimitsIsMutable(); + limits_.add(index, value); + onChanged(); + } else { + limitsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits( + flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.add(builderForValue.build()); + onChanged(); + } else { + limitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.add(index, builderForValue.build()); + onChanged(); + } else { + limitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addAllLimits( + java.lang.Iterable values) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, limits_); + onChanged(); + } else { + limitsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder clearLimits() { + if (limitsBuilder_ == null) { + limits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + limitsBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder removeLimits(int index) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.remove(index); + onChanged(); + } else { + limitsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getLimitsBuilder( + int index) { + return getLimitsFieldBuilder().getBuilder(index); + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( + int index) { + if (limitsBuilder_ == null) { + return limits_.get(index); } else { + return limitsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List + getLimitsOrBuilderList() { + if (limitsBuilder_ != null) { + return limitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(limits_); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder() { + return getLimitsFieldBuilder().addBuilder( + flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder( + int index) { + return getLimitsFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List + getLimitsBuilderList() { + return getLimitsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> + getLimitsFieldBuilder() { + if (limitsBuilder_ == null) { + limitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( + limits_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + limits_ = null; + } + return limitsBuilder_; + } + @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:flyteidl.core.Resources) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Resources) + private static final flyteidl.core.Tasks.Resources DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources(); + } + + public static flyteidl.core.Tasks.Resources getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resources parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resources(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 flyteidl.core.Tasks.Resources getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RuntimeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.RuntimeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + int getTypeValue(); + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType(); + + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + java.lang.String getVersion(); + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + java.lang.String getFlavor(); + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + com.google.protobuf.ByteString + getFlavorBytes(); + } + /** + *
+   * Runtime information. This is losely defined to allow for extensibility.
+   * 
+ * + * Protobuf type {@code flyteidl.core.RuntimeMetadata} + */ + public static final class RuntimeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.RuntimeMetadata) + RuntimeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RuntimeMetadata.newBuilder() to construct. + private RuntimeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RuntimeMetadata() { + type_ = 0; + version_ = ""; + flavor_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RuntimeMetadata( + 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 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + flavor_ = 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 flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.RuntimeMetadata.RuntimeType} + */ + public enum RuntimeType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * OTHER = 0; + */ + OTHER(0), + /** + * FLYTE_SDK = 1; + */ + FLYTE_SDK(1), + UNRECOGNIZED(-1), + ; + + /** + * OTHER = 0; + */ + public static final int OTHER_VALUE = 0; + /** + * FLYTE_SDK = 1; + */ + public static final int FLYTE_SDK_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RuntimeType valueOf(int value) { + return forNumber(value); + } + + public static RuntimeType forNumber(int value) { + switch (value) { + case 0: return OTHER; + case 1: return FLYTE_SDK; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RuntimeType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RuntimeType findValueByNumber(int number) { + return RuntimeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Tasks.RuntimeMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final RuntimeType[] VALUES = values(); + + public static RuntimeType 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 RuntimeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.RuntimeMetadata.RuntimeType) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); + return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; + } + + public static final int VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object version_; + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLAVOR_FIELD_NUMBER = 3; + private volatile java.lang.Object flavor_; + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + public java.lang.String getFlavor() { + java.lang.Object ref = flavor_; + 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(); + flavor_ = s; + return s; + } + } + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + public com.google.protobuf.ByteString + getFlavorBytes() { + java.lang.Object ref = flavor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + flavor_ = 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 (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { + output.writeEnum(1, type_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (!getFlavorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, flavor_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (!getFlavorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, flavor_); + } + 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 flyteidl.core.Tasks.RuntimeMetadata)) { + return super.equals(obj); + } + flyteidl.core.Tasks.RuntimeMetadata other = (flyteidl.core.Tasks.RuntimeMetadata) obj; + + if (type_ != other.type_) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getFlavor() + .equals(other.getFlavor())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + FLAVOR_FIELD_NUMBER; + hash = (53 * hash) + getFlavor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.RuntimeMetadata 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 flyteidl.core.Tasks.RuntimeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.RuntimeMetadata 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 flyteidl.core.Tasks.RuntimeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.RuntimeMetadata 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(flyteidl.core.Tasks.RuntimeMetadata 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; + } + /** + *
+     * Runtime information. This is losely defined to allow for extensibility.
+     * 
+ * + * Protobuf type {@code flyteidl.core.RuntimeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.RuntimeMetadata) + flyteidl.core.Tasks.RuntimeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); + } + + // Construct using flyteidl.core.Tasks.RuntimeMetadata.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(); + type_ = 0; + + version_ = ""; + + flavor_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { + return flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.RuntimeMetadata build() { + flyteidl.core.Tasks.RuntimeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.RuntimeMetadata buildPartial() { + flyteidl.core.Tasks.RuntimeMetadata result = new flyteidl.core.Tasks.RuntimeMetadata(this); + result.type_ = type_; + result.version_ = version_; + result.flavor_ = flavor_; + 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 flyteidl.core.Tasks.RuntimeMetadata) { + return mergeFrom((flyteidl.core.Tasks.RuntimeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.RuntimeMetadata other) { + if (other == flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getFlavor().isEmpty()) { + flavor_ = other.flavor_; + 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 { + flyteidl.core.Tasks.RuntimeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.RuntimeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); + return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public Builder setType(flyteidl.core.Tasks.RuntimeMetadata.RuntimeType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object flavor_ = ""; + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public java.lang.String getFlavor() { + java.lang.Object ref = flavor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flavor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public com.google.protobuf.ByteString + getFlavorBytes() { + java.lang.Object ref = flavor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + flavor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public Builder setFlavor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + flavor_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public Builder clearFlavor() { + + flavor_ = getDefaultInstance().getFlavor(); + onChanged(); + return this; + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public Builder setFlavorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + flavor_ = 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:flyteidl.core.RuntimeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.RuntimeMetadata) + private static final flyteidl.core.Tasks.RuntimeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.RuntimeMetadata(); + } + + public static flyteidl.core.Tasks.RuntimeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RuntimeMetadata(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 flyteidl.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+     * 
+ * + * bool discoverable = 1; + */ + boolean getDiscoverable(); + + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + boolean hasRuntime(); + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + flyteidl.core.Tasks.RuntimeMetadata getRuntime(); + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder(); + + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + boolean hasTimeout(); + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.Duration getTimeout(); + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + boolean hasRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategy getRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); + + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + java.lang.String getDiscoveryVersion(); + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + com.google.protobuf.ByteString + getDiscoveryVersionBytes(); + + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + java.lang.String getDeprecatedErrorMessage(); + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + com.google.protobuf.ByteString + getDeprecatedErrorMessageBytes(); + + /** + * bool interruptible = 8; + */ + boolean getInterruptible(); + + public flyteidl.core.Tasks.TaskMetadata.InterruptibleValueCase getInterruptibleValueCase(); + } + /** + *
+   * Task Metadata
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskMetadata} + */ + public static final class TaskMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskMetadata) + TaskMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskMetadata.newBuilder() to construct. + private TaskMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskMetadata() { + discoveryVersion_ = ""; + deprecatedErrorMessage_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskMetadata( + 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 8: { + + discoverable_ = input.readBool(); + break; + } + case 18: { + flyteidl.core.Tasks.RuntimeMetadata.Builder subBuilder = null; + if (runtime_ != null) { + subBuilder = runtime_.toBuilder(); + } + runtime_ = input.readMessage(flyteidl.core.Tasks.RuntimeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runtime_); + runtime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeout_ != null) { + subBuilder = timeout_.toBuilder(); + } + timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeout_); + timeout_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; + if (retries_ != null) { + subBuilder = retries_.toBuilder(); + } + retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retries_); + retries_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + discoveryVersion_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + deprecatedErrorMessage_ = s; + break; + } + case 64: { + interruptibleValueCase_ = 8; + interruptibleValue_ = input.readBool(); + 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 flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); + } + + private int interruptibleValueCase_ = 0; + private java.lang.Object interruptibleValue_; + public enum InterruptibleValueCase + implements com.google.protobuf.Internal.EnumLite { + INTERRUPTIBLE(8), + INTERRUPTIBLEVALUE_NOT_SET(0); + private final int value; + private InterruptibleValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InterruptibleValueCase valueOf(int value) { + return forNumber(value); + } + + public static InterruptibleValueCase forNumber(int value) { + switch (value) { + case 8: return INTERRUPTIBLE; + case 0: return INTERRUPTIBLEVALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public InterruptibleValueCase + getInterruptibleValueCase() { + return InterruptibleValueCase.forNumber( + interruptibleValueCase_); + } + + public static final int DISCOVERABLE_FIELD_NUMBER = 1; + private boolean discoverable_; + /** + *
+     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+     * 
+ * + * bool discoverable = 1; + */ + public boolean getDiscoverable() { + return discoverable_; + } + + public static final int RUNTIME_FIELD_NUMBER = 2; + private flyteidl.core.Tasks.RuntimeMetadata runtime_; + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public boolean hasRuntime() { + return runtime_ != null; + } + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { + return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; + } + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { + return getRuntime(); + } + + public static final int TIMEOUT_FIELD_NUMBER = 4; + private com.google.protobuf.Duration timeout_; + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeout_ != null; + } + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + return getTimeout(); + } + + public static final int RETRIES_FIELD_NUMBER = 5; + private flyteidl.core.Literals.RetryStrategy retries_; + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retries_ != null; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + return getRetries(); + } + + public static final int DISCOVERY_VERSION_FIELD_NUMBER = 6; + private volatile java.lang.Object discoveryVersion_; + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + public java.lang.String getDiscoveryVersion() { + java.lang.Object ref = discoveryVersion_; + 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(); + discoveryVersion_ = s; + return s; + } + } + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + public com.google.protobuf.ByteString + getDiscoveryVersionBytes() { + java.lang.Object ref = discoveryVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + discoveryVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER = 7; + private volatile java.lang.Object deprecatedErrorMessage_; + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + public java.lang.String getDeprecatedErrorMessage() { + java.lang.Object ref = deprecatedErrorMessage_; + 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(); + deprecatedErrorMessage_ = s; + return s; + } + } + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + public com.google.protobuf.ByteString + getDeprecatedErrorMessageBytes() { + java.lang.Object ref = deprecatedErrorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deprecatedErrorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 8; + /** + * bool interruptible = 8; + */ + public boolean getInterruptible() { + if (interruptibleValueCase_ == 8) { + return (java.lang.Boolean) interruptibleValue_; + } + return false; + } + + 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 (discoverable_ != false) { + output.writeBool(1, discoverable_); + } + if (runtime_ != null) { + output.writeMessage(2, getRuntime()); + } + if (timeout_ != null) { + output.writeMessage(4, getTimeout()); + } + if (retries_ != null) { + output.writeMessage(5, getRetries()); + } + if (!getDiscoveryVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, discoveryVersion_); + } + if (!getDeprecatedErrorMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deprecatedErrorMessage_); + } + if (interruptibleValueCase_ == 8) { + output.writeBool( + 8, (boolean)((java.lang.Boolean) interruptibleValue_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (discoverable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, discoverable_); + } + if (runtime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRuntime()); + } + if (timeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTimeout()); + } + if (retries_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRetries()); + } + if (!getDiscoveryVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, discoveryVersion_); + } + if (!getDeprecatedErrorMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deprecatedErrorMessage_); + } + if (interruptibleValueCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 8, (boolean)((java.lang.Boolean) interruptibleValue_)); + } + 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 flyteidl.core.Tasks.TaskMetadata)) { + return super.equals(obj); + } + flyteidl.core.Tasks.TaskMetadata other = (flyteidl.core.Tasks.TaskMetadata) obj; + + if (getDiscoverable() + != other.getDiscoverable()) return false; + if (hasRuntime() != other.hasRuntime()) return false; + if (hasRuntime()) { + if (!getRuntime() + .equals(other.getRuntime())) return false; + } + if (hasTimeout() != other.hasTimeout()) return false; + if (hasTimeout()) { + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (hasRetries() != other.hasRetries()) return false; + if (hasRetries()) { + if (!getRetries() + .equals(other.getRetries())) return false; + } + if (!getDiscoveryVersion() + .equals(other.getDiscoveryVersion())) return false; + if (!getDeprecatedErrorMessage() + .equals(other.getDeprecatedErrorMessage())) return false; + if (!getInterruptibleValueCase().equals(other.getInterruptibleValueCase())) return false; + switch (interruptibleValueCase_) { + case 8: + if (getInterruptible() + != other.getInterruptible()) 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) + DISCOVERABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDiscoverable()); + if (hasRuntime()) { + hash = (37 * hash) + RUNTIME_FIELD_NUMBER; + hash = (53 * hash) + getRuntime().hashCode(); + } + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + if (hasRetries()) { + hash = (37 * hash) + RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getRetries().hashCode(); + } + hash = (37 * hash) + DISCOVERY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDiscoveryVersion().hashCode(); + hash = (37 * hash) + DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getDeprecatedErrorMessage().hashCode(); + switch (interruptibleValueCase_) { + case 8: + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterruptible()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskMetadata 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 flyteidl.core.Tasks.TaskMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskMetadata 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 flyteidl.core.Tasks.TaskMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskMetadata 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(flyteidl.core.Tasks.TaskMetadata 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; + } + /** + *
+     * Task Metadata
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskMetadata) + flyteidl.core.Tasks.TaskMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); + } + + // Construct using flyteidl.core.Tasks.TaskMetadata.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(); + discoverable_ = false; + + if (runtimeBuilder_ == null) { + runtime_ = null; + } else { + runtime_ = null; + runtimeBuilder_ = null; + } + if (timeoutBuilder_ == null) { + timeout_ = null; + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + if (retriesBuilder_ == null) { + retries_ = null; + } else { + retries_ = null; + retriesBuilder_ = null; + } + discoveryVersion_ = ""; + + deprecatedErrorMessage_ = ""; + + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskMetadata getDefaultInstanceForType() { + return flyteidl.core.Tasks.TaskMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskMetadata build() { + flyteidl.core.Tasks.TaskMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskMetadata buildPartial() { + flyteidl.core.Tasks.TaskMetadata result = new flyteidl.core.Tasks.TaskMetadata(this); + result.discoverable_ = discoverable_; + if (runtimeBuilder_ == null) { + result.runtime_ = runtime_; + } else { + result.runtime_ = runtimeBuilder_.build(); + } + if (timeoutBuilder_ == null) { + result.timeout_ = timeout_; + } else { + result.timeout_ = timeoutBuilder_.build(); + } + if (retriesBuilder_ == null) { + result.retries_ = retries_; + } else { + result.retries_ = retriesBuilder_.build(); + } + result.discoveryVersion_ = discoveryVersion_; + result.deprecatedErrorMessage_ = deprecatedErrorMessage_; + if (interruptibleValueCase_ == 8) { + result.interruptibleValue_ = interruptibleValue_; + } + result.interruptibleValueCase_ = interruptibleValueCase_; + 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 flyteidl.core.Tasks.TaskMetadata) { + return mergeFrom((flyteidl.core.Tasks.TaskMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.TaskMetadata other) { + if (other == flyteidl.core.Tasks.TaskMetadata.getDefaultInstance()) return this; + if (other.getDiscoverable() != false) { + setDiscoverable(other.getDiscoverable()); + } + if (other.hasRuntime()) { + mergeRuntime(other.getRuntime()); + } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (other.hasRetries()) { + mergeRetries(other.getRetries()); + } + if (!other.getDiscoveryVersion().isEmpty()) { + discoveryVersion_ = other.discoveryVersion_; + onChanged(); + } + if (!other.getDeprecatedErrorMessage().isEmpty()) { + deprecatedErrorMessage_ = other.deprecatedErrorMessage_; + onChanged(); + } + switch (other.getInterruptibleValueCase()) { + case INTERRUPTIBLE: { + setInterruptible(other.getInterruptible()); + break; + } + case INTERRUPTIBLEVALUE_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 { + flyteidl.core.Tasks.TaskMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.TaskMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int interruptibleValueCase_ = 0; + private java.lang.Object interruptibleValue_; + public InterruptibleValueCase + getInterruptibleValueCase() { + return InterruptibleValueCase.forNumber( + interruptibleValueCase_); + } + + public Builder clearInterruptibleValue() { + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + onChanged(); + return this; + } + + + private boolean discoverable_ ; + /** + *
+       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+       * 
+ * + * bool discoverable = 1; + */ + public boolean getDiscoverable() { + return discoverable_; + } + /** + *
+       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+       * 
+ * + * bool discoverable = 1; + */ + public Builder setDiscoverable(boolean value) { + + discoverable_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+       * 
+ * + * bool discoverable = 1; + */ + public Builder clearDiscoverable() { + + discoverable_ = false; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.RuntimeMetadata runtime_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> runtimeBuilder_; + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public boolean hasRuntime() { + return runtimeBuilder_ != null || runtime_ != null; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { + if (runtimeBuilder_ == null) { + return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; + } else { + return runtimeBuilder_.getMessage(); + } + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder setRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { + if (runtimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runtime_ = value; + onChanged(); + } else { + runtimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder setRuntime( + flyteidl.core.Tasks.RuntimeMetadata.Builder builderForValue) { + if (runtimeBuilder_ == null) { + runtime_ = builderForValue.build(); + onChanged(); + } else { + runtimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder mergeRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { + if (runtimeBuilder_ == null) { + if (runtime_ != null) { + runtime_ = + flyteidl.core.Tasks.RuntimeMetadata.newBuilder(runtime_).mergeFrom(value).buildPartial(); + } else { + runtime_ = value; + } + onChanged(); + } else { + runtimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder clearRuntime() { + if (runtimeBuilder_ == null) { + runtime_ = null; + onChanged(); + } else { + runtime_ = null; + runtimeBuilder_ = null; + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadata.Builder getRuntimeBuilder() { + + onChanged(); + return getRuntimeFieldBuilder().getBuilder(); + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { + if (runtimeBuilder_ != null) { + return runtimeBuilder_.getMessageOrBuilder(); + } else { + return runtime_ == null ? + flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; + } + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> + getRuntimeFieldBuilder() { + if (runtimeBuilder_ == null) { + runtimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder>( + getRuntime(), + getParentForChildren(), + isClean()); + runtime_ = null; + } + return runtimeBuilder_; + } + + private com.google.protobuf.Duration timeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeoutBuilder_ != null || timeout_ != null; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + onChanged(); + } else { + timeoutBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + onChanged(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (timeout_ != null) { + timeout_ = + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + } else { + timeout_ = value; + } + onChanged(); + } else { + timeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder clearTimeout() { + if (timeoutBuilder_ == null) { + timeout_ = null; + onChanged(); + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeoutFieldBuilder() { + if (timeoutBuilder_ == null) { + timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeout(), + getParentForChildren(), + isClean()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private flyteidl.core.Literals.RetryStrategy retries_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retriesBuilder_ != null || retries_ != null; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + if (retriesBuilder_ == null) { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } else { + return retriesBuilder_.getMessage(); + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retries_ = value; + onChanged(); + } else { + retriesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries( + flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { + if (retriesBuilder_ == null) { + retries_ = builderForValue.build(); + onChanged(); + } else { + retriesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (retries_ != null) { + retries_ = + flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); + } else { + retries_ = value; + } + onChanged(); + } else { + retriesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder clearRetries() { + if (retriesBuilder_ == null) { + retries_ = null; + onChanged(); + } else { + retries_ = null; + retriesBuilder_ = null; + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { + + onChanged(); + return getRetriesFieldBuilder().getBuilder(); + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + if (retriesBuilder_ != null) { + return retriesBuilder_.getMessageOrBuilder(); + } else { + return retries_ == null ? + flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> + getRetriesFieldBuilder() { + if (retriesBuilder_ == null) { + retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( + getRetries(), + getParentForChildren(), + isClean()); + retries_ = null; + } + return retriesBuilder_; + } + + private java.lang.Object discoveryVersion_ = ""; + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public java.lang.String getDiscoveryVersion() { + java.lang.Object ref = discoveryVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + discoveryVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public com.google.protobuf.ByteString + getDiscoveryVersionBytes() { + java.lang.Object ref = discoveryVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + discoveryVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public Builder setDiscoveryVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + discoveryVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public Builder clearDiscoveryVersion() { + + discoveryVersion_ = getDefaultInstance().getDiscoveryVersion(); + onChanged(); + return this; + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public Builder setDiscoveryVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + discoveryVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object deprecatedErrorMessage_ = ""; + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public java.lang.String getDeprecatedErrorMessage() { + java.lang.Object ref = deprecatedErrorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deprecatedErrorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public com.google.protobuf.ByteString + getDeprecatedErrorMessageBytes() { + java.lang.Object ref = deprecatedErrorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deprecatedErrorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public Builder setDeprecatedErrorMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deprecatedErrorMessage_ = value; + onChanged(); + return this; + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public Builder clearDeprecatedErrorMessage() { + + deprecatedErrorMessage_ = getDefaultInstance().getDeprecatedErrorMessage(); + onChanged(); + return this; + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public Builder setDeprecatedErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deprecatedErrorMessage_ = value; + onChanged(); + return this; + } + + /** + * bool interruptible = 8; + */ + public boolean getInterruptible() { + if (interruptibleValueCase_ == 8) { + return (java.lang.Boolean) interruptibleValue_; + } + return false; + } + /** + * bool interruptible = 8; + */ + public Builder setInterruptible(boolean value) { + interruptibleValueCase_ = 8; + interruptibleValue_ = value; + onChanged(); + return this; + } + /** + * bool interruptible = 8; + */ + public Builder clearInterruptible() { + if (interruptibleValueCase_ == 8) { + interruptibleValueCase_ = 0; + interruptibleValue_ = 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:flyteidl.core.TaskMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskMetadata) + private static final flyteidl.core.Tasks.TaskMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskMetadata(); + } + + public static flyteidl.core.Tasks.TaskMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskMetadata(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 flyteidl.core.Tasks.TaskMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskTemplateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + java.lang.String getType(); + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + flyteidl.core.Tasks.TaskMetadata getMetadata(); + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + boolean hasInterface(); + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + flyteidl.core.Interface.TypedInterface getInterface(); + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); + + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + boolean hasCustom(); + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + com.google.protobuf.Struct getCustom(); + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + com.google.protobuf.StructOrBuilder getCustomOrBuilder(); + + /** + * .flyteidl.core.Container container = 6; + */ + boolean hasContainer(); + /** + * .flyteidl.core.Container container = 6; + */ + flyteidl.core.Tasks.Container getContainer(); + /** + * .flyteidl.core.Container container = 6; + */ + flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder(); + + public flyteidl.core.Tasks.TaskTemplate.TargetCase getTargetCase(); + } + /** + *
+   * A Task structure that uniquely identifies a task in the system
+   * Tasks are registered as a first step in the system.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskTemplate} + */ + public static final class TaskTemplate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskTemplate) + TaskTemplateOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskTemplate.newBuilder() to construct. + private TaskTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskTemplate() { + type_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskTemplate( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + case 26: { + flyteidl.core.Tasks.TaskMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Tasks.TaskMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; + if (interface_ != null) { + subBuilder = interface_.toBuilder(); + } + interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(interface_); + interface_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (custom_ != null) { + subBuilder = custom_.toBuilder(); + } + custom_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(custom_); + custom_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + flyteidl.core.Tasks.Container.Builder subBuilder = null; + if (targetCase_ == 6) { + subBuilder = ((flyteidl.core.Tasks.Container) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Tasks.Container.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Tasks.Container) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 6; + 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 flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); + } + + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite { + CONTAINER(6), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 6: return CONTAINER; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object type_; + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.core.Tasks.TaskMetadata metadata_; + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int INTERFACE_FIELD_NUMBER = 4; + private flyteidl.core.Interface.TypedInterface interface_; + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public boolean hasInterface() { + return interface_ != null; + } + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + return getInterface(); + } + + public static final int CUSTOM_FIELD_NUMBER = 5; + private com.google.protobuf.Struct custom_; + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public boolean hasCustom() { + return custom_ != null; + } + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.Struct getCustom() { + return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; + } + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { + return getCustom(); + } + + public static final int CONTAINER_FIELD_NUMBER = 6; + /** + * .flyteidl.core.Container container = 6; + */ + public boolean hasContainer() { + return targetCase_ == 6; + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.Container getContainer() { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + if (interface_ != null) { + output.writeMessage(4, getInterface()); + } + if (custom_ != null) { + output.writeMessage(5, getCustom()); + } + if (targetCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Tasks.Container) target_); + } + 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 (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + if (interface_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getInterface()); + } + if (custom_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCustom()); + } + if (targetCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Tasks.Container) target_); + } + 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 flyteidl.core.Tasks.TaskTemplate)) { + return super.equals(obj); + } + flyteidl.core.Tasks.TaskTemplate other = (flyteidl.core.Tasks.TaskTemplate) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getType() + .equals(other.getType())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasInterface() != other.hasInterface()) return false; + if (hasInterface()) { + if (!getInterface() + .equals(other.getInterface())) return false; + } + if (hasCustom() != other.hasCustom()) return false; + if (hasCustom()) { + if (!getCustom() + .equals(other.getCustom())) return false; + } + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 6: + if (!getContainer() + .equals(other.getContainer())) 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(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasInterface()) { + hash = (37 * hash) + INTERFACE_FIELD_NUMBER; + hash = (53 * hash) + getInterface().hashCode(); + } + if (hasCustom()) { + hash = (37 * hash) + CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + getCustom().hashCode(); + } + switch (targetCase_) { + case 6: + hash = (37 * hash) + CONTAINER_FIELD_NUMBER; + hash = (53 * hash) + getContainer().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskTemplate 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 flyteidl.core.Tasks.TaskTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskTemplate 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 flyteidl.core.Tasks.TaskTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskTemplate 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(flyteidl.core.Tasks.TaskTemplate 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 Task structure that uniquely identifies a task in the system
+     * Tasks are registered as a first step in the system.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskTemplate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskTemplate) + flyteidl.core.Tasks.TaskTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); + } + + // Construct using flyteidl.core.Tasks.TaskTemplate.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + type_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (interfaceBuilder_ == null) { + interface_ = null; + } else { + interface_ = null; + interfaceBuilder_ = null; + } + if (customBuilder_ == null) { + custom_ = null; + } else { + custom_ = null; + customBuilder_ = null; + } + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskTemplate getDefaultInstanceForType() { + return flyteidl.core.Tasks.TaskTemplate.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskTemplate build() { + flyteidl.core.Tasks.TaskTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskTemplate buildPartial() { + flyteidl.core.Tasks.TaskTemplate result = new flyteidl.core.Tasks.TaskTemplate(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.type_ = type_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (interfaceBuilder_ == null) { + result.interface_ = interface_; + } else { + result.interface_ = interfaceBuilder_.build(); + } + if (customBuilder_ == null) { + result.custom_ = custom_; + } else { + result.custom_ = customBuilder_.build(); + } + if (targetCase_ == 6) { + if (containerBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = containerBuilder_.build(); + } + } + result.targetCase_ = targetCase_; + 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 flyteidl.core.Tasks.TaskTemplate) { + return mergeFrom((flyteidl.core.Tasks.TaskTemplate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.TaskTemplate other) { + if (other == flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasInterface()) { + mergeInterface(other.getInterface()); + } + if (other.hasCustom()) { + mergeCustom(other.getCustom()); + } + switch (other.getTargetCase()) { + case CONTAINER: { + mergeContainer(other.getContainer()); + break; + } + case TARGET_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 { + flyteidl.core.Tasks.TaskTemplate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.TaskTemplate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object type_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.TaskMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.core.Tasks.TaskMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.core.Tasks.TaskMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.core.Tasks.TaskMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Tasks.TaskMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private flyteidl.core.Interface.TypedInterface interface_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public boolean hasInterface() { + return interfaceBuilder_ != null || interface_ != null; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + if (interfaceBuilder_ == null) { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } else { + return interfaceBuilder_.getMessage(); + } + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interface_ = value; + onChanged(); + } else { + interfaceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder setInterface( + flyteidl.core.Interface.TypedInterface.Builder builderForValue) { + if (interfaceBuilder_ == null) { + interface_ = builderForValue.build(); + onChanged(); + } else { + interfaceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (interface_ != null) { + interface_ = + flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); + } else { + interface_ = value; + } + onChanged(); + } else { + interfaceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder clearInterface() { + if (interfaceBuilder_ == null) { + interface_ = null; + onChanged(); + } else { + interface_ = null; + interfaceBuilder_ = null; + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { + + onChanged(); + return getInterfaceFieldBuilder().getBuilder(); + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + if (interfaceBuilder_ != null) { + return interfaceBuilder_.getMessageOrBuilder(); + } else { + return interface_ == null ? + flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> + getInterfaceFieldBuilder() { + if (interfaceBuilder_ == null) { + interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( + getInterface(), + getParentForChildren(), + isClean()); + interface_ = null; + } + return interfaceBuilder_; + } + + private com.google.protobuf.Struct custom_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customBuilder_; + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public boolean hasCustom() { + return customBuilder_ != null || custom_ != null; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.Struct getCustom() { + if (customBuilder_ == null) { + return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; + } else { + return customBuilder_.getMessage(); + } + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder setCustom(com.google.protobuf.Struct value) { + if (customBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + custom_ = value; + onChanged(); + } else { + customBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder setCustom( + com.google.protobuf.Struct.Builder builderForValue) { + if (customBuilder_ == null) { + custom_ = builderForValue.build(); + onChanged(); + } else { + customBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder mergeCustom(com.google.protobuf.Struct value) { + if (customBuilder_ == null) { + if (custom_ != null) { + custom_ = + com.google.protobuf.Struct.newBuilder(custom_).mergeFrom(value).buildPartial(); + } else { + custom_ = value; + } + onChanged(); + } else { + customBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder clearCustom() { + if (customBuilder_ == null) { + custom_ = null; + onChanged(); + } else { + custom_ = null; + customBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.Struct.Builder getCustomBuilder() { + + onChanged(); + return getCustomFieldBuilder().getBuilder(); + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { + if (customBuilder_ != null) { + return customBuilder_.getMessageOrBuilder(); + } else { + return custom_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : custom_; + } + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomFieldBuilder() { + if (customBuilder_ == null) { + customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustom(), + getParentForChildren(), + isClean()); + custom_ = null; + } + return customBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> containerBuilder_; + /** + * .flyteidl.core.Container container = 6; + */ + public boolean hasContainer() { + return targetCase_ == 6; + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.Container getContainer() { + if (containerBuilder_ == null) { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } else { + if (targetCase_ == 6) { + return containerBuilder_.getMessage(); + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder setContainer(flyteidl.core.Tasks.Container value) { + if (containerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + containerBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder setContainer( + flyteidl.core.Tasks.Container.Builder builderForValue) { + if (containerBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + containerBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder mergeContainer(flyteidl.core.Tasks.Container value) { + if (containerBuilder_ == null) { + if (targetCase_ == 6 && + target_ != flyteidl.core.Tasks.Container.getDefaultInstance()) { + target_ = flyteidl.core.Tasks.Container.newBuilder((flyteidl.core.Tasks.Container) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 6) { + containerBuilder_.mergeFrom(value); + } + containerBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder clearContainer() { + if (containerBuilder_ == null) { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + } + containerBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.Container.Builder getContainerBuilder() { + return getContainerFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { + if ((targetCase_ == 6) && (containerBuilder_ != null)) { + return containerBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Container container = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> + getContainerFieldBuilder() { + if (containerBuilder_ == null) { + if (!(targetCase_ == 6)) { + target_ = flyteidl.core.Tasks.Container.getDefaultInstance(); + } + containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder>( + (flyteidl.core.Tasks.Container) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 6; + onChanged();; + return containerBuilder_; + } + @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:flyteidl.core.TaskTemplate) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskTemplate) + private static final flyteidl.core.Tasks.TaskTemplate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskTemplate(); + } + + public static flyteidl.core.Tasks.TaskTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskTemplate(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 flyteidl.core.Tasks.TaskTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ContainerPortOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ContainerPort) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Number of port to expose on the pod's IP address.
+     * This must be a valid port number, 0 < x < 65536.
+     * 
+ * + * uint32 container_port = 1; + */ + int getContainerPort(); + } + /** + *
+   * Defines port properties for a container.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ContainerPort} + */ + public static final class ContainerPort extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerPort) + ContainerPortOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContainerPort.newBuilder() to construct. + private ContainerPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContainerPort() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContainerPort( + 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 8: { + + containerPort_ = input.readUInt32(); + 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 flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); + } + + public static final int CONTAINER_PORT_FIELD_NUMBER = 1; + private int containerPort_; + /** + *
+     * Number of port to expose on the pod's IP address.
+     * This must be a valid port number, 0 < x < 65536.
+     * 
+ * + * uint32 container_port = 1; + */ + public int getContainerPort() { + return containerPort_; + } + + 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 (containerPort_ != 0) { + output.writeUInt32(1, containerPort_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (containerPort_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, containerPort_); + } + 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 flyteidl.core.Tasks.ContainerPort)) { + return super.equals(obj); + } + flyteidl.core.Tasks.ContainerPort other = (flyteidl.core.Tasks.ContainerPort) obj; + + if (getContainerPort() + != other.getContainerPort()) 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) + CONTAINER_PORT_FIELD_NUMBER; + hash = (53 * hash) + getContainerPort(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.ContainerPort parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.ContainerPort 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 flyteidl.core.Tasks.ContainerPort parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.ContainerPort 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 flyteidl.core.Tasks.ContainerPort parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.ContainerPort 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(flyteidl.core.Tasks.ContainerPort 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; + } + /** + *
+     * Defines port properties for a container.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ContainerPort} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerPort) + flyteidl.core.Tasks.ContainerPortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); + } + + // Construct using flyteidl.core.Tasks.ContainerPort.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(); + containerPort_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.ContainerPort getDefaultInstanceForType() { + return flyteidl.core.Tasks.ContainerPort.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.ContainerPort build() { + flyteidl.core.Tasks.ContainerPort result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.ContainerPort buildPartial() { + flyteidl.core.Tasks.ContainerPort result = new flyteidl.core.Tasks.ContainerPort(this); + result.containerPort_ = containerPort_; + 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 flyteidl.core.Tasks.ContainerPort) { + return mergeFrom((flyteidl.core.Tasks.ContainerPort)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.ContainerPort other) { + if (other == flyteidl.core.Tasks.ContainerPort.getDefaultInstance()) return this; + if (other.getContainerPort() != 0) { + setContainerPort(other.getContainerPort()); + } + 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 { + flyteidl.core.Tasks.ContainerPort parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.ContainerPort) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int containerPort_ ; + /** + *
+       * Number of port to expose on the pod's IP address.
+       * This must be a valid port number, 0 < x < 65536.
+       * 
+ * + * uint32 container_port = 1; + */ + public int getContainerPort() { + return containerPort_; + } + /** + *
+       * Number of port to expose on the pod's IP address.
+       * This must be a valid port number, 0 < x < 65536.
+       * 
+ * + * uint32 container_port = 1; + */ + public Builder setContainerPort(int value) { + + containerPort_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of port to expose on the pod's IP address.
+       * This must be a valid port number, 0 < x < 65536.
+       * 
+ * + * uint32 container_port = 1; + */ + public Builder clearContainerPort() { + + containerPort_ = 0; + 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:flyteidl.core.ContainerPort) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerPort) + private static final flyteidl.core.Tasks.ContainerPort DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.ContainerPort(); + } + + public static flyteidl.core.Tasks.ContainerPort getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerPort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContainerPort(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 flyteidl.core.Tasks.ContainerPort getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ContainerOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Container) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + java.lang.String getImage(); + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + com.google.protobuf.ByteString + getImageBytes(); + + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + java.util.List + getCommandList(); + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + int getCommandCount(); + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + java.lang.String getCommand(int index); + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + com.google.protobuf.ByteString + getCommandBytes(int index); + + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + java.util.List + getArgsList(); + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + int getArgsCount(); + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + java.lang.String getArgs(int index); + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + com.google.protobuf.ByteString + getArgsBytes(int index); + + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + boolean hasResources(); + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + flyteidl.core.Tasks.Resources getResources(); + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); + + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + java.util.List + getEnvList(); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + flyteidl.core.Literals.KeyValuePair getEnv(int index); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + int getEnvCount(); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + java.util.List + getEnvOrBuilderList(); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( + int index); + + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + java.util.List + getConfigList(); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + flyteidl.core.Literals.KeyValuePair getConfig(int index); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + int getConfigCount(); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + java.util.List + getConfigOrBuilderList(); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( + int index); + + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + java.util.List + getPortsList(); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + flyteidl.core.Tasks.ContainerPort getPorts(int index); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + int getPortsCount(); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + java.util.List + getPortsOrBuilderList(); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( + int index); + + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + boolean hasDataConfig(); + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + flyteidl.core.Tasks.DataLoadingConfig getDataConfig(); + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.core.Container} + */ + public static final class Container extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Container) + ContainerOrBuilder { + private static final long serialVersionUID = 0L; + // Use Container.newBuilder() to construct. + private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Container() { + image_ = ""; + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + env_ = java.util.Collections.emptyList(); + config_ = java.util.Collections.emptyList(); + ports_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Container( + 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(); + + image_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + command_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + command_.add(s); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + args_.add(s); + break; + } + case 34: { + flyteidl.core.Tasks.Resources.Builder subBuilder = null; + if (resources_ != null) { + subBuilder = resources_.toBuilder(); + } + resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resources_); + resources_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + env_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + env_.add( + input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + config_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + config_.add( + input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { + ports_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + ports_.add( + input.readMessage(flyteidl.core.Tasks.ContainerPort.parser(), extensionRegistry)); + break; + } + case 74: { + flyteidl.core.Tasks.DataLoadingConfig.Builder subBuilder = null; + if (dataConfig_ != null) { + subBuilder = dataConfig_.toBuilder(); + } + dataConfig_ = input.readMessage(flyteidl.core.Tasks.DataLoadingConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataConfig_); + dataConfig_ = 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_ & 0x00000002) != 0)) { + command_ = command_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + args_ = args_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + env_ = java.util.Collections.unmodifiableList(env_); + } + if (((mutable_bitField0_ & 0x00000020) != 0)) { + config_ = java.util.Collections.unmodifiableList(config_); + } + if (((mutable_bitField0_ & 0x00000040) != 0)) { + ports_ = java.util.Collections.unmodifiableList(ports_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); + } + + private int bitField0_; + public static final int IMAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object image_; + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + 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(); + image_ = s; + return s; + } + } + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMAND_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList command_; + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ProtocolStringList + getCommandList() { + return command_; + } + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public int getCommandCount() { + return command_.size(); + } + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public java.lang.String getCommand(int index) { + return command_.get(index); + } + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ByteString + getCommandBytes(int index) { + return command_.getByteString(index); + } + + public static final int ARGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList args_; + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_; + } + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public int getArgsCount() { + return args_.size(); + } + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + + public static final int RESOURCES_FIELD_NUMBER = 4; + private flyteidl.core.Tasks.Resources resources_; + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public boolean hasResources() { + return resources_ != null; + } + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.Resources getResources() { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + return getResources(); + } + + public static final int ENV_FIELD_NUMBER = 5; + private java.util.List env_; + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List getEnvList() { + return env_; + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List + getEnvOrBuilderList() { + return env_; + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public int getEnvCount() { + return env_.size(); + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair getEnv(int index) { + return env_.get(index); + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( + int index) { + return env_.get(index); + } + + public static final int CONFIG_FIELD_NUMBER = 6; + private java.util.List config_; + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List getConfigList() { + return config_; + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List + getConfigOrBuilderList() { + return config_; + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public int getConfigCount() { + return config_.size(); + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair getConfig(int index) { + return config_.get(index); + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( + int index) { + return config_.get(index); + } + + public static final int PORTS_FIELD_NUMBER = 7; + private java.util.List ports_; + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List getPortsList() { + return ports_; + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List + getPortsOrBuilderList() { + return ports_; + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public int getPortsCount() { + return ports_.size(); + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort getPorts(int index) { + return ports_.get(index); + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( + int index) { + return ports_.get(index); + } + + public static final int DATA_CONFIG_FIELD_NUMBER = 9; + private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public boolean hasDataConfig() { + return dataConfig_ != null; + } + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { + return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; + } + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { + return getDataConfig(); + } + + 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 (!getImageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); + } + for (int i = 0; i < command_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, command_.getRaw(i)); + } + for (int i = 0; i < args_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); + } + if (resources_ != null) { + output.writeMessage(4, getResources()); + } + for (int i = 0; i < env_.size(); i++) { + output.writeMessage(5, env_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + output.writeMessage(6, config_.get(i)); + } + for (int i = 0; i < ports_.size(); i++) { + output.writeMessage(7, ports_.get(i)); + } + if (dataConfig_ != null) { + output.writeMessage(9, getDataConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getImageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); + } + { + int dataSize = 0; + for (int i = 0; i < command_.size(); i++) { + dataSize += computeStringSizeNoTag(command_.getRaw(i)); + } + size += dataSize; + size += 1 * getCommandList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < args_.size(); i++) { + dataSize += computeStringSizeNoTag(args_.getRaw(i)); + } + size += dataSize; + size += 1 * getArgsList().size(); + } + if (resources_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResources()); + } + for (int i = 0; i < env_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, env_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, config_.get(i)); + } + for (int i = 0; i < ports_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, ports_.get(i)); + } + if (dataConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getDataConfig()); + } + 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 flyteidl.core.Tasks.Container)) { + return super.equals(obj); + } + flyteidl.core.Tasks.Container other = (flyteidl.core.Tasks.Container) obj; + + if (!getImage() + .equals(other.getImage())) return false; + if (!getCommandList() + .equals(other.getCommandList())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (hasResources() != other.hasResources()) return false; + if (hasResources()) { + if (!getResources() + .equals(other.getResources())) return false; + } + if (!getEnvList() + .equals(other.getEnvList())) return false; + if (!getConfigList() + .equals(other.getConfigList())) return false; + if (!getPortsList() + .equals(other.getPortsList())) return false; + if (hasDataConfig() != other.hasDataConfig()) return false; + if (hasDataConfig()) { + if (!getDataConfig() + .equals(other.getDataConfig())) 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) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + if (getCommandCount() > 0) { + hash = (37 * hash) + COMMAND_FIELD_NUMBER; + hash = (53 * hash) + getCommandList().hashCode(); + } + if (getArgsCount() > 0) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgsList().hashCode(); + } + if (hasResources()) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResources().hashCode(); + } + if (getEnvCount() > 0) { + hash = (37 * hash) + ENV_FIELD_NUMBER; + hash = (53 * hash) + getEnvList().hashCode(); + } + if (getConfigCount() > 0) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfigList().hashCode(); + } + if (getPortsCount() > 0) { + hash = (37 * hash) + PORTS_FIELD_NUMBER; + hash = (53 * hash) + getPortsList().hashCode(); + } + if (hasDataConfig()) { + hash = (37 * hash) + DATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDataConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.Container parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Container parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Container parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Container parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Container parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Container parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Container parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Container 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 flyteidl.core.Tasks.Container parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Container 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 flyteidl.core.Tasks.Container parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Container 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(flyteidl.core.Tasks.Container 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 flyteidl.core.Container} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Container) + flyteidl.core.Tasks.ContainerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); + } + + // Construct using flyteidl.core.Tasks.Container.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEnvFieldBuilder(); + getConfigFieldBuilder(); + getPortsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + image_ = ""; + + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (resourcesBuilder_ == null) { + resources_ = null; + } else { + resources_ = null; + resourcesBuilder_ = null; + } + if (envBuilder_ == null) { + env_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + envBuilder_.clear(); + } + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + configBuilder_.clear(); + } + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + portsBuilder_.clear(); + } + if (dataConfigBuilder_ == null) { + dataConfig_ = null; + } else { + dataConfig_ = null; + dataConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.Container getDefaultInstanceForType() { + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.Container build() { + flyteidl.core.Tasks.Container result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.Container buildPartial() { + flyteidl.core.Tasks.Container result = new flyteidl.core.Tasks.Container(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.image_ = image_; + if (((bitField0_ & 0x00000002) != 0)) { + command_ = command_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.command_ = command_; + if (((bitField0_ & 0x00000004) != 0)) { + args_ = args_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.args_ = args_; + if (resourcesBuilder_ == null) { + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + if (envBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + env_ = java.util.Collections.unmodifiableList(env_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.env_ = env_; + } else { + result.env_ = envBuilder_.build(); + } + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + config_ = java.util.Collections.unmodifiableList(config_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.config_ = config_; + } else { + result.config_ = configBuilder_.build(); + } + if (portsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + ports_ = java.util.Collections.unmodifiableList(ports_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.ports_ = ports_; + } else { + result.ports_ = portsBuilder_.build(); + } + if (dataConfigBuilder_ == null) { + result.dataConfig_ = dataConfig_; + } else { + result.dataConfig_ = dataConfigBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.core.Tasks.Container) { + return mergeFrom((flyteidl.core.Tasks.Container)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.Container other) { + if (other == flyteidl.core.Tasks.Container.getDefaultInstance()) return this; + if (!other.getImage().isEmpty()) { + image_ = other.image_; + onChanged(); + } + if (!other.command_.isEmpty()) { + if (command_.isEmpty()) { + command_ = other.command_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCommandIsMutable(); + command_.addAll(other.command_); + } + onChanged(); + } + if (!other.args_.isEmpty()) { + if (args_.isEmpty()) { + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureArgsIsMutable(); + args_.addAll(other.args_); + } + onChanged(); + } + if (other.hasResources()) { + mergeResources(other.getResources()); + } + if (envBuilder_ == null) { + if (!other.env_.isEmpty()) { + if (env_.isEmpty()) { + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureEnvIsMutable(); + env_.addAll(other.env_); + } + onChanged(); + } + } else { + if (!other.env_.isEmpty()) { + if (envBuilder_.isEmpty()) { + envBuilder_.dispose(); + envBuilder_ = null; + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000010); + envBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEnvFieldBuilder() : null; + } else { + envBuilder_.addAllMessages(other.env_); + } + } + } + if (configBuilder_ == null) { + if (!other.config_.isEmpty()) { + if (config_.isEmpty()) { + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureConfigIsMutable(); + config_.addAll(other.config_); + } + onChanged(); + } + } else { + if (!other.config_.isEmpty()) { + if (configBuilder_.isEmpty()) { + configBuilder_.dispose(); + configBuilder_ = null; + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000020); + configBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConfigFieldBuilder() : null; + } else { + configBuilder_.addAllMessages(other.config_); + } + } + } + if (portsBuilder_ == null) { + if (!other.ports_.isEmpty()) { + if (ports_.isEmpty()) { + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensurePortsIsMutable(); + ports_.addAll(other.ports_); + } + onChanged(); + } + } else { + if (!other.ports_.isEmpty()) { + if (portsBuilder_.isEmpty()) { + portsBuilder_.dispose(); + portsBuilder_ = null; + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000040); + portsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPortsFieldBuilder() : null; + } else { + portsBuilder_.addAllMessages(other.ports_); + } + } + } + if (other.hasDataConfig()) { + mergeDataConfig(other.getDataConfig()); + } + 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 { + flyteidl.core.Tasks.Container parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.Container) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object image_ = ""; + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public Builder setImage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + image_ = value; + onChanged(); + return this; + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public Builder clearImage() { + + image_ = getDefaultInstance().getImage(); + onChanged(); + return this; + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + image_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCommandIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + command_ = new com.google.protobuf.LazyStringArrayList(command_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ProtocolStringList + getCommandList() { + return command_.getUnmodifiableView(); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public int getCommandCount() { + return command_.size(); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public java.lang.String getCommand(int index) { + return command_.get(index); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ByteString + getCommandBytes(int index) { + return command_.getByteString(index); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder setCommand( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandIsMutable(); + command_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder addCommand( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandIsMutable(); + command_.add(value); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder addAllCommand( + java.lang.Iterable values) { + ensureCommandIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, command_); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder clearCommand() { + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder addCommandBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCommandIsMutable(); + command_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(args_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_.getUnmodifiableView(); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public int getArgsCount() { + return args_.size(); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder setArgs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder addArgs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder addAllArgs( + java.lang.Iterable values) { + ensureArgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder clearArgs() { + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + + private flyteidl.core.Tasks.Resources resources_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public boolean hasResources() { + return resourcesBuilder_ != null || resources_ != null; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.Resources getResources() { + if (resourcesBuilder_ == null) { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } else { + return resourcesBuilder_.getMessage(); + } + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder setResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resources_ = value; + onChanged(); + } else { + resourcesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder setResources( + flyteidl.core.Tasks.Resources.Builder builderForValue) { + if (resourcesBuilder_ == null) { + resources_ = builderForValue.build(); + onChanged(); + } else { + resourcesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder mergeResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (resources_ != null) { + resources_ = + flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); + } else { + resources_ = value; + } + onChanged(); + } else { + resourcesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = null; + onChanged(); + } else { + resources_ = null; + resourcesBuilder_ = null; + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { + + onChanged(); + return getResourcesFieldBuilder().getBuilder(); + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilder(); + } else { + return resources_ == null ? + flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( + getResources(), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + private java.util.List env_ = + java.util.Collections.emptyList(); + private void ensureEnvIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + env_ = new java.util.ArrayList(env_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> envBuilder_; + + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List getEnvList() { + if (envBuilder_ == null) { + return java.util.Collections.unmodifiableList(env_); + } else { + return envBuilder_.getMessageList(); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public int getEnvCount() { + if (envBuilder_ == null) { + return env_.size(); + } else { + return envBuilder_.getCount(); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair getEnv(int index) { + if (envBuilder_ == null) { + return env_.get(index); + } else { + return envBuilder_.getMessage(index); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder setEnv( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.set(index, value); + onChanged(); + } else { + envBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder setEnv( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.set(index, builderForValue.build()); + onChanged(); + } else { + envBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv(flyteidl.core.Literals.KeyValuePair value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(value); + onChanged(); + } else { + envBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(index, value); + onChanged(); + } else { + envBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv( + flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.add(builderForValue.build()); + onChanged(); + } else { + envBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.add(index, builderForValue.build()); + onChanged(); + } else { + envBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addAllEnv( + java.lang.Iterable values) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, env_); + onChanged(); + } else { + envBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder clearEnv() { + if (envBuilder_ == null) { + env_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + envBuilder_.clear(); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder removeEnv(int index) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.remove(index); + onChanged(); + } else { + envBuilder_.remove(index); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair.Builder getEnvBuilder( + int index) { + return getEnvFieldBuilder().getBuilder(index); + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( + int index) { + if (envBuilder_ == null) { + return env_.get(index); } else { + return envBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List + getEnvOrBuilderList() { + if (envBuilder_ != null) { + return envBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(env_); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder() { + return getEnvFieldBuilder().addBuilder( + flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder( + int index) { + return getEnvFieldBuilder().addBuilder( + index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List + getEnvBuilderList() { + return getEnvFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> + getEnvFieldBuilder() { + if (envBuilder_ == null) { + envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( + env_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + env_ = null; + } + return envBuilder_; + } + + private java.util.List config_ = + java.util.Collections.emptyList(); + private void ensureConfigIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + config_ = new java.util.ArrayList(config_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> configBuilder_; + + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List getConfigList() { + if (configBuilder_ == null) { + return java.util.Collections.unmodifiableList(config_); + } else { + return configBuilder_.getMessageList(); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public int getConfigCount() { + if (configBuilder_ == null) { + return config_.size(); + } else { + return configBuilder_.getCount(); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair getConfig(int index) { + if (configBuilder_ == null) { + return config_.get(index); + } else { + return configBuilder_.getMessage(index); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder setConfig( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.set(index, value); + onChanged(); + } else { + configBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder setConfig( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.set(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addConfig(flyteidl.core.Literals.KeyValuePair value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(value); + onChanged(); + } else { + configBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addConfig( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(index, value); + onChanged(); + } else { + configBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addConfig( + flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addConfig( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addAllConfig( + java.lang.Iterable values) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, config_); + onChanged(); + } else { + configBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + configBuilder_.clear(); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder removeConfig(int index) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.remove(index); + onChanged(); + } else { + configBuilder_.remove(index); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair.Builder getConfigBuilder( + int index) { + return getConfigFieldBuilder().getBuilder(index); + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( + int index) { + if (configBuilder_ == null) { + return config_.get(index); } else { + return configBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List + getConfigOrBuilderList() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(config_); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder() { + return getConfigFieldBuilder().addBuilder( + flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder( + int index) { + return getConfigFieldBuilder().addBuilder( + index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List + getConfigBuilderList() { + return getConfigFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( + config_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + + private java.util.List ports_ = + java.util.Collections.emptyList(); + private void ensurePortsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + ports_ = new java.util.ArrayList(ports_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> portsBuilder_; + + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List getPortsList() { + if (portsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ports_); + } else { + return portsBuilder_.getMessageList(); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public int getPortsCount() { + if (portsBuilder_ == null) { + return ports_.size(); + } else { + return portsBuilder_.getCount(); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort getPorts(int index) { + if (portsBuilder_ == null) { + return ports_.get(index); + } else { + return portsBuilder_.getMessage(index); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder setPorts( + int index, flyteidl.core.Tasks.ContainerPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.set(index, value); + onChanged(); + } else { + portsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder setPorts( + int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.set(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts(flyteidl.core.Tasks.ContainerPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(value); + onChanged(); + } else { + portsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts( + int index, flyteidl.core.Tasks.ContainerPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(index, value); + onChanged(); + } else { + portsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts( + flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts( + int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addAllPorts( + java.lang.Iterable values) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ports_); + onChanged(); + } else { + portsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder clearPorts() { + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + portsBuilder_.clear(); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder removePorts(int index) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.remove(index); + onChanged(); + } else { + portsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort.Builder getPortsBuilder( + int index) { + return getPortsFieldBuilder().getBuilder(index); + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( + int index) { + if (portsBuilder_ == null) { + return ports_.get(index); } else { + return portsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List + getPortsOrBuilderList() { + if (portsBuilder_ != null) { + return portsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ports_); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder() { + return getPortsFieldBuilder().addBuilder( + flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder( + int index) { + return getPortsFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List + getPortsBuilderList() { + return getPortsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> + getPortsFieldBuilder() { + if (portsBuilder_ == null) { + portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder>( + ports_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + ports_ = null; + } + return portsBuilder_; + } + + private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> dataConfigBuilder_; + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public boolean hasDataConfig() { + return dataConfigBuilder_ != null || dataConfig_ != null; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { + if (dataConfigBuilder_ == null) { + return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; + } else { + return dataConfigBuilder_.getMessage(); + } + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public Builder setDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { + if (dataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataConfig_ = value; + onChanged(); + } else { + dataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public Builder setDataConfig( + flyteidl.core.Tasks.DataLoadingConfig.Builder builderForValue) { + if (dataConfigBuilder_ == null) { + dataConfig_ = builderForValue.build(); + onChanged(); + } else { + dataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public Builder mergeDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { + if (dataConfigBuilder_ == null) { + if (dataConfig_ != null) { + dataConfig_ = + flyteidl.core.Tasks.DataLoadingConfig.newBuilder(dataConfig_).mergeFrom(value).buildPartial(); + } else { + dataConfig_ = value; + } + onChanged(); + } else { + dataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public Builder clearDataConfig() { + if (dataConfigBuilder_ == null) { + dataConfig_ = null; + onChanged(); + } else { + dataConfig_ = null; + dataConfigBuilder_ = null; + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfig.Builder getDataConfigBuilder() { + + onChanged(); + return getDataConfigFieldBuilder().getBuilder(); + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { + if (dataConfigBuilder_ != null) { + return dataConfigBuilder_.getMessageOrBuilder(); + } else { + return dataConfig_ == null ? + flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; + } + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories 
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> + getDataConfigFieldBuilder() { + if (dataConfigBuilder_ == null) { + dataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder>( + getDataConfig(), + getParentForChildren(), + isClean()); + dataConfig_ = null; + } + return dataConfigBuilder_; + } + @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:flyteidl.core.Container) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Container) + private static final flyteidl.core.Tasks.Container DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.Container(); + } + + public static flyteidl.core.Tasks.Container getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Container(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 flyteidl.core.Tasks.Container getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IOStrategyOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.IOStrategy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Mode to use to manage downloads
+     * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + int getDownloadModeValue(); + /** + *
+     * Mode to use to manage downloads
+     * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode(); + + /** + *
+     * Mode to use to manage uploads
+     * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + int getUploadModeValue(); + /** + *
+     * Mode to use to manage uploads
+     * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode(); + } + /** + *
+   * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)
+   * 
+ * + * Protobuf type {@code flyteidl.core.IOStrategy} + */ + public static final class IOStrategy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.IOStrategy) + IOStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use IOStrategy.newBuilder() to construct. + private IOStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IOStrategy() { + downloadMode_ = 0; + uploadMode_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IOStrategy( + 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 8: { + int rawValue = input.readEnum(); + + downloadMode_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + uploadMode_ = rawValue; + 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 flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.IOStrategy.class, flyteidl.core.Tasks.IOStrategy.Builder.class); + } + + /** + *
+     * Mode to use for downloading
+     * 
+ * + * Protobuf enum {@code flyteidl.core.IOStrategy.DownloadMode} + */ + public enum DownloadMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * All data will be downloaded before the main container is executed
+       * 
+ * + * DOWNLOAD_EAGER = 0; + */ + DOWNLOAD_EAGER(0), + /** + *
+       * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details
+       * 
+ * + * DOWNLOAD_STREAM = 1; + */ + DOWNLOAD_STREAM(1), + /** + *
+       * Large objects (offloaded) will not be downloaded
+       * 
+ * + * DO_NOT_DOWNLOAD = 2; + */ + DO_NOT_DOWNLOAD(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * All data will be downloaded before the main container is executed
+       * 
+ * + * DOWNLOAD_EAGER = 0; + */ + public static final int DOWNLOAD_EAGER_VALUE = 0; + /** + *
+       * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details
+       * 
+ * + * DOWNLOAD_STREAM = 1; + */ + public static final int DOWNLOAD_STREAM_VALUE = 1; + /** + *
+       * Large objects (offloaded) will not be downloaded
+       * 
+ * + * DO_NOT_DOWNLOAD = 2; + */ + public static final int DO_NOT_DOWNLOAD_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DownloadMode valueOf(int value) { + return forNumber(value); + } + + public static DownloadMode forNumber(int value) { + switch (value) { + case 0: return DOWNLOAD_EAGER; + case 1: return DOWNLOAD_STREAM; + case 2: return DO_NOT_DOWNLOAD; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DownloadMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DownloadMode findValueByNumber(int number) { + return DownloadMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Tasks.IOStrategy.getDescriptor().getEnumTypes().get(0); + } + + private static final DownloadMode[] VALUES = values(); + + public static DownloadMode 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 DownloadMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.IOStrategy.DownloadMode) + } + + /** + *
+     * Mode to use for uploading
+     * 
+ * + * Protobuf enum {@code flyteidl.core.IOStrategy.UploadMode} + */ + public enum UploadMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * All data will be uploaded after the main container exits
+       * 
+ * + * UPLOAD_ON_EXIT = 0; + */ + UPLOAD_ON_EXIT(0), + /** + *
+       * Data will be uploaded as it appears. Refer to protocol specification for details
+       * 
+ * + * UPLOAD_EAGER = 1; + */ + UPLOAD_EAGER(1), + /** + *
+       * Data will not be uploaded, only references will be written
+       * 
+ * + * DO_NOT_UPLOAD = 2; + */ + DO_NOT_UPLOAD(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * All data will be uploaded after the main container exits
+       * 
+ * + * UPLOAD_ON_EXIT = 0; + */ + public static final int UPLOAD_ON_EXIT_VALUE = 0; + /** + *
+       * Data will be uploaded as it appears. Refer to protocol specification for details
+       * 
+ * + * UPLOAD_EAGER = 1; + */ + public static final int UPLOAD_EAGER_VALUE = 1; + /** + *
+       * Data will not be uploaded, only references will be written
+       * 
+ * + * DO_NOT_UPLOAD = 2; + */ + public static final int DO_NOT_UPLOAD_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UploadMode valueOf(int value) { + return forNumber(value); + } + + public static UploadMode forNumber(int value) { + switch (value) { + case 0: return UPLOAD_ON_EXIT; + case 1: return UPLOAD_EAGER; + case 2: return DO_NOT_UPLOAD; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UploadMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UploadMode findValueByNumber(int number) { + return UploadMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Tasks.IOStrategy.getDescriptor().getEnumTypes().get(1); + } + + private static final UploadMode[] VALUES = values(); + + public static UploadMode 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 UploadMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.IOStrategy.UploadMode) + } + + public static final int DOWNLOAD_MODE_FIELD_NUMBER = 1; + private int downloadMode_; + /** + *
+     * Mode to use to manage downloads
+     * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public int getDownloadModeValue() { + return downloadMode_; + } + /** + *
+     * Mode to use to manage downloads
+     * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.IOStrategy.DownloadMode result = flyteidl.core.Tasks.IOStrategy.DownloadMode.valueOf(downloadMode_); + return result == null ? flyteidl.core.Tasks.IOStrategy.DownloadMode.UNRECOGNIZED : result; + } + + public static final int UPLOAD_MODE_FIELD_NUMBER = 2; + private int uploadMode_; + /** + *
+     * Mode to use to manage uploads
+     * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public int getUploadModeValue() { + return uploadMode_; + } + /** + *
+     * Mode to use to manage uploads
+     * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.IOStrategy.UploadMode result = flyteidl.core.Tasks.IOStrategy.UploadMode.valueOf(uploadMode_); + return result == null ? flyteidl.core.Tasks.IOStrategy.UploadMode.UNRECOGNIZED : result; + } + + 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 (downloadMode_ != flyteidl.core.Tasks.IOStrategy.DownloadMode.DOWNLOAD_EAGER.getNumber()) { + output.writeEnum(1, downloadMode_); + } + if (uploadMode_ != flyteidl.core.Tasks.IOStrategy.UploadMode.UPLOAD_ON_EXIT.getNumber()) { + output.writeEnum(2, uploadMode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (downloadMode_ != flyteidl.core.Tasks.IOStrategy.DownloadMode.DOWNLOAD_EAGER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, downloadMode_); + } + if (uploadMode_ != flyteidl.core.Tasks.IOStrategy.UploadMode.UPLOAD_ON_EXIT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, uploadMode_); + } + 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 flyteidl.core.Tasks.IOStrategy)) { + return super.equals(obj); + } + flyteidl.core.Tasks.IOStrategy other = (flyteidl.core.Tasks.IOStrategy) obj; + + if (downloadMode_ != other.downloadMode_) return false; + if (uploadMode_ != other.uploadMode_) 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) + DOWNLOAD_MODE_FIELD_NUMBER; + hash = (53 * hash) + downloadMode_; + hash = (37 * hash) + UPLOAD_MODE_FIELD_NUMBER; + hash = (53 * hash) + uploadMode_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.IOStrategy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.IOStrategy 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 flyteidl.core.Tasks.IOStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.IOStrategy 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 flyteidl.core.Tasks.IOStrategy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.IOStrategy 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(flyteidl.core.Tasks.IOStrategy 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; + } + /** + *
+     * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)
+     * 
+ * + * Protobuf type {@code flyteidl.core.IOStrategy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.IOStrategy) + flyteidl.core.Tasks.IOStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.IOStrategy.class, flyteidl.core.Tasks.IOStrategy.Builder.class); + } + + // Construct using flyteidl.core.Tasks.IOStrategy.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(); + downloadMode_ = 0; + + uploadMode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.IOStrategy getDefaultInstanceForType() { + return flyteidl.core.Tasks.IOStrategy.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.IOStrategy build() { + flyteidl.core.Tasks.IOStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.IOStrategy buildPartial() { + flyteidl.core.Tasks.IOStrategy result = new flyteidl.core.Tasks.IOStrategy(this); + result.downloadMode_ = downloadMode_; + result.uploadMode_ = uploadMode_; + 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 flyteidl.core.Tasks.IOStrategy) { + return mergeFrom((flyteidl.core.Tasks.IOStrategy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.IOStrategy other) { + if (other == flyteidl.core.Tasks.IOStrategy.getDefaultInstance()) return this; + if (other.downloadMode_ != 0) { + setDownloadModeValue(other.getDownloadModeValue()); + } + if (other.uploadMode_ != 0) { + setUploadModeValue(other.getUploadModeValue()); + } + 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 { + flyteidl.core.Tasks.IOStrategy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.IOStrategy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int downloadMode_ = 0; + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public int getDownloadModeValue() { + return downloadMode_; + } + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public Builder setDownloadModeValue(int value) { + downloadMode_ = value; + onChanged(); + return this; + } + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.IOStrategy.DownloadMode result = flyteidl.core.Tasks.IOStrategy.DownloadMode.valueOf(downloadMode_); + return result == null ? flyteidl.core.Tasks.IOStrategy.DownloadMode.UNRECOGNIZED : result; + } + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public Builder setDownloadMode(flyteidl.core.Tasks.IOStrategy.DownloadMode value) { + if (value == null) { + throw new NullPointerException(); + } + + downloadMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public Builder clearDownloadMode() { + + downloadMode_ = 0; + onChanged(); + return this; + } + + private int uploadMode_ = 0; + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public int getUploadModeValue() { + return uploadMode_; + } + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public Builder setUploadModeValue(int value) { + uploadMode_ = value; + onChanged(); + return this; + } + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.IOStrategy.UploadMode result = flyteidl.core.Tasks.IOStrategy.UploadMode.valueOf(uploadMode_); + return result == null ? flyteidl.core.Tasks.IOStrategy.UploadMode.UNRECOGNIZED : result; + } + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public Builder setUploadMode(flyteidl.core.Tasks.IOStrategy.UploadMode value) { + if (value == null) { + throw new NullPointerException(); + } + + uploadMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public Builder clearUploadMode() { + + uploadMode_ = 0; + 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:flyteidl.core.IOStrategy) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.IOStrategy) + private static final flyteidl.core.Tasks.IOStrategy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.IOStrategy(); + } + + public static flyteidl.core.Tasks.IOStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IOStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IOStrategy(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 flyteidl.core.Tasks.IOStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DataLoadingConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.DataLoadingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
+     * 
+ * + * bool enabled = 1; + */ + boolean getEnabled(); + + /** + *
+     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+     * /var/flyte/inputs/y -> Y is a file in Binary format
+     * /var/flyte/inputs/z/... -> Note Z itself is a directory
+     * More information about the protocol - refer to docs #TODO reference docs here
+     * 
+ * + * string input_path = 2; + */ + java.lang.String getInputPath(); + /** + *
+     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+     * /var/flyte/inputs/y -> Y is a file in Binary format
+     * /var/flyte/inputs/z/... -> Note Z itself is a directory
+     * More information about the protocol - refer to docs #TODO reference docs here
+     * 
+ * + * string input_path = 2; + */ + com.google.protobuf.ByteString + getInputPathBytes(); + + /** + *
+     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+     * 
+ * + * string output_path = 3; + */ + java.lang.String getOutputPath(); + /** + *
+     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+     * 
+ * + * string output_path = 3; + */ + com.google.protobuf.ByteString + getOutputPathBytes(); + + /** + *
+     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+     * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + int getFormatValue(); + /** + *
+     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+     * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat(); + + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + boolean hasIoStrategy(); + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + flyteidl.core.Tasks.IOStrategy getIoStrategy(); + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder(); + } + /** + *
+   * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.
+   * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path
+   * Any outputs generated by the user container - within output_path are automatically uploaded.
+   * 
+ * + * Protobuf type {@code flyteidl.core.DataLoadingConfig} + */ + public static final class DataLoadingConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.DataLoadingConfig) + DataLoadingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataLoadingConfig.newBuilder() to construct. + private DataLoadingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DataLoadingConfig() { + inputPath_ = ""; + outputPath_ = ""; + format_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DataLoadingConfig( + 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 8: { + + enabled_ = input.readBool(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inputPath_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + outputPath_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + format_ = rawValue; + break; + } + case 42: { + flyteidl.core.Tasks.IOStrategy.Builder subBuilder = null; + if (ioStrategy_ != null) { + subBuilder = ioStrategy_.toBuilder(); + } + ioStrategy_ = input.readMessage(flyteidl.core.Tasks.IOStrategy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ioStrategy_); + ioStrategy_ = 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 flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.DataLoadingConfig.class, flyteidl.core.Tasks.DataLoadingConfig.Builder.class); + } + + /** + *
+     * LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. 
+     * If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.
+     * JSON and YAML do not need any protobuf definitions to read it
+     * All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)
+     * 
+ * + * Protobuf enum {@code flyteidl.core.DataLoadingConfig.LiteralMapFormat} + */ + public enum LiteralMapFormat + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html
+       * 
+ * + * JSON = 0; + */ + JSON(0), + /** + * YAML = 1; + */ + YAML(1), + /** + *
+       * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core
+       * 
+ * + * PROTO = 2; + */ + PROTO(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html
+       * 
+ * + * JSON = 0; + */ + public static final int JSON_VALUE = 0; + /** + * YAML = 1; + */ + public static final int YAML_VALUE = 1; + /** + *
+       * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core
+       * 
+ * + * PROTO = 2; + */ + public static final int PROTO_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LiteralMapFormat valueOf(int value) { + return forNumber(value); + } + + public static LiteralMapFormat forNumber(int value) { + switch (value) { + case 0: return JSON; + case 1: return YAML; + case 2: return PROTO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LiteralMapFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LiteralMapFormat findValueByNumber(int number) { + return LiteralMapFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Tasks.DataLoadingConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final LiteralMapFormat[] VALUES = values(); + + public static LiteralMapFormat 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 LiteralMapFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.DataLoadingConfig.LiteralMapFormat) + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + *
+     * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
+     * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + + public static final int INPUT_PATH_FIELD_NUMBER = 2; + private volatile java.lang.Object inputPath_; + /** + *
+     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+     * /var/flyte/inputs/y -> Y is a file in Binary format
+     * /var/flyte/inputs/z/... -> Note Z itself is a directory
+     * More information about the protocol - refer to docs #TODO reference docs here
+     * 
+ * + * string input_path = 2; + */ + public java.lang.String getInputPath() { + java.lang.Object ref = inputPath_; + 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(); + inputPath_ = s; + return s; + } + } + /** + *
+     * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+     * /var/flyte/inputs/y -> Y is a file in Binary format
+     * /var/flyte/inputs/z/... -> Note Z itself is a directory
+     * More information about the protocol - refer to docs #TODO reference docs here
+     * 
+ * + * string input_path = 2; + */ + public com.google.protobuf.ByteString + getInputPathBytes() { + java.lang.Object ref = inputPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_PATH_FIELD_NUMBER = 3; + private volatile java.lang.Object outputPath_; + /** + *
+     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+     * 
+ * + * string output_path = 3; + */ + public java.lang.String getOutputPath() { + java.lang.Object ref = outputPath_; + 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(); + outputPath_ = s; + return s; + } + } + /** + *
+     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+     * 
+ * + * string output_path = 3; + */ + public com.google.protobuf.ByteString + getOutputPathBytes() { + java.lang.Object ref = outputPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORMAT_FIELD_NUMBER = 4; + private int format_; + /** + *
+     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+     * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public int getFormatValue() { + return format_; + } + /** + *
+     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+     * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat result = flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.valueOf(format_); + return result == null ? flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.UNRECOGNIZED : result; + } + + public static final int IO_STRATEGY_FIELD_NUMBER = 5; + private flyteidl.core.Tasks.IOStrategy ioStrategy_; + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public boolean hasIoStrategy() { + return ioStrategy_ != null; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategy getIoStrategy() { + return ioStrategy_ == null ? flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder() { + return getIoStrategy(); + } + + 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 (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!getInputPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputPath_); + } + if (!getOutputPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputPath_); + } + if (format_ != flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.JSON.getNumber()) { + output.writeEnum(4, format_); + } + if (ioStrategy_ != null) { + output.writeMessage(5, getIoStrategy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + if (!getInputPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputPath_); + } + if (!getOutputPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputPath_); + } + if (format_ != flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.JSON.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, format_); + } + if (ioStrategy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getIoStrategy()); + } + 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 flyteidl.core.Tasks.DataLoadingConfig)) { + return super.equals(obj); + } + flyteidl.core.Tasks.DataLoadingConfig other = (flyteidl.core.Tasks.DataLoadingConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getInputPath() + .equals(other.getInputPath())) return false; + if (!getOutputPath() + .equals(other.getOutputPath())) return false; + if (format_ != other.format_) return false; + if (hasIoStrategy() != other.hasIoStrategy()) return false; + if (hasIoStrategy()) { + if (!getIoStrategy() + .equals(other.getIoStrategy())) 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) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (37 * hash) + INPUT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getInputPath().hashCode(); + hash = (37 * hash) + OUTPUT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getOutputPath().hashCode(); + hash = (37 * hash) + FORMAT_FIELD_NUMBER; + hash = (53 * hash) + format_; + if (hasIoStrategy()) { + hash = (37 * hash) + IO_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getIoStrategy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.DataLoadingConfig 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 flyteidl.core.Tasks.DataLoadingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.DataLoadingConfig 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 flyteidl.core.Tasks.DataLoadingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.DataLoadingConfig 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(flyteidl.core.Tasks.DataLoadingConfig 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; + } + /** + *
+     * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.
+     * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path
+     * Any outputs generated by the user container - within output_path are automatically uploaded.
+     * 
+ * + * Protobuf type {@code flyteidl.core.DataLoadingConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.DataLoadingConfig) + flyteidl.core.Tasks.DataLoadingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.DataLoadingConfig.class, flyteidl.core.Tasks.DataLoadingConfig.Builder.class); + } + + // Construct using flyteidl.core.Tasks.DataLoadingConfig.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(); + enabled_ = false; + + inputPath_ = ""; + + outputPath_ = ""; + + format_ = 0; + + if (ioStrategyBuilder_ == null) { + ioStrategy_ = null; + } else { + ioStrategy_ = null; + ioStrategyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.DataLoadingConfig getDefaultInstanceForType() { + return flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.DataLoadingConfig build() { + flyteidl.core.Tasks.DataLoadingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.DataLoadingConfig buildPartial() { + flyteidl.core.Tasks.DataLoadingConfig result = new flyteidl.core.Tasks.DataLoadingConfig(this); + result.enabled_ = enabled_; + result.inputPath_ = inputPath_; + result.outputPath_ = outputPath_; + result.format_ = format_; + if (ioStrategyBuilder_ == null) { + result.ioStrategy_ = ioStrategy_; + } else { + result.ioStrategy_ = ioStrategyBuilder_.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 flyteidl.core.Tasks.DataLoadingConfig) { + return mergeFrom((flyteidl.core.Tasks.DataLoadingConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.DataLoadingConfig other) { + if (other == flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getInputPath().isEmpty()) { + inputPath_ = other.inputPath_; + onChanged(); + } + if (!other.getOutputPath().isEmpty()) { + outputPath_ = other.outputPath_; + onChanged(); + } + if (other.format_ != 0) { + setFormatValue(other.getFormatValue()); + } + if (other.hasIoStrategy()) { + mergeIoStrategy(other.getIoStrategy()); + } + 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 { + flyteidl.core.Tasks.DataLoadingConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.DataLoadingConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_ ; + /** + *
+       * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
+       * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+       * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
+       * 
+ * + * bool enabled = 1; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+       * Flag enables DataLoading Config. If this is not set, data loading will not be used! 
+       * 
+ * + * bool enabled = 1; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object inputPath_ = ""; + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public java.lang.String getInputPath() { + java.lang.Object ref = inputPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public com.google.protobuf.ByteString + getInputPathBytes() { + java.lang.Object ref = inputPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public Builder setInputPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputPath_ = value; + onChanged(); + return this; + } + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public Builder clearInputPath() { + + inputPath_ = getDefaultInstance().getInputPath(); + onChanged(); + return this; + } + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file. 
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is "/var/flyte/inputs", then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations 
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public Builder setInputPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputPath_ = value; + onChanged(); + return this; + } + + private java.lang.Object outputPath_ = ""; + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public java.lang.String getOutputPath() { + java.lang.Object ref = outputPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public com.google.protobuf.ByteString + getOutputPathBytes() { + java.lang.Object ref = outputPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public Builder setOutputPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputPath_ = value; + onChanged(); + return this; + } + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public Builder clearOutputPath() { + + outputPath_ = getDefaultInstance().getOutputPath(); + onChanged(); + return this; + } + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public Builder setOutputPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputPath_ = value; + onChanged(); + return this; + } + + private int format_ = 0; + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public int getFormatValue() { + return format_; + } + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public Builder setFormatValue(int value) { + format_ = value; + onChanged(); + return this; + } + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat result = flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.valueOf(format_); + return result == null ? flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.UNRECOGNIZED : result; + } + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public Builder setFormat(flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat value) { + if (value == null) { + throw new NullPointerException(); + } + + format_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public Builder clearFormat() { + + format_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.IOStrategy ioStrategy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder> ioStrategyBuilder_; + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public boolean hasIoStrategy() { + return ioStrategyBuilder_ != null || ioStrategy_ != null; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategy getIoStrategy() { + if (ioStrategyBuilder_ == null) { + return ioStrategy_ == null ? flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; + } else { + return ioStrategyBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public Builder setIoStrategy(flyteidl.core.Tasks.IOStrategy value) { + if (ioStrategyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ioStrategy_ = value; + onChanged(); + } else { + ioStrategyBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public Builder setIoStrategy( + flyteidl.core.Tasks.IOStrategy.Builder builderForValue) { + if (ioStrategyBuilder_ == null) { + ioStrategy_ = builderForValue.build(); + onChanged(); + } else { + ioStrategyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public Builder mergeIoStrategy(flyteidl.core.Tasks.IOStrategy value) { + if (ioStrategyBuilder_ == null) { + if (ioStrategy_ != null) { + ioStrategy_ = + flyteidl.core.Tasks.IOStrategy.newBuilder(ioStrategy_).mergeFrom(value).buildPartial(); + } else { + ioStrategy_ = value; + } + onChanged(); + } else { + ioStrategyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public Builder clearIoStrategy() { + if (ioStrategyBuilder_ == null) { + ioStrategy_ = null; + onChanged(); + } else { + ioStrategy_ = null; + ioStrategyBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategy.Builder getIoStrategyBuilder() { + + onChanged(); + return getIoStrategyFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder() { + if (ioStrategyBuilder_ != null) { + return ioStrategyBuilder_.getMessageOrBuilder(); + } else { + return ioStrategy_ == null ? + flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; + } + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder> + getIoStrategyFieldBuilder() { + if (ioStrategyBuilder_ == null) { + ioStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder>( + getIoStrategy(), + getParentForChildren(), + isClean()); + ioStrategy_ = null; + } + return ioStrategyBuilder_; + } + @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:flyteidl.core.DataLoadingConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.DataLoadingConfig) + private static final flyteidl.core.Tasks.DataLoadingConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.DataLoadingConfig(); + } + + public static flyteidl.core.Tasks.DataLoadingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataLoadingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataLoadingConfig(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 flyteidl.core.Tasks.DataLoadingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Resources_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Resources_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_RuntimeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskTemplate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ContainerPort_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ContainerPort_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Container_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Container_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_IOStrategy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_IOStrategy_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_DataLoadingConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_DataLoadingConfig_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\031flyteidl/core/tasks.proto\022\rflyteidl.co" + + "re\032\036flyteidl/core/identifier.proto\032\035flyt" + + "eidl/core/interface.proto\032\034flyteidl/core" + + "/literals.proto\032\036google/protobuf/duratio" + + "n.proto\032\034google/protobuf/struct.proto\"\232\002" + + "\n\tResources\0228\n\010requests\030\001 \003(\0132&.flyteidl" + + ".core.Resources.ResourceEntry\0226\n\006limits\030" + + "\002 \003(\0132&.flyteidl.core.Resources.Resource" + + "Entry\032S\n\rResourceEntry\0223\n\004name\030\001 \001(\0162%.f" + + "lyteidl.core.Resources.ResourceName\022\r\n\005v" + + "alue\030\002 \001(\t\"F\n\014ResourceName\022\013\n\007UNKNOWN\020\000\022" + + "\007\n\003CPU\020\001\022\007\n\003GPU\020\002\022\n\n\006MEMORY\020\003\022\013\n\007STORAGE" + + "\020\004\"\225\001\n\017RuntimeMetadata\0228\n\004type\030\001 \001(\0162*.f" + + "lyteidl.core.RuntimeMetadata.RuntimeType" + + "\022\017\n\007version\030\002 \001(\t\022\016\n\006flavor\030\003 \001(\t\"\'\n\013Run" + + "timeType\022\t\n\005OTHER\020\000\022\r\n\tFLYTE_SDK\020\001\"\235\002\n\014T" + + "askMetadata\022\024\n\014discoverable\030\001 \001(\010\022/\n\007run" + + "time\030\002 \001(\0132\036.flyteidl.core.RuntimeMetada" + + "ta\022*\n\007timeout\030\004 \001(\0132\031.google.protobuf.Du" + + "ration\022-\n\007retries\030\005 \001(\0132\034.flyteidl.core." + + "RetryStrategy\022\031\n\021discovery_version\030\006 \001(\t" + + "\022 \n\030deprecated_error_message\030\007 \001(\t\022\027\n\rin" + + "terruptible\030\010 \001(\010H\000B\025\n\023interruptible_val" + + "ue\"\206\002\n\014TaskTemplate\022%\n\002id\030\001 \001(\0132\031.flytei" + + "dl.core.Identifier\022\014\n\004type\030\002 \001(\t\022-\n\010meta" + + "data\030\003 \001(\0132\033.flyteidl.core.TaskMetadata\022" + + "0\n\tinterface\030\004 \001(\0132\035.flyteidl.core.Typed" + + "Interface\022\'\n\006custom\030\005 \001(\0132\027.google.proto" + + "buf.Struct\022-\n\tcontainer\030\006 \001(\0132\030.flyteidl" + + ".core.ContainerH\000B\010\n\006target\"\'\n\rContainer" + + "Port\022\026\n\016container_port\030\001 \001(\r\"\241\002\n\tContain" + + "er\022\r\n\005image\030\001 \001(\t\022\017\n\007command\030\002 \003(\t\022\014\n\004ar" + + "gs\030\003 \003(\t\022+\n\tresources\030\004 \001(\0132\030.flyteidl.c" + + "ore.Resources\022(\n\003env\030\005 \003(\0132\033.flyteidl.co" + + "re.KeyValuePair\022+\n\006config\030\006 \003(\0132\033.flytei" + + "dl.core.KeyValuePair\022+\n\005ports\030\007 \003(\0132\034.fl" + + "yteidl.core.ContainerPort\0225\n\013data_config" + + "\030\t \001(\0132 .flyteidl.core.DataLoadingConfig" + + "\"\233\002\n\nIOStrategy\022=\n\rdownload_mode\030\001 \001(\0162&" + + ".flyteidl.core.IOStrategy.DownloadMode\0229" + + "\n\013upload_mode\030\002 \001(\0162$.flyteidl.core.IOSt" + + "rategy.UploadMode\"L\n\014DownloadMode\022\022\n\016DOW" + + "NLOAD_EAGER\020\000\022\023\n\017DOWNLOAD_STREAM\020\001\022\023\n\017DO" + + "_NOT_DOWNLOAD\020\002\"E\n\nUploadMode\022\022\n\016UPLOAD_" + + "ON_EXIT\020\000\022\020\n\014UPLOAD_EAGER\020\001\022\021\n\rDO_NOT_UP" + + "LOAD\020\002\"\363\001\n\021DataLoadingConfig\022\017\n\007enabled\030" + + "\001 \001(\010\022\022\n\ninput_path\030\002 \001(\t\022\023\n\013output_path" + + "\030\003 \001(\t\022A\n\006format\030\004 \001(\01621.flyteidl.core.D" + + "ataLoadingConfig.LiteralMapFormat\022.\n\013io_" + + "strategy\030\005 \001(\0132\031.flyteidl.core.IOStrateg" + + "y\"1\n\020LiteralMapFormat\022\010\n\004JSON\020\000\022\010\n\004YAML\020" + + "\001\022\t\n\005PROTO\020\002B2Z0github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_Resources_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Resources_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Resources_descriptor, + new java.lang.String[] { "Requests", "Limits", }); + internal_static_flyteidl_core_Resources_ResourceEntry_descriptor = + internal_static_flyteidl_core_Resources_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Resources_ResourceEntry_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_flyteidl_core_RuntimeMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_RuntimeMetadata_descriptor, + new java.lang.String[] { "Type", "Version", "Flavor", }); + internal_static_flyteidl_core_TaskMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskMetadata_descriptor, + new java.lang.String[] { "Discoverable", "Runtime", "Timeout", "Retries", "DiscoveryVersion", "DeprecatedErrorMessage", "Interruptible", "InterruptibleValue", }); + internal_static_flyteidl_core_TaskTemplate_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskTemplate_descriptor, + new java.lang.String[] { "Id", "Type", "Metadata", "Interface", "Custom", "Container", "Target", }); + internal_static_flyteidl_core_ContainerPort_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_ContainerPort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ContainerPort_descriptor, + new java.lang.String[] { "ContainerPort", }); + internal_static_flyteidl_core_Container_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_Container_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Container_descriptor, + new java.lang.String[] { "Image", "Command", "Args", "Resources", "Env", "Config", "Ports", "DataConfig", }); + internal_static_flyteidl_core_IOStrategy_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_IOStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_IOStrategy_descriptor, + new java.lang.String[] { "DownloadMode", "UploadMode", }); + internal_static_flyteidl_core_DataLoadingConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_DataLoadingConfig_descriptor, + new java.lang.String[] { "Enabled", "InputPath", "OutputPath", "Format", "IoStrategy", }); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Types.java b/gen/pb-java/flyteidl/core/Types.java new file mode 100644 index 000000000..63ed77fdb --- /dev/null +++ b/gen/pb-java/flyteidl/core/Types.java @@ -0,0 +1,6407 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/types.proto + +package flyteidl.core; + +public final class Types { + private Types() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Define a set of simple types.
+   * 
+ * + * Protobuf enum {@code flyteidl.core.SimpleType} + */ + public enum SimpleType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NONE = 0; + */ + NONE(0), + /** + * INTEGER = 1; + */ + INTEGER(1), + /** + * FLOAT = 2; + */ + FLOAT(2), + /** + * STRING = 3; + */ + STRING(3), + /** + * BOOLEAN = 4; + */ + BOOLEAN(4), + /** + * DATETIME = 5; + */ + DATETIME(5), + /** + * DURATION = 6; + */ + DURATION(6), + /** + * BINARY = 7; + */ + BINARY(7), + /** + * ERROR = 8; + */ + ERROR(8), + /** + * STRUCT = 9; + */ + STRUCT(9), + UNRECOGNIZED(-1), + ; + + /** + * NONE = 0; + */ + public static final int NONE_VALUE = 0; + /** + * INTEGER = 1; + */ + public static final int INTEGER_VALUE = 1; + /** + * FLOAT = 2; + */ + public static final int FLOAT_VALUE = 2; + /** + * STRING = 3; + */ + public static final int STRING_VALUE = 3; + /** + * BOOLEAN = 4; + */ + public static final int BOOLEAN_VALUE = 4; + /** + * DATETIME = 5; + */ + public static final int DATETIME_VALUE = 5; + /** + * DURATION = 6; + */ + public static final int DURATION_VALUE = 6; + /** + * BINARY = 7; + */ + public static final int BINARY_VALUE = 7; + /** + * ERROR = 8; + */ + public static final int ERROR_VALUE = 8; + /** + * STRUCT = 9; + */ + public static final int STRUCT_VALUE = 9; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SimpleType valueOf(int value) { + return forNumber(value); + } + + public static SimpleType forNumber(int value) { + switch (value) { + case 0: return NONE; + case 1: return INTEGER; + case 2: return FLOAT; + case 3: return STRING; + case 4: return BOOLEAN; + case 5: return DATETIME; + case 6: return DURATION; + case 7: return BINARY; + case 8: return ERROR; + case 9: return STRUCT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SimpleType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SimpleType findValueByNumber(int number) { + return SimpleType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Types.getDescriptor().getEnumTypes().get(0); + } + + private static final SimpleType[] VALUES = values(); + + public static SimpleType 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 SimpleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.SimpleType) + } + + public interface SchemaTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + java.util.List + getColumnsList(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + int getColumnsCount(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + java.util.List + getColumnsOrBuilderList(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( + int index); + } + /** + *
+   * Defines schema columns and types to strongly type-validate schemas interoperability.
+   * 
+ * + * Protobuf type {@code flyteidl.core.SchemaType} + */ + public static final class SchemaType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType) + SchemaTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use SchemaType.newBuilder() to construct. + private SchemaType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SchemaType() { + columns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SchemaType( + 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 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + columns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + columns_.add( + input.readMessage(flyteidl.core.Types.SchemaType.SchemaColumn.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)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); + } + + public interface SchemaColumnOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType.SchemaColumn) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + int getTypeValue(); + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType(); + } + /** + * Protobuf type {@code flyteidl.core.SchemaType.SchemaColumn} + */ + public static final class SchemaColumn extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType.SchemaColumn) + SchemaColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use SchemaColumn.newBuilder() to construct. + private SchemaColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SchemaColumn() { + name_ = ""; + type_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SchemaColumn( + 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(); + + type_ = rawValue; + 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 flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} + */ + public enum SchemaColumnType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * INTEGER = 0; + */ + INTEGER(0), + /** + * FLOAT = 1; + */ + FLOAT(1), + /** + * STRING = 2; + */ + STRING(2), + /** + * BOOLEAN = 3; + */ + BOOLEAN(3), + /** + * DATETIME = 4; + */ + DATETIME(4), + /** + * DURATION = 5; + */ + DURATION(5), + UNRECOGNIZED(-1), + ; + + /** + * INTEGER = 0; + */ + public static final int INTEGER_VALUE = 0; + /** + * FLOAT = 1; + */ + public static final int FLOAT_VALUE = 1; + /** + * STRING = 2; + */ + public static final int STRING_VALUE = 2; + /** + * BOOLEAN = 3; + */ + public static final int BOOLEAN_VALUE = 3; + /** + * DATETIME = 4; + */ + public static final int DATETIME_VALUE = 4; + /** + * DURATION = 5; + */ + public static final int DURATION_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SchemaColumnType valueOf(int value) { + return forNumber(value); + } + + public static SchemaColumnType forNumber(int value) { + switch (value) { + case 0: return INTEGER; + case 1: return FLOAT; + case 2: return STRING; + case 3: return BOOLEAN; + case 4: return DATETIME; + case 5: return DURATION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SchemaColumnType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SchemaColumnType findValueByNumber(int number) { + return SchemaColumnType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Types.SchemaType.SchemaColumn.getDescriptor().getEnumTypes().get(0); + } + + private static final SchemaColumnType[] VALUES = values(); + + public static SchemaColumnType 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 SchemaColumnType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + 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 TYPE_FIELD_NUMBER = 2; + private int type_; + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); + return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { + output.writeEnum(2, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); + } + 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 flyteidl.core.Types.SchemaType.SchemaColumn)) { + return super.equals(obj); + } + flyteidl.core.Types.SchemaType.SchemaColumn other = (flyteidl.core.Types.SchemaType.SchemaColumn) obj; + + if (!getName() + .equals(other.getName())) return false; + if (type_ != other.type_) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn 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 flyteidl.core.Types.SchemaType.SchemaColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn 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 flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn 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(flyteidl.core.Types.SchemaType.SchemaColumn 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 flyteidl.core.SchemaType.SchemaColumn} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType.SchemaColumn) + flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); + } + + // Construct using flyteidl.core.Types.SchemaType.SchemaColumn.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_ = ""; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { + return flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType.SchemaColumn build() { + flyteidl.core.Types.SchemaType.SchemaColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType.SchemaColumn buildPartial() { + flyteidl.core.Types.SchemaType.SchemaColumn result = new flyteidl.core.Types.SchemaType.SchemaColumn(this); + result.name_ = name_; + result.type_ = type_; + 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 flyteidl.core.Types.SchemaType.SchemaColumn) { + return mergeFrom((flyteidl.core.Types.SchemaType.SchemaColumn)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.SchemaType.SchemaColumn other) { + if (other == flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + 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 { + flyteidl.core.Types.SchemaType.SchemaColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.SchemaType.SchemaColumn) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); + return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public Builder setType(flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public Builder clearType() { + + type_ = 0; + 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:flyteidl.core.SchemaType.SchemaColumn) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType.SchemaColumn) + private static final flyteidl.core.Types.SchemaType.SchemaColumn DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType.SchemaColumn(); + } + + public static flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SchemaColumn(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 flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int COLUMNS_FIELD_NUMBER = 3; + private java.util.List columns_; + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List getColumnsList() { + return columns_; + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List + getColumnsOrBuilderList() { + return columns_; + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public int getColumnsCount() { + return columns_.size(); + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { + return columns_.get(index); + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( + int index) { + return columns_.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 < columns_.size(); i++) { + output.writeMessage(3, columns_.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 < columns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, columns_.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 flyteidl.core.Types.SchemaType)) { + return super.equals(obj); + } + flyteidl.core.Types.SchemaType other = (flyteidl.core.Types.SchemaType) obj; + + if (!getColumnsList() + .equals(other.getColumnsList())) 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 (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.SchemaType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType 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 flyteidl.core.Types.SchemaType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType 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 flyteidl.core.Types.SchemaType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType 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(flyteidl.core.Types.SchemaType 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; + } + /** + *
+     * Defines schema columns and types to strongly type-validate schemas interoperability.
+     * 
+ * + * Protobuf type {@code flyteidl.core.SchemaType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType) + flyteidl.core.Types.SchemaTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); + } + + // Construct using flyteidl.core.Types.SchemaType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getColumnsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + columnsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType getDefaultInstanceForType() { + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType build() { + flyteidl.core.Types.SchemaType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType buildPartial() { + flyteidl.core.Types.SchemaType result = new flyteidl.core.Types.SchemaType(this); + int from_bitField0_ = bitField0_; + if (columnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columns_ = columns_; + } else { + result.columns_ = columnsBuilder_.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 flyteidl.core.Types.SchemaType) { + return mergeFrom((flyteidl.core.Types.SchemaType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.SchemaType other) { + if (other == flyteidl.core.Types.SchemaType.getDefaultInstance()) return this; + if (columnsBuilder_ == null) { + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + } else { + if (!other.columns_.isEmpty()) { + if (columnsBuilder_.isEmpty()) { + columnsBuilder_.dispose(); + columnsBuilder_ = null; + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + columnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColumnsFieldBuilder() : null; + } else { + columnsBuilder_.addAllMessages(other.columns_); + } + } + } + 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 { + flyteidl.core.Types.SchemaType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.SchemaType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List columns_ = + java.util.Collections.emptyList(); + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columns_ = new java.util.ArrayList(columns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> columnsBuilder_; + + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List getColumnsList() { + if (columnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columns_); + } else { + return columnsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public int getColumnsCount() { + if (columnsBuilder_ == null) { + return columns_.size(); + } else { + return columnsBuilder_.getCount(); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder setColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + onChanged(); + } else { + columnsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder setColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.set(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns(flyteidl.core.Types.SchemaType.SchemaColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + } else { + columnsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(index, value); + onChanged(); + } else { + columnsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns( + flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addAllColumns( + java.lang.Iterable values) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columns_); + onChanged(); + } else { + columnsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder clearColumns() { + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + columnsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder removeColumns(int index) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.remove(index); + onChanged(); + } else { + columnsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.Builder getColumnsBuilder( + int index) { + return getColumnsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( + int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); } else { + return columnsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List + getColumnsOrBuilderList() { + if (columnsBuilder_ != null) { + return columnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columns_); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder() { + return getColumnsFieldBuilder().addBuilder( + flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder( + int index) { + return getColumnsFieldBuilder().addBuilder( + index, flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List + getColumnsBuilderList() { + return getColumnsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> + getColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder>( + columns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + columns_ = null; + } + return columnsBuilder_; + } + @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:flyteidl.core.SchemaType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType) + private static final flyteidl.core.Types.SchemaType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType(); + } + + public static flyteidl.core.Types.SchemaType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SchemaType(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 flyteidl.core.Types.SchemaType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlobTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + java.lang.String getFormat(); + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + com.google.protobuf.ByteString + getFormatBytes(); + + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + int getDimensionalityValue(); + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality(); + } + /** + *
+   * Defines type behavior for blob objects
+   * 
+ * + * Protobuf type {@code flyteidl.core.BlobType} + */ + public static final class BlobType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BlobType) + BlobTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use BlobType.newBuilder() to construct. + private BlobType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlobType() { + format_ = ""; + dimensionality_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BlobType( + 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(); + + format_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + dimensionality_ = rawValue; + 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 flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.BlobType.BlobDimensionality} + */ + public enum BlobDimensionality + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SINGLE = 0; + */ + SINGLE(0), + /** + * MULTIPART = 1; + */ + MULTIPART(1), + UNRECOGNIZED(-1), + ; + + /** + * SINGLE = 0; + */ + public static final int SINGLE_VALUE = 0; + /** + * MULTIPART = 1; + */ + public static final int MULTIPART_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BlobDimensionality valueOf(int value) { + return forNumber(value); + } + + public static BlobDimensionality forNumber(int value) { + switch (value) { + case 0: return SINGLE; + case 1: return MULTIPART; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + BlobDimensionality> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlobDimensionality findValueByNumber(int number) { + return BlobDimensionality.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Types.BlobType.getDescriptor().getEnumTypes().get(0); + } + + private static final BlobDimensionality[] VALUES = values(); + + public static BlobDimensionality 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 BlobDimensionality(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.BlobType.BlobDimensionality) + } + + public static final int FORMAT_FIELD_NUMBER = 1; + private volatile java.lang.Object format_; + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + public java.lang.String getFormat() { + java.lang.Object ref = format_; + 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(); + format_ = s; + return s; + } + } + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + public com.google.protobuf.ByteString + getFormatBytes() { + java.lang.Object ref = format_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + format_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIMENSIONALITY_FIELD_NUMBER = 2; + private int dimensionality_; + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public int getDimensionalityValue() { + return dimensionality_; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { + @SuppressWarnings("deprecation") + flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); + return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; + } + + 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 (!getFormatBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, format_); + } + if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { + output.writeEnum(2, dimensionality_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFormatBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, format_); + } + if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, dimensionality_); + } + 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 flyteidl.core.Types.BlobType)) { + return super.equals(obj); + } + flyteidl.core.Types.BlobType other = (flyteidl.core.Types.BlobType) obj; + + if (!getFormat() + .equals(other.getFormat())) return false; + if (dimensionality_ != other.dimensionality_) 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) + FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getFormat().hashCode(); + hash = (37 * hash) + DIMENSIONALITY_FIELD_NUMBER; + hash = (53 * hash) + dimensionality_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.BlobType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.BlobType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.BlobType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.BlobType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.BlobType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.BlobType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.BlobType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.BlobType 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 flyteidl.core.Types.BlobType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.BlobType 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 flyteidl.core.Types.BlobType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.BlobType 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(flyteidl.core.Types.BlobType 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; + } + /** + *
+     * Defines type behavior for blob objects
+     * 
+ * + * Protobuf type {@code flyteidl.core.BlobType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobType) + flyteidl.core.Types.BlobTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); + } + + // Construct using flyteidl.core.Types.BlobType.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(); + format_ = ""; + + dimensionality_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.BlobType getDefaultInstanceForType() { + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.BlobType build() { + flyteidl.core.Types.BlobType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.BlobType buildPartial() { + flyteidl.core.Types.BlobType result = new flyteidl.core.Types.BlobType(this); + result.format_ = format_; + result.dimensionality_ = dimensionality_; + 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 flyteidl.core.Types.BlobType) { + return mergeFrom((flyteidl.core.Types.BlobType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.BlobType other) { + if (other == flyteidl.core.Types.BlobType.getDefaultInstance()) return this; + if (!other.getFormat().isEmpty()) { + format_ = other.format_; + onChanged(); + } + if (other.dimensionality_ != 0) { + setDimensionalityValue(other.getDimensionalityValue()); + } + 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 { + flyteidl.core.Types.BlobType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.BlobType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object format_ = ""; + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public java.lang.String getFormat() { + java.lang.Object ref = format_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + format_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public com.google.protobuf.ByteString + getFormatBytes() { + java.lang.Object ref = format_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + format_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public Builder setFormat( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + format_ = value; + onChanged(); + return this; + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public Builder clearFormat() { + + format_ = getDefaultInstance().getFormat(); + onChanged(); + return this; + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public Builder setFormatBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + format_ = value; + onChanged(); + return this; + } + + private int dimensionality_ = 0; + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public int getDimensionalityValue() { + return dimensionality_; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public Builder setDimensionalityValue(int value) { + dimensionality_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { + @SuppressWarnings("deprecation") + flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); + return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public Builder setDimensionality(flyteidl.core.Types.BlobType.BlobDimensionality value) { + if (value == null) { + throw new NullPointerException(); + } + + dimensionality_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public Builder clearDimensionality() { + + dimensionality_ = 0; + 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:flyteidl.core.BlobType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BlobType) + private static final flyteidl.core.Types.BlobType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.BlobType(); + } + + public static flyteidl.core.Types.BlobType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlobType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlobType(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 flyteidl.core.Types.BlobType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + int getSimpleValue(); + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + flyteidl.core.Types.SimpleType getSimple(); + + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + boolean hasSchema(); + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + flyteidl.core.Types.SchemaType getSchema(); + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder(); + + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + boolean hasCollectionType(); + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + flyteidl.core.Types.LiteralType getCollectionType(); + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder(); + + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + boolean hasMapValueType(); + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + flyteidl.core.Types.LiteralType getMapValueType(); + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder(); + + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + boolean hasBlob(); + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + flyteidl.core.Types.BlobType getBlob(); + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder(); + + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + boolean hasMetadata(); + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + com.google.protobuf.Struct getMetadata(); + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + + public flyteidl.core.Types.LiteralType.TypeCase getTypeCase(); + } + /** + *
+   * Defines a strong type to allow type checking between interfaces.
+   * 
+ * + * Protobuf type {@code flyteidl.core.LiteralType} + */ + public static final class LiteralType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralType) + LiteralTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralType.newBuilder() to construct. + private LiteralType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralType() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralType( + 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 8: { + int rawValue = input.readEnum(); + typeCase_ = 1; + type_ = rawValue; + break; + } + case 18: { + flyteidl.core.Types.SchemaType.Builder subBuilder = null; + if (typeCase_ == 2) { + subBuilder = ((flyteidl.core.Types.SchemaType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.SchemaType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 2; + break; + } + case 26: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (typeCase_ == 3) { + subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 3; + break; + } + case 34: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 4; + break; + } + case 42: { + flyteidl.core.Types.BlobType.Builder subBuilder = null; + if (typeCase_ == 5) { + subBuilder = ((flyteidl.core.Types.BlobType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.BlobType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 5; + break; + } + case 50: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = 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 flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); + } + + private int typeCase_ = 0; + private java.lang.Object type_; + public enum TypeCase + implements com.google.protobuf.Internal.EnumLite { + SIMPLE(1), + SCHEMA(2), + COLLECTION_TYPE(3), + MAP_VALUE_TYPE(4), + BLOB(5), + TYPE_NOT_SET(0); + private final int value; + private TypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 1: return SIMPLE; + case 2: return SCHEMA; + case 3: return COLLECTION_TYPE; + case 4: return MAP_VALUE_TYPE; + case 5: return BLOB; + case 0: return TYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public static final int SIMPLE_FIELD_NUMBER = 1; + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public int getSimpleValue() { + if (typeCase_ == 1) { + return (java.lang.Integer) type_; + } + return 0; + } + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public flyteidl.core.Types.SimpleType getSimple() { + if (typeCase_ == 1) { + @SuppressWarnings("deprecation") + flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( + (java.lang.Integer) type_); + return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; + } + return flyteidl.core.Types.SimpleType.NONE; + } + + public static final int SCHEMA_FIELD_NUMBER = 2; + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public boolean hasSchema() { + return typeCase_ == 2; + } + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaType getSchema() { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + + public static final int COLLECTION_TYPE_FIELD_NUMBER = 3; + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public boolean hasCollectionType() { + return typeCase_ == 3; + } + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralType getCollectionType() { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + + public static final int MAP_VALUE_TYPE_FIELD_NUMBER = 4; + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public boolean hasMapValueType() { + return typeCase_ == 4; + } + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralType getMapValueType() { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + + public static final int BLOB_FIELD_NUMBER = 5; + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public boolean hasBlob() { + return typeCase_ == 5; + } + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobType getBlob() { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + + public static final int METADATA_FIELD_NUMBER = 6; + private com.google.protobuf.Struct metadata_; + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + 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 (typeCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) type_)); + } + if (typeCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Types.SchemaType) type_); + } + if (typeCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 5) { + output.writeMessage(5, (flyteidl.core.Types.BlobType) type_); + } + if (metadata_ != null) { + output.writeMessage(6, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, ((java.lang.Integer) type_)); + } + if (typeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Types.SchemaType) type_); + } + if (typeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.core.Types.BlobType) type_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getMetadata()); + } + 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 flyteidl.core.Types.LiteralType)) { + return super.equals(obj); + } + flyteidl.core.Types.LiteralType other = (flyteidl.core.Types.LiteralType) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 1: + if (getSimpleValue() + != other.getSimpleValue()) return false; + break; + case 2: + if (!getSchema() + .equals(other.getSchema())) return false; + break; + case 3: + if (!getCollectionType() + .equals(other.getCollectionType())) return false; + break; + case 4: + if (!getMapValueType() + .equals(other.getMapValueType())) return false; + break; + case 5: + if (!getBlob() + .equals(other.getBlob())) 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(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + switch (typeCase_) { + case 1: + hash = (37 * hash) + SIMPLE_FIELD_NUMBER; + hash = (53 * hash) + getSimpleValue(); + break; + case 2: + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + break; + case 3: + hash = (37 * hash) + COLLECTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getCollectionType().hashCode(); + break; + case 4: + hash = (37 * hash) + MAP_VALUE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMapValueType().hashCode(); + break; + case 5: + hash = (37 * hash) + BLOB_FIELD_NUMBER; + hash = (53 * hash) + getBlob().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.LiteralType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.LiteralType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.LiteralType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.LiteralType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.LiteralType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.LiteralType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.LiteralType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.LiteralType 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 flyteidl.core.Types.LiteralType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.LiteralType 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 flyteidl.core.Types.LiteralType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.LiteralType 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(flyteidl.core.Types.LiteralType 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; + } + /** + *
+     * Defines a strong type to allow type checking between interfaces.
+     * 
+ * + * Protobuf type {@code flyteidl.core.LiteralType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralType) + flyteidl.core.Types.LiteralTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); + } + + // Construct using flyteidl.core.Types.LiteralType.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 (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.LiteralType getDefaultInstanceForType() { + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.LiteralType build() { + flyteidl.core.Types.LiteralType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.LiteralType buildPartial() { + flyteidl.core.Types.LiteralType result = new flyteidl.core.Types.LiteralType(this); + if (typeCase_ == 1) { + result.type_ = type_; + } + if (typeCase_ == 2) { + if (schemaBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = schemaBuilder_.build(); + } + } + if (typeCase_ == 3) { + if (collectionTypeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = collectionTypeBuilder_.build(); + } + } + if (typeCase_ == 4) { + if (mapValueTypeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = mapValueTypeBuilder_.build(); + } + } + if (typeCase_ == 5) { + if (blobBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = blobBuilder_.build(); + } + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.typeCase_ = typeCase_; + 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 flyteidl.core.Types.LiteralType) { + return mergeFrom((flyteidl.core.Types.LiteralType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.LiteralType other) { + if (other == flyteidl.core.Types.LiteralType.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + switch (other.getTypeCase()) { + case SIMPLE: { + setSimpleValue(other.getSimpleValue()); + break; + } + case SCHEMA: { + mergeSchema(other.getSchema()); + break; + } + case COLLECTION_TYPE: { + mergeCollectionType(other.getCollectionType()); + break; + } + case MAP_VALUE_TYPE: { + mergeMapValueType(other.getMapValueType()); + break; + } + case BLOB: { + mergeBlob(other.getBlob()); + break; + } + case TYPE_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 { + flyteidl.core.Types.LiteralType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.LiteralType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int typeCase_ = 0; + private java.lang.Object type_; + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public int getSimpleValue() { + if (typeCase_ == 1) { + return ((java.lang.Integer) type_).intValue(); + } + return 0; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public Builder setSimpleValue(int value) { + typeCase_ = 1; + type_ = value; + onChanged(); + return this; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public flyteidl.core.Types.SimpleType getSimple() { + if (typeCase_ == 1) { + @SuppressWarnings("deprecation") + flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( + (java.lang.Integer) type_); + return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; + } + return flyteidl.core.Types.SimpleType.NONE; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public Builder setSimple(flyteidl.core.Types.SimpleType value) { + if (value == null) { + throw new NullPointerException(); + } + typeCase_ = 1; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public Builder clearSimple() { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> schemaBuilder_; + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public boolean hasSchema() { + return typeCase_ == 2; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaType getSchema() { + if (schemaBuilder_ == null) { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return schemaBuilder_.getMessage(); + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder setSchema(flyteidl.core.Types.SchemaType value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder setSchema( + flyteidl.core.Types.SchemaType.Builder builderForValue) { + if (schemaBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder mergeSchema(flyteidl.core.Types.SchemaType value) { + if (schemaBuilder_ == null) { + if (typeCase_ == 2 && + type_ != flyteidl.core.Types.SchemaType.getDefaultInstance()) { + type_ = flyteidl.core.Types.SchemaType.newBuilder((flyteidl.core.Types.SchemaType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + schemaBuilder_.mergeFrom(value); + } + schemaBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + schemaBuilder_.clear(); + } + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaType.Builder getSchemaBuilder() { + return getSchemaFieldBuilder().getBuilder(); + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { + if ((typeCase_ == 2) && (schemaBuilder_ != null)) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( + (flyteidl.core.Types.SchemaType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged();; + return schemaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> collectionTypeBuilder_; + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public boolean hasCollectionType() { + return typeCase_ == 3; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralType getCollectionType() { + if (collectionTypeBuilder_ == null) { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } else { + if (typeCase_ == 3) { + return collectionTypeBuilder_.getMessage(); + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder setCollectionType(flyteidl.core.Types.LiteralType value) { + if (collectionTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + collectionTypeBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder setCollectionType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (collectionTypeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + collectionTypeBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 3; + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder mergeCollectionType(flyteidl.core.Types.LiteralType value) { + if (collectionTypeBuilder_ == null) { + if (typeCase_ == 3 && + type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { + type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 3) { + collectionTypeBuilder_.mergeFrom(value); + } + collectionTypeBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder clearCollectionType() { + if (collectionTypeBuilder_ == null) { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + } + collectionTypeBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralType.Builder getCollectionTypeBuilder() { + return getCollectionTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { + if ((typeCase_ == 3) && (collectionTypeBuilder_ != null)) { + return collectionTypeBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getCollectionTypeFieldBuilder() { + if (collectionTypeBuilder_ == null) { + if (!(typeCase_ == 3)) { + type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + collectionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + (flyteidl.core.Types.LiteralType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 3; + onChanged();; + return collectionTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> mapValueTypeBuilder_; + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public boolean hasMapValueType() { + return typeCase_ == 4; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralType getMapValueType() { + if (mapValueTypeBuilder_ == null) { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } else { + if (typeCase_ == 4) { + return mapValueTypeBuilder_.getMessage(); + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder setMapValueType(flyteidl.core.Types.LiteralType value) { + if (mapValueTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + mapValueTypeBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder setMapValueType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (mapValueTypeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + mapValueTypeBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 4; + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder mergeMapValueType(flyteidl.core.Types.LiteralType value) { + if (mapValueTypeBuilder_ == null) { + if (typeCase_ == 4 && + type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { + type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 4) { + mapValueTypeBuilder_.mergeFrom(value); + } + mapValueTypeBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder clearMapValueType() { + if (mapValueTypeBuilder_ == null) { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + } + mapValueTypeBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralType.Builder getMapValueTypeBuilder() { + return getMapValueTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { + if ((typeCase_ == 4) && (mapValueTypeBuilder_ != null)) { + return mapValueTypeBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getMapValueTypeFieldBuilder() { + if (mapValueTypeBuilder_ == null) { + if (!(typeCase_ == 4)) { + type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + mapValueTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + (flyteidl.core.Types.LiteralType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 4; + onChanged();; + return mapValueTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> blobBuilder_; + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public boolean hasBlob() { + return typeCase_ == 5; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobType getBlob() { + if (blobBuilder_ == null) { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } else { + if (typeCase_ == 5) { + return blobBuilder_.getMessage(); + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder setBlob(flyteidl.core.Types.BlobType value) { + if (blobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + blobBuilder_.setMessage(value); + } + typeCase_ = 5; + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder setBlob( + flyteidl.core.Types.BlobType.Builder builderForValue) { + if (blobBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + blobBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 5; + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder mergeBlob(flyteidl.core.Types.BlobType value) { + if (blobBuilder_ == null) { + if (typeCase_ == 5 && + type_ != flyteidl.core.Types.BlobType.getDefaultInstance()) { + type_ = flyteidl.core.Types.BlobType.newBuilder((flyteidl.core.Types.BlobType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 5) { + blobBuilder_.mergeFrom(value); + } + blobBuilder_.setMessage(value); + } + typeCase_ = 5; + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder clearBlob() { + if (blobBuilder_ == null) { + if (typeCase_ == 5) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 5) { + typeCase_ = 0; + type_ = null; + } + blobBuilder_.clear(); + } + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobType.Builder getBlobBuilder() { + return getBlobFieldBuilder().getBuilder(); + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { + if ((typeCase_ == 5) && (blobBuilder_ != null)) { + return blobBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> + getBlobFieldBuilder() { + if (blobBuilder_ == null) { + if (!(typeCase_ == 5)) { + type_ = flyteidl.core.Types.BlobType.getDefaultInstance(); + } + blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( + (flyteidl.core.Types.BlobType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 5; + onChanged();; + return blobBuilder_; + } + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_; + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder setMetadata( + com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @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:flyteidl.core.LiteralType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralType) + private static final flyteidl.core.Types.LiteralType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.LiteralType(); + } + + public static flyteidl.core.Types.LiteralType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiteralType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralType(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 flyteidl.core.Types.LiteralType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OutputReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.OutputReference) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + java.lang.String getNodeId(); + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + com.google.protobuf.ByteString + getNodeIdBytes(); + + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + java.lang.String getVar(); + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + com.google.protobuf.ByteString + getVarBytes(); + } + /** + *
+   * A reference to an output produced by a node. The type can be retrieved -and validated- from
+   * the underlying interface of the node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.OutputReference} + */ + public static final class OutputReference extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.OutputReference) + OutputReferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use OutputReference.newBuilder() to construct. + private OutputReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OutputReference() { + nodeId_ = ""; + var_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OutputReference( + 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(); + + nodeId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + var_ = 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 flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object nodeId_; + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + 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(); + nodeId_ = s; + return s; + } + } + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VAR_FIELD_NUMBER = 2; + private volatile java.lang.Object var_; + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + 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(); + var_ = s; + return s; + } + } + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = 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 (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); + } + if (!getVarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, var_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); + } + if (!getVarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, var_); + } + 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 flyteidl.core.Types.OutputReference)) { + return super.equals(obj); + } + flyteidl.core.Types.OutputReference other = (flyteidl.core.Types.OutputReference) obj; + + if (!getNodeId() + .equals(other.getNodeId())) return false; + if (!getVar() + .equals(other.getVar())) 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) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.OutputReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.OutputReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.OutputReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.OutputReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.OutputReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.OutputReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.OutputReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.OutputReference 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 flyteidl.core.Types.OutputReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.OutputReference 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 flyteidl.core.Types.OutputReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.OutputReference 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(flyteidl.core.Types.OutputReference 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 reference to an output produced by a node. The type can be retrieved -and validated- from
+     * the underlying interface of the node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.OutputReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.OutputReference) + flyteidl.core.Types.OutputReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); + } + + // Construct using flyteidl.core.Types.OutputReference.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(); + nodeId_ = ""; + + var_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.OutputReference getDefaultInstanceForType() { + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.OutputReference build() { + flyteidl.core.Types.OutputReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.OutputReference buildPartial() { + flyteidl.core.Types.OutputReference result = new flyteidl.core.Types.OutputReference(this); + result.nodeId_ = nodeId_; + result.var_ = var_; + 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 flyteidl.core.Types.OutputReference) { + return mergeFrom((flyteidl.core.Types.OutputReference)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.OutputReference other) { + if (other == flyteidl.core.Types.OutputReference.getDefaultInstance()) return this; + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); + } + if (!other.getVar().isEmpty()) { + var_ = other.var_; + 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 { + flyteidl.core.Types.OutputReference parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.OutputReference) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object nodeId_ = ""; + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public Builder setNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); + return this; + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public Builder clearNodeId() { + + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); + return this; + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeId_ = value; + onChanged(); + return this; + } + + private java.lang.Object var_ = ""; + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + var_ = value; + onChanged(); + return this; + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public Builder clearVar() { + + var_ = getDefaultInstance().getVar(); + onChanged(); + return this; + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + var_ = 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:flyteidl.core.OutputReference) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.OutputReference) + private static final flyteidl.core.Types.OutputReference DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.OutputReference(); + } + + public static flyteidl.core.Types.OutputReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputReference(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 flyteidl.core.Types.OutputReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Error) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + java.lang.String getFailedNodeId(); + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + com.google.protobuf.ByteString + getFailedNodeIdBytes(); + + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + *
+   * Represents an error thrown from a node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Error} + */ + public static final class Error extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Error) + ErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use Error.newBuilder() to construct. + private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Error() { + failedNodeId_ = ""; + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Error( + 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(); + + failedNodeId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = 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 flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); + } + + public static final int FAILED_NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object failedNodeId_; + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + public java.lang.String getFailedNodeId() { + java.lang.Object ref = failedNodeId_; + 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(); + failedNodeId_ = s; + return s; + } + } + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + public com.google.protobuf.ByteString + getFailedNodeIdBytes() { + java.lang.Object ref = failedNodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failedNodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = 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 (!getFailedNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, failedNodeId_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFailedNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, failedNodeId_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + 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 flyteidl.core.Types.Error)) { + return super.equals(obj); + } + flyteidl.core.Types.Error other = (flyteidl.core.Types.Error) obj; + + if (!getFailedNodeId() + .equals(other.getFailedNodeId())) return false; + if (!getMessage() + .equals(other.getMessage())) 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) + FAILED_NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getFailedNodeId().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.Error parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.Error parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.Error parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.Error parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.Error parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.Error parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.Error parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.Error 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 flyteidl.core.Types.Error parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.Error 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 flyteidl.core.Types.Error parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.Error 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(flyteidl.core.Types.Error 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; + } + /** + *
+     * Represents an error thrown from a node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Error} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Error) + flyteidl.core.Types.ErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); + } + + // Construct using flyteidl.core.Types.Error.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(); + failedNodeId_ = ""; + + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.Error getDefaultInstanceForType() { + return flyteidl.core.Types.Error.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.Error build() { + flyteidl.core.Types.Error result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.Error buildPartial() { + flyteidl.core.Types.Error result = new flyteidl.core.Types.Error(this); + result.failedNodeId_ = failedNodeId_; + result.message_ = message_; + 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 flyteidl.core.Types.Error) { + return mergeFrom((flyteidl.core.Types.Error)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.Error other) { + if (other == flyteidl.core.Types.Error.getDefaultInstance()) return this; + if (!other.getFailedNodeId().isEmpty()) { + failedNodeId_ = other.failedNodeId_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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 { + flyteidl.core.Types.Error parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.Error) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object failedNodeId_ = ""; + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public java.lang.String getFailedNodeId() { + java.lang.Object ref = failedNodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failedNodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public com.google.protobuf.ByteString + getFailedNodeIdBytes() { + java.lang.Object ref = failedNodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failedNodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public Builder setFailedNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + failedNodeId_ = value; + onChanged(); + return this; + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public Builder clearFailedNodeId() { + + failedNodeId_ = getDefaultInstance().getFailedNodeId(); + onChanged(); + return this; + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public Builder setFailedNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + failedNodeId_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = 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:flyteidl.core.Error) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Error) + private static final flyteidl.core.Types.Error DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.Error(); + } + + public static flyteidl.core.Types.Error getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Error(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 flyteidl.core.Types.Error getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_SchemaType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_SchemaType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BlobType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BlobType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_OutputReference_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_OutputReference_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Error_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Error_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\031flyteidl/core/types.proto\022\rflyteidl.co" + + "re\032\034google/protobuf/struct.proto\"\214\002\n\nSch" + + "emaType\0227\n\007columns\030\003 \003(\0132&.flyteidl.core" + + ".SchemaType.SchemaColumn\032\304\001\n\014SchemaColum" + + "n\022\014\n\004name\030\001 \001(\t\022E\n\004type\030\002 \001(\01627.flyteidl" + + ".core.SchemaType.SchemaColumn.SchemaColu" + + "mnType\"_\n\020SchemaColumnType\022\013\n\007INTEGER\020\000\022" + + "\t\n\005FLOAT\020\001\022\n\n\006STRING\020\002\022\013\n\007BOOLEAN\020\003\022\014\n\010D" + + "ATETIME\020\004\022\014\n\010DURATION\020\005\"\217\001\n\010BlobType\022\016\n\006" + + "format\030\001 \001(\t\022B\n\016dimensionality\030\002 \001(\0162*.f" + + "lyteidl.core.BlobType.BlobDimensionality" + + "\"/\n\022BlobDimensionality\022\n\n\006SINGLE\020\000\022\r\n\tMU" + + "LTIPART\020\001\"\260\002\n\013LiteralType\022+\n\006simple\030\001 \001(" + + "\0162\031.flyteidl.core.SimpleTypeH\000\022+\n\006schema" + + "\030\002 \001(\0132\031.flyteidl.core.SchemaTypeH\000\0225\n\017c" + + "ollection_type\030\003 \001(\0132\032.flyteidl.core.Lit" + + "eralTypeH\000\0224\n\016map_value_type\030\004 \001(\0132\032.fly" + + "teidl.core.LiteralTypeH\000\022\'\n\004blob\030\005 \001(\0132\027" + + ".flyteidl.core.BlobTypeH\000\022)\n\010metadata\030\006 " + + "\001(\0132\027.google.protobuf.StructB\006\n\004type\"/\n\017" + + "OutputReference\022\017\n\007node_id\030\001 \001(\t\022\013\n\003var\030" + + "\002 \001(\t\"0\n\005Error\022\026\n\016failed_node_id\030\001 \001(\t\022\017" + + "\n\007message\030\002 \001(\t*\206\001\n\nSimpleType\022\010\n\004NONE\020\000" + + "\022\013\n\007INTEGER\020\001\022\t\n\005FLOAT\020\002\022\n\n\006STRING\020\003\022\013\n\007" + + "BOOLEAN\020\004\022\014\n\010DATETIME\020\005\022\014\n\010DURATION\020\006\022\n\n" + + "\006BINARY\020\007\022\t\n\005ERROR\020\010\022\n\n\006STRUCT\020\tB2Z0gith" + + "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" + + "coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_SchemaType_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_SchemaType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_SchemaType_descriptor, + new java.lang.String[] { "Columns", }); + internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor = + internal_static_flyteidl_core_SchemaType_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor, + new java.lang.String[] { "Name", "Type", }); + internal_static_flyteidl_core_BlobType_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_BlobType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BlobType_descriptor, + new java.lang.String[] { "Format", "Dimensionality", }); + internal_static_flyteidl_core_LiteralType_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_LiteralType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralType_descriptor, + new java.lang.String[] { "Simple", "Schema", "CollectionType", "MapValueType", "Blob", "Metadata", "Type", }); + internal_static_flyteidl_core_OutputReference_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_OutputReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_OutputReference_descriptor, + new java.lang.String[] { "NodeId", "Var", }); + internal_static_flyteidl_core_Error_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_Error_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Error_descriptor, + new java.lang.String[] { "FailedNodeId", "Message", }); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/Workflow.java b/gen/pb-java/flyteidl/core/Workflow.java new file mode 100644 index 000000000..e0eed4bcd --- /dev/null +++ b/gen/pb-java/flyteidl/core/Workflow.java @@ -0,0 +1,14708 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow.proto + +package flyteidl.core; + +public final class Workflow { + private Workflow() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface IfBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.IfBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + boolean hasCondition(); + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + flyteidl.core.Condition.BooleanExpression getCondition(); + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder(); + + /** + * .flyteidl.core.Node then_node = 2; + */ + boolean hasThenNode(); + /** + * .flyteidl.core.Node then_node = 2; + */ + flyteidl.core.Workflow.Node getThenNode(); + /** + * .flyteidl.core.Node then_node = 2; + */ + flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder(); + } + /** + *
+   * Defines a condition and the execution unit that should be executed if the condition is satisfied.
+   * 
+ * + * Protobuf type {@code flyteidl.core.IfBlock} + */ + public static final class IfBlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.IfBlock) + IfBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use IfBlock.newBuilder() to construct. + private IfBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IfBlock() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IfBlock( + 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: { + flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; + if (condition_ != null) { + subBuilder = condition_.toBuilder(); + } + condition_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(condition_); + condition_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Workflow.Node.Builder subBuilder = null; + if (thenNode_ != null) { + subBuilder = thenNode_.toBuilder(); + } + thenNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(thenNode_); + thenNode_ = 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 flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); + } + + public static final int CONDITION_FIELD_NUMBER = 1; + private flyteidl.core.Condition.BooleanExpression condition_; + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public boolean hasCondition() { + return condition_ != null; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpression getCondition() { + return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { + return getCondition(); + } + + public static final int THEN_NODE_FIELD_NUMBER = 2; + private flyteidl.core.Workflow.Node thenNode_; + /** + * .flyteidl.core.Node then_node = 2; + */ + public boolean hasThenNode() { + return thenNode_ != null; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.Node getThenNode() { + return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { + return getThenNode(); + } + + 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 (thenNode_ != null) { + output.writeMessage(2, getThenNode()); + } + 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 (thenNode_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getThenNode()); + } + 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 flyteidl.core.Workflow.IfBlock)) { + return super.equals(obj); + } + flyteidl.core.Workflow.IfBlock other = (flyteidl.core.Workflow.IfBlock) obj; + + if (hasCondition() != other.hasCondition()) return false; + if (hasCondition()) { + if (!getCondition() + .equals(other.getCondition())) return false; + } + if (hasThenNode() != other.hasThenNode()) return false; + if (hasThenNode()) { + if (!getThenNode() + .equals(other.getThenNode())) 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 (hasThenNode()) { + hash = (37 * hash) + THEN_NODE_FIELD_NUMBER; + hash = (53 * hash) + getThenNode().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.IfBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfBlock 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 flyteidl.core.Workflow.IfBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfBlock 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 flyteidl.core.Workflow.IfBlock parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfBlock 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(flyteidl.core.Workflow.IfBlock 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; + } + /** + *
+     * Defines a condition and the execution unit that should be executed if the condition is satisfied.
+     * 
+ * + * Protobuf type {@code flyteidl.core.IfBlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.IfBlock) + flyteidl.core.Workflow.IfBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); + } + + // Construct using flyteidl.core.Workflow.IfBlock.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 (thenNodeBuilder_ == null) { + thenNode_ = null; + } else { + thenNode_ = null; + thenNodeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfBlock getDefaultInstanceForType() { + return flyteidl.core.Workflow.IfBlock.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.IfBlock build() { + flyteidl.core.Workflow.IfBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfBlock buildPartial() { + flyteidl.core.Workflow.IfBlock result = new flyteidl.core.Workflow.IfBlock(this); + if (conditionBuilder_ == null) { + result.condition_ = condition_; + } else { + result.condition_ = conditionBuilder_.build(); + } + if (thenNodeBuilder_ == null) { + result.thenNode_ = thenNode_; + } else { + result.thenNode_ = thenNodeBuilder_.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 flyteidl.core.Workflow.IfBlock) { + return mergeFrom((flyteidl.core.Workflow.IfBlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.IfBlock other) { + if (other == flyteidl.core.Workflow.IfBlock.getDefaultInstance()) return this; + if (other.hasCondition()) { + mergeCondition(other.getCondition()); + } + if (other.hasThenNode()) { + mergeThenNode(other.getThenNode()); + } + 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 { + flyteidl.core.Workflow.IfBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.IfBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Condition.BooleanExpression condition_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> conditionBuilder_; + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public boolean hasCondition() { + return conditionBuilder_ != null || condition_ != null; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpression getCondition() { + if (conditionBuilder_ == null) { + return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; + } else { + return conditionBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder setCondition(flyteidl.core.Condition.BooleanExpression value) { + if (conditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + onChanged(); + } else { + conditionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder setCondition( + flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { + if (conditionBuilder_ == null) { + condition_ = builderForValue.build(); + onChanged(); + } else { + conditionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder mergeCondition(flyteidl.core.Condition.BooleanExpression value) { + if (conditionBuilder_ == null) { + if (condition_ != null) { + condition_ = + flyteidl.core.Condition.BooleanExpression.newBuilder(condition_).mergeFrom(value).buildPartial(); + } else { + condition_ = value; + } + onChanged(); + } else { + conditionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder clearCondition() { + if (conditionBuilder_ == null) { + condition_ = null; + onChanged(); + } else { + condition_ = null; + conditionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpression.Builder getConditionBuilder() { + + onChanged(); + return getConditionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { + if (conditionBuilder_ != null) { + return conditionBuilder_.getMessageOrBuilder(); + } else { + return condition_ == null ? + flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; + } + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> + getConditionFieldBuilder() { + if (conditionBuilder_ == null) { + conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( + getCondition(), + getParentForChildren(), + isClean()); + condition_ = null; + } + return conditionBuilder_; + } + + private flyteidl.core.Workflow.Node thenNode_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> thenNodeBuilder_; + /** + * .flyteidl.core.Node then_node = 2; + */ + public boolean hasThenNode() { + return thenNodeBuilder_ != null || thenNode_ != null; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.Node getThenNode() { + if (thenNodeBuilder_ == null) { + return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; + } else { + return thenNodeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder setThenNode(flyteidl.core.Workflow.Node value) { + if (thenNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + thenNode_ = value; + onChanged(); + } else { + thenNodeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder setThenNode( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (thenNodeBuilder_ == null) { + thenNode_ = builderForValue.build(); + onChanged(); + } else { + thenNodeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder mergeThenNode(flyteidl.core.Workflow.Node value) { + if (thenNodeBuilder_ == null) { + if (thenNode_ != null) { + thenNode_ = + flyteidl.core.Workflow.Node.newBuilder(thenNode_).mergeFrom(value).buildPartial(); + } else { + thenNode_ = value; + } + onChanged(); + } else { + thenNodeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder clearThenNode() { + if (thenNodeBuilder_ == null) { + thenNode_ = null; + onChanged(); + } else { + thenNode_ = null; + thenNodeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.Node.Builder getThenNodeBuilder() { + + onChanged(); + return getThenNodeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { + if (thenNodeBuilder_ != null) { + return thenNodeBuilder_.getMessageOrBuilder(); + } else { + return thenNode_ == null ? + flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; + } + } + /** + * .flyteidl.core.Node then_node = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getThenNodeFieldBuilder() { + if (thenNodeBuilder_ == null) { + thenNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + getThenNode(), + getParentForChildren(), + isClean()); + thenNode_ = null; + } + return thenNodeBuilder_; + } + @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:flyteidl.core.IfBlock) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.IfBlock) + private static final flyteidl.core.Workflow.IfBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfBlock(); + } + + public static flyteidl.core.Workflow.IfBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IfBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IfBlock(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 flyteidl.core.Workflow.IfBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IfElseBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.IfElseBlock) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + boolean hasCase(); + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + flyteidl.core.Workflow.IfBlock getCase(); + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder(); + + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + java.util.List + getOtherList(); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + flyteidl.core.Workflow.IfBlock getOther(int index); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + int getOtherCount(); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + java.util.List + getOtherOrBuilderList(); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( + int index); + + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + boolean hasElseNode(); + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + flyteidl.core.Workflow.Node getElseNode(); + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder(); + + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + boolean hasError(); + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + flyteidl.core.Types.Error getError(); + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); + + public flyteidl.core.Workflow.IfElseBlock.DefaultCase getDefaultCase(); + } + /** + *
+   * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
+   * If no conditions were satisfied, the else_node or the error will execute.
+   * 
+ * + * Protobuf type {@code flyteidl.core.IfElseBlock} + */ + public static final class IfElseBlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.IfElseBlock) + IfElseBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use IfElseBlock.newBuilder() to construct. + private IfElseBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IfElseBlock() { + other_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IfElseBlock( + 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: { + flyteidl.core.Workflow.IfBlock.Builder subBuilder = null; + if (case_ != null) { + subBuilder = case_.toBuilder(); + } + case_ = input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(case_); + case_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + other_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + other_.add( + input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry)); + break; + } + case 26: { + flyteidl.core.Workflow.Node.Builder subBuilder = null; + if (defaultCase_ == 3) { + subBuilder = ((flyteidl.core.Workflow.Node) default_).toBuilder(); + } + default_ = + input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.Node) default_); + default_ = subBuilder.buildPartial(); + } + defaultCase_ = 3; + break; + } + case 34: { + flyteidl.core.Types.Error.Builder subBuilder = null; + if (defaultCase_ == 4) { + subBuilder = ((flyteidl.core.Types.Error) default_).toBuilder(); + } + default_ = + input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.Error) default_); + default_ = subBuilder.buildPartial(); + } + defaultCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + other_ = java.util.Collections.unmodifiableList(other_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); + } + + private int bitField0_; + private int defaultCase_ = 0; + private java.lang.Object default_; + public enum DefaultCase + implements com.google.protobuf.Internal.EnumLite { + ELSE_NODE(3), + ERROR(4), + DEFAULT_NOT_SET(0); + private final int value; + private DefaultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DefaultCase valueOf(int value) { + return forNumber(value); + } + + public static DefaultCase forNumber(int value) { + switch (value) { + case 3: return ELSE_NODE; + case 4: return ERROR; + case 0: return DEFAULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DefaultCase + getDefaultCase() { + return DefaultCase.forNumber( + defaultCase_); + } + + public static final int CASE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.IfBlock case_; + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public boolean hasCase() { + return case_ != null; + } + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlock getCase() { + return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; + } + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { + return getCase(); + } + + public static final int OTHER_FIELD_NUMBER = 2; + private java.util.List other_; + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List getOtherList() { + return other_; + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List + getOtherOrBuilderList() { + return other_; + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public int getOtherCount() { + return other_.size(); + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock getOther(int index) { + return other_.get(index); + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( + int index) { + return other_.get(index); + } + + public static final int ELSE_NODE_FIELD_NUMBER = 3; + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public boolean hasElseNode() { + return defaultCase_ == 3; + } + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.Node getElseNode() { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 4; + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + public boolean hasError() { + return defaultCase_ == 4; + } + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.Error getError() { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (case_ != null) { + output.writeMessage(1, getCase()); + } + for (int i = 0; i < other_.size(); i++) { + output.writeMessage(2, other_.get(i)); + } + if (defaultCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Workflow.Node) default_); + } + if (defaultCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Types.Error) default_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (case_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCase()); + } + for (int i = 0; i < other_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, other_.get(i)); + } + if (defaultCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Workflow.Node) default_); + } + if (defaultCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Types.Error) default_); + } + 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 flyteidl.core.Workflow.IfElseBlock)) { + return super.equals(obj); + } + flyteidl.core.Workflow.IfElseBlock other = (flyteidl.core.Workflow.IfElseBlock) obj; + + if (hasCase() != other.hasCase()) return false; + if (hasCase()) { + if (!getCase() + .equals(other.getCase())) return false; + } + if (!getOtherList() + .equals(other.getOtherList())) return false; + if (!getDefaultCase().equals(other.getDefaultCase())) return false; + switch (defaultCase_) { + case 3: + if (!getElseNode() + .equals(other.getElseNode())) return false; + break; + case 4: + if (!getError() + .equals(other.getError())) 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(); + if (hasCase()) { + hash = (37 * hash) + CASE_FIELD_NUMBER; + hash = (53 * hash) + getCase().hashCode(); + } + if (getOtherCount() > 0) { + hash = (37 * hash) + OTHER_FIELD_NUMBER; + hash = (53 * hash) + getOtherList().hashCode(); + } + switch (defaultCase_) { + case 3: + hash = (37 * hash) + ELSE_NODE_FIELD_NUMBER; + hash = (53 * hash) + getElseNode().hashCode(); + break; + case 4: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfElseBlock 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 flyteidl.core.Workflow.IfElseBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfElseBlock 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 flyteidl.core.Workflow.IfElseBlock parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfElseBlock 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(flyteidl.core.Workflow.IfElseBlock 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; + } + /** + *
+     * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
+     * If no conditions were satisfied, the else_node or the error will execute.
+     * 
+ * + * Protobuf type {@code flyteidl.core.IfElseBlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.IfElseBlock) + flyteidl.core.Workflow.IfElseBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); + } + + // Construct using flyteidl.core.Workflow.IfElseBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOtherFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (caseBuilder_ == null) { + case_ = null; + } else { + case_ = null; + caseBuilder_ = null; + } + if (otherBuilder_ == null) { + other_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + otherBuilder_.clear(); + } + defaultCase_ = 0; + default_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfElseBlock getDefaultInstanceForType() { + return flyteidl.core.Workflow.IfElseBlock.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.IfElseBlock build() { + flyteidl.core.Workflow.IfElseBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfElseBlock buildPartial() { + flyteidl.core.Workflow.IfElseBlock result = new flyteidl.core.Workflow.IfElseBlock(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (caseBuilder_ == null) { + result.case_ = case_; + } else { + result.case_ = caseBuilder_.build(); + } + if (otherBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + other_ = java.util.Collections.unmodifiableList(other_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.other_ = other_; + } else { + result.other_ = otherBuilder_.build(); + } + if (defaultCase_ == 3) { + if (elseNodeBuilder_ == null) { + result.default_ = default_; + } else { + result.default_ = elseNodeBuilder_.build(); + } + } + if (defaultCase_ == 4) { + if (errorBuilder_ == null) { + result.default_ = default_; + } else { + result.default_ = errorBuilder_.build(); + } + } + result.bitField0_ = to_bitField0_; + result.defaultCase_ = defaultCase_; + 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 flyteidl.core.Workflow.IfElseBlock) { + return mergeFrom((flyteidl.core.Workflow.IfElseBlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.IfElseBlock other) { + if (other == flyteidl.core.Workflow.IfElseBlock.getDefaultInstance()) return this; + if (other.hasCase()) { + mergeCase(other.getCase()); + } + if (otherBuilder_ == null) { + if (!other.other_.isEmpty()) { + if (other_.isEmpty()) { + other_ = other.other_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureOtherIsMutable(); + other_.addAll(other.other_); + } + onChanged(); + } + } else { + if (!other.other_.isEmpty()) { + if (otherBuilder_.isEmpty()) { + otherBuilder_.dispose(); + otherBuilder_ = null; + other_ = other.other_; + bitField0_ = (bitField0_ & ~0x00000002); + otherBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOtherFieldBuilder() : null; + } else { + otherBuilder_.addAllMessages(other.other_); + } + } + } + switch (other.getDefaultCase()) { + case ELSE_NODE: { + mergeElseNode(other.getElseNode()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case DEFAULT_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 { + flyteidl.core.Workflow.IfElseBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.IfElseBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int defaultCase_ = 0; + private java.lang.Object default_; + public DefaultCase + getDefaultCase() { + return DefaultCase.forNumber( + defaultCase_); + } + + public Builder clearDefault() { + defaultCase_ = 0; + default_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private flyteidl.core.Workflow.IfBlock case_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> caseBuilder_; + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public boolean hasCase() { + return caseBuilder_ != null || case_ != null; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlock getCase() { + if (caseBuilder_ == null) { + return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; + } else { + return caseBuilder_.getMessage(); + } + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder setCase(flyteidl.core.Workflow.IfBlock value) { + if (caseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + case_ = value; + onChanged(); + } else { + caseBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder setCase( + flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (caseBuilder_ == null) { + case_ = builderForValue.build(); + onChanged(); + } else { + caseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder mergeCase(flyteidl.core.Workflow.IfBlock value) { + if (caseBuilder_ == null) { + if (case_ != null) { + case_ = + flyteidl.core.Workflow.IfBlock.newBuilder(case_).mergeFrom(value).buildPartial(); + } else { + case_ = value; + } + onChanged(); + } else { + caseBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder clearCase() { + if (caseBuilder_ == null) { + case_ = null; + onChanged(); + } else { + case_ = null; + caseBuilder_ = null; + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlock.Builder getCaseBuilder() { + + onChanged(); + return getCaseFieldBuilder().getBuilder(); + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { + if (caseBuilder_ != null) { + return caseBuilder_.getMessageOrBuilder(); + } else { + return case_ == null ? + flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; + } + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> + getCaseFieldBuilder() { + if (caseBuilder_ == null) { + caseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( + getCase(), + getParentForChildren(), + isClean()); + case_ = null; + } + return caseBuilder_; + } + + private java.util.List other_ = + java.util.Collections.emptyList(); + private void ensureOtherIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + other_ = new java.util.ArrayList(other_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> otherBuilder_; + + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List getOtherList() { + if (otherBuilder_ == null) { + return java.util.Collections.unmodifiableList(other_); + } else { + return otherBuilder_.getMessageList(); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public int getOtherCount() { + if (otherBuilder_ == null) { + return other_.size(); + } else { + return otherBuilder_.getCount(); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock getOther(int index) { + if (otherBuilder_ == null) { + return other_.get(index); + } else { + return otherBuilder_.getMessage(index); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder setOther( + int index, flyteidl.core.Workflow.IfBlock value) { + if (otherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOtherIsMutable(); + other_.set(index, value); + onChanged(); + } else { + otherBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder setOther( + int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.set(index, builderForValue.build()); + onChanged(); + } else { + otherBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther(flyteidl.core.Workflow.IfBlock value) { + if (otherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOtherIsMutable(); + other_.add(value); + onChanged(); + } else { + otherBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther( + int index, flyteidl.core.Workflow.IfBlock value) { + if (otherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOtherIsMutable(); + other_.add(index, value); + onChanged(); + } else { + otherBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther( + flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.add(builderForValue.build()); + onChanged(); + } else { + otherBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther( + int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.add(index, builderForValue.build()); + onChanged(); + } else { + otherBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addAllOther( + java.lang.Iterable values) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, other_); + onChanged(); + } else { + otherBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder clearOther() { + if (otherBuilder_ == null) { + other_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + otherBuilder_.clear(); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder removeOther(int index) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.remove(index); + onChanged(); + } else { + otherBuilder_.remove(index); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock.Builder getOtherBuilder( + int index) { + return getOtherFieldBuilder().getBuilder(index); + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( + int index) { + if (otherBuilder_ == null) { + return other_.get(index); } else { + return otherBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List + getOtherOrBuilderList() { + if (otherBuilder_ != null) { + return otherBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(other_); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder() { + return getOtherFieldBuilder().addBuilder( + flyteidl.core.Workflow.IfBlock.getDefaultInstance()); + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder( + int index) { + return getOtherFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.IfBlock.getDefaultInstance()); + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List + getOtherBuilderList() { + return getOtherFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> + getOtherFieldBuilder() { + if (otherBuilder_ == null) { + otherBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( + other_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + other_ = null; + } + return otherBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> elseNodeBuilder_; + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public boolean hasElseNode() { + return defaultCase_ == 3; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.Node getElseNode() { + if (elseNodeBuilder_ == null) { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } else { + if (defaultCase_ == 3) { + return elseNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder setElseNode(flyteidl.core.Workflow.Node value) { + if (elseNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + default_ = value; + onChanged(); + } else { + elseNodeBuilder_.setMessage(value); + } + defaultCase_ = 3; + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder setElseNode( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (elseNodeBuilder_ == null) { + default_ = builderForValue.build(); + onChanged(); + } else { + elseNodeBuilder_.setMessage(builderForValue.build()); + } + defaultCase_ = 3; + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder mergeElseNode(flyteidl.core.Workflow.Node value) { + if (elseNodeBuilder_ == null) { + if (defaultCase_ == 3 && + default_ != flyteidl.core.Workflow.Node.getDefaultInstance()) { + default_ = flyteidl.core.Workflow.Node.newBuilder((flyteidl.core.Workflow.Node) default_) + .mergeFrom(value).buildPartial(); + } else { + default_ = value; + } + onChanged(); + } else { + if (defaultCase_ == 3) { + elseNodeBuilder_.mergeFrom(value); + } + elseNodeBuilder_.setMessage(value); + } + defaultCase_ = 3; + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder clearElseNode() { + if (elseNodeBuilder_ == null) { + if (defaultCase_ == 3) { + defaultCase_ = 0; + default_ = null; + onChanged(); + } + } else { + if (defaultCase_ == 3) { + defaultCase_ = 0; + default_ = null; + } + elseNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.Node.Builder getElseNodeBuilder() { + return getElseNodeFieldBuilder().getBuilder(); + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { + if ((defaultCase_ == 3) && (elseNodeBuilder_ != null)) { + return elseNodeBuilder_.getMessageOrBuilder(); + } else { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getElseNodeFieldBuilder() { + if (elseNodeBuilder_ == null) { + if (!(defaultCase_ == 3)) { + default_ = flyteidl.core.Workflow.Node.getDefaultInstance(); + } + elseNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + (flyteidl.core.Workflow.Node) default_, + getParentForChildren(), + isClean()); + default_ = null; + } + defaultCase_ = 3; + onChanged();; + return elseNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public boolean hasError() { + return defaultCase_ == 4; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.Error getError() { + if (errorBuilder_ == null) { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } else { + if (defaultCase_ == 4) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder setError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + default_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + defaultCase_ = 4; + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder setError( + flyteidl.core.Types.Error.Builder builderForValue) { + if (errorBuilder_ == null) { + default_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + defaultCase_ = 4; + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder mergeError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (defaultCase_ == 4 && + default_ != flyteidl.core.Types.Error.getDefaultInstance()) { + default_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) default_) + .mergeFrom(value).buildPartial(); + } else { + default_ = value; + } + onChanged(); + } else { + if (defaultCase_ == 4) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + defaultCase_ = 4; + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (defaultCase_ == 4) { + defaultCase_ = 0; + default_ = null; + onChanged(); + } + } else { + if (defaultCase_ == 4) { + defaultCase_ = 0; + default_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.Error.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if ((defaultCase_ == 4) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(defaultCase_ == 4)) { + default_ = flyteidl.core.Types.Error.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( + (flyteidl.core.Types.Error) default_, + getParentForChildren(), + isClean()); + default_ = null; + } + defaultCase_ = 4; + onChanged();; + return errorBuilder_; + } + @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:flyteidl.core.IfElseBlock) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.IfElseBlock) + private static final flyteidl.core.Workflow.IfElseBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfElseBlock(); + } + + public static flyteidl.core.Workflow.IfElseBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IfElseBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IfElseBlock(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 flyteidl.core.Workflow.IfElseBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BranchNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BranchNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + boolean hasIfElse(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + flyteidl.core.Workflow.IfElseBlock getIfElse(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder(); + } + /** + *
+   * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
+   * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives).
+   * 
+ * + * Protobuf type {@code flyteidl.core.BranchNode} + */ + public static final class BranchNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BranchNode) + BranchNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use BranchNode.newBuilder() to construct. + private BranchNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BranchNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BranchNode( + 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: { + flyteidl.core.Workflow.IfElseBlock.Builder subBuilder = null; + if (ifElse_ != null) { + subBuilder = ifElse_.toBuilder(); + } + ifElse_ = input.readMessage(flyteidl.core.Workflow.IfElseBlock.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ifElse_); + ifElse_ = 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 flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); + } + + public static final int IF_ELSE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.IfElseBlock ifElse_; + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public boolean hasIfElse() { + return ifElse_ != null; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlock getIfElse() { + return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { + return getIfElse(); + } + + 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 (ifElse_ != null) { + output.writeMessage(1, getIfElse()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ifElse_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIfElse()); + } + 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 flyteidl.core.Workflow.BranchNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.BranchNode other = (flyteidl.core.Workflow.BranchNode) obj; + + if (hasIfElse() != other.hasIfElse()) return false; + if (hasIfElse()) { + if (!getIfElse() + .equals(other.getIfElse())) 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 (hasIfElse()) { + hash = (37 * hash) + IF_ELSE_FIELD_NUMBER; + hash = (53 * hash) + getIfElse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.BranchNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.BranchNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.BranchNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.BranchNode 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 flyteidl.core.Workflow.BranchNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.BranchNode 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 flyteidl.core.Workflow.BranchNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.BranchNode 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(flyteidl.core.Workflow.BranchNode 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; + } + /** + *
+     * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
+     * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives).
+     * 
+ * + * Protobuf type {@code flyteidl.core.BranchNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BranchNode) + flyteidl.core.Workflow.BranchNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.BranchNode.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 (ifElseBuilder_ == null) { + ifElse_ = null; + } else { + ifElse_ = null; + ifElseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.BranchNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.BranchNode build() { + flyteidl.core.Workflow.BranchNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.BranchNode buildPartial() { + flyteidl.core.Workflow.BranchNode result = new flyteidl.core.Workflow.BranchNode(this); + if (ifElseBuilder_ == null) { + result.ifElse_ = ifElse_; + } else { + result.ifElse_ = ifElseBuilder_.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 flyteidl.core.Workflow.BranchNode) { + return mergeFrom((flyteidl.core.Workflow.BranchNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.BranchNode other) { + if (other == flyteidl.core.Workflow.BranchNode.getDefaultInstance()) return this; + if (other.hasIfElse()) { + mergeIfElse(other.getIfElse()); + } + 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 { + flyteidl.core.Workflow.BranchNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.BranchNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Workflow.IfElseBlock ifElse_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> ifElseBuilder_; + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public boolean hasIfElse() { + return ifElseBuilder_ != null || ifElse_ != null; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlock getIfElse() { + if (ifElseBuilder_ == null) { + return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; + } else { + return ifElseBuilder_.getMessage(); + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder setIfElse(flyteidl.core.Workflow.IfElseBlock value) { + if (ifElseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ifElse_ = value; + onChanged(); + } else { + ifElseBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder setIfElse( + flyteidl.core.Workflow.IfElseBlock.Builder builderForValue) { + if (ifElseBuilder_ == null) { + ifElse_ = builderForValue.build(); + onChanged(); + } else { + ifElseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder mergeIfElse(flyteidl.core.Workflow.IfElseBlock value) { + if (ifElseBuilder_ == null) { + if (ifElse_ != null) { + ifElse_ = + flyteidl.core.Workflow.IfElseBlock.newBuilder(ifElse_).mergeFrom(value).buildPartial(); + } else { + ifElse_ = value; + } + onChanged(); + } else { + ifElseBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder clearIfElse() { + if (ifElseBuilder_ == null) { + ifElse_ = null; + onChanged(); + } else { + ifElse_ = null; + ifElseBuilder_ = null; + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlock.Builder getIfElseBuilder() { + + onChanged(); + return getIfElseFieldBuilder().getBuilder(); + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { + if (ifElseBuilder_ != null) { + return ifElseBuilder_.getMessageOrBuilder(); + } else { + return ifElse_ == null ? + flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> + getIfElseFieldBuilder() { + if (ifElseBuilder_ == null) { + ifElseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder>( + getIfElse(), + getParentForChildren(), + isClean()); + ifElse_ = null; + } + return ifElseBuilder_; + } + @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:flyteidl.core.BranchNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BranchNode) + private static final flyteidl.core.Workflow.BranchNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.BranchNode(); + } + + public static flyteidl.core.Workflow.BranchNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BranchNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BranchNode(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 flyteidl.core.Workflow.BranchNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + boolean hasReferenceId(); + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getReferenceId(); + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder(); + + public flyteidl.core.Workflow.TaskNode.ReferenceCase getReferenceCase(); + } + /** + *
+   * Refers to the task that the Node is to execute.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskNode} + */ + public static final class TaskNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskNode) + TaskNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskNode.newBuilder() to construct. + private TaskNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskNode( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (referenceCase_ == 1) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); + } + reference_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); + reference_ = subBuilder.buildPartial(); + } + referenceCase_ = 1; + 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 flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); + } + + private int referenceCase_ = 0; + private java.lang.Object reference_; + public enum ReferenceCase + implements com.google.protobuf.Internal.EnumLite { + REFERENCE_ID(1), + REFERENCE_NOT_SET(0); + private final int value; + private ReferenceCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReferenceCase valueOf(int value) { + return forNumber(value); + } + + public static ReferenceCase forNumber(int value) { + switch (value) { + case 1: return REFERENCE_ID; + case 0: return REFERENCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public static final int REFERENCE_ID_FIELD_NUMBER = 1; + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public boolean hasReferenceId() { + return referenceCase_ == 1; + } + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (referenceCase_ == 1) { + output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (referenceCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + 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 flyteidl.core.Workflow.TaskNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.TaskNode other = (flyteidl.core.Workflow.TaskNode) obj; + + if (!getReferenceCase().equals(other.getReferenceCase())) return false; + switch (referenceCase_) { + case 1: + if (!getReferenceId() + .equals(other.getReferenceId())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (referenceCase_) { + case 1: + hash = (37 * hash) + REFERENCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getReferenceId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.TaskNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNode 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 flyteidl.core.Workflow.TaskNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNode 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 flyteidl.core.Workflow.TaskNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNode 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(flyteidl.core.Workflow.TaskNode 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; + } + /** + *
+     * Refers to the task that the Node is to execute.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskNode) + flyteidl.core.Workflow.TaskNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.TaskNode.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(); + referenceCase_ = 0; + reference_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNode build() { + flyteidl.core.Workflow.TaskNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNode buildPartial() { + flyteidl.core.Workflow.TaskNode result = new flyteidl.core.Workflow.TaskNode(this); + if (referenceCase_ == 1) { + if (referenceIdBuilder_ == null) { + result.reference_ = reference_; + } else { + result.reference_ = referenceIdBuilder_.build(); + } + } + result.referenceCase_ = referenceCase_; + 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 flyteidl.core.Workflow.TaskNode) { + return mergeFrom((flyteidl.core.Workflow.TaskNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.TaskNode other) { + if (other == flyteidl.core.Workflow.TaskNode.getDefaultInstance()) return this; + switch (other.getReferenceCase()) { + case REFERENCE_ID: { + mergeReferenceId(other.getReferenceId()); + break; + } + case REFERENCE_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 { + flyteidl.core.Workflow.TaskNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.TaskNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int referenceCase_ = 0; + private java.lang.Object reference_; + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public Builder clearReference() { + referenceCase_ = 0; + reference_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> referenceIdBuilder_; + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public boolean hasReferenceId() { + return referenceCase_ == 1; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { + if (referenceIdBuilder_ == null) { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } else { + if (referenceCase_ == 1) { + return referenceIdBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder setReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (referenceIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + referenceIdBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder setReferenceId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (referenceIdBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + referenceIdBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder mergeReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (referenceIdBuilder_ == null) { + if (referenceCase_ == 1 && + reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) + .mergeFrom(value).buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 1) { + referenceIdBuilder_.mergeFrom(value); + } + referenceIdBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder clearReferenceId() { + if (referenceIdBuilder_ == null) { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + } + referenceIdBuilder_.clear(); + } + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getReferenceIdBuilder() { + return getReferenceIdFieldBuilder().getBuilder(); + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { + if ((referenceCase_ == 1) && (referenceIdBuilder_ != null)) { + return referenceIdBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getReferenceIdFieldBuilder() { + if (referenceIdBuilder_ == null) { + if (!(referenceCase_ == 1)) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + referenceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.Identifier) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 1; + onChanged();; + return referenceIdBuilder_; + } + @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:flyteidl.core.TaskNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNode) + private static final flyteidl.core.Workflow.TaskNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.TaskNode(); + } + + public static flyteidl.core.Workflow.TaskNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskNode(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 flyteidl.core.Workflow.TaskNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + boolean hasLaunchplanRef(); + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef(); + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder(); + + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + boolean hasSubWorkflowRef(); + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef(); + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder(); + + public flyteidl.core.Workflow.WorkflowNode.ReferenceCase getReferenceCase(); + } + /** + *
+   * Refers to a the workflow the node is to execute.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowNode} + */ + public static final class WorkflowNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowNode) + WorkflowNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowNode.newBuilder() to construct. + private WorkflowNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowNode( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (referenceCase_ == 1) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); + } + reference_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); + reference_ = subBuilder.buildPartial(); + } + referenceCase_ = 1; + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (referenceCase_ == 2) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); + } + reference_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); + reference_ = subBuilder.buildPartial(); + } + referenceCase_ = 2; + 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 flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); + } + + private int referenceCase_ = 0; + private java.lang.Object reference_; + public enum ReferenceCase + implements com.google.protobuf.Internal.EnumLite { + LAUNCHPLAN_REF(1), + SUB_WORKFLOW_REF(2), + REFERENCE_NOT_SET(0); + private final int value; + private ReferenceCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReferenceCase valueOf(int value) { + return forNumber(value); + } + + public static ReferenceCase forNumber(int value) { + switch (value) { + case 1: return LAUNCHPLAN_REF; + case 2: return SUB_WORKFLOW_REF; + case 0: return REFERENCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public static final int LAUNCHPLAN_REF_FIELD_NUMBER = 1; + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public boolean hasLaunchplanRef() { + return referenceCase_ == 1; + } + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + public static final int SUB_WORKFLOW_REF_FIELD_NUMBER = 2; + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public boolean hasSubWorkflowRef() { + return referenceCase_ == 2; + } + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (referenceCase_ == 1) { + output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + if (referenceCase_ == 2) { + output.writeMessage(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (referenceCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + if (referenceCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + 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 flyteidl.core.Workflow.WorkflowNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowNode other = (flyteidl.core.Workflow.WorkflowNode) obj; + + if (!getReferenceCase().equals(other.getReferenceCase())) return false; + switch (referenceCase_) { + case 1: + if (!getLaunchplanRef() + .equals(other.getLaunchplanRef())) return false; + break; + case 2: + if (!getSubWorkflowRef() + .equals(other.getSubWorkflowRef())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (referenceCase_) { + case 1: + hash = (37 * hash) + LAUNCHPLAN_REF_FIELD_NUMBER; + hash = (53 * hash) + getLaunchplanRef().hashCode(); + break; + case 2: + hash = (37 * hash) + SUB_WORKFLOW_REF_FIELD_NUMBER; + hash = (53 * hash) + getSubWorkflowRef().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowNode 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 flyteidl.core.Workflow.WorkflowNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowNode 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 flyteidl.core.Workflow.WorkflowNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowNode 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(flyteidl.core.Workflow.WorkflowNode 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; + } + /** + *
+     * Refers to a the workflow the node is to execute.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowNode) + flyteidl.core.Workflow.WorkflowNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowNode.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(); + referenceCase_ = 0; + reference_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowNode build() { + flyteidl.core.Workflow.WorkflowNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowNode buildPartial() { + flyteidl.core.Workflow.WorkflowNode result = new flyteidl.core.Workflow.WorkflowNode(this); + if (referenceCase_ == 1) { + if (launchplanRefBuilder_ == null) { + result.reference_ = reference_; + } else { + result.reference_ = launchplanRefBuilder_.build(); + } + } + if (referenceCase_ == 2) { + if (subWorkflowRefBuilder_ == null) { + result.reference_ = reference_; + } else { + result.reference_ = subWorkflowRefBuilder_.build(); + } + } + result.referenceCase_ = referenceCase_; + 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 flyteidl.core.Workflow.WorkflowNode) { + return mergeFrom((flyteidl.core.Workflow.WorkflowNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowNode other) { + if (other == flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) return this; + switch (other.getReferenceCase()) { + case LAUNCHPLAN_REF: { + mergeLaunchplanRef(other.getLaunchplanRef()); + break; + } + case SUB_WORKFLOW_REF: { + mergeSubWorkflowRef(other.getSubWorkflowRef()); + break; + } + case REFERENCE_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 { + flyteidl.core.Workflow.WorkflowNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int referenceCase_ = 0; + private java.lang.Object reference_; + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public Builder clearReference() { + referenceCase_ = 0; + reference_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchplanRefBuilder_; + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public boolean hasLaunchplanRef() { + return referenceCase_ == 1; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { + if (launchplanRefBuilder_ == null) { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } else { + if (referenceCase_ == 1) { + return launchplanRefBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder setLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchplanRefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + launchplanRefBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder setLaunchplanRef( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (launchplanRefBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + launchplanRefBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder mergeLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchplanRefBuilder_ == null) { + if (referenceCase_ == 1 && + reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) + .mergeFrom(value).buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 1) { + launchplanRefBuilder_.mergeFrom(value); + } + launchplanRefBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder clearLaunchplanRef() { + if (launchplanRefBuilder_ == null) { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + } + launchplanRefBuilder_.clear(); + } + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchplanRefBuilder() { + return getLaunchplanRefFieldBuilder().getBuilder(); + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { + if ((referenceCase_ == 1) && (launchplanRefBuilder_ != null)) { + return launchplanRefBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getLaunchplanRefFieldBuilder() { + if (launchplanRefBuilder_ == null) { + if (!(referenceCase_ == 1)) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + launchplanRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.Identifier) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 1; + onChanged();; + return launchplanRefBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> subWorkflowRefBuilder_; + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public boolean hasSubWorkflowRef() { + return referenceCase_ == 2; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { + if (subWorkflowRefBuilder_ == null) { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } else { + if (referenceCase_ == 2) { + return subWorkflowRefBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder setSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (subWorkflowRefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + subWorkflowRefBuilder_.setMessage(value); + } + referenceCase_ = 2; + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder setSubWorkflowRef( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (subWorkflowRefBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + subWorkflowRefBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 2; + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder mergeSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (subWorkflowRefBuilder_ == null) { + if (referenceCase_ == 2 && + reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) + .mergeFrom(value).buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 2) { + subWorkflowRefBuilder_.mergeFrom(value); + } + subWorkflowRefBuilder_.setMessage(value); + } + referenceCase_ = 2; + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder clearSubWorkflowRef() { + if (subWorkflowRefBuilder_ == null) { + if (referenceCase_ == 2) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 2) { + referenceCase_ = 0; + reference_ = null; + } + subWorkflowRefBuilder_.clear(); + } + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getSubWorkflowRefBuilder() { + return getSubWorkflowRefFieldBuilder().getBuilder(); + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { + if ((referenceCase_ == 2) && (subWorkflowRefBuilder_ != null)) { + return subWorkflowRefBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getSubWorkflowRefFieldBuilder() { + if (subWorkflowRefBuilder_ == null) { + if (!(referenceCase_ == 2)) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + subWorkflowRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.Identifier) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 2; + onChanged();; + return subWorkflowRefBuilder_; + } + @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:flyteidl.core.WorkflowNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowNode) + private static final flyteidl.core.Workflow.WorkflowNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowNode(); + } + + public static flyteidl.core.Workflow.WorkflowNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowNode(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 flyteidl.core.Workflow.WorkflowNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + boolean hasTimeout(); + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.Duration getTimeout(); + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + boolean hasRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategy getRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); + + /** + * bool interruptible = 6; + */ + boolean getInterruptible(); + + public flyteidl.core.Workflow.NodeMetadata.InterruptibleValueCase getInterruptibleValueCase(); + } + /** + *
+   * Defines extra information about the Node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.NodeMetadata} + */ + public static final class NodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.NodeMetadata) + NodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeMetadata.newBuilder() to construct. + private NodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeMetadata() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeMetadata( + 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 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeout_ != null) { + subBuilder = timeout_.toBuilder(); + } + timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeout_); + timeout_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; + if (retries_ != null) { + subBuilder = retries_.toBuilder(); + } + retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retries_); + retries_ = subBuilder.buildPartial(); + } + + break; + } + case 48: { + interruptibleValueCase_ = 6; + interruptibleValue_ = input.readBool(); + 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 flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); + } + + private int interruptibleValueCase_ = 0; + private java.lang.Object interruptibleValue_; + public enum InterruptibleValueCase + implements com.google.protobuf.Internal.EnumLite { + INTERRUPTIBLE(6), + INTERRUPTIBLEVALUE_NOT_SET(0); + private final int value; + private InterruptibleValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InterruptibleValueCase valueOf(int value) { + return forNumber(value); + } + + public static InterruptibleValueCase forNumber(int value) { + switch (value) { + case 6: return INTERRUPTIBLE; + case 0: return INTERRUPTIBLEVALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public InterruptibleValueCase + getInterruptibleValueCase() { + return InterruptibleValueCase.forNumber( + interruptibleValueCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + 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 TIMEOUT_FIELD_NUMBER = 4; + private com.google.protobuf.Duration timeout_; + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeout_ != null; + } + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + return getTimeout(); + } + + public static final int RETRIES_FIELD_NUMBER = 5; + private flyteidl.core.Literals.RetryStrategy retries_; + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retries_ != null; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + return getRetries(); + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 6; + /** + * bool interruptible = 6; + */ + public boolean getInterruptible() { + if (interruptibleValueCase_ == 6) { + return (java.lang.Boolean) interruptibleValue_; + } + return false; + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (timeout_ != null) { + output.writeMessage(4, getTimeout()); + } + if (retries_ != null) { + output.writeMessage(5, getRetries()); + } + if (interruptibleValueCase_ == 6) { + output.writeBool( + 6, (boolean)((java.lang.Boolean) interruptibleValue_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (timeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTimeout()); + } + if (retries_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRetries()); + } + if (interruptibleValueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 6, (boolean)((java.lang.Boolean) interruptibleValue_)); + } + 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 flyteidl.core.Workflow.NodeMetadata)) { + return super.equals(obj); + } + flyteidl.core.Workflow.NodeMetadata other = (flyteidl.core.Workflow.NodeMetadata) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasTimeout() != other.hasTimeout()) return false; + if (hasTimeout()) { + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (hasRetries() != other.hasRetries()) return false; + if (hasRetries()) { + if (!getRetries() + .equals(other.getRetries())) return false; + } + if (!getInterruptibleValueCase().equals(other.getInterruptibleValueCase())) return false; + switch (interruptibleValueCase_) { + case 6: + if (getInterruptible() + != other.getInterruptible()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + if (hasRetries()) { + hash = (37 * hash) + RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getRetries().hashCode(); + } + switch (interruptibleValueCase_) { + case 6: + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterruptible()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.NodeMetadata 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 flyteidl.core.Workflow.NodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.NodeMetadata 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 flyteidl.core.Workflow.NodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.NodeMetadata 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(flyteidl.core.Workflow.NodeMetadata 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; + } + /** + *
+     * Defines extra information about the Node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.NodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeMetadata) + flyteidl.core.Workflow.NodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); + } + + // Construct using flyteidl.core.Workflow.NodeMetadata.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_ = ""; + + if (timeoutBuilder_ == null) { + timeout_ = null; + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + if (retriesBuilder_ == null) { + retries_ = null; + } else { + retries_ = null; + retriesBuilder_ = null; + } + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.NodeMetadata getDefaultInstanceForType() { + return flyteidl.core.Workflow.NodeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.NodeMetadata build() { + flyteidl.core.Workflow.NodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.NodeMetadata buildPartial() { + flyteidl.core.Workflow.NodeMetadata result = new flyteidl.core.Workflow.NodeMetadata(this); + result.name_ = name_; + if (timeoutBuilder_ == null) { + result.timeout_ = timeout_; + } else { + result.timeout_ = timeoutBuilder_.build(); + } + if (retriesBuilder_ == null) { + result.retries_ = retries_; + } else { + result.retries_ = retriesBuilder_.build(); + } + if (interruptibleValueCase_ == 6) { + result.interruptibleValue_ = interruptibleValue_; + } + result.interruptibleValueCase_ = interruptibleValueCase_; + 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 flyteidl.core.Workflow.NodeMetadata) { + return mergeFrom((flyteidl.core.Workflow.NodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.NodeMetadata other) { + if (other == flyteidl.core.Workflow.NodeMetadata.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (other.hasRetries()) { + mergeRetries(other.getRetries()); + } + switch (other.getInterruptibleValueCase()) { + case INTERRUPTIBLE: { + setInterruptible(other.getInterruptible()); + break; + } + case INTERRUPTIBLEVALUE_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 { + flyteidl.core.Workflow.NodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.NodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int interruptibleValueCase_ = 0; + private java.lang.Object interruptibleValue_; + public InterruptibleValueCase + getInterruptibleValueCase() { + return InterruptibleValueCase.forNumber( + interruptibleValueCase_); + } + + public Builder clearInterruptibleValue() { + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + onChanged(); + return this; + } + + + private java.lang.Object name_ = ""; + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + 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.Duration timeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeoutBuilder_ != null || timeout_ != null; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + onChanged(); + } else { + timeoutBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + onChanged(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (timeout_ != null) { + timeout_ = + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + } else { + timeout_ = value; + } + onChanged(); + } else { + timeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder clearTimeout() { + if (timeoutBuilder_ == null) { + timeout_ = null; + onChanged(); + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeoutFieldBuilder() { + if (timeoutBuilder_ == null) { + timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeout(), + getParentForChildren(), + isClean()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private flyteidl.core.Literals.RetryStrategy retries_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retriesBuilder_ != null || retries_ != null; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + if (retriesBuilder_ == null) { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } else { + return retriesBuilder_.getMessage(); + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retries_ = value; + onChanged(); + } else { + retriesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries( + flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { + if (retriesBuilder_ == null) { + retries_ = builderForValue.build(); + onChanged(); + } else { + retriesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (retries_ != null) { + retries_ = + flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); + } else { + retries_ = value; + } + onChanged(); + } else { + retriesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder clearRetries() { + if (retriesBuilder_ == null) { + retries_ = null; + onChanged(); + } else { + retries_ = null; + retriesBuilder_ = null; + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { + + onChanged(); + return getRetriesFieldBuilder().getBuilder(); + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + if (retriesBuilder_ != null) { + return retriesBuilder_.getMessageOrBuilder(); + } else { + return retries_ == null ? + flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> + getRetriesFieldBuilder() { + if (retriesBuilder_ == null) { + retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( + getRetries(), + getParentForChildren(), + isClean()); + retries_ = null; + } + return retriesBuilder_; + } + + /** + * bool interruptible = 6; + */ + public boolean getInterruptible() { + if (interruptibleValueCase_ == 6) { + return (java.lang.Boolean) interruptibleValue_; + } + return false; + } + /** + * bool interruptible = 6; + */ + public Builder setInterruptible(boolean value) { + interruptibleValueCase_ = 6; + interruptibleValue_ = value; + onChanged(); + return this; + } + /** + * bool interruptible = 6; + */ + public Builder clearInterruptible() { + if (interruptibleValueCase_ == 6) { + interruptibleValueCase_ = 0; + interruptibleValue_ = 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:flyteidl.core.NodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeMetadata) + private static final flyteidl.core.Workflow.NodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.NodeMetadata(); + } + + public static flyteidl.core.Workflow.NodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeMetadata(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 flyteidl.core.Workflow.NodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AliasOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Alias) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + java.lang.String getVar(); + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + com.google.protobuf.ByteString + getVarBytes(); + + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + java.lang.String getAlias(); + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + com.google.protobuf.ByteString + getAliasBytes(); + } + /** + *
+   * Links a variable to an alias.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Alias} + */ + public static final class Alias extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Alias) + AliasOrBuilder { + private static final long serialVersionUID = 0L; + // Use Alias.newBuilder() to construct. + private Alias(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Alias() { + var_ = ""; + alias_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Alias( + 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(); + + var_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + alias_ = 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 flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); + } + + public static final int VAR_FIELD_NUMBER = 1; + private volatile java.lang.Object var_; + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + 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(); + var_ = s; + return s; + } + } + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALIAS_FIELD_NUMBER = 2; + private volatile java.lang.Object alias_; + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + 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(); + alias_ = s; + return s; + } + } + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = 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 (!getVarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); + } + if (!getAliasBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alias_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getVarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); + } + if (!getAliasBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alias_); + } + 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 flyteidl.core.Workflow.Alias)) { + return super.equals(obj); + } + flyteidl.core.Workflow.Alias other = (flyteidl.core.Workflow.Alias) obj; + + if (!getVar() + .equals(other.getVar())) return false; + if (!getAlias() + .equals(other.getAlias())) 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) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.Alias parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Alias parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Alias parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Alias parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Alias parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Alias parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Alias parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Alias 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 flyteidl.core.Workflow.Alias parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Alias 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 flyteidl.core.Workflow.Alias parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Alias 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(flyteidl.core.Workflow.Alias 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; + } + /** + *
+     * Links a variable to an alias.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Alias} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Alias) + flyteidl.core.Workflow.AliasOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); + } + + // Construct using flyteidl.core.Workflow.Alias.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(); + var_ = ""; + + alias_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.Alias getDefaultInstanceForType() { + return flyteidl.core.Workflow.Alias.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.Alias build() { + flyteidl.core.Workflow.Alias result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.Alias buildPartial() { + flyteidl.core.Workflow.Alias result = new flyteidl.core.Workflow.Alias(this); + result.var_ = var_; + result.alias_ = alias_; + 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 flyteidl.core.Workflow.Alias) { + return mergeFrom((flyteidl.core.Workflow.Alias)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.Alias other) { + if (other == flyteidl.core.Workflow.Alias.getDefaultInstance()) return this; + if (!other.getVar().isEmpty()) { + var_ = other.var_; + onChanged(); + } + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + 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 { + flyteidl.core.Workflow.Alias parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.Alias) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object var_ = ""; + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + var_ = value; + onChanged(); + return this; + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public Builder clearVar() { + + var_ = getDefaultInstance().getVar(); + onChanged(); + return this; + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + var_ = value; + onChanged(); + return this; + } + + private java.lang.Object alias_ = ""; + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public Builder setAlias( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alias_ = value; + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public Builder clearAlias() { + + alias_ = getDefaultInstance().getAlias(); + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public Builder setAliasBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alias_ = 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:flyteidl.core.Alias) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Alias) + private static final flyteidl.core.Workflow.Alias DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.Alias(); + } + + public static flyteidl.core.Workflow.Alias getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Alias parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Alias(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 flyteidl.core.Workflow.Alias getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Node) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + java.lang.String getId(); + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + boolean hasMetadata(); + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + flyteidl.core.Workflow.NodeMetadata getMetadata(); + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + java.util.List + getInputsList(); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + flyteidl.core.Literals.Binding getInputs(int index); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + int getInputsCount(); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + java.util.List + getInputsOrBuilderList(); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( + int index); + + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + java.util.List + getUpstreamNodeIdsList(); + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + int getUpstreamNodeIdsCount(); + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + java.lang.String getUpstreamNodeIds(int index); + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + com.google.protobuf.ByteString + getUpstreamNodeIdsBytes(int index); + + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + java.util.List + getOutputAliasesList(); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + flyteidl.core.Workflow.Alias getOutputAliases(int index); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + int getOutputAliasesCount(); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + java.util.List + getOutputAliasesOrBuilderList(); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( + int index); + + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + boolean hasTaskNode(); + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + flyteidl.core.Workflow.TaskNode getTaskNode(); + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder(); + + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + boolean hasWorkflowNode(); + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + flyteidl.core.Workflow.WorkflowNode getWorkflowNode(); + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder(); + + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + boolean hasBranchNode(); + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + flyteidl.core.Workflow.BranchNode getBranchNode(); + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder(); + + public flyteidl.core.Workflow.Node.TargetCase getTargetCase(); + } + /** + *
+   * A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
+   * node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Node} + */ + public static final class Node extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Node) + NodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Node.newBuilder() to construct. + private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Node() { + id_ = ""; + inputs_ = java.util.Collections.emptyList(); + upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + outputAliases_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Node( + 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: { + flyteidl.core.Workflow.NodeMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Workflow.NodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + inputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + inputs_.add( + input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + upstreamNodeIds_.add(s); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + outputAliases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + outputAliases_.add( + input.readMessage(flyteidl.core.Workflow.Alias.parser(), extensionRegistry)); + break; + } + case 50: { + flyteidl.core.Workflow.TaskNode.Builder subBuilder = null; + if (targetCase_ == 6) { + subBuilder = ((flyteidl.core.Workflow.TaskNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.TaskNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.TaskNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 6; + break; + } + case 58: { + flyteidl.core.Workflow.WorkflowNode.Builder subBuilder = null; + if (targetCase_ == 7) { + subBuilder = ((flyteidl.core.Workflow.WorkflowNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.WorkflowNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.WorkflowNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 7; + break; + } + case 66: { + flyteidl.core.Workflow.BranchNode.Builder subBuilder = null; + if (targetCase_ == 8) { + subBuilder = ((flyteidl.core.Workflow.BranchNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.BranchNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.BranchNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 8; + 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_ & 0x00000004) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); + } + + private int bitField0_; + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite { + TASK_NODE(6), + WORKFLOW_NODE(7), + BRANCH_NODE(8), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 6: return TASK_NODE; + case 7: return WORKFLOW_NODE; + case 8: return BRANCH_NODE; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + 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; + } + } + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + 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 METADATA_FIELD_NUMBER = 2; + private flyteidl.core.Workflow.NodeMetadata metadata_; + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int INPUTS_FIELD_NUMBER = 3; + private java.util.List inputs_; + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List getInputsList() { + return inputs_; + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List + getInputsOrBuilderList() { + return inputs_; + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public int getInputsCount() { + return inputs_.size(); + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding getInputs(int index) { + return inputs_.get(index); + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( + int index) { + return inputs_.get(index); + } + + public static final int UPSTREAM_NODE_IDS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList upstreamNodeIds_; + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ProtocolStringList + getUpstreamNodeIdsList() { + return upstreamNodeIds_; + } + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public int getUpstreamNodeIdsCount() { + return upstreamNodeIds_.size(); + } + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public java.lang.String getUpstreamNodeIds(int index) { + return upstreamNodeIds_.get(index); + } + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ByteString + getUpstreamNodeIdsBytes(int index) { + return upstreamNodeIds_.getByteString(index); + } + + public static final int OUTPUT_ALIASES_FIELD_NUMBER = 5; + private java.util.List outputAliases_; + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List getOutputAliasesList() { + return outputAliases_; + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List + getOutputAliasesOrBuilderList() { + return outputAliases_; + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public int getOutputAliasesCount() { + return outputAliases_.size(); + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias getOutputAliases(int index) { + return outputAliases_.get(index); + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( + int index) { + return outputAliases_.get(index); + } + + public static final int TASK_NODE_FIELD_NUMBER = 6; + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public boolean hasTaskNode() { + return targetCase_ == 6; + } + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNode getTaskNode() { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + + public static final int WORKFLOW_NODE_FIELD_NUMBER = 7; + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public boolean hasWorkflowNode() { + return targetCase_ == 7; + } + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + + public static final int BRANCH_NODE_FIELD_NUMBER = 8; + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public boolean hasBranchNode() { + return targetCase_ == 8; + } + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNode getBranchNode() { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + for (int i = 0; i < inputs_.size(); i++) { + output.writeMessage(3, inputs_.get(i)); + } + for (int i = 0; i < upstreamNodeIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, upstreamNodeIds_.getRaw(i)); + } + for (int i = 0; i < outputAliases_.size(); i++) { + output.writeMessage(5, outputAliases_.get(i)); + } + if (targetCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Workflow.TaskNode) target_); + } + if (targetCase_ == 7) { + output.writeMessage(7, (flyteidl.core.Workflow.WorkflowNode) target_); + } + if (targetCase_ == 8) { + output.writeMessage(8, (flyteidl.core.Workflow.BranchNode) target_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + for (int i = 0; i < inputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, inputs_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < upstreamNodeIds_.size(); i++) { + dataSize += computeStringSizeNoTag(upstreamNodeIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getUpstreamNodeIdsList().size(); + } + for (int i = 0; i < outputAliases_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, outputAliases_.get(i)); + } + if (targetCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Workflow.TaskNode) target_); + } + if (targetCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (flyteidl.core.Workflow.WorkflowNode) target_); + } + if (targetCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.core.Workflow.BranchNode) target_); + } + 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 flyteidl.core.Workflow.Node)) { + return super.equals(obj); + } + flyteidl.core.Workflow.Node other = (flyteidl.core.Workflow.Node) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getInputsList() + .equals(other.getInputsList())) return false; + if (!getUpstreamNodeIdsList() + .equals(other.getUpstreamNodeIdsList())) return false; + if (!getOutputAliasesList() + .equals(other.getOutputAliasesList())) return false; + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 6: + if (!getTaskNode() + .equals(other.getTaskNode())) return false; + break; + case 7: + if (!getWorkflowNode() + .equals(other.getWorkflowNode())) return false; + break; + case 8: + if (!getBranchNode() + .equals(other.getBranchNode())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getInputsCount() > 0) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputsList().hashCode(); + } + if (getUpstreamNodeIdsCount() > 0) { + hash = (37 * hash) + UPSTREAM_NODE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getUpstreamNodeIdsList().hashCode(); + } + if (getOutputAliasesCount() > 0) { + hash = (37 * hash) + OUTPUT_ALIASES_FIELD_NUMBER; + hash = (53 * hash) + getOutputAliasesList().hashCode(); + } + switch (targetCase_) { + case 6: + hash = (37 * hash) + TASK_NODE_FIELD_NUMBER; + hash = (53 * hash) + getTaskNode().hashCode(); + break; + case 7: + hash = (37 * hash) + WORKFLOW_NODE_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowNode().hashCode(); + break; + case 8: + hash = (37 * hash) + BRANCH_NODE_FIELD_NUMBER; + hash = (53 * hash) + getBranchNode().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.Node parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Node parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Node parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Node parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Node parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Node parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Node parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Node 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 flyteidl.core.Workflow.Node parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Node 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 flyteidl.core.Workflow.Node parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Node 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(flyteidl.core.Workflow.Node 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 Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
+     * node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Node} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Node) + flyteidl.core.Workflow.NodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); + } + + // Construct using flyteidl.core.Workflow.Node.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInputsFieldBuilder(); + getOutputAliasesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + inputsBuilder_.clear(); + } + upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + if (outputAliasesBuilder_ == null) { + outputAliases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + outputAliasesBuilder_.clear(); + } + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.Node getDefaultInstanceForType() { + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.Node build() { + flyteidl.core.Workflow.Node result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.Node buildPartial() { + flyteidl.core.Workflow.Node result = new flyteidl.core.Workflow.Node(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.id_ = id_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (inputsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (((bitField0_ & 0x00000008) != 0)) { + upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.upstreamNodeIds_ = upstreamNodeIds_; + if (outputAliasesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.outputAliases_ = outputAliases_; + } else { + result.outputAliases_ = outputAliasesBuilder_.build(); + } + if (targetCase_ == 6) { + if (taskNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = taskNodeBuilder_.build(); + } + } + if (targetCase_ == 7) { + if (workflowNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = workflowNodeBuilder_.build(); + } + } + if (targetCase_ == 8) { + if (branchNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = branchNodeBuilder_.build(); + } + } + result.bitField0_ = to_bitField0_; + result.targetCase_ = targetCase_; + 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 flyteidl.core.Workflow.Node) { + return mergeFrom((flyteidl.core.Workflow.Node)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.Node other) { + if (other == flyteidl.core.Workflow.Node.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (inputsBuilder_ == null) { + if (!other.inputs_.isEmpty()) { + if (inputs_.isEmpty()) { + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureInputsIsMutable(); + inputs_.addAll(other.inputs_); + } + onChanged(); + } + } else { + if (!other.inputs_.isEmpty()) { + if (inputsBuilder_.isEmpty()) { + inputsBuilder_.dispose(); + inputsBuilder_ = null; + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000004); + inputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputsFieldBuilder() : null; + } else { + inputsBuilder_.addAllMessages(other.inputs_); + } + } + } + if (!other.upstreamNodeIds_.isEmpty()) { + if (upstreamNodeIds_.isEmpty()) { + upstreamNodeIds_ = other.upstreamNodeIds_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.addAll(other.upstreamNodeIds_); + } + onChanged(); + } + if (outputAliasesBuilder_ == null) { + if (!other.outputAliases_.isEmpty()) { + if (outputAliases_.isEmpty()) { + outputAliases_ = other.outputAliases_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureOutputAliasesIsMutable(); + outputAliases_.addAll(other.outputAliases_); + } + onChanged(); + } + } else { + if (!other.outputAliases_.isEmpty()) { + if (outputAliasesBuilder_.isEmpty()) { + outputAliasesBuilder_.dispose(); + outputAliasesBuilder_ = null; + outputAliases_ = other.outputAliases_; + bitField0_ = (bitField0_ & ~0x00000010); + outputAliasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputAliasesFieldBuilder() : null; + } else { + outputAliasesBuilder_.addAllMessages(other.outputAliases_); + } + } + } + switch (other.getTargetCase()) { + case TASK_NODE: { + mergeTaskNode(other.getTaskNode()); + break; + } + case WORKFLOW_NODE: { + mergeWorkflowNode(other.getWorkflowNode()); + break; + } + case BRANCH_NODE: { + mergeBranchNode(other.getBranchNode()); + break; + } + case TARGET_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 { + flyteidl.core.Workflow.Node parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.Node) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + 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; + } + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + 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; + } + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Workflow.NodeMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder setMetadata(flyteidl.core.Workflow.NodeMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder setMetadata( + flyteidl.core.Workflow.NodeMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder mergeMetadata(flyteidl.core.Workflow.NodeMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Workflow.NodeMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List inputs_ = + java.util.Collections.emptyList(); + private void ensureInputsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + inputs_ = new java.util.ArrayList(inputs_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> inputsBuilder_; + + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List getInputsList() { + if (inputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputs_); + } else { + return inputsBuilder_.getMessageList(); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public int getInputsCount() { + if (inputsBuilder_ == null) { + return inputs_.size(); + } else { + return inputsBuilder_.getCount(); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding getInputs(int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); + } else { + return inputsBuilder_.getMessage(index); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder setInputs( + int index, flyteidl.core.Literals.Binding value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.set(index, value); + onChanged(); + } else { + inputsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder setInputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.set(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs(flyteidl.core.Literals.Binding value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(value); + onChanged(); + } else { + inputsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs( + int index, flyteidl.core.Literals.Binding value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(index, value); + onChanged(); + } else { + inputsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs( + flyteidl.core.Literals.Binding.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addAllInputs( + java.lang.Iterable values) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputs_); + onChanged(); + } else { + inputsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + inputsBuilder_.clear(); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder removeInputs(int index) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.remove(index); + onChanged(); + } else { + inputsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder getInputsBuilder( + int index) { + return getInputsFieldBuilder().getBuilder(index); + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( + int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); } else { + return inputsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List + getInputsOrBuilderList() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputs_); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addInputsBuilder() { + return getInputsFieldBuilder().addBuilder( + flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addInputsBuilder( + int index) { + return getInputsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List + getInputsBuilderList() { + return getInputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( + inputs_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private com.google.protobuf.LazyStringList upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUpstreamNodeIdsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(upstreamNodeIds_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ProtocolStringList + getUpstreamNodeIdsList() { + return upstreamNodeIds_.getUnmodifiableView(); + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public int getUpstreamNodeIdsCount() { + return upstreamNodeIds_.size(); + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public java.lang.String getUpstreamNodeIds(int index) { + return upstreamNodeIds_.get(index); + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ByteString + getUpstreamNodeIdsBytes(int index) { + return upstreamNodeIds_.getByteString(index); + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder setUpstreamNodeIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder addUpstreamNodeIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.add(value); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder addAllUpstreamNodeIds( + java.lang.Iterable values) { + ensureUpstreamNodeIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, upstreamNodeIds_); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder clearUpstreamNodeIds() { + upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder addUpstreamNodeIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.add(value); + onChanged(); + return this; + } + + private java.util.List outputAliases_ = + java.util.Collections.emptyList(); + private void ensureOutputAliasesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + outputAliases_ = new java.util.ArrayList(outputAliases_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> outputAliasesBuilder_; + + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List getOutputAliasesList() { + if (outputAliasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputAliases_); + } else { + return outputAliasesBuilder_.getMessageList(); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public int getOutputAliasesCount() { + if (outputAliasesBuilder_ == null) { + return outputAliases_.size(); + } else { + return outputAliasesBuilder_.getCount(); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias getOutputAliases(int index) { + if (outputAliasesBuilder_ == null) { + return outputAliases_.get(index); + } else { + return outputAliasesBuilder_.getMessage(index); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder setOutputAliases( + int index, flyteidl.core.Workflow.Alias value) { + if (outputAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputAliasesIsMutable(); + outputAliases_.set(index, value); + onChanged(); + } else { + outputAliasesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder setOutputAliases( + int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.set(index, builderForValue.build()); + onChanged(); + } else { + outputAliasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases(flyteidl.core.Workflow.Alias value) { + if (outputAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputAliasesIsMutable(); + outputAliases_.add(value); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases( + int index, flyteidl.core.Workflow.Alias value) { + if (outputAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputAliasesIsMutable(); + outputAliases_.add(index, value); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases( + flyteidl.core.Workflow.Alias.Builder builderForValue) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.add(builderForValue.build()); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases( + int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.add(index, builderForValue.build()); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addAllOutputAliases( + java.lang.Iterable values) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputAliases_); + onChanged(); + } else { + outputAliasesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder clearOutputAliases() { + if (outputAliasesBuilder_ == null) { + outputAliases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + outputAliasesBuilder_.clear(); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder removeOutputAliases(int index) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.remove(index); + onChanged(); + } else { + outputAliasesBuilder_.remove(index); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias.Builder getOutputAliasesBuilder( + int index) { + return getOutputAliasesFieldBuilder().getBuilder(index); + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( + int index) { + if (outputAliasesBuilder_ == null) { + return outputAliases_.get(index); } else { + return outputAliasesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List + getOutputAliasesOrBuilderList() { + if (outputAliasesBuilder_ != null) { + return outputAliasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputAliases_); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder() { + return getOutputAliasesFieldBuilder().addBuilder( + flyteidl.core.Workflow.Alias.getDefaultInstance()); + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder( + int index) { + return getOutputAliasesFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.Alias.getDefaultInstance()); + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List + getOutputAliasesBuilderList() { + return getOutputAliasesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> + getOutputAliasesFieldBuilder() { + if (outputAliasesBuilder_ == null) { + outputAliasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder>( + outputAliases_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + outputAliases_ = null; + } + return outputAliasesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> taskNodeBuilder_; + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public boolean hasTaskNode() { + return targetCase_ == 6; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNode getTaskNode() { + if (taskNodeBuilder_ == null) { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } else { + if (targetCase_ == 6) { + return taskNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder setTaskNode(flyteidl.core.Workflow.TaskNode value) { + if (taskNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + taskNodeBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder setTaskNode( + flyteidl.core.Workflow.TaskNode.Builder builderForValue) { + if (taskNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + taskNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 6; + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder mergeTaskNode(flyteidl.core.Workflow.TaskNode value) { + if (taskNodeBuilder_ == null) { + if (targetCase_ == 6 && + target_ != flyteidl.core.Workflow.TaskNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.TaskNode.newBuilder((flyteidl.core.Workflow.TaskNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 6) { + taskNodeBuilder_.mergeFrom(value); + } + taskNodeBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder clearTaskNode() { + if (taskNodeBuilder_ == null) { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + } + taskNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNode.Builder getTaskNodeBuilder() { + return getTaskNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { + if ((targetCase_ == 6) && (taskNodeBuilder_ != null)) { + return taskNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> + getTaskNodeFieldBuilder() { + if (taskNodeBuilder_ == null) { + if (!(targetCase_ == 6)) { + target_ = flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + taskNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder>( + (flyteidl.core.Workflow.TaskNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 6; + onChanged();; + return taskNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> workflowNodeBuilder_; + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public boolean hasWorkflowNode() { + return targetCase_ == 7; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { + if (workflowNodeBuilder_ == null) { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } else { + if (targetCase_ == 7) { + return workflowNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder setWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { + if (workflowNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + workflowNodeBuilder_.setMessage(value); + } + targetCase_ = 7; + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder setWorkflowNode( + flyteidl.core.Workflow.WorkflowNode.Builder builderForValue) { + if (workflowNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + workflowNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 7; + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder mergeWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { + if (workflowNodeBuilder_ == null) { + if (targetCase_ == 7 && + target_ != flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.WorkflowNode.newBuilder((flyteidl.core.Workflow.WorkflowNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 7) { + workflowNodeBuilder_.mergeFrom(value); + } + workflowNodeBuilder_.setMessage(value); + } + targetCase_ = 7; + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder clearWorkflowNode() { + if (workflowNodeBuilder_ == null) { + if (targetCase_ == 7) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 7) { + targetCase_ = 0; + target_ = null; + } + workflowNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNode.Builder getWorkflowNodeBuilder() { + return getWorkflowNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { + if ((targetCase_ == 7) && (workflowNodeBuilder_ != null)) { + return workflowNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> + getWorkflowNodeFieldBuilder() { + if (workflowNodeBuilder_ == null) { + if (!(targetCase_ == 7)) { + target_ = flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + workflowNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder>( + (flyteidl.core.Workflow.WorkflowNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 7; + onChanged();; + return workflowNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> branchNodeBuilder_; + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public boolean hasBranchNode() { + return targetCase_ == 8; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNode getBranchNode() { + if (branchNodeBuilder_ == null) { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } else { + if (targetCase_ == 8) { + return branchNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder setBranchNode(flyteidl.core.Workflow.BranchNode value) { + if (branchNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + branchNodeBuilder_.setMessage(value); + } + targetCase_ = 8; + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder setBranchNode( + flyteidl.core.Workflow.BranchNode.Builder builderForValue) { + if (branchNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + branchNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 8; + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder mergeBranchNode(flyteidl.core.Workflow.BranchNode value) { + if (branchNodeBuilder_ == null) { + if (targetCase_ == 8 && + target_ != flyteidl.core.Workflow.BranchNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.BranchNode.newBuilder((flyteidl.core.Workflow.BranchNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 8) { + branchNodeBuilder_.mergeFrom(value); + } + branchNodeBuilder_.setMessage(value); + } + targetCase_ = 8; + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder clearBranchNode() { + if (branchNodeBuilder_ == null) { + if (targetCase_ == 8) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 8) { + targetCase_ = 0; + target_ = null; + } + branchNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNode.Builder getBranchNodeBuilder() { + return getBranchNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { + if ((targetCase_ == 8) && (branchNodeBuilder_ != null)) { + return branchNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> + getBranchNodeFieldBuilder() { + if (branchNodeBuilder_ == null) { + if (!(targetCase_ == 8)) { + target_ = flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + branchNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder>( + (flyteidl.core.Workflow.BranchNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 8; + onChanged();; + return branchNodeBuilder_; + } + @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:flyteidl.core.Node) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Node) + private static final flyteidl.core.Workflow.Node DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.Node(); + } + + public static flyteidl.core.Workflow.Node getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Node(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 flyteidl.core.Workflow.Node getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + boolean hasQualityOfService(); + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + flyteidl.core.Execution.QualityOfService getQualityOfService(); + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); + + /** + *
+     * Defines how the system should behave when a failure is detected in the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + int getOnFailureValue(); + /** + *
+     * Defines how the system should behave when a failure is detected in the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure(); + } + /** + *
+   * Metadata for the entire workflow. Defines execution behavior that does not change the final outputs of the workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadata} + */ + public static final class WorkflowMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowMetadata) + WorkflowMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowMetadata.newBuilder() to construct. + private WorkflowMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowMetadata() { + onFailure_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowMetadata( + 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: { + flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; + if (qualityOfService_ != null) { + subBuilder = qualityOfService_.toBuilder(); + } + qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qualityOfService_); + qualityOfService_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + onFailure_ = rawValue; + 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 flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); + } + + /** + *
+     * Failure Handling Strategy
+     * 
+ * + * Protobuf enum {@code flyteidl.core.WorkflowMetadata.OnFailurePolicy} + */ + public enum OnFailurePolicy + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically
+       * abort all currently running nodes and clean up resources before finally marking the workflow executions as
+       * failed.
+       * 
+ * + * FAIL_IMMEDIATELY = 0; + */ + FAIL_IMMEDIATELY(0), + /** + *
+       * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will
+       * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run.
+       * Other nodes that will be executed to completion before cleaning up resources and marking the workflow
+       * execution as failed.
+       * 
+ * + * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; + */ + FAIL_AFTER_EXECUTABLE_NODES_COMPLETE(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically
+       * abort all currently running nodes and clean up resources before finally marking the workflow executions as
+       * failed.
+       * 
+ * + * FAIL_IMMEDIATELY = 0; + */ + public static final int FAIL_IMMEDIATELY_VALUE = 0; + /** + *
+       * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will
+       * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run.
+       * Other nodes that will be executed to completion before cleaning up resources and marking the workflow
+       * execution as failed.
+       * 
+ * + * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; + */ + public static final int FAIL_AFTER_EXECUTABLE_NODES_COMPLETE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OnFailurePolicy valueOf(int value) { + return forNumber(value); + } + + public static OnFailurePolicy forNumber(int value) { + switch (value) { + case 0: return FAIL_IMMEDIATELY; + case 1: return FAIL_AFTER_EXECUTABLE_NODES_COMPLETE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + OnFailurePolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OnFailurePolicy findValueByNumber(int number) { + return OnFailurePolicy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.core.Workflow.WorkflowMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final OnFailurePolicy[] VALUES = values(); + + public static OnFailurePolicy 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 OnFailurePolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowMetadata.OnFailurePolicy) + } + + public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 1; + private flyteidl.core.Execution.QualityOfService qualityOfService_; + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public boolean hasQualityOfService() { + return qualityOfService_ != null; + } + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + return getQualityOfService(); + } + + public static final int ON_FAILURE_FIELD_NUMBER = 2; + private int onFailure_; + /** + *
+     * Defines how the system should behave when a failure is detected in the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public int getOnFailureValue() { + return onFailure_; + } + /** + *
+     * Defines how the system should behave when a failure is detected in the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure() { + @SuppressWarnings("deprecation") + flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy result = flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.valueOf(onFailure_); + return result == null ? flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.UNRECOGNIZED : result; + } + + 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 (qualityOfService_ != null) { + output.writeMessage(1, getQualityOfService()); + } + if (onFailure_ != flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.FAIL_IMMEDIATELY.getNumber()) { + output.writeEnum(2, onFailure_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (qualityOfService_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getQualityOfService()); + } + if (onFailure_ != flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.FAIL_IMMEDIATELY.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, onFailure_); + } + 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 flyteidl.core.Workflow.WorkflowMetadata)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowMetadata other = (flyteidl.core.Workflow.WorkflowMetadata) obj; + + if (hasQualityOfService() != other.hasQualityOfService()) return false; + if (hasQualityOfService()) { + if (!getQualityOfService() + .equals(other.getQualityOfService())) return false; + } + if (onFailure_ != other.onFailure_) 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 (hasQualityOfService()) { + hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getQualityOfService().hashCode(); + } + hash = (37 * hash) + ON_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + onFailure_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadata 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 flyteidl.core.Workflow.WorkflowMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadata 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 flyteidl.core.Workflow.WorkflowMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadata 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(flyteidl.core.Workflow.WorkflowMetadata 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; + } + /** + *
+     * Metadata for the entire workflow. Defines execution behavior that does not change the final outputs of the workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowMetadata) + flyteidl.core.Workflow.WorkflowMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowMetadata.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 (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + onFailure_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadata build() { + flyteidl.core.Workflow.WorkflowMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadata buildPartial() { + flyteidl.core.Workflow.WorkflowMetadata result = new flyteidl.core.Workflow.WorkflowMetadata(this); + if (qualityOfServiceBuilder_ == null) { + result.qualityOfService_ = qualityOfService_; + } else { + result.qualityOfService_ = qualityOfServiceBuilder_.build(); + } + result.onFailure_ = onFailure_; + 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 flyteidl.core.Workflow.WorkflowMetadata) { + return mergeFrom((flyteidl.core.Workflow.WorkflowMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowMetadata other) { + if (other == flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance()) return this; + if (other.hasQualityOfService()) { + mergeQualityOfService(other.getQualityOfService()); + } + if (other.onFailure_ != 0) { + setOnFailureValue(other.getOnFailureValue()); + } + 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 { + flyteidl.core.Workflow.WorkflowMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Execution.QualityOfService qualityOfService_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public boolean hasQualityOfService() { + return qualityOfServiceBuilder_ != null || qualityOfService_ != null; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } else { + return qualityOfServiceBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualityOfService_ = value; + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public Builder setQualityOfService( + flyteidl.core.Execution.QualityOfService.Builder builderForValue) { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = builderForValue.build(); + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (qualityOfService_ != null) { + qualityOfService_ = + flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); + } else { + qualityOfService_ = value; + } + onChanged(); + } else { + qualityOfServiceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public Builder clearQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + onChanged(); + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { + + onChanged(); + return getQualityOfServiceFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if (qualityOfServiceBuilder_ != null) { + return qualityOfServiceBuilder_.getMessageOrBuilder(); + } else { + return qualityOfService_ == null ? + flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> + getQualityOfServiceFieldBuilder() { + if (qualityOfServiceBuilder_ == null) { + qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( + getQualityOfService(), + getParentForChildren(), + isClean()); + qualityOfService_ = null; + } + return qualityOfServiceBuilder_; + } + + private int onFailure_ = 0; + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public int getOnFailureValue() { + return onFailure_; + } + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public Builder setOnFailureValue(int value) { + onFailure_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure() { + @SuppressWarnings("deprecation") + flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy result = flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.valueOf(onFailure_); + return result == null ? flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.UNRECOGNIZED : result; + } + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public Builder setOnFailure(flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy value) { + if (value == null) { + throw new NullPointerException(); + } + + onFailure_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public Builder clearOnFailure() { + + onFailure_ = 0; + 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:flyteidl.core.WorkflowMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadata) + private static final flyteidl.core.Workflow.WorkflowMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowMetadata(); + } + + public static flyteidl.core.Workflow.WorkflowMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowMetadata(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 flyteidl.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowMetadataDefaultsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowMetadataDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identify whether workflow is interruptible.
+     * The value set at the workflow level will be the defualt value used for nodes
+     * unless explicitly set at the node level.
+     * 
+ * + * bool interruptible = 1; + */ + boolean getInterruptible(); + } + /** + *
+   * Default Workflow Metadata for the entire workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadataDefaults} + */ + public static final class WorkflowMetadataDefaults extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowMetadataDefaults) + WorkflowMetadataDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowMetadataDefaults.newBuilder() to construct. + private WorkflowMetadataDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowMetadataDefaults() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowMetadataDefaults( + 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 8: { + + interruptible_ = input.readBool(); + 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 flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadataDefaults.class, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder.class); + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 1; + private boolean interruptible_; + /** + *
+     * Identify whether workflow is interruptible.
+     * The value set at the workflow level will be the defualt value used for nodes
+     * unless explicitly set at the node level.
+     * 
+ * + * bool interruptible = 1; + */ + public boolean getInterruptible() { + return interruptible_; + } + + 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 (interruptible_ != false) { + output.writeBool(1, interruptible_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (interruptible_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, interruptible_); + } + 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 flyteidl.core.Workflow.WorkflowMetadataDefaults)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowMetadataDefaults other = (flyteidl.core.Workflow.WorkflowMetadataDefaults) obj; + + if (getInterruptible() + != other.getInterruptible()) 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) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterruptible()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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 flyteidl.core.Workflow.WorkflowMetadataDefaults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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 flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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(flyteidl.core.Workflow.WorkflowMetadataDefaults 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 Workflow Metadata for the entire workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadataDefaults} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowMetadataDefaults) + flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadataDefaults.class, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowMetadataDefaults.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(); + interruptible_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadataDefaults build() { + flyteidl.core.Workflow.WorkflowMetadataDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadataDefaults buildPartial() { + flyteidl.core.Workflow.WorkflowMetadataDefaults result = new flyteidl.core.Workflow.WorkflowMetadataDefaults(this); + result.interruptible_ = interruptible_; + 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 flyteidl.core.Workflow.WorkflowMetadataDefaults) { + return mergeFrom((flyteidl.core.Workflow.WorkflowMetadataDefaults)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowMetadataDefaults other) { + if (other == flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance()) return this; + if (other.getInterruptible() != false) { + setInterruptible(other.getInterruptible()); + } + 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 { + flyteidl.core.Workflow.WorkflowMetadataDefaults parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowMetadataDefaults) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean interruptible_ ; + /** + *
+       * Identify whether workflow is interruptible.
+       * The value set at the workflow level will be the defualt value used for nodes
+       * unless explicitly set at the node level.
+       * 
+ * + * bool interruptible = 1; + */ + public boolean getInterruptible() { + return interruptible_; + } + /** + *
+       * Identify whether workflow is interruptible.
+       * The value set at the workflow level will be the defualt value used for nodes
+       * unless explicitly set at the node level.
+       * 
+ * + * bool interruptible = 1; + */ + public Builder setInterruptible(boolean value) { + + interruptible_ = value; + onChanged(); + return this; + } + /** + *
+       * Identify whether workflow is interruptible.
+       * The value set at the workflow level will be the defualt value used for nodes
+       * unless explicitly set at the node level.
+       * 
+ * + * bool interruptible = 1; + */ + public Builder clearInterruptible() { + + interruptible_ = false; + 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:flyteidl.core.WorkflowMetadataDefaults) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadataDefaults) + private static final flyteidl.core.Workflow.WorkflowMetadataDefaults DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowMetadataDefaults(); + } + + public static flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowMetadataDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowMetadataDefaults(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 flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowTemplateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + boolean hasMetadata(); + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + flyteidl.core.Workflow.WorkflowMetadata getMetadata(); + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + boolean hasInterface(); + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + flyteidl.core.Interface.TypedInterface getInterface(); + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); + + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + java.util.List + getNodesList(); + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + flyteidl.core.Workflow.Node getNodes(int index); + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + int getNodesCount(); + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + java.util.List + getNodesOrBuilderList(); + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index); + + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + java.util.List + getOutputsList(); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + flyteidl.core.Literals.Binding getOutputs(int index); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + int getOutputsCount(); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + java.util.List + getOutputsOrBuilderList(); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index); + + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + boolean hasFailureNode(); + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + flyteidl.core.Workflow.Node getFailureNode(); + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder(); + + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + boolean hasMetadataDefaults(); + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults(); + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder(); + } + /** + *
+   * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
+   * directed acyclic graph.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowTemplate} + */ + public static final class WorkflowTemplate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowTemplate) + WorkflowTemplateOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowTemplate.newBuilder() to construct. + private WorkflowTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowTemplate() { + nodes_ = java.util.Collections.emptyList(); + outputs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowTemplate( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Workflow.WorkflowMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Workflow.WorkflowMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; + if (interface_ != null) { + subBuilder = interface_.toBuilder(); + } + interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(interface_); + interface_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + nodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + nodes_.add( + input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + outputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + outputs_.add( + input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); + break; + } + case 50: { + flyteidl.core.Workflow.Node.Builder subBuilder = null; + if (failureNode_ != null) { + subBuilder = failureNode_.toBuilder(); + } + failureNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(failureNode_); + failureNode_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder subBuilder = null; + if (metadataDefaults_ != null) { + subBuilder = metadataDefaults_.toBuilder(); + } + metadataDefaults_ = input.readMessage(flyteidl.core.Workflow.WorkflowMetadataDefaults.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadataDefaults_); + metadataDefaults_ = 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_ & 0x00000008) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int METADATA_FIELD_NUMBER = 2; + private flyteidl.core.Workflow.WorkflowMetadata metadata_; + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int INTERFACE_FIELD_NUMBER = 3; + private flyteidl.core.Interface.TypedInterface interface_; + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public boolean hasInterface() { + return interface_ != null; + } + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + return getInterface(); + } + + public static final int NODES_FIELD_NUMBER = 4; + private java.util.List nodes_; + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List getNodesList() { + return nodes_; + } + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List + getNodesOrBuilderList() { + return nodes_; + } + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public int getNodesCount() { + return nodes_.size(); + } + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + return nodes_.get(index); + } + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + return nodes_.get(index); + } + + public static final int OUTPUTS_FIELD_NUMBER = 5; + private java.util.List outputs_; + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List getOutputsList() { + return outputs_; + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public int getOutputsCount() { + return outputs_.size(); + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + return outputs_.get(index); + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + return outputs_.get(index); + } + + public static final int FAILURE_NODE_FIELD_NUMBER = 6; + private flyteidl.core.Workflow.Node failureNode_; + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public boolean hasFailureNode() { + return failureNode_ != null; + } + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.Node getFailureNode() { + return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; + } + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { + return getFailureNode(); + } + + public static final int METADATA_DEFAULTS_FIELD_NUMBER = 7; + private flyteidl.core.Workflow.WorkflowMetadataDefaults metadataDefaults_; + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public boolean hasMetadataDefaults() { + return metadataDefaults_ != null; + } + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults() { + return metadataDefaults_ == null ? flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; + } + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder() { + return getMetadataDefaults(); + } + + 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 (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + if (interface_ != null) { + output.writeMessage(3, getInterface()); + } + for (int i = 0; i < nodes_.size(); i++) { + output.writeMessage(4, nodes_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(5, outputs_.get(i)); + } + if (failureNode_ != null) { + output.writeMessage(6, getFailureNode()); + } + if (metadataDefaults_ != null) { + output.writeMessage(7, getMetadataDefaults()); + } + 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 (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + if (interface_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInterface()); + } + for (int i = 0; i < nodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, nodes_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, outputs_.get(i)); + } + if (failureNode_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getFailureNode()); + } + if (metadataDefaults_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getMetadataDefaults()); + } + 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 flyteidl.core.Workflow.WorkflowTemplate)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowTemplate other = (flyteidl.core.Workflow.WorkflowTemplate) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasInterface() != other.hasInterface()) return false; + if (hasInterface()) { + if (!getInterface() + .equals(other.getInterface())) return false; + } + if (!getNodesList() + .equals(other.getNodesList())) return false; + if (!getOutputsList() + .equals(other.getOutputsList())) return false; + if (hasFailureNode() != other.hasFailureNode()) return false; + if (hasFailureNode()) { + if (!getFailureNode() + .equals(other.getFailureNode())) return false; + } + if (hasMetadataDefaults() != other.hasMetadataDefaults()) return false; + if (hasMetadataDefaults()) { + if (!getMetadataDefaults() + .equals(other.getMetadataDefaults())) 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(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasInterface()) { + hash = (37 * hash) + INTERFACE_FIELD_NUMBER; + hash = (53 * hash) + getInterface().hashCode(); + } + if (getNodesCount() > 0) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + getNodesList().hashCode(); + } + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + if (hasFailureNode()) { + hash = (37 * hash) + FAILURE_NODE_FIELD_NUMBER; + hash = (53 * hash) + getFailureNode().hashCode(); + } + if (hasMetadataDefaults()) { + hash = (37 * hash) + METADATA_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getMetadataDefaults().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowTemplate 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 flyteidl.core.Workflow.WorkflowTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowTemplate 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 flyteidl.core.Workflow.WorkflowTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowTemplate 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(flyteidl.core.Workflow.WorkflowTemplate 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; + } + /** + *
+     * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
+     * directed acyclic graph.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowTemplate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowTemplate) + flyteidl.core.Workflow.WorkflowTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodesFieldBuilder(); + getOutputsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (interfaceBuilder_ == null) { + interface_ = null; + } else { + interface_ = null; + interfaceBuilder_ = null; + } + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + nodesBuilder_.clear(); + } + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + outputsBuilder_.clear(); + } + if (failureNodeBuilder_ == null) { + failureNode_ = null; + } else { + failureNode_ = null; + failureNodeBuilder_ = null; + } + if (metadataDefaultsBuilder_ == null) { + metadataDefaults_ = null; + } else { + metadataDefaults_ = null; + metadataDefaultsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowTemplate build() { + flyteidl.core.Workflow.WorkflowTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowTemplate buildPartial() { + flyteidl.core.Workflow.WorkflowTemplate result = new flyteidl.core.Workflow.WorkflowTemplate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (interfaceBuilder_ == null) { + result.interface_ = interface_; + } else { + result.interface_ = interfaceBuilder_.build(); + } + if (nodesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.nodes_ = nodes_; + } else { + result.nodes_ = nodesBuilder_.build(); + } + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (failureNodeBuilder_ == null) { + result.failureNode_ = failureNode_; + } else { + result.failureNode_ = failureNodeBuilder_.build(); + } + if (metadataDefaultsBuilder_ == null) { + result.metadataDefaults_ = metadataDefaults_; + } else { + result.metadataDefaults_ = metadataDefaultsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.core.Workflow.WorkflowTemplate) { + return mergeFrom((flyteidl.core.Workflow.WorkflowTemplate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowTemplate other) { + if (other == flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasInterface()) { + mergeInterface(other.getInterface()); + } + if (nodesBuilder_ == null) { + if (!other.nodes_.isEmpty()) { + if (nodes_.isEmpty()) { + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureNodesIsMutable(); + nodes_.addAll(other.nodes_); + } + onChanged(); + } + } else { + if (!other.nodes_.isEmpty()) { + if (nodesBuilder_.isEmpty()) { + nodesBuilder_.dispose(); + nodesBuilder_ = null; + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000008); + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodesFieldBuilder() : null; + } else { + nodesBuilder_.addAllMessages(other.nodes_); + } + } + } + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000010); + outputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputsFieldBuilder() : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + if (other.hasFailureNode()) { + mergeFailureNode(other.getFailureNode()); + } + if (other.hasMetadataDefaults()) { + mergeMetadataDefaults(other.getMetadataDefaults()); + } + 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 { + flyteidl.core.Workflow.WorkflowTemplate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowTemplate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.core.Workflow.WorkflowMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder setMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder setMetadata( + flyteidl.core.Workflow.WorkflowMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder mergeMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Workflow.WorkflowMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private flyteidl.core.Interface.TypedInterface interface_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public boolean hasInterface() { + return interfaceBuilder_ != null || interface_ != null; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + if (interfaceBuilder_ == null) { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } else { + return interfaceBuilder_.getMessage(); + } + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interface_ = value; + onChanged(); + } else { + interfaceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder setInterface( + flyteidl.core.Interface.TypedInterface.Builder builderForValue) { + if (interfaceBuilder_ == null) { + interface_ = builderForValue.build(); + onChanged(); + } else { + interfaceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (interface_ != null) { + interface_ = + flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); + } else { + interface_ = value; + } + onChanged(); + } else { + interfaceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder clearInterface() { + if (interfaceBuilder_ == null) { + interface_ = null; + onChanged(); + } else { + interface_ = null; + interfaceBuilder_ = null; + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { + + onChanged(); + return getInterfaceFieldBuilder().getBuilder(); + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + if (interfaceBuilder_ != null) { + return interfaceBuilder_.getMessageOrBuilder(); + } else { + return interface_ == null ? + flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> + getInterfaceFieldBuilder() { + if (interfaceBuilder_ == null) { + interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( + getInterface(), + getParentForChildren(), + isClean()); + interface_ = null; + } + return interfaceBuilder_; + } + + private java.util.List nodes_ = + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; + + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes(flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodes_); + onChanged(); + } else { + nodesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + nodesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node.Builder getNodesBuilder( + int index) { + return getNodesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { + return nodesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { + return getNodesFieldBuilder().addBuilder( + flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder( + int index) { + return getNodesFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List + getNodesBuilderList() { + return getNodesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + nodes_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + nodes_ = null; + } + return nodesBuilder_; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; + + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs(flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs( + flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( + int index) { + return getOutputsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { + return getOutputsFieldBuilder().addBuilder( + flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( + int index) { + return getOutputsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List + getOutputsBuilderList() { + return getOutputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( + outputs_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private flyteidl.core.Workflow.Node failureNode_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> failureNodeBuilder_; + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public boolean hasFailureNode() { + return failureNodeBuilder_ != null || failureNode_ != null; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.Node getFailureNode() { + if (failureNodeBuilder_ == null) { + return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; + } else { + return failureNodeBuilder_.getMessage(); + } + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder setFailureNode(flyteidl.core.Workflow.Node value) { + if (failureNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failureNode_ = value; + onChanged(); + } else { + failureNodeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder setFailureNode( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (failureNodeBuilder_ == null) { + failureNode_ = builderForValue.build(); + onChanged(); + } else { + failureNodeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder mergeFailureNode(flyteidl.core.Workflow.Node value) { + if (failureNodeBuilder_ == null) { + if (failureNode_ != null) { + failureNode_ = + flyteidl.core.Workflow.Node.newBuilder(failureNode_).mergeFrom(value).buildPartial(); + } else { + failureNode_ = value; + } + onChanged(); + } else { + failureNodeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder clearFailureNode() { + if (failureNodeBuilder_ == null) { + failureNode_ = null; + onChanged(); + } else { + failureNode_ = null; + failureNodeBuilder_ = null; + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.Node.Builder getFailureNodeBuilder() { + + onChanged(); + return getFailureNodeFieldBuilder().getBuilder(); + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { + if (failureNodeBuilder_ != null) { + return failureNodeBuilder_.getMessageOrBuilder(); + } else { + return failureNode_ == null ? + flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; + } + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getFailureNodeFieldBuilder() { + if (failureNodeBuilder_ == null) { + failureNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + getFailureNode(), + getParentForChildren(), + isClean()); + failureNode_ = null; + } + return failureNodeBuilder_; + } + + private flyteidl.core.Workflow.WorkflowMetadataDefaults metadataDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder> metadataDefaultsBuilder_; + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public boolean hasMetadataDefaults() { + return metadataDefaultsBuilder_ != null || metadataDefaults_ != null; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults() { + if (metadataDefaultsBuilder_ == null) { + return metadataDefaults_ == null ? flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; + } else { + return metadataDefaultsBuilder_.getMessage(); + } + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public Builder setMetadataDefaults(flyteidl.core.Workflow.WorkflowMetadataDefaults value) { + if (metadataDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadataDefaults_ = value; + onChanged(); + } else { + metadataDefaultsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public Builder setMetadataDefaults( + flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder builderForValue) { + if (metadataDefaultsBuilder_ == null) { + metadataDefaults_ = builderForValue.build(); + onChanged(); + } else { + metadataDefaultsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public Builder mergeMetadataDefaults(flyteidl.core.Workflow.WorkflowMetadataDefaults value) { + if (metadataDefaultsBuilder_ == null) { + if (metadataDefaults_ != null) { + metadataDefaults_ = + flyteidl.core.Workflow.WorkflowMetadataDefaults.newBuilder(metadataDefaults_).mergeFrom(value).buildPartial(); + } else { + metadataDefaults_ = value; + } + onChanged(); + } else { + metadataDefaultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public Builder clearMetadataDefaults() { + if (metadataDefaultsBuilder_ == null) { + metadataDefaults_ = null; + onChanged(); + } else { + metadataDefaults_ = null; + metadataDefaultsBuilder_ = null; + } + + return this; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder getMetadataDefaultsBuilder() { + + onChanged(); + return getMetadataDefaultsFieldBuilder().getBuilder(); + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder() { + if (metadataDefaultsBuilder_ != null) { + return metadataDefaultsBuilder_.getMessageOrBuilder(); + } else { + return metadataDefaults_ == null ? + flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; + } + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder> + getMetadataDefaultsFieldBuilder() { + if (metadataDefaultsBuilder_ == null) { + metadataDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder>( + getMetadataDefaults(), + getParentForChildren(), + isClean()); + metadataDefaults_ = null; + } + return metadataDefaultsBuilder_; + } + @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:flyteidl.core.WorkflowTemplate) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowTemplate) + private static final flyteidl.core.Workflow.WorkflowTemplate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowTemplate(); + } + + public static flyteidl.core.Workflow.WorkflowTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowTemplate(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 flyteidl.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_IfBlock_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_IfBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_IfElseBlock_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BranchNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BranchNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_NodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Alias_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Alias_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Node_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Node_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowTemplate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowTemplate_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\034flyteidl/core/workflow.proto\022\rflyteidl" + + ".core\032\035flyteidl/core/condition.proto\032\035fl" + + "yteidl/core/execution.proto\032\036flyteidl/co" + + "re/identifier.proto\032\035flyteidl/core/inter" + + "face.proto\032\034flyteidl/core/literals.proto" + + "\032\031flyteidl/core/types.proto\032\036google/prot" + + "obuf/duration.proto\"f\n\007IfBlock\0223\n\tcondit" + + "ion\030\001 \001(\0132 .flyteidl.core.BooleanExpress" + + "ion\022&\n\tthen_node\030\002 \001(\0132\023.flyteidl.core.N" + + "ode\"\266\001\n\013IfElseBlock\022$\n\004case\030\001 \001(\0132\026.flyt" + + "eidl.core.IfBlock\022%\n\005other\030\002 \003(\0132\026.flyte" + + "idl.core.IfBlock\022(\n\telse_node\030\003 \001(\0132\023.fl" + + "yteidl.core.NodeH\000\022%\n\005error\030\004 \001(\0132\024.flyt" + + "eidl.core.ErrorH\000B\t\n\007default\"9\n\nBranchNo" + + "de\022+\n\007if_else\030\001 \001(\0132\032.flyteidl.core.IfEl" + + "seBlock\"J\n\010TaskNode\0221\n\014reference_id\030\001 \001(" + + "\0132\031.flyteidl.core.IdentifierH\000B\013\n\trefere" + + "nce\"\207\001\n\014WorkflowNode\0223\n\016launchplan_ref\030\001" + + " \001(\0132\031.flyteidl.core.IdentifierH\000\0225\n\020sub" + + "_workflow_ref\030\002 \001(\0132\031.flyteidl.core.Iden" + + "tifierH\000B\013\n\treference\"\247\001\n\014NodeMetadata\022\014" + + "\n\004name\030\001 \001(\t\022*\n\007timeout\030\004 \001(\0132\031.google.p" + + "rotobuf.Duration\022-\n\007retries\030\005 \001(\0132\034.flyt" + + "eidl.core.RetryStrategy\022\027\n\rinterruptible" + + "\030\006 \001(\010H\000B\025\n\023interruptible_value\"#\n\005Alias" + + "\022\013\n\003var\030\001 \001(\t\022\r\n\005alias\030\002 \001(\t\"\322\002\n\004Node\022\n\n" + + "\002id\030\001 \001(\t\022-\n\010metadata\030\002 \001(\0132\033.flyteidl.c" + + "ore.NodeMetadata\022&\n\006inputs\030\003 \003(\0132\026.flyte" + + "idl.core.Binding\022\031\n\021upstream_node_ids\030\004 " + + "\003(\t\022,\n\016output_aliases\030\005 \003(\0132\024.flyteidl.c" + + "ore.Alias\022,\n\ttask_node\030\006 \001(\0132\027.flyteidl." + + "core.TaskNodeH\000\0224\n\rworkflow_node\030\007 \001(\0132\033" + + ".flyteidl.core.WorkflowNodeH\000\0220\n\013branch_" + + "node\030\010 \001(\0132\031.flyteidl.core.BranchNodeH\000B" + + "\010\n\006target\"\347\001\n\020WorkflowMetadata\022;\n\022qualit" + + "y_of_service\030\001 \001(\0132\037.flyteidl.core.Quali" + + "tyOfService\022C\n\non_failure\030\002 \001(\0162/.flytei" + + "dl.core.WorkflowMetadata.OnFailurePolicy" + + "\"Q\n\017OnFailurePolicy\022\024\n\020FAIL_IMMEDIATELY\020" + + "\000\022(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLET" + + "E\020\001\"1\n\030WorkflowMetadataDefaults\022\025\n\rinter" + + "ruptible\030\001 \001(\010\"\332\002\n\020WorkflowTemplate\022%\n\002i" + + "d\030\001 \001(\0132\031.flyteidl.core.Identifier\0221\n\010me" + + "tadata\030\002 \001(\0132\037.flyteidl.core.WorkflowMet" + + "adata\0220\n\tinterface\030\003 \001(\0132\035.flyteidl.core" + + ".TypedInterface\022\"\n\005nodes\030\004 \003(\0132\023.flyteid" + + "l.core.Node\022\'\n\007outputs\030\005 \003(\0132\026.flyteidl." + + "core.Binding\022)\n\014failure_node\030\006 \001(\0132\023.fly" + + "teidl.core.Node\022B\n\021metadata_defaults\030\007 \001" + + "(\0132\'.flyteidl.core.WorkflowMetadataDefau" + + "ltsB2Z0github.com/lyft/flyteidl/gen/pb-g" + + "o/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Condition.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Types.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_IfBlock_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_IfBlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_IfBlock_descriptor, + new java.lang.String[] { "Condition", "ThenNode", }); + internal_static_flyteidl_core_IfElseBlock_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_IfElseBlock_descriptor, + new java.lang.String[] { "Case", "Other", "ElseNode", "Error", "Default", }); + internal_static_flyteidl_core_BranchNode_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_BranchNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BranchNode_descriptor, + new java.lang.String[] { "IfElse", }); + internal_static_flyteidl_core_TaskNode_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_TaskNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskNode_descriptor, + new java.lang.String[] { "ReferenceId", "Reference", }); + internal_static_flyteidl_core_WorkflowNode_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowNode_descriptor, + new java.lang.String[] { "LaunchplanRef", "SubWorkflowRef", "Reference", }); + internal_static_flyteidl_core_NodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_NodeMetadata_descriptor, + new java.lang.String[] { "Name", "Timeout", "Retries", "Interruptible", "InterruptibleValue", }); + internal_static_flyteidl_core_Alias_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_Alias_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Alias_descriptor, + new java.lang.String[] { "Var", "Alias", }); + internal_static_flyteidl_core_Node_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_core_Node_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Node_descriptor, + new java.lang.String[] { "Id", "Metadata", "Inputs", "UpstreamNodeIds", "OutputAliases", "TaskNode", "WorkflowNode", "BranchNode", "Target", }); + internal_static_flyteidl_core_WorkflowMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowMetadata_descriptor, + new java.lang.String[] { "QualityOfService", "OnFailure", }); + internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor, + new java.lang.String[] { "Interruptible", }); + internal_static_flyteidl_core_WorkflowTemplate_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowTemplate_descriptor, + new java.lang.String[] { "Id", "Metadata", "Interface", "Nodes", "Outputs", "FailureNode", "MetadataDefaults", }); + flyteidl.core.Condition.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Types.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java b/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java new file mode 100644 index 000000000..d1e0ffbff --- /dev/null +++ b/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java @@ -0,0 +1,1251 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow_closure.proto + +package flyteidl.core; + +public final class WorkflowClosureOuterClass { + private WorkflowClosureOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + boolean hasWorkflow(); + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + flyteidl.core.Workflow.WorkflowTemplate getWorkflow(); + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder(); + + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + java.util.List + getTasksList(); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + flyteidl.core.Tasks.TaskTemplate getTasks(int index); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + int getTasksCount(); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index); + } + /** + *
+   * Defines an enclosed package of workflow and tasks it references.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowClosure} + */ + public static final class WorkflowClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowClosure) + WorkflowClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowClosure.newBuilder() to construct. + private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowClosure() { + tasks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowClosure( + 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: { + flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; + if (workflow_ != null) { + subBuilder = workflow_.toBuilder(); + } + workflow_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflow_); + workflow_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + tasks_.add( + input.readMessage(flyteidl.core.Tasks.TaskTemplate.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_ & 0x00000002) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); + } + + private int bitField0_; + public static final int WORKFLOW_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.WorkflowTemplate workflow_; + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public boolean hasWorkflow() { + return workflow_ != null; + } + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { + return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; + } + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { + return getWorkflow(); + } + + public static final int TASKS_FIELD_NUMBER = 2; + private java.util.List tasks_; + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + return tasks_.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 (workflow_ != null) { + output.writeMessage(1, getWorkflow()); + } + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(2, tasks_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflow_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflow()); + } + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, tasks_.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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure)) { + return super.equals(obj); + } + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) obj; + + if (hasWorkflow() != other.hasWorkflow()) return false; + if (hasWorkflow()) { + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + } + if (!getTasksList() + .equals(other.getTasksList())) 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 (hasWorkflow()) { + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + } + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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(flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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; + } + /** + *
+     * Defines an enclosed package of workflow and tasks it references.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowClosure) + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); + } + + // Construct using flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTasksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (workflowBuilder_ == null) { + workflow_ = null; + } else { + workflow_ = null; + workflowBuilder_ = null; + } + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + tasksBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; + } + + @java.lang.Override + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { + return flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure build() { + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure buildPartial() { + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (workflowBuilder_ == null) { + result.workflow_ = workflow_; + } else { + result.workflow_ = workflowBuilder_.build(); + } + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) { + return mergeFrom((flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other) { + if (other == flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance()) return this; + if (other.hasWorkflow()) { + mergeWorkflow(other.getWorkflow()); + } + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000002); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + 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 { + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.Workflow.WorkflowTemplate workflow_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> workflowBuilder_; + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public boolean hasWorkflow() { + return workflowBuilder_ != null || workflow_ != null; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { + if (workflowBuilder_ == null) { + return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; + } else { + return workflowBuilder_.getMessage(); + } + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder setWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { + if (workflowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflow_ = value; + onChanged(); + } else { + workflowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder setWorkflow( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (workflowBuilder_ == null) { + workflow_ = builderForValue.build(); + onChanged(); + } else { + workflowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder mergeWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { + if (workflowBuilder_ == null) { + if (workflow_ != null) { + workflow_ = + flyteidl.core.Workflow.WorkflowTemplate.newBuilder(workflow_).mergeFrom(value).buildPartial(); + } else { + workflow_ = value; + } + onChanged(); + } else { + workflowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder clearWorkflow() { + if (workflowBuilder_ == null) { + workflow_ = null; + onChanged(); + } else { + workflow_ = null; + workflowBuilder_ = null; + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getWorkflowBuilder() { + + onChanged(); + return getWorkflowFieldBuilder().getBuilder(); + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { + if (workflowBuilder_ != null) { + return workflowBuilder_.getMessageOrBuilder(); + } else { + return workflow_ == null ? + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; + } + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getWorkflowFieldBuilder() { + if (workflowBuilder_ == null) { + workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + getWorkflow(), + getParentForChildren(), + isClean()); + workflow_ = null; + } + return workflowBuilder_; + } + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; + + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + tasks_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + @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:flyteidl.core.WorkflowClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowClosure) + private static final flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(); + } + + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowClosure(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 flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowClosure_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$flyteidl/core/workflow_closure.proto\022\r" + + "flyteidl.core\032\034flyteidl/core/workflow.pr" + + "oto\032\031flyteidl/core/tasks.proto\"p\n\017Workfl" + + "owClosure\0221\n\010workflow\030\001 \001(\0132\037.flyteidl.c" + + "ore.WorkflowTemplate\022*\n\005tasks\030\002 \003(\0132\033.fl" + + "yteidl.core.TaskTemplateB2Z0github.com/l" + + "yft/flyteidl/gen/pb-go/flyteidl/coreb\006pr" + + "oto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Workflow.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_WorkflowClosure_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowClosure_descriptor, + new java.lang.String[] { "Workflow", "Tasks", }); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/event/Event.java b/gen/pb-java/flyteidl/event/Event.java new file mode 100644 index 000000000..36ca67248 --- /dev/null +++ b/gen/pb-java/flyteidl/event/Event.java @@ -0,0 +1,8733 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/event/event.proto + +package flyteidl.event; + +public final class Event { + private Event() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowExecutionEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowExecutionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + boolean hasExecutionId(); + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + java.lang.String getProducerId(); + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + com.google.protobuf.ByteString + getProducerIdBytes(); + + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); + + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + boolean hasOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + java.lang.String getOutputUri(); + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + boolean hasError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + public flyteidl.event.Event.WorkflowExecutionEvent.OutputResultCase getOutputResultCase(); + } + /** + * Protobuf type {@code flyteidl.event.WorkflowExecutionEvent} + */ + public static final class WorkflowExecutionEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowExecutionEvent) + WorkflowExecutionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionEvent.newBuilder() to construct. + private WorkflowExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionEvent() { + producerId_ = ""; + phase_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionEvent( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + producerId_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 5; + outputResult_ = s; + break; + } + case 50: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 6) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 6; + 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 flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(5), + ERROR(6), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 5: return OUTPUT_URI; + case 6: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + public static final int PRODUCER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object producerId_; + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + 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(); + producerId_ = s; + return s; + } + } + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 5; + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 5) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 5) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 6; + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public boolean hasError() { + return outputResultCase_ == 6; + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (executionId_ != null) { + output.writeMessage(1, getExecutionId()); + } + if (!getProducerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + if (occurredAt_ != null) { + output.writeMessage(4, getOccurredAt()); + } + if (outputResultCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputResult_); + } + if (outputResultCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getExecutionId()); + } + if (!getProducerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOccurredAt()); + } + if (outputResultCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputResult_); + } + if (outputResultCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + 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 flyteidl.event.Event.WorkflowExecutionEvent)) { + return super.equals(obj); + } + flyteidl.event.Event.WorkflowExecutionEvent other = (flyteidl.event.Event.WorkflowExecutionEvent) obj; + + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) return false; + } + if (!getProducerId() + .equals(other.getProducerId())) return false; + if (phase_ != other.phase_) return false; + if (hasOccurredAt() != other.hasOccurredAt()) return false; + if (hasOccurredAt()) { + if (!getOccurredAt() + .equals(other.getOccurredAt())) return false; + } + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 5: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 6: + if (!getError() + .equals(other.getError())) 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(); + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; + hash = (53 * hash) + getProducerId().hashCode(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + switch (outputResultCase_) { + case 5: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 6: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowExecutionEvent 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 flyteidl.event.Event.WorkflowExecutionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowExecutionEvent 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 flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowExecutionEvent 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(flyteidl.event.Event.WorkflowExecutionEvent 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 flyteidl.event.WorkflowExecutionEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowExecutionEvent) + flyteidl.event.Event.WorkflowExecutionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); + } + + // Construct using flyteidl.event.Event.WorkflowExecutionEvent.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 (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + producerId_ = ""; + + phase_ = 0; + + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { + return flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowExecutionEvent build() { + flyteidl.event.Event.WorkflowExecutionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowExecutionEvent buildPartial() { + flyteidl.event.Event.WorkflowExecutionEvent result = new flyteidl.event.Event.WorkflowExecutionEvent(this); + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.build(); + } + result.producerId_ = producerId_; + result.phase_ = phase_; + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + if (outputResultCase_ == 5) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 6) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + result.outputResultCase_ = outputResultCase_; + 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 flyteidl.event.Event.WorkflowExecutionEvent) { + return mergeFrom((flyteidl.event.Event.WorkflowExecutionEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.WorkflowExecutionEvent other) { + if (other == flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance()) return this; + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + if (!other.getProducerId().isEmpty()) { + producerId_ = other.producerId_; + onChanged(); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 5; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_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 { + flyteidl.event.Event.WorkflowExecutionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.WorkflowExecutionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + + private java.lang.Object producerId_ = ""; + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + producerId_ = value; + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder clearProducerId() { + + producerId_ = getDefaultInstance().getProducerId(); + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + producerId_ = value; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp occurredAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 5) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 5) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 5; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 5) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 5; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public boolean hasError() { + return outputResultCase_ == 6; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 6) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 6; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 6; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 6 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 6) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 6; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 6) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 6) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 6) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 6)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 6; + onChanged();; + return errorBuilder_; + } + @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:flyteidl.event.WorkflowExecutionEvent) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowExecutionEvent) + private static final flyteidl.event.Event.WorkflowExecutionEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowExecutionEvent(); + } + + public static flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionEvent(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 flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.NodeExecutionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + java.lang.String getProducerId(); + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + com.google.protobuf.ByteString + getProducerIdBytes(); + + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + flyteidl.core.Execution.NodeExecution.Phase getPhase(); + + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + boolean hasOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + * string input_uri = 5; + */ + java.lang.String getInputUri(); + /** + * string input_uri = 5; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + java.lang.String getOutputUri(); + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + boolean hasError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + boolean hasWorkflowNodeMetadata(); + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata(); + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); + + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + boolean hasParentTaskMetadata(); + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata(); + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder(); + + public flyteidl.event.Event.NodeExecutionEvent.OutputResultCase getOutputResultCase(); + + public flyteidl.event.Event.NodeExecutionEvent.TargetMetadataCase getTargetMetadataCase(); + } + /** + * Protobuf type {@code flyteidl.event.NodeExecutionEvent} + */ + public static final class NodeExecutionEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.NodeExecutionEvent) + NodeExecutionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionEvent.newBuilder() to construct. + private NodeExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionEvent() { + producerId_ = ""; + phase_ = 0; + inputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionEvent( + 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: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + producerId_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 6; + outputResult_ = s; + break; + } + case 58: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 7) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 7; + break; + } + case 66: { + flyteidl.event.Event.WorkflowNodeMetadata.Builder subBuilder = null; + if (targetMetadataCase_ == 8) { + subBuilder = ((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_).toBuilder(); + } + targetMetadata_ = + input.readMessage(flyteidl.event.Event.WorkflowNodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); + targetMetadata_ = subBuilder.buildPartial(); + } + targetMetadataCase_ = 8; + break; + } + case 74: { + flyteidl.event.Event.ParentTaskExecutionMetadata.Builder subBuilder = null; + if (parentTaskMetadata_ != null) { + subBuilder = parentTaskMetadata_.toBuilder(); + } + parentTaskMetadata_ = input.readMessage(flyteidl.event.Event.ParentTaskExecutionMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentTaskMetadata_); + parentTaskMetadata_ = 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 flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(6), + ERROR(7), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 6: return OUTPUT_URI; + case 7: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public enum TargetMetadataCase + implements com.google.protobuf.Internal.EnumLite { + WORKFLOW_NODE_METADATA(8), + TARGETMETADATA_NOT_SET(0); + private final int value; + private TargetMetadataCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static TargetMetadataCase forNumber(int value) { + switch (value) { + case 8: return WORKFLOW_NODE_METADATA; + case 0: return TARGETMETADATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int PRODUCER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object producerId_; + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + 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(); + producerId_ = s; + return s; + } + } + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 5; + private volatile java.lang.Object inputUri_; + /** + * string input_uri = 5; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + 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(); + inputUri_ = s; + return s; + } + } + /** + * string input_uri = 5; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 6; + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 6) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 6) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 7; + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public boolean hasError() { + return outputResultCase_ == 7; + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + + public static final int PARENT_TASK_METADATA_FIELD_NUMBER = 9; + private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_; + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public boolean hasParentTaskMetadata() { + return parentTaskMetadata_ != null; + } + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { + return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; + } + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { + return getParentTaskMetadata(); + } + + 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 (!getProducerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + if (occurredAt_ != null) { + output.writeMessage(4, getOccurredAt()); + } + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, inputUri_); + } + if (outputResultCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, outputResult_); + } + if (outputResultCase_ == 7) { + output.writeMessage(7, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (targetMetadataCase_ == 8) { + output.writeMessage(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); + } + if (parentTaskMetadata_ != null) { + output.writeMessage(9, getParentTaskMetadata()); + } + 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 (!getProducerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOccurredAt()); + } + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputUri_); + } + if (outputResultCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, outputResult_); + } + if (outputResultCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (targetMetadataCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); + } + if (parentTaskMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getParentTaskMetadata()); + } + 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 flyteidl.event.Event.NodeExecutionEvent)) { + return super.equals(obj); + } + flyteidl.event.Event.NodeExecutionEvent other = (flyteidl.event.Event.NodeExecutionEvent) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getProducerId() + .equals(other.getProducerId())) return false; + if (phase_ != other.phase_) return false; + if (hasOccurredAt() != other.hasOccurredAt()) return false; + if (hasOccurredAt()) { + if (!getOccurredAt() + .equals(other.getOccurredAt())) return false; + } + if (!getInputUri() + .equals(other.getInputUri())) return false; + if (hasParentTaskMetadata() != other.hasParentTaskMetadata()) return false; + if (hasParentTaskMetadata()) { + if (!getParentTaskMetadata() + .equals(other.getParentTaskMetadata())) return false; + } + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 6: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 7: + if (!getError() + .equals(other.getError())) return false; + break; + case 0: + default: + } + if (!getTargetMetadataCase().equals(other.getTargetMetadataCase())) return false; + switch (targetMetadataCase_) { + case 8: + if (!getWorkflowNodeMetadata() + .equals(other.getWorkflowNodeMetadata())) 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(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; + hash = (53 * hash) + getProducerId().hashCode(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasParentTaskMetadata()) { + hash = (37 * hash) + PARENT_TASK_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getParentTaskMetadata().hashCode(); + } + switch (outputResultCase_) { + case 6: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 7: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + switch (targetMetadataCase_) { + case 8: + hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.NodeExecutionEvent 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 flyteidl.event.Event.NodeExecutionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.NodeExecutionEvent 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 flyteidl.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.NodeExecutionEvent 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(flyteidl.event.Event.NodeExecutionEvent 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 flyteidl.event.NodeExecutionEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.NodeExecutionEvent) + flyteidl.event.Event.NodeExecutionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); + } + + // Construct using flyteidl.event.Event.NodeExecutionEvent.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + producerId_ = ""; + + phase_ = 0; + + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + inputUri_ = ""; + + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadata_ = null; + } else { + parentTaskMetadata_ = null; + parentTaskMetadataBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + targetMetadataCase_ = 0; + targetMetadata_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.NodeExecutionEvent getDefaultInstanceForType() { + return flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.NodeExecutionEvent build() { + flyteidl.event.Event.NodeExecutionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.NodeExecutionEvent buildPartial() { + flyteidl.event.Event.NodeExecutionEvent result = new flyteidl.event.Event.NodeExecutionEvent(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.producerId_ = producerId_; + result.phase_ = phase_; + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (outputResultCase_ == 6) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 7) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (targetMetadataCase_ == 8) { + if (workflowNodeMetadataBuilder_ == null) { + result.targetMetadata_ = targetMetadata_; + } else { + result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); + } + } + if (parentTaskMetadataBuilder_ == null) { + result.parentTaskMetadata_ = parentTaskMetadata_; + } else { + result.parentTaskMetadata_ = parentTaskMetadataBuilder_.build(); + } + result.outputResultCase_ = outputResultCase_; + result.targetMetadataCase_ = targetMetadataCase_; + 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 flyteidl.event.Event.NodeExecutionEvent) { + return mergeFrom((flyteidl.event.Event.NodeExecutionEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.NodeExecutionEvent other) { + if (other == flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getProducerId().isEmpty()) { + producerId_ = other.producerId_; + onChanged(); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasParentTaskMetadata()) { + mergeParentTaskMetadata(other.getParentTaskMetadata()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 6; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + switch (other.getTargetMetadataCase()) { + case WORKFLOW_NODE_METADATA: { + mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); + break; + } + case TARGETMETADATA_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 { + flyteidl.event.Event.NodeExecutionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.NodeExecutionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public Builder clearTargetMetadata() { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object producerId_ = ""; + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + producerId_ = value; + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder clearProducerId() { + + producerId_ = getDefaultInstance().getProducerId(); + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + producerId_ = value; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp occurredAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + * string input_uri = 5; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string input_uri = 5; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string input_uri = 5; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + * string input_uri = 5; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + * string input_uri = 5; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 6) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 6) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 6; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 6) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 6; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public boolean hasError() { + return outputResultCase_ == 7; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 7) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 7 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 7) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 7) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 7) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 7) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 7)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 7; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } else { + if (targetMetadataCase_ == 8) { + return workflowNodeMetadataBuilder_.getMessage(); + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetMetadata_ = value; + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata( + flyteidl.event.Event.WorkflowNodeMetadata.Builder builderForValue) { + if (workflowNodeMetadataBuilder_ == null) { + targetMetadata_ = builderForValue.build(); + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder mergeWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8 && + targetMetadata_ != flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) { + targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.newBuilder((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_) + .mergeFrom(value).buildPartial(); + } else { + targetMetadata_ = value; + } + onChanged(); + } else { + if (targetMetadataCase_ == 8) { + workflowNodeMetadataBuilder_.mergeFrom(value); + } + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder clearWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + } + } else { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + } + workflowNodeMetadataBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { + return getWorkflowNodeMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { + return workflowNodeMetadataBuilder_.getMessageOrBuilder(); + } else { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> + getWorkflowNodeMetadataFieldBuilder() { + if (workflowNodeMetadataBuilder_ == null) { + if (!(targetMetadataCase_ == 8)) { + targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder>( + (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_, + getParentForChildren(), + isClean()); + targetMetadata_ = null; + } + targetMetadataCase_ = 8; + onChanged();; + return workflowNodeMetadataBuilder_; + } + + private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> parentTaskMetadataBuilder_; + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public boolean hasParentTaskMetadata() { + return parentTaskMetadataBuilder_ != null || parentTaskMetadata_ != null; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { + if (parentTaskMetadataBuilder_ == null) { + return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; + } else { + return parentTaskMetadataBuilder_.getMessage(); + } + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder setParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { + if (parentTaskMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentTaskMetadata_ = value; + onChanged(); + } else { + parentTaskMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder setParentTaskMetadata( + flyteidl.event.Event.ParentTaskExecutionMetadata.Builder builderForValue) { + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadata_ = builderForValue.build(); + onChanged(); + } else { + parentTaskMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder mergeParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { + if (parentTaskMetadataBuilder_ == null) { + if (parentTaskMetadata_ != null) { + parentTaskMetadata_ = + flyteidl.event.Event.ParentTaskExecutionMetadata.newBuilder(parentTaskMetadata_).mergeFrom(value).buildPartial(); + } else { + parentTaskMetadata_ = value; + } + onChanged(); + } else { + parentTaskMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder clearParentTaskMetadata() { + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadata_ = null; + onChanged(); + } else { + parentTaskMetadata_ = null; + parentTaskMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadata.Builder getParentTaskMetadataBuilder() { + + onChanged(); + return getParentTaskMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { + if (parentTaskMetadataBuilder_ != null) { + return parentTaskMetadataBuilder_.getMessageOrBuilder(); + } else { + return parentTaskMetadata_ == null ? + flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; + } + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> + getParentTaskMetadataFieldBuilder() { + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder>( + getParentTaskMetadata(), + getParentForChildren(), + isClean()); + parentTaskMetadata_ = null; + } + return parentTaskMetadataBuilder_; + } + @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:flyteidl.event.NodeExecutionEvent) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.NodeExecutionEvent) + private static final flyteidl.event.Event.NodeExecutionEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.NodeExecutionEvent(); + } + + public static flyteidl.event.Event.NodeExecutionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionEvent(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 flyteidl.event.Event.NodeExecutionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowNodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowNodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + boolean hasExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + } + /** + *
+   * For Workflow Nodes we need to send information about the workflow that's launched
+   * 
+ * + * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} + */ + public static final class WorkflowNodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowNodeMetadata) + WorkflowNodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowNodeMetadata.newBuilder() to construct. + private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowNodeMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowNodeMetadata( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = 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 flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + 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 (executionId_ != null) { + output.writeMessage(1, getExecutionId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getExecutionId()); + } + 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 flyteidl.event.Event.WorkflowNodeMetadata)) { + return super.equals(obj); + } + flyteidl.event.Event.WorkflowNodeMetadata other = (flyteidl.event.Event.WorkflowNodeMetadata) obj; + + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) 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 (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowNodeMetadata 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 flyteidl.event.Event.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowNodeMetadata 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 flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowNodeMetadata 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(flyteidl.event.Event.WorkflowNodeMetadata 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; + } + /** + *
+     * For Workflow Nodes we need to send information about the workflow that's launched
+     * 
+ * + * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowNodeMetadata) + flyteidl.event.Event.WorkflowNodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); + } + + // Construct using flyteidl.event.Event.WorkflowNodeMetadata.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 (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowNodeMetadata build() { + flyteidl.event.Event.WorkflowNodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowNodeMetadata buildPartial() { + flyteidl.event.Event.WorkflowNodeMetadata result = new flyteidl.event.Event.WorkflowNodeMetadata(this); + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.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 flyteidl.event.Event.WorkflowNodeMetadata) { + return mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.WorkflowNodeMetadata other) { + if (other == flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) return this; + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + 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 { + flyteidl.event.Event.WorkflowNodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.WorkflowNodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + @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:flyteidl.event.WorkflowNodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowNodeMetadata) + private static final flyteidl.event.Event.WorkflowNodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowNodeMetadata(); + } + + public static flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowNodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowNodeMetadata(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 flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParentTaskExecutionMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.ParentTaskExecutionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.event.ParentTaskExecutionMetadata} + */ + public static final class ParentTaskExecutionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.ParentTaskExecutionMetadata) + ParentTaskExecutionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParentTaskExecutionMetadata.newBuilder() to construct. + private ParentTaskExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParentTaskExecutionMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParentTaskExecutionMetadata( + 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: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + 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()); + } + 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()); + } + 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 flyteidl.event.Event.ParentTaskExecutionMetadata)) { + return super.equals(obj); + } + flyteidl.event.Event.ParentTaskExecutionMetadata other = (flyteidl.event.Event.ParentTaskExecutionMetadata) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata 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 flyteidl.event.Event.ParentTaskExecutionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata 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 flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata 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(flyteidl.event.Event.ParentTaskExecutionMetadata 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 flyteidl.event.ParentTaskExecutionMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.ParentTaskExecutionMetadata) + flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); + } + + // Construct using flyteidl.event.Event.ParentTaskExecutionMetadata.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { + return flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.ParentTaskExecutionMetadata build() { + flyteidl.event.Event.ParentTaskExecutionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.ParentTaskExecutionMetadata buildPartial() { + flyteidl.event.Event.ParentTaskExecutionMetadata result = new flyteidl.event.Event.ParentTaskExecutionMetadata(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 flyteidl.event.Event.ParentTaskExecutionMetadata) { + return mergeFrom((flyteidl.event.Event.ParentTaskExecutionMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.ParentTaskExecutionMetadata other) { + if (other == flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + flyteidl.event.Event.ParentTaskExecutionMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.ParentTaskExecutionMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:flyteidl.event.ParentTaskExecutionMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.ParentTaskExecutionMetadata) + private static final flyteidl.event.Event.ParentTaskExecutionMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.ParentTaskExecutionMetadata(); + } + + public static flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParentTaskExecutionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParentTaskExecutionMetadata(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 flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.TaskExecutionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + boolean hasTaskId(); + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); + + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + boolean hasParentNodeExecutionId(); + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId(); + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder(); + + /** + *
+     * retry attempt number for this task, ie., 2 for the second attempt
+     * 
+ * + * uint32 retry_attempt = 3; + */ + int getRetryAttempt(); + + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + int getPhaseValue(); + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + flyteidl.core.Execution.TaskExecution.Phase getPhase(); + + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + java.lang.String getProducerId(); + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + com.google.protobuf.ByteString + getProducerIdBytes(); + + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + java.util.List + getLogsList(); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + flyteidl.core.Execution.TaskLog getLogs(int index); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + int getLogsCount(); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + java.util.List + getLogsOrBuilderList(); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index); + + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + boolean hasOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + java.lang.String getInputUri(); + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + java.lang.String getOutputUri(); + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + boolean hasError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + boolean hasCustomInfo(); + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + com.google.protobuf.Struct getCustomInfo(); + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); + + /** + *
+     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+     * that should be recorded regardless of the lack of phase change.
+     * The version field should be incremented when metadata changes across the duration of an individual phase.
+     * 
+ * + * uint32 phase_version = 12; + */ + int getPhaseVersion(); + + public flyteidl.event.Event.TaskExecutionEvent.OutputResultCase getOutputResultCase(); + } + /** + *
+   * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
+   * 
+ * + * Protobuf type {@code flyteidl.event.TaskExecutionEvent} + */ + public static final class TaskExecutionEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.TaskExecutionEvent) + TaskExecutionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionEvent.newBuilder() to construct. + private TaskExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionEvent() { + phase_ = 0; + producerId_ = ""; + logs_ = java.util.Collections.emptyList(); + inputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionEvent( + 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: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (taskId_ != null) { + subBuilder = taskId_.toBuilder(); + } + taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskId_); + taskId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (parentNodeExecutionId_ != null) { + subBuilder = parentNodeExecutionId_.toBuilder(); + } + parentNodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentNodeExecutionId_); + parentNodeExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + retryAttempt_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + producerId_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + logs_.add( + input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 9; + outputResult_ = s; + break; + } + case 82: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 10) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 10; + break; + } + case 90: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (customInfo_ != null) { + subBuilder = customInfo_.toBuilder(); + } + customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customInfo_); + customInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 96: { + + phaseVersion_ = input.readUInt32(); + 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_ & 0x00000020) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); + } + + private int bitField0_; + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(9), + ERROR(10), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 9: return OUTPUT_URI; + case 10: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int TASK_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskId_ != null; + } + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + return getTaskId(); + } + + public static final int PARENT_NODE_EXECUTION_ID_FIELD_NUMBER = 2; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_; + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public boolean hasParentNodeExecutionId() { + return parentNodeExecutionId_ != null; + } + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { + return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; + } + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { + return getParentNodeExecutionId(); + } + + public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; + private int retryAttempt_; + /** + *
+     * retry attempt number for this task, ie., 2 for the second attempt
+     * 
+ * + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + + public static final int PHASE_FIELD_NUMBER = 4; + private int phase_; + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + + public static final int PRODUCER_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object producerId_; + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + 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(); + producerId_ = s; + return s; + } + } + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGS_FIELD_NUMBER = 6; + private java.util.List logs_; + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List getLogsList() { + return logs_; + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public int getLogsCount() { + return logs_.size(); + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + return logs_.get(index); + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 8; + private volatile java.lang.Object inputUri_; + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + 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(); + inputUri_ = s; + return s; + } + } + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 9; + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 9) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 9) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 10; + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public boolean hasError() { + return outputResultCase_ == 10; + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int CUSTOM_INFO_FIELD_NUMBER = 11; + private com.google.protobuf.Struct customInfo_; + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public boolean hasCustomInfo() { + return customInfo_ != null; + } + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.Struct getCustomInfo() { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + return getCustomInfo(); + } + + public static final int PHASE_VERSION_FIELD_NUMBER = 12; + private int phaseVersion_; + /** + *
+     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+     * that should be recorded regardless of the lack of phase change.
+     * The version field should be incremented when metadata changes across the duration of an individual phase.
+     * 
+ * + * uint32 phase_version = 12; + */ + public int getPhaseVersion() { + return phaseVersion_; + } + + 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 (taskId_ != null) { + output.writeMessage(1, getTaskId()); + } + if (parentNodeExecutionId_ != null) { + output.writeMessage(2, getParentNodeExecutionId()); + } + if (retryAttempt_ != 0) { + output.writeUInt32(3, retryAttempt_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(4, phase_); + } + if (!getProducerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, producerId_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(6, logs_.get(i)); + } + if (occurredAt_ != null) { + output.writeMessage(7, getOccurredAt()); + } + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, inputUri_); + } + if (outputResultCase_ == 9) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, outputResult_); + } + if (outputResultCase_ == 10) { + output.writeMessage(10, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (customInfo_ != null) { + output.writeMessage(11, getCustomInfo()); + } + if (phaseVersion_ != 0) { + output.writeUInt32(12, phaseVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTaskId()); + } + if (parentNodeExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getParentNodeExecutionId()); + } + if (retryAttempt_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, retryAttempt_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, phase_); + } + if (!getProducerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, producerId_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, logs_.get(i)); + } + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getOccurredAt()); + } + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, inputUri_); + } + if (outputResultCase_ == 9) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, outputResult_); + } + if (outputResultCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (customInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getCustomInfo()); + } + if (phaseVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(12, phaseVersion_); + } + 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 flyteidl.event.Event.TaskExecutionEvent)) { + return super.equals(obj); + } + flyteidl.event.Event.TaskExecutionEvent other = (flyteidl.event.Event.TaskExecutionEvent) obj; + + if (hasTaskId() != other.hasTaskId()) return false; + if (hasTaskId()) { + if (!getTaskId() + .equals(other.getTaskId())) return false; + } + if (hasParentNodeExecutionId() != other.hasParentNodeExecutionId()) return false; + if (hasParentNodeExecutionId()) { + if (!getParentNodeExecutionId() + .equals(other.getParentNodeExecutionId())) return false; + } + if (getRetryAttempt() + != other.getRetryAttempt()) return false; + if (phase_ != other.phase_) return false; + if (!getProducerId() + .equals(other.getProducerId())) return false; + if (!getLogsList() + .equals(other.getLogsList())) return false; + if (hasOccurredAt() != other.hasOccurredAt()) return false; + if (hasOccurredAt()) { + if (!getOccurredAt() + .equals(other.getOccurredAt())) return false; + } + if (!getInputUri() + .equals(other.getInputUri())) return false; + if (hasCustomInfo() != other.hasCustomInfo()) return false; + if (hasCustomInfo()) { + if (!getCustomInfo() + .equals(other.getCustomInfo())) return false; + } + if (getPhaseVersion() + != other.getPhaseVersion()) return false; + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 9: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 10: + if (!getError() + .equals(other.getError())) 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(); + if (hasTaskId()) { + hash = (37 * hash) + TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskId().hashCode(); + } + if (hasParentNodeExecutionId()) { + hash = (37 * hash) + PARENT_NODE_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getParentNodeExecutionId().hashCode(); + } + hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; + hash = (53 * hash) + getRetryAttempt(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; + hash = (53 * hash) + getProducerId().hashCode(); + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasCustomInfo()) { + hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCustomInfo().hashCode(); + } + hash = (37 * hash) + PHASE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPhaseVersion(); + switch (outputResultCase_) { + case 9: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 10: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionEvent 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 flyteidl.event.Event.TaskExecutionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionEvent 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 flyteidl.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionEvent 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(flyteidl.event.Event.TaskExecutionEvent 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; + } + /** + *
+     * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
+     * 
+ * + * Protobuf type {@code flyteidl.event.TaskExecutionEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.TaskExecutionEvent) + flyteidl.event.Event.TaskExecutionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); + } + + // Construct using flyteidl.event.Event.TaskExecutionEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (taskIdBuilder_ == null) { + taskId_ = null; + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionId_ = null; + } else { + parentNodeExecutionId_ = null; + parentNodeExecutionIdBuilder_ = null; + } + retryAttempt_ = 0; + + phase_ = 0; + + producerId_ = ""; + + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + logsBuilder_.clear(); + } + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + inputUri_ = ""; + + if (customInfoBuilder_ == null) { + customInfo_ = null; + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + phaseVersion_ = 0; + + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionEvent getDefaultInstanceForType() { + return flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionEvent build() { + flyteidl.event.Event.TaskExecutionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionEvent buildPartial() { + flyteidl.event.Event.TaskExecutionEvent result = new flyteidl.event.Event.TaskExecutionEvent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (taskIdBuilder_ == null) { + result.taskId_ = taskId_; + } else { + result.taskId_ = taskIdBuilder_.build(); + } + if (parentNodeExecutionIdBuilder_ == null) { + result.parentNodeExecutionId_ = parentNodeExecutionId_; + } else { + result.parentNodeExecutionId_ = parentNodeExecutionIdBuilder_.build(); + } + result.retryAttempt_ = retryAttempt_; + result.phase_ = phase_; + result.producerId_ = producerId_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (outputResultCase_ == 9) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 10) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (customInfoBuilder_ == null) { + result.customInfo_ = customInfo_; + } else { + result.customInfo_ = customInfoBuilder_.build(); + } + result.phaseVersion_ = phaseVersion_; + result.bitField0_ = to_bitField0_; + result.outputResultCase_ = outputResultCase_; + 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 flyteidl.event.Event.TaskExecutionEvent) { + return mergeFrom((flyteidl.event.Event.TaskExecutionEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.TaskExecutionEvent other) { + if (other == flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance()) return this; + if (other.hasTaskId()) { + mergeTaskId(other.getTaskId()); + } + if (other.hasParentNodeExecutionId()) { + mergeParentNodeExecutionId(other.getParentNodeExecutionId()); + } + if (other.getRetryAttempt() != 0) { + setRetryAttempt(other.getRetryAttempt()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (!other.getProducerId().isEmpty()) { + producerId_ = other.producerId_; + onChanged(); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000020); + logsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasCustomInfo()) { + mergeCustomInfo(other.getCustomInfo()); + } + if (other.getPhaseVersion() != 0) { + setPhaseVersion(other.getPhaseVersion()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 9; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_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 { + flyteidl.event.Event.TaskExecutionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.TaskExecutionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskIdBuilder_ != null || taskId_ != null; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + if (taskIdBuilder_ == null) { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } else { + return taskIdBuilder_.getMessage(); + } + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskId_ = value; + onChanged(); + } else { + taskIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (taskIdBuilder_ == null) { + taskId_ = builderForValue.build(); + onChanged(); + } else { + taskIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (taskId_ != null) { + taskId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); + } else { + taskId_ = value; + } + onChanged(); + } else { + taskIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder clearTaskId() { + if (taskIdBuilder_ == null) { + taskId_ = null; + onChanged(); + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { + + onChanged(); + return getTaskIdFieldBuilder().getBuilder(); + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + if (taskIdBuilder_ != null) { + return taskIdBuilder_.getMessageOrBuilder(); + } else { + return taskId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getTaskIdFieldBuilder() { + if (taskIdBuilder_ == null) { + taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getTaskId(), + getParentForChildren(), + isClean()); + taskId_ = null; + } + return taskIdBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionIdBuilder_; + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public boolean hasParentNodeExecutionId() { + return parentNodeExecutionIdBuilder_ != null || parentNodeExecutionId_ != null; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { + if (parentNodeExecutionIdBuilder_ == null) { + return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; + } else { + return parentNodeExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder setParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentNodeExecutionId_ = value; + onChanged(); + } else { + parentNodeExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder setParentNodeExecutionId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionId_ = builderForValue.build(); + onChanged(); + } else { + parentNodeExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder mergeParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionIdBuilder_ == null) { + if (parentNodeExecutionId_ != null) { + parentNodeExecutionId_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecutionId_).mergeFrom(value).buildPartial(); + } else { + parentNodeExecutionId_ = value; + } + onChanged(); + } else { + parentNodeExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder clearParentNodeExecutionId() { + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionId_ = null; + onChanged(); + } else { + parentNodeExecutionId_ = null; + parentNodeExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionIdBuilder() { + + onChanged(); + return getParentNodeExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { + if (parentNodeExecutionIdBuilder_ != null) { + return parentNodeExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return parentNodeExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; + } + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getParentNodeExecutionIdFieldBuilder() { + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getParentNodeExecutionId(), + getParentForChildren(), + isClean()); + parentNodeExecutionId_ = null; + } + return parentNodeExecutionIdBuilder_; + } + + private int retryAttempt_ ; + /** + *
+       * retry attempt number for this task, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + /** + *
+       * retry attempt number for this task, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public Builder setRetryAttempt(int value) { + + retryAttempt_ = value; + onChanged(); + return this; + } + /** + *
+       * retry attempt number for this task, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public Builder clearRetryAttempt() { + + retryAttempt_ = 0; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private java.lang.Object producerId_ = ""; + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public Builder setProducerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + producerId_ = value; + onChanged(); + return this; + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public Builder clearProducerId() { + + producerId_ = getDefaultInstance().getProducerId(); + onChanged(); + return this; + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public Builder setProducerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + producerId_ = value; + onChanged(); + return this; + } + + private java.util.List logs_ = + java.util.Collections.emptyList(); + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; + + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs(flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder( + index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( + logs_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } + + private com.google.protobuf.Timestamp occurredAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 9) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 9) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 9; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 9) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 9; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public boolean hasError() { + return outputResultCase_ == 10; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 10) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 10 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 10) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 10) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 10)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 10; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.Struct customInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public boolean hasCustomInfo() { + return customInfoBuilder_ != null || customInfo_ != null; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.Struct getCustomInfo() { + if (customInfoBuilder_ == null) { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } else { + return customInfoBuilder_.getMessage(); + } + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder setCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customInfo_ = value; + onChanged(); + } else { + customInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder setCustomInfo( + com.google.protobuf.Struct.Builder builderForValue) { + if (customInfoBuilder_ == null) { + customInfo_ = builderForValue.build(); + onChanged(); + } else { + customInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder mergeCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (customInfo_ != null) { + customInfo_ = + com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); + } else { + customInfo_ = value; + } + onChanged(); + } else { + customInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder clearCustomInfo() { + if (customInfoBuilder_ == null) { + customInfo_ = null; + onChanged(); + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { + + onChanged(); + return getCustomInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + if (customInfoBuilder_ != null) { + return customInfoBuilder_.getMessageOrBuilder(); + } else { + return customInfo_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomInfoFieldBuilder() { + if (customInfoBuilder_ == null) { + customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustomInfo(), + getParentForChildren(), + isClean()); + customInfo_ = null; + } + return customInfoBuilder_; + } + + private int phaseVersion_ ; + /** + *
+       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+       * that should be recorded regardless of the lack of phase change.
+       * The version field should be incremented when metadata changes across the duration of an individual phase.
+       * 
+ * + * uint32 phase_version = 12; + */ + public int getPhaseVersion() { + return phaseVersion_; + } + /** + *
+       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+       * that should be recorded regardless of the lack of phase change.
+       * The version field should be incremented when metadata changes across the duration of an individual phase.
+       * 
+ * + * uint32 phase_version = 12; + */ + public Builder setPhaseVersion(int value) { + + phaseVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+       * that should be recorded regardless of the lack of phase change.
+       * The version field should be incremented when metadata changes across the duration of an individual phase.
+       * 
+ * + * uint32 phase_version = 12; + */ + public Builder clearPhaseVersion() { + + phaseVersion_ = 0; + 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:flyteidl.event.TaskExecutionEvent) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionEvent) + private static final flyteidl.event.Event.TaskExecutionEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.TaskExecutionEvent(); + } + + public static flyteidl.event.Event.TaskExecutionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionEvent(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 flyteidl.event.Event.TaskExecutionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_TaskExecutionEvent_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\032flyteidl/event/event.proto\022\016flyteidl.e" + + "vent\032\035flyteidl/core/execution.proto\032\036fly" + + "teidl/core/identifier.proto\032\037google/prot" + + "obuf/timestamp.proto\032\034google/protobuf/st" + + "ruct.proto\"\256\002\n\026WorkflowExecutionEvent\022@\n" + + "\014execution_id\030\001 \001(\0132*.flyteidl.core.Work" + + "flowExecutionIdentifier\022\023\n\013producer_id\030\002" + + " \001(\t\0225\n\005phase\030\003 \001(\0162&.flyteidl.core.Work" + + "flowExecution.Phase\022/\n\013occurred_at\030\004 \001(\013" + + "2\032.google.protobuf.Timestamp\022\024\n\noutput_u" + + "ri\030\005 \001(\tH\000\022.\n\005error\030\006 \001(\0132\035.flyteidl.cor" + + "e.ExecutionErrorH\000B\017\n\routput_result\"\321\003\n\022" + + "NodeExecutionEvent\0222\n\002id\030\001 \001(\0132&.flyteid" + + "l.core.NodeExecutionIdentifier\022\023\n\013produc" + + "er_id\030\002 \001(\t\0221\n\005phase\030\003 \001(\0162\".flyteidl.co" + + "re.NodeExecution.Phase\022/\n\013occurred_at\030\004 " + + "\001(\0132\032.google.protobuf.Timestamp\022\021\n\tinput" + + "_uri\030\005 \001(\t\022\024\n\noutput_uri\030\006 \001(\tH\000\022.\n\005erro" + + "r\030\007 \001(\0132\035.flyteidl.core.ExecutionErrorH\000" + + "\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyte" + + "idl.event.WorkflowNodeMetadataH\001\022I\n\024pare" + + "nt_task_metadata\030\t \001(\0132+.flyteidl.event." + + "ParentTaskExecutionMetadataB\017\n\routput_re" + + "sultB\021\n\017target_metadata\"X\n\024WorkflowNodeM" + + "etadata\022@\n\014execution_id\030\001 \001(\0132*.flyteidl" + + ".core.WorkflowExecutionIdentifier\"Q\n\033Par" + + "entTaskExecutionMetadata\0222\n\002id\030\001 \001(\0132&.f" + + "lyteidl.core.TaskExecutionIdentifier\"\357\003\n" + + "\022TaskExecutionEvent\022*\n\007task_id\030\001 \001(\0132\031.f" + + "lyteidl.core.Identifier\022H\n\030parent_node_e" + + "xecution_id\030\002 \001(\0132&.flyteidl.core.NodeEx" + + "ecutionIdentifier\022\025\n\rretry_attempt\030\003 \001(\r" + + "\0221\n\005phase\030\004 \001(\0162\".flyteidl.core.TaskExec" + + "ution.Phase\022\023\n\013producer_id\030\005 \001(\t\022$\n\004logs" + + "\030\006 \003(\0132\026.flyteidl.core.TaskLog\022/\n\013occurr" + + "ed_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022" + + "\021\n\tinput_uri\030\010 \001(\t\022\024\n\noutput_uri\030\t \001(\tH\000" + + "\022.\n\005error\030\n \001(\0132\035.flyteidl.core.Executio" + + "nErrorH\000\022,\n\013custom_info\030\013 \001(\0132\027.google.p" + + "rotobuf.Struct\022\025\n\rphase_version\030\014 \001(\rB\017\n" + + "\routput_resultB3Z1github.com/lyft/flytei" + + "dl/gen/pb-go/flyteidl/eventb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor, + new java.lang.String[] { "ExecutionId", "ProducerId", "Phase", "OccurredAt", "OutputUri", "Error", "OutputResult", }); + internal_static_flyteidl_event_NodeExecutionEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_NodeExecutionEvent_descriptor, + new java.lang.String[] { "Id", "ProducerId", "Phase", "OccurredAt", "InputUri", "OutputUri", "Error", "WorkflowNodeMetadata", "ParentTaskMetadata", "OutputResult", "TargetMetadata", }); + internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor, + new java.lang.String[] { "ExecutionId", }); + internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_event_TaskExecutionEvent_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_TaskExecutionEvent_descriptor, + new java.lang.String[] { "TaskId", "ParentNodeExecutionId", "RetryAttempt", "Phase", "ProducerId", "Logs", "OccurredAt", "InputUri", "OutputUri", "Error", "CustomInfo", "PhaseVersion", "OutputResult", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java b/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java new file mode 100644 index 000000000..2d04618c4 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java @@ -0,0 +1,759 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/array_job.proto + +package flyteidl.plugins; + +public final class ArrayJobOuterClass { + private ArrayJobOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ArrayJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.ArrayJob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+     * running instances might be more. This has to be a positive number if assigned. Default value is size.
+     * 
+ * + * int64 parallelism = 1; + */ + long getParallelism(); + + /** + *
+     * Defines the number of instances to launch at most. This number should match the size of the input if the job
+     * requires processing of all input data. This has to be a positive number.
+     * +required.
+     * 
+ * + * int64 size = 2; + */ + long getSize(); + + /** + *
+     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+     * assigned. Default value is size.
+     * 
+ * + * int64 min_successes = 3; + */ + long getMinSuccesses(); + } + /** + *
+   * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
+   * will be executed concurrently.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.ArrayJob} + */ + public static final class ArrayJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.ArrayJob) + ArrayJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArrayJob.newBuilder() to construct. + private ArrayJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ArrayJob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ArrayJob( + 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 8: { + + parallelism_ = input.readInt64(); + break; + } + case 16: { + + size_ = input.readInt64(); + break; + } + case 24: { + + minSuccesses_ = 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 flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); + } + + public static final int PARALLELISM_FIELD_NUMBER = 1; + private long parallelism_; + /** + *
+     * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+     * running instances might be more. This has to be a positive number if assigned. Default value is size.
+     * 
+ * + * int64 parallelism = 1; + */ + public long getParallelism() { + return parallelism_; + } + + public static final int SIZE_FIELD_NUMBER = 2; + private long size_; + /** + *
+     * Defines the number of instances to launch at most. This number should match the size of the input if the job
+     * requires processing of all input data. This has to be a positive number.
+     * +required.
+     * 
+ * + * int64 size = 2; + */ + public long getSize() { + return size_; + } + + public static final int MIN_SUCCESSES_FIELD_NUMBER = 3; + private long minSuccesses_; + /** + *
+     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+     * assigned. Default value is size.
+     * 
+ * + * int64 min_successes = 3; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + + 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 (parallelism_ != 0L) { + output.writeInt64(1, parallelism_); + } + if (size_ != 0L) { + output.writeInt64(2, size_); + } + if (minSuccesses_ != 0L) { + output.writeInt64(3, minSuccesses_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (parallelism_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, parallelism_); + } + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, size_); + } + if (minSuccesses_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, minSuccesses_); + } + 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob)) { + return super.equals(obj); + } + flyteidl.plugins.ArrayJobOuterClass.ArrayJob other = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) obj; + + if (getParallelism() + != other.getParallelism()) return false; + if (getSize() + != other.getSize()) return false; + if (getMinSuccesses() + != other.getMinSuccesses()) 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) + PARALLELISM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getParallelism()); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); + hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinSuccesses()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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(flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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; + } + /** + *
+     * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
+     * will be executed concurrently.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.ArrayJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.ArrayJob) + flyteidl.plugins.ArrayJobOuterClass.ArrayJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); + } + + // Construct using flyteidl.plugins.ArrayJobOuterClass.ArrayJob.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(); + parallelism_ = 0L; + + size_ = 0L; + + minSuccesses_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { + return flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob build() { + flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob buildPartial() { + flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(this); + result.parallelism_ = parallelism_; + result.size_ = size_; + result.minSuccesses_ = minSuccesses_; + 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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob) { + return mergeFrom((flyteidl.plugins.ArrayJobOuterClass.ArrayJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.ArrayJobOuterClass.ArrayJob other) { + if (other == flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance()) return this; + if (other.getParallelism() != 0L) { + setParallelism(other.getParallelism()); + } + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + if (other.getMinSuccesses() != 0L) { + setMinSuccesses(other.getMinSuccesses()); + } + 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 { + flyteidl.plugins.ArrayJobOuterClass.ArrayJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long parallelism_ ; + /** + *
+       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+       * running instances might be more. This has to be a positive number if assigned. Default value is size.
+       * 
+ * + * int64 parallelism = 1; + */ + public long getParallelism() { + return parallelism_; + } + /** + *
+       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+       * running instances might be more. This has to be a positive number if assigned. Default value is size.
+       * 
+ * + * int64 parallelism = 1; + */ + public Builder setParallelism(long value) { + + parallelism_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+       * running instances might be more. This has to be a positive number if assigned. Default value is size.
+       * 
+ * + * int64 parallelism = 1; + */ + public Builder clearParallelism() { + + parallelism_ = 0L; + onChanged(); + return this; + } + + private long size_ ; + /** + *
+       * Defines the number of instances to launch at most. This number should match the size of the input if the job
+       * requires processing of all input data. This has to be a positive number.
+       * +required.
+       * 
+ * + * int64 size = 2; + */ + public long getSize() { + return size_; + } + /** + *
+       * Defines the number of instances to launch at most. This number should match the size of the input if the job
+       * requires processing of all input data. This has to be a positive number.
+       * +required.
+       * 
+ * + * int64 size = 2; + */ + public Builder setSize(long value) { + + size_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the number of instances to launch at most. This number should match the size of the input if the job
+       * requires processing of all input data. This has to be a positive number.
+       * +required.
+       * 
+ * + * int64 size = 2; + */ + public Builder clearSize() { + + size_ = 0L; + onChanged(); + return this; + } + + private long minSuccesses_ ; + /** + *
+       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+       * assigned. Default value is size.
+       * 
+ * + * int64 min_successes = 3; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + /** + *
+       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+       * assigned. Default value is size.
+       * 
+ * + * int64 min_successes = 3; + */ + public Builder setMinSuccesses(long value) { + + minSuccesses_ = value; + onChanged(); + return this; + } + /** + *
+       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+       * assigned. Default value is size.
+       * 
+ * + * int64 min_successes = 3; + */ + public Builder clearMinSuccesses() { + + minSuccesses_ = 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:flyteidl.plugins.ArrayJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.ArrayJob) + private static final flyteidl.plugins.ArrayJobOuterClass.ArrayJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(); + } + + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrayJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArrayJob(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 flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_ArrayJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_ArrayJob_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 flyteidl/plugins/array_job.proto\022\020flyt" + + "eidl.plugins\"D\n\010ArrayJob\022\023\n\013parallelism\030" + + "\001 \001(\003\022\014\n\004size\030\002 \001(\003\022\025\n\rmin_successes\030\003 \001" + + "(\003B5Z3github.com/lyft/flyteidl/gen/pb-go" + + "/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_ArrayJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_ArrayJob_descriptor, + new java.lang.String[] { "Parallelism", "Size", "MinSuccesses", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/Presto.java b/gen/pb-java/flyteidl/plugins/Presto.java new file mode 100644 index 000000000..4ebb9a8be --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/Presto.java @@ -0,0 +1,1031 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/presto.proto + +package flyteidl.plugins; + +public final class Presto { + private Presto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface PrestoQueryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.PrestoQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * string routing_group = 1; + */ + java.lang.String getRoutingGroup(); + /** + * string routing_group = 1; + */ + com.google.protobuf.ByteString + getRoutingGroupBytes(); + + /** + * string catalog = 2; + */ + java.lang.String getCatalog(); + /** + * string catalog = 2; + */ + com.google.protobuf.ByteString + getCatalogBytes(); + + /** + * string schema = 3; + */ + java.lang.String getSchema(); + /** + * string schema = 3; + */ + com.google.protobuf.ByteString + getSchemaBytes(); + + /** + * string statement = 4; + */ + java.lang.String getStatement(); + /** + * string statement = 4; + */ + com.google.protobuf.ByteString + getStatementBytes(); + } + /** + *
+   * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field
+   * of a Presto task's TaskTemplate
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.PrestoQuery} + */ + public static final class PrestoQuery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.PrestoQuery) + PrestoQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrestoQuery.newBuilder() to construct. + private PrestoQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PrestoQuery() { + routingGroup_ = ""; + catalog_ = ""; + schema_ = ""; + statement_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PrestoQuery( + 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(); + + routingGroup_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + catalog_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + schema_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + statement_ = 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 flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Presto.PrestoQuery.class, flyteidl.plugins.Presto.PrestoQuery.Builder.class); + } + + public static final int ROUTING_GROUP_FIELD_NUMBER = 1; + private volatile java.lang.Object routingGroup_; + /** + * string routing_group = 1; + */ + public java.lang.String getRoutingGroup() { + java.lang.Object ref = routingGroup_; + 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(); + routingGroup_ = s; + return s; + } + } + /** + * string routing_group = 1; + */ + public com.google.protobuf.ByteString + getRoutingGroupBytes() { + java.lang.Object ref = routingGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + routingGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATALOG_FIELD_NUMBER = 2; + private volatile java.lang.Object catalog_; + /** + * string catalog = 2; + */ + public java.lang.String getCatalog() { + java.lang.Object ref = catalog_; + 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(); + catalog_ = s; + return s; + } + } + /** + * string catalog = 2; + */ + public com.google.protobuf.ByteString + getCatalogBytes() { + java.lang.Object ref = catalog_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalog_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 3; + private volatile java.lang.Object schema_; + /** + * string schema = 3; + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + 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(); + schema_ = s; + return s; + } + } + /** + * string schema = 3; + */ + public com.google.protobuf.ByteString + getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATEMENT_FIELD_NUMBER = 4; + private volatile java.lang.Object statement_; + /** + * string statement = 4; + */ + public java.lang.String getStatement() { + java.lang.Object ref = statement_; + 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(); + statement_ = s; + return s; + } + } + /** + * string statement = 4; + */ + public com.google.protobuf.ByteString + getStatementBytes() { + java.lang.Object ref = statement_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statement_ = 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 (!getRoutingGroupBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, routingGroup_); + } + if (!getCatalogBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, catalog_); + } + if (!getSchemaBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schema_); + } + if (!getStatementBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, statement_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRoutingGroupBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, routingGroup_); + } + if (!getCatalogBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, catalog_); + } + if (!getSchemaBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schema_); + } + if (!getStatementBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, statement_); + } + 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 flyteidl.plugins.Presto.PrestoQuery)) { + return super.equals(obj); + } + flyteidl.plugins.Presto.PrestoQuery other = (flyteidl.plugins.Presto.PrestoQuery) obj; + + if (!getRoutingGroup() + .equals(other.getRoutingGroup())) return false; + if (!getCatalog() + .equals(other.getCatalog())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; + if (!getStatement() + .equals(other.getStatement())) 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) + ROUTING_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getRoutingGroup().hashCode(); + hash = (37 * hash) + CATALOG_FIELD_NUMBER; + hash = (53 * hash) + getCatalog().hashCode(); + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + hash = (37 * hash) + STATEMENT_FIELD_NUMBER; + hash = (53 * hash) + getStatement().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Presto.PrestoQuery 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 flyteidl.plugins.Presto.PrestoQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Presto.PrestoQuery 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 flyteidl.plugins.Presto.PrestoQuery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Presto.PrestoQuery 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(flyteidl.plugins.Presto.PrestoQuery 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; + } + /** + *
+     * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field
+     * of a Presto task's TaskTemplate
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.PrestoQuery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.PrestoQuery) + flyteidl.plugins.Presto.PrestoQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Presto.PrestoQuery.class, flyteidl.plugins.Presto.PrestoQuery.Builder.class); + } + + // Construct using flyteidl.plugins.Presto.PrestoQuery.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(); + routingGroup_ = ""; + + catalog_ = ""; + + schema_ = ""; + + statement_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Presto.PrestoQuery getDefaultInstanceForType() { + return flyteidl.plugins.Presto.PrestoQuery.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Presto.PrestoQuery build() { + flyteidl.plugins.Presto.PrestoQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Presto.PrestoQuery buildPartial() { + flyteidl.plugins.Presto.PrestoQuery result = new flyteidl.plugins.Presto.PrestoQuery(this); + result.routingGroup_ = routingGroup_; + result.catalog_ = catalog_; + result.schema_ = schema_; + result.statement_ = statement_; + 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 flyteidl.plugins.Presto.PrestoQuery) { + return mergeFrom((flyteidl.plugins.Presto.PrestoQuery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Presto.PrestoQuery other) { + if (other == flyteidl.plugins.Presto.PrestoQuery.getDefaultInstance()) return this; + if (!other.getRoutingGroup().isEmpty()) { + routingGroup_ = other.routingGroup_; + onChanged(); + } + if (!other.getCatalog().isEmpty()) { + catalog_ = other.catalog_; + onChanged(); + } + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + onChanged(); + } + if (!other.getStatement().isEmpty()) { + statement_ = other.statement_; + 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 { + flyteidl.plugins.Presto.PrestoQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Presto.PrestoQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object routingGroup_ = ""; + /** + * string routing_group = 1; + */ + public java.lang.String getRoutingGroup() { + java.lang.Object ref = routingGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + routingGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string routing_group = 1; + */ + public com.google.protobuf.ByteString + getRoutingGroupBytes() { + java.lang.Object ref = routingGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + routingGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string routing_group = 1; + */ + public Builder setRoutingGroup( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + routingGroup_ = value; + onChanged(); + return this; + } + /** + * string routing_group = 1; + */ + public Builder clearRoutingGroup() { + + routingGroup_ = getDefaultInstance().getRoutingGroup(); + onChanged(); + return this; + } + /** + * string routing_group = 1; + */ + public Builder setRoutingGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + routingGroup_ = value; + onChanged(); + return this; + } + + private java.lang.Object catalog_ = ""; + /** + * string catalog = 2; + */ + public java.lang.String getCatalog() { + java.lang.Object ref = catalog_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalog_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string catalog = 2; + */ + public com.google.protobuf.ByteString + getCatalogBytes() { + java.lang.Object ref = catalog_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalog_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string catalog = 2; + */ + public Builder setCatalog( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + catalog_ = value; + onChanged(); + return this; + } + /** + * string catalog = 2; + */ + public Builder clearCatalog() { + + catalog_ = getDefaultInstance().getCatalog(); + onChanged(); + return this; + } + /** + * string catalog = 2; + */ + public Builder setCatalogBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + catalog_ = value; + onChanged(); + return this; + } + + private java.lang.Object schema_ = ""; + /** + * string schema = 3; + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string schema = 3; + */ + public com.google.protobuf.ByteString + getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string schema = 3; + */ + public Builder setSchema( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schema_ = value; + onChanged(); + return this; + } + /** + * string schema = 3; + */ + public Builder clearSchema() { + + schema_ = getDefaultInstance().getSchema(); + onChanged(); + return this; + } + /** + * string schema = 3; + */ + public Builder setSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schema_ = value; + onChanged(); + return this; + } + + private java.lang.Object statement_ = ""; + /** + * string statement = 4; + */ + public java.lang.String getStatement() { + java.lang.Object ref = statement_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statement_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string statement = 4; + */ + public com.google.protobuf.ByteString + getStatementBytes() { + java.lang.Object ref = statement_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string statement = 4; + */ + public Builder setStatement( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statement_ = value; + onChanged(); + return this; + } + /** + * string statement = 4; + */ + public Builder clearStatement() { + + statement_ = getDefaultInstance().getStatement(); + onChanged(); + return this; + } + /** + * string statement = 4; + */ + public Builder setStatementBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statement_ = 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:flyteidl.plugins.PrestoQuery) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.PrestoQuery) + private static final flyteidl.plugins.Presto.PrestoQuery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Presto.PrestoQuery(); + } + + public static flyteidl.plugins.Presto.PrestoQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrestoQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrestoQuery(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 flyteidl.plugins.Presto.PrestoQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_PrestoQuery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_PrestoQuery_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\035flyteidl/plugins/presto.proto\022\020flyteid" + + "l.plugins\032\031flyteidl/core/tasks.proto\"X\n\013" + + "PrestoQuery\022\025\n\rrouting_group\030\001 \001(\t\022\017\n\007ca" + + "talog\030\002 \001(\t\022\016\n\006schema\030\003 \001(\t\022\021\n\tstatement" + + "\030\004 \001(\tB5Z3github.com/lyft/flyteidl/gen/p" + + "b-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_PrestoQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_PrestoQuery_descriptor, + new java.lang.String[] { "RoutingGroup", "Catalog", "Schema", "Statement", }); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/Pytorch.java b/gen/pb-java/flyteidl/plugins/Pytorch.java new file mode 100644 index 000000000..020941bc0 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/Pytorch.java @@ -0,0 +1,560 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/pytorch.proto + +package flyteidl.plugins; + +public final class Pytorch { + private Pytorch() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DistributedPyTorchTrainingTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedPyTorchTrainingTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * number of worker replicas spawned in the cluster for this job
+     * 
+ * + * int32 workers = 1; + */ + int getWorkers(); + } + /** + *
+   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedPyTorchTrainingTask} + */ + public static final class DistributedPyTorchTrainingTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedPyTorchTrainingTask) + DistributedPyTorchTrainingTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedPyTorchTrainingTask.newBuilder() to construct. + private DistributedPyTorchTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedPyTorchTrainingTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedPyTorchTrainingTask( + 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 8: { + + workers_ = input.readInt32(); + 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 flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.Builder.class); + } + + public static final int WORKERS_FIELD_NUMBER = 1; + private int workers_; + /** + *
+     * number of worker replicas spawned in the cluster for this job
+     * 
+ * + * int32 workers = 1; + */ + public int getWorkers() { + return workers_; + } + + 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 (workers_ != 0) { + output.writeInt32(1, workers_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workers_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, workers_); + } + 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask)) { + return super.equals(obj); + } + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask other = (flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) obj; + + if (getWorkers() + != other.getWorkers()) 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) + WORKERS_FIELD_NUMBER; + hash = (53 * hash) + getWorkers(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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(flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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; + } + /** + *
+     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedPyTorchTrainingTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedPyTorchTrainingTask) + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.Builder.class); + } + + // Construct using flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.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(); + workers_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { + return flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask build() { + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask buildPartial() { + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask result = new flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask(this); + result.workers_ = workers_; + 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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) { + return mergeFrom((flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask other) { + if (other == flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance()) return this; + if (other.getWorkers() != 0) { + setWorkers(other.getWorkers()); + } + 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 { + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int workers_ ; + /** + *
+       * number of worker replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public int getWorkers() { + return workers_; + } + /** + *
+       * number of worker replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public Builder setWorkers(int value) { + + workers_ = value; + onChanged(); + return this; + } + /** + *
+       * number of worker replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public Builder clearWorkers() { + + workers_ = 0; + 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:flyteidl.plugins.DistributedPyTorchTrainingTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedPyTorchTrainingTask) + private static final flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask(); + } + + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedPyTorchTrainingTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedPyTorchTrainingTask(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 flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_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\036flyteidl/plugins/pytorch.proto\022\020flytei" + + "dl.plugins\"1\n\036DistributedPyTorchTraining" + + "Task\022\017\n\007workers\030\001 \001(\005B5Z3github.com/lyft" + + "/flyteidl/gen/pb-go/flyteidl/pluginsb\006pr" + + "oto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor, + new java.lang.String[] { "Workers", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/Qubole.java b/gen/pb-java/flyteidl/plugins/Qubole.java new file mode 100644 index 000000000..28cadb493 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/Qubole.java @@ -0,0 +1,2700 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/qubole.proto + +package flyteidl.plugins; + +public final class Qubole { + private Qubole() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface HiveQueryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * string query = 1; + */ + java.lang.String getQuery(); + /** + * string query = 1; + */ + com.google.protobuf.ByteString + getQueryBytes(); + + /** + * uint32 timeout_sec = 2; + */ + int getTimeoutSec(); + + /** + * uint32 retryCount = 3; + */ + int getRetryCount(); + } + /** + *
+   * Defines a query to execute on a hive cluster.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQuery} + */ + public static final class HiveQuery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQuery) + HiveQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use HiveQuery.newBuilder() to construct. + private HiveQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HiveQuery() { + query_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HiveQuery( + 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(); + + query_ = s; + break; + } + case 16: { + + timeoutSec_ = input.readUInt32(); + break; + } + case 24: { + + retryCount_ = input.readUInt32(); + 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 flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); + } + + public static final int QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object query_; + /** + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * string query = 1; + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEOUT_SEC_FIELD_NUMBER = 2; + private int timeoutSec_; + /** + * uint32 timeout_sec = 2; + */ + public int getTimeoutSec() { + return timeoutSec_; + } + + public static final int RETRYCOUNT_FIELD_NUMBER = 3; + private int retryCount_; + /** + * uint32 retryCount = 3; + */ + public int getRetryCount() { + return retryCount_; + } + + 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 (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + if (timeoutSec_ != 0) { + output.writeUInt32(2, timeoutSec_); + } + if (retryCount_ != 0) { + output.writeUInt32(3, retryCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + if (timeoutSec_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, timeoutSec_); + } + if (retryCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, retryCount_); + } + 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 flyteidl.plugins.Qubole.HiveQuery)) { + return super.equals(obj); + } + flyteidl.plugins.Qubole.HiveQuery other = (flyteidl.plugins.Qubole.HiveQuery) obj; + + if (!getQuery() + .equals(other.getQuery())) return false; + if (getTimeoutSec() + != other.getTimeoutSec()) return false; + if (getRetryCount() + != other.getRetryCount()) 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) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + TIMEOUT_SEC_FIELD_NUMBER; + hash = (53 * hash) + getTimeoutSec(); + hash = (37 * hash) + RETRYCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getRetryCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQuery 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 flyteidl.plugins.Qubole.HiveQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQuery 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 flyteidl.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQuery 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(flyteidl.plugins.Qubole.HiveQuery 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; + } + /** + *
+     * Defines a query to execute on a hive cluster.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQuery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQuery) + flyteidl.plugins.Qubole.HiveQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); + } + + // Construct using flyteidl.plugins.Qubole.HiveQuery.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(); + query_ = ""; + + timeoutSec_ = 0; + + retryCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQuery getDefaultInstanceForType() { + return flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQuery build() { + flyteidl.plugins.Qubole.HiveQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQuery buildPartial() { + flyteidl.plugins.Qubole.HiveQuery result = new flyteidl.plugins.Qubole.HiveQuery(this); + result.query_ = query_; + result.timeoutSec_ = timeoutSec_; + result.retryCount_ = retryCount_; + 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 flyteidl.plugins.Qubole.HiveQuery) { + return mergeFrom((flyteidl.plugins.Qubole.HiveQuery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQuery other) { + if (other == flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (other.getTimeoutSec() != 0) { + setTimeoutSec(other.getTimeoutSec()); + } + if (other.getRetryCount() != 0) { + setRetryCount(other.getRetryCount()); + } + 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 { + flyteidl.plugins.Qubole.HiveQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Qubole.HiveQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object query_ = ""; + /** + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string query = 1; + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string query = 1; + */ + public Builder setQuery( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * string query = 1; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * string query = 1; + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private int timeoutSec_ ; + /** + * uint32 timeout_sec = 2; + */ + public int getTimeoutSec() { + return timeoutSec_; + } + /** + * uint32 timeout_sec = 2; + */ + public Builder setTimeoutSec(int value) { + + timeoutSec_ = value; + onChanged(); + return this; + } + /** + * uint32 timeout_sec = 2; + */ + public Builder clearTimeoutSec() { + + timeoutSec_ = 0; + onChanged(); + return this; + } + + private int retryCount_ ; + /** + * uint32 retryCount = 3; + */ + public int getRetryCount() { + return retryCount_; + } + /** + * uint32 retryCount = 3; + */ + public Builder setRetryCount(int value) { + + retryCount_ = value; + onChanged(); + return this; + } + /** + * uint32 retryCount = 3; + */ + public Builder clearRetryCount() { + + retryCount_ = 0; + 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:flyteidl.plugins.HiveQuery) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQuery) + private static final flyteidl.plugins.Qubole.HiveQuery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQuery(); + } + + public static flyteidl.plugins.Qubole.HiveQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HiveQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HiveQuery(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 flyteidl.plugins.Qubole.HiveQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HiveQueryCollectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQueryCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + java.util.List + getQueriesList(); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + flyteidl.plugins.Qubole.HiveQuery getQueries(int index); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + int getQueriesCount(); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + java.util.List + getQueriesOrBuilderList(); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( + int index); + } + /** + *
+   * Defines a collection of hive queries.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} + */ + public static final class HiveQueryCollection extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQueryCollection) + HiveQueryCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use HiveQueryCollection.newBuilder() to construct. + private HiveQueryCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HiveQueryCollection() { + queries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HiveQueryCollection( + 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 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + queries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + queries_.add( + input.readMessage(flyteidl.plugins.Qubole.HiveQuery.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)) { + queries_ = java.util.Collections.unmodifiableList(queries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); + } + + public static final int QUERIES_FIELD_NUMBER = 2; + private java.util.List queries_; + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List getQueriesList() { + return queries_; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List + getQueriesOrBuilderList() { + return queries_; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public int getQueriesCount() { + return queries_.size(); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { + return queries_.get(index); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( + int index) { + return queries_.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 < queries_.size(); i++) { + output.writeMessage(2, queries_.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 < queries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, queries_.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 flyteidl.plugins.Qubole.HiveQueryCollection)) { + return super.equals(obj); + } + flyteidl.plugins.Qubole.HiveQueryCollection other = (flyteidl.plugins.Qubole.HiveQueryCollection) obj; + + if (!getQueriesList() + .equals(other.getQueriesList())) 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 (getQueriesCount() > 0) { + hash = (37 * hash) + QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getQueriesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection 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 flyteidl.plugins.Qubole.HiveQueryCollection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection 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 flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection 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(flyteidl.plugins.Qubole.HiveQueryCollection 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; + } + /** + *
+     * Defines a collection of hive queries.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQueryCollection) + flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); + } + + // Construct using flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getQueriesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + queriesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { + return flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQueryCollection build() { + flyteidl.plugins.Qubole.HiveQueryCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQueryCollection buildPartial() { + flyteidl.plugins.Qubole.HiveQueryCollection result = new flyteidl.plugins.Qubole.HiveQueryCollection(this); + int from_bitField0_ = bitField0_; + if (queriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + queries_ = java.util.Collections.unmodifiableList(queries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.queries_ = queries_; + } else { + result.queries_ = queriesBuilder_.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 flyteidl.plugins.Qubole.HiveQueryCollection) { + return mergeFrom((flyteidl.plugins.Qubole.HiveQueryCollection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQueryCollection other) { + if (other == flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance()) return this; + if (queriesBuilder_ == null) { + if (!other.queries_.isEmpty()) { + if (queries_.isEmpty()) { + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQueriesIsMutable(); + queries_.addAll(other.queries_); + } + onChanged(); + } + } else { + if (!other.queries_.isEmpty()) { + if (queriesBuilder_.isEmpty()) { + queriesBuilder_.dispose(); + queriesBuilder_ = null; + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000001); + queriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getQueriesFieldBuilder() : null; + } else { + queriesBuilder_.addAllMessages(other.queries_); + } + } + } + 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 { + flyteidl.plugins.Qubole.HiveQueryCollection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Qubole.HiveQueryCollection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List queries_ = + java.util.Collections.emptyList(); + private void ensureQueriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + queries_ = new java.util.ArrayList(queries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> queriesBuilder_; + + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List getQueriesList() { + if (queriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(queries_); + } else { + return queriesBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public int getQueriesCount() { + if (queriesBuilder_ == null) { + return queries_.size(); + } else { + return queriesBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); + } else { + return queriesBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder setQueries( + int index, flyteidl.plugins.Qubole.HiveQuery value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.set(index, value); + onChanged(); + } else { + queriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder setQueries( + int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.set(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries(flyteidl.plugins.Qubole.HiveQuery value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(value); + onChanged(); + } else { + queriesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries( + int index, flyteidl.plugins.Qubole.HiveQuery value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(index, value); + onChanged(); + } else { + queriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries( + flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries( + int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addAllQueries( + java.lang.Iterable values) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, queries_); + onChanged(); + } else { + queriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder clearQueries() { + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + queriesBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder removeQueries(int index) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.remove(index); + onChanged(); + } else { + queriesBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder getQueriesBuilder( + int index) { + return getQueriesFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( + int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); } else { + return queriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List + getQueriesOrBuilderList() { + if (queriesBuilder_ != null) { + return queriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(queries_); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder() { + return getQueriesFieldBuilder().addBuilder( + flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder( + int index) { + return getQueriesFieldBuilder().addBuilder( + index, flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List + getQueriesBuilderList() { + return getQueriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> + getQueriesFieldBuilder() { + if (queriesBuilder_ == null) { + queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder>( + queries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + queries_ = null; + } + return queriesBuilder_; + } + @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:flyteidl.plugins.HiveQueryCollection) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQueryCollection) + private static final flyteidl.plugins.Qubole.HiveQueryCollection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQueryCollection(); + } + + public static flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HiveQueryCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HiveQueryCollection(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 flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QuboleHiveJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.QuboleHiveJob) + com.google.protobuf.MessageOrBuilder { + + /** + * string cluster_label = 1; + */ + java.lang.String getClusterLabel(); + /** + * string cluster_label = 1; + */ + com.google.protobuf.ByteString + getClusterLabelBytes(); + + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasQueryCollection(); + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection(); + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder(); + + /** + * repeated string tags = 3; + */ + java.util.List + getTagsList(); + /** + * repeated string tags = 3; + */ + int getTagsCount(); + /** + * repeated string tags = 3; + */ + java.lang.String getTags(int index); + /** + * repeated string tags = 3; + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + boolean hasQuery(); + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + flyteidl.plugins.Qubole.HiveQuery getQuery(); + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder(); + } + /** + *
+   * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
+   * of a hive task's TaskTemplate
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} + */ + public static final class QuboleHiveJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.QuboleHiveJob) + QuboleHiveJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use QuboleHiveJob.newBuilder() to construct. + private QuboleHiveJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QuboleHiveJob() { + clusterLabel_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QuboleHiveJob( + 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(); + + clusterLabel_ = s; + break; + } + case 18: { + flyteidl.plugins.Qubole.HiveQueryCollection.Builder subBuilder = null; + if (queryCollection_ != null) { + subBuilder = queryCollection_.toBuilder(); + } + queryCollection_ = input.readMessage(flyteidl.plugins.Qubole.HiveQueryCollection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queryCollection_); + queryCollection_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + tags_.add(s); + break; + } + case 34: { + flyteidl.plugins.Qubole.HiveQuery.Builder subBuilder = null; + if (query_ != null) { + subBuilder = query_.toBuilder(); + } + query_ = input.readMessage(flyteidl.plugins.Qubole.HiveQuery.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(query_); + query_ = 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_ & 0x00000004) != 0)) { + tags_ = tags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); + } + + private int bitField0_; + public static final int CLUSTER_LABEL_FIELD_NUMBER = 1; + private volatile java.lang.Object clusterLabel_; + /** + * string cluster_label = 1; + */ + public java.lang.String getClusterLabel() { + java.lang.Object ref = clusterLabel_; + 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(); + clusterLabel_ = s; + return s; + } + } + /** + * string cluster_label = 1; + */ + public com.google.protobuf.ByteString + getClusterLabelBytes() { + java.lang.Object ref = clusterLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_COLLECTION_FIELD_NUMBER = 2; + private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_; + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasQueryCollection() { + return queryCollection_ != null; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { + return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { + return getQueryCollection(); + } + + public static final int TAGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList tags_; + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + * repeated string tags = 3; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 3; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int QUERY_FIELD_NUMBER = 4; + private flyteidl.plugins.Qubole.HiveQuery query_; + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public boolean hasQuery() { + return query_ != null; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQuery getQuery() { + return query_ == null ? flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder() { + return getQuery(); + } + + 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 (!getClusterLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterLabel_); + } + if (queryCollection_ != null) { + output.writeMessage(2, getQueryCollection()); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i)); + } + if (query_ != null) { + output.writeMessage(4, getQuery()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getClusterLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterLabel_); + } + if (queryCollection_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQueryCollection()); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + if (query_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getQuery()); + } + 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 flyteidl.plugins.Qubole.QuboleHiveJob)) { + return super.equals(obj); + } + flyteidl.plugins.Qubole.QuboleHiveJob other = (flyteidl.plugins.Qubole.QuboleHiveJob) obj; + + if (!getClusterLabel() + .equals(other.getClusterLabel())) return false; + if (hasQueryCollection() != other.hasQueryCollection()) return false; + if (hasQueryCollection()) { + if (!getQueryCollection() + .equals(other.getQueryCollection())) return false; + } + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (hasQuery() != other.hasQuery()) return false; + if (hasQuery()) { + if (!getQuery() + .equals(other.getQuery())) 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) + CLUSTER_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getClusterLabel().hashCode(); + if (hasQueryCollection()) { + hash = (37 * hash) + QUERY_COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getQueryCollection().hashCode(); + } + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + if (hasQuery()) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob 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 flyteidl.plugins.Qubole.QuboleHiveJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob 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 flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob 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(flyteidl.plugins.Qubole.QuboleHiveJob 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; + } + /** + *
+     * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
+     * of a hive task's TaskTemplate
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.QuboleHiveJob) + flyteidl.plugins.Qubole.QuboleHiveJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); + } + + // Construct using flyteidl.plugins.Qubole.QuboleHiveJob.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(); + clusterLabel_ = ""; + + if (queryCollectionBuilder_ == null) { + queryCollection_ = null; + } else { + queryCollection_ = null; + queryCollectionBuilder_ = null; + } + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (queryBuilder_ == null) { + query_ = null; + } else { + query_ = null; + queryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { + return flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Qubole.QuboleHiveJob build() { + flyteidl.plugins.Qubole.QuboleHiveJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.QuboleHiveJob buildPartial() { + flyteidl.plugins.Qubole.QuboleHiveJob result = new flyteidl.plugins.Qubole.QuboleHiveJob(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.clusterLabel_ = clusterLabel_; + if (queryCollectionBuilder_ == null) { + result.queryCollection_ = queryCollection_; + } else { + result.queryCollection_ = queryCollectionBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tags_ = tags_; + if (queryBuilder_ == null) { + result.query_ = query_; + } else { + result.query_ = queryBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.plugins.Qubole.QuboleHiveJob) { + return mergeFrom((flyteidl.plugins.Qubole.QuboleHiveJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Qubole.QuboleHiveJob other) { + if (other == flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance()) return this; + if (!other.getClusterLabel().isEmpty()) { + clusterLabel_ = other.clusterLabel_; + onChanged(); + } + if (other.hasQueryCollection()) { + mergeQueryCollection(other.getQueryCollection()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.hasQuery()) { + mergeQuery(other.getQuery()); + } + 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 { + flyteidl.plugins.Qubole.QuboleHiveJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Qubole.QuboleHiveJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object clusterLabel_ = ""; + /** + * string cluster_label = 1; + */ + public java.lang.String getClusterLabel() { + java.lang.Object ref = clusterLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cluster_label = 1; + */ + public com.google.protobuf.ByteString + getClusterLabelBytes() { + java.lang.Object ref = clusterLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cluster_label = 1; + */ + public Builder setClusterLabel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterLabel_ = value; + onChanged(); + return this; + } + /** + * string cluster_label = 1; + */ + public Builder clearClusterLabel() { + + clusterLabel_ = getDefaultInstance().getClusterLabel(); + onChanged(); + return this; + } + /** + * string cluster_label = 1; + */ + public Builder setClusterLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterLabel_ = value; + onChanged(); + return this; + } + + private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> queryCollectionBuilder_; + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasQueryCollection() { + return queryCollectionBuilder_ != null || queryCollection_ != null; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { + if (queryCollectionBuilder_ == null) { + return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; + } else { + return queryCollectionBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { + if (queryCollectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryCollection_ = value; + onChanged(); + } else { + queryCollectionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setQueryCollection( + flyteidl.plugins.Qubole.HiveQueryCollection.Builder builderForValue) { + if (queryCollectionBuilder_ == null) { + queryCollection_ = builderForValue.build(); + onChanged(); + } else { + queryCollectionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { + if (queryCollectionBuilder_ == null) { + if (queryCollection_ != null) { + queryCollection_ = + flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder(queryCollection_).mergeFrom(value).buildPartial(); + } else { + queryCollection_ = value; + } + onChanged(); + } else { + queryCollectionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearQueryCollection() { + if (queryCollectionBuilder_ == null) { + queryCollection_ = null; + onChanged(); + } else { + queryCollection_ = null; + queryCollectionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection.Builder getQueryCollectionBuilder() { + + onChanged(); + return getQueryCollectionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { + if (queryCollectionBuilder_ != null) { + return queryCollectionBuilder_.getMessageOrBuilder(); + } else { + return queryCollection_ == null ? + flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; + } + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> + getQueryCollectionFieldBuilder() { + if (queryCollectionBuilder_ == null) { + queryCollectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder>( + getQueryCollection(), + getParentForChildren(), + isClean()); + queryCollection_ = null; + } + return queryCollectionBuilder_; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000004; + } + } + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * repeated string tags = 3; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 3; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * repeated string tags = 3; + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private flyteidl.plugins.Qubole.HiveQuery query_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> queryBuilder_; + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public boolean hasQuery() { + return queryBuilder_ != null || query_ != null; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQuery getQuery() { + if (queryBuilder_ == null) { + return query_ == null ? flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; + } else { + return queryBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public Builder setQuery(flyteidl.plugins.Qubole.HiveQuery value) { + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + onChanged(); + } else { + queryBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public Builder setQuery( + flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queryBuilder_ == null) { + query_ = builderForValue.build(); + onChanged(); + } else { + queryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public Builder mergeQuery(flyteidl.plugins.Qubole.HiveQuery value) { + if (queryBuilder_ == null) { + if (query_ != null) { + query_ = + flyteidl.plugins.Qubole.HiveQuery.newBuilder(query_).mergeFrom(value).buildPartial(); + } else { + query_ = value; + } + onChanged(); + } else { + queryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public Builder clearQuery() { + if (queryBuilder_ == null) { + query_ = null; + onChanged(); + } else { + query_ = null; + queryBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder getQueryBuilder() { + + onChanged(); + return getQueryFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder() { + if (queryBuilder_ != null) { + return queryBuilder_.getMessageOrBuilder(); + } else { + return query_ == null ? + flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; + } + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> + getQueryFieldBuilder() { + if (queryBuilder_ == null) { + queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder>( + getQuery(), + getParentForChildren(), + isClean()); + query_ = null; + } + return queryBuilder_; + } + @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:flyteidl.plugins.QuboleHiveJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.QuboleHiveJob) + private static final flyteidl.plugins.Qubole.QuboleHiveJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.QuboleHiveJob(); + } + + public static flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuboleHiveJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QuboleHiveJob(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 flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_HiveQuery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_QuboleHiveJob_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\035flyteidl/plugins/qubole.proto\022\020flyteid" + + "l.plugins\032\031flyteidl/core/tasks.proto\"C\n\t" + + "HiveQuery\022\r\n\005query\030\001 \001(\t\022\023\n\013timeout_sec\030" + + "\002 \001(\r\022\022\n\nretryCount\030\003 \001(\r\"C\n\023HiveQueryCo" + + "llection\022,\n\007queries\030\002 \003(\0132\033.flyteidl.plu" + + "gins.HiveQuery\"\245\001\n\rQuboleHiveJob\022\025\n\rclus" + + "ter_label\030\001 \001(\t\022C\n\020query_collection\030\002 \001(" + + "\0132%.flyteidl.plugins.HiveQueryCollection" + + "B\002\030\001\022\014\n\004tags\030\003 \003(\t\022*\n\005query\030\004 \001(\0132\033.flyt" + + "eidl.plugins.HiveQueryB5Z3github.com/lyf" + + "t/flyteidl/gen/pb-go/flyteidl/pluginsb\006p" + + "roto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_HiveQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_HiveQuery_descriptor, + new java.lang.String[] { "Query", "TimeoutSec", "RetryCount", }); + internal_static_flyteidl_plugins_HiveQueryCollection_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_HiveQueryCollection_descriptor, + new java.lang.String[] { "Queries", }); + internal_static_flyteidl_plugins_QuboleHiveJob_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_QuboleHiveJob_descriptor, + new java.lang.String[] { "ClusterLabel", "QueryCollection", "Tags", "Query", }); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/Sidecar.java b/gen/pb-java/flyteidl/plugins/Sidecar.java new file mode 100644 index 000000000..ae8690617 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/Sidecar.java @@ -0,0 +1,817 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sidecar.proto + +package flyteidl.plugins; + +public final class Sidecar { + private Sidecar() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SidecarJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SidecarJob) + com.google.protobuf.MessageOrBuilder { + + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + boolean hasPodSpec(); + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + k8s.io.api.core.v1.Generated.PodSpec getPodSpec(); + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder(); + + /** + * string primary_container_name = 2; + */ + java.lang.String getPrimaryContainerName(); + /** + * string primary_container_name = 2; + */ + com.google.protobuf.ByteString + getPrimaryContainerNameBytes(); + } + /** + *
+   * A sidecar job brings up the desired pod_spec.
+   * The plugin executor is responsible for keeping the pod alive until the primary container terminates
+   * or the task itself times out.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.SidecarJob} + */ + public static final class SidecarJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.SidecarJob) + SidecarJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use SidecarJob.newBuilder() to construct. + private SidecarJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SidecarJob() { + primaryContainerName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SidecarJob( + 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: { + k8s.io.api.core.v1.Generated.PodSpec.Builder subBuilder = null; + if (podSpec_ != null) { + subBuilder = podSpec_.toBuilder(); + } + podSpec_ = input.readMessage(k8s.io.api.core.v1.Generated.PodSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(podSpec_); + podSpec_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + primaryContainerName_ = 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 flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Sidecar.SidecarJob.class, flyteidl.plugins.Sidecar.SidecarJob.Builder.class); + } + + public static final int POD_SPEC_FIELD_NUMBER = 1; + private k8s.io.api.core.v1.Generated.PodSpec podSpec_; + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public boolean hasPodSpec() { + return podSpec_ != null; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpec getPodSpec() { + return podSpec_ == null ? k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder() { + return getPodSpec(); + } + + public static final int PRIMARY_CONTAINER_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object primaryContainerName_; + /** + * string primary_container_name = 2; + */ + public java.lang.String getPrimaryContainerName() { + java.lang.Object ref = primaryContainerName_; + 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(); + primaryContainerName_ = s; + return s; + } + } + /** + * string primary_container_name = 2; + */ + public com.google.protobuf.ByteString + getPrimaryContainerNameBytes() { + java.lang.Object ref = primaryContainerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryContainerName_ = 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 (podSpec_ != null) { + output.writeMessage(1, getPodSpec()); + } + if (!getPrimaryContainerNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, primaryContainerName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (podSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPodSpec()); + } + if (!getPrimaryContainerNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, primaryContainerName_); + } + 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 flyteidl.plugins.Sidecar.SidecarJob)) { + return super.equals(obj); + } + flyteidl.plugins.Sidecar.SidecarJob other = (flyteidl.plugins.Sidecar.SidecarJob) obj; + + if (hasPodSpec() != other.hasPodSpec()) return false; + if (hasPodSpec()) { + if (!getPodSpec() + .equals(other.getPodSpec())) return false; + } + if (!getPrimaryContainerName() + .equals(other.getPrimaryContainerName())) 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 (hasPodSpec()) { + hash = (37 * hash) + POD_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPodSpec().hashCode(); + } + hash = (37 * hash) + PRIMARY_CONTAINER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryContainerName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Sidecar.SidecarJob 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 flyteidl.plugins.Sidecar.SidecarJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Sidecar.SidecarJob 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 flyteidl.plugins.Sidecar.SidecarJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Sidecar.SidecarJob 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(flyteidl.plugins.Sidecar.SidecarJob 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 sidecar job brings up the desired pod_spec.
+     * The plugin executor is responsible for keeping the pod alive until the primary container terminates
+     * or the task itself times out.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.SidecarJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SidecarJob) + flyteidl.plugins.Sidecar.SidecarJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Sidecar.SidecarJob.class, flyteidl.plugins.Sidecar.SidecarJob.Builder.class); + } + + // Construct using flyteidl.plugins.Sidecar.SidecarJob.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 (podSpecBuilder_ == null) { + podSpec_ = null; + } else { + podSpec_ = null; + podSpecBuilder_ = null; + } + primaryContainerName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Sidecar.SidecarJob getDefaultInstanceForType() { + return flyteidl.plugins.Sidecar.SidecarJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Sidecar.SidecarJob build() { + flyteidl.plugins.Sidecar.SidecarJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Sidecar.SidecarJob buildPartial() { + flyteidl.plugins.Sidecar.SidecarJob result = new flyteidl.plugins.Sidecar.SidecarJob(this); + if (podSpecBuilder_ == null) { + result.podSpec_ = podSpec_; + } else { + result.podSpec_ = podSpecBuilder_.build(); + } + result.primaryContainerName_ = primaryContainerName_; + 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 flyteidl.plugins.Sidecar.SidecarJob) { + return mergeFrom((flyteidl.plugins.Sidecar.SidecarJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Sidecar.SidecarJob other) { + if (other == flyteidl.plugins.Sidecar.SidecarJob.getDefaultInstance()) return this; + if (other.hasPodSpec()) { + mergePodSpec(other.getPodSpec()); + } + if (!other.getPrimaryContainerName().isEmpty()) { + primaryContainerName_ = other.primaryContainerName_; + 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 { + flyteidl.plugins.Sidecar.SidecarJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Sidecar.SidecarJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private k8s.io.api.core.v1.Generated.PodSpec podSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder> podSpecBuilder_; + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public boolean hasPodSpec() { + return podSpecBuilder_ != null || podSpec_ != null; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpec getPodSpec() { + if (podSpecBuilder_ == null) { + return podSpec_ == null ? k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; + } else { + return podSpecBuilder_.getMessage(); + } + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public Builder setPodSpec(k8s.io.api.core.v1.Generated.PodSpec value) { + if (podSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + podSpec_ = value; + onChanged(); + } else { + podSpecBuilder_.setMessage(value); + } + + return this; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public Builder setPodSpec( + k8s.io.api.core.v1.Generated.PodSpec.Builder builderForValue) { + if (podSpecBuilder_ == null) { + podSpec_ = builderForValue.build(); + onChanged(); + } else { + podSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public Builder mergePodSpec(k8s.io.api.core.v1.Generated.PodSpec value) { + if (podSpecBuilder_ == null) { + if (podSpec_ != null) { + podSpec_ = + k8s.io.api.core.v1.Generated.PodSpec.newBuilder(podSpec_).mergeFrom(value).buildPartial(); + } else { + podSpec_ = value; + } + onChanged(); + } else { + podSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public Builder clearPodSpec() { + if (podSpecBuilder_ == null) { + podSpec_ = null; + onChanged(); + } else { + podSpec_ = null; + podSpecBuilder_ = null; + } + + return this; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpec.Builder getPodSpecBuilder() { + + onChanged(); + return getPodSpecFieldBuilder().getBuilder(); + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder() { + if (podSpecBuilder_ != null) { + return podSpecBuilder_.getMessageOrBuilder(); + } else { + return podSpec_ == null ? + k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; + } + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder> + getPodSpecFieldBuilder() { + if (podSpecBuilder_ == null) { + podSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder>( + getPodSpec(), + getParentForChildren(), + isClean()); + podSpec_ = null; + } + return podSpecBuilder_; + } + + private java.lang.Object primaryContainerName_ = ""; + /** + * string primary_container_name = 2; + */ + public java.lang.String getPrimaryContainerName() { + java.lang.Object ref = primaryContainerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryContainerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string primary_container_name = 2; + */ + public com.google.protobuf.ByteString + getPrimaryContainerNameBytes() { + java.lang.Object ref = primaryContainerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryContainerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string primary_container_name = 2; + */ + public Builder setPrimaryContainerName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + primaryContainerName_ = value; + onChanged(); + return this; + } + /** + * string primary_container_name = 2; + */ + public Builder clearPrimaryContainerName() { + + primaryContainerName_ = getDefaultInstance().getPrimaryContainerName(); + onChanged(); + return this; + } + /** + * string primary_container_name = 2; + */ + public Builder setPrimaryContainerNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + primaryContainerName_ = 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:flyteidl.plugins.SidecarJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SidecarJob) + private static final flyteidl.plugins.Sidecar.SidecarJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Sidecar.SidecarJob(); + } + + public static flyteidl.plugins.Sidecar.SidecarJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SidecarJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SidecarJob(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 flyteidl.plugins.Sidecar.SidecarJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SidecarJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SidecarJob_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\036flyteidl/plugins/sidecar.proto\022\020flytei" + + "dl.plugins\032\"k8s.io/api/core/v1/generated" + + ".proto\"[\n\nSidecarJob\022-\n\010pod_spec\030\001 \001(\0132\033" + + ".k8s.io.api.core.v1.PodSpec\022\036\n\026primary_c" + + "ontainer_name\030\002 \001(\tB5Z3github.com/lyft/f" + + "lyteidl/gen/pb-go/flyteidl/pluginsb\006prot" + + "o3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + k8s.io.api.core.v1.Generated.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_SidecarJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SidecarJob_descriptor, + new java.lang.String[] { "PodSpec", "PrimaryContainerName", }); + k8s.io.api.core.v1.Generated.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/Spark.java b/gen/pb-java/flyteidl/plugins/Spark.java new file mode 100644 index 000000000..692a657e0 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/Spark.java @@ -0,0 +1,2179 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/spark.proto + +package flyteidl.plugins; + +public final class Spark { + private Spark() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SparkApplicationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkApplication) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.plugins.SparkApplication} + */ + public static final class SparkApplication extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkApplication) + SparkApplicationOrBuilder { + private static final long serialVersionUID = 0L; + // Use SparkApplication.newBuilder() to construct. + private SparkApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SparkApplication() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SparkApplication( + 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; + 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 flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.SparkApplication.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * PYTHON = 0; + */ + PYTHON(0), + /** + * JAVA = 1; + */ + JAVA(1), + /** + * SCALA = 2; + */ + SCALA(2), + /** + * R = 3; + */ + R(3), + UNRECOGNIZED(-1), + ; + + /** + * PYTHON = 0; + */ + public static final int PYTHON_VALUE = 0; + /** + * JAVA = 1; + */ + public static final int JAVA_VALUE = 1; + /** + * SCALA = 2; + */ + public static final int SCALA_VALUE = 2; + /** + * R = 3; + */ + public static final int R_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + public static Type forNumber(int value) { + switch (value) { + case 0: return PYTHON; + case 1: return JAVA; + case 2: return SCALA; + case 3: return R; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.Spark.SparkApplication.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.SparkApplication.Type) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.plugins.Spark.SparkApplication)) { + return super.equals(obj); + } + flyteidl.plugins.Spark.SparkApplication other = (flyteidl.plugins.Spark.SparkApplication) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkApplication 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 flyteidl.plugins.Spark.SparkApplication parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkApplication 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 flyteidl.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkApplication 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(flyteidl.plugins.Spark.SparkApplication 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 flyteidl.plugins.SparkApplication} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkApplication) + flyteidl.plugins.Spark.SparkApplicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); + } + + // Construct using flyteidl.plugins.Spark.SparkApplication.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkApplication getDefaultInstanceForType() { + return flyteidl.plugins.Spark.SparkApplication.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkApplication build() { + flyteidl.plugins.Spark.SparkApplication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkApplication buildPartial() { + flyteidl.plugins.Spark.SparkApplication result = new flyteidl.plugins.Spark.SparkApplication(this); + 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 flyteidl.plugins.Spark.SparkApplication) { + return mergeFrom((flyteidl.plugins.Spark.SparkApplication)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Spark.SparkApplication other) { + if (other == flyteidl.plugins.Spark.SparkApplication.getDefaultInstance()) return this; + 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 { + flyteidl.plugins.Spark.SparkApplication parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Spark.SparkApplication) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.plugins.SparkApplication) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkApplication) + private static final flyteidl.plugins.Spark.SparkApplication DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkApplication(); + } + + public static flyteidl.plugins.Spark.SparkApplication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkApplication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SparkApplication(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 flyteidl.plugins.Spark.SparkApplication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SparkJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkJob) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + int getApplicationTypeValue(); + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + flyteidl.plugins.Spark.SparkApplication.Type getApplicationType(); + + /** + * string mainApplicationFile = 2; + */ + java.lang.String getMainApplicationFile(); + /** + * string mainApplicationFile = 2; + */ + com.google.protobuf.ByteString + getMainApplicationFileBytes(); + + /** + * string mainClass = 3; + */ + java.lang.String getMainClass(); + /** + * string mainClass = 3; + */ + com.google.protobuf.ByteString + getMainClassBytes(); + + /** + * map<string, string> sparkConf = 4; + */ + int getSparkConfCount(); + /** + * map<string, string> sparkConf = 4; + */ + boolean containsSparkConf( + java.lang.String key); + /** + * Use {@link #getSparkConfMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSparkConf(); + /** + * map<string, string> sparkConf = 4; + */ + java.util.Map + getSparkConfMap(); + /** + * map<string, string> sparkConf = 4; + */ + + java.lang.String getSparkConfOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + * map<string, string> sparkConf = 4; + */ + + java.lang.String getSparkConfOrThrow( + java.lang.String key); + + /** + * map<string, string> hadoopConf = 5; + */ + int getHadoopConfCount(); + /** + * map<string, string> hadoopConf = 5; + */ + boolean containsHadoopConf( + java.lang.String key); + /** + * Use {@link #getHadoopConfMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getHadoopConf(); + /** + * map<string, string> hadoopConf = 5; + */ + java.util.Map + getHadoopConfMap(); + /** + * map<string, string> hadoopConf = 5; + */ + + java.lang.String getHadoopConfOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + * map<string, string> hadoopConf = 5; + */ + + java.lang.String getHadoopConfOrThrow( + java.lang.String key); + + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + java.lang.String getExecutorPath(); + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + com.google.protobuf.ByteString + getExecutorPathBytes(); + } + /** + *
+   * Custom Proto for Spark Plugin.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.SparkJob} + */ + public static final class SparkJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkJob) + SparkJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use SparkJob.newBuilder() to construct. + private SparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SparkJob() { + applicationType_ = 0; + mainApplicationFile_ = ""; + mainClass_ = ""; + executorPath_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SparkJob( + 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 8: { + int rawValue = input.readEnum(); + + applicationType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + mainApplicationFile_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + mainClass_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + sparkConf_ = com.google.protobuf.MapField.newMapField( + SparkConfDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry + sparkConf__ = input.readMessage( + SparkConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + sparkConf_.getMutableMap().put( + sparkConf__.getKey(), sparkConf__.getValue()); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + hadoopConf_ = com.google.protobuf.MapField.newMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry + hadoopConf__ = input.readMessage( + HadoopConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + hadoopConf_.getMutableMap().put( + hadoopConf__.getKey(), hadoopConf__.getValue()); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + executorPath_ = 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 flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetSparkConf(); + case 5: + return internalGetHadoopConf(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); + } + + private int bitField0_; + public static final int APPLICATIONTYPE_FIELD_NUMBER = 1; + private int applicationType_; + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public int getApplicationTypeValue() { + return applicationType_; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); + return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; + } + + public static final int MAINAPPLICATIONFILE_FIELD_NUMBER = 2; + private volatile java.lang.Object mainApplicationFile_; + /** + * string mainApplicationFile = 2; + */ + public java.lang.String getMainApplicationFile() { + java.lang.Object ref = mainApplicationFile_; + 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(); + mainApplicationFile_ = s; + return s; + } + } + /** + * string mainApplicationFile = 2; + */ + public com.google.protobuf.ByteString + getMainApplicationFileBytes() { + java.lang.Object ref = mainApplicationFile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainApplicationFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAINCLASS_FIELD_NUMBER = 3; + private volatile java.lang.Object mainClass_; + /** + * string mainClass = 3; + */ + public java.lang.String getMainClass() { + java.lang.Object ref = mainClass_; + 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(); + mainClass_ = s; + return s; + } + } + /** + * string mainClass = 3; + */ + public com.google.protobuf.ByteString + getMainClassBytes() { + java.lang.Object ref = mainClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPARKCONF_FIELD_NUMBER = 4; + private static final class SparkConfDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> sparkConf_; + private com.google.protobuf.MapField + internalGetSparkConf() { + if (sparkConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SparkConfDefaultEntryHolder.defaultEntry); + } + return sparkConf_; + } + + public int getSparkConfCount() { + return internalGetSparkConf().getMap().size(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public boolean containsSparkConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSparkConf().getMap().containsKey(key); + } + /** + * Use {@link #getSparkConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getSparkConf() { + return getSparkConfMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.util.Map getSparkConfMap() { + return internalGetSparkConf().getMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int HADOOPCONF_FIELD_NUMBER = 5; + private static final class HadoopConfDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> hadoopConf_; + private com.google.protobuf.MapField + internalGetHadoopConf() { + if (hadoopConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + } + return hadoopConf_; + } + + public int getHadoopConfCount() { + return internalGetHadoopConf().getMap().size(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public boolean containsHadoopConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetHadoopConf().getMap().containsKey(key); + } + /** + * Use {@link #getHadoopConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getHadoopConf() { + return getHadoopConfMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.util.Map getHadoopConfMap() { + return internalGetHadoopConf().getMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int EXECUTORPATH_FIELD_NUMBER = 6; + private volatile java.lang.Object executorPath_; + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + public java.lang.String getExecutorPath() { + java.lang.Object ref = executorPath_; + 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(); + executorPath_ = s; + return s; + } + } + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + public com.google.protobuf.ByteString + getExecutorPathBytes() { + java.lang.Object ref = executorPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executorPath_ = 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 (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { + output.writeEnum(1, applicationType_); + } + if (!getMainApplicationFileBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mainApplicationFile_); + } + if (!getMainClassBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mainClass_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSparkConf(), + SparkConfDefaultEntryHolder.defaultEntry, + 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetHadoopConf(), + HadoopConfDefaultEntryHolder.defaultEntry, + 5); + if (!getExecutorPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, executorPath_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, applicationType_); + } + if (!getMainApplicationFileBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mainApplicationFile_); + } + if (!getMainClassBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mainClass_); + } + for (java.util.Map.Entry entry + : internalGetSparkConf().getMap().entrySet()) { + com.google.protobuf.MapEntry + sparkConf__ = SparkConfDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, sparkConf__); + } + for (java.util.Map.Entry entry + : internalGetHadoopConf().getMap().entrySet()) { + com.google.protobuf.MapEntry + hadoopConf__ = HadoopConfDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, hadoopConf__); + } + if (!getExecutorPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, executorPath_); + } + 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 flyteidl.plugins.Spark.SparkJob)) { + return super.equals(obj); + } + flyteidl.plugins.Spark.SparkJob other = (flyteidl.plugins.Spark.SparkJob) obj; + + if (applicationType_ != other.applicationType_) return false; + if (!getMainApplicationFile() + .equals(other.getMainApplicationFile())) return false; + if (!getMainClass() + .equals(other.getMainClass())) return false; + if (!internalGetSparkConf().equals( + other.internalGetSparkConf())) return false; + if (!internalGetHadoopConf().equals( + other.internalGetHadoopConf())) return false; + if (!getExecutorPath() + .equals(other.getExecutorPath())) 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) + APPLICATIONTYPE_FIELD_NUMBER; + hash = (53 * hash) + applicationType_; + hash = (37 * hash) + MAINAPPLICATIONFILE_FIELD_NUMBER; + hash = (53 * hash) + getMainApplicationFile().hashCode(); + hash = (37 * hash) + MAINCLASS_FIELD_NUMBER; + hash = (53 * hash) + getMainClass().hashCode(); + if (!internalGetSparkConf().getMap().isEmpty()) { + hash = (37 * hash) + SPARKCONF_FIELD_NUMBER; + hash = (53 * hash) + internalGetSparkConf().hashCode(); + } + if (!internalGetHadoopConf().getMap().isEmpty()) { + hash = (37 * hash) + HADOOPCONF_FIELD_NUMBER; + hash = (53 * hash) + internalGetHadoopConf().hashCode(); + } + hash = (37 * hash) + EXECUTORPATH_FIELD_NUMBER; + hash = (53 * hash) + getExecutorPath().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Spark.SparkJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkJob 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 flyteidl.plugins.Spark.SparkJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkJob 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 flyteidl.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkJob 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(flyteidl.plugins.Spark.SparkJob 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; + } + /** + *
+     * Custom Proto for Spark Plugin.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.SparkJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkJob) + flyteidl.plugins.Spark.SparkJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetSparkConf(); + case 5: + return internalGetHadoopConf(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableSparkConf(); + case 5: + return internalGetMutableHadoopConf(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); + } + + // Construct using flyteidl.plugins.Spark.SparkJob.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(); + applicationType_ = 0; + + mainApplicationFile_ = ""; + + mainClass_ = ""; + + internalGetMutableSparkConf().clear(); + internalGetMutableHadoopConf().clear(); + executorPath_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkJob getDefaultInstanceForType() { + return flyteidl.plugins.Spark.SparkJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkJob build() { + flyteidl.plugins.Spark.SparkJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkJob buildPartial() { + flyteidl.plugins.Spark.SparkJob result = new flyteidl.plugins.Spark.SparkJob(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.applicationType_ = applicationType_; + result.mainApplicationFile_ = mainApplicationFile_; + result.mainClass_ = mainClass_; + result.sparkConf_ = internalGetSparkConf(); + result.sparkConf_.makeImmutable(); + result.hadoopConf_ = internalGetHadoopConf(); + result.hadoopConf_.makeImmutable(); + result.executorPath_ = executorPath_; + result.bitField0_ = to_bitField0_; + 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 flyteidl.plugins.Spark.SparkJob) { + return mergeFrom((flyteidl.plugins.Spark.SparkJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Spark.SparkJob other) { + if (other == flyteidl.plugins.Spark.SparkJob.getDefaultInstance()) return this; + if (other.applicationType_ != 0) { + setApplicationTypeValue(other.getApplicationTypeValue()); + } + if (!other.getMainApplicationFile().isEmpty()) { + mainApplicationFile_ = other.mainApplicationFile_; + onChanged(); + } + if (!other.getMainClass().isEmpty()) { + mainClass_ = other.mainClass_; + onChanged(); + } + internalGetMutableSparkConf().mergeFrom( + other.internalGetSparkConf()); + internalGetMutableHadoopConf().mergeFrom( + other.internalGetHadoopConf()); + if (!other.getExecutorPath().isEmpty()) { + executorPath_ = other.executorPath_; + 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 { + flyteidl.plugins.Spark.SparkJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Spark.SparkJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int applicationType_ = 0; + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public int getApplicationTypeValue() { + return applicationType_; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public Builder setApplicationTypeValue(int value) { + applicationType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); + return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public Builder setApplicationType(flyteidl.plugins.Spark.SparkApplication.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + applicationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public Builder clearApplicationType() { + + applicationType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object mainApplicationFile_ = ""; + /** + * string mainApplicationFile = 2; + */ + public java.lang.String getMainApplicationFile() { + java.lang.Object ref = mainApplicationFile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainApplicationFile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string mainApplicationFile = 2; + */ + public com.google.protobuf.ByteString + getMainApplicationFileBytes() { + java.lang.Object ref = mainApplicationFile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainApplicationFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string mainApplicationFile = 2; + */ + public Builder setMainApplicationFile( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mainApplicationFile_ = value; + onChanged(); + return this; + } + /** + * string mainApplicationFile = 2; + */ + public Builder clearMainApplicationFile() { + + mainApplicationFile_ = getDefaultInstance().getMainApplicationFile(); + onChanged(); + return this; + } + /** + * string mainApplicationFile = 2; + */ + public Builder setMainApplicationFileBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mainApplicationFile_ = value; + onChanged(); + return this; + } + + private java.lang.Object mainClass_ = ""; + /** + * string mainClass = 3; + */ + public java.lang.String getMainClass() { + java.lang.Object ref = mainClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string mainClass = 3; + */ + public com.google.protobuf.ByteString + getMainClassBytes() { + java.lang.Object ref = mainClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string mainClass = 3; + */ + public Builder setMainClass( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mainClass_ = value; + onChanged(); + return this; + } + /** + * string mainClass = 3; + */ + public Builder clearMainClass() { + + mainClass_ = getDefaultInstance().getMainClass(); + onChanged(); + return this; + } + /** + * string mainClass = 3; + */ + public Builder setMainClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mainClass_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> sparkConf_; + private com.google.protobuf.MapField + internalGetSparkConf() { + if (sparkConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SparkConfDefaultEntryHolder.defaultEntry); + } + return sparkConf_; + } + private com.google.protobuf.MapField + internalGetMutableSparkConf() { + onChanged();; + if (sparkConf_ == null) { + sparkConf_ = com.google.protobuf.MapField.newMapField( + SparkConfDefaultEntryHolder.defaultEntry); + } + if (!sparkConf_.isMutable()) { + sparkConf_ = sparkConf_.copy(); + } + return sparkConf_; + } + + public int getSparkConfCount() { + return internalGetSparkConf().getMap().size(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public boolean containsSparkConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSparkConf().getMap().containsKey(key); + } + /** + * Use {@link #getSparkConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getSparkConf() { + return getSparkConfMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.util.Map getSparkConfMap() { + return internalGetSparkConf().getMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSparkConf() { + internalGetMutableSparkConf().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> sparkConf = 4; + */ + + public Builder removeSparkConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSparkConf().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSparkConf() { + return internalGetMutableSparkConf().getMutableMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + public Builder putSparkConf( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSparkConf().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, string> sparkConf = 4; + */ + + public Builder putAllSparkConf( + java.util.Map values) { + internalGetMutableSparkConf().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> hadoopConf_; + private com.google.protobuf.MapField + internalGetHadoopConf() { + if (hadoopConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + } + return hadoopConf_; + } + private com.google.protobuf.MapField + internalGetMutableHadoopConf() { + onChanged();; + if (hadoopConf_ == null) { + hadoopConf_ = com.google.protobuf.MapField.newMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + } + if (!hadoopConf_.isMutable()) { + hadoopConf_ = hadoopConf_.copy(); + } + return hadoopConf_; + } + + public int getHadoopConfCount() { + return internalGetHadoopConf().getMap().size(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public boolean containsHadoopConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetHadoopConf().getMap().containsKey(key); + } + /** + * Use {@link #getHadoopConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getHadoopConf() { + return getHadoopConfMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.util.Map getHadoopConfMap() { + return internalGetHadoopConf().getMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHadoopConf() { + internalGetMutableHadoopConf().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public Builder removeHadoopConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableHadoopConf().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableHadoopConf() { + return internalGetMutableHadoopConf().getMutableMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + public Builder putHadoopConf( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableHadoopConf().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public Builder putAllHadoopConf( + java.util.Map values) { + internalGetMutableHadoopConf().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object executorPath_ = ""; + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public java.lang.String getExecutorPath() { + java.lang.Object ref = executorPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executorPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public com.google.protobuf.ByteString + getExecutorPathBytes() { + java.lang.Object ref = executorPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executorPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public Builder setExecutorPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + executorPath_ = value; + onChanged(); + return this; + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public Builder clearExecutorPath() { + + executorPath_ = getDefaultInstance().getExecutorPath(); + onChanged(); + return this; + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public Builder setExecutorPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + executorPath_ = 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:flyteidl.plugins.SparkJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkJob) + private static final flyteidl.plugins.Spark.SparkJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkJob(); + } + + public static flyteidl.plugins.Spark.SparkJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SparkJob(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 flyteidl.plugins.Spark.SparkJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkApplication_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_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\034flyteidl/plugins/spark.proto\022\020flyteidl" + + ".plugins\"B\n\020SparkApplication\".\n\004Type\022\n\n\006" + + "PYTHON\020\000\022\010\n\004JAVA\020\001\022\t\n\005SCALA\020\002\022\005\n\001R\020\003\"\365\002\n" + + "\010SparkJob\022@\n\017applicationType\030\001 \001(\0162\'.fly" + + "teidl.plugins.SparkApplication.Type\022\033\n\023m" + + "ainApplicationFile\030\002 \001(\t\022\021\n\tmainClass\030\003 " + + "\001(\t\022<\n\tsparkConf\030\004 \003(\0132).flyteidl.plugin" + + "s.SparkJob.SparkConfEntry\022>\n\nhadoopConf\030" + + "\005 \003(\0132*.flyteidl.plugins.SparkJob.Hadoop" + + "ConfEntry\022\024\n\014executorPath\030\006 \001(\t\0320\n\016Spark" + + "ConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\0321\n\017HadoopConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001B5Z3github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_SparkApplication_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkApplication_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_SparkJob_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkJob_descriptor, + new java.lang.String[] { "ApplicationType", "MainApplicationFile", "MainClass", "SparkConf", "HadoopConf", "ExecutorPath", }); + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor = + internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor = + internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(1); + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/Tensorflow.java b/gen/pb-java/flyteidl/plugins/Tensorflow.java new file mode 100644 index 000000000..e8d80be10 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/Tensorflow.java @@ -0,0 +1,705 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/tensorflow.proto + +package flyteidl.plugins; + +public final class Tensorflow { + private Tensorflow() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DistributedTensorflowTrainingTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedTensorflowTrainingTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * number of worker, ps, chief replicas spawned in the cluster for this job
+     * 
+ * + * int32 workers = 1; + */ + int getWorkers(); + + /** + *
+     * PS -> Parameter server
+     * 
+ * + * int32 ps_replicas = 2; + */ + int getPsReplicas(); + + /** + * int32 chief_replicas = 3; + */ + int getChiefReplicas(); + } + /** + *
+   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedTensorflowTrainingTask} + */ + public static final class DistributedTensorflowTrainingTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedTensorflowTrainingTask) + DistributedTensorflowTrainingTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedTensorflowTrainingTask.newBuilder() to construct. + private DistributedTensorflowTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedTensorflowTrainingTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedTensorflowTrainingTask( + 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 8: { + + workers_ = input.readInt32(); + break; + } + case 16: { + + psReplicas_ = input.readInt32(); + break; + } + case 24: { + + chiefReplicas_ = input.readInt32(); + 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 flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); + } + + public static final int WORKERS_FIELD_NUMBER = 1; + private int workers_; + /** + *
+     * number of worker, ps, chief replicas spawned in the cluster for this job
+     * 
+ * + * int32 workers = 1; + */ + public int getWorkers() { + return workers_; + } + + public static final int PS_REPLICAS_FIELD_NUMBER = 2; + private int psReplicas_; + /** + *
+     * PS -> Parameter server
+     * 
+ * + * int32 ps_replicas = 2; + */ + public int getPsReplicas() { + return psReplicas_; + } + + public static final int CHIEF_REPLICAS_FIELD_NUMBER = 3; + private int chiefReplicas_; + /** + * int32 chief_replicas = 3; + */ + public int getChiefReplicas() { + return chiefReplicas_; + } + + 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 (workers_ != 0) { + output.writeInt32(1, workers_); + } + if (psReplicas_ != 0) { + output.writeInt32(2, psReplicas_); + } + if (chiefReplicas_ != 0) { + output.writeInt32(3, chiefReplicas_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workers_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, workers_); + } + if (psReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, psReplicas_); + } + if (chiefReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, chiefReplicas_); + } + 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask)) { + return super.equals(obj); + } + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask other = (flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) obj; + + if (getWorkers() + != other.getWorkers()) return false; + if (getPsReplicas() + != other.getPsReplicas()) return false; + if (getChiefReplicas() + != other.getChiefReplicas()) 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) + WORKERS_FIELD_NUMBER; + hash = (53 * hash) + getWorkers(); + hash = (37 * hash) + PS_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getPsReplicas(); + hash = (37 * hash) + CHIEF_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getChiefReplicas(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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(flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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; + } + /** + *
+     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedTensorflowTrainingTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedTensorflowTrainingTask) + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); + } + + // Construct using flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.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(); + workers_ = 0; + + psReplicas_ = 0; + + chiefReplicas_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { + return flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask build() { + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask buildPartial() { + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask result = new flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask(this); + result.workers_ = workers_; + result.psReplicas_ = psReplicas_; + result.chiefReplicas_ = chiefReplicas_; + 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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) { + return mergeFrom((flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask other) { + if (other == flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance()) return this; + if (other.getWorkers() != 0) { + setWorkers(other.getWorkers()); + } + if (other.getPsReplicas() != 0) { + setPsReplicas(other.getPsReplicas()); + } + if (other.getChiefReplicas() != 0) { + setChiefReplicas(other.getChiefReplicas()); + } + 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 { + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int workers_ ; + /** + *
+       * number of worker, ps, chief replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public int getWorkers() { + return workers_; + } + /** + *
+       * number of worker, ps, chief replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public Builder setWorkers(int value) { + + workers_ = value; + onChanged(); + return this; + } + /** + *
+       * number of worker, ps, chief replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public Builder clearWorkers() { + + workers_ = 0; + onChanged(); + return this; + } + + private int psReplicas_ ; + /** + *
+       * PS -> Parameter server
+       * 
+ * + * int32 ps_replicas = 2; + */ + public int getPsReplicas() { + return psReplicas_; + } + /** + *
+       * PS -> Parameter server
+       * 
+ * + * int32 ps_replicas = 2; + */ + public Builder setPsReplicas(int value) { + + psReplicas_ = value; + onChanged(); + return this; + } + /** + *
+       * PS -> Parameter server
+       * 
+ * + * int32 ps_replicas = 2; + */ + public Builder clearPsReplicas() { + + psReplicas_ = 0; + onChanged(); + return this; + } + + private int chiefReplicas_ ; + /** + * int32 chief_replicas = 3; + */ + public int getChiefReplicas() { + return chiefReplicas_; + } + /** + * int32 chief_replicas = 3; + */ + public Builder setChiefReplicas(int value) { + + chiefReplicas_ = value; + onChanged(); + return this; + } + /** + * int32 chief_replicas = 3; + */ + public Builder clearChiefReplicas() { + + chiefReplicas_ = 0; + 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:flyteidl.plugins.DistributedTensorflowTrainingTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedTensorflowTrainingTask) + private static final flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask(); + } + + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedTensorflowTrainingTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedTensorflowTrainingTask(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 flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_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!flyteidl/plugins/tensorflow.proto\022\020fly" + + "teidl.plugins\"a\n!DistributedTensorflowTr" + + "ainingTask\022\017\n\007workers\030\001 \001(\005\022\023\n\013ps_replic" + + "as\030\002 \001(\005\022\026\n\016chief_replicas\030\003 \001(\005B5Z3gith" + + "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" + + "pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor, + new java.lang.String[] { "Workers", "PsReplicas", "ChiefReplicas", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java b/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java new file mode 100644 index 000000000..775bfea76 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java @@ -0,0 +1,911 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/waitable.proto + +package flyteidl.plugins; + +public final class WaitableOuterClass { + private WaitableOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WaitableOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.Waitable) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + boolean hasWfExecId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder(); + + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + int getPhaseValue(); + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); + + /** + * string workflow_id = 3; + */ + java.lang.String getWorkflowId(); + /** + * string workflow_id = 3; + */ + com.google.protobuf.ByteString + getWorkflowIdBytes(); + } + /** + *
+   * Represents an Execution that was launched and could be waited on.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.Waitable} + */ + public static final class Waitable extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.Waitable) + WaitableOrBuilder { + private static final long serialVersionUID = 0L; + // Use Waitable.newBuilder() to construct. + private Waitable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Waitable() { + phase_ = 0; + workflowId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Waitable( + 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: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (wfExecId_ != null) { + subBuilder = wfExecId_.toBuilder(); + } + wfExecId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(wfExecId_); + wfExecId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + workflowId_ = 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 flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); + } + + public static final int WF_EXEC_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public boolean hasWfExecId() { + return wfExecId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { + return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { + return getWfExecId(); + } + + public static final int PHASE_FIELD_NUMBER = 2; + private int phase_; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + + public static final int WORKFLOW_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object workflowId_; + /** + * string workflow_id = 3; + */ + public java.lang.String getWorkflowId() { + java.lang.Object ref = workflowId_; + 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(); + workflowId_ = s; + return s; + } + } + /** + * string workflow_id = 3; + */ + public com.google.protobuf.ByteString + getWorkflowIdBytes() { + java.lang.Object ref = workflowId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflowId_ = 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 (wfExecId_ != null) { + output.writeMessage(1, getWfExecId()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(2, phase_); + } + if (!getWorkflowIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (wfExecId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWfExecId()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, phase_); + } + if (!getWorkflowIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_); + } + 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 flyteidl.plugins.WaitableOuterClass.Waitable)) { + return super.equals(obj); + } + flyteidl.plugins.WaitableOuterClass.Waitable other = (flyteidl.plugins.WaitableOuterClass.Waitable) obj; + + if (hasWfExecId() != other.hasWfExecId()) return false; + if (hasWfExecId()) { + if (!getWfExecId() + .equals(other.getWfExecId())) return false; + } + if (phase_ != other.phase_) return false; + if (!getWorkflowId() + .equals(other.getWorkflowId())) 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 (hasWfExecId()) { + hash = (37 * hash) + WF_EXEC_ID_FIELD_NUMBER; + hash = (53 * hash) + getWfExecId().hashCode(); + } + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable 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 flyteidl.plugins.WaitableOuterClass.Waitable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable 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 flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable 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(flyteidl.plugins.WaitableOuterClass.Waitable 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; + } + /** + *
+     * Represents an Execution that was launched and could be waited on.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.Waitable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.Waitable) + flyteidl.plugins.WaitableOuterClass.WaitableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); + } + + // Construct using flyteidl.plugins.WaitableOuterClass.Waitable.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 (wfExecIdBuilder_ == null) { + wfExecId_ = null; + } else { + wfExecId_ = null; + wfExecIdBuilder_ = null; + } + phase_ = 0; + + workflowId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { + return flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.WaitableOuterClass.Waitable build() { + flyteidl.plugins.WaitableOuterClass.Waitable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.WaitableOuterClass.Waitable buildPartial() { + flyteidl.plugins.WaitableOuterClass.Waitable result = new flyteidl.plugins.WaitableOuterClass.Waitable(this); + if (wfExecIdBuilder_ == null) { + result.wfExecId_ = wfExecId_; + } else { + result.wfExecId_ = wfExecIdBuilder_.build(); + } + result.phase_ = phase_; + result.workflowId_ = workflowId_; + 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 flyteidl.plugins.WaitableOuterClass.Waitable) { + return mergeFrom((flyteidl.plugins.WaitableOuterClass.Waitable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.WaitableOuterClass.Waitable other) { + if (other == flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance()) return this; + if (other.hasWfExecId()) { + mergeWfExecId(other.getWfExecId()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (!other.getWorkflowId().isEmpty()) { + workflowId_ = other.workflowId_; + 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 { + flyteidl.plugins.WaitableOuterClass.Waitable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.WaitableOuterClass.Waitable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> wfExecIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public boolean hasWfExecId() { + return wfExecIdBuilder_ != null || wfExecId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { + if (wfExecIdBuilder_ == null) { + return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; + } else { + return wfExecIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder setWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (wfExecIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + wfExecId_ = value; + onChanged(); + } else { + wfExecIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder setWfExecId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (wfExecIdBuilder_ == null) { + wfExecId_ = builderForValue.build(); + onChanged(); + } else { + wfExecIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder mergeWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (wfExecIdBuilder_ == null) { + if (wfExecId_ != null) { + wfExecId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(wfExecId_).mergeFrom(value).buildPartial(); + } else { + wfExecId_ = value; + } + onChanged(); + } else { + wfExecIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder clearWfExecId() { + if (wfExecIdBuilder_ == null) { + wfExecId_ = null; + onChanged(); + } else { + wfExecId_ = null; + wfExecIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWfExecIdBuilder() { + + onChanged(); + return getWfExecIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { + if (wfExecIdBuilder_ != null) { + return wfExecIdBuilder_.getMessageOrBuilder(); + } else { + return wfExecId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getWfExecIdFieldBuilder() { + if (wfExecIdBuilder_ == null) { + wfExecIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getWfExecId(), + getParentForChildren(), + isClean()); + wfExecId_ = null; + } + return wfExecIdBuilder_; + } + + private int phase_ = 0; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private java.lang.Object workflowId_ = ""; + /** + * string workflow_id = 3; + */ + public java.lang.String getWorkflowId() { + java.lang.Object ref = workflowId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflowId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workflow_id = 3; + */ + public com.google.protobuf.ByteString + getWorkflowIdBytes() { + java.lang.Object ref = workflowId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflowId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workflow_id = 3; + */ + public Builder setWorkflowId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflowId_ = value; + onChanged(); + return this; + } + /** + * string workflow_id = 3; + */ + public Builder clearWorkflowId() { + + workflowId_ = getDefaultInstance().getWorkflowId(); + onChanged(); + return this; + } + /** + * string workflow_id = 3; + */ + public Builder setWorkflowIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflowId_ = 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:flyteidl.plugins.Waitable) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.Waitable) + private static final flyteidl.plugins.WaitableOuterClass.Waitable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.WaitableOuterClass.Waitable(); + } + + public static flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Waitable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Waitable(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 flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_Waitable_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_Waitable_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\037flyteidl/plugins/waitable.proto\022\020flyte" + + "idl.plugins\032\035flyteidl/core/execution.pro" + + "to\032\036flyteidl/core/identifier.proto\"\226\001\n\010W" + + "aitable\022>\n\nwf_exec_id\030\001 \001(\0132*.flyteidl.c" + + "ore.WorkflowExecutionIdentifier\0225\n\005phase" + + "\030\002 \001(\0162&.flyteidl.core.WorkflowExecution" + + ".Phase\022\023\n\013workflow_id\030\003 \001(\tB5Z3github.co" + + "m/lyft/flyteidl/gen/pb-go/flyteidl/plugi" + + "nsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_Waitable_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_Waitable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_Waitable_descriptor, + new java.lang.String[] { "WfExecId", "Phase", "WorkflowId", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java b/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java new file mode 100644 index 000000000..87ed539e5 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java @@ -0,0 +1,2824 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/hpo_job.proto + +package flyteidl.plugins.sagemaker; + +public final class HpoJob { + private HpoJob() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface HyperparameterTuningObjectiveOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + int getObjectiveTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); + + /** + * string metric_name = 2; + */ + java.lang.String getMetricName(); + /** + * string metric_name = 2; + */ + com.google.protobuf.ByteString + getMetricNameBytes(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} + */ + public static final class HyperparameterTuningObjective extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + HyperparameterTuningObjectiveOrBuilder { + private static final long serialVersionUID = 0L; + // Use HyperparameterTuningObjective.newBuilder() to construct. + private HyperparameterTuningObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HyperparameterTuningObjective() { + objectiveType_ = 0; + metricName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HyperparameterTuningObjective( + 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 8: { + int rawValue = input.readEnum(); + + objectiveType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + metricName_ = 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType} + */ + public enum HyperparameterTuningObjectiveType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MINIMIZE = 0; + */ + MINIMIZE(0), + /** + * MAXIMIZE = 1; + */ + MAXIMIZE(1), + UNRECOGNIZED(-1), + ; + + /** + * MINIMIZE = 0; + */ + public static final int MINIMIZE_VALUE = 0; + /** + * MAXIMIZE = 1; + */ + public static final int MAXIMIZE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HyperparameterTuningObjectiveType valueOf(int value) { + return forNumber(value); + } + + public static HyperparameterTuningObjectiveType forNumber(int value) { + switch (value) { + case 0: return MINIMIZE; + case 1: return MAXIMIZE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HyperparameterTuningObjectiveType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HyperparameterTuningObjectiveType findValueByNumber(int number) { + return HyperparameterTuningObjectiveType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0); + } + + private static final HyperparameterTuningObjectiveType[] VALUES = values(); + + public static HyperparameterTuningObjectiveType 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 HyperparameterTuningObjectiveType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType) + } + + public static final int OBJECTIVE_TYPE_FIELD_NUMBER = 1; + private int objectiveType_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public int getObjectiveTypeValue() { + return objectiveType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; + } + + public static final int METRIC_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object metricName_; + /** + * string metric_name = 2; + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + 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(); + metricName_ = s; + return s; + } + } + /** + * string metric_name = 2; + */ + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = 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 (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { + output.writeEnum(1, objectiveType_); + } + if (!getMetricNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, objectiveType_); + } + if (!getMetricNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricName_); + } + 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) obj; + + if (objectiveType_ != other.objectiveType_) return false; + if (!getMetricName() + .equals(other.getMetricName())) 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) + OBJECTIVE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + objectiveType_; + hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HyperparameterTuningObjective} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.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(); + objectiveType_ = 0; + + metricName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective build() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(this); + result.objectiveType_ = objectiveType_; + result.metricName_ = metricName_; + 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance()) return this; + if (other.objectiveType_ != 0) { + setObjectiveTypeValue(other.getObjectiveTypeValue()); + } + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + 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 { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int objectiveType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public int getObjectiveTypeValue() { + return objectiveType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public Builder setObjectiveTypeValue(int value) { + objectiveType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public Builder setObjectiveType(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) { + if (value == null) { + throw new NullPointerException(); + } + + objectiveType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + public Builder clearObjectiveType() { + + objectiveType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object metricName_ = ""; + /** + * string metric_name = 2; + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string metric_name = 2; + */ + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string metric_name = 2; + */ + public Builder setMetricName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metricName_ = value; + onChanged(); + return this; + } + /** + * string metric_name = 2; + */ + public Builder clearMetricName() { + + metricName_ = getDefaultInstance().getMetricName(); + onChanged(); + return this; + } + /** + * string metric_name = 2; + */ + public Builder setMetricNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metricName_ = 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:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(); + } + + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HyperparameterTuningObjective parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HyperparameterTuningObjective(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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HPOJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + boolean hasTrainingJob(); + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob(); + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder(); + + /** + * int64 max_number_of_training_jobs = 2; + */ + long getMaxNumberOfTrainingJobs(); + + /** + * int64 max_parallel_training_jobs = 3; + */ + long getMaxParallelTrainingJobs(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJob} + */ + public static final class HPOJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJob) + HPOJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use HPOJob.newBuilder() to construct. + private HPOJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HPOJob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HPOJob( + 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: { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder subBuilder = null; + if (trainingJob_ != null) { + subBuilder = trainingJob_.toBuilder(); + } + trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingJob_); + trainingJob_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + maxNumberOfTrainingJobs_ = input.readInt64(); + break; + } + case 24: { + + maxParallelTrainingJobs_ = 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class); + } + + public static final int TRAINING_JOB_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public boolean hasTrainingJob() { + return trainingJob_ != null; + } + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { + return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; + } + /** + *
+     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { + return getTrainingJob(); + } + + public static final int MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER = 2; + private long maxNumberOfTrainingJobs_; + /** + * int64 max_number_of_training_jobs = 2; + */ + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; + } + + public static final int MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER = 3; + private long maxParallelTrainingJobs_; + /** + * int64 max_parallel_training_jobs = 3; + */ + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; + } + + 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 (trainingJob_ != null) { + output.writeMessage(1, getTrainingJob()); + } + if (maxNumberOfTrainingJobs_ != 0L) { + output.writeInt64(2, maxNumberOfTrainingJobs_); + } + if (maxParallelTrainingJobs_ != 0L) { + output.writeInt64(3, maxParallelTrainingJobs_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (trainingJob_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTrainingJob()); + } + if (maxNumberOfTrainingJobs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxNumberOfTrainingJobs_); + } + if (maxParallelTrainingJobs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, maxParallelTrainingJobs_); + } + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HpoJob.HPOJob other = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) obj; + + if (hasTrainingJob() != other.hasTrainingJob()) return false; + if (hasTrainingJob()) { + if (!getTrainingJob() + .equals(other.getTrainingJob())) return false; + } + if (getMaxNumberOfTrainingJobs() + != other.getMaxNumberOfTrainingJobs()) return false; + if (getMaxParallelTrainingJobs() + != other.getMaxParallelTrainingJobs()) 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 (hasTrainingJob()) { + hash = (37 * hash) + TRAINING_JOB_FIELD_NUMBER; + hash = (53 * hash) + getTrainingJob().hashCode(); + } + hash = (37 * hash) + MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxNumberOfTrainingJobs()); + hash = (37 * hash) + MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxParallelTrainingJobs()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob 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(flyteidl.plugins.sagemaker.HpoJob.HPOJob 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 flyteidl.plugins.sagemaker.HPOJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJob) + flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJob.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 (trainingJobBuilder_ == null) { + trainingJob_ = null; + } else { + trainingJob_ = null; + trainingJobBuilder_ = null; + } + maxNumberOfTrainingJobs_ = 0L; + + maxParallelTrainingJobs_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJob build() { + flyteidl.plugins.sagemaker.HpoJob.HPOJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJob buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HPOJob result = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(this); + if (trainingJobBuilder_ == null) { + result.trainingJob_ = trainingJob_; + } else { + result.trainingJob_ = trainingJobBuilder_.build(); + } + result.maxNumberOfTrainingJobs_ = maxNumberOfTrainingJobs_; + result.maxParallelTrainingJobs_ = maxParallelTrainingJobs_; + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJob other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance()) return this; + if (other.hasTrainingJob()) { + mergeTrainingJob(other.getTrainingJob()); + } + if (other.getMaxNumberOfTrainingJobs() != 0L) { + setMaxNumberOfTrainingJobs(other.getMaxNumberOfTrainingJobs()); + } + if (other.getMaxParallelTrainingJobs() != 0L) { + setMaxParallelTrainingJobs(other.getMaxParallelTrainingJobs()); + } + 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 { + flyteidl.plugins.sagemaker.HpoJob.HPOJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> trainingJobBuilder_; + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public boolean hasTrainingJob() { + return trainingJobBuilder_ != null || trainingJob_ != null; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { + if (trainingJobBuilder_ == null) { + return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; + } else { + return trainingJobBuilder_.getMessage(); + } + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public Builder setTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { + if (trainingJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingJob_ = value; + onChanged(); + } else { + trainingJobBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public Builder setTrainingJob( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder builderForValue) { + if (trainingJobBuilder_ == null) { + trainingJob_ = builderForValue.build(); + onChanged(); + } else { + trainingJobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { + if (trainingJobBuilder_ == null) { + if (trainingJob_ != null) { + trainingJob_ = + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); + } else { + trainingJob_ = value; + } + onChanged(); + } else { + trainingJobBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public Builder clearTrainingJob() { + if (trainingJobBuilder_ == null) { + trainingJob_ = null; + onChanged(); + } else { + trainingJob_ = null; + trainingJobBuilder_ = null; + } + + return this; + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder getTrainingJobBuilder() { + + onChanged(); + return getTrainingJobFieldBuilder().getBuilder(); + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { + if (trainingJobBuilder_ != null) { + return trainingJobBuilder_.getMessageOrBuilder(); + } else { + return trainingJob_ == null ? + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; + } + } + /** + *
+       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> + getTrainingJobFieldBuilder() { + if (trainingJobBuilder_ == null) { + trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder>( + getTrainingJob(), + getParentForChildren(), + isClean()); + trainingJob_ = null; + } + return trainingJobBuilder_; + } + + private long maxNumberOfTrainingJobs_ ; + /** + * int64 max_number_of_training_jobs = 2; + */ + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; + } + /** + * int64 max_number_of_training_jobs = 2; + */ + public Builder setMaxNumberOfTrainingJobs(long value) { + + maxNumberOfTrainingJobs_ = value; + onChanged(); + return this; + } + /** + * int64 max_number_of_training_jobs = 2; + */ + public Builder clearMaxNumberOfTrainingJobs() { + + maxNumberOfTrainingJobs_ = 0L; + onChanged(); + return this; + } + + private long maxParallelTrainingJobs_ ; + /** + * int64 max_parallel_training_jobs = 3; + */ + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; + } + /** + * int64 max_parallel_training_jobs = 3; + */ + public Builder setMaxParallelTrainingJobs(long value) { + + maxParallelTrainingJobs_ = value; + onChanged(); + return this; + } + /** + * int64 max_parallel_training_jobs = 3; + */ + public Builder clearMaxParallelTrainingJobs() { + + maxParallelTrainingJobs_ = 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:flyteidl.plugins.sagemaker.HPOJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) + private static final flyteidl.plugins.sagemaker.HpoJob.HPOJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(); + } + + public static flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HPOJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HPOJob(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 flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HPOJobConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJobConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + boolean hasHyperparameterRanges(); + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges(); + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + int getTuningStrategyValue(); + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy(); + + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + boolean hasTuningObjective(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + int getTrainingJobEarlyStoppingTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobConfig} + */ + public static final class HPOJobConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJobConfig) + HPOJobConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use HPOJobConfig.newBuilder() to construct. + private HPOJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HPOJobConfig() { + tuningStrategy_ = 0; + trainingJobEarlyStoppingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HPOJobConfig( + 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: { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder subBuilder = null; + if (hyperparameterRanges_ != null) { + subBuilder = hyperparameterRanges_.toBuilder(); + } + hyperparameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hyperparameterRanges_); + hyperparameterRanges_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + tuningStrategy_ = rawValue; + break; + } + case 26: { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder subBuilder = null; + if (tuningObjective_ != null) { + subBuilder = tuningObjective_.toBuilder(); + } + tuningObjective_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tuningObjective_); + tuningObjective_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + trainingJobEarlyStoppingType_ = rawValue; + 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy} + */ + public enum HyperparameterTuningStrategy + implements com.google.protobuf.ProtocolMessageEnum { + /** + * BAYESIAN = 0; + */ + BAYESIAN(0), + /** + * RANDOM = 1; + */ + RANDOM(1), + UNRECOGNIZED(-1), + ; + + /** + * BAYESIAN = 0; + */ + public static final int BAYESIAN_VALUE = 0; + /** + * RANDOM = 1; + */ + public static final int RANDOM_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HyperparameterTuningStrategy valueOf(int value) { + return forNumber(value); + } + + public static HyperparameterTuningStrategy forNumber(int value) { + switch (value) { + case 0: return BAYESIAN; + case 1: return RANDOM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HyperparameterTuningStrategy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HyperparameterTuningStrategy findValueByNumber(int number) { + return HyperparameterTuningStrategy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final HyperparameterTuningStrategy[] VALUES = values(); + + public static HyperparameterTuningStrategy 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 HyperparameterTuningStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy) + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType} + */ + public enum TrainingJobEarlyStoppingType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * OFF = 0; + */ + OFF(0), + /** + * AUTO = 1; + */ + AUTO(1), + UNRECOGNIZED(-1), + ; + + /** + * OFF = 0; + */ + public static final int OFF_VALUE = 0; + /** + * AUTO = 1; + */ + public static final int AUTO_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TrainingJobEarlyStoppingType valueOf(int value) { + return forNumber(value); + } + + public static TrainingJobEarlyStoppingType forNumber(int value) { + switch (value) { + case 0: return OFF; + case 1: return AUTO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TrainingJobEarlyStoppingType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TrainingJobEarlyStoppingType findValueByNumber(int number) { + return TrainingJobEarlyStoppingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final TrainingJobEarlyStoppingType[] VALUES = values(); + + public static TrainingJobEarlyStoppingType 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 TrainingJobEarlyStoppingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType) + } + + public static final int HYPERPARAMETER_RANGES_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_; + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public boolean hasHyperparameterRanges() { + return hyperparameterRanges_ != null; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { + return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { + return getHyperparameterRanges(); + } + + public static final int TUNING_STRATEGY_FIELD_NUMBER = 2; + private int tuningStrategy_; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public int getTuningStrategyValue() { + return tuningStrategy_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result; + } + + public static final int TUNING_OBJECTIVE_FIELD_NUMBER = 3; + private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public boolean hasTuningObjective() { + return tuningObjective_ != null; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() { + return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { + return getTuningObjective(); + } + + public static final int TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER = 4; + private int trainingJobEarlyStoppingType_; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public int getTrainingJobEarlyStoppingTypeValue() { + return trainingJobEarlyStoppingType_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; + } + + 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 (hyperparameterRanges_ != null) { + output.writeMessage(1, getHyperparameterRanges()); + } + if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { + output.writeEnum(2, tuningStrategy_); + } + if (tuningObjective_ != null) { + output.writeMessage(3, getTuningObjective()); + } + if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) { + output.writeEnum(4, trainingJobEarlyStoppingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hyperparameterRanges_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHyperparameterRanges()); + } + if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, tuningStrategy_); + } + if (tuningObjective_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTuningObjective()); + } + if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, trainingJobEarlyStoppingType_); + } + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) obj; + + if (hasHyperparameterRanges() != other.hasHyperparameterRanges()) return false; + if (hasHyperparameterRanges()) { + if (!getHyperparameterRanges() + .equals(other.getHyperparameterRanges())) return false; + } + if (tuningStrategy_ != other.tuningStrategy_) return false; + if (hasTuningObjective() != other.hasTuningObjective()) return false; + if (hasTuningObjective()) { + if (!getTuningObjective() + .equals(other.getTuningObjective())) return false; + } + if (trainingJobEarlyStoppingType_ != other.trainingJobEarlyStoppingType_) 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 (hasHyperparameterRanges()) { + hash = (37 * hash) + HYPERPARAMETER_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getHyperparameterRanges().hashCode(); + } + hash = (37 * hash) + TUNING_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + tuningStrategy_; + if (hasTuningObjective()) { + hash = (37 * hash) + TUNING_OBJECTIVE_FIELD_NUMBER; + hash = (53 * hash) + getTuningObjective().hashCode(); + } + hash = (37 * hash) + TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + trainingJobEarlyStoppingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig 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 flyteidl.plugins.sagemaker.HPOJobConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobConfig) + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.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 (hyperparameterRangesBuilder_ == null) { + hyperparameterRanges_ = null; + } else { + hyperparameterRanges_ = null; + hyperparameterRangesBuilder_ = null; + } + tuningStrategy_ = 0; + + if (tuningObjectiveBuilder_ == null) { + tuningObjective_ = null; + } else { + tuningObjective_ = null; + tuningObjectiveBuilder_ = null; + } + trainingJobEarlyStoppingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig build() { + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(this); + if (hyperparameterRangesBuilder_ == null) { + result.hyperparameterRanges_ = hyperparameterRanges_; + } else { + result.hyperparameterRanges_ = hyperparameterRangesBuilder_.build(); + } + result.tuningStrategy_ = tuningStrategy_; + if (tuningObjectiveBuilder_ == null) { + result.tuningObjective_ = tuningObjective_; + } else { + result.tuningObjective_ = tuningObjectiveBuilder_.build(); + } + result.trainingJobEarlyStoppingType_ = trainingJobEarlyStoppingType_; + 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance()) return this; + if (other.hasHyperparameterRanges()) { + mergeHyperparameterRanges(other.getHyperparameterRanges()); + } + if (other.tuningStrategy_ != 0) { + setTuningStrategyValue(other.getTuningStrategyValue()); + } + if (other.hasTuningObjective()) { + mergeTuningObjective(other.getTuningObjective()); + } + if (other.trainingJobEarlyStoppingType_ != 0) { + setTrainingJobEarlyStoppingTypeValue(other.getTrainingJobEarlyStoppingTypeValue()); + } + 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 { + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> hyperparameterRangesBuilder_; + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public boolean hasHyperparameterRanges() { + return hyperparameterRangesBuilder_ != null || hyperparameterRanges_ != null; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { + if (hyperparameterRangesBuilder_ == null) { + return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; + } else { + return hyperparameterRangesBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { + if (hyperparameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hyperparameterRanges_ = value; + onChanged(); + } else { + hyperparameterRangesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder setHyperparameterRanges( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder builderForValue) { + if (hyperparameterRangesBuilder_ == null) { + hyperparameterRanges_ = builderForValue.build(); + onChanged(); + } else { + hyperparameterRangesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder mergeHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { + if (hyperparameterRangesBuilder_ == null) { + if (hyperparameterRanges_ != null) { + hyperparameterRanges_ = + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.newBuilder(hyperparameterRanges_).mergeFrom(value).buildPartial(); + } else { + hyperparameterRanges_ = value; + } + onChanged(); + } else { + hyperparameterRangesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder clearHyperparameterRanges() { + if (hyperparameterRangesBuilder_ == null) { + hyperparameterRanges_ = null; + onChanged(); + } else { + hyperparameterRanges_ = null; + hyperparameterRangesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder getHyperparameterRangesBuilder() { + + onChanged(); + return getHyperparameterRangesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { + if (hyperparameterRangesBuilder_ != null) { + return hyperparameterRangesBuilder_.getMessageOrBuilder(); + } else { + return hyperparameterRanges_ == null ? + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; + } + } + /** + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> + getHyperparameterRangesFieldBuilder() { + if (hyperparameterRangesBuilder_ == null) { + hyperparameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder>( + getHyperparameterRanges(), + getParentForChildren(), + isClean()); + hyperparameterRanges_ = null; + } + return hyperparameterRangesBuilder_; + } + + private int tuningStrategy_ = 0; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public int getTuningStrategyValue() { + return tuningStrategy_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public Builder setTuningStrategyValue(int value) { + tuningStrategy_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + + tuningStrategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + */ + public Builder clearTuningStrategy() { + + tuningStrategy_ = 0; + onChanged(); + return this; + } + + private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> tuningObjectiveBuilder_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public boolean hasTuningObjective() { + return tuningObjectiveBuilder_ != null || tuningObjective_ != null; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() { + if (tuningObjectiveBuilder_ == null) { + return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; + } else { + return tuningObjectiveBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder setTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) { + if (tuningObjectiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tuningObjective_ = value; + onChanged(); + } else { + tuningObjectiveBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder setTuningObjective( + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder builderForValue) { + if (tuningObjectiveBuilder_ == null) { + tuningObjective_ = builderForValue.build(); + onChanged(); + } else { + tuningObjectiveBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) { + if (tuningObjectiveBuilder_ == null) { + if (tuningObjective_ != null) { + tuningObjective_ = + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder(tuningObjective_).mergeFrom(value).buildPartial(); + } else { + tuningObjective_ = value; + } + onChanged(); + } else { + tuningObjectiveBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder clearTuningObjective() { + if (tuningObjectiveBuilder_ == null) { + tuningObjective_ = null; + onChanged(); + } else { + tuningObjective_ = null; + tuningObjectiveBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder getTuningObjectiveBuilder() { + + onChanged(); + return getTuningObjectiveFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { + if (tuningObjectiveBuilder_ != null) { + return tuningObjectiveBuilder_.getMessageOrBuilder(); + } else { + return tuningObjective_ == null ? + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; + } + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> + getTuningObjectiveFieldBuilder() { + if (tuningObjectiveBuilder_ == null) { + tuningObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder>( + getTuningObjective(), + getParentForChildren(), + isClean()); + tuningObjective_ = null; + } + return tuningObjectiveBuilder_; + } + + private int trainingJobEarlyStoppingType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public int getTrainingJobEarlyStoppingTypeValue() { + return trainingJobEarlyStoppingType_; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public Builder setTrainingJobEarlyStoppingTypeValue(int value) { + trainingJobEarlyStoppingType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType value) { + if (value == null) { + throw new NullPointerException(); + } + + trainingJobEarlyStoppingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + */ + public Builder clearTrainingJobEarlyStoppingType() { + + trainingJobEarlyStoppingType_ = 0; + 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:flyteidl.plugins.sagemaker.HPOJobConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) + private static final flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(); + } + + public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HPOJobConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HPOJobConfig(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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_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(flyteidl/plugins/sagemaker/hpo_job.pro" + + "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" + + "/plugins/sagemaker/parameter_ranges.prot" + + "o\032-flyteidl/plugins/sagemaker/training_j" + + "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" + + "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" + + "ugins.sagemaker.HyperparameterTuningObje" + + "ctive.HyperparameterTuningObjectiveType\022" + + "\023\n\013metric_name\030\002 \001(\t\"?\n!HyperparameterTu" + + "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" + + "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" + + ".flyteidl.plugins.sagemaker.TrainingJob\022" + + "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" + + "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" + + "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" + + "2+.flyteidl.plugins.sagemaker.ParameterR" + + "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" + + "l.plugins.sagemaker.HPOJobConfig.Hyperpa" + + "rameterTuningStrategy\022S\n\020tuning_objectiv" + + "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" + + "erparameterTuningObjective\022o\n training_j" + + "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." + + "plugins.sagemaker.HPOJobConfig.TrainingJ" + + "obEarlyStoppingType\"8\n\034HyperparameterTun" + + "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" + + "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" + + "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" + + "/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(), + flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor, + new java.lang.String[] { "ObjectiveType", "MetricName", }); + internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor, + new java.lang.String[] { "TrainingJob", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", }); + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor, + new java.lang.String[] { "HyperparameterRanges", "TuningStrategy", "TuningObjective", "TrainingJobEarlyStoppingType", }); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java new file mode 100644 index 000000000..85e2b73f0 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java @@ -0,0 +1,3973 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto + +package flyteidl.plugins.sagemaker; + +public final class ParameterRangesOuterClass { + private ParameterRangesOuterClass() {} + 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 flyteidl.plugins.sagemaker.HyperparameterScalingType} + */ + public enum HyperparameterScalingType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * AUTO = 0; + */ + AUTO(0), + /** + * LINEAR = 1; + */ + LINEAR(1), + /** + * LOGARITHMIC = 2; + */ + LOGARITHMIC(2), + /** + * REVERSELOGARITHMIC = 3; + */ + REVERSELOGARITHMIC(3), + UNRECOGNIZED(-1), + ; + + /** + * AUTO = 0; + */ + public static final int AUTO_VALUE = 0; + /** + * LINEAR = 1; + */ + public static final int LINEAR_VALUE = 1; + /** + * LOGARITHMIC = 2; + */ + public static final int LOGARITHMIC_VALUE = 2; + /** + * REVERSELOGARITHMIC = 3; + */ + public static final int REVERSELOGARITHMIC_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HyperparameterScalingType valueOf(int value) { + return forNumber(value); + } + + public static HyperparameterScalingType forNumber(int value) { + switch (value) { + case 0: return AUTO; + case 1: return LINEAR; + case 2: return LOGARITHMIC; + case 3: return REVERSELOGARITHMIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HyperparameterScalingType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HyperparameterScalingType findValueByNumber(int number) { + return HyperparameterScalingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final HyperparameterScalingType[] VALUES = values(); + + public static HyperparameterScalingType 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 HyperparameterScalingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) + } + + public interface ContinuousParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ContinuousParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * double max_value = 1; + */ + double getMaxValue(); + + /** + * double min_value = 2; + */ + double getMinValue(); + + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + int getScalingTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} + */ + public static final class ContinuousParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ContinuousParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContinuousParameterRange.newBuilder() to construct. + private ContinuousParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContinuousParameterRange() { + scalingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContinuousParameterRange( + 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 9: { + + maxValue_ = input.readDouble(); + break; + } + case 17: { + + minValue_ = input.readDouble(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + scalingType_ = rawValue; + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class); + } + + public static final int MAX_VALUE_FIELD_NUMBER = 1; + private double maxValue_; + /** + * double max_value = 1; + */ + public double getMaxValue() { + return maxValue_; + } + + public static final int MIN_VALUE_FIELD_NUMBER = 2; + private double minValue_; + /** + * double min_value = 2; + */ + public double getMinValue() { + return minValue_; + } + + public static final int SCALING_TYPE_FIELD_NUMBER = 3; + private int scalingType_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; + } + + 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 (maxValue_ != 0D) { + output.writeDouble(1, maxValue_); + } + if (minValue_ != 0D) { + output.writeDouble(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { + output.writeEnum(3, scalingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxValue_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, maxValue_); + } + if (minValue_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, scalingType_); + } + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) obj; + + if (java.lang.Double.doubleToLongBits(getMaxValue()) + != java.lang.Double.doubleToLongBits( + other.getMaxValue())) return false; + if (java.lang.Double.doubleToLongBits(getMinValue()) + != java.lang.Double.doubleToLongBits( + other.getMinValue())) return false; + if (scalingType_ != other.scalingType_) 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) + MAX_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaxValue())); + hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinValue())); + hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + scalingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange 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 flyteidl.plugins.sagemaker.ContinuousParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.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(); + maxValue_ = 0D; + + minValue_ = 0D; + + scalingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(this); + result.maxValue_ = maxValue_; + result.minValue_ = minValue_; + result.scalingType_ = scalingType_; + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) return this; + if (other.getMaxValue() != 0D) { + setMaxValue(other.getMaxValue()); + } + if (other.getMinValue() != 0D) { + setMinValue(other.getMinValue()); + } + if (other.scalingType_ != 0) { + setScalingTypeValue(other.getScalingTypeValue()); + } + 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 { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double maxValue_ ; + /** + * double max_value = 1; + */ + public double getMaxValue() { + return maxValue_; + } + /** + * double max_value = 1; + */ + public Builder setMaxValue(double value) { + + maxValue_ = value; + onChanged(); + return this; + } + /** + * double max_value = 1; + */ + public Builder clearMaxValue() { + + maxValue_ = 0D; + onChanged(); + return this; + } + + private double minValue_ ; + /** + * double min_value = 2; + */ + public double getMinValue() { + return minValue_; + } + /** + * double min_value = 2; + */ + public Builder setMinValue(double value) { + + minValue_ = value; + onChanged(); + return this; + } + /** + * double min_value = 2; + */ + public Builder clearMinValue() { + + minValue_ = 0D; + onChanged(); + return this; + } + + private int scalingType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder setScalingTypeValue(int value) { + scalingType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) { + if (value == null) { + throw new NullPointerException(); + } + + scalingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder clearScalingType() { + + scalingType_ = 0; + 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:flyteidl.plugins.sagemaker.ContinuousParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContinuousParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContinuousParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IntegerParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.IntegerParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 max_value = 1; + */ + long getMaxValue(); + + /** + * int64 min_value = 2; + */ + long getMinValue(); + + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + int getScalingTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} + */ + public static final class IntegerParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) + IntegerParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntegerParameterRange.newBuilder() to construct. + private IntegerParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IntegerParameterRange() { + scalingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IntegerParameterRange( + 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 8: { + + maxValue_ = input.readInt64(); + break; + } + case 16: { + + minValue_ = input.readInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + scalingType_ = rawValue; + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class); + } + + public static final int MAX_VALUE_FIELD_NUMBER = 1; + private long maxValue_; + /** + * int64 max_value = 1; + */ + public long getMaxValue() { + return maxValue_; + } + + public static final int MIN_VALUE_FIELD_NUMBER = 2; + private long minValue_; + /** + * int64 min_value = 2; + */ + public long getMinValue() { + return minValue_; + } + + public static final int SCALING_TYPE_FIELD_NUMBER = 3; + private int scalingType_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; + } + + 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 (maxValue_ != 0L) { + output.writeInt64(1, maxValue_); + } + if (minValue_ != 0L) { + output.writeInt64(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { + output.writeEnum(3, scalingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxValue_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxValue_); + } + if (minValue_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, scalingType_); + } + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) obj; + + if (getMaxValue() + != other.getMaxValue()) return false; + if (getMinValue() + != other.getMinValue()) return false; + if (scalingType_ != other.scalingType_) 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) + MAX_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxValue()); + hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinValue()); + hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + scalingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange 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 flyteidl.plugins.sagemaker.IntegerParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.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(); + maxValue_ = 0L; + + minValue_ = 0L; + + scalingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(this); + result.maxValue_ = maxValue_; + result.minValue_ = minValue_; + result.scalingType_ = scalingType_; + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) return this; + if (other.getMaxValue() != 0L) { + setMaxValue(other.getMaxValue()); + } + if (other.getMinValue() != 0L) { + setMinValue(other.getMinValue()); + } + if (other.scalingType_ != 0) { + setScalingTypeValue(other.getScalingTypeValue()); + } + 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 { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxValue_ ; + /** + * int64 max_value = 1; + */ + public long getMaxValue() { + return maxValue_; + } + /** + * int64 max_value = 1; + */ + public Builder setMaxValue(long value) { + + maxValue_ = value; + onChanged(); + return this; + } + /** + * int64 max_value = 1; + */ + public Builder clearMaxValue() { + + maxValue_ = 0L; + onChanged(); + return this; + } + + private long minValue_ ; + /** + * int64 min_value = 2; + */ + public long getMinValue() { + return minValue_; + } + /** + * int64 min_value = 2; + */ + public Builder setMinValue(long value) { + + minValue_ = value; + onChanged(); + return this; + } + /** + * int64 min_value = 2; + */ + public Builder clearMinValue() { + + minValue_ = 0L; + onChanged(); + return this; + } + + private int scalingType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder setScalingTypeValue(int value) { + scalingType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) { + if (value == null) { + throw new NullPointerException(); + } + + scalingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + */ + public Builder clearScalingType() { + + scalingType_ = 0; + 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:flyteidl.plugins.sagemaker.IntegerParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntegerParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IntegerParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CategoricalParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.CategoricalParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string values = 1; + */ + java.util.List + getValuesList(); + /** + * repeated string values = 1; + */ + int getValuesCount(); + /** + * repeated string values = 1; + */ + java.lang.String getValues(int index); + /** + * repeated string values = 1; + */ + com.google.protobuf.ByteString + getValuesBytes(int index); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} + */ + public static final class CategoricalParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) + CategoricalParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CategoricalParameterRange.newBuilder() to construct. + private CategoricalParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CategoricalParameterRange() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CategoricalParameterRange( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add(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)) { + values_ = values_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList values_; + /** + * repeated string values = 1; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_; + } + /** + * repeated string values = 1; + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(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 < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) obj; + + if (!getValuesList() + .equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange 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 flyteidl.plugins.sagemaker.CategoricalParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.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(); + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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 { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string values = 1; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * repeated string values = 1; + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * repeated string values = 1; + */ + public Builder setValues( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder addValues( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(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:flyteidl.plugins.sagemaker.CategoricalParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CategoricalParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CategoricalParameterRange(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterRangeOneOfOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + boolean hasContinuousParameterRange(); + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange(); + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + boolean hasIntegerParameterRange(); + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange(); + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + boolean hasCategoricalParameterRange(); + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange(); + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder(); + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.ParameterRangeTypeCase getParameterRangeTypeCase(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf} + */ + public static final class ParameterRangeOneOf extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ParameterRangeOneOfOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterRangeOneOf.newBuilder() to construct. + private ParameterRangeOneOf(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterRangeOneOf() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterRangeOneOf( + 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: { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder subBuilder = null; + if (parameterRangeTypeCase_ == 1) { + subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_).toBuilder(); + } + parameterRangeType_ = + input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); + } + parameterRangeTypeCase_ = 1; + break; + } + case 18: { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder subBuilder = null; + if (parameterRangeTypeCase_ == 2) { + subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_).toBuilder(); + } + parameterRangeType_ = + input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); + } + parameterRangeTypeCase_ = 2; + break; + } + case 26: { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder subBuilder = null; + if (parameterRangeTypeCase_ == 3) { + subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_).toBuilder(); + } + parameterRangeType_ = + input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); + } + parameterRangeTypeCase_ = 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class); + } + + private int parameterRangeTypeCase_ = 0; + private java.lang.Object parameterRangeType_; + public enum ParameterRangeTypeCase + implements com.google.protobuf.Internal.EnumLite { + CONTINUOUS_PARAMETER_RANGE(1), + INTEGER_PARAMETER_RANGE(2), + CATEGORICAL_PARAMETER_RANGE(3), + PARAMETERRANGETYPE_NOT_SET(0); + private final int value; + private ParameterRangeTypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ParameterRangeTypeCase valueOf(int value) { + return forNumber(value); + } + + public static ParameterRangeTypeCase forNumber(int value) { + switch (value) { + case 1: return CONTINUOUS_PARAMETER_RANGE; + case 2: return INTEGER_PARAMETER_RANGE; + case 3: return CATEGORICAL_PARAMETER_RANGE; + case 0: return PARAMETERRANGETYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ParameterRangeTypeCase + getParameterRangeTypeCase() { + return ParameterRangeTypeCase.forNumber( + parameterRangeTypeCase_); + } + + public static final int CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER = 1; + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public boolean hasContinuousParameterRange() { + return parameterRangeTypeCase_ == 1; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + + public static final int INTEGER_PARAMETER_RANGE_FIELD_NUMBER = 2; + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public boolean hasIntegerParameterRange() { + return parameterRangeTypeCase_ == 2; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + + public static final int CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER = 3; + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public boolean hasCategoricalParameterRange() { + return parameterRangeTypeCase_ == 3; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (parameterRangeTypeCase_ == 1) { + output.writeMessage(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 2) { + output.writeMessage(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 3) { + output.writeMessage(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (parameterRangeTypeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); + } + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) obj; + + if (!getParameterRangeTypeCase().equals(other.getParameterRangeTypeCase())) return false; + switch (parameterRangeTypeCase_) { + case 1: + if (!getContinuousParameterRange() + .equals(other.getContinuousParameterRange())) return false; + break; + case 2: + if (!getIntegerParameterRange() + .equals(other.getIntegerParameterRange())) return false; + break; + case 3: + if (!getCategoricalParameterRange() + .equals(other.getCategoricalParameterRange())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (parameterRangeTypeCase_) { + case 1: + hash = (37 * hash) + CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getContinuousParameterRange().hashCode(); + break; + case 2: + hash = (37 * hash) + INTEGER_PARAMETER_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIntegerParameterRange().hashCode(); + break; + case 3: + hash = (37 * hash) + CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getCategoricalParameterRange().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf 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 flyteidl.plugins.sagemaker.ParameterRangeOneOf} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOfOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.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(); + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(this); + if (parameterRangeTypeCase_ == 1) { + if (continuousParameterRangeBuilder_ == null) { + result.parameterRangeType_ = parameterRangeType_; + } else { + result.parameterRangeType_ = continuousParameterRangeBuilder_.build(); + } + } + if (parameterRangeTypeCase_ == 2) { + if (integerParameterRangeBuilder_ == null) { + result.parameterRangeType_ = parameterRangeType_; + } else { + result.parameterRangeType_ = integerParameterRangeBuilder_.build(); + } + } + if (parameterRangeTypeCase_ == 3) { + if (categoricalParameterRangeBuilder_ == null) { + result.parameterRangeType_ = parameterRangeType_; + } else { + result.parameterRangeType_ = categoricalParameterRangeBuilder_.build(); + } + } + result.parameterRangeTypeCase_ = parameterRangeTypeCase_; + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()) return this; + switch (other.getParameterRangeTypeCase()) { + case CONTINUOUS_PARAMETER_RANGE: { + mergeContinuousParameterRange(other.getContinuousParameterRange()); + break; + } + case INTEGER_PARAMETER_RANGE: { + mergeIntegerParameterRange(other.getIntegerParameterRange()); + break; + } + case CATEGORICAL_PARAMETER_RANGE: { + mergeCategoricalParameterRange(other.getCategoricalParameterRange()); + break; + } + case PARAMETERRANGETYPE_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 { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int parameterRangeTypeCase_ = 0; + private java.lang.Object parameterRangeType_; + public ParameterRangeTypeCase + getParameterRangeTypeCase() { + return ParameterRangeTypeCase.forNumber( + parameterRangeTypeCase_); + } + + public Builder clearParameterRangeType() { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> continuousParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public boolean hasContinuousParameterRange() { + return parameterRangeTypeCase_ == 1; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypeCase_ == 1) { + return continuousParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) { + if (continuousParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeType_ = value; + onChanged(); + } else { + continuousParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder setContinuousParameterRange( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder builderForValue) { + if (continuousParameterRangeBuilder_ == null) { + parameterRangeType_ = builderForValue.build(); + onChanged(); + } else { + continuousParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypeCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 1 && + parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeType_ = value; + } + onChanged(); + } else { + if (parameterRangeTypeCase_ == 1) { + continuousParameterRangeBuilder_.mergeFrom(value); + } + continuousParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder clearContinuousParameterRange() { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 1) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + } + } else { + if (parameterRangeTypeCase_ == 1) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + } + continuousParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder getContinuousParameterRangeBuilder() { + return getContinuousParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { + if ((parameterRangeTypeCase_ == 1) && (continuousParameterRangeBuilder_ != null)) { + return continuousParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> + getContinuousParameterRangeFieldBuilder() { + if (continuousParameterRangeBuilder_ == null) { + if (!(parameterRangeTypeCase_ == 1)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + continuousParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_, + getParentForChildren(), + isClean()); + parameterRangeType_ = null; + } + parameterRangeTypeCase_ = 1; + onChanged();; + return continuousParameterRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> integerParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public boolean hasIntegerParameterRange() { + return parameterRangeTypeCase_ == 2; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypeCase_ == 2) { + return integerParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) { + if (integerParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeType_ = value; + onChanged(); + } else { + integerParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder setIntegerParameterRange( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder builderForValue) { + if (integerParameterRangeBuilder_ == null) { + parameterRangeType_ = builderForValue.build(); + onChanged(); + } else { + integerParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypeCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 2 && + parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeType_ = value; + } + onChanged(); + } else { + if (parameterRangeTypeCase_ == 2) { + integerParameterRangeBuilder_.mergeFrom(value); + } + integerParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder clearIntegerParameterRange() { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 2) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + } + } else { + if (parameterRangeTypeCase_ == 2) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + } + integerParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder getIntegerParameterRangeBuilder() { + return getIntegerParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { + if ((parameterRangeTypeCase_ == 2) && (integerParameterRangeBuilder_ != null)) { + return integerParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> + getIntegerParameterRangeFieldBuilder() { + if (integerParameterRangeBuilder_ == null) { + if (!(parameterRangeTypeCase_ == 2)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + integerParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_, + getParentForChildren(), + isClean()); + parameterRangeType_ = null; + } + parameterRangeTypeCase_ = 2; + onChanged();; + return integerParameterRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> categoricalParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public boolean hasCategoricalParameterRange() { + return parameterRangeTypeCase_ == 3; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypeCase_ == 3) { + return categoricalParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) { + if (categoricalParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeType_ = value; + onChanged(); + } else { + categoricalParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder setCategoricalParameterRange( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder builderForValue) { + if (categoricalParameterRangeBuilder_ == null) { + parameterRangeType_ = builderForValue.build(); + onChanged(); + } else { + categoricalParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypeCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 3 && + parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeType_ = value; + } + onChanged(); + } else { + if (parameterRangeTypeCase_ == 3) { + categoricalParameterRangeBuilder_.mergeFrom(value); + } + categoricalParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder clearCategoricalParameterRange() { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 3) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + } + } else { + if (parameterRangeTypeCase_ == 3) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + } + categoricalParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder getCategoricalParameterRangeBuilder() { + return getCategoricalParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { + if ((parameterRangeTypeCase_ == 3) && (categoricalParameterRangeBuilder_ != null)) { + return categoricalParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> + getCategoricalParameterRangeFieldBuilder() { + if (categoricalParameterRangeBuilder_ == null) { + if (!(parameterRangeTypeCase_ == 3)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + categoricalParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_, + getParentForChildren(), + isClean()); + parameterRangeType_ = null; + } + parameterRangeTypeCase_ = 3; + onChanged();; + return categoricalParameterRangeBuilder_; + } + @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:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterRangeOneOf parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterRangeOneOf(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterRangesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRanges) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + int getParameterRangeMapCount(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + boolean containsParameterRangeMap( + java.lang.String key); + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameterRangeMap(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + java.util.Map + getParameterRangeMapMap(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} + */ + public static final class ParameterRanges extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRanges) + ParameterRangesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterRanges.newBuilder() to construct. + private ParameterRanges(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterRanges() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterRanges( + 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)) { + parameterRangeMap_ = com.google.protobuf.MapField.newMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + parameterRangeMap__ = input.readMessage( + ParameterRangeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + parameterRangeMap_.getMutableMap().put( + parameterRangeMap__.getKey(), parameterRangeMap__.getValue()); + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class); + } + + public static final int PARAMETER_RANGE_MAP_FIELD_NUMBER = 1; + private static final class ParameterRangeMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_; + private com.google.protobuf.MapField + internalGetParameterRangeMap() { + if (parameterRangeMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + return parameterRangeMap_; + } + + public int getParameterRangeMapCount() { + return internalGetParameterRangeMap().getMap().size(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public boolean containsParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameterRangeMap().getMap().containsKey(key); + } + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameterRangeMap() { + return getParameterRangeMapMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public java.util.Map getParameterRangeMapMap() { + return internalGetParameterRangeMap().getMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParameterRangeMap(), + ParameterRangeMapDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetParameterRangeMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameterRangeMap__ = ParameterRangeMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, parameterRangeMap__); + } + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) obj; + + if (!internalGetParameterRangeMap().equals( + other.internalGetParameterRangeMap())) 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 (!internalGetParameterRangeMap().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETER_RANGE_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameterRangeMap().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges 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 flyteidl.plugins.sagemaker.ParameterRanges} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRanges) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.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(); + internalGetMutableParameterRangeMap().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(this); + int from_bitField0_ = bitField0_; + result.parameterRangeMap_ = internalGetParameterRangeMap(); + result.parameterRangeMap_.makeImmutable(); + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance()) return this; + internalGetMutableParameterRangeMap().mergeFrom( + other.internalGetParameterRangeMap()); + 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 { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_; + private com.google.protobuf.MapField + internalGetParameterRangeMap() { + if (parameterRangeMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + return parameterRangeMap_; + } + private com.google.protobuf.MapField + internalGetMutableParameterRangeMap() { + onChanged();; + if (parameterRangeMap_ == null) { + parameterRangeMap_ = com.google.protobuf.MapField.newMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + if (!parameterRangeMap_.isMutable()) { + parameterRangeMap_ = parameterRangeMap_.copy(); + } + return parameterRangeMap_; + } + + public int getParameterRangeMapCount() { + return internalGetParameterRangeMap().getMap().size(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public boolean containsParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameterRangeMap().getMap().containsKey(key); + } + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameterRangeMap() { + return getParameterRangeMapMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public java.util.Map getParameterRangeMapMap() { + return internalGetParameterRangeMap().getMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameterRangeMap() { + internalGetMutableParameterRangeMap().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public Builder removeParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameterRangeMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameterRangeMap() { + return internalGetMutableParameterRangeMap().getMutableMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + public Builder putParameterRangeMap( + java.lang.String key, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameterRangeMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public Builder putAllParameterRangeMap( + java.util.Map values) { + internalGetMutableParameterRangeMap().getMutableMap() + .putAll(values); + 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:flyteidl.plugins.sagemaker.ParameterRanges) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterRanges parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterRanges(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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1flyteidl/plugins/sagemaker/parameter_r" + + "anges.proto\022\032flyteidl.plugins.sagemaker\"" + + "\215\001\n\030ContinuousParameterRange\022\021\n\tmax_valu" + + "e\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_ty" + + "pe\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hy" + + "perparameterScalingType\"\212\001\n\025IntegerParam" + + "eterRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_valu" + + "e\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl" + + ".plugins.sagemaker.HyperparameterScaling" + + "Type\"+\n\031CategoricalParameterRange\022\016\n\006val" + + "ues\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032con" + + "tinuous_parameter_range\030\001 \001(\01324.flyteidl" + + ".plugins.sagemaker.ContinuousParameterRa" + + "ngeH\000\022T\n\027integer_parameter_range\030\002 \001(\01321" + + ".flyteidl.plugins.sagemaker.IntegerParam" + + "eterRangeH\000\022\\\n\033categorical_parameter_ran" + + "ge\030\003 \001(\01325.flyteidl.plugins.sagemaker.Ca" + + "tegoricalParameterRangeH\000B\026\n\024parameter_r" + + "ange_type\"\335\001\n\017ParameterRanges\022_\n\023paramet" + + "er_range_map\030\001 \003(\0132B.flyteidl.plugins.sa" + + "gemaker.ParameterRanges.ParameterRangeMa" + + "pEntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030" + + "\001 \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins." + + "sagemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyp" + + "erparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINE" + + "AR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITH" + + "MIC\020\003B5Z3github.com/lyft/flyteidl/gen/pb" + + "-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor, + new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor, + new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor, + new java.lang.String[] { "ContinuousParameterRange", "IntegerParameterRange", "CategoricalParameterRange", "ParameterRangeType", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor, + new java.lang.String[] { "ParameterRangeMap", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor = + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java new file mode 100644 index 000000000..c7c7a93f1 --- /dev/null +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -0,0 +1,4208 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/training_job.proto + +package flyteidl.plugins.sagemaker; + +public final class TrainingJobOuterClass { + private TrainingJobOuterClass() {} + 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 flyteidl.plugins.sagemaker.InputMode} + */ + public enum InputMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + * FILE = 0; + */ + FILE(0), + /** + * PIPE = 1; + */ + PIPE(1), + UNRECOGNIZED(-1), + ; + + /** + * FILE = 0; + */ + public static final int FILE_VALUE = 0; + /** + * PIPE = 1; + */ + public static final int PIPE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InputMode valueOf(int value) { + return forNumber(value); + } + + public static InputMode forNumber(int value) { + switch (value) { + case 0: return FILE; + case 1: return PIPE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + InputMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InputMode findValueByNumber(int number) { + return InputMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final InputMode[] VALUES = values(); + + public static InputMode 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 InputMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputMode) + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.AlgorithmName} + */ + public enum AlgorithmName + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CUSTOM = 0; + */ + CUSTOM(0), + /** + * XGBOOST = 1; + */ + XGBOOST(1), + UNRECOGNIZED(-1), + ; + + /** + * CUSTOM = 0; + */ + public static final int CUSTOM_VALUE = 0; + /** + * XGBOOST = 1; + */ + public static final int XGBOOST_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AlgorithmName valueOf(int value) { + return forNumber(value); + } + + public static AlgorithmName forNumber(int value) { + switch (value) { + case 0: return CUSTOM; + case 1: return XGBOOST; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AlgorithmName> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AlgorithmName findValueByNumber(int number) { + return AlgorithmName.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(1); + } + + private static final AlgorithmName[] VALUES = values(); + + public static AlgorithmName 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 AlgorithmName(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.AlgorithmName) + } + + public interface AlgorithmSpecificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + int getInputModeValue(); + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode(); + + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + int getAlgorithmNameValue(); + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName(); + + /** + * string algorithm_version = 3; + */ + java.lang.String getAlgorithmVersion(); + /** + * string algorithm_version = 3; + */ + com.google.protobuf.ByteString + getAlgorithmVersionBytes(); + + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + java.util.List + getMetricDefinitionsList(); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + int getMetricDefinitionsCount(); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + java.util.List + getMetricDefinitionsOrBuilderList(); + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} + */ + public static final class AlgorithmSpecification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) + AlgorithmSpecificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlgorithmSpecification.newBuilder() to construct. + private AlgorithmSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlgorithmSpecification() { + inputMode_ = 0; + algorithmName_ = 0; + algorithmVersion_ = ""; + metricDefinitions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AlgorithmSpecification( + 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 8: { + int rawValue = input.readEnum(); + + inputMode_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + algorithmName_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + algorithmVersion_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + metricDefinitions_.add( + input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.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_ & 0x00000008) != 0)) { + metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); + } + + public interface MetricDefinitionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + */ + java.lang.String getName(); + /** + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string regex = 2; + */ + java.lang.String getRegex(); + /** + * string regex = 2; + */ + com.google.protobuf.ByteString + getRegexBytes(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} + */ + public static final class MetricDefinition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + MetricDefinitionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricDefinition.newBuilder() to construct. + private MetricDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MetricDefinition() { + name_ = ""; + regex_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MetricDefinition( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + regex_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + */ + 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; + } + } + /** + * string name = 1; + */ + 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 REGEX_FIELD_NUMBER = 2; + private volatile java.lang.Object regex_; + /** + * string regex = 2; + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + 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(); + regex_ = s; + return s; + } + } + /** + * string regex = 2; + */ + public com.google.protobuf.ByteString + getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getRegexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regex_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getRegexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regex_); + } + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getRegex() + .equals(other.getRegex())) 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) + REGEX_FIELD_NUMBER; + hash = (53 * hash) + getRegex().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.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_ = ""; + + regex_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(this); + result.name_ = name_; + result.regex_ = regex_; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRegex().isEmpty()) { + regex_ = other.regex_; + 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 { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + */ + 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; + } + } + /** + * string name = 1; + */ + 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; + } + } + /** + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + */ + 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 regex_ = ""; + /** + * string regex = 2; + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string regex = 2; + */ + public com.google.protobuf.ByteString + getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string regex = 2; + */ + public Builder setRegex( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regex_ = value; + onChanged(); + return this; + } + /** + * string regex = 2; + */ + public Builder clearRegex() { + + regex_ = getDefaultInstance().getRegex(); + onChanged(); + return this; + } + /** + * string regex = 2; + */ + public Builder setRegexBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regex_ = 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:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricDefinition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MetricDefinition(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int INPUT_MODE_FIELD_NUMBER = 1; + private int inputMode_; + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public int getInputModeValue() { + return inputMode_; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result; + } + + public static final int ALGORITHM_NAME_FIELD_NUMBER = 2; + private int algorithmName_; + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public int getAlgorithmNameValue() { + return algorithmName_; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result; + } + + public static final int ALGORITHM_VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object algorithmVersion_; + /** + * string algorithm_version = 3; + */ + public java.lang.String getAlgorithmVersion() { + java.lang.Object ref = algorithmVersion_; + 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(); + algorithmVersion_ = s; + return s; + } + } + /** + * string algorithm_version = 3; + */ + public com.google.protobuf.ByteString + getAlgorithmVersionBytes() { + java.lang.Object ref = algorithmVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithmVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METRIC_DEFINITIONS_FIELD_NUMBER = 4; + private java.util.List metricDefinitions_; + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List getMetricDefinitionsList() { + return metricDefinitions_; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List + getMetricDefinitionsOrBuilderList() { + return metricDefinitions_; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public int getMetricDefinitionsCount() { + return metricDefinitions_.size(); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + return metricDefinitions_.get(index); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index) { + return metricDefinitions_.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 (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) { + output.writeEnum(1, inputMode_); + } + if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) { + output.writeEnum(2, algorithmName_); + } + if (!getAlgorithmVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, algorithmVersion_); + } + for (int i = 0; i < metricDefinitions_.size(); i++) { + output.writeMessage(4, metricDefinitions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, inputMode_); + } + if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, algorithmName_); + } + if (!getAlgorithmVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, algorithmVersion_); + } + for (int i = 0; i < metricDefinitions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, metricDefinitions_.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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) obj; + + if (inputMode_ != other.inputMode_) return false; + if (algorithmName_ != other.algorithmName_) return false; + if (!getAlgorithmVersion() + .equals(other.getAlgorithmVersion())) return false; + if (!getMetricDefinitionsList() + .equals(other.getMetricDefinitionsList())) 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) + INPUT_MODE_FIELD_NUMBER; + hash = (53 * hash) + inputMode_; + hash = (37 * hash) + ALGORITHM_NAME_FIELD_NUMBER; + hash = (53 * hash) + algorithmName_; + hash = (37 * hash) + ALGORITHM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmVersion().hashCode(); + if (getMetricDefinitionsCount() > 0) { + hash = (37 * hash) + METRIC_DEFINITIONS_FIELD_NUMBER; + hash = (53 * hash) + getMetricDefinitionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification 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 flyteidl.plugins.sagemaker.AlgorithmSpecification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetricDefinitionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + inputMode_ = 0; + + algorithmName_ = 0; + + algorithmVersion_ = ""; + + if (metricDefinitionsBuilder_ == null) { + metricDefinitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + metricDefinitionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.inputMode_ = inputMode_; + result.algorithmName_ = algorithmName_; + result.algorithmVersion_ = algorithmVersion_; + if (metricDefinitionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.metricDefinitions_ = metricDefinitions_; + } else { + result.metricDefinitions_ = metricDefinitionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance()) return this; + if (other.inputMode_ != 0) { + setInputModeValue(other.getInputModeValue()); + } + if (other.algorithmName_ != 0) { + setAlgorithmNameValue(other.getAlgorithmNameValue()); + } + if (!other.getAlgorithmVersion().isEmpty()) { + algorithmVersion_ = other.algorithmVersion_; + onChanged(); + } + if (metricDefinitionsBuilder_ == null) { + if (!other.metricDefinitions_.isEmpty()) { + if (metricDefinitions_.isEmpty()) { + metricDefinitions_ = other.metricDefinitions_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.addAll(other.metricDefinitions_); + } + onChanged(); + } + } else { + if (!other.metricDefinitions_.isEmpty()) { + if (metricDefinitionsBuilder_.isEmpty()) { + metricDefinitionsBuilder_.dispose(); + metricDefinitionsBuilder_ = null; + metricDefinitions_ = other.metricDefinitions_; + bitField0_ = (bitField0_ & ~0x00000008); + metricDefinitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetricDefinitionsFieldBuilder() : null; + } else { + metricDefinitionsBuilder_.addAllMessages(other.metricDefinitions_); + } + } + } + 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 { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int inputMode_ = 0; + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public int getInputModeValue() { + return inputMode_; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public Builder setInputModeValue(int value) { + inputMode_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public Builder setInputMode(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode value) { + if (value == null) { + throw new NullPointerException(); + } + + inputMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + */ + public Builder clearInputMode() { + + inputMode_ = 0; + onChanged(); + return this; + } + + private int algorithmName_ = 0; + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public int getAlgorithmNameValue() { + return algorithmName_; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public Builder setAlgorithmNameValue(int value) { + algorithmName_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName value) { + if (value == null) { + throw new NullPointerException(); + } + + algorithmName_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + */ + public Builder clearAlgorithmName() { + + algorithmName_ = 0; + onChanged(); + return this; + } + + private java.lang.Object algorithmVersion_ = ""; + /** + * string algorithm_version = 3; + */ + public java.lang.String getAlgorithmVersion() { + java.lang.Object ref = algorithmVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + algorithmVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string algorithm_version = 3; + */ + public com.google.protobuf.ByteString + getAlgorithmVersionBytes() { + java.lang.Object ref = algorithmVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithmVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string algorithm_version = 3; + */ + public Builder setAlgorithmVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + algorithmVersion_ = value; + onChanged(); + return this; + } + /** + * string algorithm_version = 3; + */ + public Builder clearAlgorithmVersion() { + + algorithmVersion_ = getDefaultInstance().getAlgorithmVersion(); + onChanged(); + return this; + } + /** + * string algorithm_version = 3; + */ + public Builder setAlgorithmVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + algorithmVersion_ = value; + onChanged(); + return this; + } + + private java.util.List metricDefinitions_ = + java.util.Collections.emptyList(); + private void ensureMetricDefinitionsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; + + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List getMetricDefinitionsList() { + if (metricDefinitionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricDefinitions_); + } else { + return metricDefinitionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public int getMetricDefinitionsCount() { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.size(); + } else { + return metricDefinitionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.get(index); + } else { + return metricDefinitionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder setMetricDefinitions( + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.set(index, value); + onChanged(); + } else { + metricDefinitionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder setMetricDefinitions( + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.set(index, builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(value); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions( + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(index, value); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions( + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(index, builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder addAllMetricDefinitions( + java.lang.Iterable values) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metricDefinitions_); + onChanged(); + } else { + metricDefinitionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder clearMetricDefinitions() { + if (metricDefinitionsBuilder_ == null) { + metricDefinitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + metricDefinitionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public Builder removeMetricDefinitions(int index) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.remove(index); + onChanged(); + } else { + metricDefinitionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( + int index) { + return getMetricDefinitionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index) { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.get(index); } else { + return metricDefinitionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List + getMetricDefinitionsOrBuilderList() { + if (metricDefinitionsBuilder_ != null) { + return metricDefinitionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricDefinitions_); + } + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { + return getMetricDefinitionsFieldBuilder().addBuilder( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( + int index) { + return getMetricDefinitionsFieldBuilder().addBuilder( + index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + */ + public java.util.List + getMetricDefinitionsBuilderList() { + return getMetricDefinitionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> + getMetricDefinitionsFieldBuilder() { + if (metricDefinitionsBuilder_ == null) { + metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder>( + metricDefinitions_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + metricDefinitions_ = null; + } + return metricDefinitionsBuilder_; + } + @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:flyteidl.plugins.sagemaker.AlgorithmSpecification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlgorithmSpecification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AlgorithmSpecification(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TrainingJobConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJobConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * For multi-node training, not multi-GPU training
+     * 
+ * + * int64 instance_count = 1; + */ + long getInstanceCount(); + + /** + * string instance_type = 2; + */ + java.lang.String getInstanceType(); + /** + * string instance_type = 2; + */ + com.google.protobuf.ByteString + getInstanceTypeBytes(); + + /** + * int64 volume_size_in_gb = 3; + */ + long getVolumeSizeInGb(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobConfig} + */ + public static final class TrainingJobConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) + TrainingJobConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainingJobConfig.newBuilder() to construct. + private TrainingJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrainingJobConfig() { + instanceType_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrainingJobConfig( + 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 8: { + + instanceCount_ = input.readInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + instanceType_ = s; + break; + } + case 24: { + + volumeSizeInGb_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); + } + + public static final int INSTANCE_COUNT_FIELD_NUMBER = 1; + private long instanceCount_; + /** + *
+     * For multi-node training, not multi-GPU training
+     * 
+ * + * int64 instance_count = 1; + */ + public long getInstanceCount() { + return instanceCount_; + } + + public static final int INSTANCE_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object instanceType_; + /** + * string instance_type = 2; + */ + public java.lang.String getInstanceType() { + java.lang.Object ref = instanceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceType_ = s; + return s; + } + } + /** + * string instance_type = 2; + */ + public com.google.protobuf.ByteString + getInstanceTypeBytes() { + java.lang.Object ref = instanceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOLUME_SIZE_IN_GB_FIELD_NUMBER = 3; + private long volumeSizeInGb_; + /** + * int64 volume_size_in_gb = 3; + */ + public long getVolumeSizeInGb() { + return volumeSizeInGb_; + } + + 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 (instanceCount_ != 0L) { + output.writeInt64(1, instanceCount_); + } + if (!getInstanceTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceType_); + } + if (volumeSizeInGb_ != 0L) { + output.writeInt64(3, volumeSizeInGb_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (instanceCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, instanceCount_); + } + if (!getInstanceTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceType_); + } + if (volumeSizeInGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, volumeSizeInGb_); + } + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) obj; + + if (getInstanceCount() + != other.getInstanceCount()) return false; + if (!getInstanceType() + .equals(other.getInstanceType())) return false; + if (getVolumeSizeInGb() + != other.getVolumeSizeInGb()) 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) + INSTANCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInstanceCount()); + hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getInstanceType().hashCode(); + hash = (37 * hash) + VOLUME_SIZE_IN_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVolumeSizeInGb()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig 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 flyteidl.plugins.sagemaker.TrainingJobConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.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(); + instanceCount_ = 0L; + + instanceType_ = ""; + + volumeSizeInGb_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(this); + result.instanceCount_ = instanceCount_; + result.instanceType_ = instanceType_; + result.volumeSizeInGb_ = volumeSizeInGb_; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance()) return this; + if (other.getInstanceCount() != 0L) { + setInstanceCount(other.getInstanceCount()); + } + if (!other.getInstanceType().isEmpty()) { + instanceType_ = other.instanceType_; + onChanged(); + } + if (other.getVolumeSizeInGb() != 0L) { + setVolumeSizeInGb(other.getVolumeSizeInGb()); + } + 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 { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long instanceCount_ ; + /** + *
+       * For multi-node training, not multi-GPU training
+       * 
+ * + * int64 instance_count = 1; + */ + public long getInstanceCount() { + return instanceCount_; + } + /** + *
+       * For multi-node training, not multi-GPU training
+       * 
+ * + * int64 instance_count = 1; + */ + public Builder setInstanceCount(long value) { + + instanceCount_ = value; + onChanged(); + return this; + } + /** + *
+       * For multi-node training, not multi-GPU training
+       * 
+ * + * int64 instance_count = 1; + */ + public Builder clearInstanceCount() { + + instanceCount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object instanceType_ = ""; + /** + * string instance_type = 2; + */ + public java.lang.String getInstanceType() { + java.lang.Object ref = instanceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string instance_type = 2; + */ + public com.google.protobuf.ByteString + getInstanceTypeBytes() { + java.lang.Object ref = instanceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string instance_type = 2; + */ + public Builder setInstanceType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + instanceType_ = value; + onChanged(); + return this; + } + /** + * string instance_type = 2; + */ + public Builder clearInstanceType() { + + instanceType_ = getDefaultInstance().getInstanceType(); + onChanged(); + return this; + } + /** + * string instance_type = 2; + */ + public Builder setInstanceTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + instanceType_ = value; + onChanged(); + return this; + } + + private long volumeSizeInGb_ ; + /** + * int64 volume_size_in_gb = 3; + */ + public long getVolumeSizeInGb() { + return volumeSizeInGb_; + } + /** + * int64 volume_size_in_gb = 3; + */ + public Builder setVolumeSizeInGb(long value) { + + volumeSizeInGb_ = value; + onChanged(); + return this; + } + /** + * int64 volume_size_in_gb = 3; + */ + public Builder clearVolumeSizeInGb() { + + volumeSizeInGb_ = 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:flyteidl.plugins.sagemaker.TrainingJobConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainingJobConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainingJobConfig(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StoppingConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.StoppingCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 max_runtime_in_seconds = 1; + */ + long getMaxRuntimeInSeconds(); + + /** + * int64 max_wait_time_in_seconds = 2; + */ + long getMaxWaitTimeInSeconds(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} + */ + public static final class StoppingCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.StoppingCondition) + StoppingConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoppingCondition.newBuilder() to construct. + private StoppingCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StoppingCondition() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StoppingCondition( + 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 8: { + + maxRuntimeInSeconds_ = input.readInt64(); + break; + } + case 16: { + + maxWaitTimeInSeconds_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); + } + + public static final int MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER = 1; + private long maxRuntimeInSeconds_; + /** + * int64 max_runtime_in_seconds = 1; + */ + public long getMaxRuntimeInSeconds() { + return maxRuntimeInSeconds_; + } + + public static final int MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER = 2; + private long maxWaitTimeInSeconds_; + /** + * int64 max_wait_time_in_seconds = 2; + */ + public long getMaxWaitTimeInSeconds() { + return maxWaitTimeInSeconds_; + } + + 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 (maxRuntimeInSeconds_ != 0L) { + output.writeInt64(1, maxRuntimeInSeconds_); + } + if (maxWaitTimeInSeconds_ != 0L) { + output.writeInt64(2, maxWaitTimeInSeconds_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxRuntimeInSeconds_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxRuntimeInSeconds_); + } + if (maxWaitTimeInSeconds_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxWaitTimeInSeconds_); + } + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) obj; + + if (getMaxRuntimeInSeconds() + != other.getMaxRuntimeInSeconds()) return false; + if (getMaxWaitTimeInSeconds() + != other.getMaxWaitTimeInSeconds()) 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) + MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxRuntimeInSeconds()); + hash = (37 * hash) + MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxWaitTimeInSeconds()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.StoppingCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.StoppingCondition) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.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(); + maxRuntimeInSeconds_ = 0L; + + maxWaitTimeInSeconds_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(this); + result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; + result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance()) return this; + if (other.getMaxRuntimeInSeconds() != 0L) { + setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); + } + if (other.getMaxWaitTimeInSeconds() != 0L) { + setMaxWaitTimeInSeconds(other.getMaxWaitTimeInSeconds()); + } + 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 { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxRuntimeInSeconds_ ; + /** + * int64 max_runtime_in_seconds = 1; + */ + public long getMaxRuntimeInSeconds() { + return maxRuntimeInSeconds_; + } + /** + * int64 max_runtime_in_seconds = 1; + */ + public Builder setMaxRuntimeInSeconds(long value) { + + maxRuntimeInSeconds_ = value; + onChanged(); + return this; + } + /** + * int64 max_runtime_in_seconds = 1; + */ + public Builder clearMaxRuntimeInSeconds() { + + maxRuntimeInSeconds_ = 0L; + onChanged(); + return this; + } + + private long maxWaitTimeInSeconds_ ; + /** + * int64 max_wait_time_in_seconds = 2; + */ + public long getMaxWaitTimeInSeconds() { + return maxWaitTimeInSeconds_; + } + /** + * int64 max_wait_time_in_seconds = 2; + */ + public Builder setMaxWaitTimeInSeconds(long value) { + + maxWaitTimeInSeconds_ = value; + onChanged(); + return this; + } + /** + * int64 max_wait_time_in_seconds = 2; + */ + public Builder clearMaxWaitTimeInSeconds() { + + maxWaitTimeInSeconds_ = 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:flyteidl.plugins.sagemaker.StoppingCondition) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoppingCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoppingCondition(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TrainingJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJob) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + boolean hasAlgorithmSpecification(); + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification(); + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + boolean hasTrainingJobConfig(); + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig(); + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder(); + + /** + * bool interruptible = 4; + */ + boolean getInterruptible(); + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} + */ + public static final class TrainingJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJob) + TrainingJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainingJob.newBuilder() to construct. + private TrainingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrainingJob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrainingJob( + 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: { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder subBuilder = null; + if (algorithmSpecification_ != null) { + subBuilder = algorithmSpecification_.toBuilder(); + } + algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(algorithmSpecification_); + algorithmSpecification_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder subBuilder = null; + if (trainingJobConfig_ != null) { + subBuilder = trainingJobConfig_.toBuilder(); + } + trainingJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingJobConfig_); + trainingJobConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + interruptible_ = input.readBool(); + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); + } + + public static final int ALGORITHM_SPECIFICATION_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public boolean hasAlgorithmSpecification() { + return algorithmSpecification_ != null; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + return getAlgorithmSpecification(); + } + + public static final int TRAINING_JOB_CONFIG_FIELD_NUMBER = 2; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public boolean hasTrainingJobConfig() { + return trainingJobConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { + return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { + return getTrainingJobConfig(); + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 4; + private boolean interruptible_; + /** + * bool interruptible = 4; + */ + public boolean getInterruptible() { + return interruptible_; + } + + 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 (algorithmSpecification_ != null) { + output.writeMessage(1, getAlgorithmSpecification()); + } + if (trainingJobConfig_ != null) { + output.writeMessage(2, getTrainingJobConfig()); + } + if (interruptible_ != false) { + output.writeBool(4, interruptible_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (algorithmSpecification_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAlgorithmSpecification()); + } + if (trainingJobConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTrainingJobConfig()); + } + if (interruptible_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, interruptible_); + } + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) obj; + + if (hasAlgorithmSpecification() != other.hasAlgorithmSpecification()) return false; + if (hasAlgorithmSpecification()) { + if (!getAlgorithmSpecification() + .equals(other.getAlgorithmSpecification())) return false; + } + if (hasTrainingJobConfig() != other.hasTrainingJobConfig()) return false; + if (hasTrainingJobConfig()) { + if (!getTrainingJobConfig() + .equals(other.getTrainingJobConfig())) return false; + } + if (getInterruptible() + != other.getInterruptible()) 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 (hasAlgorithmSpecification()) { + hash = (37 * hash) + ALGORITHM_SPECIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmSpecification().hashCode(); + } + if (hasTrainingJobConfig()) { + hash = (37 * hash) + TRAINING_JOB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTrainingJobConfig().hashCode(); + } + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterruptible()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob 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 flyteidl.plugins.sagemaker.TrainingJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJob) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.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 (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = null; + } else { + algorithmSpecification_ = null; + algorithmSpecificationBuilder_ = null; + } + if (trainingJobConfigBuilder_ == null) { + trainingJobConfig_ = null; + } else { + trainingJobConfig_ = null; + trainingJobConfigBuilder_ = null; + } + interruptible_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(this); + if (algorithmSpecificationBuilder_ == null) { + result.algorithmSpecification_ = algorithmSpecification_; + } else { + result.algorithmSpecification_ = algorithmSpecificationBuilder_.build(); + } + if (trainingJobConfigBuilder_ == null) { + result.trainingJobConfig_ = trainingJobConfig_; + } else { + result.trainingJobConfig_ = trainingJobConfigBuilder_.build(); + } + result.interruptible_ = interruptible_; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance()) return this; + if (other.hasAlgorithmSpecification()) { + mergeAlgorithmSpecification(other.getAlgorithmSpecification()); + } + if (other.hasTrainingJobConfig()) { + mergeTrainingJobConfig(other.getTrainingJobConfig()); + } + if (other.getInterruptible() != false) { + setInterruptible(other.getInterruptible()); + } + 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 { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public boolean hasAlgorithmSpecification() { + return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { + if (algorithmSpecificationBuilder_ == null) { + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } else { + return algorithmSpecificationBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { + if (algorithmSpecificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + algorithmSpecification_ = value; + onChanged(); + } else { + algorithmSpecificationBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder setAlgorithmSpecification( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder builderForValue) { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = builderForValue.build(); + onChanged(); + } else { + algorithmSpecificationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { + if (algorithmSpecificationBuilder_ == null) { + if (algorithmSpecification_ != null) { + algorithmSpecification_ = + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); + } else { + algorithmSpecification_ = value; + } + onChanged(); + } else { + algorithmSpecificationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder clearAlgorithmSpecification() { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = null; + onChanged(); + } else { + algorithmSpecification_ = null; + algorithmSpecificationBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { + + onChanged(); + return getAlgorithmSpecificationFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + if (algorithmSpecificationBuilder_ != null) { + return algorithmSpecificationBuilder_.getMessageOrBuilder(); + } else { + return algorithmSpecification_ == null ? + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> + getAlgorithmSpecificationFieldBuilder() { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder>( + getAlgorithmSpecification(), + getParentForChildren(), + isClean()); + algorithmSpecification_ = null; + } + return algorithmSpecificationBuilder_; + } + + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> trainingJobConfigBuilder_; + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public boolean hasTrainingJobConfig() { + return trainingJobConfigBuilder_ != null || trainingJobConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { + if (trainingJobConfigBuilder_ == null) { + return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; + } else { + return trainingJobConfigBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { + if (trainingJobConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingJobConfig_ = value; + onChanged(); + } else { + trainingJobConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public Builder setTrainingJobConfig( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder builderForValue) { + if (trainingJobConfigBuilder_ == null) { + trainingJobConfig_ = builderForValue.build(); + onChanged(); + } else { + trainingJobConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public Builder mergeTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { + if (trainingJobConfigBuilder_ == null) { + if (trainingJobConfig_ != null) { + trainingJobConfig_ = + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.newBuilder(trainingJobConfig_).mergeFrom(value).buildPartial(); + } else { + trainingJobConfig_ = value; + } + onChanged(); + } else { + trainingJobConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public Builder clearTrainingJobConfig() { + if (trainingJobConfigBuilder_ == null) { + trainingJobConfig_ = null; + onChanged(); + } else { + trainingJobConfig_ = null; + trainingJobConfigBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder getTrainingJobConfigBuilder() { + + onChanged(); + return getTrainingJobConfigFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { + if (trainingJobConfigBuilder_ != null) { + return trainingJobConfigBuilder_.getMessageOrBuilder(); + } else { + return trainingJobConfig_ == null ? + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; + } + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> + getTrainingJobConfigFieldBuilder() { + if (trainingJobConfigBuilder_ == null) { + trainingJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder>( + getTrainingJobConfig(), + getParentForChildren(), + isClean()); + trainingJobConfig_ = null; + } + return trainingJobConfigBuilder_; + } + + private boolean interruptible_ ; + /** + * bool interruptible = 4; + */ + public boolean getInterruptible() { + return interruptible_; + } + /** + * bool interruptible = 4; + */ + public Builder setInterruptible(boolean value) { + + interruptible_ = value; + onChanged(); + return this; + } + /** + * bool interruptible = 4; + */ + public Builder clearInterruptible() { + + interruptible_ = false; + 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:flyteidl.plugins.sagemaker.TrainingJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainingJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainingJob(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_TrainingJob_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-flyteidl/plugins/sagemaker/training_jo" + + "b.proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026" + + "AlgorithmSpecification\0229\n\ninput_mode\030\001 \001" + + "(\0162%.flyteidl.plugins.sagemaker.InputMod" + + "e\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plu" + + "gins.sagemaker.AlgorithmName\022\031\n\021algorith" + + "m_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 " + + "\003(\0132C.flyteidl.plugins.sagemaker.Algorit" + + "hmSpecification.MetricDefinition\032/\n\020Metr" + + "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(" + + "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count" + + "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_" + + "size_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n" + + "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai" + + "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022" + + "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + + "idl.plugins.sagemaker.AlgorithmSpecifica" + + "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt" + + "eidl.plugins.sagemaker.TrainingJobConfig" + + "\022\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004" + + "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS" + + "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl" + + "yteidl/gen/pb-go/flyteidl/pluginsb\006proto" + + "3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, + new java.lang.String[] { "InputMode", "AlgorithmName", "AlgorithmVersion", "MetricDefinitions", }); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor = + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, + new java.lang.String[] { "Name", "Regex", }); + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor, + new java.lang.String[] { "InstanceCount", "InstanceType", "VolumeSizeInGb", }); + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor, + new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", }); + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor, + new java.lang.String[] { "AlgorithmSpecification", "TrainingJobConfig", "Interruptible", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/flyteidl/service/Admin.java b/gen/pb-java/flyteidl/service/Admin.java new file mode 100644 index 000000000..bb5982e25 --- /dev/null +++ b/gen/pb-java/flyteidl/service/Admin.java @@ -0,0 +1,395 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/admin.proto + +package flyteidl.service; + +public final class Admin { + private Admin() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/service/admin.proto\022\020flyteidl" + + ".service\032\034google/api/annotations.proto\032\034" + + "flyteidl/admin/project.proto\032.flyteidl/a" + + "dmin/project_domain_attributes.proto\032\031fl" + + "yteidl/admin/task.proto\032\035flyteidl/admin/" + + "workflow.proto\032(flyteidl/admin/workflow_" + + "attributes.proto\032 flyteidl/admin/launch_" + + "plan.proto\032\032flyteidl/admin/event.proto\032\036" + + "flyteidl/admin/execution.proto\032\'flyteidl" + + "/admin/matchable_resource.proto\032#flyteid" + + "l/admin/node_execution.proto\032#flyteidl/a" + + "dmin/task_execution.proto\032\033flyteidl/admi" + + "n/common.proto\032,protoc-gen-swagger/optio" + + "ns/annotations.proto2\331^\n\014AdminService\022\305\002" + + "\n\nCreateTask\022!.flyteidl.admin.TaskCreate" + + "Request\032\".flyteidl.admin.TaskCreateRespo" + + "nse\"\357\001\202\323\344\223\002\022\"\r/api/v1/tasks:\001*\222A\323\001\032&Crea" + + "te and register a task definition.JB\n\00340" + + "0\022;\n9Returned for bad request that may h" + + "ave failed validation.Je\n\003409\022^\n\\Returne" + + "d for a request that references an ident" + + "ical entity that has already been regist" + + "ered.\022\262\001\n\007GetTask\022 .flyteidl.admin.Objec" + + "tGetRequest\032\024.flyteidl.admin.Task\"o\202\323\344\223\002" + + "?\022=/api/v1/tasks/{id.project}/{id.domain" + + "}/{id.name}/{id.version}\222A\'\032%Retrieve an" + + " existing task definition.\022\336\001\n\013ListTaskI" + + "ds\0220.flyteidl.admin.NamedEntityIdentifie" + + "rListRequest\032).flyteidl.admin.NamedEntit" + + "yIdentifierList\"r\202\323\344\223\002%\022#/api/v1/task_id" + + "s/{project}/{domain}\222AD\032BFetch existing " + + "task definition identifiers matching inp" + + "ut filters.\022\353\001\n\tListTasks\022#.flyteidl.adm" + + "in.ResourceListRequest\032\030.flyteidl.admin." + + "TaskList\"\236\001\202\323\344\223\002\\\0220/api/v1/tasks/{id.pro" + + "ject}/{id.domain}/{id.name}Z(\022&/api/v1/t" + + "asks/{id.project}/{id.domain}\222A9\0327Fetch " + + "existing task definitions matching input" + + " filters.\022\331\002\n\016CreateWorkflow\022%.flyteidl." + + "admin.WorkflowCreateRequest\032&.flyteidl.a" + + "dmin.WorkflowCreateResponse\"\367\001\202\323\344\223\002\026\"\021/a" + + "pi/v1/workflows:\001*\222A\327\001\032*Create and regis" + + "ter a workflow definition.JB\n\003400\022;\n9Ret" + + "urned for bad request that may have fail" + + "ed validation.Je\n\003409\022^\n\\Returned for a " + + "request that references an identical ent" + + "ity that has already been registered.\022\302\001" + + "\n\013GetWorkflow\022 .flyteidl.admin.ObjectGet" + + "Request\032\030.flyteidl.admin.Workflow\"w\202\323\344\223\002" + + "C\022A/api/v1/workflows/{id.project}/{id.do" + + "main}/{id.name}/{id.version}\222A+\032)Retriev" + + "e an existing workflow definition.\022\355\001\n\017L" + + "istWorkflowIds\0220.flyteidl.admin.NamedEnt" + + "ityIdentifierListRequest\032).flyteidl.admi" + + "n.NamedEntityIdentifierList\"}\202\323\344\223\002)\022\'/ap" + + "i/v1/workflow_ids/{project}/{domain}\222AK\032" + + "IFetch an existing workflow definition i" + + "dentifiers matching input filters.\022\377\001\n\rL" + + "istWorkflows\022#.flyteidl.admin.ResourceLi" + + "stRequest\032\034.flyteidl.admin.WorkflowList\"" + + "\252\001\202\323\344\223\002d\0224/api/v1/workflows/{id.project}" + + "/{id.domain}/{id.name}Z,\022*/api/v1/workfl" + + "ows/{id.project}/{id.domain}\222A=\032;Fetch e" + + "xisting workflow definitions matching in" + + "put filters.\022\345\002\n\020CreateLaunchPlan\022\'.flyt" + + "eidl.admin.LaunchPlanCreateRequest\032(.fly" + + "teidl.admin.LaunchPlanCreateResponse\"\375\001\202" + + "\323\344\223\002\031\"\024/api/v1/launch_plans:\001*\222A\332\001\032-Crea" + + "te and register a launch plan definition" + + ".JB\n\003400\022;\n9Returned for bad request tha" + + "t may have failed validation.Je\n\003409\022^\n\\" + + "Returned for a request that references a" + + "n identical entity that has already been" + + " registered.\022\314\001\n\rGetLaunchPlan\022 .flyteid" + + "l.admin.ObjectGetRequest\032\032.flyteidl.admi" + + "n.LaunchPlan\"}\202\323\344\223\002F\022D/api/v1/launch_pla" + + "ns/{id.project}/{id.domain}/{id.name}/{i" + + "d.version}\222A.\032,Retrieve an existing laun" + + "ch plan definition.\022\363\001\n\023GetActiveLaunchP" + + "lan\022\'.flyteidl.admin.ActiveLaunchPlanReq" + + "uest\032\032.flyteidl.admin.LaunchPlan\"\226\001\202\323\344\223\002" + + "@\022>/api/v1/active_launch_plans/{id.proje" + + "ct}/{id.domain}/{id.name}\222AM\032KRetrieve t" + + "he active launch plan version specified " + + "by input request filters.\022\353\001\n\025ListActive" + + "LaunchPlans\022+.flyteidl.admin.ActiveLaunc" + + "hPlanListRequest\032\036.flyteidl.admin.Launch" + + "PlanList\"\204\001\202\323\344\223\0020\022./api/v1/active_launch" + + "_plans/{project}/{domain}\222AK\032IFetch the " + + "active launch plan versions specified by" + + " input request filters.\022\363\001\n\021ListLaunchPl" + + "anIds\0220.flyteidl.admin.NamedEntityIdenti" + + "fierListRequest\032).flyteidl.admin.NamedEn" + + "tityIdentifierList\"\200\001\202\323\344\223\002,\022*/api/v1/lau" + + "nch_plan_ids/{project}/{domain}\222AK\032IFetc" + + "h existing launch plan definition identi" + + "fiers matching input filters.\022\214\002\n\017ListLa" + + "unchPlans\022#.flyteidl.admin.ResourceListR" + + "equest\032\036.flyteidl.admin.LaunchPlanList\"\263" + + "\001\202\323\344\223\002j\0227/api/v1/launch_plans/{id.projec" + + "t}/{id.domain}/{id.name}Z/\022-/api/v1/laun" + + "ch_plans/{id.project}/{id.domain}\222A@\032>Fe" + + "tch existing launch plan definitions mat" + + "ching input filters.\022\300\006\n\020UpdateLaunchPla" + + "n\022\'.flyteidl.admin.LaunchPlanUpdateReque" + + "st\032(.flyteidl.admin.LaunchPlanUpdateResp" + + "onse\"\330\005\202\323\344\223\002I\032D/api/v1/launch_plans/{id." + + "project}/{id.domain}/{id.name}/{id.versi" + + "on}:\001*\222A\205\005\032\202\005Update the status of an exi" + + "sting launch plan definition. At most on" + + "e launch plan version for a given {proje" + + "ct, domain, name} can be active at a tim" + + "e. If this call sets a launch plan to ac" + + "tive and existing version is already act" + + "ive, the result of this call will be tha" + + "t the formerly active launch plan will b" + + "e made inactive and specified launch pla" + + "n in this request will be made active. I" + + "n the event that the formerly active lau" + + "nch plan had a schedule associated it wi" + + "th it, this schedule will be disabled. I" + + "f the reference launch plan in this requ" + + "est is being set to active and has a sch" + + "edule associated with it, the schedule w" + + "ill be enabled.\022\242\001\n\017CreateExecution\022&.fl" + + "yteidl.admin.ExecutionCreateRequest\032\'.fl" + + "yteidl.admin.ExecutionCreateResponse\">\202\323" + + "\344\223\002\027\"\022/api/v1/executions:\001*\222A\036\032\034Create a" + + " workflow execution.\022\261\001\n\021RelaunchExecuti" + + "on\022(.flyteidl.admin.ExecutionRelaunchReq" + + "uest\032\'.flyteidl.admin.ExecutionCreateRes" + + "ponse\"I\202\323\344\223\002 \"\033/api/v1/executions/relaun" + + "ch:\001*\222A \032\036Relaunch a workflow execution." + + "\022\302\001\n\014GetExecution\022+.flyteidl.admin.Workf" + + "lowExecutionGetRequest\032\031.flyteidl.admin." + + "Execution\"j\202\323\344\223\0027\0225/api/v1/executions/{i" + + "d.project}/{id.domain}/{id.name}\222A*\032(Ret" + + "rieve an existing workflow execution.\022\202\002" + + "\n\020GetExecutionData\022/.flyteidl.admin.Work" + + "flowExecutionGetDataRequest\0320.flyteidl.a" + + "dmin.WorkflowExecutionGetDataResponse\"\212\001" + + "\202\323\344\223\002<\022:/api/v1/data/executions/{id.proj" + + "ect}/{id.domain}/{id.name}\222AE\032CRetrieve " + + "input and output data from an existing w" + + "orkflow execution.\022\310\001\n\016ListExecutions\022#." + + "flyteidl.admin.ResourceListRequest\032\035.fly" + + "teidl.admin.ExecutionList\"r\202\323\344\223\002-\022+/api/" + + "v1/executions/{id.project}/{id.domain}\222A" + + "<\032:Fetch existing workflow executions ma" + + "tching input filters.\022\364\001\n\022TerminateExecu" + + "tion\022).flyteidl.admin.ExecutionTerminate" + + "Request\032*.flyteidl.admin.ExecutionTermin" + + "ateResponse\"\206\001\202\323\344\223\002:*5/api/v1/executions" + + "/{id.project}/{id.domain}/{id.name}:\001*\222A" + + "C\032ATerminate the active workflow executi" + + "on specified in the request.\022\374\001\n\020GetNode" + + "Execution\022\'.flyteidl.admin.NodeExecution" + + "GetRequest\032\035.flyteidl.admin.NodeExecutio" + + "n\"\237\001\202\323\344\223\002p\022n/api/v1/node_executions/{id." + + "execution_id.project}/{id.execution_id.d" + + "omain}/{id.execution_id.name}/{id.node_i" + + "d}\222A&\032$Retrieve an existing node executi" + + "on.\022\232\002\n\022ListNodeExecutions\022(.flyteidl.ad" + + "min.NodeExecutionListRequest\032!.flyteidl." + + "admin.NodeExecutionList\"\266\001\202\323\344\223\002u\022s/api/v" + + "1/node_executions/{workflow_execution_id" + + ".project}/{workflow_execution_id.domain}" + + "/{workflow_execution_id.name}\222A8\0326Fetch " + + "existing node executions matching input " + + "filters.\022\357\004\n\031ListNodeExecutionsForTask\022/" + + ".flyteidl.admin.NodeExecutionForTaskList" + + "Request\032!.flyteidl.admin.NodeExecutionLi" + + "st\"\375\003\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_exe" + + "cutions/{task_execution_id.node_executio" + + "n_id.execution_id.project}/{task_executi" + + "on_id.node_execution_id.execution_id.dom" + + "ain}/{task_execution_id.node_execution_i" + + "d.execution_id.name}/{task_execution_id." + + "node_execution_id.node_id}/{task_executi" + + "on_id.task_id.project}/{task_execution_i" + + "d.task_id.domain}/{task_execution_id.tas" + + "k_id.name}/{task_execution_id.task_id.ve" + + "rsion}/{task_execution_id.retry_attempt}" + + "\222AG\032EFetch child node executions launche" + + "d by the specified task execution.\022\263\002\n\024G" + + "etNodeExecutionData\022+.flyteidl.admin.Nod" + + "eExecutionGetDataRequest\032,.flyteidl.admi" + + "n.NodeExecutionGetDataResponse\"\277\001\202\323\344\223\002u\022" + + "s/api/v1/data/node_executions/{id.execut" + + "ion_id.project}/{id.execution_id.domain}" + + "/{id.execution_id.name}/{id.node_id}\222AA\032" + + "?Retrieve input and output data from an " + + "existing node execution.\022\227\001\n\017RegisterPro" + + "ject\022&.flyteidl.admin.ProjectRegisterReq" + + "uest\032\'.flyteidl.admin.ProjectRegisterRes" + + "ponse\"3\202\323\344\223\002\025\"\020/api/v1/projects:\001*\222A\025\032\023R" + + "egister a project.\022\205\001\n\014ListProjects\022\".fl" + + "yteidl.admin.ProjectListRequest\032\030.flytei" + + "dl.admin.Projects\"7\202\323\344\223\002\022\022\020/api/v1/proje" + + "cts\222A\034\032\032Fetch registered projects.\022\335\001\n\023C" + + "reateWorkflowEvent\022-.flyteidl.admin.Work" + + "flowExecutionEventRequest\032..flyteidl.adm" + + "in.WorkflowExecutionEventResponse\"g\202\323\344\223\002" + + "\035\"\030/api/v1/events/workflows:\001*\222AA\032?Creat" + + "e a workflow execution event recording a" + + " phase transition.\022\311\001\n\017CreateNodeEvent\022)" + + ".flyteidl.admin.NodeExecutionEventReques" + + "t\032*.flyteidl.admin.NodeExecutionEventRes" + + "ponse\"_\202\323\344\223\002\031\"\024/api/v1/events/nodes:\001*\222A" + + "=\032;Create a node execution event recordi" + + "ng a phase transition.\022\311\001\n\017CreateTaskEve" + + "nt\022).flyteidl.admin.TaskExecutionEventRe" + + "quest\032*.flyteidl.admin.TaskExecutionEven" + + "tResponse\"_\202\323\344\223\002\031\"\024/api/v1/events/tasks:" + + "\001*\222A=\032;Create a task execution event rec" + + "ording a phase transition.\022\251\003\n\020GetTaskEx" + + "ecution\022\'.flyteidl.admin.TaskExecutionGe" + + "tRequest\032\035.flyteidl.admin.TaskExecution\"" + + "\314\002\202\323\344\223\002\234\002\022\231\002/api/v1/task_executions/{id." + + "node_execution_id.execution_id.project}/" + + "{id.node_execution_id.execution_id.domai" + + "n}/{id.node_execution_id.execution_id.na" + + "me}/{id.node_execution_id.node_id}/{id.t" + + "ask_id.project}/{id.task_id.domain}/{id." + + "task_id.name}/{id.task_id.version}/{id.r" + + "etry_attempt}\222A&\032$Retrieve an existing t" + + "ask execution.\022\323\002\n\022ListTaskExecutions\022(." + + "flyteidl.admin.TaskExecutionListRequest\032" + + "!.flyteidl.admin.TaskExecutionList\"\357\001\202\323\344" + + "\223\002\255\001\022\252\001/api/v1/task_executions/{node_exe" + + "cution_id.execution_id.project}/{node_ex" + + "ecution_id.execution_id.domain}/{node_ex" + + "ecution_id.execution_id.name}/{node_exec" + + "ution_id.node_id}\222A8\0326Fetch existing tas" + + "k executions matching input filters.\022\340\003\n" + + "\024GetTaskExecutionData\022+.flyteidl.admin.T" + + "askExecutionGetDataRequest\032,.flyteidl.ad" + + "min.TaskExecutionGetDataResponse\"\354\002\202\323\344\223\002" + + "\241\002\022\236\002/api/v1/data/task_executions/{id.no" + + "de_execution_id.execution_id.project}/{i" + + "d.node_execution_id.execution_id.domain}" + + "/{id.node_execution_id.execution_id.name" + + "}/{id.node_execution_id.node_id}/{id.tas" + + "k_id.project}/{id.task_id.domain}/{id.ta" + + "sk_id.name}/{id.task_id.version}/{id.ret" + + "ry_attempt}\222AA\032?Retrieve input and outpu" + + "t data from an existing task execution.\022" + + "\277\002\n\035UpdateProjectDomainAttributes\0224.flyt" + + "eidl.admin.ProjectDomainAttributesUpdate" + + "Request\0325.flyteidl.admin.ProjectDomainAt" + + "tributesUpdateResponse\"\260\001\202\323\344\223\002O\032J/api/v1" + + "/project_domain_attributes/{attributes.p" + + "roject}/{attributes.domain}:\001*\222AX\032VUpdat" + + "e the customized resource attributes ass" + + "ociated with a project-domain combinatio" + + "n\022\237\002\n\032GetProjectDomainAttributes\0221.flyte" + + "idl.admin.ProjectDomainAttributesGetRequ" + + "est\0322.flyteidl.admin.ProjectDomainAttrib" + + "utesGetResponse\"\231\001\202\323\344\223\0026\0224/api/v1/projec" + + "t_domain_attributes/{project}/{domain}\222A" + + "Z\032XRetrieve the customized resource attr" + + "ibutes associated with a project-domain " + + "combination\022\251\002\n\035DeleteProjectDomainAttri" + + "butes\0224.flyteidl.admin.ProjectDomainAttr" + + "ibutesDeleteRequest\0325.flyteidl.admin.Pro" + + "jectDomainAttributesDeleteResponse\"\232\001\202\323\344" + + "\223\0029*4/api/v1/project_domain_attributes/{" + + "project}/{domain}:\001*\222AX\032VDelete the cust" + + "omized resource attributes associated wi" + + "th a project-domain combination\022\316\002\n\030Upda" + + "teWorkflowAttributes\022/.flyteidl.admin.Wo" + + "rkflowAttributesUpdateRequest\0320.flyteidl" + + ".admin.WorkflowAttributesUpdateResponse\"" + + "\316\001\202\323\344\223\002_\032Z/api/v1/workflow_attributes/{a" + + "ttributes.project}/{attributes.domain}/{" + + "attributes.workflow}:\001*\222Af\032dUpdate the c" + + "ustomized resource attributes associated" + + " with a project, domain and workflow com" + + "bination\022\243\002\n\025GetWorkflowAttributes\022,.fly" + + "teidl.admin.WorkflowAttributesGetRequest" + + "\032-.flyteidl.admin.WorkflowAttributesGetR" + + "esponse\"\254\001\202\323\344\223\002;\0229/api/v1/workflow_attri" + + "butes/{project}/{domain}/{workflow}\222Ah\032f" + + "Retrieve the customized resource attribu" + + "tes associated with a project, domain an" + + "d workflow combination\022\255\002\n\030DeleteWorkflo" + + "wAttributes\022/.flyteidl.admin.WorkflowAtt" + + "ributesDeleteRequest\0320.flyteidl.admin.Wo" + + "rkflowAttributesDeleteResponse\"\255\001\202\323\344\223\002>*" + + "9/api/v1/workflow_attributes/{project}/{" + + "domain}/{workflow}:\001*\222Af\032dDelete the cus" + + "tomized resource attributes associated w" + + "ith a project, domain and workflow combi" + + "nation\022\341\001\n\027ListMatchableAttributes\022..fly" + + "teidl.admin.ListMatchableAttributesReque" + + "st\032/.flyteidl.admin.ListMatchableAttribu" + + "tesResponse\"e\202\323\344\223\002\036\022\034/api/v1/matchable_a" + + "ttributes\222A>\032 Date: Thu, 23 Jul 2020 22:04:34 -0700 Subject: [PATCH 34/64] rename hpo to hyperparameter tuning; add thorough comments; regenerate --- .../flyteidl/plugins/sagemaker/hpo_job.pb.cc | 928 ++++----- .../flyteidl/plugins/sagemaker/hpo_job.pb.h | 644 +++--- .../plugins/sagemaker/training_job.pb.cc | 24 +- .../plugins/sagemaker/training_job.pb.h | 6 +- .../flyteidl/plugins/sagemaker/hpo_job.pb.go | 304 +-- .../plugins/sagemaker/hpo_job.pb.validate.go | 134 +- .../plugins/sagemaker/parameter_ranges.pb.go | 9 + .../plugins/sagemaker/training_job.pb.go | 115 +- .../flyteidl/plugins/sagemaker/HpoJob.java | 1736 +++++++++-------- .../sagemaker/ParameterRangesOuterClass.java | 43 + .../sagemaker/TrainingJobOuterClass.java | 509 ++++- .../plugins/sagemaker/hpo_job.proto.rst | 128 +- .../sagemaker/parameter_ranges.proto.rst | 21 +- .../plugins/sagemaker/training_job.proto.rst | 53 +- .../flyteidl/plugins/sagemaker/hpo_job_pb2.py | 142 +- .../plugins/sagemaker/training_job_pb2.py | 4 +- package.json | 2 +- .../flyteidl/plugins/sagemaker/hpo_job.proto | 28 +- .../plugins/sagemaker/parameter_ranges.proto | 9 + .../plugins/sagemaker/training_job.proto | 29 +- setup.py | 2 +- 21 files changed, 2827 insertions(+), 2043 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc index 8bfb8e986..df78a6af1 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc @@ -22,70 +22,70 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_ namespace flyteidl { namespace plugins { namespace sagemaker { +class HyperparameterTuningJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HyperparameterTuningJob_default_instance_; class HyperparameterTuningObjectiveDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _HyperparameterTuningObjective_default_instance_; -class HPOJobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HPOJob_default_instance_; -class HPOJobConfigDefaultTypeInternal { +class HyperparameterTuningSpecificationDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HPOJobConfig_default_instance_; + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HyperparameterTuningSpecification_default_instance_; } // namespace sagemaker } // namespace plugins } // namespace flyteidl -static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { +static void InitDefaultsHyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective(); + void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningJob_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningJob(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::HyperparameterTuningJob::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<1> scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { + &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; -static void InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { +static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyteidl::plugins::sagemaker::_HPOJob_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::HPOJob(); + void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyteidl::plugins::sagemaker::HPOJob::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { - &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, {}}; -static void InitDefaultsHPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { +static void InitDefaultsHyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::HPOJobConfig(); + void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningSpecification_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyteidl::plugins::sagemaker::HPOJobConfig::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<2> scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { +::google::protobuf::internal::SCCInfo<2> scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base,}}; void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); } ::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[3]; @@ -94,40 +94,40 @@ constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descr const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJob, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, objective_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, metric_name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJob, training_job_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJob, max_number_of_training_jobs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJob, max_parallel_training_jobs_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, training_job_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, max_number_of_training_jobs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJob, max_parallel_training_jobs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, objective_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, metric_name_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, hyperparameter_ranges_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, tuning_strategy_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, tuning_objective_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HPOJobConfig, training_job_early_stopping_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification, hyperparameter_ranges_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification, tuning_strategy_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification, tuning_objective_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification, training_job_early_stopping_type_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective)}, - { 7, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJob)}, - { 15, -1, sizeof(::flyteidl::plugins::sagemaker::HPOJobConfig)}, + { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningJob)}, + { 8, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective)}, + { 15, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningJob_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJob_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningSpecification_default_instance_), }; ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { @@ -141,35 +141,37 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_ "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" "/plugins/sagemaker/parameter_ranges.prot" "o\032-flyteidl/plugins/sagemaker/training_j" - "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" - "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" + "ob.proto\"\241\001\n\027HyperparameterTuningJob\022=\n\014" + "training_job\030\001 \001(\0132\'.flyteidl.plugins.sa" + "gemaker.TrainingJob\022#\n\033max_number_of_tra" + "ining_jobs\030\002 \001(\003\022\"\n\032max_parallel_trainin" + "g_jobs\030\003 \001(\003\"\352\001\n\035HyperparameterTuningObj" + "ective\022s\n\016objective_type\030\001 \001(\0162[.flyteid" + "l.plugins.sagemaker.HyperparameterTuning" + "Objective.HyperparameterTuningObjectiveT" + "ype\022\023\n\013metric_name\030\002 \001(\t\"\?\n!Hyperparamet" + "erTuningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010M" + "AXIMIZE\020\001\"\255\004\n!HyperparameterTuningSpecif" + "ication\022J\n\025hyperparameter_ranges\030\001 \001(\0132+" + ".flyteidl.plugins.sagemaker.ParameterRan" + "ges\022s\n\017tuning_strategy\030\002 \001(\0162Z.flyteidl." + "plugins.sagemaker.HyperparameterTuningSp" + "ecification.HyperparameterTuningStrategy" + "\022S\n\020tuning_objective\030\003 \001(\01329.flyteidl.pl" "ugins.sagemaker.HyperparameterTuningObje" - "ctive.HyperparameterTuningObjectiveType\022" - "\023\n\013metric_name\030\002 \001(\t\"\?\n!HyperparameterTu" - "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" - "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" - ".flyteidl.plugins.sagemaker.TrainingJob\022" - "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" - "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" - "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" - "2+.flyteidl.plugins.sagemaker.ParameterR" - "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" - "l.plugins.sagemaker.HPOJobConfig.Hyperpa" - "rameterTuningStrategy\022S\n\020tuning_objectiv" - "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" - "erparameterTuningObjective\022o\n training_j" - "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." - "plugins.sagemaker.HPOJobConfig.TrainingJ" - "obEarlyStoppingType\"8\n\034HyperparameterTun" - "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" - "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" - "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" - "/pb-go/flyteidl/pluginsb\006proto3" + "ctive\022\204\001\n training_job_early_stopping_ty" + "pe\030\004 \001(\0162Z.flyteidl.plugins.sagemaker.Hy" + "perparameterTuningSpecification.Training" + "JobEarlyStoppingType\"8\n\034HyperparameterTu" + "ningStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1" + "\n\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022" + "\010\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/ge" + "n/pb-go/flyteidl/pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, - "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1111, + "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1192, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { @@ -207,11 +209,11 @@ const HyperparameterTuningObjective_HyperparameterTuningObjectiveType Hyperparam const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::HyperparameterTuningObjectiveType_MAX; const int HyperparameterTuningObjective::HyperparameterTuningObjectiveType_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* HPOJobConfig_HyperparameterTuningStrategy_descriptor() { +const ::google::protobuf::EnumDescriptor* HyperparameterTuningSpecification_HyperparameterTuningStrategy_descriptor() { ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[1]; } -bool HPOJobConfig_HyperparameterTuningStrategy_IsValid(int value) { +bool HyperparameterTuningSpecification_HyperparameterTuningStrategy_IsValid(int value) { switch (value) { case 0: case 1: @@ -222,17 +224,17 @@ bool HPOJobConfig_HyperparameterTuningStrategy_IsValid(int value) { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::BAYESIAN; -const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::RANDOM; -const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::HyperparameterTuningStrategy_MIN; -const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::HyperparameterTuningStrategy_MAX; -const int HPOJobConfig::HyperparameterTuningStrategy_ARRAYSIZE; +const HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification::BAYESIAN; +const HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification::RANDOM; +const HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification::HyperparameterTuningStrategy_MIN; +const HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification::HyperparameterTuningStrategy_MAX; +const int HyperparameterTuningSpecification::HyperparameterTuningStrategy_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* HPOJobConfig_TrainingJobEarlyStoppingType_descriptor() { +const ::google::protobuf::EnumDescriptor* HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_descriptor() { ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[2]; } -bool HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(int value) { +bool HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_IsValid(int value) { switch (value) { case 0: case 1: @@ -243,83 +245,106 @@ bool HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(int value) { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::OFF; -const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::AUTO; -const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::TrainingJobEarlyStoppingType_MIN; -const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::TrainingJobEarlyStoppingType_MAX; -const int HPOJobConfig::TrainingJobEarlyStoppingType_ARRAYSIZE; +const HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification::OFF; +const HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification::AUTO; +const HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification::TrainingJobEarlyStoppingType_MIN; +const HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification::TrainingJobEarlyStoppingType_MAX; +const int HyperparameterTuningSpecification::TrainingJobEarlyStoppingType_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 // =================================================================== -void HyperparameterTuningObjective::InitAsDefaultInstance() { +void HyperparameterTuningJob::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_HyperparameterTuningJob_default_instance_._instance.get_mutable()->training_job_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJob*>( + ::flyteidl::plugins::sagemaker::TrainingJob::internal_default_instance()); } -class HyperparameterTuningObjective::HasBitSetters { +class HyperparameterTuningJob::HasBitSetters { public: + static const ::flyteidl::plugins::sagemaker::TrainingJob& training_job(const HyperparameterTuningJob* msg); }; +const ::flyteidl::plugins::sagemaker::TrainingJob& +HyperparameterTuningJob::HasBitSetters::training_job(const HyperparameterTuningJob* msg) { + return *msg->training_job_; +} +void HyperparameterTuningJob::clear_training_job() { + if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { + delete training_job_; + } + training_job_ = nullptr; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HyperparameterTuningObjective::kObjectiveTypeFieldNumber; -const int HyperparameterTuningObjective::kMetricNameFieldNumber; +const int HyperparameterTuningJob::kTrainingJobFieldNumber; +const int HyperparameterTuningJob::kMaxNumberOfTrainingJobsFieldNumber; +const int HyperparameterTuningJob::kMaxParallelTrainingJobsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -HyperparameterTuningObjective::HyperparameterTuningObjective() +HyperparameterTuningJob::HyperparameterTuningJob() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningJob) } -HyperparameterTuningObjective::HyperparameterTuningObjective(const HyperparameterTuningObjective& from) +HyperparameterTuningJob::HyperparameterTuningJob(const HyperparameterTuningJob& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.metric_name().size() > 0) { - metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); + if (from.has_training_job()) { + training_job_ = new ::flyteidl::plugins::sagemaker::TrainingJob(*from.training_job_); + } else { + training_job_ = nullptr; } - objective_type_ = from.objective_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + ::memcpy(&max_number_of_training_jobs_, &from.max_number_of_training_jobs_, + static_cast(reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningJob) } -void HyperparameterTuningObjective::SharedCtor() { +void HyperparameterTuningJob::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - objective_type_ = 0; + &scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + ::memset(&training_job_, 0, static_cast( + reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&training_job_)) + sizeof(max_parallel_training_jobs_)); } -HyperparameterTuningObjective::~HyperparameterTuningObjective() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +HyperparameterTuningJob::~HyperparameterTuningJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningJob) SharedDtor(); } -void HyperparameterTuningObjective::SharedDtor() { - metric_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void HyperparameterTuningJob::SharedDtor() { + if (this != internal_default_instance()) delete training_job_; } -void HyperparameterTuningObjective::SetCachedSize(int size) const { +void HyperparameterTuningJob::SetCachedSize(int size) const { _cached_size_.Set(size); } -const HyperparameterTuningObjective& HyperparameterTuningObjective::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); +const HyperparameterTuningJob& HyperparameterTuningJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); return *internal_default_instance(); } -void HyperparameterTuningObjective::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +void HyperparameterTuningJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - objective_type_ = 0; + if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { + delete training_job_; + } + training_job_ = nullptr; + ::memset(&max_number_of_training_jobs_, 0, static_cast( + reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HyperparameterTuningObjective::_InternalParse(const char* begin, const char* end, void* object, +const char* HyperparameterTuningJob::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -329,28 +354,31 @@ const char* HyperparameterTuningObjective::_InternalParse(const char* begin, con ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_objective_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType>(val)); + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJob::_InternalParse; + object = msg->mutable_training_job(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); break; } - // string metric_name = 2; + // int64 max_number_of_training_jobs = 2; case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_max_number_of_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 max_parallel_training_jobs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_max_parallel_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); - object = msg->mutable_metric_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; break; } default: { @@ -368,48 +396,52 @@ const char* HyperparameterTuningObjective::_InternalParse(const char* begin, con } // switch } // while return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HyperparameterTuningObjective::MergePartialFromCodedStream( +bool HyperparameterTuningJob::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_objective_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType >(value)); + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_training_job())); } else { goto handle_unusual; } break; } - // string metric_name = 2; + // int64 max_number_of_training_jobs = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_metric_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metric_name().data(), static_cast(this->metric_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name")); + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &max_number_of_training_jobs_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 max_parallel_training_jobs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &max_parallel_training_jobs_))); } else { goto handle_unusual; } @@ -428,77 +460,77 @@ bool HyperparameterTuningObjective::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningJob) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningJob) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void HyperparameterTuningObjective::SerializeWithCachedSizes( +void HyperparameterTuningJob::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - if (this->objective_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->objective_type(), output); + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + if (this->has_training_job()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::training_job(this), output); } - // string metric_name = 2; - if (this->metric_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metric_name().data(), static_cast(this->metric_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->metric_name(), output); + // int64 max_number_of_training_jobs = 2; + if (this->max_number_of_training_jobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max_number_of_training_jobs(), output); + } + + // int64 max_parallel_training_jobs = 3; + if (this->max_parallel_training_jobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->max_parallel_training_jobs(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningJob) } -::google::protobuf::uint8* HyperparameterTuningObjective::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* HyperparameterTuningJob::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - if (this->objective_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->objective_type(), target); + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + if (this->has_training_job()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::training_job(this), target); } - // string metric_name = 2; - if (this->metric_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metric_name().data(), static_cast(this->metric_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->metric_name(), target); + // int64 max_number_of_training_jobs = 2; + if (this->max_number_of_training_jobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max_number_of_training_jobs(), target); + } + + // int64 max_parallel_training_jobs = 3; + if (this->max_parallel_training_jobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->max_parallel_training_jobs(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningJob) return target; } -size_t HyperparameterTuningObjective::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +size_t HyperparameterTuningJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -510,17 +542,25 @@ size_t HyperparameterTuningObjective::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string metric_name = 2; - if (this->metric_name().size() > 0) { + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + if (this->has_training_job()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->metric_name()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *training_job_); } - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - if (this->objective_type() != 0) { + // int64 max_number_of_training_jobs = 2; + if (this->max_number_of_training_jobs() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->objective_type()); + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max_number_of_training_jobs()); + } + + // int64 max_parallel_training_jobs = 3; + if (this->max_parallel_training_jobs() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max_parallel_training_jobs()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -528,68 +568,70 @@ size_t HyperparameterTuningObjective::ByteSizeLong() const { return total_size; } -void HyperparameterTuningObjective::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +void HyperparameterTuningJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) GOOGLE_DCHECK_NE(&from, this); - const HyperparameterTuningObjective* source = - ::google::protobuf::DynamicCastToGenerated( + const HyperparameterTuningJob* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningJob) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningJob) MergeFrom(*source); } } -void HyperparameterTuningObjective::MergeFrom(const HyperparameterTuningObjective& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +void HyperparameterTuningJob::MergeFrom(const HyperparameterTuningJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.metric_name().size() > 0) { - - metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); + if (from.has_training_job()) { + mutable_training_job()->::flyteidl::plugins::sagemaker::TrainingJob::MergeFrom(from.training_job()); } - if (from.objective_type() != 0) { - set_objective_type(from.objective_type()); + if (from.max_number_of_training_jobs() != 0) { + set_max_number_of_training_jobs(from.max_number_of_training_jobs()); + } + if (from.max_parallel_training_jobs() != 0) { + set_max_parallel_training_jobs(from.max_parallel_training_jobs()); } } -void HyperparameterTuningObjective::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +void HyperparameterTuningJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) if (&from == this) return; Clear(); MergeFrom(from); } -void HyperparameterTuningObjective::CopyFrom(const HyperparameterTuningObjective& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +void HyperparameterTuningJob::CopyFrom(const HyperparameterTuningJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) if (&from == this) return; Clear(); MergeFrom(from); } -bool HyperparameterTuningObjective::IsInitialized() const { +bool HyperparameterTuningJob::IsInitialized() const { return true; } -void HyperparameterTuningObjective::Swap(HyperparameterTuningObjective* other) { +void HyperparameterTuningJob::Swap(HyperparameterTuningJob* other) { if (other == this) return; InternalSwap(other); } -void HyperparameterTuningObjective::InternalSwap(HyperparameterTuningObjective* other) { +void HyperparameterTuningJob::InternalSwap(HyperparameterTuningJob* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - metric_name_.Swap(&other->metric_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(objective_type_, other->objective_type_); + swap(training_job_, other->training_job_); + swap(max_number_of_training_jobs_, other->max_number_of_training_jobs_); + swap(max_parallel_training_jobs_, other->max_parallel_training_jobs_); } -::google::protobuf::Metadata HyperparameterTuningObjective::GetMetadata() const { +::google::protobuf::Metadata HyperparameterTuningJob::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; } @@ -597,97 +639,74 @@ ::google::protobuf::Metadata HyperparameterTuningObjective::GetMetadata() const // =================================================================== -void HPOJob::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_HPOJob_default_instance_._instance.get_mutable()->training_job_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJob*>( - ::flyteidl::plugins::sagemaker::TrainingJob::internal_default_instance()); +void HyperparameterTuningObjective::InitAsDefaultInstance() { } -class HPOJob::HasBitSetters { +class HyperparameterTuningObjective::HasBitSetters { public: - static const ::flyteidl::plugins::sagemaker::TrainingJob& training_job(const HPOJob* msg); }; -const ::flyteidl::plugins::sagemaker::TrainingJob& -HPOJob::HasBitSetters::training_job(const HPOJob* msg) { - return *msg->training_job_; -} -void HPOJob::clear_training_job() { - if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { - delete training_job_; - } - training_job_ = nullptr; -} #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJob::kTrainingJobFieldNumber; -const int HPOJob::kMaxNumberOfTrainingJobsFieldNumber; -const int HPOJob::kMaxParallelTrainingJobsFieldNumber; +const int HyperparameterTuningObjective::kObjectiveTypeFieldNumber; +const int HyperparameterTuningObjective::kMetricNameFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -HPOJob::HPOJob() +HyperparameterTuningObjective::HyperparameterTuningObjective() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJob) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) } -HPOJob::HPOJob(const HPOJob& from) +HyperparameterTuningObjective::HyperparameterTuningObjective(const HyperparameterTuningObjective& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_training_job()) { - training_job_ = new ::flyteidl::plugins::sagemaker::TrainingJob(*from.training_job_); - } else { - training_job_ = nullptr; + metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.metric_name().size() > 0) { + metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); } - ::memcpy(&max_number_of_training_jobs_, &from.max_number_of_training_jobs_, - static_cast(reinterpret_cast(&max_parallel_training_jobs_) - - reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJob) + objective_type_ = from.objective_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) } -void HPOJob::SharedCtor() { +void HyperparameterTuningObjective::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::memset(&training_job_, 0, static_cast( - reinterpret_cast(&max_parallel_training_jobs_) - - reinterpret_cast(&training_job_)) + sizeof(max_parallel_training_jobs_)); + &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + objective_type_ = 0; } -HPOJob::~HPOJob() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJob) +HyperparameterTuningObjective::~HyperparameterTuningObjective() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) SharedDtor(); } -void HPOJob::SharedDtor() { - if (this != internal_default_instance()) delete training_job_; +void HyperparameterTuningObjective::SharedDtor() { + metric_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -void HPOJob::SetCachedSize(int size) const { +void HyperparameterTuningObjective::SetCachedSize(int size) const { _cached_size_.Set(size); } -const HPOJob& HPOJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HPOJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); +const HyperparameterTuningObjective& HyperparameterTuningObjective::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); return *internal_default_instance(); } -void HPOJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJob) +void HyperparameterTuningObjective::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { - delete training_job_; - } - training_job_ = nullptr; - ::memset(&max_number_of_training_jobs_, 0, static_cast( - reinterpret_cast(&max_parallel_training_jobs_) - - reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); + metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + objective_type_ = 0; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HPOJob::_InternalParse(const char* begin, const char* end, void* object, +const char* HyperparameterTuningObjective::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -697,31 +716,28 @@ const char* HPOJob::_InternalParse(const char* begin, const char* end, void* obj ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_objective_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJob::_InternalParse; - object = msg->mutable_training_job(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); break; } - // int64 max_number_of_training_jobs = 2; + // string metric_name = 2; case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_max_number_of_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int64 max_parallel_training_jobs = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_max_parallel_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); + object = msg->mutable_metric_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; break; } default: { @@ -739,52 +755,48 @@ const char* HPOJob::_InternalParse(const char* begin, const char* end, void* obj } // switch } // while return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HPOJob::MergePartialFromCodedStream( +bool HyperparameterTuningObjective::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJob) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_training_job())); - } else { - goto handle_unusual; - } - break; - } - - // int64 max_number_of_training_jobs = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &max_number_of_training_jobs_))); + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_objective_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType >(value)); } else { goto handle_unusual; } break; } - // int64 max_parallel_training_jobs = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &max_parallel_training_jobs_))); + // string metric_name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_metric_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric_name().data(), static_cast(this->metric_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name")); } else { goto handle_unusual; } @@ -803,77 +815,77 @@ bool HPOJob::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJob) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJob) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void HPOJob::SerializeWithCachedSizes( +void HyperparameterTuningObjective::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJob) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - if (this->has_training_job()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::training_job(this), output); - } - - // int64 max_number_of_training_jobs = 2; - if (this->max_number_of_training_jobs() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max_number_of_training_jobs(), output); + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + if (this->objective_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->objective_type(), output); } - // int64 max_parallel_training_jobs = 3; - if (this->max_parallel_training_jobs() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->max_parallel_training_jobs(), output); + // string metric_name = 2; + if (this->metric_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric_name().data(), static_cast(this->metric_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->metric_name(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJob) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) } -::google::protobuf::uint8* HPOJob::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* HyperparameterTuningObjective::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJob) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - if (this->has_training_job()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::training_job(this), target); - } - - // int64 max_number_of_training_jobs = 2; - if (this->max_number_of_training_jobs() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max_number_of_training_jobs(), target); + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + if (this->objective_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->objective_type(), target); } - // int64 max_parallel_training_jobs = 3; - if (this->max_parallel_training_jobs() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->max_parallel_training_jobs(), target); + // string metric_name = 2; + if (this->metric_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric_name().data(), static_cast(this->metric_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->metric_name(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJob) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) return target; } -size_t HPOJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJob) +size_t HyperparameterTuningObjective::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -885,25 +897,17 @@ size_t HPOJob::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - if (this->has_training_job()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *training_job_); - } - - // int64 max_number_of_training_jobs = 2; - if (this->max_number_of_training_jobs() != 0) { + // string metric_name = 2; + if (this->metric_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->max_number_of_training_jobs()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->metric_name()); } - // int64 max_parallel_training_jobs = 3; - if (this->max_parallel_training_jobs() != 0) { + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + if (this->objective_type() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->max_parallel_training_jobs()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->objective_type()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -911,70 +915,68 @@ size_t HPOJob::ByteSizeLong() const { return total_size; } -void HPOJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJob) +void HyperparameterTuningObjective::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) GOOGLE_DCHECK_NE(&from, this); - const HPOJob* source = - ::google::protobuf::DynamicCastToGenerated( + const HyperparameterTuningObjective* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJob) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJob) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) MergeFrom(*source); } } -void HPOJob::MergeFrom(const HPOJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJob) +void HyperparameterTuningObjective::MergeFrom(const HyperparameterTuningObjective& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_training_job()) { - mutable_training_job()->::flyteidl::plugins::sagemaker::TrainingJob::MergeFrom(from.training_job()); - } - if (from.max_number_of_training_jobs() != 0) { - set_max_number_of_training_jobs(from.max_number_of_training_jobs()); + if (from.metric_name().size() > 0) { + + metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); } - if (from.max_parallel_training_jobs() != 0) { - set_max_parallel_training_jobs(from.max_parallel_training_jobs()); + if (from.objective_type() != 0) { + set_objective_type(from.objective_type()); } } -void HPOJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJob) +void HyperparameterTuningObjective::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) if (&from == this) return; Clear(); MergeFrom(from); } -void HPOJob::CopyFrom(const HPOJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJob) +void HyperparameterTuningObjective::CopyFrom(const HyperparameterTuningObjective& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) if (&from == this) return; Clear(); MergeFrom(from); } -bool HPOJob::IsInitialized() const { +bool HyperparameterTuningObjective::IsInitialized() const { return true; } -void HPOJob::Swap(HPOJob* other) { +void HyperparameterTuningObjective::Swap(HyperparameterTuningObjective* other) { if (other == this) return; InternalSwap(other); } -void HPOJob::InternalSwap(HPOJob* other) { +void HyperparameterTuningObjective::InternalSwap(HyperparameterTuningObjective* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(training_job_, other->training_job_); - swap(max_number_of_training_jobs_, other->max_number_of_training_jobs_); - swap(max_parallel_training_jobs_, other->max_parallel_training_jobs_); + metric_name_.Swap(&other->metric_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(objective_type_, other->objective_type_); } -::google::protobuf::Metadata HPOJob::GetMetadata() const { +::google::protobuf::Metadata HyperparameterTuningObjective::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; } @@ -982,45 +984,45 @@ ::google::protobuf::Metadata HPOJob::GetMetadata() const { // =================================================================== -void HPOJobConfig::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_._instance.get_mutable()->hyperparameter_ranges_ = const_cast< ::flyteidl::plugins::sagemaker::ParameterRanges*>( +void HyperparameterTuningSpecification::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_HyperparameterTuningSpecification_default_instance_._instance.get_mutable()->hyperparameter_ranges_ = const_cast< ::flyteidl::plugins::sagemaker::ParameterRanges*>( ::flyteidl::plugins::sagemaker::ParameterRanges::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_HPOJobConfig_default_instance_._instance.get_mutable()->tuning_objective_ = const_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective*>( + ::flyteidl::plugins::sagemaker::_HyperparameterTuningSpecification_default_instance_._instance.get_mutable()->tuning_objective_ = const_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective*>( ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::internal_default_instance()); } -class HPOJobConfig::HasBitSetters { +class HyperparameterTuningSpecification::HasBitSetters { public: - static const ::flyteidl::plugins::sagemaker::ParameterRanges& hyperparameter_ranges(const HPOJobConfig* msg); - static const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& tuning_objective(const HPOJobConfig* msg); + static const ::flyteidl::plugins::sagemaker::ParameterRanges& hyperparameter_ranges(const HyperparameterTuningSpecification* msg); + static const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& tuning_objective(const HyperparameterTuningSpecification* msg); }; const ::flyteidl::plugins::sagemaker::ParameterRanges& -HPOJobConfig::HasBitSetters::hyperparameter_ranges(const HPOJobConfig* msg) { +HyperparameterTuningSpecification::HasBitSetters::hyperparameter_ranges(const HyperparameterTuningSpecification* msg) { return *msg->hyperparameter_ranges_; } const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& -HPOJobConfig::HasBitSetters::tuning_objective(const HPOJobConfig* msg) { +HyperparameterTuningSpecification::HasBitSetters::tuning_objective(const HyperparameterTuningSpecification* msg) { return *msg->tuning_objective_; } -void HPOJobConfig::clear_hyperparameter_ranges() { +void HyperparameterTuningSpecification::clear_hyperparameter_ranges() { if (GetArenaNoVirtual() == nullptr && hyperparameter_ranges_ != nullptr) { delete hyperparameter_ranges_; } hyperparameter_ranges_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HPOJobConfig::kHyperparameterRangesFieldNumber; -const int HPOJobConfig::kTuningStrategyFieldNumber; -const int HPOJobConfig::kTuningObjectiveFieldNumber; -const int HPOJobConfig::kTrainingJobEarlyStoppingTypeFieldNumber; +const int HyperparameterTuningSpecification::kHyperparameterRangesFieldNumber; +const int HyperparameterTuningSpecification::kTuningStrategyFieldNumber; +const int HyperparameterTuningSpecification::kTuningObjectiveFieldNumber; +const int HyperparameterTuningSpecification::kTrainingJobEarlyStoppingTypeFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -HPOJobConfig::HPOJobConfig() +HyperparameterTuningSpecification::HyperparameterTuningSpecification() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HPOJobConfig) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) } -HPOJobConfig::HPOJobConfig(const HPOJobConfig& from) +HyperparameterTuningSpecification::HyperparameterTuningSpecification(const HyperparameterTuningSpecification& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -1037,38 +1039,38 @@ HPOJobConfig::HPOJobConfig(const HPOJobConfig& from) ::memcpy(&tuning_strategy_, &from.tuning_strategy_, static_cast(reinterpret_cast(&training_job_early_stopping_type_) - reinterpret_cast(&tuning_strategy_)) + sizeof(training_job_early_stopping_type_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HPOJobConfig) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) } -void HPOJobConfig::SharedCtor() { +void HyperparameterTuningSpecification::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + &scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); ::memset(&hyperparameter_ranges_, 0, static_cast( reinterpret_cast(&training_job_early_stopping_type_) - reinterpret_cast(&hyperparameter_ranges_)) + sizeof(training_job_early_stopping_type_)); } -HPOJobConfig::~HPOJobConfig() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HPOJobConfig) +HyperparameterTuningSpecification::~HyperparameterTuningSpecification() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) SharedDtor(); } -void HPOJobConfig::SharedDtor() { +void HyperparameterTuningSpecification::SharedDtor() { if (this != internal_default_instance()) delete hyperparameter_ranges_; if (this != internal_default_instance()) delete tuning_objective_; } -void HPOJobConfig::SetCachedSize(int size) const { +void HyperparameterTuningSpecification::SetCachedSize(int size) const { _cached_size_.Set(size); } -const HPOJobConfig& HPOJobConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HPOJobConfig_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); +const HyperparameterTuningSpecification& HyperparameterTuningSpecification::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); return *internal_default_instance(); } -void HPOJobConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HPOJobConfig) +void HyperparameterTuningSpecification::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1088,9 +1090,9 @@ void HPOJobConfig::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HPOJobConfig::_InternalParse(const char* begin, const char* end, void* object, +const char* HyperparameterTuningSpecification::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -1113,11 +1115,11 @@ const char* HPOJobConfig::_InternalParse(const char* begin, const char* end, voi {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_tuning_strategy(static_cast<::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy>(val)); + msg->set_tuning_strategy(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -1134,11 +1136,11 @@ const char* HPOJobConfig::_InternalParse(const char* begin, const char* end, voi {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_training_job_early_stopping_type(static_cast<::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType>(val)); + msg->set_training_job_early_stopping_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -1162,11 +1164,11 @@ const char* HPOJobConfig::_InternalParse(const char* begin, const char* end, voi {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HPOJobConfig::MergePartialFromCodedStream( +bool HyperparameterTuningSpecification::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HPOJobConfig) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -1183,14 +1185,14 @@ bool HPOJobConfig::MergePartialFromCodedStream( break; } - // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - set_tuning_strategy(static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy >(value)); + set_tuning_strategy(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy >(value)); } else { goto handle_unusual; } @@ -1208,14 +1210,14 @@ bool HPOJobConfig::MergePartialFromCodedStream( break; } - // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - set_training_job_early_stopping_type(static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType >(value)); + set_training_job_early_stopping_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType >(value)); } else { goto handle_unusual; } @@ -1234,18 +1236,18 @@ bool HPOJobConfig::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HPOJobConfig) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HPOJobConfig) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void HPOJobConfig::SerializeWithCachedSizes( +void HyperparameterTuningSpecification::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HPOJobConfig) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1255,7 +1257,7 @@ void HPOJobConfig::SerializeWithCachedSizes( 1, HasBitSetters::hyperparameter_ranges(this), output); } - // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; if (this->tuning_strategy() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 2, this->tuning_strategy(), output); @@ -1267,7 +1269,7 @@ void HPOJobConfig::SerializeWithCachedSizes( 3, HasBitSetters::tuning_objective(this), output); } - // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; if (this->training_job_early_stopping_type() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 4, this->training_job_early_stopping_type(), output); @@ -1277,12 +1279,12 @@ void HPOJobConfig::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HPOJobConfig) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) } -::google::protobuf::uint8* HPOJobConfig::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* HyperparameterTuningSpecification::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HPOJobConfig) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1293,7 +1295,7 @@ ::google::protobuf::uint8* HPOJobConfig::InternalSerializeWithCachedSizesToArray 1, HasBitSetters::hyperparameter_ranges(this), target); } - // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; if (this->tuning_strategy() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 2, this->tuning_strategy(), target); @@ -1306,7 +1308,7 @@ ::google::protobuf::uint8* HPOJobConfig::InternalSerializeWithCachedSizesToArray 3, HasBitSetters::tuning_objective(this), target); } - // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; if (this->training_job_early_stopping_type() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 4, this->training_job_early_stopping_type(), target); @@ -1316,12 +1318,12 @@ ::google::protobuf::uint8* HPOJobConfig::InternalSerializeWithCachedSizesToArray target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HPOJobConfig) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) return target; } -size_t HPOJobConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HPOJobConfig) +size_t HyperparameterTuningSpecification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -1347,13 +1349,13 @@ size_t HPOJobConfig::ByteSizeLong() const { *tuning_objective_); } - // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; if (this->tuning_strategy() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->tuning_strategy()); } - // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; if (this->training_job_early_stopping_type() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->training_job_early_stopping_type()); @@ -1364,23 +1366,23 @@ size_t HPOJobConfig::ByteSizeLong() const { return total_size; } -void HPOJobConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) +void HyperparameterTuningSpecification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) GOOGLE_DCHECK_NE(&from, this); - const HPOJobConfig* source = - ::google::protobuf::DynamicCastToGenerated( + const HyperparameterTuningSpecification* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HPOJobConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HPOJobConfig) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) MergeFrom(*source); } } -void HPOJobConfig::MergeFrom(const HPOJobConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) +void HyperparameterTuningSpecification::MergeFrom(const HyperparameterTuningSpecification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -1400,29 +1402,29 @@ void HPOJobConfig::MergeFrom(const HPOJobConfig& from) { } } -void HPOJobConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) +void HyperparameterTuningSpecification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) if (&from == this) return; Clear(); MergeFrom(from); } -void HPOJobConfig::CopyFrom(const HPOJobConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HPOJobConfig) +void HyperparameterTuningSpecification::CopyFrom(const HyperparameterTuningSpecification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) if (&from == this) return; Clear(); MergeFrom(from); } -bool HPOJobConfig::IsInitialized() const { +bool HyperparameterTuningSpecification::IsInitialized() const { return true; } -void HPOJobConfig::Swap(HPOJobConfig* other) { +void HyperparameterTuningSpecification::Swap(HyperparameterTuningSpecification* other) { if (other == this) return; InternalSwap(other); } -void HPOJobConfig::InternalSwap(HPOJobConfig* other) { +void HyperparameterTuningSpecification::InternalSwap(HyperparameterTuningSpecification* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); swap(hyperparameter_ranges_, other->hyperparameter_ranges_); @@ -1431,7 +1433,7 @@ void HPOJobConfig::InternalSwap(HPOJobConfig* other) { swap(training_job_early_stopping_type_, other->training_job_early_stopping_type_); } -::google::protobuf::Metadata HPOJobConfig::GetMetadata() const { +::google::protobuf::Metadata HyperparameterTuningSpecification::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; } @@ -1443,14 +1445,14 @@ ::google::protobuf::Metadata HPOJobConfig::GetMetadata() const { } // namespace flyteidl namespace google { namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningJob >(arena); +} template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective >(arena); } -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJob >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HPOJobConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HPOJobConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HPOJobConfig >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification >(arena); } } // namespace protobuf } // namespace google diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h index f578aa97f..c04f92aca 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h @@ -54,23 +54,23 @@ void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto(); namespace flyteidl { namespace plugins { namespace sagemaker { -class HPOJob; -class HPOJobDefaultTypeInternal; -extern HPOJobDefaultTypeInternal _HPOJob_default_instance_; -class HPOJobConfig; -class HPOJobConfigDefaultTypeInternal; -extern HPOJobConfigDefaultTypeInternal _HPOJobConfig_default_instance_; +class HyperparameterTuningJob; +class HyperparameterTuningJobDefaultTypeInternal; +extern HyperparameterTuningJobDefaultTypeInternal _HyperparameterTuningJob_default_instance_; class HyperparameterTuningObjective; class HyperparameterTuningObjectiveDefaultTypeInternal; extern HyperparameterTuningObjectiveDefaultTypeInternal _HyperparameterTuningObjective_default_instance_; +class HyperparameterTuningSpecification; +class HyperparameterTuningSpecificationDefaultTypeInternal; +extern HyperparameterTuningSpecificationDefaultTypeInternal _HyperparameterTuningSpecification_default_instance_; } // namespace sagemaker } // namespace plugins } // namespace flyteidl namespace google { namespace protobuf { -template<> ::flyteidl::plugins::sagemaker::HPOJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJob>(Arena*); -template<> ::flyteidl::plugins::sagemaker::HPOJobConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HPOJobConfig>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningJob>(Arena*); template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification>(Arena*); } // namespace protobuf } // namespace google namespace flyteidl { @@ -98,69 +98,69 @@ inline bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Pars return ::google::protobuf::internal::ParseNamedEnum( HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(), name, value); } -enum HPOJobConfig_HyperparameterTuningStrategy { - HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN = 0, - HPOJobConfig_HyperparameterTuningStrategy_RANDOM = 1, - HPOJobConfig_HyperparameterTuningStrategy_HPOJobConfig_HyperparameterTuningStrategy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - HPOJobConfig_HyperparameterTuningStrategy_HPOJobConfig_HyperparameterTuningStrategy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +enum HyperparameterTuningSpecification_HyperparameterTuningStrategy { + HyperparameterTuningSpecification_HyperparameterTuningStrategy_BAYESIAN = 0, + HyperparameterTuningSpecification_HyperparameterTuningStrategy_RANDOM = 1, + HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningSpecification_HyperparameterTuningStrategy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningSpecification_HyperparameterTuningStrategy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() }; -bool HPOJobConfig_HyperparameterTuningStrategy_IsValid(int value); -const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MIN = HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN; -const HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX = HPOJobConfig_HyperparameterTuningStrategy_RANDOM; -const int HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_ARRAYSIZE = HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX + 1; +bool HyperparameterTuningSpecification_HyperparameterTuningStrategy_IsValid(int value); +const HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MIN = HyperparameterTuningSpecification_HyperparameterTuningStrategy_BAYESIAN; +const HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX = HyperparameterTuningSpecification_HyperparameterTuningStrategy_RANDOM; +const int HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_ARRAYSIZE = HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX + 1; -const ::google::protobuf::EnumDescriptor* HPOJobConfig_HyperparameterTuningStrategy_descriptor(); -inline const ::std::string& HPOJobConfig_HyperparameterTuningStrategy_Name(HPOJobConfig_HyperparameterTuningStrategy value) { +const ::google::protobuf::EnumDescriptor* HyperparameterTuningSpecification_HyperparameterTuningStrategy_descriptor(); +inline const ::std::string& HyperparameterTuningSpecification_HyperparameterTuningStrategy_Name(HyperparameterTuningSpecification_HyperparameterTuningStrategy value) { return ::google::protobuf::internal::NameOfEnum( - HPOJobConfig_HyperparameterTuningStrategy_descriptor(), value); -} -inline bool HPOJobConfig_HyperparameterTuningStrategy_Parse( - const ::std::string& name, HPOJobConfig_HyperparameterTuningStrategy* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HPOJobConfig_HyperparameterTuningStrategy_descriptor(), name, value); -} -enum HPOJobConfig_TrainingJobEarlyStoppingType { - HPOJobConfig_TrainingJobEarlyStoppingType_OFF = 0, - HPOJobConfig_TrainingJobEarlyStoppingType_AUTO = 1, - HPOJobConfig_TrainingJobEarlyStoppingType_HPOJobConfig_TrainingJobEarlyStoppingType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - HPOJobConfig_TrainingJobEarlyStoppingType_HPOJobConfig_TrainingJobEarlyStoppingType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() + HyperparameterTuningSpecification_HyperparameterTuningStrategy_descriptor(), value); +} +inline bool HyperparameterTuningSpecification_HyperparameterTuningStrategy_Parse( + const ::std::string& name, HyperparameterTuningSpecification_HyperparameterTuningStrategy* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HyperparameterTuningSpecification_HyperparameterTuningStrategy_descriptor(), name, value); +} +enum HyperparameterTuningSpecification_TrainingJobEarlyStoppingType { + HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_OFF = 0, + HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_AUTO = 1, + HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() }; -bool HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(int value); -const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MIN = HPOJobConfig_TrainingJobEarlyStoppingType_OFF; -const HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX = HPOJobConfig_TrainingJobEarlyStoppingType_AUTO; -const int HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_ARRAYSIZE = HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX + 1; +bool HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_IsValid(int value); +const HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MIN = HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_OFF; +const HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX = HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_AUTO; +const int HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_ARRAYSIZE = HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX + 1; -const ::google::protobuf::EnumDescriptor* HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(); -inline const ::std::string& HPOJobConfig_TrainingJobEarlyStoppingType_Name(HPOJobConfig_TrainingJobEarlyStoppingType value) { +const ::google::protobuf::EnumDescriptor* HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_descriptor(); +inline const ::std::string& HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_Name(HyperparameterTuningSpecification_TrainingJobEarlyStoppingType value) { return ::google::protobuf::internal::NameOfEnum( - HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(), value); + HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_descriptor(), value); } -inline bool HPOJobConfig_TrainingJobEarlyStoppingType_Parse( - const ::std::string& name, HPOJobConfig_TrainingJobEarlyStoppingType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(), name, value); +inline bool HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_Parse( + const ::std::string& name, HyperparameterTuningSpecification_TrainingJobEarlyStoppingType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_descriptor(), name, value); } // =================================================================== -class HyperparameterTuningObjective final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) */ { +class HyperparameterTuningJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningJob) */ { public: - HyperparameterTuningObjective(); - virtual ~HyperparameterTuningObjective(); + HyperparameterTuningJob(); + virtual ~HyperparameterTuningJob(); - HyperparameterTuningObjective(const HyperparameterTuningObjective& from); + HyperparameterTuningJob(const HyperparameterTuningJob& from); - inline HyperparameterTuningObjective& operator=(const HyperparameterTuningObjective& from) { + inline HyperparameterTuningJob& operator=(const HyperparameterTuningJob& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - HyperparameterTuningObjective(HyperparameterTuningObjective&& from) noexcept - : HyperparameterTuningObjective() { + HyperparameterTuningJob(HyperparameterTuningJob&& from) noexcept + : HyperparameterTuningJob() { *this = ::std::move(from); } - inline HyperparameterTuningObjective& operator=(HyperparameterTuningObjective&& from) noexcept { + inline HyperparameterTuningJob& operator=(HyperparameterTuningJob&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -172,34 +172,34 @@ class HyperparameterTuningObjective final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const HyperparameterTuningObjective& default_instance(); + static const HyperparameterTuningJob& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HyperparameterTuningObjective* internal_default_instance() { - return reinterpret_cast( - &_HyperparameterTuningObjective_default_instance_); + static inline const HyperparameterTuningJob* internal_default_instance() { + return reinterpret_cast( + &_HyperparameterTuningJob_default_instance_); } static constexpr int kIndexInFileMessages = 0; - void Swap(HyperparameterTuningObjective* other); - friend void swap(HyperparameterTuningObjective& a, HyperparameterTuningObjective& b) { + void Swap(HyperparameterTuningJob* other); + friend void swap(HyperparameterTuningJob& a, HyperparameterTuningJob& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline HyperparameterTuningObjective* New() const final { - return CreateMaybeMessage(nullptr); + inline HyperparameterTuningJob* New() const final { + return CreateMaybeMessage(nullptr); } - HyperparameterTuningObjective* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + HyperparameterTuningJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HyperparameterTuningObjective& from); - void MergeFrom(const HyperparameterTuningObjective& from); + void CopyFrom(const HyperparameterTuningJob& from); + void MergeFrom(const HyperparameterTuningJob& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -221,7 +221,7 @@ class HyperparameterTuningObjective final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(HyperparameterTuningObjective* other); + void InternalSwap(HyperparameterTuningJob* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -235,85 +235,61 @@ class HyperparameterTuningObjective final : // nested types ---------------------------------------------------- - typedef HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType; - static const HyperparameterTuningObjectiveType MINIMIZE = - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE; - static const HyperparameterTuningObjectiveType MAXIMIZE = - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE; - static inline bool HyperparameterTuningObjectiveType_IsValid(int value) { - return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(value); - } - static const HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType_MIN = - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MIN; - static const HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType_MAX = - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX; - static const int HyperparameterTuningObjectiveType_ARRAYSIZE = - HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - HyperparameterTuningObjectiveType_descriptor() { - return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(); - } - static inline const ::std::string& HyperparameterTuningObjectiveType_Name(HyperparameterTuningObjectiveType value) { - return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Name(value); - } - static inline bool HyperparameterTuningObjectiveType_Parse(const ::std::string& name, - HyperparameterTuningObjectiveType* value) { - return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Parse(name, value); - } - // accessors ------------------------------------------------------- - // string metric_name = 2; - void clear_metric_name(); - static const int kMetricNameFieldNumber = 2; - const ::std::string& metric_name() const; - void set_metric_name(const ::std::string& value); - #if LANG_CXX11 - void set_metric_name(::std::string&& value); - #endif - void set_metric_name(const char* value); - void set_metric_name(const char* value, size_t size); - ::std::string* mutable_metric_name(); - ::std::string* release_metric_name(); - void set_allocated_metric_name(::std::string* metric_name); + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + bool has_training_job() const; + void clear_training_job(); + static const int kTrainingJobFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::TrainingJob& training_job() const; + ::flyteidl::plugins::sagemaker::TrainingJob* release_training_job(); + ::flyteidl::plugins::sagemaker::TrainingJob* mutable_training_job(); + void set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job); - // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - void clear_objective_type(); - static const int kObjectiveTypeFieldNumber = 1; - ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType objective_type() const; - void set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType value); + // int64 max_number_of_training_jobs = 2; + void clear_max_number_of_training_jobs(); + static const int kMaxNumberOfTrainingJobsFieldNumber = 2; + ::google::protobuf::int64 max_number_of_training_jobs() const; + void set_max_number_of_training_jobs(::google::protobuf::int64 value); - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + // int64 max_parallel_training_jobs = 3; + void clear_max_parallel_training_jobs(); + static const int kMaxParallelTrainingJobsFieldNumber = 3; + ::google::protobuf::int64 max_parallel_training_jobs() const; + void set_max_parallel_training_jobs(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJob) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr metric_name_; - int objective_type_; + ::flyteidl::plugins::sagemaker::TrainingJob* training_job_; + ::google::protobuf::int64 max_number_of_training_jobs_; + ::google::protobuf::int64 max_parallel_training_jobs_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; }; // ------------------------------------------------------------------- -class HPOJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJob) */ { +class HyperparameterTuningObjective final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) */ { public: - HPOJob(); - virtual ~HPOJob(); + HyperparameterTuningObjective(); + virtual ~HyperparameterTuningObjective(); - HPOJob(const HPOJob& from); + HyperparameterTuningObjective(const HyperparameterTuningObjective& from); - inline HPOJob& operator=(const HPOJob& from) { + inline HyperparameterTuningObjective& operator=(const HyperparameterTuningObjective& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - HPOJob(HPOJob&& from) noexcept - : HPOJob() { + HyperparameterTuningObjective(HyperparameterTuningObjective&& from) noexcept + : HyperparameterTuningObjective() { *this = ::std::move(from); } - inline HPOJob& operator=(HPOJob&& from) noexcept { + inline HyperparameterTuningObjective& operator=(HyperparameterTuningObjective&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -325,34 +301,34 @@ class HPOJob final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const HPOJob& default_instance(); + static const HyperparameterTuningObjective& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HPOJob* internal_default_instance() { - return reinterpret_cast( - &_HPOJob_default_instance_); + static inline const HyperparameterTuningObjective* internal_default_instance() { + return reinterpret_cast( + &_HyperparameterTuningObjective_default_instance_); } static constexpr int kIndexInFileMessages = 1; - void Swap(HPOJob* other); - friend void swap(HPOJob& a, HPOJob& b) { + void Swap(HyperparameterTuningObjective* other); + friend void swap(HyperparameterTuningObjective& a, HyperparameterTuningObjective& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline HPOJob* New() const final { - return CreateMaybeMessage(nullptr); + inline HyperparameterTuningObjective* New() const final { + return CreateMaybeMessage(nullptr); } - HPOJob* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + HyperparameterTuningObjective* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HPOJob& from); - void MergeFrom(const HPOJob& from); + void CopyFrom(const HyperparameterTuningObjective& from); + void MergeFrom(const HyperparameterTuningObjective& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -374,7 +350,7 @@ class HPOJob final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(HPOJob* other); + void InternalSwap(HyperparameterTuningObjective* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -388,61 +364,85 @@ class HPOJob final : // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- + typedef HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType; + static const HyperparameterTuningObjectiveType MINIMIZE = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE; + static const HyperparameterTuningObjectiveType MAXIMIZE = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE; + static inline bool HyperparameterTuningObjectiveType_IsValid(int value) { + return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(value); + } + static const HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType_MIN = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MIN; + static const HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType_MAX = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX; + static const int HyperparameterTuningObjectiveType_ARRAYSIZE = + HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + HyperparameterTuningObjectiveType_descriptor() { + return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(); + } + static inline const ::std::string& HyperparameterTuningObjectiveType_Name(HyperparameterTuningObjectiveType value) { + return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Name(value); + } + static inline bool HyperparameterTuningObjectiveType_Parse(const ::std::string& name, + HyperparameterTuningObjectiveType* value) { + return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Parse(name, value); + } - // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - bool has_training_job() const; - void clear_training_job(); - static const int kTrainingJobFieldNumber = 1; - const ::flyteidl::plugins::sagemaker::TrainingJob& training_job() const; - ::flyteidl::plugins::sagemaker::TrainingJob* release_training_job(); - ::flyteidl::plugins::sagemaker::TrainingJob* mutable_training_job(); - void set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job); + // accessors ------------------------------------------------------- - // int64 max_number_of_training_jobs = 2; - void clear_max_number_of_training_jobs(); - static const int kMaxNumberOfTrainingJobsFieldNumber = 2; - ::google::protobuf::int64 max_number_of_training_jobs() const; - void set_max_number_of_training_jobs(::google::protobuf::int64 value); + // string metric_name = 2; + void clear_metric_name(); + static const int kMetricNameFieldNumber = 2; + const ::std::string& metric_name() const; + void set_metric_name(const ::std::string& value); + #if LANG_CXX11 + void set_metric_name(::std::string&& value); + #endif + void set_metric_name(const char* value); + void set_metric_name(const char* value, size_t size); + ::std::string* mutable_metric_name(); + ::std::string* release_metric_name(); + void set_allocated_metric_name(::std::string* metric_name); - // int64 max_parallel_training_jobs = 3; - void clear_max_parallel_training_jobs(); - static const int kMaxParallelTrainingJobsFieldNumber = 3; - ::google::protobuf::int64 max_parallel_training_jobs() const; - void set_max_parallel_training_jobs(::google::protobuf::int64 value); + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + void clear_objective_type(); + static const int kObjectiveTypeFieldNumber = 1; + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType objective_type() const; + void set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType value); - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::sagemaker::TrainingJob* training_job_; - ::google::protobuf::int64 max_number_of_training_jobs_; - ::google::protobuf::int64 max_parallel_training_jobs_; + ::google::protobuf::internal::ArenaStringPtr metric_name_; + int objective_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; }; // ------------------------------------------------------------------- -class HPOJobConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HPOJobConfig) */ { +class HyperparameterTuningSpecification final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) */ { public: - HPOJobConfig(); - virtual ~HPOJobConfig(); + HyperparameterTuningSpecification(); + virtual ~HyperparameterTuningSpecification(); - HPOJobConfig(const HPOJobConfig& from); + HyperparameterTuningSpecification(const HyperparameterTuningSpecification& from); - inline HPOJobConfig& operator=(const HPOJobConfig& from) { + inline HyperparameterTuningSpecification& operator=(const HyperparameterTuningSpecification& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - HPOJobConfig(HPOJobConfig&& from) noexcept - : HPOJobConfig() { + HyperparameterTuningSpecification(HyperparameterTuningSpecification&& from) noexcept + : HyperparameterTuningSpecification() { *this = ::std::move(from); } - inline HPOJobConfig& operator=(HPOJobConfig&& from) noexcept { + inline HyperparameterTuningSpecification& operator=(HyperparameterTuningSpecification&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -454,34 +454,34 @@ class HPOJobConfig final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const HPOJobConfig& default_instance(); + static const HyperparameterTuningSpecification& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HPOJobConfig* internal_default_instance() { - return reinterpret_cast( - &_HPOJobConfig_default_instance_); + static inline const HyperparameterTuningSpecification* internal_default_instance() { + return reinterpret_cast( + &_HyperparameterTuningSpecification_default_instance_); } static constexpr int kIndexInFileMessages = 2; - void Swap(HPOJobConfig* other); - friend void swap(HPOJobConfig& a, HPOJobConfig& b) { + void Swap(HyperparameterTuningSpecification* other); + friend void swap(HyperparameterTuningSpecification& a, HyperparameterTuningSpecification& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline HPOJobConfig* New() const final { - return CreateMaybeMessage(nullptr); + inline HyperparameterTuningSpecification* New() const final { + return CreateMaybeMessage(nullptr); } - HPOJobConfig* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + HyperparameterTuningSpecification* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HPOJobConfig& from); - void MergeFrom(const HPOJobConfig& from); + void CopyFrom(const HyperparameterTuningSpecification& from); + void MergeFrom(const HyperparameterTuningSpecification& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -503,7 +503,7 @@ class HPOJobConfig final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(HPOJobConfig* other); + void InternalSwap(HyperparameterTuningSpecification* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -517,56 +517,56 @@ class HPOJobConfig final : // nested types ---------------------------------------------------- - typedef HPOJobConfig_HyperparameterTuningStrategy HyperparameterTuningStrategy; + typedef HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningStrategy; static const HyperparameterTuningStrategy BAYESIAN = - HPOJobConfig_HyperparameterTuningStrategy_BAYESIAN; + HyperparameterTuningSpecification_HyperparameterTuningStrategy_BAYESIAN; static const HyperparameterTuningStrategy RANDOM = - HPOJobConfig_HyperparameterTuningStrategy_RANDOM; + HyperparameterTuningSpecification_HyperparameterTuningStrategy_RANDOM; static inline bool HyperparameterTuningStrategy_IsValid(int value) { - return HPOJobConfig_HyperparameterTuningStrategy_IsValid(value); + return HyperparameterTuningSpecification_HyperparameterTuningStrategy_IsValid(value); } static const HyperparameterTuningStrategy HyperparameterTuningStrategy_MIN = - HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MIN; + HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MIN; static const HyperparameterTuningStrategy HyperparameterTuningStrategy_MAX = - HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX; + HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX; static const int HyperparameterTuningStrategy_ARRAYSIZE = - HPOJobConfig_HyperparameterTuningStrategy_HyperparameterTuningStrategy_ARRAYSIZE; + HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* HyperparameterTuningStrategy_descriptor() { - return HPOJobConfig_HyperparameterTuningStrategy_descriptor(); + return HyperparameterTuningSpecification_HyperparameterTuningStrategy_descriptor(); } static inline const ::std::string& HyperparameterTuningStrategy_Name(HyperparameterTuningStrategy value) { - return HPOJobConfig_HyperparameterTuningStrategy_Name(value); + return HyperparameterTuningSpecification_HyperparameterTuningStrategy_Name(value); } static inline bool HyperparameterTuningStrategy_Parse(const ::std::string& name, HyperparameterTuningStrategy* value) { - return HPOJobConfig_HyperparameterTuningStrategy_Parse(name, value); + return HyperparameterTuningSpecification_HyperparameterTuningStrategy_Parse(name, value); } - typedef HPOJobConfig_TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType; + typedef HyperparameterTuningSpecification_TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType; static const TrainingJobEarlyStoppingType OFF = - HPOJobConfig_TrainingJobEarlyStoppingType_OFF; + HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_OFF; static const TrainingJobEarlyStoppingType AUTO = - HPOJobConfig_TrainingJobEarlyStoppingType_AUTO; + HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_AUTO; static inline bool TrainingJobEarlyStoppingType_IsValid(int value) { - return HPOJobConfig_TrainingJobEarlyStoppingType_IsValid(value); + return HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_IsValid(value); } static const TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType_MIN = - HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MIN; + HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MIN; static const TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType_MAX = - HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX; + HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX; static const int TrainingJobEarlyStoppingType_ARRAYSIZE = - HPOJobConfig_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_ARRAYSIZE; + HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* TrainingJobEarlyStoppingType_descriptor() { - return HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(); + return HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_descriptor(); } static inline const ::std::string& TrainingJobEarlyStoppingType_Name(TrainingJobEarlyStoppingType value) { - return HPOJobConfig_TrainingJobEarlyStoppingType_Name(value); + return HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_Name(value); } static inline bool TrainingJobEarlyStoppingType_Parse(const ::std::string& name, TrainingJobEarlyStoppingType* value) { - return HPOJobConfig_TrainingJobEarlyStoppingType_Parse(name, value); + return HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_Parse(name, value); } // accessors ------------------------------------------------------- @@ -589,19 +589,19 @@ class HPOJobConfig final : ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* mutable_tuning_objective(); void set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective); - // .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; void clear_tuning_strategy(); static const int kTuningStrategyFieldNumber = 2; - ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy tuning_strategy() const; - void set_tuning_strategy(::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy value); + ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy tuning_strategy() const; + void set_tuning_strategy(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy value); - // .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; void clear_training_job_early_stopping_type(); static const int kTrainingJobEarlyStoppingTypeFieldNumber = 4; - ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType training_job_early_stopping_type() const; - void set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType value); + ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType training_job_early_stopping_type() const; + void set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType value); - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) private: class HasBitSetters; @@ -622,6 +622,83 @@ class HPOJobConfig final : #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// HyperparameterTuningJob + +// .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; +inline bool HyperparameterTuningJob::has_training_job() const { + return this != internal_default_instance() && training_job_ != nullptr; +} +inline const ::flyteidl::plugins::sagemaker::TrainingJob& HyperparameterTuningJob::training_job() const { + const ::flyteidl::plugins::sagemaker::TrainingJob* p = training_job_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJob.training_job) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::TrainingJob* HyperparameterTuningJob::release_training_job() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningJob.training_job) + + ::flyteidl::plugins::sagemaker::TrainingJob* temp = training_job_; + training_job_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::TrainingJob* HyperparameterTuningJob::mutable_training_job() { + + if (training_job_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(GetArenaNoVirtual()); + training_job_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningJob.training_job) + return training_job_; +} +inline void HyperparameterTuningJob::set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(training_job_); + } + if (training_job) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + training_job = ::google::protobuf::internal::GetOwnedMessage( + message_arena, training_job, submessage_arena); + } + + } else { + + } + training_job_ = training_job; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningJob.training_job) +} + +// int64 max_number_of_training_jobs = 2; +inline void HyperparameterTuningJob::clear_max_number_of_training_jobs() { + max_number_of_training_jobs_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 HyperparameterTuningJob::max_number_of_training_jobs() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJob.max_number_of_training_jobs) + return max_number_of_training_jobs_; +} +inline void HyperparameterTuningJob::set_max_number_of_training_jobs(::google::protobuf::int64 value) { + + max_number_of_training_jobs_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningJob.max_number_of_training_jobs) +} + +// int64 max_parallel_training_jobs = 3; +inline void HyperparameterTuningJob::clear_max_parallel_training_jobs() { + max_parallel_training_jobs_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 HyperparameterTuningJob::max_parallel_training_jobs() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJob.max_parallel_training_jobs) + return max_parallel_training_jobs_; +} +inline void HyperparameterTuningJob::set_max_parallel_training_jobs(::google::protobuf::int64 value) { + + max_parallel_training_jobs_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningJob.max_parallel_training_jobs) +} + +// ------------------------------------------------------------------- + // HyperparameterTuningObjective // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; @@ -693,112 +770,35 @@ inline void HyperparameterTuningObjective::set_allocated_metric_name(::std::stri // ------------------------------------------------------------------- -// HPOJob - -// .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; -inline bool HPOJob::has_training_job() const { - return this != internal_default_instance() && training_job_ != nullptr; -} -inline const ::flyteidl::plugins::sagemaker::TrainingJob& HPOJob::training_job() const { - const ::flyteidl::plugins::sagemaker::TrainingJob* p = training_job_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.training_job) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::release_training_job() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJob.training_job) - - ::flyteidl::plugins::sagemaker::TrainingJob* temp = training_job_; - training_job_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::sagemaker::TrainingJob* HPOJob::mutable_training_job() { - - if (training_job_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(GetArenaNoVirtual()); - training_job_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJob.training_job) - return training_job_; -} -inline void HPOJob::set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(training_job_); - } - if (training_job) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - training_job = ::google::protobuf::internal::GetOwnedMessage( - message_arena, training_job, submessage_arena); - } - - } else { - - } - training_job_ = training_job; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJob.training_job) -} - -// int64 max_number_of_training_jobs = 2; -inline void HPOJob::clear_max_number_of_training_jobs() { - max_number_of_training_jobs_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 HPOJob::max_number_of_training_jobs() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs) - return max_number_of_training_jobs_; -} -inline void HPOJob::set_max_number_of_training_jobs(::google::protobuf::int64 value) { - - max_number_of_training_jobs_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs) -} - -// int64 max_parallel_training_jobs = 3; -inline void HPOJob::clear_max_parallel_training_jobs() { - max_parallel_training_jobs_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 HPOJob::max_parallel_training_jobs() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs) - return max_parallel_training_jobs_; -} -inline void HPOJob::set_max_parallel_training_jobs(::google::protobuf::int64 value) { - - max_parallel_training_jobs_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs) -} - -// ------------------------------------------------------------------- - -// HPOJobConfig +// HyperparameterTuningSpecification // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; -inline bool HPOJobConfig::has_hyperparameter_ranges() const { +inline bool HyperparameterTuningSpecification::has_hyperparameter_ranges() const { return this != internal_default_instance() && hyperparameter_ranges_ != nullptr; } -inline const ::flyteidl::plugins::sagemaker::ParameterRanges& HPOJobConfig::hyperparameter_ranges() const { +inline const ::flyteidl::plugins::sagemaker::ParameterRanges& HyperparameterTuningSpecification::hyperparameter_ranges() const { const ::flyteidl::plugins::sagemaker::ParameterRanges* p = hyperparameter_ranges_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.hyperparameter_ranges) return p != nullptr ? *p : *reinterpret_cast( &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_); } -inline ::flyteidl::plugins::sagemaker::ParameterRanges* HPOJobConfig::release_hyperparameter_ranges() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) +inline ::flyteidl::plugins::sagemaker::ParameterRanges* HyperparameterTuningSpecification::release_hyperparameter_ranges() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.hyperparameter_ranges) ::flyteidl::plugins::sagemaker::ParameterRanges* temp = hyperparameter_ranges_; hyperparameter_ranges_ = nullptr; return temp; } -inline ::flyteidl::plugins::sagemaker::ParameterRanges* HPOJobConfig::mutable_hyperparameter_ranges() { +inline ::flyteidl::plugins::sagemaker::ParameterRanges* HyperparameterTuningSpecification::mutable_hyperparameter_ranges() { if (hyperparameter_ranges_ == nullptr) { auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(GetArenaNoVirtual()); hyperparameter_ranges_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.hyperparameter_ranges) return hyperparameter_ranges_; } -inline void HPOJobConfig::set_allocated_hyperparameter_ranges(::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges) { +inline void HyperparameterTuningSpecification::set_allocated_hyperparameter_ranges(::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete reinterpret_cast< ::google::protobuf::MessageLite*>(hyperparameter_ranges_); @@ -814,56 +814,56 @@ inline void HPOJobConfig::set_allocated_hyperparameter_ranges(::flyteidl::plugin } hyperparameter_ranges_ = hyperparameter_ranges; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.hyperparameter_ranges) } -// .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; -inline void HPOJobConfig::clear_tuning_strategy() { +// .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; +inline void HyperparameterTuningSpecification::clear_tuning_strategy() { tuning_strategy_ = 0; } -inline ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy HPOJobConfig::tuning_strategy() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy) - return static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy >(tuning_strategy_); +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification::tuning_strategy() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_strategy) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy >(tuning_strategy_); } -inline void HPOJobConfig::set_tuning_strategy(::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy value) { +inline void HyperparameterTuningSpecification::set_tuning_strategy(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy value) { tuning_strategy_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_strategy) } // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; -inline bool HPOJobConfig::has_tuning_objective() const { +inline bool HyperparameterTuningSpecification::has_tuning_objective() const { return this != internal_default_instance() && tuning_objective_ != nullptr; } -inline void HPOJobConfig::clear_tuning_objective() { +inline void HyperparameterTuningSpecification::clear_tuning_objective() { if (GetArenaNoVirtual() == nullptr && tuning_objective_ != nullptr) { delete tuning_objective_; } tuning_objective_ = nullptr; } -inline const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& HPOJobConfig::tuning_objective() const { +inline const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& HyperparameterTuningSpecification::tuning_objective() const { const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* p = tuning_objective_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_objective) return p != nullptr ? *p : *reinterpret_cast( &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_); } -inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HPOJobConfig::release_tuning_objective() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HyperparameterTuningSpecification::release_tuning_objective() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_objective) ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* temp = tuning_objective_; tuning_objective_ = nullptr; return temp; } -inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HPOJobConfig::mutable_tuning_objective() { +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HyperparameterTuningSpecification::mutable_tuning_objective() { if (tuning_objective_ == nullptr) { auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(GetArenaNoVirtual()); tuning_objective_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_objective) return tuning_objective_; } -inline void HPOJobConfig::set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective) { +inline void HyperparameterTuningSpecification::set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete tuning_objective_; @@ -879,21 +879,21 @@ inline void HPOJobConfig::set_allocated_tuning_objective(::flyteidl::plugins::sa } tuning_objective_ = tuning_objective; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective) + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_objective) } -// .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; -inline void HPOJobConfig::clear_training_job_early_stopping_type() { +// .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; +inline void HyperparameterTuningSpecification::clear_training_job_early_stopping_type() { training_job_early_stopping_type_ = 0; } -inline ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType HPOJobConfig::training_job_early_stopping_type() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type) - return static_cast< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType >(training_job_early_stopping_type_); +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification::training_job_early_stopping_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.training_job_early_stopping_type) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType >(training_job_early_stopping_type_); } -inline void HPOJobConfig::set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType value) { +inline void HyperparameterTuningSpecification::set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType value) { training_job_early_stopping_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type) + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.training_job_early_stopping_type) } #ifdef __GNUC__ @@ -918,15 +918,15 @@ template <> inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType>() { return ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(); } -template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy> : ::std::true_type {}; +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy>() { - return ::flyteidl::plugins::sagemaker::HPOJobConfig_HyperparameterTuningStrategy_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy>() { + return ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy_descriptor(); } -template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType> : ::std::true_type {}; +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType>() { - return ::flyteidl::plugins::sagemaker::HPOJobConfig_TrainingJobEarlyStoppingType_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType>() { + return ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_descriptor(); } } // namespace protobuf diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc index d12672edc..b34f8fd65 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc @@ -213,7 +213,7 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5 "idl.plugins.sagemaker.AlgorithmSpecifica" "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt" "eidl.plugins.sagemaker.TrainingJobConfig" - "\022\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004" + "\022\025\n\rinterruptible\030\003 \001(\010*\037\n\tInputMode\022\010\n\004" "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS" "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl" "yteidl/gen/pb-go/flyteidl/pluginsb\006proto" @@ -1925,9 +1925,9 @@ const char* TrainingJob::_InternalParse(const char* begin, const char* end, void {parser_till_end, object}, ptr - size, ptr)); break; } - // bool interruptible = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + // bool interruptible = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; msg->set_interruptible(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; @@ -1984,9 +1984,9 @@ bool TrainingJob::MergePartialFromCodedStream( break; } - // bool interruptible = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + // bool interruptible = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -2036,9 +2036,9 @@ void TrainingJob::SerializeWithCachedSizes( 2, HasBitSetters::training_job_config(this), output); } - // bool interruptible = 4; + // bool interruptible = 3; if (this->interruptible() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->interruptible(), output); + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->interruptible(), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -2068,9 +2068,9 @@ ::google::protobuf::uint8* TrainingJob::InternalSerializeWithCachedSizesToArray( 2, HasBitSetters::training_job_config(this), target); } - // bool interruptible = 4; + // bool interruptible = 3; if (this->interruptible() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->interruptible(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->interruptible(), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -2108,7 +2108,7 @@ size_t TrainingJob::ByteSizeLong() const { *training_job_config_); } - // bool interruptible = 4; + // bool interruptible = 3; if (this->interruptible() != 0) { total_size += 1 + 1; } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h index 649108bd6..d41e5797c 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h @@ -777,9 +777,9 @@ class TrainingJob final : ::flyteidl::plugins::sagemaker::TrainingJobConfig* mutable_training_job_config(); void set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config); - // bool interruptible = 4; + // bool interruptible = 3; void clear_interruptible(); - static const int kInterruptibleFieldNumber = 4; + static const int kInterruptibleFieldNumber = 3; bool interruptible() const; void set_interruptible(bool value); @@ -1249,7 +1249,7 @@ inline void TrainingJob::set_allocated_training_job_config(::flyteidl::plugins:: // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) } -// bool interruptible = 4; +// bool interruptible = 3; inline void TrainingJob::clear_interruptible() { interruptible_ = false; } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go index 60dd866e1..f3d171e6e 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go @@ -42,72 +42,138 @@ func (x HyperparameterTuningObjective_HyperparameterTuningObjectiveType) String( } func (HyperparameterTuningObjective_HyperparameterTuningObjectiveType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{0, 0} + return fileDescriptor_50903433b4c088ac, []int{1, 0} } -type HPOJobConfig_HyperparameterTuningStrategy int32 +type HyperparameterTuningSpecification_HyperparameterTuningStrategy int32 const ( - HPOJobConfig_BAYESIAN HPOJobConfig_HyperparameterTuningStrategy = 0 - HPOJobConfig_RANDOM HPOJobConfig_HyperparameterTuningStrategy = 1 + HyperparameterTuningSpecification_BAYESIAN HyperparameterTuningSpecification_HyperparameterTuningStrategy = 0 + HyperparameterTuningSpecification_RANDOM HyperparameterTuningSpecification_HyperparameterTuningStrategy = 1 ) -var HPOJobConfig_HyperparameterTuningStrategy_name = map[int32]string{ +var HyperparameterTuningSpecification_HyperparameterTuningStrategy_name = map[int32]string{ 0: "BAYESIAN", 1: "RANDOM", } -var HPOJobConfig_HyperparameterTuningStrategy_value = map[string]int32{ +var HyperparameterTuningSpecification_HyperparameterTuningStrategy_value = map[string]int32{ "BAYESIAN": 0, "RANDOM": 1, } -func (x HPOJobConfig_HyperparameterTuningStrategy) String() string { - return proto.EnumName(HPOJobConfig_HyperparameterTuningStrategy_name, int32(x)) +func (x HyperparameterTuningSpecification_HyperparameterTuningStrategy) String() string { + return proto.EnumName(HyperparameterTuningSpecification_HyperparameterTuningStrategy_name, int32(x)) } -func (HPOJobConfig_HyperparameterTuningStrategy) EnumDescriptor() ([]byte, []int) { +func (HyperparameterTuningSpecification_HyperparameterTuningStrategy) EnumDescriptor() ([]byte, []int) { return fileDescriptor_50903433b4c088ac, []int{2, 0} } -type HPOJobConfig_TrainingJobEarlyStoppingType int32 +// When the training jobs launched by the hyperparameter tuning job are not improving significantly, +// a hyperparameter tuning job can be stopping early. +// Note that there's only a subset of built-in algorithms that supports early stopping. +// see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html +type HyperparameterTuningSpecification_TrainingJobEarlyStoppingType int32 const ( - HPOJobConfig_OFF HPOJobConfig_TrainingJobEarlyStoppingType = 0 - HPOJobConfig_AUTO HPOJobConfig_TrainingJobEarlyStoppingType = 1 + HyperparameterTuningSpecification_OFF HyperparameterTuningSpecification_TrainingJobEarlyStoppingType = 0 + HyperparameterTuningSpecification_AUTO HyperparameterTuningSpecification_TrainingJobEarlyStoppingType = 1 ) -var HPOJobConfig_TrainingJobEarlyStoppingType_name = map[int32]string{ +var HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_name = map[int32]string{ 0: "OFF", 1: "AUTO", } -var HPOJobConfig_TrainingJobEarlyStoppingType_value = map[string]int32{ +var HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_value = map[string]int32{ "OFF": 0, "AUTO": 1, } -func (x HPOJobConfig_TrainingJobEarlyStoppingType) String() string { - return proto.EnumName(HPOJobConfig_TrainingJobEarlyStoppingType_name, int32(x)) +func (x HyperparameterTuningSpecification_TrainingJobEarlyStoppingType) String() string { + return proto.EnumName(HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_name, int32(x)) } -func (HPOJobConfig_TrainingJobEarlyStoppingType) EnumDescriptor() ([]byte, []int) { +func (HyperparameterTuningSpecification_TrainingJobEarlyStoppingType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_50903433b4c088ac, []int{2, 1} } +// The hyperparameter tuning job +type HyperparameterTuningJob struct { + // The underlying training job that the hyperparameter tuning job will launch during the process + TrainingJob *TrainingJob `protobuf:"bytes,1,opt,name=training_job,json=trainingJob,proto3" json:"training_job,omitempty"` + // The maximum number of training jobs that an hpo job can launch. For resource limit purpose. + MaxNumberOfTrainingJobs int64 `protobuf:"varint,2,opt,name=max_number_of_training_jobs,json=maxNumberOfTrainingJobs,proto3" json:"max_number_of_training_jobs,omitempty"` + // The maximum number of concurrent training job that an hpo job can launch + MaxParallelTrainingJobs int64 `protobuf:"varint,3,opt,name=max_parallel_training_jobs,json=maxParallelTrainingJobs,proto3" json:"max_parallel_training_jobs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HyperparameterTuningJob) Reset() { *m = HyperparameterTuningJob{} } +func (m *HyperparameterTuningJob) String() string { return proto.CompactTextString(m) } +func (*HyperparameterTuningJob) ProtoMessage() {} +func (*HyperparameterTuningJob) Descriptor() ([]byte, []int) { + return fileDescriptor_50903433b4c088ac, []int{0} +} + +func (m *HyperparameterTuningJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HyperparameterTuningJob.Unmarshal(m, b) +} +func (m *HyperparameterTuningJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HyperparameterTuningJob.Marshal(b, m, deterministic) +} +func (m *HyperparameterTuningJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_HyperparameterTuningJob.Merge(m, src) +} +func (m *HyperparameterTuningJob) XXX_Size() int { + return xxx_messageInfo_HyperparameterTuningJob.Size(m) +} +func (m *HyperparameterTuningJob) XXX_DiscardUnknown() { + xxx_messageInfo_HyperparameterTuningJob.DiscardUnknown(m) +} + +var xxx_messageInfo_HyperparameterTuningJob proto.InternalMessageInfo + +func (m *HyperparameterTuningJob) GetTrainingJob() *TrainingJob { + if m != nil { + return m.TrainingJob + } + return nil +} + +func (m *HyperparameterTuningJob) GetMaxNumberOfTrainingJobs() int64 { + if m != nil { + return m.MaxNumberOfTrainingJobs + } + return 0 +} + +func (m *HyperparameterTuningJob) GetMaxParallelTrainingJobs() int64 { + if m != nil { + return m.MaxParallelTrainingJobs + } + return 0 +} + +// The objective of the hyperparameter tuning type HyperparameterTuningObjective struct { - ObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType `protobuf:"varint,1,opt,name=objective_type,json=objectiveType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningObjective_HyperparameterTuningObjectiveType" json:"objective_type,omitempty"` - MetricName string `protobuf:"bytes,2,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType `protobuf:"varint,1,opt,name=objective_type,json=objectiveType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningObjective_HyperparameterTuningObjectiveType" json:"objective_type,omitempty"` + // The target metric name, which is the user-defined name of the metric specified in the + // training job's algorithm specification + MetricName string `protobuf:"bytes,2,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *HyperparameterTuningObjective) Reset() { *m = HyperparameterTuningObjective{} } func (m *HyperparameterTuningObjective) String() string { return proto.CompactTextString(m) } func (*HyperparameterTuningObjective) ProtoMessage() {} func (*HyperparameterTuningObjective) Descriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{0} + return fileDescriptor_50903433b4c088ac, []int{1} } func (m *HyperparameterTuningObjective) XXX_Unmarshal(b []byte) error { @@ -142,131 +208,77 @@ func (m *HyperparameterTuningObjective) GetMetricName() string { return "" } -type HPOJob struct { - TrainingJob *TrainingJob `protobuf:"bytes,1,opt,name=training_job,json=trainingJob,proto3" json:"training_job,omitempty"` - MaxNumberOfTrainingJobs int64 `protobuf:"varint,2,opt,name=max_number_of_training_jobs,json=maxNumberOfTrainingJobs,proto3" json:"max_number_of_training_jobs,omitempty"` - MaxParallelTrainingJobs int64 `protobuf:"varint,3,opt,name=max_parallel_training_jobs,json=maxParallelTrainingJobs,proto3" json:"max_parallel_training_jobs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HPOJob) Reset() { *m = HPOJob{} } -func (m *HPOJob) String() string { return proto.CompactTextString(m) } -func (*HPOJob) ProtoMessage() {} -func (*HPOJob) Descriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{1} -} - -func (m *HPOJob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HPOJob.Unmarshal(m, b) -} -func (m *HPOJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HPOJob.Marshal(b, m, deterministic) -} -func (m *HPOJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_HPOJob.Merge(m, src) -} -func (m *HPOJob) XXX_Size() int { - return xxx_messageInfo_HPOJob.Size(m) -} -func (m *HPOJob) XXX_DiscardUnknown() { - xxx_messageInfo_HPOJob.DiscardUnknown(m) -} - -var xxx_messageInfo_HPOJob proto.InternalMessageInfo - -func (m *HPOJob) GetTrainingJob() *TrainingJob { - if m != nil { - return m.TrainingJob - } - return nil -} - -func (m *HPOJob) GetMaxNumberOfTrainingJobs() int64 { - if m != nil { - return m.MaxNumberOfTrainingJobs - } - return 0 -} - -func (m *HPOJob) GetMaxParallelTrainingJobs() int64 { - if m != nil { - return m.MaxParallelTrainingJobs - } - return 0 -} - -type HPOJobConfig struct { - HyperparameterRanges *ParameterRanges `protobuf:"bytes,1,opt,name=hyperparameter_ranges,json=hyperparameterRanges,proto3" json:"hyperparameter_ranges,omitempty"` - TuningStrategy HPOJobConfig_HyperparameterTuningStrategy `protobuf:"varint,2,opt,name=tuning_strategy,json=tuningStrategy,proto3,enum=flyteidl.plugins.sagemaker.HPOJobConfig_HyperparameterTuningStrategy" json:"tuning_strategy,omitempty"` - TuningObjective *HyperparameterTuningObjective `protobuf:"bytes,3,opt,name=tuning_objective,json=tuningObjective,proto3" json:"tuning_objective,omitempty"` - TrainingJobEarlyStoppingType HPOJobConfig_TrainingJobEarlyStoppingType `protobuf:"varint,4,opt,name=training_job_early_stopping_type,json=trainingJobEarlyStoppingType,proto3,enum=flyteidl.plugins.sagemaker.HPOJobConfig_TrainingJobEarlyStoppingType" json:"training_job_early_stopping_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// The specification of the hyperparameter tuning process +type HyperparameterTuningSpecification struct { + HyperparameterRanges *ParameterRanges `protobuf:"bytes,1,opt,name=hyperparameter_ranges,json=hyperparameterRanges,proto3" json:"hyperparameter_ranges,omitempty"` + TuningStrategy HyperparameterTuningSpecification_HyperparameterTuningStrategy `protobuf:"varint,2,opt,name=tuning_strategy,json=tuningStrategy,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningSpecification_HyperparameterTuningStrategy" json:"tuning_strategy,omitempty"` + TuningObjective *HyperparameterTuningObjective `protobuf:"bytes,3,opt,name=tuning_objective,json=tuningObjective,proto3" json:"tuning_objective,omitempty"` + TrainingJobEarlyStoppingType HyperparameterTuningSpecification_TrainingJobEarlyStoppingType `protobuf:"varint,4,opt,name=training_job_early_stopping_type,json=trainingJobEarlyStoppingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningSpecification_TrainingJobEarlyStoppingType" json:"training_job_early_stopping_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *HPOJobConfig) Reset() { *m = HPOJobConfig{} } -func (m *HPOJobConfig) String() string { return proto.CompactTextString(m) } -func (*HPOJobConfig) ProtoMessage() {} -func (*HPOJobConfig) Descriptor() ([]byte, []int) { +func (m *HyperparameterTuningSpecification) Reset() { *m = HyperparameterTuningSpecification{} } +func (m *HyperparameterTuningSpecification) String() string { return proto.CompactTextString(m) } +func (*HyperparameterTuningSpecification) ProtoMessage() {} +func (*HyperparameterTuningSpecification) Descriptor() ([]byte, []int) { return fileDescriptor_50903433b4c088ac, []int{2} } -func (m *HPOJobConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HPOJobConfig.Unmarshal(m, b) +func (m *HyperparameterTuningSpecification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HyperparameterTuningSpecification.Unmarshal(m, b) } -func (m *HPOJobConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HPOJobConfig.Marshal(b, m, deterministic) +func (m *HyperparameterTuningSpecification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HyperparameterTuningSpecification.Marshal(b, m, deterministic) } -func (m *HPOJobConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_HPOJobConfig.Merge(m, src) +func (m *HyperparameterTuningSpecification) XXX_Merge(src proto.Message) { + xxx_messageInfo_HyperparameterTuningSpecification.Merge(m, src) } -func (m *HPOJobConfig) XXX_Size() int { - return xxx_messageInfo_HPOJobConfig.Size(m) +func (m *HyperparameterTuningSpecification) XXX_Size() int { + return xxx_messageInfo_HyperparameterTuningSpecification.Size(m) } -func (m *HPOJobConfig) XXX_DiscardUnknown() { - xxx_messageInfo_HPOJobConfig.DiscardUnknown(m) +func (m *HyperparameterTuningSpecification) XXX_DiscardUnknown() { + xxx_messageInfo_HyperparameterTuningSpecification.DiscardUnknown(m) } -var xxx_messageInfo_HPOJobConfig proto.InternalMessageInfo +var xxx_messageInfo_HyperparameterTuningSpecification proto.InternalMessageInfo -func (m *HPOJobConfig) GetHyperparameterRanges() *ParameterRanges { +func (m *HyperparameterTuningSpecification) GetHyperparameterRanges() *ParameterRanges { if m != nil { return m.HyperparameterRanges } return nil } -func (m *HPOJobConfig) GetTuningStrategy() HPOJobConfig_HyperparameterTuningStrategy { +func (m *HyperparameterTuningSpecification) GetTuningStrategy() HyperparameterTuningSpecification_HyperparameterTuningStrategy { if m != nil { return m.TuningStrategy } - return HPOJobConfig_BAYESIAN + return HyperparameterTuningSpecification_BAYESIAN } -func (m *HPOJobConfig) GetTuningObjective() *HyperparameterTuningObjective { +func (m *HyperparameterTuningSpecification) GetTuningObjective() *HyperparameterTuningObjective { if m != nil { return m.TuningObjective } return nil } -func (m *HPOJobConfig) GetTrainingJobEarlyStoppingType() HPOJobConfig_TrainingJobEarlyStoppingType { +func (m *HyperparameterTuningSpecification) GetTrainingJobEarlyStoppingType() HyperparameterTuningSpecification_TrainingJobEarlyStoppingType { if m != nil { return m.TrainingJobEarlyStoppingType } - return HPOJobConfig_OFF + return HyperparameterTuningSpecification_OFF } func init() { proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningObjective_HyperparameterTuningObjectiveType", HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name, HyperparameterTuningObjective_HyperparameterTuningObjectiveType_value) - proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobConfig_HyperparameterTuningStrategy", HPOJobConfig_HyperparameterTuningStrategy_name, HPOJobConfig_HyperparameterTuningStrategy_value) - proto.RegisterEnum("flyteidl.plugins.sagemaker.HPOJobConfig_TrainingJobEarlyStoppingType", HPOJobConfig_TrainingJobEarlyStoppingType_name, HPOJobConfig_TrainingJobEarlyStoppingType_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningSpecification_HyperparameterTuningStrategy", HyperparameterTuningSpecification_HyperparameterTuningStrategy_name, HyperparameterTuningSpecification_HyperparameterTuningStrategy_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningSpecification_TrainingJobEarlyStoppingType", HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_name, HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_value) + proto.RegisterType((*HyperparameterTuningJob)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningJob") proto.RegisterType((*HyperparameterTuningObjective)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningObjective") - proto.RegisterType((*HPOJob)(nil), "flyteidl.plugins.sagemaker.HPOJob") - proto.RegisterType((*HPOJobConfig)(nil), "flyteidl.plugins.sagemaker.HPOJobConfig") + proto.RegisterType((*HyperparameterTuningSpecification)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningSpecification") } func init() { @@ -274,39 +286,39 @@ func init() { } var fileDescriptor_50903433b4c088ac = []byte{ - // 539 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x8f, 0xd2, 0x40, - 0x18, 0xa5, 0x0b, 0xc1, 0xf5, 0x03, 0xb1, 0x99, 0x68, 0xdc, 0x20, 0x46, 0xec, 0x45, 0x12, 0xb3, - 0x6d, 0x96, 0x8d, 0x89, 0x46, 0x13, 0xc3, 0x2a, 0x9b, 0x85, 0x04, 0x4a, 0x0a, 0x26, 0xba, 0x1e, - 0xea, 0x94, 0x1d, 0x4a, 0xd7, 0xb6, 0xd3, 0x4c, 0x07, 0xb3, 0xbd, 0x7a, 0xf0, 0xe6, 0xaf, 0xf2, - 0x07, 0xf8, 0x97, 0x4c, 0x87, 0x52, 0xca, 0x46, 0xc7, 0xb8, 0xc7, 0x6f, 0xfa, 0xde, 0x9b, 0x79, - 0xaf, 0x6f, 0x06, 0x3a, 0x0b, 0x3f, 0xe1, 0xc4, 0xbb, 0xf0, 0x8d, 0xc8, 0x5f, 0xb9, 0x5e, 0x18, - 0x1b, 0x31, 0x76, 0x49, 0x80, 0xbf, 0x10, 0x66, 0x2c, 0x23, 0x6a, 0x5f, 0x52, 0x47, 0x8f, 0x18, - 0xe5, 0x14, 0x35, 0x37, 0x48, 0x3d, 0x43, 0xea, 0x39, 0xb2, 0x79, 0x24, 0x51, 0x89, 0x30, 0xc3, - 0x01, 0xe1, 0x84, 0xd9, 0x0c, 0x87, 0x2e, 0x89, 0xd7, 0x72, 0xcd, 0x43, 0x09, 0x85, 0x33, 0xec, - 0x85, 0x5e, 0xe8, 0x6e, 0x77, 0xd7, 0xbe, 0xef, 0xc1, 0xa3, 0xb3, 0x24, 0x22, 0x2c, 0x97, 0x9b, - 0xad, 0x52, 0x88, 0xe9, 0x5c, 0x92, 0x39, 0xf7, 0xbe, 0x12, 0xf4, 0x4d, 0x81, 0x06, 0xdd, 0x4c, - 0x36, 0x4f, 0x22, 0x72, 0xa0, 0xb4, 0x95, 0x4e, 0xa3, 0xfb, 0x49, 0xff, 0xfb, 0xc9, 0x75, 0xa9, - 0xa6, 0xfc, 0xeb, 0x2c, 0x89, 0x88, 0x75, 0x87, 0x16, 0x47, 0xf4, 0x18, 0x6a, 0x01, 0xe1, 0xcc, - 0x9b, 0xdb, 0x21, 0x0e, 0xc8, 0xc1, 0x5e, 0x5b, 0xe9, 0xdc, 0xb6, 0x60, 0xbd, 0x34, 0xc6, 0x01, - 0xd1, 0xde, 0xc0, 0x93, 0x7f, 0x8a, 0xa2, 0x3a, 0xec, 0x8f, 0x06, 0xe3, 0xc1, 0x68, 0x70, 0xde, - 0x57, 0x4b, 0x62, 0xea, 0x7d, 0x58, 0x4f, 0x8a, 0xf6, 0x4b, 0x81, 0xea, 0xd9, 0xc4, 0x1c, 0x52, - 0x07, 0x0d, 0xa1, 0x5e, 0x4c, 0x4a, 0xd8, 0xad, 0x75, 0x9f, 0xca, 0xec, 0xce, 0x32, 0xfc, 0x90, - 0x3a, 0x56, 0x8d, 0x6f, 0x07, 0xf4, 0x1a, 0x1e, 0x06, 0xf8, 0xca, 0x0e, 0x57, 0x81, 0x43, 0x98, - 0x4d, 0x17, 0x76, 0x51, 0x39, 0x16, 0x46, 0xca, 0xd6, 0x83, 0x00, 0x5f, 0x8d, 0x05, 0xc2, 0x5c, - 0x14, 0x94, 0x62, 0xf4, 0x0a, 0x9a, 0x29, 0x3b, 0x35, 0xe5, 0xfb, 0xc4, 0xbf, 0x46, 0x2e, 0xe7, - 0xe4, 0x49, 0x06, 0x28, 0x92, 0xb5, 0x9f, 0x15, 0xa8, 0xaf, 0x1d, 0xbd, 0xa5, 0xe1, 0xc2, 0x73, - 0xd1, 0x67, 0xb8, 0xbf, 0xdc, 0xc9, 0x28, 0x6b, 0x4e, 0x66, 0xf0, 0x99, 0xcc, 0xe0, 0x64, 0xc3, - 0xb1, 0x04, 0xc5, 0xba, 0xb7, 0xab, 0xb4, 0x5e, 0x45, 0x21, 0xdc, 0xe5, 0x22, 0x77, 0x3b, 0xe6, - 0x0c, 0x73, 0xe2, 0x26, 0xc2, 0x61, 0xa3, 0xdb, 0x97, 0x76, 0xa5, 0x70, 0xc8, 0x3f, 0x56, 0x63, - 0x9a, 0x89, 0x59, 0x0d, 0xbe, 0x33, 0xa3, 0x0b, 0x50, 0xb3, 0xfd, 0xf2, 0xba, 0x88, 0x54, 0x6a, - 0xdd, 0x97, 0x37, 0x2e, 0xa7, 0x95, 0x59, 0xd8, 0xde, 0x80, 0x1f, 0x0a, 0xb4, 0x8b, 0xc9, 0xdb, - 0x04, 0x33, 0x3f, 0xb1, 0x63, 0x4e, 0xa3, 0x28, 0x5d, 0x12, 0x77, 0xa2, 0xf2, 0x9f, 0x3e, 0x0b, - 0xbf, 0xaa, 0x9f, 0xca, 0x4d, 0x33, 0x35, 0xd1, 0xfe, 0x16, 0x97, 0x7c, 0xd5, 0x5e, 0x40, 0x4b, - 0x96, 0x52, 0x5a, 0xec, 0x93, 0xde, 0xc7, 0xfe, 0x74, 0xd0, 0x1b, 0xab, 0x25, 0x04, 0x50, 0xb5, - 0x7a, 0xe3, 0x77, 0xe6, 0x48, 0x55, 0xb4, 0x23, 0x68, 0xc9, 0xf6, 0x45, 0xb7, 0xa0, 0x6c, 0x9e, - 0x9e, 0xaa, 0x25, 0xb4, 0x0f, 0x95, 0xde, 0xfb, 0x99, 0xa9, 0x2a, 0x27, 0xcf, 0xcf, 0x8f, 0x5d, - 0x8f, 0x2f, 0x57, 0x8e, 0x3e, 0xa7, 0x81, 0xe1, 0x27, 0x0b, 0x6e, 0xe4, 0x2f, 0x8c, 0x4b, 0x42, - 0x23, 0x72, 0x0e, 0x5d, 0x6a, 0x5c, 0x7f, 0x74, 0x9c, 0xaa, 0x78, 0x5e, 0x8e, 0x7f, 0x07, 0x00, - 0x00, 0xff, 0xff, 0xc8, 0x08, 0xb2, 0xe9, 0x08, 0x05, 0x00, 0x00, + // 543 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x61, 0x6b, 0xd3, 0x40, + 0x18, 0x5e, 0xd6, 0x39, 0xe7, 0xdb, 0x59, 0xc3, 0xa1, 0x6c, 0xd4, 0x8a, 0x35, 0x5f, 0x2c, 0xc8, + 0x12, 0xd6, 0x21, 0x28, 0x0a, 0xd2, 0x61, 0x87, 0x2d, 0xb4, 0x1d, 0x69, 0x05, 0xad, 0x1f, 0xe2, + 0xa5, 0xbb, 0xa6, 0x37, 0x93, 0xdc, 0x71, 0xb9, 0xca, 0xf2, 0xd5, 0x81, 0x3f, 0xc4, 0x5f, 0xe6, + 0x4f, 0x91, 0x5c, 0xd3, 0x34, 0x1d, 0x35, 0xa2, 0xf8, 0xf1, 0xbd, 0x7b, 0x9e, 0xe7, 0x7d, 0x9f, + 0xf7, 0x1e, 0x0e, 0x1a, 0x53, 0x3f, 0x96, 0x84, 0x5e, 0xf8, 0x16, 0xf7, 0xe7, 0x1e, 0x0d, 0x23, + 0x2b, 0xc2, 0x1e, 0x09, 0xf0, 0x17, 0x22, 0xac, 0x19, 0x67, 0xce, 0x25, 0x73, 0x4d, 0x2e, 0x98, + 0x64, 0xa8, 0xba, 0x44, 0x9a, 0x29, 0xd2, 0xcc, 0x90, 0xd5, 0xe3, 0x02, 0x15, 0x8e, 0x05, 0x0e, + 0x88, 0x24, 0xc2, 0x11, 0x38, 0xf4, 0x48, 0xb4, 0x90, 0xab, 0x1e, 0x15, 0x50, 0xa4, 0xc0, 0x34, + 0xa4, 0xa1, 0xb7, 0xea, 0x6e, 0xfc, 0xd4, 0xe0, 0xe0, 0x5d, 0xcc, 0x89, 0xc8, 0xe4, 0x46, 0xf3, + 0x04, 0xd2, 0x65, 0x2e, 0xea, 0xc2, 0x7e, 0x9e, 0x71, 0xa8, 0xd5, 0xb5, 0x46, 0xb9, 0xf9, 0xd4, + 0xfc, 0xfd, 0xc0, 0xe6, 0x28, 0xc5, 0x77, 0x99, 0x6b, 0x97, 0xe5, 0xaa, 0x40, 0xaf, 0xe1, 0x61, + 0x80, 0xaf, 0x9c, 0x70, 0x1e, 0xb8, 0x44, 0x38, 0x6c, 0xea, 0xe4, 0x95, 0xa3, 0xc3, 0xed, 0xba, + 0xd6, 0x28, 0xd9, 0x07, 0x01, 0xbe, 0xea, 0x2b, 0xc4, 0x60, 0x9a, 0x53, 0x8a, 0xd0, 0x2b, 0xa8, + 0x26, 0xec, 0x64, 0x46, 0xdf, 0x27, 0xfe, 0x0d, 0x72, 0x29, 0x23, 0x9f, 0xa7, 0x80, 0x3c, 0xd9, + 0xf8, 0xbe, 0x0d, 0x8f, 0x36, 0x59, 0x1c, 0xb8, 0x97, 0x64, 0x22, 0xe9, 0x57, 0x82, 0xbe, 0x69, + 0x50, 0x61, 0xcb, 0xca, 0x91, 0x31, 0x27, 0xca, 0x6b, 0xa5, 0xf9, 0xa9, 0xc8, 0x6b, 0xa1, 0x66, + 0xf1, 0xed, 0x28, 0xe6, 0xc4, 0xbe, 0xcb, 0xf2, 0x25, 0x7a, 0x0c, 0xe5, 0x80, 0x48, 0x41, 0x27, + 0x4e, 0x88, 0x03, 0xa2, 0x36, 0x72, 0xc7, 0x86, 0xc5, 0x51, 0x1f, 0x07, 0xc4, 0x78, 0x03, 0x4f, + 0xfe, 0x28, 0x8a, 0xf6, 0x61, 0xaf, 0xd7, 0xe9, 0x77, 0x7a, 0x9d, 0x71, 0x5b, 0xdf, 0x52, 0x55, + 0xeb, 0xc3, 0xa2, 0xd2, 0x8c, 0xeb, 0x5b, 0x9b, 0x15, 0x86, 0x9c, 0x4c, 0xe8, 0x94, 0x4e, 0xb0, + 0xa4, 0x2c, 0x44, 0x9f, 0xe1, 0xc1, 0x6c, 0x0d, 0x94, 0xe6, 0x2b, 0x7d, 0xfe, 0x67, 0x45, 0x2b, + 0x39, 0x5f, 0x72, 0x6c, 0x45, 0xb1, 0xef, 0xaf, 0x2b, 0x2d, 0x4e, 0xd1, 0xb5, 0x06, 0xf7, 0xa4, + 0xea, 0xec, 0x44, 0x52, 0x60, 0x49, 0xbc, 0x58, 0xd9, 0xad, 0x34, 0xc7, 0x7f, 0xbb, 0xef, 0xb5, + 0xd1, 0x37, 0x23, 0xd2, 0x0e, 0x76, 0x45, 0xae, 0xd5, 0xe8, 0x02, 0xf4, 0x74, 0x88, 0xec, 0x1d, + 0x54, 0x92, 0xca, 0xcd, 0x97, 0xff, 0xfc, 0xea, 0x76, 0xea, 0x6b, 0x15, 0xad, 0x1f, 0x1a, 0xd4, + 0xf3, 0x69, 0x75, 0x08, 0x16, 0x7e, 0xec, 0x44, 0x92, 0x71, 0x9e, 0x1c, 0xa9, 0xb0, 0xed, 0xfc, + 0x0f, 0xf3, 0xb9, 0xcc, 0xb7, 0x93, 0x1e, 0xc3, 0xb4, 0x85, 0xca, 0x5a, 0x4d, 0x16, 0xdc, 0x1a, + 0x2f, 0xa0, 0x56, 0xb4, 0xba, 0x24, 0x46, 0xa7, 0xad, 0x8f, 0xed, 0x61, 0xa7, 0xd5, 0xd7, 0xb7, + 0x10, 0xc0, 0xae, 0xdd, 0xea, 0xbf, 0x1d, 0xf4, 0x74, 0xcd, 0x38, 0x86, 0x5a, 0x51, 0x5f, 0x74, + 0x1b, 0x4a, 0x83, 0xb3, 0x33, 0x7d, 0x0b, 0xed, 0xc1, 0x4e, 0xeb, 0xfd, 0x68, 0xa0, 0x6b, 0xa7, + 0xcf, 0xc7, 0x27, 0x1e, 0x95, 0xb3, 0xb9, 0x6b, 0x4e, 0x58, 0x60, 0xf9, 0xf1, 0x54, 0x5a, 0xd9, + 0x97, 0xe5, 0x91, 0xd0, 0xe2, 0xee, 0x91, 0xc7, 0xac, 0x9b, 0xbf, 0x98, 0xbb, 0xab, 0xfe, 0xab, + 0x93, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x2f, 0x19, 0xc5, 0x59, 0x05, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go index 8ceadb5da..656c10109 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go @@ -36,25 +36,34 @@ var ( // define the regex for a UUID once up-front var _hpo_job_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") -// Validate checks the field values on HyperparameterTuningObjective with the -// rules defined in the proto definition for this message. If any rules are +// Validate checks the field values on HyperparameterTuningJob with the rules +// defined in the proto definition for this message. If any rules are // violated, an error is returned. -func (m *HyperparameterTuningObjective) Validate() error { +func (m *HyperparameterTuningJob) Validate() error { if m == nil { return nil } - // no validation rules for ObjectiveType + if v, ok := interface{}(m.GetTrainingJob()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HyperparameterTuningJobValidationError{ + field: "TrainingJob", + reason: "embedded message failed validation", + cause: err, + } + } + } - // no validation rules for MetricName + // no validation rules for MaxNumberOfTrainingJobs + + // no validation rules for MaxParallelTrainingJobs return nil } -// HyperparameterTuningObjectiveValidationError is the validation error -// returned by HyperparameterTuningObjective.Validate if the designated -// constraints aren't met. -type HyperparameterTuningObjectiveValidationError struct { +// HyperparameterTuningJobValidationError is the validation error returned by +// HyperparameterTuningJob.Validate if the designated constraints aren't met. +type HyperparameterTuningJobValidationError struct { field string reason string cause error @@ -62,24 +71,24 @@ type HyperparameterTuningObjectiveValidationError struct { } // Field function returns field value. -func (e HyperparameterTuningObjectiveValidationError) Field() string { return e.field } +func (e HyperparameterTuningJobValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e HyperparameterTuningObjectiveValidationError) Reason() string { return e.reason } +func (e HyperparameterTuningJobValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e HyperparameterTuningObjectiveValidationError) Cause() error { return e.cause } +func (e HyperparameterTuningJobValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e HyperparameterTuningObjectiveValidationError) Key() bool { return e.key } +func (e HyperparameterTuningJobValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e HyperparameterTuningObjectiveValidationError) ErrorName() string { - return "HyperparameterTuningObjectiveValidationError" +func (e HyperparameterTuningJobValidationError) ErrorName() string { + return "HyperparameterTuningJobValidationError" } // Error satisfies the builtin error interface -func (e HyperparameterTuningObjectiveValidationError) Error() string { +func (e HyperparameterTuningJobValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -91,14 +100,14 @@ func (e HyperparameterTuningObjectiveValidationError) Error() string { } return fmt.Sprintf( - "invalid %sHyperparameterTuningObjective.%s: %s%s", + "invalid %sHyperparameterTuningJob.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = HyperparameterTuningObjectiveValidationError{} +var _ error = HyperparameterTuningJobValidationError{} var _ interface { Field() string @@ -106,35 +115,27 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = HyperparameterTuningObjectiveValidationError{} +} = HyperparameterTuningJobValidationError{} -// Validate checks the field values on HPOJob with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *HPOJob) Validate() error { +// Validate checks the field values on HyperparameterTuningObjective with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HyperparameterTuningObjective) Validate() error { if m == nil { return nil } - if v, ok := interface{}(m.GetTrainingJob()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return HPOJobValidationError{ - field: "TrainingJob", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for MaxNumberOfTrainingJobs + // no validation rules for ObjectiveType - // no validation rules for MaxParallelTrainingJobs + // no validation rules for MetricName return nil } -// HPOJobValidationError is the validation error returned by HPOJob.Validate if -// the designated constraints aren't met. -type HPOJobValidationError struct { +// HyperparameterTuningObjectiveValidationError is the validation error +// returned by HyperparameterTuningObjective.Validate if the designated +// constraints aren't met. +type HyperparameterTuningObjectiveValidationError struct { field string reason string cause error @@ -142,22 +143,24 @@ type HPOJobValidationError struct { } // Field function returns field value. -func (e HPOJobValidationError) Field() string { return e.field } +func (e HyperparameterTuningObjectiveValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e HPOJobValidationError) Reason() string { return e.reason } +func (e HyperparameterTuningObjectiveValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e HPOJobValidationError) Cause() error { return e.cause } +func (e HyperparameterTuningObjectiveValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e HPOJobValidationError) Key() bool { return e.key } +func (e HyperparameterTuningObjectiveValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e HPOJobValidationError) ErrorName() string { return "HPOJobValidationError" } +func (e HyperparameterTuningObjectiveValidationError) ErrorName() string { + return "HyperparameterTuningObjectiveValidationError" +} // Error satisfies the builtin error interface -func (e HPOJobValidationError) Error() string { +func (e HyperparameterTuningObjectiveValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -169,14 +172,14 @@ func (e HPOJobValidationError) Error() string { } return fmt.Sprintf( - "invalid %sHPOJob.%s: %s%s", + "invalid %sHyperparameterTuningObjective.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = HPOJobValidationError{} +var _ error = HyperparameterTuningObjectiveValidationError{} var _ interface { Field() string @@ -184,19 +187,19 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = HPOJobValidationError{} +} = HyperparameterTuningObjectiveValidationError{} -// Validate checks the field values on HPOJobConfig with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *HPOJobConfig) Validate() error { +// Validate checks the field values on HyperparameterTuningSpecification with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *HyperparameterTuningSpecification) Validate() error { if m == nil { return nil } if v, ok := interface{}(m.GetHyperparameterRanges()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return HPOJobConfigValidationError{ + return HyperparameterTuningSpecificationValidationError{ field: "HyperparameterRanges", reason: "embedded message failed validation", cause: err, @@ -208,7 +211,7 @@ func (m *HPOJobConfig) Validate() error { if v, ok := interface{}(m.GetTuningObjective()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return HPOJobConfigValidationError{ + return HyperparameterTuningSpecificationValidationError{ field: "TuningObjective", reason: "embedded message failed validation", cause: err, @@ -221,9 +224,10 @@ func (m *HPOJobConfig) Validate() error { return nil } -// HPOJobConfigValidationError is the validation error returned by -// HPOJobConfig.Validate if the designated constraints aren't met. -type HPOJobConfigValidationError struct { +// HyperparameterTuningSpecificationValidationError is the validation error +// returned by HyperparameterTuningSpecification.Validate if the designated +// constraints aren't met. +type HyperparameterTuningSpecificationValidationError struct { field string reason string cause error @@ -231,22 +235,24 @@ type HPOJobConfigValidationError struct { } // Field function returns field value. -func (e HPOJobConfigValidationError) Field() string { return e.field } +func (e HyperparameterTuningSpecificationValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e HPOJobConfigValidationError) Reason() string { return e.reason } +func (e HyperparameterTuningSpecificationValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e HPOJobConfigValidationError) Cause() error { return e.cause } +func (e HyperparameterTuningSpecificationValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e HPOJobConfigValidationError) Key() bool { return e.key } +func (e HyperparameterTuningSpecificationValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e HPOJobConfigValidationError) ErrorName() string { return "HPOJobConfigValidationError" } +func (e HyperparameterTuningSpecificationValidationError) ErrorName() string { + return "HyperparameterTuningSpecificationValidationError" +} // Error satisfies the builtin error interface -func (e HPOJobConfigValidationError) Error() string { +func (e HyperparameterTuningSpecificationValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -258,14 +264,14 @@ func (e HPOJobConfigValidationError) Error() string { } return fmt.Sprintf( - "invalid %sHPOJobConfig.%s: %s%s", + "invalid %sHyperparameterTuningSpecification.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = HPOJobConfigValidationError{} +var _ error = HyperparameterTuningSpecificationValidationError{} var _ interface { Field() string @@ -273,4 +279,4 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = HPOJobConfigValidationError{} +} = HyperparameterTuningSpecificationValidationError{} diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go index 2f37913f8..d620fbf59 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go @@ -20,6 +20,8 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html type HyperparameterScalingType int32 const ( @@ -51,6 +53,8 @@ func (HyperparameterScalingType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_5f31fcc87eba0a70, []int{0} } +// ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing +// users to specify the search space of a floating-point hyperparameter type ContinuousParameterRange struct { MaxValue float64 `protobuf:"fixed64,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` MinValue float64 `protobuf:"fixed64,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` @@ -106,6 +110,8 @@ func (m *ContinuousParameterRange) GetScalingType() HyperparameterScalingType { return HyperparameterScalingType_AUTO } +// IntegerParameterRange refers to a discrete range of hyperparameter values, allowing +// users to specify the search space of an integer hyperparameter type IntegerParameterRange struct { MaxValue int64 `protobuf:"varint,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` MinValue int64 `protobuf:"varint,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` @@ -161,6 +167,8 @@ func (m *IntegerParameterRange) GetScalingType() HyperparameterScalingType { return HyperparameterScalingType_AUTO } +// ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing +// users to specify the search space of a floating-point hyperparameter type CategoricalParameterRange struct { Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -295,6 +303,7 @@ func (*ParameterRangeOneOf) XXX_OneofWrappers() []interface{} { } } +// ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range type ParameterRanges struct { ParameterRangeMap map[string]*ParameterRangeOneOf `protobuf:"bytes,1,rep,name=parameter_range_map,json=parameterRangeMap,proto3" json:"parameter_range_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` XXX_NoUnkeyedLiteral struct{} `json:"-"` diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go index 58c7b9ca6..bf5b85937 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -71,9 +71,16 @@ func (AlgorithmName) EnumDescriptor() ([]byte, []int) { } type AlgorithmSpecification struct { - InputMode InputMode `protobuf:"varint,1,opt,name=input_mode,json=inputMode,proto3,enum=flyteidl.plugins.sagemaker.InputMode" json:"input_mode,omitempty"` - AlgorithmName AlgorithmName `protobuf:"varint,2,opt,name=algorithm_name,json=algorithmName,proto3,enum=flyteidl.plugins.sagemaker.AlgorithmName" json:"algorithm_name,omitempty"` - AlgorithmVersion string `protobuf:"bytes,3,opt,name=algorithm_version,json=algorithmVersion,proto3" json:"algorithm_version,omitempty"` + // The input mode can be either PIPE or FILE + InputMode InputMode `protobuf:"varint,1,opt,name=input_mode,json=inputMode,proto3,enum=flyteidl.plugins.sagemaker.InputMode" json:"input_mode,omitempty"` + // The algorithm name is used for deciding which pre-built image to point to + // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen + AlgorithmName AlgorithmName `protobuf:"varint,2,opt,name=algorithm_name,json=algorithmName,proto3,enum=flyteidl.plugins.sagemaker.AlgorithmName" json:"algorithm_name,omitempty"` + // The algorithm version field is used for deciding which pre-built image to point to + // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen + AlgorithmVersion string `protobuf:"bytes,3,opt,name=algorithm_version,json=algorithmVersion,proto3" json:"algorithm_version,omitempty"` + // A list of metric definitions for SageMaker to evaluate/track on the progress of the training job + // https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html MetricDefinitions []*AlgorithmSpecification_MetricDefinition `protobuf:"bytes,4,rep,name=metric_definitions,json=metricDefinitions,proto3" json:"metric_definitions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -134,7 +141,9 @@ func (m *AlgorithmSpecification) GetMetricDefinitions() []*AlgorithmSpecificatio } type AlgorithmSpecification_MetricDefinition struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // User-defined name of the metric + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics Regex string `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -183,8 +192,12 @@ func (m *AlgorithmSpecification_MetricDefinition) GetRegex() string { } type TrainingJobConfig struct { - InstanceCount int64 `protobuf:"varint,1,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"` - InstanceType string `protobuf:"bytes,2,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` + // The number of ML compute instances to use. For distributed training, provide a value greater than 1. + // This is for multi-node training, not multi-GPU training + InstanceCount int64 `protobuf:"varint,1,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"` + // The ML compute instance type + InstanceType string `protobuf:"bytes,2,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` + // The size of the ML storage volume that you want to provision. VolumeSizeInGb int64 `protobuf:"varint,3,opt,name=volume_size_in_gb,json=volumeSizeInGb,proto3" json:"volume_size_in_gb,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -237,8 +250,17 @@ func (m *TrainingJobConfig) GetVolumeSizeInGb() int64 { return 0 } +// This option allows the users to specify a limit to how long a training job can run and +// how long the users are willing to wait for a managed spot training job to complete +// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html type StoppingCondition struct { - MaxRuntimeInSeconds int64 `protobuf:"varint,1,opt,name=max_runtime_in_seconds,json=maxRuntimeInSeconds,proto3" json:"max_runtime_in_seconds,omitempty"` + // The maximum length of time in second that the training job can run. + // If this value is not specified, the default expiration time will be 1 day + MaxRuntimeInSeconds int64 `protobuf:"varint,1,opt,name=max_runtime_in_seconds,json=maxRuntimeInSeconds,proto3" json:"max_runtime_in_seconds,omitempty"` + // The maximum length of time in seconds that the users are willing to wait for a managed spot + // training job to complete. + // Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the + // training job runs, so it must be equal to or greater than max_runtime_in_seconds. MaxWaitTimeInSeconds int64 `protobuf:"varint,2,opt,name=max_wait_time_in_seconds,json=maxWaitTimeInSeconds,proto3" json:"max_wait_time_in_seconds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -284,10 +306,11 @@ func (m *StoppingCondition) GetMaxWaitTimeInSeconds() int64 { return 0 } +// The spec of a training job type TrainingJob struct { AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,1,opt,name=algorithm_specification,json=algorithmSpecification,proto3" json:"algorithm_specification,omitempty"` TrainingJobConfig *TrainingJobConfig `protobuf:"bytes,2,opt,name=training_job_config,json=trainingJobConfig,proto3" json:"training_job_config,omitempty"` - Interruptible bool `protobuf:"varint,4,opt,name=interruptible,proto3" json:"interruptible,omitempty"` + Interruptible bool `protobuf:"varint,3,opt,name=interruptible,proto3" json:"interruptible,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -354,42 +377,42 @@ func init() { } var fileDescriptor_6a68f64d8fd9fe30 = []byte{ - // 587 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x6f, 0xd3, 0x4c, - 0x10, 0xad, 0x9b, 0x7c, 0xfd, 0x9a, 0x09, 0x8d, 0x92, 0x6d, 0x55, 0xa2, 0x5e, 0x88, 0x02, 0x95, - 0xd2, 0xa2, 0xda, 0x52, 0x2a, 0x38, 0x71, 0xa1, 0x69, 0xa9, 0x82, 0x28, 0xad, 0x9c, 0xf0, 0x43, - 0x48, 0x68, 0xb5, 0x76, 0x36, 0xee, 0x50, 0xef, 0xae, 0x65, 0xaf, 0x4b, 0xd2, 0x13, 0x67, 0x2e, - 0xfc, 0xc9, 0xa0, 0xac, 0x13, 0x37, 0x49, 0xa1, 0x82, 0xdb, 0xec, 0x9b, 0x99, 0xb7, 0x33, 0xf3, - 0x34, 0x03, 0x07, 0xc3, 0x70, 0xac, 0x39, 0x0e, 0x42, 0x27, 0x0a, 0xd3, 0x00, 0x65, 0xe2, 0x24, - 0x2c, 0xe0, 0x82, 0x5d, 0xf1, 0xd8, 0xd1, 0x31, 0x43, 0x89, 0x32, 0xa0, 0x5f, 0x94, 0x67, 0x47, - 0xb1, 0xd2, 0x8a, 0xec, 0xcc, 0xc2, 0xed, 0x69, 0xb8, 0x9d, 0x87, 0x37, 0x7f, 0x14, 0x60, 0xfb, - 0x65, 0x18, 0xa8, 0x18, 0xf5, 0xa5, 0xe8, 0x45, 0xdc, 0xc7, 0x21, 0xfa, 0x4c, 0xa3, 0x92, 0xe4, - 0x18, 0x00, 0x65, 0x94, 0x6a, 0x2a, 0xd4, 0x80, 0xd7, 0xad, 0x86, 0xd5, 0xaa, 0xb4, 0x77, 0xed, - 0x3f, 0x73, 0xd9, 0xdd, 0x49, 0xf4, 0x99, 0x1a, 0x70, 0xb7, 0x84, 0x33, 0x93, 0x5c, 0x40, 0x85, - 0xcd, 0xf8, 0xa9, 0x64, 0x82, 0xd7, 0x57, 0x0d, 0xd3, 0xde, 0x7d, 0x4c, 0x79, 0x45, 0x6f, 0x99, - 0xe0, 0xee, 0x06, 0x9b, 0x7f, 0x92, 0xa7, 0x50, 0xbb, 0x65, 0xbc, 0xe6, 0x71, 0x82, 0x4a, 0xd6, - 0x0b, 0x0d, 0xab, 0x55, 0x72, 0xab, 0xb9, 0xe3, 0x7d, 0x86, 0x93, 0x18, 0x88, 0xe0, 0x3a, 0x46, - 0x9f, 0x0e, 0xf8, 0x10, 0x25, 0x4e, 0x3a, 0x4b, 0xea, 0xc5, 0x46, 0xa1, 0x55, 0x6e, 0x77, 0xfe, - 0xaa, 0x84, 0x85, 0xa1, 0xd8, 0x67, 0x86, 0xec, 0x38, 0xe7, 0x72, 0x6b, 0x62, 0x09, 0x49, 0x76, - 0x5e, 0x40, 0x75, 0x39, 0x8c, 0x10, 0x28, 0x9a, 0xe6, 0x2d, 0x53, 0xa7, 0xb1, 0xc9, 0x16, 0xfc, - 0x17, 0xf3, 0x80, 0x8f, 0xcc, 0x44, 0x4a, 0x6e, 0xf6, 0x68, 0x7e, 0xb7, 0xa0, 0xd6, 0x9f, 0x8a, - 0xf8, 0x5a, 0x79, 0x1d, 0x25, 0x87, 0x18, 0x90, 0x5d, 0xa8, 0xa0, 0x4c, 0x34, 0x93, 0x3e, 0xa7, - 0xbe, 0x4a, 0xa5, 0x36, 0x4c, 0x05, 0x77, 0x63, 0x86, 0x76, 0x26, 0x20, 0x79, 0x0c, 0x39, 0x40, - 0xf5, 0x38, 0xe2, 0x53, 0xea, 0x07, 0x33, 0xb0, 0x3f, 0x8e, 0x38, 0xd9, 0x83, 0xda, 0xb5, 0x0a, - 0x53, 0xc1, 0x69, 0x82, 0x37, 0x9c, 0xa2, 0xa4, 0x81, 0x67, 0x06, 0x58, 0x70, 0x2b, 0x99, 0xa3, - 0x87, 0x37, 0xbc, 0x2b, 0x4f, 0xbd, 0xe6, 0x37, 0x0b, 0x6a, 0x3d, 0xad, 0xa2, 0x08, 0x65, 0xd0, - 0x51, 0x72, 0x90, 0x35, 0x73, 0x08, 0xdb, 0x82, 0x8d, 0x68, 0x9c, 0x4a, 0x8d, 0xc2, 0x10, 0x24, - 0xdc, 0x57, 0x72, 0x90, 0x4c, 0x8b, 0xda, 0x14, 0x6c, 0xe4, 0x66, 0xce, 0xae, 0xec, 0x65, 0x2e, - 0xf2, 0x1c, 0xea, 0x93, 0xa4, 0xaf, 0x0c, 0x35, 0x5d, 0x4e, 0x5b, 0x35, 0x69, 0x5b, 0x82, 0x8d, - 0x3e, 0x30, 0xd4, 0xfd, 0xf9, 0xbc, 0xe6, 0x4f, 0x0b, 0xca, 0x73, 0xf3, 0x20, 0x57, 0xf0, 0xf0, - 0x56, 0xfe, 0x64, 0x5e, 0x1c, 0xf3, 0x7b, 0xb9, 0xdd, 0xfe, 0x77, 0x59, 0xdd, 0x6d, 0xf6, 0xfb, - 0x1d, 0xf8, 0x0c, 0x9b, 0xf3, 0x0b, 0x45, 0x7d, 0xa3, 0x86, 0xa9, 0xb7, 0xdc, 0x3e, 0xb8, 0xef, - 0xa3, 0x3b, 0x12, 0xba, 0x35, 0x7d, 0x47, 0xd5, 0x27, 0x13, 0xb9, 0x34, 0x8f, 0xe3, 0x34, 0xd2, - 0xe8, 0x85, 0xbc, 0x5e, 0x6c, 0x58, 0xad, 0x75, 0x77, 0x11, 0xdc, 0x7f, 0x04, 0xa5, 0x7c, 0xb5, - 0xc8, 0x3a, 0x14, 0x5f, 0x75, 0xdf, 0x9c, 0x54, 0x57, 0x26, 0xd6, 0x45, 0xf7, 0xe2, 0xa4, 0x6a, - 0xed, 0xb7, 0x60, 0x63, 0x61, 0x63, 0x08, 0xc0, 0x5a, 0xe7, 0x5d, 0xaf, 0x7f, 0x7e, 0x56, 0x5d, - 0x21, 0x65, 0xf8, 0xff, 0xe3, 0xe9, 0xd1, 0xf9, 0x79, 0xaf, 0x5f, 0xb5, 0x8e, 0x9e, 0x7d, 0x3a, - 0x0c, 0x50, 0x5f, 0xa6, 0x9e, 0xed, 0x2b, 0xe1, 0x84, 0xe3, 0xa1, 0x76, 0xf2, 0x5b, 0x12, 0x70, - 0xe9, 0x44, 0xde, 0x41, 0xa0, 0x9c, 0xe5, 0xf3, 0xe2, 0xad, 0x99, 0x43, 0x72, 0xf8, 0x2b, 0x00, - 0x00, 0xff, 0xff, 0xeb, 0xba, 0x3d, 0x69, 0x79, 0x04, 0x00, 0x00, + // 585 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x4f, 0xdb, 0x4c, + 0x10, 0xc5, 0x84, 0x8f, 0x8f, 0x4c, 0x4a, 0x94, 0x2c, 0x88, 0x46, 0x5c, 0x8a, 0xd2, 0x22, 0x05, + 0x2a, 0x6c, 0x29, 0xa8, 0x3d, 0xf5, 0x52, 0x02, 0x45, 0xa9, 0x4a, 0x41, 0x4e, 0xfa, 0x43, 0x95, + 0xaa, 0xd5, 0xda, 0xd9, 0x98, 0x29, 0xde, 0x5d, 0xcb, 0x5e, 0xd3, 0x84, 0x53, 0xcf, 0xbd, 0xf4, + 0x4f, 0x6e, 0xe5, 0x75, 0x62, 0x92, 0xd0, 0xa2, 0xf6, 0x36, 0xfb, 0x66, 0xe6, 0xed, 0xcc, 0x3c, + 0xcd, 0xc0, 0xc1, 0x30, 0x1c, 0x6b, 0x8e, 0x83, 0xd0, 0x89, 0xc2, 0x34, 0x40, 0x99, 0x38, 0x09, + 0x0b, 0xb8, 0x60, 0x57, 0x3c, 0x76, 0x74, 0xcc, 0x50, 0xa2, 0x0c, 0xe8, 0x17, 0xe5, 0xd9, 0x51, + 0xac, 0xb4, 0x22, 0xdb, 0xd3, 0x70, 0x7b, 0x12, 0x6e, 0x17, 0xe1, 0xcd, 0x1f, 0x25, 0xd8, 0x7a, + 0x19, 0x06, 0x2a, 0x46, 0x7d, 0x29, 0x7a, 0x11, 0xf7, 0x71, 0x88, 0x3e, 0xd3, 0xa8, 0x24, 0x39, + 0x06, 0x40, 0x19, 0xa5, 0x9a, 0x0a, 0x35, 0xe0, 0x0d, 0x6b, 0xc7, 0x6a, 0x55, 0xdb, 0xbb, 0xf6, + 0x9f, 0xb9, 0xec, 0x6e, 0x16, 0x7d, 0xa6, 0x06, 0xdc, 0x2d, 0xe3, 0xd4, 0x24, 0x17, 0x50, 0x65, + 0x53, 0x7e, 0x2a, 0x99, 0xe0, 0x8d, 0x65, 0xc3, 0xb4, 0x77, 0x1f, 0x53, 0x51, 0xd1, 0x5b, 0x26, + 0xb8, 0xbb, 0xce, 0x66, 0x9f, 0xe4, 0x29, 0xd4, 0x6f, 0x19, 0xaf, 0x79, 0x9c, 0xa0, 0x92, 0x8d, + 0xd2, 0x8e, 0xd5, 0x2a, 0xbb, 0xb5, 0xc2, 0xf1, 0x3e, 0xc7, 0x49, 0x0c, 0x44, 0x70, 0x1d, 0xa3, + 0x4f, 0x07, 0x7c, 0x88, 0x12, 0xb3, 0xce, 0x92, 0xc6, 0xca, 0x4e, 0xa9, 0x55, 0x69, 0x77, 0xfe, + 0xaa, 0x84, 0xb9, 0xa1, 0xd8, 0x67, 0x86, 0xec, 0xb8, 0xe0, 0x72, 0xeb, 0x62, 0x01, 0x49, 0xb6, + 0x5f, 0x40, 0x6d, 0x31, 0x8c, 0x10, 0x58, 0x31, 0xcd, 0x5b, 0xa6, 0x4e, 0x63, 0x93, 0x4d, 0xf8, + 0x2f, 0xe6, 0x01, 0x1f, 0x99, 0x89, 0x94, 0xdd, 0xfc, 0xd1, 0xfc, 0x6e, 0x41, 0xbd, 0x3f, 0x11, + 0xf1, 0xb5, 0xf2, 0x3a, 0x4a, 0x0e, 0x31, 0x20, 0xbb, 0x50, 0x45, 0x99, 0x68, 0x26, 0x7d, 0x4e, + 0x7d, 0x95, 0x4a, 0x6d, 0x98, 0x4a, 0xee, 0xfa, 0x14, 0xed, 0x64, 0x20, 0x79, 0x0c, 0x05, 0x40, + 0xf5, 0x38, 0xe2, 0x13, 0xea, 0x07, 0x53, 0xb0, 0x3f, 0x8e, 0x38, 0xd9, 0x83, 0xfa, 0xb5, 0x0a, + 0x53, 0xc1, 0x69, 0x82, 0x37, 0x9c, 0xa2, 0xa4, 0x81, 0x67, 0x06, 0x58, 0x72, 0xab, 0xb9, 0xa3, + 0x87, 0x37, 0xbc, 0x2b, 0x4f, 0xbd, 0xe6, 0x37, 0x0b, 0xea, 0x3d, 0xad, 0xa2, 0x08, 0x65, 0xd0, + 0x51, 0x72, 0x90, 0x37, 0x73, 0x08, 0x5b, 0x82, 0x8d, 0x68, 0x9c, 0x4a, 0x8d, 0xc2, 0x10, 0x24, + 0xdc, 0x57, 0x72, 0x90, 0x4c, 0x8a, 0xda, 0x10, 0x6c, 0xe4, 0xe6, 0xce, 0xae, 0xec, 0xe5, 0x2e, + 0xf2, 0x1c, 0x1a, 0x59, 0xd2, 0x57, 0x86, 0x9a, 0x2e, 0xa6, 0x2d, 0x9b, 0xb4, 0x4d, 0xc1, 0x46, + 0x1f, 0x18, 0xea, 0xfe, 0x6c, 0x5e, 0xf3, 0xa7, 0x05, 0x95, 0x99, 0x79, 0x90, 0x2b, 0x78, 0x78, + 0x2b, 0x7f, 0x32, 0x2b, 0x8e, 0xf9, 0xbd, 0xd2, 0x6e, 0xff, 0xbb, 0xac, 0xee, 0x16, 0xfb, 0xfd, + 0x0e, 0x7c, 0x86, 0x8d, 0xd9, 0x85, 0xa2, 0xbe, 0x51, 0xc3, 0xd4, 0x5b, 0x69, 0x1f, 0xdc, 0xf7, + 0xd1, 0x1d, 0x09, 0xdd, 0xba, 0xbe, 0xa3, 0xea, 0x93, 0x4c, 0x2e, 0xcd, 0xe3, 0x38, 0x8d, 0x34, + 0x7a, 0x21, 0x37, 0x2a, 0xac, 0xb9, 0xf3, 0xe0, 0xfe, 0x23, 0x28, 0x17, 0xab, 0x45, 0xd6, 0x60, + 0xe5, 0x55, 0xf7, 0xcd, 0x49, 0x6d, 0x29, 0xb3, 0x2e, 0xba, 0x17, 0x27, 0x35, 0x6b, 0xbf, 0x05, + 0xeb, 0x73, 0x1b, 0x43, 0x00, 0x56, 0x3b, 0xef, 0x7a, 0xfd, 0xf3, 0xb3, 0xda, 0x12, 0xa9, 0xc0, + 0xff, 0x1f, 0x4f, 0x8f, 0xce, 0xcf, 0x7b, 0xfd, 0x9a, 0x75, 0xf4, 0xec, 0xd3, 0x61, 0x80, 0xfa, + 0x32, 0xf5, 0x6c, 0x5f, 0x09, 0x27, 0x1c, 0x0f, 0xb5, 0x53, 0xdc, 0x92, 0x80, 0x4b, 0x27, 0xf2, + 0x0e, 0x02, 0xe5, 0x2c, 0x9e, 0x17, 0x6f, 0xd5, 0x1c, 0x92, 0xc3, 0x5f, 0x01, 0x00, 0x00, 0xff, + 0xff, 0xb9, 0xda, 0xd0, 0x9e, 0x79, 0x04, 0x00, 0x00, } diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java b/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java index 87ed539e5..e0af4aa0e 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java @@ -14,44 +14,70 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface HyperparameterTuningObjectiveOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + public interface HyperparameterTuningJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningJob) com.google.protobuf.MessageOrBuilder { /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + *
+     * The underlying training job that the hyperparameter tuning job will launch during the process
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - int getObjectiveTypeValue(); + boolean hasTrainingJob(); /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + *
+     * The underlying training job that the hyperparameter tuning job will launch during the process
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob(); + /** + *
+     * The underlying training job that the hyperparameter tuning job will launch during the process
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder(); /** - * string metric_name = 2; + *
+     * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+     * 
+ * + * int64 max_number_of_training_jobs = 2; */ - java.lang.String getMetricName(); + long getMaxNumberOfTrainingJobs(); + /** - * string metric_name = 2; + *
+     * The maximum number of concurrent training job that an hpo job can launch
+     * 
+ * + * int64 max_parallel_training_jobs = 3; */ - com.google.protobuf.ByteString - getMetricNameBytes(); + long getMaxParallelTrainingJobs(); } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} + *
+   * The hyperparameter tuning job
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningJob} */ - public static final class HyperparameterTuningObjective extends + public static final class HyperparameterTuningJob extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - HyperparameterTuningObjectiveOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + HyperparameterTuningJobOrBuilder { private static final long serialVersionUID = 0L; - // Use HyperparameterTuningObjective.newBuilder() to construct. - private HyperparameterTuningObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use HyperparameterTuningJob.newBuilder() to construct. + private HyperparameterTuningJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HyperparameterTuningObjective() { - objectiveType_ = 0; - metricName_ = ""; + private HyperparameterTuningJob() { } @java.lang.Override @@ -59,7 +85,7 @@ private HyperparameterTuningObjective() { getUnknownFields() { return this.unknownFields; } - private HyperparameterTuningObjective( + private HyperparameterTuningJob( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -78,16 +104,27 @@ private HyperparameterTuningObjective( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 10: { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder subBuilder = null; + if (trainingJob_ != null) { + subBuilder = trainingJob_.toBuilder(); + } + trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingJob_); + trainingJob_ = subBuilder.buildPartial(); + } - objectiveType_ = rawValue; break; } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 16: { - metricName_ = s; + maxNumberOfTrainingJobs_ = input.readInt64(); + break; + } + case 24: { + + maxParallelTrainingJobs_ = input.readInt64(); break; } default: { @@ -111,164 +148,74 @@ private HyperparameterTuningObjective( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.Builder.class); } + public static final int TRAINING_JOB_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType} + *
+     * The underlying training job that the hyperparameter tuning job will launch during the process
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public enum HyperparameterTuningObjectiveType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * MINIMIZE = 0; - */ - MINIMIZE(0), - /** - * MAXIMIZE = 1; - */ - MAXIMIZE(1), - UNRECOGNIZED(-1), - ; - - /** - * MINIMIZE = 0; - */ - public static final int MINIMIZE_VALUE = 0; - /** - * MAXIMIZE = 1; - */ - public static final int MAXIMIZE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HyperparameterTuningObjectiveType valueOf(int value) { - return forNumber(value); - } - - public static HyperparameterTuningObjectiveType forNumber(int value) { - switch (value) { - case 0: return MINIMIZE; - case 1: return MAXIMIZE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HyperparameterTuningObjectiveType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HyperparameterTuningObjectiveType findValueByNumber(int number) { - return HyperparameterTuningObjectiveType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0); - } - - private static final HyperparameterTuningObjectiveType[] VALUES = values(); - - public static HyperparameterTuningObjectiveType 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 HyperparameterTuningObjectiveType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType) + public boolean hasTrainingJob() { + return trainingJob_ != null; } - - public static final int OBJECTIVE_TYPE_FIELD_NUMBER = 1; - private int objectiveType_; /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + *
+     * The underlying training job that the hyperparameter tuning job will launch during the process
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public int getObjectiveTypeValue() { - return objectiveType_; + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { + return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + *
+     * The underlying training job that the hyperparameter tuning job will launch during the process
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { + return getTrainingJob(); } - public static final int METRIC_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object metricName_; + public static final int MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER = 2; + private long maxNumberOfTrainingJobs_; /** - * string metric_name = 2; + *
+     * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+     * 
+ * + * int64 max_number_of_training_jobs = 2; */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - 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(); - metricName_ = s; - return s; - } + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; } + + public static final int MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER = 3; + private long maxParallelTrainingJobs_; /** - * string metric_name = 2; + *
+     * The maximum number of concurrent training job that an hpo job can launch
+     * 
+ * + * int64 max_parallel_training_jobs = 3; */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; } private byte memoizedIsInitialized = -1; @@ -285,11 +232,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { - output.writeEnum(1, objectiveType_); + if (trainingJob_ != null) { + output.writeMessage(1, getTrainingJob()); } - if (!getMetricNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricName_); + if (maxNumberOfTrainingJobs_ != 0L) { + output.writeInt64(2, maxNumberOfTrainingJobs_); + } + if (maxParallelTrainingJobs_ != 0L) { + output.writeInt64(3, maxParallelTrainingJobs_); } unknownFields.writeTo(output); } @@ -300,12 +250,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { + if (trainingJob_ != null) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, objectiveType_); + .computeMessageSize(1, getTrainingJob()); } - if (!getMetricNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricName_); + if (maxNumberOfTrainingJobs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxNumberOfTrainingJobs_); + } + if (maxParallelTrainingJobs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, maxParallelTrainingJobs_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -317,14 +272,20 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) obj; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob) obj; - if (objectiveType_ != other.objectiveType_) return false; - if (!getMetricName() - .equals(other.getMetricName())) return false; + if (hasTrainingJob() != other.hasTrainingJob()) return false; + if (hasTrainingJob()) { + if (!getTrainingJob() + .equals(other.getTrainingJob())) return false; + } + if (getMaxNumberOfTrainingJobs() + != other.getMaxNumberOfTrainingJobs()) return false; + if (getMaxParallelTrainingJobs() + != other.getMaxParallelTrainingJobs()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -336,78 +297,84 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OBJECTIVE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + objectiveType_; - hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); + if (hasTrainingJob()) { + hash = (37 * hash) + TRAINING_JOB_FIELD_NUMBER; + hash = (53 * hash) + getTrainingJob().hashCode(); + } + hash = (37 * hash) + MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxNumberOfTrainingJobs()); + hash = (37 * hash) + MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxParallelTrainingJobs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -420,7 +387,7 @@ public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective pa public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -436,26 +403,30 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} + *
+     * The hyperparameter tuning job
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningJob} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJobOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder() + // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -473,9 +444,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - objectiveType_ = 0; + if (trainingJobBuilder_ == null) { + trainingJob_ = null; + } else { + trainingJob_ = null; + trainingJobBuilder_ = null; + } + maxNumberOfTrainingJobs_ = 0L; - metricName_ = ""; + maxParallelTrainingJobs_ = 0L; return this; } @@ -483,17 +460,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance(); + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective build() { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = buildPartial(); + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob build() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -501,10 +478,15 @@ public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective buildPartial() { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(this); - result.objectiveType_ = objectiveType_; - result.metricName_ = metricName_; + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob(this); + if (trainingJobBuilder_ == null) { + result.trainingJob_ = trainingJob_; + } else { + result.trainingJob_ = trainingJobBuilder_.build(); + } + result.maxNumberOfTrainingJobs_ = maxNumberOfTrainingJobs_; + result.maxParallelTrainingJobs_ = maxParallelTrainingJobs_; onBuilt(); return result; } @@ -543,22 +525,24 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) { - return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)other); + if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other) { - if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance()) return this; - if (other.objectiveType_ != 0) { - setObjectiveTypeValue(other.getObjectiveTypeValue()); + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.getDefaultInstance()) return this; + if (other.hasTrainingJob()) { + mergeTrainingJob(other.getTrainingJob()); } - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - onChanged(); + if (other.getMaxNumberOfTrainingJobs() != 0L) { + setMaxNumberOfTrainingJobs(other.getMaxNumberOfTrainingJobs()); + } + if (other.getMaxParallelTrainingJobs() != 0L) { + setMaxParallelTrainingJobs(other.getMaxParallelTrainingJobs()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -575,11 +559,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parsedMessage = null; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -589,116 +573,231 @@ public Builder mergeFrom( return this; } - private int objectiveType_ = 0; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> trainingJobBuilder_; /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public int getObjectiveTypeValue() { - return objectiveType_; + public boolean hasTrainingJob() { + return trainingJobBuilder_ != null || trainingJob_ != null; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public Builder setObjectiveTypeValue(int value) { - objectiveType_ = value; - onChanged(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { + if (trainingJobBuilder_ == null) { + return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; + } else { + return trainingJobBuilder_.getMessage(); + } + } + /** + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public Builder setTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { + if (trainingJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingJob_ = value; + onChanged(); + } else { + trainingJobBuilder_.setMessage(value); + } + return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; + public Builder setTrainingJob( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder builderForValue) { + if (trainingJobBuilder_ == null) { + trainingJob_ = builderForValue.build(); + onChanged(); + } else { + trainingJobBuilder_.setMessage(builderForValue.build()); + } + + return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public Builder setObjectiveType(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { + if (trainingJobBuilder_ == null) { + if (trainingJob_ != null) { + trainingJob_ = + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); + } else { + trainingJob_ = value; + } + onChanged(); + } else { + trainingJobBuilder_.mergeFrom(value); } - - objectiveType_ = value.getNumber(); - onChanged(); + return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public Builder clearObjectiveType() { + public Builder clearTrainingJob() { + if (trainingJobBuilder_ == null) { + trainingJob_ = null; + onChanged(); + } else { + trainingJob_ = null; + trainingJobBuilder_ = null; + } + + return this; + } + /** + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder getTrainingJobBuilder() { - objectiveType_ = 0; onChanged(); - return this; + return getTrainingJobFieldBuilder().getBuilder(); } - - private java.lang.Object metricName_ = ""; /** - * string metric_name = 2; + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { + if (trainingJobBuilder_ != null) { + return trainingJobBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return trainingJob_ == null ? + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; } } /** - * string metric_name = 2; + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> + getTrainingJobFieldBuilder() { + if (trainingJobBuilder_ == null) { + trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder>( + getTrainingJob(), + getParentForChildren(), + isClean()); + trainingJob_ = null; } + return trainingJobBuilder_; } + + private long maxNumberOfTrainingJobs_ ; /** - * string metric_name = 2; + *
+       * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+       * 
+ * + * int64 max_number_of_training_jobs = 2; */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metricName_ = value; + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; + } + /** + *
+       * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+       * 
+ * + * int64 max_number_of_training_jobs = 2; + */ + public Builder setMaxNumberOfTrainingJobs(long value) { + + maxNumberOfTrainingJobs_ = value; onChanged(); return this; } /** - * string metric_name = 2; + *
+       * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+       * 
+ * + * int64 max_number_of_training_jobs = 2; */ - public Builder clearMetricName() { + public Builder clearMaxNumberOfTrainingJobs() { - metricName_ = getDefaultInstance().getMetricName(); + maxNumberOfTrainingJobs_ = 0L; onChanged(); return this; } + + private long maxParallelTrainingJobs_ ; /** - * string metric_name = 2; + *
+       * The maximum number of concurrent training job that an hpo job can launch
+       * 
+ * + * int64 max_parallel_training_jobs = 3; */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; + } + /** + *
+       * The maximum number of concurrent training job that an hpo job can launch
+       * 
+ * + * int64 max_parallel_training_jobs = 3; + */ + public Builder setMaxParallelTrainingJobs(long value) { - metricName_ = value; + maxParallelTrainingJobs_ = value; + onChanged(); + return this; + } + /** + *
+       * The maximum number of concurrent training job that an hpo job can launch
+       * 
+ * + * int64 max_parallel_training_jobs = 3; + */ + public Builder clearMaxParallelTrainingJobs() { + + maxParallelTrainingJobs_ = 0L; onChanged(); return this; } @@ -715,98 +814,98 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJob) } - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob(); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstance() { + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public HyperparameterTuningObjective parsePartialFrom( + public HyperparameterTuningJob parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new HyperparameterTuningObjective(input, extensionRegistry); + return new HyperparameterTuningJob(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface HPOJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJob) + public interface HyperparameterTuningObjectiveOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) com.google.protobuf.MessageOrBuilder { /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - boolean hasTrainingJob(); + int getObjectiveTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; + */ + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); + /** *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * The target metric name, which is the user-defined name of the metric specified in the
+     * training job's algorithm specification
      * 
* - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + * string metric_name = 2; */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob(); + java.lang.String getMetricName(); /** *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * The target metric name, which is the user-defined name of the metric specified in the
+     * training job's algorithm specification
      * 
* - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder(); - - /** - * int64 max_number_of_training_jobs = 2; - */ - long getMaxNumberOfTrainingJobs(); - - /** - * int64 max_parallel_training_jobs = 3; + * string metric_name = 2; */ - long getMaxParallelTrainingJobs(); + com.google.protobuf.ByteString + getMetricNameBytes(); } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJob} + *
+   * The objective of the hyperparameter tuning
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} */ - public static final class HPOJob extends + public static final class HyperparameterTuningObjective extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJob) - HPOJobOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + HyperparameterTuningObjectiveOrBuilder { private static final long serialVersionUID = 0L; - // Use HPOJob.newBuilder() to construct. - private HPOJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use HyperparameterTuningObjective.newBuilder() to construct. + private HyperparameterTuningObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HPOJob() { + private HyperparameterTuningObjective() { + objectiveType_ = 0; + metricName_ = ""; } @java.lang.Override @@ -814,7 +913,7 @@ private HPOJob() { getUnknownFields() { return this.unknownFields; } - private HPOJob( + private HyperparameterTuningObjective( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -833,110 +932,207 @@ private HPOJob( case 0: done = true; break; - case 10: { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder subBuilder = null; - if (trainingJob_ != null) { - subBuilder = trainingJob_.toBuilder(); + case 8: { + int rawValue = input.readEnum(); + + objectiveType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + metricName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } - trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trainingJob_); - trainingJob_ = subBuilder.buildPartial(); + 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 flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType} + */ + public enum HyperparameterTuningObjectiveType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MINIMIZE = 0; + */ + MINIMIZE(0), + /** + * MAXIMIZE = 1; + */ + MAXIMIZE(1), + UNRECOGNIZED(-1), + ; + + /** + * MINIMIZE = 0; + */ + public static final int MINIMIZE_VALUE = 0; + /** + * MAXIMIZE = 1; + */ + public static final int MAXIMIZE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HyperparameterTuningObjectiveType valueOf(int value) { + return forNumber(value); + } + + public static HyperparameterTuningObjectiveType forNumber(int value) { + switch (value) { + case 0: return MINIMIZE; + case 1: return MAXIMIZE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HyperparameterTuningObjectiveType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HyperparameterTuningObjectiveType findValueByNumber(int number) { + return HyperparameterTuningObjectiveType.forNumber(number); } + }; - break; - } - case 16: { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0); + } - maxNumberOfTrainingJobs_ = input.readInt64(); - break; - } - case 24: { + private static final HyperparameterTuningObjectiveType[] VALUES = values(); - maxParallelTrainingJobs_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } + public static HyperparameterTuningObjectiveType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } - } 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(); + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class); + private final int value; + + private HyperparameterTuningObjectiveType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType) } - public static final int TRAINING_JOB_FIELD_NUMBER = 1; - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; + public static final int OBJECTIVE_TYPE_FIELD_NUMBER = 1; + private int objectiveType_; /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public boolean hasTrainingJob() { - return trainingJob_ != null; + public int getObjectiveTypeValue() { + return objectiveType_; } /** - *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-     * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { - return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; } + + public static final int METRIC_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object metricName_; /** *
-     * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+     * The target metric name, which is the user-defined name of the metric specified in the
+     * training job's algorithm specification
      * 
* - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { - return getTrainingJob(); - } - - public static final int MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER = 2; - private long maxNumberOfTrainingJobs_; - /** - * int64 max_number_of_training_jobs = 2; + * string metric_name = 2; */ - public long getMaxNumberOfTrainingJobs() { - return maxNumberOfTrainingJobs_; + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + 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(); + metricName_ = s; + return s; + } } - - public static final int MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER = 3; - private long maxParallelTrainingJobs_; /** - * int64 max_parallel_training_jobs = 3; + *
+     * The target metric name, which is the user-defined name of the metric specified in the
+     * training job's algorithm specification
+     * 
+ * + * string metric_name = 2; */ - public long getMaxParallelTrainingJobs() { - return maxParallelTrainingJobs_; + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -953,14 +1149,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (trainingJob_ != null) { - output.writeMessage(1, getTrainingJob()); - } - if (maxNumberOfTrainingJobs_ != 0L) { - output.writeInt64(2, maxNumberOfTrainingJobs_); + if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { + output.writeEnum(1, objectiveType_); } - if (maxParallelTrainingJobs_ != 0L) { - output.writeInt64(3, maxParallelTrainingJobs_); + if (!getMetricNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricName_); } unknownFields.writeTo(output); } @@ -971,17 +1164,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (trainingJob_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTrainingJob()); - } - if (maxNumberOfTrainingJobs_ != 0L) { + if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxNumberOfTrainingJobs_); + .computeEnumSize(1, objectiveType_); } - if (maxParallelTrainingJobs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, maxParallelTrainingJobs_); + if (!getMetricNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricName_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -993,20 +1181,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJob)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.HpoJob.HPOJob other = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) obj; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) obj; - if (hasTrainingJob() != other.hasTrainingJob()) return false; - if (hasTrainingJob()) { - if (!getTrainingJob() - .equals(other.getTrainingJob())) return false; - } - if (getMaxNumberOfTrainingJobs() - != other.getMaxNumberOfTrainingJobs()) return false; - if (getMaxParallelTrainingJobs() - != other.getMaxParallelTrainingJobs()) return false; + if (objectiveType_ != other.objectiveType_) return false; + if (!getMetricName() + .equals(other.getMetricName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1018,84 +1200,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTrainingJob()) { - hash = (37 * hash) + TRAINING_JOB_FIELD_NUMBER; - hash = (53 * hash) + getTrainingJob().hashCode(); - } - hash = (37 * hash) + MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxNumberOfTrainingJobs()); - hash = (37 * hash) + MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxParallelTrainingJobs()); + hash = (37 * hash) + OBJECTIVE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + objectiveType_; + hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1108,7 +1284,7 @@ public static flyteidl.plugins.sagemaker.HpoJob.HPOJob parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HPOJob prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1124,26 +1300,30 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJob} + *
+     * The objective of the hyperparameter tuning
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJob) - flyteidl.plugins.sagemaker.HpoJob.HPOJobOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJob.class, flyteidl.plugins.sagemaker.HpoJob.HPOJob.Builder.class); + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJob.newBuilder() + // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1161,15 +1341,9 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (trainingJobBuilder_ == null) { - trainingJob_ = null; - } else { - trainingJob_ = null; - trainingJobBuilder_ = null; - } - maxNumberOfTrainingJobs_ = 0L; + objectiveType_ = 0; - maxParallelTrainingJobs_ = 0L; + metricName_ = ""; return this; } @@ -1177,17 +1351,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance(); + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJob build() { - flyteidl.plugins.sagemaker.HpoJob.HPOJob result = buildPartial(); + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective build() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1195,15 +1369,10 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJob build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJob buildPartial() { - flyteidl.plugins.sagemaker.HpoJob.HPOJob result = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(this); - if (trainingJobBuilder_ == null) { - result.trainingJob_ = trainingJob_; - } else { - result.trainingJob_ = trainingJobBuilder_.build(); - } - result.maxNumberOfTrainingJobs_ = maxNumberOfTrainingJobs_; - result.maxParallelTrainingJobs_ = maxParallelTrainingJobs_; + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(this); + result.objectiveType_ = objectiveType_; + result.metricName_ = metricName_; onBuilt(); return result; } @@ -1242,24 +1411,22 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJob) { - return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJob)other); + if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJob other) { - if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJob.getDefaultInstance()) return this; - if (other.hasTrainingJob()) { - mergeTrainingJob(other.getTrainingJob()); - } - if (other.getMaxNumberOfTrainingJobs() != 0L) { - setMaxNumberOfTrainingJobs(other.getMaxNumberOfTrainingJobs()); + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance()) return this; + if (other.objectiveType_ != 0) { + setObjectiveTypeValue(other.getObjectiveTypeValue()); } - if (other.getMaxParallelTrainingJobs() != 0L) { - setMaxParallelTrainingJobs(other.getMaxParallelTrainingJobs()); + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1276,11 +1443,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.HpoJob.HPOJob parsedMessage = null; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJob) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1290,207 +1457,141 @@ public Builder mergeFrom( return this; } - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> trainingJobBuilder_; + private int objectiveType_ = 0; /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public boolean hasTrainingJob() { - return trainingJobBuilder_ != null || trainingJob_ != null; + public int getObjectiveTypeValue() { + return objectiveType_; } /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { - if (trainingJobBuilder_ == null) { - return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; - } else { - return trainingJobBuilder_.getMessage(); - } + public Builder setObjectiveTypeValue(int value) { + objectiveType_ = value; + onChanged(); + return this; } /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public Builder setTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { - if (trainingJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trainingJob_ = value; - onChanged(); - } else { - trainingJobBuilder_.setMessage(value); - } - - return this; + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; } /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public Builder setTrainingJob( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder builderForValue) { - if (trainingJobBuilder_ == null) { - trainingJob_ = builderForValue.build(); - onChanged(); - } else { - trainingJobBuilder_.setMessage(builderForValue.build()); + public Builder setObjectiveType(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) { + if (value == null) { + throw new NullPointerException(); } - + + objectiveType_ = value.getNumber(); + onChanged(); return this; } /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { - if (trainingJobBuilder_ == null) { - if (trainingJob_ != null) { - trainingJob_ = - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); - } else { - trainingJob_ = value; - } - onChanged(); - } else { - trainingJobBuilder_.mergeFrom(value); - } - + public Builder clearObjectiveType() { + + objectiveType_ = 0; + onChanged(); return this; } + + private java.lang.Object metricName_ = ""; /** *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
        * 
* - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + * string metric_name = 2; */ - public Builder clearTrainingJob() { - if (trainingJobBuilder_ == null) { - trainingJob_ = null; - onChanged(); + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; } else { - trainingJob_ = null; - trainingJobBuilder_ = null; + return (java.lang.String) ref; } - - return this; - } - /** - *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
-       * 
- * - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder getTrainingJobBuilder() { - - onChanged(); - return getTrainingJobFieldBuilder().getBuilder(); } /** *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
        * 
* - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + * string metric_name = 2; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { - if (trainingJobBuilder_ != null) { - return trainingJobBuilder_.getMessageOrBuilder(); + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = b; + return b; } else { - return trainingJob_ == null ? - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; + return (com.google.protobuf.ByteString) ref; } } /** *
-       * TODO: will this change output? should it be an input instead of a part of the task spec?  This hierarchical definition is tricky!!!!!!!
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
        * 
* - * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> - getTrainingJobFieldBuilder() { - if (trainingJobBuilder_ == null) { - trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder>( - getTrainingJob(), - getParentForChildren(), - isClean()); - trainingJob_ = null; - } - return trainingJobBuilder_; - } - - private long maxNumberOfTrainingJobs_ ; - /** - * int64 max_number_of_training_jobs = 2; - */ - public long getMaxNumberOfTrainingJobs() { - return maxNumberOfTrainingJobs_; - } - /** - * int64 max_number_of_training_jobs = 2; - */ - public Builder setMaxNumberOfTrainingJobs(long value) { - - maxNumberOfTrainingJobs_ = value; - onChanged(); - return this; - } - /** - * int64 max_number_of_training_jobs = 2; + * string metric_name = 2; */ - public Builder clearMaxNumberOfTrainingJobs() { - - maxNumberOfTrainingJobs_ = 0L; + public Builder setMetricName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metricName_ = value; onChanged(); return this; } - - private long maxParallelTrainingJobs_ ; - /** - * int64 max_parallel_training_jobs = 3; - */ - public long getMaxParallelTrainingJobs() { - return maxParallelTrainingJobs_; - } /** - * int64 max_parallel_training_jobs = 3; + *
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
+       * 
+ * + * string metric_name = 2; */ - public Builder setMaxParallelTrainingJobs(long value) { + public Builder clearMetricName() { - maxParallelTrainingJobs_ = value; + metricName_ = getDefaultInstance().getMetricName(); onChanged(); return this; } /** - * int64 max_parallel_training_jobs = 3; + *
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
+       * 
+ * + * string metric_name = 2; */ - public Builder clearMaxParallelTrainingJobs() { + public Builder setMetricNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - maxParallelTrainingJobs_ = 0L; + metricName_ = value; onChanged(); return this; } @@ -1507,48 +1608,48 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HPOJob) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) } - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) - private static final flyteidl.plugins.sagemaker.HpoJob.HPOJob DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJob(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstance() { + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public HPOJob parsePartialFrom( + public HyperparameterTuningObjective parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new HPOJob(input, extensionRegistry); + return new HyperparameterTuningObjective(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJob getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface HPOJobConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HPOJobConfig) + public interface HyperparameterTuningSpecificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) com.google.protobuf.MessageOrBuilder { /** @@ -1565,13 +1666,13 @@ public interface HPOJobConfigOrBuilder extends flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder(); /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; */ int getTuningStrategyValue(); /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; */ - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy(); + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy getTuningStrategy(); /** * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; @@ -1587,27 +1688,31 @@ public interface HPOJobConfigOrBuilder extends flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder(); /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; */ int getTrainingJobEarlyStoppingTypeValue(); /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; */ - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType(); + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType(); } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobConfig} + *
+   * The specification of the hyperparameter tuning process
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningSpecification} */ - public static final class HPOJobConfig extends + public static final class HyperparameterTuningSpecification extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HPOJobConfig) - HPOJobConfigOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) + HyperparameterTuningSpecificationOrBuilder { private static final long serialVersionUID = 0L; - // Use HPOJobConfig.newBuilder() to construct. - private HPOJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use HyperparameterTuningSpecification.newBuilder() to construct. + private HyperparameterTuningSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HPOJobConfig() { + private HyperparameterTuningSpecification() { tuningStrategy_ = 0; trainingJobEarlyStoppingType_ = 0; } @@ -1617,7 +1722,7 @@ private HPOJobConfig() { getUnknownFields() { return this.unknownFields; } - private HPOJobConfig( + private HyperparameterTuningSpecification( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1695,19 +1800,19 @@ private HPOJobConfig( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class); + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.Builder.class); } /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy} + * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy} */ public enum HyperparameterTuningStrategy implements com.google.protobuf.ProtocolMessageEnum { @@ -1778,7 +1883,7 @@ public HyperparameterTuningStrategy findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(0); + return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.getDescriptor().getEnumTypes().get(0); } private static final HyperparameterTuningStrategy[] VALUES = values(); @@ -1801,11 +1906,18 @@ private HyperparameterTuningStrategy(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy) + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy) } /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType} + *
+     * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+     * a hyperparameter tuning job can be stopping early.
+     * Note that there's only a subset of built-in algorithms that supports early stopping.
+     * see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html
+     * 
+ * + * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType} */ public enum TrainingJobEarlyStoppingType implements com.google.protobuf.ProtocolMessageEnum { @@ -1876,7 +1988,7 @@ public TrainingJobEarlyStoppingType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDescriptor().getEnumTypes().get(1); + return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.getDescriptor().getEnumTypes().get(1); } private static final TrainingJobEarlyStoppingType[] VALUES = values(); @@ -1899,7 +2011,7 @@ private TrainingJobEarlyStoppingType(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType) + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType) } public static final int HYPERPARAMETER_RANGES_FIELD_NUMBER = 1; @@ -1926,18 +2038,18 @@ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBui public static final int TUNING_STRATEGY_FIELD_NUMBER = 2; private int tuningStrategy_; /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; */ public int getTuningStrategyValue() { return tuningStrategy_; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() { + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy getTuningStrategy() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy.valueOf(tuningStrategy_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy.UNRECOGNIZED : result; } public static final int TUNING_OBJECTIVE_FIELD_NUMBER = 3; @@ -1964,18 +2076,18 @@ public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder public static final int TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER = 4; private int trainingJobEarlyStoppingType_; /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; */ public int getTrainingJobEarlyStoppingTypeValue() { return trainingJobEarlyStoppingType_; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -1995,13 +2107,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (hyperparameterRanges_ != null) { output.writeMessage(1, getHyperparameterRanges()); } - if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { + if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { output.writeEnum(2, tuningStrategy_); } if (tuningObjective_ != null) { output.writeMessage(3, getTuningObjective()); } - if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) { + if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.OFF.getNumber()) { output.writeEnum(4, trainingJobEarlyStoppingType_); } unknownFields.writeTo(output); @@ -2017,7 +2129,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHyperparameterRanges()); } - if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { + if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, tuningStrategy_); } @@ -2025,7 +2137,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTuningObjective()); } - if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.OFF.getNumber()) { + if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.OFF.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, trainingJobEarlyStoppingType_); } @@ -2039,10 +2151,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) obj; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification) obj; if (hasHyperparameterRanges() != other.hasHyperparameterRanges()) return false; if (hasHyperparameterRanges()) { @@ -2084,69 +2196,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification 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 flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2159,7 +2271,7 @@ public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2175,26 +2287,30 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.HPOJobConfig} + *
+     * The specification of the hyperparameter tuning process
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningSpecification} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HPOJobConfig) - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecificationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.class, flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.Builder.class); + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.newBuilder() + // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2234,17 +2350,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance(); + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig build() { - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = buildPartial(); + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification build() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2252,8 +2368,8 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig buildPartial() { - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig result = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(this); + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification buildPartial() { + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification(this); if (hyperparameterRangesBuilder_ == null) { result.hyperparameterRanges_ = hyperparameterRanges_; } else { @@ -2304,16 +2420,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) { - return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig)other); + if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification) { + return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig other) { - if (other == flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification other) { + if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.getDefaultInstance()) return this; if (other.hasHyperparameterRanges()) { mergeHyperparameterRanges(other.getHyperparameterRanges()); } @@ -2341,11 +2457,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig parsedMessage = null; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2474,13 +2590,13 @@ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBui private int tuningStrategy_ = 0; /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; */ public int getTuningStrategyValue() { return tuningStrategy_; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; */ public Builder setTuningStrategyValue(int value) { tuningStrategy_ = value; @@ -2488,17 +2604,17 @@ public Builder setTuningStrategyValue(int value) { return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy getTuningStrategy() { + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy getTuningStrategy() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.valueOf(tuningStrategy_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy.valueOf(tuningStrategy_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy.UNRECOGNIZED : result; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; */ - public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.HyperparameterTuningStrategy value) { + public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy value) { if (value == null) { throw new NullPointerException(); } @@ -2508,7 +2624,7 @@ public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig. return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; */ public Builder clearTuningStrategy() { @@ -2636,13 +2752,13 @@ public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder private int trainingJobEarlyStoppingType_ = 0; /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; */ public int getTrainingJobEarlyStoppingTypeValue() { return trainingJobEarlyStoppingType_; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; */ public Builder setTrainingJobEarlyStoppingTypeValue(int value) { trainingJobEarlyStoppingType_ = value; @@ -2650,17 +2766,17 @@ public Builder setTrainingJobEarlyStoppingTypeValue(int value) { return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; */ - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); - return result == null ? flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); + return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; */ - public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig.TrainingJobEarlyStoppingType value) { + public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType value) { if (value == null) { throw new NullPointerException(); } @@ -2670,7 +2786,7 @@ public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HpoJob return this; } /** - * .flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; */ public Builder clearTrainingJobEarlyStoppingType() { @@ -2691,61 +2807,61 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HPOJobConfig) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) } - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) - private static final flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) + private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification(); } - public static flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstance() { + public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public HPOJobConfig parsePartialFrom( + public HyperparameterTuningSpecification parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new HPOJobConfig(input, extensionRegistry); + return new HyperparameterTuningSpecification(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor; + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor; + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -2759,30 +2875,32 @@ public flyteidl.plugins.sagemaker.HpoJob.HPOJobConfig getDefaultInstanceForType( "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" + "/plugins/sagemaker/parameter_ranges.prot" + "o\032-flyteidl/plugins/sagemaker/training_j" + - "ob.proto\"\352\001\n\035HyperparameterTuningObjecti" + - "ve\022s\n\016objective_type\030\001 \001(\0162[.flyteidl.pl" + + "ob.proto\"\241\001\n\027HyperparameterTuningJob\022=\n\014" + + "training_job\030\001 \001(\0132\'.flyteidl.plugins.sa" + + "gemaker.TrainingJob\022#\n\033max_number_of_tra" + + "ining_jobs\030\002 \001(\003\022\"\n\032max_parallel_trainin" + + "g_jobs\030\003 \001(\003\"\352\001\n\035HyperparameterTuningObj" + + "ective\022s\n\016objective_type\030\001 \001(\0162[.flyteid" + + "l.plugins.sagemaker.HyperparameterTuning" + + "Objective.HyperparameterTuningObjectiveT" + + "ype\022\023\n\013metric_name\030\002 \001(\t\"?\n!Hyperparamet" + + "erTuningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010M" + + "AXIMIZE\020\001\"\255\004\n!HyperparameterTuningSpecif" + + "ication\022J\n\025hyperparameter_ranges\030\001 \001(\0132+" + + ".flyteidl.plugins.sagemaker.ParameterRan" + + "ges\022s\n\017tuning_strategy\030\002 \001(\0162Z.flyteidl." + + "plugins.sagemaker.HyperparameterTuningSp" + + "ecification.HyperparameterTuningStrategy" + + "\022S\n\020tuning_objective\030\003 \001(\01329.flyteidl.pl" + "ugins.sagemaker.HyperparameterTuningObje" + - "ctive.HyperparameterTuningObjectiveType\022" + - "\023\n\013metric_name\030\002 \001(\t\"?\n!HyperparameterTu" + - "ningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010MAXIM" + - "IZE\020\001\"\220\001\n\006HPOJob\022=\n\014training_job\030\001 \001(\0132\'" + - ".flyteidl.plugins.sagemaker.TrainingJob\022" + - "#\n\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032" + - "max_parallel_training_jobs\030\003 \001(\003\"\355\003\n\014HPO" + - "JobConfig\022J\n\025hyperparameter_ranges\030\001 \001(\013" + - "2+.flyteidl.plugins.sagemaker.ParameterR" + - "anges\022^\n\017tuning_strategy\030\002 \001(\0162E.flyteid" + - "l.plugins.sagemaker.HPOJobConfig.Hyperpa" + - "rameterTuningStrategy\022S\n\020tuning_objectiv" + - "e\030\003 \001(\01329.flyteidl.plugins.sagemaker.Hyp" + - "erparameterTuningObjective\022o\n training_j" + - "ob_early_stopping_type\030\004 \001(\0162E.flyteidl." + - "plugins.sagemaker.HPOJobConfig.TrainingJ" + - "obEarlyStoppingType\"8\n\034HyperparameterTun" + - "ingStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1\n" + - "\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022\010" + - "\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/gen" + - "/pb-go/flyteidl/pluginsb\006proto3" + "ctive\022\204\001\n training_job_early_stopping_ty" + + "pe\030\004 \001(\0162Z.flyteidl.plugins.sagemaker.Hy" + + "perparameterTuningSpecification.Training" + + "JobEarlyStoppingType\"8\n\034HyperparameterTu" + + "ningStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1" + + "\n\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022" + + "\010\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/ge" + + "n/pb-go/flyteidl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -2798,23 +2916,23 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(), flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(), }, assigner); - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor = + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor, + new java.lang.String[] { "TrainingJob", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", }); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor, new java.lang.String[] { "ObjectiveType", "MetricName", }); - internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_sagemaker_HPOJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_HPOJob_descriptor, - new java.lang.String[] { "TrainingJob", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", }); - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor = + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_HPOJobConfig_descriptor, + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor, new java.lang.String[] { "HyperparameterRanges", "TuningStrategy", "TuningObjective", "TrainingJobEarlyStoppingType", }); flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java index 85e2b73f0..f0ca894f1 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java @@ -15,6 +15,11 @@ public static void registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } /** + *
+   * HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+   * 
+ * * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterScalingType} */ public enum HyperparameterScalingType @@ -154,6 +159,11 @@ public interface ContinuousParameterRangeOrBuilder extends flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); } /** + *
+   * ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
+   * users to specify the search space of a floating-point hyperparameter
+   * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} */ public static final class ContinuousParameterRange extends @@ -457,6 +467,11 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
+     * users to specify the search space of a floating-point hyperparameter
+     * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} */ public static final class Builder extends @@ -788,6 +803,11 @@ public interface IntegerParameterRangeOrBuilder extends flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); } /** + *
+   * IntegerParameterRange refers to a discrete range of hyperparameter values, allowing
+   * users to specify the search space of an integer hyperparameter
+   * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} */ public static final class IntegerParameterRange extends @@ -1089,6 +1109,11 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * IntegerParameterRange refers to a discrete range of hyperparameter values, allowing
+     * users to specify the search space of an integer hyperparameter
+     * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} */ public static final class Builder extends @@ -1420,6 +1445,11 @@ public interface CategoricalParameterRangeOrBuilder extends getValuesBytes(int index); } /** + *
+   * ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
+   * users to specify the search space of a floating-point hyperparameter
+   * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} */ public static final class CategoricalParameterRange extends @@ -1694,6 +1724,11 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
+     * users to specify the search space of a floating-point hyperparameter
+     * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} */ public static final class Builder extends @@ -3169,6 +3204,10 @@ flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getPara java.lang.String key); } /** + *
+   * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+   * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} */ public static final class ParameterRanges extends @@ -3507,6 +3546,10 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} */ public static final class Builder extends diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java index c7c7a93f1..f879c85bc 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -215,52 +215,105 @@ public interface AlgorithmSpecificationOrBuilder extends com.google.protobuf.MessageOrBuilder { /** + *
+     * The input mode can be either PIPE or FILE
+     * 
+ * * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ int getInputModeValue(); /** + *
+     * The input mode can be either PIPE or FILE
+     * 
+ * * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode(); /** + *
+     * The algorithm name is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ int getAlgorithmNameValue(); /** + *
+     * The algorithm name is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName(); /** + *
+     * The algorithm version field is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * * string algorithm_version = 3; */ java.lang.String getAlgorithmVersion(); /** + *
+     * The algorithm version field is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * * string algorithm_version = 3; */ com.google.protobuf.ByteString getAlgorithmVersionBytes(); /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ java.util.List getMetricDefinitionsList(); /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ int getMetricDefinitionsCount(); /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ java.util.List getMetricDefinitionsOrBuilderList(); /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( @@ -376,20 +429,36 @@ public interface MetricDefinitionOrBuilder extends com.google.protobuf.MessageOrBuilder { /** + *
+       * User-defined name of the metric
+       * 
+ * * string name = 1; */ java.lang.String getName(); /** + *
+       * User-defined name of the metric
+       * 
+ * * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** + *
+       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+       * 
+ * * string regex = 2; */ java.lang.String getRegex(); /** + *
+       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+       * 
+ * * string regex = 2; */ com.google.protobuf.ByteString @@ -483,6 +552,10 @@ private MetricDefinition( public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + *
+       * User-defined name of the metric
+       * 
+ * * string name = 1; */ public java.lang.String getName() { @@ -498,6 +571,10 @@ public java.lang.String getName() { } } /** + *
+       * User-defined name of the metric
+       * 
+ * * string name = 1; */ public com.google.protobuf.ByteString @@ -517,6 +594,10 @@ public java.lang.String getName() { public static final int REGEX_FIELD_NUMBER = 2; private volatile java.lang.Object regex_; /** + *
+       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+       * 
+ * * string regex = 2; */ public java.lang.String getRegex() { @@ -532,6 +613,10 @@ public java.lang.String getRegex() { } } /** + *
+       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+       * 
+ * * string regex = 2; */ public com.google.protobuf.ByteString @@ -869,6 +954,10 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + *
+         * User-defined name of the metric
+         * 
+ * * string name = 1; */ public java.lang.String getName() { @@ -884,6 +973,10 @@ public java.lang.String getName() { } } /** + *
+         * User-defined name of the metric
+         * 
+ * * string name = 1; */ public com.google.protobuf.ByteString @@ -900,6 +993,10 @@ public java.lang.String getName() { } } /** + *
+         * User-defined name of the metric
+         * 
+ * * string name = 1; */ public Builder setName( @@ -913,6 +1010,10 @@ public Builder setName( return this; } /** + *
+         * User-defined name of the metric
+         * 
+ * * string name = 1; */ public Builder clearName() { @@ -922,6 +1023,10 @@ public Builder clearName() { return this; } /** + *
+         * User-defined name of the metric
+         * 
+ * * string name = 1; */ public Builder setNameBytes( @@ -938,6 +1043,10 @@ public Builder setNameBytes( private java.lang.Object regex_ = ""; /** + *
+         * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+         * 
+ * * string regex = 2; */ public java.lang.String getRegex() { @@ -953,6 +1062,10 @@ public java.lang.String getRegex() { } } /** + *
+         * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+         * 
+ * * string regex = 2; */ public com.google.protobuf.ByteString @@ -969,6 +1082,10 @@ public java.lang.String getRegex() { } } /** + *
+         * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+         * 
+ * * string regex = 2; */ public Builder setRegex( @@ -982,6 +1099,10 @@ public Builder setRegex( return this; } /** + *
+         * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+         * 
+ * * string regex = 2; */ public Builder clearRegex() { @@ -991,6 +1112,10 @@ public Builder clearRegex() { return this; } /** + *
+         * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+         * 
+ * * string regex = 2; */ public Builder setRegexBytes( @@ -1061,12 +1186,20 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.M public static final int INPUT_MODE_FIELD_NUMBER = 1; private int inputMode_; /** + *
+     * The input mode can be either PIPE or FILE
+     * 
+ * * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ public int getInputModeValue() { return inputMode_; } /** + *
+     * The input mode can be either PIPE or FILE
+     * 
+ * * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { @@ -1078,12 +1211,22 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() public static final int ALGORITHM_NAME_FIELD_NUMBER = 2; private int algorithmName_; /** + *
+     * The algorithm name is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ public int getAlgorithmNameValue() { return algorithmName_; } /** + *
+     * The algorithm name is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { @@ -1095,6 +1238,11 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorit public static final int ALGORITHM_VERSION_FIELD_NUMBER = 3; private volatile java.lang.Object algorithmVersion_; /** + *
+     * The algorithm version field is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * * string algorithm_version = 3; */ public java.lang.String getAlgorithmVersion() { @@ -1110,6 +1258,11 @@ public java.lang.String getAlgorithmVersion() { } } /** + *
+     * The algorithm version field is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * * string algorithm_version = 3; */ public com.google.protobuf.ByteString @@ -1129,12 +1282,22 @@ public java.lang.String getAlgorithmVersion() { public static final int METRIC_DEFINITIONS_FIELD_NUMBER = 4; private java.util.List metricDefinitions_; /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public java.util.List getMetricDefinitionsList() { return metricDefinitions_; } /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public java.util.List @@ -1142,18 +1305,33 @@ public java.util.List + * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job + * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html + *
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public int getMetricDefinitionsCount() { return metricDefinitions_.size(); } /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { return metricDefinitions_.get(index); } /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( @@ -1556,12 +1734,20 @@ public Builder mergeFrom( private int inputMode_ = 0; /** + *
+       * The input mode can be either PIPE or FILE
+       * 
+ * * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ public int getInputModeValue() { return inputMode_; } /** + *
+       * The input mode can be either PIPE or FILE
+       * 
+ * * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ public Builder setInputModeValue(int value) { @@ -1570,6 +1756,10 @@ public Builder setInputModeValue(int value) { return this; } /** + *
+       * The input mode can be either PIPE or FILE
+       * 
+ * * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { @@ -1578,6 +1768,10 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result; } /** + *
+       * The input mode can be either PIPE or FILE
+       * 
+ * * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ public Builder setInputMode(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode value) { @@ -1590,6 +1784,10 @@ public Builder setInputMode(flyteidl.plugins.sagemaker.TrainingJobOuterClass.Inp return this; } /** + *
+       * The input mode can be either PIPE or FILE
+       * 
+ * * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; */ public Builder clearInputMode() { @@ -1601,12 +1799,22 @@ public Builder clearInputMode() { private int algorithmName_ = 0; /** + *
+       * The algorithm name is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ public int getAlgorithmNameValue() { return algorithmName_; } /** + *
+       * The algorithm name is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ public Builder setAlgorithmNameValue(int value) { @@ -1615,6 +1823,11 @@ public Builder setAlgorithmNameValue(int value) { return this; } /** + *
+       * The algorithm name is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { @@ -1623,6 +1836,11 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorit return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result; } /** + *
+       * The algorithm name is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName value) { @@ -1635,6 +1853,11 @@ public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass return this; } /** + *
+       * The algorithm name is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; */ public Builder clearAlgorithmName() { @@ -1646,6 +1869,11 @@ public Builder clearAlgorithmName() { private java.lang.Object algorithmVersion_ = ""; /** + *
+       * The algorithm version field is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * * string algorithm_version = 3; */ public java.lang.String getAlgorithmVersion() { @@ -1661,6 +1889,11 @@ public java.lang.String getAlgorithmVersion() { } } /** + *
+       * The algorithm version field is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * * string algorithm_version = 3; */ public com.google.protobuf.ByteString @@ -1677,6 +1910,11 @@ public java.lang.String getAlgorithmVersion() { } } /** + *
+       * The algorithm version field is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * * string algorithm_version = 3; */ public Builder setAlgorithmVersion( @@ -1690,6 +1928,11 @@ public Builder setAlgorithmVersion( return this; } /** + *
+       * The algorithm version field is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * * string algorithm_version = 3; */ public Builder clearAlgorithmVersion() { @@ -1699,6 +1942,11 @@ public Builder clearAlgorithmVersion() { return this; } /** + *
+       * The algorithm version field is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * * string algorithm_version = 3; */ public Builder setAlgorithmVersionBytes( @@ -1726,6 +1974,11 @@ private void ensureMetricDefinitionsIsMutable() { flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public java.util.List getMetricDefinitionsList() { @@ -1736,6 +1989,11 @@ public java.util.List + * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job + * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html + *
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public int getMetricDefinitionsCount() { @@ -1746,6 +2004,11 @@ public int getMetricDefinitionsCount() { } } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { @@ -1756,6 +2019,11 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.M } } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder setMetricDefinitions( @@ -1773,6 +2041,11 @@ public Builder setMetricDefinitions( return this; } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder setMetricDefinitions( @@ -1787,6 +2060,11 @@ public Builder setMetricDefinitions( return this; } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { @@ -1803,6 +2081,11 @@ public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.TrainingJobOuterC return this; } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions( @@ -1820,6 +2103,11 @@ public Builder addMetricDefinitions( return this; } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions( @@ -1834,6 +2122,11 @@ public Builder addMetricDefinitions( return this; } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions( @@ -1848,6 +2141,11 @@ public Builder addMetricDefinitions( return this; } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder addAllMetricDefinitions( @@ -1863,6 +2161,11 @@ public Builder addAllMetricDefinitions( return this; } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder clearMetricDefinitions() { @@ -1876,6 +2179,11 @@ public Builder clearMetricDefinitions() { return this; } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public Builder removeMetricDefinitions(int index) { @@ -1889,6 +2197,11 @@ public Builder removeMetricDefinitions(int index) { return this; } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( @@ -1896,6 +2209,11 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.M return getMetricDefinitionsFieldBuilder().getBuilder(index); } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( @@ -1906,6 +2224,11 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.M } } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public java.util.List @@ -1917,6 +2240,11 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.M } } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { @@ -1924,6 +2252,11 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.M flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( @@ -1932,6 +2265,11 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.M index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); } /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; */ public java.util.List @@ -2011,7 +2349,8 @@ public interface TrainingJobConfigOrBuilder extends /** *
-     * For multi-node training, not multi-GPU training
+     * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
+     * This is for multi-node training, not multi-GPU training
      * 
* * int64 instance_count = 1; @@ -2019,16 +2358,28 @@ public interface TrainingJobConfigOrBuilder extends long getInstanceCount(); /** + *
+     * The ML compute instance type
+     * 
+ * * string instance_type = 2; */ java.lang.String getInstanceType(); /** + *
+     * The ML compute instance type
+     * 
+ * * string instance_type = 2; */ com.google.protobuf.ByteString getInstanceTypeBytes(); /** + *
+     * The size of the ML storage volume that you want to provision.
+     * 
+ * * int64 volume_size_in_gb = 3; */ long getVolumeSizeInGb(); @@ -2125,7 +2476,8 @@ private TrainingJobConfig( private long instanceCount_; /** *
-     * For multi-node training, not multi-GPU training
+     * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
+     * This is for multi-node training, not multi-GPU training
      * 
* * int64 instance_count = 1; @@ -2137,6 +2489,10 @@ public long getInstanceCount() { public static final int INSTANCE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object instanceType_; /** + *
+     * The ML compute instance type
+     * 
+ * * string instance_type = 2; */ public java.lang.String getInstanceType() { @@ -2152,6 +2508,10 @@ public java.lang.String getInstanceType() { } } /** + *
+     * The ML compute instance type
+     * 
+ * * string instance_type = 2; */ public com.google.protobuf.ByteString @@ -2171,6 +2531,10 @@ public java.lang.String getInstanceType() { public static final int VOLUME_SIZE_IN_GB_FIELD_NUMBER = 3; private long volumeSizeInGb_; /** + *
+     * The size of the ML storage volume that you want to provision.
+     * 
+ * * int64 volume_size_in_gb = 3; */ public long getVolumeSizeInGb() { @@ -2518,7 +2882,8 @@ public Builder mergeFrom( private long instanceCount_ ; /** *
-       * For multi-node training, not multi-GPU training
+       * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
+       * This is for multi-node training, not multi-GPU training
        * 
* * int64 instance_count = 1; @@ -2528,7 +2893,8 @@ public long getInstanceCount() { } /** *
-       * For multi-node training, not multi-GPU training
+       * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
+       * This is for multi-node training, not multi-GPU training
        * 
* * int64 instance_count = 1; @@ -2541,7 +2907,8 @@ public Builder setInstanceCount(long value) { } /** *
-       * For multi-node training, not multi-GPU training
+       * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
+       * This is for multi-node training, not multi-GPU training
        * 
* * int64 instance_count = 1; @@ -2555,6 +2922,10 @@ public Builder clearInstanceCount() { private java.lang.Object instanceType_ = ""; /** + *
+       * The ML compute instance type
+       * 
+ * * string instance_type = 2; */ public java.lang.String getInstanceType() { @@ -2570,6 +2941,10 @@ public java.lang.String getInstanceType() { } } /** + *
+       * The ML compute instance type
+       * 
+ * * string instance_type = 2; */ public com.google.protobuf.ByteString @@ -2586,6 +2961,10 @@ public java.lang.String getInstanceType() { } } /** + *
+       * The ML compute instance type
+       * 
+ * * string instance_type = 2; */ public Builder setInstanceType( @@ -2599,6 +2978,10 @@ public Builder setInstanceType( return this; } /** + *
+       * The ML compute instance type
+       * 
+ * * string instance_type = 2; */ public Builder clearInstanceType() { @@ -2608,6 +2991,10 @@ public Builder clearInstanceType() { return this; } /** + *
+       * The ML compute instance type
+       * 
+ * * string instance_type = 2; */ public Builder setInstanceTypeBytes( @@ -2624,12 +3011,20 @@ public Builder setInstanceTypeBytes( private long volumeSizeInGb_ ; /** + *
+       * The size of the ML storage volume that you want to provision.
+       * 
+ * * int64 volume_size_in_gb = 3; */ public long getVolumeSizeInGb() { return volumeSizeInGb_; } /** + *
+       * The size of the ML storage volume that you want to provision.
+       * 
+ * * int64 volume_size_in_gb = 3; */ public Builder setVolumeSizeInGb(long value) { @@ -2639,6 +3034,10 @@ public Builder setVolumeSizeInGb(long value) { return this; } /** + *
+       * The size of the ML storage volume that you want to provision.
+       * 
+ * * int64 volume_size_in_gb = 3; */ public Builder clearVolumeSizeInGb() { @@ -2705,16 +3104,34 @@ public interface StoppingConditionOrBuilder extends com.google.protobuf.MessageOrBuilder { /** + *
+     * The maximum length of time in second that the training job can run.
+     * If this value is not specified, the default expiration time will be 1 day
+     * 
+ * * int64 max_runtime_in_seconds = 1; */ long getMaxRuntimeInSeconds(); /** + *
+     * The maximum length of time in seconds that the users are willing to wait for a managed spot
+     * training job to complete.
+     * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+     * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+     * 
+ * * int64 max_wait_time_in_seconds = 2; */ long getMaxWaitTimeInSeconds(); } /** + *
+   * This option allows the users to specify a limit to how long a training job can run and
+   * how long the users are willing to wait for a managed spot training job to complete
+   * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html
+   * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} */ public static final class StoppingCondition extends @@ -2798,6 +3215,11 @@ private StoppingCondition( public static final int MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER = 1; private long maxRuntimeInSeconds_; /** + *
+     * The maximum length of time in second that the training job can run.
+     * If this value is not specified, the default expiration time will be 1 day
+     * 
+ * * int64 max_runtime_in_seconds = 1; */ public long getMaxRuntimeInSeconds() { @@ -2807,6 +3229,13 @@ public long getMaxRuntimeInSeconds() { public static final int MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER = 2; private long maxWaitTimeInSeconds_; /** + *
+     * The maximum length of time in seconds that the users are willing to wait for a managed spot
+     * training job to complete.
+     * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+     * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+     * 
+ * * int64 max_wait_time_in_seconds = 2; */ public long getMaxWaitTimeInSeconds() { @@ -2982,6 +3411,12 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * This option allows the users to specify a limit to how long a training job can run and
+     * how long the users are willing to wait for a managed spot training job to complete
+     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html
+     * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} */ public static final class Builder extends @@ -3136,12 +3571,22 @@ public Builder mergeFrom( private long maxRuntimeInSeconds_ ; /** + *
+       * The maximum length of time in second that the training job can run.
+       * If this value is not specified, the default expiration time will be 1 day
+       * 
+ * * int64 max_runtime_in_seconds = 1; */ public long getMaxRuntimeInSeconds() { return maxRuntimeInSeconds_; } /** + *
+       * The maximum length of time in second that the training job can run.
+       * If this value is not specified, the default expiration time will be 1 day
+       * 
+ * * int64 max_runtime_in_seconds = 1; */ public Builder setMaxRuntimeInSeconds(long value) { @@ -3151,6 +3596,11 @@ public Builder setMaxRuntimeInSeconds(long value) { return this; } /** + *
+       * The maximum length of time in second that the training job can run.
+       * If this value is not specified, the default expiration time will be 1 day
+       * 
+ * * int64 max_runtime_in_seconds = 1; */ public Builder clearMaxRuntimeInSeconds() { @@ -3162,12 +3612,26 @@ public Builder clearMaxRuntimeInSeconds() { private long maxWaitTimeInSeconds_ ; /** + *
+       * The maximum length of time in seconds that the users are willing to wait for a managed spot
+       * training job to complete.
+       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+       * 
+ * * int64 max_wait_time_in_seconds = 2; */ public long getMaxWaitTimeInSeconds() { return maxWaitTimeInSeconds_; } /** + *
+       * The maximum length of time in seconds that the users are willing to wait for a managed spot
+       * training job to complete.
+       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+       * 
+ * * int64 max_wait_time_in_seconds = 2; */ public Builder setMaxWaitTimeInSeconds(long value) { @@ -3177,6 +3641,13 @@ public Builder setMaxWaitTimeInSeconds(long value) { return this; } /** + *
+       * The maximum length of time in seconds that the users are willing to wait for a managed spot
+       * training job to complete.
+       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+       * 
+ * * int64 max_wait_time_in_seconds = 2; */ public Builder clearMaxWaitTimeInSeconds() { @@ -3269,11 +3740,15 @@ public interface TrainingJobOrBuilder extends flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder(); /** - * bool interruptible = 4; + * bool interruptible = 3; */ boolean getInterruptible(); } /** + *
+   * The spec of a training job
+   * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} */ public static final class TrainingJob extends @@ -3338,7 +3813,7 @@ private TrainingJob( break; } - case 32: { + case 24: { interruptible_ = input.readBool(); break; @@ -3417,10 +3892,10 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuild return getTrainingJobConfig(); } - public static final int INTERRUPTIBLE_FIELD_NUMBER = 4; + public static final int INTERRUPTIBLE_FIELD_NUMBER = 3; private boolean interruptible_; /** - * bool interruptible = 4; + * bool interruptible = 3; */ public boolean getInterruptible() { return interruptible_; @@ -3447,7 +3922,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(2, getTrainingJobConfig()); } if (interruptible_ != false) { - output.writeBool(4, interruptible_); + output.writeBool(3, interruptible_); } unknownFields.writeTo(output); } @@ -3468,7 +3943,7 @@ public int getSerializedSize() { } if (interruptible_ != false) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, interruptible_); + .computeBoolSize(3, interruptible_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3615,6 +4090,10 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * The spec of a training job
+     * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} */ public static final class Builder extends @@ -4025,13 +4504,13 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuild private boolean interruptible_ ; /** - * bool interruptible = 4; + * bool interruptible = 3; */ public boolean getInterruptible() { return interruptible_; } /** - * bool interruptible = 4; + * bool interruptible = 3; */ public Builder setInterruptible(boolean value) { @@ -4040,7 +4519,7 @@ public Builder setInterruptible(boolean value) { return this; } /** - * bool interruptible = 4; + * bool interruptible = 3; */ public Builder clearInterruptible() { @@ -4154,7 +4633,7 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn "idl.plugins.sagemaker.AlgorithmSpecifica" + "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt" + "eidl.plugins.sagemaker.TrainingJobConfig" + - "\022\025\n\rinterruptible\030\004 \001(\010*\037\n\tInputMode\022\010\n\004" + + "\022\025\n\rinterruptible\030\003 \001(\010*\037\n\tInputMode\022\010\n\004" + "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS" + "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl" + "yteidl/gen/pb-go/flyteidl/pluginsb\006proto" + diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst index 4bfaa3f53..bf8e64e1a 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst @@ -3,13 +3,51 @@ hpo_job.proto ======================================== +.. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningJob: + +flyteidl.plugins.sagemaker.HyperparameterTuningJob +-------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HyperparameterTuningJob proto] `_ + +The hyperparameter tuning job + +.. code-block:: json + + { + "training_job": "{...}", + "max_number_of_training_jobs": "...", + "max_parallel_training_jobs": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningJob.training_job: + +training_job + (:ref:`flyteidl.plugins.sagemaker.TrainingJob `) The underlying training job that the hyperparameter tuning job will launch during the process + + +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningJob.max_number_of_training_jobs: + +max_number_of_training_jobs + (`int64 `_) The maximum number of training jobs that an hpo job can launch. For resource limit purpose. + + +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningJob.max_parallel_training_jobs: + +max_parallel_training_jobs + (`int64 `_) The maximum number of concurrent training job that an hpo job can launch + + + + .. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningObjective: flyteidl.plugins.sagemaker.HyperparameterTuningObjective -------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ +The objective of the hyperparameter tuning .. code-block:: json @@ -26,7 +64,9 @@ objective_type .. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name: metric_name - (`string `_) + (`string `_) The target metric name, which is the user-defined name of the metric specified in the + training job's algorithm specification + .. _api_enum_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType: @@ -34,7 +74,7 @@ metric_name Enum flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType ----------------------------------------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE: @@ -48,46 +88,14 @@ MAXIMIZE ⁣ -.. _api_msg_flyteidl.plugins.sagemaker.HPOJob: - -flyteidl.plugins.sagemaker.HPOJob ---------------------------------- - -`[flyteidl.plugins.sagemaker.HPOJob proto] `_ - - -.. code-block:: json - - { - "training_job": "{...}", - "max_number_of_training_jobs": "...", - "max_parallel_training_jobs": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.training_job: - -training_job - (:ref:`flyteidl.plugins.sagemaker.TrainingJob `) - -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs: - -max_number_of_training_jobs - (`int64 `_) - -.. _api_field_flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs: - -max_parallel_training_jobs - (`int64 `_) - - - -.. _api_msg_flyteidl.plugins.sagemaker.HPOJobConfig: +.. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification: -flyteidl.plugins.sagemaker.HPOJobConfig ---------------------------------------- +flyteidl.plugins.sagemaker.HyperparameterTuningSpecification +------------------------------------------------------------ -`[flyteidl.plugins.sagemaker.HPOJobConfig proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningSpecification proto] `_ +The specification of the hyperparameter tuning process .. code-block:: json @@ -98,60 +106,64 @@ flyteidl.plugins.sagemaker.HPOJobConfig "training_job_early_stopping_type": "..." } -.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges: +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.hyperparameter_ranges: hyperparameter_ranges (:ref:`flyteidl.plugins.sagemaker.ParameterRanges `) -.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy: +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_strategy: tuning_strategy - (:ref:`flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy `) + (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy `) -.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective: +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_objective: tuning_objective (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjective `) -.. _api_field_flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type: +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.training_job_early_stopping_type: training_job_early_stopping_type - (:ref:`flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType `) + (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType `) -.. _api_enum_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy: +.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy: -Enum flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy -------------------------------------------------------------------------- +Enum flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy +---------------------------------------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy proto] `_ -.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy.BAYESIAN: +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy.BAYESIAN: BAYESIAN *(DEFAULT)* ⁣ -.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy.RANDOM: +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy.RANDOM: RANDOM ⁣ -.. _api_enum_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType: +.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType: -Enum flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType -------------------------------------------------------------------------- +Enum flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType +---------------------------------------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType proto] `_ +When the training jobs launched by the hyperparameter tuning job are not improving significantly, +a hyperparameter tuning job can be stopping early. +Note that there's only a subset of built-in algorithms that supports early stopping. +see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html -.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType.OFF: +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.OFF: OFF *(DEFAULT)* ⁣ -.. _api_enum_value_flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType.AUTO: +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.AUTO: AUTO ⁣ diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst index 609908086..170893183 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst @@ -8,8 +8,10 @@ parameter_ranges.proto flyteidl.plugins.sagemaker.ContinuousParameterRange --------------------------------------------------- -`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_ +ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing +users to specify the search space of a floating-point hyperparameter .. code-block:: json @@ -41,8 +43,10 @@ scaling_type flyteidl.plugins.sagemaker.IntegerParameterRange ------------------------------------------------ -`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_ +IntegerParameterRange refers to a discrete range of hyperparameter values, allowing +users to specify the search space of an integer hyperparameter .. code-block:: json @@ -74,8 +78,10 @@ scaling_type flyteidl.plugins.sagemaker.CategoricalParameterRange ---------------------------------------------------- -`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_ +ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing +users to specify the search space of a floating-point hyperparameter .. code-block:: json @@ -95,7 +101,7 @@ values flyteidl.plugins.sagemaker.ParameterRangeOneOf ---------------------------------------------- -`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_ +`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_ .. code-block:: json @@ -137,8 +143,9 @@ categorical_parameter_range flyteidl.plugins.sagemaker.ParameterRanges ------------------------------------------ -`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ +`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ +ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range .. code-block:: json @@ -157,8 +164,10 @@ parameter_range_map Enum flyteidl.plugins.sagemaker.HyperparameterScalingType --------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_ +HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter +https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html .. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.AUTO: diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst index 0866d86bf..54550f414 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst @@ -23,29 +23,36 @@ flyteidl.plugins.sagemaker.AlgorithmSpecification .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode: input_mode - (:ref:`flyteidl.plugins.sagemaker.InputMode `) + (:ref:`flyteidl.plugins.sagemaker.InputMode `) The input mode can be either PIPE or FILE + .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name: algorithm_name - (:ref:`flyteidl.plugins.sagemaker.AlgorithmName `) + (:ref:`flyteidl.plugins.sagemaker.AlgorithmName `) The algorithm name is used for deciding which pre-built image to point to + This is only needed for use cases where SageMaker's built-in algorithm mode is chosen + .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version: algorithm_version - (`string `_) + (`string `_) The algorithm version field is used for deciding which pre-built image to point to + This is only needed for use cases where SageMaker's built-in algorithm mode is chosen + .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions: metric_definitions - (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition `) + (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition `) A list of metric definitions for SageMaker to evaluate/track on the progress of the training job + https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html + .. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition: flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition ------------------------------------------------------------------ -`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ .. code-block:: json @@ -58,12 +65,14 @@ flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name: name - (`string `_) + (`string `_) User-defined name of the metric + .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex: regex - (`string `_) + (`string `_) SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics + @@ -73,7 +82,7 @@ regex flyteidl.plugins.sagemaker.TrainingJobConfig -------------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJobConfig proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobConfig proto] `_ .. code-block:: json @@ -87,17 +96,21 @@ flyteidl.plugins.sagemaker.TrainingJobConfig .. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count: instance_count - (`int64 `_) + (`int64 `_) The number of ML compute instances to use. For distributed training, provide a value greater than 1. + This is for multi-node training, not multi-GPU training + .. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type: instance_type - (`string `_) + (`string `_) The ML compute instance type + .. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb: volume_size_in_gb - (`int64 `_) + (`int64 `_) The size of the ML storage volume that you want to provision. + @@ -106,8 +119,11 @@ volume_size_in_gb flyteidl.plugins.sagemaker.StoppingCondition -------------------------------------------- -`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ +`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ +This option allows the users to specify a limit to how long a training job can run and +how long the users are willing to wait for a managed spot training job to complete +https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html .. code-block:: json @@ -119,12 +135,18 @@ flyteidl.plugins.sagemaker.StoppingCondition .. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds: max_runtime_in_seconds - (`int64 `_) + (`int64 `_) The maximum length of time in second that the training job can run. + If this value is not specified, the default expiration time will be 1 day + .. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds: max_wait_time_in_seconds - (`int64 `_) + (`int64 `_) The maximum length of time in seconds that the users are willing to wait for a managed spot + training job to complete. + Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the + training job runs, so it must be equal to or greater than max_runtime_in_seconds. + @@ -133,8 +155,9 @@ max_wait_time_in_seconds flyteidl.plugins.sagemaker.TrainingJob -------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ +The spec of a training job .. code-block:: json diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py index 140d64ce4..4cf08f3ab 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py @@ -22,7 +22,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x90\x01\n\x06HPOJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xed\x03\n\x0cHPOJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12^\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12o\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32\x45.flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xa1\x01\n\x17HyperparameterTuningJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\xad\x04\n!HyperparameterTuningSpecification\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12s\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32Z.flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12\x84\x01\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32Z.flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,]) @@ -45,14 +45,14 @@ ], containing_type=None, serialized_options=None, - serialized_start=342, - serialized_end=405, + serialized_start=506, + serialized_end=569, ) _sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE) -_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY = _descriptor.EnumDescriptor( +_HYPERPARAMETERTUNINGSPECIFICATION_HYPERPARAMETERTUNINGSTRATEGY = _descriptor.EnumDescriptor( name='HyperparameterTuningStrategy', - full_name='flyteidl.plugins.sagemaker.HPOJobConfig.HyperparameterTuningStrategy', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy', filename=None, file=DESCRIPTOR, values=[ @@ -67,14 +67,14 @@ ], containing_type=None, serialized_options=None, - serialized_start=941, - serialized_end=997, + serialized_start=1022, + serialized_end=1078, ) -_sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY) +_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGSPECIFICATION_HYPERPARAMETERTUNINGSTRATEGY) -_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE = _descriptor.EnumDescriptor( +_HYPERPARAMETERTUNINGSPECIFICATION_TRAININGJOBEARLYSTOPPINGTYPE = _descriptor.EnumDescriptor( name='TrainingJobEarlyStoppingType', - full_name='flyteidl.plugins.sagemaker.HPOJobConfig.TrainingJobEarlyStoppingType', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType', filename=None, file=DESCRIPTOR, values=[ @@ -89,30 +89,37 @@ ], containing_type=None, serialized_options=None, - serialized_start=999, - serialized_end=1048, + serialized_start=1080, + serialized_end=1129, ) -_sym_db.RegisterEnumDescriptor(_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE) +_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGSPECIFICATION_TRAININGJOBEARLYSTOPPINGTYPE) -_HYPERPARAMETERTUNINGOBJECTIVE = _descriptor.Descriptor( - name='HyperparameterTuningObjective', - full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective', +_HYPERPARAMETERTUNINGJOB = _descriptor.Descriptor( + name='HyperparameterTuningJob', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningJob', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='objective_type', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type', index=0, - number=1, type=14, cpp_type=8, label=1, + name='training_job', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningJob.training_job', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_number_of_training_jobs', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningJob.max_number_of_training_jobs', index=1, + number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='metric_name', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + name='max_parallel_training_jobs', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningJob.max_parallel_training_jobs', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -121,7 +128,6 @@ ], nested_types=[], enum_types=[ - _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE, ], serialized_options=None, is_extendable=False, @@ -130,35 +136,28 @@ oneofs=[ ], serialized_start=171, - serialized_end=405, + serialized_end=332, ) -_HPOJOB = _descriptor.Descriptor( - name='HPOJob', - full_name='flyteidl.plugins.sagemaker.HPOJob', +_HYPERPARAMETERTUNINGOBJECTIVE = _descriptor.Descriptor( + name='HyperparameterTuningObjective', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='training_job', full_name='flyteidl.plugins.sagemaker.HPOJob.training_job', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max_number_of_training_jobs', full_name='flyteidl.plugins.sagemaker.HPOJob.max_number_of_training_jobs', index=1, - number=2, type=3, cpp_type=2, label=1, + name='objective_type', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type', index=0, + number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='max_parallel_training_jobs', full_name='flyteidl.plugins.sagemaker.HPOJob.max_parallel_training_jobs', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + name='metric_name', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -167,6 +166,7 @@ ], nested_types=[], enum_types=[ + _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE, ], serialized_options=None, is_extendable=False, @@ -174,41 +174,41 @@ extension_ranges=[], oneofs=[ ], - serialized_start=408, - serialized_end=552, + serialized_start=335, + serialized_end=569, ) -_HPOJOBCONFIG = _descriptor.Descriptor( - name='HPOJobConfig', - full_name='flyteidl.plugins.sagemaker.HPOJobConfig', +_HYPERPARAMETERTUNINGSPECIFICATION = _descriptor.Descriptor( + name='HyperparameterTuningSpecification', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='hyperparameter_ranges', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.hyperparameter_ranges', index=0, + name='hyperparameter_ranges', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.hyperparameter_ranges', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='tuning_strategy', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.tuning_strategy', index=1, + name='tuning_strategy', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_strategy', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='tuning_objective', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.tuning_objective', index=2, + name='tuning_objective', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_objective', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='training_job_early_stopping_type', full_name='flyteidl.plugins.sagemaker.HPOJobConfig.training_job_early_stopping_type', index=3, + name='training_job_early_stopping_type', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.training_job_early_stopping_type', index=3, number=4, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -219,8 +219,8 @@ ], nested_types=[], enum_types=[ - _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY, - _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE, + _HYPERPARAMETERTUNINGSPECIFICATION_HYPERPARAMETERTUNINGSTRATEGY, + _HYPERPARAMETERTUNINGSPECIFICATION_TRAININGJOBEARLYSTOPPINGTYPE, ], serialized_options=None, is_extendable=False, @@ -228,24 +228,31 @@ extension_ranges=[], oneofs=[ ], - serialized_start=555, - serialized_end=1048, + serialized_start=572, + serialized_end=1129, ) +_HYPERPARAMETERTUNINGJOB.fields_by_name['training_job'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2._TRAININGJOB _HYPERPARAMETERTUNINGOBJECTIVE.fields_by_name['objective_type'].enum_type = _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE.containing_type = _HYPERPARAMETERTUNINGOBJECTIVE -_HPOJOB.fields_by_name['training_job'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2._TRAININGJOB -_HPOJOBCONFIG.fields_by_name['hyperparameter_ranges'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2._PARAMETERRANGES -_HPOJOBCONFIG.fields_by_name['tuning_strategy'].enum_type = _HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY -_HPOJOBCONFIG.fields_by_name['tuning_objective'].message_type = _HYPERPARAMETERTUNINGOBJECTIVE -_HPOJOBCONFIG.fields_by_name['training_job_early_stopping_type'].enum_type = _HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE -_HPOJOBCONFIG_HYPERPARAMETERTUNINGSTRATEGY.containing_type = _HPOJOBCONFIG -_HPOJOBCONFIG_TRAININGJOBEARLYSTOPPINGTYPE.containing_type = _HPOJOBCONFIG +_HYPERPARAMETERTUNINGSPECIFICATION.fields_by_name['hyperparameter_ranges'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2._PARAMETERRANGES +_HYPERPARAMETERTUNINGSPECIFICATION.fields_by_name['tuning_strategy'].enum_type = _HYPERPARAMETERTUNINGSPECIFICATION_HYPERPARAMETERTUNINGSTRATEGY +_HYPERPARAMETERTUNINGSPECIFICATION.fields_by_name['tuning_objective'].message_type = _HYPERPARAMETERTUNINGOBJECTIVE +_HYPERPARAMETERTUNINGSPECIFICATION.fields_by_name['training_job_early_stopping_type'].enum_type = _HYPERPARAMETERTUNINGSPECIFICATION_TRAININGJOBEARLYSTOPPINGTYPE +_HYPERPARAMETERTUNINGSPECIFICATION_HYPERPARAMETERTUNINGSTRATEGY.containing_type = _HYPERPARAMETERTUNINGSPECIFICATION +_HYPERPARAMETERTUNINGSPECIFICATION_TRAININGJOBEARLYSTOPPINGTYPE.containing_type = _HYPERPARAMETERTUNINGSPECIFICATION +DESCRIPTOR.message_types_by_name['HyperparameterTuningJob'] = _HYPERPARAMETERTUNINGJOB DESCRIPTOR.message_types_by_name['HyperparameterTuningObjective'] = _HYPERPARAMETERTUNINGOBJECTIVE -DESCRIPTOR.message_types_by_name['HPOJob'] = _HPOJOB -DESCRIPTOR.message_types_by_name['HPOJobConfig'] = _HPOJOBCONFIG +DESCRIPTOR.message_types_by_name['HyperparameterTuningSpecification'] = _HYPERPARAMETERTUNINGSPECIFICATION _sym_db.RegisterFileDescriptor(DESCRIPTOR) +HyperparameterTuningJob = _reflection.GeneratedProtocolMessageType('HyperparameterTuningJob', (_message.Message,), dict( + DESCRIPTOR = _HYPERPARAMETERTUNINGJOB, + __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + )) +_sym_db.RegisterMessage(HyperparameterTuningJob) + HyperparameterTuningObjective = _reflection.GeneratedProtocolMessageType('HyperparameterTuningObjective', (_message.Message,), dict( DESCRIPTOR = _HYPERPARAMETERTUNINGOBJECTIVE, __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2' @@ -253,19 +260,12 @@ )) _sym_db.RegisterMessage(HyperparameterTuningObjective) -HPOJob = _reflection.GeneratedProtocolMessageType('HPOJob', (_message.Message,), dict( - DESCRIPTOR = _HPOJOB, - __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJob) - )) -_sym_db.RegisterMessage(HPOJob) - -HPOJobConfig = _reflection.GeneratedProtocolMessageType('HPOJobConfig', (_message.Message,), dict( - DESCRIPTOR = _HPOJOBCONFIG, +HyperparameterTuningSpecification = _reflection.GeneratedProtocolMessageType('HyperparameterTuningSpecification', (_message.Message,), dict( + DESCRIPTOR = _HYPERPARAMETERTUNINGSPECIFICATION, __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HPOJobConfig) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) )) -_sym_db.RegisterMessage(HPOJobConfig) +_sym_db.RegisterMessage(HyperparameterTuningSpecification) DESCRIPTOR._options = None diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py index 581c4359c..226aa6d75 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py @@ -21,7 +21,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xc3\x02\n\x16\x41lgorithmSpecification\x12\x39\n\ninput_mode\x18\x01 \x01(\x0e\x32%.flyteidl.plugins.sagemaker.InputMode\x12\x41\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32).flyteidl.plugins.sagemaker.AlgorithmName\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"]\n\x11TrainingJobConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"\xc5\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12J\n\x13training_job_config\x18\x02 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.TrainingJobConfig\x12\x15\n\rinterruptible\x18\x04 \x01(\x08*\x1f\n\tInputMode\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01*(\n\rAlgorithmName\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xc3\x02\n\x16\x41lgorithmSpecification\x12\x39\n\ninput_mode\x18\x01 \x01(\x0e\x32%.flyteidl.plugins.sagemaker.InputMode\x12\x41\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32).flyteidl.plugins.sagemaker.AlgorithmName\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"]\n\x11TrainingJobConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"\xc5\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12J\n\x13training_job_config\x18\x02 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.TrainingJobConfig\x12\x15\n\rinterruptible\x18\x03 \x01(\x08*\x1f\n\tInputMode\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01*(\n\rAlgorithmName\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') ) _INPUTMODE = _descriptor.EnumDescriptor( @@ -272,7 +272,7 @@ serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='interruptible', full_name='flyteidl.plugins.sagemaker.TrainingJob.interruptible', index=2, - number=4, type=8, cpp_type=7, label=1, + number=3, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, diff --git a/package.json b/package.json index cc75f2f23..4b36f9959 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.18.0b2", + "version": "0.18.0", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/protos/flyteidl/plugins/sagemaker/hpo_job.proto b/protos/flyteidl/plugins/sagemaker/hpo_job.proto index 03e2df15d..54c9a8bc2 100644 --- a/protos/flyteidl/plugins/sagemaker/hpo_job.proto +++ b/protos/flyteidl/plugins/sagemaker/hpo_job.proto @@ -7,6 +7,19 @@ option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; import "flyteidl/plugins/sagemaker/parameter_ranges.proto"; import "flyteidl/plugins/sagemaker/training_job.proto"; +// The hyperparameter tuning job +message HyperparameterTuningJob { + // The underlying training job that the hyperparameter tuning job will launch during the process + TrainingJob training_job = 1; // TODO: This hierarchical definition is tricky! + + // The maximum number of training jobs that an hpo job can launch. For resource limit purpose. + int64 max_number_of_training_jobs = 2; + + // The maximum number of concurrent training job that an hpo job can launch + int64 max_parallel_training_jobs = 3; +} + +// The objective of the hyperparameter tuning message HyperparameterTuningObjective { enum HyperparameterTuningObjectiveType { MINIMIZE = 0; @@ -14,18 +27,15 @@ message HyperparameterTuningObjective { } HyperparameterTuningObjectiveType objective_type = 1; + // The target metric name, which is the user-defined name of the metric specified in the + // training job's algorithm specification string metric_name = 2; } -message HPOJob { - TrainingJob training_job = 1; // TODO: will this change output? should it be an input instead of a part of the task spec? This hierarchical definition is tricky!!!!!!! - int64 max_number_of_training_jobs = 2; - int64 max_parallel_training_jobs = 3; -} +// The specification of the hyperparameter tuning process +message HyperparameterTuningSpecification { -message HPOJobConfig { ParameterRanges hyperparameter_ranges = 1; - enum HyperparameterTuningStrategy { BAYESIAN = 0; RANDOM = 1; @@ -34,6 +44,10 @@ message HPOJobConfig { HyperparameterTuningStrategy tuning_strategy = 2; HyperparameterTuningObjective tuning_objective = 3; + // When the training jobs launched by the hyperparameter tuning job are not improving significantly, + // a hyperparameter tuning job can be stopping early. + // Note that there's only a subset of built-in algorithms that supports early stopping. + // see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html enum TrainingJobEarlyStoppingType { OFF = 0; AUTO = 1; diff --git a/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto b/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto index 480a90169..c7be7b1d7 100644 --- a/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto +++ b/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto @@ -4,6 +4,8 @@ package flyteidl.plugins.sagemaker; option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; +// HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html enum HyperparameterScalingType { AUTO = 0; LINEAR = 1; @@ -11,18 +13,24 @@ enum HyperparameterScalingType { REVERSELOGARITHMIC = 3; } +// ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing +// users to specify the search space of a floating-point hyperparameter message ContinuousParameterRange { double max_value = 1; double min_value = 2; HyperparameterScalingType scaling_type = 3; } +// IntegerParameterRange refers to a discrete range of hyperparameter values, allowing +// users to specify the search space of an integer hyperparameter message IntegerParameterRange { int64 max_value = 1; int64 min_value = 2; HyperparameterScalingType scaling_type = 3; } +// ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing +// users to specify the search space of a floating-point hyperparameter message CategoricalParameterRange { repeated string values = 1; } @@ -35,6 +43,7 @@ message ParameterRangeOneOf { } } +// ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range message ParameterRanges { map parameter_range_map = 1; } \ No newline at end of file diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto index dc4a6d52c..6f76bbf6a 100644 --- a/protos/flyteidl/plugins/sagemaker/training_job.proto +++ b/protos/flyteidl/plugins/sagemaker/training_job.proto @@ -16,30 +16,55 @@ enum AlgorithmName { } message AlgorithmSpecification { + // The input mode can be either PIPE or FILE InputMode input_mode = 1; + // The algorithm name is used for deciding which pre-built image to point to + // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen AlgorithmName algorithm_name = 2; + // The algorithm version field is used for deciding which pre-built image to point to + // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen string algorithm_version = 3; message MetricDefinition { + // User-defined name of the metric string name = 1; + // SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics string regex = 2; } + // A list of metric definitions for SageMaker to evaluate/track on the progress of the training job + // https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html repeated MetricDefinition metric_definitions = 4; } message TrainingJobConfig { - int64 instance_count = 1; // For multi-node training, not multi-GPU training + // The number of ML compute instances to use. For distributed training, provide a value greater than 1. + // This is for multi-node training, not multi-GPU training + int64 instance_count = 1; + // The ML compute instance type string instance_type = 2; + // The size of the ML storage volume that you want to provision. int64 volume_size_in_gb = 3; } +// This option allows the users to specify a limit to how long a training job can run and +// how long the users are willing to wait for a managed spot training job to complete +// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html message StoppingCondition { + + // The maximum length of time in second that the training job can run. + // If this value is not specified, the default expiration time will be 1 day int64 max_runtime_in_seconds = 1; + + // The maximum length of time in seconds that the users are willing to wait for a managed spot + // training job to complete. + // Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the + // training job runs, so it must be equal to or greater than max_runtime_in_seconds. int64 max_wait_time_in_seconds = 2; } +// The spec of a training job message TrainingJob { AlgorithmSpecification algorithm_specification = 1; TrainingJobConfig training_job_config = 2; - bool interruptible = 4; + bool interruptible = 3; } \ No newline at end of file diff --git a/setup.py b/setup.py index 92a7a97fa..ee6260fd0 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.18.0b2' +__version__ = '0.18.0' setup( name='flyteidl', From 793ac60896b90306f8fc8acf6b295f4699d2c8d9 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Thu, 23 Jul 2020 22:05:45 -0700 Subject: [PATCH 35/64] rename hpo_job.proto to hyperparameter_tuning_job.proto --- gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go | 4 ++-- gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go | 2 +- gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py | 6 +++--- .../{hpo_job.proto => hyperparameter_tuning_job.proto} | 0 4 files changed, 6 insertions(+), 6 deletions(-) rename protos/flyteidl/plugins/sagemaker/{hpo_job.proto => hyperparameter_tuning_job.proto} (100%) diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go index f3d171e6e..f4c10c826 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/hpo_job.proto +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto package plugins @@ -282,7 +282,7 @@ func init() { } func init() { - proto.RegisterFile("flyteidl/plugins/sagemaker/hpo_job.proto", fileDescriptor_50903433b4c088ac) + proto.RegisterFile("flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto", fileDescriptor_50903433b4c088ac) } var fileDescriptor_50903433b4c088ac = []byte{ diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go index 656c10109..81f526f73 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-validate. DO NOT EDIT. -// source: flyteidl/plugins/sagemaker/hpo_job.proto +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto package plugins diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py index 4cf08f3ab..44e3b5fc5 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/sagemaker/hpo_job.proto +# source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -18,11 +18,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='flyteidl/plugins/sagemaker/hpo_job.proto', + name='flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto', package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hpo_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xa1\x01\n\x17HyperparameterTuningJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\xad\x04\n!HyperparameterTuningSpecification\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12s\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32Z.flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12\x84\x01\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32Z.flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xa1\x01\n\x17HyperparameterTuningJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\xad\x04\n!HyperparameterTuningSpecification\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12s\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32Z.flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12\x84\x01\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32Z.flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,]) diff --git a/protos/flyteidl/plugins/sagemaker/hpo_job.proto b/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto similarity index 100% rename from protos/flyteidl/plugins/sagemaker/hpo_job.proto rename to protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto From 8caba618301ffab1359022483673fd0fd26e7d86 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Thu, 23 Jul 2020 22:08:23 -0700 Subject: [PATCH 36/64] generate with the renamed proto --- ...c => hyperparameter_tuning_job.grpc.pb.cc} | 6 +- ....h => hyperparameter_tuning_job.grpc.pb.h} | 10 +- ....pb.cc => hyperparameter_tuning_job.pb.cc} | 163 +++---- ...ob.pb.h => hyperparameter_tuning_job.pb.h} | 20 +- ....pb.go => hyperparameter_tuning_job.pb.go} | 91 ++-- ... hyperparameter_tuning_job.pb.validate.go} | 2 +- ...=> HyperparameterTuningJobOuterClass.java} | 415 +++++++++--------- ...st => hyperparameter_tuning_job.proto.rst} | 18 +- .../flyteidl/plugins/sagemaker/index.rst | 2 +- ...b2.py => hyperparameter_tuning_job_pb2.py} | 32 +- ... => hyperparameter_tuning_job_pb2_grpc.py} | 0 11 files changed, 381 insertions(+), 378 deletions(-) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{hpo_job.grpc.pb.cc => hyperparameter_tuning_job.grpc.pb.cc} (77%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{hpo_job.grpc.pb.h => hyperparameter_tuning_job.grpc.pb.h} (73%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{hpo_job.pb.cc => hyperparameter_tuning_job.pb.cc} (91%) rename gen/pb-cpp/flyteidl/plugins/sagemaker/{hpo_job.pb.h => hyperparameter_tuning_job.pb.h} (98%) rename gen/pb-go/flyteidl/plugins/sagemaker/{hpo_job.pb.go => hyperparameter_tuning_job.pb.go} (77%) rename gen/pb-go/flyteidl/plugins/sagemaker/{hpo_job.pb.validate.go => hyperparameter_tuning_job.pb.validate.go} (98%) rename gen/pb-java/flyteidl/plugins/sagemaker/{HpoJob.java => HyperparameterTuningJobOuterClass.java} (77%) rename gen/pb-protodoc/flyteidl/plugins/sagemaker/{hpo_job.proto.rst => hyperparameter_tuning_job.proto.rst} (91%) rename gen/pb_python/flyteidl/plugins/sagemaker/{hpo_job_pb2.py => hyperparameter_tuning_job_pb2.py} (95%) rename gen/pb_python/flyteidl/plugins/sagemaker/{hpo_job_pb2_grpc.py => hyperparameter_tuning_job_pb2_grpc.py} (100%) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.cc similarity index 77% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.cc index e7c373c24..a47db3745 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.cc @@ -1,9 +1,9 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/hpo_job.proto +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto -#include "flyteidl/plugins/sagemaker/hpo_job.pb.h" -#include "flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h" +#include "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h" +#include "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.h" #include #include diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.h similarity index 73% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.h index 13d190835..c01143b03 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.h @@ -1,10 +1,10 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/plugins/sagemaker/hpo_job.proto -#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto__INCLUDED +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto__INCLUDED -#include "flyteidl/plugins/sagemaker/hpo_job.pb.h" +#include "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h" #include #include @@ -46,4 +46,4 @@ namespace sagemaker { } // namespace flyteidl -#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto__INCLUDED +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.cc similarity index 91% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc rename to gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.cc index df78a6af1..f3ec83377 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpo_job.proto +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto -#include "flyteidl/plugins/sagemaker/hpo_job.pb.h" +#include "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h" #include @@ -16,7 +16,7 @@ // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; namespace flyteidl { @@ -37,7 +37,7 @@ class HyperparameterTuningSpecificationDefaultTypeInternal { } // namespace sagemaker } // namespace plugins } // namespace flyteidl -static void InitDefaultsHyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { +static void InitDefaultsHyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -48,11 +48,11 @@ static void InitDefaultsHyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2 ::flyteidl::plugins::sagemaker::HyperparameterTuningJob::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { +::google::protobuf::internal::SCCInfo<1> scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, { &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; -static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { +static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -63,10 +63,10 @@ static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagem ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, {}}; -static void InitDefaultsHyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { +static void InitDefaultsHyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -77,22 +77,22 @@ static void InitDefaultsHyperparameterTuningSpecification_flyteidl_2fplugins_2fs ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<2> scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto}, { +::google::protobuf::internal::SCCInfo<2> scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, { &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, - &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base,}}; + &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base,}}; -void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[3]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[3]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = nullptr; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[3]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[3]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJob, _internal_metadata_), ~0u, // no _extensions_ @@ -130,67 +130,68 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningSpecification_default_instance_), }; -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, "flyteidl/plugins/sagemaker/hpo_job.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, }; -const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[] = - "\n(flyteidl/plugins/sagemaker/hpo_job.pro" - "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" - "/plugins/sagemaker/parameter_ranges.prot" - "o\032-flyteidl/plugins/sagemaker/training_j" - "ob.proto\"\241\001\n\027HyperparameterTuningJob\022=\n\014" - "training_job\030\001 \001(\0132\'.flyteidl.plugins.sa" - "gemaker.TrainingJob\022#\n\033max_number_of_tra" - "ining_jobs\030\002 \001(\003\022\"\n\032max_parallel_trainin" - "g_jobs\030\003 \001(\003\"\352\001\n\035HyperparameterTuningObj" - "ective\022s\n\016objective_type\030\001 \001(\0162[.flyteid" - "l.plugins.sagemaker.HyperparameterTuning" - "Objective.HyperparameterTuningObjectiveT" - "ype\022\023\n\013metric_name\030\002 \001(\t\"\?\n!Hyperparamet" - "erTuningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010M" - "AXIMIZE\020\001\"\255\004\n!HyperparameterTuningSpecif" - "ication\022J\n\025hyperparameter_ranges\030\001 \001(\0132+" - ".flyteidl.plugins.sagemaker.ParameterRan" - "ges\022s\n\017tuning_strategy\030\002 \001(\0162Z.flyteidl." - "plugins.sagemaker.HyperparameterTuningSp" - "ecification.HyperparameterTuningStrategy" - "\022S\n\020tuning_objective\030\003 \001(\01329.flyteidl.pl" - "ugins.sagemaker.HyperparameterTuningObje" - "ctive\022\204\001\n training_job_early_stopping_ty" - "pe\030\004 \001(\0162Z.flyteidl.plugins.sagemaker.Hy" - "perparameterTuningSpecification.Training" - "JobEarlyStoppingType\"8\n\034HyperparameterTu" - "ningStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1" - "\n\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022" - "\010\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/ge" - "n/pb-go/flyteidl/pluginsb\006proto3" +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[] = + "\n:flyteidl/plugins/sagemaker/hyperparame" + "ter_tuning_job.proto\022\032flyteidl.plugins.s" + "agemaker\0321flyteidl/plugins/sagemaker/par" + "ameter_ranges.proto\032-flyteidl/plugins/sa" + "gemaker/training_job.proto\"\241\001\n\027Hyperpara" + "meterTuningJob\022=\n\014training_job\030\001 \001(\0132\'.f" + "lyteidl.plugins.sagemaker.TrainingJob\022#\n" + "\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032ma" + "x_parallel_training_jobs\030\003 \001(\003\"\352\001\n\035Hyper" + "parameterTuningObjective\022s\n\016objective_ty" + "pe\030\001 \001(\0162[.flyteidl.plugins.sagemaker.Hy" + "perparameterTuningObjective.Hyperparamet" + "erTuningObjectiveType\022\023\n\013metric_name\030\002 \001" + "(\t\"\?\n!HyperparameterTuningObjectiveType\022" + "\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\255\004\n!Hyperpar" + "ameterTuningSpecification\022J\n\025hyperparame" + "ter_ranges\030\001 \001(\0132+.flyteidl.plugins.sage" + "maker.ParameterRanges\022s\n\017tuning_strategy" + "\030\002 \001(\0162Z.flyteidl.plugins.sagemaker.Hype" + "rparameterTuningSpecification.Hyperparam" + "eterTuningStrategy\022S\n\020tuning_objective\030\003" + " \001(\01329.flyteidl.plugins.sagemaker.Hyperp" + "arameterTuningObjective\022\204\001\n training_job" + "_early_stopping_type\030\004 \001(\0162Z.flyteidl.pl" + "ugins.sagemaker.HyperparameterTuningSpec" + "ification.TrainingJobEarlyStoppingType\"8" + "\n\034HyperparameterTuningStrategy\022\014\n\010BAYESI" + "AN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobEarlyStop" + "pingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001B5Z3github.co" + "m/lyft/flyteidl/gen/pb-go/flyteidl/plugi" + "nsb\006proto3" ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, - "flyteidl/plugins/sagemaker/hpo_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, 1192, +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, + "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, 1210, }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto() { +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() { static constexpr ::google::protobuf::internal::InitFunc deps[2] = { ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto, deps, 2); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, deps, 2); } // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto(); return true; }(); +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto(); return true; }(); namespace flyteidl { namespace plugins { namespace sagemaker { const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[0]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[0]; } bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(int value) { switch (value) { @@ -210,8 +211,8 @@ const HyperparameterTuningObjective_HyperparameterTuningObjectiveType Hyperparam const int HyperparameterTuningObjective::HyperparameterTuningObjectiveType_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 const ::google::protobuf::EnumDescriptor* HyperparameterTuningSpecification_HyperparameterTuningStrategy_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[1]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[1]; } bool HyperparameterTuningSpecification_HyperparameterTuningStrategy_IsValid(int value) { switch (value) { @@ -231,8 +232,8 @@ const HyperparameterTuningSpecification_HyperparameterTuningStrategy Hyperparame const int HyperparameterTuningSpecification::HyperparameterTuningStrategy_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 const ::google::protobuf::EnumDescriptor* HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[2]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[2]; } bool HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_IsValid(int value) { switch (value) { @@ -301,7 +302,7 @@ HyperparameterTuningJob::HyperparameterTuningJob(const HyperparameterTuningJob& void HyperparameterTuningJob::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + &scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); ::memset(&training_job_, 0, static_cast( reinterpret_cast(&max_parallel_training_jobs_) - reinterpret_cast(&training_job_)) + sizeof(max_parallel_training_jobs_)); @@ -320,7 +321,7 @@ void HyperparameterTuningJob::SetCachedSize(int size) const { _cached_size_.Set(size); } const HyperparameterTuningJob& HyperparameterTuningJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); return *internal_default_instance(); } @@ -632,8 +633,8 @@ void HyperparameterTuningJob::InternalSwap(HyperparameterTuningJob* other) { } ::google::protobuf::Metadata HyperparameterTuningJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[kIndexInFileMessages]; } @@ -669,7 +670,7 @@ HyperparameterTuningObjective::HyperparameterTuningObjective(const Hyperparamete void HyperparameterTuningObjective::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); objective_type_ = 0; } @@ -687,7 +688,7 @@ void HyperparameterTuningObjective::SetCachedSize(int size) const { _cached_size_.Set(size); } const HyperparameterTuningObjective& HyperparameterTuningObjective::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); return *internal_default_instance(); } @@ -977,8 +978,8 @@ void HyperparameterTuningObjective::InternalSwap(HyperparameterTuningObjective* } ::google::protobuf::Metadata HyperparameterTuningObjective::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[kIndexInFileMessages]; } @@ -1044,7 +1045,7 @@ HyperparameterTuningSpecification::HyperparameterTuningSpecification(const Hyper void HyperparameterTuningSpecification::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + &scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); ::memset(&hyperparameter_ranges_, 0, static_cast( reinterpret_cast(&training_job_early_stopping_type_) - reinterpret_cast(&hyperparameter_ranges_)) + sizeof(training_job_early_stopping_type_)); @@ -1064,7 +1065,7 @@ void HyperparameterTuningSpecification::SetCachedSize(int size) const { _cached_size_.Set(size); } const HyperparameterTuningSpecification& HyperparameterTuningSpecification::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); return *internal_default_instance(); } @@ -1434,8 +1435,8 @@ void HyperparameterTuningSpecification::InternalSwap(HyperparameterTuningSpecifi } ::google::protobuf::Metadata HyperparameterTuningSpecification::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[kIndexInFileMessages]; } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h similarity index 98% rename from gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h rename to gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h index c04f92aca..d4921de0c 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hpo_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h @@ -1,8 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpo_job.proto +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto #include #include @@ -36,10 +36,10 @@ #include "flyteidl/plugins/sagemaker/training_job.pb.h" // @@protoc_insertion_point(includes) #include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto // Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto { +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto { static const ::google::protobuf::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] @@ -50,7 +50,7 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto { static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; }; -void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto(); +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto(); namespace flyteidl { namespace plugins { namespace sagemaker { @@ -267,7 +267,7 @@ class HyperparameterTuningJob final : ::google::protobuf::int64 max_number_of_training_jobs_; ::google::protobuf::int64 max_parallel_training_jobs_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto; }; // ------------------------------------------------------------------- @@ -420,7 +420,7 @@ class HyperparameterTuningObjective final : ::google::protobuf::internal::ArenaStringPtr metric_name_; int objective_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto; }; // ------------------------------------------------------------------- @@ -611,7 +611,7 @@ class HyperparameterTuningSpecification final : int tuning_strategy_; int training_job_early_stopping_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto; }; // =================================================================== @@ -935,4 +935,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker:: // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhpo_5fjob_2eproto +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go similarity index 77% rename from gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go rename to gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go index f4c10c826..9ef499df6 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go @@ -42,7 +42,7 @@ func (x HyperparameterTuningObjective_HyperparameterTuningObjectiveType) String( } func (HyperparameterTuningObjective_HyperparameterTuningObjectiveType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{1, 0} + return fileDescriptor_84374f4d1322c4ba, []int{1, 0} } type HyperparameterTuningSpecification_HyperparameterTuningStrategy int32 @@ -67,7 +67,7 @@ func (x HyperparameterTuningSpecification_HyperparameterTuningStrategy) String() } func (HyperparameterTuningSpecification_HyperparameterTuningStrategy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{2, 0} + return fileDescriptor_84374f4d1322c4ba, []int{2, 0} } // When the training jobs launched by the hyperparameter tuning job are not improving significantly, @@ -96,7 +96,7 @@ func (x HyperparameterTuningSpecification_TrainingJobEarlyStoppingType) String() } func (HyperparameterTuningSpecification_TrainingJobEarlyStoppingType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{2, 1} + return fileDescriptor_84374f4d1322c4ba, []int{2, 1} } // The hyperparameter tuning job @@ -116,7 +116,7 @@ func (m *HyperparameterTuningJob) Reset() { *m = HyperparameterTuningJob func (m *HyperparameterTuningJob) String() string { return proto.CompactTextString(m) } func (*HyperparameterTuningJob) ProtoMessage() {} func (*HyperparameterTuningJob) Descriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{0} + return fileDescriptor_84374f4d1322c4ba, []int{0} } func (m *HyperparameterTuningJob) XXX_Unmarshal(b []byte) error { @@ -173,7 +173,7 @@ func (m *HyperparameterTuningObjective) Reset() { *m = HyperparameterTun func (m *HyperparameterTuningObjective) String() string { return proto.CompactTextString(m) } func (*HyperparameterTuningObjective) ProtoMessage() {} func (*HyperparameterTuningObjective) Descriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{1} + return fileDescriptor_84374f4d1322c4ba, []int{1} } func (m *HyperparameterTuningObjective) XXX_Unmarshal(b []byte) error { @@ -223,7 +223,7 @@ func (m *HyperparameterTuningSpecification) Reset() { *m = Hyperparamete func (m *HyperparameterTuningSpecification) String() string { return proto.CompactTextString(m) } func (*HyperparameterTuningSpecification) ProtoMessage() {} func (*HyperparameterTuningSpecification) Descriptor() ([]byte, []int) { - return fileDescriptor_50903433b4c088ac, []int{2} + return fileDescriptor_84374f4d1322c4ba, []int{2} } func (m *HyperparameterTuningSpecification) XXX_Unmarshal(b []byte) error { @@ -282,43 +282,44 @@ func init() { } func init() { - proto.RegisterFile("flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto", fileDescriptor_50903433b4c088ac) -} - -var fileDescriptor_50903433b4c088ac = []byte{ - // 543 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x61, 0x6b, 0xd3, 0x40, - 0x18, 0x5e, 0xd6, 0x39, 0xe7, 0xdb, 0x59, 0xc3, 0xa1, 0x6c, 0xd4, 0x8a, 0x35, 0x5f, 0x2c, 0xc8, - 0x12, 0xd6, 0x21, 0x28, 0x0a, 0xd2, 0x61, 0x87, 0x2d, 0xb4, 0x1d, 0x69, 0x05, 0xad, 0x1f, 0xe2, - 0xa5, 0xbb, 0xa6, 0x37, 0x93, 0xdc, 0x71, 0xb9, 0xca, 0xf2, 0xd5, 0x81, 0x3f, 0xc4, 0x5f, 0xe6, - 0x4f, 0x91, 0x5c, 0xd3, 0x34, 0x1d, 0x35, 0xa2, 0xf8, 0xf1, 0xbd, 0x7b, 0x9e, 0xe7, 0x7d, 0x9f, - 0xf7, 0x1e, 0x0e, 0x1a, 0x53, 0x3f, 0x96, 0x84, 0x5e, 0xf8, 0x16, 0xf7, 0xe7, 0x1e, 0x0d, 0x23, - 0x2b, 0xc2, 0x1e, 0x09, 0xf0, 0x17, 0x22, 0xac, 0x19, 0x67, 0xce, 0x25, 0x73, 0x4d, 0x2e, 0x98, - 0x64, 0xa8, 0xba, 0x44, 0x9a, 0x29, 0xd2, 0xcc, 0x90, 0xd5, 0xe3, 0x02, 0x15, 0x8e, 0x05, 0x0e, - 0x88, 0x24, 0xc2, 0x11, 0x38, 0xf4, 0x48, 0xb4, 0x90, 0xab, 0x1e, 0x15, 0x50, 0xa4, 0xc0, 0x34, - 0xa4, 0xa1, 0xb7, 0xea, 0x6e, 0xfc, 0xd4, 0xe0, 0xe0, 0x5d, 0xcc, 0x89, 0xc8, 0xe4, 0x46, 0xf3, - 0x04, 0xd2, 0x65, 0x2e, 0xea, 0xc2, 0x7e, 0x9e, 0x71, 0xa8, 0xd5, 0xb5, 0x46, 0xb9, 0xf9, 0xd4, - 0xfc, 0xfd, 0xc0, 0xe6, 0x28, 0xc5, 0x77, 0x99, 0x6b, 0x97, 0xe5, 0xaa, 0x40, 0xaf, 0xe1, 0x61, - 0x80, 0xaf, 0x9c, 0x70, 0x1e, 0xb8, 0x44, 0x38, 0x6c, 0xea, 0xe4, 0x95, 0xa3, 0xc3, 0xed, 0xba, - 0xd6, 0x28, 0xd9, 0x07, 0x01, 0xbe, 0xea, 0x2b, 0xc4, 0x60, 0x9a, 0x53, 0x8a, 0xd0, 0x2b, 0xa8, - 0x26, 0xec, 0x64, 0x46, 0xdf, 0x27, 0xfe, 0x0d, 0x72, 0x29, 0x23, 0x9f, 0xa7, 0x80, 0x3c, 0xd9, - 0xf8, 0xbe, 0x0d, 0x8f, 0x36, 0x59, 0x1c, 0xb8, 0x97, 0x64, 0x22, 0xe9, 0x57, 0x82, 0xbe, 0x69, - 0x50, 0x61, 0xcb, 0xca, 0x91, 0x31, 0x27, 0xca, 0x6b, 0xa5, 0xf9, 0xa9, 0xc8, 0x6b, 0xa1, 0x66, - 0xf1, 0xed, 0x28, 0xe6, 0xc4, 0xbe, 0xcb, 0xf2, 0x25, 0x7a, 0x0c, 0xe5, 0x80, 0x48, 0x41, 0x27, - 0x4e, 0x88, 0x03, 0xa2, 0x36, 0x72, 0xc7, 0x86, 0xc5, 0x51, 0x1f, 0x07, 0xc4, 0x78, 0x03, 0x4f, - 0xfe, 0x28, 0x8a, 0xf6, 0x61, 0xaf, 0xd7, 0xe9, 0x77, 0x7a, 0x9d, 0x71, 0x5b, 0xdf, 0x52, 0x55, - 0xeb, 0xc3, 0xa2, 0xd2, 0x8c, 0xeb, 0x5b, 0x9b, 0x15, 0x86, 0x9c, 0x4c, 0xe8, 0x94, 0x4e, 0xb0, - 0xa4, 0x2c, 0x44, 0x9f, 0xe1, 0xc1, 0x6c, 0x0d, 0x94, 0xe6, 0x2b, 0x7d, 0xfe, 0x67, 0x45, 0x2b, - 0x39, 0x5f, 0x72, 0x6c, 0x45, 0xb1, 0xef, 0xaf, 0x2b, 0x2d, 0x4e, 0xd1, 0xb5, 0x06, 0xf7, 0xa4, - 0xea, 0xec, 0x44, 0x52, 0x60, 0x49, 0xbc, 0x58, 0xd9, 0xad, 0x34, 0xc7, 0x7f, 0xbb, 0xef, 0xb5, - 0xd1, 0x37, 0x23, 0xd2, 0x0e, 0x76, 0x45, 0xae, 0xd5, 0xe8, 0x02, 0xf4, 0x74, 0x88, 0xec, 0x1d, - 0x54, 0x92, 0xca, 0xcd, 0x97, 0xff, 0xfc, 0xea, 0x76, 0xea, 0x6b, 0x15, 0xad, 0x1f, 0x1a, 0xd4, - 0xf3, 0x69, 0x75, 0x08, 0x16, 0x7e, 0xec, 0x44, 0x92, 0x71, 0x9e, 0x1c, 0xa9, 0xb0, 0xed, 0xfc, - 0x0f, 0xf3, 0xb9, 0xcc, 0xb7, 0x93, 0x1e, 0xc3, 0xb4, 0x85, 0xca, 0x5a, 0x4d, 0x16, 0xdc, 0x1a, - 0x2f, 0xa0, 0x56, 0xb4, 0xba, 0x24, 0x46, 0xa7, 0xad, 0x8f, 0xed, 0x61, 0xa7, 0xd5, 0xd7, 0xb7, - 0x10, 0xc0, 0xae, 0xdd, 0xea, 0xbf, 0x1d, 0xf4, 0x74, 0xcd, 0x38, 0x86, 0x5a, 0x51, 0x5f, 0x74, - 0x1b, 0x4a, 0x83, 0xb3, 0x33, 0x7d, 0x0b, 0xed, 0xc1, 0x4e, 0xeb, 0xfd, 0x68, 0xa0, 0x6b, 0xa7, - 0xcf, 0xc7, 0x27, 0x1e, 0x95, 0xb3, 0xb9, 0x6b, 0x4e, 0x58, 0x60, 0xf9, 0xf1, 0x54, 0x5a, 0xd9, - 0x97, 0xe5, 0x91, 0xd0, 0xe2, 0xee, 0x91, 0xc7, 0xac, 0x9b, 0xbf, 0x98, 0xbb, 0xab, 0xfe, 0xab, - 0x93, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x2f, 0x19, 0xc5, 0x59, 0x05, 0x00, 0x00, + proto.RegisterFile("flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto", fileDescriptor_84374f4d1322c4ba) +} + +var fileDescriptor_84374f4d1322c4ba = []byte{ + // 546 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xdd, 0x6e, 0xd3, 0x4c, + 0x10, 0x8d, 0x9b, 0x7e, 0xfd, 0xca, 0xa4, 0x04, 0x6b, 0x05, 0x6a, 0x15, 0x82, 0x08, 0xbe, 0xa1, + 0x12, 0xaa, 0xad, 0xa6, 0x42, 0xe2, 0x4f, 0x42, 0xa9, 0x48, 0x45, 0x22, 0x25, 0xa9, 0x9c, 0x20, + 0x41, 0xb8, 0x30, 0xeb, 0x74, 0xe2, 0xba, 0xd8, 0xde, 0xd5, 0x7a, 0x83, 0xea, 0x5b, 0x2a, 0xf1, + 0x20, 0x3c, 0x19, 0x8f, 0x82, 0xb2, 0x71, 0x12, 0x27, 0x0a, 0x46, 0x20, 0x2e, 0x67, 0x3d, 0xe7, + 0xcc, 0x39, 0xb3, 0xc7, 0x0b, 0x2f, 0xc6, 0x41, 0x22, 0xd1, 0xbf, 0x08, 0x2c, 0x1e, 0x4c, 0x3c, + 0x3f, 0x8a, 0xad, 0x98, 0x7a, 0x18, 0xd2, 0xcf, 0x28, 0xac, 0xcb, 0x84, 0xa3, 0xe0, 0x54, 0xd0, + 0x10, 0x25, 0x0a, 0x47, 0x4e, 0x22, 0x3f, 0xf2, 0x9c, 0x2b, 0xe6, 0x9a, 0x5c, 0x30, 0xc9, 0x48, + 0x65, 0x8e, 0x35, 0x53, 0xac, 0xb9, 0xc0, 0x56, 0x8e, 0x73, 0x78, 0x97, 0x94, 0x82, 0x46, 0x1e, + 0xc6, 0x33, 0xba, 0xca, 0x51, 0x0e, 0x44, 0x0a, 0xea, 0xaf, 0x4e, 0x37, 0x7e, 0x68, 0xb0, 0xff, + 0x76, 0x45, 0xe1, 0x40, 0x09, 0x6c, 0x33, 0x97, 0xb4, 0x61, 0x2f, 0x8b, 0x38, 0xd0, 0x6a, 0xda, + 0x61, 0xa9, 0xfe, 0xd8, 0xfc, 0xb5, 0x60, 0x73, 0x90, 0xf6, 0xb7, 0x99, 0x6b, 0x97, 0xe4, 0xb2, + 0x20, 0xaf, 0xe0, 0x7e, 0x48, 0xaf, 0x9d, 0x68, 0x12, 0xba, 0x28, 0x1c, 0x36, 0x76, 0xb2, 0xcc, + 0xf1, 0xc1, 0x56, 0x4d, 0x3b, 0x2c, 0xda, 0xfb, 0x21, 0xbd, 0xee, 0xaa, 0x8e, 0xde, 0x38, 0xc3, + 0x14, 0x93, 0x97, 0x50, 0x99, 0xa2, 0xa7, 0x1a, 0x83, 0x00, 0x83, 0x35, 0x70, 0x71, 0x01, 0x3e, + 0x4f, 0x1b, 0xb2, 0x60, 0xe3, 0xdb, 0x16, 0x3c, 0xd8, 0x64, 0xb1, 0xe7, 0x5e, 0xe1, 0x48, 0xfa, + 0x5f, 0x90, 0x7c, 0xd5, 0xa0, 0xcc, 0xe6, 0x95, 0x23, 0x13, 0x8e, 0xca, 0x6b, 0xb9, 0xfe, 0x31, + 0xcf, 0x6b, 0x2e, 0x67, 0xfe, 0xd7, 0x41, 0xc2, 0xd1, 0xbe, 0xcd, 0xb2, 0x25, 0x79, 0x08, 0xa5, + 0x10, 0xa5, 0xf0, 0x47, 0x4e, 0x44, 0x43, 0x54, 0x1b, 0xb9, 0x65, 0xc3, 0xec, 0xa8, 0x4b, 0x43, + 0x34, 0x5e, 0xc3, 0xa3, 0xdf, 0x92, 0x92, 0x3d, 0xd8, 0xed, 0xb4, 0xba, 0xad, 0x4e, 0x6b, 0xd8, + 0xd4, 0x0b, 0xaa, 0x6a, 0xbc, 0x9f, 0x55, 0x9a, 0x71, 0xf3, 0xdf, 0x66, 0x86, 0x3e, 0xc7, 0x91, + 0x3f, 0xf6, 0x47, 0x54, 0xfa, 0x2c, 0x22, 0x9f, 0xe0, 0xde, 0x5a, 0x64, 0x67, 0xf9, 0x4a, 0xaf, + 0xff, 0x49, 0xde, 0x4a, 0xce, 0xe7, 0x18, 0x5b, 0x41, 0xec, 0xbb, 0xab, 0x4c, 0xb3, 0x53, 0x72, + 0xa3, 0xc1, 0x9d, 0xf4, 0x37, 0x88, 0xa5, 0xa0, 0x12, 0xbd, 0x44, 0xd9, 0x2d, 0xd7, 0x87, 0x7f, + 0xba, 0xef, 0x15, 0xe9, 0x9b, 0x3b, 0xd2, 0x09, 0x76, 0x59, 0xae, 0xd4, 0xe4, 0x02, 0xf4, 0x54, + 0xc4, 0xe2, 0x1e, 0x54, 0x92, 0x4a, 0xf5, 0xe7, 0x7f, 0x7d, 0xeb, 0x76, 0xea, 0x6b, 0x19, 0xad, + 0xef, 0x1a, 0xd4, 0xb2, 0x69, 0x75, 0x90, 0x8a, 0x20, 0x71, 0x62, 0xc9, 0x38, 0x9f, 0x1e, 0xa9, + 0xb0, 0x6d, 0xff, 0x0b, 0xf3, 0x99, 0xcc, 0x37, 0xa7, 0x33, 0xfa, 0xe9, 0x08, 0x95, 0xb5, 0xaa, + 0xcc, 0xf9, 0x6a, 0x3c, 0x83, 0x6a, 0xde, 0xea, 0xa6, 0x31, 0x3a, 0x6d, 0x7c, 0x68, 0xf6, 0x5b, + 0x8d, 0xae, 0x5e, 0x20, 0x00, 0x3b, 0x76, 0xa3, 0xfb, 0xa6, 0xd7, 0xd1, 0x35, 0xe3, 0x18, 0xaa, + 0x79, 0x73, 0xc9, 0xff, 0x50, 0xec, 0x9d, 0x9d, 0xe9, 0x05, 0xb2, 0x0b, 0xdb, 0x8d, 0x77, 0x83, + 0x9e, 0xae, 0x9d, 0x3e, 0x1d, 0x9e, 0x78, 0xbe, 0xbc, 0x9c, 0xb8, 0xe6, 0x88, 0x85, 0x56, 0x90, + 0x8c, 0xa5, 0xb5, 0x78, 0xb2, 0x3c, 0x8c, 0x2c, 0xee, 0x1e, 0x79, 0xcc, 0x5a, 0x7f, 0xc5, 0xdc, + 0x1d, 0xf5, 0x5e, 0x9d, 0xfc, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x92, 0x15, 0xdc, 0x87, 0x6b, 0x05, + 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.validate.go similarity index 98% rename from gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go rename to gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.validate.go index 81f526f73..071cf8434 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hpo_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.validate.go @@ -34,7 +34,7 @@ var ( ) // define the regex for a UUID once up-front -var _hpo_job_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") +var _hyperparameter_tuning_job_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") // Validate checks the field values on HyperparameterTuningJob with the rules // defined in the proto definition for this message. If any rules are diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java b/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java similarity index 77% rename from gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java rename to gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java index e0af4aa0e..16f1e7a22 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/HpoJob.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/sagemaker/hpo_job.proto +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto package flyteidl.plugins.sagemaker; -public final class HpoJob { - private HpoJob() {} +public final class HyperparameterTuningJobOuterClass { + private HyperparameterTuningJobOuterClass() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -148,15 +148,15 @@ private HyperparameterTuningJob( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_fieldAccessorTable + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.Builder.class); + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.Builder.class); } public static final int TRAINING_JOB_FIELD_NUMBER = 1; @@ -272,10 +272,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob) obj; + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob) obj; if (hasTrainingJob() != other.hasTrainingJob()) return false; if (hasTrainingJob()) { @@ -312,69 +312,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -387,7 +387,7 @@ public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parseFro public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -412,21 +412,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningJob) - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJobOrBuilder { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_fieldAccessorTable + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.Builder.class); + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.newBuilder() + // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -460,17 +460,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.getDefaultInstance(); + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob build() { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob result = buildPartial(); + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob build() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -478,8 +478,8 @@ public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob buildPartial() { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob(this); + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob buildPartial() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob(this); if (trainingJobBuilder_ == null) { result.trainingJob_ = trainingJob_; } else { @@ -525,16 +525,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob) { - return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob)other); + if (other instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob) { + return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob other) { - if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob other) { + if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.getDefaultInstance()) return this; if (other.hasTrainingJob()) { mergeTrainingJob(other.getTrainingJob()); } @@ -559,11 +559,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob parsedMessage = null; + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -818,12 +818,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJob) - private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob DEFAULT_INSTANCE; + private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob(); } - public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob getDefaultInstance() { + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -848,7 +848,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningJob getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -865,7 +865,7 @@ public interface HyperparameterTuningObjectiveOrBuilder extends /** * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; */ - flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); /** *
@@ -965,15 +965,15 @@ private HyperparameterTuningObjective(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor;
+      return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class);
+              flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder.class);
     }
 
     /**
@@ -1048,7 +1048,7 @@ public HyperparameterTuningObjectiveType findValueByNumber(int number) {
       }
       public static final com.google.protobuf.Descriptors.EnumDescriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0);
+        return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final HyperparameterTuningObjectiveType[] VALUES = values();
@@ -1085,10 +1085,10 @@ public int getObjectiveTypeValue() {
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1;
      */
-    public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() {
+    public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() {
       @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_);
-      return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result;
+      flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_);
+      return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result;
     }
 
     public static final int METRIC_NAME_FIELD_NUMBER = 2;
@@ -1149,7 +1149,7 @@ public final boolean isInitialized() {
     @java.lang.Override
     public void writeTo(com.google.protobuf.CodedOutputStream output)
                         throws java.io.IOException {
-      if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) {
+      if (objectiveType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) {
         output.writeEnum(1, objectiveType_);
       }
       if (!getMetricNameBytes().isEmpty()) {
@@ -1164,7 +1164,7 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (objectiveType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) {
+      if (objectiveType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) {
         size += com.google.protobuf.CodedOutputStream
           .computeEnumSize(1, objectiveType_);
       }
@@ -1181,10 +1181,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) obj;
+      flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective) obj;
 
       if (objectiveType_ != other.objectiveType_) return false;
       if (!getMetricName()
@@ -1209,69 +1209,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -1284,7 +1284,7 @@ public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective pa
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -1309,21 +1309,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective)
-        flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder {
+        flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor;
+        return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder.class);
+                flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -1351,17 +1351,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor;
+        return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective build() {
-        flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = buildPartial();
+      public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective build() {
+        flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1369,8 +1369,8 @@ public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective build() {
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective buildPartial() {
-        flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective(this);
+      public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective buildPartial() {
+        flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective(this);
         result.objectiveType_ = objectiveType_;
         result.metricName_ = metricName_;
         onBuilt();
@@ -1411,16 +1411,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) {
-          return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective)other);
+        if (other instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective) {
+          return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective other) {
-        if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective other) {
+        if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance()) return this;
         if (other.objectiveType_ != 0) {
           setObjectiveTypeValue(other.getObjectiveTypeValue());
         }
@@ -1443,11 +1443,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective parsedMessage = null;
+        flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1475,15 +1475,15 @@ public Builder setObjectiveTypeValue(int value) {
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1;
        */
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() {
+      public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() {
         @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_);
-        return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result;
+        flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_);
+        return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result;
       }
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1;
        */
-      public Builder setObjectiveType(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) {
+      public Builder setObjectiveType(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) {
         if (value == null) {
           throw new NullPointerException();
         }
@@ -1612,12 +1612,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective)
-    private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective();
     }
 
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -1642,7 +1642,7 @@ public com.google.protobuf.Parser getParserForTyp
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -1672,7 +1672,7 @@ public interface HyperparameterTuningSpecificationOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2;
      */
-    flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy getTuningStrategy();
+    flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy getTuningStrategy();
 
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
@@ -1681,11 +1681,11 @@ public interface HyperparameterTuningSpecificationOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
-    flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective();
+    flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getTuningObjective();
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
-    flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder();
+    flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder();
 
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
@@ -1694,7 +1694,7 @@ public interface HyperparameterTuningSpecificationOrBuilder extends
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
      */
-    flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType();
+    flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType();
   }
   /**
    * 
@@ -1761,11 +1761,11 @@ private HyperparameterTuningSpecification(
               break;
             }
             case 26: {
-              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder subBuilder = null;
+              flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder subBuilder = null;
               if (tuningObjective_ != null) {
                 subBuilder = tuningObjective_.toBuilder();
               }
-              tuningObjective_ = input.readMessage(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.parser(), extensionRegistry);
+              tuningObjective_ = input.readMessage(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.parser(), extensionRegistry);
               if (subBuilder != null) {
                 subBuilder.mergeFrom(tuningObjective_);
                 tuningObjective_ = subBuilder.buildPartial();
@@ -1800,15 +1800,15 @@ private HyperparameterTuningSpecification(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor;
+      return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_fieldAccessorTable
+      return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.Builder.class);
+              flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.Builder.class);
     }
 
     /**
@@ -1883,7 +1883,7 @@ public HyperparameterTuningStrategy findValueByNumber(int number) {
       }
       public static final com.google.protobuf.Descriptors.EnumDescriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.getDescriptor().getEnumTypes().get(0);
+        return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final HyperparameterTuningStrategy[] VALUES = values();
@@ -1988,7 +1988,7 @@ public TrainingJobEarlyStoppingType findValueByNumber(int number) {
       }
       public static final com.google.protobuf.Descriptors.EnumDescriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.getDescriptor().getEnumTypes().get(1);
+        return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.getDescriptor().getEnumTypes().get(1);
       }
 
       private static final TrainingJobEarlyStoppingType[] VALUES = values();
@@ -2046,14 +2046,14 @@ public int getTuningStrategyValue() {
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2;
      */
-    public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy getTuningStrategy() {
+    public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy getTuningStrategy() {
       @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy.valueOf(tuningStrategy_);
-      return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy.UNRECOGNIZED : result;
+      flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy.valueOf(tuningStrategy_);
+      return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy.UNRECOGNIZED : result;
     }
 
     public static final int TUNING_OBJECTIVE_FIELD_NUMBER = 3;
-    private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_;
+    private flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective tuningObjective_;
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
@@ -2063,13 +2063,13 @@ public boolean hasTuningObjective() {
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
-    public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() {
-      return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
+    public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getTuningObjective() {
+      return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
     }
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
      */
-    public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() {
+    public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() {
       return getTuningObjective();
     }
 
@@ -2084,10 +2084,10 @@ public int getTrainingJobEarlyStoppingTypeValue() {
     /**
      * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
      */
-    public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() {
+    public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() {
       @SuppressWarnings("deprecation")
-      flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_);
-      return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.UNRECOGNIZED : result;
+      flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_);
+      return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.UNRECOGNIZED : result;
     }
 
     private byte memoizedIsInitialized = -1;
@@ -2107,13 +2107,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (hyperparameterRanges_ != null) {
         output.writeMessage(1, getHyperparameterRanges());
       }
-      if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy.BAYESIAN.getNumber()) {
+      if (tuningStrategy_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy.BAYESIAN.getNumber()) {
         output.writeEnum(2, tuningStrategy_);
       }
       if (tuningObjective_ != null) {
         output.writeMessage(3, getTuningObjective());
       }
-      if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.OFF.getNumber()) {
+      if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.OFF.getNumber()) {
         output.writeEnum(4, trainingJobEarlyStoppingType_);
       }
       unknownFields.writeTo(output);
@@ -2129,7 +2129,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(1, getHyperparameterRanges());
       }
-      if (tuningStrategy_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy.BAYESIAN.getNumber()) {
+      if (tuningStrategy_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy.BAYESIAN.getNumber()) {
         size += com.google.protobuf.CodedOutputStream
           .computeEnumSize(2, tuningStrategy_);
       }
@@ -2137,7 +2137,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(3, getTuningObjective());
       }
-      if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.OFF.getNumber()) {
+      if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.OFF.getNumber()) {
         size += com.google.protobuf.CodedOutputStream
           .computeEnumSize(4, trainingJobEarlyStoppingType_);
       }
@@ -2151,10 +2151,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification)) {
+      if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification)) {
         return super.equals(obj);
       }
-      flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification other = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification) obj;
+      flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification) obj;
 
       if (hasHyperparameterRanges() != other.hasHyperparameterRanges()) return false;
       if (hasHyperparameterRanges()) {
@@ -2196,69 +2196,69 @@ public int hashCode() {
       return hash;
     }
 
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom(byte[] data)
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseDelimitedFrom(java.io.InputStream input)
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseDelimitedFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification 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 flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parseFrom(
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -2271,7 +2271,7 @@ public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecificatio
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification prototype) {
+    public static Builder newBuilder(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -2296,21 +2296,21 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
-        flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecificationOrBuilder {
+        flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecificationOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor;
+        return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_fieldAccessorTable
+        return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.class, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.Builder.class);
+                flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.Builder.class);
       }
 
-      // Construct using flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.newBuilder()
+      // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -2350,17 +2350,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return flyteidl.plugins.sagemaker.HpoJob.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor;
+        return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor;
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification getDefaultInstanceForType() {
-        return flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.getDefaultInstance();
+      public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification getDefaultInstanceForType() {
+        return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.getDefaultInstance();
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification build() {
-        flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification result = buildPartial();
+      public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification build() {
+        flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2368,8 +2368,8 @@ public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification build
       }
 
       @java.lang.Override
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification buildPartial() {
-        flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification result = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification(this);
+      public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification buildPartial() {
+        flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification(this);
         if (hyperparameterRangesBuilder_ == null) {
           result.hyperparameterRanges_ = hyperparameterRanges_;
         } else {
@@ -2420,16 +2420,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification) {
-          return mergeFrom((flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification)other);
+        if (other instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification) {
+          return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification other) {
-        if (other == flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.getDefaultInstance()) return this;
+      public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification other) {
+        if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.getDefaultInstance()) return this;
         if (other.hasHyperparameterRanges()) {
           mergeHyperparameterRanges(other.getHyperparameterRanges());
         }
@@ -2457,11 +2457,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification parsedMessage = null;
+        flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification) e.getUnfinishedMessage();
+          parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2606,15 +2606,15 @@ public Builder setTuningStrategyValue(int value) {
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2;
        */
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy getTuningStrategy() {
+      public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy getTuningStrategy() {
         @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy.valueOf(tuningStrategy_);
-        return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy.UNRECOGNIZED : result;
+        flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy.valueOf(tuningStrategy_);
+        return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy.UNRECOGNIZED : result;
       }
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2;
        */
-      public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.HyperparameterTuningStrategy value) {
+      public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy value) {
         if (value == null) {
           throw new NullPointerException();
         }
@@ -2633,9 +2633,9 @@ public Builder clearTuningStrategy() {
         return this;
       }
 
-      private flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective tuningObjective_;
+      private flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective tuningObjective_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> tuningObjectiveBuilder_;
+          flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder> tuningObjectiveBuilder_;
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
@@ -2645,9 +2645,9 @@ public boolean hasTuningObjective() {
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuningObjective() {
+      public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getTuningObjective() {
         if (tuningObjectiveBuilder_ == null) {
-          return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
+          return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
         } else {
           return tuningObjectiveBuilder_.getMessage();
         }
@@ -2655,7 +2655,7 @@ public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective getTuning
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public Builder setTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) {
+      public Builder setTuningObjective(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective value) {
         if (tuningObjectiveBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2672,7 +2672,7 @@ public Builder setTuningObjective(flyteidl.plugins.sagemaker.HpoJob.Hyperparamet
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
       public Builder setTuningObjective(
-          flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder builderForValue) {
+          flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder builderForValue) {
         if (tuningObjectiveBuilder_ == null) {
           tuningObjective_ = builderForValue.build();
           onChanged();
@@ -2685,11 +2685,11 @@ public Builder setTuningObjective(
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective value) {
+      public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective value) {
         if (tuningObjectiveBuilder_ == null) {
           if (tuningObjective_ != null) {
             tuningObjective_ =
-              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.newBuilder(tuningObjective_).mergeFrom(value).buildPartial();
+              flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.newBuilder(tuningObjective_).mergeFrom(value).buildPartial();
           } else {
             tuningObjective_ = value;
           }
@@ -2717,7 +2717,7 @@ public Builder clearTuningObjective() {
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder getTuningObjectiveBuilder() {
+      public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder getTuningObjectiveBuilder() {
         
         onChanged();
         return getTuningObjectiveFieldBuilder().getBuilder();
@@ -2725,23 +2725,23 @@ public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder g
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() {
+      public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() {
         if (tuningObjectiveBuilder_ != null) {
           return tuningObjectiveBuilder_.getMessageOrBuilder();
         } else {
           return tuningObjective_ == null ?
-              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
+              flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_;
         }
       }
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder> 
+          flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder> 
           getTuningObjectiveFieldBuilder() {
         if (tuningObjectiveBuilder_ == null) {
           tuningObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningObjectiveOrBuilder>(
+              flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder>(
                   getTuningObjective(),
                   getParentForChildren(),
                   isClean());
@@ -2768,15 +2768,15 @@ public Builder setTrainingJobEarlyStoppingTypeValue(int value) {
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
        */
-      public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() {
+      public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() {
         @SuppressWarnings("deprecation")
-        flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_);
-        return result == null ? flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.UNRECOGNIZED : result;
+        flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_);
+        return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.UNRECOGNIZED : result;
       }
       /**
        * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
        */
-      public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType value) {
+      public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType value) {
         if (value == null) {
           throw new NullPointerException();
         }
@@ -2811,12 +2811,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
-    private static final flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification DEFAULT_INSTANCE;
+    private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification();
+      DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification();
     }
 
-    public static flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification getDefaultInstance() {
+    public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -2841,7 +2841,7 @@ public com.google.protobuf.Parser getParserFo
     }
 
     @java.lang.Override
-    public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification getDefaultInstanceForType() {
+    public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -2871,36 +2871,37 @@ public flyteidl.plugins.sagemaker.HpoJob.HyperparameterTuningSpecification getDe
       descriptor;
   static {
     java.lang.String[] descriptorData = {
-      "\n(flyteidl/plugins/sagemaker/hpo_job.pro" +
-      "to\022\032flyteidl.plugins.sagemaker\0321flyteidl" +
-      "/plugins/sagemaker/parameter_ranges.prot" +
-      "o\032-flyteidl/plugins/sagemaker/training_j" +
-      "ob.proto\"\241\001\n\027HyperparameterTuningJob\022=\n\014" +
-      "training_job\030\001 \001(\0132\'.flyteidl.plugins.sa" +
-      "gemaker.TrainingJob\022#\n\033max_number_of_tra" +
-      "ining_jobs\030\002 \001(\003\022\"\n\032max_parallel_trainin" +
-      "g_jobs\030\003 \001(\003\"\352\001\n\035HyperparameterTuningObj" +
-      "ective\022s\n\016objective_type\030\001 \001(\0162[.flyteid" +
-      "l.plugins.sagemaker.HyperparameterTuning" +
-      "Objective.HyperparameterTuningObjectiveT" +
-      "ype\022\023\n\013metric_name\030\002 \001(\t\"?\n!Hyperparamet" +
-      "erTuningObjectiveType\022\014\n\010MINIMIZE\020\000\022\014\n\010M" +
-      "AXIMIZE\020\001\"\255\004\n!HyperparameterTuningSpecif" +
-      "ication\022J\n\025hyperparameter_ranges\030\001 \001(\0132+" +
-      ".flyteidl.plugins.sagemaker.ParameterRan" +
-      "ges\022s\n\017tuning_strategy\030\002 \001(\0162Z.flyteidl." +
-      "plugins.sagemaker.HyperparameterTuningSp" +
-      "ecification.HyperparameterTuningStrategy" +
-      "\022S\n\020tuning_objective\030\003 \001(\01329.flyteidl.pl" +
-      "ugins.sagemaker.HyperparameterTuningObje" +
-      "ctive\022\204\001\n training_job_early_stopping_ty" +
-      "pe\030\004 \001(\0162Z.flyteidl.plugins.sagemaker.Hy" +
-      "perparameterTuningSpecification.Training" +
-      "JobEarlyStoppingType\"8\n\034HyperparameterTu" +
-      "ningStrategy\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"1" +
-      "\n\034TrainingJobEarlyStoppingType\022\007\n\003OFF\020\000\022" +
-      "\010\n\004AUTO\020\001B5Z3github.com/lyft/flyteidl/ge" +
-      "n/pb-go/flyteidl/pluginsb\006proto3"
+      "\n:flyteidl/plugins/sagemaker/hyperparame" +
+      "ter_tuning_job.proto\022\032flyteidl.plugins.s" +
+      "agemaker\0321flyteidl/plugins/sagemaker/par" +
+      "ameter_ranges.proto\032-flyteidl/plugins/sa" +
+      "gemaker/training_job.proto\"\241\001\n\027Hyperpara" +
+      "meterTuningJob\022=\n\014training_job\030\001 \001(\0132\'.f" +
+      "lyteidl.plugins.sagemaker.TrainingJob\022#\n" +
+      "\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032ma" +
+      "x_parallel_training_jobs\030\003 \001(\003\"\352\001\n\035Hyper" +
+      "parameterTuningObjective\022s\n\016objective_ty" +
+      "pe\030\001 \001(\0162[.flyteidl.plugins.sagemaker.Hy" +
+      "perparameterTuningObjective.Hyperparamet" +
+      "erTuningObjectiveType\022\023\n\013metric_name\030\002 \001" +
+      "(\t\"?\n!HyperparameterTuningObjectiveType\022" +
+      "\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\255\004\n!Hyperpar" +
+      "ameterTuningSpecification\022J\n\025hyperparame" +
+      "ter_ranges\030\001 \001(\0132+.flyteidl.plugins.sage" +
+      "maker.ParameterRanges\022s\n\017tuning_strategy" +
+      "\030\002 \001(\0162Z.flyteidl.plugins.sagemaker.Hype" +
+      "rparameterTuningSpecification.Hyperparam" +
+      "eterTuningStrategy\022S\n\020tuning_objective\030\003" +
+      " \001(\01329.flyteidl.plugins.sagemaker.Hyperp" +
+      "arameterTuningObjective\022\204\001\n training_job" +
+      "_early_stopping_type\030\004 \001(\0162Z.flyteidl.pl" +
+      "ugins.sagemaker.HyperparameterTuningSpec" +
+      "ification.TrainingJobEarlyStoppingType\"8" +
+      "\n\034HyperparameterTuningStrategy\022\014\n\010BAYESI" +
+      "AN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobEarlyStop" +
+      "pingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001B5Z3github.co" +
+      "m/lyft/flyteidl/gen/pb-go/flyteidl/plugi" +
+      "nsb\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst
similarity index 91%
rename from gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst
rename to gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst
index bf8e64e1a..3eeedef59 100644
--- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hpo_job.proto.rst
+++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst
@@ -1,14 +1,14 @@
-.. _api_file_flyteidl/plugins/sagemaker/hpo_job.proto:
+.. _api_file_flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto:
 
-hpo_job.proto
-========================================
+hyperparameter_tuning_job.proto
+==========================================================
 
 .. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningJob:
 
 flyteidl.plugins.sagemaker.HyperparameterTuningJob
 --------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.HyperparameterTuningJob proto] `_
+`[flyteidl.plugins.sagemaker.HyperparameterTuningJob proto] `_
 
 The hyperparameter tuning job
 
@@ -45,7 +45,7 @@ max_parallel_training_jobs
 flyteidl.plugins.sagemaker.HyperparameterTuningObjective
 --------------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_
+`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_
 
 The objective of the hyperparameter tuning
 
@@ -74,7 +74,7 @@ metric_name
 Enum flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType
 -----------------------------------------------------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_
+`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_
 
 
 .. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE:
@@ -93,7 +93,7 @@ MAXIMIZE
 flyteidl.plugins.sagemaker.HyperparameterTuningSpecification
 ------------------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.HyperparameterTuningSpecification proto] `_
+`[flyteidl.plugins.sagemaker.HyperparameterTuningSpecification proto] `_
 
 The specification of the hyperparameter tuning process
 
@@ -132,7 +132,7 @@ training_job_early_stopping_type
 Enum flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy
 ----------------------------------------------------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy proto] `_
+`[flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy proto] `_
 
 
 .. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy.BAYESIAN:
@@ -151,7 +151,7 @@ RANDOM
 Enum flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType
 ----------------------------------------------------------------------------------------------
 
-`[flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType proto] `_
+`[flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType proto] `_
 
 When the training jobs launched by the hyperparameter tuning job are not improving significantly,
 a hyperparameter tuning job can be stopping early.
diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst
index 20fab8e86..667b8213d 100644
--- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst
+++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/index.rst
@@ -6,6 +6,6 @@ sagemaker
 	:caption: sagemaker
 	:name: sagemakertoc
 
-	hpo_job.proto
+	hyperparameter_tuning_job.proto
 	parameter_ranges.proto
 	training_job.proto
diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2.py
similarity index 95%
rename from gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py
rename to gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2.py
index 44e3b5fc5..c28182c82 100644
--- a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2.py
+++ b/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2.py
@@ -22,7 +22,7 @@
   package='flyteidl.plugins.sagemaker',
   syntax='proto3',
   serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'),
-  serialized_pb=_b('\n(flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xa1\x01\n\x17HyperparameterTuningJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\xad\x04\n!HyperparameterTuningSpecification\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12s\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32Z.flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12\x84\x01\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32Z.flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3')
+  serialized_pb=_b('\n:flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xa1\x01\n\x17HyperparameterTuningJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\xad\x04\n!HyperparameterTuningSpecification\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12s\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32Z.flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12\x84\x01\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32Z.flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3')
   ,
   dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,])
 
@@ -45,8 +45,8 @@
   ],
   containing_type=None,
   serialized_options=None,
-  serialized_start=506,
-  serialized_end=569,
+  serialized_start=524,
+  serialized_end=587,
 )
 _sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE)
 
@@ -67,8 +67,8 @@
   ],
   containing_type=None,
   serialized_options=None,
-  serialized_start=1022,
-  serialized_end=1078,
+  serialized_start=1040,
+  serialized_end=1096,
 )
 _sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGSPECIFICATION_HYPERPARAMETERTUNINGSTRATEGY)
 
@@ -89,8 +89,8 @@
   ],
   containing_type=None,
   serialized_options=None,
-  serialized_start=1080,
-  serialized_end=1129,
+  serialized_start=1098,
+  serialized_end=1147,
 )
 _sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGSPECIFICATION_TRAININGJOBEARLYSTOPPINGTYPE)
 
@@ -135,8 +135,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=171,
-  serialized_end=332,
+  serialized_start=189,
+  serialized_end=350,
 )
 
 
@@ -174,8 +174,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=335,
-  serialized_end=569,
+  serialized_start=353,
+  serialized_end=587,
 )
 
 
@@ -228,8 +228,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=572,
-  serialized_end=1129,
+  serialized_start=590,
+  serialized_end=1147,
 )
 
 _HYPERPARAMETERTUNINGJOB.fields_by_name['training_job'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2._TRAININGJOB
@@ -248,21 +248,21 @@
 
 HyperparameterTuningJob = _reflection.GeneratedProtocolMessageType('HyperparameterTuningJob', (_message.Message,), dict(
   DESCRIPTOR = _HYPERPARAMETERTUNINGJOB,
-  __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.hyperparameter_tuning_job_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJob)
   ))
 _sym_db.RegisterMessage(HyperparameterTuningJob)
 
 HyperparameterTuningObjective = _reflection.GeneratedProtocolMessageType('HyperparameterTuningObjective', (_message.Message,), dict(
   DESCRIPTOR = _HYPERPARAMETERTUNINGOBJECTIVE,
-  __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.hyperparameter_tuning_job_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective)
   ))
 _sym_db.RegisterMessage(HyperparameterTuningObjective)
 
 HyperparameterTuningSpecification = _reflection.GeneratedProtocolMessageType('HyperparameterTuningSpecification', (_message.Message,), dict(
   DESCRIPTOR = _HYPERPARAMETERTUNINGSPECIFICATION,
-  __module__ = 'flyteidl.plugins.sagemaker.hpo_job_pb2'
+  __module__ = 'flyteidl.plugins.sagemaker.hyperparameter_tuning_job_pb2'
   # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
   ))
 _sym_db.RegisterMessage(HyperparameterTuningSpecification)
diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2_grpc.py b/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2_grpc.py
similarity index 100%
rename from gen/pb_python/flyteidl/plugins/sagemaker/hpo_job_pb2_grpc.py
rename to gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2_grpc.py

From 54c768872b844b23831cae314aba0a251834b5c7 Mon Sep 17 00:00:00 2001
From: Chang-Hong Hsu 
Date: Thu, 23 Jul 2020 22:16:11 -0700
Subject: [PATCH 37/64] revert to using beta version when review is still
 pending

---
 package.json | 2 +-
 setup.py     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json
index 4b36f9959..a4e46528a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@lyft/flyteidl",
-  "version": "0.18.0",
+  "version": "0.18.0b5",
   "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
   "repository": {
     "type": "git",
diff --git a/setup.py b/setup.py
index ee6260fd0..4ee9ee3a3 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
 from setuptools import setup, find_packages
 
-__version__ = '0.18.0'
+__version__ = '0.18.0b5'
 
 setup(
     name='flyteidl',

From e20c6a8fed845d1fc2eeccd7bad7132e4627db64 Mon Sep 17 00:00:00 2001
From: Chang-Hong Hsu 
Date: Fri, 24 Jul 2020 18:47:34 -0700
Subject: [PATCH 38/64] check in refactored proto to make sure enums are
 wrapped inside a dedicated message. This will prevent generated Python enums
 to be exposed as orphans at the module level

---
 .../sagemaker/hyperparameter_tuning_job.proto | 50 +++++++++++--------
 .../plugins/sagemaker/parameter_ranges.proto  | 22 +++++---
 .../plugins/sagemaker/training_job.proto      | 38 +++++++++-----
 3 files changed, 69 insertions(+), 41 deletions(-)

diff --git a/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto b/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto
index 54c9a8bc2..8ee48fed8 100644
--- a/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto
+++ b/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto
@@ -7,50 +7,60 @@ option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins";
 import "flyteidl/plugins/sagemaker/parameter_ranges.proto";
 import "flyteidl/plugins/sagemaker/training_job.proto";
 
-// The hyperparameter tuning job
+// A pass-through for SageMaker's hyperparameter tuning job
 message HyperparameterTuningJob {
     // The underlying training job that the hyperparameter tuning job will launch during the process
     TrainingJob training_job = 1;  // TODO: This hierarchical definition is tricky!
 
     // The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+    // https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
     int64 max_number_of_training_jobs = 2;
 
     // The maximum number of concurrent training job that an hpo job can launch
+    // https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
     int64 max_parallel_training_jobs = 3;
 }
 
-// The objective of the hyperparameter tuning
-message HyperparameterTuningObjective {
-    enum HyperparameterTuningObjectiveType {
+message HyperparameterTuningObjectiveType {
+    enum Value {
         MINIMIZE = 0;
         MAXIMIZE = 1;
     }
+}
+
+// The objective of the hyperparameter tuning
+message HyperparameterTuningObjective {
 
-    HyperparameterTuningObjectiveType objective_type = 1;
+    HyperparameterTuningObjectiveType.Value objective_type = 1;
     // The target metric name, which is the user-defined name of the metric specified in the
     // training job's algorithm specification
     string metric_name = 2;
 }
 
-// The specification of the hyperparameter tuning process
-message HyperparameterTuningSpecification {
-
-    ParameterRanges hyperparameter_ranges = 1;
-    enum HyperparameterTuningStrategy {
+message HyperparameterTuningStrategy {
+    enum Value {
         BAYESIAN = 0;
         RANDOM = 1;
     }
+}
 
-    HyperparameterTuningStrategy tuning_strategy = 2;
-    HyperparameterTuningObjective tuning_objective = 3;
-
-    // When the training jobs launched by the hyperparameter tuning job are not improving significantly,
-    // a hyperparameter tuning job can be stopping early.
-    // Note that there's only a subset of built-in algorithms that supports early stopping.
-    // see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html
-    enum TrainingJobEarlyStoppingType {
+// When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+// a hyperparameter tuning job can be stopping early.
+// Note that there's only a subset of built-in algorithms that supports early stopping.
+// see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html
+message TrainingJobEarlyStoppingType {
+    enum Value {
         OFF = 0;
         AUTO = 1;
     }
-    TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
-}
\ No newline at end of file
+}
+
+// The specification of the hyperparameter tuning process
+// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning-job.html#automatic-model-tuning-ex-low-tuning-config
+message HyperparameterTuningJobConfig {
+
+    ParameterRanges hyperparameter_ranges = 1;
+    HyperparameterTuningStrategy.Value tuning_strategy = 2;
+    HyperparameterTuningObjective tuning_objective = 3;
+    TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4;
+}
diff --git a/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto b/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto
index c7be7b1d7..38ec37977 100644
--- a/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto
+++ b/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto
@@ -6,31 +6,36 @@ option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins";
 
 // HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter
 // https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
-enum HyperparameterScalingType {
-    AUTO = 0;
-    LINEAR = 1;
-    LOGARITHMIC = 2;
-    REVERSELOGARITHMIC = 3;
+message HyperparameterScalingType {
+    enum Value {
+        AUTO = 0;
+        LINEAR = 1;
+        LOGARITHMIC = 2;
+        REVERSELOGARITHMIC = 3;
+    }
 }
 
 // ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
 // users to specify the search space of a floating-point hyperparameter
+// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
 message ContinuousParameterRange {
     double max_value = 1;
     double min_value = 2;
-    HyperparameterScalingType scaling_type = 3;
+    HyperparameterScalingType.Value scaling_type = 3;
 }
 
 // IntegerParameterRange refers to a discrete range of hyperparameter values, allowing
 // users to specify the search space of an integer hyperparameter
+// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
 message IntegerParameterRange {
     int64 max_value = 1;
     int64 min_value = 2;
-    HyperparameterScalingType scaling_type = 3;
+    HyperparameterScalingType.Value scaling_type = 3;
 }
 
 // ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
 // users to specify the search space of a floating-point hyperparameter
+// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
 message CategoricalParameterRange {
     repeated string values = 1;
 }
@@ -44,6 +49,7 @@ message ParameterRangeOneOf {
 }
 
 // ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
 message ParameterRanges {
     map parameter_range_map = 1;
-}
\ No newline at end of file
+}
diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto
index 6f76bbf6a..c7d1198d6 100644
--- a/protos/flyteidl/plugins/sagemaker/training_job.proto
+++ b/protos/flyteidl/plugins/sagemaker/training_job.proto
@@ -5,22 +5,31 @@ package flyteidl.plugins.sagemaker;
 option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins";
 
 
-enum InputMode {
-    FILE = 0;
-    PIPE = 1;
+message InputMode {
+    enum Value {
+        FILE = 0;
+        PIPE = 1;
+    }
 }
 
-enum AlgorithmName {
-    CUSTOM = 0;
-    XGBOOST = 1;
+message AlgorithmName {
+    enum Value {
+        CUSTOM = 0;
+        XGBOOST = 1;
+    }
 }
 
+// Specifies the training algorithm to be used in the training job
+// This object is mostly a pass-through, with the exception that when users want to supply custom algorithms
+// they should set algorithm_name field to CUSTOM. In this case, the value of the algorithm_version field has no effect
+// For pass-through use cases: refer to this AWS official document for more details
+// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
 message AlgorithmSpecification {
     // The input mode can be either PIPE or FILE
-    InputMode input_mode = 1;
+    InputMode.Value input_mode = 1;
     // The algorithm name is used for deciding which pre-built image to point to
     // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
-    AlgorithmName algorithm_name = 2;
+    AlgorithmName.Value algorithm_name = 2;
     // The algorithm version field is used for deciding which pre-built image to point to
     // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
     string algorithm_version = 3;
@@ -36,9 +45,11 @@ message AlgorithmSpecification {
     repeated MetricDefinition metric_definitions = 4;
 }
 
-message TrainingJobConfig {
+// TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the
+// number of instances to launch, and the size of the ML storage volume the user wants to provision
+// Refer to SageMaker official doc for more details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
+message TrainingJobResourceConfig {
     // The number of ML compute instances to use. For distributed training, provide a value greater than 1.
-    // This is for multi-node training, not multi-GPU training
     int64 instance_count = 1;
     // The ML compute instance type
     string instance_type = 2;
@@ -62,9 +73,10 @@ message StoppingCondition {
     int64 max_wait_time_in_seconds = 2;
 }
 
-// The spec of a training job
+// The spec of a training job. This is mostly a pass-through object
+// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
 message TrainingJob {
     AlgorithmSpecification algorithm_specification = 1;
-    TrainingJobConfig training_job_config = 2;
+    TrainingJobResourceConfig training_job_config = 2;
     bool interruptible = 3;
-}
\ No newline at end of file
+}

From dcbf72a5745edf0165320cc1d61754d42c1b5059 Mon Sep 17 00:00:00 2001
From: Chang-Hong Hsu 
Date: Fri, 24 Jul 2020 18:50:40 -0700
Subject: [PATCH 39/64] make generate

---
 .../sagemaker/hyperparameter_tuning_job.pb.cc | 1116 +++++--
 .../sagemaker/hyperparameter_tuning_job.pb.h  |  765 +++--
 .../plugins/sagemaker/parameter_ranges.pb.cc  |  350 ++-
 .../plugins/sagemaker/parameter_ranges.pb.h   |  227 +-
 .../plugins/sagemaker/training_job.pb.cc      |  757 ++++-
 .../plugins/sagemaker/training_job.pb.h       |  544 +++-
 .../sagemaker/hyperparameter_tuning_job.pb.go |  313 +-
 .../hyperparameter_tuning_job.pb.validate.go  |  242 +-
 .../plugins/sagemaker/parameter_ranges.pb.go  |  162 +-
 .../sagemaker/parameter_ranges.pb.validate.go |   67 +
 .../plugins/sagemaker/training_job.pb.go      |  261 +-
 .../sagemaker/training_job.pb.validate.go     |  163 +-
 .../HyperparameterTuningJobOuterClass.java    | 2629 ++++++++++++-----
 .../sagemaker/ParameterRangesOuterClass.java  |  742 ++++-
 .../sagemaker/TrainingJobOuterClass.java      | 1514 ++++++++--
 .../hyperparameter_tuning_job.proto.rst       |  171 +-
 .../sagemaker/parameter_ranges.proto.rst      |   93 +-
 .../plugins/sagemaker/training_job.proto.rst  |  143 +-
 .../hyperparameter_tuning_job_pb2.py          |  188 +-
 .../plugins/sagemaker/parameter_ranges_pb2.py |   83 +-
 .../plugins/sagemaker/training_job_pb2.py     |  151 +-
 21 files changed, 8193 insertions(+), 2488 deletions(-)

diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.cc
index f3ec83377..a1a5f3252 100644
--- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.cc
+++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.cc
@@ -26,14 +26,26 @@ class HyperparameterTuningJobDefaultTypeInternal {
  public:
   ::google::protobuf::internal::ExplicitlyConstructed _instance;
 } _HyperparameterTuningJob_default_instance_;
+class HyperparameterTuningObjectiveTypeDefaultTypeInternal {
+ public:
+  ::google::protobuf::internal::ExplicitlyConstructed _instance;
+} _HyperparameterTuningObjectiveType_default_instance_;
 class HyperparameterTuningObjectiveDefaultTypeInternal {
  public:
   ::google::protobuf::internal::ExplicitlyConstructed _instance;
 } _HyperparameterTuningObjective_default_instance_;
-class HyperparameterTuningSpecificationDefaultTypeInternal {
+class HyperparameterTuningStrategyDefaultTypeInternal {
+ public:
+  ::google::protobuf::internal::ExplicitlyConstructed _instance;
+} _HyperparameterTuningStrategy_default_instance_;
+class TrainingJobEarlyStoppingTypeDefaultTypeInternal {
  public:
-  ::google::protobuf::internal::ExplicitlyConstructed _instance;
-} _HyperparameterTuningSpecification_default_instance_;
+  ::google::protobuf::internal::ExplicitlyConstructed _instance;
+} _TrainingJobEarlyStoppingType_default_instance_;
+class HyperparameterTuningJobConfigDefaultTypeInternal {
+ public:
+  ::google::protobuf::internal::ExplicitlyConstructed _instance;
+} _HyperparameterTuningJobConfig_default_instance_;
 }  // namespace sagemaker
 }  // namespace plugins
 }  // namespace flyteidl
@@ -52,6 +64,20 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_HyperparameterTuningJob_flytei
     {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, {
       &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}};
 
+static void InitDefaultsHyperparameterTuningObjectiveType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() {
+  GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+  {
+    void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjectiveType_default_instance_;
+    new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType();
+    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+  }
+  ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjectiveType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningObjectiveType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, {}};
+
 static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
@@ -66,29 +92,60 @@ static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagem
 ::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto =
     {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, {}};
 
-static void InitDefaultsHyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() {
+static void InitDefaultsHyperparameterTuningStrategy_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() {
+  GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+  {
+    void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningStrategy_default_instance_;
+    new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy();
+    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+  }
+  ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningStrategy_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningStrategy_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, {}};
+
+static void InitDefaultsTrainingJobEarlyStoppingType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() {
+  GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+  {
+    void* ptr = &::flyteidl::plugins::sagemaker::_TrainingJobEarlyStoppingType_default_instance_;
+    new (ptr) ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType();
+    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+  }
+  ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobEarlyStoppingType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTrainingJobEarlyStoppingType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, {}};
+
+static void InitDefaultsHyperparameterTuningJobConfig_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
   {
-    void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningSpecification_default_instance_;
-    new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification();
+    void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningJobConfig_default_instance_;
+    new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig();
     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
   }
-  ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification::InitAsDefaultInstance();
+  ::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<2> scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, {
+::google::protobuf::internal::SCCInfo<2> scc_info_HyperparameterTuningJobConfig_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHyperparameterTuningJobConfig_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, {
       &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,
       &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base,}};
 
 void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() {
   ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjectiveType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
-  ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningStrategy_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobEarlyStoppingType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningJobConfig_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
 }
 
-::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[3];
+::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[6];
 const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[3];
 constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = nullptr;
 
@@ -102,6 +159,11 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhy
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJob, max_number_of_training_jobs_),
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJob, max_parallel_training_jobs_),
   ~0u,  // no _has_bits_
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType, _internal_metadata_),
+  ~0u,  // no _extensions_
+  ~0u,  // no _oneof_case_
+  ~0u,  // no _weak_field_map_
+  ~0u,  // no _has_bits_
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, _internal_metadata_),
   ~0u,  // no _extensions_
   ~0u,  // no _oneof_case_
@@ -109,31 +171,47 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhy
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, objective_type_),
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, metric_name_),
   ~0u,  // no _has_bits_
-  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification, _internal_metadata_),
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy, _internal_metadata_),
+  ~0u,  // no _extensions_
+  ~0u,  // no _oneof_case_
+  ~0u,  // no _weak_field_map_
+  ~0u,  // no _has_bits_
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType, _internal_metadata_),
+  ~0u,  // no _extensions_
+  ~0u,  // no _oneof_case_
+  ~0u,  // no _weak_field_map_
+  ~0u,  // no _has_bits_
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig, _internal_metadata_),
   ~0u,  // no _extensions_
   ~0u,  // no _oneof_case_
   ~0u,  // no _weak_field_map_
-  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification, hyperparameter_ranges_),
-  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification, tuning_strategy_),
-  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification, tuning_objective_),
-  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification, training_job_early_stopping_type_),
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig, hyperparameter_ranges_),
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig, tuning_strategy_),
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig, tuning_objective_),
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig, training_job_early_stopping_type_),
 };
 static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
   { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningJob)},
-  { 8, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective)},
-  { 15, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification)},
+  { 8, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType)},
+  { 13, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective)},
+  { 20, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy)},
+  { 25, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType)},
+  { 30, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig)},
 };
 
 static ::google::protobuf::Message const * const file_default_instances[] = {
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningJob_default_instance_),
+  reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningObjectiveType_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_),
-  reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningSpecification_default_instance_),
+  reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningStrategy_default_instance_),
+  reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJobEarlyStoppingType_default_instance_),
+  reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningJobConfig_default_instance_),
 };
 
 ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = {
   {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto", schemas,
   file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto::offsets,
-  file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto,
+  file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto,
 };
 
 const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[] =
@@ -145,34 +223,32 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhyperparam
   "meterTuningJob\022=\n\014training_job\030\001 \001(\0132\'.f"
   "lyteidl.plugins.sagemaker.TrainingJob\022#\n"
   "\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032ma"
-  "x_parallel_training_jobs\030\003 \001(\003\"\352\001\n\035Hyper"
-  "parameterTuningObjective\022s\n\016objective_ty"
-  "pe\030\001 \001(\0162[.flyteidl.plugins.sagemaker.Hy"
-  "perparameterTuningObjective.Hyperparamet"
-  "erTuningObjectiveType\022\023\n\013metric_name\030\002 \001"
-  "(\t\"\?\n!HyperparameterTuningObjectiveType\022"
-  "\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\255\004\n!Hyperpar"
-  "ameterTuningSpecification\022J\n\025hyperparame"
-  "ter_ranges\030\001 \001(\0132+.flyteidl.plugins.sage"
-  "maker.ParameterRanges\022s\n\017tuning_strategy"
-  "\030\002 \001(\0162Z.flyteidl.plugins.sagemaker.Hype"
-  "rparameterTuningSpecification.Hyperparam"
-  "eterTuningStrategy\022S\n\020tuning_objective\030\003"
+  "x_parallel_training_jobs\030\003 \001(\003\"H\n!Hyperp"
+  "arameterTuningObjectiveType\"#\n\005Value\022\014\n\010"
+  "MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\221\001\n\035Hyperparame"
+  "terTuningObjective\022[\n\016objective_type\030\001 \001"
+  "(\0162C.flyteidl.plugins.sagemaker.Hyperpar"
+  "ameterTuningObjectiveType.Value\022\023\n\013metri"
+  "c_name\030\002 \001(\t\"A\n\034HyperparameterTuningStra"
+  "tegy\"!\n\005Value\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\""
+  ":\n\034TrainingJobEarlyStoppingType\"\032\n\005Value"
+  "\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\203\003\n\035HyperparameterTu"
+  "ningJobConfig\022J\n\025hyperparameter_ranges\030\001"
+  " \001(\0132+.flyteidl.plugins.sagemaker.Parame"
+  "terRanges\022W\n\017tuning_strategy\030\002 \001(\0162>.fly"
+  "teidl.plugins.sagemaker.HyperparameterTu"
+  "ningStrategy.Value\022S\n\020tuning_objective\030\003"
   " \001(\01329.flyteidl.plugins.sagemaker.Hyperp"
-  "arameterTuningObjective\022\204\001\n training_job"
-  "_early_stopping_type\030\004 \001(\0162Z.flyteidl.pl"
-  "ugins.sagemaker.HyperparameterTuningSpec"
-  "ification.TrainingJobEarlyStoppingType\"8"
-  "\n\034HyperparameterTuningStrategy\022\014\n\010BAYESI"
-  "AN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobEarlyStop"
-  "pingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001B5Z3github.co"
-  "m/lyft/flyteidl/gen/pb-go/flyteidl/plugi"
-  "nsb\006proto3"
+  "arameterTuningObjective\022h\n training_job_"
+  "early_stopping_type\030\004 \001(\0162>.flyteidl.plu"
+  "gins.sagemaker.TrainingJobEarlyStoppingT"
+  "ype.ValueB5Z3github.com/lyft/flyteidl/ge"
+  "n/pb-go/flyteidl/pluginsb\006proto3"
   ;
 ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = {
   false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, 
   descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto,
-  "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, 1210,
+  "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, 1152,
 };
 
 void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() {
@@ -189,11 +265,11 @@ static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5
 namespace flyteidl {
 namespace plugins {
 namespace sagemaker {
-const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor() {
+const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjectiveType_Value_descriptor() {
   ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto);
   return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[0];
 }
-bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(int value) {
+bool HyperparameterTuningObjectiveType_Value_IsValid(int value) {
   switch (value) {
     case 0:
     case 1:
@@ -204,17 +280,17 @@ bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(int
 }
 
 #if !defined(_MSC_VER) || _MSC_VER >= 1900
-const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::MINIMIZE;
-const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::MAXIMIZE;
-const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::HyperparameterTuningObjectiveType_MIN;
-const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::HyperparameterTuningObjectiveType_MAX;
-const int HyperparameterTuningObjective::HyperparameterTuningObjectiveType_ARRAYSIZE;
+const HyperparameterTuningObjectiveType_Value HyperparameterTuningObjectiveType::MINIMIZE;
+const HyperparameterTuningObjectiveType_Value HyperparameterTuningObjectiveType::MAXIMIZE;
+const HyperparameterTuningObjectiveType_Value HyperparameterTuningObjectiveType::Value_MIN;
+const HyperparameterTuningObjectiveType_Value HyperparameterTuningObjectiveType::Value_MAX;
+const int HyperparameterTuningObjectiveType::Value_ARRAYSIZE;
 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
-const ::google::protobuf::EnumDescriptor* HyperparameterTuningSpecification_HyperparameterTuningStrategy_descriptor() {
+const ::google::protobuf::EnumDescriptor* HyperparameterTuningStrategy_Value_descriptor() {
   ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto);
   return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[1];
 }
-bool HyperparameterTuningSpecification_HyperparameterTuningStrategy_IsValid(int value) {
+bool HyperparameterTuningStrategy_Value_IsValid(int value) {
   switch (value) {
     case 0:
     case 1:
@@ -225,17 +301,17 @@ bool HyperparameterTuningSpecification_HyperparameterTuningStrategy_IsValid(int
 }
 
 #if !defined(_MSC_VER) || _MSC_VER >= 1900
-const HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification::BAYESIAN;
-const HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification::RANDOM;
-const HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification::HyperparameterTuningStrategy_MIN;
-const HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification::HyperparameterTuningStrategy_MAX;
-const int HyperparameterTuningSpecification::HyperparameterTuningStrategy_ARRAYSIZE;
+const HyperparameterTuningStrategy_Value HyperparameterTuningStrategy::BAYESIAN;
+const HyperparameterTuningStrategy_Value HyperparameterTuningStrategy::RANDOM;
+const HyperparameterTuningStrategy_Value HyperparameterTuningStrategy::Value_MIN;
+const HyperparameterTuningStrategy_Value HyperparameterTuningStrategy::Value_MAX;
+const int HyperparameterTuningStrategy::Value_ARRAYSIZE;
 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
-const ::google::protobuf::EnumDescriptor* HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_descriptor() {
+const ::google::protobuf::EnumDescriptor* TrainingJobEarlyStoppingType_Value_descriptor() {
   ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto);
   return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[2];
 }
-bool HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_IsValid(int value) {
+bool TrainingJobEarlyStoppingType_Value_IsValid(int value) {
   switch (value) {
     case 0:
     case 1:
@@ -246,11 +322,11 @@ bool HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_IsValid(int
 }
 
 #if !defined(_MSC_VER) || _MSC_VER >= 1900
-const HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification::OFF;
-const HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification::AUTO;
-const HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification::TrainingJobEarlyStoppingType_MIN;
-const HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification::TrainingJobEarlyStoppingType_MAX;
-const int HyperparameterTuningSpecification::TrainingJobEarlyStoppingType_ARRAYSIZE;
+const TrainingJobEarlyStoppingType_Value TrainingJobEarlyStoppingType::OFF;
+const TrainingJobEarlyStoppingType_Value TrainingJobEarlyStoppingType::AUTO;
+const TrainingJobEarlyStoppingType_Value TrainingJobEarlyStoppingType::Value_MIN;
+const TrainingJobEarlyStoppingType_Value TrainingJobEarlyStoppingType::Value_MAX;
+const int TrainingJobEarlyStoppingType::Value_ARRAYSIZE;
 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
 
 // ===================================================================
@@ -638,6 +714,215 @@ ::google::protobuf::Metadata HyperparameterTuningJob::GetMetadata() const {
 }
 
 
+// ===================================================================
+
+void HyperparameterTuningObjectiveType::InitAsDefaultInstance() {
+}
+class HyperparameterTuningObjectiveType::HasBitSetters {
+ public:
+};
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+HyperparameterTuningObjectiveType::HyperparameterTuningObjectiveType()
+  : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
+  SharedCtor();
+  // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+}
+HyperparameterTuningObjectiveType::HyperparameterTuningObjectiveType(const HyperparameterTuningObjectiveType& from)
+  : ::google::protobuf::Message(),
+      _internal_metadata_(nullptr) {
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+}
+
+void HyperparameterTuningObjectiveType::SharedCtor() {
+}
+
+HyperparameterTuningObjectiveType::~HyperparameterTuningObjectiveType() {
+  // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+  SharedDtor();
+}
+
+void HyperparameterTuningObjectiveType::SharedDtor() {
+}
+
+void HyperparameterTuningObjectiveType::SetCachedSize(int size) const {
+  _cached_size_.Set(size);
+}
+const HyperparameterTuningObjectiveType& HyperparameterTuningObjectiveType::default_instance() {
+  ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningObjectiveType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
+  return *internal_default_instance();
+}
+
+
+void HyperparameterTuningObjectiveType::Clear() {
+// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  _internal_metadata_.Clear();
+}
+
+#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+const char* HyperparameterTuningObjectiveType::_InternalParse(const char* begin, const char* end, void* object,
+                  ::google::protobuf::internal::ParseContext* ctx) {
+  auto msg = static_cast(object);
+  ::google::protobuf::int32 size; (void)size;
+  int depth; (void)depth;
+  ::google::protobuf::uint32 tag;
+  ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
+  auto ptr = begin;
+  while (ptr < end) {
+    ptr = ::google::protobuf::io::Parse32(ptr, &tag);
+    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
+    switch (tag >> 3) {
+      default: {
+        if ((tag & 7) == 4 || tag == 0) {
+          ctx->EndGroup(tag);
+          return ptr;
+        }
+        auto res = UnknownFieldParse(tag, {_InternalParse, msg},
+          ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
+        ptr = res.first;
+        GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
+        if (res.second) return ptr;
+      }
+    }  // switch
+  }  // while
+  return ptr;
+}
+#else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+bool HyperparameterTuningObjectiveType::MergePartialFromCodedStream(
+    ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
+  ::google::protobuf::uint32 tag;
+  // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+  for (;;) {
+    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+    tag = p.first;
+    if (!p.second) goto handle_unusual;
+  handle_unusual:
+    if (tag == 0) {
+      goto success;
+    }
+    DO_(::google::protobuf::internal::WireFormat::SkipField(
+          input, tag, _internal_metadata_.mutable_unknown_fields()));
+  }
+success:
+  // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+  return true;
+failure:
+  // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+  return false;
+#undef DO_
+}
+#endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+
+void HyperparameterTuningObjectiveType::SerializeWithCachedSizes(
+    ::google::protobuf::io::CodedOutputStream* output) const {
+  // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+        _internal_metadata_.unknown_fields(), output);
+  }
+  // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+}
+
+::google::protobuf::uint8* HyperparameterTuningObjectiveType::InternalSerializeWithCachedSizesToArray(
+    ::google::protobuf::uint8* target) const {
+  // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+        _internal_metadata_.unknown_fields(), target);
+  }
+  // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+  return target;
+}
+
+size_t HyperparameterTuningObjectiveType::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+  size_t total_size = 0;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    total_size +=
+      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+        _internal_metadata_.unknown_fields());
+  }
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+  SetCachedSize(cached_size);
+  return total_size;
+}
+
+void HyperparameterTuningObjectiveType::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+  GOOGLE_DCHECK_NE(&from, this);
+  const HyperparameterTuningObjectiveType* source =
+      ::google::protobuf::DynamicCastToGenerated(
+          &from);
+  if (source == nullptr) {
+  // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+  } else {
+  // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+    MergeFrom(*source);
+  }
+}
+
+void HyperparameterTuningObjectiveType::MergeFrom(const HyperparameterTuningObjectiveType& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+  GOOGLE_DCHECK_NE(&from, this);
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+}
+
+void HyperparameterTuningObjectiveType::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+void HyperparameterTuningObjectiveType::CopyFrom(const HyperparameterTuningObjectiveType& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+bool HyperparameterTuningObjectiveType::IsInitialized() const {
+  return true;
+}
+
+void HyperparameterTuningObjectiveType::Swap(HyperparameterTuningObjectiveType* other) {
+  if (other == this) return;
+  InternalSwap(other);
+}
+void HyperparameterTuningObjectiveType::InternalSwap(HyperparameterTuningObjectiveType* other) {
+  using std::swap;
+  _internal_metadata_.Swap(&other->_internal_metadata_);
+}
+
+::google::protobuf::Metadata HyperparameterTuningObjectiveType::GetMetadata() const {
+  ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto);
+  return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[kIndexInFileMessages];
+}
+
+
 // ===================================================================
 
 void HyperparameterTuningObjective::InitAsDefaultInstance() {
@@ -717,11 +1002,11 @@ const char* HyperparameterTuningObjective::_InternalParse(const char* begin, con
     ptr = ::google::protobuf::io::Parse32(ptr, &tag);
     GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
     switch (tag >> 3) {
-      // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1;
+      // .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1;
       case 1: {
         if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
         ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
-        msg->set_objective_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType>(val));
+        msg->set_objective_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value>(val));
         GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
         break;
       }
@@ -775,14 +1060,14 @@ bool HyperparameterTuningObjective::MergePartialFromCodedStream(
     tag = p.first;
     if (!p.second) goto handle_unusual;
     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
-      // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1;
+      // .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1;
       case 1: {
         if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
           int value = 0;
           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
                  input, &value)));
-          set_objective_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType >(value));
+          set_objective_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value >(value));
         } else {
           goto handle_unusual;
         }
@@ -831,7 +1116,7 @@ void HyperparameterTuningObjective::SerializeWithCachedSizes(
   ::google::protobuf::uint32 cached_has_bits = 0;
   (void) cached_has_bits;
 
-  // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1;
+  // .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1;
   if (this->objective_type() != 0) {
     ::google::protobuf::internal::WireFormatLite::WriteEnum(
       1, this->objective_type(), output);
@@ -860,7 +1145,7 @@ ::google::protobuf::uint8* HyperparameterTuningObjective::InternalSerializeWithC
   ::google::protobuf::uint32 cached_has_bits = 0;
   (void) cached_has_bits;
 
-  // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1;
+  // .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1;
   if (this->objective_type() != 0) {
     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
       1, this->objective_type(), target);
@@ -905,7 +1190,7 @@ size_t HyperparameterTuningObjective::ByteSizeLong() const {
         this->metric_name());
   }
 
-  // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1;
+  // .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1;
   if (this->objective_type() != 0) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::EnumSize(this->objective_type());
@@ -985,115 +1270,60 @@ ::google::protobuf::Metadata HyperparameterTuningObjective::GetMetadata() const
 
 // ===================================================================
 
-void HyperparameterTuningSpecification::InitAsDefaultInstance() {
-  ::flyteidl::plugins::sagemaker::_HyperparameterTuningSpecification_default_instance_._instance.get_mutable()->hyperparameter_ranges_ = const_cast< ::flyteidl::plugins::sagemaker::ParameterRanges*>(
-      ::flyteidl::plugins::sagemaker::ParameterRanges::internal_default_instance());
-  ::flyteidl::plugins::sagemaker::_HyperparameterTuningSpecification_default_instance_._instance.get_mutable()->tuning_objective_ = const_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective*>(
-      ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::internal_default_instance());
+void HyperparameterTuningStrategy::InitAsDefaultInstance() {
 }
-class HyperparameterTuningSpecification::HasBitSetters {
+class HyperparameterTuningStrategy::HasBitSetters {
  public:
-  static const ::flyteidl::plugins::sagemaker::ParameterRanges& hyperparameter_ranges(const HyperparameterTuningSpecification* msg);
-  static const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& tuning_objective(const HyperparameterTuningSpecification* msg);
 };
 
-const ::flyteidl::plugins::sagemaker::ParameterRanges&
-HyperparameterTuningSpecification::HasBitSetters::hyperparameter_ranges(const HyperparameterTuningSpecification* msg) {
-  return *msg->hyperparameter_ranges_;
-}
-const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective&
-HyperparameterTuningSpecification::HasBitSetters::tuning_objective(const HyperparameterTuningSpecification* msg) {
-  return *msg->tuning_objective_;
-}
-void HyperparameterTuningSpecification::clear_hyperparameter_ranges() {
-  if (GetArenaNoVirtual() == nullptr && hyperparameter_ranges_ != nullptr) {
-    delete hyperparameter_ranges_;
-  }
-  hyperparameter_ranges_ = nullptr;
-}
 #if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int HyperparameterTuningSpecification::kHyperparameterRangesFieldNumber;
-const int HyperparameterTuningSpecification::kTuningStrategyFieldNumber;
-const int HyperparameterTuningSpecification::kTuningObjectiveFieldNumber;
-const int HyperparameterTuningSpecification::kTrainingJobEarlyStoppingTypeFieldNumber;
 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
 
-HyperparameterTuningSpecification::HyperparameterTuningSpecification()
+HyperparameterTuningStrategy::HyperparameterTuningStrategy()
   : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
   SharedCtor();
-  // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+  // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
 }
-HyperparameterTuningSpecification::HyperparameterTuningSpecification(const HyperparameterTuningSpecification& from)
+HyperparameterTuningStrategy::HyperparameterTuningStrategy(const HyperparameterTuningStrategy& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(nullptr) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
-  if (from.has_hyperparameter_ranges()) {
-    hyperparameter_ranges_ = new ::flyteidl::plugins::sagemaker::ParameterRanges(*from.hyperparameter_ranges_);
-  } else {
-    hyperparameter_ranges_ = nullptr;
-  }
-  if (from.has_tuning_objective()) {
-    tuning_objective_ = new ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective(*from.tuning_objective_);
-  } else {
-    tuning_objective_ = nullptr;
-  }
-  ::memcpy(&tuning_strategy_, &from.tuning_strategy_,
-    static_cast(reinterpret_cast(&training_job_early_stopping_type_) -
-    reinterpret_cast(&tuning_strategy_)) + sizeof(training_job_early_stopping_type_));
-  // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+  // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
 }
 
-void HyperparameterTuningSpecification::SharedCtor() {
-  ::google::protobuf::internal::InitSCC(
-      &scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
-  ::memset(&hyperparameter_ranges_, 0, static_cast(
-      reinterpret_cast(&training_job_early_stopping_type_) -
-      reinterpret_cast(&hyperparameter_ranges_)) + sizeof(training_job_early_stopping_type_));
+void HyperparameterTuningStrategy::SharedCtor() {
 }
 
-HyperparameterTuningSpecification::~HyperparameterTuningSpecification() {
-  // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+HyperparameterTuningStrategy::~HyperparameterTuningStrategy() {
+  // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
   SharedDtor();
 }
 
-void HyperparameterTuningSpecification::SharedDtor() {
-  if (this != internal_default_instance()) delete hyperparameter_ranges_;
-  if (this != internal_default_instance()) delete tuning_objective_;
+void HyperparameterTuningStrategy::SharedDtor() {
 }
 
-void HyperparameterTuningSpecification::SetCachedSize(int size) const {
+void HyperparameterTuningStrategy::SetCachedSize(int size) const {
   _cached_size_.Set(size);
 }
-const HyperparameterTuningSpecification& HyperparameterTuningSpecification::default_instance() {
-  ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningSpecification_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
+const HyperparameterTuningStrategy& HyperparameterTuningStrategy::default_instance() {
+  ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningStrategy_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
   return *internal_default_instance();
 }
 
 
-void HyperparameterTuningSpecification::Clear() {
-// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+void HyperparameterTuningStrategy::Clear() {
+// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
   ::google::protobuf::uint32 cached_has_bits = 0;
   // Prevent compiler warnings about cached_has_bits being unused
   (void) cached_has_bits;
 
-  if (GetArenaNoVirtual() == nullptr && hyperparameter_ranges_ != nullptr) {
-    delete hyperparameter_ranges_;
-  }
-  hyperparameter_ranges_ = nullptr;
-  if (GetArenaNoVirtual() == nullptr && tuning_objective_ != nullptr) {
-    delete tuning_objective_;
-  }
-  tuning_objective_ = nullptr;
-  ::memset(&tuning_strategy_, 0, static_cast(
-      reinterpret_cast(&training_job_early_stopping_type_) -
-      reinterpret_cast(&tuning_strategy_)) + sizeof(training_job_early_stopping_type_));
   _internal_metadata_.Clear();
 }
 
 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
-const char* HyperparameterTuningSpecification::_InternalParse(const char* begin, const char* end, void* object,
+const char* HyperparameterTuningStrategy::_InternalParse(const char* begin, const char* end, void* object,
                   ::google::protobuf::internal::ParseContext* ctx) {
-  auto msg = static_cast(object);
+  auto msg = static_cast(object);
   ::google::protobuf::int32 size; (void)size;
   int depth; (void)depth;
   ::google::protobuf::uint32 tag;
@@ -1103,24 +1333,497 @@ const char* HyperparameterTuningSpecification::_InternalParse(const char* begin,
     ptr = ::google::protobuf::io::Parse32(ptr, &tag);
     GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
     switch (tag >> 3) {
-      // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
-      case 1: {
-        if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
-        ptr = ::google::protobuf::io::ReadSize(ptr, &size);
-        GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
-        parser_till_end = ::flyteidl::plugins::sagemaker::ParameterRanges::_InternalParse;
-        object = msg->mutable_hyperparameter_ranges();
-        if (size > end - ptr) goto len_delim_till_end;
-        ptr += size;
-        GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
-            {parser_till_end, object}, ptr - size, ptr));
-        break;
-      }
-      // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2;
-      case 2: {
-        if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
+      default: {
+        if ((tag & 7) == 4 || tag == 0) {
+          ctx->EndGroup(tag);
+          return ptr;
+        }
+        auto res = UnknownFieldParse(tag, {_InternalParse, msg},
+          ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
+        ptr = res.first;
+        GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
+        if (res.second) return ptr;
+      }
+    }  // switch
+  }  // while
+  return ptr;
+}
+#else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+bool HyperparameterTuningStrategy::MergePartialFromCodedStream(
+    ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
+  ::google::protobuf::uint32 tag;
+  // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+  for (;;) {
+    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+    tag = p.first;
+    if (!p.second) goto handle_unusual;
+  handle_unusual:
+    if (tag == 0) {
+      goto success;
+    }
+    DO_(::google::protobuf::internal::WireFormat::SkipField(
+          input, tag, _internal_metadata_.mutable_unknown_fields()));
+  }
+success:
+  // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+  return true;
+failure:
+  // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+  return false;
+#undef DO_
+}
+#endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+
+void HyperparameterTuningStrategy::SerializeWithCachedSizes(
+    ::google::protobuf::io::CodedOutputStream* output) const {
+  // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+        _internal_metadata_.unknown_fields(), output);
+  }
+  // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+}
+
+::google::protobuf::uint8* HyperparameterTuningStrategy::InternalSerializeWithCachedSizesToArray(
+    ::google::protobuf::uint8* target) const {
+  // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+        _internal_metadata_.unknown_fields(), target);
+  }
+  // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+  return target;
+}
+
+size_t HyperparameterTuningStrategy::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+  size_t total_size = 0;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    total_size +=
+      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+        _internal_metadata_.unknown_fields());
+  }
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+  SetCachedSize(cached_size);
+  return total_size;
+}
+
+void HyperparameterTuningStrategy::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+  GOOGLE_DCHECK_NE(&from, this);
+  const HyperparameterTuningStrategy* source =
+      ::google::protobuf::DynamicCastToGenerated(
+          &from);
+  if (source == nullptr) {
+  // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+  } else {
+  // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+    MergeFrom(*source);
+  }
+}
+
+void HyperparameterTuningStrategy::MergeFrom(const HyperparameterTuningStrategy& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+  GOOGLE_DCHECK_NE(&from, this);
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+}
+
+void HyperparameterTuningStrategy::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+void HyperparameterTuningStrategy::CopyFrom(const HyperparameterTuningStrategy& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+bool HyperparameterTuningStrategy::IsInitialized() const {
+  return true;
+}
+
+void HyperparameterTuningStrategy::Swap(HyperparameterTuningStrategy* other) {
+  if (other == this) return;
+  InternalSwap(other);
+}
+void HyperparameterTuningStrategy::InternalSwap(HyperparameterTuningStrategy* other) {
+  using std::swap;
+  _internal_metadata_.Swap(&other->_internal_metadata_);
+}
+
+::google::protobuf::Metadata HyperparameterTuningStrategy::GetMetadata() const {
+  ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto);
+  return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void TrainingJobEarlyStoppingType::InitAsDefaultInstance() {
+}
+class TrainingJobEarlyStoppingType::HasBitSetters {
+ public:
+};
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+TrainingJobEarlyStoppingType::TrainingJobEarlyStoppingType()
+  : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
+  SharedCtor();
+  // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+}
+TrainingJobEarlyStoppingType::TrainingJobEarlyStoppingType(const TrainingJobEarlyStoppingType& from)
+  : ::google::protobuf::Message(),
+      _internal_metadata_(nullptr) {
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+}
+
+void TrainingJobEarlyStoppingType::SharedCtor() {
+}
+
+TrainingJobEarlyStoppingType::~TrainingJobEarlyStoppingType() {
+  // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+  SharedDtor();
+}
+
+void TrainingJobEarlyStoppingType::SharedDtor() {
+}
+
+void TrainingJobEarlyStoppingType::SetCachedSize(int size) const {
+  _cached_size_.Set(size);
+}
+const TrainingJobEarlyStoppingType& TrainingJobEarlyStoppingType::default_instance() {
+  ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJobEarlyStoppingType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
+  return *internal_default_instance();
+}
+
+
+void TrainingJobEarlyStoppingType::Clear() {
+// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  _internal_metadata_.Clear();
+}
+
+#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+const char* TrainingJobEarlyStoppingType::_InternalParse(const char* begin, const char* end, void* object,
+                  ::google::protobuf::internal::ParseContext* ctx) {
+  auto msg = static_cast(object);
+  ::google::protobuf::int32 size; (void)size;
+  int depth; (void)depth;
+  ::google::protobuf::uint32 tag;
+  ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
+  auto ptr = begin;
+  while (ptr < end) {
+    ptr = ::google::protobuf::io::Parse32(ptr, &tag);
+    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
+    switch (tag >> 3) {
+      default: {
+        if ((tag & 7) == 4 || tag == 0) {
+          ctx->EndGroup(tag);
+          return ptr;
+        }
+        auto res = UnknownFieldParse(tag, {_InternalParse, msg},
+          ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
+        ptr = res.first;
+        GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
+        if (res.second) return ptr;
+      }
+    }  // switch
+  }  // while
+  return ptr;
+}
+#else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+bool TrainingJobEarlyStoppingType::MergePartialFromCodedStream(
+    ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
+  ::google::protobuf::uint32 tag;
+  // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+  for (;;) {
+    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+    tag = p.first;
+    if (!p.second) goto handle_unusual;
+  handle_unusual:
+    if (tag == 0) {
+      goto success;
+    }
+    DO_(::google::protobuf::internal::WireFormat::SkipField(
+          input, tag, _internal_metadata_.mutable_unknown_fields()));
+  }
+success:
+  // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+  return true;
+failure:
+  // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+  return false;
+#undef DO_
+}
+#endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+
+void TrainingJobEarlyStoppingType::SerializeWithCachedSizes(
+    ::google::protobuf::io::CodedOutputStream* output) const {
+  // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+        _internal_metadata_.unknown_fields(), output);
+  }
+  // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+}
+
+::google::protobuf::uint8* TrainingJobEarlyStoppingType::InternalSerializeWithCachedSizesToArray(
+    ::google::protobuf::uint8* target) const {
+  // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+        _internal_metadata_.unknown_fields(), target);
+  }
+  // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+  return target;
+}
+
+size_t TrainingJobEarlyStoppingType::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+  size_t total_size = 0;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    total_size +=
+      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+        _internal_metadata_.unknown_fields());
+  }
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+  SetCachedSize(cached_size);
+  return total_size;
+}
+
+void TrainingJobEarlyStoppingType::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+  GOOGLE_DCHECK_NE(&from, this);
+  const TrainingJobEarlyStoppingType* source =
+      ::google::protobuf::DynamicCastToGenerated(
+          &from);
+  if (source == nullptr) {
+  // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+  } else {
+  // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+    MergeFrom(*source);
+  }
+}
+
+void TrainingJobEarlyStoppingType::MergeFrom(const TrainingJobEarlyStoppingType& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+  GOOGLE_DCHECK_NE(&from, this);
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+}
+
+void TrainingJobEarlyStoppingType::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+void TrainingJobEarlyStoppingType::CopyFrom(const TrainingJobEarlyStoppingType& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+bool TrainingJobEarlyStoppingType::IsInitialized() const {
+  return true;
+}
+
+void TrainingJobEarlyStoppingType::Swap(TrainingJobEarlyStoppingType* other) {
+  if (other == this) return;
+  InternalSwap(other);
+}
+void TrainingJobEarlyStoppingType::InternalSwap(TrainingJobEarlyStoppingType* other) {
+  using std::swap;
+  _internal_metadata_.Swap(&other->_internal_metadata_);
+}
+
+::google::protobuf::Metadata TrainingJobEarlyStoppingType::GetMetadata() const {
+  ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto);
+  return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void HyperparameterTuningJobConfig::InitAsDefaultInstance() {
+  ::flyteidl::plugins::sagemaker::_HyperparameterTuningJobConfig_default_instance_._instance.get_mutable()->hyperparameter_ranges_ = const_cast< ::flyteidl::plugins::sagemaker::ParameterRanges*>(
+      ::flyteidl::plugins::sagemaker::ParameterRanges::internal_default_instance());
+  ::flyteidl::plugins::sagemaker::_HyperparameterTuningJobConfig_default_instance_._instance.get_mutable()->tuning_objective_ = const_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective*>(
+      ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::internal_default_instance());
+}
+class HyperparameterTuningJobConfig::HasBitSetters {
+ public:
+  static const ::flyteidl::plugins::sagemaker::ParameterRanges& hyperparameter_ranges(const HyperparameterTuningJobConfig* msg);
+  static const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& tuning_objective(const HyperparameterTuningJobConfig* msg);
+};
+
+const ::flyteidl::plugins::sagemaker::ParameterRanges&
+HyperparameterTuningJobConfig::HasBitSetters::hyperparameter_ranges(const HyperparameterTuningJobConfig* msg) {
+  return *msg->hyperparameter_ranges_;
+}
+const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective&
+HyperparameterTuningJobConfig::HasBitSetters::tuning_objective(const HyperparameterTuningJobConfig* msg) {
+  return *msg->tuning_objective_;
+}
+void HyperparameterTuningJobConfig::clear_hyperparameter_ranges() {
+  if (GetArenaNoVirtual() == nullptr && hyperparameter_ranges_ != nullptr) {
+    delete hyperparameter_ranges_;
+  }
+  hyperparameter_ranges_ = nullptr;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int HyperparameterTuningJobConfig::kHyperparameterRangesFieldNumber;
+const int HyperparameterTuningJobConfig::kTuningStrategyFieldNumber;
+const int HyperparameterTuningJobConfig::kTuningObjectiveFieldNumber;
+const int HyperparameterTuningJobConfig::kTrainingJobEarlyStoppingTypeFieldNumber;
+#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+HyperparameterTuningJobConfig::HyperparameterTuningJobConfig()
+  : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
+  SharedCtor();
+  // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
+}
+HyperparameterTuningJobConfig::HyperparameterTuningJobConfig(const HyperparameterTuningJobConfig& from)
+  : ::google::protobuf::Message(),
+      _internal_metadata_(nullptr) {
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  if (from.has_hyperparameter_ranges()) {
+    hyperparameter_ranges_ = new ::flyteidl::plugins::sagemaker::ParameterRanges(*from.hyperparameter_ranges_);
+  } else {
+    hyperparameter_ranges_ = nullptr;
+  }
+  if (from.has_tuning_objective()) {
+    tuning_objective_ = new ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective(*from.tuning_objective_);
+  } else {
+    tuning_objective_ = nullptr;
+  }
+  ::memcpy(&tuning_strategy_, &from.tuning_strategy_,
+    static_cast(reinterpret_cast(&training_job_early_stopping_type_) -
+    reinterpret_cast(&tuning_strategy_)) + sizeof(training_job_early_stopping_type_));
+  // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
+}
+
+void HyperparameterTuningJobConfig::SharedCtor() {
+  ::google::protobuf::internal::InitSCC(
+      &scc_info_HyperparameterTuningJobConfig_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
+  ::memset(&hyperparameter_ranges_, 0, static_cast(
+      reinterpret_cast(&training_job_early_stopping_type_) -
+      reinterpret_cast(&hyperparameter_ranges_)) + sizeof(training_job_early_stopping_type_));
+}
+
+HyperparameterTuningJobConfig::~HyperparameterTuningJobConfig() {
+  // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
+  SharedDtor();
+}
+
+void HyperparameterTuningJobConfig::SharedDtor() {
+  if (this != internal_default_instance()) delete hyperparameter_ranges_;
+  if (this != internal_default_instance()) delete tuning_objective_;
+}
+
+void HyperparameterTuningJobConfig::SetCachedSize(int size) const {
+  _cached_size_.Set(size);
+}
+const HyperparameterTuningJobConfig& HyperparameterTuningJobConfig::default_instance() {
+  ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningJobConfig_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base);
+  return *internal_default_instance();
+}
+
+
+void HyperparameterTuningJobConfig::Clear() {
+// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  if (GetArenaNoVirtual() == nullptr && hyperparameter_ranges_ != nullptr) {
+    delete hyperparameter_ranges_;
+  }
+  hyperparameter_ranges_ = nullptr;
+  if (GetArenaNoVirtual() == nullptr && tuning_objective_ != nullptr) {
+    delete tuning_objective_;
+  }
+  tuning_objective_ = nullptr;
+  ::memset(&tuning_strategy_, 0, static_cast(
+      reinterpret_cast(&training_job_early_stopping_type_) -
+      reinterpret_cast(&tuning_strategy_)) + sizeof(training_job_early_stopping_type_));
+  _internal_metadata_.Clear();
+}
+
+#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+const char* HyperparameterTuningJobConfig::_InternalParse(const char* begin, const char* end, void* object,
+                  ::google::protobuf::internal::ParseContext* ctx) {
+  auto msg = static_cast(object);
+  ::google::protobuf::int32 size; (void)size;
+  int depth; (void)depth;
+  ::google::protobuf::uint32 tag;
+  ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
+  auto ptr = begin;
+  while (ptr < end) {
+    ptr = ::google::protobuf::io::Parse32(ptr, &tag);
+    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
+    switch (tag >> 3) {
+      // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
+      case 1: {
+        if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
+        ptr = ::google::protobuf::io::ReadSize(ptr, &size);
+        GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
+        parser_till_end = ::flyteidl::plugins::sagemaker::ParameterRanges::_InternalParse;
+        object = msg->mutable_hyperparameter_ranges();
+        if (size > end - ptr) goto len_delim_till_end;
+        ptr += size;
+        GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
+            {parser_till_end, object}, ptr - size, ptr));
+        break;
+      }
+      // .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2;
+      case 2: {
+        if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
         ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
-        msg->set_tuning_strategy(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy>(val));
+        msg->set_tuning_strategy(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value>(val));
         GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
         break;
       }
@@ -1137,11 +1840,11 @@ const char* HyperparameterTuningSpecification::_InternalParse(const char* begin,
             {parser_till_end, object}, ptr - size, ptr));
         break;
       }
-      // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
+      // .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4;
       case 4: {
         if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
         ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
-        msg->set_training_job_early_stopping_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType>(val));
+        msg->set_training_job_early_stopping_type(static_cast<::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value>(val));
         GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
         break;
       }
@@ -1165,11 +1868,11 @@ const char* HyperparameterTuningSpecification::_InternalParse(const char* begin,
                                {parser_till_end, object}, size);
 }
 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
-bool HyperparameterTuningSpecification::MergePartialFromCodedStream(
+bool HyperparameterTuningJobConfig::MergePartialFromCodedStream(
     ::google::protobuf::io::CodedInputStream* input) {
 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
   ::google::protobuf::uint32 tag;
-  // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+  // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
   for (;;) {
     ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
     tag = p.first;
@@ -1186,14 +1889,14 @@ bool HyperparameterTuningSpecification::MergePartialFromCodedStream(
         break;
       }
 
-      // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2;
+      // .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2;
       case 2: {
         if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
           int value = 0;
           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
                  input, &value)));
-          set_tuning_strategy(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy >(value));
+          set_tuning_strategy(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value >(value));
         } else {
           goto handle_unusual;
         }
@@ -1211,14 +1914,14 @@ bool HyperparameterTuningSpecification::MergePartialFromCodedStream(
         break;
       }
 
-      // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
+      // .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4;
       case 4: {
         if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
           int value = 0;
           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
                  input, &value)));
-          set_training_job_early_stopping_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType >(value));
+          set_training_job_early_stopping_type(static_cast< ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value >(value));
         } else {
           goto handle_unusual;
         }
@@ -1237,18 +1940,18 @@ bool HyperparameterTuningSpecification::MergePartialFromCodedStream(
     }
   }
 success:
-  // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+  // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
   return true;
 failure:
-  // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+  // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
   return false;
 #undef DO_
 }
 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
 
-void HyperparameterTuningSpecification::SerializeWithCachedSizes(
+void HyperparameterTuningJobConfig::SerializeWithCachedSizes(
     ::google::protobuf::io::CodedOutputStream* output) const {
-  // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+  // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
   ::google::protobuf::uint32 cached_has_bits = 0;
   (void) cached_has_bits;
 
@@ -1258,7 +1961,7 @@ void HyperparameterTuningSpecification::SerializeWithCachedSizes(
       1, HasBitSetters::hyperparameter_ranges(this), output);
   }
 
-  // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2;
+  // .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2;
   if (this->tuning_strategy() != 0) {
     ::google::protobuf::internal::WireFormatLite::WriteEnum(
       2, this->tuning_strategy(), output);
@@ -1270,7 +1973,7 @@ void HyperparameterTuningSpecification::SerializeWithCachedSizes(
       3, HasBitSetters::tuning_objective(this), output);
   }
 
-  // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
+  // .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4;
   if (this->training_job_early_stopping_type() != 0) {
     ::google::protobuf::internal::WireFormatLite::WriteEnum(
       4, this->training_job_early_stopping_type(), output);
@@ -1280,12 +1983,12 @@ void HyperparameterTuningSpecification::SerializeWithCachedSizes(
     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
         _internal_metadata_.unknown_fields(), output);
   }
-  // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+  // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
 }
 
-::google::protobuf::uint8* HyperparameterTuningSpecification::InternalSerializeWithCachedSizesToArray(
+::google::protobuf::uint8* HyperparameterTuningJobConfig::InternalSerializeWithCachedSizesToArray(
     ::google::protobuf::uint8* target) const {
-  // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+  // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
   ::google::protobuf::uint32 cached_has_bits = 0;
   (void) cached_has_bits;
 
@@ -1296,7 +1999,7 @@ ::google::protobuf::uint8* HyperparameterTuningSpecification::InternalSerializeW
         1, HasBitSetters::hyperparameter_ranges(this), target);
   }
 
-  // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2;
+  // .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2;
   if (this->tuning_strategy() != 0) {
     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
       2, this->tuning_strategy(), target);
@@ -1309,7 +2012,7 @@ ::google::protobuf::uint8* HyperparameterTuningSpecification::InternalSerializeW
         3, HasBitSetters::tuning_objective(this), target);
   }
 
-  // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
+  // .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4;
   if (this->training_job_early_stopping_type() != 0) {
     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
       4, this->training_job_early_stopping_type(), target);
@@ -1319,12 +2022,12 @@ ::google::protobuf::uint8* HyperparameterTuningSpecification::InternalSerializeW
     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
         _internal_metadata_.unknown_fields(), target);
   }
-  // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+  // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
   return target;
 }
 
-size_t HyperparameterTuningSpecification::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+size_t HyperparameterTuningJobConfig::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
   size_t total_size = 0;
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -1350,13 +2053,13 @@ size_t HyperparameterTuningSpecification::ByteSizeLong() const {
         *tuning_objective_);
   }
 
-  // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2;
+  // .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2;
   if (this->tuning_strategy() != 0) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::EnumSize(this->tuning_strategy());
   }
 
-  // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
+  // .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4;
   if (this->training_job_early_stopping_type() != 0) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::EnumSize(this->training_job_early_stopping_type());
@@ -1367,23 +2070,23 @@ size_t HyperparameterTuningSpecification::ByteSizeLong() const {
   return total_size;
 }
 
-void HyperparameterTuningSpecification::MergeFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+void HyperparameterTuningJobConfig::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
   GOOGLE_DCHECK_NE(&from, this);
-  const HyperparameterTuningSpecification* source =
-      ::google::protobuf::DynamicCastToGenerated(
+  const HyperparameterTuningJobConfig* source =
+      ::google::protobuf::DynamicCastToGenerated(
           &from);
   if (source == nullptr) {
-  // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+  // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
   } else {
-  // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+  // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
     MergeFrom(*source);
   }
 }
 
-void HyperparameterTuningSpecification::MergeFrom(const HyperparameterTuningSpecification& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+void HyperparameterTuningJobConfig::MergeFrom(const HyperparameterTuningJobConfig& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
   GOOGLE_DCHECK_NE(&from, this);
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   ::google::protobuf::uint32 cached_has_bits = 0;
@@ -1403,29 +2106,29 @@ void HyperparameterTuningSpecification::MergeFrom(const HyperparameterTuningSpec
   }
 }
 
-void HyperparameterTuningSpecification::CopyFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+void HyperparameterTuningJobConfig::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
   if (&from == this) return;
   Clear();
   MergeFrom(from);
 }
 
-void HyperparameterTuningSpecification::CopyFrom(const HyperparameterTuningSpecification& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+void HyperparameterTuningJobConfig::CopyFrom(const HyperparameterTuningJobConfig& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
   if (&from == this) return;
   Clear();
   MergeFrom(from);
 }
 
-bool HyperparameterTuningSpecification::IsInitialized() const {
+bool HyperparameterTuningJobConfig::IsInitialized() const {
   return true;
 }
 
-void HyperparameterTuningSpecification::Swap(HyperparameterTuningSpecification* other) {
+void HyperparameterTuningJobConfig::Swap(HyperparameterTuningJobConfig* other) {
   if (other == this) return;
   InternalSwap(other);
 }
-void HyperparameterTuningSpecification::InternalSwap(HyperparameterTuningSpecification* other) {
+void HyperparameterTuningJobConfig::InternalSwap(HyperparameterTuningJobConfig* other) {
   using std::swap;
   _internal_metadata_.Swap(&other->_internal_metadata_);
   swap(hyperparameter_ranges_, other->hyperparameter_ranges_);
@@ -1434,7 +2137,7 @@ void HyperparameterTuningSpecification::InternalSwap(HyperparameterTuningSpecifi
   swap(training_job_early_stopping_type_, other->training_job_early_stopping_type_);
 }
 
-::google::protobuf::Metadata HyperparameterTuningSpecification::GetMetadata() const {
+::google::protobuf::Metadata HyperparameterTuningJobConfig::GetMetadata() const {
   ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto);
   return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[kIndexInFileMessages];
 }
@@ -1449,11 +2152,20 @@ namespace protobuf {
 template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningJob >(Arena* arena) {
   return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningJob >(arena);
 }
+template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType >(Arena* arena) {
+  return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType >(arena);
+}
 template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective >(Arena* arena) {
   return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective >(arena);
 }
-template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification >(Arena* arena) {
-  return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification >(arena);
+template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy >(Arena* arena) {
+  return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy >(arena);
+}
+template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType >(Arena* arena) {
+  return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType >(arena);
+}
+template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig >(Arena* arena) {
+  return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig >(arena);
 }
 }  // namespace protobuf
 }  // namespace google
diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h
index d4921de0c..1e09a9443 100644
--- a/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h
+++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h
@@ -44,7 +44,7 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjo
     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
   static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
-  static const ::google::protobuf::internal::ParseTable schema[3]
+  static const ::google::protobuf::internal::ParseTable schema[6]
     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
   static const ::google::protobuf::internal::FieldMetadata field_metadata[];
   static const ::google::protobuf::internal::SerializationTable serialization_table[];
@@ -57,88 +57,100 @@ namespace sagemaker {
 class HyperparameterTuningJob;
 class HyperparameterTuningJobDefaultTypeInternal;
 extern HyperparameterTuningJobDefaultTypeInternal _HyperparameterTuningJob_default_instance_;
+class HyperparameterTuningJobConfig;
+class HyperparameterTuningJobConfigDefaultTypeInternal;
+extern HyperparameterTuningJobConfigDefaultTypeInternal _HyperparameterTuningJobConfig_default_instance_;
 class HyperparameterTuningObjective;
 class HyperparameterTuningObjectiveDefaultTypeInternal;
 extern HyperparameterTuningObjectiveDefaultTypeInternal _HyperparameterTuningObjective_default_instance_;
-class HyperparameterTuningSpecification;
-class HyperparameterTuningSpecificationDefaultTypeInternal;
-extern HyperparameterTuningSpecificationDefaultTypeInternal _HyperparameterTuningSpecification_default_instance_;
+class HyperparameterTuningObjectiveType;
+class HyperparameterTuningObjectiveTypeDefaultTypeInternal;
+extern HyperparameterTuningObjectiveTypeDefaultTypeInternal _HyperparameterTuningObjectiveType_default_instance_;
+class HyperparameterTuningStrategy;
+class HyperparameterTuningStrategyDefaultTypeInternal;
+extern HyperparameterTuningStrategyDefaultTypeInternal _HyperparameterTuningStrategy_default_instance_;
+class TrainingJobEarlyStoppingType;
+class TrainingJobEarlyStoppingTypeDefaultTypeInternal;
+extern TrainingJobEarlyStoppingTypeDefaultTypeInternal _TrainingJobEarlyStoppingType_default_instance_;
 }  // namespace sagemaker
 }  // namespace plugins
 }  // namespace flyteidl
 namespace google {
 namespace protobuf {
 template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningJob>(Arena*);
+template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(Arena*);
-template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification>(Arena*);
+template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType>(Arena*);
+template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy>(Arena*);
+template<> ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType>(Arena*);
 }  // namespace protobuf
 }  // namespace google
 namespace flyteidl {
 namespace plugins {
 namespace sagemaker {
 
-enum HyperparameterTuningObjective_HyperparameterTuningObjectiveType {
-  HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE = 0,
-  HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE = 1,
-  HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjective_HyperparameterTuningObjectiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
-  HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjective_HyperparameterTuningObjectiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
+enum HyperparameterTuningObjectiveType_Value {
+  HyperparameterTuningObjectiveType_Value_MINIMIZE = 0,
+  HyperparameterTuningObjectiveType_Value_MAXIMIZE = 1,
+  HyperparameterTuningObjectiveType_Value_HyperparameterTuningObjectiveType_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
+  HyperparameterTuningObjectiveType_Value_HyperparameterTuningObjectiveType_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
 };
-bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(int value);
-const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MIN = HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE;
-const HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX = HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE;
-const int HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_ARRAYSIZE = HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX + 1;
+bool HyperparameterTuningObjectiveType_Value_IsValid(int value);
+const HyperparameterTuningObjectiveType_Value HyperparameterTuningObjectiveType_Value_Value_MIN = HyperparameterTuningObjectiveType_Value_MINIMIZE;
+const HyperparameterTuningObjectiveType_Value HyperparameterTuningObjectiveType_Value_Value_MAX = HyperparameterTuningObjectiveType_Value_MAXIMIZE;
+const int HyperparameterTuningObjectiveType_Value_Value_ARRAYSIZE = HyperparameterTuningObjectiveType_Value_Value_MAX + 1;
 
-const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor();
-inline const ::std::string& HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Name(HyperparameterTuningObjective_HyperparameterTuningObjectiveType value) {
+const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjectiveType_Value_descriptor();
+inline const ::std::string& HyperparameterTuningObjectiveType_Value_Name(HyperparameterTuningObjectiveType_Value value) {
   return ::google::protobuf::internal::NameOfEnum(
-    HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(), value);
-}
-inline bool HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Parse(
-    const ::std::string& name, HyperparameterTuningObjective_HyperparameterTuningObjectiveType* value) {
-  return ::google::protobuf::internal::ParseNamedEnum(
-    HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor(), name, value);
-}
-enum HyperparameterTuningSpecification_HyperparameterTuningStrategy {
-  HyperparameterTuningSpecification_HyperparameterTuningStrategy_BAYESIAN = 0,
-  HyperparameterTuningSpecification_HyperparameterTuningStrategy_RANDOM = 1,
-  HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningSpecification_HyperparameterTuningStrategy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
-  HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningSpecification_HyperparameterTuningStrategy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
+    HyperparameterTuningObjectiveType_Value_descriptor(), value);
+}
+inline bool HyperparameterTuningObjectiveType_Value_Parse(
+    const ::std::string& name, HyperparameterTuningObjectiveType_Value* value) {
+  return ::google::protobuf::internal::ParseNamedEnum(
+    HyperparameterTuningObjectiveType_Value_descriptor(), name, value);
+}
+enum HyperparameterTuningStrategy_Value {
+  HyperparameterTuningStrategy_Value_BAYESIAN = 0,
+  HyperparameterTuningStrategy_Value_RANDOM = 1,
+  HyperparameterTuningStrategy_Value_HyperparameterTuningStrategy_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
+  HyperparameterTuningStrategy_Value_HyperparameterTuningStrategy_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
 };
-bool HyperparameterTuningSpecification_HyperparameterTuningStrategy_IsValid(int value);
-const HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MIN = HyperparameterTuningSpecification_HyperparameterTuningStrategy_BAYESIAN;
-const HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX = HyperparameterTuningSpecification_HyperparameterTuningStrategy_RANDOM;
-const int HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_ARRAYSIZE = HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX + 1;
+bool HyperparameterTuningStrategy_Value_IsValid(int value);
+const HyperparameterTuningStrategy_Value HyperparameterTuningStrategy_Value_Value_MIN = HyperparameterTuningStrategy_Value_BAYESIAN;
+const HyperparameterTuningStrategy_Value HyperparameterTuningStrategy_Value_Value_MAX = HyperparameterTuningStrategy_Value_RANDOM;
+const int HyperparameterTuningStrategy_Value_Value_ARRAYSIZE = HyperparameterTuningStrategy_Value_Value_MAX + 1;
 
-const ::google::protobuf::EnumDescriptor* HyperparameterTuningSpecification_HyperparameterTuningStrategy_descriptor();
-inline const ::std::string& HyperparameterTuningSpecification_HyperparameterTuningStrategy_Name(HyperparameterTuningSpecification_HyperparameterTuningStrategy value) {
+const ::google::protobuf::EnumDescriptor* HyperparameterTuningStrategy_Value_descriptor();
+inline const ::std::string& HyperparameterTuningStrategy_Value_Name(HyperparameterTuningStrategy_Value value) {
   return ::google::protobuf::internal::NameOfEnum(
-    HyperparameterTuningSpecification_HyperparameterTuningStrategy_descriptor(), value);
-}
-inline bool HyperparameterTuningSpecification_HyperparameterTuningStrategy_Parse(
-    const ::std::string& name, HyperparameterTuningSpecification_HyperparameterTuningStrategy* value) {
-  return ::google::protobuf::internal::ParseNamedEnum(
-    HyperparameterTuningSpecification_HyperparameterTuningStrategy_descriptor(), name, value);
-}
-enum HyperparameterTuningSpecification_TrainingJobEarlyStoppingType {
-  HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_OFF = 0,
-  HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_AUTO = 1,
-  HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
-  HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
+    HyperparameterTuningStrategy_Value_descriptor(), value);
+}
+inline bool HyperparameterTuningStrategy_Value_Parse(
+    const ::std::string& name, HyperparameterTuningStrategy_Value* value) {
+  return ::google::protobuf::internal::ParseNamedEnum(
+    HyperparameterTuningStrategy_Value_descriptor(), name, value);
+}
+enum TrainingJobEarlyStoppingType_Value {
+  TrainingJobEarlyStoppingType_Value_OFF = 0,
+  TrainingJobEarlyStoppingType_Value_AUTO = 1,
+  TrainingJobEarlyStoppingType_Value_TrainingJobEarlyStoppingType_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
+  TrainingJobEarlyStoppingType_Value_TrainingJobEarlyStoppingType_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
 };
-bool HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_IsValid(int value);
-const HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MIN = HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_OFF;
-const HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX = HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_AUTO;
-const int HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_ARRAYSIZE = HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX + 1;
+bool TrainingJobEarlyStoppingType_Value_IsValid(int value);
+const TrainingJobEarlyStoppingType_Value TrainingJobEarlyStoppingType_Value_Value_MIN = TrainingJobEarlyStoppingType_Value_OFF;
+const TrainingJobEarlyStoppingType_Value TrainingJobEarlyStoppingType_Value_Value_MAX = TrainingJobEarlyStoppingType_Value_AUTO;
+const int TrainingJobEarlyStoppingType_Value_Value_ARRAYSIZE = TrainingJobEarlyStoppingType_Value_Value_MAX + 1;
 
-const ::google::protobuf::EnumDescriptor* HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_descriptor();
-inline const ::std::string& HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_Name(HyperparameterTuningSpecification_TrainingJobEarlyStoppingType value) {
+const ::google::protobuf::EnumDescriptor* TrainingJobEarlyStoppingType_Value_descriptor();
+inline const ::std::string& TrainingJobEarlyStoppingType_Value_Name(TrainingJobEarlyStoppingType_Value value) {
   return ::google::protobuf::internal::NameOfEnum(
-    HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_descriptor(), value);
+    TrainingJobEarlyStoppingType_Value_descriptor(), value);
 }
-inline bool HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_Parse(
-    const ::std::string& name, HyperparameterTuningSpecification_TrainingJobEarlyStoppingType* value) {
-  return ::google::protobuf::internal::ParseNamedEnum(
-    HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_descriptor(), name, value);
+inline bool TrainingJobEarlyStoppingType_Value_Parse(
+    const ::std::string& name, TrainingJobEarlyStoppingType_Value* value) {
+  return ::google::protobuf::internal::ParseNamedEnum(
+    TrainingJobEarlyStoppingType_Value_descriptor(), name, value);
 }
 // ===================================================================
 
@@ -271,6 +283,137 @@ class HyperparameterTuningJob final :
 };
 // -------------------------------------------------------------------
 
+class HyperparameterTuningObjectiveType final :
+    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) */ {
+ public:
+  HyperparameterTuningObjectiveType();
+  virtual ~HyperparameterTuningObjectiveType();
+
+  HyperparameterTuningObjectiveType(const HyperparameterTuningObjectiveType& from);
+
+  inline HyperparameterTuningObjectiveType& operator=(const HyperparameterTuningObjectiveType& from) {
+    CopyFrom(from);
+    return *this;
+  }
+  #if LANG_CXX11
+  HyperparameterTuningObjectiveType(HyperparameterTuningObjectiveType&& from) noexcept
+    : HyperparameterTuningObjectiveType() {
+    *this = ::std::move(from);
+  }
+
+  inline HyperparameterTuningObjectiveType& operator=(HyperparameterTuningObjectiveType&& from) noexcept {
+    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+      if (this != &from) InternalSwap(&from);
+    } else {
+      CopyFrom(from);
+    }
+    return *this;
+  }
+  #endif
+  static const ::google::protobuf::Descriptor* descriptor() {
+    return default_instance().GetDescriptor();
+  }
+  static const HyperparameterTuningObjectiveType& default_instance();
+
+  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
+  static inline const HyperparameterTuningObjectiveType* internal_default_instance() {
+    return reinterpret_cast(
+               &_HyperparameterTuningObjectiveType_default_instance_);
+  }
+  static constexpr int kIndexInFileMessages =
+    1;
+
+  void Swap(HyperparameterTuningObjectiveType* other);
+  friend void swap(HyperparameterTuningObjectiveType& a, HyperparameterTuningObjectiveType& b) {
+    a.Swap(&b);
+  }
+
+  // implements Message ----------------------------------------------
+
+  inline HyperparameterTuningObjectiveType* New() const final {
+    return CreateMaybeMessage(nullptr);
+  }
+
+  HyperparameterTuningObjectiveType* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
+  void CopyFrom(const HyperparameterTuningObjectiveType& from);
+  void MergeFrom(const HyperparameterTuningObjectiveType& from);
+  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+  bool IsInitialized() const final;
+
+  size_t ByteSizeLong() const final;
+  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
+  ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
+  #else
+  bool MergePartialFromCodedStream(
+      ::google::protobuf::io::CodedInputStream* input) final;
+  #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  void SerializeWithCachedSizes(
+      ::google::protobuf::io::CodedOutputStream* output) const final;
+  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+      ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
+  private:
+  void SharedCtor();
+  void SharedDtor();
+  void SetCachedSize(int size) const final;
+  void InternalSwap(HyperparameterTuningObjectiveType* other);
+  private:
+  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+    return nullptr;
+  }
+  inline void* MaybeArenaPtr() const {
+    return nullptr;
+  }
+  public:
+
+  ::google::protobuf::Metadata GetMetadata() const final;
+
+  // nested types ----------------------------------------------------
+
+  typedef HyperparameterTuningObjectiveType_Value Value;
+  static const Value MINIMIZE =
+    HyperparameterTuningObjectiveType_Value_MINIMIZE;
+  static const Value MAXIMIZE =
+    HyperparameterTuningObjectiveType_Value_MAXIMIZE;
+  static inline bool Value_IsValid(int value) {
+    return HyperparameterTuningObjectiveType_Value_IsValid(value);
+  }
+  static const Value Value_MIN =
+    HyperparameterTuningObjectiveType_Value_Value_MIN;
+  static const Value Value_MAX =
+    HyperparameterTuningObjectiveType_Value_Value_MAX;
+  static const int Value_ARRAYSIZE =
+    HyperparameterTuningObjectiveType_Value_Value_ARRAYSIZE;
+  static inline const ::google::protobuf::EnumDescriptor*
+  Value_descriptor() {
+    return HyperparameterTuningObjectiveType_Value_descriptor();
+  }
+  static inline const ::std::string& Value_Name(Value value) {
+    return HyperparameterTuningObjectiveType_Value_Name(value);
+  }
+  static inline bool Value_Parse(const ::std::string& name,
+      Value* value) {
+    return HyperparameterTuningObjectiveType_Value_Parse(name, value);
+  }
+
+  // accessors -------------------------------------------------------
+
+  // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType)
+ private:
+  class HasBitSetters;
+
+  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto;
+};
+// -------------------------------------------------------------------
+
 class HyperparameterTuningObjective final :
     public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) */ {
  public:
@@ -309,7 +452,7 @@ class HyperparameterTuningObjective final :
                &_HyperparameterTuningObjective_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    1;
+    2;
 
   void Swap(HyperparameterTuningObjective* other);
   friend void swap(HyperparameterTuningObjective& a, HyperparameterTuningObjective& b) {
@@ -364,32 +507,6 @@ class HyperparameterTuningObjective final :
 
   // nested types ----------------------------------------------------
 
-  typedef HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType;
-  static const HyperparameterTuningObjectiveType MINIMIZE =
-    HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MINIMIZE;
-  static const HyperparameterTuningObjectiveType MAXIMIZE =
-    HyperparameterTuningObjective_HyperparameterTuningObjectiveType_MAXIMIZE;
-  static inline bool HyperparameterTuningObjectiveType_IsValid(int value) {
-    return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_IsValid(value);
-  }
-  static const HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType_MIN =
-    HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MIN;
-  static const HyperparameterTuningObjectiveType HyperparameterTuningObjectiveType_MAX =
-    HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_MAX;
-  static const int HyperparameterTuningObjectiveType_ARRAYSIZE =
-    HyperparameterTuningObjective_HyperparameterTuningObjectiveType_HyperparameterTuningObjectiveType_ARRAYSIZE;
-  static inline const ::google::protobuf::EnumDescriptor*
-  HyperparameterTuningObjectiveType_descriptor() {
-    return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor();
-  }
-  static inline const ::std::string& HyperparameterTuningObjectiveType_Name(HyperparameterTuningObjectiveType value) {
-    return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Name(value);
-  }
-  static inline bool HyperparameterTuningObjectiveType_Parse(const ::std::string& name,
-      HyperparameterTuningObjectiveType* value) {
-    return HyperparameterTuningObjective_HyperparameterTuningObjectiveType_Parse(name, value);
-  }
-
   // accessors -------------------------------------------------------
 
   // string metric_name = 2;
@@ -406,11 +523,11 @@ class HyperparameterTuningObjective final :
   ::std::string* release_metric_name();
   void set_allocated_metric_name(::std::string* metric_name);
 
-  // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1;
+  // .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1;
   void clear_objective_type();
   static const int kObjectiveTypeFieldNumber = 1;
-  ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType objective_type() const;
-  void set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType value);
+  ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value objective_type() const;
+  void set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value value);
 
   // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective)
  private:
@@ -424,25 +541,25 @@ class HyperparameterTuningObjective final :
 };
 // -------------------------------------------------------------------
 
-class HyperparameterTuningSpecification final :
-    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) */ {
+class HyperparameterTuningStrategy final :
+    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) */ {
  public:
-  HyperparameterTuningSpecification();
-  virtual ~HyperparameterTuningSpecification();
+  HyperparameterTuningStrategy();
+  virtual ~HyperparameterTuningStrategy();
 
-  HyperparameterTuningSpecification(const HyperparameterTuningSpecification& from);
+  HyperparameterTuningStrategy(const HyperparameterTuningStrategy& from);
 
-  inline HyperparameterTuningSpecification& operator=(const HyperparameterTuningSpecification& from) {
+  inline HyperparameterTuningStrategy& operator=(const HyperparameterTuningStrategy& from) {
     CopyFrom(from);
     return *this;
   }
   #if LANG_CXX11
-  HyperparameterTuningSpecification(HyperparameterTuningSpecification&& from) noexcept
-    : HyperparameterTuningSpecification() {
+  HyperparameterTuningStrategy(HyperparameterTuningStrategy&& from) noexcept
+    : HyperparameterTuningStrategy() {
     *this = ::std::move(from);
   }
 
-  inline HyperparameterTuningSpecification& operator=(HyperparameterTuningSpecification&& from) noexcept {
+  inline HyperparameterTuningStrategy& operator=(HyperparameterTuningStrategy&& from) noexcept {
     if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
       if (this != &from) InternalSwap(&from);
     } else {
@@ -454,34 +571,34 @@ class HyperparameterTuningSpecification final :
   static const ::google::protobuf::Descriptor* descriptor() {
     return default_instance().GetDescriptor();
   }
-  static const HyperparameterTuningSpecification& default_instance();
+  static const HyperparameterTuningStrategy& default_instance();
 
   static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
-  static inline const HyperparameterTuningSpecification* internal_default_instance() {
-    return reinterpret_cast(
-               &_HyperparameterTuningSpecification_default_instance_);
+  static inline const HyperparameterTuningStrategy* internal_default_instance() {
+    return reinterpret_cast(
+               &_HyperparameterTuningStrategy_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    2;
+    3;
 
-  void Swap(HyperparameterTuningSpecification* other);
-  friend void swap(HyperparameterTuningSpecification& a, HyperparameterTuningSpecification& b) {
+  void Swap(HyperparameterTuningStrategy* other);
+  friend void swap(HyperparameterTuningStrategy& a, HyperparameterTuningStrategy& b) {
     a.Swap(&b);
   }
 
   // implements Message ----------------------------------------------
 
-  inline HyperparameterTuningSpecification* New() const final {
-    return CreateMaybeMessage(nullptr);
+  inline HyperparameterTuningStrategy* New() const final {
+    return CreateMaybeMessage(nullptr);
   }
 
-  HyperparameterTuningSpecification* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage(arena);
+  HyperparameterTuningStrategy* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage(arena);
   }
   void CopyFrom(const ::google::protobuf::Message& from) final;
   void MergeFrom(const ::google::protobuf::Message& from) final;
-  void CopyFrom(const HyperparameterTuningSpecification& from);
-  void MergeFrom(const HyperparameterTuningSpecification& from);
+  void CopyFrom(const HyperparameterTuningStrategy& from);
+  void MergeFrom(const HyperparameterTuningStrategy& from);
   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
   bool IsInitialized() const final;
 
@@ -503,7 +620,7 @@ class HyperparameterTuningSpecification final :
   void SharedCtor();
   void SharedDtor();
   void SetCachedSize(int size) const final;
-  void InternalSwap(HyperparameterTuningSpecification* other);
+  void InternalSwap(HyperparameterTuningStrategy* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
     return nullptr;
@@ -517,60 +634,270 @@ class HyperparameterTuningSpecification final :
 
   // nested types ----------------------------------------------------
 
-  typedef HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningStrategy;
-  static const HyperparameterTuningStrategy BAYESIAN =
-    HyperparameterTuningSpecification_HyperparameterTuningStrategy_BAYESIAN;
-  static const HyperparameterTuningStrategy RANDOM =
-    HyperparameterTuningSpecification_HyperparameterTuningStrategy_RANDOM;
-  static inline bool HyperparameterTuningStrategy_IsValid(int value) {
-    return HyperparameterTuningSpecification_HyperparameterTuningStrategy_IsValid(value);
-  }
-  static const HyperparameterTuningStrategy HyperparameterTuningStrategy_MIN =
-    HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MIN;
-  static const HyperparameterTuningStrategy HyperparameterTuningStrategy_MAX =
-    HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_MAX;
-  static const int HyperparameterTuningStrategy_ARRAYSIZE =
-    HyperparameterTuningSpecification_HyperparameterTuningStrategy_HyperparameterTuningStrategy_ARRAYSIZE;
+  typedef HyperparameterTuningStrategy_Value Value;
+  static const Value BAYESIAN =
+    HyperparameterTuningStrategy_Value_BAYESIAN;
+  static const Value RANDOM =
+    HyperparameterTuningStrategy_Value_RANDOM;
+  static inline bool Value_IsValid(int value) {
+    return HyperparameterTuningStrategy_Value_IsValid(value);
+  }
+  static const Value Value_MIN =
+    HyperparameterTuningStrategy_Value_Value_MIN;
+  static const Value Value_MAX =
+    HyperparameterTuningStrategy_Value_Value_MAX;
+  static const int Value_ARRAYSIZE =
+    HyperparameterTuningStrategy_Value_Value_ARRAYSIZE;
   static inline const ::google::protobuf::EnumDescriptor*
-  HyperparameterTuningStrategy_descriptor() {
-    return HyperparameterTuningSpecification_HyperparameterTuningStrategy_descriptor();
-  }
-  static inline const ::std::string& HyperparameterTuningStrategy_Name(HyperparameterTuningStrategy value) {
-    return HyperparameterTuningSpecification_HyperparameterTuningStrategy_Name(value);
-  }
-  static inline bool HyperparameterTuningStrategy_Parse(const ::std::string& name,
-      HyperparameterTuningStrategy* value) {
-    return HyperparameterTuningSpecification_HyperparameterTuningStrategy_Parse(name, value);
-  }
-
-  typedef HyperparameterTuningSpecification_TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType;
-  static const TrainingJobEarlyStoppingType OFF =
-    HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_OFF;
-  static const TrainingJobEarlyStoppingType AUTO =
-    HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_AUTO;
-  static inline bool TrainingJobEarlyStoppingType_IsValid(int value) {
-    return HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_IsValid(value);
-  }
-  static const TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType_MIN =
-    HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MIN;
-  static const TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType_MAX =
-    HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_MAX;
-  static const int TrainingJobEarlyStoppingType_ARRAYSIZE =
-    HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_TrainingJobEarlyStoppingType_ARRAYSIZE;
+  Value_descriptor() {
+    return HyperparameterTuningStrategy_Value_descriptor();
+  }
+  static inline const ::std::string& Value_Name(Value value) {
+    return HyperparameterTuningStrategy_Value_Name(value);
+  }
+  static inline bool Value_Parse(const ::std::string& name,
+      Value* value) {
+    return HyperparameterTuningStrategy_Value_Parse(name, value);
+  }
+
+  // accessors -------------------------------------------------------
+
+  // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy)
+ private:
+  class HasBitSetters;
+
+  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto;
+};
+// -------------------------------------------------------------------
+
+class TrainingJobEarlyStoppingType final :
+    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) */ {
+ public:
+  TrainingJobEarlyStoppingType();
+  virtual ~TrainingJobEarlyStoppingType();
+
+  TrainingJobEarlyStoppingType(const TrainingJobEarlyStoppingType& from);
+
+  inline TrainingJobEarlyStoppingType& operator=(const TrainingJobEarlyStoppingType& from) {
+    CopyFrom(from);
+    return *this;
+  }
+  #if LANG_CXX11
+  TrainingJobEarlyStoppingType(TrainingJobEarlyStoppingType&& from) noexcept
+    : TrainingJobEarlyStoppingType() {
+    *this = ::std::move(from);
+  }
+
+  inline TrainingJobEarlyStoppingType& operator=(TrainingJobEarlyStoppingType&& from) noexcept {
+    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+      if (this != &from) InternalSwap(&from);
+    } else {
+      CopyFrom(from);
+    }
+    return *this;
+  }
+  #endif
+  static const ::google::protobuf::Descriptor* descriptor() {
+    return default_instance().GetDescriptor();
+  }
+  static const TrainingJobEarlyStoppingType& default_instance();
+
+  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
+  static inline const TrainingJobEarlyStoppingType* internal_default_instance() {
+    return reinterpret_cast(
+               &_TrainingJobEarlyStoppingType_default_instance_);
+  }
+  static constexpr int kIndexInFileMessages =
+    4;
+
+  void Swap(TrainingJobEarlyStoppingType* other);
+  friend void swap(TrainingJobEarlyStoppingType& a, TrainingJobEarlyStoppingType& b) {
+    a.Swap(&b);
+  }
+
+  // implements Message ----------------------------------------------
+
+  inline TrainingJobEarlyStoppingType* New() const final {
+    return CreateMaybeMessage(nullptr);
+  }
+
+  TrainingJobEarlyStoppingType* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
+  void CopyFrom(const TrainingJobEarlyStoppingType& from);
+  void MergeFrom(const TrainingJobEarlyStoppingType& from);
+  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+  bool IsInitialized() const final;
+
+  size_t ByteSizeLong() const final;
+  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
+  ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
+  #else
+  bool MergePartialFromCodedStream(
+      ::google::protobuf::io::CodedInputStream* input) final;
+  #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  void SerializeWithCachedSizes(
+      ::google::protobuf::io::CodedOutputStream* output) const final;
+  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+      ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
+  private:
+  void SharedCtor();
+  void SharedDtor();
+  void SetCachedSize(int size) const final;
+  void InternalSwap(TrainingJobEarlyStoppingType* other);
+  private:
+  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+    return nullptr;
+  }
+  inline void* MaybeArenaPtr() const {
+    return nullptr;
+  }
+  public:
+
+  ::google::protobuf::Metadata GetMetadata() const final;
+
+  // nested types ----------------------------------------------------
+
+  typedef TrainingJobEarlyStoppingType_Value Value;
+  static const Value OFF =
+    TrainingJobEarlyStoppingType_Value_OFF;
+  static const Value AUTO =
+    TrainingJobEarlyStoppingType_Value_AUTO;
+  static inline bool Value_IsValid(int value) {
+    return TrainingJobEarlyStoppingType_Value_IsValid(value);
+  }
+  static const Value Value_MIN =
+    TrainingJobEarlyStoppingType_Value_Value_MIN;
+  static const Value Value_MAX =
+    TrainingJobEarlyStoppingType_Value_Value_MAX;
+  static const int Value_ARRAYSIZE =
+    TrainingJobEarlyStoppingType_Value_Value_ARRAYSIZE;
   static inline const ::google::protobuf::EnumDescriptor*
-  TrainingJobEarlyStoppingType_descriptor() {
-    return HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_descriptor();
+  Value_descriptor() {
+    return TrainingJobEarlyStoppingType_Value_descriptor();
   }
-  static inline const ::std::string& TrainingJobEarlyStoppingType_Name(TrainingJobEarlyStoppingType value) {
-    return HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_Name(value);
+  static inline const ::std::string& Value_Name(Value value) {
+    return TrainingJobEarlyStoppingType_Value_Name(value);
   }
-  static inline bool TrainingJobEarlyStoppingType_Parse(const ::std::string& name,
-      TrainingJobEarlyStoppingType* value) {
-    return HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_Parse(name, value);
+  static inline bool Value_Parse(const ::std::string& name,
+      Value* value) {
+    return TrainingJobEarlyStoppingType_Value_Parse(name, value);
   }
 
   // accessors -------------------------------------------------------
 
+  // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType)
+ private:
+  class HasBitSetters;
+
+  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto;
+};
+// -------------------------------------------------------------------
+
+class HyperparameterTuningJobConfig final :
+    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) */ {
+ public:
+  HyperparameterTuningJobConfig();
+  virtual ~HyperparameterTuningJobConfig();
+
+  HyperparameterTuningJobConfig(const HyperparameterTuningJobConfig& from);
+
+  inline HyperparameterTuningJobConfig& operator=(const HyperparameterTuningJobConfig& from) {
+    CopyFrom(from);
+    return *this;
+  }
+  #if LANG_CXX11
+  HyperparameterTuningJobConfig(HyperparameterTuningJobConfig&& from) noexcept
+    : HyperparameterTuningJobConfig() {
+    *this = ::std::move(from);
+  }
+
+  inline HyperparameterTuningJobConfig& operator=(HyperparameterTuningJobConfig&& from) noexcept {
+    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+      if (this != &from) InternalSwap(&from);
+    } else {
+      CopyFrom(from);
+    }
+    return *this;
+  }
+  #endif
+  static const ::google::protobuf::Descriptor* descriptor() {
+    return default_instance().GetDescriptor();
+  }
+  static const HyperparameterTuningJobConfig& default_instance();
+
+  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
+  static inline const HyperparameterTuningJobConfig* internal_default_instance() {
+    return reinterpret_cast(
+               &_HyperparameterTuningJobConfig_default_instance_);
+  }
+  static constexpr int kIndexInFileMessages =
+    5;
+
+  void Swap(HyperparameterTuningJobConfig* other);
+  friend void swap(HyperparameterTuningJobConfig& a, HyperparameterTuningJobConfig& b) {
+    a.Swap(&b);
+  }
+
+  // implements Message ----------------------------------------------
+
+  inline HyperparameterTuningJobConfig* New() const final {
+    return CreateMaybeMessage(nullptr);
+  }
+
+  HyperparameterTuningJobConfig* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
+  void CopyFrom(const HyperparameterTuningJobConfig& from);
+  void MergeFrom(const HyperparameterTuningJobConfig& from);
+  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+  bool IsInitialized() const final;
+
+  size_t ByteSizeLong() const final;
+  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
+  ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
+  #else
+  bool MergePartialFromCodedStream(
+      ::google::protobuf::io::CodedInputStream* input) final;
+  #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  void SerializeWithCachedSizes(
+      ::google::protobuf::io::CodedOutputStream* output) const final;
+  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+      ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
+  private:
+  void SharedCtor();
+  void SharedDtor();
+  void SetCachedSize(int size) const final;
+  void InternalSwap(HyperparameterTuningJobConfig* other);
+  private:
+  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+    return nullptr;
+  }
+  inline void* MaybeArenaPtr() const {
+    return nullptr;
+  }
+  public:
+
+  ::google::protobuf::Metadata GetMetadata() const final;
+
+  // nested types ----------------------------------------------------
+
+  // accessors -------------------------------------------------------
+
   // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
   bool has_hyperparameter_ranges() const;
   void clear_hyperparameter_ranges();
@@ -589,19 +916,19 @@ class HyperparameterTuningSpecification final :
   ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* mutable_tuning_objective();
   void set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective);
 
-  // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2;
+  // .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2;
   void clear_tuning_strategy();
   static const int kTuningStrategyFieldNumber = 2;
-  ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy tuning_strategy() const;
-  void set_tuning_strategy(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy value);
+  ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value tuning_strategy() const;
+  void set_tuning_strategy(::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value value);
 
-  // .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
+  // .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4;
   void clear_training_job_early_stopping_type();
   static const int kTrainingJobEarlyStoppingTypeFieldNumber = 4;
-  ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType training_job_early_stopping_type() const;
-  void set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType value);
+  ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value training_job_early_stopping_type() const;
+  void set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value value);
 
-  // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification)
+  // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig)
  private:
   class HasBitSetters;
 
@@ -699,17 +1026,21 @@ inline void HyperparameterTuningJob::set_max_parallel_training_jobs(::google::pr
 
 // -------------------------------------------------------------------
 
+// HyperparameterTuningObjectiveType
+
+// -------------------------------------------------------------------
+
 // HyperparameterTuningObjective
 
-// .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1;
+// .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1;
 inline void HyperparameterTuningObjective::clear_objective_type() {
   objective_type_ = 0;
 }
-inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType HyperparameterTuningObjective::objective_type() const {
+inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value HyperparameterTuningObjective::objective_type() const {
   // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type)
-  return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType >(objective_type_);
+  return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value >(objective_type_);
 }
-inline void HyperparameterTuningObjective::set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType value) {
+inline void HyperparameterTuningObjective::set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value value) {
   
   objective_type_ = value;
   // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type)
@@ -770,35 +1101,43 @@ inline void HyperparameterTuningObjective::set_allocated_metric_name(::std::stri
 
 // -------------------------------------------------------------------
 
-// HyperparameterTuningSpecification
+// HyperparameterTuningStrategy
+
+// -------------------------------------------------------------------
+
+// TrainingJobEarlyStoppingType
+
+// -------------------------------------------------------------------
+
+// HyperparameterTuningJobConfig
 
 // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1;
-inline bool HyperparameterTuningSpecification::has_hyperparameter_ranges() const {
+inline bool HyperparameterTuningJobConfig::has_hyperparameter_ranges() const {
   return this != internal_default_instance() && hyperparameter_ranges_ != nullptr;
 }
-inline const ::flyteidl::plugins::sagemaker::ParameterRanges& HyperparameterTuningSpecification::hyperparameter_ranges() const {
+inline const ::flyteidl::plugins::sagemaker::ParameterRanges& HyperparameterTuningJobConfig::hyperparameter_ranges() const {
   const ::flyteidl::plugins::sagemaker::ParameterRanges* p = hyperparameter_ranges_;
-  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.hyperparameter_ranges)
+  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.hyperparameter_ranges)
   return p != nullptr ? *p : *reinterpret_cast(
       &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_);
 }
-inline ::flyteidl::plugins::sagemaker::ParameterRanges* HyperparameterTuningSpecification::release_hyperparameter_ranges() {
-  // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.hyperparameter_ranges)
+inline ::flyteidl::plugins::sagemaker::ParameterRanges* HyperparameterTuningJobConfig::release_hyperparameter_ranges() {
+  // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.hyperparameter_ranges)
   
   ::flyteidl::plugins::sagemaker::ParameterRanges* temp = hyperparameter_ranges_;
   hyperparameter_ranges_ = nullptr;
   return temp;
 }
-inline ::flyteidl::plugins::sagemaker::ParameterRanges* HyperparameterTuningSpecification::mutable_hyperparameter_ranges() {
+inline ::flyteidl::plugins::sagemaker::ParameterRanges* HyperparameterTuningJobConfig::mutable_hyperparameter_ranges() {
   
   if (hyperparameter_ranges_ == nullptr) {
     auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(GetArenaNoVirtual());
     hyperparameter_ranges_ = p;
   }
-  // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.hyperparameter_ranges)
+  // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.hyperparameter_ranges)
   return hyperparameter_ranges_;
 }
-inline void HyperparameterTuningSpecification::set_allocated_hyperparameter_ranges(::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges) {
+inline void HyperparameterTuningJobConfig::set_allocated_hyperparameter_ranges(::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges) {
   ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
   if (message_arena == nullptr) {
     delete reinterpret_cast< ::google::protobuf::MessageLite*>(hyperparameter_ranges_);
@@ -814,56 +1153,56 @@ inline void HyperparameterTuningSpecification::set_allocated_hyperparameter_rang
     
   }
   hyperparameter_ranges_ = hyperparameter_ranges;
-  // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.hyperparameter_ranges)
+  // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.hyperparameter_ranges)
 }
 
-// .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2;
-inline void HyperparameterTuningSpecification::clear_tuning_strategy() {
+// .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2;
+inline void HyperparameterTuningJobConfig::clear_tuning_strategy() {
   tuning_strategy_ = 0;
 }
-inline ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy HyperparameterTuningSpecification::tuning_strategy() const {
-  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_strategy)
-  return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy >(tuning_strategy_);
+inline ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value HyperparameterTuningJobConfig::tuning_strategy() const {
+  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_strategy)
+  return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value >(tuning_strategy_);
 }
-inline void HyperparameterTuningSpecification::set_tuning_strategy(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy value) {
+inline void HyperparameterTuningJobConfig::set_tuning_strategy(::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value value) {
   
   tuning_strategy_ = value;
-  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_strategy)
+  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_strategy)
 }
 
 // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3;
-inline bool HyperparameterTuningSpecification::has_tuning_objective() const {
+inline bool HyperparameterTuningJobConfig::has_tuning_objective() const {
   return this != internal_default_instance() && tuning_objective_ != nullptr;
 }
-inline void HyperparameterTuningSpecification::clear_tuning_objective() {
+inline void HyperparameterTuningJobConfig::clear_tuning_objective() {
   if (GetArenaNoVirtual() == nullptr && tuning_objective_ != nullptr) {
     delete tuning_objective_;
   }
   tuning_objective_ = nullptr;
 }
-inline const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& HyperparameterTuningSpecification::tuning_objective() const {
+inline const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& HyperparameterTuningJobConfig::tuning_objective() const {
   const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* p = tuning_objective_;
-  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_objective)
+  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_objective)
   return p != nullptr ? *p : *reinterpret_cast(
       &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_);
 }
-inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HyperparameterTuningSpecification::release_tuning_objective() {
-  // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_objective)
+inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HyperparameterTuningJobConfig::release_tuning_objective() {
+  // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_objective)
   
   ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* temp = tuning_objective_;
   tuning_objective_ = nullptr;
   return temp;
 }
-inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HyperparameterTuningSpecification::mutable_tuning_objective() {
+inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HyperparameterTuningJobConfig::mutable_tuning_objective() {
   
   if (tuning_objective_ == nullptr) {
     auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(GetArenaNoVirtual());
     tuning_objective_ = p;
   }
-  // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_objective)
+  // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_objective)
   return tuning_objective_;
 }
-inline void HyperparameterTuningSpecification::set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective) {
+inline void HyperparameterTuningJobConfig::set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective) {
   ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
   if (message_arena == nullptr) {
     delete tuning_objective_;
@@ -879,21 +1218,21 @@ inline void HyperparameterTuningSpecification::set_allocated_tuning_objective(::
     
   }
   tuning_objective_ = tuning_objective;
-  // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_objective)
+  // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_objective)
 }
 
-// .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4;
-inline void HyperparameterTuningSpecification::clear_training_job_early_stopping_type() {
+// .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4;
+inline void HyperparameterTuningJobConfig::clear_training_job_early_stopping_type() {
   training_job_early_stopping_type_ = 0;
 }
-inline ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType HyperparameterTuningSpecification::training_job_early_stopping_type() const {
-  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.training_job_early_stopping_type)
-  return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType >(training_job_early_stopping_type_);
+inline ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value HyperparameterTuningJobConfig::training_job_early_stopping_type() const {
+  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.training_job_early_stopping_type)
+  return static_cast< ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value >(training_job_early_stopping_type_);
 }
-inline void HyperparameterTuningSpecification::set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType value) {
+inline void HyperparameterTuningJobConfig::set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value value) {
   
   training_job_early_stopping_type_ = value;
-  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.training_job_early_stopping_type)
+  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.training_job_early_stopping_type)
 }
 
 #ifdef __GNUC__
@@ -903,6 +1242,12 @@ inline void HyperparameterTuningSpecification::set_training_job_early_stopping_t
 
 // -------------------------------------------------------------------
 
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
 
 // @@protoc_insertion_point(namespace_scope)
 
@@ -913,20 +1258,20 @@ inline void HyperparameterTuningSpecification::set_training_job_early_stopping_t
 namespace google {
 namespace protobuf {
 
-template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType> : ::std::true_type {};
+template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value> : ::std::true_type {};
 template <>
-inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType>() {
-  return ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective_HyperparameterTuningObjectiveType_descriptor();
+inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value>() {
+  return ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value_descriptor();
 }
-template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy> : ::std::true_type {};
+template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value> : ::std::true_type {};
 template <>
-inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy>() {
-  return ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_HyperparameterTuningStrategy_descriptor();
+inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value>() {
+  return ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value_descriptor();
 }
-template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType> : ::std::true_type {};
+template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value> : ::std::true_type {};
 template <>
-inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType>() {
-  return ::flyteidl::plugins::sagemaker::HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_descriptor();
+inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value>() {
+  return ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value_descriptor();
 }
 
 }  // namespace protobuf
diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc
index 57e32ef54..ee2ff5646 100644
--- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc
+++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc
@@ -24,6 +24,10 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5fran
 namespace flyteidl {
 namespace plugins {
 namespace sagemaker {
+class HyperparameterScalingTypeDefaultTypeInternal {
+ public:
+  ::google::protobuf::internal::ExplicitlyConstructed _instance;
+} _HyperparameterScalingType_default_instance_;
 class ContinuousParameterRangeDefaultTypeInternal {
  public:
   ::google::protobuf::internal::ExplicitlyConstructed _instance;
@@ -54,6 +58,20 @@ class ParameterRangesDefaultTypeInternal {
 }  // namespace sagemaker
 }  // namespace plugins
 }  // namespace flyteidl
+static void InitDefaultsHyperparameterScalingType_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() {
+  GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+  {
+    void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterScalingType_default_instance_;
+    new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterScalingType();
+    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+  }
+  ::flyteidl::plugins::sagemaker::HyperparameterScalingType::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterScalingType_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterScalingType_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}};
+
 static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
@@ -143,6 +161,7 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplu
       &scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,}};
 
 void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() {
+  ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterScalingType_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base);
@@ -151,11 +170,16 @@ void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto()
   ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base);
 }
 
-::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[6];
+::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[7];
 const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[1];
 constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = nullptr;
 
 const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
+  ~0u,  // no _has_bits_
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterScalingType, _internal_metadata_),
+  ~0u,  // no _extensions_
+  ~0u,  // no _oneof_case_
+  ~0u,  // no _weak_field_map_
   ~0u,  // no _has_bits_
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, _internal_metadata_),
   ~0u,  // no _extensions_
@@ -204,15 +228,17 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fpa
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, parameter_range_map_),
 };
 static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
-  { 0, -1, sizeof(::flyteidl::plugins::sagemaker::ContinuousParameterRange)},
-  { 8, -1, sizeof(::flyteidl::plugins::sagemaker::IntegerParameterRange)},
-  { 16, -1, sizeof(::flyteidl::plugins::sagemaker::CategoricalParameterRange)},
-  { 22, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRangeOneOf)},
-  { 31, 38, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse)},
-  { 40, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges)},
+  { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterScalingType)},
+  { 5, -1, sizeof(::flyteidl::plugins::sagemaker::ContinuousParameterRange)},
+  { 13, -1, sizeof(::flyteidl::plugins::sagemaker::IntegerParameterRange)},
+  { 21, -1, sizeof(::flyteidl::plugins::sagemaker::CategoricalParameterRange)},
+  { 27, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRangeOneOf)},
+  { 36, 43, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse)},
+  { 45, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges)},
 };
 
 static ::google::protobuf::Message const * const file_default_instances[] = {
+  reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterScalingType_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_),
@@ -224,43 +250,44 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
 ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = {
   {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, "flyteidl/plugins/sagemaker/parameter_ranges.proto", schemas,
   file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto::offsets,
-  file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto,
+  file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, 7, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto,
 };
 
 const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[] =
   "\n1flyteidl/plugins/sagemaker/parameter_r"
   "anges.proto\022\032flyteidl.plugins.sagemaker\""
-  "\215\001\n\030ContinuousParameterRange\022\021\n\tmax_valu"
-  "e\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_ty"
-  "pe\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hy"
-  "perparameterScalingType\"\212\001\n\025IntegerParam"
-  "eterRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_valu"
-  "e\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl"
+  "c\n\031HyperparameterScalingType\"F\n\005Value\022\010\n"
+  "\004AUTO\020\000\022\n\n\006LINEAR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022"
+  "REVERSELOGARITHMIC\020\003\"\223\001\n\030ContinuousParam"
+  "eterRange\022\021\n\tmax_value\030\001 \001(\001\022\021\n\tmin_valu"
+  "e\030\002 \001(\001\022Q\n\014scaling_type\030\003 \001(\0162;.flyteidl"
   ".plugins.sagemaker.HyperparameterScaling"
-  "Type\"+\n\031CategoricalParameterRange\022\016\n\006val"
-  "ues\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032con"
-  "tinuous_parameter_range\030\001 \001(\01324.flyteidl"
-  ".plugins.sagemaker.ContinuousParameterRa"
-  "ngeH\000\022T\n\027integer_parameter_range\030\002 \001(\01321"
-  ".flyteidl.plugins.sagemaker.IntegerParam"
-  "eterRangeH\000\022\\\n\033categorical_parameter_ran"
-  "ge\030\003 \001(\01325.flyteidl.plugins.sagemaker.Ca"
-  "tegoricalParameterRangeH\000B\026\n\024parameter_r"
-  "ange_type\"\335\001\n\017ParameterRanges\022_\n\023paramet"
-  "er_range_map\030\001 \003(\0132B.flyteidl.plugins.sa"
-  "gemaker.ParameterRanges.ParameterRangeMa"
-  "pEntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030"
-  "\001 \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins."
-  "sagemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyp"
-  "erparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINE"
-  "AR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITH"
-  "MIC\020\003B5Z3github.com/lyft/flyteidl/gen/pb"
-  "-go/flyteidl/pluginsb\006proto3"
+  "Type.Value\"\220\001\n\025IntegerParameterRange\022\021\n\t"
+  "max_value\030\001 \001(\003\022\021\n\tmin_value\030\002 \001(\003\022Q\n\014sc"
+  "aling_type\030\003 \001(\0162;.flyteidl.plugins.sage"
+  "maker.HyperparameterScalingType.Value\"+\n"
+  "\031CategoricalParameterRange\022\016\n\006values\030\001 \003"
+  "(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032continuous"
+  "_parameter_range\030\001 \001(\01324.flyteidl.plugin"
+  "s.sagemaker.ContinuousParameterRangeH\000\022T"
+  "\n\027integer_parameter_range\030\002 \001(\01321.flytei"
+  "dl.plugins.sagemaker.IntegerParameterRan"
+  "geH\000\022\\\n\033categorical_parameter_range\030\003 \001("
+  "\01325.flyteidl.plugins.sagemaker.Categoric"
+  "alParameterRangeH\000B\026\n\024parameter_range_ty"
+  "pe\"\335\001\n\017ParameterRanges\022_\n\023parameter_rang"
+  "e_map\030\001 \003(\0132B.flyteidl.plugins.sagemaker"
+  ".ParameterRanges.ParameterRangeMapEntry\032"
+  "i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001 \001(\t\022>"
+  "\n\005value\030\002 \001(\0132/.flyteidl.plugins.sagemak"
+  "er.ParameterRangeOneOf:\0028\001B5Z3github.com"
+  "/lyft/flyteidl/gen/pb-go/flyteidl/plugin"
+  "sb\006proto3"
   ;
 ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = {
   false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, 
   descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto,
-  "flyteidl/plugins/sagemaker/parameter_ranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, 1108,
+  "flyteidl/plugins/sagemaker/parameter_ranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, 1129,
 };
 
 void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() {
@@ -275,11 +302,11 @@ static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fparameter_5frang
 namespace flyteidl {
 namespace plugins {
 namespace sagemaker {
-const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor() {
+const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_Value_descriptor() {
   ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto);
   return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[0];
 }
-bool HyperparameterScalingType_IsValid(int value) {
+bool HyperparameterScalingType_Value_IsValid(int value) {
   switch (value) {
     case 0:
     case 1:
@@ -291,6 +318,224 @@ bool HyperparameterScalingType_IsValid(int value) {
   }
 }
 
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const HyperparameterScalingType_Value HyperparameterScalingType::AUTO;
+const HyperparameterScalingType_Value HyperparameterScalingType::LINEAR;
+const HyperparameterScalingType_Value HyperparameterScalingType::LOGARITHMIC;
+const HyperparameterScalingType_Value HyperparameterScalingType::REVERSELOGARITHMIC;
+const HyperparameterScalingType_Value HyperparameterScalingType::Value_MIN;
+const HyperparameterScalingType_Value HyperparameterScalingType::Value_MAX;
+const int HyperparameterScalingType::Value_ARRAYSIZE;
+#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+// ===================================================================
+
+void HyperparameterScalingType::InitAsDefaultInstance() {
+}
+class HyperparameterScalingType::HasBitSetters {
+ public:
+};
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+HyperparameterScalingType::HyperparameterScalingType()
+  : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
+  SharedCtor();
+  // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+}
+HyperparameterScalingType::HyperparameterScalingType(const HyperparameterScalingType& from)
+  : ::google::protobuf::Message(),
+      _internal_metadata_(nullptr) {
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+}
+
+void HyperparameterScalingType::SharedCtor() {
+}
+
+HyperparameterScalingType::~HyperparameterScalingType() {
+  // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+  SharedDtor();
+}
+
+void HyperparameterScalingType::SharedDtor() {
+}
+
+void HyperparameterScalingType::SetCachedSize(int size) const {
+  _cached_size_.Set(size);
+}
+const HyperparameterScalingType& HyperparameterScalingType::default_instance() {
+  ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterScalingType_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base);
+  return *internal_default_instance();
+}
+
+
+void HyperparameterScalingType::Clear() {
+// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  _internal_metadata_.Clear();
+}
+
+#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+const char* HyperparameterScalingType::_InternalParse(const char* begin, const char* end, void* object,
+                  ::google::protobuf::internal::ParseContext* ctx) {
+  auto msg = static_cast(object);
+  ::google::protobuf::int32 size; (void)size;
+  int depth; (void)depth;
+  ::google::protobuf::uint32 tag;
+  ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
+  auto ptr = begin;
+  while (ptr < end) {
+    ptr = ::google::protobuf::io::Parse32(ptr, &tag);
+    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
+    switch (tag >> 3) {
+      default: {
+        if ((tag & 7) == 4 || tag == 0) {
+          ctx->EndGroup(tag);
+          return ptr;
+        }
+        auto res = UnknownFieldParse(tag, {_InternalParse, msg},
+          ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
+        ptr = res.first;
+        GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
+        if (res.second) return ptr;
+      }
+    }  // switch
+  }  // while
+  return ptr;
+}
+#else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+bool HyperparameterScalingType::MergePartialFromCodedStream(
+    ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
+  ::google::protobuf::uint32 tag;
+  // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+  for (;;) {
+    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+    tag = p.first;
+    if (!p.second) goto handle_unusual;
+  handle_unusual:
+    if (tag == 0) {
+      goto success;
+    }
+    DO_(::google::protobuf::internal::WireFormat::SkipField(
+          input, tag, _internal_metadata_.mutable_unknown_fields()));
+  }
+success:
+  // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+  return true;
+failure:
+  // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+  return false;
+#undef DO_
+}
+#endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+
+void HyperparameterScalingType::SerializeWithCachedSizes(
+    ::google::protobuf::io::CodedOutputStream* output) const {
+  // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+        _internal_metadata_.unknown_fields(), output);
+  }
+  // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+}
+
+::google::protobuf::uint8* HyperparameterScalingType::InternalSerializeWithCachedSizesToArray(
+    ::google::protobuf::uint8* target) const {
+  // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+        _internal_metadata_.unknown_fields(), target);
+  }
+  // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+  return target;
+}
+
+size_t HyperparameterScalingType::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+  size_t total_size = 0;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    total_size +=
+      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+        _internal_metadata_.unknown_fields());
+  }
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+  SetCachedSize(cached_size);
+  return total_size;
+}
+
+void HyperparameterScalingType::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+  GOOGLE_DCHECK_NE(&from, this);
+  const HyperparameterScalingType* source =
+      ::google::protobuf::DynamicCastToGenerated(
+          &from);
+  if (source == nullptr) {
+  // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+  } else {
+  // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+    MergeFrom(*source);
+  }
+}
+
+void HyperparameterScalingType::MergeFrom(const HyperparameterScalingType& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+  GOOGLE_DCHECK_NE(&from, this);
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+}
+
+void HyperparameterScalingType::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+void HyperparameterScalingType::CopyFrom(const HyperparameterScalingType& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+bool HyperparameterScalingType::IsInitialized() const {
+  return true;
+}
+
+void HyperparameterScalingType::Swap(HyperparameterScalingType* other) {
+  if (other == this) return;
+  InternalSwap(other);
+}
+void HyperparameterScalingType::InternalSwap(HyperparameterScalingType* other) {
+  using std::swap;
+  _internal_metadata_.Swap(&other->_internal_metadata_);
+}
+
+::google::protobuf::Metadata HyperparameterScalingType::GetMetadata() const {
+  ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto);
+  return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages];
+}
+
 
 // ===================================================================
 
@@ -383,11 +628,11 @@ const char* ContinuousParameterRange::_InternalParse(const char* begin, const ch
         ptr += sizeof(double);
         break;
       }
-      // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+      // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
       case 3: {
         if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
         ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
-        msg->set_scaling_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val));
+        msg->set_scaling_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value>(val));
         GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
         break;
       }
@@ -444,14 +689,14 @@ bool ContinuousParameterRange::MergePartialFromCodedStream(
         break;
       }
 
-      // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+      // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
       case 3: {
         if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
           int value = 0;
           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
                  input, &value)));
-          set_scaling_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value));
+          set_scaling_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value >(value));
         } else {
           goto handle_unusual;
         }
@@ -495,7 +740,7 @@ void ContinuousParameterRange::SerializeWithCachedSizes(
     ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->min_value(), output);
   }
 
-  // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+  // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
   if (this->scaling_type() != 0) {
     ::google::protobuf::internal::WireFormatLite::WriteEnum(
       3, this->scaling_type(), output);
@@ -524,7 +769,7 @@ ::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCached
     target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->min_value(), target);
   }
 
-  // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+  // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
   if (this->scaling_type() != 0) {
     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
       3, this->scaling_type(), target);
@@ -561,7 +806,7 @@ size_t ContinuousParameterRange::ByteSizeLong() const {
     total_size += 1 + 8;
   }
 
-  // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+  // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
   if (this->scaling_type() != 0) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::EnumSize(this->scaling_type());
@@ -732,11 +977,11 @@ const char* IntegerParameterRange::_InternalParse(const char* begin, const char*
         GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
         break;
       }
-      // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+      // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
       case 3: {
         if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
         ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
-        msg->set_scaling_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(val));
+        msg->set_scaling_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value>(val));
         GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
         break;
       }
@@ -793,14 +1038,14 @@ bool IntegerParameterRange::MergePartialFromCodedStream(
         break;
       }
 
-      // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+      // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
       case 3: {
         if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
           int value = 0;
           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
                  input, &value)));
-          set_scaling_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(value));
+          set_scaling_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value >(value));
         } else {
           goto handle_unusual;
         }
@@ -844,7 +1089,7 @@ void IntegerParameterRange::SerializeWithCachedSizes(
     ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->min_value(), output);
   }
 
-  // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+  // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
   if (this->scaling_type() != 0) {
     ::google::protobuf::internal::WireFormatLite::WriteEnum(
       3, this->scaling_type(), output);
@@ -873,7 +1118,7 @@ ::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSiz
     target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->min_value(), target);
   }
 
-  // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+  // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
   if (this->scaling_type() != 0) {
     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
       3, this->scaling_type(), target);
@@ -914,7 +1159,7 @@ size_t IntegerParameterRange::ByteSizeLong() const {
         this->min_value());
   }
 
-  // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+  // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
   if (this->scaling_type() != 0) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::EnumSize(this->scaling_type());
@@ -1784,7 +2029,7 @@ void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom(const ParameterR
 }
 ::google::protobuf::Metadata ParameterRanges_ParameterRangeMapEntry_DoNotUse::GetMetadata() const {
   ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto);
-  return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[4];
+  return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[5];
 }
 void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom(
     const ::google::protobuf::Message& other) {
@@ -2187,6 +2432,9 @@ ::google::protobuf::Metadata ParameterRanges::GetMetadata() const {
 }  // namespace flyteidl
 namespace google {
 namespace protobuf {
+template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterScalingType* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(Arena* arena) {
+  return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(arena);
+}
 template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(Arena* arena) {
   return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(arena);
 }
diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h
index 2e9f9462b..13201549d 100644
--- a/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h
+++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h
@@ -45,7 +45,7 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto {
     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
   static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
-  static const ::google::protobuf::internal::ParseTable schema[6]
+  static const ::google::protobuf::internal::ParseTable schema[7]
     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
   static const ::google::protobuf::internal::FieldMetadata field_metadata[];
   static const ::google::protobuf::internal::SerializationTable serialization_table[];
@@ -61,6 +61,9 @@ extern CategoricalParameterRangeDefaultTypeInternal _CategoricalParameterRange_d
 class ContinuousParameterRange;
 class ContinuousParameterRangeDefaultTypeInternal;
 extern ContinuousParameterRangeDefaultTypeInternal _ContinuousParameterRange_default_instance_;
+class HyperparameterScalingType;
+class HyperparameterScalingTypeDefaultTypeInternal;
+extern HyperparameterScalingTypeDefaultTypeInternal _HyperparameterScalingType_default_instance_;
 class IntegerParameterRange;
 class IntegerParameterRangeDefaultTypeInternal;
 extern IntegerParameterRangeDefaultTypeInternal _IntegerParameterRange_default_instance_;
@@ -80,6 +83,7 @@ namespace google {
 namespace protobuf {
 template<> ::flyteidl::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::CategoricalParameterRange>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ContinuousParameterRange>(Arena*);
+template<> ::flyteidl::plugins::sagemaker::HyperparameterScalingType* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::IntegerParameterRange>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::ParameterRangeOneOf* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRangeOneOf>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(Arena*);
@@ -90,31 +94,166 @@ namespace flyteidl {
 namespace plugins {
 namespace sagemaker {
 
-enum HyperparameterScalingType {
-  AUTO = 0,
-  LINEAR = 1,
-  LOGARITHMIC = 2,
-  REVERSELOGARITHMIC = 3,
-  HyperparameterScalingType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
-  HyperparameterScalingType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
+enum HyperparameterScalingType_Value {
+  HyperparameterScalingType_Value_AUTO = 0,
+  HyperparameterScalingType_Value_LINEAR = 1,
+  HyperparameterScalingType_Value_LOGARITHMIC = 2,
+  HyperparameterScalingType_Value_REVERSELOGARITHMIC = 3,
+  HyperparameterScalingType_Value_HyperparameterScalingType_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
+  HyperparameterScalingType_Value_HyperparameterScalingType_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
 };
-bool HyperparameterScalingType_IsValid(int value);
-const HyperparameterScalingType HyperparameterScalingType_MIN = AUTO;
-const HyperparameterScalingType HyperparameterScalingType_MAX = REVERSELOGARITHMIC;
-const int HyperparameterScalingType_ARRAYSIZE = HyperparameterScalingType_MAX + 1;
+bool HyperparameterScalingType_Value_IsValid(int value);
+const HyperparameterScalingType_Value HyperparameterScalingType_Value_Value_MIN = HyperparameterScalingType_Value_AUTO;
+const HyperparameterScalingType_Value HyperparameterScalingType_Value_Value_MAX = HyperparameterScalingType_Value_REVERSELOGARITHMIC;
+const int HyperparameterScalingType_Value_Value_ARRAYSIZE = HyperparameterScalingType_Value_Value_MAX + 1;
 
-const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_descriptor();
-inline const ::std::string& HyperparameterScalingType_Name(HyperparameterScalingType value) {
+const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_Value_descriptor();
+inline const ::std::string& HyperparameterScalingType_Value_Name(HyperparameterScalingType_Value value) {
   return ::google::protobuf::internal::NameOfEnum(
-    HyperparameterScalingType_descriptor(), value);
+    HyperparameterScalingType_Value_descriptor(), value);
 }
-inline bool HyperparameterScalingType_Parse(
-    const ::std::string& name, HyperparameterScalingType* value) {
-  return ::google::protobuf::internal::ParseNamedEnum(
-    HyperparameterScalingType_descriptor(), name, value);
+inline bool HyperparameterScalingType_Value_Parse(
+    const ::std::string& name, HyperparameterScalingType_Value* value) {
+  return ::google::protobuf::internal::ParseNamedEnum(
+    HyperparameterScalingType_Value_descriptor(), name, value);
 }
 // ===================================================================
 
+class HyperparameterScalingType final :
+    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterScalingType) */ {
+ public:
+  HyperparameterScalingType();
+  virtual ~HyperparameterScalingType();
+
+  HyperparameterScalingType(const HyperparameterScalingType& from);
+
+  inline HyperparameterScalingType& operator=(const HyperparameterScalingType& from) {
+    CopyFrom(from);
+    return *this;
+  }
+  #if LANG_CXX11
+  HyperparameterScalingType(HyperparameterScalingType&& from) noexcept
+    : HyperparameterScalingType() {
+    *this = ::std::move(from);
+  }
+
+  inline HyperparameterScalingType& operator=(HyperparameterScalingType&& from) noexcept {
+    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+      if (this != &from) InternalSwap(&from);
+    } else {
+      CopyFrom(from);
+    }
+    return *this;
+  }
+  #endif
+  static const ::google::protobuf::Descriptor* descriptor() {
+    return default_instance().GetDescriptor();
+  }
+  static const HyperparameterScalingType& default_instance();
+
+  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
+  static inline const HyperparameterScalingType* internal_default_instance() {
+    return reinterpret_cast(
+               &_HyperparameterScalingType_default_instance_);
+  }
+  static constexpr int kIndexInFileMessages =
+    0;
+
+  void Swap(HyperparameterScalingType* other);
+  friend void swap(HyperparameterScalingType& a, HyperparameterScalingType& b) {
+    a.Swap(&b);
+  }
+
+  // implements Message ----------------------------------------------
+
+  inline HyperparameterScalingType* New() const final {
+    return CreateMaybeMessage(nullptr);
+  }
+
+  HyperparameterScalingType* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
+  void CopyFrom(const HyperparameterScalingType& from);
+  void MergeFrom(const HyperparameterScalingType& from);
+  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+  bool IsInitialized() const final;
+
+  size_t ByteSizeLong() const final;
+  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
+  ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
+  #else
+  bool MergePartialFromCodedStream(
+      ::google::protobuf::io::CodedInputStream* input) final;
+  #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  void SerializeWithCachedSizes(
+      ::google::protobuf::io::CodedOutputStream* output) const final;
+  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+      ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
+  private:
+  void SharedCtor();
+  void SharedDtor();
+  void SetCachedSize(int size) const final;
+  void InternalSwap(HyperparameterScalingType* other);
+  private:
+  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+    return nullptr;
+  }
+  inline void* MaybeArenaPtr() const {
+    return nullptr;
+  }
+  public:
+
+  ::google::protobuf::Metadata GetMetadata() const final;
+
+  // nested types ----------------------------------------------------
+
+  typedef HyperparameterScalingType_Value Value;
+  static const Value AUTO =
+    HyperparameterScalingType_Value_AUTO;
+  static const Value LINEAR =
+    HyperparameterScalingType_Value_LINEAR;
+  static const Value LOGARITHMIC =
+    HyperparameterScalingType_Value_LOGARITHMIC;
+  static const Value REVERSELOGARITHMIC =
+    HyperparameterScalingType_Value_REVERSELOGARITHMIC;
+  static inline bool Value_IsValid(int value) {
+    return HyperparameterScalingType_Value_IsValid(value);
+  }
+  static const Value Value_MIN =
+    HyperparameterScalingType_Value_Value_MIN;
+  static const Value Value_MAX =
+    HyperparameterScalingType_Value_Value_MAX;
+  static const int Value_ARRAYSIZE =
+    HyperparameterScalingType_Value_Value_ARRAYSIZE;
+  static inline const ::google::protobuf::EnumDescriptor*
+  Value_descriptor() {
+    return HyperparameterScalingType_Value_descriptor();
+  }
+  static inline const ::std::string& Value_Name(Value value) {
+    return HyperparameterScalingType_Value_Name(value);
+  }
+  static inline bool Value_Parse(const ::std::string& name,
+      Value* value) {
+    return HyperparameterScalingType_Value_Parse(name, value);
+  }
+
+  // accessors -------------------------------------------------------
+
+  // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType)
+ private:
+  class HasBitSetters;
+
+  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto;
+};
+// -------------------------------------------------------------------
+
 class ContinuousParameterRange final :
     public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ContinuousParameterRange) */ {
  public:
@@ -153,7 +292,7 @@ class ContinuousParameterRange final :
                &_ContinuousParameterRange_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    0;
+    1;
 
   void Swap(ContinuousParameterRange* other);
   friend void swap(ContinuousParameterRange& a, ContinuousParameterRange& b) {
@@ -222,11 +361,11 @@ class ContinuousParameterRange final :
   double min_value() const;
   void set_min_value(double value);
 
-  // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+  // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
   void clear_scaling_type();
   static const int kScalingTypeFieldNumber = 3;
-  ::flyteidl::plugins::sagemaker::HyperparameterScalingType scaling_type() const;
-  void set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value);
+  ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value scaling_type() const;
+  void set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value value);
 
   // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange)
  private:
@@ -279,7 +418,7 @@ class IntegerParameterRange final :
                &_IntegerParameterRange_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    1;
+    2;
 
   void Swap(IntegerParameterRange* other);
   friend void swap(IntegerParameterRange& a, IntegerParameterRange& b) {
@@ -348,11 +487,11 @@ class IntegerParameterRange final :
   ::google::protobuf::int64 min_value() const;
   void set_min_value(::google::protobuf::int64 value);
 
-  // .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+  // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
   void clear_scaling_type();
   static const int kScalingTypeFieldNumber = 3;
-  ::flyteidl::plugins::sagemaker::HyperparameterScalingType scaling_type() const;
-  void set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value);
+  ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value scaling_type() const;
+  void set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value value);
 
   // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange)
  private:
@@ -405,7 +544,7 @@ class CategoricalParameterRange final :
                &_CategoricalParameterRange_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    2;
+    3;
 
   void Swap(CategoricalParameterRange* other);
   friend void swap(CategoricalParameterRange& a, CategoricalParameterRange& b) {
@@ -540,7 +679,7 @@ class ParameterRangeOneOf final :
                &_ParameterRangeOneOf_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    3;
+    4;
 
   void Swap(ParameterRangeOneOf* other);
   friend void swap(ParameterRangeOneOf& a, ParameterRangeOneOf& b) {
@@ -712,7 +851,7 @@ class ParameterRanges final :
                &_ParameterRanges_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    5;
+    6;
 
   void Swap(ParameterRanges* other);
   friend void swap(ParameterRanges& a, ParameterRanges& b) {
@@ -802,6 +941,10 @@ class ParameterRanges final :
   #pragma GCC diagnostic push
   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
 #endif  // __GNUC__
+// HyperparameterScalingType
+
+// -------------------------------------------------------------------
+
 // ContinuousParameterRange
 
 // double max_value = 1;
@@ -832,15 +975,15 @@ inline void ContinuousParameterRange::set_min_value(double value) {
   // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value)
 }
 
-// .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+// .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
 inline void ContinuousParameterRange::clear_scaling_type() {
   scaling_type_ = 0;
 }
-inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType ContinuousParameterRange::scaling_type() const {
+inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value ContinuousParameterRange::scaling_type() const {
   // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type)
-  return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scaling_type_);
+  return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value >(scaling_type_);
 }
-inline void ContinuousParameterRange::set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) {
+inline void ContinuousParameterRange::set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value value) {
   
   scaling_type_ = value;
   // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type)
@@ -878,15 +1021,15 @@ inline void IntegerParameterRange::set_min_value(::google::protobuf::int64 value
   // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.min_value)
 }
 
-// .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3;
+// .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3;
 inline void IntegerParameterRange::clear_scaling_type() {
   scaling_type_ = 0;
 }
-inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType IntegerParameterRange::scaling_type() const {
+inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value IntegerParameterRange::scaling_type() const {
   // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type)
-  return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(scaling_type_);
+  return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value >(scaling_type_);
 }
-inline void IntegerParameterRange::set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType value) {
+inline void IntegerParameterRange::set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value value) {
   
   scaling_type_ = value;
   // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type)
@@ -1138,6 +1281,8 @@ ParameterRanges::mutable_parameter_range_map() {
 
 // -------------------------------------------------------------------
 
+// -------------------------------------------------------------------
+
 
 // @@protoc_insertion_point(namespace_scope)
 
@@ -1148,10 +1293,10 @@ ParameterRanges::mutable_parameter_range_map() {
 namespace google {
 namespace protobuf {
 
-template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterScalingType> : ::std::true_type {};
+template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value> : ::std::true_type {};
 template <>
-inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterScalingType>() {
-  return ::flyteidl::plugins::sagemaker::HyperparameterScalingType_descriptor();
+inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value>() {
+  return ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value_descriptor();
 }
 
 }  // namespace protobuf
diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc
index b34f8fd65..e4889b6fb 100644
--- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc
+++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc
@@ -17,11 +17,19 @@
 #include 
 
 extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
-extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
 extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
 namespace flyteidl {
 namespace plugins {
 namespace sagemaker {
+class InputModeDefaultTypeInternal {
+ public:
+  ::google::protobuf::internal::ExplicitlyConstructed _instance;
+} _InputMode_default_instance_;
+class AlgorithmNameDefaultTypeInternal {
+ public:
+  ::google::protobuf::internal::ExplicitlyConstructed _instance;
+} _AlgorithmName_default_instance_;
 class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal {
  public:
   ::google::protobuf::internal::ExplicitlyConstructed _instance;
@@ -30,10 +38,10 @@ class AlgorithmSpecificationDefaultTypeInternal {
  public:
   ::google::protobuf::internal::ExplicitlyConstructed _instance;
 } _AlgorithmSpecification_default_instance_;
-class TrainingJobConfigDefaultTypeInternal {
+class TrainingJobResourceConfigDefaultTypeInternal {
  public:
-  ::google::protobuf::internal::ExplicitlyConstructed _instance;
-} _TrainingJobConfig_default_instance_;
+  ::google::protobuf::internal::ExplicitlyConstructed _instance;
+} _TrainingJobResourceConfig_default_instance_;
 class StoppingConditionDefaultTypeInternal {
  public:
   ::google::protobuf::internal::ExplicitlyConstructed _instance;
@@ -45,6 +53,34 @@ class TrainingJobDefaultTypeInternal {
 }  // namespace sagemaker
 }  // namespace plugins
 }  // namespace flyteidl
+static void InitDefaultsInputMode_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
+  GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+  {
+    void* ptr = &::flyteidl::plugins::sagemaker::_InputMode_default_instance_;
+    new (ptr) ::flyteidl::plugins::sagemaker::InputMode();
+    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+  }
+  ::flyteidl::plugins::sagemaker::InputMode::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_InputMode_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInputMode_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}};
+
+static void InitDefaultsAlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
+  GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+  {
+    void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmName_default_instance_;
+    new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmName();
+    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+  }
+  ::flyteidl::plugins::sagemaker::AlgorithmName::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}};
+
 static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
@@ -74,19 +110,19 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteid
     {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {
       &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}};
 
-static void InitDefaultsTrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
+static void InitDefaultsTrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
   {
-    void* ptr = &::flyteidl::plugins::sagemaker::_TrainingJobConfig_default_instance_;
-    new (ptr) ::flyteidl::plugins::sagemaker::TrainingJobConfig();
+    void* ptr = &::flyteidl::plugins::sagemaker::_TrainingJobResourceConfig_default_instance_;
+    new (ptr) ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig();
     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
   }
-  ::flyteidl::plugins::sagemaker::TrainingJobConfig::InitAsDefaultInstance();
+  ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}};
+::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}};
 
 static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
@@ -116,21 +152,33 @@ static void InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5f
 ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto =
     {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {
       &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,
-      &scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}};
+      &scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}};
 
 void InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
+  ::google::protobuf::internal::InitSCC(&scc_info_InputMode_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
-  ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
 }
 
-::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[5];
+::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[7];
 const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[2];
 constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = nullptr;
 
 const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
+  ~0u,  // no _has_bits_
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::InputMode, _internal_metadata_),
+  ~0u,  // no _extensions_
+  ~0u,  // no _oneof_case_
+  ~0u,  // no _weak_field_map_
+  ~0u,  // no _has_bits_
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmName, _internal_metadata_),
+  ~0u,  // no _extensions_
+  ~0u,  // no _oneof_case_
+  ~0u,  // no _weak_field_map_
   ~0u,  // no _has_bits_
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, _internal_metadata_),
   ~0u,  // no _extensions_
@@ -148,13 +196,13 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_version_),
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, metric_definitions_),
   ~0u,  // no _has_bits_
-  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, _internal_metadata_),
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig, _internal_metadata_),
   ~0u,  // no _extensions_
   ~0u,  // no _oneof_case_
   ~0u,  // no _weak_field_map_
-  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, instance_count_),
-  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, instance_type_),
-  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobConfig, volume_size_in_gb_),
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig, instance_count_),
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig, instance_type_),
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig, volume_size_in_gb_),
   ~0u,  // no _has_bits_
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, _internal_metadata_),
   ~0u,  // no _extensions_
@@ -172,17 +220,21 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, interruptible_),
 };
 static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
-  { 0, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition)},
-  { 7, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)},
-  { 16, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJobConfig)},
-  { 24, -1, sizeof(::flyteidl::plugins::sagemaker::StoppingCondition)},
-  { 31, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJob)},
+  { 0, -1, sizeof(::flyteidl::plugins::sagemaker::InputMode)},
+  { 5, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmName)},
+  { 10, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition)},
+  { 17, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)},
+  { 26, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig)},
+  { 34, -1, sizeof(::flyteidl::plugins::sagemaker::StoppingCondition)},
+  { 41, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJob)},
 };
 
 static ::google::protobuf::Message const * const file_default_instances[] = {
+  reinterpret_cast(&::flyteidl::plugins::sagemaker::_InputMode_default_instance_),
+  reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmName_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_),
-  reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJobConfig_default_instance_),
+  reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJobResourceConfig_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_),
 };
@@ -190,39 +242,40 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
 ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = {
   {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, "flyteidl/plugins/sagemaker/training_job.proto", schemas,
   file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto::offsets,
-  file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 5, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto,
+  file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 7, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto,
 };
 
 const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[] =
   "\n-flyteidl/plugins/sagemaker/training_jo"
-  "b.proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026"
-  "AlgorithmSpecification\0229\n\ninput_mode\030\001 \001"
-  "(\0162%.flyteidl.plugins.sagemaker.InputMod"
-  "e\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plu"
-  "gins.sagemaker.AlgorithmName\022\031\n\021algorith"
-  "m_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 "
-  "\003(\0132C.flyteidl.plugins.sagemaker.Algorit"
-  "hmSpecification.MetricDefinition\032/\n\020Metr"
-  "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001("
-  "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count"
-  "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_"
-  "size_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n"
-  "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai"
-  "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022"
-  "S\n\027algorithm_specification\030\001 \001(\01322.flyte"
-  "idl.plugins.sagemaker.AlgorithmSpecifica"
-  "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt"
-  "eidl.plugins.sagemaker.TrainingJobConfig"
-  "\022\025\n\rinterruptible\030\003 \001(\010*\037\n\tInputMode\022\010\n\004"
-  "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS"
-  "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl"
-  "yteidl/gen/pb-go/flyteidl/pluginsb\006proto"
-  "3"
+  "b.proto\022\032flyteidl.plugins.sagemaker\"(\n\tI"
+  "nputMode\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n"
+  "\rAlgorithmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007X"
+  "GBOOST\020\001\"\317\002\n\026AlgorithmSpecification\022\?\n\ni"
+  "nput_mode\030\001 \001(\0162+.flyteidl.plugins.sagem"
+  "aker.InputMode.Value\022G\n\016algorithm_name\030\002"
+  " \001(\0162/.flyteidl.plugins.sagemaker.Algori"
+  "thmName.Value\022\031\n\021algorithm_version\030\003 \001(\t"
+  "\022_\n\022metric_definitions\030\004 \003(\0132C.flyteidl."
+  "plugins.sagemaker.AlgorithmSpecification"
+  ".MetricDefinition\032/\n\020MetricDefinition\022\014\n"
+  "\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"e\n\031TrainingJo"
+  "bResourceConfig\022\026\n\016instance_count\030\001 \001(\003\022"
+  "\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_size_in"
+  "_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n\026max_ru"
+  "ntime_in_seconds\030\001 \001(\003\022 \n\030max_wait_time_"
+  "in_seconds\030\002 \001(\003\"\315\001\n\013TrainingJob\022S\n\027algo"
+  "rithm_specification\030\001 \001(\01322.flyteidl.plu"
+  "gins.sagemaker.AlgorithmSpecification\022R\n"
+  "\023training_job_config\030\002 \001(\01325.flyteidl.pl"
+  "ugins.sagemaker.TrainingJobResourceConfi"
+  "g\022\025\n\rinterruptible\030\003 \001(\010B5Z3github.com/l"
+  "yft/flyteidl/gen/pb-go/flyteidl/pluginsb"
+  "\006proto3"
   ;
 ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = {
   false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 
   descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto,
-  "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 921,
+  "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 967,
 };
 
 void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
@@ -237,11 +290,11 @@ static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2
 namespace flyteidl {
 namespace plugins {
 namespace sagemaker {
-const ::google::protobuf::EnumDescriptor* InputMode_descriptor() {
+const ::google::protobuf::EnumDescriptor* InputMode_Value_descriptor() {
   ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto);
   return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[0];
 }
-bool InputMode_IsValid(int value) {
+bool InputMode_Value_IsValid(int value) {
   switch (value) {
     case 0:
     case 1:
@@ -251,11 +304,18 @@ bool InputMode_IsValid(int value) {
   }
 }
 
-const ::google::protobuf::EnumDescriptor* AlgorithmName_descriptor() {
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const InputMode_Value InputMode::FILE;
+const InputMode_Value InputMode::PIPE;
+const InputMode_Value InputMode::Value_MIN;
+const InputMode_Value InputMode::Value_MAX;
+const int InputMode::Value_ARRAYSIZE;
+#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
+const ::google::protobuf::EnumDescriptor* AlgorithmName_Value_descriptor() {
   ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto);
   return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[1];
 }
-bool AlgorithmName_IsValid(int value) {
+bool AlgorithmName_Value_IsValid(int value) {
   switch (value) {
     case 0:
     case 1:
@@ -265,6 +325,431 @@ bool AlgorithmName_IsValid(int value) {
   }
 }
 
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const AlgorithmName_Value AlgorithmName::CUSTOM;
+const AlgorithmName_Value AlgorithmName::XGBOOST;
+const AlgorithmName_Value AlgorithmName::Value_MIN;
+const AlgorithmName_Value AlgorithmName::Value_MAX;
+const int AlgorithmName::Value_ARRAYSIZE;
+#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+// ===================================================================
+
+void InputMode::InitAsDefaultInstance() {
+}
+class InputMode::HasBitSetters {
+ public:
+};
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+InputMode::InputMode()
+  : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
+  SharedCtor();
+  // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.InputMode)
+}
+InputMode::InputMode(const InputMode& from)
+  : ::google::protobuf::Message(),
+      _internal_metadata_(nullptr) {
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.InputMode)
+}
+
+void InputMode::SharedCtor() {
+}
+
+InputMode::~InputMode() {
+  // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.InputMode)
+  SharedDtor();
+}
+
+void InputMode::SharedDtor() {
+}
+
+void InputMode::SetCachedSize(int size) const {
+  _cached_size_.Set(size);
+}
+const InputMode& InputMode::default_instance() {
+  ::google::protobuf::internal::InitSCC(&::scc_info_InputMode_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
+  return *internal_default_instance();
+}
+
+
+void InputMode::Clear() {
+// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.InputMode)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  _internal_metadata_.Clear();
+}
+
+#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+const char* InputMode::_InternalParse(const char* begin, const char* end, void* object,
+                  ::google::protobuf::internal::ParseContext* ctx) {
+  auto msg = static_cast(object);
+  ::google::protobuf::int32 size; (void)size;
+  int depth; (void)depth;
+  ::google::protobuf::uint32 tag;
+  ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
+  auto ptr = begin;
+  while (ptr < end) {
+    ptr = ::google::protobuf::io::Parse32(ptr, &tag);
+    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
+    switch (tag >> 3) {
+      default: {
+        if ((tag & 7) == 4 || tag == 0) {
+          ctx->EndGroup(tag);
+          return ptr;
+        }
+        auto res = UnknownFieldParse(tag, {_InternalParse, msg},
+          ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
+        ptr = res.first;
+        GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
+        if (res.second) return ptr;
+      }
+    }  // switch
+  }  // while
+  return ptr;
+}
+#else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+bool InputMode::MergePartialFromCodedStream(
+    ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
+  ::google::protobuf::uint32 tag;
+  // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.InputMode)
+  for (;;) {
+    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+    tag = p.first;
+    if (!p.second) goto handle_unusual;
+  handle_unusual:
+    if (tag == 0) {
+      goto success;
+    }
+    DO_(::google::protobuf::internal::WireFormat::SkipField(
+          input, tag, _internal_metadata_.mutable_unknown_fields()));
+  }
+success:
+  // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.InputMode)
+  return true;
+failure:
+  // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.InputMode)
+  return false;
+#undef DO_
+}
+#endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+
+void InputMode::SerializeWithCachedSizes(
+    ::google::protobuf::io::CodedOutputStream* output) const {
+  // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.InputMode)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+        _internal_metadata_.unknown_fields(), output);
+  }
+  // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.InputMode)
+}
+
+::google::protobuf::uint8* InputMode::InternalSerializeWithCachedSizesToArray(
+    ::google::protobuf::uint8* target) const {
+  // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.InputMode)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+        _internal_metadata_.unknown_fields(), target);
+  }
+  // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.InputMode)
+  return target;
+}
+
+size_t InputMode::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.InputMode)
+  size_t total_size = 0;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    total_size +=
+      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+        _internal_metadata_.unknown_fields());
+  }
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+  SetCachedSize(cached_size);
+  return total_size;
+}
+
+void InputMode::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.InputMode)
+  GOOGLE_DCHECK_NE(&from, this);
+  const InputMode* source =
+      ::google::protobuf::DynamicCastToGenerated(
+          &from);
+  if (source == nullptr) {
+  // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.InputMode)
+    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+  } else {
+  // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.InputMode)
+    MergeFrom(*source);
+  }
+}
+
+void InputMode::MergeFrom(const InputMode& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.InputMode)
+  GOOGLE_DCHECK_NE(&from, this);
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+}
+
+void InputMode::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.InputMode)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+void InputMode::CopyFrom(const InputMode& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.InputMode)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+bool InputMode::IsInitialized() const {
+  return true;
+}
+
+void InputMode::Swap(InputMode* other) {
+  if (other == this) return;
+  InternalSwap(other);
+}
+void InputMode::InternalSwap(InputMode* other) {
+  using std::swap;
+  _internal_metadata_.Swap(&other->_internal_metadata_);
+}
+
+::google::protobuf::Metadata InputMode::GetMetadata() const {
+  ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto);
+  return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void AlgorithmName::InitAsDefaultInstance() {
+}
+class AlgorithmName::HasBitSetters {
+ public:
+};
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+AlgorithmName::AlgorithmName()
+  : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
+  SharedCtor();
+  // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmName)
+}
+AlgorithmName::AlgorithmName(const AlgorithmName& from)
+  : ::google::protobuf::Message(),
+      _internal_metadata_(nullptr) {
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmName)
+}
+
+void AlgorithmName::SharedCtor() {
+}
+
+AlgorithmName::~AlgorithmName() {
+  // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmName)
+  SharedDtor();
+}
+
+void AlgorithmName::SharedDtor() {
+}
+
+void AlgorithmName::SetCachedSize(int size) const {
+  _cached_size_.Set(size);
+}
+const AlgorithmName& AlgorithmName::default_instance() {
+  ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
+  return *internal_default_instance();
+}
+
+
+void AlgorithmName::Clear() {
+// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmName)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  _internal_metadata_.Clear();
+}
+
+#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+const char* AlgorithmName::_InternalParse(const char* begin, const char* end, void* object,
+                  ::google::protobuf::internal::ParseContext* ctx) {
+  auto msg = static_cast(object);
+  ::google::protobuf::int32 size; (void)size;
+  int depth; (void)depth;
+  ::google::protobuf::uint32 tag;
+  ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
+  auto ptr = begin;
+  while (ptr < end) {
+    ptr = ::google::protobuf::io::Parse32(ptr, &tag);
+    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
+    switch (tag >> 3) {
+      default: {
+        if ((tag & 7) == 4 || tag == 0) {
+          ctx->EndGroup(tag);
+          return ptr;
+        }
+        auto res = UnknownFieldParse(tag, {_InternalParse, msg},
+          ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
+        ptr = res.first;
+        GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
+        if (res.second) return ptr;
+      }
+    }  // switch
+  }  // while
+  return ptr;
+}
+#else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+bool AlgorithmName::MergePartialFromCodedStream(
+    ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
+  ::google::protobuf::uint32 tag;
+  // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmName)
+  for (;;) {
+    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+    tag = p.first;
+    if (!p.second) goto handle_unusual;
+  handle_unusual:
+    if (tag == 0) {
+      goto success;
+    }
+    DO_(::google::protobuf::internal::WireFormat::SkipField(
+          input, tag, _internal_metadata_.mutable_unknown_fields()));
+  }
+success:
+  // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmName)
+  return true;
+failure:
+  // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmName)
+  return false;
+#undef DO_
+}
+#endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+
+void AlgorithmName::SerializeWithCachedSizes(
+    ::google::protobuf::io::CodedOutputStream* output) const {
+  // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmName)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+        _internal_metadata_.unknown_fields(), output);
+  }
+  // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmName)
+}
+
+::google::protobuf::uint8* AlgorithmName::InternalSerializeWithCachedSizesToArray(
+    ::google::protobuf::uint8* target) const {
+  // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmName)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+        _internal_metadata_.unknown_fields(), target);
+  }
+  // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmName)
+  return target;
+}
+
+size_t AlgorithmName::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmName)
+  size_t total_size = 0;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    total_size +=
+      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+        _internal_metadata_.unknown_fields());
+  }
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+  SetCachedSize(cached_size);
+  return total_size;
+}
+
+void AlgorithmName::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmName)
+  GOOGLE_DCHECK_NE(&from, this);
+  const AlgorithmName* source =
+      ::google::protobuf::DynamicCastToGenerated(
+          &from);
+  if (source == nullptr) {
+  // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmName)
+    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+  } else {
+  // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmName)
+    MergeFrom(*source);
+  }
+}
+
+void AlgorithmName::MergeFrom(const AlgorithmName& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmName)
+  GOOGLE_DCHECK_NE(&from, this);
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+}
+
+void AlgorithmName::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmName)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+void AlgorithmName::CopyFrom(const AlgorithmName& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmName)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+bool AlgorithmName::IsInitialized() const {
+  return true;
+}
+
+void AlgorithmName::Swap(AlgorithmName* other) {
+  if (other == this) return;
+  InternalSwap(other);
+}
+void AlgorithmName::InternalSwap(AlgorithmName* other) {
+  using std::swap;
+  _internal_metadata_.Swap(&other->_internal_metadata_);
+}
+
+::google::protobuf::Metadata AlgorithmName::GetMetadata() const {
+  ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto);
+  return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages];
+}
+
 
 // ===================================================================
 
@@ -725,19 +1210,19 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char
     ptr = ::google::protobuf::io::Parse32(ptr, &tag);
     GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
     switch (tag >> 3) {
-      // .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
+      // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1;
       case 1: {
         if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
         ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
-        msg->set_input_mode(static_cast<::flyteidl::plugins::sagemaker::InputMode>(val));
+        msg->set_input_mode(static_cast<::flyteidl::plugins::sagemaker::InputMode_Value>(val));
         GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
         break;
       }
-      // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
+      // .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2;
       case 2: {
         if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
         ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
-        msg->set_algorithm_name(static_cast<::flyteidl::plugins::sagemaker::AlgorithmName>(val));
+        msg->set_algorithm_name(static_cast<::flyteidl::plugins::sagemaker::AlgorithmName_Value>(val));
         GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
         break;
       }
@@ -807,28 +1292,28 @@ bool AlgorithmSpecification::MergePartialFromCodedStream(
     tag = p.first;
     if (!p.second) goto handle_unusual;
     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
-      // .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
+      // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1;
       case 1: {
         if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
           int value = 0;
           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
                  input, &value)));
-          set_input_mode(static_cast< ::flyteidl::plugins::sagemaker::InputMode >(value));
+          set_input_mode(static_cast< ::flyteidl::plugins::sagemaker::InputMode_Value >(value));
         } else {
           goto handle_unusual;
         }
         break;
       }
 
-      // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
+      // .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2;
       case 2: {
         if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
           int value = 0;
           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
                  input, &value)));
-          set_algorithm_name(static_cast< ::flyteidl::plugins::sagemaker::AlgorithmName >(value));
+          set_algorithm_name(static_cast< ::flyteidl::plugins::sagemaker::AlgorithmName_Value >(value));
         } else {
           goto handle_unusual;
         }
@@ -888,13 +1373,13 @@ void AlgorithmSpecification::SerializeWithCachedSizes(
   ::google::protobuf::uint32 cached_has_bits = 0;
   (void) cached_has_bits;
 
-  // .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
+  // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1;
   if (this->input_mode() != 0) {
     ::google::protobuf::internal::WireFormatLite::WriteEnum(
       1, this->input_mode(), output);
   }
 
-  // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
+  // .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2;
   if (this->algorithm_name() != 0) {
     ::google::protobuf::internal::WireFormatLite::WriteEnum(
       2, this->algorithm_name(), output);
@@ -932,13 +1417,13 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi
   ::google::protobuf::uint32 cached_has_bits = 0;
   (void) cached_has_bits;
 
-  // .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
+  // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1;
   if (this->input_mode() != 0) {
     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
       1, this->input_mode(), target);
   }
 
-  // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
+  // .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2;
   if (this->algorithm_name() != 0) {
     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
       2, this->algorithm_name(), target);
@@ -1002,13 +1487,13 @@ size_t AlgorithmSpecification::ByteSizeLong() const {
         this->algorithm_version());
   }
 
-  // .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
+  // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1;
   if (this->input_mode() != 0) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::EnumSize(this->input_mode());
   }
 
-  // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
+  // .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2;
   if (this->algorithm_name() != 0) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::EnumSize(this->algorithm_name());
@@ -1094,24 +1579,24 @@ ::google::protobuf::Metadata AlgorithmSpecification::GetMetadata() const {
 
 // ===================================================================
 
-void TrainingJobConfig::InitAsDefaultInstance() {
+void TrainingJobResourceConfig::InitAsDefaultInstance() {
 }
-class TrainingJobConfig::HasBitSetters {
+class TrainingJobResourceConfig::HasBitSetters {
  public:
 };
 
 #if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int TrainingJobConfig::kInstanceCountFieldNumber;
-const int TrainingJobConfig::kInstanceTypeFieldNumber;
-const int TrainingJobConfig::kVolumeSizeInGbFieldNumber;
+const int TrainingJobResourceConfig::kInstanceCountFieldNumber;
+const int TrainingJobResourceConfig::kInstanceTypeFieldNumber;
+const int TrainingJobResourceConfig::kVolumeSizeInGbFieldNumber;
 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
 
-TrainingJobConfig::TrainingJobConfig()
+TrainingJobResourceConfig::TrainingJobResourceConfig()
   : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
   SharedCtor();
-  // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJobConfig)
+  // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
 }
-TrainingJobConfig::TrainingJobConfig(const TrainingJobConfig& from)
+TrainingJobResourceConfig::TrainingJobResourceConfig(const TrainingJobResourceConfig& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(nullptr) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
@@ -1122,38 +1607,38 @@ TrainingJobConfig::TrainingJobConfig(const TrainingJobConfig& from)
   ::memcpy(&instance_count_, &from.instance_count_,
     static_cast(reinterpret_cast(&volume_size_in_gb_) -
     reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_));
-  // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJobConfig)
+  // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
 }
 
-void TrainingJobConfig::SharedCtor() {
+void TrainingJobResourceConfig::SharedCtor() {
   ::google::protobuf::internal::InitSCC(
-      &scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
+      &scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   instance_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   ::memset(&instance_count_, 0, static_cast(
       reinterpret_cast(&volume_size_in_gb_) -
       reinterpret_cast(&instance_count_)) + sizeof(volume_size_in_gb_));
 }
 
-TrainingJobConfig::~TrainingJobConfig() {
-  // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJobConfig)
+TrainingJobResourceConfig::~TrainingJobResourceConfig() {
+  // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
   SharedDtor();
 }
 
-void TrainingJobConfig::SharedDtor() {
+void TrainingJobResourceConfig::SharedDtor() {
   instance_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 
-void TrainingJobConfig::SetCachedSize(int size) const {
+void TrainingJobResourceConfig::SetCachedSize(int size) const {
   _cached_size_.Set(size);
 }
-const TrainingJobConfig& TrainingJobConfig::default_instance() {
-  ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJobConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
+const TrainingJobResourceConfig& TrainingJobResourceConfig::default_instance() {
+  ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   return *internal_default_instance();
 }
 
 
-void TrainingJobConfig::Clear() {
-// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJobConfig)
+void TrainingJobResourceConfig::Clear() {
+// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
   ::google::protobuf::uint32 cached_has_bits = 0;
   // Prevent compiler warnings about cached_has_bits being unused
   (void) cached_has_bits;
@@ -1166,9 +1651,9 @@ void TrainingJobConfig::Clear() {
 }
 
 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
-const char* TrainingJobConfig::_InternalParse(const char* begin, const char* end, void* object,
+const char* TrainingJobResourceConfig::_InternalParse(const char* begin, const char* end, void* object,
                   ::google::protobuf::internal::ParseContext* ctx) {
-  auto msg = static_cast(object);
+  auto msg = static_cast(object);
   ::google::protobuf::int32 size; (void)size;
   int depth; (void)depth;
   ::google::protobuf::uint32 tag;
@@ -1190,7 +1675,7 @@ const char* TrainingJobConfig::_InternalParse(const char* begin, const char* end
         if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
         ptr = ::google::protobuf::io::ReadSize(ptr, &size);
         GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
-        ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type");
+        ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type");
         object = msg->mutable_instance_type();
         if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
           parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
@@ -1232,11 +1717,11 @@ const char* TrainingJobConfig::_InternalParse(const char* begin, const char* end
                                {parser_till_end, object}, size);
 }
 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
-bool TrainingJobConfig::MergePartialFromCodedStream(
+bool TrainingJobResourceConfig::MergePartialFromCodedStream(
     ::google::protobuf::io::CodedInputStream* input) {
 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
   ::google::protobuf::uint32 tag;
-  // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJobConfig)
+  // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
   for (;;) {
     ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
     tag = p.first;
@@ -1263,7 +1748,7 @@ bool TrainingJobConfig::MergePartialFromCodedStream(
           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
             this->instance_type().data(), static_cast(this->instance_type().length()),
             ::google::protobuf::internal::WireFormatLite::PARSE,
-            "flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type"));
+            "flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type"));
         } else {
           goto handle_unusual;
         }
@@ -1295,18 +1780,18 @@ bool TrainingJobConfig::MergePartialFromCodedStream(
     }
   }
 success:
-  // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJobConfig)
+  // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
   return true;
 failure:
-  // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJobConfig)
+  // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
   return false;
 #undef DO_
 }
 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
 
-void TrainingJobConfig::SerializeWithCachedSizes(
+void TrainingJobResourceConfig::SerializeWithCachedSizes(
     ::google::protobuf::io::CodedOutputStream* output) const {
-  // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJobConfig)
+  // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
   ::google::protobuf::uint32 cached_has_bits = 0;
   (void) cached_has_bits;
 
@@ -1320,7 +1805,7 @@ void TrainingJobConfig::SerializeWithCachedSizes(
     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
       this->instance_type().data(), static_cast(this->instance_type().length()),
       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
-      "flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type");
+      "flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type");
     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
       2, this->instance_type(), output);
   }
@@ -1334,12 +1819,12 @@ void TrainingJobConfig::SerializeWithCachedSizes(
     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
         _internal_metadata_.unknown_fields(), output);
   }
-  // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJobConfig)
+  // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
 }
 
-::google::protobuf::uint8* TrainingJobConfig::InternalSerializeWithCachedSizesToArray(
+::google::protobuf::uint8* TrainingJobResourceConfig::InternalSerializeWithCachedSizesToArray(
     ::google::protobuf::uint8* target) const {
-  // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.TrainingJobConfig)
+  // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
   ::google::protobuf::uint32 cached_has_bits = 0;
   (void) cached_has_bits;
 
@@ -1353,7 +1838,7 @@ ::google::protobuf::uint8* TrainingJobConfig::InternalSerializeWithCachedSizesTo
     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
       this->instance_type().data(), static_cast(this->instance_type().length()),
       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
-      "flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type");
+      "flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type");
     target =
       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
         2, this->instance_type(), target);
@@ -1368,12 +1853,12 @@ ::google::protobuf::uint8* TrainingJobConfig::InternalSerializeWithCachedSizesTo
     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
         _internal_metadata_.unknown_fields(), target);
   }
-  // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.TrainingJobConfig)
+  // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
   return target;
 }
 
-size_t TrainingJobConfig::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.TrainingJobConfig)
+size_t TrainingJobResourceConfig::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
   size_t total_size = 0;
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -1411,23 +1896,23 @@ size_t TrainingJobConfig::ByteSizeLong() const {
   return total_size;
 }
 
-void TrainingJobConfig::MergeFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig)
+void TrainingJobResourceConfig::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
   GOOGLE_DCHECK_NE(&from, this);
-  const TrainingJobConfig* source =
-      ::google::protobuf::DynamicCastToGenerated(
+  const TrainingJobResourceConfig* source =
+      ::google::protobuf::DynamicCastToGenerated(
           &from);
   if (source == nullptr) {
-  // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.TrainingJobConfig)
+  // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
   } else {
-  // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.TrainingJobConfig)
+  // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
     MergeFrom(*source);
   }
 }
 
-void TrainingJobConfig::MergeFrom(const TrainingJobConfig& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig)
+void TrainingJobResourceConfig::MergeFrom(const TrainingJobResourceConfig& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
   GOOGLE_DCHECK_NE(&from, this);
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   ::google::protobuf::uint32 cached_has_bits = 0;
@@ -1445,29 +1930,29 @@ void TrainingJobConfig::MergeFrom(const TrainingJobConfig& from) {
   }
 }
 
-void TrainingJobConfig::CopyFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig)
+void TrainingJobResourceConfig::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
   if (&from == this) return;
   Clear();
   MergeFrom(from);
 }
 
-void TrainingJobConfig::CopyFrom(const TrainingJobConfig& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobConfig)
+void TrainingJobResourceConfig::CopyFrom(const TrainingJobResourceConfig& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
   if (&from == this) return;
   Clear();
   MergeFrom(from);
 }
 
-bool TrainingJobConfig::IsInitialized() const {
+bool TrainingJobResourceConfig::IsInitialized() const {
   return true;
 }
 
-void TrainingJobConfig::Swap(TrainingJobConfig* other) {
+void TrainingJobResourceConfig::Swap(TrainingJobResourceConfig* other) {
   if (other == this) return;
   InternalSwap(other);
 }
-void TrainingJobConfig::InternalSwap(TrainingJobConfig* other) {
+void TrainingJobResourceConfig::InternalSwap(TrainingJobResourceConfig* other) {
   using std::swap;
   _internal_metadata_.Swap(&other->_internal_metadata_);
   instance_type_.Swap(&other->instance_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
@@ -1476,7 +1961,7 @@ void TrainingJobConfig::InternalSwap(TrainingJobConfig* other) {
   swap(volume_size_in_gb_, other->volume_size_in_gb_);
 }
 
-::google::protobuf::Metadata TrainingJobConfig::GetMetadata() const {
+::google::protobuf::Metadata TrainingJobResourceConfig::GetMetadata() const {
   ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto);
   return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages];
 }
@@ -1795,20 +2280,20 @@ ::google::protobuf::Metadata StoppingCondition::GetMetadata() const {
 void TrainingJob::InitAsDefaultInstance() {
   ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->algorithm_specification_ = const_cast< ::flyteidl::plugins::sagemaker::AlgorithmSpecification*>(
       ::flyteidl::plugins::sagemaker::AlgorithmSpecification::internal_default_instance());
-  ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->training_job_config_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJobConfig*>(
-      ::flyteidl::plugins::sagemaker::TrainingJobConfig::internal_default_instance());
+  ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->training_job_config_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig*>(
+      ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig::internal_default_instance());
 }
 class TrainingJob::HasBitSetters {
  public:
   static const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithm_specification(const TrainingJob* msg);
-  static const ::flyteidl::plugins::sagemaker::TrainingJobConfig& training_job_config(const TrainingJob* msg);
+  static const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& training_job_config(const TrainingJob* msg);
 };
 
 const ::flyteidl::plugins::sagemaker::AlgorithmSpecification&
 TrainingJob::HasBitSetters::algorithm_specification(const TrainingJob* msg) {
   return *msg->algorithm_specification_;
 }
-const ::flyteidl::plugins::sagemaker::TrainingJobConfig&
+const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig&
 TrainingJob::HasBitSetters::training_job_config(const TrainingJob* msg) {
   return *msg->training_job_config_;
 }
@@ -1833,7 +2318,7 @@ TrainingJob::TrainingJob(const TrainingJob& from)
     algorithm_specification_ = nullptr;
   }
   if (from.has_training_job_config()) {
-    training_job_config_ = new ::flyteidl::plugins::sagemaker::TrainingJobConfig(*from.training_job_config_);
+    training_job_config_ = new ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig(*from.training_job_config_);
   } else {
     training_job_config_ = nullptr;
   }
@@ -1912,12 +2397,12 @@ const char* TrainingJob::_InternalParse(const char* begin, const char* end, void
             {parser_till_end, object}, ptr - size, ptr));
         break;
       }
-      // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
+      // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
       case 2: {
         if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
         ptr = ::google::protobuf::io::ReadSize(ptr, &size);
         GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
-        parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJobConfig::_InternalParse;
+        parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig::_InternalParse;
         object = msg->mutable_training_job_config();
         if (size > end - ptr) goto len_delim_till_end;
         ptr += size;
@@ -1973,7 +2458,7 @@ bool TrainingJob::MergePartialFromCodedStream(
         break;
       }
 
-      // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
+      // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
       case 2: {
         if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
@@ -2030,7 +2515,7 @@ void TrainingJob::SerializeWithCachedSizes(
       1, HasBitSetters::algorithm_specification(this), output);
   }
 
-  // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
+  // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
   if (this->has_training_job_config()) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
       2, HasBitSetters::training_job_config(this), output);
@@ -2061,7 +2546,7 @@ ::google::protobuf::uint8* TrainingJob::InternalSerializeWithCachedSizesToArray(
         1, HasBitSetters::algorithm_specification(this), target);
   }
 
-  // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
+  // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
   if (this->has_training_job_config()) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
@@ -2101,7 +2586,7 @@ size_t TrainingJob::ByteSizeLong() const {
         *algorithm_specification_);
   }
 
-  // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
+  // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
   if (this->has_training_job_config()) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::MessageSize(
@@ -2144,7 +2629,7 @@ void TrainingJob::MergeFrom(const TrainingJob& from) {
     mutable_algorithm_specification()->::flyteidl::plugins::sagemaker::AlgorithmSpecification::MergeFrom(from.algorithm_specification());
   }
   if (from.has_training_job_config()) {
-    mutable_training_job_config()->::flyteidl::plugins::sagemaker::TrainingJobConfig::MergeFrom(from.training_job_config());
+    mutable_training_job_config()->::flyteidl::plugins::sagemaker::TrainingJobResourceConfig::MergeFrom(from.training_job_config());
   }
   if (from.interruptible() != 0) {
     set_interruptible(from.interruptible());
@@ -2193,14 +2678,20 @@ ::google::protobuf::Metadata TrainingJob::GetMetadata() const {
 }  // namespace flyteidl
 namespace google {
 namespace protobuf {
+template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::InputMode* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::InputMode >(Arena* arena) {
+  return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::InputMode >(arena);
+}
+template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmName* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmName >(Arena* arena) {
+  return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmName >(arena);
+}
 template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(Arena* arena) {
   return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(arena);
 }
 template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(Arena* arena) {
   return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(arena);
 }
-template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJobConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJobConfig >(Arena* arena) {
-  return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJobConfig >(arena);
+template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig >(Arena* arena) {
+  return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig >(arena);
 }
 template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::StoppingCondition >(Arena* arena) {
   return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::StoppingCondition >(arena);
diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h
index d41e5797c..821e197e8 100644
--- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h
+++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h
@@ -42,7 +42,7 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto {
     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
   static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
-  static const ::google::protobuf::internal::ParseTable schema[5]
+  static const ::google::protobuf::internal::ParseTable schema[7]
     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
   static const ::google::protobuf::internal::FieldMetadata field_metadata[];
   static const ::google::protobuf::internal::SerializationTable serialization_table[];
@@ -52,81 +52,351 @@ void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto();
 namespace flyteidl {
 namespace plugins {
 namespace sagemaker {
+class AlgorithmName;
+class AlgorithmNameDefaultTypeInternal;
+extern AlgorithmNameDefaultTypeInternal _AlgorithmName_default_instance_;
 class AlgorithmSpecification;
 class AlgorithmSpecificationDefaultTypeInternal;
 extern AlgorithmSpecificationDefaultTypeInternal _AlgorithmSpecification_default_instance_;
 class AlgorithmSpecification_MetricDefinition;
 class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal;
 extern AlgorithmSpecification_MetricDefinitionDefaultTypeInternal _AlgorithmSpecification_MetricDefinition_default_instance_;
+class InputMode;
+class InputModeDefaultTypeInternal;
+extern InputModeDefaultTypeInternal _InputMode_default_instance_;
 class StoppingCondition;
 class StoppingConditionDefaultTypeInternal;
 extern StoppingConditionDefaultTypeInternal _StoppingCondition_default_instance_;
 class TrainingJob;
 class TrainingJobDefaultTypeInternal;
 extern TrainingJobDefaultTypeInternal _TrainingJob_default_instance_;
-class TrainingJobConfig;
-class TrainingJobConfigDefaultTypeInternal;
-extern TrainingJobConfigDefaultTypeInternal _TrainingJobConfig_default_instance_;
+class TrainingJobResourceConfig;
+class TrainingJobResourceConfigDefaultTypeInternal;
+extern TrainingJobResourceConfigDefaultTypeInternal _TrainingJobResourceConfig_default_instance_;
 }  // namespace sagemaker
 }  // namespace plugins
 }  // namespace flyteidl
 namespace google {
 namespace protobuf {
+template<> ::flyteidl::plugins::sagemaker::AlgorithmName* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmName>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition>(Arena*);
+template<> ::flyteidl::plugins::sagemaker::InputMode* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::InputMode>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::StoppingCondition>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(Arena*);
-template<> ::flyteidl::plugins::sagemaker::TrainingJobConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobConfig>(Arena*);
+template<> ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobResourceConfig>(Arena*);
 }  // namespace protobuf
 }  // namespace google
 namespace flyteidl {
 namespace plugins {
 namespace sagemaker {
 
-enum InputMode {
-  FILE = 0,
-  PIPE = 1,
-  InputMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
-  InputMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
+enum InputMode_Value {
+  InputMode_Value_FILE = 0,
+  InputMode_Value_PIPE = 1,
+  InputMode_Value_InputMode_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
+  InputMode_Value_InputMode_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
 };
-bool InputMode_IsValid(int value);
-const InputMode InputMode_MIN = FILE;
-const InputMode InputMode_MAX = PIPE;
-const int InputMode_ARRAYSIZE = InputMode_MAX + 1;
+bool InputMode_Value_IsValid(int value);
+const InputMode_Value InputMode_Value_Value_MIN = InputMode_Value_FILE;
+const InputMode_Value InputMode_Value_Value_MAX = InputMode_Value_PIPE;
+const int InputMode_Value_Value_ARRAYSIZE = InputMode_Value_Value_MAX + 1;
 
-const ::google::protobuf::EnumDescriptor* InputMode_descriptor();
-inline const ::std::string& InputMode_Name(InputMode value) {
+const ::google::protobuf::EnumDescriptor* InputMode_Value_descriptor();
+inline const ::std::string& InputMode_Value_Name(InputMode_Value value) {
   return ::google::protobuf::internal::NameOfEnum(
-    InputMode_descriptor(), value);
-}
-inline bool InputMode_Parse(
-    const ::std::string& name, InputMode* value) {
-  return ::google::protobuf::internal::ParseNamedEnum(
-    InputMode_descriptor(), name, value);
-}
-enum AlgorithmName {
-  CUSTOM = 0,
-  XGBOOST = 1,
-  AlgorithmName_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
-  AlgorithmName_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
+    InputMode_Value_descriptor(), value);
+}
+inline bool InputMode_Value_Parse(
+    const ::std::string& name, InputMode_Value* value) {
+  return ::google::protobuf::internal::ParseNamedEnum(
+    InputMode_Value_descriptor(), name, value);
+}
+enum AlgorithmName_Value {
+  AlgorithmName_Value_CUSTOM = 0,
+  AlgorithmName_Value_XGBOOST = 1,
+  AlgorithmName_Value_AlgorithmName_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
+  AlgorithmName_Value_AlgorithmName_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
 };
-bool AlgorithmName_IsValid(int value);
-const AlgorithmName AlgorithmName_MIN = CUSTOM;
-const AlgorithmName AlgorithmName_MAX = XGBOOST;
-const int AlgorithmName_ARRAYSIZE = AlgorithmName_MAX + 1;
+bool AlgorithmName_Value_IsValid(int value);
+const AlgorithmName_Value AlgorithmName_Value_Value_MIN = AlgorithmName_Value_CUSTOM;
+const AlgorithmName_Value AlgorithmName_Value_Value_MAX = AlgorithmName_Value_XGBOOST;
+const int AlgorithmName_Value_Value_ARRAYSIZE = AlgorithmName_Value_Value_MAX + 1;
 
-const ::google::protobuf::EnumDescriptor* AlgorithmName_descriptor();
-inline const ::std::string& AlgorithmName_Name(AlgorithmName value) {
+const ::google::protobuf::EnumDescriptor* AlgorithmName_Value_descriptor();
+inline const ::std::string& AlgorithmName_Value_Name(AlgorithmName_Value value) {
   return ::google::protobuf::internal::NameOfEnum(
-    AlgorithmName_descriptor(), value);
+    AlgorithmName_Value_descriptor(), value);
 }
-inline bool AlgorithmName_Parse(
-    const ::std::string& name, AlgorithmName* value) {
-  return ::google::protobuf::internal::ParseNamedEnum(
-    AlgorithmName_descriptor(), name, value);
+inline bool AlgorithmName_Value_Parse(
+    const ::std::string& name, AlgorithmName_Value* value) {
+  return ::google::protobuf::internal::ParseNamedEnum(
+    AlgorithmName_Value_descriptor(), name, value);
 }
 // ===================================================================
 
+class InputMode final :
+    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.InputMode) */ {
+ public:
+  InputMode();
+  virtual ~InputMode();
+
+  InputMode(const InputMode& from);
+
+  inline InputMode& operator=(const InputMode& from) {
+    CopyFrom(from);
+    return *this;
+  }
+  #if LANG_CXX11
+  InputMode(InputMode&& from) noexcept
+    : InputMode() {
+    *this = ::std::move(from);
+  }
+
+  inline InputMode& operator=(InputMode&& from) noexcept {
+    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+      if (this != &from) InternalSwap(&from);
+    } else {
+      CopyFrom(from);
+    }
+    return *this;
+  }
+  #endif
+  static const ::google::protobuf::Descriptor* descriptor() {
+    return default_instance().GetDescriptor();
+  }
+  static const InputMode& default_instance();
+
+  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
+  static inline const InputMode* internal_default_instance() {
+    return reinterpret_cast(
+               &_InputMode_default_instance_);
+  }
+  static constexpr int kIndexInFileMessages =
+    0;
+
+  void Swap(InputMode* other);
+  friend void swap(InputMode& a, InputMode& b) {
+    a.Swap(&b);
+  }
+
+  // implements Message ----------------------------------------------
+
+  inline InputMode* New() const final {
+    return CreateMaybeMessage(nullptr);
+  }
+
+  InputMode* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
+  void CopyFrom(const InputMode& from);
+  void MergeFrom(const InputMode& from);
+  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+  bool IsInitialized() const final;
+
+  size_t ByteSizeLong() const final;
+  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
+  ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
+  #else
+  bool MergePartialFromCodedStream(
+      ::google::protobuf::io::CodedInputStream* input) final;
+  #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  void SerializeWithCachedSizes(
+      ::google::protobuf::io::CodedOutputStream* output) const final;
+  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+      ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
+  private:
+  void SharedCtor();
+  void SharedDtor();
+  void SetCachedSize(int size) const final;
+  void InternalSwap(InputMode* other);
+  private:
+  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+    return nullptr;
+  }
+  inline void* MaybeArenaPtr() const {
+    return nullptr;
+  }
+  public:
+
+  ::google::protobuf::Metadata GetMetadata() const final;
+
+  // nested types ----------------------------------------------------
+
+  typedef InputMode_Value Value;
+  static const Value FILE =
+    InputMode_Value_FILE;
+  static const Value PIPE =
+    InputMode_Value_PIPE;
+  static inline bool Value_IsValid(int value) {
+    return InputMode_Value_IsValid(value);
+  }
+  static const Value Value_MIN =
+    InputMode_Value_Value_MIN;
+  static const Value Value_MAX =
+    InputMode_Value_Value_MAX;
+  static const int Value_ARRAYSIZE =
+    InputMode_Value_Value_ARRAYSIZE;
+  static inline const ::google::protobuf::EnumDescriptor*
+  Value_descriptor() {
+    return InputMode_Value_descriptor();
+  }
+  static inline const ::std::string& Value_Name(Value value) {
+    return InputMode_Value_Name(value);
+  }
+  static inline bool Value_Parse(const ::std::string& name,
+      Value* value) {
+    return InputMode_Value_Parse(name, value);
+  }
+
+  // accessors -------------------------------------------------------
+
+  // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputMode)
+ private:
+  class HasBitSetters;
+
+  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
+};
+// -------------------------------------------------------------------
+
+class AlgorithmName final :
+    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmName) */ {
+ public:
+  AlgorithmName();
+  virtual ~AlgorithmName();
+
+  AlgorithmName(const AlgorithmName& from);
+
+  inline AlgorithmName& operator=(const AlgorithmName& from) {
+    CopyFrom(from);
+    return *this;
+  }
+  #if LANG_CXX11
+  AlgorithmName(AlgorithmName&& from) noexcept
+    : AlgorithmName() {
+    *this = ::std::move(from);
+  }
+
+  inline AlgorithmName& operator=(AlgorithmName&& from) noexcept {
+    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+      if (this != &from) InternalSwap(&from);
+    } else {
+      CopyFrom(from);
+    }
+    return *this;
+  }
+  #endif
+  static const ::google::protobuf::Descriptor* descriptor() {
+    return default_instance().GetDescriptor();
+  }
+  static const AlgorithmName& default_instance();
+
+  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
+  static inline const AlgorithmName* internal_default_instance() {
+    return reinterpret_cast(
+               &_AlgorithmName_default_instance_);
+  }
+  static constexpr int kIndexInFileMessages =
+    1;
+
+  void Swap(AlgorithmName* other);
+  friend void swap(AlgorithmName& a, AlgorithmName& b) {
+    a.Swap(&b);
+  }
+
+  // implements Message ----------------------------------------------
+
+  inline AlgorithmName* New() const final {
+    return CreateMaybeMessage(nullptr);
+  }
+
+  AlgorithmName* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
+  void CopyFrom(const AlgorithmName& from);
+  void MergeFrom(const AlgorithmName& from);
+  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+  bool IsInitialized() const final;
+
+  size_t ByteSizeLong() const final;
+  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
+  ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
+  #else
+  bool MergePartialFromCodedStream(
+      ::google::protobuf::io::CodedInputStream* input) final;
+  #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  void SerializeWithCachedSizes(
+      ::google::protobuf::io::CodedOutputStream* output) const final;
+  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+      ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
+  private:
+  void SharedCtor();
+  void SharedDtor();
+  void SetCachedSize(int size) const final;
+  void InternalSwap(AlgorithmName* other);
+  private:
+  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+    return nullptr;
+  }
+  inline void* MaybeArenaPtr() const {
+    return nullptr;
+  }
+  public:
+
+  ::google::protobuf::Metadata GetMetadata() const final;
+
+  // nested types ----------------------------------------------------
+
+  typedef AlgorithmName_Value Value;
+  static const Value CUSTOM =
+    AlgorithmName_Value_CUSTOM;
+  static const Value XGBOOST =
+    AlgorithmName_Value_XGBOOST;
+  static inline bool Value_IsValid(int value) {
+    return AlgorithmName_Value_IsValid(value);
+  }
+  static const Value Value_MIN =
+    AlgorithmName_Value_Value_MIN;
+  static const Value Value_MAX =
+    AlgorithmName_Value_Value_MAX;
+  static const int Value_ARRAYSIZE =
+    AlgorithmName_Value_Value_ARRAYSIZE;
+  static inline const ::google::protobuf::EnumDescriptor*
+  Value_descriptor() {
+    return AlgorithmName_Value_descriptor();
+  }
+  static inline const ::std::string& Value_Name(Value value) {
+    return AlgorithmName_Value_Name(value);
+  }
+  static inline bool Value_Parse(const ::std::string& name,
+      Value* value) {
+    return AlgorithmName_Value_Parse(name, value);
+  }
+
+  // accessors -------------------------------------------------------
+
+  // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmName)
+ private:
+  class HasBitSetters;
+
+  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
+};
+// -------------------------------------------------------------------
+
 class AlgorithmSpecification_MetricDefinition final :
     public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) */ {
  public:
@@ -165,7 +435,7 @@ class AlgorithmSpecification_MetricDefinition final :
                &_AlgorithmSpecification_MetricDefinition_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    0;
+    2;
 
   void Swap(AlgorithmSpecification_MetricDefinition* other);
   friend void swap(AlgorithmSpecification_MetricDefinition& a, AlgorithmSpecification_MetricDefinition& b) {
@@ -300,7 +570,7 @@ class AlgorithmSpecification final :
                &_AlgorithmSpecification_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    1;
+    3;
 
   void Swap(AlgorithmSpecification* other);
   friend void swap(AlgorithmSpecification& a, AlgorithmSpecification& b) {
@@ -385,17 +655,17 @@ class AlgorithmSpecification final :
   ::std::string* release_algorithm_version();
   void set_allocated_algorithm_version(::std::string* algorithm_version);
 
-  // .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
+  // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1;
   void clear_input_mode();
   static const int kInputModeFieldNumber = 1;
-  ::flyteidl::plugins::sagemaker::InputMode input_mode() const;
-  void set_input_mode(::flyteidl::plugins::sagemaker::InputMode value);
+  ::flyteidl::plugins::sagemaker::InputMode_Value input_mode() const;
+  void set_input_mode(::flyteidl::plugins::sagemaker::InputMode_Value value);
 
-  // .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
+  // .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2;
   void clear_algorithm_name();
   static const int kAlgorithmNameFieldNumber = 2;
-  ::flyteidl::plugins::sagemaker::AlgorithmName algorithm_name() const;
-  void set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName value);
+  ::flyteidl::plugins::sagemaker::AlgorithmName_Value algorithm_name() const;
+  void set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName_Value value);
 
   // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification)
  private:
@@ -411,25 +681,25 @@ class AlgorithmSpecification final :
 };
 // -------------------------------------------------------------------
 
-class TrainingJobConfig final :
-    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.TrainingJobConfig) */ {
+class TrainingJobResourceConfig final :
+    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) */ {
  public:
-  TrainingJobConfig();
-  virtual ~TrainingJobConfig();
+  TrainingJobResourceConfig();
+  virtual ~TrainingJobResourceConfig();
 
-  TrainingJobConfig(const TrainingJobConfig& from);
+  TrainingJobResourceConfig(const TrainingJobResourceConfig& from);
 
-  inline TrainingJobConfig& operator=(const TrainingJobConfig& from) {
+  inline TrainingJobResourceConfig& operator=(const TrainingJobResourceConfig& from) {
     CopyFrom(from);
     return *this;
   }
   #if LANG_CXX11
-  TrainingJobConfig(TrainingJobConfig&& from) noexcept
-    : TrainingJobConfig() {
+  TrainingJobResourceConfig(TrainingJobResourceConfig&& from) noexcept
+    : TrainingJobResourceConfig() {
     *this = ::std::move(from);
   }
 
-  inline TrainingJobConfig& operator=(TrainingJobConfig&& from) noexcept {
+  inline TrainingJobResourceConfig& operator=(TrainingJobResourceConfig&& from) noexcept {
     if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
       if (this != &from) InternalSwap(&from);
     } else {
@@ -441,34 +711,34 @@ class TrainingJobConfig final :
   static const ::google::protobuf::Descriptor* descriptor() {
     return default_instance().GetDescriptor();
   }
-  static const TrainingJobConfig& default_instance();
+  static const TrainingJobResourceConfig& default_instance();
 
   static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
-  static inline const TrainingJobConfig* internal_default_instance() {
-    return reinterpret_cast(
-               &_TrainingJobConfig_default_instance_);
+  static inline const TrainingJobResourceConfig* internal_default_instance() {
+    return reinterpret_cast(
+               &_TrainingJobResourceConfig_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    2;
+    4;
 
-  void Swap(TrainingJobConfig* other);
-  friend void swap(TrainingJobConfig& a, TrainingJobConfig& b) {
+  void Swap(TrainingJobResourceConfig* other);
+  friend void swap(TrainingJobResourceConfig& a, TrainingJobResourceConfig& b) {
     a.Swap(&b);
   }
 
   // implements Message ----------------------------------------------
 
-  inline TrainingJobConfig* New() const final {
-    return CreateMaybeMessage(nullptr);
+  inline TrainingJobResourceConfig* New() const final {
+    return CreateMaybeMessage(nullptr);
   }
 
-  TrainingJobConfig* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage(arena);
+  TrainingJobResourceConfig* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage(arena);
   }
   void CopyFrom(const ::google::protobuf::Message& from) final;
   void MergeFrom(const ::google::protobuf::Message& from) final;
-  void CopyFrom(const TrainingJobConfig& from);
-  void MergeFrom(const TrainingJobConfig& from);
+  void CopyFrom(const TrainingJobResourceConfig& from);
+  void MergeFrom(const TrainingJobResourceConfig& from);
   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
   bool IsInitialized() const final;
 
@@ -490,7 +760,7 @@ class TrainingJobConfig final :
   void SharedCtor();
   void SharedDtor();
   void SetCachedSize(int size) const final;
-  void InternalSwap(TrainingJobConfig* other);
+  void InternalSwap(TrainingJobResourceConfig* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
     return nullptr;
@@ -532,7 +802,7 @@ class TrainingJobConfig final :
   ::google::protobuf::int64 volume_size_in_gb() const;
   void set_volume_size_in_gb(::google::protobuf::int64 value);
 
-  // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig)
+  // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobResourceConfig)
  private:
   class HasBitSetters;
 
@@ -583,7 +853,7 @@ class StoppingCondition final :
                &_StoppingCondition_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    3;
+    5;
 
   void Swap(StoppingCondition* other);
   friend void swap(StoppingCondition& a, StoppingCondition& b) {
@@ -702,7 +972,7 @@ class TrainingJob final :
                &_TrainingJob_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    4;
+    6;
 
   void Swap(TrainingJob* other);
   friend void swap(TrainingJob& a, TrainingJob& b) {
@@ -768,14 +1038,14 @@ class TrainingJob final :
   ::flyteidl::plugins::sagemaker::AlgorithmSpecification* mutable_algorithm_specification();
   void set_allocated_algorithm_specification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification);
 
-  // .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
+  // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
   bool has_training_job_config() const;
   void clear_training_job_config();
   static const int kTrainingJobConfigFieldNumber = 2;
-  const ::flyteidl::plugins::sagemaker::TrainingJobConfig& training_job_config() const;
-  ::flyteidl::plugins::sagemaker::TrainingJobConfig* release_training_job_config();
-  ::flyteidl::plugins::sagemaker::TrainingJobConfig* mutable_training_job_config();
-  void set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config);
+  const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& training_job_config() const;
+  ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* release_training_job_config();
+  ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* mutable_training_job_config();
+  void set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_config);
 
   // bool interruptible = 3;
   void clear_interruptible();
@@ -789,7 +1059,7 @@ class TrainingJob final :
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification_;
-  ::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config_;
+  ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_config_;
   bool interruptible_;
   mutable ::google::protobuf::internal::CachedSize _cached_size_;
   friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
@@ -803,6 +1073,14 @@ class TrainingJob final :
   #pragma GCC diagnostic push
   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
 #endif  // __GNUC__
+// InputMode
+
+// -------------------------------------------------------------------
+
+// AlgorithmName
+
+// -------------------------------------------------------------------
+
 // AlgorithmSpecification_MetricDefinition
 
 // string name = 1;
@@ -915,29 +1193,29 @@ inline void AlgorithmSpecification_MetricDefinition::set_allocated_regex(::std::
 
 // AlgorithmSpecification
 
-// .flyteidl.plugins.sagemaker.InputMode input_mode = 1;
+// .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1;
 inline void AlgorithmSpecification::clear_input_mode() {
   input_mode_ = 0;
 }
-inline ::flyteidl::plugins::sagemaker::InputMode AlgorithmSpecification::input_mode() const {
+inline ::flyteidl::plugins::sagemaker::InputMode_Value AlgorithmSpecification::input_mode() const {
   // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode)
-  return static_cast< ::flyteidl::plugins::sagemaker::InputMode >(input_mode_);
+  return static_cast< ::flyteidl::plugins::sagemaker::InputMode_Value >(input_mode_);
 }
-inline void AlgorithmSpecification::set_input_mode(::flyteidl::plugins::sagemaker::InputMode value) {
+inline void AlgorithmSpecification::set_input_mode(::flyteidl::plugins::sagemaker::InputMode_Value value) {
   
   input_mode_ = value;
   // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode)
 }
 
-// .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2;
+// .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2;
 inline void AlgorithmSpecification::clear_algorithm_name() {
   algorithm_name_ = 0;
 }
-inline ::flyteidl::plugins::sagemaker::AlgorithmName AlgorithmSpecification::algorithm_name() const {
+inline ::flyteidl::plugins::sagemaker::AlgorithmName_Value AlgorithmSpecification::algorithm_name() const {
   // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name)
-  return static_cast< ::flyteidl::plugins::sagemaker::AlgorithmName >(algorithm_name_);
+  return static_cast< ::flyteidl::plugins::sagemaker::AlgorithmName_Value >(algorithm_name_);
 }
-inline void AlgorithmSpecification::set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName value) {
+inline void AlgorithmSpecification::set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName_Value value) {
   
   algorithm_name_ = value;
   // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name)
@@ -1028,87 +1306,87 @@ AlgorithmSpecification::metric_definitions() const {
 
 // -------------------------------------------------------------------
 
-// TrainingJobConfig
+// TrainingJobResourceConfig
 
 // int64 instance_count = 1;
-inline void TrainingJobConfig::clear_instance_count() {
+inline void TrainingJobResourceConfig::clear_instance_count() {
   instance_count_ = PROTOBUF_LONGLONG(0);
 }
-inline ::google::protobuf::int64 TrainingJobConfig::instance_count() const {
-  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count)
+inline ::google::protobuf::int64 TrainingJobResourceConfig::instance_count() const {
+  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_count)
   return instance_count_;
 }
-inline void TrainingJobConfig::set_instance_count(::google::protobuf::int64 value) {
+inline void TrainingJobResourceConfig::set_instance_count(::google::protobuf::int64 value) {
   
   instance_count_ = value;
-  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count)
+  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_count)
 }
 
 // string instance_type = 2;
-inline void TrainingJobConfig::clear_instance_type() {
+inline void TrainingJobResourceConfig::clear_instance_type() {
   instance_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
-inline const ::std::string& TrainingJobConfig::instance_type() const {
-  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type)
+inline const ::std::string& TrainingJobResourceConfig::instance_type() const {
+  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type)
   return instance_type_.GetNoArena();
 }
-inline void TrainingJobConfig::set_instance_type(const ::std::string& value) {
+inline void TrainingJobResourceConfig::set_instance_type(const ::std::string& value) {
   
   instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
-  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type)
+  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type)
 }
 #if LANG_CXX11
-inline void TrainingJobConfig::set_instance_type(::std::string&& value) {
+inline void TrainingJobResourceConfig::set_instance_type(::std::string&& value) {
   
   instance_type_.SetNoArena(
     &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
-  // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type)
+  // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type)
 }
 #endif
-inline void TrainingJobConfig::set_instance_type(const char* value) {
+inline void TrainingJobResourceConfig::set_instance_type(const char* value) {
   GOOGLE_DCHECK(value != nullptr);
   
   instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
-  // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type)
+  // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type)
 }
-inline void TrainingJobConfig::set_instance_type(const char* value, size_t size) {
+inline void TrainingJobResourceConfig::set_instance_type(const char* value, size_t size) {
   
   instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
       ::std::string(reinterpret_cast(value), size));
-  // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type)
+  // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type)
 }
-inline ::std::string* TrainingJobConfig::mutable_instance_type() {
+inline ::std::string* TrainingJobResourceConfig::mutable_instance_type() {
   
-  // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type)
+  // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type)
   return instance_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
-inline ::std::string* TrainingJobConfig::release_instance_type() {
-  // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type)
+inline ::std::string* TrainingJobResourceConfig::release_instance_type() {
+  // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type)
   
   return instance_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
-inline void TrainingJobConfig::set_allocated_instance_type(::std::string* instance_type) {
+inline void TrainingJobResourceConfig::set_allocated_instance_type(::std::string* instance_type) {
   if (instance_type != nullptr) {
     
   } else {
     
   }
   instance_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instance_type);
-  // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type)
+  // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type)
 }
 
 // int64 volume_size_in_gb = 3;
-inline void TrainingJobConfig::clear_volume_size_in_gb() {
+inline void TrainingJobResourceConfig::clear_volume_size_in_gb() {
   volume_size_in_gb_ = PROTOBUF_LONGLONG(0);
 }
-inline ::google::protobuf::int64 TrainingJobConfig::volume_size_in_gb() const {
-  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb)
+inline ::google::protobuf::int64 TrainingJobResourceConfig::volume_size_in_gb() const {
+  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.volume_size_in_gb)
   return volume_size_in_gb_;
 }
-inline void TrainingJobConfig::set_volume_size_in_gb(::google::protobuf::int64 value) {
+inline void TrainingJobResourceConfig::set_volume_size_in_gb(::google::protobuf::int64 value) {
   
   volume_size_in_gb_ = value;
-  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb)
+  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.volume_size_in_gb)
 }
 
 // -------------------------------------------------------------------
@@ -1198,7 +1476,7 @@ inline void TrainingJob::set_allocated_algorithm_specification(::flyteidl::plugi
   // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification)
 }
 
-// .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2;
+// .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
 inline bool TrainingJob::has_training_job_config() const {
   return this != internal_default_instance() && training_job_config_ != nullptr;
 }
@@ -1208,29 +1486,29 @@ inline void TrainingJob::clear_training_job_config() {
   }
   training_job_config_ = nullptr;
 }
-inline const ::flyteidl::plugins::sagemaker::TrainingJobConfig& TrainingJob::training_job_config() const {
-  const ::flyteidl::plugins::sagemaker::TrainingJobConfig* p = training_job_config_;
+inline const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& TrainingJob::training_job_config() const {
+  const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* p = training_job_config_;
   // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.training_job_config)
-  return p != nullptr ? *p : *reinterpret_cast(
-      &::flyteidl::plugins::sagemaker::_TrainingJobConfig_default_instance_);
+  return p != nullptr ? *p : *reinterpret_cast(
+      &::flyteidl::plugins::sagemaker::_TrainingJobResourceConfig_default_instance_);
 }
-inline ::flyteidl::plugins::sagemaker::TrainingJobConfig* TrainingJob::release_training_job_config() {
+inline ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* TrainingJob::release_training_job_config() {
   // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.training_job_config)
   
-  ::flyteidl::plugins::sagemaker::TrainingJobConfig* temp = training_job_config_;
+  ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* temp = training_job_config_;
   training_job_config_ = nullptr;
   return temp;
 }
-inline ::flyteidl::plugins::sagemaker::TrainingJobConfig* TrainingJob::mutable_training_job_config() {
+inline ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* TrainingJob::mutable_training_job_config() {
   
   if (training_job_config_ == nullptr) {
-    auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobConfig>(GetArenaNoVirtual());
+    auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobResourceConfig>(GetArenaNoVirtual());
     training_job_config_ = p;
   }
   // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.training_job_config)
   return training_job_config_;
 }
-inline void TrainingJob::set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobConfig* training_job_config) {
+inline void TrainingJob::set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_config) {
   ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
   if (message_arena == nullptr) {
     delete training_job_config_;
@@ -1274,6 +1552,10 @@ inline void TrainingJob::set_interruptible(bool value) {
 
 // -------------------------------------------------------------------
 
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
 
 // @@protoc_insertion_point(namespace_scope)
 
@@ -1284,15 +1566,15 @@ inline void TrainingJob::set_interruptible(bool value) {
 namespace google {
 namespace protobuf {
 
-template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::InputMode> : ::std::true_type {};
+template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::InputMode_Value> : ::std::true_type {};
 template <>
-inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::InputMode>() {
-  return ::flyteidl::plugins::sagemaker::InputMode_descriptor();
+inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::InputMode_Value>() {
+  return ::flyteidl::plugins::sagemaker::InputMode_Value_descriptor();
 }
-template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::AlgorithmName> : ::std::true_type {};
+template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::AlgorithmName_Value> : ::std::true_type {};
 template <>
-inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::AlgorithmName>() {
-  return ::flyteidl::plugins::sagemaker::AlgorithmName_descriptor();
+inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::AlgorithmName_Value>() {
+  return ::flyteidl::plugins::sagemaker::AlgorithmName_Value_descriptor();
 }
 
 }  // namespace protobuf
diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go
index 9ef499df6..de7f3d10a 100644
--- a/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go
+++ b/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go
@@ -20,92 +20,90 @@ var _ = math.Inf
 // proto package needs to be updated.
 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
 
-type HyperparameterTuningObjective_HyperparameterTuningObjectiveType int32
+type HyperparameterTuningObjectiveType_Value int32
 
 const (
-	HyperparameterTuningObjective_MINIMIZE HyperparameterTuningObjective_HyperparameterTuningObjectiveType = 0
-	HyperparameterTuningObjective_MAXIMIZE HyperparameterTuningObjective_HyperparameterTuningObjectiveType = 1
+	HyperparameterTuningObjectiveType_MINIMIZE HyperparameterTuningObjectiveType_Value = 0
+	HyperparameterTuningObjectiveType_MAXIMIZE HyperparameterTuningObjectiveType_Value = 1
 )
 
-var HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name = map[int32]string{
+var HyperparameterTuningObjectiveType_Value_name = map[int32]string{
 	0: "MINIMIZE",
 	1: "MAXIMIZE",
 }
 
-var HyperparameterTuningObjective_HyperparameterTuningObjectiveType_value = map[string]int32{
+var HyperparameterTuningObjectiveType_Value_value = map[string]int32{
 	"MINIMIZE": 0,
 	"MAXIMIZE": 1,
 }
 
-func (x HyperparameterTuningObjective_HyperparameterTuningObjectiveType) String() string {
-	return proto.EnumName(HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name, int32(x))
+func (x HyperparameterTuningObjectiveType_Value) String() string {
+	return proto.EnumName(HyperparameterTuningObjectiveType_Value_name, int32(x))
 }
 
-func (HyperparameterTuningObjective_HyperparameterTuningObjectiveType) EnumDescriptor() ([]byte, []int) {
+func (HyperparameterTuningObjectiveType_Value) EnumDescriptor() ([]byte, []int) {
 	return fileDescriptor_84374f4d1322c4ba, []int{1, 0}
 }
 
-type HyperparameterTuningSpecification_HyperparameterTuningStrategy int32
+type HyperparameterTuningStrategy_Value int32
 
 const (
-	HyperparameterTuningSpecification_BAYESIAN HyperparameterTuningSpecification_HyperparameterTuningStrategy = 0
-	HyperparameterTuningSpecification_RANDOM   HyperparameterTuningSpecification_HyperparameterTuningStrategy = 1
+	HyperparameterTuningStrategy_BAYESIAN HyperparameterTuningStrategy_Value = 0
+	HyperparameterTuningStrategy_RANDOM   HyperparameterTuningStrategy_Value = 1
 )
 
-var HyperparameterTuningSpecification_HyperparameterTuningStrategy_name = map[int32]string{
+var HyperparameterTuningStrategy_Value_name = map[int32]string{
 	0: "BAYESIAN",
 	1: "RANDOM",
 }
 
-var HyperparameterTuningSpecification_HyperparameterTuningStrategy_value = map[string]int32{
+var HyperparameterTuningStrategy_Value_value = map[string]int32{
 	"BAYESIAN": 0,
 	"RANDOM":   1,
 }
 
-func (x HyperparameterTuningSpecification_HyperparameterTuningStrategy) String() string {
-	return proto.EnumName(HyperparameterTuningSpecification_HyperparameterTuningStrategy_name, int32(x))
+func (x HyperparameterTuningStrategy_Value) String() string {
+	return proto.EnumName(HyperparameterTuningStrategy_Value_name, int32(x))
 }
 
-func (HyperparameterTuningSpecification_HyperparameterTuningStrategy) EnumDescriptor() ([]byte, []int) {
-	return fileDescriptor_84374f4d1322c4ba, []int{2, 0}
+func (HyperparameterTuningStrategy_Value) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_84374f4d1322c4ba, []int{3, 0}
 }
 
-// When the training jobs launched by the hyperparameter tuning job are not improving significantly,
-// a hyperparameter tuning job can be stopping early.
-// Note that there's only a subset of built-in algorithms that supports early stopping.
-// see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html
-type HyperparameterTuningSpecification_TrainingJobEarlyStoppingType int32
+type TrainingJobEarlyStoppingType_Value int32
 
 const (
-	HyperparameterTuningSpecification_OFF  HyperparameterTuningSpecification_TrainingJobEarlyStoppingType = 0
-	HyperparameterTuningSpecification_AUTO HyperparameterTuningSpecification_TrainingJobEarlyStoppingType = 1
+	TrainingJobEarlyStoppingType_OFF  TrainingJobEarlyStoppingType_Value = 0
+	TrainingJobEarlyStoppingType_AUTO TrainingJobEarlyStoppingType_Value = 1
 )
 
-var HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_name = map[int32]string{
+var TrainingJobEarlyStoppingType_Value_name = map[int32]string{
 	0: "OFF",
 	1: "AUTO",
 }
 
-var HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_value = map[string]int32{
+var TrainingJobEarlyStoppingType_Value_value = map[string]int32{
 	"OFF":  0,
 	"AUTO": 1,
 }
 
-func (x HyperparameterTuningSpecification_TrainingJobEarlyStoppingType) String() string {
-	return proto.EnumName(HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_name, int32(x))
+func (x TrainingJobEarlyStoppingType_Value) String() string {
+	return proto.EnumName(TrainingJobEarlyStoppingType_Value_name, int32(x))
 }
 
-func (HyperparameterTuningSpecification_TrainingJobEarlyStoppingType) EnumDescriptor() ([]byte, []int) {
-	return fileDescriptor_84374f4d1322c4ba, []int{2, 1}
+func (TrainingJobEarlyStoppingType_Value) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_84374f4d1322c4ba, []int{4, 0}
 }
 
-// The hyperparameter tuning job
+// A pass-through for SageMaker's hyperparameter tuning job
 type HyperparameterTuningJob struct {
 	// The underlying training job that the hyperparameter tuning job will launch during the process
 	TrainingJob *TrainingJob `protobuf:"bytes,1,opt,name=training_job,json=trainingJob,proto3" json:"training_job,omitempty"`
 	// The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+	// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
 	MaxNumberOfTrainingJobs int64 `protobuf:"varint,2,opt,name=max_number_of_training_jobs,json=maxNumberOfTrainingJobs,proto3" json:"max_number_of_training_jobs,omitempty"`
 	// The maximum number of concurrent training job that an hpo job can launch
+	// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
 	MaxParallelTrainingJobs int64    `protobuf:"varint,3,opt,name=max_parallel_training_jobs,json=maxParallelTrainingJobs,proto3" json:"max_parallel_training_jobs,omitempty"`
 	XXX_NoUnkeyedLiteral    struct{} `json:"-"`
 	XXX_unrecognized        []byte   `json:"-"`
@@ -158,9 +156,40 @@ func (m *HyperparameterTuningJob) GetMaxParallelTrainingJobs() int64 {
 	return 0
 }
 
+type HyperparameterTuningObjectiveType struct {
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *HyperparameterTuningObjectiveType) Reset()         { *m = HyperparameterTuningObjectiveType{} }
+func (m *HyperparameterTuningObjectiveType) String() string { return proto.CompactTextString(m) }
+func (*HyperparameterTuningObjectiveType) ProtoMessage()    {}
+func (*HyperparameterTuningObjectiveType) Descriptor() ([]byte, []int) {
+	return fileDescriptor_84374f4d1322c4ba, []int{1}
+}
+
+func (m *HyperparameterTuningObjectiveType) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_HyperparameterTuningObjectiveType.Unmarshal(m, b)
+}
+func (m *HyperparameterTuningObjectiveType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_HyperparameterTuningObjectiveType.Marshal(b, m, deterministic)
+}
+func (m *HyperparameterTuningObjectiveType) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_HyperparameterTuningObjectiveType.Merge(m, src)
+}
+func (m *HyperparameterTuningObjectiveType) XXX_Size() int {
+	return xxx_messageInfo_HyperparameterTuningObjectiveType.Size(m)
+}
+func (m *HyperparameterTuningObjectiveType) XXX_DiscardUnknown() {
+	xxx_messageInfo_HyperparameterTuningObjectiveType.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_HyperparameterTuningObjectiveType proto.InternalMessageInfo
+
 // The objective of the hyperparameter tuning
 type HyperparameterTuningObjective struct {
-	ObjectiveType HyperparameterTuningObjective_HyperparameterTuningObjectiveType `protobuf:"varint,1,opt,name=objective_type,json=objectiveType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningObjective_HyperparameterTuningObjectiveType" json:"objective_type,omitempty"`
+	ObjectiveType HyperparameterTuningObjectiveType_Value `protobuf:"varint,1,opt,name=objective_type,json=objectiveType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType_Value" json:"objective_type,omitempty"`
 	// The target metric name, which is the user-defined name of the metric specified in the
 	// training job's algorithm specification
 	MetricName           string   `protobuf:"bytes,2,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"`
@@ -173,7 +202,7 @@ func (m *HyperparameterTuningObjective) Reset()         { *m = HyperparameterTun
 func (m *HyperparameterTuningObjective) String() string { return proto.CompactTextString(m) }
 func (*HyperparameterTuningObjective) ProtoMessage()    {}
 func (*HyperparameterTuningObjective) Descriptor() ([]byte, []int) {
-	return fileDescriptor_84374f4d1322c4ba, []int{1}
+	return fileDescriptor_84374f4d1322c4ba, []int{2}
 }
 
 func (m *HyperparameterTuningObjective) XXX_Unmarshal(b []byte) error {
@@ -194,11 +223,11 @@ func (m *HyperparameterTuningObjective) XXX_DiscardUnknown() {
 
 var xxx_messageInfo_HyperparameterTuningObjective proto.InternalMessageInfo
 
-func (m *HyperparameterTuningObjective) GetObjectiveType() HyperparameterTuningObjective_HyperparameterTuningObjectiveType {
+func (m *HyperparameterTuningObjective) GetObjectiveType() HyperparameterTuningObjectiveType_Value {
 	if m != nil {
 		return m.ObjectiveType
 	}
-	return HyperparameterTuningObjective_MINIMIZE
+	return HyperparameterTuningObjectiveType_MINIMIZE
 }
 
 func (m *HyperparameterTuningObjective) GetMetricName() string {
@@ -208,77 +237,147 @@ func (m *HyperparameterTuningObjective) GetMetricName() string {
 	return ""
 }
 
+type HyperparameterTuningStrategy struct {
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *HyperparameterTuningStrategy) Reset()         { *m = HyperparameterTuningStrategy{} }
+func (m *HyperparameterTuningStrategy) String() string { return proto.CompactTextString(m) }
+func (*HyperparameterTuningStrategy) ProtoMessage()    {}
+func (*HyperparameterTuningStrategy) Descriptor() ([]byte, []int) {
+	return fileDescriptor_84374f4d1322c4ba, []int{3}
+}
+
+func (m *HyperparameterTuningStrategy) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_HyperparameterTuningStrategy.Unmarshal(m, b)
+}
+func (m *HyperparameterTuningStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_HyperparameterTuningStrategy.Marshal(b, m, deterministic)
+}
+func (m *HyperparameterTuningStrategy) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_HyperparameterTuningStrategy.Merge(m, src)
+}
+func (m *HyperparameterTuningStrategy) XXX_Size() int {
+	return xxx_messageInfo_HyperparameterTuningStrategy.Size(m)
+}
+func (m *HyperparameterTuningStrategy) XXX_DiscardUnknown() {
+	xxx_messageInfo_HyperparameterTuningStrategy.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_HyperparameterTuningStrategy proto.InternalMessageInfo
+
+// When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+// a hyperparameter tuning job can be stopping early.
+// Note that there's only a subset of built-in algorithms that supports early stopping.
+// see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html
+type TrainingJobEarlyStoppingType struct {
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *TrainingJobEarlyStoppingType) Reset()         { *m = TrainingJobEarlyStoppingType{} }
+func (m *TrainingJobEarlyStoppingType) String() string { return proto.CompactTextString(m) }
+func (*TrainingJobEarlyStoppingType) ProtoMessage()    {}
+func (*TrainingJobEarlyStoppingType) Descriptor() ([]byte, []int) {
+	return fileDescriptor_84374f4d1322c4ba, []int{4}
+}
+
+func (m *TrainingJobEarlyStoppingType) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_TrainingJobEarlyStoppingType.Unmarshal(m, b)
+}
+func (m *TrainingJobEarlyStoppingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_TrainingJobEarlyStoppingType.Marshal(b, m, deterministic)
+}
+func (m *TrainingJobEarlyStoppingType) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_TrainingJobEarlyStoppingType.Merge(m, src)
+}
+func (m *TrainingJobEarlyStoppingType) XXX_Size() int {
+	return xxx_messageInfo_TrainingJobEarlyStoppingType.Size(m)
+}
+func (m *TrainingJobEarlyStoppingType) XXX_DiscardUnknown() {
+	xxx_messageInfo_TrainingJobEarlyStoppingType.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_TrainingJobEarlyStoppingType proto.InternalMessageInfo
+
 // The specification of the hyperparameter tuning process
-type HyperparameterTuningSpecification struct {
-	HyperparameterRanges         *ParameterRanges                                               `protobuf:"bytes,1,opt,name=hyperparameter_ranges,json=hyperparameterRanges,proto3" json:"hyperparameter_ranges,omitempty"`
-	TuningStrategy               HyperparameterTuningSpecification_HyperparameterTuningStrategy `protobuf:"varint,2,opt,name=tuning_strategy,json=tuningStrategy,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningSpecification_HyperparameterTuningStrategy" json:"tuning_strategy,omitempty"`
-	TuningObjective              *HyperparameterTuningObjective                                 `protobuf:"bytes,3,opt,name=tuning_objective,json=tuningObjective,proto3" json:"tuning_objective,omitempty"`
-	TrainingJobEarlyStoppingType HyperparameterTuningSpecification_TrainingJobEarlyStoppingType `protobuf:"varint,4,opt,name=training_job_early_stopping_type,json=trainingJobEarlyStoppingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningSpecification_TrainingJobEarlyStoppingType" json:"training_job_early_stopping_type,omitempty"`
-	XXX_NoUnkeyedLiteral         struct{}                                                       `json:"-"`
-	XXX_unrecognized             []byte                                                         `json:"-"`
-	XXX_sizecache                int32                                                          `json:"-"`
-}
-
-func (m *HyperparameterTuningSpecification) Reset()         { *m = HyperparameterTuningSpecification{} }
-func (m *HyperparameterTuningSpecification) String() string { return proto.CompactTextString(m) }
-func (*HyperparameterTuningSpecification) ProtoMessage()    {}
-func (*HyperparameterTuningSpecification) Descriptor() ([]byte, []int) {
-	return fileDescriptor_84374f4d1322c4ba, []int{2}
+// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning-job.html#automatic-model-tuning-ex-low-tuning-config
+type HyperparameterTuningJobConfig struct {
+	HyperparameterRanges         *ParameterRanges                   `protobuf:"bytes,1,opt,name=hyperparameter_ranges,json=hyperparameterRanges,proto3" json:"hyperparameter_ranges,omitempty"`
+	TuningStrategy               HyperparameterTuningStrategy_Value `protobuf:"varint,2,opt,name=tuning_strategy,json=tuningStrategy,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningStrategy_Value" json:"tuning_strategy,omitempty"`
+	TuningObjective              *HyperparameterTuningObjective     `protobuf:"bytes,3,opt,name=tuning_objective,json=tuningObjective,proto3" json:"tuning_objective,omitempty"`
+	TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType_Value `protobuf:"varint,4,opt,name=training_job_early_stopping_type,json=trainingJobEarlyStoppingType,proto3,enum=flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType_Value" json:"training_job_early_stopping_type,omitempty"`
+	XXX_NoUnkeyedLiteral         struct{}                           `json:"-"`
+	XXX_unrecognized             []byte                             `json:"-"`
+	XXX_sizecache                int32                              `json:"-"`
+}
+
+func (m *HyperparameterTuningJobConfig) Reset()         { *m = HyperparameterTuningJobConfig{} }
+func (m *HyperparameterTuningJobConfig) String() string { return proto.CompactTextString(m) }
+func (*HyperparameterTuningJobConfig) ProtoMessage()    {}
+func (*HyperparameterTuningJobConfig) Descriptor() ([]byte, []int) {
+	return fileDescriptor_84374f4d1322c4ba, []int{5}
 }
 
-func (m *HyperparameterTuningSpecification) XXX_Unmarshal(b []byte) error {
-	return xxx_messageInfo_HyperparameterTuningSpecification.Unmarshal(m, b)
+func (m *HyperparameterTuningJobConfig) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_HyperparameterTuningJobConfig.Unmarshal(m, b)
 }
-func (m *HyperparameterTuningSpecification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
-	return xxx_messageInfo_HyperparameterTuningSpecification.Marshal(b, m, deterministic)
+func (m *HyperparameterTuningJobConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_HyperparameterTuningJobConfig.Marshal(b, m, deterministic)
 }
-func (m *HyperparameterTuningSpecification) XXX_Merge(src proto.Message) {
-	xxx_messageInfo_HyperparameterTuningSpecification.Merge(m, src)
+func (m *HyperparameterTuningJobConfig) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_HyperparameterTuningJobConfig.Merge(m, src)
 }
-func (m *HyperparameterTuningSpecification) XXX_Size() int {
-	return xxx_messageInfo_HyperparameterTuningSpecification.Size(m)
+func (m *HyperparameterTuningJobConfig) XXX_Size() int {
+	return xxx_messageInfo_HyperparameterTuningJobConfig.Size(m)
 }
-func (m *HyperparameterTuningSpecification) XXX_DiscardUnknown() {
-	xxx_messageInfo_HyperparameterTuningSpecification.DiscardUnknown(m)
+func (m *HyperparameterTuningJobConfig) XXX_DiscardUnknown() {
+	xxx_messageInfo_HyperparameterTuningJobConfig.DiscardUnknown(m)
 }
 
-var xxx_messageInfo_HyperparameterTuningSpecification proto.InternalMessageInfo
+var xxx_messageInfo_HyperparameterTuningJobConfig proto.InternalMessageInfo
 
-func (m *HyperparameterTuningSpecification) GetHyperparameterRanges() *ParameterRanges {
+func (m *HyperparameterTuningJobConfig) GetHyperparameterRanges() *ParameterRanges {
 	if m != nil {
 		return m.HyperparameterRanges
 	}
 	return nil
 }
 
-func (m *HyperparameterTuningSpecification) GetTuningStrategy() HyperparameterTuningSpecification_HyperparameterTuningStrategy {
+func (m *HyperparameterTuningJobConfig) GetTuningStrategy() HyperparameterTuningStrategy_Value {
 	if m != nil {
 		return m.TuningStrategy
 	}
-	return HyperparameterTuningSpecification_BAYESIAN
+	return HyperparameterTuningStrategy_BAYESIAN
 }
 
-func (m *HyperparameterTuningSpecification) GetTuningObjective() *HyperparameterTuningObjective {
+func (m *HyperparameterTuningJobConfig) GetTuningObjective() *HyperparameterTuningObjective {
 	if m != nil {
 		return m.TuningObjective
 	}
 	return nil
 }
 
-func (m *HyperparameterTuningSpecification) GetTrainingJobEarlyStoppingType() HyperparameterTuningSpecification_TrainingJobEarlyStoppingType {
+func (m *HyperparameterTuningJobConfig) GetTrainingJobEarlyStoppingType() TrainingJobEarlyStoppingType_Value {
 	if m != nil {
 		return m.TrainingJobEarlyStoppingType
 	}
-	return HyperparameterTuningSpecification_OFF
+	return TrainingJobEarlyStoppingType_OFF
 }
 
 func init() {
-	proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningObjective_HyperparameterTuningObjectiveType", HyperparameterTuningObjective_HyperparameterTuningObjectiveType_name, HyperparameterTuningObjective_HyperparameterTuningObjectiveType_value)
-	proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningSpecification_HyperparameterTuningStrategy", HyperparameterTuningSpecification_HyperparameterTuningStrategy_name, HyperparameterTuningSpecification_HyperparameterTuningStrategy_value)
-	proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningSpecification_TrainingJobEarlyStoppingType", HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_name, HyperparameterTuningSpecification_TrainingJobEarlyStoppingType_value)
+	proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType_Value", HyperparameterTuningObjectiveType_Value_name, HyperparameterTuningObjectiveType_Value_value)
+	proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningStrategy_Value", HyperparameterTuningStrategy_Value_name, HyperparameterTuningStrategy_Value_value)
+	proto.RegisterEnum("flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType_Value", TrainingJobEarlyStoppingType_Value_name, TrainingJobEarlyStoppingType_Value_value)
 	proto.RegisterType((*HyperparameterTuningJob)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningJob")
+	proto.RegisterType((*HyperparameterTuningObjectiveType)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType")
 	proto.RegisterType((*HyperparameterTuningObjective)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningObjective")
-	proto.RegisterType((*HyperparameterTuningSpecification)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningSpecification")
+	proto.RegisterType((*HyperparameterTuningStrategy)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningStrategy")
+	proto.RegisterType((*TrainingJobEarlyStoppingType)(nil), "flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType")
+	proto.RegisterType((*HyperparameterTuningJobConfig)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig")
 }
 
 func init() {
@@ -286,40 +385,40 @@ func init() {
 }
 
 var fileDescriptor_84374f4d1322c4ba = []byte{
-	// 546 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xdd, 0x6e, 0xd3, 0x4c,
-	0x10, 0x8d, 0x9b, 0x7e, 0xfd, 0xca, 0xa4, 0x04, 0x6b, 0x05, 0x6a, 0x15, 0x82, 0x08, 0xbe, 0xa1,
-	0x12, 0xaa, 0xad, 0xa6, 0x42, 0xe2, 0x4f, 0x42, 0xa9, 0x48, 0x45, 0x22, 0x25, 0xa9, 0x9c, 0x20,
-	0x41, 0xb8, 0x30, 0xeb, 0x74, 0xe2, 0xba, 0xd8, 0xde, 0xd5, 0x7a, 0x83, 0xea, 0x5b, 0x2a, 0xf1,
-	0x20, 0x3c, 0x19, 0x8f, 0x82, 0xb2, 0x71, 0x12, 0x27, 0x0a, 0x46, 0x20, 0x2e, 0x67, 0x3d, 0xe7,
-	0xcc, 0x39, 0xb3, 0xc7, 0x0b, 0x2f, 0xc6, 0x41, 0x22, 0xd1, 0xbf, 0x08, 0x2c, 0x1e, 0x4c, 0x3c,
-	0x3f, 0x8a, 0xad, 0x98, 0x7a, 0x18, 0xd2, 0xcf, 0x28, 0xac, 0xcb, 0x84, 0xa3, 0xe0, 0x54, 0xd0,
-	0x10, 0x25, 0x0a, 0x47, 0x4e, 0x22, 0x3f, 0xf2, 0x9c, 0x2b, 0xe6, 0x9a, 0x5c, 0x30, 0xc9, 0x48,
-	0x65, 0x8e, 0x35, 0x53, 0xac, 0xb9, 0xc0, 0x56, 0x8e, 0x73, 0x78, 0x97, 0x94, 0x82, 0x46, 0x1e,
-	0xc6, 0x33, 0xba, 0xca, 0x51, 0x0e, 0x44, 0x0a, 0xea, 0xaf, 0x4e, 0x37, 0x7e, 0x68, 0xb0, 0xff,
-	0x76, 0x45, 0xe1, 0x40, 0x09, 0x6c, 0x33, 0x97, 0xb4, 0x61, 0x2f, 0x8b, 0x38, 0xd0, 0x6a, 0xda,
-	0x61, 0xa9, 0xfe, 0xd8, 0xfc, 0xb5, 0x60, 0x73, 0x90, 0xf6, 0xb7, 0x99, 0x6b, 0x97, 0xe4, 0xb2,
-	0x20, 0xaf, 0xe0, 0x7e, 0x48, 0xaf, 0x9d, 0x68, 0x12, 0xba, 0x28, 0x1c, 0x36, 0x76, 0xb2, 0xcc,
-	0xf1, 0xc1, 0x56, 0x4d, 0x3b, 0x2c, 0xda, 0xfb, 0x21, 0xbd, 0xee, 0xaa, 0x8e, 0xde, 0x38, 0xc3,
-	0x14, 0x93, 0x97, 0x50, 0x99, 0xa2, 0xa7, 0x1a, 0x83, 0x00, 0x83, 0x35, 0x70, 0x71, 0x01, 0x3e,
-	0x4f, 0x1b, 0xb2, 0x60, 0xe3, 0xdb, 0x16, 0x3c, 0xd8, 0x64, 0xb1, 0xe7, 0x5e, 0xe1, 0x48, 0xfa,
-	0x5f, 0x90, 0x7c, 0xd5, 0xa0, 0xcc, 0xe6, 0x95, 0x23, 0x13, 0x8e, 0xca, 0x6b, 0xb9, 0xfe, 0x31,
-	0xcf, 0x6b, 0x2e, 0x67, 0xfe, 0xd7, 0x41, 0xc2, 0xd1, 0xbe, 0xcd, 0xb2, 0x25, 0x79, 0x08, 0xa5,
-	0x10, 0xa5, 0xf0, 0x47, 0x4e, 0x44, 0x43, 0x54, 0x1b, 0xb9, 0x65, 0xc3, 0xec, 0xa8, 0x4b, 0x43,
-	0x34, 0x5e, 0xc3, 0xa3, 0xdf, 0x92, 0x92, 0x3d, 0xd8, 0xed, 0xb4, 0xba, 0xad, 0x4e, 0x6b, 0xd8,
-	0xd4, 0x0b, 0xaa, 0x6a, 0xbc, 0x9f, 0x55, 0x9a, 0x71, 0xf3, 0xdf, 0x66, 0x86, 0x3e, 0xc7, 0x91,
-	0x3f, 0xf6, 0x47, 0x54, 0xfa, 0x2c, 0x22, 0x9f, 0xe0, 0xde, 0x5a, 0x64, 0x67, 0xf9, 0x4a, 0xaf,
-	0xff, 0x49, 0xde, 0x4a, 0xce, 0xe7, 0x18, 0x5b, 0x41, 0xec, 0xbb, 0xab, 0x4c, 0xb3, 0x53, 0x72,
-	0xa3, 0xc1, 0x9d, 0xf4, 0x37, 0x88, 0xa5, 0xa0, 0x12, 0xbd, 0x44, 0xd9, 0x2d, 0xd7, 0x87, 0x7f,
-	0xba, 0xef, 0x15, 0xe9, 0x9b, 0x3b, 0xd2, 0x09, 0x76, 0x59, 0xae, 0xd4, 0xe4, 0x02, 0xf4, 0x54,
-	0xc4, 0xe2, 0x1e, 0x54, 0x92, 0x4a, 0xf5, 0xe7, 0x7f, 0x7d, 0xeb, 0x76, 0xea, 0x6b, 0x19, 0xad,
-	0xef, 0x1a, 0xd4, 0xb2, 0x69, 0x75, 0x90, 0x8a, 0x20, 0x71, 0x62, 0xc9, 0x38, 0x9f, 0x1e, 0xa9,
-	0xb0, 0x6d, 0xff, 0x0b, 0xf3, 0x99, 0xcc, 0x37, 0xa7, 0x33, 0xfa, 0xe9, 0x08, 0x95, 0xb5, 0xaa,
-	0xcc, 0xf9, 0x6a, 0x3c, 0x83, 0x6a, 0xde, 0xea, 0xa6, 0x31, 0x3a, 0x6d, 0x7c, 0x68, 0xf6, 0x5b,
-	0x8d, 0xae, 0x5e, 0x20, 0x00, 0x3b, 0x76, 0xa3, 0xfb, 0xa6, 0xd7, 0xd1, 0x35, 0xe3, 0x18, 0xaa,
-	0x79, 0x73, 0xc9, 0xff, 0x50, 0xec, 0x9d, 0x9d, 0xe9, 0x05, 0xb2, 0x0b, 0xdb, 0x8d, 0x77, 0x83,
-	0x9e, 0xae, 0x9d, 0x3e, 0x1d, 0x9e, 0x78, 0xbe, 0xbc, 0x9c, 0xb8, 0xe6, 0x88, 0x85, 0x56, 0x90,
-	0x8c, 0xa5, 0xb5, 0x78, 0xb2, 0x3c, 0x8c, 0x2c, 0xee, 0x1e, 0x79, 0xcc, 0x5a, 0x7f, 0xc5, 0xdc,
-	0x1d, 0xf5, 0x5e, 0x9d, 0xfc, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x92, 0x15, 0xdc, 0x87, 0x6b, 0x05,
-	0x00, 0x00,
+	// 554 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xc1, 0x6e, 0xd3, 0x40,
+	0x10, 0xad, 0x49, 0x29, 0x65, 0x52, 0x82, 0xb5, 0x02, 0xb5, 0x0a, 0x41, 0xa4, 0xe6, 0x40, 0x25,
+	0x54, 0x5b, 0xa4, 0xe2, 0x40, 0x41, 0x48, 0x6e, 0x49, 0xd5, 0x44, 0x4a, 0x52, 0x39, 0x01, 0x41,
+	0x2f, 0x66, 0x9d, 0x6e, 0xb6, 0x0e, 0xb6, 0xd7, 0x5a, 0x6f, 0x50, 0xfd, 0x03, 0x7c, 0x0d, 0x3f,
+	0xc4, 0x8d, 0x4f, 0x41, 0x59, 0x6f, 0x12, 0x27, 0x0a, 0xae, 0xe0, 0x38, 0xa3, 0x79, 0xcf, 0x6f,
+	0xde, 0x1b, 0x2f, 0x1c, 0x8f, 0x82, 0x54, 0x10, 0xff, 0x2a, 0xb0, 0xe2, 0x60, 0x42, 0xfd, 0x28,
+	0xb1, 0x12, 0x4c, 0x49, 0x88, 0xbf, 0x11, 0x6e, 0x5d, 0xa7, 0x31, 0xe1, 0x31, 0xe6, 0x38, 0x24,
+	0x82, 0x70, 0x57, 0x4c, 0x22, 0x3f, 0xa2, 0xee, 0x98, 0x79, 0x66, 0xcc, 0x99, 0x60, 0xa8, 0x3a,
+	0xc3, 0x9a, 0x0a, 0x6b, 0xce, 0xb1, 0xd5, 0x57, 0x05, 0xbc, 0x0b, 0x4a, 0x8e, 0x23, 0x4a, 0x92,
+	0x8c, 0xae, 0x7a, 0x58, 0x00, 0x11, 0x1c, 0xfb, 0xcb, 0x5f, 0x37, 0x7e, 0x6b, 0xb0, 0x7b, 0xbe,
+	0xa4, 0x70, 0x20, 0x05, 0xb6, 0x99, 0x87, 0xda, 0xb0, 0x93, 0x47, 0xec, 0x69, 0x75, 0xed, 0xa0,
+	0xdc, 0x78, 0x61, 0xfe, 0x5d, 0xb0, 0x39, 0x50, 0xf3, 0x6d, 0xe6, 0x39, 0x65, 0xb1, 0x28, 0xd0,
+	0x3b, 0x78, 0x12, 0xe2, 0x1b, 0x37, 0x9a, 0x84, 0x1e, 0xe1, 0x2e, 0x1b, 0xb9, 0x79, 0xe6, 0x64,
+	0xef, 0x4e, 0x5d, 0x3b, 0x28, 0x39, 0xbb, 0x21, 0xbe, 0xe9, 0xca, 0x89, 0xde, 0x28, 0xc7, 0x94,
+	0xa0, 0xb7, 0x50, 0x9d, 0xa2, 0xa7, 0x1a, 0x83, 0x80, 0x04, 0x2b, 0xe0, 0xd2, 0x1c, 0x7c, 0xa1,
+	0x06, 0xf2, 0x60, 0xe3, 0x1c, 0xf6, 0xd7, 0x6d, 0xd8, 0xf3, 0xc6, 0x64, 0x28, 0xfc, 0xef, 0x64,
+	0x90, 0xc6, 0xc4, 0x78, 0x0e, 0x77, 0x3f, 0xe1, 0x60, 0x42, 0xd0, 0x0e, 0x6c, 0x77, 0x5a, 0xdd,
+	0x56, 0xa7, 0x75, 0xd9, 0xd4, 0x37, 0x64, 0x65, 0x7f, 0xce, 0x2a, 0xcd, 0xf8, 0xa9, 0xc1, 0xd3,
+	0x42, 0x2a, 0x34, 0x86, 0x0a, 0x9b, 0x15, 0xae, 0x48, 0x63, 0x22, 0x4d, 0xab, 0x34, 0x4e, 0x8b,
+	0x4c, 0xbb, 0x55, 0x9d, 0x29, 0xa5, 0x39, 0x0f, 0x58, 0xbe, 0x89, 0x9e, 0x41, 0x39, 0x24, 0x82,
+	0xfb, 0x43, 0x37, 0xc2, 0x21, 0x91, 0x16, 0xde, 0x77, 0x20, 0x6b, 0x75, 0x71, 0x48, 0x0c, 0x1b,
+	0x6a, 0xeb, 0xa8, 0xfb, 0x82, 0x63, 0x41, 0x68, 0x6a, 0xec, 0xe7, 0x76, 0x3e, 0xb1, 0xbf, 0x34,
+	0xfb, 0x2d, 0xbb, 0xab, 0x6f, 0x20, 0x80, 0x2d, 0xc7, 0xee, 0x7e, 0xe8, 0x75, 0x74, 0xcd, 0x38,
+	0x86, 0x5a, 0xce, 0xcb, 0x26, 0xe6, 0x41, 0xda, 0x17, 0x2c, 0x8e, 0xfd, 0x88, 0x4a, 0xdb, 0xaa,
+	0x33, 0x8a, 0x7b, 0x50, 0xea, 0x9d, 0x9d, 0xe9, 0x1b, 0x68, 0x1b, 0x36, 0xed, 0x8f, 0x83, 0x9e,
+	0xae, 0x19, 0xbf, 0x4a, 0xeb, 0xdd, 0x6a, 0x33, 0xef, 0x94, 0x45, 0x23, 0x9f, 0xa2, 0xaf, 0xf0,
+	0x78, 0xe5, 0xef, 0xc8, 0x4e, 0x59, 0x5d, 0xda, 0xcb, 0x22, 0xd3, 0x2e, 0x66, 0x18, 0x47, 0x42,
+	0x9c, 0x47, 0xcb, 0x4c, 0x59, 0x17, 0x51, 0x78, 0xa8, 0x7e, 0xb8, 0x44, 0x6d, 0x2d, 0x7d, 0xaa,
+	0x34, 0xde, 0xff, 0x6b, 0x20, 0x33, 0xd7, 0x54, 0x16, 0x15, 0xb1, 0xd4, 0x45, 0x57, 0xa0, 0xab,
+	0x0f, 0xcd, 0x43, 0x92, 0x77, 0x59, 0x6e, 0xbc, 0xf9, 0xef, 0xe8, 0x1d, 0xa5, 0x7d, 0x71, 0x5e,
+	0x3f, 0x34, 0xa8, 0xe7, 0x6f, 0xdf, 0x25, 0xd3, 0x44, 0xdc, 0x44, 0x45, 0x92, 0x5d, 0xdc, 0xe6,
+	0xed, 0x0b, 0x16, 0x65, 0xaa, 0x16, 0xac, 0x89, 0x82, 0x99, 0x93, 0xd7, 0x97, 0x47, 0xd4, 0x17,
+	0xd7, 0x13, 0xcf, 0x1c, 0xb2, 0xd0, 0x0a, 0xd2, 0x91, 0xb0, 0xe6, 0xef, 0x0e, 0x25, 0x91, 0x15,
+	0x7b, 0x87, 0x94, 0x59, 0xab, 0x4f, 0x91, 0xb7, 0x25, 0x1f, 0x9d, 0xa3, 0x3f, 0x01, 0x00, 0x00,
+	0xff, 0xff, 0x80, 0x43, 0xe0, 0x75, 0x30, 0x05, 0x00, 0x00,
 }
diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.validate.go
index 071cf8434..08e5ef6b0 100644
--- a/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.validate.go
+++ b/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.validate.go
@@ -117,6 +117,74 @@ var _ interface {
 	ErrorName() string
 } = HyperparameterTuningJobValidationError{}
 
+// Validate checks the field values on HyperparameterTuningObjectiveType with
+// the rules defined in the proto definition for this message. If any rules
+// are violated, an error is returned.
+func (m *HyperparameterTuningObjectiveType) Validate() error {
+	if m == nil {
+		return nil
+	}
+
+	return nil
+}
+
+// HyperparameterTuningObjectiveTypeValidationError is the validation error
+// returned by HyperparameterTuningObjectiveType.Validate if the designated
+// constraints aren't met.
+type HyperparameterTuningObjectiveTypeValidationError struct {
+	field  string
+	reason string
+	cause  error
+	key    bool
+}
+
+// Field function returns field value.
+func (e HyperparameterTuningObjectiveTypeValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e HyperparameterTuningObjectiveTypeValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e HyperparameterTuningObjectiveTypeValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e HyperparameterTuningObjectiveTypeValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e HyperparameterTuningObjectiveTypeValidationError) ErrorName() string {
+	return "HyperparameterTuningObjectiveTypeValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e HyperparameterTuningObjectiveTypeValidationError) Error() string {
+	cause := ""
+	if e.cause != nil {
+		cause = fmt.Sprintf(" | caused by: %v", e.cause)
+	}
+
+	key := ""
+	if e.key {
+		key = "key for "
+	}
+
+	return fmt.Sprintf(
+		"invalid %sHyperparameterTuningObjectiveType.%s: %s%s",
+		key,
+		e.field,
+		e.reason,
+		cause)
+}
+
+var _ error = HyperparameterTuningObjectiveTypeValidationError{}
+
+var _ interface {
+	Field() string
+	Reason() string
+	Key() bool
+	Cause() error
+	ErrorName() string
+} = HyperparameterTuningObjectiveTypeValidationError{}
+
 // Validate checks the field values on HyperparameterTuningObjective with the
 // rules defined in the proto definition for this message. If any rules are
 // violated, an error is returned.
@@ -189,17 +257,153 @@ var _ interface {
 	ErrorName() string
 } = HyperparameterTuningObjectiveValidationError{}
 
-// Validate checks the field values on HyperparameterTuningSpecification with
-// the rules defined in the proto definition for this message. If any rules
-// are violated, an error is returned.
-func (m *HyperparameterTuningSpecification) Validate() error {
+// Validate checks the field values on HyperparameterTuningStrategy with the
+// rules defined in the proto definition for this message. If any rules are
+// violated, an error is returned.
+func (m *HyperparameterTuningStrategy) Validate() error {
+	if m == nil {
+		return nil
+	}
+
+	return nil
+}
+
+// HyperparameterTuningStrategyValidationError is the validation error returned
+// by HyperparameterTuningStrategy.Validate if the designated constraints
+// aren't met.
+type HyperparameterTuningStrategyValidationError struct {
+	field  string
+	reason string
+	cause  error
+	key    bool
+}
+
+// Field function returns field value.
+func (e HyperparameterTuningStrategyValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e HyperparameterTuningStrategyValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e HyperparameterTuningStrategyValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e HyperparameterTuningStrategyValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e HyperparameterTuningStrategyValidationError) ErrorName() string {
+	return "HyperparameterTuningStrategyValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e HyperparameterTuningStrategyValidationError) Error() string {
+	cause := ""
+	if e.cause != nil {
+		cause = fmt.Sprintf(" | caused by: %v", e.cause)
+	}
+
+	key := ""
+	if e.key {
+		key = "key for "
+	}
+
+	return fmt.Sprintf(
+		"invalid %sHyperparameterTuningStrategy.%s: %s%s",
+		key,
+		e.field,
+		e.reason,
+		cause)
+}
+
+var _ error = HyperparameterTuningStrategyValidationError{}
+
+var _ interface {
+	Field() string
+	Reason() string
+	Key() bool
+	Cause() error
+	ErrorName() string
+} = HyperparameterTuningStrategyValidationError{}
+
+// Validate checks the field values on TrainingJobEarlyStoppingType with the
+// rules defined in the proto definition for this message. If any rules are
+// violated, an error is returned.
+func (m *TrainingJobEarlyStoppingType) Validate() error {
+	if m == nil {
+		return nil
+	}
+
+	return nil
+}
+
+// TrainingJobEarlyStoppingTypeValidationError is the validation error returned
+// by TrainingJobEarlyStoppingType.Validate if the designated constraints
+// aren't met.
+type TrainingJobEarlyStoppingTypeValidationError struct {
+	field  string
+	reason string
+	cause  error
+	key    bool
+}
+
+// Field function returns field value.
+func (e TrainingJobEarlyStoppingTypeValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e TrainingJobEarlyStoppingTypeValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e TrainingJobEarlyStoppingTypeValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e TrainingJobEarlyStoppingTypeValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e TrainingJobEarlyStoppingTypeValidationError) ErrorName() string {
+	return "TrainingJobEarlyStoppingTypeValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e TrainingJobEarlyStoppingTypeValidationError) Error() string {
+	cause := ""
+	if e.cause != nil {
+		cause = fmt.Sprintf(" | caused by: %v", e.cause)
+	}
+
+	key := ""
+	if e.key {
+		key = "key for "
+	}
+
+	return fmt.Sprintf(
+		"invalid %sTrainingJobEarlyStoppingType.%s: %s%s",
+		key,
+		e.field,
+		e.reason,
+		cause)
+}
+
+var _ error = TrainingJobEarlyStoppingTypeValidationError{}
+
+var _ interface {
+	Field() string
+	Reason() string
+	Key() bool
+	Cause() error
+	ErrorName() string
+} = TrainingJobEarlyStoppingTypeValidationError{}
+
+// Validate checks the field values on HyperparameterTuningJobConfig with the
+// rules defined in the proto definition for this message. If any rules are
+// violated, an error is returned.
+func (m *HyperparameterTuningJobConfig) Validate() error {
 	if m == nil {
 		return nil
 	}
 
 	if v, ok := interface{}(m.GetHyperparameterRanges()).(interface{ Validate() error }); ok {
 		if err := v.Validate(); err != nil {
-			return HyperparameterTuningSpecificationValidationError{
+			return HyperparameterTuningJobConfigValidationError{
 				field:  "HyperparameterRanges",
 				reason: "embedded message failed validation",
 				cause:  err,
@@ -211,7 +415,7 @@ func (m *HyperparameterTuningSpecification) Validate() error {
 
 	if v, ok := interface{}(m.GetTuningObjective()).(interface{ Validate() error }); ok {
 		if err := v.Validate(); err != nil {
-			return HyperparameterTuningSpecificationValidationError{
+			return HyperparameterTuningJobConfigValidationError{
 				field:  "TuningObjective",
 				reason: "embedded message failed validation",
 				cause:  err,
@@ -224,10 +428,10 @@ func (m *HyperparameterTuningSpecification) Validate() error {
 	return nil
 }
 
-// HyperparameterTuningSpecificationValidationError is the validation error
-// returned by HyperparameterTuningSpecification.Validate if the designated
+// HyperparameterTuningJobConfigValidationError is the validation error
+// returned by HyperparameterTuningJobConfig.Validate if the designated
 // constraints aren't met.
-type HyperparameterTuningSpecificationValidationError struct {
+type HyperparameterTuningJobConfigValidationError struct {
 	field  string
 	reason string
 	cause  error
@@ -235,24 +439,24 @@ type HyperparameterTuningSpecificationValidationError struct {
 }
 
 // Field function returns field value.
-func (e HyperparameterTuningSpecificationValidationError) Field() string { return e.field }
+func (e HyperparameterTuningJobConfigValidationError) Field() string { return e.field }
 
 // Reason function returns reason value.
-func (e HyperparameterTuningSpecificationValidationError) Reason() string { return e.reason }
+func (e HyperparameterTuningJobConfigValidationError) Reason() string { return e.reason }
 
 // Cause function returns cause value.
-func (e HyperparameterTuningSpecificationValidationError) Cause() error { return e.cause }
+func (e HyperparameterTuningJobConfigValidationError) Cause() error { return e.cause }
 
 // Key function returns key value.
-func (e HyperparameterTuningSpecificationValidationError) Key() bool { return e.key }
+func (e HyperparameterTuningJobConfigValidationError) Key() bool { return e.key }
 
 // ErrorName returns error name.
-func (e HyperparameterTuningSpecificationValidationError) ErrorName() string {
-	return "HyperparameterTuningSpecificationValidationError"
+func (e HyperparameterTuningJobConfigValidationError) ErrorName() string {
+	return "HyperparameterTuningJobConfigValidationError"
 }
 
 // Error satisfies the builtin error interface
-func (e HyperparameterTuningSpecificationValidationError) Error() string {
+func (e HyperparameterTuningJobConfigValidationError) Error() string {
 	cause := ""
 	if e.cause != nil {
 		cause = fmt.Sprintf(" | caused by: %v", e.cause)
@@ -264,14 +468,14 @@ func (e HyperparameterTuningSpecificationValidationError) Error() string {
 	}
 
 	return fmt.Sprintf(
-		"invalid %sHyperparameterTuningSpecification.%s: %s%s",
+		"invalid %sHyperparameterTuningJobConfig.%s: %s%s",
 		key,
 		e.field,
 		e.reason,
 		cause)
 }
 
-var _ error = HyperparameterTuningSpecificationValidationError{}
+var _ error = HyperparameterTuningJobConfigValidationError{}
 
 var _ interface {
 	Field() string
@@ -279,4 +483,4 @@ var _ interface {
 	Key() bool
 	Cause() error
 	ErrorName() string
-} = HyperparameterTuningSpecificationValidationError{}
+} = HyperparameterTuningJobConfigValidationError{}
diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go
index d620fbf59..1975c31b0 100644
--- a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go
+++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go
@@ -20,55 +20,87 @@ var _ = math.Inf
 // proto package needs to be updated.
 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
 
-// HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter
-// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
-type HyperparameterScalingType int32
+type HyperparameterScalingType_Value int32
 
 const (
-	HyperparameterScalingType_AUTO               HyperparameterScalingType = 0
-	HyperparameterScalingType_LINEAR             HyperparameterScalingType = 1
-	HyperparameterScalingType_LOGARITHMIC        HyperparameterScalingType = 2
-	HyperparameterScalingType_REVERSELOGARITHMIC HyperparameterScalingType = 3
+	HyperparameterScalingType_AUTO               HyperparameterScalingType_Value = 0
+	HyperparameterScalingType_LINEAR             HyperparameterScalingType_Value = 1
+	HyperparameterScalingType_LOGARITHMIC        HyperparameterScalingType_Value = 2
+	HyperparameterScalingType_REVERSELOGARITHMIC HyperparameterScalingType_Value = 3
 )
 
-var HyperparameterScalingType_name = map[int32]string{
+var HyperparameterScalingType_Value_name = map[int32]string{
 	0: "AUTO",
 	1: "LINEAR",
 	2: "LOGARITHMIC",
 	3: "REVERSELOGARITHMIC",
 }
 
-var HyperparameterScalingType_value = map[string]int32{
+var HyperparameterScalingType_Value_value = map[string]int32{
 	"AUTO":               0,
 	"LINEAR":             1,
 	"LOGARITHMIC":        2,
 	"REVERSELOGARITHMIC": 3,
 }
 
-func (x HyperparameterScalingType) String() string {
-	return proto.EnumName(HyperparameterScalingType_name, int32(x))
+func (x HyperparameterScalingType_Value) String() string {
+	return proto.EnumName(HyperparameterScalingType_Value_name, int32(x))
 }
 
-func (HyperparameterScalingType) EnumDescriptor() ([]byte, []int) {
+func (HyperparameterScalingType_Value) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_5f31fcc87eba0a70, []int{0, 0}
+}
+
+// HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter
+// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+type HyperparameterScalingType struct {
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *HyperparameterScalingType) Reset()         { *m = HyperparameterScalingType{} }
+func (m *HyperparameterScalingType) String() string { return proto.CompactTextString(m) }
+func (*HyperparameterScalingType) ProtoMessage()    {}
+func (*HyperparameterScalingType) Descriptor() ([]byte, []int) {
 	return fileDescriptor_5f31fcc87eba0a70, []int{0}
 }
 
+func (m *HyperparameterScalingType) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_HyperparameterScalingType.Unmarshal(m, b)
+}
+func (m *HyperparameterScalingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_HyperparameterScalingType.Marshal(b, m, deterministic)
+}
+func (m *HyperparameterScalingType) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_HyperparameterScalingType.Merge(m, src)
+}
+func (m *HyperparameterScalingType) XXX_Size() int {
+	return xxx_messageInfo_HyperparameterScalingType.Size(m)
+}
+func (m *HyperparameterScalingType) XXX_DiscardUnknown() {
+	xxx_messageInfo_HyperparameterScalingType.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_HyperparameterScalingType proto.InternalMessageInfo
+
 // ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
 // users to specify the search space of a floating-point hyperparameter
+// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
 type ContinuousParameterRange struct {
-	MaxValue             float64                   `protobuf:"fixed64,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
-	MinValue             float64                   `protobuf:"fixed64,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
-	ScalingType          HyperparameterScalingType `protobuf:"varint,3,opt,name=scaling_type,json=scalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"scaling_type,omitempty"`
-	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
-	XXX_unrecognized     []byte                    `json:"-"`
-	XXX_sizecache        int32                     `json:"-"`
+	MaxValue             float64                         `protobuf:"fixed64,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
+	MinValue             float64                         `protobuf:"fixed64,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
+	ScalingType          HyperparameterScalingType_Value `protobuf:"varint,3,opt,name=scaling_type,json=scalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType_Value" json:"scaling_type,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
+	XXX_unrecognized     []byte                          `json:"-"`
+	XXX_sizecache        int32                           `json:"-"`
 }
 
 func (m *ContinuousParameterRange) Reset()         { *m = ContinuousParameterRange{} }
 func (m *ContinuousParameterRange) String() string { return proto.CompactTextString(m) }
 func (*ContinuousParameterRange) ProtoMessage()    {}
 func (*ContinuousParameterRange) Descriptor() ([]byte, []int) {
-	return fileDescriptor_5f31fcc87eba0a70, []int{0}
+	return fileDescriptor_5f31fcc87eba0a70, []int{1}
 }
 
 func (m *ContinuousParameterRange) XXX_Unmarshal(b []byte) error {
@@ -103,7 +135,7 @@ func (m *ContinuousParameterRange) GetMinValue() float64 {
 	return 0
 }
 
-func (m *ContinuousParameterRange) GetScalingType() HyperparameterScalingType {
+func (m *ContinuousParameterRange) GetScalingType() HyperparameterScalingType_Value {
 	if m != nil {
 		return m.ScalingType
 	}
@@ -112,20 +144,21 @@ func (m *ContinuousParameterRange) GetScalingType() HyperparameterScalingType {
 
 // IntegerParameterRange refers to a discrete range of hyperparameter values, allowing
 // users to specify the search space of an integer hyperparameter
+// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
 type IntegerParameterRange struct {
-	MaxValue             int64                     `protobuf:"varint,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
-	MinValue             int64                     `protobuf:"varint,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
-	ScalingType          HyperparameterScalingType `protobuf:"varint,3,opt,name=scaling_type,json=scalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType" json:"scaling_type,omitempty"`
-	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
-	XXX_unrecognized     []byte                    `json:"-"`
-	XXX_sizecache        int32                     `json:"-"`
+	MaxValue             int64                           `protobuf:"varint,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
+	MinValue             int64                           `protobuf:"varint,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
+	ScalingType          HyperparameterScalingType_Value `protobuf:"varint,3,opt,name=scaling_type,json=scalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType_Value" json:"scaling_type,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
+	XXX_unrecognized     []byte                          `json:"-"`
+	XXX_sizecache        int32                           `json:"-"`
 }
 
 func (m *IntegerParameterRange) Reset()         { *m = IntegerParameterRange{} }
 func (m *IntegerParameterRange) String() string { return proto.CompactTextString(m) }
 func (*IntegerParameterRange) ProtoMessage()    {}
 func (*IntegerParameterRange) Descriptor() ([]byte, []int) {
-	return fileDescriptor_5f31fcc87eba0a70, []int{1}
+	return fileDescriptor_5f31fcc87eba0a70, []int{2}
 }
 
 func (m *IntegerParameterRange) XXX_Unmarshal(b []byte) error {
@@ -160,7 +193,7 @@ func (m *IntegerParameterRange) GetMinValue() int64 {
 	return 0
 }
 
-func (m *IntegerParameterRange) GetScalingType() HyperparameterScalingType {
+func (m *IntegerParameterRange) GetScalingType() HyperparameterScalingType_Value {
 	if m != nil {
 		return m.ScalingType
 	}
@@ -169,6 +202,7 @@ func (m *IntegerParameterRange) GetScalingType() HyperparameterScalingType {
 
 // ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
 // users to specify the search space of a floating-point hyperparameter
+// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
 type CategoricalParameterRange struct {
 	Values               []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
@@ -180,7 +214,7 @@ func (m *CategoricalParameterRange) Reset()         { *m = CategoricalParameterR
 func (m *CategoricalParameterRange) String() string { return proto.CompactTextString(m) }
 func (*CategoricalParameterRange) ProtoMessage()    {}
 func (*CategoricalParameterRange) Descriptor() ([]byte, []int) {
-	return fileDescriptor_5f31fcc87eba0a70, []int{2}
+	return fileDescriptor_5f31fcc87eba0a70, []int{3}
 }
 
 func (m *CategoricalParameterRange) XXX_Unmarshal(b []byte) error {
@@ -223,7 +257,7 @@ func (m *ParameterRangeOneOf) Reset()         { *m = ParameterRangeOneOf{} }
 func (m *ParameterRangeOneOf) String() string { return proto.CompactTextString(m) }
 func (*ParameterRangeOneOf) ProtoMessage()    {}
 func (*ParameterRangeOneOf) Descriptor() ([]byte, []int) {
-	return fileDescriptor_5f31fcc87eba0a70, []int{3}
+	return fileDescriptor_5f31fcc87eba0a70, []int{4}
 }
 
 func (m *ParameterRangeOneOf) XXX_Unmarshal(b []byte) error {
@@ -304,6 +338,7 @@ func (*ParameterRangeOneOf) XXX_OneofWrappers() []interface{} {
 }
 
 // ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
 type ParameterRanges struct {
 	ParameterRangeMap    map[string]*ParameterRangeOneOf `protobuf:"bytes,1,rep,name=parameter_range_map,json=parameterRangeMap,proto3" json:"parameter_range_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
 	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
@@ -315,7 +350,7 @@ func (m *ParameterRanges) Reset()         { *m = ParameterRanges{} }
 func (m *ParameterRanges) String() string { return proto.CompactTextString(m) }
 func (*ParameterRanges) ProtoMessage()    {}
 func (*ParameterRanges) Descriptor() ([]byte, []int) {
-	return fileDescriptor_5f31fcc87eba0a70, []int{4}
+	return fileDescriptor_5f31fcc87eba0a70, []int{5}
 }
 
 func (m *ParameterRanges) XXX_Unmarshal(b []byte) error {
@@ -344,7 +379,8 @@ func (m *ParameterRanges) GetParameterRangeMap() map[string]*ParameterRangeOneOf
 }
 
 func init() {
-	proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterScalingType", HyperparameterScalingType_name, HyperparameterScalingType_value)
+	proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterScalingType_Value", HyperparameterScalingType_Value_name, HyperparameterScalingType_Value_value)
+	proto.RegisterType((*HyperparameterScalingType)(nil), "flyteidl.plugins.sagemaker.HyperparameterScalingType")
 	proto.RegisterType((*ContinuousParameterRange)(nil), "flyteidl.plugins.sagemaker.ContinuousParameterRange")
 	proto.RegisterType((*IntegerParameterRange)(nil), "flyteidl.plugins.sagemaker.IntegerParameterRange")
 	proto.RegisterType((*CategoricalParameterRange)(nil), "flyteidl.plugins.sagemaker.CategoricalParameterRange")
@@ -358,37 +394,37 @@ func init() {
 }
 
 var fileDescriptor_5f31fcc87eba0a70 = []byte{
-	// 502 bytes of a gzipped FileDescriptorProto
+	// 511 bytes of a gzipped FileDescriptorProto
 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0x41, 0x6f, 0x12, 0x41,
-	0x14, 0x66, 0x58, 0x6d, 0xca, 0xc3, 0x58, 0x9c, 0x5a, 0x04, 0x7a, 0x21, 0x9c, 0x88, 0x89, 0xbb,
-	0x29, 0xd8, 0xc4, 0x78, 0x03, 0xb2, 0x11, 0x92, 0x56, 0xcc, 0x14, 0x1b, 0xd3, 0x0b, 0x19, 0xd6,
-	0x61, 0x9d, 0xb0, 0x3b, 0x3b, 0x99, 0x9d, 0xd5, 0xee, 0x4f, 0xf0, 0xb7, 0x98, 0xf8, 0x0b, 0x3d,
-	0x18, 0x06, 0x0a, 0x76, 0xcb, 0xa2, 0x27, 0x6f, 0xf3, 0xe6, 0xbd, 0x6f, 0xbe, 0x6f, 0xde, 0xf7,
-	0xf2, 0xe0, 0x6c, 0x1e, 0xa4, 0x9a, 0xf1, 0xcf, 0x81, 0x23, 0x83, 0xc4, 0xe7, 0x22, 0x76, 0x62,
+	0x14, 0x66, 0x58, 0xdb, 0x94, 0x87, 0xb1, 0x38, 0xb5, 0x08, 0xf4, 0x42, 0x38, 0x71, 0x71, 0x37,
+	0x05, 0x9b, 0x18, 0x3d, 0x01, 0x59, 0x85, 0xa4, 0x15, 0x33, 0xc5, 0x1e, 0x3c, 0x48, 0x86, 0x75,
+	0x58, 0x27, 0xec, 0xce, 0x4e, 0x66, 0x67, 0xb5, 0xfb, 0x13, 0xfc, 0x39, 0x26, 0xfe, 0x3c, 0x0f,
+	0x86, 0x81, 0xd2, 0x76, 0xcb, 0xa2, 0x27, 0x6f, 0x33, 0xf3, 0xde, 0x9b, 0xef, 0x7b, 0xef, 0xfb,
+	0xf2, 0xe0, 0x74, 0x1e, 0xa4, 0x9a, 0xf1, 0x2f, 0x81, 0x23, 0x83, 0xc4, 0xe7, 0x22, 0x76, 0x62,
 	0xea, 0xb3, 0x90, 0x2e, 0x98, 0x72, 0x24, 0x55, 0x34, 0x64, 0x9a, 0xa9, 0xa9, 0xa2, 0xc2, 0x67,
-	0xb1, 0x2d, 0x55, 0xa4, 0x23, 0xdc, 0xb8, 0x83, 0xd8, 0x6b, 0x88, 0xbd, 0x81, 0xb4, 0x7e, 0x22,
-	0xa8, 0x0d, 0x22, 0xa1, 0xb9, 0x48, 0xa2, 0x24, 0xfe, 0x70, 0xf7, 0x00, 0x59, 0xe2, 0xf1, 0x29,
-	0x94, 0x42, 0x7a, 0x3b, 0xfd, 0x4a, 0x83, 0x84, 0xd5, 0x50, 0x13, 0xb5, 0x11, 0x39, 0x0c, 0xe9,
-	0xed, 0xf5, 0x32, 0x36, 0x49, 0x2e, 0xd6, 0xc9, 0xe2, 0x3a, 0xc9, 0xc5, 0x2a, 0xf9, 0x09, 0x9e,
-	0xc4, 0x1e, 0x0d, 0xb8, 0xf0, 0xa7, 0x3a, 0x95, 0xac, 0x66, 0x35, 0x51, 0xfb, 0x69, 0xe7, 0xdc,
-	0xce, 0x57, 0x62, 0x0f, 0x53, 0xc9, 0xd4, 0xe6, 0x07, 0x57, 0x2b, 0xf4, 0x24, 0x95, 0x8c, 0x94,
-	0xe3, 0x6d, 0xd0, 0xfa, 0x81, 0xe0, 0x64, 0x24, 0x34, 0xf3, 0x99, 0xfa, 0x9b, 0x5a, 0x6b, 0x9f,
-	0x5a, 0xeb, 0xbf, 0xa8, 0xed, 0x42, 0x7d, 0x40, 0x35, 0xf3, 0x23, 0xc5, 0x3d, 0x1a, 0x64, 0x04,
-	0x57, 0xe1, 0xc0, 0xe8, 0x89, 0x6b, 0xa8, 0x69, 0xb5, 0x4b, 0x64, 0x1d, 0xb5, 0xbe, 0x5b, 0x70,
-	0x7c, 0xbf, 0x74, 0x2c, 0xd8, 0x78, 0x8e, 0x35, 0x34, 0xbc, 0x8d, 0x55, 0xd3, 0x8c, 0xd9, 0xe6,
-	0xc7, 0xe5, 0xce, 0xeb, 0x7d, 0xa2, 0xf3, 0x8c, 0x1e, 0x16, 0x48, 0xcd, 0xcb, 0x1b, 0x82, 0x05,
-	0xbc, 0xe0, 0xab, 0x7e, 0x3f, 0xa0, 0x2c, 0x1a, 0xca, 0xb3, 0x7d, 0x94, 0x3b, 0xad, 0x1a, 0x16,
-	0xc8, 0x09, 0xdf, 0xe9, 0xe1, 0x37, 0x38, 0xf5, 0xb6, 0xfd, 0x7a, 0x40, 0x68, 0x19, 0xc2, 0xbd,
-	0xc6, 0xe4, 0xb6, 0x7b, 0x58, 0x20, 0x75, 0x2f, 0x2f, 0xd9, 0xaf, 0xc2, 0xf3, 0x0c, 0x99, 0x19,
-	0x85, 0xd6, 0x2f, 0x04, 0x47, 0xf7, 0x4b, 0x63, 0xac, 0xe0, 0x38, 0x5b, 0x1b, 0x52, 0x69, 0x4c,
-	0x2c, 0x77, 0xfa, 0xfb, 0xc4, 0x65, 0x5e, 0xca, 0xc4, 0x97, 0x54, 0xba, 0x42, 0xab, 0x94, 0x3c,
-	0x93, 0xd9, 0xfb, 0x46, 0x02, 0xd5, 0xdd, 0xc5, 0xb8, 0x02, 0xd6, 0x82, 0xa5, 0xc6, 0xfe, 0x12,
-	0x59, 0x1e, 0xb1, 0x0b, 0x8f, 0xb7, 0x73, 0x5e, 0xee, 0x38, 0xff, 0xae, 0xc8, 0xcc, 0x19, 0x59,
-	0xa1, 0xdf, 0x16, 0xdf, 0xa0, 0x97, 0x37, 0x50, 0xcf, 0x9d, 0x74, 0x7c, 0x08, 0x8f, 0x7a, 0x1f,
-	0x27, 0xe3, 0x4a, 0x01, 0x03, 0x1c, 0x5c, 0x8c, 0xde, 0xbb, 0x3d, 0x52, 0x41, 0xf8, 0x08, 0xca,
-	0x17, 0xe3, 0x77, 0x3d, 0x32, 0x9a, 0x0c, 0x2f, 0x47, 0x83, 0x4a, 0x11, 0x57, 0x01, 0x13, 0xf7,
-	0xda, 0x25, 0x57, 0xee, 0x9f, 0xf7, 0x56, 0xff, 0xfc, 0xa6, 0xeb, 0x73, 0xfd, 0x25, 0x99, 0xd9,
-	0x5e, 0x14, 0x3a, 0x41, 0x3a, 0xd7, 0xce, 0x66, 0xb7, 0xf9, 0x4c, 0x38, 0x72, 0xf6, 0xca, 0x8f,
-	0x9c, 0xec, 0xba, 0x9b, 0x1d, 0x98, 0xa5, 0xd6, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x12, 0xe0,
-	0xd5, 0x84, 0x09, 0x05, 0x00, 0x00,
+	0xb1, 0x2d, 0x55, 0xa4, 0x23, 0xdc, 0xb8, 0x29, 0xb1, 0xd7, 0x25, 0xf6, 0xa6, 0xa4, 0xe5, 0x41,
+	0x7d, 0x98, 0x4a, 0xa6, 0x36, 0xa5, 0x97, 0x1e, 0x0d, 0xb8, 0xf0, 0x27, 0xa9, 0x64, 0xad, 0xb7,
+	0xb0, 0x77, 0x45, 0x83, 0x84, 0xe1, 0x03, 0x78, 0xd4, 0xfb, 0x38, 0x19, 0x57, 0x0a, 0x18, 0x60,
+	0xff, 0x7c, 0xf4, 0xde, 0xed, 0x91, 0x0a, 0xc2, 0x87, 0x50, 0x3e, 0x1f, 0xbf, 0xeb, 0x91, 0xd1,
+	0x64, 0x78, 0x31, 0x1a, 0x54, 0x8a, 0xb8, 0x0a, 0x98, 0xb8, 0x57, 0x2e, 0xb9, 0x74, 0xef, 0xbe,
+	0x5b, 0xad, 0x5f, 0x08, 0x6a, 0x83, 0x48, 0x68, 0x2e, 0x92, 0x28, 0x89, 0x3f, 0xdc, 0x40, 0x91,
+	0x25, 0x49, 0x7c, 0x02, 0xa5, 0x90, 0x5e, 0x4f, 0xbf, 0x2d, 0x81, 0x6a, 0xa8, 0x89, 0xda, 0x88,
+	0x1c, 0x84, 0xf4, 0x7a, 0x05, 0xbc, 0x0c, 0x72, 0xb1, 0x0e, 0x16, 0xd7, 0x41, 0x2e, 0x56, 0xc1,
+	0xcf, 0xf0, 0x38, 0x5e, 0xb1, 0x9d, 0xea, 0x54, 0xb2, 0x9a, 0xd5, 0x44, 0xed, 0x27, 0x9d, 0x37,
+	0x76, 0x7e, 0xbb, 0x76, 0x6e, 0xaf, 0xb6, 0xf9, 0x92, 0x94, 0xe3, 0x3b, 0xed, 0xff, 0x44, 0x70,
+	0x3c, 0x12, 0x9a, 0xf9, 0x4c, 0xfd, 0x8d, 0xb3, 0xb5, 0x8b, 0xb3, 0xf5, 0x1f, 0x39, 0x77, 0xa1,
+	0x3e, 0xa0, 0x9a, 0xf9, 0x91, 0xe2, 0x1e, 0x0d, 0x32, 0xb4, 0xab, 0xb0, 0x6f, 0x58, 0xc5, 0x35,
+	0xd4, 0xb4, 0xda, 0x25, 0xb2, 0xbe, 0xb5, 0x7e, 0x58, 0x70, 0x74, 0x3f, 0x75, 0x2c, 0xd8, 0x78,
+	0x8e, 0x35, 0x34, 0xbc, 0x8d, 0x6c, 0xd3, 0x8c, 0xbb, 0x4c, 0xdf, 0xe5, 0xce, 0xcb, 0x5d, 0xd4,
+	0xf3, 0x44, 0x1f, 0x16, 0x48, 0xcd, 0xcb, 0x33, 0xc4, 0x02, 0x9e, 0xf3, 0xd5, 0xd4, 0x1f, 0x40,
+	0x16, 0x0d, 0xe4, 0xe9, 0x2e, 0xc8, 0xad, 0x82, 0x0d, 0x0b, 0xe4, 0x98, 0x6f, 0x55, 0xf2, 0x3b,
+	0x9c, 0x78, 0xb7, 0xf3, 0x7a, 0x00, 0x68, 0x19, 0xc0, 0xb3, 0x9d, 0x3d, 0xe6, 0x8d, 0x7b, 0x58,
+	0x20, 0x75, 0x2f, 0x2f, 0xd8, 0xaf, 0xc2, 0xb3, 0x0c, 0x98, 0x31, 0x44, 0xeb, 0x37, 0x82, 0xc3,
+	0xfb, 0xa9, 0x31, 0x56, 0x70, 0x94, 0xcd, 0x0d, 0xa9, 0x34, 0x22, 0x96, 0x3b, 0xfd, 0x5d, 0xe4,
+	0x32, 0x3f, 0x65, 0xee, 0x17, 0x54, 0xba, 0x42, 0xab, 0x94, 0x3c, 0x95, 0xd9, 0xf7, 0x46, 0x02,
+	0xd5, 0xed, 0xc9, 0xb8, 0x02, 0xd6, 0x82, 0xa5, 0x46, 0xfe, 0x12, 0x59, 0x1e, 0xb1, 0x0b, 0x7b,
+	0xb7, 0x6e, 0x2f, 0x77, 0x9c, 0x7f, 0x67, 0x64, 0x7c, 0x46, 0x56, 0xd5, 0xaf, 0x8b, 0xaf, 0x50,
+	0xff, 0xec, 0x53, 0xd7, 0xe7, 0xfa, 0x6b, 0x32, 0xb3, 0xbd, 0x28, 0x74, 0x82, 0x74, 0xae, 0x9d,
+	0xcd, 0xc2, 0xf3, 0x99, 0x70, 0xe4, 0xec, 0x85, 0x1f, 0x39, 0xd9, 0x1d, 0x38, 0xdb, 0x37, 0x9b,
+	0xae, 0xfb, 0x27, 0x00, 0x00, 0xff, 0xff, 0xdc, 0x29, 0x92, 0xb6, 0x1e, 0x05, 0x00, 0x00,
 }
diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go
index 89b7288a1..309486134 100644
--- a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go
+++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go
@@ -36,6 +36,73 @@ var (
 // define the regex for a UUID once up-front
 var _parameter_ranges_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
 
+// Validate checks the field values on HyperparameterScalingType with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, an error is returned.
+func (m *HyperparameterScalingType) Validate() error {
+	if m == nil {
+		return nil
+	}
+
+	return nil
+}
+
+// HyperparameterScalingTypeValidationError is the validation error returned by
+// HyperparameterScalingType.Validate if the designated constraints aren't met.
+type HyperparameterScalingTypeValidationError struct {
+	field  string
+	reason string
+	cause  error
+	key    bool
+}
+
+// Field function returns field value.
+func (e HyperparameterScalingTypeValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e HyperparameterScalingTypeValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e HyperparameterScalingTypeValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e HyperparameterScalingTypeValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e HyperparameterScalingTypeValidationError) ErrorName() string {
+	return "HyperparameterScalingTypeValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e HyperparameterScalingTypeValidationError) Error() string {
+	cause := ""
+	if e.cause != nil {
+		cause = fmt.Sprintf(" | caused by: %v", e.cause)
+	}
+
+	key := ""
+	if e.key {
+		key = "key for "
+	}
+
+	return fmt.Sprintf(
+		"invalid %sHyperparameterScalingType.%s: %s%s",
+		key,
+		e.field,
+		e.reason,
+		cause)
+}
+
+var _ error = HyperparameterScalingTypeValidationError{}
+
+var _ interface {
+	Field() string
+	Reason() string
+	Key() bool
+	Cause() error
+	ErrorName() string
+} = HyperparameterScalingTypeValidationError{}
+
 // Validate checks the field values on ContinuousParameterRange with the rules
 // defined in the proto definition for this message. If any rules are
 // violated, an error is returned.
diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go
index bf5b85937..90e2664c8 100644
--- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go
+++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go
@@ -20,62 +20,129 @@ var _ = math.Inf
 // proto package needs to be updated.
 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
 
-type InputMode int32
+type InputMode_Value int32
 
 const (
-	InputMode_FILE InputMode = 0
-	InputMode_PIPE InputMode = 1
+	InputMode_FILE InputMode_Value = 0
+	InputMode_PIPE InputMode_Value = 1
 )
 
-var InputMode_name = map[int32]string{
+var InputMode_Value_name = map[int32]string{
 	0: "FILE",
 	1: "PIPE",
 }
 
-var InputMode_value = map[string]int32{
+var InputMode_Value_value = map[string]int32{
 	"FILE": 0,
 	"PIPE": 1,
 }
 
-func (x InputMode) String() string {
-	return proto.EnumName(InputMode_name, int32(x))
+func (x InputMode_Value) String() string {
+	return proto.EnumName(InputMode_Value_name, int32(x))
 }
 
-func (InputMode) EnumDescriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{0}
+func (InputMode_Value) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_6a68f64d8fd9fe30, []int{0, 0}
 }
 
-type AlgorithmName int32
+type AlgorithmName_Value int32
 
 const (
-	AlgorithmName_CUSTOM  AlgorithmName = 0
-	AlgorithmName_XGBOOST AlgorithmName = 1
+	AlgorithmName_CUSTOM  AlgorithmName_Value = 0
+	AlgorithmName_XGBOOST AlgorithmName_Value = 1
 )
 
-var AlgorithmName_name = map[int32]string{
+var AlgorithmName_Value_name = map[int32]string{
 	0: "CUSTOM",
 	1: "XGBOOST",
 }
 
-var AlgorithmName_value = map[string]int32{
+var AlgorithmName_Value_value = map[string]int32{
 	"CUSTOM":  0,
 	"XGBOOST": 1,
 }
 
-func (x AlgorithmName) String() string {
-	return proto.EnumName(AlgorithmName_name, int32(x))
+func (x AlgorithmName_Value) String() string {
+	return proto.EnumName(AlgorithmName_Value_name, int32(x))
+}
+
+func (AlgorithmName_Value) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_6a68f64d8fd9fe30, []int{1, 0}
+}
+
+type InputMode struct {
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *InputMode) Reset()         { *m = InputMode{} }
+func (m *InputMode) String() string { return proto.CompactTextString(m) }
+func (*InputMode) ProtoMessage()    {}
+func (*InputMode) Descriptor() ([]byte, []int) {
+	return fileDescriptor_6a68f64d8fd9fe30, []int{0}
+}
+
+func (m *InputMode) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_InputMode.Unmarshal(m, b)
+}
+func (m *InputMode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_InputMode.Marshal(b, m, deterministic)
+}
+func (m *InputMode) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_InputMode.Merge(m, src)
+}
+func (m *InputMode) XXX_Size() int {
+	return xxx_messageInfo_InputMode.Size(m)
+}
+func (m *InputMode) XXX_DiscardUnknown() {
+	xxx_messageInfo_InputMode.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_InputMode proto.InternalMessageInfo
+
+type AlgorithmName struct {
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
 }
 
-func (AlgorithmName) EnumDescriptor() ([]byte, []int) {
+func (m *AlgorithmName) Reset()         { *m = AlgorithmName{} }
+func (m *AlgorithmName) String() string { return proto.CompactTextString(m) }
+func (*AlgorithmName) ProtoMessage()    {}
+func (*AlgorithmName) Descriptor() ([]byte, []int) {
 	return fileDescriptor_6a68f64d8fd9fe30, []int{1}
 }
 
+func (m *AlgorithmName) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_AlgorithmName.Unmarshal(m, b)
+}
+func (m *AlgorithmName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_AlgorithmName.Marshal(b, m, deterministic)
+}
+func (m *AlgorithmName) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_AlgorithmName.Merge(m, src)
+}
+func (m *AlgorithmName) XXX_Size() int {
+	return xxx_messageInfo_AlgorithmName.Size(m)
+}
+func (m *AlgorithmName) XXX_DiscardUnknown() {
+	xxx_messageInfo_AlgorithmName.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_AlgorithmName proto.InternalMessageInfo
+
+// Specifies the training algorithm to be used in the training job
+// This object is mostly a pass-through, with the exception that when users want to supply custom algorithms
+// they should set algorithm_name field to CUSTOM. In this case, the value of the algorithm_version field has no effect
+// For pass-through use cases: refer to this AWS official document for more details
+// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
 type AlgorithmSpecification struct {
 	// The input mode can be either PIPE or FILE
-	InputMode InputMode `protobuf:"varint,1,opt,name=input_mode,json=inputMode,proto3,enum=flyteidl.plugins.sagemaker.InputMode" json:"input_mode,omitempty"`
+	InputMode InputMode_Value `protobuf:"varint,1,opt,name=input_mode,json=inputMode,proto3,enum=flyteidl.plugins.sagemaker.InputMode_Value" json:"input_mode,omitempty"`
 	// The algorithm name is used for deciding which pre-built image to point to
 	// This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
-	AlgorithmName AlgorithmName `protobuf:"varint,2,opt,name=algorithm_name,json=algorithmName,proto3,enum=flyteidl.plugins.sagemaker.AlgorithmName" json:"algorithm_name,omitempty"`
+	AlgorithmName AlgorithmName_Value `protobuf:"varint,2,opt,name=algorithm_name,json=algorithmName,proto3,enum=flyteidl.plugins.sagemaker.AlgorithmName_Value" json:"algorithm_name,omitempty"`
 	// The algorithm version field is used for deciding which pre-built image to point to
 	// This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
 	AlgorithmVersion string `protobuf:"bytes,3,opt,name=algorithm_version,json=algorithmVersion,proto3" json:"algorithm_version,omitempty"`
@@ -91,7 +158,7 @@ func (m *AlgorithmSpecification) Reset()         { *m = AlgorithmSpecification{}
 func (m *AlgorithmSpecification) String() string { return proto.CompactTextString(m) }
 func (*AlgorithmSpecification) ProtoMessage()    {}
 func (*AlgorithmSpecification) Descriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{0}
+	return fileDescriptor_6a68f64d8fd9fe30, []int{2}
 }
 
 func (m *AlgorithmSpecification) XXX_Unmarshal(b []byte) error {
@@ -112,14 +179,14 @@ func (m *AlgorithmSpecification) XXX_DiscardUnknown() {
 
 var xxx_messageInfo_AlgorithmSpecification proto.InternalMessageInfo
 
-func (m *AlgorithmSpecification) GetInputMode() InputMode {
+func (m *AlgorithmSpecification) GetInputMode() InputMode_Value {
 	if m != nil {
 		return m.InputMode
 	}
 	return InputMode_FILE
 }
 
-func (m *AlgorithmSpecification) GetAlgorithmName() AlgorithmName {
+func (m *AlgorithmSpecification) GetAlgorithmName() AlgorithmName_Value {
 	if m != nil {
 		return m.AlgorithmName
 	}
@@ -156,7 +223,7 @@ func (m *AlgorithmSpecification_MetricDefinition) Reset() {
 func (m *AlgorithmSpecification_MetricDefinition) String() string { return proto.CompactTextString(m) }
 func (*AlgorithmSpecification_MetricDefinition) ProtoMessage()    {}
 func (*AlgorithmSpecification_MetricDefinition) Descriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{0, 0}
+	return fileDescriptor_6a68f64d8fd9fe30, []int{2, 0}
 }
 
 func (m *AlgorithmSpecification_MetricDefinition) XXX_Unmarshal(b []byte) error {
@@ -191,9 +258,11 @@ func (m *AlgorithmSpecification_MetricDefinition) GetRegex() string {
 	return ""
 }
 
-type TrainingJobConfig struct {
+// TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the
+// number of instances to launch, and the size of the ML storage volume the user wants to provision
+// Refer to SageMaker official doc for more details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
+type TrainingJobResourceConfig struct {
 	// The number of ML compute instances to use. For distributed training, provide a value greater than 1.
-	// This is for multi-node training, not multi-GPU training
 	InstanceCount int64 `protobuf:"varint,1,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"`
 	// The ML compute instance type
 	InstanceType string `protobuf:"bytes,2,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"`
@@ -204,46 +273,46 @@ type TrainingJobConfig struct {
 	XXX_sizecache        int32    `json:"-"`
 }
 
-func (m *TrainingJobConfig) Reset()         { *m = TrainingJobConfig{} }
-func (m *TrainingJobConfig) String() string { return proto.CompactTextString(m) }
-func (*TrainingJobConfig) ProtoMessage()    {}
-func (*TrainingJobConfig) Descriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{1}
+func (m *TrainingJobResourceConfig) Reset()         { *m = TrainingJobResourceConfig{} }
+func (m *TrainingJobResourceConfig) String() string { return proto.CompactTextString(m) }
+func (*TrainingJobResourceConfig) ProtoMessage()    {}
+func (*TrainingJobResourceConfig) Descriptor() ([]byte, []int) {
+	return fileDescriptor_6a68f64d8fd9fe30, []int{3}
 }
 
-func (m *TrainingJobConfig) XXX_Unmarshal(b []byte) error {
-	return xxx_messageInfo_TrainingJobConfig.Unmarshal(m, b)
+func (m *TrainingJobResourceConfig) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_TrainingJobResourceConfig.Unmarshal(m, b)
 }
-func (m *TrainingJobConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
-	return xxx_messageInfo_TrainingJobConfig.Marshal(b, m, deterministic)
+func (m *TrainingJobResourceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_TrainingJobResourceConfig.Marshal(b, m, deterministic)
 }
-func (m *TrainingJobConfig) XXX_Merge(src proto.Message) {
-	xxx_messageInfo_TrainingJobConfig.Merge(m, src)
+func (m *TrainingJobResourceConfig) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_TrainingJobResourceConfig.Merge(m, src)
 }
-func (m *TrainingJobConfig) XXX_Size() int {
-	return xxx_messageInfo_TrainingJobConfig.Size(m)
+func (m *TrainingJobResourceConfig) XXX_Size() int {
+	return xxx_messageInfo_TrainingJobResourceConfig.Size(m)
 }
-func (m *TrainingJobConfig) XXX_DiscardUnknown() {
-	xxx_messageInfo_TrainingJobConfig.DiscardUnknown(m)
+func (m *TrainingJobResourceConfig) XXX_DiscardUnknown() {
+	xxx_messageInfo_TrainingJobResourceConfig.DiscardUnknown(m)
 }
 
-var xxx_messageInfo_TrainingJobConfig proto.InternalMessageInfo
+var xxx_messageInfo_TrainingJobResourceConfig proto.InternalMessageInfo
 
-func (m *TrainingJobConfig) GetInstanceCount() int64 {
+func (m *TrainingJobResourceConfig) GetInstanceCount() int64 {
 	if m != nil {
 		return m.InstanceCount
 	}
 	return 0
 }
 
-func (m *TrainingJobConfig) GetInstanceType() string {
+func (m *TrainingJobResourceConfig) GetInstanceType() string {
 	if m != nil {
 		return m.InstanceType
 	}
 	return ""
 }
 
-func (m *TrainingJobConfig) GetVolumeSizeInGb() int64 {
+func (m *TrainingJobResourceConfig) GetVolumeSizeInGb() int64 {
 	if m != nil {
 		return m.VolumeSizeInGb
 	}
@@ -271,7 +340,7 @@ func (m *StoppingCondition) Reset()         { *m = StoppingCondition{} }
 func (m *StoppingCondition) String() string { return proto.CompactTextString(m) }
 func (*StoppingCondition) ProtoMessage()    {}
 func (*StoppingCondition) Descriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{2}
+	return fileDescriptor_6a68f64d8fd9fe30, []int{4}
 }
 
 func (m *StoppingCondition) XXX_Unmarshal(b []byte) error {
@@ -306,21 +375,22 @@ func (m *StoppingCondition) GetMaxWaitTimeInSeconds() int64 {
 	return 0
 }
 
-// The spec of a training job
+// The spec of a training job. This is mostly a pass-through object
+// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
 type TrainingJob struct {
-	AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,1,opt,name=algorithm_specification,json=algorithmSpecification,proto3" json:"algorithm_specification,omitempty"`
-	TrainingJobConfig      *TrainingJobConfig      `protobuf:"bytes,2,opt,name=training_job_config,json=trainingJobConfig,proto3" json:"training_job_config,omitempty"`
-	Interruptible          bool                    `protobuf:"varint,3,opt,name=interruptible,proto3" json:"interruptible,omitempty"`
-	XXX_NoUnkeyedLiteral   struct{}                `json:"-"`
-	XXX_unrecognized       []byte                  `json:"-"`
-	XXX_sizecache          int32                   `json:"-"`
+	AlgorithmSpecification *AlgorithmSpecification    `protobuf:"bytes,1,opt,name=algorithm_specification,json=algorithmSpecification,proto3" json:"algorithm_specification,omitempty"`
+	TrainingJobConfig      *TrainingJobResourceConfig `protobuf:"bytes,2,opt,name=training_job_config,json=trainingJobConfig,proto3" json:"training_job_config,omitempty"`
+	Interruptible          bool                       `protobuf:"varint,3,opt,name=interruptible,proto3" json:"interruptible,omitempty"`
+	XXX_NoUnkeyedLiteral   struct{}                   `json:"-"`
+	XXX_unrecognized       []byte                     `json:"-"`
+	XXX_sizecache          int32                      `json:"-"`
 }
 
 func (m *TrainingJob) Reset()         { *m = TrainingJob{} }
 func (m *TrainingJob) String() string { return proto.CompactTextString(m) }
 func (*TrainingJob) ProtoMessage()    {}
 func (*TrainingJob) Descriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{3}
+	return fileDescriptor_6a68f64d8fd9fe30, []int{5}
 }
 
 func (m *TrainingJob) XXX_Unmarshal(b []byte) error {
@@ -348,7 +418,7 @@ func (m *TrainingJob) GetAlgorithmSpecification() *AlgorithmSpecification {
 	return nil
 }
 
-func (m *TrainingJob) GetTrainingJobConfig() *TrainingJobConfig {
+func (m *TrainingJob) GetTrainingJobConfig() *TrainingJobResourceConfig {
 	if m != nil {
 		return m.TrainingJobConfig
 	}
@@ -363,11 +433,13 @@ func (m *TrainingJob) GetInterruptible() bool {
 }
 
 func init() {
-	proto.RegisterEnum("flyteidl.plugins.sagemaker.InputMode", InputMode_name, InputMode_value)
-	proto.RegisterEnum("flyteidl.plugins.sagemaker.AlgorithmName", AlgorithmName_name, AlgorithmName_value)
+	proto.RegisterEnum("flyteidl.plugins.sagemaker.InputMode_Value", InputMode_Value_name, InputMode_Value_value)
+	proto.RegisterEnum("flyteidl.plugins.sagemaker.AlgorithmName_Value", AlgorithmName_Value_name, AlgorithmName_Value_value)
+	proto.RegisterType((*InputMode)(nil), "flyteidl.plugins.sagemaker.InputMode")
+	proto.RegisterType((*AlgorithmName)(nil), "flyteidl.plugins.sagemaker.AlgorithmName")
 	proto.RegisterType((*AlgorithmSpecification)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification")
 	proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition")
-	proto.RegisterType((*TrainingJobConfig)(nil), "flyteidl.plugins.sagemaker.TrainingJobConfig")
+	proto.RegisterType((*TrainingJobResourceConfig)(nil), "flyteidl.plugins.sagemaker.TrainingJobResourceConfig")
 	proto.RegisterType((*StoppingCondition)(nil), "flyteidl.plugins.sagemaker.StoppingCondition")
 	proto.RegisterType((*TrainingJob)(nil), "flyteidl.plugins.sagemaker.TrainingJob")
 }
@@ -377,42 +449,43 @@ func init() {
 }
 
 var fileDescriptor_6a68f64d8fd9fe30 = []byte{
-	// 585 bytes of a gzipped FileDescriptorProto
+	// 606 bytes of a gzipped FileDescriptorProto
 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x4f, 0xdb, 0x4c,
-	0x10, 0xc5, 0x84, 0x8f, 0x8f, 0x4c, 0x4a, 0x94, 0x2c, 0x88, 0x46, 0x5c, 0x8a, 0xd2, 0x22, 0x05,
-	0x2a, 0x6c, 0x29, 0xa8, 0x3d, 0xf5, 0x52, 0x02, 0x45, 0xa9, 0x4a, 0x41, 0x4e, 0xfa, 0x43, 0x95,
-	0xaa, 0xd5, 0xda, 0xd9, 0x98, 0x29, 0xde, 0x5d, 0xcb, 0x5e, 0xd3, 0x84, 0x53, 0xcf, 0xbd, 0xf4,
-	0x4f, 0x6e, 0xe5, 0x75, 0x62, 0x92, 0xd0, 0xa2, 0xf6, 0x36, 0xfb, 0x66, 0xe6, 0xed, 0xcc, 0x3c,
-	0xcd, 0xc0, 0xc1, 0x30, 0x1c, 0x6b, 0x8e, 0x83, 0xd0, 0x89, 0xc2, 0x34, 0x40, 0x99, 0x38, 0x09,
-	0x0b, 0xb8, 0x60, 0x57, 0x3c, 0x76, 0x74, 0xcc, 0x50, 0xa2, 0x0c, 0xe8, 0x17, 0xe5, 0xd9, 0x51,
-	0xac, 0xb4, 0x22, 0xdb, 0xd3, 0x70, 0x7b, 0x12, 0x6e, 0x17, 0xe1, 0xcd, 0x1f, 0x25, 0xd8, 0x7a,
-	0x19, 0x06, 0x2a, 0x46, 0x7d, 0x29, 0x7a, 0x11, 0xf7, 0x71, 0x88, 0x3e, 0xd3, 0xa8, 0x24, 0x39,
-	0x06, 0x40, 0x19, 0xa5, 0x9a, 0x0a, 0x35, 0xe0, 0x0d, 0x6b, 0xc7, 0x6a, 0x55, 0xdb, 0xbb, 0xf6,
-	0x9f, 0xb9, 0xec, 0x6e, 0x16, 0x7d, 0xa6, 0x06, 0xdc, 0x2d, 0xe3, 0xd4, 0x24, 0x17, 0x50, 0x65,
-	0x53, 0x7e, 0x2a, 0x99, 0xe0, 0x8d, 0x65, 0xc3, 0xb4, 0x77, 0x1f, 0x53, 0x51, 0xd1, 0x5b, 0x26,
-	0xb8, 0xbb, 0xce, 0x66, 0x9f, 0xe4, 0x29, 0xd4, 0x6f, 0x19, 0xaf, 0x79, 0x9c, 0xa0, 0x92, 0x8d,
-	0xd2, 0x8e, 0xd5, 0x2a, 0xbb, 0xb5, 0xc2, 0xf1, 0x3e, 0xc7, 0x49, 0x0c, 0x44, 0x70, 0x1d, 0xa3,
-	0x4f, 0x07, 0x7c, 0x88, 0x12, 0xb3, 0xce, 0x92, 0xc6, 0xca, 0x4e, 0xa9, 0x55, 0x69, 0x77, 0xfe,
-	0xaa, 0x84, 0xb9, 0xa1, 0xd8, 0x67, 0x86, 0xec, 0xb8, 0xe0, 0x72, 0xeb, 0x62, 0x01, 0x49, 0xb6,
-	0x5f, 0x40, 0x6d, 0x31, 0x8c, 0x10, 0x58, 0x31, 0xcd, 0x5b, 0xa6, 0x4e, 0x63, 0x93, 0x4d, 0xf8,
-	0x2f, 0xe6, 0x01, 0x1f, 0x99, 0x89, 0x94, 0xdd, 0xfc, 0xd1, 0xfc, 0x6e, 0x41, 0xbd, 0x3f, 0x11,
-	0xf1, 0xb5, 0xf2, 0x3a, 0x4a, 0x0e, 0x31, 0x20, 0xbb, 0x50, 0x45, 0x99, 0x68, 0x26, 0x7d, 0x4e,
-	0x7d, 0x95, 0x4a, 0x6d, 0x98, 0x4a, 0xee, 0xfa, 0x14, 0xed, 0x64, 0x20, 0x79, 0x0c, 0x05, 0x40,
-	0xf5, 0x38, 0xe2, 0x13, 0xea, 0x07, 0x53, 0xb0, 0x3f, 0x8e, 0x38, 0xd9, 0x83, 0xfa, 0xb5, 0x0a,
-	0x53, 0xc1, 0x69, 0x82, 0x37, 0x9c, 0xa2, 0xa4, 0x81, 0x67, 0x06, 0x58, 0x72, 0xab, 0xb9, 0xa3,
-	0x87, 0x37, 0xbc, 0x2b, 0x4f, 0xbd, 0xe6, 0x37, 0x0b, 0xea, 0x3d, 0xad, 0xa2, 0x08, 0x65, 0xd0,
-	0x51, 0x72, 0x90, 0x37, 0x73, 0x08, 0x5b, 0x82, 0x8d, 0x68, 0x9c, 0x4a, 0x8d, 0xc2, 0x10, 0x24,
-	0xdc, 0x57, 0x72, 0x90, 0x4c, 0x8a, 0xda, 0x10, 0x6c, 0xe4, 0xe6, 0xce, 0xae, 0xec, 0xe5, 0x2e,
-	0xf2, 0x1c, 0x1a, 0x59, 0xd2, 0x57, 0x86, 0x9a, 0x2e, 0xa6, 0x2d, 0x9b, 0xb4, 0x4d, 0xc1, 0x46,
-	0x1f, 0x18, 0xea, 0xfe, 0x6c, 0x5e, 0xf3, 0xa7, 0x05, 0x95, 0x99, 0x79, 0x90, 0x2b, 0x78, 0x78,
-	0x2b, 0x7f, 0x32, 0x2b, 0x8e, 0xf9, 0xbd, 0xd2, 0x6e, 0xff, 0xbb, 0xac, 0xee, 0x16, 0xfb, 0xfd,
-	0x0e, 0x7c, 0x86, 0x8d, 0xd9, 0x85, 0xa2, 0xbe, 0x51, 0xc3, 0xd4, 0x5b, 0x69, 0x1f, 0xdc, 0xf7,
-	0xd1, 0x1d, 0x09, 0xdd, 0xba, 0xbe, 0xa3, 0xea, 0x93, 0x4c, 0x2e, 0xcd, 0xe3, 0x38, 0x8d, 0x34,
-	0x7a, 0x21, 0x37, 0x2a, 0xac, 0xb9, 0xf3, 0xe0, 0xfe, 0x23, 0x28, 0x17, 0xab, 0x45, 0xd6, 0x60,
-	0xe5, 0x55, 0xf7, 0xcd, 0x49, 0x6d, 0x29, 0xb3, 0x2e, 0xba, 0x17, 0x27, 0x35, 0x6b, 0xbf, 0x05,
-	0xeb, 0x73, 0x1b, 0x43, 0x00, 0x56, 0x3b, 0xef, 0x7a, 0xfd, 0xf3, 0xb3, 0xda, 0x12, 0xa9, 0xc0,
-	0xff, 0x1f, 0x4f, 0x8f, 0xce, 0xcf, 0x7b, 0xfd, 0x9a, 0x75, 0xf4, 0xec, 0xd3, 0x61, 0x80, 0xfa,
-	0x32, 0xf5, 0x6c, 0x5f, 0x09, 0x27, 0x1c, 0x0f, 0xb5, 0x53, 0xdc, 0x92, 0x80, 0x4b, 0x27, 0xf2,
-	0x0e, 0x02, 0xe5, 0x2c, 0x9e, 0x17, 0x6f, 0xd5, 0x1c, 0x92, 0xc3, 0x5f, 0x01, 0x00, 0x00, 0xff,
-	0xff, 0xb9, 0xda, 0xd0, 0x9e, 0x79, 0x04, 0x00, 0x00,
+	0x10, 0xc5, 0x04, 0xf8, 0xc8, 0xe4, 0x23, 0x4a, 0x16, 0x44, 0x53, 0x7a, 0x89, 0xdc, 0x56, 0x4a,
+	0x85, 0xb0, 0xd5, 0x20, 0x7a, 0xea, 0xa5, 0xa4, 0x14, 0x05, 0x95, 0x82, 0x9c, 0x94, 0x56, 0xbd,
+	0x58, 0x6b, 0x67, 0x62, 0xa6, 0x78, 0x77, 0x2d, 0x7b, 0x4d, 0x13, 0x4e, 0xbd, 0xf5, 0xde, 0x6b,
+	0xff, 0xd9, 0x2a, 0x9b, 0x1f, 0x84, 0xa8, 0xa0, 0xf6, 0x66, 0xbf, 0x99, 0x79, 0xf3, 0x76, 0xde,
+	0xee, 0xc0, 0x5e, 0x3f, 0x1e, 0x6a, 0xa4, 0x5e, 0xec, 0x26, 0x71, 0x1e, 0x91, 0xcc, 0xdc, 0x8c,
+	0x47, 0x28, 0xf8, 0x15, 0xa6, 0xae, 0x4e, 0x39, 0x49, 0x92, 0x91, 0xff, 0x55, 0x05, 0x4e, 0x92,
+	0x2a, 0xad, 0xd8, 0xce, 0x34, 0xdd, 0x99, 0xa4, 0x3b, 0xb3, 0x74, 0xbb, 0x01, 0xc5, 0xb6, 0x4c,
+	0x72, 0x7d, 0xaa, 0x7a, 0x68, 0x3f, 0x81, 0xd5, 0x0b, 0x1e, 0xe7, 0xc8, 0xd6, 0x61, 0xe5, 0x5d,
+	0xfb, 0xfd, 0x51, 0x65, 0x69, 0xf4, 0x75, 0xde, 0x3e, 0x3f, 0xaa, 0x58, 0xf6, 0x4b, 0xd8, 0x78,
+	0x13, 0x47, 0x2a, 0x25, 0x7d, 0x29, 0x3e, 0x70, 0x81, 0x76, 0x7d, 0x9a, 0x0d, 0xb0, 0xd6, 0xfa,
+	0xd8, 0xe9, 0x9e, 0x9d, 0x56, 0x96, 0x58, 0x09, 0xfe, 0xfb, 0x7c, 0x7c, 0x78, 0x76, 0xd6, 0xe9,
+	0x56, 0x2c, 0xfb, 0x57, 0x01, 0xb6, 0x67, 0x35, 0x9d, 0x04, 0x43, 0xea, 0x53, 0xc8, 0x35, 0x29,
+	0xc9, 0x4e, 0x00, 0x68, 0xd4, 0xd7, 0x17, 0xaa, 0x87, 0x35, 0xab, 0x6e, 0x35, 0xca, 0xcd, 0x5d,
+	0xe7, 0x7e, 0xa1, 0xce, 0x4c, 0xa5, 0x63, 0x9a, 0x7a, 0x45, 0x9a, 0x02, 0xec, 0x02, 0xca, 0x7c,
+	0xda, 0xc5, 0x97, 0x5c, 0x60, 0x6d, 0xd9, 0xf0, 0xb9, 0x0f, 0xf1, 0xdd, 0x39, 0xcb, 0x84, 0x73,
+	0x83, 0xcf, 0x83, 0x6c, 0x17, 0xaa, 0xb7, 0xbc, 0xd7, 0x98, 0x66, 0xa4, 0x64, 0xad, 0x50, 0xb7,
+	0x1a, 0x45, 0xaf, 0x32, 0x0b, 0x5c, 0x8c, 0x71, 0x96, 0x02, 0x13, 0xa8, 0x53, 0x0a, 0xfd, 0x1e,
+	0xf6, 0x49, 0xd2, 0xe8, 0x94, 0x59, 0x6d, 0xa5, 0x5e, 0x68, 0x94, 0x9a, 0xad, 0xbf, 0x12, 0x72,
+	0x67, 0x40, 0xce, 0xa9, 0x21, 0x7b, 0x3b, 0xe3, 0xf2, 0xaa, 0x62, 0x01, 0xc9, 0x76, 0x5e, 0x43,
+	0x65, 0x31, 0x8d, 0x31, 0x58, 0x31, 0x23, 0xb0, 0x8c, 0x4e, 0xf3, 0xcd, 0xb6, 0x60, 0x35, 0xc5,
+	0x08, 0x07, 0x66, 0x2e, 0x45, 0x6f, 0xfc, 0x63, 0xff, 0xb4, 0xe0, 0x71, 0x77, 0x72, 0x5b, 0x4e,
+	0x54, 0xe0, 0x61, 0xa6, 0xf2, 0x34, 0xc4, 0x96, 0x92, 0x7d, 0x8a, 0xd8, 0x73, 0x28, 0x93, 0xcc,
+	0x34, 0x97, 0x21, 0xfa, 0xa1, 0xca, 0xa5, 0x36, 0x8c, 0x05, 0x6f, 0x63, 0x8a, 0xb6, 0x46, 0x20,
+	0x7b, 0x0a, 0x33, 0xc0, 0xd7, 0xc3, 0x04, 0x27, 0x2d, 0xfe, 0x9f, 0x82, 0xdd, 0x61, 0x82, 0xec,
+	0x05, 0x54, 0xaf, 0x55, 0x9c, 0x0b, 0xf4, 0x33, 0xba, 0x41, 0x9f, 0xa4, 0x1f, 0x05, 0x66, 0x90,
+	0x05, 0xaf, 0x3c, 0x0e, 0x74, 0xe8, 0x06, 0xdb, 0xf2, 0x38, 0xb0, 0xbf, 0x5b, 0x50, 0xed, 0x68,
+	0x95, 0x24, 0x24, 0xa3, 0x96, 0x92, 0xbd, 0xf1, 0xa1, 0xf6, 0x61, 0x5b, 0xf0, 0x81, 0x9f, 0xe6,
+	0x52, 0x93, 0x30, 0x04, 0x19, 0x86, 0x4a, 0xf6, 0xb2, 0x89, 0xa8, 0x4d, 0xc1, 0x07, 0xde, 0x38,
+	0xd8, 0x96, 0x9d, 0x71, 0x88, 0xbd, 0x82, 0xda, 0xa8, 0xe8, 0x1b, 0x27, 0xed, 0x2f, 0x96, 0x2d,
+	0x9b, 0xb2, 0x2d, 0xc1, 0x07, 0x9f, 0x38, 0xe9, 0xee, 0x7c, 0x9d, 0xfd, 0x63, 0x19, 0x4a, 0x73,
+	0x73, 0x61, 0x57, 0xf0, 0xe8, 0xf6, 0x1a, 0x64, 0xf3, 0x26, 0x99, 0xee, 0xa5, 0x66, 0xf3, 0xdf,
+	0xed, 0xf5, 0xb6, 0xf9, 0x9f, 0xdf, 0x05, 0xc2, 0xe6, 0xfc, 0x0b, 0xf6, 0x43, 0xe3, 0x86, 0xd1,
+	0x5b, 0x6a, 0x1e, 0x3c, 0xd4, 0xe8, 0x5e, 0x2b, 0xbd, 0xaa, 0xbe, 0x0d, 0x4d, 0xdc, 0x7d, 0x36,
+	0xb2, 0x4d, 0x63, 0x9a, 0xe6, 0x89, 0xa6, 0x20, 0x46, 0xe3, 0xc6, 0xba, 0x77, 0x17, 0x3c, 0x3c,
+	0xf8, 0xb2, 0x1f, 0x91, 0xbe, 0xcc, 0x03, 0x27, 0x54, 0xc2, 0x8d, 0x87, 0x7d, 0xed, 0xce, 0x36,
+	0x4f, 0x84, 0xd2, 0x4d, 0x82, 0xbd, 0x48, 0xb9, 0x8b, 0xcb, 0x28, 0x58, 0x33, 0x6b, 0x67, 0xff,
+	0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x95, 0x36, 0xf4, 0xde, 0xa7, 0x04, 0x00, 0x00,
 }
diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go
index 0b83d2fa9..01c7f41af 100644
--- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go
+++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go
@@ -36,6 +36,135 @@ var (
 // define the regex for a UUID once up-front
 var _training_job_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
 
+// Validate checks the field values on InputMode with the rules defined in the
+// proto definition for this message. If any rules are violated, an error is returned.
+func (m *InputMode) Validate() error {
+	if m == nil {
+		return nil
+	}
+
+	return nil
+}
+
+// InputModeValidationError is the validation error returned by
+// InputMode.Validate if the designated constraints aren't met.
+type InputModeValidationError struct {
+	field  string
+	reason string
+	cause  error
+	key    bool
+}
+
+// Field function returns field value.
+func (e InputModeValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e InputModeValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e InputModeValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e InputModeValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e InputModeValidationError) ErrorName() string { return "InputModeValidationError" }
+
+// Error satisfies the builtin error interface
+func (e InputModeValidationError) Error() string {
+	cause := ""
+	if e.cause != nil {
+		cause = fmt.Sprintf(" | caused by: %v", e.cause)
+	}
+
+	key := ""
+	if e.key {
+		key = "key for "
+	}
+
+	return fmt.Sprintf(
+		"invalid %sInputMode.%s: %s%s",
+		key,
+		e.field,
+		e.reason,
+		cause)
+}
+
+var _ error = InputModeValidationError{}
+
+var _ interface {
+	Field() string
+	Reason() string
+	Key() bool
+	Cause() error
+	ErrorName() string
+} = InputModeValidationError{}
+
+// Validate checks the field values on AlgorithmName with the rules defined in
+// the proto definition for this message. If any rules are violated, an error
+// is returned.
+func (m *AlgorithmName) Validate() error {
+	if m == nil {
+		return nil
+	}
+
+	return nil
+}
+
+// AlgorithmNameValidationError is the validation error returned by
+// AlgorithmName.Validate if the designated constraints aren't met.
+type AlgorithmNameValidationError struct {
+	field  string
+	reason string
+	cause  error
+	key    bool
+}
+
+// Field function returns field value.
+func (e AlgorithmNameValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e AlgorithmNameValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e AlgorithmNameValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e AlgorithmNameValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e AlgorithmNameValidationError) ErrorName() string { return "AlgorithmNameValidationError" }
+
+// Error satisfies the builtin error interface
+func (e AlgorithmNameValidationError) Error() string {
+	cause := ""
+	if e.cause != nil {
+		cause = fmt.Sprintf(" | caused by: %v", e.cause)
+	}
+
+	key := ""
+	if e.key {
+		key = "key for "
+	}
+
+	return fmt.Sprintf(
+		"invalid %sAlgorithmName.%s: %s%s",
+		key,
+		e.field,
+		e.reason,
+		cause)
+}
+
+var _ error = AlgorithmNameValidationError{}
+
+var _ interface {
+	Field() string
+	Reason() string
+	Key() bool
+	Cause() error
+	ErrorName() string
+} = AlgorithmNameValidationError{}
+
 // Validate checks the field values on AlgorithmSpecification with the rules
 // defined in the proto definition for this message. If any rules are
 // violated, an error is returned.
@@ -124,10 +253,10 @@ var _ interface {
 	ErrorName() string
 } = AlgorithmSpecificationValidationError{}
 
-// Validate checks the field values on TrainingJobConfig with the rules defined
-// in the proto definition for this message. If any rules are violated, an
-// error is returned.
-func (m *TrainingJobConfig) Validate() error {
+// Validate checks the field values on TrainingJobResourceConfig with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, an error is returned.
+func (m *TrainingJobResourceConfig) Validate() error {
 	if m == nil {
 		return nil
 	}
@@ -141,9 +270,9 @@ func (m *TrainingJobConfig) Validate() error {
 	return nil
 }
 
-// TrainingJobConfigValidationError is the validation error returned by
-// TrainingJobConfig.Validate if the designated constraints aren't met.
-type TrainingJobConfigValidationError struct {
+// TrainingJobResourceConfigValidationError is the validation error returned by
+// TrainingJobResourceConfig.Validate if the designated constraints aren't met.
+type TrainingJobResourceConfigValidationError struct {
 	field  string
 	reason string
 	cause  error
@@ -151,24 +280,24 @@ type TrainingJobConfigValidationError struct {
 }
 
 // Field function returns field value.
-func (e TrainingJobConfigValidationError) Field() string { return e.field }
+func (e TrainingJobResourceConfigValidationError) Field() string { return e.field }
 
 // Reason function returns reason value.
-func (e TrainingJobConfigValidationError) Reason() string { return e.reason }
+func (e TrainingJobResourceConfigValidationError) Reason() string { return e.reason }
 
 // Cause function returns cause value.
-func (e TrainingJobConfigValidationError) Cause() error { return e.cause }
+func (e TrainingJobResourceConfigValidationError) Cause() error { return e.cause }
 
 // Key function returns key value.
-func (e TrainingJobConfigValidationError) Key() bool { return e.key }
+func (e TrainingJobResourceConfigValidationError) Key() bool { return e.key }
 
 // ErrorName returns error name.
-func (e TrainingJobConfigValidationError) ErrorName() string {
-	return "TrainingJobConfigValidationError"
+func (e TrainingJobResourceConfigValidationError) ErrorName() string {
+	return "TrainingJobResourceConfigValidationError"
 }
 
 // Error satisfies the builtin error interface
-func (e TrainingJobConfigValidationError) Error() string {
+func (e TrainingJobResourceConfigValidationError) Error() string {
 	cause := ""
 	if e.cause != nil {
 		cause = fmt.Sprintf(" | caused by: %v", e.cause)
@@ -180,14 +309,14 @@ func (e TrainingJobConfigValidationError) Error() string {
 	}
 
 	return fmt.Sprintf(
-		"invalid %sTrainingJobConfig.%s: %s%s",
+		"invalid %sTrainingJobResourceConfig.%s: %s%s",
 		key,
 		e.field,
 		e.reason,
 		cause)
 }
 
-var _ error = TrainingJobConfigValidationError{}
+var _ error = TrainingJobResourceConfigValidationError{}
 
 var _ interface {
 	Field() string
@@ -195,7 +324,7 @@ var _ interface {
 	Key() bool
 	Cause() error
 	ErrorName() string
-} = TrainingJobConfigValidationError{}
+} = TrainingJobResourceConfigValidationError{}
 
 // Validate checks the field values on StoppingCondition with the rules defined
 // in the proto definition for this message. If any rules are violated, an
diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java
index 16f1e7a22..f040bd04d 100644
--- a/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java
+++ b/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java
@@ -46,6 +46,7 @@ public interface HyperparameterTuningJobOrBuilder extends
     /**
      * 
      * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
      * 
* * int64 max_number_of_training_jobs = 2; @@ -55,6 +56,7 @@ public interface HyperparameterTuningJobOrBuilder extends /** *
      * The maximum number of concurrent training job that an hpo job can launch
+     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
      * 
* * int64 max_parallel_training_jobs = 3; @@ -63,7 +65,7 @@ public interface HyperparameterTuningJobOrBuilder extends } /** *
-   * The hyperparameter tuning job
+   * A pass-through for SageMaker's hyperparameter tuning job
    * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningJob} @@ -197,6 +199,7 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder get /** *
      * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
      * 
* * int64 max_number_of_training_jobs = 2; @@ -210,6 +213,7 @@ public long getMaxNumberOfTrainingJobs() { /** *
      * The maximum number of concurrent training job that an hpo job can launch
+     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
      * 
* * int64 max_parallel_training_jobs = 3; @@ -404,7 +408,7 @@ protected Builder newBuilderForType( } /** *
-     * The hyperparameter tuning job
+     * A pass-through for SageMaker's hyperparameter tuning job
      * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningJob} @@ -730,6 +734,7 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder get /** *
        * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+       * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
        * 
* * int64 max_number_of_training_jobs = 2; @@ -740,6 +745,7 @@ public long getMaxNumberOfTrainingJobs() { /** *
        * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+       * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
        * 
* * int64 max_number_of_training_jobs = 2; @@ -753,6 +759,7 @@ public Builder setMaxNumberOfTrainingJobs(long value) { /** *
        * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+       * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
        * 
* * int64 max_number_of_training_jobs = 2; @@ -768,6 +775,7 @@ public Builder clearMaxNumberOfTrainingJobs() { /** *
        * The maximum number of concurrent training job that an hpo job can launch
+       * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
        * 
* * int64 max_parallel_training_jobs = 3; @@ -778,6 +786,7 @@ public long getMaxParallelTrainingJobs() { /** *
        * The maximum number of concurrent training job that an hpo job can launch
+       * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
        * 
* * int64 max_parallel_training_jobs = 3; @@ -791,6 +800,7 @@ public Builder setMaxParallelTrainingJobs(long value) { /** *
        * The maximum number of concurrent training job that an hpo job can launch
+       * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
        * 
* * int64 max_parallel_training_jobs = 3; @@ -854,58 +864,23 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet } - public interface HyperparameterTuningObjectiveOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + public interface HyperparameterTuningObjectiveTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - int getObjectiveTypeValue(); - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType(); - - /** - *
-     * The target metric name, which is the user-defined name of the metric specified in the
-     * training job's algorithm specification
-     * 
- * - * string metric_name = 2; - */ - java.lang.String getMetricName(); - /** - *
-     * The target metric name, which is the user-defined name of the metric specified in the
-     * training job's algorithm specification
-     * 
- * - * string metric_name = 2; - */ - com.google.protobuf.ByteString - getMetricNameBytes(); } /** - *
-   * The objective of the hyperparameter tuning
-   * 
- * - * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType} */ - public static final class HyperparameterTuningObjective extends + public static final class HyperparameterTuningObjectiveType extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - HyperparameterTuningObjectiveOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + HyperparameterTuningObjectiveTypeOrBuilder { private static final long serialVersionUID = 0L; - // Use HyperparameterTuningObjective.newBuilder() to construct. - private HyperparameterTuningObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use HyperparameterTuningObjectiveType.newBuilder() to construct. + private HyperparameterTuningObjectiveType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HyperparameterTuningObjective() { - objectiveType_ = 0; - metricName_ = ""; + private HyperparameterTuningObjectiveType() { } @java.lang.Override @@ -913,7 +888,7 @@ private HyperparameterTuningObjective() { getUnknownFields() { return this.unknownFields; } - private HyperparameterTuningObjective( + private HyperparameterTuningObjectiveType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -921,7 +896,6 @@ private HyperparameterTuningObjective( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -932,18 +906,6 @@ private HyperparameterTuningObjective( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - objectiveType_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - metricName_ = s; - break; - } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -965,21 +927,21 @@ private HyperparameterTuningObjective( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder.class); + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Builder.class); } /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType} + * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value} */ - public enum HyperparameterTuningObjectiveType + public enum Value implements com.google.protobuf.ProtocolMessageEnum { /** * MINIMIZE = 0; @@ -1014,11 +976,11 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static HyperparameterTuningObjectiveType valueOf(int value) { + public static Value valueOf(int value) { return forNumber(value); } - public static HyperparameterTuningObjectiveType forNumber(int value) { + public static Value forNumber(int value) { switch (value) { case 0: return MINIMIZE; case 1: return MAXIMIZE; @@ -1026,15 +988,15 @@ public static HyperparameterTuningObjectiveType forNumber(int value) { } } - public static com.google.protobuf.Internal.EnumLiteMap + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< - HyperparameterTuningObjectiveType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HyperparameterTuningObjectiveType findValueByNumber(int number) { - return HyperparameterTuningObjectiveType.forNumber(number); + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); } }; @@ -1048,12 +1010,12 @@ public HyperparameterTuningObjectiveType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDescriptor().getEnumTypes().get(0); + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.getDescriptor().getEnumTypes().get(0); } - private static final HyperparameterTuningObjectiveType[] VALUES = values(); + private static final Value[] VALUES = values(); - public static HyperparameterTuningObjectiveType valueOf( + public static Value valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( @@ -1067,72 +1029,11 @@ public static HyperparameterTuningObjectiveType valueOf( private final int value; - private HyperparameterTuningObjectiveType(int value) { + private Value(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType) - } - - public static final int OBJECTIVE_TYPE_FIELD_NUMBER = 1; - private int objectiveType_; - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public int getObjectiveTypeValue() { - return objectiveType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; - } - - public static final int METRIC_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object metricName_; - /** - *
-     * The target metric name, which is the user-defined name of the metric specified in the
-     * training job's algorithm specification
-     * 
- * - * string metric_name = 2; - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - 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(); - metricName_ = s; - return s; - } - } - /** - *
-     * The target metric name, which is the user-defined name of the metric specified in the
-     * training job's algorithm specification
-     * 
- * - * string metric_name = 2; - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value) } private byte memoizedIsInitialized = -1; @@ -1149,12 +1050,6 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (objectiveType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { - output.writeEnum(1, objectiveType_); - } - if (!getMetricNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricName_); - } unknownFields.writeTo(output); } @@ -1164,13 +1059,6 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (objectiveType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, objectiveType_); - } - if (!getMetricNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricName_); - } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1181,14 +1069,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective) obj; + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType) obj; - if (objectiveType_ != other.objectiveType_) return false; - if (!getMetricName() - .equals(other.getMetricName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1200,78 +1085,74 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OBJECTIVE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + objectiveType_; - hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1284,7 +1165,7 @@ public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyper public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1300,30 +1181,26 @@ protected Builder newBuilderForType( return builder; } /** - *
-     * The objective of the hyperparameter tuning
-     * 
- * - * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder.class); + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.newBuilder() + // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1341,27 +1218,23 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - objectiveType_ = 0; - - metricName_ = ""; - return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance(); + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective build() { - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective result = buildPartial(); + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType build() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1369,10 +1242,8 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet } @java.lang.Override - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective buildPartial() { - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective(this); - result.objectiveType_ = objectiveType_; - result.metricName_ = metricName_; + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType buildPartial() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType(this); onBuilt(); return result; } @@ -1411,23 +1282,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective) { - return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective)other); + if (other instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType) { + return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective other) { - if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance()) return this; - if (other.objectiveType_ != 0) { - setObjectiveTypeValue(other.getObjectiveTypeValue()); - } - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - onChanged(); - } + public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType other) { + if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1443,11 +1307,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parsedMessage = null; + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1456,143 +1320,1732 @@ public Builder mergeFrom( } return this; } - - private int objectiveType_ = 0; - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public int getObjectiveTypeValue() { - return objectiveType_; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public Builder setObjectiveTypeValue(int value) { - objectiveType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType getObjectiveType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.valueOf(objectiveType_); - return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.UNRECOGNIZED : result; + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public Builder setObjectiveType(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.HyperparameterTuningObjectiveType value) { - if (value == null) { - throw new NullPointerException(); - } - - objectiveType_ = value.getNumber(); - onChanged(); - return this; + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType objective_type = 1; - */ - public Builder clearObjectiveType() { - - objectiveType_ = 0; - onChanged(); - return this; + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType(); + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HyperparameterTuningObjectiveType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HyperparameterTuningObjectiveType(input, extensionRegistry); } + }; - private java.lang.Object metricName_ = ""; - /** - *
-       * The target metric name, which is the user-defined name of the metric specified in the
-       * training job's algorithm specification
-       * 
- * - * string metric_name = 2; - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HyperparameterTuningObjectiveOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + int getObjectiveTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value getObjectiveType(); + + /** + *
+     * The target metric name, which is the user-defined name of the metric specified in the
+     * training job's algorithm specification
+     * 
+ * + * string metric_name = 2; + */ + java.lang.String getMetricName(); + /** + *
+     * The target metric name, which is the user-defined name of the metric specified in the
+     * training job's algorithm specification
+     * 
+ * + * string metric_name = 2; + */ + com.google.protobuf.ByteString + getMetricNameBytes(); + } + /** + *
+   * The objective of the hyperparameter tuning
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} + */ + public static final class HyperparameterTuningObjective extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + HyperparameterTuningObjectiveOrBuilder { + private static final long serialVersionUID = 0L; + // Use HyperparameterTuningObjective.newBuilder() to construct. + private HyperparameterTuningObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HyperparameterTuningObjective() { + objectiveType_ = 0; + metricName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HyperparameterTuningObjective( + 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 8: { + int rawValue = input.readEnum(); + + objectiveType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + metricName_ = 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder.class); + } + + public static final int OBJECTIVE_TYPE_FIELD_NUMBER = 1; + private int objectiveType_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public int getObjectiveTypeValue() { + return objectiveType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value getObjectiveType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value.UNRECOGNIZED : result; + } + + public static final int METRIC_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object metricName_; + /** + *
+     * The target metric name, which is the user-defined name of the metric specified in the
+     * training job's algorithm specification
+     * 
+ * + * string metric_name = 2; + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + 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(); + metricName_ = s; + return s; + } + } + /** + *
+     * The target metric name, which is the user-defined name of the metric specified in the
+     * training job's algorithm specification
+     * 
+ * + * string metric_name = 2; + */ + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = 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 (objectiveType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value.MINIMIZE.getNumber()) { + output.writeEnum(1, objectiveType_); + } + if (!getMetricNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (objectiveType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value.MINIMIZE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, objectiveType_); + } + if (!getMetricNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricName_); + } + 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective) obj; + + if (objectiveType_ != other.objectiveType_) return false; + if (!getMetricName() + .equals(other.getMetricName())) 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) + OBJECTIVE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + objectiveType_; + hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective 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(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective 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; + } + /** + *
+     * The objective of the hyperparameter tuning
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.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(); + objectiveType_ = 0; + + metricName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective build() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective buildPartial() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective(this); + result.objectiveType_ = objectiveType_; + result.metricName_ = metricName_; + 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective) { + return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective other) { + if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance()) return this; + if (other.objectiveType_ != 0) { + setObjectiveTypeValue(other.getObjectiveTypeValue()); + } + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + 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 { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int objectiveType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public int getObjectiveTypeValue() { + return objectiveType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public Builder setObjectiveTypeValue(int value) { + objectiveType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value getObjectiveType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public Builder setObjectiveType(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value value) { + if (value == null) { + throw new NullPointerException(); + } + + objectiveType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public Builder clearObjectiveType() { + + objectiveType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object metricName_ = ""; + /** + *
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
+       * 
+ * + * string metric_name = 2; + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; } else { - return (java.lang.String) ref; + return (java.lang.String) ref; + } + } + /** + *
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
+       * 
+ * + * string metric_name = 2; + */ + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
+       * 
+ * + * string metric_name = 2; + */ + public Builder setMetricName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metricName_ = value; + onChanged(); + return this; + } + /** + *
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
+       * 
+ * + * string metric_name = 2; + */ + public Builder clearMetricName() { + + metricName_ = getDefaultInstance().getMetricName(); + onChanged(); + return this; + } + /** + *
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
+       * 
+ * + * string metric_name = 2; + */ + public Builder setMetricNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metricName_ = 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:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective(); + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HyperparameterTuningObjective parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HyperparameterTuningObjective(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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HyperparameterTuningStrategyOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningStrategy} + */ + public static final class HyperparameterTuningStrategy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + HyperparameterTuningStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use HyperparameterTuningStrategy.newBuilder() to construct. + private HyperparameterTuningStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HyperparameterTuningStrategy() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HyperparameterTuningStrategy( + 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; + 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value} + */ + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + * BAYESIAN = 0; + */ + BAYESIAN(0), + /** + * RANDOM = 1; + */ + RANDOM(1), + UNRECOGNIZED(-1), + ; + + /** + * BAYESIAN = 0; + */ + public static final int BAYESIAN_VALUE = 0; + /** + * RANDOM = 1; + */ + public static final int RANDOM_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } + + public static Value forNumber(int value) { + switch (value) { + case 0: return BAYESIAN; + case 1: return RANDOM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value 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 Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy 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(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy 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 flyteidl.plugins.sagemaker.HyperparameterTuningStrategy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy build() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy buildPartial() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy(this); + 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy) { + return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy other) { + if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.getDefaultInstance()) return this; + 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 { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy(); + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HyperparameterTuningStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HyperparameterTuningStrategy(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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TrainingJobEarlyStoppingTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+   * a hyperparameter tuning job can be stopping early.
+   * Note that there's only a subset of built-in algorithms that supports early stopping.
+   * see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType} + */ + public static final class TrainingJobEarlyStoppingType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + TrainingJobEarlyStoppingTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainingJobEarlyStoppingType.newBuilder() to construct. + private TrainingJobEarlyStoppingType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrainingJobEarlyStoppingType() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrainingJobEarlyStoppingType( + 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; + 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value} + */ + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + * OFF = 0; + */ + OFF(0), + /** + * AUTO = 1; + */ + AUTO(1), + UNRECOGNIZED(-1), + ; + + /** + * OFF = 0; + */ + public static final int OFF_VALUE = 0; + /** + * AUTO = 1; + */ + public static final int AUTO_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } + + public static Value forNumber(int value) { + switch (value) { + case 0: return OFF; + case 1: return AUTO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value 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 Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - *
-       * The target metric name, which is the user-defined name of the metric specified in the
-       * training job's algorithm specification
-       * 
- * - * string metric_name = 2; - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType 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(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType 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; + } + /** + *
+     * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+     * a hyperparameter tuning job can be stopping early.
+     * Note that there's only a subset of built-in algorithms that supports early stopping.
+     * see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - /** - *
-       * The target metric name, which is the user-defined name of the metric specified in the
-       * training job's algorithm specification
-       * 
- * - * string metric_name = 2; - */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metricName_ = value; - onChanged(); + @java.lang.Override + public Builder clear() { + super.clear(); return this; } - /** - *
-       * The target metric name, which is the user-defined name of the metric specified in the
-       * training job's algorithm specification
-       * 
- * - * string metric_name = 2; - */ - public Builder clearMetricName() { - - metricName_ = getDefaultInstance().getMetricName(); + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType build() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType buildPartial() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType(this); + 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType) { + return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType other) { + if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - /** - *
-       * The target metric name, which is the user-defined name of the metric specified in the
-       * training job's algorithm specification
-       * 
- * - * string metric_name = 2; - */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metricName_ = value; - onChanged(); + + @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 { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } @java.lang.Override @@ -1608,48 +3061,48 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) } - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) - private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType(); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getDefaultInstance() { + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public HyperparameterTuningObjective parsePartialFrom( + public TrainingJobEarlyStoppingType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new HyperparameterTuningObjective(input, extensionRegistry); + return new TrainingJobEarlyStoppingType(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface HyperparameterTuningSpecificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) + public interface HyperparameterTuningJobConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) com.google.protobuf.MessageOrBuilder { /** @@ -1666,13 +3119,13 @@ public interface HyperparameterTuningSpecificationOrBuilder extends flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder(); /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ int getTuningStrategyValue(); /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy getTuningStrategy(); + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value getTuningStrategy(); /** * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; @@ -1688,31 +3141,32 @@ public interface HyperparameterTuningSpecificationOrBuilder extends flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder(); /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ int getTrainingJobEarlyStoppingTypeValue(); /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType(); + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value getTrainingJobEarlyStoppingType(); } /** *
    * The specification of the hyperparameter tuning process
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning-job.html#automatic-model-tuning-ex-low-tuning-config
    * 
* - * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningSpecification} + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig} */ - public static final class HyperparameterTuningSpecification extends + public static final class HyperparameterTuningJobConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) - HyperparameterTuningSpecificationOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + HyperparameterTuningJobConfigOrBuilder { private static final long serialVersionUID = 0L; - // Use HyperparameterTuningSpecification.newBuilder() to construct. - private HyperparameterTuningSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use HyperparameterTuningJobConfig.newBuilder() to construct. + private HyperparameterTuningJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HyperparameterTuningSpecification() { + private HyperparameterTuningJobConfig() { tuningStrategy_ = 0; trainingJobEarlyStoppingType_ = 0; } @@ -1722,7 +3176,7 @@ private HyperparameterTuningSpecification() { getUnknownFields() { return this.unknownFields; } - private HyperparameterTuningSpecification( + private HyperparameterTuningJobConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1800,218 +3254,15 @@ private HyperparameterTuningSpecification( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor; + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_fieldAccessorTable + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy} - */ - public enum HyperparameterTuningStrategy - implements com.google.protobuf.ProtocolMessageEnum { - /** - * BAYESIAN = 0; - */ - BAYESIAN(0), - /** - * RANDOM = 1; - */ - RANDOM(1), - UNRECOGNIZED(-1), - ; - - /** - * BAYESIAN = 0; - */ - public static final int BAYESIAN_VALUE = 0; - /** - * RANDOM = 1; - */ - public static final int RANDOM_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HyperparameterTuningStrategy valueOf(int value) { - return forNumber(value); - } - - public static HyperparameterTuningStrategy forNumber(int value) { - switch (value) { - case 0: return BAYESIAN; - case 1: return RANDOM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HyperparameterTuningStrategy> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HyperparameterTuningStrategy findValueByNumber(int number) { - return HyperparameterTuningStrategy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.getDescriptor().getEnumTypes().get(0); - } - - private static final HyperparameterTuningStrategy[] VALUES = values(); - - public static HyperparameterTuningStrategy 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 HyperparameterTuningStrategy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy) - } - - /** - *
-     * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
-     * a hyperparameter tuning job can be stopping early.
-     * Note that there's only a subset of built-in algorithms that supports early stopping.
-     * see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html
-     * 
- * - * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType} - */ - public enum TrainingJobEarlyStoppingType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * OFF = 0; - */ - OFF(0), - /** - * AUTO = 1; - */ - AUTO(1), - UNRECOGNIZED(-1), - ; - - /** - * OFF = 0; - */ - public static final int OFF_VALUE = 0; - /** - * AUTO = 1; - */ - public static final int AUTO_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TrainingJobEarlyStoppingType valueOf(int value) { - return forNumber(value); - } - - public static TrainingJobEarlyStoppingType forNumber(int value) { - switch (value) { - case 0: return OFF; - case 1: return AUTO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TrainingJobEarlyStoppingType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TrainingJobEarlyStoppingType findValueByNumber(int number) { - return TrainingJobEarlyStoppingType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.getDescriptor().getEnumTypes().get(1); - } - - private static final TrainingJobEarlyStoppingType[] VALUES = values(); - - public static TrainingJobEarlyStoppingType 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 TrainingJobEarlyStoppingType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType) + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.Builder.class); } public static final int HYPERPARAMETER_RANGES_FIELD_NUMBER = 1; @@ -2038,18 +3289,18 @@ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBui public static final int TUNING_STRATEGY_FIELD_NUMBER = 2; private int tuningStrategy_; /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ public int getTuningStrategyValue() { return tuningStrategy_; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy getTuningStrategy() { + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value getTuningStrategy() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy.valueOf(tuningStrategy_); - return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value.valueOf(tuningStrategy_); + return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value.UNRECOGNIZED : result; } public static final int TUNING_OBJECTIVE_FIELD_NUMBER = 3; @@ -2076,18 +3327,18 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet public static final int TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER = 4; private int trainingJobEarlyStoppingType_; /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ public int getTrainingJobEarlyStoppingTypeValue() { return trainingJobEarlyStoppingType_; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value getTrainingJobEarlyStoppingType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); - return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value.valueOf(trainingJobEarlyStoppingType_); + return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -2107,13 +3358,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (hyperparameterRanges_ != null) { output.writeMessage(1, getHyperparameterRanges()); } - if (tuningStrategy_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { + if (tuningStrategy_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value.BAYESIAN.getNumber()) { output.writeEnum(2, tuningStrategy_); } if (tuningObjective_ != null) { output.writeMessage(3, getTuningObjective()); } - if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.OFF.getNumber()) { + if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value.OFF.getNumber()) { output.writeEnum(4, trainingJobEarlyStoppingType_); } unknownFields.writeTo(output); @@ -2129,7 +3380,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHyperparameterRanges()); } - if (tuningStrategy_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy.BAYESIAN.getNumber()) { + if (tuningStrategy_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value.BAYESIAN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, tuningStrategy_); } @@ -2137,7 +3388,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTuningObjective()); } - if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.OFF.getNumber()) { + if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value.OFF.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, trainingJobEarlyStoppingType_); } @@ -2151,10 +3402,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification) obj; + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig) obj; if (hasHyperparameterRanges() != other.hasHyperparameterRanges()) return false; if (hasHyperparameterRanges()) { @@ -2196,69 +3447,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig 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 flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parseFrom( + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2271,7 +3522,7 @@ public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyper public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2289,28 +3540,29 @@ protected Builder newBuilderForType( /** *
      * The specification of the hyperparameter tuning process
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning-job.html#automatic-model-tuning-ex-low-tuning-config
      * 
* - * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningSpecification} + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecificationOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor; + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_fieldAccessorTable + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.Builder.class); + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.newBuilder() + // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2350,17 +3602,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor; + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.getDefaultInstance(); + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification build() { - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification result = buildPartial(); + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig build() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2368,8 +3620,8 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet } @java.lang.Override - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification buildPartial() { - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification(this); + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig buildPartial() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig(this); if (hyperparameterRangesBuilder_ == null) { result.hyperparameterRanges_ = hyperparameterRanges_; } else { @@ -2420,16 +3672,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification) { - return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification)other); + if (other instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification other) { - if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig other) { + if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.getDefaultInstance()) return this; if (other.hasHyperparameterRanges()) { mergeHyperparameterRanges(other.getHyperparameterRanges()); } @@ -2457,11 +3709,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification parsedMessage = null; + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2590,13 +3842,13 @@ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBui private int tuningStrategy_ = 0; /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ public int getTuningStrategyValue() { return tuningStrategy_; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ public Builder setTuningStrategyValue(int value) { tuningStrategy_ = value; @@ -2604,17 +3856,17 @@ public Builder setTuningStrategyValue(int value) { return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy getTuningStrategy() { + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value getTuningStrategy() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy.valueOf(tuningStrategy_); - return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value.valueOf(tuningStrategy_); + return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value.UNRECOGNIZED : result; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ - public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.HyperparameterTuningStrategy value) { + public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value value) { if (value == null) { throw new NullPointerException(); } @@ -2624,7 +3876,7 @@ public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HyperparameterTuning return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy tuning_strategy = 2; + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ public Builder clearTuningStrategy() { @@ -2752,13 +4004,13 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet private int trainingJobEarlyStoppingType_ = 0; /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ public int getTrainingJobEarlyStoppingTypeValue() { return trainingJobEarlyStoppingType_; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ public Builder setTrainingJobEarlyStoppingTypeValue(int value) { trainingJobEarlyStoppingType_ = value; @@ -2766,17 +4018,17 @@ public Builder setTrainingJobEarlyStoppingTypeValue(int value) { return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType getTrainingJobEarlyStoppingType() { + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value getTrainingJobEarlyStoppingType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.valueOf(trainingJobEarlyStoppingType_); - return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value.valueOf(trainingJobEarlyStoppingType_); + return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value.UNRECOGNIZED : result; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ - public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType value) { + public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value value) { if (value == null) { throw new NullPointerException(); } @@ -2786,7 +4038,7 @@ public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.Hyperp return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType training_job_early_stopping_type = 4; + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ public Builder clearTrainingJobEarlyStoppingType() { @@ -2807,41 +4059,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) } - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) - private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig(); } - public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification getDefaultInstance() { + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public HyperparameterTuningSpecification parsePartialFrom( + public HyperparameterTuningJobConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new HyperparameterTuningSpecification(input, extensionRegistry); + return new HyperparameterTuningJobConfig(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningSpecification getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2852,16 +4104,31 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor; + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -2879,29 +4146,27 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet "meterTuningJob\022=\n\014training_job\030\001 \001(\0132\'.f" + "lyteidl.plugins.sagemaker.TrainingJob\022#\n" + "\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032ma" + - "x_parallel_training_jobs\030\003 \001(\003\"\352\001\n\035Hyper" + - "parameterTuningObjective\022s\n\016objective_ty" + - "pe\030\001 \001(\0162[.flyteidl.plugins.sagemaker.Hy" + - "perparameterTuningObjective.Hyperparamet" + - "erTuningObjectiveType\022\023\n\013metric_name\030\002 \001" + - "(\t\"?\n!HyperparameterTuningObjectiveType\022" + - "\014\n\010MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\255\004\n!Hyperpar" + - "ameterTuningSpecification\022J\n\025hyperparame" + - "ter_ranges\030\001 \001(\0132+.flyteidl.plugins.sage" + - "maker.ParameterRanges\022s\n\017tuning_strategy" + - "\030\002 \001(\0162Z.flyteidl.plugins.sagemaker.Hype" + - "rparameterTuningSpecification.Hyperparam" + - "eterTuningStrategy\022S\n\020tuning_objective\030\003" + + "x_parallel_training_jobs\030\003 \001(\003\"H\n!Hyperp" + + "arameterTuningObjectiveType\"#\n\005Value\022\014\n\010" + + "MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\221\001\n\035Hyperparame" + + "terTuningObjective\022[\n\016objective_type\030\001 \001" + + "(\0162C.flyteidl.plugins.sagemaker.Hyperpar" + + "ameterTuningObjectiveType.Value\022\023\n\013metri" + + "c_name\030\002 \001(\t\"A\n\034HyperparameterTuningStra" + + "tegy\"!\n\005Value\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"" + + ":\n\034TrainingJobEarlyStoppingType\"\032\n\005Value" + + "\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\203\003\n\035HyperparameterTu" + + "ningJobConfig\022J\n\025hyperparameter_ranges\030\001" + + " \001(\0132+.flyteidl.plugins.sagemaker.Parame" + + "terRanges\022W\n\017tuning_strategy\030\002 \001(\0162>.fly" + + "teidl.plugins.sagemaker.HyperparameterTu" + + "ningStrategy.Value\022S\n\020tuning_objective\030\003" + " \001(\01329.flyteidl.plugins.sagemaker.Hyperp" + - "arameterTuningObjective\022\204\001\n training_job" + - "_early_stopping_type\030\004 \001(\0162Z.flyteidl.pl" + - "ugins.sagemaker.HyperparameterTuningSpec" + - "ification.TrainingJobEarlyStoppingType\"8" + - "\n\034HyperparameterTuningStrategy\022\014\n\010BAYESI" + - "AN\020\000\022\n\n\006RANDOM\020\001\"1\n\034TrainingJobEarlyStop" + - "pingType\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001B5Z3github.co" + - "m/lyft/flyteidl/gen/pb-go/flyteidl/plugi" + - "nsb\006proto3" + "arameterTuningObjective\022h\n training_job_" + + "early_stopping_type\030\004 \001(\0162>.flyteidl.plu" + + "gins.sagemaker.TrainingJobEarlyStoppingT" + + "ype.ValueB5Z3github.com/lyft/flyteidl/ge" + + "n/pb-go/flyteidl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -2923,17 +4188,35 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor, new java.lang.String[] { "TrainingJob", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", }); - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor = + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor, new java.lang.String[] { "ObjectiveType", "MetricName", }); - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningSpecification_descriptor, + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_descriptor, new java.lang.String[] { "HyperparameterRanges", "TuningStrategy", "TuningObjective", "TrainingJobEarlyStoppingType", }); flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java index f0ca894f1..ae4c37d31 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java @@ -14,125 +14,541 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } + public interface HyperparameterScalingTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterScalingType) + com.google.protobuf.MessageOrBuilder { + } /** *
    * HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter
    * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
    * 
* - * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterScalingType} + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterScalingType} */ - public enum HyperparameterScalingType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * AUTO = 0; - */ - AUTO(0), - /** - * LINEAR = 1; - */ - LINEAR(1), - /** - * LOGARITHMIC = 2; - */ - LOGARITHMIC(2), - /** - * REVERSELOGARITHMIC = 3; - */ - REVERSELOGARITHMIC(3), - UNRECOGNIZED(-1), - ; + public static final class HyperparameterScalingType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterScalingType) + HyperparameterScalingTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use HyperparameterScalingType.newBuilder() to construct. + private HyperparameterScalingType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HyperparameterScalingType() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HyperparameterScalingType( + 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; + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Builder.class); + } /** - * AUTO = 0; - */ - public static final int AUTO_VALUE = 0; - /** - * LINEAR = 1; - */ - public static final int LINEAR_VALUE = 1; - /** - * LOGARITHMIC = 2; - */ - public static final int LOGARITHMIC_VALUE = 2; - /** - * REVERSELOGARITHMIC = 3; + * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterScalingType.Value} */ - public static final int REVERSELOGARITHMIC_VALUE = 3; + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + * AUTO = 0; + */ + AUTO(0), + /** + * LINEAR = 1; + */ + LINEAR(1), + /** + * LOGARITHMIC = 2; + */ + LOGARITHMIC(2), + /** + * REVERSELOGARITHMIC = 3; + */ + REVERSELOGARITHMIC(3), + UNRECOGNIZED(-1), + ; + + /** + * AUTO = 0; + */ + public static final int AUTO_VALUE = 0; + /** + * LINEAR = 1; + */ + public static final int LINEAR_VALUE = 1; + /** + * LOGARITHMIC = 2; + */ + public static final int LOGARITHMIC_VALUE = 2; + /** + * REVERSELOGARITHMIC = 3; + */ + public static final int REVERSELOGARITHMIC_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; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); + public static Value forNumber(int value) { + switch (value) { + case 0: return AUTO; + case 1: return LINEAR; + case 2: return LOGARITHMIC; + case 3: return REVERSELOGARITHMIC; + default: return null; + } } - return value; + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value 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 Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType.Value) } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HyperparameterScalingType valueOf(int value) { - return forNumber(value); + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; } - public static HyperparameterScalingType forNumber(int value) { - switch (value) { - case 0: return AUTO; - case 1: return LINEAR; - case 2: return LOGARITHMIC; - case 3: return REVERSELOGARITHMIC; - default: return null; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType)) { + return super.equals(obj); } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } - private static final com.google.protobuf.Internal.EnumLiteMap< - HyperparameterScalingType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HyperparameterScalingType findValueByNumber(int number) { - return HyperparameterScalingType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor().getEnumTypes().get(0); + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType 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(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType 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; + } + /** + *
+     * HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterScalingType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterScalingType) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType(this); + 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 flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } - private static final HyperparameterScalingType[] VALUES = values(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static HyperparameterScalingType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HyperparameterScalingType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HyperparameterScalingType(input, extensionRegistry); } - return VALUES[desc.getIndex()]; + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - private final int value; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private HyperparameterScalingType(int value) { - this.value = value; + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) } public interface ContinuousParameterRangeOrBuilder extends @@ -150,18 +566,19 @@ public interface ContinuousParameterRangeOrBuilder extends double getMinValue(); /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ int getScalingTypeValue(); /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value getScalingType(); } /** *
    * ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
    * users to specify the search space of a floating-point hyperparameter
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
    * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} @@ -272,18 +689,18 @@ public double getMinValue() { public static final int SCALING_TYPE_FIELD_NUMBER = 3; private int scalingType_; /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value getScalingType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -306,7 +723,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (minValue_ != 0D) { output.writeDouble(2, minValue_); } - if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.AUTO.getNumber()) { output.writeEnum(3, scalingType_); } unknownFields.writeTo(output); @@ -326,7 +743,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, minValue_); } - if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.AUTO.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, scalingType_); } @@ -470,6 +887,7 @@ protected Builder newBuilderForType( *
      * ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
      * users to specify the search space of a floating-point hyperparameter
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
      * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} @@ -684,13 +1102,13 @@ public Builder clearMinValue() { private int scalingType_ = 0; /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ public Builder setScalingTypeValue(int value) { scalingType_ = value; @@ -698,17 +1116,17 @@ public Builder setScalingTypeValue(int value) { return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value getScalingType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.UNRECOGNIZED : result; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ - public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) { + public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value value) { if (value == null) { throw new NullPointerException(); } @@ -718,7 +1136,7 @@ public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterCla return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ public Builder clearScalingType() { @@ -794,18 +1212,19 @@ public interface IntegerParameterRangeOrBuilder extends long getMinValue(); /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ int getScalingTypeValue(); /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType(); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value getScalingType(); } /** *
    * IntegerParameterRange refers to a discrete range of hyperparameter values, allowing
    * users to specify the search space of an integer hyperparameter
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
    * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} @@ -916,18 +1335,18 @@ public long getMinValue() { public static final int SCALING_TYPE_FIELD_NUMBER = 3; private int scalingType_; /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value getScalingType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -950,7 +1369,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (minValue_ != 0L) { output.writeInt64(2, minValue_); } - if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.AUTO.getNumber()) { output.writeEnum(3, scalingType_); } unknownFields.writeTo(output); @@ -970,7 +1389,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, minValue_); } - if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.AUTO.getNumber()) { + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.AUTO.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, scalingType_); } @@ -1112,6 +1531,7 @@ protected Builder newBuilderForType( *
      * IntegerParameterRange refers to a discrete range of hyperparameter values, allowing
      * users to specify the search space of an integer hyperparameter
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
      * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} @@ -1326,13 +1746,13 @@ public Builder clearMinValue() { private int scalingType_ = 0; /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ public int getScalingTypeValue() { return scalingType_; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ public Builder setScalingTypeValue(int value) { scalingType_ = value; @@ -1340,17 +1760,17 @@ public Builder setScalingTypeValue(int value) { return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ - public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getScalingType() { + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value getScalingType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.valueOf(scalingType_); - return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.UNRECOGNIZED : result; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ - public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType value) { + public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value value) { if (value == null) { throw new NullPointerException(); } @@ -1360,7 +1780,7 @@ public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterCla return this; } /** - * .flyteidl.plugins.sagemaker.HyperparameterScalingType scaling_type = 3; + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; */ public Builder clearScalingType() { @@ -1448,6 +1868,7 @@ public interface CategoricalParameterRangeOrBuilder extends *
    * ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
    * users to specify the search space of a floating-point hyperparameter
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
    * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} @@ -1727,6 +2148,7 @@ protected Builder newBuilderForType( *
      * ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
      * users to specify the search space of a floating-point hyperparameter
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
      * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} @@ -3206,6 +3628,7 @@ flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getPara /** *
    * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
    * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} @@ -3548,6 +3971,7 @@ protected Builder newBuilderForType( /** *
      * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
      * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} @@ -3894,6 +4318,11 @@ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getD } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; private static final @@ -3935,32 +4364,33 @@ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getD java.lang.String[] descriptorData = { "\n1flyteidl/plugins/sagemaker/parameter_r" + "anges.proto\022\032flyteidl.plugins.sagemaker\"" + - "\215\001\n\030ContinuousParameterRange\022\021\n\tmax_valu" + - "e\030\001 \001(\001\022\021\n\tmin_value\030\002 \001(\001\022K\n\014scaling_ty" + - "pe\030\003 \001(\01625.flyteidl.plugins.sagemaker.Hy" + - "perparameterScalingType\"\212\001\n\025IntegerParam" + - "eterRange\022\021\n\tmax_value\030\001 \001(\003\022\021\n\tmin_valu" + - "e\030\002 \001(\003\022K\n\014scaling_type\030\003 \001(\01625.flyteidl" + + "c\n\031HyperparameterScalingType\"F\n\005Value\022\010\n" + + "\004AUTO\020\000\022\n\n\006LINEAR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022" + + "REVERSELOGARITHMIC\020\003\"\223\001\n\030ContinuousParam" + + "eterRange\022\021\n\tmax_value\030\001 \001(\001\022\021\n\tmin_valu" + + "e\030\002 \001(\001\022Q\n\014scaling_type\030\003 \001(\0162;.flyteidl" + ".plugins.sagemaker.HyperparameterScaling" + - "Type\"+\n\031CategoricalParameterRange\022\016\n\006val" + - "ues\030\001 \003(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032con" + - "tinuous_parameter_range\030\001 \001(\01324.flyteidl" + - ".plugins.sagemaker.ContinuousParameterRa" + - "ngeH\000\022T\n\027integer_parameter_range\030\002 \001(\01321" + - ".flyteidl.plugins.sagemaker.IntegerParam" + - "eterRangeH\000\022\\\n\033categorical_parameter_ran" + - "ge\030\003 \001(\01325.flyteidl.plugins.sagemaker.Ca" + - "tegoricalParameterRangeH\000B\026\n\024parameter_r" + - "ange_type\"\335\001\n\017ParameterRanges\022_\n\023paramet" + - "er_range_map\030\001 \003(\0132B.flyteidl.plugins.sa" + - "gemaker.ParameterRanges.ParameterRangeMa" + - "pEntry\032i\n\026ParameterRangeMapEntry\022\013\n\003key\030" + - "\001 \001(\t\022>\n\005value\030\002 \001(\0132/.flyteidl.plugins." + - "sagemaker.ParameterRangeOneOf:\0028\001*Z\n\031Hyp" + - "erparameterScalingType\022\010\n\004AUTO\020\000\022\n\n\006LINE" + - "AR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022REVERSELOGARITH" + - "MIC\020\003B5Z3github.com/lyft/flyteidl/gen/pb" + - "-go/flyteidl/pluginsb\006proto3" + "Type.Value\"\220\001\n\025IntegerParameterRange\022\021\n\t" + + "max_value\030\001 \001(\003\022\021\n\tmin_value\030\002 \001(\003\022Q\n\014sc" + + "aling_type\030\003 \001(\0162;.flyteidl.plugins.sage" + + "maker.HyperparameterScalingType.Value\"+\n" + + "\031CategoricalParameterRange\022\016\n\006values\030\001 \003" + + "(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032continuous" + + "_parameter_range\030\001 \001(\01324.flyteidl.plugin" + + "s.sagemaker.ContinuousParameterRangeH\000\022T" + + "\n\027integer_parameter_range\030\002 \001(\01321.flytei" + + "dl.plugins.sagemaker.IntegerParameterRan" + + "geH\000\022\\\n\033categorical_parameter_range\030\003 \001(" + + "\01325.flyteidl.plugins.sagemaker.Categoric" + + "alParameterRangeH\000B\026\n\024parameter_range_ty" + + "pe\"\335\001\n\017ParameterRanges\022_\n\023parameter_rang" + + "e_map\030\001 \003(\0132B.flyteidl.plugins.sagemaker" + + ".ParameterRanges.ParameterRangeMapEntry\032" + + "i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001 \001(\t\022>" + + "\n\005value\030\002 \001(\0132/.flyteidl.plugins.sagemak" + + "er.ParameterRangeOneOf:\0028\001B5Z3github.com" + + "/lyft/flyteidl/gen/pb-go/flyteidl/plugin" + + "sb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3974,32 +4404,38 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); - internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor = + internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor, new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(2); internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor, new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor, new java.lang.String[] { "Values", }); internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor, new java.lang.String[] { "ContinuousParameterRange", "IntegerParameterRange", "CategoricalParameterRange", "ParameterRangeType", }); internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor, diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java index f879c85bc..202417a23 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -14,200 +14,1022 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } + public interface InputModeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.InputMode) + com.google.protobuf.MessageOrBuilder { + } /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.InputMode} + * Protobuf type {@code flyteidl.plugins.sagemaker.InputMode} */ - public enum InputMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - * FILE = 0; - */ - FILE(0), - /** - * PIPE = 1; - */ - PIPE(1), - UNRECOGNIZED(-1), - ; + public static final class InputMode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.InputMode) + InputModeOrBuilder { + private static final long serialVersionUID = 0L; + // Use InputMode.newBuilder() to construct. + private InputMode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InputMode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InputMode( + 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; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputMode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputMode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Builder.class); + } /** - * FILE = 0; + * Protobuf enum {@code flyteidl.plugins.sagemaker.InputMode.Value} */ - public static final int FILE_VALUE = 0; + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + * FILE = 0; + */ + FILE(0), + /** + * PIPE = 1; + */ + PIPE(1), + UNRECOGNIZED(-1), + ; + + /** + * FILE = 0; + */ + public static final int FILE_VALUE = 0; + /** + * PIPE = 1; + */ + public static final int PIPE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } + + public static Value forNumber(int value) { + switch (value) { + case 0: return FILE; + case 1: return PIPE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value 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 Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputMode.Value) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode 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; + } /** - * PIPE = 1; + * Protobuf type {@code flyteidl.plugins.sagemaker.InputMode} */ - public static final int PIPE_VALUE = 1; + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.InputMode) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputModeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputMode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputMode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Builder.class); + } + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - return value; + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputMode_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode(this); + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.getDefaultInstance()) return this; + 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 { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.plugins.sagemaker.InputMode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputMode) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputMode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputMode(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AlgorithmNameOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmName) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmName} + */ + public static final class AlgorithmName extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmName) + AlgorithmNameOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlgorithmName.newBuilder() to construct. + private AlgorithmName(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlgorithmName() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AlgorithmName( + 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; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.AlgorithmName.Value} + */ + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CUSTOM = 0; + */ + CUSTOM(0), + /** + * XGBOOST = 1; + */ + XGBOOST(1), + UNRECOGNIZED(-1), + ; + + /** + * CUSTOM = 0; + */ + public static final int CUSTOM_VALUE = 0; + /** + * XGBOOST = 1; + */ + public static final int XGBOOST_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } + + public static Value forNumber(int value) { + switch (value) { + case 0: return CUSTOM; + case 1: return XGBOOST; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value 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 Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.AlgorithmName.Value) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InputMode valueOf(int value) { - return forNumber(value); + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - - public static InputMode forNumber(int value) { - switch (value) { - case 0: return FILE; - case 1: return PIPE; - default: return null; - } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - private static final com.google.protobuf.Internal.EnumLiteMap< - InputMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InputMode findValueByNumber(int number) { - return InputMode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(0); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - private static final InputMode[] VALUES = values(); + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmName} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmName) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmNameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor; + } - public static InputMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Builder.class); } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - return VALUES[desc.getIndex()]; - } - private final int value; + 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(); + return this; + } - private InputMode(int value) { - this.value = value; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor; + } - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputMode) - } + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.getDefaultInstance(); + } - /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.AlgorithmName} - */ - public enum AlgorithmName - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CUSTOM = 0; - */ - CUSTOM(0), - /** - * XGBOOST = 1; - */ - XGBOOST(1), - UNRECOGNIZED(-1), - ; + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * CUSTOM = 0; - */ - public static final int CUSTOM_VALUE = 0; - /** - * XGBOOST = 1; - */ - public static final int XGBOOST_VALUE = 1; + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName(this); + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName)other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); + @java.lang.Override + public final boolean isInitialized() { + return true; } - return value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AlgorithmName valueOf(int value) { - return forNumber(value); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static AlgorithmName forNumber(int value) { - switch (value) { - case 0: return CUSTOM; - case 1: return XGBOOST; - default: return null; + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AlgorithmName> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AlgorithmName findValueByNumber(int number) { - return AlgorithmName.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.AlgorithmName) } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor().getEnumTypes().get(1); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmName) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName(); } - private static final AlgorithmName[] VALUES = values(); + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static AlgorithmName 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; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlgorithmName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AlgorithmName(input, extensionRegistry); } - return VALUES[desc.getIndex()]; + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - private final int value; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private AlgorithmName(int value) { - this.value = value; + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.AlgorithmName) } public interface AlgorithmSpecificationOrBuilder extends @@ -219,7 +1041,7 @@ public interface AlgorithmSpecificationOrBuilder extends * The input mode can be either PIPE or FILE *
* - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; */ int getInputModeValue(); /** @@ -227,9 +1049,9 @@ public interface AlgorithmSpecificationOrBuilder extends * The input mode can be either PIPE or FILE *
* - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value getInputMode(); /** *
@@ -237,7 +1059,7 @@ public interface AlgorithmSpecificationOrBuilder extends
      * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
      * 
* - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; */ int getAlgorithmNameValue(); /** @@ -246,9 +1068,9 @@ public interface AlgorithmSpecificationOrBuilder extends * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen *
* - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value getAlgorithmName(); /** *
@@ -320,6 +1142,14 @@ flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDe
         int index);
   }
   /**
+   * 
+   * Specifies the training algorithm to be used in the training job
+   * This object is mostly a pass-through, with the exception that when users want to supply custom algorithms
+   * they should set algorithm_name field to CUSTOM. In this case, the value of the algorithm_version field has no effect
+   * For pass-through use cases: refer to this AWS official document for more details
+   * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+   * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} */ public static final class AlgorithmSpecification extends @@ -1190,7 +2020,7 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.M * The input mode can be either PIPE or FILE *
* - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; */ public int getInputModeValue() { return inputMode_; @@ -1200,12 +2030,12 @@ public int getInputModeValue() { * The input mode can be either PIPE or FILE *
* - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value getInputMode() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value.valueOf(inputMode_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value.UNRECOGNIZED : result; } public static final int ALGORITHM_NAME_FIELD_NUMBER = 2; @@ -1216,7 +2046,7 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen *
* - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; */ public int getAlgorithmNameValue() { return algorithmName_; @@ -1227,12 +2057,12 @@ public int getAlgorithmNameValue() { * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen *
* - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value getAlgorithmName() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value.valueOf(algorithmName_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value.UNRECOGNIZED : result; } public static final int ALGORITHM_VERSION_FIELD_NUMBER = 3; @@ -1353,10 +2183,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) { + if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value.FILE.getNumber()) { output.writeEnum(1, inputMode_); } - if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) { + if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value.CUSTOM.getNumber()) { output.writeEnum(2, algorithmName_); } if (!getAlgorithmVersionBytes().isEmpty()) { @@ -1374,11 +2204,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.FILE.getNumber()) { + if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value.FILE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, inputMode_); } - if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.CUSTOM.getNumber()) { + if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value.CUSTOM.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, algorithmName_); } @@ -1527,6 +2357,14 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * Specifies the training algorithm to be used in the training job
+     * This object is mostly a pass-through, with the exception that when users want to supply custom algorithms
+     * they should set algorithm_name field to CUSTOM. In this case, the value of the algorithm_version field has no effect
+     * For pass-through use cases: refer to this AWS official document for more details
+     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} */ public static final class Builder extends @@ -1738,7 +2576,7 @@ public Builder mergeFrom( * The input mode can be either PIPE or FILE *
* - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; */ public int getInputModeValue() { return inputMode_; @@ -1748,7 +2586,7 @@ public int getInputModeValue() { * The input mode can be either PIPE or FILE *
* - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; */ public Builder setInputModeValue(int value) { inputMode_ = value; @@ -1760,21 +2598,21 @@ public Builder setInputModeValue(int value) { * The input mode can be either PIPE or FILE * * - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getInputMode() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value getInputMode() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.valueOf(inputMode_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value.valueOf(inputMode_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value.UNRECOGNIZED : result; } /** *
        * The input mode can be either PIPE or FILE
        * 
* - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; */ - public Builder setInputMode(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode value) { + public Builder setInputMode(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value value) { if (value == null) { throw new NullPointerException(); } @@ -1788,7 +2626,7 @@ public Builder setInputMode(flyteidl.plugins.sagemaker.TrainingJobOuterClass.Inp * The input mode can be either PIPE or FILE * * - * .flyteidl.plugins.sagemaker.InputMode input_mode = 1; + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; */ public Builder clearInputMode() { @@ -1804,7 +2642,7 @@ public Builder clearInputMode() { * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen * * - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; */ public int getAlgorithmNameValue() { return algorithmName_; @@ -1815,7 +2653,7 @@ public int getAlgorithmNameValue() { * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen * * - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; */ public Builder setAlgorithmNameValue(int value) { algorithmName_ = value; @@ -1828,12 +2666,12 @@ public Builder setAlgorithmNameValue(int value) { * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen * * - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorithmName() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value getAlgorithmName() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.valueOf(algorithmName_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value.valueOf(algorithmName_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value.UNRECOGNIZED : result; } /** *
@@ -1841,9 +2679,9 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getAlgorit
        * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
        * 
* - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; */ - public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName value) { + public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value value) { if (value == null) { throw new NullPointerException(); } @@ -1858,7 +2696,7 @@ public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen * * - * .flyteidl.plugins.sagemaker.AlgorithmName algorithm_name = 2; + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; */ public Builder clearAlgorithmName() { @@ -2343,14 +3181,13 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification g } - public interface TrainingJobConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJobConfig) + public interface TrainingJobResourceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) com.google.protobuf.MessageOrBuilder { /** *
      * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
-     * This is for multi-node training, not multi-GPU training
      * 
* * int64 instance_count = 1; @@ -2385,18 +3222,24 @@ public interface TrainingJobConfigOrBuilder extends long getVolumeSizeInGb(); } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobConfig} + *
+   * TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the
+   * number of instances to launch, and the size of the ML storage volume the user wants to provision
+   * Refer to SageMaker official doc for more details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobResourceConfig} */ - public static final class TrainingJobConfig extends + public static final class TrainingJobResourceConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) - TrainingJobConfigOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + TrainingJobResourceConfigOrBuilder { private static final long serialVersionUID = 0L; - // Use TrainingJobConfig.newBuilder() to construct. - private TrainingJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use TrainingJobResourceConfig.newBuilder() to construct. + private TrainingJobResourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TrainingJobConfig() { + private TrainingJobResourceConfig() { instanceType_ = ""; } @@ -2405,7 +3248,7 @@ private TrainingJobConfig() { getUnknownFields() { return this.unknownFields; } - private TrainingJobConfig( + private TrainingJobResourceConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2461,15 +3304,15 @@ private TrainingJobConfig( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder.class); } public static final int INSTANCE_COUNT_FIELD_NUMBER = 1; @@ -2477,7 +3320,6 @@ private TrainingJobConfig( /** *
      * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
-     * This is for multi-node training, not multi-GPU training
      * 
* * int64 instance_count = 1; @@ -2594,10 +3436,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) obj; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig) obj; if (getInstanceCount() != other.getInstanceCount()) return false; @@ -2629,69 +3471,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2704,7 +3546,7 @@ public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2720,26 +3562,32 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobConfig} + *
+     * TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the
+     * number of instances to launch, and the size of the ML storage volume the user wants to provision
+     * Refer to SageMaker official doc for more details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobResourceConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJobConfig) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.newBuilder() + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2769,17 +3617,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = buildPartial(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2787,8 +3635,8 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig build( } @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(this); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig(this); result.instanceCount_ = instanceCount_; result.instanceType_ = instanceType_; result.volumeSizeInGb_ = volumeSizeInGb_; @@ -2830,16 +3678,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig)other); + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance()) return this; if (other.getInstanceCount() != 0L) { setInstanceCount(other.getInstanceCount()); } @@ -2865,11 +3713,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig parsedMessage = null; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2883,7 +3731,6 @@ public Builder mergeFrom( /** *
        * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
-       * This is for multi-node training, not multi-GPU training
        * 
* * int64 instance_count = 1; @@ -2894,7 +3741,6 @@ public long getInstanceCount() { /** *
        * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
-       * This is for multi-node training, not multi-GPU training
        * 
* * int64 instance_count = 1; @@ -2908,7 +3754,6 @@ public Builder setInstanceCount(long value) { /** *
        * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
-       * This is for multi-node training, not multi-GPU training
        * 
* * int64 instance_count = 1; @@ -3059,41 +3904,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) } - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig(); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstance() { + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public TrainingJobConfig parsePartialFrom( + public TrainingJobResourceConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TrainingJobConfig(input, extensionRegistry); + return new TrainingJobResourceConfig(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3727,17 +4572,17 @@ public interface TrainingJobOrBuilder extends flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ boolean hasTrainingJobConfig(); /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getTrainingJobConfig(); /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder getTrainingJobConfigOrBuilder(); /** * bool interruptible = 3; @@ -3746,7 +4591,8 @@ public interface TrainingJobOrBuilder extends } /** *
-   * The spec of a training job
+   * The spec of a training job. This is mostly a pass-through object
+   * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
    * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} @@ -3801,11 +4647,11 @@ private TrainingJob( break; } case 18: { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder subBuilder = null; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder subBuilder = null; if (trainingJobConfig_ != null) { subBuilder = trainingJobConfig_.toBuilder(); } - trainingJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.parser(), extensionRegistry); + trainingJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(trainingJobConfig_); trainingJobConfig_ = subBuilder.buildPartial(); @@ -3872,23 +4718,23 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOr } public static final int TRAINING_JOB_CONFIG_FIELD_NUMBER = 2; - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig trainingJobConfig_; /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ public boolean hasTrainingJobConfig() { return trainingJobConfig_ != null; } /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { - return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getTrainingJobConfig() { + return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance() : trainingJobConfig_; } /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder getTrainingJobConfigOrBuilder() { return getTrainingJobConfig(); } @@ -4091,7 +4937,8 @@ protected Builder newBuilderForType( } /** *
-     * The spec of a training job
+     * The spec of a training job. This is mostly a pass-through object
+     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
      * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} @@ -4385,29 +5232,29 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOr return algorithmSpecificationBuilder_; } - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig trainingJobConfig_; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig trainingJobConfig_; private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> trainingJobConfigBuilder_; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder> trainingJobConfigBuilder_; /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ public boolean hasTrainingJobConfig() { return trainingJobConfigBuilder_ != null || trainingJobConfig_ != null; } /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig getTrainingJobConfig() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getTrainingJobConfig() { if (trainingJobConfigBuilder_ == null) { - return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; + return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance() : trainingJobConfig_; } else { return trainingJobConfigBuilder_.getMessage(); } } /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ - public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { + public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig value) { if (trainingJobConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4421,10 +5268,10 @@ public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterC return this; } /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ public Builder setTrainingJobConfig( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder builderForValue) { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder builderForValue) { if (trainingJobConfigBuilder_ == null) { trainingJobConfig_ = builderForValue.build(); onChanged(); @@ -4435,13 +5282,13 @@ public Builder setTrainingJobConfig( return this; } /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ - public Builder mergeTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig value) { + public Builder mergeTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig value) { if (trainingJobConfigBuilder_ == null) { if (trainingJobConfig_ != null) { trainingJobConfig_ = - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.newBuilder(trainingJobConfig_).mergeFrom(value).buildPartial(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.newBuilder(trainingJobConfig_).mergeFrom(value).buildPartial(); } else { trainingJobConfig_ = value; } @@ -4453,7 +5300,7 @@ public Builder mergeTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOute return this; } /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ public Builder clearTrainingJobConfig() { if (trainingJobConfigBuilder_ == null) { @@ -4467,33 +5314,33 @@ public Builder clearTrainingJobConfig() { return this; } /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder getTrainingJobConfigBuilder() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder getTrainingJobConfigBuilder() { onChanged(); return getTrainingJobConfigFieldBuilder().getBuilder(); } /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder getTrainingJobConfigOrBuilder() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder getTrainingJobConfigOrBuilder() { if (trainingJobConfigBuilder_ != null) { return trainingJobConfigBuilder_.getMessageOrBuilder(); } else { return trainingJobConfig_ == null ? - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.getDefaultInstance() : trainingJobConfig_; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance() : trainingJobConfig_; } } /** - * .flyteidl.plugins.sagemaker.TrainingJobConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder> + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder> getTrainingJobConfigFieldBuilder() { if (trainingJobConfigBuilder_ == null) { trainingJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobConfigOrBuilder>( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder>( getTrainingJobConfig(), getParentForChildren(), isClean()); @@ -4580,6 +5427,16 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_InputMode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_InputMode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_AlgorithmName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; private static final @@ -4591,10 +5448,10 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor; + internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; private static final @@ -4615,29 +5472,30 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn static { java.lang.String[] descriptorData = { "\n-flyteidl/plugins/sagemaker/training_jo" + - "b.proto\022\032flyteidl.plugins.sagemaker\"\303\002\n\026" + - "AlgorithmSpecification\0229\n\ninput_mode\030\001 \001" + - "(\0162%.flyteidl.plugins.sagemaker.InputMod" + - "e\022A\n\016algorithm_name\030\002 \001(\0162).flyteidl.plu" + - "gins.sagemaker.AlgorithmName\022\031\n\021algorith" + - "m_version\030\003 \001(\t\022_\n\022metric_definitions\030\004 " + - "\003(\0132C.flyteidl.plugins.sagemaker.Algorit" + - "hmSpecification.MetricDefinition\032/\n\020Metr" + - "icDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(" + - "\t\"]\n\021TrainingJobConfig\022\026\n\016instance_count" + - "\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_" + - "size_in_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n" + - "\026max_runtime_in_seconds\030\001 \001(\003\022 \n\030max_wai" + - "t_time_in_seconds\030\002 \001(\003\"\305\001\n\013TrainingJob\022" + - "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + - "idl.plugins.sagemaker.AlgorithmSpecifica" + - "tion\022J\n\023training_job_config\030\002 \001(\0132-.flyt" + - "eidl.plugins.sagemaker.TrainingJobConfig" + - "\022\025\n\rinterruptible\030\003 \001(\010*\037\n\tInputMode\022\010\n\004" + - "FILE\020\000\022\010\n\004PIPE\020\001*(\n\rAlgorithmName\022\n\n\006CUS" + - "TOM\020\000\022\013\n\007XGBOOST\020\001B5Z3github.com/lyft/fl" + - "yteidl/gen/pb-go/flyteidl/pluginsb\006proto" + - "3" + "b.proto\022\032flyteidl.plugins.sagemaker\"(\n\tI" + + "nputMode\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n" + + "\rAlgorithmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007X" + + "GBOOST\020\001\"\317\002\n\026AlgorithmSpecification\022?\n\ni" + + "nput_mode\030\001 \001(\0162+.flyteidl.plugins.sagem" + + "aker.InputMode.Value\022G\n\016algorithm_name\030\002" + + " \001(\0162/.flyteidl.plugins.sagemaker.Algori" + + "thmName.Value\022\031\n\021algorithm_version\030\003 \001(\t" + + "\022_\n\022metric_definitions\030\004 \003(\0132C.flyteidl." + + "plugins.sagemaker.AlgorithmSpecification" + + ".MetricDefinition\032/\n\020MetricDefinition\022\014\n" + + "\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"e\n\031TrainingJo" + + "bResourceConfig\022\026\n\016instance_count\030\001 \001(\003\022" + + "\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_size_in" + + "_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n\026max_ru" + + "ntime_in_seconds\030\001 \001(\003\022 \n\030max_wait_time_" + + "in_seconds\030\002 \001(\003\"\315\001\n\013TrainingJob\022S\n\027algo" + + "rithm_specification\030\001 \001(\01322.flyteidl.plu" + + "gins.sagemaker.AlgorithmSpecification\022R\n" + + "\023training_job_config\030\002 \001(\01325.flyteidl.pl" + + "ugins.sagemaker.TrainingJobResourceConfi" + + "g\022\025\n\rinterruptible\030\003 \001(\010B5Z3github.com/l" + + "yft/flyteidl/gen/pb-go/flyteidl/pluginsb" + + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -4651,8 +5509,20 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = + internal_static_flyteidl_plugins_sagemaker_InputMode_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_InputMode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_InputMode_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_AlgorithmName_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, @@ -4663,20 +5533,20 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, new java.lang.String[] { "Name", "Regex", }); - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_TrainingJobConfig_descriptor, + internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor, new java.lang.String[] { "InstanceCount", "InstanceType", "VolumeSizeInGb", }); internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(4); internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor, new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", }); internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(5); internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor, diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst index 3eeedef59..1f34fe02b 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst @@ -10,7 +10,7 @@ flyteidl.plugins.sagemaker.HyperparameterTuningJob `[flyteidl.plugins.sagemaker.HyperparameterTuningJob proto] `_ -The hyperparameter tuning job +A pass-through for SageMaker's hyperparameter tuning job .. code-block:: json @@ -30,141 +30,188 @@ training_job max_number_of_training_jobs (`int64 `_) The maximum number of training jobs that an hpo job can launch. For resource limit purpose. + https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html .. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningJob.max_parallel_training_jobs: max_parallel_training_jobs (`int64 `_) The maximum number of concurrent training job that an hpo job can launch + https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html -.. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningObjective: +.. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType: -flyteidl.plugins.sagemaker.HyperparameterTuningObjective --------------------------------------------------------- +flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType +------------------------------------------------------------ -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType proto] `_ -The objective of the hyperparameter tuning .. code-block:: json - { - "objective_type": "...", - "metric_name": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type: + {} -objective_type - (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType `) - -.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name: -metric_name - (`string `_) The target metric name, which is the user-defined name of the metric specified in the - training job's algorithm specification - - -.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType: +.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value: -Enum flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType ------------------------------------------------------------------------------------------------ +Enum flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value +----------------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value proto] `_ -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MINIMIZE: +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value.MINIMIZE: MINIMIZE *(DEFAULT)* ⁣ -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType.MAXIMIZE: +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value.MAXIMIZE: MAXIMIZE ⁣ -.. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification: +.. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningObjective: -flyteidl.plugins.sagemaker.HyperparameterTuningSpecification ------------------------------------------------------------- +flyteidl.plugins.sagemaker.HyperparameterTuningObjective +-------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningSpecification proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ -The specification of the hyperparameter tuning process +The objective of the hyperparameter tuning .. code-block:: json { - "hyperparameter_ranges": "{...}", - "tuning_strategy": "...", - "tuning_objective": "{...}", - "training_job_early_stopping_type": "..." + "objective_type": "...", + "metric_name": "..." } -.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.hyperparameter_ranges: +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type: -hyperparameter_ranges - (:ref:`flyteidl.plugins.sagemaker.ParameterRanges `) +objective_type + (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value `) -.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_strategy: +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name: -tuning_strategy - (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy `) +metric_name + (`string `_) The target metric name, which is the user-defined name of the metric specified in the + training job's algorithm specification -.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_objective: - -tuning_objective - (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjective `) -.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.training_job_early_stopping_type: -training_job_early_stopping_type - (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType `) - -.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy: +.. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningStrategy: + +flyteidl.plugins.sagemaker.HyperparameterTuningStrategy +------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HyperparameterTuningStrategy proto] `_ -Enum flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy ----------------------------------------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy proto] `_ +.. code-block:: json + + {} + + + +.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value: + +Enum flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value +------------------------------------------------------------------ +`[flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value proto] `_ -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy.BAYESIAN: + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value.BAYESIAN: BAYESIAN *(DEFAULT)* ⁣ -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy.RANDOM: +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value.RANDOM: RANDOM ⁣ -.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType: +.. _api_msg_flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType: -Enum flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType ----------------------------------------------------------------------------------------------- +flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType +------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType proto] `_ When the training jobs launched by the hyperparameter tuning job are not improving significantly, a hyperparameter tuning job can be stopping early. Note that there's only a subset of built-in algorithms that supports early stopping. see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.OFF: +.. code-block:: json + + {} + + + +.. _api_enum_flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value: + +Enum flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value +------------------------------------------------------------------ + +`[flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value.OFF: OFF *(DEFAULT)* ⁣ -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType.AUTO: +.. _api_enum_value_flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value.AUTO: AUTO ⁣ + +.. _api_msg_flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig: + +flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig +-------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig proto] `_ + +The specification of the hyperparameter tuning process +https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning-job.html#automatic-model-tuning-ex-low-tuning-config + +.. code-block:: json + + { + "hyperparameter_ranges": "{...}", + "tuning_strategy": "...", + "tuning_objective": "{...}", + "training_job_early_stopping_type": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.hyperparameter_ranges: + +hyperparameter_ranges + (:ref:`flyteidl.plugins.sagemaker.ParameterRanges `) + +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_strategy: + +tuning_strategy + (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value `) + +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_objective: + +tuning_objective + (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjective `) + +.. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.training_job_early_stopping_type: + +training_job_early_stopping_type + (:ref:`flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value `) + + diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst index 170893183..4d170ccfc 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst @@ -3,15 +3,61 @@ parameter_ranges.proto ================================================= +.. _api_msg_flyteidl.plugins.sagemaker.HyperparameterScalingType: + +flyteidl.plugins.sagemaker.HyperparameterScalingType +---------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_ + +HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter +https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html + +.. code-block:: json + + {} + + + +.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterScalingType.Value: + +Enum flyteidl.plugins.sagemaker.HyperparameterScalingType.Value +--------------------------------------------------------------- + +`[flyteidl.plugins.sagemaker.HyperparameterScalingType.Value proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.Value.AUTO: + +AUTO + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.Value.LINEAR: + +LINEAR + ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.Value.LOGARITHMIC: + +LOGARITHMIC + ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.Value.REVERSELOGARITHMIC: + +REVERSELOGARITHMIC + ⁣ + + .. _api_msg_flyteidl.plugins.sagemaker.ContinuousParameterRange: flyteidl.plugins.sagemaker.ContinuousParameterRange --------------------------------------------------- -`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_ ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing users to specify the search space of a floating-point hyperparameter +https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html .. code-block:: json @@ -34,7 +80,7 @@ min_value .. _api_field_flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type: scaling_type - (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) + (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType.Value `) @@ -43,10 +89,11 @@ scaling_type flyteidl.plugins.sagemaker.IntegerParameterRange ------------------------------------------------ -`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_ IntegerParameterRange refers to a discrete range of hyperparameter values, allowing users to specify the search space of an integer hyperparameter +https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html .. code-block:: json @@ -69,7 +116,7 @@ min_value .. _api_field_flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type: scaling_type - (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType `) + (:ref:`flyteidl.plugins.sagemaker.HyperparameterScalingType.Value `) @@ -78,10 +125,11 @@ scaling_type flyteidl.plugins.sagemaker.CategoricalParameterRange ---------------------------------------------------- -`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_ ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing users to specify the search space of a floating-point hyperparameter +https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html .. code-block:: json @@ -101,7 +149,7 @@ values flyteidl.plugins.sagemaker.ParameterRangeOneOf ---------------------------------------------- -`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_ +`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_ .. code-block:: json @@ -143,9 +191,10 @@ categorical_parameter_range flyteidl.plugins.sagemaker.ParameterRanges ------------------------------------------ -`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ +`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range +https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html .. code-block:: json @@ -159,33 +208,3 @@ parameter_range_map (map<`string `_, :ref:`flyteidl.plugins.sagemaker.ParameterRangeOneOf `>) -.. _api_enum_flyteidl.plugins.sagemaker.HyperparameterScalingType: - -Enum flyteidl.plugins.sagemaker.HyperparameterScalingType ---------------------------------------------------------- - -`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_ - -HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter -https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.AUTO: - -AUTO - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.LINEAR: - -LINEAR - ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.LOGARITHMIC: - -LOGARITHMIC - ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.REVERSELOGARITHMIC: - -REVERSELOGARITHMIC - ⁣ - diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst index 54550f414..4cdfba5c1 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst @@ -3,13 +3,84 @@ training_job.proto ============================================= +.. _api_msg_flyteidl.plugins.sagemaker.InputMode: + +flyteidl.plugins.sagemaker.InputMode +------------------------------------ + +`[flyteidl.plugins.sagemaker.InputMode proto] `_ + + +.. code-block:: json + + {} + + + +.. _api_enum_flyteidl.plugins.sagemaker.InputMode.Value: + +Enum flyteidl.plugins.sagemaker.InputMode.Value +----------------------------------------------- + +`[flyteidl.plugins.sagemaker.InputMode.Value proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.InputMode.Value.FILE: + +FILE + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.InputMode.Value.PIPE: + +PIPE + ⁣ + + +.. _api_msg_flyteidl.plugins.sagemaker.AlgorithmName: + +flyteidl.plugins.sagemaker.AlgorithmName +---------------------------------------- + +`[flyteidl.plugins.sagemaker.AlgorithmName proto] `_ + + +.. code-block:: json + + {} + + + +.. _api_enum_flyteidl.plugins.sagemaker.AlgorithmName.Value: + +Enum flyteidl.plugins.sagemaker.AlgorithmName.Value +--------------------------------------------------- + +`[flyteidl.plugins.sagemaker.AlgorithmName.Value proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.AlgorithmName.Value.CUSTOM: + +CUSTOM + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.AlgorithmName.Value.XGBOOST: + +XGBOOST + ⁣ + + .. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification: flyteidl.plugins.sagemaker.AlgorithmSpecification ------------------------------------------------- -`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ +Specifies the training algorithm to be used in the training job +This object is mostly a pass-through, with the exception that when users want to supply custom algorithms +they should set algorithm_name field to CUSTOM. In this case, the value of the algorithm_version field has no effect +For pass-through use cases: refer to this AWS official document for more details +https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html .. code-block:: json @@ -23,13 +94,13 @@ flyteidl.plugins.sagemaker.AlgorithmSpecification .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode: input_mode - (:ref:`flyteidl.plugins.sagemaker.InputMode `) The input mode can be either PIPE or FILE + (:ref:`flyteidl.plugins.sagemaker.InputMode.Value `) The input mode can be either PIPE or FILE .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name: algorithm_name - (:ref:`flyteidl.plugins.sagemaker.AlgorithmName `) The algorithm name is used for deciding which pre-built image to point to + (:ref:`flyteidl.plugins.sagemaker.AlgorithmName.Value `) The algorithm name is used for deciding which pre-built image to point to This is only needed for use cases where SageMaker's built-in algorithm mode is chosen @@ -52,7 +123,7 @@ metric_definitions flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition ------------------------------------------------------------------ -`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ .. code-block:: json @@ -77,13 +148,16 @@ regex -.. _api_msg_flyteidl.plugins.sagemaker.TrainingJobConfig: +.. _api_msg_flyteidl.plugins.sagemaker.TrainingJobResourceConfig: -flyteidl.plugins.sagemaker.TrainingJobConfig --------------------------------------------- +flyteidl.plugins.sagemaker.TrainingJobResourceConfig +---------------------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJobConfig proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ +TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the +number of instances to launch, and the size of the ML storage volume the user wants to provision +Refer to SageMaker official doc for more details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html .. code-block:: json @@ -93,20 +167,19 @@ flyteidl.plugins.sagemaker.TrainingJobConfig "volume_size_in_gb": "..." } -.. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_count: instance_count (`int64 `_) The number of ML compute instances to use. For distributed training, provide a value greater than 1. - This is for multi-node training, not multi-GPU training -.. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type: instance_type (`string `_) The ML compute instance type -.. _api_field_flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb: +.. _api_field_flyteidl.plugins.sagemaker.TrainingJobResourceConfig.volume_size_in_gb: volume_size_in_gb (`int64 `_) The size of the ML storage volume that you want to provision. @@ -119,7 +192,7 @@ volume_size_in_gb flyteidl.plugins.sagemaker.StoppingCondition -------------------------------------------- -`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ +`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ This option allows the users to specify a limit to how long a training job can run and how long the users are willing to wait for a managed spot training job to complete @@ -155,9 +228,10 @@ max_wait_time_in_seconds flyteidl.plugins.sagemaker.TrainingJob -------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ -The spec of a training job +The spec of a training job. This is mostly a pass-through object +https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html .. code-block:: json @@ -175,7 +249,7 @@ algorithm_specification .. _api_field_flyteidl.plugins.sagemaker.TrainingJob.training_job_config: training_job_config - (:ref:`flyteidl.plugins.sagemaker.TrainingJobConfig `) + (:ref:`flyteidl.plugins.sagemaker.TrainingJobResourceConfig `) .. _api_field_flyteidl.plugins.sagemaker.TrainingJob.interruptible: @@ -183,40 +257,3 @@ interruptible (`bool `_) -.. _api_enum_flyteidl.plugins.sagemaker.InputMode: - -Enum flyteidl.plugins.sagemaker.InputMode ------------------------------------------ - -`[flyteidl.plugins.sagemaker.InputMode proto] `_ - - -.. _api_enum_value_flyteidl.plugins.sagemaker.InputMode.FILE: - -FILE - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.InputMode.PIPE: - -PIPE - ⁣ - - -.. _api_enum_flyteidl.plugins.sagemaker.AlgorithmName: - -Enum flyteidl.plugins.sagemaker.AlgorithmName ---------------------------------------------- - -`[flyteidl.plugins.sagemaker.AlgorithmName proto] `_ - - -.. _api_enum_value_flyteidl.plugins.sagemaker.AlgorithmName.CUSTOM: - -CUSTOM - *(DEFAULT)* ⁣ - -.. _api_enum_value_flyteidl.plugins.sagemaker.AlgorithmName.XGBOOST: - -XGBOOST - ⁣ - diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2.py index c28182c82..68c53659e 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2.py @@ -22,15 +22,15 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n:flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xa1\x01\n\x17HyperparameterTuningJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"\xea\x01\n\x1dHyperparameterTuningObjective\x12s\n\x0eobjective_type\x18\x01 \x01(\x0e\x32[.flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"?\n!HyperparameterTuningObjectiveType\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\xad\x04\n!HyperparameterTuningSpecification\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12s\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32Z.flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12\x84\x01\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32Z.flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType\"8\n\x1cHyperparameterTuningStrategy\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\"1\n\x1cTrainingJobEarlyStoppingType\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n:flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xa1\x01\n\x17HyperparameterTuningJob\x12=\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJob\x12#\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03\x12\"\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03\"H\n!HyperparameterTuningObjectiveType\"#\n\x05Value\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\x91\x01\n\x1dHyperparameterTuningObjective\x12[\n\x0eobjective_type\x18\x01 \x01(\x0e\x32\x43.flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value\x12\x13\n\x0bmetric_name\x18\x02 \x01(\t\"A\n\x1cHyperparameterTuningStrategy\"!\n\x05Value\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\":\n\x1cTrainingJobEarlyStoppingType\"\x1a\n\x05Value\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\"\x83\x03\n\x1dHyperparameterTuningJobConfig\x12J\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRanges\x12W\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32>.flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value\x12S\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjective\x12h\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32>.flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.ValueB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2.DESCRIPTOR,flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2.DESCRIPTOR,]) -_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE = _descriptor.EnumDescriptor( - name='HyperparameterTuningObjectiveType', - full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective.HyperparameterTuningObjectiveType', +_HYPERPARAMETERTUNINGOBJECTIVETYPE_VALUE = _descriptor.EnumDescriptor( + name='Value', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value', filename=None, file=DESCRIPTOR, values=[ @@ -45,14 +45,14 @@ ], containing_type=None, serialized_options=None, - serialized_start=524, - serialized_end=587, + serialized_start=389, + serialized_end=424, ) -_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE) +_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGOBJECTIVETYPE_VALUE) -_HYPERPARAMETERTUNINGSPECIFICATION_HYPERPARAMETERTUNINGSTRATEGY = _descriptor.EnumDescriptor( - name='HyperparameterTuningStrategy', - full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.HyperparameterTuningStrategy', +_HYPERPARAMETERTUNINGSTRATEGY_VALUE = _descriptor.EnumDescriptor( + name='Value', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value', filename=None, file=DESCRIPTOR, values=[ @@ -67,14 +67,14 @@ ], containing_type=None, serialized_options=None, - serialized_start=1040, - serialized_end=1096, + serialized_start=606, + serialized_end=639, ) -_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGSPECIFICATION_HYPERPARAMETERTUNINGSTRATEGY) +_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGSTRATEGY_VALUE) -_HYPERPARAMETERTUNINGSPECIFICATION_TRAININGJOBEARLYSTOPPINGTYPE = _descriptor.EnumDescriptor( - name='TrainingJobEarlyStoppingType', - full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.TrainingJobEarlyStoppingType', +_TRAININGJOBEARLYSTOPPINGTYPE_VALUE = _descriptor.EnumDescriptor( + name='Value', + full_name='flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value', filename=None, file=DESCRIPTOR, values=[ @@ -89,10 +89,10 @@ ], containing_type=None, serialized_options=None, - serialized_start=1098, - serialized_end=1147, + serialized_start=673, + serialized_end=699, ) -_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERTUNINGSPECIFICATION_TRAININGJOBEARLYSTOPPINGTYPE) +_sym_db.RegisterEnumDescriptor(_TRAININGJOBEARLYSTOPPINGTYPE_VALUE) _HYPERPARAMETERTUNINGJOB = _descriptor.Descriptor( @@ -140,6 +140,31 @@ ) +_HYPERPARAMETERTUNINGOBJECTIVETYPE = _descriptor.Descriptor( + name='HyperparameterTuningObjectiveType', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _HYPERPARAMETERTUNINGOBJECTIVETYPE_VALUE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=352, + serialized_end=424, +) + + _HYPERPARAMETERTUNINGOBJECTIVE = _descriptor.Descriptor( name='HyperparameterTuningObjective', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningObjective', @@ -166,7 +191,6 @@ ], nested_types=[], enum_types=[ - _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE, ], serialized_options=None, is_extendable=False, @@ -174,41 +198,91 @@ extension_ranges=[], oneofs=[ ], - serialized_start=353, - serialized_end=587, + serialized_start=427, + serialized_end=572, +) + + +_HYPERPARAMETERTUNINGSTRATEGY = _descriptor.Descriptor( + name='HyperparameterTuningStrategy', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningStrategy', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _HYPERPARAMETERTUNINGSTRATEGY_VALUE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=574, + serialized_end=639, +) + + +_TRAININGJOBEARLYSTOPPINGTYPE = _descriptor.Descriptor( + name='TrainingJobEarlyStoppingType', + full_name='flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _TRAININGJOBEARLYSTOPPINGTYPE_VALUE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=641, + serialized_end=699, ) -_HYPERPARAMETERTUNINGSPECIFICATION = _descriptor.Descriptor( - name='HyperparameterTuningSpecification', - full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification', +_HYPERPARAMETERTUNINGJOBCONFIG = _descriptor.Descriptor( + name='HyperparameterTuningJobConfig', + full_name='flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='hyperparameter_ranges', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.hyperparameter_ranges', index=0, + name='hyperparameter_ranges', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.hyperparameter_ranges', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='tuning_strategy', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_strategy', index=1, + name='tuning_strategy', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_strategy', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='tuning_objective', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.tuning_objective', index=2, + name='tuning_objective', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_objective', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='training_job_early_stopping_type', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningSpecification.training_job_early_stopping_type', index=3, + name='training_job_early_stopping_type', full_name='flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.training_job_early_stopping_type', index=3, number=4, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -219,8 +293,6 @@ ], nested_types=[], enum_types=[ - _HYPERPARAMETERTUNINGSPECIFICATION_HYPERPARAMETERTUNINGSTRATEGY, - _HYPERPARAMETERTUNINGSPECIFICATION_TRAININGJOBEARLYSTOPPINGTYPE, ], serialized_options=None, is_extendable=False, @@ -228,22 +300,25 @@ extension_ranges=[], oneofs=[ ], - serialized_start=590, - serialized_end=1147, + serialized_start=702, + serialized_end=1089, ) _HYPERPARAMETERTUNINGJOB.fields_by_name['training_job'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2._TRAININGJOB -_HYPERPARAMETERTUNINGOBJECTIVE.fields_by_name['objective_type'].enum_type = _HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE -_HYPERPARAMETERTUNINGOBJECTIVE_HYPERPARAMETERTUNINGOBJECTIVETYPE.containing_type = _HYPERPARAMETERTUNINGOBJECTIVE -_HYPERPARAMETERTUNINGSPECIFICATION.fields_by_name['hyperparameter_ranges'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2._PARAMETERRANGES -_HYPERPARAMETERTUNINGSPECIFICATION.fields_by_name['tuning_strategy'].enum_type = _HYPERPARAMETERTUNINGSPECIFICATION_HYPERPARAMETERTUNINGSTRATEGY -_HYPERPARAMETERTUNINGSPECIFICATION.fields_by_name['tuning_objective'].message_type = _HYPERPARAMETERTUNINGOBJECTIVE -_HYPERPARAMETERTUNINGSPECIFICATION.fields_by_name['training_job_early_stopping_type'].enum_type = _HYPERPARAMETERTUNINGSPECIFICATION_TRAININGJOBEARLYSTOPPINGTYPE -_HYPERPARAMETERTUNINGSPECIFICATION_HYPERPARAMETERTUNINGSTRATEGY.containing_type = _HYPERPARAMETERTUNINGSPECIFICATION -_HYPERPARAMETERTUNINGSPECIFICATION_TRAININGJOBEARLYSTOPPINGTYPE.containing_type = _HYPERPARAMETERTUNINGSPECIFICATION +_HYPERPARAMETERTUNINGOBJECTIVETYPE_VALUE.containing_type = _HYPERPARAMETERTUNINGOBJECTIVETYPE +_HYPERPARAMETERTUNINGOBJECTIVE.fields_by_name['objective_type'].enum_type = _HYPERPARAMETERTUNINGOBJECTIVETYPE_VALUE +_HYPERPARAMETERTUNINGSTRATEGY_VALUE.containing_type = _HYPERPARAMETERTUNINGSTRATEGY +_TRAININGJOBEARLYSTOPPINGTYPE_VALUE.containing_type = _TRAININGJOBEARLYSTOPPINGTYPE +_HYPERPARAMETERTUNINGJOBCONFIG.fields_by_name['hyperparameter_ranges'].message_type = flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2._PARAMETERRANGES +_HYPERPARAMETERTUNINGJOBCONFIG.fields_by_name['tuning_strategy'].enum_type = _HYPERPARAMETERTUNINGSTRATEGY_VALUE +_HYPERPARAMETERTUNINGJOBCONFIG.fields_by_name['tuning_objective'].message_type = _HYPERPARAMETERTUNINGOBJECTIVE +_HYPERPARAMETERTUNINGJOBCONFIG.fields_by_name['training_job_early_stopping_type'].enum_type = _TRAININGJOBEARLYSTOPPINGTYPE_VALUE DESCRIPTOR.message_types_by_name['HyperparameterTuningJob'] = _HYPERPARAMETERTUNINGJOB +DESCRIPTOR.message_types_by_name['HyperparameterTuningObjectiveType'] = _HYPERPARAMETERTUNINGOBJECTIVETYPE DESCRIPTOR.message_types_by_name['HyperparameterTuningObjective'] = _HYPERPARAMETERTUNINGOBJECTIVE -DESCRIPTOR.message_types_by_name['HyperparameterTuningSpecification'] = _HYPERPARAMETERTUNINGSPECIFICATION +DESCRIPTOR.message_types_by_name['HyperparameterTuningStrategy'] = _HYPERPARAMETERTUNINGSTRATEGY +DESCRIPTOR.message_types_by_name['TrainingJobEarlyStoppingType'] = _TRAININGJOBEARLYSTOPPINGTYPE +DESCRIPTOR.message_types_by_name['HyperparameterTuningJobConfig'] = _HYPERPARAMETERTUNINGJOBCONFIG _sym_db.RegisterFileDescriptor(DESCRIPTOR) HyperparameterTuningJob = _reflection.GeneratedProtocolMessageType('HyperparameterTuningJob', (_message.Message,), dict( @@ -253,6 +328,13 @@ )) _sym_db.RegisterMessage(HyperparameterTuningJob) +HyperparameterTuningObjectiveType = _reflection.GeneratedProtocolMessageType('HyperparameterTuningObjectiveType', (_message.Message,), dict( + DESCRIPTOR = _HYPERPARAMETERTUNINGOBJECTIVETYPE, + __module__ = 'flyteidl.plugins.sagemaker.hyperparameter_tuning_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + )) +_sym_db.RegisterMessage(HyperparameterTuningObjectiveType) + HyperparameterTuningObjective = _reflection.GeneratedProtocolMessageType('HyperparameterTuningObjective', (_message.Message,), dict( DESCRIPTOR = _HYPERPARAMETERTUNINGOBJECTIVE, __module__ = 'flyteidl.plugins.sagemaker.hyperparameter_tuning_job_pb2' @@ -260,12 +342,26 @@ )) _sym_db.RegisterMessage(HyperparameterTuningObjective) -HyperparameterTuningSpecification = _reflection.GeneratedProtocolMessageType('HyperparameterTuningSpecification', (_message.Message,), dict( - DESCRIPTOR = _HYPERPARAMETERTUNINGSPECIFICATION, +HyperparameterTuningStrategy = _reflection.GeneratedProtocolMessageType('HyperparameterTuningStrategy', (_message.Message,), dict( + DESCRIPTOR = _HYPERPARAMETERTUNINGSTRATEGY, + __module__ = 'flyteidl.plugins.sagemaker.hyperparameter_tuning_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + )) +_sym_db.RegisterMessage(HyperparameterTuningStrategy) + +TrainingJobEarlyStoppingType = _reflection.GeneratedProtocolMessageType('TrainingJobEarlyStoppingType', (_message.Message,), dict( + DESCRIPTOR = _TRAININGJOBEARLYSTOPPINGTYPE, + __module__ = 'flyteidl.plugins.sagemaker.hyperparameter_tuning_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + )) +_sym_db.RegisterMessage(TrainingJobEarlyStoppingType) + +HyperparameterTuningJobConfig = _reflection.GeneratedProtocolMessageType('HyperparameterTuningJobConfig', (_message.Message,), dict( + DESCRIPTOR = _HYPERPARAMETERTUNINGJOBCONFIG, __module__ = 'flyteidl.plugins.sagemaker.hyperparameter_tuning_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningSpecification) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) )) -_sym_db.RegisterMessage(HyperparameterTuningSpecification) +_sym_db.RegisterMessage(HyperparameterTuningJobConfig) DESCRIPTOR._options = None diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py index 896671ffe..75f009d09 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py @@ -4,7 +4,6 @@ import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -21,12 +20,14 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n1flyteidl/plugins/sagemaker/parameter_ranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\x8d\x01\n\x18\x43ontinuousParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x01\x12\x11\n\tmin_value\x18\x02 \x01(\x01\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"\x8a\x01\n\x15IntegerParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x03\x12\x11\n\tmin_value\x18\x02 \x01(\x03\x12K\n\x0cscaling_type\x18\x03 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.HyperparameterScalingType\"+\n\x19\x43\x61tegoricalParameterRange\x12\x0e\n\x06values\x18\x01 \x03(\t\"\xbd\x02\n\x13ParameterRangeOneOf\x12Z\n\x1a\x63ontinuous_parameter_range\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00\x12T\n\x17integer_parameter_range\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00\x12\\\n\x1b\x63\x61tegorical_parameter_range\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00\x42\x16\n\x14parameter_range_type\"\xdd\x01\n\x0fParameterRanges\x12_\n\x13parameter_range_map\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry\x1ai\n\x16ParameterRangeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOf:\x02\x38\x01*Z\n\x19HyperparameterScalingType\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n1flyteidl/plugins/sagemaker/parameter_ranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"c\n\x19HyperparameterScalingType\"F\n\x05Value\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\"\x93\x01\n\x18\x43ontinuousParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x01\x12\x11\n\tmin_value\x18\x02 \x01(\x01\x12Q\n\x0cscaling_type\x18\x03 \x01(\x0e\x32;.flyteidl.plugins.sagemaker.HyperparameterScalingType.Value\"\x90\x01\n\x15IntegerParameterRange\x12\x11\n\tmax_value\x18\x01 \x01(\x03\x12\x11\n\tmin_value\x18\x02 \x01(\x03\x12Q\n\x0cscaling_type\x18\x03 \x01(\x0e\x32;.flyteidl.plugins.sagemaker.HyperparameterScalingType.Value\"+\n\x19\x43\x61tegoricalParameterRange\x12\x0e\n\x06values\x18\x01 \x03(\t\"\xbd\x02\n\x13ParameterRangeOneOf\x12Z\n\x1a\x63ontinuous_parameter_range\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00\x12T\n\x17integer_parameter_range\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00\x12\\\n\x1b\x63\x61tegorical_parameter_range\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00\x42\x16\n\x14parameter_range_type\"\xdd\x01\n\x0fParameterRanges\x12_\n\x13parameter_range_map\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry\x1ai\n\x16ParameterRangeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOf:\x02\x38\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') ) -_HYPERPARAMETERSCALINGTYPE = _descriptor.EnumDescriptor( - name='HyperparameterScalingType', - full_name='flyteidl.plugins.sagemaker.HyperparameterScalingType', + + +_HYPERPARAMETERSCALINGTYPE_VALUE = _descriptor.EnumDescriptor( + name='Value', + full_name='flyteidl.plugins.sagemaker.HyperparameterScalingType.Value', filename=None, file=DESCRIPTOR, values=[ @@ -49,17 +50,35 @@ ], containing_type=None, serialized_options=None, - serialized_start=955, - serialized_end=1045, + serialized_start=110, + serialized_end=180, ) -_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERSCALINGTYPE) +_sym_db.RegisterEnumDescriptor(_HYPERPARAMETERSCALINGTYPE_VALUE) -HyperparameterScalingType = enum_type_wrapper.EnumTypeWrapper(_HYPERPARAMETERSCALINGTYPE) -AUTO = 0 -LINEAR = 1 -LOGARITHMIC = 2 -REVERSELOGARITHMIC = 3 +_HYPERPARAMETERSCALINGTYPE = _descriptor.Descriptor( + name='HyperparameterScalingType', + full_name='flyteidl.plugins.sagemaker.HyperparameterScalingType', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _HYPERPARAMETERSCALINGTYPE_VALUE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=81, + serialized_end=180, +) _CONTINUOUSPARAMETERRANGE = _descriptor.Descriptor( @@ -102,8 +121,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=82, - serialized_end=223, + serialized_start=183, + serialized_end=330, ) @@ -147,8 +166,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=226, - serialized_end=364, + serialized_start=333, + serialized_end=477, ) @@ -178,8 +197,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=366, - serialized_end=409, + serialized_start=479, + serialized_end=522, ) @@ -226,8 +245,8 @@ name='parameter_range_type', full_name='flyteidl.plugins.sagemaker.ParameterRangeOneOf.parameter_range_type', index=0, containing_type=None, fields=[]), ], - serialized_start=412, - serialized_end=729, + serialized_start=525, + serialized_end=842, ) @@ -264,8 +283,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=848, - serialized_end=953, + serialized_start=961, + serialized_end=1066, ) _PARAMETERRANGES = _descriptor.Descriptor( @@ -294,12 +313,13 @@ extension_ranges=[], oneofs=[ ], - serialized_start=732, - serialized_end=953, + serialized_start=845, + serialized_end=1066, ) -_CONTINUOUSPARAMETERRANGE.fields_by_name['scaling_type'].enum_type = _HYPERPARAMETERSCALINGTYPE -_INTEGERPARAMETERRANGE.fields_by_name['scaling_type'].enum_type = _HYPERPARAMETERSCALINGTYPE +_HYPERPARAMETERSCALINGTYPE_VALUE.containing_type = _HYPERPARAMETERSCALINGTYPE +_CONTINUOUSPARAMETERRANGE.fields_by_name['scaling_type'].enum_type = _HYPERPARAMETERSCALINGTYPE_VALUE +_INTEGERPARAMETERRANGE.fields_by_name['scaling_type'].enum_type = _HYPERPARAMETERSCALINGTYPE_VALUE _PARAMETERRANGEONEOF.fields_by_name['continuous_parameter_range'].message_type = _CONTINUOUSPARAMETERRANGE _PARAMETERRANGEONEOF.fields_by_name['integer_parameter_range'].message_type = _INTEGERPARAMETERRANGE _PARAMETERRANGEONEOF.fields_by_name['categorical_parameter_range'].message_type = _CATEGORICALPARAMETERRANGE @@ -315,14 +335,21 @@ _PARAMETERRANGES_PARAMETERRANGEMAPENTRY.fields_by_name['value'].message_type = _PARAMETERRANGEONEOF _PARAMETERRANGES_PARAMETERRANGEMAPENTRY.containing_type = _PARAMETERRANGES _PARAMETERRANGES.fields_by_name['parameter_range_map'].message_type = _PARAMETERRANGES_PARAMETERRANGEMAPENTRY +DESCRIPTOR.message_types_by_name['HyperparameterScalingType'] = _HYPERPARAMETERSCALINGTYPE DESCRIPTOR.message_types_by_name['ContinuousParameterRange'] = _CONTINUOUSPARAMETERRANGE DESCRIPTOR.message_types_by_name['IntegerParameterRange'] = _INTEGERPARAMETERRANGE DESCRIPTOR.message_types_by_name['CategoricalParameterRange'] = _CATEGORICALPARAMETERRANGE DESCRIPTOR.message_types_by_name['ParameterRangeOneOf'] = _PARAMETERRANGEONEOF DESCRIPTOR.message_types_by_name['ParameterRanges'] = _PARAMETERRANGES -DESCRIPTOR.enum_types_by_name['HyperparameterScalingType'] = _HYPERPARAMETERSCALINGTYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) +HyperparameterScalingType = _reflection.GeneratedProtocolMessageType('HyperparameterScalingType', (_message.Message,), dict( + DESCRIPTOR = _HYPERPARAMETERSCALINGTYPE, + __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) + )) +_sym_db.RegisterMessage(HyperparameterScalingType) + ContinuousParameterRange = _reflection.GeneratedProtocolMessageType('ContinuousParameterRange', (_message.Message,), dict( DESCRIPTOR = _CONTINUOUSPARAMETERRANGE, __module__ = 'flyteidl.plugins.sagemaker.parameter_ranges_pb2' diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py index 226aa6d75..272617e73 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py @@ -4,7 +4,6 @@ import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -21,12 +20,14 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"\xc3\x02\n\x16\x41lgorithmSpecification\x12\x39\n\ninput_mode\x18\x01 \x01(\x0e\x32%.flyteidl.plugins.sagemaker.InputMode\x12\x41\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32).flyteidl.plugins.sagemaker.AlgorithmName\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"]\n\x11TrainingJobConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"\xc5\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12J\n\x13training_job_config\x18\x02 \x01(\x0b\x32-.flyteidl.plugins.sagemaker.TrainingJobConfig\x12\x15\n\rinterruptible\x18\x03 \x01(\x08*\x1f\n\tInputMode\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01*(\n\rAlgorithmName\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"\xcf\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"\xcd\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12R\n\x13training_job_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfig\x12\x15\n\rinterruptible\x18\x03 \x01(\x08\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') ) -_INPUTMODE = _descriptor.EnumDescriptor( - name='InputMode', - full_name='flyteidl.plugins.sagemaker.InputMode', + + +_INPUTMODE_VALUE = _descriptor.EnumDescriptor( + name='Value', + full_name='flyteidl.plugins.sagemaker.InputMode.Value', filename=None, file=DESCRIPTOR, values=[ @@ -41,15 +42,14 @@ ], containing_type=None, serialized_options=None, - serialized_start=785, - serialized_end=816, + serialized_start=90, + serialized_end=117, ) -_sym_db.RegisterEnumDescriptor(_INPUTMODE) +_sym_db.RegisterEnumDescriptor(_INPUTMODE_VALUE) -InputMode = enum_type_wrapper.EnumTypeWrapper(_INPUTMODE) -_ALGORITHMNAME = _descriptor.EnumDescriptor( - name='AlgorithmName', - full_name='flyteidl.plugins.sagemaker.AlgorithmName', +_ALGORITHMNAME_VALUE = _descriptor.EnumDescriptor( + name='Value', + full_name='flyteidl.plugins.sagemaker.AlgorithmName.Value', filename=None, file=DESCRIPTOR, values=[ @@ -64,17 +64,60 @@ ], containing_type=None, serialized_options=None, - serialized_start=818, - serialized_end=858, + serialized_start=136, + serialized_end=168, +) +_sym_db.RegisterEnumDescriptor(_ALGORITHMNAME_VALUE) + + +_INPUTMODE = _descriptor.Descriptor( + name='InputMode', + full_name='flyteidl.plugins.sagemaker.InputMode', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _INPUTMODE_VALUE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=77, + serialized_end=117, ) -_sym_db.RegisterEnumDescriptor(_ALGORITHMNAME) -AlgorithmName = enum_type_wrapper.EnumTypeWrapper(_ALGORITHMNAME) -FILE = 0 -PIPE = 1 -CUSTOM = 0 -XGBOOST = 1 +_ALGORITHMNAME = _descriptor.Descriptor( + name='AlgorithmName', + full_name='flyteidl.plugins.sagemaker.AlgorithmName', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ALGORITHMNAME_VALUE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=119, + serialized_end=168, +) _ALGORITHMSPECIFICATION_METRICDEFINITION = _descriptor.Descriptor( @@ -110,8 +153,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=354, - serialized_end=401, + serialized_start=459, + serialized_end=506, ) _ALGORITHMSPECIFICATION = _descriptor.Descriptor( @@ -161,34 +204,34 @@ extension_ranges=[], oneofs=[ ], - serialized_start=78, - serialized_end=401, + serialized_start=171, + serialized_end=506, ) -_TRAININGJOBCONFIG = _descriptor.Descriptor( - name='TrainingJobConfig', - full_name='flyteidl.plugins.sagemaker.TrainingJobConfig', +_TRAININGJOBRESOURCECONFIG = _descriptor.Descriptor( + name='TrainingJobResourceConfig', + full_name='flyteidl.plugins.sagemaker.TrainingJobResourceConfig', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='instance_count', full_name='flyteidl.plugins.sagemaker.TrainingJobConfig.instance_count', index=0, + name='instance_count', full_name='flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_count', index=0, number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='instance_type', full_name='flyteidl.plugins.sagemaker.TrainingJobConfig.instance_type', index=1, + name='instance_type', full_name='flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='volume_size_in_gb', full_name='flyteidl.plugins.sagemaker.TrainingJobConfig.volume_size_in_gb', index=2, + name='volume_size_in_gb', full_name='flyteidl.plugins.sagemaker.TrainingJobResourceConfig.volume_size_in_gb', index=2, number=3, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -206,8 +249,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=403, - serialized_end=496, + serialized_start=508, + serialized_end=609, ) @@ -244,8 +287,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=498, - serialized_end=583, + serialized_start=611, + serialized_end=696, ) @@ -289,24 +332,40 @@ extension_ranges=[], oneofs=[ ], - serialized_start=586, - serialized_end=783, + serialized_start=699, + serialized_end=904, ) +_INPUTMODE_VALUE.containing_type = _INPUTMODE +_ALGORITHMNAME_VALUE.containing_type = _ALGORITHMNAME _ALGORITHMSPECIFICATION_METRICDEFINITION.containing_type = _ALGORITHMSPECIFICATION -_ALGORITHMSPECIFICATION.fields_by_name['input_mode'].enum_type = _INPUTMODE -_ALGORITHMSPECIFICATION.fields_by_name['algorithm_name'].enum_type = _ALGORITHMNAME +_ALGORITHMSPECIFICATION.fields_by_name['input_mode'].enum_type = _INPUTMODE_VALUE +_ALGORITHMSPECIFICATION.fields_by_name['algorithm_name'].enum_type = _ALGORITHMNAME_VALUE _ALGORITHMSPECIFICATION.fields_by_name['metric_definitions'].message_type = _ALGORITHMSPECIFICATION_METRICDEFINITION _TRAININGJOB.fields_by_name['algorithm_specification'].message_type = _ALGORITHMSPECIFICATION -_TRAININGJOB.fields_by_name['training_job_config'].message_type = _TRAININGJOBCONFIG +_TRAININGJOB.fields_by_name['training_job_config'].message_type = _TRAININGJOBRESOURCECONFIG +DESCRIPTOR.message_types_by_name['InputMode'] = _INPUTMODE +DESCRIPTOR.message_types_by_name['AlgorithmName'] = _ALGORITHMNAME DESCRIPTOR.message_types_by_name['AlgorithmSpecification'] = _ALGORITHMSPECIFICATION -DESCRIPTOR.message_types_by_name['TrainingJobConfig'] = _TRAININGJOBCONFIG +DESCRIPTOR.message_types_by_name['TrainingJobResourceConfig'] = _TRAININGJOBRESOURCECONFIG DESCRIPTOR.message_types_by_name['StoppingCondition'] = _STOPPINGCONDITION DESCRIPTOR.message_types_by_name['TrainingJob'] = _TRAININGJOB -DESCRIPTOR.enum_types_by_name['InputMode'] = _INPUTMODE -DESCRIPTOR.enum_types_by_name['AlgorithmName'] = _ALGORITHMNAME _sym_db.RegisterFileDescriptor(DESCRIPTOR) +InputMode = _reflection.GeneratedProtocolMessageType('InputMode', (_message.Message,), dict( + DESCRIPTOR = _INPUTMODE, + __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputMode) + )) +_sym_db.RegisterMessage(InputMode) + +AlgorithmName = _reflection.GeneratedProtocolMessageType('AlgorithmName', (_message.Message,), dict( + DESCRIPTOR = _ALGORITHMNAME, + __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmName) + )) +_sym_db.RegisterMessage(AlgorithmName) + AlgorithmSpecification = _reflection.GeneratedProtocolMessageType('AlgorithmSpecification', (_message.Message,), dict( MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict( @@ -322,12 +381,12 @@ _sym_db.RegisterMessage(AlgorithmSpecification) _sym_db.RegisterMessage(AlgorithmSpecification.MetricDefinition) -TrainingJobConfig = _reflection.GeneratedProtocolMessageType('TrainingJobConfig', (_message.Message,), dict( - DESCRIPTOR = _TRAININGJOBCONFIG, +TrainingJobResourceConfig = _reflection.GeneratedProtocolMessageType('TrainingJobResourceConfig', (_message.Message,), dict( + DESCRIPTOR = _TRAININGJOBRESOURCECONFIG, __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobConfig) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) )) -_sym_db.RegisterMessage(TrainingJobConfig) +_sym_db.RegisterMessage(TrainingJobResourceConfig) StoppingCondition = _reflection.GeneratedProtocolMessageType('StoppingCondition', (_message.Message,), dict( DESCRIPTOR = _STOPPINGCONDITION, From 266a84603bb0ea28a44742c1731d6c589d53584a Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Fri, 24 Jul 2020 19:12:37 -0700 Subject: [PATCH 40/64] add detailed comments and references --- .../plugins/sagemaker/hyperparameter_tuning_job.proto | 5 +++++ protos/flyteidl/plugins/sagemaker/parameter_ranges.proto | 3 ++- protos/flyteidl/plugins/sagemaker/training_job.proto | 6 ++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto b/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto index 8ee48fed8..0663c75ad 100644 --- a/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto +++ b/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto @@ -29,6 +29,7 @@ message HyperparameterTuningObjectiveType { } // The objective of the hyperparameter tuning +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html message HyperparameterTuningObjective { HyperparameterTuningObjectiveType.Value objective_type = 1; @@ -37,6 +38,10 @@ message HyperparameterTuningObjective { string metric_name = 2; } + +// Setting the strategy used when doing search in the hyperparameter space +// Refer this doc for more details: +// https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/ message HyperparameterTuningStrategy { enum Value { BAYESIAN = 0; diff --git a/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto b/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto index 38ec37977..5da8518c8 100644 --- a/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto +++ b/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto @@ -5,7 +5,8 @@ package flyteidl.plugins.sagemaker; option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; // HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter -// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +// For details, refer to: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +// See examples of these scaling type, refer to: https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/ message HyperparameterScalingType { enum Value { AUTO = 0; diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto index c7d1198d6..71ca13ad8 100644 --- a/protos/flyteidl/plugins/sagemaker/training_job.proto +++ b/protos/flyteidl/plugins/sagemaker/training_job.proto @@ -20,8 +20,10 @@ message AlgorithmName { } // Specifies the training algorithm to be used in the training job -// This object is mostly a pass-through, with the exception that when users want to supply custom algorithms -// they should set algorithm_name field to CUSTOM. In this case, the value of the algorithm_version field has no effect +// This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify +// TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm +// name and an algorithm version or (2) when users want to supply custom algorithms they should set algorithm_name field to +// CUSTOM. In this case, the value of the algorithm_version field has no effect // For pass-through use cases: refer to this AWS official document for more details // https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html message AlgorithmSpecification { From 218c93b05b352327a51698802770ca5834a72388 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Fri, 24 Jul 2020 19:14:17 -0700 Subject: [PATCH 41/64] make generate --- .../sagemaker/hyperparameter_tuning_job.pb.go | 4 ++++ .../plugins/sagemaker/parameter_ranges.pb.go | 3 ++- .../plugins/sagemaker/training_job.pb.go | 6 ++++-- .../HyperparameterTuningJobOuterClass.java | 14 ++++++++++++++ .../sagemaker/ParameterRangesOuterClass.java | 6 ++++-- .../sagemaker/TrainingJobOuterClass.java | 12 ++++++++---- .../hyperparameter_tuning_job.proto.rst | 16 ++++++++++------ .../sagemaker/parameter_ranges.proto.rst | 17 +++++++++-------- .../plugins/sagemaker/training_job.proto.rst | 16 +++++++++------- 9 files changed, 64 insertions(+), 30 deletions(-) diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go index de7f3d10a..dbad13487 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go @@ -188,6 +188,7 @@ func (m *HyperparameterTuningObjectiveType) XXX_DiscardUnknown() { var xxx_messageInfo_HyperparameterTuningObjectiveType proto.InternalMessageInfo // The objective of the hyperparameter tuning +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html type HyperparameterTuningObjective struct { ObjectiveType HyperparameterTuningObjectiveType_Value `protobuf:"varint,1,opt,name=objective_type,json=objectiveType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType_Value" json:"objective_type,omitempty"` // The target metric name, which is the user-defined name of the metric specified in the @@ -237,6 +238,9 @@ func (m *HyperparameterTuningObjective) GetMetricName() string { return "" } +// Setting the strategy used when doing search in the hyperparameter space +// Refer this doc for more details: +// https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/ type HyperparameterTuningStrategy struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go index 1975c31b0..aee13f5ec 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go @@ -52,7 +52,8 @@ func (HyperparameterScalingType_Value) EnumDescriptor() ([]byte, []int) { } // HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter -// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +// For details, refer to: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +// See examples of these scaling type, refer to: https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/ type HyperparameterScalingType struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go index 90e2664c8..97cae8681 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -133,8 +133,10 @@ func (m *AlgorithmName) XXX_DiscardUnknown() { var xxx_messageInfo_AlgorithmName proto.InternalMessageInfo // Specifies the training algorithm to be used in the training job -// This object is mostly a pass-through, with the exception that when users want to supply custom algorithms -// they should set algorithm_name field to CUSTOM. In this case, the value of the algorithm_version field has no effect +// This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify +// TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm +// name and an algorithm version or (2) when users want to supply custom algorithms they should set algorithm_name field to +// CUSTOM. In this case, the value of the algorithm_version field has no effect // For pass-through use cases: refer to this AWS official document for more details // https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html type AlgorithmSpecification struct { diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java index f040bd04d..b2a2b5489 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java @@ -1409,6 +1409,7 @@ public interface HyperparameterTuningObjectiveOrBuilder extends /** *
    * The objective of the hyperparameter tuning
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
    * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} @@ -1723,6 +1724,7 @@ protected Builder newBuilderForType( /** *
      * The objective of the hyperparameter tuning
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
      * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} @@ -2074,6 +2076,12 @@ public interface HyperparameterTuningStrategyOrBuilder extends com.google.protobuf.MessageOrBuilder { } /** + *
+   * Setting the strategy used when doing search in the hyperparameter space
+   * Refer this doc for more details:
+   * https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/
+   * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningStrategy} */ public static final class HyperparameterTuningStrategy extends @@ -2386,6 +2394,12 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * Setting the strategy used when doing search in the hyperparameter space
+     * Refer this doc for more details:
+     * https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/
+     * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningStrategy} */ public static final class Builder extends diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java index ae4c37d31..101d4bde9 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java @@ -21,7 +21,8 @@ public interface HyperparameterScalingTypeOrBuilder extends /** *
    * HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter
-   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+   * For details, refer to: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+   * See examples of these scaling type, refer to: https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/
    * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterScalingType} @@ -356,7 +357,8 @@ protected Builder newBuilderForType( /** *
      * HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter
-     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+     * For details, refer to: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+     * See examples of these scaling type, refer to: https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/
      * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterScalingType} diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java index 202417a23..5a67c5746 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -1144,8 +1144,10 @@ flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDe /** *
    * Specifies the training algorithm to be used in the training job
-   * This object is mostly a pass-through, with the exception that when users want to supply custom algorithms
-   * they should set algorithm_name field to CUSTOM. In this case, the value of the algorithm_version field has no effect
+   * This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify
+   * TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm
+   * name and an algorithm version or (2) when users want to supply custom algorithms they should set algorithm_name field to
+   * CUSTOM. In this case, the value of the algorithm_version field has no effect
    * For pass-through use cases: refer to this AWS official document for more details
    * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
    * 
@@ -2359,8 +2361,10 @@ protected Builder newBuilderForType( /** *
      * Specifies the training algorithm to be used in the training job
-     * This object is mostly a pass-through, with the exception that when users want to supply custom algorithms
-     * they should set algorithm_name field to CUSTOM. In this case, the value of the algorithm_version field has no effect
+     * This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify
+     * TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm
+     * name and an algorithm version or (2) when users want to supply custom algorithms they should set algorithm_name field to
+     * CUSTOM. In this case, the value of the algorithm_version field has no effect
      * For pass-through use cases: refer to this AWS official document for more details
      * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
      * 
diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst index 1f34fe02b..3d5107896 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst @@ -80,9 +80,10 @@ MAXIMIZE flyteidl.plugins.sagemaker.HyperparameterTuningObjective -------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ The objective of the hyperparameter tuning +https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html .. code-block:: json @@ -110,8 +111,11 @@ metric_name flyteidl.plugins.sagemaker.HyperparameterTuningStrategy ------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningStrategy proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningStrategy proto] `_ +Setting the strategy used when doing search in the hyperparameter space +Refer this doc for more details: +https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/ .. code-block:: json @@ -124,7 +128,7 @@ flyteidl.plugins.sagemaker.HyperparameterTuningStrategy Enum flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value ------------------------------------------------------------------ -`[flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value.BAYESIAN: @@ -143,7 +147,7 @@ RANDOM flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType ------------------------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType proto] `_ When the training jobs launched by the hyperparameter tuning job are not improving significantly, a hyperparameter tuning job can be stopping early. @@ -161,7 +165,7 @@ see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-earl Enum flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value ------------------------------------------------------------------ -`[flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value.OFF: @@ -180,7 +184,7 @@ AUTO flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig -------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig proto] `_ The specification of the hyperparameter tuning process https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning-job.html#automatic-model-tuning-ex-low-tuning-config diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst index 4d170ccfc..7d7441606 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst @@ -8,10 +8,11 @@ parameter_ranges.proto flyteidl.plugins.sagemaker.HyperparameterScalingType ---------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterScalingType proto] `_ HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter -https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +For details, refer to: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +See examples of these scaling type, refer to: https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/ .. code-block:: json @@ -24,7 +25,7 @@ https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ra Enum flyteidl.plugins.sagemaker.HyperparameterScalingType.Value --------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterScalingType.Value proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterScalingType.Value proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterScalingType.Value.AUTO: @@ -53,7 +54,7 @@ REVERSELOGARITHMIC flyteidl.plugins.sagemaker.ContinuousParameterRange --------------------------------------------------- -`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.ContinuousParameterRange proto] `_ ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing users to specify the search space of a floating-point hyperparameter @@ -89,7 +90,7 @@ scaling_type flyteidl.plugins.sagemaker.IntegerParameterRange ------------------------------------------------ -`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.IntegerParameterRange proto] `_ IntegerParameterRange refers to a discrete range of hyperparameter values, allowing users to specify the search space of an integer hyperparameter @@ -125,7 +126,7 @@ scaling_type flyteidl.plugins.sagemaker.CategoricalParameterRange ---------------------------------------------------- -`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_ +`[flyteidl.plugins.sagemaker.CategoricalParameterRange proto] `_ ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing users to specify the search space of a floating-point hyperparameter @@ -149,7 +150,7 @@ values flyteidl.plugins.sagemaker.ParameterRangeOneOf ---------------------------------------------- -`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_ +`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_ .. code-block:: json @@ -191,7 +192,7 @@ categorical_parameter_range flyteidl.plugins.sagemaker.ParameterRanges ------------------------------------------ -`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ +`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst index 4cdfba5c1..0cc850a85 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst @@ -74,11 +74,13 @@ XGBOOST flyteidl.plugins.sagemaker.AlgorithmSpecification ------------------------------------------------- -`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ Specifies the training algorithm to be used in the training job -This object is mostly a pass-through, with the exception that when users want to supply custom algorithms -they should set algorithm_name field to CUSTOM. In this case, the value of the algorithm_version field has no effect +This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify +TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm +name and an algorithm version or (2) when users want to supply custom algorithms they should set algorithm_name field to +CUSTOM. In this case, the value of the algorithm_version field has no effect For pass-through use cases: refer to this AWS official document for more details https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html @@ -123,7 +125,7 @@ metric_definitions flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition ------------------------------------------------------------------ -`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ .. code-block:: json @@ -153,7 +155,7 @@ regex flyteidl.plugins.sagemaker.TrainingJobResourceConfig ---------------------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the number of instances to launch, and the size of the ML storage volume the user wants to provision @@ -192,7 +194,7 @@ volume_size_in_gb flyteidl.plugins.sagemaker.StoppingCondition -------------------------------------------- -`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ +`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ This option allows the users to specify a limit to how long a training job can run and how long the users are willing to wait for a managed spot training job to complete @@ -228,7 +230,7 @@ max_wait_time_in_seconds flyteidl.plugins.sagemaker.TrainingJob -------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ The spec of a training job. This is mostly a pass-through object https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html From a5ca1710193e49bcd76c6e5a23cbb9af400a8671 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Fri, 24 Jul 2020 19:20:43 -0700 Subject: [PATCH 42/64] bump version --- package.json | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a4e46528a..ad39796aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.18.0b5", + "version": "0.18.0b6", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/setup.py b/setup.py index 4ee9ee3a3..6202ef060 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.18.0b5' +__version__ = '0.18.0b6' setup( name='flyteidl', From 1f8e64fb86d3d34130d29c6fecac82f06918234d Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Mon, 27 Jul 2020 10:21:33 -0700 Subject: [PATCH 43/64] enhance the comment --- protos/flyteidl/plugins/sagemaker/training_job.proto | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto index 71ca13ad8..d0cc82414 100644 --- a/protos/flyteidl/plugins/sagemaker/training_job.proto +++ b/protos/flyteidl/plugins/sagemaker/training_job.proto @@ -61,7 +61,9 @@ message TrainingJobResourceConfig { // This option allows the users to specify a limit to how long a training job can run and // how long the users are willing to wait for a managed spot training job to complete -// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html +// If the user uses SageMaker's built-in algorithms, SageMaker will try to automatically +// save the intermediate artifacts in a best-effort manner. +// See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html message StoppingCondition { // The maximum length of time in second that the training job can run. From cc6adcfcaa2c3379c2b226118f9ac2162f2ceb1a Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Mon, 27 Jul 2020 10:23:00 -0700 Subject: [PATCH 44/64] use google.protobuf.Duration for stopping conditions --- protos/flyteidl/plugins/sagemaker/training_job.proto | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto index d0cc82414..520ece6dc 100644 --- a/protos/flyteidl/plugins/sagemaker/training_job.proto +++ b/protos/flyteidl/plugins/sagemaker/training_job.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package flyteidl.plugins.sagemaker; +import "google/protobuf/duration.proto"; + option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; @@ -68,13 +70,13 @@ message StoppingCondition { // The maximum length of time in second that the training job can run. // If this value is not specified, the default expiration time will be 1 day - int64 max_runtime_in_seconds = 1; + google.protobuf.Duration max_runtime_in_seconds = 1; // The maximum length of time in seconds that the users are willing to wait for a managed spot // training job to complete. // Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the // training job runs, so it must be equal to or greater than max_runtime_in_seconds. - int64 max_wait_time_in_seconds = 2; + google.protobuf.Duration max_wait_time_in_seconds = 2; } // The spec of a training job. This is mostly a pass-through object From 7fa36045af3d59e690b94c594e11ae533fef4c7d Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Mon, 27 Jul 2020 10:26:36 -0700 Subject: [PATCH 45/64] make generate --- .../plugins/sagemaker/training_job.pb.cc | 216 ++++--- .../plugins/sagemaker/training_job.pb.h | 119 +++- .../plugins/sagemaker/training_job.pb.go | 103 ++-- .../sagemaker/training_job.pb.validate.go | 20 +- .../sagemaker/TrainingJobOuterClass.java | 578 +++++++++++++++--- .../plugins/sagemaker/training_job.proto.rst | 30 +- .../plugins/sagemaker/training_job_pb2.py | 52 +- 7 files changed, 835 insertions(+), 283 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc index e4889b6fb..e838557b1 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc @@ -19,6 +19,7 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; namespace flyteidl { namespace plugins { namespace sagemaker { @@ -135,8 +136,9 @@ static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftrain ::flyteidl::plugins::sagemaker::StoppingCondition::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<1> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, { + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; static void InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -247,42 +249,45 @@ ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_fl const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[] = "\n-flyteidl/plugins/sagemaker/training_jo" - "b.proto\022\032flyteidl.plugins.sagemaker\"(\n\tI" - "nputMode\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n" - "\rAlgorithmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007X" - "GBOOST\020\001\"\317\002\n\026AlgorithmSpecification\022\?\n\ni" - "nput_mode\030\001 \001(\0162+.flyteidl.plugins.sagem" - "aker.InputMode.Value\022G\n\016algorithm_name\030\002" - " \001(\0162/.flyteidl.plugins.sagemaker.Algori" - "thmName.Value\022\031\n\021algorithm_version\030\003 \001(\t" - "\022_\n\022metric_definitions\030\004 \003(\0132C.flyteidl." - "plugins.sagemaker.AlgorithmSpecification" - ".MetricDefinition\032/\n\020MetricDefinition\022\014\n" - "\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"e\n\031TrainingJo" - "bResourceConfig\022\026\n\016instance_count\030\001 \001(\003\022" - "\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_size_in" - "_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n\026max_ru" - "ntime_in_seconds\030\001 \001(\003\022 \n\030max_wait_time_" - "in_seconds\030\002 \001(\003\"\315\001\n\013TrainingJob\022S\n\027algo" - "rithm_specification\030\001 \001(\01322.flyteidl.plu" - "gins.sagemaker.AlgorithmSpecification\022R\n" - "\023training_job_config\030\002 \001(\01325.flyteidl.pl" - "ugins.sagemaker.TrainingJobResourceConfi" - "g\022\025\n\rinterruptible\030\003 \001(\010B5Z3github.com/l" - "yft/flyteidl/gen/pb-go/flyteidl/pluginsb" - "\006proto3" + "b.proto\022\032flyteidl.plugins.sagemaker\032\036goo" + "gle/protobuf/duration.proto\"(\n\tInputMode" + "\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n\rAlgorit" + "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001" + "\"\317\002\n\026AlgorithmSpecification\022\?\n\ninput_mod" + "e\030\001 \001(\0162+.flyteidl.plugins.sagemaker.Inp" + "utMode.Value\022G\n\016algorithm_name\030\002 \001(\0162/.f" + "lyteidl.plugins.sagemaker.AlgorithmName." + "Value\022\031\n\021algorithm_version\030\003 \001(\t\022_\n\022metr" + "ic_definitions\030\004 \003(\0132C.flyteidl.plugins." + "sagemaker.AlgorithmSpecification.MetricD" + "efinition\032/\n\020MetricDefinition\022\014\n\004name\030\001 " + "\001(\t\022\r\n\005regex\030\002 \001(\t\"e\n\031TrainingJobResourc" + "eConfig\022\026\n\016instance_count\030\001 \001(\003\022\025\n\rinsta" + "nce_type\030\002 \001(\t\022\031\n\021volume_size_in_gb\030\003 \001(" + "\003\"\213\001\n\021StoppingCondition\0229\n\026max_runtime_i" + "n_seconds\030\001 \001(\0132\031.google.protobuf.Durati" + "on\022;\n\030max_wait_time_in_seconds\030\002 \001(\0132\031.g" + "oogle.protobuf.Duration\"\315\001\n\013TrainingJob\022" + "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + "idl.plugins.sagemaker.AlgorithmSpecifica" + "tion\022R\n\023training_job_config\030\002 \001(\01325.flyt" + "eidl.plugins.sagemaker.TrainingJobResour" + "ceConfig\022\025\n\rinterruptible\030\003 \001(\010B5Z3githu" + "b.com/lyft/flyteidl/gen/pb-go/flyteidl/p" + "luginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, - "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 967, + "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 1054, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { static constexpr ::google::protobuf::internal::InitFunc deps[1] = { + ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, deps, 0); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, deps, 1); } // Force running AddDescriptors() at dynamic initialization time. @@ -1970,11 +1975,37 @@ ::google::protobuf::Metadata TrainingJobResourceConfig::GetMetadata() const { // =================================================================== void StoppingCondition::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_._instance.get_mutable()->max_runtime_in_seconds_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_._instance.get_mutable()->max_wait_time_in_seconds_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); } class StoppingCondition::HasBitSetters { public: + static const ::google::protobuf::Duration& max_runtime_in_seconds(const StoppingCondition* msg); + static const ::google::protobuf::Duration& max_wait_time_in_seconds(const StoppingCondition* msg); }; +const ::google::protobuf::Duration& +StoppingCondition::HasBitSetters::max_runtime_in_seconds(const StoppingCondition* msg) { + return *msg->max_runtime_in_seconds_; +} +const ::google::protobuf::Duration& +StoppingCondition::HasBitSetters::max_wait_time_in_seconds(const StoppingCondition* msg) { + return *msg->max_wait_time_in_seconds_; +} +void StoppingCondition::clear_max_runtime_in_seconds() { + if (GetArenaNoVirtual() == nullptr && max_runtime_in_seconds_ != nullptr) { + delete max_runtime_in_seconds_; + } + max_runtime_in_seconds_ = nullptr; +} +void StoppingCondition::clear_max_wait_time_in_seconds() { + if (GetArenaNoVirtual() == nullptr && max_wait_time_in_seconds_ != nullptr) { + delete max_wait_time_in_seconds_; + } + max_wait_time_in_seconds_ = nullptr; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int StoppingCondition::kMaxRuntimeInSecondsFieldNumber; const int StoppingCondition::kMaxWaitTimeInSecondsFieldNumber; @@ -1989,13 +2020,22 @@ StoppingCondition::StoppingCondition(const StoppingCondition& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&max_runtime_in_seconds_, &from.max_runtime_in_seconds_, - static_cast(reinterpret_cast(&max_wait_time_in_seconds_) - - reinterpret_cast(&max_runtime_in_seconds_)) + sizeof(max_wait_time_in_seconds_)); + if (from.has_max_runtime_in_seconds()) { + max_runtime_in_seconds_ = new ::google::protobuf::Duration(*from.max_runtime_in_seconds_); + } else { + max_runtime_in_seconds_ = nullptr; + } + if (from.has_max_wait_time_in_seconds()) { + max_wait_time_in_seconds_ = new ::google::protobuf::Duration(*from.max_wait_time_in_seconds_); + } else { + max_wait_time_in_seconds_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.StoppingCondition) } void StoppingCondition::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); ::memset(&max_runtime_in_seconds_, 0, static_cast( reinterpret_cast(&max_wait_time_in_seconds_) - reinterpret_cast(&max_runtime_in_seconds_)) + sizeof(max_wait_time_in_seconds_)); @@ -2007,6 +2047,8 @@ StoppingCondition::~StoppingCondition() { } void StoppingCondition::SharedDtor() { + if (this != internal_default_instance()) delete max_runtime_in_seconds_; + if (this != internal_default_instance()) delete max_wait_time_in_seconds_; } void StoppingCondition::SetCachedSize(int size) const { @@ -2024,9 +2066,14 @@ void StoppingCondition::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&max_runtime_in_seconds_, 0, static_cast( - reinterpret_cast(&max_wait_time_in_seconds_) - - reinterpret_cast(&max_runtime_in_seconds_)) + sizeof(max_wait_time_in_seconds_)); + if (GetArenaNoVirtual() == nullptr && max_runtime_in_seconds_ != nullptr) { + delete max_runtime_in_seconds_; + } + max_runtime_in_seconds_ = nullptr; + if (GetArenaNoVirtual() == nullptr && max_wait_time_in_seconds_ != nullptr) { + delete max_wait_time_in_seconds_; + } + max_wait_time_in_seconds_ = nullptr; _internal_metadata_.Clear(); } @@ -2043,18 +2090,30 @@ const char* StoppingCondition::_InternalParse(const char* begin, const char* end ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // int64 max_runtime_in_seconds = 1; + // .google.protobuf.Duration max_runtime_in_seconds = 1; case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_max_runtime_in_seconds(::google::protobuf::internal::ReadVarint(&ptr)); + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_max_runtime_in_seconds(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); break; } - // int64 max_wait_time_in_seconds = 2; + // .google.protobuf.Duration max_wait_time_in_seconds = 2; case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_max_wait_time_in_seconds(::google::protobuf::internal::ReadVarint(&ptr)); + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_max_wait_time_in_seconds(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); break; } default: { @@ -2072,6 +2131,9 @@ const char* StoppingCondition::_InternalParse(const char* begin, const char* end } // switch } // while return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool StoppingCondition::MergePartialFromCodedStream( @@ -2084,26 +2146,22 @@ bool StoppingCondition::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // int64 max_runtime_in_seconds = 1; + // .google.protobuf.Duration max_runtime_in_seconds = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &max_runtime_in_seconds_))); + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_max_runtime_in_seconds())); } else { goto handle_unusual; } break; } - // int64 max_wait_time_in_seconds = 2; + // .google.protobuf.Duration max_wait_time_in_seconds = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &max_wait_time_in_seconds_))); + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_max_wait_time_in_seconds())); } else { goto handle_unusual; } @@ -2137,14 +2195,16 @@ void StoppingCondition::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // int64 max_runtime_in_seconds = 1; - if (this->max_runtime_in_seconds() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->max_runtime_in_seconds(), output); + // .google.protobuf.Duration max_runtime_in_seconds = 1; + if (this->has_max_runtime_in_seconds()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::max_runtime_in_seconds(this), output); } - // int64 max_wait_time_in_seconds = 2; - if (this->max_wait_time_in_seconds() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max_wait_time_in_seconds(), output); + // .google.protobuf.Duration max_wait_time_in_seconds = 2; + if (this->has_max_wait_time_in_seconds()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::max_wait_time_in_seconds(this), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -2160,14 +2220,18 @@ ::google::protobuf::uint8* StoppingCondition::InternalSerializeWithCachedSizesTo ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // int64 max_runtime_in_seconds = 1; - if (this->max_runtime_in_seconds() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->max_runtime_in_seconds(), target); + // .google.protobuf.Duration max_runtime_in_seconds = 1; + if (this->has_max_runtime_in_seconds()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::max_runtime_in_seconds(this), target); } - // int64 max_wait_time_in_seconds = 2; - if (this->max_wait_time_in_seconds() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max_wait_time_in_seconds(), target); + // .google.protobuf.Duration max_wait_time_in_seconds = 2; + if (this->has_max_wait_time_in_seconds()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::max_wait_time_in_seconds(this), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -2191,18 +2255,18 @@ size_t StoppingCondition::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // int64 max_runtime_in_seconds = 1; - if (this->max_runtime_in_seconds() != 0) { + // .google.protobuf.Duration max_runtime_in_seconds = 1; + if (this->has_max_runtime_in_seconds()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->max_runtime_in_seconds()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *max_runtime_in_seconds_); } - // int64 max_wait_time_in_seconds = 2; - if (this->max_wait_time_in_seconds() != 0) { + // .google.protobuf.Duration max_wait_time_in_seconds = 2; + if (this->has_max_wait_time_in_seconds()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->max_wait_time_in_seconds()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *max_wait_time_in_seconds_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -2232,11 +2296,11 @@ void StoppingCondition::MergeFrom(const StoppingCondition& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.max_runtime_in_seconds() != 0) { - set_max_runtime_in_seconds(from.max_runtime_in_seconds()); + if (from.has_max_runtime_in_seconds()) { + mutable_max_runtime_in_seconds()->::google::protobuf::Duration::MergeFrom(from.max_runtime_in_seconds()); } - if (from.max_wait_time_in_seconds() != 0) { - set_max_wait_time_in_seconds(from.max_wait_time_in_seconds()); + if (from.has_max_wait_time_in_seconds()) { + mutable_max_wait_time_in_seconds()->::google::protobuf::Duration::MergeFrom(from.max_wait_time_in_seconds()); } } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h index 821e197e8..5f545599f 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h @@ -32,6 +32,7 @@ #include // IWYU pragma: export #include #include +#include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto @@ -910,25 +911,31 @@ class StoppingCondition final : // accessors ------------------------------------------------------- - // int64 max_runtime_in_seconds = 1; + // .google.protobuf.Duration max_runtime_in_seconds = 1; + bool has_max_runtime_in_seconds() const; void clear_max_runtime_in_seconds(); static const int kMaxRuntimeInSecondsFieldNumber = 1; - ::google::protobuf::int64 max_runtime_in_seconds() const; - void set_max_runtime_in_seconds(::google::protobuf::int64 value); + const ::google::protobuf::Duration& max_runtime_in_seconds() const; + ::google::protobuf::Duration* release_max_runtime_in_seconds(); + ::google::protobuf::Duration* mutable_max_runtime_in_seconds(); + void set_allocated_max_runtime_in_seconds(::google::protobuf::Duration* max_runtime_in_seconds); - // int64 max_wait_time_in_seconds = 2; + // .google.protobuf.Duration max_wait_time_in_seconds = 2; + bool has_max_wait_time_in_seconds() const; void clear_max_wait_time_in_seconds(); static const int kMaxWaitTimeInSecondsFieldNumber = 2; - ::google::protobuf::int64 max_wait_time_in_seconds() const; - void set_max_wait_time_in_seconds(::google::protobuf::int64 value); + const ::google::protobuf::Duration& max_wait_time_in_seconds() const; + ::google::protobuf::Duration* release_max_wait_time_in_seconds(); + ::google::protobuf::Duration* mutable_max_wait_time_in_seconds(); + void set_allocated_max_wait_time_in_seconds(::google::protobuf::Duration* max_wait_time_in_seconds); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int64 max_runtime_in_seconds_; - ::google::protobuf::int64 max_wait_time_in_seconds_; + ::google::protobuf::Duration* max_runtime_in_seconds_; + ::google::protobuf::Duration* max_wait_time_in_seconds_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; @@ -1393,32 +1400,96 @@ inline void TrainingJobResourceConfig::set_volume_size_in_gb(::google::protobuf: // StoppingCondition -// int64 max_runtime_in_seconds = 1; -inline void StoppingCondition::clear_max_runtime_in_seconds() { - max_runtime_in_seconds_ = PROTOBUF_LONGLONG(0); +// .google.protobuf.Duration max_runtime_in_seconds = 1; +inline bool StoppingCondition::has_max_runtime_in_seconds() const { + return this != internal_default_instance() && max_runtime_in_seconds_ != nullptr; } -inline ::google::protobuf::int64 StoppingCondition::max_runtime_in_seconds() const { +inline const ::google::protobuf::Duration& StoppingCondition::max_runtime_in_seconds() const { + const ::google::protobuf::Duration* p = max_runtime_in_seconds_; // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) - return max_runtime_in_seconds_; + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* StoppingCondition::release_max_runtime_in_seconds() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) + + ::google::protobuf::Duration* temp = max_runtime_in_seconds_; + max_runtime_in_seconds_ = nullptr; + return temp; } -inline void StoppingCondition::set_max_runtime_in_seconds(::google::protobuf::int64 value) { +inline ::google::protobuf::Duration* StoppingCondition::mutable_max_runtime_in_seconds() { - max_runtime_in_seconds_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) + if (max_runtime_in_seconds_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + max_runtime_in_seconds_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) + return max_runtime_in_seconds_; +} +inline void StoppingCondition::set_allocated_max_runtime_in_seconds(::google::protobuf::Duration* max_runtime_in_seconds) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(max_runtime_in_seconds_); + } + if (max_runtime_in_seconds) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(max_runtime_in_seconds)->GetArena(); + if (message_arena != submessage_arena) { + max_runtime_in_seconds = ::google::protobuf::internal::GetOwnedMessage( + message_arena, max_runtime_in_seconds, submessage_arena); + } + + } else { + + } + max_runtime_in_seconds_ = max_runtime_in_seconds; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) } -// int64 max_wait_time_in_seconds = 2; -inline void StoppingCondition::clear_max_wait_time_in_seconds() { - max_wait_time_in_seconds_ = PROTOBUF_LONGLONG(0); +// .google.protobuf.Duration max_wait_time_in_seconds = 2; +inline bool StoppingCondition::has_max_wait_time_in_seconds() const { + return this != internal_default_instance() && max_wait_time_in_seconds_ != nullptr; } -inline ::google::protobuf::int64 StoppingCondition::max_wait_time_in_seconds() const { +inline const ::google::protobuf::Duration& StoppingCondition::max_wait_time_in_seconds() const { + const ::google::protobuf::Duration* p = max_wait_time_in_seconds_; // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) - return max_wait_time_in_seconds_; + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* StoppingCondition::release_max_wait_time_in_seconds() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) + + ::google::protobuf::Duration* temp = max_wait_time_in_seconds_; + max_wait_time_in_seconds_ = nullptr; + return temp; } -inline void StoppingCondition::set_max_wait_time_in_seconds(::google::protobuf::int64 value) { +inline ::google::protobuf::Duration* StoppingCondition::mutable_max_wait_time_in_seconds() { - max_wait_time_in_seconds_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) + if (max_wait_time_in_seconds_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + max_wait_time_in_seconds_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) + return max_wait_time_in_seconds_; +} +inline void StoppingCondition::set_allocated_max_wait_time_in_seconds(::google::protobuf::Duration* max_wait_time_in_seconds) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(max_wait_time_in_seconds_); + } + if (max_wait_time_in_seconds) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(max_wait_time_in_seconds)->GetArena(); + if (message_arena != submessage_arena) { + max_wait_time_in_seconds = ::google::protobuf::internal::GetOwnedMessage( + message_arena, max_wait_time_in_seconds, submessage_arena); + } + + } else { + + } + max_wait_time_in_seconds_ = max_wait_time_in_seconds; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) } // ------------------------------------------------------------------- diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go index 97cae8681..72048888c 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -6,6 +6,7 @@ package plugins import ( fmt "fmt" proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" math "math" ) @@ -323,19 +324,21 @@ func (m *TrainingJobResourceConfig) GetVolumeSizeInGb() int64 { // This option allows the users to specify a limit to how long a training job can run and // how long the users are willing to wait for a managed spot training job to complete -// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html +// If the user uses SageMaker's built-in algorithms, SageMaker will try to automatically +// save the intermediate artifacts in a best-effort manner. +// See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html type StoppingCondition struct { // The maximum length of time in second that the training job can run. // If this value is not specified, the default expiration time will be 1 day - MaxRuntimeInSeconds int64 `protobuf:"varint,1,opt,name=max_runtime_in_seconds,json=maxRuntimeInSeconds,proto3" json:"max_runtime_in_seconds,omitempty"` + MaxRuntimeInSeconds *duration.Duration `protobuf:"bytes,1,opt,name=max_runtime_in_seconds,json=maxRuntimeInSeconds,proto3" json:"max_runtime_in_seconds,omitempty"` // The maximum length of time in seconds that the users are willing to wait for a managed spot // training job to complete. // Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the // training job runs, so it must be equal to or greater than max_runtime_in_seconds. - MaxWaitTimeInSeconds int64 `protobuf:"varint,2,opt,name=max_wait_time_in_seconds,json=maxWaitTimeInSeconds,proto3" json:"max_wait_time_in_seconds,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MaxWaitTimeInSeconds *duration.Duration `protobuf:"bytes,2,opt,name=max_wait_time_in_seconds,json=maxWaitTimeInSeconds,proto3" json:"max_wait_time_in_seconds,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *StoppingCondition) Reset() { *m = StoppingCondition{} } @@ -363,18 +366,18 @@ func (m *StoppingCondition) XXX_DiscardUnknown() { var xxx_messageInfo_StoppingCondition proto.InternalMessageInfo -func (m *StoppingCondition) GetMaxRuntimeInSeconds() int64 { +func (m *StoppingCondition) GetMaxRuntimeInSeconds() *duration.Duration { if m != nil { return m.MaxRuntimeInSeconds } - return 0 + return nil } -func (m *StoppingCondition) GetMaxWaitTimeInSeconds() int64 { +func (m *StoppingCondition) GetMaxWaitTimeInSeconds() *duration.Duration { if m != nil { return m.MaxWaitTimeInSeconds } - return 0 + return nil } // The spec of a training job. This is mostly a pass-through object @@ -451,43 +454,45 @@ func init() { } var fileDescriptor_6a68f64d8fd9fe30 = []byte{ - // 606 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x4f, 0xdb, 0x4c, - 0x10, 0xc5, 0x04, 0xf8, 0xc8, 0xe4, 0x23, 0x4a, 0x16, 0x44, 0x53, 0x7a, 0x89, 0xdc, 0x56, 0x4a, - 0x85, 0xb0, 0xd5, 0x20, 0x7a, 0xea, 0xa5, 0xa4, 0x14, 0x05, 0x95, 0x82, 0x9c, 0x94, 0x56, 0xbd, - 0x58, 0x6b, 0x67, 0x62, 0xa6, 0x78, 0x77, 0x2d, 0x7b, 0x4d, 0x13, 0x4e, 0xbd, 0xf5, 0xde, 0x6b, - 0xff, 0xd9, 0x2a, 0x9b, 0x1f, 0x84, 0xa8, 0xa0, 0xf6, 0x66, 0xbf, 0x99, 0x79, 0xf3, 0x76, 0xde, - 0xee, 0xc0, 0x5e, 0x3f, 0x1e, 0x6a, 0xa4, 0x5e, 0xec, 0x26, 0x71, 0x1e, 0x91, 0xcc, 0xdc, 0x8c, - 0x47, 0x28, 0xf8, 0x15, 0xa6, 0xae, 0x4e, 0x39, 0x49, 0x92, 0x91, 0xff, 0x55, 0x05, 0x4e, 0x92, - 0x2a, 0xad, 0xd8, 0xce, 0x34, 0xdd, 0x99, 0xa4, 0x3b, 0xb3, 0x74, 0xbb, 0x01, 0xc5, 0xb6, 0x4c, - 0x72, 0x7d, 0xaa, 0x7a, 0x68, 0x3f, 0x81, 0xd5, 0x0b, 0x1e, 0xe7, 0xc8, 0xd6, 0x61, 0xe5, 0x5d, - 0xfb, 0xfd, 0x51, 0x65, 0x69, 0xf4, 0x75, 0xde, 0x3e, 0x3f, 0xaa, 0x58, 0xf6, 0x4b, 0xd8, 0x78, - 0x13, 0x47, 0x2a, 0x25, 0x7d, 0x29, 0x3e, 0x70, 0x81, 0x76, 0x7d, 0x9a, 0x0d, 0xb0, 0xd6, 0xfa, - 0xd8, 0xe9, 0x9e, 0x9d, 0x56, 0x96, 0x58, 0x09, 0xfe, 0xfb, 0x7c, 0x7c, 0x78, 0x76, 0xd6, 0xe9, - 0x56, 0x2c, 0xfb, 0x57, 0x01, 0xb6, 0x67, 0x35, 0x9d, 0x04, 0x43, 0xea, 0x53, 0xc8, 0x35, 0x29, - 0xc9, 0x4e, 0x00, 0x68, 0xd4, 0xd7, 0x17, 0xaa, 0x87, 0x35, 0xab, 0x6e, 0x35, 0xca, 0xcd, 0x5d, - 0xe7, 0x7e, 0xa1, 0xce, 0x4c, 0xa5, 0x63, 0x9a, 0x7a, 0x45, 0x9a, 0x02, 0xec, 0x02, 0xca, 0x7c, - 0xda, 0xc5, 0x97, 0x5c, 0x60, 0x6d, 0xd9, 0xf0, 0xb9, 0x0f, 0xf1, 0xdd, 0x39, 0xcb, 0x84, 0x73, - 0x83, 0xcf, 0x83, 0x6c, 0x17, 0xaa, 0xb7, 0xbc, 0xd7, 0x98, 0x66, 0xa4, 0x64, 0xad, 0x50, 0xb7, - 0x1a, 0x45, 0xaf, 0x32, 0x0b, 0x5c, 0x8c, 0x71, 0x96, 0x02, 0x13, 0xa8, 0x53, 0x0a, 0xfd, 0x1e, - 0xf6, 0x49, 0xd2, 0xe8, 0x94, 0x59, 0x6d, 0xa5, 0x5e, 0x68, 0x94, 0x9a, 0xad, 0xbf, 0x12, 0x72, - 0x67, 0x40, 0xce, 0xa9, 0x21, 0x7b, 0x3b, 0xe3, 0xf2, 0xaa, 0x62, 0x01, 0xc9, 0x76, 0x5e, 0x43, - 0x65, 0x31, 0x8d, 0x31, 0x58, 0x31, 0x23, 0xb0, 0x8c, 0x4e, 0xf3, 0xcd, 0xb6, 0x60, 0x35, 0xc5, - 0x08, 0x07, 0x66, 0x2e, 0x45, 0x6f, 0xfc, 0x63, 0xff, 0xb4, 0xe0, 0x71, 0x77, 0x72, 0x5b, 0x4e, - 0x54, 0xe0, 0x61, 0xa6, 0xf2, 0x34, 0xc4, 0x96, 0x92, 0x7d, 0x8a, 0xd8, 0x73, 0x28, 0x93, 0xcc, - 0x34, 0x97, 0x21, 0xfa, 0xa1, 0xca, 0xa5, 0x36, 0x8c, 0x05, 0x6f, 0x63, 0x8a, 0xb6, 0x46, 0x20, - 0x7b, 0x0a, 0x33, 0xc0, 0xd7, 0xc3, 0x04, 0x27, 0x2d, 0xfe, 0x9f, 0x82, 0xdd, 0x61, 0x82, 0xec, - 0x05, 0x54, 0xaf, 0x55, 0x9c, 0x0b, 0xf4, 0x33, 0xba, 0x41, 0x9f, 0xa4, 0x1f, 0x05, 0x66, 0x90, - 0x05, 0xaf, 0x3c, 0x0e, 0x74, 0xe8, 0x06, 0xdb, 0xf2, 0x38, 0xb0, 0xbf, 0x5b, 0x50, 0xed, 0x68, - 0x95, 0x24, 0x24, 0xa3, 0x96, 0x92, 0xbd, 0xf1, 0xa1, 0xf6, 0x61, 0x5b, 0xf0, 0x81, 0x9f, 0xe6, - 0x52, 0x93, 0x30, 0x04, 0x19, 0x86, 0x4a, 0xf6, 0xb2, 0x89, 0xa8, 0x4d, 0xc1, 0x07, 0xde, 0x38, - 0xd8, 0x96, 0x9d, 0x71, 0x88, 0xbd, 0x82, 0xda, 0xa8, 0xe8, 0x1b, 0x27, 0xed, 0x2f, 0x96, 0x2d, - 0x9b, 0xb2, 0x2d, 0xc1, 0x07, 0x9f, 0x38, 0xe9, 0xee, 0x7c, 0x9d, 0xfd, 0x63, 0x19, 0x4a, 0x73, - 0x73, 0x61, 0x57, 0xf0, 0xe8, 0xf6, 0x1a, 0x64, 0xf3, 0x26, 0x99, 0xee, 0xa5, 0x66, 0xf3, 0xdf, - 0xed, 0xf5, 0xb6, 0xf9, 0x9f, 0xdf, 0x05, 0xc2, 0xe6, 0xfc, 0x0b, 0xf6, 0x43, 0xe3, 0x86, 0xd1, - 0x5b, 0x6a, 0x1e, 0x3c, 0xd4, 0xe8, 0x5e, 0x2b, 0xbd, 0xaa, 0xbe, 0x0d, 0x4d, 0xdc, 0x7d, 0x36, - 0xb2, 0x4d, 0x63, 0x9a, 0xe6, 0x89, 0xa6, 0x20, 0x46, 0xe3, 0xc6, 0xba, 0x77, 0x17, 0x3c, 0x3c, - 0xf8, 0xb2, 0x1f, 0x91, 0xbe, 0xcc, 0x03, 0x27, 0x54, 0xc2, 0x8d, 0x87, 0x7d, 0xed, 0xce, 0x36, - 0x4f, 0x84, 0xd2, 0x4d, 0x82, 0xbd, 0x48, 0xb9, 0x8b, 0xcb, 0x28, 0x58, 0x33, 0x6b, 0x67, 0xff, - 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x95, 0x36, 0xf4, 0xde, 0xa7, 0x04, 0x00, 0x00, + // 637 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x5d, 0x4f, 0xdb, 0x4a, + 0x10, 0xc5, 0x04, 0xb8, 0x64, 0x72, 0x89, 0x92, 0x05, 0x71, 0x03, 0x57, 0xaa, 0x22, 0xb7, 0x95, + 0x52, 0x21, 0x6c, 0x35, 0x88, 0xb7, 0xbe, 0x94, 0x40, 0x51, 0x50, 0xf9, 0xa8, 0x93, 0xd2, 0xaa, + 0x2f, 0xd6, 0xda, 0x9e, 0x98, 0x2d, 0xf6, 0xae, 0x65, 0xaf, 0x69, 0xc2, 0x1f, 0xe8, 0x7b, 0x5f, + 0xfb, 0x3f, 0xfa, 0xfb, 0xaa, 0xac, 0x3f, 0x08, 0x51, 0xa1, 0xed, 0xdb, 0xfa, 0xec, 0xcc, 0x99, + 0x99, 0x33, 0xc7, 0x0b, 0xbb, 0xa3, 0x60, 0x22, 0x91, 0x79, 0x81, 0x19, 0x05, 0xa9, 0xcf, 0x78, + 0x62, 0x26, 0xd4, 0xc7, 0x90, 0x5e, 0x63, 0x6c, 0xca, 0x98, 0x32, 0xce, 0xb8, 0x6f, 0x7f, 0x16, + 0x8e, 0x11, 0xc5, 0x42, 0x0a, 0xb2, 0x5d, 0x84, 0x1b, 0x79, 0xb8, 0x51, 0x86, 0x6f, 0x3f, 0xf1, + 0x85, 0xf0, 0x03, 0x34, 0x55, 0xa4, 0x93, 0x8e, 0x4c, 0x2f, 0x8d, 0xa9, 0x64, 0x82, 0x67, 0xb9, + 0x7a, 0x07, 0xaa, 0x7d, 0x1e, 0xa5, 0xf2, 0x54, 0x78, 0xa8, 0xff, 0x0f, 0xcb, 0x97, 0x34, 0x48, + 0x91, 0xac, 0xc2, 0xd2, 0x9b, 0xfe, 0xdb, 0xa3, 0xc6, 0xc2, 0xf4, 0x74, 0xd1, 0xbf, 0x38, 0x6a, + 0x68, 0xfa, 0x4b, 0x58, 0x7b, 0x1d, 0xf8, 0x22, 0x66, 0xf2, 0x2a, 0x3c, 0xa3, 0x21, 0xea, 0xed, + 0x22, 0x1a, 0x60, 0xa5, 0xf7, 0x7e, 0x30, 0x3c, 0x3f, 0x6d, 0x2c, 0x90, 0x1a, 0xfc, 0xf3, 0xf1, + 0xf8, 0xe0, 0xfc, 0x7c, 0x30, 0x6c, 0x68, 0xfa, 0xf7, 0x0a, 0x6c, 0x96, 0x39, 0x83, 0x08, 0x5d, + 0x36, 0x62, 0xae, 0xaa, 0x4e, 0x4e, 0x00, 0xd8, 0xb4, 0xae, 0x1d, 0x0a, 0x0f, 0x5b, 0x5a, 0x5b, + 0xeb, 0xd4, 0xbb, 0x3b, 0xc6, 0xc3, 0x83, 0x18, 0x65, 0x97, 0x86, 0x2a, 0x6a, 0x55, 0x59, 0x01, + 0x90, 0x4b, 0xa8, 0xd3, 0xa2, 0x8a, 0xcd, 0x69, 0x88, 0xad, 0x45, 0xc5, 0x67, 0x3e, 0xc6, 0x77, + 0x6f, 0x96, 0x9c, 0x73, 0x8d, 0xce, 0x82, 0x64, 0x07, 0x9a, 0x77, 0xbc, 0x37, 0x18, 0x27, 0x4c, + 0xf0, 0x56, 0xa5, 0xad, 0x75, 0xaa, 0x56, 0xa3, 0xbc, 0xb8, 0xcc, 0x70, 0x12, 0x03, 0x09, 0x51, + 0xc6, 0xcc, 0xb5, 0x3d, 0x1c, 0x31, 0xce, 0xa6, 0x53, 0x26, 0xad, 0xa5, 0x76, 0xa5, 0x53, 0xeb, + 0xf6, 0xfe, 0xa8, 0x91, 0x7b, 0x02, 0x19, 0xa7, 0x8a, 0xec, 0xb0, 0xe4, 0xb2, 0x9a, 0xe1, 0x1c, + 0x92, 0x6c, 0xbf, 0x82, 0xc6, 0x7c, 0x18, 0x21, 0xb0, 0xa4, 0x24, 0xd0, 0x54, 0x9f, 0xea, 0x4c, + 0x36, 0x60, 0x39, 0x46, 0x1f, 0xc7, 0x4a, 0x97, 0xaa, 0x95, 0x7d, 0xe8, 0xdf, 0x34, 0xd8, 0x1a, + 0xe6, 0x6e, 0x3a, 0x11, 0x8e, 0x85, 0x89, 0x48, 0x63, 0x17, 0x7b, 0x82, 0x8f, 0x98, 0x4f, 0x9e, + 0x43, 0x9d, 0xf1, 0x44, 0x52, 0xee, 0xa2, 0xed, 0x8a, 0x94, 0x4b, 0xc5, 0x58, 0xb1, 0xd6, 0x0a, + 0xb4, 0x37, 0x05, 0xc9, 0x53, 0x28, 0x01, 0x5b, 0x4e, 0x22, 0xcc, 0x4b, 0xfc, 0x5b, 0x80, 0xc3, + 0x49, 0x84, 0xe4, 0x05, 0x34, 0x6f, 0x44, 0x90, 0x86, 0x68, 0x27, 0xec, 0x16, 0x6d, 0xc6, 0x6d, + 0xdf, 0x51, 0x42, 0x56, 0xac, 0x7a, 0x76, 0x31, 0x60, 0xb7, 0xd8, 0xe7, 0xc7, 0x8e, 0xfe, 0x43, + 0x83, 0xe6, 0x40, 0x8a, 0x28, 0x62, 0xdc, 0xef, 0x09, 0xee, 0x65, 0x43, 0x9d, 0xc1, 0x66, 0x48, + 0xc7, 0x76, 0x9c, 0x72, 0xc9, 0x42, 0x45, 0x90, 0xa0, 0x2b, 0xb8, 0x97, 0xa8, 0xa6, 0x6a, 0xdd, + 0x2d, 0x23, 0xb3, 0xb9, 0x51, 0xd8, 0xdc, 0x38, 0xcc, 0x6d, 0x6e, 0xad, 0x87, 0x74, 0x6c, 0x65, + 0x79, 0x7d, 0x3e, 0xc8, 0xb2, 0xc8, 0x3b, 0x68, 0x4d, 0xf9, 0xbe, 0x50, 0x26, 0xed, 0x79, 0xc6, + 0xc5, 0xdf, 0x31, 0x6e, 0x84, 0x74, 0xfc, 0x81, 0x32, 0x39, 0x9c, 0xa5, 0xd4, 0xbf, 0x2e, 0x42, + 0x6d, 0x46, 0x4d, 0x72, 0x0d, 0xff, 0xdd, 0x99, 0x27, 0x99, 0x5d, 0x6d, 0xde, 0x73, 0xf7, 0xef, + 0x4d, 0x61, 0x6d, 0xd2, 0x5f, 0xff, 0x4d, 0x08, 0xeb, 0xb3, 0xef, 0x82, 0xed, 0xaa, 0x1d, 0xe6, + 0xa3, 0xec, 0x3f, 0x56, 0xe8, 0x41, 0x03, 0x58, 0x4d, 0x79, 0x77, 0x95, 0x7b, 0xe2, 0xd9, 0x74, + 0xd9, 0x12, 0xe3, 0x38, 0x8d, 0x24, 0x73, 0x02, 0x54, 0x3b, 0x5c, 0xb5, 0xee, 0x83, 0x07, 0xfb, + 0x9f, 0xf6, 0x7c, 0x26, 0xaf, 0x52, 0xc7, 0x70, 0x45, 0x68, 0x06, 0x93, 0x91, 0x34, 0xcb, 0xf7, + 0xcc, 0x47, 0x6e, 0x46, 0xce, 0xae, 0x2f, 0xcc, 0xf9, 0x27, 0xce, 0x59, 0x51, 0x4a, 0xef, 0xfd, + 0x0c, 0x00, 0x00, 0xff, 0xff, 0x58, 0x43, 0x64, 0x72, 0xfd, 0x04, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go index 01c7f41af..f8d76f654 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go @@ -334,9 +334,25 @@ func (m *StoppingCondition) Validate() error { return nil } - // no validation rules for MaxRuntimeInSeconds + if v, ok := interface{}(m.GetMaxRuntimeInSeconds()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StoppingConditionValidationError{ + field: "MaxRuntimeInSeconds", + reason: "embedded message failed validation", + cause: err, + } + } + } - // no validation rules for MaxWaitTimeInSeconds + if v, ok := interface{}(m.GetMaxWaitTimeInSeconds()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StoppingConditionValidationError{ + field: "MaxWaitTimeInSeconds", + reason: "embedded message failed validation", + cause: err, + } + } + } return nil } diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java index 5a67c5746..fae46f0e4 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -3958,9 +3958,27 @@ public interface StoppingConditionOrBuilder extends * If this value is not specified, the default expiration time will be 1 day * * - * int64 max_runtime_in_seconds = 1; + * .google.protobuf.Duration max_runtime_in_seconds = 1; */ - long getMaxRuntimeInSeconds(); + boolean hasMaxRuntimeInSeconds(); + /** + *
+     * The maximum length of time in second that the training job can run.
+     * If this value is not specified, the default expiration time will be 1 day
+     * 
+ * + * .google.protobuf.Duration max_runtime_in_seconds = 1; + */ + com.google.protobuf.Duration getMaxRuntimeInSeconds(); + /** + *
+     * The maximum length of time in second that the training job can run.
+     * If this value is not specified, the default expiration time will be 1 day
+     * 
+ * + * .google.protobuf.Duration max_runtime_in_seconds = 1; + */ + com.google.protobuf.DurationOrBuilder getMaxRuntimeInSecondsOrBuilder(); /** *
@@ -3970,15 +3988,39 @@ public interface StoppingConditionOrBuilder extends
      * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
      * 
* - * int64 max_wait_time_in_seconds = 2; + * .google.protobuf.Duration max_wait_time_in_seconds = 2; */ - long getMaxWaitTimeInSeconds(); + boolean hasMaxWaitTimeInSeconds(); + /** + *
+     * The maximum length of time in seconds that the users are willing to wait for a managed spot
+     * training job to complete.
+     * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+     * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+     * 
+ * + * .google.protobuf.Duration max_wait_time_in_seconds = 2; + */ + com.google.protobuf.Duration getMaxWaitTimeInSeconds(); + /** + *
+     * The maximum length of time in seconds that the users are willing to wait for a managed spot
+     * training job to complete.
+     * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+     * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+     * 
+ * + * .google.protobuf.Duration max_wait_time_in_seconds = 2; + */ + com.google.protobuf.DurationOrBuilder getMaxWaitTimeInSecondsOrBuilder(); } /** *
    * This option allows the users to specify a limit to how long a training job can run and
    * how long the users are willing to wait for a managed spot training job to complete
-   * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html
+   * If the user uses SageMaker's built-in algorithms, SageMaker will try to automatically
+   * save the intermediate artifacts in a best-effort manner.
+   * See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html
    * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} @@ -4019,14 +4061,30 @@ private StoppingCondition( case 0: done = true; break; - case 8: { + case 10: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maxRuntimeInSeconds_ != null) { + subBuilder = maxRuntimeInSeconds_.toBuilder(); + } + maxRuntimeInSeconds_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxRuntimeInSeconds_); + maxRuntimeInSeconds_ = subBuilder.buildPartial(); + } - maxRuntimeInSeconds_ = input.readInt64(); break; } - case 16: { + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maxWaitTimeInSeconds_ != null) { + subBuilder = maxWaitTimeInSeconds_.toBuilder(); + } + maxWaitTimeInSeconds_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxWaitTimeInSeconds_); + maxWaitTimeInSeconds_ = subBuilder.buildPartial(); + } - maxWaitTimeInSeconds_ = input.readInt64(); break; } default: { @@ -4062,21 +4120,43 @@ private StoppingCondition( } public static final int MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER = 1; - private long maxRuntimeInSeconds_; + private com.google.protobuf.Duration maxRuntimeInSeconds_; + /** + *
+     * The maximum length of time in second that the training job can run.
+     * If this value is not specified, the default expiration time will be 1 day
+     * 
+ * + * .google.protobuf.Duration max_runtime_in_seconds = 1; + */ + public boolean hasMaxRuntimeInSeconds() { + return maxRuntimeInSeconds_ != null; + } + /** + *
+     * The maximum length of time in second that the training job can run.
+     * If this value is not specified, the default expiration time will be 1 day
+     * 
+ * + * .google.protobuf.Duration max_runtime_in_seconds = 1; + */ + public com.google.protobuf.Duration getMaxRuntimeInSeconds() { + return maxRuntimeInSeconds_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxRuntimeInSeconds_; + } /** *
      * The maximum length of time in second that the training job can run.
      * If this value is not specified, the default expiration time will be 1 day
      * 
* - * int64 max_runtime_in_seconds = 1; + * .google.protobuf.Duration max_runtime_in_seconds = 1; */ - public long getMaxRuntimeInSeconds() { - return maxRuntimeInSeconds_; + public com.google.protobuf.DurationOrBuilder getMaxRuntimeInSecondsOrBuilder() { + return getMaxRuntimeInSeconds(); } public static final int MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER = 2; - private long maxWaitTimeInSeconds_; + private com.google.protobuf.Duration maxWaitTimeInSeconds_; /** *
      * The maximum length of time in seconds that the users are willing to wait for a managed spot
@@ -4085,10 +4165,36 @@ public long getMaxRuntimeInSeconds() {
      * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
      * 
* - * int64 max_wait_time_in_seconds = 2; + * .google.protobuf.Duration max_wait_time_in_seconds = 2; */ - public long getMaxWaitTimeInSeconds() { - return maxWaitTimeInSeconds_; + public boolean hasMaxWaitTimeInSeconds() { + return maxWaitTimeInSeconds_ != null; + } + /** + *
+     * The maximum length of time in seconds that the users are willing to wait for a managed spot
+     * training job to complete.
+     * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+     * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+     * 
+ * + * .google.protobuf.Duration max_wait_time_in_seconds = 2; + */ + public com.google.protobuf.Duration getMaxWaitTimeInSeconds() { + return maxWaitTimeInSeconds_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWaitTimeInSeconds_; + } + /** + *
+     * The maximum length of time in seconds that the users are willing to wait for a managed spot
+     * training job to complete.
+     * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+     * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+     * 
+ * + * .google.protobuf.Duration max_wait_time_in_seconds = 2; + */ + public com.google.protobuf.DurationOrBuilder getMaxWaitTimeInSecondsOrBuilder() { + return getMaxWaitTimeInSeconds(); } private byte memoizedIsInitialized = -1; @@ -4105,11 +4211,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (maxRuntimeInSeconds_ != 0L) { - output.writeInt64(1, maxRuntimeInSeconds_); + if (maxRuntimeInSeconds_ != null) { + output.writeMessage(1, getMaxRuntimeInSeconds()); } - if (maxWaitTimeInSeconds_ != 0L) { - output.writeInt64(2, maxWaitTimeInSeconds_); + if (maxWaitTimeInSeconds_ != null) { + output.writeMessage(2, getMaxWaitTimeInSeconds()); } unknownFields.writeTo(output); } @@ -4120,13 +4226,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (maxRuntimeInSeconds_ != 0L) { + if (maxRuntimeInSeconds_ != null) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, maxRuntimeInSeconds_); + .computeMessageSize(1, getMaxRuntimeInSeconds()); } - if (maxWaitTimeInSeconds_ != 0L) { + if (maxWaitTimeInSeconds_ != null) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxWaitTimeInSeconds_); + .computeMessageSize(2, getMaxWaitTimeInSeconds()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4143,10 +4249,16 @@ public boolean equals(final java.lang.Object obj) { } flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) obj; - if (getMaxRuntimeInSeconds() - != other.getMaxRuntimeInSeconds()) return false; - if (getMaxWaitTimeInSeconds() - != other.getMaxWaitTimeInSeconds()) return false; + if (hasMaxRuntimeInSeconds() != other.hasMaxRuntimeInSeconds()) return false; + if (hasMaxRuntimeInSeconds()) { + if (!getMaxRuntimeInSeconds() + .equals(other.getMaxRuntimeInSeconds())) return false; + } + if (hasMaxWaitTimeInSeconds() != other.hasMaxWaitTimeInSeconds()) return false; + if (hasMaxWaitTimeInSeconds()) { + if (!getMaxWaitTimeInSeconds() + .equals(other.getMaxWaitTimeInSeconds())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4158,12 +4270,14 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxRuntimeInSeconds()); - hash = (37 * hash) + MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxWaitTimeInSeconds()); + if (hasMaxRuntimeInSeconds()) { + hash = (37 * hash) + MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getMaxRuntimeInSeconds().hashCode(); + } + if (hasMaxWaitTimeInSeconds()) { + hash = (37 * hash) + MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getMaxWaitTimeInSeconds().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -4263,7 +4377,9 @@ protected Builder newBuilderForType( *
      * This option allows the users to specify a limit to how long a training job can run and
      * how long the users are willing to wait for a managed spot training job to complete
-     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html
+     * If the user uses SageMaker's built-in algorithms, SageMaker will try to automatically
+     * save the intermediate artifacts in a best-effort manner.
+     * See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html
      * 
* * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} @@ -4303,10 +4419,18 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - maxRuntimeInSeconds_ = 0L; - - maxWaitTimeInSeconds_ = 0L; - + if (maxRuntimeInSecondsBuilder_ == null) { + maxRuntimeInSeconds_ = null; + } else { + maxRuntimeInSeconds_ = null; + maxRuntimeInSecondsBuilder_ = null; + } + if (maxWaitTimeInSecondsBuilder_ == null) { + maxWaitTimeInSeconds_ = null; + } else { + maxWaitTimeInSeconds_ = null; + maxWaitTimeInSecondsBuilder_ = null; + } return this; } @@ -4333,8 +4457,16 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition build( @java.lang.Override public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition buildPartial() { flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(this); - result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; - result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; + if (maxRuntimeInSecondsBuilder_ == null) { + result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; + } else { + result.maxRuntimeInSeconds_ = maxRuntimeInSecondsBuilder_.build(); + } + if (maxWaitTimeInSecondsBuilder_ == null) { + result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; + } else { + result.maxWaitTimeInSeconds_ = maxWaitTimeInSecondsBuilder_.build(); + } onBuilt(); return result; } @@ -4383,11 +4515,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other) { if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance()) return this; - if (other.getMaxRuntimeInSeconds() != 0L) { - setMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); + if (other.hasMaxRuntimeInSeconds()) { + mergeMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); } - if (other.getMaxWaitTimeInSeconds() != 0L) { - setMaxWaitTimeInSeconds(other.getMaxWaitTimeInSeconds()); + if (other.hasMaxWaitTimeInSeconds()) { + mergeMaxWaitTimeInSeconds(other.getMaxWaitTimeInSeconds()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -4418,17 +4550,19 @@ public Builder mergeFrom( return this; } - private long maxRuntimeInSeconds_ ; + private com.google.protobuf.Duration maxRuntimeInSeconds_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxRuntimeInSecondsBuilder_; /** *
        * The maximum length of time in second that the training job can run.
        * If this value is not specified, the default expiration time will be 1 day
        * 
* - * int64 max_runtime_in_seconds = 1; + * .google.protobuf.Duration max_runtime_in_seconds = 1; */ - public long getMaxRuntimeInSeconds() { - return maxRuntimeInSeconds_; + public boolean hasMaxRuntimeInSeconds() { + return maxRuntimeInSecondsBuilder_ != null || maxRuntimeInSeconds_ != null; } /** *
@@ -4436,12 +4570,76 @@ public long getMaxRuntimeInSeconds() {
        * If this value is not specified, the default expiration time will be 1 day
        * 
* - * int64 max_runtime_in_seconds = 1; + * .google.protobuf.Duration max_runtime_in_seconds = 1; */ - public Builder setMaxRuntimeInSeconds(long value) { - - maxRuntimeInSeconds_ = value; - onChanged(); + public com.google.protobuf.Duration getMaxRuntimeInSeconds() { + if (maxRuntimeInSecondsBuilder_ == null) { + return maxRuntimeInSeconds_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxRuntimeInSeconds_; + } else { + return maxRuntimeInSecondsBuilder_.getMessage(); + } + } + /** + *
+       * The maximum length of time in second that the training job can run.
+       * If this value is not specified, the default expiration time will be 1 day
+       * 
+ * + * .google.protobuf.Duration max_runtime_in_seconds = 1; + */ + public Builder setMaxRuntimeInSeconds(com.google.protobuf.Duration value) { + if (maxRuntimeInSecondsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxRuntimeInSeconds_ = value; + onChanged(); + } else { + maxRuntimeInSecondsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The maximum length of time in second that the training job can run.
+       * If this value is not specified, the default expiration time will be 1 day
+       * 
+ * + * .google.protobuf.Duration max_runtime_in_seconds = 1; + */ + public Builder setMaxRuntimeInSeconds( + com.google.protobuf.Duration.Builder builderForValue) { + if (maxRuntimeInSecondsBuilder_ == null) { + maxRuntimeInSeconds_ = builderForValue.build(); + onChanged(); + } else { + maxRuntimeInSecondsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The maximum length of time in second that the training job can run.
+       * If this value is not specified, the default expiration time will be 1 day
+       * 
+ * + * .google.protobuf.Duration max_runtime_in_seconds = 1; + */ + public Builder mergeMaxRuntimeInSeconds(com.google.protobuf.Duration value) { + if (maxRuntimeInSecondsBuilder_ == null) { + if (maxRuntimeInSeconds_ != null) { + maxRuntimeInSeconds_ = + com.google.protobuf.Duration.newBuilder(maxRuntimeInSeconds_).mergeFrom(value).buildPartial(); + } else { + maxRuntimeInSeconds_ = value; + } + onChanged(); + } else { + maxRuntimeInSecondsBuilder_.mergeFrom(value); + } + return this; } /** @@ -4450,16 +4648,73 @@ public Builder setMaxRuntimeInSeconds(long value) { * If this value is not specified, the default expiration time will be 1 day * * - * int64 max_runtime_in_seconds = 1; + * .google.protobuf.Duration max_runtime_in_seconds = 1; */ public Builder clearMaxRuntimeInSeconds() { + if (maxRuntimeInSecondsBuilder_ == null) { + maxRuntimeInSeconds_ = null; + onChanged(); + } else { + maxRuntimeInSeconds_ = null; + maxRuntimeInSecondsBuilder_ = null; + } + + return this; + } + /** + *
+       * The maximum length of time in second that the training job can run.
+       * If this value is not specified, the default expiration time will be 1 day
+       * 
+ * + * .google.protobuf.Duration max_runtime_in_seconds = 1; + */ + public com.google.protobuf.Duration.Builder getMaxRuntimeInSecondsBuilder() { - maxRuntimeInSeconds_ = 0L; onChanged(); - return this; + return getMaxRuntimeInSecondsFieldBuilder().getBuilder(); + } + /** + *
+       * The maximum length of time in second that the training job can run.
+       * If this value is not specified, the default expiration time will be 1 day
+       * 
+ * + * .google.protobuf.Duration max_runtime_in_seconds = 1; + */ + public com.google.protobuf.DurationOrBuilder getMaxRuntimeInSecondsOrBuilder() { + if (maxRuntimeInSecondsBuilder_ != null) { + return maxRuntimeInSecondsBuilder_.getMessageOrBuilder(); + } else { + return maxRuntimeInSeconds_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : maxRuntimeInSeconds_; + } + } + /** + *
+       * The maximum length of time in second that the training job can run.
+       * If this value is not specified, the default expiration time will be 1 day
+       * 
+ * + * .google.protobuf.Duration max_runtime_in_seconds = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getMaxRuntimeInSecondsFieldBuilder() { + if (maxRuntimeInSecondsBuilder_ == null) { + maxRuntimeInSecondsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMaxRuntimeInSeconds(), + getParentForChildren(), + isClean()); + maxRuntimeInSeconds_ = null; + } + return maxRuntimeInSecondsBuilder_; } - private long maxWaitTimeInSeconds_ ; + private com.google.protobuf.Duration maxWaitTimeInSeconds_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxWaitTimeInSecondsBuilder_; /** *
        * The maximum length of time in seconds that the users are willing to wait for a managed spot
@@ -4468,10 +4723,10 @@ public Builder clearMaxRuntimeInSeconds() {
        * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
        * 
* - * int64 max_wait_time_in_seconds = 2; + * .google.protobuf.Duration max_wait_time_in_seconds = 2; */ - public long getMaxWaitTimeInSeconds() { - return maxWaitTimeInSeconds_; + public boolean hasMaxWaitTimeInSeconds() { + return maxWaitTimeInSecondsBuilder_ != null || maxWaitTimeInSeconds_ != null; } /** *
@@ -4481,12 +4736,36 @@ public long getMaxWaitTimeInSeconds() {
        * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
        * 
* - * int64 max_wait_time_in_seconds = 2; + * .google.protobuf.Duration max_wait_time_in_seconds = 2; */ - public Builder setMaxWaitTimeInSeconds(long value) { - - maxWaitTimeInSeconds_ = value; - onChanged(); + public com.google.protobuf.Duration getMaxWaitTimeInSeconds() { + if (maxWaitTimeInSecondsBuilder_ == null) { + return maxWaitTimeInSeconds_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWaitTimeInSeconds_; + } else { + return maxWaitTimeInSecondsBuilder_.getMessage(); + } + } + /** + *
+       * The maximum length of time in seconds that the users are willing to wait for a managed spot
+       * training job to complete.
+       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+       * 
+ * + * .google.protobuf.Duration max_wait_time_in_seconds = 2; + */ + public Builder setMaxWaitTimeInSeconds(com.google.protobuf.Duration value) { + if (maxWaitTimeInSecondsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxWaitTimeInSeconds_ = value; + onChanged(); + } else { + maxWaitTimeInSecondsBuilder_.setMessage(value); + } + return this; } /** @@ -4497,13 +4776,120 @@ public Builder setMaxWaitTimeInSeconds(long value) { * training job runs, so it must be equal to or greater than max_runtime_in_seconds. * * - * int64 max_wait_time_in_seconds = 2; + * .google.protobuf.Duration max_wait_time_in_seconds = 2; + */ + public Builder setMaxWaitTimeInSeconds( + com.google.protobuf.Duration.Builder builderForValue) { + if (maxWaitTimeInSecondsBuilder_ == null) { + maxWaitTimeInSeconds_ = builderForValue.build(); + onChanged(); + } else { + maxWaitTimeInSecondsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The maximum length of time in seconds that the users are willing to wait for a managed spot
+       * training job to complete.
+       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+       * 
+ * + * .google.protobuf.Duration max_wait_time_in_seconds = 2; + */ + public Builder mergeMaxWaitTimeInSeconds(com.google.protobuf.Duration value) { + if (maxWaitTimeInSecondsBuilder_ == null) { + if (maxWaitTimeInSeconds_ != null) { + maxWaitTimeInSeconds_ = + com.google.protobuf.Duration.newBuilder(maxWaitTimeInSeconds_).mergeFrom(value).buildPartial(); + } else { + maxWaitTimeInSeconds_ = value; + } + onChanged(); + } else { + maxWaitTimeInSecondsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The maximum length of time in seconds that the users are willing to wait for a managed spot
+       * training job to complete.
+       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+       * 
+ * + * .google.protobuf.Duration max_wait_time_in_seconds = 2; */ public Builder clearMaxWaitTimeInSeconds() { + if (maxWaitTimeInSecondsBuilder_ == null) { + maxWaitTimeInSeconds_ = null; + onChanged(); + } else { + maxWaitTimeInSeconds_ = null; + maxWaitTimeInSecondsBuilder_ = null; + } + + return this; + } + /** + *
+       * The maximum length of time in seconds that the users are willing to wait for a managed spot
+       * training job to complete.
+       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+       * 
+ * + * .google.protobuf.Duration max_wait_time_in_seconds = 2; + */ + public com.google.protobuf.Duration.Builder getMaxWaitTimeInSecondsBuilder() { - maxWaitTimeInSeconds_ = 0L; onChanged(); - return this; + return getMaxWaitTimeInSecondsFieldBuilder().getBuilder(); + } + /** + *
+       * The maximum length of time in seconds that the users are willing to wait for a managed spot
+       * training job to complete.
+       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+       * 
+ * + * .google.protobuf.Duration max_wait_time_in_seconds = 2; + */ + public com.google.protobuf.DurationOrBuilder getMaxWaitTimeInSecondsOrBuilder() { + if (maxWaitTimeInSecondsBuilder_ != null) { + return maxWaitTimeInSecondsBuilder_.getMessageOrBuilder(); + } else { + return maxWaitTimeInSeconds_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : maxWaitTimeInSeconds_; + } + } + /** + *
+       * The maximum length of time in seconds that the users are willing to wait for a managed spot
+       * training job to complete.
+       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
+       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
+       * 
+ * + * .google.protobuf.Duration max_wait_time_in_seconds = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getMaxWaitTimeInSecondsFieldBuilder() { + if (maxWaitTimeInSecondsBuilder_ == null) { + maxWaitTimeInSecondsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMaxWaitTimeInSeconds(), + getParentForChildren(), + isClean()); + maxWaitTimeInSeconds_ = null; + } + return maxWaitTimeInSecondsBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -5476,30 +5862,32 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn static { java.lang.String[] descriptorData = { "\n-flyteidl/plugins/sagemaker/training_jo" + - "b.proto\022\032flyteidl.plugins.sagemaker\"(\n\tI" + - "nputMode\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n" + - "\rAlgorithmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007X" + - "GBOOST\020\001\"\317\002\n\026AlgorithmSpecification\022?\n\ni" + - "nput_mode\030\001 \001(\0162+.flyteidl.plugins.sagem" + - "aker.InputMode.Value\022G\n\016algorithm_name\030\002" + - " \001(\0162/.flyteidl.plugins.sagemaker.Algori" + - "thmName.Value\022\031\n\021algorithm_version\030\003 \001(\t" + - "\022_\n\022metric_definitions\030\004 \003(\0132C.flyteidl." + - "plugins.sagemaker.AlgorithmSpecification" + - ".MetricDefinition\032/\n\020MetricDefinition\022\014\n" + - "\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"e\n\031TrainingJo" + - "bResourceConfig\022\026\n\016instance_count\030\001 \001(\003\022" + - "\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volume_size_in" + - "_gb\030\003 \001(\003\"U\n\021StoppingCondition\022\036\n\026max_ru" + - "ntime_in_seconds\030\001 \001(\003\022 \n\030max_wait_time_" + - "in_seconds\030\002 \001(\003\"\315\001\n\013TrainingJob\022S\n\027algo" + - "rithm_specification\030\001 \001(\01322.flyteidl.plu" + - "gins.sagemaker.AlgorithmSpecification\022R\n" + - "\023training_job_config\030\002 \001(\01325.flyteidl.pl" + - "ugins.sagemaker.TrainingJobResourceConfi" + - "g\022\025\n\rinterruptible\030\003 \001(\010B5Z3github.com/l" + - "yft/flyteidl/gen/pb-go/flyteidl/pluginsb" + - "\006proto3" + "b.proto\022\032flyteidl.plugins.sagemaker\032\036goo" + + "gle/protobuf/duration.proto\"(\n\tInputMode" + + "\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n\rAlgorit" + + "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001" + + "\"\317\002\n\026AlgorithmSpecification\022?\n\ninput_mod" + + "e\030\001 \001(\0162+.flyteidl.plugins.sagemaker.Inp" + + "utMode.Value\022G\n\016algorithm_name\030\002 \001(\0162/.f" + + "lyteidl.plugins.sagemaker.AlgorithmName." + + "Value\022\031\n\021algorithm_version\030\003 \001(\t\022_\n\022metr" + + "ic_definitions\030\004 \003(\0132C.flyteidl.plugins." + + "sagemaker.AlgorithmSpecification.MetricD" + + "efinition\032/\n\020MetricDefinition\022\014\n\004name\030\001 " + + "\001(\t\022\r\n\005regex\030\002 \001(\t\"e\n\031TrainingJobResourc" + + "eConfig\022\026\n\016instance_count\030\001 \001(\003\022\025\n\rinsta" + + "nce_type\030\002 \001(\t\022\031\n\021volume_size_in_gb\030\003 \001(" + + "\003\"\213\001\n\021StoppingCondition\0229\n\026max_runtime_i" + + "n_seconds\030\001 \001(\0132\031.google.protobuf.Durati" + + "on\022;\n\030max_wait_time_in_seconds\030\002 \001(\0132\031.g" + + "oogle.protobuf.Duration\"\315\001\n\013TrainingJob\022" + + "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + + "idl.plugins.sagemaker.AlgorithmSpecifica" + + "tion\022R\n\023training_job_config\030\002 \001(\01325.flyt" + + "eidl.plugins.sagemaker.TrainingJobResour" + + "ceConfig\022\025\n\rinterruptible\030\003 \001(\010B5Z3githu" + + "b.com/lyft/flyteidl/gen/pb-go/flyteidl/p" + + "luginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -5512,6 +5900,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), }, assigner); internal_static_flyteidl_plugins_sagemaker_InputMode_descriptor = getDescriptor().getMessageTypes().get(0); @@ -5555,6 +5944,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor, new java.lang.String[] { "AlgorithmSpecification", "TrainingJobConfig", "Interruptible", }); + com.google.protobuf.DurationProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst index 0cc850a85..ebf4e02b1 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst @@ -8,7 +8,7 @@ training_job.proto flyteidl.plugins.sagemaker.InputMode ------------------------------------ -`[flyteidl.plugins.sagemaker.InputMode proto] `_ +`[flyteidl.plugins.sagemaker.InputMode proto] `_ .. code-block:: json @@ -22,7 +22,7 @@ flyteidl.plugins.sagemaker.InputMode Enum flyteidl.plugins.sagemaker.InputMode.Value ----------------------------------------------- -`[flyteidl.plugins.sagemaker.InputMode.Value proto] `_ +`[flyteidl.plugins.sagemaker.InputMode.Value proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.InputMode.Value.FILE: @@ -41,7 +41,7 @@ PIPE flyteidl.plugins.sagemaker.AlgorithmName ---------------------------------------- -`[flyteidl.plugins.sagemaker.AlgorithmName proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmName proto] `_ .. code-block:: json @@ -55,7 +55,7 @@ flyteidl.plugins.sagemaker.AlgorithmName Enum flyteidl.plugins.sagemaker.AlgorithmName.Value --------------------------------------------------- -`[flyteidl.plugins.sagemaker.AlgorithmName.Value proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmName.Value proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.AlgorithmName.Value.CUSTOM: @@ -74,7 +74,7 @@ XGBOOST flyteidl.plugins.sagemaker.AlgorithmSpecification ------------------------------------------------- -`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ Specifies the training algorithm to be used in the training job This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify @@ -125,7 +125,7 @@ metric_definitions flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition ------------------------------------------------------------------ -`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ .. code-block:: json @@ -155,7 +155,7 @@ regex flyteidl.plugins.sagemaker.TrainingJobResourceConfig ---------------------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the number of instances to launch, and the size of the ML storage volume the user wants to provision @@ -194,30 +194,32 @@ volume_size_in_gb flyteidl.plugins.sagemaker.StoppingCondition -------------------------------------------- -`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ +`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_ This option allows the users to specify a limit to how long a training job can run and how long the users are willing to wait for a managed spot training job to complete -https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html +If the user uses SageMaker's built-in algorithms, SageMaker will try to automatically +save the intermediate artifacts in a best-effort manner. +See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html .. code-block:: json { - "max_runtime_in_seconds": "...", - "max_wait_time_in_seconds": "..." + "max_runtime_in_seconds": "{...}", + "max_wait_time_in_seconds": "{...}" } .. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds: max_runtime_in_seconds - (`int64 `_) The maximum length of time in second that the training job can run. + (:ref:`google.protobuf.Duration `) The maximum length of time in second that the training job can run. If this value is not specified, the default expiration time will be 1 day .. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds: max_wait_time_in_seconds - (`int64 `_) The maximum length of time in seconds that the users are willing to wait for a managed spot + (:ref:`google.protobuf.Duration `) The maximum length of time in seconds that the users are willing to wait for a managed spot training job to complete. Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the training job runs, so it must be equal to or greater than max_runtime_in_seconds. @@ -230,7 +232,7 @@ max_wait_time_in_seconds flyteidl.plugins.sagemaker.TrainingJob -------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ The spec of a training job. This is mostly a pass-through object https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py index 272617e73..e6e813b3a 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py @@ -13,6 +13,7 @@ _sym_db = _symbol_database.Default() +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 DESCRIPTOR = _descriptor.FileDescriptor( @@ -20,8 +21,9 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"\xcf\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"U\n\x11StoppingCondition\x12\x1e\n\x16max_runtime_in_seconds\x18\x01 \x01(\x03\x12 \n\x18max_wait_time_in_seconds\x18\x02 \x01(\x03\"\xcd\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12R\n\x13training_job_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfig\x12\x15\n\rinterruptible\x18\x03 \x01(\x08\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') -) + serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"\xcf\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\x8b\x01\n\x11StoppingCondition\x12\x39\n\x16max_runtime_in_seconds\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x18max_wait_time_in_seconds\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xcd\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12R\n\x13training_job_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfig\x12\x15\n\rinterruptible\x18\x03 \x01(\x08\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + , + dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) @@ -42,8 +44,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=90, - serialized_end=117, + serialized_start=122, + serialized_end=149, ) _sym_db.RegisterEnumDescriptor(_INPUTMODE_VALUE) @@ -64,8 +66,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=136, - serialized_end=168, + serialized_start=168, + serialized_end=200, ) _sym_db.RegisterEnumDescriptor(_ALGORITHMNAME_VALUE) @@ -90,8 +92,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=77, - serialized_end=117, + serialized_start=109, + serialized_end=149, ) @@ -115,8 +117,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=119, - serialized_end=168, + serialized_start=151, + serialized_end=200, ) @@ -153,8 +155,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=459, - serialized_end=506, + serialized_start=491, + serialized_end=538, ) _ALGORITHMSPECIFICATION = _descriptor.Descriptor( @@ -204,8 +206,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=171, - serialized_end=506, + serialized_start=203, + serialized_end=538, ) @@ -249,8 +251,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=508, - serialized_end=609, + serialized_start=540, + serialized_end=641, ) @@ -263,15 +265,15 @@ fields=[ _descriptor.FieldDescriptor( name='max_runtime_in_seconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='max_wait_time_in_seconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -287,8 +289,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=611, - serialized_end=696, + serialized_start=644, + serialized_end=783, ) @@ -332,8 +334,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=699, - serialized_end=904, + serialized_start=786, + serialized_end=991, ) _INPUTMODE_VALUE.containing_type = _INPUTMODE @@ -342,6 +344,8 @@ _ALGORITHMSPECIFICATION.fields_by_name['input_mode'].enum_type = _INPUTMODE_VALUE _ALGORITHMSPECIFICATION.fields_by_name['algorithm_name'].enum_type = _ALGORITHMNAME_VALUE _ALGORITHMSPECIFICATION.fields_by_name['metric_definitions'].message_type = _ALGORITHMSPECIFICATION_METRICDEFINITION +_STOPPINGCONDITION.fields_by_name['max_runtime_in_seconds'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_STOPPINGCONDITION.fields_by_name['max_wait_time_in_seconds'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION _TRAININGJOB.fields_by_name['algorithm_specification'].message_type = _ALGORITHMSPECIFICATION _TRAININGJOB.fields_by_name['training_job_config'].message_type = _TRAININGJOBRESOURCECONFIG DESCRIPTOR.message_types_by_name['InputMode'] = _INPUTMODE From 655698d8f994ca037087224e480d1f874af25c97 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Mon, 27 Jul 2020 10:28:51 -0700 Subject: [PATCH 46/64] bump version --- package.json | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ad39796aa..3370dd413 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.18.0b6", + "version": "0.18.0b7", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/setup.py b/setup.py index 6202ef060..364f97c68 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.18.0b6' +__version__ = '0.18.0b7' setup( name='flyteidl', From 85820d44dd6245e856c29ba974798f22e3979856 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Mon, 27 Jul 2020 11:07:28 -0700 Subject: [PATCH 47/64] removing interruptible and stopping condition for now. Need a plan for this to make sure it plays well with Flyte's timeout and queueing budget --- .../plugins/sagemaker/training_job.proto | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto index 520ece6dc..6bbe38964 100644 --- a/protos/flyteidl/plugins/sagemaker/training_job.proto +++ b/protos/flyteidl/plugins/sagemaker/training_job.proto @@ -61,28 +61,9 @@ message TrainingJobResourceConfig { int64 volume_size_in_gb = 3; } -// This option allows the users to specify a limit to how long a training job can run and -// how long the users are willing to wait for a managed spot training job to complete -// If the user uses SageMaker's built-in algorithms, SageMaker will try to automatically -// save the intermediate artifacts in a best-effort manner. -// See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html -message StoppingCondition { - - // The maximum length of time in second that the training job can run. - // If this value is not specified, the default expiration time will be 1 day - google.protobuf.Duration max_runtime_in_seconds = 1; - - // The maximum length of time in seconds that the users are willing to wait for a managed spot - // training job to complete. - // Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the - // training job runs, so it must be equal to or greater than max_runtime_in_seconds. - google.protobuf.Duration max_wait_time_in_seconds = 2; -} - // The spec of a training job. This is mostly a pass-through object // https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html message TrainingJob { AlgorithmSpecification algorithm_specification = 1; TrainingJobResourceConfig training_job_config = 2; - bool interruptible = 3; } From 0b63bfcfd2706acf426fe2ac070bba624077de33 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Mon, 27 Jul 2020 11:11:24 -0700 Subject: [PATCH 48/64] make generate --- .../plugins/sagemaker/training_job.pb.cc | 473 +------ .../plugins/sagemaker/training_job.pb.h | 252 +--- .../plugins/sagemaker/training_job.pb.go | 147 +-- .../sagemaker/training_job.pb.validate.go | 89 -- .../sagemaker/TrainingJobOuterClass.java | 1092 +---------------- .../plugins/sagemaker/training_job.proto.rst | 48 +- .../plugins/sagemaker/training_job_pb2.py | 61 +- 7 files changed, 66 insertions(+), 2096 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc index e838557b1..12c4aa3af 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc @@ -19,7 +19,6 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; namespace flyteidl { namespace plugins { namespace sagemaker { @@ -43,10 +42,6 @@ class TrainingJobResourceConfigDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _TrainingJobResourceConfig_default_instance_; -class StoppingConditionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _StoppingCondition_default_instance_; class TrainingJobDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -125,21 +120,6 @@ static void InitDefaultsTrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; -static void InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::StoppingCondition(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::sagemaker::StoppingCondition::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, { - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; - static void InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -162,11 +142,10 @@ void InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[7]; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[6]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[2]; constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = nullptr; @@ -206,20 +185,12 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig, instance_type_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig, volume_size_in_gb_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, max_runtime_in_seconds_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::StoppingCondition, max_wait_time_in_seconds_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, algorithm_specification_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, training_job_config_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, interruptible_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::plugins::sagemaker::InputMode)}, @@ -227,8 +198,7 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SE { 10, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition)}, { 17, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)}, { 26, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig)}, - { 34, -1, sizeof(::flyteidl::plugins::sagemaker::StoppingCondition)}, - { 41, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJob)}, + { 34, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJob)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { @@ -237,14 +207,13 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJobResourceConfig_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_), }; ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, "flyteidl/plugins/sagemaker/training_job.proto", schemas, file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 7, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, }; const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[] = @@ -264,22 +233,18 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5 "\001(\t\022\r\n\005regex\030\002 \001(\t\"e\n\031TrainingJobResourc" "eConfig\022\026\n\016instance_count\030\001 \001(\003\022\025\n\rinsta" "nce_type\030\002 \001(\t\022\031\n\021volume_size_in_gb\030\003 \001(" - "\003\"\213\001\n\021StoppingCondition\0229\n\026max_runtime_i" - "n_seconds\030\001 \001(\0132\031.google.protobuf.Durati" - "on\022;\n\030max_wait_time_in_seconds\030\002 \001(\0132\031.g" - "oogle.protobuf.Duration\"\315\001\n\013TrainingJob\022" - "S\n\027algorithm_specification\030\001 \001(\01322.flyte" - "idl.plugins.sagemaker.AlgorithmSpecifica" - "tion\022R\n\023training_job_config\030\002 \001(\01325.flyt" - "eidl.plugins.sagemaker.TrainingJobResour" - "ceConfig\022\025\n\rinterruptible\030\003 \001(\010B5Z3githu" - "b.com/lyft/flyteidl/gen/pb-go/flyteidl/p" - "luginsb\006proto3" + "\003\"\266\001\n\013TrainingJob\022S\n\027algorithm_specifica" + "tion\030\001 \001(\01322.flyteidl.plugins.sagemaker." + "AlgorithmSpecification\022R\n\023training_job_c" + "onfig\030\002 \001(\01325.flyteidl.plugins.sagemaker" + ".TrainingJobResourceConfigB5Z3github.com" + "/lyft/flyteidl/gen/pb-go/flyteidl/plugin" + "sb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, - "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 1054, + "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 889, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { @@ -1972,373 +1937,6 @@ ::google::protobuf::Metadata TrainingJobResourceConfig::GetMetadata() const { } -// =================================================================== - -void StoppingCondition::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_._instance.get_mutable()->max_runtime_in_seconds_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_StoppingCondition_default_instance_._instance.get_mutable()->max_wait_time_in_seconds_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); -} -class StoppingCondition::HasBitSetters { - public: - static const ::google::protobuf::Duration& max_runtime_in_seconds(const StoppingCondition* msg); - static const ::google::protobuf::Duration& max_wait_time_in_seconds(const StoppingCondition* msg); -}; - -const ::google::protobuf::Duration& -StoppingCondition::HasBitSetters::max_runtime_in_seconds(const StoppingCondition* msg) { - return *msg->max_runtime_in_seconds_; -} -const ::google::protobuf::Duration& -StoppingCondition::HasBitSetters::max_wait_time_in_seconds(const StoppingCondition* msg) { - return *msg->max_wait_time_in_seconds_; -} -void StoppingCondition::clear_max_runtime_in_seconds() { - if (GetArenaNoVirtual() == nullptr && max_runtime_in_seconds_ != nullptr) { - delete max_runtime_in_seconds_; - } - max_runtime_in_seconds_ = nullptr; -} -void StoppingCondition::clear_max_wait_time_in_seconds() { - if (GetArenaNoVirtual() == nullptr && max_wait_time_in_seconds_ != nullptr) { - delete max_wait_time_in_seconds_; - } - max_wait_time_in_seconds_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StoppingCondition::kMaxRuntimeInSecondsFieldNumber; -const int StoppingCondition::kMaxWaitTimeInSecondsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StoppingCondition::StoppingCondition() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.StoppingCondition) -} -StoppingCondition::StoppingCondition(const StoppingCondition& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_max_runtime_in_seconds()) { - max_runtime_in_seconds_ = new ::google::protobuf::Duration(*from.max_runtime_in_seconds_); - } else { - max_runtime_in_seconds_ = nullptr; - } - if (from.has_max_wait_time_in_seconds()) { - max_wait_time_in_seconds_ = new ::google::protobuf::Duration(*from.max_wait_time_in_seconds_); - } else { - max_wait_time_in_seconds_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.StoppingCondition) -} - -void StoppingCondition::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - ::memset(&max_runtime_in_seconds_, 0, static_cast( - reinterpret_cast(&max_wait_time_in_seconds_) - - reinterpret_cast(&max_runtime_in_seconds_)) + sizeof(max_wait_time_in_seconds_)); -} - -StoppingCondition::~StoppingCondition() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.StoppingCondition) - SharedDtor(); -} - -void StoppingCondition::SharedDtor() { - if (this != internal_default_instance()) delete max_runtime_in_seconds_; - if (this != internal_default_instance()) delete max_wait_time_in_seconds_; -} - -void StoppingCondition::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StoppingCondition& StoppingCondition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StoppingCondition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - return *internal_default_instance(); -} - - -void StoppingCondition::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.StoppingCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && max_runtime_in_seconds_ != nullptr) { - delete max_runtime_in_seconds_; - } - max_runtime_in_seconds_ = nullptr; - if (GetArenaNoVirtual() == nullptr && max_wait_time_in_seconds_ != nullptr) { - delete max_wait_time_in_seconds_; - } - max_wait_time_in_seconds_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StoppingCondition::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // .google.protobuf.Duration max_runtime_in_seconds = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_max_runtime_in_seconds(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .google.protobuf.Duration max_wait_time_in_seconds = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_max_wait_time_in_seconds(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StoppingCondition::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.StoppingCondition) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .google.protobuf.Duration max_runtime_in_seconds = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_max_runtime_in_seconds())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration max_wait_time_in_seconds = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_max_wait_time_in_seconds())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.StoppingCondition) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.StoppingCondition) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StoppingCondition::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.StoppingCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Duration max_runtime_in_seconds = 1; - if (this->has_max_runtime_in_seconds()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::max_runtime_in_seconds(this), output); - } - - // .google.protobuf.Duration max_wait_time_in_seconds = 2; - if (this->has_max_wait_time_in_seconds()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::max_wait_time_in_seconds(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.StoppingCondition) -} - -::google::protobuf::uint8* StoppingCondition::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.StoppingCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Duration max_runtime_in_seconds = 1; - if (this->has_max_runtime_in_seconds()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::max_runtime_in_seconds(this), target); - } - - // .google.protobuf.Duration max_wait_time_in_seconds = 2; - if (this->has_max_wait_time_in_seconds()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::max_wait_time_in_seconds(this), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.StoppingCondition) - return target; -} - -size_t StoppingCondition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.StoppingCondition) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .google.protobuf.Duration max_runtime_in_seconds = 1; - if (this->has_max_runtime_in_seconds()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *max_runtime_in_seconds_); - } - - // .google.protobuf.Duration max_wait_time_in_seconds = 2; - if (this->has_max_wait_time_in_seconds()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *max_wait_time_in_seconds_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StoppingCondition::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.StoppingCondition) - GOOGLE_DCHECK_NE(&from, this); - const StoppingCondition* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.StoppingCondition) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.StoppingCondition) - MergeFrom(*source); - } -} - -void StoppingCondition::MergeFrom(const StoppingCondition& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.StoppingCondition) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_max_runtime_in_seconds()) { - mutable_max_runtime_in_seconds()->::google::protobuf::Duration::MergeFrom(from.max_runtime_in_seconds()); - } - if (from.has_max_wait_time_in_seconds()) { - mutable_max_wait_time_in_seconds()->::google::protobuf::Duration::MergeFrom(from.max_wait_time_in_seconds()); - } -} - -void StoppingCondition::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.StoppingCondition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StoppingCondition::CopyFrom(const StoppingCondition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.StoppingCondition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StoppingCondition::IsInitialized() const { - return true; -} - -void StoppingCondition::Swap(StoppingCondition* other) { - if (other == this) return; - InternalSwap(other); -} -void StoppingCondition::InternalSwap(StoppingCondition* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(max_runtime_in_seconds_, other->max_runtime_in_seconds_); - swap(max_wait_time_in_seconds_, other->max_wait_time_in_seconds_); -} - -::google::protobuf::Metadata StoppingCondition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; -} - - // =================================================================== void TrainingJob::InitAsDefaultInstance() { @@ -2364,7 +1962,6 @@ TrainingJob::HasBitSetters::training_job_config(const TrainingJob* msg) { #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int TrainingJob::kAlgorithmSpecificationFieldNumber; const int TrainingJob::kTrainingJobConfigFieldNumber; -const int TrainingJob::kInterruptibleFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 TrainingJob::TrainingJob() @@ -2386,7 +1983,6 @@ TrainingJob::TrainingJob(const TrainingJob& from) } else { training_job_config_ = nullptr; } - interruptible_ = from.interruptible_; // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJob) } @@ -2394,8 +1990,8 @@ void TrainingJob::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); ::memset(&algorithm_specification_, 0, static_cast( - reinterpret_cast(&interruptible_) - - reinterpret_cast(&algorithm_specification_)) + sizeof(interruptible_)); + reinterpret_cast(&training_job_config_) - + reinterpret_cast(&algorithm_specification_)) + sizeof(training_job_config_)); } TrainingJob::~TrainingJob() { @@ -2431,7 +2027,6 @@ void TrainingJob::Clear() { delete training_job_config_; } training_job_config_ = nullptr; - interruptible_ = false; _internal_metadata_.Clear(); } @@ -2474,13 +2069,6 @@ const char* TrainingJob::_InternalParse(const char* begin, const char* end, void {parser_till_end, object}, ptr - size, ptr)); break; } - // bool interruptible = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_interruptible(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -2533,19 +2121,6 @@ bool TrainingJob::MergePartialFromCodedStream( break; } - // bool interruptible = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &interruptible_))); - } else { - goto handle_unusual; - } - break; - } - default: { handle_unusual: if (tag == 0) { @@ -2585,11 +2160,6 @@ void TrainingJob::SerializeWithCachedSizes( 2, HasBitSetters::training_job_config(this), output); } - // bool interruptible = 3; - if (this->interruptible() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->interruptible(), output); - } - if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); @@ -2617,11 +2187,6 @@ ::google::protobuf::uint8* TrainingJob::InternalSerializeWithCachedSizesToArray( 2, HasBitSetters::training_job_config(this), target); } - // bool interruptible = 3; - if (this->interruptible() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->interruptible(), target); - } - if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); @@ -2657,11 +2222,6 @@ size_t TrainingJob::ByteSizeLong() const { *training_job_config_); } - // bool interruptible = 3; - if (this->interruptible() != 0) { - total_size += 1 + 1; - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; @@ -2695,9 +2255,6 @@ void TrainingJob::MergeFrom(const TrainingJob& from) { if (from.has_training_job_config()) { mutable_training_job_config()->::flyteidl::plugins::sagemaker::TrainingJobResourceConfig::MergeFrom(from.training_job_config()); } - if (from.interruptible() != 0) { - set_interruptible(from.interruptible()); - } } void TrainingJob::CopyFrom(const ::google::protobuf::Message& from) { @@ -2727,7 +2284,6 @@ void TrainingJob::InternalSwap(TrainingJob* other) { _internal_metadata_.Swap(&other->_internal_metadata_); swap(algorithm_specification_, other->algorithm_specification_); swap(training_job_config_, other->training_job_config_); - swap(interruptible_, other->interruptible_); } ::google::protobuf::Metadata TrainingJob::GetMetadata() const { @@ -2757,9 +2313,6 @@ template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecificat template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig >(arena); } -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::StoppingCondition >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::StoppingCondition >(arena); -} template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJob >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJob >(arena); } diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h index 5f545599f..7b5a149b1 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h @@ -43,7 +43,7 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[7] + static const ::google::protobuf::internal::ParseTable schema[6] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; @@ -65,9 +65,6 @@ extern AlgorithmSpecification_MetricDefinitionDefaultTypeInternal _AlgorithmSpec class InputMode; class InputModeDefaultTypeInternal; extern InputModeDefaultTypeInternal _InputMode_default_instance_; -class StoppingCondition; -class StoppingConditionDefaultTypeInternal; -extern StoppingConditionDefaultTypeInternal _StoppingCondition_default_instance_; class TrainingJob; class TrainingJobDefaultTypeInternal; extern TrainingJobDefaultTypeInternal _TrainingJob_default_instance_; @@ -83,7 +80,6 @@ template<> ::flyteidl::plugins::sagemaker::AlgorithmName* Arena::CreateMaybeMess template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(Arena*); template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition>(Arena*); template<> ::flyteidl::plugins::sagemaker::InputMode* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::InputMode>(Arena*); -template<> ::flyteidl::plugins::sagemaker::StoppingCondition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::StoppingCondition>(Arena*); template<> ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(Arena*); template<> ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobResourceConfig>(Arena*); } // namespace protobuf @@ -816,131 +812,6 @@ class TrainingJobResourceConfig final : }; // ------------------------------------------------------------------- -class StoppingCondition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.StoppingCondition) */ { - public: - StoppingCondition(); - virtual ~StoppingCondition(); - - StoppingCondition(const StoppingCondition& from); - - inline StoppingCondition& operator=(const StoppingCondition& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - StoppingCondition(StoppingCondition&& from) noexcept - : StoppingCondition() { - *this = ::std::move(from); - } - - inline StoppingCondition& operator=(StoppingCondition&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const StoppingCondition& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StoppingCondition* internal_default_instance() { - return reinterpret_cast( - &_StoppingCondition_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(StoppingCondition* other); - friend void swap(StoppingCondition& a, StoppingCondition& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline StoppingCondition* New() const final { - return CreateMaybeMessage(nullptr); - } - - StoppingCondition* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const StoppingCondition& from); - void MergeFrom(const StoppingCondition& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StoppingCondition* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .google.protobuf.Duration max_runtime_in_seconds = 1; - bool has_max_runtime_in_seconds() const; - void clear_max_runtime_in_seconds(); - static const int kMaxRuntimeInSecondsFieldNumber = 1; - const ::google::protobuf::Duration& max_runtime_in_seconds() const; - ::google::protobuf::Duration* release_max_runtime_in_seconds(); - ::google::protobuf::Duration* mutable_max_runtime_in_seconds(); - void set_allocated_max_runtime_in_seconds(::google::protobuf::Duration* max_runtime_in_seconds); - - // .google.protobuf.Duration max_wait_time_in_seconds = 2; - bool has_max_wait_time_in_seconds() const; - void clear_max_wait_time_in_seconds(); - static const int kMaxWaitTimeInSecondsFieldNumber = 2; - const ::google::protobuf::Duration& max_wait_time_in_seconds() const; - ::google::protobuf::Duration* release_max_wait_time_in_seconds(); - ::google::protobuf::Duration* mutable_max_wait_time_in_seconds(); - void set_allocated_max_wait_time_in_seconds(::google::protobuf::Duration* max_wait_time_in_seconds); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::Duration* max_runtime_in_seconds_; - ::google::protobuf::Duration* max_wait_time_in_seconds_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; -}; -// ------------------------------------------------------------------- - class TrainingJob final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.TrainingJob) */ { public: @@ -979,7 +850,7 @@ class TrainingJob final : &_TrainingJob_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 5; void Swap(TrainingJob* other); friend void swap(TrainingJob& a, TrainingJob& b) { @@ -1054,12 +925,6 @@ class TrainingJob final : ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* mutable_training_job_config(); void set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_config); - // bool interruptible = 3; - void clear_interruptible(); - static const int kInterruptibleFieldNumber = 3; - bool interruptible() const; - void set_interruptible(bool value); - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) private: class HasBitSetters; @@ -1067,7 +932,6 @@ class TrainingJob final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification_; ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_config_; - bool interruptible_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; @@ -1398,102 +1262,6 @@ inline void TrainingJobResourceConfig::set_volume_size_in_gb(::google::protobuf: // ------------------------------------------------------------------- -// StoppingCondition - -// .google.protobuf.Duration max_runtime_in_seconds = 1; -inline bool StoppingCondition::has_max_runtime_in_seconds() const { - return this != internal_default_instance() && max_runtime_in_seconds_ != nullptr; -} -inline const ::google::protobuf::Duration& StoppingCondition::max_runtime_in_seconds() const { - const ::google::protobuf::Duration* p = max_runtime_in_seconds_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* StoppingCondition::release_max_runtime_in_seconds() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) - - ::google::protobuf::Duration* temp = max_runtime_in_seconds_; - max_runtime_in_seconds_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* StoppingCondition::mutable_max_runtime_in_seconds() { - - if (max_runtime_in_seconds_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - max_runtime_in_seconds_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) - return max_runtime_in_seconds_; -} -inline void StoppingCondition::set_allocated_max_runtime_in_seconds(::google::protobuf::Duration* max_runtime_in_seconds) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(max_runtime_in_seconds_); - } - if (max_runtime_in_seconds) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(max_runtime_in_seconds)->GetArena(); - if (message_arena != submessage_arena) { - max_runtime_in_seconds = ::google::protobuf::internal::GetOwnedMessage( - message_arena, max_runtime_in_seconds, submessage_arena); - } - - } else { - - } - max_runtime_in_seconds_ = max_runtime_in_seconds; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds) -} - -// .google.protobuf.Duration max_wait_time_in_seconds = 2; -inline bool StoppingCondition::has_max_wait_time_in_seconds() const { - return this != internal_default_instance() && max_wait_time_in_seconds_ != nullptr; -} -inline const ::google::protobuf::Duration& StoppingCondition::max_wait_time_in_seconds() const { - const ::google::protobuf::Duration* p = max_wait_time_in_seconds_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* StoppingCondition::release_max_wait_time_in_seconds() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) - - ::google::protobuf::Duration* temp = max_wait_time_in_seconds_; - max_wait_time_in_seconds_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* StoppingCondition::mutable_max_wait_time_in_seconds() { - - if (max_wait_time_in_seconds_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - max_wait_time_in_seconds_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) - return max_wait_time_in_seconds_; -} -inline void StoppingCondition::set_allocated_max_wait_time_in_seconds(::google::protobuf::Duration* max_wait_time_in_seconds) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(max_wait_time_in_seconds_); - } - if (max_wait_time_in_seconds) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(max_wait_time_in_seconds)->GetArena(); - if (message_arena != submessage_arena) { - max_wait_time_in_seconds = ::google::protobuf::internal::GetOwnedMessage( - message_arena, max_wait_time_in_seconds, submessage_arena); - } - - } else { - - } - max_wait_time_in_seconds_ = max_wait_time_in_seconds; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds) -} - -// ------------------------------------------------------------------- - // TrainingJob // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; @@ -1598,20 +1366,6 @@ inline void TrainingJob::set_allocated_training_job_config(::flyteidl::plugins:: // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) } -// bool interruptible = 3; -inline void TrainingJob::clear_interruptible() { - interruptible_ = false; -} -inline bool TrainingJob::interruptible() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.interruptible) - return interruptible_; -} -inline void TrainingJob::set_interruptible(bool value) { - - interruptible_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJob.interruptible) -} - #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -1625,8 +1379,6 @@ inline void TrainingJob::set_interruptible(bool value) { // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go index 72048888c..491b33a08 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -6,7 +6,7 @@ package plugins import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - duration "github.com/golang/protobuf/ptypes/duration" + _ "github.com/golang/protobuf/ptypes/duration" math "math" ) @@ -322,70 +322,11 @@ func (m *TrainingJobResourceConfig) GetVolumeSizeInGb() int64 { return 0 } -// This option allows the users to specify a limit to how long a training job can run and -// how long the users are willing to wait for a managed spot training job to complete -// If the user uses SageMaker's built-in algorithms, SageMaker will try to automatically -// save the intermediate artifacts in a best-effort manner. -// See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html -type StoppingCondition struct { - // The maximum length of time in second that the training job can run. - // If this value is not specified, the default expiration time will be 1 day - MaxRuntimeInSeconds *duration.Duration `protobuf:"bytes,1,opt,name=max_runtime_in_seconds,json=maxRuntimeInSeconds,proto3" json:"max_runtime_in_seconds,omitempty"` - // The maximum length of time in seconds that the users are willing to wait for a managed spot - // training job to complete. - // Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the - // training job runs, so it must be equal to or greater than max_runtime_in_seconds. - MaxWaitTimeInSeconds *duration.Duration `protobuf:"bytes,2,opt,name=max_wait_time_in_seconds,json=maxWaitTimeInSeconds,proto3" json:"max_wait_time_in_seconds,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoppingCondition) Reset() { *m = StoppingCondition{} } -func (m *StoppingCondition) String() string { return proto.CompactTextString(m) } -func (*StoppingCondition) ProtoMessage() {} -func (*StoppingCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_6a68f64d8fd9fe30, []int{4} -} - -func (m *StoppingCondition) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StoppingCondition.Unmarshal(m, b) -} -func (m *StoppingCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StoppingCondition.Marshal(b, m, deterministic) -} -func (m *StoppingCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoppingCondition.Merge(m, src) -} -func (m *StoppingCondition) XXX_Size() int { - return xxx_messageInfo_StoppingCondition.Size(m) -} -func (m *StoppingCondition) XXX_DiscardUnknown() { - xxx_messageInfo_StoppingCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_StoppingCondition proto.InternalMessageInfo - -func (m *StoppingCondition) GetMaxRuntimeInSeconds() *duration.Duration { - if m != nil { - return m.MaxRuntimeInSeconds - } - return nil -} - -func (m *StoppingCondition) GetMaxWaitTimeInSeconds() *duration.Duration { - if m != nil { - return m.MaxWaitTimeInSeconds - } - return nil -} - // The spec of a training job. This is mostly a pass-through object // https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html type TrainingJob struct { AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,1,opt,name=algorithm_specification,json=algorithmSpecification,proto3" json:"algorithm_specification,omitempty"` TrainingJobConfig *TrainingJobResourceConfig `protobuf:"bytes,2,opt,name=training_job_config,json=trainingJobConfig,proto3" json:"training_job_config,omitempty"` - Interruptible bool `protobuf:"varint,3,opt,name=interruptible,proto3" json:"interruptible,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -395,7 +336,7 @@ func (m *TrainingJob) Reset() { *m = TrainingJob{} } func (m *TrainingJob) String() string { return proto.CompactTextString(m) } func (*TrainingJob) ProtoMessage() {} func (*TrainingJob) Descriptor() ([]byte, []int) { - return fileDescriptor_6a68f64d8fd9fe30, []int{5} + return fileDescriptor_6a68f64d8fd9fe30, []int{4} } func (m *TrainingJob) XXX_Unmarshal(b []byte) error { @@ -430,13 +371,6 @@ func (m *TrainingJob) GetTrainingJobConfig() *TrainingJobResourceConfig { return nil } -func (m *TrainingJob) GetInterruptible() bool { - if m != nil { - return m.Interruptible - } - return false -} - func init() { proto.RegisterEnum("flyteidl.plugins.sagemaker.InputMode_Value", InputMode_Value_name, InputMode_Value_value) proto.RegisterEnum("flyteidl.plugins.sagemaker.AlgorithmName_Value", AlgorithmName_Value_name, AlgorithmName_Value_value) @@ -445,7 +379,6 @@ func init() { proto.RegisterType((*AlgorithmSpecification)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification") proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition") proto.RegisterType((*TrainingJobResourceConfig)(nil), "flyteidl.plugins.sagemaker.TrainingJobResourceConfig") - proto.RegisterType((*StoppingCondition)(nil), "flyteidl.plugins.sagemaker.StoppingCondition") proto.RegisterType((*TrainingJob)(nil), "flyteidl.plugins.sagemaker.TrainingJob") } @@ -454,45 +387,39 @@ func init() { } var fileDescriptor_6a68f64d8fd9fe30 = []byte{ - // 637 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x5d, 0x4f, 0xdb, 0x4a, - 0x10, 0xc5, 0x04, 0xb8, 0x64, 0x72, 0x89, 0x92, 0x05, 0x71, 0x03, 0x57, 0xaa, 0x22, 0xb7, 0x95, - 0x52, 0x21, 0x6c, 0x35, 0x88, 0xb7, 0xbe, 0x94, 0x40, 0x51, 0x50, 0xf9, 0xa8, 0x93, 0xd2, 0xaa, - 0x2f, 0xd6, 0xda, 0x9e, 0x98, 0x2d, 0xf6, 0xae, 0x65, 0xaf, 0x69, 0xc2, 0x1f, 0xe8, 0x7b, 0x5f, - 0xfb, 0x3f, 0xfa, 0xfb, 0xaa, 0xac, 0x3f, 0x08, 0x51, 0xa1, 0xed, 0xdb, 0xfa, 0xec, 0xcc, 0x99, - 0x99, 0x33, 0xc7, 0x0b, 0xbb, 0xa3, 0x60, 0x22, 0x91, 0x79, 0x81, 0x19, 0x05, 0xa9, 0xcf, 0x78, - 0x62, 0x26, 0xd4, 0xc7, 0x90, 0x5e, 0x63, 0x6c, 0xca, 0x98, 0x32, 0xce, 0xb8, 0x6f, 0x7f, 0x16, - 0x8e, 0x11, 0xc5, 0x42, 0x0a, 0xb2, 0x5d, 0x84, 0x1b, 0x79, 0xb8, 0x51, 0x86, 0x6f, 0x3f, 0xf1, - 0x85, 0xf0, 0x03, 0x34, 0x55, 0xa4, 0x93, 0x8e, 0x4c, 0x2f, 0x8d, 0xa9, 0x64, 0x82, 0x67, 0xb9, - 0x7a, 0x07, 0xaa, 0x7d, 0x1e, 0xa5, 0xf2, 0x54, 0x78, 0xa8, 0xff, 0x0f, 0xcb, 0x97, 0x34, 0x48, - 0x91, 0xac, 0xc2, 0xd2, 0x9b, 0xfe, 0xdb, 0xa3, 0xc6, 0xc2, 0xf4, 0x74, 0xd1, 0xbf, 0x38, 0x6a, - 0x68, 0xfa, 0x4b, 0x58, 0x7b, 0x1d, 0xf8, 0x22, 0x66, 0xf2, 0x2a, 0x3c, 0xa3, 0x21, 0xea, 0xed, - 0x22, 0x1a, 0x60, 0xa5, 0xf7, 0x7e, 0x30, 0x3c, 0x3f, 0x6d, 0x2c, 0x90, 0x1a, 0xfc, 0xf3, 0xf1, - 0xf8, 0xe0, 0xfc, 0x7c, 0x30, 0x6c, 0x68, 0xfa, 0xf7, 0x0a, 0x6c, 0x96, 0x39, 0x83, 0x08, 0x5d, - 0x36, 0x62, 0xae, 0xaa, 0x4e, 0x4e, 0x00, 0xd8, 0xb4, 0xae, 0x1d, 0x0a, 0x0f, 0x5b, 0x5a, 0x5b, - 0xeb, 0xd4, 0xbb, 0x3b, 0xc6, 0xc3, 0x83, 0x18, 0x65, 0x97, 0x86, 0x2a, 0x6a, 0x55, 0x59, 0x01, - 0x90, 0x4b, 0xa8, 0xd3, 0xa2, 0x8a, 0xcd, 0x69, 0x88, 0xad, 0x45, 0xc5, 0x67, 0x3e, 0xc6, 0x77, - 0x6f, 0x96, 0x9c, 0x73, 0x8d, 0xce, 0x82, 0x64, 0x07, 0x9a, 0x77, 0xbc, 0x37, 0x18, 0x27, 0x4c, - 0xf0, 0x56, 0xa5, 0xad, 0x75, 0xaa, 0x56, 0xa3, 0xbc, 0xb8, 0xcc, 0x70, 0x12, 0x03, 0x09, 0x51, - 0xc6, 0xcc, 0xb5, 0x3d, 0x1c, 0x31, 0xce, 0xa6, 0x53, 0x26, 0xad, 0xa5, 0x76, 0xa5, 0x53, 0xeb, - 0xf6, 0xfe, 0xa8, 0x91, 0x7b, 0x02, 0x19, 0xa7, 0x8a, 0xec, 0xb0, 0xe4, 0xb2, 0x9a, 0xe1, 0x1c, - 0x92, 0x6c, 0xbf, 0x82, 0xc6, 0x7c, 0x18, 0x21, 0xb0, 0xa4, 0x24, 0xd0, 0x54, 0x9f, 0xea, 0x4c, - 0x36, 0x60, 0x39, 0x46, 0x1f, 0xc7, 0x4a, 0x97, 0xaa, 0x95, 0x7d, 0xe8, 0xdf, 0x34, 0xd8, 0x1a, - 0xe6, 0x6e, 0x3a, 0x11, 0x8e, 0x85, 0x89, 0x48, 0x63, 0x17, 0x7b, 0x82, 0x8f, 0x98, 0x4f, 0x9e, - 0x43, 0x9d, 0xf1, 0x44, 0x52, 0xee, 0xa2, 0xed, 0x8a, 0x94, 0x4b, 0xc5, 0x58, 0xb1, 0xd6, 0x0a, - 0xb4, 0x37, 0x05, 0xc9, 0x53, 0x28, 0x01, 0x5b, 0x4e, 0x22, 0xcc, 0x4b, 0xfc, 0x5b, 0x80, 0xc3, - 0x49, 0x84, 0xe4, 0x05, 0x34, 0x6f, 0x44, 0x90, 0x86, 0x68, 0x27, 0xec, 0x16, 0x6d, 0xc6, 0x6d, - 0xdf, 0x51, 0x42, 0x56, 0xac, 0x7a, 0x76, 0x31, 0x60, 0xb7, 0xd8, 0xe7, 0xc7, 0x8e, 0xfe, 0x43, - 0x83, 0xe6, 0x40, 0x8a, 0x28, 0x62, 0xdc, 0xef, 0x09, 0xee, 0x65, 0x43, 0x9d, 0xc1, 0x66, 0x48, - 0xc7, 0x76, 0x9c, 0x72, 0xc9, 0x42, 0x45, 0x90, 0xa0, 0x2b, 0xb8, 0x97, 0xa8, 0xa6, 0x6a, 0xdd, - 0x2d, 0x23, 0xb3, 0xb9, 0x51, 0xd8, 0xdc, 0x38, 0xcc, 0x6d, 0x6e, 0xad, 0x87, 0x74, 0x6c, 0x65, - 0x79, 0x7d, 0x3e, 0xc8, 0xb2, 0xc8, 0x3b, 0x68, 0x4d, 0xf9, 0xbe, 0x50, 0x26, 0xed, 0x79, 0xc6, - 0xc5, 0xdf, 0x31, 0x6e, 0x84, 0x74, 0xfc, 0x81, 0x32, 0x39, 0x9c, 0xa5, 0xd4, 0xbf, 0x2e, 0x42, - 0x6d, 0x46, 0x4d, 0x72, 0x0d, 0xff, 0xdd, 0x99, 0x27, 0x99, 0x5d, 0x6d, 0xde, 0x73, 0xf7, 0xef, - 0x4d, 0x61, 0x6d, 0xd2, 0x5f, 0xff, 0x4d, 0x08, 0xeb, 0xb3, 0xef, 0x82, 0xed, 0xaa, 0x1d, 0xe6, - 0xa3, 0xec, 0x3f, 0x56, 0xe8, 0x41, 0x03, 0x58, 0x4d, 0x79, 0x77, 0x95, 0x7b, 0xe2, 0xd9, 0x74, - 0xd9, 0x12, 0xe3, 0x38, 0x8d, 0x24, 0x73, 0x02, 0x54, 0x3b, 0x5c, 0xb5, 0xee, 0x83, 0x07, 0xfb, - 0x9f, 0xf6, 0x7c, 0x26, 0xaf, 0x52, 0xc7, 0x70, 0x45, 0x68, 0x06, 0x93, 0x91, 0x34, 0xcb, 0xf7, - 0xcc, 0x47, 0x6e, 0x46, 0xce, 0xae, 0x2f, 0xcc, 0xf9, 0x27, 0xce, 0x59, 0x51, 0x4a, 0xef, 0xfd, - 0x0c, 0x00, 0x00, 0xff, 0xff, 0x58, 0x43, 0x64, 0x72, 0xfd, 0x04, 0x00, 0x00, + // 537 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xd1, 0x6e, 0xd3, 0x30, + 0x14, 0x5d, 0xe8, 0x36, 0xe8, 0x2d, 0xab, 0x52, 0x83, 0x46, 0x29, 0x12, 0xaa, 0x82, 0x90, 0x8a, + 0xa6, 0x25, 0xa2, 0xd3, 0xde, 0x78, 0x61, 0x65, 0x4c, 0x9d, 0x28, 0x9d, 0xd2, 0x52, 0x21, 0x5e, + 0x22, 0x27, 0xbd, 0xf1, 0xcc, 0x12, 0x3b, 0x4a, 0x9c, 0x89, 0xee, 0x33, 0x78, 0xe5, 0xeb, 0xf8, + 0x13, 0x54, 0xb7, 0x49, 0xbb, 0x8a, 0x4d, 0xf0, 0xe6, 0x9e, 0x7b, 0x7c, 0xce, 0xbd, 0xa7, 0xbe, + 0x81, 0xc3, 0x30, 0x9a, 0x29, 0xe4, 0xd3, 0xc8, 0x49, 0xa2, 0x9c, 0x71, 0x91, 0x39, 0x19, 0x65, + 0x18, 0xd3, 0x2b, 0x4c, 0x1d, 0x95, 0x52, 0x2e, 0xb8, 0x60, 0xde, 0x77, 0xe9, 0xdb, 0x49, 0x2a, + 0x95, 0x24, 0xad, 0x82, 0x6e, 0x2f, 0xe9, 0x76, 0x49, 0x6f, 0xbd, 0x64, 0x52, 0xb2, 0x08, 0x1d, + 0xcd, 0xf4, 0xf3, 0xd0, 0x99, 0xe6, 0x29, 0x55, 0x5c, 0x8a, 0xc5, 0x5d, 0xab, 0x03, 0xd5, 0xbe, + 0x48, 0x72, 0x35, 0x90, 0x53, 0xb4, 0x5e, 0xc0, 0xce, 0x84, 0x46, 0x39, 0x92, 0x47, 0xb0, 0xfd, + 0xb1, 0xff, 0xe9, 0xd4, 0xdc, 0x9a, 0x9f, 0x2e, 0xfa, 0x17, 0xa7, 0xa6, 0x61, 0xbd, 0x85, 0xbd, + 0xf7, 0x11, 0x93, 0x29, 0x57, 0x97, 0xf1, 0x67, 0x1a, 0xa3, 0xd5, 0x2e, 0xd8, 0x00, 0xbb, 0xbd, + 0x2f, 0xa3, 0xf1, 0x70, 0x60, 0x6e, 0x91, 0x1a, 0x3c, 0xfc, 0x7a, 0x76, 0x32, 0x1c, 0x8e, 0xc6, + 0xa6, 0x61, 0xfd, 0xaa, 0xc0, 0x7e, 0x79, 0x67, 0x94, 0x60, 0xc0, 0x43, 0x1e, 0x68, 0x77, 0x72, + 0x0e, 0xc0, 0xe7, 0xbe, 0x5e, 0x2c, 0xa7, 0xd8, 0x34, 0xda, 0x46, 0xa7, 0xde, 0x3d, 0xb0, 0xef, + 0x1e, 0xc4, 0x2e, 0xbb, 0xb4, 0xb5, 0xa9, 0x5b, 0xe5, 0x05, 0x40, 0x26, 0x50, 0xa7, 0x85, 0x8b, + 0x27, 0x68, 0x8c, 0xcd, 0x07, 0x5a, 0xcf, 0xb9, 0x4f, 0xef, 0xd6, 0x2c, 0x4b, 0xcd, 0x3d, 0xba, + 0x0e, 0x92, 0x03, 0x68, 0xac, 0x74, 0xaf, 0x31, 0xcd, 0xb8, 0x14, 0xcd, 0x4a, 0xdb, 0xe8, 0x54, + 0x5d, 0xb3, 0x2c, 0x4c, 0x16, 0x38, 0x49, 0x81, 0xc4, 0xa8, 0x52, 0x1e, 0x78, 0x53, 0x0c, 0xb9, + 0xe0, 0xf3, 0x29, 0xb3, 0xe6, 0x76, 0xbb, 0xd2, 0xa9, 0x75, 0x7b, 0xff, 0xd4, 0xc8, 0xad, 0x80, + 0xec, 0x81, 0x16, 0xfb, 0x50, 0x6a, 0xb9, 0x8d, 0x78, 0x03, 0xc9, 0x5a, 0xef, 0xc0, 0xdc, 0xa4, + 0x11, 0x02, 0xdb, 0x3a, 0x02, 0x43, 0xf7, 0xa9, 0xcf, 0xe4, 0x29, 0xec, 0xa4, 0xc8, 0xf0, 0x87, + 0xce, 0xa5, 0xea, 0x2e, 0x7e, 0x58, 0x3f, 0x0d, 0x78, 0x3e, 0x5e, 0xbe, 0xa6, 0x73, 0xe9, 0xbb, + 0x98, 0xc9, 0x3c, 0x0d, 0xb0, 0x27, 0x45, 0xc8, 0x19, 0x79, 0x0d, 0x75, 0x2e, 0x32, 0x45, 0x45, + 0x80, 0x5e, 0x20, 0x73, 0xa1, 0xb4, 0x62, 0xc5, 0xdd, 0x2b, 0xd0, 0xde, 0x1c, 0x24, 0xaf, 0xa0, + 0x04, 0x3c, 0x35, 0x4b, 0x70, 0x69, 0xf1, 0xb8, 0x00, 0xc7, 0xb3, 0x04, 0xc9, 0x1b, 0x68, 0x5c, + 0xcb, 0x28, 0x8f, 0xd1, 0xcb, 0xf8, 0x0d, 0x7a, 0x5c, 0x78, 0xcc, 0xd7, 0x41, 0x56, 0xdc, 0xfa, + 0xa2, 0x30, 0xe2, 0x37, 0xd8, 0x17, 0x67, 0xbe, 0xf5, 0xdb, 0x80, 0xda, 0x5a, 0x53, 0xe4, 0x0a, + 0x9e, 0xad, 0xfe, 0x83, 0x6c, 0x3d, 0x21, 0xdd, 0x4f, 0xad, 0xdb, 0xfd, 0xff, 0x6c, 0xdd, 0x7d, + 0xfa, 0xf7, 0x47, 0x89, 0xf0, 0x64, 0x7d, 0xbd, 0xbc, 0x40, 0x47, 0xa1, 0x47, 0xaa, 0x75, 0x8f, + 0xef, 0x33, 0xba, 0x33, 0x47, 0xb7, 0xa1, 0x56, 0xa5, 0x05, 0x74, 0x72, 0xfc, 0xed, 0x88, 0x71, + 0x75, 0x99, 0xfb, 0x76, 0x20, 0x63, 0x27, 0x9a, 0x85, 0xca, 0x29, 0x17, 0x9e, 0xa1, 0x70, 0x12, + 0xff, 0x90, 0x49, 0x67, 0xf3, 0x1b, 0xe0, 0xef, 0xea, 0x8d, 0x3d, 0xfa, 0x13, 0x00, 0x00, 0xff, + 0xff, 0xce, 0x40, 0x90, 0x4e, 0x1e, 0x04, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go index f8d76f654..ecf14e74d 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go @@ -326,93 +326,6 @@ var _ interface { ErrorName() string } = TrainingJobResourceConfigValidationError{} -// Validate checks the field values on StoppingCondition with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *StoppingCondition) Validate() error { - if m == nil { - return nil - } - - if v, ok := interface{}(m.GetMaxRuntimeInSeconds()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return StoppingConditionValidationError{ - field: "MaxRuntimeInSeconds", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetMaxWaitTimeInSeconds()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return StoppingConditionValidationError{ - field: "MaxWaitTimeInSeconds", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// StoppingConditionValidationError is the validation error returned by -// StoppingCondition.Validate if the designated constraints aren't met. -type StoppingConditionValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e StoppingConditionValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e StoppingConditionValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e StoppingConditionValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e StoppingConditionValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e StoppingConditionValidationError) ErrorName() string { - return "StoppingConditionValidationError" -} - -// Error satisfies the builtin error interface -func (e StoppingConditionValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sStoppingCondition.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = StoppingConditionValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = StoppingConditionValidationError{} - // Validate checks the field values on TrainingJob with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned. @@ -441,8 +354,6 @@ func (m *TrainingJob) Validate() error { } } - // no validation rules for Interruptible - return nil } diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java index fae46f0e4..b3db54aa2 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -3948,1002 +3948,6 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfi } - public interface StoppingConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.StoppingCondition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The maximum length of time in second that the training job can run.
-     * If this value is not specified, the default expiration time will be 1 day
-     * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - boolean hasMaxRuntimeInSeconds(); - /** - *
-     * The maximum length of time in second that the training job can run.
-     * If this value is not specified, the default expiration time will be 1 day
-     * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - com.google.protobuf.Duration getMaxRuntimeInSeconds(); - /** - *
-     * The maximum length of time in second that the training job can run.
-     * If this value is not specified, the default expiration time will be 1 day
-     * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - com.google.protobuf.DurationOrBuilder getMaxRuntimeInSecondsOrBuilder(); - - /** - *
-     * The maximum length of time in seconds that the users are willing to wait for a managed spot
-     * training job to complete.
-     * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-     * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-     * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - boolean hasMaxWaitTimeInSeconds(); - /** - *
-     * The maximum length of time in seconds that the users are willing to wait for a managed spot
-     * training job to complete.
-     * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-     * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-     * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - com.google.protobuf.Duration getMaxWaitTimeInSeconds(); - /** - *
-     * The maximum length of time in seconds that the users are willing to wait for a managed spot
-     * training job to complete.
-     * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-     * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-     * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - com.google.protobuf.DurationOrBuilder getMaxWaitTimeInSecondsOrBuilder(); - } - /** - *
-   * This option allows the users to specify a limit to how long a training job can run and
-   * how long the users are willing to wait for a managed spot training job to complete
-   * If the user uses SageMaker's built-in algorithms, SageMaker will try to automatically
-   * save the intermediate artifacts in a best-effort manner.
-   * See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html
-   * 
- * - * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} - */ - public static final class StoppingCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.StoppingCondition) - StoppingConditionOrBuilder { - private static final long serialVersionUID = 0L; - // Use StoppingCondition.newBuilder() to construct. - private StoppingCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StoppingCondition() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StoppingCondition( - 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.Duration.Builder subBuilder = null; - if (maxRuntimeInSeconds_ != null) { - subBuilder = maxRuntimeInSeconds_.toBuilder(); - } - maxRuntimeInSeconds_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxRuntimeInSeconds_); - maxRuntimeInSeconds_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maxWaitTimeInSeconds_ != null) { - subBuilder = maxWaitTimeInSeconds_.toBuilder(); - } - maxWaitTimeInSeconds_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxWaitTimeInSeconds_); - maxWaitTimeInSeconds_ = 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); - } - - public static final int MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER = 1; - private com.google.protobuf.Duration maxRuntimeInSeconds_; - /** - *
-     * The maximum length of time in second that the training job can run.
-     * If this value is not specified, the default expiration time will be 1 day
-     * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - public boolean hasMaxRuntimeInSeconds() { - return maxRuntimeInSeconds_ != null; - } - /** - *
-     * The maximum length of time in second that the training job can run.
-     * If this value is not specified, the default expiration time will be 1 day
-     * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - public com.google.protobuf.Duration getMaxRuntimeInSeconds() { - return maxRuntimeInSeconds_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxRuntimeInSeconds_; - } - /** - *
-     * The maximum length of time in second that the training job can run.
-     * If this value is not specified, the default expiration time will be 1 day
-     * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - public com.google.protobuf.DurationOrBuilder getMaxRuntimeInSecondsOrBuilder() { - return getMaxRuntimeInSeconds(); - } - - public static final int MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER = 2; - private com.google.protobuf.Duration maxWaitTimeInSeconds_; - /** - *
-     * The maximum length of time in seconds that the users are willing to wait for a managed spot
-     * training job to complete.
-     * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-     * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-     * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - public boolean hasMaxWaitTimeInSeconds() { - return maxWaitTimeInSeconds_ != null; - } - /** - *
-     * The maximum length of time in seconds that the users are willing to wait for a managed spot
-     * training job to complete.
-     * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-     * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-     * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - public com.google.protobuf.Duration getMaxWaitTimeInSeconds() { - return maxWaitTimeInSeconds_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWaitTimeInSeconds_; - } - /** - *
-     * The maximum length of time in seconds that the users are willing to wait for a managed spot
-     * training job to complete.
-     * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-     * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-     * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - public com.google.protobuf.DurationOrBuilder getMaxWaitTimeInSecondsOrBuilder() { - return getMaxWaitTimeInSeconds(); - } - - 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 (maxRuntimeInSeconds_ != null) { - output.writeMessage(1, getMaxRuntimeInSeconds()); - } - if (maxWaitTimeInSeconds_ != null) { - output.writeMessage(2, getMaxWaitTimeInSeconds()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxRuntimeInSeconds_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMaxRuntimeInSeconds()); - } - if (maxWaitTimeInSeconds_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaxWaitTimeInSeconds()); - } - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)) { - return super.equals(obj); - } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) obj; - - if (hasMaxRuntimeInSeconds() != other.hasMaxRuntimeInSeconds()) return false; - if (hasMaxRuntimeInSeconds()) { - if (!getMaxRuntimeInSeconds() - .equals(other.getMaxRuntimeInSeconds())) return false; - } - if (hasMaxWaitTimeInSeconds() != other.hasMaxWaitTimeInSeconds()) return false; - if (hasMaxWaitTimeInSeconds()) { - if (!getMaxWaitTimeInSeconds() - .equals(other.getMaxWaitTimeInSeconds())) 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 (hasMaxRuntimeInSeconds()) { - hash = (37 * hash) + MAX_RUNTIME_IN_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + getMaxRuntimeInSeconds().hashCode(); - } - if (hasMaxWaitTimeInSeconds()) { - hash = (37 * hash) + MAX_WAIT_TIME_IN_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + getMaxWaitTimeInSeconds().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition 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; - } - /** - *
-     * This option allows the users to specify a limit to how long a training job can run and
-     * how long the users are willing to wait for a managed spot training job to complete
-     * If the user uses SageMaker's built-in algorithms, SageMaker will try to automatically
-     * save the intermediate artifacts in a best-effort manner.
-     * See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html
-     * 
- * - * Protobuf type {@code flyteidl.plugins.sagemaker.StoppingCondition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.StoppingCondition) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.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 (maxRuntimeInSecondsBuilder_ == null) { - maxRuntimeInSeconds_ = null; - } else { - maxRuntimeInSeconds_ = null; - maxRuntimeInSecondsBuilder_ = null; - } - if (maxWaitTimeInSecondsBuilder_ == null) { - maxWaitTimeInSeconds_ = null; - } else { - maxWaitTimeInSeconds_ = null; - maxWaitTimeInSecondsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(this); - if (maxRuntimeInSecondsBuilder_ == null) { - result.maxRuntimeInSeconds_ = maxRuntimeInSeconds_; - } else { - result.maxRuntimeInSeconds_ = maxRuntimeInSecondsBuilder_.build(); - } - if (maxWaitTimeInSecondsBuilder_ == null) { - result.maxWaitTimeInSeconds_ = maxWaitTimeInSeconds_; - } else { - result.maxWaitTimeInSeconds_ = maxWaitTimeInSecondsBuilder_.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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition.getDefaultInstance()) return this; - if (other.hasMaxRuntimeInSeconds()) { - mergeMaxRuntimeInSeconds(other.getMaxRuntimeInSeconds()); - } - if (other.hasMaxWaitTimeInSeconds()) { - mergeMaxWaitTimeInSeconds(other.getMaxWaitTimeInSeconds()); - } - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Duration maxRuntimeInSeconds_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxRuntimeInSecondsBuilder_; - /** - *
-       * The maximum length of time in second that the training job can run.
-       * If this value is not specified, the default expiration time will be 1 day
-       * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - public boolean hasMaxRuntimeInSeconds() { - return maxRuntimeInSecondsBuilder_ != null || maxRuntimeInSeconds_ != null; - } - /** - *
-       * The maximum length of time in second that the training job can run.
-       * If this value is not specified, the default expiration time will be 1 day
-       * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - public com.google.protobuf.Duration getMaxRuntimeInSeconds() { - if (maxRuntimeInSecondsBuilder_ == null) { - return maxRuntimeInSeconds_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxRuntimeInSeconds_; - } else { - return maxRuntimeInSecondsBuilder_.getMessage(); - } - } - /** - *
-       * The maximum length of time in second that the training job can run.
-       * If this value is not specified, the default expiration time will be 1 day
-       * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - public Builder setMaxRuntimeInSeconds(com.google.protobuf.Duration value) { - if (maxRuntimeInSecondsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxRuntimeInSeconds_ = value; - onChanged(); - } else { - maxRuntimeInSecondsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The maximum length of time in second that the training job can run.
-       * If this value is not specified, the default expiration time will be 1 day
-       * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - public Builder setMaxRuntimeInSeconds( - com.google.protobuf.Duration.Builder builderForValue) { - if (maxRuntimeInSecondsBuilder_ == null) { - maxRuntimeInSeconds_ = builderForValue.build(); - onChanged(); - } else { - maxRuntimeInSecondsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The maximum length of time in second that the training job can run.
-       * If this value is not specified, the default expiration time will be 1 day
-       * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - public Builder mergeMaxRuntimeInSeconds(com.google.protobuf.Duration value) { - if (maxRuntimeInSecondsBuilder_ == null) { - if (maxRuntimeInSeconds_ != null) { - maxRuntimeInSeconds_ = - com.google.protobuf.Duration.newBuilder(maxRuntimeInSeconds_).mergeFrom(value).buildPartial(); - } else { - maxRuntimeInSeconds_ = value; - } - onChanged(); - } else { - maxRuntimeInSecondsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The maximum length of time in second that the training job can run.
-       * If this value is not specified, the default expiration time will be 1 day
-       * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - public Builder clearMaxRuntimeInSeconds() { - if (maxRuntimeInSecondsBuilder_ == null) { - maxRuntimeInSeconds_ = null; - onChanged(); - } else { - maxRuntimeInSeconds_ = null; - maxRuntimeInSecondsBuilder_ = null; - } - - return this; - } - /** - *
-       * The maximum length of time in second that the training job can run.
-       * If this value is not specified, the default expiration time will be 1 day
-       * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - public com.google.protobuf.Duration.Builder getMaxRuntimeInSecondsBuilder() { - - onChanged(); - return getMaxRuntimeInSecondsFieldBuilder().getBuilder(); - } - /** - *
-       * The maximum length of time in second that the training job can run.
-       * If this value is not specified, the default expiration time will be 1 day
-       * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - public com.google.protobuf.DurationOrBuilder getMaxRuntimeInSecondsOrBuilder() { - if (maxRuntimeInSecondsBuilder_ != null) { - return maxRuntimeInSecondsBuilder_.getMessageOrBuilder(); - } else { - return maxRuntimeInSeconds_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : maxRuntimeInSeconds_; - } - } - /** - *
-       * The maximum length of time in second that the training job can run.
-       * If this value is not specified, the default expiration time will be 1 day
-       * 
- * - * .google.protobuf.Duration max_runtime_in_seconds = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getMaxRuntimeInSecondsFieldBuilder() { - if (maxRuntimeInSecondsBuilder_ == null) { - maxRuntimeInSecondsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMaxRuntimeInSeconds(), - getParentForChildren(), - isClean()); - maxRuntimeInSeconds_ = null; - } - return maxRuntimeInSecondsBuilder_; - } - - private com.google.protobuf.Duration maxWaitTimeInSeconds_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxWaitTimeInSecondsBuilder_; - /** - *
-       * The maximum length of time in seconds that the users are willing to wait for a managed spot
-       * training job to complete.
-       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-       * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - public boolean hasMaxWaitTimeInSeconds() { - return maxWaitTimeInSecondsBuilder_ != null || maxWaitTimeInSeconds_ != null; - } - /** - *
-       * The maximum length of time in seconds that the users are willing to wait for a managed spot
-       * training job to complete.
-       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-       * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - public com.google.protobuf.Duration getMaxWaitTimeInSeconds() { - if (maxWaitTimeInSecondsBuilder_ == null) { - return maxWaitTimeInSeconds_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWaitTimeInSeconds_; - } else { - return maxWaitTimeInSecondsBuilder_.getMessage(); - } - } - /** - *
-       * The maximum length of time in seconds that the users are willing to wait for a managed spot
-       * training job to complete.
-       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-       * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - public Builder setMaxWaitTimeInSeconds(com.google.protobuf.Duration value) { - if (maxWaitTimeInSecondsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxWaitTimeInSeconds_ = value; - onChanged(); - } else { - maxWaitTimeInSecondsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The maximum length of time in seconds that the users are willing to wait for a managed spot
-       * training job to complete.
-       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-       * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - public Builder setMaxWaitTimeInSeconds( - com.google.protobuf.Duration.Builder builderForValue) { - if (maxWaitTimeInSecondsBuilder_ == null) { - maxWaitTimeInSeconds_ = builderForValue.build(); - onChanged(); - } else { - maxWaitTimeInSecondsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The maximum length of time in seconds that the users are willing to wait for a managed spot
-       * training job to complete.
-       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-       * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - public Builder mergeMaxWaitTimeInSeconds(com.google.protobuf.Duration value) { - if (maxWaitTimeInSecondsBuilder_ == null) { - if (maxWaitTimeInSeconds_ != null) { - maxWaitTimeInSeconds_ = - com.google.protobuf.Duration.newBuilder(maxWaitTimeInSeconds_).mergeFrom(value).buildPartial(); - } else { - maxWaitTimeInSeconds_ = value; - } - onChanged(); - } else { - maxWaitTimeInSecondsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The maximum length of time in seconds that the users are willing to wait for a managed spot
-       * training job to complete.
-       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-       * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - public Builder clearMaxWaitTimeInSeconds() { - if (maxWaitTimeInSecondsBuilder_ == null) { - maxWaitTimeInSeconds_ = null; - onChanged(); - } else { - maxWaitTimeInSeconds_ = null; - maxWaitTimeInSecondsBuilder_ = null; - } - - return this; - } - /** - *
-       * The maximum length of time in seconds that the users are willing to wait for a managed spot
-       * training job to complete.
-       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-       * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - public com.google.protobuf.Duration.Builder getMaxWaitTimeInSecondsBuilder() { - - onChanged(); - return getMaxWaitTimeInSecondsFieldBuilder().getBuilder(); - } - /** - *
-       * The maximum length of time in seconds that the users are willing to wait for a managed spot
-       * training job to complete.
-       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-       * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - public com.google.protobuf.DurationOrBuilder getMaxWaitTimeInSecondsOrBuilder() { - if (maxWaitTimeInSecondsBuilder_ != null) { - return maxWaitTimeInSecondsBuilder_.getMessageOrBuilder(); - } else { - return maxWaitTimeInSeconds_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : maxWaitTimeInSeconds_; - } - } - /** - *
-       * The maximum length of time in seconds that the users are willing to wait for a managed spot
-       * training job to complete.
-       * Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-       * training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-       * 
- * - * .google.protobuf.Duration max_wait_time_in_seconds = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getMaxWaitTimeInSecondsFieldBuilder() { - if (maxWaitTimeInSecondsBuilder_ == null) { - maxWaitTimeInSecondsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMaxWaitTimeInSeconds(), - getParentForChildren(), - isClean()); - maxWaitTimeInSeconds_ = null; - } - return maxWaitTimeInSecondsBuilder_; - } - @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:flyteidl.plugins.sagemaker.StoppingCondition) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition(); - } - - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StoppingCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StoppingCondition(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.StoppingCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - public interface TrainingJobOrBuilder extends // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJob) com.google.protobuf.MessageOrBuilder { @@ -4973,11 +3977,6 @@ public interface TrainingJobOrBuilder extends * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; */ flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder getTrainingJobConfigOrBuilder(); - - /** - * bool interruptible = 3; - */ - boolean getInterruptible(); } /** *
@@ -5049,11 +4048,6 @@ private TrainingJob(
 
               break;
             }
-            case 24: {
-
-              interruptible_ = input.readBool();
-              break;
-            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -5128,15 +4122,6 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfi
       return getTrainingJobConfig();
     }
 
-    public static final int INTERRUPTIBLE_FIELD_NUMBER = 3;
-    private boolean interruptible_;
-    /**
-     * bool interruptible = 3;
-     */
-    public boolean getInterruptible() {
-      return interruptible_;
-    }
-
     private byte memoizedIsInitialized = -1;
     @java.lang.Override
     public final boolean isInitialized() {
@@ -5157,9 +4142,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (trainingJobConfig_ != null) {
         output.writeMessage(2, getTrainingJobConfig());
       }
-      if (interruptible_ != false) {
-        output.writeBool(3, interruptible_);
-      }
       unknownFields.writeTo(output);
     }
 
@@ -5177,10 +4159,6 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getTrainingJobConfig());
       }
-      if (interruptible_ != false) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeBoolSize(3, interruptible_);
-      }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
       return size;
@@ -5206,8 +4184,6 @@ public boolean equals(final java.lang.Object obj) {
         if (!getTrainingJobConfig()
             .equals(other.getTrainingJobConfig())) return false;
       }
-      if (getInterruptible()
-          != other.getInterruptible()) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -5227,9 +4203,6 @@ public int hashCode() {
         hash = (37 * hash) + TRAINING_JOB_CONFIG_FIELD_NUMBER;
         hash = (53 * hash) + getTrainingJobConfig().hashCode();
       }
-      hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-          getInterruptible());
       hash = (29 * hash) + unknownFields.hashCode();
       memoizedHashCode = hash;
       return hash;
@@ -5380,8 +4353,6 @@ public Builder clear() {
           trainingJobConfig_ = null;
           trainingJobConfigBuilder_ = null;
         }
-        interruptible_ = false;
-
         return this;
       }
 
@@ -5418,7 +4389,6 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob buildPartial
         } else {
           result.trainingJobConfig_ = trainingJobConfigBuilder_.build();
         }
-        result.interruptible_ = interruptible_;
         onBuilt();
         return result;
       }
@@ -5473,9 +4443,6 @@ public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.Traini
         if (other.hasTrainingJobConfig()) {
           mergeTrainingJobConfig(other.getTrainingJobConfig());
         }
-        if (other.getInterruptible() != false) {
-          setInterruptible(other.getInterruptible());
-        }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
         return this;
@@ -5738,32 +4705,6 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfi
         }
         return trainingJobConfigBuilder_;
       }
-
-      private boolean interruptible_ ;
-      /**
-       * bool interruptible = 3;
-       */
-      public boolean getInterruptible() {
-        return interruptible_;
-      }
-      /**
-       * bool interruptible = 3;
-       */
-      public Builder setInterruptible(boolean value) {
-        
-        interruptible_ = value;
-        onChanged();
-        return this;
-      }
-      /**
-       * bool interruptible = 3;
-       */
-      public Builder clearInterruptible() {
-        
-        interruptible_ = false;
-        onChanged();
-        return this;
-      }
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -5842,11 +4783,6 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn
   private static final 
     com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_fieldAccessorTable;
-  private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
     internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor;
   private static final 
@@ -5877,17 +4813,13 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn
       "\001(\t\022\r\n\005regex\030\002 \001(\t\"e\n\031TrainingJobResourc" +
       "eConfig\022\026\n\016instance_count\030\001 \001(\003\022\025\n\rinsta" +
       "nce_type\030\002 \001(\t\022\031\n\021volume_size_in_gb\030\003 \001(" +
-      "\003\"\213\001\n\021StoppingCondition\0229\n\026max_runtime_i" +
-      "n_seconds\030\001 \001(\0132\031.google.protobuf.Durati" +
-      "on\022;\n\030max_wait_time_in_seconds\030\002 \001(\0132\031.g" +
-      "oogle.protobuf.Duration\"\315\001\n\013TrainingJob\022" +
-      "S\n\027algorithm_specification\030\001 \001(\01322.flyte" +
-      "idl.plugins.sagemaker.AlgorithmSpecifica" +
-      "tion\022R\n\023training_job_config\030\002 \001(\01325.flyt" +
-      "eidl.plugins.sagemaker.TrainingJobResour" +
-      "ceConfig\022\025\n\rinterruptible\030\003 \001(\010B5Z3githu" +
-      "b.com/lyft/flyteidl/gen/pb-go/flyteidl/p" +
-      "luginsb\006proto3"
+      "\003\"\266\001\n\013TrainingJob\022S\n\027algorithm_specifica" +
+      "tion\030\001 \001(\01322.flyteidl.plugins.sagemaker." +
+      "AlgorithmSpecification\022R\n\023training_job_c" +
+      "onfig\030\002 \001(\01325.flyteidl.plugins.sagemaker" +
+      ".TrainingJobResourceConfigB5Z3github.com" +
+      "/lyft/flyteidl/gen/pb-go/flyteidl/plugin" +
+      "sb\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
@@ -5932,18 +4864,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor,
         new java.lang.String[] { "InstanceCount", "InstanceType", "VolumeSizeInGb", });
-    internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor =
-      getDescriptor().getMessageTypes().get(4);
-    internal_static_flyteidl_plugins_sagemaker_StoppingCondition_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_flyteidl_plugins_sagemaker_StoppingCondition_descriptor,
-        new java.lang.String[] { "MaxRuntimeInSeconds", "MaxWaitTimeInSeconds", });
     internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor =
-      getDescriptor().getMessageTypes().get(5);
+      getDescriptor().getMessageTypes().get(4);
     internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor,
-        new java.lang.String[] { "AlgorithmSpecification", "TrainingJobConfig", "Interruptible", });
+        new java.lang.String[] { "AlgorithmSpecification", "TrainingJobConfig", });
     com.google.protobuf.DurationProto.getDescriptor();
   }
 
diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst
index ebf4e02b1..d48dc742a 100644
--- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst
+++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst
@@ -189,50 +189,12 @@ volume_size_in_gb
   
 
 
-.. _api_msg_flyteidl.plugins.sagemaker.StoppingCondition:
-
-flyteidl.plugins.sagemaker.StoppingCondition
---------------------------------------------
-
-`[flyteidl.plugins.sagemaker.StoppingCondition proto] `_
-
-This option allows the users to specify a limit to how long a training job can run and
-how long the users are willing to wait for a managed spot training job to complete
-If the user uses SageMaker's built-in algorithms, SageMaker will try to automatically
-save the intermediate artifacts in a best-effort manner.
-See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html
-
-.. code-block:: json
-
-  {
-    "max_runtime_in_seconds": "{...}",
-    "max_wait_time_in_seconds": "{...}"
-  }
-
-.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds:
-
-max_runtime_in_seconds
-  (:ref:`google.protobuf.Duration `) The maximum length of time in second that the training job can run.
-  If this value is not specified, the default expiration time will be 1 day
-  
-  
-.. _api_field_flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds:
-
-max_wait_time_in_seconds
-  (:ref:`google.protobuf.Duration `) The maximum length of time in seconds that the users are willing to wait for a managed spot
-  training job to complete.
-  Note that it is the amount of time spent waiting for Spot capacity plus the amount of time the
-  training job runs, so it must be equal to or greater than max_runtime_in_seconds.
-  
-  
-
-
 .. _api_msg_flyteidl.plugins.sagemaker.TrainingJob:
 
 flyteidl.plugins.sagemaker.TrainingJob
 --------------------------------------
 
-`[flyteidl.plugins.sagemaker.TrainingJob proto] `_
+`[flyteidl.plugins.sagemaker.TrainingJob proto] `_
 
 The spec of a training job. This is mostly a pass-through object
 https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
@@ -241,8 +203,7 @@ https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.
 
   {
     "algorithm_specification": "{...}",
-    "training_job_config": "{...}",
-    "interruptible": "..."
+    "training_job_config": "{...}"
   }
 
 .. _api_field_flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification:
@@ -255,9 +216,4 @@ algorithm_specification
 training_job_config
   (:ref:`flyteidl.plugins.sagemaker.TrainingJobResourceConfig `) 
   
-.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.interruptible:
-
-interruptible
-  (`bool `_) 
-  
 
diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py
index e6e813b3a..4002d7447 100644
--- a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py
+++ b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py
@@ -21,7 +21,7 @@
   package='flyteidl.plugins.sagemaker',
   syntax='proto3',
   serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'),
-  serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"\xcf\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\x8b\x01\n\x11StoppingCondition\x12\x39\n\x16max_runtime_in_seconds\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x18max_wait_time_in_seconds\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xcd\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12R\n\x13training_job_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfig\x12\x15\n\rinterruptible\x18\x03 \x01(\x08\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3')
+  serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"\xcf\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\xb6\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12R\n\x13training_job_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3')
   ,
   dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,])
 
@@ -256,44 +256,6 @@
 )
 
 
-_STOPPINGCONDITION = _descriptor.Descriptor(
-  name='StoppingCondition',
-  full_name='flyteidl.plugins.sagemaker.StoppingCondition',
-  filename=None,
-  file=DESCRIPTOR,
-  containing_type=None,
-  fields=[
-    _descriptor.FieldDescriptor(
-      name='max_runtime_in_seconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.max_runtime_in_seconds', index=0,
-      number=1, type=11, cpp_type=10, label=1,
-      has_default_value=False, default_value=None,
-      message_type=None, enum_type=None, containing_type=None,
-      is_extension=False, extension_scope=None,
-      serialized_options=None, file=DESCRIPTOR),
-    _descriptor.FieldDescriptor(
-      name='max_wait_time_in_seconds', full_name='flyteidl.plugins.sagemaker.StoppingCondition.max_wait_time_in_seconds', index=1,
-      number=2, type=11, cpp_type=10, label=1,
-      has_default_value=False, default_value=None,
-      message_type=None, enum_type=None, containing_type=None,
-      is_extension=False, extension_scope=None,
-      serialized_options=None, file=DESCRIPTOR),
-  ],
-  extensions=[
-  ],
-  nested_types=[],
-  enum_types=[
-  ],
-  serialized_options=None,
-  is_extendable=False,
-  syntax='proto3',
-  extension_ranges=[],
-  oneofs=[
-  ],
-  serialized_start=644,
-  serialized_end=783,
-)
-
-
 _TRAININGJOB = _descriptor.Descriptor(
   name='TrainingJob',
   full_name='flyteidl.plugins.sagemaker.TrainingJob',
@@ -315,13 +277,6 @@
       message_type=None, enum_type=None, containing_type=None,
       is_extension=False, extension_scope=None,
       serialized_options=None, file=DESCRIPTOR),
-    _descriptor.FieldDescriptor(
-      name='interruptible', full_name='flyteidl.plugins.sagemaker.TrainingJob.interruptible', index=2,
-      number=3, type=8, cpp_type=7, label=1,
-      has_default_value=False, default_value=False,
-      message_type=None, enum_type=None, containing_type=None,
-      is_extension=False, extension_scope=None,
-      serialized_options=None, file=DESCRIPTOR),
   ],
   extensions=[
   ],
@@ -334,8 +289,8 @@
   extension_ranges=[],
   oneofs=[
   ],
-  serialized_start=786,
-  serialized_end=991,
+  serialized_start=644,
+  serialized_end=826,
 )
 
 _INPUTMODE_VALUE.containing_type = _INPUTMODE
@@ -344,15 +299,12 @@
 _ALGORITHMSPECIFICATION.fields_by_name['input_mode'].enum_type = _INPUTMODE_VALUE
 _ALGORITHMSPECIFICATION.fields_by_name['algorithm_name'].enum_type = _ALGORITHMNAME_VALUE
 _ALGORITHMSPECIFICATION.fields_by_name['metric_definitions'].message_type = _ALGORITHMSPECIFICATION_METRICDEFINITION
-_STOPPINGCONDITION.fields_by_name['max_runtime_in_seconds'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
-_STOPPINGCONDITION.fields_by_name['max_wait_time_in_seconds'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
 _TRAININGJOB.fields_by_name['algorithm_specification'].message_type = _ALGORITHMSPECIFICATION
 _TRAININGJOB.fields_by_name['training_job_config'].message_type = _TRAININGJOBRESOURCECONFIG
 DESCRIPTOR.message_types_by_name['InputMode'] = _INPUTMODE
 DESCRIPTOR.message_types_by_name['AlgorithmName'] = _ALGORITHMNAME
 DESCRIPTOR.message_types_by_name['AlgorithmSpecification'] = _ALGORITHMSPECIFICATION
 DESCRIPTOR.message_types_by_name['TrainingJobResourceConfig'] = _TRAININGJOBRESOURCECONFIG
-DESCRIPTOR.message_types_by_name['StoppingCondition'] = _STOPPINGCONDITION
 DESCRIPTOR.message_types_by_name['TrainingJob'] = _TRAININGJOB
 _sym_db.RegisterFileDescriptor(DESCRIPTOR)
 
@@ -392,13 +344,6 @@
   ))
 _sym_db.RegisterMessage(TrainingJobResourceConfig)
 
-StoppingCondition = _reflection.GeneratedProtocolMessageType('StoppingCondition', (_message.Message,), dict(
-  DESCRIPTOR = _STOPPINGCONDITION,
-  __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2'
-  # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.StoppingCondition)
-  ))
-_sym_db.RegisterMessage(StoppingCondition)
-
 TrainingJob = _reflection.GeneratedProtocolMessageType('TrainingJob', (_message.Message,), dict(
   DESCRIPTOR = _TRAININGJOB,
   __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2'

From 7bcc7ee8e98ae22529747cb86e6bb6946c1a03b8 Mon Sep 17 00:00:00 2001
From: Chang-Hong Hsu 
Date: Mon, 27 Jul 2020 11:18:34 -0700
Subject: [PATCH 49/64] bump version

---
 package.json | 2 +-
 setup.py     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json
index 3370dd413..7c3dd5890 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@lyft/flyteidl",
-  "version": "0.18.0b7",
+  "version": "0.18.0b8",
   "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
   "repository": {
     "type": "git",
diff --git a/setup.py b/setup.py
index 364f97c68..5fe1df34e 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
 from setuptools import setup, find_packages
 
-__version__ = '0.18.0b7'
+__version__ = '0.18.0b8'
 
 setup(
     name='flyteidl',

From 203ecd87e3f4b4fd852ba9d216c09d7b9f5fcce6 Mon Sep 17 00:00:00 2001
From: Chang-Hong Hsu 
Date: Mon, 27 Jul 2020 12:41:24 -0700
Subject: [PATCH 50/64] move metric definition to top level

---
 .../plugins/sagemaker/training_job.proto      | 21 ++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto
index 6bbe38964..86d2cf81c 100644
--- a/protos/flyteidl/plugins/sagemaker/training_job.proto
+++ b/protos/flyteidl/plugins/sagemaker/training_job.proto
@@ -21,6 +21,18 @@ message AlgorithmName {
     }
 }
 
+
+// Specifies a metric that the training algorithm writes to stderr or stdout.
+// This object is a pass-through.
+// See this for details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_MetricDefinition.html
+message MetricDefinition {
+    // User-defined name of the metric
+    string name = 1;
+    // SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+    string regex = 2;
+}
+
+
 // Specifies the training algorithm to be used in the training job
 // This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify
 // TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm
@@ -38,14 +50,9 @@ message AlgorithmSpecification {
     // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
     string algorithm_version = 3;
 
-    message MetricDefinition {
-        // User-defined name of the metric
-        string name = 1;
-        // SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
-        string regex = 2;
-    }
     // A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-    // https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+    // See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+    // and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
     repeated MetricDefinition metric_definitions = 4;
 }
 

From eb6d27f07448b3491691e4884b748386011a5219 Mon Sep 17 00:00:00 2001
From: Chang-Hong Hsu 
Date: Mon, 27 Jul 2020 12:43:19 -0700
Subject: [PATCH 51/64] make generate

---
 .../plugins/sagemaker/training_job.pb.cc      |  199 +-
 .../plugins/sagemaker/training_job.pb.h       |  152 +-
 .../plugins/sagemaker/training_job.pb.go      |  194 +-
 .../sagemaker/training_job.pb.validate.go     |  141 +-
 .../sagemaker/TrainingJobOuterClass.java      | 1811 +++++++++--------
 .../plugins/sagemaker/training_job.proto.rst  |   71 +-
 .../plugins/sagemaker/training_job_pb2.py     |   48 +-
 7 files changed, 1328 insertions(+), 1288 deletions(-)

diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc
index 12c4aa3af..75b5174bf 100644
--- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc
+++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc
@@ -16,7 +16,7 @@
 // @@protoc_insertion_point(includes)
 #include 
 
-extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
 extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
 extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
 namespace flyteidl {
@@ -30,10 +30,10 @@ class AlgorithmNameDefaultTypeInternal {
  public:
   ::google::protobuf::internal::ExplicitlyConstructed _instance;
 } _AlgorithmName_default_instance_;
-class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal {
+class MetricDefinitionDefaultTypeInternal {
  public:
-  ::google::protobuf::internal::ExplicitlyConstructed _instance;
-} _AlgorithmSpecification_MetricDefinition_default_instance_;
+  ::google::protobuf::internal::ExplicitlyConstructed _instance;
+} _MetricDefinition_default_instance_;
 class AlgorithmSpecificationDefaultTypeInternal {
  public:
   ::google::protobuf::internal::ExplicitlyConstructed _instance;
@@ -77,19 +77,19 @@ static void InitDefaultsAlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_
 ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto =
     {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}};
 
-static void InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
+static void InitDefaultsMetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
   {
-    void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_;
-    new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition();
+    void* ptr = &::flyteidl::plugins::sagemaker::_MetricDefinition_default_instance_;
+    new (ptr) ::flyteidl::plugins::sagemaker::MetricDefinition();
     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
   }
-  ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance();
+  ::flyteidl::plugins::sagemaker::MetricDefinition::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}};
+::google::protobuf::internal::SCCInfo<0> scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}};
 
 static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
@@ -104,7 +104,7 @@ static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2f
 
 ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto =
     {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {
-      &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}};
+      &scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}};
 
 static void InitDefaultsTrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
@@ -139,7 +139,7 @@ ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins
 void InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
   ::google::protobuf::internal::InitSCC(&scc_info_InputMode_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
-  ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
@@ -161,12 +161,12 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr
   ~0u,  // no _oneof_case_
   ~0u,  // no _weak_field_map_
   ~0u,  // no _has_bits_
-  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, _internal_metadata_),
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::MetricDefinition, _internal_metadata_),
   ~0u,  // no _extensions_
   ~0u,  // no _oneof_case_
   ~0u,  // no _weak_field_map_
-  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, name_),
-  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition, regex_),
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::MetricDefinition, name_),
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::MetricDefinition, regex_),
   ~0u,  // no _has_bits_
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, _internal_metadata_),
   ~0u,  // no _extensions_
@@ -195,7 +195,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr
 static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
   { 0, -1, sizeof(::flyteidl::plugins::sagemaker::InputMode)},
   { 5, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmName)},
-  { 10, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition)},
+  { 10, -1, sizeof(::flyteidl::plugins::sagemaker::MetricDefinition)},
   { 17, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)},
   { 26, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig)},
   { 34, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJob)},
@@ -204,7 +204,7 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SE
 static ::google::protobuf::Message const * const file_default_instances[] = {
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_InputMode_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmName_default_instance_),
-  reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_MetricDefinition_default_instance_),
+  reinterpret_cast(&::flyteidl::plugins::sagemaker::_MetricDefinition_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJobResourceConfig_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_),
@@ -222,29 +222,28 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5
   "gle/protobuf/duration.proto\"(\n\tInputMode"
   "\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n\rAlgorit"
   "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001"
-  "\"\317\002\n\026AlgorithmSpecification\022\?\n\ninput_mod"
-  "e\030\001 \001(\0162+.flyteidl.plugins.sagemaker.Inp"
-  "utMode.Value\022G\n\016algorithm_name\030\002 \001(\0162/.f"
-  "lyteidl.plugins.sagemaker.AlgorithmName."
-  "Value\022\031\n\021algorithm_version\030\003 \001(\t\022_\n\022metr"
-  "ic_definitions\030\004 \003(\0132C.flyteidl.plugins."
-  "sagemaker.AlgorithmSpecification.MetricD"
-  "efinition\032/\n\020MetricDefinition\022\014\n\004name\030\001 "
-  "\001(\t\022\r\n\005regex\030\002 \001(\t\"e\n\031TrainingJobResourc"
-  "eConfig\022\026\n\016instance_count\030\001 \001(\003\022\025\n\rinsta"
-  "nce_type\030\002 \001(\t\022\031\n\021volume_size_in_gb\030\003 \001("
-  "\003\"\266\001\n\013TrainingJob\022S\n\027algorithm_specifica"
-  "tion\030\001 \001(\01322.flyteidl.plugins.sagemaker."
-  "AlgorithmSpecification\022R\n\023training_job_c"
-  "onfig\030\002 \001(\01325.flyteidl.plugins.sagemaker"
-  ".TrainingJobResourceConfigB5Z3github.com"
-  "/lyft/flyteidl/gen/pb-go/flyteidl/plugin"
-  "sb\006proto3"
+  "\"/\n\020MetricDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005re"
+  "gex\030\002 \001(\t\"\207\002\n\026AlgorithmSpecification\022\?\n\n"
+  "input_mode\030\001 \001(\0162+.flyteidl.plugins.sage"
+  "maker.InputMode.Value\022G\n\016algorithm_name\030"
+  "\002 \001(\0162/.flyteidl.plugins.sagemaker.Algor"
+  "ithmName.Value\022\031\n\021algorithm_version\030\003 \001("
+  "\t\022H\n\022metric_definitions\030\004 \003(\0132,.flyteidl"
+  ".plugins.sagemaker.MetricDefinition\"e\n\031T"
+  "rainingJobResourceConfig\022\026\n\016instance_cou"
+  "nt\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volum"
+  "e_size_in_gb\030\003 \001(\003\"\266\001\n\013TrainingJob\022S\n\027al"
+  "gorithm_specification\030\001 \001(\01322.flyteidl.p"
+  "lugins.sagemaker.AlgorithmSpecification\022"
+  "R\n\023training_job_config\030\002 \001(\01325.flyteidl."
+  "plugins.sagemaker.TrainingJobResourceCon"
+  "figB5Z3github.com/lyft/flyteidl/gen/pb-g"
+  "o/flyteidl/pluginsb\006proto3"
   ;
 ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = {
   false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 
   descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto,
-  "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 889,
+  "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 866,
 };
 
 void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
@@ -723,23 +722,23 @@ ::google::protobuf::Metadata AlgorithmName::GetMetadata() const {
 
 // ===================================================================
 
-void AlgorithmSpecification_MetricDefinition::InitAsDefaultInstance() {
+void MetricDefinition::InitAsDefaultInstance() {
 }
-class AlgorithmSpecification_MetricDefinition::HasBitSetters {
+class MetricDefinition::HasBitSetters {
  public:
 };
 
 #if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int AlgorithmSpecification_MetricDefinition::kNameFieldNumber;
-const int AlgorithmSpecification_MetricDefinition::kRegexFieldNumber;
+const int MetricDefinition::kNameFieldNumber;
+const int MetricDefinition::kRegexFieldNumber;
 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
 
-AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition()
+MetricDefinition::MetricDefinition()
   : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
   SharedCtor();
-  // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+  // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.MetricDefinition)
 }
-AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from)
+MetricDefinition::MetricDefinition(const MetricDefinition& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(nullptr) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
@@ -751,37 +750,37 @@ AlgorithmSpecification_MetricDefinition::AlgorithmSpecification_MetricDefinition
   if (from.regex().size() > 0) {
     regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_);
   }
-  // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+  // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.MetricDefinition)
 }
 
-void AlgorithmSpecification_MetricDefinition::SharedCtor() {
+void MetricDefinition::SharedCtor() {
   ::google::protobuf::internal::InitSCC(
-      &scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
+      &scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 
-AlgorithmSpecification_MetricDefinition::~AlgorithmSpecification_MetricDefinition() {
-  // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+MetricDefinition::~MetricDefinition() {
+  // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.MetricDefinition)
   SharedDtor();
 }
 
-void AlgorithmSpecification_MetricDefinition::SharedDtor() {
+void MetricDefinition::SharedDtor() {
   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   regex_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 
-void AlgorithmSpecification_MetricDefinition::SetCachedSize(int size) const {
+void MetricDefinition::SetCachedSize(int size) const {
   _cached_size_.Set(size);
 }
-const AlgorithmSpecification_MetricDefinition& AlgorithmSpecification_MetricDefinition::default_instance() {
-  ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
+const MetricDefinition& MetricDefinition::default_instance() {
+  ::google::protobuf::internal::InitSCC(&::scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   return *internal_default_instance();
 }
 
 
-void AlgorithmSpecification_MetricDefinition::Clear() {
-// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+void MetricDefinition::Clear() {
+// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.MetricDefinition)
   ::google::protobuf::uint32 cached_has_bits = 0;
   // Prevent compiler warnings about cached_has_bits being unused
   (void) cached_has_bits;
@@ -792,9 +791,9 @@ void AlgorithmSpecification_MetricDefinition::Clear() {
 }
 
 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
-const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char* begin, const char* end, void* object,
+const char* MetricDefinition::_InternalParse(const char* begin, const char* end, void* object,
                   ::google::protobuf::internal::ParseContext* ctx) {
-  auto msg = static_cast(object);
+  auto msg = static_cast(object);
   ::google::protobuf::int32 size; (void)size;
   int depth; (void)depth;
   ::google::protobuf::uint32 tag;
@@ -809,7 +808,7 @@ const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char*
         if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
         ptr = ::google::protobuf::io::ReadSize(ptr, &size);
         GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
-        ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name");
+        ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.MetricDefinition.name");
         object = msg->mutable_name();
         if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
           parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
@@ -825,7 +824,7 @@ const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char*
         if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
         ptr = ::google::protobuf::io::ReadSize(ptr, &size);
         GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
-        ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex");
+        ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.MetricDefinition.regex");
         object = msg->mutable_regex();
         if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
           parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
@@ -860,11 +859,11 @@ const char* AlgorithmSpecification_MetricDefinition::_InternalParse(const char*
                                {parser_till_end, object}, size);
 }
 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
-bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream(
+bool MetricDefinition::MergePartialFromCodedStream(
     ::google::protobuf::io::CodedInputStream* input) {
 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
   ::google::protobuf::uint32 tag;
-  // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+  // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.MetricDefinition)
   for (;;) {
     ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
     tag = p.first;
@@ -878,7 +877,7 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream(
           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
             this->name().data(), static_cast(this->name().length()),
             ::google::protobuf::internal::WireFormatLite::PARSE,
-            "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name"));
+            "flyteidl.plugins.sagemaker.MetricDefinition.name"));
         } else {
           goto handle_unusual;
         }
@@ -893,7 +892,7 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream(
           DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
             this->regex().data(), static_cast(this->regex().length()),
             ::google::protobuf::internal::WireFormatLite::PARSE,
-            "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex"));
+            "flyteidl.plugins.sagemaker.MetricDefinition.regex"));
         } else {
           goto handle_unusual;
         }
@@ -912,18 +911,18 @@ bool AlgorithmSpecification_MetricDefinition::MergePartialFromCodedStream(
     }
   }
 success:
-  // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+  // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.MetricDefinition)
   return true;
 failure:
-  // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+  // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.MetricDefinition)
   return false;
 #undef DO_
 }
 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
 
-void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes(
+void MetricDefinition::SerializeWithCachedSizes(
     ::google::protobuf::io::CodedOutputStream* output) const {
-  // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+  // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.MetricDefinition)
   ::google::protobuf::uint32 cached_has_bits = 0;
   (void) cached_has_bits;
 
@@ -932,7 +931,7 @@ void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes(
     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
       this->name().data(), static_cast(this->name().length()),
       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
-      "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name");
+      "flyteidl.plugins.sagemaker.MetricDefinition.name");
     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
       1, this->name(), output);
   }
@@ -942,7 +941,7 @@ void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes(
     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
       this->regex().data(), static_cast(this->regex().length()),
       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
-      "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex");
+      "flyteidl.plugins.sagemaker.MetricDefinition.regex");
     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
       2, this->regex(), output);
   }
@@ -951,12 +950,12 @@ void AlgorithmSpecification_MetricDefinition::SerializeWithCachedSizes(
     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
         _internal_metadata_.unknown_fields(), output);
   }
-  // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+  // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.MetricDefinition)
 }
 
-::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSerializeWithCachedSizesToArray(
+::google::protobuf::uint8* MetricDefinition::InternalSerializeWithCachedSizesToArray(
     ::google::protobuf::uint8* target) const {
-  // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+  // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.MetricDefinition)
   ::google::protobuf::uint32 cached_has_bits = 0;
   (void) cached_has_bits;
 
@@ -965,7 +964,7 @@ ::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSeri
     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
       this->name().data(), static_cast(this->name().length()),
       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
-      "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name");
+      "flyteidl.plugins.sagemaker.MetricDefinition.name");
     target =
       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
         1, this->name(), target);
@@ -976,7 +975,7 @@ ::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSeri
     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
       this->regex().data(), static_cast(this->regex().length()),
       ::google::protobuf::internal::WireFormatLite::SERIALIZE,
-      "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex");
+      "flyteidl.plugins.sagemaker.MetricDefinition.regex");
     target =
       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
         2, this->regex(), target);
@@ -986,12 +985,12 @@ ::google::protobuf::uint8* AlgorithmSpecification_MetricDefinition::InternalSeri
     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
         _internal_metadata_.unknown_fields(), target);
   }
-  // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+  // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.MetricDefinition)
   return target;
 }
 
-size_t AlgorithmSpecification_MetricDefinition::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+size_t MetricDefinition::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.MetricDefinition)
   size_t total_size = 0;
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -1022,23 +1021,23 @@ size_t AlgorithmSpecification_MetricDefinition::ByteSizeLong() const {
   return total_size;
 }
 
-void AlgorithmSpecification_MetricDefinition::MergeFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+void MetricDefinition::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.MetricDefinition)
   GOOGLE_DCHECK_NE(&from, this);
-  const AlgorithmSpecification_MetricDefinition* source =
-      ::google::protobuf::DynamicCastToGenerated(
+  const MetricDefinition* source =
+      ::google::protobuf::DynamicCastToGenerated(
           &from);
   if (source == nullptr) {
-  // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+  // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.MetricDefinition)
     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
   } else {
-  // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+  // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.MetricDefinition)
     MergeFrom(*source);
   }
 }
 
-void AlgorithmSpecification_MetricDefinition::MergeFrom(const AlgorithmSpecification_MetricDefinition& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+void MetricDefinition::MergeFrom(const MetricDefinition& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.MetricDefinition)
   GOOGLE_DCHECK_NE(&from, this);
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   ::google::protobuf::uint32 cached_has_bits = 0;
@@ -1054,29 +1053,29 @@ void AlgorithmSpecification_MetricDefinition::MergeFrom(const AlgorithmSpecifica
   }
 }
 
-void AlgorithmSpecification_MetricDefinition::CopyFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+void MetricDefinition::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.MetricDefinition)
   if (&from == this) return;
   Clear();
   MergeFrom(from);
 }
 
-void AlgorithmSpecification_MetricDefinition::CopyFrom(const AlgorithmSpecification_MetricDefinition& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+void MetricDefinition::CopyFrom(const MetricDefinition& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.MetricDefinition)
   if (&from == this) return;
   Clear();
   MergeFrom(from);
 }
 
-bool AlgorithmSpecification_MetricDefinition::IsInitialized() const {
+bool MetricDefinition::IsInitialized() const {
   return true;
 }
 
-void AlgorithmSpecification_MetricDefinition::Swap(AlgorithmSpecification_MetricDefinition* other) {
+void MetricDefinition::Swap(MetricDefinition* other) {
   if (other == this) return;
   InternalSwap(other);
 }
-void AlgorithmSpecification_MetricDefinition::InternalSwap(AlgorithmSpecification_MetricDefinition* other) {
+void MetricDefinition::InternalSwap(MetricDefinition* other) {
   using std::swap;
   _internal_metadata_.Swap(&other->_internal_metadata_);
   name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
@@ -1085,7 +1084,7 @@ void AlgorithmSpecification_MetricDefinition::InternalSwap(AlgorithmSpecificatio
     GetArenaNoVirtual());
 }
 
-::google::protobuf::Metadata AlgorithmSpecification_MetricDefinition::GetMetadata() const {
+::google::protobuf::Metadata MetricDefinition::GetMetadata() const {
   ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto);
   return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages];
 }
@@ -1212,13 +1211,13 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char
         ptr += size;
         break;
       }
-      // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
+      // repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4;
       case 4: {
         if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
         do {
           ptr = ::google::protobuf::io::ReadSize(ptr, &size);
           GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
-          parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition::_InternalParse;
+          parser_till_end = ::flyteidl::plugins::sagemaker::MetricDefinition::_InternalParse;
           object = msg->add_metric_definitions();
           if (size > end - ptr) goto len_delim_till_end;
           ptr += size;
@@ -1305,7 +1304,7 @@ bool AlgorithmSpecification::MergePartialFromCodedStream(
         break;
       }
 
-      // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
+      // repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4;
       case 4: {
         if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
@@ -1365,7 +1364,7 @@ void AlgorithmSpecification::SerializeWithCachedSizes(
       3, this->algorithm_version(), output);
   }
 
-  // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
+  // repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4;
   for (unsigned int i = 0,
       n = static_cast(this->metric_definitions_size()); i < n; i++) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
@@ -1410,7 +1409,7 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi
         3, this->algorithm_version(), target);
   }
 
-  // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
+  // repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4;
   for (unsigned int i = 0,
       n = static_cast(this->metric_definitions_size()); i < n; i++) {
     target = ::google::protobuf::internal::WireFormatLite::
@@ -1439,7 +1438,7 @@ size_t AlgorithmSpecification::ByteSizeLong() const {
   // Prevent compiler warnings about cached_has_bits being unused
   (void) cached_has_bits;
 
-  // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
+  // repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4;
   {
     unsigned int count = static_cast(this->metric_definitions_size());
     total_size += 1UL * count;
@@ -2304,8 +2303,8 @@ template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::InputMode* Arena::C
 template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmName* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmName >(Arena* arena) {
   return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmName >(arena);
 }
-template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(Arena* arena) {
-  return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >(arena);
+template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::MetricDefinition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::MetricDefinition >(Arena* arena) {
+  return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::MetricDefinition >(arena);
 }
 template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(Arena* arena) {
   return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(arena);
diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h
index 7b5a149b1..fb8a5f421 100644
--- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h
+++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h
@@ -59,12 +59,12 @@ extern AlgorithmNameDefaultTypeInternal _AlgorithmName_default_instance_;
 class AlgorithmSpecification;
 class AlgorithmSpecificationDefaultTypeInternal;
 extern AlgorithmSpecificationDefaultTypeInternal _AlgorithmSpecification_default_instance_;
-class AlgorithmSpecification_MetricDefinition;
-class AlgorithmSpecification_MetricDefinitionDefaultTypeInternal;
-extern AlgorithmSpecification_MetricDefinitionDefaultTypeInternal _AlgorithmSpecification_MetricDefinition_default_instance_;
 class InputMode;
 class InputModeDefaultTypeInternal;
 extern InputModeDefaultTypeInternal _InputMode_default_instance_;
+class MetricDefinition;
+class MetricDefinitionDefaultTypeInternal;
+extern MetricDefinitionDefaultTypeInternal _MetricDefinition_default_instance_;
 class TrainingJob;
 class TrainingJobDefaultTypeInternal;
 extern TrainingJobDefaultTypeInternal _TrainingJob_default_instance_;
@@ -78,8 +78,8 @@ namespace google {
 namespace protobuf {
 template<> ::flyteidl::plugins::sagemaker::AlgorithmName* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmName>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(Arena*);
-template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::InputMode* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::InputMode>(Arena*);
+template<> ::flyteidl::plugins::sagemaker::MetricDefinition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::MetricDefinition>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobResourceConfig>(Arena*);
 }  // namespace protobuf
@@ -394,25 +394,25 @@ class AlgorithmName final :
 };
 // -------------------------------------------------------------------
 
-class AlgorithmSpecification_MetricDefinition final :
-    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) */ {
+class MetricDefinition final :
+    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.MetricDefinition) */ {
  public:
-  AlgorithmSpecification_MetricDefinition();
-  virtual ~AlgorithmSpecification_MetricDefinition();
+  MetricDefinition();
+  virtual ~MetricDefinition();
 
-  AlgorithmSpecification_MetricDefinition(const AlgorithmSpecification_MetricDefinition& from);
+  MetricDefinition(const MetricDefinition& from);
 
-  inline AlgorithmSpecification_MetricDefinition& operator=(const AlgorithmSpecification_MetricDefinition& from) {
+  inline MetricDefinition& operator=(const MetricDefinition& from) {
     CopyFrom(from);
     return *this;
   }
   #if LANG_CXX11
-  AlgorithmSpecification_MetricDefinition(AlgorithmSpecification_MetricDefinition&& from) noexcept
-    : AlgorithmSpecification_MetricDefinition() {
+  MetricDefinition(MetricDefinition&& from) noexcept
+    : MetricDefinition() {
     *this = ::std::move(from);
   }
 
-  inline AlgorithmSpecification_MetricDefinition& operator=(AlgorithmSpecification_MetricDefinition&& from) noexcept {
+  inline MetricDefinition& operator=(MetricDefinition&& from) noexcept {
     if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
       if (this != &from) InternalSwap(&from);
     } else {
@@ -424,34 +424,34 @@ class AlgorithmSpecification_MetricDefinition final :
   static const ::google::protobuf::Descriptor* descriptor() {
     return default_instance().GetDescriptor();
   }
-  static const AlgorithmSpecification_MetricDefinition& default_instance();
+  static const MetricDefinition& default_instance();
 
   static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
-  static inline const AlgorithmSpecification_MetricDefinition* internal_default_instance() {
-    return reinterpret_cast(
-               &_AlgorithmSpecification_MetricDefinition_default_instance_);
+  static inline const MetricDefinition* internal_default_instance() {
+    return reinterpret_cast(
+               &_MetricDefinition_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
     2;
 
-  void Swap(AlgorithmSpecification_MetricDefinition* other);
-  friend void swap(AlgorithmSpecification_MetricDefinition& a, AlgorithmSpecification_MetricDefinition& b) {
+  void Swap(MetricDefinition* other);
+  friend void swap(MetricDefinition& a, MetricDefinition& b) {
     a.Swap(&b);
   }
 
   // implements Message ----------------------------------------------
 
-  inline AlgorithmSpecification_MetricDefinition* New() const final {
-    return CreateMaybeMessage(nullptr);
+  inline MetricDefinition* New() const final {
+    return CreateMaybeMessage(nullptr);
   }
 
-  AlgorithmSpecification_MetricDefinition* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage(arena);
+  MetricDefinition* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage(arena);
   }
   void CopyFrom(const ::google::protobuf::Message& from) final;
   void MergeFrom(const ::google::protobuf::Message& from) final;
-  void CopyFrom(const AlgorithmSpecification_MetricDefinition& from);
-  void MergeFrom(const AlgorithmSpecification_MetricDefinition& from);
+  void CopyFrom(const MetricDefinition& from);
+  void MergeFrom(const MetricDefinition& from);
   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
   bool IsInitialized() const final;
 
@@ -473,7 +473,7 @@ class AlgorithmSpecification_MetricDefinition final :
   void SharedCtor();
   void SharedDtor();
   void SetCachedSize(int size) const final;
-  void InternalSwap(AlgorithmSpecification_MetricDefinition* other);
+  void InternalSwap(MetricDefinition* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
     return nullptr;
@@ -517,7 +517,7 @@ class AlgorithmSpecification_MetricDefinition final :
   ::std::string* release_regex();
   void set_allocated_regex(::std::string* regex);
 
-  // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition)
+  // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.MetricDefinition)
  private:
   class HasBitSetters;
 
@@ -622,20 +622,18 @@ class AlgorithmSpecification final :
 
   // nested types ----------------------------------------------------
 
-  typedef AlgorithmSpecification_MetricDefinition MetricDefinition;
-
   // accessors -------------------------------------------------------
 
-  // repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
+  // repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4;
   int metric_definitions_size() const;
   void clear_metric_definitions();
   static const int kMetricDefinitionsFieldNumber = 4;
-  ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* mutable_metric_definitions(int index);
-  ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >*
+  ::flyteidl::plugins::sagemaker::MetricDefinition* mutable_metric_definitions(int index);
+  ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::MetricDefinition >*
       mutable_metric_definitions();
-  const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& metric_definitions(int index) const;
-  ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* add_metric_definitions();
-  const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >&
+  const ::flyteidl::plugins::sagemaker::MetricDefinition& metric_definitions(int index) const;
+  ::flyteidl::plugins::sagemaker::MetricDefinition* add_metric_definitions();
+  const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::MetricDefinition >&
       metric_definitions() const;
 
   // string algorithm_version = 3;
@@ -669,7 +667,7 @@ class AlgorithmSpecification final :
   class HasBitSetters;
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
-  ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition > metric_definitions_;
+  ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::MetricDefinition > metric_definitions_;
   ::google::protobuf::internal::ArenaStringPtr algorithm_version_;
   int input_mode_;
   int algorithm_name_;
@@ -952,112 +950,112 @@ class TrainingJob final :
 
 // -------------------------------------------------------------------
 
-// AlgorithmSpecification_MetricDefinition
+// MetricDefinition
 
 // string name = 1;
-inline void AlgorithmSpecification_MetricDefinition::clear_name() {
+inline void MetricDefinition::clear_name() {
   name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
-inline const ::std::string& AlgorithmSpecification_MetricDefinition::name() const {
-  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name)
+inline const ::std::string& MetricDefinition::name() const {
+  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.MetricDefinition.name)
   return name_.GetNoArena();
 }
-inline void AlgorithmSpecification_MetricDefinition::set_name(const ::std::string& value) {
+inline void MetricDefinition::set_name(const ::std::string& value) {
   
   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
-  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name)
+  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.MetricDefinition.name)
 }
 #if LANG_CXX11
-inline void AlgorithmSpecification_MetricDefinition::set_name(::std::string&& value) {
+inline void MetricDefinition::set_name(::std::string&& value) {
   
   name_.SetNoArena(
     &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
-  // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name)
+  // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.MetricDefinition.name)
 }
 #endif
-inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value) {
+inline void MetricDefinition::set_name(const char* value) {
   GOOGLE_DCHECK(value != nullptr);
   
   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
-  // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name)
+  // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.MetricDefinition.name)
 }
-inline void AlgorithmSpecification_MetricDefinition::set_name(const char* value, size_t size) {
+inline void MetricDefinition::set_name(const char* value, size_t size) {
   
   name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
       ::std::string(reinterpret_cast(value), size));
-  // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name)
+  // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.MetricDefinition.name)
 }
-inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_name() {
+inline ::std::string* MetricDefinition::mutable_name() {
   
-  // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name)
+  // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.MetricDefinition.name)
   return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
-inline ::std::string* AlgorithmSpecification_MetricDefinition::release_name() {
-  // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name)
+inline ::std::string* MetricDefinition::release_name() {
+  // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.MetricDefinition.name)
   
   return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
-inline void AlgorithmSpecification_MetricDefinition::set_allocated_name(::std::string* name) {
+inline void MetricDefinition::set_allocated_name(::std::string* name) {
   if (name != nullptr) {
     
   } else {
     
   }
   name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
-  // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name)
+  // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.MetricDefinition.name)
 }
 
 // string regex = 2;
-inline void AlgorithmSpecification_MetricDefinition::clear_regex() {
+inline void MetricDefinition::clear_regex() {
   regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
-inline const ::std::string& AlgorithmSpecification_MetricDefinition::regex() const {
-  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex)
+inline const ::std::string& MetricDefinition::regex() const {
+  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.MetricDefinition.regex)
   return regex_.GetNoArena();
 }
-inline void AlgorithmSpecification_MetricDefinition::set_regex(const ::std::string& value) {
+inline void MetricDefinition::set_regex(const ::std::string& value) {
   
   regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
-  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex)
+  // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.MetricDefinition.regex)
 }
 #if LANG_CXX11
-inline void AlgorithmSpecification_MetricDefinition::set_regex(::std::string&& value) {
+inline void MetricDefinition::set_regex(::std::string&& value) {
   
   regex_.SetNoArena(
     &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
-  // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex)
+  // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.MetricDefinition.regex)
 }
 #endif
-inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value) {
+inline void MetricDefinition::set_regex(const char* value) {
   GOOGLE_DCHECK(value != nullptr);
   
   regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
-  // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex)
+  // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.MetricDefinition.regex)
 }
-inline void AlgorithmSpecification_MetricDefinition::set_regex(const char* value, size_t size) {
+inline void MetricDefinition::set_regex(const char* value, size_t size) {
   
   regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
       ::std::string(reinterpret_cast(value), size));
-  // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex)
+  // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.MetricDefinition.regex)
 }
-inline ::std::string* AlgorithmSpecification_MetricDefinition::mutable_regex() {
+inline ::std::string* MetricDefinition::mutable_regex() {
   
-  // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex)
+  // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.MetricDefinition.regex)
   return regex_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
-inline ::std::string* AlgorithmSpecification_MetricDefinition::release_regex() {
-  // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex)
+inline ::std::string* MetricDefinition::release_regex() {
+  // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.MetricDefinition.regex)
   
   return regex_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
-inline void AlgorithmSpecification_MetricDefinition::set_allocated_regex(::std::string* regex) {
+inline void MetricDefinition::set_allocated_regex(::std::string* regex) {
   if (regex != nullptr) {
     
   } else {
     
   }
   regex_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), regex);
-  // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex)
+  // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.MetricDefinition.regex)
 }
 
 // -------------------------------------------------------------------
@@ -1145,31 +1143,31 @@ inline void AlgorithmSpecification::set_allocated_algorithm_version(::std::strin
   // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version)
 }
 
-// repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4;
+// repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4;
 inline int AlgorithmSpecification::metric_definitions_size() const {
   return metric_definitions_.size();
 }
 inline void AlgorithmSpecification::clear_metric_definitions() {
   metric_definitions_.Clear();
 }
-inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::mutable_metric_definitions(int index) {
+inline ::flyteidl::plugins::sagemaker::MetricDefinition* AlgorithmSpecification::mutable_metric_definitions(int index) {
   // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions)
   return metric_definitions_.Mutable(index);
 }
-inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >*
+inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::MetricDefinition >*
 AlgorithmSpecification::mutable_metric_definitions() {
   // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions)
   return &metric_definitions_;
 }
-inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition& AlgorithmSpecification::metric_definitions(int index) const {
+inline const ::flyteidl::plugins::sagemaker::MetricDefinition& AlgorithmSpecification::metric_definitions(int index) const {
   // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions)
   return metric_definitions_.Get(index);
 }
-inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition* AlgorithmSpecification::add_metric_definitions() {
+inline ::flyteidl::plugins::sagemaker::MetricDefinition* AlgorithmSpecification::add_metric_definitions() {
   // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions)
   return metric_definitions_.Add();
 }
-inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::AlgorithmSpecification_MetricDefinition >&
+inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::MetricDefinition >&
 AlgorithmSpecification::metric_definitions() const {
   // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions)
   return metric_definitions_;
diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go
index 491b33a08..1bc9cf697 100644
--- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go
+++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go
@@ -133,6 +133,58 @@ func (m *AlgorithmName) XXX_DiscardUnknown() {
 
 var xxx_messageInfo_AlgorithmName proto.InternalMessageInfo
 
+// Specifies a metric that the training algorithm writes to stderr or stdout.
+// This object is a pass-through.
+// See this for details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_MetricDefinition.html
+type MetricDefinition struct {
+	// User-defined name of the metric
+	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+	// SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+	Regex                string   `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *MetricDefinition) Reset()         { *m = MetricDefinition{} }
+func (m *MetricDefinition) String() string { return proto.CompactTextString(m) }
+func (*MetricDefinition) ProtoMessage()    {}
+func (*MetricDefinition) Descriptor() ([]byte, []int) {
+	return fileDescriptor_6a68f64d8fd9fe30, []int{2}
+}
+
+func (m *MetricDefinition) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_MetricDefinition.Unmarshal(m, b)
+}
+func (m *MetricDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_MetricDefinition.Marshal(b, m, deterministic)
+}
+func (m *MetricDefinition) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_MetricDefinition.Merge(m, src)
+}
+func (m *MetricDefinition) XXX_Size() int {
+	return xxx_messageInfo_MetricDefinition.Size(m)
+}
+func (m *MetricDefinition) XXX_DiscardUnknown() {
+	xxx_messageInfo_MetricDefinition.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MetricDefinition proto.InternalMessageInfo
+
+func (m *MetricDefinition) GetName() string {
+	if m != nil {
+		return m.Name
+	}
+	return ""
+}
+
+func (m *MetricDefinition) GetRegex() string {
+	if m != nil {
+		return m.Regex
+	}
+	return ""
+}
+
 // Specifies the training algorithm to be used in the training job
 // This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify
 // TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm
@@ -150,18 +202,19 @@ type AlgorithmSpecification struct {
 	// This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
 	AlgorithmVersion string `protobuf:"bytes,3,opt,name=algorithm_version,json=algorithmVersion,proto3" json:"algorithm_version,omitempty"`
 	// A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-	// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
-	MetricDefinitions    []*AlgorithmSpecification_MetricDefinition `protobuf:"bytes,4,rep,name=metric_definitions,json=metricDefinitions,proto3" json:"metric_definitions,omitempty"`
-	XXX_NoUnkeyedLiteral struct{}                                   `json:"-"`
-	XXX_unrecognized     []byte                                     `json:"-"`
-	XXX_sizecache        int32                                      `json:"-"`
+	// See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+	// and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+	MetricDefinitions    []*MetricDefinition `protobuf:"bytes,4,rep,name=metric_definitions,json=metricDefinitions,proto3" json:"metric_definitions,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
+	XXX_unrecognized     []byte              `json:"-"`
+	XXX_sizecache        int32               `json:"-"`
 }
 
 func (m *AlgorithmSpecification) Reset()         { *m = AlgorithmSpecification{} }
 func (m *AlgorithmSpecification) String() string { return proto.CompactTextString(m) }
 func (*AlgorithmSpecification) ProtoMessage()    {}
 func (*AlgorithmSpecification) Descriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{2}
+	return fileDescriptor_6a68f64d8fd9fe30, []int{3}
 }
 
 func (m *AlgorithmSpecification) XXX_Unmarshal(b []byte) error {
@@ -203,64 +256,13 @@ func (m *AlgorithmSpecification) GetAlgorithmVersion() string {
 	return ""
 }
 
-func (m *AlgorithmSpecification) GetMetricDefinitions() []*AlgorithmSpecification_MetricDefinition {
+func (m *AlgorithmSpecification) GetMetricDefinitions() []*MetricDefinition {
 	if m != nil {
 		return m.MetricDefinitions
 	}
 	return nil
 }
 
-type AlgorithmSpecification_MetricDefinition struct {
-	// User-defined name of the metric
-	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
-	// SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
-	Regex                string   `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"`
-	XXX_NoUnkeyedLiteral struct{} `json:"-"`
-	XXX_unrecognized     []byte   `json:"-"`
-	XXX_sizecache        int32    `json:"-"`
-}
-
-func (m *AlgorithmSpecification_MetricDefinition) Reset() {
-	*m = AlgorithmSpecification_MetricDefinition{}
-}
-func (m *AlgorithmSpecification_MetricDefinition) String() string { return proto.CompactTextString(m) }
-func (*AlgorithmSpecification_MetricDefinition) ProtoMessage()    {}
-func (*AlgorithmSpecification_MetricDefinition) Descriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{2, 0}
-}
-
-func (m *AlgorithmSpecification_MetricDefinition) XXX_Unmarshal(b []byte) error {
-	return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Unmarshal(m, b)
-}
-func (m *AlgorithmSpecification_MetricDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
-	return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Marshal(b, m, deterministic)
-}
-func (m *AlgorithmSpecification_MetricDefinition) XXX_Merge(src proto.Message) {
-	xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Merge(m, src)
-}
-func (m *AlgorithmSpecification_MetricDefinition) XXX_Size() int {
-	return xxx_messageInfo_AlgorithmSpecification_MetricDefinition.Size(m)
-}
-func (m *AlgorithmSpecification_MetricDefinition) XXX_DiscardUnknown() {
-	xxx_messageInfo_AlgorithmSpecification_MetricDefinition.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_AlgorithmSpecification_MetricDefinition proto.InternalMessageInfo
-
-func (m *AlgorithmSpecification_MetricDefinition) GetName() string {
-	if m != nil {
-		return m.Name
-	}
-	return ""
-}
-
-func (m *AlgorithmSpecification_MetricDefinition) GetRegex() string {
-	if m != nil {
-		return m.Regex
-	}
-	return ""
-}
-
 // TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the
 // number of instances to launch, and the size of the ML storage volume the user wants to provision
 // Refer to SageMaker official doc for more details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
@@ -280,7 +282,7 @@ func (m *TrainingJobResourceConfig) Reset()         { *m = TrainingJobResourceCo
 func (m *TrainingJobResourceConfig) String() string { return proto.CompactTextString(m) }
 func (*TrainingJobResourceConfig) ProtoMessage()    {}
 func (*TrainingJobResourceConfig) Descriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{3}
+	return fileDescriptor_6a68f64d8fd9fe30, []int{4}
 }
 
 func (m *TrainingJobResourceConfig) XXX_Unmarshal(b []byte) error {
@@ -336,7 +338,7 @@ func (m *TrainingJob) Reset()         { *m = TrainingJob{} }
 func (m *TrainingJob) String() string { return proto.CompactTextString(m) }
 func (*TrainingJob) ProtoMessage()    {}
 func (*TrainingJob) Descriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{4}
+	return fileDescriptor_6a68f64d8fd9fe30, []int{5}
 }
 
 func (m *TrainingJob) XXX_Unmarshal(b []byte) error {
@@ -376,8 +378,8 @@ func init() {
 	proto.RegisterEnum("flyteidl.plugins.sagemaker.AlgorithmName_Value", AlgorithmName_Value_name, AlgorithmName_Value_value)
 	proto.RegisterType((*InputMode)(nil), "flyteidl.plugins.sagemaker.InputMode")
 	proto.RegisterType((*AlgorithmName)(nil), "flyteidl.plugins.sagemaker.AlgorithmName")
+	proto.RegisterType((*MetricDefinition)(nil), "flyteidl.plugins.sagemaker.MetricDefinition")
 	proto.RegisterType((*AlgorithmSpecification)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification")
-	proto.RegisterType((*AlgorithmSpecification_MetricDefinition)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition")
 	proto.RegisterType((*TrainingJobResourceConfig)(nil), "flyteidl.plugins.sagemaker.TrainingJobResourceConfig")
 	proto.RegisterType((*TrainingJob)(nil), "flyteidl.plugins.sagemaker.TrainingJob")
 }
@@ -387,39 +389,39 @@ func init() {
 }
 
 var fileDescriptor_6a68f64d8fd9fe30 = []byte{
-	// 537 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xd1, 0x6e, 0xd3, 0x30,
-	0x14, 0x5d, 0xe8, 0x36, 0xe8, 0x2d, 0xab, 0x52, 0x83, 0x46, 0x29, 0x12, 0xaa, 0x82, 0x90, 0x8a,
-	0xa6, 0x25, 0xa2, 0xd3, 0xde, 0x78, 0x61, 0x65, 0x4c, 0x9d, 0x28, 0x9d, 0xd2, 0x52, 0x21, 0x5e,
-	0x22, 0x27, 0xbd, 0xf1, 0xcc, 0x12, 0x3b, 0x4a, 0x9c, 0x89, 0xee, 0x33, 0x78, 0xe5, 0xeb, 0xf8,
-	0x13, 0x54, 0xb7, 0x49, 0xbb, 0x8a, 0x4d, 0xf0, 0xe6, 0x9e, 0x7b, 0x7c, 0xce, 0xbd, 0xa7, 0xbe,
-	0x81, 0xc3, 0x30, 0x9a, 0x29, 0xe4, 0xd3, 0xc8, 0x49, 0xa2, 0x9c, 0x71, 0x91, 0x39, 0x19, 0x65,
-	0x18, 0xd3, 0x2b, 0x4c, 0x1d, 0x95, 0x52, 0x2e, 0xb8, 0x60, 0xde, 0x77, 0xe9, 0xdb, 0x49, 0x2a,
-	0x95, 0x24, 0xad, 0x82, 0x6e, 0x2f, 0xe9, 0x76, 0x49, 0x6f, 0xbd, 0x64, 0x52, 0xb2, 0x08, 0x1d,
-	0xcd, 0xf4, 0xf3, 0xd0, 0x99, 0xe6, 0x29, 0x55, 0x5c, 0x8a, 0xc5, 0x5d, 0xab, 0x03, 0xd5, 0xbe,
-	0x48, 0x72, 0x35, 0x90, 0x53, 0xb4, 0x5e, 0xc0, 0xce, 0x84, 0x46, 0x39, 0x92, 0x47, 0xb0, 0xfd,
-	0xb1, 0xff, 0xe9, 0xd4, 0xdc, 0x9a, 0x9f, 0x2e, 0xfa, 0x17, 0xa7, 0xa6, 0x61, 0xbd, 0x85, 0xbd,
-	0xf7, 0x11, 0x93, 0x29, 0x57, 0x97, 0xf1, 0x67, 0x1a, 0xa3, 0xd5, 0x2e, 0xd8, 0x00, 0xbb, 0xbd,
-	0x2f, 0xa3, 0xf1, 0x70, 0x60, 0x6e, 0x91, 0x1a, 0x3c, 0xfc, 0x7a, 0x76, 0x32, 0x1c, 0x8e, 0xc6,
-	0xa6, 0x61, 0xfd, 0xaa, 0xc0, 0x7e, 0x79, 0x67, 0x94, 0x60, 0xc0, 0x43, 0x1e, 0x68, 0x77, 0x72,
-	0x0e, 0xc0, 0xe7, 0xbe, 0x5e, 0x2c, 0xa7, 0xd8, 0x34, 0xda, 0x46, 0xa7, 0xde, 0x3d, 0xb0, 0xef,
-	0x1e, 0xc4, 0x2e, 0xbb, 0xb4, 0xb5, 0xa9, 0x5b, 0xe5, 0x05, 0x40, 0x26, 0x50, 0xa7, 0x85, 0x8b,
-	0x27, 0x68, 0x8c, 0xcd, 0x07, 0x5a, 0xcf, 0xb9, 0x4f, 0xef, 0xd6, 0x2c, 0x4b, 0xcd, 0x3d, 0xba,
-	0x0e, 0x92, 0x03, 0x68, 0xac, 0x74, 0xaf, 0x31, 0xcd, 0xb8, 0x14, 0xcd, 0x4a, 0xdb, 0xe8, 0x54,
-	0x5d, 0xb3, 0x2c, 0x4c, 0x16, 0x38, 0x49, 0x81, 0xc4, 0xa8, 0x52, 0x1e, 0x78, 0x53, 0x0c, 0xb9,
-	0xe0, 0xf3, 0x29, 0xb3, 0xe6, 0x76, 0xbb, 0xd2, 0xa9, 0x75, 0x7b, 0xff, 0xd4, 0xc8, 0xad, 0x80,
-	0xec, 0x81, 0x16, 0xfb, 0x50, 0x6a, 0xb9, 0x8d, 0x78, 0x03, 0xc9, 0x5a, 0xef, 0xc0, 0xdc, 0xa4,
-	0x11, 0x02, 0xdb, 0x3a, 0x02, 0x43, 0xf7, 0xa9, 0xcf, 0xe4, 0x29, 0xec, 0xa4, 0xc8, 0xf0, 0x87,
-	0xce, 0xa5, 0xea, 0x2e, 0x7e, 0x58, 0x3f, 0x0d, 0x78, 0x3e, 0x5e, 0xbe, 0xa6, 0x73, 0xe9, 0xbb,
-	0x98, 0xc9, 0x3c, 0x0d, 0xb0, 0x27, 0x45, 0xc8, 0x19, 0x79, 0x0d, 0x75, 0x2e, 0x32, 0x45, 0x45,
-	0x80, 0x5e, 0x20, 0x73, 0xa1, 0xb4, 0x62, 0xc5, 0xdd, 0x2b, 0xd0, 0xde, 0x1c, 0x24, 0xaf, 0xa0,
-	0x04, 0x3c, 0x35, 0x4b, 0x70, 0x69, 0xf1, 0xb8, 0x00, 0xc7, 0xb3, 0x04, 0xc9, 0x1b, 0x68, 0x5c,
-	0xcb, 0x28, 0x8f, 0xd1, 0xcb, 0xf8, 0x0d, 0x7a, 0x5c, 0x78, 0xcc, 0xd7, 0x41, 0x56, 0xdc, 0xfa,
-	0xa2, 0x30, 0xe2, 0x37, 0xd8, 0x17, 0x67, 0xbe, 0xf5, 0xdb, 0x80, 0xda, 0x5a, 0x53, 0xe4, 0x0a,
-	0x9e, 0xad, 0xfe, 0x83, 0x6c, 0x3d, 0x21, 0xdd, 0x4f, 0xad, 0xdb, 0xfd, 0xff, 0x6c, 0xdd, 0x7d,
-	0xfa, 0xf7, 0x47, 0x89, 0xf0, 0x64, 0x7d, 0xbd, 0xbc, 0x40, 0x47, 0xa1, 0x47, 0xaa, 0x75, 0x8f,
-	0xef, 0x33, 0xba, 0x33, 0x47, 0xb7, 0xa1, 0x56, 0xa5, 0x05, 0x74, 0x72, 0xfc, 0xed, 0x88, 0x71,
-	0x75, 0x99, 0xfb, 0x76, 0x20, 0x63, 0x27, 0x9a, 0x85, 0xca, 0x29, 0x17, 0x9e, 0xa1, 0x70, 0x12,
-	0xff, 0x90, 0x49, 0x67, 0xf3, 0x1b, 0xe0, 0xef, 0xea, 0x8d, 0x3d, 0xfa, 0x13, 0x00, 0x00, 0xff,
-	0xff, 0xce, 0x40, 0x90, 0x4e, 0x1e, 0x04, 0x00, 0x00,
+	// 535 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x51, 0x6e, 0xd3, 0x40,
+	0x10, 0xad, 0x9b, 0xb6, 0x90, 0x09, 0x89, 0x9c, 0x05, 0x95, 0x50, 0x24, 0x14, 0x19, 0x21, 0x05,
+	0x95, 0xda, 0x22, 0x55, 0xff, 0xf8, 0xa1, 0xa1, 0x54, 0xa9, 0x08, 0xa9, 0x9c, 0x10, 0x21, 0xf8,
+	0xb0, 0x6c, 0x67, 0xbc, 0x5d, 0x6a, 0xef, 0x5a, 0xf6, 0xba, 0x22, 0x3d, 0x06, 0x87, 0xe2, 0x1e,
+	0xdc, 0x04, 0x65, 0x1d, 0x3b, 0x69, 0x44, 0x23, 0xfe, 0xd6, 0x6f, 0xc6, 0x6f, 0xde, 0xbc, 0x99,
+	0x81, 0xa3, 0x20, 0x9c, 0x49, 0x64, 0xd3, 0xd0, 0x8a, 0xc3, 0x8c, 0x32, 0x9e, 0x5a, 0xa9, 0x4b,
+	0x31, 0x72, 0xaf, 0x31, 0xb1, 0x64, 0xe2, 0x32, 0xce, 0x38, 0x75, 0x7e, 0x08, 0xcf, 0x8c, 0x13,
+	0x21, 0x05, 0x39, 0x28, 0xd2, 0xcd, 0x45, 0xba, 0x59, 0xa6, 0x1f, 0xbc, 0xa0, 0x42, 0xd0, 0x10,
+	0x2d, 0x95, 0xe9, 0x65, 0x81, 0x35, 0xcd, 0x12, 0x57, 0x32, 0xc1, 0xf3, 0x7f, 0x8d, 0x0e, 0x54,
+	0xfb, 0x3c, 0xce, 0xe4, 0x40, 0x4c, 0xd1, 0x78, 0x0e, 0xbb, 0x13, 0x37, 0xcc, 0x90, 0x3c, 0x84,
+	0x9d, 0x8f, 0xfd, 0x4f, 0x67, 0xfa, 0xd6, 0xfc, 0x75, 0xd9, 0xbf, 0x3c, 0xd3, 0x35, 0xe3, 0x2d,
+	0xd4, 0xdf, 0x87, 0x54, 0x24, 0x4c, 0x5e, 0x45, 0x9f, 0xdd, 0x08, 0x8d, 0x76, 0x91, 0x0d, 0xb0,
+	0xd7, 0xfb, 0x32, 0x1a, 0x0f, 0x07, 0xfa, 0x16, 0xa9, 0xc1, 0x83, 0xaf, 0xe7, 0xa7, 0xc3, 0xe1,
+	0x68, 0xac, 0x6b, 0xc6, 0x3b, 0xd0, 0x07, 0x28, 0x13, 0xe6, 0x7f, 0xc0, 0x80, 0x71, 0x36, 0x2f,
+	0x4b, 0x08, 0xec, 0x70, 0x37, 0xc2, 0x96, 0xd6, 0xd6, 0x3a, 0x55, 0x5b, 0xbd, 0xc9, 0x13, 0xd8,
+	0x4d, 0x90, 0xe2, 0xcf, 0xd6, 0xb6, 0x02, 0xf3, 0x0f, 0xe3, 0xf7, 0x36, 0xec, 0x97, 0x15, 0x47,
+	0x31, 0xfa, 0x2c, 0x60, 0xbe, 0xd2, 0x4e, 0x2e, 0x00, 0xd8, 0x5c, 0xb5, 0x13, 0x89, 0x69, 0x4e,
+	0xd5, 0xe8, 0x1e, 0x9a, 0xf7, 0xdb, 0x60, 0x96, 0x3d, 0x9a, 0x4a, 0xb2, 0x5d, 0x65, 0x05, 0x40,
+	0x26, 0xd0, 0x70, 0x8b, 0x2a, 0x8e, 0x92, 0xb6, 0xad, 0xf8, 0xac, 0x4d, 0x7c, 0x77, 0x9c, 0x58,
+	0x70, 0xd6, 0xdd, 0x55, 0x90, 0x1c, 0x42, 0x73, 0xc9, 0x7b, 0x83, 0x49, 0xca, 0x04, 0x6f, 0x55,
+	0x54, 0x83, 0x7a, 0x19, 0x98, 0xe4, 0x38, 0xf9, 0x0e, 0x24, 0x52, 0x4e, 0x39, 0xd3, 0xd2, 0xaa,
+	0xb4, 0xb5, 0xd3, 0xae, 0x74, 0x6a, 0xdd, 0x37, 0x9b, 0x84, 0xac, 0xfb, 0x6b, 0x37, 0xa3, 0x35,
+	0x24, 0x35, 0x7e, 0x69, 0xf0, 0x6c, 0xbc, 0x58, 0x9b, 0x0b, 0xe1, 0xd9, 0x98, 0x8a, 0x2c, 0xf1,
+	0xb1, 0x27, 0x78, 0xc0, 0x28, 0x79, 0x05, 0x0d, 0xc6, 0x53, 0xe9, 0x72, 0x1f, 0x1d, 0x5f, 0x64,
+	0x5c, 0x2a, 0x3f, 0x2b, 0x76, 0xbd, 0x40, 0x7b, 0x73, 0x90, 0xbc, 0x84, 0x12, 0x70, 0xe4, 0x2c,
+	0xc6, 0xc5, 0xac, 0x1e, 0x15, 0xe0, 0x78, 0x16, 0x23, 0x79, 0x0d, 0xcd, 0x1b, 0x11, 0x66, 0x11,
+	0x3a, 0x29, 0xbb, 0x45, 0x87, 0x71, 0x87, 0x7a, 0xaa, 0xe7, 0x8a, 0xdd, 0xc8, 0x03, 0x23, 0x76,
+	0x8b, 0x7d, 0x7e, 0xee, 0x19, 0x7f, 0x34, 0xa8, 0xad, 0x88, 0x22, 0xd7, 0xf0, 0x74, 0x69, 0x57,
+	0xba, 0x3a, 0x6d, 0xa5, 0xa7, 0xd6, 0xed, 0xfe, 0xd7, 0x3c, 0xee, 0xec, 0x89, 0xbd, 0xef, 0xfe,
+	0x7b, 0x7f, 0x10, 0x1e, 0xaf, 0xde, 0x91, 0xe3, 0x2b, 0x2b, 0x54, 0x4b, 0xb5, 0xee, 0xc9, 0xa6,
+	0x42, 0xf7, 0xfa, 0x68, 0x37, 0xe5, 0x32, 0x94, 0x43, 0xa7, 0x27, 0xdf, 0x8e, 0x29, 0x93, 0x57,
+	0x99, 0x67, 0xfa, 0x22, 0xb2, 0xc2, 0x59, 0x20, 0xad, 0xf2, 0xb2, 0x29, 0x72, 0x2b, 0xf6, 0x8e,
+	0xa8, 0xb0, 0xd6, 0x8f, 0xdd, 0xdb, 0x53, 0xa7, 0x79, 0xfc, 0x37, 0x00, 0x00, 0xff, 0xff, 0x0d,
+	0x05, 0xfa, 0x06, 0x07, 0x04, 0x00, 0x00,
 }
diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go
index ecf14e74d..b8d94d6f3 100644
--- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go
+++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go
@@ -165,6 +165,75 @@ var _ interface {
 	ErrorName() string
 } = AlgorithmNameValidationError{}
 
+// Validate checks the field values on MetricDefinition with the rules defined
+// in the proto definition for this message. If any rules are violated, an
+// error is returned.
+func (m *MetricDefinition) Validate() error {
+	if m == nil {
+		return nil
+	}
+
+	// no validation rules for Name
+
+	// no validation rules for Regex
+
+	return nil
+}
+
+// MetricDefinitionValidationError is the validation error returned by
+// MetricDefinition.Validate if the designated constraints aren't met.
+type MetricDefinitionValidationError struct {
+	field  string
+	reason string
+	cause  error
+	key    bool
+}
+
+// Field function returns field value.
+func (e MetricDefinitionValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e MetricDefinitionValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e MetricDefinitionValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e MetricDefinitionValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e MetricDefinitionValidationError) ErrorName() string { return "MetricDefinitionValidationError" }
+
+// Error satisfies the builtin error interface
+func (e MetricDefinitionValidationError) Error() string {
+	cause := ""
+	if e.cause != nil {
+		cause = fmt.Sprintf(" | caused by: %v", e.cause)
+	}
+
+	key := ""
+	if e.key {
+		key = "key for "
+	}
+
+	return fmt.Sprintf(
+		"invalid %sMetricDefinition.%s: %s%s",
+		key,
+		e.field,
+		e.reason,
+		cause)
+}
+
+var _ error = MetricDefinitionValidationError{}
+
+var _ interface {
+	Field() string
+	Reason() string
+	Key() bool
+	Cause() error
+	ErrorName() string
+} = MetricDefinitionValidationError{}
+
 // Validate checks the field values on AlgorithmSpecification with the rules
 // defined in the proto definition for this message. If any rules are
 // violated, an error is returned.
@@ -410,75 +479,3 @@ var _ interface {
 	Cause() error
 	ErrorName() string
 } = TrainingJobValidationError{}
-
-// Validate checks the field values on AlgorithmSpecification_MetricDefinition
-// with the rules defined in the proto definition for this message. If any
-// rules are violated, an error is returned.
-func (m *AlgorithmSpecification_MetricDefinition) Validate() error {
-	if m == nil {
-		return nil
-	}
-
-	// no validation rules for Name
-
-	// no validation rules for Regex
-
-	return nil
-}
-
-// AlgorithmSpecification_MetricDefinitionValidationError is the validation
-// error returned by AlgorithmSpecification_MetricDefinition.Validate if the
-// designated constraints aren't met.
-type AlgorithmSpecification_MetricDefinitionValidationError struct {
-	field  string
-	reason string
-	cause  error
-	key    bool
-}
-
-// Field function returns field value.
-func (e AlgorithmSpecification_MetricDefinitionValidationError) Field() string { return e.field }
-
-// Reason function returns reason value.
-func (e AlgorithmSpecification_MetricDefinitionValidationError) Reason() string { return e.reason }
-
-// Cause function returns cause value.
-func (e AlgorithmSpecification_MetricDefinitionValidationError) Cause() error { return e.cause }
-
-// Key function returns key value.
-func (e AlgorithmSpecification_MetricDefinitionValidationError) Key() bool { return e.key }
-
-// ErrorName returns error name.
-func (e AlgorithmSpecification_MetricDefinitionValidationError) ErrorName() string {
-	return "AlgorithmSpecification_MetricDefinitionValidationError"
-}
-
-// Error satisfies the builtin error interface
-func (e AlgorithmSpecification_MetricDefinitionValidationError) Error() string {
-	cause := ""
-	if e.cause != nil {
-		cause = fmt.Sprintf(" | caused by: %v", e.cause)
-	}
-
-	key := ""
-	if e.key {
-		key = "key for "
-	}
-
-	return fmt.Sprintf(
-		"invalid %sAlgorithmSpecification_MetricDefinition.%s: %s%s",
-		key,
-		e.field,
-		e.reason,
-		cause)
-}
-
-var _ error = AlgorithmSpecification_MetricDefinitionValidationError{}
-
-var _ interface {
-	Field() string
-	Reason() string
-	Key() bool
-	Cause() error
-	ErrorName() string
-} = AlgorithmSpecification_MetricDefinitionValidationError{}
diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java
index b3db54aa2..cde8384cc 100644
--- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java
+++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java
@@ -1032,142 +1032,67 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getDefault
 
   }
 
-  public interface AlgorithmSpecificationOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification)
+  public interface MetricDefinitionOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.MetricDefinition)
       com.google.protobuf.MessageOrBuilder {
 
     /**
      * 
-     * The input mode can be either PIPE or FILE
-     * 
- * - * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; - */ - int getInputModeValue(); - /** - *
-     * The input mode can be either PIPE or FILE
-     * 
- * - * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value getInputMode(); - - /** - *
-     * The algorithm name is used for deciding which pre-built image to point to
-     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
-     * 
- * - * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; - */ - int getAlgorithmNameValue(); - /** - *
-     * The algorithm name is used for deciding which pre-built image to point to
-     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
-     * 
- * - * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value getAlgorithmName(); - - /** - *
-     * The algorithm version field is used for deciding which pre-built image to point to
-     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * User-defined name of the metric
      * 
* - * string algorithm_version = 3; + * string name = 1; */ - java.lang.String getAlgorithmVersion(); + java.lang.String getName(); /** *
-     * The algorithm version field is used for deciding which pre-built image to point to
-     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * User-defined name of the metric
      * 
* - * string algorithm_version = 3; + * string name = 1; */ com.google.protobuf.ByteString - getAlgorithmVersionBytes(); + getNameBytes(); /** *
-     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
-     * 
- * - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - java.util.List - getMetricDefinitionsList(); - /** - *
-     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
-     * 
- * - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index); - /** - *
-     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
-     * 
- * - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; - */ - int getMetricDefinitionsCount(); - /** - *
-     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
      * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * string regex = 2; */ - java.util.List - getMetricDefinitionsOrBuilderList(); + java.lang.String getRegex(); /** *
-     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
      * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * string regex = 2; */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( - int index); + com.google.protobuf.ByteString + getRegexBytes(); } /** *
-   * Specifies the training algorithm to be used in the training job
-   * This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify
-   * TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm
-   * name and an algorithm version or (2) when users want to supply custom algorithms they should set algorithm_name field to
-   * CUSTOM. In this case, the value of the algorithm_version field has no effect
-   * For pass-through use cases: refer to this AWS official document for more details
-   * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+   * Specifies a metric that the training algorithm writes to stderr or stdout.
+   * This object is a pass-through.
+   * See this for details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_MetricDefinition.html
    * 
* - * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} + * Protobuf type {@code flyteidl.plugins.sagemaker.MetricDefinition} */ - public static final class AlgorithmSpecification extends + public static final class MetricDefinition extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) - AlgorithmSpecificationOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.MetricDefinition) + MetricDefinitionOrBuilder { private static final long serialVersionUID = 0L; - // Use AlgorithmSpecification.newBuilder() to construct. - private AlgorithmSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use MetricDefinition.newBuilder() to construct. + private MetricDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AlgorithmSpecification() { - inputMode_ = 0; - algorithmName_ = 0; - algorithmVersion_ = ""; - metricDefinitions_ = java.util.Collections.emptyList(); + private MetricDefinition() { + name_ = ""; + regex_ = ""; } @java.lang.Override @@ -1175,7 +1100,7 @@ private AlgorithmSpecification() { getUnknownFields() { return this.unknownFields; } - private AlgorithmSpecification( + private MetricDefinition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1194,31 +1119,16 @@ private AlgorithmSpecification( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - inputMode_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - algorithmName_ = rawValue; + name_ = s; break; } - case 26: { + case 18: { java.lang.String s = input.readStringRequireUtf8(); - algorithmVersion_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - metricDefinitions_.add( - input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.parser(), extensionRegistry)); + regex_ = s; break; } default: { @@ -1236,154 +1146,434 @@ private AlgorithmSpecification( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_MetricDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder.class); } - public interface MetricDefinitionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * User-defined name of the metric
-       * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-       * User-defined name of the metric
-       * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * User-defined name of the metric
+     * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+     * User-defined name of the metric
+     * 
+ * + * string name = 1; + */ + 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; + } + } - /** - *
-       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
-       * 
- * - * string regex = 2; - */ - java.lang.String getRegex(); - /** - *
-       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
-       * 
- * - * string regex = 2; - */ - com.google.protobuf.ByteString - getRegexBytes(); + public static final int REGEX_FIELD_NUMBER = 2; + private volatile java.lang.Object regex_; + /** + *
+     * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+     * 
+ * + * string regex = 2; + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + 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(); + regex_ = s; + return s; + } } /** - * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition} + *
+     * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+     * 
+ * + * string regex = 2; */ - public static final class MetricDefinition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - MetricDefinitionOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetricDefinition.newBuilder() to construct. - private MetricDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MetricDefinition() { - name_ = ""; - regex_ = ""; + public com.google.protobuf.ByteString + getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - private MetricDefinition( - 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(); + if (!getRegexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regex_); + } + unknownFields.writeTo(output); + } - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - regex_ = 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(); - } + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + if (!getRegexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regex_); } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition)) { + return super.equals(obj); } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition) obj; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** + if (!getName() + .equals(other.getName())) return false; + if (!getRegex() + .equals(other.getRegex())) 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) + REGEX_FIELD_NUMBER; + hash = (53 * hash) + getRegex().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition 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; + } + /** + *
+     * Specifies a metric that the training algorithm writes to stderr or stdout.
+     * This object is a pass-through.
+     * See this for details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_MetricDefinition.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.MetricDefinition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.MetricDefinition) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_MetricDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.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_ = ""; + + regex_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition(this); + result.name_ = name_; + result.regex_ = regex_; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRegex().isEmpty()) { + regex_ = other.regex_; + 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 { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** *
        * User-defined name of the metric
        * 
@@ -1392,14 +1582,14 @@ private MetricDefinition( */ 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 = + 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; } } /** @@ -1412,7 +1602,7 @@ public java.lang.String getName() { public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { + if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); @@ -1422,9 +1612,56 @@ public java.lang.String getName() { return (com.google.protobuf.ByteString) ref; } } + /** + *
+       * User-defined name of the metric
+       * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User-defined name of the metric
+       * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User-defined name of the metric
+       * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } - public static final int REGEX_FIELD_NUMBER = 2; - private volatile java.lang.Object regex_; + private java.lang.Object regex_ = ""; /** *
        * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
@@ -1434,14 +1671,14 @@ public java.lang.String getName() {
        */
       public java.lang.String getRegex() {
         java.lang.Object ref = regex_;
-        if (ref instanceof java.lang.String) {
-          return (java.lang.String) ref;
-        } else {
-          com.google.protobuf.ByteString bs = 
+        if (!(ref instanceof java.lang.String)) {
+          com.google.protobuf.ByteString bs =
               (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           regex_ = s;
           return s;
+        } else {
+          return (java.lang.String) ref;
         }
       }
       /**
@@ -1454,7 +1691,7 @@ public java.lang.String getRegex() {
       public com.google.protobuf.ByteString
           getRegexBytes() {
         java.lang.Object ref = regex_;
-        if (ref instanceof java.lang.String) {
+        if (ref instanceof String) {
           com.google.protobuf.ByteString b = 
               com.google.protobuf.ByteString.copyFromUtf8(
                   (java.lang.String) ref);
@@ -1464,554 +1701,334 @@ public java.lang.String getRegex() {
           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 (!getNameBytes().isEmpty()) {
-          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
-        }
-        if (!getRegexBytes().isEmpty()) {
-          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regex_);
-        }
-        unknownFields.writeTo(output);
-      }
-
-      @java.lang.Override
-      public int getSerializedSize() {
-        int size = memoizedSize;
-        if (size != -1) return size;
-
-        size = 0;
-        if (!getNameBytes().isEmpty()) {
-          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
-        }
-        if (!getRegexBytes().isEmpty()) {
-          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regex_);
-        }
-        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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)) {
-          return super.equals(obj);
-        }
-        flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) obj;
-
-        if (!getName()
-            .equals(other.getName())) return false;
-        if (!getRegex()
-            .equals(other.getRegex())) 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) + REGEX_FIELD_NUMBER;
-        hash = (53 * hash) + getRegex().hashCode();
-        hash = (29 * hash) + unknownFields.hashCode();
-        memoizedHashCode = hash;
-        return hash;
-      }
-
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
-          java.nio.ByteBuffer data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
-          java.nio.ByteBuffer data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data, extensionRegistry);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
-          com.google.protobuf.ByteString data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
-          com.google.protobuf.ByteString data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data, extensionRegistry);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(byte[] data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
-          byte[] data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data, extensionRegistry);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseDelimitedFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseDelimitedWithIOException(PARSER, input);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parseFrom(
-          com.google.protobuf.CodedInputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
-      }
-      public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition 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 flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition}
+       * 
+       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+       * 
+ * + * string regex = 2; */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder.class); - } - - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.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_ = ""; - - regex_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(this); - result.name_ = name_; - result.regex_ = regex_; - 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getRegex().isEmpty()) { - regex_ = other.regex_; - 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 { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-         * User-defined name of the metric
-         * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-         * User-defined name of the metric
-         * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-         * User-defined name of the metric
-         * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-         * User-defined name of the metric
-         * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-         * User-defined name of the metric
-         * 
- * - * string name = 1; - */ - 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 regex_ = ""; - /** - *
-         * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
-         * 
- * - * string regex = 2; - */ - public java.lang.String getRegex() { - java.lang.Object ref = regex_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - regex_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-         * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
-         * 
- * - * string regex = 2; - */ - public com.google.protobuf.ByteString - getRegexBytes() { - java.lang.Object ref = regex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - regex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-         * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
-         * 
- * - * string regex = 2; - */ - public Builder setRegex( - java.lang.String value) { - if (value == null) { + public Builder setRegex( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } - regex_ = value; - onChanged(); - return this; - } - /** - *
-         * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
-         * 
- * - * string regex = 2; - */ - public Builder clearRegex() { - - regex_ = getDefaultInstance().getRegex(); - onChanged(); - return this; - } - /** - *
-         * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
-         * 
- * - * string regex = 2; - */ - public Builder setRegexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { + regex_ = value; + onChanged(); + return this; + } + /** + *
+       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+       * 
+ * + * string regex = 2; + */ + public Builder clearRegex() { + + regex_ = getDefaultInstance().getRegex(); + onChanged(); + return this; + } + /** + *
+       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+       * 
+ * + * string regex = 2; + */ + public Builder setRegexBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - - regex_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } + + regex_ = 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); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - } + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.MetricDefinition) + } - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition(); - } + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.MetricDefinition) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstance() { - return DEFAULT_INSTANCE; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricDefinition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MetricDefinition(input, extensionRegistry); } + }; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricDefinition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricDefinition(input, extensionRegistry); - } - }; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AlgorithmSpecificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The input mode can be either PIPE or FILE
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + */ + int getInputModeValue(); + /** + *
+     * The input mode can be either PIPE or FILE
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value getInputMode(); + + /** + *
+     * The algorithm name is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + */ + int getAlgorithmNameValue(); + /** + *
+     * The algorithm name is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value getAlgorithmName(); + + /** + *
+     * The algorithm version field is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * + * string algorithm_version = 3; + */ + java.lang.String getAlgorithmVersion(); + /** + *
+     * The algorithm version field is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * + * string algorithm_version = 3; + */ + com.google.protobuf.ByteString + getAlgorithmVersionBytes(); + + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + java.util.List + getMetricDefinitionsList(); + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition getMetricDefinitions(int index); + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + int getMetricDefinitionsCount(); + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + java.util.List + getMetricDefinitionsOrBuilderList(); + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index); + } + /** + *
+   * Specifies the training algorithm to be used in the training job
+   * This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify
+   * TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm
+   * name and an algorithm version or (2) when users want to supply custom algorithms they should set algorithm_name field to
+   * CUSTOM. In this case, the value of the algorithm_version field has no effect
+   * For pass-through use cases: refer to this AWS official document for more details
+   * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} + */ + public static final class AlgorithmSpecification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) + AlgorithmSpecificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlgorithmSpecification.newBuilder() to construct. + private AlgorithmSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlgorithmSpecification() { + inputMode_ = 0; + algorithmName_ = 0; + algorithmVersion_ = ""; + metricDefinitions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AlgorithmSpecification( + 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 8: { + int rawValue = input.readEnum(); - @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + inputMode_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + algorithmName_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + algorithmVersion_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + metricDefinitions_.add( + input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.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_ & 0x00000008) != 0)) { + metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); } private int bitField0_; @@ -2112,37 +2129,40 @@ public java.lang.String getAlgorithmVersion() { } public static final int METRIC_DEFINITIONS_FIELD_NUMBER = 4; - private java.util.List metricDefinitions_; + private java.util.List metricDefinitions_; /** *
      * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
      * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ - public java.util.List getMetricDefinitionsList() { + public java.util.List getMetricDefinitionsList() { return metricDefinitions_; } /** *
      * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
      * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ - public java.util.List + public java.util.List getMetricDefinitionsOrBuilderList() { return metricDefinitions_; } /** *
      * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
      * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ public int getMetricDefinitionsCount() { return metricDefinitions_.size(); @@ -2150,23 +2170,25 @@ public int getMetricDefinitionsCount() { /** *
      * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
      * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition getMetricDefinitions(int index) { return metricDefinitions_.get(index); } /** *
      * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
      * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index) { return metricDefinitions_.get(index); } @@ -2803,27 +2825,28 @@ public Builder setAlgorithmVersionBytes( return this; } - private java.util.List metricDefinitions_ = + private java.util.List metricDefinitions_ = java.util.Collections.emptyList(); private void ensureMetricDefinitionsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); + metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ - public java.util.List getMetricDefinitionsList() { + public java.util.List getMetricDefinitionsList() { if (metricDefinitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(metricDefinitions_); } else { @@ -2833,10 +2856,11 @@ public java.util.List * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job - * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html + * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html + * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html *
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ public int getMetricDefinitionsCount() { if (metricDefinitionsBuilder_ == null) { @@ -2848,12 +2872,13 @@ public int getMetricDefinitionsCount() { /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition getMetricDefinitions(int index) { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition getMetricDefinitions(int index) { if (metricDefinitionsBuilder_ == null) { return metricDefinitions_.get(index); } else { @@ -2863,13 +2888,14 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.M /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ public Builder setMetricDefinitions( - int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition value) { if (metricDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2885,13 +2911,14 @@ public Builder setMetricDefinitions( /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ public Builder setMetricDefinitions( - int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder builderForValue) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); metricDefinitions_.set(index, builderForValue.build()); @@ -2904,12 +2931,13 @@ public Builder setMetricDefinitions( /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ - public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { + public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition value) { if (metricDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2925,13 +2953,14 @@ public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.TrainingJobOuterC /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions( - int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition value) { + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition value) { if (metricDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2947,13 +2976,14 @@ public Builder addMetricDefinitions( /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder builderForValue) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); metricDefinitions_.add(builderForValue.build()); @@ -2966,13 +2996,14 @@ public Builder addMetricDefinitions( /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ public Builder addMetricDefinitions( - int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder builderForValue) { + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder builderForValue) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); metricDefinitions_.add(index, builderForValue.build()); @@ -2985,13 +3016,14 @@ public Builder addMetricDefinitions( /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ public Builder addAllMetricDefinitions( - java.lang.Iterable values) { + java.lang.Iterable values) { if (metricDefinitionsBuilder_ == null) { ensureMetricDefinitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -3005,10 +3037,11 @@ public Builder addAllMetricDefinitions( /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ public Builder clearMetricDefinitions() { if (metricDefinitionsBuilder_ == null) { @@ -3023,10 +3056,11 @@ public Builder clearMetricDefinitions() { /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ public Builder removeMetricDefinitions(int index) { if (metricDefinitionsBuilder_ == null) { @@ -3041,24 +3075,26 @@ public Builder removeMetricDefinitions(int index) { /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder getMetricDefinitionsBuilder( + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder getMetricDefinitionsBuilder( int index) { return getMetricDefinitionsFieldBuilder().getBuilder(index); } /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index) { if (metricDefinitionsBuilder_ == null) { return metricDefinitions_.get(index); } else { @@ -3068,12 +3104,13 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.M /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ - public java.util.List + public java.util.List getMetricDefinitionsOrBuilderList() { if (metricDefinitionsBuilder_ != null) { return metricDefinitionsBuilder_.getMessageOrBuilderList(); @@ -3084,46 +3121,49 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.M /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder addMetricDefinitionsBuilder() { return getMetricDefinitionsFieldBuilder().addBuilder( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.getDefaultInstance()); } /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder addMetricDefinitionsBuilder( + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder addMetricDefinitionsBuilder( int index) { return getMetricDefinitionsFieldBuilder().addBuilder( - index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.getDefaultInstance()); + index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.getDefaultInstance()); } /** *
        * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
        * 
* - * repeated .flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition metric_definitions = 4; + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; */ - public java.util.List + public java.util.List getMetricDefinitionsBuilderList() { return getMetricDefinitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder> + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder> getMetricDefinitionsFieldBuilder() { if (metricDefinitionsBuilder_ == null) { metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.MetricDefinitionOrBuilder>( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder>( metricDefinitions_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -4769,15 +4809,15 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_plugins_sagemaker_AlgorithmName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_MetricDefinition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor; + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor; private static final @@ -4802,24 +4842,23 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn "gle/protobuf/duration.proto\"(\n\tInputMode" + "\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n\rAlgorit" + "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001" + - "\"\317\002\n\026AlgorithmSpecification\022?\n\ninput_mod" + - "e\030\001 \001(\0162+.flyteidl.plugins.sagemaker.Inp" + - "utMode.Value\022G\n\016algorithm_name\030\002 \001(\0162/.f" + - "lyteidl.plugins.sagemaker.AlgorithmName." + - "Value\022\031\n\021algorithm_version\030\003 \001(\t\022_\n\022metr" + - "ic_definitions\030\004 \003(\0132C.flyteidl.plugins." + - "sagemaker.AlgorithmSpecification.MetricD" + - "efinition\032/\n\020MetricDefinition\022\014\n\004name\030\001 " + - "\001(\t\022\r\n\005regex\030\002 \001(\t\"e\n\031TrainingJobResourc" + - "eConfig\022\026\n\016instance_count\030\001 \001(\003\022\025\n\rinsta" + - "nce_type\030\002 \001(\t\022\031\n\021volume_size_in_gb\030\003 \001(" + - "\003\"\266\001\n\013TrainingJob\022S\n\027algorithm_specifica" + - "tion\030\001 \001(\01322.flyteidl.plugins.sagemaker." + - "AlgorithmSpecification\022R\n\023training_job_c" + - "onfig\030\002 \001(\01325.flyteidl.plugins.sagemaker" + - ".TrainingJobResourceConfigB5Z3github.com" + - "/lyft/flyteidl/gen/pb-go/flyteidl/plugin" + - "sb\006proto3" + "\"/\n\020MetricDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005re" + + "gex\030\002 \001(\t\"\207\002\n\026AlgorithmSpecification\022?\n\n" + + "input_mode\030\001 \001(\0162+.flyteidl.plugins.sage" + + "maker.InputMode.Value\022G\n\016algorithm_name\030" + + "\002 \001(\0162/.flyteidl.plugins.sagemaker.Algor" + + "ithmName.Value\022\031\n\021algorithm_version\030\003 \001(" + + "\t\022H\n\022metric_definitions\030\004 \003(\0132,.flyteidl" + + ".plugins.sagemaker.MetricDefinition\"e\n\031T" + + "rainingJobResourceConfig\022\026\n\016instance_cou" + + "nt\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volum" + + "e_size_in_gb\030\003 \001(\003\"\266\001\n\013TrainingJob\022S\n\027al" + + "gorithm_specification\030\001 \001(\01322.flyteidl.p" + + "lugins.sagemaker.AlgorithmSpecification\022" + + "R\n\023training_job_config\030\002 \001(\01325.flyteidl." + + "plugins.sagemaker.TrainingJobResourceCon" + + "figB5Z3github.com/lyft/flyteidl/gen/pb-g" + + "o/flyteidl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -4846,26 +4885,26 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor, new java.lang.String[] { }); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = + internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_MetricDefinition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor, + new java.lang.String[] { "Name", "Regex", }); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, new java.lang.String[] { "InputMode", "AlgorithmName", "AlgorithmVersion", "MetricDefinitions", }); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor = - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_MetricDefinition_descriptor, - new java.lang.String[] { "Name", "Regex", }); internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor, new java.lang.String[] { "InstanceCount", "InstanceType", "VolumeSizeInGb", }); internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor, diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst index d48dc742a..2e271de79 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst @@ -69,12 +69,44 @@ XGBOOST ⁣ +.. _api_msg_flyteidl.plugins.sagemaker.MetricDefinition: + +flyteidl.plugins.sagemaker.MetricDefinition +------------------------------------------- + +`[flyteidl.plugins.sagemaker.MetricDefinition proto] `_ + +Specifies a metric that the training algorithm writes to stderr or stdout. +This object is a pass-through. +See this for details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_MetricDefinition.html + +.. code-block:: json + + { + "name": "...", + "regex": "..." + } + +.. _api_field_flyteidl.plugins.sagemaker.MetricDefinition.name: + +name + (`string `_) User-defined name of the metric + + +.. _api_field_flyteidl.plugins.sagemaker.MetricDefinition.regex: + +regex + (`string `_) SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics + + + + .. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification: flyteidl.plugins.sagemaker.AlgorithmSpecification ------------------------------------------------- -`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ Specifies the training algorithm to be used in the training job This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify @@ -116,38 +148,11 @@ algorithm_version .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions: metric_definitions - (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition `) A list of metric definitions for SageMaker to evaluate/track on the progress of the training job - https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html + (:ref:`flyteidl.plugins.sagemaker.MetricDefinition `) A list of metric definitions for SageMaker to evaluate/track on the progress of the training job + See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html + and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html -.. _api_msg_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition: - -flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition ------------------------------------------------------------------- - -`[flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition proto] `_ - - -.. code-block:: json - - { - "name": "...", - "regex": "..." - } - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name: - -name - (`string `_) User-defined name of the metric - - -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex: - -regex - (`string `_) SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics - - - .. _api_msg_flyteidl.plugins.sagemaker.TrainingJobResourceConfig: @@ -155,7 +160,7 @@ regex flyteidl.plugins.sagemaker.TrainingJobResourceConfig ---------------------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the number of instances to launch, and the size of the ML storage volume the user wants to provision @@ -194,7 +199,7 @@ volume_size_in_gb flyteidl.plugins.sagemaker.TrainingJob -------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ The spec of a training job. This is mostly a pass-through object https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py index 4002d7447..32739842f 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py @@ -21,7 +21,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"\xcf\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12_\n\x12metric_definitions\x18\x04 \x03(\x0b\x32\x43.flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition\x1a/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\xb6\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12R\n\x13training_job_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"\x87\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12H\n\x12metric_definitions\x18\x04 \x03(\x0b\x32,.flyteidl.plugins.sagemaker.MetricDefinition\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\xb6\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12R\n\x13training_job_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) @@ -122,22 +122,22 @@ ) -_ALGORITHMSPECIFICATION_METRICDEFINITION = _descriptor.Descriptor( +_METRICDEFINITION = _descriptor.Descriptor( name='MetricDefinition', - full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition', + full_name='flyteidl.plugins.sagemaker.MetricDefinition', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='name', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.name', index=0, + name='name', full_name='flyteidl.plugins.sagemaker.MetricDefinition.name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='regex', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition.regex', index=1, + name='regex', full_name='flyteidl.plugins.sagemaker.MetricDefinition.regex', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -155,10 +155,11 @@ extension_ranges=[], oneofs=[ ], - serialized_start=491, - serialized_end=538, + serialized_start=202, + serialized_end=249, ) + _ALGORITHMSPECIFICATION = _descriptor.Descriptor( name='AlgorithmSpecification', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification', @@ -197,7 +198,7 @@ ], extensions=[ ], - nested_types=[_ALGORITHMSPECIFICATION_METRICDEFINITION, ], + nested_types=[], enum_types=[ ], serialized_options=None, @@ -206,8 +207,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=203, - serialized_end=538, + serialized_start=252, + serialized_end=515, ) @@ -251,8 +252,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=540, - serialized_end=641, + serialized_start=517, + serialized_end=618, ) @@ -289,20 +290,20 @@ extension_ranges=[], oneofs=[ ], - serialized_start=644, - serialized_end=826, + serialized_start=621, + serialized_end=803, ) _INPUTMODE_VALUE.containing_type = _INPUTMODE _ALGORITHMNAME_VALUE.containing_type = _ALGORITHMNAME -_ALGORITHMSPECIFICATION_METRICDEFINITION.containing_type = _ALGORITHMSPECIFICATION _ALGORITHMSPECIFICATION.fields_by_name['input_mode'].enum_type = _INPUTMODE_VALUE _ALGORITHMSPECIFICATION.fields_by_name['algorithm_name'].enum_type = _ALGORITHMNAME_VALUE -_ALGORITHMSPECIFICATION.fields_by_name['metric_definitions'].message_type = _ALGORITHMSPECIFICATION_METRICDEFINITION +_ALGORITHMSPECIFICATION.fields_by_name['metric_definitions'].message_type = _METRICDEFINITION _TRAININGJOB.fields_by_name['algorithm_specification'].message_type = _ALGORITHMSPECIFICATION _TRAININGJOB.fields_by_name['training_job_config'].message_type = _TRAININGJOBRESOURCECONFIG DESCRIPTOR.message_types_by_name['InputMode'] = _INPUTMODE DESCRIPTOR.message_types_by_name['AlgorithmName'] = _ALGORITHMNAME +DESCRIPTOR.message_types_by_name['MetricDefinition'] = _METRICDEFINITION DESCRIPTOR.message_types_by_name['AlgorithmSpecification'] = _ALGORITHMSPECIFICATION DESCRIPTOR.message_types_by_name['TrainingJobResourceConfig'] = _TRAININGJOBRESOURCECONFIG DESCRIPTOR.message_types_by_name['TrainingJob'] = _TRAININGJOB @@ -322,20 +323,19 @@ )) _sym_db.RegisterMessage(AlgorithmName) -AlgorithmSpecification = _reflection.GeneratedProtocolMessageType('AlgorithmSpecification', (_message.Message,), dict( +MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict( + DESCRIPTOR = _METRICDEFINITION, + __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.MetricDefinition) + )) +_sym_db.RegisterMessage(MetricDefinition) - MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict( - DESCRIPTOR = _ALGORITHMSPECIFICATION_METRICDEFINITION, - __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification.MetricDefinition) - )) - , +AlgorithmSpecification = _reflection.GeneratedProtocolMessageType('AlgorithmSpecification', (_message.Message,), dict( DESCRIPTOR = _ALGORITHMSPECIFICATION, __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) )) _sym_db.RegisterMessage(AlgorithmSpecification) -_sym_db.RegisterMessage(AlgorithmSpecification.MetricDefinition) TrainingJobResourceConfig = _reflection.GeneratedProtocolMessageType('TrainingJobResourceConfig', (_message.Message,), dict( DESCRIPTOR = _TRAININGJOBRESOURCECONFIG, From 1a3a4cb5267c22a0438c60736a209125c24a9ed1 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Mon, 27 Jul 2020 12:43:38 -0700 Subject: [PATCH 52/64] version --- package.json | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7c3dd5890..2b80b4a28 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.18.0b8", + "version": "0.18.0b9", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/setup.py b/setup.py index 5fe1df34e..e32767a26 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.18.0b8' +__version__ = '0.18.0b9' setup( name='flyteidl', From 5aef14f0da696cd8cd8449f8613bbbcdd03cce76 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Mon, 27 Jul 2020 12:53:25 -0700 Subject: [PATCH 53/64] rename a field --- .../plugins/sagemaker/training_job.pb.cc | 74 +++---- .../plugins/sagemaker/training_job.pb.h | 70 +++---- .../plugins/sagemaker/training_job.pb.go | 84 ++++---- .../sagemaker/training_job.pb.validate.go | 4 +- .../sagemaker/TrainingJobOuterClass.java | 196 +++++++++--------- .../plugins/sagemaker/training_job.proto.rst | 6 +- .../plugins/sagemaker/training_job_pb2.py | 8 +- package.json | 2 +- .../plugins/sagemaker/training_job.proto | 2 +- setup.py | 2 +- 10 files changed, 224 insertions(+), 224 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc index 75b5174bf..10e654fa8 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc @@ -190,7 +190,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, algorithm_specification_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, training_job_config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, training_job_resource_config_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::plugins::sagemaker::InputMode)}, @@ -232,18 +232,18 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5 ".plugins.sagemaker.MetricDefinition\"e\n\031T" "rainingJobResourceConfig\022\026\n\016instance_cou" "nt\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volum" - "e_size_in_gb\030\003 \001(\003\"\266\001\n\013TrainingJob\022S\n\027al" + "e_size_in_gb\030\003 \001(\003\"\277\001\n\013TrainingJob\022S\n\027al" "gorithm_specification\030\001 \001(\01322.flyteidl.p" "lugins.sagemaker.AlgorithmSpecification\022" - "R\n\023training_job_config\030\002 \001(\01325.flyteidl." - "plugins.sagemaker.TrainingJobResourceCon" - "figB5Z3github.com/lyft/flyteidl/gen/pb-g" - "o/flyteidl/pluginsb\006proto3" + "[\n\034training_job_resource_config\030\002 \001(\01325." + "flyteidl.plugins.sagemaker.TrainingJobRe" + "sourceConfigB5Z3github.com/lyft/flyteidl" + "/gen/pb-go/flyteidl/pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, - "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 866, + "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 875, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { @@ -1941,13 +1941,13 @@ ::google::protobuf::Metadata TrainingJobResourceConfig::GetMetadata() const { void TrainingJob::InitAsDefaultInstance() { ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->algorithm_specification_ = const_cast< ::flyteidl::plugins::sagemaker::AlgorithmSpecification*>( ::flyteidl::plugins::sagemaker::AlgorithmSpecification::internal_default_instance()); - ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->training_job_config_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig*>( + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->training_job_resource_config_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig*>( ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig::internal_default_instance()); } class TrainingJob::HasBitSetters { public: static const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithm_specification(const TrainingJob* msg); - static const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& training_job_config(const TrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& training_job_resource_config(const TrainingJob* msg); }; const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& @@ -1955,12 +1955,12 @@ TrainingJob::HasBitSetters::algorithm_specification(const TrainingJob* msg) { return *msg->algorithm_specification_; } const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& -TrainingJob::HasBitSetters::training_job_config(const TrainingJob* msg) { - return *msg->training_job_config_; +TrainingJob::HasBitSetters::training_job_resource_config(const TrainingJob* msg) { + return *msg->training_job_resource_config_; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int TrainingJob::kAlgorithmSpecificationFieldNumber; -const int TrainingJob::kTrainingJobConfigFieldNumber; +const int TrainingJob::kTrainingJobResourceConfigFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 TrainingJob::TrainingJob() @@ -1977,10 +1977,10 @@ TrainingJob::TrainingJob(const TrainingJob& from) } else { algorithm_specification_ = nullptr; } - if (from.has_training_job_config()) { - training_job_config_ = new ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig(*from.training_job_config_); + if (from.has_training_job_resource_config()) { + training_job_resource_config_ = new ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig(*from.training_job_resource_config_); } else { - training_job_config_ = nullptr; + training_job_resource_config_ = nullptr; } // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJob) } @@ -1989,8 +1989,8 @@ void TrainingJob::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); ::memset(&algorithm_specification_, 0, static_cast( - reinterpret_cast(&training_job_config_) - - reinterpret_cast(&algorithm_specification_)) + sizeof(training_job_config_)); + reinterpret_cast(&training_job_resource_config_) - + reinterpret_cast(&algorithm_specification_)) + sizeof(training_job_resource_config_)); } TrainingJob::~TrainingJob() { @@ -2000,7 +2000,7 @@ TrainingJob::~TrainingJob() { void TrainingJob::SharedDtor() { if (this != internal_default_instance()) delete algorithm_specification_; - if (this != internal_default_instance()) delete training_job_config_; + if (this != internal_default_instance()) delete training_job_resource_config_; } void TrainingJob::SetCachedSize(int size) const { @@ -2022,10 +2022,10 @@ void TrainingJob::Clear() { delete algorithm_specification_; } algorithm_specification_ = nullptr; - if (GetArenaNoVirtual() == nullptr && training_job_config_ != nullptr) { - delete training_job_config_; + if (GetArenaNoVirtual() == nullptr && training_job_resource_config_ != nullptr) { + delete training_job_resource_config_; } - training_job_config_ = nullptr; + training_job_resource_config_ = nullptr; _internal_metadata_.Clear(); } @@ -2055,13 +2055,13 @@ const char* TrainingJob::_InternalParse(const char* begin, const char* end, void {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; + // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig::_InternalParse; - object = msg->mutable_training_job_config(); + object = msg->mutable_training_job_resource_config(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( @@ -2109,11 +2109,11 @@ bool TrainingJob::MergePartialFromCodedStream( break; } - // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; + // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_training_job_config())); + input, mutable_training_job_resource_config())); } else { goto handle_unusual; } @@ -2153,10 +2153,10 @@ void TrainingJob::SerializeWithCachedSizes( 1, HasBitSetters::algorithm_specification(this), output); } - // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; - if (this->has_training_job_config()) { + // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + if (this->has_training_job_resource_config()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::training_job_config(this), output); + 2, HasBitSetters::training_job_resource_config(this), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -2179,11 +2179,11 @@ ::google::protobuf::uint8* TrainingJob::InternalSerializeWithCachedSizesToArray( 1, HasBitSetters::algorithm_specification(this), target); } - // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; - if (this->has_training_job_config()) { + // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + if (this->has_training_job_resource_config()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 2, HasBitSetters::training_job_config(this), target); + 2, HasBitSetters::training_job_resource_config(this), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -2214,11 +2214,11 @@ size_t TrainingJob::ByteSizeLong() const { *algorithm_specification_); } - // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; - if (this->has_training_job_config()) { + // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + if (this->has_training_job_resource_config()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *training_job_config_); + *training_job_resource_config_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -2251,8 +2251,8 @@ void TrainingJob::MergeFrom(const TrainingJob& from) { if (from.has_algorithm_specification()) { mutable_algorithm_specification()->::flyteidl::plugins::sagemaker::AlgorithmSpecification::MergeFrom(from.algorithm_specification()); } - if (from.has_training_job_config()) { - mutable_training_job_config()->::flyteidl::plugins::sagemaker::TrainingJobResourceConfig::MergeFrom(from.training_job_config()); + if (from.has_training_job_resource_config()) { + mutable_training_job_resource_config()->::flyteidl::plugins::sagemaker::TrainingJobResourceConfig::MergeFrom(from.training_job_resource_config()); } } @@ -2282,7 +2282,7 @@ void TrainingJob::InternalSwap(TrainingJob* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); swap(algorithm_specification_, other->algorithm_specification_); - swap(training_job_config_, other->training_job_config_); + swap(training_job_resource_config_, other->training_job_resource_config_); } ::google::protobuf::Metadata TrainingJob::GetMetadata() const { diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h index fb8a5f421..52aff6133 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h @@ -914,14 +914,14 @@ class TrainingJob final : ::flyteidl::plugins::sagemaker::AlgorithmSpecification* mutable_algorithm_specification(); void set_allocated_algorithm_specification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification); - // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; - bool has_training_job_config() const; - void clear_training_job_config(); - static const int kTrainingJobConfigFieldNumber = 2; - const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& training_job_config() const; - ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* release_training_job_config(); - ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* mutable_training_job_config(); - void set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_config); + // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + bool has_training_job_resource_config() const; + void clear_training_job_resource_config(); + static const int kTrainingJobResourceConfigFieldNumber = 2; + const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& training_job_resource_config() const; + ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* release_training_job_resource_config(); + ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* mutable_training_job_resource_config(); + void set_allocated_training_job_resource_config(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_resource_config); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) private: @@ -929,7 +929,7 @@ class TrainingJob final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification_; - ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_config_; + ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_resource_config_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; @@ -1313,55 +1313,55 @@ inline void TrainingJob::set_allocated_algorithm_specification(::flyteidl::plugi // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) } -// .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; -inline bool TrainingJob::has_training_job_config() const { - return this != internal_default_instance() && training_job_config_ != nullptr; +// .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; +inline bool TrainingJob::has_training_job_resource_config() const { + return this != internal_default_instance() && training_job_resource_config_ != nullptr; } -inline void TrainingJob::clear_training_job_config() { - if (GetArenaNoVirtual() == nullptr && training_job_config_ != nullptr) { - delete training_job_config_; +inline void TrainingJob::clear_training_job_resource_config() { + if (GetArenaNoVirtual() == nullptr && training_job_resource_config_ != nullptr) { + delete training_job_resource_config_; } - training_job_config_ = nullptr; + training_job_resource_config_ = nullptr; } -inline const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& TrainingJob::training_job_config() const { - const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* p = training_job_config_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) +inline const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& TrainingJob::training_job_resource_config() const { + const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* p = training_job_resource_config_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.training_job_resource_config) return p != nullptr ? *p : *reinterpret_cast( &::flyteidl::plugins::sagemaker::_TrainingJobResourceConfig_default_instance_); } -inline ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* TrainingJob::release_training_job_config() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) +inline ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* TrainingJob::release_training_job_resource_config() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.training_job_resource_config) - ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* temp = training_job_config_; - training_job_config_ = nullptr; + ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* temp = training_job_resource_config_; + training_job_resource_config_ = nullptr; return temp; } -inline ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* TrainingJob::mutable_training_job_config() { +inline ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* TrainingJob::mutable_training_job_resource_config() { - if (training_job_config_ == nullptr) { + if (training_job_resource_config_ == nullptr) { auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobResourceConfig>(GetArenaNoVirtual()); - training_job_config_ = p; + training_job_resource_config_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) - return training_job_config_; + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.training_job_resource_config) + return training_job_resource_config_; } -inline void TrainingJob::set_allocated_training_job_config(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_config) { +inline void TrainingJob::set_allocated_training_job_resource_config(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_resource_config) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete training_job_config_; + delete training_job_resource_config_; } - if (training_job_config) { + if (training_job_resource_config) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - training_job_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, training_job_config, submessage_arena); + training_job_resource_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, training_job_resource_config, submessage_arena); } } else { } - training_job_config_ = training_job_config; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.training_job_config) + training_job_resource_config_ = training_job_resource_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.training_job_resource_config) } #ifdef __GNUC__ diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go index 1bc9cf697..17f903a55 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -327,11 +327,11 @@ func (m *TrainingJobResourceConfig) GetVolumeSizeInGb() int64 { // The spec of a training job. This is mostly a pass-through object // https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html type TrainingJob struct { - AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,1,opt,name=algorithm_specification,json=algorithmSpecification,proto3" json:"algorithm_specification,omitempty"` - TrainingJobConfig *TrainingJobResourceConfig `protobuf:"bytes,2,opt,name=training_job_config,json=trainingJobConfig,proto3" json:"training_job_config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,1,opt,name=algorithm_specification,json=algorithmSpecification,proto3" json:"algorithm_specification,omitempty"` + TrainingJobResourceConfig *TrainingJobResourceConfig `protobuf:"bytes,2,opt,name=training_job_resource_config,json=trainingJobResourceConfig,proto3" json:"training_job_resource_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TrainingJob) Reset() { *m = TrainingJob{} } @@ -366,9 +366,9 @@ func (m *TrainingJob) GetAlgorithmSpecification() *AlgorithmSpecification { return nil } -func (m *TrainingJob) GetTrainingJobConfig() *TrainingJobResourceConfig { +func (m *TrainingJob) GetTrainingJobResourceConfig() *TrainingJobResourceConfig { if m != nil { - return m.TrainingJobConfig + return m.TrainingJobResourceConfig } return nil } @@ -389,39 +389,39 @@ func init() { } var fileDescriptor_6a68f64d8fd9fe30 = []byte{ - // 535 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x51, 0x6e, 0xd3, 0x40, - 0x10, 0xad, 0x9b, 0xb6, 0x90, 0x09, 0x89, 0x9c, 0x05, 0x95, 0x50, 0x24, 0x14, 0x19, 0x21, 0x05, - 0x95, 0xda, 0x22, 0x55, 0xff, 0xf8, 0xa1, 0xa1, 0x54, 0xa9, 0x08, 0xa9, 0x9c, 0x10, 0x21, 0xf8, - 0xb0, 0x6c, 0x67, 0xbc, 0x5d, 0x6a, 0xef, 0x5a, 0xf6, 0xba, 0x22, 0x3d, 0x06, 0x87, 0xe2, 0x1e, - 0xdc, 0x04, 0x65, 0x1d, 0x3b, 0x69, 0x44, 0x23, 0xfe, 0xd6, 0x6f, 0xc6, 0x6f, 0xde, 0xbc, 0x99, - 0x81, 0xa3, 0x20, 0x9c, 0x49, 0x64, 0xd3, 0xd0, 0x8a, 0xc3, 0x8c, 0x32, 0x9e, 0x5a, 0xa9, 0x4b, - 0x31, 0x72, 0xaf, 0x31, 0xb1, 0x64, 0xe2, 0x32, 0xce, 0x38, 0x75, 0x7e, 0x08, 0xcf, 0x8c, 0x13, - 0x21, 0x05, 0x39, 0x28, 0xd2, 0xcd, 0x45, 0xba, 0x59, 0xa6, 0x1f, 0xbc, 0xa0, 0x42, 0xd0, 0x10, - 0x2d, 0x95, 0xe9, 0x65, 0x81, 0x35, 0xcd, 0x12, 0x57, 0x32, 0xc1, 0xf3, 0x7f, 0x8d, 0x0e, 0x54, - 0xfb, 0x3c, 0xce, 0xe4, 0x40, 0x4c, 0xd1, 0x78, 0x0e, 0xbb, 0x13, 0x37, 0xcc, 0x90, 0x3c, 0x84, - 0x9d, 0x8f, 0xfd, 0x4f, 0x67, 0xfa, 0xd6, 0xfc, 0x75, 0xd9, 0xbf, 0x3c, 0xd3, 0x35, 0xe3, 0x2d, - 0xd4, 0xdf, 0x87, 0x54, 0x24, 0x4c, 0x5e, 0x45, 0x9f, 0xdd, 0x08, 0x8d, 0x76, 0x91, 0x0d, 0xb0, - 0xd7, 0xfb, 0x32, 0x1a, 0x0f, 0x07, 0xfa, 0x16, 0xa9, 0xc1, 0x83, 0xaf, 0xe7, 0xa7, 0xc3, 0xe1, - 0x68, 0xac, 0x6b, 0xc6, 0x3b, 0xd0, 0x07, 0x28, 0x13, 0xe6, 0x7f, 0xc0, 0x80, 0x71, 0x36, 0x2f, - 0x4b, 0x08, 0xec, 0x70, 0x37, 0xc2, 0x96, 0xd6, 0xd6, 0x3a, 0x55, 0x5b, 0xbd, 0xc9, 0x13, 0xd8, - 0x4d, 0x90, 0xe2, 0xcf, 0xd6, 0xb6, 0x02, 0xf3, 0x0f, 0xe3, 0xf7, 0x36, 0xec, 0x97, 0x15, 0x47, - 0x31, 0xfa, 0x2c, 0x60, 0xbe, 0xd2, 0x4e, 0x2e, 0x00, 0xd8, 0x5c, 0xb5, 0x13, 0x89, 0x69, 0x4e, - 0xd5, 0xe8, 0x1e, 0x9a, 0xf7, 0xdb, 0x60, 0x96, 0x3d, 0x9a, 0x4a, 0xb2, 0x5d, 0x65, 0x05, 0x40, - 0x26, 0xd0, 0x70, 0x8b, 0x2a, 0x8e, 0x92, 0xb6, 0xad, 0xf8, 0xac, 0x4d, 0x7c, 0x77, 0x9c, 0x58, - 0x70, 0xd6, 0xdd, 0x55, 0x90, 0x1c, 0x42, 0x73, 0xc9, 0x7b, 0x83, 0x49, 0xca, 0x04, 0x6f, 0x55, - 0x54, 0x83, 0x7a, 0x19, 0x98, 0xe4, 0x38, 0xf9, 0x0e, 0x24, 0x52, 0x4e, 0x39, 0xd3, 0xd2, 0xaa, - 0xb4, 0xb5, 0xd3, 0xae, 0x74, 0x6a, 0xdd, 0x37, 0x9b, 0x84, 0xac, 0xfb, 0x6b, 0x37, 0xa3, 0x35, - 0x24, 0x35, 0x7e, 0x69, 0xf0, 0x6c, 0xbc, 0x58, 0x9b, 0x0b, 0xe1, 0xd9, 0x98, 0x8a, 0x2c, 0xf1, - 0xb1, 0x27, 0x78, 0xc0, 0x28, 0x79, 0x05, 0x0d, 0xc6, 0x53, 0xe9, 0x72, 0x1f, 0x1d, 0x5f, 0x64, - 0x5c, 0x2a, 0x3f, 0x2b, 0x76, 0xbd, 0x40, 0x7b, 0x73, 0x90, 0xbc, 0x84, 0x12, 0x70, 0xe4, 0x2c, - 0xc6, 0xc5, 0xac, 0x1e, 0x15, 0xe0, 0x78, 0x16, 0x23, 0x79, 0x0d, 0xcd, 0x1b, 0x11, 0x66, 0x11, - 0x3a, 0x29, 0xbb, 0x45, 0x87, 0x71, 0x87, 0x7a, 0xaa, 0xe7, 0x8a, 0xdd, 0xc8, 0x03, 0x23, 0x76, - 0x8b, 0x7d, 0x7e, 0xee, 0x19, 0x7f, 0x34, 0xa8, 0xad, 0x88, 0x22, 0xd7, 0xf0, 0x74, 0x69, 0x57, - 0xba, 0x3a, 0x6d, 0xa5, 0xa7, 0xd6, 0xed, 0xfe, 0xd7, 0x3c, 0xee, 0xec, 0x89, 0xbd, 0xef, 0xfe, - 0x7b, 0x7f, 0x10, 0x1e, 0xaf, 0xde, 0x91, 0xe3, 0x2b, 0x2b, 0x54, 0x4b, 0xb5, 0xee, 0xc9, 0xa6, - 0x42, 0xf7, 0xfa, 0x68, 0x37, 0xe5, 0x32, 0x94, 0x43, 0xa7, 0x27, 0xdf, 0x8e, 0x29, 0x93, 0x57, - 0x99, 0x67, 0xfa, 0x22, 0xb2, 0xc2, 0x59, 0x20, 0xad, 0xf2, 0xb2, 0x29, 0x72, 0x2b, 0xf6, 0x8e, - 0xa8, 0xb0, 0xd6, 0x8f, 0xdd, 0xdb, 0x53, 0xa7, 0x79, 0xfc, 0x37, 0x00, 0x00, 0xff, 0xff, 0x0d, - 0x05, 0xfa, 0x06, 0x07, 0x04, 0x00, 0x00, + // 540 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xd1, 0x6e, 0xd3, 0x4a, + 0x10, 0xad, 0x9b, 0xb4, 0xf7, 0x66, 0x42, 0x22, 0x67, 0x85, 0x4a, 0x5a, 0x10, 0x8a, 0x8c, 0x90, + 0x82, 0x4a, 0x6d, 0x91, 0xaa, 0x6f, 0xbc, 0xd0, 0x50, 0xaa, 0x54, 0x84, 0x54, 0x4e, 0x88, 0x10, + 0x3c, 0x58, 0xb6, 0x33, 0xde, 0x2e, 0xb5, 0x77, 0x2d, 0x7b, 0x1d, 0x91, 0x7e, 0x06, 0x1f, 0xc5, + 0x07, 0xf1, 0x05, 0x28, 0x9b, 0xd8, 0x4d, 0x23, 0x12, 0xf1, 0xb6, 0x3e, 0x33, 0x3e, 0x73, 0xe6, + 0xcc, 0x0c, 0x9c, 0x04, 0xe1, 0x4c, 0x22, 0x9b, 0x84, 0x56, 0x1c, 0x66, 0x94, 0xf1, 0xd4, 0x4a, + 0x5d, 0x8a, 0x91, 0x7b, 0x8b, 0x89, 0x25, 0x13, 0x97, 0x71, 0xc6, 0xa9, 0xf3, 0x5d, 0x78, 0x66, + 0x9c, 0x08, 0x29, 0xc8, 0x51, 0x9e, 0x6e, 0x2e, 0xd3, 0xcd, 0x22, 0xfd, 0xe8, 0x39, 0x15, 0x82, + 0x86, 0x68, 0xa9, 0x4c, 0x2f, 0x0b, 0xac, 0x49, 0x96, 0xb8, 0x92, 0x09, 0xbe, 0xf8, 0xd7, 0x68, + 0x43, 0xa5, 0xc7, 0xe3, 0x4c, 0xf6, 0xc5, 0x04, 0x8d, 0xa7, 0xb0, 0x37, 0x76, 0xc3, 0x0c, 0xc9, + 0xff, 0x50, 0xfe, 0xd0, 0xfb, 0x78, 0xa1, 0xef, 0xcc, 0x5f, 0xd7, 0xbd, 0xeb, 0x0b, 0x5d, 0x33, + 0xde, 0x40, 0xed, 0x5d, 0x48, 0x45, 0xc2, 0xe4, 0x4d, 0xf4, 0xc9, 0x8d, 0xd0, 0x68, 0xe5, 0xd9, + 0x00, 0xfb, 0xdd, 0xcf, 0xc3, 0xd1, 0xa0, 0xaf, 0xef, 0x90, 0x2a, 0xfc, 0xf7, 0xe5, 0xf2, 0x7c, + 0x30, 0x18, 0x8e, 0x74, 0xcd, 0x78, 0x0b, 0x7a, 0x1f, 0x65, 0xc2, 0xfc, 0xf7, 0x18, 0x30, 0xce, + 0xe6, 0x65, 0x09, 0x81, 0x32, 0x77, 0x23, 0x6c, 0x6a, 0x2d, 0xad, 0x5d, 0xb1, 0xd5, 0x9b, 0x3c, + 0x86, 0xbd, 0x04, 0x29, 0xfe, 0x68, 0xee, 0x2a, 0x70, 0xf1, 0x61, 0xfc, 0xda, 0x85, 0x83, 0xa2, + 0xe2, 0x30, 0x46, 0x9f, 0x05, 0xcc, 0x57, 0xda, 0xc9, 0x15, 0x00, 0x9b, 0xab, 0x76, 0x22, 0x31, + 0x59, 0x50, 0xd5, 0x3b, 0xc7, 0xe6, 0x66, 0x1b, 0xcc, 0xa2, 0x47, 0x53, 0x49, 0xb6, 0x2b, 0x2c, + 0x07, 0xc8, 0x18, 0xea, 0x6e, 0x5e, 0xc5, 0x51, 0xd2, 0x76, 0x15, 0x9f, 0xb5, 0x8d, 0xef, 0x81, + 0x13, 0x4b, 0xce, 0x9a, 0xbb, 0x0a, 0x92, 0x63, 0x68, 0xdc, 0xf3, 0x4e, 0x31, 0x49, 0x99, 0xe0, + 0xcd, 0x92, 0x6a, 0x50, 0x2f, 0x02, 0xe3, 0x05, 0x4e, 0xbe, 0x01, 0x89, 0x94, 0x53, 0xce, 0xa4, + 0xb0, 0x2a, 0x6d, 0x96, 0x5b, 0xa5, 0x76, 0xb5, 0xf3, 0x7a, 0x9b, 0x90, 0x75, 0x7f, 0xed, 0x46, + 0xb4, 0x86, 0xa4, 0xc6, 0x4f, 0x0d, 0x0e, 0x47, 0xcb, 0xb5, 0xb9, 0x12, 0x9e, 0x8d, 0xa9, 0xc8, + 0x12, 0x1f, 0xbb, 0x82, 0x07, 0x8c, 0x92, 0x97, 0x50, 0x67, 0x3c, 0x95, 0x2e, 0xf7, 0xd1, 0xf1, + 0x45, 0xc6, 0xa5, 0xf2, 0xb3, 0x64, 0xd7, 0x72, 0xb4, 0x3b, 0x07, 0xc9, 0x0b, 0x28, 0x00, 0x47, + 0xce, 0x62, 0x5c, 0xce, 0xea, 0x51, 0x0e, 0x8e, 0x66, 0x31, 0x92, 0x57, 0xd0, 0x98, 0x8a, 0x30, + 0x8b, 0xd0, 0x49, 0xd9, 0x1d, 0x3a, 0x8c, 0x3b, 0xd4, 0x53, 0x3d, 0x97, 0xec, 0xfa, 0x22, 0x30, + 0x64, 0x77, 0xd8, 0xe3, 0x97, 0x9e, 0xf1, 0x5b, 0x83, 0xea, 0x8a, 0x28, 0x72, 0x0b, 0x4f, 0xee, + 0xed, 0x4a, 0x57, 0xa7, 0xad, 0xf4, 0x54, 0x3b, 0x9d, 0x7f, 0x9a, 0xc7, 0x83, 0x3d, 0xb1, 0x0f, + 0xdc, 0xbf, 0xef, 0xcf, 0x14, 0x9e, 0xad, 0xde, 0x91, 0x93, 0x2c, 0x2d, 0x71, 0x7c, 0xe5, 0x89, + 0xea, 0xad, 0xda, 0x39, 0xdb, 0x56, 0x71, 0xa3, 0xa1, 0xf6, 0xa1, 0xdc, 0x14, 0x3a, 0x3f, 0xfb, + 0x7a, 0x4a, 0x99, 0xbc, 0xc9, 0x3c, 0xd3, 0x17, 0x91, 0x15, 0xce, 0x02, 0x69, 0x15, 0xa7, 0x4e, + 0x91, 0x5b, 0xb1, 0x77, 0x42, 0x85, 0xb5, 0x7e, 0xfd, 0xde, 0xbe, 0xba, 0xd5, 0xd3, 0x3f, 0x01, + 0x00, 0x00, 0xff, 0xff, 0x32, 0x95, 0x03, 0x39, 0x18, 0x04, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go index b8d94d6f3..698acbdc4 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go @@ -413,10 +413,10 @@ func (m *TrainingJob) Validate() error { } } - if v, ok := interface{}(m.GetTrainingJobConfig()).(interface{ Validate() error }); ok { + if v, ok := interface{}(m.GetTrainingJobResourceConfig()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TrainingJobValidationError{ - field: "TrainingJobConfig", + field: "TrainingJobResourceConfig", reason: "embedded message failed validation", cause: err, } diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java index cde8384cc..ab0e7d062 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -4006,17 +4006,17 @@ public interface TrainingJobOrBuilder extends flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); /** - * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; */ - boolean hasTrainingJobConfig(); + boolean hasTrainingJobResourceConfig(); /** - * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getTrainingJobConfig(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getTrainingJobResourceConfig(); /** - * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2; + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder getTrainingJobConfigOrBuilder(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder getTrainingJobResourceConfigOrBuilder(); } /** *
@@ -4077,13 +4077,13 @@ private TrainingJob(
             }
             case 18: {
               flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder subBuilder = null;
-              if (trainingJobConfig_ != null) {
-                subBuilder = trainingJobConfig_.toBuilder();
+              if (trainingJobResourceConfig_ != null) {
+                subBuilder = trainingJobResourceConfig_.toBuilder();
               }
-              trainingJobConfig_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.parser(), extensionRegistry);
+              trainingJobResourceConfig_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.parser(), extensionRegistry);
               if (subBuilder != null) {
-                subBuilder.mergeFrom(trainingJobConfig_);
-                trainingJobConfig_ = subBuilder.buildPartial();
+                subBuilder.mergeFrom(trainingJobResourceConfig_);
+                trainingJobResourceConfig_ = subBuilder.buildPartial();
               }
 
               break;
@@ -4141,25 +4141,25 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOr
       return getAlgorithmSpecification();
     }
 
-    public static final int TRAINING_JOB_CONFIG_FIELD_NUMBER = 2;
-    private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig trainingJobConfig_;
+    public static final int TRAINING_JOB_RESOURCE_CONFIG_FIELD_NUMBER = 2;
+    private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig trainingJobResourceConfig_;
     /**
-     * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
+     * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2;
      */
-    public boolean hasTrainingJobConfig() {
-      return trainingJobConfig_ != null;
+    public boolean hasTrainingJobResourceConfig() {
+      return trainingJobResourceConfig_ != null;
     }
     /**
-     * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
+     * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2;
      */
-    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getTrainingJobConfig() {
-      return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance() : trainingJobConfig_;
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getTrainingJobResourceConfig() {
+      return trainingJobResourceConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance() : trainingJobResourceConfig_;
     }
     /**
-     * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
+     * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2;
      */
-    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder getTrainingJobConfigOrBuilder() {
-      return getTrainingJobConfig();
+    public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder getTrainingJobResourceConfigOrBuilder() {
+      return getTrainingJobResourceConfig();
     }
 
     private byte memoizedIsInitialized = -1;
@@ -4179,8 +4179,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (algorithmSpecification_ != null) {
         output.writeMessage(1, getAlgorithmSpecification());
       }
-      if (trainingJobConfig_ != null) {
-        output.writeMessage(2, getTrainingJobConfig());
+      if (trainingJobResourceConfig_ != null) {
+        output.writeMessage(2, getTrainingJobResourceConfig());
       }
       unknownFields.writeTo(output);
     }
@@ -4195,9 +4195,9 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(1, getAlgorithmSpecification());
       }
-      if (trainingJobConfig_ != null) {
+      if (trainingJobResourceConfig_ != null) {
         size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getTrainingJobConfig());
+          .computeMessageSize(2, getTrainingJobResourceConfig());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -4219,10 +4219,10 @@ public boolean equals(final java.lang.Object obj) {
         if (!getAlgorithmSpecification()
             .equals(other.getAlgorithmSpecification())) return false;
       }
-      if (hasTrainingJobConfig() != other.hasTrainingJobConfig()) return false;
-      if (hasTrainingJobConfig()) {
-        if (!getTrainingJobConfig()
-            .equals(other.getTrainingJobConfig())) return false;
+      if (hasTrainingJobResourceConfig() != other.hasTrainingJobResourceConfig()) return false;
+      if (hasTrainingJobResourceConfig()) {
+        if (!getTrainingJobResourceConfig()
+            .equals(other.getTrainingJobResourceConfig())) return false;
       }
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
@@ -4239,9 +4239,9 @@ public int hashCode() {
         hash = (37 * hash) + ALGORITHM_SPECIFICATION_FIELD_NUMBER;
         hash = (53 * hash) + getAlgorithmSpecification().hashCode();
       }
-      if (hasTrainingJobConfig()) {
-        hash = (37 * hash) + TRAINING_JOB_CONFIG_FIELD_NUMBER;
-        hash = (53 * hash) + getTrainingJobConfig().hashCode();
+      if (hasTrainingJobResourceConfig()) {
+        hash = (37 * hash) + TRAINING_JOB_RESOURCE_CONFIG_FIELD_NUMBER;
+        hash = (53 * hash) + getTrainingJobResourceConfig().hashCode();
       }
       hash = (29 * hash) + unknownFields.hashCode();
       memoizedHashCode = hash;
@@ -4387,11 +4387,11 @@ public Builder clear() {
           algorithmSpecification_ = null;
           algorithmSpecificationBuilder_ = null;
         }
-        if (trainingJobConfigBuilder_ == null) {
-          trainingJobConfig_ = null;
+        if (trainingJobResourceConfigBuilder_ == null) {
+          trainingJobResourceConfig_ = null;
         } else {
-          trainingJobConfig_ = null;
-          trainingJobConfigBuilder_ = null;
+          trainingJobResourceConfig_ = null;
+          trainingJobResourceConfigBuilder_ = null;
         }
         return this;
       }
@@ -4424,10 +4424,10 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob buildPartial
         } else {
           result.algorithmSpecification_ = algorithmSpecificationBuilder_.build();
         }
-        if (trainingJobConfigBuilder_ == null) {
-          result.trainingJobConfig_ = trainingJobConfig_;
+        if (trainingJobResourceConfigBuilder_ == null) {
+          result.trainingJobResourceConfig_ = trainingJobResourceConfig_;
         } else {
-          result.trainingJobConfig_ = trainingJobConfigBuilder_.build();
+          result.trainingJobResourceConfig_ = trainingJobResourceConfigBuilder_.build();
         }
         onBuilt();
         return result;
@@ -4480,8 +4480,8 @@ public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.Traini
         if (other.hasAlgorithmSpecification()) {
           mergeAlgorithmSpecification(other.getAlgorithmSpecification());
         }
-        if (other.hasTrainingJobConfig()) {
-          mergeTrainingJobConfig(other.getTrainingJobConfig());
+        if (other.hasTrainingJobResourceConfig()) {
+          mergeTrainingJobResourceConfig(other.getTrainingJobResourceConfig());
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -4629,121 +4629,121 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOr
         return algorithmSpecificationBuilder_;
       }
 
-      private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig trainingJobConfig_;
+      private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig trainingJobResourceConfig_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder> trainingJobConfigBuilder_;
+          flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder> trainingJobResourceConfigBuilder_;
       /**
-       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
+       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2;
        */
-      public boolean hasTrainingJobConfig() {
-        return trainingJobConfigBuilder_ != null || trainingJobConfig_ != null;
+      public boolean hasTrainingJobResourceConfig() {
+        return trainingJobResourceConfigBuilder_ != null || trainingJobResourceConfig_ != null;
       }
       /**
-       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
+       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2;
        */
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getTrainingJobConfig() {
-        if (trainingJobConfigBuilder_ == null) {
-          return trainingJobConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance() : trainingJobConfig_;
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getTrainingJobResourceConfig() {
+        if (trainingJobResourceConfigBuilder_ == null) {
+          return trainingJobResourceConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance() : trainingJobResourceConfig_;
         } else {
-          return trainingJobConfigBuilder_.getMessage();
+          return trainingJobResourceConfigBuilder_.getMessage();
         }
       }
       /**
-       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
+       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2;
        */
-      public Builder setTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig value) {
-        if (trainingJobConfigBuilder_ == null) {
+      public Builder setTrainingJobResourceConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig value) {
+        if (trainingJobResourceConfigBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
           }
-          trainingJobConfig_ = value;
+          trainingJobResourceConfig_ = value;
           onChanged();
         } else {
-          trainingJobConfigBuilder_.setMessage(value);
+          trainingJobResourceConfigBuilder_.setMessage(value);
         }
 
         return this;
       }
       /**
-       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
+       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2;
        */
-      public Builder setTrainingJobConfig(
+      public Builder setTrainingJobResourceConfig(
           flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder builderForValue) {
-        if (trainingJobConfigBuilder_ == null) {
-          trainingJobConfig_ = builderForValue.build();
+        if (trainingJobResourceConfigBuilder_ == null) {
+          trainingJobResourceConfig_ = builderForValue.build();
           onChanged();
         } else {
-          trainingJobConfigBuilder_.setMessage(builderForValue.build());
+          trainingJobResourceConfigBuilder_.setMessage(builderForValue.build());
         }
 
         return this;
       }
       /**
-       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
+       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2;
        */
-      public Builder mergeTrainingJobConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig value) {
-        if (trainingJobConfigBuilder_ == null) {
-          if (trainingJobConfig_ != null) {
-            trainingJobConfig_ =
-              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.newBuilder(trainingJobConfig_).mergeFrom(value).buildPartial();
+      public Builder mergeTrainingJobResourceConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig value) {
+        if (trainingJobResourceConfigBuilder_ == null) {
+          if (trainingJobResourceConfig_ != null) {
+            trainingJobResourceConfig_ =
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.newBuilder(trainingJobResourceConfig_).mergeFrom(value).buildPartial();
           } else {
-            trainingJobConfig_ = value;
+            trainingJobResourceConfig_ = value;
           }
           onChanged();
         } else {
-          trainingJobConfigBuilder_.mergeFrom(value);
+          trainingJobResourceConfigBuilder_.mergeFrom(value);
         }
 
         return this;
       }
       /**
-       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
+       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2;
        */
-      public Builder clearTrainingJobConfig() {
-        if (trainingJobConfigBuilder_ == null) {
-          trainingJobConfig_ = null;
+      public Builder clearTrainingJobResourceConfig() {
+        if (trainingJobResourceConfigBuilder_ == null) {
+          trainingJobResourceConfig_ = null;
           onChanged();
         } else {
-          trainingJobConfig_ = null;
-          trainingJobConfigBuilder_ = null;
+          trainingJobResourceConfig_ = null;
+          trainingJobResourceConfigBuilder_ = null;
         }
 
         return this;
       }
       /**
-       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
+       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2;
        */
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder getTrainingJobConfigBuilder() {
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder getTrainingJobResourceConfigBuilder() {
         
         onChanged();
-        return getTrainingJobConfigFieldBuilder().getBuilder();
+        return getTrainingJobResourceConfigFieldBuilder().getBuilder();
       }
       /**
-       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
+       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2;
        */
-      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder getTrainingJobConfigOrBuilder() {
-        if (trainingJobConfigBuilder_ != null) {
-          return trainingJobConfigBuilder_.getMessageOrBuilder();
+      public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder getTrainingJobResourceConfigOrBuilder() {
+        if (trainingJobResourceConfigBuilder_ != null) {
+          return trainingJobResourceConfigBuilder_.getMessageOrBuilder();
         } else {
-          return trainingJobConfig_ == null ?
-              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance() : trainingJobConfig_;
+          return trainingJobResourceConfig_ == null ?
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance() : trainingJobResourceConfig_;
         }
       }
       /**
-       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_config = 2;
+       * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
           flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder> 
-          getTrainingJobConfigFieldBuilder() {
-        if (trainingJobConfigBuilder_ == null) {
-          trainingJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+          getTrainingJobResourceConfigFieldBuilder() {
+        if (trainingJobResourceConfigBuilder_ == null) {
+          trainingJobResourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
               flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder>(
-                  getTrainingJobConfig(),
+                  getTrainingJobResourceConfig(),
                   getParentForChildren(),
                   isClean());
-          trainingJobConfig_ = null;
+          trainingJobResourceConfig_ = null;
         }
-        return trainingJobConfigBuilder_;
+        return trainingJobResourceConfigBuilder_;
       }
       @java.lang.Override
       public final Builder setUnknownFields(
@@ -4852,13 +4852,13 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn
       ".plugins.sagemaker.MetricDefinition\"e\n\031T" +
       "rainingJobResourceConfig\022\026\n\016instance_cou" +
       "nt\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volum" +
-      "e_size_in_gb\030\003 \001(\003\"\266\001\n\013TrainingJob\022S\n\027al" +
+      "e_size_in_gb\030\003 \001(\003\"\277\001\n\013TrainingJob\022S\n\027al" +
       "gorithm_specification\030\001 \001(\01322.flyteidl.p" +
       "lugins.sagemaker.AlgorithmSpecification\022" +
-      "R\n\023training_job_config\030\002 \001(\01325.flyteidl." +
-      "plugins.sagemaker.TrainingJobResourceCon" +
-      "figB5Z3github.com/lyft/flyteidl/gen/pb-g" +
-      "o/flyteidl/pluginsb\006proto3"
+      "[\n\034training_job_resource_config\030\002 \001(\01325." +
+      "flyteidl.plugins.sagemaker.TrainingJobRe" +
+      "sourceConfigB5Z3github.com/lyft/flyteidl" +
+      "/gen/pb-go/flyteidl/pluginsb\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
@@ -4908,7 +4908,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor,
-        new java.lang.String[] { "AlgorithmSpecification", "TrainingJobConfig", });
+        new java.lang.String[] { "AlgorithmSpecification", "TrainingJobResourceConfig", });
     com.google.protobuf.DurationProto.getDescriptor();
   }
 
diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst
index 2e271de79..20f39bafb 100644
--- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst
+++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst
@@ -208,7 +208,7 @@ https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.
 
   {
     "algorithm_specification": "{...}",
-    "training_job_config": "{...}"
+    "training_job_resource_config": "{...}"
   }
 
 .. _api_field_flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification:
@@ -216,9 +216,9 @@ https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.
 algorithm_specification
   (:ref:`flyteidl.plugins.sagemaker.AlgorithmSpecification `) 
   
-.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.training_job_config:
+.. _api_field_flyteidl.plugins.sagemaker.TrainingJob.training_job_resource_config:
 
-training_job_config
+training_job_resource_config
   (:ref:`flyteidl.plugins.sagemaker.TrainingJobResourceConfig `) 
   
 
diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py
index 32739842f..86149a35a 100644
--- a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py
+++ b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py
@@ -21,7 +21,7 @@
   package='flyteidl.plugins.sagemaker',
   syntax='proto3',
   serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'),
-  serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"\x87\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12H\n\x12metric_definitions\x18\x04 \x03(\x0b\x32,.flyteidl.plugins.sagemaker.MetricDefinition\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\xb6\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12R\n\x13training_job_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3')
+  serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"\x87\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12H\n\x12metric_definitions\x18\x04 \x03(\x0b\x32,.flyteidl.plugins.sagemaker.MetricDefinition\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\xbf\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12[\n\x1ctraining_job_resource_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3')
   ,
   dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,])
 
@@ -272,7 +272,7 @@
       is_extension=False, extension_scope=None,
       serialized_options=None, file=DESCRIPTOR),
     _descriptor.FieldDescriptor(
-      name='training_job_config', full_name='flyteidl.plugins.sagemaker.TrainingJob.training_job_config', index=1,
+      name='training_job_resource_config', full_name='flyteidl.plugins.sagemaker.TrainingJob.training_job_resource_config', index=1,
       number=2, type=11, cpp_type=10, label=1,
       has_default_value=False, default_value=None,
       message_type=None, enum_type=None, containing_type=None,
@@ -291,7 +291,7 @@
   oneofs=[
   ],
   serialized_start=621,
-  serialized_end=803,
+  serialized_end=812,
 )
 
 _INPUTMODE_VALUE.containing_type = _INPUTMODE
@@ -300,7 +300,7 @@
 _ALGORITHMSPECIFICATION.fields_by_name['algorithm_name'].enum_type = _ALGORITHMNAME_VALUE
 _ALGORITHMSPECIFICATION.fields_by_name['metric_definitions'].message_type = _METRICDEFINITION
 _TRAININGJOB.fields_by_name['algorithm_specification'].message_type = _ALGORITHMSPECIFICATION
-_TRAININGJOB.fields_by_name['training_job_config'].message_type = _TRAININGJOBRESOURCECONFIG
+_TRAININGJOB.fields_by_name['training_job_resource_config'].message_type = _TRAININGJOBRESOURCECONFIG
 DESCRIPTOR.message_types_by_name['InputMode'] = _INPUTMODE
 DESCRIPTOR.message_types_by_name['AlgorithmName'] = _ALGORITHMNAME
 DESCRIPTOR.message_types_by_name['MetricDefinition'] = _METRICDEFINITION
diff --git a/package.json b/package.json
index 2b80b4a28..3efffdef1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@lyft/flyteidl",
-  "version": "0.18.0b9",
+  "version": "0.18.0b10",
   "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
   "repository": {
     "type": "git",
diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto
index 86d2cf81c..90559c737 100644
--- a/protos/flyteidl/plugins/sagemaker/training_job.proto
+++ b/protos/flyteidl/plugins/sagemaker/training_job.proto
@@ -72,5 +72,5 @@ message TrainingJobResourceConfig {
 // https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
 message TrainingJob {
     AlgorithmSpecification algorithm_specification = 1;
-    TrainingJobResourceConfig training_job_config = 2;
+    TrainingJobResourceConfig training_job_resource_config = 2;
 }
diff --git a/setup.py b/setup.py
index e32767a26..0d75af5ef 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
 from setuptools import setup, find_packages
 
-__version__ = '0.18.0b9'
+__version__ = '0.18.0b10'
 
 setup(
     name='flyteidl',

From a92a2a2bee125d8216c542858de91b011afe7c59 Mon Sep 17 00:00:00 2001
From: Chang-Hong Hsu 
Date: Wed, 29 Jul 2020 10:01:34 -0700
Subject: [PATCH 54/64] adding input file type

---
 .../plugins/sagemaker/training_job.proto         | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto
index 90559c737..d885a09aa 100644
--- a/protos/flyteidl/plugins/sagemaker/training_job.proto
+++ b/protos/flyteidl/plugins/sagemaker/training_job.proto
@@ -22,6 +22,16 @@ message AlgorithmName {
 }
 
 
+// When using FILE input mode, different SageMaker built-in algorithms require different file types of input data
+// See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+// https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+message InputFileType {
+    enum Value {
+        TEXT_CSV = 0;
+        TEXT_LIBSVM = 1;
+    }
+}
+
 // Specifies a metric that the training algorithm writes to stderr or stdout.
 // This object is a pass-through.
 // See this for details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_MetricDefinition.html
@@ -43,6 +53,7 @@ message MetricDefinition {
 message AlgorithmSpecification {
     // The input mode can be either PIPE or FILE
     InputMode.Value input_mode = 1;
+
     // The algorithm name is used for deciding which pre-built image to point to
     // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
     AlgorithmName.Value algorithm_name = 2;
@@ -54,6 +65,11 @@ message AlgorithmSpecification {
     // See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
     // and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
     repeated MetricDefinition metric_definitions = 4;
+
+    // The type of the input files (when using FILE input mode)
+    // See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+    // https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+    InputFileType input_file_type = 5;
 }
 
 // TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the

From dc1abbba877d17171fb3c80fe79b53695dc954d1 Mon Sep 17 00:00:00 2001
From: Chang-Hong Hsu 
Date: Wed, 29 Jul 2020 10:05:10 -0700
Subject: [PATCH 55/64] adding input file type message

---
 .../plugins/sagemaker/training_job.pb.cc      | 393 +++++++-
 .../plugins/sagemaker/training_job.pb.h       | 238 ++++-
 .../plugins/sagemaker/training_job.pb.go      | 162 +++-
 .../sagemaker/training_job.pb.validate.go     |  75 ++
 .../sagemaker/TrainingJobOuterClass.java      | 863 +++++++++++++++++-
 .../plugins/sagemaker/training_job.proto.rst  |  55 +-
 .../plugins/sagemaker/training_job_pb2.py     |  82 +-
 package.json                                  |   2 +-
 setup.py                                      |   2 +-
 9 files changed, 1755 insertions(+), 117 deletions(-)

diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc
index 10e654fa8..c14c9cc4d 100644
--- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc
+++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc
@@ -16,9 +16,10 @@
 // @@protoc_insertion_point(includes)
 #include 
 
+extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
 extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
 extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
-extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
 namespace flyteidl {
 namespace plugins {
 namespace sagemaker {
@@ -30,6 +31,10 @@ class AlgorithmNameDefaultTypeInternal {
  public:
   ::google::protobuf::internal::ExplicitlyConstructed _instance;
 } _AlgorithmName_default_instance_;
+class InputFileTypeDefaultTypeInternal {
+ public:
+  ::google::protobuf::internal::ExplicitlyConstructed _instance;
+} _InputFileType_default_instance_;
 class MetricDefinitionDefaultTypeInternal {
  public:
   ::google::protobuf::internal::ExplicitlyConstructed _instance;
@@ -77,6 +82,20 @@ static void InitDefaultsAlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_
 ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto =
     {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}};
 
+static void InitDefaultsInputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
+  GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+  {
+    void* ptr = &::flyteidl::plugins::sagemaker::_InputFileType_default_instance_;
+    new (ptr) ::flyteidl::plugins::sagemaker::InputFileType();
+    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+  }
+  ::flyteidl::plugins::sagemaker::InputFileType::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_InputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}};
+
 static void InitDefaultsMetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
@@ -102,9 +121,10 @@ static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2f
   ::flyteidl::plugins::sagemaker::AlgorithmSpecification::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {
-      &scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}};
+::google::protobuf::internal::SCCInfo<2> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {
+      &scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,
+      &scc_info_InputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}};
 
 static void InitDefaultsTrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
@@ -139,14 +159,15 @@ ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins
 void InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
   ::google::protobuf::internal::InitSCC(&scc_info_InputMode_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_InputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   ::google::protobuf::internal::InitSCC(&scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
 }
 
-::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[6];
-const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[2];
+::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[7];
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[3];
 constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = nullptr;
 
 const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
@@ -161,6 +182,11 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr
   ~0u,  // no _oneof_case_
   ~0u,  // no _weak_field_map_
   ~0u,  // no _has_bits_
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::InputFileType, _internal_metadata_),
+  ~0u,  // no _extensions_
+  ~0u,  // no _oneof_case_
+  ~0u,  // no _weak_field_map_
+  ~0u,  // no _has_bits_
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::MetricDefinition, _internal_metadata_),
   ~0u,  // no _extensions_
   ~0u,  // no _oneof_case_
@@ -176,6 +202,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_name_),
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_version_),
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, metric_definitions_),
+  PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, input_file_type_),
   ~0u,  // no _has_bits_
   PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig, _internal_metadata_),
   ~0u,  // no _extensions_
@@ -195,15 +222,17 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr
 static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
   { 0, -1, sizeof(::flyteidl::plugins::sagemaker::InputMode)},
   { 5, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmName)},
-  { 10, -1, sizeof(::flyteidl::plugins::sagemaker::MetricDefinition)},
-  { 17, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)},
-  { 26, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig)},
-  { 34, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJob)},
+  { 10, -1, sizeof(::flyteidl::plugins::sagemaker::InputFileType)},
+  { 15, -1, sizeof(::flyteidl::plugins::sagemaker::MetricDefinition)},
+  { 22, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)},
+  { 32, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig)},
+  { 40, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJob)},
 };
 
 static ::google::protobuf::Message const * const file_default_instances[] = {
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_InputMode_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmName_default_instance_),
+  reinterpret_cast(&::flyteidl::plugins::sagemaker::_InputFileType_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_MetricDefinition_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_),
   reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJobResourceConfig_default_instance_),
@@ -213,7 +242,7 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
 ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = {
   {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, "flyteidl/plugins/sagemaker/training_job.proto", schemas,
   file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto::offsets,
-  file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto,
+  file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 7, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto,
 };
 
 const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[] =
@@ -222,28 +251,31 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5
   "gle/protobuf/duration.proto\"(\n\tInputMode"
   "\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n\rAlgorit"
   "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001"
-  "\"/\n\020MetricDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005re"
-  "gex\030\002 \001(\t\"\207\002\n\026AlgorithmSpecification\022\?\n\n"
-  "input_mode\030\001 \001(\0162+.flyteidl.plugins.sage"
-  "maker.InputMode.Value\022G\n\016algorithm_name\030"
-  "\002 \001(\0162/.flyteidl.plugins.sagemaker.Algor"
-  "ithmName.Value\022\031\n\021algorithm_version\030\003 \001("
-  "\t\022H\n\022metric_definitions\030\004 \003(\0132,.flyteidl"
-  ".plugins.sagemaker.MetricDefinition\"e\n\031T"
-  "rainingJobResourceConfig\022\026\n\016instance_cou"
-  "nt\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volum"
-  "e_size_in_gb\030\003 \001(\003\"\277\001\n\013TrainingJob\022S\n\027al"
-  "gorithm_specification\030\001 \001(\01322.flyteidl.p"
-  "lugins.sagemaker.AlgorithmSpecification\022"
-  "[\n\034training_job_resource_config\030\002 \001(\01325."
-  "flyteidl.plugins.sagemaker.TrainingJobRe"
-  "sourceConfigB5Z3github.com/lyft/flyteidl"
-  "/gen/pb-go/flyteidl/pluginsb\006proto3"
+  "\"7\n\rInputFileType\"&\n\005Value\022\014\n\010TEXT_CSV\020\000"
+  "\022\017\n\013TEXT_LIBSVM\020\001\"/\n\020MetricDefinition\022\014\n"
+  "\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"\313\002\n\026Algorithm"
+  "Specification\022\?\n\ninput_mode\030\001 \001(\0162+.flyt"
+  "eidl.plugins.sagemaker.InputMode.Value\022G"
+  "\n\016algorithm_name\030\002 \001(\0162/.flyteidl.plugin"
+  "s.sagemaker.AlgorithmName.Value\022\031\n\021algor"
+  "ithm_version\030\003 \001(\t\022H\n\022metric_definitions"
+  "\030\004 \003(\0132,.flyteidl.plugins.sagemaker.Metr"
+  "icDefinition\022B\n\017input_file_type\030\005 \001(\0132)."
+  "flyteidl.plugins.sagemaker.InputFileType"
+  "\"e\n\031TrainingJobResourceConfig\022\026\n\016instanc"
+  "e_count\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021"
+  "volume_size_in_gb\030\003 \001(\003\"\277\001\n\013TrainingJob\022"
+  "S\n\027algorithm_specification\030\001 \001(\01322.flyte"
+  "idl.plugins.sagemaker.AlgorithmSpecifica"
+  "tion\022[\n\034training_job_resource_config\030\002 \001"
+  "(\01325.flyteidl.plugins.sagemaker.Training"
+  "JobResourceConfigB5Z3github.com/lyft/fly"
+  "teidl/gen/pb-go/flyteidl/pluginsb\006proto3"
   ;
 ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = {
   false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 
   descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto,
-  "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 875,
+  "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 1000,
 };
 
 void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() {
@@ -301,6 +333,27 @@ const AlgorithmName_Value AlgorithmName::Value_MIN;
 const AlgorithmName_Value AlgorithmName::Value_MAX;
 const int AlgorithmName::Value_ARRAYSIZE;
 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
+const ::google::protobuf::EnumDescriptor* InputFileType_Value_descriptor() {
+  ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto);
+  return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[2];
+}
+bool InputFileType_Value_IsValid(int value) {
+  switch (value) {
+    case 0:
+    case 1:
+      return true;
+    default:
+      return false;
+  }
+}
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const InputFileType_Value InputFileType::TEXT_CSV;
+const InputFileType_Value InputFileType::TEXT_LIBSVM;
+const InputFileType_Value InputFileType::Value_MIN;
+const InputFileType_Value InputFileType::Value_MAX;
+const int InputFileType::Value_ARRAYSIZE;
+#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
 
 // ===================================================================
 
@@ -720,6 +773,215 @@ ::google::protobuf::Metadata AlgorithmName::GetMetadata() const {
 }
 
 
+// ===================================================================
+
+void InputFileType::InitAsDefaultInstance() {
+}
+class InputFileType::HasBitSetters {
+ public:
+};
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+InputFileType::InputFileType()
+  : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
+  SharedCtor();
+  // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.InputFileType)
+}
+InputFileType::InputFileType(const InputFileType& from)
+  : ::google::protobuf::Message(),
+      _internal_metadata_(nullptr) {
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.InputFileType)
+}
+
+void InputFileType::SharedCtor() {
+}
+
+InputFileType::~InputFileType() {
+  // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.InputFileType)
+  SharedDtor();
+}
+
+void InputFileType::SharedDtor() {
+}
+
+void InputFileType::SetCachedSize(int size) const {
+  _cached_size_.Set(size);
+}
+const InputFileType& InputFileType::default_instance() {
+  ::google::protobuf::internal::InitSCC(&::scc_info_InputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
+  return *internal_default_instance();
+}
+
+
+void InputFileType::Clear() {
+// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.InputFileType)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  _internal_metadata_.Clear();
+}
+
+#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+const char* InputFileType::_InternalParse(const char* begin, const char* end, void* object,
+                  ::google::protobuf::internal::ParseContext* ctx) {
+  auto msg = static_cast(object);
+  ::google::protobuf::int32 size; (void)size;
+  int depth; (void)depth;
+  ::google::protobuf::uint32 tag;
+  ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
+  auto ptr = begin;
+  while (ptr < end) {
+    ptr = ::google::protobuf::io::Parse32(ptr, &tag);
+    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
+    switch (tag >> 3) {
+      default: {
+        if ((tag & 7) == 4 || tag == 0) {
+          ctx->EndGroup(tag);
+          return ptr;
+        }
+        auto res = UnknownFieldParse(tag, {_InternalParse, msg},
+          ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
+        ptr = res.first;
+        GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
+        if (res.second) return ptr;
+      }
+    }  // switch
+  }  // while
+  return ptr;
+}
+#else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+bool InputFileType::MergePartialFromCodedStream(
+    ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
+  ::google::protobuf::uint32 tag;
+  // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.InputFileType)
+  for (;;) {
+    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+    tag = p.first;
+    if (!p.second) goto handle_unusual;
+  handle_unusual:
+    if (tag == 0) {
+      goto success;
+    }
+    DO_(::google::protobuf::internal::WireFormat::SkipField(
+          input, tag, _internal_metadata_.mutable_unknown_fields()));
+  }
+success:
+  // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.InputFileType)
+  return true;
+failure:
+  // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.InputFileType)
+  return false;
+#undef DO_
+}
+#endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+
+void InputFileType::SerializeWithCachedSizes(
+    ::google::protobuf::io::CodedOutputStream* output) const {
+  // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.InputFileType)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+        _internal_metadata_.unknown_fields(), output);
+  }
+  // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.InputFileType)
+}
+
+::google::protobuf::uint8* InputFileType::InternalSerializeWithCachedSizesToArray(
+    ::google::protobuf::uint8* target) const {
+  // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.InputFileType)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+        _internal_metadata_.unknown_fields(), target);
+  }
+  // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.InputFileType)
+  return target;
+}
+
+size_t InputFileType::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.InputFileType)
+  size_t total_size = 0;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    total_size +=
+      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+        _internal_metadata_.unknown_fields());
+  }
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+  SetCachedSize(cached_size);
+  return total_size;
+}
+
+void InputFileType::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.InputFileType)
+  GOOGLE_DCHECK_NE(&from, this);
+  const InputFileType* source =
+      ::google::protobuf::DynamicCastToGenerated(
+          &from);
+  if (source == nullptr) {
+  // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.InputFileType)
+    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+  } else {
+  // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.InputFileType)
+    MergeFrom(*source);
+  }
+}
+
+void InputFileType::MergeFrom(const InputFileType& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.InputFileType)
+  GOOGLE_DCHECK_NE(&from, this);
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+}
+
+void InputFileType::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.InputFileType)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+void InputFileType::CopyFrom(const InputFileType& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.InputFileType)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+bool InputFileType::IsInitialized() const {
+  return true;
+}
+
+void InputFileType::Swap(InputFileType* other) {
+  if (other == this) return;
+  InternalSwap(other);
+}
+void InputFileType::InternalSwap(InputFileType* other) {
+  using std::swap;
+  _internal_metadata_.Swap(&other->_internal_metadata_);
+}
+
+::google::protobuf::Metadata InputFileType::GetMetadata() const {
+  ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto);
+  return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages];
+}
+
+
 // ===================================================================
 
 void MetricDefinition::InitAsDefaultInstance() {
@@ -1093,16 +1355,24 @@ ::google::protobuf::Metadata MetricDefinition::GetMetadata() const {
 // ===================================================================
 
 void AlgorithmSpecification::InitAsDefaultInstance() {
+  ::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_._instance.get_mutable()->input_file_type_ = const_cast< ::flyteidl::plugins::sagemaker::InputFileType*>(
+      ::flyteidl::plugins::sagemaker::InputFileType::internal_default_instance());
 }
 class AlgorithmSpecification::HasBitSetters {
  public:
+  static const ::flyteidl::plugins::sagemaker::InputFileType& input_file_type(const AlgorithmSpecification* msg);
 };
 
+const ::flyteidl::plugins::sagemaker::InputFileType&
+AlgorithmSpecification::HasBitSetters::input_file_type(const AlgorithmSpecification* msg) {
+  return *msg->input_file_type_;
+}
 #if !defined(_MSC_VER) || _MSC_VER >= 1900
 const int AlgorithmSpecification::kInputModeFieldNumber;
 const int AlgorithmSpecification::kAlgorithmNameFieldNumber;
 const int AlgorithmSpecification::kAlgorithmVersionFieldNumber;
 const int AlgorithmSpecification::kMetricDefinitionsFieldNumber;
+const int AlgorithmSpecification::kInputFileTypeFieldNumber;
 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
 
 AlgorithmSpecification::AlgorithmSpecification()
@@ -1119,6 +1389,11 @@ AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& fro
   if (from.algorithm_version().size() > 0) {
     algorithm_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_version_);
   }
+  if (from.has_input_file_type()) {
+    input_file_type_ = new ::flyteidl::plugins::sagemaker::InputFileType(*from.input_file_type_);
+  } else {
+    input_file_type_ = nullptr;
+  }
   ::memcpy(&input_mode_, &from.input_mode_,
     static_cast(reinterpret_cast(&algorithm_name_) -
     reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_));
@@ -1129,9 +1404,9 @@ void AlgorithmSpecification::SharedCtor() {
   ::google::protobuf::internal::InitSCC(
       &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base);
   algorithm_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  ::memset(&input_mode_, 0, static_cast(
+  ::memset(&input_file_type_, 0, static_cast(
       reinterpret_cast(&algorithm_name_) -
-      reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_));
+      reinterpret_cast(&input_file_type_)) + sizeof(algorithm_name_));
 }
 
 AlgorithmSpecification::~AlgorithmSpecification() {
@@ -1141,6 +1416,7 @@ AlgorithmSpecification::~AlgorithmSpecification() {
 
 void AlgorithmSpecification::SharedDtor() {
   algorithm_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  if (this != internal_default_instance()) delete input_file_type_;
 }
 
 void AlgorithmSpecification::SetCachedSize(int size) const {
@@ -1160,6 +1436,10 @@ void AlgorithmSpecification::Clear() {
 
   metric_definitions_.Clear();
   algorithm_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  if (GetArenaNoVirtual() == nullptr && input_file_type_ != nullptr) {
+    delete input_file_type_;
+  }
+  input_file_type_ = nullptr;
   ::memset(&input_mode_, 0, static_cast(
       reinterpret_cast(&algorithm_name_) -
       reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_));
@@ -1227,6 +1507,19 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char
         } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1));
         break;
       }
+      // .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5;
+      case 5: {
+        if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
+        ptr = ::google::protobuf::io::ReadSize(ptr, &size);
+        GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
+        parser_till_end = ::flyteidl::plugins::sagemaker::InputFileType::_InternalParse;
+        object = msg->mutable_input_file_type();
+        if (size > end - ptr) goto len_delim_till_end;
+        ptr += size;
+        GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
+            {parser_till_end, object}, ptr - size, ptr));
+        break;
+      }
       default: {
       handle_unusual:
         if ((tag & 7) == 4 || tag == 0) {
@@ -1315,6 +1608,17 @@ bool AlgorithmSpecification::MergePartialFromCodedStream(
         break;
       }
 
+      // .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5;
+      case 5: {
+        if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
+          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+               input, mutable_input_file_type()));
+        } else {
+          goto handle_unusual;
+        }
+        break;
+      }
+
       default: {
       handle_unusual:
         if (tag == 0) {
@@ -1373,6 +1677,12 @@ void AlgorithmSpecification::SerializeWithCachedSizes(
       output);
   }
 
+  // .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5;
+  if (this->has_input_file_type()) {
+    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+      5, HasBitSetters::input_file_type(this), output);
+  }
+
   if (_internal_metadata_.have_unknown_fields()) {
     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
         _internal_metadata_.unknown_fields(), output);
@@ -1417,6 +1727,13 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi
         4, this->metric_definitions(static_cast(i)), target);
   }
 
+  // .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5;
+  if (this->has_input_file_type()) {
+    target = ::google::protobuf::internal::WireFormatLite::
+      InternalWriteMessageToArray(
+        5, HasBitSetters::input_file_type(this), target);
+  }
+
   if (_internal_metadata_.have_unknown_fields()) {
     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
         _internal_metadata_.unknown_fields(), target);
@@ -1456,6 +1773,13 @@ size_t AlgorithmSpecification::ByteSizeLong() const {
         this->algorithm_version());
   }
 
+  // .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5;
+  if (this->has_input_file_type()) {
+    total_size += 1 +
+      ::google::protobuf::internal::WireFormatLite::MessageSize(
+        *input_file_type_);
+  }
+
   // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1;
   if (this->input_mode() != 0) {
     total_size += 1 +
@@ -1500,6 +1824,9 @@ void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) {
 
     algorithm_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_version_);
   }
+  if (from.has_input_file_type()) {
+    mutable_input_file_type()->::flyteidl::plugins::sagemaker::InputFileType::MergeFrom(from.input_file_type());
+  }
   if (from.input_mode() != 0) {
     set_input_mode(from.input_mode());
   }
@@ -1536,6 +1863,7 @@ void AlgorithmSpecification::InternalSwap(AlgorithmSpecification* other) {
   CastToBase(&metric_definitions_)->InternalSwap(CastToBase(&other->metric_definitions_));
   algorithm_version_.Swap(&other->algorithm_version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
     GetArenaNoVirtual());
+  swap(input_file_type_, other->input_file_type_);
   swap(input_mode_, other->input_mode_);
   swap(algorithm_name_, other->algorithm_name_);
 }
@@ -2303,6 +2631,9 @@ template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::InputMode* Arena::C
 template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmName* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmName >(Arena* arena) {
   return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmName >(arena);
 }
+template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::InputFileType* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::InputFileType >(Arena* arena) {
+  return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::InputFileType >(arena);
+}
 template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::MetricDefinition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::MetricDefinition >(Arena* arena) {
   return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::MetricDefinition >(arena);
 }
diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h
index 52aff6133..e51da0708 100644
--- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h
+++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h
@@ -43,7 +43,7 @@ struct TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto {
     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
   static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
-  static const ::google::protobuf::internal::ParseTable schema[6]
+  static const ::google::protobuf::internal::ParseTable schema[7]
     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
   static const ::google::protobuf::internal::FieldMetadata field_metadata[];
   static const ::google::protobuf::internal::SerializationTable serialization_table[];
@@ -59,6 +59,9 @@ extern AlgorithmNameDefaultTypeInternal _AlgorithmName_default_instance_;
 class AlgorithmSpecification;
 class AlgorithmSpecificationDefaultTypeInternal;
 extern AlgorithmSpecificationDefaultTypeInternal _AlgorithmSpecification_default_instance_;
+class InputFileType;
+class InputFileTypeDefaultTypeInternal;
+extern InputFileTypeDefaultTypeInternal _InputFileType_default_instance_;
 class InputMode;
 class InputModeDefaultTypeInternal;
 extern InputModeDefaultTypeInternal _InputMode_default_instance_;
@@ -78,6 +81,7 @@ namespace google {
 namespace protobuf {
 template<> ::flyteidl::plugins::sagemaker::AlgorithmName* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmName>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(Arena*);
+template<> ::flyteidl::plugins::sagemaker::InputFileType* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::InputFileType>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::InputMode* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::InputMode>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::MetricDefinition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::MetricDefinition>(Arena*);
 template<> ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(Arena*);
@@ -130,6 +134,27 @@ inline bool AlgorithmName_Value_Parse(
   return ::google::protobuf::internal::ParseNamedEnum(
     AlgorithmName_Value_descriptor(), name, value);
 }
+enum InputFileType_Value {
+  InputFileType_Value_TEXT_CSV = 0,
+  InputFileType_Value_TEXT_LIBSVM = 1,
+  InputFileType_Value_InputFileType_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
+  InputFileType_Value_InputFileType_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
+};
+bool InputFileType_Value_IsValid(int value);
+const InputFileType_Value InputFileType_Value_Value_MIN = InputFileType_Value_TEXT_CSV;
+const InputFileType_Value InputFileType_Value_Value_MAX = InputFileType_Value_TEXT_LIBSVM;
+const int InputFileType_Value_Value_ARRAYSIZE = InputFileType_Value_Value_MAX + 1;
+
+const ::google::protobuf::EnumDescriptor* InputFileType_Value_descriptor();
+inline const ::std::string& InputFileType_Value_Name(InputFileType_Value value) {
+  return ::google::protobuf::internal::NameOfEnum(
+    InputFileType_Value_descriptor(), value);
+}
+inline bool InputFileType_Value_Parse(
+    const ::std::string& name, InputFileType_Value* value) {
+  return ::google::protobuf::internal::ParseNamedEnum(
+    InputFileType_Value_descriptor(), name, value);
+}
 // ===================================================================
 
 class InputMode final :
@@ -394,6 +419,137 @@ class AlgorithmName final :
 };
 // -------------------------------------------------------------------
 
+class InputFileType final :
+    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.InputFileType) */ {
+ public:
+  InputFileType();
+  virtual ~InputFileType();
+
+  InputFileType(const InputFileType& from);
+
+  inline InputFileType& operator=(const InputFileType& from) {
+    CopyFrom(from);
+    return *this;
+  }
+  #if LANG_CXX11
+  InputFileType(InputFileType&& from) noexcept
+    : InputFileType() {
+    *this = ::std::move(from);
+  }
+
+  inline InputFileType& operator=(InputFileType&& from) noexcept {
+    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+      if (this != &from) InternalSwap(&from);
+    } else {
+      CopyFrom(from);
+    }
+    return *this;
+  }
+  #endif
+  static const ::google::protobuf::Descriptor* descriptor() {
+    return default_instance().GetDescriptor();
+  }
+  static const InputFileType& default_instance();
+
+  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
+  static inline const InputFileType* internal_default_instance() {
+    return reinterpret_cast(
+               &_InputFileType_default_instance_);
+  }
+  static constexpr int kIndexInFileMessages =
+    2;
+
+  void Swap(InputFileType* other);
+  friend void swap(InputFileType& a, InputFileType& b) {
+    a.Swap(&b);
+  }
+
+  // implements Message ----------------------------------------------
+
+  inline InputFileType* New() const final {
+    return CreateMaybeMessage(nullptr);
+  }
+
+  InputFileType* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
+  void CopyFrom(const InputFileType& from);
+  void MergeFrom(const InputFileType& from);
+  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+  bool IsInitialized() const final;
+
+  size_t ByteSizeLong() const final;
+  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
+  ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
+  #else
+  bool MergePartialFromCodedStream(
+      ::google::protobuf::io::CodedInputStream* input) final;
+  #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
+  void SerializeWithCachedSizes(
+      ::google::protobuf::io::CodedOutputStream* output) const final;
+  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+      ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
+  private:
+  void SharedCtor();
+  void SharedDtor();
+  void SetCachedSize(int size) const final;
+  void InternalSwap(InputFileType* other);
+  private:
+  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+    return nullptr;
+  }
+  inline void* MaybeArenaPtr() const {
+    return nullptr;
+  }
+  public:
+
+  ::google::protobuf::Metadata GetMetadata() const final;
+
+  // nested types ----------------------------------------------------
+
+  typedef InputFileType_Value Value;
+  static const Value TEXT_CSV =
+    InputFileType_Value_TEXT_CSV;
+  static const Value TEXT_LIBSVM =
+    InputFileType_Value_TEXT_LIBSVM;
+  static inline bool Value_IsValid(int value) {
+    return InputFileType_Value_IsValid(value);
+  }
+  static const Value Value_MIN =
+    InputFileType_Value_Value_MIN;
+  static const Value Value_MAX =
+    InputFileType_Value_Value_MAX;
+  static const int Value_ARRAYSIZE =
+    InputFileType_Value_Value_ARRAYSIZE;
+  static inline const ::google::protobuf::EnumDescriptor*
+  Value_descriptor() {
+    return InputFileType_Value_descriptor();
+  }
+  static inline const ::std::string& Value_Name(Value value) {
+    return InputFileType_Value_Name(value);
+  }
+  static inline bool Value_Parse(const ::std::string& name,
+      Value* value) {
+    return InputFileType_Value_Parse(name, value);
+  }
+
+  // accessors -------------------------------------------------------
+
+  // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputFileType)
+ private:
+  class HasBitSetters;
+
+  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto;
+};
+// -------------------------------------------------------------------
+
 class MetricDefinition final :
     public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.MetricDefinition) */ {
  public:
@@ -432,7 +588,7 @@ class MetricDefinition final :
                &_MetricDefinition_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    2;
+    3;
 
   void Swap(MetricDefinition* other);
   friend void swap(MetricDefinition& a, MetricDefinition& b) {
@@ -567,7 +723,7 @@ class AlgorithmSpecification final :
                &_AlgorithmSpecification_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    3;
+    4;
 
   void Swap(AlgorithmSpecification* other);
   friend void swap(AlgorithmSpecification& a, AlgorithmSpecification& b) {
@@ -650,6 +806,15 @@ class AlgorithmSpecification final :
   ::std::string* release_algorithm_version();
   void set_allocated_algorithm_version(::std::string* algorithm_version);
 
+  // .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5;
+  bool has_input_file_type() const;
+  void clear_input_file_type();
+  static const int kInputFileTypeFieldNumber = 5;
+  const ::flyteidl::plugins::sagemaker::InputFileType& input_file_type() const;
+  ::flyteidl::plugins::sagemaker::InputFileType* release_input_file_type();
+  ::flyteidl::plugins::sagemaker::InputFileType* mutable_input_file_type();
+  void set_allocated_input_file_type(::flyteidl::plugins::sagemaker::InputFileType* input_file_type);
+
   // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1;
   void clear_input_mode();
   static const int kInputModeFieldNumber = 1;
@@ -669,6 +834,7 @@ class AlgorithmSpecification final :
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::MetricDefinition > metric_definitions_;
   ::google::protobuf::internal::ArenaStringPtr algorithm_version_;
+  ::flyteidl::plugins::sagemaker::InputFileType* input_file_type_;
   int input_mode_;
   int algorithm_name_;
   mutable ::google::protobuf::internal::CachedSize _cached_size_;
@@ -714,7 +880,7 @@ class TrainingJobResourceConfig final :
                &_TrainingJobResourceConfig_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    4;
+    5;
 
   void Swap(TrainingJobResourceConfig* other);
   friend void swap(TrainingJobResourceConfig& a, TrainingJobResourceConfig& b) {
@@ -848,7 +1014,7 @@ class TrainingJob final :
                &_TrainingJob_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    5;
+    6;
 
   void Swap(TrainingJob* other);
   friend void swap(TrainingJob& a, TrainingJob& b) {
@@ -950,6 +1116,10 @@ class TrainingJob final :
 
 // -------------------------------------------------------------------
 
+// InputFileType
+
+// -------------------------------------------------------------------
+
 // MetricDefinition
 
 // string name = 1;
@@ -1173,6 +1343,57 @@ AlgorithmSpecification::metric_definitions() const {
   return metric_definitions_;
 }
 
+// .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5;
+inline bool AlgorithmSpecification::has_input_file_type() const {
+  return this != internal_default_instance() && input_file_type_ != nullptr;
+}
+inline void AlgorithmSpecification::clear_input_file_type() {
+  if (GetArenaNoVirtual() == nullptr && input_file_type_ != nullptr) {
+    delete input_file_type_;
+  }
+  input_file_type_ = nullptr;
+}
+inline const ::flyteidl::plugins::sagemaker::InputFileType& AlgorithmSpecification::input_file_type() const {
+  const ::flyteidl::plugins::sagemaker::InputFileType* p = input_file_type_;
+  // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type)
+  return p != nullptr ? *p : *reinterpret_cast(
+      &::flyteidl::plugins::sagemaker::_InputFileType_default_instance_);
+}
+inline ::flyteidl::plugins::sagemaker::InputFileType* AlgorithmSpecification::release_input_file_type() {
+  // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type)
+  
+  ::flyteidl::plugins::sagemaker::InputFileType* temp = input_file_type_;
+  input_file_type_ = nullptr;
+  return temp;
+}
+inline ::flyteidl::plugins::sagemaker::InputFileType* AlgorithmSpecification::mutable_input_file_type() {
+  
+  if (input_file_type_ == nullptr) {
+    auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::InputFileType>(GetArenaNoVirtual());
+    input_file_type_ = p;
+  }
+  // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type)
+  return input_file_type_;
+}
+inline void AlgorithmSpecification::set_allocated_input_file_type(::flyteidl::plugins::sagemaker::InputFileType* input_file_type) {
+  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+  if (message_arena == nullptr) {
+    delete input_file_type_;
+  }
+  if (input_file_type) {
+    ::google::protobuf::Arena* submessage_arena = nullptr;
+    if (message_arena != submessage_arena) {
+      input_file_type = ::google::protobuf::internal::GetOwnedMessage(
+          message_arena, input_file_type, submessage_arena);
+    }
+    
+  } else {
+    
+  }
+  input_file_type_ = input_file_type;
+  // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type)
+}
+
 // -------------------------------------------------------------------
 
 // TrainingJobResourceConfig
@@ -1377,6 +1598,8 @@ inline void TrainingJob::set_allocated_training_job_resource_config(::flyteidl::
 
 // -------------------------------------------------------------------
 
+// -------------------------------------------------------------------
+
 
 // @@protoc_insertion_point(namespace_scope)
 
@@ -1397,6 +1620,11 @@ template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::AlgorithmName_Value>() {
   return ::flyteidl::plugins::sagemaker::AlgorithmName_Value_descriptor();
 }
+template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::InputFileType_Value> : ::std::true_type {};
+template <>
+inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::InputFileType_Value>() {
+  return ::flyteidl::plugins::sagemaker::InputFileType_Value_descriptor();
+}
 
 }  // namespace protobuf
 }  // namespace google
diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go
index 17f903a55..2823257e5 100644
--- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go
+++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go
@@ -71,6 +71,31 @@ func (AlgorithmName_Value) EnumDescriptor() ([]byte, []int) {
 	return fileDescriptor_6a68f64d8fd9fe30, []int{1, 0}
 }
 
+type InputFileType_Value int32
+
+const (
+	InputFileType_TEXT_CSV    InputFileType_Value = 0
+	InputFileType_TEXT_LIBSVM InputFileType_Value = 1
+)
+
+var InputFileType_Value_name = map[int32]string{
+	0: "TEXT_CSV",
+	1: "TEXT_LIBSVM",
+}
+
+var InputFileType_Value_value = map[string]int32{
+	"TEXT_CSV":    0,
+	"TEXT_LIBSVM": 1,
+}
+
+func (x InputFileType_Value) String() string {
+	return proto.EnumName(InputFileType_Value_name, int32(x))
+}
+
+func (InputFileType_Value) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_6a68f64d8fd9fe30, []int{2, 0}
+}
+
 type InputMode struct {
 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 	XXX_unrecognized     []byte   `json:"-"`
@@ -133,6 +158,40 @@ func (m *AlgorithmName) XXX_DiscardUnknown() {
 
 var xxx_messageInfo_AlgorithmName proto.InternalMessageInfo
 
+// When using FILE input mode, different SageMaker built-in algorithms require different file types of input data
+// See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+// https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+type InputFileType struct {
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *InputFileType) Reset()         { *m = InputFileType{} }
+func (m *InputFileType) String() string { return proto.CompactTextString(m) }
+func (*InputFileType) ProtoMessage()    {}
+func (*InputFileType) Descriptor() ([]byte, []int) {
+	return fileDescriptor_6a68f64d8fd9fe30, []int{2}
+}
+
+func (m *InputFileType) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_InputFileType.Unmarshal(m, b)
+}
+func (m *InputFileType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_InputFileType.Marshal(b, m, deterministic)
+}
+func (m *InputFileType) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_InputFileType.Merge(m, src)
+}
+func (m *InputFileType) XXX_Size() int {
+	return xxx_messageInfo_InputFileType.Size(m)
+}
+func (m *InputFileType) XXX_DiscardUnknown() {
+	xxx_messageInfo_InputFileType.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_InputFileType proto.InternalMessageInfo
+
 // Specifies a metric that the training algorithm writes to stderr or stdout.
 // This object is a pass-through.
 // See this for details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_MetricDefinition.html
@@ -150,7 +209,7 @@ func (m *MetricDefinition) Reset()         { *m = MetricDefinition{} }
 func (m *MetricDefinition) String() string { return proto.CompactTextString(m) }
 func (*MetricDefinition) ProtoMessage()    {}
 func (*MetricDefinition) Descriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{2}
+	return fileDescriptor_6a68f64d8fd9fe30, []int{3}
 }
 
 func (m *MetricDefinition) XXX_Unmarshal(b []byte) error {
@@ -204,17 +263,21 @@ type AlgorithmSpecification struct {
 	// A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
 	// See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
 	// and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
-	MetricDefinitions    []*MetricDefinition `protobuf:"bytes,4,rep,name=metric_definitions,json=metricDefinitions,proto3" json:"metric_definitions,omitempty"`
-	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
-	XXX_unrecognized     []byte              `json:"-"`
-	XXX_sizecache        int32               `json:"-"`
+	MetricDefinitions []*MetricDefinition `protobuf:"bytes,4,rep,name=metric_definitions,json=metricDefinitions,proto3" json:"metric_definitions,omitempty"`
+	// The type of the input files (when using FILE input mode)
+	// See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+	// https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+	InputFileType        *InputFileType `protobuf:"bytes,5,opt,name=input_file_type,json=inputFileType,proto3" json:"input_file_type,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
+	XXX_unrecognized     []byte         `json:"-"`
+	XXX_sizecache        int32          `json:"-"`
 }
 
 func (m *AlgorithmSpecification) Reset()         { *m = AlgorithmSpecification{} }
 func (m *AlgorithmSpecification) String() string { return proto.CompactTextString(m) }
 func (*AlgorithmSpecification) ProtoMessage()    {}
 func (*AlgorithmSpecification) Descriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{3}
+	return fileDescriptor_6a68f64d8fd9fe30, []int{4}
 }
 
 func (m *AlgorithmSpecification) XXX_Unmarshal(b []byte) error {
@@ -263,6 +326,13 @@ func (m *AlgorithmSpecification) GetMetricDefinitions() []*MetricDefinition {
 	return nil
 }
 
+func (m *AlgorithmSpecification) GetInputFileType() *InputFileType {
+	if m != nil {
+		return m.InputFileType
+	}
+	return nil
+}
+
 // TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the
 // number of instances to launch, and the size of the ML storage volume the user wants to provision
 // Refer to SageMaker official doc for more details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
@@ -282,7 +352,7 @@ func (m *TrainingJobResourceConfig) Reset()         { *m = TrainingJobResourceCo
 func (m *TrainingJobResourceConfig) String() string { return proto.CompactTextString(m) }
 func (*TrainingJobResourceConfig) ProtoMessage()    {}
 func (*TrainingJobResourceConfig) Descriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{4}
+	return fileDescriptor_6a68f64d8fd9fe30, []int{5}
 }
 
 func (m *TrainingJobResourceConfig) XXX_Unmarshal(b []byte) error {
@@ -338,7 +408,7 @@ func (m *TrainingJob) Reset()         { *m = TrainingJob{} }
 func (m *TrainingJob) String() string { return proto.CompactTextString(m) }
 func (*TrainingJob) ProtoMessage()    {}
 func (*TrainingJob) Descriptor() ([]byte, []int) {
-	return fileDescriptor_6a68f64d8fd9fe30, []int{5}
+	return fileDescriptor_6a68f64d8fd9fe30, []int{6}
 }
 
 func (m *TrainingJob) XXX_Unmarshal(b []byte) error {
@@ -376,8 +446,10 @@ func (m *TrainingJob) GetTrainingJobResourceConfig() *TrainingJobResourceConfig
 func init() {
 	proto.RegisterEnum("flyteidl.plugins.sagemaker.InputMode_Value", InputMode_Value_name, InputMode_Value_value)
 	proto.RegisterEnum("flyteidl.plugins.sagemaker.AlgorithmName_Value", AlgorithmName_Value_name, AlgorithmName_Value_value)
+	proto.RegisterEnum("flyteidl.plugins.sagemaker.InputFileType_Value", InputFileType_Value_name, InputFileType_Value_value)
 	proto.RegisterType((*InputMode)(nil), "flyteidl.plugins.sagemaker.InputMode")
 	proto.RegisterType((*AlgorithmName)(nil), "flyteidl.plugins.sagemaker.AlgorithmName")
+	proto.RegisterType((*InputFileType)(nil), "flyteidl.plugins.sagemaker.InputFileType")
 	proto.RegisterType((*MetricDefinition)(nil), "flyteidl.plugins.sagemaker.MetricDefinition")
 	proto.RegisterType((*AlgorithmSpecification)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification")
 	proto.RegisterType((*TrainingJobResourceConfig)(nil), "flyteidl.plugins.sagemaker.TrainingJobResourceConfig")
@@ -389,39 +461,43 @@ func init() {
 }
 
 var fileDescriptor_6a68f64d8fd9fe30 = []byte{
-	// 540 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xd1, 0x6e, 0xd3, 0x4a,
-	0x10, 0xad, 0x9b, 0xb4, 0xf7, 0x66, 0x42, 0x22, 0x67, 0x85, 0x4a, 0x5a, 0x10, 0x8a, 0x8c, 0x90,
-	0x82, 0x4a, 0x6d, 0x91, 0xaa, 0x6f, 0xbc, 0xd0, 0x50, 0xaa, 0x54, 0x84, 0x54, 0x4e, 0x88, 0x10,
-	0x3c, 0x58, 0xb6, 0x33, 0xde, 0x2e, 0xb5, 0x77, 0x2d, 0x7b, 0x1d, 0x91, 0x7e, 0x06, 0x1f, 0xc5,
-	0x07, 0xf1, 0x05, 0x28, 0x9b, 0xd8, 0x4d, 0x23, 0x12, 0xf1, 0xb6, 0x3e, 0x33, 0x3e, 0x73, 0xe6,
-	0xcc, 0x0c, 0x9c, 0x04, 0xe1, 0x4c, 0x22, 0x9b, 0x84, 0x56, 0x1c, 0x66, 0x94, 0xf1, 0xd4, 0x4a,
-	0x5d, 0x8a, 0x91, 0x7b, 0x8b, 0x89, 0x25, 0x13, 0x97, 0x71, 0xc6, 0xa9, 0xf3, 0x5d, 0x78, 0x66,
-	0x9c, 0x08, 0x29, 0xc8, 0x51, 0x9e, 0x6e, 0x2e, 0xd3, 0xcd, 0x22, 0xfd, 0xe8, 0x39, 0x15, 0x82,
-	0x86, 0x68, 0xa9, 0x4c, 0x2f, 0x0b, 0xac, 0x49, 0x96, 0xb8, 0x92, 0x09, 0xbe, 0xf8, 0xd7, 0x68,
-	0x43, 0xa5, 0xc7, 0xe3, 0x4c, 0xf6, 0xc5, 0x04, 0x8d, 0xa7, 0xb0, 0x37, 0x76, 0xc3, 0x0c, 0xc9,
-	0xff, 0x50, 0xfe, 0xd0, 0xfb, 0x78, 0xa1, 0xef, 0xcc, 0x5f, 0xd7, 0xbd, 0xeb, 0x0b, 0x5d, 0x33,
-	0xde, 0x40, 0xed, 0x5d, 0x48, 0x45, 0xc2, 0xe4, 0x4d, 0xf4, 0xc9, 0x8d, 0xd0, 0x68, 0xe5, 0xd9,
-	0x00, 0xfb, 0xdd, 0xcf, 0xc3, 0xd1, 0xa0, 0xaf, 0xef, 0x90, 0x2a, 0xfc, 0xf7, 0xe5, 0xf2, 0x7c,
-	0x30, 0x18, 0x8e, 0x74, 0xcd, 0x78, 0x0b, 0x7a, 0x1f, 0x65, 0xc2, 0xfc, 0xf7, 0x18, 0x30, 0xce,
-	0xe6, 0x65, 0x09, 0x81, 0x32, 0x77, 0x23, 0x6c, 0x6a, 0x2d, 0xad, 0x5d, 0xb1, 0xd5, 0x9b, 0x3c,
-	0x86, 0xbd, 0x04, 0x29, 0xfe, 0x68, 0xee, 0x2a, 0x70, 0xf1, 0x61, 0xfc, 0xda, 0x85, 0x83, 0xa2,
-	0xe2, 0x30, 0x46, 0x9f, 0x05, 0xcc, 0x57, 0xda, 0xc9, 0x15, 0x00, 0x9b, 0xab, 0x76, 0x22, 0x31,
-	0x59, 0x50, 0xd5, 0x3b, 0xc7, 0xe6, 0x66, 0x1b, 0xcc, 0xa2, 0x47, 0x53, 0x49, 0xb6, 0x2b, 0x2c,
-	0x07, 0xc8, 0x18, 0xea, 0x6e, 0x5e, 0xc5, 0x51, 0xd2, 0x76, 0x15, 0x9f, 0xb5, 0x8d, 0xef, 0x81,
-	0x13, 0x4b, 0xce, 0x9a, 0xbb, 0x0a, 0x92, 0x63, 0x68, 0xdc, 0xf3, 0x4e, 0x31, 0x49, 0x99, 0xe0,
-	0xcd, 0x92, 0x6a, 0x50, 0x2f, 0x02, 0xe3, 0x05, 0x4e, 0xbe, 0x01, 0x89, 0x94, 0x53, 0xce, 0xa4,
-	0xb0, 0x2a, 0x6d, 0x96, 0x5b, 0xa5, 0x76, 0xb5, 0xf3, 0x7a, 0x9b, 0x90, 0x75, 0x7f, 0xed, 0x46,
-	0xb4, 0x86, 0xa4, 0xc6, 0x4f, 0x0d, 0x0e, 0x47, 0xcb, 0xb5, 0xb9, 0x12, 0x9e, 0x8d, 0xa9, 0xc8,
-	0x12, 0x1f, 0xbb, 0x82, 0x07, 0x8c, 0x92, 0x97, 0x50, 0x67, 0x3c, 0x95, 0x2e, 0xf7, 0xd1, 0xf1,
-	0x45, 0xc6, 0xa5, 0xf2, 0xb3, 0x64, 0xd7, 0x72, 0xb4, 0x3b, 0x07, 0xc9, 0x0b, 0x28, 0x00, 0x47,
-	0xce, 0x62, 0x5c, 0xce, 0xea, 0x51, 0x0e, 0x8e, 0x66, 0x31, 0x92, 0x57, 0xd0, 0x98, 0x8a, 0x30,
-	0x8b, 0xd0, 0x49, 0xd9, 0x1d, 0x3a, 0x8c, 0x3b, 0xd4, 0x53, 0x3d, 0x97, 0xec, 0xfa, 0x22, 0x30,
-	0x64, 0x77, 0xd8, 0xe3, 0x97, 0x9e, 0xf1, 0x5b, 0x83, 0xea, 0x8a, 0x28, 0x72, 0x0b, 0x4f, 0xee,
-	0xed, 0x4a, 0x57, 0xa7, 0xad, 0xf4, 0x54, 0x3b, 0x9d, 0x7f, 0x9a, 0xc7, 0x83, 0x3d, 0xb1, 0x0f,
-	0xdc, 0xbf, 0xef, 0xcf, 0x14, 0x9e, 0xad, 0xde, 0x91, 0x93, 0x2c, 0x2d, 0x71, 0x7c, 0xe5, 0x89,
-	0xea, 0xad, 0xda, 0x39, 0xdb, 0x56, 0x71, 0xa3, 0xa1, 0xf6, 0xa1, 0xdc, 0x14, 0x3a, 0x3f, 0xfb,
-	0x7a, 0x4a, 0x99, 0xbc, 0xc9, 0x3c, 0xd3, 0x17, 0x91, 0x15, 0xce, 0x02, 0x69, 0x15, 0xa7, 0x4e,
-	0x91, 0x5b, 0xb1, 0x77, 0x42, 0x85, 0xb5, 0x7e, 0xfd, 0xde, 0xbe, 0xba, 0xd5, 0xd3, 0x3f, 0x01,
-	0x00, 0x00, 0xff, 0xff, 0x32, 0x95, 0x03, 0x39, 0x18, 0x04, 0x00, 0x00,
+	// 605 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x41, 0x4f, 0xdb, 0x4c,
+	0x10, 0xc5, 0x04, 0xf8, 0x60, 0x4c, 0x82, 0x59, 0x7d, 0xa2, 0x81, 0x56, 0x55, 0xe4, 0xaa, 0x55,
+	0x10, 0xc5, 0x56, 0x83, 0x50, 0x2f, 0xbd, 0x94, 0x14, 0x50, 0x10, 0x29, 0xd4, 0x49, 0x23, 0xd4,
+	0x1e, 0x2c, 0xdb, 0x19, 0x9b, 0x2d, 0xf6, 0xae, 0x65, 0xaf, 0x51, 0xc3, 0xcf, 0xe8, 0xad, 0x7f,
+	0xb3, 0xbf, 0xa0, 0xf2, 0x3a, 0x36, 0x01, 0x15, 0xda, 0x9b, 0xf7, 0xed, 0xec, 0x9b, 0x37, 0x6f,
+	0xc6, 0x03, 0xbb, 0x7e, 0x38, 0x11, 0x48, 0xc7, 0xa1, 0x19, 0x87, 0x59, 0x40, 0x59, 0x6a, 0xa6,
+	0x4e, 0x80, 0x91, 0x73, 0x85, 0x89, 0x29, 0x12, 0x87, 0x32, 0xca, 0x02, 0xfb, 0x1b, 0x77, 0x8d,
+	0x38, 0xe1, 0x82, 0x93, 0xad, 0x32, 0xdc, 0x98, 0x86, 0x1b, 0x55, 0xf8, 0xd6, 0xf3, 0x80, 0xf3,
+	0x20, 0x44, 0x53, 0x46, 0xba, 0x99, 0x6f, 0x8e, 0xb3, 0xc4, 0x11, 0x94, 0xb3, 0xe2, 0xad, 0xde,
+	0x86, 0x95, 0x1e, 0x8b, 0x33, 0xd1, 0xe7, 0x63, 0xd4, 0x9f, 0xc2, 0xe2, 0xc8, 0x09, 0x33, 0x24,
+	0xcb, 0xb0, 0x70, 0xd4, 0x3b, 0x3d, 0xd4, 0xe6, 0xf2, 0xaf, 0xf3, 0xde, 0xf9, 0xa1, 0xa6, 0xe8,
+	0x6f, 0xa0, 0xfe, 0x3e, 0x0c, 0x78, 0x42, 0xc5, 0x65, 0xf4, 0xd1, 0x89, 0x50, 0x6f, 0x95, 0xd1,
+	0x00, 0x4b, 0xdd, 0xcf, 0x83, 0xe1, 0x59, 0x5f, 0x9b, 0x23, 0x2a, 0xfc, 0x77, 0x71, 0x7c, 0x70,
+	0x76, 0x36, 0x18, 0x6a, 0x8a, 0xfe, 0x16, 0xea, 0x92, 0xfc, 0x88, 0x86, 0x38, 0x9c, 0xc4, 0xa8,
+	0xbf, 0x2a, 0x9f, 0xac, 0xc2, 0xf2, 0xf0, 0xf0, 0x62, 0x68, 0x77, 0x07, 0x23, 0x6d, 0x8e, 0xac,
+	0x81, 0x2a, 0x4f, 0xa7, 0xbd, 0x83, 0xc1, 0xa8, 0xaf, 0x29, 0xfa, 0x3b, 0xd0, 0xfa, 0x28, 0x12,
+	0xea, 0x7d, 0x40, 0x9f, 0x32, 0x9a, 0xeb, 0x25, 0x04, 0x16, 0x98, 0x13, 0x61, 0x53, 0x69, 0x29,
+	0xed, 0x15, 0x4b, 0x7e, 0x93, 0xff, 0x61, 0x31, 0xc1, 0x00, 0xbf, 0x37, 0xe7, 0x25, 0x58, 0x1c,
+	0xf4, 0x9f, 0x35, 0xd8, 0xa8, 0xa4, 0x0e, 0x62, 0xf4, 0xa8, 0x4f, 0x3d, 0x59, 0x34, 0x39, 0x01,
+	0xa0, 0xb9, 0x22, 0x3b, 0xe2, 0xe3, 0x82, 0xaa, 0xd1, 0xd9, 0x31, 0x1e, 0xf6, 0xcf, 0xa8, 0xcc,
+	0x31, 0xa4, 0x70, 0x6b, 0x85, 0x96, 0x00, 0x19, 0x41, 0xc3, 0x29, 0xb3, 0xd8, 0x52, 0xda, 0xbc,
+	0xe4, 0x33, 0x1f, 0xe3, 0xbb, 0x63, 0xe1, 0x94, 0xb3, 0xee, 0xcc, 0x82, 0x64, 0x07, 0xd6, 0x6f,
+	0x79, 0xaf, 0x31, 0x49, 0x29, 0x67, 0xcd, 0x9a, 0x2c, 0x50, 0xab, 0x2e, 0x46, 0x05, 0x4e, 0xbe,
+	0x02, 0x89, 0xa4, 0x53, 0xf6, 0xb8, 0xb2, 0x2a, 0x6d, 0x2e, 0xb4, 0x6a, 0x6d, 0xb5, 0xf3, 0xfa,
+	0x31, 0x21, 0xf7, 0xfd, 0xb5, 0xd6, 0xa3, 0x7b, 0x48, 0x4a, 0x3e, 0xc1, 0x5a, 0xe1, 0x96, 0x4f,
+	0x43, 0xb4, 0xc5, 0x24, 0xc6, 0xe6, 0x62, 0x4b, 0x69, 0xab, 0x9d, 0xed, 0xbf, 0x5a, 0x56, 0xb6,
+	0xdc, 0xaa, 0xd3, 0x3b, 0x13, 0xf0, 0x43, 0x81, 0xcd, 0xe1, 0x74, 0x84, 0x4f, 0xb8, 0x6b, 0x61,
+	0xca, 0xb3, 0xc4, 0xc3, 0x2e, 0x67, 0x3e, 0x0d, 0xc8, 0x4b, 0x68, 0x50, 0x96, 0x0a, 0x87, 0x79,
+	0x68, 0x7b, 0x3c, 0x63, 0x42, 0xb6, 0xa8, 0x96, 0x93, 0x14, 0x68, 0x37, 0x07, 0xc9, 0x0b, 0xa8,
+	0x80, 0x42, 0x55, 0xd1, 0xfe, 0xd5, 0x12, 0xcc, 0x33, 0x91, 0x6d, 0x58, 0xbf, 0xe6, 0x61, 0x16,
+	0xa1, 0x9d, 0xd2, 0x1b, 0xb4, 0x29, 0xb3, 0x03, 0x57, 0xda, 0x58, 0xb3, 0x1a, 0xc5, 0xc5, 0x80,
+	0xde, 0x60, 0x8f, 0x1d, 0xbb, 0xfa, 0x2f, 0x05, 0xd4, 0x19, 0x51, 0xe4, 0x0a, 0x9e, 0xdc, 0x76,
+	0x20, 0x9d, 0x1d, 0x20, 0xa9, 0x47, 0xed, 0x74, 0xfe, 0xa9, 0xc5, 0x77, 0x46, 0xcf, 0xda, 0x70,
+	0xfe, 0x3c, 0x92, 0xd7, 0xf0, 0x6c, 0xf6, 0x9f, 0xb6, 0x93, 0xa9, 0x25, 0xb6, 0x27, 0x3d, 0x91,
+	0xb5, 0xa9, 0x9d, 0xfd, 0xc7, 0x32, 0x3e, 0x68, 0xa8, 0xb5, 0x29, 0x1e, 0xba, 0x3a, 0xd8, 0xff,
+	0xb2, 0x17, 0x50, 0x71, 0x99, 0xb9, 0x86, 0xc7, 0x23, 0x33, 0x9c, 0xf8, 0xc2, 0xac, 0xd6, 0x4e,
+	0x80, 0xcc, 0x8c, 0xdd, 0xdd, 0x80, 0x9b, 0xf7, 0x37, 0x91, 0xbb, 0x24, 0xf7, 0xc6, 0xde, 0xef,
+	0x00, 0x00, 0x00, 0xff, 0xff, 0x18, 0x54, 0xe8, 0xb7, 0xa4, 0x04, 0x00, 0x00,
 }
diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go
index 698acbdc4..c9cc606e3 100644
--- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go
+++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go
@@ -165,6 +165,71 @@ var _ interface {
 	ErrorName() string
 } = AlgorithmNameValidationError{}
 
+// Validate checks the field values on InputFileType with the rules defined in
+// the proto definition for this message. If any rules are violated, an error
+// is returned.
+func (m *InputFileType) Validate() error {
+	if m == nil {
+		return nil
+	}
+
+	return nil
+}
+
+// InputFileTypeValidationError is the validation error returned by
+// InputFileType.Validate if the designated constraints aren't met.
+type InputFileTypeValidationError struct {
+	field  string
+	reason string
+	cause  error
+	key    bool
+}
+
+// Field function returns field value.
+func (e InputFileTypeValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e InputFileTypeValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e InputFileTypeValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e InputFileTypeValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e InputFileTypeValidationError) ErrorName() string { return "InputFileTypeValidationError" }
+
+// Error satisfies the builtin error interface
+func (e InputFileTypeValidationError) Error() string {
+	cause := ""
+	if e.cause != nil {
+		cause = fmt.Sprintf(" | caused by: %v", e.cause)
+	}
+
+	key := ""
+	if e.key {
+		key = "key for "
+	}
+
+	return fmt.Sprintf(
+		"invalid %sInputFileType.%s: %s%s",
+		key,
+		e.field,
+		e.reason,
+		cause)
+}
+
+var _ error = InputFileTypeValidationError{}
+
+var _ interface {
+	Field() string
+	Reason() string
+	Key() bool
+	Cause() error
+	ErrorName() string
+} = InputFileTypeValidationError{}
+
 // Validate checks the field values on MetricDefinition with the rules defined
 // in the proto definition for this message. If any rules are violated, an
 // error is returned.
@@ -263,6 +328,16 @@ func (m *AlgorithmSpecification) Validate() error {
 
 	}
 
+	if v, ok := interface{}(m.GetInputFileType()).(interface{ Validate() error }); ok {
+		if err := v.Validate(); err != nil {
+			return AlgorithmSpecificationValidationError{
+				field:  "InputFileType",
+				reason: "embedded message failed validation",
+				cause:  err,
+			}
+		}
+	}
+
 	return nil
 }
 
diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java
index ab0e7d062..8afa01afd 100644
--- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java
+++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java
@@ -1032,6 +1032,527 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getDefault
 
   }
 
+  public interface InputFileTypeOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.InputFileType)
+      com.google.protobuf.MessageOrBuilder {
+  }
+  /**
+   * 
+   * When using FILE input mode, different SageMaker built-in algorithms require different file types of input data
+   * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.InputFileType} + */ + public static final class InputFileType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.InputFileType) + InputFileTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use InputFileType.newBuilder() to construct. + private InputFileType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InputFileType() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InputFileType( + 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; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputFileType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputFileType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.InputFileType.Value} + */ + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + * TEXT_CSV = 0; + */ + TEXT_CSV(0), + /** + * TEXT_LIBSVM = 1; + */ + TEXT_LIBSVM(1), + UNRECOGNIZED(-1), + ; + + /** + * TEXT_CSV = 0; + */ + public static final int TEXT_CSV_VALUE = 0; + /** + * TEXT_LIBSVM = 1; + */ + public static final int TEXT_LIBSVM_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } + + public static Value forNumber(int value) { + switch (value) { + case 0: return TEXT_CSV; + case 1: return TEXT_LIBSVM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value 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 Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputFileType.Value) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType 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(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType 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; + } + /** + *
+     * When using FILE input mode, different SageMaker built-in algorithms require different file types of input data
+     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.InputFileType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.InputFileType) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputFileType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputFileType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputFileType_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType(this); + 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.getDefaultInstance()) return this; + 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 { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:flyteidl.plugins.sagemaker.InputFileType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputFileType) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputFileType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputFileType(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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface MetricDefinitionOrBuilder extends // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.MetricDefinition) com.google.protobuf.MessageOrBuilder { @@ -1915,6 +2436,37 @@ public interface AlgorithmSpecificationOrBuilder extends */ flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( int index); + + /** + *
+     * The type of the input files (when using FILE input mode)
+     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + boolean hasInputFileType(); + /** + *
+     * The type of the input files (when using FILE input mode)
+     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getInputFileType(); + /** + *
+     * The type of the input files (when using FILE input mode)
+     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder getInputFileTypeOrBuilder(); } /** *
@@ -1996,6 +2548,19 @@ private AlgorithmSpecification(
                   input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.parser(), extensionRegistry));
               break;
             }
+            case 42: {
+              flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder subBuilder = null;
+              if (inputFileType_ != null) {
+                subBuilder = inputFileType_.toBuilder();
+              }
+              inputFileType_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(inputFileType_);
+                inputFileType_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -2193,6 +2758,45 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilde
       return metricDefinitions_.get(index);
     }
 
+    public static final int INPUT_FILE_TYPE_FIELD_NUMBER = 5;
+    private flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType inputFileType_;
+    /**
+     * 
+     * The type of the input files (when using FILE input mode)
+     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + public boolean hasInputFileType() { + return inputFileType_ != null; + } + /** + *
+     * The type of the input files (when using FILE input mode)
+     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getInputFileType() { + return inputFileType_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.getDefaultInstance() : inputFileType_; + } + /** + *
+     * The type of the input files (when using FILE input mode)
+     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder getInputFileTypeOrBuilder() { + return getInputFileType(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -2219,6 +2823,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < metricDefinitions_.size(); i++) { output.writeMessage(4, metricDefinitions_.get(i)); } + if (inputFileType_ != null) { + output.writeMessage(5, getInputFileType()); + } unknownFields.writeTo(output); } @@ -2243,6 +2850,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, metricDefinitions_.get(i)); } + if (inputFileType_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInputFileType()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2264,6 +2875,11 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAlgorithmVersion())) return false; if (!getMetricDefinitionsList() .equals(other.getMetricDefinitionsList())) return false; + if (hasInputFileType() != other.hasInputFileType()) return false; + if (hasInputFileType()) { + if (!getInputFileType() + .equals(other.getInputFileType())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2285,6 +2901,10 @@ public int hashCode() { hash = (37 * hash) + METRIC_DEFINITIONS_FIELD_NUMBER; hash = (53 * hash) + getMetricDefinitionsList().hashCode(); } + if (hasInputFileType()) { + hash = (37 * hash) + INPUT_FILE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getInputFileType().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2441,6 +3061,12 @@ public Builder clear() { } else { metricDefinitionsBuilder_.clear(); } + if (inputFileTypeBuilder_ == null) { + inputFileType_ = null; + } else { + inputFileType_ = null; + inputFileTypeBuilder_ = null; + } return this; } @@ -2481,6 +3107,11 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification b } else { result.metricDefinitions_ = metricDefinitionsBuilder_.build(); } + if (inputFileTypeBuilder_ == null) { + result.inputFileType_ = inputFileType_; + } else { + result.inputFileType_ = inputFileTypeBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -2566,6 +3197,9 @@ public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.Algori } } } + if (other.hasInputFileType()) { + mergeInputFileType(other.getInputFileType()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3172,6 +3806,177 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder } return metricDefinitionsBuilder_; } + + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType inputFileType_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder> inputFileTypeBuilder_; + /** + *
+       * The type of the input files (when using FILE input mode)
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + public boolean hasInputFileType() { + return inputFileTypeBuilder_ != null || inputFileType_ != null; + } + /** + *
+       * The type of the input files (when using FILE input mode)
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getInputFileType() { + if (inputFileTypeBuilder_ == null) { + return inputFileType_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.getDefaultInstance() : inputFileType_; + } else { + return inputFileTypeBuilder_.getMessage(); + } + } + /** + *
+       * The type of the input files (when using FILE input mode)
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + public Builder setInputFileType(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType value) { + if (inputFileTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputFileType_ = value; + onChanged(); + } else { + inputFileTypeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The type of the input files (when using FILE input mode)
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + public Builder setInputFileType( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder builderForValue) { + if (inputFileTypeBuilder_ == null) { + inputFileType_ = builderForValue.build(); + onChanged(); + } else { + inputFileTypeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The type of the input files (when using FILE input mode)
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + public Builder mergeInputFileType(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType value) { + if (inputFileTypeBuilder_ == null) { + if (inputFileType_ != null) { + inputFileType_ = + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.newBuilder(inputFileType_).mergeFrom(value).buildPartial(); + } else { + inputFileType_ = value; + } + onChanged(); + } else { + inputFileTypeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The type of the input files (when using FILE input mode)
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + public Builder clearInputFileType() { + if (inputFileTypeBuilder_ == null) { + inputFileType_ = null; + onChanged(); + } else { + inputFileType_ = null; + inputFileTypeBuilder_ = null; + } + + return this; + } + /** + *
+       * The type of the input files (when using FILE input mode)
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder getInputFileTypeBuilder() { + + onChanged(); + return getInputFileTypeFieldBuilder().getBuilder(); + } + /** + *
+       * The type of the input files (when using FILE input mode)
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder getInputFileTypeOrBuilder() { + if (inputFileTypeBuilder_ != null) { + return inputFileTypeBuilder_.getMessageOrBuilder(); + } else { + return inputFileType_ == null ? + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.getDefaultInstance() : inputFileType_; + } + } + /** + *
+       * The type of the input files (when using FILE input mode)
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder> + getInputFileTypeFieldBuilder() { + if (inputFileTypeBuilder_ == null) { + inputFileTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder>( + getInputFileType(), + getParentForChildren(), + isClean()); + inputFileType_ = null; + } + return inputFileTypeBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4808,6 +5613,11 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_plugins_sagemaker_AlgorithmName_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_InputFileType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_InputFileType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor; private static final @@ -4842,23 +5652,26 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn "gle/protobuf/duration.proto\"(\n\tInputMode" + "\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n\rAlgorit" + "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001" + - "\"/\n\020MetricDefinition\022\014\n\004name\030\001 \001(\t\022\r\n\005re" + - "gex\030\002 \001(\t\"\207\002\n\026AlgorithmSpecification\022?\n\n" + - "input_mode\030\001 \001(\0162+.flyteidl.plugins.sage" + - "maker.InputMode.Value\022G\n\016algorithm_name\030" + - "\002 \001(\0162/.flyteidl.plugins.sagemaker.Algor" + - "ithmName.Value\022\031\n\021algorithm_version\030\003 \001(" + - "\t\022H\n\022metric_definitions\030\004 \003(\0132,.flyteidl" + - ".plugins.sagemaker.MetricDefinition\"e\n\031T" + - "rainingJobResourceConfig\022\026\n\016instance_cou" + - "nt\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021volum" + - "e_size_in_gb\030\003 \001(\003\"\277\001\n\013TrainingJob\022S\n\027al" + - "gorithm_specification\030\001 \001(\01322.flyteidl.p" + - "lugins.sagemaker.AlgorithmSpecification\022" + - "[\n\034training_job_resource_config\030\002 \001(\01325." + - "flyteidl.plugins.sagemaker.TrainingJobRe" + - "sourceConfigB5Z3github.com/lyft/flyteidl" + - "/gen/pb-go/flyteidl/pluginsb\006proto3" + "\"7\n\rInputFileType\"&\n\005Value\022\014\n\010TEXT_CSV\020\000" + + "\022\017\n\013TEXT_LIBSVM\020\001\"/\n\020MetricDefinition\022\014\n" + + "\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"\313\002\n\026Algorithm" + + "Specification\022?\n\ninput_mode\030\001 \001(\0162+.flyt" + + "eidl.plugins.sagemaker.InputMode.Value\022G" + + "\n\016algorithm_name\030\002 \001(\0162/.flyteidl.plugin" + + "s.sagemaker.AlgorithmName.Value\022\031\n\021algor" + + "ithm_version\030\003 \001(\t\022H\n\022metric_definitions" + + "\030\004 \003(\0132,.flyteidl.plugins.sagemaker.Metr" + + "icDefinition\022B\n\017input_file_type\030\005 \001(\0132)." + + "flyteidl.plugins.sagemaker.InputFileType" + + "\"e\n\031TrainingJobResourceConfig\022\026\n\016instanc" + + "e_count\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021" + + "volume_size_in_gb\030\003 \001(\003\"\277\001\n\013TrainingJob\022" + + "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + + "idl.plugins.sagemaker.AlgorithmSpecifica" + + "tion\022[\n\034training_job_resource_config\030\002 \001" + + "(\01325.flyteidl.plugins.sagemaker.Training" + + "JobResourceConfigB5Z3github.com/lyft/fly" + + "teidl/gen/pb-go/flyteidl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -4885,26 +5698,32 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor, new java.lang.String[] { }); - internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor = + internal_static_flyteidl_plugins_sagemaker_InputFileType_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_InputFileType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_InputFileType_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_flyteidl_plugins_sagemaker_MetricDefinition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor, new java.lang.String[] { "Name", "Regex", }); internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, - new java.lang.String[] { "InputMode", "AlgorithmName", "AlgorithmVersion", "MetricDefinitions", }); + new java.lang.String[] { "InputMode", "AlgorithmName", "AlgorithmVersion", "MetricDefinitions", "InputFileType", }); internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor, new java.lang.String[] { "InstanceCount", "InstanceType", "VolumeSizeInGb", }); internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor, diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst index 20f39bafb..b8ca06ef9 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst @@ -69,12 +69,48 @@ XGBOOST ⁣ +.. _api_msg_flyteidl.plugins.sagemaker.InputFileType: + +flyteidl.plugins.sagemaker.InputFileType +---------------------------------------- + +`[flyteidl.plugins.sagemaker.InputFileType proto] `_ + +When using FILE input mode, different SageMaker built-in algorithms require different file types of input data +See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html +https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html + +.. code-block:: json + + {} + + + +.. _api_enum_flyteidl.plugins.sagemaker.InputFileType.Value: + +Enum flyteidl.plugins.sagemaker.InputFileType.Value +--------------------------------------------------- + +`[flyteidl.plugins.sagemaker.InputFileType.Value proto] `_ + + +.. _api_enum_value_flyteidl.plugins.sagemaker.InputFileType.Value.TEXT_CSV: + +TEXT_CSV + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.sagemaker.InputFileType.Value.TEXT_LIBSVM: + +TEXT_LIBSVM + ⁣ + + .. _api_msg_flyteidl.plugins.sagemaker.MetricDefinition: flyteidl.plugins.sagemaker.MetricDefinition ------------------------------------------- -`[flyteidl.plugins.sagemaker.MetricDefinition proto] `_ +`[flyteidl.plugins.sagemaker.MetricDefinition proto] `_ Specifies a metric that the training algorithm writes to stderr or stdout. This object is a pass-through. @@ -106,7 +142,7 @@ regex flyteidl.plugins.sagemaker.AlgorithmSpecification ------------------------------------------------- -`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ Specifies the training algorithm to be used in the training job This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify @@ -122,7 +158,8 @@ https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecifica "input_mode": "...", "algorithm_name": "...", "algorithm_version": "...", - "metric_definitions": [] + "metric_definitions": [], + "input_file_type": "{...}" } .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode: @@ -153,6 +190,14 @@ metric_definitions and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type: + +input_file_type + (:ref:`flyteidl.plugins.sagemaker.InputFileType `) The type of the input files (when using FILE input mode) + See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html + https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html + + .. _api_msg_flyteidl.plugins.sagemaker.TrainingJobResourceConfig: @@ -160,7 +205,7 @@ metric_definitions flyteidl.plugins.sagemaker.TrainingJobResourceConfig ---------------------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the number of instances to launch, and the size of the ML storage volume the user wants to provision @@ -199,7 +244,7 @@ volume_size_in_gb flyteidl.plugins.sagemaker.TrainingJob -------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ The spec of a training job. This is mostly a pass-through object https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py index 86149a35a..0c2cda7a1 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py @@ -21,7 +21,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"\x87\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12H\n\x12metric_definitions\x18\x04 \x03(\x0b\x32,.flyteidl.plugins.sagemaker.MetricDefinition\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\xbf\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12[\n\x1ctraining_job_resource_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"7\n\rInputFileType\"&\n\x05Value\x12\x0c\n\x08TEXT_CSV\x10\x00\x12\x0f\n\x0bTEXT_LIBSVM\x10\x01\"/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"\xcb\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12H\n\x12metric_definitions\x18\x04 \x03(\x0b\x32,.flyteidl.plugins.sagemaker.MetricDefinition\x12\x42\n\x0finput_file_type\x18\x05 \x01(\x0b\x32).flyteidl.plugins.sagemaker.InputFileType\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\xbf\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12[\n\x1ctraining_job_resource_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) @@ -71,6 +71,28 @@ ) _sym_db.RegisterEnumDescriptor(_ALGORITHMNAME_VALUE) +_INPUTFILETYPE_VALUE = _descriptor.EnumDescriptor( + name='Value', + full_name='flyteidl.plugins.sagemaker.InputFileType.Value', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='TEXT_CSV', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TEXT_LIBSVM', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=219, + serialized_end=257, +) +_sym_db.RegisterEnumDescriptor(_INPUTFILETYPE_VALUE) + _INPUTMODE = _descriptor.Descriptor( name='InputMode', @@ -122,6 +144,31 @@ ) +_INPUTFILETYPE = _descriptor.Descriptor( + name='InputFileType', + full_name='flyteidl.plugins.sagemaker.InputFileType', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _INPUTFILETYPE_VALUE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=202, + serialized_end=257, +) + + _METRICDEFINITION = _descriptor.Descriptor( name='MetricDefinition', full_name='flyteidl.plugins.sagemaker.MetricDefinition', @@ -155,8 +202,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=202, - serialized_end=249, + serialized_start=259, + serialized_end=306, ) @@ -195,6 +242,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='input_file_type', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -207,8 +261,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=252, - serialized_end=515, + serialized_start=309, + serialized_end=640, ) @@ -252,8 +306,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=517, - serialized_end=618, + serialized_start=642, + serialized_end=743, ) @@ -290,19 +344,22 @@ extension_ranges=[], oneofs=[ ], - serialized_start=621, - serialized_end=812, + serialized_start=746, + serialized_end=937, ) _INPUTMODE_VALUE.containing_type = _INPUTMODE _ALGORITHMNAME_VALUE.containing_type = _ALGORITHMNAME +_INPUTFILETYPE_VALUE.containing_type = _INPUTFILETYPE _ALGORITHMSPECIFICATION.fields_by_name['input_mode'].enum_type = _INPUTMODE_VALUE _ALGORITHMSPECIFICATION.fields_by_name['algorithm_name'].enum_type = _ALGORITHMNAME_VALUE _ALGORITHMSPECIFICATION.fields_by_name['metric_definitions'].message_type = _METRICDEFINITION +_ALGORITHMSPECIFICATION.fields_by_name['input_file_type'].message_type = _INPUTFILETYPE _TRAININGJOB.fields_by_name['algorithm_specification'].message_type = _ALGORITHMSPECIFICATION _TRAININGJOB.fields_by_name['training_job_resource_config'].message_type = _TRAININGJOBRESOURCECONFIG DESCRIPTOR.message_types_by_name['InputMode'] = _INPUTMODE DESCRIPTOR.message_types_by_name['AlgorithmName'] = _ALGORITHMNAME +DESCRIPTOR.message_types_by_name['InputFileType'] = _INPUTFILETYPE DESCRIPTOR.message_types_by_name['MetricDefinition'] = _METRICDEFINITION DESCRIPTOR.message_types_by_name['AlgorithmSpecification'] = _ALGORITHMSPECIFICATION DESCRIPTOR.message_types_by_name['TrainingJobResourceConfig'] = _TRAININGJOBRESOURCECONFIG @@ -323,6 +380,13 @@ )) _sym_db.RegisterMessage(AlgorithmName) +InputFileType = _reflection.GeneratedProtocolMessageType('InputFileType', (_message.Message,), dict( + DESCRIPTOR = _INPUTFILETYPE, + __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputFileType) + )) +_sym_db.RegisterMessage(InputFileType) + MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict( DESCRIPTOR = _METRICDEFINITION, __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' diff --git a/package.json b/package.json index 3efffdef1..88e1ae6bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.18.0b10", + "version": "0.18.0b11", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/setup.py b/setup.py index 0d75af5ef..933ed0ce5 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.18.0b10' +__version__ = '0.18.0b11' setup( name='flyteidl', From f67167deac55bcb026eb55ce886a99c475d19383 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Wed, 29 Jul 2020 10:20:07 -0700 Subject: [PATCH 56/64] complete doc --- .../sagemaker/hyperparameter_tuning_job.proto | 20 +++++++++++++++---- .../plugins/sagemaker/training_job.proto | 12 ++++++++++- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto b/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto index 0663c75ad..bfc3b1400 100644 --- a/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto +++ b/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto @@ -10,7 +10,7 @@ import "flyteidl/plugins/sagemaker/training_job.proto"; // A pass-through for SageMaker's hyperparameter tuning job message HyperparameterTuningJob { // The underlying training job that the hyperparameter tuning job will launch during the process - TrainingJob training_job = 1; // TODO: This hierarchical definition is tricky! + TrainingJob training_job = 1; // The maximum number of training jobs that an hpo job can launch. For resource limit purpose. // https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html @@ -21,6 +21,8 @@ message HyperparameterTuningJob { int64 max_parallel_training_jobs = 3; } +// HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job +// with respect to the specified metric. message HyperparameterTuningObjectiveType { enum Value { MINIMIZE = 0; @@ -28,18 +30,21 @@ message HyperparameterTuningObjectiveType { } } -// The objective of the hyperparameter tuning +// The target metric and the objective of the hyperparameter tuning. // https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html message HyperparameterTuningObjective { + // HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job + // with respect to the specified metric. HyperparameterTuningObjectiveType.Value objective_type = 1; + // The target metric name, which is the user-defined name of the metric specified in the // training job's algorithm specification string metric_name = 2; } -// Setting the strategy used when doing search in the hyperparameter space +// Setting the strategy used when searching in the hyperparameter space // Refer this doc for more details: // https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/ message HyperparameterTuningStrategy { @@ -63,9 +68,16 @@ message TrainingJobEarlyStoppingType { // The specification of the hyperparameter tuning process // https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning-job.html#automatic-model-tuning-ex-low-tuning-config message HyperparameterTuningJobConfig { - + // ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range ParameterRanges hyperparameter_ranges = 1; + + // Setting the strategy used when searching in the hyperparameter space HyperparameterTuningStrategy.Value tuning_strategy = 2; + + // The target metric and the objective of the hyperparameter tuning. HyperparameterTuningObjective tuning_objective = 3; + + // When the training jobs launched by the hyperparameter tuning job are not improving significantly, + // a hyperparameter tuning job can be stopping early. TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; } diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto index d885a09aa..756023c0a 100644 --- a/protos/flyteidl/plugins/sagemaker/training_job.proto +++ b/protos/flyteidl/plugins/sagemaker/training_job.proto @@ -6,7 +6,13 @@ import "google/protobuf/duration.proto"; option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; - +// The input mode that the algorithm supports. When using the File input mode, SageMaker downloads +// the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker +// volume for training container. When using Pipe input mode, Amazon SageMaker streams data directly +// from S3 to the container. +// See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html +// For the input modes that different SageMaker algorithms support, see: +// https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html message InputMode { enum Value { FILE = 0; @@ -14,6 +20,10 @@ message InputMode { } } +// The algorithm name is used for deciding which pre-built image to point to. +// This is only required for use cases where SageMaker's built-in algorithm mode is used. +// While we currently only support a subset of the algorithms, more will be added to the list. +// See: https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html message AlgorithmName { enum Value { CUSTOM = 0; From da0613747f0086e9a8505abe623bd576ba5647ae Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Wed, 29 Jul 2020 10:22:15 -0700 Subject: [PATCH 57/64] make generate and bump version --- .../sagemaker/hyperparameter_tuning_job.pb.go | 19 +- .../plugins/sagemaker/training_job.pb.go | 11 + .../HyperparameterTuningJobOuterClass.java | 264 +++++++++++++++++- .../sagemaker/TrainingJobOuterClass.java | 34 +++ .../hyperparameter_tuning_job.proto.rst | 39 ++- .../plugins/sagemaker/training_job.proto.rst | 33 ++- package.json | 2 +- setup.py | 2 +- 8 files changed, 367 insertions(+), 37 deletions(-) diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go index dbad13487..f990f056d 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go @@ -156,6 +156,8 @@ func (m *HyperparameterTuningJob) GetMaxParallelTrainingJobs() int64 { return 0 } +// HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job +// with respect to the specified metric. type HyperparameterTuningObjectiveType struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -187,9 +189,11 @@ func (m *HyperparameterTuningObjectiveType) XXX_DiscardUnknown() { var xxx_messageInfo_HyperparameterTuningObjectiveType proto.InternalMessageInfo -// The objective of the hyperparameter tuning +// The target metric and the objective of the hyperparameter tuning. // https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html type HyperparameterTuningObjective struct { + // HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job + // with respect to the specified metric. ObjectiveType HyperparameterTuningObjectiveType_Value `protobuf:"varint,1,opt,name=objective_type,json=objectiveType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType_Value" json:"objective_type,omitempty"` // The target metric name, which is the user-defined name of the metric specified in the // training job's algorithm specification @@ -238,7 +242,7 @@ func (m *HyperparameterTuningObjective) GetMetricName() string { return "" } -// Setting the strategy used when doing search in the hyperparameter space +// Setting the strategy used when searching in the hyperparameter space // Refer this doc for more details: // https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/ type HyperparameterTuningStrategy struct { @@ -310,9 +314,14 @@ var xxx_messageInfo_TrainingJobEarlyStoppingType proto.InternalMessageInfo // The specification of the hyperparameter tuning process // https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning-job.html#automatic-model-tuning-ex-low-tuning-config type HyperparameterTuningJobConfig struct { - HyperparameterRanges *ParameterRanges `protobuf:"bytes,1,opt,name=hyperparameter_ranges,json=hyperparameterRanges,proto3" json:"hyperparameter_ranges,omitempty"` - TuningStrategy HyperparameterTuningStrategy_Value `protobuf:"varint,2,opt,name=tuning_strategy,json=tuningStrategy,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningStrategy_Value" json:"tuning_strategy,omitempty"` - TuningObjective *HyperparameterTuningObjective `protobuf:"bytes,3,opt,name=tuning_objective,json=tuningObjective,proto3" json:"tuning_objective,omitempty"` + // ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range + HyperparameterRanges *ParameterRanges `protobuf:"bytes,1,opt,name=hyperparameter_ranges,json=hyperparameterRanges,proto3" json:"hyperparameter_ranges,omitempty"` + // Setting the strategy used when searching in the hyperparameter space + TuningStrategy HyperparameterTuningStrategy_Value `protobuf:"varint,2,opt,name=tuning_strategy,json=tuningStrategy,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningStrategy_Value" json:"tuning_strategy,omitempty"` + // The target metric and the objective of the hyperparameter tuning. + TuningObjective *HyperparameterTuningObjective `protobuf:"bytes,3,opt,name=tuning_objective,json=tuningObjective,proto3" json:"tuning_objective,omitempty"` + // When the training jobs launched by the hyperparameter tuning job are not improving significantly, + // a hyperparameter tuning job can be stopping early. TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType_Value `protobuf:"varint,4,opt,name=training_job_early_stopping_type,json=trainingJobEarlyStoppingType,proto3,enum=flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType_Value" json:"training_job_early_stopping_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go index 2823257e5..045bbe7bf 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -96,6 +96,13 @@ func (InputFileType_Value) EnumDescriptor() ([]byte, []int) { return fileDescriptor_6a68f64d8fd9fe30, []int{2, 0} } +// The input mode that the algorithm supports. When using the File input mode, SageMaker downloads +// the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker +// volume for training container. When using Pipe input mode, Amazon SageMaker streams data directly +// from S3 to the container. +// See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html +// For the input modes that different SageMaker algorithms support, see: +// https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html type InputMode struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -127,6 +134,10 @@ func (m *InputMode) XXX_DiscardUnknown() { var xxx_messageInfo_InputMode proto.InternalMessageInfo +// The algorithm name is used for deciding which pre-built image to point to. +// This is only required for use cases where SageMaker's built-in algorithm mode is used. +// While we currently only support a subset of the algorithms, more will be added to the list. +// See: https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html type AlgorithmName struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java index b2a2b5489..96c23333a 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java @@ -869,6 +869,11 @@ public interface HyperparameterTuningObjectiveTypeOrBuilder extends com.google.protobuf.MessageOrBuilder { } /** + *
+   * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+   * with respect to the specified metric.
+   * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType} */ public static final class HyperparameterTuningObjectiveType extends @@ -1181,6 +1186,11 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+     * with respect to the specified metric.
+     * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType} */ public static final class Builder extends @@ -1378,10 +1388,20 @@ public interface HyperparameterTuningObjectiveOrBuilder extends com.google.protobuf.MessageOrBuilder { /** + *
+     * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+     * with respect to the specified metric.
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; */ int getObjectiveTypeValue(); /** + *
+     * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+     * with respect to the specified metric.
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; */ flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value getObjectiveType(); @@ -1408,7 +1428,7 @@ public interface HyperparameterTuningObjectiveOrBuilder extends } /** *
-   * The objective of the hyperparameter tuning
+   * The target metric and the objective of the hyperparameter tuning.
    * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
    * 
* @@ -1499,12 +1519,22 @@ private HyperparameterTuningObjective( public static final int OBJECTIVE_TYPE_FIELD_NUMBER = 1; private int objectiveType_; /** + *
+     * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+     * with respect to the specified metric.
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; */ public int getObjectiveTypeValue() { return objectiveType_; } /** + *
+     * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+     * with respect to the specified metric.
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; */ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value getObjectiveType() { @@ -1723,7 +1753,7 @@ protected Builder newBuilderForType( } /** *
-     * The objective of the hyperparameter tuning
+     * The target metric and the objective of the hyperparameter tuning.
      * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
      * 
* @@ -1882,12 +1912,22 @@ public Builder mergeFrom( private int objectiveType_ = 0; /** + *
+       * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+       * with respect to the specified metric.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; */ public int getObjectiveTypeValue() { return objectiveType_; } /** + *
+       * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+       * with respect to the specified metric.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; */ public Builder setObjectiveTypeValue(int value) { @@ -1896,6 +1936,11 @@ public Builder setObjectiveTypeValue(int value) { return this; } /** + *
+       * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+       * with respect to the specified metric.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; */ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value getObjectiveType() { @@ -1904,6 +1949,11 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value.UNRECOGNIZED : result; } /** + *
+       * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+       * with respect to the specified metric.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; */ public Builder setObjectiveType(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value value) { @@ -1916,6 +1966,11 @@ public Builder setObjectiveType(flyteidl.plugins.sagemaker.HyperparameterTuningJ return this; } /** + *
+       * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+       * with respect to the specified metric.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; */ public Builder clearObjectiveType() { @@ -2077,7 +2132,7 @@ public interface HyperparameterTuningStrategyOrBuilder extends } /** *
-   * Setting the strategy used when doing search in the hyperparameter space
+   * Setting the strategy used when searching in the hyperparameter space
    * Refer this doc for more details:
    * https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/
    * 
@@ -2395,7 +2450,7 @@ protected Builder newBuilderForType( } /** *
-     * Setting the strategy used when doing search in the hyperparameter space
+     * Setting the strategy used when searching in the hyperparameter space
      * Refer this doc for more details:
      * https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/
      * 
@@ -3120,45 +3175,87 @@ public interface HyperparameterTuningJobConfigOrBuilder extends com.google.protobuf.MessageOrBuilder { /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ boolean hasHyperparameterRanges(); /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges(); /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder(); /** + *
+     * Setting the strategy used when searching in the hyperparameter space
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ int getTuningStrategyValue(); /** + *
+     * Setting the strategy used when searching in the hyperparameter space
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value getTuningStrategy(); /** + *
+     * The target metric and the objective of the hyperparameter tuning.
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ boolean hasTuningObjective(); /** + *
+     * The target metric and the objective of the hyperparameter tuning.
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getTuningObjective(); /** + *
+     * The target metric and the objective of the hyperparameter tuning.
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder(); /** + *
+     * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+     * a hyperparameter tuning job can be stopping early.
+     * 
+ * * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ int getTrainingJobEarlyStoppingTypeValue(); /** + *
+     * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+     * a hyperparameter tuning job can be stopping early.
+     * 
+ * * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value getTrainingJobEarlyStoppingType(); @@ -3282,18 +3379,30 @@ private HyperparameterTuningJobConfig( public static final int HYPERPARAMETER_RANGES_FIELD_NUMBER = 1; private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_; /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ public boolean hasHyperparameterRanges() { return hyperparameterRanges_ != null; } /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; } /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { @@ -3303,12 +3412,20 @@ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBui public static final int TUNING_STRATEGY_FIELD_NUMBER = 2; private int tuningStrategy_; /** + *
+     * Setting the strategy used when searching in the hyperparameter space
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ public int getTuningStrategyValue() { return tuningStrategy_; } /** + *
+     * Setting the strategy used when searching in the hyperparameter space
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value getTuningStrategy() { @@ -3320,18 +3437,30 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet public static final int TUNING_OBJECTIVE_FIELD_NUMBER = 3; private flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective tuningObjective_; /** + *
+     * The target metric and the objective of the hyperparameter tuning.
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ public boolean hasTuningObjective() { return tuningObjective_ != null; } /** + *
+     * The target metric and the objective of the hyperparameter tuning.
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getTuningObjective() { return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; } /** + *
+     * The target metric and the objective of the hyperparameter tuning.
+     * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { @@ -3341,12 +3470,22 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet public static final int TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER = 4; private int trainingJobEarlyStoppingType_; /** + *
+     * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+     * a hyperparameter tuning job can be stopping early.
+     * 
+ * * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ public int getTrainingJobEarlyStoppingTypeValue() { return trainingJobEarlyStoppingType_; } /** + *
+     * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+     * a hyperparameter tuning job can be stopping early.
+     * 
+ * * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value getTrainingJobEarlyStoppingType() { @@ -3741,12 +3880,20 @@ public Builder mergeFrom( private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> hyperparameterRangesBuilder_; /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ public boolean hasHyperparameterRanges() { return hyperparameterRangesBuilder_ != null || hyperparameterRanges_ != null; } /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { @@ -3757,6 +3904,10 @@ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getH } } /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { @@ -3773,6 +3924,10 @@ public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRange return this; } /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ public Builder setHyperparameterRanges( @@ -3787,6 +3942,10 @@ public Builder setHyperparameterRanges( return this; } /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ public Builder mergeHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { @@ -3805,6 +3964,10 @@ public Builder mergeHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRan return this; } /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ public Builder clearHyperparameterRanges() { @@ -3819,6 +3982,10 @@ public Builder clearHyperparameterRanges() { return this; } /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder getHyperparameterRangesBuilder() { @@ -3827,6 +3994,10 @@ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Buil return getHyperparameterRangesFieldBuilder().getBuilder(); } /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { @@ -3838,6 +4009,10 @@ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBui } } /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; */ private com.google.protobuf.SingleFieldBuilderV3< @@ -3856,12 +4031,20 @@ public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBui private int tuningStrategy_ = 0; /** + *
+       * Setting the strategy used when searching in the hyperparameter space
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ public int getTuningStrategyValue() { return tuningStrategy_; } /** + *
+       * Setting the strategy used when searching in the hyperparameter space
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ public Builder setTuningStrategyValue(int value) { @@ -3870,6 +4053,10 @@ public Builder setTuningStrategyValue(int value) { return this; } /** + *
+       * Setting the strategy used when searching in the hyperparameter space
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value getTuningStrategy() { @@ -3878,6 +4065,10 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value.UNRECOGNIZED : result; } /** + *
+       * Setting the strategy used when searching in the hyperparameter space
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value value) { @@ -3890,6 +4081,10 @@ public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HyperparameterTuning return this; } /** + *
+       * Setting the strategy used when searching in the hyperparameter space
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; */ public Builder clearTuningStrategy() { @@ -3903,12 +4098,20 @@ public Builder clearTuningStrategy() { private com.google.protobuf.SingleFieldBuilderV3< flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder> tuningObjectiveBuilder_; /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ public boolean hasTuningObjective() { return tuningObjectiveBuilder_ != null || tuningObjective_ != null; } /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getTuningObjective() { @@ -3919,6 +4122,10 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet } } /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ public Builder setTuningObjective(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective value) { @@ -3935,6 +4142,10 @@ public Builder setTuningObjective(flyteidl.plugins.sagemaker.HyperparameterTunin return this; } /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ public Builder setTuningObjective( @@ -3949,6 +4160,10 @@ public Builder setTuningObjective( return this; } /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective value) { @@ -3967,6 +4182,10 @@ public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.HyperparameterTun return this; } /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ public Builder clearTuningObjective() { @@ -3981,6 +4200,10 @@ public Builder clearTuningObjective() { return this; } /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder getTuningObjectiveBuilder() { @@ -3989,6 +4212,10 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet return getTuningObjectiveFieldBuilder().getBuilder(); } /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { @@ -4000,6 +4227,10 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet } } /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; */ private com.google.protobuf.SingleFieldBuilderV3< @@ -4018,12 +4249,22 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.Hyperparamet private int trainingJobEarlyStoppingType_ = 0; /** + *
+       * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+       * a hyperparameter tuning job can be stopping early.
+       * 
+ * * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ public int getTrainingJobEarlyStoppingTypeValue() { return trainingJobEarlyStoppingType_; } /** + *
+       * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+       * a hyperparameter tuning job can be stopping early.
+       * 
+ * * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ public Builder setTrainingJobEarlyStoppingTypeValue(int value) { @@ -4032,6 +4273,11 @@ public Builder setTrainingJobEarlyStoppingTypeValue(int value) { return this; } /** + *
+       * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+       * a hyperparameter tuning job can be stopping early.
+       * 
+ * * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value getTrainingJobEarlyStoppingType() { @@ -4040,6 +4286,11 @@ public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobE return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value.UNRECOGNIZED : result; } /** + *
+       * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+       * a hyperparameter tuning job can be stopping early.
+       * 
+ * * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value value) { @@ -4052,6 +4303,11 @@ public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.Hyperp return this; } /** + *
+       * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+       * a hyperparameter tuning job can be stopping early.
+       * 
+ * * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; */ public Builder clearTrainingJobEarlyStoppingType() { diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java index 8afa01afd..422827478 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -19,6 +19,16 @@ public interface InputModeOrBuilder extends com.google.protobuf.MessageOrBuilder { } /** + *
+   * The input mode that the algorithm supports. When using the File input mode, SageMaker downloads
+   * the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker
+   * volume for training container. When using Pipe input mode, Amazon SageMaker streams data directly
+   * from S3 to the container.
+   * See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+   * For the input modes that different SageMaker algorithms support, see:
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+   * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.InputMode} */ public static final class InputMode extends @@ -331,6 +341,16 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * The input mode that the algorithm supports. When using the File input mode, SageMaker downloads
+     * the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker
+     * volume for training container. When using Pipe input mode, Amazon SageMaker streams data directly
+     * from S3 to the container.
+     * See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * For the input modes that different SageMaker algorithms support, see:
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.InputMode} */ public static final class Builder extends @@ -528,6 +548,13 @@ public interface AlgorithmNameOrBuilder extends com.google.protobuf.MessageOrBuilder { } /** + *
+   * The algorithm name is used for deciding which pre-built image to point to.
+   * This is only required for use cases where SageMaker's built-in algorithm mode is used.
+   * While we currently only support a subset of the algorithms, more will be added to the list.
+   * See: https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html
+   * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmName} */ public static final class AlgorithmName extends @@ -840,6 +867,13 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * The algorithm name is used for deciding which pre-built image to point to.
+     * This is only required for use cases where SageMaker's built-in algorithm mode is used.
+     * While we currently only support a subset of the algorithms, more will be added to the list.
+     * See: https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html
+     * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmName} */ public static final class Builder extends diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst index 3d5107896..59fe2eb72 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto.rst @@ -47,8 +47,10 @@ max_parallel_training_jobs flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType ------------------------------------------------------------ -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType proto] `_ +HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job +with respect to the specified metric. .. code-block:: json @@ -61,7 +63,7 @@ flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType Enum flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value ----------------------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value.MINIMIZE: @@ -80,9 +82,9 @@ MAXIMIZE flyteidl.plugins.sagemaker.HyperparameterTuningObjective -------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningObjective proto] `_ -The objective of the hyperparameter tuning +The target metric and the objective of the hyperparameter tuning. https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html .. code-block:: json @@ -95,7 +97,9 @@ https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-me .. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type: objective_type - (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value `) + (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value `) HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job + with respect to the specified metric. + .. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name: @@ -111,9 +115,9 @@ metric_name flyteidl.plugins.sagemaker.HyperparameterTuningStrategy ------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningStrategy proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningStrategy proto] `_ -Setting the strategy used when doing search in the hyperparameter space +Setting the strategy used when searching in the hyperparameter space Refer this doc for more details: https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/ @@ -128,7 +132,7 @@ https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-t Enum flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value ------------------------------------------------------------------ -`[flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value.BAYESIAN: @@ -147,7 +151,7 @@ RANDOM flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType ------------------------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType proto] `_ When the training jobs launched by the hyperparameter tuning job are not improving significantly, a hyperparameter tuning job can be stopping early. @@ -165,7 +169,7 @@ see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-earl Enum flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value ------------------------------------------------------------------ -`[flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value.OFF: @@ -184,7 +188,7 @@ AUTO flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig -------------------------------------------------------- -`[flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig proto] `_ +`[flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig proto] `_ The specification of the hyperparameter tuning process https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning-job.html#automatic-model-tuning-ex-low-tuning-config @@ -201,21 +205,26 @@ https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning .. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.hyperparameter_ranges: hyperparameter_ranges - (:ref:`flyteidl.plugins.sagemaker.ParameterRanges `) + (:ref:`flyteidl.plugins.sagemaker.ParameterRanges `) ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range + .. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_strategy: tuning_strategy - (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value `) + (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value `) Setting the strategy used when searching in the hyperparameter space + .. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_objective: tuning_objective - (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjective `) + (:ref:`flyteidl.plugins.sagemaker.HyperparameterTuningObjective `) The target metric and the objective of the hyperparameter tuning. + .. _api_field_flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.training_job_early_stopping_type: training_job_early_stopping_type - (:ref:`flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value `) + (:ref:`flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value `) When the training jobs launched by the hyperparameter tuning job are not improving significantly, + a hyperparameter tuning job can be stopping early. + diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst index b8ca06ef9..1b27afb6c 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst @@ -8,8 +8,15 @@ training_job.proto flyteidl.plugins.sagemaker.InputMode ------------------------------------ -`[flyteidl.plugins.sagemaker.InputMode proto] `_ - +`[flyteidl.plugins.sagemaker.InputMode proto] `_ + +The input mode that the algorithm supports. When using the File input mode, SageMaker downloads +the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker +volume for training container. When using Pipe input mode, Amazon SageMaker streams data directly +from S3 to the container. +See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html +For the input modes that different SageMaker algorithms support, see: +https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html .. code-block:: json @@ -22,7 +29,7 @@ flyteidl.plugins.sagemaker.InputMode Enum flyteidl.plugins.sagemaker.InputMode.Value ----------------------------------------------- -`[flyteidl.plugins.sagemaker.InputMode.Value proto] `_ +`[flyteidl.plugins.sagemaker.InputMode.Value proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.InputMode.Value.FILE: @@ -41,8 +48,12 @@ PIPE flyteidl.plugins.sagemaker.AlgorithmName ---------------------------------------- -`[flyteidl.plugins.sagemaker.AlgorithmName proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmName proto] `_ +The algorithm name is used for deciding which pre-built image to point to. +This is only required for use cases where SageMaker's built-in algorithm mode is used. +While we currently only support a subset of the algorithms, more will be added to the list. +See: https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html .. code-block:: json @@ -55,7 +66,7 @@ flyteidl.plugins.sagemaker.AlgorithmName Enum flyteidl.plugins.sagemaker.AlgorithmName.Value --------------------------------------------------- -`[flyteidl.plugins.sagemaker.AlgorithmName.Value proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmName.Value proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.AlgorithmName.Value.CUSTOM: @@ -74,7 +85,7 @@ XGBOOST flyteidl.plugins.sagemaker.InputFileType ---------------------------------------- -`[flyteidl.plugins.sagemaker.InputFileType proto] `_ +`[flyteidl.plugins.sagemaker.InputFileType proto] `_ When using FILE input mode, different SageMaker built-in algorithms require different file types of input data See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html @@ -91,7 +102,7 @@ https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-p Enum flyteidl.plugins.sagemaker.InputFileType.Value --------------------------------------------------- -`[flyteidl.plugins.sagemaker.InputFileType.Value proto] `_ +`[flyteidl.plugins.sagemaker.InputFileType.Value proto] `_ .. _api_enum_value_flyteidl.plugins.sagemaker.InputFileType.Value.TEXT_CSV: @@ -110,7 +121,7 @@ TEXT_LIBSVM flyteidl.plugins.sagemaker.MetricDefinition ------------------------------------------- -`[flyteidl.plugins.sagemaker.MetricDefinition proto] `_ +`[flyteidl.plugins.sagemaker.MetricDefinition proto] `_ Specifies a metric that the training algorithm writes to stderr or stdout. This object is a pass-through. @@ -142,7 +153,7 @@ regex flyteidl.plugins.sagemaker.AlgorithmSpecification ------------------------------------------------- -`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ Specifies the training algorithm to be used in the training job This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify @@ -205,7 +216,7 @@ input_file_type flyteidl.plugins.sagemaker.TrainingJobResourceConfig ---------------------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the number of instances to launch, and the size of the ML storage volume the user wants to provision @@ -244,7 +255,7 @@ volume_size_in_gb flyteidl.plugins.sagemaker.TrainingJob -------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ The spec of a training job. This is mostly a pass-through object https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html diff --git a/package.json b/package.json index 88e1ae6bb..1c5997201 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lyft/flyteidl", - "version": "0.18.0b11", + "version": "0.18.0b12", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", diff --git a/setup.py b/setup.py index 933ed0ce5..ea53bd936 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.18.0b11' +__version__ = '0.18.0b12' setup( name='flyteidl', From f123464fc720358b027a801b3cc6bba68127dc87 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Wed, 29 Jul 2020 11:11:19 -0700 Subject: [PATCH 58/64] doc --- protos/flyteidl/plugins/sagemaker/parameter_ranges.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto b/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto index 5da8518c8..909f4e6eb 100644 --- a/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto +++ b/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto @@ -41,6 +41,11 @@ message CategoricalParameterRange { repeated string values = 1; } + +// ParameterRangeOneOf describes a single ParameterRange, which is a one-of structure that can be one of +// the three possible types: ContinuousParameterRange, IntegerParameterRange, and CategoricalParameterRange. +// This one-of structure in Flyte enables specifying a Parameter in a type-safe manner +// See: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html message ParameterRangeOneOf { oneof parameter_range_type { ContinuousParameterRange continuous_parameter_range = 1; From ceb1df8555005745f1257f8f91c184a30bb5abe6 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Wed, 29 Jul 2020 11:13:58 -0700 Subject: [PATCH 59/64] fix the type of input_file_type field --- protos/flyteidl/plugins/sagemaker/training_job.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto index 756023c0a..00d180966 100644 --- a/protos/flyteidl/plugins/sagemaker/training_job.proto +++ b/protos/flyteidl/plugins/sagemaker/training_job.proto @@ -79,7 +79,7 @@ message AlgorithmSpecification { // The type of the input files (when using FILE input mode) // See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html // https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html - InputFileType input_file_type = 5; + InputFileType.Value input_file_type = 5; } // TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the From 12655b9776db4b16cf0a00e73ce057b51ff9a5d6 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Wed, 29 Jul 2020 11:16:08 -0700 Subject: [PATCH 60/64] make generate --- .../plugins/sagemaker/training_job.pb.cc | 128 ++++----- .../plugins/sagemaker/training_job.pb.h | 68 +---- .../plugins/sagemaker/parameter_ranges.pb.go | 4 + .../plugins/sagemaker/training_job.pb.go | 90 +++--- .../sagemaker/training_job.pb.validate.go | 10 +- .../sagemaker/ParameterRangesOuterClass.java | 14 + .../sagemaker/TrainingJobOuterClass.java | 263 +++++------------- .../sagemaker/parameter_ranges.proto.rst | 8 +- .../plugins/sagemaker/training_job.proto.rst | 4 +- .../plugins/sagemaker/training_job_pb2.py | 18 +- 10 files changed, 212 insertions(+), 395 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc index c14c9cc4d..67d6506bc 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc @@ -16,10 +16,9 @@ // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; namespace flyteidl { namespace plugins { namespace sagemaker { @@ -121,10 +120,9 @@ static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2f ::flyteidl::plugins::sagemaker::AlgorithmSpecification::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<2> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, { - &scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base, - &scc_info_InputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, { + &scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; static void InitDefaultsTrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -253,29 +251,30 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5 "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001" "\"7\n\rInputFileType\"&\n\005Value\022\014\n\010TEXT_CSV\020\000" "\022\017\n\013TEXT_LIBSVM\020\001\"/\n\020MetricDefinition\022\014\n" - "\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"\313\002\n\026Algorithm" + "\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"\321\002\n\026Algorithm" "Specification\022\?\n\ninput_mode\030\001 \001(\0162+.flyt" "eidl.plugins.sagemaker.InputMode.Value\022G" "\n\016algorithm_name\030\002 \001(\0162/.flyteidl.plugin" "s.sagemaker.AlgorithmName.Value\022\031\n\021algor" "ithm_version\030\003 \001(\t\022H\n\022metric_definitions" "\030\004 \003(\0132,.flyteidl.plugins.sagemaker.Metr" - "icDefinition\022B\n\017input_file_type\030\005 \001(\0132)." + "icDefinition\022H\n\017input_file_type\030\005 \001(\0162/." "flyteidl.plugins.sagemaker.InputFileType" - "\"e\n\031TrainingJobResourceConfig\022\026\n\016instanc" - "e_count\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021" - "volume_size_in_gb\030\003 \001(\003\"\277\001\n\013TrainingJob\022" - "S\n\027algorithm_specification\030\001 \001(\01322.flyte" - "idl.plugins.sagemaker.AlgorithmSpecifica" - "tion\022[\n\034training_job_resource_config\030\002 \001" - "(\01325.flyteidl.plugins.sagemaker.Training" - "JobResourceConfigB5Z3github.com/lyft/fly" - "teidl/gen/pb-go/flyteidl/pluginsb\006proto3" + ".Value\"e\n\031TrainingJobResourceConfig\022\026\n\016i" + "nstance_count\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001" + "(\t\022\031\n\021volume_size_in_gb\030\003 \001(\003\"\277\001\n\013Traini" + "ngJob\022S\n\027algorithm_specification\030\001 \001(\01322" + ".flyteidl.plugins.sagemaker.AlgorithmSpe" + "cification\022[\n\034training_job_resource_conf" + "ig\030\002 \001(\01325.flyteidl.plugins.sagemaker.Tr" + "ainingJobResourceConfigB5Z3github.com/ly" + "ft/flyteidl/gen/pb-go/flyteidl/pluginsb\006" + "proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, - "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 1000, + "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 1006, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { @@ -1355,18 +1354,11 @@ ::google::protobuf::Metadata MetricDefinition::GetMetadata() const { // =================================================================== void AlgorithmSpecification::InitAsDefaultInstance() { - ::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_._instance.get_mutable()->input_file_type_ = const_cast< ::flyteidl::plugins::sagemaker::InputFileType*>( - ::flyteidl::plugins::sagemaker::InputFileType::internal_default_instance()); } class AlgorithmSpecification::HasBitSetters { public: - static const ::flyteidl::plugins::sagemaker::InputFileType& input_file_type(const AlgorithmSpecification* msg); }; -const ::flyteidl::plugins::sagemaker::InputFileType& -AlgorithmSpecification::HasBitSetters::input_file_type(const AlgorithmSpecification* msg) { - return *msg->input_file_type_; -} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int AlgorithmSpecification::kInputModeFieldNumber; const int AlgorithmSpecification::kAlgorithmNameFieldNumber; @@ -1389,14 +1381,9 @@ AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& fro if (from.algorithm_version().size() > 0) { algorithm_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_version_); } - if (from.has_input_file_type()) { - input_file_type_ = new ::flyteidl::plugins::sagemaker::InputFileType(*from.input_file_type_); - } else { - input_file_type_ = nullptr; - } ::memcpy(&input_mode_, &from.input_mode_, - static_cast(reinterpret_cast(&algorithm_name_) - - reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_)); + static_cast(reinterpret_cast(&input_file_type_) - + reinterpret_cast(&input_mode_)) + sizeof(input_file_type_)); // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) } @@ -1404,9 +1391,9 @@ void AlgorithmSpecification::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); algorithm_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&input_file_type_, 0, static_cast( - reinterpret_cast(&algorithm_name_) - - reinterpret_cast(&input_file_type_)) + sizeof(algorithm_name_)); + ::memset(&input_mode_, 0, static_cast( + reinterpret_cast(&input_file_type_) - + reinterpret_cast(&input_mode_)) + sizeof(input_file_type_)); } AlgorithmSpecification::~AlgorithmSpecification() { @@ -1416,7 +1403,6 @@ AlgorithmSpecification::~AlgorithmSpecification() { void AlgorithmSpecification::SharedDtor() { algorithm_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete input_file_type_; } void AlgorithmSpecification::SetCachedSize(int size) const { @@ -1436,13 +1422,9 @@ void AlgorithmSpecification::Clear() { metric_definitions_.Clear(); algorithm_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && input_file_type_ != nullptr) { - delete input_file_type_; - } - input_file_type_ = nullptr; ::memset(&input_mode_, 0, static_cast( - reinterpret_cast(&algorithm_name_) - - reinterpret_cast(&input_mode_)) + sizeof(algorithm_name_)); + reinterpret_cast(&input_file_type_) - + reinterpret_cast(&input_mode_)) + sizeof(input_file_type_)); _internal_metadata_.Clear(); } @@ -1507,17 +1489,12 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); break; } - // .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + // .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); + if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_input_file_type(static_cast<::flyteidl::plugins::sagemaker::InputFileType_Value>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::sagemaker::InputFileType::_InternalParse; - object = msg->mutable_input_file_type(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); break; } default: { @@ -1608,11 +1585,14 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( break; } - // .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + // .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_input_file_type())); + if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_input_file_type(static_cast< ::flyteidl::plugins::sagemaker::InputFileType_Value >(value)); } else { goto handle_unusual; } @@ -1677,10 +1657,10 @@ void AlgorithmSpecification::SerializeWithCachedSizes( output); } - // .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; - if (this->has_input_file_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::input_file_type(this), output); + // .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + if (this->input_file_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 5, this->input_file_type(), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -1727,11 +1707,10 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi 4, this->metric_definitions(static_cast(i)), target); } - // .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; - if (this->has_input_file_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::input_file_type(this), target); + // .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + if (this->input_file_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 5, this->input_file_type(), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -1773,13 +1752,6 @@ size_t AlgorithmSpecification::ByteSizeLong() const { this->algorithm_version()); } - // .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; - if (this->has_input_file_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *input_file_type_); - } - // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; if (this->input_mode() != 0) { total_size += 1 + @@ -1792,6 +1764,12 @@ size_t AlgorithmSpecification::ByteSizeLong() const { ::google::protobuf::internal::WireFormatLite::EnumSize(this->algorithm_name()); } + // .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + if (this->input_file_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->input_file_type()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; @@ -1824,15 +1802,15 @@ void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { algorithm_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_version_); } - if (from.has_input_file_type()) { - mutable_input_file_type()->::flyteidl::plugins::sagemaker::InputFileType::MergeFrom(from.input_file_type()); - } if (from.input_mode() != 0) { set_input_mode(from.input_mode()); } if (from.algorithm_name() != 0) { set_algorithm_name(from.algorithm_name()); } + if (from.input_file_type() != 0) { + set_input_file_type(from.input_file_type()); + } } void AlgorithmSpecification::CopyFrom(const ::google::protobuf::Message& from) { @@ -1863,9 +1841,9 @@ void AlgorithmSpecification::InternalSwap(AlgorithmSpecification* other) { CastToBase(&metric_definitions_)->InternalSwap(CastToBase(&other->metric_definitions_)); algorithm_version_.Swap(&other->algorithm_version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - swap(input_file_type_, other->input_file_type_); swap(input_mode_, other->input_mode_); swap(algorithm_name_, other->algorithm_name_); + swap(input_file_type_, other->input_file_type_); } ::google::protobuf::Metadata AlgorithmSpecification::GetMetadata() const { diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h index e51da0708..d62a41160 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h @@ -806,15 +806,6 @@ class AlgorithmSpecification final : ::std::string* release_algorithm_version(); void set_allocated_algorithm_version(::std::string* algorithm_version); - // .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; - bool has_input_file_type() const; - void clear_input_file_type(); - static const int kInputFileTypeFieldNumber = 5; - const ::flyteidl::plugins::sagemaker::InputFileType& input_file_type() const; - ::flyteidl::plugins::sagemaker::InputFileType* release_input_file_type(); - ::flyteidl::plugins::sagemaker::InputFileType* mutable_input_file_type(); - void set_allocated_input_file_type(::flyteidl::plugins::sagemaker::InputFileType* input_file_type); - // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; void clear_input_mode(); static const int kInputModeFieldNumber = 1; @@ -827,6 +818,12 @@ class AlgorithmSpecification final : ::flyteidl::plugins::sagemaker::AlgorithmName_Value algorithm_name() const; void set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName_Value value); + // .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + void clear_input_file_type(); + static const int kInputFileTypeFieldNumber = 5; + ::flyteidl::plugins::sagemaker::InputFileType_Value input_file_type() const; + void set_input_file_type(::flyteidl::plugins::sagemaker::InputFileType_Value value); + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) private: class HasBitSetters; @@ -834,9 +831,9 @@ class AlgorithmSpecification final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::MetricDefinition > metric_definitions_; ::google::protobuf::internal::ArenaStringPtr algorithm_version_; - ::flyteidl::plugins::sagemaker::InputFileType* input_file_type_; int input_mode_; int algorithm_name_; + int input_file_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; @@ -1343,55 +1340,18 @@ AlgorithmSpecification::metric_definitions() const { return metric_definitions_; } -// .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; -inline bool AlgorithmSpecification::has_input_file_type() const { - return this != internal_default_instance() && input_file_type_ != nullptr; -} +// .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; inline void AlgorithmSpecification::clear_input_file_type() { - if (GetArenaNoVirtual() == nullptr && input_file_type_ != nullptr) { - delete input_file_type_; - } - input_file_type_ = nullptr; + input_file_type_ = 0; } -inline const ::flyteidl::plugins::sagemaker::InputFileType& AlgorithmSpecification::input_file_type() const { - const ::flyteidl::plugins::sagemaker::InputFileType* p = input_file_type_; +inline ::flyteidl::plugins::sagemaker::InputFileType_Value AlgorithmSpecification::input_file_type() const { // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::sagemaker::_InputFileType_default_instance_); -} -inline ::flyteidl::plugins::sagemaker::InputFileType* AlgorithmSpecification::release_input_file_type() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type) - - ::flyteidl::plugins::sagemaker::InputFileType* temp = input_file_type_; - input_file_type_ = nullptr; - return temp; + return static_cast< ::flyteidl::plugins::sagemaker::InputFileType_Value >(input_file_type_); } -inline ::flyteidl::plugins::sagemaker::InputFileType* AlgorithmSpecification::mutable_input_file_type() { +inline void AlgorithmSpecification::set_input_file_type(::flyteidl::plugins::sagemaker::InputFileType_Value value) { - if (input_file_type_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::InputFileType>(GetArenaNoVirtual()); - input_file_type_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type) - return input_file_type_; -} -inline void AlgorithmSpecification::set_allocated_input_file_type(::flyteidl::plugins::sagemaker::InputFileType* input_file_type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete input_file_type_; - } - if (input_file_type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - input_file_type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, input_file_type, submessage_arena); - } - - } else { - - } - input_file_type_ = input_file_type; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type) + input_file_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type) } // ------------------------------------------------------------------- diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go index aee13f5ec..2c61347b0 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go @@ -243,6 +243,10 @@ func (m *CategoricalParameterRange) GetValues() []string { return nil } +// ParameterRangeOneOf describes a single ParameterRange, which is a one-of structure that can be one of +// the three possible types: ContinuousParameterRange, IntegerParameterRange, and CategoricalParameterRange. +// This one-of structure in Flyte enables specifying a Parameter in a type-safe manner +// See: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html type ParameterRangeOneOf struct { // Types that are valid to be assigned to ParameterRangeType: // *ParameterRangeOneOf_ContinuousParameterRange diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go index 045bbe7bf..bf30f9d6b 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -278,10 +278,10 @@ type AlgorithmSpecification struct { // The type of the input files (when using FILE input mode) // See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html // https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html - InputFileType *InputFileType `protobuf:"bytes,5,opt,name=input_file_type,json=inputFileType,proto3" json:"input_file_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + InputFileType InputFileType_Value `protobuf:"varint,5,opt,name=input_file_type,json=inputFileType,proto3,enum=flyteidl.plugins.sagemaker.InputFileType_Value" json:"input_file_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AlgorithmSpecification) Reset() { *m = AlgorithmSpecification{} } @@ -337,11 +337,11 @@ func (m *AlgorithmSpecification) GetMetricDefinitions() []*MetricDefinition { return nil } -func (m *AlgorithmSpecification) GetInputFileType() *InputFileType { +func (m *AlgorithmSpecification) GetInputFileType() InputFileType_Value { if m != nil { return m.InputFileType } - return nil + return InputFileType_TEXT_CSV } // TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the @@ -472,43 +472,43 @@ func init() { } var fileDescriptor_6a68f64d8fd9fe30 = []byte{ - // 605 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x41, 0x4f, 0xdb, 0x4c, - 0x10, 0xc5, 0x04, 0xf8, 0x60, 0x4c, 0x82, 0x59, 0x7d, 0xa2, 0x81, 0x56, 0x55, 0xe4, 0xaa, 0x55, - 0x10, 0xc5, 0x56, 0x83, 0x50, 0x2f, 0xbd, 0x94, 0x14, 0x50, 0x10, 0x29, 0xd4, 0x49, 0x23, 0xd4, - 0x1e, 0x2c, 0xdb, 0x19, 0x9b, 0x2d, 0xf6, 0xae, 0x65, 0xaf, 0x51, 0xc3, 0xcf, 0xe8, 0xad, 0x7f, - 0xb3, 0xbf, 0xa0, 0xf2, 0x3a, 0x36, 0x01, 0x15, 0xda, 0x9b, 0xf7, 0xed, 0xec, 0x9b, 0x37, 0x6f, - 0xc6, 0x03, 0xbb, 0x7e, 0x38, 0x11, 0x48, 0xc7, 0xa1, 0x19, 0x87, 0x59, 0x40, 0x59, 0x6a, 0xa6, - 0x4e, 0x80, 0x91, 0x73, 0x85, 0x89, 0x29, 0x12, 0x87, 0x32, 0xca, 0x02, 0xfb, 0x1b, 0x77, 0x8d, - 0x38, 0xe1, 0x82, 0x93, 0xad, 0x32, 0xdc, 0x98, 0x86, 0x1b, 0x55, 0xf8, 0xd6, 0xf3, 0x80, 0xf3, - 0x20, 0x44, 0x53, 0x46, 0xba, 0x99, 0x6f, 0x8e, 0xb3, 0xc4, 0x11, 0x94, 0xb3, 0xe2, 0xad, 0xde, - 0x86, 0x95, 0x1e, 0x8b, 0x33, 0xd1, 0xe7, 0x63, 0xd4, 0x9f, 0xc2, 0xe2, 0xc8, 0x09, 0x33, 0x24, - 0xcb, 0xb0, 0x70, 0xd4, 0x3b, 0x3d, 0xd4, 0xe6, 0xf2, 0xaf, 0xf3, 0xde, 0xf9, 0xa1, 0xa6, 0xe8, - 0x6f, 0xa0, 0xfe, 0x3e, 0x0c, 0x78, 0x42, 0xc5, 0x65, 0xf4, 0xd1, 0x89, 0x50, 0x6f, 0x95, 0xd1, - 0x00, 0x4b, 0xdd, 0xcf, 0x83, 0xe1, 0x59, 0x5f, 0x9b, 0x23, 0x2a, 0xfc, 0x77, 0x71, 0x7c, 0x70, - 0x76, 0x36, 0x18, 0x6a, 0x8a, 0xfe, 0x16, 0xea, 0x92, 0xfc, 0x88, 0x86, 0x38, 0x9c, 0xc4, 0xa8, - 0xbf, 0x2a, 0x9f, 0xac, 0xc2, 0xf2, 0xf0, 0xf0, 0x62, 0x68, 0x77, 0x07, 0x23, 0x6d, 0x8e, 0xac, - 0x81, 0x2a, 0x4f, 0xa7, 0xbd, 0x83, 0xc1, 0xa8, 0xaf, 0x29, 0xfa, 0x3b, 0xd0, 0xfa, 0x28, 0x12, - 0xea, 0x7d, 0x40, 0x9f, 0x32, 0x9a, 0xeb, 0x25, 0x04, 0x16, 0x98, 0x13, 0x61, 0x53, 0x69, 0x29, - 0xed, 0x15, 0x4b, 0x7e, 0x93, 0xff, 0x61, 0x31, 0xc1, 0x00, 0xbf, 0x37, 0xe7, 0x25, 0x58, 0x1c, - 0xf4, 0x9f, 0x35, 0xd8, 0xa8, 0xa4, 0x0e, 0x62, 0xf4, 0xa8, 0x4f, 0x3d, 0x59, 0x34, 0x39, 0x01, - 0xa0, 0xb9, 0x22, 0x3b, 0xe2, 0xe3, 0x82, 0xaa, 0xd1, 0xd9, 0x31, 0x1e, 0xf6, 0xcf, 0xa8, 0xcc, - 0x31, 0xa4, 0x70, 0x6b, 0x85, 0x96, 0x00, 0x19, 0x41, 0xc3, 0x29, 0xb3, 0xd8, 0x52, 0xda, 0xbc, - 0xe4, 0x33, 0x1f, 0xe3, 0xbb, 0x63, 0xe1, 0x94, 0xb3, 0xee, 0xcc, 0x82, 0x64, 0x07, 0xd6, 0x6f, - 0x79, 0xaf, 0x31, 0x49, 0x29, 0x67, 0xcd, 0x9a, 0x2c, 0x50, 0xab, 0x2e, 0x46, 0x05, 0x4e, 0xbe, - 0x02, 0x89, 0xa4, 0x53, 0xf6, 0xb8, 0xb2, 0x2a, 0x6d, 0x2e, 0xb4, 0x6a, 0x6d, 0xb5, 0xf3, 0xfa, - 0x31, 0x21, 0xf7, 0xfd, 0xb5, 0xd6, 0xa3, 0x7b, 0x48, 0x4a, 0x3e, 0xc1, 0x5a, 0xe1, 0x96, 0x4f, - 0x43, 0xb4, 0xc5, 0x24, 0xc6, 0xe6, 0x62, 0x4b, 0x69, 0xab, 0x9d, 0xed, 0xbf, 0x5a, 0x56, 0xb6, - 0xdc, 0xaa, 0xd3, 0x3b, 0x13, 0xf0, 0x43, 0x81, 0xcd, 0xe1, 0x74, 0x84, 0x4f, 0xb8, 0x6b, 0x61, - 0xca, 0xb3, 0xc4, 0xc3, 0x2e, 0x67, 0x3e, 0x0d, 0xc8, 0x4b, 0x68, 0x50, 0x96, 0x0a, 0x87, 0x79, - 0x68, 0x7b, 0x3c, 0x63, 0x42, 0xb6, 0xa8, 0x96, 0x93, 0x14, 0x68, 0x37, 0x07, 0xc9, 0x0b, 0xa8, - 0x80, 0x42, 0x55, 0xd1, 0xfe, 0xd5, 0x12, 0xcc, 0x33, 0x91, 0x6d, 0x58, 0xbf, 0xe6, 0x61, 0x16, - 0xa1, 0x9d, 0xd2, 0x1b, 0xb4, 0x29, 0xb3, 0x03, 0x57, 0xda, 0x58, 0xb3, 0x1a, 0xc5, 0xc5, 0x80, - 0xde, 0x60, 0x8f, 0x1d, 0xbb, 0xfa, 0x2f, 0x05, 0xd4, 0x19, 0x51, 0xe4, 0x0a, 0x9e, 0xdc, 0x76, - 0x20, 0x9d, 0x1d, 0x20, 0xa9, 0x47, 0xed, 0x74, 0xfe, 0xa9, 0xc5, 0x77, 0x46, 0xcf, 0xda, 0x70, - 0xfe, 0x3c, 0x92, 0xd7, 0xf0, 0x6c, 0xf6, 0x9f, 0xb6, 0x93, 0xa9, 0x25, 0xb6, 0x27, 0x3d, 0x91, - 0xb5, 0xa9, 0x9d, 0xfd, 0xc7, 0x32, 0x3e, 0x68, 0xa8, 0xb5, 0x29, 0x1e, 0xba, 0x3a, 0xd8, 0xff, - 0xb2, 0x17, 0x50, 0x71, 0x99, 0xb9, 0x86, 0xc7, 0x23, 0x33, 0x9c, 0xf8, 0xc2, 0xac, 0xd6, 0x4e, - 0x80, 0xcc, 0x8c, 0xdd, 0xdd, 0x80, 0x9b, 0xf7, 0x37, 0x91, 0xbb, 0x24, 0xf7, 0xc6, 0xde, 0xef, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x18, 0x54, 0xe8, 0xb7, 0xa4, 0x04, 0x00, 0x00, + // 599 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xd1, 0x4e, 0xd4, 0x40, + 0x14, 0xa5, 0x2c, 0x20, 0xdc, 0x85, 0xa5, 0x4c, 0x0c, 0x2e, 0x68, 0x0c, 0xa9, 0xd1, 0x60, 0x90, + 0x36, 0x2e, 0x21, 0xbe, 0xf8, 0x22, 0x2b, 0x90, 0x25, 0xac, 0x90, 0xee, 0xba, 0x12, 0x7d, 0x68, + 0xda, 0xee, 0xed, 0x30, 0xd2, 0xce, 0x34, 0xed, 0x94, 0xb8, 0x7c, 0x86, 0x3f, 0xe0, 0x3f, 0xfa, + 0x05, 0xa6, 0xd3, 0x6d, 0xd9, 0x25, 0x82, 0xbe, 0x75, 0xce, 0xdc, 0x39, 0x73, 0xee, 0xb9, 0xa7, + 0x03, 0xbb, 0x41, 0x38, 0x92, 0xc8, 0x86, 0xa1, 0x15, 0x87, 0x19, 0x65, 0x3c, 0xb5, 0x52, 0x97, + 0x62, 0xe4, 0x5e, 0x61, 0x62, 0xc9, 0xc4, 0x65, 0x9c, 0x71, 0xea, 0x7c, 0x17, 0x9e, 0x19, 0x27, + 0x42, 0x0a, 0xb2, 0x59, 0x96, 0x9b, 0xe3, 0x72, 0xb3, 0x2a, 0xdf, 0x7c, 0x4e, 0x85, 0xa0, 0x21, + 0x5a, 0xaa, 0xd2, 0xcb, 0x02, 0x6b, 0x98, 0x25, 0xae, 0x64, 0x82, 0x17, 0x67, 0x8d, 0x6d, 0x58, + 0xea, 0xf0, 0x38, 0x93, 0x5d, 0x31, 0x44, 0xe3, 0x29, 0xcc, 0x0f, 0xdc, 0x30, 0x43, 0xb2, 0x08, + 0x73, 0x47, 0x9d, 0xd3, 0x43, 0x7d, 0x26, 0xff, 0x3a, 0xef, 0x9c, 0x1f, 0xea, 0x9a, 0xf1, 0x16, + 0x56, 0x3e, 0x84, 0x54, 0x24, 0x4c, 0x5e, 0x46, 0x9f, 0xdc, 0x08, 0x8d, 0xad, 0xb2, 0x1a, 0x60, + 0xa1, 0xfd, 0xb9, 0xd7, 0x3f, 0xeb, 0xea, 0x33, 0xa4, 0x0e, 0x8f, 0x2e, 0x8e, 0x0f, 0xce, 0xce, + 0x7a, 0x7d, 0x5d, 0x33, 0xde, 0xc1, 0x8a, 0x22, 0x3f, 0x62, 0x21, 0xf6, 0x47, 0x31, 0x1a, 0xaf, + 0xca, 0x23, 0xcb, 0xb0, 0xd8, 0x3f, 0xbc, 0xe8, 0x3b, 0xed, 0xde, 0x40, 0x9f, 0x21, 0xab, 0x50, + 0x57, 0xab, 0xd3, 0xce, 0x41, 0x6f, 0xd0, 0xd5, 0x35, 0xe3, 0x3d, 0xe8, 0x5d, 0x94, 0x09, 0xf3, + 0x3f, 0x62, 0xc0, 0x38, 0xcb, 0xf5, 0x12, 0x02, 0x73, 0xdc, 0x8d, 0xb0, 0xa9, 0x6d, 0x69, 0xdb, + 0x4b, 0xb6, 0xfa, 0x26, 0x8f, 0x61, 0x3e, 0x41, 0x8a, 0x3f, 0x9a, 0xb3, 0x0a, 0x2c, 0x16, 0xc6, + 0xaf, 0x1a, 0xac, 0x57, 0x52, 0x7b, 0x31, 0xfa, 0x2c, 0x60, 0xbe, 0x6a, 0x9a, 0x9c, 0x00, 0xb0, + 0x5c, 0x91, 0x13, 0x89, 0x61, 0x41, 0xd5, 0x68, 0xed, 0x98, 0xf7, 0xfb, 0x67, 0x56, 0xe6, 0x98, + 0x4a, 0xb8, 0xbd, 0xc4, 0x4a, 0x80, 0x0c, 0xa0, 0xe1, 0x96, 0xb7, 0x38, 0x4a, 0xda, 0xac, 0xe2, + 0xb3, 0x1e, 0xe2, 0x9b, 0xb2, 0x70, 0xcc, 0xb9, 0xe2, 0x4e, 0x82, 0x64, 0x07, 0xd6, 0x6e, 0x79, + 0xaf, 0x31, 0x49, 0x99, 0xe0, 0xcd, 0x9a, 0x6a, 0x50, 0xaf, 0x36, 0x06, 0x05, 0x4e, 0xbe, 0x01, + 0x89, 0x94, 0x53, 0xce, 0xb0, 0xb2, 0x2a, 0x6d, 0xce, 0x6d, 0xd5, 0xb6, 0xeb, 0xad, 0x37, 0x0f, + 0x09, 0xb9, 0xeb, 0xaf, 0xbd, 0x16, 0xdd, 0x41, 0x52, 0xf2, 0x05, 0x56, 0x0b, 0xb7, 0x02, 0x16, + 0xa2, 0x23, 0x47, 0x31, 0x36, 0xe7, 0xff, 0xdd, 0xe2, 0xd4, 0xc8, 0xcb, 0x16, 0xd9, 0x54, 0x0e, + 0x7e, 0x6a, 0xb0, 0xd1, 0x1f, 0x07, 0xf9, 0x44, 0x78, 0x36, 0xa6, 0x22, 0x4b, 0x7c, 0x6c, 0x0b, + 0x1e, 0x30, 0x4a, 0x5e, 0x42, 0x83, 0xf1, 0x54, 0xba, 0xdc, 0x47, 0xc7, 0x17, 0x19, 0x97, 0x6a, + 0x50, 0xb5, 0x9c, 0xa4, 0x40, 0xdb, 0x39, 0x48, 0x5e, 0x40, 0x05, 0x14, 0xda, 0x8a, 0x10, 0x2c, + 0x97, 0x60, 0x7e, 0x13, 0x79, 0x0d, 0x6b, 0xd7, 0x22, 0xcc, 0x22, 0x74, 0x52, 0x76, 0x83, 0x0e, + 0xe3, 0x0e, 0xf5, 0x94, 0x99, 0x35, 0xbb, 0x51, 0x6c, 0xf4, 0xd8, 0x0d, 0x76, 0xf8, 0xb1, 0x67, + 0xfc, 0xd6, 0xa0, 0x3e, 0x21, 0x8a, 0x5c, 0xc1, 0x93, 0xdb, 0x39, 0xa4, 0x93, 0x31, 0x52, 0x7a, + 0xea, 0xad, 0xd6, 0x7f, 0x0d, 0x7a, 0x2a, 0x80, 0xf6, 0xba, 0xfb, 0xf7, 0x60, 0x5e, 0xc3, 0xb3, + 0xc9, 0x3f, 0xdb, 0x49, 0xc6, 0x96, 0x38, 0xbe, 0xf2, 0x44, 0xf5, 0x56, 0x6f, 0xed, 0x3f, 0x74, + 0xe3, 0xbd, 0x86, 0xda, 0x1b, 0xf2, 0xbe, 0xad, 0x83, 0xfd, 0xaf, 0x7b, 0x94, 0xc9, 0xcb, 0xcc, + 0x33, 0x7d, 0x11, 0x59, 0xe1, 0x28, 0x90, 0x56, 0xf5, 0xf8, 0x50, 0xe4, 0x56, 0xec, 0xed, 0x52, + 0x61, 0xdd, 0x7d, 0x8f, 0xbc, 0x05, 0xf5, 0x7a, 0xec, 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0xd1, + 0xa4, 0x36, 0x19, 0xaa, 0x04, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go index c9cc606e3..1273b4d0f 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go @@ -328,15 +328,7 @@ func (m *AlgorithmSpecification) Validate() error { } - if v, ok := interface{}(m.GetInputFileType()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AlgorithmSpecificationValidationError{ - field: "InputFileType", - reason: "embedded message failed validation", - cause: err, - } - } - } + // no validation rules for InputFileType return nil } diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java index 101d4bde9..d0ba674bd 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java @@ -2504,6 +2504,13 @@ public interface ParameterRangeOneOfOrBuilder extends public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.ParameterRangeTypeCase getParameterRangeTypeCase(); } /** + *
+   * ParameterRangeOneOf describes a single ParameterRange, which is a one-of structure that can be one of
+   * the three possible types: ContinuousParameterRange, IntegerParameterRange, and CategoricalParameterRange.
+   * This one-of structure in Flyte enables specifying a Parameter in a type-safe manner
+   * See: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+   * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf} */ public static final class ParameterRangeOneOf extends @@ -2933,6 +2940,13 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * ParameterRangeOneOf describes a single ParameterRange, which is a one-of structure that can be one of
+     * the three possible types: ContinuousParameterRange, IntegerParameterRange, and CategoricalParameterRange.
+     * This one-of structure in Flyte enables specifying a Parameter in a type-safe manner
+     * See: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+     * 
+ * * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf} */ public static final class Builder extends diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java index 422827478..0f404d862 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -2478,9 +2478,9 @@ flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder getMe * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html *
* - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; */ - boolean hasInputFileType(); + int getInputFileTypeValue(); /** *
      * The type of the input files (when using FILE input mode)
@@ -2488,19 +2488,9 @@ flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder getMe
      * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
      * 
* - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getInputFileType(); - /** - *
-     * The type of the input files (when using FILE input mode)
-     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
-     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
-     * 
- * - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; - */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder getInputFileTypeOrBuilder(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value getInputFileType(); } /** *
@@ -2529,6 +2519,7 @@ private AlgorithmSpecification() {
       algorithmName_ = 0;
       algorithmVersion_ = "";
       metricDefinitions_ = java.util.Collections.emptyList();
+      inputFileType_ = 0;
     }
 
     @java.lang.Override
@@ -2582,17 +2573,10 @@ private AlgorithmSpecification(
                   input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.parser(), extensionRegistry));
               break;
             }
-            case 42: {
-              flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder subBuilder = null;
-              if (inputFileType_ != null) {
-                subBuilder = inputFileType_.toBuilder();
-              }
-              inputFileType_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(inputFileType_);
-                inputFileType_ = subBuilder.buildPartial();
-              }
+            case 40: {
+              int rawValue = input.readEnum();
 
+              inputFileType_ = rawValue;
               break;
             }
             default: {
@@ -2793,19 +2777,7 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilde
     }
 
     public static final int INPUT_FILE_TYPE_FIELD_NUMBER = 5;
-    private flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType inputFileType_;
-    /**
-     * 
-     * The type of the input files (when using FILE input mode)
-     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
-     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
-     * 
- * - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; - */ - public boolean hasInputFileType() { - return inputFileType_ != null; - } + private int inputFileType_; /** *
      * The type of the input files (when using FILE input mode)
@@ -2813,10 +2785,10 @@ public boolean hasInputFileType() {
      * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
      * 
* - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getInputFileType() { - return inputFileType_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.getDefaultInstance() : inputFileType_; + public int getInputFileTypeValue() { + return inputFileType_; } /** *
@@ -2825,10 +2797,12 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getInputFi
      * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
      * 
* - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder getInputFileTypeOrBuilder() { - return getInputFileType(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value getInputFileType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value.valueOf(inputFileType_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -2857,8 +2831,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < metricDefinitions_.size(); i++) { output.writeMessage(4, metricDefinitions_.get(i)); } - if (inputFileType_ != null) { - output.writeMessage(5, getInputFileType()); + if (inputFileType_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value.TEXT_CSV.getNumber()) { + output.writeEnum(5, inputFileType_); } unknownFields.writeTo(output); } @@ -2884,9 +2858,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, metricDefinitions_.get(i)); } - if (inputFileType_ != null) { + if (inputFileType_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value.TEXT_CSV.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getInputFileType()); + .computeEnumSize(5, inputFileType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2909,11 +2883,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAlgorithmVersion())) return false; if (!getMetricDefinitionsList() .equals(other.getMetricDefinitionsList())) return false; - if (hasInputFileType() != other.hasInputFileType()) return false; - if (hasInputFileType()) { - if (!getInputFileType() - .equals(other.getInputFileType())) return false; - } + if (inputFileType_ != other.inputFileType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2935,10 +2905,8 @@ public int hashCode() { hash = (37 * hash) + METRIC_DEFINITIONS_FIELD_NUMBER; hash = (53 * hash) + getMetricDefinitionsList().hashCode(); } - if (hasInputFileType()) { - hash = (37 * hash) + INPUT_FILE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getInputFileType().hashCode(); - } + hash = (37 * hash) + INPUT_FILE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + inputFileType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3095,12 +3063,8 @@ public Builder clear() { } else { metricDefinitionsBuilder_.clear(); } - if (inputFileTypeBuilder_ == null) { - inputFileType_ = null; - } else { - inputFileType_ = null; - inputFileTypeBuilder_ = null; - } + inputFileType_ = 0; + return this; } @@ -3141,11 +3105,7 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification b } else { result.metricDefinitions_ = metricDefinitionsBuilder_.build(); } - if (inputFileTypeBuilder_ == null) { - result.inputFileType_ = inputFileType_; - } else { - result.inputFileType_ = inputFileTypeBuilder_.build(); - } + result.inputFileType_ = inputFileType_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -3231,8 +3191,8 @@ public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.Algori } } } - if (other.hasInputFileType()) { - mergeInputFileType(other.getInputFileType()); + if (other.inputFileType_ != 0) { + setInputFileTypeValue(other.getInputFileTypeValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3841,21 +3801,7 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder return metricDefinitionsBuilder_; } - private flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType inputFileType_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder> inputFileTypeBuilder_; - /** - *
-       * The type of the input files (when using FILE input mode)
-       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
-       * 
- * - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; - */ - public boolean hasInputFileType() { - return inputFileTypeBuilder_ != null || inputFileType_ != null; - } + private int inputFileType_ = 0; /** *
        * The type of the input files (when using FILE input mode)
@@ -3863,14 +3809,10 @@ public boolean hasInputFileType() {
        * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
        * 
* - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getInputFileType() { - if (inputFileTypeBuilder_ == null) { - return inputFileType_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.getDefaultInstance() : inputFileType_; - } else { - return inputFileTypeBuilder_.getMessage(); - } + public int getInputFileTypeValue() { + return inputFileType_; } /** *
@@ -3879,19 +3821,11 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getInputFi
        * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
        * 
* - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; */ - public Builder setInputFileType(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType value) { - if (inputFileTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputFileType_ = value; - onChanged(); - } else { - inputFileTypeBuilder_.setMessage(value); - } - + public Builder setInputFileTypeValue(int value) { + inputFileType_ = value; + onChanged(); return this; } /** @@ -3901,18 +3835,12 @@ public Builder setInputFileType(flyteidl.plugins.sagemaker.TrainingJobOuterClass * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html *
* - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; */ - public Builder setInputFileType( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder builderForValue) { - if (inputFileTypeBuilder_ == null) { - inputFileType_ = builderForValue.build(); - onChanged(); - } else { - inputFileTypeBuilder_.setMessage(builderForValue.build()); - } - - return this; + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value getInputFileType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value.valueOf(inputFileType_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value.UNRECOGNIZED : result; } /** *
@@ -3921,21 +3849,15 @@ public Builder setInputFileType(
        * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
        * 
* - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; */ - public Builder mergeInputFileType(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType value) { - if (inputFileTypeBuilder_ == null) { - if (inputFileType_ != null) { - inputFileType_ = - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.newBuilder(inputFileType_).mergeFrom(value).buildPartial(); - } else { - inputFileType_ = value; - } - onChanged(); - } else { - inputFileTypeBuilder_.mergeFrom(value); + public Builder setInputFileType(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value value) { + if (value == null) { + throw new NullPointerException(); } - + + inputFileType_ = value.getNumber(); + onChanged(); return this; } /** @@ -3945,71 +3867,13 @@ public Builder mergeInputFileType(flyteidl.plugins.sagemaker.TrainingJobOuterCla * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html *
* - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; */ public Builder clearInputFileType() { - if (inputFileTypeBuilder_ == null) { - inputFileType_ = null; - onChanged(); - } else { - inputFileType_ = null; - inputFileTypeBuilder_ = null; - } - - return this; - } - /** - *
-       * The type of the input files (when using FILE input mode)
-       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
-       * 
- * - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder getInputFileTypeBuilder() { + inputFileType_ = 0; onChanged(); - return getInputFileTypeFieldBuilder().getBuilder(); - } - /** - *
-       * The type of the input files (when using FILE input mode)
-       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
-       * 
- * - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; - */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder getInputFileTypeOrBuilder() { - if (inputFileTypeBuilder_ != null) { - return inputFileTypeBuilder_.getMessageOrBuilder(); - } else { - return inputFileType_ == null ? - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.getDefaultInstance() : inputFileType_; - } - } - /** - *
-       * The type of the input files (when using FILE input mode)
-       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
-       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
-       * 
- * - * .flyteidl.plugins.sagemaker.InputFileType input_file_type = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder> - getInputFileTypeFieldBuilder() { - if (inputFileTypeBuilder_ == null) { - inputFileTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder>( - getInputFileType(), - getParentForChildren(), - isClean()); - inputFileType_ = null; - } - return inputFileTypeBuilder_; + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -5688,24 +5552,25 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001" + "\"7\n\rInputFileType\"&\n\005Value\022\014\n\010TEXT_CSV\020\000" + "\022\017\n\013TEXT_LIBSVM\020\001\"/\n\020MetricDefinition\022\014\n" + - "\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"\313\002\n\026Algorithm" + + "\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"\321\002\n\026Algorithm" + "Specification\022?\n\ninput_mode\030\001 \001(\0162+.flyt" + "eidl.plugins.sagemaker.InputMode.Value\022G" + "\n\016algorithm_name\030\002 \001(\0162/.flyteidl.plugin" + "s.sagemaker.AlgorithmName.Value\022\031\n\021algor" + "ithm_version\030\003 \001(\t\022H\n\022metric_definitions" + "\030\004 \003(\0132,.flyteidl.plugins.sagemaker.Metr" + - "icDefinition\022B\n\017input_file_type\030\005 \001(\0132)." + + "icDefinition\022H\n\017input_file_type\030\005 \001(\0162/." + "flyteidl.plugins.sagemaker.InputFileType" + - "\"e\n\031TrainingJobResourceConfig\022\026\n\016instanc" + - "e_count\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021" + - "volume_size_in_gb\030\003 \001(\003\"\277\001\n\013TrainingJob\022" + - "S\n\027algorithm_specification\030\001 \001(\01322.flyte" + - "idl.plugins.sagemaker.AlgorithmSpecifica" + - "tion\022[\n\034training_job_resource_config\030\002 \001" + - "(\01325.flyteidl.plugins.sagemaker.Training" + - "JobResourceConfigB5Z3github.com/lyft/fly" + - "teidl/gen/pb-go/flyteidl/pluginsb\006proto3" + ".Value\"e\n\031TrainingJobResourceConfig\022\026\n\016i" + + "nstance_count\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001" + + "(\t\022\031\n\021volume_size_in_gb\030\003 \001(\003\"\277\001\n\013Traini" + + "ngJob\022S\n\027algorithm_specification\030\001 \001(\01322" + + ".flyteidl.plugins.sagemaker.AlgorithmSpe" + + "cification\022[\n\034training_job_resource_conf" + + "ig\030\002 \001(\01325.flyteidl.plugins.sagemaker.Tr" + + "ainingJobResourceConfigB5Z3github.com/ly" + + "ft/flyteidl/gen/pb-go/flyteidl/pluginsb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst index 7d7441606..ab5e14097 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/parameter_ranges.proto.rst @@ -150,8 +150,12 @@ values flyteidl.plugins.sagemaker.ParameterRangeOneOf ---------------------------------------------- -`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_ +`[flyteidl.plugins.sagemaker.ParameterRangeOneOf proto] `_ +ParameterRangeOneOf describes a single ParameterRange, which is a one-of structure that can be one of +the three possible types: ContinuousParameterRange, IntegerParameterRange, and CategoricalParameterRange. +This one-of structure in Flyte enables specifying a Parameter in a type-safe manner +See: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html .. code-block:: json @@ -192,7 +196,7 @@ categorical_parameter_range flyteidl.plugins.sagemaker.ParameterRanges ------------------------------------------ -`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ +`[flyteidl.plugins.sagemaker.ParameterRanges proto] `_ ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst index 1b27afb6c..6ae6de279 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst @@ -170,7 +170,7 @@ https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecifica "algorithm_name": "...", "algorithm_version": "...", "metric_definitions": [], - "input_file_type": "{...}" + "input_file_type": "..." } .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode: @@ -204,7 +204,7 @@ metric_definitions .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type: input_file_type - (:ref:`flyteidl.plugins.sagemaker.InputFileType `) The type of the input files (when using FILE input mode) + (:ref:`flyteidl.plugins.sagemaker.InputFileType.Value `) The type of the input files (when using FILE input mode) See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py index 0c2cda7a1..7eec7a0ed 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py @@ -21,7 +21,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"7\n\rInputFileType\"&\n\x05Value\x12\x0c\n\x08TEXT_CSV\x10\x00\x12\x0f\n\x0bTEXT_LIBSVM\x10\x01\"/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"\xcb\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12H\n\x12metric_definitions\x18\x04 \x03(\x0b\x32,.flyteidl.plugins.sagemaker.MetricDefinition\x12\x42\n\x0finput_file_type\x18\x05 \x01(\x0b\x32).flyteidl.plugins.sagemaker.InputFileType\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\xbf\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12[\n\x1ctraining_job_resource_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"7\n\rInputFileType\"&\n\x05Value\x12\x0c\n\x08TEXT_CSV\x10\x00\x12\x0f\n\x0bTEXT_LIBSVM\x10\x01\"/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"\xd1\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12H\n\x12metric_definitions\x18\x04 \x03(\x0b\x32,.flyteidl.plugins.sagemaker.MetricDefinition\x12H\n\x0finput_file_type\x18\x05 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.InputFileType.Value\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\xbf\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12[\n\x1ctraining_job_resource_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) @@ -244,8 +244,8 @@ serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='input_file_type', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -262,7 +262,7 @@ oneofs=[ ], serialized_start=309, - serialized_end=640, + serialized_end=646, ) @@ -306,8 +306,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=642, - serialized_end=743, + serialized_start=648, + serialized_end=749, ) @@ -344,8 +344,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=746, - serialized_end=937, + serialized_start=752, + serialized_end=943, ) _INPUTMODE_VALUE.containing_type = _INPUTMODE @@ -354,7 +354,7 @@ _ALGORITHMSPECIFICATION.fields_by_name['input_mode'].enum_type = _INPUTMODE_VALUE _ALGORITHMSPECIFICATION.fields_by_name['algorithm_name'].enum_type = _ALGORITHMNAME_VALUE _ALGORITHMSPECIFICATION.fields_by_name['metric_definitions'].message_type = _METRICDEFINITION -_ALGORITHMSPECIFICATION.fields_by_name['input_file_type'].message_type = _INPUTFILETYPE +_ALGORITHMSPECIFICATION.fields_by_name['input_file_type'].enum_type = _INPUTFILETYPE_VALUE _TRAININGJOB.fields_by_name['algorithm_specification'].message_type = _ALGORITHMSPECIFICATION _TRAININGJOB.fields_by_name['training_job_resource_config'].message_type = _TRAININGJOBRESOURCECONFIG DESCRIPTOR.message_types_by_name['InputMode'] = _INPUTMODE From 88e7570c0b35462a1b7280677498b781b7450fc9 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Wed, 29 Jul 2020 14:02:47 -0700 Subject: [PATCH 61/64] fix comments --- protos/flyteidl/plugins/sagemaker/training_job.proto | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto index 00d180966..40033c20c 100644 --- a/protos/flyteidl/plugins/sagemaker/training_job.proto +++ b/protos/flyteidl/plugins/sagemaker/training_job.proto @@ -32,7 +32,7 @@ message AlgorithmName { } -// When using FILE input mode, different SageMaker built-in algorithms require different file types of input data +// Specifies the type of file for input data. Different SageMaker built-in algorithms require different file types of input data // See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html // https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html message InputFileType { @@ -65,7 +65,6 @@ message AlgorithmSpecification { InputMode.Value input_mode = 1; // The algorithm name is used for deciding which pre-built image to point to - // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen AlgorithmName.Value algorithm_name = 2; // The algorithm version field is used for deciding which pre-built image to point to // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen From d2d3b4ee038d3dafeeb83fb38eb82ee6ffc3a985 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Wed, 29 Jul 2020 14:04:39 -0700 Subject: [PATCH 62/64] make generate --- .../flyteidl/plugins/sagemaker/training_job.pb.go | 3 +-- .../plugins/sagemaker/TrainingJobOuterClass.java | 13 ++----------- .../plugins/sagemaker/training_job.proto.rst | 7 +++---- 3 files changed, 6 insertions(+), 17 deletions(-) diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go index bf30f9d6b..63ab21498 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -169,7 +169,7 @@ func (m *AlgorithmName) XXX_DiscardUnknown() { var xxx_messageInfo_AlgorithmName proto.InternalMessageInfo -// When using FILE input mode, different SageMaker built-in algorithms require different file types of input data +// Specifies the type of file for input data. Different SageMaker built-in algorithms require different file types of input data // See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html // https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html type InputFileType struct { @@ -266,7 +266,6 @@ type AlgorithmSpecification struct { // The input mode can be either PIPE or FILE InputMode InputMode_Value `protobuf:"varint,1,opt,name=input_mode,json=inputMode,proto3,enum=flyteidl.plugins.sagemaker.InputMode_Value" json:"input_mode,omitempty"` // The algorithm name is used for deciding which pre-built image to point to - // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen AlgorithmName AlgorithmName_Value `protobuf:"varint,2,opt,name=algorithm_name,json=algorithmName,proto3,enum=flyteidl.plugins.sagemaker.AlgorithmName_Value" json:"algorithm_name,omitempty"` // The algorithm version field is used for deciding which pre-built image to point to // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java index 0f404d862..eba3ca464 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -1072,7 +1072,7 @@ public interface InputFileTypeOrBuilder extends } /** *
-   * When using FILE input mode, different SageMaker built-in algorithms require different file types of input data
+   * Specifies the type of file for input data. Different SageMaker built-in algorithms require different file types of input data
    * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
    * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
    * 
@@ -1390,7 +1390,7 @@ protected Builder newBuilderForType( } /** *
-     * When using FILE input mode, different SageMaker built-in algorithms require different file types of input data
+     * Specifies the type of file for input data. Different SageMaker built-in algorithms require different file types of input data
      * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
      * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
      * 
@@ -2381,7 +2381,6 @@ public interface AlgorithmSpecificationOrBuilder extends /** *
      * The algorithm name is used for deciding which pre-built image to point to
-     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
      * 
* * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; @@ -2390,7 +2389,6 @@ public interface AlgorithmSpecificationOrBuilder extends /** *
      * The algorithm name is used for deciding which pre-built image to point to
-     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
      * 
* * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; @@ -2645,7 +2643,6 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value getInput /** *
      * The algorithm name is used for deciding which pre-built image to point to
-     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
      * 
* * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; @@ -2656,7 +2653,6 @@ public int getAlgorithmNameValue() { /** *
      * The algorithm name is used for deciding which pre-built image to point to
-     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
      * 
* * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; @@ -3293,7 +3289,6 @@ public Builder clearInputMode() { /** *
        * The algorithm name is used for deciding which pre-built image to point to
-       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
        * 
* * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; @@ -3304,7 +3299,6 @@ public int getAlgorithmNameValue() { /** *
        * The algorithm name is used for deciding which pre-built image to point to
-       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
        * 
* * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; @@ -3317,7 +3311,6 @@ public Builder setAlgorithmNameValue(int value) { /** *
        * The algorithm name is used for deciding which pre-built image to point to
-       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
        * 
* * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; @@ -3330,7 +3323,6 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value getA /** *
        * The algorithm name is used for deciding which pre-built image to point to
-       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
        * 
* * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; @@ -3347,7 +3339,6 @@ public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass /** *
        * The algorithm name is used for deciding which pre-built image to point to
-       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
        * 
* * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst index 6ae6de279..bcf363b73 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst @@ -87,7 +87,7 @@ flyteidl.plugins.sagemaker.InputFileType `[flyteidl.plugins.sagemaker.InputFileType proto] `_ -When using FILE input mode, different SageMaker built-in algorithms require different file types of input data +Specifies the type of file for input data. Different SageMaker built-in algorithms require different file types of input data See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html @@ -183,7 +183,6 @@ input_mode algorithm_name (:ref:`flyteidl.plugins.sagemaker.AlgorithmName.Value `) The algorithm name is used for deciding which pre-built image to point to - This is only needed for use cases where SageMaker's built-in algorithm mode is chosen .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version: @@ -216,7 +215,7 @@ input_file_type flyteidl.plugins.sagemaker.TrainingJobResourceConfig ---------------------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the number of instances to launch, and the size of the ML storage volume the user wants to provision @@ -255,7 +254,7 @@ volume_size_in_gb flyteidl.plugins.sagemaker.TrainingJob -------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ The spec of a training job. This is mostly a pass-through object https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html From 8c5e60cbe155f94f534c3d19889ee398ea7d9975 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Thu, 30 Jul 2020 09:23:49 -0700 Subject: [PATCH 63/64] fix a comment and rename a type to better reflect what it really is --- .../plugins/sagemaker/training_job.pb.cc | 226 +++++++------- .../plugins/sagemaker/training_job.pb.h | 144 ++++----- .../plugins/sagemaker/training_job.pb.go | 146 ++++----- .../sagemaker/training_job.pb.validate.go | 34 +-- .../sagemaker/TrainingJobOuterClass.java | 284 +++++++++--------- .../plugins/sagemaker/training_job.proto.rst | 28 +- .../plugins/sagemaker/training_job_pb2.py | 54 ++-- .../plugins/sagemaker/training_job.proto | 6 +- 8 files changed, 461 insertions(+), 461 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc index 67d6506bc..150983ba6 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc @@ -30,10 +30,10 @@ class AlgorithmNameDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _AlgorithmName_default_instance_; -class InputFileTypeDefaultTypeInternal { +class InputContentTypeDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _InputFileType_default_instance_; + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _InputContentType_default_instance_; class MetricDefinitionDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -81,19 +81,19 @@ static void InitDefaultsAlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_ ::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; -static void InitDefaultsInputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { +static void InitDefaultsInputContentType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyteidl::plugins::sagemaker::_InputFileType_default_instance_; - new (ptr) ::flyteidl::plugins::sagemaker::InputFileType(); + void* ptr = &::flyteidl::plugins::sagemaker::_InputContentType_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::InputContentType(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyteidl::plugins::sagemaker::InputFileType::InitAsDefaultInstance(); + ::flyteidl::plugins::sagemaker::InputContentType::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_InputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_InputContentType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInputContentType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; static void InitDefaultsMetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -157,7 +157,7 @@ ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins void InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_InputMode_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_InputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_InputContentType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); @@ -180,7 +180,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::InputFileType, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::InputContentType, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ @@ -200,7 +200,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_name_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_version_), PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, metric_definitions_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, input_file_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, input_content_type_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig, _internal_metadata_), ~0u, // no _extensions_ @@ -220,7 +220,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftr static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::plugins::sagemaker::InputMode)}, { 5, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmName)}, - { 10, -1, sizeof(::flyteidl::plugins::sagemaker::InputFileType)}, + { 10, -1, sizeof(::flyteidl::plugins::sagemaker::InputContentType)}, { 15, -1, sizeof(::flyteidl::plugins::sagemaker::MetricDefinition)}, { 22, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)}, { 32, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig)}, @@ -230,7 +230,7 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SE static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::plugins::sagemaker::_InputMode_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmName_default_instance_), - reinterpret_cast(&::flyteidl::plugins::sagemaker::_InputFileType_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_InputContentType_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_MetricDefinition_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_), reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJobResourceConfig_default_instance_), @@ -249,32 +249,32 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5 "gle/protobuf/duration.proto\"(\n\tInputMode" "\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n\rAlgorit" "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001" - "\"7\n\rInputFileType\"&\n\005Value\022\014\n\010TEXT_CSV\020\000" - "\022\017\n\013TEXT_LIBSVM\020\001\"/\n\020MetricDefinition\022\014\n" - "\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"\321\002\n\026Algorithm" - "Specification\022\?\n\ninput_mode\030\001 \001(\0162+.flyt" - "eidl.plugins.sagemaker.InputMode.Value\022G" - "\n\016algorithm_name\030\002 \001(\0162/.flyteidl.plugin" - "s.sagemaker.AlgorithmName.Value\022\031\n\021algor" - "ithm_version\030\003 \001(\t\022H\n\022metric_definitions" - "\030\004 \003(\0132,.flyteidl.plugins.sagemaker.Metr" - "icDefinition\022H\n\017input_file_type\030\005 \001(\0162/." - "flyteidl.plugins.sagemaker.InputFileType" - ".Value\"e\n\031TrainingJobResourceConfig\022\026\n\016i" - "nstance_count\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001" - "(\t\022\031\n\021volume_size_in_gb\030\003 \001(\003\"\277\001\n\013Traini" - "ngJob\022S\n\027algorithm_specification\030\001 \001(\01322" - ".flyteidl.plugins.sagemaker.AlgorithmSpe" - "cification\022[\n\034training_job_resource_conf" - "ig\030\002 \001(\01325.flyteidl.plugins.sagemaker.Tr" - "ainingJobResourceConfigB5Z3github.com/ly" - "ft/flyteidl/gen/pb-go/flyteidl/pluginsb\006" - "proto3" + "\":\n\020InputContentType\"&\n\005Value\022\014\n\010TEXT_CS" + "V\020\000\022\017\n\013TEXT_LIBSVM\020\001\"/\n\020MetricDefinition" + "\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"\327\002\n\026Algori" + "thmSpecification\022\?\n\ninput_mode\030\001 \001(\0162+.f" + "lyteidl.plugins.sagemaker.InputMode.Valu" + "e\022G\n\016algorithm_name\030\002 \001(\0162/.flyteidl.plu" + "gins.sagemaker.AlgorithmName.Value\022\031\n\021al" + "gorithm_version\030\003 \001(\t\022H\n\022metric_definiti" + "ons\030\004 \003(\0132,.flyteidl.plugins.sagemaker.M" + "etricDefinition\022N\n\022input_content_type\030\005 " + "\001(\01622.flyteidl.plugins.sagemaker.InputCo" + "ntentType.Value\"e\n\031TrainingJobResourceCo" + "nfig\022\026\n\016instance_count\030\001 \001(\003\022\025\n\rinstance" + "_type\030\002 \001(\t\022\031\n\021volume_size_in_gb\030\003 \001(\003\"\277" + "\001\n\013TrainingJob\022S\n\027algorithm_specificatio" + "n\030\001 \001(\01322.flyteidl.plugins.sagemaker.Alg" + "orithmSpecification\022[\n\034training_job_reso" + "urce_config\030\002 \001(\01325.flyteidl.plugins.sag" + "emaker.TrainingJobResourceConfigB5Z3gith" + "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" + "pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, - "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 1006, + "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 1015, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { @@ -332,11 +332,11 @@ const AlgorithmName_Value AlgorithmName::Value_MIN; const AlgorithmName_Value AlgorithmName::Value_MAX; const int AlgorithmName::Value_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* InputFileType_Value_descriptor() { +const ::google::protobuf::EnumDescriptor* InputContentType_Value_descriptor() { ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[2]; } -bool InputFileType_Value_IsValid(int value) { +bool InputContentType_Value_IsValid(int value) { switch (value) { case 0: case 1: @@ -347,11 +347,11 @@ bool InputFileType_Value_IsValid(int value) { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const InputFileType_Value InputFileType::TEXT_CSV; -const InputFileType_Value InputFileType::TEXT_LIBSVM; -const InputFileType_Value InputFileType::Value_MIN; -const InputFileType_Value InputFileType::Value_MAX; -const int InputFileType::Value_ARRAYSIZE; +const InputContentType_Value InputContentType::TEXT_CSV; +const InputContentType_Value InputContentType::TEXT_LIBSVM; +const InputContentType_Value InputContentType::Value_MIN; +const InputContentType_Value InputContentType::Value_MAX; +const int InputContentType::Value_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 // =================================================================== @@ -774,49 +774,49 @@ ::google::protobuf::Metadata AlgorithmName::GetMetadata() const { // =================================================================== -void InputFileType::InitAsDefaultInstance() { +void InputContentType::InitAsDefaultInstance() { } -class InputFileType::HasBitSetters { +class InputContentType::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -InputFileType::InputFileType() +InputContentType::InputContentType() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.InputFileType) + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.InputContentType) } -InputFileType::InputFileType(const InputFileType& from) +InputContentType::InputContentType(const InputContentType& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.InputFileType) + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.InputContentType) } -void InputFileType::SharedCtor() { +void InputContentType::SharedCtor() { } -InputFileType::~InputFileType() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.InputFileType) +InputContentType::~InputContentType() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.InputContentType) SharedDtor(); } -void InputFileType::SharedDtor() { +void InputContentType::SharedDtor() { } -void InputFileType::SetCachedSize(int size) const { +void InputContentType::SetCachedSize(int size) const { _cached_size_.Set(size); } -const InputFileType& InputFileType::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_InputFileType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); +const InputContentType& InputContentType::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_InputContentType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); return *internal_default_instance(); } -void InputFileType::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.InputFileType) +void InputContentType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.InputContentType) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -825,9 +825,9 @@ void InputFileType::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* InputFileType::_InternalParse(const char* begin, const char* end, void* object, +const char* InputContentType::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -853,11 +853,11 @@ const char* InputFileType::_InternalParse(const char* begin, const char* end, vo return ptr; } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool InputFileType::MergePartialFromCodedStream( +bool InputContentType::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.InputFileType) + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.InputContentType) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -870,18 +870,18 @@ bool InputFileType::MergePartialFromCodedStream( input, tag, _internal_metadata_.mutable_unknown_fields())); } success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.InputFileType) + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.InputContentType) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.InputFileType) + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.InputContentType) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void InputFileType::SerializeWithCachedSizes( +void InputContentType::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.InputFileType) + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.InputContentType) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -889,12 +889,12 @@ void InputFileType::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.InputFileType) + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.InputContentType) } -::google::protobuf::uint8* InputFileType::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* InputContentType::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.InputFileType) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.InputContentType) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -902,12 +902,12 @@ ::google::protobuf::uint8* InputFileType::InternalSerializeWithCachedSizesToArra target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.InputFileType) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.InputContentType) return target; } -size_t InputFileType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.InputFileType) +size_t InputContentType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.InputContentType) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -924,23 +924,23 @@ size_t InputFileType::ByteSizeLong() const { return total_size; } -void InputFileType::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.InputFileType) +void InputContentType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.InputContentType) GOOGLE_DCHECK_NE(&from, this); - const InputFileType* source = - ::google::protobuf::DynamicCastToGenerated( + const InputContentType* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.InputFileType) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.InputContentType) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.InputFileType) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.InputContentType) MergeFrom(*source); } } -void InputFileType::MergeFrom(const InputFileType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.InputFileType) +void InputContentType::MergeFrom(const InputContentType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.InputContentType) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -948,34 +948,34 @@ void InputFileType::MergeFrom(const InputFileType& from) { } -void InputFileType::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.InputFileType) +void InputContentType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.InputContentType) if (&from == this) return; Clear(); MergeFrom(from); } -void InputFileType::CopyFrom(const InputFileType& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.InputFileType) +void InputContentType::CopyFrom(const InputContentType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.InputContentType) if (&from == this) return; Clear(); MergeFrom(from); } -bool InputFileType::IsInitialized() const { +bool InputContentType::IsInitialized() const { return true; } -void InputFileType::Swap(InputFileType* other) { +void InputContentType::Swap(InputContentType* other) { if (other == this) return; InternalSwap(other); } -void InputFileType::InternalSwap(InputFileType* other) { +void InputContentType::InternalSwap(InputContentType* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); } -::google::protobuf::Metadata InputFileType::GetMetadata() const { +::google::protobuf::Metadata InputContentType::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; } @@ -1364,7 +1364,7 @@ const int AlgorithmSpecification::kInputModeFieldNumber; const int AlgorithmSpecification::kAlgorithmNameFieldNumber; const int AlgorithmSpecification::kAlgorithmVersionFieldNumber; const int AlgorithmSpecification::kMetricDefinitionsFieldNumber; -const int AlgorithmSpecification::kInputFileTypeFieldNumber; +const int AlgorithmSpecification::kInputContentTypeFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 AlgorithmSpecification::AlgorithmSpecification() @@ -1382,8 +1382,8 @@ AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& fro algorithm_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_version_); } ::memcpy(&input_mode_, &from.input_mode_, - static_cast(reinterpret_cast(&input_file_type_) - - reinterpret_cast(&input_mode_)) + sizeof(input_file_type_)); + static_cast(reinterpret_cast(&input_content_type_) - + reinterpret_cast(&input_mode_)) + sizeof(input_content_type_)); // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) } @@ -1392,8 +1392,8 @@ void AlgorithmSpecification::SharedCtor() { &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); algorithm_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&input_mode_, 0, static_cast( - reinterpret_cast(&input_file_type_) - - reinterpret_cast(&input_mode_)) + sizeof(input_file_type_)); + reinterpret_cast(&input_content_type_) - + reinterpret_cast(&input_mode_)) + sizeof(input_content_type_)); } AlgorithmSpecification::~AlgorithmSpecification() { @@ -1423,8 +1423,8 @@ void AlgorithmSpecification::Clear() { metric_definitions_.Clear(); algorithm_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&input_mode_, 0, static_cast( - reinterpret_cast(&input_file_type_) - - reinterpret_cast(&input_mode_)) + sizeof(input_file_type_)); + reinterpret_cast(&input_content_type_) - + reinterpret_cast(&input_mode_)) + sizeof(input_content_type_)); _internal_metadata_.Clear(); } @@ -1489,11 +1489,11 @@ const char* AlgorithmSpecification::_InternalParse(const char* begin, const char } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); break; } - // .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + // .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; case 5: { if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_input_file_type(static_cast<::flyteidl::plugins::sagemaker::InputFileType_Value>(val)); + msg->set_input_content_type(static_cast<::flyteidl::plugins::sagemaker::InputContentType_Value>(val)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } @@ -1585,14 +1585,14 @@ bool AlgorithmSpecification::MergePartialFromCodedStream( break; } - // .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + // .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { int value = 0; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - set_input_file_type(static_cast< ::flyteidl::plugins::sagemaker::InputFileType_Value >(value)); + set_input_content_type(static_cast< ::flyteidl::plugins::sagemaker::InputContentType_Value >(value)); } else { goto handle_unusual; } @@ -1657,10 +1657,10 @@ void AlgorithmSpecification::SerializeWithCachedSizes( output); } - // .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; - if (this->input_file_type() != 0) { + // .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + if (this->input_content_type() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->input_file_type(), output); + 5, this->input_content_type(), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -1707,10 +1707,10 @@ ::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSi 4, this->metric_definitions(static_cast(i)), target); } - // .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; - if (this->input_file_type() != 0) { + // .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + if (this->input_content_type() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 5, this->input_file_type(), target); + 5, this->input_content_type(), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -1764,10 +1764,10 @@ size_t AlgorithmSpecification::ByteSizeLong() const { ::google::protobuf::internal::WireFormatLite::EnumSize(this->algorithm_name()); } - // .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; - if (this->input_file_type() != 0) { + // .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + if (this->input_content_type() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->input_file_type()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->input_content_type()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -1808,8 +1808,8 @@ void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { if (from.algorithm_name() != 0) { set_algorithm_name(from.algorithm_name()); } - if (from.input_file_type() != 0) { - set_input_file_type(from.input_file_type()); + if (from.input_content_type() != 0) { + set_input_content_type(from.input_content_type()); } } @@ -1843,7 +1843,7 @@ void AlgorithmSpecification::InternalSwap(AlgorithmSpecification* other) { GetArenaNoVirtual()); swap(input_mode_, other->input_mode_); swap(algorithm_name_, other->algorithm_name_); - swap(input_file_type_, other->input_file_type_); + swap(input_content_type_, other->input_content_type_); } ::google::protobuf::Metadata AlgorithmSpecification::GetMetadata() const { @@ -2609,8 +2609,8 @@ template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::InputMode* Arena::C template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmName* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmName >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmName >(arena); } -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::InputFileType* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::InputFileType >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::InputFileType >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::InputContentType* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::InputContentType >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::InputContentType >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::MetricDefinition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::MetricDefinition >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::MetricDefinition >(arena); diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h index d62a41160..ce37ff44a 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h @@ -59,9 +59,9 @@ extern AlgorithmNameDefaultTypeInternal _AlgorithmName_default_instance_; class AlgorithmSpecification; class AlgorithmSpecificationDefaultTypeInternal; extern AlgorithmSpecificationDefaultTypeInternal _AlgorithmSpecification_default_instance_; -class InputFileType; -class InputFileTypeDefaultTypeInternal; -extern InputFileTypeDefaultTypeInternal _InputFileType_default_instance_; +class InputContentType; +class InputContentTypeDefaultTypeInternal; +extern InputContentTypeDefaultTypeInternal _InputContentType_default_instance_; class InputMode; class InputModeDefaultTypeInternal; extern InputModeDefaultTypeInternal _InputMode_default_instance_; @@ -81,7 +81,7 @@ namespace google { namespace protobuf { template<> ::flyteidl::plugins::sagemaker::AlgorithmName* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmName>(Arena*); template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(Arena*); -template<> ::flyteidl::plugins::sagemaker::InputFileType* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::InputFileType>(Arena*); +template<> ::flyteidl::plugins::sagemaker::InputContentType* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::InputContentType>(Arena*); template<> ::flyteidl::plugins::sagemaker::InputMode* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::InputMode>(Arena*); template<> ::flyteidl::plugins::sagemaker::MetricDefinition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::MetricDefinition>(Arena*); template<> ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(Arena*); @@ -134,26 +134,26 @@ inline bool AlgorithmName_Value_Parse( return ::google::protobuf::internal::ParseNamedEnum( AlgorithmName_Value_descriptor(), name, value); } -enum InputFileType_Value { - InputFileType_Value_TEXT_CSV = 0, - InputFileType_Value_TEXT_LIBSVM = 1, - InputFileType_Value_InputFileType_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - InputFileType_Value_InputFileType_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +enum InputContentType_Value { + InputContentType_Value_TEXT_CSV = 0, + InputContentType_Value_TEXT_LIBSVM = 1, + InputContentType_Value_InputContentType_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + InputContentType_Value_InputContentType_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() }; -bool InputFileType_Value_IsValid(int value); -const InputFileType_Value InputFileType_Value_Value_MIN = InputFileType_Value_TEXT_CSV; -const InputFileType_Value InputFileType_Value_Value_MAX = InputFileType_Value_TEXT_LIBSVM; -const int InputFileType_Value_Value_ARRAYSIZE = InputFileType_Value_Value_MAX + 1; +bool InputContentType_Value_IsValid(int value); +const InputContentType_Value InputContentType_Value_Value_MIN = InputContentType_Value_TEXT_CSV; +const InputContentType_Value InputContentType_Value_Value_MAX = InputContentType_Value_TEXT_LIBSVM; +const int InputContentType_Value_Value_ARRAYSIZE = InputContentType_Value_Value_MAX + 1; -const ::google::protobuf::EnumDescriptor* InputFileType_Value_descriptor(); -inline const ::std::string& InputFileType_Value_Name(InputFileType_Value value) { +const ::google::protobuf::EnumDescriptor* InputContentType_Value_descriptor(); +inline const ::std::string& InputContentType_Value_Name(InputContentType_Value value) { return ::google::protobuf::internal::NameOfEnum( - InputFileType_Value_descriptor(), value); + InputContentType_Value_descriptor(), value); } -inline bool InputFileType_Value_Parse( - const ::std::string& name, InputFileType_Value* value) { - return ::google::protobuf::internal::ParseNamedEnum( - InputFileType_Value_descriptor(), name, value); +inline bool InputContentType_Value_Parse( + const ::std::string& name, InputContentType_Value* value) { + return ::google::protobuf::internal::ParseNamedEnum( + InputContentType_Value_descriptor(), name, value); } // =================================================================== @@ -419,25 +419,25 @@ class AlgorithmName final : }; // ------------------------------------------------------------------- -class InputFileType final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.InputFileType) */ { +class InputContentType final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.InputContentType) */ { public: - InputFileType(); - virtual ~InputFileType(); + InputContentType(); + virtual ~InputContentType(); - InputFileType(const InputFileType& from); + InputContentType(const InputContentType& from); - inline InputFileType& operator=(const InputFileType& from) { + inline InputContentType& operator=(const InputContentType& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - InputFileType(InputFileType&& from) noexcept - : InputFileType() { + InputContentType(InputContentType&& from) noexcept + : InputContentType() { *this = ::std::move(from); } - inline InputFileType& operator=(InputFileType&& from) noexcept { + inline InputContentType& operator=(InputContentType&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -449,34 +449,34 @@ class InputFileType final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const InputFileType& default_instance(); + static const InputContentType& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InputFileType* internal_default_instance() { - return reinterpret_cast( - &_InputFileType_default_instance_); + static inline const InputContentType* internal_default_instance() { + return reinterpret_cast( + &_InputContentType_default_instance_); } static constexpr int kIndexInFileMessages = 2; - void Swap(InputFileType* other); - friend void swap(InputFileType& a, InputFileType& b) { + void Swap(InputContentType* other); + friend void swap(InputContentType& a, InputContentType& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline InputFileType* New() const final { - return CreateMaybeMessage(nullptr); + inline InputContentType* New() const final { + return CreateMaybeMessage(nullptr); } - InputFileType* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + InputContentType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const InputFileType& from); - void MergeFrom(const InputFileType& from); + void CopyFrom(const InputContentType& from); + void MergeFrom(const InputContentType& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -498,7 +498,7 @@ class InputFileType final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(InputFileType* other); + void InternalSwap(InputContentType* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -512,35 +512,35 @@ class InputFileType final : // nested types ---------------------------------------------------- - typedef InputFileType_Value Value; + typedef InputContentType_Value Value; static const Value TEXT_CSV = - InputFileType_Value_TEXT_CSV; + InputContentType_Value_TEXT_CSV; static const Value TEXT_LIBSVM = - InputFileType_Value_TEXT_LIBSVM; + InputContentType_Value_TEXT_LIBSVM; static inline bool Value_IsValid(int value) { - return InputFileType_Value_IsValid(value); + return InputContentType_Value_IsValid(value); } static const Value Value_MIN = - InputFileType_Value_Value_MIN; + InputContentType_Value_Value_MIN; static const Value Value_MAX = - InputFileType_Value_Value_MAX; + InputContentType_Value_Value_MAX; static const int Value_ARRAYSIZE = - InputFileType_Value_Value_ARRAYSIZE; + InputContentType_Value_Value_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* Value_descriptor() { - return InputFileType_Value_descriptor(); + return InputContentType_Value_descriptor(); } static inline const ::std::string& Value_Name(Value value) { - return InputFileType_Value_Name(value); + return InputContentType_Value_Name(value); } static inline bool Value_Parse(const ::std::string& name, Value* value) { - return InputFileType_Value_Parse(name, value); + return InputContentType_Value_Parse(name, value); } // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputFileType) + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputContentType) private: class HasBitSetters; @@ -818,11 +818,11 @@ class AlgorithmSpecification final : ::flyteidl::plugins::sagemaker::AlgorithmName_Value algorithm_name() const; void set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName_Value value); - // .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; - void clear_input_file_type(); - static const int kInputFileTypeFieldNumber = 5; - ::flyteidl::plugins::sagemaker::InputFileType_Value input_file_type() const; - void set_input_file_type(::flyteidl::plugins::sagemaker::InputFileType_Value value); + // .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + void clear_input_content_type(); + static const int kInputContentTypeFieldNumber = 5; + ::flyteidl::plugins::sagemaker::InputContentType_Value input_content_type() const; + void set_input_content_type(::flyteidl::plugins::sagemaker::InputContentType_Value value); // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) private: @@ -833,7 +833,7 @@ class AlgorithmSpecification final : ::google::protobuf::internal::ArenaStringPtr algorithm_version_; int input_mode_; int algorithm_name_; - int input_file_type_; + int input_content_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; }; @@ -1113,7 +1113,7 @@ class TrainingJob final : // ------------------------------------------------------------------- -// InputFileType +// InputContentType // ------------------------------------------------------------------- @@ -1340,18 +1340,18 @@ AlgorithmSpecification::metric_definitions() const { return metric_definitions_; } -// .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; -inline void AlgorithmSpecification::clear_input_file_type() { - input_file_type_ = 0; +// .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; +inline void AlgorithmSpecification::clear_input_content_type() { + input_content_type_ = 0; } -inline ::flyteidl::plugins::sagemaker::InputFileType_Value AlgorithmSpecification::input_file_type() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type) - return static_cast< ::flyteidl::plugins::sagemaker::InputFileType_Value >(input_file_type_); +inline ::flyteidl::plugins::sagemaker::InputContentType_Value AlgorithmSpecification::input_content_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_content_type) + return static_cast< ::flyteidl::plugins::sagemaker::InputContentType_Value >(input_content_type_); } -inline void AlgorithmSpecification::set_input_file_type(::flyteidl::plugins::sagemaker::InputFileType_Value value) { +inline void AlgorithmSpecification::set_input_content_type(::flyteidl::plugins::sagemaker::InputContentType_Value value) { - input_file_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type) + input_content_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_content_type) } // ------------------------------------------------------------------- @@ -1580,10 +1580,10 @@ template <> inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::AlgorithmName_Value>() { return ::flyteidl::plugins::sagemaker::AlgorithmName_Value_descriptor(); } -template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::InputFileType_Value> : ::std::true_type {}; +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::InputContentType_Value> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::InputFileType_Value>() { - return ::flyteidl::plugins::sagemaker::InputFileType_Value_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::InputContentType_Value>() { + return ::flyteidl::plugins::sagemaker::InputContentType_Value_descriptor(); } } // namespace protobuf diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go index 63ab21498..fd24ff946 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -71,28 +71,28 @@ func (AlgorithmName_Value) EnumDescriptor() ([]byte, []int) { return fileDescriptor_6a68f64d8fd9fe30, []int{1, 0} } -type InputFileType_Value int32 +type InputContentType_Value int32 const ( - InputFileType_TEXT_CSV InputFileType_Value = 0 - InputFileType_TEXT_LIBSVM InputFileType_Value = 1 + InputContentType_TEXT_CSV InputContentType_Value = 0 + InputContentType_TEXT_LIBSVM InputContentType_Value = 1 ) -var InputFileType_Value_name = map[int32]string{ +var InputContentType_Value_name = map[int32]string{ 0: "TEXT_CSV", 1: "TEXT_LIBSVM", } -var InputFileType_Value_value = map[string]int32{ +var InputContentType_Value_value = map[string]int32{ "TEXT_CSV": 0, "TEXT_LIBSVM": 1, } -func (x InputFileType_Value) String() string { - return proto.EnumName(InputFileType_Value_name, int32(x)) +func (x InputContentType_Value) String() string { + return proto.EnumName(InputContentType_Value_name, int32(x)) } -func (InputFileType_Value) EnumDescriptor() ([]byte, []int) { +func (InputContentType_Value) EnumDescriptor() ([]byte, []int) { return fileDescriptor_6a68f64d8fd9fe30, []int{2, 0} } @@ -172,36 +172,36 @@ var xxx_messageInfo_AlgorithmName proto.InternalMessageInfo // Specifies the type of file for input data. Different SageMaker built-in algorithms require different file types of input data // See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html // https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html -type InputFileType struct { +type InputContentType struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *InputFileType) Reset() { *m = InputFileType{} } -func (m *InputFileType) String() string { return proto.CompactTextString(m) } -func (*InputFileType) ProtoMessage() {} -func (*InputFileType) Descriptor() ([]byte, []int) { +func (m *InputContentType) Reset() { *m = InputContentType{} } +func (m *InputContentType) String() string { return proto.CompactTextString(m) } +func (*InputContentType) ProtoMessage() {} +func (*InputContentType) Descriptor() ([]byte, []int) { return fileDescriptor_6a68f64d8fd9fe30, []int{2} } -func (m *InputFileType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputFileType.Unmarshal(m, b) +func (m *InputContentType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputContentType.Unmarshal(m, b) } -func (m *InputFileType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputFileType.Marshal(b, m, deterministic) +func (m *InputContentType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputContentType.Marshal(b, m, deterministic) } -func (m *InputFileType) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputFileType.Merge(m, src) +func (m *InputContentType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputContentType.Merge(m, src) } -func (m *InputFileType) XXX_Size() int { - return xxx_messageInfo_InputFileType.Size(m) +func (m *InputContentType) XXX_Size() int { + return xxx_messageInfo_InputContentType.Size(m) } -func (m *InputFileType) XXX_DiscardUnknown() { - xxx_messageInfo_InputFileType.DiscardUnknown(m) +func (m *InputContentType) XXX_DiscardUnknown() { + xxx_messageInfo_InputContentType.DiscardUnknown(m) } -var xxx_messageInfo_InputFileType proto.InternalMessageInfo +var xxx_messageInfo_InputContentType proto.InternalMessageInfo // Specifies a metric that the training algorithm writes to stderr or stdout. // This object is a pass-through. @@ -274,13 +274,13 @@ type AlgorithmSpecification struct { // See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html // and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html MetricDefinitions []*MetricDefinition `protobuf:"bytes,4,rep,name=metric_definitions,json=metricDefinitions,proto3" json:"metric_definitions,omitempty"` - // The type of the input files (when using FILE input mode) + // The content type of the input // See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html // https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html - InputFileType InputFileType_Value `protobuf:"varint,5,opt,name=input_file_type,json=inputFileType,proto3,enum=flyteidl.plugins.sagemaker.InputFileType_Value" json:"input_file_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + InputContentType InputContentType_Value `protobuf:"varint,5,opt,name=input_content_type,json=inputContentType,proto3,enum=flyteidl.plugins.sagemaker.InputContentType_Value" json:"input_content_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AlgorithmSpecification) Reset() { *m = AlgorithmSpecification{} } @@ -336,11 +336,11 @@ func (m *AlgorithmSpecification) GetMetricDefinitions() []*MetricDefinition { return nil } -func (m *AlgorithmSpecification) GetInputFileType() InputFileType_Value { +func (m *AlgorithmSpecification) GetInputContentType() InputContentType_Value { if m != nil { - return m.InputFileType + return m.InputContentType } - return InputFileType_TEXT_CSV + return InputContentType_TEXT_CSV } // TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the @@ -456,10 +456,10 @@ func (m *TrainingJob) GetTrainingJobResourceConfig() *TrainingJobResourceConfig func init() { proto.RegisterEnum("flyteidl.plugins.sagemaker.InputMode_Value", InputMode_Value_name, InputMode_Value_value) proto.RegisterEnum("flyteidl.plugins.sagemaker.AlgorithmName_Value", AlgorithmName_Value_name, AlgorithmName_Value_value) - proto.RegisterEnum("flyteidl.plugins.sagemaker.InputFileType_Value", InputFileType_Value_name, InputFileType_Value_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.InputContentType_Value", InputContentType_Value_name, InputContentType_Value_value) proto.RegisterType((*InputMode)(nil), "flyteidl.plugins.sagemaker.InputMode") proto.RegisterType((*AlgorithmName)(nil), "flyteidl.plugins.sagemaker.AlgorithmName") - proto.RegisterType((*InputFileType)(nil), "flyteidl.plugins.sagemaker.InputFileType") + proto.RegisterType((*InputContentType)(nil), "flyteidl.plugins.sagemaker.InputContentType") proto.RegisterType((*MetricDefinition)(nil), "flyteidl.plugins.sagemaker.MetricDefinition") proto.RegisterType((*AlgorithmSpecification)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification") proto.RegisterType((*TrainingJobResourceConfig)(nil), "flyteidl.plugins.sagemaker.TrainingJobResourceConfig") @@ -471,43 +471,43 @@ func init() { } var fileDescriptor_6a68f64d8fd9fe30 = []byte{ - // 599 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xd1, 0x4e, 0xd4, 0x40, - 0x14, 0xa5, 0x2c, 0x20, 0xdc, 0x85, 0xa5, 0x4c, 0x0c, 0x2e, 0x68, 0x0c, 0xa9, 0xd1, 0x60, 0x90, - 0x36, 0x2e, 0x21, 0xbe, 0xf8, 0x22, 0x2b, 0x90, 0x25, 0xac, 0x90, 0xee, 0xba, 0x12, 0x7d, 0x68, - 0xda, 0xee, 0xed, 0x30, 0xd2, 0xce, 0x34, 0xed, 0x94, 0xb8, 0x7c, 0x86, 0x3f, 0xe0, 0x3f, 0xfa, - 0x05, 0xa6, 0xd3, 0x6d, 0xd9, 0x25, 0x82, 0xbe, 0x75, 0xce, 0xdc, 0x39, 0x73, 0xee, 0xb9, 0xa7, - 0x03, 0xbb, 0x41, 0x38, 0x92, 0xc8, 0x86, 0xa1, 0x15, 0x87, 0x19, 0x65, 0x3c, 0xb5, 0x52, 0x97, - 0x62, 0xe4, 0x5e, 0x61, 0x62, 0xc9, 0xc4, 0x65, 0x9c, 0x71, 0xea, 0x7c, 0x17, 0x9e, 0x19, 0x27, - 0x42, 0x0a, 0xb2, 0x59, 0x96, 0x9b, 0xe3, 0x72, 0xb3, 0x2a, 0xdf, 0x7c, 0x4e, 0x85, 0xa0, 0x21, - 0x5a, 0xaa, 0xd2, 0xcb, 0x02, 0x6b, 0x98, 0x25, 0xae, 0x64, 0x82, 0x17, 0x67, 0x8d, 0x6d, 0x58, - 0xea, 0xf0, 0x38, 0x93, 0x5d, 0x31, 0x44, 0xe3, 0x29, 0xcc, 0x0f, 0xdc, 0x30, 0x43, 0xb2, 0x08, - 0x73, 0x47, 0x9d, 0xd3, 0x43, 0x7d, 0x26, 0xff, 0x3a, 0xef, 0x9c, 0x1f, 0xea, 0x9a, 0xf1, 0x16, - 0x56, 0x3e, 0x84, 0x54, 0x24, 0x4c, 0x5e, 0x46, 0x9f, 0xdc, 0x08, 0x8d, 0xad, 0xb2, 0x1a, 0x60, - 0xa1, 0xfd, 0xb9, 0xd7, 0x3f, 0xeb, 0xea, 0x33, 0xa4, 0x0e, 0x8f, 0x2e, 0x8e, 0x0f, 0xce, 0xce, - 0x7a, 0x7d, 0x5d, 0x33, 0xde, 0xc1, 0x8a, 0x22, 0x3f, 0x62, 0x21, 0xf6, 0x47, 0x31, 0x1a, 0xaf, - 0xca, 0x23, 0xcb, 0xb0, 0xd8, 0x3f, 0xbc, 0xe8, 0x3b, 0xed, 0xde, 0x40, 0x9f, 0x21, 0xab, 0x50, - 0x57, 0xab, 0xd3, 0xce, 0x41, 0x6f, 0xd0, 0xd5, 0x35, 0xe3, 0x3d, 0xe8, 0x5d, 0x94, 0x09, 0xf3, - 0x3f, 0x62, 0xc0, 0x38, 0xcb, 0xf5, 0x12, 0x02, 0x73, 0xdc, 0x8d, 0xb0, 0xa9, 0x6d, 0x69, 0xdb, - 0x4b, 0xb6, 0xfa, 0x26, 0x8f, 0x61, 0x3e, 0x41, 0x8a, 0x3f, 0x9a, 0xb3, 0x0a, 0x2c, 0x16, 0xc6, - 0xaf, 0x1a, 0xac, 0x57, 0x52, 0x7b, 0x31, 0xfa, 0x2c, 0x60, 0xbe, 0x6a, 0x9a, 0x9c, 0x00, 0xb0, - 0x5c, 0x91, 0x13, 0x89, 0x61, 0x41, 0xd5, 0x68, 0xed, 0x98, 0xf7, 0xfb, 0x67, 0x56, 0xe6, 0x98, - 0x4a, 0xb8, 0xbd, 0xc4, 0x4a, 0x80, 0x0c, 0xa0, 0xe1, 0x96, 0xb7, 0x38, 0x4a, 0xda, 0xac, 0xe2, - 0xb3, 0x1e, 0xe2, 0x9b, 0xb2, 0x70, 0xcc, 0xb9, 0xe2, 0x4e, 0x82, 0x64, 0x07, 0xd6, 0x6e, 0x79, - 0xaf, 0x31, 0x49, 0x99, 0xe0, 0xcd, 0x9a, 0x6a, 0x50, 0xaf, 0x36, 0x06, 0x05, 0x4e, 0xbe, 0x01, - 0x89, 0x94, 0x53, 0xce, 0xb0, 0xb2, 0x2a, 0x6d, 0xce, 0x6d, 0xd5, 0xb6, 0xeb, 0xad, 0x37, 0x0f, - 0x09, 0xb9, 0xeb, 0xaf, 0xbd, 0x16, 0xdd, 0x41, 0x52, 0xf2, 0x05, 0x56, 0x0b, 0xb7, 0x02, 0x16, - 0xa2, 0x23, 0x47, 0x31, 0x36, 0xe7, 0xff, 0xdd, 0xe2, 0xd4, 0xc8, 0xcb, 0x16, 0xd9, 0x54, 0x0e, - 0x7e, 0x6a, 0xb0, 0xd1, 0x1f, 0x07, 0xf9, 0x44, 0x78, 0x36, 0xa6, 0x22, 0x4b, 0x7c, 0x6c, 0x0b, - 0x1e, 0x30, 0x4a, 0x5e, 0x42, 0x83, 0xf1, 0x54, 0xba, 0xdc, 0x47, 0xc7, 0x17, 0x19, 0x97, 0x6a, - 0x50, 0xb5, 0x9c, 0xa4, 0x40, 0xdb, 0x39, 0x48, 0x5e, 0x40, 0x05, 0x14, 0xda, 0x8a, 0x10, 0x2c, - 0x97, 0x60, 0x7e, 0x13, 0x79, 0x0d, 0x6b, 0xd7, 0x22, 0xcc, 0x22, 0x74, 0x52, 0x76, 0x83, 0x0e, - 0xe3, 0x0e, 0xf5, 0x94, 0x99, 0x35, 0xbb, 0x51, 0x6c, 0xf4, 0xd8, 0x0d, 0x76, 0xf8, 0xb1, 0x67, - 0xfc, 0xd6, 0xa0, 0x3e, 0x21, 0x8a, 0x5c, 0xc1, 0x93, 0xdb, 0x39, 0xa4, 0x93, 0x31, 0x52, 0x7a, - 0xea, 0xad, 0xd6, 0x7f, 0x0d, 0x7a, 0x2a, 0x80, 0xf6, 0xba, 0xfb, 0xf7, 0x60, 0x5e, 0xc3, 0xb3, - 0xc9, 0x3f, 0xdb, 0x49, 0xc6, 0x96, 0x38, 0xbe, 0xf2, 0x44, 0xf5, 0x56, 0x6f, 0xed, 0x3f, 0x74, - 0xe3, 0xbd, 0x86, 0xda, 0x1b, 0xf2, 0xbe, 0xad, 0x83, 0xfd, 0xaf, 0x7b, 0x94, 0xc9, 0xcb, 0xcc, - 0x33, 0x7d, 0x11, 0x59, 0xe1, 0x28, 0x90, 0x56, 0xf5, 0xf8, 0x50, 0xe4, 0x56, 0xec, 0xed, 0x52, - 0x61, 0xdd, 0x7d, 0x8f, 0xbc, 0x05, 0xf5, 0x7a, 0xec, 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0xd1, - 0xa4, 0x36, 0x19, 0xaa, 0x04, 0x00, 0x00, + // 605 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xd1, 0x4e, 0xdb, 0x3c, + 0x14, 0xc7, 0x09, 0x05, 0x3e, 0x38, 0x85, 0x7e, 0xc1, 0x9a, 0x58, 0x61, 0xd3, 0x84, 0x32, 0x6d, + 0x62, 0x62, 0x24, 0x5a, 0x11, 0x37, 0xd3, 0x6e, 0x46, 0xc7, 0x50, 0x11, 0x1d, 0x28, 0xed, 0x2a, + 0xb4, 0x5d, 0x64, 0x49, 0x7a, 0x62, 0x3c, 0x12, 0x3b, 0x4a, 0x1c, 0xb4, 0xf2, 0x18, 0x7b, 0x8a, + 0x3d, 0xdf, 0x9e, 0x60, 0x8a, 0xd3, 0x84, 0xae, 0xa2, 0xdd, 0x5d, 0xfc, 0xf7, 0xf1, 0xf1, 0xff, + 0xfc, 0xce, 0x89, 0xe1, 0x20, 0x08, 0x47, 0x12, 0xd9, 0x30, 0xb4, 0xe2, 0x30, 0xa3, 0x8c, 0xa7, + 0x56, 0xea, 0x52, 0x8c, 0xdc, 0x1b, 0x4c, 0x2c, 0x99, 0xb8, 0x8c, 0x33, 0x4e, 0x9d, 0xef, 0xc2, + 0x33, 0xe3, 0x44, 0x48, 0x41, 0x76, 0xca, 0x70, 0x73, 0x1c, 0x6e, 0x56, 0xe1, 0x3b, 0xcf, 0xa8, + 0x10, 0x34, 0x44, 0x4b, 0x45, 0x7a, 0x59, 0x60, 0x0d, 0xb3, 0xc4, 0x95, 0x4c, 0xf0, 0xe2, 0xac, + 0xb1, 0x07, 0x6b, 0x1d, 0x1e, 0x67, 0xb2, 0x2b, 0x86, 0x68, 0x3c, 0x81, 0xe5, 0x81, 0x1b, 0x66, + 0x48, 0x56, 0x61, 0xe9, 0x63, 0xe7, 0xfc, 0x44, 0x5f, 0xc8, 0xbf, 0x2e, 0x3b, 0x97, 0x27, 0xba, + 0x66, 0xbc, 0x81, 0x8d, 0xf7, 0x21, 0x15, 0x09, 0x93, 0xd7, 0xd1, 0x27, 0x37, 0x42, 0x63, 0xb7, + 0x8c, 0x06, 0x58, 0x69, 0x7f, 0xee, 0xf5, 0x2f, 0xba, 0xfa, 0x02, 0xa9, 0xc3, 0x7f, 0x57, 0xa7, + 0xc7, 0x17, 0x17, 0xbd, 0xbe, 0xae, 0x19, 0x6f, 0x41, 0x57, 0xc9, 0xdb, 0x82, 0x4b, 0xe4, 0xb2, + 0x3f, 0x8a, 0xd1, 0x78, 0x59, 0x9e, 0x5a, 0x87, 0xd5, 0xfe, 0xc9, 0x55, 0xdf, 0x69, 0xf7, 0x06, + 0xfa, 0x02, 0xf9, 0x1f, 0xea, 0x6a, 0x75, 0xde, 0x39, 0xee, 0x0d, 0xba, 0xba, 0x66, 0xbc, 0x03, + 0xbd, 0x8b, 0x32, 0x61, 0xfe, 0x07, 0x0c, 0x18, 0x67, 0xb9, 0x65, 0x42, 0x60, 0x89, 0xbb, 0x11, + 0x36, 0xb5, 0x5d, 0x6d, 0x6f, 0xcd, 0x56, 0xdf, 0xe4, 0x11, 0x2c, 0x27, 0x48, 0xf1, 0x47, 0x73, + 0x51, 0x89, 0xc5, 0xc2, 0xf8, 0x55, 0x83, 0xad, 0xca, 0x6d, 0x2f, 0x46, 0x9f, 0x05, 0xcc, 0x57, + 0x75, 0x93, 0x33, 0x00, 0x96, 0x9b, 0x72, 0x22, 0x31, 0x2c, 0x52, 0x35, 0x5a, 0xfb, 0xe6, 0x6c, + 0x84, 0x66, 0xc5, 0xc7, 0x54, 0xc6, 0xed, 0x35, 0x56, 0x0a, 0x64, 0x00, 0x0d, 0xb7, 0xbc, 0xc5, + 0x51, 0xd6, 0x16, 0x55, 0x3e, 0x6b, 0x5e, 0xbe, 0xbf, 0x28, 0x8e, 0x73, 0x6e, 0xb8, 0x93, 0x22, + 0xd9, 0x87, 0xcd, 0xfb, 0xbc, 0xb7, 0x98, 0xa4, 0x4c, 0xf0, 0x66, 0x4d, 0x15, 0xa8, 0x57, 0x1b, + 0x83, 0x42, 0x27, 0x5f, 0x81, 0x44, 0x8a, 0x94, 0x33, 0xac, 0x50, 0xa5, 0xcd, 0xa5, 0xdd, 0xda, + 0x5e, 0xbd, 0xf5, 0x7a, 0x9e, 0x91, 0x69, 0xbe, 0xf6, 0x66, 0x34, 0xa5, 0xa4, 0xe4, 0x1b, 0x90, + 0x82, 0x96, 0x5f, 0xf4, 0xd0, 0x91, 0xa3, 0x18, 0x9b, 0xcb, 0xaa, 0xca, 0xd6, 0x3f, 0xa9, 0x4d, + 0x34, 0x7e, 0x5c, 0xa8, 0xce, 0xa6, 0x07, 0xe2, 0xa7, 0x06, 0xdb, 0xfd, 0xf1, 0x50, 0x9f, 0x09, + 0xcf, 0xc6, 0x54, 0x64, 0x89, 0x8f, 0x6d, 0xc1, 0x03, 0x46, 0xc9, 0x0b, 0x68, 0x30, 0x9e, 0x4a, + 0x97, 0xfb, 0xe8, 0xf8, 0x22, 0xe3, 0x52, 0x75, 0xac, 0x66, 0x6f, 0x94, 0x6a, 0x3b, 0x17, 0xc9, + 0x73, 0xa8, 0x84, 0xc2, 0x61, 0x31, 0x0d, 0xeb, 0xa5, 0x98, 0xdf, 0x44, 0x5e, 0xc1, 0xe6, 0xad, + 0x08, 0xb3, 0x08, 0x9d, 0x94, 0xdd, 0xa1, 0xc3, 0xb8, 0x43, 0x3d, 0x45, 0xb5, 0x66, 0x37, 0x8a, + 0x8d, 0x1e, 0xbb, 0xc3, 0x0e, 0x3f, 0xf5, 0x8c, 0xdf, 0x1a, 0xd4, 0x27, 0x4c, 0x91, 0x1b, 0x78, + 0x7c, 0xdf, 0x90, 0x74, 0x72, 0x9e, 0x94, 0x9f, 0xfa, 0x7c, 0x16, 0x0f, 0x4f, 0xa2, 0xbd, 0xe5, + 0x3e, 0x3c, 0xa1, 0xb7, 0xf0, 0x74, 0xf2, 0x2f, 0x77, 0x92, 0x31, 0x92, 0xbc, 0x07, 0x01, 0xa3, + 0xaa, 0xb6, 0x7a, 0xeb, 0x68, 0xde, 0x8d, 0x33, 0x81, 0xda, 0xdb, 0x72, 0xd6, 0xd6, 0xf1, 0xd1, + 0x97, 0x43, 0xca, 0xe4, 0x75, 0xe6, 0x99, 0xbe, 0x88, 0xac, 0x70, 0x14, 0x48, 0xab, 0x7a, 0x88, + 0x28, 0x72, 0x2b, 0xf6, 0x0e, 0xa8, 0xb0, 0xa6, 0xdf, 0x26, 0x6f, 0x45, 0xbd, 0x24, 0x87, 0x7f, + 0x02, 0x00, 0x00, 0xff, 0xff, 0x14, 0x23, 0x54, 0xcb, 0xb6, 0x04, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go index 1273b4d0f..a1ceaa438 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go @@ -165,10 +165,10 @@ var _ interface { ErrorName() string } = AlgorithmNameValidationError{} -// Validate checks the field values on InputFileType with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *InputFileType) Validate() error { +// Validate checks the field values on InputContentType with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *InputContentType) Validate() error { if m == nil { return nil } @@ -176,9 +176,9 @@ func (m *InputFileType) Validate() error { return nil } -// InputFileTypeValidationError is the validation error returned by -// InputFileType.Validate if the designated constraints aren't met. -type InputFileTypeValidationError struct { +// InputContentTypeValidationError is the validation error returned by +// InputContentType.Validate if the designated constraints aren't met. +type InputContentTypeValidationError struct { field string reason string cause error @@ -186,22 +186,22 @@ type InputFileTypeValidationError struct { } // Field function returns field value. -func (e InputFileTypeValidationError) Field() string { return e.field } +func (e InputContentTypeValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e InputFileTypeValidationError) Reason() string { return e.reason } +func (e InputContentTypeValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e InputFileTypeValidationError) Cause() error { return e.cause } +func (e InputContentTypeValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e InputFileTypeValidationError) Key() bool { return e.key } +func (e InputContentTypeValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e InputFileTypeValidationError) ErrorName() string { return "InputFileTypeValidationError" } +func (e InputContentTypeValidationError) ErrorName() string { return "InputContentTypeValidationError" } // Error satisfies the builtin error interface -func (e InputFileTypeValidationError) Error() string { +func (e InputContentTypeValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -213,14 +213,14 @@ func (e InputFileTypeValidationError) Error() string { } return fmt.Sprintf( - "invalid %sInputFileType.%s: %s%s", + "invalid %sInputContentType.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = InputFileTypeValidationError{} +var _ error = InputContentTypeValidationError{} var _ interface { Field() string @@ -228,7 +228,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = InputFileTypeValidationError{} +} = InputContentTypeValidationError{} // Validate checks the field values on MetricDefinition with the rules defined // in the proto definition for this message. If any rules are violated, an @@ -328,7 +328,7 @@ func (m *AlgorithmSpecification) Validate() error { } - // no validation rules for InputFileType + // no validation rules for InputContentType return nil } diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java index eba3ca464..b1588210e 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -1066,8 +1066,8 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getDefault } - public interface InputFileTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.InputFileType) + public interface InputContentTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.InputContentType) com.google.protobuf.MessageOrBuilder { } /** @@ -1077,18 +1077,18 @@ public interface InputFileTypeOrBuilder extends * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html *
* - * Protobuf type {@code flyteidl.plugins.sagemaker.InputFileType} + * Protobuf type {@code flyteidl.plugins.sagemaker.InputContentType} */ - public static final class InputFileType extends + public static final class InputContentType extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.InputFileType) - InputFileTypeOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.InputContentType) + InputContentTypeOrBuilder { private static final long serialVersionUID = 0L; - // Use InputFileType.newBuilder() to construct. - private InputFileType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use InputContentType.newBuilder() to construct. + private InputContentType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputFileType() { + private InputContentType() { } @java.lang.Override @@ -1096,7 +1096,7 @@ private InputFileType() { getUnknownFields() { return this.unknownFields; } - private InputFileType( + private InputContentType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1135,19 +1135,19 @@ private InputFileType( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputFileType_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputContentType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputFileType_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputContentType_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Builder.class); } /** - * Protobuf enum {@code flyteidl.plugins.sagemaker.InputFileType.Value} + * Protobuf enum {@code flyteidl.plugins.sagemaker.InputContentType.Value} */ public enum Value implements com.google.protobuf.ProtocolMessageEnum { @@ -1218,7 +1218,7 @@ public Value findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.getDescriptor().getEnumTypes().get(0); + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.getDescriptor().getEnumTypes().get(0); } private static final Value[] VALUES = values(); @@ -1241,7 +1241,7 @@ private Value(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputFileType.Value) + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputContentType.Value) } private byte memoizedIsInitialized = -1; @@ -1277,10 +1277,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType)) { + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType)) { return super.equals(obj); } - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType) obj; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1298,69 +1298,69 @@ public int hashCode() { return hash; } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom(byte[] data) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseDelimitedFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType 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 flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parseFrom( + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1373,7 +1373,7 @@ public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType par public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType prototype) { + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1395,26 +1395,26 @@ protected Builder newBuilderForType( * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html * * - * Protobuf type {@code flyteidl.plugins.sagemaker.InputFileType} + * Protobuf type {@code flyteidl.plugins.sagemaker.InputContentType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.InputFileType) - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileTypeOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.InputContentType) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputFileType_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputContentType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputFileType_fieldAccessorTable + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputContentType_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Builder.class); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Builder.class); } - // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.newBuilder() + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1438,17 +1438,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputFileType_descriptor; + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputContentType_descriptor; } @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getDefaultInstanceForType() { - return flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.getDefaultInstance(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.getDefaultInstance(); } @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType build() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType result = buildPartial(); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1456,8 +1456,8 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType build() { } @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType buildPartial() { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType(this); + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType(this); onBuilt(); return result; } @@ -1496,16 +1496,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType) { - return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType)other); + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType other) { - if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1521,11 +1521,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType parsedMessage = null; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1547,41 +1547,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.InputFileType) + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.InputContentType) } - // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputFileType) - private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputContentType) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType(); + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType(); } - public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getDefaultInstance() { + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public InputFileType parsePartialFrom( + public InputContentType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new InputFileType(input, extensionRegistry); + return new InputContentType(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType getDefaultInstanceForType() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2471,24 +2471,24 @@ flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder getMe /** *
-     * The type of the input files (when using FILE input mode)
+     * The content type of the input
      * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
      * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
      * 
* - * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; */ - int getInputFileTypeValue(); + int getInputContentTypeValue(); /** *
-     * The type of the input files (when using FILE input mode)
+     * The content type of the input
      * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
      * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
      * 
* - * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; */ - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value getInputFileType(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value getInputContentType(); } /** *
@@ -2517,7 +2517,7 @@ private AlgorithmSpecification() {
       algorithmName_ = 0;
       algorithmVersion_ = "";
       metricDefinitions_ = java.util.Collections.emptyList();
-      inputFileType_ = 0;
+      inputContentType_ = 0;
     }
 
     @java.lang.Override
@@ -2574,7 +2574,7 @@ private AlgorithmSpecification(
             case 40: {
               int rawValue = input.readEnum();
 
-              inputFileType_ = rawValue;
+              inputContentType_ = rawValue;
               break;
             }
             default: {
@@ -2772,33 +2772,33 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilde
       return metricDefinitions_.get(index);
     }
 
-    public static final int INPUT_FILE_TYPE_FIELD_NUMBER = 5;
-    private int inputFileType_;
+    public static final int INPUT_CONTENT_TYPE_FIELD_NUMBER = 5;
+    private int inputContentType_;
     /**
      * 
-     * The type of the input files (when using FILE input mode)
+     * The content type of the input
      * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
      * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
      * 
* - * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; */ - public int getInputFileTypeValue() { - return inputFileType_; + public int getInputContentTypeValue() { + return inputContentType_; } /** *
-     * The type of the input files (when using FILE input mode)
+     * The content type of the input
      * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
      * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
      * 
* - * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value getInputFileType() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value getInputContentType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value.valueOf(inputFileType_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value.valueOf(inputContentType_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -2827,8 +2827,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < metricDefinitions_.size(); i++) { output.writeMessage(4, metricDefinitions_.get(i)); } - if (inputFileType_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value.TEXT_CSV.getNumber()) { - output.writeEnum(5, inputFileType_); + if (inputContentType_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value.TEXT_CSV.getNumber()) { + output.writeEnum(5, inputContentType_); } unknownFields.writeTo(output); } @@ -2854,9 +2854,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, metricDefinitions_.get(i)); } - if (inputFileType_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value.TEXT_CSV.getNumber()) { + if (inputContentType_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value.TEXT_CSV.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, inputFileType_); + .computeEnumSize(5, inputContentType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2879,7 +2879,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAlgorithmVersion())) return false; if (!getMetricDefinitionsList() .equals(other.getMetricDefinitionsList())) return false; - if (inputFileType_ != other.inputFileType_) return false; + if (inputContentType_ != other.inputContentType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2901,8 +2901,8 @@ public int hashCode() { hash = (37 * hash) + METRIC_DEFINITIONS_FIELD_NUMBER; hash = (53 * hash) + getMetricDefinitionsList().hashCode(); } - hash = (37 * hash) + INPUT_FILE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + inputFileType_; + hash = (37 * hash) + INPUT_CONTENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + inputContentType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3059,7 +3059,7 @@ public Builder clear() { } else { metricDefinitionsBuilder_.clear(); } - inputFileType_ = 0; + inputContentType_ = 0; return this; } @@ -3101,7 +3101,7 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification b } else { result.metricDefinitions_ = metricDefinitionsBuilder_.build(); } - result.inputFileType_ = inputFileType_; + result.inputContentType_ = inputContentType_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -3187,8 +3187,8 @@ public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.Algori } } } - if (other.inputFileType_ != 0) { - setInputFileTypeValue(other.getInputFileTypeValue()); + if (other.inputContentType_ != 0) { + setInputContentTypeValue(other.getInputContentTypeValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3792,77 +3792,77 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder return metricDefinitionsBuilder_; } - private int inputFileType_ = 0; + private int inputContentType_ = 0; /** *
-       * The type of the input files (when using FILE input mode)
+       * The content type of the input
        * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
        * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
        * 
* - * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; */ - public int getInputFileTypeValue() { - return inputFileType_; + public int getInputContentTypeValue() { + return inputContentType_; } /** *
-       * The type of the input files (when using FILE input mode)
+       * The content type of the input
        * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
        * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
        * 
* - * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; */ - public Builder setInputFileTypeValue(int value) { - inputFileType_ = value; + public Builder setInputContentTypeValue(int value) { + inputContentType_ = value; onChanged(); return this; } /** *
-       * The type of the input files (when using FILE input mode)
+       * The content type of the input
        * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
        * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
        * 
* - * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; */ - public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value getInputFileType() { + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value getInputContentType() { @SuppressWarnings("deprecation") - flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value.valueOf(inputFileType_); - return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value.UNRECOGNIZED : result; + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value.valueOf(inputContentType_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value.UNRECOGNIZED : result; } /** *
-       * The type of the input files (when using FILE input mode)
+       * The content type of the input
        * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
        * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
        * 
* - * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; */ - public Builder setInputFileType(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputFileType.Value value) { + public Builder setInputContentType(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value value) { if (value == null) { throw new NullPointerException(); } - inputFileType_ = value.getNumber(); + inputContentType_ = value.getNumber(); onChanged(); return this; } /** *
-       * The type of the input files (when using FILE input mode)
+       * The content type of the input
        * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
        * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
        * 
* - * .flyteidl.plugins.sagemaker.InputFileType.Value input_file_type = 5; + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; */ - public Builder clearInputFileType() { + public Builder clearInputContentType() { - inputFileType_ = 0; + inputContentType_ = 0; onChanged(); return this; } @@ -5503,10 +5503,10 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_plugins_sagemaker_AlgorithmName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_sagemaker_InputFileType_descriptor; + internal_static_flyteidl_plugins_sagemaker_InputContentType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_sagemaker_InputFileType_fieldAccessorTable; + internal_static_flyteidl_plugins_sagemaker_InputContentType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor; private static final @@ -5541,27 +5541,27 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn "gle/protobuf/duration.proto\"(\n\tInputMode" + "\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n\rAlgorit" + "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001" + - "\"7\n\rInputFileType\"&\n\005Value\022\014\n\010TEXT_CSV\020\000" + - "\022\017\n\013TEXT_LIBSVM\020\001\"/\n\020MetricDefinition\022\014\n" + - "\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"\321\002\n\026Algorithm" + - "Specification\022?\n\ninput_mode\030\001 \001(\0162+.flyt" + - "eidl.plugins.sagemaker.InputMode.Value\022G" + - "\n\016algorithm_name\030\002 \001(\0162/.flyteidl.plugin" + - "s.sagemaker.AlgorithmName.Value\022\031\n\021algor" + - "ithm_version\030\003 \001(\t\022H\n\022metric_definitions" + - "\030\004 \003(\0132,.flyteidl.plugins.sagemaker.Metr" + - "icDefinition\022H\n\017input_file_type\030\005 \001(\0162/." + - "flyteidl.plugins.sagemaker.InputFileType" + - ".Value\"e\n\031TrainingJobResourceConfig\022\026\n\016i" + - "nstance_count\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001" + - "(\t\022\031\n\021volume_size_in_gb\030\003 \001(\003\"\277\001\n\013Traini" + - "ngJob\022S\n\027algorithm_specification\030\001 \001(\01322" + - ".flyteidl.plugins.sagemaker.AlgorithmSpe" + - "cification\022[\n\034training_job_resource_conf" + - "ig\030\002 \001(\01325.flyteidl.plugins.sagemaker.Tr" + - "ainingJobResourceConfigB5Z3github.com/ly" + - "ft/flyteidl/gen/pb-go/flyteidl/pluginsb\006" + - "proto3" + "\":\n\020InputContentType\"&\n\005Value\022\014\n\010TEXT_CS" + + "V\020\000\022\017\n\013TEXT_LIBSVM\020\001\"/\n\020MetricDefinition" + + "\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"\327\002\n\026Algori" + + "thmSpecification\022?\n\ninput_mode\030\001 \001(\0162+.f" + + "lyteidl.plugins.sagemaker.InputMode.Valu" + + "e\022G\n\016algorithm_name\030\002 \001(\0162/.flyteidl.plu" + + "gins.sagemaker.AlgorithmName.Value\022\031\n\021al" + + "gorithm_version\030\003 \001(\t\022H\n\022metric_definiti" + + "ons\030\004 \003(\0132,.flyteidl.plugins.sagemaker.M" + + "etricDefinition\022N\n\022input_content_type\030\005 " + + "\001(\01622.flyteidl.plugins.sagemaker.InputCo" + + "ntentType.Value\"e\n\031TrainingJobResourceCo" + + "nfig\022\026\n\016instance_count\030\001 \001(\003\022\025\n\rinstance" + + "_type\030\002 \001(\t\022\031\n\021volume_size_in_gb\030\003 \001(\003\"\277" + + "\001\n\013TrainingJob\022S\n\027algorithm_specificatio" + + "n\030\001 \001(\01322.flyteidl.plugins.sagemaker.Alg" + + "orithmSpecification\022[\n\034training_job_reso" + + "urce_config\030\002 \001(\01325.flyteidl.plugins.sag" + + "emaker.TrainingJobResourceConfigB5Z3gith" + + "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" + + "pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -5588,11 +5588,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor, new java.lang.String[] { }); - internal_static_flyteidl_plugins_sagemaker_InputFileType_descriptor = + internal_static_flyteidl_plugins_sagemaker_InputContentType_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_sagemaker_InputFileType_fieldAccessorTable = new + internal_static_flyteidl_plugins_sagemaker_InputContentType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_sagemaker_InputFileType_descriptor, + internal_static_flyteidl_plugins_sagemaker_InputContentType_descriptor, new java.lang.String[] { }); internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor = getDescriptor().getMessageTypes().get(3); @@ -5605,7 +5605,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, - new java.lang.String[] { "InputMode", "AlgorithmName", "AlgorithmVersion", "MetricDefinitions", "InputFileType", }); + new java.lang.String[] { "InputMode", "AlgorithmName", "AlgorithmVersion", "MetricDefinitions", "InputContentType", }); internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_fieldAccessorTable = new diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst index bcf363b73..926c69994 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst @@ -80,12 +80,12 @@ XGBOOST ⁣ -.. _api_msg_flyteidl.plugins.sagemaker.InputFileType: +.. _api_msg_flyteidl.plugins.sagemaker.InputContentType: -flyteidl.plugins.sagemaker.InputFileType ----------------------------------------- +flyteidl.plugins.sagemaker.InputContentType +------------------------------------------- -`[flyteidl.plugins.sagemaker.InputFileType proto] `_ +`[flyteidl.plugins.sagemaker.InputContentType proto] `_ Specifies the type of file for input data. Different SageMaker built-in algorithms require different file types of input data See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html @@ -97,20 +97,20 @@ https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-p -.. _api_enum_flyteidl.plugins.sagemaker.InputFileType.Value: +.. _api_enum_flyteidl.plugins.sagemaker.InputContentType.Value: -Enum flyteidl.plugins.sagemaker.InputFileType.Value ---------------------------------------------------- +Enum flyteidl.plugins.sagemaker.InputContentType.Value +------------------------------------------------------ -`[flyteidl.plugins.sagemaker.InputFileType.Value proto] `_ +`[flyteidl.plugins.sagemaker.InputContentType.Value proto] `_ -.. _api_enum_value_flyteidl.plugins.sagemaker.InputFileType.Value.TEXT_CSV: +.. _api_enum_value_flyteidl.plugins.sagemaker.InputContentType.Value.TEXT_CSV: TEXT_CSV *(DEFAULT)* ⁣ -.. _api_enum_value_flyteidl.plugins.sagemaker.InputFileType.Value.TEXT_LIBSVM: +.. _api_enum_value_flyteidl.plugins.sagemaker.InputContentType.Value.TEXT_LIBSVM: TEXT_LIBSVM ⁣ @@ -170,7 +170,7 @@ https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecifica "algorithm_name": "...", "algorithm_version": "...", "metric_definitions": [], - "input_file_type": "..." + "input_content_type": "..." } .. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode: @@ -200,10 +200,10 @@ metric_definitions and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html -.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type: +.. _api_field_flyteidl.plugins.sagemaker.AlgorithmSpecification.input_content_type: -input_file_type - (:ref:`flyteidl.plugins.sagemaker.InputFileType.Value `) The type of the input files (when using FILE input mode) +input_content_type + (:ref:`flyteidl.plugins.sagemaker.InputContentType.Value `) The content type of the input See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py index 7eec7a0ed..dff6e6e16 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py @@ -21,7 +21,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\"7\n\rInputFileType\"&\n\x05Value\x12\x0c\n\x08TEXT_CSV\x10\x00\x12\x0f\n\x0bTEXT_LIBSVM\x10\x01\"/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"\xd1\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12H\n\x12metric_definitions\x18\x04 \x03(\x0b\x32,.flyteidl.plugins.sagemaker.MetricDefinition\x12H\n\x0finput_file_type\x18\x05 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.InputFileType.Value\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\xbf\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12[\n\x1ctraining_job_resource_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\":\n\x10InputContentType\"&\n\x05Value\x12\x0c\n\x08TEXT_CSV\x10\x00\x12\x0f\n\x0bTEXT_LIBSVM\x10\x01\"/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"\xd7\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12H\n\x12metric_definitions\x18\x04 \x03(\x0b\x32,.flyteidl.plugins.sagemaker.MetricDefinition\x12N\n\x12input_content_type\x18\x05 \x01(\x0e\x32\x32.flyteidl.plugins.sagemaker.InputContentType.Value\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\xbf\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12[\n\x1ctraining_job_resource_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) @@ -71,9 +71,9 @@ ) _sym_db.RegisterEnumDescriptor(_ALGORITHMNAME_VALUE) -_INPUTFILETYPE_VALUE = _descriptor.EnumDescriptor( +_INPUTCONTENTTYPE_VALUE = _descriptor.EnumDescriptor( name='Value', - full_name='flyteidl.plugins.sagemaker.InputFileType.Value', + full_name='flyteidl.plugins.sagemaker.InputContentType.Value', filename=None, file=DESCRIPTOR, values=[ @@ -88,10 +88,10 @@ ], containing_type=None, serialized_options=None, - serialized_start=219, - serialized_end=257, + serialized_start=222, + serialized_end=260, ) -_sym_db.RegisterEnumDescriptor(_INPUTFILETYPE_VALUE) +_sym_db.RegisterEnumDescriptor(_INPUTCONTENTTYPE_VALUE) _INPUTMODE = _descriptor.Descriptor( @@ -144,9 +144,9 @@ ) -_INPUTFILETYPE = _descriptor.Descriptor( - name='InputFileType', - full_name='flyteidl.plugins.sagemaker.InputFileType', +_INPUTCONTENTTYPE = _descriptor.Descriptor( + name='InputContentType', + full_name='flyteidl.plugins.sagemaker.InputContentType', filename=None, file=DESCRIPTOR, containing_type=None, @@ -156,7 +156,7 @@ ], nested_types=[], enum_types=[ - _INPUTFILETYPE_VALUE, + _INPUTCONTENTTYPE_VALUE, ], serialized_options=None, is_extendable=False, @@ -165,7 +165,7 @@ oneofs=[ ], serialized_start=202, - serialized_end=257, + serialized_end=260, ) @@ -202,8 +202,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=259, - serialized_end=306, + serialized_start=262, + serialized_end=309, ) @@ -243,7 +243,7 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='input_file_type', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.input_file_type', index=4, + name='input_content_type', full_name='flyteidl.plugins.sagemaker.AlgorithmSpecification.input_content_type', index=4, number=5, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -261,8 +261,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=309, - serialized_end=646, + serialized_start=312, + serialized_end=655, ) @@ -306,8 +306,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=648, - serialized_end=749, + serialized_start=657, + serialized_end=758, ) @@ -344,22 +344,22 @@ extension_ranges=[], oneofs=[ ], - serialized_start=752, - serialized_end=943, + serialized_start=761, + serialized_end=952, ) _INPUTMODE_VALUE.containing_type = _INPUTMODE _ALGORITHMNAME_VALUE.containing_type = _ALGORITHMNAME -_INPUTFILETYPE_VALUE.containing_type = _INPUTFILETYPE +_INPUTCONTENTTYPE_VALUE.containing_type = _INPUTCONTENTTYPE _ALGORITHMSPECIFICATION.fields_by_name['input_mode'].enum_type = _INPUTMODE_VALUE _ALGORITHMSPECIFICATION.fields_by_name['algorithm_name'].enum_type = _ALGORITHMNAME_VALUE _ALGORITHMSPECIFICATION.fields_by_name['metric_definitions'].message_type = _METRICDEFINITION -_ALGORITHMSPECIFICATION.fields_by_name['input_file_type'].enum_type = _INPUTFILETYPE_VALUE +_ALGORITHMSPECIFICATION.fields_by_name['input_content_type'].enum_type = _INPUTCONTENTTYPE_VALUE _TRAININGJOB.fields_by_name['algorithm_specification'].message_type = _ALGORITHMSPECIFICATION _TRAININGJOB.fields_by_name['training_job_resource_config'].message_type = _TRAININGJOBRESOURCECONFIG DESCRIPTOR.message_types_by_name['InputMode'] = _INPUTMODE DESCRIPTOR.message_types_by_name['AlgorithmName'] = _ALGORITHMNAME -DESCRIPTOR.message_types_by_name['InputFileType'] = _INPUTFILETYPE +DESCRIPTOR.message_types_by_name['InputContentType'] = _INPUTCONTENTTYPE DESCRIPTOR.message_types_by_name['MetricDefinition'] = _METRICDEFINITION DESCRIPTOR.message_types_by_name['AlgorithmSpecification'] = _ALGORITHMSPECIFICATION DESCRIPTOR.message_types_by_name['TrainingJobResourceConfig'] = _TRAININGJOBRESOURCECONFIG @@ -380,12 +380,12 @@ )) _sym_db.RegisterMessage(AlgorithmName) -InputFileType = _reflection.GeneratedProtocolMessageType('InputFileType', (_message.Message,), dict( - DESCRIPTOR = _INPUTFILETYPE, +InputContentType = _reflection.GeneratedProtocolMessageType('InputContentType', (_message.Message,), dict( + DESCRIPTOR = _INPUTCONTENTTYPE, __module__ = 'flyteidl.plugins.sagemaker.training_job_pb2' - # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputFileType) + # @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputContentType) )) -_sym_db.RegisterMessage(InputFileType) +_sym_db.RegisterMessage(InputContentType) MetricDefinition = _reflection.GeneratedProtocolMessageType('MetricDefinition', (_message.Message,), dict( DESCRIPTOR = _METRICDEFINITION, diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto index 40033c20c..80ebef7fb 100644 --- a/protos/flyteidl/plugins/sagemaker/training_job.proto +++ b/protos/flyteidl/plugins/sagemaker/training_job.proto @@ -35,7 +35,7 @@ message AlgorithmName { // Specifies the type of file for input data. Different SageMaker built-in algorithms require different file types of input data // See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html // https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html -message InputFileType { +message InputContentType { enum Value { TEXT_CSV = 0; TEXT_LIBSVM = 1; @@ -75,10 +75,10 @@ message AlgorithmSpecification { // and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html repeated MetricDefinition metric_definitions = 4; - // The type of the input files (when using FILE input mode) + // The content type of the input // See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html // https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html - InputFileType.Value input_file_type = 5; + InputContentType.Value input_content_type = 5; } // TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the From 368e1e45b7a14a8e19b2f8fa43228767bfe7438a Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Thu, 30 Jul 2020 09:47:49 -0700 Subject: [PATCH 64/64] remove libsvm content type --- .../plugins/sagemaker/training_job.pb.cc | 45 +++++----- .../plugins/sagemaker/training_job.pb.h | 5 +- .../plugins/sagemaker/training_job.pb.go | 82 +++++++++---------- .../sagemaker/TrainingJobOuterClass.java | 50 +++++------ .../plugins/sagemaker/training_job.proto.rst | 13 +-- .../plugins/sagemaker/training_job_pb2.py | 26 +++--- .../plugins/sagemaker/training_job.proto | 1 - 7 files changed, 96 insertions(+), 126 deletions(-) diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc index 150983ba6..7f846625f 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc @@ -249,32 +249,31 @@ const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5 "gle/protobuf/duration.proto\"(\n\tInputMode" "\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n\rAlgorit" "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001" - "\":\n\020InputContentType\"&\n\005Value\022\014\n\010TEXT_CS" - "V\020\000\022\017\n\013TEXT_LIBSVM\020\001\"/\n\020MetricDefinition" - "\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"\327\002\n\026Algori" - "thmSpecification\022\?\n\ninput_mode\030\001 \001(\0162+.f" - "lyteidl.plugins.sagemaker.InputMode.Valu" - "e\022G\n\016algorithm_name\030\002 \001(\0162/.flyteidl.plu" - "gins.sagemaker.AlgorithmName.Value\022\031\n\021al" - "gorithm_version\030\003 \001(\t\022H\n\022metric_definiti" - "ons\030\004 \003(\0132,.flyteidl.plugins.sagemaker.M" - "etricDefinition\022N\n\022input_content_type\030\005 " - "\001(\01622.flyteidl.plugins.sagemaker.InputCo" - "ntentType.Value\"e\n\031TrainingJobResourceCo" - "nfig\022\026\n\016instance_count\030\001 \001(\003\022\025\n\rinstance" - "_type\030\002 \001(\t\022\031\n\021volume_size_in_gb\030\003 \001(\003\"\277" - "\001\n\013TrainingJob\022S\n\027algorithm_specificatio" - "n\030\001 \001(\01322.flyteidl.plugins.sagemaker.Alg" - "orithmSpecification\022[\n\034training_job_reso" - "urce_config\030\002 \001(\01325.flyteidl.plugins.sag" - "emaker.TrainingJobResourceConfigB5Z3gith" - "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" - "pluginsb\006proto3" + "\")\n\020InputContentType\"\025\n\005Value\022\014\n\010TEXT_CS" + "V\020\000\"/\n\020MetricDefinition\022\014\n\004name\030\001 \001(\t\022\r\n" + "\005regex\030\002 \001(\t\"\327\002\n\026AlgorithmSpecification\022" + "\?\n\ninput_mode\030\001 \001(\0162+.flyteidl.plugins.s" + "agemaker.InputMode.Value\022G\n\016algorithm_na" + "me\030\002 \001(\0162/.flyteidl.plugins.sagemaker.Al" + "gorithmName.Value\022\031\n\021algorithm_version\030\003" + " \001(\t\022H\n\022metric_definitions\030\004 \003(\0132,.flyte" + "idl.plugins.sagemaker.MetricDefinition\022N" + "\n\022input_content_type\030\005 \001(\01622.flyteidl.pl" + "ugins.sagemaker.InputContentType.Value\"e" + "\n\031TrainingJobResourceConfig\022\026\n\016instance_" + "count\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021vo" + "lume_size_in_gb\030\003 \001(\003\"\277\001\n\013TrainingJob\022S\n" + "\027algorithm_specification\030\001 \001(\01322.flyteid" + "l.plugins.sagemaker.AlgorithmSpecificati" + "on\022[\n\034training_job_resource_config\030\002 \001(\013" + "25.flyteidl.plugins.sagemaker.TrainingJo" + "bResourceConfigB5Z3github.com/lyft/flyte" + "idl/gen/pb-go/flyteidl/pluginsb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, - "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 1015, + "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 998, }; void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { @@ -339,7 +338,6 @@ const ::google::protobuf::EnumDescriptor* InputContentType_Value_descriptor() { bool InputContentType_Value_IsValid(int value) { switch (value) { case 0: - case 1: return true; default: return false; @@ -348,7 +346,6 @@ bool InputContentType_Value_IsValid(int value) { #if !defined(_MSC_VER) || _MSC_VER >= 1900 const InputContentType_Value InputContentType::TEXT_CSV; -const InputContentType_Value InputContentType::TEXT_LIBSVM; const InputContentType_Value InputContentType::Value_MIN; const InputContentType_Value InputContentType::Value_MAX; const int InputContentType::Value_ARRAYSIZE; diff --git a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h index ce37ff44a..ec52b16c2 100644 --- a/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h +++ b/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h @@ -136,13 +136,12 @@ inline bool AlgorithmName_Value_Parse( } enum InputContentType_Value { InputContentType_Value_TEXT_CSV = 0, - InputContentType_Value_TEXT_LIBSVM = 1, InputContentType_Value_InputContentType_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), InputContentType_Value_InputContentType_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() }; bool InputContentType_Value_IsValid(int value); const InputContentType_Value InputContentType_Value_Value_MIN = InputContentType_Value_TEXT_CSV; -const InputContentType_Value InputContentType_Value_Value_MAX = InputContentType_Value_TEXT_LIBSVM; +const InputContentType_Value InputContentType_Value_Value_MAX = InputContentType_Value_TEXT_CSV; const int InputContentType_Value_Value_ARRAYSIZE = InputContentType_Value_Value_MAX + 1; const ::google::protobuf::EnumDescriptor* InputContentType_Value_descriptor(); @@ -515,8 +514,6 @@ class InputContentType final : typedef InputContentType_Value Value; static const Value TEXT_CSV = InputContentType_Value_TEXT_CSV; - static const Value TEXT_LIBSVM = - InputContentType_Value_TEXT_LIBSVM; static inline bool Value_IsValid(int value) { return InputContentType_Value_IsValid(value); } diff --git a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go index fd24ff946..865ea9a67 100644 --- a/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go +++ b/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -74,18 +74,15 @@ func (AlgorithmName_Value) EnumDescriptor() ([]byte, []int) { type InputContentType_Value int32 const ( - InputContentType_TEXT_CSV InputContentType_Value = 0 - InputContentType_TEXT_LIBSVM InputContentType_Value = 1 + InputContentType_TEXT_CSV InputContentType_Value = 0 ) var InputContentType_Value_name = map[int32]string{ 0: "TEXT_CSV", - 1: "TEXT_LIBSVM", } var InputContentType_Value_value = map[string]int32{ - "TEXT_CSV": 0, - "TEXT_LIBSVM": 1, + "TEXT_CSV": 0, } func (x InputContentType_Value) String() string { @@ -471,43 +468,42 @@ func init() { } var fileDescriptor_6a68f64d8fd9fe30 = []byte{ - // 605 bytes of a gzipped FileDescriptorProto + // 592 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xd1, 0x4e, 0xdb, 0x3c, - 0x14, 0xc7, 0x09, 0x05, 0x3e, 0x38, 0x85, 0x7e, 0xc1, 0x9a, 0x58, 0x61, 0xd3, 0x84, 0x32, 0x6d, - 0x62, 0x62, 0x24, 0x5a, 0x11, 0x37, 0xd3, 0x6e, 0x46, 0xc7, 0x50, 0x11, 0x1d, 0x28, 0xed, 0x2a, - 0xb4, 0x5d, 0x64, 0x49, 0x7a, 0x62, 0x3c, 0x12, 0x3b, 0x4a, 0x1c, 0xb4, 0xf2, 0x18, 0x7b, 0x8a, - 0x3d, 0xdf, 0x9e, 0x60, 0x8a, 0xd3, 0x84, 0xae, 0xa2, 0xdd, 0x5d, 0xfc, 0xf7, 0xf1, 0xf1, 0xff, - 0xfc, 0xce, 0x89, 0xe1, 0x20, 0x08, 0x47, 0x12, 0xd9, 0x30, 0xb4, 0xe2, 0x30, 0xa3, 0x8c, 0xa7, - 0x56, 0xea, 0x52, 0x8c, 0xdc, 0x1b, 0x4c, 0x2c, 0x99, 0xb8, 0x8c, 0x33, 0x4e, 0x9d, 0xef, 0xc2, - 0x33, 0xe3, 0x44, 0x48, 0x41, 0x76, 0xca, 0x70, 0x73, 0x1c, 0x6e, 0x56, 0xe1, 0x3b, 0xcf, 0xa8, - 0x10, 0x34, 0x44, 0x4b, 0x45, 0x7a, 0x59, 0x60, 0x0d, 0xb3, 0xc4, 0x95, 0x4c, 0xf0, 0xe2, 0xac, - 0xb1, 0x07, 0x6b, 0x1d, 0x1e, 0x67, 0xb2, 0x2b, 0x86, 0x68, 0x3c, 0x81, 0xe5, 0x81, 0x1b, 0x66, - 0x48, 0x56, 0x61, 0xe9, 0x63, 0xe7, 0xfc, 0x44, 0x5f, 0xc8, 0xbf, 0x2e, 0x3b, 0x97, 0x27, 0xba, - 0x66, 0xbc, 0x81, 0x8d, 0xf7, 0x21, 0x15, 0x09, 0x93, 0xd7, 0xd1, 0x27, 0x37, 0x42, 0x63, 0xb7, - 0x8c, 0x06, 0x58, 0x69, 0x7f, 0xee, 0xf5, 0x2f, 0xba, 0xfa, 0x02, 0xa9, 0xc3, 0x7f, 0x57, 0xa7, - 0xc7, 0x17, 0x17, 0xbd, 0xbe, 0xae, 0x19, 0x6f, 0x41, 0x57, 0xc9, 0xdb, 0x82, 0x4b, 0xe4, 0xb2, - 0x3f, 0x8a, 0xd1, 0x78, 0x59, 0x9e, 0x5a, 0x87, 0xd5, 0xfe, 0xc9, 0x55, 0xdf, 0x69, 0xf7, 0x06, - 0xfa, 0x02, 0xf9, 0x1f, 0xea, 0x6a, 0x75, 0xde, 0x39, 0xee, 0x0d, 0xba, 0xba, 0x66, 0xbc, 0x03, - 0xbd, 0x8b, 0x32, 0x61, 0xfe, 0x07, 0x0c, 0x18, 0x67, 0xb9, 0x65, 0x42, 0x60, 0x89, 0xbb, 0x11, - 0x36, 0xb5, 0x5d, 0x6d, 0x6f, 0xcd, 0x56, 0xdf, 0xe4, 0x11, 0x2c, 0x27, 0x48, 0xf1, 0x47, 0x73, - 0x51, 0x89, 0xc5, 0xc2, 0xf8, 0x55, 0x83, 0xad, 0xca, 0x6d, 0x2f, 0x46, 0x9f, 0x05, 0xcc, 0x57, - 0x75, 0x93, 0x33, 0x00, 0x96, 0x9b, 0x72, 0x22, 0x31, 0x2c, 0x52, 0x35, 0x5a, 0xfb, 0xe6, 0x6c, - 0x84, 0x66, 0xc5, 0xc7, 0x54, 0xc6, 0xed, 0x35, 0x56, 0x0a, 0x64, 0x00, 0x0d, 0xb7, 0xbc, 0xc5, - 0x51, 0xd6, 0x16, 0x55, 0x3e, 0x6b, 0x5e, 0xbe, 0xbf, 0x28, 0x8e, 0x73, 0x6e, 0xb8, 0x93, 0x22, - 0xd9, 0x87, 0xcd, 0xfb, 0xbc, 0xb7, 0x98, 0xa4, 0x4c, 0xf0, 0x66, 0x4d, 0x15, 0xa8, 0x57, 0x1b, - 0x83, 0x42, 0x27, 0x5f, 0x81, 0x44, 0x8a, 0x94, 0x33, 0xac, 0x50, 0xa5, 0xcd, 0xa5, 0xdd, 0xda, - 0x5e, 0xbd, 0xf5, 0x7a, 0x9e, 0x91, 0x69, 0xbe, 0xf6, 0x66, 0x34, 0xa5, 0xa4, 0xe4, 0x1b, 0x90, - 0x82, 0x96, 0x5f, 0xf4, 0xd0, 0x91, 0xa3, 0x18, 0x9b, 0xcb, 0xaa, 0xca, 0xd6, 0x3f, 0xa9, 0x4d, - 0x34, 0x7e, 0x5c, 0xa8, 0xce, 0xa6, 0x07, 0xe2, 0xa7, 0x06, 0xdb, 0xfd, 0xf1, 0x50, 0x9f, 0x09, - 0xcf, 0xc6, 0x54, 0x64, 0x89, 0x8f, 0x6d, 0xc1, 0x03, 0x46, 0xc9, 0x0b, 0x68, 0x30, 0x9e, 0x4a, - 0x97, 0xfb, 0xe8, 0xf8, 0x22, 0xe3, 0x52, 0x75, 0xac, 0x66, 0x6f, 0x94, 0x6a, 0x3b, 0x17, 0xc9, - 0x73, 0xa8, 0x84, 0xc2, 0x61, 0x31, 0x0d, 0xeb, 0xa5, 0x98, 0xdf, 0x44, 0x5e, 0xc1, 0xe6, 0xad, - 0x08, 0xb3, 0x08, 0x9d, 0x94, 0xdd, 0xa1, 0xc3, 0xb8, 0x43, 0x3d, 0x45, 0xb5, 0x66, 0x37, 0x8a, - 0x8d, 0x1e, 0xbb, 0xc3, 0x0e, 0x3f, 0xf5, 0x8c, 0xdf, 0x1a, 0xd4, 0x27, 0x4c, 0x91, 0x1b, 0x78, - 0x7c, 0xdf, 0x90, 0x74, 0x72, 0x9e, 0x94, 0x9f, 0xfa, 0x7c, 0x16, 0x0f, 0x4f, 0xa2, 0xbd, 0xe5, - 0x3e, 0x3c, 0xa1, 0xb7, 0xf0, 0x74, 0xf2, 0x2f, 0x77, 0x92, 0x31, 0x92, 0xbc, 0x07, 0x01, 0xa3, - 0xaa, 0xb6, 0x7a, 0xeb, 0x68, 0xde, 0x8d, 0x33, 0x81, 0xda, 0xdb, 0x72, 0xd6, 0xd6, 0xf1, 0xd1, - 0x97, 0x43, 0xca, 0xe4, 0x75, 0xe6, 0x99, 0xbe, 0x88, 0xac, 0x70, 0x14, 0x48, 0xab, 0x7a, 0x88, - 0x28, 0x72, 0x2b, 0xf6, 0x0e, 0xa8, 0xb0, 0xa6, 0xdf, 0x26, 0x6f, 0x45, 0xbd, 0x24, 0x87, 0x7f, - 0x02, 0x00, 0x00, 0xff, 0xff, 0x14, 0x23, 0x54, 0xcb, 0xb6, 0x04, 0x00, 0x00, + 0x14, 0xc7, 0x09, 0x05, 0x3e, 0x38, 0x85, 0x2a, 0x58, 0xdf, 0x58, 0x61, 0xd3, 0x84, 0x32, 0x4d, + 0x02, 0x31, 0x12, 0xad, 0x88, 0xbb, 0xdd, 0x8c, 0x8e, 0xa1, 0xa2, 0x31, 0x50, 0x9a, 0x55, 0x68, + 0xbb, 0xc8, 0x92, 0xf4, 0xc4, 0x78, 0x24, 0x76, 0x94, 0x38, 0x68, 0xe5, 0x31, 0xf6, 0x14, 0x7b, + 0xbe, 0x3d, 0xc1, 0x14, 0xa7, 0x09, 0x5d, 0x45, 0xbb, 0x3b, 0xe7, 0xef, 0xe3, 0xe3, 0xff, 0xf9, + 0x9d, 0x13, 0xc3, 0x61, 0x18, 0x8d, 0x24, 0xb2, 0x61, 0x64, 0x25, 0x51, 0x4e, 0x19, 0xcf, 0xac, + 0xcc, 0xa3, 0x18, 0x7b, 0xb7, 0x98, 0x5a, 0x32, 0xf5, 0x18, 0x67, 0x9c, 0xba, 0xdf, 0x85, 0x6f, + 0x26, 0xa9, 0x90, 0x82, 0xec, 0x54, 0xe1, 0xe6, 0x38, 0xdc, 0xac, 0xc3, 0x77, 0x5e, 0x50, 0x21, + 0x68, 0x84, 0x96, 0x8a, 0xf4, 0xf3, 0xd0, 0x1a, 0xe6, 0xa9, 0x27, 0x99, 0xe0, 0xe5, 0x59, 0x63, + 0x0f, 0xd6, 0x7a, 0x3c, 0xc9, 0xe5, 0x85, 0x18, 0xa2, 0xf1, 0x0c, 0x96, 0x07, 0x5e, 0x94, 0x23, + 0x59, 0x85, 0xa5, 0x0f, 0xbd, 0x8f, 0xa7, 0xfa, 0x42, 0xb1, 0xba, 0xea, 0x5d, 0x9d, 0xea, 0x9a, + 0xf1, 0x06, 0x36, 0xde, 0x45, 0x54, 0xa4, 0x4c, 0xde, 0xc4, 0x9f, 0xbc, 0x18, 0x8d, 0xdd, 0x2a, + 0x1a, 0x60, 0xa5, 0xfb, 0xb9, 0xef, 0x5c, 0x5e, 0xe8, 0x0b, 0xa4, 0x09, 0xff, 0x5d, 0x9f, 0x9d, + 0x5c, 0x5e, 0xf6, 0x1d, 0x5d, 0x33, 0xf6, 0x41, 0x57, 0xc9, 0xbb, 0x82, 0x4b, 0xe4, 0xd2, 0x19, + 0x25, 0x68, 0x3c, 0xa9, 0x4e, 0xad, 0xc3, 0xaa, 0x73, 0x7a, 0xed, 0xb8, 0xdd, 0xfe, 0x40, 0x5f, + 0x30, 0xde, 0x82, 0x7e, 0x81, 0x32, 0x65, 0xc1, 0x7b, 0x0c, 0x19, 0x67, 0x85, 0x43, 0x42, 0x60, + 0x89, 0x7b, 0x31, 0xb6, 0xb5, 0x5d, 0x6d, 0x6f, 0xcd, 0x56, 0x6b, 0xf2, 0x3f, 0x2c, 0xa7, 0x48, + 0xf1, 0x47, 0x7b, 0x51, 0x89, 0xe5, 0x87, 0xf1, 0xab, 0x01, 0x5b, 0xb5, 0xb9, 0x7e, 0x82, 0x01, + 0x0b, 0x59, 0xa0, 0xca, 0x24, 0xe7, 0x00, 0xac, 0xf0, 0xe0, 0xc6, 0x62, 0x58, 0xa6, 0x6a, 0x75, + 0x0e, 0xcc, 0xd9, 0xc4, 0xcc, 0x1a, 0x87, 0xa9, 0x7c, 0xda, 0x6b, 0xac, 0x12, 0xc8, 0x00, 0x5a, + 0x5e, 0x75, 0x8b, 0xab, 0xac, 0x2d, 0xaa, 0x7c, 0xd6, 0xbc, 0x7c, 0x7f, 0x41, 0x1b, 0xe7, 0xdc, + 0xf0, 0x26, 0x45, 0x72, 0x00, 0x9b, 0x0f, 0x79, 0xef, 0x30, 0xcd, 0x98, 0xe0, 0xed, 0x86, 0x2a, + 0x50, 0xaf, 0x37, 0x06, 0xa5, 0x4e, 0xbe, 0x02, 0x89, 0x15, 0x29, 0x77, 0x58, 0xa3, 0xca, 0xda, + 0x4b, 0xbb, 0x8d, 0xbd, 0x66, 0xe7, 0xf5, 0x3c, 0x23, 0xd3, 0x7c, 0xed, 0xcd, 0x78, 0x4a, 0xc9, + 0xc8, 0x37, 0x20, 0x25, 0xad, 0xa0, 0x6c, 0x99, 0x2b, 0x47, 0x09, 0xb6, 0x97, 0x55, 0x95, 0x9d, + 0x7f, 0x52, 0x9b, 0xe8, 0xf3, 0xb8, 0x50, 0x9d, 0x4d, 0xf7, 0xff, 0xa7, 0x06, 0xdb, 0xce, 0x78, + 0x86, 0xcf, 0x85, 0x6f, 0x63, 0x26, 0xf2, 0x34, 0xc0, 0xae, 0xe0, 0x21, 0xa3, 0xe4, 0x15, 0xb4, + 0x18, 0xcf, 0xa4, 0xc7, 0x03, 0x74, 0x03, 0x91, 0x73, 0xa9, 0x3a, 0xd6, 0xb0, 0x37, 0x2a, 0xb5, + 0x5b, 0x88, 0xe4, 0x25, 0xd4, 0x42, 0xe9, 0xb0, 0x9c, 0x86, 0xf5, 0x4a, 0x2c, 0x6e, 0x22, 0xfb, + 0xb0, 0x79, 0x27, 0xa2, 0x3c, 0x46, 0x37, 0x63, 0xf7, 0xe8, 0x32, 0xee, 0x52, 0x5f, 0x51, 0x6d, + 0xd8, 0xad, 0x72, 0xa3, 0xcf, 0xee, 0xb1, 0xc7, 0xcf, 0x7c, 0xe3, 0xb7, 0x06, 0xcd, 0x09, 0x53, + 0xe4, 0x16, 0x9e, 0x3e, 0x34, 0x24, 0x9b, 0x9c, 0x27, 0xe5, 0xa7, 0x39, 0x9f, 0xc5, 0xe3, 0x93, + 0x68, 0x6f, 0x79, 0x8f, 0x4f, 0xe8, 0x1d, 0x3c, 0x9f, 0xfc, 0xa9, 0xdd, 0x74, 0x8c, 0xa4, 0xe8, + 0x41, 0xc8, 0xa8, 0xaa, 0xad, 0xd9, 0x39, 0x9e, 0x77, 0xe3, 0x4c, 0xa0, 0xf6, 0xb6, 0x9c, 0xb5, + 0x75, 0x72, 0xfc, 0xe5, 0x88, 0x32, 0x79, 0x93, 0xfb, 0x66, 0x20, 0x62, 0x2b, 0x1a, 0x85, 0xd2, + 0xaa, 0xdf, 0x1d, 0x8a, 0xdc, 0x4a, 0xfc, 0x43, 0x2a, 0xac, 0xe9, 0xa7, 0xc8, 0x5f, 0x51, 0x0f, + 0xc7, 0xd1, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc4, 0x72, 0xc9, 0x58, 0xa5, 0x04, 0x00, 0x00, } diff --git a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java index b1588210e..145062e99 100644 --- a/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java +++ b/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -1155,10 +1155,6 @@ public enum Value * TEXT_CSV = 0; */ TEXT_CSV(0), - /** - * TEXT_LIBSVM = 1; - */ - TEXT_LIBSVM(1), UNRECOGNIZED(-1), ; @@ -1166,10 +1162,6 @@ public enum Value * TEXT_CSV = 0; */ public static final int TEXT_CSV_VALUE = 0; - /** - * TEXT_LIBSVM = 1; - */ - public static final int TEXT_LIBSVM_VALUE = 1; public final int getNumber() { @@ -1191,7 +1183,6 @@ public static Value valueOf(int value) { public static Value forNumber(int value) { switch (value) { case 0: return TEXT_CSV; - case 1: return TEXT_LIBSVM; default: return null; } } @@ -5541,27 +5532,26 @@ public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultIn "gle/protobuf/duration.proto\"(\n\tInputMode" + "\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n\rAlgorit" + "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001" + - "\":\n\020InputContentType\"&\n\005Value\022\014\n\010TEXT_CS" + - "V\020\000\022\017\n\013TEXT_LIBSVM\020\001\"/\n\020MetricDefinition" + - "\022\014\n\004name\030\001 \001(\t\022\r\n\005regex\030\002 \001(\t\"\327\002\n\026Algori" + - "thmSpecification\022?\n\ninput_mode\030\001 \001(\0162+.f" + - "lyteidl.plugins.sagemaker.InputMode.Valu" + - "e\022G\n\016algorithm_name\030\002 \001(\0162/.flyteidl.plu" + - "gins.sagemaker.AlgorithmName.Value\022\031\n\021al" + - "gorithm_version\030\003 \001(\t\022H\n\022metric_definiti" + - "ons\030\004 \003(\0132,.flyteidl.plugins.sagemaker.M" + - "etricDefinition\022N\n\022input_content_type\030\005 " + - "\001(\01622.flyteidl.plugins.sagemaker.InputCo" + - "ntentType.Value\"e\n\031TrainingJobResourceCo" + - "nfig\022\026\n\016instance_count\030\001 \001(\003\022\025\n\rinstance" + - "_type\030\002 \001(\t\022\031\n\021volume_size_in_gb\030\003 \001(\003\"\277" + - "\001\n\013TrainingJob\022S\n\027algorithm_specificatio" + - "n\030\001 \001(\01322.flyteidl.plugins.sagemaker.Alg" + - "orithmSpecification\022[\n\034training_job_reso" + - "urce_config\030\002 \001(\01325.flyteidl.plugins.sag" + - "emaker.TrainingJobResourceConfigB5Z3gith" + - "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" + - "pluginsb\006proto3" + "\")\n\020InputContentType\"\025\n\005Value\022\014\n\010TEXT_CS" + + "V\020\000\"/\n\020MetricDefinition\022\014\n\004name\030\001 \001(\t\022\r\n" + + "\005regex\030\002 \001(\t\"\327\002\n\026AlgorithmSpecification\022" + + "?\n\ninput_mode\030\001 \001(\0162+.flyteidl.plugins.s" + + "agemaker.InputMode.Value\022G\n\016algorithm_na" + + "me\030\002 \001(\0162/.flyteidl.plugins.sagemaker.Al" + + "gorithmName.Value\022\031\n\021algorithm_version\030\003" + + " \001(\t\022H\n\022metric_definitions\030\004 \003(\0132,.flyte" + + "idl.plugins.sagemaker.MetricDefinition\022N" + + "\n\022input_content_type\030\005 \001(\01622.flyteidl.pl" + + "ugins.sagemaker.InputContentType.Value\"e" + + "\n\031TrainingJobResourceConfig\022\026\n\016instance_" + + "count\030\001 \001(\003\022\025\n\rinstance_type\030\002 \001(\t\022\031\n\021vo" + + "lume_size_in_gb\030\003 \001(\003\"\277\001\n\013TrainingJob\022S\n" + + "\027algorithm_specification\030\001 \001(\01322.flyteid" + + "l.plugins.sagemaker.AlgorithmSpecificati" + + "on\022[\n\034training_job_resource_config\030\002 \001(\013" + + "25.flyteidl.plugins.sagemaker.TrainingJo" + + "bResourceConfigB5Z3github.com/lyft/flyte" + + "idl/gen/pb-go/flyteidl/pluginsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst index 926c69994..dda63465b 100644 --- a/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst +++ b/gen/pb-protodoc/flyteidl/plugins/sagemaker/training_job.proto.rst @@ -110,18 +110,13 @@ Enum flyteidl.plugins.sagemaker.InputContentType.Value TEXT_CSV *(DEFAULT)* ⁣ -.. _api_enum_value_flyteidl.plugins.sagemaker.InputContentType.Value.TEXT_LIBSVM: - -TEXT_LIBSVM - ⁣ - .. _api_msg_flyteidl.plugins.sagemaker.MetricDefinition: flyteidl.plugins.sagemaker.MetricDefinition ------------------------------------------- -`[flyteidl.plugins.sagemaker.MetricDefinition proto] `_ +`[flyteidl.plugins.sagemaker.MetricDefinition proto] `_ Specifies a metric that the training algorithm writes to stderr or stdout. This object is a pass-through. @@ -153,7 +148,7 @@ regex flyteidl.plugins.sagemaker.AlgorithmSpecification ------------------------------------------------- -`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ +`[flyteidl.plugins.sagemaker.AlgorithmSpecification proto] `_ Specifies the training algorithm to be used in the training job This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify @@ -215,7 +210,7 @@ input_content_type flyteidl.plugins.sagemaker.TrainingJobResourceConfig ---------------------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJobResourceConfig proto] `_ TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the number of instances to launch, and the size of the ML storage volume the user wants to provision @@ -254,7 +249,7 @@ volume_size_in_gb flyteidl.plugins.sagemaker.TrainingJob -------------------------------------- -`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ +`[flyteidl.plugins.sagemaker.TrainingJob proto] `_ The spec of a training job. This is mostly a pass-through object https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html diff --git a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py index dff6e6e16..776e925b9 100644 --- a/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py +++ b/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py @@ -21,7 +21,7 @@ package='flyteidl.plugins.sagemaker', syntax='proto3', serialized_options=_b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins'), - serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\":\n\x10InputContentType\"&\n\x05Value\x12\x0c\n\x08TEXT_CSV\x10\x00\x12\x0f\n\x0bTEXT_LIBSVM\x10\x01\"/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"\xd7\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12H\n\x12metric_definitions\x18\x04 \x03(\x0b\x32,.flyteidl.plugins.sagemaker.MetricDefinition\x12N\n\x12input_content_type\x18\x05 \x01(\x0e\x32\x32.flyteidl.plugins.sagemaker.InputContentType.Value\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\xbf\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12[\n\x1ctraining_job_resource_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + serialized_pb=_b('\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\")\n\x10InputContentType\"\x15\n\x05Value\x12\x0c\n\x08TEXT_CSV\x10\x00\"/\n\x10MetricDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05regex\x18\x02 \x01(\t\"\xd7\x02\n\x16\x41lgorithmSpecification\x12?\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.Value\x12G\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.Value\x12\x19\n\x11\x61lgorithm_version\x18\x03 \x01(\t\x12H\n\x12metric_definitions\x18\x04 \x03(\x0b\x32,.flyteidl.plugins.sagemaker.MetricDefinition\x12N\n\x12input_content_type\x18\x05 \x01(\x0e\x32\x32.flyteidl.plugins.sagemaker.InputContentType.Value\"e\n\x19TrainingJobResourceConfig\x12\x16\n\x0einstance_count\x18\x01 \x01(\x03\x12\x15\n\rinstance_type\x18\x02 \x01(\t\x12\x19\n\x11volume_size_in_gb\x18\x03 \x01(\x03\"\xbf\x01\n\x0bTrainingJob\x12S\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecification\x12[\n\x1ctraining_job_resource_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') , dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) @@ -81,15 +81,11 @@ name='TEXT_CSV', index=0, number=0, serialized_options=None, type=None), - _descriptor.EnumValueDescriptor( - name='TEXT_LIBSVM', index=1, number=1, - serialized_options=None, - type=None), ], containing_type=None, serialized_options=None, serialized_start=222, - serialized_end=260, + serialized_end=243, ) _sym_db.RegisterEnumDescriptor(_INPUTCONTENTTYPE_VALUE) @@ -165,7 +161,7 @@ oneofs=[ ], serialized_start=202, - serialized_end=260, + serialized_end=243, ) @@ -202,8 +198,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=262, - serialized_end=309, + serialized_start=245, + serialized_end=292, ) @@ -261,8 +257,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=312, - serialized_end=655, + serialized_start=295, + serialized_end=638, ) @@ -306,8 +302,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=657, - serialized_end=758, + serialized_start=640, + serialized_end=741, ) @@ -344,8 +340,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=761, - serialized_end=952, + serialized_start=744, + serialized_end=935, ) _INPUTMODE_VALUE.containing_type = _INPUTMODE diff --git a/protos/flyteidl/plugins/sagemaker/training_job.proto b/protos/flyteidl/plugins/sagemaker/training_job.proto index 80ebef7fb..1d8dc820d 100644 --- a/protos/flyteidl/plugins/sagemaker/training_job.proto +++ b/protos/flyteidl/plugins/sagemaker/training_job.proto @@ -38,7 +38,6 @@ message AlgorithmName { message InputContentType { enum Value { TEXT_CSV = 0; - TEXT_LIBSVM = 1; } }